earthsdk3 3.0.0-beta.0.54 → 3.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 (164) hide show
  1. package/dist/earthsdk3.cjs +2 -0
  2. package/dist/earthsdk3.cjs.LICENSE.txt +29 -0
  3. package/dist/earthsdk3.js +2 -0
  4. package/dist/earthsdk3.js.LICENSE.txt +29 -0
  5. package/dist/earthsdk3.mjs +2 -0
  6. package/dist/earthsdk3.mjs.LICENSE.txt +29 -0
  7. package/dist/types/ESJTypes/properties/ESJEditingMode.d.ts +16 -15
  8. package/dist/types/ESJTypes/properties/ESJMaterialType.d.ts +24 -0
  9. package/dist/types/ESJTypes/properties/FillStyleType.d.ts +1 -1
  10. package/dist/types/ESJTypes/properties/PointStyleType.d.ts +1 -1
  11. package/dist/types/ESJTypes/properties/StrokeStyleType.d.ts +1 -1
  12. package/dist/types/ESJTypes/properties/Viewer.d.ts +1 -1
  13. package/dist/types/ESJTypes/properties/index.d.ts +2 -1
  14. package/dist/types/ESJTypes/props/EnumProperty.d.ts +1 -1
  15. package/dist/types/ESJTypes/props/EnumStringsProperty.d.ts +1 -1
  16. package/dist/types/ESJTypes/props/EvalStringProperty.d.ts +1 -1
  17. package/dist/types/ESJTypes/props/JsonProperty.d.ts +1 -1
  18. package/dist/types/ESJTypes/props/LongStringProperty.d.ts +1 -1
  19. package/dist/types/ESJTypes/props/NumberSliderProperty.d.ts +1 -1
  20. package/dist/types/ESJTypes/props/ParamsProperty.d.ts +1 -1
  21. package/dist/types/ESJTypes/props/PlayerProperty.d.ts +2 -2
  22. package/dist/types/ESJTypes/props/Property.d.ts +1 -1
  23. package/dist/types/ESJTypes/props/ReactVarProperty.d.ts +1 -1
  24. package/dist/types/ESJTypes/props/ViewPlayerProperty.d.ts +1 -1
  25. package/dist/types/ESObjectManager/ESPlyarAndPathTime.d.ts +1 -1
  26. package/dist/types/ESObjectManager/PathAnimationManager.d.ts +2 -2
  27. package/dist/types/ESObjectManager/SceneObjectEditingManager.d.ts +2 -2
  28. package/dist/types/ESObjectManager/SceneObjectsListening.d.ts +1 -1
  29. package/dist/types/ESObjectManager/SceneObjectsManager.d.ts +1 -1
  30. package/dist/types/ESObjectManager/ViewersManager.d.ts +1 -1
  31. package/dist/types/ESObjectManager/index.d.ts +4 -4
  32. package/dist/types/ESObjects/base/ESGeoVector.d.ts +28 -28
  33. package/dist/types/ESObjects/base/ESLabel.d.ts +15 -15
  34. package/dist/types/ESObjects/base/ESLocalVector.d.ts +28 -28
  35. package/dist/types/ESObjects/base/ESLocalVector2D.d.ts +13 -13
  36. package/dist/types/ESObjects/base/ESObjectWithLocation.d.ts +13 -10
  37. package/dist/types/ESObjects/base/ESSceneObject/ESObjectsContext.d.ts +3 -3
  38. package/dist/types/ESObjects/base/ESSceneObject/RefsManager.d.ts +1 -1
  39. package/dist/types/ESObjects/base/ESSceneObject/funcs/createEnvEvalStrReact.d.ts +2 -2
  40. package/dist/types/ESObjects/base/ESSceneObject/index.d.ts +6 -3
  41. package/dist/types/ESObjects/base/ESVisualObject.d.ts +10 -5
  42. package/dist/types/ESObjects/general/ES3DTileset/index.d.ts +32 -29
  43. package/dist/types/ESObjects/general/ESAlarm.d.ts +20 -20
  44. package/dist/types/ESObjects/general/ESApertureEffect.d.ts +19 -19
  45. package/dist/types/ESObjects/general/ESAreaMeasurement.d.ts +17 -17
  46. package/dist/types/ESObjects/general/ESBlastParticleSystem.d.ts +21 -21
  47. package/dist/types/ESObjects/general/ESBoxClipping.d.ts +23 -23
  48. package/dist/types/ESObjects/general/ESCameraView.d.ts +21 -21
  49. package/dist/types/ESObjects/general/ESCameraViewCollection/ViewWrapper.d.ts +1 -1
  50. package/dist/types/ESObjects/general/ESCameraViewCollection/index.d.ts +8 -8
  51. package/dist/types/ESObjects/general/ESCameraVisibleRange.d.ts +19 -19
  52. package/dist/types/ESObjects/general/ESCar.d.ts +19 -19
  53. package/dist/types/ESObjects/general/ESCityBasePoint.d.ts +21 -21
  54. package/dist/types/ESObjects/general/ESClassification.d.ts +17 -17
  55. package/dist/types/ESObjects/general/ESClippingPlane.d.ts +21 -21
  56. package/dist/types/ESObjects/general/ESCustomDiv/index.d.ts +5 -5
  57. package/dist/types/ESObjects/general/ESCustomDiv/instance.d.ts +1 -1
  58. package/dist/types/ESObjects/general/ESCzml.d.ts +7 -7
  59. package/dist/types/ESObjects/general/ESDataMesh.d.ts +22 -22
  60. package/dist/types/ESObjects/general/ESDatasmithRuntimeModel.d.ts +21 -21
  61. package/dist/types/ESObjects/general/ESDirectionMeasurement.d.ts +17 -17
  62. package/dist/types/ESObjects/general/ESDistanceMeasurement.d.ts +17 -17
  63. package/dist/types/ESObjects/general/ESDynamicWater.d.ts +29 -29
  64. package/dist/types/ESObjects/general/ESEntityCluster.d.ts +13 -13
  65. package/dist/types/ESObjects/general/ESExcavate.d.ts +17 -17
  66. package/dist/types/ESObjects/general/ESFireParticleSystem.d.ts +21 -21
  67. package/dist/types/ESObjects/general/ESForestTileset.d.ts +13 -13
  68. package/dist/types/ESObjects/general/ESGaussianSplatting.d.ts +19 -19
  69. package/dist/types/ESObjects/general/ESGeoDiv/index.d.ts +27 -24
  70. package/dist/types/ESObjects/general/ESGeoDivTextPoi.d.ts +31 -31
  71. package/dist/types/ESObjects/general/ESGeoExtrudedPolygon.d.ts +18 -17
  72. package/dist/types/ESObjects/general/ESGeoJson/index.d.ts +17 -17
  73. package/dist/types/ESObjects/general/ESGeoLineString.d.ts +18 -18
  74. package/dist/types/ESObjects/general/ESGeoPolygon.d.ts +17 -17
  75. package/dist/types/ESObjects/general/ESGeoRectangle.d.ts +17 -17
  76. package/dist/types/ESObjects/general/ESGeoWater.d.ts +20 -20
  77. package/dist/types/ESObjects/general/ESGltfModel.d.ts +28 -25
  78. package/dist/types/ESObjects/general/ESHeightLimitAnalysis.d.ts +21 -17
  79. package/dist/types/ESObjects/general/ESHeightMeasurement.d.ts +17 -17
  80. package/dist/types/ESObjects/general/ESHole.d.ts +23 -21
  81. package/dist/types/ESObjects/general/ESHuman.d.ts +19 -19
  82. package/dist/types/ESObjects/general/ESHumanPoi.d.ts +27 -25
  83. package/dist/types/ESObjects/general/ESImageLabel.d.ts +29 -29
  84. package/dist/types/ESObjects/general/ESImageryLayer/index.d.ts +13 -13
  85. package/dist/types/ESObjects/general/ESImageryLayer/types.d.ts +1 -1
  86. package/dist/types/ESObjects/general/ESLevelRuntimeModel.d.ts +21 -21
  87. package/dist/types/ESObjects/general/ESLocalCircle.d.ts +27 -28
  88. package/dist/types/ESObjects/general/ESLocalPolygon.d.ts +27 -27
  89. package/dist/types/ESObjects/general/ESLocalPolygonZ.d.ts +27 -27
  90. package/dist/types/ESObjects/general/ESLocalRectangle.d.ts +25 -25
  91. package/dist/types/ESObjects/general/ESLocalSkyBox.d.ts +19 -19
  92. package/dist/types/ESObjects/general/ESLocationMeasurement.d.ts +19 -19
  93. package/dist/types/ESObjects/general/ESMsTileset/index.d.ts +25 -22
  94. package/dist/types/ESObjects/general/ESNavigator.d.ts +5 -5
  95. package/dist/types/ESObjects/general/ESParticleSystemPrimitive.d.ts +40 -40
  96. package/dist/types/ESObjects/general/ESPath/ESPathImpl/PolylineResetting.d.ts +1 -1
  97. package/dist/types/ESObjects/general/ESPath/ESPathImpl/index.d.ts +6 -6
  98. package/dist/types/ESObjects/general/ESPath/index.d.ts +19 -19
  99. package/dist/types/ESObjects/general/ESPipeFence.d.ts +18 -18
  100. package/dist/types/ESObjects/general/ESPipeline.d.ts +19 -19
  101. package/dist/types/ESObjects/general/ESPipeserTileset.d.ts +21 -21
  102. package/dist/types/ESObjects/general/ESPit.d.ts +21 -21
  103. package/dist/types/ESObjects/general/ESPlayer/AbsolutePlayer.d.ts +6 -6
  104. package/dist/types/ESObjects/general/ESPlayer/index.d.ts +6 -6
  105. package/dist/types/ESObjects/general/ESPoi2D.d.ts +32 -32
  106. package/dist/types/ESObjects/general/ESPoi3D.d.ts +21 -21
  107. package/dist/types/ESObjects/general/ESPoiTileset.d.ts +11 -11
  108. package/dist/types/ESObjects/general/ESPolygonFence.d.ts +17 -17
  109. package/dist/types/ESObjects/general/ESPolygonFlattenedPlane.d.ts +18 -18
  110. package/dist/types/ESObjects/general/ESPolygonWithHole.d.ts +19 -19
  111. package/dist/types/ESObjects/general/ESRectangle.d.ts +19 -19
  112. package/dist/types/ESObjects/general/ESRtsFeatureEditing/index.d.ts +33 -29
  113. package/dist/types/ESObjects/general/ESRtsTileset/index.d.ts +26 -24
  114. package/dist/types/ESObjects/general/ESScale.d.ts +5 -5
  115. package/dist/types/ESObjects/general/ESSeparateFoliage/index.d.ts +11 -11
  116. package/dist/types/ESObjects/general/ESStaticMesh.d.ts +69 -0
  117. package/dist/types/ESObjects/general/ESSubmergingAnalysis/index.d.ts +21 -21
  118. package/dist/types/ESObjects/general/ESSunshineAnalysis/index.d.ts +22 -21
  119. package/dist/types/ESObjects/general/ESSurfaceAreaMeasurement.d.ts +17 -17
  120. package/dist/types/ESObjects/general/ESTerrainLayer.d.ts +11 -11
  121. package/dist/types/ESObjects/general/ESTextLabel.d.ts +39 -39
  122. package/dist/types/ESObjects/general/ESUEWidget.d.ts +31 -31
  123. package/dist/types/ESObjects/general/ESUnrealActor.d.ts +20 -20
  124. package/dist/types/ESObjects/general/ESVideoFusion.d.ts +19 -20
  125. package/dist/types/ESObjects/general/ESViewShed.d.ts +19 -20
  126. package/dist/types/ESObjects/general/ESViewerStatusBar.d.ts +5 -5
  127. package/dist/types/ESObjects/general/ESViewerStatusBarScale.d.ts +5 -5
  128. package/dist/types/ESObjects/general/ESVisibilityAnalysis.d.ts +21 -21
  129. package/dist/types/ESObjects/general/ESVolumeMeasurement.d.ts +19 -19
  130. package/dist/types/ESObjects/general/ESWidget.d.ts +29 -29
  131. package/dist/types/ESObjects/general/index.d.ts +1 -0
  132. package/dist/types/ESViewer/ContainerStyleController.d.ts +1 -1
  133. package/dist/types/ESViewer/ESViewer.d.ts +33 -19
  134. package/dist/types/ESViewer/Resetting/index.d.ts +1 -1
  135. package/dist/types/ESViewer/StatusContainer.d.ts +1 -1
  136. package/dist/types/ESViewer/ViewerContainer.d.ts +1 -1
  137. package/dist/types/ESViewer/ViewerContext.d.ts +1 -1
  138. package/dist/types/ESViewer/ViewerCustomInteraction.d.ts +2 -2
  139. package/dist/types/EngineObject/EditingObjectContext.d.ts +1 -1
  140. package/dist/types/EngineObject/EngineObjectsContext.d.ts +1 -1
  141. package/dist/types/EngineObject/index.d.ts +1 -1
  142. package/dist/types/copyright.d.ts +2 -7
  143. package/dist/types/index.d.ts +2 -0
  144. package/dist/types/utils/PropTrees/PropTree.d.ts +1 -1
  145. package/dist/types/utils/PropTrees/PropTreeItem.d.ts +1 -1
  146. package/dist/types/utils/PropTrees/PropUiTreeManager.d.ts +2 -2
  147. package/dist/types/utils/SceneTrees/SceneTree.d.ts +3 -3
  148. package/dist/types/utils/SceneTrees/SceneTreeContextMenu.d.ts +1 -1
  149. package/dist/types/utils/SceneTrees/SceneTreeItem.d.ts +4 -4
  150. package/dist/types/utils/SceneTrees/SceneTreeJsonLoading.d.ts +1 -1
  151. package/dist/types/utils/SceneTrees/defaultCreateSceneObject.d.ts +1 -1
  152. package/dist/types/utils/SceneTrees/defaultCreateTreeItemDragDrop.d.ts +1 -1
  153. package/dist/types/utils/base/DragStartDataManager.d.ts +2 -2
  154. package/dist/types/utils/base/TreeItemDragDrop.d.ts +1 -1
  155. package/dist/types/utils/components/ESSceneObjectWithId.d.ts +6 -6
  156. package/dist/types/utils/components/Player.d.ts +6 -6
  157. package/dist/types/utils/components/Watcher.d.ts +4 -4
  158. package/dist/types/utils/components/WatcherTools/toolsForWatcher.d.ts +1 -1
  159. package/dist/types/utils/react.d.ts +1 -1
  160. package/dist/types/utils/registerEventUpdate.d.ts +1 -1
  161. package/dist/types/xbsj-base/index.d.ts +1 -0
  162. package/package.json +12 -9
  163. package/dist/earthsdk3.cjs.js +0 -57552
  164. package/dist/earthsdk3.esm.js +0 -57719
@@ -0,0 +1,2 @@
1
+ /*! For license information please see earthsdk3.cjs.LICENSE.txt */
2
+ (()=>{var t={22:(t,e,n)=>{"use strict";var r=n(9886),i=n(3429),o=n(1102),s=n(5667);t.exports=function(t,e,n){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new o("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],h=!!s&&s(t,e);if(r)r(t,e,{configurable:null===c&&h?h.configurable:!c,enumerable:null===a&&h?h.enumerable:!a,value:n,writable:null===u&&h?h.writable:!u});else{if(!l&&(a||u||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=n}}},92:(t,e,n)=>{"use strict";var r,i=n(8801),o=n(7185)(),s=n(5630),a=n(5667);if(o){var u=i("RegExp.prototype.exec"),c={},l=function(){throw c},h={toString:l,valueOf:l};"symbol"==typeof Symbol.toPrimitive&&(h[Symbol.toPrimitive]=l),r=function(t){if(!t||"object"!=typeof t)return!1;var e=a(t,"lastIndex");if(!e||!s(e,"value"))return!1;try{u(t,h)}catch(t){return t===c}}}else{var p=i("Object.prototype.toString");r=function(t){return!(!t||"object"!=typeof t&&"function"!=typeof t)&&"[object RegExp]"===p(t)}}t.exports=r},248:t=>{"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},250:t=>{"use strict";t.exports=Math.pow},342:t=>{"use strict";var e=function(){return"string"==typeof function(){}.name},n=Object.getOwnPropertyDescriptor;if(n)try{n([],"length")}catch(t){n=null}e.functionsHaveConfigurableNames=function(){if(!e()||!n)return!1;var t=n((function(){}),"name");return!!t&&!!t.configurable};var r=Function.prototype.bind;e.boundFunctionsHaveNames=function(){return e()&&"function"==typeof r&&""!==function(){}.bind().name},t.exports=e},491:(t,e,n)=>{"use strict";var r=n(9886),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},543:(t,e,n)=>{var r=n(5956),i=function(t){this.precision=t&&t.precision?t.precision:17,this.direction=!(!t||!t.direction)&&t.direction,this.pseudoNode=!(!t||!t.pseudoNode)&&t.pseudoNode,this.objectComparator=t&&t.objectComparator?t.objectComparator:a};function o(t){return t.coordinates.map((function(e){return{type:t.type.replace("Multi",""),coordinates:e}}))}function s(t,e){return t.hasOwnProperty("coordinates")?t.coordinates.length===e.coordinates.length:t.length===e.length}function a(t,e){return r(t,e,{strict:!0})}i.prototype.compare=function(t,e){if(t.type!==e.type||!s(t,e))return!1;switch(t.type){case"Point":return this.compareCoord(t.coordinates,e.coordinates);case"LineString":return this.compareLine(t.coordinates,e.coordinates,0,!1);case"Polygon":return this.comparePolygon(t,e);case"Feature":return this.compareFeature(t,e);default:if(0===t.type.indexOf("Multi")){var n=this,r=o(t),i=o(e);return r.every((function(t){return this.some((function(e){return n.compare(t,e)}))}),i)}}return!1},i.prototype.compareCoord=function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n].toFixed(this.precision)!==e[n].toFixed(this.precision))return!1;return!0},i.prototype.compareLine=function(t,e,n,r){if(!s(t,e))return!1;var i=this.pseudoNode?t:this.removePseudo(t),o=this.pseudoNode?e:this.removePseudo(e);if(!r||this.compareCoord(i[0],o[0])||(o=this.fixStartIndex(o,i))){var a=this.compareCoord(i[n],o[n]);return this.direction||a?this.comparePath(i,o):!!this.compareCoord(i[n],o[o.length-(1+n)])&&this.comparePath(i.slice().reverse(),o)}},i.prototype.fixStartIndex=function(t,e){for(var n,r=-1,i=0;i<t.length;i++)if(this.compareCoord(t[i],e[0])){r=i;break}return r>=0&&(n=[].concat(t.slice(r,t.length),t.slice(1,r+1))),n},i.prototype.comparePath=function(t,e){var n=this;return t.every((function(t,e){return n.compareCoord(t,this[e])}),e)},i.prototype.comparePolygon=function(t,e){if(this.compareLine(t.coordinates[0],e.coordinates[0],1,!0)){var n=t.coordinates.slice(1,t.coordinates.length),r=e.coordinates.slice(1,e.coordinates.length),i=this;return n.every((function(t){return this.some((function(e){return i.compareLine(t,e,1,!0)}))}),r)}return!1},i.prototype.compareFeature=function(t,e){return!(t.id!==e.id||!this.objectComparator(t.properties,e.properties)||!this.compareBBox(t,e))&&this.compare(t.geometry,e.geometry)},i.prototype.compareBBox=function(t,e){return!!(!t.bbox&&!e.bbox||t.bbox&&e.bbox&&this.compareCoord(t.bbox,e.bbox))},i.prototype.removePseudo=function(t){return t},t.exports=i},656:t=>{"use strict";var e=function(t){return t!=t};t.exports=function(t,n){return 0===t&&0===n?1/t==1/n:t===n||!(!e(t)||!e(n))}},1102:t=>{"use strict";t.exports=TypeError},1162:(t,e,n)=>{"use strict";var r=n(6438);function i(t){var e=[1/0,1/0,-1/0,-1/0];return r.coordEach(t,(function(t){e[0]>t[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]<t[0]&&(e[2]=t[0]),e[3]<t[1]&&(e[3]=t[1])})),e}i.default=i,e.A=i},1290:function(t){t.exports=function(){"use strict";function t(t,r,i,o,s){!function t(n,r,i,o,s){for(;o>i;){if(o-i>600){var a=o-i+1,u=r-i+1,c=Math.log(a),l=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*l*(a-l)/a)*(u-a/2<0?-1:1);t(n,r,Math.max(i,Math.floor(r-u*l/a+h)),Math.min(o,Math.floor(r+(a-u)*l/a+h)),s)}var p=n[r],f=i,d=o;for(e(n,i,r),s(n[o],p)>0&&e(n,i,o);f<d;){for(e(n,f,d),f++,d--;s(n[f],p)<0;)f++;for(;s(n[d],p)>0;)d--}0===s(n[i],p)?e(n,i,d):e(n,++d,o),d<=r&&(i=d+1),r<=d&&(o=d-1)}}(t,r,i||0,o||t.length-1,s||n)}function e(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function n(t,e){return t<e?-1:t>e?1:0}var r=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(t,e,n){if(!n)return e.indexOf(t);for(var r=0;r<e.length;r++)if(n(t,e[r]))return r;return-1}function o(t,e){s(t,0,t.children.length,e,t)}function s(t,e,n,r,i){i||(i=d(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o=e;o<n;o++){var s=t.children[o];a(i,t.leaf?r(s):s)}return i}function a(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function u(t,e){return t.minX-e.minX}function c(t,e){return t.minY-e.minY}function l(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function h(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function f(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function d(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(e,n,r,i,o){for(var s=[n,r];s.length;)if(!((r=s.pop())-(n=s.pop())<=i)){var a=n+Math.ceil((r-n)/i/2)*i;t(e,a,n,r,o),s.push(n,a,a,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(t){var e=this.data,n=[];if(!f(t,e))return n;for(var r=this.toBBox,i=[];e;){for(var o=0;o<e.children.length;o++){var s=e.children[o],a=e.leaf?r(s):s;f(t,a)&&(e.leaf?n.push(s):p(t,a)?this._all(s,n):i.push(s))}e=i.pop()}return n},r.prototype.collides=function(t){var e=this.data;if(!f(t,e))return!1;for(var n=[];e;){for(var r=0;r<e.children.length;r++){var i=e.children[r],o=e.leaf?this.toBBox(i):i;if(f(t,o)){if(e.leaf||p(t,o))return!0;n.push(i)}}e=n.pop()}return!1},r.prototype.load=function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0;e<t.length;e++)this.insert(t[e]);return this}var n=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},r.prototype.insert=function(t){return t&&this._insert(t,this.data.height-1),this},r.prototype.clear=function(){return this.data=d([]),this},r.prototype.remove=function(t,e){if(!t)return this;for(var n,r,o,s=this.data,a=this.toBBox(t),u=[],c=[];s||u.length;){if(s||(s=u.pop(),r=u[u.length-1],n=c.pop(),o=!0),s.leaf){var l=i(t,s.children,e);if(-1!==l)return s.children.splice(l,1),u.push(s),this._condense(u),this}o||s.leaf||!p(s,a)?r?(n++,s=r.children[n],o=!1):s=null:(u.push(s),c.push(n),n=0,r=s,s=s.children[0])}return this},r.prototype.toBBox=function(t){return t},r.prototype.compareMinX=function(t,e){return t.minX-e.minX},r.prototype.compareMinY=function(t,e){return t.minY-e.minY},r.prototype.toJSON=function(){return this.data},r.prototype.fromJSON=function(t){return this.data=t,this},r.prototype._all=function(t,e){for(var n=[];t;)t.leaf?e.push.apply(e,t.children):n.push.apply(n,t.children),t=n.pop();return e},r.prototype._build=function(t,e,n,r){var i,s=n-e+1,a=this._maxEntries;if(s<=a)return o(i=d(t.slice(e,n+1)),this.toBBox),i;r||(r=Math.ceil(Math.log(s)/Math.log(a)),a=Math.ceil(s/Math.pow(a,r-1))),(i=d([])).leaf=!1,i.height=r;var u=Math.ceil(s/a),c=u*Math.ceil(Math.sqrt(a));g(t,e,n,c,this.compareMinX);for(var l=e;l<=n;l+=c){var h=Math.min(l+c-1,n);g(t,l,h,u,this.compareMinY);for(var p=l;p<=h;p+=u){var f=Math.min(p+u-1,h);i.children.push(this._build(t,p,f,r-1))}}return o(i,this.toBBox),i},r.prototype._chooseSubtree=function(t,e,n,r){for(;r.push(e),!e.leaf&&r.length-1!==n;){for(var i=1/0,o=1/0,s=void 0,a=0;a<e.children.length;a++){var u=e.children[a],c=l(u),h=(p=t,f=u,(Math.max(f.maxX,p.maxX)-Math.min(f.minX,p.minX))*(Math.max(f.maxY,p.maxY)-Math.min(f.minY,p.minY))-c);h<o?(o=h,i=c<i?c:i,s=u):h===o&&c<i&&(i=c,s=u)}e=s||e.children[0]}var p,f;return e},r.prototype._insert=function(t,e,n){var r=n?t:this.toBBox(t),i=[],o=this._chooseSubtree(r,this.data,e,i);for(o.children.push(t),a(o,r);e>=0&&i[e].children.length>this._maxEntries;)this._split(i,e),e--;this._adjustParentBBoxes(r,i,e)},r.prototype._split=function(t,e){var n=t[e],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var s=this._chooseSplitIndex(n,i,r),a=d(n.children.splice(s,n.children.length-s));a.height=n.height,a.leaf=n.leaf,o(n,this.toBBox),o(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(n,a)},r.prototype._splitRoot=function(t,e){this.data=d([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(t,e,n){for(var r,i,o,a,u,c,h,p=1/0,f=1/0,d=e;d<=n-e;d++){var g=s(t,0,d,this.toBBox),y=s(t,d,n,this.toBBox),v=(i=g,o=y,void 0,void 0,void 0,void 0,a=Math.max(i.minX,o.minX),u=Math.max(i.minY,o.minY),c=Math.min(i.maxX,o.maxX),h=Math.min(i.maxY,o.maxY),Math.max(0,c-a)*Math.max(0,h-u)),m=l(g)+l(y);v<p?(p=v,r=d,f=m<f?m:f):v===p&&m<f&&(f=m,r=d)}return r||n-e},r.prototype._chooseSplitAxis=function(t,e,n){var r=t.leaf?this.compareMinX:u,i=t.leaf?this.compareMinY:c;this._allDistMargin(t,e,n,r)<this._allDistMargin(t,e,n,i)&&t.children.sort(r)},r.prototype._allDistMargin=function(t,e,n,r){t.children.sort(r);for(var i=this.toBBox,o=s(t,0,e,i),u=s(t,n-e,n,i),c=h(o)+h(u),l=e;l<n-e;l++){var p=t.children[l];a(o,t.leaf?i(p):p),c+=h(o)}for(var f=n-e-1;f>=e;f--){var d=t.children[f];a(u,t.leaf?i(d):d),c+=h(u)}return c},r.prototype._adjustParentBBoxes=function(t,e,n){for(var r=n;r>=0;r--)a(e[r],t)},r.prototype._condense=function(t){for(var e=t.length-1,n=void 0;e>=0;e--)0===t[e].children.length?e>0?(n=t[e-1].children).splice(n.indexOf(t[e]),1):this.clear():o(t[e],this.toBBox)},r}()},1333:t=>{"use strict";t.exports=Object.getOwnPropertyDescriptor},1488:t=>{"use strict";t.exports=Error},1514:(t,e,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(9712);t.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},1844:t=>{"use strict";t.exports=Math.round},1919:t=>{t.exports=function(t,e,n,r){var i=t[0],o=t[1],s=!1;void 0===n&&(n=0),void 0===r&&(r=e.length);for(var a=(r-n)/2,u=0,c=a-1;u<a;c=u++){var l=e[n+2*u+0],h=e[n+2*u+1],p=e[n+2*c+0],f=e[n+2*c+1];h>o!=f>o&&i<(p-l)*(o-h)/(f-h)+l&&(s=!s)}return s}},1989:function(t){t.exports=function(){"use strict";function t(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}var e=function(t,e){this.next=null,this.key=t,this.data=e,this.left=null,this.right=null};function n(t,e){return t>e?1:t<e?-1:0}function r(t,n,r){for(var i=new e(null,null),o=i,s=i;;){var a=r(t,n.key);if(a<0){if(null===n.left)break;if(r(t,n.left.key)<0){var u=n.left;if(n.left=u.right,u.right=n,null===(n=u).left)break}s.left=n,s=n,n=n.left}else{if(!(a>0))break;if(null===n.right)break;if(r(t,n.right.key)>0&&(u=n.right,n.right=u.left,u.left=n,null===(n=u).right))break;o.right=n,o=n,n=n.right}}return o.right=n.left,s.left=n.right,n.left=i.right,n.right=i.left,n}function i(t,n,i,o){var s=new e(t,n);if(null===i)return s.left=s.right=null,s;var a=o(t,(i=r(t,i,o)).key);return a<0?(s.left=i.left,s.right=i,i.left=null):a>=0&&(s.right=i.right,s.left=i,i.right=null),s}function o(t,e,n){var i=null,o=null;if(e){var s=n((e=r(t,e,n)).key,t);0===s?(i=e.left,o=e.right):s<0?(o=e.right,e.right=null,i=e):(i=e.left,e.left=null,o=e)}return{left:i,right:o}}function s(t,e,n,r,i){if(t){r(e+(n?"└── ":"├── ")+i(t)+"\n");var o=e+(n?" ":"│ ");t.left&&s(t.left,o,!1,r,i),t.right&&s(t.right,o,!0,r,i)}}var a=function(){function a(t){void 0===t&&(t=n),this._root=null,this._size=0,this._comparator=t}return a.prototype.insert=function(t,e){return this._size++,this._root=i(t,e,this._root,this._comparator)},a.prototype.add=function(t,n){var i=new e(t,n);null===this._root&&(i.left=i.right=null,this._size++,this._root=i);var o=this._comparator,s=r(t,this._root,o),a=o(t,s.key);return 0===a?this._root=s:(a<0?(i.left=s.left,i.right=s,s.left=null):a>0&&(i.right=s.right,i.left=s,s.right=null),this._size++,this._root=i),this._root},a.prototype.remove=function(t){this._root=this._remove(t,this._root,this._comparator)},a.prototype._remove=function(t,e,n){var i;return null===e?null:0===n(t,(e=r(t,e,n)).key)?(null===e.left?i=e.right:(i=r(t,e.left,n)).right=e.right,this._size--,i):e},a.prototype.pop=function(){var t=this._root;if(t){for(;t.left;)t=t.left;return this._root=r(t.key,this._root,this._comparator),this._root=this._remove(t.key,this._root,this._comparator),{key:t.key,data:t.data}}return null},a.prototype.findStatic=function(t){for(var e=this._root,n=this._comparator;e;){var r=n(t,e.key);if(0===r)return e;e=r<0?e.left:e.right}return null},a.prototype.find=function(t){return this._root&&(this._root=r(t,this._root,this._comparator),0!==this._comparator(t,this._root.key))?null:this._root},a.prototype.contains=function(t){for(var e=this._root,n=this._comparator;e;){var r=n(t,e.key);if(0===r)return!0;e=r<0?e.left:e.right}return!1},a.prototype.forEach=function(t,e){for(var n=this._root,r=[],i=!1;!i;)null!==n?(r.push(n),n=n.left):0!==r.length?(n=r.pop(),t.call(e,n),n=n.right):i=!0;return this},a.prototype.range=function(t,e,n,r){for(var i=[],o=this._comparator,s=this._root;0!==i.length||s;)if(s)i.push(s),s=s.left;else{if(o((s=i.pop()).key,e)>0)break;if(o(s.key,t)>=0&&n.call(r,s))return this;s=s.right}return this},a.prototype.keys=function(){var t=[];return this.forEach((function(e){var n=e.key;return t.push(n)})),t},a.prototype.values=function(){var t=[];return this.forEach((function(e){var n=e.data;return t.push(n)})),t},a.prototype.min=function(){return this._root?this.minNode(this._root).key:null},a.prototype.max=function(){return this._root?this.maxNode(this._root).key:null},a.prototype.minNode=function(t){if(void 0===t&&(t=this._root),t)for(;t.left;)t=t.left;return t},a.prototype.maxNode=function(t){if(void 0===t&&(t=this._root),t)for(;t.right;)t=t.right;return t},a.prototype.at=function(t){for(var e=this._root,n=!1,r=0,i=[];!n;)if(e)i.push(e),e=e.left;else if(i.length>0){if(e=i.pop(),r===t)return e;r++,e=e.right}else n=!0;return null},a.prototype.next=function(t){var e=this._root,n=null;if(t.right){for(n=t.right;n.left;)n=n.left;return n}for(var r=this._comparator;e;){var i=r(t.key,e.key);if(0===i)break;i<0?(n=e,e=e.left):e=e.right}return n},a.prototype.prev=function(t){var e=this._root,n=null;if(null!==t.left){for(n=t.left;n.right;)n=n.right;return n}for(var r=this._comparator;e;){var i=r(t.key,e.key);if(0===i)break;i<0?e=e.left:(n=e,e=e.right)}return n},a.prototype.clear=function(){return this._root=null,this._size=0,this},a.prototype.toList=function(){return function(t){for(var n=t,r=[],i=!1,o=new e(null,null),s=o;!i;)n?(r.push(n),n=n.left):r.length>0?n=(n=s=s.next=r.pop()).right:i=!0;return s.next=null,o.next}(this._root)},a.prototype.load=function(t,n,r){void 0===n&&(n=[]),void 0===r&&(r=!1);var i=t.length,o=this._comparator;if(r&&l(t,n,0,i-1,o),null===this._root)this._root=u(t,n,0,i),this._size=i;else{var s=function(t,n,r){for(var i=new e(null,null),o=i,s=t,a=n;null!==s&&null!==a;)r(s.key,a.key)<0?(o.next=s,s=s.next):(o.next=a,a=a.next),o=o.next;return null!==s?o.next=s:null!==a&&(o.next=a),i.next}(this.toList(),function(t,n){for(var r=new e(null,null),i=r,o=0;o<t.length;o++)i=i.next=new e(t[o],n[o]);return i.next=null,r.next}(t,n),o);i=this._size+i,this._root=c({head:s},0,i)}return this},a.prototype.isEmpty=function(){return null===this._root},Object.defineProperty(a.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"root",{get:function(){return this._root},enumerable:!0,configurable:!0}),a.prototype.toString=function(t){void 0===t&&(t=function(t){return String(t.key)});var e=[];return s(this._root,"",!0,(function(t){return e.push(t)}),t),e.join("")},a.prototype.update=function(t,e,n){var s=this._comparator,a=o(t,this._root,s),u=a.left,c=a.right;s(t,e)<0?c=i(e,n,c,s):u=i(e,n,u,s),this._root=function(t,e,n){return null===e?t:(null===t||((e=r(t.key,e,n)).left=t),e)}(u,c,s)},a.prototype.split=function(t){return o(t,this._root,this._comparator)},a.prototype[Symbol.iterator]=function(){var e,n,r;return t(this,(function(t){switch(t.label){case 0:e=this._root,n=[],r=!1,t.label=1;case 1:return r?[3,6]:null===e?[3,2]:(n.push(e),e=e.left,[3,5]);case 2:return 0===n.length?[3,4]:[4,e=n.pop()];case 3:return t.sent(),e=e.right,[3,5];case 4:r=!0,t.label=5;case 5:return[3,1];case 6:return[2]}}))},a}();function u(t,n,r,i){var o=i-r;if(o>0){var s=r+Math.floor(o/2),a=t[s],c=n[s],l=new e(a,c);return l.left=u(t,n,r,s),l.right=u(t,n,s+1,i),l}return null}function c(t,e,n){var r=n-e;if(r>0){var i=e+Math.floor(r/2),o=c(t,e,i),s=t.head;return s.left=o,t.head=t.head.next,s.right=c(t,i+1,n),s}return null}function l(t,e,n,r,i){if(!(n>=r)){for(var o=t[n+r>>1],s=n-1,a=r+1;;){do{s++}while(i(t[s],o)<0);do{a--}while(i(t[a],o)>0);if(s>=a)break;var u=t[s];t[s]=t[a],t[a]=u,u=e[s],e[s]=e[a],e[a]=u}l(t,e,n,a,i),l(t,e,a+1,r,i)}}const h=(t,e)=>t.ll.x<=e.x&&e.x<=t.ur.x&&t.ll.y<=e.y&&e.y<=t.ur.y,p=(t,e)=>{if(e.ur.x<t.ll.x||t.ur.x<e.ll.x||e.ur.y<t.ll.y||t.ur.y<e.ll.y)return null;const n=t.ll.x<e.ll.x?e.ll.x:t.ll.x,r=t.ur.x<e.ur.x?t.ur.x:e.ur.x;return{ll:{x:n,y:t.ll.y<e.ll.y?e.ll.y:t.ll.y},ur:{x:r,y:t.ur.y<e.ur.y?t.ur.y:e.ur.y}}};let f=Number.EPSILON;void 0===f&&(f=Math.pow(2,-52));const d=f*f,g=(t,e)=>{if(-f<t&&t<f&&-f<e&&e<f)return 0;const n=t-e;return n*n<d*t*e?0:t<e?-1:1};class y{constructor(){this.tree=new a,this.round(0)}round(t){const e=this.tree.add(t),n=this.tree.prev(e);if(null!==n&&0===g(e.key,n.key))return this.tree.remove(t),n.key;const r=this.tree.next(e);return null!==r&&0===g(e.key,r.key)?(this.tree.remove(t),r.key):t}}const v=new class{constructor(){this.reset()}reset(){this.xRounder=new y,this.yRounder=new y}round(t,e){return{x:this.xRounder.round(t),y:this.yRounder.round(e)}}},m=11102230246251565e-32,_=134217729,b=(3+8*m)*m;function w(t,e,n,r,i){let o,s,a,u,c=e[0],l=r[0],h=0,p=0;l>c==l>-c?(o=c,c=e[++h]):(o=l,l=r[++p]);let f=0;if(h<t&&p<n)for(l>c==l>-c?(s=c+o,a=o-(s-c),c=e[++h]):(s=l+o,a=o-(s-l),l=r[++p]),o=s,0!==a&&(i[f++]=a);h<t&&p<n;)l>c==l>-c?(s=o+c,u=s-o,a=o-(s-u)+(c-u),c=e[++h]):(s=o+l,u=s-o,a=o-(s-u)+(l-u),l=r[++p]),o=s,0!==a&&(i[f++]=a);for(;h<t;)s=o+c,u=s-o,a=o-(s-u)+(c-u),c=e[++h],o=s,0!==a&&(i[f++]=a);for(;p<n;)s=o+l,u=s-o,a=o-(s-u)+(l-u),l=r[++p],o=s,0!==a&&(i[f++]=a);return 0===o&&0!==f||(i[f++]=o),f}function E(t){return new Float64Array(t)}const x=E(4),P=E(8),S=E(12),O=E(16),C=E(4);function M(t,e,n,r,i,o){const s=(e-o)*(n-i),a=(t-i)*(r-o),u=s-a,c=Math.abs(s+a);return Math.abs(u)>=33306690738754716e-32*c?u:-function(t,e,n,r,i,o,s){let a,u,c,l,h,p,f,d,g,y,v,m,E,M,I,T,j,N;const D=t-i,A=n-i,R=e-o,F=r-o;M=D*F,p=_*D,f=p-(p-D),d=D-f,p=_*F,g=p-(p-F),y=F-g,I=d*y-(M-f*g-d*g-f*y),T=R*A,p=_*R,f=p-(p-R),d=R-f,p=_*A,g=p-(p-A),y=A-g,j=d*y-(T-f*g-d*g-f*y),v=I-j,h=I-v,x[0]=I-(v+h)+(h-j),m=M+v,h=m-M,E=M-(m-h)+(v-h),v=E-T,h=E-v,x[1]=E-(v+h)+(h-T),N=m+v,h=N-m,x[2]=m-(N-h)+(v-h),x[3]=N;let L=function(t,e){let n=e[0];for(let r=1;r<t;r++)n+=e[r];return n}(4,x),k=22204460492503146e-32*s;if(L>=k||-L>=k)return L;if(h=t-D,a=t-(D+h)+(h-i),h=n-A,c=n-(A+h)+(h-i),h=e-R,u=e-(R+h)+(h-o),h=r-F,l=r-(F+h)+(h-o),0===a&&0===u&&0===c&&0===l)return L;if(k=11093356479670487e-47*s+b*Math.abs(L),L+=D*l+F*a-(R*c+A*u),L>=k||-L>=k)return L;M=a*F,p=_*a,f=p-(p-a),d=a-f,p=_*F,g=p-(p-F),y=F-g,I=d*y-(M-f*g-d*g-f*y),T=u*A,p=_*u,f=p-(p-u),d=u-f,p=_*A,g=p-(p-A),y=A-g,j=d*y-(T-f*g-d*g-f*y),v=I-j,h=I-v,C[0]=I-(v+h)+(h-j),m=M+v,h=m-M,E=M-(m-h)+(v-h),v=E-T,h=E-v,C[1]=E-(v+h)+(h-T),N=m+v,h=N-m,C[2]=m-(N-h)+(v-h),C[3]=N;const V=w(4,x,4,C,P);M=D*l,p=_*D,f=p-(p-D),d=D-f,p=_*l,g=p-(p-l),y=l-g,I=d*y-(M-f*g-d*g-f*y),T=R*c,p=_*R,f=p-(p-R),d=R-f,p=_*c,g=p-(p-c),y=c-g,j=d*y-(T-f*g-d*g-f*y),v=I-j,h=I-v,C[0]=I-(v+h)+(h-j),m=M+v,h=m-M,E=M-(m-h)+(v-h),v=E-T,h=E-v,C[1]=E-(v+h)+(h-T),N=m+v,h=N-m,C[2]=m-(N-h)+(v-h),C[3]=N;const B=w(V,P,4,C,S);M=a*l,p=_*a,f=p-(p-a),d=a-f,p=_*l,g=p-(p-l),y=l-g,I=d*y-(M-f*g-d*g-f*y),T=u*c,p=_*u,f=p-(p-u),d=u-f,p=_*c,g=p-(p-c),y=c-g,j=d*y-(T-f*g-d*g-f*y),v=I-j,h=I-v,C[0]=I-(v+h)+(h-j),m=M+v,h=m-M,E=M-(m-h)+(v-h),v=E-T,h=E-v,C[1]=E-(v+h)+(h-T),N=m+v,h=N-m,C[2]=m-(N-h)+(v-h),C[3]=N;const z=w(B,S,4,C,O);return O[z-1]}(t,e,n,r,i,o,c)}const I=(t,e)=>t.x*e.y-t.y*e.x,T=(t,e)=>t.x*e.x+t.y*e.y,j=(t,e,n)=>{const r=M(t.x,t.y,e.x,e.y,n.x,n.y);return r>0?-1:r<0?1:0},N=t=>Math.sqrt(T(t,t)),D=(t,e,n)=>{const r={x:e.x-t.x,y:e.y-t.y},i={x:n.x-t.x,y:n.y-t.y};return I(i,r)/N(i)/N(r)},A=(t,e,n)=>{const r={x:e.x-t.x,y:e.y-t.y},i={x:n.x-t.x,y:n.y-t.y};return T(i,r)/N(i)/N(r)},R=(t,e,n)=>0===e.y?null:{x:t.x+e.x/e.y*(n-t.y),y:n},F=(t,e,n)=>0===e.x?null:{x:n,y:t.y+e.y/e.x*(n-t.x)};class L{static compare(t,e){const n=L.comparePoints(t.point,e.point);return 0!==n?n:(t.point!==e.point&&t.link(e),t.isLeft!==e.isLeft?t.isLeft?1:-1:V.compare(t.segment,e.segment))}static comparePoints(t,e){return t.x<e.x?-1:t.x>e.x?1:t.y<e.y?-1:t.y>e.y?1:0}constructor(t,e){void 0===t.events?t.events=[this]:t.events.push(this),this.point=t,this.isLeft=e}link(t){if(t.point===this.point)throw new Error("Tried to link already linked events");const e=t.point.events;for(let t=0,n=e.length;t<n;t++){const n=e[t];this.point.events.push(n),n.point=this.point}this.checkForConsuming()}checkForConsuming(){const t=this.point.events.length;for(let e=0;e<t;e++){const n=this.point.events[e];if(void 0===n.segment.consumedBy)for(let r=e+1;r<t;r++){const t=this.point.events[r];void 0===t.consumedBy&&n.otherSE.point.events===t.otherSE.point.events&&n.segment.consume(t.segment)}}}getAvailableLinkedEvents(){const t=[];for(let e=0,n=this.point.events.length;e<n;e++){const n=this.point.events[e];n!==this&&!n.segment.ringOut&&n.segment.isInResult()&&t.push(n)}return t}getLeftmostComparator(t){const e=new Map,n=n=>{const r=n.otherSE;e.set(n,{sine:D(this.point,t.point,r.point),cosine:A(this.point,t.point,r.point)})};return(t,r)=>{e.has(t)||n(t),e.has(r)||n(r);const{sine:i,cosine:o}=e.get(t),{sine:s,cosine:a}=e.get(r);return i>=0&&s>=0?o<a?1:o>a?-1:0:i<0&&s<0?o<a?-1:o>a?1:0:s<i?-1:s>i?1:0}}}let k=0;class V{static compare(t,e){const n=t.leftSE.point.x,r=e.leftSE.point.x,i=t.rightSE.point.x,o=e.rightSE.point.x;if(o<n)return 1;if(i<r)return-1;const s=t.leftSE.point.y,a=e.leftSE.point.y,u=t.rightSE.point.y,c=e.rightSE.point.y;if(n<r){if(a<s&&a<u)return 1;if(a>s&&a>u)return-1;const n=t.comparePoint(e.leftSE.point);if(n<0)return 1;if(n>0)return-1;const r=e.comparePoint(t.rightSE.point);return 0!==r?r:-1}if(n>r){if(s<a&&s<c)return-1;if(s>a&&s>c)return 1;const n=e.comparePoint(t.leftSE.point);if(0!==n)return n;const r=t.comparePoint(e.rightSE.point);return r<0?1:r>0?-1:1}if(s<a)return-1;if(s>a)return 1;if(i<o){const n=e.comparePoint(t.rightSE.point);if(0!==n)return n}if(i>o){const n=t.comparePoint(e.rightSE.point);if(n<0)return 1;if(n>0)return-1}if(i!==o){const t=u-s,e=i-n,l=c-a,h=o-r;if(t>e&&l<h)return 1;if(t<e&&l>h)return-1}return i>o?1:i<o||u<c?-1:u>c?1:t.id<e.id?-1:t.id>e.id?1:0}constructor(t,e,n,r){this.id=++k,this.leftSE=t,t.segment=this,t.otherSE=e,this.rightSE=e,e.segment=this,e.otherSE=t,this.rings=n,this.windings=r}static fromRing(t,e,n){let r,i,o;const s=L.comparePoints(t,e);if(s<0)r=t,i=e,o=1;else{if(!(s>0))throw new Error(`Tried to create degenerate segment at [${t.x}, ${t.y}]`);r=e,i=t,o=-1}const a=new L(r,!0),u=new L(i,!1);return new V(a,u,[n],[o])}replaceRightSE(t){this.rightSE=t,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}bbox(){const t=this.leftSE.point.y,e=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:t<e?t:e},ur:{x:this.rightSE.point.x,y:t>e?t:e}}}vector(){return{x:this.rightSE.point.x-this.leftSE.point.x,y:this.rightSE.point.y-this.leftSE.point.y}}isAnEndpoint(t){return t.x===this.leftSE.point.x&&t.y===this.leftSE.point.y||t.x===this.rightSE.point.x&&t.y===this.rightSE.point.y}comparePoint(t){if(this.isAnEndpoint(t))return 0;const e=this.leftSE.point,n=this.rightSE.point,r=this.vector();if(e.x===n.x)return t.x===e.x?0:t.x<e.x?1:-1;const i=(t.y-e.y)/r.y,o=e.x+i*r.x;if(t.x===o)return 0;const s=(t.x-e.x)/r.x,a=e.y+s*r.y;return t.y===a?0:t.y<a?-1:1}getIntersection(t){const e=this.bbox(),n=t.bbox(),r=p(e,n);if(null===r)return null;const i=this.leftSE.point,o=this.rightSE.point,s=t.leftSE.point,a=t.rightSE.point,u=h(e,s)&&0===this.comparePoint(s),c=h(n,i)&&0===t.comparePoint(i),l=h(e,a)&&0===this.comparePoint(a),f=h(n,o)&&0===t.comparePoint(o);if(c&&u)return f&&!l?o:!f&&l?a:null;if(c)return l&&i.x===a.x&&i.y===a.y?null:i;if(u)return f&&o.x===s.x&&o.y===s.y?null:s;if(f&&l)return null;if(f)return o;if(l)return a;const d=((t,e,n,r)=>{if(0===e.x)return F(n,r,t.x);if(0===r.x)return F(t,e,n.x);if(0===e.y)return R(n,r,t.y);if(0===r.y)return R(t,e,n.y);const i=I(e,r);if(0==i)return null;const o={x:n.x-t.x,y:n.y-t.y},s=I(o,e)/i,a=I(o,r)/i;return{x:(t.x+a*e.x+(n.x+s*r.x))/2,y:(t.y+a*e.y+(n.y+s*r.y))/2}})(i,this.vector(),s,t.vector());return null===d?null:h(r,d)?v.round(d.x,d.y):null}split(t){const e=[],n=void 0!==t.events,r=new L(t,!0),i=new L(t,!1),o=this.rightSE;this.replaceRightSE(i),e.push(i),e.push(r);const s=new V(r,o,this.rings.slice(),this.windings.slice());return L.comparePoints(s.leftSE.point,s.rightSE.point)>0&&s.swapEvents(),L.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),n&&(r.checkForConsuming(),i.checkForConsuming()),e}swapEvents(){const t=this.rightSE;this.rightSE=this.leftSE,this.leftSE=t,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(let t=0,e=this.windings.length;t<e;t++)this.windings[t]*=-1}consume(t){let e=this,n=t;for(;e.consumedBy;)e=e.consumedBy;for(;n.consumedBy;)n=n.consumedBy;const r=V.compare(e,n);if(0!==r){if(r>0){const t=e;e=n,n=t}if(e.prev===n){const t=e;e=n,n=t}for(let t=0,r=n.rings.length;t<r;t++){const r=n.rings[t],i=n.windings[t],o=e.rings.indexOf(r);-1===o?(e.rings.push(r),e.windings.push(i)):e.windings[o]+=i}n.rings=null,n.windings=null,n.consumedBy=e,n.leftSE.consumedBy=e.leftSE,n.rightSE.consumedBy=e.rightSE}}prevInResult(){return void 0!==this._prevInResult||(this.prev?this.prev.isInResult()?this._prevInResult=this.prev:this._prevInResult=this.prev.prevInResult():this._prevInResult=null),this._prevInResult}beforeState(){if(void 0!==this._beforeState)return this._beforeState;if(this.prev){const t=this.prev.consumedBy||this.prev;this._beforeState=t.afterState()}else this._beforeState={rings:[],windings:[],multiPolys:[]};return this._beforeState}afterState(){if(void 0!==this._afterState)return this._afterState;const t=this.beforeState();this._afterState={rings:t.rings.slice(0),windings:t.windings.slice(0),multiPolys:[]};const e=this._afterState.rings,n=this._afterState.windings,r=this._afterState.multiPolys;for(let t=0,r=this.rings.length;t<r;t++){const r=this.rings[t],i=this.windings[t],o=e.indexOf(r);-1===o?(e.push(r),n.push(i)):n[o]+=i}const i=[],o=[];for(let t=0,r=e.length;t<r;t++){if(0===n[t])continue;const r=e[t],s=r.poly;if(-1===o.indexOf(s))if(r.isExterior)i.push(s);else{-1===o.indexOf(s)&&o.push(s);const t=i.indexOf(r.poly);-1!==t&&i.splice(t,1)}}for(let t=0,e=i.length;t<e;t++){const e=i[t].multiPoly;-1===r.indexOf(e)&&r.push(e)}return this._afterState}isInResult(){if(this.consumedBy)return!1;if(void 0!==this._isInResult)return this._isInResult;const t=this.beforeState().multiPolys,e=this.afterState().multiPolys;switch(J.type){case"union":{const n=0===t.length,r=0===e.length;this._isInResult=n!==r;break}case"intersection":{let n,r;t.length<e.length?(n=t.length,r=e.length):(n=e.length,r=t.length),this._isInResult=r===J.numMultiPolys&&n<r;break}case"xor":{const n=Math.abs(t.length-e.length);this._isInResult=n%2==1;break}case"difference":{const n=t=>1===t.length&&t[0].isSubject;this._isInResult=n(t)!==n(e);break}default:throw new Error(`Unrecognized operation type found ${J.type}`)}return this._isInResult}}class B{constructor(t,e,n){if(!Array.isArray(t)||0===t.length)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=e,this.isExterior=n,this.segments=[],"number"!=typeof t[0][0]||"number"!=typeof t[0][1])throw new Error("Input geometry is not a valid Polygon or MultiPolygon");const r=v.round(t[0][0],t[0][1]);this.bbox={ll:{x:r.x,y:r.y},ur:{x:r.x,y:r.y}};let i=r;for(let e=1,n=t.length;e<n;e++){if("number"!=typeof t[e][0]||"number"!=typeof t[e][1])throw new Error("Input geometry is not a valid Polygon or MultiPolygon");let n=v.round(t[e][0],t[e][1]);n.x===i.x&&n.y===i.y||(this.segments.push(V.fromRing(i,n,this)),n.x<this.bbox.ll.x&&(this.bbox.ll.x=n.x),n.y<this.bbox.ll.y&&(this.bbox.ll.y=n.y),n.x>this.bbox.ur.x&&(this.bbox.ur.x=n.x),n.y>this.bbox.ur.y&&(this.bbox.ur.y=n.y),i=n)}r.x===i.x&&r.y===i.y||this.segments.push(V.fromRing(i,r,this))}getSweepEvents(){const t=[];for(let e=0,n=this.segments.length;e<n;e++){const n=this.segments[e];t.push(n.leftSE),t.push(n.rightSE)}return t}}class z{constructor(t,e){if(!Array.isArray(t))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");this.exteriorRing=new B(t[0],this,!0),this.bbox={ll:{x:this.exteriorRing.bbox.ll.x,y:this.exteriorRing.bbox.ll.y},ur:{x:this.exteriorRing.bbox.ur.x,y:this.exteriorRing.bbox.ur.y}},this.interiorRings=[];for(let e=1,n=t.length;e<n;e++){const n=new B(t[e],this,!1);n.bbox.ll.x<this.bbox.ll.x&&(this.bbox.ll.x=n.bbox.ll.x),n.bbox.ll.y<this.bbox.ll.y&&(this.bbox.ll.y=n.bbox.ll.y),n.bbox.ur.x>this.bbox.ur.x&&(this.bbox.ur.x=n.bbox.ur.x),n.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=n.bbox.ur.y),this.interiorRings.push(n)}this.multiPoly=e}getSweepEvents(){const t=this.exteriorRing.getSweepEvents();for(let e=0,n=this.interiorRings.length;e<n;e++){const n=this.interiorRings[e].getSweepEvents();for(let e=0,r=n.length;e<r;e++)t.push(n[e])}return t}}class U{constructor(t,e){if(!Array.isArray(t))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");try{"number"==typeof t[0][0][0]&&(t=[t])}catch(t){}this.polys=[],this.bbox={ll:{x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY},ur:{x:Number.NEGATIVE_INFINITY,y:Number.NEGATIVE_INFINITY}};for(let e=0,n=t.length;e<n;e++){const n=new z(t[e],this);n.bbox.ll.x<this.bbox.ll.x&&(this.bbox.ll.x=n.bbox.ll.x),n.bbox.ll.y<this.bbox.ll.y&&(this.bbox.ll.y=n.bbox.ll.y),n.bbox.ur.x>this.bbox.ur.x&&(this.bbox.ur.x=n.bbox.ur.x),n.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=n.bbox.ur.y),this.polys.push(n)}this.isSubject=e}getSweepEvents(){const t=[];for(let e=0,n=this.polys.length;e<n;e++){const n=this.polys[e].getSweepEvents();for(let e=0,r=n.length;e<r;e++)t.push(n[e])}return t}}class G{static factory(t){const e=[];for(let n=0,r=t.length;n<r;n++){const r=t[n];if(!r.isInResult()||r.ringOut)continue;let i=null,o=r.leftSE,s=r.rightSE;const a=[o],u=o.point,c=[];for(;i=o,o=s,a.push(o),o.point!==u;)for(;;){const t=o.getAvailableLinkedEvents();if(0===t.length){const t=a[0].point,e=a[a.length-1].point;throw new Error(`Unable to complete output ring starting at [${t.x}, ${t.y}]. Last matching segment found ends at [${e.x}, ${e.y}].`)}if(1===t.length){s=t[0].otherSE;break}let n=null;for(let t=0,e=c.length;t<e;t++)if(c[t].point===o.point){n=t;break}if(null!==n){const t=c.splice(n)[0],r=a.splice(t.index);r.unshift(r[0].otherSE),e.push(new G(r.reverse()));continue}c.push({index:a.length,point:o.point});const r=o.getLeftmostComparator(i);s=t.sort(r)[0].otherSE;break}e.push(new G(a))}return e}constructor(t){this.events=t;for(let e=0,n=t.length;e<n;e++)t[e].segment.ringOut=this;this.poly=null}getGeom(){let t=this.events[0].point;const e=[t];for(let n=1,r=this.events.length-1;n<r;n++){const r=this.events[n].point,i=this.events[n+1].point;0!==j(r,t,i)&&(e.push(r),t=r)}if(1===e.length)return null;const n=e[0],r=e[1];0===j(n,t,r)&&e.shift(),e.push(e[0]);const i=this.isExteriorRing()?1:-1,o=this.isExteriorRing()?0:e.length-1,s=this.isExteriorRing()?e.length:-1,a=[];for(let t=o;t!=s;t+=i)a.push([e[t].x,e[t].y]);return a}isExteriorRing(){if(void 0===this._isExteriorRing){const t=this.enclosingRing();this._isExteriorRing=!t||!t.isExteriorRing()}return this._isExteriorRing}enclosingRing(){return void 0===this._enclosingRing&&(this._enclosingRing=this._calcEnclosingRing()),this._enclosingRing}_calcEnclosingRing(){let t=this.events[0];for(let e=1,n=this.events.length;e<n;e++){const n=this.events[e];L.compare(t,n)>0&&(t=n)}let e=t.segment.prevInResult(),n=e?e.prevInResult():null;for(;;){if(!e)return null;if(!n)return e.ringOut;if(n.ringOut!==e.ringOut)return n.ringOut.enclosingRing()!==e.ringOut?e.ringOut:e.ringOut.enclosingRing();e=n.prevInResult(),n=e?e.prevInResult():null}}}class W{constructor(t){this.exteriorRing=t,t.poly=this,this.interiorRings=[]}addInterior(t){this.interiorRings.push(t),t.poly=this}getGeom(){const t=[this.exteriorRing.getGeom()];if(null===t[0])return null;for(let e=0,n=this.interiorRings.length;e<n;e++){const n=this.interiorRings[e].getGeom();null!==n&&t.push(n)}return t}}class q{constructor(t){this.rings=t,this.polys=this._composePolys(t)}getGeom(){const t=[];for(let e=0,n=this.polys.length;e<n;e++){const n=this.polys[e].getGeom();null!==n&&t.push(n)}return t}_composePolys(t){const e=[];for(let n=0,r=t.length;n<r;n++){const r=t[n];if(!r.poly)if(r.isExteriorRing())e.push(new W(r));else{const t=r.enclosingRing();t.poly||e.push(new W(t)),t.poly.addInterior(r)}}return e}}class X{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V.compare;this.queue=t,this.tree=new a(e),this.segments=[]}process(t){const e=t.segment,n=[];if(t.consumedBy)return t.isLeft?this.queue.remove(t.otherSE):this.tree.remove(e),n;const r=t.isLeft?this.tree.add(e):this.tree.find(e);if(!r)throw new Error(`Unable to find segment #${e.id} [${e.leftSE.point.x}, ${e.leftSE.point.y}] -> [${e.rightSE.point.x}, ${e.rightSE.point.y}] in SweepLine tree.`);let i,o,s=r,a=r;for(;void 0===i;)s=this.tree.prev(s),null===s?i=null:void 0===s.key.consumedBy&&(i=s.key);for(;void 0===o;)a=this.tree.next(a),null===a?o=null:void 0===a.key.consumedBy&&(o=a.key);if(t.isLeft){let r=null;if(i){const t=i.getIntersection(e);if(null!==t&&(e.isAnEndpoint(t)||(r=t),!i.isAnEndpoint(t))){const e=this._splitSafely(i,t);for(let t=0,r=e.length;t<r;t++)n.push(e[t])}}let s=null;if(o){const t=o.getIntersection(e);if(null!==t&&(e.isAnEndpoint(t)||(s=t),!o.isAnEndpoint(t))){const e=this._splitSafely(o,t);for(let t=0,r=e.length;t<r;t++)n.push(e[t])}}if(null!==r||null!==s){let t=null;t=null===r?s:null===s||L.comparePoints(r,s)<=0?r:s,this.queue.remove(e.rightSE),n.push(e.rightSE);const i=e.split(t);for(let t=0,e=i.length;t<e;t++)n.push(i[t])}n.length>0?(this.tree.remove(e),n.push(t)):(this.segments.push(e),e.prev=i)}else{if(i&&o){const t=i.getIntersection(o);if(null!==t){if(!i.isAnEndpoint(t)){const e=this._splitSafely(i,t);for(let t=0,r=e.length;t<r;t++)n.push(e[t])}if(!o.isAnEndpoint(t)){const e=this._splitSafely(o,t);for(let t=0,r=e.length;t<r;t++)n.push(e[t])}}}this.tree.remove(e)}return n}_splitSafely(t,e){this.tree.remove(t);const n=t.rightSE;this.queue.remove(n);const r=t.split(e);return r.push(n),void 0===t.consumedBy&&this.tree.add(t),r}}const H="undefined"!=typeof process&&process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE||1e6,Y="undefined"!=typeof process&&process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS||1e6;const J=new class{run(t,e,n){J.type=t,v.reset();const r=[new U(e,!0)];for(let t=0,e=n.length;t<e;t++)r.push(new U(n[t],!1));if(J.numMultiPolys=r.length,"difference"===J.type){const t=r[0];let e=1;for(;e<r.length;)null!==p(r[e].bbox,t.bbox)?e++:r.splice(e,1)}if("intersection"===J.type)for(let t=0,e=r.length;t<e;t++){const e=r[t];for(let n=t+1,i=r.length;n<i;n++)if(null===p(e.bbox,r[n].bbox))return[]}const i=new a(L.compare);for(let t=0,e=r.length;t<e;t++){const e=r[t].getSweepEvents();for(let t=0,n=e.length;t<n;t++)if(i.insert(e[t]),i.size>H)throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big).")}const o=new X(i);let s=i.size,u=i.pop();for(;u;){const t=u.key;if(i.size===s){const e=t.segment;throw new Error(`Unable to pop() ${t.isLeft?"left":"right"} SweepEvent [${t.point.x}, ${t.point.y}] from segment #${e.id} [${e.leftSE.point.x}, ${e.leftSE.point.y}] -> [${e.rightSE.point.x}, ${e.rightSE.point.y}] from queue.`)}if(i.size>H)throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big).");if(o.segments.length>Y)throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments).");const e=o.process(t);for(let t=0,n=e.length;t<n;t++){const n=e[t];void 0===n.consumedBy&&i.insert(n)}s=i.size,u=i.pop()}v.reset();const c=G.factory(o.segments);return new q(c).getGeom()}};return{union:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return J.run("union",t,n)},intersection:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return J.run("intersection",t,n)},xor:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return J.run("xor",t,n)},difference:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return J.run("difference",t,n)}}}()},2162:(t,e,n)=>{"use strict";var r=n(5952),i=n(1102),o=Object;t.exports=r((function(){if(null==this||this!==o(this))throw new i("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.unicodeSets&&(t+="v"),this.sticky&&(t+="y"),t}),"get flags",!0)},2197:(t,e,n)=>{"use strict";var r=n(656);t.exports=function(){return"function"==typeof Object.is?Object.is:r}},2418:t=>{"use strict";t.exports=Math.floor},2427:(t,e,n)=>{"use strict";var r=n(9524),i=n(1102),o=n(6255),s=n(7785);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new i("a function is required");return s(r,o,t)}},2476:(t,e,n)=>{"use strict";n.r(e),n.d(e,{AttachedPickedInfo:()=>s.di,BasePlayer:()=>l.N,BasePropTreeItem:()=>l.a9,Boolean2Property:()=>s.uf,Boolean2sProperty:()=>s.Ny,Boolean3Property:()=>s.Lh,Boolean3sProperty:()=>s._w,Boolean4Property:()=>s.Oc,Boolean4sProperty:()=>s.Z5,BooleanProperty:()=>s.uz,BooleansProperty:()=>s.Pb,ColorProperty:()=>s.DP,ColorRgbProperty:()=>s.KB,DashPatternProperty:()=>s.uu,DateProperty:()=>s.kt,DatesProperty:()=>s.lX,DivPickedInfo:()=>s.ak,DragStartDataManager:()=>l.gh,ES3DTileset:()=>u.Eq,ESAlarm:()=>u.Gd,ESApertureEffect:()=>u.OI,ESAreaMeasurement:()=>u.cN,ESBlastParticleSystem:()=>u.kG,ESBoxClipping:()=>u.OW,ESCameraView:()=>u.dn,ESCameraViewCollection:()=>u.dj,ESCameraVisibleRange:()=>u.Dn,ESCar:()=>u.h,ESCityBasePoint:()=>u.xV,ESClassification:()=>u.DF,ESClippingPlane:()=>u.LU,ESCustomDiv:()=>u.$p,ESCzml:()=>u.N,ESDataMesh:()=>u.Oe,ESDatasmithRuntimeModel:()=>u.BQ,ESDirectionMeasurement:()=>u.aP,ESDistanceMeasurement:()=>u.KF,ESDynamicWater:()=>u.Hb,ESEntityCluster:()=>u.UV,ESExcavate:()=>u.q1,ESFireParticleSystem:()=>u.yx,ESForestTileset:()=>u._Y,ESGaussianSplatting:()=>u.Wl,ESGeoDiv:()=>u.TX,ESGeoDivTextPoi:()=>u.iN,ESGeoExtrudedPolygon:()=>u.p2,ESGeoJson:()=>u.CM,ESGeoLineString:()=>u.d_,ESGeoPolygon:()=>u.iO,ESGeoRectangle:()=>u.Nb,ESGeoVector:()=>u.Tp,ESGeoWater:()=>u.j$,ESGltfModel:()=>u.zt,ESHeightLimitAnalysis:()=>u.Dg,ESHeightMeasurement:()=>u.US,ESHole:()=>u.Lq,ESHuman:()=>u.Ay,ESHumanPoi:()=>u.yn,ESImageLabel:()=>u.En,ESImageryLayer:()=>u.eU,ESJEditingMode:()=>s.EH,ESJLonLatFormat:()=>s.ID,ESJPickedInfo:()=>s.bX,ESLabel:()=>u.DP,ESLevelRuntimeModel:()=>u.ch,ESLocalCircle:()=>u.cD,ESLocalPolygon:()=>u.yT,ESLocalPolygonZ:()=>u.CI,ESLocalRectangle:()=>u.SQ,ESLocalSkyBox:()=>u.yZ,ESLocalVector:()=>u.zS,ESLocalVector2D:()=>u.nx,ESLocationMeasurement:()=>u.wg,ESMsTileset:()=>u.DS,ESNavigator:()=>u.KB,ESObjectWithLocation:()=>u.ty,ESObjectsManager:()=>a.y,ESParticleSystemPrimitive:()=>u.bA,ESPath:()=>u.i9,ESPathImpl:()=>u.kH,ESPipeFence:()=>u.ws,ESPipeline:()=>u.XE,ESPipeserTileset:()=>u.HQ,ESPit:()=>u.UE,ESPlayer:()=>u.gz,ESPoi2D:()=>u.vX,ESPoi3D:()=>u.gx,ESPoiTileset:()=>u.VI,ESPolygonFence:()=>u.cm,ESPolygonFlattenedPlane:()=>u.QM,ESPolygonWithHole:()=>u.$0,ESRectangle:()=>u.cQ,ESRtsFeatureEditing:()=>u._7,ESRtsTileset:()=>u.Mx,ESScale:()=>u.jL,ESSceneObject:()=>u.IV,ESSceneObjectFromId:()=>l.vn,ESSceneObjectWithId:()=>l.v1,ESSeparateFoliage:()=>u.PY,ESStaticMesh:()=>u.g,ESSubmergingAnalysis:()=>u.Op,ESSunshineAnalysis:()=>u._v,ESSurfaceAreaMeasurement:()=>u.ZF,ESTerrainLayer:()=>u.ez,ESTextLabel:()=>u.Cw,ESUEWidget:()=>u.vU,ESUnrealActor:()=>u.fi,ESVideoFusion:()=>u.O_,ESViewShed:()=>u.UM,ESViewer:()=>c.d,ESViewerStatusBar:()=>u.SZ,ESViewerStatusBarScale:()=>u.kz,ESVisibilityAnalysis:()=>u.vm,ESVisualObject:()=>u.YY,ESVolumeMeasurement:()=>u.dq,ESWidget:()=>u.VU,EngineObject:()=>o.E,EnumProperty:()=>s.fX,EnumStringsProperty:()=>s.t9,EvalStringProperty:()=>s.zo,FunctionProperty:()=>s.YF,GroupPropTreeItem:()=>l.W7,GroupProperty:()=>s.VS,JsonProperty:()=>s.EO,LeafPropTreeItem:()=>l.rc,LongStringProperty:()=>s.hZ,MaximumScreenSpaceErrorProperty:()=>s.GM,MinmaxProperty:()=>s.eb,NearFarScalerProperty:()=>s.gz,NonreactiveJsonStringProperty:()=>s.VE,Number2Property:()=>s.RD,Number2sProperty:()=>s.MU,Number3Property:()=>s._C,Number3sProperty:()=>s.Ls,Number4Property:()=>s.zf,Number4WithUndefinedProperty:()=>s.pQ,Number4sProperty:()=>s.wh,NumberProperty:()=>s.du,NumberRangeProperty:()=>s.AD,NumberSliderProperty:()=>s.Cs,NumbersProperty:()=>s.aQ,ParamsProperty:()=>s.OH,PickedInfo:()=>s.r7,PickedResult:()=>s.gl,PlayerProperty:()=>s.zZ,PositionProperty:()=>s.j_,PositionsProperty:()=>s.K7,PositionsSetPropety:()=>s.ED,PropTree:()=>l.YT,PropUiTreeManager:()=>l.Dt,Property:()=>s.mA,ReactVarProperty:()=>s.uY,RotationProperty:()=>s.qp,SceneObjectPickedInfo:()=>s.QR,SceneTree:()=>l.Hs,SceneTreeContextMenu:()=>l.PR,SceneTreeItem:()=>l.Uh,SceneTreeItemDragDrop:()=>l.Vf,String2Property:()=>s.ri,String2sProperty:()=>s.AS,String3Property:()=>s.Uj,String3sProperty:()=>s.xd,String4Property:()=>s.Ro,String4sProperty:()=>s.i4,StringNumberProperty:()=>s.qc,StringNumbersProperty:()=>s.Tw,StringProperty:()=>s.XB,StringsProperty:()=>s.Qp,TreeItemDragDrop:()=>l.hi,UriProperty:()=>s.yK,ViewPlayerProperty:()=>s.UB,ViewerCustomInteraction:()=>c.S,Watcher:()=>l.ZV,WatcherTools:()=>l.id,WithUndefinedProperty:()=>s.yt,addTreesCallFunc:()=>u.FV,booleanPointInPolygon:()=>l.mF,cartesianDistance:()=>l.k_,clamp0_360:()=>l._Y,clampN180_180:()=>l.XP,createPropTreeFromSceneObject:()=>l.PA,cutDownTreesCallFunc:()=>u.ad,defaultInitSceneObjectOnCreatingFunc:()=>l.Vj,defaultUpdateSceneObjectOnPickingFunc:()=>l.AV,earthsdk3_copyright:()=>h.G,equalsN3:()=>l.xD,geoAlong:()=>l.zY,geoArea:()=>l.mH,geoBuffer:()=>l.Yd,geoCenterOfMass:()=>l.Uq,geoDestination:()=>l.yp,geoDifference:()=>l.By,geoDistance:()=>l.Je,geoHeading:()=>l.Oc,geoIntersect:()=>l.t9,geoLineIntersect:()=>l.D$,geoNearestPointOnLine:()=>l.xM,geoPointToLineDistance:()=>l.__,geoPolygonFromCircle:()=>l._k,geoPolygonOverlap:()=>l.VX,geoRhumbDestination:()=>l.KK,geoRhumbDistance:()=>l.FD,geoRhumbHeading:()=>l.G1,geoUnion:()=>l.j3,getDefaultValue:()=>l.Bu,getDistancesFromPositions:()=>l.dh,getGeoBoundingSphereFromPositions:()=>l.x$,getMidpoint:()=>l.Mu,getMinMaxCorner:()=>l.OC,getSceneObjectTreeItem:()=>l.L$,getXyzFromPostion:()=>l.c0,growthSimulationCallFunc:()=>u.XQ,hasSameTags:()=>l.qC,hasSameViewerTags:()=>l.Gv,inOrderRunning:()=>l.rn,isJSONString:()=>l.Kf,lbhToWebMerc:()=>l.zO,lbhToXyz:()=>l.bS,lerpAngle:()=>l.nU,lerpRotation:()=>l.g_,map:()=>l.Tj,optionsStr:()=>u.kr,reactPosition2Ds:()=>l.Sf,registerEventUpdate:()=>l.LX,removeAllTreesCallFunc:()=>u.Do,rpToap:()=>l.RT,setSceneObjectTreeItem:()=>l.XN,updateTreeParamsCallFunc:()=>u.sv,webMercToLbh:()=>l.lI,xyzToLbh:()=>l.HX});var r=n(8500),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i);var o=n(9604),s=n(4890),a=n(9871),u=n(4266),c=n(5846),l=n(4949),h=n(5989)},2557:t=>{"use strict";t.exports=ReferenceError},2728:t=>{"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},3230:function(t){t.exports=function(){"use strict";function t(n,r,i,o,s){for(;o>i;){if(o-i>600){var a=o-i+1,u=r-i+1,c=Math.log(a),l=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*l*(a-l)/a)*(u-a/2<0?-1:1);t(n,r,Math.max(i,Math.floor(r-u*l/a+h)),Math.min(o,Math.floor(r+(a-u)*l/a+h)),s)}var p=n[r],f=i,d=o;for(e(n,i,r),s(n[o],p)>0&&e(n,i,o);f<d;){for(e(n,f,d),f++,d--;s(n[f],p)<0;)f++;for(;s(n[d],p)>0;)d--}0===s(n[i],p)?e(n,i,d):e(n,++d,o),d<=r&&(i=d+1),r<=d&&(o=d-1)}}function e(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function n(t,e){return t<e?-1:t>e?1:0}return function(e,r,i,o,s){t(e,r,i||0,o||e.length-1,s||n)}}()},3332:function(t,e){!function(t){"use strict";const e=134217729;function n(t,e,n,r,i){let o,s,a,u,c=e[0],l=r[0],h=0,p=0;l>c==l>-c?(o=c,c=e[++h]):(o=l,l=r[++p]);let f=0;if(h<t&&p<n)for(l>c==l>-c?(a=o-((s=c+o)-c),c=e[++h]):(a=o-((s=l+o)-l),l=r[++p]),o=s,0!==a&&(i[f++]=a);h<t&&p<n;)l>c==l>-c?(a=o-((s=o+c)-(u=s-o))+(c-u),c=e[++h]):(a=o-((s=o+l)-(u=s-o))+(l-u),l=r[++p]),o=s,0!==a&&(i[f++]=a);for(;h<t;)a=o-((s=o+c)-(u=s-o))+(c-u),c=e[++h],o=s,0!==a&&(i[f++]=a);for(;p<n;)a=o-((s=o+l)-(u=s-o))+(l-u),l=r[++p],o=s,0!==a&&(i[f++]=a);return 0===o&&0!==f||(i[f++]=o),f}function r(t){return new Float64Array(t)}const i=r(4),o=r(8),s=r(12),a=r(16),u=r(4);t.orient2d=function(t,r,c,l,h,p){const f=(r-p)*(c-h),d=(t-h)*(l-p),g=f-d;if(0===f||0===d||f>0!=d>0)return g;const y=Math.abs(f+d);return Math.abs(g)>=33306690738754716e-32*y?g:-function(t,r,c,l,h,p,f){let d,g,y,v,m,_,b,w,E,x,P,S,O,C,M,I,T,j;const N=t-h,D=c-h,A=r-p,R=l-p;m=(M=(w=N-(b=(_=e*N)-(_-N)))*(x=R-(E=(_=e*R)-(_-R)))-((C=N*R)-b*E-w*E-b*x))-(P=M-(T=(w=A-(b=(_=e*A)-(_-A)))*(x=D-(E=(_=e*D)-(_-D)))-((I=A*D)-b*E-w*E-b*x))),i[0]=M-(P+m)+(m-T),m=(O=C-((S=C+P)-(m=S-C))+(P-m))-(P=O-I),i[1]=O-(P+m)+(m-I),m=(j=S+P)-S,i[2]=S-(j-m)+(P-m),i[3]=j;let F=function(t,e){let n=e[0];for(let t=1;t<4;t++)n+=e[t];return n}(0,i),L=22204460492503146e-32*f;if(F>=L||-F>=L)return F;if(d=t-(N+(m=t-N))+(m-h),y=c-(D+(m=c-D))+(m-h),g=r-(A+(m=r-A))+(m-p),v=l-(R+(m=l-R))+(m-p),0===d&&0===g&&0===y&&0===v)return F;if(L=11093356479670487e-47*f+33306690738754706e-32*Math.abs(F),(F+=N*v+R*d-(A*y+D*g))>=L||-F>=L)return F;m=(M=(w=d-(b=(_=e*d)-(_-d)))*(x=R-(E=(_=e*R)-(_-R)))-((C=d*R)-b*E-w*E-b*x))-(P=M-(T=(w=g-(b=(_=e*g)-(_-g)))*(x=D-(E=(_=e*D)-(_-D)))-((I=g*D)-b*E-w*E-b*x))),u[0]=M-(P+m)+(m-T),m=(O=C-((S=C+P)-(m=S-C))+(P-m))-(P=O-I),u[1]=O-(P+m)+(m-I),m=(j=S+P)-S,u[2]=S-(j-m)+(P-m),u[3]=j;const k=n(4,i,4,u,o);m=(M=(w=N-(b=(_=e*N)-(_-N)))*(x=v-(E=(_=e*v)-(_-v)))-((C=N*v)-b*E-w*E-b*x))-(P=M-(T=(w=A-(b=(_=e*A)-(_-A)))*(x=y-(E=(_=e*y)-(_-y)))-((I=A*y)-b*E-w*E-b*x))),u[0]=M-(P+m)+(m-T),m=(O=C-((S=C+P)-(m=S-C))+(P-m))-(P=O-I),u[1]=O-(P+m)+(m-I),m=(j=S+P)-S,u[2]=S-(j-m)+(P-m),u[3]=j;const V=n(k,o,4,u,s);m=(M=(w=d-(b=(_=e*d)-(_-d)))*(x=v-(E=(_=e*v)-(_-v)))-((C=d*v)-b*E-w*E-b*x))-(P=M-(T=(w=g-(b=(_=e*g)-(_-g)))*(x=y-(E=(_=e*y)-(_-y)))-((I=g*y)-b*E-w*E-b*x))),u[0]=M-(P+m)+(m-T),m=(O=C-((S=C+P)-(m=S-C))+(P-m))-(P=O-I),u[1]=O-(P+m)+(m-I),m=(j=S+P)-S,u[2]=S-(j-m)+(P-m),u[3]=j;const B=n(V,s,4,u,a);return a[B-1]}(t,r,c,l,h,p,y)},t.orient2dfast=function(t,e,n,r,i,o){return(e-o)*(n-i)-(t-i)*(r-o)},Object.defineProperty(t,"__esModule",{value:!0})}(e)},3412:(t,e,n)=>{t.exports&&(t.exports={DBSCAN:n(4649),KMEANS:n(5335),OPTICS:n(5848),PriorityQueue:n(5583)})},3429:t=>{"use strict";t.exports=SyntaxError},3752:(t,e,n)=>{"use strict";var r=n(5153);t.exports=r.getPrototypeOf||null},4252:(t,e,n)=>{"use strict";var r=n(248),i=n(3752),o=n(7678);t.exports=r?function(t){return r(t)}:i?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return i(t)}:o?function(t){return o(t)}:null},4266:(t,e,n)=>{"use strict";n.d(e,{Eq:()=>C,Gd:()=>M,OI:()=>I,cN:()=>j,kG:()=>N,OW:()=>D,dn:()=>R,dj:()=>U,Dn:()=>G,h:()=>W,xV:()=>Jn,DF:()=>q,LU:()=>X,$p:()=>rt,N:()=>Kn,Oe:()=>it,BQ:()=>on,aP:()=>be,KF:()=>st,Hb:()=>sn,UV:()=>Rn,q1:()=>at,yx:()=>ut,_Y:()=>ct,Wl:()=>ur,TX:()=>yt,iN:()=>Yn,p2:()=>Dn,CM:()=>Xe,d_:()=>ot,iO:()=>T,Nb:()=>vt,Tp:()=>f,j$:()=>an,zt:()=>_t,Dg:()=>An,US:()=>He,Lq:()=>dn,Ay:()=>Et,yn:()=>pn,En:()=>xt,eU:()=>Nt,DP:()=>_,ch:()=>un,cD:()=>Ye,yT:()=>Je,CI:()=>$e,SQ:()=>Ze,yZ:()=>Dt,zS:()=>g,nx:()=>y,wg:()=>At,DS:()=>Pn,KB:()=>or,ty:()=>d,bA:()=>Rt,i9:()=>Hn,kH:()=>Xn,ws:()=>Qe,XE:()=>cn,HQ:()=>Ke,UE:()=>fn,gz:()=>Ln,vX:()=>Ft,gx:()=>Lt,VI:()=>On,cm:()=>tn,QM:()=>kt,$0:()=>nn,cQ:()=>en,_7:()=>bn,Mx:()=>mn,jL:()=>Nn,IV:()=>u,PY:()=>Qt,g:()=>cr,Op:()=>ie,_v:()=>oe,ZF:()=>rn,ez:()=>se,Cw:()=>ae,vU:()=>ce,fi:()=>de,O_:()=>ge,UM:()=>ye,SZ:()=>sr,kz:()=>ar,vm:()=>ln,YY:()=>l,dq:()=>hn,VU:()=>me,FV:()=>Bt,ad:()=>Gt,XQ:()=>Wt,kr:()=>Pt,Do:()=>zt,sv:()=>Ut});var r=n(8500);class i extends r.Destroyable{get sceneObjRefs(){return this._sceneObjRefs}get refs(){return this._refs}get refsChanged(){return this._refsChanged}getLastSceneObject(t){const e=this.getSceneObjects(t);if(e)return e[e.length-1]}getSceneObjects(t){const e=this._sceneObjRefs.get(t);if(e&&0!==e.length)return e}constructor(t){super(),this._sceneObjRefs=new Map,this._refs={},this._refsChanged=this.dv(new r.Event);const e=(t,e,n)=>{if(n){const e=this.getLastSceneObject(n),r=this._sceneObjRefs.get(n);if(r){const e=r.indexOf(t);-1===e?console.warn(`this._sceneObjRefs中不存在当前对象(id: ${t.id} type: ${t.typeName})!可能系统存在逻辑问题`):(r.splice(e,1),0===r.length&&this._sceneObjRefs.delete(n))}else console.warn(`this._sceneObjRefs中不存在ref(${n}), 可能系统存在逻辑问题`);const i=this.getLastSceneObject(n);this._refs[n]=i,this._refsChanged.emit(i,e)}if(e){const n=this.getLastSceneObject(e),r=this._sceneObjRefs.get(e);r?(r.push(t),r.length>0&&console.warn(`同时存在多个ref${e}相同的场景对象!\n${r.map((t=>`${t.id} ${t.typeName}\n`)).join(" ")}`)):this._sceneObjRefs.set(e,[t]);const i=this.getLastSceneObject(e);this._refs[e]=i,this._refsChanged.emit(i,n)}};this.d(t.sceneObjCreatedEvent.don((t=>{const n=(n,r)=>e(t,n,r);t.ref&&n(t.ref,void 0),t.refChanged.don(n)}))),this.d(t.sceneObjToDestroyEvent.don((t=>{t.ref&&e(t,void 0,t.ref)})))}}function o(t,e){const[n,i,o]=(0,r.getReactFuncs)(t),s=(0,r.react)(void 0),a=()=>{var t;const r=null!==(t=n())&&void 0!==t?t:e;s.value=r&&u.context.getStrFromEnv(r)};return a(),o&&s.d(o.don(a)),s.d(u.context.environmentVariablesChanged.don(a)),s}class s extends r.Destroyable{get typeNames(){return this._esObjConstructors.keys()}get sceneObjs(){return this._sceneObjs.values()}get sceneObjCreatedEvent(){return this._sceneObjCreatedEvent}get sceneObjToDestroyEvent(){return this._sceneObjToDestroyEvent}get refsManager(){return this._refsManager}get $refs(){return this._refsManager.refs}constructor(){super(),this._esObjConstructors=new Map,this._sceneObjs=new Map,this._sceneObjCreatedEvent=new r.Event,this._sceneObjToDestroyEvent=new r.Event,this._refsManager=this.dv(new i(this)),this._environmentVariables=window.ESSDK_ENV||{},this._environmentVariablesChanged=this.dv(new r.Event)}register(t,e,n){return this._esObjConstructors.has(t)&&console.warn(`register warn: ${t} has registered ! will be override!`),this._esObjConstructors.set(t,e),n&&(0,r.setExtProp)(e,"__sceneObjExtraInfo",n),t}_addSceneObject(t){this._sceneObjs.set(t.id,t),this._sceneObjCreatedEvent.emit(t),t.d((()=>this._deleteSceneObject(t)))}_deleteSceneObject(t){this._sceneObjToDestroyEvent.emit(t),this._sceneObjs.delete(t.id)}createSceneObjectFromClass(t,e){if(!e||this._sceneObjs.has(e)){const t=(0,r.createGuid)();e&&console.warn(`已存在相同id的对象!id自动变更!${e} -> ${t} 请注意:id变更可能导致引用失效!`),e=t}if(!e)throw new Error("id不能为空!");const n=new t(e);return n.id!==e&&(console.warn(`sceneObj.id(${n.id}) !== id(${e}) sceneObjectType: ${n.typeName}`),console.warn("出现这种问题有可能是自定义的场景对象,没有在构造函数中传递id参数!示例如下:"),console.warn("class XXX extends XXX { constructor(id) { super(id); } }")),this._addSceneObject(n),n}createSceneObject(t,e){if("string"==typeof t){const n=this._getSceneObjConstructor(t);return n?this.createSceneObjectFromClass(n,e):void console.warn(`Cannot find SceneObjectType: ${t}`)}return this.createSceneObjectFromClass(t,e)}createSceneObjectFromJson(t){const e=this.createSceneObject(t.type,t.id);return e&&(e.json=t),e}destroySceneObject(t){return this._deleteSceneObject(t),t.destroy(),t.isDestroyed()}getSceneObjectById(t){return this._sceneObjs.get(t)}getSceneObject(t){if(!t)return Array.from(this._sceneObjs.values());if(t.startsWith("ES")){const e=[];for(const n of this._sceneObjs.values())n.typeName===t&&e.push(n);return e}return this._sceneObjs.get(t)}_getSceneObjConstructor(t){return this._esObjConstructors.get(t)||void 0}getProps(t){const e=this._getSceneObjConstructor(t);if(e)return(0,r.getExtProp)(e,"__sceneObjExtraInfo");console.warn(`cannot get constructor from type: ${t}`)}setProps(t,e){const n=this._getSceneObjConstructor(t);if(!n)return void console.warn(`cannot get constructor from type: ${t}`);let i=(0,r.getExtProp)(n,"__sceneObjExtraInfo");i||(i={},(0,r.setExtProp)(n,"__sceneObjExtraInfo",i)),Object.assign(i,e)}getProp(t,e){const n=this.getProps(t);return n&&n[e]}setProp(t,e,n){this.setProps(t,{[e]:n})}get environmentVariables(){return this._environmentVariables}set environmentVariables(t){for(let[e,n]of Object.entries(t))this.setEnv(e,n)}get environmentVariablesChanged(){return this._environmentVariablesChanged}setEnv(t,e){if(this._environmentVariables[t]!==e){const n=this._environmentVariables[t];this._environmentVariables[t]=e,this._environmentVariablesChanged.emit(t,e,n)}window.ESSDK_ENV=Object.assign({},this._environmentVariables)}getEnv(t){return this._environmentVariables[t]}getStrFromEnv(t){return function(t){for(;;){const e=t.replace(/\${(.*?)\}/,((t,e)=>{const n=u.context.getEnv(e);return void 0===n?(console.warn(`环境变量(${e})不存在,无法进行转换`),"{env-error}"):n}));if(e===t)break;t=e}return t}(t)}createEnvStrReact(t,e){return o(t,e)}createEvnStrReact(t,e){return o(t,e)}}var a=n(4890);class u extends r.Destroyable{static get envs(){return u.context.environmentVariables}static get $refs(){return u.context.refsManager.refs}get components(){return this._components}get viewerAttached(){return this._viewerAttached}get viewerDetached(){return this._viewerDetached}get attachedViewers(){return this._attachedViewers}removefromViewer(t){this.attachedViewers.has(t)&&t.delete(this)}addToViewer(t){this.attachedViewers.has(t)||t.add(this)}registerAttachedObject(t){const e=new Map;this.d((()=>{e.size>0&&console.warn("viewerPropSceneObjects.size > 0")})),this.d(this._viewerAttached.don((n=>{const r=t(n);r&&e.set(n,r)}))),this.d(this._viewerDetached.don((t=>{if(!e.has(t))return;const n=e.get(t);n&&(n.destroy(),e.delete(t))})))}createAttachedObject(t){const e=new Map,n=n=>{const r=t(n);r&&e.set(n,r)};for(let t of this.attachedViewers)n(t);const r=this._viewerAttached.don(n),i=this._viewerDetached.don((t=>{if(!e.has(t))return;const n=e.get(t);n&&(n.destroy(),e.delete(t))}));return()=>{i(),r(),(()=>{for(let[t,n]of e.entries())n.destroy();e.clear()})()}}registerAttachedObjectForContainer(t){this.registerAttachedObject((e=>new c(e,t)))}get createdEvent(){return this._createdEvent}get flushEvent(){return this._flushEvent}flush(){this.flushEvent.emit()}get id(){return this._id}_initName(){this.name=`${this.typeName}_${(""+this.id).slice(-4)}`}get defaultProps(){return u.createDefaultProps()}getMainClass(){return this}_innerGetJson(t=!0){const e={id:this.id,type:this.typeName};for(let n of Object.keys(this.defaultProps))if(t){let t,i=this.defaultProps[n];t=i instanceof r.ReactiveVariable?i.equals(this[n]):i===this[n],t||(e[n]=this[n])}else e[n]=this[n];return e}_innerSetJson(t,e,n){if(!(t instanceof Object)||t.type&&t.type!==this.typeName)return void console.error(`value.type && value.type${t.type} !== this.typeName${this.typeName}`);t.id&&t.id!==this.id&&console.warn(`value.id === undefined || value.id${t.id} !== this.id(${this.id})`);const i=e||[];i.push("id","type");const o=Object.keys(this.defaultProps).filter((t=>!i.includes(t)));for(let e of o)if(e in t)this[e]=null===t[e]?void 0:t[e];else if(null==n||!n){let t=this.defaultProps[e];t instanceof r.ReactiveVariable&&(t=t.value),this[e]=t}}get json(){return this._innerGetJson()}set json(t){this._innerSetJson(t)}get _jsonStr(){return JSON.stringify(this.json,null,4)}set _jsonStr(t){this._innerSetJson(JSON.parse(t))}get updateFunc(){return this._updateFuncReact.value}set updateFunc(t){this._updateFuncReact.value=t}get updateFuncChanged(){return this._updateFuncReact.changed}get toDestroyFunc(){return this._toDestroyFuncReact.value}set toDestroyFunc(t){this._toDestroyFuncReact.value=t}get toDestroyFuncChanged(){return this._toDestroyFuncReact.changed}constructor(t){super(),this._components=this.dv(new r.ObservableSet),this._viewerAttached=this.dv(new r.Event),this._viewerDetached=this.dv(new r.Event),this._attachedViewers=(()=>{const t=new Set;return this.d(this._viewerAttached.don((e=>{t.add(e)}))),this.d(this._viewerDetached.don((e=>{t.delete(e)}))),t})(),this._createdEvent=this.dv(new r.Event),this._flushEvent=this.dv(new r.Event),this.viewer=void 0,this.combinationClass=!1,this._updateFuncReact=this.dv((0,r.react)(void 0)),this._toDestroyFuncReact=this.dv((0,r.react)(void 0)),void 0!==t&&("string"!=typeof t?console.warn(`对象id必须是字符串类型,当前id的类型是${typeof t},值为${t}`):""===t.trim()?console.warn("场景对象创建时的id不能是空字符串!"):t.trim()!==t&&console.warn(`id前后有空字符串!id: ${t}`)),this._id=null!=t?t:(0,r.createGuid)(),this._initName();{const t=()=>{if(this.execOnceFuncStr)try{Function(`"use strict";return (${this.execOnceFuncStr})`)()(this)}catch(t){console.warn(`execOnceFuncStr不能转成函数!或者函数执行时错误!id: ${this.id} ${this.typeName} error: ${t}`)}};t(),this.d(this.execOnceFuncStrChanged.don(t))}{const t=()=>{if(this.updateFuncStr)try{this.updateFunc=Function(`"use strict";return (${this.updateFuncStr})`)()}catch(t){console.warn(`updateFuncStr不能转成函数!或者函数执行时错误!id: ${this.id} ${this.typeName} error: ${t}`)}};let e;t(),this.d(this.updateFuncStrChanged.don(t)),this.d((()=>e&&e.destroy())),this.d(this.updateFuncChanged.don((()=>{e&&e.cancel(),this.updateFunc&&(e=e||(0,r.createAnimateFrame)(),e.restart(void 0,(t=>{this.updateFunc&&this.updateFunc(this,t)})))})))}{const t=()=>{try{this.toDestroyFunc=this.toDestroyFuncStr&&Function(`"use strict";return (${this.toDestroyFuncStr})`)()||void 0}catch(t){console.warn(`toDestroyFuncStr不能转成函数!或者函数执行时错误!id: ${this.id} ${this.typeName} error: ${t}`),this.toDestroyFunc=void 0}};t(),this.d(this.toDestroyFuncStrChanged.don(t)),this.d(this.toDestroyEvent.don((()=>{this.toDestroyFunc&&this.toDestroyFunc(this)})))}}getProperties(t){return[new a.VS("ESSceneObject","ESSceneObject",[new a.XB("对象类型","类型(type)",!1,!0,[this,"typeName"]),new a.XB("对象id","唯一标识符(id)",!1,!0,[this,"id"]),new a.XB("对象名称","名称(name)",!1,!1,[this,"name"]),new a.XB("ref","标识(ref),可通过 ESSceneObject.$refs.xxx快速获取到对象",!0,!1,[this,"ref"]),new a.EO("extras","扩展属性,必须整体赋值(extras)",!0,!1,[this,"extras"]),new a.VE("JSON","对象JSON数据动态更改导入导出。",!1,!1,(()=>this._jsonStr),(t=>t&&(this._jsonStr=t)))])]}getESProperties(){return{defaultMenu:"basic",basic:[],general:[],dataSource:[],location:[],coordinate:[],style:[]}}}u.context=new s,u.register=u.context.register.bind(u.context),u.create=u.context.createSceneObject.bind(u.context),u.createFromClass=u.context.createSceneObjectFromClass.bind(u.context),u.createFromJson=u.context.createSceneObjectFromJson.bind(u.context),u.destroySceneObject=u.context.destroySceneObject.bind(u.context),u.getSceneObjById=u.context.getSceneObjectById.bind(u.context),u.getSceneObj=u.context.getSceneObject.bind(u.context),u.getEnv=u.context.getEnv.bind(u.context),u.setEnv=u.context.setEnv.bind(u.context),u.getStrFromEnv=u.context.getStrFromEnv.bind(u.context),u.getSceneObjectById=u.context.getSceneObjectById.bind(u.context),u.getSceneObject=u.context.getSceneObject.bind(u.context),u.defaults={},function(t){t.createDefaultProps=()=>({name:"未命名场景对象",ref:void 0,extras:(0,r.reactJson)(void 0),devTags:(0,r.reactArrayWithUndefined)(void 0),execOnceFuncStr:void 0,updateFuncStr:void 0,toDestroyFuncStr:void 0})}(u||(u={})),(0,r.extendClassProps)(u.prototype,u.createDefaultProps);class c extends r.Destroyable{constructor(t,e){super(),this.dv(new r.ObjResettingWithEvent(t.subContainerChanged,(()=>{if(t.subContainer)return e(t,t.subContainer)})))}}class l extends u{constructor(){super(...arguments),this._editing=this.dv((0,r.react)(!1)),this._deprecated=[],this._flyInEvent=this.dv(new r.Event),this._flyToEvent=this.dv(new r.Event),this._flyOverEvent=this.disposeVar(new r.Event),this._pickedEvent=this.dv(new r.Event),this._calcFlyToParamEvent=this.dv(new r.Event),this._calcFlyInParamEvent=this.dv(new r.Event),this.useCalcFlyToParamInESObjectWithLocation=!1}supportEditingModes(){return this.constructor.supportEditingModes}get editing(){return this._editing.value}set editing(t){this._editing.value=t}get editingChanged(){return this._editing.changed}_deprecatedWarning(){const t=this._deprecated;for(let e=0;e<t.length;e++){const n=t[e];"string"==typeof n?Reflect.has(this,n+"Changed")&&this.d(this[n+"Changed"].don((()=>{console.warn(`注意:${this.typeName} 的 ${n} 属性下版本将会被移除!`)}))):Object.keys(n).forEach((t=>{Reflect.has(this,t+"Changed")&&this.d(this[t+"Changed"].don((e=>{const r=n[t];"string"==typeof r?console.warn(`注意:${this.typeName} 的 ${t} 属性下版本将会被移除!`):Object.keys(r).forEach((n=>{e===n&&console.warn(`注意:${this.typeName} 的 ${t} 属性值 ${n} 下版本将会被移除,推荐使用属性值 ${r[n]}`)}))})))}))}}get flyInEvent(){return this._flyInEvent}flyIn(t=1){this._flyInEvent.emit(t,l._lastFlyInId)}get flyToEvent(){return this._flyToEvent}flyTo(t=1){this._flyToEvent.emit(t,l._lastFlyToId)}get flyOverEvent(){return this._flyOverEvent}get pickedEvent(){return this._pickedEvent}get calcFlyToParamEvent(){return this._calcFlyToParamEvent}calcFlyToParam(){this._calcFlyToParamEvent.emit()}get calcFlyInParamEvent(){return this._calcFlyInParamEvent}calcFlyInParam(){this._calcFlyInParamEvent.emit()}emptyFlyToParam(){this.flyToParam=void 0}emptyFlyInParam(){this.flyInParam=void 0}getBoundSphere(t){return e=this,n=void 0,i=function*(){return yield t.getBoundSphere(this.id)},new((r=void 0)||(r=Promise))((function(t,o){function s(t){try{u(i.next(t))}catch(t){o(t)}}function a(t){try{u(i.throw(t))}catch(t){o(t)}}function u(e){var n;e.done?t(e.value):(n=e.value,n instanceof r?n:new r((function(t){t(n)}))).then(s,a)}u((i=i.apply(e,n||[])).next())}));var e,n,r,i}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{defaultMenu:"general",general:[...t.general,new a.XB("唯一标识","id",!1,!0,[this,"id"]),new a.XB("名称","name",!0,!1,[this,"name"]),new a.uz("是否显示","show",!1,!1,[this,"show"],l.defaults.show),new a.uz("开启碰撞","collision",!1,!1,[this,"collision"],l.defaults.collision),new a.uz("允许拾取","allowPicking",!1,!1,[this,"allowPicking"],l.defaults.allowPicking),new a.YF("保存观察视角","保存当前flyToParam",[],(()=>this.calcFlyToParam()),[]),new a.YF("清空飞向参数","清空飞向参数",[],(()=>this.emptyFlyToParam()),[]),new a.YF("清空飞入参数","清空飞入参数",[],(()=>this.emptyFlyInParam()),[]),new a.YF("保存飞入参数","保存飞入参数flyInParam",[],(()=>this.calcFlyInParam()),[])]})}getProperties(t){return[...super.getProperties(t),new a.VS("ESVisualObject","ESVisualObject",[new a.uz("是否显示","是否显示.",!1,!1,[this,"show"],l.defaults.show),new a.uz("是否开启碰撞监测","collision,是否开启碰撞监测.",!1,!1,[this,"collision"],l.defaults.collision),new a.uz("是否允许拾取","是否允许被鼠标点击拾取.",!1,!1,[this,"allowPicking"],l.defaults.allowPicking),new a.VS("飞行定位","飞向参数",[new a.YF("飞向","飞向",["number"],(t=>this.flyTo(t)),[1]),new a.EO("flyToParam","flyToParam",!0,!1,[this,"flyToParam"],l.defaults.flyToParam),new a.YF("获取当前参数","获取当前flyToParam",[],(()=>this.calcFlyToParam()),[]),new a.du("flyToDistance","flyToDistance",!0,!1,[this,"flyToDistance"],l.defaults.flyToParam.distance),new a.du("flyToHeading","flyToHeading",!0,!1,[this,"flyToHeading"],l.defaults.flyToParam.heading),new a.du("flyToPitch","flyToPitch",!0,!1,[this,"flyToPitch"],l.defaults.flyToParam.pitch),new a.du("flyToFlyDuration","flyToFlyDuration",!0,!1,[this,"flyToFlyDuration"],l.defaults.flyToParam.flyDuration),new a.du("flyToHDelta","flyToHDelta",!0,!1,[this,"flyToHDelta"],l.defaults.flyToParam.hDelta),new a.du("flyToPDelta","flyToPDelta",!0,!1,[this,"flyToPDelta"],l.defaults.flyToParam.pDelta)]),new a.VS("飞入定位","飞入参数",[new a.YF("飞入","飞入",["number"],(t=>this.flyIn(t)),[1]),new a.EO("flyInParam","flyInParam",!0,!1,[this,"flyInParam"],l.defaults.flyInParam),new a.YF("获取当前相机参数","获取当前相机参数",[],(()=>this.calcFlyInParam()),[])])])]}get flyToDistance(){return this.flyToParam&&this.flyToParam.distance}get flyToHeading(){return this.flyToParam&&this.flyToParam.heading}get flyToPitch(){return this.flyToParam&&this.flyToParam.pitch}get flyToFlyDuration(){return this.flyToParam&&this.flyToParam.flyDuration}get flyToHDelta(){return this.flyToParam&&this.flyToParam.hDelta}get flyToPDelta(){return this.flyToParam&&this.flyToParam.pDelta}get flyToDistanceChanged(){return this.flyToParamChanged}get flyToHeadingChanged(){return this.flyToParamChanged}get flyToPitchChanged(){return this.flyToParamChanged}get flyToFlyDurationChanged(){return this.flyToParamChanged}get flyToHDeltaChanged(){return this.flyToParamChanged}get flyToPDeltaChanged(){return this.flyToParamChanged}set flyToDistance(t){var e;this.flyToParam=void 0!==t?Object.assign(Object.assign({},null!==(e=this.flyToParam)&&void 0!==e?e:l.defaults.flyToParam),{distance:t}):void 0}set flyToHeading(t){var e;this.flyToParam=void 0!==t?Object.assign(Object.assign({},null!==(e=this.flyToParam)&&void 0!==e?e:l.defaults.flyToParam),{heading:t}):void 0}set flyToPitch(t){var e;this.flyToParam=void 0!==t?Object.assign(Object.assign({},null!==(e=this.flyToParam)&&void 0!==e?e:l.defaults.flyToParam),{pitch:t}):void 0}set flyToFlyDuration(t){var e;this.flyToParam=void 0!==t?Object.assign(Object.assign({},null!==(e=this.flyToParam)&&void 0!==e?e:l.defaults.flyToParam),{flyDuration:t}):void 0}set flyToHDelta(t){var e;this.flyToParam=void 0!==t?Object.assign(Object.assign({},null!==(e=this.flyToParam)&&void 0!==e?e:l.defaults.flyToParam),{hDelta:t}):void 0}set flyToPDelta(t){var e;this.flyToParam=void 0!==t?Object.assign(Object.assign({},null!==(e=this.flyToParam)&&void 0!==e?e:l.defaults.flyToParam),{pDelta:t}):void 0}}l.supportEditingModes=[],l._lastFlyInId=0,l._lastFlyToId=0,l.defaults=Object.assign(Object.assign({},u.defaults),{show:!0,collision:!0,allowPicking:!1,flyToParam:{distance:0,heading:0,pitch:0,flyDuration:1,hDelta:0,pDelta:0},flyInParam:{position:[0,0,0],rotation:[0,0,0],flyDuration:1}}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},u.createDefaultProps()),{show:!0,collision:!0,allowPicking:!1,flyToParam:(0,r.reactJsonWithUndefined)(void 0),flyInParam:(0,r.reactJsonWithUndefined)(void 0)})}(l||(l={})),(0,r.extendClassProps)(l.prototype,l.createDefaultProps);var h=n(4949);function p(t){let e=0;return function t(n,r){r++,e=Math.max(r,e),n.forEach((e=>{Array.isArray(e)&&t(e,r)}))}(t,0),e}class f extends l{get area(){return this._area.value}get areaChanged(){return this._area.changed}get perimeter(){return this._perimeter.value}get perimeterChanged(){return this._perimeter.changed}_updateArea(){var t;this._area.value=null!==(t=this.getArea())&&void 0!==t?t:0}_updatePerimeter(){var t;this._perimeter.value=null!==(t=this.getPerimeter())&&void 0!==t?t:0}constructor(t){super(t),this._area=this.dv((0,r.react)(0)),this._perimeter=this.dv((0,r.react)(0));const e=()=>{this._updateArea(),this._updatePerimeter()};e(),this.d(this.pointsChanged.don(e))}getArea(){return this.points&&this.points.length>=3?(0,h.mH)([...this.points]):void 0}getDistance(){if(this.points&&this.points.length>=2){const t=(0,h.dh)(this.points,"NONE");return t[t.length-1]}}getPerimeter(){if(this.points&&this.points.length>=3){const t=[...this.points,this.points[0]],e=(0,h.dh)(t,"NONE");return e[e.length-1]}}getIntersect(t){if(this.points&&this.points.length>=3&&t.length>=3){const e=(0,h.t9)(this.points,t);if(!e)return;const n=e[0][0][0];if(Array.isArray(n)){const t=[...e],n=[];return t.forEach((t=>{const e=t[0].map((t=>[...t,0]));n.push(e)})),n}return[[...e][0].map((t=>[...t,0]))]}}getUnion(t){if(this.points&&this.points.length>=3&&t.length>=3){const e=(0,h.j3)(this.points,t);if(!e)return;const n=e[0][0][0];if(Array.isArray(n)){const t=[...e],n=[];return t.forEach((t=>{const e=t[0].map((t=>[...t,0]));n.push(e)})),n}return[[...e][0].map((t=>[...t,0]))]}}getDifference(t){if(this.points&&this.points.length>=3&&t.length>=3){let e=[...t];const n=t[0],r=t[t.length-1];n[0]===r[0]&&n[1]===r[1]&&n[2]===r[2]||e.push(n);const i=(0,h.By)([...this.points,this.points[0]],[...e]);if(!i)return{status:"undefined",positions:void 0};const o=[...i];if(3===p(o)){const t=o.map((t=>t.map((t=>[...t,0]))));if(t.length<=1)return{status:"notIncluded",positions:t};const e=t[0],n=t[1];return"oneBig"===(0,h.VX)([...e],[...n])?{status:"included",positions:t}:{status:"notIncluded",positions:t}}if(4===p(o)){const t=o.map((t=>t.map((t=>t.map((t=>[...t,0])))))),e=[...t],n=[];return e.forEach((t=>{n.push(t[0])})),{status:"notIncluded",positions:n}}return{status:"undefined",positions:void 0}}return{status:"undefined",positions:void 0}}getBuffer(t=500,e){if(this.points&&this.points.length>=2){const n=(0,h.Yd)(this.points,t,e);if(!n)return;return[n[0].map((t=>[...t,0]))]}}geoPolygonOverlap(t){if(this.points&&this.points.length>=3&&t.length>=3){const e=(0,h.VX)(this.points,t);return"oneBig"===e||"twoBig"!==e&&void 0}}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{defaultMenu:"style",coordinate:[...t.coordinate,new a.uz("编辑","编辑",!1,!1,[this,"editing"],!1),new a.EO("位置数组","位置数组(经纬高数组)",!0,!1,[this,"points"],f.defaults.points)],style:[...t.style,new a.VS("点样式","点样式集合",[]),new a.uz("开启","开启点样式",!1,!1,[this,"pointed"],!1),new a.du("点大小","点大小(pointSize)",!1,!1,[this,"pointSize"],1),new a.fX("点类型","点类型(pointSizeType)",!1,!1,[this,"pointSizeType"],[["screen","screen"],["world","world"]],"screen"),new a.DP("点颜色","点颜色(pointColor)",!1,!1,[this,"pointColor"],[1,1,1,1]),new a.VS("线样式","线样式集合",[]),new a.uz("开启","开启线样式",!1,!1,[this,"stroked"],!0),new a.uz("贴地","是否贴地",!1,!1,[this,"strokeGround"],!1),new a.du("线宽","线宽(strokeWidth)",!1,!1,[this,"strokeWidth"],1),new a.fX("线类型","线类型(strokeWidthType)",!1,!1,[this,"strokeWidthType"],[["screen","screen"],["world","world"]],"screen"),new a.DP("线颜色","线颜色(strokeColor)",!1,!1,[this,"strokeColor"],[1,1,1,1]),new a.VS("面样式","面样式集合",[]),new a.uz("开启","开启填充样式",!1,!1,[this,"filled"],!1),new a.uz("贴地","是否贴地",!1,!1,[this,"fillGround"],!1),new a.DP("填充颜色","填充颜色(fillColor)",!1,!1,[this,"fillColor"],[1,1,1,1])]})}getProperties(t){return[...super.getProperties(t),new a.VS("ESGeoVector","ESGeoVector",[new a.uz("是否编辑","是否编辑",!1,!1,[this,"editing"]),new a.EO("位置数组","位置数组(经纬高数组)",!1,!1,[this,"points"]),new a.VS("点样式","点样式",[new a.uz("开启点样式","开启点样式",!1,!1,[this,"pointed"]),new a.du("点大小","点大小(pointSize)",!1,!1,[this,"pointSize"]),new a.fX("点类型","点类型(pointSizeType)",!1,!1,[this,"pointSizeType"],[["screen","screen"],["world","world"]]),new a.DP("点颜色","点颜色(pointColor)",!1,!1,[this,"pointColor"]),new a.XB("点材质","点材质(pointMaterial)",!1,!1,[this,"pointMaterial"]),new a.EO("点材质参数","点材质参数(pointMaterialParams)",!1,!1,[this,"pointMaterialParams"])]),new a.VS("线样式","线样式",[new a.uz("开启线样式","开启线样式",!1,!1,[this,"stroked"]),new a.du("线宽","线宽(strokeWidth)",!1,!1,[this,"strokeWidth"]),new a.fX("线类型","线类型(strokeWidthType)",!1,!1,[this,"strokeWidthType"],[["screen","screen"],["world","world"]]),new a.DP("线颜色","线颜色(strokeColor)",!1,!1,[this,"strokeColor"]),new a.XB("线材质","线材质(strokeMaterial)",!1,!1,[this,"strokeMaterial"]),new a.EO("线材质参数","线材质参数(strokeMaterialParams)",!1,!1,[this,"strokeMaterialParams"]),new a.uz("是否贴地","是否贴地",!1,!1,[this,"strokeGround"])]),new a.VS("填充样式","填充样式",[new a.uz("开启填充样式","开启填充样式",!1,!1,[this,"filled"]),new a.DP("填充颜色","填充颜色(fillColor)",!1,!1,[this,"fillColor"]),new a.XB("面材质","面材质(fillMaterial)",!1,!1,[this,"fillMaterial"]),new a.EO("面材质参数","面材质参数(fillMaterialParams)",!1,!1,[this,"fillMaterialParams"]),new a.uz("是否贴地","是否贴地",!1,!1,[this,"fillGround"])])])]}get pointSize(){return this.pointStyle.size}set pointSize(t){this.pointStyle=Object.assign(Object.assign({},this.pointStyle),{size:t})}get pointSizeChanged(){return this.pointStyleChanged}get pointSizeType(){return this.pointStyle.sizeType}set pointSizeType(t){this.pointStyle=Object.assign(Object.assign({},this.pointStyle),{sizeType:t})}get pointSizeTypeChanged(){return this.pointStyleChanged}get pointColor(){return this.pointStyle.color}set pointColor(t){this.pointStyle=Object.assign(Object.assign({},this.pointStyle),{color:[...t]})}get pointColorChanged(){return this.pointStyleChanged}get pointMaterial(){return this.pointStyle.material}set pointMaterial(t){this.pointStyle=Object.assign(Object.assign({},this.pointStyle),{material:t})}get pointMaterialChanged(){return this.pointStyleChanged}get pointMaterialParams(){return this.pointStyle.materialParams}set pointMaterialParams(t){this.pointStyle=Object.assign(Object.assign({},this.pointStyle),{materialParams:t})}get pointMaterialParamsChanged(){return this.pointStyleChanged}get strokeWidth(){return this.strokeStyle.width}set strokeWidth(t){this.strokeStyle=Object.assign(Object.assign({},this.strokeStyle),{width:t})}get strokeWidthChanged(){return this.strokeStyleChanged}get strokeWidthType(){return this.strokeStyle.widthType}set strokeWidthType(t){this.strokeStyle=Object.assign(Object.assign({},this.strokeStyle),{widthType:t})}get strokeWidthTypeChanged(){return this.strokeStyleChanged}get strokeColor(){return this.strokeStyle.color}set strokeColor(t){this.strokeStyle=Object.assign(Object.assign({},this.strokeStyle),{color:[...t]})}get strokeColorChanged(){return this.strokeStyleChanged}get strokeMaterial(){return this.strokeStyle.material}set strokeMaterial(t){this.strokeStyle=Object.assign(Object.assign({},this.strokeStyle),{material:t})}get strokeMaterialChanged(){return this.strokeStyleChanged}get strokeMaterialParams(){return this.strokeStyle.materialParams}set strokeMaterialParams(t){this.strokeStyle=Object.assign(Object.assign({},this.strokeStyle),{materialParams:t})}get strokeMaterialParamsChanged(){return this.strokeStyleChanged}get strokeGround(){return this.strokeStyle.ground}set strokeGround(t){this.strokeStyle=Object.assign(Object.assign({},this.strokeStyle),{ground:t})}get strokeGroundChanged(){return this.strokeStyleChanged}get fillColor(){return this.fillStyle.color}set fillColor(t){this.fillStyle=Object.assign(Object.assign({},this.fillStyle),{color:[...t]})}get fillColorChanged(){return this.fillStyleChanged}get fillMaterial(){return this.fillStyle.material}set fillMaterial(t){this.fillStyle=Object.assign(Object.assign({},this.fillStyle),{material:t})}get fillMaterialChanged(){return this.fillStyleChanged}get fillMaterialParams(){return this.fillStyle.materialParams}set fillMaterialParams(t){this.fillStyle=Object.assign(Object.assign({},this.fillStyle),{materialParams:t})}get fillMaterialParamsChanged(){return this.fillStyleChanged}get fillGround(){return this.fillStyle.ground}set fillGround(t){this.fillStyle=Object.assign(Object.assign({},this.fillStyle),{ground:t})}get fillGroundChanged(){return this.fillStyleChanged}}f.supportEditingModes=[...l.supportEditingModes,a.EH.Translation],f.defaults=Object.assign(Object.assign({},l.defaults),{points:[],pointStyle:{size:1,sizeType:"screen",color:[1,1,1,1],material:"",materialParams:{}},strokeStyle:{width:1,widthType:"screen",color:[1,1,1,1],material:"",materialParams:{},ground:!1},fillStyle:{color:[1,1,1,1],material:"",materialParams:{},ground:!1},pointed:!1,stroked:!1,filled:!1}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},l.createDefaultProps()),{pointed:!1,pointStyle:(0,r.reactJson)(t.defaults.pointStyle),stroked:!1,strokeStyle:(0,r.reactJson)(t.defaults.strokeStyle),filled:!1,fillStyle:(0,r.reactJson)(t.defaults.fillStyle),points:(0,r.reactPositions)(void 0)})}(f||(f={})),(0,r.extendClassProps)(f.prototype,f.createDefaultProps);class d extends l{constructor(){super(...arguments),this._statusDis=this.dv((0,r.react)(!0)),this._smoothMoveEvent=this.dv(new r.Event),this._smoothMoveWithRotationEvent=this.dv(new r.Event),this._smoothMoveOnGroundEvent=this.dv(new r.Event),this._smoothMoveWithRotationOnGroundEvent=this.dv(new r.Event),this._automaticLandingEvent=this.dv(new r.Event),this._smoothMoveKeepPitchEvent=this.dv(new r.Event),this._smoothMoveRelativelyEvent=this.dv(new r.Event),this._smoothMoveRelativelyWithRotationEvent=this.dv(new r.Event),this.useCalcFlyToParamInESObjectWithLocation=!0}get statusDis(){return this._statusDis.value}get statusDisChanged(){return this._statusDis.changed}get smoothMoveEvent(){return this._smoothMoveEvent}smoothMove(t,e){this._smoothMoveEvent.emit(t,e)}get smoothMoveWithRotationEvent(){return this._smoothMoveWithRotationEvent}smoothMoveWithRotation(t,e,n){this._smoothMoveWithRotationEvent.emit(t,e,n)}get smoothMoveOnGroundEvent(){return this._smoothMoveOnGroundEvent}smoothMoveOnGround(t,e,n,r){this._smoothMoveOnGroundEvent.emit(t,e,n,r)}get smoothMoveWithRotationOnGroundEvent(){return this._smoothMoveWithRotationOnGroundEvent}smoothMoveWithRotationOnGround(t,e,n,r,i){this._smoothMoveWithRotationOnGroundEvent.emit(t,e,n,r,i)}get automaticLandingEvent(){return this._automaticLandingEvent}automaticLanding(){const t=this.collision;this.collision=!1,setTimeout((()=>{this._automaticLandingEvent.emit(t)}),100)}get smoothMoveKeepPitchEvent(){return this._smoothMoveKeepPitchEvent}smoothMoveKeepPitch(t,e){this._smoothMoveKeepPitchEvent.emit(t,e)}get smoothMoveRelativelyEvent(){return this._smoothMoveRelativelyEvent}smoothMoveRelatively(t,e){this._smoothMoveRelativelyEvent.emit(t,e)}get smoothMoveRelativelyWithRotationEvent(){return this._smoothMoveRelativelyWithRotationEvent}smoothMoveRelativelyWithRotation(t,e,n){this._smoothMoveRelativelyWithRotationEvent.emit(t,e,n)}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{defaultMenu:"basic",location:[...t.location,new a.uz("是否编辑","是否编辑",!1,!1,[this,"editing"]),new a.YF("自动落地","自动落地",[],(()=>this.automaticLanding()),[]),new a.j_("位置数组","经度,纬度,高度,度为单位",!1,!1,[this,"position"],[0,0,0]),new a.qp("姿态数组","偏航角,俯仰角,翻转角,度为单位",!1,!1,[this,"rotation"],[0,0,0]),new a._C("缩放","缩放",!1,!1,[this,"scale"],[1,1,1]),new a.du("最小可见距离","单位米",!1,!1,[this,"minVisibleDistance"],0),new a.du("最大可见距离","单位米",!1,!1,[this,"maxVisibleDistance"],0)]})}getProperties(t){return[...super.getProperties(t),new a.VS("位置姿态对象","位置姿态对象ESObjectWithLocation",[new a.YF("平滑移动","smoothMove",["numbers","number"],((t,e)=>this.smoothMove(t,e)),[[0,0,0],0]),new a.YF("固定方向平滑移动","smoothMoveKeepPitch",["numbers","number"],((t,e)=>this.smoothMoveKeepPitch(t,e)),[[0,0,0],0]),new a.YF("平滑偏移","smoothMoveWithRotation",["numbers","numbers","number"],((t,e,n)=>this.smoothMoveWithRotation(t,e,n)),[[0,0,0],[0,0,0],0]),new a.YF("贴地平滑移动","smoothMoveOnGround",["number","number","number","string"],((t,e,n,r)=>this.smoothMoveOnGround(t,e,n,r)),[0,0,0,""]),new a.YF("贴地平滑偏移","smoothMoveWithRotationOnGround",["numbers","number","number","number","string"],((t,e,n,r,i)=>this.smoothMoveWithRotationOnGround(t,e,n,r,i)),[[0,0,0],0,0,0,""]),new a.YF("smoothMoveRelatively","smoothMoveRelatively",["numbers","number"],((t,e)=>this.smoothMoveRelatively(t,e)),[[0,0,0],0]),new a.YF("smoothMoveRelativelyWithRotation","smoothMoveRelativelyWithRotation",["numbers","numbers","number"],((t,e,n)=>this.smoothMoveRelativelyWithRotation(t,e,n)),[[0,0,0],[0,0,0],0]),new a.j_("位置数组","经度,纬度,高度,度为单位",!1,!1,[this,"position"]),new a.qp("姿态数组","偏航角,俯仰角,翻转角,度为单位",!1,!1,[this,"rotation"]),new a._C("缩放","缩放",!1,!1,[this,"scale"]),new a.uz("是否编辑","是否开启编辑状态",!0,!1,[this,"editing"],!1),new a.du("最小可见距离","单位米",!1,!1,[this,"minVisibleDistance"]),new a.du("最大可见距离","单位米",!1,!1,[this,"maxVisibleDistance"]),new a.uz("是否应用距离显隐","是否应用距离显隐",!1,!1,[this,"enableVisibleDistance"])])]}}d.supportEditingModes=[...l.supportEditingModes,a.EH.Place,a.EH.Translation,a.EH.Rotation,a.EH.Scale,a.EH.DoublePointsAppend,a.EH.DoublePointsModify],d.defaults=Object.assign({},l.defaults),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},l.createDefaultProps()),{position:(0,r.reactArray)([0,0,0]),rotation:(0,r.reactArray)([0,0,0]),scale:(0,r.reactArray)([1,1,1]),minVisibleDistance:(0,r.react)(0),maxVisibleDistance:(0,r.react)(0)})}(d||(d={})),(0,r.extendClassProps)(d.prototype,d.createDefaultProps);class g extends d{getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{style:[...t.style,new a.VS("点样式","点样式集合",[]),new a.uz("开启点样式","开启点样式",!1,!1,[this,"pointed"],!1),new a.du("点大小","点大小(pointSize)",!1,!1,[this,"pointSize"],1),new a.fX("点类型","点类型(pointSizeType)",!1,!1,[this,"pointSizeType"],[["screen","screen"],["world","world"]],"screen"),new a.DP("点颜色","点颜色(pointColor)",!1,!1,[this,"pointColor"],[1,1,1,1]),new a.VS("线样式","线样式集合",[]),new a.uz("开启线样式","开启线样式",!1,!1,[this,"stroked"],!1),new a.uz("是否贴地(线)","是否贴地(线)",!1,!1,[this,"strokeGround"],!1),new a.du("线宽","线宽(strokeWidth)",!1,!1,[this,"strokeWidth"],1),new a.fX("线类型","线类型(strokeWidthType)",!1,!1,[this,"strokeWidthType"],[["screen","screen"],["world","world"]],"screen"),new a.DP("线颜色","线颜色(strokeColor)",!1,!1,[this,"strokeColor"],[1,1,1,1]),new a.VS("面样式","面样式集合",[]),new a.uz("开启填充样式","开启填充样式",!1,!1,[this,"filled"],!1),new a.uz("是否贴地","是否贴地",!1,!1,[this,"fillGround"],!1),new a.DP("填充颜色","填充颜色(fillColor)",!1,!1,[this,"fillColor"],[1,1,1,1])]})}getProperties(t){return[...super.getProperties(t),new a.VS("ESLocalVector","ESLocalVector",[new a.EO("点样式","点样式(pointMaterialParams)",!1,!1,[this,"pointStyle"]),new a.EO("线样式","线样式(strokeMaterialParams)",!1,!1,[this,"strokeStyle"]),new a.EO("填充样式","填充样式(fillMaterialParams)",!1,!1,[this,"fillStyle"]),new a.VS("点样式","点样式",[new a.uz("开启点样式","开启点样式",!1,!1,[this,"pointed"]),new a.du("点大小","点大小(pointSize)",!1,!1,[this,"pointSize"]),new a.fX("点类型","点类型(pointSizeType)",!1,!1,[this,"pointSizeType"],[["screen","screen"],["world","world"]]),new a.DP("点颜色","点颜色(pointColor)",!1,!1,[this,"pointColor"]),new a.XB("点材质","点材质(pointMaterial)",!1,!1,[this,"pointMaterial"]),new a.EO("点材质参数","点材质参数(pointMaterialParams)",!1,!1,[this,"pointMaterialParams"])]),new a.VS("线样式","线样式",[new a.uz("开启线样式","开启线样式",!1,!1,[this,"stroked"]),new a.du("线宽","线宽(strokeWidth)",!1,!1,[this,"strokeWidth"]),new a.fX("线类型","线类型(strokeWidthType)",!1,!1,[this,"strokeWidthType"],[["screen","screen"],["world","world"]]),new a.DP("线颜色","线颜色(strokeColor)",!1,!1,[this,"strokeColor"]),new a.XB("线材质","线材质(strokeMaterial)",!1,!1,[this,"strokeMaterial"]),new a.EO("线材质参数","线材质参数(strokeMaterialParams)",!1,!1,[this,"strokeMaterialParams"]),new a.uz("是否贴地(线)","是否贴地(线)",!1,!1,[this,"strokeGround"],!1)]),new a.VS("填充样式","填充样式",[new a.uz("开启填充样式","开启填充样式",!1,!1,[this,"filled"]),new a.DP("填充颜色","填充颜色(fillColor)",!1,!1,[this,"fillColor"]),new a.XB("面材质","面材质(fillMaterial)",!1,!1,[this,"fillMaterial"]),new a.EO("面材质参数","面材质参数(fillMaterialParams)",!1,!1,[this,"fillMaterialParams"]),new a.uz("是否贴地","是否贴地",!1,!1,[this,"fillGround"])])])]}get pointSize(){return this.pointStyle.size}set pointSize(t){this.pointStyle=Object.assign(Object.assign({},this.pointStyle),{size:t})}get pointSizeChanged(){return this.pointStyleChanged}get pointSizeType(){return this.pointStyle.sizeType}set pointSizeType(t){this.pointStyle=Object.assign(Object.assign({},this.pointStyle),{sizeType:t})}get pointSizeTypeChanged(){return this.pointStyleChanged}get pointColor(){return this.pointStyle.color}set pointColor(t){this.pointStyle=Object.assign(Object.assign({},this.pointStyle),{color:[...t]})}get pointColorChanged(){return this.pointStyleChanged}get pointMaterial(){return this.pointStyle.material}set pointMaterial(t){this.pointStyle=Object.assign(Object.assign({},this.pointStyle),{material:t})}get pointMaterialChanged(){return this.pointStyleChanged}get pointMaterialParams(){return this.pointStyle.materialParams}set pointMaterialParams(t){this.pointStyle=Object.assign(Object.assign({},this.pointStyle),{materialParams:t})}get pointMaterialParamsChanged(){return this.pointStyleChanged}get strokeWidth(){return this.strokeStyle.width}set strokeWidth(t){this.strokeStyle=Object.assign(Object.assign({},this.strokeStyle),{width:t})}get strokeWidthChanged(){return this.strokeStyleChanged}get strokeWidthType(){return this.strokeStyle.widthType}set strokeWidthType(t){this.strokeStyle=Object.assign(Object.assign({},this.strokeStyle),{widthType:t})}get strokeWidthTypeChanged(){return this.strokeStyleChanged}get strokeColor(){return this.strokeStyle.color}set strokeColor(t){this.strokeStyle=Object.assign(Object.assign({},this.strokeStyle),{color:[...t]})}get strokeColorChanged(){return this.strokeStyleChanged}get strokeMaterial(){return this.strokeStyle.material}set strokeMaterial(t){this.strokeStyle=Object.assign(Object.assign({},this.strokeStyle),{material:t})}get strokeMaterialChanged(){return this.strokeStyleChanged}get strokeMaterialParams(){return this.strokeStyle.materialParams}set strokeMaterialParams(t){this.strokeStyle=Object.assign(Object.assign({},this.strokeStyle),{materialParams:t})}get strokeMaterialParamsChanged(){return this.strokeStyleChanged}get strokeGround(){return this.strokeStyle.ground}set strokeGround(t){this.strokeStyle=Object.assign(Object.assign({},this.strokeStyle),{ground:t})}get strokeGroundChanged(){return this.strokeStyleChanged}get fillColor(){return this.fillStyle.color}set fillColor(t){this.fillStyle=Object.assign(Object.assign({},this.fillStyle),{color:[...t]})}get fillColorChanged(){return this.fillStyleChanged}get fillMaterial(){return this.fillStyle.material}set fillMaterial(t){this.fillStyle=Object.assign(Object.assign({},this.fillStyle),{material:t})}get fillMaterialChanged(){return this.fillStyleChanged}get fillMaterialParams(){return this.fillStyle.materialParams}set fillMaterialParams(t){this.fillStyle=Object.assign(Object.assign({},this.fillStyle),{materialParams:t})}get fillMaterialParamsChanged(){return this.fillStyleChanged}get fillGround(){return this.fillStyle.ground}set fillGround(t){this.fillStyle=Object.assign(Object.assign({},this.fillStyle),{ground:t})}get fillGroundChanged(){return this.fillStyleChanged}}g.defaults=Object.assign(Object.assign({},d.defaults),{pointStyle:{size:1,sizeType:"screen",color:[1,1,1,1],material:"",materialParams:{}},strokeStyle:{width:1,widthType:"screen",color:[1,1,1,1],material:"",materialParams:{},ground:!1},fillStyle:{color:[1,1,1,1],material:"",materialParams:{},ground:!1},pointed:!1,stroked:!1,filled:!1}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},d.createDefaultProps()),{pointed:!1,pointStyle:(0,r.reactJson)(t.defaults.pointStyle),stroked:!1,strokeStyle:(0,r.reactJson)(t.defaults.strokeStyle),filled:!1,fillStyle:(0,r.reactJson)(t.defaults.fillStyle)})}(g||(g={})),(0,r.extendClassProps)(g.prototype,g.createDefaultProps);class y extends g{getESProperties(){return Object.assign({},super.getESProperties())}getProperties(t){return[...super.getProperties(t)]}}y.defaults=Object.assign({},g.defaults),function(t){t.createDefaultProps=()=>Object.assign({},g.createDefaultProps())}(y||(y={})),(0,r.extendClassProps)(y.prototype,y.createDefaultProps);const v=[["固定朝向",0],["面向屏幕旋转",1],["绕自身Z轴旋转",2]],m=[["单面不透明",0],["双面不透明",1],["单面遮罩",2],["双面遮罩",3],["单面透明",4],["双面透明",5],["单面未遮挡透明",6],["双面未遮挡透明",7]];class _ extends d{constructor(){super(...arguments),this._widgetEvent=this.dv(new r.Event)}get widgetEvent(){return this._widgetEvent}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.uz("屏幕渲染","是否开启屏幕渲染模式",!1,!1,[this,"screenRender"],!0),new a.uz("尺寸自适应","尺寸是否根据内容自动计算",!1,!1,[this,"sizeByContent"],!0),new a.RD("尺寸大小","尺寸自适应关闭才会生效",!1,!1,[this,"size"],[100,100]),new a.RD("偏移比例","偏移比例(anchor)",!1,!1,[this,"anchor"],[.5,1]),new a.RD("像素偏移","像素偏移(offset)",!1,!1,[this,"offset"],[0,0]),new a.fX("渲染模式","八种渲染模式(0~7),当Widget中透明度只有(0,1)两种时可以选择2",!1,!1,[this,"renderMode"],m,0),new a.fX("漫游旋转类型","三种漫游旋转类型(0,1,2)",!1,!1,[this,"rotationType"],v,1),new a.VS("ue","ue",[]),new a.XB("绑定对象","actorTag",!1,!1,[this,"actorTag"]),new a.XB("插槽名称","socketName",!1,!1,[this,"socketName"]),new a._C("位置偏移","positionOffset(米)",!1,!1,[this,"positionOffset"]),new a._C("相对姿态","rotationOffset(米)",!1,!1,[this,"rotationOffset"])]})}getProperties(t){return[...super.getProperties(t),new a.VS("标签属性","标签对象ESLabel的属性",[new a.uz("屏幕渲染","是否开启屏幕渲染模式",!1,!1,[this,"screenRender"],!0),new a.uz("尺寸自适应","尺寸是否根据内容自动计算",!1,!1,[this,"sizeByContent"],!0),new a.RD("尺寸大小","尺寸自适应关闭才会生效",!1,!1,[this,"size"],[100,100]),new a.RD("偏移比例","偏移比例(anchor)",!1,!1,[this,"anchor"],[.5,1]),new a.RD("像素偏移","像素偏移(offset)",!1,!1,[this,"offset"],[0,0]),new a.fX("渲染模式","八种渲染模式(0~7),当Widget中透明度只有(0,1)两种时可以选择2",!1,!1,[this,"renderMode"],m,0),new a.fX("漫游旋转类型","三种漫游旋转类型(0,1,2)",!1,!1,[this,"rotationType"],v,1),new a.du("排序","zOrder排序",!1,!1,[this,"zOrder"],0)])]}}var b,w,E,x,P,S,O;_.defaults=Object.assign(Object.assign({},d.defaults),{screenRender:!0,size:[100,100],anchor:[.5,.5],sizeByContent:!0,renderMode:0,rotationType:1}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},d.createDefaultProps()),{screenRender:!0,size:(0,r.reactArray)([100,100]),anchor:(0,r.reactArray)([.5,1]),offset:(0,r.reactArray)([0,0]),sizeByContent:!0,renderMode:0,rotationType:1,zOrder:0,actorTag:"",socketName:"",positionOffset:(0,r.reactArray)([0,0,0]),rotationOffset:(0,r.reactArray)([0,0,0])})}(_||(_={})),(0,r.extendClassProps)(_.prototype,_.createDefaultProps);class C extends l{constructor(){super(...arguments),this._refreshTilesetEvent=this.dv(new r.Event),this._tilesetReadyEvent=this.dv(new r.Event),this._supportEdit=this.dv((0,r.react)(!0)),this._highlightFeatureEvent=this.dv(new r.Event),this._highlightFeatureAndFlyToEvent=this.dv(new r.Event),this._getFeatureTableEvent=this.dv(new r.Event),this._featureTableResultEvent=this.dv(new r.Event),this._setFeatureStyleEvent=this.dv(new r.Event),this._setFeatureColorEvent=this.dv(new r.Event),this._setFeatureVisableEvent=this.dv(new r.Event),this._resetFeatureStyleEvent=this.dv(new r.Event),this._setMaterialEvent=this.disposeVar(new r.Event),this._clippingPlanesId=this.dv((0,r.react)("")),this._clippingPlaneIds=this.dv((0,r.react)([])),this._flattenedPlaneId=this.dv((0,r.react)("")),this._flattenedPlaneEnabled=this.dv((0,r.react)(!1)),this._clippingPlaneId=this.dv((0,r.react)("")),this._excavateId=this.dv((0,r.reactArray)([]))}get typeName(){return"ES3DTileset"}get defaultProps(){return C.createDefaultProps()}get refreshTilesetEvent(){return this._refreshTilesetEvent}refreshTileset(){this._refreshTilesetEvent.emit()}get tilesetReady(){return this._tilesetReadyEvent}get supportEdit(){return this._supportEdit.value}set supportEdit(t){this._supportEdit.value=t}get supportEditChanged(){return this._supportEdit.changed}get highlightFeatureEvent(){return this._highlightFeatureEvent}highlightFeature(t,e){this._highlightFeatureEvent.emit(t,e)}get highlightFeatureAndFlyToEvent(){return this._highlightFeatureAndFlyToEvent}highlightFeatureAndFlyTo(t,e,n,r){this._highlightFeatureAndFlyToEvent.emit(t,e,n,r)}get getFeatureTableEvent(){return this._getFeatureTableEvent}getFeatureTable(){return Promise.race([new Promise((t=>{const e=this.d(this._featureTableResultEvent.donce(t));this._getFeatureTableEvent.emit(),setTimeout((()=>{e(),t(void 0)}),2e3)}))])}get setFeatureStyleEvent(){return this._setFeatureStyleEvent}setFeatureStyle(t){this._setFeatureStyleEvent.emit(t)}get setFeatureColorEvent(){return this._setFeatureColorEvent}setFeatureColor(t,e){this._setFeatureColorEvent.emit(t,"string"==typeof e?JSON.parse(e):e)}get setFeatureVisableEvent(){return this._setFeatureVisableEvent}setFeatureVisable(t,e){this._setFeatureVisableEvent.emit(t,"string"==typeof e?JSON.parse(e):e)}get resetFeatureStyleEvent(){return this._resetFeatureStyleEvent}resetFeatureStyle(){this._resetFeatureStyleEvent.emit()}get setMaterialEvent(){return this._setMaterialEvent}setMaterial(t){this._setMaterialEvent.emit(t)}get clippingPlanesId(){return this._clippingPlanesId.value}set clippingPlanesId(t){this._clippingPlanesId.value=t}get clippingPlanesIdChanged(){return this._clippingPlanesId.changed}get clippingPlaneIds(){return this._clippingPlaneIds.value}set clippingPlaneIds(t){this._clippingPlaneIds.value=t}get clippingPlaneIdsChanged(){return this._clippingPlaneIds.changed}get flattenedPlaneId(){return this._flattenedPlaneId.value}set flattenedPlaneId(t){this._flattenedPlaneId.value=t}get flattenedPlaneIdChanged(){return this._flattenedPlaneId.changed}get flattenedPlaneEnabled(){return this._flattenedPlaneEnabled.value}set flattenedPlaneEnabled(t){this._flattenedPlaneEnabled.value=t}get flattenedPlaneEnabledChanged(){return this._flattenedPlaneEnabled.changed}get clippingPlaneId(){return this._clippingPlaneId.value}set clippingPlaneId(t){this._clippingPlaneId.value=t}get clippingPlaneIdChanged(){return this._clippingPlaneId.changed}get excavateId(){return this._excavateId.value}set excavateId(t){this._excavateId.value=t}get excavateIdChanged(){return this._excavateId.changed}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{defaultMenu:"dataSource",basic:[...t.basic,new a.Cs("精度","精度.",!1,!1,[this,"maximumScreenSpaceError"],1,[0,256],16),new a.fX("材质模式","materialMode",!0,!1,[this,"materialMode"],C.defaults.materialModes,"normal"),new a.fX("颜色模式","颜色混合模式",!1,!1,[this,"colorBlendMode"],[["默认","HIGHLIGHT"],["替换","REPLACE"],["混合","MIX"]],"HIGHLIGHT")],dataSource:[...t.dataSource,new a.EO("服务地址","服务地址",!0,!1,[this,"url"],C.defaults.url)],coordinate:[...t.coordinate,new a.uz("编辑","编辑",!0,!1,[this,"editing"],!1),new a._C("偏移","偏移量",!0,!1,[this,"offset"],[0,0,0]),new a.qp("旋转","旋转",!1,!1,[this,"rotation"],[0,0,0])]})}getProperties(t){return[...super.getProperties(t),new a.VS("ES3DTileset","ES3DTileset",[new a.EO("服务地址","服务地址",!1,!1,[this,"url"],C.defaults.url),new a.fX("materialMode","materialMode",!1,!1,[this,"materialMode"],C.defaults.materialModes),new a.EO("materialParams","materialParams",!1,!1,[this,"materialParams"],C.defaults.materialParams),new a.du("maximumScreenSpaceError","显示精度,maximumScreenSpaceError",!1,!1,[this,"maximumScreenSpaceError"]),new a.uz("编辑","编辑",!1,!1,[this,"editing"],!1),new a.j_("offset","offset",!0,!1,[this,"offset"]),new a.j_("rotation","rotation",!1,!1,[this,"rotation"]),new a.Cs("精度","精度.",!1,!1,[this,"maximumScreenSpaceError"],1,[0,256],16),new a.YF("highlightFeature","highlightFeature",["string","string"],((t,e)=>this.highlightFeature(t,e)),["","rgba(255,0,0,1)"]),new a.YF("setFeatureColor","setFeatureColor",["string","string"],((t,e)=>this.setFeatureColor(t,e)),["",""]),new a.YF("setFeatureVisable","setFeatureVisable",["string","string"],((t,e)=>this.setFeatureVisable(t,e)),["",""]),new a.YF("resetFeatureStyle","resetFeatureStyle",[],(()=>this.resetFeatureStyle()),[]),new a.VS("ue","ue",[new a.YF("refreshTileset","refreshTileset",[],(()=>this.refreshTileset()),[]),new a.XB("actorTag","actorTag",!1,!1,[this,"actorTag"]),new a.uz("是否高亮","是否高亮.",!1,!1,[this,"highlight"]),new a.DP("highlightColor"," highlightColor.",!1,!1,[this,"highlightColor"]),new a.du("highlightID","highlightID",!1,!1,[this,"highlightID"])]),new a.VS("czm","czm",[new a.VS("可视化","可视化",[new a.RD("czmImageBasedLightingFactor","散射强度 ,imageBasedLightingFactor",!1,!1,[this,"czmImageBasedLightingFactor"]),new a.du("czmLuminanceAtZenith","材质底色 ,luminanceAtZenith",!1,!1,[this,"czmLuminanceAtZenith"]),new a.du("czmAtmosphereScatteringIntensity","材质底色 ,atmosphereScatteringIntensity",!1,!1,[this,"czmAtmosphereScatteringIntensity"]),new a.du("czmMaximumMemoryUsage","最大内存,maximumMemoryUsage",!1,!1,[this,"czmMaximumMemoryUsage"])]),new a.VS("常用","常用",[new a.fX("czmClassificationType","Determines whether terrain, 3D Tiles or both will be classified by this tileset. See Cesium3DTileset#czmClassificationType for details about restrictions and limitations.",!0,!1,[this,"czmClassificationType"],[["NONE","NONE"],["TERRAIN","TERRAIN"],["CESIUM_3D_TILE","CESIUM_3D_TILE"],["BOTH","BOTH"]]),new a.EO("czmStyle","czmStyle",!1,!1,[this,"czmStyleJson"]),new a.uz("czmBackFaceCulling","czmBackFaceCulling",!1,!1,[this,"czmBackFaceCulling"]),new a.uz("czmSkipLevelOfDetail","czmSkipLevelOfDetail",!1,!1,[this,"czmSkipLevelOfDetail"]),new a.fX("colorBlendMode","颜色混合模式",!1,!1,[this,"colorBlendMode"],[["HIGHLIGHT","HIGHLIGHT"],["REPLACE","REPLACE"],["MIX","MIX"]],"HIGHLIGHT"),new a.du("cacheBytes","最大缓存占用,超过的会自动卸载,但是视野范围内能看见的保留。单位字节。Cesium1.110(含)以后的版本起作用。",!1,!1,[this,"cacheBytes"],536870912)]),new a.VS("调试信息","调试信息",[new a.uz("czmDebugShowBoundingVolume","For debugging only.When true, renders the bounding volume for each tile.",!1,!1,[this,"czmDebugShowBoundingVolume"]),new a.uz("czmDebugShowContentBoundingVolume","czmDebugShowContentBoundingVolume.",!1,!1,[this,"czmDebugShowContentBoundingVolume"])]),new a.VS("clippingPlanes","clippingPlanes",[new a.uz("clippingPlaneEnabled","clippingPlaneEnabled",!1,!1,[this,"clippingPlaneEnabled"]),new a.uz("unionClippingRegions","unionClippingRegions",!1,!1,[this,"unionClippingRegions"]),new a.DP("clippingPlaneEdgeColor","clippingPlaneEdgeColor",!1,!1,[this,"clippingPlaneEdgeColor"]),new a.du("clippingPlaneEdgeWidth","clippingPlaneEdgeWidth",!1,!1,[this,"clippingPlaneEdgeWidth"])])])])]}}b=C,C.type=b.register("ES3DTileset",b,{chsName:"3DTileset",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"3DTileset"}),C.supportEditingModes=[...l.supportEditingModes,a.EH.Translation,a.EH.Rotation],C.defaults=Object.assign(Object.assign({},l.defaults),{url:"",actorTag:"",materialMode:"normal",materialModes:[["常规","normal"],["科技感","technology"]],offset:[0,0,0],materialParams:{baseColor:[0,.5,1]},cacheBytes:536870912}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},l.createDefaultProps()),{url:"",actorTag:"",materialMode:"normal",highlight:!1,maximumScreenSpaceError:16,highlightID:0,highlightColor:(0,r.reactArray)([1,0,0,1]),offset:(0,r.reactArrayWithUndefined)(void 0),rotation:(0,r.reactArray)([0,0,0]),czmImageBasedLightingFactor:(0,r.reactArray)([1,1]),czmLuminanceAtZenith:2,czmAtmosphereScatteringIntensity:2,czmMaximumMemoryUsage:512,czmClassificationType:"NONE",czmStyleJson:(0,r.reactJson)({}),czmBackFaceCulling:!0,czmDebugShowBoundingVolume:!1,czmDebugShowContentBoundingVolume:!1,czmSkipLevelOfDetail:!1,cacheBytes:536870912,colorBlendMode:"HIGHLIGHT",clippingPlaneEnabled:!0,unionClippingRegions:!0,clippingPlaneEdgeColor:(0,r.reactArray)([1,1,1,1]),clippingPlaneEdgeWidth:2,materialParams:{baseColor:[0,.5,1]},allowPicking:!0})}(C||(C={})),(0,r.extendClassProps)(C.prototype,C.createDefaultProps);class M extends d{get typeName(){return"ESAlarm"}get defaultProps(){return M.createDefaultProps()}get isFlyInCreated(){return this._isFlyInCreated.value}set isFlyInCreated(t){this._isFlyInCreated.value=t}get isFlyInCreatedChanged(){return this._isFlyInCreated.changed}constructor(t){super(t),this._isFlyInCreated=this.dv((0,r.react)(!1)),this.collision=!1,this.d(this.createdEvent.don((()=>{setTimeout((()=>{var t;if(null!==(t=this.editing)&&void 0!==t&&t||!this.position){const t=this.dv((0,r.createNextAnimateFrameEvent)(this.positionChanged,this.editingChanged));this.d(t.donce((()=>{!this.editing&&this.position&&this.isFlyInCreated&&this.flyTo()})))}else{if(!this.isFlyInCreated)return;this.flyTo()}}),1e3)})))}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.fX("模式","mode",!1,!1,[this,"mode"],M.defaults.modes,"cylinder"),new a.du("半径","radius",!1,!1,[this,"radius"],10)]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.fX("mode","mode",!1,!1,[this,"mode"],M.defaults.modes),new a.du("半径","radius",!1,!1,[this,"radius"])])]}}w=M,M.type=w.register("ESAlarm",w,{chsName:"报警",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"警告类"}),M.defaults=Object.assign(Object.assign({},d.defaults),{modes:[["柱状警告","cylinder"],["圆形警告","circle"]],radius:100,czmAnimations:[{index:0,loop:"REPEAT",animationTime:"(duration) => Date.now() / 1000 / duration * 2"}]}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},d.createDefaultProps()),{mode:"cylinder",radius:10})}(M||(M={})),(0,r.extendClassProps)(M.prototype,M.createDefaultProps);class I extends d{get typeName(){return"ESApertureEffect"}get defaultProps(){return I.createDefaultProps()}constructor(t){super(t),this.collision=!1}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.du("半径","radius",!1,!1,[this,"radius"],1)]})}getProperties(t){return[...super.getProperties(t),new a.du("半径","radius",!1,!1,[this,"radius"])]}}E=I,I.type=E.register("ESApertureEffect",E,{chsName:"光圈特效",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"光圈特效"}),I.defaults=Object.assign(Object.assign({},d.defaults),{radius:1}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},d.createDefaultProps()),{radius:1})}(I||(I={})),(0,r.extendClassProps)(I.prototype,I.createDefaultProps);class T extends f{get typeName(){return"ESGeoPolygon"}get defaultProps(){return T.createDefaultProps()}constructor(t){super(t),this.collision=T.defaults.collision,this.filled=T.defaults.filled,this.stroked=T.defaults.stroked,this.fillStyle=T.defaults.fillStyle,this.strokeStyle=T.defaults.strokeStyle}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{coordinate:[...t.coordinate,new a.du("面积","面积",!1,!0,[this,"area"]),new a.du("周长","周长",!1,!0,[this,"perimeter"])]})}getProperties(t){return[...super.getProperties(t),new a.VS("ESGeoPolygon","ESGeoPolygon",[])]}}x=T,T.type=x.register("ESGeoPolygon",x,{chsName:"地理多边形",tags:["ESObjects"],description:"地理多边形"}),T.supportEditingModes=[...f.supportEditingModes,a.EH.CircularAppend,a.EH.CircularInsert],T.defaults=Object.assign(Object.assign({},f.defaults),{fillStyle:{color:[1,1,1,.5],material:"",materialParams:{},ground:!1},strokeStyle:{width:1,widthType:"screen",color:[1,1,1,1],material:"",materialParams:{},ground:!1},filled:!0,stroked:!1,collision:!1}),function(t){t.createDefaultProps=()=>Object.assign({},f.createDefaultProps())}(T||(T={})),(0,r.extendClassProps)(T.prototype,T.createDefaultProps);class j extends T{get typeName(){return"ESAreaMeasurement"}get defaultProps(){return j.createDefaultProps()}get fillMaterial(){return this.fillStyle.material}set fillMaterial(t){this.fillStyle=Object.assign(Object.assign({},this.fillStyle),{material:t})}get fillMaterialParams(){return this.fillStyle?this.fillStyle.materialParams:j.defaults.fillStyle.materialParams}set fillMaterialParams(t){var e;this.fillStyle=Object.assign(Object.assign({},null!==(e=this.fillStyle)&&void 0!==e?e:j.defaults.fillStyle),{materialParams:null!=t?t:j.defaults.fillStyle.materialParams})}constructor(t){super(t),this.fillStyle.ground=!0,this.strokeStyle.width=2}getProperties(t){return[...super.getProperties(t)]}}P=j,j.type=P.register("ESAreaMeasurement",P,{chsName:"面积测量",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"面积测量"}),j.defaults=Object.assign(Object.assign({},T.defaults),{fillStyle:{color:[1,1,1,1],material:"Material'/EarthSDKForUE/M_ES_Material.M_ES_Material'",materialParams:{Opacity:.4},ground:!1}}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},T.createDefaultProps()),{stroked:!0,filled:!0})}(j||(j={})),(0,r.extendClassProps)(j.prototype,j.createDefaultProps);class N extends d{get typeName(){return"ESBlastParticleSystem"}get defaultProps(){return N.createDefaultProps()}constructor(t){super(t)}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{defaultMenu:"general"})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.VS("czm","czm",[new a.yK("图片","The URI, HTMLImageElement, or HTMLCanvasElement to use for the billboard.",!1,!1,[this,"image"]),new a._C("偏移","translation",!1,!1,[this,"translation"])])])]}}S=N,N.type=S.register("ESBlastParticleSystem",S,{chsName:"粒子爆炸",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"粒子爆炸"}),N.defaults=Object.assign(Object.assign({},d.defaults),{image:"${earthsdk3-assets-script-dir}/assets/img/smoke.png",translation:[0,0,0]}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},d.createDefaultProps()),{image:"${earthsdk3-assets-script-dir}/assets/img/smoke.png",positionEditing:void 0,translation:(0,r.reactArray)([0,0,0])})}(N||(N={})),(0,r.extendClassProps)(N.prototype,N.createDefaultProps);class D extends d{get typeName(){return"ESBoxClipping"}get defaultProps(){return Object.assign({},D.createDefaultProps())}constructor(t){super(t)}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.uz("反转","reverse",!1,!1,[this,"reverse"],D.defaults.reverse),new a._C("尺寸","长宽高",!1,!1,[this,"size"],D.defaults.size),new a.DP("边框颜色","edgeColor",!1,!1,[this,"edgeColor"],D.defaults.edgeColor),new a.du("边框宽度","edgeWidth",!1,!1,[this,"edgeWidth"],D.defaults.edgeWidth),new a.XB("瓦片图层","targetID",!1,!1,[this,"targetID"],D.defaults.targetID)]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.uz("reverse","reverse",!1,!1,[this,"reverse"],D.defaults.reverse),new a.DP("edgeColor","edgeColor",!1,!1,[this,"edgeColor"],D.defaults.edgeColor),new a.du("edgeWidth","edgeWidth",!1,!1,[this,"edgeWidth"],D.defaults.edgeWidth),new a._C("尺寸","长宽高",!1,!1,[this,"size"],D.defaults.size),new a.XB("targetID","targetID",!1,!1,[this,"targetID"],D.defaults.targetID)])]}}O=D,D.type=O.register("ESBoxClipping",O,{chsName:"体剖切",tags:["ESObjects","_ES_Impl_Cesium"],description:"体剖切,体裁剪,体裁切,盒裁切"}),D.supportEditingModes=[...d.supportEditingModes.filter((t=>t!==a.EH.Scale))],D.defaults=Object.assign(Object.assign({},d.defaults),{reverse:!1,edgeColor:[1,1,1,1],edgeWidth:1,size:[10,10,10],targetID:""}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},d.createDefaultProps()),{reverse:!1,edgeColor:(0,r.reactArray)([1,1,1,1]),edgeWidth:2,size:(0,r.reactArray)([10,10,10]),targetID:""})}(D||(D={})),(0,r.extendClassProps)(D.prototype,D.createDefaultProps);var A;class R extends d{constructor(){super(...arguments),this._thumbnail=this.dv((0,r.react)("")),this._duration=this.dv((0,r.react)(1)),this._resetWithCurrentCameraEvent=this.dv(new r.Event),this._captureEvent=this.dv(new r.Event)}get typeName(){return"ESCameraView"}get defaultProps(){return R.createDefaultProps()}get thumbnail(){return this._thumbnail.value}set thumbnail(t){this._thumbnail.value=t}get thumbnailChanged(){return this._thumbnail.changed}get duration(){return this._duration.value}set duration(t){this._duration.value=t}get durationChanged(){return this._duration.changed}get resetWithCurrentCameraEvent(){return this._resetWithCurrentCameraEvent}resetWithCurrentCamera(){this._resetWithCurrentCameraEvent.emit()}get captureEvent(){return this._captureEvent}capture(t,e){this._captureEvent.emit(t,e)}execOnCreating(){this.resetWithCurrentCamera()}initByCurrent(){return t=this,e=void 0,r=function*(){this.resetWithCurrentCamera()},new((n=void 0)||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}));var t,e,n,r}getProperties(t){return[...super.getProperties(t),new a.VS("ESCameraView","ESCameraView",[new a.YF("设置为当前视角","resetWithCurrentCamera",[],(()=>this.resetWithCurrentCamera()),[]),new a.YF("获取缩略图","获取缩略图",["number","number"],((t,e)=>this.capture(t,e)),[R.defaults.thumbnailWidth,R.defaults.thumbnailHeight]),new a.XB("缩略图","缩略图",!0,!1,[this,"thumbnail"]),new a.du("飞行时间","飞行时间(秒)",!0,!1,[this,"duration"])])]}}A=R,R.type=A.register("ESCameraView",A,{chsName:"视角",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"视角"}),R.defaults=Object.assign(Object.assign({},d.defaults),{thumbnailWidth:64,thumbnailHeight:64,duration:1,thumbnail:""}),function(t){t.createDefaultProps=()=>Object.assign({},d.createDefaultProps())}(R||(R={})),(0,r.extendClassProps)(R.prototype,R.createDefaultProps);class F extends r.Destroyable{get view(){return this._view}get viewInfo(){const t=this._view;return{duration:t.duration,position:t.position,rotation:t.rotation,thumbnail:t.thumbnail,name:t.name}}constructor(t,e,n){var i,o,s,a,u;if(super(),this._view=this.dv(new R),this.d(t.components.disposableAdd(this._view)),this._view.name=null!==(i=null==n?void 0:n.name)&&void 0!==i?i:`视角${t.views.length+1}`,e){const t=this._view,n=e;t.duration=null!==(o=n.duration)&&void 0!==o?o:1,t.position=n.position,t.rotation=null!==(s=n.rotation)&&void 0!==s?s:[0,0,0],t.thumbnail=null!==(a=n.thumbnail)&&void 0!==a?a:"",t.name=n.name}else{const t=null!==(u=null==n?void 0:n.size)&&void 0!==u?u:[64,64];this.d((0,r.nextAnimateFrame)((()=>{this._view.resetWithCurrentCamera(),this._view.capture(t[0],t[1])})))}const c=this._view,l=this.dv((0,r.createNextAnimateFrameEvent)(c.durationChanged,c.positionChanged,c.rotationChanged,c.thumbnailChanged,c.nameChanged));this.d(l.don((()=>t.emitViewsWarpper())))}}var L,k,V,B,z;class U extends u{get typeName(){return"ESCameraViewCollection"}get defaultProps(){return U.createDefaultProps()}get json(){return Object.assign(Object.assign({},this._innerGetJson()),{views:this.views})}set json(t){this._innerSetJson(t),this.views=t.views}get currentViewIndex(){return this._currentViewIndex.value}get currentViewIndexChanged(){return this._currentViewIndex.changed}emitViewsWarpper(){this._viewWrappers.changedEvent.emit(this._viewWrappers)}get container(){return this._container.value}get containerChanged(){return this._container.changed}set container(t){this._container.value=t}get views(){return(0,h.Tj)(this._viewWrappers,(t=>t.viewInfo))}get viewsChanged(){return this._viewWrappers.changedEvent}set views(t){if(t.length===this._viewWrappers.length){const e=this._viewWrappers;if(t.every(((t,n)=>{const r=e.get(n).view;return t.duration===r.duration&&(0,h.xD)(t.position,r.position)&&(0,h.xD)(t.rotation,r.rotation)&&t.thumbnail===r.thumbnail&&t.name===r.name})))return}this.clearAllViews();for(let e of t)this._viewWrappers.push(new F(this,e))}_getIndex(t){return this._viewWrappers.indexOf(t)}clearAllViews(){for(let t of this._viewWrappers)t.destroy();this._viewWrappers.length=0}add(t=`视角${this.views.length+1}`,e=[64,64]){this._viewWrappers.push(new F(this,void 0,{name:t,size:e}))}update(t,e,n=[64,64]){if(t>=this._viewWrappers.length||t<0)return console.warn("index >= this._viewWrappers.length || index < 0"),!1;const r=this._viewWrappers.get(t);e&&(r.view.name=e),r.view.resetWithCurrentCamera(),r.view.capture(n[0],n[1])}addView(){this._viewWrappers.push(new F(this))}insertView(t){this._viewWrappers.length+1<=t||t<0?console.error("this._views.length <= index || index < 0"):this._viewWrappers.splice(t,0,new F(this))}setCurrentView(t){if(t>=this._viewWrappers.length||t<0)return console.warn("index >= this._viewWrappers.length || index < 0"),!1;const e=this._viewWrappers.get(t);return this._currentViewWrapper.value=e,!0}resetView(t){if(t>=this._viewWrappers.length||t<0)return void console.warn("index >= this._viewWrappers.length || index < 0");const e=this._viewWrappers.get(t);e.view.resetWithCurrentCamera(),e.view.capture()}resetViewName(t,e){t>=this._viewWrappers.length||t<0?console.warn("index >= this._viewWrappers.length || index < 0"):this._viewWrappers.get(t).view.name=e}updateView(t,e){var n,r,i,o;if(t>=this._viewWrappers.length||t<0)return console.warn("index >= this._viewWrappers.length || index < 0"),!1;const s=this._viewWrappers.get(t);s.view.position=e.position,s.view.rotation=null!==(n=e.rotation)&&void 0!==n?n:[0,0,0],s.view.duration=null!==(r=e.duration)&&void 0!==r?r:1,s.view.thumbnail=null!==(i=e.thumbnail)&&void 0!==i?i:"",s.view.name=null!==(o=e.name)&&void 0!==o?o:""}flyToView(t){if(this.setCurrentView(t)){if(!this._currentViewWrapper.value)throw new Error("this._currentViewWrapper.value");this._currentViewWrapper.value.view.flyIn()}}flyToPrevView(){var t;const e=this._currentViewWrapper.value;if(!e)return this.flyToView(0),!0;const n=this._getIndex(e);return(null!==(t=this.loop)&&void 0!==t?t:U.defaults.loop)?(this.flyToView((this._viewWrappers.length+n-1)%this._viewWrappers.length),!0):!(n-1<0||(this.flyToView(n-1),0))}moveToPreView(){const t=this._currentViewWrapper.value;if(!t)return;const e=this._getIndex(t);if(0===e)return;const n=this._viewWrappers.splice(e-1,1,t)[0];this._viewWrappers.set(e,n)}moveToNextView(){const t=this._currentViewWrapper.value;if(!t)return;const e=this._getIndex(t);if(e===this._viewWrappers.length-1)return;const n=this._viewWrappers.splice(e+1,1,t)[0];this._viewWrappers.set(e,n)}flyToNextView(){var t;const e=this._currentViewWrapper.value;if(!e)return this.flyToView(0),!0;const n=this._getIndex(e);return(null!==(t=this.loop)&&void 0!==t?t:U.defaults.loop)?(this.flyToView((n+1)%this._viewWrappers.length),!0):!(n+1>this._viewWrappers.length-1||(this.flyToView(n+1),0))}stop(){this._currentViewWrapper.value=void 0,this.playing=!1}deleteView(t){t<0||t>=this._viewWrappers.length?console.warn("index < 0 || index >= this._viewWrappers.length"):(this._viewWrappers.get(t).destroy(),this._viewWrappers.splice(t,1))}deleteCurrentView(){const t=this._currentViewWrapper.value;if(!t)return void console.warn("!this._currentViewWrapper.value");const e=this._getIndex(t);-1!==e?this.deleteView(e):console.warn("index === -1")}transitionImageUrl(t){return u.context.getStrFromEnv(t)}constructor(t){super(t),this._currentViewIndex=this.dv((0,r.react)(-1)),this._viewWrappers=this.dv(new r.ObservableArray),this._currentViewWrapper=this.dv((0,r.react)(void 0)),this._container=this.dv((0,r.react)(void 0));{const t=this.dv((0,r.createProcessingFromAsyncFunc)((t=>{return e=this,n=void 0,o=function*(){for(var e;this.flyToNextView();)yield t.promise((0,r.sleep)(null!==(e=this.intervalTime)&&void 0!==e?e:U.defaults.intervalTime));this.playing=!1},new((i=void 0)||(i=Promise))((function(t,r){function s(t){try{u(o.next(t))}catch(t){r(t)}}function a(t){try{u(o.throw(t))}catch(t){r(t)}}function u(e){var n;e.done?t(e.value):(n=e.value,n instanceof i?n:new i((function(t){t(n)}))).then(s,a)}u((o=o.apply(e,n||[])).next())}));var e,n,i,o}))),e=()=>{this.playing?t.restart():t.cancel()};e(),this.d(this.playingChanged.don(e))}{const t=()=>{this._currentViewWrapper.value&&-1===this._viewWrappers.indexOf(this._currentViewWrapper.value)&&(this._currentViewWrapper.value=void 0)};t(),this.d(this._viewWrappers.changedEvent.don(t))}{const t=()=>{const t=this._currentViewWrapper.value;this._currentViewIndex.value=t?this._getIndex(t):-1};t(),this.d(this._viewWrappers.changedEvent.don(t)),this.d(this._currentViewWrapper.changed.don(t))}this.d((()=>{this.clearAllViews()}))}getProperties(t){return[...super.getProperties(t),new a.VS("ESCameraViewCollection","ESCameraViewCollection",[new a.YF("添加视角","添加视角",[],(()=>this.addView()),[]),new a.YF("插入视角","插入视角",["number"],(t=>this.insertView(t)),[0]),new a.YF("清空所有视角","清空所有视角",[],(()=>this.clearAllViews()),[]),new a.YF("当前位置插入视角","当前位置插入视角",[],(()=>this.insertView(this.currentViewIndex+1)),[]),new a.YF("上一个视角","上一个视角",[],(()=>this.flyToPrevView()),[]),new a.YF("下一个视角","下一个视角",[],(()=>this.flyToNextView()),[]),new a.YF("当前视角移动到上一个视角","当前视角移动到上一个视角",[],(()=>this.moveToPreView()),[]),new a.YF("当前视角移动到下一个视角","当前视角移动到下一个视角",[],(()=>this.moveToNextView()),[]),new a.YF("飞入指定视角","飞入指定视角",["number"],(t=>this.flyToView(t)),[0]),new a.YF("设置当前视角","设置当前视角",["number"],(t=>this.setCurrentView(t)),[0]),new a.YF("删除当前视角","删除当前视角",[],(()=>this.deleteCurrentView()),[]),new a.YF("删除指定视角","删除指定视角",["number"],(t=>this.deleteView(t)),[0]),new a.YF("重置视角","重置视角",["number"],(t=>this.resetView(t)),[0]),new a.du("当前序号","当前序号",!1,!0,[this,"currentViewIndex"]),new a.UB("播放","播放",[this,"playing"],(()=>this.stop()),[this,"loop"],U.defaults),new a.uz("是否播放","是否播放.",!1,!1,[this,"playing"]),new a.YF("停止","停止",[],(()=>this.stop()),[]),new a.uz("是否循环","是否循环.",!1,!1,[this,"loop"]),new a.du("间隔时间","间隔时间(s)",!1,!1,[this,"intervalTime"]),new a.EO("视角集合","类型为ESJViewInfo[]",!0,!1,[this,"views"],U.defaults.views)])]}}L=U,U.type=L.register("ESCameraViewCollection",L,{chsName:"视角集合",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"视角集合"}),U.defaults=Object.assign(Object.assign({},u.defaults),{loop:!0,playing:!1,intervalTime:5e3,duration:1,views:[]}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},u.createDefaultProps()),{playing:!1,loop:!0,intervalTime:5e3})}(U||(U={})),(0,r.extendClassProps)(U.prototype,U.createDefaultProps);class G extends d{get typeName(){return"ESCameraVisibleRange"}get defaultProps(){return G.createDefaultProps()}constructor(t){super(t)}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.du("宽高比","aspectRatio",!1,!1,[this,"aspectRatio"],1.77778),new a.du("横向夹角","fov",!1,!1,[this,"fov"],90),new a.du("视野长度","far",!1,!1,[this,"far"],100),new a.du("近面距离","near",!1,!1,[this,"near"],5)]})}getProperties(t){return[...super.getProperties(t),new a.du("横向夹角","fov",!1,!1,[this,"fov"]),new a.du("宽高比","aspectRatio",!1,!1,[this,"aspectRatio"]),new a.du("视野长度","far",!1,!1,[this,"far"]),new a.du("近面距离","near",!1,!1,[this,"near"])]}}k=G,G.type=k.register("ESCameraVisibleRange",k,{chsName:"摄像头可视域",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"摄像头可视域"}),G.defaults=Object.assign(Object.assign({},d.defaults),{fov:90,aspectRatio:1.77778,far:100,near:5,collision:!1}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},d.createDefaultProps()),{fov:90,aspectRatio:1.77778,far:100,near:5,collision:!1})}(G||(G={})),(0,r.extendClassProps)(G.prototype,G.createDefaultProps);class W extends d{get typeName(){return"ESCar"}get defaultProps(){return W.createDefaultProps()}constructor(t){super(t)}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.fX("模式","mode",!1,!1,[this,"mode"],W.defaults.modeEnum,"policeCar")]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.fX("mode","mode",!1,!1,[this,"mode"],W.defaults.modeEnum)])]}}V=W,W.type=V.register("ESCar",V,{chsName:"车辆",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"警车等基础车辆模型"}),W.defaults=Object.assign(Object.assign({},d.defaults),{modeEnum:[["警车","policeCar"]],mode:"policeCar"}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},d.createDefaultProps()),{mode:"policeCar",allowPicking:!0})}(W||(W={})),(0,r.extendClassProps)(W.prototype,W.createDefaultProps);class q extends f{get typeName(){return"ESClassification"}get defaultProps(){return q.createDefaultProps()}constructor(t){super(t),this.fillGround=!0}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.du("高度","高度",!1,!1,[this,"height"],10)],coordinate:[...t.coordinate,new a.du("面积","面积",!1,!0,[this,"area"]),new a.du("周长","周长",!1,!0,[this,"perimeter"])]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.du("高度","高度",!1,!1,[this,"height"])])]}}B=q,q.type=B.register("ESClassification",B,{chsName:"倾斜单体化",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"平尾箭头"}),q.supportEditingModes=[...f.supportEditingModes,a.EH.CircularAppend,a.EH.CircularInsert,a.EH.HeightModify],q.defaults=Object.assign(Object.assign({},f.defaults),{fillStyle:{material:"",materialParams:{},ground:!0,color:[1,1,1,1]},filled:!0}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},f.createDefaultProps()),{height:10,filled:!0})}(q||(q={})),(0,r.extendClassProps)(q.prototype,q.createDefaultProps);class X extends d{get typeName(){return"ESClippingPlane"}get defaultProps(){return X.createDefaultProps()}constructor(t){super(t)}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.uz("显示箭头","显示箭头",!1,!1,[this,"showArrow"],!0),new a.DP("线框颜色","edgeColor",!1,!1,[this,"edgeColor"],[1,1,1,1]),new a.du("线框宽度","edgetWidth",!1,!1,[this,"edgetWidth"],2),new a.du("裁剪宽度","width",!1,!1,[this,"width"],200),new a.du("裁剪高度","height",!1,!1,[this,"height"],200),new a.XB("瓦片图层","targetID",!1,!1,[this,"targetID"],"")]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.VS("czm","czm",[new a.uz("显示箭头","显示箭头",!1,!1,[this,"showArrow"]),new a.DP("edgeColor","edgeColor",!1,!1,[this,"edgeColor"]),new a.du("edgetWidth","edgetWidth",!1,!1,[this,"edgetWidth"]),new a.du("width","width",!1,!1,[this,"width"]),new a.du("height","height",!1,!1,[this,"height"]),new a.XB("targetID","targetID",!1,!1,[this,"targetID"])])])]}}z=X,X.type=z.register("ESClippingPlane",z,{chsName:"裁切",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"ESClippingPlane"}),X.supportEditingModes=[...d.supportEditingModes.filter((t=>t!==a.EH.Scale))],X.defaults=Object.assign({},d.defaults),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},d.createDefaultProps()),{showArrow:!0,edgeColor:(0,r.reactArray)([1,1,1,1]),edgetWidth:2,width:200,height:200,targetID:""})}(X||(X={})),(0,r.extendClassProps)(X.prototype,X.createDefaultProps);class H extends r.Destroyable{constructor(t,e,n){super();const i=document.createElement("div");i.setAttribute("xe2-div",`ESCustomDiv(${e.id})(viewer: ${n.id}) container`);{const t=()=>{const t=`${e.cssText}\n${e.cssAllInitial?"all: initial;":""}\n${e.show?"":"display: none"}\n`;i.style.cssText=t};t();const n=this.dv((0,r.createNextAnimateFrameEvent)(e.cssAllInitialChanged,e.cssTextChanged,e.showChanged));this.d(n.don(t))}t.appendChild(i),this.d((()=>t.removeChild(i)));const o=this.dv((0,r.createNextAnimateFrameEvent)(e.instanceClassChanged,e.containerChanged,e.shadowDomChanged)),s=this.dv(new r.ObjResettingWithEvent(o,(()=>{const{instanceClass:t,container:r}=e;if(!t)return;if(r)return;let o=i;if(i.firstElementChild&&i.removeChild(i.firstElementChild),e.shadowDom){const t=i.appendChild(document.createElement("div"));t.setAttribute("xe2-div",`ESCustomDiv(${e.id})(viewer: ${n.id}) container shadowDiv`),o=t.attachShadow({mode:"open"}).appendChild(document.createElement("div")),o.setAttribute("xe2-div",`ESCustomDiv(${e.id})(viewer: ${n.id}) container shadowDiv div`)}return new t(o,e,n)}))),{_updateEvent:a}=e;this.d(a.don((t=>{if(s.obj)try{t(s.obj,e,n)}catch(t){console.error(`ESCustomDiv update error! ${t}`)}})))}}const Y="class MyDiv extends XE2['xe2-base-utils'].Destroyable {\n // subContainer是外部视口的div容器,可以在这里创建自己需要的DOM元素\n // customDiv指向当前的CustomDiv场景对象\n // viewer指定当前的视口\n constructor(subContainer, customDiv, viewer) { \n super(); \n\n this._subContainer = subContainer;\n const div = document.createElement('div');\n this._div = div;\n\n this._subContainer.appendChild(div);\n this.d(() => this._subContainer.removeChild(this._div));\n\n div.style.width = '300px';\n div.style.height = '50px';\n div.style.position = 'absolute';\n div.style.left = '10px';\n div.style.top = '10px';\n div.style.background = 'rgba(120, 120, 0, 0.7)';\n div.style.color = 'white';\n div.style.fontSize = '30px';\n div.style.lineHeight = '50px';\n div.style.border = '1px solid white';\n div.style.zIndex = '100'; // 特别重要,不能丢!很可能导致保存后打开看不到!\n div.innerText = 'Hello world!';\n\n // {\n // // 控制显示隐藏\n // const update = () => {\n // div.style.display = (customDiv.show ?? true) ? 'flex' : 'none';\n // };\n // update();\n // this.d(customDiv.showChanged.don(update));\n // }\n }\n\n // 随机背景颜色,仅用于测试外部强制更新,此函数非必需\n update() {\n const r = (255 * Math.random()) | 0;\n const g = (255 * Math.random()) | 0;\n const b = (255 * Math.random()) | 0;\n this._div.style.background = `rgba(${r}, ${g}, ${b}, 0.8)`;\n }\n}",J=`示例代码:\n\`\`\`\n${Y}\n\`\`\`\n`;var $,Z,Q,K,tt,et,nt;class rt extends u{get typeName(){return"ESCustomDiv"}get defaultProps(){return rt.createDefaultProps()}update(t){this._updateEvent.emit(t)}get instanceClass(){return this._instanceClassReact.value}set instanceClass(t){this._instanceClassReact.value=t}get instanceClassChanged(){return this._instanceClassReact.changed}get innerHtmlMounted(){return this._innerHtmlMounted}get container(){return this._container.value}get containerChanged(){return this._container.changed}set container(t){this._container.value=t}constructor(t){super(t),this._updateEvent=this.dv(new r.Event),this._instanceClassReact=this.dv((0,r.react)(void 0)),this._innerHtmlMounted=this.dv(new r.Event),this._container=this.dv((0,r.react)(void 0)),this.registerAttachedObjectForContainer(((t,e)=>new H(e,this,t)));{const t=()=>{try{this.instanceClass=this.instanceClassStr&&Function(`"use strict";return (${this.instanceClassStr})`)()}catch(t){this.instanceClass=void 0}};t(),this.d(this.instanceClassStrChanged.don(t))}{const t=()=>{if(void 0===this.innerHTML)return void(this.instanceClassStr=void 0);const t=`class MyDiv extends XE2['xe2-base-utils'].Destroyable {\n // subContainer是外部视口的div容器,可以在这里创建自己需要的DOM元素\n // customDiv指向当前的CustomDiv场景对象\n // viewer指定当前的视口\n // z-index样式需要设置,否则可能导致看不到!\n constructor(subContainer, customDiv, viewer) { \n super(); \n\n const div = document.createElement('div');\n this.d(() => subContainer.removeChild(div));\n\n subContainer.appendChild(div);\n\n div.innerHTML = \`${this.innerHTML}\`;\n customDiv._innerHtmlMounted.emit(div, viewer);\n\n // {\n // // 控制显示隐藏\n // const update = () => {\n // div.style.display = (customDiv.show ?? true) ? 'flex' : 'none';\n // };\n // update();\n // this.d(customDiv.showChanged.don(update));\n // }\n }\n }`;this.instanceClassStr=t};t(),this.d(this.innerHTMLChanged.don(t))}const e=document.createElement("div");e.setAttribute("xe2-div",`ESCustomDiv(${this.id}) container`);{const t=()=>{const t=`${this.cssText};\n${this.cssAllInitial?"all: initial;":""}\n${this.show?"":"display: none;"}\n`;e.style.cssText=t};t();const n=this.dv((0,r.createNextAnimateFrameEvent)(this.cssAllInitialChanged,this.cssTextChanged,this.showChanged));this.d(n.don(t))}{const t=()=>{if(void 0===this.containerId||""===this.containerId)this.container=void 0;else{const t=document.getElementById(this.containerId);t instanceof HTMLElement?this.container=t:(this.container=void 0,console.warn(`Div from containerId(${this.containerId}) is not HTMLDivElement!`))}};t(),this.d(this.containerIdChanged.don(t))}{class t extends r.Destroyable{constructor(t){super(),t.appendChild(e),this.d((()=>t.removeChild(e)))}}this.dv(new r.ObjResettingWithEvent(this.containerChanged,(()=>{if(this.container)return new t(this.container)})))}{const t=this.dv((0,r.createNextAnimateFrameEvent)(this.containerChanged,this.instanceClassChanged,this.shadowDomChanged));this.dv(new r.ObjResettingWithEvent(t,(()=>{if(!this.container)return;if(!this.instanceClass)return;let t=e;if(e.firstElementChild&&e.removeChild(e.firstElementChild),this.shadowDom){const n=e.appendChild(document.createElement("div"));n.setAttribute("xe2-div","ESCustomDiv container shadowDiv"),t=n.attachShadow({mode:"open"}).appendChild(document.createElement("div")),t.setAttribute("xe2-div","ESCustomDiv container shadowDiv div")}return new this.instanceClass(t,this,void 0)})))}}getProperties(t){return[...super.getProperties(t),new a.VS("ESCustomDiv","ESCustomDiv",[new a.uz("显示","显示",!1,!1,[this,"show"]),new a.zo("实例类","实例类",!0,!1,[this,"instanceClassStr"],Y,J),new a.zo("innerHTML","注意设置此属性设置此属性会自动更新instanceClassStr变量",!0,!1,[this,"innerHTML"],rt.defaultInnerHTML,rt.innerHTMLReadMe),new a.YF("强制更新","强制更新",["string"],(t=>{t||alert("evalFuncStr为空,无法执行!");try{const e=t&&Function(`"use strict";return (${t})`)();this.update(e)}catch(t){alert(`updateDivFunc error: ${t}`)}}),["(divClass, dom, viewer) => divClass.update && divClass.update()"]),new a.uz("允许拾取","是否允许拾取",!0,!1,[this,"allowPicking"]),new a.XB("容器ID","容器的ID,如果设置,CustomDiv将自动放入容器,否则放入各个视口中。",!0,!1,[this,"containerId"],rt.defaults.containerId),new a.uz("shadowDom","shadowDom",!1,!1,[this,"shadowDom"]),new a.uz("cssAllInitial","cssAllInitial",!1,!1,[this,"cssAllInitial"]),new a.XB("cssText","cssText",!1,!1,[this,"cssText"])])]}}$=rt,rt.type=$.register("ESCustomDiv",$,{chsName:"ESCustomDiv",tags:["ESObjects"],description:"自定义div"}),rt.defaults=Object.assign(Object.assign({},u.defaults),{show:!0,containerId:""}),rt.defaultInnerHTML='\x3c!-- z-index样式需要设置,否则可能导致看不到!--\x3e\n<div style="width: 300px; height: 50px; z-index: 100; position: absolute; left: 10px; top: 10px; background: rgba(120, 120, 0, 0.7); color: white; font-size: 30px; line-height: 50px; border: 1px solid white;">Hello world!</div>\n',rt.innerHTMLReadMe=`示例代码: \n\`\`\`\n${rt.defaultInnerHTML}\n\`\`\`\n`,function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},u.createDefaultProps()),{show:!0,instanceClassStr:void 0,innerHTML:void 0,allowPicking:void 0,containerId:void 0,shadowDom:!1,cssAllInitial:!1,cssText:""})}(rt||(rt={})),(0,r.extendClassProps)(rt.prototype,rt.createDefaultProps);class it extends d{get typeName(){return"ESDataMesh"}get defaultProps(){return it.createDefaultProps()}get maxTime(){return this._maxTime.value}get maxTimeChanged(){return this._maxTime.changed}constructor(t){super(t),this._maxTime=this.dv((0,r.react)(it.defaults.maxTime))}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.EO("url","url",!1,!1,[this,"url"]),new a.du("maxTime","maxTime",!0,!0,[this,"maxTime"],it.defaults.maxTime),new a.du("currentTime","currentTime",!1,!1,[this,"currentTime"]),new a.du("minPropValue","minPropValue",!1,!1,[this,"minPropValue"]),new a.du("maxPropValue","maxPropValue",!1,!1,[this,"maxPropValue"]),new a.EO("colorStops","colorStops",!0,!1,[this,"colorStops"],it.defaults.colorStops)])]}}Z=it,it.type=Z.register("ESDataMesh",Z,{chsName:"数值面着色",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"数值面着色"}),it.defaults=Object.assign(Object.assign({},d.defaults),{url:"http://114.242.26.126:6003/ESDataMesh/water-assets2/",maxTime:23,currentTime:0,minPropValue:0,maxPropValue:1,colorStops:[{ratio:0,rgba:[0,0,1,1]},{ratio:.2,rgba:[0,1,0,1]},{ratio:.8,rgba:[1,1,0,1]},{ratio:1,rgba:[1,0,0,1]}]}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},d.createDefaultProps()),{url:"http://114.242.26.126:6003/ESDataMesh/water-assets2/",currentTime:0,minPropValue:0,maxPropValue:1,colorStops:(0,r.reactJsonWithUndefined)(void 0)})}(it||(it={})),(0,r.extendClassProps)(it.prototype,it.createDefaultProps);class ot extends f{get typeName(){return"ESGeoLineString"}get defaultProps(){return ot.createDefaultProps()}get distance(){return this._distance.value}get distanceChanged(){return this._distance.changed}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{coordinate:[...t.coordinate,new a.du("长度","距离",!1,!0,[this,"distance"])],style:[new a.VS("点样式","点样式集合",[]),new a.uz("开启","开启点样式",!1,!1,[this,"pointed"],!1),new a.du("点大小","点大小(pointSize)",!1,!1,[this,"pointSize"],1),new a.fX("点类型","点类型(pointSizeType)",!1,!1,[this,"pointSizeType"],[["screen","screen"],["world","world"]],"screen"),new a.DP("点颜色","点颜色(pointColor)",!1,!1,[this,"pointColor"],[1,1,1,1]),new a.VS("线样式","线样式集合",[]),new a.uz("开启","开启线样式",!1,!1,[this,"stroked"],!0),new a.uz("贴地","是否贴地(线)",!1,!1,[this,"strokeGround"]),new a.du("线宽","线宽(strokeWidth)",!1,!1,[this,"strokeWidth"],1),new a.fX("线类型","线类型(strokeWidthType)",!1,!1,[this,"strokeWidthType"],[["screen","screen"],["world","world"]],"screen"),new a.DP("线颜色","线颜色(strokeColor)",!1,!1,[this,"strokeColor"],[1,1,1,1])]})}getProperties(t){return[...super.getProperties(t),new a.VS("计算","计算",[new a.du("距离","距离",!1,!0,[this,"distance"])])]}constructor(t){super(t),this._distance=this.dv((0,r.react)(0));const e=()=>{if(this.points&&this.points.length>=2){const t=(0,h.dh)(this.points,"GEODESIC"),e=t[t.length-1];this._distance.value=e}else this._distance.value=0};e(),this.d(this.pointsChanged.don(e))}}Q=ot,ot.type=Q.register("ESGeoLineString",Q,{chsName:"地理折线",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"地理折线"}),ot.supportEditingModes=[...f.supportEditingModes,a.EH.LineStringAppend,a.EH.LineStringInsert],ot.defaults=Object.assign(Object.assign({},f.defaults),{strokeStyle:{width:1,widthType:"screen",color:[1,1,1,1],material:"",materialParams:{},ground:!1},stroked:!0}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},f.createDefaultProps()),{stroked:!0,strokeStyle:(0,r.reactJson)(t.defaults.strokeStyle)})}(ot||(ot={})),(0,r.extendClassProps)(ot.prototype,ot.createDefaultProps);class st extends ot{get typeName(){return"ESDistanceMeasurement"}get defaultProps(){return st.createDefaultProps()}get strokeColor(){return this.strokeStyle.color}set strokeColor(t){this.strokeStyle=Object.assign(Object.assign({},this.strokeStyle),{color:[...t]})}constructor(t){super(t)}getProperties(t){return[...super.getProperties(t)]}}K=st,st.type=K.register("ESDistanceMeasurement",K,{chsName:"距离测量",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"距离测量"}),st.defaults=Object.assign(Object.assign({},ot.defaults),{strokeStyle:{width:2,widthType:"screen",color:[1,1,1,1],material:"",materialParams:{},ground:!1}}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},ot.createDefaultProps()),{strokeStyle:(0,r.reactJson)(t.defaults.strokeStyle)})}(st||(st={})),(0,r.extendClassProps)(st.prototype,st.createDefaultProps);class at extends T{get typeName(){return"ESExcavate"}get defaultProps(){return at.createDefaultProps()}constructor(t){super(t),this.filled=!1}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.fX("模式","mode",!1,!1,[this,"mode"],at.defaults.modes,"in"),new a.XB("瓦片图层","targetID",!1,!1,[this,"targetID"],"")],style:[new a.VS("点样式","点样式集合",[]),new a.uz("开启","开启点样式",!1,!1,[this,"pointed"],!1),new a.du("点大小","点大小(pointSize)",!1,!1,[this,"pointSize"],1),new a.fX("点类型","点类型(pointSizeType)",!1,!1,[this,"pointSizeType"],[["screen","screen"],["world","world"]],"screen"),new a.DP("点颜色","点颜色(pointColor)",!1,!1,[this,"pointColor"],[1,1,1,1]),new a.VS("线样式","线样式集合",[]),new a.uz("开启","开启线样式",!1,!1,[this,"stroked"],!0),new a.du("线宽","线宽(strokeWidth)",!1,!1,[this,"strokeWidth"],1),new a.fX("线类型","线类型(strokeWidthType)",!1,!1,[this,"strokeWidthType"],[["screen","screen"],["world","world"]],"screen"),new a.DP("线颜色","线颜色(strokeColor)",!1,!1,[this,"strokeColor"],[1,1,1,1]),new a.uz("是否贴地","是否贴地(线)",!1,!1,[this,"strokeGround"],!1),new a.VS("面样式","面样式集合",[]),new a.uz("开启","开启填充样式",!1,!1,[this,"filled"],!0),new a.DP("填充颜色","填充颜色(fillColor)",!1,!1,[this,"fillColor"],[1,1,1,1]),new a.uz("是否贴地","是否贴地",!1,!1,[this,"fillGround"],!1)]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.fX("模式","mode",!1,!1,[this,"mode"],at.defaults.modes),new a.XB("目标ID","targetID",!1,!1,[this,"targetID"])])]}}tt=at,at.type=tt.register("ESExcavate",tt,{chsName:"挖坑",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"挖坑"}),at.defaults=Object.assign(Object.assign({},T.defaults),{stroked:!1,ground:!0,modes:[["向内","in"],["向外","out"]],targetID:"",filled:!1}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},T.createDefaultProps()),{mode:"in",targetID:"",filled:!1})}(at||(at={})),(0,r.extendClassProps)(at.prototype,at.createDefaultProps);class ut extends d{get typeName(){return"ESFireParticleSystem"}get defaultProps(){return ut.createDefaultProps()}constructor(t){super(t)}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{defaultMenu:"general"})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.VS("czm","czm",[new a.yK("图片","The URI, HTMLImageElement, or HTMLCanvasElement to use for the billboard.",!1,!1,[this,"image"]),new a._C("偏移","translation",!1,!1,[this,"translation"])])])]}}et=ut,ut.type=et.register("ESFireParticleSystem",et,{chsName:"粒子烟火",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"粒子烟火"}),ut.defaults=Object.assign(Object.assign({},d.defaults),{image:"${earthsdk3-assets-script-dir}/assets/img/smoke.png",translation:[0,0,0]}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},d.createDefaultProps()),{image:"",translation:(0,r.reactArray)([0,0,0])})}(ut||(ut={})),(0,r.extendClassProps)(ut.prototype,ut.createDefaultProps);class ct extends l{get typeName(){return"ESForestTileset"}get defaultProps(){return ct.createDefaultProps()}constructor(t){super(t)}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.EO("路径","路径",!0,!1,[this,"url"]),new a.EO("treeTypes","类型为 { name: string, mesh: string, cullingDistance: number, scale: number }[]",!0,!1,[this,"treeTypes"],[]),new a.EO("xiaoBanWidget","类型为 { class: string, pivot: [number,number], space: number }",!0,!1,[this,"xiaoBanWidget"],ct.defaults.xiaoBanWidgetDefault,ct.defaults.XiaoBanWidgetSampleValue),new a.XB("youShiSZ","youShiSZ",!1,!1,[this,"youShiSZ"]),new a.XB("diLei","diLei",!1,!1,[this,"diLei"]),new a.XB("senLinLB","senLinLB",!1,!1,[this,"senLinLB"]),new a.XB("labelMaterial","labelMaterial",!1,!1,[this,"labelMaterial"]),new a.du("heightOffset","heightOffset",!1,!1,[this,"heightOffset"])])]}}nt=ct,ct.type=nt.register("ESForestTileset",nt,{chsName:"森林切片图层",tags:["ESObjects","_ES_Impl_UE"],description:"ESForestTileset"}),ct.defaults=Object.assign(Object.assign({},l.defaults),{url:"",treeTypes:[],xiaoBanWidgetDefault:{class:"WidgetBlueprint'/ESFoliage/ESDefaultXiaoBan.ESDefaultXiaoBan",pivot:[.5,1],space:1},youShiSZ:"StringTable'/ESFoliage/You_Shi_SZ.You_Shi_SZ'",diLei:"StringTable'/ESFoliage/Di_Lei.Di_Lei'",senLinLB:"StringTable'/ESFoliage/Sen_Lin_LB.Sen_Lin_LB'",labelMaterial:"Material'/ESFoliage/ES3DWidgetMaterial.ES3DWidgetMaterial'",heightOffset:40,XiaoBanWidgetSampleValue:"\n ## 参数类型为 ESTreeType\n ```js\n\n type ESJVector2D = [number, number]\n\n type ESTreeType = { \n class: string, \n pivot: ESJVector2D, \n space: number\n }\n\n ```\n ",TreeTypeSampleValue:"\n ## 参数类型为 ESTreeType[]\n ```js\n\n type ESTreeType = {\n name: string, \n mesh: string,\n cullingDistance: number, \n scale: number \n }\n\n ```\n "}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},l.createDefaultProps()),{url:"",treeTypes:(0,r.reactJsonWithUndefined)(void 0),xiaoBanWidget:(0,r.reactJsonWithUndefined)(void 0),youShiSZ:"StringTable'/ESFoliage/You_Shi_SZ.You_Shi_SZ'",diLei:"StringTable'/ESFoliage/Di_Lei.Di_Lei'",senLinLB:"StringTable'/ESFoliage/Sen_Lin_LB.Sen_Lin_LB'",labelMaterial:"Material'/ESFoliage/ES3DWidgetMaterial.ES3DWidgetMaterial'",heightOffset:40})}(ct||(ct={})),(0,r.extendClassProps)(ct.prototype,ct.createDefaultProps);const lt="class MyDiv {\n // container是Poi的div\n // geoCustomDivPoi指向当前的GeoCustomDivPoi场景对象\n // viewer指定当前的视口\n constructor(container, eSGeoDiv, viewer) { \n this._container = container;\n this._div = document.createElement('div');\n this._container.appendChild(this._div);\n\n this._div.style.width = '300px';\n this._div.style.height = '50px';\n this._div.style.background = 'rgba(120, 120, 0, 0.7)';\n this._div.style.color = 'white';\n this._div.style.fontSize = '30px';\n this._div.style.lineHeight = '50px';\n this._div.style.border = '1px solid white';\n this._div.innerText = 'Hello world!';\n }\n\n // 随机背景颜色,仅用于测试外部强制更新,此函数非必需\n update() {\n const r = (255 * Math.random()) | 0;\n const g = (255 * Math.random()) | 0;\n const b = (255 * Math.random()) | 0;\n this._div.style.background = `rgba(${r}, ${g}, ${b}, 0.8)`;\n }\n\n // 销毁函数,注意此函数必需,否则会报错!\n destroy() {\n this._container.removeChild(this._div);\n }\n}",ht=`示例代码: \n\`\`\`\n${lt}\n\`\`\`\n`,pt='<div style="width: 300px; height: 50px; background: rgba(120, 120, 0, 0.7); color: white; font-size: 30px; line-height: 50px; border: 1px solid white;">Hello world!</div>\n';var ft,dt,gt;class yt extends d{get typeName(){return"ESGeoDiv"}getMainClass(){var t;return null!==(t=this.mainClass)&&void 0!==t?t:this}get defaultProps(){return yt.createDefaultProps()}get widgetEvent(){return this._widgetEvent}get echartsFun(){return this._echartsFunReact.value}set echartsFun(t){this._echartsFunReact.value=t}get echartsFunChanged(){return this._echartsFunReact.changed}get instanceClass(){return this._instanceClassReact.value}set instanceClass(t){this._instanceClassReact.value=t}get instanceClassChanged(){return this._instanceClassReact.changed}constructor(t){super(t),this.combinationClass=!0,this._widgetEvent=this.dv(new r.Event),this._echartsFunReact=this.dv((0,r.react)(void 0)),this._instanceClassReact=this.dv((0,r.react)(void 0));const e=()=>{try{this.instanceClass=this.instanceClassStr&&Function(`"use strict";return (${this.instanceClassStr})`)()}catch(t){this.instanceClass=void 0}};e(),this.d(this.instanceClassStrChanged.don(e));{const t=()=>{if(void 0===this.innerHTML)return void(this.instanceClassStr=void 0);const t=`class MyDiv {\n // container是Poi的div\n // geoCustomDivPoi指向当前的GeoCustomDivPoi场景对象\n // viewer指定当前的视口\n constructor(container, eSGeoDiv, viewer) {\n this._container = container;\n this._div = document.createElement('div');\n this._div.style.position = 'relative';\n this._container.appendChild(this._div);\n this._div.innerHTML = \`${this.innerHTML}\`;\n }\n \n // 销毁函数,注意此函数必需,否则会报错!\n destroy() {\n this._container.removeChild(this._div);\n }\n }`;this.instanceClassStr=t};t(),this.d(this.innerHTMLChanged.don(t))}}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.du("透明度","透明度",!0,!1,[this,"opacity"],yt.defaults.opacity),new a.du("zOrder","zOrder",!0,!1,[this,"zOrder"],yt.defaults.zOrder),new a.RD("偏移比例","偏移比例.",!0,!1,[this,"anchor"],yt.defaults.anchor),new a.zo("innerHTML","注意设置此属性设置此属性会自动更新instanceClassStr变量",!0,!1,[this,"innerHTML"],yt.defaults.innerHTML),new a.zo("实例类","实例类",!0,!1,[this,"instanceClassStr"],yt.defaults.instanceClassStr,yt.defaults.instanceClassStrReadMe)]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.RD("偏移比例","偏移比例.",!0,!1,[this,"anchor"],yt.defaults.anchor),new a.du("透明度","透明度",!0,!1,[this,"opacity"],yt.defaults.opacity),new a.zo("实例类","实例类",!0,!1,[this,"instanceClassStr"],yt.defaults.instanceClassStr,yt.defaults.instanceClassStrReadMe),new a.zo("innerHTML","注意设置此属性设置此属性会自动更新instanceClassStr变量",!0,!1,[this,"innerHTML"],yt.defaults.innerHTML),new a.du("zOrder","zOrder",!0,!1,[this,"zOrder"],yt.defaults.zOrder)])]}}ft=yt,yt.type=ft.register("ESGeoDiv",ft,{chsName:"ESGeoDiv",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"ESGeoDiv"}),yt.defaults=Object.assign(Object.assign({},d.defaults),{opacity:1,anchor:[.5,1],instanceClassStr:lt,instanceClassStrReadMe:ht,innerHTML:pt,zOrder:0}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},d.createDefaultProps()),{opacity:1,anchor:(0,r.reactArray)([.5,1]),instanceClassStr:void 0,innerHTML:pt,zOrder:0})}(yt||(yt={})),(0,r.extendClassProps)(yt.prototype,yt.createDefaultProps);class vt extends f{get typeName(){return"ESGeoRectangle"}get defaultProps(){return vt.createDefaultProps()}toPolygon(){if(this.points&&this.points.length>=2){const t=[...this.points][0],e=[...this.points][1];return[t,[t[0],e[1],t[2]],e,[e[0],t[1],e[2]]]}}_updateArea(){if(this.points&&this.points.length>=2){const t=[...this.points],e=t[0],n=t[1],r=[e,[e[0],n[1],e[2]],n,[n[0],e[1],n[2]]];this._area.value=(0,h.mH)(r)}else this._area.value=0}_updatePerimeter(){if(this.points&&this.points.length>=2){const t=[...this.points],e=t[0],n=t[1],r=[e,[e[0],n[1],e[2]],n,[n[0],e[1],n[2]]],i=[...r,r[0]],o=(0,h.dh)(i,"NONE"),s=o[o.length-1];this._perimeter.value=s}else this._perimeter.value=0}constructor(t){super(t),this.collision=!1,this.stroked=!0,this.filled=!0,this.fillStyle={color:[1,1,1,.5],material:"",materialParams:{},ground:!1}}getESProperties(){const t=super.getESProperties();return Object.assign(Object.assign({},t),{coordinate:[...t.coordinate,new a.du("面积","面积",!1,!0,[this,"area"]),new a.du("周长","周长",!1,!0,[this,"perimeter"])]})}getProperties(t){return[...super.getProperties(t),new a.VS("计算","计算",[new a.du("面积","面积",!1,!0,[this,"area"]),new a.du("周长","周长",!1,!0,[this,"perimeter"])])]}}dt=vt,vt.type=dt.register("ESGeoRectangle",dt,{chsName:"矩形",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"矩形"}),vt.supportEditingModes=[...f.supportEditingModes,a.EH.DoublePointsAppend,a.EH.DoublePointsModify],vt.defaults=Object.assign({},f.defaults),function(t){t.createDefaultProps=()=>Object.assign({},f.createDefaultProps())}(vt||(vt={})),(0,r.extendClassProps)(vt.prototype,vt.createDefaultProps);const mt={translationX:0,translationY:0,translationZ:0,rotationHeading:0,rotationPitch:0,rotationRoll:0,scaleX:1,scaleY:1,scaleZ:1};class _t extends d{get typeName(){return"ESGltfModel"}get defaultProps(){return _t.createDefaultProps()}get nodeTransformations(){return this._nodeTransformations.value}set nodeTransformations(t){this._nodeTransformations.value=t}get nodeTransformationsChanged(){return this._nodeTransformations.changed}get czmModelReadyEvent(){return this._czmModelReadyEvent}deleteNodeTransformation(t){if(!this.nodeTransformations)return;if(!this.nodeTransformations[t])return;const e=Object.assign({},this.nodeTransformations);delete e[t],this.nodeTransformations=e}get setNodePositionEvent(){return this._setNodePositionEvent}setNodePosition(t,e){var n;this._setNodePositionEvent.emit(t,e),this._nodeTransformations.value||(this._nodeTransformations.value={});const r=null!==(n=this._nodeTransformations.value[t])&&void 0!==n?n:Object.assign({},mt);e.some((t=>!Number.isFinite(t)))?console.error(`setNodePosition error: ${t} ${e}`):this._nodeTransformations.value=Object.assign(Object.assign({},this.nodeTransformations),{[t]:Object.assign(Object.assign({},r),{translationX:e[0],translationY:e[1],translationZ:e[2]})})}get setNodeRotationEvent(){return this._setNodeRotationEvent}setNodeRotation(t,e){var n;this._setNodeRotationEvent.emit(t,e),this._nodeTransformations.value||(this._nodeTransformations.value={});const r=null!==(n=this._nodeTransformations.value[t])&&void 0!==n?n:Object.assign({},mt);e.some((t=>!Number.isFinite(t)))?console.error(`setNodeRotation error: ${t} ${e}`):this._nodeTransformations.value=Object.assign(Object.assign({},this.nodeTransformations),{[t]:Object.assign(Object.assign({},r),{rotationHeading:e[0],rotationPitch:e[1],rotationRoll:e[2]})})}get setNodeScaleEvent(){return this._setNodeScaleEvent}setNodeScale(t,e){var n;this._setNodeScaleEvent.emit(t,e),this._nodeTransformations.value||(this._nodeTransformations.value={});const r=null!==(n=this._nodeTransformations.value[t])&&void 0!==n?n:Object.assign({},mt);e.some((t=>!Number.isFinite(t)||t<0))?console.error(`setNodeScale error: !Number.isFinite(e) || e < 0 ${t} ${e}`):this._nodeTransformations.value=Object.assign(Object.assign({},this.nodeTransformations),{[t]:Object.assign(Object.assign({},r),{scaleX:e[0],scaleY:e[1],scaleZ:e[2]})})}getNodePosition(t){if(!this.nodeTransformations)return;const e=this.nodeTransformations[t];return e?[e.translationX,e.translationY,e.translationZ]:void 0}getNodeRotation(t){if(!this.nodeTransformations)return;const e=this.nodeTransformations[t];return e?[e.rotationHeading,e.rotationPitch,e.rotationRoll]:void 0}getNodeScale(t){if(!this.nodeTransformations)return;const e=this.nodeTransformations[t];return e?[e.scaleX,e.scaleY,e.scaleZ]:void 0}get printDebugInfoEvent(){return this._printDebugInfoEvent}printDebugInfo(){this._printDebugInfoEvent.emit()}get setMaterialEvent(){return this._setMaterialEvent}setMaterial(t){this._setMaterialEvent.emit(t)}constructor(t){super(t),this._nodeTransformations=this.dv((0,r.react)(void 0)),this._czmModelReadyEvent=this.dv(new r.Event),this._setNodePositionEvent=this.dv(new r.Event),this._setNodeRotationEvent=this.dv(new r.Event),this._setNodeScaleEvent=this.dv(new r.Event),this._printDebugInfoEvent=this.dv(new r.Event),this._setMaterialEvent=this.disposeVar(new r.Event)}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{defaultMenu:"dataSource",dataSource:[...t.dataSource,new a.EO("模型路径","模型路径地址",!0,!1,[this,"url"],_t.defaults.url),new a.EO("实例化矩阵","实例化矩阵",!1,!1,[this,"instances"])]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.EO("模型路径","模型路径地址",!1,!1,[this,"url"]),new a.VS("czm","czm",[new a.YF("控制台输出模型信息","控制台输出模型信息",[],(()=>this.printDebugInfo()),[]),new a.du("最大缩放比例","最大缩放值",!0,!1,[this,"czmMaximumScale"]),new a.du("统一缩放值","统一缩放值",!1,!1,[this,"czmNativeScale"]),new a.du("最小像素尺寸","最小像素尺寸,若为0表示不使用最小像素尺寸。",!1,!1,[this,"czmMinimumPixelSize"]),new a.DP("颜色"," A Property specifying the color.",!1,!1,[this,"czmColor"]),new a.EO("实例化矩阵","实例化矩阵",!1,!1,[this,"instances"])])])]}}var bt,wt;gt=_t,_t.type=gt.register("ESGltfModel",gt,{chsName:"模型",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"gltf模型"}),_t.defaults=Object.assign(Object.assign({},d.defaults),{url:"${earthsdk3-assets-script-dir}/assets/glb/building.glb",instances:[]}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},d.createDefaultProps()),{url:t.defaults.url,czmMaximumScale:void 0,czmMinimumPixelSize:0,czmNativeScale:1,czmColor:(0,r.reactArray)([1,1,1,1]),allowPicking:!0,instances:(0,r.reactArrayWithUndefined)(void 0)})}(_t||(_t={})),(0,r.extendClassProps)(_t.prototype,_t.createDefaultProps);class Et extends d{get typeName(){return"ESHuman"}get defaultProps(){return Et.createDefaultProps()}get aiMoveToEvent(){return this._aiMoveToEvent}aiMoveTo(t,e){this._aiMoveToEvent.emit(t,e)}get stopAIMoveEvent(){return this._stopAIMoveEvent}stopAIMove(){this._stopAIMoveEvent.emit()}constructor(t){super(t),this._aiMoveToEvent=this.dv(new r.Event),this._stopAIMoveEvent=this.dv(new r.Event)}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.fX("模式","mode",!0,!1,[this,"mode"],Et.defaults.modes,Et.defaults.mode),new a.fX("动画","animation",!0,!1,[this,"animation"],Et.defaults.animations,Et.defaults.animation)]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.YF("自动寻路","aiMoveTo",["numbers","number"],((t,e)=>this.aiMoveTo(t,e)),[[0,0,0],0]),new a.YF("stopAIMove","stopAIMove",[],(()=>this.stopAIMove()),[]),new a.fX("mode","mode",!1,!1,[this,"mode"],Et.defaults.modes),new a.fX("动画","animation",!1,!1,[this,"animation"],Et.defaults.animations)])]}}bt=Et,Et.type=bt.register("ESHuman",bt,{chsName:"人员",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"工人 警察 路人"}),Et.defaults=Object.assign(Object.assign({},d.defaults),{modes:[["工人","worker"],["警察","police"],["路人","pedestrian"],["陌生人","stranger"],["男士","suitMan"],["女士","suitWoman"]],mode:"worker",animations:[["站立","standing"],["行走","walking"],["奔跑","running"]],animation:"standing",czmAnimationsStand:[{index:0,name:"Stand",loop:"REPEAT",animationTime:"(duration) => Date.now() / 1000 / duration"}],czmAnimationsWalk:[{index:2,name:"Walk",loop:"REPEAT",animationTime:"(duration) => Date.now() / 1000 / duration"}],czmAnimationsRun:[{index:1,name:"Run",loop:"REPEAT",animationTime:"(duration) => Date.now() / 1000 / duration"}]}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},d.createDefaultProps()),{mode:"worker",animation:"standing",allowPicking:!0})}(Et||(Et={})),(0,r.extendClassProps)(Et.prototype,Et.createDefaultProps);class xt extends _{get typeName(){return"ESImageLabel"}get defaultProps(){return xt.createDefaultProps()}constructor(t){super(t),this.anchor=xt.defaults.anchor,this.renderMode=xt.defaults.renderMode}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.EO("图片路径","图片路径",!1,!1,[this,"url"],xt.defaults.url)]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.EO("图片路径","图片路径",!1,!1,[this,"url"])])]}}wt=xt,xt.type=wt.register("ESImageLabel",wt,{chsName:"图片标签",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"基础图片标签。"}),xt.defaults=Object.assign(Object.assign({},_.defaults),{url:"inner://CameraBlue.png",anchor:[.5,1],renderMode:4}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},_.createDefaultProps()),{url:"inner://CameraBlue.png"})}(xt||(xt={})),(0,r.extendClassProps)(xt.prototype,xt.createDefaultProps);const Pt='\n# 声明文件\n### options 类型\n```javascript\n export type ESImageryLayerOptionsType =\n {\n "type": "tms";\n "fileExtension"?: string; \n "credit"?: string;\n "tilingScheme"?: ESTilingSchemaJsonType; \n "ellipsoid"?: [x: number, y: number, z: number]; \n "tileWidth"?: number; \n "tileHeight"?: number; \n "flipXY"?: boolean; \n } |\n {\n type: \'xyz\';\n subdomains?: string | string[];\n credit?: string;\n tilingScheme?: ESTilingSchemaJsonType;\n ellipsoid?: [x: number, y: number, z: number]; \n tileWidth?: number; \n tileHeight?: number; \n hasAlphaChannel?: boolean;\n pickFeaturesUrl?: string;\n enablePickFeatures?: boolean;\n urlSchemeZeroPadding?: JsonValue,\n customTags?: { [k: string]: string };\n } |\n {\n type: \'wms\';\n layers: string;\n parameters?: JsonValue,\n getFeatureInfoParameters?: JsonValue,\n enablePickFeatures?: boolean,\n tilingScheme?: ESTilingSchemaJsonType; \n ellipsoid?: [x: number, y: number, z: number];\n tileWidth?: number; \n tileHeight?: number; \n crs?: string,\n srs?: string,\n credit?: string;\n subdomains?: string | string[]; \n times?: CzmTimeIntervalCollectionJsonType; \n getFeatureInfoUrl?: string\n } |\n {\n type: \'wmts\';\n format?: string; \n layer: string;\n style: string; \n tileMatrixSetID: string;\n tileMatrixLabels?: string[];\n times?: CzmTimeIntervalCollectionJsonType;\n dimensions?: JsonValue;\n tileWidth?: number;\n tileHeight?: number;\n tilingScheme?: ESTilingSchemaJsonType;\n ellipsoid?: [x: number, y: number, z: number]; \n credit?: string; \n subdomains?: string | string[]; \n } |\n {\n type: \'ion\';\n accessToken?: string,\n server?: string\n }\n```\n\n### tilingSchema类型\n```javascript\n export type ESTilingSchemaJsonType = {\n "type": "WebMercatorTilingScheme";\n "ellipsoid"?: [x: number, y: number, z: number];\n "numberOfLevelZeroTilesX"?: number; .\n "numberOfLevelZeroTilesY"?: number;\n "rectangleSouthwestInMeters"?: [number, number];\n "rectangleNortheastInMeters"?: [number, number];\n } | {\n "type": "GeographicTilingScheme";\n "ellipsoid"?: [x: number, y: number, z: number];\n "rectangle"?: [west: number, south: number, east: number, north: number];\n "numberOfLevelZeroTilesX"?: number;\n "numberOfLevelZeroTilesY"?: number;\n }\n```\n\n### times类型\n```javascript\nexport type CzmTimeIntervalCollectionJsonType = {\n type: \'fromIso8601\';\n iso8601: string;\n isStartIncluded?: boolean;\n isStopIncluded?: boolean;\n leadingInterval?: boolean;\n trailingInterval?: boolean;\n} | {\n type: \'fromIso8601DateArray\';\n iso8601Dates?: string[];\n isStartIncluded?: boolean;\n isStopIncluded?: boolean;\n leadingInterval?: boolean;\n trailingInterval?: boolean;\n};\n\n```\n';var St,Ot,Ct,Mt,It,Tt,jt;class Nt extends l{get typeName(){return"ESImageryLayer"}get defaultProps(){return Nt.createDefaultProps()}constructor(t){super(t)}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{defaultMenu:"dataSource",basic:[...t.basic,new a.du("层级序号","层级序号",!1,!1,[this,"zIndex"],Nt.defaults.zIndex)],dataSource:[...t.dataSource,new a.EO("影像服务地址","影像服务地址",!1,!1,[this,"url"]),new a.zf("矩形范围","西南东北",!0,!1,[this,"rectangle"],Nt.defaults.rectangle),new a.Cs("最大级别","最大级别.",!0,!1,[this,"maximumLevel"],1,[1,24],Nt.defaults.maximumLevel),new a.EO("options","options",!0,!1,[this,"options"],Nt.defaults.options),new a.XB("targetID","targetID",!1,!1,[this,"targetID"],""),new a.Cs("opacity","opacity",!1,!1,[this,"opacity"],.01,[0,1],1)]})}getProperties(t){return[...super.getProperties(t),new a.VS("ESImageryLayer","ESImageryLayer",[new a.EO("影像服务地址","影像服务地址",!1,!1,[this,"url"]),new a.VS("通用","通用",[new a.zf("矩形范围","西南东北",!0,!1,[this,"rectangle"],Nt.defaults.rectangle),new a.du("高度","A numeric Property specifying the height.",!1,!1,[this,"height"]),new a.du("zIndex","层级",!1,!1,[this,"zIndex"]),new a.XB("actorTag","actorTag",!1,!1,[this,"actorTag"]),new a.XB("componentTag","componentTag",!1,!1,[this,"componentTag"]),new a.du("minimumLevel","minimumLevel",!1,!1,[this,"minimumLevel"]),new a.du("maximumLevel","maximumLevel",!1,!1,[this,"maximumLevel"]),new a.EO("options","options",!0,!1,[this,"options"],{},Pt),new a.XB("targetID","targetID",!1,!1,[this,"targetID"]),new a.Cs("opacity","opacity",!1,!1,[this,"opacity"],.01,[0,1],1)]),new a.VS("czm","czm",[new a.fX("czmSplitDirection","The ImagerySplitDirection split to apply to this layer.",!1,!1,[this,"czmSplitDirection"],Nt.defaults.czmSplitDirectionEnum),new a.du("透明度","透明度,The alpha blending value of this layer, from 0.0 to 1.0.",!1,!1,[this,"czmAlpha"]),new a.du("亮度","亮度,The brightness of this layer. 1.0 uses the unmodified imagery color.",!1,!1,[this,"czmBrightness"]),new a.du("对比度","对比度,The contrast of this layer. 1.0 uses the unmodified imagery color.",!1,!1,[this,"czmContrast"]),new a.du("色相","色相,The hue of this layer. 0.0 uses the unmodified imagery color. ",!1,!1,[this,"czmHue"]),new a.du("饱和度","饱和度,The saturation of this layer. 1.0 uses the unmodified imagery color. ",!1,!1,[this,"czmSaturation"]),new a.du("伽马值","伽马,The gamma correction to apply to this layer. 1.0 uses the unmodified imagery color.",!1,!1,[this,"czmGamma"])])])]}}St=Nt,Nt.type=St.register("ESImageryLayer",St,{chsName:"影像图层",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"影像图层"}),Nt.defaults=Object.assign(Object.assign({},l.defaults),{url:"",rectangle:[-180,-90,180,90],options:{},zIndex:0,actorTag:"",componentTag:"",minimumLevel:0,maximumLevel:22,targetID:"",opacity:1,czmSplitDirection:"NONE",czmSplitDirectionEnum:[["LEFT","LEFT"],["NONE","NONE"],["RIGHT","RIGHT"]],czmAlpha:1,czmBrightness:1,czmContrast:1,czmHue:0,czmSaturation:1,czmGamma:1,czmSubdomains:[]}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},l.createDefaultProps()),{url:"",rectangle:(0,r.reactJsonWithUndefined)(void 0),options:(0,r.reactJsonWithUndefined)(void 0),zIndex:0,actorTag:"",componentTag:"",maximumLevel:22,minimumLevel:0,targetID:"",opacity:1,czmSplitDirection:"NONE",czmAlpha:1,czmBrightness:1,czmContrast:1,czmHue:0,czmSaturation:1,czmGamma:1})}(Nt||(Nt={})),(0,r.extendClassProps)(Nt.prototype,Nt.createDefaultProps);class Dt extends d{get typeName(){return"ESLocalSkyBox"}get defaultProps(){return Dt.createDefaultProps()}constructor(t){super(t),this.collision=!1,this.allowPicking=!1}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.du("尺寸","圆直径或包围盒边长",!1,!1,[this,"size"],Dt.defaults.size),new a.uz("自动跟随","是否跟随相机",!1,!1,[this,"autoFollow"],Dt.defaults.autoFollow),new a.fX("mode","模式",!1,!1,[this,"mode"],Dt.defaults.modes,"blueSky")]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.du("size","圆直径或包围盒边长",!1,!1,[this,"size"],Dt.defaults.size),new a.uz("autoFollow","是否跟随相机(自动跟随效果为渐变,会在5000米左右消失)",!1,!1,[this,"autoFollow"],Dt.defaults.autoFollow),new a.du("autoOpacityFactor","自动消失系数",!1,!1,[this,"autoOpacityFactor"],Dt.defaults.autoOpacityFactor),new a.fX("mode","模式",!1,!1,[this,"mode"],Dt.defaults.modes)])]}}Ot=Dt,Dt.type=Ot.register("ESLocalSkyBox",Ot,{chsName:"局部天空盒",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"效果类"}),Dt.defaults=Object.assign(Object.assign({},d.defaults),{size:1e4,autoFollow:!0,autoOpacityFactor:2,modes:[["baiyun","baiyun"],["blueSky","blueSky"],["clearSky","clearSky"],["dream","dream"],["starrySky","starrySky"],["sunnySky","sunnySky"],["sunSets","sunSets"]]}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},d.createDefaultProps()),{size:1e4,autoFollow:!0,autoOpacityFactor:2,mode:"blueSky"})}(Dt||(Dt={})),(0,r.extendClassProps)(Dt.prototype,Dt.createDefaultProps);class At extends d{get typeName(){return"ESLocationMeasurement"}get defaultProps(){return At.createDefaultProps()}constructor(t){super(t)}getProperties(t){return[...super.getProperties(t)]}}Ct=At,At.type=Ct.register("ESLocationMeasurement",Ct,{chsName:"位置测量点",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"位置测量点"}),At.supportEditingModes=[...d.supportEditingModes.filter((t=>t===a.EH.Place||t===a.EH.Translation))],At.defaults=Object.assign({},d.defaults),function(t){t.createDefaultProps=()=>Object.assign({},d.createDefaultProps())}(At||(At={})),(0,r.extendClassProps)(At.prototype,At.createDefaultProps);class Rt extends d{get typeName(){return"ESParticleSystemPrimitive"}get defaultProps(){return Rt.createDefaultProps()}get player(){return this._player}get ratio(){return this._player.ratio}set ratio(t){this._player.ratio=t}get ratioChanged(){return this._player.ratioChanged}constructor(t){super(t),this._player=this.dv(new h.N);{const t=Rt.defaults;this.d((0,r.bind)([this._player,"loop"],[this,"playingLoop"],(e=>null!=e?e:t.playingLoop),(e=>null!=e?e:t.playingLoop))),this.d((0,r.bind)([this._player,"currentTime"],[this,"currentTime"],(e=>null!=e?e:t.currentTime),(e=>null!=e?e:t.currentTime))),this.d((0,r.bind)([this._player,"duration"],[this,"duration"],(e=>null!=e?e:t.duration),(e=>null!=e?e:t.duration))),this.d((0,r.bind)([this._player,"playing"],[this,"playing"],(e=>null!=e?e:t.playing),(e=>null!=e?e:t.playing))),this.d((0,r.bind)([this._player,"speed"],[this,"playingSpeed"],(e=>null!=e?e:t.playingSpeed),(e=>null!=e?e:t.playingSpeed)))}}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.YF("飞入","飞入",["number"],(t=>this.flyTo(t)),[1e3]),new a.zo("更新回调函数","The callback function to be called each frame to update a particle.",!0,!1,[this,"updateCallback"]),new a.du("发射率","emissionRate,The number of particles to emit per second.",!0,!1,[this,"emissionRate"],5),new a.uz("是否循环","loop,Whether the particle system should loop its bursts when it is complete.",!0,!1,[this,"loop"],!0),new a.du("等级","scale,Sets the scale to apply to the image of the particle for the duration of its particleLife.",!0,!1,[this,"particleScale"],1),new a.du("初始等级","startScale,The initial scale to apply to the image of the particle at the beginning of its life.",!0,!1,[this,"startScale"]),new a.du("结束等级","endScale,The final scale to apply to the image of the particle at the end of its life.",!0,!1,[this,"endScale"],Rt.defaults.endScale),new a.DP("颜色","Sets the color of a particle for the duration of its particleLife.",!0,!1,[this,"color"]),new a.DP("初始颜色","The color of the particle at the beginning of its life.",!0,!1,[this,"startColor"]),new a.DP("结束颜色","The color of the particle at the end of its life.",!0,!1,[this,"endColor"]),new a.uz("尺寸单位为米","Sets if the size of particles is in meters or pixels. true to size the particles in meters; otherwise, the size is in pixels.",!0,!1,[this,"sizeInMeters"]),new a.du("速度","speed,If set, overrides the minimumSpeed and maximumSpeed inputs with this value.",!0,!1,[this,"speed"],1),new a.du("最小速度","minimumSpeed,Sets the minimum bound in meters per second above which a particles actual speed will be randomly chosen.",!0,!1,[this,"minimumSpeed"]),new a.du("最大速度","maximumSpeed,Sets the maximum bound in meters per second below which a particles actual speed will be randomly chosen.",!0,!1,[this,"maximumSpeed"]),new a.du("生命周期","lifetime,How long the particle system will emit particles, in seconds.",!0,!1,[this,"lifetime"],Number.MAX_VALUE),new a.du("粒子生命周期","particleLife,If set, overrides the minimumParticleLife and maximumParticleLife inputs with this value.",!0,!1,[this,"particleLife"],Rt.defaults.particleLife),new a.du("最小粒子生命周期","minimumParticleLife,Sets the minimum bound in seconds for the possible duration of a particles life above which a particles actual life will be randomly chosen.",!0,!1,[this,"minimumParticleLife"]),new a.du("最大粒子生命周期","maximumParticleLife,Sets the maximum bound in seconds for the possible duration of a particles life below which a particles actual life will be randomly chosen.",!0,!1,[this,"maximumParticleLife"]),new a.du("块数量","mass,Sets the minimum and maximum mass of particles in kilograms.",!0,!1,[this,"mass"],1),new a.du("最小块数量","minimumMass,Sets the minimum bound for the mass of a particle in kilograms. A particles actual mass will be chosen as a random amount above this value.",!0,!1,[this,"minimumMass"]),new a.du("最大块数量","maximumMass,Sets the maximum mass of particles in kilograms. A particles actual mass will be chosen as a random amount below this value.",!0,!1,[this,"maximumMass"]),new a.RD("图片尺寸","imageSize",!0,!1,[this,"imageSize"],Rt.defaults.imageSize),new a.RD("最小图片尺寸","minimumImageSize",!0,!1,[this,"minimumImageSize"]),new a.RD("最大图片尺寸","maximumImageSize",!0,!1,[this,"maximumImageSize"]),new a.yK("图片","The URI, HTMLImageElement, or HTMLCanvasElement to use for the billboard.",!0,!1,[this,"image"],Rt.defaults.image),new a._C("偏移","translation",!0,!1,[this,"translation"],[0,0,0]),new a.Ls("bursts","bursts",!0,!1,[this,"bursts"]),new a.EO("emitter","emitter",!1,!1,[this,"emitter"],Rt.defaults.emitter)]),new a.VS("播放器","播放器",[new a.du("播放比率","播放比率(0-1)",!0,!1,[this,"ratio"],Rt.defaults.ratio),new a.zZ("播放器","播放器",[this,"playing"],[this,"ratio"],[this,"playingLoop"]),new a.uz("是否循环","是否循环.",!0,!1,[this,"playingLoop"],Rt.defaults.playingLoop),new a.du("当前时间","当前时间",!0,!1,[this,"currentTime"],Rt.defaults.currentTime),new a.du("过渡时间","过渡时间",!0,!1,[this,"duration"],Rt.defaults.duration),new a.uz("是否播放","是否播放.",!0,!1,[this,"playing"],Rt.defaults.playing),new a.du("播放速度","播放速度.",!0,!1,[this,"playingSpeed"],Rt.defaults.playingSpeed)])]}}Mt=Rt,Rt.type=Mt.register("ESParticleSystemPrimitive",Mt,{chsName:"粒子",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"通过Cesium的Primitive API 实现的粒子特效。"}),Rt.defaults=Object.assign(Object.assign({},d.defaults),{playingLoop:!0,currentTime:0,playerCurrentTime:0,duration:6e3,playingSpeed:1,playing:!0,ratio:0,particleLife:.5,endScale:4,imageSize:[20,20],image:"${earthsdk3-assets-script-dir}/assets/img/smoke.png",emitter:{type:"CircleEmitter",radius:.5}}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},d.createDefaultProps()),{emitter:(0,r.reactJsonWithUndefined)(void 0),bursts:(0,r.reactArrayCollectionWithUndefined)(void 0),translation:(0,r.reactArrayWithUndefined)(void 0),positionEditing:void 0,image:void 0,imageSize:(0,r.reactArrayWithUndefined)(void 0),minimumImageSize:(0,r.reactArrayWithUndefined)(void 0),maximumImageSize:(0,r.reactArrayWithUndefined)(void 0),updateCallback:void 0,emissionRate:void 0,loop:void 0,particleScale:void 0,startScale:void 0,endScale:void 0,color:(0,r.reactArrayWithUndefined)(void 0),startColor:(0,r.reactArrayWithUndefined)(void 0),endColor:(0,r.reactArrayWithUndefined)(void 0),sizeInMeters:void 0,speed:void 0,minimumSpeed:void 0,maximumSpeed:void 0,lifetime:void 0,particleLife:void 0,minimumParticleLife:void 0,maximumParticleLife:void 0,mass:void 0,minimumMass:void 0,maximumMass:void 0,playingLoop:void 0,currentTime:void 0,duration:void 0,playingSpeed:void 0,playing:void 0})}(Rt||(Rt={})),(0,r.extendClassProps)(Rt.prototype,Rt.createDefaultProps);class Ft extends _{get typeName(){return"ESPoi2D"}get defaultProps(){return Ft.createDefaultProps()}constructor(t){super(t),this.initialStyle=this.ad((0,r.reactJsonWithUndefined)(void 0)),this._getInitialStyleEvent=this.disposeVar(new r.Event)}get getInitialStyleEvent(){return this._getInitialStyleEvent}getInitialStyle(){return Promise.race([new Promise((t=>{const e=this.d(this.initialStyle.changed.disposableOnce(t));this.getInitialStyleEvent.emit(),setTimeout((()=>{e(),t(void 0)}),2e3)}))])}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.fX("模式","mode",!1,!1,[this,"mode"],Ft.defaults.modes,Ft.defaults.mode),new a.EO("样式","style",!1,!1,[this,"style"],Ft.defaults.style),new a.uz("自动锚点对齐","autoAnchor",!1,!1,[this,"autoAnchor"],Ft.defaults.autoAnchor)]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.fX("模式","mode",!1,!1,[this,"mode"],Ft.defaults.modes),new a.EO("样式","style",!1,!1,[this,"style"],Ft.defaults.style),new a.uz("自动锚点对齐","autoAnchor",!1,!1,[this,"autoAnchor"],Ft.defaults.autoAnchor)])]}}It=Ft,Ft.type=It.register("ESPoi2D",It,{chsName:"ESPoi2D",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"三角形,菱形"}),Ft.defaults=Object.assign(Object.assign({},_.defaults),{modes:[["SquareH01","SquareH01"],["SquareH02","SquareH02"],["SquareV01","SquareV01"],["SquareV02","SquareV02"],["SquareV03","SquareV03"],["SquareV04","SquareV04"],["Flag01","Flag01"],["Flag02","Flag02"],["Linear01","Linear01"],["Linear02","Linear02"],["Linear03","Linear03"],["CircularH01","CircularH01"],["CircularH02","CircularH02"],["CircularV01","CircularV01"],["CircularV02","CircularV02"],["CircularV03","CircularV03"],["CircularV04","CircularV04"],["CircularV05","CircularV05"],["P3D01","P3D01"],["P3D02","P3D02"],["P3D03","P3D03"],["P3D04","P3D04"],["P3D05","P3D05"],["P3D06","P3D06"],["P3D07","P3D07"],["Diamond01","Diamond01"],["Diamond02","Diamond02"],["Stranger","Stranger"],["ManNormal","ManNormal"],["ManAbnormal","ManAbnormal"],["WomanNormal","WomanNormal"],["WomanAbnormal","WomanAbnormal"],["Camera","Camera"],["UCVertical","UCVertical"]],mode:"SquareH01",style:{},autoAnchor:!0}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},_.createDefaultProps()),{mode:"SquareH01",style:(0,r.reactJson)({}),autoAnchor:!0})}(Ft||(Ft={})),(0,r.extendClassProps)(Ft.prototype,Ft.createDefaultProps);class Lt extends d{get typeName(){return"ESPoi3D"}get defaultProps(){return Lt.createDefaultProps()}constructor(t){super(t)}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.fX("模式","mode",!1,!1,[this,"mode"],Lt.defaults.modes),new a.EO("样式","style",!1,!1,[this,"style"],Lt.defaults.style)]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.fX("模式","mode",!1,!1,[this,"mode"],Lt.defaults.modes),new a.EO("样式","style",!1,!1,[this,"style"],Lt.defaults.style)])]}}Tt=Lt,Lt.type=Tt.register("ESPoi3D",Tt,{chsName:"ESPoi3D",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"三角形,菱形"}),Lt.defaults=Object.assign(Object.assign({},d.defaults),{modes:[["三角形","triangle"],["菱形","diamond"]],mode:"triangle",style:{UI_Color:[.09803921568627451,.40784313725490196,.8,1],FX_Color:[.09803921568627451,.40784313725490196,.8,1]}}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},d.createDefaultProps()),{mode:"triangle",style:(0,r.reactJson)(t.defaults.style)})}(Lt||(Lt={})),(0,r.extendClassProps)(Lt.prototype,Lt.createDefaultProps);class kt extends T{get typeName(){return"ESPolygonFlattenedPlane"}get defaultProps(){return kt.createDefaultProps()}get czmFlattenedPlaneId(){return this._czmFlattenedPlaneId.value}set czmFlattenedPlaneId(t){this._czmFlattenedPlaneId.value=t}get czmFlattenedPlaneIdChanged(){return this._czmFlattenedPlaneId.changed}constructor(t){super(t),this._czmFlattenedPlaneId=this.disposeVar((0,r.react)("")),this.filled=!1}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.XB("瓦片图层","targetID",!1,!1,[this,"targetID"],"")]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.XB("瓦片图层","targetID",!1,!1,[this,"targetID"])])]}}jt=kt,kt.type=jt.register("ESPolygonFlattenedPlane",jt,{chsName:"压平",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"ESPolygonFlattenedPlane"}),kt.defaults=Object.assign({},T.defaults),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},T.createDefaultProps()),{targetID:""})}(kt||(kt={})),(0,r.extendClassProps)(kt.prototype,kt.createDefaultProps);var Vt=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))};const Bt=(t,e,n)=>Vt(void 0,void 0,void 0,(function*(){const{viewer:r}=t;if(!r)return void console.error("AddTrees: ueViewer.viewer is undefined");const i=yield r.callUeFunc({f:"AddTrees",p:{id:e,TreeParams:n}});return i.error&&console.error("AddTrees:",i.error),i})),zt=(t,e)=>Vt(void 0,void 0,void 0,(function*(){const{viewer:n}=t;if(!n)return void console.error("RemoveAllTrees: ueViewer.viewer is undefined");const r=yield n.callUeFunc({f:"RemoveAllTrees",p:{id:e}});return r.error&&console.error("RemoveAllTrees:",r.error),r})),Ut=(t,e,n)=>Vt(void 0,void 0,void 0,(function*(){const{viewer:r}=t;if(!r)return void console.error("UpdateTreeParams: ueViewer.viewer is undefined");const i=yield r.callUeFunc({f:"UpdateTreeParams",p:{id:e,TreeParams:n}});return i.error&&console.error("UpdateTreeParams:",i.error),i})),Gt=(t,e,n,r)=>Vt(void 0,void 0,void 0,(function*(){const{viewer:i}=t;if(!i)return void console.error("CutDownTrees: ueViewer.viewer is undefined");const o=yield i.callUeFunc({f:"CutDownTrees",p:{id:e,TreeIds:n,TimeLength:r}});return o.error&&console.error("CutDownTrees:",o.error),o})),Wt=(t,e,n,r,i)=>Vt(void 0,void 0,void 0,(function*(){const{viewer:o}=t;if(!o)return void console.error("GrowthSimulation: ueViewer.viewer is undefined");const s=yield o.callUeFunc({f:"GrowthSimulation",p:{id:e,ToParams:n,SwitchTime:i,TimeLength:r}});return s.error&&console.error("GrowthSimulation:",s.error),s}));var qt,Xt,Ht,Yt,Jt,$t,Zt=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))};class Qt extends l{get typeName(){return"ESSeparateFoliage"}get defaultProps(){return Qt.createDefaultProps()}addTreesCallFunc(t,e){return Zt(this,void 0,void 0,(function*(){return yield Bt(t,this.id,e)}))}updateTreeParamsCallFunc(t,e){return Zt(this,void 0,void 0,(function*(){return yield Ut(t,this.id,e)}))}cutDownTreesCallFunc(t,e,n){return Zt(this,void 0,void 0,(function*(){return yield Gt(t,this.id,e,n)}))}removeAllTreesCallFunc(t){return Zt(this,void 0,void 0,(function*(){return yield zt(t,this.id)}))}growthSimulationCallFunc(t,e,n,r){return Zt(this,void 0,void 0,(function*(){return yield Wt(t,this.id,e,n,r)}))}getIdByComponentNameAndHitItem(t,e,n){return Zt(this,void 0,void 0,(function*(){return yield t.getIdByComponentNameAndHitItem(this.id,e,n)}))}get addTreesEvent(){return this._addTreesEvent}addTrees(t){this._addTreesEvent.emit(t)}get removeAllTreesEvent(){return this._removeAllTreesEvent}removeAllTrees(){this._removeAllTreesEvent.emit()}get updateTreeParamsEvent(){return this._updateTreeParamsEvent}updateTreeParams(t){this._updateTreeParamsEvent.emit(t)}get cutDownTreesEvent(){return this._cutDownTreesEvent}cutDownTrees(t,e){this._cutDownTreesEvent.emit(t,e)}get growthSimulationEvent(){return this._growthSimulationEvent}growthSimulation(t,e,n){this._growthSimulationEvent.emit(t,e,n)}constructor(t){super(t),this._addTreesEvent=this.dv(new r.Event),this._removeAllTreesEvent=this.dv(new r.Event),this._updateTreeParamsEvent=this.dv(new r.Event),this._cutDownTreesEvent=this.dv(new r.Event),this._growthSimulationEvent=this.dv(new r.Event)}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.EO("treeTypes","类型为 { name: string, meshPath: string }[]",!0,!1,[this,"treeTypes"],[],"{ name: string, meshPath: string }[]"),new a.du("树桩id","树桩id",!1,!1,[this,"stumpId"]),new a.du("动画间隔时间","动画间隔时间",!1,!1,[this,"intervalTime"]),new a.du("切换间隔时间","切换间隔时间",!1,!1,[this,"switchIntervalTime"])])]}}function Kt(t,e,n){const r="buffer"in t,i=r?t.buffer:t;r&&(e+=t.byteOffset);const o=new Array(n),s=new DataView(i);for(let t=0;t<n;++t){const n=s.getUint8(e+t);o[t]=String.fromCharCode(n)}return o.join("")}function te(t,e){const n="buffer"in t,r=n?t.buffer:t;return n&&(e+=t.byteOffset),new DataView(r).getUint32(e,!0)}function ee(t,e,n){const r="buffer"in t,i=r?t.buffer:t;if(r&&(e+=t.byteOffset),!(e+n>i.byteLength))return new Uint8Array(i,e,n);console.error("byteOffset + length > buffer.byteLength")}function ne(t){if("glTF"!==Kt(t,0,4))return void console.error("Not a glTF file");const e=te(t,4);if(2!==e)return void console.error("Unsupported glTF version");const n=te(t,8);if(n!==t.byteLength)return void console.error("Invalid glTF length");const r=te(t,12);if(r+12+4>n)return void console.error("Invalid glTF chunk length");if("JSON"!==Kt(t,16,4))return void console.error("Invalid glTF chunk type");const i={version:e,length:n,gltfJson:Kt(t,20,r)};do{if(20+r>=t.byteLength)break;const e=te(t,20+r);if("BIN\0"!==Kt(t,20+r+4,4))return void console.error("Invalid glTF chunk type");const n=ee(t,20+r+8,e);i.gltfBinary=n}while(0);return i}function re(t){const e=ne(t);if(void 0===e)return;if(!e.gltfBinary)return;const n=JSON.parse(e.gltfJson);return n.nodes.map((t=>{var r,i,o,s,a=n.meshes[t.mesh],u=a.primitives[0].attributes.POSITION,c=a.primitives[0].indices,l=n.accessors[u],h=n.bufferViews[l.bufferView];if(!e.gltfBinary)throw new Error("!glbParseResult.gltfBinary");const p=function(t,e,n){const r="buffer"in t,i=r?t.buffer:t;if(r&&(e+=t.byteOffset),!(e+4*n>i.byteLength))return new Float32Array(i,e,n);console.error("byteOffset + length * 4 > buffer.byteLength")}(e.gltfBinary,null!==(r=h.byteOffset)&&void 0!==r?r:0,h.byteLength/4);var f=n.accessors[c],d=n.bufferViews[f.bufferView];if(!e.gltfBinary)throw new Error("!glbParseResult.gltfBinary");let g;return 5121===f.componentType?g=ee(e.gltfBinary,null!==(i=d.byteOffset)&&void 0!==i?i:0,d.byteLength/1):5123===f.componentType?g=function(t,e,n){const r="buffer"in t,i=r?t.buffer:t;if(r&&(e+=t.byteOffset),!(e+2*n>i.byteLength))return new Uint16Array(i,e,n);console.error("byteOffset + length * 4 > buffer.byteLength")}(e.gltfBinary,null!==(o=d.byteOffset)&&void 0!==o?o:0,d.byteLength/2):5125===f.componentType&&(g=function(t,e,n){const r="buffer"in t,i=r?t.buffer:t;if(r&&(e+=t.byteOffset),!(e+4*n>i.byteLength))return new Uint32Array(i,e,n);console.error("byteOffset + length * 4 > buffer.byteLength")}(e.gltfBinary,null!==(s=d.byteOffset)&&void 0!==s?s:0,d.byteLength/4)),{name:t.name,posBuffer:p,indicesBuffer:g}}))}qt=Qt,Qt.type=qt.register("ESSeparateFoliage",qt,{chsName:"单体控制森林",tags:["ESObjects","_ES_Impl_UE"],description:"ESSeparateFoliage"}),Qt.defaults=Object.assign(Object.assign({},l.defaults),{treeTypes:[],stumpId:-1,intervalTime:.1,switchIntervalTime:.5}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},l.createDefaultProps()),{treeTypes:(0,r.reactJsonWithUndefined)(void 0),stumpId:-1,intervalTime:.1,switchIntervalTime:.5})}(Qt||(Qt={})),(0,r.extendClassProps)(Qt.prototype,Qt.createDefaultProps),window.parseGlb=ne,window.parseWaterGlb=re;class ie extends d{get typeName(){return"ESSubmergingAnalysis"}get defaultProps(){return ie.createDefaultProps()}get getSubmergingData(){return this._submergingData}getAllMoments(){return this._allMoments}constructor(t){super(t),this._allMoments=[],this.readyEvent=this.dv(new r.Event);{const t=()=>{""!=this.url&&fetch(this.url).then((t=>{200==t.status&&t.ok&&t.arrayBuffer().then((t=>{this._submergingData=re(t);const e=this._submergingData.map((t=>Date.parse(t.name))).sort();this._allMoments=e,0==this.currentTime&&(this.currentTime=e[0]),this.readyEvent.emit()}))})).catch((t=>{console.log(t)}))};t(),this.d(this.urlChanged.don((()=>{t()})))}}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.XB("Url地址","url",!1,!1,[this,"url"],ie.defaults.url),new a.Cs("振幅","控制水波振幅的数值",!1,!1,[this,"amplitude"],.01,[0,1],ie.defaults.amplitude),new a.du("频率","控制波数的数值(次/千米)",!1,!1,[this,"frequency"],ie.defaults.frequency),new a.du("当前时间","currentTime",!1,!1,[this,"currentTime"],ie.defaults.currentTime),new a.EO("材质参数","materialParams",!1,!1,[this,"materialParams"],ie.defaults.materialParams),new a.fX("水域类型","当为custom是其他控制效果的参数生效,否则不生效,使用对应水域类型的预定效果",!1,!1,[this,"waterType"],ie.defaults.waterTypes,"river"),new a.DP("水的底色","waterColor",!1,!1,[this,"waterColor"],ie.defaults.waterColor),new a.Cs("波动频率","控制水波纹扰动的速率",!1,!1,[this,"waveVelocity"],.01,[0,1],ie.defaults.waveVelocity),new a.du("水流速度","控制水流速度,单位 米/秒",!1,!1,[this,"flowSpeed"],ie.defaults.flowSpeed),new a.Cs("镜面反射强度","控制镜面反射强度的数值",!1,!1,[this,"specularIntensity"],.01,[0,1],ie.defaults.specularIntensity)]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.XB("模型Url地址","url",!1,!1,[this,"url"],ie.defaults.url),new a.du("当前时间","currentTime",!1,!1,[this,"currentTime"],ie.defaults.currentTime),new a.EO("材质参数","materialParams",!1,!1,[this,"materialParams"],ie.defaults.materialParams),new a.fX("水域类型","当为custom是其他控制效果的参数生效,否则不生效,使用对应水域类型的预定效果",!1,!1,[this,"waterType"],ie.defaults.waterTypes),new a.DP("水的底色","waterColor",!1,!1,[this,"waterColor"],ie.defaults.waterColor),new a.du("频率","控制波数的数值(次/千米)",!1,!1,[this,"frequency"],ie.defaults.frequency),new a.Cs("波动频率","控制水波纹扰动的速率",!1,!1,[this,"waveVelocity"],.01,[0,1],ie.defaults.waveVelocity),new a.Cs("振幅","控制水波振幅的数值",!1,!1,[this,"amplitude"],.01,[0,1],ie.defaults.amplitude),new a.Cs("镜面反射强度","控制镜面反射强度的数值",!1,!1,[this,"specularIntensity"],.01,[0,1],ie.defaults.specularIntensity),new a.du("水流速度","控制水流速度,单位 米/秒",!1,!1,[this,"flowSpeed"],ie.defaults.flowSpeed)])]}}Xt=ie,ie.type=Xt.register("ESSubmergingAnalysis",Xt,{chsName:"淹没分析",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"ESSubmergingAnalysis"}),ie.defaults=Object.assign(Object.assign({},d.defaults),{url:"",currentTime:0,materialParams:{},waterColor:[.1497,.165,.0031,1],frequency:1e3,waveVelocity:.5,amplitude:.1,specularIntensity:.8,waterTypes:[["river","river"],["ocean","ocean"],["lake","lake"],["custom","custom"]],waterType:"river",flowSpeed:0}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},d.createDefaultProps()),{url:"",currentTime:0,materialParams:(0,r.reactJson)({}),waterColor:[.1497,.165,.0031,1],frequency:1e3,waveVelocity:.5,amplitude:.1,specularIntensity:.8,waterType:"river",flowSpeed:0,allowPicking:!0})}(ie||(ie={})),(0,r.extendClassProps)(ie.prototype,ie.createDefaultProps);class oe extends T{get typeName(){return"ESSunshineAnalysis"}get defaultProps(){return oe.createDefaultProps()}get startEvent(){return this._startEvent}start(){this._startEvent.emit()}get stopEvent(){return this._stopEvent}stop(){this._stopEvent.emit()}constructor(t){super(t),this._startEvent=this.dv(new r.Event),this._stopEvent=this.dv(new r.Event),this.filled=!1,this.stroked=!1}getProperties(t){return[...super.getProperties(t),new a.DP("起始颜色","起始颜色",!1,!1,[this,"startColor"]),new a.DP("结束颜色","结束颜色",!1,!1,[this,"endColor"]),new a.du("计算进度","计算进度",!0,!0,[this,"progress"]),new a.du("高度","高度m",!1,!1,[this,"extrudedHeight"]),new a.du("底面高度","底面高度",!1,!1,[this,"height"]),new a.du("采样间距","采样间距m",!1,!1,[this,"sampleDistance"]),new a.du("起始时间","startTime,时间戳",!1,!1,[this,"startTime"]),new a.du("结束时间","endTime,时间戳",!1,!1,[this,"endTime"]),new a.du("时间跨度","时间跨度,默认1小时时间戳",!1,!1,[this,"spanTime"]),new a.YF("开始分析","开始分析",[],(()=>this.start()),[]),new a.YF("结束分析","结束分析",[],(()=>this.stop()),[])]}}Ht=oe,oe.type=Ht.register("ESSunshineAnalysis",Ht,{chsName:"日照分析",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"日照分析"}),oe.supportEditingModes=[...T.supportEditingModes,a.EH.HeightModify],oe.defaults=Object.assign({},T.defaults),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},T.createDefaultProps()),{extrudedHeight:30,height:0,sampleDistance:10,startColor:(0,r.reactArray)([1,1,0,1]),endColor:(0,r.reactArray)([1,0,0,1]),startTime:0,endTime:36e6,spanTime:1,progress:0})}(oe||(oe={})),(0,r.extendClassProps)(oe.prototype,oe.createDefaultProps);class se extends l{get typeName(){return"ESTerrainLayer"}get defaultProps(){return se.createDefaultProps()}constructor(t){super(t)}getESProperties(){const t=Object.assign({},super.getESProperties()),e=[new a.du("层级序号","层级序号",!1,!1,[this,"zIndex"],se.defaults.zIndex)],n=[new a.EO("地形服务地址","地形服务地址",!1,!1,[this,"url"],se.defaults.url),new a.zf("矩形范围","西南东北",!1,!1,[this,"rectangle"],se.defaults.rectangle)];return t.basic.push(...e),t.dataSource.push(...n),t.defaultMenu="dataSource",t}getProperties(t){return[...super.getProperties(t),new a.VS("ESTerrainLayer","ESTerrainLayer",[new a.EO("地形服务地址","地形服务地址",!1,!1,[this,"url"]),new a.zf("矩形范围","西南东北",!1,!1,[this,"rectangle"]),new a.du("层级","zIndex",!1,!1,[this,"zIndex"]),new a.VS("czm","czm",[new a.du("czmMinzoom","czmMinzoom",!0,!1,[this,"czmMinzoom"]),new a.du("czmMaxzoom","czmMaxzoom",!0,!1,[this,"czmMaxzoom"])])])]}}Yt=se,se.type=Yt.register("ESTerrainLayer",Yt,{chsName:"地形图层",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"地形图层"}),se.defaults=Object.assign(Object.assign({},l.defaults),{show:!0,url:"http://inner.earthsdk.com/layer.json",rectangle:[-180,-90,180,90],zIndex:0}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},l.createDefaultProps()),{url:"http://inner.earthsdk.com/layer.json",rectangle:(0,r.reactArray)([-180,-90,180,90]),zIndex:0,czmMaxzoom:void 0,czmMinzoom:void 0})}(se||(se={})),(0,r.extendClassProps)(se.prototype,se.createDefaultProps);class ae extends _{get typeName(){return"ESTextLabel"}get defaultProps(){return ae.createDefaultProps()}constructor(t){super(t)}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.DP("文本颜色","指定文本标签的字体颜色.",!1,!1,[this,"color"],[1,1,1,1]),new a.du("文字大小","fontSize",!1,!1,[this,"fontSize"],14),new a.hZ("内容","内容",!0,!1,[this,"text"],ae.defaults.text),new a.DP("背景颜色"," 指定文本标签的背景颜色.",!1,!1,[this,"backgroundColor"],ae.defaults.backgroundColor),new a.zf("内边距","上,右,下,左顺序.",!1,!1,[this,"padding"],ae.defaults.padding)]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.hZ("内容","内容",!0,!1,[this,"text"],ae.defaults.text),new a.DP("文本颜色","指定文本标签的字体颜色.",!1,!1,[this,"color"]),new a.du("文字大小","fontSize",!1,!1,[this,"fontSize"]),new a.DP("背景颜色"," 指定文本标签的背景颜色.",!1,!1,[this,"backgroundColor"]),new a.zf("内边距","上,右,下,左顺序.",!1,!1,[this,"padding"])]),new a.VS("czm","czm",[new a.uz("文本编辑交互","文本编辑交互.",!1,!1,[this,"textEditingInteraction"]),new a.uz("文本编辑","文本编辑.",!1,!1,[this,"textEditing"]),new a.du("宽度","宽度",!0,!1,[this,"width"],ae.defaults.width),new a.uz("位置编辑","位置编辑.",!1,!1,[this,"positionEditing"]),new a.zf("原点比例和偏移","原点比例和偏移.",!1,!1,[this,"originRatioAndOffset"]),new a.du("透明度","透明度",!1,!1,[this,"opacity"]),new a.zf("边框圆角","左上,右上,右下,左下.",!1,!1,[this,"borderRadius"]),new a.DP("边框颜色"," 边框色.",!1,!1,[this,"borderColor"]),new a.du("边框宽度","边框宽度",!1,!1,[this,"borderWidth"]),new a.fX("文字位置","文字位置",!1,!1,[this,"textAlign"],[["center","center"],["left","left"],["right","right"]]),new a.fX("边框类型","边框类型",!1,!1,[this,"borderStyle"],[["none","none"],["hidden","hidden"],["dotted","dotted"],["dashed","dashed"],["solid","solid"],["double","double"],["groove","groove"],["ridge","ridge"],["inset","inset"],["outset","outset"]])])]}}Jt=ae,ae.type=Jt.register("ESTextLabel",Jt,{chsName:"文本标签",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"文本标签。"}),ae.defaults=Object.assign(Object.assign({},_.defaults),{allowTextEditing:!0,width:80,text:"请输入文字",editing:!1,originRatioAndOffset:[.5,1,0,0],opacity:1,backgroundColor:[0,0,0,.8],padding:[5,5,5,5],borderRadius:[6,6,6,6],borderColor:[1,1,1,1],borderWidth:0,textAlign:"left",borderStyle:"solid"}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},_.createDefaultProps()),{text:void 0,width:void 0,textEditing:!1,textEditingInteraction:!1,opacity:1,fontSize:14,textAlign:"left",color:(0,r.reactArray)([1,1,1,1]),backgroundColor:(0,r.reactArray)([0,0,0,.8]),padding:(0,r.reactArray)([5,5,5,5]),borderRadius:(0,r.reactArray)([6,6,6,6]),borderWidth:0,borderColor:(0,r.reactArray)([1,1,1,1]),borderStyle:"solid"})}(ae||(ae={})),(0,r.extendClassProps)(ae.prototype,ae.createDefaultProps);const ue='\n#### 默认值如下\n```js\n { \n "Title": "示例",\n "Content": "这是一个示例\\n帮助你理解info的数据形式\\nnum:1\\nkey:\'value\'\\n"\n }\n```';class ce extends _{get typeName(){return"ESUEWidget"}get defaultProps(){return ce.createDefaultProps()}get callFunctionEvent(){return this._callFunctionEvent}callFunction(t,e){this._callFunctionEvent.emit(t,e)}constructor(t){super(t),this._callFunctionEvent=this.disposeVar(new r.Event)}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a._C("positionOffset","positionOffset(米)",!1,!1,[this,"positionOffset"],ce.defaults.positionOffset),new a._C("rotationOffset","rotationOffset(米)",!1,!1,[this,"rotationOffset"],ce.defaults.rotationOffset),new a.XB("actorTag","actorTag",!1,!1,[this,"actorTag"],ce.defaults.actorTag),new a.XB("widgetClass","widgetClass",!1,!1,[this,"widgetClass"],ce.defaults.widgetClass),new a.XB("socketName","socketName",!1,!1,[this,"socketName"],ce.defaults.socketName),new a.EO("info","info",!0,!1,[this,"info"],ce.defaults.info,ue)]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.YF("callFunction","callFunction",["string","string"],((t,e)=>this.callFunction(t,JSON.parse(e))),["",""]),new a.j_("positionOffset","positionOffset(米)",!1,!1,[this,"positionOffset"]),new a.j_("rotationOffset","rotationOffset(米)",!1,!1,[this,"rotationOffset"]),new a.XB("actorTag","actorTag",!1,!1,[this,"actorTag"]),new a.XB("widgetClass","widgetClass",!1,!1,[this,"widgetClass"]),new a.XB("socketName","socketName",!1,!1,[this,"socketName"]),new a.EO("info","info",!0,!1,[this,"info"],ce.defaults.info,ue)])]}}var le,he,pe,fe;$t=ce,ce.type=$t.register("ESUEWidget",$t,{chsName:"部件",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"3DTileset"}),ce.defaults=Object.assign(Object.assign({},_.defaults),{info:{Title:"标题示例",Content:"内容示例"},widgetClass:"",socketName:"",positionOffset:[0,0,0],actorTag:"",rotationOffset:[0,0,0]}),function(t){t.createDefaultProps=()=>Object.assign({widgetClass:"",info:(0,r.reactJsonWithUndefined)(void 0)},_.createDefaultProps())}(ce||(ce={})),(0,r.extendClassProps)(ce.prototype,ce.createDefaultProps);class de extends d{constructor(){super(...arguments),this._callFunctionEvent=this.dv(new r.Event),this._actorEvent=this.dv(new r.Event),this._lastActorStatus=this.dv((0,r.react)("null"))}get typeName(){return"ESUnrealActor"}get defaultProps(){return de.createDefaultProps()}get callFunctionEvent(){return this._callFunctionEvent}callFunction(t,e){this._callFunctionEvent.emit(t,e)}getBoundSphereWithChildren(t){return new Promise(((t,e)=>{t(void 0)}))}get actorEvent(){return this._actorEvent}get lastActorStatus(){return this._lastActorStatus.value}set lastActorStatus(t){this._lastActorStatus.value=t}get lastActorStatusChanged(){return this._lastActorStatus.changed}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.XB("actorTag","actorTag",!1,!1,[this,"actorTag"],""),new a.XB("actorClass","actorClass",!1,!1,[this,"actorClass"],""),new a.uz("是否高亮","是否高亮highlight.",!1,!1,[this,"highlight"],!1)]})}getProperties(t){return[...super.getProperties(t),new a.YF("callFunction","callFunction",["string","string"],((t,e)=>this.callFunction(t,JSON.parse(e))),["",""]),new a.XB("actorTag","actorTag",!1,!1,[this,"actorTag"]),new a.XB("actorClass","actorClass",!1,!1,[this,"actorClass"]),new a.uz("是否高亮","是否高亮highlight.",!1,!1,[this,"highlight"])]}}le=de,de.type=le.register("ESUnrealActor",le,{chsName:"UnrealActor",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"UnrealActor"}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},d.createDefaultProps()),{actorTag:"",actorClass:"",highlight:!1,allowPicking:!0})}(de||(de={})),(0,r.extendClassProps)(de.prototype,de.createDefaultProps);class ge extends d{get typeName(){return"ESVideoFusion"}get defaultProps(){return ge.createDefaultProps()}get resetWithCameraInfoEvent(){return this._resetWithCameraInfoEvent}resetWithCameraInfo(){this._resetWithCameraInfoEvent.emit()}constructor(t){super(t),this._resetWithCameraInfoEvent=this.dv(new r.Event),this.collision=!1}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.uz("循环","looping",!1,!1,[this,"looping"],ge.defaults.looping),new a.uz("视椎体","showFrustum",!1,!1,[this,"showFrustum"],ge.defaults.showFrustum),new a.du("宽高比","aspectRatio",!1,!1,[this,"aspectRatio"],ge.defaults.aspectRatio),new a.du("横向夹角","fov",!1,!1,[this,"fov"],ge.defaults.fov),new a.du("视野长度","far",!1,!1,[this,"far"],ge.defaults.far),new a.du("近面距离","near",!1,!1,[this,"near"],ge.defaults.near),new a.EO("视频路径","videoStreamUrl",!1,!1,[this,"videoStreamUrl"],ge.defaults.videoStreamUrl),new a.du("显示优先级","zIndex",!1,!1,[this,"zIndex"],ge.defaults.zIndex),new a.fX("视频类型","视频类型",!1,!1,[this,"videoStreamType"],ge.defaults.videoStreamTypes,"video")]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.du("横向夹角","fov",!1,!1,[this,"fov"]),new a.du("宽高比","aspectRatio",!1,!1,[this,"aspectRatio"]),new a.du("视野长度","far",!1,!1,[this,"far"]),new a.du("近面距离","near",!1,!1,[this,"near"]),new a.EO("视频路径","videoStreamUrl",!1,!1,[this,"videoStreamUrl"]),new a.du("显示优先级","zIndex",!1,!1,[this,"zIndex"]),new a.uz("视椎体","showFrustum",!1,!1,[this,"showFrustum"]),new a.uz("循环","looping",!1,!1,[this,"looping"])]),new a.VS("czm","czm",[new a.fX("视频类型","视频类型",!1,!1,[this,"videoStreamType"],ge.defaults.videoStreamTypes),new a.YF("重置","以当前相机状态",[],(()=>this.resetWithCameraInfo()),[])])]}}he=ge,ge.type=he.register("ESVideoFusion",he,{chsName:"视频融合",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"视频融合"}),ge.defaults=Object.assign(Object.assign({},d.defaults),{fov:90,aspectRatio:1.77778,far:100,near:5,videoStreamUrl:"",zIndex:1,showFrustum:!0,looping:!0,videoStreamTypes:[["video","video"],["hls","hls"],["flv","flv"],["img","img"],["gif","gif"]]}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},d.createDefaultProps()),{fov:90,aspectRatio:1.77778,far:100,near:5,videoStreamUrl:"",zIndex:1,showFrustum:!0,looping:!0,videoStreamType:"video"})}(ge||(ge={})),(0,r.extendClassProps)(ge.prototype,ge.createDefaultProps);class ye extends d{get typeName(){return"ESViewShed"}get defaultProps(){return ye.createDefaultProps()}constructor(t){super(t),this.collision=!1}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.uz("视椎体","showFrustum",!1,!1,[this,"showFrustum"],ye.defaults.showFrustum),new a.du("宽高比","aspectRatio",!1,!1,[this,"aspectRatio"],ye.defaults.aspectRatio),new a.du("横向夹角","fov",!1,!1,[this,"fov"],ye.defaults.fov),new a.du("近面距离","near",!1,!1,[this,"near"],ye.defaults.near),new a.du("视野长度","far",!1,!1,[this,"far"],ye.defaults.far),new a.du("显示优先级","zIndex",!1,!1,[this,"zIndex"],ye.defaults.zIndex)]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.du("横向夹角","fov",!1,!1,[this,"fov"]),new a.du("宽高比","aspectRatio",!1,!1,[this,"aspectRatio"]),new a.du("近面距离","near",!1,!1,[this,"near"]),new a.du("视野长度","far",!1,!1,[this,"far"]),new a.du("显示优先级","zIndex",!1,!1,[this,"zIndex"]),new a.uz("视椎体","showFrustum",!1,!1,[this,"showFrustum"])])]}}pe=ye,ye.type=pe.register("ESViewShed",pe,{chsName:"视域分析",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"信号传输器"}),ye.defaults=Object.assign(Object.assign({},d.defaults),{fov:90,aspectRatio:1.77778,near:10,far:100,zIndex:1,showFrustum:!0}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},d.createDefaultProps()),{fov:90,aspectRatio:1.77778,near:10,far:100,zIndex:1,showFrustum:!0})}(ye||(ye={})),(0,r.extendClassProps)(ye.prototype,ye.createDefaultProps);const ve='\n#### 默认值如下\n```js\n { \n "Title": "示例",\n "Key":"Value",\n "内容": "这是一个示例\\n帮助你理解info的数据形式\\nnum:1\\nkey:\'value\'\\n"\n }\n```';class me extends _{get typeName(){return"ESWidget"}get defaultProps(){return me.createDefaultProps()}constructor(t){super(t),this.anchor=[.5,1]}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.EO("信息","info",!0,!1,[this,"info"],me.defaults.info,ve)]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.EO("信息","info",!0,!1,[this,"info"],me.defaults.info,ve)]),new a.VS("ue","ue",[new a.j_("坐标偏移","positionOffset(米)",!1,!1,[this,"positionOffset"]),new a.j_("旋转偏移","rotationOffset(米)",!1,!1,[this,"rotationOffset"]),new a.XB("actorTag","actorTag",!1,!1,[this,"actorTag"]),new a.XB("widgetClass","widgetClass",!1,!1,[this,"widgetClass"]),new a.XB("socketName","socketName",!1,!1,[this,"socketName"])]),new a.VS("czm","czm",[new a.du("透明度","透明度",!0,!1,[this,"opacity"],me.defaults.opacity)])]}}var _e;fe=me,me.type=fe.register("ESWidget",fe,{chsName:"部件",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"ES组件"}),me.defaults=Object.assign(Object.assign({},_.defaults),{info:{title:"标题示例",内容:"内容示例"},widgetClass:"WidgetBlueprint'/EarthSDKForUE/Widget/WBP_ES_DefaultInfo.WBP_ES_DefaultInfo'",actorTag:"",socketName:"",positionOffset:[0,0,0],rotationOffset:[0,0,0],allowTextEditing:!0,opacity:1}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},_.createDefaultProps()),{info:{title:"标题示例",内容:"内容示例"},widgetClass:void 0,actorTag:"",socketName:"",positionOffset:(0,r.reactArray)([0,0,0]),rotationOffset:(0,r.reactArray)([0,0,0]),opacity:1})}(me||(me={})),(0,r.extendClassProps)(me.prototype,me.createDefaultProps);class be extends f{get typeName(){return"ESDirectionMeasurement"}get defaultProps(){return be.createDefaultProps()}get strokeWidth(){return this.strokeStyle.width}set strokeWidth(t){this.strokeStyle=Object.assign(Object.assign({},this.strokeStyle),{width:t})}constructor(t){super(t),this.stroked=!0,this.strokeStyle={width:10,widthType:"screen",color:[1,1,1,1],material:"",materialParams:{},ground:!1}}getProperties(t){return[...super.getProperties(t)]}}_e=be,be.type=_e.register("ESDirectionMeasurement",_e,{chsName:"方位角测量",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"方位角测量"}),be.supportEditingModes=[...f.supportEditingModes,a.EH.Rotation,a.EH.Scale,a.EH.DoublePointsAppend,a.EH.DoublePointsModify],be.defaults=Object.assign({},f.defaults),function(t){t.createDefaultProps=()=>Object.assign({},f.createDefaultProps())}(be||(be={})),(0,r.extendClassProps)(be.prototype,be.createDefaultProps);const we="// dataSource\n(dataSource) => {\n if (dataSource) {\n dataSource.show = true;\n\n const entities = dataSource.entities.values;\n const colorHash = {};\n for (let i = 0; i < entities.length; i++) {\n const entity = entities[i];\n const name = entity.name;\n let color = colorHash[name];\n if (!color) {\n color = Cesium.Color.fromRandom({\n alpha: 1.0,\n });\n colorHash[name] = color;\n }\n if (entity.polygon) {\n\n entity.polygon.material = color;\n entity.polygon.outline = false;\n entity.polygon.extrudedHeight = entity.properties.Population / 50.0;\n }\n }\n }\n}\n",Ee=`示例代码 \n\`\`\`\n${we}\n\`\`\`\n`;function xe(t){try{return JSON.parse(t),!0}catch(t){return!1}}var Pe,Se,Oe,Ce,Me,Ie,Te,je,Ne,De,Ae,Re,Fe,Le,ke,Ve,Be,ze,Ue,Ge,We,qe;class Xe extends l{get typeName(){return"ESGeoJson"}get defaultProps(){return Xe.createDefaultProps()}get flyToFeatureEvent(){return this._flyToFeatureEvent}flyToFeature(t,e,n){this._flyToFeatureEvent.emit(t,e,n)}get flyToFeatureIndexEvent(){return this._flyToFeatureIndexEvent}flyToFeatureIndex(t,e){this._flyToFeatureIndexEvent.emit(t,e)}get features(){return this._features.value}set features(t){this._features.value=t}get featuresChanged(){return this._features.changed}getFeatures(){if(this.features)return this.features;console.log("数据未加载完成,请稍后调用此方法getFeatures()")}constructor(t){super(t),this._flyToFeatureEvent=this.dv(new r.Event),this._flyToFeatureIndexEvent=this.dv(new r.Event),this._features=this.disposeVar((0,r.reactJsonWithUndefined)(void 0)),this.pickedInfoType="FeatureCollection",this.ad(this.urlChanged.don((()=>{var t,e;if(this.url){do{if("object"==typeof this.url){this.features=this.url;break}if(xe(this.url)){this.features=JSON.parse(this.url);break}fetch(u.context.getStrFromEnv(this.url)).then((t=>t.json())).then((t=>{this.features=t})).catch((t=>{console.warn("ESEntityCluster数据加载失败",t)}))}while(0);this.pickedInfoType=null!==(e=null===(t=this.features)||void 0===t?void 0:t.type)&&void 0!==e?e:"FeatureCollection"}else this.features=void 0})))}getESProperties(){return{defaultMenu:"style",basic:[],general:[new a.XB("名称","name",!0,!1,[this,"name"]),new a.XB("唯一标识","id",!1,!0,[this,"id"]),new a.uz("是否显示","show",!1,!1,[this,"show"],!0),new a.uz("开启碰撞","collision",!1,!1,[this,"collision"],!1),new a.uz("允许拾取","allowPicking",!1,!1,[this,"allowPicking"],!1),new a.YF("保存观察视角","保存当前视角",[],(()=>this.calcFlyInParam()),[])],dataSource:[new a.EO("服务地址","服务地址",!0,!1,[this,"url"],Xe.defaults.url),new a.du("要素最小可视距离","要素最小可视距离",!1,!1,[this,"minFeatureVisibleDistance"],Xe.defaults.minFeatureVisibleDistance),new a.du("要素最大可视距离","要素最大可视距离",!1,!1,[this,"maxFeatureVisibleDistance"],Xe.defaults.maxFeatureVisibleDistance),new a.fX("高度参考","高度参考",!1,!1,[this,"heightReference"],Xe.defaults.heightReferences)],location:[],coordinate:[],style:[new a.VS("点文字样式","点样式集合",[]),new a.uz("是否显示","是否显示",!1,!1,[this,"textShow"],Xe.defaults.textShow),new a.RD("锚点","锚点",!1,!1,[this,"textAnchor"],Xe.defaults.textAnchor),new a.XB("标注显示属性","要用于显示的文本属性",!1,!1,[this,"textProperty"],Xe.defaults.textProperty),new a.XB("默认文本","默认统一显示的文本",!1,!1,[this,"textDefaultText"],Xe.defaults.textDefaultText),new a.DP("文本颜色","文本颜色",!1,!1,[this,"textColor"],Xe.defaults.textColor),new a.DP("背景颜色","背景颜色",!0,!1,[this,"textBackgroundColor"],Xe.defaults.textBackgroundColor),new a.XB("字体样式","字体样式",!1,!1,[this,"textFontStyle"],Xe.defaults.textFontStyle),new a.XB("字体粗细","字体粗细",!1,!1,[this,"textFontWeight"],Xe.defaults.textFontWeight),new a.du("字体大小","字体大小",!1,!1,[this,"textFontSize"],Xe.defaults.textFontSize),new a.RD("像素偏移","像素偏移",!1,!1,[this,"textOffset"],Xe.defaults.textOffset),new a.VS("点图片样式","图片样式集合",[]),new a.uz("是否显示","是否显示",!1,!1,[this,"imageShow"],Xe.defaults.imageShow),new a.RD("锚点","锚点",!1,!1,[this,"imageAnchor"],Xe.defaults.imageAnchor),new a.EO("图片地址","图片地址",!1,!1,[this,"imageUrl"],Xe.defaults.imageUrl),new a.RD("图片大小","图片大小",!1,!1,[this,"imageSize"],Xe.defaults.imageSize),new a.RD("像素偏移","像素偏移",!1,!1,[this,"imageOffset"],Xe.defaults.imageOffset),new a.VS("线样式","线样式集合",[]),new a.uz("是否显示","是否显示",!1,!1,[this,"stroked"],Xe.defaults.stroked),new a.uz("贴地","贴地(线)",!1,!1,[this,"strokeGround"],Xe.defaults.strokeGround),new a.du("线宽","线宽",!1,!1,[this,"strokeWidth"],Xe.defaults.strokeWidth),new a.fX("线宽类型","线宽类型",!1,!1,[this,"strokeWidthType"],Xe.defaults.strokeWidthTypes),new a.DP("线颜色","线颜色",!1,!1,[this,"strokeColor"],Xe.defaults.strokeColor),new a.XB("线材质","线材质",!1,!1,[this,"strokeMaterial"],Xe.defaults.strokeMaterial),new a.EO("线材质参数","线材质参数",!1,!1,[this,"strokeMaterialParams"],Xe.defaults.strokeMaterialParams),new a.VS("面样式","面样式集合",[]),new a.uz("是否显示","是否显示",!1,!1,[this,"filled"],Xe.defaults.filled),new a.uz("贴地","贴地(面)",!1,!1,[this,"fillGround"],Xe.defaults.fillGround),new a.DP("填充颜色","填充颜色",!1,!1,[this,"fillColor"],Xe.defaults.fillColor),new a.XB("填充材质","填充材质",!1,!1,[this,"fillMaterial"],Xe.defaults.fillMaterial),new a.EO("填充材质参数","填充材质参数",!1,!1,[this,"fillMaterialParams"],Xe.defaults.fillMaterialParams)]}}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.uz("是否显示","A boolean Property specifying the visibility .",!1,!1,[this,"show"],Xe.defaults.show),new a.uz("允许拾取","是否允许拾取",!1,!1,[this,"allowPicking"],Xe.defaults.allowPicking),new a.YF("飞入","飞入",["number"],(t=>this.flyTo(t)),[1]),new a.YF("清空飞入参数","清空飞入参数",[],(()=>this.emptyFlyInParam()),[]),new a.YF("保存飞入参数","保存飞入参数flyInParam",[],(()=>this.calcFlyInParam()),[]),new a.EO("flyInParam","flyInParam",!0,!1,[this,"flyInParam"],Xe.defaults.flyInParam)]),new a.VS("标注文本样式","标注文本样式",[new a.uz("是否显示","是否显示",!1,!1,[this,"textShow"],Xe.defaults.textShow),new a.XB("标注显示属性","要用于显示的文本属性",!1,!1,[this,"textProperty"],Xe.defaults.textProperty),new a.XB("默认文本","默认统一显示的文本",!1,!1,[this,"textDefaultText"],Xe.defaults.textDefaultText),new a.DP("文本颜色","文本颜色",!1,!1,[this,"textColor"],Xe.defaults.textColor),new a.DP("背景颜色","背景颜色",!0,!1,[this,"textBackgroundColor"],Xe.defaults.textBackgroundColor),new a.XB("字体","字体",!1,!1,[this,"textFontFamily"],Xe.defaults.textFontFamily),new a.XB("字体样式","字体样式",!1,!1,[this,"textFontStyle"],Xe.defaults.textFontStyle),new a.XB("字体粗细","字体粗细",!1,!1,[this,"textFontWeight"],Xe.defaults.textFontWeight),new a.du("字体大小","字体大小",!1,!1,[this,"textFontSize"],Xe.defaults.textFontSize),new a.RD("锚点","锚点",!1,!1,[this,"textAnchor"],Xe.defaults.textAnchor),new a.RD("像素偏移","像素偏移",!1,!1,[this,"textOffset"],Xe.defaults.textOffset)]),new a.VS("标注图标样式","标注图标样式",[new a.uz("是否显示","是否显示",!1,!1,[this,"imageShow"],Xe.defaults.imageShow),new a.EO("图片地址","图片地址",!1,!1,[this,"imageUrl"],Xe.defaults.imageUrl),new a.RD("图片大小","图片大小",!1,!1,[this,"imageSize"],Xe.defaults.imageSize),new a.RD("锚点","锚点",!1,!1,[this,"imageAnchor"],Xe.defaults.imageAnchor),new a.RD("像素偏移","像素偏移",!1,!1,[this,"imageOffset"],Xe.defaults.imageOffset)]),new a.VS("线样式","线样式",[new a.uz("是否显示","是否显示",!1,!1,[this,"stroked"],Xe.defaults.stroked),new a.du("线宽","线宽",!1,!1,[this,"strokeWidth"],Xe.defaults.strokeWidth),new a.fX("线宽类型","线宽类型",!1,!1,[this,"strokeWidthType"],Xe.defaults.strokeWidthTypes),new a.DP("线颜色","线颜色",!1,!1,[this,"strokeColor"],Xe.defaults.strokeColor),new a.XB("线材质","线材质",!1,!1,[this,"strokeMaterial"],Xe.defaults.strokeMaterial),new a.EO("线材质参数","线材质参数",!1,!1,[this,"strokeMaterialParams"],Xe.defaults.strokeMaterialParams),new a.uz("贴地(线)","贴地(线)",!1,!1,[this,"strokeGround"],Xe.defaults.strokeGround)]),new a.VS("填充样式","填充样式",[new a.uz("是否显示","是否显示",!1,!1,[this,"filled"],Xe.defaults.filled),new a.DP("填充颜色","填充颜色",!1,!1,[this,"fillColor"],Xe.defaults.fillColor),new a.XB("填充材质","填充材质",!1,!1,[this,"fillMaterial"],Xe.defaults.fillMaterial),new a.EO("填充材质参数","填充材质参数",!1,!1,[this,"fillMaterialParams"],Xe.defaults.fillMaterialParams),new a.uz("贴地(面)","贴地(面)",!1,!1,[this,"fillGround"],Xe.defaults.fillGround)]),new a.VS("通用","通用",[new a.EO("服务地址","服务地址",!0,!1,[this,"url"],Xe.defaults.url),new a.zo("loadFnStr","loadFnStr",!0,!1,[this,"loadFuncStr"],Xe.defaults.defaultLoadFuncStr,Xe.defaults.defaultLoadFuncDocStr),new a.du("要素最小可视距离","要素最小可视距离",!1,!1,[this,"minFeatureVisibleDistance"],Xe.defaults.minFeatureVisibleDistance),new a.du("要素最大可视距离","要素最大可视距离",!1,!1,[this,"maxFeatureVisibleDistance"],Xe.defaults.maxFeatureVisibleDistance),new a.fX("高度参考","高度参考",!1,!1,[this,"heightReference"],Xe.defaults.heightReferences)])]}get strokeWidth(){return this.strokeStyle.width}set strokeWidth(t){this.strokeStyle=Object.assign(Object.assign({},this.strokeStyle),{width:t})}get strokeWidthChanged(){return this.strokeStyleChanged}get strokeWidthType(){return this.strokeStyle.widthType}set strokeWidthType(t){this.strokeStyle=Object.assign(Object.assign({},this.strokeStyle),{widthType:t})}get strokeWidthTypeChanged(){return this.strokeStyleChanged}get strokeColor(){return this.strokeStyle.color}set strokeColor(t){this.strokeStyle=Object.assign(Object.assign({},this.strokeStyle),{color:[...t]})}get strokeColorChanged(){return this.strokeStyleChanged}get strokeMaterial(){return this.strokeStyle.material}set strokeMaterial(t){this.strokeStyle=Object.assign(Object.assign({},this.strokeStyle),{material:t})}get strokeMaterialChanged(){return this.strokeStyleChanged}get strokeMaterialParams(){return this.strokeStyle.materialParams}set strokeMaterialParams(t){this.strokeStyle=Object.assign(Object.assign({},this.strokeStyle),{materialParams:t})}get strokeMaterialParamsChanged(){return this.strokeStyleChanged}get strokeGround(){return this.strokeStyle.ground}set strokeGround(t){this.strokeStyle=Object.assign(Object.assign({},this.strokeStyle),{ground:t})}get strokeGroundChanged(){return this.strokeStyleChanged}get fillColor(){return this.fillStyle.color}set fillColor(t){this.fillStyle=Object.assign(Object.assign({},this.fillStyle),{color:[...t]})}get fillColorChanged(){return this.fillStyleChanged}get fillMaterial(){return this.fillStyle.material}set fillMaterial(t){this.fillStyle=Object.assign(Object.assign({},this.fillStyle),{material:t})}get fillMaterialChanged(){return this.fillStyleChanged}get fillMaterialParams(){return this.fillStyle.materialParams}set fillMaterialParams(t){this.fillStyle=Object.assign(Object.assign({},this.fillStyle),{materialParams:t})}get fillMaterialParamsChanged(){return this.fillStyleChanged}get fillGround(){return this.fillStyle.ground}set fillGround(t){this.fillStyle=Object.assign(Object.assign({},this.fillStyle),{ground:t})}get fillGroundChanged(){return this.fillStyleChanged}get textProperty(){return this.textStyle.textProperty}set textProperty(t){this.textStyle=Object.assign(Object.assign({},this.textStyle),{textProperty:t})}get textPropertyChanged(){return this.textStyleChanged}get textDefaultText(){return this.textStyle.defaultText}set textDefaultText(t){this.textStyle=Object.assign(Object.assign({},this.textStyle),{defaultText:t})}get textDefaultTextChanged(){return this.textStyleChanged}get textColor(){return this.textStyle.color}set textColor(t){this.textStyle=Object.assign(Object.assign({},this.textStyle),{color:t})}get textColorChanged(){return this.textStyleChanged}get textBackgroundColor(){return this.textStyle.backgroundColor}set textBackgroundColor(t){this.textStyle=Object.assign(Object.assign({},this.textStyle),{backgroundColor:t})}get textBackgroundColorChanged(){return this.textStyleChanged}get textFontFamily(){return this.textStyle.fontFamily}set textFontFamily(t){this.textStyle=Object.assign(Object.assign({},this.textStyle),{fontFamily:t})}get textFontFamilyChanged(){return this.textStyleChanged}get textFontStyle(){return this.textStyle.fontStyle}set textFontStyle(t){this.textStyle=Object.assign(Object.assign({},this.textStyle),{fontStyle:t})}get textFontStyleChanged(){return this.textStyleChanged}get textFontWeight(){return this.textStyle.fontWeight}set textFontWeight(t){this.textStyle=Object.assign(Object.assign({},this.textStyle),{fontWeight:t})}get textFontWeightChanged(){return this.textStyleChanged}get textFontSize(){return this.textStyle.fontSize}set textFontSize(t){this.textStyle=Object.assign(Object.assign({},this.textStyle),{fontSize:t})}get textFontSizeChanged(){return this.textStyleChanged}get textAnchor(){return this.textStyle.anchor}set textAnchor(t){this.textStyle=Object.assign(Object.assign({},this.textStyle),{anchor:t})}get textAnchorChanged(){return this.textStyleChanged}get textOffset(){return this.textStyle.offset}set textOffset(t){this.textStyle=Object.assign(Object.assign({},this.textStyle),{offset:t})}get textOffsetChanged(){return this.textStyleChanged}get imageUrl(){return this.imageStyle.url}set imageUrl(t){this.imageStyle=Object.assign(Object.assign({},this.imageStyle),{url:t})}get imageUrlChanged(){return this.imageStyleChanged}get imageSize(){return this.imageStyle.size}set imageSize(t){this.imageStyle=Object.assign(Object.assign({},this.imageStyle),{size:t})}get imageSizeChanged(){return this.imageStyleChanged}get imageAnchor(){return this.imageStyle.anchor}set imageAnchor(t){this.imageStyle=Object.assign(Object.assign({},this.imageStyle),{anchor:t})}get imageAnchorChanged(){return this.imageStyleChanged}get imageOffset(){return this.imageStyle.offset}set imageOffset(t){this.imageStyle=Object.assign(Object.assign({},this.imageStyle),{offset:t})}get imageOffsetChanged(){return this.imageStyleChanged}}Pe=Xe,Xe.type=Pe.register("ESGeoJson",Pe,{chsName:"ESGeoJson",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"GeoJson数据加载"}),Xe.defaults=Object.assign(Object.assign({},l.defaults),{show:!0,allowPicking:!0,url:"${earthsdk3-assets-script-dir}/assets/misc/2.geojson",defaultLoadFuncStr:we,defaultLoadFuncDocStr:Ee,data:{type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Point",coordinates:[116.2,39.56]},properties:{title:"swimming","marker-symbol":"swimming","marker-color":"#8F1312"}},{type:"Feature",geometry:{type:"Point",coordinates:[115.2,38.56]},properties:{title:"8","marker-symbol":"8","marker-color":"#46117E"}},{type:"Feature",geometry:{type:"Point",coordinates:[114.2,37.56]},properties:{title:"6","marker-symbol":"6","marker-color":"#713291"}}]},dataMd:'properties是一个包含三个属性的对象,title表示标题,marker-symbol表示点位的文字内容,marker-color表示点位颜色,properties可以删除,然后使用场景对象属性设置。\n```\n{\n "type": "FeatureCollection",\n "features": [\n {\n "type": "Feature",\n "geometry": {\n "type": "Point",\n "coordinates": [\n 116.2,\n 39.56\n ]\n },\n "properties": {\n "title": "swimming",\n "marker-symbol": "swimming",\n "marker-color": "#8F1312"\n }\n },\n {\n "type": "Feature",\n "geometry": {\n "type": "Point",\n "coordinates": [\n 115.2,\n 38.56\n ],\n "properties": {\n "title": "8",\n "marker-symbol": "8",\n "marker-color": "#46117E"\n }\n }\n },\n {\n "type": "Feature",\n "geometry": {\n "type": "Point",\n "coordinates": [\n 114.2,\n 37.56\n ],\n "properties": {\n "title": "6",\n "marker-symbol": "6",\n "marker-color": "#713291"\n }\n }\n }\n ]\n}\n```\n',stroked:!0,strokeWidth:1,strokeWidthType:"world",strokeColor:[.79,.91,.06,1],strokeMaterial:"",strokeMaterialParams:{},strokeGround:!1,filled:!0,fillColor:[.79,.91,.06,.2],fillMaterial:"",fillMaterialParams:{},fillGround:!1,imageShow:!0,imageUrl:"${earthsdk3-assets-script-dir}/assets/img/location.png",imageSize:[32,32],imageAnchor:[.5,1],imageOffset:[0,0],textShow:!0,textProperty:"",textDefaultText:"默认标注",textColor:[1,1,1,1],textBackgroundColor:void 0,textFontFamily:"Arial",textFontStyle:"normal",textFontSize:16,textFontWeight:"normal",textAnchor:[0,1],textOffset:[-16,8],strokeWidthTypes:[["screen","screen"],["world","world"]],flyInParam:{position:[0,0,0],rotation:[0,0,0],flyDuration:1},minFeatureVisibleDistance:0,maxFeatureVisibleDistance:0,heightReferences:[["NONE","NONE"],["CLAMP_TO_GROUND","CLAMP_TO_GROUND"],["RELATIVE_TO_GROUND","RELATIVE_TO_GROUND"]]}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},l.createDefaultProps()),{show:!0,allowPicking:!0,loadFuncStr:void 0,url:void 0,stroked:!0,strokeStyle:(0,r.reactJson)({width:1,widthType:"world",color:[.79,.91,.06,1],material:"",materialParams:{},ground:!1}),filled:!0,fillStyle:(0,r.reactJson)({color:[.79,.91,.06,.2],material:"",materialParams:{},ground:!1}),imageShow:!0,imageStyle:(0,r.reactJson)({url:"${earthsdk3-assets-script-dir}/assets/img/location.png",size:[32,32],anchor:[.5,1],offset:[0,0]}),textShow:!0,textStyle:(0,r.reactJson)({textProperty:"",defaultText:"默认标注",color:[1,1,1,1],backgroundColor:void 0,fontFamily:"Arial",fontSize:16,fontStyle:"normal",fontWeight:"normal",anchor:[0,1],offset:[16,-8]}),minFeatureVisibleDistance:0,maxFeatureVisibleDistance:0,flyInParam:(0,r.reactJsonWithUndefined)(void 0),heightReference:"NONE"})}(Xe||(Xe={})),(0,r.extendClassProps)(Xe.prototype,Xe.createDefaultProps);class He extends f{get typeName(){return"ESHeightMeasurement"}get defaultProps(){return He.createDefaultProps()}constructor(t){super(t),this.stroked=!0,this.strokeStyle.width=2}getProperties(t){return[...super.getProperties(t)]}}Se=He,He.type=Se.register("ESHeightMeasurement",Se,{chsName:"高度测量",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"高度测量"}),He.supportEditingModes=[...f.supportEditingModes,a.EH.DoublePointsAppend,a.EH.DoublePointsModify],He.defaults=Object.assign({},f.defaults),function(t){t.createDefaultProps=()=>Object.assign({},f.createDefaultProps())}(He||(He={})),(0,r.extendClassProps)(He.prototype,He.createDefaultProps);class Ye extends y{get typeName(){return"ESLocalCircle"}get defaultProps(){return Object.assign({},Ye.createDefaultProps())}get area(){return this._area.value}get areaChanged(){return this._area.changed}get perimeter(){return this._perimeter.value}get perimeterChanged(){return this._perimeter.changed}toPolygon(t=10,e){return(0,h._k)([...this.position],this.radius,t,e)[0].map((t=>[...t,this.position?this.position[2]:0]))}constructor(t){super(t),this._area=this.dv((0,r.react)(0)),this._perimeter=this.dv((0,r.react)(0)),this.radius=1,this.filled=!0,this.stroked=!1,this.collision=!1,this.strokeColor=[1,1,1,1],this.fillColor=[1,1,1,.5];const e=()=>{this._area.value=Math.PI*this.radius*this.radius,this._perimeter.value=2*Math.PI*this.radius};e(),this.d(this.radiusChanged.don(e))}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{defaultMenu:"style",basic:[...t.basic,new a.du("圆半径","圆半径",!0,!1,[this,"radius"],1)],general:[...t.general],dataSource:[...t.dataSource],location:[],coordinate:[new a.uz("是否编辑","是否编辑",!1,!1,[this,"editing"]),new a.du("面积","面积",!1,!0,[this,"area"]),new a.du("周长","周长",!1,!0,[this,"perimeter"]),new a.j_("三维坐标","三维坐标",!0,!1,[this,"position"],[0,0,0])],style:[...t.style]})}getProperties(t){return[...super.getProperties(t),new a.VS("ESLocalCircle","ESLocalCircle",[new a.du("圆半径","圆半径",!1,!1,[this,"radius"]),new a.du("面积","面积",!1,!0,[this,"area"]),new a.du("周长","周长",!1,!0,[this,"perimeter"])])]}}Oe=Ye,Ye.type=Oe.register("ESLocalCircle",Oe,{chsName:"局部坐标圆形",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"ESLocalCircle"}),Ye.defaults=Object.assign(Object.assign({},y.defaults),{fillStyle:{color:[1,1,1,.5],material:"",materialParams:{}}}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},y.createDefaultProps()),{radius:1})}(Ye||(Ye={})),(0,r.extendClassProps)(Ye.prototype,Ye.createDefaultProps);class Je extends y{get typeName(){return"ESLocalPolygon"}get defaultProps(){return Object.assign({},Je.createDefaultProps())}constructor(t){super(t),this.filled=!0}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{coordinate:[...t.coordinate,new a.MU("坐标","偏移量[x,y],单位米,不含高度",!1,!1,[this,"points"],[])]})}getProperties(t){return[...super.getProperties(t),new a.VS("ESLocalPolygon","ESLocalPolygon",[new a.EO("位置偏移数组","偏移量[x,y],单位米,不含高度",!1,!1,[this,"points"])])]}}Ce=Je,Je.type=Ce.register("ESLocalPolygon",Ce,{chsName:"局部2D坐标多边形",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"ESLocalPolygon"}),Je.defaults=Object.assign(Object.assign({},y.defaults),{points:[],filled:!0}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},y.createDefaultProps()),{points:(0,h.Sf)(void 0)})}(Je||(Je={})),(0,r.extendClassProps)(Je.prototype,Je.createDefaultProps);class $e extends g{get typeName(){return"ESLocalPolygonZ"}get defaultProps(){return Object.assign({},$e.createDefaultProps())}constructor(t){super(t),this.filled=!0}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.Ls("本地位置数组","本地位置数组",!0,!1,[this,"points"])])]}}Me=$e,$e.type=Me.register("ESLocalPolygonZ",Me,{chsName:"局部坐标多边形",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"ESLocalPolygonZ"}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},g.createDefaultProps()),{points:(0,r.reactPositions)(void 0)})}($e||($e={})),(0,r.extendClassProps)($e.prototype,$e.createDefaultProps);class Ze extends y{get typeName(){return"ESLocalRectangle"}get defaultProps(){return Object.assign({},Ze.createDefaultProps())}constructor(t){super(t),this.filled=!0}getProperties(t){return[...super.getProperties(t),new a.VS("ESLocalRectangle","ESLocalRectangle",[new a.du("宽度","宽度",!1,!1,[this,"width"]),new a.du("高度","高度",!1,!1,[this,"height"])])]}}Ie=Ze,Ze.type=Ie.register("ESLocalRectangle",Ie,{chsName:"局部坐标四边形",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"ESLocalRectangle"}),Ze.supportEditingModes=[...y.supportEditingModes.filter((t=>t!==a.EH.Scale))],Ze.defaults=Object.assign(Object.assign({},y.defaults),{width:5e5,height:3e5}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},y.createDefaultProps()),{width:5e5,height:3e5})}(Ze||(Ze={})),(0,r.extendClassProps)(Ze.prototype,Ze.createDefaultProps);class Qe extends f{get typeName(){return"ESPipeFence"}get defaultProps(){return Qe.createDefaultProps()}get distance(){return this._distance.value}get distanceChanged(){return this._distance.changed}constructor(t){super(t),this._distance=this.dv((0,r.react)(0)),this._deprecated=[{materialMode:{blue:"multipleArrows",purple:"singleArrow"}},"show"],this._deprecatedWarningFunc=(()=>{this._deprecatedWarning()})(),this.fillColor=[1,0,.73,1];const e=()=>{if(this.points&&this.points.length>=2){const t=(0,h.dh)(this.points,"GEODESIC"),e=t[t.length-1];this._distance.value=e}else this._distance.value=0};e(),this.d(this.pointsChanged.don(e))}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{defaultMenu:"basic",basic:[...t.basic,new a.du("高度","height",!1,!1,[this,"height"],10),new a.du("宽度","width",!1,!1,[this,"width"],10),new a.fX("模式","materialMode",!1,!1,[this,"materialMode"],Qe.defaults.materialModes,"purple")],coordinate:[...t.coordinate,new a.du("长度","距离",!1,!0,[this,"distance"])]})}getProperties(t){return[...super.getProperties(t),new a.VS("ESPipeFence","ESPipeFence",[new a.du("高度","height",!1,!1,[this,"height"]),new a.du("宽度","width",!1,!1,[this,"width"]),new a.fX("materialMode","materialMode",!1,!1,[this,"materialMode"],Qe.defaults.materialModes)])]}}Te=Qe,Qe.type=Te.register("ESPipeFence",Te,{chsName:"管道电子围栏",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"管道电子围栏"}),Qe.supportEditingModes=[...f.supportEditingModes,a.EH.LineStringAppend,a.EH.LineStringInsert],Qe.defaults=Object.assign(Object.assign({},f.defaults),{strokeStyle:{width:1,widthType:"screen",color:[1,1,1,1],material:"",materialParams:{}},fillStyle:{color:[1,1,1,1],material:"",materialParams:{}},filled:!0,stroked:!0,materialModes:[["单箭头","singleArrow"],["多箭头","multipleArrows"]]}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},f.createDefaultProps()),{height:10,width:10,materialMode:"singleArrow",filled:!0})}(Qe||(Qe={})),(0,r.extendClassProps)(Qe.prototype,Qe.createDefaultProps);class Ke extends C{get typeName(){return"ESPipeserTileset"}get defaultProps(){return Ke.createDefaultProps()}get setLayerVisibleEvent(){return this._setLayerVisibleEvent}setLayerVisible(t,e){this._setLayerVisibleEvent.emit(t,e)}get setLayerColorEvent(){return this._setLayerColorEvent}setLayerColor(t,e){this._setLayerColorEvent.emit(t,e)}constructor(t){super(t),this._setLayerVisibleEvent=this.dv(new r.Event),this._setLayerColorEvent=this.dv(new r.Event)}getProperties(t){return[...super.getProperties(t),new a.VS("ESPipeserTileset","ESPipeserTileset",[new a.YF("setLayerVisible","setLayerVisible",["string","string"],((t,e)=>this.setLayerVisible(t,e)),["",""]),new a.YF("setLayerColor","setLayerColor",["string","string"],((t,e)=>this.setLayerColor(t,e)),["",""]),new a.fX("colorMode","colorMode",!0,!1,[this,"colorMode"],Ke.description.colorMode,"default")])]}}je=Ke,Ke.type=je.register("ESPipeserTileset",je,{chsName:"PipeSer图层",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"PipeSer图层"}),Ke.description={colorMode:[["default","default"],["color","color"],["blend","blend"]]},function(t){t.createDefaultProps=()=>Object.assign({colorMode:"default"},C.createDefaultProps())}(Ke||(Ke={})),(0,r.extendClassProps)(Ke.prototype,Ke.createDefaultProps);class tn extends f{get typeName(){return"ESPolygonFence"}get defaultProps(){return tn.createDefaultProps()}constructor(t){super(t),this.filled=!0,this.collision=!1}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{defaultMenu:"basic",coordinate:[...t.coordinate,new a.du("面积","面积",!1,!0,[this,"area"]),new a.du("周长","周长",!1,!0,[this,"perimeter"])],basic:[...t.basic,new a.du("高度","height",!1,!1,[this,"height"],10),new a.fX("模式","materialMode",!1,!1,[this,"materialMode"],tn.defaults.materialModes,"danger")]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.du("高度","height",!1,!1,[this,"height"]),new a.fX("materialMode","materialMode",!1,!1,[this,"materialMode"],tn.defaults.materialModes)]),new a.VS("计算","计算",[new a.du("面积","面积",!1,!0,[this,"area"]),new a.du("周长","周长",!1,!0,[this,"perimeter"])])]}}Ne=tn,tn.type=Ne.register("ESPolygonFence",Ne,{chsName:"多边形电子围栏",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"多边形电子围栏"}),tn.supportEditingModes=[...f.supportEditingModes,a.EH.CircularAppend,a.EH.CircularInsert,a.EH.HeightModify],tn.defaults=Object.assign(Object.assign({},f.defaults),{fillStyle:{color:[1,1,1,1],material:"",materialParams:{}},filled:!0,materialModes:[["模式一","danger"],["模式二","checkerboard"],["模式三","warning"],["模式四","cord"],["模式五","scanline"],["模式六","honeycomb"],["模式七","gradientColor"]]}),function(t){t.createDefaultProps=()=>Object.assign({height:10,materialMode:"danger"},f.createDefaultProps())}(tn||(tn={})),(0,r.extendClassProps)(tn.prototype,tn.createDefaultProps);class en extends f{get typeName(){return"ESRectangle"}get defaultProps(){return en.createDefaultProps()}constructor(t){super(t),this._deprecated=["ground"],this._deprecatedWarningFunc=(()=>{this._deprecatedWarning()})()}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.uz("是否贴地","A boolean Property specifying the visibility.",!1,!1,[this,"ground"]),new a.uz("轮廓线半透明","轮廓线半透明.",!1,!1,[this,"outlineTranslucent"]),new a.du("高度","高度",!1,!1,[this,"height"]),new a.du("拉伸高度","拉伸高度",!1,!1,[this,"extrudedHeight"]),new a.zf("范围","西南东北",!0,!1,[this,"rectangle"],en.defaults.rectangle),new a.du("纹理旋转角度","纹理旋转角度.",!1,!1,[this,"stRotation"]),new a.du("旋转角度","rotation",!1,!1,[this,"rotation"]),new a.uz("是否单点编辑","是否单点编辑.",!1,!1,[this,"pointEditing"])])]}}De=en,en.type=De.register("ESRectangle",De,{chsName:"矩形",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"矩形"}),en.supportEditingModes=[...f.supportEditingModes,a.EH.DoublePointsAppend,a.EH.DoublePointsModify],en.defaults=Object.assign(Object.assign({},f.defaults),{ground:!1,outlineTranslucent:!0,height:0,extrudedHeight:0,rectangle:void 0,stRotation:0,rotation:0,pointEditing:!1,allowPicking:!1}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},f.createDefaultProps()),{ground:!1,outlineTranslucent:!0,height:0,extrudedHeight:0,rectangle:(0,r.reactArrayWithUndefined)(void 0),rotation:0,stRotation:0,pointEditing:!1,filled:!0})}(en||(en={})),(0,r.extendClassProps)(en.prototype,en.createDefaultProps);class nn extends T{get typeName(){return"ESPolygonWithHole"}get defaultProps(){return nn.createDefaultProps()}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.EO("裁切多边形数组","必须在内部,且没有相交,裁切的多边形数组",!0,!1,[this,"innerRings"],[])]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.EO("裁切多边形数组","必须在内部,且没有相交,裁切的多边形数组",!0,!1,[this,"innerRings"],[])])]}}Ae=nn,nn.type=Ae.register("ESPolygonWithHole",Ae,{chsName:"内部裁切多边形",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"带洞多边形"}),nn.defaults=Object.assign(Object.assign({},T.defaults),{innerRings:[]}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},T.createDefaultProps()),{innerRings:(0,r.reactPositionsSet)(void 0)})}(nn||(nn={})),(0,r.extendClassProps)(nn.prototype,nn.createDefaultProps);class rn extends T{get typeName(){return"ESSurfaceAreaMeasurement"}get defaultProps(){return rn.createDefaultProps()}get startEvent(){return this._startEvent}start(){this._startEvent.emit()}constructor(t){super(t),this._startEvent=this.disposeVar(new r.Event),this.fillStyle.ground=!0}getProperties(t){return[...super.getProperties(t),new a.VS("ESSurfaceAreaMeasurement","表面积测量",[new a.YF("开始计算","开始计算",[],(()=>this.start()),[]),new a.du("插值距离","插值距离,单位米,为0时不插值",!1,!1,[this,"interpolation"],rn.defaults.interpolation),new a.du("偏移高度","三角面整体偏移高度,单位米",!1,!1,[this,"offsetHeight"],rn.defaults.offsetHeight)])]}}Re=rn,rn.type=Re.register("ESSurfaceAreaMeasurement",Re,{chsName:"表面积测量",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"表面积测量"}),rn.defaults=Object.assign(Object.assign({},T.defaults),{interpolation:.5,offsetHeight:0}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},T.createDefaultProps()),{interpolation:void 0,offsetHeight:void 0})}(rn||(rn={})),(0,r.extendClassProps)(rn.prototype,rn.createDefaultProps);class on extends d{get typeName(){return"ESDatasmithRuntimeModel"}get defaultProps(){return on.createDefaultProps()}constructor(t){super(t)}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.du("下载进度","下载进度",!0,!0,[this,"downloadProgress"]),new a.EO("importOptions","导入参数",!0,!1,[this,"importOptions"],on.defaults.importOptions)],dataSource:[...t.dataSource,new a.EO("路径","url",!1,!1,[this,"url"])]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.EO("url","url",!1,!1,[this,"url"]),new a.du("下载进度","下载进度",!0,!0,[this,"downloadProgress"]),new a.EO("importOptions","导入参数",!0,!1,[this,"importOptions"],on.defaults.importOptions)])]}}Fe=on,on.type=Fe.register("ESDatasmithRuntimeModel",Fe,{chsName:"Datasmith Model",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"Datasmith Model"}),on.defaults=Object.assign(Object.assign({},d.defaults),{url:"",importOptions:{buildCollisions:"QueryAndPhysics",buildHierarchy:"Simplified",collisionType:"CTF_UseComplexAsSimple",bImportMetaData:!0}}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},d.createDefaultProps()),{url:"",importOptions:(0,r.reactJsonWithUndefined)(void 0),downloadProgress:0})}(on||(on={})),(0,r.extendClassProps)(on.prototype,on.createDefaultProps);class sn extends Je{get typeName(){return"ESDynamicWater"}get defaultProps(){return Object.assign({},sn.createDefaultProps())}constructor(t){super(t),this.stroked=!1,this.filled=!0}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.fX("水域类型","当为custom是其他控制效果的参数生效,否则不生效,使用对应水域类型的预定效果",!1,!1,[this,"waterType"],sn.defaults.waterTypes,sn.defaults.waterType),new a.du("频率","控制波数的数值(次/千米)",!1,!1,[this,"frequency"],sn.defaults.frequency),new a.Cs("振幅","控制水波振幅的数值",!1,!1,[this,"amplitude"],.01,[0,1],sn.defaults.amplitude),new a.Cs("流向","控制水流方向,局部坐标方向",!1,!1,[this,"flowDirection"],.1,[0,360],sn.defaults.flowDirection),new a.Cs("波动频率","控制水波纹扰动的速率",!1,!1,[this,"waveVelocity"],.01,[0,1],sn.defaults.waveVelocity),new a.Cs("镜面反射强度","控制镜面反射强度的数值",!1,!1,[this,"specularIntensity"],.01,[0,1],sn.defaults.specularIntensity),new a.du("水流速度","控制水流速度,单位 米/秒",!1,!1,[this,"flowSpeed"],sn.defaults.flowSpeed),new a.DP("水的底色","waterColor",!1,!1,[this,"waterColor"],sn.defaults.waterColor),new a.EO("水的图片","waterImage",!1,!1,[this,"waterImage"],sn.defaults.waterImage)]})}getProperties(t){return[...super.getProperties(t),new a.fX("水域类型","当为custom是其他控制效果的参数生效,否则不生效,使用对应水域类型的预定效果",!1,!1,[this,"waterType"],sn.defaults.waterTypes),new a.EO("水的图片","waterImage",!1,!1,[this,"waterImage"],sn.defaults.waterImage),new a.DP("水的底色","waterColor",!1,!1,[this,"waterColor"],sn.defaults.waterColor),new a.du("频率","控制波数的数值(次/千米)",!1,!1,[this,"frequency"],sn.defaults.frequency),new a.Cs("波动频率","控制水波纹扰动的速率",!1,!1,[this,"waveVelocity"],.01,[0,1],sn.defaults.waveVelocity),new a.Cs("振幅","控制水波振幅的数值",!1,!1,[this,"amplitude"],.01,[0,1],sn.defaults.amplitude),new a.Cs("镜面反射强度","控制镜面反射强度的数值",!1,!1,[this,"specularIntensity"],.01,[0,1],sn.defaults.specularIntensity),new a.Cs("流向","控制水流方向,局部坐标方向",!1,!1,[this,"flowDirection"],.1,[0,360],sn.defaults.flowDirection),new a.du("水流速度","控制水流速度,单位 米/秒",!1,!1,[this,"flowSpeed"],sn.defaults.flowSpeed)]}}Le=sn,sn.type=Le.register("ESDynamicWater",Le,{chsName:"动态水面",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"局部多边形水面"}),sn.defaults=Object.assign(Object.assign({},Je.defaults),{waterColor:[.1497,.165,.0031,1],frequency:1e3,waveVelocity:.5,amplitude:.1,specularIntensity:.8,waterTypes:[["river","river"],["ocean","ocean"],["lake","lake"],["custom","custom"]],waterType:"river",flowDirection:0,flowSpeed:0,waterImage:void 0}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},Je.createDefaultProps()),{waterImage:(0,r.reactJsonWithUndefined)(void 0),waterColor:[.1497,.165,.0031,1],frequency:1e3,waveVelocity:.5,amplitude:.1,specularIntensity:.8,waterType:"river",flowDirection:0,flowSpeed:0,allowPicking:!0})}(sn||(sn={})),(0,r.extendClassProps)(sn.prototype,sn.createDefaultProps);class an extends T{get typeName(){return"ESGeoWater"}get defaultProps(){return an.createDefaultProps()}constructor(t){super(t)}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{defaultMenu:"basic",basic:[...t.basic,new a.fX("水域类型","当为custom是其他控制效果的参数生效,否则不生效,使用对应水域类型的预定效果",!1,!1,[this,"waterType"],an.defaults.waterTypes,an.defaults.waterType),new a.du("频率","控制波数的数值(次/千米)",!1,!1,[this,"frequency"],an.defaults.frequency),new a.Cs("振幅","控制水波振幅的数值",!1,!1,[this,"amplitude"],.01,[0,1],an.defaults.amplitude),new a.Cs("流向","控制水流方向,局部坐标方向",!1,!1,[this,"flowDirection"],.1,[0,360],an.defaults.flowDirection),new a.Cs("波动频率","控制水波纹扰动的速率",!1,!1,[this,"waveVelocity"],.01,[0,1],an.defaults.waveVelocity),new a.Cs("镜面反射强度","控制镜面反射强度的数值",!1,!1,[this,"specularIntensity"],.01,[0,1],an.defaults.specularIntensity),new a.du("水流速度","控制水流速度,单位 米/秒",!1,!1,[this,"flowSpeed"],an.defaults.flowSpeed),new a.DP("水的底色","waterColor",!1,!1,[this,"waterColor"],an.defaults.waterColor),new a.EO("水的图片","waterImage",!1,!1,[this,"waterImage"],an.defaults.waterImage)]})}getProperties(t){return[...super.getProperties(t),new a.VS("ESGeoWater","ESGeoWater",[new a.fX("水域类型","当为custom是其他控制效果的参数生效,否则不生效,使用对应水域类型的预定效果",!1,!1,[this,"waterType"],an.defaults.waterTypes),new a.EO("水的图片","waterImage",!1,!1,[this,"waterImage"],an.defaults.waterImage),new a.DP("水的底色","waterColor",!1,!1,[this,"waterColor"],an.defaults.waterColor),new a.du("频率","控制波数的数值(次/千米)",!1,!1,[this,"frequency"],an.defaults.frequency),new a.Cs("波动频率","控制水波纹扰动的速率",!1,!1,[this,"waveVelocity"],.01,[0,1],an.defaults.waveVelocity),new a.Cs("振幅","控制水波振幅的数值",!1,!1,[this,"amplitude"],.01,[0,1],an.defaults.amplitude),new a.Cs("镜面反射强度","控制镜面反射强度的数值",!1,!1,[this,"specularIntensity"],.01,[0,1],an.defaults.specularIntensity),new a.Cs("流向","控制水流方向,局部坐标方向",!1,!1,[this,"flowDirection"],.1,[0,360],an.defaults.flowDirection),new a.du("水流速度","控制水流速度,单位 米/秒",!1,!1,[this,"flowSpeed"],an.defaults.flowSpeed)])]}}ke=an,an.type=ke.register("ESGeoWater",ke,{chsName:"地理水面",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"地理动态水面"}),an.defaults=Object.assign(Object.assign({},T.defaults),{waterColor:[.1497,.165,.0031,.8],frequency:1e3,waveVelocity:.5,amplitude:.1,specularIntensity:.8,waterTypes:[["river","river"],["ocean","ocean"],["lake","lake"],["custom","custom"]],waterType:"river",flowDirection:0,flowSpeed:0,waterImage:{}}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},T.createDefaultProps()),{waterImage:(0,r.reactJsonWithUndefined)(void 0),waterColor:[.1497,.165,.0031,.8],frequency:1e3,waveVelocity:.5,amplitude:.1,specularIntensity:.8,waterType:"river",flowDirection:0,flowSpeed:0,allowPicking:!0})}(an||(an={})),(0,r.extendClassProps)(an.prototype,an.createDefaultProps);class un extends d{get typeName(){return"ESLevelRuntimeModel"}get defaultProps(){return un.createDefaultProps()}constructor(t){super(t)}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.du("下载进度","下载进度",!0,!0,[this,"downloadProgress"]),new a.XB("levelName","levelName",!1,!1,[this,"levelName"],""),new a.du("levelLoadDistance","levelLoadDistance",!1,!1,[this,"levelLoadDistance"],1e3),new a._C("levelOffset","levelOffset",!1,!1,[this,"levelOffset"],[0,0,0])],dataSource:[...t.dataSource,new a.EO("url","url",!1,!1,[this,"url"],"")]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.EO("url","url",!1,!1,[this,"url"]),new a.XB("levelName","levelName",!1,!1,[this,"levelName"]),new a.du("下载进度","下载进度",!0,!0,[this,"downloadProgress"]),new a.du("levelLoadDistance","levelLoadDistance",!1,!1,[this,"levelLoadDistance"]),new a._C("levelOffset","levelOffset",!1,!1,[this,"levelOffset"])])]}}Ve=un,un.type=Ve.register("ESLevelRuntimeModel",Ve,{chsName:"关卡包模型",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"关卡包模型"}),un.defaults=Object.assign(Object.assign({},d.defaults),{url:""}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},d.createDefaultProps()),{url:"",downloadProgress:0,levelName:"",levelOffset:(0,r.reactArray)([0,0,0]),levelLoadDistance:1e3})}(un||(un={})),(0,r.extendClassProps)(un.prototype,un.createDefaultProps);class cn extends ot{get typeName(){return"ESPipeline"}get defaultProps(){return cn.createDefaultProps()}constructor(t){super(t),this._deprecated=[{materialMode:{blue:"multipleArrows",purple:"singleArrow"}},"show"],this._deprecatedWarningFunc=(()=>{this._deprecatedWarning()})(),this.filled=!0,this.stroked=!1,this.fillColor=[1,0,.73,1]}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{defaultMenu:"basic",basic:[...t.basic,new a.du("半径","radius(米)",!1,!1,[this,"radius"],cn.defaults.radius),new a.du("圆边数","sides(圆细分边)",!1,!1,[this,"sides"],cn.defaults.sides),new a.du("材质速度","speed",!1,!1,[this,"speed"],cn.defaults.speed),new a.fX("材质模式","materialMode",!1,!1,[this,"materialMode"],cn.defaults.materialModes),new a.EO("材质图片和重复度","materialImage",!1,!1,[this,"materialImage"],cn.defaults.materialImage)],style:[new a.VS("点样式","点样式集合",[]),new a.uz("开启","开启点样式",!1,!1,[this,"pointed"],!1),new a.du("点大小","点大小(pointSize)",!1,!1,[this,"pointSize"],1),new a.fX("点类型","点类型(pointSizeType)",!1,!1,[this,"pointSizeType"],[["screen","screen"],["world","world"]],"screen"),new a.DP("点颜色","点颜色(pointColor)",!1,!1,[this,"pointColor"],[1,1,1,1]),new a.VS("线样式","线样式集合",[]),new a.uz("开启线样式","开启线样式",!1,!1,[this,"stroked"],!0),new a.du("线宽","线宽(strokeWidth)",!1,!1,[this,"strokeWidth"],1),new a.fX("线类型","线类型(strokeWidthType)",!1,!1,[this,"strokeWidthType"],[["screen","screen"],["world","world"]],"screen"),new a.DP("线颜色","线颜色(strokeColor)",!1,!1,[this,"strokeColor"],[1,1,1,1]),new a.uz("是否贴地","是否贴地(线)",!1,!1,[this,"strokeGround"],!1),new a.VS("面样式","面样式集合",[]),new a.uz("开启","开启填充样式",!1,!1,[this,"filled"],!1),new a.DP("填充颜色","填充颜色(fillColor)",!1,!1,[this,"fillColor"],[1,1,1,1]),new a.uz("是否贴地","是否贴地",!1,!1,[this,"fillGround"],!1)]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.du("半径","radius(米)",!1,!1,[this,"radius"],cn.defaults.radius),new a.du("圆边数","sides(圆细分边)",!1,!1,[this,"sides"],cn.defaults.sides),new a.EO("材质图片和重复度","materialImage",!1,!1,[this,"materialImage"],cn.defaults.materialImage),new a.du("材质速度","speed",!1,!1,[this,"speed"],cn.defaults.speed),new a.fX("材质模式","materialMode",!1,!1,[this,"materialMode"],cn.defaults.materialModes)])]}}Be=cn,cn.type=Be.register("ESPipeline",Be,{chsName:"管线",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"ESPipeline"}),cn.defaults=Object.assign(Object.assign({},ot.defaults),{radius:10,sides:10,materialImage:{url:"",uDis:50,vDis:10},speed:1,materialModes:[["单箭头","singleArrow"],["多箭头","multipleArrows"]]}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},ot.createDefaultProps()),{radius:10,sides:10,materialMode:"singleArrow",materialImage:(0,r.reactJson)(t.defaults.materialImage),speed:1})}(cn||(cn={})),(0,r.extendClassProps)(cn.prototype,cn.createDefaultProps);class ln extends f{get typeName(){return"ESVisibilityAnalysis"}get defaultProps(){return ln.createDefaultProps()}constructor(t){super(t)}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.DP("可视区域颜色","可视区域颜色.",!1,!1,[this,"visibleColor"],ln.defaults.visibleColor),new a.DP("遮挡区域颜色","遮挡区域颜色.",!1,!1,[this,"invisibleColor"],ln.defaults.invisibleColor),new a.du("视点高度偏移","heightOffset",!1,!1,[this,"heightOffset"],ln.defaults.heightOffset)]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.DP("可视区域颜色","可视区域颜色.",!1,!1,[this,"visibleColor"],ln.defaults.visibleColor),new a.DP("遮挡区域颜色","遮挡区域颜色.",!1,!1,[this,"invisibleColor"],ln.defaults.invisibleColor),new a.du("视点高度偏移","heightOffset",!1,!1,[this,"heightOffset"],ln.defaults.heightOffset)])]}}ze=ln,ln.type=ze.register("ESVisibilityAnalysis",ze,{chsName:"通视分析,视线分析",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"通视分析,视线分析"}),ln.supportEditingModes=[...f.supportEditingModes,a.EH.VisibilityAppend,a.EH.VisibilityModify],ln.defaults=Object.assign(Object.assign({},f.defaults),{visibleColor:[0,1,0,1],invisibleColor:[1,0,0,1],heightOffset:0}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},f.createDefaultProps()),{visibleColor:(0,r.reactArray)([0,1,0,1]),invisibleColor:(0,r.reactArray)([1,0,0,1]),heightOffset:0})}(ln||(ln={})),(0,r.extendClassProps)(ln.prototype,ln.createDefaultProps);class hn extends T{get typeName(){return"ESVolumeMeasurement"}get defaultProps(){return hn.createDefaultProps()}get startEvent(){return this._startEvent}start(){this._startEvent.emit()}get clearEvent(){return this._clearEvent}clear(){this._clearEvent.emit()}constructor(t){super(t),this._startEvent=this.dv(new r.Event),this._clearEvent=this.dv(new r.Event),this.filled=!1,this.stroked=!0,this.strokeStyle.width=2}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.du("基准面高程","基准面高程",!0,!1,[this,"planeHeight"]),new a.du("采样间距 m","采样间距 m",!1,!1,[this,"gridWidth"]),new a.du("挖方","挖方 m³",!1,!0,[this,"cutVolume"]),new a.du("填方","填方 m³",!1,!0,[this,"fillVolume"]),new a.du("挖填方","挖填方 m³",!1,!0,[this,"cutAndFillVolume"]),new a.du("计算进度","计算进度",!1,!0,[this,"progress"]),new a.YF("开始分析","开始分析",[],(()=>this.start()),[]),new a.YF("清空分析结果","清空分析结果",[],(()=>this.clear()),[]),new a.uz("是否开启深度检测","A boolean Property specifying the visibility.",!1,!1,[this,"depthTest"])])]}}Ue=hn,hn.type=Ue.register("ESVolumeMeasurement",Ue,{chsName:"体积测量",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"体积测量"}),hn.defaults=Object.assign({},T.defaults),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},T.createDefaultProps()),{planeHeight:(0,r.react)(void 0),gridWidth:1,cutVolume:0,fillVolume:0,cutAndFillVolume:0,progress:0,depthTest:!1})}(hn||(hn={})),(0,r.extendClassProps)(hn.prototype,hn.createDefaultProps);class pn extends Et{get typeName(){return"ESHumanPoi"}getMainClass(){return this._human}get defaultProps(){return pn.createDefaultProps()}get human(){return this._human}get poi(){return this._poi}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.fX("poi模式","poiMode",!1,!1,[this,"poiMode"],Ft.defaults.modes,"SquareH01"),new a.du("poi高度偏移","poi高度偏移",!1,!1,[this,"poiOffsetHeight"],1.8)]})}getProperties(t){return[...super.getProperties(t),new a.fX("poi模式","poiMode",!1,!1,[this,"poiMode"],Ft.defaults.modes),new a.du("poi高度偏移","poi高度偏移",!1,!1,[this,"poiOffsetHeight"],1.8)]}constructor(t){super(t),this.combinationClass=!0,this._human=this.dv(new Et(`${this.id}_ESHuman`)),this._poi=this.dv(new Ft(`${this.id}_ESPoi2D`)),this.d(this.components.disposableAdd(this._human)),this.d(this.components.disposableAdd(this._poi));{const{_human:t,_poi:e}=this;this.d((0,r.track)([t,"show"],[this,"show"])),this.d((0,r.track)([e,"show"],[this,"show"])),this.d((0,r.track)([t,"allowPicking"],[this,"allowPicking"])),this.d((0,r.track)([e,"allowPicking"],[this,"allowPicking"])),this.d((0,r.track)([t,"scale"],[this,"scale"])),this.d((0,r.track)([e,"scale"],[this,"scale"])),this.d((0,r.track)([t,"collision"],[this,"collision"])),this.d((0,r.track)([e,"collision"],[this,"collision"])),this.d((0,r.bind)([t,"editing"],[this,"editing"])),this.d((0,r.bind)([t,"flyInParam"],[this,"flyInParam"])),this.d((0,r.bind)([t,"flyToParam"],[this,"flyToParam"])),this.d((0,r.track)([t,"animation"],[this,"animation"])),this.d((0,r.track)([t,"mode"],[this,"mode"])),this.d((0,r.track)([t,"minVisibleDistance"],[this,"minVisibleDistance"])),this.d((0,r.track)([t,"maxVisibleDistance"],[this,"maxVisibleDistance"])),this.d((0,r.track)([e,"name"],[this,"name"])),this.d((0,r.track)([e,"mode"],[this,"poiMode"])),this.d((0,r.track)([e,"autoAnchor"],[this,"autoAnchor"])),this.d((0,r.track)([e,"screenRender"],[this,"screenRender"])),this.d((0,r.track)([e,"size"],[this,"size"])),this.d((0,r.track)([e,"anchor"],[this,"anchor"])),this.d((0,r.track)([e,"sizeByContent"],[this,"sizeByContent"])),this.d((0,r.track)([e,"renderMode"],[this,"renderMode"])),this.d((0,r.track)([e,"rotationType"],[this,"rotationType"])),this.d((0,r.track)([e,"zOrder"],[this,"zOrder"])),this.d((0,r.track)([e,"minVisibleDistance"],[this,"minVisibleDistance"])),this.d((0,r.track)([e,"maxVisibleDistance"],[this,"maxVisibleDistance"])),this.d((0,r.bind)([t,"position"],[this,"position"])),this.d((0,r.bind)([t,"rotation"],[this,"rotation"])),this.d(this.flyInEvent.don((e=>{t.flyIn(e)}))),this.d(this.flyToEvent.don((e=>{t.flyTo(e)}))),this.d(this.calcFlyToParamEvent.don((()=>{t.calcFlyToParam()}))),this.d(this.calcFlyInParamEvent.don((()=>{t.calcFlyInParam()}))),this.d(this.smoothMoveEvent.don(((e,n)=>{t.smoothMove(e,n)}))),this.d(this.smoothMoveWithRotationEvent.don(((e,n,r)=>{t.smoothMoveWithRotation(e,n,r)}))),this.d(this.smoothMoveOnGroundEvent.don(((e,n,r,i)=>{t.smoothMoveOnGround(e,n,r,i)}))),this.d(this.smoothMoveWithRotationOnGroundEvent.don(((e,n,r,i,o)=>{t.smoothMoveWithRotationOnGround(e,n,r,i,o)}))),this.d(this.automaticLandingEvent.don((()=>{t.automaticLanding()})))}}}Ge=pn,pn.type=Ge.register("ESHumanPoi",Ge,{chsName:"人员poi",tags:["ESObjects"],description:"ESHuman + ESPoi2D组合对象"}),function(t){t.createDefaultProps=()=>Object.assign({poiOffsetHeight:1.8,poiMode:"SquareH01",style:(0,r.reactJson)({}),autoAnchor:!0,screenRender:!0,size:(0,r.reactArray)([100,100]),anchor:(0,r.reactArray)([.5,1]),sizeByContent:!0,renderMode:0,rotationType:1,zOrder:0},Et.createDefaultProps())}(pn||(pn={})),(0,r.extendClassProps)(pn.prototype,pn.createDefaultProps);class fn extends T{get typeName(){return"ESPit"}get defaultProps(){return fn.createDefaultProps()}constructor(t){super(t),this.collision=!1,this.allowPicking=!1,this.filled=!0}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.du("深度","坑深度(米)",!1,!1,[this,"depth"],fn.defaults.depth),new a.du("插值","插值距离(米)",!1,!1,[this,"interpolation"],fn.defaults.interpolation),new a.du("透明度","透明度",!1,!1,[this,"opacity"],fn.defaults.opacity),new a.EO("侧面图片","侧面图片",!1,!1,[this,"sideImage"],fn.defaults.sideImage),new a.EO("底面图片","底面图片",!1,!1,[this,"bottomImage"],fn.defaults.bottomImage)],style:[new a.VS("点样式","点样式集合",[]),new a.uz("开启","开启点样式",!1,!1,[this,"pointed"],!1),new a.du("点大小","点大小(pointSize)",!1,!1,[this,"pointSize"],1),new a.fX("点类型","点类型(pointSizeType)",!1,!1,[this,"pointSizeType"],[["screen","screen"],["world","world"]],"screen"),new a.DP("点颜色","点颜色(pointColor)",!1,!1,[this,"pointColor"],[1,1,1,1]),new a.VS("线样式","线样式集合",[]),new a.uz("开启","开启线样式",!1,!1,[this,"stroked"],!0),new a.du("线宽","线宽(strokeWidth)",!1,!1,[this,"strokeWidth"],1),new a.fX("线类型","线类型(strokeWidthType)",!1,!1,[this,"strokeWidthType"],[["screen","screen"],["world","world"]],"screen"),new a.DP("线颜色","线颜色(strokeColor)",!1,!1,[this,"strokeColor"],[1,1,1,1]),new a.uz("是否贴地","是否贴地(线)",!1,!1,[this,"strokeGround"],!1),new a.VS("面样式","面样式集合",[]),new a.uz("开启","开启填充样式",!1,!1,[this,"filled"],!0),new a.DP("填充颜色","填充颜色(fillColor)",!1,!1,[this,"fillColor"],[1,1,1,1]),new a.uz("是否贴地","是否贴地",!1,!1,[this,"fillGround"],!1)]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.du("深度","坑深度(米)",!1,!1,[this,"depth"],fn.defaults.depth),new a.du("插值","插值距离(米)",!1,!1,[this,"interpolation"],fn.defaults.interpolation),new a.EO("侧面图片","侧面图片",!1,!1,[this,"sideImage"],fn.defaults.sideImage),new a.EO("底面图片","底面图片",!1,!1,[this,"bottomImage"],fn.defaults.bottomImage),new a.du("opacity","透明度",!1,!1,[this,"opacity"],fn.defaults.opacity)])]}}We=fn,fn.type=We.register("ESPit",We,{chsName:"坑",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"坑"}),fn.defaults=Object.assign(Object.assign({},T.defaults),{depth:100,sideImage:{url:u.context.getStrFromEnv("${earthsdk3-assets-script-dir}/assets/img/ESPit/side.jpg"),uDis:50,vDis:50},bottomImage:{url:u.context.getStrFromEnv("${earthsdk3-assets-script-dir}/assets/img/ESPit/bottom.jpg"),uDis:50,vDis:50},opacity:1,interpolation:50}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},T.createDefaultProps()),{depth:100,sideImage:(0,r.reactJson)(t.defaults.sideImage),bottomImage:(0,r.reactJson)(t.defaults.bottomImage),opacity:1,interpolation:50})}(fn||(fn={})),(0,r.extendClassProps)(fn.prototype,fn.createDefaultProps);class dn extends fn{get typeName(){return"ESHole"}getMainClass(){return this._pit}get defaultProps(){return dn.createDefaultProps()}get excavate(){return this._excavate}constructor(t){super(t),this.combinationClass=!0,this._excavate=this.dv(new at(`${this.id}_ESExcavate`)),this._pit=this.dv(new fn(`${this.id}_ESPit`)),this.d(this.components.disposableAdd(this._excavate)),this.d(this.components.disposableAdd(this._pit));{const{_excavate:t,_pit:e}=this;this.d((0,r.track)([t,"show"],[this,"show"])),this.d((0,r.track)([e,"show"],[this,"show"])),this.d((0,r.track)([t,"allowPicking"],[this,"allowPicking"])),this.d((0,r.track)([e,"allowPicking"],[this,"allowPicking"])),this.d((0,r.track)([t,"collision"],[this,"collision"])),this.d((0,r.track)([e,"collision"],[this,"collision"])),this.d((0,r.bind)([e,"editing"],[this,"editing"])),this.d((0,r.bind)([e,"points"],[this,"points"])),this.d((0,r.track)([t,"points"],[this,"points"])),this.d((0,r.track)([e,"pointed"],[this,"pointed"])),this.d((0,r.track)([t,"pointed"],[this,"pointed"])),this.d((0,r.track)([e,"pointStyle"],[this,"pointStyle"])),this.d((0,r.track)([t,"pointStyle"],[this,"pointStyle"])),this.d((0,r.track)([e,"stroked"],[this,"stroked"])),this.d((0,r.track)([t,"stroked"],[this,"stroked"])),this.d((0,r.track)([e,"strokeStyle"],[this,"strokeStyle"])),this.d((0,r.track)([t,"strokeStyle"],[this,"strokeStyle"])),this.d((0,r.track)([e,"filled"],[this,"filled"])),this.d((0,r.track)([e,"fillStyle"],[this,"fillStyle"])),this.d((0,r.track)([t,"fillStyle"],[this,"fillStyle"])),this.d((0,r.track)([t,"mode"],[this,"mode"])),this.d((0,r.track)([t,"targetID"],[this,"targetID"])),this.d((0,r.track)([e,"depth"],[this,"depth"])),this.d((0,r.track)([e,"sideImage"],[this,"sideImage"])),this.d((0,r.track)([e,"bottomImage"],[this,"bottomImage"])),this.d((0,r.track)([e,"opacity"],[this,"opacity"])),this.d((0,r.track)([e,"interpolation"],[this,"interpolation"])),this.d((0,r.bind)([e,"flyInParam"],[this,"flyInParam"])),this.d((0,r.bind)([e,"flyToParam"],[this,"flyToParam"])),this.d(this.flyInEvent.don((t=>{e.flyIn(t)}))),this.d(this.flyToEvent.don((t=>{e.flyTo(t)}))),this.d(this.calcFlyToParamEvent.don((()=>{e.calcFlyToParam()}))),this.d(this.calcFlyInParamEvent.don((()=>{e.calcFlyInParam()})))}}}qe=dn,dn.type=qe.register("ESHole",qe,{chsName:"挖坑(带材质+深度)",tags:["ESObjects"],description:"挖坑"}),function(t){t.createDefaultProps=()=>Object.assign({mode:"in",targetID:""},fn.createDefaultProps())}(dn||(dn={})),(0,r.extendClassProps)(dn.prototype,dn.createDefaultProps);var gn=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))};var yn,vn=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))};class mn extends C{get typeName(){return"ESRtsTileset"}get defaultProps(){return mn.createDefaultProps()}get json(){return this._innerGetJson()}set json(t){this._innerSetJson(t)}getMainClass(){return this._es3DTileset}get es3DTileset(){return this._es3DTileset}getFeatureProperty(t){return vn(this,void 0,void 0,(function*(){const e=yield((t,e,n)=>gn(void 0,void 0,void 0,(function*(){try{const r={tileServiceName:e,featureId:n},i=window.localStorage.getItem("Authorization"),o=yield fetch(t+"/ts/editor/property",{method:"post",headers:Object.assign({"Content-Type":"application/json"},i?{Authorization:i}:{}),body:JSON.stringify(r),mode:"cors"}),s=yield o.text(),a=JSON.parse(s);return"ok"==a.status?a.data:void console.error(a.data.status)}catch(t){console.error(t)}})))(this.baseUrl,this.tileServiceName,t);return e}))}getLayerConfig(){return vn(this,void 0,void 0,(function*(){const t=yield(e=this.baseUrl,n=this.tileServiceName,gn(void 0,void 0,void 0,(function*(){try{const t=window.localStorage.getItem("Authorization"),r={headers:Object.assign({},t?{Authorization:t}:{}),mode:"cors"},i=yield fetch(e+`/ts/layer/config/get?tileServiceName=${n}`,r),o=yield i.text();return JSON.parse(o)}catch(t){console.error(t)}})));var e,n;return this.layerConfig=t,t}))}saveLayerConfig(){return vn(this,void 0,void 0,(function*(){const t=this.layerConfig,e=yield((t,e,n)=>gn(void 0,void 0,void 0,(function*(){try{const r=window.localStorage.getItem("Authorization"),i=null!=n?n:{},o={method:"POST",headers:Object.assign({"Content-Type":"application/json"},r?{Authorization:r}:{}),mode:"cors",body:JSON.stringify({tileServiceName:e,layerConfig:JSON.stringify(i)})},s=yield fetch(t+"/ts/layer/config/put",o),a=yield s.text();return JSON.parse(a)}catch(t){console.error(t)}})))(this.baseUrl,this.tileServiceName,t);return e}))}get highlightInner3DtilesetEvent(){return this._highlightInner3DtilesetEvent}_highlightInner3Dtileset(t){this._highlightInner3DtilesetEvent.emit(t)}highlightDSFeature(t){return vn(this,void 0,void 0,(function*(){this._highlightInner3Dtileset(t)}))}get removeHighlightInner3DtilesetEvent(){return this._removeHighlightInner3DtilesetEvent}_removeHighlightInner3Dtileset(t){this._removeHighlightInner3DtilesetEvent.emit(t)}removeHighlightDSFeature(t){return vn(this,void 0,void 0,(function*(){this._removeHighlightInner3Dtileset(t)}))}pickFeature(t,e){var n,r;return vn(this,void 0,void 0,(function*(){const i=yield t.pick(e),o=i.sceneObject;if(o&&(o.id===this.id||"ESRtsFeatureEditing"==o.typeName))return"ESRtsFeatureEditing"!=o.typeName?{featureId:null===(n=null==i?void 0:i.tilesetPickInfo)||void 0===n?void 0:n.id,pickInnerFields:null==i?void 0:i.tilesetPickInfo}:{featureId:null===(r=null==i?void 0:i.sceneObject)||void 0===r?void 0:r.id,pickInnerFields:null==i?void 0:i.tilesetPickInfo}}))}get tilesetServePort(){return this._tilesetServePort.value}get tilesetServePortChanged(){return this._tilesetServePort.changed}set tilesetServePort(t){this._tilesetServePort.value=t}getport(){return vn(this,void 0,void 0,(function*(){const t=yield(e=this.url,gn(void 0,void 0,void 0,(function*(){try{const t=window.localStorage.getItem("Authorization"),n={headers:Object.assign({},t?{Authorization:t}:{}),mode:"cors"},r=yield fetch(e,n),i=yield r.text(),o=JSON.parse(i);return"ok"==o.status?o.data.port:void console.error(o.status)}catch(t){console.error(t)}})));var e;if(t)return this.tilesetServePort=t,t;throw new Error("服务地址port获取失败!")}))}refresh(){var t;return vn(this,void 0,void 0,(function*(){if(!this.url||"string"!=typeof this.url)return;const e=null===(t=this.url.match(/\/ts\/info\/(.*)/))||void 0===t?void 0:t[1],n=+new Date;if(e){const t=this.tileServiceIp,e=yield this.getport();yield this.getLayerConfig(),this._es3DTileset.url=`${t}:${e}/tiles/tileset.json?t=${n}`}console.log("3dtileset url:",this._es3DTileset.url)}))}get baseUrl(){var t;if(this.url&&"string"==typeof this.url){const e=null===(t=this.url.match(/^(https?:\/\/[^\/]+)/))||void 0===t?void 0:t[1];if(!e)throw new Error("服务地址不合法,baseUrl is not found! 示例: http://localhost:9009/ts/info/ts01");return e}throw new Error("服务地址不合法,baseUrl is not found! 示例: http://localhost:9009/ts/info/ts01")}get tileServiceName(){var t;if(this.url&&"string"==typeof this.url){const e=null===(t=this.url.match(/\/ts\/info\/(.*)/))||void 0===t?void 0:t[1];if(!e)throw console.log(this.url),new Error("服务地址不合法,tileServiceName is not found! 示例: http://localhost:9009/ts/info/ms01,");return e}throw new Error("服务地址不合法,tileServiceName is not found! 示例: http://localhost:9009/ts/info/ms01")}get tileServiceIp(){var t;if(this.url&&"string"==typeof this.url){const e=null===(t=this.url.match(/^(https?:\/\/[^:]+)/))||void 0===t?void 0:t[1];if(!e)throw new Error("服务地址不合法,ip is not found! 示例: http://localhost:9009/ts/info/ts01");return e}throw new Error("服务地址不合法,ip is not found! 示例: http://localhost:9009/ts/info/ts01")}constructor(t){super(t),this.combinationClass=!0,this._es3DTileset=this.dv(new C(`${this.id}_ES3DTileset`)),this._highlightInner3DtilesetEvent=this.dv(new r.Event),this._removeHighlightInner3DtilesetEvent=this.dv(new r.Event),this._tilesetServePort=this.dv((0,r.react)(""));{const t=()=>vn(this,void 0,void 0,(function*(){"string"==typeof this.url?this.url?this.refresh():this._es3DTileset.url="":console.error("服务地址不合法, Init Error! 示例: http://localhost:9009/ts/info/ts01")}));this.d(this.urlChanged.don((()=>{t()})))}{this.d(this.components.disposableAdd(this._es3DTileset));const t=this._es3DTileset;this.d((0,r.track)([t,"allowPicking"],[this,"allowPicking"])),this.d((0,r.track)([t,"collision"],[this,"collision"])),this.d((0,r.bind)([t,"flyToParam"],[this,"flyToParam"])),this.d((0,r.bind)([t,"flyToParam"],[this,"flyToParam"])),this.d((0,r.bind)([t,"editing"],[this,"editing"])),this.d((0,r.track)([t,"actorTag"],[this,"actorTag"])),this.d((0,r.track)([t,"materialMode"],[this,"materialMode"])),this.d((0,r.track)([t,"highlight"],[this,"highlight"])),this.d((0,r.track)([t,"maximumScreenSpaceError"],[this,"maximumScreenSpaceError"])),this.d((0,r.track)([t,"highlightID"],[this,"highlightID"])),this.d((0,r.track)([t,"highlightColor"],[this,"highlightColor"])),this.d((0,r.bind)([t,"offset"],[this,"offset"])),this.d((0,r.bind)([t,"rotation"],[this,"rotation"])),this.d((0,r.track)([t,"czmImageBasedLightingFactor"],[this,"czmImageBasedLightingFactor"])),this.d((0,r.track)([t,"czmLuminanceAtZenith"],[this,"czmLuminanceAtZenith"])),this.d((0,r.track)([t,"czmMaximumMemoryUsage"],[this,"czmMaximumMemoryUsage"])),this.d((0,r.track)([t,"czmClassificationType"],[this,"czmClassificationType"])),this.d((0,r.track)([t,"czmStyleJson"],[this,"czmStyleJson"])),this.d((0,r.track)([t,"czmBackFaceCulling"],[this,"czmBackFaceCulling"])),this.d((0,r.track)([t,"czmDebugShowBoundingVolume"],[this,"czmDebugShowBoundingVolume"])),this.d((0,r.track)([t,"czmDebugShowContentBoundingVolume"],[this,"czmDebugShowContentBoundingVolume"])),this.d((0,r.track)([t,"czmSkipLevelOfDetail"],[this,"czmSkipLevelOfDetail"])),this.d((0,r.track)([t,"colorBlendMode"],[this,"colorBlendMode"])),this.d((0,r.track)([t,"cacheBytes"],[this,"cacheBytes"])),this.d((0,r.track)([t,"clippingPlaneEnabled"],[this,"clippingPlaneEnabled"])),this.d((0,r.track)([t,"unionClippingRegions"],[this,"unionClippingRegions"])),this.d((0,r.track)([t,"clippingPlaneEdgeColor"],[this,"clippingPlaneEdgeColor"])),this.d((0,r.track)([t,"clippingPlaneEdgeWidth"],[this,"clippingPlaneEdgeWidth"])),this.d((0,r.track)([t,"materialParams"],[this,"materialParams"])),this.d((0,r.bind)([t,"supportEdit"],[this,"supportEdit"])),this.d((0,r.bind)([t,"clippingPlanesId"],[this,"clippingPlanesId"])),this.d((0,r.bind)([t,"clippingPlaneIds"],[this,"clippingPlaneIds"])),this.d((0,r.bind)([t,"flattenedPlaneId"],[this,"flattenedPlaneId"])),this.d((0,r.bind)([t,"flattenedPlaneEnabled"],[this,"flattenedPlaneEnabled"])),this.d((0,r.bind)([t,"clippingPlaneId"],[this,"clippingPlaneId"])),this.d((0,r.bind)([t,"excavateId"],[this,"excavateId"]))}{const t=this._es3DTileset;this.d(this.refreshTilesetEvent.don((()=>{t.refreshTileset()}))),this.d(this.highlightFeatureEvent.don(((...e)=>{t.highlightFeature(...e)}))),this.d(this.highlightFeatureAndFlyToEvent.don(((...e)=>{t.highlightFeatureAndFlyTo(...e)}))),this.d(this.setFeatureColorEvent.don(((...e)=>{t.setFeatureColor(...e)}))),this.d(this.setFeatureVisableEvent.don(((...e)=>{t.setFeatureVisable(...e)}))),this.d(this.resetFeatureStyleEvent.don(((...e)=>{t.resetFeatureStyle(...e)}))),this.d(this.setFeatureStyleEvent.don(((...e)=>{t.setFeatureStyle(...e)}))),this.d(this.flyInEvent.don(((...e)=>{t.flyIn(e[0])}))),this.d(this.flyToEvent.don(((...e)=>{t.flyTo(e[0])}))),this.d(this.calcFlyToParamEvent.don(((...e)=>{t.calcFlyToParam(...e)}))),this.d(this.calcFlyInParamEvent.don(((...e)=>{t.calcFlyInParam(...e)})))}{const t=this._es3DTileset;this.d(t.tilesetReady.don((t=>{this.tilesetReady.emit(t)}))),this.d(t.pickedEvent.don((t=>{this.pickedEvent.emit(new a.QR(this,t.childPickedInfo))})))}{const t=()=>{this.es3DTileset.show=this.show};t(),this.d(this.showChanged.don((()=>{t()})))}}getProperties(t){return[...super.getProperties(t),new a.VS("ESRtsTileset","ESRtsTileset",[new a.EO("图层配置","图层配置(layerConfig)",!0,!1,[this,"layerConfig"],[])])]}}yn=mn,mn.type=yn.register("ESRtsTileset",yn,{chsName:"CIMRTS实时3DTileset图层",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"实时3DTileset图层"}),mn.defaults=Object.assign(Object.assign({},C.defaults),{layerConfig:[]}),function(t){t.createDefaultProps=()=>Object.assign({layerConfig:(0,r.reactJsonWithUndefined)(void 0)},C.createDefaultProps())}(mn||(mn={})),(0,r.extendClassProps)(mn.prototype,mn.createDefaultProps);var _n;class bn extends C{get typeName(){return"ESRtsFeatureEditing"}get defaultProps(){return bn.createDefaultProps()}get json(){return Object.assign(Object.assign({},this._innerGetJson()),{show:this.show,materials:this.materials,beautifyMaterails:this.beautifyMaterails,props:this.props,rotation:this.rotation})}set json(t){this._innerSetJson(t)}getMainClass(){var t;return null!==(t=this.mainClass)&&void 0!==t?t:this}init(t,e){return n=this,r=void 0,o=function*(){this.featureId=e;const n=yield t.getFeatureProperty(e);this.uiShowprops=n.allFields.map((t=>({featureClassName:t.featureClassName,fields:t.fields.map((t=>{return{key:t.name,type:t.type,value:"Double"!=t.type?t.value:(e=t.value,"number"!=typeof e||isNaN(e)?"":Number(t.value.toFixed(3)))};var e}))}))),this.datasetName=n.datasetName,t.setFeatureVisable("id",[{value:this.featureId,visable:!1}]),this.d((()=>{t.setFeatureVisable("id",[{value:this.featureId,visable:!0}])}));const r=t.tileServiceIp,i=t.tilesetServePort;if(!i)throw new Error("ESRtsFeatureEditing: port is not defined");this.url=`${r}:${i}/featuretiles/${this.featureId}/tileset.json`,this.allowPicking=!0,this.d(this.pickedEvent.don((e=>{t.pickedEvent.emit(new a.QR(t,e))}))),this.d((()=>{this.editing=!1,t.removeHighlightDSFeature(this)}))},new((i=void 0)||(i=Promise))((function(t,e){function s(t){try{u(o.next(t))}catch(t){e(t)}}function a(t){try{u(o.throw(t))}catch(t){e(t)}}function u(e){var n;e.done?t(e.value):(n=e.value,n instanceof i?n:new i((function(t){t(n)}))).then(s,a)}u((o=o.apply(n,r||[])).next())}));var n,r,i,o}constructor(t){super(t),this.combinationClass=!0,this.mainClass=void 0}getProperties(t){return[...super.getProperties(t)]}}_n=bn,bn.type=_n.register("ESRtsFeatureEditing",_n,{chsName:"ESRtsFeatureEditing",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"实时3DTileset图层"}),bn.defaults=Object.assign(Object.assign({},C.defaults),{layerConfig:{}}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},C.createDefaultProps()),{datasetName:void 0,featureId:void 0,materials:(0,r.reactJson)({}),beautifyMaterails:(0,r.reactJson)({}),uiShowprops:(0,r.reactJson)({}),props:(0,r.reactJson)({})})}(bn||(bn={})),(0,r.extendClassProps)(bn.prototype,bn.createDefaultProps);var wn,En,xn=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))};class Pn extends C{get typeName(){return"ESMsTileset"}get defaultProps(){return Pn.createDefaultProps()}get json(){return this._innerGetJson()}set json(t){this._innerSetJson(t)}getMainClass(){return this._es3DTileset}get es3DTileset(){return this._es3DTileset}get tilesetServePort(){return this._tilesetServePort.value}get tilesetServePortChanged(){return this._tilesetServePort.changed}set tilesetServePort(t){this._tilesetServePort.value=t}getport(){return xn(this,void 0,void 0,(function*(){const t=yield(e=this.url,n=void 0,r=void 0,o=function*(){try{const t=window.localStorage.getItem("Authorization"),n={headers:Object.assign({},t?{Authorization:t}:{}),mode:"cors"},r=yield fetch(e,n),i=yield r.text(),o=JSON.parse(i);return"ok"==o.status?o.data.port:void console.error(o.status)}catch(t){console.error(t)}},new((i=void 0)||(i=Promise))((function(t,e){function s(t){try{u(o.next(t))}catch(t){e(t)}}function a(t){try{u(o.throw(t))}catch(t){e(t)}}function u(e){var n;e.done?t(e.value):(n=e.value,n instanceof i?n:new i((function(t){t(n)}))).then(s,a)}u((o=o.apply(n,r||[])).next())})));var e,n,r,i,o;if(t)return this.tilesetServePort=t,t;throw new Error("服务地址port获取失败!")}))}refresh(){var t;return xn(this,void 0,void 0,(function*(){if(!this.url||"string"!=typeof this.url)return;const e=null===(t=this.url.match(/\/ts\/info\/(.*)/))||void 0===t?void 0:t[1],n=+new Date;if(e){const t=this.tileServiceIp,e=yield this.getport();this._es3DTileset.url=`${t}:${e}/tiles/tileset.json?t=${n}`}console.log("3dtileset url:",this._es3DTileset.url)}))}get baseUrl(){var t;if(this.url&&"string"==typeof this.url){const e=null===(t=this.url.match(/^(https?:\/\/[^\/]+)/))||void 0===t?void 0:t[1];if(!e)throw new Error("服务地址不合法,baseUrl is not found! 示例: http://localhost:9009/ts/info/ms01");return e}throw new Error("服务地址不合法,baseUrl is not found! 示例: http://localhost:9009/ts/info/ms01")}get tileServiceIp(){var t;if(this.url&&"string"==typeof this.url){const e=null===(t=this.url.match(/^(https?:\/\/[^:]+)/))||void 0===t?void 0:t[1];if(!e)throw new Error("服务地址不合法,ip is not found! 示例: http://localhost:9009/ts/info/ms01");return e}throw new Error("服务地址不合法,ip is not found! 示例: http://localhost:9009/ts/info/ms01")}get tileServiceName(){var t;if(this.url&&"string"==typeof this.url){const e=null===(t=this.url.match(/\/ts\/info\/(.*)/))||void 0===t?void 0:t[1];if(!e)throw console.log(this.url),new Error("服务地址不合法,tileServiceName is not found! 示例: http://localhost:9009/ts/info/ms01,");return e}throw new Error("服务地址不合法,tileServiceName is not found! 示例: http://localhost:9009/ts/info/ms01")}constructor(t){super(t),this.combinationClass=!0,this._es3DTileset=this.dv(new C(`${this.id}_ES3DTileset`)),this._tilesetServePort=this.dv((0,r.react)(""));{const t=()=>xn(this,void 0,void 0,(function*(){"string"==typeof this.url?this.url?this.refresh():this._es3DTileset.url="":console.error("服务地址不合法, Init Error! 示例: http://localhost:9009/ts/info/ms01")}));this.d(this.urlChanged.don((()=>{t()})))}{this.d(this.components.disposableAdd(this._es3DTileset));const t=this._es3DTileset;this.d((0,r.track)([t,"allowPicking"],[this,"allowPicking"])),this.d((0,r.track)([t,"collision"],[this,"collision"])),this.d((0,r.bind)([t,"flyToParam"],[this,"flyToParam"])),this.d((0,r.bind)([t,"flyToParam"],[this,"flyToParam"])),this.d((0,r.bind)([t,"editing"],[this,"editing"])),this.d((0,r.track)([t,"actorTag"],[this,"actorTag"])),this.d((0,r.track)([t,"materialMode"],[this,"materialMode"])),this.d((0,r.track)([t,"highlight"],[this,"highlight"])),this.d((0,r.track)([t,"maximumScreenSpaceError"],[this,"maximumScreenSpaceError"])),this.d((0,r.track)([t,"highlightID"],[this,"highlightID"])),this.d((0,r.track)([t,"highlightColor"],[this,"highlightColor"])),this.d((0,r.bind)([t,"offset"],[this,"offset"])),this.d((0,r.bind)([t,"rotation"],[this,"rotation"])),this.d((0,r.track)([t,"czmImageBasedLightingFactor"],[this,"czmImageBasedLightingFactor"])),this.d((0,r.track)([t,"czmLuminanceAtZenith"],[this,"czmLuminanceAtZenith"])),this.d((0,r.track)([t,"czmMaximumMemoryUsage"],[this,"czmMaximumMemoryUsage"])),this.d((0,r.track)([t,"czmClassificationType"],[this,"czmClassificationType"])),this.d((0,r.track)([t,"czmStyleJson"],[this,"czmStyleJson"])),this.d((0,r.track)([t,"czmBackFaceCulling"],[this,"czmBackFaceCulling"])),this.d((0,r.track)([t,"czmDebugShowBoundingVolume"],[this,"czmDebugShowBoundingVolume"])),this.d((0,r.track)([t,"czmDebugShowContentBoundingVolume"],[this,"czmDebugShowContentBoundingVolume"])),this.d((0,r.track)([t,"czmSkipLevelOfDetail"],[this,"czmSkipLevelOfDetail"])),this.d((0,r.track)([t,"colorBlendMode"],[this,"colorBlendMode"])),this.d((0,r.track)([t,"cacheBytes"],[this,"cacheBytes"])),this.d((0,r.track)([t,"clippingPlaneEnabled"],[this,"clippingPlaneEnabled"])),this.d((0,r.track)([t,"unionClippingRegions"],[this,"unionClippingRegions"])),this.d((0,r.track)([t,"clippingPlaneEdgeColor"],[this,"clippingPlaneEdgeColor"])),this.d((0,r.track)([t,"clippingPlaneEdgeWidth"],[this,"clippingPlaneEdgeWidth"])),this.d((0,r.track)([t,"materialParams"],[this,"materialParams"])),this.d((0,r.bind)([t,"supportEdit"],[this,"supportEdit"])),this.d((0,r.bind)([t,"clippingPlanesId"],[this,"clippingPlanesId"])),this.d((0,r.bind)([t,"clippingPlaneIds"],[this,"clippingPlaneIds"])),this.d((0,r.bind)([t,"flattenedPlaneId"],[this,"flattenedPlaneId"])),this.d((0,r.bind)([t,"flattenedPlaneEnabled"],[this,"flattenedPlaneEnabled"])),this.d((0,r.bind)([t,"clippingPlaneId"],[this,"clippingPlaneId"])),this.d((0,r.bind)([t,"excavateId"],[this,"excavateId"]))}{const t=this._es3DTileset;this.d(this.refreshTilesetEvent.don((()=>{t.refreshTileset()}))),this.d(this.highlightFeatureEvent.don(((...e)=>{t.highlightFeature(...e)}))),this.d(this.highlightFeatureAndFlyToEvent.don(((...e)=>{t.highlightFeatureAndFlyTo(...e)}))),this.d(this.setFeatureColorEvent.don(((...e)=>{t.setFeatureColor(...e)}))),this.d(this.setFeatureVisableEvent.don(((...e)=>{t.setFeatureVisable(...e)}))),this.d(this.resetFeatureStyleEvent.don(((...e)=>{t.resetFeatureStyle(...e)}))),this.d(this.flyInEvent.don(((...e)=>{t.flyIn(e[0])}))),this.d(this.flyToEvent.don(((...e)=>{t.flyTo(e[0])}))),this.d(this.calcFlyToParamEvent.don(((...e)=>{t.calcFlyToParam(...e)}))),this.d(this.calcFlyInParamEvent.don(((...e)=>{t.calcFlyInParam(...e)})))}{const t=this._es3DTileset;this.d(t.tilesetReady.don((t=>{this.tilesetReady.emit(t)}))),this.d(t.pickedEvent.don((t=>{this.pickedEvent.emit(new a.QR(this,t.childPickedInfo))})))}{const t=()=>{this.es3DTileset.show=this.show};t(),this.d(this.showChanged.don((()=>{t()})))}}getProperties(t){return[...super.getProperties(t)]}}wn=Pn,Pn.type=wn.register("ESMsTileset",wn,{chsName:"Modelser实时3DTileset图层",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"实时3DTileset图层"}),Pn.defaults=Object.assign(Object.assign({},C.defaults),{layerConfig:{}}),function(t){t.createDefaultProps=()=>Object.assign({},C.createDefaultProps())}(Pn||(Pn={})),(0,r.extendClassProps)(Pn.prototype,Pn.createDefaultProps);const Sn={defaultValue:[{type:"2",widget:"WidgetBlueprint'/ESFoliage/PoiSheng.PoiSheng'",povit:[.5,1],worldScale:.1,hiddenDistance:40},{type:"3",widget:"WidgetBlueprint'/ESFoliage/PoiShi.PoiShi'",povit:[.5,1],worldScale:.1,hiddenDistance:40},{type:"4",widget:"WidgetBlueprint'/ESFoliage/PoiShi.PoiShi'",povit:[.5,1],worldScale:.1,hiddenDistance:40},{type:"5",widget:"WidgetBlueprint'/ESFoliage/PoiXiang.PoiXiang'",povit:[.5,1],worldScale:.1,hiddenDistance:40},{type:"6",widget:"WidgetBlueprint'/ESFoliage/PoiCun.PoiCun'",povit:[.5,1],worldScale:.1,hiddenDistance:40}],sampleValue:"\n## 参数类型为 ESPoiType[]\n```js\ntype Vector2D = [number, number]\n\ntype ESPoiType = { \n type: string, \n povit: Vector2D, \n widget: string, \n worldScale: number, \n hiddenDistance: number \n}\n\n```\n"};class On extends l{get typeName(){return"ESPoiTileset"}get defaultProps(){return On.createDefaultProps()}constructor(t){super(t)}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.EO("路径","路径",!1,!1,[this,"url"]),new a.EO("poiTypes","类型为 {type: string, povit: Vector2D, widget: string, worldScale: number, hiddenDistance: number}[]",!1,!1,[this,"poiTypes"],On.defaults.poiTypes,Sn.sampleValue),new a.du("heightOffset","heightOffset",!1,!1,[this,"heightOffset"])])]}}var Cn,Mn,In,Tn,jn;En=On,On.type=En.register("ESPoiTileset",En,{chsName:"ESPoiTileset",tags:["ESObjects","_ES_Impl_UE"],description:"ESPoiTileset"}),On.defaults=Object.assign(Object.assign({},l.defaults),{poiTypes:Sn.defaultValue}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},l.createDefaultProps()),{url:"",poiTypes:(0,r.reactJsonWithUndefined)(void 0),heightOffset:40})}(On||(On={})),(0,r.extendClassProps)(On.prototype,On.createDefaultProps);class Nn extends u{get typeName(){return"ESScale"}get defaultProps(){return Nn.createDefaultProps()}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.uz("是否显示","A boolean Property specifying the visibility .",!1,!1,[this,"show"]),new a.fX("定位","放到屏幕的哪个位置",!1,!1,[this,"screenPosition"],[["left","left"],["right","right"]]),new a.RD("位置","位置(bottom,right/left)",!1,!1,[this,"cssPosition"])])]}}Cn=Nn,Nn.type=Cn.register("ESScale",Cn,{chsName:"比例尺",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"比例尺"}),Nn.defaults=Object.assign(Object.assign({},u.defaults),{show:!0,screenPosition:"right",cssPosition:[40,18]}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},u.createDefaultProps()),{show:!0,screenPosition:"right",cssPosition:[40,30]})}(Nn||(Nn={})),(0,r.extendClassProps)(Nn.prototype,Nn.createDefaultProps);class Dn extends T{get typeName(){return"ESGeoExtrudedPolygon"}get defaultProps(){return Dn.createDefaultProps()}constructor(t){super(t),this.collision=!1}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{coordinate:[...t.coordinate,new a.du("高度","高度 m",!0,!1,[this,"height"],Dn.defaults.height),new a.du("拉伸高度","拉伸高度 m",!0,!1,[this,"extrudedHeight"],Dn.defaults.extrudedHeight),new a.uz("应用每个位置高度","应用每个位置高度",!0,!1,[this,"perPositionHeight"],Dn.defaults.perPositionHeight)],style:[new a.VS("点样式","点样式集合",[]),new a.uz("开启","开启点样式",!1,!1,[this,"pointed"],!1),new a.du("点大小","点大小(pointSize)",!1,!1,[this,"pointSize"],1),new a.fX("点类型","点类型(pointSizeType)",!1,!1,[this,"pointSizeType"],[["screen","screen"],["world","world"]],"screen"),new a.DP("点颜色","点颜色(pointColor)",!1,!1,[this,"pointColor"],[1,1,1,1]),new a.VS("线样式","线样式集合",[]),new a.uz("开启","开启线样式",!1,!1,[this,"stroked"],!1),new a.uz("贴地","是否贴地",!1,!1,[this,"strokeGround"],!1),new a.du("线宽","线宽(strokeWidth)",!1,!1,[this,"strokeWidth"],1),new a.fX("线类型","线类型(strokeWidthType)",!1,!1,[this,"strokeWidthType"],[["screen","screen"],["world","world"]],"screen"),new a.DP("线颜色","线颜色(strokeColor)",!1,!1,[this,"strokeColor"],[1,1,1,1]),new a.VS("面样式","面样式集合",[]),new a.uz("开启","开启填充样式",!1,!1,[this,"filled"],!0),new a.uz("贴地","是否贴地",!1,!1,[this,"fillGround"],!1),new a.DP("填充颜色","填充颜色(fillColor)",!1,!1,[this,"fillColor"],[1,1,1,1])]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.du("高度","高度 m",!0,!1,[this,"height"],Dn.defaults.height),new a.du("拉伸高度","拉伸高度 m",!0,!1,[this,"extrudedHeight"],Dn.defaults.extrudedHeight),new a.uz("应用每个位置高度","应用每个位置高度",!0,!1,[this,"perPositionHeight"],Dn.defaults.perPositionHeight)])]}}Mn=Dn,Dn.type=Mn.register("ESGeoExtrudedPolygon",Mn,{chsName:"挤压多边形体",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"挤压多边形体"}),Dn.supportEditingModes=[...T.supportEditingModes,a.EH.HeightModify],Dn.defaults=Object.assign(Object.assign({},T.defaults),{height:0,extrudedHeight:10,perPositionHeight:!1}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},T.createDefaultProps()),{height:0,extrudedHeight:10,perPositionHeight:!1})}(Dn||(Dn={})),(0,r.extendClassProps)(Dn.prototype,Dn.createDefaultProps);class An extends T{get typeName(){return"ESHeightLimitAnalysis"}get defaultProps(){return An.createDefaultProps()}get json(){return this._innerGetJson()}set json(t){this._innerSetJson(t)}getMainClass(){return this._geoExtrudedPolygon}get classification(){return this._classification}get geoExtrudedPolygon(){return this._geoExtrudedPolygon}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{defaultMenu:"basic",basic:[...t.basic,new a.du("高度","控高的高度",!1,!1,[this,"height"],10),new a.du("最高高度","最高高度",!1,!1,[this,"maxHeight"],200),new a.DP("超高颜色","超高颜色",!1,!1,[this,"overheightColor"],[1,0,0,.5]),new a.DP("标准颜色","标准颜色",!1,!1,[this,"standardColor"],[0,1,0,.5])],style:[new a.VS("点样式","点样式集合",[]),new a.uz("开启","开启点样式",!1,!1,[this,"pointed"],!1),new a.du("点大小","点大小(pointSize)",!1,!1,[this,"pointSize"],1),new a.fX("点类型","点类型(pointSizeType)",!1,!1,[this,"pointSizeType"],[["screen","screen"],["world","world"]],"screen"),new a.DP("点颜色","点颜色(pointColor)",!1,!1,[this,"pointColor"],[1,1,1,1]),new a.VS("线样式","线样式集合",[]),new a.uz("开启","开启线样式",!1,!1,[this,"stroked"],!1),new a.uz("贴地","是否贴地",!1,!1,[this,"strokeGround"],!1),new a.du("线宽","线宽(strokeWidth)",!1,!1,[this,"strokeWidth"],1),new a.fX("线类型","线类型(strokeWidthType)",!1,!1,[this,"strokeWidthType"],[["screen","screen"],["world","world"]],"screen"),new a.DP("线颜色","线颜色(strokeColor)",!1,!1,[this,"strokeColor"],[1,1,1,1]),new a.VS("面样式","面样式集合",[]),new a.uz("开启","开启填充样式",!1,!1,[this,"filled"],!0),new a.uz("贴地","是否贴地",!1,!1,[this,"fillGround"],!1),new a.DP("填充颜色","填充颜色(fillColor)",!1,!1,[this,"fillColor"],[1,1,1,1])]})}getProperties(t){return[...super.getProperties(t),new a.du("高度","控高的高度",!1,!1,[this,"height"],10),new a.du("最高高度","最高高度",!1,!1,[this,"maxHeight"],200),new a.DP("超高颜色","超高颜色",!1,!1,[this,"overheightColor"],[1,0,0,.5]),new a.DP("标准颜色","标准颜色",!1,!1,[this,"standardColor"],[0,1,0,.5])]}constructor(t){super(t),this.combinationClass=!0,this._classification=this.dv(new q(`${this.id}_ESClassification`)),this._geoExtrudedPolygon=this.dv(new Dn(`${this.id}_ESGeoExtrudedPolygon`)),this.d(this.components.disposableAdd(this._classification)),this.d(this.components.disposableAdd(this._geoExtrudedPolygon));{const{_classification:t,_geoExtrudedPolygon:e}=this;e.perPositionHeight=!0,this.d((0,r.track)([t,"collision"],[this,"collision"])),this.d((0,r.track)([e,"collision"],[this,"collision"])),this.d((0,r.bind)([e,"editing"],[this,"editing"])),this.d((0,r.bind)([e,"flyInParam"],[this,"flyInParam"])),this.d((0,r.bind)([e,"flyToParam"],[this,"flyToParam"])),this.d((0,r.bind)([e,"points"],[this,"points"])),this.d((0,r.bind)([e,"extrudedHeight"],[this,"height"])),this.d((0,r.bind)([t,"fillColor"],[this,"overheightColor"])),this.d((0,r.bind)([e,"fillColor"],[this,"standardColor"]));{const e=()=>{const{height:e,points:n,maxHeight:r}=this;if(!n)return;const i=n.map((t=>[t[0],t[1],e]));t.points=i,t.height=r-e,t.show=!(r-e<=0)&&this.show&&this.filled};e();const n=this.dv((0,r.createNextAnimateFrameEvent)(this.heightChanged,this.pointsChanged,this.maxHeightChanged));this.d(n.don(e))}{const n=()=>{const{show:n,filled:r}=this;t.show=n&&r,e.show=n&&r};n();const i=this.dv((0,r.createNextAnimateFrameEvent)(this.showChanged,this.filledChanged));this.d(i.don(n))}this.dispose(this.flyInEvent.don((t=>{e.flyIn(t)}))),this.dispose(this.flyToEvent.don((t=>{e.flyTo(t)}))),this.dispose(this.calcFlyToParamEvent.don((()=>{e.calcFlyToParam()}))),this.dispose(this.calcFlyInParamEvent.don((()=>{e.calcFlyInParam()})))}}}In=An,An.type=In.register("ESHeightLimitAnalysis",In,{chsName:"控高分析",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"控高分析对象"}),An.supportEditingModes=[...T.supportEditingModes,a.EH.HeightModify],function(t){t.createDefaultProps=()=>Object.assign({height:10,maxHeight:200,overheightColor:[1,0,0,.5],standardColor:[0,1,0,.5]},T.createDefaultProps())}(An||(An={})),(0,r.extendClassProps)(An.prototype,An.createDefaultProps);class Rn extends l{get typeName(){return"ESEntityCluster"}get defaultProps(){return Rn.createDefaultProps()}get widgetEvent(){return this._widgetEvent}get data(){return this._data.value}set data(t){this._data.value=t}get dataChanged(){return this._data.changed}getFeatures(){if(this._data)return this._data;console.log("数据未加载完成,请稍后重试")}constructor(t){super(t),this._widgetEvent=this.dv(new r.Event),this._data=this.dv((0,r.react)(void 0));{const t=()=>{if(this.url)do{if("object"==typeof this.url){this.data=this.url;break}if(xe(this.url)){this.data=JSON.parse(this.url);break}fetch(u.context.getStrFromEnv(this.url)).then((t=>t.json())).then((t=>{this.data=t})).catch((t=>{console.warn("ESEntityCluster数据加载失败",t)}))}while(0)};t(),this.d(this.urlChanged.don(t))}}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.EO("地址","数据Url地址",!1,!1,[this,"url"],Rn.defaults.url),new a.du("集合范围","用于扩展屏幕空间边界框的像素范围",!1,!1,[this,"pixelRange"],Rn.defaults.pixelRange),new a.du("最小数量","可以聚合的屏幕空间对象的最小数量",!1,!1,[this,"minimumClusterSize"],Rn.defaults.minimumClusterSize),new a.fX("高度模式","高度获取模式",!1,!1,[this,"heightReference"],Rn.defaults.heightReferences,"None")]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.EO("url","数据Url地址",!1,!1,[this,"url"],Rn.defaults.url),new a.du("pixelRange","用于扩展屏幕空间边界框的像素范围",!1,!1,[this,"pixelRange"],Rn.defaults.pixelRange),new a.du("minimumClusterSize","可以聚合的屏幕空间对象的最小数量",!1,!1,[this,"minimumClusterSize"],Rn.defaults.minimumClusterSize),new a.EO("style","用于设置聚合和非聚合的显示样式",!1,!1,[this,"style"],Rn.defaults.style),new a.fX("heightReference","高度获取模式",!1,!1,[this,"heightReference"],Rn.defaults.heightReferences)]),new a.VS("UE","UE",[new a.uz("perspective","是否启用透视效果,自动缩放远处标签",!1,!1,[this,"perspective"],Rn.defaults.perspective)])]}}Tn=Rn,Rn.type=Tn.register("ESEntityCluster",Tn,{chsName:"Poi聚合",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"用于聚合POI标注,提高性能。"}),Rn.defaults=Object.assign(Object.assign({},l.defaults),{url:"",pixelRange:200,minimumClusterSize:2,style:{cluster:[{minValue:2,mode:"SquareV02",style:{}}],nonCluster:{mode:"SquareV03",style:{}}},heightReferences:[["None","None"],["CLAMP_TO_GROUND","CLAMP_TO_GROUND"],["CLAMP_TO_TERRAIN","CLAMP_TO_TERRAIN"]],perspective:!1}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},l.createDefaultProps()),{url:"",pixelRange:200,minimumClusterSize:2,style:(0,r.reactJsonWithUndefined)(void 0),heightReference:"None",perspective:!1})}(Rn||(Rn={})),(0,r.extendClassProps)(Rn.prototype,Rn.createDefaultProps);class Fn extends r.Destroyable{get player(){return this._player}get ratio(){return this._player.ratio}get ratioChanged(){return this._player.ratioChanged}set ratio(t){this._player.ratio=t}constructor(){super(),this._player=this.disposeVar(new h.N);const t=this._player;{const e=()=>{var e,n;const r=(null!==(e=this.stopTime)&&void 0!==e?e:0)-(null!==(n=this.startTime)&&void 0!==n?n:0);t.duration=r>0?r:0};e(),this.d(this.startTimeChanged.don(e)),this.d(this.stopTimeChanged.don(e))}this.d((0,r.bind)([t,"playing"],[this,"playing"])),this.d((0,r.bind)([t,"loop"],[this,"loop"])),this.d((0,r.bind)([t,"speed"],[this,"speed"])),this.d(t.currentTimeChanged.don((()=>{void 0!==this.startTime&&void 0!==t.currentTime&&(this.currentTime=t.currentTime+this.startTime)}))),this.d(this.currentTimeChanged.don((()=>{if(void 0===this.currentTime)return;if(void 0===this.startTime)return;const e=this.currentTime-this.startTime;t.currentTime=(0,r.clamp)(e,0,t.duration)})))}}!function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},u.createDefaultProps()),{currentTime:void 0,startTime:void 0,stopTime:void 0,playing:void 0,loop:void 0,speed:void 0})}(Fn||(Fn={})),(0,r.extendClassProps)(Fn.prototype,Fn.createDefaultProps);class Ln extends u{get typeName(){return"ESPlayer"}get defaultProps(){return Ln.createDefaultProps()}get absolutePlayer(){return this._absolutePlayer}get ratio(){return this._absolutePlayer.ratio}get ratioChanged(){return this._absolutePlayer.ratioChanged}set ratio(t){this._absolutePlayer.ratio=t}constructor(t){super(t),this._absolutePlayer=this.dv(new Fn);const e=this.absolutePlayer;this.d((0,r.bind)([e,"currentTime"],[this,"currentTime"])),this.d((0,r.bind)([e,"startTime"],[this,"startTime"])),this.d((0,r.bind)([e,"stopTime"],[this,"stopTime"])),this.d((0,r.bind)([e,"playing"],[this,"playing"])),this.d((0,r.bind)([e,"loop"],[this,"loop"])),this.d((0,r.bind)([e,"speed"],[this,"speed"]))}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.zZ("播放器","播放器",[this,"playing"],[this,"ratio"],[this,"loop"]),new a.kt("currentTime","currentTime",!1,!1,[this,"currentTime"]),new a.kt("startTime","startTime",!1,!1,[this,"startTime"]),new a.kt("stopTime","stopTime",!1,!1,[this,"stopTime"]),new a.uz("playing","playing",!1,!1,[this,"playing"]),new a.uz("loop","loop",!1,!1,[this,"loop"]),new a.du("speed","speed",!1,!1,[this,"speed"])])]}}function kn(t,e){if(e<0)return[void 0,0];if(e>t.length-1)return[void 0,t.length-1];let n;for(;(n=t[e][2],!n)&&!(e-1<0);)--e;return[n,e]}function Vn(t,e){if(e<0)return[void 0,0];if(e>t.length-1)return[void 0,t.length-1];let n;for(;(n=t[e][2],!n)&&!(e+1>=t.length);)++e;return[n,e]}function Bn(t,e=!1){const n=t.map((t=>[t[0],[...t[1]],t[2]?[...t[2]]:void 0])),i=n.length;if(0===i)return n;if(1===i)return(void 0===!n[0][2]||e)&&(n[0][2]=void 0),n;for(let t=1;t<i;++t){if(void 0!==n[t][2]&&!e)continue;const i=n[t-1][1],o=n[t][1],s=(0,h.bS)(i),a=(0,h.bS)(o),u=r.Vector.distance(s,a);if(0===u){n[t][2]=n[t-1][2];continue}const c=(0,h.Oc)(i,o),l=o[2]-i[2],p=180*Math.asin(l/u)/Math.PI,f=Number.isFinite(c)?c:0,d=Number.isFinite(p)?p:0;n[t][2]=[f,d,0]}return(void 0===n[0][2]||e)&&(n[0][2]=i>1?n[1][2]:void 0),n}function zn(t,e=!1){const n=t.map((t=>[t[0],[...t[1]],t[2]?[...t[2]]:void 0])),i=n.length;if(0===i)return n;if(1===i)return(void 0===!n[0][2]||e)&&(n[0][2]=void 0),n;for(let t=i-2;t>=0;--t){if(void 0!==n[t][2]&&!e)continue;const i=n[t][1],o=n[t+1][1],s=(0,h.bS)(i),a=(0,h.bS)(o),u=r.Vector.distance(s,a);if(0===u){n[t][2]=n[t+1][2];continue}const c=(0,h.Oc)(i,o),l=o[2]-i[2],p=180*Math.asin(l/u)/Math.PI,f=Number.isFinite(c)?c:0,d=Number.isFinite(p)?p:0;n[t][2]=[f,d,0]}return(void 0===n[i-1][2]||e)&&(n[i-1][2]=i>1?n[i-2][2]:[0,0,0]),n}jn=Ln,Ln.type=jn.register("ESPlayer",jn,{chsName:"ESPlayer",tags:["ESObjects","_ES_Impl_UE"],description:"ESPlayer"}),Ln.defaults=Object.assign(Object.assign({},u.defaults),{currentTime:0,startTime:0,stopTime:0,playing:!1,loop:!1,speed:1}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},u.createDefaultProps()),{currentTime:0,startTime:0,stopTime:0,playing:!1,loop:!1,speed:1})}(Ln||(Ln={})),(0,r.extendClassProps)(Ln.prototype,Ln.createDefaultProps);var Un,Gn,Wn,qn;class Xn extends r.Destroyable{get currentInfo(){return this._currentInfo.value}get currentInfoChanged(){return this._currentInfo.changed}get currentIndex(){return this._currentInfo.value&&this._currentInfo.value.index}get currentIndexChanged(){return this._currentInfo.changed}get currentPosition(){return this._currentInfo.value&&this._currentInfo.value.position}get currentPositionChanged(){return this._currentInfo.changed}get currentRotation(){return this._currentInfo.value&&this._currentInfo.value.rotation}get currentRotationChanged(){return this._currentInfo.changed}get player(){return this._player}get flyToEvent(){return this._flyToEvent}flyTo(t){this._flyToEvent.emit(t)}get accumDistancesChanged(){return this._accumDistancesChanged}get accumDistances(){do{if(!this._accumDistancesDirty)break;if(!this.timePosRots||this.timePosRots.length<2){this._accumDistances=[];break}const t=this.timePosRots.length;let e=0;const n=[];let i=(0,h.bS)(this.timePosRots[0][1]);n.push(e);for(let o=1;o<t;++o){const t=(0,h.bS)(this.timePosRots[o][1]),s=r.Vector.distance(t,i);i=t,e+=s,n.push(e)}this._accumDistances=n}while(0);return this._accumDistances}get totalDistanceChanged(){return this._accumDistancesChanged}get totalDistance(){return this.accumDistances.length>0?this.accumDistances[this.accumDistances.length-1]:0}getCurrent(t){return this.getCurrentFunc?this.getCurrentFunc(t,this):this.timePosRots&&function(t,e,n="Lerp"){let i,o,s,a;if(0!==t.length){do{if(e<=t[0][0]){i=t[0][1],o=t[0][2],s=0,a=0;break}if(e>=t[t.length-1][0]){const[e,n,r]=t[t.length-1];i=n,o=r,s=t.length-2,a=1;break}const u=t.findIndex((([t])=>e<=t));if(-1===u)throw new Error("nextIndex === -1");s=u-1;{const[n,o]=t[s],[c,l]=t[u],p=(e-n)/(c-n),f=(0,h.c0)(o),d=(0,h.c0)(l),g=r.Vector.lerp(f,d,p);i=(0,h.HX)(g),a=p}{let[r,i]=kn(t,s),[a,c]=Vn(t,u);if("Lerp"===n)if(r&&a){if(i<0||c>=t.length)throw new Error("Invalid rotation index");const n=(e-t[i][0])/(t[c][0]-t[i][0]);o=(0,h.g_)(r,a,n)}else o=r||a||void 0;else"Prev"===n?r&&(o=r):"Next"===n&&a&&(o=a)}}while(0);return{position:i,rotation:o,index:s,ratio:a}}}(this.timePosRots,t,this.rotLerpMode)}subPath(t,e){return this.timePosRots&&function(t,e,n){const{timePosRots:r}=t;if(!r)throw new Error("!timePosRots");if(0===r.length)throw new Error("timePosRots.length === 0");e=Math.max(e,r[0][0]),n=Math.min(n,r[r.length-1][0]);const i=t.getCurrent(e),o=t.getCurrent(n);if(!i||!o)return;const s=[];i.ratio<1&&s.push([e,i.position,i.rotation]);for(let t=i.index+1;t<=o.index;++t)s.push(r[t]);return o.ratio>0&&s.push([n,o.position,o.rotation]),s}(this,t,e)}computeRotIfUndefinedUsingPrevLine(t=!1){this.timePosRots?this.timePosRots=Xn.computeRotIfUndefinedUsingPrevLine(this.timePosRots,t):console.warn("timePosRots不存在,无法计算!")}computeRotIfUndefinedUsingNextLine(t=!1){this.timePosRots?this.timePosRots=Xn.computeRotIfUndefinedUsingNextLine(this.timePosRots,t):console.warn("timePosRots不存在,无法计算!")}computeRotIfUndefinedUsingLerp(t=!1){this.timePosRots?this.timePosRots=Xn.computeRotIfUndefinedUsingLerp(this.timePosRots,t):console.warn("timePosRots不存在,无法计算!")}computeRotIfUndefined(t=!1){this.computeRotIfUndefinedUsingPrevLine(t)}addAroundPoints(t,e){!function(t,e,n){let r;if(!t.timePosRots)return;console.log("before",[...t.timePosRots]);const i=[],o=t.timePosRots.length;if(!(o<=2)){i.push(t.timePosRots[0]);for(let s=1;s<o-1;++s){const o=t.timePosRots[s-1][0],a=t.timePosRots[s][0],u=t.timePosRots[s+1][0],c=t.accumDistances[s-1],l=t.accumDistances[s],h=t.accumDistances[s+1];do{const n=l-c;if(0===n)continue;const u=n-(null!=r?r:.5*(1==e.length?e[0]:e[s-1]||e[e.length-1]));let h=(u<0?0:u)/n;Number.isNaN(h)&&(h=0);const p=(1-h)*o+h*a,f=t.getCurrent(p);if(!f)break;i.push([p,f.position,f.rotation])}while(0);n&&i.push(t.timePosRots[s]);do{const n=h-l;if(0===n)continue;let o=.5*(1==e.length?e[0]:e[s-1]||e[e.length-1]);const c=.5*(1==e.length?e[0]:e[s]||e[e.length-1])||0;o+c>n?(o=n*(o/(o+c)),r=n-o):r=void 0;let p=(o<0?0:o)/n;const f=(1-p)*a+p*u,d=t.getCurrent(f);if(!d)break;i.push([f,d.position,d.rotation])}while(0)}i.push(t.timePosRots[o-1]),console.log("after",[...i]),t.timePosRots=i}}(this,t,e)}get getCurrentFunc(){return this._getCurrentFunc.value}set getCurrentFunc(t){this._getCurrentFunc.value=t}get getCurrentFuncChanged(){return this._getCurrentFunc.changed}computeTimeFromTimePosRots(){const t=this.timePosRots;if(!t||t.length<=1)return this.startTime=void 0,this.stopTime=void 0,void(this.duration=void 0);this.startTime=t[0][0],this.stopTime=t[t.length-1][0],this.duration=this.stopTime-this.startTime}constructor(t,e){super(),this._scratchCurrentInfo={position:[0,0,0],rotation:[0,0,0],index:0},this._currentInfo=this.disposeVar((0,r.react)(void 0,((t,e)=>!1))),this._flyToEvent=this.disposeVar(new r.Event),this._accumDistancesChanged=this.disposeVar(new r.Event),this._accumDistancesChangedInit=this.dispose(this.timePosRotsChanged.disposableOn((()=>(this._accumDistancesDirty=!0,this._accumDistancesChanged.emit())))),this._accumDistancesDirty=!1,this._accumDistances=[],this._getCurrentFunc=this.disposeVar((0,r.react)(void 0)),this._player=this.disposeVar(new h.N);const n=()=>{var t;const e=this.getCurrent(null!==(t=this.currentTime)&&void 0!==t?t:0);if(void 0===e)this._currentInfo.value=void 0;else{const{index:t,position:n,rotation:r,ratio:i}=e;this._scratchCurrentInfo.index=t,this._scratchCurrentInfo.position=n,this._scratchCurrentInfo.rotation=r,this._scratchCurrentInfo.ratio=i,this._currentInfo.value=this._scratchCurrentInfo}};n(),this.currentTimeChanged.disposableOn(n),this.timePosRotsChanged.disposableOn(n),this.rotLerpModeChanged.disposableOn(n),this.dispose((0,r.bind)([this._player,"loop"],[this,"loop"]));{const t=()=>{if(void 0===this.startTime||void 0===this.currentTime)return;const t=this.currentTime-this.startTime;(void 0===this._player.currentTime||Math.abs(t-this._player.currentTime)>.01)&&(this._player.currentTime=t)};t(),this.dispose(this.currentTimeChanged.disposableOn(t))}{const t=()=>{if(void 0===this.startTime||void 0===this._player.currentTime)return;const t=this._player.currentTime+this.startTime;(void 0===this.currentTime||Math.abs(t-this.currentTime)>.01)&&(this.currentTime=t)};t(),this.dispose(this._player.currentTimeChanged.disposableOn(t))}this.dispose((0,r.bind)([this._player,"duration"],[this,"duration"])),this.dispose((0,r.bind)([this._player,"playing"],[this,"playing"])),this.dispose((0,r.bind)([this._player,"speed"],[this,"speed"]));{const t=()=>{var t;(null===(t=this.autoComputeTimeFromTimePosRots)||void 0===t||t)&&this.computeTimeFromTimePosRots()};t();const e=this.disposeVar((0,r.createNextAnimateFrameEvent)(this.autoComputeTimeFromTimePosRotsChanged,this.timePosRotsChanged));this.dispose(e.disposableOn(t))}{const t=()=>{const t=this.timePosRots;if(!t)return;const e=t.length;for(let n=0;n<e;++n){const e=t[n][0];if(e<0)console.warn("地理路径的时间戳不能小于0!");else if(e<0){console.warn(`地理路径的时间戳需要满足从小到大的数据,元素越靠后,时间越靠后!当前不满足条件的元素是index: ${n} time: ${e}`);break}}};t(),this.dispose(this.timePosRotsChanged.disposableOn(t))}{const t=this.disposeVar((0,r.createProcessingFromAsyncFunc)((t=>{return e=this,n=void 0,o=function*(){if(!this.dataUri)return;yield t.promise((0,r.sleep)(1e3));const e=yield t.promise(fetch(this.dataUri)),n=yield t.promise(e.text());this.timePosRots=Xn.parseData(n)},new((i=void 0)||(i=Promise))((function(t,r){function s(t){try{u(o.next(t))}catch(t){r(t)}}function a(t){try{u(o.throw(t))}catch(t){r(t)}}function u(e){var n;e.done?t(e.value):(n=e.value,n instanceof i?n:new i((function(t){t(n)}))).then(s,a)}u((o=o.apply(e,n||[])).next())}));var e,n,i,o})));this.dispose(this.dataUriChanged.disposableOn((()=>{t.restart()}))),this.dispose(this.dataTextChanged.disposableOn((()=>{this.dataText&&(this.timePosRots=Xn.parseData(this.dataText))})))}}get ratio(){return this.player.ratio}set ratio(t){this.player.ratio=t}get ratioChanged(){return this.player.ratioChanged}}Xn.computeRotIfUndefinedUsingPrevLine=Bn,Xn.computeRotIfUndefinedUsingNextLine=zn,Xn.computeRotIfUndefinedUsingLerp=function(t,e=!1){const n=Bn(t,e),r=zn(t,e);if(n.length!==r.length)throw new Error("p.length !== n.length");const i=n.length;for(let t=0;t<i;t++){const e=n[t][2],i=r[t][2];n[t][2]=void 0===e&&void 0===i?void 0:void 0===e?i:void 0===i?e:(0,h.g_)(e,i,.5)}return n},Xn.getLeftRotation=kn,Xn.getRightRotation=Vn,Xn.parseData=function(t){try{const e=JSON.parse(t);if(Array.isArray(e)&&e.length>0){const t="number"==typeof e[0][0],n=Array.isArray(e[0][1])&&3===e[0][1].length;return t&&n?e:void 0}throw new Error("解析有问题")}catch(e){const n=t.split(/\n|\r\n/),r=[],i=n.length;for(let t=0;t<i;++t){const e=n[t],i=e.split(/[^0-9e\.\+\-]+/).filter((t=>""!==t)).map((t=>+t));i.length<4?console.warn(`第${t+1}行数据无法解析成路径的数据, 原内容为: ${e}`):i.length<7?r.push([i[0],[i[1],i[2],i[3]],void 0]):r.push([i[0],[i[1],i[2],i[3]],[i[4],i[5],i[6]]])}return r}},Xn.defaults={timePosRots:[],startTime:0,stopTime:3e3,loop:!1,duration:3e3,playing:!1,dataText:""},Xn.timePosRotsMd="\ntimePosRots是一个内部包含三个元素的数组,第一个表示时间戳,单位毫秒,第二个表示经纬度,第三个表示姿态(偏航、俯仰、翻转)。示例代码如下:\n```\n[\n [\n 0,\n [\n 102.53298730761246,\n 28.91979487002454,\n 9.313225746154785e-10\n ],\n [\n 50.04442483885466,\n 0,\n 0\n ]\n ],\n [\n 93573.85803656405,\n [\n 103.2739673341736,\n 29.858290043349385,\n 9.313225746154785e-10\n ],\n [\n 50.04442483885466,\n 0,\n 0\n ]\n ],\n [\n 187147.71620880597,\n [\n 105.0227848288211,\n 29.992573933966238,\n -1.862645149230957e-9\n ],\n [\n 50.407671059303944,\n -1.7107615502773115e-12,\n 0\n ]\n ]\n]\n```\n",function(t){t.createDefaultProps=()=>({show:!1,currentPoiShow:!0,timePosRots:(0,r.reactDeepArrayWithUndefined)(void 0,((t,e)=>t[0]===e[0]&&t[1].every(((t,n)=>t===e[1][n]))&&t[2]===e[2]===void 0||void 0!==t[2]&&void 0!==e[2]&&t[2].every(((t,n)=>e[2][n]))),(t=>[t[0],[...t[1]],t[2]&&[...t[2]]||void 0])),autoComputeTimeFromTimePosRots:!0,leadTime:0,trailTime:0,startTime:void 0,stopTime:void 0,loop:!1,currentTime:0,duration:void 0,speed:1,playing:!1,polylineShow:!0,width:1,ground:!1,color:(0,r.reactArray)([1,1,1,1]),hasDash:!1,gapColor:(0,r.reactArray)([0,0,0,0]),dashLength:16,dashPattern:255,hasArrow:!1,depthTest:!1,arcType:"GEODESIC",allowPicking:!1,dataUri:"",dataText:void 0,rotLerpMode:"Lerp",debug:!1})}(Xn||(Xn={})),(0,r.extendClassProps)(Xn.prototype,Xn.createDefaultProps);class Hn extends ot{get typeName(){return"ESPath"}get defaultProps(){return Hn.createDefaultProps()}get path(){return this._path}get currentPosition(){return this._path.currentPosition}get currentPositionChanged(){return this._currentPositionChanged}get currentRotation(){const t=this._path.currentRotation;if(t)return[(0,h._Y)(t[0]-90),t[1],t[2]]}get currentRotationChanged(){return this._currentRotationChanged}get current(){return{position:this.currentPosition,rotation:this.currentRotation}}get currentChanged(){return this._currentChanged}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.lX("时间序列","时间序列",!0,!1,[this,"timeStamps"],[]),new a.du("线条流速","速度 m/s",!1,!1,[this,"speed"],1),new a.fX("模式","materialMode",!1,!1,[this,"materialMode"],Hn.defaults.materialModes,"singleArrow"),new a.EO("拐弯半径","拐弯半径,单位米",!1,!1,[this,"rotationRadius"])]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.lX("时间序列","时间序列",!0,!1,[this,"timeStamps"],[]),new a._C("当前位置","当前位置",!0,!0,[this,"currentPosition"]),new a.du("速度","速度 m/s",!1,!1,[this,"speed"]),new a.fX("materialMode","materialMode",!1,!1,[this,"materialMode"],Hn.defaults.materialModes),new a.EO("拐弯半径","拐弯半径,单位米",!1,!1,[this,"rotationRadius"],[5])])]}constructor(t){super(t),this._currentPositionChanged=this.disposeVar(new r.Event),this._currentRotationChanged=this.disposeVar(new r.Event),this._currentChanged=this.disposeVar(new r.Event),this._deprecated=[{materialMode:{blue:"multipleArrows",purple:"singleArrow"}},"show"],this._deprecatedWarningFunc=(()=>{this._deprecatedWarning()})(),this.strokeStyle={width:10,widthType:"world",color:[1,0,.73,1],material:"",materialParams:{},ground:!1},this._path=this.disposeVar(new Xn),this.dispose(this._path.currentInfoChanged.disposableOn((()=>this._currentPositionChanged.emit(this._path.currentPosition)))),this.dispose(this._path.currentInfoChanged.disposableOn((()=>this._currentRotationChanged.emit(this.currentRotation)))),this.dispose(this._path.currentInfoChanged.disposableOn((()=>this._currentChanged.emit(this.current)))),this._path.show=!0,this._path.polylineShow=!1,this._path.currentPoiShow=!1;{const t=()=>{if(!this.timeStamps||!this.points)return void(this._path.timePosRots=void 0);const t=this.timeStamps.length,e=this.points.length,n=Math.min(t,e),r=[];for(let t=0;t<n;++t)r.push([this.timeStamps[t],this.points[t]]);this._path.timePosRots=r,this.rotationRadius.some((t=>t>0))?(this._path.addAroundPoints(this.rotationRadius,!0),this._path.computeRotIfUndefinedUsingLerp(!0),this._path.rotLerpMode="Lerp"):(this._path.computeRotIfUndefinedUsingPrevLine(!0),this._path.rotLerpMode="Next")},e=this.disposeVar((0,r.createNextAnimateFrameEvent)(this.timeStampsChanged,this.pointsChanged,this.rotationRadiusChanged));t(),this.dispose(e.disposableOn(t))}}}Un=Hn,Hn.type=Un.register("ESPath",Un,{chsName:"ESPath",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"ESPath"}),Hn.defaults=Object.assign(Object.assign({},f.defaults),{materialModes:[["单箭头","singleArrow"],["多箭头","multipleArrows"],["纯色","pureColor"]]}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},f.createDefaultProps()),{timeStamps:(0,r.reactArrayWithUndefined)(void 0),speed:1,materialMode:"singleArrow",stroked:!0,strokeStyle:(0,r.reactJson)({width:10,widthType:"world",color:[1,0,.73,1],material:"",materialParams:{},ground:!1}),rotationRadius:[5]})}(Hn||(Hn={})),(0,r.extendClassProps)(Hn.prototype,Hn.createDefaultProps);class Yn extends d{get typeName(){return"ESGeoDivTextPoi"}get defaultProps(){return Yn.createDefaultProps()}constructor(t){super(t)}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.uz("文本编辑交互","文本编辑交互.",!1,!1,[this,"textEditingInteraction"]),new a.uz("文本编辑","文本编辑.",!1,!1,[this,"textEditing"]),new a.du("宽度","宽度",!0,!1,[this,"width"],Yn.defaults.width),new a.hZ("内容","内容",!0,!1,[this,"text"],Yn.defaults.text),new a.zf("原点比例和偏移","原点比例和偏移.",!1,!1,[this,"originRatioAndOffset"]),new a.du("透明度","透明度",!1,!1,[this,"opacity"]),new a.du("字体大小","字体大小",!1,!1,[this,"fontSize"]),new a.DP("字体颜色"," 字体颜色.",!1,!1,[this,"color"]),new a.DP("背景颜色"," 背景颜色.",!1,!1,[this,"backgroundColor"]),new a.zf("内边距","上,右,下,左顺序.",!1,!1,[this,"padding"]),new a.zf("边框圆角","左上,右上,右下,左下.",!1,!1,[this,"borderRadius"]),new a.DP("边框颜色"," 边框色.",!1,!1,[this,"borderColor"]),new a.du("边框宽度","边框宽度",!1,!1,[this,"borderWidth"]),new a.fX("文字位置","文字位置",!1,!1,[this,"textAlign"],[["center","center"],["left","left"],["right","right"]]),new a.fX("边框类型","边框类型",!1,!1,[this,"borderStyle"],[["none","none"],["hidden","hidden"],["dotted","dotted"],["dashed","dashed"],["solid","solid"],["double","double"],["groove","groove"],["ridge","ridge"],["inset","inset"],["outset","outset"]])])]}}Gn=Yn,Yn.type=Gn.register("ESGeoDivTextPoi",Gn,{chsName:"图标点",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"图标点"}),Yn.defaults=Object.assign(Object.assign({},d.defaults),{allowTextEditing:!0,width:80,text:"请输入文字",originRatioAndOffset:[.5,1,0,0],opacity:1,fontSize:14,color:[1,1,1,1],backgroundColor:[0,0,0,.8],padding:[5,5,5,5],borderRadius:[6,6,6,6],borderColor:[1,1,1,1],borderWidth:0,textAlign:"left",borderStyle:"solid"}),function(t){t.createDefaultProps=()=>Object.assign({text:void 0,width:void 0,textEditingInteraction:!1,textEditing:!1,originRatioAndOffset:(0,r.reactArray)([.5,1,0,0]),opacity:1,fontSize:14,textAlign:"left",color:(0,r.reactArray)([1,1,1,1]),backgroundColor:(0,r.reactArray)([0,0,0,.8]),padding:(0,r.reactArray)([5,5,5,5]),borderRadius:(0,r.reactArray)([6,6,6,6]),borderWidth:0,borderColor:(0,r.reactArray)([1,1,1,1]),borderStyle:"solid"},d.createDefaultProps())}(Yn||(Yn={})),(0,r.extendClassProps)(Yn.prototype,Yn.createDefaultProps);class Jn extends d{get typeName(){return"ESCityBasePoint"}get defaultProps(){return Object.assign({},Jn.createDefaultProps())}constructor(t){super(t)}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.DP("颜色","颜色",!1,!1,[this,"color"],[1,1,0,1])]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.DP("颜色","颜色",!1,!1,[this,"color"])])]}}Wn=Jn,Jn.type=Wn.register("ESCityBasePoint",Wn,{chsName:"城市基点(Czm)",tags:["ESObjects","CityObjects","_ES_Impl_Cesium"],description:"城市基点(Czm)"}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},d.createDefaultProps()),{color:(0,r.reactArray)([1,1,0,1])})}(Jn||(Jn={})),(0,r.extendClassProps)(Jn.prototype,Jn.createDefaultProps);const $n="(dataSource) => {\n var entities = dataSource.entities.values;\n \n for (var i = 0; i < entities.length; i++) {\n var entity = entities[i];\n if (Cesium.defined(entity.billboard)) {\n // entity.label = undefined; // 去掉文字的显示\n \n entity.point = new Cesium.PointGraphics({\n color: Cesium.Color.BLUE,\n pixelSize: 30\n });\n }\n } \n}\n",Zn=`data 路径都可以使用下面回调函数\n\`\`\`\n${$n}\n\`\`\`\n\n`,Qn=Date.now();new Date(Qn).toISOString(),new Date(Qn+864e5).toISOString();class Kn extends u{get typeName(){return"ESCzml"}get defaultProps(){return Kn.createDefaultProps()}get flyToEvent(){return this._flyToEvent}flyTo(t){this._flyToEvent.emit(t)}get resetClockEvent(){return this._resetClockEvent}resetClock(){this._resetClockEvent.emit()}constructor(t){super(t),this._flyToEvent=this.disposeVar(new r.Event),this._resetClockEvent=this.disposeVar(new r.Event)}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{defaultMenu:"basic",basic:[...t.basic,new a.EO("数据","数据",!0,!1,[this,"data"],Kn.defaults.data,Kn.defaults.dataMd),new a.EO("路径","路径",!1,!1,[this,"uri"],""),new a.uz("启用","启用",!1,!1,[this,"clockEnabled"],!1),new a.du("倍速","倍速.",!1,!1,[this,"multiplier"],Kn.defaults.multiplier),new a.uz("自动设置时钟","自动设置时钟",!1,!1,[this,"autoResetClock"],!0),new a.kt("开始时间","开始时间",!0,!1,[this,"startTime"],Kn.defaults.startTime),new a.kt("结束时间","结束时间",!0,!1,[this,"stopTime"],Kn.defaults.stopTime),new a.kt("当前时间","当前时间",!0,!1,[this,"currentTime"],Kn.defaults.currentTime),new a.fX("clockStep","clockStep",!1,!1,[this,"clockStep"],[["TICK_DEPENDENT","TICK_DEPENDENT"],["SYSTEM_CLOCK_MULTIPLIER","SYSTEM_CLOCK_MULTIPLIER"],["SYSTEM_CLOCK","SYSTEM_CLOCK"]],"SYSTEM_CLOCK_MULTIPLIER"),new a.fX("clockRange","clockRange",!1,!1,[this,"clockRange"],[["UNBOUNDED","UNBOUNDED"],["CLAMPED","CLAMPED"],["LOOP_STOP","LOOP_STOP"]],"UNBOUNDED"),new a.uz("是否启用动画","是否启用动画",!1,!1,[this,"shouldAnimate"],!1)],general:[...t.general,new a.XB("唯一标识","id",!1,!0,[this,"id"]),new a.XB("名称","name",!0,!1,[this,"name"]),new a.uz("是否显示","show",!1,!1,[this,"show"],!0),new a.uz("开启碰撞","collision",!1,!1,[this,"collision"],!1),new a.uz("允许拾取","allowPicking",!1,!1,[this,"allowPicking"],!1)]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.uz("是否显示","A boolean Property specifying the visibility .",!1,!1,[this,"show"]),new a.uz("允许拾取","是否允许拾取",!1,!1,[this,"allowPicking"]),new a.YF("飞入","飞入",["number"],(t=>this.flyTo(t)),[1e3]),new a.EO("数据","数据",!0,!1,[this,"data"],Kn.defaults.data,Kn.defaults.dataMd),new a.EO("路径","路径",!1,!1,[this,"uri"]),new a.uz("自动设置时钟","自动设置时钟",!1,!1,[this,"autoResetClock"]),new a.YF("重设时钟","根据当前加载的数据重设始终",[],(()=>this.resetClock()),[]),new a.zo("loadFnStr","loadFnStr",!0,!1,[this,"loadFuncStr"],Kn.defaults.defaultLoadFuncStr,Kn.defaults.defaultLoadFuncDocStr)]),new a.VS("时钟","时钟",[new a.uz("启用","启用",!1,!1,[this,"clockEnabled"]),new a.kt("开始时间","开始时间",!0,!1,[this,"startTime"],Kn.defaults.startTime),new a.kt("结束时间","结束时间",!0,!1,[this,"stopTime"],Kn.defaults.stopTime),new a.kt("当前时间","当前时间",!0,!1,[this,"currentTime"],Kn.defaults.currentTime),new a.du("倍速","倍速.",!1,!1,[this,"multiplier"],Kn.defaults.multiplier),new a.fX("clockStep","clockStep",!1,!1,[this,"clockStep"],[["TICK_DEPENDENT","TICK_DEPENDENT"],["SYSTEM_CLOCK_MULTIPLIER","SYSTEM_CLOCK_MULTIPLIER"],["SYSTEM_CLOCK","SYSTEM_CLOCK"]]),new a.fX("clockRange","clockRange",!1,!1,[this,"clockRange"],[["UNBOUNDED","UNBOUNDED"],["CLAMPED","CLAMPED"],["LOOP_STOP","LOOP_STOP"]]),new a.uz("是否启用动画","是否启用动画",!1,!1,[this,"shouldAnimate"])])]}}var tr,er,nr,rr,ir;qn=Kn,Kn.type=qn.register("ESCzml",qn,{chsName:"ESCzml",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"Czml数据加载"}),Kn.defaults=Object.assign(Object.assign({},u.defaults),{show:!0,allowPicking:!0,data:[{id:"document",version:"1.0"},{id:"Vehicle",availability:"2012-08-04T16:00:00Z/2012-08-04T16:14:15.251Z",billboard:{eyeOffset:{cartesian:[0,0,0]},horizontalOrigin:"CENTER",image:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEISURBVEhLvVXBDYQwDOuojHKj8LhBbpTbpBCEkZsmIVTXq1RVQGrHiWlLmTTqPiZBlyLgy/KSZQ5JSHDQ/mCYCsC8106kDU0AdwRnvYZArWRcAl0dcYJq1hWCb3hBrumbDAVMwAC82WoRvgMnVMDBnB0nYZFTbE6BBvdUGqVqCbjBIk3PyFFR/NU7EKzru+qZsau3ryPwwCRLKYOzutZuCL6fUmWeJGzNzL/RxAMrUmASSCkkAayk2IxPlwhAAYGpsiHQjbLccfdOY5gKkCXAMi7SscAwbQpAnKyctWyUZ6z8ja3OGMepwD8asz+9FnSvbhU8uVOHFIwQsI3/p0CfhuqCSQuxLqsN6mu8SS+N42MAAAAASUVORK5CYII=",pixelOffset:{cartesian2:[0,0]},scale:.8333333333333334,show:[{interval:"2012-08-04T16:00:00Z/2012-08-04T18:00:00Z",boolean:!0}],verticalOrigin:"BOTTOM"},label:{fillColor:[{interval:"2012-08-04T16:00:00Z/2012-08-04T18:00:00Z",rgba:[255,255,0,255]}],font:"bold 10pt Segoe UI Semibold",horizontalOrigin:"LEFT",outlineColor:{rgba:[0,0,0,255]},pixelOffset:{cartesian2:[10,0]},scale:1,show:[{interval:"2012-08-04T16:00:00Z/2012-08-04T18:00:00Z",boolean:!0}],style:"FILL",text:"Vehicle",verticalOrigin:"CENTER"},path:{material:{solidColor:{color:{interval:"2012-08-04T16:00:00Z/2012-08-04T18:00:00Z",rgba:[255,255,0,255]}}},width:[{interval:"2012-08-04T16:00:00Z/2012-08-04T18:00:00Z",number:5}],show:[{interval:"2012-08-04T16:00:00Z/2012-08-04T18:00:00Z",boolean:!0}]},position:{interpolationAlgorithm:"LAGRANGE",interpolationDegree:1,epoch:"2012-08-04T16:00:00Z",cartesian:[0,-2379754.6637012,-4665332.88013588,3628133.68924173,100,-2379510.08905552,-4665419.64840452,3628182.20006795,200,-2379568.4769522,-4665555.3441867,3627970.83323261,300,-2379638.93786855,-4665691.63561896,3627750.82085873,400,-2379709.29834665,-4665827.9679646,3627530.80187124,500,-2379837.28064915,-4665847.7494347,3627422.12874017,600,-2379624.98289073,-4665907.50853722,3627484.1191848,700,-2379386.12743523,-4666029.54174431,3627483.83297459,800,-2379147.26777171,-4666151.56669944,3627483.5403492,900,-2378908.40390057,-4666273.58340244,3627483.24130864,1e3]}}],dataMd:'第一个packet代表了cesium场景(cesium时间轴的范围,当前时刻,倍速等信息)之外,其他的packet都可以理解为描述某一时间范围内的entity的行为。\n```\n[{\n "id": "document",\n "name": "CZML Path",\n "version": "1.0",\n "clock": {\n "interval": "2012-08-04T10:00:00Z/2012-08-04T15:00:00Z",\n "currentTime": "2012-08-04T10:00:00Z",\n "multiplier": 10\n }\n}, {\n "id": "path",\n "name": "path with GPS flight data",\n "description": "<p>Hang gliding flight log data from Daniel H. Friedman.<br>Icon created by Larisa Skosyrska from the Noun Project</p>",\n "availability": "2012-08-04T10:00:00Z/2012-08-04T15:00:00Z",\n "path": {\n "material": {\n "polylineOutline": {\n "color": {\n "rgba": [255, 0, 255, 255]\n },\n "outlineColor": {\n "rgba": [0, 255, 255, 255]\n },\n "outlineWidth": 5\n }\n },\n "width": 8,\n "leadTime": 10,\n "trailTime": 1000,\n "resolution": 5\n },\n "billboard": {\n "image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAfCAYAAACVgY94AAAACXBIWXMAAC4jAAAuIwF4pT92AAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAA7VJREFUeNrEl2uIlWUQx39nXUu0m2uQbZYrbabdLKMs/VBkmHQjioqFIhBS+hKEQpQRgVAf2u5RQkGBRUllRH4I2e5ZUBJlEZVt5i0tTfHStrZ6fn35L70d9n7Obg88vOedmWfmf2bmmZkXlRrtq9V16mZ1iVqqhd5agXvQf1c5zw/V8dXqrqO6dQKwBrgdWApsCb0VqAc2AnOrMVANwIsD4BLgTOBPYB2wHJgEzAG+ANqAu4ZsZYiuX5QwfqI2hvaNulA9J7zLQn8o76vUuuHOwXHqSzH4aIF+TWjnBkSH+nCBf716SP1KPWO4AJ6ltgfIjRW8p9U/1KPz/ry6RT2mIDNF3Zjz19Ya4G1R/J16dgWvQd2pPlXhMdVZPUTgxfCW1wJgXUJpQlvfg8zs8K8r0Caom9QHetG7NGfa1ElDBThRXRtFd/Qh16puKIS3e7+clBjdy7kL1b3q4fzJQQGck5z6Nb97kxujblWf64HXov7Vl/E4YXWccP9AAd6dAx+ox/WTArNzY1t64B0f8K0DyLXuUvRGZfcpCo1VX4tg6wB76WMB0dALf526foAX8cqUot2pGP8B2Kz+krBeNYjS8636dh/8Beo2deoA9TWp76pd6g0q9cDNwKvAD8A84EfglLRBe2g+JWAfcEF68bPABOCoAl/gIPA5MA64FVgGnNhP292W3r0SeB1YVlJXAjcBP8XwyQUj9AKwAzg2+/fQSsBhoJxBAaALaIzenZGnD911wA7gEDAD2FFSpwOzgDHZ5T7+ZSlGd2d6AXgi5+qAn+O5U0PbBVwKtAD3AHuB8f3YGBUdncCGoQ4LE9XtGRqK9LnduVPRIu2BPqwD65IYbS7Qpql7Ql9YoJcy9bwzkgPrfOCj5G33+h54E/g0PAr5thq4ApgyEgNrc27aWwVaPTA1QJ4BjgTGFvhteV40EgPrgvTP7qlmZqFnl9WD+b2posN83E/NrEkOjlI/U1fkfUYa/pe5IE3qZPW8jFOqiyN7p3pAPX04c7AxYSoDDcAjKT2LgLXA6IR2M3Bviv59wDTgQGTPH84Qd8+HXfHcoUws2zM0HMjuUPep+xP2PWpnwtw0GJsldbBpewQwE/gbeDyt7H1gcW53O7AC+A3Yn6+/W+Ld9SnWA15DAVhc8xK2TuA9YHrCuhV4EngFuBx4YagG6qv8cF+T52kB2Zy+e1I8taUacNV+uBdXO7ABmJwJpwx8XQvF9TUCWM64tiQhbq/oMv+7BwFWpQzNT8vbVQul/wwAGzzdmXU1xuUAAAAASUVORK5CYII=",\n "scale": 1.5,\n "eyeOffset": {\n "cartesian": [0.0, 0.0, -10.0]\n }\n },\n "position": {\n "epoch": "2012-08-04T10:00:00Z",\n "cartographicDegrees": [\n 0, -122.93797, 39.50935, 1776,\n 10, -122.93822, 39.50918, 1773,\n 20, -122.9385, 39.50883, 1772,\n 30, -122.93855, 39.50842, 1770,\n 40, -122.93868, 39.50792, 1770,\n 50, -122.93877, 39.50743, 1767,\n 60, -122.93862, 39.50697, 1771,\n 70, -122.93828, 39.50648, 1765,\n ]\n }\n}]\n```\n',autoResetClock:!0,clockEnabled:!1,startTime:()=>Date.now(),stopTime:()=>Date.now()+864e5,currentTime:()=>Date.now(),multiplier:1,clockStep:"SYSTEM_CLOCK_MULTIPLIER",clockRange:"UNBOUNDED",shouldAnimate:!1,uri:"${earthsdk3-assets-script-dir}/assets/misc/simple.czml",defaultLoadFuncStr:$n,defaultLoadFuncDocStr:Zn}),function(t){t.createDefaultProps=()=>Object.assign({show:!0,uri:"",allowPicking:!1,data:(0,r.reactJsonWithUndefined)(void 0),autoResetClock:!0,clockEnabled:!1,startTime:void 0,stopTime:void 0,currentTime:void 0,multiplier:1,clockStep:"SYSTEM_CLOCK_MULTIPLIER",clockRange:"UNBOUNDED",shouldAnimate:!1,loadFuncStr:void 0},u.createDefaultProps())}(Kn||(Kn={})),(0,r.extendClassProps)(Kn.prototype,Kn.createDefaultProps);class or extends u{get typeName(){return"ESNavigator"}get defaultProps(){return or.createDefaultProps()}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.uz("是否显示","A boolean Property specifying the visibility .",!1,!1,[this,"show"]),new a.du("尺寸","尺寸",!1,!1,[this,"cssSize"]),new a.RD("位置","位置(top,right)",!1,!1,[this,"cssPosition"]),new a.yK("图片地址","图片地址",!1,!1,[this,"imgUrl"])])]}}tr=or,or.type=tr.register("ESNavigator",tr,{chsName:"导航控件",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"导航控件"}),or.defaults=Object.assign(Object.assign({},u.defaults),{show:!0,cssPosition:[170,30],cssSize:100,imgUrl:u.context.getStrFromEnv("${earthsdk3-assets-script-dir}/assets/img/zhinanzhen.png")}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},u.createDefaultProps()),{show:!0,cssSize:100,cssPosition:[170,30],imgUrl:t.defaults.imgUrl})}(or||(or={})),(0,r.extendClassProps)(or.prototype,or.createDefaultProps);class sr extends u{get typeName(){return"ESViewerStatusBar"}get defaultProps(){return sr.createDefaultProps()}constructor(t){super(t)}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.uz("是否显示","A boolean Property specifying the visibility .",!1,!1,[this,"show"],sr.defaults.show),new a.du("高度","height",!0,!1,[this,"height"],sr.defaults.height),new a.du("文字大小","fontSize",!0,!1,[this,"fontSize"],sr.defaults.fontSize),new a.DP("背景颜色"," 背景颜色",!0,!1,[this,"bgColor"],sr.defaults.bgColor)])]}}er=sr,sr.type=er.register("ESViewerStatusBar",er,{chsName:"状态栏",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"状态栏"}),sr.defaults=Object.assign(Object.assign({},u.defaults),{show:!0,height:30,fontSize:14,bgColor:[71,71,71,.8]}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},u.createDefaultProps()),{show:!0,height:30,fontSize:14,bgColor:[71/255,71/255,71/255,.8]})}(sr||(sr={})),(0,r.extendClassProps)(sr.prototype,sr.createDefaultProps);class ar extends u{get typeName(){return"ESViewerStatusBarScale"}get defaultProps(){return ar.createDefaultProps()}constructor(t){super(t)}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.uz("是否显示","A boolean Property specifying the visibility .",!1,!1,[this,"show"],ar.defaults.show),new a.du("高度","height",!0,!1,[this,"height"],ar.defaults.height),new a.du("文字大小","fontSize",!0,!1,[this,"fontSize"],ar.defaults.fontSize),new a.DP("背景颜色"," 背景颜色",!0,!1,[this,"bgColor"],ar.defaults.bgColor)])]}}nr=ar,ar.type=nr.register("ESViewerStatusBarScale",nr,{chsName:"比例尺状态栏",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"状态栏"}),ar.defaults=Object.assign(Object.assign({},u.defaults),{show:!0,height:30,fontSize:14,bgColor:[71,71,71,.8]}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},u.createDefaultProps()),{show:!0,height:30,fontSize:14,bgColor:[71/255,71/255,71/255,.8]})}(ar||(ar={})),(0,r.extendClassProps)(ar.prototype,ar.createDefaultProps);class ur extends d{get typeName(){return"ESGaussianSplatting"}get defaultProps(){return ur.createDefaultProps()}constructor(t){super(t)}getESProperties(){const t=Object.assign({},super.getESProperties());return Object.assign(Object.assign({},t),{basic:[...t.basic,new a.XB("路径","url",!0,!1,[this,"url"]),new a.du("进度","progress",!1,!0,[this,"progress"],0)]})}getProperties(t){return[...super.getProperties(t),new a.VS("通用","通用",[new a.XB("路径","url",!0,!1,[this,"url"]),new a.du("进度","progress",!1,!0,[this,"progress"],0)])]}}rr=ur,ur.type=rr.register("ESGaussianSplatting",rr,{chsName:"高斯溅射模型",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"用于加载高斯溅射模型的ES对象"}),ur.defaults=Object.assign({},d.defaults),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},d.createDefaultProps()),{url:"",progress:0})}(ur||(ur={})),(0,r.extendClassProps)(ur.prototype,ur.createDefaultProps);class cr extends d{get typeName(){return"ESStaticMesh"}get defaultProps(){return cr.createDefaultProps()}constructor(t){super(t)}getESProperties(){const t=Object.assign({},super.getESProperties()),e=[new a.XB("mesh地址","mesh地址",!1,!1,[this,"mesh"],cr.defaults.mesh)];return t.basic.push(...e),t}getProperties(t){return[...super.getProperties(t),new a.VS("ESStaticMesh","ESStaticMesh",[new a.XB("mesh地址","mesh地址",!1,!1,[this,"mesh"],cr.defaults.mesh)])]}}ir=cr,cr.type=ir.register("ESStaticMesh",ir,{chsName:"静态网格",tags:["ESObjects","_ES_Impl_UE"],description:"Unreal的Mesh对象"}),cr.defaults=Object.assign(Object.assign({},d.defaults),{mesh:""}),function(t){t.createDefaultProps=()=>Object.assign(Object.assign({},d.createDefaultProps()),{mesh:""})}(cr||(cr={})),(0,r.extendClassProps)(cr.prototype,cr.createDefaultProps)},4635:t=>{"use strict";var e=Object.prototype.toString;t.exports=function(t){var n=e.call(t),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),r}},4649:t=>{function e(t,e,n,r){this.dataset=[],this.epsilon=1,this.minPts=2,this.distance=this._euclideanDistance,this.clusters=[],this.noise=[],this._visited=[],this._assigned=[],this._datasetLength=0,this._init(t,e,n,r)}e.prototype.run=function(t,e,n,r){this._init(t,e,n,r);for(var i=0;i<this._datasetLength;i++)if(1!==this._visited[i]){this._visited[i]=1;var o=this._regionQuery(i);if(o.length<this.minPts)this.noise.push(i);else{var s=this.clusters.length;this.clusters.push([]),this._addToCluster(i,s),this._expandCluster(s,o)}}return this.clusters},e.prototype._init=function(t,e,n,r){if(t){if(!(t instanceof Array))throw Error("Dataset must be of type array, "+typeof t+" given");this.dataset=t,this.clusters=[],this.noise=[],this._datasetLength=t.length,this._visited=new Array(this._datasetLength),this._assigned=new Array(this._datasetLength)}e&&(this.epsilon=e),n&&(this.minPts=n),r&&(this.distance=r)},e.prototype._expandCluster=function(t,e){for(var n=0;n<e.length;n++){var r=e[n];if(1!==this._visited[r]){this._visited[r]=1;var i=this._regionQuery(r);i.length>=this.minPts&&(e=this._mergeArrays(e,i))}1!==this._assigned[r]&&this._addToCluster(r,t)}},e.prototype._addToCluster=function(t,e){this.clusters[e].push(t),this._assigned[t]=1},e.prototype._regionQuery=function(t){for(var e=[],n=0;n<this._datasetLength;n++)this.distance(this.dataset[t],this.dataset[n])<this.epsilon&&e.push(n);return e},e.prototype._mergeArrays=function(t,e){for(var n=e.length,r=0;r<n;r++){var i=e[r];t.indexOf(i)<0&&t.push(i)}return t},e.prototype._euclideanDistance=function(t,e){for(var n=0,r=Math.min(t.length,e.length);r--;)n+=(t[r]-e[r])*(t[r]-e[r]);return Math.sqrt(n)},t.exports&&(t.exports=e)},4731:(t,e,n)=>{"use strict";var r=n(2162),i=n(4938).supportsDescriptors,o=Object.getOwnPropertyDescriptor;t.exports=function(){if(i&&"gim"===/a/gim.flags){var t=o(RegExp.prototype,"flags");if(t&&"function"==typeof t.get&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var e="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){e+="d"}}),Object.defineProperty(n,"sticky",{get:function(){e+="y"}}),t.get.call(n),"dy"===e)return t.get}}return r}},4811:t=>{"use strict";t.exports=Function.prototype.apply},4890:(t,e,n)=>{"use strict";n.d(e,{di:()=>ct,uf:()=>I,Ny:()=>N,Lh:()=>T,_w:()=>D,Oc:()=>j,Z5:()=>A,uz:()=>c,Pb:()=>g,DP:()=>L,KB:()=>k,uu:()=>V,kt:()=>at,lX:()=>st,ak:()=>ht,EH:()=>r,ID:()=>i,bX:()=>lt,fX:()=>B,t9:()=>z,zo:()=>U,YF:()=>W,VS:()=>q,EO:()=>X,hZ:()=>H,GM:()=>p,eb:()=>Y,gz:()=>J,VE:()=>$,RD:()=>E,MU:()=>O,_C:()=>x,Ls:()=>C,zf:()=>P,pQ:()=>S,wh:()=>M,du:()=>h,AD:()=>Z,Cs:()=>Q,aQ:()=>d,OH:()=>G,r7:()=>ut,gl:()=>ft,zZ:()=>K,j_:()=>tt,K7:()=>et,ED:()=>nt,mA:()=>s,uY:()=>u,qp:()=>rt,QR:()=>pt,ri:()=>y,AS:()=>_,Uj:()=>v,xd:()=>b,Ro:()=>m,i4:()=>w,qc:()=>R,Tw:()=>F,XB:()=>l,Qp:()=>f,yK:()=>it,UB:()=>ot,yt:()=>a});var r,i,o=n(8500);class s extends o.Destroyable{constructor(t,e){super(),this._name=t,this._description=e,this._id=++s._accumId}get id(){return this._id}get name(){return this._name}get description(){return this._description}}s._accumId=-1;class a extends s{constructor(t,e,n,r,i){super(t,e),this._withUndefined=n,this._readonly=r,this._defaultValue=i}get withUndefined(){return this._withUndefined}get readonly(){return this._readonly}get defaultValue(){return this._defaultValue instanceof Function?this._defaultValue():this._defaultValue}}class u extends a{constructor(t,e,n,r,i,o){super(t,e,n,r,o),this._reactVar=i}get reactVar(){return this._reactVar}}class c extends u{get type(){return"BooleanProperty"}}class l extends u{get type(){return"StringProperty"}}class h extends u{get type(){return"NumberProperty"}}class p extends u{get type(){return"MaximumScreenSpaceErrorProperty"}}class f extends u{get type(){return"StringsProperty"}}class d extends u{get type(){return"NumbersProperty"}}class g extends u{get type(){return"BooleansProperty"}}class y extends u{get type(){return"String2Property"}}class v extends u{get type(){return"String3Property"}}class m extends u{get type(){return"String4Property"}}class _ extends u{get type(){return"String2sProperty"}}class b extends u{get type(){return"String3sProperty"}}class w extends u{get type(){return"String4sProperty"}}class E extends u{get type(){return"Number2Property"}}class x extends u{get type(){return"Number3Property"}}class P extends u{get type(){return"Number4Property"}}class S extends u{get type(){return"Number4WithUndefinedProperty"}}class O extends u{get type(){return"Number2sProperty"}}class C extends u{get type(){return"Number3sProperty"}}class M extends u{get type(){return"Number4sProperty"}}class I extends u{get type(){return"Boolean2Property"}}class T extends u{get type(){return"Boolean3Property"}}class j extends u{get type(){return"Boolean4Property"}}class N extends u{get type(){return"Boolean2sProperty"}}class D extends u{get type(){return"Boolean3sProperty"}}class A extends u{get type(){return"Boolean4sProperty"}}class R extends u{get type(){return"StringNumberProperty"}}class F extends u{get type(){return"StringNumbersProperty"}}class L extends P{get type(){return"ColorProperty"}}class k extends x{get type(){return"ColorRgbProperty"}}class V extends h{get type(){return"DashPatternProperty"}}class B extends u{constructor(t,e,n,r,i,o,s){super(t,e,n,r,i,s),this._enums=o}get type(){return"EnumProperty"}get enums(){return this._enums}}class z extends u{constructor(t,e,n,r,i,o,s){super(t,e,n,r,i,s),this._enums=o}get type(){return"EnumStringsProperty"}get enums(){return this._enums}}class U extends u{constructor(t,e,n,r,i,o,s){super(t,e,n,r,i,o),this._sampleValue=s}get sampleValue(){return this._sampleValue}get type(){return"EvalStringProperty"}}class G extends u{constructor(t,e,n,r,i){super(t,e,!1,!1,n,i),this._paramTypes=r}get type(){return"ParamsProperty"}get paramTypes(){return this._paramTypes}}class W extends s{constructor(t,e,n,r,i){super(t,e),this._func=r;const s=this.disposeVar((0,o.reactJson)(i));this._paramsProperty=this.disposeVar(new G(t+"_params",t+"_params",s,n,i));const[a]=(0,o.getReactFuncs)(this._paramsProperty.reactVar);this._getValueFunc=a}get paramsProperty(){return this._paramsProperty}exec(){this._func(...this._getValueFunc())}get type(){return"FunctionProperty"}}class q extends s{constructor(t,e,n){super(t,e),this._children=n}get type(){return"GroupProperty"}get children(){return this._children}}class X extends u{constructor(t,e,n,r,i,o,s){super(t,e,n,r,i,o),this._sampleValue=s}get sampleValue(){return this._sampleValue}get type(){return"JsonProperty"}}class H extends u{constructor(t,e,n,r,i,o,s){super(t,e,n,r,i,o),this._sampleValue=s}get sampleValue(){return this._sampleValue}get type(){return"LongStringProperty"}}class Y extends E{get type(){return"MinmaxProperty"}}class J extends P{get type(){return"NearFarScalerProperty"}}class $ extends a{constructor(t,e,n,r,i,o,s){super(t,e,n,r,s),this._getJsonStringFunc=i,this._setJsonStringFunc=o}get type(){return"NonreactiveJsonStringProperty"}get getJsonStringFunc(){return this._getJsonStringFunc}get setJsonStringFunc(){return this._setJsonStringFunc}}class Z extends E{get type(){return"NumberRangeProperty"}}class Q extends u{constructor(t,e,n,r,i,o,s,a){super(t,e,n,r,i,a),this._step=o,this._minMax=s}get type(){return"NumberSliderProperty"}get minMax(){return this._minMax}get step(){return this._step}}class K extends s{constructor(t,e,n,r,i,o){var s,a,u;super(t,e),this._playingReact=n,this._ratioReact=r,this._loopReact=i,this._defaults={playing:!1,ratio:0,loop:!1},o&&(this._defaults.playing=null!==(s=o.playing)&&void 0!==s?s:this._defaults.playing,this._defaults.ratio=null!==(a=o.ratio)&&void 0!==a?a:this._defaults.ratio,this._defaults.loop=null!==(u=o.loop)&&void 0!==u?u:this._defaults.loop)}get type(){return"PlayerProperty"}get playingReact(){return this._playingReact}get ratioReact(){return this._ratioReact}get loopReact(){return this._loopReact}get defaults(){return this._defaults}}K.createPlayingRatio=function(t,e){var n,r;const[i,s,a]=(0,o.getReactFuncs)(t),[u,c,l]=(0,o.getReactFuncs)(e),h=(0,o.react)((null!==(n=i())&&void 0!==n?n:0)/(null!==(r=u())&&void 0!==r?r:3e3)),p=()=>{var t,e;const n=h.value,r=null!==(t=u())&&void 0!==t?t:3e3,o=null!==(e=i())&&void 0!==e?e:0;Number.isFinite(r)&&Number.isFinite(o)?Math.abs(n*r-o)<.001||(h.value=r<=0?0:o/r):console.warn(`duration || currentTime error: duration: ${r} currentTime: ${o}`)};return h.dispose(a.disposableOn(p)),h.dispose(l.disposableOn(p)),h.dispose(h.changed.disposableOn((()=>{var t,e;const n=h.value,r=null!==(t=u())&&void 0!==t?t:3e3,o=null!==(e=i())&&void 0!==e?e:0;Number.isFinite(r)&&Number.isFinite(o)?Math.abs(n*r-o)<.001||s(n*r):console.warn(`duration || currentTime error: duration: ${r} currentTime: ${o}`)}))),h};class tt extends x{get type(){return"PositionProperty"}}class et extends u{get type(){return"PositionsProperty"}}class nt extends u{get type(){return"PositionsSetPropety"}}class rt extends x{get type(){return"RotationProperty"}}class it extends l{get type(){return"UriProperty"}}class ot extends s{constructor(t,e,n,r,i,o){var s,a;super(t,e),this._playingReact=n,this._stopFn=r,this._loopReact=i,this._defaults={playing:!1,loop:!1},o&&(this._defaults.playing=null!==(s=o.playing)&&void 0!==s?s:this._defaults.playing,this._defaults.loop=null!==(a=o.loop)&&void 0!==a?a:this._defaults.loop)}get type(){return"ViewPlayerProperty"}get playingReact(){return this._playingReact}get loopReact(){return this._loopReact}get stopFn(){return this._stopFn}get defaults(){return this._defaults}}class st extends u{get type(){return"DatesProperty"}}class at extends u{get type(){return"DateProperty"}}!function(t){t.Place="place",t.Translation="translation",t.Rotation="rotation",t.Scale="scale",t.DoublePointsAppend="doublePointsAppend",t.DoublePointsModify="doublePointsModify",t.CircularAppend="circularAppend",t.CircularInsert="circularInsert",t.LineStringAppend="lineStringAppend",t.LineStringInsert="lineStringInsert",t.ScatterAppend="scatterAppend",t.ScatterModify="scatterModify",t.VisibilityAppend="visibilityAppend",t.VisibilityModify="visibilityModify",t.HeightModify="heightModify"}(r||(r={})),function(t){t.DECIMAL_DEGREE="DECIMAL_DEGREE",t.DEGREES_DECIMAL_MINUTES="DEGREES_DECIMAL_MINUTES",t.SEXAGESIMAL_DEGREE="SEXAGESIMAL_DEGREE"}(i||(i={}));class ut{constructor(t){this.childPickedInfo=t}static getFinalAttachedInfo(t){let e=t;for(;e.childPickedInfo;)e=e.childPickedInfo;if(e instanceof ct)return e.attachedInfo}}class ct extends ut{constructor(t,e){super(e),this.attachedInfo=t}}class lt{constructor(t,e){this.pickedInfo=t,this.attachedInfo=e}}class ht extends ut{constructor(t,e){super(e),this.element=t}}class pt extends ut{constructor(t,e){super(e),this.sceneObject=t}}class ft{constructor(t,e,n,r,i){this.pickResult=t,this.sceneObject=e,this.tilesetPickInfo=n,this.geojsonPickInfo=r,this.attachedInfo=i}}},4938:(t,e,n)=>{"use strict";var r=n(5187),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,s=Array.prototype.concat,a=n(22),u=n(491)(),c=function(t,e,n,r){if(e in t)if(!0===r){if(t[e]===n)return}else if("function"!=typeof(i=r)||"[object Function]"!==o.call(i)||!r())return;var i;u?a(t,e,n,!0):a(t,e,n)},l=function(t,e){var n=arguments.length>2?arguments[2]:{},o=r(e);i&&(o=s.call(o,Object.getOwnPropertySymbols(e)));for(var a=0;a<o.length;a+=1)c(t,o[a],e[o[a]],n[o[a]])};l.supportsDescriptors=!!u,t.exports=l},4949:(t,e,n)=>{"use strict";n.d(e,{N:()=>Ga,a9:()=>Ra,gh:()=>ua,vn:()=>Wa,v1:()=>Xa,W7:()=>La,rc:()=>Fa,YT:()=>Aa,Dt:()=>Ba,Hs:()=>Da,PR:()=>ja,Uh:()=>Sa,Vf:()=>Ia,hi:()=>ca,ZV:()=>$a,id:()=>r,mF:()=>Or,k_:()=>oa,_Y:()=>ba,XP:()=>wa,PA:()=>Va,Vj:()=>ha,AV:()=>la,xD:()=>a,zY:()=>Cr,mH:()=>Mr,Yd:()=>Ur,Uq:()=>Ir,yp:()=>Tr,By:()=>Gr,Je:()=>jr,Oc:()=>Nr,t9:()=>Br,D$:()=>Dr,xM:()=>Rr,__:()=>Fr,_k:()=>Wr,VX:()=>qr,KK:()=>Lr,FD:()=>kr,G1:()=>Vr,j3:()=>zr,Bu:()=>ya,dh:()=>sa,x$:()=>Hr,Mu:()=>Ar,OC:()=>Xr,L$:()=>fa,c0:()=>aa,qC:()=>va,Gv:()=>ma,rn:()=>_a,Kf:()=>ga,zO:()=>ra,bS:()=>ta,nU:()=>Ea,g_:()=>xa,Tj:()=>s,Sf:()=>o,LX:()=>za,RT:()=>da,XN:()=>pa,lI:()=>ia,HX:()=>ea});var r={};n.r(r),n.d(r,{WatcherObjects:()=>Ya});var i=n(8500);function o(t){return(0,i.reactDeepArrayWithUndefined)(t,((t,e)=>t[0]===e[0]&&t[1]===e[1]),(t=>[...t]))}function s(t,e){const n=new Array;for(let r of t)n.push(e(r));return n}function a(t,e){return void 0===t&&void 0===e||!(!t||!e)&&t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}var u=6371008.8,c={centimeters:637100880,centimetres:637100880,degrees:57.22891354143274,feet:20902260.511392,inches:39.37*u,kilometers:6371.0088,kilometres:6371.0088,meters:u,metres:u,miles:3958.761333810546,millimeters:6371008800,millimetres:6371008800,nauticalmiles:u/1852,radians:1,yards:6967335.223679999};function l(t,e,n){void 0===n&&(n={});var r={type:"Feature"};return(0===n.id||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=e||{},r.geometry=t,r}function h(t,e,n){if(void 0===n&&(n={}),!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!w(t[0])||!w(t[1]))throw new Error("coordinates must contain numbers");return l({type:"Point",coordinates:t},e,n)}function p(t,e,n){void 0===n&&(n={});for(var r=0,i=t;r<i.length;r++){var o=i[r];if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var s=0;s<o[o.length-1].length;s++)if(o[o.length-1][s]!==o[0][s])throw new Error("First and last Position are not equivalent.")}return l({type:"Polygon",coordinates:t},e,n)}function f(t,e,n){if(void 0===n&&(n={}),t.length<2)throw new Error("coordinates must be an array of two or more positions");return l({type:"LineString",coordinates:t},e,n)}function d(t,e){void 0===e&&(e={});var n={type:"FeatureCollection"};return e.id&&(n.id=e.id),e.bbox&&(n.bbox=e.bbox),n.features=t,n}function g(t,e,n){return void 0===n&&(n={}),l({type:"MultiPolygon",coordinates:t},e,n)}function y(t,e){void 0===e&&(e="kilometers");var n=c[e];if(!n)throw new Error(e+" units is invalid");return t*n}function v(t,e){void 0===e&&(e="kilometers");var n=c[e];if(!n)throw new Error(e+" units is invalid");return t/n}function m(t){return t%(2*Math.PI)*180/Math.PI}function _(t){return t%360*Math.PI/180}function b(t,e,n){if(void 0===e&&(e="kilometers"),void 0===n&&(n="kilometers"),!(t>=0))throw new Error("length must be a positive number");return y(v(t,e),n)}function w(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}function E(t,e,n){if(null!==t)for(var r,i,o,s,a,u,c,l,h=0,p=0,f=t.type,d="FeatureCollection"===f,g="Feature"===f,y=d?t.features.length:1,v=0;v<y;v++){a=(l=!!(c=d?t.features[v].geometry:g?t.geometry:t)&&"GeometryCollection"===c.type)?c.geometries.length:1;for(var m=0;m<a;m++){var _=0,b=0;if(null!==(s=l?c.geometries[m]:c)){u=s.coordinates;var w=s.type;switch(h=!n||"Polygon"!==w&&"MultiPolygon"!==w?0:1,w){case null:break;case"Point":if(!1===e(u,p,v,_,b))return!1;p++,_++;break;case"LineString":case"MultiPoint":for(r=0;r<u.length;r++){if(!1===e(u[r],p,v,_,b))return!1;p++,"MultiPoint"===w&&_++}"LineString"===w&&_++;break;case"Polygon":case"MultiLineString":for(r=0;r<u.length;r++){for(i=0;i<u[r].length-h;i++){if(!1===e(u[r][i],p,v,_,b))return!1;p++}"MultiLineString"===w&&_++,"Polygon"===w&&b++}"Polygon"===w&&_++;break;case"MultiPolygon":for(r=0;r<u.length;r++){for(b=0,i=0;i<u[r].length;i++){for(o=0;o<u[r][i].length-h;o++){if(!1===e(u[r][i][o],p,v,_,b))return!1;p++}b++}_++}break;case"GeometryCollection":for(r=0;r<s.geometries.length;r++)if(!1===E(s.geometries[r],e,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function x(t,e){if("Feature"===t.type)e(t,0);else if("FeatureCollection"===t.type)for(var n=0;n<t.features.length&&!1!==e(t.features[n],n);n++);}function P(t,e){var n,r,i,o,s,a,u,c,l,h,p=0,f="FeatureCollection"===t.type,d="Feature"===t.type,g=f?t.features.length:1;for(n=0;n<g;n++){for(a=f?t.features[n].geometry:d?t.geometry:t,c=f?t.features[n].properties:d?t.properties:{},l=f?t.features[n].bbox:d?t.bbox:void 0,h=f?t.features[n].id:d?t.id:void 0,s=(u=!!a&&"GeometryCollection"===a.type)?a.geometries.length:1,i=0;i<s;i++)if(null!==(o=u?a.geometries[i]:a))switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===e(o,p,c,l,h))return!1;break;case"GeometryCollection":for(r=0;r<o.geometries.length;r++)if(!1===e(o.geometries[r],p,c,l,h))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===e(null,p,c,l,h))return!1;p++}}function S(t,e){P(t,(function(t,n,r,i,o){var s,a=null===t?null:t.type;switch(a){case null:case"Point":case"LineString":case"Polygon":return!1!==e(l(t,r,{bbox:i,id:o}),n,0)&&void 0}switch(a){case"MultiPoint":s="Point";break;case"MultiLineString":s="LineString";break;case"MultiPolygon":s="Polygon"}for(var u=0;u<t.coordinates.length;u++){var c=t.coordinates[u];if(!1===e(l({type:s,coordinates:c},r),n,u))return!1}}))}function O(t){var e=[1/0,1/0,-1/0,-1/0];return E(t,(function(t){e[0]>t[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]<t[0]&&(e[2]=t[0]),e[3]<t[1]&&(e[3]=t[1])})),e}O.default=O;const C=O;function M(t){if(!t)throw new Error("coord is required");if(!Array.isArray(t)){if("Feature"===t.type&&null!==t.geometry&&"Point"===t.geometry.type)return t.geometry.coordinates;if("Point"===t.type)return t.coordinates}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return t;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function I(t){if(Array.isArray(t))return t;if("Feature"===t.type){if(null!==t.geometry)return t.geometry.coordinates}else if(t.coordinates)return t.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function T(t,e,n){if(!t)throw new Error("No feature passed");if(!n)throw new Error(".featureOf() requires a name");if(!t||"Feature"!==t.type||!t.geometry)throw new Error("Invalid input to "+n+", Feature with geometry required");if(!t.geometry||t.geometry.type!==e)throw new Error("Invalid input to "+n+": must be a "+e+", given "+t.geometry.type)}function j(t){return"Feature"===t.type?t.geometry:t}n(6084);var N=n(9920);function D(t,e,n){if(void 0===n&&(n={}),!t)throw new Error("point is required");if(!e)throw new Error("polygon is required");var r=M(t),i=j(e),o=i.type,s=e.bbox,a=i.coordinates;if(s&&!1===function(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}(r,s))return!1;"Polygon"===o&&(a=[a]);for(var u=!1,c=0;c<a.length&&!u;c++)if(A(r,a[c][0],n.ignoreBoundary)){for(var l=!1,h=1;h<a[c].length&&!l;)A(r,a[c][h],!n.ignoreBoundary)&&(l=!0),h++;l||(u=!0)}return u}function A(t,e,n){var r=!1;e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]&&(e=e.slice(0,e.length-1));for(var i=0,o=e.length-1;i<e.length;o=i++){var s=e[i][0],a=e[i][1],u=e[o][0],c=e[o][1];if(t[1]*(s-u)+a*(u-t[0])+c*(t[0]-s)==0&&(s-t[0])*(u-t[0])<=0&&(a-t[1])*(c-t[1])<=0)return!n;a>t[1]!=c>t[1]&&t[0]<(u-s)*(t[1]-a)/(c-a)+s&&(r=!r)}return r}const R=function(t,e,n){void 0===n&&(n={});var r=M(t),i=M(e),o=_(i[1]-r[1]),s=_(i[0]-r[0]),a=_(r[1]),u=_(i[1]),c=Math.pow(Math.sin(o/2),2)+Math.pow(Math.sin(s/2),2)*Math.cos(a)*Math.cos(u);return y(2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c)),n.units)};Object.prototype.hasOwnProperty;var F=new ArrayBuffer(16);new Float64Array(F),new Uint32Array(F),n(5054),function(){function t(t){this.points=t.points||[],this.duration=t.duration||1e4,this.sharpness=t.sharpness||.85,this.centers=[],this.controls=[],this.stepLength=t.stepLength||60,this.length=this.points.length,this.delay=0;for(var e=0;e<this.length;e++)this.points[e].z=this.points[e].z||0;for(e=0;e<this.length-1;e++){var n=this.points[e],r=this.points[e+1];this.centers.push({x:(n.x+r.x)/2,y:(n.y+r.y)/2,z:(n.z+r.z)/2})}for(this.controls.push([this.points[0],this.points[0]]),e=0;e<this.centers.length-1;e++){var i=this.points[e+1].x-(this.centers[e].x+this.centers[e+1].x)/2,o=this.points[e+1].y-(this.centers[e].y+this.centers[e+1].y)/2,s=this.points[e+1].z-(this.centers[e].y+this.centers[e+1].z)/2;this.controls.push([{x:(1-this.sharpness)*this.points[e+1].x+this.sharpness*(this.centers[e].x+i),y:(1-this.sharpness)*this.points[e+1].y+this.sharpness*(this.centers[e].y+o),z:(1-this.sharpness)*this.points[e+1].z+this.sharpness*(this.centers[e].z+s)},{x:(1-this.sharpness)*this.points[e+1].x+this.sharpness*(this.centers[e+1].x+i),y:(1-this.sharpness)*this.points[e+1].y+this.sharpness*(this.centers[e+1].y+o),z:(1-this.sharpness)*this.points[e+1].z+this.sharpness*(this.centers[e+1].z+s)}])}return this.controls.push([this.points[this.length-1],this.points[this.length-1]]),this.steps=this.cacheSteps(this.stepLength),this}t.prototype.cacheSteps=function(t){var e=[],n=this.pos(0);e.push(0);for(var r=0;r<this.duration;r+=10){var i=this.pos(r);Math.sqrt((i.x-n.x)*(i.x-n.x)+(i.y-n.y)*(i.y-n.y)+(i.z-n.z)*(i.z-n.z))>t&&(e.push(r),n=i)}return e},t.prototype.vector=function(t){var e=this.pos(t+10),n=this.pos(t-10);return{angle:180*Math.atan2(e.y-n.y,e.x-n.x)/3.14,speed:Math.sqrt((n.x-e.x)*(n.x-e.x)+(n.y-e.y)*(n.y-e.y)+(n.z-e.z)*(n.z-e.z))}},t.prototype.pos=function(t){var e=t-this.delay;e<0&&(e=0),e>this.duration&&(e=this.duration-1);var n=e/this.duration;if(n>=1)return this.points[this.length-1];var r=Math.floor((this.points.length-1)*n);return function(t,e,n,r,i){var o=function(t){var e=t*t;return[e*t,3*e*(1-t),3*t*(1-t)*(1-t),(1-t)*(1-t)*(1-t)]}(t);return{x:i.x*o[0]+r.x*o[1]+n.x*o[2]+e.x*o[3],y:i.y*o[0]+r.y*o[1]+n.y*o[2]+e.y*o[3],z:i.z*o[0]+r.z*o[1]+n.z*o[2]+e.z*o[3]}}((this.length-1)*n-r,this.points[r],this.controls[r][1],this.controls[r+1][0],this.points[r+1])}}();function L(t,e,n,r){void 0===r&&(r={});var i=M(t),o=_(i[0]),s=_(i[1]),a=_(n),u=v(e,r.units),c=Math.asin(Math.sin(s)*Math.cos(u)+Math.cos(s)*Math.sin(u)*Math.cos(a));return h([m(o+Math.atan2(Math.sin(a)*Math.sin(u)*Math.cos(s),Math.cos(u)-Math.sin(s)*Math.sin(c))),m(c)],r.properties)}const k=function(t,e,n){void 0===n&&(n={});for(var r=n.steps||64,i=n.properties?n.properties:!Array.isArray(t)&&"Feature"===t.type&&t.properties?t.properties:{},o=[],s=0;s<r;s++)o.push(L(t,e,-360*s/r,n).geometry.coordinates);return o.push(o[0]),p([o],i)};function V(t,e,n){if(void 0===n&&(n={}),!0===n.final)return function(t,e){var n=V(e,t);return(n+180)%360}(t,e);var r=M(t),i=M(e),o=_(r[0]),s=_(i[0]),a=_(r[1]),u=_(i[1]),c=Math.sin(s-o)*Math.cos(u),l=Math.cos(a)*Math.sin(u)-Math.sin(a)*Math.cos(u)*Math.cos(s-o);return m(Math.atan2(c,l))}const B=function(t,e){return L(t,R(t,e)/2,V(t,e))},z=function(t,e){void 0===e&&(e={});var n=0,r=0,i=0;return E(t,(function(t){n+=t[0],r+=t[1],i++}),!0),h([n/i,r/i],e.properties)},U=function t(e,n){switch(void 0===n&&(n={}),function(t){return"FeatureCollection"===t.type?"FeatureCollection":"GeometryCollection"===t.type?"GeometryCollection":"Feature"===t.type&&null!==t.geometry?t.geometry.type:t.type}(e)){case"Point":return h(M(e),n.properties);case"Polygon":var r=[];E(e,(function(t){r.push(t)}));var i,o,s,a,u,c,l,f,d=z(e,{properties:n.properties}),g=d.geometry.coordinates,y=0,v=0,m=0,_=r.map((function(t){return[t[0]-g[0],t[1]-g[1]]}));for(i=0;i<r.length-1;i++)a=(o=_[i])[0],c=o[1],u=(s=_[i+1])[0],m+=f=a*(l=s[1])-u*c,y+=(a+u)*f,v+=(c+l)*f;if(0===m)return d;var b=1/(.5*m*6);return h([g[0]+b*y,g[1]+b*v],n.properties);default:var w=function(t,e){void 0===e&&(e={}),e.concavity=e.concavity||1/0;var n=[];if(E(t,(function(t){n.push([t[0],t[1]])})),!n.length)return null;var r=N(n,e.concavity);return r.length>3?p([r]):null}(e);return w?t(w,{properties:n.properties}):z(e,{properties:n.properties})}};n(6935);const G=function(t){if(!t)throw new Error("geojson is required");var e=[];return S(t,(function(t){!function(t,e){var n=[],r=t.geometry;if(null!==r){switch(r.type){case"Polygon":n=I(r);break;case"LineString":n=[I(r)]}n.forEach((function(n){var r=function(t,e){var n=[];return t.reduce((function(t,r){var i=f([t,r],e);return i.bbox=function(t,e){var n=t[0],r=t[1],i=e[0],o=e[1];return[n<i?n:i,r<o?r:o,n>i?n:i,r>o?r:o]}(t,r),n.push(i),r})),n}(n,t.properties);r.forEach((function(t){t.id=e.length,e.push(t)}))}))}}(t,e)})),d(e)};var W=n(6411);function q(t,e){var n=I(t),r=I(e);if(2!==n.length)throw new Error("<intersects> line1 must only contain 2 coordinates");if(2!==r.length)throw new Error("<intersects> line2 must only contain 2 coordinates");var i=n[0][0],o=n[0][1],s=n[1][0],a=n[1][1],u=r[0][0],c=r[0][1],l=r[1][0],p=r[1][1],f=(p-c)*(s-i)-(l-u)*(a-o);if(0===f)return null;var d=((l-u)*(o-c)-(p-c)*(i-u))/f,g=((s-i)*(o-c)-(a-o)*(i-u))/f;return d>=0&&d<=1&&g>=0&&g<=1?h([i+d*(s-i),o+d*(a-o)]):null}const X=function(t,e){var n={},r=[];if("LineString"===t.type&&(t=l(t)),"LineString"===e.type&&(e=l(e)),"Feature"===t.type&&"Feature"===e.type&&null!==t.geometry&&null!==e.geometry&&"LineString"===t.geometry.type&&"LineString"===e.geometry.type&&2===t.geometry.coordinates.length&&2===e.geometry.coordinates.length){var i=q(t,e);return i&&r.push(i),d(r)}var o=W();return o.load(G(e)),x(G(t),(function(t){x(o.search(t),(function(e){var i=q(t,e);if(i){var o=I(i).join(",");n[o]||(n[o]=!0,r.push(i))}}))})),d(r)},H=function(t,e,n){void 0===n&&(n={});var r=h([1/0,1/0],{dist:1/0}),i=0;return S(t,(function(t){for(var o=I(t),s=0;s<o.length-1;s++){var a=h(o[s]);a.properties.dist=R(e,a,n);var u=h(o[s+1]);u.properties.dist=R(e,u,n);var c=R(a,u,n),l=Math.max(a.properties.dist,u.properties.dist),p=V(a,u),d=L(e,l,p+90,n),g=L(e,l,p-90,n),y=X(f([d.geometry.coordinates,g.geometry.coordinates]),f([a.geometry.coordinates,u.geometry.coordinates])),v=null;y.features.length>0&&((v=y.features[0]).properties.dist=R(e,v,n),v.properties.location=i+R(a,v,n)),a.properties.dist<r.properties.dist&&((r=a).properties.index=s,r.properties.location=i),u.properties.dist<r.properties.dist&&((r=u).properties.index=s+1,r.properties.location=i+c),v&&v.properties.dist<r.properties.dist&&((r=v).properties.index=s),i+=c}})),r},Y=function(t,e,n){void 0===n&&(n={});var r=M(t),i=M(e);i[0]+=i[0]-r[0]>180?-360:r[0]-i[0]>180?360:0;var o=function(t,e,n){var r=n=void 0===n?u:Number(n),i=t[1]*Math.PI/180,o=e[1]*Math.PI/180,s=o-i,a=Math.abs(e[0]-t[0])*Math.PI/180;a>Math.PI&&(a-=2*Math.PI);var c=Math.log(Math.tan(o/2+Math.PI/4)/Math.tan(i/2+Math.PI/4)),l=Math.abs(c)>1e-11?s/c:Math.cos(i);return Math.sqrt(s*s+l*l*a*a)*r}(r,i);return b(o,"meters",n.units)};function J(t,e){return t[0]*e[0]+t[1]*e[1]}function $(t,e,n){return"planar"===n.method?Y(t,e,n):R(t,e,n)}const Z=function(t,e,n){if(void 0===n&&(n={}),n.method||(n.method="geodesic"),n.units||(n.units="kilometers"),!t)throw new Error("pt is required");if(Array.isArray(t)?t=h(t):"Point"===t.type?t=l(t):T(t,"Point","point"),!e)throw new Error("line is required");Array.isArray(e)?e=f(e):"LineString"===e.type?e=l(e):T(e,"LineString","line");var r,i=1/0,o=t.geometry.coordinates;return r=function(t){var e=t.geometry.coordinates[0],r=t.geometry.coordinates[1],s=function(t,e,n,r){var i=[n[0]-e[0],n[1]-e[1]],o=J([t[0]-e[0],t[1]-e[1]],i);if(o<=0)return $(t,e,{method:r.method,units:"degrees"});var s=J(i,i);if(s<=o)return $(t,n,{method:r.method,units:"degrees"});var a=o/s;return $(t,[e[0]+a*i[0],e[1]+a*i[1]],{method:r.method,units:"degrees"})}(o,e,r,n);s<i&&(i=s)},S(e,(function(t,e,n){var i=0;if(t.geometry){var o=t.geometry.type;if("Point"!==o&&"MultiPoint"!==o){var s,a=0,u=0,c=0;return!1!==E(t,(function(o,l,h,p,d){if(void 0===s||e>a||p>u||d>c)return s=o,a=e,u=p,c=d,void(i=0);var g=f([s,o],t.properties);if(!1===r(g,e,n,d,i))return!1;i++,s=o}))&&void 0}}})),b(i,"degrees",n.units)};var Q=6378137;function K(t){return function(t){var e=0;return P(t,(function(t,n,r,i,o){e=e+function(t){var e,n=0;switch(t.type){case"Polygon":return tt(t.coordinates);case"MultiPolygon":for(e=0;e<t.coordinates.length;e++)n+=tt(t.coordinates[e]);return n;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}(t)})),e}(t)}function tt(t){var e=0;if(t&&t.length>0){e+=Math.abs(et(t[0]));for(var n=1;n<t.length;n++)e-=Math.abs(et(t[n]))}return e}function et(t){var e,n,r,i,o,s,a=0,u=t.length;if(u>2){for(s=0;s<u;s++)s===u-2?(r=u-2,i=u-1,o=0):s===u-1?(r=u-1,i=0,o=1):(r=s,i=s+1,o=s+2),e=t[r],n=t[i],a+=(nt(t[o][0])-nt(e[0]))*Math.sin(nt(n[1]));a=a*Q*Q/2}return a}function nt(t){return t*Math.PI/180}function rt(t,e,n,r,i){var o=n[0],s=n[1],a=t[0],u=t[1],c=e[0],l=e[1],h=c-a,p=l-u,f=(n[0]-a)*p-(n[1]-u)*h;if(null!==i){if(Math.abs(f)>i)return!1}else if(0!==f)return!1;return r?"start"===r?Math.abs(h)>=Math.abs(p)?h>0?a<o&&o<=c:c<=o&&o<a:p>0?u<s&&s<=l:l<=s&&s<u:"end"===r?Math.abs(h)>=Math.abs(p)?h>0?a<=o&&o<c:c<o&&o<=a:p>0?u<=s&&s<l:l<s&&s<=u:"both"===r&&(Math.abs(h)>=Math.abs(p)?h>0?a<o&&o<c:c<o&&o<a:p>0?u<s&&s<l:l<s&&s<u):Math.abs(h)>=Math.abs(p)?h>0?a<=o&&o<=c:c<=o&&o<=a:p>0?u<=s&&s<=l:l<=s&&s<=u}const it=function(t,e,n){void 0===n&&(n={});for(var r=M(t),i=I(e),o=0;o<i.length-1;o++){var s=!1;if(n.ignoreEndVertices&&(0===o&&(s="start"),o===i.length-2&&(s="end"),0===o&&o+1===i.length-1&&(s="both")),rt(i[o],i[o+1],r,s,void 0===n.epsilon?null:n.epsilon))return!0}return!1};function ot(t,e){return!(t[0]>e[0]||t[2]<e[2]||t[1]>e[1]||t[3]<e[3])}function st(t,e){return t[0]===e[0]&&t[1]===e[1]}const at=function(t,e){var n=j(t),r=j(e),i=n.type,o=r.type;switch(i){case"Point":switch(o){case"MultiPoint":return function(t,e){var n,r=!1;for(n=0;n<e.coordinates.length;n++)if(st(e.coordinates[n],t.coordinates)){r=!0;break}return r}(n,r);case"LineString":return it(n,r,{ignoreEndVertices:!0});case"Polygon":case"MultiPolygon":return D(n,r,{ignoreBoundary:!0});default:throw new Error("feature2 "+o+" geometry not supported")}case"MultiPoint":switch(o){case"MultiPoint":return function(t,e){for(var n=0;n<t.coordinates.length;n++){for(var r=!1,i=0;i<e.coordinates.length;i++)st(t.coordinates[n],e.coordinates[i])&&(r=!0);if(!r)return!1}return!0}(n,r);case"LineString":return function(t,e){for(var n=!1,r=0;r<t.coordinates.length;r++){if(!it(t.coordinates[r],e))return!1;n||(n=it(t.coordinates[r],e,{ignoreEndVertices:!0}))}return n}(n,r);case"Polygon":case"MultiPolygon":return function(t,e){for(var n=!0,r=!1,i=0;i<t.coordinates.length;i++){if(!(r=D(t.coordinates[1],e))){n=!1;break}r=D(t.coordinates[1],e,{ignoreBoundary:!0})}return n&&r}(n,r);default:throw new Error("feature2 "+o+" geometry not supported")}case"LineString":switch(o){case"LineString":return function(t,e){for(var n=0;n<t.coordinates.length;n++)if(!it(t.coordinates[n],e))return!1;return!0}(n,r);case"Polygon":case"MultiPolygon":return function(t,e){var n,r;if(!ot(C(e),C(t)))return!1;for(var i=!1,o=0;o<t.coordinates.length-1;o++){if(!D(t.coordinates[o],e))return!1;i||(i=D(t.coordinates[o],e,{ignoreBoundary:!0})),i||(i=D((n=t.coordinates[o],r=t.coordinates[o+1],[(n[0]+r[0])/2,(n[1]+r[1])/2]),e,{ignoreBoundary:!0}))}return i}(n,r);default:throw new Error("feature2 "+o+" geometry not supported")}case"Polygon":switch(o){case"Polygon":case"MultiPolygon":return function(t,e){var n=C(t);if(!ot(C(e),n))return!1;for(var r=0;r<t.coordinates[0].length;r++)if(!D(t.coordinates[0][r],e))return!1;return!0}(n,r);default:throw new Error("feature2 "+o+" geometry not supported")}default:throw new Error("feature1 "+i+" geometry not supported")}};var ut=Math.PI/180,ct=180/Math.PI,lt=function(t,e){this.lon=t,this.lat=e,this.x=ut*t,this.y=ut*e};lt.prototype.view=function(){return String(this.lon).slice(0,4)+","+String(this.lat).slice(0,4)},lt.prototype.antipode=function(){var t=-1*this.lat,e=this.lon<0?180+this.lon:-1*(180-this.lon);return new lt(e,t)};var ht=function(){this.coords=[],this.length=0};ht.prototype.move_to=function(t){this.length++,this.coords.push(t)};var pt=function(t){this.properties=t||{},this.geometries=[]};pt.prototype.json=function(){if(this.geometries.length<=0)return{geometry:{type:"LineString",coordinates:null},type:"Feature",properties:this.properties};if(1===this.geometries.length)return{geometry:{type:"LineString",coordinates:this.geometries[0].coords},type:"Feature",properties:this.properties};for(var t=[],e=0;e<this.geometries.length;e++)t.push(this.geometries[e].coords);return{geometry:{type:"MultiLineString",coordinates:t},type:"Feature",properties:this.properties}},pt.prototype.wkt=function(){for(var t="",e="LINESTRING(",n=function(t){e+=t[0]+" "+t[1]+","},r=0;r<this.geometries.length;r++){if(0===this.geometries[r].coords.length)return"LINESTRING(empty)";this.geometries[r].coords.forEach(n),t+=e.substring(0,e.length-1)+")"}return t};var ft=function(t,e,n){if(!t||void 0===t.x||void 0===t.y)throw new Error("GreatCircle constructor expects two args: start and end objects with x and y properties");if(!e||void 0===e.x||void 0===e.y)throw new Error("GreatCircle constructor expects two args: start and end objects with x and y properties");this.start=new lt(t.x,t.y),this.end=new lt(e.x,e.y),this.properties=n||{};var r=this.start.x-this.end.x,i=this.start.y-this.end.y,o=Math.pow(Math.sin(i/2),2)+Math.cos(this.start.y)*Math.cos(this.end.y)*Math.pow(Math.sin(r/2),2);if(this.g=2*Math.asin(Math.sqrt(o)),this.g===Math.PI)throw new Error("it appears "+t.view()+" and "+e.view()+" are 'antipodal', e.g diametrically opposite, thus there is no single route but rather infinite");if(isNaN(this.g))throw new Error("could not calculate great circle between "+t+" and "+e)};function dt(t,e){var n=_(t[1]),r=_(e[1]),i=_(e[0]-t[0]);i>Math.PI&&(i-=2*Math.PI),i<-Math.PI&&(i+=2*Math.PI);var o=Math.log(Math.tan(r/2+Math.PI/4)/Math.tan(n/2+Math.PI/4));return(m(Math.atan2(i,o))+360)%360}ft.prototype.interpolate=function(t){var e=Math.sin((1-t)*this.g)/Math.sin(this.g),n=Math.sin(t*this.g)/Math.sin(this.g),r=e*Math.cos(this.start.y)*Math.cos(this.start.x)+n*Math.cos(this.end.y)*Math.cos(this.end.x),i=e*Math.cos(this.start.y)*Math.sin(this.start.x)+n*Math.cos(this.end.y)*Math.sin(this.end.x),o=e*Math.sin(this.start.y)+n*Math.sin(this.end.y),s=ct*Math.atan2(o,Math.sqrt(Math.pow(r,2)+Math.pow(i,2)));return[ct*Math.atan2(i,r),s]},ft.prototype.Arc=function(t,e){var n=[];if(!t||t<=2)n.push([this.start.lon,this.start.lat]),n.push([this.end.lon,this.end.lat]);else for(var r=1/(t-1),i=0;i<t;++i){var o=r*i,s=this.interpolate(o);n.push(s)}for(var a=!1,u=0,c=e&&e.offset?e.offset:10,l=180-c,h=-180+c,p=360-c,f=1;f<n.length;++f){var d=n[f-1][0],g=n[f][0],y=Math.abs(g-d);y>p&&(g>l&&d<h||d>l&&g<h)?a=!0:y>u&&(u=y)}var v=[];if(a&&u<c){var m=[];v.push(m);for(var _=0;_<n.length;++_){var b=parseFloat(n[_][0]);if(_>0&&Math.abs(b-n[_-1][0])>p){var w=parseFloat(n[_-1][0]),E=parseFloat(n[_-1][1]),x=parseFloat(n[_][0]),P=parseFloat(n[_][1]);if(w>-180&&w<h&&180===x&&_+1<n.length&&n[_-1][0]>-180&&n[_-1][0]<h){m.push([-180,n[_][1]]),_++,m.push([n[_][0],n[_][1]]);continue}if(w>l&&w<180&&-180===x&&_+1<n.length&&n[_-1][0]>l&&n[_-1][0]<180){m.push([180,n[_][1]]),_++,m.push([n[_][0],n[_][1]]);continue}if(w<h&&x>l){var S=w;w=x,x=S;var O=E;E=P,P=O}if(w>l&&x<h&&(x+=360),w<=180&&x>=180&&w<x){var C=(180-w)/(x-w),M=C*P+(1-C)*E;m.push([n[_-1][0]>l?180:-180,M]),(m=[]).push([n[_-1][0]>l?-180:180,M]),v.push(m)}else m=[],v.push(m);m.push([b,n[_][1]])}else m.push([n[_][0],n[_][1]])}}else{var I=[];v.push(I);for(var T=0;T<n.length;++T)I.push([n[T][0],n[T][1]])}for(var j=new pt(this.properties),N=0;N<v.length;++N){var D=new ht;j.geometries.push(D);for(var A=v[N],R=0;R<A.length;++R)D.move_to(A[R])}return j},n(5956);const gt=function(t,e,n){var r;return void 0===n&&(n={}),(r=n.final?dt(M(e),M(t)):dt(M(t),M(e)))>180?-(360-r):r},yt=function(t,e,n,r){void 0===r&&(r={});var i=e<0,o=b(Math.abs(e),r.units,"meters");i&&(o=-Math.abs(o));var s=M(t),a=function(t,e,n,r){var i=e/(r=void 0===r?u:Number(r)),o=t[0]*Math.PI/180,s=_(t[1]),a=_(n),c=i*Math.cos(a),l=s+c;Math.abs(l)>Math.PI/2&&(l=l>0?Math.PI-l:-Math.PI-l);var h=Math.log(Math.tan(l/2+Math.PI/4)/Math.tan(s/2+Math.PI/4)),p=Math.abs(h)>1e-11?c/h:Math.cos(s);return[(180*(o+i*Math.sin(a)/p)/Math.PI+540)%360-180,180*l/Math.PI]}(s,o,n);return a[0]+=a[0]-s[0]>180?-360:s[0]-a[0]>180?360:0,h(a,r.properties)};var vt=[],mt=[],_t=[],bt=[],wt=[],Et=[],xt=[],Pt=[],St=[],Ot=[],Ct=[],Mt=[],It=[],Tt=[],jt=[],Nt=[],Dt=[],At=[],Rt=[],Ft=[],Lt=[],kt=[],Vt=[],Bt=[];xt[85]=Ot[85]=-1,Pt[85]=Ct[85]=0,St[85]=Mt[85]=1,Rt[85]=kt[85]=1,Ft[85]=Vt[85]=0,Lt[85]=Bt[85]=1,vt[85]=bt[85]=0,mt[85]=wt[85]=-1,_t[85]=jt[85]=0,Nt[85]=It[85]=0,Dt[85]=Tt[85]=1,Et[85]=At[85]=1,kt[1]=kt[169]=0,Vt[1]=Vt[169]=-1,Bt[1]=Bt[169]=0,It[1]=It[169]=-1,Tt[1]=Tt[169]=0,jt[1]=jt[169]=0,Ot[4]=Ot[166]=0,Ct[4]=Ct[166]=-1,Mt[4]=Mt[166]=1,Nt[4]=Nt[166]=1,Dt[4]=Dt[166]=0,At[4]=At[166]=0,xt[16]=xt[154]=0,Pt[16]=Pt[154]=1,St[16]=St[154]=1,bt[16]=bt[154]=1,wt[16]=wt[154]=0,Et[16]=Et[154]=1,Rt[64]=Rt[106]=0,Ft[64]=Ft[106]=1,Lt[64]=Lt[106]=0,vt[64]=vt[106]=-1,mt[64]=mt[106]=0,_t[64]=_t[106]=1,Rt[2]=Rt[168]=0,Ft[2]=Ft[168]=-1,Lt[2]=Lt[168]=1,kt[2]=kt[168]=0,Vt[2]=Vt[168]=-1,Bt[2]=Bt[168]=0,It[2]=It[168]=-1,Tt[2]=Tt[168]=0,jt[2]=jt[168]=0,Nt[2]=Nt[168]=-1,Dt[2]=Dt[168]=0,At[2]=At[168]=1,xt[8]=xt[162]=0,Pt[8]=Pt[162]=-1,St[8]=St[162]=0,Ot[8]=Ot[162]=0,Ct[8]=Ct[162]=-1,Mt[8]=Mt[162]=1,It[8]=It[162]=1,Tt[8]=Tt[162]=0,jt[8]=jt[162]=1,Nt[8]=Nt[162]=1,Dt[8]=Dt[162]=0,At[8]=At[162]=0,xt[32]=xt[138]=0,Pt[32]=Pt[138]=1,St[32]=St[138]=1,Ot[32]=Ot[138]=0,Ct[32]=Ct[138]=1,Mt[32]=Mt[138]=0,vt[32]=vt[138]=1,mt[32]=mt[138]=0,_t[32]=_t[138]=0,bt[32]=bt[138]=1,wt[32]=wt[138]=0,Et[32]=Et[138]=1,kt[128]=kt[42]=0,Vt[128]=Vt[42]=1,Bt[128]=Bt[42]=1,Rt[128]=Rt[42]=0,Ft[128]=Ft[42]=1,Lt[128]=Lt[42]=0,vt[128]=vt[42]=-1,mt[128]=mt[42]=0,_t[128]=_t[42]=1,bt[128]=bt[42]=-1,wt[128]=wt[42]=0,Et[128]=Et[42]=0,Ot[5]=Ot[165]=-1,Ct[5]=Ct[165]=0,Mt[5]=Mt[165]=0,kt[5]=kt[165]=1,Vt[5]=Vt[165]=0,Bt[5]=Bt[165]=0,Nt[20]=Nt[150]=0,Dt[20]=Dt[150]=1,At[20]=At[150]=1,bt[20]=bt[150]=0,wt[20]=wt[150]=-1,Et[20]=Et[150]=1,xt[80]=xt[90]=-1,Pt[80]=Pt[90]=0,St[80]=St[90]=1,Rt[80]=Rt[90]=1,Ft[80]=Ft[90]=0,Lt[80]=Lt[90]=1,It[65]=It[105]=0,Tt[65]=Tt[105]=1,jt[65]=jt[105]=0,vt[65]=vt[105]=0,mt[65]=mt[105]=-1,_t[65]=_t[105]=0,xt[160]=xt[10]=-1,Pt[160]=Pt[10]=0,St[160]=St[10]=1,Ot[160]=Ot[10]=-1,Ct[160]=Ct[10]=0,Mt[160]=Mt[10]=0,kt[160]=kt[10]=1,Vt[160]=Vt[10]=0,Bt[160]=Bt[10]=0,Rt[160]=Rt[10]=1,Ft[160]=Ft[10]=0,Lt[160]=Lt[10]=1,Nt[130]=Nt[40]=0,Dt[130]=Dt[40]=1,At[130]=At[40]=1,It[130]=It[40]=0,Tt[130]=Tt[40]=1,jt[130]=jt[40]=0,vt[130]=vt[40]=0,mt[130]=mt[40]=-1,_t[130]=_t[40]=0,bt[130]=bt[40]=0,wt[130]=wt[40]=-1,Et[130]=Et[40]=1,Ot[37]=Ot[133]=0,Ct[37]=Ct[133]=1,Mt[37]=Mt[133]=1,kt[37]=kt[133]=0,Vt[37]=Vt[133]=1,Bt[37]=Bt[133]=0,vt[37]=vt[133]=-1,mt[37]=mt[133]=0,_t[37]=_t[133]=0,bt[37]=bt[133]=1,wt[37]=wt[133]=0,Et[37]=Et[133]=0,Nt[148]=Nt[22]=-1,Dt[148]=Dt[22]=0,At[148]=At[22]=0,kt[148]=kt[22]=0,Vt[148]=Vt[22]=-1,Bt[148]=Bt[22]=1,Rt[148]=Rt[22]=0,Ft[148]=Ft[22]=1,Lt[148]=Lt[22]=1,bt[148]=bt[22]=-1,wt[148]=wt[22]=0,Et[148]=Et[22]=1,xt[82]=xt[88]=0,Pt[82]=Pt[88]=-1,St[82]=St[88]=1,Nt[82]=Nt[88]=1,Dt[82]=Dt[88]=0,At[82]=At[88]=1,It[82]=It[88]=-1,Tt[82]=Tt[88]=0,jt[82]=jt[88]=1,Rt[82]=Rt[88]=0,Ft[82]=Ft[88]=-1,Lt[82]=Lt[88]=0,xt[73]=xt[97]=0,Pt[73]=Pt[97]=1,St[73]=St[97]=0,Ot[73]=Ot[97]=0,Ct[73]=Ct[97]=-1,Mt[73]=Mt[97]=0,It[73]=It[97]=1,Tt[73]=Tt[97]=0,jt[73]=jt[97]=0,vt[73]=vt[97]=1,mt[73]=mt[97]=0,_t[73]=_t[97]=1,xt[145]=xt[25]=0,Pt[145]=Pt[25]=-1,St[145]=St[25]=0,It[145]=It[25]=1,Tt[145]=Tt[25]=0,jt[145]=jt[25]=1,kt[145]=kt[25]=0,Vt[145]=Vt[25]=1,Bt[145]=Bt[25]=1,bt[145]=bt[25]=-1,wt[145]=wt[25]=0,Et[145]=Et[25]=0,Ot[70]=Ot[100]=0,Ct[70]=Ct[100]=1,Mt[70]=Mt[100]=0,Nt[70]=Nt[100]=-1,Dt[70]=Dt[100]=0,At[70]=At[100]=1,Rt[70]=Rt[100]=0,Ft[70]=Ft[100]=-1,Lt[70]=Lt[100]=1,vt[70]=vt[100]=1,mt[70]=mt[100]=0,_t[70]=_t[100]=0,Ot[101]=Ot[69]=0,Ct[101]=Ct[69]=1,Mt[101]=Mt[69]=0,vt[101]=vt[69]=1,mt[101]=mt[69]=0,_t[101]=_t[69]=0,kt[149]=kt[21]=0,Vt[149]=Vt[21]=1,Bt[149]=Bt[21]=1,bt[149]=bt[21]=-1,wt[149]=wt[21]=0,Et[149]=Et[21]=0,Nt[86]=Nt[84]=-1,Dt[86]=Dt[84]=0,At[86]=At[84]=1,Rt[86]=Rt[84]=0,Ft[86]=Ft[84]=-1,Lt[86]=Lt[84]=1,xt[89]=xt[81]=0,Pt[89]=Pt[81]=-1,St[89]=St[81]=0,It[89]=It[81]=1,Tt[89]=Tt[81]=0,jt[89]=jt[81]=1,xt[96]=xt[74]=0,Pt[96]=Pt[74]=1,St[96]=St[74]=0,Ot[96]=Ot[74]=-1,Ct[96]=Ct[74]=0,Mt[96]=Mt[74]=1,Rt[96]=Rt[74]=1,Ft[96]=Ft[74]=0,Lt[96]=Lt[74]=0,vt[96]=vt[74]=1,mt[96]=mt[74]=0,_t[96]=_t[74]=1,xt[24]=xt[146]=0,Pt[24]=Pt[146]=-1,St[24]=St[146]=1,Nt[24]=Nt[146]=1,Dt[24]=Dt[146]=0,At[24]=At[146]=1,It[24]=It[146]=0,Tt[24]=Tt[146]=1,jt[24]=jt[146]=1,bt[24]=bt[146]=0,wt[24]=wt[146]=-1,Et[24]=Et[146]=0,Ot[6]=Ot[164]=-1,Ct[6]=Ct[164]=0,Mt[6]=Mt[164]=1,Nt[6]=Nt[164]=-1,Dt[6]=Dt[164]=0,At[6]=At[164]=0,kt[6]=kt[164]=0,Vt[6]=Vt[164]=-1,Bt[6]=Bt[164]=1,Rt[6]=Rt[164]=1,Ft[6]=Ft[164]=0,Lt[6]=Lt[164]=0,It[129]=It[41]=0,Tt[129]=Tt[41]=1,jt[129]=jt[41]=1,kt[129]=kt[41]=0,Vt[129]=Vt[41]=1,Bt[129]=Bt[41]=0,vt[129]=vt[41]=-1,mt[129]=mt[41]=0,_t[129]=_t[41]=0,bt[129]=bt[41]=0,wt[129]=wt[41]=-1,Et[129]=Et[41]=0,Nt[66]=Nt[104]=0,Dt[66]=Dt[104]=1,At[66]=At[104]=0,It[66]=It[104]=-1,Tt[66]=Tt[104]=0,jt[66]=jt[104]=1,Rt[66]=Rt[104]=0,Ft[66]=Ft[104]=-1,Lt[66]=Lt[104]=0,vt[66]=vt[104]=0,mt[66]=mt[104]=-1,_t[66]=_t[104]=1,xt[144]=xt[26]=-1,Pt[144]=Pt[26]=0,St[144]=St[26]=0,kt[144]=kt[26]=1,Vt[144]=Vt[26]=0,Bt[144]=Bt[26]=1,Rt[144]=Rt[26]=0,Ft[144]=Ft[26]=1,Lt[144]=Lt[26]=1,bt[144]=bt[26]=-1,wt[144]=wt[26]=0,Et[144]=Et[26]=1,Ot[36]=Ot[134]=0,Ct[36]=Ct[134]=1,Mt[36]=Mt[134]=1,Nt[36]=Nt[134]=0,Dt[36]=Dt[134]=1,At[36]=At[134]=0,vt[36]=vt[134]=0,mt[36]=mt[134]=-1,_t[36]=_t[134]=1,bt[36]=bt[134]=1,wt[36]=wt[134]=0,Et[36]=Et[134]=0,xt[9]=xt[161]=-1,Pt[9]=Pt[161]=0,St[9]=St[161]=0,Ot[9]=Ot[161]=0,Ct[9]=Ct[161]=-1,Mt[9]=Mt[161]=0,It[9]=It[161]=1,Tt[9]=Tt[161]=0,jt[9]=jt[161]=0,kt[9]=kt[161]=1,Vt[9]=Vt[161]=0,Bt[9]=Bt[161]=1,xt[136]=0,Pt[136]=1,St[136]=1,Ot[136]=0,Ct[136]=1,Mt[136]=0,Nt[136]=-1,Dt[136]=0,At[136]=1,It[136]=-1,Tt[136]=0,jt[136]=0,kt[136]=0,Vt[136]=-1,Bt[136]=0,Rt[136]=0,Ft[136]=-1,Lt[136]=1,vt[136]=1,mt[136]=0,_t[136]=0,bt[136]=1,wt[136]=0,Et[136]=1,xt[34]=0,Pt[34]=-1,St[34]=0,Ot[34]=0,Ct[34]=-1,Mt[34]=1,Nt[34]=1,Dt[34]=0,At[34]=0,It[34]=1,Tt[34]=0,jt[34]=1,kt[34]=0,Vt[34]=1,Bt[34]=1,Rt[34]=0,Ft[34]=1,Lt[34]=0,vt[34]=-1,mt[34]=0,_t[34]=1,bt[34]=-1,wt[34]=0,Et[34]=0,xt[35]=0,Pt[35]=1,St[35]=1,Ot[35]=0,Ct[35]=-1,Mt[35]=1,Nt[35]=1,Dt[35]=0,At[35]=0,It[35]=-1,Tt[35]=0,jt[35]=0,kt[35]=0,Vt[35]=-1,Bt[35]=0,Rt[35]=0,Ft[35]=1,Lt[35]=0,vt[35]=-1,mt[35]=0,_t[35]=1,bt[35]=1,wt[35]=0,Et[35]=1,xt[153]=0,Pt[153]=1,St[153]=1,It[153]=-1,Tt[153]=0,jt[153]=0,kt[153]=0,Vt[153]=-1,Bt[153]=0,bt[153]=1,wt[153]=0,Et[153]=1,Ot[102]=0,Ct[102]=-1,Mt[102]=1,Nt[102]=1,Dt[102]=0,At[102]=0,Rt[102]=0,Ft[102]=1,Lt[102]=0,vt[102]=-1,mt[102]=0,_t[102]=1,xt[155]=0,Pt[155]=-1,St[155]=0,It[155]=1,Tt[155]=0,jt[155]=1,kt[155]=0,Vt[155]=1,Bt[155]=1,bt[155]=-1,wt[155]=0,Et[155]=0,Ot[103]=0,Ct[103]=1,Mt[103]=0,Nt[103]=-1,Dt[103]=0,At[103]=1,Rt[103]=0,Ft[103]=-1,Lt[103]=1,vt[103]=1,mt[103]=0,_t[103]=0,xt[152]=0,Pt[152]=1,St[152]=1,Nt[152]=-1,Dt[152]=0,At[152]=1,It[152]=-1,Tt[152]=0,jt[152]=0,kt[152]=0,Vt[152]=-1,Bt[152]=0,Rt[152]=0,Ft[152]=-1,Lt[152]=1,bt[152]=1,wt[152]=0,Et[152]=1,xt[156]=0,Pt[156]=-1,St[156]=1,Nt[156]=1,Dt[156]=0,At[156]=1,It[156]=-1,Tt[156]=0,jt[156]=0,kt[156]=0,Vt[156]=-1,Bt[156]=0,Rt[156]=0,Ft[156]=1,Lt[156]=1,bt[156]=-1,wt[156]=0,Et[156]=1,xt[137]=0,Pt[137]=1,St[137]=1,Ot[137]=0,Ct[137]=1,Mt[137]=0,It[137]=-1,Tt[137]=0,jt[137]=0,kt[137]=0,Vt[137]=-1,Bt[137]=0,vt[137]=1,mt[137]=0,_t[137]=0,bt[137]=1,wt[137]=0,Et[137]=1,xt[139]=0,Pt[139]=1,St[139]=1,Ot[139]=0,Ct[139]=-1,Mt[139]=0,It[139]=1,Tt[139]=0,jt[139]=0,kt[139]=0,Vt[139]=1,Bt[139]=0,vt[139]=-1,mt[139]=0,_t[139]=0,bt[139]=1,wt[139]=0,Et[139]=1,xt[98]=0,Pt[98]=-1,St[98]=0,Ot[98]=0,Ct[98]=-1,Mt[98]=1,Nt[98]=1,Dt[98]=0,At[98]=0,It[98]=1,Tt[98]=0,jt[98]=1,Rt[98]=0,Ft[98]=1,Lt[98]=0,vt[98]=-1,mt[98]=0,_t[98]=1,xt[99]=0,Pt[99]=1,St[99]=0,Ot[99]=0,Ct[99]=-1,Mt[99]=1,Nt[99]=1,Dt[99]=0,At[99]=0,It[99]=-1,Tt[99]=0,jt[99]=1,Rt[99]=0,Ft[99]=-1,Lt[99]=0,vt[99]=1,mt[99]=0,_t[99]=1,Ot[38]=0,Ct[38]=-1,Mt[38]=1,Nt[38]=1,Dt[38]=0,At[38]=0,kt[38]=0,Vt[38]=1,Bt[38]=1,Rt[38]=0,Ft[38]=1,Lt[38]=0,vt[38]=-1,mt[38]=0,_t[38]=1,bt[38]=-1,wt[38]=0,Et[38]=0,Ot[39]=0,Ct[39]=1,Mt[39]=1,Nt[39]=-1,Dt[39]=0,At[39]=0,kt[39]=0,Vt[39]=-1,Bt[39]=1,Rt[39]=0,Ft[39]=1,Lt[39]=0,vt[39]=-1,mt[39]=0,_t[39]=1,bt[39]=1,wt[39]=0,Et[39]=0;var zt=function(t){return[[t.bottomleft,0],[0,0],[0,t.leftbottom]]},Ut=function(t){return[[1,t.rightbottom],[1,0],[t.bottomright,0]]},Gt=function(t){return[[t.topright,1],[1,1],[1,t.righttop]]},Wt=function(t){return[[0,t.lefttop],[0,1],[t.topleft,1]]},qt=function(t){return[[t.bottomright,0],[t.bottomleft,0],[0,t.leftbottom],[0,t.lefttop]]},Xt=function(t){return[[t.bottomright,0],[t.bottomleft,0],[1,t.righttop],[1,t.rightbottom]]},Ht=function(t){return[[1,t.righttop],[1,t.rightbottom],[t.topleft,1],[t.topright,1]]},Yt=function(t){return[[0,t.leftbottom],[0,t.lefttop],[t.topleft,1],[t.topright,1]]},Jt=[],$t=[],Zt=[],Qt=[],Kt=[],te=[],ee=[],ne=[];Qt[1]=Kt[1]=18,Qt[169]=Kt[169]=18,Zt[4]=$t[4]=12,Zt[166]=$t[166]=12,Jt[16]=ne[16]=4,Jt[154]=ne[154]=4,te[64]=ee[64]=22,te[106]=ee[106]=22,Zt[2]=te[2]=17,Qt[2]=Kt[2]=18,Zt[168]=te[168]=17,Qt[168]=Kt[168]=18,Jt[8]=Qt[8]=9,$t[8]=Zt[8]=12,Jt[162]=Qt[162]=9,$t[162]=Zt[162]=12,Jt[32]=ne[32]=4,$t[32]=ee[32]=1,Jt[138]=ne[138]=4,$t[138]=ee[138]=1,Kt[128]=ne[128]=21,te[128]=ee[128]=22,Kt[42]=ne[42]=21,te[42]=ee[42]=22,$t[5]=Kt[5]=14,$t[165]=Kt[165]=14,Zt[20]=ne[20]=6,Zt[150]=ne[150]=6,Jt[80]=te[80]=11,Jt[90]=te[90]=11,Qt[65]=ee[65]=3,Qt[105]=ee[105]=3,Jt[160]=te[160]=11,$t[160]=Kt[160]=14,Jt[10]=te[10]=11,$t[10]=Kt[10]=14,Zt[130]=ne[130]=6,Qt[130]=ee[130]=3,Zt[40]=ne[40]=6,Qt[40]=ee[40]=3,$t[101]=ee[101]=1,$t[69]=ee[69]=1,Kt[149]=ne[149]=21,Kt[21]=ne[21]=21,Zt[86]=te[86]=17,Zt[84]=te[84]=17,Jt[89]=Qt[89]=9,Jt[81]=Qt[81]=9,Jt[96]=ee[96]=0,$t[96]=te[96]=15,Jt[74]=ee[74]=0,$t[74]=te[74]=15,Jt[24]=Zt[24]=8,Qt[24]=ne[24]=7,Jt[146]=Zt[146]=8,Qt[146]=ne[146]=7,$t[6]=te[6]=15,Zt[6]=Kt[6]=16,$t[164]=te[164]=15,Zt[164]=Kt[164]=16,Qt[129]=ne[129]=7,Kt[129]=ee[129]=20,Qt[41]=ne[41]=7,Kt[41]=ee[41]=20,Zt[66]=ee[66]=2,Qt[66]=te[66]=19,Zt[104]=ee[104]=2,Qt[104]=te[104]=19,Jt[144]=Kt[144]=10,te[144]=ne[144]=23,Jt[26]=Kt[26]=10,te[26]=ne[26]=23,$t[36]=ne[36]=5,Zt[36]=ee[36]=2,$t[134]=ne[134]=5,Zt[134]=ee[134]=2,Jt[9]=Kt[9]=10,$t[9]=Qt[9]=13,Jt[161]=Kt[161]=10,$t[161]=Qt[161]=13,$t[37]=ne[37]=5,Kt[37]=ee[37]=20,$t[133]=ne[133]=5,Kt[133]=ee[133]=20,Zt[148]=Kt[148]=16,te[148]=ne[148]=23,Zt[22]=Kt[22]=16,te[22]=ne[22]=23,Jt[82]=Zt[82]=8,Qt[82]=te[82]=19,Jt[88]=Zt[88]=8,Qt[88]=te[88]=19,Jt[73]=ee[73]=0,$t[73]=Qt[73]=13,Jt[97]=ee[97]=0,$t[97]=Qt[97]=13,Jt[145]=Qt[145]=9,Kt[145]=ne[145]=21,Jt[25]=Qt[25]=9,Kt[25]=ne[25]=21,$t[70]=ee[70]=1,Zt[70]=te[70]=17,$t[100]=ee[100]=1,Zt[100]=te[100]=17,Jt[34]=Qt[34]=9,$t[34]=Zt[34]=12,Kt[34]=ne[34]=21,te[34]=ee[34]=22,Jt[136]=ne[136]=4,$t[136]=ee[136]=1,Zt[136]=te[136]=17,Qt[136]=Kt[136]=18,Jt[35]=ne[35]=4,$t[35]=Zt[35]=12,Qt[35]=Kt[35]=18,te[35]=ee[35]=22,Jt[153]=ne[153]=4,Qt[153]=Kt[153]=18,$t[102]=Zt[102]=12,te[102]=ee[102]=22,Jt[155]=Qt[155]=9,Kt[155]=ne[155]=23,$t[103]=ee[103]=1,Zt[103]=te[103]=17,Jt[152]=ne[152]=4,Zt[152]=te[152]=17,Qt[152]=Kt[152]=18,Jt[156]=Zt[156]=8,Qt[156]=Kt[156]=18,te[156]=ne[156]=23,Jt[137]=ne[137]=4,$t[137]=ee[137]=1,Qt[137]=Kt[137]=18,Jt[139]=ne[139]=4,$t[139]=Qt[139]=13,Kt[139]=ee[139]=20,Jt[98]=Qt[98]=9,$t[98]=Zt[98]=12,te[98]=ee[98]=22,Jt[99]=ee[99]=0,$t[99]=Zt[99]=12,Qt[99]=te[99]=19,$t[38]=Zt[38]=12,Kt[38]=ne[38]=21,te[38]=ee[38]=22,$t[39]=ne[39]=5,Zt[39]=Kt[39]=16,te[39]=ee[39]=22;var re=[];function ie(t,e,n){var r,i=e[0]-t[0],o=e[1]-t[1],s=n[0]-e[0];return((r=i*(n[1]-e[1])-s*o)>0)-(r<0)||+r}function oe(t,e){return e.geometry.coordinates[0].every((function(e){return D(h(e),t)}))}re[1]=re[169]=zt,re[4]=re[166]=Ut,re[16]=re[154]=Gt,re[64]=re[106]=Wt,re[168]=re[2]=qt,re[162]=re[8]=Xt,re[138]=re[32]=Ht,re[42]=re[128]=Yt,re[5]=re[165]=function(t){return[[0,0],[0,t.leftbottom],[1,t.rightbottom],[1,0]]},re[20]=re[150]=function(t){return[[1,0],[t.bottomright,0],[t.topright,1],[1,1]]},re[80]=re[90]=function(t){return[[1,1],[1,t.righttop],[0,t.lefttop],[0,1]]},re[65]=re[105]=function(t){return[[t.bottomleft,0],[0,0],[0,1],[t.topleft,1]]},re[160]=re[10]=function(t){return[[1,t.righttop],[1,t.rightbottom],[0,t.leftbottom],[0,t.lefttop]]},re[130]=re[40]=function(t){return[[t.topleft,1],[t.topright,1],[t.bottomright,0],[t.bottomleft,0]]},re[85]=function(){return[[0,0],[0,1],[1,1],[1,0]]},re[101]=re[69]=function(t){return[[1,t.rightbottom],[1,0],[0,0],[0,1],[t.topleft,1]]},re[149]=re[21]=function(t){return[[t.topright,1],[1,1],[1,0],[0,0],[0,t.leftbottom]]},re[86]=re[84]=function(t){return[[1,0],[t.bottomright,0],[0,t.lefttop],[0,1],[1,1]]},re[89]=re[81]=function(t){return[[1,1],[1,t.righttop],[t.bottomleft,0],[0,0],[0,1]]},re[96]=re[74]=function(t){return[[1,t.righttop],[1,t.rightbottom],[0,t.lefttop],[0,1],[t.topleft,1]]},re[24]=re[146]=function(t){return[[1,1],[1,t.righttop],[t.bottomright,0],[t.bottomleft,0],[t.topright,1]]},re[6]=re[164]=function(t){return[[1,t.rightbottom],[1,0],[t.bottomright,0],[0,t.leftbottom],[0,t.lefttop]]},re[129]=re[41]=function(t){return[[t.topright,1],[t.bottomleft,0],[0,0],[0,t.leftbottom],[t.topleft,1]]},re[66]=re[104]=function(t){return[[t.bottomright,0],[t.bottomleft,0],[0,t.lefttop],[0,1],[t.topleft,1]]},re[144]=re[26]=function(t){return[[1,1],[1,t.righttop],[0,t.leftbottom],[0,t.lefttop],[t.topright,1]]},re[36]=re[134]=function(t){return[[1,t.rightbottom],[1,0],[t.bottomright,0],[t.topleft,1],[t.topright,1]]},re[9]=re[161]=function(t){return[[1,t.righttop],[1,t.rightbottom],[t.bottomleft,0],[0,0],[0,t.leftbottom]]},re[37]=re[133]=function(t){return[[1,t.rightbottom],[1,0],[0,0],[0,t.leftbottom],[t.topleft,1],[t.topright,1]]},re[148]=re[22]=function(t){return[[1,1],[1,0],[t.bottomright,0],[0,t.leftbottom],[0,t.lefttop],[t.topright,1]]},re[82]=re[88]=function(t){return[[1,1],[1,t.righttop],[t.bottomright,0],[t.bottomleft,0],[0,t.lefttop],[0,1]]},re[73]=re[97]=function(t){return[[1,t.righttop],[1,t.rightbottom],[t.bottomleft,0],[0,0],[0,1],[t.topleft,1]]},re[145]=re[25]=function(t){return[[1,1],[1,t.righttop],[t.bottomleft,0],[0,0],[0,t.leftbottom],[t.topright,1]]},re[70]=re[100]=function(t){return[[1,t.rightbottom],[1,0],[t.bottomright,0],[0,t.lefttop],[0,1],[t.topleft,1]]},re[34]=function(t){return[Yt(t),Xt(t)]},re[35]=function(t){return[[1,t.righttop],[1,t.rightbottom],[t.bottomright,0],[t.bottomleft,0],[0,t.leftbottom],[0,t.lefttop],[t.topleft,1],[t.topright,1]]},re[136]=function(t){return[Ht(t),qt(t)]},re[153]=function(t){return[Gt(t),zt(t)]},re[102]=function(t){return[Ut(t),Wt(t)]},re[155]=function(t){return[[1,1],[1,t.righttop],[t.bottomleft,0],[0,0],[0,t.leftbottom],[t.topright,1]]},re[103]=function(t){return[[1,t.rightbottom],[1,0],[t.bottomright,0],[0,t.lefttop],[0,1],[t.topleft,1]]},re[152]=function(t){return[Gt(t),qt(t)]},re[156]=function(t){return[[1,1],[1,t.righttop],[t.bottomright,0],[t.bottomleft,0],[0,t.leftbottom],[0,t.lefttop],[t.topright,1]]},re[137]=function(t){return[Ht(t),zt(t)]},re[139]=function(t){return[[1,t.righttop],[1,t.rightbottom],[t.bottomleft,0],[0,0],[0,t.leftbottom],[t.topleft,1],[t.topright,1]]},re[98]=function(t){return[Xt(t),Wt(t)]},re[99]=function(t){return[[1,t.righttop],[1,t.rightbottom],[t.bottomright,0],[t.bottomleft,0],[0,t.lefttop],[0,1],[t.topleft,1]]},re[38]=function(t){return[Ut(t),Yt(t)]},re[39]=function(t){return[[1,t.rightbottom],[1,0],[t.bottomright,0],[0,t.leftbottom],[0,t.lefttop],[t.topleft,1],[t.topright,1]]};const se=function(){function t(e){this.id=t.buildId(e),this.coordinates=e,this.innerEdges=[],this.outerEdges=[],this.outerEdgesSorted=!1}return t.buildId=function(t){return t.join(",")},t.prototype.removeInnerEdge=function(t){this.innerEdges=this.innerEdges.filter((function(e){return e.from.id!==t.from.id}))},t.prototype.removeOuterEdge=function(t){this.outerEdges=this.outerEdges.filter((function(e){return e.to.id!==t.to.id}))},t.prototype.addOuterEdge=function(t){this.outerEdges.push(t),this.outerEdgesSorted=!1},t.prototype.sortOuterEdges=function(){var t=this;this.outerEdgesSorted||(this.outerEdges.sort((function(e,n){var r=e.to,i=n.to;if(r.coordinates[0]-t.coordinates[0]>=0&&i.coordinates[0]-t.coordinates[0]<0)return 1;if(r.coordinates[0]-t.coordinates[0]<0&&i.coordinates[0]-t.coordinates[0]>=0)return-1;if(r.coordinates[0]-t.coordinates[0]==0&&i.coordinates[0]-t.coordinates[0]==0)return r.coordinates[1]-t.coordinates[1]>=0||i.coordinates[1]-t.coordinates[1]>=0?r.coordinates[1]-i.coordinates[1]:i.coordinates[1]-r.coordinates[1];var o=ie(t.coordinates,r.coordinates,i.coordinates);return o<0?1:o>0?-1:Math.pow(r.coordinates[0]-t.coordinates[0],2)+Math.pow(r.coordinates[1]-t.coordinates[1],2)-(Math.pow(i.coordinates[0]-t.coordinates[0],2)+Math.pow(i.coordinates[1]-t.coordinates[1],2))})),this.outerEdgesSorted=!0)},t.prototype.getOuterEdges=function(){return this.sortOuterEdges(),this.outerEdges},t.prototype.getOuterEdge=function(t){return this.sortOuterEdges(),this.outerEdges[t]},t.prototype.addInnerEdge=function(t){this.innerEdges.push(t)},t}(),ae=function(){function t(t,e){this.from=t,this.to=e,this.next=void 0,this.label=void 0,this.symetric=void 0,this.ring=void 0,this.from.addOuterEdge(this),this.to.addInnerEdge(this)}return t.prototype.getSymetric=function(){return this.symetric||(this.symetric=new t(this.to,this.from),this.symetric.symetric=this),this.symetric},t.prototype.deleteEdge=function(){this.from.removeOuterEdge(this),this.to.removeInnerEdge(this)},t.prototype.isEqual=function(t){return this.from.id===t.from.id&&this.to.id===t.to.id},t.prototype.toString=function(){return"Edge { "+this.from.id+" -> "+this.to.id+" }"},t.prototype.toLineString=function(){return f([this.from.coordinates,this.to.coordinates])},t.prototype.compareTo=function(t){return ie(t.from.coordinates,t.to.coordinates,this.to.coordinates)},t}();var ue=function(){function t(){this.edges=[],this.polygon=void 0,this.envelope=void 0}return t.prototype.push=function(t){this.edges.push(t),this.polygon=this.envelope=void 0},t.prototype.get=function(t){return this.edges[t]},Object.defineProperty(t.prototype,"length",{get:function(){return this.edges.length},enumerable:!0,configurable:!0}),t.prototype.forEach=function(t){this.edges.forEach(t)},t.prototype.map=function(t){return this.edges.map(t)},t.prototype.some=function(t){return this.edges.some(t)},t.prototype.isValid=function(){return!0},t.prototype.isHole=function(){var t=this,e=this.edges.reduce((function(e,n,r){return n.from.coordinates[1]>t.edges[e].from.coordinates[1]&&(e=r),e}),0),n=(0===e?this.length:e)-1,r=(e+1)%this.length,i=ie(this.edges[n].from.coordinates,this.edges[e].from.coordinates,this.edges[r].from.coordinates);return 0===i?this.edges[n].from.coordinates[0]>this.edges[r].from.coordinates[0]:i>0},t.prototype.toMultiPoint=function(){return t=this.edges.map((function(t){return t.from.coordinates})),void 0===n&&(n={}),l({type:"MultiPoint",coordinates:t},e,n);var t,e,n},t.prototype.toPolygon=function(){if(this.polygon)return this.polygon;var t=this.edges.map((function(t){return t.from.coordinates}));return t.push(this.edges[0].from.coordinates),this.polygon=p([t])},t.prototype.getEnvelope=function(){return this.envelope?this.envelope:this.envelope=(t=this.toPolygon(),function(t,e){void 0===e&&(e={});var n=Number(t[0]),r=Number(t[1]),i=Number(t[2]),o=Number(t[3]);if(6===t.length)throw new Error("@turf/bbox-polygon does not support BBox with 6 positions");var s=[n,r];return p([[s,[i,r],[i,o],[n,o],s]],e.properties,{bbox:t,id:e.id})}(C(t)));var t},t.findEdgeRingContaining=function(t,e){var n,r,i=t.getEnvelope();return e.forEach((function(e){var o,s,a,u,c,l,p=e.getEnvelope();if(r&&(n=r.getEnvelope()),s=i,a=(o=p).geometry.coordinates[0].map((function(t){return t[0]})),u=o.geometry.coordinates[0].map((function(t){return t[1]})),c=s.geometry.coordinates[0].map((function(t){return t[0]})),l=s.geometry.coordinates[0].map((function(t){return t[1]})),(Math.max.apply(null,a)!==Math.max.apply(null,c)||Math.max.apply(null,u)!==Math.max.apply(null,l)||Math.min.apply(null,a)!==Math.min.apply(null,c)||Math.min.apply(null,u)!==Math.min.apply(null,l))&&oe(p,i)){for(var f=t.map((function(t){return t.from.coordinates})),d=void 0,g=function(t){e.some((function(e){return n=t,r=e.from.coordinates,n[0]===r[0]&&n[1]===r[1];var n,r}))||(d=t)},y=0,v=f;y<v.length;y++)g(v[y]);d&&e.inside(h(d))&&(r&&!oe(n,p)||(r=e))}})),r},t.prototype.inside=function(t){return D(t,this.toPolygon())},t}();const ce=ue;function le(t,e){return!(t[0]>e[0]||t[2]<e[2]||t[1]>e[1]||t[3]<e[3])}function he(t,e){return t[0]===e[0]&&t[1]===e[1]}function pe(t){for(var e=t,n=[];e.parent;)n.unshift(e),e=e.parent;return n}!function(){function t(){this.edges=[],this.nodes={}}t.fromGeoJson=function(e){!function(t){if(!t)throw new Error("No geojson passed");if("FeatureCollection"!==t.type&&"GeometryCollection"!==t.type&&"MultiLineString"!==t.type&&"LineString"!==t.type&&"Feature"!==t.type)throw new Error("Invalid input type '"+t.type+"'. Geojson must be FeatureCollection, GeometryCollection, LineString, MultiLineString or Feature")}(e);var n=new t;return S(e,(function(t){var e,r,i;T(t,"LineString","Graph::fromGeoJson"),e=function(t,e){if(t){var r=n.getNode(t),i=n.getNode(e);n.addEdge(r,i)}return e},i=r,E(t,(function(t,n,r,o,s){i=0===n?t:e(i,t)}),undefined)})),n},t.prototype.getNode=function(t){var e=se.buildId(t),n=this.nodes[e];return n||(n=this.nodes[e]=new se(t)),n},t.prototype.addEdge=function(t,e){var n=new ae(t,e),r=n.getSymetric();this.edges.push(n),this.edges.push(r)},t.prototype.deleteDangles=function(){var t=this;Object.keys(this.nodes).map((function(e){return t.nodes[e]})).forEach((function(e){return t._removeIfDangle(e)}))},t.prototype._removeIfDangle=function(t){var e=this;if(t.innerEdges.length<=1){var n=t.getOuterEdges().map((function(t){return t.to}));this.removeNode(t),n.forEach((function(t){return e._removeIfDangle(t)}))}},t.prototype.deleteCutEdges=function(){var t=this;this._computeNextCWEdges(),this._findLabeledEdgeRings(),this.edges.forEach((function(e){e.label===e.symetric.label&&(t.removeEdge(e.symetric),t.removeEdge(e))}))},t.prototype._computeNextCWEdges=function(t){var e=this;void 0===t?Object.keys(this.nodes).forEach((function(t){return e._computeNextCWEdges(e.nodes[t])})):t.getOuterEdges().forEach((function(e,n){t.getOuterEdge((0===n?t.getOuterEdges().length:n)-1).symetric.next=e}))},t.prototype._computeNextCCWEdges=function(t,e){for(var n,r,i=t.getOuterEdges(),o=i.length-1;o>=0;--o){var s=i[o],a=s.symetric,u=void 0,c=void 0;s.label===e&&(u=s),a.label===e&&(c=a),u&&c&&(c&&(r=c),u&&(r&&(r.next=u,r=void 0),n||(n=u)))}r&&(r.next=n)},t.prototype._findLabeledEdgeRings=function(){var t=[],e=0;return this.edges.forEach((function(n){if(!(n.label>=0)){t.push(n);var r=n;do{r.label=e,r=r.next}while(!n.isEqual(r));e++}})),t},t.prototype.getEdgeRings=function(){var t=this;this._computeNextCWEdges(),this.edges.forEach((function(t){t.label=void 0})),this._findLabeledEdgeRings().forEach((function(e){t._findIntersectionNodes(e).forEach((function(n){t._computeNextCCWEdges(n,e.label)}))}));var e=[];return this.edges.forEach((function(n){n.ring||e.push(t._findEdgeRing(n))})),e},t.prototype._findIntersectionNodes=function(t){var e=[],n=t,r=function(){var r=0;n.from.getOuterEdges().forEach((function(e){e.label===t.label&&++r})),r>1&&e.push(n.from),n=n.next};do{r()}while(!t.isEqual(n));return e},t.prototype._findEdgeRing=function(t){var e=t,n=new ce;do{n.push(e),e.ring=n,e=e.next}while(!t.isEqual(e));return n},t.prototype.removeNode=function(t){var e=this;t.getOuterEdges().forEach((function(t){return e.removeEdge(t)})),t.innerEdges.forEach((function(t){return e.removeEdge(t)})),delete this.nodes[t.id]},t.prototype.removeEdge=function(t){this.edges=this.edges.filter((function(e){return!e.isEqual(t)})),t.deleteEdge()}}(),n(543),n(3412),n(8121);var fe={search:function(t,e,n,r){t.cleanDirty();var i=(r=r||{}).heuristic||fe.heuristics.manhattan,o=r.closest||!1,s=new ye((function(t){return t.f})),a=e;for(e.h=i(e,n),s.push(e);s.size()>0;){var u=s.pop();if(u===n)return pe(u);u.closed=!0;for(var c=t.neighbors(u),l=0,h=c.length;l<h;++l){var p=c[l];if(!p.closed&&!p.isWall()){var f=u.g+p.getCost(u),d=p.visited;(!d||f<p.g)&&(p.visited=!0,p.parent=u,p.h=p.h||i(p,n),p.g=f,p.f=p.g+p.h,t.markDirty(p),o&&(p.h<a.h||p.h===a.h&&p.g<a.g)&&(a=p),d?s.rescoreElement(p):s.push(p))}}}return o?pe(a):[]},heuristics:{manhattan:function(t,e){return Math.abs(e.x-t.x)+Math.abs(e.y-t.y)},diagonal:function(t,e){var n=Math.sqrt(2),r=Math.abs(e.x-t.x),i=Math.abs(e.y-t.y);return 1*(r+i)+(n-2)*Math.min(r,i)}},cleanNode:function(t){t.f=0,t.g=0,t.h=0,t.visited=!1,t.closed=!1,t.parent=null}};function de(t,e){e=e||{},this.nodes=[],this.diagonal=!!e.diagonal,this.grid=[];for(var n=0;n<t.length;n++){this.grid[n]=[];for(var r=0,i=t[n];r<i.length;r++){var o=new ge(n,r,i[r]);this.grid[n][r]=o,this.nodes.push(o)}}this.init()}function ge(t,e,n){this.x=t,this.y=e,this.weight=n}function ye(t){this.content=[],this.scoreFunction=t}function ve(){this._=null}function me(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function _e(t,e){var n=e,r=e.R,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function be(t,e){var n=e,r=e.L,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function we(t){for(;t.L;)t=t.L;return t}de.prototype.init=function(){this.dirtyNodes=[];for(var t=0;t<this.nodes.length;t++)fe.cleanNode(this.nodes[t])},de.prototype.cleanDirty=function(){for(var t=0;t<this.dirtyNodes.length;t++)fe.cleanNode(this.dirtyNodes[t]);this.dirtyNodes=[]},de.prototype.markDirty=function(t){this.dirtyNodes.push(t)},de.prototype.neighbors=function(t){var e=[],n=t.x,r=t.y,i=this.grid;return i[n-1]&&i[n-1][r]&&e.push(i[n-1][r]),i[n+1]&&i[n+1][r]&&e.push(i[n+1][r]),i[n]&&i[n][r-1]&&e.push(i[n][r-1]),i[n]&&i[n][r+1]&&e.push(i[n][r+1]),this.diagonal&&(i[n-1]&&i[n-1][r-1]&&e.push(i[n-1][r-1]),i[n+1]&&i[n+1][r-1]&&e.push(i[n+1][r-1]),i[n-1]&&i[n-1][r+1]&&e.push(i[n-1][r+1]),i[n+1]&&i[n+1][r+1]&&e.push(i[n+1][r+1])),e},de.prototype.toString=function(){for(var t,e,n,r,i=[],o=this.grid,s=0,a=o.length;s<a;s++){for(t=[],n=0,r=(e=o[s]).length;n<r;n++)t.push(e[n].weight);i.push(t.join(" "))}return i.join("\n")},ge.prototype.toString=function(){return"["+this.x+" "+this.y+"]"},ge.prototype.getCost=function(t){return t&&t.x!==this.x&&t.y!==this.y?1.41421*this.weight:this.weight},ge.prototype.isWall=function(){return 0===this.weight},ye.prototype={push:function(t){this.content.push(t),this.sinkDown(this.content.length-1)},pop:function(){var t=this.content[0],e=this.content.pop();return this.content.length>0&&(this.content[0]=e,this.bubbleUp(0)),t},remove:function(t){var e=this.content.indexOf(t),n=this.content.pop();e!==this.content.length-1&&(this.content[e]=n,this.scoreFunction(n)<this.scoreFunction(t)?this.sinkDown(e):this.bubbleUp(e))},size:function(){return this.content.length},rescoreElement:function(t){this.sinkDown(this.content.indexOf(t))},sinkDown:function(t){for(var e=this.content[t];t>0;){var n=(t+1>>1)-1,r=this.content[n];if(!(this.scoreFunction(e)<this.scoreFunction(r)))break;this.content[n]=e,this.content[t]=r,t=n}},bubbleUp:function(t){for(var e=this.content.length,n=this.content[t],r=this.scoreFunction(n);;){var i,o=t+1<<1,s=o-1,a=null;if(s<e){var u=this.content[s];(i=this.scoreFunction(u))<r&&(a=s)}if(o<e){var c=this.content[o];this.scoreFunction(c)<(null===a?r:i)&&(a=o)}if(null===a)break;this.content[t]=this.content[a],this.content[a]=n,t=a}}},ve.prototype={constructor:ve,insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=we(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(_e(this,n),n=(t=n).U),n.C=!1,r.C=!0,be(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(be(this,n),n=(t=n).U),n.C=!1,r.C=!0,_e(this,r)),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,i=t.U,o=t.L,s=t.R;if(n=o?s?we(s):o:s,i?i.L===t?i.L=n:i.R=n:this._=n,o&&s?(r=n.C,n.C=t.C,n.L=o,o.U=n,n!==s?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=s,s.U=n):(n.U=i,i=n,t=n.R)):(r=t.C,t=n),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&&(e.C=!1,i.C=!0,_e(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,be(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,_e(this,i),t=this._;break}}else if((e=i.L).C&&(e.C=!1,i.C=!0,be(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,_e(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,be(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};const Ee=ve;function xe(t,e,n,r){var i=[null,null],o=He.push(i)-1;return i.left=t,i.right=e,n&&Se(i,t,e,n),r&&Se(i,e,t,r),qe[t.index].halfedges.push(o),qe[e.index].halfedges.push(o),i}function Pe(t,e,n){var r=[e,n];return r.left=t,r}function Se(t,e,n,r){t[0]||t[1]?t.left===n?t[1]=r:t[0]=r:(t[0]=r,t.left=e,t.right=n)}function Oe(t,e,n,r,i){var o,s=t[0],a=t[1],u=s[0],c=s[1],l=0,h=1,p=a[0]-u,f=a[1]-c;if(o=e-u,p||!(o>0)){if(o/=p,p<0){if(o<l)return;o<h&&(h=o)}else if(p>0){if(o>h)return;o>l&&(l=o)}if(o=r-u,p||!(o<0)){if(o/=p,p<0){if(o>h)return;o>l&&(l=o)}else if(p>0){if(o<l)return;o<h&&(h=o)}if(o=n-c,f||!(o>0)){if(o/=f,f<0){if(o<l)return;o<h&&(h=o)}else if(f>0){if(o>h)return;o>l&&(l=o)}if(o=i-c,f||!(o<0)){if(o/=f,f<0){if(o>h)return;o>l&&(l=o)}else if(f>0){if(o<l)return;o<h&&(h=o)}return!(l>0||h<1)||(l>0&&(t[0]=[u+l*p,c+l*f]),h<1&&(t[1]=[u+h*p,c+h*f]),!0)}}}}}function Ce(t,e,n,r,i){var o=t[1];if(o)return!0;var s,a,u=t[0],c=t.left,l=t.right,h=c[0],p=c[1],f=l[0],d=l[1],g=(h+f)/2,y=(p+d)/2;if(d===p){if(g<e||g>=r)return;if(h>f){if(u){if(u[1]>=i)return}else u=[g,n];o=[g,i]}else{if(u){if(u[1]<n)return}else u=[g,i];o=[g,n]}}else if(a=y-(s=(h-f)/(d-p))*g,s<-1||s>1)if(h>f){if(u){if(u[1]>=i)return}else u=[(n-a)/s,n];o=[(i-a)/s,i]}else{if(u){if(u[1]<n)return}else u=[(i-a)/s,i];o=[(n-a)/s,n]}else if(p<d){if(u){if(u[0]>=r)return}else u=[e,s*e+a];o=[r,s*r+a]}else{if(u){if(u[0]<e)return}else u=[r,s*r+a];o=[e,s*e+a]}return t[0]=u,t[1]=o,!0}function Me(t,e){var n=t.site,r=e.left,i=e.right;return n===i&&(i=r,r=n),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(n===r?(r=e[1],i=e[0]):(r=e[0],i=e[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function Ie(t,e){return e[+(e.left!==t.site)]}function Te(t,e){return e[+(e.left===t.site)]}var je,Ne=[];function De(){me(this),this.x=this.y=this.arc=this.site=this.cy=null}function Ae(t){var e=t.P,n=t.N;if(e&&n){var r=e.site,i=t.site,o=n.site;if(r!==o){var s=i[0],a=i[1],u=r[0]-s,c=r[1]-a,l=o[0]-s,h=o[1]-a,p=2*(u*h-c*l);if(!(p>=-Je)){var f=u*u+c*c,d=l*l+h*h,g=(h*f-c*d)/p,y=(u*d-l*f)/p,v=Ne.pop()||new De;v.arc=t,v.site=i,v.x=g+s,v.y=(v.cy=y+a)+Math.sqrt(g*g+y*y),t.circle=v;for(var m=null,_=Xe._;_;)if(v.y<_.y||v.y===_.y&&v.x<=_.x){if(!_.L){m=_.P;break}_=_.L}else{if(!_.R){m=_;break}_=_.R}Xe.insert(m,v),m||(je=v)}}}}function Re(t){var e=t.circle;e&&(e.P||(je=e.N),Xe.remove(e),Ne.push(e),me(e),t.circle=null)}var Fe=[];function Le(){me(this),this.edge=this.site=this.circle=null}function ke(t){var e=Fe.pop()||new Le;return e.site=t,e}function Ve(t){Re(t),We.remove(t),Fe.push(t),me(t)}function Be(t){var e=t.circle,n=e.x,r=e.cy,i=[n,r],o=t.P,s=t.N,a=[t];Ve(t);for(var u=o;u.circle&&Math.abs(n-u.circle.x)<Ye&&Math.abs(r-u.circle.cy)<Ye;)o=u.P,a.unshift(u),Ve(u),u=o;a.unshift(u),Re(u);for(var c=s;c.circle&&Math.abs(n-c.circle.x)<Ye&&Math.abs(r-c.circle.cy)<Ye;)s=c.N,a.push(c),Ve(c),c=s;a.push(c),Re(c);var l,h=a.length;for(l=1;l<h;++l)c=a[l],u=a[l-1],Se(c.edge,u.site,c.site,i);u=a[0],(c=a[h-1]).edge=xe(u.site,c.site,null,i),Ae(u),Ae(c)}function ze(t){for(var e,n,r,i,o=t[0],s=t[1],a=We._;a;)if((r=Ue(a,s)-o)>Ye)a=a.L;else{if(!((i=o-Ge(a,s))>Ye)){r>-Ye?(e=a.P,n=a):i>-Ye?(e=a,n=a.N):e=n=a;break}if(!a.R){e=a;break}a=a.R}!function(t){qe[t.index]={site:t,halfedges:[]}}(t);var u=ke(t);if(We.insert(e,u),e||n){if(e===n)return Re(e),n=ke(e.site),We.insert(u,n),u.edge=n.edge=xe(e.site,u.site),Ae(e),void Ae(n);if(n){Re(e),Re(n);var c=e.site,l=c[0],h=c[1],p=t[0]-l,f=t[1]-h,d=n.site,g=d[0]-l,y=d[1]-h,v=2*(p*y-f*g),m=p*p+f*f,_=g*g+y*y,b=[(y*m-f*_)/v+l,(p*_-g*m)/v+h];Se(n.edge,c,d,b),u.edge=xe(c,t,null,b),n.edge=xe(t,d,null,b),Ae(e),Ae(n)}else u.edge=xe(e.site,u.site)}}function Ue(t,e){var n=t.site,r=n[0],i=n[1],o=i-e;if(!o)return r;var s=t.P;if(!s)return-1/0;var a=(n=s.site)[0],u=n[1],c=u-e;if(!c)return a;var l=a-r,h=1/o-1/c,p=l/c;return h?(-p+Math.sqrt(p*p-2*h*(l*l/(-2*c)-u+c/2+i-o/2)))/h+r:(r+a)/2}function Ge(t,e){var n=t.N;if(n)return Ue(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var We,qe,Xe,He,Ye=1e-6,Je=1e-12;function $e(t,e){return e[1]-t[1]||e[0]-t[0]}function Ze(t,e){var n,r,i,o=t.sort($e).pop();for(He=[],qe=new Array(t.length),We=new Ee,Xe=new Ee;;)if(i=je,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===n&&o[1]===r||(ze(o),n=o[0],r=o[1]),o=t.pop();else{if(!i)break;Be(i.arc)}if(function(){for(var t,e,n,r,i=0,o=qe.length;i<o;++i)if((t=qe[i])&&(r=(e=t.halfedges).length)){var s=new Array(r),a=new Array(r);for(n=0;n<r;++n)s[n]=n,a[n]=Me(t,He[e[n]]);for(s.sort((function(t,e){return a[e]-a[t]})),n=0;n<r;++n)a[n]=e[s[n]];for(n=0;n<r;++n)e[n]=a[n]}}(),e){var s=+e[0][0],a=+e[0][1],u=+e[1][0],c=+e[1][1];!function(t,e,n,r){for(var i,o=He.length;o--;)Ce(i=He[o],t,e,n,r)&&Oe(i,t,e,n,r)&&(Math.abs(i[0][0]-i[1][0])>Ye||Math.abs(i[0][1]-i[1][1])>Ye)||delete He[o]}(s,a,u,c),function(t,e,n,r){var i,o,s,a,u,c,l,h,p,f,d,g,y=qe.length,v=!0;for(i=0;i<y;++i)if(o=qe[i]){for(s=o.site,a=(u=o.halfedges).length;a--;)He[u[a]]||u.splice(a,1);for(a=0,c=u.length;a<c;)d=(f=Te(o,He[u[a]]))[0],g=f[1],h=(l=Ie(o,He[u[++a%c]]))[0],p=l[1],(Math.abs(d-h)>Ye||Math.abs(g-p)>Ye)&&(u.splice(a,0,He.push(Pe(s,f,Math.abs(d-t)<Ye&&r-g>Ye?[t,Math.abs(h-t)<Ye?p:r]:Math.abs(g-r)<Ye&&n-d>Ye?[Math.abs(p-r)<Ye?h:n,r]:Math.abs(d-n)<Ye&&g-e>Ye?[n,Math.abs(h-n)<Ye?p:e]:Math.abs(g-e)<Ye&&d-t>Ye?[Math.abs(p-e)<Ye?h:t,e]:null))-1),++c);c&&(v=!1)}if(v){var m,_,b,w=1/0;for(i=0,v=null;i<y;++i)(o=qe[i])&&(b=(m=(s=o.site)[0]-t)*m+(_=s[1]-e)*_)<w&&(w=b,v=o);if(v){var E=[t,e],x=[t,r],P=[n,r],S=[n,e];v.halfedges.push(He.push(Pe(s=v.site,E,x))-1,He.push(Pe(s,x,P))-1,He.push(Pe(s,P,S))-1,He.push(Pe(s,S,E))-1)}}for(i=0;i<y;++i)(o=qe[i])&&(o.halfedges.length||delete qe[i])}(s,a,u,c)}this.edges=He,this.cells=qe,We=Xe=He=qe=null}Ze.prototype={constructor:Ze,polygons:function(){var t=this.edges;return this.cells.map((function(e){var n=e.halfedges.map((function(n){return Ie(e,t[n])}));return n.data=e.site.data,n}))},triangles:function(){var t=[],e=this.edges;return this.cells.forEach((function(n,r){if(o=(i=n.halfedges).length)for(var i,o,s,a,u,c,l=n.site,h=-1,p=e[i[o-1]],f=p.left===l?p.right:p.left;++h<o;)s=f,f=(p=e[i[h]]).left===l?p.right:p.left,s&&f&&r<s.index&&r<f.index&&(u=s,c=f,((a=l)[0]-c[0])*(u[1]-a[1])-(a[0]-u[0])*(c[1]-a[1])<0)&&t.push([l.data,s.data,f.data])})),t},links:function(){return this.edges.filter((function(t){return t.right})).map((function(t){return{source:t.left.data,target:t.right.data}}))},find:function(t,e,n){for(var r,i,o=this,s=o._found||0,a=o.cells.length;!(i=o.cells[s]);)if(++s>=a)return null;var u=t-i.site[0],c=e-i.site[1],l=u*u+c*c;do{i=o.cells[r=s],s=null,i.halfedges.forEach((function(n){var r=o.edges[n],a=r.left;if(a!==i.site&&a||(a=r.right)){var u=t-a[0],c=e-a[1],h=u*u+c*c;h<l&&(l=h,s=a.index)}}))}while(null!==s);return o._found=r,null==n||l<=n*n?i.site:null}};var Qe=n(1989);const Ke=function(t,e){var n=j(t),r=j(e),i=t.properties||{},o=Qe.difference(n.coordinates,r.coordinates);return 0===o.length?null:1===o.length?p(o[0],i):g(o,i)};var tn=n(6844);function en(){return new nn}function nn(){this.reset()}nn.prototype={constructor:nn,reset:function(){this.s=this.t=0},add:function(t){on(rn,t,this.t),on(this,rn.s,this.s),this.s?this.t+=rn.t:this.s=rn.t},valueOf:function(){return this.s}};var rn=new nn;function on(t,e,n){var r=t.s=e+n,i=r-e,o=r-i;t.t=e-o+(n-i)}var sn=1e-6,an=Math.PI,un=an/2,cn=an/4,ln=2*an,hn=180/an,pn=an/180,fn=Math.abs,dn=Math.atan,gn=Math.atan2,yn=Math.cos,vn=(Math.ceil,Math.exp,Math.floor,Math.log,Math.pow,Math.sin),mn=(Math.sign,Math.sqrt);Math.tan;function _n(t){return t>1?0:t<-1?an:Math.acos(t)}function bn(t){return t>1?un:t<-1?-un:Math.asin(t)}function wn(){}function En(t,e){t&&On.hasOwnProperty(t.type)&&On[t.type](t,e)}var xn,Pn,Sn={Feature:function(t,e){En(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)En(n[r].geometry,e)}},On={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){Cn(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)Cn(n[r],e,0)},Polygon:function(t,e){Mn(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)Mn(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)En(n[r],e)}};function Cn(t,e,n){var r,i=-1,o=t.length-n;for(e.lineStart();++i<o;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function Mn(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)Cn(t[n],e,1);e.polygonEnd()}function In(t){return[gn(t[1],t[0]),bn(t[2])]}function Tn(t){var e=t[0],n=t[1],r=yn(n);return[r*yn(e),r*vn(e),vn(n)]}function jn(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Nn(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Dn(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function An(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function Rn(t){var e=mn(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function Fn(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n}function Ln(t,e){return[t>an?t-ln:t<-an?t+ln:t,e]}function kn(t){return function(e,n){return[(e+=t)>an?e-ln:e<-an?e+ln:e,n]}}function Vn(t){var e=kn(t);return e.invert=kn(-t),e}function Bn(t,e){var n=yn(t),r=vn(t),i=yn(e),o=vn(e);function s(t,e){var s=yn(e),a=yn(t)*s,u=vn(t)*s,c=vn(e),l=c*n+a*r;return[gn(u*i-l*o,a*n-c*r),bn(l*i+u*o)]}return s.invert=function(t,e){var s=yn(e),a=yn(t)*s,u=vn(t)*s,c=vn(e),l=c*i-u*o;return[gn(u*i+c*o,a*n+l*r),bn(l*n-a*r)]},s}function zn(t,e){(e=Tn(e))[0]-=t,Rn(e);var n=_n(-e[1]);return((-e[2]<0?-n:n)+ln-sn)%ln}function Un(){var t,e=[];return{point:function(e,n){t.push([e,n])},lineStart:function(){e.push(t=[])},lineEnd:wn,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function Gn(t,e){return fn(t[0]-e[0])<sn&&fn(t[1]-e[1])<sn}function Wn(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function qn(t,e,n,r,i){var o,s,a=[],u=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],s=t[e];if(Gn(r,s)){for(i.lineStart(),o=0;o<e;++o)i.point((r=t[o])[0],r[1]);i.lineEnd()}else a.push(n=new Wn(r,t,null,!0)),u.push(n.o=new Wn(r,null,n,!1)),a.push(n=new Wn(s,t,null,!1)),u.push(n.o=new Wn(s,null,n,!0))}})),a.length){for(u.sort(e),Xn(a),Xn(u),o=0,s=u.length;o<s;++o)u[o].e=n=!n;for(var c,l,h=a[0];;){for(var p=h,f=!0;p.v;)if((p=p.n)===h)return;c=p.z,i.lineStart();do{if(p.v=p.o.v=!0,p.e){if(f)for(o=0,s=c.length;o<s;++o)i.point((l=c[o])[0],l[1]);else r(p.x,p.n.x,1,i);p=p.n}else{if(f)for(c=p.p.z,o=c.length-1;o>=0;--o)i.point((l=c[o])[0],l[1]);else r(p.x,p.p.x,-1,i);p=p.p}c=(p=p.o).z,f=!f}while(!p.v);i.lineEnd()}}}function Xn(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}function Hn(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}en(),en(),en(),Ln.invert=Ln,1===(xn=Hn).length&&(Pn=xn,xn=function(t,e){return Hn(Pn(t),e)});var Yn=Array.prototype;function Jn(t){for(var e,n,r,i=t.length,o=-1,s=0;++o<i;)s+=t[o].length;for(n=new Array(s);--i>=0;)for(e=(r=t[i]).length;--e>=0;)n[--s]=r[e];return n}Yn.slice,Yn.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var $n=1e9,Zn=-$n;var Qn=en();en(),en(),en();var Kn=1/0,tr=Kn,er=-Kn,nr=er;const rr={point:function(t,e){t<Kn&&(Kn=t),t>er&&(er=t),e<tr&&(tr=e),e>nr&&(nr=e)},lineStart:wn,lineEnd:wn,polygonStart:wn,polygonEnd:wn,result:function(){var t=[[Kn,tr],[er,nr]];return er=nr=-(tr=Kn=1/0),t}};function ir(t,e,n,r){return function(i,o){var s,a,u,c=e(o),l=i.invert(r[0],r[1]),h=Un(),p=e(h),f=!1,d={point:g,lineStart:v,lineEnd:m,polygonStart:function(){d.point=_,d.lineStart=b,d.lineEnd=w,a=[],s=[]},polygonEnd:function(){d.point=g,d.lineStart=v,d.lineEnd=m,a=Jn(a);var t=function(t,e){var n=e[0],r=e[1],i=[vn(n),-yn(n),0],o=0,s=0;Qn.reset();for(var a=0,u=t.length;a<u;++a)if(l=(c=t[a]).length)for(var c,l,h=c[l-1],p=h[0],f=h[1]/2+cn,d=vn(f),g=yn(f),y=0;y<l;++y,p=m,d=b,g=w,h=v){var v=c[y],m=v[0],_=v[1]/2+cn,b=vn(_),w=yn(_),E=m-p,x=E>=0?1:-1,P=x*E,S=P>an,O=d*b;if(Qn.add(gn(O*x*vn(P),g*w+O*yn(P))),o+=S?E+x*ln:E,S^p>=n^m>=n){var C=Nn(Tn(h),Tn(v));Rn(C);var M=Nn(i,C);Rn(M);var I=(S^E>=0?-1:1)*bn(M[2]);(r>I||r===I&&(C[0]||C[1]))&&(s+=S^E>=0?1:-1)}}return(o<-1e-6||o<sn&&Qn<-1e-6)^1&s}(s,l);a.length?(f||(o.polygonStart(),f=!0),qn(a,sr,t,n,o)):t&&(f||(o.polygonStart(),f=!0),o.lineStart(),n(null,null,1,o),o.lineEnd()),f&&(o.polygonEnd(),f=!1),a=s=null},sphere:function(){o.polygonStart(),o.lineStart(),n(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function g(e,n){var r=i(e,n);t(e=r[0],n=r[1])&&o.point(e,n)}function y(t,e){var n=i(t,e);c.point(n[0],n[1])}function v(){d.point=y,c.lineStart()}function m(){d.point=g,c.lineEnd()}function _(t,e){u.push([t,e]);var n=i(t,e);p.point(n[0],n[1])}function b(){p.lineStart(),u=[]}function w(){_(u[0][0],u[0][1]),p.lineEnd();var t,e,n,r,i=p.clean(),c=h.result(),l=c.length;if(u.pop(),s.push(u),u=null,l)if(1&i){if((e=(n=c[0]).length-1)>0){for(f||(o.polygonStart(),f=!0),o.lineStart(),t=0;t<e;++t)o.point((r=n[t])[0],r[1]);o.lineEnd()}}else l>1&&2&i&&c.push(c.pop().concat(c.shift())),a.push(c.filter(or))}return d}}function or(t){return t.length>1}function sr(t,e){return((t=t.x)[0]<0?t[1]-un-sn:un-t[1])-((e=e.x)[0]<0?e[1]-un-sn:un-e[1])}en();const ar=ir((function(){return!0}),(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,s){var a=o>0?an:-an,u=fn(o-n);fn(u-an)<sn?(t.point(n,r=(r+s)/2>0?un:-un),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),t.point(o,r),e=0):i!==a&&u>=an&&(fn(n-i)<sn&&(n-=i*sn),fn(o-a)<sn&&(o-=a*sn),r=function(t,e,n,r){var i,o,s=vn(t-n);return fn(s)>sn?dn((vn(e)*(o=yn(r))*vn(n)-vn(r)*(i=yn(e))*vn(t))/(i*o*s)):(e+r)/2}(n,r,o,s),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),e=0),t.point(n=o,r=s),i=a},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*un,r.point(-an,i),r.point(0,i),r.point(an,i),r.point(an,0),r.point(an,-i),r.point(0,-i),r.point(-an,-i),r.point(-an,0),r.point(-an,i);else if(fn(t[0]-e[0])>sn){var o=t[0]<e[0]?an:-an;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(e[0],e[1])}),[-an,-un]);function ur(t){return t}function cr(t){return function(e){var n=new lr;for(var r in t)n[r]=t[r];return n.stream=e,n}}function lr(){}function hr(t,e,n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],o=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=o&&t.clipExtent(null),function(t,e){t&&Sn.hasOwnProperty(t.type)?Sn[t.type](t,e):En(t,e)}(n,t.stream(rr));var s=rr.result(),a=Math.min(r/(s[1][0]-s[0][0]),i/(s[1][1]-s[0][1])),u=+e[0][0]+(r-a*(s[1][0]+s[0][0]))/2,c=+e[0][1]+(i-a*(s[1][1]+s[0][1]))/2;return null!=o&&t.clipExtent(o),t.scale(150*a).translate([u,c])}lr.prototype={constructor:lr,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var pr=yn(30*pn);function fr(t,e){return+e?function(t,e){function n(r,i,o,s,a,u,c,l,h,p,f,d,g,y){var v=c-r,m=l-i,_=v*v+m*m;if(_>4*e&&g--){var b=s+p,w=a+f,E=u+d,x=mn(b*b+w*w+E*E),P=bn(E/=x),S=fn(fn(E)-1)<sn||fn(o-h)<sn?(o+h)/2:gn(w,b),O=t(S,P),C=O[0],M=O[1],I=C-r,T=M-i,j=m*I-v*T;(j*j/_>e||fn((v*I+m*T)/_-.5)>.3||s*p+a*f+u*d<pr)&&(n(r,i,o,s,a,u,C,M,S,b/=x,w/=x,E,g,y),y.point(C,M),n(C,M,S,b,w,E,c,l,h,p,f,d,g,y))}}return function(e){var r,i,o,s,a,u,c,l,h,p,f,d,g={point:y,lineStart:v,lineEnd:_,polygonStart:function(){e.polygonStart(),g.lineStart=b},polygonEnd:function(){e.polygonEnd(),g.lineStart=v}};function y(n,r){n=t(n,r),e.point(n[0],n[1])}function v(){l=NaN,g.point=m,e.lineStart()}function m(r,i){var o=Tn([r,i]),s=t(r,i);n(l,h,c,p,f,d,l=s[0],h=s[1],c=r,p=o[0],f=o[1],d=o[2],16,e),e.point(l,h)}function _(){g.point=y,e.lineEnd()}function b(){v(),g.point=w,g.lineEnd=E}function w(t,e){m(r=t,e),i=l,o=h,s=p,a=f,u=d,g.point=m}function E(){n(l,h,c,p,f,d,i,o,r,s,a,u,16,e),g.lineEnd=_,_()}return g}}(t,e):function(t){return cr({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}(t)}var dr=cr({point:function(t,e){this.stream.point(t*pn,e*pn)}});function gr(t){return function(t){var e,n,r,i,o,s,a,u,c,l,h=150,p=480,f=250,d=0,g=0,y=0,v=0,m=0,_=null,b=ar,w=null,E=ur,x=.5,P=fr(C,x);function S(t){return[(t=o(t[0]*pn,t[1]*pn))[0]*h+n,r-t[1]*h]}function O(t){return(t=o.invert((t[0]-n)/h,(r-t[1])/h))&&[t[0]*hn,t[1]*hn]}function C(t,i){return[(t=e(t,i))[0]*h+n,r-t[1]*h]}function M(){o=Fn(i=function(t,e,n){return(t%=ln)?e||n?Fn(Vn(t),Bn(e,n)):Vn(t):e||n?Bn(e,n):Ln}(y,v,m),e);var t=e(d,g);return n=p-t[0]*h,r=f+t[1]*h,I()}function I(){return c=l=null,S}return S.stream=function(t){return c&&l===t?c:c=dr(b(i,P(E(l=t))))},S.clipAngle=function(t){return arguments.length?(b=+t?function(t,e){var n=yn(t),r=n>0,i=fn(n)>sn;function o(t,e){return yn(t)*yn(e)>n}function s(t,e,r){var i=[1,0,0],o=Nn(Tn(t),Tn(e)),s=jn(o,o),a=o[0],u=s-a*a;if(!u)return!r&&t;var c=n*s/u,l=-n*a/u,h=Nn(i,o),p=An(i,c);Dn(p,An(o,l));var f=h,d=jn(p,f),g=jn(f,f),y=d*d-g*(jn(p,p)-1);if(!(y<0)){var v=mn(y),m=An(f,(-d-v)/g);if(Dn(m,p),m=In(m),!r)return m;var _,b=t[0],w=e[0],E=t[1],x=e[1];w<b&&(_=b,b=w,w=_);var P=w-b,S=fn(P-an)<sn;if(!S&&x<E&&(_=E,E=x,x=_),S||P<sn?S?E+x>0^m[1]<(fn(m[0]-b)<sn?E:x):E<=m[1]&&m[1]<=x:P>an^(b<=m[0]&&m[0]<=w)){var O=An(f,(-d+v)/g);return Dn(O,p),[m,In(O)]}}}function a(e,n){var i=r?t:an-t,o=0;return e<-i?o|=1:e>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return ir(o,(function(t){var e,n,u,c,l;return{lineStart:function(){c=u=!1,l=1},point:function(h,p){var f,d=[h,p],g=o(h,p),y=r?g?0:a(h,p):g?a(h+(h<0?an:-an),p):0;if(!e&&(c=u=g)&&t.lineStart(),g!==u&&(!(f=s(e,d))||Gn(e,f)||Gn(d,f))&&(d[0]+=sn,d[1]+=sn,g=o(d[0],d[1])),g!==u)l=0,g?(t.lineStart(),f=s(d,e),t.point(f[0],f[1])):(f=s(e,d),t.point(f[0],f[1]),t.lineEnd()),e=f;else if(i&&e&&r^g){var v;y&n||!(v=s(d,e,!0))||(l=0,r?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1])))}!g||e&&Gn(e,d)||t.point(d[0],d[1]),e=d,u=g,n=y},lineEnd:function(){u&&t.lineEnd(),e=null},clean:function(){return l|(c&&u)<<1}}}),(function(n,r,i,o){!function(t,e,n,r,i,o){if(n){var s=yn(e),a=vn(e),u=r*n;null==i?(i=e+r*ln,o=e-u/2):(i=zn(s,i),o=zn(s,o),(r>0?i<o:i>o)&&(i+=r*ln));for(var c,l=i;r>0?l>o:l<o;l-=u)c=In([s,-a*yn(l),-a*vn(l)]),t.point(c[0],c[1])}}(o,t,e,i,n,r)}),r?[0,-t]:[-an,t-an])}(_=t*pn,6*pn):(_=null,ar),I()):_*hn},S.clipExtent=function(t){return arguments.length?(E=null==t?(w=s=a=u=null,ur):function(t,e,n,r){function i(i,o){return t<=i&&i<=n&&e<=o&&o<=r}function o(i,o,a,c){var l=0,h=0;if(null==i||(l=s(i,a))!==(h=s(o,a))||u(i,o)<0^a>0)do{c.point(0===l||3===l?t:n,l>1?r:e)}while((l=(l+a+4)%4)!==h);else c.point(o[0],o[1])}function s(r,i){return fn(r[0]-t)<sn?i>0?0:3:fn(r[0]-n)<sn?i>0?2:1:fn(r[1]-e)<sn?i>0?1:0:i>0?3:2}function a(t,e){return u(t.x,e.x)}function u(t,e){var n=s(t,1),r=s(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(s){var u,c,l,h,p,f,d,g,y,v,m,_=s,b=Un(),w={point:E,lineStart:function(){w.point=x,c&&c.push(l=[]),v=!0,y=!1,d=g=NaN},lineEnd:function(){u&&(x(h,p),f&&y&&b.rejoin(),u.push(b.result())),w.point=E,y&&_.lineEnd()},polygonStart:function(){_=b,u=[],c=[],m=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=c.length;n<i;++n)for(var o,s,a=c[n],u=1,l=a.length,h=a[0],p=h[0],f=h[1];u<l;++u)o=p,s=f,p=(h=a[u])[0],f=h[1],s<=r?f>r&&(p-o)*(r-s)>(f-s)*(t-o)&&++e:f<=r&&(p-o)*(r-s)<(f-s)*(t-o)&&--e;return e}(),n=m&&e,i=(u=Jn(u)).length;(n||i)&&(s.polygonStart(),n&&(s.lineStart(),o(null,null,1,s),s.lineEnd()),i&&qn(u,a,e,o,s),s.polygonEnd()),_=s,u=c=l=null}};function E(t,e){i(t,e)&&_.point(t,e)}function x(o,s){var a=i(o,s);if(c&&l.push([o,s]),v)h=o,p=s,f=a,v=!1,a&&(_.lineStart(),_.point(o,s));else if(a&&y)_.point(o,s);else{var u=[d=Math.max(Zn,Math.min($n,d)),g=Math.max(Zn,Math.min($n,g))],b=[o=Math.max(Zn,Math.min($n,o)),s=Math.max(Zn,Math.min($n,s))];!function(t,e,n,r,i,o){var s,a=t[0],u=t[1],c=0,l=1,h=e[0]-a,p=e[1]-u;if(s=n-a,h||!(s>0)){if(s/=h,h<0){if(s<c)return;s<l&&(l=s)}else if(h>0){if(s>l)return;s>c&&(c=s)}if(s=i-a,h||!(s<0)){if(s/=h,h<0){if(s>l)return;s>c&&(c=s)}else if(h>0){if(s<c)return;s<l&&(l=s)}if(s=r-u,p||!(s>0)){if(s/=p,p<0){if(s<c)return;s<l&&(l=s)}else if(p>0){if(s>l)return;s>c&&(c=s)}if(s=o-u,p||!(s<0)){if(s/=p,p<0){if(s>l)return;s>c&&(c=s)}else if(p>0){if(s<c)return;s<l&&(l=s)}return c>0&&(t[0]=a+c*h,t[1]=u+c*p),l<1&&(e[0]=a+l*h,e[1]=u+l*p),!0}}}}}(u,b,t,e,n,r)?a&&(_.lineStart(),_.point(o,s),m=!1):(y||(_.lineStart(),_.point(u[0],u[1])),_.point(b[0],b[1]),a||_.lineEnd(),m=!1)}d=o,g=s,y=a}return w}}(w=+t[0][0],s=+t[0][1],a=+t[1][0],u=+t[1][1]),I()):null==w?null:[[w,s],[a,u]]},S.scale=function(t){return arguments.length?(h=+t,M()):h},S.translate=function(t){return arguments.length?(p=+t[0],f=+t[1],M()):[p,f]},S.center=function(t){return arguments.length?(d=t[0]%360*pn,g=t[1]%360*pn,M()):[d*hn,g*hn]},S.rotate=function(t){return arguments.length?(y=t[0]%360*pn,v=t[1]%360*pn,m=t.length>2?t[2]%360*pn:0,M()):[y*hn,v*hn,m*hn]},S.precision=function(t){return arguments.length?(P=fr(C,x=t*t),I()):mn(x)},S.fitExtent=function(t,e){return hr(S,t,e)},S.fitSize=function(t,e){return function(t,e,n){return hr(t,[[0,0],e],n)}(S,t,e)},function(){return e=t.apply(this,arguments),S.invert=e.invert&&O,M()}}((function(){return t}))()}function yr(t){return function(e,n){var r=yn(e),i=yn(n),o=t(r*i);return[o*i*vn(e),o*vn(n)]}}function vr(t){return function(e,n){var r=mn(e*e+n*n),i=t(r),o=vn(i),s=yn(i);return[gn(e*o,r*s),bn(r&&n*o/r)]}}yr((function(t){return mn(2/(1+t))})).invert=vr((function(t){return 2*bn(t/2)}));var mr=yr((function(t){return(t=_n(t))&&t/vn(t)}));function _r(t,e){return[t,e]}function br(t,e,n,r){var i=t.properties||{},o="Feature"===t.type?t.geometry:t;if("GeometryCollection"===o.type){var s=[];return P(t,(function(t){var i=br(t,e,n,r);i&&s.push(i)})),d(s)}var a=function(t){var e=function(t,e){void 0===e&&(e={});var n=C(t);return h([(n[0]+n[2])/2,(n[1]+n[3])/2],e.properties,e)}(t).geometry.coordinates,n=[-e[0],-e[1]];return gr(mr).scale(79.4188).clipAngle(179.999).rotate(n).scale(u)}(o),c={type:o.type,coordinates:Er(o.coordinates,a)},p=(new tn.GeoJSONReader).read(c),f=y(v(e,n),"meters"),g=tn.BufferOp.bufferOp(p,f,r);if(!wr((g=(new tn.GeoJSONWriter).write(g)).coordinates))return l({type:g.type,coordinates:xr(g.coordinates,a)},i)}function wr(t){return Array.isArray(t[0])?wr(t[0]):isNaN(t[0])}function Er(t,e){return"object"!=typeof t[0]?e(t):t.map((function(t){return Er(t,e)}))}function xr(t,e){return"object"!=typeof t[0]?e.invert(t):t.map((function(t){return xr(t,e)}))}mr.invert=vr((function(t){return t})),_r.invert=_r,vr(dn),vr(bn),vr((function(t){return 2*dn(t)}));const Pr=function(t,e,n){var r=(n=n||{}).units||"kilometers",i=n.steps||8;if(!t)throw new Error("geojson is required");if("object"!=typeof n)throw new Error("options must be an object");if("number"!=typeof i)throw new Error("steps must be an number");if(void 0===e)throw new Error("radius is required");if(i<=0)throw new Error("steps must be greater than 0");var o=[];switch(t.type){case"GeometryCollection":return P(t,(function(t){var n=br(t,e,r,i);n&&o.push(n)})),d(o);case"FeatureCollection":return x(t,(function(t){var n=br(t,e,r,i);n&&x(n,(function(t){t&&o.push(t)}))})),d(o)}return br(t,e,r,i)},Sr=function(t,e,n){void 0===n&&(n={});var r=j(t),i=j(e),o=Qe.union(r.coordinates,i.coordinates);return 0===o.length?null:1===o.length?p(o[0],n.properties):g(o,n.properties)};function Or(t,e){return t[0][0]===t[t.length-1][0]&&t[0][1]===t[t.length-1][1]||t.push(t[0]),D(h(e),p([t]))}function Cr(t,e){const n=function(t,e,n){void 0===n&&(n={});for(var r=j(t).coordinates,i=0,o=0;o<r.length&&!(e>=i&&o===r.length-1);o++){if(i>=e){var s=e-i;if(s){var a=V(r[o],r[o-1])-180;return L(r[o],s,a,n)}return h(r[o])}i+=R(r[o],r[o+1],n)}return h(r[r.length-1])}(f(t),e,{units:"meters"});return n.geometry.coordinates}function Mr(t){return t[0][0]===t[t.length-1][0]&&t[0][1]===t[t.length-1][1]&&t[0][2]===t[t.length-1][2]||t.push(t[0]),t.length<=3?0:K(p([t]))}function Ir(t){var e,n;t[0][0]===t[t.length-1][0]&&t[0][1]===t[t.length-1][1]&&t[0][2]===t[t.length-1][2]||t.push(t[0]);const r=p([t]),i=U(r).geometry.coordinates;return[i[0],i[1],null!==(n=null!==(e=i[2])&&void 0!==e?e:t[0][2])&&void 0!==n?n:0]}function Tr(t,e,n,r){const[i,o,s]=t,a=L(h([i,o]),e,n,{units:"meters"});if(a&&a.geometry&&a.geometry.coordinates)return(r=r||[0,0,0])[0]=a.geometry.coordinates[0],r[1]=a.geometry.coordinates[1],r[2]=s,r}function jr(t,e){return R(h(t),h(e),{units:"meters"})}function Nr(t,e){return V(h(t),h(e))}function Dr(t,e){return X(f(t),f(e))}function Ar(t,e){const n=h(t),r=h(e),i=B(n,r),o=(t[2]+e[2])/2;return[...i.geometry.coordinates,o]}function Rr(t,e){const n=h(e),r=f(t);return H(r,n,{units:"meters"})}function Fr(t,e){const n=h(t),r=f(e);return Z(n,r,{units:"meters"})}function Lr(t,e,n,r){const[i,o,s]=t,a=yt(h([i,o]),e,n,{units:"meters"});if(a&&a.geometry&&a.geometry.coordinates)return(r=r||[0,0,0])[0]=a.geometry.coordinates[0],r[1]=a.geometry.coordinates[1],r[2]=s,r}function kr(t,e){return Y(h(t),h(e),{units:"meters"})}function Vr(t,e){return gt(h(t),h(e))}function Br(t,e){t[0][0]===t[t.length-1][0]&&t[0][1]===t[t.length-1][1]&&t[0][2]===t[t.length-1][2]||t.push(t[0]),e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]&&e[0][2]===e[e.length-1][2]||e.push(e[0]);const n=function(t,e,n){void 0===n&&(n={});var r=j(t),i=j(e),o=Qe.intersection(r.coordinates,i.coordinates);return 0===o.length?null:1===o.length?p(o[0],n.properties):g(o,n.properties)}(p([t]),p([e]));return n?n.geometry.coordinates:void 0}function zr(t,e){t[0][0]===t[t.length-1][0]&&t[0][1]===t[t.length-1][1]&&t[0][2]===t[t.length-1][2]||t.push(t[0]),e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]&&e[0][2]===e[e.length-1][2]||e.push(e[0]);const n=Sr(p([t]),p([e]));return n?n.geometry.coordinates:void 0}function Ur(t,e=500,n="meters"){const r=Pr(f(t),e,{units:n});return r?r.geometry.coordinates:void 0}function Gr(t,e){t[0][0]===t[t.length-1][0]&&t[0][1]===t[t.length-1][1]&&t[0][2]===t[t.length-1][2]||t.push(t[0]),e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]&&e[0][2]===e[e.length-1][2]||e.push(e[0]);const n=Ke(p([t]),p([e]));return n?n.geometry.coordinates:void 0}function Wr(t,e,n=10,r="meters"){return k(t,e,{steps:n,units:r}).geometry.coordinates}function qr(t,e){t[0][0]===t[t.length-1][0]&&t[0][1]===t[t.length-1][1]&&t[0][2]===t[t.length-1][2]||t.push(t[0]),e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]&&e[0][2]===e[e.length-1][2]||e.push(e[0]);const n=p([t]),r=p([e]);return function(t,e){var n=j(t),r=j(e),i=n.type,o=r.type,s=n.coordinates,a=r.coordinates;switch(i){case"Point":if("Point"===o)return he(s,a);throw new Error("feature2 "+o+" geometry not supported");case"MultiPoint":switch(o){case"Point":return function(t,e){var n,r=!1;for(n=0;n<t.coordinates.length;n++)if(he(t.coordinates[n],e.coordinates)){r=!0;break}return r}(n,r);case"MultiPoint":return function(t,e){for(var n=0,r=e.coordinates;n<r.length;n++){for(var i=r[n],o=!1,s=0,a=t.coordinates;s<a.length;s++)if(he(i,a[s])){o=!0;break}if(!o)return!1}return!0}(n,r);default:throw new Error("feature2 "+o+" geometry not supported")}case"LineString":switch(o){case"Point":return it(r,n,{ignoreEndVertices:!0});case"LineString":return function(t,e){for(var n=!1,r=0,i=e.coordinates;r<i.length;r++){var o=i[r];if(it({type:"Point",coordinates:o},t,{ignoreEndVertices:!0})&&(n=!0),!it({type:"Point",coordinates:o},t,{ignoreEndVertices:!1}))return!1}return n}(n,r);case"MultiPoint":return function(t,e){for(var n=!1,r=0,i=e.coordinates;r<i.length;r++){var o=i[r];if(it(o,t,{ignoreEndVertices:!0})&&(n=!0),!it(o,t))return!1}return!!n}(n,r);default:throw new Error("feature2 "+o+" geometry not supported")}case"Polygon":switch(o){case"Point":return D(r,n,{ignoreBoundary:!0});case"LineString":return function(t,e){var n,r,i=!1,o=0;if(!le(C(t),C(e)))return!1;for(;o<e.coordinates.length-1;o++)if(D({type:"Point",coordinates:(n=e.coordinates[o],r=e.coordinates[o+1],[(n[0]+r[0])/2,(n[1]+r[1])/2])},t,{ignoreBoundary:!0})){i=!0;break}return i}(n,r);case"Polygon":return function(t,e){if("Feature"===t.type&&null===t.geometry)return!1;if("Feature"===e.type&&null===e.geometry)return!1;if(!le(C(t),C(e)))return!1;for(var n=0,r=j(e).coordinates;n<r.length;n++)for(var i=0,o=r[n];i<o.length;i++)if(!D(o[i],t))return!1;return!0}(n,r);case"MultiPoint":return function(t,e){for(var n=0,r=e.coordinates;n<r.length;n++)if(!D(r[n],t,{ignoreBoundary:!0}))return!1;return!0}(n,r);default:throw new Error("feature2 "+o+" geometry not supported")}default:throw new Error("feature1 "+i+" geometry not supported")}}(n,r)?"oneBig":!!at(n,r)&&"twoBig"}function Xr(t){const e=(0,i.min)((0,i.objsIterator)(t,["0"])),n=(0,i.min)((0,i.objsIterator)(t,["1"])),r=(0,i.min)((0,i.objsIterator)(t,["2"])),o=(0,i.max)((0,i.objsIterator)(t,["0"])),s=(0,i.max)((0,i.objsIterator)(t,["1"])),a=(0,i.max)((0,i.objsIterator)(t,["2"]));return{minPos:[e,n,r],maxPos:[o,s,a],center:[.5*(e+o),.5*(n+s),.5*(r+a)]}}function Hr(t){const{minPos:e,maxPos:n,center:r}=Xr(t);if(e.some((t=>!Number.isFinite(t)||n.some((t=>!Number.isFinite(t)))||r.some((t=>!Number.isFinite(t))))))return void console.warn("geoCenterAndRadiusFromPositions error: minPos.some(e => !Number.isFinite(e) || maxPos.some(e => !Number.isFinite(e)) || center.some(e => !Number.isFinite(e))");const i=jr(e,n);let o=.5*i;const s=Math.abs(e[2]-n[2]);return 0!=s&&(o=.5*Math.sqrt(i*i+s*s)),{center:r,radius:o}}var Yr=6378137,Jr=.0066943799901413165,$r=484813681109536e-20,Zr=Math.PI/2,Qr=1e-10,Kr=.017453292519943295,ti=57.29577951308232,ei=Math.PI/4,ni=2*Math.PI,ri=3.14159265359,ii={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667};const oi={mm:{to_meter:.001},cm:{to_meter:.01},ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937},fath:{to_meter:1.8288},kmi:{to_meter:1852},"us-ch":{to_meter:20.1168402336805},"us-mi":{to_meter:1609.34721869444},km:{to_meter:1e3},"ind-ft":{to_meter:.30479841},"ind-yd":{to_meter:.91439523},mi:{to_meter:1609.344},yd:{to_meter:.9144},ch:{to_meter:20.1168},link:{to_meter:.201168},dm:{to_meter:.01},in:{to_meter:.0254},"ind-ch":{to_meter:20.11669506},"us-in":{to_meter:.025400050800101},"us-yd":{to_meter:.914401828803658}};var si=/[\s_\-\/\(\)]/g;function ai(t,e){if(t[e])return t[e];for(var n,r=Object.keys(t),i=e.toLowerCase().replace(si,""),o=-1;++o<r.length;)if((n=r[o]).toLowerCase().replace(si,"")===i)return t[n]}function ui(t){var e,n,r,i={},o=t.split("+").map((function(t){return t.trim()})).filter((function(t){return t})).reduce((function(t,e){var n=e.split("=");return n.push(!0),t[n[0].toLowerCase()]=n[1],t}),{}),s={proj:"projName",datum:"datumCode",rf:function(t){i.rf=parseFloat(t)},lat_0:function(t){i.lat0=t*Kr},lat_1:function(t){i.lat1=t*Kr},lat_2:function(t){i.lat2=t*Kr},lat_ts:function(t){i.lat_ts=t*Kr},lon_0:function(t){i.long0=t*Kr},lon_1:function(t){i.long1=t*Kr},lon_2:function(t){i.long2=t*Kr},alpha:function(t){i.alpha=parseFloat(t)*Kr},gamma:function(t){i.rectified_grid_angle=parseFloat(t)},lonc:function(t){i.longc=t*Kr},x_0:function(t){i.x0=parseFloat(t)},y_0:function(t){i.y0=parseFloat(t)},k_0:function(t){i.k0=parseFloat(t)},k:function(t){i.k0=parseFloat(t)},a:function(t){i.a=parseFloat(t)},b:function(t){i.b=parseFloat(t)},r:function(t){i.a=i.b=parseFloat(t)},r_a:function(){i.R_A=!0},zone:function(t){i.zone=parseInt(t,10)},south:function(){i.utmSouth=!0},towgs84:function(t){i.datum_params=t.split(",").map((function(t){return parseFloat(t)}))},to_meter:function(t){i.to_meter=parseFloat(t)},units:function(t){i.units=t;var e=ai(oi,t);e&&(i.to_meter=e.to_meter)},from_greenwich:function(t){i.from_greenwich=t*Kr},pm:function(t){var e=ai(ii,t);i.from_greenwich=(e||parseFloat(t))*Kr},nadgrids:function(t){"@null"===t?i.datumCode="none":i.nadgrids=t},axis:function(t){var e="ewnsud";3===t.length&&-1!==e.indexOf(t.substr(0,1))&&-1!==e.indexOf(t.substr(1,1))&&-1!==e.indexOf(t.substr(2,1))&&(i.axis=t)},approx:function(){i.approx=!0}};for(e in o)n=o[e],e in s?"function"==typeof(r=s[e])?r(n):i[r]=n:i[e]=n;return"string"==typeof i.datumCode&&"WGS84"!==i.datumCode&&(i.datumCode=i.datumCode.toLowerCase()),i}var ci=1,li=/\s/,hi=/[A-Za-z]/,pi=/[A-Za-z84_]/,fi=/[,\]]/,di=/[\d\.E\-\+]/;function gi(t){if("string"!=typeof t)throw new Error("not a string");this.text=t.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=ci}function yi(t,e,n){Array.isArray(e)&&(n.unshift(e),e=null);var r=e?{}:t,i=n.reduce((function(t,e){return vi(e,t),t}),r);e&&(t[e]=i)}function vi(t,e){if(Array.isArray(t)){var n=t.shift();if("PARAMETER"===n&&(n=t.shift()),1===t.length)return Array.isArray(t[0])?(e[n]={},void vi(t[0],e[n])):void(e[n]=t[0]);if(t.length)if("TOWGS84"!==n){if("AXIS"===n)return n in e||(e[n]=[]),void e[n].push(t);var r;switch(Array.isArray(n)||(e[n]={}),n){case"UNIT":case"PRIMEM":case"VERT_DATUM":return e[n]={name:t[0].toLowerCase(),convert:t[1]},void(3===t.length&&vi(t[2],e[n]));case"SPHEROID":case"ELLIPSOID":return e[n]={name:t[0],a:t[1],rf:t[2]},void(4===t.length&&vi(t[3],e[n]));case"EDATUM":case"ENGINEERINGDATUM":case"LOCAL_DATUM":case"DATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":return t[0]=["name",t[0]],void yi(e,n,t);case"COMPD_CS":case"COMPOUNDCRS":case"FITTED_CS":case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"ENGCRS":case"ENGINEERINGCRS":return t[0]=["name",t[0]],yi(e,n,t),void(e[n].type=n);default:for(r=-1;++r<t.length;)if(!Array.isArray(t[r]))return vi(t,e[n]);return yi(e,n,t)}}else e[n]=t;else e[n]=!0}else e[t]=!0}gi.prototype.readCharicter=function(){var t=this.text[this.place++];if(4!==this.state)for(;li.test(t);){if(this.place>=this.text.length)return;t=this.text[this.place++]}switch(this.state){case ci:return this.neutral(t);case 2:return this.keyword(t);case 4:return this.quoted(t);case 5:return this.afterquote(t);case 3:return this.number(t);case-1:return}},gi.prototype.afterquote=function(t){if('"'===t)return this.word+='"',void(this.state=4);if(fi.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in afterquote yet, index '+this.place)},gi.prototype.afterItem=function(t){return","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=ci)):"]"===t?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=ci,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},gi.prototype.number=function(t){if(!di.test(t)){if(fi.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in number yet, index '+this.place)}this.word+=t},gi.prototype.quoted=function(t){'"'!==t?this.word+=t:this.state=5},gi.prototype.keyword=function(t){if(pi.test(t))this.word+=t;else{if("["===t){var e=[];return e.push(this.word),this.level++,null===this.root?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,void(this.state=ci)}if(!fi.test(t))throw new Error("havn't handled \""+t+'" in keyword yet, index '+this.place);this.afterItem(t)}},gi.prototype.neutral=function(t){if(hi.test(t))return this.word=t,void(this.state=2);if('"'===t)return this.word="",void(this.state=4);if(di.test(t))return this.word=t,void(this.state=3);if(!fi.test(t))throw new Error("havn't handled \""+t+'" in neutral yet, index '+this.place);this.afterItem(t)},gi.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};var mi=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function _i(t){return.017453292519943295*t}function bi(t){for(var e=Object.keys(t),n=0,r=e.length;n<r;++n){var i=e[n];-1!==mi.indexOf(i)&&wi(t[i]),"object"==typeof t[i]&&bi(t[i])}}function wi(t){if(t.AUTHORITY){var e=Object.keys(t.AUTHORITY)[0];e&&e in t.AUTHORITY&&(t.title=e+":"+t.AUTHORITY[e])}if("GEOGCS"===t.type?t.projName="longlat":"LOCAL_CS"===t.type?(t.projName="identity",t.local=!0):"object"==typeof t.PROJECTION?t.projName=Object.keys(t.PROJECTION)[0]:t.projName=t.PROJECTION,t.AXIS){for(var n="",r=0,i=t.AXIS.length;r<i;++r){var o=[t.AXIS[r][0].toLowerCase(),t.AXIS[r][1].toLowerCase()];-1!==o[0].indexOf("north")||("y"===o[0]||"lat"===o[0])&&"north"===o[1]?n+="n":-1!==o[0].indexOf("south")||("y"===o[0]||"lat"===o[0])&&"south"===o[1]?n+="s":-1!==o[0].indexOf("east")||("x"===o[0]||"lon"===o[0])&&"east"===o[1]?n+="e":-1===o[0].indexOf("west")&&("x"!==o[0]&&"lon"!==o[0]||"west"!==o[1])||(n+="w")}2===n.length&&(n+="u"),3===n.length&&(t.axis=n)}t.UNIT&&(t.units=t.UNIT.name.toLowerCase(),"metre"===t.units&&(t.units="meter"),t.UNIT.convert&&("GEOGCS"===t.type?t.DATUM&&t.DATUM.SPHEROID&&(t.to_meter=t.UNIT.convert*t.DATUM.SPHEROID.a):t.to_meter=t.UNIT.convert));var s=t.GEOGCS;function a(e){return e*(t.to_meter||1)}"GEOGCS"===t.type&&(s=t),s&&(s.DATUM?t.datumCode=s.DATUM.name.toLowerCase():t.datumCode=s.name.toLowerCase(),"d_"===t.datumCode.slice(0,2)&&(t.datumCode=t.datumCode.slice(2)),"new_zealand_1949"===t.datumCode&&(t.datumCode="nzgd49"),"wgs_1984"!==t.datumCode&&"world_geodetic_system_1984"!==t.datumCode||("Mercator_Auxiliary_Sphere"===t.PROJECTION&&(t.sphere=!0),t.datumCode="wgs84"),"belge_1972"===t.datumCode&&(t.datumCode="rnb72"),s.DATUM&&s.DATUM.SPHEROID&&(t.ellps=s.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===t.ellps.toLowerCase().slice(0,13)&&(t.ellps="intl"),t.a=s.DATUM.SPHEROID.a,t.rf=parseFloat(s.DATUM.SPHEROID.rf,10)),s.DATUM&&s.DATUM.TOWGS84&&(t.datum_params=s.DATUM.TOWGS84),~t.datumCode.indexOf("osgb_1936")&&(t.datumCode="osgb36"),~t.datumCode.indexOf("osni_1952")&&(t.datumCode="osni52"),(~t.datumCode.indexOf("tm65")||~t.datumCode.indexOf("geodetic_datum_of_1965"))&&(t.datumCode="ire65"),"ch1903+"===t.datumCode&&(t.datumCode="ch1903"),~t.datumCode.indexOf("israel")&&(t.datumCode="isr93")),t.b&&!isFinite(t.b)&&(t.b=t.a),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",_i],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",_i],["x0","false_easting",a],["y0","false_northing",a],["long0","central_meridian",_i],["lat0","latitude_of_origin",_i],["lat0","standard_parallel_1",_i],["lat1","standard_parallel_1",_i],["lat2","standard_parallel_2",_i],["azimuth","Azimuth"],["alpha","azimuth",_i],["srsCode","name"]].forEach((function(e){return function(t,e){var n=e[0],r=e[1];!(n in t)&&r in t&&(t[n]=t[r],3===e.length&&(t[n]=e[2](t[n])))}(t,e)})),t.long0||!t.longc||"Albers_Conic_Equal_Area"!==t.projName&&"Lambert_Azimuthal_Equal_Area"!==t.projName||(t.long0=t.longc),t.lat_ts||!t.lat1||"Stereographic_South_Pole"!==t.projName&&"Polar Stereographic (variant B)"!==t.projName?!t.lat_ts&&t.lat0&&"Polar_Stereographic"===t.projName&&(t.lat_ts=t.lat0,t.lat0=_i(t.lat0>0?90:-90)):(t.lat0=_i(t.lat1>0?90:-90),t.lat_ts=t.lat1)}function Ei(t){var e=new gi(t).output(),n=e[0],r={};return vi(e,r),bi(r),r[n]}function xi(t){var e=this;if(2===arguments.length){var n=arguments[1];"string"==typeof n?"+"===n.charAt(0)?xi[t]=ui(arguments[1]):xi[t]=Ei(arguments[1]):xi[t]=n}else if(1===arguments.length){if(Array.isArray(t))return t.map((function(t){Array.isArray(t)?xi.apply(e,t):xi(t)}));if("string"==typeof t){if(t in xi)return xi[t]}else"EPSG"in t?xi["EPSG:"+t.EPSG]=t:"ESRI"in t?xi["ESRI:"+t.ESRI]=t:"IAU2000"in t?xi["IAU2000:"+t.IAU2000]=t:console.log(t);return}}!function(t){t("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),t("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),t("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs");for(var e=1;e<=60;++e)t("EPSG:"+(32600+e),"+proj=utm +zone="+e+" +datum=WGS84 +units=m"),t("EPSG:"+(32700+e),"+proj=utm +zone="+e+" +south +datum=WGS84 +units=m");t.WGS84=t["EPSG:4326"],t["EPSG:3785"]=t["EPSG:3857"],t.GOOGLE=t["EPSG:3857"],t["EPSG:900913"]=t["EPSG:3857"],t["EPSG:102113"]=t["EPSG:3857"]}(xi);const Pi=xi;var Si=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"],Oi=["3857","900913","3785","102113"];function Ci(t,e){var n,r;if(t=t||{},!e)return t;for(r in e)void 0!==(n=e[r])&&(t[r]=n);return t}function Mi(t,e,n){var r=t*e;return n/Math.sqrt(1-r*r)}function Ii(t){return t<0?-1:1}function Ti(t){return Math.abs(t)<=ri?t:t-Ii(t)*ni}function ji(t,e,n){var r=t*n,i=.5*t;return r=Math.pow((1-r)/(1+r),i),Math.tan(.5*(Zr-e))/r}function Ni(t,e){for(var n,r,i=.5*t,o=Zr-2*Math.atan(e),s=0;s<=15;s++)if(n=t*Math.sin(o),o+=r=Zr-2*Math.atan(e*Math.pow((1-n)/(1+n),i))-o,Math.abs(r)<=1e-10)return o;return-9999}function Di(t){return t}var Ai=[{init:function(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=Mi(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},forward:function(t){var e,n,r=t.x,i=t.y;if(i*ti>90&&i*ti<-90&&r*ti>180&&r*ti<-180)return null;if(Math.abs(Math.abs(i)-Zr)<=Qr)return null;if(this.sphere)e=this.x0+this.a*this.k0*Ti(r-this.long0),n=this.y0+this.a*this.k0*Math.log(Math.tan(ei+.5*i));else{var o=Math.sin(i),s=ji(this.e,i,o);e=this.x0+this.a*this.k0*Ti(r-this.long0),n=this.y0-this.a*this.k0*Math.log(s)}return t.x=e,t.y=n,t},inverse:function(t){var e,n,r=t.x-this.x0,i=t.y-this.y0;if(this.sphere)n=Zr-2*Math.atan(Math.exp(-i/(this.a*this.k0)));else{var o=Math.exp(-i/(this.a*this.k0));if(-9999===(n=Ni(this.e,o)))return null}return e=Ti(this.long0+r/(this.a*this.k0)),t.x=e,t.y=n,t},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},{init:function(){},forward:Di,inverse:Di,names:["longlat","identity"]}],Ri={},Fi=[];function Li(t,e){var n=Fi.length;return t.names?(Fi[n]=t,t.names.forEach((function(t){Ri[t.toLowerCase()]=n})),this):(console.log(e),!0)}const ki={start:function(){Ai.forEach(Li)},add:Li,get:function(t){if(!t)return!1;var e=t.toLowerCase();return void 0!==Ri[e]&&Fi[Ri[e]]?Fi[Ri[e]]:void 0}};var Vi={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},Bi=Vi.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};Vi.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var zi={wgs84:{towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},ch1903:{towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},ggrs87:{towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},nad83:{towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},nad27:{nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},potsdam:{towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},carthage:{towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},hermannskogel:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},mgi:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"},osni52:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},ire65:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},rassadiran:{towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},nzgd49:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},osgb36:{towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Ordnance Survey of Great Britain 1936"},s_jtsk:{towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},beduaram:{towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},gunung_segara:{towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},rnb72:{towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"}};for(var Ui in zi){var Gi=zi[Ui];zi[Gi.datumName]=Gi}const Wi=zi;var qi={};function Xi(t){if(0===t.length)return null;var e="@"===t[0];return e&&(t=t.slice(1)),"null"===t?{name:"null",mandatory:!e,grid:null,isNull:!0}:{name:t,mandatory:!e,grid:qi[t]||null,isNull:!1}}function Hi(t){return t/3600*Math.PI/180}function Yi(t,e,n){return String.fromCharCode.apply(null,new Uint8Array(t.buffer.slice(e,n)))}function Ji(t){return t.map((function(t){return[Hi(t.longitudeShift),Hi(t.latitudeShift)]}))}function $i(t,e,n){return{name:Yi(t,e+8,e+16).trim(),parent:Yi(t,e+24,e+24+8).trim(),lowerLatitude:t.getFloat64(e+72,n),upperLatitude:t.getFloat64(e+88,n),lowerLongitude:t.getFloat64(e+104,n),upperLongitude:t.getFloat64(e+120,n),latitudeInterval:t.getFloat64(e+136,n),longitudeInterval:t.getFloat64(e+152,n),gridNodeCount:t.getInt32(e+168,n)}}function Zi(t,e,n,r){for(var i=e+176,o=[],s=0;s<n.gridNodeCount;s++){var a={latitudeShift:t.getFloat32(i+16*s,r),longitudeShift:t.getFloat32(i+16*s+4,r),latitudeAccuracy:t.getFloat32(i+16*s+8,r),longitudeAccuracy:t.getFloat32(i+16*s+12,r)};o.push(a)}return o}function Qi(t,e){if(!(this instanceof Qi))return new Qi(t);e=e||function(t){if(t)throw t};var n=function(t){if(!function(t){return"string"==typeof t}(t))return t;if(function(t){return t in Pi}(t))return Pi[t];if(function(t){return Si.some((function(e){return t.indexOf(e)>-1}))}(t)){var e=Ei(t);if(function(t){var e=ai(t,"authority");if(e){var n=ai(e,"epsg");return n&&Oi.indexOf(n)>-1}}(e))return Pi["EPSG:3857"];var n=function(t){var e=ai(t,"extension");if(e)return ai(e,"proj4")}(e);return n?ui(n):e}return function(t){return"+"===t[0]}(t)?ui(t):void 0}(t);if("object"==typeof n){var r=Qi.projections.get(n.projName);if(r){if(n.datumCode&&"none"!==n.datumCode){var i=ai(Wi,n.datumCode);i&&(n.datum_params=n.datum_params||(i.towgs84?i.towgs84.split(","):null),n.ellps=i.ellipse,n.datumName=i.datumName?i.datumName:n.datumCode)}n.k0=n.k0||1,n.axis=n.axis||"enu",n.ellps=n.ellps||"wgs84",n.lat1=n.lat1||n.lat0;var o=function(t,e,n,r,i){if(!t){var o=ai(Vi,r);o||(o=Bi),t=o.a,e=o.b,n=o.rf}return n&&!e&&(e=(1-1/n)*t),(0===n||Math.abs(t-e)<Qr)&&(i=!0,e=t),{a:t,b:e,rf:n,sphere:i}}(n.a,n.b,n.rf,n.ellps,n.sphere),s=function(t,e,n,r){var i=t*t,o=e*e,s=(i-o)/i,a=0;return r?(i=(t*=1-s*(.16666666666666666+s*(.04722222222222222+.022156084656084655*s)))*t,s=0):a=Math.sqrt(s),{es:s,e:a,ep2:(i-o)/o}}(o.a,o.b,o.rf,n.R_A),a=function(t){return void 0===t?null:t.split(",").map(Xi)}(n.nadgrids),u=n.datum||function(t,e,n,r,i,o,s){var a={};return a.datum_type=void 0===t||"none"===t?5:4,e&&(a.datum_params=e.map(parseFloat),0===a.datum_params[0]&&0===a.datum_params[1]&&0===a.datum_params[2]||(a.datum_type=1),a.datum_params.length>3&&(0===a.datum_params[3]&&0===a.datum_params[4]&&0===a.datum_params[5]&&0===a.datum_params[6]||(a.datum_type=2,a.datum_params[3]*=$r,a.datum_params[4]*=$r,a.datum_params[5]*=$r,a.datum_params[6]=a.datum_params[6]/1e6+1))),s&&(a.datum_type=3,a.grids=s),a.a=n,a.b=r,a.es=i,a.ep2=o,a}(n.datumCode,n.datum_params,o.a,o.b,s.es,s.ep2,a);Ci(this,n),Ci(this,r),this.a=o.a,this.b=o.b,this.rf=o.rf,this.sphere=o.sphere,this.es=s.es,this.e=s.e,this.ep2=s.ep2,this.datum=u,this.init(),e(null,this)}else e("Could not get projection name from: "+t)}else e("Could not parse to valid json: "+t)}Qi.projections=ki,Qi.projections.start();const Ki=Qi;function to(t,e,n){var r,i,o,s,a=t.x,u=t.y,c=t.z?t.z:0;if(u<-Zr&&u>-1.001*Zr)u=-Zr;else if(u>Zr&&u<1.001*Zr)u=Zr;else{if(u<-Zr)return{x:-1/0,y:-1/0,z:t.z};if(u>Zr)return{x:1/0,y:1/0,z:t.z}}return a>Math.PI&&(a-=2*Math.PI),i=Math.sin(u),s=Math.cos(u),o=i*i,{x:((r=n/Math.sqrt(1-e*o))+c)*s*Math.cos(a),y:(r+c)*s*Math.sin(a),z:(r*(1-e)+c)*i}}function eo(t,e,n,r){var i,o,s,a,u,c,l,h,p,f,d,g,y,v,m,_=t.x,b=t.y,w=t.z?t.z:0;if(i=Math.sqrt(_*_+b*b),o=Math.sqrt(_*_+b*b+w*w),i/n<1e-12){if(v=0,o/n<1e-12)return m=-r,{x:t.x,y:t.y,z:t.z}}else v=Math.atan2(b,_);s=w/o,h=(a=i/o)*(1-e)*(u=1/Math.sqrt(1-e*(2-e)*a*a)),p=s*u,y=0;do{y++,c=e*(l=n/Math.sqrt(1-e*p*p))/(l+(m=i*h+w*p-l*(1-e*p*p))),g=(d=s*(u=1/Math.sqrt(1-c*(2-c)*a*a)))*h-(f=a*(1-c)*u)*p,h=f,p=d}while(g*g>1e-24&&y<30);return{x:v,y:Math.atan(d/Math.abs(f)),z:m}}function no(t){return 1===t||2===t}function ro(t,e,n){if(null===t.grids||0===t.grids.length)return console.log("Grid shift grids not found"),-1;var r={x:-n.x,y:n.y},i={x:Number.NaN,y:Number.NaN},o=[];t:for(var s=0;s<t.grids.length;s++){var a=t.grids[s];if(o.push(a.name),a.isNull){i=r;break}if(a.mandatory,null!==a.grid)for(var u=a.grid.subgrids,c=0,l=u.length;c<l;c++){var h=u[c],p=(Math.abs(h.del[1])+Math.abs(h.del[0]))/1e4,f=h.ll[0]-p,d=h.ll[1]-p,g=h.ll[0]+(h.lim[0]-1)*h.del[0]+p,y=h.ll[1]+(h.lim[1]-1)*h.del[1]+p;if(!(d>r.y||f>r.x||y<r.y||g<r.x||(i=io(r,e,h),isNaN(i.x))))break t}else if(a.mandatory)return console.log("Unable to find mandatory grid '"+a.name+"'"),-1}return isNaN(i.x)?(console.log("Failed to find a grid shift table for location '"+-r.x*ti+" "+r.y*ti+" tried: '"+o+"'"),-1):(n.x=-i.x,n.y=i.y,0)}function io(t,e,n){var r={x:Number.NaN,y:Number.NaN};if(isNaN(t.x))return r;var i={x:t.x,y:t.y};i.x-=n.ll[0],i.y-=n.ll[1],i.x=Ti(i.x-Math.PI)+Math.PI;var o=oo(i,n);if(e){if(isNaN(o.x))return r;o.x=i.x-o.x,o.y=i.y-o.y;var s,a,u=9;do{if(a=oo(o,n),isNaN(a.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");break}s={x:i.x-(a.x+o.x),y:i.y-(a.y+o.y)},o.x+=s.x,o.y+=s.y}while(u--&&Math.abs(s.x)>1e-12&&Math.abs(s.y)>1e-12);if(u<0)return console.log("Inverse grid shift iterator failed to converge."),r;r.x=Ti(o.x+n.ll[0]),r.y=o.y+n.ll[1]}else isNaN(o.x)||(r.x=t.x+o.x,r.y=t.y+o.y);return r}function oo(t,e){var n,r={x:t.x/e.del[0],y:t.y/e.del[1]},i=Math.floor(r.x),o=Math.floor(r.y),s=r.x-1*i,a=r.y-1*o,u={x:Number.NaN,y:Number.NaN};if(i<0||i>=e.lim[0])return u;if(o<0||o>=e.lim[1])return u;n=o*e.lim[0]+i;var c=e.cvs[n][0],l=e.cvs[n][1];n++;var h=e.cvs[n][0],p=e.cvs[n][1];n+=e.lim[0];var f=e.cvs[n][0],d=e.cvs[n][1];n--;var g=e.cvs[n][0],y=e.cvs[n][1],v=s*a,m=s*(1-a),_=(1-s)*(1-a),b=(1-s)*a;return u.x=_*c+m*h+b*g+v*f,u.y=_*l+m*p+b*y+v*d,u}function so(t,e,n){var r,i,o,s=n.x,a=n.y,u=n.z||0,c={};for(o=0;o<3;o++)if(!e||2!==o||void 0!==n.z)switch(0===o?(r=s,i=-1!=="ew".indexOf(t.axis[o])?"x":"y"):1===o?(r=a,i=-1!=="ns".indexOf(t.axis[o])?"y":"x"):(r=u,i="z"),t.axis[o]){case"e":case"n":c[i]=r;break;case"w":case"s":c[i]=-r;break;case"u":void 0!==n[i]&&(c.z=r);break;case"d":void 0!==n[i]&&(c.z=-r);break;default:return null}return c}function ao(t){var e={x:t[0],y:t[1]};return t.length>2&&(e.z=t[2]),t.length>3&&(e.m=t[3]),e}function uo(t){if("function"==typeof Number.isFinite){if(Number.isFinite(t))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof t||t!=t||!isFinite(t))throw new TypeError("coordinates must be finite numbers")}function co(t,e,n,r){var i,o=void 0!==(n=Array.isArray(n)?ao(n):{x:n.x,y:n.y,z:n.z,m:n.m}).z;if(function(t){uo(t.x),uo(t.y)}(n),t.datum&&e.datum&&function(t,e){return(1===t.datum.datum_type||2===t.datum.datum_type||3===t.datum.datum_type)&&"WGS84"!==e.datumCode||(1===e.datum.datum_type||2===e.datum.datum_type||3===e.datum.datum_type)&&"WGS84"!==t.datumCode}(t,e)&&(n=co(t,i=new Ki("WGS84"),n,r),t=i),r&&"enu"!==t.axis&&(n=so(t,!1,n)),"longlat"===t.projName)n={x:n.x*Kr,y:n.y*Kr,z:n.z||0};else if(t.to_meter&&(n={x:n.x*t.to_meter,y:n.y*t.to_meter,z:n.z||0}),!(n=t.inverse(n)))return;if(t.from_greenwich&&(n.x+=t.from_greenwich),n=function(t,e,n){if(function(t,e){return t.datum_type===e.datum_type&&!(t.a!==e.a||Math.abs(t.es-e.es)>5e-11)&&(1===t.datum_type?t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]:2!==t.datum_type||t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]&&t.datum_params[3]===e.datum_params[3]&&t.datum_params[4]===e.datum_params[4]&&t.datum_params[5]===e.datum_params[5]&&t.datum_params[6]===e.datum_params[6])}(t,e))return n;if(5===t.datum_type||5===e.datum_type)return n;var r=t.a,i=t.es;if(3===t.datum_type){if(0!==ro(t,!1,n))return;r=Yr,i=Jr}var o=e.a,s=e.b,a=e.es;return 3===e.datum_type&&(o=Yr,s=6356752.314,a=Jr),i!==a||r!==o||no(t.datum_type)||no(e.datum_type)?(n=to(n,i,r),no(t.datum_type)&&(n=function(t,e,n){if(1===e)return{x:t.x+n[0],y:t.y+n[1],z:t.z+n[2]};if(2===e){var r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],u=n[5],c=n[6];return{x:c*(t.x-u*t.y+a*t.z)+r,y:c*(u*t.x+t.y-s*t.z)+i,z:c*(-a*t.x+s*t.y+t.z)+o}}}(n,t.datum_type,t.datum_params)),no(e.datum_type)&&(n=function(t,e,n){if(1===e)return{x:t.x-n[0],y:t.y-n[1],z:t.z-n[2]};if(2===e){var r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],u=n[5],c=n[6],l=(t.x-r)/c,h=(t.y-i)/c,p=(t.z-o)/c;return{x:l+u*h-a*p,y:-u*l+h+s*p,z:a*l-s*h+p}}}(n,e.datum_type,e.datum_params)),n=eo(n,a,o,s),3!==e.datum_type||0===ro(e,!0,n)?n:void 0):n}(t.datum,e.datum,n))return e.from_greenwich&&(n={x:n.x-e.from_greenwich,y:n.y,z:n.z||0}),"longlat"===e.projName?n={x:n.x*ti,y:n.y*ti,z:n.z||0}:(n=e.forward(n),e.to_meter&&(n={x:n.x/e.to_meter,y:n.y/e.to_meter,z:n.z||0})),r&&"enu"!==e.axis?so(e,!0,n):(n&&!o&&delete n.z,n)}var lo=Ki("WGS84");function ho(t,e,n,r){var i,o,s;return Array.isArray(n)?(i=co(t,e,n,r)||{x:NaN,y:NaN},n.length>2?void 0!==t.name&&"geocent"===t.name||void 0!==e.name&&"geocent"===e.name?"number"==typeof i.z?[i.x,i.y,i.z].concat(n.slice(3)):[i.x,i.y,n[2]].concat(n.slice(3)):[i.x,i.y].concat(n.slice(2)):[i.x,i.y]):(o=co(t,e,n,r),2===(s=Object.keys(n)).length||s.forEach((function(r){if(void 0!==t.name&&"geocent"===t.name||void 0!==e.name&&"geocent"===e.name){if("x"===r||"y"===r||"z"===r)return}else if("x"===r||"y"===r)return;o[r]=n[r]})),o)}function po(t){return t instanceof Ki?t:t.oProj?t.oProj:Ki(t)}const fo=function(t,e,n){t=po(t);var r,i=!1;return void 0===e?(e=t,t=lo,i=!0):(void 0!==e.x||Array.isArray(e))&&(n=e,e=t,t=lo,i=!0),e=po(e),n?ho(t,e,n):(r={forward:function(n,r){return ho(t,e,n,r)},inverse:function(n,r){return ho(e,t,n,r)}},i&&(r.oProj=e),r)};var go="AJSAJS",yo="AFAFAF",vo=65,mo=73,_o=79;const bo={forward:wo,inverse:function(t){var e=So(Co(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat,e.lon,e.lat]:[e.left,e.bottom,e.right,e.top]},toPoint:Eo};function wo(t,e){return e=e||5,function(t,e){var n,r,i,o,s,a,u,c,l,h,p,f="00000"+t.easting,d="00000"+t.northing;return t.zoneNumber+t.zoneLetter+(l=t.easting,h=t.northing,p=Oo(t.zoneNumber),n=Math.floor(l/1e5),r=Math.floor(h/1e5)%20,o=go.charCodeAt(i=p-1),s=yo.charCodeAt(i),c=!1,(a=o+n-1)>90&&(a=a-90+vo-1,c=!0),(a===mo||o<mo&&a>mo||(a>mo||o<mo)&&c)&&a++,(a===_o||o<_o&&a>_o||(a>_o||o<_o)&&c)&&++a===mo&&a++,a>90&&(a=a-90+vo-1),(u=s+r)>86?(u=u-86+vo-1,c=!0):c=!1,(u===mo||s<mo&&u>mo||(u>mo||s<mo)&&c)&&u++,(u===_o||s<_o&&u>_o||(u>_o||s<_o)&&c)&&++u===mo&&u++,u>86&&(u=u-86+vo-1),String.fromCharCode(a)+String.fromCharCode(u))+f.substr(f.length-5,e)+d.substr(d.length-5,e)}(function(t){var e,n,r,i,o,s,a,u=t.lat,c=t.lon,l=6378137,h=.00669438,p=.9996,f=xo(u),d=xo(c);a=Math.floor((c+180)/6)+1,180===c&&(a=60),u>=56&&u<64&&c>=3&&c<12&&(a=32),u>=72&&u<84&&(c>=0&&c<9?a=31:c>=9&&c<21?a=33:c>=21&&c<33?a=35:c>=33&&c<42&&(a=37)),s=xo(6*(a-1)-180+3),e=.006739496752268451,n=l/Math.sqrt(1-h*Math.sin(f)*Math.sin(f)),r=Math.tan(f)*Math.tan(f),i=e*Math.cos(f)*Math.cos(f);var g,y,v=p*n*((o=Math.cos(f)*(d-s))+(1-r+i)*o*o*o/6+(5-18*r+r*r+72*i-58*e)*o*o*o*o*o/120)+5e5,m=p*(l*(.9983242984503243*f-.002514607064228144*Math.sin(2*f)+2639046602129982e-21*Math.sin(4*f)-3.418046101696858e-9*Math.sin(6*f))+n*Math.tan(f)*(o*o/2+(5-r+9*i+4*i*i)*o*o*o*o/24+(61-58*r+r*r+600*i-2.2240339282485886)*o*o*o*o*o*o/720));return u<0&&(m+=1e7),{northing:Math.round(m),easting:Math.round(v),zoneNumber:a,zoneLetter:(g=u,y="Z",84>=g&&g>=72?y="X":72>g&&g>=64?y="W":64>g&&g>=56?y="V":56>g&&g>=48?y="U":48>g&&g>=40?y="T":40>g&&g>=32?y="S":32>g&&g>=24?y="R":24>g&&g>=16?y="Q":16>g&&g>=8?y="P":8>g&&g>=0?y="N":0>g&&g>=-8?y="M":-8>g&&g>=-16?y="L":-16>g&&g>=-24?y="K":-24>g&&g>=-32?y="J":-32>g&&g>=-40?y="H":-40>g&&g>=-48?y="G":-48>g&&g>=-56?y="F":-56>g&&g>=-64?y="E":-64>g&&g>=-72?y="D":-72>g&&g>=-80&&(y="C"),y)}}({lat:t[1],lon:t[0]}),e)}function Eo(t){var e=So(Co(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}function xo(t){return t*(Math.PI/180)}function Po(t){return t/Math.PI*180}function So(t){var e=t.northing,n=t.easting,r=t.zoneLetter,i=t.zoneNumber;if(i<0||i>60)return null;var o,s,a,u,c,l,h,p,f,d=.9996,g=6378137,y=.00669438,v=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),m=n-5e5,_=e;r<"N"&&(_-=1e7),h=6*(i-1)-180+3,o=.006739496752268451,f=(p=_/d/6367449.145945056)+(3*v/2-27*v*v*v/32)*Math.sin(2*p)+(21*v*v/16-55*v*v*v*v/32)*Math.sin(4*p)+151*v*v*v/96*Math.sin(6*p),s=g/Math.sqrt(1-y*Math.sin(f)*Math.sin(f)),a=Math.tan(f)*Math.tan(f),u=o*Math.cos(f)*Math.cos(f),c=.99330562*g/Math.pow(1-y*Math.sin(f)*Math.sin(f),1.5),l=m/(s*d);var b=f-s*Math.tan(f)/c*(l*l/2-(5+3*a+10*u-4*u*u-9*o)*l*l*l*l/24+(61+90*a+298*u+45*a*a-1.6983531815716497-3*u*u)*l*l*l*l*l*l/720);b=Po(b);var w,E=(l-(1+2*a+u)*l*l*l/6+(5-2*u+28*a-3*u*u+8*o+24*a*a)*l*l*l*l*l/120)/Math.cos(f);if(E=h+Po(E),t.accuracy){var x=So({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});w={top:x.lat,right:x.lon,bottom:b,left:E}}else w={lat:b,lon:E};return w}function Oo(t){var e=t%6;return 0===e&&(e=6),e}function Co(t){if(t&&0===t.length)throw"MGRSPoint coverting from nothing";for(var e,n=t.length,r=null,i="",o=0;!/[A-Z]/.test(e=t.charAt(o));){if(o>=2)throw"MGRSPoint bad conversion from: "+t;i+=e,o++}var s=parseInt(i,10);if(0===o||o+3>n)throw"MGRSPoint bad conversion from: "+t;var a=t.charAt(o++);if(a<="A"||"B"===a||"Y"===a||a>="Z"||"I"===a||"O"===a)throw"MGRSPoint zone letter "+a+" not handled: "+t;r=t.substring(o,o+=2);for(var u=Oo(s),c=function(t,e){for(var n=go.charCodeAt(e-1),r=1e5,i=!1;n!==t.charCodeAt(0);){if(++n===mo&&n++,n===_o&&n++,n>90){if(i)throw"Bad character: "+t;n=vo,i=!0}r+=1e5}return r}(r.charAt(0),u),l=function(t,e){if(t>"V")throw"MGRSPoint given invalid Northing "+t;for(var n=yo.charCodeAt(e-1),r=0,i=!1;n!==t.charCodeAt(0);){if(++n===mo&&n++,n===_o&&n++,n>86){if(i)throw"Bad character: "+t;n=vo,i=!0}r+=1e5}return r}(r.charAt(1),u);l<Mo(a);)l+=2e6;var h=n-o;if(h%2!=0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+t;var p,f,d,g=h/2,y=0,v=0;return g>0&&(p=1e5/Math.pow(10,g),f=t.substring(o,o+g),y=parseFloat(f)*p,d=t.substring(o+g),v=parseFloat(d)*p),{easting:y+c,northing:v+l,zoneLetter:a,zoneNumber:s,accuracy:p}}function Mo(t){var e;switch(t){case"C":e=11e5;break;case"D":e=2e6;break;case"E":e=28e5;break;case"F":e=37e5;break;case"G":e=46e5;break;case"H":e=55e5;break;case"J":e=64e5;break;case"K":e=73e5;break;case"L":e=82e5;break;case"M":e=91e5;break;case"N":e=0;break;case"P":e=8e5;break;case"Q":e=17e5;break;case"R":e=26e5;break;case"S":e=35e5;break;case"T":e=44e5;break;case"U":e=53e5;break;case"V":e=62e5;break;case"W":e=7e6;break;case"X":e=79e5;break;default:e=-1}if(e>=0)return e;throw"Invalid zone letter: "+t}function Io(t,e,n){if(!(this instanceof Io))return new Io(t,e,n);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if("object"==typeof t)this.x=t.x,this.y=t.y,this.z=t.z||0;else if("string"==typeof t&&void 0===e){var r=t.split(",");this.x=parseFloat(r[0],10),this.y=parseFloat(r[1],10),this.z=parseFloat(r[2],10)||0}else this.x=t,this.y=e,this.z=n||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}Io.fromMGRS=function(t){return new Io(Eo(t))},Io.prototype.toMGRS=function(t){return wo([this.x,this.y],t)};const To=Io;var jo=.046875,No=.01953125,Do=.01068115234375;function Ao(t){var e=[];e[0]=1-t*(.25+t*(jo+t*(No+t*Do))),e[1]=t*(.75-t*(jo+t*(No+t*Do)));var n=t*t;return e[2]=n*(.46875-t*(.013020833333333334+.007120768229166667*t)),n*=t,e[3]=n*(.3645833333333333-.005696614583333333*t),e[4]=n*t*.3076171875,e}function Ro(t,e,n,r){return n*=e,e*=e,r[0]*t-n*(r[1]+e*(r[2]+e*(r[3]+e*r[4])))}function Fo(t,e,n){for(var r=1/(1-e),i=t,o=20;o;--o){var s=Math.sin(i),a=1-e*s*s;if(i-=a=(Ro(i,s,Math.cos(i),n)-t)*(a*Math.sqrt(a))*r,Math.abs(a)<Qr)return i}return i}const Lo={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=Ao(this.es),this.ml0=Ro(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(t){var e,n,r,i=t.x,o=t.y,s=Ti(i-this.long0),a=Math.sin(o),u=Math.cos(o);if(this.es){var c=u*s,l=Math.pow(c,2),h=this.ep2*Math.pow(u,2),p=Math.pow(h,2),f=Math.abs(u)>Qr?Math.tan(o):0,d=Math.pow(f,2),g=Math.pow(d,2);e=1-this.es*Math.pow(a,2),c/=Math.sqrt(e);var y=Ro(o,a,u,this.en);n=this.a*(this.k0*c*(1+l/6*(1-d+h+l/20*(5-18*d+g+14*h-58*d*h+l/42*(61+179*g-g*d-479*d)))))+this.x0,r=this.a*(this.k0*(y-this.ml0+a*s*c/2*(1+l/12*(5-d+9*h+4*p+l/30*(61+g-58*d+270*h-330*d*h+l/56*(1385+543*g-g*d-3111*d))))))+this.y0}else{var v=u*Math.sin(s);if(Math.abs(Math.abs(v)-1)<Qr)return 93;if(n=.5*this.a*this.k0*Math.log((1+v)/(1-v))+this.x0,r=u*Math.cos(s)/Math.sqrt(1-Math.pow(v,2)),(v=Math.abs(r))>=1){if(v-1>Qr)return 93;r=0}else r=Math.acos(r);o<0&&(r=-r),r=this.a*this.k0*(r-this.lat0)+this.y0}return t.x=n,t.y=r,t},inverse:function(t){var e,n,r,i,o=(t.x-this.x0)*(1/this.a),s=(t.y-this.y0)*(1/this.a);if(this.es)if(n=Fo(e=this.ml0+s/this.k0,this.es,this.en),Math.abs(n)<Zr){var a=Math.sin(n),u=Math.cos(n),c=Math.abs(u)>Qr?Math.tan(n):0,l=this.ep2*Math.pow(u,2),h=Math.pow(l,2),p=Math.pow(c,2),f=Math.pow(p,2);e=1-this.es*Math.pow(a,2);var d=o*Math.sqrt(e)/this.k0,g=Math.pow(d,2);r=n-(e*=c)*g/(1-this.es)*.5*(1-g/12*(5+3*p-9*l*p+l-4*h-g/30*(61+90*p-252*l*p+45*f+46*l-g/56*(1385+3633*p+4095*f+1574*f*p)))),i=Ti(this.long0+d*(1-g/6*(1+2*p+l-g/20*(5+28*p+24*f+8*l*p+6*l-g/42*(61+662*p+1320*f+720*f*p))))/u)}else r=Zr*Ii(s),i=0;else{var y=Math.exp(o/this.k0),v=.5*(y-1/y),m=this.lat0+s/this.k0,_=Math.cos(m);e=Math.sqrt((1-Math.pow(_,2))/(1+Math.pow(v,2))),r=Math.asin(e),s<0&&(r=-r),i=0===v&&0===_?0:Ti(Math.atan2(v,_)+this.long0)}return t.x=i,t.y=r,t},names:["Fast_Transverse_Mercator","Fast Transverse Mercator"]};function ko(t){var e=Math.exp(t);return(e-1/e)/2}function Vo(t,e){t=Math.abs(t),e=Math.abs(e);var n=Math.max(t,e),r=Math.min(t,e)/(n||1);return n*Math.sqrt(1+Math.pow(r,2))}function Bo(t,e){for(var n,r=2*Math.cos(2*e),i=t.length-1,o=t[i],s=0;--i>=0;)n=r*o-s+t[i],s=o,o=n;return e+n*Math.sin(2*e)}function zo(t,e,n){for(var r,i,o=Math.sin(e),s=Math.cos(e),a=ko(n),u=function(t){var e=Math.exp(t);return(e+1/e)/2}(n),c=2*s*u,l=-2*o*a,h=t.length-1,p=t[h],f=0,d=0,g=0;--h>=0;)r=d,i=f,p=c*(d=p)-r-l*(f=g)+t[h],g=l*d-i+c*f;return[(c=o*u)*p-(l=s*a)*g,c*g+l*p]}const Uo={init:function(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(Lo.init.apply(this),this.forward=Lo.forward,this.inverse=Lo.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),e=t/(2-t),n=e;this.cgb[0]=e*(2+e*(-2/3+e*(e*(116/45+e*(26/45+e*(-2854/675)))-2))),this.cbg[0]=e*(e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))-2),n*=e,this.cgb[1]=n*(7/3+e*(e*(-227/45+e*(2704/315+e*(2323/945)))-1.6)),this.cbg[1]=n*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),n*=e,this.cgb[2]=n*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=n*(-26/15+e*(34/21+e*(1.6+e*(-12686/2835)))),n*=e,this.cgb[3]=n*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=n*(1237/630+e*(e*(-24832/14175)-2.4)),n*=e,this.cgb[4]=n*(4174/315+e*(-144838/6237)),this.cbg[4]=n*(-734/315+e*(109598/31185)),n*=e,this.cgb[5]=n*(601676/22275),this.cbg[5]=n*(444337/155925),n=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+n*(1/4+n*(1/64+n/256))),this.utg[0]=e*(e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))-.5),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=n*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=n*(13/48+e*(e*(557/1440+e*(281/630+e*(-1983433/1935360)))-.6)),n*=e,this.utg[2]=n*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=n*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),n*=e,this.utg[3]=n*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=n*(49561/161280+e*(-179/168+e*(6601661/7257600))),n*=e,this.utg[4]=n*(-4583/161280+e*(108847/3991680)),this.gtu[4]=n*(34729/80640+e*(-3418889/1995840)),n*=e,this.utg[5]=n*(-20648693/638668800),this.gtu[5]=.6650675310896665*n;var r=Bo(this.cbg,this.lat0);this.Zb=-this.Qn*(r+function(t,e){for(var n,r=2*Math.cos(e),i=t.length-1,o=t[i],s=0;--i>=0;)n=r*o-s+t[i],s=o,o=n;return Math.sin(e)*n}(this.gtu,2*r))},forward:function(t){var e=Ti(t.x-this.long0),n=t.y;n=Bo(this.cbg,n);var r=Math.sin(n),i=Math.cos(n),o=Math.sin(e),s=Math.cos(e);n=Math.atan2(r,s*i),e=Math.atan2(o*i,Vo(r,i*s)),e=function(t){var e=Math.abs(t);return e=function(t){var e=1+t,n=e-1;return 0===n?t:t*Math.log(e)/n}(e*(1+e/(Vo(1,e)+1))),t<0?-e:e}(Math.tan(e));var a,u,c=zo(this.gtu,2*n,2*e);return n+=c[0],e+=c[1],Math.abs(e)<=2.623395162778?(a=this.a*(this.Qn*e)+this.x0,u=this.a*(this.Qn*n+this.Zb)+this.y0):(a=1/0,u=1/0),t.x=a,t.y=u,t},inverse:function(t){var e,n,r=(t.x-this.x0)*(1/this.a),i=(t.y-this.y0)*(1/this.a);if(i=(i-this.Zb)/this.Qn,r/=this.Qn,Math.abs(r)<=2.623395162778){var o=zo(this.utg,2*i,2*r);i+=o[0],r+=o[1],r=Math.atan(ko(r));var s=Math.sin(i),a=Math.cos(i),u=Math.sin(r),c=Math.cos(r);i=Math.atan2(s*c,Vo(u,c*a)),e=Ti((r=Math.atan2(u,c*a))+this.long0),n=Bo(this.cgb,i)}else e=1/0,n=1/0;return t.x=e,t.y=n,t},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"]},Go={init:function(){var t=function(t,e){if(void 0===t){if((t=Math.floor(30*(Ti(e)+Math.PI)/Math.PI)+1)<0)return 0;if(t>60)return 60}return t}(this.zone,this.long0);if(void 0===t)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*Kr,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,Uo.init.apply(this),this.forward=Uo.forward,this.inverse=Uo.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"};function Wo(t,e){return Math.pow((1-t)/(1+t),e)}const qo={init:function(){var t=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+ei)/(Math.pow(Math.tan(.5*this.lat0+ei),this.C)*Wo(this.e*t,this.ratexp))},forward:function(t){var e=t.x,n=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*n+ei),this.C)*Wo(this.e*Math.sin(n),this.ratexp))-Zr,t.x=this.C*e,t},inverse:function(t){for(var e=t.x/this.C,n=t.y,r=Math.pow(Math.tan(.5*n+ei)/this.K,1/this.C),i=20;i>0&&(n=2*Math.atan(r*Wo(this.e*Math.sin(t.y),-.5*this.e))-Zr,!(Math.abs(n-t.y)<1e-14));--i)t.y=n;return i?(t.x=e,t.y=n,t):null},names:["gauss"]},Xo={init:function(){qo.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(t){var e,n,r,i;return t.x=Ti(t.x-this.long0),qo.forward.apply(this,[t]),e=Math.sin(t.y),n=Math.cos(t.y),r=Math.cos(t.x),i=this.k0*this.R2/(1+this.sinc0*e+this.cosc0*n*r),t.x=i*n*Math.sin(t.x),t.y=i*(this.cosc0*e-this.sinc0*n*r),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},inverse:function(t){var e,n,r,i,o;if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,o=Vo(t.x,t.y)){var s=2*Math.atan2(o,this.R2);e=Math.sin(s),n=Math.cos(s),i=Math.asin(n*this.sinc0+t.y*e*this.cosc0/o),r=Math.atan2(t.x*e,o*this.cosc0*n-t.y*this.sinc0*e)}else i=this.phic0,r=0;return t.x=r,t.y=i,qo.inverse.apply(this,[t]),t.x=Ti(t.x+this.long0),t},names:["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]},Ho={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=Qr&&(this.k0=.5*(1+Ii(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=Qr&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=Qr&&Math.abs(Math.cos(this.lat_ts))>Qr&&(this.k0=.5*this.cons*Mi(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/ji(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=Mi(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-Zr,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(t){var e,n,r,i,o,s,a=t.x,u=t.y,c=Math.sin(u),l=Math.cos(u),h=Ti(a-this.long0);return Math.abs(Math.abs(a-this.long0)-Math.PI)<=Qr&&Math.abs(u+this.lat0)<=Qr?(t.x=NaN,t.y=NaN,t):this.sphere?(e=2*this.k0/(1+this.sinlat0*c+this.coslat0*l*Math.cos(h)),t.x=this.a*e*l*Math.sin(h)+this.x0,t.y=this.a*e*(this.coslat0*c-this.sinlat0*l*Math.cos(h))+this.y0,t):(n=2*Math.atan(this.ssfn_(u,c,this.e))-Zr,i=Math.cos(n),r=Math.sin(n),Math.abs(this.coslat0)<=Qr?(o=ji(this.e,u*this.con,this.con*c),s=2*this.a*this.k0*o/this.cons,t.x=this.x0+s*Math.sin(a-this.long0),t.y=this.y0-this.con*s*Math.cos(a-this.long0),t):(Math.abs(this.sinlat0)<Qr?(e=2*this.a*this.k0/(1+i*Math.cos(h)),t.y=e*r):(e=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*r+this.cosX0*i*Math.cos(h))),t.y=e*(this.cosX0*r-this.sinX0*i*Math.cos(h))+this.y0),t.x=e*i*Math.sin(h)+this.x0,t))},inverse:function(t){var e,n,r,i,o;t.x-=this.x0,t.y-=this.y0;var s=Math.sqrt(t.x*t.x+t.y*t.y);if(this.sphere){var a=2*Math.atan(s/(2*this.a*this.k0));return e=this.long0,n=this.lat0,s<=Qr?(t.x=e,t.y=n,t):(n=Math.asin(Math.cos(a)*this.sinlat0+t.y*Math.sin(a)*this.coslat0/s),e=Math.abs(this.coslat0)<Qr?this.lat0>0?Ti(this.long0+Math.atan2(t.x,-1*t.y)):Ti(this.long0+Math.atan2(t.x,t.y)):Ti(this.long0+Math.atan2(t.x*Math.sin(a),s*this.coslat0*Math.cos(a)-t.y*this.sinlat0*Math.sin(a))),t.x=e,t.y=n,t)}if(Math.abs(this.coslat0)<=Qr){if(s<=Qr)return n=this.lat0,e=this.long0,t.x=e,t.y=n,t;t.x*=this.con,t.y*=this.con,r=s*this.cons/(2*this.a*this.k0),n=this.con*Ni(this.e,r),e=this.con*Ti(this.con*this.long0+Math.atan2(t.x,-1*t.y))}else i=2*Math.atan(s*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,s<=Qr?o=this.X0:(o=Math.asin(Math.cos(i)*this.sinX0+t.y*Math.sin(i)*this.cosX0/s),e=Ti(this.long0+Math.atan2(t.x*Math.sin(i),s*this.cosX0*Math.cos(i)-t.y*this.sinX0*Math.sin(i)))),n=-1*Ni(this.e,Math.tan(.5*(Zr+o)));return t.x=e,t.y=n,t},names:["stere","Stereographic_South_Pole","Polar Stereographic (variant B)","Polar_Stereographic"],ssfn_:function(t,e,n){return e*=n,Math.tan(.5*(Zr+t))*Math.pow((1-e)/(1+e),.5*n)}},Yo={init:function(){var t=this.lat0;this.lambda0=this.long0;var e=Math.sin(t),n=this.a,r=1/this.rf,i=2*r-Math.pow(r,2),o=this.e=Math.sqrt(i);this.R=this.k0*n*Math.sqrt(1-i)/(1-i*Math.pow(e,2)),this.alpha=Math.sqrt(1+i/(1-i)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(e/this.alpha);var s=Math.log(Math.tan(Math.PI/4+this.b0/2)),a=Math.log(Math.tan(Math.PI/4+t/2)),u=Math.log((1+o*e)/(1-o*e));this.K=s-this.alpha*a+this.alpha*o/2*u},forward:function(t){var e=Math.log(Math.tan(Math.PI/4-t.y/2)),n=this.e/2*Math.log((1+this.e*Math.sin(t.y))/(1-this.e*Math.sin(t.y))),r=-this.alpha*(e+n)+this.K,i=2*(Math.atan(Math.exp(r))-Math.PI/4),o=this.alpha*(t.x-this.lambda0),s=Math.atan(Math.sin(o)/(Math.sin(this.b0)*Math.tan(i)+Math.cos(this.b0)*Math.cos(o))),a=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(o));return t.y=this.R/2*Math.log((1+Math.sin(a))/(1-Math.sin(a)))+this.y0,t.x=this.R*s+this.x0,t},inverse:function(t){for(var e=t.x-this.x0,n=t.y-this.y0,r=e/this.R,i=2*(Math.atan(Math.exp(n/this.R))-Math.PI/4),o=Math.asin(Math.cos(this.b0)*Math.sin(i)+Math.sin(this.b0)*Math.cos(i)*Math.cos(r)),s=Math.atan(Math.sin(r)/(Math.cos(this.b0)*Math.cos(r)-Math.sin(this.b0)*Math.tan(i))),a=this.lambda0+s/this.alpha,u=0,c=o,l=-1e3,h=0;Math.abs(c-l)>1e-7;){if(++h>20)return;u=1/this.alpha*(Math.log(Math.tan(Math.PI/4+o/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(c))/2)),l=c,c=2*Math.atan(Math.exp(u))-Math.PI/2}return t.x=a,t.y=c,t},names:["somerc"]};var Jo=1e-7;const $o={init:function(){var t,e,n,r,i,o,s,a,u,c,l,h,p,f=0,d=0,g=0,y=0,v=0,m=0,_=0;this.no_off=(p="object"==typeof(h=this).PROJECTION?Object.keys(h.PROJECTION)[0]:h.PROJECTION,"no_uoff"in h||"no_off"in h||-1!==["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"].indexOf(p)),this.no_rot="no_rot"in this;var b=!1;"alpha"in this&&(b=!0);var w=!1;if("rectified_grid_angle"in this&&(w=!0),b&&(_=this.alpha),w&&(f=this.rectified_grid_angle*Kr),b||w)d=this.longc;else if(g=this.long1,v=this.lat1,y=this.long2,m=this.lat2,Math.abs(v-m)<=Jo||(t=Math.abs(v))<=Jo||Math.abs(t-Zr)<=Jo||Math.abs(Math.abs(this.lat0)-Zr)<=Jo||Math.abs(Math.abs(m)-Zr)<=Jo)throw new Error;var E=1-this.es;e=Math.sqrt(E),Math.abs(this.lat0)>Qr?(a=Math.sin(this.lat0),n=Math.cos(this.lat0),t=1-this.es*a*a,this.B=n*n,this.B=Math.sqrt(1+this.es*this.B*this.B/E),this.A=this.B*this.k0*e/t,(i=(r=this.B*e/(n*Math.sqrt(t)))*r-1)<=0?i=0:(i=Math.sqrt(i),this.lat0<0&&(i=-i)),this.E=i+=r,this.E*=Math.pow(ji(this.e,this.lat0,a),this.B)):(this.B=1/e,this.A=this.k0,this.E=r=i=1),b||w?(b?(l=Math.asin(Math.sin(_)/r),w||(f=_)):(l=f,_=Math.asin(r*Math.sin(l))),this.lam0=d-Math.asin(.5*(i-1/i)*Math.tan(l))/this.B):(o=Math.pow(ji(this.e,v,Math.sin(v)),this.B),s=Math.pow(ji(this.e,m,Math.sin(m)),this.B),i=this.E/o,u=(s-o)/(s+o),c=((c=this.E*this.E)-s*o)/(c+s*o),(t=g-y)<-Math.pi?y-=ni:t>Math.pi&&(y+=ni),this.lam0=Ti(.5*(g+y)-Math.atan(c*Math.tan(.5*this.B*(g-y))/u)/this.B),l=Math.atan(2*Math.sin(this.B*Ti(g-this.lam0))/(i-1/i)),f=_=Math.asin(r*Math.sin(l))),this.singam=Math.sin(l),this.cosgam=Math.cos(l),this.sinrot=Math.sin(f),this.cosrot=Math.cos(f),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.A,this.B,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(r*r-1)/Math.cos(_))),this.lat0<0&&(this.u_0=-this.u_0)),i=.5*l,this.v_pole_n=this.ArB*Math.log(Math.tan(ei-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(ei+i))},forward:function(t){var e,n,r,i,o,s,a,u,c={};if(t.x=t.x-this.lam0,Math.abs(Math.abs(t.y)-Zr)>Qr){if(e=.5*((o=this.E/Math.pow(ji(this.e,t.y,Math.sin(t.y)),this.B))-(s=1/o)),n=.5*(o+s),i=Math.sin(this.B*t.x),r=(e*this.singam-i*this.cosgam)/n,Math.abs(Math.abs(r)-1)<Qr)throw new Error;u=.5*this.ArB*Math.log((1-r)/(1+r)),s=Math.cos(this.B*t.x),a=Math.abs(s)<Jo?this.A*t.x:this.ArB*Math.atan2(e*this.cosgam+i*this.singam,s)}else u=t.y>0?this.v_pole_n:this.v_pole_s,a=this.ArB*t.y;return this.no_rot?(c.x=a,c.y=u):(a-=this.u_0,c.x=u*this.cosrot+a*this.sinrot,c.y=a*this.cosrot-u*this.sinrot),c.x=this.a*c.x+this.x0,c.y=this.a*c.y+this.y0,c},inverse:function(t){var e,n,r,i,o,s,a,u={};if(t.x=(t.x-this.x0)*(1/this.a),t.y=(t.y-this.y0)*(1/this.a),this.no_rot?(n=t.y,e=t.x):(n=t.x*this.cosrot-t.y*this.sinrot,e=t.y*this.cosrot+t.x*this.sinrot+this.u_0),i=.5*((r=Math.exp(-this.BrA*n))-1/r),o=.5*(r+1/r),a=((s=Math.sin(this.BrA*e))*this.cosgam+i*this.singam)/o,Math.abs(Math.abs(a)-1)<Qr)u.x=0,u.y=a<0?-Zr:Zr;else{if(u.y=this.E/Math.sqrt((1+a)/(1-a)),u.y=Ni(this.e,Math.pow(u.y,1/this.B)),u.y===1/0)throw new Error;u.x=-this.rB*Math.atan2(i*this.cosgam-s*this.singam,Math.cos(this.BrA*e))}return u.x+=this.lam0,u},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"]},Zo={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<Qr)){var t=this.b/this.a;this.e=Math.sqrt(1-t*t);var e=Math.sin(this.lat1),n=Math.cos(this.lat1),r=Mi(this.e,e,n),i=ji(this.e,this.lat1,e),o=Math.sin(this.lat2),s=Math.cos(this.lat2),a=Mi(this.e,o,s),u=ji(this.e,this.lat2,o),c=ji(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>Qr?this.ns=Math.log(r/a)/Math.log(i/u):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=r/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(c,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(t){var e=t.x,n=t.y;Math.abs(2*Math.abs(n)-Math.PI)<=Qr&&(n=Ii(n)*(Zr-2e-10));var r,i,o=Math.abs(Math.abs(n)-Zr);if(o>Qr)r=ji(this.e,n,Math.sin(n)),i=this.a*this.f0*Math.pow(r,this.ns);else{if((o=n*this.ns)<=0)return null;i=0}var s=this.ns*Ti(e-this.long0);return t.x=this.k0*(i*Math.sin(s))+this.x0,t.y=this.k0*(this.rh-i*Math.cos(s))+this.y0,t},inverse:function(t){var e,n,r,i,o,s=(t.x-this.x0)/this.k0,a=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(s*s+a*a),n=1):(e=-Math.sqrt(s*s+a*a),n=-1);var u=0;if(0!==e&&(u=Math.atan2(n*s,n*a)),0!==e||this.ns>0){if(n=1/this.ns,r=Math.pow(e/(this.a*this.f0),n),-9999===(i=Ni(this.e,r)))return null}else i=-Zr;return o=Ti(u/this.ns+this.long0),t.x=o,t.y=i,t},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"]},Qo={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(t){var e,n,r,i,o,s,a,u=t.x,c=t.y,l=Ti(u-this.long0);return e=Math.pow((1+this.e*Math.sin(c))/(1-this.e*Math.sin(c)),this.alfa*this.e/2),n=2*(Math.atan(this.k*Math.pow(Math.tan(c/2+this.s45),this.alfa)/e)-this.s45),r=-l*this.alfa,i=Math.asin(Math.cos(this.ad)*Math.sin(n)+Math.sin(this.ad)*Math.cos(n)*Math.cos(r)),o=Math.asin(Math.cos(n)*Math.sin(r)/Math.cos(i)),s=this.n*o,a=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(i/2+this.s45),this.n),t.y=a*Math.cos(s)/1,t.x=a*Math.sin(s)/1,this.czech||(t.y*=-1,t.x*=-1),t},inverse:function(t){var e,n,r,i,o,s,a,u=t.x;t.x=t.y,t.y=u,this.czech||(t.y*=-1,t.x*=-1),o=Math.sqrt(t.x*t.x+t.y*t.y),i=Math.atan2(t.y,t.x)/Math.sin(this.s0),r=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(r)-Math.sin(this.ad)*Math.cos(r)*Math.cos(i)),n=Math.asin(Math.cos(r)*Math.sin(i)/Math.cos(e)),t.x=this.long0-n/this.alfa,s=e,a=0;var c=0;do{t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(e/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(s))/(1-this.e*Math.sin(s)),this.e/2))-this.s45),Math.abs(s-t.y)<1e-10&&(a=1),s=t.y,c+=1}while(0===a&&c<15);return c>=15?null:t},names:["Krovak","krovak"]};function Ko(t,e,n,r,i){return t*i-e*Math.sin(2*i)+n*Math.sin(4*i)-r*Math.sin(6*i)}function ts(t){return 1-.25*t*(1+t/16*(3+1.25*t))}function es(t){return.375*t*(1+.25*t*(1+.46875*t))}function ns(t){return.05859375*t*t*(1+.75*t)}function rs(t){return t*t*t*(35/3072)}function is(t,e,n){var r=e*n;return t/Math.sqrt(1-r*r)}function os(t){return Math.abs(t)<Zr?t:t-Ii(t)*Math.PI}function ss(t,e,n,r,i){var o,s;o=t/e;for(var a=0;a<15;a++)if(o+=s=(t-(e*o-n*Math.sin(2*o)+r*Math.sin(4*o)-i*Math.sin(6*o)))/(e-2*n*Math.cos(2*o)+4*r*Math.cos(4*o)-6*i*Math.cos(6*o)),Math.abs(s)<=1e-10)return o;return NaN}const as={init:function(){this.sphere||(this.e0=ts(this.es),this.e1=es(this.es),this.e2=ns(this.es),this.e3=rs(this.es),this.ml0=this.a*Ko(this.e0,this.e1,this.e2,this.e3,this.lat0))},forward:function(t){var e,n,r=t.x,i=t.y;if(r=Ti(r-this.long0),this.sphere)e=this.a*Math.asin(Math.cos(i)*Math.sin(r)),n=this.a*(Math.atan2(Math.tan(i),Math.cos(r))-this.lat0);else{var o=Math.sin(i),s=Math.cos(i),a=is(this.a,this.e,o),u=Math.tan(i)*Math.tan(i),c=r*Math.cos(i),l=c*c,h=this.es*s*s/(1-this.es);e=a*c*(1-l*u*(1/6-(8-u+8*h)*l/120)),n=this.a*Ko(this.e0,this.e1,this.e2,this.e3,i)-this.ml0+a*o/s*l*(.5+(5-u+6*h)*l/24)}return t.x=e+this.x0,t.y=n+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var e,n,r=t.x/this.a,i=t.y/this.a;if(this.sphere){var o=i+this.lat0;e=Math.asin(Math.sin(o)*Math.cos(r)),n=Math.atan2(Math.tan(r),Math.cos(o))}else{var s=ss(this.ml0/this.a+i,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(s)-Zr)<=Qr)return t.x=this.long0,t.y=Zr,i<0&&(t.y*=-1),t;var a=is(this.a,this.e,Math.sin(s)),u=a*a*a/this.a/this.a*(1-this.es),c=Math.pow(Math.tan(s),2),l=r*this.a/a,h=l*l;e=s-a*Math.tan(s)/u*l*l*(.5-(1+3*c)*l*l/24),n=l*(1-h*(c/3+(1+3*c)*c*h/15))/Math.cos(s)}return t.x=Ti(n+this.long0),t.y=os(e),t},names:["Cassini","Cassini_Soldner","cass"]};function us(t,e){var n;return t>1e-7?(1-t*t)*(e/(1-(n=t*e)*n)-.5/t*Math.log((1-n)/(1+n))):2*e}const cs={init:function(){var t,e=Math.abs(this.lat0);if(Math.abs(e-Zr)<Qr?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(e)<Qr?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0)switch(this.qp=us(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(t){var e,n=[];return n[0]=.3333333333333333*t,e=t*t,n[0]+=.17222222222222222*e,n[1]=.06388888888888888*e,e*=t,n[0]+=.10257936507936508*e,n[1]+=.0664021164021164*e,n[2]=.016415012942191543*e,n}(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),t=Math.sin(this.lat0),this.sinb1=us(this.e,t)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*t*t)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(t){var e,n,r,i,o,s,a,u,c,l,h=t.x,p=t.y;if(h=Ti(h-this.long0),this.sphere){if(o=Math.sin(p),l=Math.cos(p),r=Math.cos(h),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((n=this.mode===this.EQUIT?1+l*r:1+this.sinph0*o+this.cosph0*l*r)<=Qr)return null;e=(n=Math.sqrt(2/n))*l*Math.sin(h),n*=this.mode===this.EQUIT?o:this.cosph0*o-this.sinph0*l*r}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(r=-r),Math.abs(p+this.lat0)<Qr)return null;n=ei-.5*p,e=(n=2*(this.mode===this.S_POLE?Math.cos(n):Math.sin(n)))*Math.sin(h),n*=r}}else{switch(a=0,u=0,c=0,r=Math.cos(h),i=Math.sin(h),o=Math.sin(p),s=us(this.e,o),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(a=s/this.qp,u=Math.sqrt(1-a*a)),this.mode){case this.OBLIQ:c=1+this.sinb1*a+this.cosb1*u*r;break;case this.EQUIT:c=1+u*r;break;case this.N_POLE:c=Zr+p,s=this.qp-s;break;case this.S_POLE:c=p-Zr,s=this.qp+s}if(Math.abs(c)<Qr)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:c=Math.sqrt(2/c),n=this.mode===this.OBLIQ?this.ymf*c*(this.cosb1*a-this.sinb1*u*r):(c=Math.sqrt(2/(1+u*r)))*a*this.ymf,e=this.xmf*c*u*i;break;case this.N_POLE:case this.S_POLE:s>=0?(e=(c=Math.sqrt(s))*i,n=r*(this.mode===this.S_POLE?c:-c)):e=n=0}}return t.x=this.a*e+this.x0,t.y=this.a*n+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var e,n,r,i,o,s,a,u,c,l,h=t.x/this.a,p=t.y/this.a;if(this.sphere){var f,d=0,g=0;if((n=.5*(f=Math.sqrt(h*h+p*p)))>1)return null;switch(n=2*Math.asin(n),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(g=Math.sin(n),d=Math.cos(n)),this.mode){case this.EQUIT:n=Math.abs(f)<=Qr?0:Math.asin(p*g/f),h*=g,p=d*f;break;case this.OBLIQ:n=Math.abs(f)<=Qr?this.lat0:Math.asin(d*this.sinph0+p*g*this.cosph0/f),h*=g*this.cosph0,p=(d-Math.sin(n)*this.sinph0)*f;break;case this.N_POLE:p=-p,n=Zr-n;break;case this.S_POLE:n-=Zr}e=0!==p||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(h,p):0}else{if(a=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(h/=this.dd,p*=this.dd,(s=Math.sqrt(h*h+p*p))<Qr)return t.x=this.long0,t.y=this.lat0,t;i=2*Math.asin(.5*s/this.rq),r=Math.cos(i),h*=i=Math.sin(i),this.mode===this.OBLIQ?(a=r*this.sinb1+p*i*this.cosb1/s,o=this.qp*a,p=s*this.cosb1*r-p*this.sinb1*i):(a=p*i/s,o=this.qp*a,p=s*r)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(p=-p),!(o=h*h+p*p))return t.x=this.long0,t.y=this.lat0,t;a=1-o/this.qp,this.mode===this.S_POLE&&(a=-a)}e=Math.atan2(h,p),l=(u=Math.asin(a))+u,n=u+(c=this.apa)[0]*Math.sin(l)+c[1]*Math.sin(l+l)+c[2]*Math.sin(l+l+l)}return t.x=Ti(this.long0+e),t.y=n,t},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4};function ls(t){return Math.abs(t)>1&&(t=t>1?1:-1),Math.asin(t)}const hs={init:function(){Math.abs(this.lat1+this.lat2)<Qr||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=Mi(this.e3,this.sin_po,this.cos_po),this.qs1=us(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=Mi(this.e3,this.sin_po,this.cos_po),this.qs2=us(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=us(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>Qr?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(t){var e=t.x,n=t.y;this.sin_phi=Math.sin(n),this.cos_phi=Math.cos(n);var r=us(this.e3,this.sin_phi),i=this.a*Math.sqrt(this.c-this.ns0*r)/this.ns0,o=this.ns0*Ti(e-this.long0),s=i*Math.sin(o)+this.x0,a=this.rh-i*Math.cos(o)+this.y0;return t.x=s,t.y=a,t},inverse:function(t){var e,n,r,i,o,s;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(e=Math.sqrt(t.x*t.x+t.y*t.y),r=1):(e=-Math.sqrt(t.x*t.x+t.y*t.y),r=-1),i=0,0!==e&&(i=Math.atan2(r*t.x,r*t.y)),r=e*this.ns0/this.a,this.sphere?s=Math.asin((this.c-r*r)/(2*this.ns0)):(n=(this.c-r*r)/this.ns0,s=this.phi1z(this.e3,n)),o=Ti(i/this.ns0+this.long0),t.x=o,t.y=s,t},names:["Albers_Conic_Equal_Area","Albers","aea"],phi1z:function(t,e){var n,r,i,o,s=ls(.5*e);if(t<Qr)return s;for(var a=t*t,u=1;u<=25;u++)if(s+=o=.5*(i=1-(r=t*(n=Math.sin(s)))*r)*i/Math.cos(s)*(e/(1-a)-n/i+.5/t*Math.log((1-r)/(1+r))),Math.abs(o)<=1e-7)return s;return null}},ps={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function(t){var e,n,r,i,o,s,a,u=t.x,c=t.y;return r=Ti(u-this.long0),e=Math.sin(c),n=Math.cos(c),i=Math.cos(r),(o=this.sin_p14*e+this.cos_p14*n*i)>0||Math.abs(o)<=Qr?(s=this.x0+1*this.a*n*Math.sin(r)/o,a=this.y0+1*this.a*(this.cos_p14*e-this.sin_p14*n*i)/o):(s=this.x0+this.infinity_dist*n*Math.sin(r),a=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*n*i)),t.x=s,t.y=a,t},inverse:function(t){var e,n,r,i,o,s;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,(e=Math.sqrt(t.x*t.x+t.y*t.y))?(i=Math.atan2(e,this.rc),n=Math.sin(i),s=ls((r=Math.cos(i))*this.sin_p14+t.y*n*this.cos_p14/e),o=Math.atan2(t.x*n,e*this.cos_p14*r-t.y*this.sin_p14*n),o=Ti(this.long0+o)):(s=this.phic0,o=0),t.x=o,t.y=s,t},names:["gnom"]},fs={init:function(){this.sphere||(this.k0=Mi(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(t){var e,n,r=t.x,i=t.y,o=Ti(r-this.long0);if(this.sphere)e=this.x0+this.a*o*Math.cos(this.lat_ts),n=this.y0+this.a*Math.sin(i)/Math.cos(this.lat_ts);else{var s=us(this.e,Math.sin(i));e=this.x0+this.a*this.k0*o,n=this.y0+this.a*s*.5/this.k0}return t.x=e,t.y=n,t},inverse:function(t){var e,n;return t.x-=this.x0,t.y-=this.y0,this.sphere?(e=Ti(this.long0+t.x/this.a/Math.cos(this.lat_ts)),n=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(n=function(t,e){var n=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(e)-n)<1e-6)return e<0?-1*Zr:Zr;for(var r,i,o,s,a=Math.asin(.5*e),u=0;u<30;u++)if(i=Math.sin(a),o=Math.cos(a),s=t*i,a+=r=Math.pow(1-s*s,2)/(2*o)*(e/(1-t*t)-i/(1-s*s)+.5/t*Math.log((1-s)/(1+s))),Math.abs(r)<=1e-10)return a;return NaN}(this.e,2*t.y*this.k0/this.a),e=Ti(this.long0+t.x/(this.a*this.k0))),t.x=e,t.y=n,t},names:["cea"]},ds={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(t){var e=t.x,n=t.y,r=Ti(e-this.long0),i=os(n-this.lat0);return t.x=this.x0+this.a*r*this.rc,t.y=this.y0+this.a*i,t},inverse:function(t){var e=t.x,n=t.y;return t.x=Ti(this.long0+(e-this.x0)/(this.a*this.rc)),t.y=os(this.lat0+(n-this.y0)/this.a),t},names:["Equirectangular","Equidistant_Cylindrical","eqc"]},gs={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=ts(this.es),this.e1=es(this.es),this.e2=ns(this.es),this.e3=rs(this.es),this.ml0=this.a*Ko(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(t){var e,n,r,i=t.x,o=t.y,s=Ti(i-this.long0);if(r=s*Math.sin(o),this.sphere)Math.abs(o)<=Qr?(e=this.a*s,n=-1*this.a*this.lat0):(e=this.a*Math.sin(r)/Math.tan(o),n=this.a*(os(o-this.lat0)+(1-Math.cos(r))/Math.tan(o)));else if(Math.abs(o)<=Qr)e=this.a*s,n=-1*this.ml0;else{var a=is(this.a,this.e,Math.sin(o))/Math.tan(o);e=a*Math.sin(r),n=this.a*Ko(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+a*(1-Math.cos(r))}return t.x=e+this.x0,t.y=n+this.y0,t},inverse:function(t){var e,n,r,i,o,s,a,u,c;if(r=t.x-this.x0,i=t.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=Qr)e=Ti(r/this.a+this.long0),n=0;else{var l;for(s=this.lat0+i/this.a,a=r*r/this.a/this.a+s*s,u=s,o=20;o;--o)if(u+=c=-1*(s*(u*(l=Math.tan(u))+1)-u-.5*(u*u+a)*l)/((u-s)/l-1),Math.abs(c)<=Qr){n=u;break}e=Ti(this.long0+Math.asin(r*Math.tan(u)/this.a)/Math.sin(n))}else if(Math.abs(i+this.ml0)<=Qr)n=0,e=Ti(this.long0+r/this.a);else{var h,p,f,d,g;for(s=(this.ml0+i)/this.a,a=r*r/this.a/this.a+s*s,u=s,o=20;o;--o)if(g=this.e*Math.sin(u),h=Math.sqrt(1-g*g)*Math.tan(u),p=this.a*Ko(this.e0,this.e1,this.e2,this.e3,u),f=this.e0-2*this.e1*Math.cos(2*u)+4*this.e2*Math.cos(4*u)-6*this.e3*Math.cos(6*u),u-=c=(s*(h*(d=p/this.a)+1)-d-.5*h*(d*d+a))/(this.es*Math.sin(2*u)*(d*d+a-2*s*d)/(4*h)+(s-d)*(h*f-2/Math.sin(2*u))-f),Math.abs(c)<=Qr){n=u;break}h=Math.sqrt(1-this.es*Math.pow(Math.sin(n),2))*Math.tan(n),e=Ti(this.long0+Math.asin(r*h/this.a)/Math.sin(n))}return t.x=e,t.y=n,t},names:["Polyconic","poly"]},ys={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(t){var e,n=t.x,r=t.y-this.lat0,i=n-this.long0,o=r/$r*1e-5,s=i,a=1,u=0;for(e=1;e<=10;e++)a*=o,u+=this.A[e]*a;var c,l=u,h=s,p=1,f=0,d=0,g=0;for(e=1;e<=6;e++)c=f*l+p*h,p=p*l-f*h,f=c,d=d+this.B_re[e]*p-this.B_im[e]*f,g=g+this.B_im[e]*p+this.B_re[e]*f;return t.x=g*this.a+this.x0,t.y=d*this.a+this.y0,t},inverse:function(t){var e,n,r=t.x,i=t.y,o=r-this.x0,s=(i-this.y0)/this.a,a=o/this.a,u=1,c=0,l=0,h=0;for(e=1;e<=6;e++)n=c*s+u*a,u=u*s-c*a,c=n,l=l+this.C_re[e]*u-this.C_im[e]*c,h=h+this.C_im[e]*u+this.C_re[e]*c;for(var p=0;p<this.iterations;p++){var f,d=l,g=h,y=s,v=a;for(e=2;e<=6;e++)f=g*l+d*h,d=d*l-g*h,g=f,y+=(e-1)*(this.B_re[e]*d-this.B_im[e]*g),v+=(e-1)*(this.B_im[e]*d+this.B_re[e]*g);d=1,g=0;var m=this.B_re[1],_=this.B_im[1];for(e=2;e<=6;e++)f=g*l+d*h,d=d*l-g*h,g=f,m+=e*(this.B_re[e]*d-this.B_im[e]*g),_+=e*(this.B_im[e]*d+this.B_re[e]*g);var b=m*m+_*_;l=(y*m+v*_)/b,h=(v*m-y*_)/b}var w=l,E=h,x=1,P=0;for(e=1;e<=9;e++)x*=w,P+=this.D[e]*x;var S=this.lat0+P*$r*1e5,O=this.long0+E;return t.x=O,t.y=S,t},names:["New_Zealand_Map_Grid","nzmg"]},vs={init:function(){},forward:function(t){var e=t.x,n=t.y,r=Ti(e-this.long0),i=this.x0+this.a*r,o=this.y0+this.a*Math.log(Math.tan(Math.PI/4+n/2.5))*1.25;return t.x=i,t.y=o,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var e=Ti(this.long0+t.x/this.a),n=2.5*(Math.atan(Math.exp(.8*t.y/this.a))-Math.PI/4);return t.x=e,t.y=n,t},names:["Miller_Cylindrical","mill"]},ms={init:function(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=Ao(this.es)},forward:function(t){var e,n,r=t.x,i=t.y;if(r=Ti(r-this.long0),this.sphere){if(this.m)for(var o=this.n*Math.sin(i),s=20;s;--s){var a=(this.m*i+Math.sin(i)-o)/(this.m+Math.cos(i));if(i-=a,Math.abs(a)<Qr)break}else i=1!==this.n?Math.asin(this.n*Math.sin(i)):i;e=this.a*this.C_x*r*(this.m+Math.cos(i)),n=this.a*this.C_y*i}else{var u=Math.sin(i),c=Math.cos(i);n=this.a*Ro(i,u,c,this.en),e=this.a*r*c/Math.sqrt(1-this.es*u*u)}return t.x=e,t.y=n,t},inverse:function(t){var e,n,r;return t.x-=this.x0,n=t.x/this.a,t.y-=this.y0,e=t.y/this.a,this.sphere?(e/=this.C_y,n/=this.C_x*(this.m+Math.cos(e)),this.m?e=ls((this.m*e+Math.sin(e))/this.n):1!==this.n&&(e=ls(Math.sin(e)/this.n)),n=Ti(n+this.long0),e=os(e)):(e=Fo(t.y/this.a,this.es,this.en),(r=Math.abs(e))<Zr?(r=Math.sin(e),n=Ti(this.long0+t.x*Math.sqrt(1-this.es*r*r)/(this.a*Math.cos(e)))):r-Qr<Zr&&(n=this.long0)),t.x=n,t.y=e,t},names:["Sinusoidal","sinu"]},_s={init:function(){},forward:function(t){for(var e=t.x,n=t.y,r=Ti(e-this.long0),i=n,o=Math.PI*Math.sin(n);;){var s=-(i+Math.sin(i)-o)/(1+Math.cos(i));if(i+=s,Math.abs(s)<Qr)break}i/=2,Math.PI/2-Math.abs(n)<Qr&&(r=0);var a=.900316316158*this.a*r*Math.cos(i)+this.x0,u=1.4142135623731*this.a*Math.sin(i)+this.y0;return t.x=a,t.y=u,t},inverse:function(t){var e,n;t.x-=this.x0,t.y-=this.y0,n=t.y/(1.4142135623731*this.a),Math.abs(n)>.999999999999&&(n=.999999999999),e=Math.asin(n);var r=Ti(this.long0+t.x/(.900316316158*this.a*Math.cos(e)));r<-Math.PI&&(r=-Math.PI),r>Math.PI&&(r=Math.PI),n=(2*e+Math.sin(2*e))/Math.PI,Math.abs(n)>1&&(n=1);var i=Math.asin(n);return t.x=r,t.y=i,t},names:["Mollweide","moll"]},bs={init:function(){Math.abs(this.lat1+this.lat2)<Qr||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=ts(this.es),this.e1=es(this.es),this.e2=ns(this.es),this.e3=rs(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=Mi(this.e,this.sinphi,this.cosphi),this.ml1=Ko(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<Qr?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=Mi(this.e,this.sinphi,this.cosphi),this.ml2=Ko(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=Ko(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(t){var e,n=t.x,r=t.y;if(this.sphere)e=this.a*(this.g-r);else{var i=Ko(this.e0,this.e1,this.e2,this.e3,r);e=this.a*(this.g-i)}var o=this.ns*Ti(n-this.long0),s=this.x0+e*Math.sin(o),a=this.y0+this.rh-e*Math.cos(o);return t.x=s,t.y=a,t},inverse:function(t){var e,n,r,i;t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns>=0?(n=Math.sqrt(t.x*t.x+t.y*t.y),e=1):(n=-Math.sqrt(t.x*t.x+t.y*t.y),e=-1);var o=0;return 0!==n&&(o=Math.atan2(e*t.x,e*t.y)),this.sphere?(i=Ti(this.long0+o/this.ns),r=os(this.g-n/this.a),t.x=i,t.y=r,t):(r=ss(this.g-n/this.a,this.e0,this.e1,this.e2,this.e3),i=Ti(this.long0+o/this.ns),t.x=i,t.y=r,t)},names:["Equidistant_Conic","eqdc"]},ws={init:function(){this.R=this.a},forward:function(t){var e,n,r=t.x,i=t.y,o=Ti(r-this.long0);Math.abs(i)<=Qr&&(e=this.x0+this.R*o,n=this.y0);var s=ls(2*Math.abs(i/Math.PI));(Math.abs(o)<=Qr||Math.abs(Math.abs(i)-Zr)<=Qr)&&(e=this.x0,n=i>=0?this.y0+Math.PI*this.R*Math.tan(.5*s):this.y0+Math.PI*this.R*-Math.tan(.5*s));var a=.5*Math.abs(Math.PI/o-o/Math.PI),u=a*a,c=Math.sin(s),l=Math.cos(s),h=l/(c+l-1),p=h*h,f=h*(2/c-1),d=f*f,g=Math.PI*this.R*(a*(h-d)+Math.sqrt(u*(h-d)*(h-d)-(d+u)*(p-d)))/(d+u);o<0&&(g=-g),e=this.x0+g;var y=u+h;return g=Math.PI*this.R*(f*y-a*Math.sqrt((d+u)*(u+1)-y*y))/(d+u),n=i>=0?this.y0+g:this.y0-g,t.x=e,t.y=n,t},inverse:function(t){var e,n,r,i,o,s,a,u,c,l,h,p;return t.x-=this.x0,t.y-=this.y0,h=Math.PI*this.R,o=(r=t.x/h)*r+(i=t.y/h)*i,h=3*(i*i/(u=-2*(s=-Math.abs(i)*(1+o))+1+2*i*i+o*o)+(2*(a=s-2*i*i+r*r)*a*a/u/u/u-9*s*a/u/u)/27)/(c=(s-a*a/3/u)/u)/(l=2*Math.sqrt(-c/3)),Math.abs(h)>1&&(h=h>=0?1:-1),p=Math.acos(h)/3,n=t.y>=0?(-l*Math.cos(p+Math.PI/3)-a/3/u)*Math.PI:-(-l*Math.cos(p+Math.PI/3)-a/3/u)*Math.PI,e=Math.abs(r)<Qr?this.long0:Ti(this.long0+Math.PI*(o-1+Math.sqrt(1+2*(r*r-i*i)+o*o))/2/r),t.x=e,t.y=n,t},names:["Van_der_Grinten_I","VanDerGrinten","vandg"]},Es={init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)},forward:function(t){var e,n,r,i,o,s,a,u,c,l,h,p,f,d,g,y,v,m,_,b,w,E,x=t.x,P=t.y,S=Math.sin(t.y),O=Math.cos(t.y),C=Ti(x-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=Qr?(t.x=this.x0+this.a*(Zr-P)*Math.sin(C),t.y=this.y0-this.a*(Zr-P)*Math.cos(C),t):Math.abs(this.sin_p12+1)<=Qr?(t.x=this.x0+this.a*(Zr+P)*Math.sin(C),t.y=this.y0+this.a*(Zr+P)*Math.cos(C),t):(m=this.sin_p12*S+this.cos_p12*O*Math.cos(C),v=(y=Math.acos(m))?y/Math.sin(y):1,t.x=this.x0+this.a*v*O*Math.sin(C),t.y=this.y0+this.a*v*(this.cos_p12*S-this.sin_p12*O*Math.cos(C)),t):(e=ts(this.es),n=es(this.es),r=ns(this.es),i=rs(this.es),Math.abs(this.sin_p12-1)<=Qr?(o=this.a*Ko(e,n,r,i,Zr),s=this.a*Ko(e,n,r,i,P),t.x=this.x0+(o-s)*Math.sin(C),t.y=this.y0-(o-s)*Math.cos(C),t):Math.abs(this.sin_p12+1)<=Qr?(o=this.a*Ko(e,n,r,i,Zr),s=this.a*Ko(e,n,r,i,P),t.x=this.x0+(o+s)*Math.sin(C),t.y=this.y0+(o+s)*Math.cos(C),t):(a=S/O,u=is(this.a,this.e,this.sin_p12),c=is(this.a,this.e,S),l=Math.atan((1-this.es)*a+this.es*u*this.sin_p12/(c*O)),_=0===(h=Math.atan2(Math.sin(C),this.cos_p12*Math.tan(l)-this.sin_p12*Math.cos(C)))?Math.asin(this.cos_p12*Math.sin(l)-this.sin_p12*Math.cos(l)):Math.abs(Math.abs(h)-Math.PI)<=Qr?-Math.asin(this.cos_p12*Math.sin(l)-this.sin_p12*Math.cos(l)):Math.asin(Math.sin(C)*Math.cos(l)/Math.sin(h)),p=this.e*this.sin_p12/Math.sqrt(1-this.es),y=u*_*(1-(b=_*_)*(g=(f=this.e*this.cos_p12*Math.cos(h)/Math.sqrt(1-this.es))*f)*(1-g)/6+(w=b*_)/8*(d=p*f)*(1-2*g)+(E=w*_)/120*(g*(4-7*g)-3*p*p*(1-7*g))-E*_/48*d),t.x=this.x0+y*Math.sin(h),t.y=this.y0+y*Math.cos(h),t))},inverse:function(t){var e,n,r,i,o,s,a,u,c,l,h,p,f,d,g,y,v,m,_,b,w,E,x;if(t.x-=this.x0,t.y-=this.y0,this.sphere){if((e=Math.sqrt(t.x*t.x+t.y*t.y))>2*Zr*this.a)return;return n=e/this.a,r=Math.sin(n),i=Math.cos(n),o=this.long0,Math.abs(e)<=Qr?s=this.lat0:(s=ls(i*this.sin_p12+t.y*r*this.cos_p12/e),a=Math.abs(this.lat0)-Zr,o=Math.abs(a)<=Qr?this.lat0>=0?Ti(this.long0+Math.atan2(t.x,-t.y)):Ti(this.long0-Math.atan2(-t.x,t.y)):Ti(this.long0+Math.atan2(t.x*r,e*this.cos_p12*i-t.y*this.sin_p12*r))),t.x=o,t.y=s,t}return u=ts(this.es),c=es(this.es),l=ns(this.es),h=rs(this.es),Math.abs(this.sin_p12-1)<=Qr?(s=ss(((p=this.a*Ko(u,c,l,h,Zr))-(e=Math.sqrt(t.x*t.x+t.y*t.y)))/this.a,u,c,l,h),o=Ti(this.long0+Math.atan2(t.x,-1*t.y)),t.x=o,t.y=s,t):Math.abs(this.sin_p12+1)<=Qr?(p=this.a*Ko(u,c,l,h,Zr),s=ss(((e=Math.sqrt(t.x*t.x+t.y*t.y))-p)/this.a,u,c,l,h),o=Ti(this.long0+Math.atan2(t.x,t.y)),t.x=o,t.y=s,t):(e=Math.sqrt(t.x*t.x+t.y*t.y),g=Math.atan2(t.x,t.y),f=is(this.a,this.e,this.sin_p12),y=Math.cos(g),m=-(v=this.e*this.cos_p12*y)*v/(1-this.es),_=3*this.es*(1-m)*this.sin_p12*this.cos_p12*y/(1-this.es),E=1-m*(w=(b=e/f)-m*(1+m)*Math.pow(b,3)/6-_*(1+3*m)*Math.pow(b,4)/24)*w/2-b*w*w*w/6,d=Math.asin(this.sin_p12*Math.cos(w)+this.cos_p12*Math.sin(w)*y),o=Ti(this.long0+Math.asin(Math.sin(g)*Math.sin(w)/Math.cos(d))),x=Math.sin(d),s=Math.atan2((x-this.es*E*this.sin_p12)*Math.tan(d),x*(1-this.es)),t.x=o,t.y=s,t)},names:["Azimuthal_Equidistant","aeqd"]},xs={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)},forward:function(t){var e,n,r,i,o,s,a,u=t.x,c=t.y;return r=Ti(u-this.long0),e=Math.sin(c),n=Math.cos(c),i=Math.cos(r),((o=this.sin_p14*e+this.cos_p14*n*i)>0||Math.abs(o)<=Qr)&&(s=1*this.a*n*Math.sin(r),a=this.y0+1*this.a*(this.cos_p14*e-this.sin_p14*n*i)),t.x=s,t.y=a,t},inverse:function(t){var e,n,r,i,o,s,a;return t.x-=this.x0,t.y-=this.y0,n=ls((e=Math.sqrt(t.x*t.x+t.y*t.y))/this.a),r=Math.sin(n),i=Math.cos(n),s=this.long0,Math.abs(e)<=Qr?(a=this.lat0,t.x=s,t.y=a,t):(a=ls(i*this.sin_p14+t.y*r*this.cos_p14/e),o=Math.abs(this.lat0)-Zr,Math.abs(o)<=Qr?(s=this.lat0>=0?Ti(this.long0+Math.atan2(t.x,-t.y)):Ti(this.long0-Math.atan2(-t.x,t.y)),t.x=s,t.y=a,t):(s=Ti(this.long0+Math.atan2(t.x*r,e*this.cos_p14*i-t.y*this.sin_p14*r)),t.x=s,t.y=a,t))},names:["ortho"]};function Ps(t,e,n,r){var i;return t<Qr?(r.value=1,i=0):(i=Math.atan2(e,n),Math.abs(i)<=ei?r.value=1:i>ei&&i<=Zr+ei?(r.value=2,i-=Zr):i>Zr+ei||i<=-(Zr+ei)?(r.value=3,i=i>=0?i-ri:i+ri):(r.value=4,i+=Zr)),i}function Ss(t,e){var n=t+e;return n<-ri?n+=ni:n>+ri&&(n-=ni),n}const Os={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=Zr-ei/2?this.face=5:this.lat0<=-(Zr-ei/2)?this.face=6:Math.abs(this.long0)<=ei?this.face=1:Math.abs(this.long0)<=Zr+ei?this.face=this.long0>0?2:4:this.face=3,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(t){var e,n,r,i,o,s,a={x:0,y:0},u={value:0};if(t.x-=this.long0,e=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(t.y)):t.y,n=t.x,5===this.face)i=Zr-e,n>=ei&&n<=Zr+ei?(u.value=1,r=n-Zr):n>Zr+ei||n<=-(Zr+ei)?(u.value=2,r=n>0?n-ri:n+ri):n>-(Zr+ei)&&n<=-ei?(u.value=3,r=n+Zr):(u.value=4,r=n);else if(6===this.face)i=Zr+e,n>=ei&&n<=Zr+ei?(u.value=1,r=-n+Zr):n<ei&&n>=-ei?(u.value=2,r=-n):n<-ei&&n>=-(Zr+ei)?(u.value=3,r=-n-Zr):(u.value=4,r=n>0?-n+ri:-n-ri);else{var c,l,h,p,f,d;2===this.face?n=Ss(n,+Zr):3===this.face?n=Ss(n,+ri):4===this.face&&(n=Ss(n,-Zr)),p=Math.sin(e),f=Math.cos(e),d=Math.sin(n),c=f*Math.cos(n),l=f*d,h=p,1===this.face?r=Ps(i=Math.acos(c),h,l,u):2===this.face?r=Ps(i=Math.acos(l),h,-c,u):3===this.face?r=Ps(i=Math.acos(-c),h,-l,u):4===this.face?r=Ps(i=Math.acos(-l),h,c,u):(i=r=0,u.value=1)}return s=Math.atan(12/ri*(r+Math.acos(Math.sin(r)*Math.cos(ei))-Zr)),o=Math.sqrt((1-Math.cos(i))/(Math.cos(s)*Math.cos(s))/(1-Math.cos(Math.atan(1/Math.cos(r))))),2===u.value?s+=Zr:3===u.value?s+=ri:4===u.value&&(s+=1.5*ri),a.x=o*Math.cos(s),a.y=o*Math.sin(s),a.x=a.x*this.a+this.x0,a.y=a.y*this.a+this.y0,t.x=a.x,t.y=a.y,t},inverse:function(t){var e,n,r,i,o,s,a,u,c,l,h,p,f={lam:0,phi:0},d={value:0};if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,n=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),e=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?d.value=1:t.y>=0&&t.y>=Math.abs(t.x)?(d.value=2,e-=Zr):t.x<0&&-t.x>=Math.abs(t.y)?(d.value=3,e=e<0?e+ri:e-ri):(d.value=4,e+=Zr),c=ri/12*Math.tan(e),o=Math.sin(c)/(Math.cos(c)-1/Math.sqrt(2)),s=Math.atan(o),(a=1-(r=Math.cos(e))*r*(i=Math.tan(n))*i*(1-Math.cos(Math.atan(1/Math.cos(s)))))<-1?a=-1:a>1&&(a=1),5===this.face)u=Math.acos(a),f.phi=Zr-u,1===d.value?f.lam=s+Zr:2===d.value?f.lam=s<0?s+ri:s-ri:3===d.value?f.lam=s-Zr:f.lam=s;else if(6===this.face)u=Math.acos(a),f.phi=u-Zr,1===d.value?f.lam=-s+Zr:2===d.value?f.lam=-s:3===d.value?f.lam=-s-Zr:f.lam=s<0?-s-ri:-s+ri;else{var g,y,v;c=(g=a)*g,y=(c+=(v=c>=1?0:Math.sqrt(1-c)*Math.sin(s))*v)>=1?0:Math.sqrt(1-c),2===d.value?(c=y,y=-v,v=c):3===d.value?(y=-y,v=-v):4===d.value&&(c=y,y=v,v=-c),2===this.face?(c=g,g=-y,y=c):3===this.face?(g=-g,y=-y):4===this.face&&(c=g,g=y,y=-c),f.phi=Math.acos(-v)-Zr,f.lam=Math.atan2(y,g),2===this.face?f.lam=Ss(f.lam,-Zr):3===this.face?f.lam=Ss(f.lam,-ri):4===this.face&&(f.lam=Ss(f.lam,+Zr))}return 0!==this.es&&(l=f.phi<0?1:0,h=Math.tan(f.phi),p=this.b/Math.sqrt(h*h+this.one_minus_f_squared),f.phi=Math.atan(Math.sqrt(this.a*this.a-p*p)/(this.one_minus_f*p)),l&&(f.phi=-f.phi)),f.lam+=this.long0,t.x=f.lam,t.y=f.phi,t},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]};var Cs=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],Ms=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],Is=.8487,Ts=1.3523,js=ti/5,Ns=1/js,Ds=function(t,e){return t[0]+e*(t[1]+e*(t[2]+e*t[3]))};const As={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function(t){var e=Ti(t.x-this.long0),n=Math.abs(t.y),r=Math.floor(n*js);r<0?r=0:r>=18&&(r=17);var i={x:Ds(Cs[r],n=ti*(n-Ns*r))*e,y:Ds(Ms[r],n)};return t.y<0&&(i.y=-i.y),i.x=i.x*this.a*Is+this.x0,i.y=i.y*this.a*Ts+this.y0,i},inverse:function(t){var e={x:(t.x-this.x0)/(this.a*Is),y:Math.abs(t.y-this.y0)/(this.a*Ts)};if(e.y>=1)e.x/=Cs[18][0],e.y=t.y<0?-Zr:Zr;else{var n=Math.floor(18*e.y);for(n<0?n=0:n>=18&&(n=17);;)if(Ms[n][0]>e.y)--n;else{if(!(Ms[n+1][0]<=e.y))break;++n}var r=Ms[n],i=5*(e.y-r[0])/(Ms[n+1][0]-r[0]);i=function(t,e,n,r){for(var i=e;r;--r){var o=t(i);if(i-=o,Math.abs(o)<1e-10)break}return i}((function(t){return(Ds(r,t)-e.y)/function(t,e){return t[1]+e*(2*t[2]+3*e*t[3])}(r,t)}),i,0,100),e.x/=Ds(Cs[n],i),e.y=(5*n+i)*Kr,t.y<0&&(e.y=-e.y)}return e.x=Ti(e.x+this.long0),e},names:["Robinson","robin"]},Rs={init:function(){this.name="geocent"},forward:function(t){return to(t,this.es,this.a)},inverse:function(t){return eo(t,this.es,this.a,this.b)},names:["Geocentric","geocentric","geocent","Geocent"]};var Fs={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};const Ls={init:function(){if(Object.keys(Fs).forEach(function(t){if(void 0===this[t])this[t]=Fs[t].def;else{if(Fs[t].num&&isNaN(this[t]))throw new Error("Invalid parameter value, must be numeric "+t+" = "+this[t]);Fs[t].num&&(this[t]=parseFloat(this[t]))}Fs[t].degrees&&(this[t]=this[t]*Kr)}.bind(this)),Math.abs(Math.abs(this.lat0)-Zr)<Qr?this.mode=this.lat0<0?1:0:Math.abs(this.lat0)<Qr?this.mode=2:(this.mode=3,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var t=this.tilt,e=this.azi;this.cg=Math.cos(e),this.sg=Math.sin(e),this.cw=Math.cos(t),this.sw=Math.sin(t)},forward:function(t){t.x-=this.long0;var e,n,r,i,o=Math.sin(t.y),s=Math.cos(t.y),a=Math.cos(t.x);switch(this.mode){case 3:n=this.sinph0*o+this.cosph0*s*a;break;case 2:n=s*a;break;case 1:n=-o;break;case 0:n=o}switch(e=(n=this.pn1/(this.p-n))*s*Math.sin(t.x),this.mode){case 3:n*=this.cosph0*o-this.sinph0*s*a;break;case 2:n*=o;break;case 0:n*=-s*a;break;case 1:n*=s*a}return i=1/((r=n*this.cg+e*this.sg)*this.sw*this.h1+this.cw),e=(e*this.cg-n*this.sg)*this.cw*i,n=r*i,t.x=e*this.a,t.y=n*this.a,t},inverse:function(t){t.x/=this.a,t.y/=this.a;var e,n,r,i={x:t.x,y:t.y};r=1/(this.pn1-t.y*this.sw),e=this.pn1*t.x*r,n=this.pn1*t.y*this.cw*r,t.x=e*this.cg+n*this.sg,t.y=n*this.cg-e*this.sg;var o=Vo(t.x,t.y);if(Math.abs(o)<Qr)i.x=0,i.y=t.y;else{var s,a;switch(a=1-o*o*this.pfact,a=(this.p-Math.sqrt(a))/(this.pn1/o+o/this.pn1),s=Math.sqrt(1-a*a),this.mode){case 3:i.y=Math.asin(s*this.sinph0+t.y*a*this.cosph0/o),t.y=(s-this.sinph0*Math.sin(i.y))*o,t.x*=a*this.cosph0;break;case 2:i.y=Math.asin(t.y*a/o),t.y=s*o,t.x*=a;break;case 0:i.y=Math.asin(s),t.y=-t.y;break;case 1:i.y=-Math.asin(s)}i.x=Math.atan2(t.x,t.y)}return t.x=i.x+this.long0,t.y=i.y,t},names:["Tilted_Perspective","tpers"]},ks={init:function(){if(this.flip_axis="x"===this.sweep?1:0,this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,0!==this.es){var t=1-this.es,e=1/t;this.radius_p=Math.sqrt(t),this.radius_p2=t,this.radius_p_inv2=e,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")},forward:function(t){var e,n,r,i,o=t.x,s=t.y;if(o-=this.long0,"ellipse"===this.shape){s=Math.atan(this.radius_p2*Math.tan(s));var a=this.radius_p/Vo(this.radius_p*Math.cos(s),Math.sin(s));if(n=a*Math.cos(o)*Math.cos(s),r=a*Math.sin(o)*Math.cos(s),i=a*Math.sin(s),(this.radius_g-n)*n-r*r-i*i*this.radius_p_inv2<0)return t.x=Number.NaN,t.y=Number.NaN,t;e=this.radius_g-n,this.flip_axis?(t.x=this.radius_g_1*Math.atan(r/Vo(i,e)),t.y=this.radius_g_1*Math.atan(i/e)):(t.x=this.radius_g_1*Math.atan(r/e),t.y=this.radius_g_1*Math.atan(i/Vo(r,e)))}else"sphere"===this.shape&&(e=Math.cos(s),n=Math.cos(o)*e,r=Math.sin(o)*e,i=Math.sin(s),e=this.radius_g-n,this.flip_axis?(t.x=this.radius_g_1*Math.atan(r/Vo(i,e)),t.y=this.radius_g_1*Math.atan(i/e)):(t.x=this.radius_g_1*Math.atan(r/e),t.y=this.radius_g_1*Math.atan(i/Vo(r,e))));return t.x=t.x*this.a,t.y=t.y*this.a,t},inverse:function(t){var e,n,r,i,o=-1,s=0,a=0;if(t.x=t.x/this.a,t.y=t.y/this.a,"ellipse"===this.shape){this.flip_axis?(a=Math.tan(t.y/this.radius_g_1),s=Math.tan(t.x/this.radius_g_1)*Vo(1,a)):(s=Math.tan(t.x/this.radius_g_1),a=Math.tan(t.y/this.radius_g_1)*Vo(1,s));var u=a/this.radius_p;if(e=s*s+u*u+o*o,(r=(n=2*this.radius_g*o)*n-4*e*this.C)<0)return t.x=Number.NaN,t.y=Number.NaN,t;i=(-n-Math.sqrt(r))/(2*e),o=this.radius_g+i*o,s*=i,a*=i,t.x=Math.atan2(s,o),t.y=Math.atan(a*Math.cos(t.x)/o),t.y=Math.atan(this.radius_p_inv2*Math.tan(t.y))}else if("sphere"===this.shape){if(this.flip_axis?(a=Math.tan(t.y/this.radius_g_1),s=Math.tan(t.x/this.radius_g_1)*Math.sqrt(1+a*a)):(s=Math.tan(t.x/this.radius_g_1),a=Math.tan(t.y/this.radius_g_1)*Math.sqrt(1+s*s)),e=s*s+a*a+o*o,(r=(n=2*this.radius_g*o)*n-4*e*this.C)<0)return t.x=Number.NaN,t.y=Number.NaN,t;i=(-n-Math.sqrt(r))/(2*e),o=this.radius_g+i*o,s*=i,a*=i,t.x=Math.atan2(s,o),t.y=Math.atan(a*Math.cos(t.x)/o)}return t.x=t.x+this.long0,t},names:["Geostationary Satellite View","Geostationary_Satellite","geos"]};var Vs=1.340264,Bs=-.081106,zs=893e-6,Us=.003796,Gs=Math.sqrt(3)/2;const Ws={init:function(){this.es=0,this.long0=void 0!==this.long0?this.long0:0},forward:function(t){var e=Ti(t.x-this.long0),n=t.y,r=Math.asin(Gs*Math.sin(n)),i=r*r,o=i*i*i;return t.x=e*Math.cos(r)/(Gs*(Vs+3*Bs*i+o*(7*zs+9*Us*i))),t.y=r*(Vs+Bs*i+o*(zs+Us*i)),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},inverse:function(t){t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a;var e,n,r,i,o=t.y;for(i=0;i<12&&(o-=r=(o*(Vs+Bs*(e=o*o)+(n=e*e*e)*(zs+Us*e))-t.y)/(Vs+3*Bs*e+n*(7*zs+9*Us*e)),!(Math.abs(r)<1e-9));++i);return n=(e=o*o)*e*e,t.x=Gs*t.x*(Vs+3*Bs*e+n*(7*zs+9*Us*e))/Math.cos(o),t.y=Math.asin(Math.sin(o)/Gs),t.x=Ti(t.x+this.long0),t},names:["eqearth","Equal Earth","Equal_Earth"]};var qs=1e-10;function Xs(t){var e,n,r,i=Ti(t.x-(this.long0||0)),o=t.y;return e=this.am1+this.m1-Ro(o,n=Math.sin(o),r=Math.cos(o),this.en),n=r*i/(e*Math.sqrt(1-this.es*n*n)),t.x=e*Math.sin(n),t.y=this.am1-e*Math.cos(n),t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function Hs(t){var e,n,r,i;if(t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a,n=Vo(t.x,t.y=this.am1-t.y),i=Fo(this.am1+this.m1-n,this.es,this.en),(e=Math.abs(i))<Zr)e=Math.sin(i),r=n*Math.atan2(t.x,t.y)*Math.sqrt(1-this.es*e*e)/Math.cos(i);else{if(!(Math.abs(e-Zr)<=qs))throw new Error;r=0}return t.x=Ti(r+(this.long0||0)),t.y=os(i),t}function Ys(t){var e,n,r=Ti(t.x-(this.long0||0)),i=t.y;return n=this.cphi1+this.phi1-i,Math.abs(n)>qs?(t.x=n*Math.sin(e=r*Math.cos(i)/n),t.y=this.cphi1-n*Math.cos(e)):t.x=t.y=0,t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function Js(t){var e,n;t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a;var r=Vo(t.x,t.y=this.cphi1-t.y);if(n=this.cphi1+this.phi1-r,Math.abs(n)>Zr)throw new Error;return e=Math.abs(Math.abs(n)-Zr)<=qs?0:r*Math.atan2(t.x,t.y)/Math.cos(n),t.x=Ti(e+(this.long0||0)),t.y=os(n),t}const $s={init:function(){var t;if(this.phi1=this.lat1,Math.abs(this.phi1)<qs)throw new Error;this.es?(this.en=Ao(this.es),this.m1=Ro(this.phi1,this.am1=Math.sin(this.phi1),t=Math.cos(this.phi1),this.en),this.am1=t/(Math.sqrt(1-this.es*this.am1*this.am1)*this.am1),this.inverse=Hs,this.forward=Xs):(Math.abs(this.phi1)+qs>=Zr?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=Js,this.forward=Ys)},names:["bonne","Bonne (Werner lat_1=90)"]};var Zs;fo.defaultDatum="WGS84",fo.Proj=Ki,fo.WGS84=new fo.Proj("WGS84"),fo.Point=To,fo.toPoint=ao,fo.defs=Pi,fo.nadgrid=function(t,e){var n=new DataView(e),r=function(t){var e=t.getInt32(8,!1);return 11!==e&&(11!==(e=t.getInt32(8,!0))&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}(n),i=function(t,e){return{nFields:t.getInt32(8,e),nSubgridFields:t.getInt32(24,e),nSubgrids:t.getInt32(40,e),shiftType:Yi(t,56,64).trim(),fromSemiMajorAxis:t.getFloat64(120,e),fromSemiMinorAxis:t.getFloat64(136,e),toSemiMajorAxis:t.getFloat64(152,e),toSemiMinorAxis:t.getFloat64(168,e)}}(n,r),o=function(t,e,n){for(var r=176,i=[],o=0;o<e.nSubgrids;o++){var s=$i(t,r,n),a=Zi(t,r,s,n),u=Math.round(1+(s.upperLongitude-s.lowerLongitude)/s.longitudeInterval),c=Math.round(1+(s.upperLatitude-s.lowerLatitude)/s.latitudeInterval);i.push({ll:[Hi(s.lowerLongitude),Hi(s.lowerLatitude)],del:[Hi(s.longitudeInterval),Hi(s.latitudeInterval)],lim:[u,c],count:s.gridNodeCount,cvs:Ji(a)}),r+=176+16*s.gridNodeCount}return i}(n,i,r),s={header:i,subgrids:o};return qi[t]=s,s},fo.transform=co,fo.mgrs=bo,fo.version="__VERSION__",(Zs=fo).Proj.projections.add(Lo),Zs.Proj.projections.add(Uo),Zs.Proj.projections.add(Go),Zs.Proj.projections.add(Xo),Zs.Proj.projections.add(Ho),Zs.Proj.projections.add(Yo),Zs.Proj.projections.add($o),Zs.Proj.projections.add(Zo),Zs.Proj.projections.add(Qo),Zs.Proj.projections.add(as),Zs.Proj.projections.add(cs),Zs.Proj.projections.add(hs),Zs.Proj.projections.add(ps),Zs.Proj.projections.add(fs),Zs.Proj.projections.add(ds),Zs.Proj.projections.add(gs),Zs.Proj.projections.add(ys),Zs.Proj.projections.add(vs),Zs.Proj.projections.add(ms),Zs.Proj.projections.add(_s),Zs.Proj.projections.add(bs),Zs.Proj.projections.add(ws),Zs.Proj.projections.add(Es),Zs.Proj.projections.add(xs),Zs.Proj.projections.add(Os),Zs.Proj.projections.add(As),Zs.Proj.projections.add(Rs),Zs.Proj.projections.add(Ls),Zs.Proj.projections.add(ks),Zs.Proj.projections.add(Ws),Zs.Proj.projections.add($s);const Qs=fo,Ks=Qs("+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees","+proj=geocent +datum=WGS84");function ta(t){return Ks.forward(t)}function ea(t){return Ks.inverse(t)}const na=Qs("+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees","+proj=merc +a=6378137 +b=6378137 +lat_ts=0 +lon_0=0 +x_0=0 +y_0=0 +k=1 +units=m +nadgrids=@null +wktext +no_defs +type=crs");function ra(t){const e=na.forward([t[0],t[1]]);return[e[0],e[1],t[2]]}function ia(t){const e=na.inverse([t[0],t[1]]);return[e[0],e[1],t[2]]}function oa(t,e){const n=ta(t),r=ta(e);return i.Vector.distance(n,r)}function sa(t,e){const n=[];{const r=t.length;let i=0;for(let o=0;o<r-1;++o){if(void 0===e||"GEODESIC"===e){const e=jr(t[o],t[o+1]),n=Math.abs(t[o][2]-t[o+1][2]);i+=0===n?e:Math.sqrt(e*e+n*n)}else if("RHUMB"===e){const e=kr(t[o],t[o+1]),n=Math.abs(t[o][2]-t[o+1][2]);i+=0===n?e:Math.sqrt(e*e+n*n)}else"NONE"===e?i+=oa(t[o],t[o+1]):console.warn(`未知的arcType: ${e},导致距离无法计算!`);n.push(i)}}return n}function aa(t){const e="__getXyzFromPostion";let n=(0,i.getExtProp)(t,e);return n&&i.Vector.equals(n[0],t)||(n=[[...t],ta(t)],(0,i.setExtProp)(t,e,n)),n[1]}class ua extends i.Destroyable{constructor(){super(),this._data=this.dv((0,i.react)(void 0))}set data(t){this._data.value=t}get data(){return this._data.value}get dataChanged(){return this._data.changed}}class ca extends i.Destroyable{constructor(){super(...arguments),this._dragStartEvent=this.dv(new i.Event),this._dragOverEvent=this.dv(new i.Event),this._dragLeaveEvent=this.dv(new i.Event),this._dropEvent=this.dv(new i.Event)}dragStart(t){this._dragStartEvent.emit(t)}dragOver(t){this._dragOverEvent.emit(t)}dragLeave(t){this._dragLeaveEvent.emit(t)}drop(t){this._dropEvent.emit(t)}}function la(t,e){e&&(Reflect.has(e,"editing")?e.editing=!0:Reflect.has(e,"positionEditing")&&(e.positionEditing=!0))}function ha(t){["Czm3DTiles","View","ESCameraView","OlView","GeoCameraController"].includes(t.typeName)||(Reflect.has(t,"editing")?t.editing=!0:Reflect.has(t,"positionEditing")&&(t.positionEditing=!0)),"function"==typeof t.execOnCreating&&t.execOnCreating()}function pa(t,e){(0,i.getExtProp)(t,"__treeItem")&&console.error("setSceneObjectTreeItem error!"),(0,i.setExtProp)(t,"__treeItem",e)}function fa(t){return(0,i.getExtProp)(t,"__treeItem")}function da(t){if(!(t.startsWith("./")||t.startsWith("../")||t.startsWith("/")))return t;const e=document.createElement("a");e.href=t;const n=e.href;return e.remove(),n}function ga(t){try{return JSON.parse(t),!0}catch(t){return!1}}function ya(t){return t instanceof Function?t():t}function va(t,e){for(let n of t)if(e.includes(n))return!0;return!1}function ma(t,e){const n=t,r=e;return void 0===n||0===n.length||void 0===r||0===r.length||va(n,r)}function _a(t){const e=setTimeout((()=>{t(),clearTimeout(e)}))}function ba(t){let e=t%360;return e=e<0?360+e:e,e}function wa(t){return ba(t+180)-180}function Ea(t,e,n){let r=ba(t),i=ba(e);return Math.abs(r-i)>180&&(r<i?r+=360:i+=360),wa(r*(1-n)+i*n)}function xa(t,e,n,r){return(r=r||[0,0,0])[0]=Ea(t[0],e[0],n),r[1]=Ea(t[1],e[1],n),r[2]=Ea(t[2],e[2],n),r}function Pa(t){const e=t.children&&(0,i.every)(t.children,(t=>{if(!(t instanceof Sa))throw new Error("!(treeItem instanceof SceneTreeItem)");return!t.show}))||!1,n=t.sceneTree.getSceneObjectShowFunc(t.sceneObject);return!e||n}class Sa extends i.TreeItem{get dragDrop(){return this._dragDrop||(this._dragDrop=this.dv(this.sceneTree.createTreeItemDragDropFunc(this))),this._dragDrop}get type(){return this._type.value}get typeChanged(){return this._type.changed}get isExport(){return this._isExport.value}get isExportChanged(){return this._isExport.changed}set isExport(t){this._isExport.value=t}get sceneTree(){return this.tree}constructor(t,e=!1,n,r,o=!0){let s;super(t,e,n),this._showChangedNotAffectChildren=!1,this._showChangedNotAffectParent=!1,this._type=this.dv((0,i.react)("Unknown")),this._isExport=this.dv((0,i.react)(!0)),this.dispose(this.nameChanged.disposableOn((()=>this.tree&&this.tree.itemsChanged.emit([this])))),this.name=`未命名条目(${this.id})`,this.extras=r,this._isExport.value=o;const a=()=>{s&&(s(),s=void 0)};this.dispose(a),this.dispose(this.sceneObjectChanged.disposableOn((t=>{a(),t&&(s=(0,i.bind)([this,"name"],[t,"name"]))}))),this.dispose(this.showChanged.disposableOn((e=>{if(t.setSceneObjectShowFunc(this.sceneObject,e),this.tree&&this.tree.forceRedraw(),this.children&&!this._showChangedNotAffectChildren)for(let t of this.children)t instanceof Sa&&(t._showChangedNotAffectParent=!0,t.show=e,t._showChangedNotAffectParent=!1);this.parent&&this.parent instanceof Sa&&!this._showChangedNotAffectParent&&(this.parent._showChangedNotAffectChildren=!0,this.parent.show=Pa(this.parent),this.parent._showChangedNotAffectChildren=!1)}))),this.dv(new i.ObjResettingWithEvent(this.sceneObjectChanged,(()=>{if(!this.sceneObject)return;const e=new i.Destroyable;if("show"in this.sceneObject&&"showChanged"in this.sceneObject&&this.sceneObject.showChanged instanceof Event){const n=()=>{this.show=t.getSceneObjectShowFunc(this.sceneObject)};n(),e.dispose(this.sceneObject.showChanged.disposableOn(n))}else if("enabled"in this.sceneObject&&"enabledChanged"in this.sceneObject&&this.sceneObject.enabledChanged instanceof Event){const n=()=>{this.show=t.getSceneObjectShowFunc(this.sceneObject)};n(),e.dispose(this.sceneObject.enabledChanged.disposableOn(n))}return e}))),this.childrenChangedEvent.disposableOn((()=>{const t=Pa(this);this._showChangedNotAffectChildren=!0,this.show=t,this._showChangedNotAffectChildren=!1}));{const t=()=>{let t="Unknown";this.sceneObject?t=this.sceneObject.typeName:this.children&&(t="Folder"),this._type.value=t};this.dispose(this.sceneObjectChanged.disposableOn(t)),this.dispose(this.childrenResetedEvent.disposableOn(t)),t()}}get jsonStr(){return JSON.stringify(this.json,void 0," ")}set jsonStr(t){try{this.json=JSON.parse(t)}catch(t){console.error(`sceneTreeItem.jsonStr error ${t}`,t)}}get json(){const t=this.children&&[...this.children].filter((t=>t.isExport)).map((t=>t.json));return{name:this.name,show:!!this.show&&void 0,collapsed:!!this.uiTreeObject.collapsed||void 0,sceneObj:this.sceneObject&&this.sceneObject.json,children:t,extras:this.extras}}set json(t){var e,n;if(void 0!==t.name&&(this.name=t.name),this.extras=t.extras,this._showChangedNotAffectChildren=!0,this._showChangedNotAffectParent=!0,this.show=null===(e=t.show)||void 0===e||e,this._showChangedNotAffectChildren=!1,this._showChangedNotAffectParent=!1,this.uiTreeObject.collapsed=null!==(n=t.collapsed)&&void 0!==n&&n,this.sceneObject=void 0,t.sceneObj&&(this.sceneObject=this.sceneTree.createSceneObjectFunc(t.sceneObj,this)),t.children){if(this.resetChildren(!0),!this.children)throw new Error("resetChildren(true) cannot get children!");for(let e of t.children){const t=new Sa(this.tree,!0);t.json=e,this.children.push(t)}}}clone(){try{const t=new Sa(this.sceneTree,!!this.children,void 0,this.extras,this.isExport);return t.json=this.json,t.name=this.sceneTree.getSceneTreeItemCloneNameFunc(this),t}catch(t){console.error(`SceneTreeItem.clone error: ${t}`,t)}}insertNewTreeItem(t,e){if("FolderInnerOrAfter"===t||"FolderInnerOrBefore"===t||"FolderInner"===t){if(e&&e.tree!==this.tree)return console.warn("newTreeItem.tree !== this.tree"),!1;do{if(!this.children)break;if(t.includes("Or")&&this.sceneObject)break;return e&&this.children.push(e),!0}while(0);if("FolderInner"===t)return!1;if("FolderInnerOrAfter"===t)return super.insertNewTreeItem("After",e);if("FolderInnerOrBefore"===t)return super.insertNewTreeItem("Before",e);throw new Error("should not be here!")}return super.insertNewTreeItem(t,e)}}!function(t){t.createDefaultProps=()=>({name:"未命名条目",nameEditing:!1,sceneObject:void 0,show:!0,extras:(0,i.reactJsonWithUndefined)(void 0)})}(Sa||(Sa={})),(0,i.extendClassProps)(Sa.prototype,Sa.createDefaultProps);class Oa extends i.Destroyable{get jsonLoadingEvent(){return this._jsonLoadingEvent}constructor(t){super(),this._sceneTree=t,this._jsonLoadingEvent=this.disposeVar(new i.Event),this._setJsonProcessing=this.disposeVar((0,i.createProcessingFromAsyncFunc)(((t,e)=>{return n=this,r=void 0,o=function*(){this._jsonLoadingEvent.emit({type:"init"}),this._jsonLoadingEvent.emit({type:"loading"}),e&&(yield t.promise(this._sceneTree.preloadFunc(e))),this._setJson(e),this._jsonLoadingEvent.emit({type:"loaded"})},new((i=void 0)||(i=Promise))((function(t,e){function s(t){try{u(o.next(t))}catch(t){e(t)}}function a(t){try{u(o.throw(t))}catch(t){e(t)}}function u(e){var n;e.done?t(e.value):(n=e.value,n instanceof i?n:new i((function(t){t(n)}))).then(s,a)}u((o=o.apply(n,r||[])).next())}));var n,r,i,o}))),this._setJsonProcessing.errorFunc=t=>{this._jsonLoadingEvent.emit({type:"error",error:t})}}_setJson(t){try{this._sceneTree.setJson(t||{})}catch(t){console.error(`json数据装配时发生错误!error: ${t}`)}}get json(){return this._sceneTree.getJson()}set json(t){this._setJsonProcessing.restart(new i.CancelError("JSON重新赋值!"),t)}get jsonStr(){return JSON.stringify(this.json,void 0," ")}set jsonStr(t){this.json=JSON.parse(t)}}var Ca=n(4266);function Ma(t,e,n){let{offsetY:r}=e;if(!e.target)return"none";if(!("clientTop"in e.target))return"none";r+=2,r+=e.target.clientTop;let i="none";return i=t.children?r<=.3*n?"before":r>=.7*n?!t.uiTreeObject.collapsed&&t.children.length>0?"inner":"after":"inner":r<=.5*n?"before":"after",i}class Ia extends ca{constructor(t){super(),this._treeItem=t;const{dragStartDataManager:e}=this._treeItem.sceneTree;let n="none";const r=this.disposeVar((0,i.createTimeoutWithStartValues)((()=>{this._treeItem.uiTreeObject.moveToPositionMode=n,console.log(`uiTreeObject.moveToPositionMode = lastDragMode(${n});`)}),200));function o(t){n!==t&&(n=t,r.restart())}this.dispose(this._dragStartEvent.disposableOn((t=>{e.data={type:"UITreeA",value:this._treeItem}}))),this.dispose(this._dragOverEvent.disposableOn((t=>{if(t.dataTransfer){t.preventDefault();do{const n=e;if(!n.data||"UITreeA"!==n.data.type||void 0===n.data.value)break;const r=n.data.value,s=this._treeItem,{tree:a}=s;if(!a)break;const u=[...a.selectedItems];~u.indexOf(r)||u.push(r);const c=Ma(s,t,a.itemDivHeight);if("none"===c)break;if(!i.Tree.canMoveToTreeItems(u,s,c))break;return t.dataTransfer.dropEffect="move",void o(c)}while(0);t.dataTransfer.dropEffect="none",o("none")}}))),this.dispose(this._dropEvent.disposableOn((t=>{const n=e;if(!n.data||"UITreeA"!==n.data.type||void 0===n.data.value)return;const r=n.data.value,s=this._treeItem,{tree:a}=s;if(!a)return;const u=[...a.selectedItems];~u.indexOf(r)||u.push(r);const c=Ma(s,t,a.itemDivHeight);"none"!==c&&i.Tree.canMoveToTreeItems(u,s,c)&&(i.Tree.moveToTreeItems(u,s,c),n.data=void 0,o("none"))}))),this.dispose(this._dragLeaveEvent.disposableOn((()=>{n="none",r.restart()})))}}const Ta=["EnvironmentVariables","ScriptsLoader","SceneScript","ScriptLoader"];class ja extends i.Destroyable{get sceneTree(){return this._sceneTree}constructor(t,e){super(),this._sceneTree=t,this._projectManager=e}}function Na(t,e,n){if(t instanceof Sa)return t.insertNewTreeItem(e,n);{const r={FolderInnerOrAfter:"InnerOrAfter",FolderInnerOrBefore:"InnerOrBefore",FolderInner:"Inner",InnerOrAfter:"InnerOrAfter",InnerOrBefore:"InnerOrBefore",Inner:"Inner",After:"After",Before:"Before"};return t.insertNewTreeItem(r[e],n)}}class Da extends i.Tree{get json(){return this._jsonLoading.json}set json(t){this._jsonLoading.json=t}get jsonStr(){return this._jsonLoading.jsonStr}set jsonStr(t){this._jsonLoading.jsonStr=t}get jsonLoadingEvent(){return this._jsonLoading.jsonLoadingEvent}get name(){return this._name}get projectManager(){return this._projectManager}get contextMenu(){return this._contextMenu}get showPropUiOnSelecting(){return this._showPropUiOnSelecting.value}set showPropUiOnSelecting(t){this._showPropUiOnSelecting.value=t}get showPropUiOnSelectingChanged(){return this._showPropUiOnSelecting.changed}constructor(t,e,n,r){super(n),this._name=t,this._dragStartDataManager=e,this._projectManager=r,this._jsonLoading=this.disposeVar(new Oa(this)),this.createSceneObjectFunc=Da.defaultCreateSceneObjectFunc,this.createTreeItemDragDropFunc=Da.defaultCreateTreeItemDragDropFunc,this.preloadFunc=Da.defaultPreload,this.getSceneObjectShowFunc=Da.defaultGetSceneObjectShow,this.setSceneObjectShowFunc=Da.defaultSetSceneObjectShow,this.getSceneTreeItemCloneNameFunc=Da.defaultGetSceneTreeItemCloneNameFunc,this.debug=!1,this._contextMenu=this.disposeVar(new ja(this,this.projectManager)),this._showPropUiOnSelecting=this.disposeVar((0,i.react)(!0)),this.dispose(this.selectedItems.changedEvent.disposableOn((()=>{var t,e,n;window.lssn=this.lastSelectedItem,window.lsso=null===(t=this.lastSelectedItem)||void 0===t?void 0:t.sceneObject,this.debug&&console.log(null!==(n=null===(e=this.lastSelectedItem)||void 0===e?void 0:e.sceneObject)&&void 0!==n?n:"select null")})));const{sceneObjectsManager:o}=this._projectManager;this.dispose(this.itemsDeleted.disposableOn((t=>{for(let n of t){const t=n,{sceneObject:r}=t;r&&o.deleteSceneObject(r)&&r.destroy()&&pa(r,void 0);for(let e of t.getDescendants()){const{sceneObject:t}=e;t&&o.deleteSceneObject(t)&&t.destroy()&&pa(t,void 0)}[e=n,...e.getDescendants()].forEach((t=>t.destroy()))}var e}))),this.dispose(this.itemsAdded.disposableOn((t=>{for(let e of t){const t=e;t.sceneObject&&o.addSceneObject(t.sceneObject)&&pa(t.sceneObject,t);for(let e of t.getDescendants()){const t=e;t.sceneObject&&o.addSceneObject(t.sceneObject)&&pa(t.sceneObject,t)}}}))),this.dispose(this.selectedItems.changedEvent.disposableOn((()=>{if(!this.showPropUiOnSelecting)return;this._projectManager.propUiTreeManager.sceneObject=void 0;const{lastSelectedItem:t}=this;t&&(this._projectManager.propUiTreeManager.sceneObject=t.sceneObject)})))}get sceneUiTree(){return this.uiTree}getTreeItemFromSceneObjId(t){const e=this.getDescendants();let n;for(let r of e)if(r.sceneObject&&r.sceneObject.id===t){n=r;break}return n}get dragStartDataManager(){return this._dragStartDataManager}getJson(){return{root:{children:[...this.children].filter((t=>t.isExport)).map((t=>t.json))}}}setJson(t){var e,n;t.root=t.root||{};const r=null!==(e=t.root.children)&&void 0!==e?e:[];this.root.resetChildren(!0);for(let t of r){const e=new Sa(this,!0);e.json=t,null===(n=this.root.children)||void 0===n||n.push(e)}}testAddNewTreeItem(t,e){const n=t||this.lastSelectedItem||this.root;return!!n&&Na(n,e)}addNewTreeItem(t,e,n,r){const i=t||this.lastSelectedItem||this.root;if(i&&Na(i,e)){const t=new Sa(this,n);if(t.sceneObject=r,!Na(i,e,t))throw new Error("currentTreeItem.insertNewTreeItem return false!");return t}}createSceneObjectTreeItem(t,e,n,r){const i=null!=r?r:"FolderInnerOrAfter";if(!this.testAddNewTreeItem(n,i))return void console.warn(`cannot addNewTreeItem! currentTreeItem(${n?n.id:"root"})`);const o=Ca.IV.create(t,e);return o?this.addNewTreeItem(n,null!=r?r:"FolderInnerOrAfter",!0,o):void 0}createGroupTreeItem(t,e,n,r){const i=null!=r?r:"FolderInnerOrAfter";if(!this.testAddNewTreeItem(n,i))return void console.warn(`cannot addNewTreeItem! currentTreeItem(${n?n.id:"root"})`);const o=this.addNewTreeItem(n,null!=r?r:"FolderInnerOrAfter",!0);if(o)return o.name=null!=t?t:"未命名组节点",o;console.warn("addNewTreeItem error!")}createSceneObjectTreeItemFromClass(t,e,n,r){const i=null!=r?r:"FolderInnerOrAfter";if(!this.testAddNewTreeItem(n,i))return;const o=Ca.IV.createFromClass(t,e);return o?this.addNewTreeItem(n,i,!0,o):void 0}createSceneObjectTreeItemFromJson(t,e,n){const r=null!=n?n:"FolderInnerOrAfter";if(!this.testAddNewTreeItem(e,r))return;const i=Ca.IV.createFromJson(t);return i?this.addNewTreeItem(e,null!=n?n:"FolderInnerOrAfter",!0,i):void 0}destroySceneObjectTreeItem(t){t!==this.root?t.detachFromParent():console.warn("cannot destroy root! please use function destroyAllSceneObjectTreeItems!")}destroyAllSceneObjectTreeItems(){if(!this.root.children)return;const t=[...this.root.children];for(let e of t)this.destroySceneObjectTreeItem(e)}}Da.defaultCreateSceneObjectFunc=function(t,e){const{type:n,id:r}=t;if(n){const e=Ca.IV.create(n,r);if(e)return e.json=t,e;console.warn(`cannot create sceneObject from type(${n})`)}else console.warn(`cannot create sceneObject from type(${n})`)},Da.defaultCreateTreeItemDragDropFunc=function(t){if(!(t instanceof Sa))throw new Error("defaultCreateTreeItemDragDrop !(treeItem instanceof SceneTreeItem)");return new Ia(t)},Da.defaultPreload=function(t,e){return n=this,r=void 0,o=function*(){const n=function(t){const e=[],{root:n={}}=t,r=[n];for(;r.length>0;){const t=r.pop();if(!t)throw new Error("!todo");if(t.children)for(let n of t.children)if(n.children&&r.unshift(n),n.sceneObj){const{type:t}=n.sceneObj;t||(console.warn("sceneObjJson has no type! treeItem.sceneObj: "),console.warn(n.sceneObj)),t&&Ta.includes(t)&&e.push(n.sceneObj)}}return e}(t);let r=0;const i=n.length;for(let t of n)++r,e&&e(r/i,r,i)},new((i=void 0)||(i=Promise))((function(t,e){function s(t){try{u(o.next(t))}catch(t){e(t)}}function a(t){try{u(o.throw(t))}catch(t){e(t)}}function u(e){var n;e.done?t(e.value):(n=e.value,n instanceof i?n:new i((function(t){t(n)}))).then(s,a)}u((o=o.apply(n,r||[])).next())}));var n,r,i,o},Da.defaultGetSceneObjectShow=function(t){var e,n;let r=!1;do{if(!t)break;"show"in t?r=null===(e=t.show)||void 0===e||e:"enabled"in t&&(r=null===(n=t.enabled)||void 0===n||n)}while(0);return r},Da.defaultSetSceneObjectShow=function(t,e){t&&("show"in t?t.show=e:"enabled"in t&&(t.enabled=e))},Da.defaultGetSceneTreeItemCloneNameFunc=function(t){return t.name+"_clone"};class Aa extends i.Tree{constructor(t){super(t)}get propUiTree(){return this.uiTree}}class Ra extends i.TreeItem{constructor(t,e,n){super(t,e),this._property=n}get property(){return this._property}}class Fa extends Ra{constructor(t,e){super(t,!1,e)}}class La extends Ra{constructor(t,e){super(t,!0,e)}get groupChildren(){return this.children}}var ka=n(4890);function Va(t,e){const n=new Aa(e),r=t.getProperties("chinese"),i=[];for(let t of r)if(t instanceof ka.VS){const e=new La(n,t);e.dispose((()=>t.destroy())),n.children.push(e),i.push(e)}else{const e=new Fa(n,t);n.children.push(e),e.dispose((()=>t.destroy()))}for(;i.length>0;){const t=i.pop();if(!t)throw new Error("should not be here!");const e=t;if(!(e.property instanceof ka.VS))throw new Error("!(treeItem.property instanceof GroupProperty)");for(let t of e.property.children)if(t instanceof ka.VS){const r=new La(n,t);r.dispose((()=>t.destroy())),e.groupChildren.push(r),i.push(r)}else{const r=new Fa(n,t);e.groupChildren.push(r),r.dispose((()=>t.destroy()))}}return n.dispose((()=>{n.itemChildrenChanged.reset(),n.itemChildrenToChange.reset();const t=[...n.getDescendants()];t.forEach((t=>{t.children&&(t.children.length=0),t.destroy()})),t.length=0})),n}class Ba extends i.Destroyable{get propTree(){return this._propTreeReact.value}get propTreeChanged(){return this._propTreeReact.changed}constructor(t){super(),this._propTreeReact=this.disposeVar((0,i.react)(void 0)),this.dispose((()=>this._propTreeReact.value=void 0)),this.disposeVar(new i.ObjResettingWithEvent(this.sceneObjectChanged,(t=>{if(!t)return;const e=new i.Destroyable;return e.dispose(t.toDestroyEvent.disposableOn((()=>{this.sceneObject=void 0}))),e}))),this.dispose(this.sceneObjectChanged.disposableOn((e=>{this._propTreeReact.value=void 0,e&&e instanceof Ca.IV&&(this._propTreeReact.value=Va(e,t))})))}}function za(t,e,n){n(),t.dispose(e.disposableOn(n))}!function(t){t.createDefaultProps=()=>({sceneObject:void 0})}(Ba||(Ba={})),(0,i.extendClassProps)(Ba.prototype,Ba.createDefaultProps);class Ua extends i.Destroyable{get player(){return this._sceneObjectId.sceneObject instanceof Ga?this._sceneObjectId.sceneObject:void 0}get playerChanged(){return this._sceneObjectId.sceneObjectChanged}constructor(t,e,n,r){super(),this._id=t,this._startTimeStamp=e,this._duration=n,this._parent=r,this._sceneObjectId=this.disposeVar(new i.SceneObjectWithId),this._sceneObjectId.id=this._id;const o=()=>{var t;if(!this.player)return;const{currentTime:e=0}=this._parent,n=e-this._startTimeStamp;this.player.currentTime=(0,i.clamp)(n,0,this._duration)*(null!==(t=this.player.speed)&&void 0!==t?t:1)};o(),this.dispose(this._parent.currentTimeChanged.disposableOn(o)),this.dispose(this.playerChanged.disposableOn(o))}}class Ga extends i.Destroyable{get ratio(){return this._ratio.value}set ratio(t){var e;Math.abs(this._ratio.value-t)<.001||(this.currentTime=(null!==(e=this.duration)&&void 0!==e?e:Ga.defaults.duration)*t)}get ratioChanged(){return this._ratio.changed}constructor(){super(),this._ratio=this.disposeVar((0,i.react)(0)),this._subPlayers=this.disposeVar(new i.ObservableArray);const t=this.disposeVar(new i.Player);{const e=()=>{var e;t.loop=null!==(e=this.loop)&&void 0!==e?e:Ga.defaults.loop};e(),this.dispose(this.loopChanged.disposableOn(e))}{const e=()=>{var e;(null!==(e=this.loop)&&void 0!==e?e:Ga.defaults.loop)!==t.loop&&(this.loop=t.loop)};e(),this.dispose(t.loopChangedEvent.disposableOn(e))}{const e=()=>{var e;t.currentTime=null!==(e=this.currentTime)&&void 0!==e?e:Ga.defaults.currentTime};e(),this.dispose(this.currentTimeChanged.disposableOn(e))}{const e=()=>{var e;(null!==(e=this.currentTime)&&void 0!==e?e:Ga.defaults.currentTime)!==t.currentTime&&(this.currentTime=t.currentTime)};e(),this.dispose(t.currentTimeChangedEvent.disposableOn(e))}{const e=()=>{var e;t.duration=null!==(e=this.duration)&&void 0!==e?e:Ga.defaults.duration};e(),this.dispose(this.durationChanged.disposableOn(e))}{const e=()=>{var e;(null!==(e=this.duration)&&void 0!==e?e:Ga.defaults.duration)!==t.duration&&(this.duration=t.duration)};e(),this.dispose(t.durationChangedEvent.disposableOn(e))}{const e=()=>{var e;t.speed=null!==(e=this.speed)&&void 0!==e?e:Ga.defaults.speed};e(),this.dispose(this.speedChanged.disposableOn(e))}{const e=()=>{var e;(null!==(e=this.speed)&&void 0!==e?e:Ga.defaults.speed)!==t.speed&&(this.speed=t.speed)};e(),this.dispose(t.speedChangedEvent.disposableOn(e))}{const e=()=>{var e;t.playing=null!==(e=this.playing)&&void 0!==e?e:Ga.defaults.playing};e(),this.dispose(this.playingChanged.disposableOn(e))}{const e=()=>{var e;(null!==(e=this.playing)&&void 0!==e?e:Ga.defaults.playing)!==t.playing&&(this.playing=t.playing)};e(),this.dispose(t.playingChangedEvent.disposableOn(e))}const e=()=>{var t,e;const n=null!==(t=this.duration)&&void 0!==t?t:Ga.defaults.duration;n>0&&(this._ratio.value=(null!==(e=this.currentTime)&&void 0!==e?e:Ga.defaults.currentTime)/n)};e();const n=this.disposeVar((0,i.createNextAnimateFrameEvent)(this.currentTimeChanged,this.durationChanged));this.dispose(n.disposableOn(e)),this.dispose((()=>{const{length:t}=this._subPlayers;for(let e=0;e<t;++e)this._subPlayers.get(e).destroy();this._subPlayers.length=0}));const r=()=>{for(let t of this._subPlayers)t.destroy();if(this._subPlayers.length=0,!this.channels)return;const t=this.channels.map((t=>{const[e,n,r]=t;return new Ua(e,n,r,this)}));this._subPlayers.splice(0,0,...t)};r(),this.dispose(this.channelsChanged.disposableOn(r))}}Ga.defaults={loop:!1,currentTime:0,duration:3e3,speed:1,playing:!1,channels:!0,ratio:0},Ga.channelsReadMe='用来配置子播放器,它是一个数组形式,数组的每个元素仍然是一个数组,形式是[子播放器的ID, 起始时间, 持续时间]。 \n注意时间的单位是毫秒。 \n示例如下: \n```\n[\n [\n "9591a729-d90b-40d0-8d1b-f1ac4b5263c1",\n 0,\n 5000\n ],\n [\n "76ad204f-58c6-4639-8713-ecfab6783b0f",\n 7000.002288818359,\n 5000\n ]\n]\n```\n',function(t){t.createDefaultProps=()=>({loop:!1,currentTime:0,duration:3e3,speed:1,playing:!1,channels:(0,i.reactDeepArrayWithUndefined)(void 0,((t,e)=>null==t?void 0:t.every(((t,n)=>t===e[n]))),(t=>[...t]))})}(Ga||(Ga={})),(0,i.extendClassProps)(Ga.prototype,Ga.createDefaultProps);class Wa extends i.Destroyable{get sceneObject(){return this._sceneObject.value}get sceneObjectChanged(){return this._sceneObject.changed}get id(){return this._id}constructor(t){super(),this._id=t,this._sceneObject=this.disposeVar((0,i.react)(void 0)),this.dispose((()=>{this._sceneObject.value=void 0}));const e=Ca.IV.getSceneObjById(this._id);e&&(this._sceneObject.value=e),this.dispose(Ca.IV.context.sceneObjCreatedEvent.disposableOn((t=>{t.id===this._id&&(this._sceneObject.value=t)}))),this.dispose(Ca.IV.context.sceneObjToDestroyEvent.disposableOn((t=>{t.id===this._id&&(this._sceneObject.value=void 0)})))}}class qa extends i.Destroyable{constructor(t,e){super(),this._id=t,this._sofi=this.disposeVar(new Wa(this._id));{const t=()=>{e.sceneObject=this._sofi.sceneObject};t(),this.dispose(this._sofi.sceneObjectChanged.disposableOn(t))}}}class Xa extends i.Destroyable{get id(){return this._id.value}get idChanged(){return this._id.changed}set id(t){this._id.value=t}get sceneObject(){return this._sceneObject.value}get sceneObjectChanged(){return this._sceneObject.changed}set sceneObject(t){this._sceneObject.value=t}get resetting(){return this._resetting}constructor(){super(),this._id=this.disposeVar((0,i.react)(void 0)),this._sceneObject=this.disposeVar((0,i.react)(void 0)),this._resetting=this.disposeVar(new i.ObjResettingWithEvent(this.idChanged,(()=>{const{id:t}=this;if(void 0!==t&&""!==t)return new qa(t,this);this.sceneObject=void 0})))}}class Ha extends i.Destroyable{constructor(t,e,n,r){super(),this.disposeVar(new i.ObjResettingWithEvent(t.sceneObjectChanged,(()=>{let o;r.debug&&console.log("正在获取Event事件...");do{const n=t.sceneObject;if(!n)break;if(!e)break;const s=e.split(".");if(0===s.length){r.debug&&console.warn("propNames.length === 0");break}let a=(0,i.pluckProperty)(n,!1,...s);if(a&&a instanceof i.Event||(s[s.length-1]=s[s.length-1]+"Changed",r.debug&&console.warn(`event未能获取,那么将属性名的最后一项加上Changed(${s[s.length-1]})再试试!`),a=(0,i.pluckProperty)(n,!1,...s),r.debug&&a&&console.warn("event仍然获取不到!")),!a){r.debug&&console.warn(`cannot get changed from ${n.id}-${n.name}-${n.ref}-${e}`);break}if(!(a instanceof i.Event)){r.debug&&console.warn(`the prop is not event from ${n.id}-${n.name}-${n.ref}-${e}`);break}o=a,r.debug&&console.log(`Event获取成功 propChangedName: ${e}`,o)}while(0);if(o){const t=new i.Destroyable;return t.dispose(o.dwon((()=>n.emit()))),t}r.debug&&console.log(`未获取到Event!propChangedName: ${e}`)})))}}class Ya extends i.Destroyable{forceExecute(){this._doEvalEvent.emit()}constructor(t,e,n){super(),this._doEvalEvent=this.dv(new i.Event);const r=this._doEvalEvent,o=this.disposeVar((0,i.createNextAnimateFrameEvent)(r)),s=t.map((([t,n])=>{const i=new Wa(t);return[i,n&&new Ha(i,n,r,e)||void 0]}));this.dispose((()=>{s.forEach((([t,e])=>{null==e||e.destroy(),t.destroy()})),s.length=0})),this.dispose(r.disposableOn((()=>{const{evalMode:t="NextAnimateFrame",evalOnlyWhenObjsAllExist:r=!0}=e;if("Immediate"===t){const t=s.map((([t])=>t.sceneObject));r&&!t.every((t=>void 0!==t))||n(t)}}))),this.dispose(o.disposableOn((()=>{const{evalMode:t="NextAnimateFrame",evalOnlyWhenObjsAllExist:r=!0}=e;if("NextAnimateFrame"===t){const t=s.map((([t])=>t.sceneObject));r&&!t.every((t=>void 0!==t))||n(t)}})))}}const{WatcherObjects:Ja}=r;class $a extends i.Destroyable{get evalFunc(){return this._evalFunc}set evalFunc(t){this._evalFunc=t}forceExecute(){this._forceExecute.emit()}constructor(){super(),this._forceExecute=new i.Event;const t=this.dv((0,i.react)(void 0)),e=()=>{try{t.value=this.evalFuncStr&&Function('"use strict";return ('+this.evalFuncStr+")")(),this.debug&&console.log("evalFunc成功构建",t.value)}catch(e){console.error(`evalFunc get error! ${e}`),t.value=void 0}};e(),this.dispose(this.evalFuncStrChanged.disposableOn(e));const n=e=>{this.enabled&&(this.debug&&console.log("执行evalFunc..."),this._evalFunc&&this._evalFunc(e),t.value&&t.value(e))},r=this.disposeVar(new i.ObjResettingWithEvent(this.objIdAndPropChangedNamesChanged,(()=>this.objIdAndPropChangedNames.length>0?(this.debug&&console.log("监视对象发生变化,重新创建WatcherObjects"),new Ja(this.objIdAndPropChangedNames,this,n)):void 0)));this.dispose(this._forceExecute.disposableOn((()=>{var t;null===(t=r.obj)||void 0===t||t.forceExecute()})))}}!function(t){t.createDefaultProps=()=>({enabled:!1,objIdAndPropChangedNames:(0,i.reactDeepArray)([],((t,e)=>t[0]===e[0]&&t[1]===e[1]),(t=>[t[0],t[1]])),evalFuncStr:"",evalMode:"NextAnimateFrame",evalOnlyWhenObjsAllExist:!0,debug:!1,name:"未命名场景对象",ref:void 0,extras:(0,i.reactJson)(void 0),devTags:(0,i.reactArrayWithUndefined)(void 0),execOnceFuncStr:void 0,updateFuncStr:void 0,toDestroyFuncStr:void 0})}($a||($a={})),(0,i.extendClassProps)($a.prototype,$a.createDefaultProps)},5054:(t,e,n)=>{"use strict";t.exports=i,t.exports.default=i;var r=n(3230);function i(t,e){if(!(this instanceof i))return new i(t,e);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&this._initFormat(e),this.clear()}function o(t,e,n){if(!n)return e.indexOf(t);for(var r=0;r<e.length;r++)if(n(t,e[r]))return r;return-1}function s(t,e){a(t,0,t.children.length,e,t)}function a(t,e,n,r,i){i||(i=g(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o,s=e;s<n;s++)o=t.children[s],u(i,t.leaf?r(o):o);return i}function u(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function c(t,e){return t.minX-e.minX}function l(t,e){return t.minY-e.minY}function h(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function p(t){return t.maxX-t.minX+(t.maxY-t.minY)}function f(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function d(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function g(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function y(t,e,n,i,o){for(var s,a=[e,n];a.length;)(n=a.pop())-(e=a.pop())<=i||(s=e+Math.ceil((n-e)/i/2)*i,r(t,s,e,n,o),a.push(e,s,s,n))}i.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,n=[],r=this.toBBox;if(!d(t,e))return n;for(var i,o,s,a,u=[];e;){for(i=0,o=e.children.length;i<o;i++)s=e.children[i],d(t,a=e.leaf?r(s):s)&&(e.leaf?n.push(s):f(t,a)?this._all(s,n):u.push(s));e=u.pop()}return n},collides:function(t){var e=this.data,n=this.toBBox;if(!d(t,e))return!1;for(var r,i,o,s,a=[];e;){for(r=0,i=e.children.length;r<i;r++)if(o=e.children[r],d(t,s=e.leaf?n(o):o)){if(e.leaf||f(t,s))return!0;a.push(o)}e=a.pop()}return!1},load:function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}var r=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===r.height)this._splitRoot(this.data,r);else{if(this.data.height<r.height){var i=this.data;this.data=r,r=i}this._insert(r,this.data.height-r.height-1,!0)}else this.data=r;return this},insert:function(t){return t&&this._insert(t,this.data.height-1),this},clear:function(){return this.data=g([]),this},remove:function(t,e){if(!t)return this;for(var n,r,i,s,a=this.data,u=this.toBBox(t),c=[],l=[];a||c.length;){if(a||(a=c.pop(),r=c[c.length-1],n=l.pop(),s=!0),a.leaf&&-1!==(i=o(t,a.children,e)))return a.children.splice(i,1),c.push(a),this._condense(c),this;s||a.leaf||!f(a,u)?r?(n++,a=r.children[n],s=!1):a=null:(c.push(a),l.push(n),n=0,r=a,a=a.children[0])}return this},toBBox:function(t){return t},compareMinX:c,compareMinY:l,toJSON:function(){return this.data},fromJSON:function(t){return this.data=t,this},_all:function(t,e){for(var n=[];t;)t.leaf?e.push.apply(e,t.children):n.push.apply(n,t.children),t=n.pop();return e},_build:function(t,e,n,r){var i,o=n-e+1,a=this._maxEntries;if(o<=a)return s(i=g(t.slice(e,n+1)),this.toBBox),i;r||(r=Math.ceil(Math.log(o)/Math.log(a)),a=Math.ceil(o/Math.pow(a,r-1))),(i=g([])).leaf=!1,i.height=r;var u,c,l,h,p=Math.ceil(o/a),f=p*Math.ceil(Math.sqrt(a));for(y(t,e,n,f,this.compareMinX),u=e;u<=n;u+=f)for(y(t,u,l=Math.min(u+f-1,n),p,this.compareMinY),c=u;c<=l;c+=p)h=Math.min(c+p-1,l),i.children.push(this._build(t,c,h,r-1));return s(i,this.toBBox),i},_chooseSubtree:function(t,e,n,r){for(var i,o,s,a,u,c,l,p,f,d;r.push(e),!e.leaf&&r.length-1!==n;){for(l=p=1/0,i=0,o=e.children.length;i<o;i++)u=h(s=e.children[i]),f=t,d=s,(c=(Math.max(d.maxX,f.maxX)-Math.min(d.minX,f.minX))*(Math.max(d.maxY,f.maxY)-Math.min(d.minY,f.minY))-u)<p?(p=c,l=u<l?u:l,a=s):c===p&&u<l&&(l=u,a=s);e=a||e.children[0]}return e},_insert:function(t,e,n){var r=this.toBBox,i=n?t:r(t),o=[],s=this._chooseSubtree(i,this.data,e,o);for(s.children.push(t),u(s,i);e>=0&&o[e].children.length>this._maxEntries;)this._split(o,e),e--;this._adjustParentBBoxes(i,o,e)},_split:function(t,e){var n=t[e],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var o=this._chooseSplitIndex(n,i,r),a=g(n.children.splice(o,n.children.length-o));a.height=n.height,a.leaf=n.leaf,s(n,this.toBBox),s(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(n,a)},_splitRoot:function(t,e){this.data=g([t,e]),this.data.height=t.height+1,this.data.leaf=!1,s(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,n){var r,i,o,s,u,c,l,p,f,d,g,y,v,m;for(c=l=1/0,r=e;r<=n-e;r++)f=i=a(t,0,r,this.toBBox),d=o=a(t,r,n,this.toBBox),void 0,void 0,void 0,void 0,g=Math.max(f.minX,d.minX),y=Math.max(f.minY,d.minY),v=Math.min(f.maxX,d.maxX),m=Math.min(f.maxY,d.maxY),s=Math.max(0,v-g)*Math.max(0,m-y),u=h(i)+h(o),s<c?(c=s,p=r,l=u<l?u:l):s===c&&u<l&&(l=u,p=r);return p},_chooseSplitAxis:function(t,e,n){var r=t.leaf?this.compareMinX:c,i=t.leaf?this.compareMinY:l;this._allDistMargin(t,e,n,r)<this._allDistMargin(t,e,n,i)&&t.children.sort(r)},_allDistMargin:function(t,e,n,r){t.children.sort(r);var i,o,s=this.toBBox,c=a(t,0,e,s),l=a(t,n-e,n,s),h=p(c)+p(l);for(i=e;i<n-e;i++)o=t.children[i],u(c,t.leaf?s(o):o),h+=p(c);for(i=n-e-1;i>=e;i--)o=t.children[i],u(l,t.leaf?s(o):o),h+=p(l);return h},_adjustParentBBoxes:function(t,e,n){for(var r=n;r>=0;r--)u(e[r],t)},_condense:function(t){for(var e,n=t.length-1;n>=0;n--)0===t[n].children.length?n>0?(e=t[n-1].children).splice(e.indexOf(t[n]),1):this.clear():s(t[n],this.toBBox)},_initFormat:function(t){var e=["return a"," - b",";"];this.compareMinX=new Function("a","b",e.join(t[0])),this.compareMinY=new Function("a","b",e.join(t[1])),this.toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}},5122:(t,e,n)=>{"use strict";var r=n(8801),i=r("Date.prototype.getDay"),o=r("Object.prototype.toString"),s=n(7185)();t.exports=function(t){return"object"==typeof t&&null!==t&&(s?function(t){try{return i(t),!0}catch(t){return!1}}(t):"[object Date]"===o(t))}},5153:t=>{"use strict";t.exports=Object},5187:(t,e,n)=>{"use strict";var r=Array.prototype.slice,i=n(4635),o=Object.keys,s=o?function(t){return o(t)}:n(5717),a=Object.keys;s.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return i(t)?a(r.call(t)):a(t)})}else Object.keys=s;return Object.keys||s},t.exports=s},5335:t=>{function e(t,e,n){this.k=3,this.dataset=[],this.assignments=[],this.centroids=[],this.init(t,e,n)}e.prototype.init=function(t,e,n){this.assignments=[],this.centroids=[],void 0!==t&&(this.dataset=t),void 0!==e&&(this.k=e),void 0!==n&&(this.distance=n)},e.prototype.run=function(t,e){this.init(t,e);for(var n=this.dataset.length,r=0;r<this.k;r++)this.centroids[r]=this.randomCentroid();for(var i=!0;i;){i=this.assign();for(var o=0;o<this.k;o++){for(var s=new Array(l),a=0,u=0;u<l;u++)s[u]=0;for(var c=0;c<n;c++){var l=this.dataset[c].length;if(o===this.assignments[c]){for(u=0;u<l;u++)s[u]+=this.dataset[c][u];a++}}if(a>0){for(u=0;u<l;u++)s[u]/=a;this.centroids[o]=s}else this.centroids[o]=this.randomCentroid(),i=!0}}return this.getClusters()},e.prototype.randomCentroid=function(){var t,e,n=this.dataset.length-1;do{e=Math.round(Math.random()*n),t=this.dataset[e]}while(this.centroids.indexOf(t)>=0);return t},e.prototype.assign=function(){for(var t,e=!1,n=this.dataset.length,r=0;r<n;r++)(t=this.argmin(this.dataset[r],this.centroids,this.distance))!=this.assignments[r]&&(this.assignments[r]=t,e=!0);return e},e.prototype.getClusters=function(){for(var t,e=new Array(this.k),n=0;n<this.assignments.length;n++)void 0===e[t=this.assignments[n]]&&(e[t]=[]),e[t].push(n);return e},e.prototype.argmin=function(t,e,n){for(var r,i=Number.MAX_VALUE,o=0,s=e.length,a=0;a<s;a++)(r=n(t,e[a]))<i&&(i=r,o=a);return o},e.prototype.distance=function(t,e){for(var n=0,r=Math.min(t.length,e.length);r--;){var i=t[r]-e[r];n+=i*i}return Math.sqrt(n)},t.exports&&(t.exports=e)},5565:(t,e,n)=>{"use strict";var r=n(4938).supportsDescriptors,i=n(4731),o=n(5667),s=Object.defineProperty,a=n(1488),u=n(4252),c=/a/;t.exports=function(){if(!r||!u)throw new a("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=i(),e=u(c),n=o(e,"flags");return n&&n.get===t||s(e,"flags",{configurable:!0,enumerable:!1,get:t}),t}},5583:t=>{function e(t,e,n){this._queue=[],this._priorities=[],this._sorting="desc",this._init(t,e,n)}e.prototype.insert=function(t,e){for(var n=this._queue.length,r=n;r--;){var i=this._priorities[r];"desc"===this._sorting?e>i&&(n=r):e<i&&(n=r)}this._insertAt(t,e,n)},e.prototype.remove=function(t){for(var e=this._queue.length;e--;)if(t===this._queue[e]){this._queue.splice(e,1),this._priorities.splice(e,1);break}},e.prototype.forEach=function(t){this._queue.forEach(t)},e.prototype.getElements=function(){return this._queue},e.prototype.getElementPriority=function(t){return this._priorities[t]},e.prototype.getPriorities=function(){return this._priorities},e.prototype.getElementsWithPriorities=function(){for(var t=[],e=0,n=this._queue.length;e<n;e++)t.push([this._queue[e],this._priorities[e]]);return t},e.prototype._init=function(t,e,n){if(t&&e){if(this._queue=[],this._priorities=[],t.length!==e.length)throw new Error("Arrays must have the same length");for(var r=0;r<t.length;r++)this.insert(t[r],e[r])}n&&(this._sorting=n)},e.prototype._insertAt=function(t,e,n){this._queue.length===n?(this._queue.push(t),this._priorities.push(e)):(this._queue.splice(n,0,t),this._priorities.splice(n,0,e))},t.exports&&(t.exports=e)},5630:(t,e,n)=>{"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(9524);t.exports=o.call(r,i)},5667:(t,e,n)=>{"use strict";var r=n(1333);if(r)try{r([],"length")}catch(t){r=null}t.exports=r},5717:(t,e,n)=>{"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=n(4635),a=Object.prototype.propertyIsEnumerable,u=!a.call({toString:null},"toString"),c=a.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(t){var e=t.constructor;return e&&e.prototype===t},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!p["$"+t]&&i.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{h(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();r=function(t){var e=null!==t&&"object"==typeof t,n="[object Function]"===o.call(t),r=s(t),a=e&&"[object String]"===o.call(t),p=[];if(!e&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var d=c&&n;if(a&&t.length>0&&!i.call(t,0))for(var g=0;g<t.length;++g)p.push(String(g));if(r&&t.length>0)for(var y=0;y<t.length;++y)p.push(String(y));else for(var v in t)d&&"prototype"===v||!i.call(t,v)||p.push(String(v));if(u)for(var m=function(t){if("undefined"==typeof window||!f)return h(t);try{return h(t)}catch(t){return!1}}(t),_=0;_<l.length;++_)m&&"constructor"===l[_]||!i.call(t,l[_])||p.push(l[_]);return p}}t.exports=r},5846:(t,e,n)=>{"use strict";n.d(e,{d:()=>b,S:()=>_});var r=n(8500),i=n(9604),o=n(4890),s=n(6624);function a(t,e){return t.length===e.length&&t.every(((t,n)=>t===e[n]))}class u extends r.Destroyable{constructor(t){super(),this._viewer=t,this.d((0,r.track)([this._viewer,"currentTime"],[this._viewer,"simulationTime"]))}}class c extends r.Destroyable{constructor(t,e){super(),this._viewer=t,this._activeViewer=e;const n=b.createCommonProps(),i=[];Object.keys(n).forEach((t=>{const e=this._activeViewer[t+"Changed"];i.push(e)}));const o=this.dv((0,r.createNextAnimateFrameEvent)(...i));this.d(o.don((()=>{"Created"===this._viewer.status&&"Created"===this._activeViewer.status&&Object.keys(n).forEach((t=>{this._viewer[t]=this._activeViewer[t]}))})));const s=this.dv((0,r.createAnimateFrame)());s.restart(void 0,(()=>{return t=this,e=void 0,r=function*(){if("Created"!==this._viewer.status||"Created"!==this._activeViewer.status)return;const t=this._activeViewer.getCurrentCameraInfo(),e=this._viewer.getCurrentCameraInfo();if(!t)return;const{position:n,rotation:r}=t;e&&a(n,e.position)&&a(r,e.rotation)||this._viewer.flyIn(n,r,0)},new((n=void 0)||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}));var t,e,n,r})),this.d((()=>s.cancel()))}}var l=n(4266);const h=l.IV.context.getStrFromEnv("${earthsdk3-assets-script-dir}/assets/status/loading.gif"),p=l.IV.context.getStrFromEnv("${earthsdk3-assets-script-dir}/assets/status/success.png"),f=l.IV.context.getStrFromEnv("${earthsdk3-assets-script-dir}/assets/status/warn.png");class d extends r.Destroyable{constructor(t){super();const e=()=>{const e=this.dv(new l.$p);this.d((0,r.track)([e,"show"],[t,"useDefaultStatusDiv"]));{const n=()=>{var n;e.show=(null===(n=t.useDefaultStatusDiv)||void 0===n||n)&&"Created"!==t.status};n(),this.d(t.useDefaultStatusDivChanged.don(n)),this.d(t.statusChanged.don(n)),e.cssText="width:100%;height:100%;position:absolute;left:0px;top:0px;"}t.add(e),this.d((()=>t.delete(e))),e.instanceClass=class extends r.Destroyable{constructor(t,e,n){if(super(),this._subContainer=t,this._div=document.createElement("div"),!n)return;this._subContainer.appendChild(this._div),this.d((()=>this._subContainer.removeChild(this._div)));{const t=()=>{e.show?this._div.style.opacity="1":this._div.style.opacity="0"};t(),this.d(e.showChanged.don(t))}let i,o,s,a,u;this._div.style.pointerEvents="none",this._div.style.position="absolute",this._div.style.width="100%",this._div.style.height="100%",this._div.style.backgroundColor="rgba(0, 0, 0, 0.4)",this._div.style.zIndex="100",this._div.style.transition="opacity 2s",i=document.createElement("div"),this._div.appendChild(i),i.style.width="auto",i.style.position="absolute",i.style.left="50%",i.style.top="50%",i.style.transform="translate(-50%,-50%)",i.style.background="rgba(120, 120, 0, 0.7)",i.style.color="white",i.style.fontSize="10px",i.style.background="none",i.style.display="flex",i.style.flexFlow="column",i.style.alignItems="center",o=document.createElement("img"),i.appendChild(o),o.style.pointerEvents="none",o.style.display="block",o.style.width="50px",o.src=`${d.defaults.load}`,o.style.filter="drop-shadow(0px 0px 1px black)",s=document.createElement("div"),i.appendChild(s),s.style.pointerEvents="none",s.style.marginTop="15px",s.style.display="flex",s.style.flexFlow="column",s.style.maxWidth="300px",a=document.createElement("div"),s.appendChild(a),a.style.fontSize="14px",a.style.fontWeight="800",a.style.marginBottom="5px",a.style.textShadow="0 0 2px black",u=document.createElement("div"),s.appendChild(u),u.style.fontWeight="400",u.style.textShadow="0 0 2px black";{const t=()=>{let t="Raw";"Raw"===n.status?t="初始状态":"Creating"===n.status?t="正在创建":"Created"===n.status?t="创建完成":"Error"===n.status?t="创建失败":"Reconnecting"===n.status&&(t="重新连接"),a.innerText=`${t}(${n.status})`,u.innerText=`${n.statusLog}`,"Creating"!==n.status&&"Reconnecting"!==n.status||(o.style.width="40px",o.src=`${d.defaults.load}`),"Created"===n.status&&(o.style.width="40px",o.src=`${d.defaults.succeed}`),"Error"===n.status&&(o.style.width="40px",o.src=`${d.defaults.failure}`)};t();const e=this.dv((0,r.createNextAnimateFrameEvent)(n.statusLogChanged,n.statusChanged));this.d(e.don(t))}}update(){const t=255*Math.random()|0,e=255*Math.random()|0,n=255*Math.random()|0;this._div.style.background=`rgba(${t}, ${e}, ${n}, 0.8)`}}};this.d(t.containerChanged.don((()=>{e()})))}}d.defaults={load:h,succeed:p,failure:f};class g extends r.Destroyable{constructor(t,e,n){super(),this._subContainer=t,this._overlayContainer=e,this._viewer=n;const r=this._subContainer,i=this._overlayContainer,o=this._viewer,s=()=>{var t;const e=null!==(t=o.zIndex)&&void 0!==t?t:"";r.style.zIndex=e,i.style.zIndex=e};s(),this.d(o.zIndexChanged.don(s));const a=()=>{var t;r.style.display=null===(t=o.show)||void 0===t||t?"block":"none"};a(),this.d(o.showChanged.don(a));const u=()=>{var t;r.style.opacity=`${null!==(t=o.opacity)&&void 0!==t?t:1}`};u(),this.d(o.opacityChanged.don(u))}}function y(t){let e=(0,r.getExtProp)(t,"_relativeContainer");return e||(e=document.createElement("div"),e.style.position="relative",e.style.width="100%",e.style.height="100%",e.style.padding="0",e.style.margin="0",t.appendChild(e),(0,r.setExtProp)(t,"_relativeContainer",e)),e}class v extends r.Destroyable{get subContainer(){return this._subContainer}get overlayContainer(){return this._overlayContainer}get containerStyleController(){return this._containerStyleController}get container(){return this._container}constructor(t,e){super(),this._container=t,this._viewer=e,this._subContainer=document.createElement("div"),this._overlayContainer=document.createElement("div"),this._containerStyleController=this.dv(new g(this._subContainer,this._overlayContainer,this._viewer));const{subContainer:n,overlayContainer:r}=this;n.tabIndex=-1,n.style.outline="none",n.style.width="100%",n.style.height="100%",n.onpointerdown=()=>n.focus(),r.style.position="relative",r.setAttribute("earthsdk3","earthsdk3-overlayContainer"),n.setAttribute("earthsdk3","earthsdk3-subContainer"),y(this._container).appendChild(n),this.d((()=>y(this._container).removeChild(n))),y(this._container).appendChild(r),this.d((()=>y(this._container).removeChild(r)))}}class m extends r.Destroyable{constructor(){super(...arguments),this.registerObjsMap=new Map}register(t,e){return this.registerObjsMap.has(t)&&console.warn(`register warn:${t}已经被注册,再次注册会覆盖。`),this.registerObjsMap.set(t,e),t}getViewerConstructor(t){const e=this.registerObjsMap.get(t);if(e)return e;console.warn(`未找到${t}类!`)}createViewer(t){const e=t.type,n=this.getViewerConstructor(e);if(!n)throw new Error(`没有找到类型为${e}的Viewer构造器!`);return new n(t)}}class _ extends r.Destroyable{constructor(t,e,n=!1){if(super(),this._viewer=t,!e)throw new Error("ViewerCustomInteraction: container is null");const i=this.dv(r.DomElementEvent.create(e,"pointerdown")),o=this.dv(r.DomElementEvent.create(e,"pointermove")),s=this.dv(r.DomElementEvent.create(e,"pointerup")),a=this.dv(r.DomElementEvent.create(e,"pointerout")),u=this.dv(r.DomElementEvent.create(e,"pointerover")),c=this.dv(new r.PointerClick),l=this.dv(new r.PointerHover),h=()=>{const t=1e3*this._viewer.hoverTime;l.delayTime=t};this.d(this._viewer.hoverTimeChanged.don((()=>{h()}))),this.d(i.don((t=>c.pointerDown(t)))),this.d(o.don((t=>c.pointerMove(t)))),this.d(s.don((t=>c.pointerUp(t)))),this.d(a.don((t=>c.pointerOut(t)))),this.d(i.don((t=>l.pointerDown(t)))),this.d(o.don((t=>l.pointerMove(t)))),this.d(s.don((t=>l.pointerUp(t)))),this.d(a.don((t=>l.pointerOut(t)))),this.d(l.hoverEvent.don((t=>{const[e,i]=(0,r.getDomEventCurrentTargetPos)(t,n);this._viewer.hoverEvent.emit({screenPosition:[e,i],pointerEvent:t})}))),this.d(c.clickEvent.don((t=>{const[e,i]=(0,r.getDomEventCurrentTargetPos)(t,n);this._viewer.clickEvent.emit({screenPosition:[e,i],pointerEvent:t})}))),this.d(c.dbclickEvent.don((t=>{const[e,i]=(0,r.getDomEventCurrentTargetPos)(t,n);0===t.button&&this._viewer.dblclickEvent.emit({screenPosition:[e,i],pointerEvent:t})}))),this.d(i.don((t=>{const[e,i]=(0,r.getDomEventCurrentTargetPos)(t,n);0===t.button&&this._viewer.pointerDownEvent.emit({screenPosition:[e,i],pointerEvent:t})}))),this.d(s.don((t=>{const[e,i]=(0,r.getDomEventCurrentTargetPos)(t,n);0===t.button&&this._viewer.pointerUpEvent.emit({screenPosition:[e,i],pointerEvent:t})}))),this.d(o.don((t=>{const[e,i]=(0,r.getDomEventCurrentTargetPos)(t,n);this._viewer.pointerMoveEvent.emit({screenPosition:[e,i],pointerEvent:t})}))),this.d(u.don((t=>{const[e,i]=(0,r.getDomEventCurrentTargetPos)(t,n);this._viewer.pointerOverEvent.emit({screenPosition:[e,i],pointerEvent:t})}))),this.d(a.don((t=>{const[e,i]=(0,r.getDomEventCurrentTargetPos)(t,n);this._viewer.pointerOutEvent.emit({screenPosition:[e,i],pointerEvent:t})})));const p=this.dv(r.DomElementEvent.create(e,"keydown"));this.d(p.don((t=>this._viewer.keyDownEvent.emit(t))));const f=this.dv(r.DomElementEvent.create(e,"keyup"));this.d(f.don((t=>this._viewer.keyUpEvent.emit(t))));const d=this.dv(r.DomElementEvent.create(e,"wheel"));this.d(d.don((t=>this._viewer.wheelEvent.emit(t))))}}class b extends r.Destroyable{forceRecreate(){this._forceRecreateEvent.emit()}get container(){return this._container.value}set container(t){this._container.value=t}set containerOrId(t){if("string"==typeof t){const e=document.getElementById(t);e&&e instanceof HTMLDivElement?this._container.value=(0,s.V)(e):console.warn("containerOrId warn: !(container instanceof HTMLDivElement)")}else t instanceof HTMLDivElement?this._container.value=(0,s.V)(t):console.warn("containerOrId warn: setting container failed!")}get containerChanged(){return this._container.changed}get containerSize(){return this._containerSize.value}set containerSize(t){this._containerSize.value=t}get containerSizeChanged(){return this._containerSize.changed}get editingEvent(){return this._editingEvent}get status(){return this._status.value}get statusChanged(){return this._status.changed}setStatus(t){this._status.value=t}get statusLog(){return this._statusLog.value}get statusLogChanged(){return this._statusLog.changed}setStatusLog(t){this._statusLog.value=t}get useCustomInteraction(){return this._useCustomInteraction.value}set useCustomInteraction(t){this._useCustomInteraction.value=t}get viewerChanged(){return this._viewerChanged}get containerResetEvent(){return this._containerResetEvent}get subContainer(){var t;return null===(t=this._containerResetting.obj)||void 0===t?void 0:t.subContainer}get subContainerChanged(){return this._containerResetting.objChanged}get overlayContainer(){var t;return null===(t=this._containerResetting.obj)||void 0===t?void 0:t.overlayContainer}get overlayContainerChanged(){return this._containerResetting.objChanged}get sceneObjectsMap(){return this._sceneObjectsMap}get sceneObjects(){return this._sceneObjectsMap.keys()}add(...t){for(let e of t)if(!this.has(e)){const t=i.E.context.createEngineObject(e,this);t&&this._sceneObjectsMap.set(e,t),e.viewerAttached.emit(this)}}delete(...t){for(let e of t)if(this.has(e)){const t=this._sceneObjectsMap.get(e);t&&t.destroy(),this._sceneObjectsMap.delete(e),e.viewerDetached.emit(this)}}disposableAdd(...t){return this.add(...t),()=>this.delete(...t)}disAdd(...t){return this.disposableAdd(...t)}has(t){return this._sceneObjectsMap.has(t)}clearAllSceneObjects(){for(let t of this.sceneObjects)this.delete(t)}get id(){return this._id}set id(t){console.warn("ESViewer id is readonly")}get typeName(){return this._typeName}_initName(){this.name=`${this.typeName}_${(""+this.id).slice(-4)}`}get defaultProps(){return b.createDefaultProps()}_getJson(t=!0){const e={id:this.id,type:this.typeName};for(let n of Object.keys(this.defaultProps))if(t){let t,i=this.defaultProps[n];t=i instanceof r.ReactiveVariable?i.equals(this[n]):i===this[n],t||(e[n]=this[n])}else e[n]=this[n];return e}_setJson(t,e,n){if(!(t instanceof Object)||t.type&&t.type!==this.typeName)return void console.error(`value.type && value.type${t.type} !== this.typeName${this.typeName}`);t.id&&t.id!==this.id&&console.warn(`value.id === undefined || value.id${t.id} !== this.id(${this.id})`);const i=e||[];i.push("id","type");const o=Object.keys(this.defaultProps).filter((t=>!i.includes(t)));for(let e of o)if(e in t)this[e]=null===t[e]?void 0:t[e];else if(null==n||!n){let t=this.defaultProps[e];t instanceof r.ReactiveVariable&&(t=t.value),this[e]=t}}get json(){return this._getJson()}set json(t){this._setJson(t,["devTags"])}get updateFunc(){return this._updateFuncReact.value}set updateFunc(t){this._updateFuncReact.value=t}get updateFuncChanged(){return this._updateFuncReact.changed}get toDestroyFunc(){return this._toDestroyFuncReact.value}set toDestroyFunc(t){this._toDestroyFuncReact.value=t}get toDestroyFuncChanged(){return this._toDestroyFuncReact.changed}constructor(t){var e;super(),this._forceRecreateEvent=this.dv(new r.Event),this._container=this.dv((0,r.react)(void 0)),this._containerSize=this.dv((0,r.react)(void 0)),this._editingEvent=this.disposeVar(new r.Event),this._status=this.dv((0,r.react)("Raw")),this._statusLog=this.dv((0,r.react)("")),this._statusContainer=this.dv(new d(this)),this._useCustomInteraction=this.dv((0,r.react)(!0)),this._resetInteractionEvent=this.dv((0,r.createNextAnimateFrameEvent)(this.containerChanged,this._useCustomInteraction.changed,this._forceRecreateEvent)),this._interactionResetting=this.dv(new r.ObjResettingWithEvent(this._resetInteractionEvent,(()=>{if(this.container&&this._useCustomInteraction.value)return new _(this,this.container)}))),this._viewerChanged=this.dv(new r.Event),this._containerResetEvent=this.dv((0,r.createNextAnimateFrameEvent)(this.containerChanged,this._forceRecreateEvent)),this._containerResetting=this.dv(new r.ObjResettingWithEvent(this._containerResetEvent,(()=>{if(this.container)return new v(this.container,this)}))),this._sceneObjectsMap=new Map,this._updateFuncReact=this.dv((0,r.react)(void 0)),this._toDestroyFuncReact=this.dv((0,r.react)(void 0)),this._statusInfo=b.defaults.statusInfo,this._navigationMode=this.dv((0,r.react)("Map")),this._syncViewer=this.dv((0,r.react)(void 0)),this._syncEventDon=this.dv(new r.ObjResettingWithEvent(this.syncViewerChanged,(()=>{const t=this.syncViewer;if(t)return new c(this,t)}))),this._timeSyncdon=this.dv(new r.ObjResettingWithEvent(this.timeSyncChanged,(()=>{if(this.timeSync)return new u(this)}))),this._hoverEvent=this.dv(new r.Event),this._pointerOverEvent=this.dv(new r.Event),this._pointerMoveEvent=this.dv(new r.Event),this._pointerDownEvent=this.dv(new r.Event),this._pointerUpEvent=this.dv(new r.Event),this._pointerOutEvent=this.dv(new r.Event),this._clickEvent=this.dv(new r.Event),this._dblclickEvent=this.dv(new r.Event),this._keyDownEvent=this.dv(new r.Event),this._keyUpEvent=this.dv(new r.Event),this._wheelEvent=this.dv(new r.Event),this._actived=this.dv((0,r.react)(!1)),this._id=null!==(e=t.id)&&void 0!==e?e:(0,r.createGuid)();const n=(0,s.M)(t.container);if(!n)throw new Error("container is not defined");this._container.value=(0,s.V)(n),this._typeName=t.type,this._initName();{const t=()=>{var t;n&&(null===(t=this.show)||void 0===t||t?n.style.display="block":n.style.display="none")};t(),this.d(this.showChanged.don(t))}{const t=this._sceneObjectsMap,e=()=>{for(let[e,n]of t.entries())if(!n&&e){const n=i.E.context.createEngineObject(e,this);n&&t.set(e,n)}},n=()=>{for(let[e,n]of t.entries())n&&!n.isDestroyed()&&n.destroy(),t.set(e,void 0)};this.d(n),this.d(this.viewerChanged.don((t=>{n(),t&&e()})))}{const t=()=>{if(this.execOnceFuncStr)try{Function(`"use strict";return (${this.execOnceFuncStr})`)()(this)}catch(t){console.warn(`execOnceFuncStr不能转成函数!或者函数执行时错误!id: ${this.id} ${this.typeName} error: ${t}`)}};t(),this.d(this.execOnceFuncStrChanged.don(t))}{const t=()=>{if(this.updateFuncStr)try{this.updateFunc=Function(`"use strict";return (${this.updateFuncStr})`)()}catch(t){console.warn(`updateFuncStr不能转成函数!或者函数执行时错误!id: ${this.id} ${this.typeName} error: ${t}`)}};let e;t(),this.d(this.updateFuncStrChanged.don(t)),this.d((()=>e&&e.destroy())),this.d(this.updateFuncChanged.don((()=>{e&&e.cancel(),this.updateFunc&&(e=e||(0,r.createAnimateFrame)(),e.restart(void 0,(t=>{this.updateFunc&&this.updateFunc(this,t)})))})))}{const t=()=>{try{this.toDestroyFunc=this.toDestroyFuncStr&&Function(`"use strict";return (${this.toDestroyFuncStr})`)()||void 0}catch(t){console.warn(`toDestroyFuncStr不能转成函数!或者函数执行时错误!id: ${this.id} ${this.typeName} error: ${t}`),this.toDestroyFunc=void 0}};t(),this.d(this.toDestroyFuncStrChanged.don(t)),this.d(this.toDestroyEvent.don((()=>{this.toDestroyFunc&&this.toDestroyFunc(this)})))}}get navigationMode(){return this._navigationMode.value}get navigationModeChanged(){return this._navigationMode.changed}getNavigationMode(){return this._navigationMode.value}getEngineType(){return this._typeName}get syncViewer(){return this._syncViewer.value}set syncViewer(t){this._syncViewer.value=t}get syncViewerChanged(){return this._syncViewer.changed}syncOtherViewer(t){t&&t.syncViewer&&(t.syncViewer=void 0),this._syncViewer.value=t===this?void 0:t}setCurrentTime(t){try{this.currentTime="string"==typeof t?Date.parse(t):t}catch(e){console.warn(`时间格式不正确! value: ${t} error: ${e}`)}}getVersion(){var t,e,n,r,i;return e=this,n=void 0,i=function*(){return null!==(t=window.g_XE3CopyRights)&&void 0!==t?t:{}},new((r=void 0)||(r=Promise))((function(t,o){function s(t){try{u(i.next(t))}catch(t){o(t)}}function a(t){try{u(i.throw(t))}catch(t){o(t)}}function u(e){var n;e.done?t(e.value):(n=e.value,n instanceof r?n:new r((function(t){t(n)}))).then(s,a)}u((i=i.apply(e,n||[])).next())}))}get hoverEvent(){return this._hoverEvent}get pointerOverEvent(){return this._pointerOverEvent}get pointerMoveEvent(){return this._pointerMoveEvent}get pointerDownEvent(){return this._pointerDownEvent}get pointerUpEvent(){return this._pointerUpEvent}get pointerOutEvent(){return this._pointerOutEvent}get clickEvent(){return this._clickEvent}get dblclickEvent(){return this._dblclickEvent}get keyDownEvent(){return this._keyDownEvent}get keyUpEvent(){return this._keyUpEvent}get wheelEvent(){return this._wheelEvent}getProperties(t){return[new o.VS("ESViewer","ESViewer",[new o.YF("强制刷新","重载",[],(()=>this.forceRecreate()),[]),new o.uz("debug","debug",!0,!1,[this,"debug"],b.defaults.debug),new o.uz("是否可见","是否可见",!0,!1,[this,"show"]),new o.fX("位置点单位","lonLatFormat",!0,!1,[this,"lonLatFormat"],[["度","DECIMAL_DEGREE"],["度分","DEGREES_DECIMAL_MINUTES"],["度分秒","SEXAGESIMAL_DEGREE"]]),new o.uz("是否开启文字避让","textAvoidance",!0,!1,[this,"textAvoidance"],!1),new o.XB("ionAccessToken","ionAccessToken",!1,!1,[this,"ionAccessToken"]),new o.du("时钟","时钟",!1,!1,[this,"currentTime"]),new o.uz("globeShow","globeShow",!0,!1,[this,"globeShow"]),new o.uz("atmosphere","atmosphere",!1,!1,[this,"atmosphere"])]),new o.du("飞行像素范围","默认飞行定位时对象包围球所占的屏幕像素大小",!1,!1,[this,"flyToBoundingSize"]),new o.du("编辑高度偏移","编辑时默认的高度偏移",!1,!1,[this,"editingHeightOffset"]),new o.VS("Globe","Globe",[new o.EO("地形着色器","可以设置地形全局坡度,坡向,高程带,等高线等",!1,!1,[this,"terrainShader"])])]}get actived(){return this._actived.value}set actived(t){this._actived.value=t}get activedChanged(){return this._actived.changed}}b.context=new m,b.register=b.context.register.bind(b.context),b.defaults={show:!0,debug:!1,statusInfo:{fps:0,position:[0,0,0],rotation:[0,0,0],length:0},terrainShader:{slope:{show:!1},aspect:{show:!1},elevationRamp:{show:!1},elevationContour:{show:!1,color:[1,0,0,1],spacing:150,width:2}},globeShow:!0},function(t){t.createBaseProps=()=>({name:"未命名场景对象",extras:(0,r.reactJson)(void 0),devTags:(0,r.reactArrayWithUndefined)(void 0),debug:void 0,show:void 0,opacity:void 0,zIndex:void 0,useDefaultStatusDiv:!0,execOnceFuncStr:void 0,updateFuncStr:void 0,toDestroyFuncStr:void 0}),t.createCommonProps=()=>({globeShow:!0,ionAccessToken:"",lonLatFormat:"DECIMAL_DEGREE",fov:60,textAvoidance:!1,flyToBoundingSize:256,hoverTime:2,currentTime:Date.now(),simulationTime:Date.now(),timeSync:!1,rain:0,snow:0,cloud:0,fog:0,depthOfField:0,atmosphere:!0,editingPointSize:void 0,editingPointColor:(0,r.reactArrayWithUndefined)(void 0),editingAuxiliaryPointColor:(0,r.reactArrayWithUndefined)(void 0),editingLineWidth:void 0,editingLineColor:(0,r.reactArrayWithUndefined)(void 0),editingAxisSize:void 0,editingAuxiliaryPointSize:void 0,editingHeightOffset:0,editingLineShow:!0,editingEventListening:!0,terrainShader:t.defaults.terrainShader}),t.createDefaultProps=()=>Object.assign(Object.assign({},t.createBaseProps()),t.createCommonProps())}(b||(b={})),(0,r.extendClassProps)(b.prototype,b.createDefaultProps)},5848:(t,e,n)=>{if(t.exports)var r=n(5583);function i(t,e,n,r){this.epsilon=1,this.minPts=1,this.distance=this._euclideanDistance,this._reachability=[],this._processed=[],this._coreDistance=0,this._orderedList=[],this._init(t,e,n,r)}i.prototype.run=function(t,e,n,i){this._init(t,e,n,i);for(var o=0,s=this.dataset.length;o<s;o++)if(1!==this._processed[o]){this._processed[o]=1,this.clusters.push([o]);var a=this.clusters.length-1;this._orderedList.push(o);var u=new r(null,null,"asc"),c=this._regionQuery(o);void 0!==this._distanceToCore(o)&&(this._updateQueue(o,c,u),this._expandCluster(a,u))}return this.clusters},i.prototype.getReachabilityPlot=function(){for(var t=[],e=0,n=this._orderedList.length;e<n;e++){var r=this._orderedList[e],i=this._reachability[r];t.push([r,i])}return t},i.prototype._init=function(t,e,n,r){if(t){if(!(t instanceof Array))throw Error("Dataset must be of type array, "+typeof t+" given");this.dataset=t,this.clusters=[],this._reachability=new Array(this.dataset.length),this._processed=new Array(this.dataset.length),this._coreDistance=0,this._orderedList=[]}e&&(this.epsilon=e),n&&(this.minPts=n),r&&(this.distance=r)},i.prototype._updateQueue=function(t,e,n){var r=this;this._coreDistance=this._distanceToCore(t),e.forEach((function(e){if(void 0===r._processed[e]){var i=r.distance(r.dataset[t],r.dataset[e]),o=Math.max(r._coreDistance,i);void 0===r._reachability[e]?(r._reachability[e]=o,n.insert(e,o)):o<r._reachability[e]&&(r._reachability[e]=o,n.remove(e),n.insert(e,o))}}))},i.prototype._expandCluster=function(t,e){for(var n=e.getElements(),r=0,i=n.length;r<i;r++){var o=n[r];if(void 0===this._processed[o]){var s=this._regionQuery(o);this._processed[o]=1,this.clusters[t].push(o),this._orderedList.push(o),void 0!==this._distanceToCore(o)&&(this._updateQueue(o,s,e),this._expandCluster(t,e))}}},i.prototype._distanceToCore=function(t){for(var e=this.epsilon,n=0;n<e;n++)if(this._regionQuery(t,n).length>=this.minPts)return n},i.prototype._regionQuery=function(t,e){e=e||this.epsilon;for(var n=[],r=0,i=this.dataset.length;r<i;r++)this.distance(this.dataset[t],this.dataset[r])<e&&n.push(r);return n},i.prototype._euclideanDistance=function(t,e){for(var n=0,r=Math.min(t.length,e.length);r--;)n+=(t[r]-e[r])*(t[r]-e[r]);return Math.sqrt(n)},t.exports&&(t.exports=i)},5952:(t,e,n)=>{"use strict";var r=n(22),i=n(491)(),o=n(342).functionsHaveConfigurableNames(),s=n(1102);t.exports=function(t,e){if("function"!=typeof t)throw new s("`fn` is not a function");return arguments.length>2&&!!arguments[2]&&!o||(i?r(t,"name",e,!0,!0):r(t,"name",e)),t}},5956:(t,e,n)=>{var r=n(5187),i=n(6531),o=n(9068),s=n(92),a=n(7994),u=n(5122),c=Date.prototype.getTime;function l(t){return null==t}function h(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length||"function"!=typeof t.copy||"function"!=typeof t.slice||t.length>0&&"number"!=typeof t[0])}t.exports=function t(e,n,p){var f=p||{};return!!(f.strict?o(e,n):e===n)||(!e||!n||"object"!=typeof e&&"object"!=typeof n?f.strict?o(e,n):e==n:function(e,n,o){var p,f;if(typeof e!=typeof n)return!1;if(l(e)||l(n))return!1;if(e.prototype!==n.prototype)return!1;if(i(e)!==i(n))return!1;var d=s(e),g=s(n);if(d!==g)return!1;if(d||g)return e.source===n.source&&a(e)===a(n);if(u(e)&&u(n))return c.call(e)===c.call(n);var y=h(e),v=h(n);if(y!==v)return!1;if(y||v){if(e.length!==n.length)return!1;for(p=0;p<e.length;p++)if(e[p]!==n[p])return!1;return!0}if(typeof e!=typeof n)return!1;try{var m=r(e),_=r(n)}catch(t){return!1}if(m.length!==_.length)return!1;for(m.sort(),_.sort(),p=m.length-1;p>=0;p--)if(m[p]!=_[p])return!1;for(p=m.length-1;p>=0;p--)if(!t(e[f=m[p]],n[f],o))return!1;return!0}(e,n,f))}},5966:t=>{"use strict";t.exports=URIError},5974:(t,e,n)=>{var r=n(1919),i=n(9883);t.exports=function(t,e,n,o){return e.length>0&&Array.isArray(e[0])?i(t,e,n,o):r(t,e,n,o)},t.exports.nested=i,t.exports.flat=r},5989:(t,e,n)=>{"use strict";var r;n.d(e,{G:()=>s});const i=Date.now();function o(t){const{os:e,arch:n}=function(){const t=navigator.userAgent;let e="Unknown";/Windows/.test(t)?e="Windows":/Macintosh/.test(t)?e="MacOS":/Linux/.test(t)?e="Linux":/Android/.test(t)?e="Android":/iOS|iPhone|iPad|iPod/.test(t)&&(e="iOS");let n="Unknown";return/x64|x86_64|Win64|WOW64/.test(t)?n="x64":/x86|i686|Win32/.test(t)?n="x86":/arm64|aarch64/.test(t)?n="arm64":/arm/.test(t)&&(n="arm"),{os:e.toLocaleLowerCase(),arch:n.toLocaleLowerCase()}}(),r={version:t.version,commitdate:t.date,commitId:t.commitId,runningTime:(Date.now()-i)/1e3/60|0,date:(new Date).toLocaleString(),href:window.location.href,os:e,arch:n},o={method:"GET",headers:new Headers,redirect:"follow"},s=window.encodeURIComponent(JSON.stringify(r));fetch(`https://account.bjxbsj.cn/api/product/record?product=EarthSDKJS&content=${s}`,o).then((t=>t.text())).then((t=>console.log(t))).catch((t=>console.log("error",t)))}let s;try{const t=null!=="earthsdk3"?"earthsdk3":"-",e="3.0.2",n="2025-04-03T03:12:18.000Z",i="北京西部世界科技有限公司",a="地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",u="2b3e316f8957b8997dd380674d5ab14b845e345f",c=1743649938e3,l=((Date.now()-c)/36e5).toFixed(1),h=`%c🌏 ${t}%c ${e}.${u.slice(0,8)}.${n} (距今${l}个小时)\n%c${a?a+"\n":""}当前网站正在使用${t},此软件版权归${i}所有\n`;s=Object.freeze({get owner(){return"北京西部世界科技有限公司"},get ownerlink(){},get gituri(){return GITURI_&&GITURI_.replace("${commitId}","2b3e316f8957b8997dd380674d5ab14b845e345f")},get info(){return h},get date(){return"2025-04-03T03:12:18.000Z"},get author(){return"suplyang"},get version(){return"3.0.2"},get name(){return"earthsdk3"},get commitId(){return"2b3e316f8957b8997dd380674d5ab14b845e345f"},print(){console.info(this.info,"\n font-size: 18px;\n font-weight: 1000;\n line-height: 1;\n color: rgb(0, 120, 215);\n padding-top: 20px;\n padding-bottom: 10px;\n ","\n font-size: 10px;\n font-weight: 1000;\n color: rgb(0, 120, 215);\n ","\n font-size: 10px;\n line-height: 1.5;\n color: rgb(0, 120, 215);\n padding-bottom: 2px;\n padding-left: 35px;\n ")}}),window.g_XE3CopyRights=window.g_XE3CopyRights||{},window.g_XE3CopyRights[t]=s,window.g_XE3SendProductUsageInfo=window.g_XE3SendProductUsageInfo||!0,window.g_XE3SendProductUsageInfo&&(setTimeout((()=>o(s)),6e4),setInterval((()=>o(s)),864e5)),window.g_earthsdk_copyright_print=null===(r=window.g_earthsdk_copyright_print)||void 0===r||r,window.g_earthsdk_copyright_print&&s.print()}catch(t){console.warn("版本信息有误!")}},6084:t=>{"use strict";var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,i){for(var o,s,a=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),u=1;u<arguments.length;u++){for(var c in o=Object(arguments[u]))n.call(o,c)&&(a[c]=o[c]);if(e){s=e(o);for(var l=0;l<s.length;l++)r.call(o,s[l])&&(a[s[l]]=o[s[l]])}}return a}},6255:t=>{"use strict";t.exports=Function.prototype.call},6309:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});class r{constructor(t=[],e=i){if(this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(let t=(this.length>>1)-1;t>=0;t--)this._down(t)}push(t){this.data.push(t),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;const t=this.data[0],e=this.data.pop();return this.length--,this.length>0&&(this.data[0]=e,this._down(0)),t}peek(){return this.data[0]}_up(t){const{data:e,compare:n}=this,r=e[t];for(;t>0;){const i=t-1>>1,o=e[i];if(n(r,o)>=0)break;e[t]=o,t=i}e[t]=r}_down(t){const{data:e,compare:n}=this,r=this.length>>1,i=e[t];for(;t<r;){let r=1+(t<<1),o=e[r];const s=r+1;if(s<this.length&&n(e[s],o)<0&&(r=s,o=e[s]),n(o,i)>=0)break;e[t]=o,t=r}e[t]=i}}function i(t,e){return t<e?-1:t>e?1:0}},6411:(t,e,n)=>{var r=n(1290),i=n(8390),o=n(6438),s=n(1162).A,a=o.featureEach,u=(o.coordEach,i.polygon,i.featureCollection);function c(t){var e=new r(t);return e.insert=function(t){if("Feature"!==t.type)throw new Error("invalid feature");return t.bbox=t.bbox?t.bbox:s(t),r.prototype.insert.call(this,t)},e.load=function(t){var e=[];return Array.isArray(t)?t.forEach((function(t){if("Feature"!==t.type)throw new Error("invalid features");t.bbox=t.bbox?t.bbox:s(t),e.push(t)})):a(t,(function(t){if("Feature"!==t.type)throw new Error("invalid features");t.bbox=t.bbox?t.bbox:s(t),e.push(t)})),r.prototype.load.call(this,e)},e.remove=function(t,e){if("Feature"!==t.type)throw new Error("invalid feature");return t.bbox=t.bbox?t.bbox:s(t),r.prototype.remove.call(this,t,e)},e.clear=function(){return r.prototype.clear.call(this)},e.search=function(t){var e=r.prototype.search.call(this,this.toBBox(t));return u(e)},e.collides=function(t){return r.prototype.collides.call(this,this.toBBox(t))},e.all=function(){var t=r.prototype.all.call(this);return u(t)},e.toJSON=function(){return r.prototype.toJSON.call(this)},e.fromJSON=function(t){return r.prototype.fromJSON.call(this,t)},e.toBBox=function(t){var e;if(t.bbox)e=t.bbox;else if(Array.isArray(t)&&4===t.length)e=t;else if(Array.isArray(t)&&6===t.length)e=[t[0],t[1],t[3],t[4]];else if("Feature"===t.type)e=s(t);else{if("FeatureCollection"!==t.type)throw new Error("invalid geojson");e=s(t)}return{minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}},e}t.exports=c,t.exports.default=c},6438:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(8390);function i(t,e,n){if(null!==t)for(var r,o,s,a,u,c,l,h,p=0,f=0,d=t.type,g="FeatureCollection"===d,y="Feature"===d,v=g?t.features.length:1,m=0;m<v;m++){u=(h=!!(l=g?t.features[m].geometry:y?t.geometry:t)&&"GeometryCollection"===l.type)?l.geometries.length:1;for(var _=0;_<u;_++){var b=0,w=0;if(null!==(a=h?l.geometries[_]:l)){c=a.coordinates;var E=a.type;switch(p=!n||"Polygon"!==E&&"MultiPolygon"!==E?0:1,E){case null:break;case"Point":if(!1===e(c,f,m,b,w))return!1;f++,b++;break;case"LineString":case"MultiPoint":for(r=0;r<c.length;r++){if(!1===e(c[r],f,m,b,w))return!1;f++,"MultiPoint"===E&&b++}"LineString"===E&&b++;break;case"Polygon":case"MultiLineString":for(r=0;r<c.length;r++){for(o=0;o<c[r].length-p;o++){if(!1===e(c[r][o],f,m,b,w))return!1;f++}"MultiLineString"===E&&b++,"Polygon"===E&&w++}"Polygon"===E&&b++;break;case"MultiPolygon":for(r=0;r<c.length;r++){for(w=0,o=0;o<c[r].length;o++){for(s=0;s<c[r][o].length-p;s++){if(!1===e(c[r][o][s],f,m,b,w))return!1;f++}w++}b++}break;case"GeometryCollection":for(r=0;r<a.geometries.length;r++)if(!1===i(a.geometries[r],e,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function o(t,e){var n;switch(t.type){case"FeatureCollection":for(n=0;n<t.features.length&&!1!==e(t.features[n].properties,n);n++);break;case"Feature":e(t.properties,0)}}function s(t,e){if("Feature"===t.type)e(t,0);else if("FeatureCollection"===t.type)for(var n=0;n<t.features.length&&!1!==e(t.features[n],n);n++);}function a(t,e){var n,r,i,o,s,a,u,c,l,h,p=0,f="FeatureCollection"===t.type,d="Feature"===t.type,g=f?t.features.length:1;for(n=0;n<g;n++){for(a=f?t.features[n].geometry:d?t.geometry:t,c=f?t.features[n].properties:d?t.properties:{},l=f?t.features[n].bbox:d?t.bbox:void 0,h=f?t.features[n].id:d?t.id:void 0,s=(u=!!a&&"GeometryCollection"===a.type)?a.geometries.length:1,i=0;i<s;i++)if(null!==(o=u?a.geometries[i]:a))switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===e(o,p,c,l,h))return!1;break;case"GeometryCollection":for(r=0;r<o.geometries.length;r++)if(!1===e(o.geometries[r],p,c,l,h))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===e(null,p,c,l,h))return!1;p++}}function u(t,e){a(t,(function(t,n,i,o,s){var a,u=null===t?null:t.type;switch(u){case null:case"Point":case"LineString":case"Polygon":return!1!==e(r.feature(t,i,{bbox:o,id:s}),n,0)&&void 0}switch(u){case"MultiPoint":a="Point";break;case"MultiLineString":a="LineString";break;case"MultiPolygon":a="Polygon"}for(var c=0;c<t.coordinates.length;c++){var l={type:a,coordinates:t.coordinates[c]};if(!1===e(r.feature(l,i),n,c))return!1}}))}function c(t,e){u(t,(function(t,n,o){var s=0;if(t.geometry){var a=t.geometry.type;if("Point"!==a&&"MultiPoint"!==a){var u,c=0,l=0,h=0;return!1!==i(t,(function(i,a,p,f,d){if(void 0===u||n>c||f>l||d>h)return u=i,c=n,l=f,h=d,void(s=0);var g=r.lineString([u,i],t.properties);if(!1===e(g,n,o,d,s))return!1;s++,u=i}))&&void 0}}}))}function l(t,e){if(!t)throw new Error("geojson is required");u(t,(function(t,n,i){if(null!==t.geometry){var o=t.geometry.type,s=t.geometry.coordinates;switch(o){case"LineString":if(!1===e(t,n,i,0,0))return!1;break;case"Polygon":for(var a=0;a<s.length;a++)if(!1===e(r.lineString(s[a],t.properties),n,i,a))return!1}}}))}e.coordAll=function(t){var e=[];return i(t,(function(t){e.push(t)})),e},e.coordEach=i,e.coordReduce=function(t,e,n,r){var o=n;return i(t,(function(t,r,i,s,a){o=0===r&&void 0===n?t:e(o,t,r,i,s,a)}),r),o},e.featureEach=s,e.featureReduce=function(t,e,n){var r=n;return s(t,(function(t,i){r=0===i&&void 0===n?t:e(r,t,i)})),r},e.findPoint=function(t,e){if(e=e||{},!r.isObject(e))throw new Error("options is invalid");var n,i=e.featureIndex||0,o=e.multiFeatureIndex||0,s=e.geometryIndex||0,a=e.coordIndex||0,u=e.properties;switch(t.type){case"FeatureCollection":i<0&&(i=t.features.length+i),u=u||t.features[i].properties,n=t.features[i].geometry;break;case"Feature":u=u||t.properties,n=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=t;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var c=n.coordinates;switch(n.type){case"Point":return r.point(c,u,e);case"MultiPoint":return o<0&&(o=c.length+o),r.point(c[o],u,e);case"LineString":return a<0&&(a=c.length+a),r.point(c[a],u,e);case"Polygon":return s<0&&(s=c.length+s),a<0&&(a=c[s].length+a),r.point(c[s][a],u,e);case"MultiLineString":return o<0&&(o=c.length+o),a<0&&(a=c[o].length+a),r.point(c[o][a],u,e);case"MultiPolygon":return o<0&&(o=c.length+o),s<0&&(s=c[o].length+s),a<0&&(a=c[o][s].length-a),r.point(c[o][s][a],u,e)}throw new Error("geojson is invalid")},e.findSegment=function(t,e){if(e=e||{},!r.isObject(e))throw new Error("options is invalid");var n,i=e.featureIndex||0,o=e.multiFeatureIndex||0,s=e.geometryIndex||0,a=e.segmentIndex||0,u=e.properties;switch(t.type){case"FeatureCollection":i<0&&(i=t.features.length+i),u=u||t.features[i].properties,n=t.features[i].geometry;break;case"Feature":u=u||t.properties,n=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=t;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var c=n.coordinates;switch(n.type){case"Point":case"MultiPoint":return null;case"LineString":return a<0&&(a=c.length+a-1),r.lineString([c[a],c[a+1]],u,e);case"Polygon":return s<0&&(s=c.length+s),a<0&&(a=c[s].length+a-1),r.lineString([c[s][a],c[s][a+1]],u,e);case"MultiLineString":return o<0&&(o=c.length+o),a<0&&(a=c[o].length+a-1),r.lineString([c[o][a],c[o][a+1]],u,e);case"MultiPolygon":return o<0&&(o=c.length+o),s<0&&(s=c[o].length+s),a<0&&(a=c[o][s].length-a-1),r.lineString([c[o][s][a],c[o][s][a+1]],u,e)}throw new Error("geojson is invalid")},e.flattenEach=u,e.flattenReduce=function(t,e,n){var r=n;return u(t,(function(t,i,o){r=0===i&&0===o&&void 0===n?t:e(r,t,i,o)})),r},e.geomEach=a,e.geomReduce=function(t,e,n){var r=n;return a(t,(function(t,i,o,s,a){r=0===i&&void 0===n?t:e(r,t,i,o,s,a)})),r},e.lineEach=l,e.lineReduce=function(t,e,n){var r=n;return l(t,(function(t,i,o,s){r=0===i&&void 0===n?t:e(r,t,i,o,s)})),r},e.propEach=o,e.propReduce=function(t,e,n){var r=n;return o(t,(function(t,i){r=0===i&&void 0===n?t:e(r,t,i)})),r},e.segmentEach=c,e.segmentReduce=function(t,e,n){var r=n,i=!1;return c(t,(function(t,o,s,a,u){r=!1===i&&void 0===n?t:e(r,t,o,s,a,u),i=!0})),r}},6440:(t,e,n)=>{"use strict";var r=n(9524),i=n(4811),o=n(7785);t.exports=function(){return o(r,i,arguments)}},6469:t=>{"use strict";t.exports=RangeError},6531:(t,e,n)=>{"use strict";var r=n(7185)(),i=n(8801)("Object.prototype.toString"),o=function(t){return!(r&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===i(t)},s=function(t){return!!o(t)||null!==t&&"object"==typeof t&&"length"in t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==i(t)&&"callee"in t&&"[object Function]"===i(t.callee)},a=function(){return o(arguments)}();o.isLegacyArguments=s,t.exports=a?o:s},6624:(t,e,n)=>{"use strict";function r(t){return"string"==typeof t?document.getElementById(t):t}function i(t){if(!t)throw new Error("container is not defined");t.innerHTML="";const e=document.createElement("div");return e.style.cssText="width: 100%; height: 100%; margin: 0px; padding: 0px; border: none; overflow: hidden; position: relative; z-index: 0; background: rgba(0,0,0,0);",t.appendChild(e),e}n.d(e,{M:()=>r,V:()=>i})},6844:function(t,e){!function(t){"use strict";function e(){}function n(t){this.message=t||""}function r(t){this.message=t||""}function i(t){this.message=t||""}function o(){}function s(t){return null===t?At:t.color}function a(t){return null===t?null:t.parent}function u(t,e){null!==t&&(t.color=e)}function c(t){return null===t?null:t.left}function l(t){return null===t?null:t.right}function h(){this.root_=null,this.size_=0}function p(){}function f(){this.array_=[],arguments[0]instanceof bt&&this.addAll(arguments[0])}function d(){}function g(t){this.message=t||""}function y(){this.array_=[]}"fill"in Array.prototype||Object.defineProperty(Array.prototype,"fill",{configurable:!0,value:function(t){if(null==this)throw new TypeError(this+" is not an object");var e=Object(this),n=Math.max(Math.min(e.length,9007199254740991),0)||0,r=1 in arguments&&parseInt(Number(arguments[1]),10)||0;r=r<0?Math.max(n+r,0):Math.min(r,n);var i=2 in arguments&&void 0!==arguments[2]?parseInt(Number(arguments[2]),10)||0:n;for(i=i<0?Math.max(n+arguments[2],0):Math.min(i,n);r<i;)e[r]=t,++r;return e},writable:!0}),Number.isFinite=Number.isFinite||function(t){return"number"==typeof t&&isFinite(t)},Number.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},Number.parseFloat=Number.parseFloat||parseFloat,Number.isNaN=Number.isNaN||function(t){return t!=t},Math.trunc=Math.trunc||function(t){return t<0?Math.ceil(t):Math.floor(t)};var v=function(){};v.prototype.interfaces_=function(){return[]},v.prototype.getClass=function(){return v},v.prototype.equalsWithTolerance=function(t,e,n){return Math.abs(t-e)<=n};var m=function(t){function e(e){t.call(this,e),this.name="IllegalArgumentException",this.message=e,this.stack=(new t).stack}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error),_=function(){},b={MAX_VALUE:{configurable:!0}};_.isNaN=function(t){return Number.isNaN(t)},_.doubleToLongBits=function(t){return t},_.longBitsToDouble=function(t){return t},_.isInfinite=function(t){return!Number.isFinite(t)},b.MAX_VALUE.get=function(){return Number.MAX_VALUE},Object.defineProperties(_,b);var w=function(){},E=function(){},x=function(){},P=function t(){if(this.x=null,this.y=null,this.z=null,0===arguments.length)this.x=0,this.y=0,this.z=t.NULL_ORDINATE;else if(1===arguments.length){var e=arguments[0];this.x=e.x,this.y=e.y,this.z=e.z}else 2===arguments.length?(this.x=arguments[0],this.y=arguments[1],this.z=t.NULL_ORDINATE):3===arguments.length&&(this.x=arguments[0],this.y=arguments[1],this.z=arguments[2])},S={DimensionalComparator:{configurable:!0},serialVersionUID:{configurable:!0},NULL_ORDINATE:{configurable:!0},X:{configurable:!0},Y:{configurable:!0},Z:{configurable:!0}};P.prototype.setOrdinate=function(t,e){switch(t){case P.X:this.x=e;break;case P.Y:this.y=e;break;case P.Z:this.z=e;break;default:throw new m("Invalid ordinate index: "+t)}},P.prototype.equals2D=function(){if(1===arguments.length){var t=arguments[0];return this.x===t.x&&this.y===t.y}if(2===arguments.length){var e=arguments[0],n=arguments[1];return!!v.equalsWithTolerance(this.x,e.x,n)&&!!v.equalsWithTolerance(this.y,e.y,n)}},P.prototype.getOrdinate=function(t){switch(t){case P.X:return this.x;case P.Y:return this.y;case P.Z:return this.z}throw new m("Invalid ordinate index: "+t)},P.prototype.equals3D=function(t){return this.x===t.x&&this.y===t.y&&(this.z===t.z||_.isNaN(this.z))&&_.isNaN(t.z)},P.prototype.equals=function(t){return t instanceof P&&this.equals2D(t)},P.prototype.equalInZ=function(t,e){return v.equalsWithTolerance(this.z,t.z,e)},P.prototype.compareTo=function(t){var e=t;return this.x<e.x?-1:this.x>e.x?1:this.y<e.y?-1:this.y>e.y?1:0},P.prototype.clone=function(){},P.prototype.copy=function(){return new P(this)},P.prototype.toString=function(){return"("+this.x+", "+this.y+", "+this.z+")"},P.prototype.distance3D=function(t){var e=this.x-t.x,n=this.y-t.y,r=this.z-t.z;return Math.sqrt(e*e+n*n+r*r)},P.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},P.prototype.hashCode=function(){var t=17;return 37*(t=37*t+P.hashCode(this.x))+P.hashCode(this.y)},P.prototype.setCoordinate=function(t){this.x=t.x,this.y=t.y,this.z=t.z},P.prototype.interfaces_=function(){return[w,E,e]},P.prototype.getClass=function(){return P},P.hashCode=function(){if(1===arguments.length)return _.doubleToLongBits(arguments[0]),Math.trunc(0)},S.DimensionalComparator.get=function(){return O},S.serialVersionUID.get=function(){return 0x5cbf2c235c7e5800},S.NULL_ORDINATE.get=function(){return _.NaN},S.X.get=function(){return 0},S.Y.get=function(){return 1},S.Z.get=function(){return 2},Object.defineProperties(P,S);var O=function(t){if(this._dimensionsToTest=2,0===arguments.length);else if(1===arguments.length){var e=arguments[0];if(2!==e&&3!==e)throw new m("only 2 or 3 dimensions may be specified");this._dimensionsToTest=e}};O.prototype.compare=function(t,e){var n=t,r=e,i=O.compare(n.x,r.x);if(0!==i)return i;var o=O.compare(n.y,r.y);return 0!==o?o:this._dimensionsToTest<=2?0:O.compare(n.z,r.z)},O.prototype.interfaces_=function(){return[x]},O.prototype.getClass=function(){return O},O.compare=function(t,e){return t<e?-1:t>e?1:_.isNaN(t)?_.isNaN(e)?0:-1:_.isNaN(e)?1:0};var C=function(){};C.prototype.create=function(){},C.prototype.interfaces_=function(){return[]},C.prototype.getClass=function(){return C};var M=function(){},I={INTERIOR:{configurable:!0},BOUNDARY:{configurable:!0},EXTERIOR:{configurable:!0},NONE:{configurable:!0}};M.prototype.interfaces_=function(){return[]},M.prototype.getClass=function(){return M},M.toLocationSymbol=function(t){switch(t){case M.EXTERIOR:return"e";case M.BOUNDARY:return"b";case M.INTERIOR:return"i";case M.NONE:return"-"}throw new m("Unknown location value: "+t)},I.INTERIOR.get=function(){return 0},I.BOUNDARY.get=function(){return 1},I.EXTERIOR.get=function(){return 2},I.NONE.get=function(){return-1},Object.defineProperties(M,I);var T=function(t,e){return t.interfaces_&&t.interfaces_().indexOf(e)>-1},j=function(){},N={LOG_10:{configurable:!0}};j.prototype.interfaces_=function(){return[]},j.prototype.getClass=function(){return j},j.log10=function(t){var e=Math.log(t);return _.isInfinite(e)||_.isNaN(e)?e:e/j.LOG_10},j.min=function(t,e,n,r){var i=t;return e<i&&(i=e),n<i&&(i=n),r<i&&(i=r),i},j.clamp=function(){if("number"==typeof arguments[2]&&"number"==typeof arguments[0]&&"number"==typeof arguments[1]){var t=arguments[0],e=arguments[1],n=arguments[2];return t<e?e:t>n?n:t}if(Number.isInteger(arguments[2])&&Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var r=arguments[0],i=arguments[1],o=arguments[2];return r<i?i:r>o?o:r}},j.wrap=function(t,e){return t<0?e- -t%e:t%e},j.max=function(){if(3===arguments.length){var t=arguments[1],e=arguments[2],n=arguments[0];return t>n&&(n=t),e>n&&(n=e),n}if(4===arguments.length){var r=arguments[1],i=arguments[2],o=arguments[3],s=arguments[0];return r>s&&(s=r),i>s&&(s=i),o>s&&(s=o),s}},j.average=function(t,e){return(t+e)/2},N.LOG_10.get=function(){return Math.log(10)},Object.defineProperties(j,N);var D=function(t){this.str=t};D.prototype.append=function(t){this.str+=t},D.prototype.setCharAt=function(t,e){this.str=this.str.substr(0,t)+e+this.str.substr(t+1)},D.prototype.toString=function(t){return this.str};var A=function(t){this.value=t};A.prototype.intValue=function(){return this.value},A.prototype.compareTo=function(t){return this.value<t?-1:this.value>t?1:0},A.isNaN=function(t){return Number.isNaN(t)};var R=function(){};R.isWhitespace=function(t){return t<=32&&t>=0||127===t},R.toUpperCase=function(t){return t.toUpperCase()};var F=function t(){if(this._hi=0,this._lo=0,0===arguments.length)this.init(0);else if(1===arguments.length)if("number"==typeof arguments[0]){var e=arguments[0];this.init(e)}else if(arguments[0]instanceof t){var n=arguments[0];this.init(n)}else"string"==typeof arguments[0]&&t.call(this,t.parse(arguments[0]));else if(2===arguments.length){var r=arguments[0],i=arguments[1];this.init(r,i)}},L={PI:{configurable:!0},TWO_PI:{configurable:!0},PI_2:{configurable:!0},E:{configurable:!0},NaN:{configurable:!0},EPS:{configurable:!0},SPLIT:{configurable:!0},MAX_PRINT_DIGITS:{configurable:!0},TEN:{configurable:!0},ONE:{configurable:!0},SCI_NOT_EXPONENT_CHAR:{configurable:!0},SCI_NOT_ZERO:{configurable:!0}};F.prototype.le=function(t){return(this._hi<t._hi||this._hi===t._hi)&&this._lo<=t._lo},F.prototype.extractSignificantDigits=function(t,e){var n=this.abs(),r=F.magnitude(n._hi),i=F.TEN.pow(r);(n=n.divide(i)).gt(F.TEN)?(n=n.divide(F.TEN),r+=1):n.lt(F.ONE)&&(n=n.multiply(F.TEN),r-=1);for(var o=r+1,s=new D,a=F.MAX_PRINT_DIGITS-1,u=0;u<=a;u++){t&&u===o&&s.append(".");var c=Math.trunc(n._hi);if(c<0)break;var l=!1,h=0;c>9?(l=!0,h="9"):h="0"+c,s.append(h),n=n.subtract(F.valueOf(c)).multiply(F.TEN),l&&n.selfAdd(F.TEN);var p=!0,f=F.magnitude(n._hi);if(f<0&&Math.abs(f)>=a-u&&(p=!1),!p)break}return e[0]=r,s.toString()},F.prototype.sqr=function(){return this.multiply(this)},F.prototype.doubleValue=function(){return this._hi+this._lo},F.prototype.subtract=function(){if(arguments[0]instanceof F){var t=arguments[0];return this.add(t.negate())}if("number"==typeof arguments[0]){var e=arguments[0];return this.add(-e)}},F.prototype.equals=function(){if(1===arguments.length){var t=arguments[0];return this._hi===t._hi&&this._lo===t._lo}},F.prototype.isZero=function(){return 0===this._hi&&0===this._lo},F.prototype.selfSubtract=function(){if(arguments[0]instanceof F){var t=arguments[0];return this.isNaN()?this:this.selfAdd(-t._hi,-t._lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.isNaN()?this:this.selfAdd(-e,0)}},F.prototype.getSpecialNumberString=function(){return this.isZero()?"0.0":this.isNaN()?"NaN ":null},F.prototype.min=function(t){return this.le(t)?this:t},F.prototype.selfDivide=function(){if(1===arguments.length){if(arguments[0]instanceof F){var t=arguments[0];return this.selfDivide(t._hi,t._lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.selfDivide(e,0)}}else if(2===arguments.length){var n,r,i,o,s=arguments[0],a=arguments[1],u=null,c=null,l=null,h=null;return i=this._hi/s,h=(u=(l=F.SPLIT*i)-(u=l-i))*(c=(h=F.SPLIT*s)-(c=h-s))-(o=i*s)+u*(r=s-c)+(n=i-u)*c+n*r,h=i+(l=(this._hi-o-h+this._lo-i*a)/s),this._hi=h,this._lo=i-h+l,this}},F.prototype.dump=function(){return"DD<"+this._hi+", "+this._lo+">"},F.prototype.divide=function(){if(arguments[0]instanceof F){var t,e,n,r,i=arguments[0],o=null,s=null,a=null,u=null;return t=(n=this._hi/i._hi)-(o=(a=F.SPLIT*n)-(o=a-n)),u=o*(s=(u=F.SPLIT*i._hi)-(s=u-i._hi))-(r=n*i._hi)+o*(e=i._hi-s)+t*s+t*e,a=(this._hi-r-u+this._lo-n*i._lo)/i._hi,new F(u=n+a,n-u+a)}if("number"==typeof arguments[0]){var c=arguments[0];return _.isNaN(c)?F.createNaN():F.copy(this).selfDivide(c,0)}},F.prototype.ge=function(t){return(this._hi>t._hi||this._hi===t._hi)&&this._lo>=t._lo},F.prototype.pow=function(t){if(0===t)return F.valueOf(1);var e=new F(this),n=F.valueOf(1),r=Math.abs(t);if(r>1)for(;r>0;)r%2==1&&n.selfMultiply(e),(r/=2)>0&&(e=e.sqr());else n=e;return t<0?n.reciprocal():n},F.prototype.ceil=function(){if(this.isNaN())return F.NaN;var t=Math.ceil(this._hi),e=0;return t===this._hi&&(e=Math.ceil(this._lo)),new F(t,e)},F.prototype.compareTo=function(t){var e=t;return this._hi<e._hi?-1:this._hi>e._hi?1:this._lo<e._lo?-1:this._lo>e._lo?1:0},F.prototype.rint=function(){return this.isNaN()?this:this.add(.5).floor()},F.prototype.setValue=function(){if(arguments[0]instanceof F){var t=arguments[0];return this.init(t),this}if("number"==typeof arguments[0]){var e=arguments[0];return this.init(e),this}},F.prototype.max=function(t){return this.ge(t)?this:t},F.prototype.sqrt=function(){if(this.isZero())return F.valueOf(0);if(this.isNegative())return F.NaN;var t=1/Math.sqrt(this._hi),e=this._hi*t,n=F.valueOf(e),r=this.subtract(n.sqr())._hi*(.5*t);return n.add(r)},F.prototype.selfAdd=function(){if(1===arguments.length){if(arguments[0]instanceof F){var t=arguments[0];return this.selfAdd(t._hi,t._lo)}if("number"==typeof arguments[0]){var e,n,r,i,o,s=arguments[0],a=null;return a=(r=this._hi+s)-(i=r-this._hi),n=(o=(a=s-i+(this._hi-a))+this._lo)+(r-(e=r+o)),this._hi=e+n,this._lo=n+(e-this._hi),this}}else if(2===arguments.length){var u,c,l,h,p=arguments[0],f=arguments[1],d=null,g=null,y=null;l=this._hi+p,c=this._lo+f,g=l-(y=l-this._hi),d=c-(h=c-this._lo);var v=(u=l+(y=(g=p-y+(this._hi-g))+c))+(y=(d=f-h+(this._lo-d))+(y+(l-u))),m=y+(u-v);return this._hi=v,this._lo=m,this}},F.prototype.selfMultiply=function(){if(1===arguments.length){if(arguments[0]instanceof F){var t=arguments[0];return this.selfMultiply(t._hi,t._lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.selfMultiply(e,0)}}else if(2===arguments.length){var n,r,i=arguments[0],o=arguments[1],s=null,a=null,u=null,c=null;s=(u=F.SPLIT*this._hi)-this._hi,c=F.SPLIT*i,s=u-s,n=this._hi-s,a=c-i;var l=(u=this._hi*i)+(c=s*(a=c-a)-u+s*(r=i-a)+n*a+n*r+(this._hi*o+this._lo*i)),h=c+(s=u-l);return this._hi=l,this._lo=h,this}},F.prototype.selfSqr=function(){return this.selfMultiply(this)},F.prototype.floor=function(){if(this.isNaN())return F.NaN;var t=Math.floor(this._hi),e=0;return t===this._hi&&(e=Math.floor(this._lo)),new F(t,e)},F.prototype.negate=function(){return this.isNaN()?this:new F(-this._hi,-this._lo)},F.prototype.clone=function(){},F.prototype.multiply=function(){if(arguments[0]instanceof F){var t=arguments[0];return t.isNaN()?F.createNaN():F.copy(this).selfMultiply(t)}if("number"==typeof arguments[0]){var e=arguments[0];return _.isNaN(e)?F.createNaN():F.copy(this).selfMultiply(e,0)}},F.prototype.isNaN=function(){return _.isNaN(this._hi)},F.prototype.intValue=function(){return Math.trunc(this._hi)},F.prototype.toString=function(){var t=F.magnitude(this._hi);return t>=-3&&t<=20?this.toStandardNotation():this.toSciNotation()},F.prototype.toStandardNotation=function(){var t=this.getSpecialNumberString();if(null!==t)return t;var e=new Array(1).fill(null),n=this.extractSignificantDigits(!0,e),r=e[0]+1,i=n;if("."===n.charAt(0))i="0"+n;else if(r<0)i="0."+F.stringOfChar("0",-r)+n;else if(-1===n.indexOf(".")){var o=r-n.length;i=n+F.stringOfChar("0",o)+".0"}return this.isNegative()?"-"+i:i},F.prototype.reciprocal=function(){var t,e,n,r,i=null,o=null,s=null,a=null;t=(n=1/this._hi)-(i=(s=F.SPLIT*n)-(i=s-n)),o=(a=F.SPLIT*this._hi)-this._hi;var u=n+(s=(1-(r=n*this._hi)-(a=i*(o=a-o)-r+i*(e=this._hi-o)+t*o+t*e)-n*this._lo)/this._hi);return new F(u,n-u+s)},F.prototype.toSciNotation=function(){if(this.isZero())return F.SCI_NOT_ZERO;var t=this.getSpecialNumberString();if(null!==t)return t;var e=new Array(1).fill(null),n=this.extractSignificantDigits(!1,e),r=F.SCI_NOT_EXPONENT_CHAR+e[0];if("0"===n.charAt(0))throw new Error("Found leading zero: "+n);var i="";n.length>1&&(i=n.substring(1));var o=n.charAt(0)+"."+i;return this.isNegative()?"-"+o+r:o+r},F.prototype.abs=function(){return this.isNaN()?F.NaN:this.isNegative()?this.negate():new F(this)},F.prototype.isPositive=function(){return(this._hi>0||0===this._hi)&&this._lo>0},F.prototype.lt=function(t){return(this._hi<t._hi||this._hi===t._hi)&&this._lo<t._lo},F.prototype.add=function(){if(arguments[0]instanceof F){var t=arguments[0];return F.copy(this).selfAdd(t)}if("number"==typeof arguments[0]){var e=arguments[0];return F.copy(this).selfAdd(e)}},F.prototype.init=function(){if(1===arguments.length){if("number"==typeof arguments[0]){var t=arguments[0];this._hi=t,this._lo=0}else if(arguments[0]instanceof F){var e=arguments[0];this._hi=e._hi,this._lo=e._lo}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this._hi=n,this._lo=r}},F.prototype.gt=function(t){return(this._hi>t._hi||this._hi===t._hi)&&this._lo>t._lo},F.prototype.isNegative=function(){return(this._hi<0||0===this._hi)&&this._lo<0},F.prototype.trunc=function(){return this.isNaN()?F.NaN:this.isPositive()?this.floor():this.ceil()},F.prototype.signum=function(){return this._hi>0?1:this._hi<0?-1:this._lo>0?1:this._lo<0?-1:0},F.prototype.interfaces_=function(){return[e,w,E]},F.prototype.getClass=function(){return F},F.sqr=function(t){return F.valueOf(t).selfMultiply(t)},F.valueOf=function(){return"string"==typeof arguments[0]?F.parse(arguments[0]):"number"==typeof arguments[0]?new F(arguments[0]):void 0},F.sqrt=function(t){return F.valueOf(t).sqrt()},F.parse=function(t){for(var e=0,n=t.length;R.isWhitespace(t.charAt(e));)e++;var r=!1;if(e<n){var i=t.charAt(e);"-"!==i&&"+"!==i||(e++,"-"===i&&(r=!0))}for(var o=new F,s=0,a=0,u=0;!(e>=n);){var c=t.charAt(e);if(e++,R.isDigit(c)){var l=c-"0";o.selfMultiply(F.TEN),o.selfAdd(l),s++}else{if("."!==c){if("e"===c||"E"===c){var h=t.substring(e);try{u=A.parseInt(h)}catch(e){throw e instanceof Error?new Error("Invalid exponent "+h+" in string "+t):e}break}throw new Error("Unexpected character '"+c+"' at position "+e+" in string "+t)}a=s}}var p=o,f=s-a-u;if(0===f)p=o;else if(f>0){var d=F.TEN.pow(f);p=o.divide(d)}else if(f<0){var g=F.TEN.pow(-f);p=o.multiply(g)}return r?p.negate():p},F.createNaN=function(){return new F(_.NaN,_.NaN)},F.copy=function(t){return new F(t)},F.magnitude=function(t){var e=Math.abs(t),n=Math.log(e)/Math.log(10),r=Math.trunc(Math.floor(n));return 10*Math.pow(10,r)<=e&&(r+=1),r},F.stringOfChar=function(t,e){for(var n=new D,r=0;r<e;r++)n.append(t);return n.toString()},L.PI.get=function(){return new F(3.141592653589793,12246467991473532e-32)},L.TWO_PI.get=function(){return new F(6.283185307179586,24492935982947064e-32)},L.PI_2.get=function(){return new F(1.5707963267948966,6123233995736766e-32)},L.E.get=function(){return new F(2.718281828459045,14456468917292502e-32)},L.NaN.get=function(){return new F(_.NaN,_.NaN)},L.EPS.get=function(){return 123259516440783e-46},L.SPLIT.get=function(){return 134217729},L.MAX_PRINT_DIGITS.get=function(){return 32},L.TEN.get=function(){return F.valueOf(10)},L.ONE.get=function(){return F.valueOf(1)},L.SCI_NOT_EXPONENT_CHAR.get=function(){return"E"},L.SCI_NOT_ZERO.get=function(){return"0.0E0"},Object.defineProperties(F,L);var k=function(){},V={DP_SAFE_EPSILON:{configurable:!0}};k.prototype.interfaces_=function(){return[]},k.prototype.getClass=function(){return k},k.orientationIndex=function(t,e,n){var r=k.orientationIndexFilter(t,e,n);if(r<=1)return r;var i=F.valueOf(e.x).selfAdd(-t.x),o=F.valueOf(e.y).selfAdd(-t.y),s=F.valueOf(n.x).selfAdd(-e.x),a=F.valueOf(n.y).selfAdd(-e.y);return i.selfMultiply(a).selfSubtract(o.selfMultiply(s)).signum()},k.signOfDet2x2=function(t,e,n,r){return t.multiply(r).selfSubtract(e.multiply(n)).signum()},k.intersection=function(t,e,n,r){var i=F.valueOf(r.y).selfSubtract(n.y).selfMultiply(F.valueOf(e.x).selfSubtract(t.x)),o=F.valueOf(r.x).selfSubtract(n.x).selfMultiply(F.valueOf(e.y).selfSubtract(t.y)),s=i.subtract(o),a=F.valueOf(r.x).selfSubtract(n.x).selfMultiply(F.valueOf(t.y).selfSubtract(n.y)),u=F.valueOf(r.y).selfSubtract(n.y).selfMultiply(F.valueOf(t.x).selfSubtract(n.x)),c=a.subtract(u).selfDivide(s).doubleValue(),l=F.valueOf(t.x).selfAdd(F.valueOf(e.x).selfSubtract(t.x).selfMultiply(c)).doubleValue(),h=F.valueOf(e.x).selfSubtract(t.x).selfMultiply(F.valueOf(t.y).selfSubtract(n.y)),p=F.valueOf(e.y).selfSubtract(t.y).selfMultiply(F.valueOf(t.x).selfSubtract(n.x)),f=h.subtract(p).selfDivide(s).doubleValue(),d=F.valueOf(n.y).selfAdd(F.valueOf(r.y).selfSubtract(n.y).selfMultiply(f)).doubleValue();return new P(l,d)},k.orientationIndexFilter=function(t,e,n){var r=null,i=(t.x-n.x)*(e.y-n.y),o=(t.y-n.y)*(e.x-n.x),s=i-o;if(i>0){if(o<=0)return k.signum(s);r=i+o}else{if(!(i<0))return k.signum(s);if(o>=0)return k.signum(s);r=-i-o}var a=k.DP_SAFE_EPSILON*r;return s>=a||-s>=a?k.signum(s):2},k.signum=function(t){return t>0?1:t<0?-1:0},V.DP_SAFE_EPSILON.get=function(){return 1e-15},Object.defineProperties(k,V);var B=function(){},z={X:{configurable:!0},Y:{configurable:!0},Z:{configurable:!0},M:{configurable:!0}};z.X.get=function(){return 0},z.Y.get=function(){return 1},z.Z.get=function(){return 2},z.M.get=function(){return 3},B.prototype.setOrdinate=function(t,e,n){},B.prototype.size=function(){},B.prototype.getOrdinate=function(t,e){},B.prototype.getCoordinate=function(){},B.prototype.getCoordinateCopy=function(t){},B.prototype.getDimension=function(){},B.prototype.getX=function(t){},B.prototype.clone=function(){},B.prototype.expandEnvelope=function(t){},B.prototype.copy=function(){},B.prototype.getY=function(t){},B.prototype.toCoordinateArray=function(){},B.prototype.interfaces_=function(){return[E]},B.prototype.getClass=function(){return B},Object.defineProperties(B,z);var U=function(){},G=function(t){function e(){t.call(this,"Projective point not representable on the Cartesian plane.")}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(U),W=function(){};W.arraycopy=function(t,e,n,r,i){for(var o=0,s=e;s<e+i;s++)n[r+o]=t[s],o++},W.getProperty=function(t){return{"line.separator":"\n"}[t]};var q=function t(){if(this.x=null,this.y=null,this.w=null,0===arguments.length)this.x=0,this.y=0,this.w=1;else if(1===arguments.length){var e=arguments[0];this.x=e.x,this.y=e.y,this.w=1}else if(2===arguments.length){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var n=arguments[0],r=arguments[1];this.x=n,this.y=r,this.w=1}else if(arguments[0]instanceof t&&arguments[1]instanceof t){var i=arguments[0],o=arguments[1];this.x=i.y*o.w-o.y*i.w,this.y=o.x*i.w-i.x*o.w,this.w=i.x*o.y-o.x*i.y}else if(arguments[0]instanceof P&&arguments[1]instanceof P){var s=arguments[0],a=arguments[1];this.x=s.y-a.y,this.y=a.x-s.x,this.w=s.x*a.y-a.x*s.y}}else if(3===arguments.length){var u=arguments[0],c=arguments[1],l=arguments[2];this.x=u,this.y=c,this.w=l}else if(4===arguments.length){var h=arguments[0],p=arguments[1],f=arguments[2],d=arguments[3],g=h.y-p.y,y=p.x-h.x,v=h.x*p.y-p.x*h.y,m=f.y-d.y,_=d.x-f.x,b=f.x*d.y-d.x*f.y;this.x=y*b-_*v,this.y=m*v-g*b,this.w=g*_-m*y}};q.prototype.getY=function(){var t=this.y/this.w;if(_.isNaN(t)||_.isInfinite(t))throw new G;return t},q.prototype.getX=function(){var t=this.x/this.w;if(_.isNaN(t)||_.isInfinite(t))throw new G;return t},q.prototype.getCoordinate=function(){var t=new P;return t.x=this.getX(),t.y=this.getY(),t},q.prototype.interfaces_=function(){return[]},q.prototype.getClass=function(){return q},q.intersection=function(t,e,n,r){var i=t.y-e.y,o=e.x-t.x,s=t.x*e.y-e.x*t.y,a=n.y-r.y,u=r.x-n.x,c=n.x*r.y-r.x*n.y,l=i*u-a*o,h=(o*c-u*s)/l,p=(a*s-i*c)/l;if(_.isNaN(h)||_.isInfinite(h)||_.isNaN(p)||_.isInfinite(p))throw new G;return new P(h,p)};var X=function t(){if(this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,0===arguments.length)this.init();else if(1===arguments.length){if(arguments[0]instanceof P){var e=arguments[0];this.init(e.x,e.x,e.y,e.y)}else if(arguments[0]instanceof t){var n=arguments[0];this.init(n)}}else if(2===arguments.length){var r=arguments[0],i=arguments[1];this.init(r.x,i.x,r.y,i.y)}else if(4===arguments.length){var o=arguments[0],s=arguments[1],a=arguments[2],u=arguments[3];this.init(o,s,a,u)}},H={serialVersionUID:{configurable:!0}};X.prototype.getArea=function(){return this.getWidth()*this.getHeight()},X.prototype.equals=function(t){if(!(t instanceof X))return!1;var e=t;return this.isNull()?e.isNull():this._maxx===e.getMaxX()&&this._maxy===e.getMaxY()&&this._minx===e.getMinX()&&this._miny===e.getMinY()},X.prototype.intersection=function(t){if(this.isNull()||t.isNull()||!this.intersects(t))return new X;var e=this._minx>t._minx?this._minx:t._minx,n=this._miny>t._miny?this._miny:t._miny,r=this._maxx<t._maxx?this._maxx:t._maxx,i=this._maxy<t._maxy?this._maxy:t._maxy;return new X(e,r,n,i)},X.prototype.isNull=function(){return this._maxx<this._minx},X.prototype.getMaxX=function(){return this._maxx},X.prototype.covers=function(){if(1===arguments.length){if(arguments[0]instanceof P){var t=arguments[0];return this.covers(t.x,t.y)}if(arguments[0]instanceof X){var e=arguments[0];return!this.isNull()&&!e.isNull()&&e.getMinX()>=this._minx&&e.getMaxX()<=this._maxx&&e.getMinY()>=this._miny&&e.getMaxY()<=this._maxy}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];return!this.isNull()&&n>=this._minx&&n<=this._maxx&&r>=this._miny&&r<=this._maxy}},X.prototype.intersects=function(){if(1===arguments.length){if(arguments[0]instanceof X){var t=arguments[0];return!this.isNull()&&!t.isNull()&&!(t._minx>this._maxx||t._maxx<this._minx||t._miny>this._maxy||t._maxy<this._miny)}if(arguments[0]instanceof P){var e=arguments[0];return this.intersects(e.x,e.y)}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];return!this.isNull()&&!(n>this._maxx||n<this._minx||r>this._maxy||r<this._miny)}},X.prototype.getMinY=function(){return this._miny},X.prototype.getMinX=function(){return this._minx},X.prototype.expandToInclude=function(){if(1===arguments.length){if(arguments[0]instanceof P){var t=arguments[0];this.expandToInclude(t.x,t.y)}else if(arguments[0]instanceof X){var e=arguments[0];if(e.isNull())return null;this.isNull()?(this._minx=e.getMinX(),this._maxx=e.getMaxX(),this._miny=e.getMinY(),this._maxy=e.getMaxY()):(e._minx<this._minx&&(this._minx=e._minx),e._maxx>this._maxx&&(this._maxx=e._maxx),e._miny<this._miny&&(this._miny=e._miny),e._maxy>this._maxy&&(this._maxy=e._maxy))}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this.isNull()?(this._minx=n,this._maxx=n,this._miny=r,this._maxy=r):(n<this._minx&&(this._minx=n),n>this._maxx&&(this._maxx=n),r<this._miny&&(this._miny=r),r>this._maxy&&(this._maxy=r))}},X.prototype.minExtent=function(){if(this.isNull())return 0;var t=this.getWidth(),e=this.getHeight();return t<e?t:e},X.prototype.getWidth=function(){return this.isNull()?0:this._maxx-this._minx},X.prototype.compareTo=function(t){var e=t;return this.isNull()?e.isNull()?0:-1:e.isNull()?1:this._minx<e._minx?-1:this._minx>e._minx?1:this._miny<e._miny?-1:this._miny>e._miny?1:this._maxx<e._maxx?-1:this._maxx>e._maxx?1:this._maxy<e._maxy?-1:this._maxy>e._maxy?1:0},X.prototype.translate=function(t,e){if(this.isNull())return null;this.init(this.getMinX()+t,this.getMaxX()+t,this.getMinY()+e,this.getMaxY()+e)},X.prototype.toString=function(){return"Env["+this._minx+" : "+this._maxx+", "+this._miny+" : "+this._maxy+"]"},X.prototype.setToNull=function(){this._minx=0,this._maxx=-1,this._miny=0,this._maxy=-1},X.prototype.getHeight=function(){return this.isNull()?0:this._maxy-this._miny},X.prototype.maxExtent=function(){if(this.isNull())return 0;var t=this.getWidth(),e=this.getHeight();return t>e?t:e},X.prototype.expandBy=function(){if(1===arguments.length){var t=arguments[0];this.expandBy(t,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this.isNull())return null;this._minx-=e,this._maxx+=e,this._miny-=n,this._maxy+=n,(this._minx>this._maxx||this._miny>this._maxy)&&this.setToNull()}},X.prototype.contains=function(){if(1===arguments.length){if(arguments[0]instanceof X){var t=arguments[0];return this.covers(t)}if(arguments[0]instanceof P){var e=arguments[0];return this.covers(e)}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];return this.covers(n,r)}},X.prototype.centre=function(){return this.isNull()?null:new P((this.getMinX()+this.getMaxX())/2,(this.getMinY()+this.getMaxY())/2)},X.prototype.init=function(){if(0===arguments.length)this.setToNull();else if(1===arguments.length){if(arguments[0]instanceof P){var t=arguments[0];this.init(t.x,t.x,t.y,t.y)}else if(arguments[0]instanceof X){var e=arguments[0];this._minx=e._minx,this._maxx=e._maxx,this._miny=e._miny,this._maxy=e._maxy}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this.init(n.x,r.x,n.y,r.y)}else if(4===arguments.length){var i=arguments[0],o=arguments[1],s=arguments[2],a=arguments[3];i<o?(this._minx=i,this._maxx=o):(this._minx=o,this._maxx=i),s<a?(this._miny=s,this._maxy=a):(this._miny=a,this._maxy=s)}},X.prototype.getMaxY=function(){return this._maxy},X.prototype.distance=function(t){if(this.intersects(t))return 0;var e=0;this._maxx<t._minx?e=t._minx-this._maxx:this._minx>t._maxx&&(e=this._minx-t._maxx);var n=0;return this._maxy<t._miny?n=t._miny-this._maxy:this._miny>t._maxy&&(n=this._miny-t._maxy),0===e?n:0===n?e:Math.sqrt(e*e+n*n)},X.prototype.hashCode=function(){var t=17;return 37*(t=37*(t=37*(t=37*t+P.hashCode(this._minx))+P.hashCode(this._maxx))+P.hashCode(this._miny))+P.hashCode(this._maxy)},X.prototype.interfaces_=function(){return[w,e]},X.prototype.getClass=function(){return X},X.intersects=function(){if(3===arguments.length){var t=arguments[0],e=arguments[1],n=arguments[2];return n.x>=(t.x<e.x?t.x:e.x)&&n.x<=(t.x>e.x?t.x:e.x)&&n.y>=(t.y<e.y?t.y:e.y)&&n.y<=(t.y>e.y?t.y:e.y)}if(4===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2],s=arguments[3],a=Math.min(o.x,s.x),u=Math.max(o.x,s.x),c=Math.min(r.x,i.x),l=Math.max(r.x,i.x);return!(c>u||l<a||(a=Math.min(o.y,s.y),u=Math.max(o.y,s.y),c=Math.min(r.y,i.y),l=Math.max(r.y,i.y),c>u||l<a))}},H.serialVersionUID.get=function(){return 0x51845cd552189800},Object.defineProperties(X,H);var Y={typeStr:/^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,emptyTypeStr:/^\s*(\w+)\s*EMPTY\s*$/,spaces:/\s+/,parenComma:/\)\s*,\s*\(/,doubleParenComma:/\)\s*\)\s*,\s*\(\s*\(/,trimParens:/^\s*\(?(.*?)\)?\s*$/},J=function(t){this.geometryFactory=t||new ve};J.prototype.read=function(t){var e,n,r;t=t.replace(/[\n\r]/g," ");var i=Y.typeStr.exec(t);if(-1!==t.search("EMPTY")&&((i=Y.emptyTypeStr.exec(t))[2]=void 0),i&&(n=i[1].toLowerCase(),r=i[2],Z[n]&&(e=Z[n].apply(this,[r]))),void 0===e)throw new Error("Could not parse WKT "+t);return e},J.prototype.write=function(t){return this.extractGeometry(t)},J.prototype.extractGeometry=function(t){var e=t.getGeometryType().toLowerCase();if(!$[e])return null;var n=e.toUpperCase();return t.isEmpty()?n+" EMPTY":n+"("+$[e].apply(this,[t])+")"};var $={coordinate:function(t){return t.x+" "+t.y},point:function(t){return $.coordinate.call(this,t._coordinates._coordinates[0])},multipoint:function(t){for(var e=[],n=0,r=t._geometries.length;n<r;++n)e.push("("+$.point.apply(this,[t._geometries[n]])+")");return e.join(",")},linestring:function(t){for(var e=[],n=0,r=t._points._coordinates.length;n<r;++n)e.push($.coordinate.apply(this,[t._points._coordinates[n]]));return e.join(",")},linearring:function(t){for(var e=[],n=0,r=t._points._coordinates.length;n<r;++n)e.push($.coordinate.apply(this,[t._points._coordinates[n]]));return e.join(",")},multilinestring:function(t){for(var e=[],n=0,r=t._geometries.length;n<r;++n)e.push("("+$.linestring.apply(this,[t._geometries[n]])+")");return e.join(",")},polygon:function(t){var e=[];e.push("("+$.linestring.apply(this,[t._shell])+")");for(var n=0,r=t._holes.length;n<r;++n)e.push("("+$.linestring.apply(this,[t._holes[n]])+")");return e.join(",")},multipolygon:function(t){for(var e=[],n=0,r=t._geometries.length;n<r;++n)e.push("("+$.polygon.apply(this,[t._geometries[n]])+")");return e.join(",")},geometrycollection:function(t){for(var e=[],n=0,r=t._geometries.length;n<r;++n)e.push(this.extractGeometry(t._geometries[n]));return e.join(",")}},Z={point:function(t){if(void 0===t)return this.geometryFactory.createPoint();var e=t.trim().split(Y.spaces);return this.geometryFactory.createPoint(new P(Number.parseFloat(e[0]),Number.parseFloat(e[1])))},multipoint:function(t){if(void 0===t)return this.geometryFactory.createMultiPoint();for(var e,n=t.trim().split(","),r=[],i=0,o=n.length;i<o;++i)e=n[i].replace(Y.trimParens,"$1"),r.push(Z.point.apply(this,[e]));return this.geometryFactory.createMultiPoint(r)},linestring:function(t){if(void 0===t)return this.geometryFactory.createLineString();for(var e,n=t.trim().split(","),r=[],i=0,o=n.length;i<o;++i)e=n[i].trim().split(Y.spaces),r.push(new P(Number.parseFloat(e[0]),Number.parseFloat(e[1])));return this.geometryFactory.createLineString(r)},linearring:function(t){if(void 0===t)return this.geometryFactory.createLinearRing();for(var e,n=t.trim().split(","),r=[],i=0,o=n.length;i<o;++i)e=n[i].trim().split(Y.spaces),r.push(new P(Number.parseFloat(e[0]),Number.parseFloat(e[1])));return this.geometryFactory.createLinearRing(r)},multilinestring:function(t){if(void 0===t)return this.geometryFactory.createMultiLineString();for(var e,n=t.trim().split(Y.parenComma),r=[],i=0,o=n.length;i<o;++i)e=n[i].replace(Y.trimParens,"$1"),r.push(Z.linestring.apply(this,[e]));return this.geometryFactory.createMultiLineString(r)},polygon:function(t){if(void 0===t)return this.geometryFactory.createPolygon();for(var e,n,r,i,o=t.trim().split(Y.parenComma),s=[],a=0,u=o.length;a<u;++a)e=o[a].replace(Y.trimParens,"$1"),n=Z.linestring.apply(this,[e]),r=this.geometryFactory.createLinearRing(n._points),0===a?i=r:s.push(r);return this.geometryFactory.createPolygon(i,s)},multipolygon:function(t){if(void 0===t)return this.geometryFactory.createMultiPolygon();for(var e,n=t.trim().split(Y.doubleParenComma),r=[],i=0,o=n.length;i<o;++i)e=n[i].replace(Y.trimParens,"$1"),r.push(Z.polygon.apply(this,[e]));return this.geometryFactory.createMultiPolygon(r)},geometrycollection:function(t){if(void 0===t)return this.geometryFactory.createGeometryCollection();for(var e=(t=t.replace(/,\s*([A-Za-z])/g,"|$1")).trim().split("|"),n=[],r=0,i=e.length;r<i;++r)n.push(this.read(e[r]));return this.geometryFactory.createGeometryCollection(n)}},Q=function(t){this.parser=new J(t)};Q.prototype.write=function(t){return this.parser.write(t)},Q.toLineString=function(t,e){if(2!==arguments.length)throw new Error("Not implemented");return"LINESTRING ( "+t.x+" "+t.y+", "+e.x+" "+e.y+" )"};var K=function(t){function e(e){t.call(this,e),this.name="RuntimeException",this.message=e,this.stack=(new t).stack}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error),tt=function(t){function e(){if(t.call(this),0===arguments.length)t.call(this);else if(1===arguments.length){var e=arguments[0];t.call(this,e)}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(K),et=function(){};et.prototype.interfaces_=function(){return[]},et.prototype.getClass=function(){return et},et.shouldNeverReachHere=function(){if(0===arguments.length)et.shouldNeverReachHere(null);else if(1===arguments.length){var t=arguments[0];throw new tt("Should never reach here"+(null!==t?": "+t:""))}},et.isTrue=function(){var t;if(1===arguments.length)et.isTrue(arguments[0],null);else if(2===arguments.length&&(t=arguments[1],!arguments[0]))throw null===t?new tt:new tt(t)},et.equals=function(){var t,e,n;if(2===arguments.length)et.equals(t=arguments[0],e=arguments[1],null);else if(3===arguments.length&&(t=arguments[0],n=arguments[2],!(e=arguments[1]).equals(t)))throw new tt("Expected "+t+" but encountered "+e+(null!==n?": "+n:""))};var nt=function(){this._result=null,this._inputLines=Array(2).fill().map((function(){return Array(2)})),this._intPt=new Array(2).fill(null),this._intLineIndex=null,this._isProper=null,this._pa=null,this._pb=null,this._precisionModel=null,this._intPt[0]=new P,this._intPt[1]=new P,this._pa=this._intPt[0],this._pb=this._intPt[1],this._result=0},rt={DONT_INTERSECT:{configurable:!0},DO_INTERSECT:{configurable:!0},COLLINEAR:{configurable:!0},NO_INTERSECTION:{configurable:!0},POINT_INTERSECTION:{configurable:!0},COLLINEAR_INTERSECTION:{configurable:!0}};nt.prototype.getIndexAlongSegment=function(t,e){return this.computeIntLineIndex(),this._intLineIndex[t][e]},nt.prototype.getTopologySummary=function(){var t=new D;return this.isEndPoint()&&t.append(" endpoint"),this._isProper&&t.append(" proper"),this.isCollinear()&&t.append(" collinear"),t.toString()},nt.prototype.computeIntersection=function(t,e,n,r){this._inputLines[0][0]=t,this._inputLines[0][1]=e,this._inputLines[1][0]=n,this._inputLines[1][1]=r,this._result=this.computeIntersect(t,e,n,r)},nt.prototype.getIntersectionNum=function(){return this._result},nt.prototype.computeIntLineIndex=function(){if(0===arguments.length)null===this._intLineIndex&&(this._intLineIndex=Array(2).fill().map((function(){return Array(2)})),this.computeIntLineIndex(0),this.computeIntLineIndex(1));else if(1===arguments.length){var t=arguments[0];this.getEdgeDistance(t,0)>this.getEdgeDistance(t,1)?(this._intLineIndex[t][0]=0,this._intLineIndex[t][1]=1):(this._intLineIndex[t][0]=1,this._intLineIndex[t][1]=0)}},nt.prototype.isProper=function(){return this.hasIntersection()&&this._isProper},nt.prototype.setPrecisionModel=function(t){this._precisionModel=t},nt.prototype.isInteriorIntersection=function(){if(0===arguments.length)return!!this.isInteriorIntersection(0)||!!this.isInteriorIntersection(1);if(1===arguments.length){for(var t=arguments[0],e=0;e<this._result;e++)if(!this._intPt[e].equals2D(this._inputLines[t][0])&&!this._intPt[e].equals2D(this._inputLines[t][1]))return!0;return!1}},nt.prototype.getIntersection=function(t){return this._intPt[t]},nt.prototype.isEndPoint=function(){return this.hasIntersection()&&!this._isProper},nt.prototype.hasIntersection=function(){return this._result!==nt.NO_INTERSECTION},nt.prototype.getEdgeDistance=function(t,e){return nt.computeEdgeDistance(this._intPt[e],this._inputLines[t][0],this._inputLines[t][1])},nt.prototype.isCollinear=function(){return this._result===nt.COLLINEAR_INTERSECTION},nt.prototype.toString=function(){return Q.toLineString(this._inputLines[0][0],this._inputLines[0][1])+" - "+Q.toLineString(this._inputLines[1][0],this._inputLines[1][1])+this.getTopologySummary()},nt.prototype.getEndpoint=function(t,e){return this._inputLines[t][e]},nt.prototype.isIntersection=function(t){for(var e=0;e<this._result;e++)if(this._intPt[e].equals2D(t))return!0;return!1},nt.prototype.getIntersectionAlongSegment=function(t,e){return this.computeIntLineIndex(),this._intPt[this._intLineIndex[t][e]]},nt.prototype.interfaces_=function(){return[]},nt.prototype.getClass=function(){return nt},nt.computeEdgeDistance=function(t,e,n){var r=Math.abs(n.x-e.x),i=Math.abs(n.y-e.y),o=-1;if(t.equals(e))o=0;else if(t.equals(n))o=r>i?r:i;else{var s=Math.abs(t.x-e.x),a=Math.abs(t.y-e.y);0!==(o=r>i?s:a)||t.equals(e)||(o=Math.max(s,a))}return et.isTrue(!(0===o&&!t.equals(e)),"Bad distance calculation"),o},nt.nonRobustComputeEdgeDistance=function(t,e,n){var r=t.x-e.x,i=t.y-e.y,o=Math.sqrt(r*r+i*i);return et.isTrue(!(0===o&&!t.equals(e)),"Invalid distance calculation"),o},rt.DONT_INTERSECT.get=function(){return 0},rt.DO_INTERSECT.get=function(){return 1},rt.COLLINEAR.get=function(){return 2},rt.NO_INTERSECTION.get=function(){return 0},rt.POINT_INTERSECTION.get=function(){return 1},rt.COLLINEAR_INTERSECTION.get=function(){return 2},Object.defineProperties(nt,rt);var it=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isInSegmentEnvelopes=function(t){var e=new X(this._inputLines[0][0],this._inputLines[0][1]),n=new X(this._inputLines[1][0],this._inputLines[1][1]);return e.contains(t)&&n.contains(t)},e.prototype.computeIntersection=function(){if(3!==arguments.length)return t.prototype.computeIntersection.apply(this,arguments);var e=arguments[0],n=arguments[1],r=arguments[2];if(this._isProper=!1,X.intersects(n,r,e)&&0===at.orientationIndex(n,r,e)&&0===at.orientationIndex(r,n,e))return this._isProper=!0,(e.equals(n)||e.equals(r))&&(this._isProper=!1),this._result=t.POINT_INTERSECTION,null;this._result=t.NO_INTERSECTION},e.prototype.normalizeToMinimum=function(t,e,n,r,i){i.x=this.smallestInAbsValue(t.x,e.x,n.x,r.x),i.y=this.smallestInAbsValue(t.y,e.y,n.y,r.y),t.x-=i.x,t.y-=i.y,e.x-=i.x,e.y-=i.y,n.x-=i.x,n.y-=i.y,r.x-=i.x,r.y-=i.y},e.prototype.safeHCoordinateIntersection=function(t,n,r,i){var o=null;try{o=q.intersection(t,n,r,i)}catch(s){if(!(s instanceof G))throw s;o=e.nearestEndpoint(t,n,r,i)}return o},e.prototype.intersection=function(t,n,r,i){var o=this.intersectionWithNormalization(t,n,r,i);return this.isInSegmentEnvelopes(o)||(o=new P(e.nearestEndpoint(t,n,r,i))),null!==this._precisionModel&&this._precisionModel.makePrecise(o),o},e.prototype.smallestInAbsValue=function(t,e,n,r){var i=t,o=Math.abs(i);return Math.abs(e)<o&&(i=e,o=Math.abs(e)),Math.abs(n)<o&&(i=n,o=Math.abs(n)),Math.abs(r)<o&&(i=r),i},e.prototype.checkDD=function(t,e,n,r,i){var o=k.intersection(t,e,n,r),s=this.isInSegmentEnvelopes(o);W.out.println("DD in env = "+s+" --------------------- "+o),i.distance(o)>1e-4&&W.out.println("Distance = "+i.distance(o))},e.prototype.intersectionWithNormalization=function(t,e,n,r){var i=new P(t),o=new P(e),s=new P(n),a=new P(r),u=new P;this.normalizeToEnvCentre(i,o,s,a,u);var c=this.safeHCoordinateIntersection(i,o,s,a);return c.x+=u.x,c.y+=u.y,c},e.prototype.computeCollinearIntersection=function(e,n,r,i){var o=X.intersects(e,n,r),s=X.intersects(e,n,i),a=X.intersects(r,i,e),u=X.intersects(r,i,n);return o&&s?(this._intPt[0]=r,this._intPt[1]=i,t.COLLINEAR_INTERSECTION):a&&u?(this._intPt[0]=e,this._intPt[1]=n,t.COLLINEAR_INTERSECTION):o&&a?(this._intPt[0]=r,this._intPt[1]=e,!r.equals(e)||s||u?t.COLLINEAR_INTERSECTION:t.POINT_INTERSECTION):o&&u?(this._intPt[0]=r,this._intPt[1]=n,!r.equals(n)||s||a?t.COLLINEAR_INTERSECTION:t.POINT_INTERSECTION):s&&a?(this._intPt[0]=i,this._intPt[1]=e,!i.equals(e)||o||u?t.COLLINEAR_INTERSECTION:t.POINT_INTERSECTION):s&&u?(this._intPt[0]=i,this._intPt[1]=n,!i.equals(n)||o||a?t.COLLINEAR_INTERSECTION:t.POINT_INTERSECTION):t.NO_INTERSECTION},e.prototype.normalizeToEnvCentre=function(t,e,n,r,i){var o=t.x<e.x?t.x:e.x,s=t.y<e.y?t.y:e.y,a=t.x>e.x?t.x:e.x,u=t.y>e.y?t.y:e.y,c=n.x<r.x?n.x:r.x,l=n.y<r.y?n.y:r.y,h=n.x>r.x?n.x:r.x,p=n.y>r.y?n.y:r.y,f=((o>c?o:c)+(a<h?a:h))/2,d=((s>l?s:l)+(u<p?u:p))/2;i.x=f,i.y=d,t.x-=i.x,t.y-=i.y,e.x-=i.x,e.y-=i.y,n.x-=i.x,n.y-=i.y,r.x-=i.x,r.y-=i.y},e.prototype.computeIntersect=function(e,n,r,i){if(this._isProper=!1,!X.intersects(e,n,r,i))return t.NO_INTERSECTION;var o=at.orientationIndex(e,n,r),s=at.orientationIndex(e,n,i);if(o>0&&s>0||o<0&&s<0)return t.NO_INTERSECTION;var a=at.orientationIndex(r,i,e),u=at.orientationIndex(r,i,n);return a>0&&u>0||a<0&&u<0?t.NO_INTERSECTION:0===o&&0===s&&0===a&&0===u?this.computeCollinearIntersection(e,n,r,i):(0===o||0===s||0===a||0===u?(this._isProper=!1,e.equals2D(r)||e.equals2D(i)?this._intPt[0]=e:n.equals2D(r)||n.equals2D(i)?this._intPt[0]=n:0===o?this._intPt[0]=new P(r):0===s?this._intPt[0]=new P(i):0===a?this._intPt[0]=new P(e):0===u&&(this._intPt[0]=new P(n))):(this._isProper=!0,this._intPt[0]=this.intersection(e,n,r,i)),t.POINT_INTERSECTION)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.nearestEndpoint=function(t,e,n,r){var i=t,o=at.distancePointLine(t,n,r),s=at.distancePointLine(e,n,r);return s<o&&(o=s,i=e),(s=at.distancePointLine(n,t,e))<o&&(o=s,i=n),(s=at.distancePointLine(r,t,e))<o&&(o=s,i=r),i},e}(nt),ot=function(){};ot.prototype.interfaces_=function(){return[]},ot.prototype.getClass=function(){return ot},ot.orientationIndex=function(t,e,n){var r=e.x-t.x,i=e.y-t.y,o=n.x-e.x,s=n.y-e.y;return ot.signOfDet2x2(r,i,o,s)},ot.signOfDet2x2=function(t,e,n,r){var i=null,o=null,s=null;if(i=1,0===t||0===r)return 0===e||0===n?0:e>0?n>0?-i:i:n>0?i:-i;if(0===e||0===n)return r>0?t>0?i:-i:t>0?-i:i;if(e>0?r>0?e<=r||(i=-i,o=t,t=n,n=o,o=e,e=r,r=o):e<=-r?(i=-i,n=-n,r=-r):(o=t,t=-n,n=o,o=e,e=-r,r=o):r>0?-e<=r?(i=-i,t=-t,e=-e):(o=-t,t=n,n=o,o=-e,e=r,r=o):e>=r?(t=-t,e=-e,n=-n,r=-r):(i=-i,o=-t,t=-n,n=o,o=-e,e=-r,r=o),t>0){if(!(n>0))return i;if(!(t<=n))return i}else{if(n>0)return-i;if(!(t>=n))return-i;i=-i,t=-t,n=-n}for(;;){if((r-=(s=Math.floor(n/t))*e)<0)return-i;if(r>e)return i;if(t>(n-=s*t)+n){if(e<r+r)return i}else{if(e>r+r)return-i;n=t-n,r=e-r,i=-i}if(0===r)return 0===n?0:-i;if(0===n)return i;if((e-=(s=Math.floor(t/n))*r)<0)return i;if(e>r)return-i;if(n>(t-=s*n)+t){if(r<e+e)return-i}else{if(r>e+e)return i;t=n-t,e=r-e,i=-i}if(0===e)return 0===t?0:i;if(0===t)return-i}};var st=function(){this._p=null,this._crossingCount=0,this._isPointOnSegment=!1;var t=arguments[0];this._p=t};st.prototype.countSegment=function(t,e){if(t.x<this._p.x&&e.x<this._p.x)return null;if(this._p.x===e.x&&this._p.y===e.y)return this._isPointOnSegment=!0,null;if(t.y===this._p.y&&e.y===this._p.y){var n=t.x,r=e.x;return n>r&&(n=e.x,r=t.x),this._p.x>=n&&this._p.x<=r&&(this._isPointOnSegment=!0),null}if(t.y>this._p.y&&e.y<=this._p.y||e.y>this._p.y&&t.y<=this._p.y){var i=t.x-this._p.x,o=t.y-this._p.y,s=e.x-this._p.x,a=e.y-this._p.y,u=ot.signOfDet2x2(i,o,s,a);if(0===u)return this._isPointOnSegment=!0,null;a<o&&(u=-u),u>0&&this._crossingCount++}},st.prototype.isPointInPolygon=function(){return this.getLocation()!==M.EXTERIOR},st.prototype.getLocation=function(){return this._isPointOnSegment?M.BOUNDARY:this._crossingCount%2==1?M.INTERIOR:M.EXTERIOR},st.prototype.isOnSegment=function(){return this._isPointOnSegment},st.prototype.interfaces_=function(){return[]},st.prototype.getClass=function(){return st},st.locatePointInRing=function(){if(arguments[0]instanceof P&&T(arguments[1],B)){for(var t=arguments[1],e=new st(arguments[0]),n=new P,r=new P,i=1;i<t.size();i++)if(t.getCoordinate(i,n),t.getCoordinate(i-1,r),e.countSegment(n,r),e.isOnSegment())return e.getLocation();return e.getLocation()}if(arguments[0]instanceof P&&arguments[1]instanceof Array){for(var o=arguments[1],s=new st(arguments[0]),a=1;a<o.length;a++){var u=o[a],c=o[a-1];if(s.countSegment(u,c),s.isOnSegment())return s.getLocation()}return s.getLocation()}};var at=function(){},ut={CLOCKWISE:{configurable:!0},RIGHT:{configurable:!0},COUNTERCLOCKWISE:{configurable:!0},LEFT:{configurable:!0},COLLINEAR:{configurable:!0},STRAIGHT:{configurable:!0}};at.prototype.interfaces_=function(){return[]},at.prototype.getClass=function(){return at},at.orientationIndex=function(t,e,n){return k.orientationIndex(t,e,n)},at.signedArea=function(){if(arguments[0]instanceof Array){var t=arguments[0];if(t.length<3)return 0;for(var e=0,n=t[0].x,r=1;r<t.length-1;r++){var i=t[r].x-n,o=t[r+1].y;e+=i*(t[r-1].y-o)}return e/2}if(T(arguments[0],B)){var s=arguments[0],a=s.size();if(a<3)return 0;var u=new P,c=new P,l=new P;s.getCoordinate(0,c),s.getCoordinate(1,l);var h=c.x;l.x-=h;for(var p=0,f=1;f<a-1;f++)u.y=c.y,c.x=l.x,c.y=l.y,s.getCoordinate(f+1,l),l.x-=h,p+=c.x*(u.y-l.y);return p/2}},at.distanceLineLine=function(t,e,n,r){if(t.equals(e))return at.distancePointLine(t,n,r);if(n.equals(r))return at.distancePointLine(r,t,e);var i=!1;if(X.intersects(t,e,n,r)){var o=(e.x-t.x)*(r.y-n.y)-(e.y-t.y)*(r.x-n.x);if(0===o)i=!0;else{var s=(t.y-n.y)*(r.x-n.x)-(t.x-n.x)*(r.y-n.y),a=((t.y-n.y)*(e.x-t.x)-(t.x-n.x)*(e.y-t.y))/o,u=s/o;(u<0||u>1||a<0||a>1)&&(i=!0)}}else i=!0;return i?j.min(at.distancePointLine(t,n,r),at.distancePointLine(e,n,r),at.distancePointLine(n,t,e),at.distancePointLine(r,t,e)):0},at.isPointInRing=function(t,e){return at.locatePointInRing(t,e)!==M.EXTERIOR},at.computeLength=function(t){var e=t.size();if(e<=1)return 0;var n=0,r=new P;t.getCoordinate(0,r);for(var i=r.x,o=r.y,s=1;s<e;s++){t.getCoordinate(s,r);var a=r.x,u=r.y,c=a-i,l=u-o;n+=Math.sqrt(c*c+l*l),i=a,o=u}return n},at.isCCW=function(t){var e=t.length-1;if(e<3)throw new m("Ring has fewer than 4 points, so orientation cannot be determined");for(var n=t[0],r=0,i=1;i<=e;i++){var o=t[i];o.y>n.y&&(n=o,r=i)}var s=r;do{(s-=1)<0&&(s=e)}while(t[s].equals2D(n)&&s!==r);var a=r;do{a=(a+1)%e}while(t[a].equals2D(n)&&a!==r);var u=t[s],c=t[a];if(u.equals2D(n)||c.equals2D(n)||u.equals2D(c))return!1;var l=at.computeOrientation(u,n,c);return 0===l?u.x>c.x:l>0},at.locatePointInRing=function(t,e){return st.locatePointInRing(t,e)},at.distancePointLinePerpendicular=function(t,e,n){var r=(n.x-e.x)*(n.x-e.x)+(n.y-e.y)*(n.y-e.y),i=((e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y))/r;return Math.abs(i)*Math.sqrt(r)},at.computeOrientation=function(t,e,n){return at.orientationIndex(t,e,n)},at.distancePointLine=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];if(0===e.length)throw new m("Line array must contain at least one vertex");for(var n=t.distance(e[0]),r=0;r<e.length-1;r++){var i=at.distancePointLine(t,e[r],e[r+1]);i<n&&(n=i)}return n}if(3===arguments.length){var o=arguments[0],s=arguments[1],a=arguments[2];if(s.x===a.x&&s.y===a.y)return o.distance(s);var u=(a.x-s.x)*(a.x-s.x)+(a.y-s.y)*(a.y-s.y),c=((o.x-s.x)*(a.x-s.x)+(o.y-s.y)*(a.y-s.y))/u;if(c<=0)return o.distance(s);if(c>=1)return o.distance(a);var l=((s.y-o.y)*(a.x-s.x)-(s.x-o.x)*(a.y-s.y))/u;return Math.abs(l)*Math.sqrt(u)}},at.isOnLine=function(t,e){for(var n=new it,r=1;r<e.length;r++){var i=e[r-1],o=e[r];if(n.computeIntersection(t,i,o),n.hasIntersection())return!0}return!1},ut.CLOCKWISE.get=function(){return-1},ut.RIGHT.get=function(){return at.CLOCKWISE},ut.COUNTERCLOCKWISE.get=function(){return 1},ut.LEFT.get=function(){return at.COUNTERCLOCKWISE},ut.COLLINEAR.get=function(){return 0},ut.STRAIGHT.get=function(){return at.COLLINEAR},Object.defineProperties(at,ut);var ct=function(){};ct.prototype.filter=function(t){},ct.prototype.interfaces_=function(){return[]},ct.prototype.getClass=function(){return ct};var lt=function(){var t=arguments[0];this._envelope=null,this._factory=null,this._SRID=null,this._userData=null,this._factory=t,this._SRID=t.getSRID()},ht={serialVersionUID:{configurable:!0},SORTINDEX_POINT:{configurable:!0},SORTINDEX_MULTIPOINT:{configurable:!0},SORTINDEX_LINESTRING:{configurable:!0},SORTINDEX_LINEARRING:{configurable:!0},SORTINDEX_MULTILINESTRING:{configurable:!0},SORTINDEX_POLYGON:{configurable:!0},SORTINDEX_MULTIPOLYGON:{configurable:!0},SORTINDEX_GEOMETRYCOLLECTION:{configurable:!0},geometryChangedFilter:{configurable:!0}};lt.prototype.isGeometryCollection=function(){return this.getSortIndex()===lt.SORTINDEX_GEOMETRYCOLLECTION},lt.prototype.getFactory=function(){return this._factory},lt.prototype.getGeometryN=function(t){return this},lt.prototype.getArea=function(){return 0},lt.prototype.isRectangle=function(){return!1},lt.prototype.equals=function(){if(arguments[0]instanceof lt){var t=arguments[0];return null!==t&&this.equalsTopo(t)}if(arguments[0]instanceof Object){var e=arguments[0];if(!(e instanceof lt))return!1;var n=e;return this.equalsExact(n)}},lt.prototype.equalsExact=function(t){return this===t||this.equalsExact(t,0)},lt.prototype.geometryChanged=function(){this.apply(lt.geometryChangedFilter)},lt.prototype.geometryChangedAction=function(){this._envelope=null},lt.prototype.equalsNorm=function(t){return null!==t&&this.norm().equalsExact(t.norm())},lt.prototype.getLength=function(){return 0},lt.prototype.getNumGeometries=function(){return 1},lt.prototype.compareTo=function(){if(1===arguments.length){var t=arguments[0],e=t;return this.getSortIndex()!==e.getSortIndex()?this.getSortIndex()-e.getSortIndex():this.isEmpty()&&e.isEmpty()?0:this.isEmpty()?-1:e.isEmpty()?1:this.compareToSameClass(t)}if(2===arguments.length){var n=arguments[0],r=arguments[1];return this.getSortIndex()!==n.getSortIndex()?this.getSortIndex()-n.getSortIndex():this.isEmpty()&&n.isEmpty()?0:this.isEmpty()?-1:n.isEmpty()?1:this.compareToSameClass(n,r)}},lt.prototype.getUserData=function(){return this._userData},lt.prototype.getSRID=function(){return this._SRID},lt.prototype.getEnvelope=function(){return this.getFactory().toGeometry(this.getEnvelopeInternal())},lt.prototype.checkNotGeometryCollection=function(t){if(t.getSortIndex()===lt.SORTINDEX_GEOMETRYCOLLECTION)throw new m("This method does not support GeometryCollection arguments")},lt.prototype.equal=function(t,e,n){return 0===n?t.equals(e):t.distance(e)<=n},lt.prototype.norm=function(){var t=this.copy();return t.normalize(),t},lt.prototype.getPrecisionModel=function(){return this._factory.getPrecisionModel()},lt.prototype.getEnvelopeInternal=function(){return null===this._envelope&&(this._envelope=this.computeEnvelopeInternal()),new X(this._envelope)},lt.prototype.setSRID=function(t){this._SRID=t},lt.prototype.setUserData=function(t){this._userData=t},lt.prototype.compare=function(t,e){for(var n=t.iterator(),r=e.iterator();n.hasNext()&&r.hasNext();){var i=n.next(),o=r.next(),s=i.compareTo(o);if(0!==s)return s}return n.hasNext()?1:r.hasNext()?-1:0},lt.prototype.hashCode=function(){return this.getEnvelopeInternal().hashCode()},lt.prototype.isGeometryCollectionOrDerived=function(){return this.getSortIndex()===lt.SORTINDEX_GEOMETRYCOLLECTION||this.getSortIndex()===lt.SORTINDEX_MULTIPOINT||this.getSortIndex()===lt.SORTINDEX_MULTILINESTRING||this.getSortIndex()===lt.SORTINDEX_MULTIPOLYGON},lt.prototype.interfaces_=function(){return[E,w,e]},lt.prototype.getClass=function(){return lt},lt.hasNonEmptyElements=function(t){for(var e=0;e<t.length;e++)if(!t[e].isEmpty())return!0;return!1},lt.hasNullElements=function(t){for(var e=0;e<t.length;e++)if(null===t[e])return!0;return!1},ht.serialVersionUID.get=function(){return 0x799ea46522854c00},ht.SORTINDEX_POINT.get=function(){return 0},ht.SORTINDEX_MULTIPOINT.get=function(){return 1},ht.SORTINDEX_LINESTRING.get=function(){return 2},ht.SORTINDEX_LINEARRING.get=function(){return 3},ht.SORTINDEX_MULTILINESTRING.get=function(){return 4},ht.SORTINDEX_POLYGON.get=function(){return 5},ht.SORTINDEX_MULTIPOLYGON.get=function(){return 6},ht.SORTINDEX_GEOMETRYCOLLECTION.get=function(){return 7},ht.geometryChangedFilter.get=function(){return pt},Object.defineProperties(lt,ht);var pt=function(){};pt.interfaces_=function(){return[ct]},pt.filter=function(t){t.geometryChangedAction()};var ft=function(){};ft.prototype.filter=function(t){},ft.prototype.interfaces_=function(){return[]},ft.prototype.getClass=function(){return ft};var dt=function(){},gt={Mod2BoundaryNodeRule:{configurable:!0},EndPointBoundaryNodeRule:{configurable:!0},MultiValentEndPointBoundaryNodeRule:{configurable:!0},MonoValentEndPointBoundaryNodeRule:{configurable:!0},MOD2_BOUNDARY_RULE:{configurable:!0},ENDPOINT_BOUNDARY_RULE:{configurable:!0},MULTIVALENT_ENDPOINT_BOUNDARY_RULE:{configurable:!0},MONOVALENT_ENDPOINT_BOUNDARY_RULE:{configurable:!0},OGC_SFS_BOUNDARY_RULE:{configurable:!0}};dt.prototype.isInBoundary=function(t){},dt.prototype.interfaces_=function(){return[]},dt.prototype.getClass=function(){return dt},gt.Mod2BoundaryNodeRule.get=function(){return yt},gt.EndPointBoundaryNodeRule.get=function(){return vt},gt.MultiValentEndPointBoundaryNodeRule.get=function(){return mt},gt.MonoValentEndPointBoundaryNodeRule.get=function(){return _t},gt.MOD2_BOUNDARY_RULE.get=function(){return new yt},gt.ENDPOINT_BOUNDARY_RULE.get=function(){return new vt},gt.MULTIVALENT_ENDPOINT_BOUNDARY_RULE.get=function(){return new mt},gt.MONOVALENT_ENDPOINT_BOUNDARY_RULE.get=function(){return new _t},gt.OGC_SFS_BOUNDARY_RULE.get=function(){return dt.MOD2_BOUNDARY_RULE},Object.defineProperties(dt,gt);var yt=function(){};yt.prototype.isInBoundary=function(t){return t%2==1},yt.prototype.interfaces_=function(){return[dt]},yt.prototype.getClass=function(){return yt};var vt=function(){};vt.prototype.isInBoundary=function(t){return t>0},vt.prototype.interfaces_=function(){return[dt]},vt.prototype.getClass=function(){return vt};var mt=function(){};mt.prototype.isInBoundary=function(t){return t>1},mt.prototype.interfaces_=function(){return[dt]},mt.prototype.getClass=function(){return mt};var _t=function(){};_t.prototype.isInBoundary=function(t){return 1===t},_t.prototype.interfaces_=function(){return[dt]},_t.prototype.getClass=function(){return _t};var bt=function(){};bt.prototype.add=function(){},bt.prototype.addAll=function(){},bt.prototype.isEmpty=function(){},bt.prototype.iterator=function(){},bt.prototype.size=function(){},bt.prototype.toArray=function(){},bt.prototype.remove=function(){},(n.prototype=new Error).name="IndexOutOfBoundsException";var wt=function(){};wt.prototype.hasNext=function(){},wt.prototype.next=function(){},wt.prototype.remove=function(){};var Et=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(){},e.prototype.set=function(){},e.prototype.isEmpty=function(){},e}(bt);(r.prototype=new Error).name="NoSuchElementException";var xt=function(t){function e(){t.call(this),this.array_=[],arguments[0]instanceof bt&&this.addAll(arguments[0])}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.ensureCapacity=function(){},e.prototype.interfaces_=function(){return[t,bt]},e.prototype.add=function(t){return 1===arguments.length?this.array_.push(t):this.array_.splice(arguments[0],arguments[1]),!0},e.prototype.clear=function(){this.array_=[]},e.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next());return!0},e.prototype.set=function(t,e){var n=this.array_[t];return this.array_[t]=e,n},e.prototype.iterator=function(){return new Pt(this)},e.prototype.get=function(t){if(t<0||t>=this.size())throw new n;return this.array_[t]},e.prototype.isEmpty=function(){return 0===this.array_.length},e.prototype.size=function(){return this.array_.length},e.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e<n;e++)t.push(this.array_[e]);return t},e.prototype.remove=function(t){for(var e=!1,n=0,r=this.array_.length;n<r;n++)if(this.array_[n]===t){this.array_.splice(n,1),e=!0;break}return e},e}(Et),Pt=function(t){function e(e){t.call(this),this.arrayList_=e,this.position_=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.next=function(){if(this.position_===this.arrayList_.size())throw new r;return this.arrayList_.get(this.position_++)},e.prototype.hasNext=function(){return this.position_<this.arrayList_.size()},e.prototype.set=function(t){return this.arrayList_.set(this.position_-1,t)},e.prototype.remove=function(){this.arrayList_.remove(this.arrayList_.get(this.position_))},e}(wt),St=function(t){function e(){if(t.call(this),0===arguments.length);else if(1===arguments.length){var e=arguments[0];this.ensureCapacity(e.length),this.add(e,!0)}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this.ensureCapacity(n.length),this.add(n,r)}}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={coordArrayType:{configurable:!0}};return n.coordArrayType.get=function(){return new Array(0).fill(null)},e.prototype.getCoordinate=function(t){return this.get(t)},e.prototype.addAll=function(){if(2===arguments.length){for(var e=arguments[1],n=!1,r=arguments[0].iterator();r.hasNext();)this.add(r.next(),e),n=!0;return n}return t.prototype.addAll.apply(this,arguments)},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=0;n<this.size();n++)e.add(n,this.get(n).copy());return e},e.prototype.toCoordinateArray=function(){return this.toArray(e.coordArrayType)},e.prototype.add=function(){if(1===arguments.length){var e=arguments[0];t.prototype.add.call(this,e)}else if(2===arguments.length){if(arguments[0]instanceof Array&&"boolean"==typeof arguments[1]){var n=arguments[0],r=arguments[1];return this.add(n,r,!0),!0}if(arguments[0]instanceof P&&"boolean"==typeof arguments[1]){var i=arguments[0];if(!arguments[1]&&this.size()>=1&&this.get(this.size()-1).equals2D(i))return null;t.prototype.add.call(this,i)}else if(arguments[0]instanceof Object&&"boolean"==typeof arguments[1]){var o=arguments[0],s=arguments[1];return this.add(o,s),!0}}else if(3===arguments.length){if("boolean"==typeof arguments[2]&&arguments[0]instanceof Array&&"boolean"==typeof arguments[1]){var a=arguments[0],u=arguments[1];if(arguments[2])for(var c=0;c<a.length;c++)this.add(a[c],u);else for(var l=a.length-1;l>=0;l--)this.add(a[l],u);return!0}if("boolean"==typeof arguments[2]&&Number.isInteger(arguments[0])&&arguments[1]instanceof P){var h=arguments[0],p=arguments[1];if(!arguments[2]){var f=this.size();if(f>0){if(h>0&&this.get(h-1).equals2D(p))return null;if(h<f&&this.get(h).equals2D(p))return null}}t.prototype.add.call(this,h,p)}}else if(4===arguments.length){var d=arguments[0],g=arguments[1],y=arguments[2],v=arguments[3],m=1;y>v&&(m=-1);for(var _=y;_!==v;_+=m)this.add(d[_],g);return!0}},e.prototype.closeRing=function(){this.size()>0&&this.add(new P(this.get(0)),!1)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},Object.defineProperties(e,n),e}(xt),Ot=function(){},Ct={ForwardComparator:{configurable:!0},BidirectionalComparator:{configurable:!0},coordArrayType:{configurable:!0}};Ct.ForwardComparator.get=function(){return Mt},Ct.BidirectionalComparator.get=function(){return It},Ct.coordArrayType.get=function(){return new Array(0).fill(null)},Ot.prototype.interfaces_=function(){return[]},Ot.prototype.getClass=function(){return Ot},Ot.isRing=function(t){return!(t.length<4||!t[0].equals2D(t[t.length-1]))},Ot.ptNotInList=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(Ot.indexOf(r,e)<0)return r}return null},Ot.scroll=function(t,e){var n=Ot.indexOf(e,t);if(n<0)return null;var r=new Array(t.length).fill(null);W.arraycopy(t,n,r,0,t.length-n),W.arraycopy(t,0,r,t.length-n,n),W.arraycopy(r,0,t,0,t.length)},Ot.equals=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];if(t===e)return!0;if(null===t||null===e)return!1;if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!t[n].equals(e[n]))return!1;return!0}if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2];if(r===i)return!0;if(null===r||null===i)return!1;if(r.length!==i.length)return!1;for(var s=0;s<r.length;s++)if(0!==o.compare(r[s],i[s]))return!1;return!0}},Ot.intersection=function(t,e){for(var n=new St,r=0;r<t.length;r++)e.intersects(t[r])&&n.add(t[r],!0);return n.toCoordinateArray()},Ot.hasRepeatedPoints=function(t){for(var e=1;e<t.length;e++)if(t[e-1].equals(t[e]))return!0;return!1},Ot.removeRepeatedPoints=function(t){return Ot.hasRepeatedPoints(t)?new St(t,!1).toCoordinateArray():t},Ot.reverse=function(t){for(var e=t.length-1,n=Math.trunc(e/2),r=0;r<=n;r++){var i=t[r];t[r]=t[e-r],t[e-r]=i}},Ot.removeNull=function(t){for(var e=0,n=0;n<t.length;n++)null!==t[n]&&e++;var r=new Array(e).fill(null);if(0===e)return r;for(var i=0,o=0;o<t.length;o++)null!==t[o]&&(r[i++]=t[o]);return r},Ot.copyDeep=function(){if(1===arguments.length){for(var t=arguments[0],e=new Array(t.length).fill(null),n=0;n<t.length;n++)e[n]=new P(t[n]);return e}if(5===arguments.length)for(var r=arguments[0],i=arguments[1],o=arguments[2],s=arguments[3],a=arguments[4],u=0;u<a;u++)o[s+u]=new P(r[i+u])},Ot.isEqualReversed=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e[t.length-n-1];if(0!==r.compareTo(i))return!1}return!0},Ot.envelope=function(t){for(var e=new X,n=0;n<t.length;n++)e.expandToInclude(t[n]);return e},Ot.toCoordinateArray=function(t){return t.toArray(Ot.coordArrayType)},Ot.atLeastNCoordinatesOrNothing=function(t,e){return e.length>=t?e:[]},Ot.indexOf=function(t,e){for(var n=0;n<e.length;n++)if(t.equals(e[n]))return n;return-1},Ot.increasingDirection=function(t){for(var e=0;e<Math.trunc(t.length/2);e++){var n=t.length-1-e,r=t[e].compareTo(t[n]);if(0!==r)return r}return 1},Ot.compare=function(t,e){for(var n=0;n<t.length&&n<e.length;){var r=t[n].compareTo(e[n]);if(0!==r)return r;n++}return n<e.length?-1:n<t.length?1:0},Ot.minCoordinate=function(t){for(var e=null,n=0;n<t.length;n++)(null===e||e.compareTo(t[n])>0)&&(e=t[n]);return e},Ot.extract=function(t,e,n){e=j.clamp(e,0,t.length);var r=(n=j.clamp(n,-1,t.length))-e+1;n<0&&(r=0),e>=t.length&&(r=0),n<e&&(r=0);var i=new Array(r).fill(null);if(0===r)return i;for(var o=0,s=e;s<=n;s++)i[o++]=t[s];return i},Object.defineProperties(Ot,Ct);var Mt=function(){};Mt.prototype.compare=function(t,e){return Ot.compare(t,e)},Mt.prototype.interfaces_=function(){return[x]},Mt.prototype.getClass=function(){return Mt};var It=function(){};It.prototype.compare=function(t,e){var n=t,r=e;if(n.length<r.length)return-1;if(n.length>r.length)return 1;if(0===n.length)return 0;var i=Ot.compare(n,r);return Ot.isEqualReversed(n,r)?0:i},It.prototype.OLDcompare=function(t,e){var n=t,r=e;if(n.length<r.length)return-1;if(n.length>r.length)return 1;if(0===n.length)return 0;for(var i=Ot.increasingDirection(n),o=Ot.increasingDirection(r),s=i>0?0:n.length-1,a=o>0?0:n.length-1,u=0;u<n.length;u++){var c=n[s].compareTo(r[a]);if(0!==c)return c;s+=i,a+=o}return 0},It.prototype.interfaces_=function(){return[x]},It.prototype.getClass=function(){return It};var Tt=function(){};Tt.prototype.get=function(){},Tt.prototype.put=function(){},Tt.prototype.size=function(){},Tt.prototype.values=function(){},Tt.prototype.entrySet=function(){};var jt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Tt);(i.prototype=new Error).name="OperationNotSupported",(o.prototype=new bt).contains=function(){};var Nt=function(t){function e(){t.call(this),this.array_=[],arguments[0]instanceof bt&&this.addAll(arguments[0])}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.contains=function(t){for(var e=0,n=this.array_.length;e<n;e++)if(this.array_[e]===t)return!0;return!1},e.prototype.add=function(t){return!this.contains(t)&&(this.array_.push(t),!0)},e.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next());return!0},e.prototype.remove=function(t){throw new Error},e.prototype.size=function(){return this.array_.length},e.prototype.isEmpty=function(){return 0===this.array_.length},e.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e<n;e++)t.push(this.array_[e]);return t},e.prototype.iterator=function(){return new Dt(this)},e}(o),Dt=function(t){function e(e){t.call(this),this.hashSet_=e,this.position_=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.next=function(){if(this.position_===this.hashSet_.size())throw new r;return this.hashSet_.array_[this.position_++]},e.prototype.hasNext=function(){return this.position_<this.hashSet_.size()},e.prototype.remove=function(){throw new i},e}(wt),At=0;(h.prototype=new jt).get=function(t){for(var e=this.root_;null!==e;){var n=t.compareTo(e.key);if(n<0)e=e.left;else{if(!(n>0))return e.value;e=e.right}}return null},h.prototype.put=function(t,e){if(null===this.root_)return this.root_={key:t,value:e,left:null,right:null,parent:null,color:At,getValue:function(){return this.value},getKey:function(){return this.key}},this.size_=1,null;var n,r,i=this.root_;do{if(n=i,(r=t.compareTo(i.key))<0)i=i.left;else{if(!(r>0)){var o=i.value;return i.value=e,o}i=i.right}}while(null!==i);var s={key:t,left:null,right:null,value:e,parent:n,color:At,getValue:function(){return this.value},getKey:function(){return this.key}};return r<0?n.left=s:n.right=s,this.fixAfterInsertion(s),this.size_++,null},h.prototype.fixAfterInsertion=function(t){for(t.color=1;null!=t&&t!==this.root_&&1===t.parent.color;)if(a(t)===c(a(a(t)))){var e=l(a(a(t)));1===s(e)?(u(a(t),At),u(e,At),u(a(a(t)),1),t=a(a(t))):(t===l(a(t))&&(t=a(t),this.rotateLeft(t)),u(a(t),At),u(a(a(t)),1),this.rotateRight(a(a(t))))}else{var n=c(a(a(t)));1===s(n)?(u(a(t),At),u(n,At),u(a(a(t)),1),t=a(a(t))):(t===c(a(t))&&(t=a(t),this.rotateRight(t)),u(a(t),At),u(a(a(t)),1),this.rotateLeft(a(a(t))))}this.root_.color=At},h.prototype.values=function(){var t=new xt,e=this.getFirstEntry();if(null!==e)for(t.add(e.value);null!==(e=h.successor(e));)t.add(e.value);return t},h.prototype.entrySet=function(){var t=new Nt,e=this.getFirstEntry();if(null!==e)for(t.add(e);null!==(e=h.successor(e));)t.add(e);return t},h.prototype.rotateLeft=function(t){if(null!=t){var e=t.right;t.right=e.left,null!=e.left&&(e.left.parent=t),e.parent=t.parent,null===t.parent?this.root_=e:t.parent.left===t?t.parent.left=e:t.parent.right=e,e.left=t,t.parent=e}},h.prototype.rotateRight=function(t){if(null!=t){var e=t.left;t.left=e.right,null!=e.right&&(e.right.parent=t),e.parent=t.parent,null===t.parent?this.root_=e:t.parent.right===t?t.parent.right=e:t.parent.left=e,e.right=t,t.parent=e}},h.prototype.getFirstEntry=function(){var t=this.root_;if(null!=t)for(;null!=t.left;)t=t.left;return t},h.successor=function(t){if(null===t)return null;if(null!==t.right){for(var e=t.right;null!==e.left;)e=e.left;return e}for(var n=t.parent,r=t;null!==n&&r===n.right;)r=n,n=n.parent;return n},h.prototype.size=function(){return this.size_};var Rt=function(){};Rt.prototype.interfaces_=function(){return[]},Rt.prototype.getClass=function(){return Rt},p.prototype=new o,(f.prototype=new p).contains=function(t){for(var e=0,n=this.array_.length;e<n;e++)if(0===this.array_[e].compareTo(t))return!0;return!1},f.prototype.add=function(t){if(this.contains(t))return!1;for(var e=0,n=this.array_.length;e<n;e++)if(1===this.array_[e].compareTo(t))return this.array_.splice(e,0,t),!0;return this.array_.push(t),!0},f.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next());return!0},f.prototype.remove=function(t){throw new i},f.prototype.size=function(){return this.array_.length},f.prototype.isEmpty=function(){return 0===this.array_.length},f.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e<n;e++)t.push(this.array_[e]);return t},f.prototype.iterator=function(){return new Ft(this)};var Ft=function(t){this.treeSet_=t,this.position_=0};Ft.prototype.next=function(){if(this.position_===this.treeSet_.size())throw new r;return this.treeSet_.array_[this.position_++]},Ft.prototype.hasNext=function(){return this.position_<this.treeSet_.size()},Ft.prototype.remove=function(){throw new i};var Lt=function(){};Lt.sort=function(){var t,e,n,r,i=arguments[0];if(1===arguments.length)r=function(t,e){return t.compareTo(e)},i.sort(r);else if(2===arguments.length)n=arguments[1],r=function(t,e){return n.compare(t,e)},i.sort(r);else if(3===arguments.length){(e=i.slice(arguments[1],arguments[2])).sort();var o=i.slice(0,arguments[1]).concat(e,i.slice(arguments[2],i.length));for(i.splice(0,i.length),t=0;t<o.length;t++)i.push(o[t])}else if(4===arguments.length)for(e=i.slice(arguments[1],arguments[2]),n=arguments[3],r=function(t,e){return n.compare(t,e)},e.sort(r),o=i.slice(0,arguments[1]).concat(e,i.slice(arguments[2],i.length)),i.splice(0,i.length),t=0;t<o.length;t++)i.push(o[t])},Lt.asList=function(t){for(var e=new xt,n=0,r=t.length;n<r;n++)e.add(t[n]);return e};var kt=function(){},Vt={P:{configurable:!0},L:{configurable:!0},A:{configurable:!0},FALSE:{configurable:!0},TRUE:{configurable:!0},DONTCARE:{configurable:!0},SYM_FALSE:{configurable:!0},SYM_TRUE:{configurable:!0},SYM_DONTCARE:{configurable:!0},SYM_P:{configurable:!0},SYM_L:{configurable:!0},SYM_A:{configurable:!0}};Vt.P.get=function(){return 0},Vt.L.get=function(){return 1},Vt.A.get=function(){return 2},Vt.FALSE.get=function(){return-1},Vt.TRUE.get=function(){return-2},Vt.DONTCARE.get=function(){return-3},Vt.SYM_FALSE.get=function(){return"F"},Vt.SYM_TRUE.get=function(){return"T"},Vt.SYM_DONTCARE.get=function(){return"*"},Vt.SYM_P.get=function(){return"0"},Vt.SYM_L.get=function(){return"1"},Vt.SYM_A.get=function(){return"2"},kt.prototype.interfaces_=function(){return[]},kt.prototype.getClass=function(){return kt},kt.toDimensionSymbol=function(t){switch(t){case kt.FALSE:return kt.SYM_FALSE;case kt.TRUE:return kt.SYM_TRUE;case kt.DONTCARE:return kt.SYM_DONTCARE;case kt.P:return kt.SYM_P;case kt.L:return kt.SYM_L;case kt.A:return kt.SYM_A}throw new m("Unknown dimension value: "+t)},kt.toDimensionValue=function(t){switch(R.toUpperCase(t)){case kt.SYM_FALSE:return kt.FALSE;case kt.SYM_TRUE:return kt.TRUE;case kt.SYM_DONTCARE:return kt.DONTCARE;case kt.SYM_P:return kt.P;case kt.SYM_L:return kt.L;case kt.SYM_A:return kt.A}throw new m("Unknown dimension symbol: "+t)},Object.defineProperties(kt,Vt);var Bt=function(){};Bt.prototype.filter=function(t){},Bt.prototype.interfaces_=function(){return[]},Bt.prototype.getClass=function(){return Bt};var zt=function(){};zt.prototype.filter=function(t,e){},zt.prototype.isDone=function(){},zt.prototype.isGeometryChanged=function(){},zt.prototype.interfaces_=function(){return[]},zt.prototype.getClass=function(){return zt};var Ut=function(t){function e(e,n){if(t.call(this,n),this._geometries=e||[],t.hasNullElements(this._geometries))throw new m("geometries must not contain null elements")}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.computeEnvelopeInternal=function(){for(var t=new X,e=0;e<this._geometries.length;e++)t.expandToInclude(this._geometries[e].getEnvelopeInternal());return t},e.prototype.getGeometryN=function(t){return this._geometries[t]},e.prototype.getSortIndex=function(){return t.SORTINDEX_GEOMETRYCOLLECTION},e.prototype.getCoordinates=function(){for(var t=new Array(this.getNumPoints()).fill(null),e=-1,n=0;n<this._geometries.length;n++)for(var r=this._geometries[n].getCoordinates(),i=0;i<r.length;i++)t[++e]=r[i];return t},e.prototype.getArea=function(){for(var t=0,e=0;e<this._geometries.length;e++)t+=this._geometries[e].getArea();return t},e.prototype.equalsExact=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];if(!this.isEquivalentClass(e))return!1;var r=e;if(this._geometries.length!==r._geometries.length)return!1;for(var i=0;i<this._geometries.length;i++)if(!this._geometries[i].equalsExact(r._geometries[i],n))return!1;return!0}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.normalize=function(){for(var t=0;t<this._geometries.length;t++)this._geometries[t].normalize();Lt.sort(this._geometries)},e.prototype.getCoordinate=function(){return this.isEmpty()?null:this._geometries[0].getCoordinate()},e.prototype.getBoundaryDimension=function(){for(var t=kt.FALSE,e=0;e<this._geometries.length;e++)t=Math.max(t,this._geometries[e].getBoundaryDimension());return t},e.prototype.getDimension=function(){for(var t=kt.FALSE,e=0;e<this._geometries.length;e++)t=Math.max(t,this._geometries[e].getDimension());return t},e.prototype.getLength=function(){for(var t=0,e=0;e<this._geometries.length;e++)t+=this._geometries[e].getLength();return t},e.prototype.getNumPoints=function(){for(var t=0,e=0;e<this._geometries.length;e++)t+=this._geometries[e].getNumPoints();return t},e.prototype.getNumGeometries=function(){return this._geometries.length},e.prototype.reverse=function(){for(var t=this._geometries.length,e=new Array(t).fill(null),n=0;n<this._geometries.length;n++)e[n]=this._geometries[n].reverse();return this.getFactory().createGeometryCollection(e)},e.prototype.compareToSameClass=function(){if(1===arguments.length){var t=arguments[0],e=new f(Lt.asList(this._geometries)),n=new f(Lt.asList(t._geometries));return this.compare(e,n)}if(2===arguments.length){for(var r=arguments[1],i=arguments[0],o=this.getNumGeometries(),s=i.getNumGeometries(),a=0;a<o&&a<s;){var u=this.getGeometryN(a),c=i.getGeometryN(a),l=u.compareToSameClass(c,r);if(0!==l)return l;a++}return a<o?1:a<s?-1:0}},e.prototype.apply=function(){if(T(arguments[0],ft))for(var t=arguments[0],e=0;e<this._geometries.length;e++)this._geometries[e].apply(t);else if(T(arguments[0],zt)){var n=arguments[0];if(0===this._geometries.length)return null;for(var r=0;r<this._geometries.length&&(this._geometries[r].apply(n),!n.isDone());r++);n.isGeometryChanged()&&this.geometryChanged()}else if(T(arguments[0],Bt)){var i=arguments[0];i.filter(this);for(var o=0;o<this._geometries.length;o++)this._geometries[o].apply(i)}else if(T(arguments[0],ct)){var s=arguments[0];s.filter(this);for(var a=0;a<this._geometries.length;a++)this._geometries[a].apply(s)}},e.prototype.getBoundary=function(){return this.checkNotGeometryCollection(this),et.shouldNeverReachHere(),null},e.prototype.clone=function(){var e=t.prototype.clone.call(this);e._geometries=new Array(this._geometries.length).fill(null);for(var n=0;n<this._geometries.length;n++)e._geometries[n]=this._geometries[n].clone();return e},e.prototype.getGeometryType=function(){return"GeometryCollection"},e.prototype.copy=function(){for(var t=new Array(this._geometries.length).fill(null),n=0;n<t.length;n++)t[n]=this._geometries[n].copy();return new e(t,this._factory)},e.prototype.isEmpty=function(){for(var t=0;t<this._geometries.length;t++)if(!this._geometries[t].isEmpty())return!1;return!0},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},n.serialVersionUID.get=function(){return-0x4f07bcb1f857d800},Object.defineProperties(e,n),e}(lt),Gt=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.getSortIndex=function(){return lt.SORTINDEX_MULTILINESTRING},e.prototype.equalsExact=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];return!!this.isEquivalentClass(e)&&t.prototype.equalsExact.call(this,e,n)}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.getBoundaryDimension=function(){return this.isClosed()?kt.FALSE:0},e.prototype.isClosed=function(){if(this.isEmpty())return!1;for(var t=0;t<this._geometries.length;t++)if(!this._geometries[t].isClosed())return!1;return!0},e.prototype.getDimension=function(){return 1},e.prototype.reverse=function(){for(var t=this._geometries.length,e=new Array(t).fill(null),n=0;n<this._geometries.length;n++)e[t-1-n]=this._geometries[n].reverse();return this.getFactory().createMultiLineString(e)},e.prototype.getBoundary=function(){return new Wt(this).getBoundary()},e.prototype.getGeometryType=function(){return"MultiLineString"},e.prototype.copy=function(){for(var t=new Array(this._geometries.length).fill(null),n=0;n<t.length;n++)t[n]=this._geometries[n].copy();return new e(t,this._factory)},e.prototype.interfaces_=function(){return[Rt]},e.prototype.getClass=function(){return e},n.serialVersionUID.get=function(){return 0x7155d2ab4afa8000},Object.defineProperties(e,n),e}(Ut),Wt=function(){if(this._geom=null,this._geomFact=null,this._bnRule=null,this._endpointMap=null,1===arguments.length){var t=arguments[0],e=dt.MOD2_BOUNDARY_RULE;this._geom=t,this._geomFact=t.getFactory(),this._bnRule=e}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this._geom=n,this._geomFact=n.getFactory(),this._bnRule=r}};Wt.prototype.boundaryMultiLineString=function(t){if(this._geom.isEmpty())return this.getEmptyMultiPoint();var e=this.computeBoundaryCoordinates(t);return 1===e.length?this._geomFact.createPoint(e[0]):this._geomFact.createMultiPointFromCoords(e)},Wt.prototype.getBoundary=function(){return this._geom instanceof Jt?this.boundaryLineString(this._geom):this._geom instanceof Gt?this.boundaryMultiLineString(this._geom):this._geom.getBoundary()},Wt.prototype.boundaryLineString=function(t){return this._geom.isEmpty()?this.getEmptyMultiPoint():t.isClosed()?this._bnRule.isInBoundary(2)?t.getStartPoint():this._geomFact.createMultiPoint():this._geomFact.createMultiPoint([t.getStartPoint(),t.getEndPoint()])},Wt.prototype.getEmptyMultiPoint=function(){return this._geomFact.createMultiPoint()},Wt.prototype.computeBoundaryCoordinates=function(t){var e=new xt;this._endpointMap=new h;for(var n=0;n<t.getNumGeometries();n++){var r=t.getGeometryN(n);0!==r.getNumPoints()&&(this.addEndpoint(r.getCoordinateN(0)),this.addEndpoint(r.getCoordinateN(r.getNumPoints()-1)))}for(var i=this._endpointMap.entrySet().iterator();i.hasNext();){var o=i.next(),s=o.getValue().count;this._bnRule.isInBoundary(s)&&e.add(o.getKey())}return Ot.toCoordinateArray(e)},Wt.prototype.addEndpoint=function(t){var e=this._endpointMap.get(t);null===e&&(e=new qt,this._endpointMap.put(t,e)),e.count++},Wt.prototype.interfaces_=function(){return[]},Wt.prototype.getClass=function(){return Wt},Wt.getBoundary=function(){return 1===arguments.length?new Wt(arguments[0]).getBoundary():2===arguments.length?new Wt(arguments[0],arguments[1]).getBoundary():void 0};var qt=function(){this.count=null};qt.prototype.interfaces_=function(){return[]},qt.prototype.getClass=function(){return qt};var Xt=function(){},Ht={NEWLINE:{configurable:!0},SIMPLE_ORDINATE_FORMAT:{configurable:!0}};Xt.prototype.interfaces_=function(){return[]},Xt.prototype.getClass=function(){return Xt},Xt.chars=function(t,e){for(var n=new Array(e).fill(null),r=0;r<e;r++)n[r]=t;return String(n)},Xt.getStackTrace=function(){if(1===arguments.length){var t=arguments[0],e=new function(){},n=new function(){}(e);return t.printStackTrace(n),e.toString()}if(2===arguments.length){for(var r=arguments[1],i="",o=new function(){}(new function(){}(Xt.getStackTrace(arguments[0]))),s=0;s<r;s++)try{i+=o.readLine()+Xt.NEWLINE}catch(t){if(!(t instanceof d))throw t;et.shouldNeverReachHere()}return i}},Xt.split=function(t,e){for(var n=e.length,r=new xt,i=""+t,o=i.indexOf(e);o>=0;){var s=i.substring(0,o);r.add(s),o=(i=i.substring(o+n)).indexOf(e)}i.length>0&&r.add(i);for(var a=new Array(r.size()).fill(null),u=0;u<a.length;u++)a[u]=r.get(u);return a},Xt.toString=function(){if(1===arguments.length){var t=arguments[0];return Xt.SIMPLE_ORDINATE_FORMAT.format(t)}},Xt.spaces=function(t){return Xt.chars(" ",t)},Ht.NEWLINE.get=function(){return W.getProperty("line.separator")},Ht.SIMPLE_ORDINATE_FORMAT.get=function(){return new function(){}("0.#")},Object.defineProperties(Xt,Ht);var Yt=function(){};Yt.prototype.interfaces_=function(){return[]},Yt.prototype.getClass=function(){return Yt},Yt.copyCoord=function(t,e,n,r){for(var i=Math.min(t.getDimension(),n.getDimension()),o=0;o<i;o++)n.setOrdinate(r,o,t.getOrdinate(e,o))},Yt.isRing=function(t){var e=t.size();return 0===e||!(e<=3)&&t.getOrdinate(0,B.X)===t.getOrdinate(e-1,B.X)&&t.getOrdinate(0,B.Y)===t.getOrdinate(e-1,B.Y)},Yt.isEqual=function(t,e){var n=t.size();if(n!==e.size())return!1;for(var r=Math.min(t.getDimension(),e.getDimension()),i=0;i<n;i++)for(var o=0;o<r;o++){var s=t.getOrdinate(i,o),a=e.getOrdinate(i,o);if(!(t.getOrdinate(i,o)===e.getOrdinate(i,o)||_.isNaN(s)&&_.isNaN(a)))return!1}return!0},Yt.extend=function(t,e,n){var r=t.create(n,e.getDimension()),i=e.size();if(Yt.copy(e,0,r,0,i),i>0)for(var o=i;o<n;o++)Yt.copy(e,i-1,r,o,1);return r},Yt.reverse=function(t){for(var e=t.size()-1,n=Math.trunc(e/2),r=0;r<=n;r++)Yt.swap(t,r,e-r)},Yt.swap=function(t,e,n){if(e===n)return null;for(var r=0;r<t.getDimension();r++){var i=t.getOrdinate(e,r);t.setOrdinate(e,r,t.getOrdinate(n,r)),t.setOrdinate(n,r,i)}},Yt.copy=function(t,e,n,r,i){for(var o=0;o<i;o++)Yt.copyCoord(t,e+o,n,r+o)},Yt.toString=function(){if(1===arguments.length){var t=arguments[0],e=t.size();if(0===e)return"()";var n=t.getDimension(),r=new D;r.append("(");for(var i=0;i<e;i++){i>0&&r.append(" ");for(var o=0;o<n;o++)o>0&&r.append(","),r.append(Xt.toString(t.getOrdinate(i,o)))}return r.append(")"),r.toString()}},Yt.ensureValidRing=function(t,e){var n=e.size();return 0===n?e:n<=3?Yt.createClosedRing(t,e,4):e.getOrdinate(0,B.X)===e.getOrdinate(n-1,B.X)&&e.getOrdinate(0,B.Y)===e.getOrdinate(n-1,B.Y)?e:Yt.createClosedRing(t,e,n+1)},Yt.createClosedRing=function(t,e,n){var r=t.create(n,e.getDimension()),i=e.size();Yt.copy(e,0,r,0,i);for(var o=i;o<n;o++)Yt.copy(e,0,r,o,1);return r};var Jt=function(t){function e(e,n){t.call(this,n),this._points=null,this.init(e)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.computeEnvelopeInternal=function(){return this.isEmpty()?new X:this._points.expandEnvelope(new X)},e.prototype.isRing=function(){return this.isClosed()&&this.isSimple()},e.prototype.getSortIndex=function(){return t.SORTINDEX_LINESTRING},e.prototype.getCoordinates=function(){return this._points.toCoordinateArray()},e.prototype.equalsExact=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];if(!this.isEquivalentClass(e))return!1;var r=e;if(this._points.size()!==r._points.size())return!1;for(var i=0;i<this._points.size();i++)if(!this.equal(this._points.getCoordinate(i),r._points.getCoordinate(i),n))return!1;return!0}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.normalize=function(){for(var t=0;t<Math.trunc(this._points.size()/2);t++){var e=this._points.size()-1-t;if(!this._points.getCoordinate(t).equals(this._points.getCoordinate(e)))return this._points.getCoordinate(t).compareTo(this._points.getCoordinate(e))>0&&Yt.reverse(this._points),null}},e.prototype.getCoordinate=function(){return this.isEmpty()?null:this._points.getCoordinate(0)},e.prototype.getBoundaryDimension=function(){return this.isClosed()?kt.FALSE:0},e.prototype.isClosed=function(){return!this.isEmpty()&&this.getCoordinateN(0).equals2D(this.getCoordinateN(this.getNumPoints()-1))},e.prototype.getEndPoint=function(){return this.isEmpty()?null:this.getPointN(this.getNumPoints()-1)},e.prototype.getDimension=function(){return 1},e.prototype.getLength=function(){return at.computeLength(this._points)},e.prototype.getNumPoints=function(){return this._points.size()},e.prototype.reverse=function(){var t=this._points.copy();return Yt.reverse(t),this.getFactory().createLineString(t)},e.prototype.compareToSameClass=function(){if(1===arguments.length){for(var t=arguments[0],e=0,n=0;e<this._points.size()&&n<t._points.size();){var r=this._points.getCoordinate(e).compareTo(t._points.getCoordinate(n));if(0!==r)return r;e++,n++}return e<this._points.size()?1:n<t._points.size()?-1:0}if(2===arguments.length){var i=arguments[0];return arguments[1].compare(this._points,i._points)}},e.prototype.apply=function(){if(T(arguments[0],ft))for(var t=arguments[0],e=0;e<this._points.size();e++)t.filter(this._points.getCoordinate(e));else if(T(arguments[0],zt)){var n=arguments[0];if(0===this._points.size())return null;for(var r=0;r<this._points.size()&&(n.filter(this._points,r),!n.isDone());r++);n.isGeometryChanged()&&this.geometryChanged()}else(T(arguments[0],Bt)||T(arguments[0],ct))&&arguments[0].filter(this)},e.prototype.getBoundary=function(){return new Wt(this).getBoundary()},e.prototype.isEquivalentClass=function(t){return t instanceof e},e.prototype.clone=function(){var e=t.prototype.clone.call(this);return e._points=this._points.clone(),e},e.prototype.getCoordinateN=function(t){return this._points.getCoordinate(t)},e.prototype.getGeometryType=function(){return"LineString"},e.prototype.copy=function(){return new e(this._points.copy(),this._factory)},e.prototype.getCoordinateSequence=function(){return this._points},e.prototype.isEmpty=function(){return 0===this._points.size()},e.prototype.init=function(t){if(null===t&&(t=this.getFactory().getCoordinateSequenceFactory().create([])),1===t.size())throw new m("Invalid number of points in LineString (found "+t.size()+" - must be 0 or >= 2)");this._points=t},e.prototype.isCoordinate=function(t){for(var e=0;e<this._points.size();e++)if(this._points.getCoordinate(e).equals(t))return!0;return!1},e.prototype.getStartPoint=function(){return this.isEmpty()?null:this.getPointN(0)},e.prototype.getPointN=function(t){return this.getFactory().createPoint(this._points.getCoordinate(t))},e.prototype.interfaces_=function(){return[Rt]},e.prototype.getClass=function(){return e},n.serialVersionUID.get=function(){return 0x2b2b51ba435c8e00},Object.defineProperties(e,n),e}(lt),$t=function(){};$t.prototype.interfaces_=function(){return[]},$t.prototype.getClass=function(){return $t};var Zt=function(t){function e(e,n){t.call(this,n),this._coordinates=e||null,this.init(this._coordinates)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.computeEnvelopeInternal=function(){if(this.isEmpty())return new X;var t=new X;return t.expandToInclude(this._coordinates.getX(0),this._coordinates.getY(0)),t},e.prototype.getSortIndex=function(){return t.SORTINDEX_POINT},e.prototype.getCoordinates=function(){return this.isEmpty()?[]:[this.getCoordinate()]},e.prototype.equalsExact=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];return!!this.isEquivalentClass(e)&&(!(!this.isEmpty()||!e.isEmpty())||this.isEmpty()===e.isEmpty()&&this.equal(e.getCoordinate(),this.getCoordinate(),n))}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.normalize=function(){},e.prototype.getCoordinate=function(){return 0!==this._coordinates.size()?this._coordinates.getCoordinate(0):null},e.prototype.getBoundaryDimension=function(){return kt.FALSE},e.prototype.getDimension=function(){return 0},e.prototype.getNumPoints=function(){return this.isEmpty()?0:1},e.prototype.reverse=function(){return this.copy()},e.prototype.getX=function(){if(null===this.getCoordinate())throw new Error("getX called on empty Point");return this.getCoordinate().x},e.prototype.compareToSameClass=function(){if(1===arguments.length){var t=arguments[0];return this.getCoordinate().compareTo(t.getCoordinate())}if(2===arguments.length){var e=arguments[0];return arguments[1].compare(this._coordinates,e._coordinates)}},e.prototype.apply=function(){if(T(arguments[0],ft)){var t=arguments[0];if(this.isEmpty())return null;t.filter(this.getCoordinate())}else if(T(arguments[0],zt)){var e=arguments[0];if(this.isEmpty())return null;e.filter(this._coordinates,0),e.isGeometryChanged()&&this.geometryChanged()}else(T(arguments[0],Bt)||T(arguments[0],ct))&&arguments[0].filter(this)},e.prototype.getBoundary=function(){return this.getFactory().createGeometryCollection(null)},e.prototype.clone=function(){var e=t.prototype.clone.call(this);return e._coordinates=this._coordinates.clone(),e},e.prototype.getGeometryType=function(){return"Point"},e.prototype.copy=function(){return new e(this._coordinates.copy(),this._factory)},e.prototype.getCoordinateSequence=function(){return this._coordinates},e.prototype.getY=function(){if(null===this.getCoordinate())throw new Error("getY called on empty Point");return this.getCoordinate().y},e.prototype.isEmpty=function(){return 0===this._coordinates.size()},e.prototype.init=function(t){null===t&&(t=this.getFactory().getCoordinateSequenceFactory().create([])),et.isTrue(t.size()<=1),this._coordinates=t},e.prototype.isSimple=function(){return!0},e.prototype.interfaces_=function(){return[$t]},e.prototype.getClass=function(){return e},n.serialVersionUID.get=function(){return 0x44077bad161cbc00},Object.defineProperties(e,n),e}(lt),Qt=function(){};Qt.prototype.interfaces_=function(){return[]},Qt.prototype.getClass=function(){return Qt};var Kt=function(t){function e(e,n,r){if(t.call(this,r),this._shell=null,this._holes=null,null===e&&(e=this.getFactory().createLinearRing()),null===n&&(n=[]),t.hasNullElements(n))throw new m("holes must not contain null elements");if(e.isEmpty()&&t.hasNonEmptyElements(n))throw new m("shell is empty but holes are not");this._shell=e,this._holes=n}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.computeEnvelopeInternal=function(){return this._shell.getEnvelopeInternal()},e.prototype.getSortIndex=function(){return t.SORTINDEX_POLYGON},e.prototype.getCoordinates=function(){if(this.isEmpty())return[];for(var t=new Array(this.getNumPoints()).fill(null),e=-1,n=this._shell.getCoordinates(),r=0;r<n.length;r++)t[++e]=n[r];for(var i=0;i<this._holes.length;i++)for(var o=this._holes[i].getCoordinates(),s=0;s<o.length;s++)t[++e]=o[s];return t},e.prototype.getArea=function(){var t=0;t+=Math.abs(at.signedArea(this._shell.getCoordinateSequence()));for(var e=0;e<this._holes.length;e++)t-=Math.abs(at.signedArea(this._holes[e].getCoordinateSequence()));return t},e.prototype.isRectangle=function(){if(0!==this.getNumInteriorRing())return!1;if(null===this._shell)return!1;if(5!==this._shell.getNumPoints())return!1;for(var t=this._shell.getCoordinateSequence(),e=this.getEnvelopeInternal(),n=0;n<5;n++){var r=t.getX(n);if(r!==e.getMinX()&&r!==e.getMaxX())return!1;var i=t.getY(n);if(i!==e.getMinY()&&i!==e.getMaxY())return!1}for(var o=t.getX(0),s=t.getY(0),a=1;a<=4;a++){var u=t.getX(a),c=t.getY(a);if(u!==o==(c!==s))return!1;o=u,s=c}return!0},e.prototype.equalsExact=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];if(!this.isEquivalentClass(e))return!1;var r=e,i=this._shell,o=r._shell;if(!i.equalsExact(o,n))return!1;if(this._holes.length!==r._holes.length)return!1;for(var s=0;s<this._holes.length;s++)if(!this._holes[s].equalsExact(r._holes[s],n))return!1;return!0}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.normalize=function(){if(0===arguments.length){this.normalize(this._shell,!0);for(var t=0;t<this._holes.length;t++)this.normalize(this._holes[t],!1);Lt.sort(this._holes)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(e.isEmpty())return null;var r=new Array(e.getCoordinates().length-1).fill(null);W.arraycopy(e.getCoordinates(),0,r,0,r.length);var i=Ot.minCoordinate(e.getCoordinates());Ot.scroll(r,i),W.arraycopy(r,0,e.getCoordinates(),0,r.length),e.getCoordinates()[r.length]=r[0],at.isCCW(e.getCoordinates())===n&&Ot.reverse(e.getCoordinates())}},e.prototype.getCoordinate=function(){return this._shell.getCoordinate()},e.prototype.getNumInteriorRing=function(){return this._holes.length},e.prototype.getBoundaryDimension=function(){return 1},e.prototype.getDimension=function(){return 2},e.prototype.getLength=function(){var t=0;t+=this._shell.getLength();for(var e=0;e<this._holes.length;e++)t+=this._holes[e].getLength();return t},e.prototype.getNumPoints=function(){for(var t=this._shell.getNumPoints(),e=0;e<this._holes.length;e++)t+=this._holes[e].getNumPoints();return t},e.prototype.reverse=function(){var t=this.copy();t._shell=this._shell.copy().reverse(),t._holes=new Array(this._holes.length).fill(null);for(var e=0;e<this._holes.length;e++)t._holes[e]=this._holes[e].copy().reverse();return t},e.prototype.convexHull=function(){return this.getExteriorRing().convexHull()},e.prototype.compareToSameClass=function(){if(1===arguments.length){var t=arguments[0],e=this._shell,n=t._shell;return e.compareToSameClass(n)}if(2===arguments.length){var r=arguments[1],i=arguments[0],o=this._shell,s=i._shell,a=o.compareToSameClass(s,r);if(0!==a)return a;for(var u=this.getNumInteriorRing(),c=i.getNumInteriorRing(),l=0;l<u&&l<c;){var h=this.getInteriorRingN(l),p=i.getInteriorRingN(l),f=h.compareToSameClass(p,r);if(0!==f)return f;l++}return l<u?1:l<c?-1:0}},e.prototype.apply=function(t){if(T(t,ft)){this._shell.apply(t);for(var e=0;e<this._holes.length;e++)this._holes[e].apply(t)}else if(T(t,zt)){if(this._shell.apply(t),!t.isDone())for(var n=0;n<this._holes.length&&(this._holes[n].apply(t),!t.isDone());n++);t.isGeometryChanged()&&this.geometryChanged()}else if(T(t,Bt))t.filter(this);else if(T(t,ct)){t.filter(this),this._shell.apply(t);for(var r=0;r<this._holes.length;r++)this._holes[r].apply(t)}},e.prototype.getBoundary=function(){if(this.isEmpty())return this.getFactory().createMultiLineString();var t=new Array(this._holes.length+1).fill(null);t[0]=this._shell;for(var e=0;e<this._holes.length;e++)t[e+1]=this._holes[e];return t.length<=1?this.getFactory().createLinearRing(t[0].getCoordinateSequence()):this.getFactory().createMultiLineString(t)},e.prototype.clone=function(){var e=t.prototype.clone.call(this);e._shell=this._shell.clone(),e._holes=new Array(this._holes.length).fill(null);for(var n=0;n<this._holes.length;n++)e._holes[n]=this._holes[n].clone();return e},e.prototype.getGeometryType=function(){return"Polygon"},e.prototype.copy=function(){for(var t=this._shell.copy(),n=new Array(this._holes.length).fill(null),r=0;r<n.length;r++)n[r]=this._holes[r].copy();return new e(t,n,this._factory)},e.prototype.getExteriorRing=function(){return this._shell},e.prototype.isEmpty=function(){return this._shell.isEmpty()},e.prototype.getInteriorRingN=function(t){return this._holes[t]},e.prototype.interfaces_=function(){return[Qt]},e.prototype.getClass=function(){return e},n.serialVersionUID.get=function(){return-0x307ffefd8dc97200},Object.defineProperties(e,n),e}(lt),te=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.getSortIndex=function(){return lt.SORTINDEX_MULTIPOINT},e.prototype.isValid=function(){return!0},e.prototype.equalsExact=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];return!!this.isEquivalentClass(e)&&t.prototype.equalsExact.call(this,e,n)}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.getCoordinate=function(){if(1===arguments.length){var e=arguments[0];return this._geometries[e].getCoordinate()}return t.prototype.getCoordinate.apply(this,arguments)},e.prototype.getBoundaryDimension=function(){return kt.FALSE},e.prototype.getDimension=function(){return 0},e.prototype.getBoundary=function(){return this.getFactory().createGeometryCollection(null)},e.prototype.getGeometryType=function(){return"MultiPoint"},e.prototype.copy=function(){for(var t=new Array(this._geometries.length).fill(null),n=0;n<t.length;n++)t[n]=this._geometries[n].copy();return new e(t,this._factory)},e.prototype.interfaces_=function(){return[$t]},e.prototype.getClass=function(){return e},n.serialVersionUID.get=function(){return-0x6fb1ed4162e0fc00},Object.defineProperties(e,n),e}(Ut),ee=function(t){function e(e,n){e instanceof P&&n instanceof ve&&(e=n.getCoordinateSequenceFactory().create(e)),t.call(this,e,n),this.validateConstruction()}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={MINIMUM_VALID_SIZE:{configurable:!0},serialVersionUID:{configurable:!0}};return e.prototype.getSortIndex=function(){return lt.SORTINDEX_LINEARRING},e.prototype.getBoundaryDimension=function(){return kt.FALSE},e.prototype.isClosed=function(){return!!this.isEmpty()||t.prototype.isClosed.call(this)},e.prototype.reverse=function(){var t=this._points.copy();return Yt.reverse(t),this.getFactory().createLinearRing(t)},e.prototype.validateConstruction=function(){if(!this.isEmpty()&&!t.prototype.isClosed.call(this))throw new m("Points of LinearRing do not form a closed linestring");if(this.getCoordinateSequence().size()>=1&&this.getCoordinateSequence().size()<e.MINIMUM_VALID_SIZE)throw new m("Invalid number of points in LinearRing (found "+this.getCoordinateSequence().size()+" - must be 0 or >= 4)")},e.prototype.getGeometryType=function(){return"LinearRing"},e.prototype.copy=function(){return new e(this._points.copy(),this._factory)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},n.MINIMUM_VALID_SIZE.get=function(){return 4},n.serialVersionUID.get=function(){return-0x3b229e262367a600},Object.defineProperties(e,n),e}(Jt),ne=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.getSortIndex=function(){return lt.SORTINDEX_MULTIPOLYGON},e.prototype.equalsExact=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];return!!this.isEquivalentClass(e)&&t.prototype.equalsExact.call(this,e,n)}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.getBoundaryDimension=function(){return 1},e.prototype.getDimension=function(){return 2},e.prototype.reverse=function(){for(var t=this._geometries.length,e=new Array(t).fill(null),n=0;n<this._geometries.length;n++)e[n]=this._geometries[n].reverse();return this.getFactory().createMultiPolygon(e)},e.prototype.getBoundary=function(){if(this.isEmpty())return this.getFactory().createMultiLineString();for(var t=new xt,e=0;e<this._geometries.length;e++)for(var n=this._geometries[e].getBoundary(),r=0;r<n.getNumGeometries();r++)t.add(n.getGeometryN(r));var i=new Array(t.size()).fill(null);return this.getFactory().createMultiLineString(t.toArray(i))},e.prototype.getGeometryType=function(){return"MultiPolygon"},e.prototype.copy=function(){for(var t=new Array(this._geometries.length).fill(null),n=0;n<t.length;n++)t[n]=this._geometries[n].copy();return new e(t,this._factory)},e.prototype.interfaces_=function(){return[Qt]},e.prototype.getClass=function(){return e},n.serialVersionUID.get=function(){return-0x7a5aa1369171980},Object.defineProperties(e,n),e}(Ut),re=function(t){this._factory=t||null,this._isUserDataCopied=!1},ie={NoOpGeometryOperation:{configurable:!0},CoordinateOperation:{configurable:!0},CoordinateSequenceOperation:{configurable:!0}};re.prototype.setCopyUserData=function(t){this._isUserDataCopied=t},re.prototype.edit=function(t,e){if(null===t)return null;var n=this.editInternal(t,e);return this._isUserDataCopied&&n.setUserData(t.getUserData()),n},re.prototype.editInternal=function(t,e){return null===this._factory&&(this._factory=t.getFactory()),t instanceof Ut?this.editGeometryCollection(t,e):t instanceof Kt?this.editPolygon(t,e):t instanceof Zt||t instanceof Jt?e.edit(t,this._factory):(et.shouldNeverReachHere("Unsupported Geometry class: "+t.getClass().getName()),null)},re.prototype.editGeometryCollection=function(t,e){for(var n=e.edit(t,this._factory),r=new xt,i=0;i<n.getNumGeometries();i++){var o=this.edit(n.getGeometryN(i),e);null===o||o.isEmpty()||r.add(o)}return n.getClass()===te?this._factory.createMultiPoint(r.toArray([])):n.getClass()===Gt?this._factory.createMultiLineString(r.toArray([])):n.getClass()===ne?this._factory.createMultiPolygon(r.toArray([])):this._factory.createGeometryCollection(r.toArray([]))},re.prototype.editPolygon=function(t,e){var n=e.edit(t,this._factory);if(null===n&&(n=this._factory.createPolygon(null)),n.isEmpty())return n;var r=this.edit(n.getExteriorRing(),e);if(null===r||r.isEmpty())return this._factory.createPolygon();for(var i=new xt,o=0;o<n.getNumInteriorRing();o++){var s=this.edit(n.getInteriorRingN(o),e);null===s||s.isEmpty()||i.add(s)}return this._factory.createPolygon(r,i.toArray([]))},re.prototype.interfaces_=function(){return[]},re.prototype.getClass=function(){return re},re.GeometryEditorOperation=function(){},ie.NoOpGeometryOperation.get=function(){return oe},ie.CoordinateOperation.get=function(){return se},ie.CoordinateSequenceOperation.get=function(){return ae},Object.defineProperties(re,ie);var oe=function(){};oe.prototype.edit=function(t,e){return t},oe.prototype.interfaces_=function(){return[re.GeometryEditorOperation]},oe.prototype.getClass=function(){return oe};var se=function(){};se.prototype.edit=function(t,e){var n=this.editCoordinates(t.getCoordinates(),t);return null===n?t:t instanceof ee?e.createLinearRing(n):t instanceof Jt?e.createLineString(n):t instanceof Zt?n.length>0?e.createPoint(n[0]):e.createPoint():t},se.prototype.interfaces_=function(){return[re.GeometryEditorOperation]},se.prototype.getClass=function(){return se};var ae=function(){};ae.prototype.edit=function(t,e){return t instanceof ee?e.createLinearRing(this.edit(t.getCoordinateSequence(),t)):t instanceof Jt?e.createLineString(this.edit(t.getCoordinateSequence(),t)):t instanceof Zt?e.createPoint(this.edit(t.getCoordinateSequence(),t)):t},ae.prototype.interfaces_=function(){return[re.GeometryEditorOperation]},ae.prototype.getClass=function(){return ae};var ue=function(){if(this._dimension=3,this._coordinates=null,1===arguments.length){if(arguments[0]instanceof Array)this._coordinates=arguments[0],this._dimension=3;else if(Number.isInteger(arguments[0])){var t=arguments[0];this._coordinates=new Array(t).fill(null);for(var e=0;e<t;e++)this._coordinates[e]=new P}else if(T(arguments[0],B)){var n=arguments[0];if(null===n)return this._coordinates=new Array(0).fill(null),null;this._dimension=n.getDimension(),this._coordinates=new Array(n.size()).fill(null);for(var r=0;r<this._coordinates.length;r++)this._coordinates[r]=n.getCoordinateCopy(r)}}else if(2===arguments.length)if(arguments[0]instanceof Array&&Number.isInteger(arguments[1])){var i=arguments[0],o=arguments[1];this._coordinates=i,this._dimension=o,null===i&&(this._coordinates=new Array(0).fill(null))}else if(Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var s=arguments[0],a=arguments[1];this._coordinates=new Array(s).fill(null),this._dimension=a;for(var u=0;u<s;u++)this._coordinates[u]=new P}},ce={serialVersionUID:{configurable:!0}};ue.prototype.setOrdinate=function(t,e,n){switch(e){case B.X:this._coordinates[t].x=n;break;case B.Y:this._coordinates[t].y=n;break;case B.Z:this._coordinates[t].z=n;break;default:throw new m("invalid ordinateIndex")}},ue.prototype.size=function(){return this._coordinates.length},ue.prototype.getOrdinate=function(t,e){switch(e){case B.X:return this._coordinates[t].x;case B.Y:return this._coordinates[t].y;case B.Z:return this._coordinates[t].z}return _.NaN},ue.prototype.getCoordinate=function(){if(1===arguments.length){var t=arguments[0];return this._coordinates[t]}if(2===arguments.length){var e=arguments[0],n=arguments[1];n.x=this._coordinates[e].x,n.y=this._coordinates[e].y,n.z=this._coordinates[e].z}},ue.prototype.getCoordinateCopy=function(t){return new P(this._coordinates[t])},ue.prototype.getDimension=function(){return this._dimension},ue.prototype.getX=function(t){return this._coordinates[t].x},ue.prototype.clone=function(){for(var t=new Array(this.size()).fill(null),e=0;e<this._coordinates.length;e++)t[e]=this._coordinates[e].clone();return new ue(t,this._dimension)},ue.prototype.expandEnvelope=function(t){for(var e=0;e<this._coordinates.length;e++)t.expandToInclude(this._coordinates[e]);return t},ue.prototype.copy=function(){for(var t=new Array(this.size()).fill(null),e=0;e<this._coordinates.length;e++)t[e]=this._coordinates[e].copy();return new ue(t,this._dimension)},ue.prototype.toString=function(){if(this._coordinates.length>0){var t=new D(17*this._coordinates.length);t.append("("),t.append(this._coordinates[0]);for(var e=1;e<this._coordinates.length;e++)t.append(", "),t.append(this._coordinates[e]);return t.append(")"),t.toString()}return"()"},ue.prototype.getY=function(t){return this._coordinates[t].y},ue.prototype.toCoordinateArray=function(){return this._coordinates},ue.prototype.interfaces_=function(){return[B,e]},ue.prototype.getClass=function(){return ue},ce.serialVersionUID.get=function(){return-0xcb44a778db18e00},Object.defineProperties(ue,ce);var le=function(){},he={serialVersionUID:{configurable:!0},instanceObject:{configurable:!0}};le.prototype.readResolve=function(){return le.instance()},le.prototype.create=function(){if(1===arguments.length){if(arguments[0]instanceof Array)return new ue(arguments[0]);if(T(arguments[0],B))return new ue(arguments[0])}else if(2===arguments.length){var t=arguments[0],e=arguments[1];return e>3&&(e=3),e<2?new ue(t):new ue(t,e)}},le.prototype.interfaces_=function(){return[C,e]},le.prototype.getClass=function(){return le},le.instance=function(){return le.instanceObject},he.serialVersionUID.get=function(){return-0x38e49fa6cf6f2e00},he.instanceObject.get=function(){return new le},Object.defineProperties(le,he);var pe=function(t){function e(){t.call(this),this.map_=new Map}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return this.map_.get(t)||null},e.prototype.put=function(t,e){return this.map_.set(t,e),e},e.prototype.values=function(){for(var t=new xt,e=this.map_.values(),n=e.next();!n.done;)t.add(n.value),n=e.next();return t},e.prototype.entrySet=function(){var t=new Nt;return this.map_.entries().forEach((function(e){return t.add(e)})),t},e.prototype.size=function(){return this.map_.size()},e}(Tt),fe=function t(){if(this._modelType=null,this._scale=null,0===arguments.length)this._modelType=t.FLOATING;else if(1===arguments.length)if(arguments[0]instanceof ge){var e=arguments[0];this._modelType=e,e===t.FIXED&&this.setScale(1)}else if("number"==typeof arguments[0]){var n=arguments[0];this._modelType=t.FIXED,this.setScale(n)}else if(arguments[0]instanceof t){var r=arguments[0];this._modelType=r._modelType,this._scale=r._scale}},de={serialVersionUID:{configurable:!0},maximumPreciseValue:{configurable:!0}};fe.prototype.equals=function(t){if(!(t instanceof fe))return!1;var e=t;return this._modelType===e._modelType&&this._scale===e._scale},fe.prototype.compareTo=function(t){var e=t,n=this.getMaximumSignificantDigits(),r=e.getMaximumSignificantDigits();return new A(n).compareTo(new A(r))},fe.prototype.getScale=function(){return this._scale},fe.prototype.isFloating=function(){return this._modelType===fe.FLOATING||this._modelType===fe.FLOATING_SINGLE},fe.prototype.getType=function(){return this._modelType},fe.prototype.toString=function(){var t="UNKNOWN";return this._modelType===fe.FLOATING?t="Floating":this._modelType===fe.FLOATING_SINGLE?t="Floating-Single":this._modelType===fe.FIXED&&(t="Fixed (Scale="+this.getScale()+")"),t},fe.prototype.makePrecise=function(){if("number"==typeof arguments[0]){var t=arguments[0];return _.isNaN(t)||this._modelType===fe.FLOATING_SINGLE?t:this._modelType===fe.FIXED?Math.round(t*this._scale)/this._scale:t}if(arguments[0]instanceof P){var e=arguments[0];if(this._modelType===fe.FLOATING)return null;e.x=this.makePrecise(e.x),e.y=this.makePrecise(e.y)}},fe.prototype.getMaximumSignificantDigits=function(){var t=16;return this._modelType===fe.FLOATING?t=16:this._modelType===fe.FLOATING_SINGLE?t=6:this._modelType===fe.FIXED&&(t=1+Math.trunc(Math.ceil(Math.log(this.getScale())/Math.log(10)))),t},fe.prototype.setScale=function(t){this._scale=Math.abs(t)},fe.prototype.interfaces_=function(){return[e,w]},fe.prototype.getClass=function(){return fe},fe.mostPrecise=function(t,e){return t.compareTo(e)>=0?t:e},de.serialVersionUID.get=function(){return 0x6bee6404e9a25c00},de.maximumPreciseValue.get=function(){return 9007199254740992},Object.defineProperties(fe,de);var ge=function t(e){this._name=e||null,t.nameToTypeMap.put(e,this)},ye={serialVersionUID:{configurable:!0},nameToTypeMap:{configurable:!0}};ge.prototype.readResolve=function(){return ge.nameToTypeMap.get(this._name)},ge.prototype.toString=function(){return this._name},ge.prototype.interfaces_=function(){return[e]},ge.prototype.getClass=function(){return ge},ye.serialVersionUID.get=function(){return-552860263173159e4},ye.nameToTypeMap.get=function(){return new pe},Object.defineProperties(ge,ye),fe.Type=ge,fe.FIXED=new ge("FIXED"),fe.FLOATING=new ge("FLOATING"),fe.FLOATING_SINGLE=new ge("FLOATING SINGLE");var ve=function t(){this._precisionModel=new fe,this._SRID=0,this._coordinateSequenceFactory=t.getDefaultCoordinateSequenceFactory(),0===arguments.length||(1===arguments.length?T(arguments[0],C)?this._coordinateSequenceFactory=arguments[0]:arguments[0]instanceof fe&&(this._precisionModel=arguments[0]):2===arguments.length?(this._precisionModel=arguments[0],this._SRID=arguments[1]):3===arguments.length&&(this._precisionModel=arguments[0],this._SRID=arguments[1],this._coordinateSequenceFactory=arguments[2]))},me={serialVersionUID:{configurable:!0}};ve.prototype.toGeometry=function(t){return t.isNull()?this.createPoint(null):t.getMinX()===t.getMaxX()&&t.getMinY()===t.getMaxY()?this.createPoint(new P(t.getMinX(),t.getMinY())):t.getMinX()===t.getMaxX()||t.getMinY()===t.getMaxY()?this.createLineString([new P(t.getMinX(),t.getMinY()),new P(t.getMaxX(),t.getMaxY())]):this.createPolygon(this.createLinearRing([new P(t.getMinX(),t.getMinY()),new P(t.getMinX(),t.getMaxY()),new P(t.getMaxX(),t.getMaxY()),new P(t.getMaxX(),t.getMinY()),new P(t.getMinX(),t.getMinY())]),null)},ve.prototype.createLineString=function(t){return t?t instanceof Array?new Jt(this.getCoordinateSequenceFactory().create(t),this):T(t,B)?new Jt(t,this):void 0:new Jt(this.getCoordinateSequenceFactory().create([]),this)},ve.prototype.createMultiLineString=function(){return 0===arguments.length?new Gt(null,this):1===arguments.length?new Gt(arguments[0],this):void 0},ve.prototype.buildGeometry=function(t){for(var e=null,n=!1,r=!1,i=t.iterator();i.hasNext();){var o=i.next(),s=o.getClass();null===e&&(e=s),s!==e&&(n=!0),o.isGeometryCollectionOrDerived()&&(r=!0)}if(null===e)return this.createGeometryCollection();if(n||r)return this.createGeometryCollection(ve.toGeometryArray(t));var a=t.iterator().next();if(t.size()>1){if(a instanceof Kt)return this.createMultiPolygon(ve.toPolygonArray(t));if(a instanceof Jt)return this.createMultiLineString(ve.toLineStringArray(t));if(a instanceof Zt)return this.createMultiPoint(ve.toPointArray(t));et.shouldNeverReachHere("Unhandled class: "+a.getClass().getName())}return a},ve.prototype.createMultiPointFromCoords=function(t){return this.createMultiPoint(null!==t?this.getCoordinateSequenceFactory().create(t):null)},ve.prototype.createPoint=function(){if(0===arguments.length)return this.createPoint(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof P){var t=arguments[0];return this.createPoint(null!==t?this.getCoordinateSequenceFactory().create([t]):null)}if(T(arguments[0],B))return new Zt(arguments[0],this)}},ve.prototype.getCoordinateSequenceFactory=function(){return this._coordinateSequenceFactory},ve.prototype.createPolygon=function(){if(0===arguments.length)return new Kt(null,null,this);if(1===arguments.length){if(T(arguments[0],B)){var t=arguments[0];return this.createPolygon(this.createLinearRing(t))}if(arguments[0]instanceof Array){var e=arguments[0];return this.createPolygon(this.createLinearRing(e))}if(arguments[0]instanceof ee){var n=arguments[0];return this.createPolygon(n,null)}}else if(2===arguments.length)return new Kt(arguments[0],arguments[1],this)},ve.prototype.getSRID=function(){return this._SRID},ve.prototype.createGeometryCollection=function(){return 0===arguments.length?new Ut(null,this):1===arguments.length?new Ut(arguments[0],this):void 0},ve.prototype.createGeometry=function(t){return new re(this).edit(t,{edit:function(){if(2===arguments.length){var t=arguments[0];return this._coordinateSequenceFactory.create(t)}}})},ve.prototype.getPrecisionModel=function(){return this._precisionModel},ve.prototype.createLinearRing=function(){if(0===arguments.length)return this.createLinearRing(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof Array){var t=arguments[0];return this.createLinearRing(null!==t?this.getCoordinateSequenceFactory().create(t):null)}if(T(arguments[0],B))return new ee(arguments[0],this)}},ve.prototype.createMultiPolygon=function(){return 0===arguments.length?new ne(null,this):1===arguments.length?new ne(arguments[0],this):void 0},ve.prototype.createMultiPoint=function(){if(0===arguments.length)return new te(null,this);if(1===arguments.length){if(arguments[0]instanceof Array)return new te(arguments[0],this);if(arguments[0]instanceof Array){var t=arguments[0];return this.createMultiPoint(null!==t?this.getCoordinateSequenceFactory().create(t):null)}if(T(arguments[0],B)){var e=arguments[0];if(null===e)return this.createMultiPoint(new Array(0).fill(null));for(var n=new Array(e.size()).fill(null),r=0;r<e.size();r++){var i=this.getCoordinateSequenceFactory().create(1,e.getDimension());Yt.copy(e,r,i,0,1),n[r]=this.createPoint(i)}return this.createMultiPoint(n)}}},ve.prototype.interfaces_=function(){return[e]},ve.prototype.getClass=function(){return ve},ve.toMultiPolygonArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},ve.toGeometryArray=function(t){if(null===t)return null;var e=new Array(t.size()).fill(null);return t.toArray(e)},ve.getDefaultCoordinateSequenceFactory=function(){return le.instance()},ve.toMultiLineStringArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},ve.toLineStringArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},ve.toMultiPointArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},ve.toLinearRingArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},ve.toPointArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},ve.toPolygonArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},ve.createPointFromInternalCoord=function(t,e){return e.getPrecisionModel().makePrecise(t),e.getFactory().createPoint(t)},me.serialVersionUID.get=function(){return-0x5ea75f2051eeb400},Object.defineProperties(ve,me);var _e=["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"],be=function(t){this.geometryFactory=t||new ve};be.prototype.read=function(t){var e,n=(e="string"==typeof t?JSON.parse(t):t).type;if(!we[n])throw new Error("Unknown GeoJSON type: "+e.type);return-1!==_e.indexOf(n)?we[n].apply(this,[e.coordinates]):"GeometryCollection"===n?we[n].apply(this,[e.geometries]):we[n].apply(this,[e])},be.prototype.write=function(t){var e=t.getGeometryType();if(!Ee[e])throw new Error("Geometry is not supported");return Ee[e].apply(this,[t])};var we={Feature:function(t){var e={};for(var n in t)e[n]=t[n];if(t.geometry){var r=t.geometry.type;if(!we[r])throw new Error("Unknown GeoJSON type: "+t.type);e.geometry=this.read(t.geometry)}return t.bbox&&(e.bbox=we.bbox.apply(this,[t.bbox])),e},FeatureCollection:function(t){var e={};if(t.features){e.features=[];for(var n=0;n<t.features.length;++n)e.features.push(this.read(t.features[n]))}return t.bbox&&(e.bbox=this.parse.bbox.apply(this,[t.bbox])),e},coordinates:function(t){for(var e=[],n=0;n<t.length;++n){var r=t[n];e.push(new P(r[0],r[1]))}return e},bbox:function(t){return this.geometryFactory.createLinearRing([new P(t[0],t[1]),new P(t[2],t[1]),new P(t[2],t[3]),new P(t[0],t[3]),new P(t[0],t[1])])},Point:function(t){var e=new P(t[0],t[1]);return this.geometryFactory.createPoint(e)},MultiPoint:function(t){for(var e=[],n=0;n<t.length;++n)e.push(we.Point.apply(this,[t[n]]));return this.geometryFactory.createMultiPoint(e)},LineString:function(t){var e=we.coordinates.apply(this,[t]);return this.geometryFactory.createLineString(e)},MultiLineString:function(t){for(var e=[],n=0;n<t.length;++n)e.push(we.LineString.apply(this,[t[n]]));return this.geometryFactory.createMultiLineString(e)},Polygon:function(t){for(var e=we.coordinates.apply(this,[t[0]]),n=this.geometryFactory.createLinearRing(e),r=[],i=1;i<t.length;++i){var o=t[i],s=we.coordinates.apply(this,[o]),a=this.geometryFactory.createLinearRing(s);r.push(a)}return this.geometryFactory.createPolygon(n,r)},MultiPolygon:function(t){for(var e=[],n=0;n<t.length;++n){var r=t[n];e.push(we.Polygon.apply(this,[r]))}return this.geometryFactory.createMultiPolygon(e)},GeometryCollection:function(t){for(var e=[],n=0;n<t.length;++n){var r=t[n];e.push(this.read(r))}return this.geometryFactory.createGeometryCollection(e)}},Ee={coordinate:function(t){return[t.x,t.y]},Point:function(t){return{type:"Point",coordinates:Ee.coordinate.apply(this,[t.getCoordinate()])}},MultiPoint:function(t){for(var e=[],n=0;n<t._geometries.length;++n){var r=t._geometries[n],i=Ee.Point.apply(this,[r]);e.push(i.coordinates)}return{type:"MultiPoint",coordinates:e}},LineString:function(t){for(var e=[],n=t.getCoordinates(),r=0;r<n.length;++r){var i=n[r];e.push(Ee.coordinate.apply(this,[i]))}return{type:"LineString",coordinates:e}},MultiLineString:function(t){for(var e=[],n=0;n<t._geometries.length;++n){var r=t._geometries[n],i=Ee.LineString.apply(this,[r]);e.push(i.coordinates)}return{type:"MultiLineString",coordinates:e}},Polygon:function(t){var e=[],n=Ee.LineString.apply(this,[t._shell]);e.push(n.coordinates);for(var r=0;r<t._holes.length;++r){var i=t._holes[r],o=Ee.LineString.apply(this,[i]);e.push(o.coordinates)}return{type:"Polygon",coordinates:e}},MultiPolygon:function(t){for(var e=[],n=0;n<t._geometries.length;++n){var r=t._geometries[n],i=Ee.Polygon.apply(this,[r]);e.push(i.coordinates)}return{type:"MultiPolygon",coordinates:e}},GeometryCollection:function(t){for(var e=[],n=0;n<t._geometries.length;++n){var r=t._geometries[n],i=r.getGeometryType();e.push(Ee[i].apply(this,[r]))}return{type:"GeometryCollection",geometries:e}}},xe=function(t){this.geometryFactory=t||new ve,this.precisionModel=this.geometryFactory.getPrecisionModel(),this.parser=new be(this.geometryFactory)};xe.prototype.read=function(t){var e=this.parser.read(t);return this.precisionModel.getType()===fe.FIXED&&this.reducePrecision(e),e},xe.prototype.reducePrecision=function(t){var e,n;if(t.coordinate)this.precisionModel.makePrecise(t.coordinate);else if(t.points)for(e=0,n=t.points.length;e<n;e++)this.precisionModel.makePrecise(t.points[e]);else if(t.geometries)for(e=0,n=t.geometries.length;e<n;e++)this.reducePrecision(t.geometries[e])};var Pe=function(){this.parser=new be(this.geometryFactory)};Pe.prototype.write=function(t){return this.parser.write(t)};var Se=function(){},Oe={ON:{configurable:!0},LEFT:{configurable:!0},RIGHT:{configurable:!0}};Se.prototype.interfaces_=function(){return[]},Se.prototype.getClass=function(){return Se},Se.opposite=function(t){return t===Se.LEFT?Se.RIGHT:t===Se.RIGHT?Se.LEFT:t},Oe.ON.get=function(){return 0},Oe.LEFT.get=function(){return 1},Oe.RIGHT.get=function(){return 2},Object.defineProperties(Se,Oe),(g.prototype=new Error).name="EmptyStackException",(y.prototype=new Et).add=function(t){return this.array_.push(t),!0},y.prototype.get=function(t){if(t<0||t>=this.size())throw new Error;return this.array_[t]},y.prototype.push=function(t){return this.array_.push(t),t},y.prototype.pop=function(t){if(0===this.array_.length)throw new g;return this.array_.pop()},y.prototype.peek=function(){if(0===this.array_.length)throw new g;return this.array_[this.array_.length-1]},y.prototype.empty=function(){return 0===this.array_.length},y.prototype.isEmpty=function(){return this.empty()},y.prototype.search=function(t){return this.array_.indexOf(t)},y.prototype.size=function(){return this.array_.length},y.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e<n;e++)t.push(this.array_[e]);return t};var Ce=function(){this._minIndex=-1,this._minCoord=null,this._minDe=null,this._orientedDe=null};Ce.prototype.getCoordinate=function(){return this._minCoord},Ce.prototype.getRightmostSide=function(t,e){var n=this.getRightmostSideOfSegment(t,e);return n<0&&(n=this.getRightmostSideOfSegment(t,e-1)),n<0&&(this._minCoord=null,this.checkForRightmostCoordinate(t)),n},Ce.prototype.findRightmostEdgeAtVertex=function(){var t=this._minDe.getEdge().getCoordinates();et.isTrue(this._minIndex>0&&this._minIndex<t.length,"rightmost point expected to be interior vertex of edge");var e=t[this._minIndex-1],n=t[this._minIndex+1],r=at.computeOrientation(this._minCoord,n,e),i=!1;(e.y<this._minCoord.y&&n.y<this._minCoord.y&&r===at.COUNTERCLOCKWISE||e.y>this._minCoord.y&&n.y>this._minCoord.y&&r===at.CLOCKWISE)&&(i=!0),i&&(this._minIndex=this._minIndex-1)},Ce.prototype.getRightmostSideOfSegment=function(t,e){var n=t.getEdge().getCoordinates();if(e<0||e+1>=n.length)return-1;if(n[e].y===n[e+1].y)return-1;var r=Se.LEFT;return n[e].y<n[e+1].y&&(r=Se.RIGHT),r},Ce.prototype.getEdge=function(){return this._orientedDe},Ce.prototype.checkForRightmostCoordinate=function(t){for(var e=t.getEdge().getCoordinates(),n=0;n<e.length-1;n++)(null===this._minCoord||e[n].x>this._minCoord.x)&&(this._minDe=t,this._minIndex=n,this._minCoord=e[n])},Ce.prototype.findRightmostEdgeAtNode=function(){var t=this._minDe.getNode().getEdges();this._minDe=t.getRightmostEdge(),this._minDe.isForward()||(this._minDe=this._minDe.getSym(),this._minIndex=this._minDe.getEdge().getCoordinates().length-1)},Ce.prototype.findEdge=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();n.isForward()&&this.checkForRightmostCoordinate(n)}et.isTrue(0!==this._minIndex||this._minCoord.equals(this._minDe.getCoordinate()),"inconsistency in rightmost processing"),0===this._minIndex?this.findRightmostEdgeAtNode():this.findRightmostEdgeAtVertex(),this._orientedDe=this._minDe,this.getRightmostSide(this._minDe,this._minIndex)===Se.LEFT&&(this._orientedDe=this._minDe.getSym())},Ce.prototype.interfaces_=function(){return[]},Ce.prototype.getClass=function(){return Ce};var Me=function(t){function e(n,r){t.call(this,e.msgWithCoord(n,r)),this.pt=r?new P(r):null,this.name="TopologyException"}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getCoordinate=function(){return this.pt},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.msgWithCoord=function(t,e){return e?t:t+" [ "+e+" ]"},e}(K),Ie=function(){this.array_=[]};Ie.prototype.addLast=function(t){this.array_.push(t)},Ie.prototype.removeFirst=function(){return this.array_.shift()},Ie.prototype.isEmpty=function(){return 0===this.array_.length};var Te=function(){this._finder=null,this._dirEdgeList=new xt,this._nodes=new xt,this._rightMostCoord=null,this._env=null,this._finder=new Ce};Te.prototype.clearVisitedEdges=function(){for(var t=this._dirEdgeList.iterator();t.hasNext();)t.next().setVisited(!1)},Te.prototype.getRightmostCoordinate=function(){return this._rightMostCoord},Te.prototype.computeNodeDepth=function(t){for(var e=null,n=t.getEdges().iterator();n.hasNext();){var r=n.next();if(r.isVisited()||r.getSym().isVisited()){e=r;break}}if(null===e)throw new Me("unable to find edge to compute depths at "+t.getCoordinate());t.getEdges().computeDepths(e);for(var i=t.getEdges().iterator();i.hasNext();){var o=i.next();o.setVisited(!0),this.copySymDepths(o)}},Te.prototype.computeDepth=function(t){this.clearVisitedEdges();var e=this._finder.getEdge();e.setEdgeDepths(Se.RIGHT,t),this.copySymDepths(e),this.computeDepths(e)},Te.prototype.create=function(t){this.addReachable(t),this._finder.findEdge(this._dirEdgeList),this._rightMostCoord=this._finder.getCoordinate()},Te.prototype.findResultEdges=function(){for(var t=this._dirEdgeList.iterator();t.hasNext();){var e=t.next();e.getDepth(Se.RIGHT)>=1&&e.getDepth(Se.LEFT)<=0&&!e.isInteriorAreaEdge()&&e.setInResult(!0)}},Te.prototype.computeDepths=function(t){var e=new Nt,n=new Ie,r=t.getNode();for(n.addLast(r),e.add(r),t.setVisited(!0);!n.isEmpty();){var i=n.removeFirst();e.add(i),this.computeNodeDepth(i);for(var o=i.getEdges().iterator();o.hasNext();){var s=o.next().getSym();if(!s.isVisited()){var a=s.getNode();e.contains(a)||(n.addLast(a),e.add(a))}}}},Te.prototype.compareTo=function(t){var e=t;return this._rightMostCoord.x<e._rightMostCoord.x?-1:this._rightMostCoord.x>e._rightMostCoord.x?1:0},Te.prototype.getEnvelope=function(){if(null===this._env){for(var t=new X,e=this._dirEdgeList.iterator();e.hasNext();)for(var n=e.next().getEdge().getCoordinates(),r=0;r<n.length-1;r++)t.expandToInclude(n[r]);this._env=t}return this._env},Te.prototype.addReachable=function(t){var e=new y;for(e.add(t);!e.empty();){var n=e.pop();this.add(n,e)}},Te.prototype.copySymDepths=function(t){var e=t.getSym();e.setDepth(Se.LEFT,t.getDepth(Se.RIGHT)),e.setDepth(Se.RIGHT,t.getDepth(Se.LEFT))},Te.prototype.add=function(t,e){t.setVisited(!0),this._nodes.add(t);for(var n=t.getEdges().iterator();n.hasNext();){var r=n.next();this._dirEdgeList.add(r);var i=r.getSym().getNode();i.isVisited()||e.push(i)}},Te.prototype.getNodes=function(){return this._nodes},Te.prototype.getDirectedEdges=function(){return this._dirEdgeList},Te.prototype.interfaces_=function(){return[w]},Te.prototype.getClass=function(){return Te};var je=function t(){if(this.location=null,1===arguments.length){if(arguments[0]instanceof Array){var e=arguments[0];this.init(e.length)}else if(Number.isInteger(arguments[0])){var n=arguments[0];this.init(1),this.location[Se.ON]=n}else if(arguments[0]instanceof t){var r=arguments[0];if(this.init(r.location.length),null!==r)for(var i=0;i<this.location.length;i++)this.location[i]=r.location[i]}}else if(3===arguments.length){var o=arguments[0],s=arguments[1],a=arguments[2];this.init(3),this.location[Se.ON]=o,this.location[Se.LEFT]=s,this.location[Se.RIGHT]=a}};je.prototype.setAllLocations=function(t){for(var e=0;e<this.location.length;e++)this.location[e]=t},je.prototype.isNull=function(){for(var t=0;t<this.location.length;t++)if(this.location[t]!==M.NONE)return!1;return!0},je.prototype.setAllLocationsIfNull=function(t){for(var e=0;e<this.location.length;e++)this.location[e]===M.NONE&&(this.location[e]=t)},je.prototype.isLine=function(){return 1===this.location.length},je.prototype.merge=function(t){if(t.location.length>this.location.length){var e=new Array(3).fill(null);e[Se.ON]=this.location[Se.ON],e[Se.LEFT]=M.NONE,e[Se.RIGHT]=M.NONE,this.location=e}for(var n=0;n<this.location.length;n++)this.location[n]===M.NONE&&n<t.location.length&&(this.location[n]=t.location[n])},je.prototype.getLocations=function(){return this.location},je.prototype.flip=function(){if(this.location.length<=1)return null;var t=this.location[Se.LEFT];this.location[Se.LEFT]=this.location[Se.RIGHT],this.location[Se.RIGHT]=t},je.prototype.toString=function(){var t=new D;return this.location.length>1&&t.append(M.toLocationSymbol(this.location[Se.LEFT])),t.append(M.toLocationSymbol(this.location[Se.ON])),this.location.length>1&&t.append(M.toLocationSymbol(this.location[Se.RIGHT])),t.toString()},je.prototype.setLocations=function(t,e,n){this.location[Se.ON]=t,this.location[Se.LEFT]=e,this.location[Se.RIGHT]=n},je.prototype.get=function(t){return t<this.location.length?this.location[t]:M.NONE},je.prototype.isArea=function(){return this.location.length>1},je.prototype.isAnyNull=function(){for(var t=0;t<this.location.length;t++)if(this.location[t]===M.NONE)return!0;return!1},je.prototype.setLocation=function(){if(1===arguments.length){var t=arguments[0];this.setLocation(Se.ON,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.location[e]=n}},je.prototype.init=function(t){this.location=new Array(t).fill(null),this.setAllLocations(M.NONE)},je.prototype.isEqualOnSide=function(t,e){return this.location[e]===t.location[e]},je.prototype.allPositionsEqual=function(t){for(var e=0;e<this.location.length;e++)if(this.location[e]!==t)return!1;return!0},je.prototype.interfaces_=function(){return[]},je.prototype.getClass=function(){return je};var Ne=function t(){if(this.elt=new Array(2).fill(null),1===arguments.length){if(Number.isInteger(arguments[0])){var e=arguments[0];this.elt[0]=new je(e),this.elt[1]=new je(e)}else if(arguments[0]instanceof t){var n=arguments[0];this.elt[0]=new je(n.elt[0]),this.elt[1]=new je(n.elt[1])}}else if(2===arguments.length){var r=arguments[0],i=arguments[1];this.elt[0]=new je(M.NONE),this.elt[1]=new je(M.NONE),this.elt[r].setLocation(i)}else if(3===arguments.length){var o=arguments[0],s=arguments[1],a=arguments[2];this.elt[0]=new je(o,s,a),this.elt[1]=new je(o,s,a)}else if(4===arguments.length){var u=arguments[0],c=arguments[1],l=arguments[2],h=arguments[3];this.elt[0]=new je(M.NONE,M.NONE,M.NONE),this.elt[1]=new je(M.NONE,M.NONE,M.NONE),this.elt[u].setLocations(c,l,h)}};Ne.prototype.getGeometryCount=function(){var t=0;return this.elt[0].isNull()||t++,this.elt[1].isNull()||t++,t},Ne.prototype.setAllLocations=function(t,e){this.elt[t].setAllLocations(e)},Ne.prototype.isNull=function(t){return this.elt[t].isNull()},Ne.prototype.setAllLocationsIfNull=function(){if(1===arguments.length){var t=arguments[0];this.setAllLocationsIfNull(0,t),this.setAllLocationsIfNull(1,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.elt[e].setAllLocationsIfNull(n)}},Ne.prototype.isLine=function(t){return this.elt[t].isLine()},Ne.prototype.merge=function(t){for(var e=0;e<2;e++)null===this.elt[e]&&null!==t.elt[e]?this.elt[e]=new je(t.elt[e]):this.elt[e].merge(t.elt[e])},Ne.prototype.flip=function(){this.elt[0].flip(),this.elt[1].flip()},Ne.prototype.getLocation=function(){if(1===arguments.length){var t=arguments[0];return this.elt[t].get(Se.ON)}if(2===arguments.length){var e=arguments[0],n=arguments[1];return this.elt[e].get(n)}},Ne.prototype.toString=function(){var t=new D;return null!==this.elt[0]&&(t.append("A:"),t.append(this.elt[0].toString())),null!==this.elt[1]&&(t.append(" B:"),t.append(this.elt[1].toString())),t.toString()},Ne.prototype.isArea=function(){if(0===arguments.length)return this.elt[0].isArea()||this.elt[1].isArea();if(1===arguments.length){var t=arguments[0];return this.elt[t].isArea()}},Ne.prototype.isAnyNull=function(t){return this.elt[t].isAnyNull()},Ne.prototype.setLocation=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];this.elt[t].setLocation(Se.ON,e)}else if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];this.elt[n].setLocation(r,i)}},Ne.prototype.isEqualOnSide=function(t,e){return this.elt[0].isEqualOnSide(t.elt[0],e)&&this.elt[1].isEqualOnSide(t.elt[1],e)},Ne.prototype.allPositionsEqual=function(t,e){return this.elt[t].allPositionsEqual(e)},Ne.prototype.toLine=function(t){this.elt[t].isArea()&&(this.elt[t]=new je(this.elt[t].location[0]))},Ne.prototype.interfaces_=function(){return[]},Ne.prototype.getClass=function(){return Ne},Ne.toLineLabel=function(t){for(var e=new Ne(M.NONE),n=0;n<2;n++)e.setLocation(n,t.getLocation(n));return e};var De=function(){this._startDe=null,this._maxNodeDegree=-1,this._edges=new xt,this._pts=new xt,this._label=new Ne(M.NONE),this._ring=null,this._isHole=null,this._shell=null,this._holes=new xt,this._geometryFactory=null;var t=arguments[0],e=arguments[1];this._geometryFactory=e,this.computePoints(t),this.computeRing()};De.prototype.computeRing=function(){if(null!==this._ring)return null;for(var t=new Array(this._pts.size()).fill(null),e=0;e<this._pts.size();e++)t[e]=this._pts.get(e);this._ring=this._geometryFactory.createLinearRing(t),this._isHole=at.isCCW(this._ring.getCoordinates())},De.prototype.isIsolated=function(){return 1===this._label.getGeometryCount()},De.prototype.computePoints=function(t){this._startDe=t;var e=t,n=!0;do{if(null===e)throw new Me("Found null DirectedEdge");if(e.getEdgeRing()===this)throw new Me("Directed Edge visited twice during ring-building at "+e.getCoordinate());this._edges.add(e);var r=e.getLabel();et.isTrue(r.isArea()),this.mergeLabel(r),this.addPoints(e.getEdge(),e.isForward(),n),n=!1,this.setEdgeRing(e,this),e=this.getNext(e)}while(e!==this._startDe)},De.prototype.getLinearRing=function(){return this._ring},De.prototype.getCoordinate=function(t){return this._pts.get(t)},De.prototype.computeMaxNodeDegree=function(){this._maxNodeDegree=0;var t=this._startDe;do{var e=t.getNode().getEdges().getOutgoingDegree(this);e>this._maxNodeDegree&&(this._maxNodeDegree=e),t=this.getNext(t)}while(t!==this._startDe);this._maxNodeDegree*=2},De.prototype.addPoints=function(t,e,n){var r=t.getCoordinates();if(e){var i=1;n&&(i=0);for(var o=i;o<r.length;o++)this._pts.add(r[o])}else{var s=r.length-2;n&&(s=r.length-1);for(var a=s;a>=0;a--)this._pts.add(r[a])}},De.prototype.isHole=function(){return this._isHole},De.prototype.setInResult=function(){var t=this._startDe;do{t.getEdge().setInResult(!0),t=t.getNext()}while(t!==this._startDe)},De.prototype.containsPoint=function(t){var e=this.getLinearRing();if(!e.getEnvelopeInternal().contains(t))return!1;if(!at.isPointInRing(t,e.getCoordinates()))return!1;for(var n=this._holes.iterator();n.hasNext();)if(n.next().containsPoint(t))return!1;return!0},De.prototype.addHole=function(t){this._holes.add(t)},De.prototype.isShell=function(){return null===this._shell},De.prototype.getLabel=function(){return this._label},De.prototype.getEdges=function(){return this._edges},De.prototype.getMaxNodeDegree=function(){return this._maxNodeDegree<0&&this.computeMaxNodeDegree(),this._maxNodeDegree},De.prototype.getShell=function(){return this._shell},De.prototype.mergeLabel=function(){if(1===arguments.length){var t=arguments[0];this.mergeLabel(t,0),this.mergeLabel(t,1)}else if(2===arguments.length){var e=arguments[1],n=arguments[0].getLocation(e,Se.RIGHT);if(n===M.NONE)return null;if(this._label.getLocation(e)===M.NONE)return this._label.setLocation(e,n),null}},De.prototype.setShell=function(t){this._shell=t,null!==t&&t.addHole(this)},De.prototype.toPolygon=function(t){for(var e=new Array(this._holes.size()).fill(null),n=0;n<this._holes.size();n++)e[n]=this._holes.get(n).getLinearRing();return t.createPolygon(this.getLinearRing(),e)},De.prototype.interfaces_=function(){return[]},De.prototype.getClass=function(){return De};var Ae=function(t){function e(){var e=arguments[0],n=arguments[1];t.call(this,e,n)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setEdgeRing=function(t,e){t.setMinEdgeRing(e)},e.prototype.getNext=function(t){return t.getNextMin()},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(De),Re=function(t){function e(){var e=arguments[0],n=arguments[1];t.call(this,e,n)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.buildMinimalRings=function(){var t=new xt,e=this._startDe;do{if(null===e.getMinEdgeRing()){var n=new Ae(e,this._geometryFactory);t.add(n)}e=e.getNext()}while(e!==this._startDe);return t},e.prototype.setEdgeRing=function(t,e){t.setEdgeRing(e)},e.prototype.linkDirectedEdgesForMinimalEdgeRings=function(){var t=this._startDe;do{t.getNode().getEdges().linkMinimalDirectedEdges(this),t=t.getNext()}while(t!==this._startDe)},e.prototype.getNext=function(t){return t.getNext()},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(De),Fe=function(){if(this._label=null,this._isInResult=!1,this._isCovered=!1,this._isCoveredSet=!1,this._isVisited=!1,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this._label=t}};Fe.prototype.setVisited=function(t){this._isVisited=t},Fe.prototype.setInResult=function(t){this._isInResult=t},Fe.prototype.isCovered=function(){return this._isCovered},Fe.prototype.isCoveredSet=function(){return this._isCoveredSet},Fe.prototype.setLabel=function(t){this._label=t},Fe.prototype.getLabel=function(){return this._label},Fe.prototype.setCovered=function(t){this._isCovered=t,this._isCoveredSet=!0},Fe.prototype.updateIM=function(t){et.isTrue(this._label.getGeometryCount()>=2,"found partial label"),this.computeIM(t)},Fe.prototype.isInResult=function(){return this._isInResult},Fe.prototype.isVisited=function(){return this._isVisited},Fe.prototype.interfaces_=function(){return[]},Fe.prototype.getClass=function(){return Fe};var Le=function(t){function e(){t.call(this),this._coord=null,this._edges=null;var e=arguments[0],n=arguments[1];this._coord=e,this._edges=n,this._label=new Ne(0,M.NONE)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isIncidentEdgeInResult=function(){for(var t=this.getEdges().getEdges().iterator();t.hasNext();)if(t.next().getEdge().isInResult())return!0;return!1},e.prototype.isIsolated=function(){return 1===this._label.getGeometryCount()},e.prototype.getCoordinate=function(){return this._coord},e.prototype.print=function(t){t.println("node "+this._coord+" lbl: "+this._label)},e.prototype.computeIM=function(t){},e.prototype.computeMergedLocation=function(t,e){var n=M.NONE;if(n=this._label.getLocation(e),!t.isNull(e)){var r=t.getLocation(e);n!==M.BOUNDARY&&(n=r)}return n},e.prototype.setLabel=function(){if(2!==arguments.length)return t.prototype.setLabel.apply(this,arguments);var e=arguments[0],n=arguments[1];null===this._label?this._label=new Ne(e,n):this._label.setLocation(e,n)},e.prototype.getEdges=function(){return this._edges},e.prototype.mergeLabel=function(){if(arguments[0]instanceof e){var t=arguments[0];this.mergeLabel(t._label)}else if(arguments[0]instanceof Ne)for(var n=arguments[0],r=0;r<2;r++){var i=this.computeMergedLocation(n,r);this._label.getLocation(r)===M.NONE&&this._label.setLocation(r,i)}},e.prototype.add=function(t){this._edges.insert(t),t.setNode(this)},e.prototype.setLabelBoundary=function(t){if(null===this._label)return null;var e=M.NONE;null!==this._label&&(e=this._label.getLocation(t));var n=null;if(e===M.BOUNDARY)n=M.INTERIOR;else n=M.BOUNDARY;this._label.setLocation(t,n)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Fe),ke=function(){this.nodeMap=new h,this.nodeFact=null;var t=arguments[0];this.nodeFact=t};ke.prototype.find=function(t){return this.nodeMap.get(t)},ke.prototype.addNode=function(){if(arguments[0]instanceof P){var t=arguments[0],e=this.nodeMap.get(t);return null===e&&(e=this.nodeFact.createNode(t),this.nodeMap.put(t,e)),e}if(arguments[0]instanceof Le){var n=arguments[0],r=this.nodeMap.get(n.getCoordinate());return null===r?(this.nodeMap.put(n.getCoordinate(),n),n):(r.mergeLabel(n),r)}},ke.prototype.print=function(t){for(var e=this.iterator();e.hasNext();)e.next().print(t)},ke.prototype.iterator=function(){return this.nodeMap.values().iterator()},ke.prototype.values=function(){return this.nodeMap.values()},ke.prototype.getBoundaryNodes=function(t){for(var e=new xt,n=this.iterator();n.hasNext();){var r=n.next();r.getLabel().getLocation(t)===M.BOUNDARY&&e.add(r)}return e},ke.prototype.add=function(t){var e=t.getCoordinate();this.addNode(e).add(t)},ke.prototype.interfaces_=function(){return[]},ke.prototype.getClass=function(){return ke};var Ve=function(){},Be={NE:{configurable:!0},NW:{configurable:!0},SW:{configurable:!0},SE:{configurable:!0}};Ve.prototype.interfaces_=function(){return[]},Ve.prototype.getClass=function(){return Ve},Ve.isNorthern=function(t){return t===Ve.NE||t===Ve.NW},Ve.isOpposite=function(t,e){return t!==e&&2==(t-e+4)%4},Ve.commonHalfPlane=function(t,e){if(t===e)return t;if(2==(t-e+4)%4)return-1;var n=t<e?t:e;return 0===n&&3===(t>e?t:e)?3:n},Ve.isInHalfPlane=function(t,e){return e===Ve.SE?t===Ve.SE||t===Ve.SW:t===e||t===e+1},Ve.quadrant=function(){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var t=arguments[0],e=arguments[1];if(0===t&&0===e)throw new m("Cannot compute the quadrant for point ( "+t+", "+e+" )");return t>=0?e>=0?Ve.NE:Ve.SE:e>=0?Ve.NW:Ve.SW}if(arguments[0]instanceof P&&arguments[1]instanceof P){var n=arguments[0],r=arguments[1];if(r.x===n.x&&r.y===n.y)throw new m("Cannot compute the quadrant for two identical points "+n);return r.x>=n.x?r.y>=n.y?Ve.NE:Ve.SE:r.y>=n.y?Ve.NW:Ve.SW}},Be.NE.get=function(){return 0},Be.NW.get=function(){return 1},Be.SW.get=function(){return 2},Be.SE.get=function(){return 3},Object.defineProperties(Ve,Be);var ze=function(){if(this._edge=null,this._label=null,this._node=null,this._p0=null,this._p1=null,this._dx=null,this._dy=null,this._quadrant=null,1===arguments.length){var t=arguments[0];this._edge=t}else if(3===arguments.length){var e=arguments[0],n=arguments[1],r=arguments[2];this._edge=e,this.init(n,r),this._label=null}else if(4===arguments.length){var i=arguments[0],o=arguments[1],s=arguments[2],a=arguments[3];this._edge=i,this.init(o,s),this._label=a}};ze.prototype.compareDirection=function(t){return this._dx===t._dx&&this._dy===t._dy?0:this._quadrant>t._quadrant?1:this._quadrant<t._quadrant?-1:at.computeOrientation(t._p0,t._p1,this._p1)},ze.prototype.getDy=function(){return this._dy},ze.prototype.getCoordinate=function(){return this._p0},ze.prototype.setNode=function(t){this._node=t},ze.prototype.print=function(t){var e=Math.atan2(this._dy,this._dx),n=this.getClass().getName(),r=n.lastIndexOf("."),i=n.substring(r+1);t.print(" "+i+": "+this._p0+" - "+this._p1+" "+this._quadrant+":"+e+" "+this._label)},ze.prototype.compareTo=function(t){var e=t;return this.compareDirection(e)},ze.prototype.getDirectedCoordinate=function(){return this._p1},ze.prototype.getDx=function(){return this._dx},ze.prototype.getLabel=function(){return this._label},ze.prototype.getEdge=function(){return this._edge},ze.prototype.getQuadrant=function(){return this._quadrant},ze.prototype.getNode=function(){return this._node},ze.prototype.toString=function(){var t=Math.atan2(this._dy,this._dx),e=this.getClass().getName(),n=e.lastIndexOf(".");return" "+e.substring(n+1)+": "+this._p0+" - "+this._p1+" "+this._quadrant+":"+t+" "+this._label},ze.prototype.computeLabel=function(t){},ze.prototype.init=function(t,e){this._p0=t,this._p1=e,this._dx=e.x-t.x,this._dy=e.y-t.y,this._quadrant=Ve.quadrant(this._dx,this._dy),et.isTrue(!(0===this._dx&&0===this._dy),"EdgeEnd with identical endpoints found")},ze.prototype.interfaces_=function(){return[w]},ze.prototype.getClass=function(){return ze};var Ue=function(t){function e(){var e=arguments[0],n=arguments[1];if(t.call(this,e),this._isForward=null,this._isInResult=!1,this._isVisited=!1,this._sym=null,this._next=null,this._nextMin=null,this._edgeRing=null,this._minEdgeRing=null,this._depth=[0,-999,-999],this._isForward=n,n)this.init(e.getCoordinate(0),e.getCoordinate(1));else{var r=e.getNumPoints()-1;this.init(e.getCoordinate(r),e.getCoordinate(r-1))}this.computeDirectedLabel()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getNextMin=function(){return this._nextMin},e.prototype.getDepth=function(t){return this._depth[t]},e.prototype.setVisited=function(t){this._isVisited=t},e.prototype.computeDirectedLabel=function(){this._label=new Ne(this._edge.getLabel()),this._isForward||this._label.flip()},e.prototype.getNext=function(){return this._next},e.prototype.setDepth=function(t,e){if(-999!==this._depth[t]&&this._depth[t]!==e)throw new Me("assigned depths do not match",this.getCoordinate());this._depth[t]=e},e.prototype.isInteriorAreaEdge=function(){for(var t=!0,e=0;e<2;e++)this._label.isArea(e)&&this._label.getLocation(e,Se.LEFT)===M.INTERIOR&&this._label.getLocation(e,Se.RIGHT)===M.INTERIOR||(t=!1);return t},e.prototype.setNextMin=function(t){this._nextMin=t},e.prototype.print=function(e){t.prototype.print.call(this,e),e.print(" "+this._depth[Se.LEFT]+"/"+this._depth[Se.RIGHT]),e.print(" ("+this.getDepthDelta()+")"),this._isInResult&&e.print(" inResult")},e.prototype.setMinEdgeRing=function(t){this._minEdgeRing=t},e.prototype.isLineEdge=function(){var t=this._label.isLine(0)||this._label.isLine(1),e=!this._label.isArea(0)||this._label.allPositionsEqual(0,M.EXTERIOR),n=!this._label.isArea(1)||this._label.allPositionsEqual(1,M.EXTERIOR);return t&&e&&n},e.prototype.setEdgeRing=function(t){this._edgeRing=t},e.prototype.getMinEdgeRing=function(){return this._minEdgeRing},e.prototype.getDepthDelta=function(){var t=this._edge.getDepthDelta();return this._isForward||(t=-t),t},e.prototype.setInResult=function(t){this._isInResult=t},e.prototype.getSym=function(){return this._sym},e.prototype.isForward=function(){return this._isForward},e.prototype.getEdge=function(){return this._edge},e.prototype.printEdge=function(t){this.print(t),t.print(" "),this._isForward?this._edge.print(t):this._edge.printReverse(t)},e.prototype.setSym=function(t){this._sym=t},e.prototype.setVisitedEdge=function(t){this.setVisited(t),this._sym.setVisited(t)},e.prototype.setEdgeDepths=function(t,e){var n=this.getEdge().getDepthDelta();this._isForward||(n=-n);var r=1;t===Se.LEFT&&(r=-1);var i=Se.opposite(t),o=e+n*r;this.setDepth(t,e),this.setDepth(i,o)},e.prototype.getEdgeRing=function(){return this._edgeRing},e.prototype.isInResult=function(){return this._isInResult},e.prototype.setNext=function(t){this._next=t},e.prototype.isVisited=function(){return this._isVisited},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.depthFactor=function(t,e){return t===M.EXTERIOR&&e===M.INTERIOR?1:t===M.INTERIOR&&e===M.EXTERIOR?-1:0},e}(ze),Ge=function(){};Ge.prototype.createNode=function(t){return new Le(t,null)},Ge.prototype.interfaces_=function(){return[]},Ge.prototype.getClass=function(){return Ge};var We=function(){if(this._edges=new xt,this._nodes=null,this._edgeEndList=new xt,0===arguments.length)this._nodes=new ke(new Ge);else if(1===arguments.length){var t=arguments[0];this._nodes=new ke(t)}};We.prototype.printEdges=function(t){t.println("Edges:");for(var e=0;e<this._edges.size();e++){t.println("edge "+e+":");var n=this._edges.get(e);n.print(t),n.eiList.print(t)}},We.prototype.find=function(t){return this._nodes.find(t)},We.prototype.addNode=function(){if(arguments[0]instanceof Le){var t=arguments[0];return this._nodes.addNode(t)}if(arguments[0]instanceof P){var e=arguments[0];return this._nodes.addNode(e)}},We.prototype.getNodeIterator=function(){return this._nodes.iterator()},We.prototype.linkResultDirectedEdges=function(){for(var t=this._nodes.iterator();t.hasNext();)t.next().getEdges().linkResultDirectedEdges()},We.prototype.debugPrintln=function(t){W.out.println(t)},We.prototype.isBoundaryNode=function(t,e){var n=this._nodes.find(e);if(null===n)return!1;var r=n.getLabel();return null!==r&&r.getLocation(t)===M.BOUNDARY},We.prototype.linkAllDirectedEdges=function(){for(var t=this._nodes.iterator();t.hasNext();)t.next().getEdges().linkAllDirectedEdges()},We.prototype.matchInSameDirection=function(t,e,n,r){return!!t.equals(n)&&at.computeOrientation(t,e,r)===at.COLLINEAR&&Ve.quadrant(t,e)===Ve.quadrant(n,r)},We.prototype.getEdgeEnds=function(){return this._edgeEndList},We.prototype.debugPrint=function(t){W.out.print(t)},We.prototype.getEdgeIterator=function(){return this._edges.iterator()},We.prototype.findEdgeInSameDirection=function(t,e){for(var n=0;n<this._edges.size();n++){var r=this._edges.get(n),i=r.getCoordinates();if(this.matchInSameDirection(t,e,i[0],i[1]))return r;if(this.matchInSameDirection(t,e,i[i.length-1],i[i.length-2]))return r}return null},We.prototype.insertEdge=function(t){this._edges.add(t)},We.prototype.findEdgeEnd=function(t){for(var e=this.getEdgeEnds().iterator();e.hasNext();){var n=e.next();if(n.getEdge()===t)return n}return null},We.prototype.addEdges=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();this._edges.add(n);var r=new Ue(n,!0),i=new Ue(n,!1);r.setSym(i),i.setSym(r),this.add(r),this.add(i)}},We.prototype.add=function(t){this._nodes.add(t),this._edgeEndList.add(t)},We.prototype.getNodes=function(){return this._nodes.values()},We.prototype.findEdge=function(t,e){for(var n=0;n<this._edges.size();n++){var r=this._edges.get(n),i=r.getCoordinates();if(t.equals(i[0])&&e.equals(i[1]))return r}return null},We.prototype.interfaces_=function(){return[]},We.prototype.getClass=function(){return We},We.linkResultDirectedEdges=function(t){for(var e=t.iterator();e.hasNext();)e.next().getEdges().linkResultDirectedEdges()};var qe=function(){this._geometryFactory=null,this._shellList=new xt;var t=arguments[0];this._geometryFactory=t};qe.prototype.sortShellsAndHoles=function(t,e,n){for(var r=t.iterator();r.hasNext();){var i=r.next();i.isHole()?n.add(i):e.add(i)}},qe.prototype.computePolygons=function(t){for(var e=new xt,n=t.iterator();n.hasNext();){var r=n.next().toPolygon(this._geometryFactory);e.add(r)}return e},qe.prototype.placeFreeHoles=function(t,e){for(var n=e.iterator();n.hasNext();){var r=n.next();if(null===r.getShell()){var i=this.findEdgeRingContaining(r,t);if(null===i)throw new Me("unable to assign hole to a shell",r.getCoordinate(0));r.setShell(i)}}},qe.prototype.buildMinimalEdgeRings=function(t,e,n){for(var r=new xt,i=t.iterator();i.hasNext();){var o=i.next();if(o.getMaxNodeDegree()>2){o.linkDirectedEdgesForMinimalEdgeRings();var s=o.buildMinimalRings(),a=this.findShell(s);null!==a?(this.placePolygonHoles(a,s),e.add(a)):n.addAll(s)}else r.add(o)}return r},qe.prototype.containsPoint=function(t){for(var e=this._shellList.iterator();e.hasNext();)if(e.next().containsPoint(t))return!0;return!1},qe.prototype.buildMaximalEdgeRings=function(t){for(var e=new xt,n=t.iterator();n.hasNext();){var r=n.next();if(r.isInResult()&&r.getLabel().isArea()&&null===r.getEdgeRing()){var i=new Re(r,this._geometryFactory);e.add(i),i.setInResult()}}return e},qe.prototype.placePolygonHoles=function(t,e){for(var n=e.iterator();n.hasNext();){var r=n.next();r.isHole()&&r.setShell(t)}},qe.prototype.getPolygons=function(){return this.computePolygons(this._shellList)},qe.prototype.findEdgeRingContaining=function(t,e){for(var n=t.getLinearRing(),r=n.getEnvelopeInternal(),i=n.getCoordinateN(0),o=null,s=null,a=e.iterator();a.hasNext();){var u=a.next(),c=u.getLinearRing(),l=c.getEnvelopeInternal();null!==o&&(s=o.getLinearRing().getEnvelopeInternal());var h=!1;l.contains(r)&&at.isPointInRing(i,c.getCoordinates())&&(h=!0),h&&(null===o||s.contains(l))&&(o=u)}return o},qe.prototype.findShell=function(t){for(var e=0,n=null,r=t.iterator();r.hasNext();){var i=r.next();i.isHole()||(n=i,e++)}return et.isTrue(e<=1,"found two shells in MinimalEdgeRing list"),n},qe.prototype.add=function(){if(1===arguments.length){var t=arguments[0];this.add(t.getEdgeEnds(),t.getNodes())}else if(2===arguments.length){var e=arguments[0];We.linkResultDirectedEdges(arguments[1]);var n=this.buildMaximalEdgeRings(e),r=new xt,i=this.buildMinimalEdgeRings(n,this._shellList,r);this.sortShellsAndHoles(i,this._shellList,r),this.placeFreeHoles(this._shellList,r)}},qe.prototype.interfaces_=function(){return[]},qe.prototype.getClass=function(){return qe};var Xe=function(){};Xe.prototype.getBounds=function(){},Xe.prototype.interfaces_=function(){return[]},Xe.prototype.getClass=function(){return Xe};var He=function(){this._bounds=null,this._item=null;var t=arguments[0],e=arguments[1];this._bounds=t,this._item=e};He.prototype.getItem=function(){return this._item},He.prototype.getBounds=function(){return this._bounds},He.prototype.interfaces_=function(){return[Xe,e]},He.prototype.getClass=function(){return He};var Ye=function(){this._size=null,this._items=null,this._size=0,this._items=new xt,this._items.add(null)};Ye.prototype.poll=function(){if(this.isEmpty())return null;var t=this._items.get(1);return this._items.set(1,this._items.get(this._size)),this._size-=1,this.reorder(1),t},Ye.prototype.size=function(){return this._size},Ye.prototype.reorder=function(t){for(var e=null,n=this._items.get(t);2*t<=this._size&&((e=2*t)!==this._size&&this._items.get(e+1).compareTo(this._items.get(e))<0&&e++,this._items.get(e).compareTo(n)<0);t=e)this._items.set(t,this._items.get(e));this._items.set(t,n)},Ye.prototype.clear=function(){this._size=0,this._items.clear()},Ye.prototype.isEmpty=function(){return 0===this._size},Ye.prototype.add=function(t){this._items.add(null),this._size+=1;var e=this._size;for(this._items.set(0,t);t.compareTo(this._items.get(Math.trunc(e/2)))<0;e/=2)this._items.set(e,this._items.get(Math.trunc(e/2)));this._items.set(e,t)},Ye.prototype.interfaces_=function(){return[]},Ye.prototype.getClass=function(){return Ye};var Je=function(){};Je.prototype.visitItem=function(t){},Je.prototype.interfaces_=function(){return[]},Je.prototype.getClass=function(){return Je};var $e=function(){};$e.prototype.insert=function(t,e){},$e.prototype.remove=function(t,e){},$e.prototype.query=function(){},$e.prototype.interfaces_=function(){return[]},$e.prototype.getClass=function(){return $e};var Ze=function(){if(this._childBoundables=new xt,this._bounds=null,this._level=null,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this._level=t}},Qe={serialVersionUID:{configurable:!0}};Ze.prototype.getLevel=function(){return this._level},Ze.prototype.size=function(){return this._childBoundables.size()},Ze.prototype.getChildBoundables=function(){return this._childBoundables},Ze.prototype.addChildBoundable=function(t){et.isTrue(null===this._bounds),this._childBoundables.add(t)},Ze.prototype.isEmpty=function(){return this._childBoundables.isEmpty()},Ze.prototype.getBounds=function(){return null===this._bounds&&(this._bounds=this.computeBounds()),this._bounds},Ze.prototype.interfaces_=function(){return[Xe,e]},Ze.prototype.getClass=function(){return Ze},Qe.serialVersionUID.get=function(){return 0x5a1e55ec41369800},Object.defineProperties(Ze,Qe);var Ke=function(){};Ke.reverseOrder=function(){return{compare:function(t,e){return e.compareTo(t)}}},Ke.min=function(t){return Ke.sort(t),t.get(0)},Ke.sort=function(t,e){var n=t.toArray();e?Lt.sort(n,e):Lt.sort(n);for(var r=t.iterator(),i=0,o=n.length;i<o;i++)r.next(),r.set(n[i])},Ke.singletonList=function(t){var e=new xt;return e.add(t),e};var tn=function(){this._boundable1=null,this._boundable2=null,this._distance=null,this._itemDistance=null;var t=arguments[0],e=arguments[1],n=arguments[2];this._boundable1=t,this._boundable2=e,this._itemDistance=n,this._distance=this.distance()};tn.prototype.expandToQueue=function(t,e){var n=tn.isComposite(this._boundable1),r=tn.isComposite(this._boundable2);if(n&&r)return tn.area(this._boundable1)>tn.area(this._boundable2)?(this.expand(this._boundable1,this._boundable2,t,e),null):(this.expand(this._boundable2,this._boundable1,t,e),null);if(n)return this.expand(this._boundable1,this._boundable2,t,e),null;if(r)return this.expand(this._boundable2,this._boundable1,t,e),null;throw new m("neither boundable is composite")},tn.prototype.isLeaves=function(){return!(tn.isComposite(this._boundable1)||tn.isComposite(this._boundable2))},tn.prototype.compareTo=function(t){var e=t;return this._distance<e._distance?-1:this._distance>e._distance?1:0},tn.prototype.expand=function(t,e,n,r){for(var i=t.getChildBoundables().iterator();i.hasNext();){var o=i.next(),s=new tn(o,e,this._itemDistance);s.getDistance()<r&&n.add(s)}},tn.prototype.getBoundable=function(t){return 0===t?this._boundable1:this._boundable2},tn.prototype.getDistance=function(){return this._distance},tn.prototype.distance=function(){return this.isLeaves()?this._itemDistance.distance(this._boundable1,this._boundable2):this._boundable1.getBounds().distance(this._boundable2.getBounds())},tn.prototype.interfaces_=function(){return[w]},tn.prototype.getClass=function(){return tn},tn.area=function(t){return t.getBounds().getArea()},tn.isComposite=function(t){return t instanceof Ze};var en=function t(){if(this._root=null,this._built=!1,this._itemBoundables=new xt,this._nodeCapacity=null,0===arguments.length){var e=t.DEFAULT_NODE_CAPACITY;this._nodeCapacity=e}else if(1===arguments.length){var n=arguments[0];et.isTrue(n>1,"Node capacity must be greater than 1"),this._nodeCapacity=n}},nn={IntersectsOp:{configurable:!0},serialVersionUID:{configurable:!0},DEFAULT_NODE_CAPACITY:{configurable:!0}};en.prototype.getNodeCapacity=function(){return this._nodeCapacity},en.prototype.lastNode=function(t){return t.get(t.size()-1)},en.prototype.size=function(){if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.size(this._root));if(1===arguments.length){for(var t=0,e=arguments[0].getChildBoundables().iterator();e.hasNext();){var n=e.next();n instanceof Ze?t+=this.size(n):n instanceof He&&(t+=1)}return t}},en.prototype.removeItem=function(t,e){for(var n=null,r=t.getChildBoundables().iterator();r.hasNext();){var i=r.next();i instanceof He&&i.getItem()===e&&(n=i)}return null!==n&&(t.getChildBoundables().remove(n),!0)},en.prototype.itemsTree=function(){if(0===arguments.length){this.build();var t=this.itemsTree(this._root);return null===t?new xt:t}if(1===arguments.length){for(var e=arguments[0],n=new xt,r=e.getChildBoundables().iterator();r.hasNext();){var i=r.next();if(i instanceof Ze){var o=this.itemsTree(i);null!==o&&n.add(o)}else i instanceof He?n.add(i.getItem()):et.shouldNeverReachHere()}return n.size()<=0?null:n}},en.prototype.insert=function(t,e){et.isTrue(!this._built,"Cannot insert items into an STR packed R-tree after it has been built."),this._itemBoundables.add(new He(t,e))},en.prototype.boundablesAtLevel=function(){if(1===arguments.length){var t=arguments[0],e=new xt;return this.boundablesAtLevel(t,this._root,e),e}if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];if(et.isTrue(n>-2),r.getLevel()===n)return i.add(r),null;for(var o=r.getChildBoundables().iterator();o.hasNext();){var s=o.next();s instanceof Ze?this.boundablesAtLevel(n,s,i):(et.isTrue(s instanceof He),-1===n&&i.add(s))}return null}},en.prototype.query=function(){if(1===arguments.length){var t=arguments[0];this.build();var e=new xt;return this.isEmpty()||this.getIntersectsOp().intersects(this._root.getBounds(),t)&&this.query(t,this._root,e),e}if(2===arguments.length){var n=arguments[0],r=arguments[1];if(this.build(),this.isEmpty())return null;this.getIntersectsOp().intersects(this._root.getBounds(),n)&&this.query(n,this._root,r)}else if(3===arguments.length)if(T(arguments[2],Je)&&arguments[0]instanceof Object&&arguments[1]instanceof Ze)for(var i=arguments[0],o=arguments[2],s=arguments[1].getChildBoundables(),a=0;a<s.size();a++){var u=s.get(a);this.getIntersectsOp().intersects(u.getBounds(),i)&&(u instanceof Ze?this.query(i,u,o):u instanceof He?o.visitItem(u.getItem()):et.shouldNeverReachHere())}else if(T(arguments[2],Et)&&arguments[0]instanceof Object&&arguments[1]instanceof Ze)for(var c=arguments[0],l=arguments[2],h=arguments[1].getChildBoundables(),p=0;p<h.size();p++){var f=h.get(p);this.getIntersectsOp().intersects(f.getBounds(),c)&&(f instanceof Ze?this.query(c,f,l):f instanceof He?l.add(f.getItem()):et.shouldNeverReachHere())}},en.prototype.build=function(){if(this._built)return null;this._root=this._itemBoundables.isEmpty()?this.createNode(0):this.createHigherLevels(this._itemBoundables,-1),this._itemBoundables=null,this._built=!0},en.prototype.getRoot=function(){return this.build(),this._root},en.prototype.remove=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];return this.build(),!!this.getIntersectsOp().intersects(this._root.getBounds(),t)&&this.remove(t,this._root,e)}if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2],o=this.removeItem(r,i);if(o)return!0;for(var s=null,a=r.getChildBoundables().iterator();a.hasNext();){var u=a.next();if(this.getIntersectsOp().intersects(u.getBounds(),n)&&u instanceof Ze&&(o=this.remove(n,u,i))){s=u;break}}return null!==s&&s.getChildBoundables().isEmpty()&&r.getChildBoundables().remove(s),o}},en.prototype.createHigherLevels=function(t,e){et.isTrue(!t.isEmpty());var n=this.createParentBoundables(t,e+1);return 1===n.size()?n.get(0):this.createHigherLevels(n,e+1)},en.prototype.depth=function(){if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.depth(this._root));if(1===arguments.length){for(var t=0,e=arguments[0].getChildBoundables().iterator();e.hasNext();){var n=e.next();if(n instanceof Ze){var r=this.depth(n);r>t&&(t=r)}}return t+1}},en.prototype.createParentBoundables=function(t,e){et.isTrue(!t.isEmpty());var n=new xt;n.add(this.createNode(e));var r=new xt(t);Ke.sort(r,this.getComparator());for(var i=r.iterator();i.hasNext();){var o=i.next();this.lastNode(n).getChildBoundables().size()===this.getNodeCapacity()&&n.add(this.createNode(e)),this.lastNode(n).addChildBoundable(o)}return n},en.prototype.isEmpty=function(){return this._built?this._root.isEmpty():this._itemBoundables.isEmpty()},en.prototype.interfaces_=function(){return[e]},en.prototype.getClass=function(){return en},en.compareDoubles=function(t,e){return t>e?1:t<e?-1:0},nn.IntersectsOp.get=function(){return rn},nn.serialVersionUID.get=function(){return-0x35ef64c82d4c5400},nn.DEFAULT_NODE_CAPACITY.get=function(){return 10},Object.defineProperties(en,nn);var rn=function(){},on=function(){};on.prototype.distance=function(t,e){},on.prototype.interfaces_=function(){return[]},on.prototype.getClass=function(){return on};var sn=function(t){function n(e){e=e||n.DEFAULT_NODE_CAPACITY,t.call(this,e)}t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n;var r={STRtreeNode:{configurable:!0},serialVersionUID:{configurable:!0},xComparator:{configurable:!0},yComparator:{configurable:!0},intersectsOp:{configurable:!0},DEFAULT_NODE_CAPACITY:{configurable:!0}};return n.prototype.createParentBoundablesFromVerticalSlices=function(t,e){et.isTrue(t.length>0);for(var n=new xt,r=0;r<t.length;r++)n.addAll(this.createParentBoundablesFromVerticalSlice(t[r],e));return n},n.prototype.createNode=function(t){return new an(t)},n.prototype.size=function(){return 0===arguments.length?t.prototype.size.call(this):t.prototype.size.apply(this,arguments)},n.prototype.insert=function(){if(2!==arguments.length)return t.prototype.insert.apply(this,arguments);var e=arguments[0],n=arguments[1];if(e.isNull())return null;t.prototype.insert.call(this,e,n)},n.prototype.getIntersectsOp=function(){return n.intersectsOp},n.prototype.verticalSlices=function(t,e){for(var n=Math.trunc(Math.ceil(t.size()/e)),r=new Array(e).fill(null),i=t.iterator(),o=0;o<e;o++){r[o]=new xt;for(var s=0;i.hasNext()&&s<n;){var a=i.next();r[o].add(a),s++}}return r},n.prototype.query=function(){if(1===arguments.length){var e=arguments[0];return t.prototype.query.call(this,e)}if(2===arguments.length){var n=arguments[0],r=arguments[1];t.prototype.query.call(this,n,r)}else if(3===arguments.length)if(T(arguments[2],Je)&&arguments[0]instanceof Object&&arguments[1]instanceof Ze){var i=arguments[0],o=arguments[1],s=arguments[2];t.prototype.query.call(this,i,o,s)}else if(T(arguments[2],Et)&&arguments[0]instanceof Object&&arguments[1]instanceof Ze){var a=arguments[0],u=arguments[1],c=arguments[2];t.prototype.query.call(this,a,u,c)}},n.prototype.getComparator=function(){return n.yComparator},n.prototype.createParentBoundablesFromVerticalSlice=function(e,n){return t.prototype.createParentBoundables.call(this,e,n)},n.prototype.remove=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];return t.prototype.remove.call(this,e,n)}return t.prototype.remove.apply(this,arguments)},n.prototype.depth=function(){return 0===arguments.length?t.prototype.depth.call(this):t.prototype.depth.apply(this,arguments)},n.prototype.createParentBoundables=function(t,e){et.isTrue(!t.isEmpty());var r=Math.trunc(Math.ceil(t.size()/this.getNodeCapacity())),i=new xt(t);Ke.sort(i,n.xComparator);var o=this.verticalSlices(i,Math.trunc(Math.ceil(Math.sqrt(r))));return this.createParentBoundablesFromVerticalSlices(o,e)},n.prototype.nearestNeighbour=function(){if(1===arguments.length){if(T(arguments[0],on)){var t=arguments[0],e=new tn(this.getRoot(),this.getRoot(),t);return this.nearestNeighbour(e)}if(arguments[0]instanceof tn){var r=arguments[0];return this.nearestNeighbour(r,_.POSITIVE_INFINITY)}}else if(2===arguments.length){if(arguments[0]instanceof n&&T(arguments[1],on)){var i=arguments[0],o=arguments[1],s=new tn(this.getRoot(),i.getRoot(),o);return this.nearestNeighbour(s)}if(arguments[0]instanceof tn&&"number"==typeof arguments[1]){var a=arguments[0],u=arguments[1],c=null,l=new Ye;for(l.add(a);!l.isEmpty()&&u>0;){var h=l.poll(),p=h.getDistance();if(p>=u)break;h.isLeaves()?(u=p,c=h):h.expandToQueue(l,u)}return[c.getBoundable(0).getItem(),c.getBoundable(1).getItem()]}}else if(3===arguments.length){var f=arguments[2],d=new He(arguments[0],arguments[1]),g=new tn(this.getRoot(),d,f);return this.nearestNeighbour(g)[0]}},n.prototype.interfaces_=function(){return[$e,e]},n.prototype.getClass=function(){return n},n.centreX=function(t){return n.avg(t.getMinX(),t.getMaxX())},n.avg=function(t,e){return(t+e)/2},n.centreY=function(t){return n.avg(t.getMinY(),t.getMaxY())},r.STRtreeNode.get=function(){return an},r.serialVersionUID.get=function(){return 0x39920f7d5f261e0},r.xComparator.get=function(){return{interfaces_:function(){return[x]},compare:function(e,r){return t.compareDoubles(n.centreX(e.getBounds()),n.centreX(r.getBounds()))}}},r.yComparator.get=function(){return{interfaces_:function(){return[x]},compare:function(e,r){return t.compareDoubles(n.centreY(e.getBounds()),n.centreY(r.getBounds()))}}},r.intersectsOp.get=function(){return{interfaces_:function(){return[t.IntersectsOp]},intersects:function(t,e){return t.intersects(e)}}},r.DEFAULT_NODE_CAPACITY.get=function(){return 10},Object.defineProperties(n,r),n}(en),an=function(t){function e(){var e=arguments[0];t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.computeBounds=function(){for(var t=null,e=this.getChildBoundables().iterator();e.hasNext();){var n=e.next();null===t?t=new X(n.getBounds()):t.expandToInclude(n.getBounds())}return t},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Ze),un=function(){};un.prototype.interfaces_=function(){return[]},un.prototype.getClass=function(){return un},un.relativeSign=function(t,e){return t<e?-1:t>e?1:0},un.compare=function(t,e,n){if(e.equals2D(n))return 0;var r=un.relativeSign(e.x,n.x),i=un.relativeSign(e.y,n.y);switch(t){case 0:return un.compareValue(r,i);case 1:return un.compareValue(i,r);case 2:return un.compareValue(i,-r);case 3:return un.compareValue(-r,i);case 4:return un.compareValue(-r,-i);case 5:return un.compareValue(-i,-r);case 6:return un.compareValue(-i,r);case 7:return un.compareValue(r,-i)}return et.shouldNeverReachHere("invalid octant value"),0},un.compareValue=function(t,e){return t<0?-1:t>0?1:e<0?-1:e>0?1:0};var cn=function(){this._segString=null,this.coord=null,this.segmentIndex=null,this._segmentOctant=null,this._isInterior=null;var t=arguments[0],e=arguments[1],n=arguments[2],r=arguments[3];this._segString=t,this.coord=new P(e),this.segmentIndex=n,this._segmentOctant=r,this._isInterior=!e.equals2D(t.getCoordinate(n))};cn.prototype.getCoordinate=function(){return this.coord},cn.prototype.print=function(t){t.print(this.coord),t.print(" seg # = "+this.segmentIndex)},cn.prototype.compareTo=function(t){var e=t;return this.segmentIndex<e.segmentIndex?-1:this.segmentIndex>e.segmentIndex?1:this.coord.equals2D(e.coord)?0:un.compare(this._segmentOctant,this.coord,e.coord)},cn.prototype.isEndPoint=function(t){return 0===this.segmentIndex&&!this._isInterior||this.segmentIndex===t},cn.prototype.isInterior=function(){return this._isInterior},cn.prototype.interfaces_=function(){return[w]},cn.prototype.getClass=function(){return cn};var ln=function(){this._nodeMap=new h,this._edge=null;var t=arguments[0];this._edge=t};ln.prototype.getSplitCoordinates=function(){var t=new St;this.addEndpoints();for(var e=this.iterator(),n=e.next();e.hasNext();){var r=e.next();this.addEdgeCoordinates(n,r,t),n=r}return t.toCoordinateArray()},ln.prototype.addCollapsedNodes=function(){var t=new xt;this.findCollapsesFromInsertedNodes(t),this.findCollapsesFromExistingVertices(t);for(var e=t.iterator();e.hasNext();){var n=e.next().intValue();this.add(this._edge.getCoordinate(n),n)}},ln.prototype.print=function(t){t.println("Intersections:");for(var e=this.iterator();e.hasNext();)e.next().print(t)},ln.prototype.findCollapsesFromExistingVertices=function(t){for(var e=0;e<this._edge.size()-2;e++){var n=this._edge.getCoordinate(e),r=this._edge.getCoordinate(e+2);n.equals2D(r)&&t.add(new A(e+1))}},ln.prototype.addEdgeCoordinates=function(t,e,n){var r=this._edge.getCoordinate(e.segmentIndex),i=e.isInterior()||!e.coord.equals2D(r);n.add(new P(t.coord),!1);for(var o=t.segmentIndex+1;o<=e.segmentIndex;o++)n.add(this._edge.getCoordinate(o));i&&n.add(new P(e.coord))},ln.prototype.iterator=function(){return this._nodeMap.values().iterator()},ln.prototype.addSplitEdges=function(t){this.addEndpoints(),this.addCollapsedNodes();for(var e=this.iterator(),n=e.next();e.hasNext();){var r=e.next(),i=this.createSplitEdge(n,r);t.add(i),n=r}},ln.prototype.findCollapseIndex=function(t,e,n){if(!t.coord.equals2D(e.coord))return!1;var r=e.segmentIndex-t.segmentIndex;return e.isInterior()||r--,1===r&&(n[0]=t.segmentIndex+1,!0)},ln.prototype.findCollapsesFromInsertedNodes=function(t){for(var e=new Array(1).fill(null),n=this.iterator(),r=n.next();n.hasNext();){var i=n.next();this.findCollapseIndex(r,i,e)&&t.add(new A(e[0])),r=i}},ln.prototype.getEdge=function(){return this._edge},ln.prototype.addEndpoints=function(){var t=this._edge.size()-1;this.add(this._edge.getCoordinate(0),0),this.add(this._edge.getCoordinate(t),t)},ln.prototype.createSplitEdge=function(t,e){var n=e.segmentIndex-t.segmentIndex+2,r=this._edge.getCoordinate(e.segmentIndex),i=e.isInterior()||!e.coord.equals2D(r);i||n--;var o=new Array(n).fill(null),s=0;o[s++]=new P(t.coord);for(var a=t.segmentIndex+1;a<=e.segmentIndex;a++)o[s++]=this._edge.getCoordinate(a);return i&&(o[s]=new P(e.coord)),new dn(o,this._edge.getData())},ln.prototype.add=function(t,e){var n=new cn(this._edge,t,e,this._edge.getSegmentOctant(e)),r=this._nodeMap.get(n);return null!==r?(et.isTrue(r.coord.equals2D(t),"Found equal nodes with different coordinates"),r):(this._nodeMap.put(n,n),n)},ln.prototype.checkSplitEdgesCorrectness=function(t){var e=this._edge.getCoordinates(),n=t.get(0).getCoordinate(0);if(!n.equals2D(e[0]))throw new K("bad split edge start point at "+n);var r=t.get(t.size()-1).getCoordinates(),i=r[r.length-1];if(!i.equals2D(e[e.length-1]))throw new K("bad split edge end point at "+i)},ln.prototype.interfaces_=function(){return[]},ln.prototype.getClass=function(){return ln};var hn=function(){};hn.prototype.interfaces_=function(){return[]},hn.prototype.getClass=function(){return hn},hn.octant=function(){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var t=arguments[0],e=arguments[1];if(0===t&&0===e)throw new m("Cannot compute the octant for point ( "+t+", "+e+" )");var n=Math.abs(t),r=Math.abs(e);return t>=0?e>=0?n>=r?0:1:n>=r?7:6:e>=0?n>=r?3:2:n>=r?4:5}if(arguments[0]instanceof P&&arguments[1]instanceof P){var i=arguments[0],o=arguments[1],s=o.x-i.x,a=o.y-i.y;if(0===s&&0===a)throw new m("Cannot compute the octant for two identical points "+i);return hn.octant(s,a)}};var pn=function(){};pn.prototype.getCoordinates=function(){},pn.prototype.size=function(){},pn.prototype.getCoordinate=function(t){},pn.prototype.isClosed=function(){},pn.prototype.setData=function(t){},pn.prototype.getData=function(){},pn.prototype.interfaces_=function(){return[]},pn.prototype.getClass=function(){return pn};var fn=function(){};fn.prototype.addIntersection=function(t,e){},fn.prototype.interfaces_=function(){return[pn]},fn.prototype.getClass=function(){return fn};var dn=function(){this._nodeList=new ln(this),this._pts=null,this._data=null;var t=arguments[0],e=arguments[1];this._pts=t,this._data=e};dn.prototype.getCoordinates=function(){return this._pts},dn.prototype.size=function(){return this._pts.length},dn.prototype.getCoordinate=function(t){return this._pts[t]},dn.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])},dn.prototype.getSegmentOctant=function(t){return t===this._pts.length-1?-1:this.safeOctant(this.getCoordinate(t),this.getCoordinate(t+1))},dn.prototype.setData=function(t){this._data=t},dn.prototype.safeOctant=function(t,e){return t.equals2D(e)?0:hn.octant(t,e)},dn.prototype.getData=function(){return this._data},dn.prototype.addIntersection=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];this.addIntersectionNode(t,e)}else if(4===arguments.length){var n=arguments[1],r=arguments[3],i=new P(arguments[0].getIntersection(r));this.addIntersection(i,n)}},dn.prototype.toString=function(){return Q.toLineString(new ue(this._pts))},dn.prototype.getNodeList=function(){return this._nodeList},dn.prototype.addIntersectionNode=function(t,e){var n=e,r=n+1;if(r<this._pts.length){var i=this._pts[r];t.equals2D(i)&&(n=r)}return this._nodeList.add(t,n)},dn.prototype.addIntersections=function(t,e,n){for(var r=0;r<t.getIntersectionNum();r++)this.addIntersection(t,e,n,r)},dn.prototype.interfaces_=function(){return[fn]},dn.prototype.getClass=function(){return dn},dn.getNodedSubstrings=function(){if(1===arguments.length){var t=arguments[0],e=new xt;return dn.getNodedSubstrings(t,e),e}if(2===arguments.length)for(var n=arguments[1],r=arguments[0].iterator();r.hasNext();)r.next().getNodeList().addSplitEdges(n)};var gn=function(){if(this.p0=null,this.p1=null,0===arguments.length)this.p0=new P,this.p1=new P;else if(1===arguments.length){var t=arguments[0];this.p0=new P(t.p0),this.p1=new P(t.p1)}else if(2===arguments.length)this.p0=arguments[0],this.p1=arguments[1];else if(4===arguments.length){var e=arguments[0],n=arguments[1],r=arguments[2],i=arguments[3];this.p0=new P(e,n),this.p1=new P(r,i)}},yn={serialVersionUID:{configurable:!0}};gn.prototype.minX=function(){return Math.min(this.p0.x,this.p1.x)},gn.prototype.orientationIndex=function(){if(arguments[0]instanceof gn){var t=arguments[0],e=at.orientationIndex(this.p0,this.p1,t.p0),n=at.orientationIndex(this.p0,this.p1,t.p1);return e>=0&&n>=0||e<=0&&n<=0?Math.max(e,n):0}if(arguments[0]instanceof P){var r=arguments[0];return at.orientationIndex(this.p0,this.p1,r)}},gn.prototype.toGeometry=function(t){return t.createLineString([this.p0,this.p1])},gn.prototype.isVertical=function(){return this.p0.x===this.p1.x},gn.prototype.equals=function(t){if(!(t instanceof gn))return!1;var e=t;return this.p0.equals(e.p0)&&this.p1.equals(e.p1)},gn.prototype.intersection=function(t){var e=new it;return e.computeIntersection(this.p0,this.p1,t.p0,t.p1),e.hasIntersection()?e.getIntersection(0):null},gn.prototype.project=function(){if(arguments[0]instanceof P){var t=arguments[0];if(t.equals(this.p0)||t.equals(this.p1))return new P(t);var e=this.projectionFactor(t),n=new P;return n.x=this.p0.x+e*(this.p1.x-this.p0.x),n.y=this.p0.y+e*(this.p1.y-this.p0.y),n}if(arguments[0]instanceof gn){var r=arguments[0],i=this.projectionFactor(r.p0),o=this.projectionFactor(r.p1);if(i>=1&&o>=1)return null;if(i<=0&&o<=0)return null;var s=this.project(r.p0);i<0&&(s=this.p0),i>1&&(s=this.p1);var a=this.project(r.p1);return o<0&&(a=this.p0),o>1&&(a=this.p1),new gn(s,a)}},gn.prototype.normalize=function(){this.p1.compareTo(this.p0)<0&&this.reverse()},gn.prototype.angle=function(){return Math.atan2(this.p1.y-this.p0.y,this.p1.x-this.p0.x)},gn.prototype.getCoordinate=function(t){return 0===t?this.p0:this.p1},gn.prototype.distancePerpendicular=function(t){return at.distancePointLinePerpendicular(t,this.p0,this.p1)},gn.prototype.minY=function(){return Math.min(this.p0.y,this.p1.y)},gn.prototype.midPoint=function(){return gn.midPoint(this.p0,this.p1)},gn.prototype.projectionFactor=function(t){if(t.equals(this.p0))return 0;if(t.equals(this.p1))return 1;var e=this.p1.x-this.p0.x,n=this.p1.y-this.p0.y,r=e*e+n*n;return r<=0?_.NaN:((t.x-this.p0.x)*e+(t.y-this.p0.y)*n)/r},gn.prototype.closestPoints=function(t){var e=this.intersection(t);if(null!==e)return[e,e];var n=new Array(2).fill(null),r=_.MAX_VALUE,i=null,o=this.closestPoint(t.p0);r=o.distance(t.p0),n[0]=o,n[1]=t.p0;var s=this.closestPoint(t.p1);(i=s.distance(t.p1))<r&&(r=i,n[0]=s,n[1]=t.p1);var a=t.closestPoint(this.p0);(i=a.distance(this.p0))<r&&(r=i,n[0]=this.p0,n[1]=a);var u=t.closestPoint(this.p1);return(i=u.distance(this.p1))<r&&(r=i,n[0]=this.p1,n[1]=u),n},gn.prototype.closestPoint=function(t){var e=this.projectionFactor(t);return e>0&&e<1?this.project(t):this.p0.distance(t)<this.p1.distance(t)?this.p0:this.p1},gn.prototype.maxX=function(){return Math.max(this.p0.x,this.p1.x)},gn.prototype.getLength=function(){return this.p0.distance(this.p1)},gn.prototype.compareTo=function(t){var e=t,n=this.p0.compareTo(e.p0);return 0!==n?n:this.p1.compareTo(e.p1)},gn.prototype.reverse=function(){var t=this.p0;this.p0=this.p1,this.p1=t},gn.prototype.equalsTopo=function(t){return this.p0.equals(t.p0)&&(this.p1.equals(t.p1)||this.p0.equals(t.p1))&&this.p1.equals(t.p0)},gn.prototype.lineIntersection=function(t){try{return q.intersection(this.p0,this.p1,t.p0,t.p1)}catch(t){if(!(t instanceof G))throw t}return null},gn.prototype.maxY=function(){return Math.max(this.p0.y,this.p1.y)},gn.prototype.pointAlongOffset=function(t,e){var n=this.p0.x+t*(this.p1.x-this.p0.x),r=this.p0.y+t*(this.p1.y-this.p0.y),i=this.p1.x-this.p0.x,o=this.p1.y-this.p0.y,s=Math.sqrt(i*i+o*o),a=0,u=0;if(0!==e){if(s<=0)throw new Error("Cannot compute offset from zero-length line segment");a=e*i/s,u=e*o/s}return new P(n-u,r+a)},gn.prototype.setCoordinates=function(){if(1===arguments.length){var t=arguments[0];this.setCoordinates(t.p0,t.p1)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.p0.x=e.x,this.p0.y=e.y,this.p1.x=n.x,this.p1.y=n.y}},gn.prototype.segmentFraction=function(t){var e=this.projectionFactor(t);return e<0?e=0:(e>1||_.isNaN(e))&&(e=1),e},gn.prototype.toString=function(){return"LINESTRING( "+this.p0.x+" "+this.p0.y+", "+this.p1.x+" "+this.p1.y+")"},gn.prototype.isHorizontal=function(){return this.p0.y===this.p1.y},gn.prototype.distance=function(){if(arguments[0]instanceof gn){var t=arguments[0];return at.distanceLineLine(this.p0,this.p1,t.p0,t.p1)}if(arguments[0]instanceof P){var e=arguments[0];return at.distancePointLine(e,this.p0,this.p1)}},gn.prototype.pointAlong=function(t){var e=new P;return e.x=this.p0.x+t*(this.p1.x-this.p0.x),e.y=this.p0.y+t*(this.p1.y-this.p0.y),e},gn.prototype.hashCode=function(){var t=_.doubleToLongBits(this.p0.x);t^=31*_.doubleToLongBits(this.p0.y);var e=Math.trunc(t)^Math.trunc(t>>32),n=_.doubleToLongBits(this.p1.x);return n^=31*_.doubleToLongBits(this.p1.y),e^Math.trunc(n)^Math.trunc(n>>32)},gn.prototype.interfaces_=function(){return[w,e]},gn.prototype.getClass=function(){return gn},gn.midPoint=function(t,e){return new P((t.x+e.x)/2,(t.y+e.y)/2)},yn.serialVersionUID.get=function(){return 0x2d2172135f411c00},Object.defineProperties(gn,yn);var vn=function(){this.tempEnv1=new X,this.tempEnv2=new X,this._overlapSeg1=new gn,this._overlapSeg2=new gn};vn.prototype.overlap=function(){if(2===arguments.length);else if(4===arguments.length){var t=arguments[1],e=arguments[2],n=arguments[3];arguments[0].getLineSegment(t,this._overlapSeg1),e.getLineSegment(n,this._overlapSeg2),this.overlap(this._overlapSeg1,this._overlapSeg2)}},vn.prototype.interfaces_=function(){return[]},vn.prototype.getClass=function(){return vn};var mn=function(){this._pts=null,this._start=null,this._end=null,this._env=null,this._context=null,this._id=null;var t=arguments[0],e=arguments[1],n=arguments[2],r=arguments[3];this._pts=t,this._start=e,this._end=n,this._context=r};mn.prototype.getLineSegment=function(t,e){e.p0=this._pts[t],e.p1=this._pts[t+1]},mn.prototype.computeSelect=function(t,e,n,r){var i=this._pts[e],o=this._pts[n];if(r.tempEnv1.init(i,o),n-e==1)return r.select(this,e),null;if(!t.intersects(r.tempEnv1))return null;var s=Math.trunc((e+n)/2);e<s&&this.computeSelect(t,e,s,r),s<n&&this.computeSelect(t,s,n,r)},mn.prototype.getCoordinates=function(){for(var t=new Array(this._end-this._start+1).fill(null),e=0,n=this._start;n<=this._end;n++)t[e++]=this._pts[n];return t},mn.prototype.computeOverlaps=function(t,e){this.computeOverlapsInternal(this._start,this._end,t,t._start,t._end,e)},mn.prototype.setId=function(t){this._id=t},mn.prototype.select=function(t,e){this.computeSelect(t,this._start,this._end,e)},mn.prototype.getEnvelope=function(){if(null===this._env){var t=this._pts[this._start],e=this._pts[this._end];this._env=new X(t,e)}return this._env},mn.prototype.getEndIndex=function(){return this._end},mn.prototype.getStartIndex=function(){return this._start},mn.prototype.getContext=function(){return this._context},mn.prototype.getId=function(){return this._id},mn.prototype.computeOverlapsInternal=function(t,e,n,r,i,o){var s=this._pts[t],a=this._pts[e],u=n._pts[r],c=n._pts[i];if(e-t==1&&i-r==1)return o.overlap(this,t,n,r),null;if(o.tempEnv1.init(s,a),o.tempEnv2.init(u,c),!o.tempEnv1.intersects(o.tempEnv2))return null;var l=Math.trunc((t+e)/2),h=Math.trunc((r+i)/2);t<l&&(r<h&&this.computeOverlapsInternal(t,l,n,r,h,o),h<i&&this.computeOverlapsInternal(t,l,n,h,i,o)),l<e&&(r<h&&this.computeOverlapsInternal(l,e,n,r,h,o),h<i&&this.computeOverlapsInternal(l,e,n,h,i,o))},mn.prototype.interfaces_=function(){return[]},mn.prototype.getClass=function(){return mn};var _n=function(){};_n.prototype.interfaces_=function(){return[]},_n.prototype.getClass=function(){return _n},_n.getChainStartIndices=function(t){var e=0,n=new xt;n.add(new A(e));do{var r=_n.findChainEnd(t,e);n.add(new A(r)),e=r}while(e<t.length-1);return _n.toIntArray(n)},_n.findChainEnd=function(t,e){for(var n=e;n<t.length-1&&t[n].equals2D(t[n+1]);)n++;if(n>=t.length-1)return t.length-1;for(var r=Ve.quadrant(t[n],t[n+1]),i=e+1;i<t.length&&(t[i-1].equals2D(t[i])||Ve.quadrant(t[i-1],t[i])===r);)i++;return i-1},_n.getChains=function(){if(1===arguments.length)return _n.getChains(arguments[0],null);if(2===arguments.length){for(var t=arguments[0],e=arguments[1],n=new xt,r=_n.getChainStartIndices(t),i=0;i<r.length-1;i++){var o=new mn(t,r[i],r[i+1],e);n.add(o)}return n}},_n.toIntArray=function(t){for(var e=new Array(t.size()).fill(null),n=0;n<e.length;n++)e[n]=t.get(n).intValue();return e};var bn=function(){};bn.prototype.computeNodes=function(t){},bn.prototype.getNodedSubstrings=function(){},bn.prototype.interfaces_=function(){return[]},bn.prototype.getClass=function(){return bn};var wn=function(){if(this._segInt=null,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this.setSegmentIntersector(t)}};wn.prototype.setSegmentIntersector=function(t){this._segInt=t},wn.prototype.interfaces_=function(){return[bn]},wn.prototype.getClass=function(){return wn};var En=function(t){function e(e){e?t.call(this,e):t.call(this),this._monoChains=new xt,this._index=new sn,this._idCounter=0,this._nodedSegStrings=null,this._nOverlaps=0}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={SegmentOverlapAction:{configurable:!0}};return e.prototype.getMonotoneChains=function(){return this._monoChains},e.prototype.getNodedSubstrings=function(){return dn.getNodedSubstrings(this._nodedSegStrings)},e.prototype.getIndex=function(){return this._index},e.prototype.add=function(t){for(var e=_n.getChains(t.getCoordinates(),t).iterator();e.hasNext();){var n=e.next();n.setId(this._idCounter++),this._index.insert(n.getEnvelope(),n),this._monoChains.add(n)}},e.prototype.computeNodes=function(t){this._nodedSegStrings=t;for(var e=t.iterator();e.hasNext();)this.add(e.next());this.intersectChains()},e.prototype.intersectChains=function(){for(var t=new xn(this._segInt),e=this._monoChains.iterator();e.hasNext();)for(var n=e.next(),r=this._index.query(n.getEnvelope()).iterator();r.hasNext();){var i=r.next();if(i.getId()>n.getId()&&(n.computeOverlaps(i,t),this._nOverlaps++),this._segInt.isDone())return null}},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},n.SegmentOverlapAction.get=function(){return xn},Object.defineProperties(e,n),e}(wn),xn=function(t){function e(){t.call(this),this._si=null;var e=arguments[0];this._si=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.overlap=function(){if(4!==arguments.length)return t.prototype.overlap.apply(this,arguments);var e=arguments[1],n=arguments[2],r=arguments[3],i=arguments[0].getContext(),o=n.getContext();this._si.processIntersections(i,e,o,r)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(vn),Pn=function t(){if(this._quadrantSegments=t.DEFAULT_QUADRANT_SEGMENTS,this._endCapStyle=t.CAP_ROUND,this._joinStyle=t.JOIN_ROUND,this._mitreLimit=t.DEFAULT_MITRE_LIMIT,this._isSingleSided=!1,this._simplifyFactor=t.DEFAULT_SIMPLIFY_FACTOR,0===arguments.length);else if(1===arguments.length){var e=arguments[0];this.setQuadrantSegments(e)}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this.setQuadrantSegments(n),this.setEndCapStyle(r)}else if(4===arguments.length){var i=arguments[0],o=arguments[1],s=arguments[2],a=arguments[3];this.setQuadrantSegments(i),this.setEndCapStyle(o),this.setJoinStyle(s),this.setMitreLimit(a)}},Sn={CAP_ROUND:{configurable:!0},CAP_FLAT:{configurable:!0},CAP_SQUARE:{configurable:!0},JOIN_ROUND:{configurable:!0},JOIN_MITRE:{configurable:!0},JOIN_BEVEL:{configurable:!0},DEFAULT_QUADRANT_SEGMENTS:{configurable:!0},DEFAULT_MITRE_LIMIT:{configurable:!0},DEFAULT_SIMPLIFY_FACTOR:{configurable:!0}};Pn.prototype.getEndCapStyle=function(){return this._endCapStyle},Pn.prototype.isSingleSided=function(){return this._isSingleSided},Pn.prototype.setQuadrantSegments=function(t){this._quadrantSegments=t,0===this._quadrantSegments&&(this._joinStyle=Pn.JOIN_BEVEL),this._quadrantSegments<0&&(this._joinStyle=Pn.JOIN_MITRE,this._mitreLimit=Math.abs(this._quadrantSegments)),t<=0&&(this._quadrantSegments=1),this._joinStyle!==Pn.JOIN_ROUND&&(this._quadrantSegments=Pn.DEFAULT_QUADRANT_SEGMENTS)},Pn.prototype.getJoinStyle=function(){return this._joinStyle},Pn.prototype.setJoinStyle=function(t){this._joinStyle=t},Pn.prototype.setSimplifyFactor=function(t){this._simplifyFactor=t<0?0:t},Pn.prototype.getSimplifyFactor=function(){return this._simplifyFactor},Pn.prototype.getQuadrantSegments=function(){return this._quadrantSegments},Pn.prototype.setEndCapStyle=function(t){this._endCapStyle=t},Pn.prototype.getMitreLimit=function(){return this._mitreLimit},Pn.prototype.setMitreLimit=function(t){this._mitreLimit=t},Pn.prototype.setSingleSided=function(t){this._isSingleSided=t},Pn.prototype.interfaces_=function(){return[]},Pn.prototype.getClass=function(){return Pn},Pn.bufferDistanceError=function(t){var e=Math.PI/2/t;return 1-Math.cos(e/2)},Sn.CAP_ROUND.get=function(){return 1},Sn.CAP_FLAT.get=function(){return 2},Sn.CAP_SQUARE.get=function(){return 3},Sn.JOIN_ROUND.get=function(){return 1},Sn.JOIN_MITRE.get=function(){return 2},Sn.JOIN_BEVEL.get=function(){return 3},Sn.DEFAULT_QUADRANT_SEGMENTS.get=function(){return 8},Sn.DEFAULT_MITRE_LIMIT.get=function(){return 5},Sn.DEFAULT_SIMPLIFY_FACTOR.get=function(){return.01},Object.defineProperties(Pn,Sn);var On=function(t){this._distanceTol=null,this._isDeleted=null,this._angleOrientation=at.COUNTERCLOCKWISE,this._inputLine=t||null},Cn={INIT:{configurable:!0},DELETE:{configurable:!0},KEEP:{configurable:!0},NUM_PTS_TO_CHECK:{configurable:!0}};On.prototype.isDeletable=function(t,e,n,r){var i=this._inputLine[t],o=this._inputLine[e],s=this._inputLine[n];return!!this.isConcave(i,o,s)&&!!this.isShallow(i,o,s,r)&&this.isShallowSampled(i,o,t,n,r)},On.prototype.deleteShallowConcavities=function(){for(var t=1,e=this.findNextNonDeletedIndex(t),n=this.findNextNonDeletedIndex(e),r=!1;n<this._inputLine.length;){var i=!1;this.isDeletable(t,e,n,this._distanceTol)&&(this._isDeleted[e]=On.DELETE,i=!0,r=!0),t=i?n:e,e=this.findNextNonDeletedIndex(t),n=this.findNextNonDeletedIndex(e)}return r},On.prototype.isShallowConcavity=function(t,e,n,r){return at.computeOrientation(t,e,n)===this._angleOrientation&&at.distancePointLine(e,t,n)<r},On.prototype.isShallowSampled=function(t,e,n,r,i){var o=Math.trunc((r-n)/On.NUM_PTS_TO_CHECK);o<=0&&(o=1);for(var s=n;s<r;s+=o)if(!this.isShallow(t,e,this._inputLine[s],i))return!1;return!0},On.prototype.isConcave=function(t,e,n){return at.computeOrientation(t,e,n)===this._angleOrientation},On.prototype.simplify=function(t){this._distanceTol=Math.abs(t),t<0&&(this._angleOrientation=at.CLOCKWISE),this._isDeleted=new Array(this._inputLine.length).fill(null);var e=!1;do{e=this.deleteShallowConcavities()}while(e);return this.collapseLine()},On.prototype.findNextNonDeletedIndex=function(t){for(var e=t+1;e<this._inputLine.length&&this._isDeleted[e]===On.DELETE;)e++;return e},On.prototype.isShallow=function(t,e,n,r){return at.distancePointLine(e,t,n)<r},On.prototype.collapseLine=function(){for(var t=new St,e=0;e<this._inputLine.length;e++)this._isDeleted[e]!==On.DELETE&&t.add(this._inputLine[e]);return t.toCoordinateArray()},On.prototype.interfaces_=function(){return[]},On.prototype.getClass=function(){return On},On.simplify=function(t,e){return new On(t).simplify(e)},Cn.INIT.get=function(){return 0},Cn.DELETE.get=function(){return 1},Cn.KEEP.get=function(){return 1},Cn.NUM_PTS_TO_CHECK.get=function(){return 10},Object.defineProperties(On,Cn);var Mn=function(){this._ptList=null,this._precisionModel=null,this._minimimVertexDistance=0,this._ptList=new xt},In={COORDINATE_ARRAY_TYPE:{configurable:!0}};Mn.prototype.getCoordinates=function(){return this._ptList.toArray(Mn.COORDINATE_ARRAY_TYPE)},Mn.prototype.setPrecisionModel=function(t){this._precisionModel=t},Mn.prototype.addPt=function(t){var e=new P(t);if(this._precisionModel.makePrecise(e),this.isRedundant(e))return null;this._ptList.add(e)},Mn.prototype.revere=function(){},Mn.prototype.addPts=function(t,e){if(e)for(var n=0;n<t.length;n++)this.addPt(t[n]);else for(var r=t.length-1;r>=0;r--)this.addPt(t[r])},Mn.prototype.isRedundant=function(t){if(this._ptList.size()<1)return!1;var e=this._ptList.get(this._ptList.size()-1);return t.distance(e)<this._minimimVertexDistance},Mn.prototype.toString=function(){return(new ve).createLineString(this.getCoordinates()).toString()},Mn.prototype.closeRing=function(){if(this._ptList.size()<1)return null;var t=new P(this._ptList.get(0)),e=this._ptList.get(this._ptList.size()-1);if(t.equals(e))return null;this._ptList.add(t)},Mn.prototype.setMinimumVertexDistance=function(t){this._minimimVertexDistance=t},Mn.prototype.interfaces_=function(){return[]},Mn.prototype.getClass=function(){return Mn},In.COORDINATE_ARRAY_TYPE.get=function(){return new Array(0).fill(null)},Object.defineProperties(Mn,In);var Tn=function(){},jn={PI_TIMES_2:{configurable:!0},PI_OVER_2:{configurable:!0},PI_OVER_4:{configurable:!0},COUNTERCLOCKWISE:{configurable:!0},CLOCKWISE:{configurable:!0},NONE:{configurable:!0}};Tn.prototype.interfaces_=function(){return[]},Tn.prototype.getClass=function(){return Tn},Tn.toDegrees=function(t){return 180*t/Math.PI},Tn.normalize=function(t){for(;t>Math.PI;)t-=Tn.PI_TIMES_2;for(;t<=-Math.PI;)t+=Tn.PI_TIMES_2;return t},Tn.angle=function(){if(1===arguments.length){var t=arguments[0];return Math.atan2(t.y,t.x)}if(2===arguments.length){var e=arguments[0],n=arguments[1],r=n.x-e.x,i=n.y-e.y;return Math.atan2(i,r)}},Tn.isAcute=function(t,e,n){var r=t.x-e.x,i=t.y-e.y;return r*(n.x-e.x)+i*(n.y-e.y)>0},Tn.isObtuse=function(t,e,n){var r=t.x-e.x,i=t.y-e.y;return r*(n.x-e.x)+i*(n.y-e.y)<0},Tn.interiorAngle=function(t,e,n){var r=Tn.angle(e,t),i=Tn.angle(e,n);return Math.abs(i-r)},Tn.normalizePositive=function(t){if(t<0){for(;t<0;)t+=Tn.PI_TIMES_2;t>=Tn.PI_TIMES_2&&(t=0)}else{for(;t>=Tn.PI_TIMES_2;)t-=Tn.PI_TIMES_2;t<0&&(t=0)}return t},Tn.angleBetween=function(t,e,n){var r=Tn.angle(e,t),i=Tn.angle(e,n);return Tn.diff(r,i)},Tn.diff=function(t,e){var n=null;return(n=t<e?e-t:t-e)>Math.PI&&(n=2*Math.PI-n),n},Tn.toRadians=function(t){return t*Math.PI/180},Tn.getTurn=function(t,e){var n=Math.sin(e-t);return n>0?Tn.COUNTERCLOCKWISE:n<0?Tn.CLOCKWISE:Tn.NONE},Tn.angleBetweenOriented=function(t,e,n){var r=Tn.angle(e,t),i=Tn.angle(e,n)-r;return i<=-Math.PI?i+Tn.PI_TIMES_2:i>Math.PI?i-Tn.PI_TIMES_2:i},jn.PI_TIMES_2.get=function(){return 2*Math.PI},jn.PI_OVER_2.get=function(){return Math.PI/2},jn.PI_OVER_4.get=function(){return Math.PI/4},jn.COUNTERCLOCKWISE.get=function(){return at.COUNTERCLOCKWISE},jn.CLOCKWISE.get=function(){return at.CLOCKWISE},jn.NONE.get=function(){return at.COLLINEAR},Object.defineProperties(Tn,jn);var Nn=function t(){this._maxCurveSegmentError=0,this._filletAngleQuantum=null,this._closingSegLengthFactor=1,this._segList=null,this._distance=0,this._precisionModel=null,this._bufParams=null,this._li=null,this._s0=null,this._s1=null,this._s2=null,this._seg0=new gn,this._seg1=new gn,this._offset0=new gn,this._offset1=new gn,this._side=0,this._hasNarrowConcaveAngle=!1;var e=arguments[0],n=arguments[1],r=arguments[2];this._precisionModel=e,this._bufParams=n,this._li=new it,this._filletAngleQuantum=Math.PI/2/n.getQuadrantSegments(),n.getQuadrantSegments()>=8&&n.getJoinStyle()===Pn.JOIN_ROUND&&(this._closingSegLengthFactor=t.MAX_CLOSING_SEG_LEN_FACTOR),this.init(r)},Dn={OFFSET_SEGMENT_SEPARATION_FACTOR:{configurable:!0},INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},CURVE_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},MAX_CLOSING_SEG_LEN_FACTOR:{configurable:!0}};Nn.prototype.addNextSegment=function(t,e){if(this._s0=this._s1,this._s1=this._s2,this._s2=t,this._seg0.setCoordinates(this._s0,this._s1),this.computeOffsetSegment(this._seg0,this._side,this._distance,this._offset0),this._seg1.setCoordinates(this._s1,this._s2),this.computeOffsetSegment(this._seg1,this._side,this._distance,this._offset1),this._s1.equals(this._s2))return null;var n=at.computeOrientation(this._s0,this._s1,this._s2),r=n===at.CLOCKWISE&&this._side===Se.LEFT||n===at.COUNTERCLOCKWISE&&this._side===Se.RIGHT;0===n?this.addCollinear(e):r?this.addOutsideTurn(n,e):this.addInsideTurn(n,e)},Nn.prototype.addLineEndCap=function(t,e){var n=new gn(t,e),r=new gn;this.computeOffsetSegment(n,Se.LEFT,this._distance,r);var i=new gn;this.computeOffsetSegment(n,Se.RIGHT,this._distance,i);var o=e.x-t.x,s=e.y-t.y,a=Math.atan2(s,o);switch(this._bufParams.getEndCapStyle()){case Pn.CAP_ROUND:this._segList.addPt(r.p1),this.addFilletArc(e,a+Math.PI/2,a-Math.PI/2,at.CLOCKWISE,this._distance),this._segList.addPt(i.p1);break;case Pn.CAP_FLAT:this._segList.addPt(r.p1),this._segList.addPt(i.p1);break;case Pn.CAP_SQUARE:var u=new P;u.x=Math.abs(this._distance)*Math.cos(a),u.y=Math.abs(this._distance)*Math.sin(a);var c=new P(r.p1.x+u.x,r.p1.y+u.y),l=new P(i.p1.x+u.x,i.p1.y+u.y);this._segList.addPt(c),this._segList.addPt(l)}},Nn.prototype.getCoordinates=function(){return this._segList.getCoordinates()},Nn.prototype.addMitreJoin=function(t,e,n,r){var i=!0,o=null;try{o=q.intersection(e.p0,e.p1,n.p0,n.p1),(r<=0?1:o.distance(t)/Math.abs(r))>this._bufParams.getMitreLimit()&&(i=!1)}catch(t){if(!(t instanceof G))throw t;o=new P(0,0),i=!1}i?this._segList.addPt(o):this.addLimitedMitreJoin(e,n,r,this._bufParams.getMitreLimit())},Nn.prototype.addFilletCorner=function(t,e,n,r,i){var o=e.x-t.x,s=e.y-t.y,a=Math.atan2(s,o),u=n.x-t.x,c=n.y-t.y,l=Math.atan2(c,u);r===at.CLOCKWISE?a<=l&&(a+=2*Math.PI):a>=l&&(a-=2*Math.PI),this._segList.addPt(e),this.addFilletArc(t,a,l,r,i),this._segList.addPt(n)},Nn.prototype.addOutsideTurn=function(t,e){if(this._offset0.p1.distance(this._offset1.p0)<this._distance*Nn.OFFSET_SEGMENT_SEPARATION_FACTOR)return this._segList.addPt(this._offset0.p1),null;this._bufParams.getJoinStyle()===Pn.JOIN_MITRE?this.addMitreJoin(this._s1,this._offset0,this._offset1,this._distance):this._bufParams.getJoinStyle()===Pn.JOIN_BEVEL?this.addBevelJoin(this._offset0,this._offset1):(e&&this._segList.addPt(this._offset0.p1),this.addFilletCorner(this._s1,this._offset0.p1,this._offset1.p0,t,this._distance),this._segList.addPt(this._offset1.p0))},Nn.prototype.createSquare=function(t){this._segList.addPt(new P(t.x+this._distance,t.y+this._distance)),this._segList.addPt(new P(t.x+this._distance,t.y-this._distance)),this._segList.addPt(new P(t.x-this._distance,t.y-this._distance)),this._segList.addPt(new P(t.x-this._distance,t.y+this._distance)),this._segList.closeRing()},Nn.prototype.addSegments=function(t,e){this._segList.addPts(t,e)},Nn.prototype.addFirstSegment=function(){this._segList.addPt(this._offset1.p0)},Nn.prototype.addLastSegment=function(){this._segList.addPt(this._offset1.p1)},Nn.prototype.initSideSegments=function(t,e,n){this._s1=t,this._s2=e,this._side=n,this._seg1.setCoordinates(t,e),this.computeOffsetSegment(this._seg1,n,this._distance,this._offset1)},Nn.prototype.addLimitedMitreJoin=function(t,e,n,r){var i=this._seg0.p1,o=Tn.angle(i,this._seg0.p0),s=Tn.angleBetweenOriented(this._seg0.p0,i,this._seg1.p1)/2,a=Tn.normalize(o+s),u=Tn.normalize(a+Math.PI),c=r*n,l=n-c*Math.abs(Math.sin(s)),h=i.x+c*Math.cos(u),p=i.y+c*Math.sin(u),f=new P(h,p),d=new gn(i,f),g=d.pointAlongOffset(1,l),y=d.pointAlongOffset(1,-l);this._side===Se.LEFT?(this._segList.addPt(g),this._segList.addPt(y)):(this._segList.addPt(y),this._segList.addPt(g))},Nn.prototype.computeOffsetSegment=function(t,e,n,r){var i=e===Se.LEFT?1:-1,o=t.p1.x-t.p0.x,s=t.p1.y-t.p0.y,a=Math.sqrt(o*o+s*s),u=i*n*o/a,c=i*n*s/a;r.p0.x=t.p0.x-c,r.p0.y=t.p0.y+u,r.p1.x=t.p1.x-c,r.p1.y=t.p1.y+u},Nn.prototype.addFilletArc=function(t,e,n,r,i){var o=r===at.CLOCKWISE?-1:1,s=Math.abs(e-n),a=Math.trunc(s/this._filletAngleQuantum+.5);if(a<1)return null;for(var u=s/a,c=0,l=new P;c<s;){var h=e+o*c;l.x=t.x+i*Math.cos(h),l.y=t.y+i*Math.sin(h),this._segList.addPt(l),c+=u}},Nn.prototype.addInsideTurn=function(t,e){if(this._li.computeIntersection(this._offset0.p0,this._offset0.p1,this._offset1.p0,this._offset1.p1),this._li.hasIntersection())this._segList.addPt(this._li.getIntersection(0));else if(this._hasNarrowConcaveAngle=!0,this._offset0.p1.distance(this._offset1.p0)<this._distance*Nn.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR)this._segList.addPt(this._offset0.p1);else{if(this._segList.addPt(this._offset0.p1),this._closingSegLengthFactor>0){var n=new P((this._closingSegLengthFactor*this._offset0.p1.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset0.p1.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(n);var r=new P((this._closingSegLengthFactor*this._offset1.p0.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset1.p0.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(r)}else this._segList.addPt(this._s1);this._segList.addPt(this._offset1.p0)}},Nn.prototype.createCircle=function(t){var e=new P(t.x+this._distance,t.y);this._segList.addPt(e),this.addFilletArc(t,0,2*Math.PI,-1,this._distance),this._segList.closeRing()},Nn.prototype.addBevelJoin=function(t,e){this._segList.addPt(t.p1),this._segList.addPt(e.p0)},Nn.prototype.init=function(t){this._distance=t,this._maxCurveSegmentError=t*(1-Math.cos(this._filletAngleQuantum/2)),this._segList=new Mn,this._segList.setPrecisionModel(this._precisionModel),this._segList.setMinimumVertexDistance(t*Nn.CURVE_VERTEX_SNAP_DISTANCE_FACTOR)},Nn.prototype.addCollinear=function(t){this._li.computeIntersection(this._s0,this._s1,this._s1,this._s2),this._li.getIntersectionNum()>=2&&(this._bufParams.getJoinStyle()===Pn.JOIN_BEVEL||this._bufParams.getJoinStyle()===Pn.JOIN_MITRE?(t&&this._segList.addPt(this._offset0.p1),this._segList.addPt(this._offset1.p0)):this.addFilletCorner(this._s1,this._offset0.p1,this._offset1.p0,at.CLOCKWISE,this._distance))},Nn.prototype.closeRing=function(){this._segList.closeRing()},Nn.prototype.hasNarrowConcaveAngle=function(){return this._hasNarrowConcaveAngle},Nn.prototype.interfaces_=function(){return[]},Nn.prototype.getClass=function(){return Nn},Dn.OFFSET_SEGMENT_SEPARATION_FACTOR.get=function(){return.001},Dn.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return.001},Dn.CURVE_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return 1e-6},Dn.MAX_CLOSING_SEG_LEN_FACTOR.get=function(){return 80},Object.defineProperties(Nn,Dn);var An=function(){this._distance=0,this._precisionModel=null,this._bufParams=null;var t=arguments[0],e=arguments[1];this._precisionModel=t,this._bufParams=e};An.prototype.getOffsetCurve=function(t,e){if(this._distance=e,0===e)return null;var n=e<0,r=Math.abs(e),i=this.getSegGen(r);t.length<=1?this.computePointCurve(t[0],i):this.computeOffsetCurve(t,n,i);var o=i.getCoordinates();return n&&Ot.reverse(o),o},An.prototype.computeSingleSidedBufferCurve=function(t,e,n){var r=this.simplifyTolerance(this._distance);if(e){n.addSegments(t,!0);var i=On.simplify(t,-r),o=i.length-1;n.initSideSegments(i[o],i[o-1],Se.LEFT),n.addFirstSegment();for(var s=o-2;s>=0;s--)n.addNextSegment(i[s],!0)}else{n.addSegments(t,!1);var a=On.simplify(t,r),u=a.length-1;n.initSideSegments(a[0],a[1],Se.LEFT),n.addFirstSegment();for(var c=2;c<=u;c++)n.addNextSegment(a[c],!0)}n.addLastSegment(),n.closeRing()},An.prototype.computeRingBufferCurve=function(t,e,n){var r=this.simplifyTolerance(this._distance);e===Se.RIGHT&&(r=-r);var i=On.simplify(t,r),o=i.length-1;n.initSideSegments(i[o-1],i[0],e);for(var s=1;s<=o;s++){var a=1!==s;n.addNextSegment(i[s],a)}n.closeRing()},An.prototype.computeLineBufferCurve=function(t,e){var n=this.simplifyTolerance(this._distance),r=On.simplify(t,n),i=r.length-1;e.initSideSegments(r[0],r[1],Se.LEFT);for(var o=2;o<=i;o++)e.addNextSegment(r[o],!0);e.addLastSegment(),e.addLineEndCap(r[i-1],r[i]);var s=On.simplify(t,-n),a=s.length-1;e.initSideSegments(s[a],s[a-1],Se.LEFT);for(var u=a-2;u>=0;u--)e.addNextSegment(s[u],!0);e.addLastSegment(),e.addLineEndCap(s[1],s[0]),e.closeRing()},An.prototype.computePointCurve=function(t,e){switch(this._bufParams.getEndCapStyle()){case Pn.CAP_ROUND:e.createCircle(t);break;case Pn.CAP_SQUARE:e.createSquare(t)}},An.prototype.getLineCurve=function(t,e){if(this._distance=e,e<0&&!this._bufParams.isSingleSided())return null;if(0===e)return null;var n=Math.abs(e),r=this.getSegGen(n);if(t.length<=1)this.computePointCurve(t[0],r);else if(this._bufParams.isSingleSided()){var i=e<0;this.computeSingleSidedBufferCurve(t,i,r)}else this.computeLineBufferCurve(t,r);return r.getCoordinates()},An.prototype.getBufferParameters=function(){return this._bufParams},An.prototype.simplifyTolerance=function(t){return t*this._bufParams.getSimplifyFactor()},An.prototype.getRingCurve=function(t,e,n){if(this._distance=n,t.length<=2)return this.getLineCurve(t,n);if(0===n)return An.copyCoordinates(t);var r=this.getSegGen(n);return this.computeRingBufferCurve(t,e,r),r.getCoordinates()},An.prototype.computeOffsetCurve=function(t,e,n){var r=this.simplifyTolerance(this._distance);if(e){var i=On.simplify(t,-r),o=i.length-1;n.initSideSegments(i[o],i[o-1],Se.LEFT),n.addFirstSegment();for(var s=o-2;s>=0;s--)n.addNextSegment(i[s],!0)}else{var a=On.simplify(t,r),u=a.length-1;n.initSideSegments(a[0],a[1],Se.LEFT),n.addFirstSegment();for(var c=2;c<=u;c++)n.addNextSegment(a[c],!0)}n.addLastSegment()},An.prototype.getSegGen=function(t){return new Nn(this._precisionModel,this._bufParams,t)},An.prototype.interfaces_=function(){return[]},An.prototype.getClass=function(){return An},An.copyCoordinates=function(t){for(var e=new Array(t.length).fill(null),n=0;n<e.length;n++)e[n]=new P(t[n]);return e};var Rn=function(){this._subgraphs=null,this._seg=new gn,this._cga=new at;var t=arguments[0];this._subgraphs=t},Fn={DepthSegment:{configurable:!0}};Rn.prototype.findStabbedSegments=function(){if(1===arguments.length){for(var t=arguments[0],e=new xt,n=this._subgraphs.iterator();n.hasNext();){var r=n.next(),i=r.getEnvelope();t.y<i.getMinY()||t.y>i.getMaxY()||this.findStabbedSegments(t,r.getDirectedEdges(),e)}return e}if(3===arguments.length)if(T(arguments[2],Et)&&arguments[0]instanceof P&&arguments[1]instanceof Ue){for(var o=arguments[0],s=arguments[1],a=arguments[2],u=s.getEdge().getCoordinates(),c=0;c<u.length-1;c++)if(this._seg.p0=u[c],this._seg.p1=u[c+1],this._seg.p0.y>this._seg.p1.y&&this._seg.reverse(),!(Math.max(this._seg.p0.x,this._seg.p1.x)<o.x||this._seg.isHorizontal()||o.y<this._seg.p0.y||o.y>this._seg.p1.y||at.computeOrientation(this._seg.p0,this._seg.p1,o)===at.RIGHT)){var l=s.getDepth(Se.LEFT);this._seg.p0.equals(u[c])||(l=s.getDepth(Se.RIGHT));var h=new Ln(this._seg,l);a.add(h)}}else if(T(arguments[2],Et)&&arguments[0]instanceof P&&T(arguments[1],Et))for(var p=arguments[0],f=arguments[2],d=arguments[1].iterator();d.hasNext();){var g=d.next();g.isForward()&&this.findStabbedSegments(p,g,f)}},Rn.prototype.getDepth=function(t){var e=this.findStabbedSegments(t);return 0===e.size()?0:Ke.min(e)._leftDepth},Rn.prototype.interfaces_=function(){return[]},Rn.prototype.getClass=function(){return Rn},Fn.DepthSegment.get=function(){return Ln},Object.defineProperties(Rn,Fn);var Ln=function(){this._upwardSeg=null,this._leftDepth=null;var t=arguments[0],e=arguments[1];this._upwardSeg=new gn(t),this._leftDepth=e};Ln.prototype.compareTo=function(t){var e=t;if(this._upwardSeg.minX()>=e._upwardSeg.maxX())return 1;if(this._upwardSeg.maxX()<=e._upwardSeg.minX())return-1;var n=this._upwardSeg.orientationIndex(e._upwardSeg);return 0!==n||0!=(n=-1*e._upwardSeg.orientationIndex(this._upwardSeg))?n:this._upwardSeg.compareTo(e._upwardSeg)},Ln.prototype.compareX=function(t,e){var n=t.p0.compareTo(e.p0);return 0!==n?n:t.p1.compareTo(e.p1)},Ln.prototype.toString=function(){return this._upwardSeg.toString()},Ln.prototype.interfaces_=function(){return[w]},Ln.prototype.getClass=function(){return Ln};var kn=function(t,e,n){this.p0=t||null,this.p1=e||null,this.p2=n||null};kn.prototype.area=function(){return kn.area(this.p0,this.p1,this.p2)},kn.prototype.signedArea=function(){return kn.signedArea(this.p0,this.p1,this.p2)},kn.prototype.interpolateZ=function(t){if(null===t)throw new m("Supplied point is null.");return kn.interpolateZ(t,this.p0,this.p1,this.p2)},kn.prototype.longestSideLength=function(){return kn.longestSideLength(this.p0,this.p1,this.p2)},kn.prototype.isAcute=function(){return kn.isAcute(this.p0,this.p1,this.p2)},kn.prototype.circumcentre=function(){return kn.circumcentre(this.p0,this.p1,this.p2)},kn.prototype.area3D=function(){return kn.area3D(this.p0,this.p1,this.p2)},kn.prototype.centroid=function(){return kn.centroid(this.p0,this.p1,this.p2)},kn.prototype.inCentre=function(){return kn.inCentre(this.p0,this.p1,this.p2)},kn.prototype.interfaces_=function(){return[]},kn.prototype.getClass=function(){return kn},kn.area=function(t,e,n){return Math.abs(((n.x-t.x)*(e.y-t.y)-(e.x-t.x)*(n.y-t.y))/2)},kn.signedArea=function(t,e,n){return((n.x-t.x)*(e.y-t.y)-(e.x-t.x)*(n.y-t.y))/2},kn.det=function(t,e,n,r){return t*r-e*n},kn.interpolateZ=function(t,e,n,r){var i=e.x,o=e.y,s=n.x-i,a=r.x-i,u=n.y-o,c=r.y-o,l=s*c-a*u,h=t.x-i,p=t.y-o,f=(c*h-a*p)/l,d=(-u*h+s*p)/l;return e.z+f*(n.z-e.z)+d*(r.z-e.z)},kn.longestSideLength=function(t,e,n){var r=t.distance(e),i=e.distance(n),o=n.distance(t),s=r;return i>s&&(s=i),o>s&&(s=o),s},kn.isAcute=function(t,e,n){return!!Tn.isAcute(t,e,n)&&!!Tn.isAcute(e,n,t)&&!!Tn.isAcute(n,t,e)},kn.circumcentre=function(t,e,n){var r=n.x,i=n.y,o=t.x-r,s=t.y-i,a=e.x-r,u=e.y-i,c=2*kn.det(o,s,a,u),l=kn.det(s,o*o+s*s,u,a*a+u*u),h=kn.det(o,o*o+s*s,a,a*a+u*u);return new P(r-l/c,i+h/c)},kn.perpendicularBisector=function(t,e){var n=e.x-t.x,r=e.y-t.y,i=new q(t.x+n/2,t.y+r/2,1),o=new q(t.x-r+n/2,t.y+n+r/2,1);return new q(i,o)},kn.angleBisector=function(t,e,n){var r=e.distance(t),i=r/(r+e.distance(n)),o=n.x-t.x,s=n.y-t.y;return new P(t.x+i*o,t.y+i*s)},kn.area3D=function(t,e,n){var r=e.x-t.x,i=e.y-t.y,o=e.z-t.z,s=n.x-t.x,a=n.y-t.y,u=n.z-t.z,c=i*u-o*a,l=o*s-r*u,h=r*a-i*s,p=c*c+l*l+h*h;return Math.sqrt(p)/2},kn.centroid=function(t,e,n){var r=(t.x+e.x+n.x)/3,i=(t.y+e.y+n.y)/3;return new P(r,i)},kn.inCentre=function(t,e,n){var r=e.distance(n),i=t.distance(n),o=t.distance(e),s=r+i+o,a=(r*t.x+i*e.x+o*n.x)/s,u=(r*t.y+i*e.y+o*n.y)/s;return new P(a,u)};var Vn=function(){this._inputGeom=null,this._distance=null,this._curveBuilder=null,this._curveList=new xt;var t=arguments[0],e=arguments[1],n=arguments[2];this._inputGeom=t,this._distance=e,this._curveBuilder=n};Vn.prototype.addPoint=function(t){if(this._distance<=0)return null;var e=t.getCoordinates(),n=this._curveBuilder.getLineCurve(e,this._distance);this.addCurve(n,M.EXTERIOR,M.INTERIOR)},Vn.prototype.addPolygon=function(t){var e=this._distance,n=Se.LEFT;this._distance<0&&(e=-this._distance,n=Se.RIGHT);var r=t.getExteriorRing(),i=Ot.removeRepeatedPoints(r.getCoordinates());if(this._distance<0&&this.isErodedCompletely(r,this._distance))return null;if(this._distance<=0&&i.length<3)return null;this.addPolygonRing(i,e,n,M.EXTERIOR,M.INTERIOR);for(var o=0;o<t.getNumInteriorRing();o++){var s=t.getInteriorRingN(o),a=Ot.removeRepeatedPoints(s.getCoordinates());this._distance>0&&this.isErodedCompletely(s,-this._distance)||this.addPolygonRing(a,e,Se.opposite(n),M.INTERIOR,M.EXTERIOR)}},Vn.prototype.isTriangleErodedCompletely=function(t,e){var n=new kn(t[0],t[1],t[2]),r=n.inCentre();return at.distancePointLine(r,n.p0,n.p1)<Math.abs(e)},Vn.prototype.addLineString=function(t){if(this._distance<=0&&!this._curveBuilder.getBufferParameters().isSingleSided())return null;var e=Ot.removeRepeatedPoints(t.getCoordinates()),n=this._curveBuilder.getLineCurve(e,this._distance);this.addCurve(n,M.EXTERIOR,M.INTERIOR)},Vn.prototype.addCurve=function(t,e,n){if(null===t||t.length<2)return null;var r=new dn(t,new Ne(0,M.BOUNDARY,e,n));this._curveList.add(r)},Vn.prototype.getCurves=function(){return this.add(this._inputGeom),this._curveList},Vn.prototype.addPolygonRing=function(t,e,n,r,i){if(0===e&&t.length<ee.MINIMUM_VALID_SIZE)return null;var o=r,s=i;t.length>=ee.MINIMUM_VALID_SIZE&&at.isCCW(t)&&(o=i,s=r,n=Se.opposite(n));var a=this._curveBuilder.getRingCurve(t,n,e);this.addCurve(a,o,s)},Vn.prototype.add=function(t){if(t.isEmpty())return null;t instanceof Kt?this.addPolygon(t):t instanceof Jt?this.addLineString(t):t instanceof Zt?this.addPoint(t):(t instanceof te||t instanceof Gt||t instanceof ne||t instanceof Ut)&&this.addCollection(t)},Vn.prototype.isErodedCompletely=function(t,e){var n=t.getCoordinates();if(n.length<4)return e<0;if(4===n.length)return this.isTriangleErodedCompletely(n,e);var r=t.getEnvelopeInternal(),i=Math.min(r.getHeight(),r.getWidth());return e<0&&2*Math.abs(e)>i},Vn.prototype.addCollection=function(t){for(var e=0;e<t.getNumGeometries();e++){var n=t.getGeometryN(e);this.add(n)}},Vn.prototype.interfaces_=function(){return[]},Vn.prototype.getClass=function(){return Vn};var Bn=function(){};Bn.prototype.locate=function(t){},Bn.prototype.interfaces_=function(){return[]},Bn.prototype.getClass=function(){return Bn};var zn=function(){this._parent=null,this._atStart=null,this._max=null,this._index=null,this._subcollectionIterator=null;var t=arguments[0];this._parent=t,this._atStart=!0,this._index=0,this._max=t.getNumGeometries()};zn.prototype.next=function(){if(this._atStart)return this._atStart=!1,zn.isAtomic(this._parent)&&this._index++,this._parent;if(null!==this._subcollectionIterator){if(this._subcollectionIterator.hasNext())return this._subcollectionIterator.next();this._subcollectionIterator=null}if(this._index>=this._max)throw new r;var t=this._parent.getGeometryN(this._index++);return t instanceof Ut?(this._subcollectionIterator=new zn(t),this._subcollectionIterator.next()):t},zn.prototype.remove=function(){throw new Error(this.getClass().getName())},zn.prototype.hasNext=function(){if(this._atStart)return!0;if(null!==this._subcollectionIterator){if(this._subcollectionIterator.hasNext())return!0;this._subcollectionIterator=null}return!(this._index>=this._max)},zn.prototype.interfaces_=function(){return[wt]},zn.prototype.getClass=function(){return zn},zn.isAtomic=function(t){return!(t instanceof Ut)};var Un=function(){this._geom=null;var t=arguments[0];this._geom=t};Un.prototype.locate=function(t){return Un.locate(t,this._geom)},Un.prototype.interfaces_=function(){return[Bn]},Un.prototype.getClass=function(){return Un},Un.isPointInRing=function(t,e){return!!e.getEnvelopeInternal().intersects(t)&&at.isPointInRing(t,e.getCoordinates())},Un.containsPointInPolygon=function(t,e){if(e.isEmpty())return!1;var n=e.getExteriorRing();if(!Un.isPointInRing(t,n))return!1;for(var r=0;r<e.getNumInteriorRing();r++){var i=e.getInteriorRingN(r);if(Un.isPointInRing(t,i))return!1}return!0},Un.containsPoint=function(t,e){if(e instanceof Kt)return Un.containsPointInPolygon(t,e);if(e instanceof Ut)for(var n=new zn(e);n.hasNext();){var r=n.next();if(r!==e&&Un.containsPoint(t,r))return!0}return!1},Un.locate=function(t,e){return e.isEmpty()?M.EXTERIOR:Un.containsPoint(t,e)?M.INTERIOR:M.EXTERIOR};var Gn=function(){this._edgeMap=new h,this._edgeList=null,this._ptInAreaLocation=[M.NONE,M.NONE]};Gn.prototype.getNextCW=function(t){this.getEdges();var e=this._edgeList.indexOf(t),n=e-1;return 0===e&&(n=this._edgeList.size()-1),this._edgeList.get(n)},Gn.prototype.propagateSideLabels=function(t){for(var e=M.NONE,n=this.iterator();n.hasNext();){var r=n.next().getLabel();r.isArea(t)&&r.getLocation(t,Se.LEFT)!==M.NONE&&(e=r.getLocation(t,Se.LEFT))}if(e===M.NONE)return null;for(var i=e,o=this.iterator();o.hasNext();){var s=o.next(),a=s.getLabel();if(a.getLocation(t,Se.ON)===M.NONE&&a.setLocation(t,Se.ON,i),a.isArea(t)){var u=a.getLocation(t,Se.LEFT),c=a.getLocation(t,Se.RIGHT);if(c!==M.NONE){if(c!==i)throw new Me("side location conflict",s.getCoordinate());u===M.NONE&&et.shouldNeverReachHere("found single null side (at "+s.getCoordinate()+")"),i=u}else et.isTrue(a.getLocation(t,Se.LEFT)===M.NONE,"found single null side"),a.setLocation(t,Se.RIGHT,i),a.setLocation(t,Se.LEFT,i)}}},Gn.prototype.getCoordinate=function(){var t=this.iterator();return t.hasNext()?t.next().getCoordinate():null},Gn.prototype.print=function(t){W.out.println("EdgeEndStar: "+this.getCoordinate());for(var e=this.iterator();e.hasNext();)e.next().print(t)},Gn.prototype.isAreaLabelsConsistent=function(t){return this.computeEdgeEndLabels(t.getBoundaryNodeRule()),this.checkAreaLabelsConsistent(0)},Gn.prototype.checkAreaLabelsConsistent=function(t){var e=this.getEdges();if(e.size()<=0)return!0;var n=e.size()-1,r=e.get(n).getLabel().getLocation(t,Se.LEFT);et.isTrue(r!==M.NONE,"Found unlabelled area edge");for(var i=r,o=this.iterator();o.hasNext();){var s=o.next().getLabel();et.isTrue(s.isArea(t),"Found non-area edge");var a=s.getLocation(t,Se.LEFT),u=s.getLocation(t,Se.RIGHT);if(a===u)return!1;if(u!==i)return!1;i=a}return!0},Gn.prototype.findIndex=function(t){this.iterator();for(var e=0;e<this._edgeList.size();e++)if(this._edgeList.get(e)===t)return e;return-1},Gn.prototype.iterator=function(){return this.getEdges().iterator()},Gn.prototype.getEdges=function(){return null===this._edgeList&&(this._edgeList=new xt(this._edgeMap.values())),this._edgeList},Gn.prototype.getLocation=function(t,e,n){return this._ptInAreaLocation[t]===M.NONE&&(this._ptInAreaLocation[t]=Un.locate(e,n[t].getGeometry())),this._ptInAreaLocation[t]},Gn.prototype.toString=function(){var t=new D;t.append("EdgeEndStar: "+this.getCoordinate()),t.append("\n");for(var e=this.iterator();e.hasNext();){var n=e.next();t.append(n),t.append("\n")}return t.toString()},Gn.prototype.computeEdgeEndLabels=function(t){for(var e=this.iterator();e.hasNext();)e.next().computeLabel(t)},Gn.prototype.computeLabelling=function(t){this.computeEdgeEndLabels(t[0].getBoundaryNodeRule()),this.propagateSideLabels(0),this.propagateSideLabels(1);for(var e=[!1,!1],n=this.iterator();n.hasNext();)for(var r=n.next().getLabel(),i=0;i<2;i++)r.isLine(i)&&r.getLocation(i)===M.BOUNDARY&&(e[i]=!0);for(var o=this.iterator();o.hasNext();)for(var s=o.next(),a=s.getLabel(),u=0;u<2;u++)if(a.isAnyNull(u)){var c=M.NONE;if(e[u])c=M.EXTERIOR;else{var l=s.getCoordinate();c=this.getLocation(u,l,t)}a.setAllLocationsIfNull(u,c)}},Gn.prototype.getDegree=function(){return this._edgeMap.size()},Gn.prototype.insertEdgeEnd=function(t,e){this._edgeMap.put(t,e),this._edgeList=null},Gn.prototype.interfaces_=function(){return[]},Gn.prototype.getClass=function(){return Gn};var Wn=function(t){function e(){t.call(this),this._resultAreaEdgeList=null,this._label=null,this._SCANNING_FOR_INCOMING=1,this._LINKING_TO_OUTGOING=2}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.linkResultDirectedEdges=function(){this.getResultAreaEdges();for(var t=null,e=null,n=this._SCANNING_FOR_INCOMING,r=0;r<this._resultAreaEdgeList.size();r++){var i=this._resultAreaEdgeList.get(r),o=i.getSym();if(i.getLabel().isArea())switch(null===t&&i.isInResult()&&(t=i),n){case this._SCANNING_FOR_INCOMING:if(!o.isInResult())continue;e=o,n=this._LINKING_TO_OUTGOING;break;case this._LINKING_TO_OUTGOING:if(!i.isInResult())continue;e.setNext(i),n=this._SCANNING_FOR_INCOMING}}if(n===this._LINKING_TO_OUTGOING){if(null===t)throw new Me("no outgoing dirEdge found",this.getCoordinate());et.isTrue(t.isInResult(),"unable to link last incoming dirEdge"),e.setNext(t)}},e.prototype.insert=function(t){var e=t;this.insertEdgeEnd(e,e)},e.prototype.getRightmostEdge=function(){var t=this.getEdges(),e=t.size();if(e<1)return null;var n=t.get(0);if(1===e)return n;var r=t.get(e-1),i=n.getQuadrant(),o=r.getQuadrant();return Ve.isNorthern(i)&&Ve.isNorthern(o)?n:Ve.isNorthern(i)||Ve.isNorthern(o)?0!==n.getDy()?n:0!==r.getDy()?r:(et.shouldNeverReachHere("found two horizontal edges incident on node"),null):r},e.prototype.print=function(t){W.out.println("DirectedEdgeStar: "+this.getCoordinate());for(var e=this.iterator();e.hasNext();){var n=e.next();t.print("out "),n.print(t),t.println(),t.print("in "),n.getSym().print(t),t.println()}},e.prototype.getResultAreaEdges=function(){if(null!==this._resultAreaEdgeList)return this._resultAreaEdgeList;this._resultAreaEdgeList=new xt;for(var t=this.iterator();t.hasNext();){var e=t.next();(e.isInResult()||e.getSym().isInResult())&&this._resultAreaEdgeList.add(e)}return this._resultAreaEdgeList},e.prototype.updateLabelling=function(t){for(var e=this.iterator();e.hasNext();){var n=e.next().getLabel();n.setAllLocationsIfNull(0,t.getLocation(0)),n.setAllLocationsIfNull(1,t.getLocation(1))}},e.prototype.linkAllDirectedEdges=function(){this.getEdges();for(var t=null,e=null,n=this._edgeList.size()-1;n>=0;n--){var r=this._edgeList.get(n),i=r.getSym();null===e&&(e=i),null!==t&&i.setNext(t),t=r}e.setNext(t)},e.prototype.computeDepths=function(){if(1===arguments.length){var t=arguments[0],e=this.findIndex(t),n=t.getDepth(Se.LEFT),r=t.getDepth(Se.RIGHT),i=this.computeDepths(e+1,this._edgeList.size(),n);if(this.computeDepths(0,e,i)!==r)throw new Me("depth mismatch at "+t.getCoordinate())}else if(3===arguments.length){for(var o=arguments[1],s=arguments[2],a=arguments[0];a<o;a++){var u=this._edgeList.get(a);u.setEdgeDepths(Se.RIGHT,s),s=u.getDepth(Se.LEFT)}return s}},e.prototype.mergeSymLabels=function(){for(var t=this.iterator();t.hasNext();){var e=t.next();e.getLabel().merge(e.getSym().getLabel())}},e.prototype.linkMinimalDirectedEdges=function(t){for(var e=null,n=null,r=this._SCANNING_FOR_INCOMING,i=this._resultAreaEdgeList.size()-1;i>=0;i--){var o=this._resultAreaEdgeList.get(i),s=o.getSym();switch(null===e&&o.getEdgeRing()===t&&(e=o),r){case this._SCANNING_FOR_INCOMING:if(s.getEdgeRing()!==t)continue;n=s,r=this._LINKING_TO_OUTGOING;break;case this._LINKING_TO_OUTGOING:if(o.getEdgeRing()!==t)continue;n.setNextMin(o),r=this._SCANNING_FOR_INCOMING}}r===this._LINKING_TO_OUTGOING&&(et.isTrue(null!==e,"found null for first outgoing dirEdge"),et.isTrue(e.getEdgeRing()===t,"unable to link last incoming dirEdge"),n.setNextMin(e))},e.prototype.getOutgoingDegree=function(){if(0===arguments.length){for(var t=0,e=this.iterator();e.hasNext();)e.next().isInResult()&&t++;return t}if(1===arguments.length){for(var n=arguments[0],r=0,i=this.iterator();i.hasNext();)i.next().getEdgeRing()===n&&r++;return r}},e.prototype.getLabel=function(){return this._label},e.prototype.findCoveredLineEdges=function(){for(var t=M.NONE,e=this.iterator();e.hasNext();){var n=e.next(),r=n.getSym();if(!n.isLineEdge()){if(n.isInResult()){t=M.INTERIOR;break}if(r.isInResult()){t=M.EXTERIOR;break}}}if(t===M.NONE)return null;for(var i=t,o=this.iterator();o.hasNext();){var s=o.next(),a=s.getSym();s.isLineEdge()?s.getEdge().setCovered(i===M.INTERIOR):(s.isInResult()&&(i=M.EXTERIOR),a.isInResult()&&(i=M.INTERIOR))}},e.prototype.computeLabelling=function(e){t.prototype.computeLabelling.call(this,e),this._label=new Ne(M.NONE);for(var n=this.iterator();n.hasNext();)for(var r=n.next().getEdge().getLabel(),i=0;i<2;i++){var o=r.getLocation(i);o!==M.INTERIOR&&o!==M.BOUNDARY||this._label.setLocation(i,M.INTERIOR)}},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Gn),qn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createNode=function(t){return new Le(t,new Wn)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Ge),Xn=function t(){this._pts=null,this._orientation=null;var e=arguments[0];this._pts=e,this._orientation=t.orientation(e)};Xn.prototype.compareTo=function(t){var e=t;return Xn.compareOriented(this._pts,this._orientation,e._pts,e._orientation)},Xn.prototype.interfaces_=function(){return[w]},Xn.prototype.getClass=function(){return Xn},Xn.orientation=function(t){return 1===Ot.increasingDirection(t)},Xn.compareOriented=function(t,e,n,r){for(var i=e?1:-1,o=r?1:-1,s=e?t.length:-1,a=r?n.length:-1,u=e?0:t.length-1,c=r?0:n.length-1;;){var l=t[u].compareTo(n[c]);if(0!==l)return l;var h=(u+=i)===s,p=(c+=o)===a;if(h&&!p)return-1;if(!h&&p)return 1;if(h&&p)return 0}};var Hn=function(){this._edges=new xt,this._ocaMap=new h};Hn.prototype.print=function(t){t.print("MULTILINESTRING ( ");for(var e=0;e<this._edges.size();e++){var n=this._edges.get(e);e>0&&t.print(","),t.print("(");for(var r=n.getCoordinates(),i=0;i<r.length;i++)i>0&&t.print(","),t.print(r[i].x+" "+r[i].y);t.println(")")}t.print(") ")},Hn.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next())},Hn.prototype.findEdgeIndex=function(t){for(var e=0;e<this._edges.size();e++)if(this._edges.get(e).equals(t))return e;return-1},Hn.prototype.iterator=function(){return this._edges.iterator()},Hn.prototype.getEdges=function(){return this._edges},Hn.prototype.get=function(t){return this._edges.get(t)},Hn.prototype.findEqualEdge=function(t){var e=new Xn(t.getCoordinates());return this._ocaMap.get(e)},Hn.prototype.add=function(t){this._edges.add(t);var e=new Xn(t.getCoordinates());this._ocaMap.put(e,t)},Hn.prototype.interfaces_=function(){return[]},Hn.prototype.getClass=function(){return Hn};var Yn=function(){};Yn.prototype.processIntersections=function(t,e,n,r){},Yn.prototype.isDone=function(){},Yn.prototype.interfaces_=function(){return[]},Yn.prototype.getClass=function(){return Yn};var Jn=function(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._hasInterior=!1,this._properIntersectionPoint=null,this._li=null,this._isSelfIntersection=null,this.numIntersections=0,this.numInteriorIntersections=0,this.numProperIntersections=0,this.numTests=0;var t=arguments[0];this._li=t};Jn.prototype.isTrivialIntersection=function(t,e,n,r){if(t===n&&1===this._li.getIntersectionNum()){if(Jn.isAdjacentSegments(e,r))return!0;if(t.isClosed()){var i=t.size()-1;if(0===e&&r===i||0===r&&e===i)return!0}}return!1},Jn.prototype.getProperIntersectionPoint=function(){return this._properIntersectionPoint},Jn.prototype.hasProperInteriorIntersection=function(){return this._hasProperInterior},Jn.prototype.getLineIntersector=function(){return this._li},Jn.prototype.hasProperIntersection=function(){return this._hasProper},Jn.prototype.processIntersections=function(t,e,n,r){if(t===n&&e===r)return null;this.numTests++;var i=t.getCoordinates()[e],o=t.getCoordinates()[e+1],s=n.getCoordinates()[r],a=n.getCoordinates()[r+1];this._li.computeIntersection(i,o,s,a),this._li.hasIntersection()&&(this.numIntersections++,this._li.isInteriorIntersection()&&(this.numInteriorIntersections++,this._hasInterior=!0),this.isTrivialIntersection(t,e,n,r)||(this._hasIntersection=!0,t.addIntersections(this._li,e,0),n.addIntersections(this._li,r,1),this._li.isProper()&&(this.numProperIntersections++,this._hasProper=!0,this._hasProperInterior=!0)))},Jn.prototype.hasIntersection=function(){return this._hasIntersection},Jn.prototype.isDone=function(){return!1},Jn.prototype.hasInteriorIntersection=function(){return this._hasInterior},Jn.prototype.interfaces_=function(){return[Yn]},Jn.prototype.getClass=function(){return Jn},Jn.isAdjacentSegments=function(t,e){return 1===Math.abs(t-e)};var $n=function(){this.coord=null,this.segmentIndex=null,this.dist=null;var t=arguments[0],e=arguments[1],n=arguments[2];this.coord=new P(t),this.segmentIndex=e,this.dist=n};$n.prototype.getSegmentIndex=function(){return this.segmentIndex},$n.prototype.getCoordinate=function(){return this.coord},$n.prototype.print=function(t){t.print(this.coord),t.print(" seg # = "+this.segmentIndex),t.println(" dist = "+this.dist)},$n.prototype.compareTo=function(t){var e=t;return this.compare(e.segmentIndex,e.dist)},$n.prototype.isEndPoint=function(t){return 0===this.segmentIndex&&0===this.dist||this.segmentIndex===t},$n.prototype.toString=function(){return this.coord+" seg # = "+this.segmentIndex+" dist = "+this.dist},$n.prototype.getDistance=function(){return this.dist},$n.prototype.compare=function(t,e){return this.segmentIndex<t?-1:this.segmentIndex>t?1:this.dist<e?-1:this.dist>e?1:0},$n.prototype.interfaces_=function(){return[w]},$n.prototype.getClass=function(){return $n};var Zn=function(){this._nodeMap=new h,this.edge=null;var t=arguments[0];this.edge=t};Zn.prototype.print=function(t){t.println("Intersections:");for(var e=this.iterator();e.hasNext();)e.next().print(t)},Zn.prototype.iterator=function(){return this._nodeMap.values().iterator()},Zn.prototype.addSplitEdges=function(t){this.addEndpoints();for(var e=this.iterator(),n=e.next();e.hasNext();){var r=e.next(),i=this.createSplitEdge(n,r);t.add(i),n=r}},Zn.prototype.addEndpoints=function(){var t=this.edge.pts.length-1;this.add(this.edge.pts[0],0,0),this.add(this.edge.pts[t],t,0)},Zn.prototype.createSplitEdge=function(t,e){var n=e.segmentIndex-t.segmentIndex+2,r=this.edge.pts[e.segmentIndex],i=e.dist>0||!e.coord.equals2D(r);i||n--;var o=new Array(n).fill(null),s=0;o[s++]=new P(t.coord);for(var a=t.segmentIndex+1;a<=e.segmentIndex;a++)o[s++]=this.edge.pts[a];return i&&(o[s]=e.coord),new nr(o,new Ne(this.edge._label))},Zn.prototype.add=function(t,e,n){var r=new $n(t,e,n),i=this._nodeMap.get(r);return null!==i?i:(this._nodeMap.put(r,r),r)},Zn.prototype.isIntersection=function(t){for(var e=this.iterator();e.hasNext();)if(e.next().coord.equals(t))return!0;return!1},Zn.prototype.interfaces_=function(){return[]},Zn.prototype.getClass=function(){return Zn};var Qn=function(){};Qn.prototype.getChainStartIndices=function(t){var e=0,n=new xt;n.add(new A(e));do{var r=this.findChainEnd(t,e);n.add(new A(r)),e=r}while(e<t.length-1);return Qn.toIntArray(n)},Qn.prototype.findChainEnd=function(t,e){for(var n=Ve.quadrant(t[e],t[e+1]),r=e+1;r<t.length&&Ve.quadrant(t[r-1],t[r])===n;)r++;return r-1},Qn.prototype.interfaces_=function(){return[]},Qn.prototype.getClass=function(){return Qn},Qn.toIntArray=function(t){for(var e=new Array(t.size()).fill(null),n=0;n<e.length;n++)e[n]=t.get(n).intValue();return e};var Kn=function(){this.e=null,this.pts=null,this.startIndex=null,this.env1=new X,this.env2=new X;var t=arguments[0];this.e=t,this.pts=t.getCoordinates();var e=new Qn;this.startIndex=e.getChainStartIndices(this.pts)};Kn.prototype.getCoordinates=function(){return this.pts},Kn.prototype.getMaxX=function(t){var e=this.pts[this.startIndex[t]].x,n=this.pts[this.startIndex[t+1]].x;return e>n?e:n},Kn.prototype.getMinX=function(t){var e=this.pts[this.startIndex[t]].x,n=this.pts[this.startIndex[t+1]].x;return e<n?e:n},Kn.prototype.computeIntersectsForChain=function(){if(4===arguments.length){var t=arguments[0],e=arguments[1],n=arguments[2],r=arguments[3];this.computeIntersectsForChain(this.startIndex[t],this.startIndex[t+1],e,e.startIndex[n],e.startIndex[n+1],r)}else if(6===arguments.length){var i=arguments[0],o=arguments[1],s=arguments[2],a=arguments[3],u=arguments[4],c=arguments[5],l=this.pts[i],h=this.pts[o],p=s.pts[a],f=s.pts[u];if(o-i==1&&u-a==1)return c.addIntersections(this.e,i,s.e,a),null;if(this.env1.init(l,h),this.env2.init(p,f),!this.env1.intersects(this.env2))return null;var d=Math.trunc((i+o)/2),g=Math.trunc((a+u)/2);i<d&&(a<g&&this.computeIntersectsForChain(i,d,s,a,g,c),g<u&&this.computeIntersectsForChain(i,d,s,g,u,c)),d<o&&(a<g&&this.computeIntersectsForChain(d,o,s,a,g,c),g<u&&this.computeIntersectsForChain(d,o,s,g,u,c))}},Kn.prototype.getStartIndexes=function(){return this.startIndex},Kn.prototype.computeIntersects=function(t,e){for(var n=0;n<this.startIndex.length-1;n++)for(var r=0;r<t.startIndex.length-1;r++)this.computeIntersectsForChain(n,t,r,e)},Kn.prototype.interfaces_=function(){return[]},Kn.prototype.getClass=function(){return Kn};var tr=function t(){this._depth=Array(2).fill().map((function(){return Array(3)}));for(var e=0;e<2;e++)for(var n=0;n<3;n++)this._depth[e][n]=t.NULL_VALUE},er={NULL_VALUE:{configurable:!0}};tr.prototype.getDepth=function(t,e){return this._depth[t][e]},tr.prototype.setDepth=function(t,e,n){this._depth[t][e]=n},tr.prototype.isNull=function(){if(0===arguments.length){for(var t=0;t<2;t++)for(var e=0;e<3;e++)if(this._depth[t][e]!==tr.NULL_VALUE)return!1;return!0}if(1===arguments.length){var n=arguments[0];return this._depth[n][1]===tr.NULL_VALUE}if(2===arguments.length){var r=arguments[0],i=arguments[1];return this._depth[r][i]===tr.NULL_VALUE}},tr.prototype.normalize=function(){for(var t=0;t<2;t++)if(!this.isNull(t)){var e=this._depth[t][1];this._depth[t][2]<e&&(e=this._depth[t][2]),e<0&&(e=0);for(var n=1;n<3;n++){var r=0;this._depth[t][n]>e&&(r=1),this._depth[t][n]=r}}},tr.prototype.getDelta=function(t){return this._depth[t][Se.RIGHT]-this._depth[t][Se.LEFT]},tr.prototype.getLocation=function(t,e){return this._depth[t][e]<=0?M.EXTERIOR:M.INTERIOR},tr.prototype.toString=function(){return"A: "+this._depth[0][1]+","+this._depth[0][2]+" B: "+this._depth[1][1]+","+this._depth[1][2]},tr.prototype.add=function(){if(1===arguments.length)for(var t=arguments[0],e=0;e<2;e++)for(var n=1;n<3;n++){var r=t.getLocation(e,n);r!==M.EXTERIOR&&r!==M.INTERIOR||(this.isNull(e,n)?this._depth[e][n]=tr.depthAtLocation(r):this._depth[e][n]+=tr.depthAtLocation(r))}else if(3===arguments.length){var i=arguments[0],o=arguments[1];arguments[2]===M.INTERIOR&&this._depth[i][o]++}},tr.prototype.interfaces_=function(){return[]},tr.prototype.getClass=function(){return tr},tr.depthAtLocation=function(t){return t===M.EXTERIOR?0:t===M.INTERIOR?1:tr.NULL_VALUE},er.NULL_VALUE.get=function(){return-1},Object.defineProperties(tr,er);var nr=function(t){function e(){if(t.call(this),this.pts=null,this._env=null,this.eiList=new Zn(this),this._name=null,this._mce=null,this._isIsolated=!0,this._depth=new tr,this._depthDelta=0,1===arguments.length){var n=arguments[0];e.call(this,n,null)}else if(2===arguments.length){var r=arguments[0],i=arguments[1];this.pts=r,this._label=i}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDepth=function(){return this._depth},e.prototype.getCollapsedEdge=function(){var t=new Array(2).fill(null);return t[0]=this.pts[0],t[1]=this.pts[1],new e(t,Ne.toLineLabel(this._label))},e.prototype.isIsolated=function(){return this._isIsolated},e.prototype.getCoordinates=function(){return this.pts},e.prototype.setIsolated=function(t){this._isIsolated=t},e.prototype.setName=function(t){this._name=t},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;if(this.pts.length!==n.pts.length)return!1;for(var r=!0,i=!0,o=this.pts.length,s=0;s<this.pts.length;s++)if(this.pts[s].equals2D(n.pts[s])||(r=!1),this.pts[s].equals2D(n.pts[--o])||(i=!1),!r&&!i)return!1;return!0},e.prototype.getCoordinate=function(){if(0===arguments.length)return this.pts.length>0?this.pts[0]:null;if(1===arguments.length){var t=arguments[0];return this.pts[t]}},e.prototype.print=function(t){t.print("edge "+this._name+": "),t.print("LINESTRING (");for(var e=0;e<this.pts.length;e++)e>0&&t.print(","),t.print(this.pts[e].x+" "+this.pts[e].y);t.print(") "+this._label+" "+this._depthDelta)},e.prototype.computeIM=function(t){e.updateIM(this._label,t)},e.prototype.isCollapsed=function(){return!!this._label.isArea()&&3===this.pts.length&&!!this.pts[0].equals(this.pts[2])},e.prototype.isClosed=function(){return this.pts[0].equals(this.pts[this.pts.length-1])},e.prototype.getMaximumSegmentIndex=function(){return this.pts.length-1},e.prototype.getDepthDelta=function(){return this._depthDelta},e.prototype.getNumPoints=function(){return this.pts.length},e.prototype.printReverse=function(t){t.print("edge "+this._name+": ");for(var e=this.pts.length-1;e>=0;e--)t.print(this.pts[e]+" ");t.println("")},e.prototype.getMonotoneChainEdge=function(){return null===this._mce&&(this._mce=new Kn(this)),this._mce},e.prototype.getEnvelope=function(){if(null===this._env){this._env=new X;for(var t=0;t<this.pts.length;t++)this._env.expandToInclude(this.pts[t])}return this._env},e.prototype.addIntersection=function(t,e,n,r){var i=new P(t.getIntersection(r)),o=e,s=t.getEdgeDistance(n,r),a=o+1;if(a<this.pts.length){var u=this.pts[a];i.equals2D(u)&&(o=a,s=0)}this.eiList.add(i,o,s)},e.prototype.toString=function(){var t=new D;t.append("edge "+this._name+": "),t.append("LINESTRING (");for(var e=0;e<this.pts.length;e++)e>0&&t.append(","),t.append(this.pts[e].x+" "+this.pts[e].y);return t.append(") "+this._label+" "+this._depthDelta),t.toString()},e.prototype.isPointwiseEqual=function(t){if(this.pts.length!==t.pts.length)return!1;for(var e=0;e<this.pts.length;e++)if(!this.pts[e].equals2D(t.pts[e]))return!1;return!0},e.prototype.setDepthDelta=function(t){this._depthDelta=t},e.prototype.getEdgeIntersectionList=function(){return this.eiList},e.prototype.addIntersections=function(t,e,n){for(var r=0;r<t.getIntersectionNum();r++)this.addIntersection(t,e,n,r)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.updateIM=function(){if(2!==arguments.length)return t.prototype.updateIM.apply(this,arguments);var e=arguments[0],n=arguments[1];n.setAtLeastIfValid(e.getLocation(0,Se.ON),e.getLocation(1,Se.ON),1),e.isArea()&&(n.setAtLeastIfValid(e.getLocation(0,Se.LEFT),e.getLocation(1,Se.LEFT),2),n.setAtLeastIfValid(e.getLocation(0,Se.RIGHT),e.getLocation(1,Se.RIGHT),2))},e}(Fe),rr=function(t){this._workingPrecisionModel=null,this._workingNoder=null,this._geomFact=null,this._graph=null,this._edgeList=new Hn,this._bufParams=t||null};rr.prototype.setWorkingPrecisionModel=function(t){this._workingPrecisionModel=t},rr.prototype.insertUniqueEdge=function(t){var e=this._edgeList.findEqualEdge(t);if(null!==e){var n=e.getLabel(),r=t.getLabel();e.isPointwiseEqual(t)||(r=new Ne(t.getLabel())).flip(),n.merge(r);var i=rr.depthDelta(r),o=e.getDepthDelta()+i;e.setDepthDelta(o)}else this._edgeList.add(t),t.setDepthDelta(rr.depthDelta(t.getLabel()))},rr.prototype.buildSubgraphs=function(t,e){for(var n=new xt,r=t.iterator();r.hasNext();){var i=r.next(),o=i.getRightmostCoordinate(),s=new Rn(n).getDepth(o);i.computeDepth(s),i.findResultEdges(),n.add(i),e.add(i.getDirectedEdges(),i.getNodes())}},rr.prototype.createSubgraphs=function(t){for(var e=new xt,n=t.getNodes().iterator();n.hasNext();){var r=n.next();if(!r.isVisited()){var i=new Te;i.create(r),e.add(i)}}return Ke.sort(e,Ke.reverseOrder()),e},rr.prototype.createEmptyResultGeometry=function(){return this._geomFact.createPolygon()},rr.prototype.getNoder=function(t){if(null!==this._workingNoder)return this._workingNoder;var e=new En,n=new it;return n.setPrecisionModel(t),e.setSegmentIntersector(new Jn(n)),e},rr.prototype.buffer=function(t,e){var n=this._workingPrecisionModel;null===n&&(n=t.getPrecisionModel()),this._geomFact=t.getFactory();var r=new An(n,this._bufParams),i=new Vn(t,e,r).getCurves();if(i.size()<=0)return this.createEmptyResultGeometry();this.computeNodedEdges(i,n),this._graph=new We(new qn),this._graph.addEdges(this._edgeList.getEdges());var o=this.createSubgraphs(this._graph),s=new qe(this._geomFact);this.buildSubgraphs(o,s);var a=s.getPolygons();return a.size()<=0?this.createEmptyResultGeometry():this._geomFact.buildGeometry(a)},rr.prototype.computeNodedEdges=function(t,e){var n=this.getNoder(e);n.computeNodes(t);for(var r=n.getNodedSubstrings().iterator();r.hasNext();){var i=r.next(),o=i.getCoordinates();if(2!==o.length||!o[0].equals2D(o[1])){var s=i.getData(),a=new nr(i.getCoordinates(),new Ne(s));this.insertUniqueEdge(a)}}},rr.prototype.setNoder=function(t){this._workingNoder=t},rr.prototype.interfaces_=function(){return[]},rr.prototype.getClass=function(){return rr},rr.depthDelta=function(t){var e=t.getLocation(0,Se.LEFT),n=t.getLocation(0,Se.RIGHT);return e===M.INTERIOR&&n===M.EXTERIOR?1:e===M.EXTERIOR&&n===M.INTERIOR?-1:0},rr.convertSegStrings=function(t){for(var e=new ve,n=new xt;t.hasNext();){var r=t.next(),i=e.createLineString(r.getCoordinates());n.add(i)}return e.buildGeometry(n)};var ir=function(){if(this._noder=null,this._scaleFactor=null,this._offsetX=null,this._offsetY=null,this._isScaled=!1,2===arguments.length){var t=arguments[0],e=arguments[1];this._noder=t,this._scaleFactor=e,this._offsetX=0,this._offsetY=0,this._isScaled=!this.isIntegerPrecision()}else if(4===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2],o=arguments[3];this._noder=n,this._scaleFactor=r,this._offsetX=i,this._offsetY=o,this._isScaled=!this.isIntegerPrecision()}};ir.prototype.rescale=function(){if(T(arguments[0],bt))for(var t=arguments[0].iterator();t.hasNext();){var e=t.next();this.rescale(e.getCoordinates())}else if(arguments[0]instanceof Array){for(var n=arguments[0],r=0;r<n.length;r++)n[r].x=n[r].x/this._scaleFactor+this._offsetX,n[r].y=n[r].y/this._scaleFactor+this._offsetY;2===n.length&&n[0].equals2D(n[1])&&W.out.println(n)}},ir.prototype.scale=function(){if(T(arguments[0],bt)){for(var t=arguments[0],e=new xt,n=t.iterator();n.hasNext();){var r=n.next();e.add(new dn(this.scale(r.getCoordinates()),r.getData()))}return e}if(arguments[0]instanceof Array){for(var i=arguments[0],o=new Array(i.length).fill(null),s=0;s<i.length;s++)o[s]=new P(Math.round((i[s].x-this._offsetX)*this._scaleFactor),Math.round((i[s].y-this._offsetY)*this._scaleFactor),i[s].z);return Ot.removeRepeatedPoints(o)}},ir.prototype.isIntegerPrecision=function(){return 1===this._scaleFactor},ir.prototype.getNodedSubstrings=function(){var t=this._noder.getNodedSubstrings();return this._isScaled&&this.rescale(t),t},ir.prototype.computeNodes=function(t){var e=t;this._isScaled&&(e=this.scale(t)),this._noder.computeNodes(e)},ir.prototype.interfaces_=function(){return[bn]},ir.prototype.getClass=function(){return ir};var or=function(){this._li=new it,this._segStrings=null;var t=arguments[0];this._segStrings=t},sr={fact:{configurable:!0}};or.prototype.checkEndPtVertexIntersections=function(){if(0===arguments.length)for(var t=this._segStrings.iterator();t.hasNext();){var e=t.next().getCoordinates();this.checkEndPtVertexIntersections(e[0],this._segStrings),this.checkEndPtVertexIntersections(e[e.length-1],this._segStrings)}else if(2===arguments.length)for(var n=arguments[0],r=arguments[1].iterator();r.hasNext();)for(var i=r.next().getCoordinates(),o=1;o<i.length-1;o++)if(i[o].equals(n))throw new K("found endpt/interior pt intersection at index "+o+" :pt "+n)},or.prototype.checkInteriorIntersections=function(){if(0===arguments.length)for(var t=this._segStrings.iterator();t.hasNext();)for(var e=t.next(),n=this._segStrings.iterator();n.hasNext();){var r=n.next();this.checkInteriorIntersections(e,r)}else if(2===arguments.length)for(var i=arguments[0],o=arguments[1],s=i.getCoordinates(),a=o.getCoordinates(),u=0;u<s.length-1;u++)for(var c=0;c<a.length-1;c++)this.checkInteriorIntersections(i,u,o,c);else if(4===arguments.length){var l=arguments[0],h=arguments[1],p=arguments[2],f=arguments[3];if(l===p&&h===f)return null;var d=l.getCoordinates()[h],g=l.getCoordinates()[h+1],y=p.getCoordinates()[f],v=p.getCoordinates()[f+1];if(this._li.computeIntersection(d,g,y,v),this._li.hasIntersection()&&(this._li.isProper()||this.hasInteriorIntersection(this._li,d,g)||this.hasInteriorIntersection(this._li,y,v)))throw new K("found non-noded intersection at "+d+"-"+g+" and "+y+"-"+v)}},or.prototype.checkValid=function(){this.checkEndPtVertexIntersections(),this.checkInteriorIntersections(),this.checkCollapses()},or.prototype.checkCollapses=function(){if(0===arguments.length)for(var t=this._segStrings.iterator();t.hasNext();){var e=t.next();this.checkCollapses(e)}else if(1===arguments.length)for(var n=arguments[0].getCoordinates(),r=0;r<n.length-2;r++)this.checkCollapse(n[r],n[r+1],n[r+2])},or.prototype.hasInteriorIntersection=function(t,e,n){for(var r=0;r<t.getIntersectionNum();r++){var i=t.getIntersection(r);if(!i.equals(e)&&!i.equals(n))return!0}return!1},or.prototype.checkCollapse=function(t,e,n){if(t.equals(n))throw new K("found non-noded collapse at "+or.fact.createLineString([t,e,n]))},or.prototype.interfaces_=function(){return[]},or.prototype.getClass=function(){return or},sr.fact.get=function(){return new ve},Object.defineProperties(or,sr);var ar=function(){this._li=null,this._pt=null,this._originalPt=null,this._ptScaled=null,this._p0Scaled=null,this._p1Scaled=null,this._scaleFactor=null,this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,this._corner=new Array(4).fill(null),this._safeEnv=null;var t=arguments[0],e=arguments[1],n=arguments[2];if(this._originalPt=t,this._pt=t,this._scaleFactor=e,this._li=n,e<=0)throw new m("Scale factor must be non-zero");1!==e&&(this._pt=new P(this.scale(t.x),this.scale(t.y)),this._p0Scaled=new P,this._p1Scaled=new P),this.initCorners(this._pt)},ur={SAFE_ENV_EXPANSION_FACTOR:{configurable:!0}};ar.prototype.intersectsScaled=function(t,e){var n=Math.min(t.x,e.x),r=Math.max(t.x,e.x),i=Math.min(t.y,e.y),o=Math.max(t.y,e.y),s=this._maxx<n||this._minx>r||this._maxy<i||this._miny>o;if(s)return!1;var a=this.intersectsToleranceSquare(t,e);return et.isTrue(!(s&&a),"Found bad envelope test"),a},ar.prototype.initCorners=function(t){this._minx=t.x-.5,this._maxx=t.x+.5,this._miny=t.y-.5,this._maxy=t.y+.5,this._corner[0]=new P(this._maxx,this._maxy),this._corner[1]=new P(this._minx,this._maxy),this._corner[2]=new P(this._minx,this._miny),this._corner[3]=new P(this._maxx,this._miny)},ar.prototype.intersects=function(t,e){return 1===this._scaleFactor?this.intersectsScaled(t,e):(this.copyScaled(t,this._p0Scaled),this.copyScaled(e,this._p1Scaled),this.intersectsScaled(this._p0Scaled,this._p1Scaled))},ar.prototype.scale=function(t){return Math.round(t*this._scaleFactor)},ar.prototype.getCoordinate=function(){return this._originalPt},ar.prototype.copyScaled=function(t,e){e.x=this.scale(t.x),e.y=this.scale(t.y)},ar.prototype.getSafeEnvelope=function(){if(null===this._safeEnv){var t=ar.SAFE_ENV_EXPANSION_FACTOR/this._scaleFactor;this._safeEnv=new X(this._originalPt.x-t,this._originalPt.x+t,this._originalPt.y-t,this._originalPt.y+t)}return this._safeEnv},ar.prototype.intersectsPixelClosure=function(t,e){return this._li.computeIntersection(t,e,this._corner[0],this._corner[1]),!!(this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[1],this._corner[2]),this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[2],this._corner[3]),this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[3],this._corner[0]),this._li.hasIntersection()))))},ar.prototype.intersectsToleranceSquare=function(t,e){var n=!1,r=!1;return this._li.computeIntersection(t,e,this._corner[0],this._corner[1]),!!(this._li.isProper()||(this._li.computeIntersection(t,e,this._corner[1],this._corner[2]),this._li.isProper()||(this._li.hasIntersection()&&(n=!0),this._li.computeIntersection(t,e,this._corner[2],this._corner[3]),this._li.isProper()||(this._li.hasIntersection()&&(r=!0),this._li.computeIntersection(t,e,this._corner[3],this._corner[0]),this._li.isProper()||n&&r||t.equals(this._pt)||e.equals(this._pt)))))},ar.prototype.addSnappedNode=function(t,e){var n=t.getCoordinate(e),r=t.getCoordinate(e+1);return!!this.intersects(n,r)&&(t.addIntersection(this.getCoordinate(),e),!0)},ar.prototype.interfaces_=function(){return[]},ar.prototype.getClass=function(){return ar},ur.SAFE_ENV_EXPANSION_FACTOR.get=function(){return.75},Object.defineProperties(ar,ur);var cr=function(){this.tempEnv1=new X,this.selectedSegment=new gn};cr.prototype.select=function(){if(1===arguments.length);else if(2===arguments.length){var t=arguments[1];arguments[0].getLineSegment(t,this.selectedSegment),this.select(this.selectedSegment)}},cr.prototype.interfaces_=function(){return[]},cr.prototype.getClass=function(){return cr};var lr=function(){this._index=null;var t=arguments[0];this._index=t},hr={HotPixelSnapAction:{configurable:!0}};lr.prototype.snap=function(){if(1===arguments.length){var t=arguments[0];return this.snap(t,null,-1)}if(3===arguments.length){var e=arguments[0],n=arguments[1],r=arguments[2],i=e.getSafeEnvelope(),o=new pr(e,n,r);return this._index.query(i,{interfaces_:function(){return[Je]},visitItem:function(t){t.select(i,o)}}),o.isNodeAdded()}},lr.prototype.interfaces_=function(){return[]},lr.prototype.getClass=function(){return lr},hr.HotPixelSnapAction.get=function(){return pr},Object.defineProperties(lr,hr);var pr=function(t){function e(){t.call(this),this._hotPixel=null,this._parentEdge=null,this._hotPixelVertexIndex=null,this._isNodeAdded=!1;var e=arguments[0],n=arguments[1],r=arguments[2];this._hotPixel=e,this._parentEdge=n,this._hotPixelVertexIndex=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isNodeAdded=function(){return this._isNodeAdded},e.prototype.select=function(){if(2!==arguments.length)return t.prototype.select.apply(this,arguments);var e=arguments[1],n=arguments[0].getContext();if(null!==this._parentEdge&&n===this._parentEdge&&e===this._hotPixelVertexIndex)return null;this._isNodeAdded=this._hotPixel.addSnappedNode(n,e)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(cr),fr=function(){this._li=null,this._interiorIntersections=null;var t=arguments[0];this._li=t,this._interiorIntersections=new xt};fr.prototype.processIntersections=function(t,e,n,r){if(t===n&&e===r)return null;var i=t.getCoordinates()[e],o=t.getCoordinates()[e+1],s=n.getCoordinates()[r],a=n.getCoordinates()[r+1];if(this._li.computeIntersection(i,o,s,a),this._li.hasIntersection()&&this._li.isInteriorIntersection()){for(var u=0;u<this._li.getIntersectionNum();u++)this._interiorIntersections.add(this._li.getIntersection(u));t.addIntersections(this._li,e,0),n.addIntersections(this._li,r,1)}},fr.prototype.isDone=function(){return!1},fr.prototype.getInteriorIntersections=function(){return this._interiorIntersections},fr.prototype.interfaces_=function(){return[Yn]},fr.prototype.getClass=function(){return fr};var dr=function(){this._pm=null,this._li=null,this._scaleFactor=null,this._noder=null,this._pointSnapper=null,this._nodedSegStrings=null;var t=arguments[0];this._pm=t,this._li=new it,this._li.setPrecisionModel(t),this._scaleFactor=t.getScale()};dr.prototype.checkCorrectness=function(t){var e=dn.getNodedSubstrings(t),n=new or(e);try{n.checkValid()}catch(t){if(!(t instanceof U))throw t;t.printStackTrace()}},dr.prototype.getNodedSubstrings=function(){return dn.getNodedSubstrings(this._nodedSegStrings)},dr.prototype.snapRound=function(t,e){var n=this.findInteriorIntersections(t,e);this.computeIntersectionSnaps(n),this.computeVertexSnaps(t)},dr.prototype.findInteriorIntersections=function(t,e){var n=new fr(e);return this._noder.setSegmentIntersector(n),this._noder.computeNodes(t),n.getInteriorIntersections()},dr.prototype.computeVertexSnaps=function(){if(T(arguments[0],bt))for(var t=arguments[0].iterator();t.hasNext();){var e=t.next();this.computeVertexSnaps(e)}else if(arguments[0]instanceof dn)for(var n=arguments[0],r=n.getCoordinates(),i=0;i<r.length;i++){var o=new ar(r[i],this._scaleFactor,this._li);this._pointSnapper.snap(o,n,i)&&n.addIntersection(r[i],i)}},dr.prototype.computeNodes=function(t){this._nodedSegStrings=t,this._noder=new En,this._pointSnapper=new lr(this._noder.getIndex()),this.snapRound(t,this._li)},dr.prototype.computeIntersectionSnaps=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next(),r=new ar(n,this._scaleFactor,this._li);this._pointSnapper.snap(r)}},dr.prototype.interfaces_=function(){return[bn]},dr.prototype.getClass=function(){return dr};var gr=function(){if(this._argGeom=null,this._distance=null,this._bufParams=new Pn,this._resultGeometry=null,this._saveException=null,1===arguments.length){var t=arguments[0];this._argGeom=t}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this._argGeom=e,this._bufParams=n}},yr={CAP_ROUND:{configurable:!0},CAP_BUTT:{configurable:!0},CAP_FLAT:{configurable:!0},CAP_SQUARE:{configurable:!0},MAX_PRECISION_DIGITS:{configurable:!0}};gr.prototype.bufferFixedPrecision=function(t){var e=new ir(new dr(new fe(1)),t.getScale()),n=new rr(this._bufParams);n.setWorkingPrecisionModel(t),n.setNoder(e),this._resultGeometry=n.buffer(this._argGeom,this._distance)},gr.prototype.bufferReducedPrecision=function(){var t=this;if(0===arguments.length){for(var e=gr.MAX_PRECISION_DIGITS;e>=0;e--){try{t.bufferReducedPrecision(e)}catch(e){if(!(e instanceof Me))throw e;t._saveException=e}if(null!==t._resultGeometry)return null}throw this._saveException}if(1===arguments.length){var n=arguments[0],r=gr.precisionScaleFactor(this._argGeom,this._distance,n),i=new fe(r);this.bufferFixedPrecision(i)}},gr.prototype.computeGeometry=function(){if(this.bufferOriginalPrecision(),null!==this._resultGeometry)return null;var t=this._argGeom.getFactory().getPrecisionModel();t.getType()===fe.FIXED?this.bufferFixedPrecision(t):this.bufferReducedPrecision()},gr.prototype.setQuadrantSegments=function(t){this._bufParams.setQuadrantSegments(t)},gr.prototype.bufferOriginalPrecision=function(){try{var t=new rr(this._bufParams);this._resultGeometry=t.buffer(this._argGeom,this._distance)}catch(t){if(!(t instanceof K))throw t;this._saveException=t}},gr.prototype.getResultGeometry=function(t){return this._distance=t,this.computeGeometry(),this._resultGeometry},gr.prototype.setEndCapStyle=function(t){this._bufParams.setEndCapStyle(t)},gr.prototype.interfaces_=function(){return[]},gr.prototype.getClass=function(){return gr},gr.bufferOp=function(){if(2===arguments.length){var t=arguments[1];return new gr(arguments[0]).getResultGeometry(t)}if(3===arguments.length){if(Number.isInteger(arguments[2])&&arguments[0]instanceof lt&&"number"==typeof arguments[1]){var e=arguments[1],n=arguments[2],r=new gr(arguments[0]);return r.setQuadrantSegments(n),r.getResultGeometry(e)}if(arguments[2]instanceof Pn&&arguments[0]instanceof lt&&"number"==typeof arguments[1]){var i=arguments[1];return new gr(arguments[0],arguments[2]).getResultGeometry(i)}}else if(4===arguments.length){var o=arguments[1],s=arguments[2],a=arguments[3],u=new gr(arguments[0]);return u.setQuadrantSegments(s),u.setEndCapStyle(a),u.getResultGeometry(o)}},gr.precisionScaleFactor=function(t,e,n){var r=t.getEnvelopeInternal(),i=j.max(Math.abs(r.getMaxX()),Math.abs(r.getMaxY()),Math.abs(r.getMinX()),Math.abs(r.getMinY()))+2*(e>0?e:0),o=n-Math.trunc(Math.log(i)/Math.log(10)+1);return Math.pow(10,o)},yr.CAP_ROUND.get=function(){return Pn.CAP_ROUND},yr.CAP_BUTT.get=function(){return Pn.CAP_FLAT},yr.CAP_FLAT.get=function(){return Pn.CAP_FLAT},yr.CAP_SQUARE.get=function(){return Pn.CAP_SQUARE},yr.MAX_PRECISION_DIGITS.get=function(){return 12},Object.defineProperties(gr,yr);var vr=function(){this._pt=[new P,new P],this._distance=_.NaN,this._isNull=!0};vr.prototype.getCoordinates=function(){return this._pt},vr.prototype.getCoordinate=function(t){return this._pt[t]},vr.prototype.setMinimum=function(){if(1===arguments.length){var t=arguments[0];this.setMinimum(t._pt[0],t._pt[1])}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(e,n),null;var r=e.distance(n);r<this._distance&&this.initialize(e,n,r)}},vr.prototype.initialize=function(){if(0===arguments.length)this._isNull=!0;else if(2===arguments.length){var t=arguments[0],e=arguments[1];this._pt[0].setCoordinate(t),this._pt[1].setCoordinate(e),this._distance=t.distance(e),this._isNull=!1}else if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];this._pt[0].setCoordinate(n),this._pt[1].setCoordinate(r),this._distance=i,this._isNull=!1}},vr.prototype.getDistance=function(){return this._distance},vr.prototype.setMaximum=function(){if(1===arguments.length){var t=arguments[0];this.setMaximum(t._pt[0],t._pt[1])}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(e,n),null;var r=e.distance(n);r>this._distance&&this.initialize(e,n,r)}},vr.prototype.interfaces_=function(){return[]},vr.prototype.getClass=function(){return vr};var mr=function(){};mr.prototype.interfaces_=function(){return[]},mr.prototype.getClass=function(){return mr},mr.computeDistance=function(){if(arguments[2]instanceof vr&&arguments[0]instanceof Jt&&arguments[1]instanceof P)for(var t=arguments[1],e=arguments[2],n=arguments[0].getCoordinates(),r=new gn,i=0;i<n.length-1;i++){r.setCoordinates(n[i],n[i+1]);var o=r.closestPoint(t);e.setMinimum(o,t)}else if(arguments[2]instanceof vr&&arguments[0]instanceof Kt&&arguments[1]instanceof P){var s=arguments[0],a=arguments[1],u=arguments[2];mr.computeDistance(s.getExteriorRing(),a,u);for(var c=0;c<s.getNumInteriorRing();c++)mr.computeDistance(s.getInteriorRingN(c),a,u)}else if(arguments[2]instanceof vr&&arguments[0]instanceof lt&&arguments[1]instanceof P){var l=arguments[0],h=arguments[1],p=arguments[2];if(l instanceof Jt)mr.computeDistance(l,h,p);else if(l instanceof Kt)mr.computeDistance(l,h,p);else if(l instanceof Ut)for(var f=l,d=0;d<f.getNumGeometries();d++){var g=f.getGeometryN(d);mr.computeDistance(g,h,p)}else p.setMinimum(l.getCoordinate(),h)}else if(arguments[2]instanceof vr&&arguments[0]instanceof gn&&arguments[1]instanceof P){var y=arguments[1],v=arguments[2],m=arguments[0].closestPoint(y);v.setMinimum(m,y)}};var _r=function(t){this._maxPtDist=new vr,this._inputGeom=t||null},br={MaxPointDistanceFilter:{configurable:!0},MaxMidpointDistanceFilter:{configurable:!0}};_r.prototype.computeMaxMidpointDistance=function(t){var e=new Er(this._inputGeom);t.apply(e),this._maxPtDist.setMaximum(e.getMaxPointDistance())},_r.prototype.computeMaxVertexDistance=function(t){var e=new wr(this._inputGeom);t.apply(e),this._maxPtDist.setMaximum(e.getMaxPointDistance())},_r.prototype.findDistance=function(t){return this.computeMaxVertexDistance(t),this.computeMaxMidpointDistance(t),this._maxPtDist.getDistance()},_r.prototype.getDistancePoints=function(){return this._maxPtDist},_r.prototype.interfaces_=function(){return[]},_r.prototype.getClass=function(){return _r},br.MaxPointDistanceFilter.get=function(){return wr},br.MaxMidpointDistanceFilter.get=function(){return Er},Object.defineProperties(_r,br);var wr=function(t){this._maxPtDist=new vr,this._minPtDist=new vr,this._geom=t||null};wr.prototype.filter=function(t){this._minPtDist.initialize(),mr.computeDistance(this._geom,t,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},wr.prototype.getMaxPointDistance=function(){return this._maxPtDist},wr.prototype.interfaces_=function(){return[ft]},wr.prototype.getClass=function(){return wr};var Er=function(t){this._maxPtDist=new vr,this._minPtDist=new vr,this._geom=t||null};Er.prototype.filter=function(t,e){if(0===e)return null;var n=t.getCoordinate(e-1),r=t.getCoordinate(e),i=new P((n.x+r.x)/2,(n.y+r.y)/2);this._minPtDist.initialize(),mr.computeDistance(this._geom,i,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},Er.prototype.isDone=function(){return!1},Er.prototype.isGeometryChanged=function(){return!1},Er.prototype.getMaxPointDistance=function(){return this._maxPtDist},Er.prototype.interfaces_=function(){return[zt]},Er.prototype.getClass=function(){return Er};var xr=function(t){this._comps=t||null};xr.prototype.filter=function(t){t instanceof Kt&&this._comps.add(t)},xr.prototype.interfaces_=function(){return[Bt]},xr.prototype.getClass=function(){return xr},xr.getPolygons=function(){if(1===arguments.length)return xr.getPolygons(arguments[0],new xt);if(2===arguments.length){var t=arguments[0],e=arguments[1];return t instanceof Kt?e.add(t):t instanceof Ut&&t.apply(new xr(e)),e}};var Pr=function(){if(this._lines=null,this._isForcedToLineString=!1,1===arguments.length){var t=arguments[0];this._lines=t}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this._lines=e,this._isForcedToLineString=n}};Pr.prototype.filter=function(t){if(this._isForcedToLineString&&t instanceof ee){var e=t.getFactory().createLineString(t.getCoordinateSequence());return this._lines.add(e),null}t instanceof Jt&&this._lines.add(t)},Pr.prototype.setForceToLineString=function(t){this._isForcedToLineString=t},Pr.prototype.interfaces_=function(){return[ct]},Pr.prototype.getClass=function(){return Pr},Pr.getGeometry=function(){if(1===arguments.length){var t=arguments[0];return t.getFactory().buildGeometry(Pr.getLines(t))}if(2===arguments.length){var e=arguments[0],n=arguments[1];return e.getFactory().buildGeometry(Pr.getLines(e,n))}},Pr.getLines=function(){if(1===arguments.length)return Pr.getLines(arguments[0],!1);if(2===arguments.length){if(T(arguments[0],bt)&&T(arguments[1],bt)){for(var t=arguments[1],e=arguments[0].iterator();e.hasNext();){var n=e.next();Pr.getLines(n,t)}return t}if(arguments[0]instanceof lt&&"boolean"==typeof arguments[1]){var r=arguments[0],i=arguments[1],o=new xt;return r.apply(new Pr(o,i)),o}if(arguments[0]instanceof lt&&T(arguments[1],bt)){var s=arguments[0],a=arguments[1];return s instanceof Jt?a.add(s):s.apply(new Pr(a)),a}}else if(3===arguments.length){if("boolean"==typeof arguments[2]&&T(arguments[0],bt)&&T(arguments[1],bt)){for(var u=arguments[1],c=arguments[2],l=arguments[0].iterator();l.hasNext();){var h=l.next();Pr.getLines(h,u,c)}return u}if("boolean"==typeof arguments[2]&&arguments[0]instanceof lt&&T(arguments[1],bt)){var p=arguments[1],f=arguments[2];return arguments[0].apply(new Pr(p,f)),p}}};var Sr=function(){if(this._boundaryRule=dt.OGC_SFS_BOUNDARY_RULE,this._isIn=null,this._numBoundaries=null,0===arguments.length);else if(1===arguments.length){var t=arguments[0];if(null===t)throw new m("Rule must be non-null");this._boundaryRule=t}};Sr.prototype.locateInternal=function(){if(arguments[0]instanceof P&&arguments[1]instanceof Kt){var t=arguments[0],e=arguments[1];if(e.isEmpty())return M.EXTERIOR;var n=e.getExteriorRing(),r=this.locateInPolygonRing(t,n);if(r===M.EXTERIOR)return M.EXTERIOR;if(r===M.BOUNDARY)return M.BOUNDARY;for(var i=0;i<e.getNumInteriorRing();i++){var o=e.getInteriorRingN(i),s=this.locateInPolygonRing(t,o);if(s===M.INTERIOR)return M.EXTERIOR;if(s===M.BOUNDARY)return M.BOUNDARY}return M.INTERIOR}if(arguments[0]instanceof P&&arguments[1]instanceof Jt){var a=arguments[0],u=arguments[1];if(!u.getEnvelopeInternal().intersects(a))return M.EXTERIOR;var c=u.getCoordinates();return u.isClosed()||!a.equals(c[0])&&!a.equals(c[c.length-1])?at.isOnLine(a,c)?M.INTERIOR:M.EXTERIOR:M.BOUNDARY}if(arguments[0]instanceof P&&arguments[1]instanceof Zt){var l=arguments[0];return arguments[1].getCoordinate().equals2D(l)?M.INTERIOR:M.EXTERIOR}},Sr.prototype.locateInPolygonRing=function(t,e){return e.getEnvelopeInternal().intersects(t)?at.locatePointInRing(t,e.getCoordinates()):M.EXTERIOR},Sr.prototype.intersects=function(t,e){return this.locate(t,e)!==M.EXTERIOR},Sr.prototype.updateLocationInfo=function(t){t===M.INTERIOR&&(this._isIn=!0),t===M.BOUNDARY&&this._numBoundaries++},Sr.prototype.computeLocation=function(t,e){if(e instanceof Zt&&this.updateLocationInfo(this.locateInternal(t,e)),e instanceof Jt)this.updateLocationInfo(this.locateInternal(t,e));else if(e instanceof Kt)this.updateLocationInfo(this.locateInternal(t,e));else if(e instanceof Gt)for(var n=e,r=0;r<n.getNumGeometries();r++){var i=n.getGeometryN(r);this.updateLocationInfo(this.locateInternal(t,i))}else if(e instanceof ne)for(var o=e,s=0;s<o.getNumGeometries();s++){var a=o.getGeometryN(s);this.updateLocationInfo(this.locateInternal(t,a))}else if(e instanceof Ut)for(var u=new zn(e);u.hasNext();){var c=u.next();c!==e&&this.computeLocation(t,c)}},Sr.prototype.locate=function(t,e){return e.isEmpty()?M.EXTERIOR:e instanceof Jt||e instanceof Kt?this.locateInternal(t,e):(this._isIn=!1,this._numBoundaries=0,this.computeLocation(t,e),this._boundaryRule.isInBoundary(this._numBoundaries)?M.BOUNDARY:this._numBoundaries>0||this._isIn?M.INTERIOR:M.EXTERIOR)},Sr.prototype.interfaces_=function(){return[]},Sr.prototype.getClass=function(){return Sr};var Or=function t(){if(this._component=null,this._segIndex=null,this._pt=null,2===arguments.length)t.call(this,arguments[0],t.INSIDE_AREA,arguments[1]);else if(3===arguments.length){var e=arguments[0],n=arguments[1],r=arguments[2];this._component=e,this._segIndex=n,this._pt=r}},Cr={INSIDE_AREA:{configurable:!0}};Or.prototype.isInsideArea=function(){return this._segIndex===Or.INSIDE_AREA},Or.prototype.getCoordinate=function(){return this._pt},Or.prototype.getGeometryComponent=function(){return this._component},Or.prototype.getSegmentIndex=function(){return this._segIndex},Or.prototype.interfaces_=function(){return[]},Or.prototype.getClass=function(){return Or},Cr.INSIDE_AREA.get=function(){return-1},Object.defineProperties(Or,Cr);var Mr=function(t){this._pts=t||null};Mr.prototype.filter=function(t){t instanceof Zt&&this._pts.add(t)},Mr.prototype.interfaces_=function(){return[Bt]},Mr.prototype.getClass=function(){return Mr},Mr.getPoints=function(){if(1===arguments.length){var t=arguments[0];return t instanceof Zt?Ke.singletonList(t):Mr.getPoints(t,new xt)}if(2===arguments.length){var e=arguments[0],n=arguments[1];return e instanceof Zt?n.add(e):e instanceof Ut&&e.apply(new Mr(n)),n}};var Ir=function(){this._locations=null;var t=arguments[0];this._locations=t};Ir.prototype.filter=function(t){(t instanceof Zt||t instanceof Jt||t instanceof Kt)&&this._locations.add(new Or(t,0,t.getCoordinate()))},Ir.prototype.interfaces_=function(){return[Bt]},Ir.prototype.getClass=function(){return Ir},Ir.getLocations=function(t){var e=new xt;return t.apply(new Ir(e)),e};var Tr=function(){if(this._geom=null,this._terminateDistance=0,this._ptLocator=new Sr,this._minDistanceLocation=null,this._minDistance=_.MAX_VALUE,2===arguments.length){var t=arguments[0],e=arguments[1];this._geom=[t,e],this._terminateDistance=0}else if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];this._geom=new Array(2).fill(null),this._geom[0]=n,this._geom[1]=r,this._terminateDistance=i}};Tr.prototype.computeContainmentDistance=function(){if(0===arguments.length){var t=new Array(2).fill(null);if(this.computeContainmentDistance(0,t),this._minDistance<=this._terminateDistance)return null;this.computeContainmentDistance(1,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1],r=1-e,i=xr.getPolygons(this._geom[e]);if(i.size()>0){var o=Ir.getLocations(this._geom[r]);if(this.computeContainmentDistance(o,i,n),this._minDistance<=this._terminateDistance)return this._minDistanceLocation[r]=n[0],this._minDistanceLocation[e]=n[1],null}}else if(3===arguments.length)if(arguments[2]instanceof Array&&T(arguments[0],Et)&&T(arguments[1],Et)){for(var s=arguments[0],a=arguments[1],u=arguments[2],c=0;c<s.size();c++)for(var l=s.get(c),h=0;h<a.size();h++)if(this.computeContainmentDistance(l,a.get(h),u),this._minDistance<=this._terminateDistance)return null}else if(arguments[2]instanceof Array&&arguments[0]instanceof Or&&arguments[1]instanceof Kt){var p=arguments[0],f=arguments[1],d=arguments[2],g=p.getCoordinate();if(M.EXTERIOR!==this._ptLocator.locate(g,f))return this._minDistance=0,d[0]=p,d[1]=new Or(f,g),null}},Tr.prototype.computeMinDistanceLinesPoints=function(t,e,n){for(var r=0;r<t.size();r++)for(var i=t.get(r),o=0;o<e.size();o++){var s=e.get(o);if(this.computeMinDistance(i,s,n),this._minDistance<=this._terminateDistance)return null}},Tr.prototype.computeFacetDistance=function(){var t=new Array(2).fill(null),e=Pr.getLines(this._geom[0]),n=Pr.getLines(this._geom[1]),r=Mr.getPoints(this._geom[0]),i=Mr.getPoints(this._geom[1]);return this.computeMinDistanceLines(e,n,t),this.updateMinDistance(t,!1),this._minDistance<=this._terminateDistance?null:(t[0]=null,t[1]=null,this.computeMinDistanceLinesPoints(e,i,t),this.updateMinDistance(t,!1),this._minDistance<=this._terminateDistance?null:(t[0]=null,t[1]=null,this.computeMinDistanceLinesPoints(n,r,t),this.updateMinDistance(t,!0),this._minDistance<=this._terminateDistance?null:(t[0]=null,t[1]=null,this.computeMinDistancePoints(r,i,t),void this.updateMinDistance(t,!1))))},Tr.prototype.nearestLocations=function(){return this.computeMinDistance(),this._minDistanceLocation},Tr.prototype.updateMinDistance=function(t,e){if(null===t[0])return null;e?(this._minDistanceLocation[0]=t[1],this._minDistanceLocation[1]=t[0]):(this._minDistanceLocation[0]=t[0],this._minDistanceLocation[1]=t[1])},Tr.prototype.nearestPoints=function(){return this.computeMinDistance(),[this._minDistanceLocation[0].getCoordinate(),this._minDistanceLocation[1].getCoordinate()]},Tr.prototype.computeMinDistance=function(){if(0===arguments.length){if(null!==this._minDistanceLocation)return null;if(this._minDistanceLocation=new Array(2).fill(null),this.computeContainmentDistance(),this._minDistance<=this._terminateDistance)return null;this.computeFacetDistance()}else if(3===arguments.length)if(arguments[2]instanceof Array&&arguments[0]instanceof Jt&&arguments[1]instanceof Zt){var t=arguments[0],e=arguments[1],n=arguments[2];if(t.getEnvelopeInternal().distance(e.getEnvelopeInternal())>this._minDistance)return null;for(var r=t.getCoordinates(),i=e.getCoordinate(),o=0;o<r.length-1;o++){var s=at.distancePointLine(i,r[o],r[o+1]);if(s<this._minDistance){this._minDistance=s;var a=new gn(r[o],r[o+1]).closestPoint(i);n[0]=new Or(t,o,a),n[1]=new Or(e,0,i)}if(this._minDistance<=this._terminateDistance)return null}}else if(arguments[2]instanceof Array&&arguments[0]instanceof Jt&&arguments[1]instanceof Jt){var u=arguments[0],c=arguments[1],l=arguments[2];if(u.getEnvelopeInternal().distance(c.getEnvelopeInternal())>this._minDistance)return null;for(var h=u.getCoordinates(),p=c.getCoordinates(),f=0;f<h.length-1;f++)for(var d=0;d<p.length-1;d++){var g=at.distanceLineLine(h[f],h[f+1],p[d],p[d+1]);if(g<this._minDistance){this._minDistance=g;var y=new gn(h[f],h[f+1]),v=new gn(p[d],p[d+1]),m=y.closestPoints(v);l[0]=new Or(u,f,m[0]),l[1]=new Or(c,d,m[1])}if(this._minDistance<=this._terminateDistance)return null}}},Tr.prototype.computeMinDistancePoints=function(t,e,n){for(var r=0;r<t.size();r++)for(var i=t.get(r),o=0;o<e.size();o++){var s=e.get(o),a=i.getCoordinate().distance(s.getCoordinate());if(a<this._minDistance&&(this._minDistance=a,n[0]=new Or(i,0,i.getCoordinate()),n[1]=new Or(s,0,s.getCoordinate())),this._minDistance<=this._terminateDistance)return null}},Tr.prototype.distance=function(){if(null===this._geom[0]||null===this._geom[1])throw new m("null geometries are not supported");return this._geom[0].isEmpty()||this._geom[1].isEmpty()?0:(this.computeMinDistance(),this._minDistance)},Tr.prototype.computeMinDistanceLines=function(t,e,n){for(var r=0;r<t.size();r++)for(var i=t.get(r),o=0;o<e.size();o++){var s=e.get(o);if(this.computeMinDistance(i,s,n),this._minDistance<=this._terminateDistance)return null}},Tr.prototype.interfaces_=function(){return[]},Tr.prototype.getClass=function(){return Tr},Tr.distance=function(t,e){return new Tr(t,e).distance()},Tr.isWithinDistance=function(t,e,n){return new Tr(t,e,n).distance()<=n},Tr.nearestPoints=function(t,e){return new Tr(t,e).nearestPoints()};var jr=function(){this._pt=[new P,new P],this._distance=_.NaN,this._isNull=!0};jr.prototype.getCoordinates=function(){return this._pt},jr.prototype.getCoordinate=function(t){return this._pt[t]},jr.prototype.setMinimum=function(){if(1===arguments.length){var t=arguments[0];this.setMinimum(t._pt[0],t._pt[1])}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(e,n),null;var r=e.distance(n);r<this._distance&&this.initialize(e,n,r)}},jr.prototype.initialize=function(){if(0===arguments.length)this._isNull=!0;else if(2===arguments.length){var t=arguments[0],e=arguments[1];this._pt[0].setCoordinate(t),this._pt[1].setCoordinate(e),this._distance=t.distance(e),this._isNull=!1}else if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];this._pt[0].setCoordinate(n),this._pt[1].setCoordinate(r),this._distance=i,this._isNull=!1}},jr.prototype.toString=function(){return Q.toLineString(this._pt[0],this._pt[1])},jr.prototype.getDistance=function(){return this._distance},jr.prototype.setMaximum=function(){if(1===arguments.length){var t=arguments[0];this.setMaximum(t._pt[0],t._pt[1])}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(e,n),null;var r=e.distance(n);r>this._distance&&this.initialize(e,n,r)}},jr.prototype.interfaces_=function(){return[]},jr.prototype.getClass=function(){return jr};var Nr=function(){};Nr.prototype.interfaces_=function(){return[]},Nr.prototype.getClass=function(){return Nr},Nr.computeDistance=function(){if(arguments[2]instanceof jr&&arguments[0]instanceof Jt&&arguments[1]instanceof P)for(var t=arguments[0],e=arguments[1],n=arguments[2],r=new gn,i=t.getCoordinates(),o=0;o<i.length-1;o++){r.setCoordinates(i[o],i[o+1]);var s=r.closestPoint(e);n.setMinimum(s,e)}else if(arguments[2]instanceof jr&&arguments[0]instanceof Kt&&arguments[1]instanceof P){var a=arguments[0],u=arguments[1],c=arguments[2];Nr.computeDistance(a.getExteriorRing(),u,c);for(var l=0;l<a.getNumInteriorRing();l++)Nr.computeDistance(a.getInteriorRingN(l),u,c)}else if(arguments[2]instanceof jr&&arguments[0]instanceof lt&&arguments[1]instanceof P){var h=arguments[0],p=arguments[1],f=arguments[2];if(h instanceof Jt)Nr.computeDistance(h,p,f);else if(h instanceof Kt)Nr.computeDistance(h,p,f);else if(h instanceof Ut)for(var d=h,g=0;g<d.getNumGeometries();g++){var y=d.getGeometryN(g);Nr.computeDistance(y,p,f)}else f.setMinimum(h.getCoordinate(),p)}else if(arguments[2]instanceof jr&&arguments[0]instanceof gn&&arguments[1]instanceof P){var v=arguments[1],m=arguments[2],_=arguments[0].closestPoint(v);m.setMinimum(_,v)}};var Dr=function(){this._g0=null,this._g1=null,this._ptDist=new jr,this._densifyFrac=0;var t=arguments[0],e=arguments[1];this._g0=t,this._g1=e},Ar={MaxPointDistanceFilter:{configurable:!0},MaxDensifiedByFractionDistanceFilter:{configurable:!0}};Dr.prototype.getCoordinates=function(){return this._ptDist.getCoordinates()},Dr.prototype.setDensifyFraction=function(t){if(t>1||t<=0)throw new m("Fraction is not in range (0.0 - 1.0]");this._densifyFrac=t},Dr.prototype.compute=function(t,e){this.computeOrientedDistance(t,e,this._ptDist),this.computeOrientedDistance(e,t,this._ptDist)},Dr.prototype.distance=function(){return this.compute(this._g0,this._g1),this._ptDist.getDistance()},Dr.prototype.computeOrientedDistance=function(t,e,n){var r=new Rr(e);if(t.apply(r),n.setMaximum(r.getMaxPointDistance()),this._densifyFrac>0){var i=new Fr(e,this._densifyFrac);t.apply(i),n.setMaximum(i.getMaxPointDistance())}},Dr.prototype.orientedDistance=function(){return this.computeOrientedDistance(this._g0,this._g1,this._ptDist),this._ptDist.getDistance()},Dr.prototype.interfaces_=function(){return[]},Dr.prototype.getClass=function(){return Dr},Dr.distance=function(){if(2===arguments.length)return new Dr(arguments[0],arguments[1]).distance();if(3===arguments.length){var t=arguments[2],e=new Dr(arguments[0],arguments[1]);return e.setDensifyFraction(t),e.distance()}},Ar.MaxPointDistanceFilter.get=function(){return Rr},Ar.MaxDensifiedByFractionDistanceFilter.get=function(){return Fr},Object.defineProperties(Dr,Ar);var Rr=function(){this._maxPtDist=new jr,this._minPtDist=new jr,this._euclideanDist=new Nr,this._geom=null;var t=arguments[0];this._geom=t};Rr.prototype.filter=function(t){this._minPtDist.initialize(),Nr.computeDistance(this._geom,t,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},Rr.prototype.getMaxPointDistance=function(){return this._maxPtDist},Rr.prototype.interfaces_=function(){return[ft]},Rr.prototype.getClass=function(){return Rr};var Fr=function(){this._maxPtDist=new jr,this._minPtDist=new jr,this._geom=null,this._numSubSegs=0;var t=arguments[0],e=arguments[1];this._geom=t,this._numSubSegs=Math.trunc(Math.round(1/e))};Fr.prototype.filter=function(t,e){if(0===e)return null;for(var n=t.getCoordinate(e-1),r=t.getCoordinate(e),i=(r.x-n.x)/this._numSubSegs,o=(r.y-n.y)/this._numSubSegs,s=0;s<this._numSubSegs;s++){var a=n.x+s*i,u=n.y+s*o,c=new P(a,u);this._minPtDist.initialize(),Nr.computeDistance(this._geom,c,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)}},Fr.prototype.isDone=function(){return!1},Fr.prototype.isGeometryChanged=function(){return!1},Fr.prototype.getMaxPointDistance=function(){return this._maxPtDist},Fr.prototype.interfaces_=function(){return[zt]},Fr.prototype.getClass=function(){return Fr};var Lr=function(t,e,n){this._minValidDistance=null,this._maxValidDistance=null,this._minDistanceFound=null,this._maxDistanceFound=null,this._isValid=!0,this._errMsg=null,this._errorLocation=null,this._errorIndicator=null,this._input=t||null,this._bufDistance=e||null,this._result=n||null},kr={VERBOSE:{configurable:!0},MAX_DISTANCE_DIFF_FRAC:{configurable:!0}};Lr.prototype.checkMaximumDistance=function(t,e,n){var r=new Dr(e,t);if(r.setDensifyFraction(.25),this._maxDistanceFound=r.orientedDistance(),this._maxDistanceFound>n){this._isValid=!1;var i=r.getCoordinates();this._errorLocation=i[1],this._errorIndicator=t.getFactory().createLineString(i),this._errMsg="Distance between buffer curve and input is too large ("+this._maxDistanceFound+" at "+Q.toLineString(i[0],i[1])+")"}},Lr.prototype.isValid=function(){var t=Math.abs(this._bufDistance),e=Lr.MAX_DISTANCE_DIFF_FRAC*t;return this._minValidDistance=t-e,this._maxValidDistance=t+e,!(!this._input.isEmpty()&&!this._result.isEmpty())||(this._bufDistance>0?this.checkPositiveValid():this.checkNegativeValid(),Lr.VERBOSE&&W.out.println("Min Dist= "+this._minDistanceFound+" err= "+(1-this._minDistanceFound/this._bufDistance)+" Max Dist= "+this._maxDistanceFound+" err= "+(this._maxDistanceFound/this._bufDistance-1)),this._isValid)},Lr.prototype.checkNegativeValid=function(){if(!(this._input instanceof Kt||this._input instanceof ne||this._input instanceof Ut))return null;var t=this.getPolygonLines(this._input);if(this.checkMinimumDistance(t,this._result,this._minValidDistance),!this._isValid)return null;this.checkMaximumDistance(t,this._result,this._maxValidDistance)},Lr.prototype.getErrorIndicator=function(){return this._errorIndicator},Lr.prototype.checkMinimumDistance=function(t,e,n){var r=new Tr(t,e,n);if(this._minDistanceFound=r.distance(),this._minDistanceFound<n){this._isValid=!1;var i=r.nearestPoints();this._errorLocation=r.nearestPoints()[1],this._errorIndicator=t.getFactory().createLineString(i),this._errMsg="Distance between buffer curve and input is too small ("+this._minDistanceFound+" at "+Q.toLineString(i[0],i[1])+" )"}},Lr.prototype.checkPositiveValid=function(){var t=this._result.getBoundary();if(this.checkMinimumDistance(this._input,t,this._minValidDistance),!this._isValid)return null;this.checkMaximumDistance(this._input,t,this._maxValidDistance)},Lr.prototype.getErrorLocation=function(){return this._errorLocation},Lr.prototype.getPolygonLines=function(t){for(var e=new xt,n=new Pr(e),r=xr.getPolygons(t).iterator();r.hasNext();)r.next().apply(n);return t.getFactory().buildGeometry(e)},Lr.prototype.getErrorMessage=function(){return this._errMsg},Lr.prototype.interfaces_=function(){return[]},Lr.prototype.getClass=function(){return Lr},kr.VERBOSE.get=function(){return!1},kr.MAX_DISTANCE_DIFF_FRAC.get=function(){return.012},Object.defineProperties(Lr,kr);var Vr=function(t,e,n){this._isValid=!0,this._errorMsg=null,this._errorLocation=null,this._errorIndicator=null,this._input=t||null,this._distance=e||null,this._result=n||null},Br={VERBOSE:{configurable:!0},MAX_ENV_DIFF_FRAC:{configurable:!0}};Vr.prototype.isValid=function(){return this.checkPolygonal(),this._isValid?(this.checkExpectedEmpty(),this._isValid?(this.checkEnvelope(),this._isValid?(this.checkArea(),this._isValid?(this.checkDistance(),this._isValid):this._isValid):this._isValid):this._isValid):this._isValid},Vr.prototype.checkEnvelope=function(){if(this._distance<0)return null;var t=this._distance*Vr.MAX_ENV_DIFF_FRAC;0===t&&(t=.001);var e=new X(this._input.getEnvelopeInternal());e.expandBy(this._distance);var n=new X(this._result.getEnvelopeInternal());n.expandBy(t),n.contains(e)||(this._isValid=!1,this._errorMsg="Buffer envelope is incorrect",this._errorIndicator=this._input.getFactory().toGeometry(n)),this.report("Envelope")},Vr.prototype.checkDistance=function(){var t=new Lr(this._input,this._distance,this._result);t.isValid()||(this._isValid=!1,this._errorMsg=t.getErrorMessage(),this._errorLocation=t.getErrorLocation(),this._errorIndicator=t.getErrorIndicator()),this.report("Distance")},Vr.prototype.checkArea=function(){var t=this._input.getArea(),e=this._result.getArea();this._distance>0&&t>e&&(this._isValid=!1,this._errorMsg="Area of positive buffer is smaller than input",this._errorIndicator=this._result),this._distance<0&&t<e&&(this._isValid=!1,this._errorMsg="Area of negative buffer is larger than input",this._errorIndicator=this._result),this.report("Area")},Vr.prototype.checkPolygonal=function(){this._result instanceof Kt||this._result instanceof ne||(this._isValid=!1),this._errorMsg="Result is not polygonal",this._errorIndicator=this._result,this.report("Polygonal")},Vr.prototype.getErrorIndicator=function(){return this._errorIndicator},Vr.prototype.getErrorLocation=function(){return this._errorLocation},Vr.prototype.checkExpectedEmpty=function(){return this._input.getDimension()>=2||this._distance>0?null:(this._result.isEmpty()||(this._isValid=!1,this._errorMsg="Result is non-empty",this._errorIndicator=this._result),void this.report("ExpectedEmpty"))},Vr.prototype.report=function(t){if(!Vr.VERBOSE)return null;W.out.println("Check "+t+": "+(this._isValid?"passed":"FAILED"))},Vr.prototype.getErrorMessage=function(){return this._errorMsg},Vr.prototype.interfaces_=function(){return[]},Vr.prototype.getClass=function(){return Vr},Vr.isValidMsg=function(t,e,n){var r=new Vr(t,e,n);return r.isValid()?null:r.getErrorMessage()},Vr.isValid=function(t,e,n){return!!new Vr(t,e,n).isValid()},Br.VERBOSE.get=function(){return!1},Br.MAX_ENV_DIFF_FRAC.get=function(){return.012},Object.defineProperties(Vr,Br);var zr=function(){this._pts=null,this._data=null;var t=arguments[0],e=arguments[1];this._pts=t,this._data=e};zr.prototype.getCoordinates=function(){return this._pts},zr.prototype.size=function(){return this._pts.length},zr.prototype.getCoordinate=function(t){return this._pts[t]},zr.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])},zr.prototype.getSegmentOctant=function(t){return t===this._pts.length-1?-1:hn.octant(this.getCoordinate(t),this.getCoordinate(t+1))},zr.prototype.setData=function(t){this._data=t},zr.prototype.getData=function(){return this._data},zr.prototype.toString=function(){return Q.toLineString(new ue(this._pts))},zr.prototype.interfaces_=function(){return[pn]},zr.prototype.getClass=function(){return zr};var Ur=function(){this._findAllIntersections=!1,this._isCheckEndSegmentsOnly=!1,this._li=null,this._interiorIntersection=null,this._intSegments=null,this._intersections=new xt,this._intersectionCount=0,this._keepIntersections=!0;var t=arguments[0];this._li=t,this._interiorIntersection=null};Ur.prototype.getInteriorIntersection=function(){return this._interiorIntersection},Ur.prototype.setCheckEndSegmentsOnly=function(t){this._isCheckEndSegmentsOnly=t},Ur.prototype.getIntersectionSegments=function(){return this._intSegments},Ur.prototype.count=function(){return this._intersectionCount},Ur.prototype.getIntersections=function(){return this._intersections},Ur.prototype.setFindAllIntersections=function(t){this._findAllIntersections=t},Ur.prototype.setKeepIntersections=function(t){this._keepIntersections=t},Ur.prototype.processIntersections=function(t,e,n,r){if(!this._findAllIntersections&&this.hasIntersection())return null;if(t===n&&e===r)return null;if(this._isCheckEndSegmentsOnly&&!this.isEndSegment(t,e)&&!this.isEndSegment(n,r))return null;var i=t.getCoordinates()[e],o=t.getCoordinates()[e+1],s=n.getCoordinates()[r],a=n.getCoordinates()[r+1];this._li.computeIntersection(i,o,s,a),this._li.hasIntersection()&&this._li.isInteriorIntersection()&&(this._intSegments=new Array(4).fill(null),this._intSegments[0]=i,this._intSegments[1]=o,this._intSegments[2]=s,this._intSegments[3]=a,this._interiorIntersection=this._li.getIntersection(0),this._keepIntersections&&this._intersections.add(this._interiorIntersection),this._intersectionCount++)},Ur.prototype.isEndSegment=function(t,e){return 0===e||e>=t.size()-2},Ur.prototype.hasIntersection=function(){return null!==this._interiorIntersection},Ur.prototype.isDone=function(){return!this._findAllIntersections&&null!==this._interiorIntersection},Ur.prototype.interfaces_=function(){return[Yn]},Ur.prototype.getClass=function(){return Ur},Ur.createAllIntersectionsFinder=function(t){var e=new Ur(t);return e.setFindAllIntersections(!0),e},Ur.createAnyIntersectionFinder=function(t){return new Ur(t)},Ur.createIntersectionCounter=function(t){var e=new Ur(t);return e.setFindAllIntersections(!0),e.setKeepIntersections(!1),e};var Gr=function(){this._li=new it,this._segStrings=null,this._findAllIntersections=!1,this._segInt=null,this._isValid=!0;var t=arguments[0];this._segStrings=t};Gr.prototype.execute=function(){if(null!==this._segInt)return null;this.checkInteriorIntersections()},Gr.prototype.getIntersections=function(){return this._segInt.getIntersections()},Gr.prototype.isValid=function(){return this.execute(),this._isValid},Gr.prototype.setFindAllIntersections=function(t){this._findAllIntersections=t},Gr.prototype.checkInteriorIntersections=function(){this._isValid=!0,this._segInt=new Ur(this._li),this._segInt.setFindAllIntersections(this._findAllIntersections);var t=new En;if(t.setSegmentIntersector(this._segInt),t.computeNodes(this._segStrings),this._segInt.hasIntersection())return this._isValid=!1,null},Gr.prototype.checkValid=function(){if(this.execute(),!this._isValid)throw new Me(this.getErrorMessage(),this._segInt.getInteriorIntersection())},Gr.prototype.getErrorMessage=function(){if(this._isValid)return"no intersections found";var t=this._segInt.getIntersectionSegments();return"found non-noded intersection between "+Q.toLineString(t[0],t[1])+" and "+Q.toLineString(t[2],t[3])},Gr.prototype.interfaces_=function(){return[]},Gr.prototype.getClass=function(){return Gr},Gr.computeIntersections=function(t){var e=new Gr(t);return e.setFindAllIntersections(!0),e.isValid(),e.getIntersections()};var Wr=function t(){this._nv=null;var e=arguments[0];this._nv=new Gr(t.toSegmentStrings(e))};Wr.prototype.checkValid=function(){this._nv.checkValid()},Wr.prototype.interfaces_=function(){return[]},Wr.prototype.getClass=function(){return Wr},Wr.toSegmentStrings=function(t){for(var e=new xt,n=t.iterator();n.hasNext();){var r=n.next();e.add(new zr(r.getCoordinates(),r))}return e},Wr.checkValid=function(t){new Wr(t).checkValid()};var qr=function(t){this._mapOp=t};qr.prototype.map=function(t){for(var e=new xt,n=0;n<t.getNumGeometries();n++){var r=this._mapOp.map(t.getGeometryN(n));r.isEmpty()||e.add(r)}return t.getFactory().createGeometryCollection(ve.toGeometryArray(e))},qr.prototype.interfaces_=function(){return[]},qr.prototype.getClass=function(){return qr},qr.map=function(t,e){return new qr(e).map(t)};var Xr=function(){this._op=null,this._geometryFactory=null,this._ptLocator=null,this._lineEdgesList=new xt,this._resultLineList=new xt;var t=arguments[0],e=arguments[1],n=arguments[2];this._op=t,this._geometryFactory=e,this._ptLocator=n};Xr.prototype.collectLines=function(t){for(var e=this._op.getGraph().getEdgeEnds().iterator();e.hasNext();){var n=e.next();this.collectLineEdge(n,t,this._lineEdgesList),this.collectBoundaryTouchEdge(n,t,this._lineEdgesList)}},Xr.prototype.labelIsolatedLine=function(t,e){var n=this._ptLocator.locate(t.getCoordinate(),this._op.getArgGeometry(e));t.getLabel().setLocation(e,n)},Xr.prototype.build=function(t){return this.findCoveredLineEdges(),this.collectLines(t),this.buildLines(t),this._resultLineList},Xr.prototype.collectLineEdge=function(t,e,n){var r=t.getLabel(),i=t.getEdge();t.isLineEdge()&&(t.isVisited()||!Oi.isResultOfOp(r,e)||i.isCovered()||(n.add(i),t.setVisitedEdge(!0)))},Xr.prototype.findCoveredLineEdges=function(){for(var t=this._op.getGraph().getNodes().iterator();t.hasNext();)t.next().getEdges().findCoveredLineEdges();for(var e=this._op.getGraph().getEdgeEnds().iterator();e.hasNext();){var n=e.next(),r=n.getEdge();if(n.isLineEdge()&&!r.isCoveredSet()){var i=this._op.isCoveredByA(n.getCoordinate());r.setCovered(i)}}},Xr.prototype.labelIsolatedLines=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next(),r=n.getLabel();n.isIsolated()&&(r.isNull(0)?this.labelIsolatedLine(n,0):this.labelIsolatedLine(n,1))}},Xr.prototype.buildLines=function(t){for(var e=this._lineEdgesList.iterator();e.hasNext();){var n=e.next(),r=this._geometryFactory.createLineString(n.getCoordinates());this._resultLineList.add(r),n.setInResult(!0)}},Xr.prototype.collectBoundaryTouchEdge=function(t,e,n){var r=t.getLabel();return t.isLineEdge()||t.isVisited()||t.isInteriorAreaEdge()||t.getEdge().isInResult()?null:(et.isTrue(!(t.isInResult()||t.getSym().isInResult())||!t.getEdge().isInResult()),void(Oi.isResultOfOp(r,e)&&e===Oi.INTERSECTION&&(n.add(t.getEdge()),t.setVisitedEdge(!0))))},Xr.prototype.interfaces_=function(){return[]},Xr.prototype.getClass=function(){return Xr};var Hr=function(){this._op=null,this._geometryFactory=null,this._resultPointList=new xt;var t=arguments[0],e=arguments[1];this._op=t,this._geometryFactory=e};Hr.prototype.filterCoveredNodeToPoint=function(t){var e=t.getCoordinate();if(!this._op.isCoveredByLA(e)){var n=this._geometryFactory.createPoint(e);this._resultPointList.add(n)}},Hr.prototype.extractNonCoveredResultNodes=function(t){for(var e=this._op.getGraph().getNodes().iterator();e.hasNext();){var n=e.next();if(!(n.isInResult()||n.isIncidentEdgeInResult()||0!==n.getEdges().getDegree()&&t!==Oi.INTERSECTION)){var r=n.getLabel();Oi.isResultOfOp(r,t)&&this.filterCoveredNodeToPoint(n)}}},Hr.prototype.build=function(t){return this.extractNonCoveredResultNodes(t),this._resultPointList},Hr.prototype.interfaces_=function(){return[]},Hr.prototype.getClass=function(){return Hr};var Yr=function(){this._inputGeom=null,this._factory=null,this._pruneEmptyGeometry=!0,this._preserveGeometryCollectionType=!0,this._preserveCollections=!1,this._preserveType=!1};Yr.prototype.transformPoint=function(t,e){return this._factory.createPoint(this.transformCoordinates(t.getCoordinateSequence(),t))},Yr.prototype.transformPolygon=function(t,e){var n=!0,r=this.transformLinearRing(t.getExteriorRing(),t);null!==r&&r instanceof ee&&!r.isEmpty()||(n=!1);for(var i=new xt,o=0;o<t.getNumInteriorRing();o++){var s=this.transformLinearRing(t.getInteriorRingN(o),t);null===s||s.isEmpty()||(s instanceof ee||(n=!1),i.add(s))}if(n)return this._factory.createPolygon(r,i.toArray([]));var a=new xt;return null!==r&&a.add(r),a.addAll(i),this._factory.buildGeometry(a)},Yr.prototype.createCoordinateSequence=function(t){return this._factory.getCoordinateSequenceFactory().create(t)},Yr.prototype.getInputGeometry=function(){return this._inputGeom},Yr.prototype.transformMultiLineString=function(t,e){for(var n=new xt,r=0;r<t.getNumGeometries();r++){var i=this.transformLineString(t.getGeometryN(r),t);null!==i&&(i.isEmpty()||n.add(i))}return this._factory.buildGeometry(n)},Yr.prototype.transformCoordinates=function(t,e){return this.copy(t)},Yr.prototype.transformLineString=function(t,e){return this._factory.createLineString(this.transformCoordinates(t.getCoordinateSequence(),t))},Yr.prototype.transformMultiPoint=function(t,e){for(var n=new xt,r=0;r<t.getNumGeometries();r++){var i=this.transformPoint(t.getGeometryN(r),t);null!==i&&(i.isEmpty()||n.add(i))}return this._factory.buildGeometry(n)},Yr.prototype.transformMultiPolygon=function(t,e){for(var n=new xt,r=0;r<t.getNumGeometries();r++){var i=this.transformPolygon(t.getGeometryN(r),t);null!==i&&(i.isEmpty()||n.add(i))}return this._factory.buildGeometry(n)},Yr.prototype.copy=function(t){return t.copy()},Yr.prototype.transformGeometryCollection=function(t,e){for(var n=new xt,r=0;r<t.getNumGeometries();r++){var i=this.transform(t.getGeometryN(r));null!==i&&(this._pruneEmptyGeometry&&i.isEmpty()||n.add(i))}return this._preserveGeometryCollectionType?this._factory.createGeometryCollection(ve.toGeometryArray(n)):this._factory.buildGeometry(n)},Yr.prototype.transform=function(t){if(this._inputGeom=t,this._factory=t.getFactory(),t instanceof Zt)return this.transformPoint(t,null);if(t instanceof te)return this.transformMultiPoint(t,null);if(t instanceof ee)return this.transformLinearRing(t,null);if(t instanceof Jt)return this.transformLineString(t,null);if(t instanceof Gt)return this.transformMultiLineString(t,null);if(t instanceof Kt)return this.transformPolygon(t,null);if(t instanceof ne)return this.transformMultiPolygon(t,null);if(t instanceof Ut)return this.transformGeometryCollection(t,null);throw new m("Unknown Geometry subtype: "+t.getClass().getName())},Yr.prototype.transformLinearRing=function(t,e){var n=this.transformCoordinates(t.getCoordinateSequence(),t);if(null===n)return this._factory.createLinearRing(null);var r=n.size();return r>0&&r<4&&!this._preserveType?this._factory.createLineString(n):this._factory.createLinearRing(n)},Yr.prototype.interfaces_=function(){return[]},Yr.prototype.getClass=function(){return Yr};var Jr=function t(){if(this._snapTolerance=0,this._srcPts=null,this._seg=new gn,this._allowSnappingToSourceVertices=!1,this._isClosed=!1,arguments[0]instanceof Jt&&"number"==typeof arguments[1]){var e=arguments[1];t.call(this,arguments[0].getCoordinates(),e)}else if(arguments[0]instanceof Array&&"number"==typeof arguments[1]){var n=arguments[0],r=arguments[1];this._srcPts=n,this._isClosed=t.isClosed(n),this._snapTolerance=r}};Jr.prototype.snapVertices=function(t,e){for(var n=this._isClosed?t.size()-1:t.size(),r=0;r<n;r++){var i=t.get(r),o=this.findSnapForVertex(i,e);null!==o&&(t.set(r,new P(o)),0===r&&this._isClosed&&t.set(t.size()-1,new P(o)))}},Jr.prototype.findSnapForVertex=function(t,e){for(var n=0;n<e.length;n++){if(t.equals2D(e[n]))return null;if(t.distance(e[n])<this._snapTolerance)return e[n]}return null},Jr.prototype.snapTo=function(t){var e=new St(this._srcPts);return this.snapVertices(e,t),this.snapSegments(e,t),e.toCoordinateArray()},Jr.prototype.snapSegments=function(t,e){if(0===e.length)return null;var n=e.length;e[0].equals2D(e[e.length-1])&&(n=e.length-1);for(var r=0;r<n;r++){var i=e[r],o=this.findSegmentIndexToSnap(i,t);o>=0&&t.add(o+1,new P(i),!1)}},Jr.prototype.findSegmentIndexToSnap=function(t,e){for(var n=_.MAX_VALUE,r=-1,i=0;i<e.size()-1;i++){if(this._seg.p0=e.get(i),this._seg.p1=e.get(i+1),this._seg.p0.equals2D(t)||this._seg.p1.equals2D(t)){if(this._allowSnappingToSourceVertices)continue;return-1}var o=this._seg.distance(t);o<this._snapTolerance&&o<n&&(n=o,r=i)}return r},Jr.prototype.setAllowSnappingToSourceVertices=function(t){this._allowSnappingToSourceVertices=t},Jr.prototype.interfaces_=function(){return[]},Jr.prototype.getClass=function(){return Jr},Jr.isClosed=function(t){return!(t.length<=1)&&t[0].equals2D(t[t.length-1])};var $r=function(t){this._srcGeom=t||null},Zr={SNAP_PRECISION_FACTOR:{configurable:!0}};$r.prototype.snapTo=function(t,e){var n=this.extractTargetCoordinates(t);return new Qr(e,n).transform(this._srcGeom)},$r.prototype.snapToSelf=function(t,e){var n=this.extractTargetCoordinates(this._srcGeom),r=new Qr(t,n,!0).transform(this._srcGeom),i=r;return e&&T(i,Qt)&&(i=r.buffer(0)),i},$r.prototype.computeSnapTolerance=function(t){return this.computeMinimumSegmentLength(t)/10},$r.prototype.extractTargetCoordinates=function(t){for(var e=new f,n=t.getCoordinates(),r=0;r<n.length;r++)e.add(n[r]);return e.toArray(new Array(0).fill(null))},$r.prototype.computeMinimumSegmentLength=function(t){for(var e=_.MAX_VALUE,n=0;n<t.length-1;n++){var r=t[n].distance(t[n+1]);r<e&&(e=r)}return e},$r.prototype.interfaces_=function(){return[]},$r.prototype.getClass=function(){return $r},$r.snap=function(t,e,n){var r=new Array(2).fill(null),i=new $r(t);r[0]=i.snapTo(e,n);var o=new $r(e);return r[1]=o.snapTo(r[0],n),r},$r.computeOverlaySnapTolerance=function(){if(1===arguments.length){var t=arguments[0],e=$r.computeSizeBasedSnapTolerance(t),n=t.getPrecisionModel();if(n.getType()===fe.FIXED){var r=1/n.getScale()*2/1.415;r>e&&(e=r)}return e}if(2===arguments.length){var i=arguments[0],o=arguments[1];return Math.min($r.computeOverlaySnapTolerance(i),$r.computeOverlaySnapTolerance(o))}},$r.computeSizeBasedSnapTolerance=function(t){var e=t.getEnvelopeInternal();return Math.min(e.getHeight(),e.getWidth())*$r.SNAP_PRECISION_FACTOR},$r.snapToSelf=function(t,e,n){return new $r(t).snapToSelf(e,n)},Zr.SNAP_PRECISION_FACTOR.get=function(){return 1e-9},Object.defineProperties($r,Zr);var Qr=function(t){function e(e,n,r){t.call(this),this._snapTolerance=e||null,this._snapPts=n||null,this._isSelfSnap=void 0!==r&&r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.snapLine=function(t,e){var n=new Jr(t,this._snapTolerance);return n.setAllowSnappingToSourceVertices(this._isSelfSnap),n.snapTo(e)},e.prototype.transformCoordinates=function(t,e){var n=t.toCoordinateArray(),r=this.snapLine(n,this._snapPts);return this._factory.getCoordinateSequenceFactory().create(r)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Yr),Kr=function(){this._isFirst=!0,this._commonMantissaBitsCount=53,this._commonBits=0,this._commonSignExp=null};Kr.prototype.getCommon=function(){return _.longBitsToDouble(this._commonBits)},Kr.prototype.add=function(t){var e=_.doubleToLongBits(t);return this._isFirst?(this._commonBits=e,this._commonSignExp=Kr.signExpBits(this._commonBits),this._isFirst=!1,null):Kr.signExpBits(e)!==this._commonSignExp?(this._commonBits=0,null):(this._commonMantissaBitsCount=Kr.numCommonMostSigMantissaBits(this._commonBits,e),void(this._commonBits=Kr.zeroLowerBits(this._commonBits,64-(12+this._commonMantissaBitsCount))))},Kr.prototype.toString=function(){if(1===arguments.length){var t=arguments[0],e=_.longBitsToDouble(t),n="0000000000000000000000000000000000000000000000000000000000000000"+_.toBinaryString(t),r=n.substring(n.length-64);return r.substring(0,1)+" "+r.substring(1,12)+"(exp) "+r.substring(12)+" [ "+e+" ]"}},Kr.prototype.interfaces_=function(){return[]},Kr.prototype.getClass=function(){return Kr},Kr.getBit=function(t,e){return t&1<<e?1:0},Kr.signExpBits=function(t){return t>>52},Kr.zeroLowerBits=function(t,e){return t&~((1<<e)-1)},Kr.numCommonMostSigMantissaBits=function(t,e){for(var n=0,r=52;r>=0;r--){if(Kr.getBit(t,r)!==Kr.getBit(e,r))return n;n++}return 52};var ti=function(){this._commonCoord=null,this._ccFilter=new ni},ei={CommonCoordinateFilter:{configurable:!0},Translater:{configurable:!0}};ti.prototype.addCommonBits=function(t){var e=new ri(this._commonCoord);t.apply(e),t.geometryChanged()},ti.prototype.removeCommonBits=function(t){if(0===this._commonCoord.x&&0===this._commonCoord.y)return t;var e=new P(this._commonCoord);e.x=-e.x,e.y=-e.y;var n=new ri(e);return t.apply(n),t.geometryChanged(),t},ti.prototype.getCommonCoordinate=function(){return this._commonCoord},ti.prototype.add=function(t){t.apply(this._ccFilter),this._commonCoord=this._ccFilter.getCommonCoordinate()},ti.prototype.interfaces_=function(){return[]},ti.prototype.getClass=function(){return ti},ei.CommonCoordinateFilter.get=function(){return ni},ei.Translater.get=function(){return ri},Object.defineProperties(ti,ei);var ni=function(){this._commonBitsX=new Kr,this._commonBitsY=new Kr};ni.prototype.filter=function(t){this._commonBitsX.add(t.x),this._commonBitsY.add(t.y)},ni.prototype.getCommonCoordinate=function(){return new P(this._commonBitsX.getCommon(),this._commonBitsY.getCommon())},ni.prototype.interfaces_=function(){return[ft]},ni.prototype.getClass=function(){return ni};var ri=function(){this.trans=null;var t=arguments[0];this.trans=t};ri.prototype.filter=function(t,e){var n=t.getOrdinate(e,0)+this.trans.x,r=t.getOrdinate(e,1)+this.trans.y;t.setOrdinate(e,0,n),t.setOrdinate(e,1,r)},ri.prototype.isDone=function(){return!1},ri.prototype.isGeometryChanged=function(){return!0},ri.prototype.interfaces_=function(){return[zt]},ri.prototype.getClass=function(){return ri};var ii=function(t,e){this._geom=new Array(2).fill(null),this._snapTolerance=null,this._cbr=null,this._geom[0]=t,this._geom[1]=e,this.computeSnapTolerance()};ii.prototype.selfSnap=function(t){return new $r(t).snapTo(t,this._snapTolerance)},ii.prototype.removeCommonBits=function(t){this._cbr=new ti,this._cbr.add(t[0]),this._cbr.add(t[1]);var e=new Array(2).fill(null);return e[0]=this._cbr.removeCommonBits(t[0].copy()),e[1]=this._cbr.removeCommonBits(t[1].copy()),e},ii.prototype.prepareResult=function(t){return this._cbr.addCommonBits(t),t},ii.prototype.getResultGeometry=function(t){var e=this.snap(this._geom),n=Oi.overlayOp(e[0],e[1],t);return this.prepareResult(n)},ii.prototype.checkValid=function(t){t.isValid()||W.out.println("Snapped geometry is invalid")},ii.prototype.computeSnapTolerance=function(){this._snapTolerance=$r.computeOverlaySnapTolerance(this._geom[0],this._geom[1])},ii.prototype.snap=function(t){var e=this.removeCommonBits(t);return $r.snap(e[0],e[1],this._snapTolerance)},ii.prototype.interfaces_=function(){return[]},ii.prototype.getClass=function(){return ii},ii.overlayOp=function(t,e,n){return new ii(t,e).getResultGeometry(n)},ii.union=function(t,e){return ii.overlayOp(t,e,Oi.UNION)},ii.intersection=function(t,e){return ii.overlayOp(t,e,Oi.INTERSECTION)},ii.symDifference=function(t,e){return ii.overlayOp(t,e,Oi.SYMDIFFERENCE)},ii.difference=function(t,e){return ii.overlayOp(t,e,Oi.DIFFERENCE)};var oi=function(t,e){this._geom=new Array(2).fill(null),this._geom[0]=t,this._geom[1]=e};oi.prototype.getResultGeometry=function(t){var e=null,n=!1,r=null;try{e=Oi.overlayOp(this._geom[0],this._geom[1],t),n=!0}catch(t){if(!(t instanceof K))throw t;r=t}if(!n)try{e=ii.overlayOp(this._geom[0],this._geom[1],t)}catch(t){throw t instanceof K?r:t}return e},oi.prototype.interfaces_=function(){return[]},oi.prototype.getClass=function(){return oi},oi.overlayOp=function(t,e,n){return new oi(t,e).getResultGeometry(n)},oi.union=function(t,e){return oi.overlayOp(t,e,Oi.UNION)},oi.intersection=function(t,e){return oi.overlayOp(t,e,Oi.INTERSECTION)},oi.symDifference=function(t,e){return oi.overlayOp(t,e,Oi.SYMDIFFERENCE)},oi.difference=function(t,e){return oi.overlayOp(t,e,Oi.DIFFERENCE)};var si=function(){this.mce=null,this.chainIndex=null;var t=arguments[0],e=arguments[1];this.mce=t,this.chainIndex=e};si.prototype.computeIntersections=function(t,e){this.mce.computeIntersectsForChain(this.chainIndex,t.mce,t.chainIndex,e)},si.prototype.interfaces_=function(){return[]},si.prototype.getClass=function(){return si};var ai=function t(){if(this._label=null,this._xValue=null,this._eventType=null,this._insertEvent=null,this._deleteEventIndex=null,this._obj=null,2===arguments.length){var e=arguments[0],n=arguments[1];this._eventType=t.DELETE,this._xValue=e,this._insertEvent=n}else if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2];this._eventType=t.INSERT,this._label=r,this._xValue=i,this._obj=o}},ui={INSERT:{configurable:!0},DELETE:{configurable:!0}};ai.prototype.isDelete=function(){return this._eventType===ai.DELETE},ai.prototype.setDeleteEventIndex=function(t){this._deleteEventIndex=t},ai.prototype.getObject=function(){return this._obj},ai.prototype.compareTo=function(t){var e=t;return this._xValue<e._xValue?-1:this._xValue>e._xValue?1:this._eventType<e._eventType?-1:this._eventType>e._eventType?1:0},ai.prototype.getInsertEvent=function(){return this._insertEvent},ai.prototype.isInsert=function(){return this._eventType===ai.INSERT},ai.prototype.isSameLabel=function(t){return null!==this._label&&this._label===t._label},ai.prototype.getDeleteEventIndex=function(){return this._deleteEventIndex},ai.prototype.interfaces_=function(){return[w]},ai.prototype.getClass=function(){return ai},ui.INSERT.get=function(){return 1},ui.DELETE.get=function(){return 2},Object.defineProperties(ai,ui);var ci=function(){};ci.prototype.interfaces_=function(){return[]},ci.prototype.getClass=function(){return ci};var li=function(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._properIntersectionPoint=null,this._li=null,this._includeProper=null,this._recordIsolated=null,this._isSelfIntersection=null,this._numIntersections=0,this.numTests=0,this._bdyNodes=null,this._isDone=!1,this._isDoneWhenProperInt=!1;var t=arguments[0],e=arguments[1],n=arguments[2];this._li=t,this._includeProper=e,this._recordIsolated=n};li.prototype.isTrivialIntersection=function(t,e,n,r){if(t===n&&1===this._li.getIntersectionNum()){if(li.isAdjacentSegments(e,r))return!0;if(t.isClosed()){var i=t.getNumPoints()-1;if(0===e&&r===i||0===r&&e===i)return!0}}return!1},li.prototype.getProperIntersectionPoint=function(){return this._properIntersectionPoint},li.prototype.setIsDoneIfProperInt=function(t){this._isDoneWhenProperInt=t},li.prototype.hasProperInteriorIntersection=function(){return this._hasProperInterior},li.prototype.isBoundaryPointInternal=function(t,e){for(var n=e.iterator();n.hasNext();){var r=n.next().getCoordinate();if(t.isIntersection(r))return!0}return!1},li.prototype.hasProperIntersection=function(){return this._hasProper},li.prototype.hasIntersection=function(){return this._hasIntersection},li.prototype.isDone=function(){return this._isDone},li.prototype.isBoundaryPoint=function(t,e){return!(null===e||!this.isBoundaryPointInternal(t,e[0])&&!this.isBoundaryPointInternal(t,e[1]))},li.prototype.setBoundaryNodes=function(t,e){this._bdyNodes=new Array(2).fill(null),this._bdyNodes[0]=t,this._bdyNodes[1]=e},li.prototype.addIntersections=function(t,e,n,r){if(t===n&&e===r)return null;this.numTests++;var i=t.getCoordinates()[e],o=t.getCoordinates()[e+1],s=n.getCoordinates()[r],a=n.getCoordinates()[r+1];this._li.computeIntersection(i,o,s,a),this._li.hasIntersection()&&(this._recordIsolated&&(t.setIsolated(!1),n.setIsolated(!1)),this._numIntersections++,this.isTrivialIntersection(t,e,n,r)||(this._hasIntersection=!0,!this._includeProper&&this._li.isProper()||(t.addIntersections(this._li,e,0),n.addIntersections(this._li,r,1)),this._li.isProper()&&(this._properIntersectionPoint=this._li.getIntersection(0).copy(),this._hasProper=!0,this._isDoneWhenProperInt&&(this._isDone=!0),this.isBoundaryPoint(this._li,this._bdyNodes)||(this._hasProperInterior=!0))))},li.prototype.interfaces_=function(){return[]},li.prototype.getClass=function(){return li},li.isAdjacentSegments=function(t,e){return 1===Math.abs(t-e)};var hi=function(t){function e(){t.call(this),this.events=new xt,this.nOverlaps=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.prepareEvents=function(){Ke.sort(this.events);for(var t=0;t<this.events.size();t++){var e=this.events.get(t);e.isDelete()&&e.getInsertEvent().setDeleteEventIndex(t)}},e.prototype.computeIntersections=function(){if(1===arguments.length){var t=arguments[0];this.nOverlaps=0,this.prepareEvents();for(var e=0;e<this.events.size();e++){var n=this.events.get(e);if(n.isInsert()&&this.processOverlaps(e,n.getDeleteEventIndex(),n,t),t.isDone())break}}else if(3===arguments.length)if(arguments[2]instanceof li&&T(arguments[0],Et)&&T(arguments[1],Et)){var r=arguments[0],i=arguments[1],o=arguments[2];this.addEdges(r,r),this.addEdges(i,i),this.computeIntersections(o)}else if("boolean"==typeof arguments[2]&&T(arguments[0],Et)&&arguments[1]instanceof li){var s=arguments[0],a=arguments[1];arguments[2]?this.addEdges(s,null):this.addEdges(s),this.computeIntersections(a)}},e.prototype.addEdge=function(t,e){for(var n=t.getMonotoneChainEdge(),r=n.getStartIndexes(),i=0;i<r.length-1;i++){var o=new si(n,i),s=new ai(e,n.getMinX(i),o);this.events.add(s),this.events.add(new ai(n.getMaxX(i),s))}},e.prototype.processOverlaps=function(t,e,n,r){for(var i=n.getObject(),o=t;o<e;o++){var s=this.events.get(o);if(s.isInsert()){var a=s.getObject();n.isSameLabel(s)||(i.computeIntersections(a,r),this.nOverlaps++)}}},e.prototype.addEdges=function(){if(1===arguments.length)for(var t=arguments[0].iterator();t.hasNext();){var e=t.next();this.addEdge(e,e)}else if(2===arguments.length)for(var n=arguments[1],r=arguments[0].iterator();r.hasNext();){var i=r.next();this.addEdge(i,n)}},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(ci),pi=function(){this._min=_.POSITIVE_INFINITY,this._max=_.NEGATIVE_INFINITY},fi={NodeComparator:{configurable:!0}};pi.prototype.getMin=function(){return this._min},pi.prototype.intersects=function(t,e){return!(this._min>e||this._max<t)},pi.prototype.getMax=function(){return this._max},pi.prototype.toString=function(){return Q.toLineString(new P(this._min,0),new P(this._max,0))},pi.prototype.interfaces_=function(){return[]},pi.prototype.getClass=function(){return pi},fi.NodeComparator.get=function(){return di},Object.defineProperties(pi,fi);var di=function(){};di.prototype.compare=function(t,e){var n=t,r=e,i=(n._min+n._max)/2,o=(r._min+r._max)/2;return i<o?-1:i>o?1:0},di.prototype.interfaces_=function(){return[x]},di.prototype.getClass=function(){return di};var gi=function(t){function e(){t.call(this),this._item=null;var e=arguments[0],n=arguments[1],r=arguments[2];this._min=e,this._max=n,this._item=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.query=function(t,e,n){if(!this.intersects(t,e))return null;n.visitItem(this._item)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(pi),yi=function(t){function e(){t.call(this),this._node1=null,this._node2=null;var e=arguments[0],n=arguments[1];this._node1=e,this._node2=n,this.buildExtent(this._node1,this._node2)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.buildExtent=function(t,e){this._min=Math.min(t._min,e._min),this._max=Math.max(t._max,e._max)},e.prototype.query=function(t,e,n){if(!this.intersects(t,e))return null;null!==this._node1&&this._node1.query(t,e,n),null!==this._node2&&this._node2.query(t,e,n)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(pi),vi=function(){this._leaves=new xt,this._root=null,this._level=0};vi.prototype.buildTree=function(){Ke.sort(this._leaves,new pi.NodeComparator);for(var t=this._leaves,e=null,n=new xt;;){if(this.buildLevel(t,n),1===n.size())return n.get(0);e=t,t=n,n=e}},vi.prototype.insert=function(t,e,n){if(null!==this._root)throw new Error("Index cannot be added to once it has been queried");this._leaves.add(new gi(t,e,n))},vi.prototype.query=function(t,e,n){this.init(),this._root.query(t,e,n)},vi.prototype.buildRoot=function(){if(null!==this._root)return null;this._root=this.buildTree()},vi.prototype.printNode=function(t){W.out.println(Q.toLineString(new P(t._min,this._level),new P(t._max,this._level)))},vi.prototype.init=function(){if(null!==this._root)return null;this.buildRoot()},vi.prototype.buildLevel=function(t,e){this._level++,e.clear();for(var n=0;n<t.size();n+=2){var r=t.get(n);if(null===(n+1<t.size()?t.get(n):null))e.add(r);else{var i=new yi(t.get(n),t.get(n+1));e.add(i)}}},vi.prototype.interfaces_=function(){return[]},vi.prototype.getClass=function(){return vi};var mi=function(){this._items=new xt};mi.prototype.visitItem=function(t){this._items.add(t)},mi.prototype.getItems=function(){return this._items},mi.prototype.interfaces_=function(){return[Je]},mi.prototype.getClass=function(){return mi};var _i=function(){this._index=null;var t=arguments[0];if(!T(t,Qt))throw new m("Argument must be Polygonal");this._index=new Ei(t)},bi={SegmentVisitor:{configurable:!0},IntervalIndexedGeometry:{configurable:!0}};_i.prototype.locate=function(t){var e=new st(t),n=new wi(e);return this._index.query(t.y,t.y,n),e.getLocation()},_i.prototype.interfaces_=function(){return[Bn]},_i.prototype.getClass=function(){return _i},bi.SegmentVisitor.get=function(){return wi},bi.IntervalIndexedGeometry.get=function(){return Ei},Object.defineProperties(_i,bi);var wi=function(){this._counter=null;var t=arguments[0];this._counter=t};wi.prototype.visitItem=function(t){var e=t;this._counter.countSegment(e.getCoordinate(0),e.getCoordinate(1))},wi.prototype.interfaces_=function(){return[Je]},wi.prototype.getClass=function(){return wi};var Ei=function(){this._index=new vi;var t=arguments[0];this.init(t)};Ei.prototype.init=function(t){for(var e=Pr.getLines(t).iterator();e.hasNext();){var n=e.next().getCoordinates();this.addLine(n)}},Ei.prototype.addLine=function(t){for(var e=1;e<t.length;e++){var n=new gn(t[e-1],t[e]),r=Math.min(n.p0.y,n.p1.y),i=Math.max(n.p0.y,n.p1.y);this._index.insert(r,i,n)}},Ei.prototype.query=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1],n=new mi;return this._index.query(t,e,n),n.getItems()}if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2];this._index.query(r,i,o)}},Ei.prototype.interfaces_=function(){return[]},Ei.prototype.getClass=function(){return Ei};var xi=function(t){function e(){if(t.call(this),this._parentGeom=null,this._lineEdgeMap=new pe,this._boundaryNodeRule=null,this._useBoundaryDeterminationRule=!0,this._argIndex=null,this._boundaryNodes=null,this._hasTooFewPoints=!1,this._invalidPoint=null,this._areaPtLocator=null,this._ptLocator=new Sr,2===arguments.length){var e=arguments[0],n=arguments[1],r=dt.OGC_SFS_BOUNDARY_RULE;this._argIndex=e,this._parentGeom=n,this._boundaryNodeRule=r,null!==n&&this.add(n)}else if(3===arguments.length){var i=arguments[0],o=arguments[1],s=arguments[2];this._argIndex=i,this._parentGeom=o,this._boundaryNodeRule=s,null!==o&&this.add(o)}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.insertBoundaryPoint=function(t,n){var r=this._nodes.addNode(n).getLabel(),i=1;r.getLocation(t,Se.ON)===M.BOUNDARY&&i++;var o=e.determineBoundary(this._boundaryNodeRule,i);r.setLocation(t,o)},e.prototype.computeSelfNodes=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];return this.computeSelfNodes(t,e,!1)}if(3===arguments.length){var n=arguments[1],r=arguments[2],i=new li(arguments[0],!0,!1);i.setIsDoneIfProperInt(r);var o=this.createEdgeSetIntersector(),s=this._parentGeom instanceof ee||this._parentGeom instanceof Kt||this._parentGeom instanceof ne,a=n||!s;return o.computeIntersections(this._edges,i,a),this.addSelfIntersectionNodes(this._argIndex),i}},e.prototype.computeSplitEdges=function(t){for(var e=this._edges.iterator();e.hasNext();)e.next().eiList.addSplitEdges(t)},e.prototype.computeEdgeIntersections=function(t,e,n){var r=new li(e,n,!0);return r.setBoundaryNodes(this.getBoundaryNodes(),t.getBoundaryNodes()),this.createEdgeSetIntersector().computeIntersections(this._edges,t._edges,r),r},e.prototype.getGeometry=function(){return this._parentGeom},e.prototype.getBoundaryNodeRule=function(){return this._boundaryNodeRule},e.prototype.hasTooFewPoints=function(){return this._hasTooFewPoints},e.prototype.addPoint=function(){if(arguments[0]instanceof Zt){var t=arguments[0].getCoordinate();this.insertPoint(this._argIndex,t,M.INTERIOR)}else if(arguments[0]instanceof P){var e=arguments[0];this.insertPoint(this._argIndex,e,M.INTERIOR)}},e.prototype.addPolygon=function(t){this.addPolygonRing(t.getExteriorRing(),M.EXTERIOR,M.INTERIOR);for(var e=0;e<t.getNumInteriorRing();e++){var n=t.getInteriorRingN(e);this.addPolygonRing(n,M.INTERIOR,M.EXTERIOR)}},e.prototype.addEdge=function(t){this.insertEdge(t);var e=t.getCoordinates();this.insertPoint(this._argIndex,e[0],M.BOUNDARY),this.insertPoint(this._argIndex,e[e.length-1],M.BOUNDARY)},e.prototype.addLineString=function(t){var e=Ot.removeRepeatedPoints(t.getCoordinates());if(e.length<2)return this._hasTooFewPoints=!0,this._invalidPoint=e[0],null;var n=new nr(e,new Ne(this._argIndex,M.INTERIOR));this._lineEdgeMap.put(t,n),this.insertEdge(n),et.isTrue(e.length>=2,"found LineString with single point"),this.insertBoundaryPoint(this._argIndex,e[0]),this.insertBoundaryPoint(this._argIndex,e[e.length-1])},e.prototype.getInvalidPoint=function(){return this._invalidPoint},e.prototype.getBoundaryPoints=function(){for(var t=this.getBoundaryNodes(),e=new Array(t.size()).fill(null),n=0,r=t.iterator();r.hasNext();){var i=r.next();e[n++]=i.getCoordinate().copy()}return e},e.prototype.getBoundaryNodes=function(){return null===this._boundaryNodes&&(this._boundaryNodes=this._nodes.getBoundaryNodes(this._argIndex)),this._boundaryNodes},e.prototype.addSelfIntersectionNode=function(t,e,n){if(this.isBoundaryNode(t,e))return null;n===M.BOUNDARY&&this._useBoundaryDeterminationRule?this.insertBoundaryPoint(t,e):this.insertPoint(t,e,n)},e.prototype.addPolygonRing=function(t,e,n){if(t.isEmpty())return null;var r=Ot.removeRepeatedPoints(t.getCoordinates());if(r.length<4)return this._hasTooFewPoints=!0,this._invalidPoint=r[0],null;var i=e,o=n;at.isCCW(r)&&(i=n,o=e);var s=new nr(r,new Ne(this._argIndex,M.BOUNDARY,i,o));this._lineEdgeMap.put(t,s),this.insertEdge(s),this.insertPoint(this._argIndex,r[0],M.BOUNDARY)},e.prototype.insertPoint=function(t,e,n){var r=this._nodes.addNode(e),i=r.getLabel();null===i?r._label=new Ne(t,n):i.setLocation(t,n)},e.prototype.createEdgeSetIntersector=function(){return new hi},e.prototype.addSelfIntersectionNodes=function(t){for(var e=this._edges.iterator();e.hasNext();)for(var n=e.next(),r=n.getLabel().getLocation(t),i=n.eiList.iterator();i.hasNext();){var o=i.next();this.addSelfIntersectionNode(t,o.coord,r)}},e.prototype.add=function(){if(1!==arguments.length)return t.prototype.add.apply(this,arguments);var e=arguments[0];if(e.isEmpty())return null;if(e instanceof ne&&(this._useBoundaryDeterminationRule=!1),e instanceof Kt)this.addPolygon(e);else if(e instanceof Jt)this.addLineString(e);else if(e instanceof Zt)this.addPoint(e);else if(e instanceof te)this.addCollection(e);else if(e instanceof Gt)this.addCollection(e);else if(e instanceof ne)this.addCollection(e);else{if(!(e instanceof Ut))throw new Error(e.getClass().getName());this.addCollection(e)}},e.prototype.addCollection=function(t){for(var e=0;e<t.getNumGeometries();e++){var n=t.getGeometryN(e);this.add(n)}},e.prototype.locate=function(t){return T(this._parentGeom,Qt)&&this._parentGeom.getNumGeometries()>50?(null===this._areaPtLocator&&(this._areaPtLocator=new _i(this._parentGeom)),this._areaPtLocator.locate(t)):this._ptLocator.locate(t,this._parentGeom)},e.prototype.findEdge=function(){if(1===arguments.length){var e=arguments[0];return this._lineEdgeMap.get(e)}return t.prototype.findEdge.apply(this,arguments)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.determineBoundary=function(t,e){return t.isInBoundary(e)?M.BOUNDARY:M.INTERIOR},e}(We),Pi=function(){if(this._li=new it,this._resultPrecisionModel=null,this._arg=null,1===arguments.length){var t=arguments[0];this.setComputationPrecision(t.getPrecisionModel()),this._arg=new Array(1).fill(null),this._arg[0]=new xi(0,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1],r=dt.OGC_SFS_BOUNDARY_RULE;e.getPrecisionModel().compareTo(n.getPrecisionModel())>=0?this.setComputationPrecision(e.getPrecisionModel()):this.setComputationPrecision(n.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new xi(0,e,r),this._arg[1]=new xi(1,n,r)}else if(3===arguments.length){var i=arguments[0],o=arguments[1],s=arguments[2];i.getPrecisionModel().compareTo(o.getPrecisionModel())>=0?this.setComputationPrecision(i.getPrecisionModel()):this.setComputationPrecision(o.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new xi(0,i,s),this._arg[1]=new xi(1,o,s)}};Pi.prototype.getArgGeometry=function(t){return this._arg[t].getGeometry()},Pi.prototype.setComputationPrecision=function(t){this._resultPrecisionModel=t,this._li.setPrecisionModel(this._resultPrecisionModel)},Pi.prototype.interfaces_=function(){return[]},Pi.prototype.getClass=function(){return Pi};var Si=function(){};Si.prototype.interfaces_=function(){return[]},Si.prototype.getClass=function(){return Si},Si.map=function(){if(arguments[0]instanceof lt&&T(arguments[1],Si.MapOp)){for(var t=arguments[0],e=arguments[1],n=new xt,r=0;r<t.getNumGeometries();r++){var i=e.map(t.getGeometryN(r));null!==i&&n.add(i)}return t.getFactory().buildGeometry(n)}if(T(arguments[0],bt)&&T(arguments[1],Si.MapOp)){for(var o=arguments[0],s=arguments[1],a=new xt,u=o.iterator();u.hasNext();){var c=u.next(),l=s.map(c);null!==l&&a.add(l)}return a}},Si.MapOp=function(){};var Oi=function(t){function e(){var e=arguments[0],n=arguments[1];t.call(this,e,n),this._ptLocator=new Sr,this._geomFact=null,this._resultGeom=null,this._graph=null,this._edgeList=new Hn,this._resultPolyList=new xt,this._resultLineList=new xt,this._resultPointList=new xt,this._graph=new We(new qn),this._geomFact=e.getFactory()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.insertUniqueEdge=function(t){var e=this._edgeList.findEqualEdge(t);if(null!==e){var n=e.getLabel(),r=t.getLabel();e.isPointwiseEqual(t)||(r=new Ne(t.getLabel())).flip();var i=e.getDepth();i.isNull()&&i.add(n),i.add(r),n.merge(r)}else this._edgeList.add(t)},e.prototype.getGraph=function(){return this._graph},e.prototype.cancelDuplicateResultEdges=function(){for(var t=this._graph.getEdgeEnds().iterator();t.hasNext();){var e=t.next(),n=e.getSym();e.isInResult()&&n.isInResult()&&(e.setInResult(!1),n.setInResult(!1))}},e.prototype.isCoveredByLA=function(t){return!!this.isCovered(t,this._resultLineList)||!!this.isCovered(t,this._resultPolyList)},e.prototype.computeGeometry=function(t,n,r,i){var o=new xt;return o.addAll(t),o.addAll(n),o.addAll(r),o.isEmpty()?e.createEmptyResult(i,this._arg[0].getGeometry(),this._arg[1].getGeometry(),this._geomFact):this._geomFact.buildGeometry(o)},e.prototype.mergeSymLabels=function(){for(var t=this._graph.getNodes().iterator();t.hasNext();)t.next().getEdges().mergeSymLabels()},e.prototype.isCovered=function(t,e){for(var n=e.iterator();n.hasNext();){var r=n.next();if(this._ptLocator.locate(t,r)!==M.EXTERIOR)return!0}return!1},e.prototype.replaceCollapsedEdges=function(){for(var t=new xt,e=this._edgeList.iterator();e.hasNext();){var n=e.next();n.isCollapsed()&&(e.remove(),t.add(n.getCollapsedEdge()))}this._edgeList.addAll(t)},e.prototype.updateNodeLabelling=function(){for(var t=this._graph.getNodes().iterator();t.hasNext();){var e=t.next(),n=e.getEdges().getLabel();e.getLabel().merge(n)}},e.prototype.getResultGeometry=function(t){return this.computeOverlay(t),this._resultGeom},e.prototype.insertUniqueEdges=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();this.insertUniqueEdge(n)}},e.prototype.computeOverlay=function(t){this.copyPoints(0),this.copyPoints(1),this._arg[0].computeSelfNodes(this._li,!1),this._arg[1].computeSelfNodes(this._li,!1),this._arg[0].computeEdgeIntersections(this._arg[1],this._li,!0);var e=new xt;this._arg[0].computeSplitEdges(e),this._arg[1].computeSplitEdges(e),this.insertUniqueEdges(e),this.computeLabelsFromDepths(),this.replaceCollapsedEdges(),Wr.checkValid(this._edgeList.getEdges()),this._graph.addEdges(this._edgeList.getEdges()),this.computeLabelling(),this.labelIncompleteNodes(),this.findResultAreaEdges(t),this.cancelDuplicateResultEdges();var n=new qe(this._geomFact);n.add(this._graph),this._resultPolyList=n.getPolygons();var r=new Xr(this,this._geomFact,this._ptLocator);this._resultLineList=r.build(t);var i=new Hr(this,this._geomFact,this._ptLocator);this._resultPointList=i.build(t),this._resultGeom=this.computeGeometry(this._resultPointList,this._resultLineList,this._resultPolyList,t)},e.prototype.labelIncompleteNode=function(t,e){var n=this._ptLocator.locate(t.getCoordinate(),this._arg[e].getGeometry());t.getLabel().setLocation(e,n)},e.prototype.copyPoints=function(t){for(var e=this._arg[t].getNodeIterator();e.hasNext();){var n=e.next();this._graph.addNode(n.getCoordinate()).setLabel(t,n.getLabel().getLocation(t))}},e.prototype.findResultAreaEdges=function(t){for(var n=this._graph.getEdgeEnds().iterator();n.hasNext();){var r=n.next(),i=r.getLabel();i.isArea()&&!r.isInteriorAreaEdge()&&e.isResultOfOp(i.getLocation(0,Se.RIGHT),i.getLocation(1,Se.RIGHT),t)&&r.setInResult(!0)}},e.prototype.computeLabelsFromDepths=function(){for(var t=this._edgeList.iterator();t.hasNext();){var e=t.next(),n=e.getLabel(),r=e.getDepth();if(!r.isNull()){r.normalize();for(var i=0;i<2;i++)n.isNull(i)||!n.isArea()||r.isNull(i)||(0===r.getDelta(i)?n.toLine(i):(et.isTrue(!r.isNull(i,Se.LEFT),"depth of LEFT side has not been initialized"),n.setLocation(i,Se.LEFT,r.getLocation(i,Se.LEFT)),et.isTrue(!r.isNull(i,Se.RIGHT),"depth of RIGHT side has not been initialized"),n.setLocation(i,Se.RIGHT,r.getLocation(i,Se.RIGHT))))}}},e.prototype.computeLabelling=function(){for(var t=this._graph.getNodes().iterator();t.hasNext();)t.next().getEdges().computeLabelling(this._arg);this.mergeSymLabels(),this.updateNodeLabelling()},e.prototype.labelIncompleteNodes=function(){for(var t=this._graph.getNodes().iterator();t.hasNext();){var e=t.next(),n=e.getLabel();e.isIsolated()&&(n.isNull(0)?this.labelIncompleteNode(e,0):this.labelIncompleteNode(e,1)),e.getEdges().updateLabelling(n)}},e.prototype.isCoveredByA=function(t){return!!this.isCovered(t,this._resultPolyList)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Pi);Oi.overlayOp=function(t,e,n){return new Oi(t,e).getResultGeometry(n)},Oi.intersection=function(t,e){if(t.isEmpty()||e.isEmpty())return Oi.createEmptyResult(Oi.INTERSECTION,t,e,t.getFactory());if(t.isGeometryCollection()){var n=e;return qr.map(t,{interfaces_:function(){return[Si.MapOp]},map:function(t){return t.intersection(n)}})}return t.checkNotGeometryCollection(t),t.checkNotGeometryCollection(e),oi.overlayOp(t,e,Oi.INTERSECTION)},Oi.symDifference=function(t,e){if(t.isEmpty()||e.isEmpty()){if(t.isEmpty()&&e.isEmpty())return Oi.createEmptyResult(Oi.SYMDIFFERENCE,t,e,t.getFactory());if(t.isEmpty())return e.copy();if(e.isEmpty())return t.copy()}return t.checkNotGeometryCollection(t),t.checkNotGeometryCollection(e),oi.overlayOp(t,e,Oi.SYMDIFFERENCE)},Oi.resultDimension=function(t,e,n){var r=e.getDimension(),i=n.getDimension(),o=-1;switch(t){case Oi.INTERSECTION:o=Math.min(r,i);break;case Oi.UNION:o=Math.max(r,i);break;case Oi.DIFFERENCE:o=r;break;case Oi.SYMDIFFERENCE:o=Math.max(r,i)}return o},Oi.createEmptyResult=function(t,e,n,r){var i=null;switch(Oi.resultDimension(t,e,n)){case-1:i=r.createGeometryCollection(new Array(0).fill(null));break;case 0:i=r.createPoint();break;case 1:i=r.createLineString();break;case 2:i=r.createPolygon()}return i},Oi.difference=function(t,e){return t.isEmpty()?Oi.createEmptyResult(Oi.DIFFERENCE,t,e,t.getFactory()):e.isEmpty()?t.copy():(t.checkNotGeometryCollection(t),t.checkNotGeometryCollection(e),oi.overlayOp(t,e,Oi.DIFFERENCE))},Oi.isResultOfOp=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1],n=t.getLocation(0),r=t.getLocation(1);return Oi.isResultOfOp(n,r,e)}if(3===arguments.length){var i=arguments[0],o=arguments[1];switch(i===M.BOUNDARY&&(i=M.INTERIOR),o===M.BOUNDARY&&(o=M.INTERIOR),arguments[2]){case Oi.INTERSECTION:return i===M.INTERIOR&&o===M.INTERIOR;case Oi.UNION:return i===M.INTERIOR||o===M.INTERIOR;case Oi.DIFFERENCE:return i===M.INTERIOR&&o!==M.INTERIOR;case Oi.SYMDIFFERENCE:return i===M.INTERIOR&&o!==M.INTERIOR||i!==M.INTERIOR&&o===M.INTERIOR}return!1}},Oi.INTERSECTION=1,Oi.UNION=2,Oi.DIFFERENCE=3,Oi.SYMDIFFERENCE=4;var Ci=function(){this._g=null,this._boundaryDistanceTolerance=null,this._linework=null,this._ptLocator=new Sr,this._seg=new gn;var t=arguments[0],e=arguments[1];this._g=t,this._boundaryDistanceTolerance=e,this._linework=this.extractLinework(t)};Ci.prototype.isWithinToleranceOfBoundary=function(t){for(var e=0;e<this._linework.getNumGeometries();e++)for(var n=this._linework.getGeometryN(e).getCoordinateSequence(),r=0;r<n.size()-1;r++)if(n.getCoordinate(r,this._seg.p0),n.getCoordinate(r+1,this._seg.p1),this._seg.distance(t)<=this._boundaryDistanceTolerance)return!0;return!1},Ci.prototype.getLocation=function(t){return this.isWithinToleranceOfBoundary(t)?M.BOUNDARY:this._ptLocator.locate(t,this._g)},Ci.prototype.extractLinework=function(t){var e=new Mi;t.apply(e);var n=e.getLinework(),r=ve.toLineStringArray(n);return t.getFactory().createMultiLineString(r)},Ci.prototype.interfaces_=function(){return[]},Ci.prototype.getClass=function(){return Ci};var Mi=function(){this._linework=null,this._linework=new xt};Mi.prototype.getLinework=function(){return this._linework},Mi.prototype.filter=function(t){if(t instanceof Kt){var e=t;this._linework.add(e.getExteriorRing());for(var n=0;n<e.getNumInteriorRing();n++)this._linework.add(e.getInteriorRingN(n))}},Mi.prototype.interfaces_=function(){return[Bt]},Mi.prototype.getClass=function(){return Mi};var Ii=function(){this._g=null,this._doLeft=!0,this._doRight=!0;var t=arguments[0];this._g=t};Ii.prototype.extractPoints=function(t,e,n){for(var r=t.getCoordinates(),i=0;i<r.length-1;i++)this.computeOffsetPoints(r[i],r[i+1],e,n)},Ii.prototype.setSidesToGenerate=function(t,e){this._doLeft=t,this._doRight=e},Ii.prototype.getPoints=function(t){for(var e=new xt,n=Pr.getLines(this._g).iterator();n.hasNext();){var r=n.next();this.extractPoints(r,t,e)}return e},Ii.prototype.computeOffsetPoints=function(t,e,n,r){var i=e.x-t.x,o=e.y-t.y,s=Math.sqrt(i*i+o*o),a=n*i/s,u=n*o/s,c=(e.x+t.x)/2,l=(e.y+t.y)/2;if(this._doLeft){var h=new P(c-u,l+a);r.add(h)}if(this._doRight){var p=new P(c+u,l-a);r.add(p)}},Ii.prototype.interfaces_=function(){return[]},Ii.prototype.getClass=function(){return Ii};var Ti=function t(){this._geom=null,this._locFinder=null,this._location=new Array(3).fill(null),this._invalidLocation=null,this._boundaryDistanceTolerance=t.TOLERANCE,this._testCoords=new xt;var e=arguments[0],n=arguments[1],r=arguments[2];this._boundaryDistanceTolerance=t.computeBoundaryDistanceTolerance(e,n),this._geom=[e,n,r],this._locFinder=[new Ci(this._geom[0],this._boundaryDistanceTolerance),new Ci(this._geom[1],this._boundaryDistanceTolerance),new Ci(this._geom[2],this._boundaryDistanceTolerance)]},ji={TOLERANCE:{configurable:!0}};Ti.prototype.reportResult=function(t,e,n){W.out.println("Overlay result invalid - A:"+M.toLocationSymbol(e[0])+" B:"+M.toLocationSymbol(e[1])+" expected:"+(n?"i":"e")+" actual:"+M.toLocationSymbol(e[2]))},Ti.prototype.isValid=function(t){return this.addTestPts(this._geom[0]),this.addTestPts(this._geom[1]),this.checkValid(t)},Ti.prototype.checkValid=function(){if(1===arguments.length){for(var t=arguments[0],e=0;e<this._testCoords.size();e++){var n=this._testCoords.get(e);if(!this.checkValid(t,n))return this._invalidLocation=n,!1}return!0}if(2===arguments.length){var r=arguments[0],i=arguments[1];return this._location[0]=this._locFinder[0].getLocation(i),this._location[1]=this._locFinder[1].getLocation(i),this._location[2]=this._locFinder[2].getLocation(i),!!Ti.hasLocation(this._location,M.BOUNDARY)||this.isValidResult(r,this._location)}},Ti.prototype.addTestPts=function(t){var e=new Ii(t);this._testCoords.addAll(e.getPoints(5*this._boundaryDistanceTolerance))},Ti.prototype.isValidResult=function(t,e){var n=Oi.isResultOfOp(e[0],e[1],t),r=!(n^e[2]===M.INTERIOR);return r||this.reportResult(t,e,n),r},Ti.prototype.getInvalidLocation=function(){return this._invalidLocation},Ti.prototype.interfaces_=function(){return[]},Ti.prototype.getClass=function(){return Ti},Ti.hasLocation=function(t,e){for(var n=0;n<3;n++)if(t[n]===e)return!0;return!1},Ti.computeBoundaryDistanceTolerance=function(t,e){return Math.min($r.computeSizeBasedSnapTolerance(t),$r.computeSizeBasedSnapTolerance(e))},Ti.isValid=function(t,e,n,r){return new Ti(t,e,r).isValid(n)},ji.TOLERANCE.get=function(){return 1e-6},Object.defineProperties(Ti,ji);var Ni=function t(e){this._geomFactory=null,this._skipEmpty=!1,this._inputGeoms=null,this._geomFactory=t.extractFactory(e),this._inputGeoms=e};Ni.prototype.extractElements=function(t,e){if(null===t)return null;for(var n=0;n<t.getNumGeometries();n++){var r=t.getGeometryN(n);this._skipEmpty&&r.isEmpty()||e.add(r)}},Ni.prototype.combine=function(){for(var t=new xt,e=this._inputGeoms.iterator();e.hasNext();){var n=e.next();this.extractElements(n,t)}return 0===t.size()?null!==this._geomFactory?this._geomFactory.createGeometryCollection(null):null:this._geomFactory.buildGeometry(t)},Ni.prototype.interfaces_=function(){return[]},Ni.prototype.getClass=function(){return Ni},Ni.combine=function(){return 1===arguments.length?new Ni(arguments[0]).combine():2===arguments.length?new Ni(Ni.createList(arguments[0],arguments[1])).combine():3===arguments.length?new Ni(Ni.createList(arguments[0],arguments[1],arguments[2])).combine():void 0},Ni.extractFactory=function(t){return t.isEmpty()?null:t.iterator().next().getFactory()},Ni.createList=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1],n=new xt;return n.add(t),n.add(e),n}if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2],s=new xt;return s.add(r),s.add(i),s.add(o),s}};var Di=function(){this._inputPolys=null,this._geomFactory=null;var t=arguments[0];this._inputPolys=t,null===this._inputPolys&&(this._inputPolys=new xt)},Ai={STRTREE_NODE_CAPACITY:{configurable:!0}};Di.prototype.reduceToGeometries=function(t){for(var e=new xt,n=t.iterator();n.hasNext();){var r=n.next(),i=null;T(r,Et)?i=this.unionTree(r):r instanceof lt&&(i=r),e.add(i)}return e},Di.prototype.extractByEnvelope=function(t,e,n){for(var r=new xt,i=0;i<e.getNumGeometries();i++){var o=e.getGeometryN(i);o.getEnvelopeInternal().intersects(t)?r.add(o):n.add(o)}return this._geomFactory.buildGeometry(r)},Di.prototype.unionOptimized=function(t,e){var n=t.getEnvelopeInternal(),r=e.getEnvelopeInternal();if(!n.intersects(r))return Ni.combine(t,e);if(t.getNumGeometries()<=1&&e.getNumGeometries()<=1)return this.unionActual(t,e);var i=n.intersection(r);return this.unionUsingEnvelopeIntersection(t,e,i)},Di.prototype.union=function(){if(null===this._inputPolys)throw new Error("union() method cannot be called twice");if(this._inputPolys.isEmpty())return null;this._geomFactory=this._inputPolys.iterator().next().getFactory();for(var t=new sn(Di.STRTREE_NODE_CAPACITY),e=this._inputPolys.iterator();e.hasNext();){var n=e.next();t.insert(n.getEnvelopeInternal(),n)}this._inputPolys=null;var r=t.itemsTree();return this.unionTree(r)},Di.prototype.binaryUnion=function(){if(1===arguments.length){var t=arguments[0];return this.binaryUnion(t,0,t.size())}if(3===arguments.length){var e=arguments[0],n=arguments[1],r=arguments[2];if(r-n<=1){var i=Di.getGeometry(e,n);return this.unionSafe(i,null)}if(r-n==2)return this.unionSafe(Di.getGeometry(e,n),Di.getGeometry(e,n+1));var o=Math.trunc((r+n)/2),s=this.binaryUnion(e,n,o),a=this.binaryUnion(e,o,r);return this.unionSafe(s,a)}},Di.prototype.repeatedUnion=function(t){for(var e=null,n=t.iterator();n.hasNext();){var r=n.next();e=null===e?r.copy():e.union(r)}return e},Di.prototype.unionSafe=function(t,e){return null===t&&null===e?null:null===t?e.copy():null===e?t.copy():this.unionOptimized(t,e)},Di.prototype.unionActual=function(t,e){return Di.restrictToPolygons(t.union(e))},Di.prototype.unionTree=function(t){var e=this.reduceToGeometries(t);return this.binaryUnion(e)},Di.prototype.unionUsingEnvelopeIntersection=function(t,e,n){var r=new xt,i=this.extractByEnvelope(n,t,r),o=this.extractByEnvelope(n,e,r),s=this.unionActual(i,o);return r.add(s),Ni.combine(r)},Di.prototype.bufferUnion=function(){if(1===arguments.length){var t=arguments[0];return t.get(0).getFactory().buildGeometry(t).buffer(0)}if(2===arguments.length){var e=arguments[0],n=arguments[1];return e.getFactory().createGeometryCollection([e,n]).buffer(0)}},Di.prototype.interfaces_=function(){return[]},Di.prototype.getClass=function(){return Di},Di.restrictToPolygons=function(t){if(T(t,Qt))return t;var e=xr.getPolygons(t);return 1===e.size()?e.get(0):t.getFactory().createMultiPolygon(ve.toPolygonArray(e))},Di.getGeometry=function(t,e){return e>=t.size()?null:t.get(e)},Di.union=function(t){return new Di(t).union()},Ai.STRTREE_NODE_CAPACITY.get=function(){return 4},Object.defineProperties(Di,Ai);var Ri=function(){};Ri.prototype.interfaces_=function(){return[]},Ri.prototype.getClass=function(){return Ri},Ri.union=function(t,e){if(t.isEmpty()||e.isEmpty()){if(t.isEmpty()&&e.isEmpty())return Oi.createEmptyResult(Oi.UNION,t,e,t.getFactory());if(t.isEmpty())return e.copy();if(e.isEmpty())return t.copy()}return t.checkNotGeometryCollection(t),t.checkNotGeometryCollection(e),oi.overlayOp(t,e,Oi.UNION)},t.GeoJSONReader=xe,t.GeoJSONWriter=Pe,t.OverlayOp=Oi,t.UnionOp=Ri,t.BufferOp=gr,Object.defineProperty(t,"__esModule",{value:!0})}(e)},6935:t=>{"use strict";function e(t,e,r){r=r||2;var o,s,a,u,h,p,d,g=e&&e.length,y=g?e[0]*r:t.length,v=n(t,0,y,r,!0),m=[];if(!v||v.next===v.prev)return m;if(g&&(v=function(t,e,r,i){var o,s,a,u=[];for(o=0,s=e.length;o<s;o++)(a=n(t,e[o]*i,o<s-1?e[o+1]*i:t.length,i,!1))===a.next&&(a.steiner=!0),u.push(f(a));for(u.sort(c),o=0;o<u.length;o++)r=l(u[o],r);return r}(t,e,v,r)),t.length>80*r){o=a=t[0],s=u=t[1];for(var _=r;_<y;_+=r)(h=t[_])<o&&(o=h),(p=t[_+1])<s&&(s=p),h>a&&(a=h),p>u&&(u=p);d=0!==(d=Math.max(a-o,u-s))?32767/d:0}return i(v,m,r,o,s,d,0),m}function n(t,e,n,r,i){var o,s;if(i===O(t,e,n,r)>0)for(o=e;o<n;o+=r)s=x(o,t[o],t[o+1],s);else for(o=n-r;o>=e;o-=r)s=x(o,t[o],t[o+1],s);return s&&v(s,s.next)&&(P(s),s=s.next),s}function r(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!v(r,r.next)&&0!==y(r.prev,r,r.next))r=r.next;else{if(P(r),(r=e=r.prev)===r.next)break;n=!0}}while(n||r!==e);return e}function i(t,e,n,c,l,h,f){if(t){!f&&h&&function(t,e,n,r){var i=t;do{0===i.z&&(i.z=p(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,n,r,i,o,s,a,u,c=1;do{for(n=t,t=null,o=null,s=0;n;){for(s++,r=n,a=0,e=0;e<c&&(a++,r=r.nextZ);e++);for(u=c;a>0||u>0&&r;)0!==a&&(0===u||!r||n.z<=r.z)?(i=n,n=n.nextZ,a--):(i=r,r=r.nextZ,u--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r}o.nextZ=null,c*=2}while(s>1)}(i)}(t,c,l,h);for(var d,g,y=t;t.prev!==t.next;)if(d=t.prev,g=t.next,h?s(t,c,l,h):o(t))e.push(d.i/n|0),e.push(t.i/n|0),e.push(g.i/n|0),P(t),t=g.next,y=g.next;else if((t=g)===y){f?1===f?i(t=a(r(t),e,n),e,n,c,l,h,2):2===f&&u(t,e,n,c,l,h):i(r(t),e,n,c,l,h,1);break}}}function o(t){var e=t.prev,n=t,r=t.next;if(y(e,n,r)>=0)return!1;for(var i=e.x,o=n.x,s=r.x,a=e.y,u=n.y,c=r.y,l=i<o?i<s?i:s:o<s?o:s,h=a<u?a<c?a:c:u<c?u:c,p=i>o?i>s?i:s:o>s?o:s,f=a>u?a>c?a:c:u>c?u:c,g=r.next;g!==e;){if(g.x>=l&&g.x<=p&&g.y>=h&&g.y<=f&&d(i,a,o,u,s,c,g.x,g.y)&&y(g.prev,g,g.next)>=0)return!1;g=g.next}return!0}function s(t,e,n,r){var i=t.prev,o=t,s=t.next;if(y(i,o,s)>=0)return!1;for(var a=i.x,u=o.x,c=s.x,l=i.y,h=o.y,f=s.y,g=a<u?a<c?a:c:u<c?u:c,v=l<h?l<f?l:f:h<f?h:f,m=a>u?a>c?a:c:u>c?u:c,_=l>h?l>f?l:f:h>f?h:f,b=p(g,v,e,n,r),w=p(m,_,e,n,r),E=t.prevZ,x=t.nextZ;E&&E.z>=b&&x&&x.z<=w;){if(E.x>=g&&E.x<=m&&E.y>=v&&E.y<=_&&E!==i&&E!==s&&d(a,l,u,h,c,f,E.x,E.y)&&y(E.prev,E,E.next)>=0)return!1;if(E=E.prevZ,x.x>=g&&x.x<=m&&x.y>=v&&x.y<=_&&x!==i&&x!==s&&d(a,l,u,h,c,f,x.x,x.y)&&y(x.prev,x,x.next)>=0)return!1;x=x.nextZ}for(;E&&E.z>=b;){if(E.x>=g&&E.x<=m&&E.y>=v&&E.y<=_&&E!==i&&E!==s&&d(a,l,u,h,c,f,E.x,E.y)&&y(E.prev,E,E.next)>=0)return!1;E=E.prevZ}for(;x&&x.z<=w;){if(x.x>=g&&x.x<=m&&x.y>=v&&x.y<=_&&x!==i&&x!==s&&d(a,l,u,h,c,f,x.x,x.y)&&y(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function a(t,e,n){var i=t;do{var o=i.prev,s=i.next.next;!v(o,s)&&m(o,i,i.next,s)&&w(o,s)&&w(s,o)&&(e.push(o.i/n|0),e.push(i.i/n|0),e.push(s.i/n|0),P(i),P(i.next),i=t=s),i=i.next}while(i!==t);return r(i)}function u(t,e,n,o,s,a){var u=t;do{for(var c=u.next.next;c!==u.prev;){if(u.i!==c.i&&g(u,c)){var l=E(u,c);return u=r(u,u.next),l=r(l,l.next),i(u,e,n,o,s,a,0),void i(l,e,n,o,s,a,0)}c=c.next}u=u.next}while(u!==t)}function c(t,e){return t.x-e.x}function l(t,e){var n=function(t,e){var n,r=e,i=t.x,o=t.y,s=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var a=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=i&&a>s&&(s=a,n=r.x<r.next.x?r:r.next,a===i))return n}r=r.next}while(r!==e);if(!n)return null;var u,c=n,l=n.x,p=n.y,f=1/0;r=n;do{i>=r.x&&r.x>=l&&i!==r.x&&d(o<p?i:s,o,l,p,o<p?s:i,o,r.x,r.y)&&(u=Math.abs(o-r.y)/(i-r.x),w(r,t)&&(u<f||u===f&&(r.x>n.x||r.x===n.x&&h(n,r)))&&(n=r,f=u)),r=r.next}while(r!==c);return n}(t,e);if(!n)return e;var i=E(n,t);return r(i,i.next),r(n,n.next)}function h(t,e){return y(t.prev,t,e.prev)<0&&y(e.next,t,t.next)<0}function p(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function f(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function d(t,e,n,r,i,o,s,a){return(i-s)*(e-a)>=(t-s)*(o-a)&&(t-s)*(r-a)>=(n-s)*(e-a)&&(n-s)*(o-a)>=(i-s)*(r-a)}function g(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&m(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(w(t,e)&&w(e,t)&&function(t,e){var n=t,r=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(y(t.prev,t,e.prev)||y(t,e.prev,e))||v(t,e)&&y(t.prev,t,t.next)>0&&y(e.prev,e,e.next)>0)}function y(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function v(t,e){return t.x===e.x&&t.y===e.y}function m(t,e,n,r){var i=b(y(t,e,n)),o=b(y(t,e,r)),s=b(y(n,r,t)),a=b(y(n,r,e));return i!==o&&s!==a||!(0!==i||!_(t,n,e))||!(0!==o||!_(t,r,e))||!(0!==s||!_(n,t,r))||!(0!==a||!_(n,e,r))}function _(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function b(t){return t>0?1:t<0?-1:0}function w(t,e){return y(t.prev,t,t.next)<0?y(t,e,t.next)>=0&&y(t,t.prev,e)>=0:y(t,e,t.prev)<0||y(t,t.next,e)<0}function E(t,e){var n=new S(t.i,t.x,t.y),r=new S(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function x(t,e,n,r){var i=new S(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function P(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function S(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function O(t,e,n,r){for(var i=0,o=e,s=n-r;o<n;o+=r)i+=(t[s]-t[o])*(t[o+1]+t[s+1]),s=o;return i}t.exports=e,t.exports.default=e,e.deviation=function(t,e,n,r){var i=e&&e.length,o=i?e[0]*n:t.length,s=Math.abs(O(t,0,o,n));if(i)for(var a=0,u=e.length;a<u;a++){var c=e[a]*n,l=a<u-1?e[a+1]*n:t.length;s-=Math.abs(O(t,c,l,n))}var h=0;for(a=0;a<r.length;a+=3){var p=r[a]*n,f=r[a+1]*n,d=r[a+2]*n;h+=Math.abs((t[p]-t[d])*(t[f+1]-t[p+1])-(t[p]-t[f])*(t[d+1]-t[p+1]))}return 0===s&&0===h?0:Math.abs((h-s)/s)},e.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,i=0;i<t.length;i++){for(var o=0;o<t[i].length;o++)for(var s=0;s<e;s++)n.vertices.push(t[i][o][s]);i>0&&(r+=t[i-1].length,n.holes.push(r))}return n}},7185:(t,e,n)=>{"use strict";var r=n(9712);t.exports=function(){return r()&&!!Symbol.toStringTag}},7279:(t,e,n)=>{"use strict";var r=n(9313);t.exports=function(t){return r(t)||0===t?t:t<0?-1:1}},7350:function(t){var e;e=()=>(()=>{var t={109:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.DebouncingDeprecated=void 0;var s=n(6891),a=n(1662),u=function(t){function e(e){void 0===e&&(e=300);var n=t.call(this,(function(t){var e=t.progressFunc,r=(t.completeFunc,t.errorFunc,o((0,a.debounce)((function(){if(!n._lastDebounceValue)throw new Error("!this._lastDebounceValue");e([n._lastDebounceValue,n._debouncTimes]),n._debouncTimes=0}),n._delayTime),2)),i=r[0],s=r[1];return n._d=i,function(){s()}}))||this;return n._delayTime=e,n._debouncTimes=0,n}return i(e,t),Object.defineProperty(e.prototype,"delayTime",{get:function(){return this._delayTime},enumerable:!1,configurable:!0}),e.prototype.debounce=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.isRunning?(++this._debouncTimes,this._lastDebounceValue=t,this._d&&this._d()):console.warn("Debouncing is not running!")},e}(s.ProcessingDeprecated);e.DebouncingDeprecated=u},146:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.SceneObjectWithId=e.SceneObjectIdWatching=e.getSceneObjectReactFromId=e.SceneObjectFromId=void 0;var s=n(1662),a=n(2220),u=n(7372),c=n(3815),l=function(t){function e(e){var n=t.call(this)||this;n._id=e,n._sceneObject=n.disposeVar((0,u.react)(void 0)),n.dispose((function(){n._sceneObject.value=void 0}));var r=a.SceneObject.getSceneObjById(n._id);return r&&(n._sceneObject.value=r),n.dispose(a.SceneObject.context.sceneObjCreatedEvent.disposableOn((function(t){t.id===n._id&&(n._sceneObject.value=t)}))),n.dispose(a.SceneObject.context.sceneObjToDestroyEvent.disposableOn((function(t){t.id===n._id&&(n._sceneObject.value=void 0)}))),n}return i(e,t),Object.defineProperty(e.prototype,"sceneObject",{get:function(){return this._sceneObject.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sceneObjectChanged",{get:function(){return this._sceneObject.changed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e}(u.Destroyable);function h(t){var e=o((0,s.getReactFuncs)(t),3),n=e[0],r=(e[1],e[2]),i=(0,u.react)(void 0);return i.disposeVar(new c.ObjResettingWithEvent(r,(function(){var t=n();if(t){var e=new l(t),r=function(){i.value=e.sceneObject};return r(),e.dispose(e.sceneObjectChanged.disposableOn(r)),e}i.value=void 0}))),i}e.SceneObjectFromId=l,e.getSceneObjectReactFromId=h;var p=function(t){function e(e,n){var r=t.call(this)||this,i=r.disposeVar(h(e));return r.disposeVar(new c.ObjResettingWithEvent(i.changed,(function(){var t=i.value;if(t)return n(t)}))),r}return i(e,t),e}(u.Destroyable);e.SceneObjectIdWatching=p;var f=function(t){function e(e,n){var r=t.call(this)||this;r._id=e,r._sofi=r.disposeVar(new l(r._id));var i=function(){n.sceneObject=r._sofi.sceneObject};return i(),r.dispose(r._sofi.sceneObjectChanged.disposableOn(i)),r}return i(e,t),e}(u.Destroyable),d=function(t){function e(){var e=t.call(this)||this;return e._id=e.disposeVar((0,u.react)(void 0)),e._sceneObject=e.disposeVar((0,u.react)(void 0)),e._resetting=e.disposeVar(new c.ObjResettingWithEvent(e.idChanged,(function(){var t=e.id;if(void 0!==t&&""!==t)return new f(t,e);e.sceneObject=void 0}))),e}return i(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this._id.value},set:function(t){this._id.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"idChanged",{get:function(){return this._id.changed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sceneObject",{get:function(){return this._sceneObject.value},set:function(t){this._sceneObject.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sceneObjectChanged",{get:function(){return this._sceneObject.changed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resetting",{get:function(){return this._resetting},enumerable:!1,configurable:!0}),e}(u.Destroyable);e.SceneObjectWithId=d},172:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(6928),e),i(n(7445),e)},200:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.DivPoi=void 0;var o=n(7372),s=n(7372),a=n(7324),u=function(t){function e(e,n){var r=t.call(this)||this;return r._customDivClass=e,r._divContainer=n,r._show=!1,r.dispose((function(){r.show=!1})),r}return i(e,t),e.prototype._updateDivPoi=function(){if(this._show){var t=this.floatDiv;t.element.parentElement||this._divContainer.appendChild(t.element)}else{var e=this._floatDiv;e&&e.element.parentElement&&this._divContainer.removeChild(e.element)}},Object.defineProperty(e.prototype,"show",{get:function(){return this._show},set:function(t){this._show!==t&&(this._show=t,this._updateDivPoi(),this._showChanged&&this._showChanged.emit(t))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"floatDiv",{get:function(){var t=this;if(!this._floatDiv){var e=(0,a.getFloatDivPool)(this._customDivClass).create();this.dispose((function(){(0,a.getFloatDivPool)(t._customDivClass).destroy(e)})),this._floatDiv=e}return this._floatDiv},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showChanged",{get:function(){return this._showChanged||(this._showChanged=new o.Event),this._showChanged},enumerable:!1,configurable:!0}),e}(s.Destroyable);e.DivPoi=u},312:(t,e)=>{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.Intersect=void 0,(n=e.Intersect||(e.Intersect={})).OUTSIDE=-1,n.INTERSECTING=0,n.INSIDE=1},345:(t,e)=>{"use strict";function n(t){var e=0|+t;if(e.toString()===t)return e}Object.defineProperty(e,"__esModule",{value:!0}),e.observeArray=void 0,e.observeArray=function(t,e){if(!Array.isArray(t))throw new Error("!Array.isArray(array)");return new Proxy(t,{set:function(t,r,i,o){var s=t;if("string"!=typeof r)throw new Error("typeof key !== string");var a=n(r);if(void 0===a)return Reflect.set(s,r,i,o);if(a<0)throw new Error("n < 0 || n >= array.length");return!!e({type:void 0===s[a]?"insert":"update",index:a,oldValue:s[a],value:i})&&Reflect.set(t,r,i,o)},deleteProperty:function(t,r){var i=t;if("string"!=typeof r)throw new Error("typeof key !== string");var o=n(r);if(void 0===o)return Reflect.deleteProperty(t,r);if(o<0||o>=i.length)throw new Error("n < 0 || n >= array.length");return!!e({type:"delete",index:o,oldValue:i[o],value:void 0})&&Reflect.deleteProperty(t,r)}})}},433:function(t,e){"use strict";var n=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},r=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.magicStrToUint32=void 0,e.magicStrToUint32=function(t){if(t.length>4)throw new Error("getMagic error! str.length > 4");return function(t){return r([],n(t),!1).reverse().reduce((function(t,e){return(t<<=8)+e.codePointAt(0)}),0)}(t)}},476:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.some=void 0;var r=n(6301);e.some=function(t,e){return(0,r.forEachWithBreak)(t,(function(t,n){return e(t,n)}))}},507:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.PointerClickDeprecated=void 0;var s=n(109),a=n(7372),u=n(2299),c=n(7372),l=function(t){function e(e){var n=t.call(this)||this;n._clickEvent=new c.Event,n._dbclickEvent=new c.Event,n._downEvent=new c.Event,n._upEvent=new c.Event,n._moveEvent=new c.Event,n._debouncing=new s.DebouncingDeprecated(300),n.dispose((function(){n._clickEvent.destroy(),n._dbclickEvent.destroy(),n._downEvent.destroy(),n._upEvent.destroy(),n._moveEvent.destroy(),n._debouncing.destroy()}));var r=!1,i=[0,0],a=!1;n._debouncing.progressFunc=function(t){var e=o(t,2),r=o(e[0],3),i=r[0],s=r[1],a=r[2],u=e[1];1===u?n._clickEvent.emit(i,s,a):u>=2?n._dbclickEvent.emit(i,s,a):console.error("point click should not be here!")},n._debouncing.start(),n.dispose((function(){n._debouncing.isRunning&&n._debouncing.cancel(),n._debouncing.destroy()}));var l=function(t){r=!0;var e=o((0,u.getDomEventCurrentTargetPos)(t),2),s=e[0],a=e[1];i[0]=s,i[1]=a,n._downEvent.emit(s,a,t)},h=function(t){var e=o((0,u.getDomEventCurrentTargetPos)(t),2),i=e[0],s=e[1];r&&!a&&n._debouncing.debounce(i,s,t),r=!1,a=!1,n._upEvent.emit(i,s,t)},p=function(t){var e=o((0,u.getDomEventCurrentTargetPos)(t),2),s=e[0],c=e[1];if(r&&!a){var l=o(i,2),h=l[0],p=l[1];(Math.abs(s-h)>3||Math.abs(c-p)>3)&&(a=!0)}n._moveEvent.emit(s,c,t)},f=function(){r=!1,a=!1};return e.addEventListener("pointerdown",l),e.addEventListener("pointerup",h),e.addEventListener("pointermove",p),e.addEventListener("pointerout",f),n.dispose((function(){e.removeEventListener("pointerdown",l),e.removeEventListener("pointerup",h),e.removeEventListener("pointermove",p),e.removeEventListener("pointerout",f)})),n}return i(e,t),Object.defineProperty(e.prototype,"clickEvent",{get:function(){return this._clickEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dbclickEvent",{get:function(){return this._dbclickEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"downEvent",{get:function(){return this._downEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"upEvent",{get:function(){return this._upEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"moveEvent",{get:function(){return this._moveEvent},enumerable:!1,configurable:!0}),e}(a.Destroyable);e.PointerClickDeprecated=l},602:(t,e)=>{"use strict";var n,r,i,o,s,a,u,c,l;Object.defineProperty(e,"__esModule",{value:!0}),e.Tween=void 0,(n=e.Tween||(e.Tween={})).Linear=function(t,e,n,r){return void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=1),n*t/r+e},(l=n.Quad||(n.Quad={})).easeIn=function(t,e,n,r){return void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=1),n*(t/=r)*t+e},l.easeOut=function(t,e,n,r){return void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=1),-n*(t/=r)*(t-2)+e},l.easeInOut=function(t,e,n,r){return void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=1),(t/=r/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e},(c=n.Cubic||(n.Cubic={})).easeIn=function(t,e,n,r){return void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=1),n*(t/=r)*t*t+e},c.easeOut=function(t,e,n,r){return void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=1),n*((t=t/r-1)*t*t+1)+e},c.easeInOut=function(t,e,n,r){return void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=1),(t/=r/2)<1?n/2*t*t*t+e:n/2*((t-=2)*t*t+2)+e},(u=n.Quart||(n.Quart={})).easeIn=function(t,e,n,r){return void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=1),n*(t/=r)*t*t*t+e},u.easeOut=function(t,e,n,r){return void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=1),-n*((t=t/r-1)*t*t*t-1)+e},u.easeInOut=function(t,e,n,r){return void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=1),(t/=r/2)<1?n/2*t*t*t*t+e:-n/2*((t-=2)*t*t*t-2)+e},(a=n.Quint||(n.Quint={})).easeIn=function(t,e,n,r){return void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=1),n*(t/=r)*t*t*t*t+e},a.easeOut=function(t,e,n,r){return void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=1),n*((t=t/r-1)*t*t*t*t+1)+e},a.easeInOut=function(t,e,n,r){return void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=1),(t/=r/2)<1?n/2*t*t*t*t*t+e:n/2*((t-=2)*t*t*t*t+2)+e},(s=n.Sine||(n.Sine={})).easeIn=function(t,e,n,r){return void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=1),-n*Math.cos(t/r*(Math.PI/2))+n+e},s.easeOut=function(t,e,n,r){return void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=1),n*Math.sin(t/r*(Math.PI/2))+e},s.easeInOut=function(t,e,n,r){return void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=1),-n/2*(Math.cos(Math.PI*t/r)-1)+e},(o=n.Expo||(n.Expo={})).easeIn=function(t,e,n,r){return void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=1),0==t?e:n*Math.pow(2,10*(t/r-1))+e},o.easeOut=function(t,e,n,r){return void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=1),t==r?e+n:n*(1-Math.pow(2,-10*t/r))+e},o.easeInOut=function(t,e,n,r){return void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=1),0==t?e:t==r?e+n:(t/=r/2)<1?n/2*Math.pow(2,10*(t-1))+e:n/2*(2-Math.pow(2,-10*--t))+e},(i=n.Circ||(n.Circ={})).easeIn=function(t,e,n,r){return void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=1),-n*(Math.sqrt(1-(t/=r)*t)-1)+e},i.easeOut=function(t,e,n,r){return void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=1),n*Math.sqrt(1-(t=t/r-1)*t)+e},i.easeInOut=function(t,e,n,r){return void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=1),(t/=r/2)<1?-n/2*(Math.sqrt(1-t*t)-1)+e:n/2*(Math.sqrt(1-(t-=2)*t)+1)+e},(r=n.Bounce||(n.Bounce={})).easeIn=function(t,e,r,i){return void 0===e&&(e=0),void 0===r&&(r=1),void 0===i&&(i=1),r-n.Bounce.easeOut(i-t,0,r,i)+e},r.easeOut=function(t,e,n,r){return void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=1),(t/=r)<1/2.75?n*(7.5625*t*t)+e:t<2/2.75?n*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?n*(7.5625*(t-=2.25/2.75)*t+.9375)+e:n*(7.5625*(t-=2.625/2.75)*t+.984375)+e},r.easeInOut=function(t,e,r,i){return void 0===e&&(e=0),void 0===r&&(r=1),void 0===i&&(i=1),t<i/2?.5*n.Bounce.easeIn(2*t,0,r,i)+e:.5*n.Bounce.easeOut(2*t-i,0,r,i)+.5*r+e}},643:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.cancelableFetchDeprecated=void 0;var o=n(5726);function s(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var s=new AbortController,a=s.signal,u=r(n,2),c=u[0],l=u[1];if(null==l?void 0:l.signal)throw console.error("init?.signal"),new Error("init?.signal");(l=l||{}).signal=a;var h=!1;(0,o._executeSetCancelFuncOrCancelResult)(t,(function(){h=!0,s.abort()}));var p=fetch(c,l);return e&&(p=p.then((function(t){if(!t.ok)return t;if(!t.body)throw Error("ReadableStream not yet supported in this browser.");var n=t.headers.get("content-length"),r=n?parseInt(n,10):0,i=0;return new Response(new ReadableStream({start:function(n){if(!t.body)throw new Error("!response.body");var o=t.body.getReader();!function t(){o.read().then((function(o){var s=o.done,a=o.value;if(s)n.close();else{if(!a)throw new Error("!value");if(!e)throw new Error("!progressFunc");i+=a.byteLength,e(i,r),n.enqueue(a),t()}})).catch((function(t){n.error(t)}))}()}}),{status:t.status,statusText:t.statusText,headers:t.headers})})).catch((function(t){throw h?(t instanceof Error&&20!==t.code&&console.error("error.code !== 20"),console.log("fetching cancelled!"),new o.CancelError("fetching cancelled!")):(t instanceof Error&&20===t.code&&console.error("error.code === 20"),t)}))),p}e.cancelableFetchDeprecated=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t.length>=1){if("function"==typeof t[0]||void 0===t[0]){var n={},o=s.apply(void 0,i([n],r(t),!1)),a=n.cancelFunc;if(!a)throw new Error("!cancelResult.cancelFunc");return[a,o]}return s.apply(void 0,i([],r(t),!1))}throw new Error("cancelableFetch args error!")}},709:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Observable:()=>T});const r="insert",i="update",o="delete",s="reverse",a="shuffle",u=Symbol("observable-meta-key"),c={async:1},l={path:1,pathsOf:1,pathsFrom:1},h={[u]:{value:null},observe:{value:function(t,e){if("function"!=typeof t)throw new Error(`observer MUST be a function, got '${t}'`);const n=this[u].observers;if(n.some((e=>e[0]===t)))console.warn("observer may be bound to an observable only once; will NOT rebind");else{let r;r=e?function(t){const e={};if(void 0!==t.path){if("string"!=typeof t.path||""===t.path)throw new Error('"path" option, if/when provided, MUST be a non-empty string');e.path=t.path}if(void 0!==t.pathsOf){if(t.path)throw new Error('"pathsOf" option MAY NOT be specified together with "path" option');if("string"!=typeof t.pathsOf)throw new Error('"pathsOf" option, if/when provided, MUST be a string (MAY be empty)');e.pathsOf=t.pathsOf.split(".").filter((t=>t))}if(void 0!==t.pathsFrom){if(t.path||t.pathsOf)throw new Error('"pathsFrom" option MAY NOT be specified together with "path"/"pathsOf" option/s');if("string"!=typeof t.pathsFrom||""===t.pathsFrom)throw new Error('"pathsFrom" option, if/when provided, MUST be a non-empty string');e.pathsFrom=t.pathsFrom}const n=Object.keys(t).filter((t=>!l.hasOwnProperty(t)));if(n.length)throw new Error(`'${n.join(", ")}' is/are not a valid observer option/s`);return e}(e):{},n.push([t,r])}}},unobserve:{value:function(){const t=this[u].observers;let e=t.length;if(e){let n=arguments.length;if(n)for(;n--;){let r=e;for(;r--;)t[r][0]===arguments[n]&&(t.splice(r,1),e--)}else t.splice(0)}}}},p=function(t,e){h[u].value=e;const n=Object.defineProperties({},h);for(const r of Object.keys(t))n[r]=_(t[r],r,e);return n},f=function(t,e){let n=0,r=t.length;h[u].value=e;const i=Object.defineProperties(new Array(r),h);for(;n<r;n++)i[n]=_(t[n],n,e);return i},d=function(t,e){return h[u].value=e,Object.defineProperties(t,h),t},g=function(t,e){let n=e;if(t.path){const r=t.path;n=e.filter((t=>t.path.join(".")===r))}else if(t.pathsOf){const r=t.pathsOf;n=e.filter((t=>t.path.length===r.length+1||t.path.length===r.length&&(t.type===s||t.type===a)))}else if(t.pathsFrom){const r=t.pathsFrom;n=e.filter((t=>t.path.join(".").startsWith(r)))}return n},y=function(t,e){try{t(e)}catch(n){console.error(`failed to notify listener ${t} with ${e}`,n)}},v=function(){const t=this.batches;this.batches=null;for(const[e,n]of t)y(e,n)},m=function(t,e){let n,r,i,o,s,a,u,c=t;const l=e.length;do{for(n=c.observers,s=n.length;s--;)if([r,i]=n[s],o=g(i,e),o.length)if(c.options.async){c.batches||(c.batches=[],queueMicrotask(v.bind(c)));let t=c.batches.find((t=>t[0]===r));t||(t=[r,[]],c.batches.push(t)),Array.prototype.push.apply(t[1],o)}else y(r,o);let t;if(c.parent){t=new Array(l);for(let n=0;n<l;n++)u=e[n],a=[c.ownKey,...u.path],t[n]={type:u.type,path:a,value:u.value,oldValue:u.oldValue,object:u.object};e=t,c=c.parent}else c=null}while(c)},_=function(t,e,n){return t&&"object"==typeof t?Array.isArray(t)?new M({target:t,ownKey:e,parent:n}).proxy:ArrayBuffer.isView(t)?new I({target:t,ownKey:e,parent:n}).proxy:t instanceof Date||t instanceof Blob||t instanceof Error?t:new C({target:t,ownKey:e,parent:n}).proxy:t},b=function(){const t=this[u],e=t.target;let n,r,i;for(e.reverse(),n=0,r=e.length;n<r;n++)if(i=e[n],i&&"object"==typeof i){const t=i[u];t&&(t.ownKey=n)}return m(t,[{type:s,path:[],object:this}]),this},w=function(t){const e=this[u],n=e.target;let r,i,o;for(n.sort(t),r=0,i=n.length;r<i;r++)if(o=n[r],o&&"object"==typeof o){const t=o[u];t&&(t.ownKey=r)}return m(e,[{type:a,path:[],object:this}]),this},E=function(t,e,n){const o=this[u],s=o.target,a=[],c=s.length,l=s.slice(0);if(e=void 0===e?0:e<0?Math.max(c+e,0):Math.min(e,c),n=void 0===n?c:n<0?Math.max(c+n,0):Math.min(n,c),e<c&&n>e){let c;s.fill(t,e,n);for(let t,h,p=e;p<n;p++)t=s[p],s[p]=_(t,p,o),l.hasOwnProperty(p)?(h=l[p],h&&"object"==typeof h&&(c=h[u],c&&(h=c.detach())),a.push({type:i,path:[p],value:s[p],oldValue:h,object:this})):a.push({type:r,path:[p],value:s[p],object:this});m(o,a)}return this},x=function(t,e,n){const r=this[u],o=r.target,s=o.length;t=t<0?Math.max(s+t,0):t,e=void 0===e?0:e<0?Math.max(s+e,0):Math.min(e,s),n=void 0===n?s:n<0?Math.max(s+n,0):Math.min(n,s);const a=Math.min(n-e,s-t);if(t<s&&t!==e&&a>0){const s=o.slice(0),c=[];o.copyWithin(t,e,n);for(let e,n,l,h=t;h<t+a;h++)e=o[h],e&&"object"==typeof e&&(e=_(e,h,r),o[h]=e),n=s[h],n&&"object"==typeof n&&(l=n[u],l&&(n=l.detach())),"object"!=typeof e&&e===n||c.push({type:i,path:[h],value:e,oldValue:n,object:this});m(r,c)}return this},P={pop:function(){const t=this[u],e=t.target,n=e.length-1;let r=e.pop();if(r&&"object"==typeof r){const t=r[u];t&&(r=t.detach())}return m(t,[{type:o,path:[n],oldValue:r,object:this}]),r},push:function(){const t=this[u],e=t.target,n=arguments.length,i=new Array(n),o=e.length;for(let e=0;e<n;e++)i[e]=_(arguments[e],o+e,t);const s=Reflect.apply(e.push,e,i),a=[];for(let t=o,n=e.length;t<n;t++)a[t-o]={type:r,path:[t],value:e[t],object:this};return m(t,a),s},shift:function(){const t=this[u],e=t.target;let n,r,i,s,a;for(n=e.shift(),n&&"object"==typeof n&&(a=n[u],a&&(n=a.detach())),r=0,i=e.length;r<i;r++)s=e[r],s&&"object"==typeof s&&(a=s[u],a&&(a.ownKey=r));return m(t,[{type:o,path:[0],oldValue:n,object:this}]),n},unshift:function(){const t=this[u],e=t.target,n=arguments.length,i=new Array(n);for(let e=0;e<n;e++)i[e]=_(arguments[e],e,t);const o=Reflect.apply(e.unshift,e,i);for(let t,n=0,r=e.length;n<r;n++)if(t=e[n],t&&"object"==typeof t){const e=t[u];e&&(e.ownKey=n)}const s=i.length,a=new Array(s);for(let t=0;t<s;t++)a[t]={type:r,path:[t],value:e[t],object:this};return m(t,a),o},reverse:b,sort:w,fill:E,copyWithin:x,splice:function(){const t=this[u],e=t.target,n=arguments.length,s=new Array(n),a=e.length;for(let e=0;e<n;e++)s[e]=_(arguments[e],e,t);const c=0===n?0:s[0]<0?a+s[0]:s[0],l=n<2?a-c:s[1],h=Math.max(n-2,0),p=Reflect.apply(e.splice,e,s),f=e.length;let d,g,y,v;for(let t,n=0;n<f;n++)t=e[n],t&&"object"==typeof t&&(d=t[u],d&&(d.ownKey=n));for(g=0,y=p.length;g<y;g++)v=p[g],v&&"object"==typeof v&&(d=v[u],d&&(p[g]=d.detach()));const b=[];let w;for(w=0;w<l;w++)w<h?b.push({type:i,path:[c+w],value:e[c+w],oldValue:p[w],object:this}):b.push({type:o,path:[c+w],oldValue:p[w],object:this});for(;w<h;w++)b.push({type:r,path:[c+w],value:e[c+w],object:this});return m(t,b),p}},S={reverse:b,sort:w,fill:E,copyWithin:x,set:function(t,e){const n=this[u],r=n.target,o=t.length,s=r.slice(0);e=e||0,r.set(t,e);const a=new Array(o);for(let t=e;t<o+e;t++)a[t-e]={type:i,path:[t],value:r[t],oldValue:s[t],object:this};m(n,a)}};class O{constructor(t,e){const{target:n,parent:r,ownKey:i}=t;r&&void 0!==i?(this.parent=r,this.ownKey=i):(this.parent=null,this.ownKey=null);const o=e(n,this);this.observers=[],this.revocable=Proxy.revocable(o,this),this.proxy=this.revocable.proxy,this.target=o,this.options=this.processOptions(t.options)}processOptions(t){if(t){if("object"!=typeof t)throw new Error(`Observable options if/when provided, MAY only be an object, got '${t}'`);const e=Object.keys(t).filter((t=>!c.hasOwnProperty(t)));if(e.length)throw new Error(`'${e.join(", ")}' is/are not a valid Observable option/s`);return Object.assign({},t)}return{}}detach(){return this.parent=null,this.target}set(t,e,n){let o=t[e];if(n!==o){const s=_(n,e,this);if(t[e]=s,o&&"object"==typeof o){const t=o[u];t&&(o=t.detach())}const a=void 0===o?[{type:r,path:[e],value:s,object:this.proxy}]:[{type:i,path:[e],value:s,oldValue:o,object:this.proxy}];m(this,a)}return!0}deleteProperty(t,e){let n=t[e];if(delete t[e],n&&"object"==typeof n){const t=n[u];t&&(n=t.detach())}const r=[{type:o,path:[e],oldValue:n,object:this.proxy}];return m(this,r),!0}}class C extends O{constructor(t){super(t,p)}}class M extends O{constructor(t){super(t,f)}get(t,e){return P.hasOwnProperty(e)?P[e]:t[e]}}class I extends O{constructor(t){super(t,d)}get(t,e){return S.hasOwnProperty(e)?S[e]:t[e]}}class T{constructor(){throw new Error('Observable MAY NOT be created via constructor, see "Observable.from" API')}static from(t,e){if(t&&"object"==typeof t){if(t[u])return t;if(Array.isArray(t))return new M({target:t,ownKey:null,parent:null,options:e}).proxy;if(ArrayBuffer.isView(t))return new I({target:t,ownKey:null,parent:null,options:e}).proxy;if(t instanceof Date||t instanceof Blob||t instanceof Error)throw new Error(`${t} found to be one of a on-observable types`);return new C({target:t,ownKey:null,parent:null,options:e}).proxy}throw new Error("observable MAY ONLY be created from a non-null object")}static isObservable(t){return!(!t||!t[u])}}Object.freeze(T)},723:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._inverseTransformation=void 0;var r=n(2731);e._inverseTransformation=function(t,e){var n=t[0],i=t[1],o=t[2],s=t[4],a=t[5],u=t[6],c=t[8],l=t[9],h=t[10],p=t[12],f=t[13],d=t[14],g=-n*p-i*f-o*d,y=-s*p-a*f-u*d,v=-c*p-l*f-h*d;return(e=e||(0,r.createNumbers)(16))[0]=n,e[1]=s,e[2]=c,e[3]=0,e[4]=i,e[5]=a,e[6]=l,e[7]=0,e[8]=o,e[9]=u,e[10]=h,e[11]=0,e[12]=g,e[13]=y,e[14]=v,e[15]=1,e}},733:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readBits=e.readArray=e.readUnsigned=e.readString=e.peekBytes=e.readBytes=e.peekByte=e.readByte=e.buildStream=void 0,e.buildStream=function(t){return{data:t,pos:0}},e.readByte=function(){return function(t){return t.data[t.pos++]}},e.peekByte=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(e){return e.data[e.pos+t]}};var n=function(t){return function(e){return e.data.subarray(e.pos,e.pos+=t)}};e.readBytes=n,e.peekBytes=function(t){return function(e){return e.data.subarray(e.pos,e.pos+t)}},e.readString=function(t){return function(e){return Array.from(n(t)(e)).map((function(t){return String.fromCharCode(t)})).join("")}},e.readUnsigned=function(t){return function(e){var r=n(2)(e);return t?(r[1]<<8)+r[0]:(r[0]<<8)+r[1]}},e.readArray=function(t,e){return function(r,i,o){for(var s="function"==typeof e?e(r,i,o):e,a=n(t),u=new Array(s),c=0;c<s;c++)u[c]=a(r);return u}},e.readBits=function(t){return function(e){for(var n=function(t){return t.data[t.pos++]}(e),r=new Array(8),i=0;i<8;i++)r[7-i]=!!(n&1<<i);return Object.keys(t).reduce((function(e,n){var i=t[n];return i.length?e[n]=function(t,e,n){for(var r=0,i=0;i<n;i++)r+=t[e+i]&&Math.pow(2,n-i-1);return r}(r,i.index,i.length):e[n]=r[i.index],e}),{})}}},773:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultStartUpdateFunc=e.requestAnimationFrameTimeStampTest=void 0,e.requestAnimationFrameTimeStampTest=function(){return new Promise((function(t,e){var n=performance.now();requestAnimationFrame((function(e){return t(e>n)}))}))},e.defaultStartUpdateFunc=function(t){var e,n;return n=function(r){r=performance.now(),e=requestAnimationFrame(n),t(r)},e=requestAnimationFrame(n),function(){cancelAnimationFrame(e)}}},921:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.createProcessingFromAsyncFuncWithStartValues=e.createProcessingFromAsyncFunc=e.asyncFuncToCancelablePromise=e.cancelFuncToCancelablePromise=e.createProcessingFromPromiseCreateFuncWithStartValues=e.createProcessingFromPromiseCreateFunc=void 0;var o=n(1101),s=n(1148),a=n(9651);e.createProcessingFromPromiseCreateFunc=function(t){return e=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var o=t.apply(void 0,i([],r(e),!1));return(0,a.isPromiseCancelable)(o)?o:(0,a.createCancelablePromise)(o)},new s.Processing((0,s.createStartFuncFromAsyncFunc)((function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return t.promise(e.apply(void 0,i([],r(n),!1)))})));var e},e.createProcessingFromPromiseCreateFuncWithStartValues=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return new s.Processing((0,s.createStartFuncFromAsyncFunc)((function(n){return n.promise(t.apply(void 0,i([],r(e),!1)))})))}((function(){var n=t.apply(void 0,i([],r(e),!1));return(0,a.isPromiseCancelable)(n)?n:(0,a.createCancelablePromise)(n)}))},e.cancelFuncToCancelablePromise=function(t){var e,n=new Promise((function(n,r){e=function(){t(),r()}}));return(0,a.setPromiseCancel)(n,e),n},e.asyncFuncToCancelablePromise=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var s=new o.CancelsManager,u=t.apply(void 0,i([s],r(e),!1)).finally((function(){return s.destroy()}));return(0,a.setPromiseCancel)(u,s.cancel.bind(s)),u},e.createProcessingFromAsyncFunc=function(t){return new s.Processing((0,s.createStartFuncFromAsyncFunc)(t))},e.createProcessingFromAsyncFuncWithStartValues=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return new s.Processing((0,s.createStartFuncFromAsyncFunc)((function(n){return t.apply(void 0,i([n],r(e),!1))})))}},985:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(8466),e),i(n(3983),e),i(n(6424),e)},1023:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.PickColorMananger=e.uint8sToUint32=e.uint32ToUint8s=void 0;var s=n(7372),a=new ArrayBuffer(4),u=new Uint32Array(a),c=new Uint8Array(a);function l(t){if(t>=16777215)throw new Error("uint32 > 0xFFFFFF");return u[0]=t,[c[0],c[1],c[2]]}function h(t,e,n){return c[0]=t,c[1]=e,c[2]=n,c[3]=0,u[0]}e.uint32ToUint8s=l,e.uint8sToUint32=h;var p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._pickColors=new Array(16777215),e._pickColorIndex=0,e}return i(e,t),e.prototype.reset=function(){for(var t=0;t<this._pickColorIndex;++t){var e=this._pickColors[t];if(!e)throw console.error("this._pickColors[i] should not be undefined!"),new Error("this._pickColors[i] should not be undefined!");e.poi=null,e.tag=""}this._pickColorIndex=0},e.prototype.createPickColor=function(t,e){var n=this._pickColorIndex;++this._pickColorIndex;var r=this._pickColors[n];r?(r.poi=t,r.tag=e):this._pickColors[n]={poi:t,tag:e};var i=o(l(n),3);return[i[0],i[1],i[2]]},e.prototype.getPickInfoFromColor=function(t,e,n){var r=h(t,e,n);if(r>=this._pickColorIndex)console.error("index >= this._pickColorIndex");else{var i=this._pickColors[r];if(i)return i;console.error("!this._pickColors[index]")}},e.prototype.destroyImp=function(){this.reset()},e}(s.Destroyable);e.PickColorMananger=p},1047:function(t,e,n){"use strict";var r=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.createProps=void 0;var o=n(9359),s=n(3915);e.createProps=function(t){var e,n,a=new o.Destroyable,u=function(t,e){var n,r=a.disposeVar(e instanceof s.ReactiveVariable?e:(0,s.react)(e));Object.defineProperties(a,((n={})[t]={get:function(){return r.value},set:function(t){r.value=t}},n["".concat(t,"Changed")]={get:function(){return r.changed}},n))};try{for(var c=r(Object.entries(t)),l=c.next();!l.done;l=c.next()){var h=i(l.value,2);u(h[0],h[1])}}catch(t){e={error:t}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}return a}},1085:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ObjPool=void 0;var n=function(){function t(t,e,n){void 0===n&&(n=!1),this._createDefaultFunc=t,this._destroyFunc=e,this._freeElements=[],this._usedElementsCount=0,this._nextCreateID=1,this._scratchObjs=[],n&&(this._usedElements=[])}return Object.defineProperty(t.prototype,"usedElementsCount",{get:function(){return this._usedElementsCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"freeElementsCount",{get:function(){return this._freeElements.length},enumerable:!1,configurable:!0}),t.prototype._getCreateID=function(){return this._nextCreateID++},t.prototype._create=function(){var t;return(t=this._freeElements.length>0?this._freeElements.pop():this._createDefaultFunc&&this._createDefaultFunc()||{})._cid=this._getCreateID(),t},t.prototype.create=function(){return this._create()},t.prototype.multiCreate=function(t){this._scratchObjs.length=0;for(var e=0;e<t;++e)this._scratchObjs.push(this._create());return this._scratchObjs},t.prototype._destroy=function(t){this._destroyFunc&&this._destroyFunc(t),t._cid=void 0},t.prototype.destroy=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t.length,r=0;r<n;++r)this._destroy(t[r])},t}();e.ObjPool=n},1101:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.CancelsManager=void 0;var s=n(7372),a=n(1662),u=n(4206),c=n(9651),l=function(t){function e(){var e=t.call(this)||this;return e._cancelled=!1,e._promiseSet=new Set,e}return i(e,t),Object.defineProperty(e.prototype,"disposer",{get:function(){return this._disposer=this._disposer||new s.Destroyable,this._disposer},enumerable:!1,configurable:!0}),e.prototype.destroyImp=function(){this.finally()},e.prototype.cancel=function(t){var e,n,r;if(!this._cancelled){this._cancelled=!0,null===(r=this._disposer)||void 0===r||r.destroy(),this._cancelError=t;try{for(var i=o(this._promiseSet),s=i.next();!s.done;s=i.next()){var a=s.value;(0,c.cancelPromise)(a)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}this._promiseSet.clear()}},Object.defineProperty(e.prototype,"cancelFuncsNum",{get:function(){return(0,a.reduce)(this._promiseSet,(function(t){return t+1}),0)},enumerable:!1,configurable:!0}),e.prototype.finally=function(){this._disposer&&!this._disposer.isDestroyed()&&this._disposer.destroy(),this._promiseSet.clear()},e.prototype.check=function(){var t;if(this._cancelled)throw null!==(t=this._cancelError)&&void 0!==t?t:new u.CancelError("cancel from CancelManager!")},e.prototype.promise=function(t){var e=this;return this._promiseSet.add(t),t.finally((function(){return e._promiseSet.delete(t),e.check()}))},e.prototype.promiseAny=function(t){var e=this,n=[],r=t.map((function(t){return e._promiseSet.add(t),(0,c.isPromiseCancelable)(t)&&n.push((0,c.getPromiseCancel)(t)),t.finally((function(){return e._promiseSet.delete(t)}))}));return Promise.any(r).finally((function(){return n.forEach((function(t){return t(new u.CancelError("cancel from promiseAny!"))})),n.length=0}))},e.prototype.promiseAll=function(t){var e=this,n=[],r=t.map((function(t){return e._promiseSet.add(t),(0,c.isPromiseCancelable)(t)&&n.push((0,c.getPromiseCancel)(t)),t.finally((function(){return e._promiseSet.delete(t)}))}));return Promise.all(r).finally((function(){return n.forEach((function(t){return t(new u.CancelError("cancel from promiseAll!"))})),n.length=0}))},e.prototype.promiseRace=function(t){var e=this,n=[],r=t.map((function(t){return e._promiseSet.add(t),(0,c.isPromiseCancelable)(t)&&n.push((0,c.getPromiseCancel)(t)),t.finally((function(){return e._promiseSet.delete(t)}))}));return Promise.race(r).finally((function(){return n.forEach((function(t){return t(new u.CancelError("cancel from promiseRace!"))})),n.length=0}))},e}(s.Destroyable);e.CancelsManager=l},1148:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},s=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.createStartFuncFromAsyncFunc=e.Processing=void 0;var a=n(7372),u=n(7372),c=n(4206),l=n(1101),h=n(9651),p=function(t){function e(e){var n=t.call(this)||this;return n._startFunc=e,n._status="Initial",n._runningId=-1,n.dispose((function(){return n.isRunning&&n.cancel()})),n}return i(e,t),Object.defineProperty(e.prototype,"errorEvent",{get:function(){return this._errorEvent||(this._errorEvent=new u.Event),this._errorEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"completeEvent",{get:function(){return this._completeEvent||(this._completeEvent=new u.Event),this._completeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"errorFunc",{get:function(){return this._errorFunc},set:function(t){this._errorFunc!==t&&(this._errorFunc=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"completeFunc",{get:function(){return this._completeFunc},set:function(t){this._completeFunc!==t&&(this._completeFunc=t)},enumerable:!1,configurable:!0}),e.prototype.start=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if("Initial"===this._status){var r=++this._runningId;this._status="Running",this._cancelFunc=this._startFunc.apply(this,s([{completeFunc:function(e){var n;r===t._runningId&&"Running"===t._status&&(t._status="Completed",t._completeFunc&&t._completeFunc(e),null===(n=t._completeEvent)||void 0===n||n.emit(e))},errorFunc:function(e){var n;r===t._runningId&&"Running"===t._status&&(t._status="Error",t._errorFunc&&t._errorFunc(e),null===(n=t._errorEvent)||void 0===n||n.emit(e))},runningingID:r}],o(e),!1))}},e.prototype.cancel=function(t){var e;if(void 0===t&&(t=new c.CancelError("")),"Running"===this._status){if(!this._cancelFunc)throw new Error("!this._cancelFunc");this._status="Error",this._errorFunc&&this._errorFunc(t),null===(e=this._errorEvent)||void 0===e||e.emit(t),this._cancelFunc(t),this._cancelFunc=void 0}},e.prototype.reset=function(){"Running"===this._status&&console.error("processing cannot reset while running. you can first cancel it!"),"Completed"!==this._status&&"Error"!==this._status||(this._status="Initial")},Object.defineProperty(e.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInitial",{get:function(){return"Initial"===this._status},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRunning",{get:function(){return"Running"===this._status},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCompleted",{get:function(){return"Completed"===this._status},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isError",{get:function(){return"Error"===this._status},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"runningId",{get:function(){return this._runningId},enumerable:!1,configurable:!0}),e.prototype.restart=function(t){void 0===t&&(t=new c.CancelError(""));for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];this.isRunning&&this.cancel(t),this.reset(),this.start.apply(this,s([],o(e),!1))},e.prototype.restartIfNotRunning=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.isRunning||(this.reset(),this.start.apply(this,s([],o(t),!1)))},e}(a.Destroyable);e.Processing=p,e.createStartFuncFromAsyncFunc=function(t){return function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=new l.CancelsManager,a=e.completeFunc,u=e.errorFunc,c=t.apply(void 0,s([i],o(n),!1)).then(a).catch(u).finally((function(){return i.destroy()}));return(0,h.setPromiseCancel)(c,i.cancel.bind(i)),function(t){return(0,h.cancelPromise)(c,t)}}}},1233:(t,e,n)=>{"use strict";n.r(e),n.d(e,{LRUMap:()=>o});const r=Symbol("newer"),i=Symbol("older");function o(t,e){"number"!=typeof t&&(e=t,t=0),this.size=0,this.limit=t,this.oldest=this.newest=void 0,this._keymap=new Map,e&&(this.assign(e),t<1&&(this.limit=this.size))}function s(t,e){this.key=t,this.value=e,this[r]=void 0,this[i]=void 0}function a(t){this.entry=t}function u(t){this.entry=t}function c(t){this.entry=t}o.prototype._markEntryAsUsed=function(t){t!==this.newest&&(t[r]&&(t===this.oldest&&(this.oldest=t[r]),t[r][i]=t[i]),t[i]&&(t[i][r]=t[r]),t[r]=void 0,t[i]=this.newest,this.newest&&(this.newest[r]=t),this.newest=t)},o.prototype.assign=function(t){let e,n=this.limit||Number.MAX_VALUE;this._keymap.clear();let o=t[Symbol.iterator]();for(let t=o.next();!t.done;t=o.next()){let o=new s(t.value[0],t.value[1]);if(this._keymap.set(o.key,o),e?(e[r]=o,o[i]=e):this.oldest=o,e=o,0==n--)throw new Error("overflow")}this.newest=e,this.size=this._keymap.size},o.prototype.get=function(t){var e=this._keymap.get(t);if(e)return this._markEntryAsUsed(e),e.value},o.prototype.set=function(t,e){var n=this._keymap.get(t);return n?(n.value=e,this._markEntryAsUsed(n),this):(this._keymap.set(t,n=new s(t,e)),this.newest?(this.newest[r]=n,n[i]=this.newest):this.oldest=n,this.newest=n,++this.size,this.size>this.limit&&this.shift(),this)},o.prototype.shift=function(){var t=this.oldest;if(t)return this.oldest[r]?(this.oldest=this.oldest[r],this.oldest[i]=void 0):(this.oldest=void 0,this.newest=void 0),t[r]=t[i]=void 0,this._keymap.delete(t.key),--this.size,[t.key,t.value]},o.prototype.find=function(t){let e=this._keymap.get(t);return e?e.value:void 0},o.prototype.has=function(t){return this._keymap.has(t)},o.prototype.delete=function(t){var e=this._keymap.get(t);if(e)return this._keymap.delete(e.key),e[r]&&e[i]?(e[i][r]=e[r],e[r][i]=e[i]):e[r]?(e[r][i]=void 0,this.oldest=e[r]):e[i]?(e[i][r]=void 0,this.newest=e[i]):this.oldest=this.newest=void 0,this.size--,e.value},o.prototype.clear=function(){this.oldest=this.newest=void 0,this.size=0,this._keymap.clear()},a.prototype[Symbol.iterator]=function(){return this},a.prototype.next=function(){let t=this.entry;return t?(this.entry=t[r],{done:!1,value:[t.key,t.value]}):{done:!0,value:void 0}},u.prototype[Symbol.iterator]=function(){return this},u.prototype.next=function(){let t=this.entry;return t?(this.entry=t[r],{done:!1,value:t.key}):{done:!0,value:void 0}},c.prototype[Symbol.iterator]=function(){return this},c.prototype.next=function(){let t=this.entry;return t?(this.entry=t[r],{done:!1,value:t.value}):{done:!0,value:void 0}},o.prototype.keys=function(){return new u(this.oldest)},o.prototype.values=function(){return new c(this.oldest)},o.prototype.entries=function(){return this},o.prototype[Symbol.iterator]=function(){return new a(this.oldest)},o.prototype.forEach=function(t,e){"object"!=typeof e&&(e=this);let n=this.oldest;for(;n;)t.call(e,n.value,n.key,this),n=n[r]},o.prototype.toJSON=function(){for(var t=new Array(this.size),e=0,n=this.oldest;n;)t[e++]={key:n.key,value:n.value},n=n[r];return t},o.prototype.toString=function(){for(var t="",e=this.oldest;e;)t+=String(e.key)+":"+e.value,(e=e[r])&&(t+=" < ");return t}},1291:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.FlvProcessing=e.FlvJsLoading=void 0;var a=n(1662),u=n(8106),c=n(2220),l=n(5819),h=function(t){function e(){var n=t.call(this)||this;return n._loading=!1,n._loadedEvent=n.disposeVar(new a.Event),n._loaded=!1,n._loadedPromise=new Promise((function(t){n._loadedPromiseResolve=t})),n._processing=n.disposeVar((0,l.createProcessingFromAsyncFunc)((function(t){return o(n,void 0,void 0,(function(){var n;return s(this,(function(r){switch(r.label){case 0:return this._loading=!0,window.flvjs?(console.info("可能系统已经加载flvjs,此处不再加载!"),[3,3]):[3,1];case 1:return n=c.SceneObject.context.getStrFromEnv(e.path),[4,t.promise((0,a.loadJs)(n))];case 2:r.sent(),r.label=3;case 3:return this._loading=!1,this._loaded=!0,this._loadedEvent.emit(),this._loadedPromiseResolve(),[2]}}))}))}))),n._processingStart=n._processing.start(),n}return i(e,t),Object.defineProperty(e.prototype,"loading",{get:function(){return this._loading},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loadedEvent",{get:function(){return this._loadedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loaded",{get:function(){return this._loaded},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loadedPromise",{get:function(){return this._loadedPromise},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),e.instance=function(){return e._instance=e._instance||new e,e._instance},e.path="${xr-utils-script-dir}/xr-static/xr-utils/flvjs/1.6.2/flv.min.js",e}(a.Destroyable);e.FlvJsLoading=h;var p=function(t){function e(e,n){var r=t.call(this)||this;r._complexImage=e,r._videoSrc=n;var i,o=document.createElement("video");return o.src=r._videoSrc,o.style.position="absolute",o.style.top="0px",o.style.left="0px",o.style.zIndex="-100",o.style.visibility="hidden",(i=function(){o.crossOrigin=r._complexImage.crossOrigin})(),r.dispose(r._complexImage.crossOriginChanged.disposableOn(i)),(i=function(){o.autoplay=r._complexImage.autoplay})(),r.dispose(r._complexImage.autoplayChanged.disposableOn(i)),(i=function(){o.loop=r._complexImage.loop})(),r.dispose(r._complexImage.loopChanged.disposableOn(i)),o.muted=!0,document.body.appendChild(o),r._element=o,r.dispose((function(){return document.body.removeChild(o)})),r}return i(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),e}(a.Destroyable),f=function(t){function e(e,n){var r=t.call(this)||this;return r._complexImage=e,r._videoSrc=n,r._videoDom=r.disposeVar(new p(r._complexImage,"")),r._processing=r.disposeVar((0,l.createProcessingFromAsyncFunc)((function(t){return o(r,void 0,void 0,(function(){var e,n,r,i;return s(this,(function(o){switch(o.label){case 0:return e=this.videoSrc,n=h.instance(),[4,t.promise(n.loadedPromise)];case 1:return o.sent(),r=window.flvjs,i=this.element,[4,(0,u.step)(t,(function(){return new Promise((function(t,n){if(r.isSupported()){var o=r.createPlayer({type:"flv",url:e});o.attachMediaElement(i),o.load(),o.play(),i.xbsjFlvPlayer=o}else n("flvjs不支持!")}))}))];case 2:return o.sent(),[2]}}))}))}))),r._processingStartup=r._processing.start(),r}return i(e,t),Object.defineProperty(e.prototype,"videoSrc",{get:function(){return this._videoSrc},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.videoDom.element},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),e}(a.Destroyable),d=function(t){function e(e,n){var r=t.call(this)||this;return r._complexImage=e,r._imageUri=n,r._videoDom=r.disposeVar(new f(r._complexImage,r._imageUri)),r._update=r.disposeVar((0,u.createAnimateFrameWithStartValues)((function(){return r.update()}))),r._updateStart=r._update.start(),r}return i(e,t),Object.defineProperty(e.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"videoElement",{get:function(){return this._videoDom.element},enumerable:!1,configurable:!0}),e.prototype.update=function(){if(!(this.videoElement.readyState<2)){var t=this._complexImage,e=this.videoElement,n=e.videoWidth,r=e.videoHeight;t.size=[n,r],t.pixelFormat="RGBA",t.copyTexture({source:this.videoElement})}},e}(a.Destroyable);e.FlvProcessing=d},1354:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=void 0;var r=n(8144);e.forEach=function(t,e){for(var n=(0,r.getIterator)(t),i=0;;){var o=n.next(),s=o.done,a=o.value;if(s)break;e(a,i++)}}},1378:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.DivBoxPicker=e.BoxPicker=void 0;var o=n(7372),s=n(7372),a=n(507),u=n(7372),c=function(t){function e(){var e=t.call(this)||this;e._pickRectEvent=e.disposeVar(new s.Event),e._updateRectEvent=e.disposeVar(new s.Event),e._pointerActionEvent=e.disposeVar(new s.Event),e._active=e.disposeVar((0,u.react)(!1)),e._pickRect={left0:0,top0:0,left1:0,top1:0};var n=0,r=0,i=0,o=0;return e.dispose(e._pointerActionEvent.disposableOn((function(t){var s=t.type,a=t.left,u=t.top;"PointerDown"===s?(e._active.value=!0,n=a,r=u,i=a,o=u,e._setPickRect({left0:n,top0:r,left1:i,top1:o}),e._updateRectEvent.emit(e._pickRect)):"PointerMove"===s?e._active.value&&(i=a,o=u,e._setPickRect({left0:n,top0:r,left1:i,top1:o}),e._updateRectEvent.emit(e._pickRect)):"PointerUp"===s&&e._active.value&&(e._active.value=!1,i=a,o=u,e._setPickRect({left0:n,top0:r,left1:i,top1:o}),e._updateRectEvent.emit(e._pickRect),e._pickRectEvent.emit(e._pickRect))}))),e}return i(e,t),e.prototype._setPickRect=function(t){var e=t.left0,n=t.left1,r=t.top0,i=t.top1;this._pickRect.left0=e,this._pickRect.left1=n,this._pickRect.top0=r,this._pickRect.top1=i},e.prototype.pointerDown=function(t,e){this._pointerActionEvent.emit({type:"PointerDown",left:t,top:e})},e.prototype.pointerMove=function(t,e){this._pointerActionEvent.emit({type:"PointerMove",left:t,top:e})},e.prototype.pointerUp=function(t,e){this._pointerActionEvent.emit({type:"PointerUp",left:t,top:e})},e.prototype.reset=function(){this._setPickRect({left0:0,top0:0,left1:0,top1:0}),this._updateRectEvent.emit(this._pickRect),this._pickRectEvent.emit(this._pickRect)},Object.defineProperty(e.prototype,"activeEvent",{get:function(){return this._active.changed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"updateRectEvent",{get:function(){return this._updateRectEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pickRectEvent",{get:function(){return this._pickRectEvent},enumerable:!1,configurable:!0}),e.getLeftTopAndSize=function(t,e){e=e||{left:0,top:0,width:0,height:0,forward:!0};var n=t.left0,r=t.top0,i=t.left1,o=t.top1;return e.width=Math.abs(n-i),e.height=Math.abs(r-o),e.left=Math.min(n,i),e.top=Math.min(r,o),e.forward=i>n,e},e.contains=function(t,e,n){var r=n.left,i=n.top,o=n.width,s=n.height;return t>r&&t<=r+o&&e>=i&&e<=i+s},e}(o.Destroyable);e.BoxPicker=c;var l=function(t){function e(e){var n=t.call(this)||this,r=n.disposeVar(new a.PointerClickDeprecated(e));n.dispose(r.downEvent.disposableOn((function(t,e,r){return r.altKey&&n.pointerDown(t,e)}))),n.dispose(r.moveEvent.disposableOn((function(t,e){return n.pointerMove(t,e)}))),n.dispose(r.upEvent.disposableOn((function(t,e){return n.pointerUp(t,e)})));var i=document.createElement("div");i.style.backgroundColor="rgba(0, 0, 0, 0)",i.style.border="2px dashed red",i.style.position="absolute",i.style.boxSizing="border-box",i.style.pointerEvents="none",i.style.height="0px",i.style.width="0px",i.style.left="0px",i.style.top="0px",i.style.display="none",e.appendChild(i),n.dispose((function(){return e.removeChild(i)})),n.dispose(n.activeEvent.disposableOn((function(t){i.style.display=t?"block":"none"})));var o=function(){n.reset()};e.addEventListener("contextmenu",o),n.dispose((function(){return e.removeEventListener("contextmenu",o)}));var s={left:0,top:0,width:0,height:0,forward:!1};return n.dispose(n.updateRectEvent.disposableOn((function(t){if(c.getLeftTopAndSize(t,s)){var e=s.left,n=s.top,r=s.width,o=s.height;i.style.height="".concat(0|o,"px"),i.style.width="".concat(0|r,"px"),i.style.left="".concat(0|e,"px"),i.style.top="".concat(0|n,"px")}}))),n}return i(e,t),e}(c);e.DivBoxPicker=l},1412:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(7963),e),i(n(1851),e),i(n(9409),e),i(n(3022),e),i(n(7014),e),i(n(3096),e),i(n(5925),e),i(n(5210),e),i(n(1291),e)},1545:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.RefsManager=void 0;var o=n(1662),s=function(t){function e(e){var n=t.call(this)||this;n._sceneObjRefs=new Map,n._refs={},n._refsChagned=n.disposeVar(new o.Event);var r=function(t,e,r){if(r){var i=n.getLastSceneObject(r);if(a=n._sceneObjRefs.get(r)){var o=a.indexOf(t);-1===o?console.warn("this._sceneObjRefs中不存在当前对象(id: ".concat(t.id," type: ").concat(t.typeName,")!可能系统存在逻辑问题")):(a.splice(o,1),0===a.length&&n._sceneObjRefs.delete(r))}else console.warn("this._sceneObjRefs中不存在ref(".concat(r,"), 可能系统存在逻辑问题"));var s=n.getLastSceneObject(r);n._refs[r]=s,n._refsChagned.emit(s,i)}var a;e&&(i=n.getLastSceneObject(e),(a=n._sceneObjRefs.get(e))?(a.push(t),a.length>0&&console.warn("同时存在多个ref".concat(e,"相同的场景对象!\n").concat(a.map((function(t){return"".concat(t.id," ").concat(t.typeName,"\n")})).join(" ")))):n._sceneObjRefs.set(e,[t]),s=n.getLastSceneObject(e),n._refs[e]=s,n._refsChagned.emit(s,i))};return n.dispose(e.sceneObjCreatedEvent.disposableOn((function(t){var e=function(e,n){return r(t,e,n)};t.ref&&e(t.ref,void 0),t.refChanged.disposableOn(e)}))),n.dispose(e.sceneObjToDestroyEvent.disposableOn((function(t){t.ref&&r(t,void 0,t.ref)}))),n}return i(e,t),Object.defineProperty(e.prototype,"sceneObjRefs",{get:function(){return this._sceneObjRefs},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"refs",{get:function(){return this._refs},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"refsChanged",{get:function(){return this._refsChagned},enumerable:!1,configurable:!0}),e.prototype.getLastSceneObject=function(t){var e=this.getSceneObjects(t);if(e)return e[e.length-1]},e.prototype.getSceneObjects=function(t){var e=this._sceneObjRefs.get(t);if(e&&0!==e.length)return e},e}(o.Destroyable);e.RefsManager=s},1662:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(9359),e),i(n(5600),e),i(n(6555),e),i(n(7941),e),i(n(1085),e),i(n(709),e),i(n(2520),e),i(n(3915),e),i(n(9910),e),i(n(5745),e),i(n(773),e),i(n(7132),e),i(n(8835),e),i(n(7793),e),i(n(1047),e),i(n(4775),e),i(n(2967),e),i(n(5785),e),i(n(5505),e),i(n(5986),e),i(n(9631),e),i(n(6469),e),i(n(5236),e),i(n(6301),e),i(n(2267),e),i(n(5015),e),i(n(3457),e),i(n(2968),e),i(n(8144),e),i(n(3735),e),i(n(6655),e),i(n(2168),e),i(n(7418),e),i(n(1662),e),i(n(7427),e),i(n(1354),e),i(n(4969),e),i(n(3280),e),i(n(9131),e),i(n(1233),e),i(n(433),e),i(n(7008),e),i(n(6362),e),i(n(3009),e),i(n(9970),e),i(n(3804),e),i(n(345),e),i(n(6583),e),i(n(4899),e),i(n(2882),e),i(n(3249),e),i(n(1803),e),i(n(9528),e),i(n(6138),e),i(n(9038),e),i(n(476),e),i(n(8992),e),i(n(6558),e),i(n(6432),e),i(n(2999),e),n(3428)},1801:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.createSleepingWithStartValues=e.createSleeping=e.sleep=void 0;var o=n(5726),s=n(921),a=n(9651);function u(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=void 0,s=new Promise((function(r,o){i=o,e=globalThis.setTimeout((function(){e=void 0,r(n)}),t)}));return(0,a.setPromiseCancel)(s,(function(t){e&&(clearTimeout(e),e=void 0),i&&i(null!=t?t:new o.CancelError("sleep cancel error!"))})),s}e.sleep=u,e.createSleeping=function(){return(0,s.createProcessingFromPromiseCreateFunc)(u)},e.createSleepingWithStartValues=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return s.createProcessingFromPromiseCreateFuncWithStartValues.apply(void 0,i([u,t],r(e),!1))}},1803:function(t,e){"use strict";var n=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.setValueFromProps=e.getValueFromProps=void 0,e.getValueFromProps=function(t,e){var r,i,o=t;try{for(var s=n(e),a=s.next();!a.done;a=s.next())o=o[a.value]}catch(t){r={error:t}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return o},e.setValueFromProps=function(t,e,n){if(0===e.length)throw new Error("props的数量必须大于0");for(var r=e.length-1,i=e[r],o=t,s=0;s<r;++s){var a=e[s];void 0===o[a]&&(o[a]={}),o=o[a]}o[i]=n}},1851:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.complexImageTypes=void 0,e.complexImageTypes=["img","gif","video","flv","hls"]},1895:function(t,e,n){"use strict";var r=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.DoublyLinkedList=void 0;var i=new(n(1085).ObjPool)((function(){return{item:void 0,previous:void 0,next:void 0}}),(function(t){t.item=void 0,t.previous=void 0,t.next=void 0}),!0);function o(t,e,n){var r=i.create();return r.item=t,r.previous=e,r.next=n,r}function s(t){if(!t)throw new Error("node is undefined!");i.destroy(t)}function a(t,e){e.previous&&e.next?(e.previous.next=e.next,e.next.previous=e.previous):e.previous?(e.previous.next=void 0,t.tail=e.previous):e.next?(e.next.previous=void 0,t.head=e.next):(t.head=void 0,t.tail=void 0),e.next=void 0,e.previous=void 0}var u=function(){function t(t){var e=(t||{needLength:!0}).needLength;this.head=void 0,this.tail=void 0,e&&(this._length=0)}return t.prototype._incrementLength=function(){"number"==typeof this._length&&++this._length},t.prototype._decrementLength=function(){"number"==typeof this._length&&--this._length},t.prototype._setLength=function(t){"number"==typeof this._length&&(this._length=t)},Object.defineProperty(t.prototype,"length",{get:function(){return this._length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return!this.head},enumerable:!1,configurable:!0}),t.prototype[Symbol.iterator]=function(){var t;return r(this,(function(e){switch(e.label){case 0:t=this.head,e.label=1;case 1:return t?[4,t]:[3,3];case 2:return e.sent(),t=t.next,[3,1];case 3:return[2]}}))},t.prototype.remove=function(t){if(!t)throw new Error("node is undefined!");a(this,t),this._decrementLength(),s(t)},t.prototype.getNode=function(t){for(var e=this.head;null!==e;){if(!e)throw new Error("current is undefined!");if(e.item===t)return e;e=e.next}},t.prototype.moveAfter=function(t,e){if(t!==e){a(this,e);var n=t.next;t.next=e,this.tail===t?this.tail=e:n&&(n.previous=e),e.next=n,e.previous=t}},t.prototype.moveBefore=function(t,e){if(t!==e){a(this,e);var n=t.previous;t.previous=e,this.head===t?this.head=e:n&&(n.next=e),e.previous=n,e.next=t}},t.prototype.insertBefore=function(t,e){var n=o(e,t.previous,t);return t.previous&&(t.previous.next=n),t.previous=n,this.head===t&&(this.head=n),this._incrementLength(),n},t.prototype.insertAfter=function(t,e){var n=o(e,t,t.next);return t.next&&(t.next.previous=n),t.next=n,this.tail===t&&(this.tail=n),this._incrementLength(),n},t.prototype._setFirstNode=function(t){if(this.head||this.tail)throw new Error("_setFirstNode error!");var e=o(t,void 0,void 0);if(this.head=e,this.tail=e,this._incrementLength(),1!==this._length)throw new Error("_setFirstNode error! this._length !== 1");return e},t.prototype.push=function(t){return this.tail?this.insertAfter(this.tail,t):this._setFirstNode(t)},t.prototype.pop=function(){if(!this.tail)throw new Error("DoublyLinkedList is empty!");var t=this.tail.item;return this.remove(this.tail),t},t.prototype.shift=function(){if(!this.head)throw new Error("DoublyLinkedList is empty!");var t=this.head.item;return this.remove(this.head),t},t.prototype.unshift=function(t){return this.head?this.insertBefore(this.head,t):this._setFirstNode(t)},t.prototype.removeAll=function(){for(var t=this.head;t;){var e=t.next;s(t),t=e}this.head=void 0,this.tail=void 0,this._setLength(0)},t}();e.DoublyLinkedList=u},1943:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},s=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.ThrottlingWithStartValues=e.Throttling=void 0;var a=n(1662),u=n(1148),c=function(t){function e(){var e=t.call(this,(function(t,n,r){var i=t.errorFunc;try{var s=o((0,a.throttle)(n,r),2),u=s[0],c=s[1];return e._doFunc=u,c}catch(t){return i(t),function(){}}}))||this;return e}return i(e,t),e.prototype.do=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._doFunc&&this._doFunc.apply(this,s([],o(t),!1))},e}(u.Processing);e.Throttling=c;var l=function(t){function e(e,n){var r=t.call(this,(function(t){var i=t.errorFunc;try{var s=o((0,a.throttle)(e,n),2),u=s[0],c=s[1];return r._doFunc=u,c}catch(t){return i(t),function(){}}}))||this;return r}return i(e,t),e.prototype.do=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._doFunc&&this._doFunc.apply(this,s([],o(t),!1))},e}(u.Processing);e.ThrottlingWithStartValues=l},1968:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.PointerHover=void 0;var o=n(7372),s=n(7372),a=n(8106),u=function(t){function e(){var e=t.call(this)||this;e._hoverEvent=e.disposeVar(new s.Event),e._hoverOutEvent=e.disposeVar(new s.Event),e._pointerdownEvent=e.disposeVar(new s.Event),e._pointerupEvent=e.disposeVar(new s.Event),e._pointermoveEvent=e.disposeVar(new s.Event),e._pointeroutEvent=e.disposeVar(new s.Event),e.delayTime=800;var n,r=e.disposeVar((0,a.createTimeout)()),i=function(){n?e._hoverEvent.emit(n):console.warn("!lastPointerEvent")};return e.dispose(e._pointerdownEvent.disposableOn((function(t){e._hoverOutEvent.emit()}))),e.dispose(e._pointerupEvent.disposableOn((function(t){e._hoverOutEvent.emit()}))),e.dispose(e._pointermoveEvent.disposableOn((function(t){n=t,r.restart(void 0,i,e.delayTime),e._hoverOutEvent.emit()}))),e.dispose(e._pointeroutEvent.disposableOn((function(t){r.cancel(),e._hoverOutEvent.emit()}))),e}return i(e,t),Object.defineProperty(e.prototype,"hoverEvent",{get:function(){return this._hoverEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hoverOutEvent",{get:function(){return this._hoverOutEvent},enumerable:!1,configurable:!0}),e.prototype.pointerDown=function(t){this._pointerdownEvent.emit(t)},e.prototype.pointerUp=function(t){this._pointerupEvent.emit(t)},e.prototype.pointerMove=function(t){this._pointermoveEvent.emit(t)},e.prototype.pointerOut=function(t){this._pointeroutEvent.emit(t)},e}(o.Destroyable);e.PointerHover=u},2002:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sleepDeprecated=void 0;var r=n(5726);e.sleepDeprecated=function(t,e){var n,i=void 0,o=new Promise((function(e,r){i=r,n=globalThis.setTimeout((function(){n=void 0,e()}),t)})),s=function(t){n&&(clearTimeout(n),n=void 0),i&&i(null!=t?t:new r.CancelError("sleep cancel error!"))};return"boolean"==typeof e&&e?[s,o]:e?((0,r._executeSetCancelFuncOrCancelResult)(e,s),o):void 0}},2051:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.Transition=void 0;var o=n(7372),s=n(7372),a=n(2127),u=function(t){function e(e){var n=t.call(this)||this;return n._stop=n.disposeVar((0,s.react)(0)),n._current=n.disposeVar((0,s.react)(0)),n._start=n.disposeVar((0,s.react)(0)),n._player=n.disposeVar(new a.Player(200)),n.dispose(n._player.currentTimeChangedEvent.disposableOn((function(t){var e=t/n._player.duration;e=e>1?1:e<0?0:e;var r=n._start.value,i=n._stop.value;n._current.value=r+(i-r)*e}))),n.duration=e,n}return i(e,t),Object.defineProperty(e.prototype,"current",{get:function(){return this._current.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentChanged",{get:function(){return this._current.changed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"source",{get:function(){return this._start.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sourceChanged",{get:function(){return this._start.changed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){return this._stop.value},set:function(t){this._start.value=this._current.value,this._stop.value=t,this._player.currentTime=0,this._player.playing=!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"targetChanged",{get:function(){return this._stop.changed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this._player.duration},set:function(t){this._player.duration=t},enumerable:!1,configurable:!0}),e.prototype.reset=function(t){this._start.value=t,this._current.value=t,this._stop.value=t,this._player.playing=!1},e}(o.Destroyable);e.Transition=u},2075:(t,e,n)=>{"use strict";n.r(e),n.d(e,{TaskProcessor:()=>f});var r=n(1662),i=n(2243);function o(t,e){return null!=t?t:e}const s=Error,a=Error;function u(){if(!(0,i.defined)(f._canTransferArrayBuffer)){var t=new Worker(l("transferTypedArrayTest.js"));t.postMessage=o(t.webkitPostMessage,t.postMessage);var e=new Int8Array([99]);try{t.postMessage({array:e},[e.buffer])}catch(t){return f._canTransferArrayBuffer=!1,f._canTransferArrayBuffer}var n=i.when.defer();t.onmessage=function(e){var r=e.data.array,o=(0,i.defined)(r)&&99===r[0];n.resolve(o),t.terminate(),f._canTransferArrayBuffer=o},f._canTransferArrayBuffer=n.promise}return f._canTransferArrayBuffer}function c(t,e){--t._activeTasks;var n=e.id;if((0,i.defined)(n)){var r=t._deferreds,o=r[n];if((0,i.defined)(e.error)){var u=e.error;"RuntimeError"===u.name?(u=new a(e.error.message)).stack=e.error.stack:"DeveloperError"===u.name&&((u=new s(e.error.message)).stack=e.error.stack),o.reject(u)}else o.resolve(e.result);delete r[n]}}function l(t){var e=function(t){return t=t.endsWith(".js")?t:t+".js",(0,r.getFinalUri)(t,f.workerBaseAbsoluteUri)}(t);if((0,r.isCrossOriginUrl)(e)){var n,i='importScripts("'+e+'");';try{n=new Blob([i],{type:"application/javascript"})}catch(t){var o=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder);o.append(i),n=o.getBlob("application/javascript")}e=(window.URL||window.webkitURL).createObjectURL(n)}return e}var h;function p(t){var e=new Worker(((0,i.defined)(h)||(h=l("cesiumWorkerBootstrapper.js")),h));e.postMessage=o(e.webkitPostMessage,e.postMessage);const n=(0,r.isAbsoluteUri)(f.workerBaseAbsoluteUri)?f.workerBaseAbsoluteUri:"";var s={loaderConfig:{paths:{Workers:n},baseUrl:n},workerModule:t._workerName};return e.postMessage(s),e.onmessage=function(e){c(t,e.data)},e}function f(t,e){this._workerName=t,this._maximumActiveTasks=o(e,5),this._activeTasks=0,this._deferreds={},this._nextID=0}var d=[];f.prototype.scheduleTask=function(t,e){if((0,i.defined)(this._worker)||(this._worker=p(this)),!(this._activeTasks>=this._maximumActiveTasks)){++this._activeTasks;var n=this;return(0,i.when)(u(),(function(r){(0,i.defined)(e)?r||(e.length=0):e=d;var o=n._nextID++,s=i.when.defer();return n._deferreds[o]=s,n._worker.postMessage({id:o,parameters:t,canTransferArrayBuffer:r},e),s.promise}))}},f.prototype.initWebAssemblyModule=function(t){(0,i.defined)(this._worker)||(this._worker=p(this));var e=i.when.defer(),n=this,r=this._worker;return getWebAssemblyLoaderConfig(this,t).then((function(t){return(0,i.when)(u(),(function(o){var s,a=t.wasmBinary;(0,i.defined)(a)&&o&&(s=[a]),r.onmessage=function(t){r.onmessage=function(t){c(n,t.data)},e.resolve(t.data)},r.postMessage({webAssemblyConfig:t},s)}))})),e},f.prototype.isDestroyed=function(){return!1},f.prototype.destroy=function(){return(0,i.defined)(this._worker)&&this._worker.terminate(),(0,r.destroyObject)(this)},f._defaultWorkerModulePrefix="Workers/",f._workerModulePrefix=f._defaultWorkerModulePrefix,f._canTransferArrayBuffer=void 0,f.workerBaseAbsoluteUri="xr-static/workers/core"},2082:(t,e)=>{"use strict";function n(){return!0}function r(){throw new Error("throwOnDestroyed")}Object.defineProperty(e,"__esModule",{value:!0}),e.destroyObject=void 0,e.destroyObject=function(t){for(var e in t)"function"==typeof t[e]&&(t[e]=r);t.isDestroyed=n}},2127:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.Player=void 0;var o=n(7372),s=n(7372),a=n(7372),u=n(1662),c=function(t){function e(e,n){void 0===e&&(e=1e3),void 0===n&&(n=u.defaultStartUpdateFunc);var r=t.call(this)||this;return r._currentTime=r.disposeVar((0,a.react)(0)),r._speed=1,r._duration=e,r._loop=!1,r.startUpdateFunc=n,r._updateBindThis=r._update.bind(r),r.dispose((function(){r._cancelStartUpdateFunc&&(r._cancelStartUpdateFunc(),r._cancelStartUpdateFunc=void 0)})),r._startTimeStamp=Number.NaN,r.dispose((function(){r._startPlayingEvent&&r._startPlayingEvent.reset(),r._stopPlayingEvent&&r._stopPlayingEvent.reset()})),r}return i(e,t),Object.defineProperty(e.prototype,"startPlayingEvent",{get:function(){return this._startPlayingEvent=this._startPlayingEvent||new s.Event,this._startPlayingEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stopPlayingEvent",{get:function(){return this._stopPlayingEvent=this._stopPlayingEvent||new s.Event,this._stopPlayingEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentTimeChangedEvent",{get:function(){return this._currentTime.changed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loopChangedEvent",{get:function(){return this._loopChangedEvent=this._loopChangedEvent||new s.Event,this._loopChangedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loop",{get:function(){return this._loop},set:function(t){this._loop!==t&&(this._loop=t,this._loopChangedEvent&&this._loopChangedEvent.emit(this._loop))},enumerable:!1,configurable:!0}),e.prototype._update=function(t){if(Number.isNaN(this._startTimeStamp))console.warn("Number.isNaN(this._startTimeStamp)");else{var e=(t-this._startTimeStamp)*this._speed;this._setCurrentTimeInner(e)}},Object.defineProperty(e.prototype,"currentTime",{get:function(){return this._currentTime.value},set:function(t){this._setCurrentTimeInner(t),this._resetStartTime()},enumerable:!1,configurable:!0}),e.prototype._setCurrentTimeInner=function(t){this._currentTime.value!==t&&(this._duration<=0?this._currentTime.value=0:t<0?this.loop?this._currentTime.value=this._duration+t%this._duration:(this._currentTime.value=0,this.playing&&this._stopPlaying()):t>this._duration?this.loop?this._currentTime.value=t%this._duration:(this._currentTime.value=this._duration,this.playing&&this._stopPlaying()):this._currentTime.value=t)},Object.defineProperty(e.prototype,"durationChangedEvent",{get:function(){return this._durationChangedEvent||(this._durationChangedEvent=new s.Event),this._durationChangedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this._duration},set:function(t){var e;if(t<0)console.warn("duration sholud greater than 0!");else if(this._duration!==t){var n=this._duration;this._duration=t,this._currentTime.value>this._duration&&(this._currentTime.value=this._duration),null===(e=this._durationChangedEvent)||void 0===e||e.emit(this._duration,n)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"speedChangedEvent",{get:function(){return this._speedChangedEvent||(this._speedChangedEvent=new s.Event),this._speedChangedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"speed",{get:function(){return this._speed},set:function(t){var e;if(this._speed!==t&&0!==t){var n=this._speed;this._speed=t,this._resetStartTime(),null===(e=this._speedChangedEvent)||void 0===e||e.emit(this._speed,n)}},enumerable:!1,configurable:!0}),e.prototype._resetStartTime=function(){this._startTimeStamp=performance.now()-this._currentTime.value/this._speed},e.prototype._startPlaying=function(){var t,e;this._resetStartTime(),this._cancelStartUpdateFunc=this.startUpdateFunc(this._updateBindThis),null===(t=this._startPlayingEvent)||void 0===t||t.emit(this._currentTime.value),null===(e=this._playingChangedEvent)||void 0===e||e.emit(!0)},e.prototype._stopPlaying=function(){var t,e;if(!this._cancelStartUpdateFunc)throw new Error("this._cancelStartUpdateFunc is undefined!");this._cancelStartUpdateFunc(),this._cancelStartUpdateFunc=void 0,null===(t=this._stopPlayingEvent)||void 0===t||t.emit(this._currentTime.value),null===(e=this._playingChangedEvent)||void 0===e||e.emit(!1)},Object.defineProperty(e.prototype,"playingChangedEvent",{get:function(){return this._playingChangedEvent||(this._playingChangedEvent=new s.Event),this._playingChangedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"playing",{get:function(){return!!this._cancelStartUpdateFunc},set:function(t){!!this._cancelStartUpdateFunc!==t&&(t?this._startPlaying():this._stopPlaying())},enumerable:!1,configurable:!0}),e}(o.Destroyable);e.Player=c},2168:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getReactFuncs=void 0;var r=n(8835),i=n(6583);e.getReactFuncs=function(t){var e=(0,r.getCompleteReactParams)(t);return[function(){return e[0][e[1]]},function(t){try{e[0][e[1]]=t}catch(t){(0,i.oneTimeWarning)("setValue error, obj(".concat(e[0].constructor.name,") prop(").concat(e[1],") error(").concat(t,")"))}},e[0][e[2]]]}},2217:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.PointerHoverDeprecated=void 0;var s=n(7372),a=n(7372),u=n(109),c=n(2299),l=function(t){function e(e,n){void 0===n&&(n=1500);var r=t.call(this)||this;r._hoverEvent=new a.Event,r._hoverOutEvent=new a.Event;var i=new u.DebouncingDeprecated(n);r.dispose((function(){return i.destroy()}));var s,l=0,h=0;i.progressFunc=function(){return r._hoverEvent.emit(l,h,s)};var p=function(t){var e;!i.isRunning&&i.restart(),s=t,e=o((0,c.getDomEventCurrentTargetPos)(t),2),l=e[0],h=e[1],i.debounce(),r._hoverOutEvent.emit()},f=function(t){var e;!i.isRunning&&i.restart(),s=t,e=o((0,c.getDomEventCurrentTargetPos)(s),2),l=e[0],h=e[1],i.debounce(),r._hoverOutEvent.emit()},d=function(t){var e;!i.isRunning&&i.restart(),s=t,e=o((0,c.getDomEventCurrentTargetPos)(s),2),l=e[0],h=e[1],i.debounce(),r._hoverOutEvent.emit()},g=function(t){i.isRunning&&i.cancel(),r._hoverOutEvent.emit()};return e.addEventListener("pointerdown",p),e.addEventListener("pointerup",f),e.addEventListener("pointermove",d),e.addEventListener("pointerout",g),r.dispose((function(){e.removeEventListener("pointerdown",p),e.removeEventListener("pointerup",f),e.removeEventListener("pointermove",d),e.removeEventListener("pointerout",g)})),r}return i(e,t),Object.defineProperty(e.prototype,"hoverEvent",{get:function(){return this._hoverEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hoverOutEvent",{get:function(){return this._hoverOutEvent},enumerable:!1,configurable:!0}),e}(s.Destroyable);e.PointerHoverDeprecated=l},2220:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),s=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||o(e,t,n)},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},c=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.SceneObject=void 0;var l=n(1662),h=n(3815),p=n(2723),f=function(t){function e(e){var n=t.call(this)||this;return n._components=n.disposeVar(new h.ObservableSet),void 0!==e&&("string"!=typeof e?console.warn("场景对象创建时的ID必须是字符串类型,而这里是id的类型是".concat(typeof e,",值为").concat(e)):""===e.trim()?console.warn("场景对象创建时的ID不能是空字符串!"):e.trim()!==e&&console.warn("id前后有空字符串!id: ".concat(e))),n._id=null!=e?e:(0,l.createGuid)(),n._setDefaultName(),n}return i(e,t),Object.defineProperty(e,"sceneObjs",{get:function(){return e.context.sceneObjs},enumerable:!1,configurable:!0}),e.getSceneObjById=function(t){return e.context.getSceneObjectById(t)},e.getSceneObjsByDevTags=function(t){return e.context.getSceneObjectsByDevTags(t)},Object.defineProperty(e,"$refs",{get:function(){return e.context.refsManager.refs},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"defaultProps",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(t){console.error("当前正在试图修改场景对象(".concat(this.name,"/").concat(this.typeName,")的ID,只有在创建时才可以设置ID!后期修改无效!!!"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"components",{get:function(){return this._components},enumerable:!1,configurable:!0}),e.prototype._setDefaultName=function(){this.name="".concat(this.typeName,"_").concat((""+this.id).slice(-4))},e.prototype._innerGetJson=function(t){var e,n;void 0===t&&(t=!0);var r={id:this.id,type:this.typeName};try{for(var i=a(Object.keys(this.defaultProps)),o=i.next();!o.done;o=i.next()){var s=o.value;if(t){var u=this.defaultProps[s];(u instanceof l.ReactiveVariable?u.equals(this[s]):u===this[s])||(r[s]=this[s])}else r[s]=this[s]}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r},e.prototype._innerSetJson=function(t,e,n){var r,i;if(t instanceof Object&&(!t.type||t.type===this.typeName)){t.id&&t.id!==this.id&&console.warn("value.id === undefined || value.id".concat(t.id," !== this.id(").concat(this.id,")"));var o=e||[];o.push("id","type");var s=Object.keys(this.defaultProps).filter((function(t){return!o.includes(t)}));try{for(var u=a(s),c=u.next();!c.done;c=u.next()){var h=c.value;if(h in t)this[h]=null===t[h]?void 0:t[h];else if(null==n||!n){var p=this.defaultProps[h];p instanceof l.ReactiveVariable&&(p=p.value),this[h]=p}}}catch(t){r={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}}else console.error("value.type && value.type".concat(t.type," !== this.typeName").concat(this.typeName))},e.prototype.setJsonWithoutDefaults=function(t){this._innerSetJson(t,void 0,!0)},e.prototype.setJsonWithDefaults=function(t){this._innerSetJson(t,void 0,!1)},e.prototype.getJsonWithDefaults=function(){return this._innerGetJson(!1)},e.prototype.getJsonWithoutDefaults=function(){return this._innerGetJson(!0)},Object.defineProperty(e.prototype,"jsonStr",{get:function(){return JSON.stringify(this.json,void 0," ")},set:function(t){try{this.json=t&&JSON.parse(t)||{}}catch(t){console.error("SceneObject解析json数据时发生错误!error: ".concat(t))}},enumerable:!1,configurable:!0}),e.prototype.addDevTag=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this.devTags){var r=e.filter((function(e){return!t.devTags.includes(e)}));r.length>0&&(this.devTags=c(c([],u(this.devTags),!1),u(r),!1))}else this.devTags=e},e.prototype.deleteDevTag=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.devTags){var n=this.devTags.filter((function(e){return!t.includes(e)}));this.devTags=n}},Object.defineProperty(e.prototype,"selfCreatedEvent",{get:function(){var t=this;return this._selfCreatedEvent||(this._selfCreatedEvent=this.disposeVar(new l.Event),this.dispose(e.context.sceneObjCreatedEvent.disposableOn((function(e){if(!t._selfCreatedEvent)throw new Error("!this._createdEvent");e===t&&t._selfCreatedEvent.emit()})))),this._selfCreatedEvent},enumerable:!1,configurable:!0}),e.context=new p.SceneObjectsContext,e.register=e.context.register.bind(e.context),e.create=e.context.createSceneObject.bind(e.context),e.createFromClass=e.context.createSceneObjectFromClass.bind(e.context),e.createFromJson=e.context.createSceneObjectFromJson.bind(e.context),e}(l.Destroyable);e.SceneObject=f,function(t){t.createDefaultProps=function(){return{name:"未命名场景对象",ref:void 0,devTags:(0,l.reactArrayWithUndefined)(void 0),extras:(0,l.reactJson)(void 0)}}}(f=e.SceneObject||(e.SceneObject={})),e.SceneObject=f,(0,l.extendClassProps)(f.prototype,f.createDefaultProps),s(n(146),e)},2228:(t,e)=>{"use strict";function n(t,e){return void 0===e&&(e=[0,0]),e[0]=-t[1],e[1]=t[0],e}function r(t,e,n){return void 0===n&&(n=[0,0]),n[0]=t[0]-e[0],n[1]=t[1]-e[1],n}function i(t,e){void 0===e&&(e=[0,0]);var n=function(t){return Math.sqrt(function(t){return t[0]*t[0]+t[1]*t[1]}(t))}(t);return e[0]=t[0]/n,e[1]=t[1]/n,e}function o(t,e){return void 0===e&&(e=[0,0]),e[0]=-t[0],e[1]=-t[1],e}function s(t,e,n){return void 0===n&&(n=[0,0]),n[0]=t[0]*e,n[1]=t[1]*e,n}function a(t,e,n){return void 0===n&&(n=[0,0]),n[0]=t[0]+e[0],n[1]=t[1]+e[1],n}function u(t,e){var n,r,i=(r=e,(n=t)[0]*r[0]+n[1]*r[1]),o=Math.acos(i);return 1/Math.cos(o/2)}function c(t,e,n){return void 0===n&&(n=[0,0]),n[0]=t,n[1]=e,n}Object.defineProperty(e,"__esModule",{value:!0}),e.extrudePolyline=void 0;var l=[0,0],h=[0,0],p=[0,0],f=[0,0],d=[0,0],g=[0,0],y=[0,0],v=[0,0];function m(t,e,c,l,h,p){var m=r(t,e,v),_=n(i(m,m),f),b=r(c,t,v),w=n(i(b,b),g),E=o(_,d),x=o(w,y),P=a(_,w);i(P,P);var S,O,C=(O=w,(S=_)[0]*O[1]-S[1]*O[0]);if(Math.abs(C)<.1)a(T=s(P,l,v),t,T),p.push(T[0],T[1]),h.push(p.length/2),p.push(t[0],t[1]),h.push(p.length/2),s(j=o(P,v),l,j),a(j,t,j),p.push(j[0],j[1]),h.push(p.length/2);else if(C<0){a(T=s(_,l,v),t,T),p.push(T[0],T[1]);var M=s(P,l,v);a(M,t,M),p.push(M[0],M[1]),a(j=s(w,l,v),t,j),p.push(j[0],j[1]),h.push(p.length/2),p.push(t[0],t[1]),h.push(p.length/2),I=(I=u(x,E))>3?3:I,s(N=o(P,v),I*l,N),a(N,t,N),p.push(N[0],N[1]),h.push(p.length/2)}else{var I,T,j;a(T=s(P,(I=(I=u(_,w))>3?3:I)*l,v),t,T),p.push(T[0],T[1]),h.push(p.length/2),p.push(t[0],t[1]),h.push(p.length/2),a(j=s(E,l,v),t,j),p.push(j[0],j[1]);var N,D=o(P,v);s(D,l,D),a(D,t,D),p.push(D[0],D[1]),a(N=s(x,l,v),t,N),p.push(N[0],N[1]),h.push(p.length/2)}}var _=[];e.extrudePolyline=function(t,e,u,d,y,b){void 0===u&&(u=!1),d=null!=d?d:[],y=null!=y?y:[],b=null!=b?b:[];var w=_;w.length=0,function(t,e,u,d,y){if(void 0===u&&(u=!1),t.length%2!=0)throw new Error("positions.length % 2 !== 0");d=null!=d?d:[],y=null!=y?y:[];var _=t,b=_.length/2;if(!(b<2)){if(u){if(!(b>=3))throw new Error("loop should have >= 3 vertex!");var w=c(_[0],_[1],l),E=c(_[2],_[3],p);m(w,c(_[2*(b-1)+0],_[2*(b-1)+1],h),E,e,y,d)}else{w=c(_[0],_[1],l);var x=r(E=c(_[2],_[3],p),w,v),P=n(i(x,x),g);a(O=s(P,e,v),w,O),d.push(O[0],O[1]),y.push(d.length/2),d.push(w[0],w[1]),y.push(d.length/2),s(C=o(P,v),e,C),a(C,w,C),d.push(C[0],C[1]),y.push(d.length/2)}if(b>=3)for(var S=1;S<b-1;++S)w=c(_[2*S+0],_[2*S+1],l),E=c(_[2*(S+1)+0],_[2*(S+1)+1],p),m(w,c(_[2*(S-1)+0],_[2*(S-1)+1],h),E,e,y,d);if(u){if(!(b>=3))throw new Error("loop should have >= 3 vertex!");w=c(_[2*(b-1)+0],_[2*(b-1)+1],l),E=c(_[0],_[1],p),m(w,c(_[2*(b-2)+0],_[2*(b-2)*1],h),E,e,y,d)}else{var O,C,M=r(w=c(_[2*(b-1)+0],_[2*(b-1)+1],l),c(_[2*(b-2)+0],_[2*(b-2)+1],h),v),I=n(i(M,M),f);a(O=s(I,e,v),w,O),d.push(O[0],O[1]),y.push(d.length/2),d.push(w[0],w[1]),y.push(d.length/2),s(C=o(I,v),e,C),a(C,w,C),d.push(C[0],C[1]),y.push(d.length/2)}}}(t,.5*e,u,d,w),function(t,e,n,r,i){if(r=r||[],i=i||[],t.length%2!=0)throw new Error("extrudedPositions.length % 2 !== 0");if(n.length%3!=0)throw new Error("extrudesSegments.length % 3 !== 0");for(var o=n.length/3,s=0,a=0;a<o;++a){for(var u=n[3*a+0],c=n[3*a+1],l=n[3*a+2],h=s;h<u;++h)r.push(0,0);if(u-s>=2)for(var p=s+1;p<u;++p)i.push(u,p,p-1);r.push(0,.5);for(var f=c;f<l;++f)r.push(0,1);if(l-c>=2)for(var d=c+1;d<l;++d)i.push(u,d-1,d);s=l}for(s=0,a=0;a<o-1;++a){var g=n[3*a+0]-1,y=n[3*a+1]-1,v=n[3*a+2]-1,m=n[3*a+2],_=n[3*(a+1)+0],b=n[3*(a+1)+1];i.push(g,y,_),i.push(g,_,m),i.push(y,v,b),i.push(y,b,_)}e&&(g=n[3*(o-1)+0]-1,y=n[3*(o-1)+1]-1,v=n[3*(o-1)+2]-1,m=0,_=n[0],b=n[1],i.push(g,y,_),i.push(g,_,m),i.push(y,v,b),i.push(y,b,_))}(d,u,w,y,b)}},2243:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(5486),e),i(n(3631),e)},2267:(t,e)=>{"use strict";function n(t,e){return(new Array(e).join("0")+t).slice(-e)}Object.defineProperty(e,"__esModule",{value:!0}),e.getDateTime=e.formatInterger=void 0,e.formatInterger=n,e.getDateTime=function(){var t=function(t){return n(t,2)},e=new Date,r=e.getFullYear(),i=e.getMonth()+1,o=e.getDate(),s=e.getHours(),a=e.getMinutes(),u=e.getSeconds();return"".concat(r,"-").concat(t(i),"-").concat(t(o)," ").concat(t(s),":").concat(t(a),":").concat(t(u))}},2277:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CanvasPrimitive=void 0;var o=n(1662),s=n(7372),a=n(7372),u=function(t){function e(e,n){void 0===n&&(n={});var r=t.call(this)||this;r._canvasPrimitivesContext=e,r._id=(0,o.createGuid)(),r._actived=!1,r._hovered=!1,r._selected=!1,r._opacity=1,r._show=!0;var i=n.needRedraw,s=void 0===i||i,u=n.needPickRedraw,c=void 0===u||u;return s&&(r._needRedrawEvent=new a.Event),c&&(r._needPickRedrawEvent=new a.Event),r._canvasPrimitivesContext.addPoi(r),r.dispose((function(){return r._canvasPrimitivesContext.removePoi(r)})),r.dispose(r.showChanged.disposableOn((function(){r.needRedraw(),r.needPickRedraw()}))),r.dispose(r.opacityChanged.disposableOn((function(){return r.needRedraw()}))),r}return i(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._canvasPrimitivesContext},enumerable:!1,configurable:!0}),e.prototype.needRedraw=function(){this._needRedrawEvent?this._needRedrawEvent.emit():console.warn("no needRedrawEvent!")},e.prototype.needPickRedraw=function(){this._needPickRedrawEvent?this._needPickRedrawEvent.emit():console.warn("no needPickRedrawEvent!")},e.prototype.hasClickEvent=function(){return!!this._clickEvent},Object.defineProperty(e.prototype,"clickEvent",{get:function(){return this._clickEvent=this._clickEvent||new a.Event,this._clickEvent},enumerable:!1,configurable:!0}),e.prototype.hasClickOutEvent=function(){return!!this._clickOutEvent},Object.defineProperty(e.prototype,"clickOutEvent",{get:function(){return this._clickOutEvent=this._clickOutEvent||new a.Event,this._clickOutEvent},enumerable:!1,configurable:!0}),e.prototype.hasDbclickEvent=function(){return!!this._dbclickEvent},Object.defineProperty(e.prototype,"dbclickEvent",{get:function(){return this._dbclickEvent=this._dbclickEvent||new a.Event,this._dbclickEvent},enumerable:!1,configurable:!0}),e.prototype.hasDbclickOutEvent=function(){return!!this._dbclickOutEvent},Object.defineProperty(e.prototype,"dbclickOutEvent",{get:function(){return this._dbclickOutEvent=this._dbclickOutEvent||new a.Event,this._dbclickOutEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"actived",{get:function(){return this._actived},set:function(t){this._actived!==t&&(this._actived=t,this._activedChanged&&this._activedChanged.emit(t,this))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activedChanged",{get:function(){return this._activedChanged=this._activedChanged||new a.Event,this._activedChanged},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hovered",{get:function(){return this._hovered},set:function(t){this._hovered!==t&&(this._hovered=t,this._hoveredChanged&&this._hoveredChanged.emit(t,this))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hoveredChanged",{get:function(){return this._hoveredChanged=this._hoveredChanged||new a.Event,this._hoveredChanged},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected!==t&&(this._selected=t,this._selectedChanged&&this._selectedChanged.emit(t,this))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectedChanged",{get:function(){return this._selectedChanged=this._selectedChanged||new a.Event,this._selectedChanged},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"opacity",{get:function(){return this._opacity},set:function(t){this._opacity!==t&&(this._opacity=t,this._opacityChanged&&this._opacityChanged.emit(t,this))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"opacityChanged",{get:function(){return this._opacityChanged=this._opacityChanged||new a.Event,this._opacityChanged},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"show",{get:function(){return this._show},set:function(t){this._show!==t&&(this._show=t,this._showChanged&&this._showChanged.emit(t,this))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showChanged",{get:function(){return this._showChanged=this._showChanged||new a.Event,this._showChanged},enumerable:!1,configurable:!0}),e}(s.Destroyable);e.CanvasPrimitive=u},2299:(t,e)=>{"use strict";function n(t,e){e=e||[];var r=t.parentNode;return r?n(r,e.concat(r)):e}function r(t){var e=t.composedPath&&t.composedPath()||t.path,r=t.target;if(null!=e)return e.indexOf(window)<0?e.concat(window):e;if(r===window)return[window];if(null===r)throw new Error("target === null");return[r].concat(n(r),window)}Object.defineProperty(e,"__esModule",{value:!0}),e.getDomEventCurrentTargetPos=void 0,e.getDomEventCurrentTargetPos=function(t,e){void 0===e&&(e=!1);for(var n=t.offsetX,i=t.offsetY,o=r(t),s=0;s<o.length;++s){var a=o[s];if(!(a!==t.currentTarget&&a instanceof HTMLElement))break;n+=a.clientLeft,i+=a.clientTop,n+=a.offsetLeft,i+=a.offsetTop}return e?[n*window.devicePixelRatio,i*window.devicePixelRatio]:[n,i]}},2429:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.destroyAnimationWithChildren=e.Animation=e.Channel=void 0;var s=n(7372),a=n(1662),u=n(7372),c=0,l=function(t){function e(e,n){void 0===e&&(e=0),void 0===n&&(n=1e3);var r=t.call(this)||this;return r._startTime=Number.NaN,r._enabled=!0,r._animation=new h(n),r.dispose((function(){return r._animation.destroy()})),r.dispose((function(){r._changedEvent&&(r._changedEvent.reset(),r._changedEvent=void 0)})),r.startTime=e,r.dispose(r._animation.changedEvent.disposableOn((function(){r.changedEvent&&r.changedEvent.emit(r)}))),r}return i(e,t),Object.defineProperty(e.prototype,"changedEvent",{get:function(){return this._changedEvent||(this._changedEvent=new u.Event),this._changedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"animation",{get:function(){return this._animation},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startTime",{get:function(){return this._startTime},set:function(t){this._startTime!==t&&(this._startTime=t,this.changedEvent&&this.changedEvent.emit(this))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this._enabled!==t&&(this._enabled=t,this.changedEvent&&this.changedEvent.emit(this))},enumerable:!1,configurable:!0}),e}(s.Destroyable);e.Channel=l;var h=function(t){function e(e){void 0===e&&(e=0);var n=t.call(this)||this;return n._duration=e,n._currentTime=Number.NaN,n.dispose((function(){n._channels&&(n._channels.destroy(),n._channels=void 0),n.enterFunc=void 0,n.leaveFunc=void 0,n.progressFunc=void 0,n._changedEvent&&(n._changedEvent.reset(),n._changedEvent=void 0)})),n}return i(e,t),Object.defineProperty(e.prototype,"changedEvent",{get:function(){return this._changedEvent||(this._changedEvent=new u.Event),this._changedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name||(this._name="Unknown".concat(++c)),this._name},set:function(t){this._name!==t&&(this._name=t,this._changedEvent&&this._changedEvent.emit(this))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasChannels",{get:function(){return!(!this._channels||0===this._channels.length)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"channels",{get:function(){var t=this;if(!this._channels){var e=new WeakMap,n=new a.ObservableArray;this.dispose(n.toChangeEvent.disposableOn((function(n,r){for(var i=n.length,o=0;o<i;++o){var s=n[o];if(s.deleteCount>0)for(var a=s.start;a<s.deleteCount;++a){var u=r.get(a);if(!(f=e.get(u)))throw console.error("!disposeFunc"),new Error("!disposeFunc");f(),e.delete(u)}if(s.items.length>0)for(var c=s.items,l=c.length,h=0;h<l;++h){var p=c[h],f=p.changedEvent.disposableOn((function(e){t.recomputeDurationFromChildren(!1),t._changedEvent&&t._changedEvent.emit(t)}));e.set(p,f)}}return!0}))),this.dispose(n.changedEvent.disposableOn((function(){t.recomputeDurationFromChildren(!1),t._changedEvent&&t._changedEvent.emit(t)}))),this._channels=n}return this._channels},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this._duration},set:function(t){this._duration!==t&&(this._duration,this._duration=t,this._changedEvent&&this._changedEvent.emit(this))},enumerable:!1,configurable:!0}),e.prototype.recomputeDurationFromChildren=function(t){void 0===t&&(t=!1);var e=this._channels;if(e&&e.length>0){for(var n=0,r=e.length,i=0;i<r;++i){var o=e.get(i),s=o.animation,a=o.startTime;t&&s.recomputeDurationFromChildren();var u=a+s.duration;n<u&&(n=u)}this.duration=n}},e.prototype.valid=function(t){return(t=null!=t?t:this._currentTime)>=0&&t<=this.duration},Object.defineProperty(e.prototype,"currentTime",{get:function(){return this._currentTime},set:function(t){if(this.valid(t)||(t=Number.NaN),Number.isNaN(t)&&Number.isNaN(this._currentTime));else if(this._currentTime!==t){var e=this._currentTime;if(Number.isNaN(t)?this.leaveFunc&&this.leaveFunc(e):Number.isNaN(this._currentTime)&&this.enterFunc&&this.enterFunc(t),this._currentTime=t,Number.isNaN(t)||this.progressFunc&&this.progressFunc(t,e),this._channels)for(var n=this._channels.length,r=0;r<n;++r){var i=this._channels.get(r),o=i.animation,s=i.startTime;if(i.enabled)if(Number.isNaN(t))o.currentTime=Number.NaN;else if(Number.isNaN(e)){var a=t-s;o.currentTime=a}else{var u=s+o.duration;a=t-s,t>e?(t<=s&&(o.currentTime=a),s>e&&s<=t&&(o.currentTime=0),t>s&&t<=u&&(o.currentTime=a),u>e&&u<=t&&(o.currentTime=o.duration),t>u&&(o.currentTime=a)):t<e&&(t>u&&(o.currentTime=a),u>e&&u<=t&&(o.currentTime=o.duration),t>s&&t<=u&&(o.currentTime=a),s>e&&s<=t&&(o.currentTime=0),t<=s&&(o.currentTime=a))}}}},enumerable:!1,configurable:!0}),e}(s.Destroyable);e.Animation=h,e.destroyAnimationWithChildren=function t(e){var n,r;if(e.hasChannels)try{for(var i=o(e.channels),s=i.next();!s.done;s=i.next())t(s.value.animation)}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}e.destroy()}},2452:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SmartListenerHandler=void 0;var n=function(){function t(){}return t.prototype._reset=function(t,e){this._listenerHandler=t,this._cid=e},t.prototype.clone=function(e){return(e=null!=e?e:new t)._reset(this._listenerHandler,this._cid),e},Object.defineProperty(t.prototype,"valid",{get:function(){if(void 0!==this._listenerHandler&&"number"==typeof this._cid){var t=this._listenerHandler._cid;if(void 0!==t&&this._cid===t)return!0}return!1},enumerable:!1,configurable:!0}),t}();e.SmartListenerHandler=n},2520:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},s=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.ObservableArray=void 0;var a=n(9359),u=n(4899),c=function(t){function e(){var e=t.call(this)||this;return e._innerObj=[],e.dispose((function(){if(e.length=0,e._innerObj.length>0)throw new Error("this._innerObj.length > 0");e._toChangeEvent&&e._toChangeEvent.reset(),e._innerObj=void 0})),e}return i(e,t),Object.defineProperty(e.prototype,"toChangeEvent",{get:function(){return this._toChangeEvent||(this._toChangeEvent=new u.Event),this._toChangeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"changedEvent",{get:function(){return this._changedEvent||(this._changedEvent=new u.Event),this._changedEvent},enumerable:!1,configurable:!0}),e.prototype._resetArray=function(t){this._toChangeEvent&&this._toChangeEvent.emit([{start:0,deleteCount:this._innerObj.length,items:t}],this);var e=t.length;this._innerObj.length=e;for(var n=0;n<e;++n)this._innerObj[n]=t[n];this._changedEvent&&this._changedEvent.emit(this)},e.prototype.splice=function(t,e){for(var n,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var a=this._innerObj.length;(t=t>this._innerObj.length?this._innerObj.length:t)>a?t=a:t<0&&(t+=a)<0&&(t=0);var u=this._innerObj.length-t;if(e>u?e=u:e<0&&(e=0),1===arguments.length){this._toChangeEvent&&this._toChangeEvent.emit([{start:t,deleteCount:this._innerObj.length-t,items:[]}],this);var c=this._innerObj.splice(t);return this._changedEvent&&this._changedEvent.emit(this),c}return 2===arguments.length?(this._toChangeEvent&&this._toChangeEvent.emit([{start:t,deleteCount:e,items:[]}],this),c=this._innerObj.splice(t,e),this._changedEvent&&this._changedEvent.emit(this),c):(this._toChangeEvent&&this._toChangeEvent.emit([{start:t,deleteCount:e,items:r}],this),c=(n=this._innerObj).splice.apply(n,s([t,e],o(r),!1)),this._changedEvent&&this._changedEvent.emit(this),c)},e.prototype.pop=function(){if(0!==this._innerObj.length){if(this._toChangeEvent){var t=this._innerObj.length-1;this._toChangeEvent.emit([{start:t,deleteCount:1,items:[]}],this)}var e=this._innerObj.pop();return this._changedEvent&&this._changedEvent.emit(this),e}},e.prototype.push=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this._toChangeEvent){var r=this._innerObj.length;this._toChangeEvent.emit([{start:r,deleteCount:0,items:e}],this)}var i=(t=this._innerObj).push.apply(t,s([],o(e),!1));return this._changedEvent&&this._changedEvent.emit(this),i},Object.defineProperty(e.prototype,"length",{get:function(){return this._innerObj.length},set:function(t){if(t<0)throw new Error("value < 0");var e=this._innerObj.length;if(e!==t){if(this._toChangeEvent){var n=void 0,r=void 0,i=void 0;e>t?(n=t,r=e-t,i=[]):(n=e,r=0,i=new Array(t-e)),this._toChangeEvent.emit([{start:n,deleteCount:r,items:i}],this)}this._innerObj.length=t,this._changedEvent&&this._changedEvent.emit(this)}},enumerable:!1,configurable:!0}),e.prototype.get=function(t){return this._innerObj[t]},e.prototype.set=function(t,e){var n=this._innerObj.length;if(t<0||t>=n)throw new Error("index < 0 || index >= length");this._toChangeEvent&&this._toChangeEvent.emit([{start:t,deleteCount:1,items:[e]}],this),this._innerObj[t]=e,this._changedEvent&&this._changedEvent.emit(this)},e.prototype.indexOf=function(t){return this._innerObj.indexOf(t)},e.prototype[Symbol.iterator]=function(){return this._innerObj[Symbol.iterator]()},e}(a.Destroyable);e.ObservableArray=c},2601:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.wrapAsyncFuncToCancelablePromise=e.cancelablePromise=e._executeSetCancelFuncOrCancelResult=void 0;var o=n(8055);function s(t,e){"function"==typeof t?t(e):t.cancelFunc=e}function a(t,e){return e instanceof Promise?function(t,e){var n=void 0,r=e.then((function(t){if(n)throw n;return t}));return s(t,(function(t){n=null!=t?t:new o.CancelError("_revocablePromise_forPromise cancel error!")})),r}(t,e):function(t,e){return new Promise((function(n,r){s(t,(function(t){r(null!=t?t:new o.CancelError("_revocablePromise_forExecutor cancel error!"))}));try{e(n,r)}catch(t){r(t)}}))}(t,e)}function u(t,e){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];var u,c=void 0,l=e.apply(void 0,i([{cancelCheck:function(){if(c)throw c},registerCancelFunc:function(t){(u=u||[]).push(t)}}],r(n),!1));return s(t,(function(t){if(c=null!=t?t:new o.CancelError("wrapAsyncFuncToRevocablePromise cancel error!"),u)for(var e=u.length-1;e>=0;--e)(0,u[e])(t)})),l}e._executeSetCancelFuncOrCancelResult=s,e.cancelablePromise=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){if(t[0]instanceof Promise){var n=a(i={},t[0]),r=i.cancelFunc;if(!r)throw new Error("!cancelResult.cancelFunc");return[r,n]}}else if(2===t.length){var i;if(t[0]instanceof Object)return a(i=t[0],t[1])}throw new Error("args wrong!")},e.wrapAsyncFuncToCancelablePromise=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t.length>=1){if("function"==typeof t[0]){var n={},o=u.apply(void 0,i([n],r(t),!1)),s=n.cancelFunc;if(!s)throw new Error("!cancelResult.cancelFunc");return[s,o]}return u.apply(void 0,i([],r(t),!1))}throw new Error("wrapAsyncFuncToCancelablePromise args error!")}},2723:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.SceneObjectsContext=void 0;var a=n(1662),u=n(9367),c=n(9026),l=n(1545),h=function(t){function e(){var e=t.call(this)||this;return e._sceneObjConstructorsMap=new Map,e._sceneObjs=new Map,e._sceneObjCreatedEvent=new a.Event,e._sceneObjToDestroyEvent=new a.Event,e._refsManager=e.disposeVar(new l.RefsManager(e)),e._environmentVariables={"xr-static":"xr-static"},e._environmentVariablesChanged=e.disposeVar(new a.Event),e}return i(e,t),Object.defineProperty(e.prototype,"typeNames",{get:function(){return this._sceneObjConstructorsMap.keys()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sceneObjs",{get:function(){return this._sceneObjs.values()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sceneObjCreatedEvent",{get:function(){return this._sceneObjCreatedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sceneObjToDestroyEvent",{get:function(){return this._sceneObjToDestroyEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"refsManager",{get:function(){return this._refsManager},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"$refs",{get:function(){return this._refsManager.refs},enumerable:!1,configurable:!0}),e.prototype.register=function(t,e,n){return this._sceneObjConstructorsMap.has(t)&&(console.warn("register warn: ".concat(t," has registered, object is: ")),console.warn(this._sceneObjConstructorsMap.get(t))),this._sceneObjConstructorsMap.set(t,e),n&&this.setProps(t,n),t},e.prototype._getSceneObjConstructor=function(t){return this._sceneObjConstructorsMap.get(t)||void 0},e.prototype.getProps=function(t){var e=this._getSceneObjConstructor(t);if(e)return(0,a.getExtProp)(e,"__sceneObjExtraInfo");console.warn("cannot get constructor from type: ".concat(t))},e.prototype.setProps=function(t,e){var n=this._getSceneObjConstructor(t);if(n){var r=(0,a.getExtProp)(n,"__sceneObjExtraInfo");r||(r={},(0,a.setExtProp)(n,"__sceneObjExtraInfo",r)),Object.assign(r,e)}else console.warn("cannot get constructor from type: ".concat(t))},e.prototype.getProp=function(t,e){var n=this.getProps(t);return n&&n[e]},e.prototype.setProp=function(t,e,n){var r;this.setProps(t,((r={})[e]=n,r))},e.prototype._addSceneObject=function(t){var e=this;this._sceneObjs.set(t.id,t),this._sceneObjCreatedEvent.emit(t),t.dispose((function(){return e._deleteSceneObject(t)}))},e.prototype._deleteSceneObject=function(t){this._sceneObjToDestroyEvent.emit(t),this._sceneObjs.delete(t.id)},e.prototype.createSceneObjectFromClass=function(t,e){if(!e||this._sceneObjs.has(e)){var n=(0,a.createGuid)();e&&console.warn("已存在相同id的对象!id自动变更!".concat(e," -> ").concat(n," 请注意:id变更可能导致引用失效!")),e=n}if(!e)throw new Error("id不能为空!");var r=new t(e);return r.id!==e&&(console.warn("sceneObj.id(".concat(r.id,") !== id(").concat(e,") sceneObjectType: ").concat(r.typeName)),console.warn("出现这种问题有可能是自定义的场景对象,没有在构造函数中传递id参数!示例如下:"),console.warn("class MySceneObj extends ESSceneObject { constructor(id) { super(id); } }")),this._addSceneObject(r),r},e.prototype.createSceneObject=function(t,e){if("string"==typeof t){var n=this._getSceneObjConstructor(t);return n?this.createSceneObjectFromClass(n,e):void console.warn("Cannot find SceneObjectType: ".concat(t))}return this.createSceneObjectFromClass(t,e)},e.prototype.createSceneObjectFromJson=function(t){var e=this.createSceneObject(t.type,t.id);return e&&(e.json=t),e},e.prototype.getSceneObjectById=function(t){return this._sceneObjs.get(t)},e.prototype.getSceneObjectsByDevTags=function(t){var e,n,r=[],i=function(e){t.some((function(t){return e.devTags&&e.devTags.includes(t)}))&&r.push(e)};try{for(var s=o(this.sceneObjs),a=s.next();!a.done;a=s.next())i(a.value)}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}return r},Object.defineProperty(e.prototype,"environmentVariables",{get:function(){return this._environmentVariables},set:function(t){var e,n;try{for(var r=o(Object.entries(t)),i=r.next();!i.done;i=r.next()){var a=s(i.value,2),u=a[0],c=a[1];this.setEnv(u,c)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"environmentVariablesChanged",{get:function(){return this._environmentVariablesChanged},enumerable:!1,configurable:!0}),e.prototype.setEnv=function(t,e){if(this._environmentVariables[t]!==e){var n=this._environmentVariables[t];this._environmentVariables[t]=e,this._environmentVariablesChanged.emit(t,e,n)}},e.prototype.getEnv=function(t){return this._environmentVariables[t]},e.prototype.getStrFromEnv=function(t){return(0,c.replaceStrWithEnv)(t)},e.prototype.createEnvStrReact=function(t,e){return(0,u.createEnvEvalStrReact)(t,e)},e.prototype.createEvnStrReact=function(t,e){return(0,u.createEnvEvalStrReact)(t,e)},e}(a.Destroyable);e.SceneObjectsContext=h},2731:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ary2Ns=e.xyzw2N4=e.xyz2N3=e.xyz2N2=e.Xyzw2Ns=e.createNumbers=void 0,e.createNumbers=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(t>16)throw new Error("length > 16");for(var i=new Array(t),o=0;o<t;++o)i[o]=null!==(e=n[o])&&void 0!==e?e:0;return i};var n=function(){function t(t,e){this._xyzw=t,this._length=e}return Object.defineProperty(t.prototype,0,{get:function(){var t;return null!==(t=this._xyzw.x)&&void 0!==t?t:0},set:function(t){this._xyzw.x=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,1,{get:function(){var t;return null!==(t=this._xyzw.y)&&void 0!==t?t:0},set:function(t){this._xyzw.y=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,2,{get:function(){var t;return null!==(t=this._xyzw.z)&&void 0!==t?t:0},set:function(t){this._xyzw.z=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,3,{get:function(){var t;return null!==(t=this._xyzw.w)&&void 0!==t?t:0},set:function(t){this._xyzw.w=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._length},enumerable:!1,configurable:!0}),t}();e.Xyzw2Ns=n,e.xyz2N2=function(t){return new n(t,2)},e.xyz2N3=function(t){return new n(t,3)},e.xyzw2N4=function(t){return new n(t,4)};var r=function(){function t(t,e,n,r){this._array=t,this._length=e,this._start=n,this._stride=r}return Object.defineProperty(t.prototype,"length",{get:function(){return this._length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,0,{get:function(){return this._array[this._start+0*this._stride]},set:function(t){this._array[this._start+0*this._stride]=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,1,{get:function(){return this._array[this._start+1*this._stride]},set:function(t){this._array[this._start+1*this._stride]=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,2,{get:function(){return this._array[this._start+2*this._stride]},set:function(t){this._array[this._start+2*this._stride]=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,3,{get:function(){return this._array[this._start+3*this._stride]},set:function(t){this._array[this._start+3*this._stride]=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,4,{get:function(){return this._array[this._start+4*this._stride]},set:function(t){this._array[this._start+4*this._stride]=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,5,{get:function(){return this._array[this._start+5*this._stride]},set:function(t){this._array[this._start+5*this._stride]=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,6,{get:function(){return this._array[this._start+6*this._stride]},set:function(t){this._array[this._start+6*this._stride]=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,7,{get:function(){return this._array[this._start+7*this._stride]},set:function(t){this._array[this._start+7*this._stride]=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,8,{get:function(){return this._array[this._start+8*this._stride]},set:function(t){this._array[this._start+8*this._stride]=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,9,{get:function(){return this._array[this._start+9*this._stride]},set:function(t){this._array[this._start+9*this._stride]=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,10,{get:function(){return this._array[this._start+10*this._stride]},set:function(t){this._array[this._start+10*this._stride]=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,11,{get:function(){return this._array[this._start+11*this._stride]},set:function(t){this._array[this._start+11*this._stride]=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,12,{get:function(){return this._array[this._start+12*this._stride]},set:function(t){this._array[this._start+12*this._stride]=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,13,{get:function(){return this._array[this._start+13*this._stride]},set:function(t){this._array[this._start+13*this._stride]=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,14,{get:function(){return this._array[this._start+14*this._stride]},set:function(t){this._array[this._start+14*this._stride]=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,15,{get:function(){return this._array[this._start+15*this._stride]},set:function(t){this._array[this._start+15*this._stride]=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,16,{get:function(){return this._array[this._start+16*this._stride]},set:function(t){this._array[this._start+16*this._stride]=t},enumerable:!1,configurable:!0}),t}();e.ary2Ns=function(t,e,n,i){return void 0===n&&(n=0),void 0===i&&(i=1),new r(t,e,n,i)}},2789:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(2228),e)},2811:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.TimingDeprecated=void 0;var o=n(5726),s=n(1662),a=function(){function t(t,e,n,r,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),this.startTime=t,this.duration=e,this.delay=n,this.proccessFunc=r,this.completeFunc=i,this._lastUpdateTimeStamp=0,this._processData={ratio:0,timeStamp:0,timeStampFromStart:0,timeStampFromLastUpdate:0}}return t.prototype.update=function(t){var e=(t-this.startTime)/this.duration;e>=0&&(this._processData.ratio=e,this._processData.timeStamp=t,this._processData.timeStampFromStart=t-this.startTime,this._processData.timeStampFromLastUpdate=t-this._lastUpdateTimeStamp,this._lastUpdateTimeStamp=t,this.proccessFunc&&this.proccessFunc(this._processData),e>=1&&this.completeFunc&&this.completeFunc())},t.prototype.start=function(){this.startTime=performance.now()+this.delay,this._lastUpdateTimeStamp=this.startTime},t}(),u=function(t){function e(e,n,r){void 0===e&&(e=1e3),void 0===n&&(n=0),void 0===r&&(r=s.defaultStartUpdateFunc);var i,o=this;function u(){i&&i()}return(o=t.call(this,(function(t){var e=t.progressFunc,n=t.completeFunc,r=(t.errorFunc,o.startUpdateFunc&&o.startUpdateFunc(o._base.update.bind(o._base))||void 0);return o._base.startTime=performance.now(),o._base.duration=o.duration,o._base.delay=o.delay,o._base.proccessFunc=e,o._base.completeFunc=function(){r&&r(),n()},o._base.start(),i=r,u}))||this)._base=new a,o.duration=e,o.delay=n,o.startUpdateFunc=r,o}return i(e,t),Object.defineProperty(e.prototype,"startTime",{get:function(){return this._base.startTime},enumerable:!1,configurable:!0}),e}(o.ProcessingDeprecated);e.TimingDeprecated=u},2830:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._setTranslation=e._getTranslation=void 0;var r=n(2731);e._getTranslation=function(t,e){return(e=e||(0,r.createNumbers)(3))[0]=t[12],e[1]=t[13],e[2]=t[14],e},e._setTranslation=function(t,e,n){return t!==(n=n||(0,r.createNumbers)(16))&&(n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n[8]=t[8],n[9]=t[9],n[10]=t[10],n[11]=t[11],n[15]=t[15]),n[12]=e[0],n[13]=e[1],n[14]=e[2],n}},2882:function(t,e){"use strict";var n=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.pluckProperty=void 0,e.pluckProperty=function(t,e){for(var r,i,o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];var a=t;try{for(var u=n(o),c=u.next();!c.done;c=u.next()){var l=c.value;if(!a[l]){if(!e)return;a[l]={}}a=a[l]}}catch(t){r={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}return a}},2921:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},s=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Fetching=void 0;var a=n(643),u=n(5726),c=function(t){function e(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=t.call(this,(function(t){for(var n=t.progressFunc,r=t.completeFunc,c=t.errorFunc,l=[],h=1;h<arguments.length;h++)l[h-1]=arguments[h];var p={},f={loaded:0,total:0},d=i._fetchArgs||l;if(0===d.length)throw new Error("fetchArgs.length === 0");if(a.cancelableFetchDeprecated.apply(void 0,s([p,function(t,e){f.loaded=t,f.total=e,n(f)}],o(d),!1)).then(e).then(r).catch((function(t){t instanceof u.CancelError||c(t)})),!p.cancelFunc)throw new Error("!cancelResult.cancelFunc");return p.cancelFunc}))||this;return n.length>0&&(i._fetchArgs=n),i}return i(e,t),Object.defineProperty(e.prototype,"fetchArgs",{get:function(){return this._fetchArgs},enumerable:!1,configurable:!0}),e}(n(6891).ProcessingDeprecated);e.Fetching=c},2967:(t,e)=>{"use strict";var n,r;Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=void 0,e.encodeString=function(t,e){var i,o=n=n||new TextEncoder,s=0;if(o.encodeInto){var a=void 0;e?a=e:(i=3*t.length,(!r||r.byteLength<i)&&(r=new Uint8Array(2*i)),a=new Uint8Array(r.buffer,0,i));var u=o.encodeInto(t,a);if(void 0===u.written)throw new Error("encodedResults.written === 'undefined'");s=u.written}else{var c=o.encode(t);e&&e.set(c),s=c.byteLength}return s}},2968:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getFinalUri=void 0;var r=n(6432);e.getFinalUri=function(t,e){var n=(0,r.isAbsoluteUri)(t),i=t;return(0,r.isBase64Uri)(t)||n||e&&(i=e+"/"+t),i}},2999:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.withoutUndefinedArray=e.withoutUndefined=void 0;var i=n(2168),o=n(3915);function s(t,e,n,s){var a=r((0,i.getReactFuncs)(t),3),u=a[0],c=a[1],l=a[2],h=(0,o.react)(e,n,s);return h.dispose(h.changed.dwon((function(){h.value!==e?c(h.value):c(void 0)}))),void 0!==u()&&(h.value=u()),h.dispose(l.don((function(t){h.value=void 0!==t?t:e}))),h}e.withoutUndefined=s,e.withoutUndefinedArray=function(t,e,n,r){return s(t,e,(function(t,e){return t.length===e.length&&t.every((function(t,r){return n&&n(t,e[r])||t===e[r]}))}),(function(t,e){for(var n=e||new Array(t.length),i=0;i<t.length;++i)n[i]=r?r(t[i]):t[i];return n.length=t.length,n}))}},3009:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.nextPow2=void 0,e.nextPow2=function(t){return t|=0,t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,++t}},3022:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},3096:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.VideoProcessing=void 0;var o=n(1662),s=n(8106),a=function(t){function e(e,n){var r=t.call(this)||this;r._complexImage=e,r._videoSrc=n;var i,o=document.createElement("video");return o.src=r._videoSrc,o.style.position="absolute",o.style.top="0px",o.style.left="0px",o.style.zIndex="-100",o.style.visibility="hidden",o.style.width="0px",o.style.height="0px",(i=function(){o.crossOrigin=r._complexImage.crossOrigin})(),r.dispose(r._complexImage.crossOriginChanged.disposableOn(i)),(i=function(){o.autoplay=r._complexImage.autoplay})(),r.dispose(r._complexImage.autoplayChanged.disposableOn(i)),(i=function(){o.loop=r._complexImage.loop})(),r.dispose(r._complexImage.loopChanged.disposableOn(i)),o.muted=!0,document.body.appendChild(o),r._element=o,r.dispose((function(){return document.body.removeChild(o)})),r}return i(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),e}(o.Destroyable),u=function(t){function e(e,n){var r=t.call(this)||this;return r._complexImage=e,r._imageUri=n,r._videoDom=r.disposeVar(new a(r._complexImage,r._imageUri)),r._update=r.disposeVar((0,s.createAnimateFrameWithStartValues)((function(){return r.update()}))),r._updateStart=r._update.start(),r}return i(e,t),Object.defineProperty(e.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"videoElement",{get:function(){return this._videoDom.element},enumerable:!1,configurable:!0}),e.prototype.update=function(){if(!(this.videoElement.readyState<2)){var t=this._complexImage,e=this.videoElement,n=e.videoWidth,r=e.videoHeight;t.size=[n,r],t.pixelFormat="RGBA",t.copyTexture({source:this.videoElement})}},e}(o.Destroyable);e.VideoProcessing=u},3207:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defineReactiveProp=void 0;var r=n(7372);e.defineReactiveProp=function(t,e,n,i){var o,s="_"+e,a="_"+e+"Changed",u=e+"Changed";Object.defineProperties(t.prototype,((o={})[e]={get:function(){return void 0===this[s]&&void 0!==n&&(this[s]=n),this[s]},set:function(t){if(void 0===this[s]&&void 0!==n&&(this[s]=n),i?!i(this[s],t):this[s]!==t){var e=this[s];this[s]=t,this[a]&&this[a].emit(t,e)}}},o[u]={get:function(){var t=this;return void 0===this[a]&&(this[a]=new r.Event,void 0!==this.dispose&&this.dispose((function(){return t[a].destroy()}))),this[a]}},o))}},3249:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.prevPow2=void 0,e.prevPow2=function(t){return t|=0,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,++t>>1}},3280:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.length=void 0;var r=n(6138),i=function(t){return++t};e.length=function(t){return(0,r.reduce)(t,i,0)}},3281:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(4416),e),i(n(9122),e),i(n(9812),e),i(n(312),e),i(n(4833),e),i(n(5590),e),i(n(4915),e),i(n(8089),e),i(n(2731),e),i(n(6172),e),i(n(7215),e),i(n(7665),e),i(n(9549),e),i(n(5873),e),i(n(602),e),i(n(9898),e),i(n(5985),e),i(n(7500),e),i(n(7413),e)},3300:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e._getMaximumScale=e._setScale=e._getScale=void 0;var o=n(2731),s=n(9898),a=n(6021);function u(t,e){return(e=e||(0,o.createNumbers)(3))[0]=s.Vector.magnitude([t[0],t[1],t[2]]),e[1]=s.Vector.magnitude([t[4],t[5],t[6]]),e[2]=s.Vector.magnitude([t[8],t[9],t[10]]),e}e._getScale=u;var c=(0,o.createNumbers)(3);e._setScale=function(t,e,n){var r=u(t,c),i=s.Vector.divide(e,r,c);return(0,a._multiplyByScale)(t,i,n)};var l=(0,o.createNumbers)(3);e._getMaximumScale=function(t){var e=u(t,l);return Math.max.apply(Math,i([],r(s.Vector.itr(e)),!1))}},3315:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.UiTree=void 0;var a=n(1662),u=n(8106),c=function(t){function e(e){var n=t.call(this)||this;n._tree=e,n._redrawEvent=n.disposeVar(new a.Event),n._containerScrollTop=n.disposeVar((0,a.react)(0)),n._containerClientHeight=n.disposeVar((0,a.react)(-1)),n._container=n.disposeVar((0,a.react)(void 0)),n._redrawInfo={topFreeSpaceHeight:0,topUnvisibleItemNum:0,middleTreeItems:[],bottomFreeSpaceHeight:0,bottomUnvisibleItemNum:0};var r,i=n._containerClientHeight,o=n._containerScrollTop,c=n._tree._forceRedrawEvent,l=n.disposeVar((0,a.createNextAnimateFrameEvent)(n._tree.itemDivHeightChanged,n._tree.itemChildrenChanged,n._tree.itemsChanged,i.changed,o.changed,c)),h=n.redrawInfo,p=function(t){var e=t.uiTreeObject;return!(!t.children||e&&e.collapsed)};return n.dispose(l.disposableOn((function(){var t,e,r,u;if(h.topFreeSpaceHeight=0,h.topUnvisibleItemNum=0,h.middleTreeItems.length=0,h.bottomFreeSpaceHeight=0,h.bottomUnvisibleItemNum=0,n._containerClientHeight.value>=0){var c=(0,a.length)(n._tree.getDescendants(p)),l=n._tree.itemDivHeight,f=l*c,d=(0,a.max)([(0,a.min)([(0,a.max)([f-i.value,0]),o.value]),0]),g=d/l|0,y=0|Math.ceil((d-g*l+i.value)/l);g>0&&(h.topUnvisibleItemNum=g,h.topFreeSpaceHeight=g*n._tree.itemDivHeight);var v=g+y,m=0;try{for(var _=s(n._tree.getDescendants(p)),b=_.next();!b.done;b=_.next()){var w=b.value;if(m>=v)break;m>=g&&h.middleTreeItems.push(w),++m}}catch(e){t={error:e}}finally{try{b&&!b.done&&(e=_.return)&&e.call(_)}finally{if(t)throw t.error}}var E=c-g-y;E>0&&(h.bottomUnvisibleItemNum=E,h.bottomFreeSpaceHeight=E*n._tree.itemDivHeight)}else try{for(var x=s(n._tree.getDescendants(p)),P=x.next();!P.done;P=x.next())w=P.value,h.middleTreeItems.push(w)}catch(t){r={error:t}}finally{try{P&&!P.done&&(u=x.return)&&u.call(x)}finally{if(r)throw r.error}}n._redrawEvent.emit(h)}))),n.dispose((function(){return r&&(r.destroy(),r=void 0)})),n.dispose(n.containerChanged.disposableOn((function(t){r&&(r.destroy(),r=void 0),t&&(r=(0,u.createAnimateFrame)()).start((function(){var e=t,r=e.scrollTop,i=e.clientHeight;void 0===r||void 0===i?(0,a.oneTimeWarning)("createUiTreeWithContainer error: conainter has no scrollTop or clientHeight property!"):(n.containerScrollTop=r,n.containerClientHeight=i)}))}))),n}return i(e,t),Object.defineProperty(e.prototype,"container",{get:function(){return this._container.value},set:function(t){this._container.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"containerChanged",{get:function(){return this._container.changed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"redrawInfo",{get:function(){return this._redrawInfo},enumerable:!1,configurable:!0}),e.prototype.getTreeItemPos=function(t){var e,n,r=0,i=!1;try{for(var o=s(this._tree.getDescendants((function(t){var e=t.uiTreeObject;return!(!t.children||e&&e.collapsed)}))),a=o.next();!a.done;a=o.next()){if(a.value===t){i=!0;break}++r}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return i?[r,r*this._tree.itemDivHeight]:void 0},e.prototype.collapseAll=function(){var t,e;console.log("collapseAll");try{for(var n=s(this.tree.root.getDescendants()),r=n.next();!r.done;r=n.next())r.value.uiTreeObject.collapsed=!0}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},Object.defineProperty(e.prototype,"tree",{get:function(){return this._tree},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"redrawEvent",{get:function(){return this._redrawEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"containerScrollTop",{get:function(){return this._containerScrollTop.value},set:function(t){this._containerScrollTop.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"containerScrollTopChanged",{get:function(){return this._containerScrollTop.changed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"containerClientHeight",{get:function(){return this._containerClientHeight.value},set:function(t){this._containerClientHeight.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"containerClientHeightChanged",{get:function(){return this._containerClientHeight.changed},enumerable:!1,configurable:!0}),e.prototype.getAllItems=function(t){var e,n,r,i,a,u;return o(this,(function(o){switch(o.label){case 0:o.trys.push([0,5,6,7]),e=s(this._tree.getDescendants()),n=e.next(),o.label=1;case 1:return n.done?[3,4]:(r=n.value,t&&!t(r)?[3,3]:[4,r]);case 2:o.sent(),o.label=3;case 3:return n=e.next(),[3,1];case 4:return[3,7];case 5:return i=o.sent(),a={error:i},[3,7];case 6:try{n&&!n.done&&(u=e.return)&&u.call(e)}finally{if(a)throw a.error}return[7];case 7:return[2]}}))},e.prototype.getAllSelectedItems=function(){return this.getAllItems((function(t){return t.uiTreeObject.selected}))},e.prototype.getAllCheckedLeafItems=function(){return this.getAllItems((function(t){return!t.children&&"checked"===t.uiTreeObject.checkedStatus}))},e.prototype.clearAllSelectedItems=function(t){var e,n;try{for(var r=s(this.getAllSelectedItems()),i=r.next();!i.done;i=r.next()){var o=i.value;t&&t.includes(o)||(o.uiTreeObject.selected=!1)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},e}(a.Destroyable);e.UiTree=c},3428:()=>{ArrayBuffer.transfer||(ArrayBuffer.transfer=function(t,e){t=Object(t);var n=new ArrayBuffer(e);if(!(t instanceof ArrayBuffer&&n instanceof ArrayBuffer))throw new TypeError("Source and destination must be ArrayBuffer instances");if(n.byteLength>=t.byteLength){var r=0,i=t.byteLength;[8,4,2,1].forEach((function(e){if(i>=e){var o=function(t,e,n,r,i){var o=Uint8Array;switch(t){case 8:o=Float64Array;break;case 4:o=Float32Array;break;case 2:o=Uint16Array;break;default:o=Uint8Array}for(var s=new o(e,r,Math.trunc(i/t)),a=new o(n,r,Math.trunc(i/t)),u=0;u<a.length;u++)a[u]=s[u];return{nextOffset:s.byteOffset+s.byteLength,leftBytes:e.byteLength-(s.byteOffset+s.byteLength)}}(e,t,n,r,i);r=o.nextOffset,i=o.leftBytes}}))}return n})},3457:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBaseUri=void 0,e.getBaseUri=function(t){return t.substr(0,t.lastIndexOf("/"))}},3526:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},3631:(t,e)=>{"use strict";function n(t,e){return t instanceof Promise?t.then(e):Promise.resolve(t).then(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.when=void 0,e.when=n,n.defer=function(){var t={},e=new Promise((function(e,n){t.resolve=e,t.reject=n}));return t.promise=e,t},n.resolve=function(t){return Promise.resolve(t)}},3639:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.AnimationPlayer=void 0;var s=n(2429),a=n(7372),u=n(7372),c=n(2127),l=function(t){function e(e){void 0===e&&(e=5e3);var n=t.call(this)||this;return n._animation=new s.Animation(e),n.dispose((function(){n.destroyAllChannels(),n._animation.destroy()})),n._player=new c.Player(e),n.dispose((function(){return n._player.destroy()})),n._initAnimation(),n._selectedChannelChanged=new u.Event,n}return i(e,t),Object.defineProperty(e.prototype,"animation",{get:function(){return this._animation},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"player",{get:function(){return this._player},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectedChannelChanged",{get:function(){return this._selectedChannelChanged||(this._selectedChannelChanged=new u.Event),this._selectedChannelChanged},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectedChannel",{get:function(){return this._selectedChannel},set:function(t){if(this._selectedChannel!==t){var e=this._selectedChannel;this._selectedChannel=t,this._selectedChannelChanged&&this._selectedChannelChanged.emit(t,e)}},enumerable:!1,configurable:!0}),e.prototype._initAnimation=function(){var t=this,e=this._animation,n=this._player;e.progressFunc=function(t){},this.dispose((function(){e.progressFunc=void 0,e.enterFunc=void 0,e.leaveFunc=void 0})),this.dispose(n.currentTimeChangedEvent.disposableOn((function(t,r){n.playing?e.currentTime=t:(e.currentTime=t,e.currentTime=Number.NaN)}))),this.dispose(n.startPlayingEvent.disposableOn((function(t){e.currentTime=t}))),this.dispose(n.stopPlayingEvent.disposableOn((function(t){e.currentTime=Number.NaN}))),this.dispose(this._animation.changedEvent.disposableOn((function(e){t._player.duration=e.duration})))},e.prototype.addChannel=function(){var t=new s.Channel(1e3,2e3);if(this._selectedChannel){var e=this._animation.channels.indexOf(this._selectedChannel);this._animation.channels.splice(e+1,0,t)}else this._animation.channels.push(t);return t},e.prototype.removeChannel=function(){if(this._selectedChannel){var t=this._animation.channels.indexOf(this._selectedChannel);-1!==t&&(this._animation.channels.splice(t,1),this._selectedChannel.destroy()),this._selectedChannel=void 0}else console.warn("请先选择需要删除的Channel.")},e.prototype.raiseChannel=function(t){var e=this._animation.channels.indexOf(t);if(-1===e)console.warn("-1 === index");else if(0===e)console.warn("cannot raise current channel!");else{if(!(e>0))throw new Error("should not be here!");this._animation.channels.splice(e,1),this._animation.channels.splice(e-1,0,t)}},e.prototype.lowerChannel=function(t){var e=this._animation.channels.indexOf(t);if(-1===e)console.warn("-1 === index");else if(e===this._animation.channels.length-1)console.warn("cannot lower current channel!");else{if(!(e>=0))throw new Error("should not be here!");this._animation.channels.splice(e,1),this._animation.channels.splice(e+1,0,t)}},e.prototype.destroyAllChannels=function(){var t,e,n=this._animation;if(n.hasChannels){try{for(var r=o(n.channels),i=r.next();!i.done;i=r.next()){var a=i.value;(0,s.destroyAnimationWithChildren)(a.animation)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}n.channels.length=0,this._selectedChannel=void 0}},e}(a.Destroyable);e.AnimationPlayer=l},3735:function(t,e,n){"use strict";var r=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.getMinMaxPosition=void 0;var i=n(6362);e.getMinMaxPosition=function(t,e){var n,o,s,a,u,c,l,h;if(t.length%3!=0)throw new Error("positions.length % 3 !== 0");var p=t.length/3;function f(e){var n;return r(this,(function(r){switch(r.label){case 0:n=0,r.label=1;case 1:return n<p?[4,t[3*n+e]]:[3,4];case 2:r.sent(),r.label=3;case 3:return++n,[3,1];case 4:return[2]}}))}var d=null!==(n=null==e?void 0:e.min)&&void 0!==n?n:[NaN,NaN,NaN],g=null!==(o=null==e?void 0:e.max)&&void 0!==o?o:[NaN,NaN,NaN];return d[0]=null!==(s=(0,i.min)(f(0)))&&void 0!==s?s:NaN,d[1]=null!==(a=(0,i.min)(f(1)))&&void 0!==a?a:NaN,d[2]=null!==(u=(0,i.min)(f(2)))&&void 0!==u?u:NaN,g[0]=null!==(c=(0,i.max)(f(0)))&&void 0!==c?c:NaN,g[1]=null!==(l=(0,i.max)(f(1)))&&void 0!==l?l:NaN,g[2]=null!==(h=(0,i.max)(f(2)))&&void 0!==h?h:NaN,{min:d,max:g}}},3804:function(t,e,n){"use strict";var r=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.objsIterator=void 0;var i=n(1803),o=n(8144);e.objsIterator=function(t,e){var n,s,a,u;return r(this,(function(r){switch(r.label){case 0:n=(0,o.getIterator)(t),r.label=1;case 1:return s=n.next(),a=s.done,u=s.value,a?[3,3]:[4,(0,i.getValueFromProps)(u,e)];case 2:return r.sent(),[3,1];case 3:return[2]}}))}},3815:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(9355),e),i(n(4344),e)},3915:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)},s=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},a=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.reactPosition2DsSet=e.reactPositionsSet=e.reactPositions=e.reactJsonCollectionWithUndefined=e.reactJsonCollection=e.reactArrayCollectionWithUndefined=e.reactArrayCollection=e.reactPlainObjectWithUndefined=e.reactPlainObject=e.reactJsonWithUndefined=e.reactJson=e.reactDeepArrayWithUndefined=e.reactDeepArray=e.reactArrayWithUndefined=e.reactArray=e.react=e.ReactiveVariable=void 0;var u=n(9359),c=n(4899),l=function(t){function e(e,n,r){var i=t.call(this)||this;return i._equalsFunc=n,i._assignFunc=r,i._value=i._assignFunc&&i._assignFunc(e,void 0)||e,i}return i(e,t),Object.defineProperty(e.prototype,"assignFunc",{get:function(){return this._assignFunc},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"equalsFunc",{get:function(){return this._equalsFunc},enumerable:!1,configurable:!0}),e.prototype.equals=function(t){return this._equalsFunc?this._equalsFunc(this._value,t):this._value===t},Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){if(this._equalsFunc?!this._equalsFunc(this._value,t):this._value!==t){if(this.toChangeFunc&&!this.toChangeFunc(t,this._value))return;this._assignFunc?(this._oldValue=this._assignFunc(this._value,this._oldValue),this._value=this._assignFunc(t,this._value)):(this._oldValue=this._value,this._value=t),this._changed&&this._changed.emit(t,this._oldValue)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"changed",{get:function(){return this._changed||(this._changed=this.disposeVar(new c.Event)),this._changed},enumerable:!1,configurable:!0}),e.prototype.forceChange=function(){this._changed&&this._changed.emit(this._value,this._value)},e}(u.Destroyable);function h(t,e,n){return new l(t,e,n)}function p(t,e,n){return h(t,(function(t,n){return t.length===n.length&&t.every((function(t,r){return e&&e(t,n[r])||t===n[r]}))}),(function(t,e){var r=e||new Array(t.length);return r.length=t.length,t.forEach((function(t,e){r[e]=n?n(t):t})),r}))}function f(t,e,n){return h(t,(function(t,n){return void 0===t||void 0===n?void 0===t&&void 0===n:t.length===n.length&&t.every((function(t,r){return e&&e(t,n[r])||t===n[r]}))}),(function(t,e){if(t){var r=e||new Array(t.length);return r.length=t.length,t.forEach((function(t,e){r[e]=n?n(t):t})),r}}))}function d(t){return f(t,(function(t,e){return t.every((function(t,n){return t===e[n]}))}),(function(t){return a([],s(t),!1)}))}e.ReactiveVariable=l,e.react=h,e.reactArray=function(t){return new l(t,(function(t,e){return t.length===e.length&&t.every((function(t,n){return t===e[n]}))}),(function(t,e){var n=e||new Array(t.length);return n.length=t.length,t.forEach((function(t,e){return n[e]=t})),n}))},e.reactArrayWithUndefined=function(t){return h(t,(function(t,e){return void 0===t||void 0===e?void 0===t&&void 0===e:t.length===e.length&&t.every((function(t,n){return t===e[n]}))}),(function(t,e){if(t){var n=e||new Array(t.length);return n.length=t.length,t.forEach((function(t,e){return n[e]=t})),n}}))},e.reactDeepArray=p,e.reactDeepArrayWithUndefined=f,e.reactJson=function(t){return new l(t,(function(t,e){return t===e||void 0!==t&&void 0!==e&&JSON.stringify(t)===JSON.stringify(e)}),(function(t,e){if(void 0!==t)return JSON.parse(JSON.stringify(t))}))},e.reactJsonWithUndefined=function(t){return new l(t,(function(t,e){return t===e||void 0!==t&&void 0!==e&&JSON.stringify(t)===JSON.stringify(e)}),(function(t,e){if(void 0!==t)return JSON.parse(JSON.stringify(t))}))},e.reactPlainObject=function(t){return new l(t,(function(t,e){if(t===e)return!0;if(void 0===t||void 0===e)return!1;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every((function(n,i){return n===r[i]&&t[n]===e[n]}))}),(function(t,e){return t&&o({},t)}))},e.reactPlainObjectWithUndefined=function(t){return new l(t,(function(t,e){if(t===e)return!0;if(void 0===t||void 0===e)return!1;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every((function(n,i){return n===r[i]&&t[n]===e[n]}))}),(function(t,e){return t&&o({},t)}))},e.reactArrayCollection=function(t){return p(t,(function(t,e){return t.every((function(t,n){return t===e[n]}))}),(function(t){return a([],s(t),!1)}))},e.reactArrayCollectionWithUndefined=d,e.reactJsonCollection=function(t){return p(t,(function(t,e){return JSON.stringify(t)===JSON.stringify(e)}),(function(t){return JSON.parse(JSON.stringify(t))}))},e.reactJsonCollectionWithUndefined=function(t){return f(t,(function(t,e){return JSON.stringify(t)===JSON.stringify(e)}),(function(t){return JSON.parse(JSON.stringify(t))}))},e.reactPositions=function(t){return d(t)},e.reactPositionsSet=function(t){return f(t,(function(t,e){return t.length===e.length&&t.every((function(t,n){return t.every((function(t,r){return t===e[n][r]}))}))}),(function(t){return t.map((function(t){return a([],s(t),!1)}))}))},e.reactPosition2DsSet=function(t){return f(t,(function(t,e){return t.length===e.length&&t.every((function(t,n){return t.every((function(t,r){return t===e[n][r]}))}))}),(function(t){return t.map((function(t){return a([],s(t),!1)}))}))}},3951:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.IFrameBorderedPosFloatDiv=void 0;var o=n(7372),s=function(t){function e(){var e=t.call(this)||this,n=document.createElement("iframe");n.style.cssText="width: 100%; height: 100%; border-width: 0px; border-radius: 5px; display: block;",n.src="http://www.weather.com.cn/live/index.shtml",e._iframe=n,e.innerContentDiv.appendChild(n);var r=function(t){t.source===e._iframe.contentWindow&&(e._iframeMessageEvent?e._iframeMessageEvent.emit(t):console.warn("iframe消息接收到未处理!data: ".concat(t.data)))};return window.addEventListener("message",r),e.dispose((function(){window.removeEventListener("message",r)})),e}return i(e,t),e.prototype.reset=function(){t.prototype.reset.call(this),this.src=""},Object.defineProperty(e.prototype,"src",{get:function(){return this._iframe.src},set:function(t){this._iframe.src!==t&&(this._iframe.src=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iframe",{get:function(){return this._iframe},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iframeMessageEvent",{get:function(){return this._iframeMessageEvent=this._iframeMessageEvent||new o.Event,this._iframeMessageEvent},enumerable:!1,configurable:!0}),e}(n(4143).BorderedPosFloatDiv);e.IFrameBorderedPosFloatDiv=s},3983:(t,e)=>{"use strict";function n(t,e,n){for(var r=0;r<n;++r)if(t[r]!==e[r])return!1;return!0}Object.defineProperty(e,"__esModule",{value:!0}),e.equalsPenSplineVertexType=void 0,e.equalsPenSplineVertexType=function(t,e,r){return n(t.position,e.position,r)&&(t.leftPosition===e.leftPosition===void 0||t.leftPosition&&e.leftPosition&&n(t.leftPosition,e.leftPosition,r)||!1)&&(t.rightPosition===e.rightPosition===void 0||t.rightPosition&&e.rightPosition&&n(t.rightPosition,e.rightPosition,r)||!1)}},4123:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.CursorInfo=e.CursorFloatDiv=void 0;var s=n(7372),a=n(4621),u=n(7445),c=function(t){function e(){var e=t.call(this)||this;return e.contentDiv.style.backgroundColor="rgba(0, 0, 0, 0.8)",e.contentDiv.style.borderRadius="3px",e.contentDiv.style.color="rgb(255, 255, 255)",e.contentDiv.style.padding="1px 5px 1px 5px",e.contentDiv.style.fontSize="12px",e.contentDiv.style.whiteSpace="nowrap",e.contentDiv.innerText="未定义光标信息!",e.originRatioX=0,e.originRatioY=0,e.originOffsetX=-16,e}return i(e,t),e}(u.PosFloatDiv);e.CursorFloatDiv=c;var l=function(t){function e(e,n){var r=t.call(this)||this;r._pointerOut=r.disposeVar((0,s.react)(!1)),r._show=r.disposeVar((0,s.react)(!0)),r._cursorDiv=new u.DivPoi(n,e),r.dispose((function(){return r._cursorDiv.destroy()}));var i=function(t){var e=o((0,a.getDomEventCurrentTargetPos)(t),2),n=e[0],i=e[1];r._cursorDiv.floatDiv.winPos=[n,i]};e.addEventListener("pointermove",i),r.dispose((function(){return e.removeEventListener("pointermove",i)}));var c=function(){r._cursorDiv.show=r.show&&r._pointerOut.value};return c(),r.dispose(r.showChanged.disposableOn(c)),r.dispose(r._pointerOut.changed.disposableOn(c)),r}return i(e,t),Object.defineProperty(e.prototype,"show",{get:function(){return this._show.value},set:function(t){this._show.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showChanged",{get:function(){return this._show.changed},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this._pointerOut.value=!1},Object.defineProperty(e.prototype,"cursorDiv",{get:function(){return this._cursorDiv},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this._cursorDiv.floatDiv.contentDiv.innerText},set:function(t){this._cursorDiv.floatDiv.contentDiv.innerText=t},enumerable:!1,configurable:!0}),e}(s.Destroyable);e.CursorInfo=l},4143:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.BorderedPosFloatDiv=e.createBottomTriangleElement=e.createCloseDiv=void 0;var s=n(7372),a=n(9986),u=["top","bottom","left","right"];function c(t,e,n){var r,i=document.createElement("div");return i.style.cssText="position: absolute; ".concat((r=n,Object.entries(r).map((function(t){var e=o(t,2),n=e[0],r=e[1];return u.includes(n)?"".concat(n,": ").concat(r,"px; "):""})).join(""))," background-color: ").concat(t,"; border-radius: ").concat(e,"px;"),i.innerHTML='<svg viewBox="0 0 1024 1024" style="display: block;" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2420" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M512 128C300.8 128 128 300.8 128 512s172.8 384 384 384 384-172.8 384-384S723.2 128 512 128zM512 832c-179.2 0-320-140.8-320-320s140.8-320 320-320 320 140.8 320 320S691.2 832 512 832z" p-id="2421" fill="#ffffff"></path><path d="M672 352c-12.8-12.8-32-12.8-44.8 0L512 467.2 396.8 352C384 339.2 364.8 339.2 352 352S339.2 384 352 396.8L467.2 512 352 627.2c-12.8 12.8-12.8 32 0 44.8s32 12.8 44.8 0L512 556.8l115.2 115.2c12.8 12.8 32 12.8 44.8 0s12.8-32 0-44.8L556.8 512l115.2-115.2C684.8 384 684.8 364.8 672 352z" p-id="2422" fill="#ffffff"></path></svg>',i}function l(t,e,n){void 0===n&&(n="rgba(0,0,0,0.7)");var r=document.createElement("div");r.style.cssText="margin: 0 auto; width: ".concat(t,"px; height: ").concat(e,"px; position: relative; pointer-events: none;");var i=document.createElement("div");return i.style.cssText="position: absolute; left: 0px; top: 0px; width: 0; height: 0; border-left: ".concat(.5*t,"px solid transparent; border-right: ").concat(.5*t,"px solid transparent; border-top: ").concat(e,"px solid ").concat(n,";"),r.appendChild(i),[r,i]}e.createCloseDiv=c,e.createBottomTriangleElement=l;var h=function(t){function e(){var e=t.call(this)||this;e._colorStr="rgba(0, 0, 0, 0.7)",e._divColorChanged=new s.Event,e._borderRadius=10;var n=document.createElement("div");n.style.cssText="position: relative; background-color: ".concat(e._colorStr,"; border-radius: ").concat(e._borderRadius,"px; padding: 5px; pointer-events: all;"),e._borderDiv=n;var r=c(e._colorStr,10,{top:3,right:3}),i=o(l(2*e._borderRadius,2*e._borderRadius,e._colorStr),2),a=i[0],u=i[1],h=document.createElement("div");e._innerContentDiv=h,n.appendChild(h),n.appendChild(r),e.contentDiv.appendChild(n),e.contentDiv.appendChild(a),r.style.opacity="0.1",r.onmouseenter=function(){r.style.opacity="1.0"},r.onmouseleave=function(){r.style.opacity="0.1"},r.onclick=function(){e._closeEvent&&e._closeEvent.emit()},e._closeDiv=r,e.dispose(e._divColorChanged.disposableOn((function(){u.style.borderTopColor=e._colorStr,n.style.backgroundColor=e._colorStr,a.style.width="".concat(2*e._borderRadius,"px"),a.style.height="".concat(2*e._borderRadius,"px"),u.style.borderLeft="".concat(e._borderRadius,"px"),u.style.borderRight="".concat(e._borderRadius,"px"),u.style.borderTop="".concat(2*e._borderRadius,"px")})));var p=function(t){"Escape"===t.key&&e._closeEvent&&e._closeEvent.emit()};return document.body.addEventListener("keydown",p,!0),e.dispose((function(){document.removeEventListener("keydown",p,!0)})),e}return i(e,t),Object.defineProperty(e.prototype,"borderDiv",{get:function(){return this._borderDiv},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"innerContentDiv",{get:function(){return this._innerContentDiv},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.show=!1,this.opacity=0,this._closeDiv.style.opacity="0.1",t.prototype.reset.call(this)},Object.defineProperty(e.prototype,"colorStr",{get:function(){return this._colorStr},set:function(t){this._colorStr!==t&&(this._colorStr=t,this._divColorChanged.emit())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"borderRadius",{get:function(){return this._borderRadius},set:function(t){this._borderRadius!==t&&(this._borderRadius=t,this._divColorChanged.emit())},enumerable:!1,configurable:!0}),e}(a.PosFloatDiv);e.BorderedPosFloatDiv=h},4206:function(t,e){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.CancelError=void 0;var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(Error);e.CancelError=i},4209:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.inverse=void 0;var r=n(8089),i=n(2731),o=n(9898),s=(0,i.createNumbers)(9),a=(0,i.createNumbers)(9),u=(0,i.createNumbers)(4),c=(0,i.createNumbers)(4,0,0,0,1);e.inverse=function(t,e){var n=t[0],l=t[4],h=t[8],p=t[12],f=t[1],d=t[5],g=t[9],y=t[13],v=t[2],m=t[6],_=t[10],b=t[14],w=t[3],E=t[7],x=t[11],P=t[15],S=_*P,O=b*x,C=m*P,M=b*E,I=m*x,T=_*E,j=v*P,N=b*w,D=v*x,A=_*w,R=v*E,F=m*w,L=S*d+M*g+I*y-(O*d+C*g+T*y),k=O*f+j*g+A*y-(S*f+N*g+D*y),V=C*f+N*d+R*y-(M*f+j*d+F*y),B=T*f+D*d+F*g-(I*f+A*d+R*g),z=O*l+C*h+T*p-(S*l+M*h+I*p),U=S*n+N*h+D*p-(O*n+j*h+A*p),G=M*n+j*l+F*p-(C*n+N*l+R*p),W=I*n+A*l+R*h-(T*n+D*l+F*h),q=(S=h*y)*E+(M=p*d)*x+(I=l*g)*P-((O=p*g)*E+(C=l*y)*x+(T=h*d)*P),X=O*w+(j=n*y)*x+(A=h*f)*P-(S*w+(N=p*f)*x+(D=n*g)*P),H=C*w+N*E+(R=n*d)*P-(M*w+j*E+(F=l*f)*P),Y=T*w+D*E+F*x-(I*w+A*E+R*x),J=C*_+T*b+O*m-(I*b+S*m+M*_),$=D*b+S*v+N*_-(j*_+A*b+O*v),Z=j*m+F*b+M*v-(R*b+C*v+N*m),Q=R*_+I*v+A*m-(D*m+F*_+T*v),K=n*L+l*k+h*V+p*B;if(e=e||(0,i.createNumbers)(16),Math.abs(K)<1e-21){if(o.Vector.equalsEpsilon(r.Matrix4.getMatrix3(t,s),a,1e-7)&&o.Vector.equals(r.Matrix4.getRow(t,3,u),c))return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=0,e[11]=0,e[12]=-t[12],e[13]=-t[13],e[14]=-t[14],e[15]=1,e;throw new Error("matrix is not invertible because its determinate is zero.")}return K=1/K,e[0]=L*K,e[1]=k*K,e[2]=V*K,e[3]=B*K,e[4]=z*K,e[5]=U*K,e[6]=G*K,e[7]=W*K,e[8]=q*K,e[9]=X*K,e[10]=H*K,e[11]=Y*K,e[12]=J*K,e[13]=$*K,e[14]=Z*K,e[15]=Q*K,e}},4221:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(4292),e),i(n(1662),e),i(n(3281),e),i(n(6356),e)},4235:(t,e,n)=>{"use strict";e.A=void 0;var r=n(4638),i=n(733),o={blocks:function(t){for(var e=[],n=t.data.length,r=0,o=(0,i.readByte)()(t);0!==o&&o;o=(0,i.readByte)()(t)){if(t.pos+o>=n){var s=n-t.pos;e.push((0,i.readBytes)(s)(t)),r+=s;break}e.push((0,i.readBytes)(o)(t)),r+=o}for(var a=new Uint8Array(r),u=0,c=0;c<e.length;c++)a.set(e[c],u),u+=e[c].length;return a}},s=(0,r.conditional)({gce:[{codes:(0,i.readBytes)(2)},{byteSize:(0,i.readByte)()},{extras:(0,i.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,i.readUnsigned)(!0)},{transparentColorIndex:(0,i.readByte)()},{terminator:(0,i.readByte)()}]},(function(t){var e=(0,i.peekBytes)(2)(t);return 33===e[0]&&249===e[1]})),a=(0,r.conditional)({image:[{code:(0,i.readByte)()},{descriptor:[{left:(0,i.readUnsigned)(!0)},{top:(0,i.readUnsigned)(!0)},{width:(0,i.readUnsigned)(!0)},{height:(0,i.readUnsigned)(!0)},{lct:(0,i.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,r.conditional)({lct:(0,i.readArray)(3,(function(t,e,n){return Math.pow(2,n.descriptor.lct.size+1)}))},(function(t,e,n){return n.descriptor.lct.exists})),{data:[{minCodeSize:(0,i.readByte)()},o]}]},(function(t){return 44===(0,i.peekByte)()(t)})),u=(0,r.conditional)({text:[{codes:(0,i.readBytes)(2)},{blockSize:(0,i.readByte)()},{preData:function(t,e,n){return(0,i.readBytes)(n.text.blockSize)(t)}},o]},(function(t){var e=(0,i.peekBytes)(2)(t);return 33===e[0]&&1===e[1]})),c=(0,r.conditional)({application:[{codes:(0,i.readBytes)(2)},{blockSize:(0,i.readByte)()},{id:function(t,e,n){return(0,i.readString)(n.blockSize)(t)}},o]},(function(t){var e=(0,i.peekBytes)(2)(t);return 33===e[0]&&255===e[1]})),l=(0,r.conditional)({comment:[{codes:(0,i.readBytes)(2)},o]},(function(t){var e=(0,i.peekBytes)(2)(t);return 33===e[0]&&254===e[1]})),h=[{header:[{signature:(0,i.readString)(3)},{version:(0,i.readString)(3)}]},{lsd:[{width:(0,i.readUnsigned)(!0)},{height:(0,i.readUnsigned)(!0)},{gct:(0,i.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,i.readByte)()},{pixelAspectRatio:(0,i.readByte)()}]},(0,r.conditional)({gct:(0,i.readArray)(3,(function(t,e){return Math.pow(2,e.lsd.gct.size+1)}))},(function(t,e){return e.lsd.gct.exists})),{frames:(0,r.loop)([s,c,l,a,u],(function(t){var e=(0,i.peekByte)()(t);return 33===e||44===e}))}];e.A=h},4292:(t,e)=>{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.copyright=void 0;var r=null!==(n="".concat("xbsj-base"))&&void 0!==n?n:"-",i="地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",o=((Date.now()-1743502596e3)/36e5).toFixed(1),s="%c🌏 ".concat(r,"%c ").concat("1.0.1"," ").concat("6a6f3869f41c8db67af383a267b45147c29ee2b5".slice(0,8)," ").concat("2025-04-01T10:16:36.000Z"," (距今").concat(o,"个小时)\n%c").concat(i?i+"\n":"","当前网站正在使用").concat(r,",此开发包版权归").concat("北京西部世界科技有限公司","所有。");e.copyright=Object.seal({get owner(){return"北京西部世界科技有限公司"},get ownerlink(){},get info(){return s},get date(){return"2025-04-01T10:16:36.000Z"},get author(){return"vtxf,suplyang"},get version(){return"1.0.1"},get name(){return"xbsj-base"},get commitId(){return"6a6f3869f41c8db67af383a267b45147c29ee2b5"},print:function(){console.info(this.info,"\n font-size: 18px;\n font-weight: 1000;\n line-height: 1;\n color: rgb(0, 120, 215);\n padding-top: 20px;\n padding-bottom: 10px;\n ","\n font-size: 10px;\n font-weight: 1000;\n color: rgb(0, 120, 215);\n ","\n font-size: 10px;\n line-height: 1.5;\n color: rgb(0, 120, 215);\n padding-bottom: 2px;\n padding-left: 35px;\n ")}})},4344:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},a=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.ObservableSet=void 0;var u=n(1662),c=function(t){function e(){var n=t.call(this)||this;return n._set=new Set,n._toChangeEvent=n.disposeVar(new u.Event),n._changedEvent=n.disposeVar(new u.Event),n.dispose((function(){0!==n._set.size&&(e.warnOnDestroying&&console.warn("this._set.size > 0"),n.clear())})),n}return i(e,t),Object.defineProperty(e.prototype,"toChange",{get:function(){return this._toChangeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"changed",{get:function(){return this._changedEvent},enumerable:!1,configurable:!0}),e.prototype.add=function(){for(var t,e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{for(var i=o(n),s=i.next();!s.done;s=i.next()){var a=s.value;this._toChangeEvent.emit([],[a]),this._set.add(a),this._changedEvent.emit([],[a])}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}},e.prototype.delete=function(){for(var t,e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{for(var i=o(n),s=i.next();!s.done;s=i.next()){var a=s.value;this._toChangeEvent.emit([a],[]),this._set.delete(a),this._changedEvent.emit([a],[])}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}},e.prototype.disposableAdd=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this.add.apply(this,a([],s(e),!1)),function(){return t.delete.apply(t,a([],s(e),!1))}},Object.defineProperty(e.prototype,"size",{get:function(){return this._set.size},enumerable:!1,configurable:!0}),e.prototype.clear=function(){var t=a([],s(this._set),!1);this._toChangeEvent.emit([],t),this._set.clear(),this._changedEvent.emit([],t)},e.prototype.values=function(){return this._set.values()},e.warnOnDestroying=!0,e}(u.Destroyable);e.ObservableSet=c},4416:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BoundingSphere=void 0;var r=n(312),i=n(8089),o=n(2731),s=n(7215),a=n(9898);!function(t){function e(t,e){return e=e||(0,o.createNumbers)(3),a.Vector.set(e,t[0],t[1],t[2]),e}function n(t){return t[3]}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function c(t,e){t[3]=e}t.getCenter=e,t.getRadius=n,t.setCenter=u,t.setRadius=c,t.fromCenterRadius=function(t,e,n){return a.Vector.set(n,t[0],t[1],t[2],e)};var l=(0,o.createNumbers)(3),h=(0,o.createNumbers)(3);t.intersectPlane=function(t,i){var o=e(t,l),u=n(t),c=s.Plane.getNormal(i,h),p=a.Vector.dot(c,o)+s.Plane.getDistance(i);return p<-u?r.Intersect.OUTSIDE:p<u?r.Intersect.INTERSECTING:r.Intersect.INSIDE};var p=(0,o.createNumbers)(3);t.transform=function(t,r,s){s=s||(0,o.createNumbers)(4);var a=e(t,p),l=n(t);return i.Matrix4.affineMultiplyByPoint(r,a,a),l*=i.Matrix4.getMaximumScale(r),u(s,a),c(s,l),s};var f=(0,o.createNumbers)(3),d=(0,o.createNumbers)(3),g=(0,o.createNumbers)(3),y=(0,o.createNumbers)(3);t.union=function(t,e,n){n=n||(0,o.createNumbers)(4);var r=a.Vector.set(f,t[0],t[1],t[2]),i=t[3],s=a.Vector.set(d,e[0],e[1],e[2]),u=e[3],c=a.Vector.subtract(s,r,g),l=a.Vector.magnitude(c);if(i>=l+u)return a.Vector.clone(t,n),n;if(u>=l+i)return a.Vector.clone(e,n),n;var h=.5*(i+l+u),p=a.Vector.multiplyByScalar(c,(-i+h)/l,y);return a.Vector.add(p,r,p),a.Vector.set(n,p[0],p[1],p[2],h),n};var v=(0,o.createNumbers)(3);t.fromCornerPoints=function(t,e,n){var r=a.Vector.lerp(t,e,.5,v),i=a.Vector.distance(r,e);return a.Vector.set(n,r[0],r[1],r[2],i)}}(e.BoundingSphere||(e.BoundingSphere={}))},4471:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.ListenerPipe=void 0;var o=n(1895),s=new(n(1085).ObjPool)((function(){return{func:void 0,scope:void 0,_hasRemoved:!1,_once:!1}}),(function(t){t.func=void 0,t.scope=void 0,t._hasRemoved=!1,t._once=!1}),!0),a=function(){function t(){}return Object.defineProperty(t.prototype,"_dll",{get:function(){var t;return this.__dll=null!==(t=this.__dll)&&void 0!==t?t:new o.DoublyLinkedList({needLength:!0}),this.__dll},enumerable:!1,configurable:!0}),t.prototype._pushCurrentListener=function(t){this.__currentListenerStack?Array.isArray(this.__currentListenerStack)?this.__currentListenerStack.push(t):this.__currentListenerStack=[this.__currentListenerStack,t]:this.__currentListenerStack=t},t.prototype._popCurrentListener=function(){if(!this.__currentListenerStack)throw new Error("cannot pop!");Array.isArray(this.__currentListenerStack)?this.__currentListenerStack.pop():this.__currentListenerStack=void 0},t.prototype._hasCurrentListener=function(t){return!!this.__currentListenerStack&&(Array.isArray(this.__currentListenerStack)?-1!==this.__currentListenerStack.indexOf(t):this.__currentListenerStack===t)},t.prototype.do=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this.__dll&&!this._dll.empty)for(var o=this._dll.head;o;){var s=o.item;s._hasRemoved||(this._pushCurrentListener(s),(t=s.func).call.apply(t,i([s.scope],r(e),!1)),this._popCurrentListener());var a=o.next;s._once&&!s._hasRemoved&&(this.remove(o),o=void 0),o&&this._clearHasRemoved(o),o=a}},Object.defineProperty(t.prototype,"empty",{get:function(){if(!this.__dll||this._dll.empty)return!0;for(var t=!0,e=this._dll.head;e;){if(!e.item._hasRemoved){t=!1;break}e=e.next}return t},enumerable:!1,configurable:!0}),t.prototype.isHandlerValid=function(t){return!t.item._hasRemoved},t.prototype.nextHandler=function(t){if(!t.item._hasRemoved)throw new Error("handler has removed!");for(var e=t.next;e&&e.item._hasRemoved;)e=e.next;return e},t.prototype.prevHandler=function(t){if(!t.item._hasRemoved)throw new Error("handler has removed!");for(var e=t.previous;e&&e.item._hasRemoved;)e=e.previous;return e},t.prototype.moveAfter=function(t,e){if(t.item._hasRemoved||e.item._hasRemoved)throw new Error("handler or nextHandler has removed!");return this._dll.moveAfter(t,e)},t.prototype.moveBefore=function(t,e){if(t.item._hasRemoved||e.item._hasRemoved)throw new Error("handler or prevHandler has removed!");return this._dll.moveBefore(t,e)},t.prototype.insertBefore=function(t,e,n,r){if(void 0===r&&(r=!1),t.item._hasRemoved)throw new Error("handler has removed!");var i=s.create();return i.func=e,i.scope=n,i._once=r,this._dll.insertBefore(t,i)},t.prototype.insertAfter=function(t,e,n,r){if(void 0===r&&(r=!1),t.item._hasRemoved)throw new Error("handler has removed!");var i=s.create();return i.func=e,i.scope=n,i._once=r,this._dll.insertAfter(t,i)},t.prototype._clearHasRemoved=function(t){t.item._hasRemoved&&!this._hasCurrentListener(t.item)&&(s.destroy(t.item),this._dll.remove(t))},t.prototype.remove=function(t){if(!t.item||t.item._hasRemoved)throw new Error("handler has removed!");this._hasCurrentListener(t.item)?t.item._hasRemoved=!0:(s.destroy(t.item),this._dll.remove(t))},t.prototype.removeAll=function(){if(this.__dll&&!this._dll.empty)for(var t=this._dll.head;t;){var e=t.next;t.item._hasRemoved||this.remove(t),t=e}},t.prototype.destroy=function(){if(this.__dll){for(var t=this._dll.head;t;){var e=t.next,n=t;this._hasCurrentListener(n.item)||(console.warn("Event has remove item that on current stack!"),console.warn("".concat(n.item.func.toString()))),s.destroy(n.item),this._dll.remove(n),t=e}this.__dll=void 0,this.__currentListenerStack=void 0}},t.prototype.push=function(t,e,n){void 0===n&&(n=!1);var r=s.create();return r.func=t,r.scope=e,r._once=n,this._dll.push(r)},t.prototype.pop=function(){var t=this.tail;if(!t)throw new Error("pop error!");this.remove(t)},t.prototype.shift=function(){var t=this.head;if(!t)throw new Error("shift error!");this.remove(t)},t.prototype.unshift=function(t,e,n){void 0===n&&(n=!1);var r=s.create();return r.func=t,r.scope=e,r._once=n,this._dll.unshift(r)},Object.defineProperty(t.prototype,"tail",{get:function(){for(var t=this._dll.tail;t&&t.item._hasRemoved;)t=t.previous;return t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"head",{get:function(){for(var t=this._dll.head;t&&t.item._hasRemoved;)t=t.previous;return t},enumerable:!1,configurable:!0}),t}();e.ListenerPipe=a},4499:function(t,e){"use strict";var n=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};function r(t,e,r,i){var o=n(t,2),s=o[0],a=o[1],u=n(i,4),c=u[0],l=u[1],h=u[2],p=u[3],f=e[0]*r[0],d=e[1]*r[1],g=s-(f*c+h),y=a-(d*l+p);return{left:g,top:y,right:g+f,bottom:y+d}}function i(t,e,n,r,i,o){t.beginPath(),t.moveTo(e+o,n),t.lineTo(e+r-o,n),t.arcTo(e+r,n,e+r,n+o,o),t.lineTo(e+r,n+i-o),t.arcTo(e+r,n+i,e+r-o,n+i,o),t.lineTo(e+o,n+i),t.arcTo(e,n+i,e,n+i-o,o),t.lineTo(e,n+o),t.arcTo(e,n,e+o,n,o)}function o(t){return("00"+t.toString(16).toUpperCase()).substr(-2)}Object.defineProperty(e,"__esModule",{value:!0}),e.getColorHexStr=e.uint8ToHexStr=e.drawTextBlock=e.setCanvasUniformColor=e.imageToCanvas=e.drawText=e.drawRoundRectPath=e.drawPoint=e.getDrawRect=void 0,e.getDrawRect=r,e.drawPoint=function(t,e,n,r,i){t.beginPath(),t.moveTo(e,n),t.lineTo(e-.5*r,n-.5*r),t.arc(e,n-r,.7071067811865475*r,.75*Math.PI,.25*Math.PI),t.lineTo(e,n),t.fillStyle=i,t.fill()},e.drawRoundRectPath=i,e.drawText=function(t,e,n,r,i,o){t.font=i;var s=t.measureText(r),a=s.actualBoundingBoxLeft+s.actualBoundingBoxRight,u=Number.isFinite(s.fontBoundingBoxAscent)?s.fontBoundingBoxAscent:s.actualBoundingBoxAscent,c=Number.isFinite(s.fontBoundingBoxDescent)?s.fontBoundingBoxDescent:s.actualBoundingBoxDescent,l=u+c;t.fillStyle=o,t.fillText(r,e-.5*a,n+.5*l-c)},e.imageToCanvas=function(t){var e=t.width,n=t.height,r=e instanceof SVGAnimatedLength?e.baseVal.SVG_LENGTHTYPE_PX:e,i=n instanceof SVGAnimatedLength?n.baseVal.SVG_LENGTHTYPE_PX:n,o=document.createElement("canvas");o.width=r,o.height=i;var s=o.getContext("2d");if(!s)throw new Error("!cavnasCtx");return s.drawImage(t,0,0,r,i),o},e.setCanvasUniformColor=function(t,e){var r=t.width,i=t.height,o=t.getContext("2d");if(!o)throw new Error("!cavnasCtx");for(var s=n(e.map((function(t){return 255*t|0})),3),a=s[0],u=s[1],c=s[2],l=o.getImageData(0,0,r,i),h=l.data,p=0;p<h.length;p+=4)h[p]=a,h[p+1]=u,h[p+2]=c;o.putImageData(l,0,0)},e.drawTextBlock=function(t,e,n,o,s,a,u,c,l){void 0===o&&(o=[.5,1,0,0]),void 0===a&&(a="12px Arial"),void 0===u&&(u=2),void 0===c&&(c="#FFF"),void 0===l&&(l="#000A"),t.font=a;var h=t.measureText(s),p=h.actualBoundingBoxLeft+h.actualBoundingBoxRight+2*u,f=h.fontBoundingBoxAscent+h.fontBoundingBoxDescent+2*u,d=r([e,n],[p,f],[1,1],o),g=d.left,y=d.top,v=d.bottom;t.fillStyle=l,i(t,g,y,p,f,u),t.fill(),t.fillStyle=c,t.fillText(s,g+u,v-u-h.fontBoundingBoxDescent)},e.uint8ToHexStr=o,e.getColorHexStr=function(t){var e=n(t.map((function(t){return 255*t|0})),4),r=e[0],i=e[1],s=e[2],a=e[3];return"#".concat(o(r)).concat(o(i)).concat(o(s)).concat(o(a))}},4601:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._setRow=e._getRow=void 0;var r=n(2731),i=n(9898);e._getRow=function(t,e,n){if(e<0||e>3)throw new Error("index < 0 || index > 3");n=n||(0,r.createNumbers)(4);var i=t[e],o=t[e+4],s=t[e+8],a=t[e+12];return n[0]=i,n[1]=o,n[2]=s,n[3]=a,n},e._setRow=function(t,e,n,r){if(e<0||e>3)throw new Error("index < 0 || index > 3");return(r=i.Vector.clone(t,r))[e]=n[0],r[e+4]=n[1],r[e+8]=n[2],r[e+12]=n[3],r}},4621:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(1378),e),i(n(9369),e),i(n(9597),e),i(n(5010),e),i(n(507),e),i(n(1968),e),i(n(2217),e),i(n(2299),e)},4638:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.loop=e.conditional=e.parse=void 0,e.parse=function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r;if(Array.isArray(n))n.forEach((function(n){return t(e,n,r,i)}));else if("function"==typeof n)n(e,r,i,t);else{var o=Object.keys(n)[0];Array.isArray(n[o])?(i[o]={},t(e,n[o],r,i[o])):i[o]=n[o](e,r,i,t)}return r},e.conditional=function(t,e){return function(n,r,i,o){e(n,r,i)&&o(n,t,r,i)}},e.loop=function(t,e){return function(n,r,i,o){for(var s=[],a=n.pos;e(n,r,i);){var u={};if(o(n,t,r,u),n.pos===a)break;a=n.pos,s.push(u)}return s}}},4661:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.stepProcessing=void 0;var o=n(5819),s=n(9374);e.stepProcessing=function(t,e){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];return t.promise((0,o.pairToPromise)(s.getPromiseFromProcessing.apply(void 0,i([e],r(n),!1))))}},4775:function(t,e){"use strict";var n=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},r=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.debounce=void 0,e.debounce=function(t,e){if(!window||!window.setTimeout||!window.clearTimeout)throw new Error("目前只适合在浏览器中使用!");var i=0;function o(){i>0&&(window.clearTimeout(i),i=0)}return[function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];o(),i=window.setTimeout.apply(window,r([t,e],n(s),!1))},o]}},4833:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InverseViewMatrix=void 0;var r=n(9898),i=function(){function t(){}return t.getDirection=function(t,e){return r.Vector.set(e,-t[8],-t[9],-t[10])},t.getRight=function(t,e){return r.Vector.set(e,t[0],t[1],t[2])},t.getUp=function(t,e){return r.Vector.set(e,t[4],t[5],t[6])},t.getEye=function(t,e){return r.Vector.set(e,t[12],t[13],t[14])},t}();e.InverseViewMatrix=i},4899:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(1895),e),i(n(9067),e),i(n(4471),e),i(n(2452),e),i(n(5774),e)},4915:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Matrix3=void 0;var r,i=n(2731),o=n(9898);(r=e.Matrix3||(e.Matrix3={})).multiply=function(t,e,n){var r=t[0]*e[0]+t[3]*e[1]+t[6]*e[2],o=t[1]*e[0]+t[4]*e[1]+t[7]*e[2],s=t[2]*e[0]+t[5]*e[1]+t[8]*e[2],a=t[0]*e[3]+t[3]*e[4]+t[6]*e[5],u=t[1]*e[3]+t[4]*e[4]+t[7]*e[5],c=t[2]*e[3]+t[5]*e[4]+t[8]*e[5],l=t[0]*e[6]+t[3]*e[7]+t[6]*e[8],h=t[1]*e[6]+t[4]*e[7]+t[7]*e[8],p=t[2]*e[6]+t[5]*e[7]+t[8]*e[8];return(n=n||(0,i.createNumbers)(9))[0]=r,n[1]=o,n[2]=s,n[3]=a,n[4]=u,n[5]=c,n[6]=l,n[7]=h,n[8]=p,n},r.multiplyByVector=function(t,e,n){var r=e[0],i=e[1],s=e[2],a=t[0]*r+t[3]*i+t[6]*s,u=t[1]*r+t[4]*i+t[7]*s,c=t[2]*r+t[5]*i+t[8]*s;return o.Vector.set(n,a,u,c)},r.fromQuaternion=function(t,e){var n=t[0]*t[0],r=t[0]*t[1],s=t[0]*t[2],a=t[0]*t[3],u=t[1]*t[1],c=t[1]*t[2],l=t[1]*t[3],h=t[2]*t[2],p=t[2]*t[3],f=t[3]*t[3],d=n-u-h+f,g=2*(r-p),y=2*(s+l),v=2*(r+p),m=-n+u-h+f,_=2*(c-a),b=2*(s-l),w=2*(c+a),E=-n-u+h+f;return e=e||(0,i.createNumbers)(9),o.Vector.set(e,d,v,b,g,m,w,y,_,E),e},r.getScale=function(t,e){return(e=e||(0,i.createNumbers)(3))[0]=o.Vector.magnitude([t[0],t[1],t[2]]),e[1]=o.Vector.magnitude([t[3],t[4],t[5]]),e[2]=o.Vector.magnitude([t[6],t[7],t[8]]),e},r.getElementIndex=function(t,e){return 3*t+e},r.IDENTITY=Object.freeze([1,0,0,0,1,0,0,0,1]),r.COLUMN0ROW0=0,r.COLUMN0ROW1=1,r.COLUMN0ROW2=2,r.COLUMN1ROW0=3,r.COLUMN1ROW1=4,r.COLUMN1ROW2=5,r.COLUMN2ROW0=6,r.COLUMN2ROW1=7,r.COLUMN2ROW2=8},4969:(t,e)=>{"use strict";function n(t){return JSON.stringify(t,void 0," ")}Object.defineProperty(e,"__esModule",{value:!0}),e.printJson=e.toJsonStr=void 0,e.toJsonStr=n,e.printJson=function(t){console.log(n(t))}},4990:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.loadCRN=void 0;var r=n(9928),i=n(2075),o=n(3631),s=n(5486),a=n(1662),u=Error,c=new i.TaskProcessor("transcodeCRNToDXT",Number.POSITIVE_INFINITY);e.loadCRN=function(t){if(!(0,s.defined)(t))throw new u("resourceOrUrlOrBuffer is required.");var e;if(e=t instanceof ArrayBuffer||ArrayBuffer.isView(t)?o.when.resolve(t):(0,a.fetchArrayBuffer)(t),(0,s.defined)(e))return e.then((function(t){if((0,s.defined)(t)){var e=[];return t instanceof ArrayBuffer?e.push(t):(0===t.byteOffset&&t.byteLength===t.buffer.byteLength||(t=t.slice(0,t.length)),e.push(t.buffer)),c.scheduleTask(t,e)}})).then((function(t){return t||console.error("compressedTextureBuffer is undefined!"),r.CompressedTextureBuffer.clone(t)}))}},5010:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}},a=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.PointerClick=void 0;var u=n(7372),c=n(7372),l=n(7372),h=n(8106),p=n(5819),f=n(9597),d=n(2299),g=function(t){function e(){var e=t.call(this)||this;e._clickEvent=e.disposeVar(new c.Event),e._dbclickEvent=e.disposeVar(new c.Event),e._pointerdownEvent=e.disposeVar(new c.Event),e._pointerupEvent=e.disposeVar(new c.Event),e._pointermoveEvent=e.disposeVar(new c.Event),e._pointeroutEvent=e.disposeVar(new c.Event),e.dbClickDelayTime=300,e.nativeClickDelayTime=500,e.clickMovementTolerantPixelSize=3,e.debugging=!1,e._enabled=e.disposeVar((0,l.react)(!0));var n=e.disposeVar((0,p.createProcessingFromAsyncFunc)((function(t){return o(e,void 0,void 0,(function(){var e,n,r=this;return s(this,(function(i){switch(i.label){case 0:e=function(){var e,i,o;return s(this,(function(s){switch(s.label){case 0:return[4,(0,h.step)(t,(function(t){return new Promise((function(e,n){t.disposer.dispose(n),t.disposer.dispose(f.DomElementEvent.on(r._pointerdownEvent,e))}))}))];case 1:return e=s.sent(),i=(0,d.getDomEventCurrentTargetPos)(e),n.debugging&&console.log("鼠标按下 ".concat(i.toString())),[4,(0,h.step)(t,(function(t){return new Promise((function(e,n){t.disposer.dispose(n);var o=setTimeout((function(){return e(!0)}),r.nativeClickDelayTime);t.disposer.dispose((function(){return clearTimeout(o)})),t.disposer.dispose(f.DomElementEvent.on(r._pointermoveEvent,(function(t){var n=a((0,d.getDomEventCurrentTargetPos)(t),2),r=n[0],o=n[1],s=a(i,2),u=s[0],c=s[1];(Math.abs(r-u)>3||Math.abs(o-c)>3)&&e(!1)}))),t.disposer.dispose(f.DomElementEvent.on(r._pointeroutEvent,(function(){return e(!1)}))),t.disposer.dispose(f.DomElementEvent.on(r._pointerupEvent,(function(){return e(!0)})))}))}))];case 2:return s.sent()?[4,(0,h.step)(t,(function(t){return new Promise((function(e,n){t.disposer.dispose(n);var o=setTimeout((function(){return e("timeout")}),r.dbClickDelayTime);t.disposer.dispose((function(){return clearTimeout(o)})),t.disposer.dispose(f.DomElementEvent.on(r._pointermoveEvent,(function(t){var n=a((0,d.getDomEventCurrentTargetPos)(t),2),r=n[0],o=n[1],s=a(i,2),u=s[0],c=s[1];(Math.abs(r-u)>3||Math.abs(o-c)>3)&&e("moved")}))),t.disposer.dispose(f.DomElementEvent.on(r._pointerdownEvent,e)),t.disposer.dispose(f.DomElementEvent.on(r._pointeroutEvent,(function(){return e("pointouted")}))),t.disposer.dispose(f.DomElementEvent.on(r._pointerupEvent,(function(){return e("pointuped")})))}))}))]:(n.debugging&&console.log("取消1"),[2,"continue"]);case 3:return"string"==typeof(o=s.sent())?(n.debugging&&console.log("触发单击事件!取消双击监听!error: ".concat(o)),n._clickEvent.emit(e),[2,"continue"]):[4,(0,h.step)(t,(function(t){return new Promise((function(e,n){t.disposer.dispose(n);var o=setTimeout((function(){return e(!1)}),r.nativeClickDelayTime);t.disposer.dispose((function(){return clearTimeout(o)})),t.disposer.dispose(f.DomElementEvent.on(r._pointermoveEvent,(function(t){var n=a((0,d.getDomEventCurrentTargetPos)(t),2),r=n[0],o=n[1],s=a(i,2),u=s[0],c=s[1];(Math.abs(r-u)>3||Math.abs(o-c)>3)&&e(!1)}))),t.disposer.dispose(f.DomElementEvent.on(r._pointeroutEvent,(function(){return e(!1)}))),t.disposer.dispose(f.DomElementEvent.on(r._pointerupEvent,(function(){return e(!0)})))}))}))];case 4:return s.sent()?(n.debugging&&console.log("触发双击事件!"),n._dbclickEvent.emit(o),[2]):(n.debugging&&console.log("取消2"),[2,"continue"])}}))},n=this,i.label=1;case 1:return[5,e()];case 2:i.sent(),i.label=3;case 3:return[3,1];case 4:return[2]}}))}))}))),r=function(t){t?n.restart():n.isRunning&&n.cancel()};return r(e.enabled),e.dispose(e.enabledChanged.disposableOn(r)),e}return i(e,t),Object.defineProperty(e.prototype,"clickEvent",{get:function(){return this._clickEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dbclickEvent",{get:function(){return this._dbclickEvent},enumerable:!1,configurable:!0}),e.prototype.pointerDown=function(t){this._pointerdownEvent.emit(t)},e.prototype.pointerUp=function(t){this._pointerupEvent.emit(t)},e.prototype.pointerMove=function(t){this._pointermoveEvent.emit(t)},e.prototype.pointerOut=function(t){this._pointeroutEvent.emit(t)},Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled.value},set:function(t){this._enabled.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enabledChanged",{get:function(){return this._enabled.changed},enumerable:!1,configurable:!0}),e}(u.Destroyable);e.PointerClick=g},5015:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBase64UriData=void 0;var n=/^data:(.*?)(;base64)?,(.*)$/;function r(t,e){var n=decodeURIComponent(e);return t?atob(n):n}function i(t,e){for(var n=r(t,e),i=new ArrayBuffer(n.length),o=new Uint8Array(i),s=0;s<n.length;s++)o[s]=n.charCodeAt(s);return i}function o(t,e){void 0===e&&(e="text");var n=t[1],o=!!t[2],s=t[3];switch(e){case"text":return[r(o,s),n];case"arraybuffer":return[i(o,s),n];case"blob":var a=i(o,s);return[new Blob([a],{type:n}),n];case"document":return[(new DOMParser).parseFromString(r(o,s),n),n];case"json":return[JSON.parse(r(o,s)),n];default:throw new Error("Unhandled responseType: "+e)}}e.getBase64UriData=function(t,e){void 0===e&&(e="text");var r=n.exec(t);if(null!==r){if("document"===e)return o(r,e);if("blob"===e)return o(r,e);if("arraybuffer"===e)return o(r,e);if("text"===e)return o(r,e);if("json"===e)return o(r,e);throw new Error("responseType error!")}}},5210:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.HlsProcessing=e.HlsJsLoading=void 0;var a=n(1662),u=n(8106),c=n(2220),l=n(5819),h=function(t){function e(){var n=t.call(this)||this;return n._loading=!1,n._loadedEvent=n.disposeVar(new a.Event),n._loaded=!1,n._loadedPromise=new Promise((function(t){n._loadedPromiseResolve=t})),n._processing=n.disposeVar((0,l.createProcessingFromAsyncFunc)((function(t){return o(n,void 0,void 0,(function(){var n;return s(this,(function(r){switch(r.label){case 0:return this._loading=!0,window.Hls?(console.info("可能系统已经加载hlsjs,此处不再加载!"),[3,3]):[3,1];case 1:return n=c.SceneObject.context.getStrFromEnv(e.path),[4,t.promise((0,a.loadJs)(n))];case 2:r.sent(),r.label=3;case 3:return this._loading=!1,this._loaded=!0,this._loadedEvent.emit(),this._loadedPromiseResolve(),[2]}}))}))}))),n._processingStart=n._processing.start(),n}return i(e,t),Object.defineProperty(e.prototype,"loading",{get:function(){return this._loading},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loadedEvent",{get:function(){return this._loadedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loaded",{get:function(){return this._loaded},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loadedPromise",{get:function(){return this._loadedPromise},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),e.instance=function(){return e._instance=e._instance||new e,e._instance},e.path="${xr-utils-script-dir}/xr-static/xr-utils/hlsjs/1.4.12/hls.min.js",e}(a.Destroyable);e.HlsJsLoading=h;var p=function(t){function e(e,n){var r=t.call(this)||this;r._complexImage=e,r._videoSrc=n;var i,o=document.createElement("video");return o.src=r._videoSrc,o.style.position="absolute",o.style.top="0px",o.style.left="0px",o.style.zIndex="-100",o.style.visibility="hidden",(i=function(){o.crossOrigin=r._complexImage.crossOrigin})(),r.dispose(r._complexImage.crossOriginChanged.disposableOn(i)),(i=function(){o.autoplay=r._complexImage.autoplay})(),r.dispose(r._complexImage.autoplayChanged.disposableOn(i)),(i=function(){o.loop=r._complexImage.loop})(),r.dispose(r._complexImage.loopChanged.disposableOn(i)),o.muted=!0,document.body.appendChild(o),r._element=o,r.dispose((function(){return document.body.removeChild(o)})),r}return i(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),e}(a.Destroyable),f=function(t){function e(e,n){var r=t.call(this)||this;return r._complexImage=e,r._videoSrc=n,r._videoDom=r.disposeVar(new p(r._complexImage,"")),r._processing=r.disposeVar((0,l.createProcessingFromAsyncFunc)((function(t){return o(r,void 0,void 0,(function(){var e,n,r,i,o;return s(this,(function(s){switch(s.label){case 0:return e=this.videoSrc,n=h.instance(),[4,t.promise(n.loadedPromise)];case 1:return s.sent(),r=window.Hls,i=new r,o=this.element,[4,(0,u.step)(t,(function(){return new Promise((function(t,n){o.xbsjHLS=i,i.attachMedia(o),i.on(r.Events.MEDIA_ATTACHED,(function(){i.loadSource(e),i.on(r.Events.MANIFEST_PARSED,(function(e,n){o.play(),t()}))})),i.on(r.Events.ERROR,(function(t,e){e.type;var r=e.details;e.fatal&&(i.destroy(),n(r))}))}))}))];case 2:return s.sent(),[2]}}))}))}))),r._processingStartup=r._processing.start(),r}return i(e,t),Object.defineProperty(e.prototype,"videoSrc",{get:function(){return this._videoSrc},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.videoDom.element},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),e}(a.Destroyable),d=function(t){function e(e,n){var r=t.call(this)||this;return r._complexImage=e,r._imageUri=n,r._videoDom=r.disposeVar(new f(r._complexImage,r._imageUri)),r._update=r.disposeVar((0,u.createAnimateFrameWithStartValues)((function(){return r.update()}))),r._updateStart=r._update.start(),r}return i(e,t),Object.defineProperty(e.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"videoElement",{get:function(){return this._videoDom.element},enumerable:!1,configurable:!0}),e.prototype.update=function(){if(!(this.videoElement.readyState<2)){var t=this._complexImage,e=this.videoElement,n=e.videoWidth,r=e.videoHeight;t.size=[n,r],t.pixelFormat="RGBA",t.copyTexture({source:this.videoElement})}},e}(a.Destroyable);e.HlsProcessing=d},5236:function(t,e){"use strict";var n=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},r=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.fetchJson=void 0,e.fetchJson=function(t,e){return void 0===e&&(e=fetch),n(this,void 0,void 0,(function(){var n;return r(this,(function(r){switch(r.label){case 0:return[4,e(t)];case 1:return(n=r.sent()).ok?[4,n.json()]:[2,void 0];case 2:return[2,r.sent()]}}))}))}},5252:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CanvasPoi=void 0;var o=n(7372),s=function(t){function e(e,n,r){void 0===n&&(n=[0,0]),void 0===r&&(r=0);var i=t.call(this,e)||this;return i._winPos=n,i._depth=r,i.dispose(i.winPosAndDepthChanged.disposableOn((function(){i.needRedraw(),i.needPickRedraw()}))),i}return i(e,t),Object.defineProperty(e.prototype,"winPos",{get:function(){return this._winPos},set:function(t){this._winPos[0]===t[0]&&this._winPos[1]===t[1]||(this._winPos[0]=t[0],this._winPos[1]=t[1],this._winPosAndDepthChanged&&this._winPosAndDepthChanged.emit(this._winPos,this._depth))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"depth",{get:function(){return this._depth},set:function(t){this._depth!==t&&(this._depth=t,this._winPosAndDepthChanged&&this._winPosAndDepthChanged.emit(this._winPos,this._depth))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"winPosAndDepthChanged",{get:function(){return this._winPosAndDepthChanged||(this._winPosAndDepthChanged=new o.Event),this._winPosAndDepthChanged},enumerable:!1,configurable:!0}),e}(n(2277).CanvasPrimitive);e.CanvasPoi=s},5260:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.CanvasPointPoi=void 0;var s=n(8106),a=n(7372),u=n(5252),c=n(4499),l=function(t){function e(e){var n=t.call(this,e)||this;n._width=16,n._text="",n._fillStyle="#0F0",n._scale=1,n.dispose(n.scaleChanged.disposableOn((function(t){n.needRedraw(),n.needPickRedraw()})));var r=n.disposeVar(new s.Transition(100)),i=n.disposeVar(new s.Transition(100)),o=function(){n._clickEvent&&!n._clickEvent.empty&&(n.scale=(1+.1*i.current)*(1+.2*r.current))};return n.dispose(i.currentChanged.disposableOn(o)),n.dispose(r.currentChanged.disposableOn(o)),n.dispose(n.activedChanged.disposableOn((function(t){i.target=t?1:0,n.needRedraw()}))),n.dispose(n.hoveredChanged.disposableOn((function(t){r.target=t?1:0,n.needRedraw()}))),n.dispose(n.selectedChanged.disposableOn((function(t){n.needRedraw()}))),n}return i(e,t),Object.defineProperty(e.prototype,"scale",{get:function(){return this._scale},set:function(t){this._scale!==t&&(this._scale=t,this._scaleChanged&&this._scaleChanged.emit(t,this))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleChanged",{get:function(){return this._scaleChanged||(this._scaleChanged=new a.Event),this._scaleChanged},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){this._width!==t&&(this._width=t,this.needRedraw(),this.needPickRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(t){this._text!==t&&(this._text=t,this.needRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fillStyle",{get:function(){return this._fillStyle},set:function(t){this._fillStyle!==t&&(this._fillStyle=t,this.needRedraw())},enumerable:!1,configurable:!0}),e.prototype.draw=function(t){if(this._show){var e=o(this._winPos,2),n=e[0],r=e[1],i=t.globalAlpha;t.globalAlpha=this.opacity;var s=this._width*this._scale;this.selected&&(0,c.drawPoint)(t,n,r+3,s+3,"#F00"),this.actived&&this._clickEvent&&!this._clickEvent.empty&&(0,c.drawPoint)(t,n,r+5,s+5,"#FFF"),this.hovered?(0,c.drawPoint)(t,n,r+3,s+3,"#000A"):(0,c.drawPoint)(t,n,r+1,s+1,"#000A"),(0,c.drawPoint)(t,n,r,s,this._fillStyle);var a=this._scale>1.2?"bold 14px Arial":"bold 10px Arial";(0,c.drawText)(t,n,r-s,this._text,a,"#000"),t.globalAlpha=i}},e.prototype.drawForPick=function(t,e){if(this._show){var n=o(this._winPos,2),r=n[0],i=n[1],s=this._width*this._scale,a=e("default");(0,c.drawPoint)(t,r,i,s,a)}},e}(u.CanvasPoi);e.CanvasPointPoi=l},5281:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.loadGifFrames=void 0;var o=n(9704);e.loadGifFrames=function(t){return r(this,void 0,void 0,(function(){var e,n,r;return i(this,(function(i){switch(i.label){case 0:return[4,fetch(t)];case 1:return[4,i.sent().arrayBuffer()];case 2:return e=i.sent(),n=(0,o.parseGIF)(e),r=(0,o.decompressFrames)(n,!0),[2,{gif:n,gifFrames:r,arrayBuffer:e}]}}))}))}},5486:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defined=void 0,e.defined=function(t){return null!=t}},5505:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.every=void 0;var r=n(6301);e.every=function(t,e){return!(0,r.forEachWithBreak)(t,(function(t,n){return!e(t,n)}))}},5544:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.IntervalDeprecated=void 0;var o=n(3207),s=function(t){function e(e,n){void 0===n&&(n=!0);var r=t.call(this,(function(t){var e=t.progressFunc;return t.completeFunc,t.errorFunc,r._intervalFunc=e,r._intervalID&&console.error("this._intervalID should be undefined!"),r.leading&&e(),r._intervalID=setInterval(e,r.intervalTime),function(){if(!r._intervalID)throw console.error("this._intervalID should not be undefined!"),new Error("this._intervalID should not be undefined!");clearInterval(r._intervalID),r._intervalID=void 0}}))||this;return r.intervalTime=e,r.leading=n,r.dispose(r.intervalTimeChanged.disposableOn((function(){r._intervalID&&r._intervalFunc&&(clearInterval(r._intervalID),r._intervalID=setInterval(r._intervalFunc,r.intervalTime))}))),r}return i(e,t),e}(n(6891).ProcessingDeprecated);e.IntervalDeprecated=s,(0,o.defineReactiveProp)(s,"leading",!0),(0,o.defineReactiveProp)(s,"intervalTime",500)},5582:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}},o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},s=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.step=void 0;var a=n(5819),u=n(9374);e.step=function(t,e){for(var n=this,c=[],l=2;l<arguments.length;l++)c[l-2]=arguments[l];return t.promise((0,a.pairToPromise)(u.getPromiseFromProcessing.apply(void 0,s([(0,a.createProcessingFromAsyncFunc)((function(a){for(var u=[],c=1;c<arguments.length;c++)u[c-1]=arguments[c];return r(n,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return t.disposer.dispose((function(){a.isDestroyed()||a.cancel()})),[4,e.apply(void 0,s([a],o(u),!1))];case 1:return[2,n.sent()]}}))}))}))],o(c),!1))))}},5590:function(t,e,n){"use strict";this&&this.__read,this&&this.__spreadArray,Object.defineProperty(e,"__esModule",{value:!0}),e.Kriging=void 0;var r=n(1662);function i(t,e){return t.resize(8*e),new Float64Array(t.arrayBuffer,0,e)}function o(t,e,n){var r=n;if(r.length!==e*e)throw new Error("Z.length !== n * n");r.fill(0);for(var i=0;i<e;i++)r[i*e+i]=t;return r}function s(t,e,n,r,i){var o,s,a=i;if(a.length!==n*r)throw new Error("Z.length !== n * m");for(o=0;o<n;o++)for(s=0;s<r;s++)a[o*r+s]=t[o*r+s]+e[o*r+s];return a}function a(t,e,n,r,i,o){var s,a,u,c=o;if(c.length!==n*i)throw new Error("Z.length !== n * p");for(s=0;s<n;s++)for(a=0;a<i;a++)for(c[s*i+a]=0,u=0;u<r;u++)c[s*i+a]+=t[s*r+u]*e[u*i+a];return c}var u=new r.ScalableBuffer;function c(t,e){var n,r,o,s=i(u,e);for(n=0;n<e;n++)s[n]=t[n*e+n];for(n=0;n<e;n++){for(r=0;r<n;r++)s[n]-=t[n*e+r]*t[n*e+r];if(s[n]<=0)return!1;for(s[n]=Math.sqrt(s[n]),r=n+1;r<e;r++){for(o=0;o<n;o++)t[r*e+n]-=t[r*e+o]*t[n*e+o];t[r*e+n]/=s[n]}}for(n=0;n<e;n++)t[n*e+n]=s[n];return!0}function l(t,e){var n,r,i,o;for(n=0;n<e;n++)for(t[n*e+n]=1/t[n*e+n],r=n+1;r<e;r++){for(o=0,i=n;i<r;i++)o-=t[r*e+i]*t[i*e+n];t[r*e+n]=o/t[r*e+r]}for(n=0;n<e;n++)for(r=n+1;r<e;r++)t[n*e+r]=0;for(n=0;n<e;n++){for(t[n*e+n]*=t[n*e+n],i=n+1;i<e;i++)t[n*e+n]+=t[i*e+n]*t[i*e+n];for(r=n+1;r<e;r++)for(i=r;i<e;i++)t[n*e+r]+=t[i*e+n]*t[i*e+r]}for(n=0;n<e;n++)for(r=0;r<n;r++)t[n*e+r]=t[r*e+n]}var h=new r.ScalableBuffer,p=new r.ScalableBuffer,f=new r.ScalableBuffer,d=new r.ScalableBuffer;function g(t,e){var n,r,o,s,a,u,c,l,g,y=e,v=i(h,e*e),m=i(p,e),_=i(f,e),b=i(d,e),w=0,E=0;for(n=0;n<e;n++)for(r=0;r<e;r++)v[n*e+r]=n==r?1:0;for(r=0;r<e;r++)b[r]=0;for(n=0;n<e;n++){for(u=0,r=0;r<e;r++)if(1!=b[r])for(o=0;o<e;o++)0==b[o]&&Math.abs(t[r*e+o])>=u&&(u=Math.abs(t[r*e+o]),E=r,w=o);if(++b[w],E!=w){for(s=0;s<e;s++)g=t[E*e+s],t[E*e+s]=t[w*e+s],t[w*e+s]=g;for(s=0;s<y;s++)g=v[E*e+s],v[E*e+s]=v[w*e+s],v[w*e+s]=g}if(_[n]=E,m[n]=w,0==t[w*e+w])return!1;for(l=1/t[w*e+w],t[w*e+w]=1,s=0;s<e;s++)t[w*e+s]*=l;for(s=0;s<y;s++)v[w*e+s]*=l;for(a=0;a<e;a++)if(a!=w){for(c=t[a*e+w],t[a*e+w]=0,s=0;s<e;s++)t[a*e+s]-=t[w*e+s]*c;for(s=0;s<y;s++)v[a*e+s]-=v[w*e+s]*c}}for(s=e-1;s>=0;s--)if(_[s]!=m[s])for(o=0;o<e;o++)g=t[o*e+_[s]],t[o*e+_[s]]=t[o*e+m[s]],t[o*e+m[s]]=g;return!0}function y(t,e,n,r,i){return e+(r-e)/n*(1-Math.exp(-1/i*Math.pow(t/n,2)))}function v(t,e,n,r,i){return e+(r-e)/n*(1-Math.exp(-1/i*(t/n)))}function m(t,e,n,r,i){return t>n?e+(r-e)/n:e+(r-e)/n*(t/n*1.5-.5*Math.pow(t/n,3))}function _(t,e){var n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(n*n+r*r+i*i)}!function(t){var e=new r.ScalableBuffer,n=new r.ScalableBuffer,u=new r.ScalableBuffer,h=new r.ScalableBuffer,p=new r.ScalableBuffer,f=new r.ScalableBuffer,d=new r.ScalableBuffer,b=new r.ScalableBuffer,w=new r.ScalableBuffer,E=new r.ScalableBuffer,x=new r.ScalableBuffer,P=new r.ScalableBuffer,S=new r.ScalableBuffer,O=[];t.train=function(t,r,C,M,I,T,j,N){var D;switch(I){case"gaussian":D=y;break;case"exponential":D=v;break;case"spherical":D=m}var A,R,F,L,k={t,x:r,y:C,z:M,nugget:0,range:0,sill:0,A:1/3,n:0,model:D},V=t.length,B=O;for(B.length=(V*V-V)/2,A=0,F=0;A<V;A++)for(R=0;R<A;R++,F++)B[F]=B[F]||[0,0],B[F][0]=_([r[A],C[A],M[A]],[r[R],C[R],M[R]]),B[F][1]=Math.abs(t[A]-t[R]);B.sort((function(t,e){return t[0]-e[0]})),k.range=B[(V*V-V)/2-1][0];var z=(V*V-V)/2>30?30:(V*V-V)/2,U=k.range/z,G=i(P,z);G.fill(0);var W=i(S,z);if(W.fill(0),z<30)for(L=0;L<z;L++)G[L]=B[L][0],W[L]=B[L][1];else{for(A=0,R=0,F=0,L=0;A<z&&R<(V*V-V)/2;A++,F=0){for(;B[R][0]<=(A+1)*U&&(G[L]+=B[R][0],W[L]+=B[R][1],F++,!(++R>=(V*V-V)/2)););F>0&&(G[L]/=F,W[L]/=F,L++)}if(L<2)return k}V=L,k.range=G[V-1]-G[0];var q=i(e,2*V);q.fill(1);var X=i(n,V),H=k.A;for(A=0;A<V;A++){switch(I){case"gaussian":q[2*A+1]=1-Math.exp(-1/H*Math.pow(G[A]/k.range,2));break;case"exponential":q[2*A+1]=1-Math.exp(-1/H*G[A]/k.range);break;case"spherical":q[2*A+1]=G[A]/k.range*1.5-.5*Math.pow(G[A]/k.range,3)}X[A]=W[A]}var Y=function(t,e,n,r){var i,o,s=r;if(s.length!==2*e)throw new Error("Z.length !== m * n");for(i=0;i<e;i++)for(o=0;o<2;o++)s[o*e+i]=t[2*i+o];return s}(q,V,0,i(u,2*V)),J=a(Y,q,2,V,2,i(h,4)),$=(J=s(J,o(1/j,2,i(d,4)),2,2,i(p,4))).slice(0);c(J,2)?l(J,2):(g($,2),J=$);var Z=a(a(J,Y,2,2,V,i(w,2*V)),X,2,V,1,i(b,2));k.nugget=Z[0],k.sill=Z[1]*k.range+k.nugget,k.n=r.length,V=r.length;var Q=i(f,V*V);for(A=0;A<V;A++){for(R=0;R<A;R++)Q[A*V+R]=k.model(Math.pow(Math.pow(r[A]-r[R],2)+Math.pow(C[A]-C[R],2),.5),k.nugget,k.range,k.sill,k.A),Q[R*V+A]=Q[A*V+R];Q[A*V+A]=k.model(0,k.nugget,k.range,k.sill,k.A)}var K=s(Q,o(T,V,i(x,V*V)),V,V,i(E,V*V)),tt=K.slice(0);if(c(K,V)?l(K,V):(g(tt,V),K=tt),N.length!==V)throw new Error("mResult.length !== n");return k.M=a(K,t,V,V,1,N),k};var C=new r.ScalableBuffer,M=new r.ScalableBuffer;t.predict=function(t,e,n,r){var o,s=i(C,r.n);for(o=0;o<r.n;o++){var u=_([t,e,n],[r.x[o],r.y[o],r.z[o]]);s[o]=r.model(u,r.nugget,r.range,r.sill,r.A)}if(!r.M)throw new Error("!variogram.M");return a(s,r.M,1,r.n,1,i(M,1))[0]}}(e.Kriging||(e.Kriging={}))},5600:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getExtProp=e.setExtProp=void 0;var n=new WeakMap;e.setExtProp=function(t,e,r){n.has(t)||n.set(t,{}),n.get(t)[e]=r},e.getExtProp=function(t,e){if(n.has(t))return n.get(t)[e]}},5675:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.createProcessing=void 0;var o=n(6891),s=n(8196);e.createProcessing=function(t){return new o.ProcessingDeprecated((function(e){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var a=new s.ProcessingStarter(e);return t.apply(void 0,i([a],r(n),!1)).then(a.complete.bind(a)).catch(a.error.bind(a)),a.cancel.bind(a)}))}},5726:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(5675),e),i(n(6891),e),i(n(8196),e),i(n(8055),e),i(n(8995),e),i(n(2601),e)},5745:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scalableBufferPool=e.ScalableBuffer=void 0;var r=n(3009),i=n(1085);n(3428);var o=function(){function t(){this._arrayBuffer=new ArrayBuffer(1024)}return Object.defineProperty(t.prototype,"byteLength",{get:function(){return this._arrayBuffer.byteLength},enumerable:!1,configurable:!0}),t.prototype.resize=function(t){if(this._arrayBuffer.byteLength<t){var e=(0,r.nextPow2)(t);this._arrayBuffer=ArrayBuffer.transfer(this._arrayBuffer,e)}},Object.defineProperty(t.prototype,"arrayBuffer",{get:function(){return this._arrayBuffer},enumerable:!1,configurable:!0}),t}();e.ScalableBuffer=o,e.scalableBufferPool=new i.ObjPool((function(){return new o}))},5774:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.SmartListenerPipe=void 0;var o=n(4471),s=n(2452);function a(t,e){return(e=null!=e?e:new s.SmartListenerHandler)._reset(t,t._cid),e}var u=function(){function t(){}return Object.defineProperty(t.prototype,"_pipe",{get:function(){var t;return this.__pipe=null!==(t=this.__pipe)&&void 0!==t?t:new o.ListenerPipe,this.__pipe},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return!this.__pipe||this._pipe.empty},enumerable:!1,configurable:!0}),t.prototype.do=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._pipe).do.apply(t,i([],r(e),!1))},t.prototype.isHandlerValid=function(t){return!!t.valid&&this._pipe.isHandlerValid(t._listenerHandler)},t.prototype.moveAfter=function(t,e){if(!t.valid||!e.valid)throw new Error("handler or nextHander is not valid!");return this._pipe.moveAfter(t._listenerHandler,e._listenerHandler)},t.prototype.moveBefore=function(t,e){if(!t.valid||!e.valid)throw new Error("handler or nextHander is not valid!");return this._pipe.moveAfter(t._listenerHandler,e._listenerHandler)},t.prototype.insertBefore=function(t,e,n,r,i){if(void 0===r&&(r=!1),!t.valid)throw new Error("handler is not valid!");return a(this._pipe.insertBefore(t._listenerHandler,e,n,r),i)},t.prototype.insertAfter=function(t,e,n,r,i){if(void 0===r&&(r=!1),!t.valid)throw new Error("handler is not valid!");return a(this._pipe.insertAfter(t._listenerHandler,e,n,r),i)},t.prototype.remove=function(t){if(!t.valid)throw new Error("handler is not valid!");return this._pipe.remove(t._listenerHandler)},t.prototype.removeAll=function(){return this._pipe.removeAll()},t.prototype.push=function(t,e,n,r){return void 0===n&&(n=!1),a(this._pipe.push(t,e,n),r)},t.prototype.pop=function(){return this._pipe.pop()},t.prototype.shift=function(){return this._pipe.shift()},t.prototype.unshift=function(t,e,n,r){return void 0===n&&(n=!1),a(this._pipe.unshift(t,e,n),r)},t.prototype.getTail=function(t){var e=this._pipe.tail;return e?a(e,t):void 0},t.prototype.getHead=function(t){var e=this._pipe.head;return e?a(e,t):void 0},t}();e.SmartListenerPipe=u},5785:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},s=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.createNextAnimateFrameWeakEvent=e.NextAnimateFrameWeakEvent=e.createNextAnimateFrameEvent=e.NextAnimateFrameEvent=e.createNextMicroTaskWeakEvent=e.NextMicroTaskWeakEvent=e.createNextMicroTaskEvent=e.NextMicroTaskEvent=void 0;var a=n(4899),u=n(6558),c=function(t){function e(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=t.call(this)||this;return o._nextFunc=e,o.dispose((function(){o._cancellFunc&&(o._cancellFunc(),o._cancellFunc=void 0)})),r.forEach((function(t){return o.dispose(t[n?"dwon":"don"]((function(){o.next()})))})),o}return i(e,t),e.prototype.next=function(){var t=this;this._cancellFunc||(this._cancellFunc=this._nextFunc((function(){return t._cancellFunc=void 0,t.emit()})))},e.prototype.flush=function(){this._cancellFunc&&(this._cancellFunc(),this._cancellFunc=void 0,this.emit())},e}(a.Event),l=function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.apply(this,s([u.nextMicroTask,!1],o(e),!1))||this}return i(e,t),e}(c);e.NextMicroTaskEvent=l,e.createNextMicroTaskEvent=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new(l.bind.apply(l,s([void 0],o(t),!1)))};var h=function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.apply(this,s([u.nextMicroTask,!0],o(e),!1))||this}return i(e,t),e}(c);e.NextMicroTaskWeakEvent=h,e.createNextMicroTaskWeakEvent=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new(l.bind.apply(l,s([void 0],o(t),!1)))};var p=function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.apply(this,s([u.nextAnimateFrame,!1],o(e),!1))||this}return i(e,t),e}(c);e.NextAnimateFrameEvent=p,e.createNextAnimateFrameEvent=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new(p.bind.apply(p,s([void 0],o(t),!1)))};var f=function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.apply(this,s([u.nextAnimateFrame,!0],o(e),!1))||this}return i(e,t),e}(c);e.NextAnimateFrameWeakEvent=f,e.createNextAnimateFrameWeakEvent=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new(f.bind.apply(f,s([void 0],o(t),!1)))}},5819:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(9651),e),i(n(921),e),i(n(1148),e),i(n(1101),e),i(n(4206),e)},5873:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Ray=void 0;var r,i=n(9898);(r=e.Ray||(e.Ray={})).getOrigin=function(t,e){return i.Vector.set(e,t[0],t[1],t[2])},r.getDirection=function(t,e){return i.Vector.set(e,t[3],t[4],t[5])}},5925:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.GifProcessing=void 0;var o=n(7029),s=n(7372),a=n(8106),u=function(t){function e(e,n){var r=t.call(this)||this;return r._complexImage=e,r._imageUri=n,r._gif=r.disposeVar(new o.Gif),r._update=r.disposeVar((0,a.createAnimateFrameWithStartValues)((function(){return r.update()}))),r._updateStart=r._update.start(),r._gif.url=r._imageUri,r}return i(e,t),Object.defineProperty(e.prototype,"gif",{get:function(){return this._gif},enumerable:!1,configurable:!0}),e.prototype.update=function(){var t=this,e=this._gif.player;if(e.gifFrames){var n,r=this._complexImage,i=e.gifCanvas,o=i.width,s=i.height;r.size=[o,s],r.pixelFormat="RGBA",r.copyTexture({source:e.gifCanvas}),(n=function(){e.autoPlayOnLoad=t._complexImage.autoplay})(),this.dispose(this._complexImage.autoplayChanged.disposableOn(n)),(n=function(){e.loop=t._complexImage.loop})(),this.dispose(this._complexImage.loopChanged.disposableOn(n))}},e}(s.Destroyable);e.GifProcessing=u},5985:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Vector3=void 0;var r,i=n(2731),o=n(9898);(r=e.Vector3||(e.Vector3={})).cross=function(t,e,n){var r=t[0],i=t[1],s=t[2],a=e[0],u=e[1],c=e[2],l=i*c-s*u,h=s*a-r*c,p=r*u-i*a;return o.Vector.set(n,l,h,p)},r.getOrthogonalityVector=function(t,e,n,i){if(!o.Vector.isNormalized(t))throw new Error("!Vector.isNormalized(constVector)");if(!(n=o.Vector.isNormalized(e)?o.Vector.clone(e,n):o.Vector.normalize(e,n)))throw new Error("vectorToFix is [0, 0, 0]!");return n=r.cross(t,n,n),o.Vector.normalize(n,n),i&&o.Vector.clone(n,i),r.cross(n,t,n),o.Vector.normalize(n,n)},r.UNIT_X=Object.freeze([1,0,0]),r.UNIT_Y=Object.freeze([0,1,0]),r.UNIT_Z=Object.freeze([0,0,1]),r.ZERO=Object.freeze([0,0,0]),r.ONE=Object.freeze([1,1,1]),r.SCRATCH0=(0,i.createNumbers)(3),r.SCRATCH1=(0,i.createNumbers)(3),r.SCRATCH2=(0,i.createNumbers)(3),r.SCRATCH3=(0,i.createNumbers)(3),r.SCRATCH4=(0,i.createNumbers)(3),r.SCRATCH5=(0,i.createNumbers)(3),r.SCRATCH6=(0,i.createNumbers)(3),r.SCRATCH7=(0,i.createNumbers)(3),r.SCRATCH8=(0,i.createNumbers)(3),r.SCRATCH9=(0,i.createNumbers)(3)},5986:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.extendClassProps=void 0;var o=n(3915);function s(t,e,n,i){var s=t;if(!s[e]){var a=i(),u=Object.fromEntries(Object.entries(a).filter((function(e){var i=r(e,2),s=i[0],a=i[1],u=s in Object.getPrototypeOf(n);if(u){var c=a instanceof o.ReactiveVariable?a.value:a;t[s]=c}return!u})).map((function(t){var e=r(t,2),n=e[0],i=e[1];return i instanceof o.ReactiveVariable?[n,i]:[n,Array.isArray(i)?(0,o.reactArrayWithUndefined)(i):(0,o.react)(i)]})));s[e]=u}return s[e]}e.extendClassProps=function(t,e){var n,o,a,u=Symbol("".concat(null===(a=null==t?void 0:t.constructor)||void 0===a?void 0:a.name,"-createDefaultProps"));t.constructor.__xbsj_dpSymbol=u,t.constructor.__xbsj_createDefaultProps=e;var c=function(n,r){var o;if(!Reflect.has(t,n)){var a=function(t){var e,n;if(!t[u]){for(var r=[],o=Object.getPrototypeOf(t);o;)r.push(o),o=Object.getPrototypeOf(o);r.reverse();try{for(var a=i(r),c=a.next();!c.done;c=a.next()){var l=c.value,h=l.constructor.__xbsj_dpSymbol;if(h){var p=l.constructor.__xbsj_createDefaultProps;p&&s(t,h,l,p)}}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}}};Object.defineProperties(t,((o={})[n]={get:function(){return a(this),s(this,u,t,e)[n].value},set:function(r){a(this);var i=s(this,u,t,e)[n];i||console.error("!propObj"),i.value=r}},o["".concat(n,"Changed")]={get:function(){return a(this),s(this,u,t,e)[n].changed}},o["".concat(n,"React")]={get:function(){return a(this),s(this,u,t,e)[n]}},o))}};try{for(var l=i(Object.entries(e())),h=l.next();!h.done;h=l.next()){var p=r(h.value,2),f=p[0];p[1],c(f)}}catch(t){n={error:t}}finally{try{h&&!h.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}}},6021:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e._continuousMultiply=e._multiplyByPoint=e._affineMultiplyByPoint=e._multiplyByPointAsVector=e._multiplyByVector=e._multiplyByScale=e._multiplyByUniformScale=e._multiplyByTranslation=e._multiplyByMatrix3=e._multiplyTransformation=e._multiply=void 0;var i=n(2731),o=n(9898);function s(t,e,n){var r=t[0],o=t[1],s=t[2],a=t[3],u=t[4],c=t[5],l=t[6],h=t[7],p=t[8],f=t[9],d=t[10],g=t[11],y=t[12],v=t[13],m=t[14],_=t[15],b=e[0],w=e[1],E=e[2],x=e[3],P=e[4],S=e[5],O=e[6],C=e[7],M=e[8],I=e[9],T=e[10],j=e[11],N=e[12],D=e[13],A=e[14],R=e[15],F=r*b+u*w+p*E+y*x,L=o*b+c*w+f*E+v*x,k=s*b+l*w+d*E+m*x,V=a*b+h*w+g*E+_*x,B=r*P+u*S+p*O+y*C,z=o*P+c*S+f*O+v*C,U=s*P+l*S+d*O+m*C,G=a*P+h*S+g*O+_*C,W=r*M+u*I+p*T+y*j,q=o*M+c*I+f*T+v*j,X=s*M+l*I+d*T+m*j,H=a*M+h*I+g*T+_*j,Y=r*N+u*D+p*A+y*R,J=o*N+c*D+f*A+v*R,$=s*N+l*D+d*A+m*R,Z=a*N+h*D+g*A+_*R;return(n=n||(0,i.createNumbers)(16))[0]=F,n[1]=L,n[2]=k,n[3]=V,n[4]=B,n[5]=z,n[6]=U,n[7]=G,n[8]=W,n[9]=q,n[10]=X,n[11]=H,n[12]=Y,n[13]=J,n[14]=$,n[15]=Z,n}e._multiply=s,e._multiplyTransformation=function(t,e,n){var r=t[0],o=t[1],s=t[2],a=t[4],u=t[5],c=t[6],l=t[8],h=t[9],p=t[10],f=t[12],d=t[13],g=t[14],y=e[0],v=e[1],m=e[2],_=e[4],b=e[5],w=e[6],E=e[8],x=e[9],P=e[10],S=e[12],O=e[13],C=e[14],M=r*y+a*v+l*m,I=o*y+u*v+h*m,T=s*y+c*v+p*m,j=r*_+a*b+l*w,N=o*_+u*b+h*w,D=s*_+c*b+p*w,A=r*E+a*x+l*P,R=o*E+u*x+h*P,F=s*E+c*x+p*P,L=r*S+a*O+l*C+f,k=o*S+u*O+h*C+d,V=s*S+c*O+p*C+g;return(n=n||(0,i.createNumbers)(16))[0]=M,n[1]=I,n[2]=T,n[3]=0,n[4]=j,n[5]=N,n[6]=D,n[7]=0,n[8]=A,n[9]=R,n[10]=F,n[11]=0,n[12]=L,n[13]=k,n[14]=V,n[15]=1,n},e._multiplyByMatrix3=function(t,e,n){var r=t[0],o=t[1],s=t[2],a=t[4],u=t[5],c=t[6],l=t[8],h=t[9],p=t[10],f=e[0],d=e[1],g=e[2],y=e[3],v=e[4],m=e[5],_=e[6],b=e[7],w=e[8],E=r*f+a*d+l*g,x=o*f+u*d+h*g,P=s*f+c*d+p*g,S=r*y+a*v+l*m,O=o*y+u*v+h*m,C=s*y+c*v+p*m,M=r*_+a*b+l*w,I=o*_+u*b+h*w,T=s*_+c*b+p*w;return(n=n||(0,i.createNumbers)(16))[0]=E,n[1]=x,n[2]=P,n[3]=0,n[4]=S,n[5]=O,n[6]=C,n[7]=0,n[8]=M,n[9]=I,n[10]=T,n[11]=0,n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=t[15],n},e._multiplyByTranslation=function(t,e,n){var r=e[0],o=e[1],s=e[2],a=r*t[0]+o*t[4]+s*t[8]+t[12],u=r*t[1]+o*t[5]+s*t[9]+t[13],c=r*t[2]+o*t[6]+s*t[10]+t[14];return(n=n||(0,i.createNumbers)(16))[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n[8]=t[8],n[9]=t[9],n[10]=t[10],n[11]=t[11],n[12]=a,n[13]=u,n[14]=c,n[15]=t[15],n};var a=(0,i.createNumbers)(3);function u(t,e,n){if(1!==t[15])throw new Error("_multiplyByScale error: it should be affine matrix!");var r=e[0],s=e[1],a=e[2];return n=n||(0,i.createNumbers)(16),1===r&&1===s&&1===a?t!==n?o.Vector.clone(t,n):t:(n[0]=r*t[0],n[1]=r*t[1],n[2]=r*t[2],n[3]=0,n[4]=s*t[4],n[5]=s*t[5],n[6]=s*t[6],n[7]=0,n[8]=a*t[8],n[9]=a*t[9],n[10]=a*t[10],n[11]=0,n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=1,n)}function c(t,e,n){var r=e[0],o=e[1],s=e[2],a=e[3],u=t[0]*r+t[4]*o+t[8]*s+t[12]*a,c=t[1]*r+t[5]*o+t[9]*s+t[13]*a,l=t[2]*r+t[6]*o+t[10]*s+t[14]*a,h=t[3]*r+t[7]*o+t[11]*s+t[15]*a;return(n=n||(0,i.createNumbers)(4))[0]=u,n[1]=c,n[2]=l,n[3]=h,n}e._multiplyByUniformScale=function(t,e,n){return a[0]=e,a[1]=e,a[2]=e,u(t,a,n)},e._multiplyByScale=u,e._multiplyByVector=c,e._multiplyByPointAsVector=function(t,e,n){var r=e[0],o=e[1],s=e[2],a=t[0]*r+t[4]*o+t[8]*s,u=t[1]*r+t[5]*o+t[9]*s,c=t[2]*r+t[6]*o+t[10]*s;return(n=n||(0,i.createNumbers)(3))[0]=a,n[1]=u,n[2]=c,n},e._affineMultiplyByPoint=function(t,e,n){if(1!==t[15])throw new Error("matrix[15] !== 1");var r=e[0],o=e[1],s=e[2],a=t[0]*r+t[4]*o+t[8]*s+t[12],u=t[1]*r+t[5]*o+t[9]*s+t[13],c=t[2]*r+t[6]*o+t[10]*s+t[14];return(n=n||(0,i.createNumbers)(3))[0]=a,n[1]=u,n[2]=c,n};var l=(0,i.createNumbers)(4);e._multiplyByPoint=function(t,e,n){o.Vector.set(l,e[0],e[1],e[2],1),c(t,l,l),n=n||(0,i.createNumbers)(3);var s=r(o.Vector.itr(l),4),a=s[0],u=s[1],h=s[2],p=s[3];return o.Vector.set(n,a/p,u/p,h/p),n},e._continuousMultiply=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n.length;t!==e&&o.Vector.clone(e,t);for(var a=0;a<i;++a)Array.isArray(n[a])&&"function"==typeof n[a][0]?(0,n[a][0])(t,n[a][1],t):16===n[a].length&&s(t,n[a],t);return t}},6138:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.reduce=void 0;var r=n(8144);e.reduce=function(t,e,n){for(var i=(0,r.getIterator)(t),o=n,s=0;;){var a=i.next(),u=a.done,c=a.value;if(u)break;o=e(o,c,s++)}return o}},6148:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},s=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.DebouncingWithStartValues=e.Debouncing=void 0;var a=n(1662),u=n(1148),c=function(t){function e(){var e=t.call(this,(function(t,n,r){var i=t.errorFunc;try{var s=o((0,a.debounce)(n,r),2),u=s[0],c=s[1];return e._doFunc=u,c}catch(t){return i(t),function(){}}}))||this;return e}return i(e,t),e.prototype.do=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._doFunc&&this._doFunc.apply(this,s([],o(t),!1))},e}(u.Processing);e.Debouncing=c;var l=function(t){function e(e,n){var r=t.call(this,(function(t){var i=t.errorFunc;try{var s=o((0,a.debounce)(e,n),2),u=s[0],c=s[1];return r._doFunc=u,c}catch(t){return i(t),function(){}}}))||this;return r}return i(e,t),e.prototype.do=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._doFunc&&this._doFunc.apply(this,s([],o(t),!1))},e}(u.Processing);e.DebouncingWithStartValues=l},6172:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.OrientedBoundingBox=void 0;var o=n(2731),s=n(9898),a=n(7215),u=n(312),c=n(4915);!function(t){function e(t,e){return e=e||(0,o.createNumbers)(3),s.Vector.set(e,t[0],t[1],t[2]),e}function n(t,e){e=e||(0,o.createNumbers)(9);var n=t;return s.Vector.set(e,n[3],n[4],n[5],n[6],n[7],n[8],n[9],n[10],n[11]),e}t.getCenter=e,t.getHalfAxes=n,t.setCenter=function(t,e){for(var n=0;n<3;++n)t[n]=e[n];return t},t.setHalfAxes=function(t,e){for(var n=0;n<9;++n)t[n+3]=e[n];return t};var l=(0,o.createNumbers)(3),h=(0,o.createNumbers)(9);t.getModelMatrix=function(t,r){var i=n(t,h),o=e(t,l);return s.Vector.set(r,i[0],i[1],i[2],0,i[3],i[4],i[5],0,i[6],i[7],i[8],0,o[0],o[1],o[2],1)};var p=(0,o.createNumbers)(3),f=(0,o.createNumbers)(3),d=(0,o.createNumbers)(9);t.intersectPlane=function(t,r){var i=e(t,p),o=a.Plane.getNormal(r,f),c=a.Plane.getDistance(r),l=n(t,d),h=o[0],g=o[1],y=o[2],v=Math.abs(h*l[0]+g*l[1]+y*l[2])+Math.abs(h*l[3]+g*l[4]+y*l[5])+Math.abs(h*l[6]+g*l[7]+y*l[8]),m=s.Vector.dot(o,i)+c;return m<=-v?u.Intersect.OUTSIDE:m>=v?u.Intersect.INSIDE:u.Intersect.INTERSECTING};var g=(0,o.createNumbers)(3);t.getBoundingSphere=function(t,e){e=e||(0,o.createNumbers)(4);var a=n(t,d),u=c.Matrix3.getScale(a,g),l=Math.max.apply(Math,i([],r(s.Vector.itr(u)),!1));return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=l,e}}(e.OrientedBoundingBox||(e.OrientedBoundingBox={}))},6270:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStops=void 0;var o=n(3281),s=n(7372),a=[0,0,0,0],u=function(){function t(){this._value=[],this._valueStr="[]",this.value=[{ratio:0,rgba:[0,0,1,1]},{ratio:.2,rgba:[0,1,0,1]},{ratio:.8,rgba:[1,1,0,1]},{ratio:1,rgba:[1,0,0,1]}]}return Object.defineProperty(t.prototype,"valueChanged",{get:function(){return this._valueChanged||(this._valueChanged=new s.Event),this._valueChanged},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return JSON.parse(JSON.stringify(this._value))},set:function(t){if(0!==t.length){var e;if(this._value.length===t.length){var n=i([],r(t),!1).sort((function(t,e){return t.ratio-e.ratio}));if(e=JSON.stringify(n),this._valueStr===e)return}e=e||JSON.stringify(i([],r(t),!1).sort((function(t,e){return t.ratio-e.ratio})));var o=this._value;if(this._value=JSON.parse(e),0===this._value.length)throw console.error("this._colorStops.length === 0"),new Error("this._colorStops.length === 0");this._valueChanged&&this._valueChanged.emit(this._value,o)}else console.error("value.length === 0")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valueStr",{get:function(){return this._valueStr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minRatio",{get:function(){return this._value[0].ratio},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxRatio",{get:function(){return this._value[this._value.length-1].ratio},enumerable:!1,configurable:!0}),t.prototype._getRatioIndex=function(t){if(t<this._value[0].ratio||t>this._value[this._value.length-1].ratio)throw console.error("ratio <= this._colorStops[0].ratio || ratio >= this._colorStops[this._colorStops.length - 1].ratio"),new Error("ratio <= this._colorStops[0].ratio || ratio >= this._colorStops[this._colorStops.length - 1].ratio");for(var e=this._value.length,n=0;n<e-1;++n)if(t>=this._value[n].ratio&&t<=this._value[n+1].ratio)return n;throw console.error("shoud not be here!"),new Error("shoud not be here!")},t.prototype.getRatioColor=function(t,e){t=(0,o.clamp)(t,this.minRatio,this.maxRatio);for(var n=this._getRatioIndex(t),r=this._value[n],i=this._value[n+1],s=(t-r.ratio)/(i.ratio-r.ratio),a=0;a<4;++a)e[a]=r.rgba[a]*(1-s)+i.rgba[a]*s;if(!e.some(Number.isNaN))return e;console.error("result NaN")},t.prototype.getColorsInUint8=function(t){if(t.length%4!=0)throw console.error("result.length % 4 !== 0"),new Error("result.length % 4 !== 0");for(var e=t.length/4,n=1/e,r=0;r<e;++r){var i=a;this.getRatioColor((r+.5)*n,i)||i.splice(0,4,0,0,0,0);for(var o=0;o<4;++o)t[4*r+o]=255*i[o]|0}return t},t}();e.ColorStops=u},6301:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEachWithBreak=void 0;var r=n(8144);e.forEachWithBreak=function(t,e){for(var n=!1,i=(0,r.getIterator)(t),o=-1;;){var s=i.next(),a=s.done,u=s.value;if(a)break;if(e(u,++o)){n=!0;break}}return n}},6356:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(2429),e),i(n(3639),e),i(n(6613),e),i(n(6270),e),i(n(2127),e),i(n(4621),e),i(n(8106),e),i(n(6405),e),i(n(5819),e),i(n(1148),e),i(n(2220),e),i(n(3815),e),i(n(2243),e),i(n(8576),e),i(n(8453),e),i(n(4990),e),i(n(172),e),i(n(2075),e),i(n(7529),e),i(n(1412),e),i(n(8997),e),i(n(8421),e),i(n(2789),e),i(n(985),e),i(n(9412),e),i(n(7029),e)},6362:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.min=e.max=void 0;var r=n(6138);e.max=function(t){return(0,r.reduce)(t,(function(t,e){return t>e?t:e}),Number.NEGATIVE_INFINITY)},e.min=function(t){return(0,r.reduce)(t,(function(t,e){return t<e?t:e}),Number.POSITIVE_INFINITY)}},6405:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(109),e),i(n(2921),e),i(n(5544),e),i(n(2002),e),i(n(2811),e),i(n(6946),e),i(n(643),e)},6424:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.vertexArrayToBezierSpline3Positions=void 0;var r=n(8466),i=(0,r.computBezierSpline3BaseFactors)(20);e.vertexArrayToBezierSpline3Positions=function(t,e,n,o){var s,a,u=t.length;if(u<=1)return t.map((function(t){return t.position}));for(var c=20===o?i:(0,r.computBezierSpline3BaseFactors)(o),l=n?u:u-1,h=new Array(l*o+1),p=0;p<l;++p){var f=t[p],d=t[p+1===u?0:p+1],g=f.position,y=null!==(s=f.rightPosition)&&void 0!==s?s:f.position,v=null!==(a=d.leftPosition)&&void 0!==a?a:d.position,m=d.position,_=p*o;h[_]=g;for(var b=1;b<o;++b)h[_+b]=(0,r.bezierSpline3WithBaseFactor)(c[b],e,g,y,v,m)}return h[l*o]=t[n?0:u-1].position,h}},6432:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isBase64Uri=e.isAbsoluteUri=void 0,e.isAbsoluteUri=function(t){return t.startsWith("http:")||t.startsWith("https:")},e.isBase64Uri=function(t){return t.startsWith("data:")}},6469:function(t,e){"use strict";var n=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},r=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.fetchImage=void 0,e.fetchImage=function(t,e){return void 0===e&&(e=""),n(this,void 0,void 0,(function(){return r(this,(function(n){return[2,new Promise((function(n,r){var i=new Image;i.crossOrigin=e,i.src=t,i.onload=function(){return n(i)},i.onerror=function(t){return r(t)}}))]}))}))}},6555:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.HasOwner=void 0;var o=function(t){function e(e){var n=t.call(this)||this;return n._owner=e,n}return i(e,t),Object.defineProperty(e.prototype,"owner",{get:function(){return this._owner},enumerable:!1,configurable:!0}),e}(n(9359).Destroyable);e.HasOwner=o},6558:function(t,e){"use strict";var n=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},r=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.nextMicroTask=e.nextAnimateFrame=e.animateFrame=e.timeout=e.interval=void 0,e.interval=function(t,e){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];var s=setInterval.apply(void 0,r([t,e],n(i),!1));return function(){return clearInterval(s)}},e.timeout=function(t,e){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];var s=setTimeout.apply(void 0,r([t,e],n(i),!1));return function(){return clearTimeout(s)}},e.animateFrame=function(t){for(var e,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];var s=function(){var o=performance.now();t.apply(void 0,r([o],n(i),!1)),e=requestAnimationFrame(s)};return s(),function(){return void 0!==e&&(cancelAnimationFrame(e),e=void 0)}},e.nextAnimateFrame=function(t){for(var e,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return e=requestAnimationFrame((function(){var e=performance.now();t.apply(void 0,r([e],n(i),!1))})),function(){return void 0!==e&&(cancelAnimationFrame(e),e=void 0)}},e.nextMicroTask=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var o,s=!1;return new Promise((function(t,e){o=e,t()})).then((function(){!s&&t.apply(void 0,r([],n(e),!1))})).catch((function(t){console.error(t)})),function(){return(s=!0)&&o&&(o("nextMicroTask cancelled!"),o=void 0)}}},6583:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.oneTimeWarning=void 0;var n=new Set;e.oneTimeWarning=function(t,e){void 0===e&&(e=t),n.has(e)||(n.add(e),console.warn(t))}},6613:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},6655:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPaddingByteLength=void 0,e.getPaddingByteLength=function(t,e){return 1!==e&&2!==e&&4!==e&&8!==e&&console.warn("getPaddingByteLength boundaryByteLength(".concat(e,") is not 2^")),(e-t%e)%e}},6680:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._fromDirectionUpRightAndTranslation=e._fromMatrix3AndTranslation=e._fromTranslation=void 0;var r=n(2731),i=n(9898),o=n(5985);e._fromTranslation=function(t,e){return(e=e||(0,r.createNumbers)(16))[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e},e._fromMatrix3AndTranslation=function(t,e,n){return e=e||o.Vector3.ZERO,(n=n||(0,r.createNumbers)(16))[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=0,n[4]=t[3],n[5]=t[4],n[6]=t[5],n[7]=0,n[8]=t[6],n[9]=t[7],n[10]=t[8],n[11]=0,n[12]=e[0],n[13]=e[1],n[14]=e[2],n[15]=1,n},e._fromDirectionUpRightAndTranslation=function(t,e,n,r,s){var a=null!=r?r:o.Vector3.ZERO;return i.Vector.set(s,n[0],n[1],n[2],0,e[0],e[1],e[2],0,-t[0],-t[1],-t[2],0,a[0],a[1],a[2],1)}},6888:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.createAnimateFrameWithStartValues=e.createAnimateFrame=e.createIntervalWithStartValues=e.createInterval=e.createTimeoutWithStartValues=e.createTimeout=e.createNextMicroTaskWithStartValues=e.createNextMicroTask=e.createNextAnimateFrameWithStartValues=e.createNextAnimateFrame=void 0;var o=n(1662),s=n(5819);function a(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];try{return e.apply(void 0,i([],r(n),!1))}catch(e){t(e)}}e.createNextAnimateFrame=function(){return new s.Processing((function(t,e){var n=t.completeFunc,r=t.errorFunc;return(0,o.nextAnimateFrame)((function(){return a(r,(function(){e&&e(),n()}))}))}))},e.createNextAnimateFrameWithStartValues=function(t){return new s.Processing((function(e){var n=e.completeFunc,r=e.errorFunc;return(0,o.nextAnimateFrame)((function(){return a(r,(function(){t&&t(),n()}))}))}))},e.createNextMicroTask=function(){return new s.Processing((function(t,e){var n=t.completeFunc,r=t.errorFunc;return(0,o.nextMicroTask)((function(){a(r,(function(){e&&e(),n()}))}))}))},e.createNextMicroTaskWithStartValues=function(t){return new s.Processing((function(e){var n=e.completeFunc,r=e.errorFunc;return(0,o.nextMicroTask)((function(){a(r,(function(){t&&t(),n()}))}))}))},e.createTimeout=function(){return new s.Processing((function(t,e,n){var r=t.completeFunc,i=t.errorFunc;return(0,o.timeout)((function(){a(i,(function(){e&&e(),r()}))}),null!=n?n:1e3)}))},e.createTimeoutWithStartValues=function(t,e){return new s.Processing((function(n){var r=n.completeFunc,i=n.errorFunc;return(0,o.timeout)((function(){a(i,(function(){t&&t(),r()}))}),null!=e?e:1e3)}))},e.createInterval=function(){return new s.Processing((function(t,e,n){var r=t.errorFunc;return void 0===n&&(n=1e3),(0,o.interval)((function(){return a(r,e)}),n)}))},e.createIntervalWithStartValues=function(t,e){return void 0===e&&(e=1e3),new s.Processing((function(n){var r=n.errorFunc;return(0,o.interval)((function(){return a(r,t)}),e)}))},e.createAnimateFrame=function(){return new s.Processing((function(t,e){var n=t.errorFunc;return(0,o.animateFrame)((function(t){return a(n,e,t)}))}))},e.createAnimateFrameWithStartValues=function(t){return new s.Processing((function(e){var n=e.errorFunc;return(0,o.animateFrame)((function(e){return a(n,t,e)}))}))}},6891:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},s=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.ProcessingDeprecated=void 0;var a=n(7372),u=n(7372),c=function(t){function e(e,n,r,i,o,s,a,u){var c=t.call(this)||this;return c._startProcessingFunc=e,c.startFunc=n,c.progressFunc=r,c.completeFunc=i,c.cancelFunc=o,c.cancelledFunc=s,c.errorFunc=a,c.finishedFunc=u,c._processingID=-1,c._status="Initial",c.dispose((function(){var t;return null===(t=c._statusChangedEvent)||void 0===t?void 0:t.destroy()})),c.dispose((function(){var t;return null===(t=c._startEvent)||void 0===t?void 0:t.destroy()})),c.dispose((function(){var t;return null===(t=c._progressEvent)||void 0===t?void 0:t.destroy()})),c.dispose((function(){var t;return null===(t=c._completeEvent)||void 0===t?void 0:t.destroy()})),c.dispose((function(){var t;return null===(t=c._cancelEvent)||void 0===t?void 0:t.destroy()})),c.dispose((function(){var t;return null===(t=c._cancelledEvent)||void 0===t?void 0:t.destroy()})),c.dispose((function(){var t;return null===(t=c._errorEvent)||void 0===t?void 0:t.destroy()})),c.dispose((function(){var t;return null===(t=c._finishedEvent)||void 0===t?void 0:t.destroy()})),c.dispose((function(){return c.reset()})),c}return i(e,t),Object.defineProperty(e.prototype,"startEvent",{get:function(){return this._startEvent=this._startEvent||new u.Event,this._startEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"progressEvent",{get:function(){return this._progressEvent=this._progressEvent||new u.Event,this._progressEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"completeEvent",{get:function(){return this._completeEvent=this._completeEvent||new u.Event,this._completeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cancelEvent",{get:function(){return this._cancelEvent=this._cancelEvent||new u.Event,this._cancelEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cancelledEvent",{get:function(){return this._cancelledEvent=this._cancelledEvent||new u.Event,this._cancelledEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"errorEvent",{get:function(){return this._errorEvent=this._errorEvent||new u.Event,this._errorEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"finishedEvent",{get:function(){return this._finishedEvent=this._finishedEvent||new u.Event,this._finishedEvent},enumerable:!1,configurable:!0}),e.prototype._completeFunc=function(t,e){this.processingID===t&&"Running"===this._status&&(this._status="Completed",this.completeFunc&&this.completeFunc(e),this._completeEvent&&this._completeEvent.emit(e),this.finishedFunc&&this.finishedFunc({status:"Completed",value:e}),this._finishedEvent&&this._finishedEvent.emit({status:"Completed",value:e}))},e.prototype._cancelFunc=function(t){"Running"===this._status&&(this._status="Cancelling",this.cancelFunc&&this.cancelFunc(t),this._cancelEvent&&this._cancelEvent.emit(t))},e.prototype._cancelledFunc=function(t){"Cancelling"===this._status&&(this._status="Cancelled",this.cancelledFunc&&this.cancelledFunc(t),this._cancelledEvent&&this._cancelledEvent.emit(t),this.finishedFunc&&this.finishedFunc({status:"Cancelled",cancelError:t}),this._finishedEvent&&this._finishedEvent.emit({status:"Cancelled",cancelError:t}))},e.prototype._errorFunc=function(t,e){this.processingID===t&&"Running"===this._status&&(this._status="Error",this.errorFunc&&this.errorFunc(e),this._errorEvent&&this._errorEvent.emit(e),this.finishedFunc&&this.finishedFunc({status:"Error",error:e}),this._finishedEvent&&this._finishedEvent.emit({status:"Error",error:e}))},e.prototype._progressFunc=function(t,e){this.processingID===t&&"Running"===this._status&&(this.progressFunc&&this.progressFunc(e),this._progressEvent&&this._progressEvent.emit(e))},e.prototype._startFunc=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if("Initial"===this._status){this._status="Running";var r=++this._processingID,i={completeFunc:this._completeFunc.bind(this,r),errorFunc:this._errorFunc.bind(this,r),progressFunc:this._progressFunc.bind(this,r),cancelFunc:this._cancel.bind(this,r),processingID:r},a=this._startProcessingFunc.apply(this,s([i],o(e),!1));return this._forceCancelFunc=a,this.startFunc&&this.startFunc.apply(this,s([],o(e),!1)),this._startEvent&&(t=this._startEvent).emit.apply(t,s([],o(e),!1)),r}return console.warn("this._status !== 'Initial' but start again!"),-1},Object.defineProperty(e.prototype,"_status",{get:function(){return this.__status},set:function(t){if(this.__status!==t){var e=this.__status;this.__status=t,this._statusChangedEvent&&this._statusChangedEvent.emit(t,e)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"processingID",{get:function(){return this._processingID},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"statusChangedEvent",{get:function(){return this._statusChangedEvent||(this._statusChangedEvent=new u.Event),this._statusChangedEvent},enumerable:!1,configurable:!0}),e.prototype.reset=function(t){"Running"===this._status&&this.cancel(t),"Cancelled"===this._status||"Error"===this._status||"Completed"===this._status?this._status="Initial":"Cancelling"===this._status&&console.warn("Cannot reset! (this._status === 'Cancelling')")},Object.defineProperty(e.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),e.prototype.cancel=function(t,e){return void 0===e&&(e=this.processingID),this._cancel(e,t)},e.prototype._cancel=function(t,e){var n=this;if(this.processingID===t)if("Running"===this._status){if(!this._forceCancelFunc)throw new Error("this._forceCancelFunc is undefined!");this._cancelFunc(e);var r=this._forceCancelFunc(e);if(this._forceCancelFunc=void 0,r&&r instanceof Promise)return r.then((function(){n._cancelledFunc(e)}));this._cancelledFunc(e)}else console.warn("this._status !== 'Running' but cancel")},e.prototype.start=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];try{return this._startFunc.apply(this,s([],o(t),!1))}catch(t){console.error("processing start error: ".concat(t))}},e.prototype.restart=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];try{return this.isRunning&&this.cancel(t),this.isFinished&&this.reset(t),this.isInitial?this._startFunc.apply(this,s([],o(e),!1)):(console.warn("restart failed!"),-1)}catch(t){console.error("processing restart error: ".concat(t))}},Object.defineProperty(e.prototype,"isCompleted",{get:function(){return"Completed"===this._status},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCancelled",{get:function(){return"Cancelled"===this._status},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCancelling",{get:function(){return"Cancelling"===this._status},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isError",{get:function(){return"Error"===this._status},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInitial",{get:function(){return"Initial"===this._status},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRunning",{get:function(){return"Running"===this._status},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFinished",{get:function(){return this.isCancelled||this.isCompleted||this.isError},enumerable:!1,configurable:!0}),e}(a.Destroyable);e.ProcessingDeprecated=c},6928:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(7521),e),i(n(5252),e),i(n(5260),e),i(n(2277),e),i(n(9181),e),i(n(4499),e),i(n(1023),e)},6946:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.TransitionDeprecated=void 0;var o=n(7372),s=n(7372),a=n(2811),u=function(t){function e(e){var n=t.call(this)||this;return n._duration=e,n._target=0,n._current=0,n._start=0,n._timing=new a.TimingDeprecated(Number.POSITIVE_INFINITY),n._timing.progressFunc=function(t){var e=t.ratio;e=e<0?0:e>1?1:e;var r=n._start*(1-e)+n._target*e;n._current=r,n._currentChanged&&n._currentChanged.emit(n._target,n._current)},n.dispose((function(){n._timing.isRunning&&n._timing.cancel(),n._timing.destroy()})),n}return i(e,t),e.prototype.reset=function(t,e){void 0===e&&(e=t),this._timing.isRunning&&this._timing.cancel(),this._target=t,this._current=e,this._start=t},Object.defineProperty(e.prototype,"target",{get:function(){return this._target},set:function(t){if(this._target!==t){this._target=t,this._timing.isRunning&&this._timing.cancel(),this._timing.reset(),this._start=this._current;var e=Math.abs(this._target-this._start);this._timing.duration=e*this._duration,this._timing.start()}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"current",{get:function(){return this._current},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentChanged",{get:function(){return this._currentChanged||(this._currentChanged=new s.Event),this._currentChanged},enumerable:!1,configurable:!0}),e}(o.Destroyable);e.TransitionDeprecated=u},7008:(t,e,n)=>{"use strict";function r(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function i(t,e,n,i,o,s){return r((a=r(r(e,t),r(i,s)))<<(u=o)|a>>>32-u,n);var a,u}function o(t,e,n,r,o,s,a){return i(e&n|~e&r,t,e,o,s,a)}function s(t,e,n,r,o,s,a){return i(e&r|n&~r,t,e,o,s,a)}function a(t,e,n,r,o,s,a){return i(e^n^r,t,e,o,s,a)}function u(t,e,n,r,o,s,a){return i(n^(e|~r),t,e,o,s,a)}function c(t,e){var n,i,c,l,h;t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;var p=1732584193,f=-271733879,d=-1732584194,g=271733878;for(n=0;n<t.length;n+=16)i=p,c=f,l=d,h=g,p=o(p,f,d,g,t[n],7,-680876936),g=o(g,p,f,d,t[n+1],12,-389564586),d=o(d,g,p,f,t[n+2],17,606105819),f=o(f,d,g,p,t[n+3],22,-1044525330),p=o(p,f,d,g,t[n+4],7,-176418897),g=o(g,p,f,d,t[n+5],12,1200080426),d=o(d,g,p,f,t[n+6],17,-1473231341),f=o(f,d,g,p,t[n+7],22,-45705983),p=o(p,f,d,g,t[n+8],7,1770035416),g=o(g,p,f,d,t[n+9],12,-1958414417),d=o(d,g,p,f,t[n+10],17,-42063),f=o(f,d,g,p,t[n+11],22,-1990404162),p=o(p,f,d,g,t[n+12],7,1804603682),g=o(g,p,f,d,t[n+13],12,-40341101),d=o(d,g,p,f,t[n+14],17,-1502002290),p=s(p,f=o(f,d,g,p,t[n+15],22,1236535329),d,g,t[n+1],5,-165796510),g=s(g,p,f,d,t[n+6],9,-1069501632),d=s(d,g,p,f,t[n+11],14,643717713),f=s(f,d,g,p,t[n],20,-373897302),p=s(p,f,d,g,t[n+5],5,-701558691),g=s(g,p,f,d,t[n+10],9,38016083),d=s(d,g,p,f,t[n+15],14,-660478335),f=s(f,d,g,p,t[n+4],20,-405537848),p=s(p,f,d,g,t[n+9],5,568446438),g=s(g,p,f,d,t[n+14],9,-1019803690),d=s(d,g,p,f,t[n+3],14,-187363961),f=s(f,d,g,p,t[n+8],20,1163531501),p=s(p,f,d,g,t[n+13],5,-1444681467),g=s(g,p,f,d,t[n+2],9,-51403784),d=s(d,g,p,f,t[n+7],14,1735328473),p=a(p,f=s(f,d,g,p,t[n+12],20,-1926607734),d,g,t[n+5],4,-378558),g=a(g,p,f,d,t[n+8],11,-2022574463),d=a(d,g,p,f,t[n+11],16,1839030562),f=a(f,d,g,p,t[n+14],23,-35309556),p=a(p,f,d,g,t[n+1],4,-1530992060),g=a(g,p,f,d,t[n+4],11,1272893353),d=a(d,g,p,f,t[n+7],16,-155497632),f=a(f,d,g,p,t[n+10],23,-1094730640),p=a(p,f,d,g,t[n+13],4,681279174),g=a(g,p,f,d,t[n],11,-358537222),d=a(d,g,p,f,t[n+3],16,-722521979),f=a(f,d,g,p,t[n+6],23,76029189),p=a(p,f,d,g,t[n+9],4,-640364487),g=a(g,p,f,d,t[n+12],11,-421815835),d=a(d,g,p,f,t[n+15],16,530742520),p=u(p,f=a(f,d,g,p,t[n+2],23,-995338651),d,g,t[n],6,-198630844),g=u(g,p,f,d,t[n+7],10,1126891415),d=u(d,g,p,f,t[n+14],15,-1416354905),f=u(f,d,g,p,t[n+5],21,-57434055),p=u(p,f,d,g,t[n+12],6,1700485571),g=u(g,p,f,d,t[n+3],10,-1894986606),d=u(d,g,p,f,t[n+10],15,-1051523),f=u(f,d,g,p,t[n+1],21,-2054922799),p=u(p,f,d,g,t[n+8],6,1873313359),g=u(g,p,f,d,t[n+15],10,-30611744),d=u(d,g,p,f,t[n+6],15,-1560198380),f=u(f,d,g,p,t[n+13],21,1309151649),p=u(p,f,d,g,t[n+4],6,-145523070),g=u(g,p,f,d,t[n+11],10,-1120210379),d=u(d,g,p,f,t[n+2],15,718787259),f=u(f,d,g,p,t[n+9],21,-343485551),p=r(p,i),f=r(f,c),d=r(d,l),g=r(g,h);return[p,f,d,g]}function l(t){var e,n="",r=32*t.length;for(e=0;e<r;e+=8)n+=String.fromCharCode(t[e>>5]>>>e%32&255);return n}function h(t){var e,n=[];for(n[(t.length>>2)-1]=void 0,e=0;e<n.length;e+=1)n[e]=0;var r=8*t.length;for(e=0;e<r;e+=8)n[e>>5]|=(255&t.charCodeAt(e/8))<<e%32;return n}function p(t){var e,n,r="0123456789abcdef",i="";for(n=0;n<t.length;n+=1)e=t.charCodeAt(n),i+=r.charAt(e>>>4&15)+r.charAt(15&e);return i}function f(t){return unescape(encodeURIComponent(t))}function d(t){return function(t){return l(c(h(t),8*t.length))}(f(t))}function g(t,e){return function(t,e){var n,r,i=h(t),o=[],s=[];for(o[15]=s[15]=void 0,i.length>16&&(i=c(i,8*t.length)),n=0;n<16;n+=1)o[n]=909522486^i[n],s[n]=1549556828^i[n];return r=c(o.concat(h(e)),512+8*e.length),l(c(s.concat(r),640))}(f(t),f(e))}function y(t,e,n){return e?n?g(e,t):p(g(e,t)):n?d(t):p(d(t))}n.r(e),n.d(e,{md5:()=>y})},7014:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ImageProcessing=void 0;var a=n(1662),u=n(5819),c=function(t){function e(e,n){var r=t.call(this)||this;return r._complexImage=e,r._imageUri=n,r._processing=r.disposeVar((0,u.createProcessingFromAsyncFunc)((function(t){return o(r,void 0,void 0,(function(){var e,n;return s(this,(function(r){switch(r.label){case 0:return e=this._complexImage,[4,t.promise((0,a.fetchImage)(this._imageUri,this._complexImage.crossOrigin))];case 1:return(n=r.sent())?(n instanceof HTMLImageElement&&(e.size=[n.naturalWidth,n.naturalHeight],e.pixelFormat="RGBA",e.copyTexture({source:n})),[2]):[2]}}))}))}))),r._processingStart=r._processing.start(),r}return i(e,t),Object.defineProperty(e.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),e}(a.Destroyable);e.ImageProcessing=c},7029:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(5281),e),i(n(7118),e),i(n(9815),e)},7118:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},s=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.GifPlayer=void 0;var a=n(1662);function u(t,e,n){return t<e?e:t>n?n:t}var c=function(t){function e(e,n,r){void 0===n&&(n=!0);var i=t.call(this)||this;i._container=e,i._gifFrames=i.disposeVar((0,a.react)(void 0)),i._gifDurations=[],i._gifDuration=i.disposeVar((0,a.react)(0)),i._gifSize=i.disposeVar((0,a.react)([0,0],(function(t,e){return t.every((function(t,n){return t===e[n]}))}),(function(t){return s([],o(t),!1)}))),i._autoPlayOnLoad=i.disposeVar((0,a.react)(!0)),i.loop=!0;var c=document.createElement("canvas");i._gifCanvas=c,c.style.width="100%",c.style.height="100%";var l,h=c.getContext("2d");i._container&&i._container.appendChild(c),i.dispose((function(){return i._container&&i._container.removeChild(c)})),i.dispose(i._gifFrames.changed.disposableOn((function(t){if(!t||0===t.length)return c.width=0,void(c.height=0);var e=t[0].dims,n=e.width,r=e.height;i._gifSize.value=[n,r];var o=t.length,s=0;i._gifDurations.length=0;for(var a=0;a<o;++a)s+=t[a].delay,i._gifDurations.push(s);i._gifDuration.value=i._gifDurations[i._gifDurations.length-1],c.width=n,c.height=r,l=h.createImageData(n,r),i.currentTimeChangedEvent.emit(i.currentTime,i.currentTime),i._autoPlayOnLoad.value&&(i.currentTime=0,i.playing=!0)})));var p=-1;return i.dispose(i.currentTimeChangedEvent.disposableOn((function(t){var e=u(t/i.duration,0,1),n=i.gifDuration*e,r=i._gifFrames.value;if(r&&r.length>0){var s=i._getFrame(n);if(s===p)return;p=s;var c=r[s];if(0!==c.disposalType&&1!==c.disposalType&&2!==c.disposalType&&(0,a.oneTimeWarning)("gif parsed get disposalType ".concat(c.disposalType,"... frame: ").concat(s," size: ").concat(JSON.stringify(c.dims)),"gif parsed get disposalType ".concat(c.disposalType,"...")),!l||0!==s&&2!==c.disposalType||l.data.fill(0),l){var f=o(i._gifSize.value,2),d=f[0],g=f[1],y=c.dims,v=y.width,m=y.height,_=y.left,b=y.top;if(m>g)throw new Error("height > canvasHeight");for(var w=0;w<m;++w)for(var E=0;E<v;++E){var x=w*v+E,P=(b+w)*d+(_+E),S=l.data,O=c.patch,C=O[4*x+3]/255;S[4*P+0]=S[4*P+0]*(1-C)+O[4*x+0]*C|0,S[4*P+1]=S[4*P+1]*(1-C)+O[4*x+1]*C|0,S[4*P+2]=S[4*P+2]*(1-C)+O[4*x+2]*C|0,S[4*P+3]=0|u(S[4*P+3]+O[4*x+3],0,255)}h.putImageData(l,0,0)}}else(0,a.oneTimeWarning)("gif资源未加载!无法播放!")}))),i.dispose(i._gifDuration.changed.disposableOn((function(){i.duration=i.gifDuration}))),i._autoPlayOnLoad.value=n,i._gifFrames.value=r,i}return i(e,t),Object.defineProperty(e.prototype,"gifCanvas",{get:function(){return this._gifCanvas},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"gifFrames",{get:function(){return this._gifFrames.value},set:function(t){this._gifFrames.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"gifFramesChanged",{get:function(){return this._gifFrames.changed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"gifSize",{get:function(){return this._gifSize.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"gifSizeChanged",{get:function(){return this._gifSize.changed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"gifDuration",{get:function(){return this._gifDuration.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"gifDurationChanged",{get:function(){return this._gifDuration.changed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"autoPlayOnLoad",{get:function(){return this._autoPlayOnLoad.value},set:function(t){this._autoPlayOnLoad.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"autoPlayOnLoadChanged",{get:function(){return this._autoPlayOnLoad.changed},enumerable:!1,configurable:!0}),e.prototype._getFrame=function(t){for(var e=this._gifDurations.length,n=0;n<e;++n)if(t<=this._gifDurations[n])return n;throw new Error("should not be here")},e}(n(2127).Player);e.GifPlayer=c},7132:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addClassStyle=void 0,e.addClassStyle=function(t){var e=document.createElement("style");return e.innerText=t,document.head.appendChild(e)}},7215:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Plane=void 0;var r=n(2731),i=n(9898),o=n(5873),s=n(8089);!function(t){var e=(0,r.createNumbers)(3);function n(t,n){i.Vector.set(e,t[0],t[1],t[2]);var r=i.Vector.magnitudeSquared(e);if(Math.abs(r-1)>1e-9)throw new Error("plane必须是单位向量!");return i.Vector.dot(e,n)+t[3]}function a(t,e){return e=e||(0,r.createNumbers)(3),i.Vector.set(e,t[0],t[1],t[2]),e}t.distancePlaneToPoint=n,t.projectPointOntoPlane=function(t,o,s){s=s||(0,r.createNumbers)(3);var a=n(o,t);return i.Vector.set(e,o[0],o[1],o[2]),i.Vector.multiplyByScalar(e,-a,s),i.Vector.add(s,t,s),s},t.getNormal=a,t.getDistance=function(t){return t[3]},t.setNormal=function(t,e){for(var n=0;n<3;++n)t[n]=e[n];return t},t.setDistance=function(t,e){return t[3]=e,t};var u=(0,r.createNumbers)(3),c=(0,r.createNumbers)(3);t.distanceRayToPlane=function(t,e,r){void 0===r&&(r=1e-5);var s=o.Ray.getDirection(t,u),l=a(e,c),h=-i.Vector.dot(s,l);if(!(Math.abs(h)<r))return n(e,o.Ray.getOrigin(t,u))/h};var l=(0,r.createNumbers)(16),h=(0,r.createNumbers)(4),p=(0,r.createNumbers)(3);t.transform=function(t,e,n){n=n||(0,r.createNumbers)(4);var o=s.Matrix4.inverse(s.Matrix4.transpose(e,l),l),u=s.Matrix4.multiplyByVector(o,t,h),c=a(t,p);return i.Vector.multiplyByScalar(u,1/i.Vector.magnitude(c),n),n},t.fromPointNormal=function(t,e,n){if(Math.abs(1-i.Vector.magnitude(e))>1e-6)throw new Error("Math.abs(1 - Vector.magnitude(normal)) > 0.000001");var o=-i.Vector.dot(e,t);return n=n||(0,r.createNumbers)(4),i.Vector.set(n,e[0],e[1],e[2],o)},t.UNIT_X=(0,r.createNumbers)(4,1,0,0,0),t.UNIT_Y=(0,r.createNumbers)(4,0,1,0,0),t.UNIT_Z=(0,r.createNumbers)(4,0,0,1,0)}(e.Plane||(e.Plane={}))},7324:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.getFloatDivPool=e.FloatDiv=void 0;var s=n(7372),a=n(7372),u=n(7372),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._show=!0,e._opacity=1,e._winPos=[0,0],e}return i(e,t),Object.defineProperty(e.prototype,"winPos",{get:function(){return this._winPos},set:function(t){var e=o(t,2),n=e[0],r=e[1],i=o(this._winPos,2),s=i[0],a=i[1];n===s&&r===a||(this._winPos[0]=n,this._winPos[1]=r,this._winPosChanged&&this._winPosChanged.emit(this._winPos))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"winPosChanged",{get:function(){return this._winPosChanged=this._winPosChanged||new s.Event,this._winPosChanged},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"opacity",{get:function(){return this._opacity},set:function(t){this._opacity!==t&&(this._opacity=t,this._opacityChanged&&this._opacityChanged.emit(this._opacity))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"opacityChanged",{get:function(){return this._opacityChanged=this._opacityChanged||new s.Event,this._opacityChanged},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"show",{get:function(){return this._show},set:function(t){this._show!==t&&(this._show=t,this._showChanged&&this._showChanged.emit(this._show))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showChanged",{get:function(){return this._showChanged=this._showChanged||new s.Event,this._showChanged},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"closeEvent",{get:function(){return this._closeEvent||(this._closeEvent=new s.Event),this._closeEvent},enumerable:!1,configurable:!0}),e}(a.Destroyable);e.FloatDiv=c;var l=new WeakMap;e.getFloatDivPool=function(t){if(!l.has(t)){var e=new u.ObjPool((function(){return new t}),(function(t){return t.reset()}));l.set(t,e)}return l.get(t)}},7372:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SmartListenerPipe=e.SmartListenerHandler=e.ListenerPipe=e.Event=e.EventListenerHandler=e.DoublyLinkedList=e.react=e.ReactiveVariable=e.ObjPool=e.Destroyable=void 0;var r=n(1662);Object.defineProperty(e,"Destroyable",{enumerable:!0,get:function(){return r.Destroyable}});var i=n(1662);Object.defineProperty(e,"ObjPool",{enumerable:!0,get:function(){return i.ObjPool}});var o=n(1662);Object.defineProperty(e,"ReactiveVariable",{enumerable:!0,get:function(){return o.ReactiveVariable}}),Object.defineProperty(e,"react",{enumerable:!0,get:function(){return o.react}});var s=n(1662);Object.defineProperty(e,"DoublyLinkedList",{enumerable:!0,get:function(){return s.DoublyLinkedList}}),Object.defineProperty(e,"EventListenerHandler",{enumerable:!0,get:function(){return s.EventListenerHandler}}),Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return s.Event}}),Object.defineProperty(e,"ListenerPipe",{enumerable:!0,get:function(){return s.ListenerPipe}}),Object.defineProperty(e,"SmartListenerHandler",{enumerable:!0,get:function(){return s.SmartListenerHandler}}),Object.defineProperty(e,"SmartListenerPipe",{enumerable:!0,get:function(){return s.SmartListenerPipe}})},7413:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewMatrix=void 0;var r=n(4915),i=n(8089),o=n(2731),s=n(9549),a=n(9898),u=n(5985),c=(0,o.createNumbers)(3),l=(0,o.createNumbers)(3),h=(0,o.createNumbers)(3);!function(t){function e(t,e,n,r,i){return(i=i||(0,o.createNumbers)(16))[0]=r[0],i[1]=n[0],i[2]=-e[0],i[3]=0,i[4]=r[1],i[5]=n[1],i[6]=-e[1],i[7]=0,i[8]=r[2],i[9]=n[2],i[10]=-e[2],i[11]=0,i[12]=-a.Vector.dot(r,t),i[13]=-a.Vector.dot(n,t),i[14]=a.Vector.dot(e,t),i[15]=1,i}t.computeView=e;var n=(0,o.createNumbers)(3),p=(0,o.createNumbers)(3),f=(0,o.createNumbers)(3);function d(t,r,i){var o=n,s=p,u=f,c=r;return a.Vector.set(o,-c[6],-c[7],-c[8]),a.Vector.set(s,c[3],c[4],c[5]),a.Vector.set(u,c[0],c[1],c[2]),e(t,o,s,u,i)}t.fromRotationMatrix3AndPosition=d;var g=(0,o.createNumbers)(9);t.fromRotationQuatAndPosition=function(t,e,n){return r.Matrix3.fromQuaternion(e,g),d(t,g,n)},t.lookAt=function(e,n,r,i){var o=a.Vector.subtract(n,e,c);if(!a.Vector.normalize(o,o))throw new Error("direction is undefined!");return u.Vector3.getOrthogonalityVector(o,r,h,l),t.computeView(e,o,h,l,i)},t.lookAtWithDirection=function(e,n,r,i){if(Math.abs(a.Vector.magnitudeSquared(n)-1)>1e-5)throw new Error("direction is not normalized!");return u.Vector3.getOrthogonalityVector(n,r,h,l),t.computeView(e,n,h,l,i)},t.getDirection=function(t,e){return a.Vector.set(e,-t[2],-t[6],-t[10])},t.getRight=function(t,e){return a.Vector.set(e,t[0],t[4],t[8])},t.getUp=function(t,e){return a.Vector.set(e,t[1],t[5],t[9])};var y=(0,o.createNumbers)(9);function v(t,e){(e=e||(0,o.createNumbers)(9))[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[1],e[4]=t[5],e[5]=t[9],e[6]=t[2],e[7]=t[6],e[8]=t[10]}t.getRotationQuat=function(t,e){return v(t,y),s.Quaternion.fromRotationMatrix3(y,e)},t.getRotationMatrix=v,t.getEye=function(t,e){var n=t,r=-n[0]*n[12]-n[1]*n[13]-n[2]*n[14],i=-n[4]*n[12]-n[5]*n[13]-n[6]*n[14],o=-n[8]*n[12]-n[9]*n[13]-n[10]*n[14];return a.Vector.set(e,r,i,o)};var m=(0,o.createNumbers)(3);t.distanceFromEye=function(t,e){return-i.Matrix4.affineMultiplyByPoint(t,e,m)[2]},t.ratioScreenToWorldSpace=function(t,e,n){return e[3]*t[5]*.5/n};var _=(0,o.createNumbers)(4),b=(0,o.createNumbers)(3),w=(0,o.createNumbers)(16),E=(0,o.createNumbers)(16),x=(0,o.createNumbers)(16);t.rotateWithAxis=function(t,e,n,r,u){return u=u||(0,o.createNumbers)(16),i.Matrix4.fromTranslation(e,w),a.Vector.negate(e,b),i.Matrix4.fromTranslation(b,E),s.Quaternion.fromAxisAngle(n,-r,_),i.Matrix4.fromRotateQuatAndTranslation(_,void 0,x),i.Matrix4.continuousMultiply(u,t,w,x,E)},t.computeOrthographicOffCenter=function(t,e,n,r,i,s,a){var u=1/(e-t),c=1/(r-n),l=1/(s-i),h=-(e+t)*u,p=-(r+n)*c,f=-(s+i)*l;return u*=2,c*=2,l*=-2,(a=a||(0,o.createNumbers)(16))[0]=u,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=c,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=l,a[11]=0,a[12]=h,a[13]=p,a[14]=f,a[15]=1,a}}(e.ViewMatrix||(e.ViewMatrix={}))},7418:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getValueFromRatio=e.defaultLerpFunc=void 0;var r=n(8144);e.defaultLerpFunc=function(t,e,n){return t*(1-n)+e*n},e.getValueFromRatio=function(t,e,n,i,o){for(var s,a,u,c,l=(0,r.getIterator)(e);;){var h=l.next(),p=h.done,f=h.value;if(p)break;if(void 0===f)throw new Error("typeof value === 'undefined'");var d=f.ratio,g=f.value;if(s=u,a=c&&i?i(c,null!=o?o:a):c,u=d,c=g,(void 0===s||t>=s)&&(void 0===u||t<=u)){if(void 0===s)return c&&i?i(c,o):c;if(void 0===u||void 0===c)throw new Error("typeof rightRatio === 'undefined'");return n(a,c,(t-s)/(u-s),o)}c=c&&i?i(c,o):c}if(void 0===u)throw new Error("typeof rightRatio === 'undefined'");if(t>u)return c;throw new Error("!(ratio > rightRatio)")}},7427:(t,e)=>{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.isCrossOriginUrl=void 0,e.isCrossOriginUrl=function(t){(n=null!=n?n:document.createElement("a")).href=window.location.href;var e=n.host,r=n.protocol;return n.href=t,n.href=n.href,r!==n.protocol||e!==n.host}},7445:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(9986),e),i(n(200),e),i(n(7324),e),i(n(4143),e),i(n(3951),e),i(n(8193),e),i(n(4123),e)},7500:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Vector4=void 0;var o=n(2731),s=n(9898),a=(0,o.createNumbers)(4,1,255,65025,16581375),u=(0,o.createNumbers)(4,1/255,1/255,1/255,0),c=(0,o.createNumbers)(4,1,1/255,1/65025,1/16581375),l=(0,o.createNumbers)(4);!function(t){t.packDepth=function(t,e){if(t<0||t>1)throw new Error("depth < 0 || depth > 1");if(1===t)return s.Vector.set(e,1,0,0,0);e=s.Vector.multiplyByScalar(a,t,e),s.Vector.fract(e,e);var n=s.Vector.set(l,e[1],e[2],e[3],e[3]);return s.Vector.multiply(n,u,n),s.Vector.subtract(e,n,e)},t.unpackDepth=function(t){return s.Vector.dot(t,c)};var e=new Uint32Array(1),n=new Uint8Array(e.buffer);t.uint32ToFourUint8s=function(t,o){if(t>4294967295)throw new Error("uint32Number(".concat(t,") > 0xFFFFFFFF"));return e[0]=t,s.Vector.set.apply(s.Vector,i([o],r(n),!1))},t.fourUint8sToUint32=function(t){return s.Vector.clone(t,n),e[0]},t.ONE=(0,o.createNumbers)(4,1,1,1,1),t.ZERO=(0,o.createNumbers)(4,0,0,0,0)}(e.Vector4||(e.Vector4={}))},7521:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.CanvasImagePoi=void 0;var s=n(1662),a=n(8106),u=n(5252),c=n(4499);function l(t,e){var n=o(e,3),r=n[0],i=n[1],a=n[2],u="".concat(r,"-").concat(i,"-").concat(a),l=(0,s.getExtProp)(t,u);return l||(l=(0,c.imageToCanvas)(t),(0,c.setCanvasUniformColor)(l,e),(0,s.setExtProp)(t,u,l)),l}var h=function(t){function e(e,n,r,i,o){void 0===r&&(r=[32,32]),void 0===i&&(i=[.5,1,0,0]),void 0===o&&(o="#F00F");var s=t.call(this,e)||this;s._image=n,s._size=r,s._originRatioAndOffset=i,s._defaultColorStr=o,s._tooltip="",s._title="",s.__scale=[1,1],s._tooltipAlpha=0,s._bgColor=[.3,.3,.3,.8],s._bgColorHexStr=(0,c.getColorHexStr)(s._bgColor),s._fgColor=[1,1,1,1],s._fgColorHexStr=(0,c.getColorHexStr)(s._fgColor);var u=new a.Transition(100),l=new a.Transition(100);s.dispose((function(){u.destroy(),l.destroy()}));var h=function(){if(s._clickEvent&&!s._clickEvent.empty){var t=(1+.08*l.current)*(1+.08*u.current);s._scale=[t,t],s._tooltipAlpha=u.current}};return s.dispose(s.activedChanged.disposableOn((function(t){l.target=t?1:0,s.needRedraw()}))),s.dispose(s.hoveredChanged.disposableOn((function(t){u.target=t?1:0,s.needRedraw()}))),s.dispose(s.selectedChanged.disposableOn((function(){s.needRedraw()}))),s.dispose(l.currentChanged.disposableOn(h)),s.dispose(u.currentChanged.disposableOn(h)),s}return i(e,t),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(t){var e=o(t,2),n=e[0],r=e[1],i=o(this._size,2),s=i[0],a=i[1];s===n&&a===r||(this._size[0]=n,this._size[1]=r,this.needRedraw(),this.needPickRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_scale",{get:function(){return this.__scale},set:function(t){var e=o(t,2),n=e[0],r=e[1],i=o(this.__scale,2),s=i[0],a=i[1];s===n&&a===r||(this.__scale[0]=n,this.__scale[1]=r,this.needRedraw(),this.needPickRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fgColor",{get:function(){return this._fgColor},set:function(t){if(!this._fgColor.every((function(e,n){return t[n]===e}))){var e=o(t,4),n=e[0],r=e[1],i=e[2],s=e[3];this._fgColor.splice(0,4,n,r,i,s),this._fgColorHexStr=(0,c.getColorHexStr)(this._fgColor),this.needRedraw()}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bgColor",{get:function(){return this._bgColor},set:function(t){if(!this._bgColor.every((function(e,n){return t[n]===e}))){var e=o(t,4),n=e[0],r=e[1],i=e[2],s=e[3];this._bgColor.splice(0,4,n,r,i,s),this._bgColorHexStr=(0,c.getColorHexStr)(this._bgColor),this.needRedraw()}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"originRatioAndOffset",{get:function(){return this._originRatioAndOffset},set:function(t){var e=o(this._originRatioAndOffset,4),n=e[0],r=e[1],i=e[2],s=e[3],a=o(t,4),u=a[0],c=a[1],l=a[2],h=a[3];n===u&&r===c&&i===l&&s===h||(this._originRatioAndOffset.splice(0,4,u,c,l,h),this.needRedraw(),this.needPickRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"image",{get:function(){return this._image},set:function(t){this._image!==t&&(this._image=t,this.needRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"defaultColorStr",{get:function(){return this._defaultColorStr},set:function(t){this._defaultColorStr!==t&&(this._defaultColorStr=t,this.needRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tooltip",{get:function(){return this._tooltip},set:function(t){this._tooltip!==t&&(this._tooltip=t,this.needRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._title},set:function(t){this._title!==t&&(this._title=t,this.needRedraw())},enumerable:!1,configurable:!0}),e.prototype.draw=function(t){if(this._show){var e=o(this._winPos,2),n=e[0],r=e[1],i=this._size[0]*this.__scale[0],s=this._size[1]*this.__scale[1],a=(0,c.getDrawRect)([n,r],this._size,this.__scale,this._originRatioAndOffset),u=a.left,h=a.top,p=t.globalAlpha;if(t.globalAlpha=this.opacity,this._image){if(this.selected){var f=l(this._image,[1,0,0]),d=(0,c.getDrawRect)([n,r+3],[i+6,s+6],[1,1],this._originRatioAndOffset),g=d.left,y=d.top;t.drawImage(f,g,y,i+6,s+6)}if(this.actived){var v=o(this._fgColor,4),m=v[0],_=v[1],b=v[2],w=(v[3],f=l(this._image,[m,_,b]),(0,c.getDrawRect)([n,r+4],[i+8,s+8],[1,1],this._originRatioAndOffset)),E=w.left,x=w.top;t.drawImage(f,E,x,i+8,s+8)}if(this.hovered){var P=o(this._bgColor,4),S=(m=P[0],_=P[1],b=P[2],P[3],l(this._image,[m,_,b])),O=(0,c.getDrawRect)([n,r+2],[i+4,s+4],[1,1],this._originRatioAndOffset),C=O.left,M=O.top;t.drawImage(S,C,M,i+4,s+4)}t.drawImage(this._image,u,h,i,s)}else t.fillStyle=this._fgColorHexStr,t.fillRect(u,h,i,s);if(""!==this._title&&(0,c.drawTextBlock)(t,n+20,r-16,[0,.5,0,0],this._title,"14px Arial",4,this._fgColorHexStr,this._bgColorHexStr),t.globalAlpha=p,this._hovered&&""!==this._tooltip){var I=t.globalAlpha;t.globalAlpha=this._tooltipAlpha,(0,c.drawTextBlock)(t,n,r-42,[.5,1,0,0],this._tooltip,"12px Arial",4,this._fgColorHexStr,this._bgColorHexStr),t.globalAlpha=I}}},e.prototype.drawForPick=function(t,e){if(this._show){var n=o(this._winPos,2),r=n[0],i=n[1],s=e("default"),a=this._size[0]*this.__scale[0],u=this._size[1]*this.__scale[1],l=(0,c.getDrawRect)([r,i],this._size,this.__scale,this._originRatioAndOffset),h=l.left,p=l.top;t.fillStyle=s,t.fillRect(h,p,a,u)}},e}(u.CanvasPoi);e.CanvasImagePoi=h},7529:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(3526),e),i(n(8368),e),i(n(8614),e),i(n(8301),e),i(n(9082),e),i(n(3315),e),i(n(7720),e)},7665:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ProjectionMatrix=void 0;var r,i,o=n(2731);(i=(r=e.ProjectionMatrix||(e.ProjectionMatrix={})).Perspective||(r.Perspective={})).compute=function(t,e,n,r,i){if(n<=0||r<=0||t<=0||t>=Math.PI)throw new Error("near <= 0 || far <= 0 || fovY <= 0 || fovY >= Math.PI");var s=1/Math.tan(.5*t),a=s/e,u=(r+n)/(n-r),c=2*r*n/(n-r);return(i=i||(0,o.createNumbers)(16))[0]=a,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=s,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=u,i[11]=-1,i[12]=0,i[13]=0,i[14]=c,i[15]=0,i},i.getSseDenominator=function(t){return 2/t[5]},i.getPerspectiveParams=function(t){var e=t,n=e[10],r=(n-1)/(n+1),i=e[14]*(r-1)/(-2*r),o=r*i,s=2*i/e[0],a=(s+e[8]*s)/2,u=a-s,c=2*i/e[5],l=(c+e[9]*c)/2;return{n:i,f:o,r:a,l:u,t:l,b:l-c}},i.resetNearFar=function(t,e,n,r,i,o,s,a){var u=t/s;return{l:n*=u,r:r*=u,b:i*=u,t:o*=u,n:s=t,f:e}},i.getFovAndAspectRatio=function(t,e,n,r,i,o){var s=(t+e)/2,a=(n+r)/2,u=e-s,c=r-a,l=2*Math.atan(u/i),h=2*Math.atan(c/i);return{xOffset:s,yOffset:a,fov:l>h?l:h,hFov:l,vFov:h,aspectRatio:u/c}}},7720:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.UiTreeObject=void 0;var s=n(1662),a={checked:1,unchecked:2,indeterminate:3},u=["checked","unchecked","indeterminate"],c=function(t){function e(e){var n=t.call(this)||this;n._treeItem=e,n._collapsed=n.disposeVar((0,s.react)(!1)),n._checkedStatus=n.disposeVar((0,s.react)("unchecked")),n._selected=n.disposeVar((0,s.react)(!1)),n._moveToPositionMode=n.disposeVar((0,s.react)("none")),n._updateCheckedStatusFromChildrenEvent=n.disposeVar(new s.Event);var r=function(){return n._treeItem.tree&&n._treeItem.tree.itemsChanged.emit([n._treeItem])};n.dispose(n._collapsed.changed.disposableOn(r)),n.dispose(n._checkedStatus.changed.disposableOn(r)),n.dispose(n._selected.changed.disposableOn(r)),n.dispose(n._moveToPositionMode.changed.disposableOn(r)),n.dispose(n._checkedStatus.changed.disposableOn((function(){return n._treeItem.parent&&n._treeItem.parent.uiTreeObject.updateCheckedStatusFromChildren()}))),n.dispose(n._treeItem.childrenChangedEvent.disposableOn((function(){n.updateCheckedStatusFromChildren()})));var i=n.disposeVar((0,s.createNextAnimateFrameEvent)(n._updateCheckedStatusFromChildrenEvent));return n.dispose(i.disposableOn((function(){if(n._treeItem.children){var t=0;(0,s.forEachWithBreak)(n._treeItem.children,(function(e){return 3==(t|=a[e.uiTreeObject.checkedStatus])})),t>0&&(n._checkedStatus.value=u[t-1])}}))),n.dispose(n._treeItem.childrenResetedEvent.disposableOn((function(t){t||"indeterminate"!==n.checkedStatus||(n._checkedStatus.value="unchecked")}))),n.dispose(n._selected.changed.disposableOn((function(t){var e=n._treeItem.tree;e&&function(t,e,r){if(void 0===r&&(r=!0),e)t.selectedItems.push(n._treeItem);else{var i=t.selectedItems.indexOf(n._treeItem);-1===i?r&&console.error("selectedItems index -1"):t.selectedItems.splice(i,1)}}(e,t)}))),n.dispose((function(){return n.selected=!1})),n}return i(e,t),Object.defineProperty(e.prototype,"treeItem",{get:function(){return this._treeItem},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"collapsed",{get:function(){return this._collapsed.value},set:function(t){this._collapsed.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"collapsedChanged",{get:function(){return this._collapsed.changed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"checkedStatus",{get:function(){return this._checkedStatus.value},enumerable:!1,configurable:!0}),e.prototype.check=function(t){var e,n,r=t?"checked":"unchecked";if(this._checkedStatus.value!==r&&(this._checkedStatus.value=r,this._treeItem.children))try{for(var i=o(this._treeItem.children),s=i.next();!s.done;s=i.next())s.value.uiTreeObject.check(t)}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},e.prototype.updateCheckedStatusFromChildren=function(){this._updateCheckedStatusFromChildrenEvent.emit()},Object.defineProperty(e.prototype,"checkedStatusChanged",{get:function(){return this._checkedStatus.changed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected.value},set:function(t){this._selected.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectedChanged",{get:function(){return this._selected.changed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"moveToPositionMode",{get:function(){return this._moveToPositionMode.value},set:function(t){this._moveToPositionMode.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"moveToPositionModeChanged",{get:function(){return this._moveToPositionMode.changed},enumerable:!1,configurable:!0}),e}(s.Destroyable);e.UiTreeObject=c},7793:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createGuid=void 0,e.createGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}},7941:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},7963:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.ComplexImage=e.getTypeFromImageUri=void 0;var o=n(1662),s=n(1662),a=n(3815),u=n(7014),c=n(9409),l=n(1851),h=n(3096),p=n(5925),f=n(5210),d=n(1291);function g(t){var e=t.substring(t.lastIndexOf(".")+1);return y.suffixTypes[e]}e.getTypeFromImageUri=g;var y=function(t){function e(){var e=t.call(this)||this;return e._enabled=e.disposeVar((0,s.react)(!1)),e._uri=e.disposeVar((0,s.react)("")),e._type=e.disposeVar((0,s.react)(void 0)),e._size=e.disposeVar((0,s.reactArrayWithUndefined)(void 0)),e._pixelFormat=e.disposeVar((0,s.react)("RGBA")),e._flipY=e.disposeVar((0,s.react)(!0)),e._crossOriginReact=e.disposeVar((0,s.react)("")),e._autoplayReact=e.disposeVar((0,s.react)(!0)),e._loopReact=e.disposeVar((0,s.react)(!0)),e._copyTextureEvent=e.disposeVar(new o.Event),e._imageProcessingResettingEvent=e.disposeVar((0,o.createNextAnimateFrameEvent)(e.enabledChanged,e.uriChanged,e.typeChanged)),e._imageProcessingResetting=e.disposeVar(new a.ObjResettingWithEvent(e._imageProcessingResettingEvent,(function(){do{if(!e.enabled)break;if(!e.uri)break;var t=e.type;if(t||(t=g(e.uri)),!t)break;if("img"===t)return new u.ImageProcessing(e,e.uri);if("video"===t)return new h.VideoProcessing(e,e.uri);if("gif"===t)return new p.GifProcessing(e,e.uri);if("hls"===t)return new f.HlsProcessing(e,e.uri);if("flv"===t)return new d.FlvProcessing(e,e.uri)}while(0)}))),e._createNativeTextureEvent=e.disposeVar((0,o.createNextAnimateFrameEvent)(e.enabledChanged,e.sizeChanged,e.pixelFormatChanged,e.flipYChanged)),e}return i(e,t),Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled.value},set:function(t){this._enabled.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enabledChanged",{get:function(){return this._enabled.changed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri.value},set:function(t){this._uri.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uriChanged",{get:function(){return this._uri.changed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type.value},set:function(t){this._type.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"typeChanged",{get:function(){return this._type.changed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size.value},set:function(t){this._size.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sizeChanged",{get:function(){return this._size.changed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pixelFormat",{get:function(){return this._pixelFormat.value},set:function(t){this._pixelFormat.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pixelFormatChanged",{get:function(){return this._pixelFormat.changed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"flipY",{get:function(){return this._flipY.value},set:function(t){this._flipY.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"flipYChanged",{get:function(){return this._flipY.changed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"crossOrigin",{get:function(){return this._crossOriginReact.value},set:function(t){this._crossOriginReact.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"crossOriginChanged",{get:function(){return this._crossOriginReact.changed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"autoplay",{get:function(){return this._autoplayReact.value},set:function(t){this._autoplayReact.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"autoplayChanged",{get:function(){return this._autoplayReact.changed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loop",{get:function(){return this._loopReact.value},set:function(t){this._loopReact.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loopChanged",{get:function(){return this._loopReact.changed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"copyTextureEvent",{get:function(){return this._copyTextureEvent},enumerable:!1,configurable:!0}),e.prototype.copyTexture=function(t){this._createNativeTextureEvent.flush(),this._copyTextureEvent.emit(t)},Object.defineProperty(e.prototype,"imageProcessingResetting",{get:function(){return this._imageProcessingResetting},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"createNativeTextureEvent",{get:function(){return this._createNativeTextureEvent},enumerable:!1,configurable:!0}),e.prototype.copyFromCanvas=function(t){t.width<=0||t.height<=0?console.warn("canvas.width <= 0 || canvas.height <= 0"):(this.size=[t.width,t.height],this.pixelFormat="RGBA",this.copyTexture({source:t}))},e.types=l.complexImageTypes,e.czmPixelFormats=c.czmPixelFormats,e.suffixTypes={png:"img",jpg:"img",svg:"img",webp:"img",gif:"gif",mp4:"video",mov:"video",webm:"video",flv:"flv",m3u8:"hls"},e}(o.Destroyable);e.ComplexImage=y},8042:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._transpose=void 0;var r=n(2731);e._transpose=function(t,e){var n=t[1],i=t[2],o=t[3],s=t[6],a=t[7],u=t[11];return(e=e||(0,r.createNumbers)(16))[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=n,e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=i,e[9]=s,e[10]=t[10],e[11]=t[14],e[12]=o,e[13]=a,e[14]=u,e[15]=t[15],e}},8055:function(t,e){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.CancelError=void 0;var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(Error);e.CancelError=i},8089:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Matrix4=void 0;var o=n(4915),s=n(2731),a=n(9549),u=n(9898),c=n(5985),l=n(8533),h=n(4209),p=n(6021),f=n(4601),d=n(2830),g=n(8042),y=n(6680),v=n(723),m=n(3300);!function(t){function e(t,e,n){return(0,y._fromMatrix3AndTranslation)(t,e,n)}t.getElementIndex=function(t,e){if(t<0||t>3||e<0||e>3)throw new Error("column < 0 || column > 3 || row < 0 || row > 3");return 4*t+e},t.getColumn=function(t,e,n){return(0,l._getColumn)(t,e,n)},t.setColumn=function(t,e,n,r){return(0,l._setColumn)(t,e,n,r)},t.getRow=function(t,e,n){return(0,f._getRow)(t,e,n)},t.setRow=function(t,e,n,r){(0,f._setRow)(t,e,n,r)},t.getTranslation=function(t,e){return(0,d._getTranslation)(t,e)},t.setTranslation=function(t,e,n){return(0,d._setTranslation)(t,e,n)},t.getScale=function(t,e){return(0,m._getScale)(t,e)},t.setScale=function(t,e,n){return(0,m._setScale)(t,e,n)},t.getMaximumScale=function(t){return(0,m._getMaximumScale)(t)},t.multiply=function(t,e,n){return(0,p._multiply)(t,e,n)},t.multiplyTransformation=function(t,e,n){return(0,p._multiplyTransformation)(t,e,n)},t.multiplyByMatrix3=function(t,e,n){return(0,p._multiplyByMatrix3)(t,e,n)},t.multiplyByTranslation=function(t,e,n){return(0,p._multiplyByTranslation)(t,e,n)},t.multiplyByUniformScale=function(t,e,n){(0,p._multiplyByUniformScale)(t,e,n)},t.multiplyByScale=function(t,e,n){return(0,p._multiplyByScale)(t,e,n)},t.multiplyByVector=function(t,e,n){return(0,p._multiplyByVector)(t,e,n)},t.multiplyByPointAsVector=function(t,e,n){return(0,p._multiplyByPointAsVector)(t,e,n)},t.affineMultiplyByPoint=function(t,e,n){return(0,p._affineMultiplyByPoint)(t,e,n)},t.multiplyByPoint=function(t,e,n){return(0,p._multiplyByPoint)(t,e,n)},t.continuousMultiply=function(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];return p._continuousMultiply.apply(void 0,i([t,e],r(n),!1))},t.transpose=function(t,e){return(0,g._transpose)(t,e)},t.getMatrix3=function(t,e){return(e=e||(0,s.createNumbers)(9))[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e},t.setMatrix3=function(e,n){(n=n||u.Vector.clone(t.IDENTITY))[0]=e[0],n[1]=e[1],n[2]=e[2],n[4]=e[3],n[5]=e[4],n[6]=e[5],n[8]=e[6],n[9]=e[7],n[10]=e[8]},t.inverse=function(t,e){return(0,h.inverse)(t,e)},t.inverseTransformation=function(t,e){return(0,v._inverseTransformation)(t,e)},t.IDENTITY=Object.freeze([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),t.ZERO=Object.freeze([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),t.fromTranslation=function(t,e){return(0,y._fromTranslation)(t,e)},t.fromMatrix3AndTranslation=e;var n=(0,s.createNumbers)(9);t.fromRotateQuatAndTranslation=function(t,r,i){return o.Matrix3.fromQuaternion(t,n),e(n,r,i)},t.fromDirectionUpRightAndTranslation=function(t,e,n,r,i){return(0,y._fromDirectionUpRightAndTranslation)(t,e,n,r,i)},t.fromScale=function(t,e){return u.Vector.set(e,t[0],0,0,0,0,t[1],0,0,0,0,t[2],0,0,0,0,1)};var _=a.Quaternion.fromAxisAngle([1,0,0],.5*Math.PI),b=o.Matrix3.fromQuaternion(_);t.Z2NY=t.fromMatrix3AndTranslation(b);var w=(0,s.createNumbers)(4),E=(0,s.createNumbers)(9);t.fromAxisAngle=function(e,n,r){return a.Quaternion.fromAxisAngle(e,n,w),o.Matrix3.fromQuaternion(w,E),t.fromMatrix3AndTranslation(E,c.Vector3.ZERO,r)}}(e.Matrix4||(e.Matrix4={}))},8106:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(6148),e),i(n(9972),e),i(n(9374),e),i(n(6888),e),i(n(1801),e),i(n(5582),e),i(n(4661),e),i(n(1943),e),i(n(2051),e)},8144:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getIterator=void 0,e.getIterator=function(t){var e;if("function"==typeof t.next)e=t;else{if("function"!=typeof t[Symbol.iterator])throw new Error("iteratorOrIterable error!");e=t[Symbol.iterator]()}return e}},8193:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.ToolTipDiv=void 0;var s=function(t){function e(){var e=t.call(this)||this;e._text="";var n=document.createElement("div");e._div=n,n.style.cssText="width: 0px; height: 0px; position: absolute; opacity: 1.0; visibility: visible; transition: opacity 0.5s;";var r=document.createElement("div");r.style.cssText="position: absolute; left: 0px; bottom: 0px; transform: translateX(-50%); margin: 0; padding: 0; pointer-events: none;";var i=document.createElement("div");return i.style.cssText="position: relative; background-color: rgba(0, 0, 0, 0.7); border-radius: 5px; padding: 3px; pointer-events: all; color: white; white-space: nowrap;",i.innerText=e._text,e._div.appendChild(r),r.appendChild(i),e._contentContainer=i,e._div=n,e.dispose(e.winPosChanged.disposableOn((function(t){var n=o(t,2),r=n[0],i=n[1];e._div.style.left="".concat(r,"px"),e._div.style.top="".concat(i-50,"px")}))),e.dispose(e.opacityChanged.disposableOn((function(t){e._div.style.opacity="".concat(t)}))),e.dispose(e.showChanged.disposableOn((function(t){e._div.style.visibility=t?"visible":"hidden"}))),e}return i(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return this._div},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.opacity=1,this.show=!0},Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(t){this._text!==t&&(this._text=t,this._contentContainer.innerText=t)},enumerable:!1,configurable:!0}),e}(n(7324).FloatDiv);e.ToolTipDiv=s},8196:function(t,e,n){"use strict";var r=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.ProcessingStarter=void 0;var o=n(7372),s=n(1662),a=n(8055),u=function(){function t(t){this._startParams=t,this._cancelled=!1,this._cancelsMap=new Map}return Object.defineProperty(t.prototype,"disposer",{get:function(){var t=this;return this._disposer||(this._disposer=new o.Destroyable,this._disposer.dispose((function(){return t._disposer=void 0}))),this._disposer},enumerable:!1,configurable:!0}),t.prototype.cancel=function(t){var e,n,i;if(!this._cancelled){this._cancelled=!0,null===(i=this._disposer)||void 0===i||i.destroy(),this._cancelError=t;try{for(var o=r(this._cancelsMap.values()),s=o.next();!s.done;s=o.next())(0,s.value)(t)}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}this._cancelsMap.clear()}},t.prototype.check=function(){var t;if(this._cancelled)throw null!==(t=this._cancelError)&&void 0!==t?t:new a.CancelError("cancel from CancelManager!")},Object.defineProperty(t.prototype,"cancelFuncsNum",{get:function(){return(0,s.reduce)(this._cancelsMap.keys(),(function(t){return t+1}),0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processingID",{get:function(){return this._startParams.processingID},enumerable:!1,configurable:!0}),t.prototype.promises=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.map((function(e){var n=i(e,2),r=n[0],o=n[1];return t._cancelsMap.set(o,r),o.finally((function(){return t._cancelsMap.delete(o)}))}))},t.prototype.promise=function(t){var e=this,n=i(t,2),r=n[0],o=n[1];return this._cancelsMap.set(o,r),o.finally((function(){return e._cancelsMap.delete(o)}))},t.prototype.promiseAny=function(t){var e=this,n=[],r=t.map((function(t){var r=i(t,2),o=r[0],s=r[1];return e._cancelsMap.set(s,o),n.push(o),s.finally((function(){return e._cancelsMap.delete(s)}))}));return Promise.any(r).finally((function(){return n.forEach((function(t){return t(new a.CancelError("cancel from promiseAny!"))}))}))},t.prototype.promiseAll=function(t){var e=this,n=[],r=t.map((function(t){var r=i(t,2),o=r[0],s=r[1];return e._cancelsMap.set(s,o),n.push(o),s.finally((function(){return e._cancelsMap.delete(s)}))}));return Promise.all(r).finally((function(){return n.forEach((function(t){return t(new a.CancelError("cancel from promiseAll!"))}))}))},t.prototype.promiseRace=function(t){var e=this,n=[],r=t.map((function(t){var r=i(t,2),o=r[0],s=r[1];return e._cancelsMap.set(s,o),n.push(o),s.finally((function(){return e._cancelsMap.delete(s)}))}));return Promise.race(r).finally((function(){return n.forEach((function(t){return t(new a.CancelError("cancel from promiseRace!"))}))}))},t.prototype.checkAndPromises=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.map((function(e){var n=i(e,2),r=n[0],o=n[1];return t._cancelsMap.set(o,r),o.finally((function(){return t._cancelsMap.delete(o),t.check()}))}))},t.prototype.checkAndPromise=function(t){var e=this;return t instanceof Promise?t.finally((function(){return e.check()})):this.promise(t).finally((function(){return e.check()}))},t.prototype.complete=function(t){var e;0!==this.cancelFuncsNum&&console.warn("complete: this.cancelFuncsNum(".concat(this.cancelFuncsNum,")不为0!")),null===(e=this._disposer)||void 0===e||e.destroy(),this._cancelsMap.clear(),this._startParams.completeFunc(t)},t.prototype.error=function(t){var e;null===(e=this._disposer)||void 0===e||e.destroy(),this._cancelsMap.clear(),this._startParams.errorFunc(t)},t.prototype.progressFunc=function(t){this._startParams.progressFunc(t)},t.prototype.forceCancel=function(t){return this._startParams.cancelFunc(t)},t}();e.ProcessingStarter=u},8301:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},a=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Tree=void 0;var u=n(1662),c=n(9082),l=n(3315),h=n(8368),p=function(t){function e(n){var r=t.call(this)||this;return r._root=r.disposeVar(new c.TreeItem(r,!0,"_ROOT")),r._itemChildrenChanged=r.disposeVar(new u.Event),r._itemChildrenToChange=r.disposeVar(new u.Event),r._itemsAdded=r.disposeVar(new u.Event),r._itemsDeleted=r.disposeVar(new u.Event),r._itemsChanged=r.disposeVar(new u.Event),r._transactionStack=0,r._addedItems=new Set,r._deletedItems=new Set,r._selectedItems=r.disposeVar(new u.ObservableArray),r._itemDivHeight=r.disposeVar((0,u.react)(e.defaultItemDivHeight)),r._forceRedrawEvent=r.disposeVar(new u.Event),r._uiTree=r.disposeVar(new l.UiTree(r)),r._root._tree.value=r,r.dispose(r._itemChildrenToChange.disposableOn((function(t,e){var n,i,s,a;if(t.children){try{for(var u=o(e),c=u.next();!c.done;c=u.next()){for(var l=c.value,h=l.start,p=l.deleteCount,f=l.items,d=h;d<h+p;++d){var g=t.children.get(d);r._deletedItems.has(g)?console.error("this._deletedItems.has(currentItem(".concat(g.id,"))")):r._deletedItems.add(g)}try{for(var y=(s=void 0,o(f)),v=y.next();!v.done;v=y.next())g=v.value,r._deletedItems.has(g)?r._deletedItems.delete(g):r._addedItems.add(g)}catch(t){s={error:t}}finally{try{v&&!v.done&&(a=y.return)&&a.call(y)}finally{if(s)throw s.error}}}}catch(t){n={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}r._execTransaction()}else console.error("!item.children")}))),void 0!==n&&(r.itemDivHeight=n),r}return i(e,t),Object.defineProperty(e.prototype,"selectedItems",{get:function(){return this._selectedItems},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastSelectedItem",{get:function(){return this._selectedItems.length>0?this._selectedItems.get(this._selectedItems.length-1):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"itemDivHeight",{get:function(){return this._itemDivHeight.value},set:function(t){this._itemDivHeight.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"itemDivHeightChanged",{get:function(){return this._itemDivHeight.changed},enumerable:!1,configurable:!0}),e.prototype.forceRedraw=function(){this._forceRedrawEvent.emit()},Object.defineProperty(e.prototype,"uiTree",{get:function(){return this._uiTree},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this._root},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._root.children},enumerable:!1,configurable:!0}),e.prototype.getDescendants=function(t){return this._root.getDescendants(t)},e.prototype.getTreeItemFromId=function(t){var e,n,r=void 0;try{for(var i=o(this.getDescendants()),s=i.next();!s.done;s=i.next()){var a=s.value;if(a.id===t){r=a;break}}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r},e.prototype._startTransaction=function(){0===this._transactionStack&&(this._deletedItems.size>0&&(console.warn("this._deletedItems.size > 0"),this._deletedItems.clear()),this._addedItems.size>0&&(console.warn("this._addedItems.size > 0"),this._addedItems.clear())),++this._transactionStack},e.prototype._stopTransaction=function(){--this._transactionStack,this._execTransaction()},e.prototype._execTransaction=function(){0===this._transactionStack&&(this._deletedItems.size>0&&(this._itemsDeleted.emit(a([],s(this._deletedItems),!1)),this._deletedItems.clear()),this._addedItems.size>0&&(this._itemsAdded.emit(a([],s(this._addedItems),!1)),this._addedItems.clear()))},Object.defineProperty(e.prototype,"itemChildrenChanged",{get:function(){return this._itemChildrenChanged},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"itemChildrenToChange",{get:function(){return this._itemChildrenToChange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"itemsChanged",{get:function(){return this._itemsChanged},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"itemsAdded",{get:function(){return this._itemsAdded},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"itemsDeleted",{get:function(){return this._itemsDeleted},enumerable:!1,configurable:!0}),e.defaultItemDivHeight=24,e.canMoveToTreeItem=h.canMoveToTreeItem,e.moveToTreeItem=h.moveToTreeItem,e.canMoveToTreeItems=h.canMoveToTreeItems,e.moveToTreeItems=h.moveToTreeItems,e}(u.Destroyable);e.Tree=p},8368:function(t,e,n){"use strict";var r=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.moveToTreeItems=e.canMoveToTreeItems=e.moveToTreeItem=e.canMoveToTreeItem=void 0;var i=n(1662);function o(t,e,n){if(t.tree!==e.tree||t===e||t.isAncestorOf(e))return!1;if(t.tree!==e.tree)return!1;if(!t.parent)return!1;if(!t.parent.children)throw console.error("当前节点的父节点没有子节点?这是不可能的!"),new Error("当前节点的父节点没有子节点?这是不可能的!");return!(e===t||t.isAncestorOf(e)||"inner"!==n&&!e.parent||"inner"===n&&!e.children)}function s(t,e,n){if(t.tree&&e.tree&&t.tree===e.tree)if(t.parent){if(!t.parent.children)throw console.error("当前节点的父节点没有子节点?这是不可能的!"),new Error("当前节点的父节点没有子节点?这是不可能的!");if(e!==t)if(t.isAncestorOf(e))console.warn("当前节点不能拖放到它自身的后代节点之上!");else if("inner"===n||e.parent)if("inner"!==n||e.children){t.tree._startTransaction();var r=t.parent.children.indexOf(t);if(t.parent.children.splice(r,1),"inner"!==n){var i=e.parent;if(!i||!i.children)throw new Error("!parent");var o=i.children.indexOf(e);"before"===n?i.children.splice(o,0,t):"after"===n&&i.children.splice(o+1,0,t)}else e.children.push(t);t.tree._stopTransaction()}else console.warn("无法移动到目标节点的子节点中,因为目标节点不是组节点!");else console.warn("目标节点没有父节点,无法拖放!");else console.warn("自身不能拖放到自身!")}else console.warn("当前节点没有父节点,那么该节点无法被移动!")}e.canMoveToTreeItem=o,e.moveToTreeItem=s,e.canMoveToTreeItems=function(t,e,n){return(0,i.every)(t,(function(t){return o(t,e,n)}))},e.moveToTreeItems=function(t,e,n){var i,a;try{for(var u=r(t),c=u.next();!c.done;c=u.next()){var l=c.value;o(l,e,n)?s(l,e,n):console.warn("treeItem(id: ".concat(l.id,") cannot move..."))}}catch(t){i={error:t}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}}},8421:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.unLoading=e.UnLoading=void 0;var o=n(1662),s=function(t){function e(){var e=t.call(this)||this;return e._unloadEvent=e.disposeVar(new o.Event),window.addEventListener("beforeunload",(function(){e._unloadEvent.emit(),e.destroy()})),e}return i(e,t),e.prototype.unload=function(t){this.dispose(this._unloadEvent.disposableOn(t,unescape,!0))},e}(o.Destroyable);e.UnLoading=s,e.unLoading=new s},8453:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.loadBASIS=e.CompressedTextureBuffer=void 0;var r=n(9928);Object.defineProperty(e,"CompressedTextureBuffer",{enumerable:!0,get:function(){return r.CompressedTextureBuffer}});var i=n(2075),o=n(3631),s=n(5486),a=n(1662),u=Error,c=new i.TaskProcessor("transcodeBASISToTexture",Number.POSITIVE_INFINITY);e.loadBASIS=function(t,e){if(!t)throw new u("resourceOrUrlOrBuffer is required.");var n;if(n=t instanceof ArrayBuffer||ArrayBuffer.isView(t)?o.when.resolve(t):(0,a.fetchArrayBuffer)(t),(0,s.defined)(n))return n.then((function(t){if((0,s.defined)(t)){var n=[];t instanceof ArrayBuffer?n.push(t):(0===t.byteOffset&&t.byteLength===t.buffer.byteLength||(t=t.slice(0,t.length)),n.push(t.buffer));var r={data:t,textureFormat:e};return c.scheduleTask(r,n)}})).then((function(t){return t||console.error("compressedTextureBuffer is undefined!"),r.CompressedTextureBuffer.clone(t)}))}},8466:(t,e)=>{"use strict";function n(t,e){var n=t*t,r=n*t,i=t+t+t,o=n+n+n,s=r+r+r,a=1-i+o-r,u=i-(o+o)+s,c=o-s,l=r;return e?(e[0]=a,e[1]=u,e[2]=c,e[3]=l,e):[a,u,c,l]}Object.defineProperty(e,"__esModule",{value:!0}),e.computBezierSpline3BaseFactors=e.bezierSpline3=e.bezierSpline3WithBaseFactor=e.getBezierSpline3BaseFactor=void 0,e.getBezierSpline3BaseFactor=n,e.bezierSpline3WithBaseFactor=function(t,e,n,r,i,o,s){for(var a=null!=s?s:new Array(e),u=0;u<e;++u)a[u]=t[0]*n[u]+t[1]*r[u]+t[2]*i[u]+t[3]*o[u];return a},e.bezierSpline3=function(t,e,r,i,o,s,a){for(var u=n(t),c=null!=a?a:new Array(e),l=0;l<e;++l)c[l]=u[0]*r[l]+u[1]*i[l]+u[2]*o[l]+u[3]*s[l];return c},e.computBezierSpline3BaseFactors=function(t){for(var e=new Array(t+1),r=1/t,i=0,o=0;o<t;++o)e[o]=n(i),i+=r;return e}},8533:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._setColumn=e._getColumn=void 0;var r=n(2731),i=n(9898);e._getColumn=function(t,e,n){if(e<0||e>3)throw new Error("index < 0 || index > 3");var i=4*e,o=t[i],s=t[i+1],a=t[i+2],u=t[i+3];return(n=n||(0,r.createNumbers)(4))[0]=o,n[1]=s,n[2]=a,n[3]=u,n},e._setColumn=function(t,e,n,r){if(e<0||e>3)throw new Error("index < 0 || index > 3");var o=4*e;return(r=i.Vector.clone(t,r))[o]=n[0],r[o+1]=n[1],r[o+2]=n[2],r[o+3]=n[3],r}},8576:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(3207),e)},8584:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.downloadLink=void 0,e.downloadLink=function(t,e){var n=document.createElement("a"),r=new MouseEvent("click");n.download=e||"下载",n.href=t,n.dispatchEvent(r)}},8614:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},8703:function(t,e,n){"use strict";var r=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e._getCullingVolumeFromProjectionMatrix=void 0;var o=i(n(9812)),s=n(2731),a=n(9898);function u(t,e,n){return t[4*(n-1)+(e-1)]}e._getCullingVolumeFromProjectionMatrix=function(t,e){var n,i,c=t;if(6!==(e=e||new o.default([(0,s.createNumbers)(4),(0,s.createNumbers)(4),(0,s.createNumbers)(4),(0,s.createNumbers)(4),(0,s.createNumbers)(4),(0,s.createNumbers)(4)])).planes.length)throw new Error("!target.planes || target.planes.length !== 6");a.Vector.set(e.planes[0],u(c,4,1)+u(c,1,1),u(c,4,2)+u(c,1,2),u(c,4,3)+u(c,1,3),u(c,4,4)+u(c,1,4)),a.Vector.set(e.planes[1],u(c,4,1)-u(c,1,1),u(c,4,2)-u(c,1,2),u(c,4,3)-u(c,1,3),u(c,4,4)-u(c,1,4)),a.Vector.set(e.planes[2],u(c,4,1)+u(c,2,1),u(c,4,2)+u(c,2,2),u(c,4,3)+u(c,2,3),u(c,4,4)+u(c,2,4)),a.Vector.set(e.planes[3],u(c,4,1)-u(c,2,1),u(c,4,2)-u(c,2,2),u(c,4,3)-u(c,2,3),u(c,4,4)-u(c,2,4)),a.Vector.set(e.planes[4],u(c,4,1)+u(c,3,1),u(c,4,2)+u(c,3,2),u(c,4,3)+u(c,3,3),u(c,4,4)+u(c,3,4)),a.Vector.set(e.planes[5],u(c,4,1)-u(c,3,1),u(c,4,2)-u(c,3,2),u(c,4,3)-u(c,3,3),u(c,4,4)-u(c,3,4));try{for(var l=r(e.planes),h=l.next();!h.done;h=l.next()){var p=h.value;a.Vector.normalize(p,p)}}catch(t){n={error:t}}finally{try{h&&!h.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}return e}},8835:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.bindu=e.bind=e.track=e.getCompleteReactParams=void 0;var o=n(2168),s=n(3915);function a(t){var e=t instanceof s.ReactiveVariable?[t,"value","changed"]:i([],r(t),!1);return e[2]=e[2]||e[1]+"Changed",e}function u(t,e,n,r){void 0===r&&(r=!1),e[2]=e[2]||e[1]+"Changed";var i=function(){var r=e[0][e[1]];t[0][t[1]]=n?n(r):r};return i(),r?e[0][e[2]].disposableWeakOn(i):e[0][e[2]].disposableOn(i)}function c(t,e,n,r,i){return void 0===i&&(i=!1),function(t,e,n,r,i){void 0===i&&(i=!1);var o=u(t,e,n,i),s=u(e,t,r,i);return function(){return o(),s()}}(a(t),a(e),n,r,i)}e.getCompleteReactParams=a,e.track=function(t,e,n,r){return void 0===r&&(r=!1),u(t instanceof s.ReactiveVariable?[t,"value","changed"]:t,e instanceof s.ReactiveVariable?[e,"value","changed"]:e,n,r)},e.bind=c,e.bindu=function(t,e,n,i){void 0===i&&(i=!1);var s=r((0,o.getReactFuncs)(e),1)[0];return c(t,e,(function(t){return null!=t?t:n}),(function(t){return t===n&&void 0===s()?void 0:t}),i)}},8992:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.throttle=void 0;var o=n(773);e.throttle=function(t,e,n){void 0===n&&(n=o.defaultStartUpdateFunc);var s=Number.NEGATIVE_INFINITY,a=void 0;return[function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];a=t},n&&n((function(n){n-s>e&&a&&(t.apply(void 0,i([],r(a),!1)),a=void 0,s=n)}))||void 0]}},8995:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},s=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.NextMicroTaskEvent=e.NextMicroTask=e.NextAnimationFrame=e.getPromiseFromAsyncFunc=e.getPromiseFromProcessing=e.getProcessingFromPromise=void 0;var u=n(7372),c=n(7372),l=n(5675),h=n(6891);function p(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=-1;return[function(e){return r===t.processingID&&t.isRunning&&t.cancel(e)},new Promise((function(n,i){t.isRunning&&t.cancel(),t.reset();var a=t.finishedEvent.disposableOn((function(t){"Error"===t.status?i(t.error):"Cancelled"===t.status?i(t.cancelError):"Completed"===t.status&&n(t.value),a()}));t.start.apply(t,s([],o(e),!1)),r=t.processingID}))]}e.getProcessingFromPromise=function(t){return new h.ProcessingDeprecated((function(e){var n=e.completeFunc,r=e.errorFunc,i=!1;return t.then((function(t){i||n(t)})).catch((function(t){i||r(t)})),function(){i=!0}}))},e.getPromiseFromProcessing=p,e.getPromiseFromAsyncFunc=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=(0,l.createProcessing)(t),i=o(p.apply(void 0,s([r],o(e),!1)),2);return[i[0],i[1].finally((function(){return r.destroy()}))]};var f=function(t){function e(e){return t.call(this,(function(t){for(var n=t.completeFunc,r=t.errorFunc,i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];var u=requestAnimationFrame((function(t){try{var a=e.apply(void 0,s([],o(i),!1));n(a)}catch(t){r(t)}}));return function(){return cancelAnimationFrame(u)}}))||this}return i(e,t),e}(h.ProcessingDeprecated);e.NextAnimationFrame=f;var d=function(t){function e(e){return t.call(this,(function(t){for(var n,r=t.completeFunc,i=t.errorFunc,a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];return new Promise((function(t,e){n=e,t()})).then((function(){r(e.apply(void 0,s([],o(a),!1)))})).catch(i),function(){n&&n()}}))||this}return i(e,t),e}(h.ProcessingDeprecated);e.NextMicroTask=d;var g=function(t){function e(){for(var e,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=t.call(this)||this;o._event=new c.Event;try{for(var s=a(r),u=s.next();!u.done;u=s.next()){var l=u.value;o.dispose(l.disposableOn((function(){!h.isRunning&&h.restart()})))}}catch(t){e={error:t}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}var h=new d((function(){o._event.emit()}));return o.dispose((function(){return h.destroy()})),o}return i(e,t),Object.defineProperty(e.prototype,"event",{get:function(){return this._event},enumerable:!1,configurable:!0}),e}(u.Destroyable);e.NextMicroTaskEvent=g},8997:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}},a=this&&this.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t="function"==typeof c?c(t):t[Symbol.iterator](),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){!function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)}(r,i,(e=t[n](e)).done,e.value)}))}}},u=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultGetLocalFilePath=e.defaultLocalFileServer=e.LocalFileServer=e.LocalRootDir=e.getFileArrayBuffer=e.getFileJson=e.getFileText=e.getSubEntriesFromDir=void 0;var l=n(7372);function h(t){var e,n,r,i;return o(this,void 0,void 0,(function(){var o,c,l,h,p,f,d,g,y,v,m;return s(this,(function(s){switch(s.label){case 0:o=[],c=[],l=t.entries(),s.label=1;case 1:s.trys.push([1,6,7,12]),h=!0,p=a(l),s.label=2;case 2:return[4,p.next()];case 3:if(f=s.sent(),e=f.done)return[3,5];i=f.value,h=!1;try{d=u(i,2),g=d[0],y=d[1],"file"===(v=y).kind?o.push(g):"directory"===v.kind&&c.push(g)}finally{h=!0}s.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return m=s.sent(),n={error:m},[3,12];case 7:return s.trys.push([7,,10,11]),h||e||!(r=p.return)?[3,9]:[4,r.call(p)];case 8:s.sent(),s.label=9;case 9:return[3,11];case 10:if(n)throw n.error;return[7];case 11:return[7];case 12:return[2,{files:o,dirs:c}]}}))}))}function p(t){return o(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,t.getFile()];case 1:return[4,e.sent().text()];case 2:return[2,e.sent()]}}))}))}function f(t){return o(this,void 0,void 0,(function(){var e;return s(this,(function(n){switch(n.label){case 0:return[4,p(t)];case 1:e=n.sent();try{return[2,JSON.parse(e)]}catch(t){return[2,void 0]}return[2]}}))}))}function d(t){return o(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,t.getFile()];case 1:return[4,e.sent().arrayBuffer()];case 2:return[2,e.sent()]}}))}))}e.getSubEntriesFromDir=h,e.getFileText=p,e.getFileJson=f,e.getFileArrayBuffer=d;var g=function(t){function e(e){var n=t.call(this)||this;return n._rootDirHandle=e,n}return i(e,t),Object.defineProperty(e.prototype,"rootDirHandle",{get:function(){return this._rootDirHandle},enumerable:!1,configurable:!0}),e.prototype.getSubFilesAndDirs=function(){return o(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,h(this._rootDirHandle)];case 1:return[2,t.sent()]}}))}))},e.prototype.getDir=function(t){return o(this,void 0,void 0,(function(){var e,n,r,i,o,a,u;return s(this,(function(s){switch(s.label){case 0:e=this._rootDirHandle,s.label=1;case 1:s.trys.push([1,6,7,8]),n=c(t),r=n.next(),s.label=2;case 2:return r.done?[3,5]:(i=r.value,[4,null==e?void 0:e.getDirectoryHandle(i)]);case 3:if(!(e=s.sent()))return console.log("getDirectoryHandle ".concat(i," failed")),[2,void 0];s.label=4;case 4:return r=n.next(),[3,2];case 5:return[3,8];case 6:return o=s.sent(),a={error:o},[3,8];case 7:try{r&&!r.done&&(u=n.return)&&u.call(n)}finally{if(a)throw a.error}return[7];case 8:return[2,e]}}))}))},e.prototype.getFile=function(t,e){return o(this,void 0,void 0,(function(){var n,r;return s(this,(function(i){switch(i.label){case 0:return[4,this.getDir(t)];case 1:if(!(n=i.sent()))return[2,void 0];i.label=2;case 2:return i.trys.push([2,4,,5]),[4,n.getFileHandle(e)];case 3:return[2,i.sent()];case 4:return r=i.sent(),console.error("未能获取当前文件 ".concat(t.join("/"),"/").concat(e," error: ").concat(r),r),[2,void 0];case 5:return[2]}}))}))},e}(l.Destroyable);e.LocalRootDir=g;var y=function(t){function e(e){var n=t.call(this)||this;return n._prefix=e,n._startRootDirId=0,n._dirMap=new Map,n}return i(e,t),Object.defineProperty(e.prototype,"prefix",{get:function(){return this._prefix},enumerable:!1,configurable:!0}),e.prototype.getRootDirId=function(t){return o(this,void 0,void 0,(function(){var e,n,r,i;return s(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),console.log("window.showDirectoryPicker begin"),[4,window.showDirectoryPicker({id:t,mode:"read"})];case 1:return e=o.sent(),console.log("window.showDirectoryPicker end",e),[3,3];case 2:return n=o.sent(),console.error("LocalFileServer getRootDirId failed: ".concat(n),n),[2,void 0];case 3:return e?(r=++this._startRootDirId,i="".concat(this._prefix).concat(r),this._dirMap.set(i,new g(e)),[2,i]):[2]}}))}))},e.prototype.getRootDir=function(t){return this._dirMap.get(t)},e.prototype.getFile=function(t){return o(this,void 0,void 0,(function(){var e,n,r,i,o,a;return s(this,(function(s){switch(s.label){case 0:return(e=t.split("/")).length<2?(console.warn("LocalFileServer getFile failed: ".concat(t)),[2,void 0]):(n=e[0],(r=this._dirMap.get(n))?(i=e.slice(1,e.length-1),o=e[e.length-1],[4,r.getFile(i,o)]):(console.warn("LocalFileServer getFile failed: ".concat(t)),[2,void 0]));case 1:return(a=s.sent())?[2,a]:(console.warn("LocalFileServer getFile failed: ".concat(t)),[2,void 0])}}))}))},e.prototype.getText=function(t){return o(this,void 0,void 0,(function(){var e;return s(this,(function(n){switch(n.label){case 0:return[4,this.getFile(t)];case 1:return(e=n.sent())?[4,p(e)]:[2,void 0];case 2:return[2,n.sent()]}}))}))},e.prototype.getArrayBuffer=function(t){return o(this,void 0,void 0,(function(){var e;return s(this,(function(n){switch(n.label){case 0:return[4,this.getFile(t)];case 1:return(e=n.sent())?[4,d(e)]:[2,void 0];case 2:return[2,n.sent()]}}))}))},e.prototype.getJson=function(t){return o(this,void 0,void 0,(function(){var e;return s(this,(function(n){switch(n.label){case 0:return[4,this.getFile(t)];case 1:return(e=n.sent())?[4,f(e)]:[2,void 0];case 2:return[2,n.sent()]}}))}))},e.prototype.getLocalFilePath=function(t,e,n){return o(this,void 0,void 0,(function(){var n,r,i,o;return s(this,(function(s){switch(s.label){case 0:return[4,this.getRootDirId(e)];case 1:return(n=s.sent())?(r=this.getRootDir(n))?[4,r.getSubFilesAndDirs()]:(console.warn("getRootDir error!"),[2,void 0]):(console.warn("getRootDirId error!"),[2,void 0]);case 2:return(i=s.sent()).files?0===(o=t?i.files.filter((function(e){return t.some((function(t){return e.endsWith(t)}))})):i.files).length?(console.warn("找不到符合要求的文件!"),[2,void 0]):[2,"https://".concat(n,"/").concat(o[0])]:(console.warn("getSubFilesAndDirs error! 找不到符合要求的文件!"),[2,void 0])}}))}))},e}(l.Destroyable);e.LocalFileServer=y,e.defaultLocalFileServer=new y("xe2_local"),e.defaultGetLocalFilePath=function(t,n,r){return o(this,void 0,void 0,(function(){return s(this,(function(i){switch(i.label){case 0:return[4,e.defaultLocalFileServer.getLocalFilePath(t,n,r)];case 1:return[2,i.sent()]}}))}))}},9026:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.replaceStrWithEnv=void 0;var r=n(2220);e.replaceStrWithEnv=function(t){for(;;){var e=t.replace(/\${(.*?)\}/,(function(t,e){var n=r.SceneObject.context.getEnv(e);return void 0===n?(console.warn("环境变量(".concat(e,")不存在,无法进行转换")),"{env-error}"):n}));if(e===t)break;t=e}return t}},9038:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(9486),e),i(n(8584),e)},9067:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},s=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Event=e.EventListenerHandler=void 0;var a=n(9359),u=n(6583),c=n(4471),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(n(2452).SmartListenerHandler);e.EventListenerHandler=l;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"_pipe",{get:function(){var t;return this.__pipe=null!==(t=this.__pipe)&&void 0!==t?t:new c.ListenerPipe,this.__pipe},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){return!this.__pipe||this._pipe.empty},enumerable:!1,configurable:!0}),e.prototype.emit=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];!this.isDestroyed()&&this.beforeCallback&&this.beforeCallback.apply(this,s([],o(e),!1)),!this.isDestroyed()&&(t=this._pipe).do.apply(t,s([],o(e),!1)),!this.isDestroyed()&&this.afterCallback&&this.afterCallback.apply(this,s([],o(e),!1))},e.prototype.on=function(t,e,n,r){void 0===n&&(n=!1);var i=n?this._pipe.unshift(t,e,!1):this._pipe.push(t,e,!1);return(r=null!=r?r:new l)._reset(i,i._cid),r},e.prototype.disposableOn=function(t,e,n,r){var i=this;void 0===n&&(n=!1);var o=this.on(t,e,n,r);return function(){o.valid&&i.off(o)}},e.prototype.don=function(t,e,n,r){return void 0===n&&(n=!1),this.disposableOn(t,e,n,r)},e.prototype.disposableWeakOn=function(t,e,n,r){void 0===n&&(n=!1);var i=new a.Destroyable,o=function(){!i.isDestroyed()&&i.destroy()};return i.dispose(this.disposableOn(t,e,n,r)),i.dispose(this.toDestroyEvent.disposableOn(o)),o},e.prototype.dwon=function(t,e,n,r){return void 0===n&&(n=!1),this.disposableWeakOn(t,e,n,r)},e.prototype.once=function(t,e,n,r){void 0===n&&(n=!1);var i=n?this._pipe.unshift(t,e,!0):this._pipe.push(t,e,!0);return(r=null!=r?r:new l)._reset(i,i._cid),r},e.prototype.disposableOnce=function(t,e,n,r){var i=this;void 0===n&&(n=!1);var o=this.once(t,e,n,r);return function(){return o.valid&&i.off(o)}},e.prototype.donce=function(t,e,n,r){var i=this;void 0===n&&(n=!1);var o=this.once(t,e,n,r);return function(){return o.valid&&i.off(o)}},e.prototype.off=function(t){if(!t.valid)throw new Error("handler is not valid!");this._pipe.remove(t._listenerHandler),t._reset()},e.prototype.reset=function(){this._pipe.removeAll()},e.prototype.destroyImp=function(){this.empty||((0,u.oneTimeWarning)("The event is destroying with listeners!"),this._pipe.removeAll())},e}(a.Destroyable);e.Event=h},9082:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},u=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.TreeItem=void 0;var c=n(1662),l=n(8368),h=n(7720),p=function(t){function e(n,r,i){void 0===r&&(r=!1);var o=t.call(this)||this;return o._tree=n,o._hasChildren=r,o._parent=o.disposeVar((0,c.react)(void 0)),o._level=o.disposeVar((0,c.react)(0)),o._uiTreeObject=o.disposeVar(new h.UiTreeObject(o)),o._id=null!=i?i:(0,c.createGuid)(),"_ROOT"!==o._id&&e.wm.has(o._id)&&console.warn("创建了id(".concat(o._id,")相同的树节点,会导致之前的树节点无法索引!")),e.wm.set(o._id,o),o.dispose((function(){"_ROOT"===o._id||e.wm.has(o._id)?e.wm.delete(o._id):console.warn("树节点(".concat(o._id,")不在wm树上!"))})),o.dispose(o._parent.changed.disposableOn((function(){o._updateLevel()}))),o.dispose(o._level.changed.disposableOn((function(){var t,e;if(o.children)try{for(var n=s(o.children),r=n.next();!r.done;r=n.next())r.value._updateLevel()}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}))),e.allTreeItems.set(o._id,o),o.dispose((function(){e.allTreeItems.delete(o._id)})),o}return i(e,t),e.getFromId=function(t){return e.wm.get(t)},Object.defineProperty(e.prototype,"uiTreeObject",{get:function(){return this._uiTreeObject},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e.prototype._updateLevel=function(){this.parent&&(this._level.value=this.parent.level+1)},Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentChanged",{get:function(){return this._parent.changed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){var t=this;if(this._hasChildren){if(!this._children){var e=this.disposeVar(new c.ObservableArray);this._children=e,this.dispose(e.toChangeEvent.disposableOn((function(e,n){var r,i,o,a;try{for(var u=s(e),c=u.next();!c.done;c=u.next()){for(var l=c.value,h=l.start,p=l.deleteCount,f=l.items,d=h;d<h+p;++d)n.get(d)._parent.value=void 0;try{for(var g=(o=void 0,s(f)),y=g.next();!y.done;y=g.next()){var v=y.value;if(v.parent)throw console.error("请检查新增的treeItem是否正在使用!"),new Error("item.parent should not exist!");v._parent.value=t}}catch(t){o={error:t}}finally{try{y&&!y.done&&(a=g.return)&&a.call(g)}finally{if(o)throw o.error}}}}catch(t){r={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}})));var n=new Set,r=new Set;this.dispose(e.toChangeEvent.disposableOn((function(e,i){var o,a,u,c,l,h,p;if(t.tree){n.clear(),r.clear();try{for(var f=s(e),d=f.next();!d.done;d=f.next()){for(var g=d.value,y=g.start,v=g.deleteCount,m=g.items,_=y;_<y+v;++_)n.add(i.get(_));try{for(var b=(u=void 0,s(m)),w=b.next();!w.done;w=b.next()){var E=w.value;r.add(E)}}catch(t){u={error:t}}finally{try{w&&!w.done&&(c=b.return)&&c.call(b)}finally{if(u)throw u.error}}}}catch(t){o={error:t}}finally{try{d&&!d.done&&(a=f.return)&&a.call(f)}finally{if(o)throw o.error}}try{for(var x=s(n),P=x.next();!P.done;P=x.next())E=P.value,r.has(E)&&(n.delete(E),r.delete(E))}catch(t){l={error:t}}finally{try{P&&!P.done&&(h=x.return)&&h.call(x)}finally{if(l)throw l.error}}null===(p=t.tree)||void 0===p||p.itemChildrenToChange.emit(t,e,n,r)}}))),this.dispose(e.changedEvent.disposableOn((function(){var e;null===(e=t.tree)||void 0===e||e.itemChildrenChanged.emit(t)}))),this.dispose(e.toChangeEvent.disposableOn((function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t._childrenToChangeEvent&&(e=t._childrenToChangeEvent).emit.apply(e,u([],a(n),!1))}))),this.dispose(e.changedEvent.disposableOn((function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t._childrenChangedEvent&&(e=t._childrenChangedEvent).emit.apply(e,u([],a(n),!1))})))}return this._children}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childrenResetedEvent",{get:function(){return this._childrenResetedEvent||(this._childrenResetedEvent=new c.Event),this._childrenResetedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childrenToChangeEvent",{get:function(){return this._childrenToChangeEvent||(this._childrenToChangeEvent=new c.Event),this._childrenToChangeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childrenChangedEvent",{get:function(){return this._childrenChangedEvent||(this._childrenChangedEvent=new c.Event),this._childrenChangedEvent},enumerable:!1,configurable:!0}),e.prototype.resetChildren=function(t){void 0===t&&(t=!1),this._children&&(this._children.length=0),this._hasChildren=t,this._childrenResetedEvent&&this._childrenResetedEvent.emit(t)},e.prototype.getDescendants=function(t){var e,n,r,i,s,a;return o(this,(function(o){switch(o.label){case 0:n=[],r=[],(e=this).children&&e.children.length>0&&(!t||t(e))&&(n.push(0),r.push(e.children)),o.label=1;case 1:return n.length>0?(i=n[n.length-1],s=r[r.length-1],[4,a=s.get(i)]):[3,3];case 2:return o.sent(),i<s.length-1?++n[n.length-1]:(r.pop(),n.pop()),a.children&&a.children.length>0&&(!t||t(a))&&(n.push(0),r.push(a.children)),[3,1];case 3:return[2]}}))},e.prototype.getAncestors=function(t){var e;return o(this,(function(n){switch(n.label){case 0:e=this.parent,n.label=1;case 1:return e?[4,e]:[3,3];case 2:return n.sent(),t&&!t(e)?[3,3]:(e=e.parent,[3,1]);case 3:return[2]}}))},e.prototype.isDescendantOf=function(t){var e,n;try{for(var r=s(this.getAncestors()),i=r.next();!i.done;i=r.next())if(i.value===t)return!0}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return!1},e.prototype.isAncestorOf=function(t){return t.isDescendantOf(this)},Object.defineProperty(e.prototype,"level",{get:function(){return this._level.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"levelChanged",{get:function(){return this._level.changed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tree",{get:function(){return this._tree},enumerable:!1,configurable:!0}),e.prototype.canMoveTo=function(t,e){return(0,l.canMoveToTreeItem)(this,t,e)},e.prototype.moveTo=function(t,e){(0,l.moveToTreeItem)(this,t,e)},e.prototype.detachFromParent=function(){if(this.parent&&this.parent.children){var t=this.parent.children.indexOf(this);this.parent.children.splice(t,1)}},e.prototype.insertNewTreeItem=function(t,e){if(e&&e.tree!==this.tree)return console.warn("newTreeItem.tree !== this.tree"),!1;if(this.children&&t.startsWith("Inner"))return e&&this.children.push(e),!0;if("Inner"===t)return!1;var n=this.parent;if(!n||!n.children)return!1;var r=n.children.indexOf(this);return t.endsWith("Before")?e&&n.children.splice(r,0,e):t.endsWith("After")&&e&&n.children.splice(r+1,0,e),!0},e.wm=new Map,e.allTreeItems=new Map,e}(c.Destroyable);e.TreeItem=p},9122:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clamp=void 0,e.clamp=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=1),t<e?e:t>n?n:t}},9131:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.loadJs=void 0;var n=[];function r(t,e,r){if(n.includes(t))return console.warn("_loadJs ".concat(t," has loaded before!")),void(e&&e());var i=document.getElementsByTagName("head")[0],o=document.createElement("script");o.setAttribute("type","text/javascript"),o.setAttribute("src",t),o.onload=o.onreadystatechange=function(){this.readyState&&"complete"!==this.readyState||(n.push(t),e&&e(),o.onload=o.onreadystatechange=null)},o.onerror=function(t,e,n,i,o){r(o)},i.appendChild(o)}e.loadJs=function(t,e){if(void 0===e&&(e=!0),e){var n=window.L;window.L&&(window.L=void 0);var i=window.define;return window.define&&(window.define=void 0),new Promise((function(e,n){r(t,e,n)})).then((function(){return window.define=i,window.L=n,Promise.resolve()}))}return new Promise((function(e,n){r(t,e,n)}))}},9181:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.CanvasPrimitivesContext=void 0;var s=n(1662),a=n(8106),u=n(7372),c=n(1023),l=function(t,e){return e.depth-t.depth},h=function(t){function e(){var e=t.call(this)||this;e._pois=[],e._size=[0,0],e._needRedraw=!1,e._needPickRedraw=!1,e._pickColorManager=new c.PickColorMananger;var n=document.createElement("canvas");n.style.width="100%",n.style.height="100%",e._canvasElement=n;var r=n.getContext("2d");if(null===r)throw new Error("cannot get context 2d!");return e._ctx=r,e._offscreenCanvasElement=document.createElement("canvas"),e._offscreenCtx=e._offscreenCanvasElement.getContext("2d"),e._offscreenCtx.imageSmoothingEnabled=!1,e._offscreenCanvasElement2=document.createElement("canvas"),e._offscreenCtx2=e._offscreenCanvasElement2.getContext("2d"),e._offscreenCtx2.imageSmoothingEnabled=!1,e.disposeVar((0,a.createAnimateFrameWithStartValues)((function(){var t=o(e._size,2),n=t[0],r=t[1],i=e._canvasElement,s=i.clientWidth,a=i.clientHeight;n===s&&r===a||(e._size[0]=s,e._size[1]=a,e._canvasElement.width=s,e._canvasElement.height=a,e._offscreenCanvasElement.width=s,e._offscreenCanvasElement.height=a,e._offscreenCanvasElement2.width=s,e._offscreenCanvasElement2.height=a,e._dirty()),e._needRedraw&&(e._needRedraw=!1,e._draw())}))).start(),e}return i(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return this._canvasElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pois",{get:function(){return this._pois},enumerable:!1,configurable:!0}),e.prototype._dirty=function(){this._needRedraw=!0,this._needPickRedraw=!0},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.addPoi=function(t){var e=this;if(void 0===(0,s.getExtProp)(t,"listenHandler"))if(-1===this._pois.indexOf(t)){this._pois.push(t),this._dirty();var n=t._needRedrawEvent;if(n){var r=n.on((function(){e._needRedraw=!0}));(0,s.setExtProp)(t,"needRedrawEventHandler",r)}var i=t._needPickRedrawEvent;if(i){var o=i.on((function(){e._needPickRedraw=!0}));(0,s.setExtProp)(t,"needPickRedrawEventHandler",o)}}else console.error("同一个poi加了多次!");else console.error("可能有poi重复加载poiManager中!")},e.prototype.removePoi=function(t){var e=this._pois.indexOf(t);if(-1!==e){this._pois.splice(e,1),this._dirty();var n=t._needRedrawEvent;if(n){var r=(0,s.getExtProp)(t,"needRedrawEventHandler");r?n.off(r):console.error("poi没有listenHandler!")}var i=t._needPickRedrawEvent;if(i){var o=(0,s.getExtProp)(t,"needPickRedrawEventHandler");o?i.off(o):console.error("poi没有listenHandler!")}}else console.error("删除一个不存在的poi!")},e.prototype._draw=function(){var t=this;this._pois.sort(l);var e=o(this._size,2),n=e[0],r=e[1];this._ctx.clearRect(0,0,n,r),this._pois.forEach((function(e){return e.draw(t._ctx)}))},e.prototype.pick=function(t,e,n,r){return this._needPickRedraw&&(this._needPickRedraw=!1,this._pickDraw()),this._getPickInfo(t,e,n,r)},e.prototype._pickDraw=function(){var t=this;this._pickColorManager.reset(),this._pois.sort(l);var e=o(this._size,2),n=e[0],r=e[1];this._offscreenCtx.clearRect(0,0,n,r),this._pois.forEach((function(e){e.drawForPick(t._offscreenCtx,(function(n){var r=o(t._pickColorManager.createPickColor(e,n),3),i=r[0],s=r[1],a=r[2];return"rgb(".concat(i,", ").concat(s,", ").concat(a,")")}))}))},e.prototype._getPickInfo=function(t,e,n,r){for(var i=this._offscreenCtx.getImageData(t,e,n,r),s=[],a=i.data.length/4,u=0;u<a;++u){var c=i.data[4*u+0],l=i.data[4*u+1],h=i.data[4*u+2];if(255===i.data[4*u+3]){var p=this._pickColorManager.getPickInfoFromColor(c,l,h);if(p&&p.poi&&!s.includes(p)){var f=!0,d=o(this._size,2),g=d[0],y=d[1];this._offscreenCtx2.clearRect(0,0,g,y),p.poi.drawForPick(this._offscreenCtx2,(function(t){return"rgb(255, 255, 255)"}));var v=this._offscreenCtx2.getImageData(t,e,n,r),m=v.data[4*u+0],_=v.data[4*u+1],b=v.data[4*u+2];v.data[4*u+3],255===m&&255===_&&255===b||(f=!1),f&&s.push(p)}}}return s},e}(u.Destroyable);e.CanvasPrimitivesContext=h},9355:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},s=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.ObjResetting=e.ObjResettingWithEvent=void 0;var a=n(1662),u=function(t){function e(e,n,r,i){void 0===r&&(r=!0);var u=t.call(this)||this;u._resetEvent=e,u._createFunc=n,u._obj=u.disposeVar((0,a.react)(void 0));var c=u._resetEvent,l=u._createFunc,h=function(){u._obj.value&&(u._obj.value.destroy(),u._obj.value=void 0)};return u.dispose(h),r&&(u._obj.value=i?l.apply(void 0,s([],o(i),!1)):l()),u.dispose(c.disposableOn((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];h(),u._obj.value=l.apply(void 0,s([],o(t),!1))}))),u}return i(e,t),Object.defineProperty(e.prototype,"obj",{get:function(){return this._obj.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"objChanged",{get:function(){return this._obj.changed},enumerable:!1,configurable:!0}),e}(a.Destroyable);e.ObjResettingWithEvent=u;var c=function(t){function e(e,n,r){void 0===n&&(n=!0);var i=t.call(this)||this;return i._createFunc=e,i._execOnInit=n,i._initParams=r,i._event=i.disposeVar(new a.Event),i._objResettingWithEvent=i.disposeVar(new u(i._event,i._createFunc,i._execOnInit,i._initParams)),i}return i(e,t),Object.defineProperty(e.prototype,"obj",{get:function(){return this._objResettingWithEvent.obj},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"objChanged",{get:function(){return this._objResettingWithEvent.objChanged},enumerable:!1,configurable:!0}),e.prototype.reset=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];(t=this._event).emit.apply(t,s([],o(e),!1))},e}(a.Destroyable);e.ObjResetting=c},9359:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Destroyable=e.destroyObject=void 0;var r=n(2082);Object.defineProperty(e,"destroyObject",{enumerable:!0,get:function(){return r.destroyObject}});var i=function(){function t(){this._memId=++t._lastMemId}return Object.defineProperty(t.prototype,"__v_skip",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"memId",{get:function(){return this._memId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disposers",{get:function(){return this._disposers||(this._disposers=[]),this._disposers},enumerable:!1,configurable:!0}),t.prototype.dispose=function(t){return this.disposers.push(t),t},t.prototype.d=function(t){return this.dispose(t)},t.prototype.disposeVar=function(t){return this.disposers.push((function(){return t.destroy()})),t},t.prototype.dv=function(t){return this.disposeVar(t)},t.prototype.tryDisposeVar=function(t){return this.disposers.push((function(){return t.tryDestroy()})),t},t.prototype.tdv=function(t){return this.tryDisposeVar(t)},t.prototype.autoDispose=function(t){return"function"==typeof t?this.dispose(t):this.disposeVar(t)},t.prototype.ad=function(t){return"function"==typeof t?this.dispose(t):this.disposeVar(t)},t.prototype.isDestroyed=function(){return!1},t.prototype.destroyImp=function(){},t.prototype.destroy=function(){if(this._toDestroyEvent&&this._toDestroyEvent.emit(),this.destroyImp(),this._disposers)try{for(var t=this._disposers,e=t.length-1;e>=0;--e)t[e]();t.length=0,this._disposers=void 0}catch(t){console.error("destroy get error! ".concat(t))}return(0,r.destroyObject)(this)},t.prototype.tryDestory=function(){if(!this.isDestroyed())return this.destroy()},t._lastMemId=-1,t}();e.Destroyable=i;var o=n(4899);Object.defineProperties(i.prototype,{toDestroyEvent:{get:function(){return void 0===this._toDestroyEvent&&(this._toDestroyEvent=this.disposeVar(new o.Event)),this._toDestroyEvent}}})},9367:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.createEnvEvalStrReact=void 0;var i=n(1662),o=n(2220);e.createEnvEvalStrReact=function(t,e){var n=r((0,i.getReactFuncs)(t),3),s=n[0],a=(n[1],n[2]),u=(0,i.react)(void 0),c=function(){var t,n=null!==(t=s())&&void 0!==t?t:e;u.value=n&&o.SceneObject.context.getStrFromEnv(n)};return c(),a&&u.dispose(a.disposableOn(c)),u.dispose(o.SceneObject.context.environmentVariablesChanged.disposableOn(c)),u}},9369:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.DivPointerClick=void 0;var o=n(7372),s=n(5010),a=function(t){function e(e,n){var r=t.call(this)||this;r._div=e,r._pointerClick=r.disposeVar(new s.PointerClick);var i=r,o=i.div,a=i.pointerClick,u=function(t){return a.pointerDown(t)},c=function(t){return a.pointerMove(t)},l=function(t){return a.pointerOut(t)},h=function(t){return a.pointerUp(t)};return o.addEventListener("pointerdown",u,n),o.addEventListener("pointermove",c,n),o.addEventListener("pointerout",l,n),o.addEventListener("pointerup",h,n),r.dispose((function(){o.removeEventListener("pointerdown",u,n),o.removeEventListener("pointermove",c,n),o.removeEventListener("pointerout",l,n),o.removeEventListener("pointerup",h,n)})),r}return i(e,t),Object.defineProperty(e.prototype,"div",{get:function(){return this._div},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pointerClick",{get:function(){return this._pointerClick},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clickEvent",{get:function(){return this.pointerClick.clickEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dbclickEvent",{get:function(){return this.pointerClick.dbclickEvent},enumerable:!1,configurable:!0}),e}(o.Destroyable);e.DivPointerClick=a},9374:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.getPromiseFromProcessing=void 0;var o=n(7372);e.getPromiseFromProcessing=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var s=-1;return[function(e){return s===t.runningId&&t.isRunning&&t.cancel(e)},new Promise((function(n,a){t.isRunning&&t.cancel(),t.reset();var u=new o.Destroyable;u.dispose(t.completeEvent.disposableOn((function(t){n(t),u.isDestroyed()?console.error("disposer is destroyed! ".concat(u)):u.destroy()}))),u.dispose(t.errorEvent.disposableOn((function(t){a(t),u.isDestroyed()?console.error("disposer is destroyed! ".concat(u)):u.destroy()}))),t.start.apply(t,i([],r(e),!1)),s=t.runningId}))]}},9409:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.czmPixelFormats=void 0,e.czmPixelFormats=["DEPTH_COMPONENT","DEPTH_STENCIL","ALPHA","RED","RG","RGB","RGBA","LUMINANCE","LUMINANCE_ALPHA","RGB_DXT1","RGBA_DXT1","RGBA_DXT3","RGBA_DXT5","RGB_PVRTC_4BPPV1","RGB_PVRTC_2BPPV1","RGBA_PVRTC_4BPPV1","RGBA_PVRTC_2BPPV1","RGBA_ASTC","RGB_ETC1","RGB8_ETC2","RGBA8_ETC2_EAC","RGBA_BC7"]},9412:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},a=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.SmartWorker=e.findTransferableObjectsFromArgs=void 0;var u=n(1662),c=n(7372);function l(t,e){var n,r,i,a,u,c,h,p;if("number"==typeof t||"string"==typeof t||"boolean"==typeof t||void 0===t);else if(t instanceof String||t instanceof Boolean||t instanceof Date||t instanceof RegExp||t instanceof Blob||t instanceof File||t instanceof FileList);else if(t instanceof ArrayBuffer)-1===e.indexOf(t)&&e.push(t);else if(ArrayBuffer.isView(t))-1===e.indexOf(t.buffer)&&e.push(t.buffer);else if(t instanceof ImageBitmap)-1===e.indexOf(t)&&e.push(t);else if(t instanceof ImageData);else if(t instanceof Map)try{for(var f=o(t),d=f.next();!d.done;d=f.next())l(d.value,e)}catch(t){n={error:t}}finally{try{d&&!d.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}else if(t instanceof Set)try{for(var g=o(t),y=g.next();!y.done;y=g.next())l(y.value,e)}catch(t){i={error:t}}finally{try{y&&!y.done&&(a=g.return)&&a.call(g)}finally{if(i)throw i.error}}else if(Array.isArray(t))try{for(var v=o(t),m=v.next();!m.done;m=v.next())l(m.value,e)}catch(t){u={error:t}}finally{try{m&&!m.done&&(c=v.return)&&c.call(v)}finally{if(u)throw u.error}}else{if(!(t instanceof Object))throw console.error("有不可使用的传递的类型!"),new Error("有不可使用的传递的类型!");try{for(var _=o(Object.entries(t)),b=_.next();!b.done;b=_.next()){var w=s(b.value,2);w[0],l(w[1],e)}}catch(t){h={error:t}}finally{try{b&&!b.done&&(p=_.return)&&p.call(_)}finally{if(h)throw h.error}}}}function h(){for(var t,e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{var i=[];try{for(var s=o(n),a=s.next();!a.done;a=s.next())l(a.value,i)}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}return i}catch(t){return}}e.findTransferableObjectsFromArgs=h;var p=function(t){function e(){var e=t.call(this)||this;e._resultEvent=new u.Event,e._lastExecId=-1;var n=URL.createObjectURL(new Blob(["\n\n function _findTransferableObjectsFromArg(arg, transferableObjects) {\n if (typeof arg === 'number' || typeof arg === 'string' || typeof arg === 'boolean' || typeof arg === 'undefined') {\n }\n else if (arg instanceof String ||\n arg instanceof Boolean ||\n arg instanceof Date ||\n arg instanceof RegExp ||\n arg instanceof Blob ||\n arg instanceof File ||\n arg instanceof FileList) {\n }\n else if (arg instanceof ArrayBuffer) {\n if (-1 === transferableObjects.indexOf(arg)) {\n transferableObjects.push(arg);\n }\n }\n else if (ArrayBuffer.isView(arg)) {\n if (-1 === transferableObjects.indexOf(arg.buffer)) {\n transferableObjects.push(arg.buffer);\n }\n }\n else if (arg instanceof ImageBitmap) {\n if (-1 === transferableObjects.indexOf(arg)) {\n transferableObjects.push(arg);\n }\n }\n else if (arg instanceof ImageData) {\n }\n else if (arg instanceof Map) {\n for (let a of arg) {\n _findTransferableObjectsFromArg(a, transferableObjects);\n }\n }\n else if (arg instanceof Set) {\n for (let a of arg) {\n _findTransferableObjectsFromArg(a, transferableObjects);\n }\n }\n else if (Array.isArray(arg)) {\n for (let a of arg) {\n _findTransferableObjectsFromArg(a, transferableObjects);\n }\n }\n else if (arg instanceof Object) {\n for (let [k, v] of Object.entries(arg)) {\n _findTransferableObjectsFromArg(v, transferableObjects);\n }\n }\n else {\n console.error(`有不可使用的传递的类型!`);\n throw new Error(`有不可使用的传递的类型!`);\n }\n }\n \n function findTransferableObjectsFromArgs(...args) {\n try {\n const transferableObjects = [];\n for (let arg of args) {\n _findTransferableObjectsFromArg(arg, transferableObjects);\n }\n return transferableObjects;\n }\n catch (error) {\n return undefined;\n }\n }\n \n function progressFunc(execId, value) {\n // @ts-ignore\n const workerGlobal = globalThis;\n const transferableObjects = findTransferableObjectsFromArgs(value);\n const finalResult = {\n type: 'function_progress',\n execId,\n progress: value,\n };\n if (transferableObjects) {\n workerGlobal.postMessage(finalResult, transferableObjects);\n }\n else {\n workerGlobal.postMessage(finalResult);\n }\n }\n \n onmessage = function onmessageFunc(messageEvent) {\n // DedicatedWorkerGlobalScope\n // @ts-ignore\n const workerGlobal = globalThis;\n const { execId, type, name, args } = messageEvent.data;\n if (type === 'function' || type === 'progressFunc') {\n try {\n // @ts-ignore\n const func = workerGlobal[name];\n if (typeof func !== 'function') {\n console.error(`typeof func !== 'function'`);\n throw new Error(`typeof func !== 'function'`);\n }\n let resultOrResultPromise;\n if (type === 'progressFunc') {\n // @ts-ignore\n workerGlobal._cancelFuncsMap = workerGlobal._cancelFuncsMap || new Map();\n // @ts-ignore\n const cancelFuncsMap = workerGlobal._cancelFuncsMap;\n const localProgressFunc = (value) => {\n progressFunc(execId, value);\n };\n let resolve_;\n let reject_;\n resultOrResultPromise = new Promise((resolve, reject) => {\n resolve_ = resolve;\n reject_ = reject;\n });\n let finished = false;\n const completeFunc = (value) => {\n finished = true;\n if (cancelFuncsMap.has(execId)) {\n cancelFuncsMap.delete(execId);\n }\n resolve_(value);\n };\n const errorFunc = (error) => {\n finished = true;\n if (cancelFuncsMap.has(execId)) {\n cancelFuncsMap.delete(execId);\n }\n reject_(error);\n };\n const cancelFunc = func(localProgressFunc, completeFunc, errorFunc, ...args);\n if (typeof cancelFunc === 'function') {\n if (!finished) {\n cancelFuncsMap.set(execId, cancelFunc);\n }\n }\n else {\n console.warn(`typeof cancelFunc !== 'function'`);\n }\n }\n else if (type === 'function') {\n resultOrResultPromise = func(...args);\n }\n if (resultOrResultPromise instanceof Promise) {\n resultOrResultPromise.then(result => {\n const transferableObjects = findTransferableObjectsFromArgs(result);\n const finalResult = {\n type: 'function_result',\n execId,\n result,\n };\n transferableObjects && workerGlobal.postMessage(finalResult, transferableObjects) || workerGlobal.postMessage(finalResult);\n }).catch(error => {\n const finalResult = {\n type: 'function_result',\n execId,\n error,\n };\n workerGlobal.postMessage(finalResult);\n });\n }\n else {\n const result = resultOrResultPromise;\n const finalResult = {\n type: 'function_result',\n execId,\n result,\n };\n const transferableObjects = findTransferableObjectsFromArgs(result);\n transferableObjects && workerGlobal.postMessage(finalResult, transferableObjects) || workerGlobal.postMessage(finalResult);\n }\n }\n catch (error) {\n const finalResult = {\n type: 'function_result',\n execId,\n error,\n };\n workerGlobal.postMessage(finalResult);\n }\n }\n else if (type === 'progressFunc_cancel') {\n // @ts-ignore\n workerGlobal._cancelFuncsMap = workerGlobal._cancelFuncsMap || new Map();\n // @ts-ignore\n const cancelFuncsMap = workerGlobal._cancelFuncsMap;\n // const execId = args[0];\n if (typeof execId !== 'number') {\n console.error(`typeof execId !== 'number'`);\n }\n else {\n const cancelFunc = cancelFuncsMap.get(execId);\n if (cancelFunc) {\n cancelFunc(`progressFunc cancel execId: ${execId}`);\n }\n else {\n // 找不到的原因可能是:\n // 1 进度函数的返回值不对,不是一个取消函数!\n // 2 进度函数已经被取消,再次执行取消时,就会警告!\n console.warn(`cancelFuncsMap cannot find execId: ${execId}`);\n }\n }\n }\n else {\n console.error('未知type!');\n }\n }\n "]));return e.dispose((function(){return URL.revokeObjectURL(n)})),e._worker=new Worker(n),e.dispose((function(){return e._worker.terminate()})),e._worker.onmessage=function(t){e._resultEvent.emit(t)},e}return i(e,t),e.prototype.execWorkerFunc=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=h(e);if(r)return this.execWorkerFuncWithTransferableObjects.apply(this,a([t,r],s(e),!1));throw console.error("存在无法传递的数据,请检查参数!"),new Error("存在无法传递的数据,请检查参数!")},e.prototype.execWorkerFuncWithTransferableObjects=function(t,e){var n=this;void 0===e&&(e=[]);for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];if(e)return new Promise((function(i,o){n._execWorkerFuncWithTransferableObjects.apply(n,a([t,i,o,e],s(r),!1))}));throw console.error("存在无法传递的数据,请检查参数!"),new Error("存在无法传递的数据,请检查参数!")},e.prototype._execWorkerFuncWithTransferableObjects=function(t,e,n,r){void 0===r&&(r=[]);for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];var s=++this._lastExecId,a={execId:s,type:"function",name:t,args:i};this._worker.postMessage(a,r);var u=this._resultEvent.disposableOn((function(t){var r=t.data;r.execId===s&&("function_result"===r.type?(u(),"error"in r?n(r.error):e(r.result)):"function_progress"===r.type&&console.error("messageData.type === 'function_progress'"))}))},e.prototype.execWorkerProgressFunc=function(t,e,n,r){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];var u=h(i);if(u)return this.execWorkerProgressFuncWithTransferableObjects.apply(this,a([t,e,n,r,u],s(i),!1));throw console.error("存在无法传递的数据,请检查参数!"),new Error("存在无法传递的数据,请检查参数!")},e.prototype.execWorkerProgressFuncWithTransferableObjects=function(t,e,n,r,i){void 0===i&&(i=[]);for(var o=[],u=5;u<arguments.length;u++)o[u-5]=arguments[u];return this._execWorkerProgressFuncWithTransferableObjects.apply(this,a([t,e,n,r,i],s(o),!1))},e.prototype._execWorkerProgressFuncWithTransferableObjects=function(t,e,n,r,i){var o=this;void 0===i&&(i=[]);for(var s=[],a=5;a<arguments.length;a++)s[a-5]=arguments[a];var u=++this._lastExecId,c={execId:u,type:"progressFunc",name:t,args:s};this._worker.postMessage(c,i);var l=this._resultEvent.disposableOn((function(t){var i=t.data;i.execId===u&&("function_result"===i.type?(l&&(l(),l=void 0),"error"in i?r(i.error):n(i.result)):"function_progress"===i.type&&e&&e(i.progress))}));return function(){l&&(l(),l=void 0),o._worker.postMessage({execId:u,type:"progressFunc_cancel",name:"funcName",args:[]})}},e.prototype.eval=function(t){return this.execWorkerFuncWithTransferableObjects("eval",[],t)},e.prototype.importScripts=function(t){return this.execWorkerFuncWithTransferableObjects("importScripts",[],t)},e.prototype.createGlobalFunc=function(t,e){return this.execWorkerFuncWithTransferableObjects("eval",[],"globalThis['".concat(null!=e?e:t.name,"'] = ").concat(t.toString(),";undefined;"))},e}(c.Destroyable);e.SmartWorker=p},9486:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.saveOnBrowser=void 0,e.saveOnBrowser=function(t,e,n){void 0===n&&(e.endsWith(".gltf")?n="model/gltf+json":e.endsWith(".bin")?n="application/octet-stream":e.endsWith(".glb")?n="model/gltf-binary":e.endsWith(".jpg")||e.endsWith(".jpeg")?n="image/jpeg":e.endsWith(".png")?n="image/png":e.endsWith(".glsl")?n="text/plain":e.endsWith(".json")?n="application/json":e.endsWith(".b3dm")||e.endsWith(".i3dm")?n="application/octet-stream":console.warn("save ".concat(e,": MimeType无法确定!")));var r=new Blob([t],{type:n||""}),i=URL.createObjectURL(r),o=document.createElement("a"),s=new MouseEvent("click");o.download=e,o.href=i,o.dispatchEvent(s),URL.revokeObjectURL(i)}},9528:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readFileFromBrowser=void 0,e.readFileFromBrowser=function(){return new Promise((function(t,e){var n=document.createElement("input");n.type="file",n.style.display="none";var r=new MouseEvent("click",{bubbles:!1,cancelable:!0,view:window});n.dispatchEvent(r),n.addEventListener("change",(function(r){var i=n.files;i&&i.length>0?i[0].text().then((function(e){t(e)})):e()}))}))}},9549:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Quaternion=void 0;var r=n(2731),i=n(9898),o=n(5985),s=n(4915),a=n(8089);!function(t){var e=(0,r.createNumbers)(3);function n(t,n,o){var s=n/2,a=Math.sin(s);i.Vector.normalize(t,e);var u=e[0]*a,c=e[1]*a,l=e[2]*a,h=Math.cos(s);return o=o||(0,r.createNumbers)(4),i.Vector.clone([u,c,l,h],o),o}t.fromAxisAngle=n;var u=(0,r.createNumbers)(3,1,2,0),c=(0,r.createNumbers)(3);function l(t,e){var n,i,o,a,l,h=t[s.Matrix3.COLUMN0ROW0],p=t[s.Matrix3.COLUMN1ROW1],f=t[s.Matrix3.COLUMN2ROW2],d=h+p+f;if(d>0)l=.5*(n=Math.sqrt(d+1)),n=.5/n,i=(t[s.Matrix3.COLUMN1ROW2]-t[s.Matrix3.COLUMN2ROW1])*n,o=(t[s.Matrix3.COLUMN2ROW0]-t[s.Matrix3.COLUMN0ROW2])*n,a=(t[s.Matrix3.COLUMN0ROW1]-t[s.Matrix3.COLUMN1ROW0])*n;else{var g=u,y=0;p>h&&(y=1),f>h&&f>p&&(y=2);var v=g[y],m=g[v];n=Math.sqrt(t[s.Matrix3.getElementIndex(y,y)]-t[s.Matrix3.getElementIndex(v,v)]-t[s.Matrix3.getElementIndex(m,m)]+1);var _=c;_[y]=.5*n,n=.5/n,l=(t[s.Matrix3.getElementIndex(m,v)]-t[s.Matrix3.getElementIndex(v,m)])*n,_[v]=(t[s.Matrix3.getElementIndex(v,y)]+t[s.Matrix3.getElementIndex(y,v)])*n,_[m]=(t[s.Matrix3.getElementIndex(m,y)]+t[s.Matrix3.getElementIndex(y,m)])*n,i=-_[0],o=-_[1],a=-_[2]}return e?(e[0]=i,e[1]=o,e[2]=a,e[3]=l,e):(0,r.createNumbers)(4,i,o,a,l)}t.fromRotationMatrix3=l;var h=(0,r.createNumbers)(9);t.fromRotationMatrix4=function(t,e){return l(a.Matrix4.getMatrix3(t,h),e)},t.multiply=function(t,e,n){var r=t[0],o=t[1],s=t[2],a=t[3],u=e[0],c=e[1],l=e[2],h=e[3],p=a*u+r*h+o*l-s*c,f=a*c-r*l+o*h+s*u,d=a*l+r*c-o*u+s*h,g=a*h-r*u-o*c-s*l;return i.Vector.set(n,p,f,d,g)};var p=(0,r.createNumbers)(3);t.rotationTo=function(t,e,r){var s=i.Vector.dot(t,e);return s<-.999999?(o.Vector3.cross(o.Vector3.UNIT_X,t,p),i.Vector.magnitudeSquared(p)<.001&&o.Vector3.cross(o.Vector3.UNIT_Y,t,p),i.Vector.normalize(p,p),n(p,Math.PI,r)):s>.999999?i.Vector.set(r,0,0,0,1):(o.Vector3.cross(t,e,p),r=i.Vector.set(r,p[0],p[1],p[2],1+s),i.Vector.normalize(r,r))};var f=(0,r.createNumbers)(4);t.lerp=function(t,e,n,r){return i.Vector.multiplyByScalar(e,n,f),r=i.Vector.multiplyByScalar(t,1-n,r),i.Vector.add(f,r,r)};var d=(0,r.createNumbers)(4),g=(0,r.createNumbers)(4),y=(0,r.createNumbers)(4);t.slerp=function(t,e,n,r){var o=i.Vector.dot(t,e),s=e;if(o<0&&(o=-o,s=i.Vector.negate(e,d)),1-o<1e-6)return i.Vector.lerp(t,s,n,r);var a=Math.acos(o);return i.Vector.multiplyByScalar(t,Math.sin((1-n)*a),g),i.Vector.multiplyByScalar(s,Math.sin(n*a),y),r=i.Vector.add(g,y,r),i.Vector.multiplyByScalar(r,1/Math.sin(a),r)}}(e.Quaternion||(e.Quaternion={}))},9597:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.DomElementEvent=void 0;var o=n(7372),s=-1,a=function(t){function e(e,n,r,i){var o=t.call(this)||this;o._domElement=e,o._type=n,o.callback=i;var a=function(t){return t.__xbsj_listenerNo__=++s,t.__xbsj_listenerTime__=Date.now(),t.__xbsj_lastCurrentTarget__=t.currentTarget,o.emit(t),o.callback&&o.callback(t)};return o._domElement.addEventListener(o._type,a,r),o.dispose((function(){return o._domElement.removeEventListener(o._type,a,r)})),o}return i(e,t),e.getLastLisenNo=function(){return s},e.getCurrentTarget=function(t){return t.__xbsj_lastCurrentTarget__},e.getListenerNo=function(t){return t.__xbsj_listenerNo__},e.getListenerTime=function(t){return t.__xbsj_listenerTime__},e.on=function(t,n){var r=e.getLastLisenNo();return t.disposableOn((function(t){var i=e.getListenerNo(t);(void 0===i||i>r)&&n(t)}))},Object.defineProperty(e.prototype,"element",{get:function(){return this._domElement},enumerable:!1,configurable:!0}),e.create=function(t,n,r){return new e(t,n,r)},e}(o.Event);e.DomElementEvent=a},9631:function(t,e){"use strict";var n=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))},r=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.fetchArrayBuffer=void 0,e.fetchArrayBuffer=function(t,e){return void 0===e&&(e=fetch),n(this,void 0,void 0,(function(){var n;return r(this,(function(r){switch(r.label){case 0:return[4,e(t)];case 1:return(n=r.sent()).ok?[4,n.arrayBuffer()]:[2,void 0];case 2:return[2,r.sent()]}}))}))}},9651:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.getEventFromPromise=e.getPromiseFromEvent=e.createCancelablePromise=e.pairToPromise=e.cancelPromise=e.isPromiseCancelable=e.getPromiseCancel=e.setPromiseCancel=void 0;var i=n(1662),o=n(7372);function s(t,e){(0,i.getExtProp)(t,"_promise_cancel")&&console.warn("setPromiseCancel warn: promise has cancelFunc!"),(0,i.setExtProp)(t,"_promise_cancel",e)}function a(t){return(0,i.getExtProp)(t,"_promise_cancel")}e.setPromiseCancel=s,e.getPromiseCancel=a,e.isPromiseCancelable=function(t){return!!a(t)},e.cancelPromise=function(t,e){var n=a(t);return!!n&&(n(e),!0)},e.pairToPromise=function(t){var e=r(t,2),n=e[0],i=e[1];return s(i,n),i},e.createCancelablePromise=function(t){var e,n=new Promise((function(n,r){e=r,t.then(n).catch(r)}));return s(n,e),n},e.getPromiseFromEvent=function(t){var e,n,r=new Promise((function(r,i){n=t.disposableOn((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];n&&n(),r(t)})),e=function(t){n&&n(),i(t)}}));return[e,r]},e.getEventFromPromise=function(t){var e=new o.Event,n=new o.Event;return t.then((function(t){e.isDestroyed()||e.emit(t)})).catch((function(t){n.isDestroyed()||n.emit(t)})),[e,n]}},9704:(t,e,n)=>{"use strict";n.r(e),n.d(e,{decompressFrame:()=>a,decompressFrames:()=>u,parseGIF:()=>s});var r=n(4235),i=n(4638),o=n(733);const s=t=>{const e=new Uint8Array(t);return(0,i.parse)((0,o.buildStream)(e),r.A)},a=(t,e,n)=>{if(!t.image)return void console.warn("gif frame does not have associated image.");const{image:r}=t,i=r.descriptor.width*r.descriptor.height;var o=((t,e,n)=>{const r=4096,i=n;var o,s,a,u,c,l,h,p,f,d;const g=new Array(n),y=new Array(r),v=new Array(r),m=new Array(4097);for(c=1+(s=1<<(d=t)),o=s+2,h=-1,a=(1<<(u=d+1))-1,p=0;p<s;p++)y[p]=0,v[p]=p;var _,b,w,E,x,P;for(_=b=w=E=x=P=0,f=0;f<i;){if(0===E){if(b<u){_+=e[P]<<b,b+=8,P++;continue}if(p=_&a,_>>=u,b-=u,p>o||p==c)break;if(p==s){a=(1<<(u=d+1))-1,o=s+2,h=-1;continue}if(-1==h){m[E++]=v[p],h=p,w=p;continue}for(l=p,p==o&&(m[E++]=w,p=h);p>s;)m[E++]=v[p],p=y[p];w=255&v[p],m[E++]=w,o<r&&(y[o]=h,v[o]=w,!(++o&a)&&o<r&&(u++,a+=o)),h=l}E--,g[x++]=m[E],f++}for(f=x;f<i;f++)g[f]=0;return g})(r.data.minCodeSize,r.data.blocks,i);r.descriptor.lct.interlaced&&(o=((t,e)=>{const n=new Array(t.length),r=t.length/e,i=function(r,i){const o=t.slice(i*e,(i+1)*e);n.splice.apply(n,[r*e,e].concat(o))},o=[0,4,2,1],s=[8,8,4,2];for(var a=0,u=0;u<4;u++)for(var c=o[u];c<r;c+=s[u])i(c,a),a++;return n})(o,r.descriptor.width));const s={pixels:o,dims:{top:t.image.descriptor.top,left:t.image.descriptor.left,width:t.image.descriptor.width,height:t.image.descriptor.height}};return r.descriptor.lct&&r.descriptor.lct.exists?s.colorTable=r.lct:s.colorTable=e,t.gce&&(s.delay=10*(t.gce.delay||10),s.disposalType=t.gce.extras.disposal,t.gce.extras.transparentColorGiven&&(s.transparentIndex=t.gce.transparentColorIndex)),n&&(s.patch=(t=>{const e=t.pixels.length,n=new Uint8ClampedArray(4*e);for(var r=0;r<e;r++){const e=4*r,i=t.pixels[r],o=t.colorTable[i]||[0,0,0];n[e]=o[0],n[e+1]=o[1],n[e+2]=o[2],n[e+3]=i!==t.transparentIndex?255:0}return n})(s)),s},u=(t,e)=>t.frames.filter((t=>t.image)).map((n=>a(n,t.gct,e)))},9812:function(t,e,n){"use strict";var r=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.CullingVolume=void 0;var i=n(4416),o=n(312),s=n(6172),a=n(7215),u=n(8703),c=function(){function t(t){void 0===t&&(t=[]),this.planes=t}return t.fromProjectionMatrix=function(t,e){return(0,u._getCullingVolumeFromProjectionMatrix)(t,e)},t.prototype.computeVisibilityWithPlaneMask=function(e,n,r){if(r===t.MASK_OUTSIDE||r===t.MASK_INSIDE)return r;var a=t.MASK_INSIDE,u=this.planes;if(u)for(var c=0,l=u.length;c<l;++c){var h=c<31?1<<c:0;if(!(c<31)||r&h){var p=void 0;if("box"===e?p=s.OrientedBoundingBox.intersectPlane(n,u[c]):"sphere"===e&&(p=i.BoundingSphere.intersectPlane(n,u[c])),p===o.Intersect.OUTSIDE)return t.MASK_OUTSIDE;p===o.Intersect.INTERSECTING&&(a|=h)}}return a},t.prototype.transform=function(t){var e,n;try{for(var i=r(this.planes),o=i.next();!o.done;o=i.next()){var s=o.value;a.Plane.transform(s,t,s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},t.MASK_OUTSIDE=4294967295,t.MASK_INSIDE=0,t.MASK_INDETERMINATE=2147483647,t}();e.CullingVolume=c,e.default=c},9815:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.Gif=void 0;var o=n(1662),s=n(5819),a=n(5819),u=n(7118),c=n(5281),l=function(t){function e(e){var n=t.call(this)||this;return n._url=n.disposeVar((0,o.react)("")),n._loadGifFramesProcessing=n.disposeVar((0,a.createProcessingFromPromiseCreateFunc)((function(t){return(0,s.createCancelablePromise)((0,c.loadGifFrames)(t))}))),n._player=n.disposeVar(new u.GifPlayer(e)),n._player.autoPlayOnLoad=!0,n._loadGifFramesProcessing.completeFunc=function(t){var e=t.gifFrames;return n._player.gifFrames=e},n.dispose(n._url.changed.disposableOn((function(t){n._player.gifFrames=void 0,n._loadGifFramesProcessing.restart(new s.CancelError("reload gif(".concat(t,")")),t)}))),n}return i(e,t),Object.defineProperty(e.prototype,"player",{get:function(){return this._player},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._url.value},set:function(t){this._url.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loadedEvent",{get:function(){return this._loadGifFramesProcessing.completeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._player.gifSize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sizeChanged",{get:function(){return this._player.gifSizeChanged},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this._player.gifDuration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"durationChanged",{get:function(){return this._player.gifDurationChanged},enumerable:!1,configurable:!0}),e}(o.Destroyable);e.Gif=l},9898:function(t,e,n){"use strict";var r=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Vector=void 0;var i=n(2731);!function(t){function e(t,e){for(var n=t.length,r=0;r<n;++r)if(!e(t[r],r))return!1;return!0}function n(t,e,n){for(var r=t.length,i=n,o=0;o<r;++o)i=e(i,t[o],o);return i}t.set=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(t=t||(0,i.createNumbers)(e.length),e.length>t.length)throw new Error("args.length > target.length");return t instanceof Float64Array?t.set(e):w(e,t),t},t.every=e,t.reduce=n,t.itr=function(t){var e;return r(this,(function(n){switch(n.label){case 0:e=0,n.label=1;case 1:return e<t.length?[4,t[e]]:[3,4];case 2:n.sent(),n.label=3;case 3:return++e,[3,1];case 4:return[2]}}))};var o,s=function(t,e){return t+e*e};function a(t){return n(t,s,0)}t.magnitudeSquared=a,t.magnitude=function(t){var e=a(t);return Math.sqrt(e)},t.isNormalized=function(t,e){void 0===e&&(e=1e-5);var n=a(t);return Math.abs(n-1)<e};var u,c=function(t,e,n){return t+e*o[n]};t.dot=function(t,e){return v(t,e),o=e,n(t,c,0)};var l,h=function(t,e,n){return t+(e-u[n])*(e-u[n])};function p(t,e){return v(t,e),u=e,n(t,h,0)}t.distanceSquared=p,t.distance=function(t,e){return Math.sqrt(p(t,e))};var f,d,g=function(t,e){return t===l[e]};t.equals=function(t,n){return v(t,n),l=n,e(t,g)};var y=function(t,e){return Math.abs(t-f[e])<d};function v(t,e){if(t.length!==e.length)throw new Error("left.length !== right.length")}function m(t,e,n){var r=t.length;v(t,n=n||(0,i.createNumbers)(r));for(var o=0;o<r;++o)n[o]=e(t[o],o);return n}function _(t,e,n,r){v(t,e),r&&v(t,r);var o=t.length;r=r||(0,i.createNumbers)(o);for(var s=0;s<o;++s)r[s]=n(t[s],e[s]);return r}t.equalsEpsilon=function(t,n,r){return void 0===r&&(r=0),v(t,n),f=n,d=r,e(t,y)},t.op1=m,t.op2=_;var b=function(t){return t};function w(t,e){return m(t,b,e)}t.clone=w;var E=0,x=function(t,e){return t*E};function P(t,e,n){return E=e,m(t,x,n)}t.multiplyByScalar=P,t.normalize=function(t,e,n){void 0===n&&(n=0);var r=a(t);if(!(r<=n))return P(t,1/Math.sqrt(r),e)},t.negate=function(t,e){return P(t,-1,e)};var S=function(t){return Math.abs(t)};t.abs=function(t,e){return m(t,S,e)};var O=function(t){return t-Math.floor(t)};t.fract=function(t,e){return m(t,O,e)};var C=function(t,e){return t-e};t.subtract=function(t,e,n){return _(t,e,C,n)};var M=function(t,e){return t+e};t.add=function(t,e,n){return _(t,e,M,n)};var I=function(t,e){return t*e};t.multiply=function(t,e,n){return _(t,e,I,n)};var T,j=function(t,e){return t/e};t.divide=function(t,e,n){return _(t,e,j,n)};var N=function(t,e){return t*(1-T)+e*T};t.lerp=function(t,e,n,r){return T=n,_(t,e,N,r)}}(e.Vector||(e.Vector={}))},9910:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.destroyScalableArray=e.createScalableArray=void 0;var r=n(1085),i=function(){function t(){this._array=[]}return Object.defineProperty(t.prototype,"array",{get:function(){return this._array},enumerable:!1,configurable:!0}),t}(),o=new r.ObjPool((function(){return new i})),s=new WeakMap;e.createScalableArray=function(){var t=o.create();return s.set(t.array,t),t.array},e.destroyScalableArray=function(t){var e=s.get(t);if(!e)throw console.warn("!obj"),new Error("!obj");o.destroy(e)}},9928:(t,e,n)=>{"use strict";function r(t,e,n,r,i){this._format=t,this._width=e,this._height=n,this._buffer=r,this._mipLevels=i}n.r(e),n.d(e,{CompressedTextureBuffer:()=>r}),Object.defineProperties(r.prototype,{internalFormat:{get:function(){return this._format}},width:{get:function(){return this._width}},height:{get:function(){return this._height}},bufferView:{get:function(){return this._buffer}},mipLevels:{get:function(){return this._mipLevels}}}),r.clone=function(t){if(t)return new r(t._format,t._width,t._height,t._buffer,t._mipLevels)},r.prototype.clone=function(){return r.clone(this)}},9970:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.nodeBufferToUint8Array=void 0,e.nodeBufferToUint8Array=function(t){return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}},9972:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.createFetchingWithStartValues=e.createFetching=e.cancelableFetch=e.cancelableFetchWithProgress=void 0;var o=n(5726),s=n(9651),a=n(921);function u(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=new AbortController,a=i.signal,u=r(e,2),c=u[0],l=u[1];if(null==l?void 0:l.signal)throw console.error("init?.signal"),new Error("init?.signal");(l=l||{}).signal&&console.warn("revocableFetch error: init.signal would be override!"),l.signal=a;var h=!1,p=fetch(c,l);return t&&(p=p.then((function(e){if(!e.ok)return e;if(!e.body)throw Error("ReadableStream not yet supported in this browser.");var n=e.headers.get("content-length");n||console.warn("response.headers.get('content-length') is undefined... cannot get contentLength!");var r=n?parseInt(n,10):0,i=0;return new Response(new ReadableStream({start:function(n){if(!e.body)throw new Error("!response.body");var o=e.body.getReader();!function e(){o.read().then((function(o){var s=o.done,a=o.value;if(s)n.close();else{if(!a)throw new Error("!value");if(!t)throw new Error("!progressFunc");i+=a.byteLength,t(i,r),n.enqueue(a),e()}})).catch((function(t){n.error(t)}))}()}}),{status:e.status,statusText:e.statusText,headers:e.headers})})).catch((function(t){throw h?(t instanceof Error&&20!==t.code&&console.error("error.code !== 20"),console.log("fetching cancelled!"),new o.CancelError("fetching cancelled! error: ".concat(t))):(t instanceof Error&&20===t.code&&console.error("error.code === 20"),t)}))),(0,s.setPromiseCancel)(p,(function(){h=!0,i.abort()})),p}function c(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return u.apply(void 0,i([void 0],r(t),!1))}e.cancelableFetchWithProgress=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return u.apply(void 0,i([t],r(e),!1))},e.cancelableFetch=c,e.createFetching=function(){return(0,a.createProcessingFromPromiseCreateFunc)(c)},e.createFetchingWithStartValues=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return a.createProcessingFromPromiseCreateFuncWithStartValues.apply(void 0,i([c],r(t),!1))}},9986:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.PosFloatDiv=void 0;var s=n(7372),a=function(t){function e(){var e=t.call(this)||this;e._originOffsetX=0,e._originOffsetY=0,e._originRatioX=.5,e._originRatioY=1,e._divChanged=new s.Event;var n=document.createElement("div");n.style.cssText="width: 0px; height: 0px; position: absolute; opacity: 1.0; visibility: visible;";var r=document.createElement("div");r.style.cssText="position: absolute; left: ".concat(-e._originOffsetX,"px; top: ").concat(-e._originOffsetY,"px; transform: translateX(-").concat(100*e._originRatioX,"%) translateY(-").concat(100*e._originRatioY,"%); margin: 0; padding: 0; pointer-events: none;");var i=document.createElement("div");e._contentDiv=i,r.appendChild(i),n.appendChild(r);var a=function(t){t.stopPropagation()};return n.addEventListener("pointermove",a),n.addEventListener("pointerdown",a),n.addEventListener("pointerup",a),e.dispose((function(){n.removeEventListener("pointermove",a),n.removeEventListener("pointerdown",a),n.removeEventListener("pointerup",a)})),e._div=n,e.dispose(e._divChanged.disposableOn((function(){r.style.left="".concat(-e._originOffsetX,"px"),r.style.top="".concat(-e._originOffsetY,"px"),r.style.transform="translateX(-".concat(100*e._originRatioX,"%) translateY(-").concat(100*e._originRatioY,"%)")}))),e.dispose(e.winPosChanged.disposableOn((function(t){var n=o(t,2),r=n[0],i=n[1];e._div.style.left="".concat(r,"px"),e._div.style.top="".concat(i,"px")}))),e.dispose(e.opacityChanged.disposableOn((function(t){e._div.style.opacity="".concat(t)}))),e.dispose(e.showChanged.disposableOn((function(t){e._div.style.visibility=t?"visible":"hidden"}))),e}return i(e,t),Object.defineProperty(e.prototype,"contentDiv",{get:function(){return this._contentDiv},enumerable:!1,configurable:!0}),e.prototype.reset=function(){},Object.defineProperty(e.prototype,"originOffsetX",{get:function(){return this._originOffsetX},set:function(t){this._originOffsetX!==t&&(this._originOffsetX=t,this._divChanged.emit())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"originOffsetY",{get:function(){return this._originOffsetY},set:function(t){this._originOffsetY!==t&&(this._originOffsetY=t,this._divChanged.emit())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"originRatioX",{get:function(){return this._originRatioX},set:function(t){this._originRatioX!==t&&(this._originRatioX=t,this._divChanged.emit())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"originRatioY",{get:function(){return this._originRatioY},set:function(t){this._originRatioY!==t&&(this._originRatioY=t,this._divChanged.emit())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this._div},enumerable:!1,configurable:!0}),e}(n(7324).FloatDiv);e.PosFloatDiv=a}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r].call(o.exports,o,o.exports,n),o.exports}return n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n(4221)})(),t.exports=e()},7384:t=>{"use strict";t.exports=Math.min},7412:t=>{"use strict";t.exports=Math.abs},7575:t=>{"use strict";t.exports={eudist:function(t,e,n){for(var r=t.length,i=0,o=0;o<r;o++){var s=(t[o]||0)-(e[o]||0);i+=s*s}return n?Math.sqrt(i):i},mandist:function(t,e,n){for(var r=t.length,i=0,o=0;o<r;o++)i+=Math.abs((t[o]||0)-(e[o]||0));return n?Math.sqrt(i):i},dist:function(t,e,n){var r=Math.abs(t-e);return n?r:r*r}}},7678:(t,e,n)=>{"use strict";var r,i=n(2427),o=n(5667);try{r=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var s=!!r&&o&&o(Object.prototype,"__proto__"),a=Object,u=a.getPrototypeOf;t.exports=s&&"function"==typeof s.get?i([s.get]):"function"==typeof u&&function(t){return u(null==t?t:a(t))}},7695:(t,e,n)=>{"use strict";var r=n(7755),i=n(9886),o=n(2427),s=n(6440);t.exports=function(t){var e=o(arguments),n=t.length-(arguments.length-1);return r(e,1+(n>0?n:0),!0)},i?i(t.exports,"apply",{value:s}):t.exports.apply=s},7755:(t,e,n)=>{"use strict";var r=n(9336),i=n(22),o=n(491)(),s=n(5667),a=n(1102),u=r("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new a("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||u(e)!==e)throw new a("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in t&&s){var l=s(t,"length");l&&!l.configurable&&(r=!1),l&&!l.writable&&(c=!1)}return(r||c||!n)&&(o?i(t,"length",e,!0,!0):i(t,"length",e)),t}},7785:(t,e,n)=>{"use strict";var r=n(9524),i=n(4811),o=n(6255),s=n(2728);t.exports=s||r.call(o,i)},7958:t=>{"use strict";t.exports=Math.max},7985:(t,e,n)=>{"use strict";var r=n(7575),i=r.eudist,o=r.dist;t.exports={kmrand:function(t,e){for(var n={},r=[],i=e<<2,o=t.length,s=t[0].length>0;r.length<e&&i-- >0;){var a=t[Math.floor(Math.random()*o)],u=s?a.join("_"):""+a;n[u]||(n[u]=!0,r.push(a))}if(r.length<e)throw new Error("Error initializating clusters");return r},kmpp:function(t,e){var n=t[0].length?i:o,r=[],s=t.length,a=t[0].length>0,u=t[Math.floor(Math.random()*s)];for(a&&u.join("_"),r.push(u);r.length<e;){for(var c=[],l=r.length,h=0,p=[],f=0;f<s;f++){for(var d=1/0,g=0;g<l;g++){var y=n(t[f],r[g]);y<=d&&(d=y)}c[f]=d}for(var v=0;v<s;v++)h+=c[v];for(var m=0;m<s;m++)p[m]={i:m,v:t[m],pr:c[m]/h,cs:0};p.sort((function(t,e){return t.pr-e.pr})),p[0].cs=p[0].pr;for(var _=1;_<s;_++)p[_].cs=p[_-1].cs+p[_].pr;for(var b=Math.random(),w=0;w<s-1&&p[w++].cs<b;);r.push(p[w-1].v)}return r}}},7994:(t,e,n)=>{"use strict";var r=n(4938),i=n(7695),o=n(2162),s=n(4731),a=n(5565),u=i(s());r(u,{getPolyfill:s,implementation:o,shim:a}),t.exports=u},8004:t=>{"use strict";t.exports=EvalError},8121:(t,e,n)=>{"use strict";var r=n(7575),i=n(7985),o=r.eudist,s=(r.mandist,r.dist,i.kmrand),a=i.kmpp;function u(t,e,n){n=n||[];for(var r=0;r<t;r++)n[r]=e;return n}t.exports=function(t,e,n,r){var i=[],c=[],l=[],h=[],p=!1,f=r||1e4,d=t.length,g=t[0].length,y=g>0,v=[];if(n)i="kmrand"==n?s(t,e):"kmpp"==n?a(t,e):n;else for(var m={};i.length<e;){var _=Math.floor(Math.random()*d);m[_]||(m[_]=!0,i.push(t[_]))}do{u(e,0,v);for(var b=0;b<d;b++){for(var w=1/0,E=0,x=0;x<e;x++)(h=y?o(t[b],i[x]):Math.abs(t[b]-i[x]))<=w&&(w=h,E=x);l[b]=E,v[E]++}for(var P=[],S=(c=[],0);S<e;S++)P[S]=y?u(g,0,P[S]):0,c[S]=i[S];if(y){for(var O=0;O<e;O++)i[O]=[];for(var C=0;C<d;C++)for(var M=P[l[C]],I=t[C],T=0;T<g;T++)M[T]+=I[T];p=!0;for(var j=0;j<e;j++){for(var N=i[j],D=P[j],A=c[j],R=v[j],F=0;F<g;F++)N[F]=D[F]/R||0;if(p)for(var L=0;L<g;L++)if(A[L]!=N[L]){p=!1;break}}}else{for(var k=0;k<d;k++)P[l[k]]+=t[k];for(var V=0;V<e;V++)i[V]=P[V]/v[V]||0;p=!0;for(var B=0;B<e;B++)if(c[B]!=i[B]){p=!1;break}}p=p||--f<=0}while(!p);return{it:1e4-f,k:e,idxs:l,centroids:i}}},8390:(t,e)=>{"use strict";function n(t,e,n){void 0===n&&(n={});var r={type:"Feature"};return(0===n.id||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=e||{},r.geometry=t,r}function r(t,e,r){if(void 0===r&&(r={}),!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!f(t[0])||!f(t[1]))throw new Error("coordinates must contain numbers");return n({type:"Point",coordinates:t},e,r)}function i(t,e,r){void 0===r&&(r={});for(var i=0,o=t;i<o.length;i++){var s=o[i];if(s.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var a=0;a<s[s.length-1].length;a++)if(s[s.length-1][a]!==s[0][a])throw new Error("First and last Position are not equivalent.")}return n({type:"Polygon",coordinates:t},e,r)}function o(t,e,r){if(void 0===r&&(r={}),t.length<2)throw new Error("coordinates must be an array of two or more positions");return n({type:"LineString",coordinates:t},e,r)}function s(t,e){void 0===e&&(e={});var n={type:"FeatureCollection"};return e.id&&(n.id=e.id),e.bbox&&(n.bbox=e.bbox),n.features=t,n}function a(t,e,r){return void 0===r&&(r={}),n({type:"MultiLineString",coordinates:t},e,r)}function u(t,e,r){return void 0===r&&(r={}),n({type:"MultiPoint",coordinates:t},e,r)}function c(t,e,r){return void 0===r&&(r={}),n({type:"MultiPolygon",coordinates:t},e,r)}function l(t,n){void 0===n&&(n="kilometers");var r=e.factors[n];if(!r)throw new Error(n+" units is invalid");return t*r}function h(t,n){void 0===n&&(n="kilometers");var r=e.factors[n];if(!r)throw new Error(n+" units is invalid");return t/r}function p(t){return t%(2*Math.PI)*180/Math.PI}function f(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.earthRadius=6371008.8,e.factors={centimeters:100*e.earthRadius,centimetres:100*e.earthRadius,degrees:e.earthRadius/111325,feet:3.28084*e.earthRadius,inches:39.37*e.earthRadius,kilometers:e.earthRadius/1e3,kilometres:e.earthRadius/1e3,meters:e.earthRadius,metres:e.earthRadius,miles:e.earthRadius/1609.344,millimeters:1e3*e.earthRadius,millimetres:1e3*e.earthRadius,nauticalmiles:e.earthRadius/1852,radians:1,yards:1.0936*e.earthRadius},e.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/e.earthRadius,yards:1.0936133},e.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},e.feature=n,e.geometry=function(t,e,n){switch(void 0===n&&(n={}),t){case"Point":return r(e).geometry;case"LineString":return o(e).geometry;case"Polygon":return i(e).geometry;case"MultiPoint":return u(e).geometry;case"MultiLineString":return a(e).geometry;case"MultiPolygon":return c(e).geometry;default:throw new Error(t+" is invalid")}},e.point=r,e.points=function(t,e,n){return void 0===n&&(n={}),s(t.map((function(t){return r(t,e)})),n)},e.polygon=i,e.polygons=function(t,e,n){return void 0===n&&(n={}),s(t.map((function(t){return i(t,e)})),n)},e.lineString=o,e.lineStrings=function(t,e,n){return void 0===n&&(n={}),s(t.map((function(t){return o(t,e)})),n)},e.featureCollection=s,e.multiLineString=a,e.multiPoint=u,e.multiPolygon=c,e.geometryCollection=function(t,e,r){return void 0===r&&(r={}),n({type:"GeometryCollection",geometries:t},e,r)},e.round=function(t,e){if(void 0===e&&(e=0),e&&!(e>=0))throw new Error("precision must be a positive number");var n=Math.pow(10,e||0);return Math.round(t*n)/n},e.radiansToLength=l,e.lengthToRadians=h,e.lengthToDegrees=function(t,e){return p(h(t,e))},e.bearingToAzimuth=function(t){var e=t%360;return e<0&&(e+=360),e},e.radiansToDegrees=p,e.degreesToRadians=function(t){return t%360*Math.PI/180},e.convertLength=function(t,e,n){if(void 0===e&&(e="kilometers"),void 0===n&&(n="kilometers"),!(t>=0))throw new Error("length must be a positive number");return l(h(t,e),n)},e.convertArea=function(t,n,r){if(void 0===n&&(n="meters"),void 0===r&&(r="kilometers"),!(t>=0))throw new Error("area must be a positive number");var i=e.areaFactors[n];if(!i)throw new Error("invalid original units");var o=e.areaFactors[r];if(!o)throw new Error("invalid final units");return t/i*o},e.isNumber=f,e.isObject=function(t){return!!t&&t.constructor===Object},e.validateBBox=function(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(4!==t.length&&6!==t.length)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach((function(t){if(!f(t))throw new Error("bbox must only contain numbers")}))},e.validateId=function(t){if(!t)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof t))throw new Error("id must be a number or a string")}},8500:(t,e,n)=>{"use strict";n.r(e);var r=n(7350),i={};for(const t in r)"default"!==t&&(i[t]=()=>r[t]);n.d(e,i)},8801:(t,e,n)=>{"use strict";var r=n(9336),i=n(2427),o=i([r("%String.prototype.indexOf%")]);t.exports=function(t,e){var n=r(t,!!e);return"function"==typeof n&&o(t,".prototype.")>-1?i([n]):n}},9068:(t,e,n)=>{"use strict";var r=n(4938),i=n(7695),o=n(656),s=n(2197),a=n(9235),u=i(s(),Object);r(u,{getPolyfill:s,implementation:o,shim:a}),t.exports=u},9235:(t,e,n)=>{"use strict";var r=n(2197),i=n(4938);t.exports=function(){var t=r();return i(Object,{is:t},{is:function(){return Object.is!==t}}),t}},9313:t=>{"use strict";t.exports=Number.isNaN||function(t){return t!=t}},9336:(t,e,n)=>{"use strict";var r,i=n(5153),o=n(1488),s=n(8004),a=n(6469),u=n(2557),c=n(3429),l=n(1102),h=n(5966),p=n(7412),f=n(2418),d=n(7958),g=n(7384),y=n(250),v=n(1844),m=n(7279),_=Function,b=function(t){try{return _('"use strict"; return ('+t+").constructor;")()}catch(t){}},w=n(5667),E=n(9886),x=function(){throw new l},P=w?function(){try{return x}catch(t){try{return w(arguments,"callee").get}catch(t){return x}}}():x,S=n(1514)(),O=n(4252),C=n(3752),M=n(248),I=n(4811),T=n(6255),j={},N="undefined"!=typeof Uint8Array&&O?O(Uint8Array):r,D={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":S&&O?O([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":j,"%AsyncGenerator%":j,"%AsyncGeneratorFunction%":j,"%AsyncIteratorPrototype%":j,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":s,"%Float16Array%":"undefined"==typeof Float16Array?r:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":_,"%GeneratorFunction%":j,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&O?O(O([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&S&&O?O((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":u,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&S&&O?O((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&O?O(""[Symbol.iterator]()):r,"%Symbol%":S?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":P,"%TypedArray%":N,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":h,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"%Function.prototype.call%":T,"%Function.prototype.apply%":I,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":C,"%Math.abs%":p,"%Math.floor%":f,"%Math.max%":d,"%Math.min%":g,"%Math.pow%":y,"%Math.round%":v,"%Math.sign%":m,"%Reflect.getPrototypeOf%":M};if(O)try{null.error}catch(t){var A=O(O(t));D["%Error.prototype%"]=A}var R=function t(e){var n;if("%AsyncFunction%"===e)n=b("async function () {}");else if("%GeneratorFunction%"===e)n=b("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=b("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&O&&(n=O(i.prototype))}return D[e]=n,n},F={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},L=n(9524),k=n(5630),V=L.call(T,Array.prototype.concat),B=L.call(I,Array.prototype.splice),z=L.call(T,String.prototype.replace),U=L.call(T,String.prototype.slice),G=L.call(T,RegExp.prototype.exec),W=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,q=/\\(\\)?/g,X=function(t,e){var n,r=t;if(k(F,r)&&(r="%"+(n=F[r])[0]+"%"),k(D,r)){var i=D[r];if(i===j&&(i=R(r)),void 0===i&&!e)throw new l("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new c("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new l('"allowMissing" argument must be a boolean');if(null===G(/^%?[^%]*%?$/,t))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(t){var e=U(t,0,1),n=U(t,-1);if("%"===e&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return z(t,W,(function(t,e,n,i){r[r.length]=n?z(i,q,"$1"):e||t})),r}(t),r=n.length>0?n[0]:"",i=X("%"+r+"%",e),o=i.name,s=i.value,a=!1,u=i.alias;u&&(r=u[0],B(n,V([0,1],u)));for(var h=1,p=!0;h<n.length;h+=1){var f=n[h],d=U(f,0,1),g=U(f,-1);if(('"'===d||"'"===d||"`"===d||'"'===g||"'"===g||"`"===g)&&d!==g)throw new c("property names with quotes must have matching quotes");if("constructor"!==f&&p||(a=!0),k(D,o="%"+(r+="."+f)+"%"))s=D[o];else if(null!=s){if(!(f in s)){if(!e)throw new l("base intrinsic for "+t+" exists, but the property is not available.");return}if(w&&h+1>=n.length){var y=w(s,f);s=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:s[f]}else p=k(s,f),s=s[f];p&&!a&&(D[o]=s)}}return s}},9524:(t,e,n)=>{"use strict";var r=n(9992);t.exports=Function.prototype.bind||r},9604:(t,e,n)=>{"use strict";n.d(e,{E:()=>a});var r,i=n(8500);class o extends i.Destroyable{constructor(){super(...arguments),this.registerEngines={}}register(t,e,n){const r=this.registerEngines[t]||new Map;r.has(e)&&console.warn(`register warn:${t}中${e}的实现类已经被注册,再次注册会覆盖。`),r.set(e,n),this.registerEngines[t]=r}getEngineObjConstructor(t,e){return(this.registerEngines[e]||new Map).get(t)||void console.warn(`未找到${t}在${e}中对应的实现类!`)}createEngineObject(t,e){const n=this.getEngineObjConstructor(t.typeName,e.typeName);if(n){const r=new n(t,e);return r.createdEvent.emit(),r}{const n=new a(t,e);return n.createdEvent.emit(),n}}}class s extends i.Destroyable{constructor(){super(...arguments),this.registerEngines={}}register(t,e,n){const r=this.registerEngines[t]||new Map;r.has(e)&&console.warn(`register warn:${t}中${e}的实现类已经被注册,再次注册会覆盖。`),r.set(e,n),this.registerEngines[t]=r}getEngineObjConstructor(t,e){return(this.registerEngines[e]||new Map).get(t)||void console.warn(`未找到${t}在${e}中对应的实现类!`)}createEngineObject(t,e){const n=this.getEngineObjConstructor(t.typeName,e.typeName);if(n){const r=new n(t,e);return r.createdEvent.emit(),r}{const n=new a(t,e);return n.createdEvent.emit(),n}}}class a extends i.Destroyable{get createdEvent(){return this._createdEvent}get sceneObject(){return this._sceneObject}get viewer(){return this._viewer}get id(){return this._id}constructor(t,e,n=!1){super(),this._sceneObject=t,this._viewer=e,this._createdEvent=this.dv(new i.Event),this._id=++a._accumId;{if(t.viewer=e,n)return;const r=(t,e)=>{for(let e of t)this._viewer.delete(e);for(let t of e)this._viewer.add(t)};r([],this._sceneObject.components.values()),this.d(this._sceneObject.components.toChange.don(r)),this.d((()=>r(this._sceneObject.components.values(),[])))}}}r=a,a.context=new o,a.contextEditing=new s,a.register=r.context.register.bind(r.context),a.registerEditing=r.contextEditing.register.bind(r.contextEditing),a._accumId=-1},9712:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},9871:(t,e,n)=>{"use strict";n.d(e,{y:()=>x});var r=n(8500),i=n(4266),o=n(6624),s=n(4949);class a extends r.Destroyable{get listeningSceneObjects(){return this._listeningSceneObjects}get createSceneObjectListeningFunc(){return this._createSceneObjectListeningFunc}constructor(t,e){super(),this._sceneObjectsMananger=t,this._createSceneObjectListeningFunc=e,this._listeningSceneObjects=new Map;const n=this._listeningSceneObjects,r=(t,e)=>{if(t)for(let e of t){const t=n.get(e);t&&(t.destroy(),n.delete(e))}if(e)for(let t of e){n.get(t)&&console.warn(`listeningSceneObjects已存在某对象:${t.name}`,t);const e=this.createSceneObjectListeningFunc(t);e&&n.set(t,e)}};r(void 0,this._sceneObjectsMananger.sceneObjects),this.dispose(this._sceneObjectsMananger.sceneObjectsToChange.disposableOn(r)),this.dispose((()=>{for(let t of this._listeningSceneObjects.values())t.destroy();this._listeningSceneObjects.clear()}))}}class u extends r.Destroyable{constructor(t){super(),this._esObjectsManager=t;{const t=this._esObjectsManager;class e extends r.Destroyable{constructor(e){super(),this._esPath=e,this.dv(new r.ObjResettingWithEvent(t.activeViewerChanged,(()=>{const e=t.activeViewer;if(e){class n extends r.Destroyable{constructor(n){if(super(),this._esPath=n,!e)throw new Error("!viewer");const r=()=>{const e=t.activeViewer;e&&(this._esPath.path.currentTime=e.simulationTime)};r(),this.d(e.simulationTimeChanged.don(r))}}return new n(this._esPath)}})))}}this.dv(new a(t.sceneObjectsManager,(t=>{if(t instanceof i.i9)return new e(t)})))}{const t=this._esObjectsManager;class e extends r.Destroyable{constructor(e){super();{const n=()=>{var n;const r=t.activeViewer;r&&(r.simulationTime=null!==(n=e.currentTime)&&void 0!==n?n:0)};n(),this.d(e.currentTimeChanged.don(n))}}}this.dv(new a(t.sceneObjectsManager,(t=>{if(t instanceof i.gz)return new e(t)})))}}}class c extends r.Destroyable{constructor(t){super(),t.forEach((t=>{this.d(t.path.currentPositionChanged.don((e=>{e&&t.sceneObjects.forEach((t=>{Reflect.has(t,"position")&&(t.position=[...e])}))}))),this.d(t.path.currentRotationChanged.don((e=>{e&&t.sceneObjects.forEach((t=>{Reflect.has(t,"rotation")&&(t.rotation=[...e])}))})))}))}}class l extends r.Destroyable{get player(){return this._player}get channels(){return this._channels.value}get channelsChanged(){return this._channels.changed}set channels(t){this._channels.value=t}constructor(t){super(),this._objectManager=t,this._channels=this.dv((0,r.reactArray)([])),this._player=this._objectManager.createSceneObjectFromClass(i.gz),this.dv(new r.ObjResettingWithEvent(this.channelsChanged,(()=>{if(0===this.channels.length)return;const t=[];for(let e=0;e<this.channels.length;e++){const n=this.channels[e],r=i.IV.getSceneObjById(n.pathId);if(!(r&&r instanceof i.i9))continue;const o=n.sceneObjectIds.map((t=>i.IV.getSceneObjById(t))).filter((t=>void 0!==t));0!==o.length&&t.push({path:r,sceneObjects:o})}return 0!==t.length?new c(t):void 0})))}}var h=n(4890);function p(t){if(t.data){const{type:e,value:n}=t.data;if("UITreeA"===e&&n instanceof s.Uh){const{sceneObject:t}=n;if(t)return t.id}}}class f extends r.Destroyable{get sceneObjects(){return this._sceneObjects}get sceneObjectsToChange(){return this._sceneObjectsToChange}constructor(){super(),this._sceneObjects=new Set,this._sceneObjectsToChange=this.dv(new r.Event),this.d((()=>{const t=(0,r.length)(this._sceneObjects);0!==t&&console.warn(`场景对象管理器销毁时仍然管理着${t}个场景对象!`)}))}addSceneObject(t){return this._sceneObjects.has(t)?(console.warn(`创建失败:对象${t}已经存在于场景对象管理器中!}`),!1):(this._sceneObjectsToChange.emit([],[t]),this._sceneObjects.add(t),!0)}deleteSceneObject(t){return this._sceneObjects.has(t)?(this._sceneObjectsToChange.emit([t],[]),this._sceneObjects.delete(t),!0):(console.warn(`删除失败:对象${t}不存在于场景对象管理器中!}`),!1)}createSceneObject(t,e){const n=i.IV.context.createSceneObject(t,e);return n&&this.addSceneObject(n),n}createSceneObjectFromClass(t,e){const n=i.IV.context.createSceneObjectFromClass(t,e);return n&&this.addSceneObject(n),n}createSceneObjectFromJson(t){const e=i.IV.context.createSceneObjectFromJson(t);return e&&this.addSceneObject(e),e}}var d=n(5846);function g(t,e){const n=t._lastCameraInfo;if(n){const r=e.viewerChanged.don((i=>{if(!i||!n)return;const{position:o,rotation:s}=n;e.flyIn(o,s,0),t._lastCameraInfo=void 0,r()}))}}const y=(t,e)=>{const n=d.d.createCommonProps();try{Object.keys(n).forEach((n=>{t[n]=e[n]}))}catch(t){console.warn(t)}};class v extends r.Destroyable{get viewersChanged(){return this._viewersChanged}get viewers(){return this._viewers}getViewers(){return[...this._viewers]}get viewersToChange(){return this._viewersToChange}createViewer(t){const e=d.d.context.createViewer(t);return this._viewers.add(e),this._viewersChanged.emit([],[e]),e}destroyViewer(t){return!!t.isDestroyed()||(this._viewers.delete(t),this._viewersChanged.emit([t],[]),t.destroy(),t.isDestroyed())}constructor(t){super(),this._sceneObjectsManager=t,this._viewersChanged=this.disposeVar(new r.Event),this._viewers=new Set,this._viewersToChange=this.dv(new r.Event),this.d((()=>{for(const t of this._viewers)this.destroyViewer(t);this._viewers.clear()})),this.viewers.forEach((t=>{const e=this._sceneObjectsManager.sceneObjects;t.add(...e)})),this.d((()=>{const t=this._sceneObjectsManager.sceneObjects;this.viewers.forEach((e=>{e.delete(...t)}))})),this.d(this._sceneObjectsManager.sceneObjectsToChange.don(((t,e)=>{this.viewers.forEach((n=>{e.forEach((t=>{(0,s.Gv)(n.devTags,t.devTags)&&(n.has(t)?console.warn(`${n.typeName}中已存${t.typeName},检查逻辑是否有问题!`):n.add(t))})),t.forEach((t=>{(0,s.Gv)(n.devTags,t.devTags)&&(n.has(t)?n.delete(t):console.warn(`${n.typeName}中不存在${t.typeName},检查逻辑是否有问题!`))}))})),e.length>0&&e.forEach((t=>{t.d(t.devTagsChanged.don((()=>{this.viewers.forEach((e=>{e.has(t)&&e.delete(t),console.log("sceneObjectsToChange",e.devTags,t.devTags,(0,s.Gv)(e.devTags,t.devTags)),(0,s.Gv)(e.devTags,t.devTags)&&(e.has(t)?console.warn(`${e.typeName}中已存${t.typeName},检查逻辑是否有问题!`):e.add(t))}))})))}))}))),this.d(this.viewersChanged.don(((t,e)=>{const n=this._sceneObjectsManager.sceneObjects;e.forEach((t=>{for(let e of n)(0,s.Gv)(t.devTags,e.devTags)&&(t.has(e)?console.warn(`${t.typeName}中已存${e.typeName},检查逻辑是否有问题!`):t.add(e))})),t.forEach((t=>{for(let e of n)(0,s.Gv)(t.devTags,e.devTags)&&(t.has(e)?t.delete(e):console.warn(`${t.typeName}中不存在${e.typeName},检查逻辑是否有问题!`))})),e.length>0&&e.forEach((t=>{t.d(t.devTagsChanged.don((()=>{t.clearAllSceneObjects();const e=this._sceneObjectsManager.sceneObjects;for(let n of e)console.log("viewersChanged",t.devTags,n.devTags,(0,s.Gv)(t.devTags,n.devTags)),(0,s.Gv)(t.devTags,n.devTags)&&(t.has(n)?console.warn(`${t.typeName}中已存${n.typeName},检查逻辑是否有问题!`):t.add(n))})))}))})))}}var m=n(2476);function _(t,e,n,r){if(n)r.currentActiveEditing=[t,e];else if(r.currentActiveEditing){const[i,o]=r.currentActiveEditing;i===t&&o===e&&(n||(r.currentActiveEditing=void 0))}}const b=["editing","positionEditing","locationEditing","pointEditing","rotationEditing"];class w extends r.Destroyable{get sceneObject(){return this._sceneObject}constructor(t,e){super(),this._sceneObject=t;const n=this._sceneObject;for(let t of b){const r=n[t+"Changed"];if(r){{const r=n[t];_(n,t,r,e)}this.dispose(r.disposableOn((r=>_(n,t,r,e))))}}}}class E extends r.Destroyable{get currentActiveEditing(){return this._currentActiveEditing.value}set currentActiveEditing(t){this._currentActiveEditing.value=t}get currentActiveEditingChanged(){return this._currentActiveEditing.changed}get currentActiveEditingLastChangedTime(){return this._currentActiveEditingLastChangedTime}constructor(){super(),this._currentActiveEditing=this.disposeVar((0,r.reactArrayWithUndefined)(void 0)),this._currentActiveEditingLastChangedTime=0,this.dispose(this._currentActiveEditing.changed.disposableOn(((t,e)=>{if(this._currentActiveEditingLastChangedTime=Date.now(),e){const[t,n]=e;!0===t[n]&&(t[n]=!1)}if(t){const[e,n]=t;e[n]=!0}}))),m.ESSceneObject.context.sceneObjCreatedEvent.don((t=>{t.dv(new w(t,this))}))}}class x extends r.Destroyable{static get envs(){return i.IV.context.environmentVariables}getSceneObjectById(t){return i.IV.getSceneObjectById(t)}getSceneObject(t){return i.IV.getSceneObject(t)}get $refs(){return i.IV.$refs}get dragstartDataMananger(){return this._drgm}get sceneObjectsManager(){return this._sobjm}get viewers(){return this._vrm.viewers}getViewers(){return this._vrm.getViewers()}get sceneObjectEditingManager(){return this._sceneObjectEditingManager}get activeViewer(){return this._activeViewer.value}set activeViewer(t){this._activeViewer.value=t}get activeViewerChanged(){return this._activeViewer.changed}get syncOtherViewersToActived(){return this._syncOtherViewersToActived.value}set syncOtherViewersToActived(t){this._syncOtherViewersToActived.value=t}get syncOtherViewersToActivedChanged(){return this._syncOtherViewersToActived.changed}get cameraViewsManager(){return this._cmrvm}get json(){var t;const e=this._asset.createdTime||(new Date).toISOString(),n=(new Date).toISOString(),r=this._asset.name||"未命名项目",i={type:"ESObjectsManager",version:this._asset.version||"0.1.0",createdTime:e,modifiedTime:n,name:r},o=this.sceneTree.json,s=this._cmrvm.views;return{asset:i,viewers:[...this._vrm.viewers].map((t=>t.json)),sceneTree:o,viewCollection:s,lastView:null===(t=this.activeViewer)||void 0===t?void 0:t.getCurrentCameraInfo()}}set json(t){try{if(!t.asset)return;if(!t.asset.type||"ESObjectsManager"!==t.asset.type)return void console.warn("json装配失败! asset.type 不存在或者不是'ESObjectsManager'");if(this._asset.createdTime=t.asset&&t.asset.createdTime||(new Date).toISOString(),this._asset.modifiedTime=t.asset&&t.asset.modifiedTime||"",this._asset.name=t.asset&&t.asset.name||"未命名项目",this._asset.version=t.asset&&t.asset.version||"0.1.0",t.sceneTree&&(this.sceneTree.json=t.sceneTree),t.viewCollection&&(this._cmrvm.views=t.viewCollection),!t.viewers||!Array.isArray(t.viewers))return void console.warn("viewers is not an array or does not exist !");if(0===this._vrm.viewers.size||0===t.viewers.length)return void console.warn("viewers is empty !");this._vrm.viewers.forEach((e=>{const n=t.viewers.find((t=>t.id===e.id));n&&(e.json=n)}))}catch(t){console.error(`ESObjectsManager解析json数据时发生错误! error: ${t}`)}}get sceneTree(){return this._sceneTree}get jsonLoadingEvent(){return this._sceneTree.jsonLoadingEvent}get propUiTreeManager(){return this._propUiTreeManager}propTreeCallback(t){return function(t,e){const{property:n,customEventName:i,otherParams:o}=e,{dragstartDataMananger:s}=t;if(n instanceof h.j_);else if(n instanceof h.K7);else if(n instanceof h.XB){const[t,e]=(0,r.getReactFuncs)(n.reactVar);if("ondragover"===i){if(console.log("ondragover"),!o)throw new Error("!otherParams");const t=o[0];if(t.preventDefault(),!t.dataTransfer)return;p(s)?t.dataTransfer.dropEffect="move":t.dataTransfer.dropEffect="none"}else if("ondrop"===i){if(!o)throw new Error("!otherParams");o[0].preventDefault();const t=p(s);void 0!==t&&e(t)}}else if(n instanceof h.Qp){const[t,e]=(0,r.getReactFuncs)(n.reactVar);if("ondragover"===i){if(console.log("ondragover"),!o)throw new Error("!otherParams");const t=o[0];if(t.preventDefault(),!t.dataTransfer)return;p(s)?t.dataTransfer.dropEffect="move":t.dataTransfer.dropEffect="none"}else if("ondrop"===i){if(!o)throw new Error("!otherParams");const t=o[0].$event,e=o[0].strinsPropDom,n=o[0].index;t.preventDefault();const r=p(s);if(void 0!==r){e[n].firstChild.value=r;const t=new Event("input",{bubbles:!0,cancelable:!0});e[n].firstChild.dispatchEvent(t)}}}else if(n instanceof h.AS){const[t,e]=(0,r.getReactFuncs)(n.reactVar)}}(this,t)}getSceneTrees(){return[...this._sceneTreeMap.values()]}getSceneTree(t="default"){return"default"===t?this._sceneTree:this._sceneTreeMap.has(t)?this._sceneTreeMap.get(t):void console.warn(`id为${t}的SceneTree不存在!`)}createSceneTree(t,e=24){if(this._sceneTreeMap.has(t)||"default"===t)console.warn(`id为${t}的SceneTree已存在!`);else{const n=this.dv(new s.Hs(t,this.dragstartDataMananger,e,this));this._sceneTreeMap.set(t,n)}return this.getSceneTree(t)}get viewerCreatedEvent(){return this._viewerCreatedEvent}createViewer(t){const e=this._vrm.createViewer(t);this.activeViewer||(this.activeViewer=e);const n=this.d(e.viewerChanged.don((t=>{t&&(this._viewerCreatedEvent.emit(e),n())})));return e}destroyViewer(t){return this._activeViewer.value===t&&(this._activeViewer.value=void 0),this._vrm.destroyViewer(t)}switchViewer(t,e=!0,n=!0,r=!0){var i;this.activeViewer&&"Map"!==this.activeViewer.getNavigationMode()&&this.activeViewer.changeToMap();const s=[...this.getViewers()].find((e=>e.typeName===t.type));if(!this._lastCameraInfo&&e&&(this._lastCameraInfo=null===(i=this.activeViewer)||void 0===i?void 0:i.getCurrentCameraInfo()),s&&!r)return e&&g(this,s),this.activeViewer&&n&&y(s,this.activeViewer),s.container===(0,o.M)(t.container)?(s.containerOrId=t.container,s.forceRecreate()):s.containerOrId=t.container,r&&this.activeViewer&&this.destroyViewer(this.activeViewer),this.activeViewer=s,s;{console.warn("No ESViewer exists or destroy is true, will be created");const i=this.createViewer(t);return i&&(e&&g(this,i),this.activeViewer&&n&&y(i,this.activeViewer)),r&&this.activeViewer&&this.destroyViewer(this.activeViewer),this.activeViewer=i,i}}switchToCesiumViewer(...t){var e,n,r;if(!("object"!=typeof t[0]||t[0]instanceof HTMLDivElement)){const{container:e,viewSync:n,attributeSync:r,destroy:i}=t[0];return this.switchViewer({type:"ESCesiumViewer",container:e},null==n||n,null==r||r,null==i||i)}if("string"==typeof t[0]||t[0]instanceof HTMLDivElement){const i={container:t[0],viewSync:null===(e=t[1])||void 0===e||e,attributeSync:null===(n=t[2])||void 0===n||n,destroy:null===(r=t[3])||void 0===r||r},{container:o,viewSync:s,attributeSync:a,destroy:u}=i;return this.switchViewer({type:"ESCesiumViewer",container:o},s,a,u)}}switchToUEViewer(...t){var e,n,r,i,o,s,a,u;let c,l={viewSync:!0,attributeSync:!0,destroy:!0};if("object"!=typeof t[0]||t[0]instanceof HTMLDivElement||!t[0].hasOwnProperty("uri"))if("object"!=typeof t[0]||t[0]instanceof HTMLDivElement||!t[0].hasOwnProperty("ws"))("string"==typeof t[0]||t[0]instanceof HTMLDivElement)&&("string"==typeof t[1]&&t[1].startsWith("ws")?(c={type:"ESUeViewer",container:t[0],options:{ws:t[1],esmsg:null!==(e=t[2])&&void 0!==e?e:void 0}},l={viewSync:null===(n=t[3])||void 0===n||n,attributeSync:null===(r=t[4])||void 0===r||r,destroy:null===(i=t[5])||void 0===i||i}):(c={type:"ESUeViewer",container:t[0],options:{uri:t[1],app:t[2],token:null!==(o=t[3])&&void 0!==o?o:void 0}},l={viewSync:null===(s=t[4])||void 0===s||s,attributeSync:null===(a=t[5])||void 0===a||a,destroy:null===(u=t[6])||void 0===u||u}));else{const{container:e,ws:n,esmsg:r,viewSync:i,attributeSync:o,destroy:s}=t[0];c={type:"ESUeViewer",container:e,options:{ws:n,esmsg:r}},l={viewSync:null==i||i,attributeSync:null==o||o,destroy:null==s||s}}else{const{container:e,uri:n,app:r,token:i,viewSync:o,attributeSync:s,destroy:a}=t[0];c={type:"ESUeViewer",container:e,options:{uri:n,app:r,token:i}},l={viewSync:null==o||o,attributeSync:null==s||s,destroy:null==a||a}}if(!c)throw new Error("参数错误");const{viewSync:h,attributeSync:p,destroy:f}=l;return this.switchViewer(c,h,p,f)}createCesiumViewer(...t){var e,n;let r;if("object"!=typeof t[0]||t[0]instanceof HTMLDivElement?("string"==typeof t[0]||t[0]instanceof HTMLDivElement)&&(r={container:t[0],options:null!==(e=t[1])&&void 0!==e?e:void 0,id:null!==(n=t[2])&&void 0!==n?n:void 0,type:"ESCesiumViewer"}):r=Object.assign(Object.assign({},t[0]),{type:"ESCesiumViewer"}),!r)throw new Error("参数错误");return this.createViewer(r)}createUeViewer(...t){var e,n,r,i;let o;if("object"!=typeof t[0]||t[0]instanceof HTMLDivElement?("string"==typeof t[0]||t[0]instanceof HTMLDivElement)&&(o="string"==typeof t[1]&&t[1].startsWith("ws")?{type:"ESUeViewer",container:t[0],id:null!==(e=t[3])&&void 0!==e?e:void 0,options:{ws:t[1],esmsg:null!==(n=t[2])&&void 0!==n?n:void 0}}:{type:"ESUeViewer",container:t[0],id:null!==(r=t[4])&&void 0!==r?r:void 0,options:{uri:t[1],app:t[2],token:null!==(i=t[3])&&void 0!==i?i:void 0}}):o=Object.assign(Object.assign({},t[0]),{type:"ESUeViewer"}),!o)throw new Error("参数错误");return this.createViewer(o)}createSceneObject(t,e){return this._sobjm.createSceneObject(t,e)}createSceneObjectFromClass(t,e){return this._sobjm.createSceneObjectFromClass(t,e)}createSceneObjectFromJson(t){return this._sobjm.createSceneObjectFromJson(t)}destroySceneObject(t){const e=this._sobjm.deleteSceneObject(t);return t.destroy(),e}destroyAllSceneObjects(){const t=[...this._sobjm.sceneObjects];for(let e of t)this.destroySceneObject(e)}get pathAnimationManager(){return this._pathAnimationManager}constructor(...t){super(),this._drgm=this.dv(new s.gh),this._sobjm=this.dv(new f),this._vrm=this.dv(new v(this._sobjm)),this._sceneObjectEditingManager=this.disposeVar(new E),this._activeViewer=this.dv((0,r.react)(void 0)),this._syncOtherViewersToActived=this.dv((0,r.react)(!1)),this._cmrvm=this.createSceneObjectFromClass(i.dj),this._cmrvmdon=this.d((()=>this._cmrvm&&this.destroySceneObject(this._cmrvm))),this._asset={type:"ESObjectsManager",version:"0.1.0",createdTime:"",modifiedTime:"",name:"未命名项目"},this._sceneTree=this.dv(new s.Hs("default",this.dragstartDataMananger,24,this)),this._propUiTreeManager=this.dv(new s.Dt(24)),this._sceneTreeMap=new Map,this._viewerCreatedEvent=this.dv(new r.Event),this.syncEvent=this.dv((0,r.createNextAnimateFrameEvent)(this.activeViewerChanged,this.syncOtherViewersToActivedChanged)),this._syncEventDon=this.d(this.syncEvent.don((()=>{const t=this.syncOtherViewersToActived;this.viewers.forEach((e=>{t?e.syncOtherViewer(this.activeViewer):e.syncOtherViewer(void 0)}))}))),this._esPlyarAndPathTime=this.dv(new u(this)),this._pathAnimationManager=this.dv(new l(this))}}x.getSceneObjById=i.IV.context.getSceneObjectById.bind(i.IV.context),x.getEnv=i.IV.context.getEnv.bind(i.IV.context),x.setEnv=i.IV.context.setEnv.bind(i.IV.context),function(t){t.createDefaultProps=()=>({})}(x||(x={})),(0,r.extendClassProps)(x.prototype,x.createDefaultProps)},9883:t=>{t.exports=function(t,e,n,r){var i=t[0],o=t[1],s=!1;void 0===n&&(n=0),void 0===r&&(r=e.length);for(var a=r-n,u=0,c=a-1;u<a;c=u++){var l=e[u+n][0],h=e[u+n][1],p=e[c+n][0],f=e[c+n][1];h>o!=f>o&&i<(p-l)*(o-h)/(f-h)+l&&(s=!s)}return s}},9886:t=>{"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},9920:(t,e,n)=>{"use strict";var r=n(1290),i=n(6309),o=n(5974),s=n(3332).orient2d;function a(t,e,n){e=Math.max(0,void 0===e?2:e),n=n||0;var i=function(t){for(var e=t[0],n=t[0],r=t[0],i=t[0],s=0;s<t.length;s++){var a=t[s];a[0]<e[0]&&(e=a),a[0]>r[0]&&(r=a),a[1]<n[1]&&(n=a),a[1]>i[1]&&(i=a)}var u=[e,n,r,i],c=u.slice();for(s=0;s<t.length;s++)o(t[s],u)||c.push(t[s]);return function(t){t.sort(_);for(var e=[],n=0;n<t.length;n++){for(;e.length>=2&&f(e[e.length-2],e[e.length-1],t[n])<=0;)e.pop();e.push(t[n])}for(var r=[],i=t.length-1;i>=0;i--){for(;r.length>=2&&f(r[r.length-2],r[r.length-1],t[i])<=0;)r.pop();r.push(t[i])}return r.pop(),e.pop(),e.concat(r)}(c)}(t),s=new r(16);s.toBBox=function(t){return{minX:t[0],minY:t[1],maxX:t[0],maxY:t[1]}},s.compareMinX=function(t,e){return t[0]-e[0]},s.compareMinY=function(t,e){return t[1]-e[1]},s.load(t);for(var a,c=[],l=0;l<i.length;l++){var h=i[l];s.remove(h),a=g(h,a),c.push(a)}var p=new r(16);for(l=0;l<c.length;l++)p.insert(d(c[l]));for(var v=e*e,m=n*n;c.length;){var b=c.shift(),w=b.p,E=b.next.p,x=y(w,E);if(!(x<m)){var P=x/v;(h=u(s,b.prev.p,w,E,b.next.next.p,P,p))&&Math.min(y(h,w),y(h,E))<=P&&(c.push(b),c.push(g(h,b)),s.remove(h),p.remove(b),p.insert(d(b)),p.insert(d(b.next)))}}b=a;var S=[];do{S.push(b.p),b=b.next}while(b!==a);return S.push(b.p),S}function u(t,e,n,r,o,s,a){for(var u=new i([],c),h=t.data;h;){for(var f=0;f<h.children.length;f++){var d=h.children[f],g=h.leaf?v(d,n,r):l(n,r,d);g>s||u.push({node:d,dist:g})}for(;u.length&&!u.peek().node.children;){var y=u.pop(),m=y.node,_=v(m,e,n),b=v(m,r,o);if(y.dist<_&&y.dist<b&&p(n,m,a)&&p(r,m,a))return m}(h=u.pop())&&(h=h.node)}return null}function c(t,e){return t.dist-e.dist}function l(t,e,n){if(h(t,n)||h(e,n))return 0;var r=m(t[0],t[1],e[0],e[1],n.minX,n.minY,n.maxX,n.minY);if(0===r)return 0;var i=m(t[0],t[1],e[0],e[1],n.minX,n.minY,n.minX,n.maxY);if(0===i)return 0;var o=m(t[0],t[1],e[0],e[1],n.maxX,n.minY,n.maxX,n.maxY);if(0===o)return 0;var s=m(t[0],t[1],e[0],e[1],n.minX,n.maxY,n.maxX,n.maxY);return 0===s?0:Math.min(r,i,o,s)}function h(t,e){return t[0]>=e.minX&&t[0]<=e.maxX&&t[1]>=e.minY&&t[1]<=e.maxY}function p(t,e,n){for(var r,i,o,s,a=Math.min(t[0],e[0]),u=Math.min(t[1],e[1]),c=Math.max(t[0],e[0]),l=Math.max(t[1],e[1]),h=n.search({minX:a,minY:u,maxX:c,maxY:l}),p=0;p<h.length;p++)if(r=h[p].p,i=h[p].next.p,o=t,r!==(s=e)&&i!==o&&f(r,i,o)>0!=f(r,i,s)>0&&f(o,s,r)>0!=f(o,s,i)>0)return!1;return!0}function f(t,e,n){return s(t[0],t[1],e[0],e[1],n[0],n[1])}function d(t){var e=t.p,n=t.next.p;return t.minX=Math.min(e[0],n[0]),t.minY=Math.min(e[1],n[1]),t.maxX=Math.max(e[0],n[0]),t.maxY=Math.max(e[1],n[1]),t}function g(t,e){var n={p:t,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return e?(n.next=e.next,n.prev=e,e.next.prev=n,e.next=n):(n.prev=n,n.next=n),n}function y(t,e){var n=t[0]-e[0],r=t[1]-e[1];return n*n+r*r}function v(t,e,n){var r=e[0],i=e[1],o=n[0]-r,s=n[1]-i;if(0!==o||0!==s){var a=((t[0]-r)*o+(t[1]-i)*s)/(o*o+s*s);a>1?(r=n[0],i=n[1]):a>0&&(r+=o*a,i+=s*a)}return(o=t[0]-r)*o+(s=t[1]-i)*s}function m(t,e,n,r,i,o,s,a){var u,c,l,h,p=n-t,f=r-e,d=s-i,g=a-o,y=t-i,v=e-o,m=p*p+f*f,_=p*d+f*g,b=d*d+g*g,w=p*y+f*v,E=d*y+g*v,x=m*b-_*_,P=x,S=x;0===x?(c=0,P=1,h=E,S=b):(h=m*E-_*w,(c=_*E-b*w)<0?(c=0,h=E,S=b):c>P&&(c=P,h=E+_,S=b)),h<0?(h=0,-w<0?c=0:-w>m?c=P:(c=-w,P=m)):h>S&&(h=S,-w+_<0?c=0:-w+_>m?c=P:(c=-w+_,P=m));var O=(1-(l=0===h?0:h/S))*i+l*s-((1-(u=0===c?0:c/P))*t+u*n),C=(1-l)*o+l*a-((1-u)*e+u*r);return O*O+C*C}function _(t,e){return t[0]===e[0]?t[1]-e[1]:t[0]-e[0]}i.default&&(i=i.default),t.exports=a,t.exports.default=a},9992:t=>{"use strict";var e=Object.prototype.toString,n=Math.max,r=function(t,e){for(var n=[],r=0;r<t.length;r+=1)n[r]=t[r];for(var i=0;i<e.length;i+=1)n[i+t.length]=e[i];return n};t.exports=function(t){var i=this;if("function"!=typeof i||"[object Function]"!==e.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,s=function(t){for(var e=[],n=1,r=0;n<t.length;n+=1,r+=1)e[r]=t[n];return e}(arguments),a=n(0,i.length-s.length),u=[],c=0;c<a;c++)u[c]="$"+c;if(o=Function("binder","return function ("+function(t){for(var e="",n=0;n<t.length;n+=1)e+=t[n],n+1<t.length&&(e+=",");return e}(u)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var e=i.apply(this,r(s,arguments));return Object(e)===e?e:this}return i.apply(t,r(s,arguments))})),i.prototype){var l=function(){};l.prototype=i.prototype,o.prototype=new l,l.prototype=null}return o}}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r].call(o.exports,o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r=n(2476);module.exports=r})();