@arcgis/core 4.33.10 → 4.33.12

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 (93) hide show
  1. package/applications/KnowledgeStudio/reshape.d.ts +5 -0
  2. package/applications/KnowledgeStudio/reshape.js +5 -0
  3. package/assets/esri/core/workers/RemoteClient.js +1 -1
  4. package/assets/esri/core/workers/chunks/{1415d4e2f5f3193be004.js → 012dee84d97b71461397.js} +1 -1
  5. package/assets/esri/core/workers/chunks/{342f61e784c9364a493b.js → 1ebff223f0f241686669.js} +1 -1
  6. package/assets/esri/core/workers/chunks/{fdfb5d601d318d6a49f9.js → 2f2cb0348f36a5157293.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{cb16ba9512ae0a09c55d.js → 4ab87eea6345818de60f.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{e9aa1d9ded8a52a40c57.js → 5d74b754ee0140afbd22.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{d33a5d79f2163ad62b1d.js → 64aebb3780ac4c8bfdc7.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{c6cd8784a3e222eb2d4a.js → 8edd8ebca441d670380f.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{cf25f487fe4eb1579aee.js → 9128902b127d0ec70fe0.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{17c623db3d9a06a9b711.js → a5fab8d7d8403b4de682.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{bac5e1d50b69f0d94694.js → ad2a29aca4e5bcd545cc.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{9049c81445cc044286f1.js → bbb92d0ba6a34c7a7d1b.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{7b9d14cc4a466ef18d71.js → bfd51df0a44a05596061.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{3ca6f893fd58f5b17af5.js → c410b2b9d0645e9cea89.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{8008f5479f4d16964088.js → dded6853cebf2165cb37.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{db192728fa0ee08a776a.js → e7ca7ced4dfb04c81e84.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{0155e6806621f3588ffa.js → fe71a2ea7965e75ee881.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{71e1a8bd432947c66357.js → ffeda53fee883f8025ed.js} +1 -1
  21. package/assets/esri/themes/base/widgets/_VideoPlayer.scss +16 -2
  22. package/assets/esri/themes/dark/main.css +1 -1
  23. package/assets/esri/themes/light/main.css +1 -1
  24. package/assets/esri/themes/light/view.css +1 -1
  25. package/chunks/GeodeticDistanceCalculator-Ce-woMPw.js +1 -1
  26. package/chunks/MultiPathImpl.js +1 -1
  27. package/chunks/OperatorGeodesicBuffer.js +1 -1
  28. package/chunks/OperatorGeodeticArea.js +1 -1
  29. package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
  30. package/chunks/OperatorGeodeticLength.js +1 -1
  31. package/chunks/OperatorProximityGeodesic.js +1 -1
  32. package/chunks/OperatorShapePreservingLength.js +1 -1
  33. package/chunks/OperatorShapePreservingProject.js +1 -1
  34. package/chunks/Point2D.js +1 -1
  35. package/chunks/ProjectionTransformation.js +1 -1
  36. package/chunks/sphere.js +1 -1
  37. package/chunks/vec42.js +1 -1
  38. package/core/libs/gl-matrix-2/math/quat.js +1 -1
  39. package/core/libs/gl-matrix-2/math/vec4.js +1 -1
  40. package/core/quantityFormatUtils.js +1 -1
  41. package/core/unitFormatUtils.js +1 -1
  42. package/geometry/coordinateFormatter.js +1 -1
  43. package/geometry/operators/gx/operatorAlphaShape.js +1 -1
  44. package/geometry/operators/gx/operatorPolygonSlicer.js +1 -1
  45. package/geometry/support/sphere.js +1 -1
  46. package/interfaces.d.ts +128 -0
  47. package/kernel.js +1 -1
  48. package/layers/knowledgeGraph/nodeMovementUtils.js +5 -0
  49. package/package.json +1 -1
  50. package/renderers/support/RasterSymbolizer.js +1 -1
  51. package/support/revision.js +1 -1
  52. package/symbols/support/previewSymbol3D.js +1 -1
  53. package/views/2d/LabelManager.js +1 -1
  54. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  55. package/views/2d/layers/features/FeatureContainer.js +1 -1
  56. package/views/2d/layers/features/RenderState.js +1 -1
  57. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  58. package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
  59. package/views/3d/camera/constraintUtils/distance.js +1 -1
  60. package/views/3d/camera/constraintUtils/tilt.js +1 -1
  61. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  62. package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
  63. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  64. package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
  65. package/views/3d/state/utils/navigationUtils.js +1 -1
  66. package/views/3d/terrain/OverlayManager.js +1 -1
  67. package/views/3d/terrain/TerrainSurface.js +1 -1
  68. package/views/3d/webgl-engine/lib/Octree.js +1 -1
  69. package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
  70. package/views/LinkChartView.js +1 -1
  71. package/views/draw/DrawOperation.js +1 -1
  72. package/views/draw/support/GraphicMover.js +1 -1
  73. package/views/draw/support/HighlightHelper.js +1 -1
  74. package/views/draw/support/Reshape.js +1 -1
  75. package/views/interactive/Tooltip.js +1 -1
  76. package/views/interactive/sketch/SketchLabelOptions.js +1 -1
  77. package/views/interactive/sketch/SketchOptions.js +1 -1
  78. package/views/interactive/sketch/SketchTooltipOptions.js +1 -1
  79. package/views/interactive/sketch/SketchTooltipVisibleElements.js +1 -1
  80. package/views/interactive/sketch/SketchValueOptions.js +1 -1
  81. package/views/interactive/sketch/Units.js +1 -1
  82. package/views/interactive/sketch/constraints.js +1 -1
  83. package/views/interactive/snapping/featureSources/FeatureCollectionSnappingSource.js +1 -1
  84. package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
  85. package/views/interactive/snapping/featureSources/GraphicsSnappingSource.js +1 -1
  86. package/views/interactive/tooltip/fields/fields.js +1 -1
  87. package/views/interactive/tooltip/fields/parsingAndFormattingUtils.js +1 -1
  88. package/views/interactive/tooltip/tooltipCommonUtils.js +1 -1
  89. package/views/support/LayerLayerViewInfo.js +1 -1
  90. package/views/support/angularMeasurementUtils.js +1 -1
  91. package/widgets/VideoPlayer/components/PlayerActionsGroup.js +1 -1
  92. package/widgets/VideoPlayer/css.js +1 -1
  93. package/widgets/VideoPlayer.js +1 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7346],{431:(t,n,e)=>{e.d(n,{o6:()=>R,HY:()=>P,hx:()=>y,Jb:()=>U});var r=e(9318);function o(t,n,e){const r=n/3,o=new Uint32Array(e+1),i=new Uint32Array(e+1),a=(t,n)=>{t<n?o[t+1]++:i[n+1]++};for(let n=0;n<r;n++){const e=t[3*n],r=t[3*n+1],o=t[3*n+2];a(e,r),a(r,o),a(o,e)}let s=0,c=0;for(let t=0;t<e;t++){const n=o[t+1],e=i[t+1];o[t+1]=s,i[t+1]=c,s+=n,c+=e}const u=new Uint32Array(6*r),l=o[e],h=(t,n,e)=>{if(t<n){const r=o[t+1]++;u[2*r]=n,u[2*r+1]=e}else{const r=i[n+1]++;u[2*l+2*r]=t,u[2*l+2*r+1]=e}};for(let n=0;n<r;n++){const e=t[3*n],r=t[3*n+1],o=t[3*n+2];h(e,r,n),h(r,o,n),h(o,e,n)}const f=(t,n)=>{const e=2*t,r=n-t;for(let t=1;t<r;t++){const n=u[e+2*t],r=u[e+2*t+1];let o=t-1;for(;o>=0&&u[e+2*o]>n;o--)u[e+2*o+2]=u[e+2*o],u[e+2*o+3]=u[e+2*o+1];u[e+2*o+2]=n,u[e+2*o+3]=r}};for(let t=0;t<e;t++)f(o[t],o[t+1]),f(l+i[t],l+i[t+1]);const d=new Int32Array(3*r),g=(n,e)=>n===t[3*e]?0:n===t[3*e+1]?1:n===t[3*e+2]?2:-1,M=(t,n)=>{const e=g(t,n);d[3*n+e]=-1},p=(t,n,e,r)=>{const o=g(t,n);d[3*n+o]=r;const i=g(e,r);d[3*r+i]=n};for(let t=0;t<e;t++){let n=o[t];const e=o[t+1];let r=i[t];const a=i[t+1];for(;n<e&&r<a;){const e=u[2*n],o=u[2*l+2*r];e===o?(p(t,u[2*n+1],o,u[2*l+2*r+1]),n++,r++):e<o?(M(t,u[2*n+1]),n++):(M(o,u[2*l+2*r+1]),r++)}for(;n<e;)M(t,u[2*n+1]),n++;for(;r<a;)M(u[2*l+2*r],u[2*l+2*r+1]),r++}return d}var i=e(1843),a=e(46540),s=e(3055),c=e(87811),u=e(38954),l=e(51850),h=e(4431),f=e(34727);function d(t,n,e,r,o,i=2){const a=1/(Math.abs(e)+Math.abs(r)+Math.abs(o)),s=e*a,c=r*a,u=o<=0?(s>=0?1:-1)*(1-Math.abs(c)):s,l=o<=0?(c>=0?1:-1)*(1-Math.abs(s)):c,h=n*i;t[h]=g(u),t[h+1]=g(l)}function g(t){return(0,f.qE)(Math.round(32767*t),-32767,32767)}e(11868),e(34275);class M{updateSettings(t){this.settings=t,this._edgeHashFunction=t.reducedPrecision?A:E}write(t,n,e){v.seed=this._edgeHashFunction(e);const r=v.getIntRange(0,255),o=v.getIntRange(0,this.settings.variants-1),i=v.getFloat(),a=255*(.5*function(t){return Math.abs(t)**1.2*Math.sign(t)}(-(1-Math.min(i/.7,1))+Math.max(0,i-.7)/(1-.7))+.5);t.position0.setVec(n,e.position0),t.position1.setVec(n,e.position1),t.componentIndex.set(n,e.componentIndex),t.variantOffset.set(n,r),t.variantStroke.set(n,o),t.variantExtension.set(n,a)}}const p=new Float32Array(6),m=new Uint32Array(p.buffer),N=new Uint32Array(1);function E(t){return p[0]=t.position0[0],p[1]=t.position0[1],p[2]=t.position0[2],p[3]=t.position1[0],p[4]=t.position1[1],p[5]=t.position1[2],N[0]=31*(31*(31*(31*(31*(166811+m[0])+m[1])+m[2])+m[3])+m[4])+m[5],N[0]}function A(t){const n=p;n[0]=O(t.position0[0]),n[1]=O(t.position0[1]),n[2]=O(t.position0[2]),n[3]=O(t.position1[0]),n[4]=O(t.position1[1]),n[5]=O(t.position1[2]),N[0]=5381;for(let t=0;t<m.length;t++)N[0]=31*N[0]+m[t];return N[0]}const I=1e4;function O(t){return Math.round(t*I)/I}class T{constructor(){this._commonWriter=new M}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return s.gr.createBuffer(t)}write(t,n,e){this._commonWriter.write(t,n,e),(0,u.f)(b,e.faceNormal0,e.faceNormal1),(0,u.n)(b,b);const{typedBuffer:r,typedBufferStride:o}=t.normalCompressed;d(r,n,b[0],b[1],b[2],o)}static{this.Layout=s.gr}static{this.glLayout=(0,h.U)(s.gr,1)}}class S{constructor(){this._commonWriter=new M}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return s.In.createBuffer(t)}write(t,n,e){this._commonWriter.write(t,n,e);{const{typedBuffer:r,typedBufferStride:o}=t.normalCompressed;d(r,n,e.faceNormal0[0],e.faceNormal0[1],e.faceNormal0[2],o)}{const{typedBuffer:r,typedBufferStride:o}=t.normal2Compressed;d(r,n,e.faceNormal1[0],e.faceNormal1[1],e.faceNormal1[2],o)}}static{this.Layout=s.In}static{this.glLayout=(0,h.U)(s.In,1)}}const b=(0,l.vt)(),v=new c.A;var _=e(93406);function R(t){const n=y(t.data,t.skipDeduplicate,t.indices,t.indicesLength);return D.updateSettings(t.writerSettings),w.updateSettings(t.writerSettings),(0,_.K)(n,D,w)}function y(t,n,e,i){if(n){const n=o(e,i,t.count);return new L(e,i,n,t)}const a=(0,r.b)(t.buffer,t.stride/4,{originalIndices:e}),c=o(a.indices,i,a.uniqueCount);return{faces:a.indices,facesLength:a.indices.length,neighbors:c,vertices:s.I$.createView(a.buffer)}}class L{constructor(t,n,e,r){this.faces=t,this.facesLength=n,this.neighbors=e,this.vertices=r}}const D=new T,w=new S,U=(0,i.BP)().vec3f(a.r.POSITION0).vec3f(a.r.POSITION1),P=(0,i.BP)().vec3f(a.r.POSITION0).vec3f(a.r.POSITION1).u16(a.r.COMPONENTINDEX)},3055:(t,n,e)=>{e.d(n,{I$:()=>a,In:()=>u,gr:()=>c});var r=e(4431),o=e(1843),i=e(46540);const a=(0,o.BP)().vec3f(i.r.POSITION).u16(i.r.COMPONENTINDEX).freeze(),s=(0,o.BP)().vec2u8(i.r.SIDENESS).freeze(),c=((0,r.U)(s),(0,o.BP)().vec3f(i.r.POSITION0).vec3f(i.r.POSITION1).vec2i16(i.r.NORMALCOMPRESSED).u16(i.r.COMPONENTINDEX).u8(i.r.VARIANTOFFSET,{glNormalized:!0}).u8(i.r.VARIANTSTROKE).u8(i.r.VARIANTEXTENSION,{glNormalized:!0}).freeze()),u=(0,o.BP)().vec3f(i.r.POSITION0).vec3f(i.r.POSITION1).vec2i16(i.r.NORMALCOMPRESSED).vec2i16(i.r.NORMAL2COMPRESSED).u16(i.r.COMPONENTINDEX).u8(i.r.VARIANTOFFSET,{glNormalized:!0}).u8(i.r.VARIANTSTROKE).u8(i.r.VARIANTEXTENSION,{glNormalized:!0}).freeze();new Map([[i.r.POSITION0,0],[i.r.POSITION1,1],[i.r.COMPONENTINDEX,2],[i.r.VARIANTOFFSET,3],[i.r.VARIANTSTROKE,4],[i.r.VARIANTEXTENSION,5],[i.r.NORMALCOMPRESSED,6],[i.r.NORMAL2COMPRESSED,7],[i.r.SIDENESS,8]])},3694:(t,n,e)=>{e.d(n,{A:()=>s});var r,o=e(4576),i=e(21818);!function(t){const n=(t,n,e,r)=>{let o=n,i=n;const a=e>>>1,s=t[o-1];for(;i<=a;){i=o<<1,i<e&&r(t[i-1],t[i])<0&&++i;const n=t[i-1];if(r(n,s)<=0)break;t[o-1]=n,o=i}t[o-1]=s},e=(t,n)=>t<n?-1:t>n?1:0;t.sort=function(t,r,o,i){void 0===r&&(r=0),void 0===o&&(o=t.length),void 0===i&&(i=e);for(let e=o>>>1;e>r;e--)n(t,e,o,i);const a=r+1;for(let e=o-1;e>r;e--){const o=t[r];t[r]=t[e],t[e]=o,n(t,a,e,i)}},t.iterableSort=function*(t,r,o,i){void 0===r&&(r=0),void 0===o&&(o=t.length),void 0===i&&(i=e);for(let e=o>>>1;e>r;e--)n(t,e,o,i),yield;const a=r+1;for(let e=o-1;e>r;e--){const o=t[r];t[r]=t[e],t[e]=o,n(t,a,e,i),yield}}}(r||(r={}));const a=r;class s{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new o.vW,t&&(t.initialSize&&(this.data=new Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),void 0!==t.deallocator&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>c(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){const n=new Array;for(let e=0;e<this._length;e++){const r=this.data[e];t(r)&&n.push(r)}return n}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,n){const e=this.data.indexOf(t,n);return-1!==e&&e<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let n=t;n<this._length;++n)this.data[n]=this._deallocator(this.data[n]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,n=t.length){for(let e=0;e<n;e++)this.data[this._length++]=t[e]}fill(t,n){for(let e=0;e<n;e++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));const t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,c(this)}pop(){if(0===this.length)return;const t=this.data[this.length-1];return this.length=this.length-1,this._shrink(),t}remove(t){const n=(0,o.qh)(this.data,(0,i.zI)(t),this.length,this._hint);if(-1!==n)return this.data.splice(n,1),this.length=this.length-1,t}removeUnordered(t){return this.removeUnorderedIndex((0,o.qh)(this.data,(0,i.zI)(t),this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,n=t.length,e){this.length=(0,o.mW)(this.data,t,this.length,n,this._hint,e),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(t,n){if(t>=this.length||n>=this.length||t===n)return;const e=this.data[t];this.data[t]=this.data[n],this.data[n]=e}sort(t){a.sort(this.data,0,this.length,t)}iterableSort(t){return a.iterableSort(this.data,0,this.length,t)}some(t,n){for(let e=0;e<this.length;++e)if(t.call(n,this.data[e],e,this.data))return!0;return!1}find(t,n){const{data:e,length:r}=this;for(let o=0;o<r;++o)if(t.call(n,e[o]))return e[o]}filterInPlace(t,n){let e=0;for(let r=0;r<this._length;++r){const o=this.data[r];t.call(n,o,r,this.data)&&(this.data[r]=this.data[e],this.data[e]=o,e++)}if(this._deallocator)for(let t=e;t<this._length;t++)this.data[t]=this._deallocator(this.data[t]);return this._length=e,this._shrink(),this}forAll(t,n){const{data:e,length:r}=this;for(let o=0;o<r;++o)t.call(n,e[o],o,e)}forEach(t,n){this.data.slice(0,this.length).forEach(t,n)}map(t,n){const e=new Array(this.length);for(let r=0;r<this.length;++r)e[r]=t.call(n,this.data[r],r,this.data);return e}reduce(t,n){let e=n;for(let n=0;n<this.length;++n)e=t(e,this.data[n],n,this.data);return e}has(t){const n=this.length,e=this.data;for(let r=0;r<n;++r)if(e[r]===t)return!0;return!1}*[Symbol.iterator](){for(let t=0;t<this.length;t++)yield this.data[t]}}function c(t){t.data.length>1.5*t.length&&(t.data.length=Math.floor(1.1*t.length))}},4431:(t,n,e)=>{e.d(n,{U:()=>i});var r=e(63907),o=e(74038);function i(t,n=0){const e=t.stride;return Array.from(t.fields.keys()).map((r=>{const i=t.fields.get(r),s=i.constructor.ElementCount,c=a(i.constructor.ElementType),u=i.offset,l=i.optional?.glNormalized??!1;return new o._(r,s,c,u,e,l,n)}))}function a(t){const n=s[t];if(n)return n;throw new Error("BufferType not supported in WebGL")}const s={u8:r.pe.UNSIGNED_BYTE,u16:r.pe.UNSIGNED_SHORT,u32:r.pe.UNSIGNED_INT,i8:r.pe.BYTE,i16:r.pe.SHORT,i32:r.pe.INT,f16:r.pe.HALF_FLOAT,f32:r.pe.FLOAT}},9318:(t,n,e)=>{e.d(n,{b:()=>i});var r=e(34727),o=e(97146);function i(t,n,e){const i=Array.isArray(t),l=i?t.length/n:t.byteLength/(4*n),h=i?t:new Uint32Array(t,0,l*n),f=e?.minReduction??0,d=e?.originalIndices||null,g=d?d.length:0,M=e?.componentOffsets||null;let p=0;if(M)for(let t=0;t<M.length-1;t++){const n=M[t+1]-M[t];n>p&&(p=n)}else p=l;const m=Math.floor(1.1*p)+1;(null==u||u.length<2*m)&&(u=new Uint32Array((0,r.cU)(2*m)));for(let t=0;t<2*m;t++)u[t]=0;let N=0;const E=!!M&&!!d,A=E?g:l;let I=(0,o.my)(l);const O=new Uint32Array(g),T=1.96;let S=0!==f?Math.ceil(4*T*T/(f*f)*f*(1-f)):A,b=1,v=M?M[1]:A;for(let t=0;t<A;t++){if(t===S){const n=1-N/t;if(n+T*Math.sqrt(n*(1-n)/t)<f)return null;S*=2}if(t===v){for(let t=0;t<2*m;t++)u[t]=0;if(d)for(let t=M[b-1];t<M[b];t++)O[t]=I[d[t]];v=M[++b]}const e=E?d[t]:t,r=e*n,o=c(h,r,n);let i=o%m,s=N;for(;0!==u[2*i+1];){if(u[2*i]===o){const t=u[2*i+1]-1;if(a(h,r,t*n,n)){s=I[t];break}}i++,i>=m&&(i-=m)}s===N&&(u[2*i]=o,u[2*i+1]=e+1,N++),I[e]=s}if(0!==f&&1-N/l<f)return null;if(E){for(let t=M[b-1];t<O.length;t++)O[t]=I[d[t]];I=(0,o.uW)(O)}const _=i?new Array(N):new Uint32Array(N*n);N=0;for(let t=0;t<A;t++)I[t]===N&&(s(h,(E?d[t]:t)*n,_,N*n,n),N++);if(d&&!E){const t=new Uint32Array(g);for(let n=0;n<t.length;n++)t[n]=I[d[n]];I=(0,o.uW)(t)}return{buffer:Array.isArray(_)?_:_.buffer,indices:I,uniqueCount:N}}function a(t,n,e,r){for(let o=0;o<r;o++)if(t[n+o]!==t[e+o])return!1;return!0}function s(t,n,e,r,o){for(let i=0;i<o;i++)e[r+i]=t[n+i]}function c(t,n,e){let r=0;for(let o=0;o<e;o++)r=t[n+o]+r|0,r=r+(r<<11)+(r>>>2)|0;return r>>>0}let u=null},34304:(t,n,e)=>{e.d(n,{DF:()=>c,FD:()=>o,Ov:()=>i,ct:()=>u});let r=1e-6;function o(){return r}const i=Math.random,a=Math.PI/180,s=180/Math.PI;function c(t){return t*a}function u(t){return t*s}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(t,n){return Math.abs(t-n)<=r*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:o,setEpsilon:function(t){r=t},toDegree:u,toRadian:c},Symbol.toStringTag,{value:"Module"}))},34727:(t,n,e)=>{e.d(n,{$8:()=>O,Cc:()=>a,Hx:()=>M,Io:()=>I,KJ:()=>u,Sp:()=>f,XM:()=>l,YN:()=>h,ZH:()=>g,cU:()=>o,gg:()=>d,hs:()=>s,kU:()=>c,or:()=>S,pF:()=>v,pq:()=>b,qE:()=>i});const r=new Float32Array(1);function o(t){--t;for(let n=1;n<32;n<<=1)t|=t>>n;return t+1}function i(t,n,e){return Math.min(Math.max(t,n),e)}function a(t,n,e){return t+(n-t)*e}function s(t,n,e,r,o){return a(r,o,(t-n)/(e-n))}function c(t){return t*Math.PI/180}function u(t){return 180*t/Math.PI}function l(t){return Math.acos(i(t,-1,1))}function h(t){return Math.asin(i(t,-1,1))}function f(t,n,e=1e-6){return t===n||!(!Number.isFinite(t)||!Number.isFinite(n))&&(t>n?t-n:n-t)<=e}function d(t,n,e=1e-6){return!f(t,n,e)&&t>n}function g(t,n,e=1e-6){return!f(t,n,e)&&t<n}function M(t,n,e=1e-6){return f(t,n,e)||t>n}const p=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function m(t){return p.setFloat64(0,t),p.getBigInt64(0)}const N=BigInt("1000000"),E=A(1);function A(t){const n=m(t=Math.abs(t)),e=function(t){return p.setBigInt64(0,t),p.getFloat64(0)}(n<=N?N:n-N);return Math.abs(t-e)}function I(t,n,e=E){if(t===n)return!0;if(!Number.isFinite(t)||!Number.isFinite(n))return!1;if(null!=e&&A(Math.min(Math.abs(t),Math.abs(n)))<e)return Math.abs(t-n)<=e;const r=m(t),o=m(n);return r<0==o<0&&!((r<o?o-r:r-o)>N)}function O(t){return T(Math.max(-b,Math.min(t,b)))}function T(t){return r[0]=t,r[0]}function S(t){const n=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],e=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],r=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(f(n,1)&&f(e,1)&&f(r,1))}const b=T(34028234663852886e22);function v(t,n,e){if(void 0===e||0===+e)return Math[t](n);if(n=+n,e=+e,isNaN(n)||"number"!=typeof e||e%1!=0)return NaN;let r=n.toString().split("e");return r=(n=Math[t](+(r[0]+"e"+(r[1]?+r[1]-e:-e)))).toString().split("e"),+(r[0]+"e"+(r[1]?+r[1]+e:e))}},38954:(t,n,e)=>{e.d(n,{A:()=>g,B:()=>d,C:()=>l,D:()=>h,E:()=>U,F:()=>F,H:()=>B,a:()=>P,b:()=>m,c:()=>a,d:()=>u,e:()=>S,f:()=>c,g:()=>p,h:()=>b,i:()=>s,j:()=>N,k:()=>A,l:()=>i,m:()=>v,n:()=>T,o:()=>R,q:()=>w,r:()=>O,s:()=>E,t:()=>_,u:()=>I,v:()=>y,w:()=>f,x:()=>V,y:()=>z,z:()=>M});var r=e(51850),o=e(34304);function i(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function s(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function c(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function l(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function h(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function f(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function d(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function g(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function M(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function p(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function m(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function N(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return Math.sqrt(e*e+r*r+o*o)}function E(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return e*e+r*r+o*o}function A(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function I(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function O(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function T(t,n){const e=n[0],r=n[1],o=n[2];let i=e*e+r*r+o*o;return i>0&&(i=1/Math.sqrt(i),t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i),t}function S(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function b(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],s=e[1],c=e[2];return t[0]=o*c-i*s,t[1]=i*a-r*c,t[2]=r*s-o*a,t}function v(t,n,e,r){const o=n[0],i=n[1],a=n[2];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t[2]=a+r*(e[2]-a),t}function _(t,n,e){const r=n[0],o=n[1],i=n[2];return t[0]=e[0]*r+e[4]*o+e[8]*i+e[12],t[1]=e[1]*r+e[5]*o+e[9]*i+e[13],t[2]=e[2]*r+e[6]*o+e[10]*i+e[14],t}function R(t,n,e){const r=n[0],o=n[1],i=n[2];return t[0]=r*e[0]+o*e[3]+i*e[6],t[1]=r*e[1]+o*e[4]+i*e[7],t[2]=r*e[2]+o*e[5]+i*e[8],t}function y(t,n,e){const r=e[0],o=e[1],i=e[2],a=e[3],s=n[0],c=n[1],u=n[2],l=o*u-i*c,h=i*s-r*u,f=r*c-o*s,d=o*f-i*h,g=i*l-r*f,M=r*h-o*l,p=2*a;return t[0]=s+l*p+2*d,t[1]=c+h*p+2*g,t[2]=u+f*p+2*M,t}const L=(0,r.vt)(),D=(0,r.vt)();function w(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function U(t,n,e){const r=e[0]-n[0],o=e[1]-n[1],i=e[2]-n[2];let a=r*r+o*o+i*i;return a>0?(a=1/Math.sqrt(a),t[0]=r*a,t[1]=o*a,t[2]=i*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const P=u,C=l,x=h,F=N,V=E,B=i,z=A;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:c,angle:function(t,n){T(L,t),T(D,n);const e=S(L,D);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,o,i){const a=1-i,s=a*a,c=i*i,u=s*a,l=3*i*s,h=3*c*a,f=c*i;return t[0]=n[0]*u+e[0]*l+r[0]*h+o[0]*f,t[1]=n[1]*u+e[1]*l+r[1]*h+o[1]*f,t[2]=n[2]*u+e[2]*l+r[2]*h+o[2]*f,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:a,cross:b,crossAndNormalize:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],s=e[1],c=e[2],u=o*c-i*s,l=i*a-r*c,h=r*s-o*a,f=Math.sqrt(u*u+l*l+h*h);return t[0]=u/f,t[1]=l/f,t[2]=h/f,t},direction:U,dist:F,distance:N,div:x,divide:h,dot:S,equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],i=t[2],a=n[0],s=n[1],c=n[2],u=(0,o.FD)();return Math.abs(e-a)<=u*Math.max(1,Math.abs(e),Math.abs(a))&&Math.abs(r-s)<=u*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-c)<=u*Math.max(1,Math.abs(i),Math.abs(c))},exactEquals:w,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,o,i){const a=i*i,s=a*(2*i-3)+1,c=a*(i-2)+i,u=a*(i-1),l=a*(3-2*i);return t[0]=n[0]*s+e[0]*c+r[0]*u+o[0]*l,t[1]=n[1]*s+e[1]*c+r[1]*u+o[1]*l,t[2]=n[2]*s+e[2]*c+r[2]*u+o[2]*l,t},inverse:O,len:B,length:i,lerp:v,max:M,min:g,mul:C,multiply:l,negate:I,normalize:T,random:function(t,n=1){const e=o.Ov,r=2*e()*Math.PI,i=2*e()-1,a=Math.sqrt(1-i*i)*n;return t[0]=Math.cos(r)*a,t[1]=Math.sin(r)*a,t[2]=i*n,t},rotateX:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0],i[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),i[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateY:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),i[1]=o[1],i[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateZ:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),i[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),i[2]=o[2],t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:p,scaleAndAdd:m,set:s,sign:d,sqrDist:V,sqrLen:z,squaredDistance:E,squaredLength:A,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:P,subtract:u,transformMat3:R,transformMat4:_,transformQuat:y},Symbol.toStringTag,{value:"Module"}))},46540:(t,n,e)=>{var r;e.d(n,{r:()=>r}),function(t){t.POSITION="position",t.NORMAL="normal",t.NORMALCOMPRESSED="normalCompressed",t.UV0="uv0",t.UVI="uvi",t.COLOR="color",t.SYMBOLCOLOR="symbolColor",t.SIZE="size",t.ROTATION="rotation",t.TANGENT="tangent",t.OFFSET="offset",t.PERSPECTIVEDIVIDE="perspectiveDivide",t.CENTEROFFSETANDDISTANCE="centerOffsetAndDistance",t.LENGTH="length",t.NEXTDELTA="nextDelta",t.PREVIOUSDELTA="previousDelta",t.U0="u0",t.LINEPARAMETERS="lineParameters",t.COLORFEATUREATTRIBUTE="colorFeatureAttribute",t.SIZEFEATUREATTRIBUTE="sizeFeatureAttribute",t.OPACITYFEATUREATTRIBUTE="opacityFeatureAttribute",t.DISTANCETOSTART="distanceToStart",t.UVMAPSPACE="uvMapSpace",t.BOUNDINGRECT="boundingRect",t.UVREGION="uvRegion",t.PROFILERIGHT="profileRight",t.PROFILEUP="profileUp",t.PROFILEVERTEXANDNORMAL="profileVertexAndNormal",t.PROFILEAUXDATA="profileAuxData",t.INSTANCEMODELORIGINHI="instanceModelOriginHi",t.INSTANCEMODELORIGINLO="instanceModelOriginLo",t.INSTANCEMODEL="instanceModel",t.INSTANCEMODELNORMAL="instanceModelNormal",t.INSTANCECOLOR="instanceColor",t.INSTANCEFEATUREATTRIBUTE="instanceFeatureAttribute",t.LOCALTRANSFORM="localTransform",t.GLOBALTRANSFORM="globalTransform",t.BOUNDINGSPHERE="boundingSphere",t.MODELORIGIN="modelOrigin",t.MODELSCALEFACTORS="modelScaleFactors",t.FEATUREATTRIBUTE="featureAttribute",t.STATE="state",t.LODLEVEL="lodLevel",t.POSITION0="position0",t.POSITION1="position1",t.NORMAL2COMPRESSED="normal2Compressed",t.COMPONENTINDEX="componentIndex",t.VARIANTOFFSET="variantOffset",t.VARIANTSTROKE="variantStroke",t.VARIANTEXTENSION="variantExtension",t.SIDENESS="sideness",t.START="start",t.END="end",t.UP="up",t.START_UP="startUp",t.END_UP="endUp",t.EXTRUDE="extrude",t.OLIDCOLOR="objectAndLayerIdColor",t.INSTANCEOBJECTANDLAYERIDCOLOR="instanceObjectAndLayerIdColor"}(r||(r={}))},48163:(t,n,e)=>{function r(){return[0,0]}function o(t,n){return[t,n]}function i(){return o(1,1)}function a(){return o(1,0)}function s(){return o(0,1)}e.d(n,{Un:()=>c,fA:()=>o,vt:()=>r});const c=i(),u=a(),l=s();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:u,UNIT_Y:l,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:o,ones:i,unitX:a,unitY:s,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},51850:(t,n,e)=>{function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function i(t,n,e){return[t,n,e]}function a(t,n,e){return[t,n,e]}function s(t,n=[0,0,0]){const e=Math.min(3,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n}function c(){return i(1,1,1)}function u(){return i(1,0,0)}function l(){return i(0,1,0)}function h(){return i(0,0,1)}e.d(n,{CN:()=>a,Cb:()=>p,Cw:()=>g,JP:()=>M,Un:()=>d,ci:()=>s,fA:()=>i,o8:()=>o,uY:()=>f,vt:()=>r});const f=[0,0,0],d=c(),g=u(),M=l(),p=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:g,UNIT_Y:M,UNIT_Z:p,ZEROS:f,clone:o,create:r,freeze:a,fromArray:s,fromValues:i,ones:c,unitX:u,unitY:l,unitZ:h,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},71936:(t,n,e)=>{e.r(n),e.d(n,{default:()=>c});var r=e(1843);function o(t,n){return n.push(t.buffer),{buffer:t.buffer,layout:new r.l5(t.layout)}}var i=e(3055),a=e(93406),s=e(431);class c{async extract(t){const n=u(t),e=(0,s.o6)(n),r=[n.data.buffer];return{result:l(e,r),transferList:r}}async extractComponentsEdgeLocations(t){const n=u(t),e=(0,s.hx)(n.data,n.skipDeduplicate,n.indices,n.indicesLength),r=[];return{result:o((0,a.K)(e,f).regular.instancesData,r),transferList:r}}async extractEdgeLocations(t){const n=u(t),e=(0,s.hx)(n.data,n.skipDeduplicate,n.indices,n.indicesLength),r=[];return{result:o((0,a.K)(e,h).regular.instancesData,r),transferList:r}}}function u(t){return{data:i.I$.createView(t.dataBuffer),indices:"Uint32Array"===t.indicesType?new Uint32Array(t.indices):"Uint16Array"===t.indicesType?new Uint16Array(t.indices):t.indices,indicesLength:t.indicesLength,writerSettings:t.writerSettings,skipDeduplicate:t.skipDeduplicate}}function l(t,n){return n.push(t.regular.lodInfo.lengths.buffer),n.push(t.silhouette.lodInfo.lengths.buffer),{regular:{instancesData:o(t.regular.instancesData,n),lodInfo:{lengths:t.regular.lodInfo.lengths.buffer}},silhouette:{instancesData:o(t.silhouette.instancesData,n),lodInfo:{lengths:t.silhouette.lodInfo.lengths.buffer}},averageEdgeLength:t.averageEdgeLength}}const h=new class{allocate(t){return s.Jb.createBuffer(t)}trim(t,n){return t.slice(0,n)}write(t,n,e){t.position0.setVec(n,e.position0),t.position1.setVec(n,e.position1)}},f=new class{allocate(t){return s.HY.createBuffer(t)}trim(t,n){return t.slice(0,n)}write(t,n,e){t.position0.setVec(n,e.position0),t.position1.setVec(n,e.position1),t.componentIndex.set(n,e.componentIndex)}}},74038:(t,n,e)=>{e.d(n,{_:()=>r});class r{constructor(t,n,e,r,o,i=!1,a=0){this.name=t,this.count=n,this.type=e,this.offset=r,this.stride=o,this.normalized=i,this.divisor=a}}},87317:(t,n,e)=>{e.d(n,{a:()=>E,b:()=>g,c:()=>o,d:()=>l,e:()=>A,g:()=>a,h:()=>p,j:()=>d,l:()=>m,n:()=>M,s:()=>i,t:()=>N});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function i(t,n,e,r,o){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t}function a(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t}function s(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t}function c(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t[3]=n[3]*e[3],t}function u(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t[3]=n[3]/e[3],t}function l(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t}function h(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],i=n[3]-t[3];return Math.sqrt(e*e+r*r+o*o+i*i)}function f(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],i=n[3]-t[3];return e*e+r*r+o*o+i*i}function d(t){const n=t[0],e=t[1],r=t[2],o=t[3];return Math.sqrt(n*n+e*e+r*r+o*o)}function g(t){const n=t[0],e=t[1],r=t[2],o=t[3];return n*n+e*e+r*r+o*o}function M(t,n){const e=n[0],r=n[1],o=n[2],i=n[3];let a=e*e+r*r+o*o+i*i;return a>0&&(a=1/Math.sqrt(a),t[0]=e*a,t[1]=r*a,t[2]=o*a,t[3]=i*a),t}function p(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function m(t,n,e,r){const o=n[0],i=n[1],a=n[2],s=n[3];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t[2]=a+r*(e[2]-a),t[3]=s+r*(e[3]-s),t}function N(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3];return t[0]=e[0]*r+e[4]*o+e[8]*i+e[12]*a,t[1]=e[1]*r+e[5]*o+e[9]*i+e[13]*a,t[2]=e[2]*r+e[6]*o+e[10]*i+e[14]*a,t[3]=e[3]*r+e[7]*o+e[11]*i+e[15]*a,t}function E(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function A(t,n){const e=t[0],o=t[1],i=t[2],a=t[3],s=n[0],c=n[1],u=n[2],l=n[3],h=(0,r.FD)();return Math.abs(e-s)<=h*Math.max(1,Math.abs(e),Math.abs(s))&&Math.abs(o-c)<=h*Math.max(1,Math.abs(o),Math.abs(c))&&Math.abs(i-u)<=h*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(a-l)<=h*Math.max(1,Math.abs(a),Math.abs(l))}const I=s,O=c,T=u,S=h,b=f,v=d,_=g;Object.freeze(Object.defineProperty({__proto__:null,add:a,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},copy:o,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:S,distance:h,div:T,divide:u,dot:p,equals:A,exactEquals:E,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},len:v,length:d,lerp:m,max:function(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t[3]=Math.max(n[3],e[3]),t},min:function(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t[3]=Math.min(n[3],e[3]),t},mul:O,multiply:c,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},normalize:M,random:function(t,n=1){const e=r.Ov;let o,i,a,s,c,u;do{o=2*e()-1,i=2*e()-1,c=o*o+i*i}while(c>=1);do{a=2*e()-1,s=2*e()-1,u=a*a+s*s}while(u>=1);const l=Math.sqrt((1-c)/u);return t[0]=n*o,t[1]=n*i,t[2]=n*a*l,t[3]=n*s*l,t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t},scale:l,scaleAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t},set:i,sqrDist:b,sqrLen:_,squaredDistance:f,squaredLength:g,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:I,subtract:s,transformMat4:N,transformQuat:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],s=e[1],c=e[2],u=e[3],l=u*r+s*i-c*o,h=u*o+c*r-a*i,f=u*i+a*o-s*r,d=-a*r-s*o-c*i;return t[0]=l*u+d*-a+h*-c-f*-s,t[1]=h*u+d*-s+f*-a-l*-c,t[2]=f*u+d*-c+l*-s-h*-a,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},91829:(t,n,e)=>{function r(){return[0,0,0,0]}function o(t){return[t[0],t[1],t[2],t[3]]}function i(t,n,e,r){return[t,n,e,r]}function a(t,n,e,r){return[t,n,e,r]}function s(t,n=[0,0,0,0]){const e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n}function c(){return i(1,1,1,1)}function u(){return i(1,0,0,0)}function l(){return i(0,1,0,0)}function h(){return i(0,0,1,0)}function f(){return i(0,0,0,1)}e.d(n,{CN:()=>a,Un:()=>g,ci:()=>s,fA:()=>i,o8:()=>o,uY:()=>d,vt:()=>r});const d=[0,0,0,0],g=c(),M=u(),p=l(),m=h(),N=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:g,UNIT_W:N,UNIT_X:M,UNIT_Y:p,UNIT_Z:m,ZEROS:d,clone:o,create:r,freeze:a,fromArray:s,fromValues:i,ones:c,unitW:f,unitX:u,unitY:l,unitZ:h,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},93406:(t,n,e)=>{e.d(n,{K:()=>c});var r=e(34727),o=e(3694),i=e(38954),a=e(51850);const s=-1;function c(t,n,e){const r=t.vertices.position,o=t.vertices.componentIndex,a=M.position0,c=M.position1,h=M.faceNormal0,d=M.faceNormal1,{edges:g,normals:p}=l(t),m=g.length/4,N=n.allocate(m);let E=0;const A=m,T=e?.allocate(A);let b=0,v=0,_=0;f.length=0;for(let t=0;t<m;++t){const n=4*t;r.getVec(g.data[n],a),r.getVec(g.data[n+1],c);const e=f.pushNew();e.index=4*t,e.length=(0,i.j)(a,c)}f.sort(((t,n)=>n.length-t.length));const R=new Array,y=new Array;f.forAll((({length:t,index:l})=>{const f=g.data[l],m=g.data[l+1],A=g.data[l+2],L=g.data[l+3],D=L===s;if(r.getVec(f,a),r.getVec(m,c),D){const t=3*A;(0,i.i)(h,p.data[t],p.data[t+1],p.data[t+2]),(0,i.c)(d,h),M.componentIndex=o.get(f),M.cosAngle=(0,i.e)(h,d)}else{let t=3*A;if((0,i.i)(h,p.data[t],p.data[t+1],p.data[t+2]),t=3*L,(0,i.i)(d,p.data[t],p.data[t+1],p.data[t+2]),M.componentIndex=o.get(f),M.cosAngle=(0,i.e)(h,d),function(t,n){return t.cosAngle>n}(M,O))return;M.cosAngle<-.9999&&(0,i.c)(d,h)}v+=t,_++,D||function(t,n){return t.cosAngle<n}(M,S)?(n.write(N,E++,M),R.push(t)):u(M,I)&&(T&&e&&e.write(T,b++,M),y.push(t))}));const L=new Float32Array(R.reverse()),D=new Float32Array(y.reverse()),w=T&&e?{instancesData:T.slice(0,b),lodInfo:{lengths:D}}:void 0;return{regular:{instancesData:N.slice(0,E),lodInfo:{lengths:L}},silhouette:w,averageEdgeLength:v/_}}function u(t,n){const e=(0,r.XM)(t.cosAngle);return(0,i.E)(m,t.position1,t.position0),e*((0,i.e)((0,i.h)(p,t.faceNormal0,t.faceNormal1),m)>0?-1:1)>n}function l(t){const n=t.faces.length/3,e=t.faces,r=t.neighbors,o=t.vertices.position;d.length=g.length=0;for(let t=0;t<n;t++){const n=3*t,a=r[n],c=r[n+1],u=r[n+2],l=e[n],h=e[n+1],f=e[n+2];o.getVec(l,N),o.getVec(h,E),o.getVec(f,A),(0,i.d)(E,E,N),(0,i.d)(A,A,N),(0,i.h)(N,E,A),(0,i.n)(N,N),g.pushArray(N),(a===s||l<h)&&(d.push(l),d.push(h),d.push(t),d.push(a)),(c===s||h<f)&&(d.push(h),d.push(f),d.push(t),d.push(c)),(u===s||f<l)&&(d.push(f),d.push(l),d.push(t),d.push(u))}return{edges:d,normals:g}}class h{constructor(){this.index=0,this.length=0}}const f=new o.A({allocator:t=>t||new h,deallocator:null}),d=new o.A({deallocator:null}),g=new o.A({deallocator:null}),M=new class{constructor(){this.position0=(0,a.vt)(),this.position1=(0,a.vt)(),this.faceNormal0=(0,a.vt)(),this.faceNormal1=(0,a.vt)(),this.componentIndex=0,this.cosAngle=0}},p=(0,a.vt)(),m=(0,a.vt)(),N=(0,a.vt)(),E=(0,a.vt)(),A=(0,a.vt)(),I=(0,r.kU)(4),O=Math.cos(I),T=(0,r.kU)(35),S=Math.cos(T)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7346],{431:(t,n,e)=>{e.d(n,{o6:()=>R,HY:()=>P,hx:()=>y,Jb:()=>U});var r=e(9318);function o(t,n,e){const r=n/3,o=new Uint32Array(e+1),i=new Uint32Array(e+1),a=(t,n)=>{t<n?o[t+1]++:i[n+1]++};for(let n=0;n<r;n++){const e=t[3*n],r=t[3*n+1],o=t[3*n+2];a(e,r),a(r,o),a(o,e)}let s=0,c=0;for(let t=0;t<e;t++){const n=o[t+1],e=i[t+1];o[t+1]=s,i[t+1]=c,s+=n,c+=e}const u=new Uint32Array(6*r),l=o[e],h=(t,n,e)=>{if(t<n){const r=o[t+1]++;u[2*r]=n,u[2*r+1]=e}else{const r=i[n+1]++;u[2*l+2*r]=t,u[2*l+2*r+1]=e}};for(let n=0;n<r;n++){const e=t[3*n],r=t[3*n+1],o=t[3*n+2];h(e,r,n),h(r,o,n),h(o,e,n)}const f=(t,n)=>{const e=2*t,r=n-t;for(let t=1;t<r;t++){const n=u[e+2*t],r=u[e+2*t+1];let o=t-1;for(;o>=0&&u[e+2*o]>n;o--)u[e+2*o+2]=u[e+2*o],u[e+2*o+3]=u[e+2*o+1];u[e+2*o+2]=n,u[e+2*o+3]=r}};for(let t=0;t<e;t++)f(o[t],o[t+1]),f(l+i[t],l+i[t+1]);const d=new Int32Array(3*r),g=(n,e)=>n===t[3*e]?0:n===t[3*e+1]?1:n===t[3*e+2]?2:-1,M=(t,n)=>{const e=g(t,n);d[3*n+e]=-1},p=(t,n,e,r)=>{const o=g(t,n);d[3*n+o]=r;const i=g(e,r);d[3*r+i]=n};for(let t=0;t<e;t++){let n=o[t];const e=o[t+1];let r=i[t];const a=i[t+1];for(;n<e&&r<a;){const e=u[2*n],o=u[2*l+2*r];e===o?(p(t,u[2*n+1],o,u[2*l+2*r+1]),n++,r++):e<o?(M(t,u[2*n+1]),n++):(M(o,u[2*l+2*r+1]),r++)}for(;n<e;)M(t,u[2*n+1]),n++;for(;r<a;)M(u[2*l+2*r],u[2*l+2*r+1]),r++}return d}var i=e(1843),a=e(46540),s=e(3055),c=e(87811),u=e(38954),l=e(51850),h=e(4431),f=e(34727);function d(t,n,e,r,o,i=2){const a=1/(Math.abs(e)+Math.abs(r)+Math.abs(o)),s=e*a,c=r*a,u=o<=0?(s>=0?1:-1)*(1-Math.abs(c)):s,l=o<=0?(c>=0?1:-1)*(1-Math.abs(s)):c,h=n*i;t[h]=g(u),t[h+1]=g(l)}function g(t){return(0,f.qE)(Math.round(32767*t),-32767,32767)}e(11868),e(34275);class M{updateSettings(t){this.settings=t,this._edgeHashFunction=t.reducedPrecision?A:E}write(t,n,e){v.seed=this._edgeHashFunction(e);const r=v.getIntRange(0,255),o=v.getIntRange(0,this.settings.variants-1),i=v.getFloat(),a=255*(.5*function(t){return Math.abs(t)**1.2*Math.sign(t)}(-(1-Math.min(i/.7,1))+Math.max(0,i-.7)/(1-.7))+.5);t.position0.setVec(n,e.position0),t.position1.setVec(n,e.position1),t.componentIndex.set(n,e.componentIndex),t.variantOffset.set(n,r),t.variantStroke.set(n,o),t.variantExtension.set(n,a)}}const p=new Float32Array(6),m=new Uint32Array(p.buffer),N=new Uint32Array(1);function E(t){return p[0]=t.position0[0],p[1]=t.position0[1],p[2]=t.position0[2],p[3]=t.position1[0],p[4]=t.position1[1],p[5]=t.position1[2],N[0]=31*(31*(31*(31*(31*(166811+m[0])+m[1])+m[2])+m[3])+m[4])+m[5],N[0]}function A(t){const n=p;n[0]=O(t.position0[0]),n[1]=O(t.position0[1]),n[2]=O(t.position0[2]),n[3]=O(t.position1[0]),n[4]=O(t.position1[1]),n[5]=O(t.position1[2]),N[0]=5381;for(let t=0;t<m.length;t++)N[0]=31*N[0]+m[t];return N[0]}const I=1e4;function O(t){return Math.round(t*I)/I}class T{constructor(){this._commonWriter=new M}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return s.gr.createBuffer(t)}write(t,n,e){this._commonWriter.write(t,n,e),(0,u.f)(b,e.faceNormal0,e.faceNormal1),(0,u.n)(b,b);const{typedBuffer:r,typedBufferStride:o}=t.normalCompressed;d(r,n,b[0],b[1],b[2],o)}static{this.Layout=s.gr}static{this.glLayout=(0,h.U)(s.gr,1)}}class S{constructor(){this._commonWriter=new M}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return s.In.createBuffer(t)}write(t,n,e){this._commonWriter.write(t,n,e);{const{typedBuffer:r,typedBufferStride:o}=t.normalCompressed;d(r,n,e.faceNormal0[0],e.faceNormal0[1],e.faceNormal0[2],o)}{const{typedBuffer:r,typedBufferStride:o}=t.normal2Compressed;d(r,n,e.faceNormal1[0],e.faceNormal1[1],e.faceNormal1[2],o)}}static{this.Layout=s.In}static{this.glLayout=(0,h.U)(s.In,1)}}const b=(0,l.vt)(),v=new c.A;var _=e(93406);function R(t){const n=y(t.data,t.skipDeduplicate,t.indices,t.indicesLength);return D.updateSettings(t.writerSettings),w.updateSettings(t.writerSettings),(0,_.K)(n,D,w)}function y(t,n,e,i){if(n){const n=o(e,i,t.count);return new L(e,i,n,t)}const a=(0,r.b)(t.buffer,t.stride/4,{originalIndices:e}),c=o(a.indices,i,a.uniqueCount);return{faces:a.indices,facesLength:a.indices.length,neighbors:c,vertices:s.I$.createView(a.buffer)}}class L{constructor(t,n,e,r){this.faces=t,this.facesLength=n,this.neighbors=e,this.vertices=r}}const D=new T,w=new S,U=(0,i.BP)().vec3f(a.r.POSITION0).vec3f(a.r.POSITION1),P=(0,i.BP)().vec3f(a.r.POSITION0).vec3f(a.r.POSITION1).u16(a.r.COMPONENTINDEX)},3055:(t,n,e)=>{e.d(n,{I$:()=>a,In:()=>u,gr:()=>c});var r=e(4431),o=e(1843),i=e(46540);const a=(0,o.BP)().vec3f(i.r.POSITION).u16(i.r.COMPONENTINDEX).freeze(),s=(0,o.BP)().vec2u8(i.r.SIDENESS).freeze(),c=((0,r.U)(s),(0,o.BP)().vec3f(i.r.POSITION0).vec3f(i.r.POSITION1).vec2i16(i.r.NORMALCOMPRESSED).u16(i.r.COMPONENTINDEX).u8(i.r.VARIANTOFFSET,{glNormalized:!0}).u8(i.r.VARIANTSTROKE).u8(i.r.VARIANTEXTENSION,{glNormalized:!0}).freeze()),u=(0,o.BP)().vec3f(i.r.POSITION0).vec3f(i.r.POSITION1).vec2i16(i.r.NORMALCOMPRESSED).vec2i16(i.r.NORMAL2COMPRESSED).u16(i.r.COMPONENTINDEX).u8(i.r.VARIANTOFFSET,{glNormalized:!0}).u8(i.r.VARIANTSTROKE).u8(i.r.VARIANTEXTENSION,{glNormalized:!0}).freeze();new Map([[i.r.POSITION0,0],[i.r.POSITION1,1],[i.r.COMPONENTINDEX,2],[i.r.VARIANTOFFSET,3],[i.r.VARIANTSTROKE,4],[i.r.VARIANTEXTENSION,5],[i.r.NORMALCOMPRESSED,6],[i.r.NORMAL2COMPRESSED,7],[i.r.SIDENESS,8]])},3694:(t,n,e)=>{e.d(n,{A:()=>s});var r,o=e(4576),i=e(21818);!function(t){const n=(t,n,e,r)=>{let o=n,i=n;const a=e>>>1,s=t[o-1];for(;i<=a;){i=o<<1,i<e&&r(t[i-1],t[i])<0&&++i;const n=t[i-1];if(r(n,s)<=0)break;t[o-1]=n,o=i}t[o-1]=s},e=(t,n)=>t<n?-1:t>n?1:0;t.sort=function(t,r,o,i){void 0===r&&(r=0),void 0===o&&(o=t.length),void 0===i&&(i=e);for(let e=o>>>1;e>r;e--)n(t,e,o,i);const a=r+1;for(let e=o-1;e>r;e--){const o=t[r];t[r]=t[e],t[e]=o,n(t,a,e,i)}},t.iterableSort=function*(t,r,o,i){void 0===r&&(r=0),void 0===o&&(o=t.length),void 0===i&&(i=e);for(let e=o>>>1;e>r;e--)n(t,e,o,i),yield;const a=r+1;for(let e=o-1;e>r;e--){const o=t[r];t[r]=t[e],t[e]=o,n(t,a,e,i),yield}}}(r||(r={}));const a=r;class s{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new o.vW,t&&(t.initialSize&&(this.data=new Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),void 0!==t.deallocator&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>c(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){const n=new Array;for(let e=0;e<this._length;e++){const r=this.data[e];t(r)&&n.push(r)}return n}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,n){const e=this.data.indexOf(t,n);return-1!==e&&e<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let n=t;n<this._length;++n)this.data[n]=this._deallocator(this.data[n]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,n=t.length){for(let e=0;e<n;e++)this.data[this._length++]=t[e]}fill(t,n){for(let e=0;e<n;e++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));const t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,c(this)}pop(){if(0===this.length)return;const t=this.data[this.length-1];return this.length=this.length-1,this._shrink(),t}remove(t){const n=(0,o.qh)(this.data,(0,i.zI)(t),this.length,this._hint);if(-1!==n)return this.data.splice(n,1),this.length=this.length-1,t}removeUnordered(t){return this.removeUnorderedIndex((0,o.qh)(this.data,(0,i.zI)(t),this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,n=t.length,e){this.length=(0,o.mW)(this.data,t,this.length,n,this._hint,e),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(t,n){if(t>=this.length||n>=this.length||t===n)return;const e=this.data[t];this.data[t]=this.data[n],this.data[n]=e}sort(t){a.sort(this.data,0,this.length,t)}iterableSort(t){return a.iterableSort(this.data,0,this.length,t)}some(t,n){for(let e=0;e<this.length;++e)if(t.call(n,this.data[e],e,this.data))return!0;return!1}find(t,n){const{data:e,length:r}=this;for(let o=0;o<r;++o)if(t.call(n,e[o]))return e[o]}filterInPlace(t,n){let e=0;for(let r=0;r<this._length;++r){const o=this.data[r];t.call(n,o,r,this.data)&&(this.data[r]=this.data[e],this.data[e]=o,e++)}if(this._deallocator)for(let t=e;t<this._length;t++)this.data[t]=this._deallocator(this.data[t]);return this._length=e,this._shrink(),this}forAll(t,n){const{data:e,length:r}=this;for(let o=0;o<r;++o)t.call(n,e[o],o,e)}forEach(t,n){this.data.slice(0,this.length).forEach(t,n)}map(t,n){const e=new Array(this.length);for(let r=0;r<this.length;++r)e[r]=t.call(n,this.data[r],r,this.data);return e}reduce(t,n){let e=n;for(let n=0;n<this.length;++n)e=t(e,this.data[n],n,this.data);return e}has(t){const n=this.length,e=this.data;for(let r=0;r<n;++r)if(e[r]===t)return!0;return!1}*[Symbol.iterator](){for(let t=0;t<this.length;t++)yield this.data[t]}}function c(t){t.data.length>1.5*t.length&&(t.data.length=Math.floor(1.1*t.length))}},4431:(t,n,e)=>{e.d(n,{U:()=>i});var r=e(63907),o=e(74038);function i(t,n=0){const e=t.stride;return Array.from(t.fields.keys()).map((r=>{const i=t.fields.get(r),s=i.constructor.ElementCount,c=a(i.constructor.ElementType),u=i.offset,l=i.optional?.glNormalized??!1;return new o._(r,s,c,u,e,l,n)}))}function a(t){const n=s[t];if(n)return n;throw new Error("BufferType not supported in WebGL")}const s={u8:r.pe.UNSIGNED_BYTE,u16:r.pe.UNSIGNED_SHORT,u32:r.pe.UNSIGNED_INT,i8:r.pe.BYTE,i16:r.pe.SHORT,i32:r.pe.INT,f16:r.pe.HALF_FLOAT,f32:r.pe.FLOAT}},9318:(t,n,e)=>{e.d(n,{b:()=>i});var r=e(34727),o=e(97146);function i(t,n,e){const i=Array.isArray(t),l=i?t.length/n:t.byteLength/(4*n),h=i?t:new Uint32Array(t,0,l*n),f=e?.minReduction??0,d=e?.originalIndices||null,g=d?d.length:0,M=e?.componentOffsets||null;let p=0;if(M)for(let t=0;t<M.length-1;t++){const n=M[t+1]-M[t];n>p&&(p=n)}else p=l;const m=Math.floor(1.1*p)+1;(null==u||u.length<2*m)&&(u=new Uint32Array((0,r.cU)(2*m)));for(let t=0;t<2*m;t++)u[t]=0;let N=0;const E=!!M&&!!d,A=E?g:l;let I=(0,o.my)(l);const O=new Uint32Array(g),T=1.96;let S=0!==f?Math.ceil(4*T*T/(f*f)*f*(1-f)):A,b=1,v=M?M[1]:A;for(let t=0;t<A;t++){if(t===S){const n=1-N/t;if(n+T*Math.sqrt(n*(1-n)/t)<f)return null;S*=2}if(t===v){for(let t=0;t<2*m;t++)u[t]=0;if(d)for(let t=M[b-1];t<M[b];t++)O[t]=I[d[t]];v=M[++b]}const e=E?d[t]:t,r=e*n,o=c(h,r,n);let i=o%m,s=N;for(;0!==u[2*i+1];){if(u[2*i]===o){const t=u[2*i+1]-1;if(a(h,r,t*n,n)){s=I[t];break}}i++,i>=m&&(i-=m)}s===N&&(u[2*i]=o,u[2*i+1]=e+1,N++),I[e]=s}if(0!==f&&1-N/l<f)return null;if(E){for(let t=M[b-1];t<O.length;t++)O[t]=I[d[t]];I=(0,o.uW)(O)}const _=i?new Array(N):new Uint32Array(N*n);N=0;for(let t=0;t<A;t++)I[t]===N&&(s(h,(E?d[t]:t)*n,_,N*n,n),N++);if(d&&!E){const t=new Uint32Array(g);for(let n=0;n<t.length;n++)t[n]=I[d[n]];I=(0,o.uW)(t)}return{buffer:Array.isArray(_)?_:_.buffer,indices:I,uniqueCount:N}}function a(t,n,e,r){for(let o=0;o<r;o++)if(t[n+o]!==t[e+o])return!1;return!0}function s(t,n,e,r,o){for(let i=0;i<o;i++)e[r+i]=t[n+i]}function c(t,n,e){let r=0;for(let o=0;o<e;o++)r=t[n+o]+r|0,r=r+(r<<11)+(r>>>2)|0;return r>>>0}let u=null},34304:(t,n,e)=>{e.d(n,{DF:()=>c,FD:()=>o,Ov:()=>i,ct:()=>u});let r=1e-6;function o(){return r}const i=Math.random,a=Math.PI/180,s=180/Math.PI;function c(t){return t*a}function u(t){return t*s}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(t,n){return Math.abs(t-n)<=r*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:o,setEpsilon:function(t){r=t},toDegree:u,toRadian:c},Symbol.toStringTag,{value:"Module"}))},34727:(t,n,e)=>{e.d(n,{$8:()=>O,Cc:()=>a,Hx:()=>M,Io:()=>I,KJ:()=>u,Sp:()=>f,XM:()=>l,YN:()=>h,ZH:()=>g,cU:()=>o,gg:()=>d,hs:()=>s,kU:()=>c,or:()=>S,pF:()=>v,pq:()=>b,qE:()=>i});const r=new Float32Array(1);function o(t){--t;for(let n=1;n<32;n<<=1)t|=t>>n;return t+1}function i(t,n,e){return Math.min(Math.max(t,n),e)}function a(t,n,e){return t+(n-t)*e}function s(t,n,e,r,o){return a(r,o,(t-n)/(e-n))}function c(t){return t*Math.PI/180}function u(t){return 180*t/Math.PI}function l(t){return Math.acos(i(t,-1,1))}function h(t){return Math.asin(i(t,-1,1))}function f(t,n,e=1e-6){return t===n||!(!Number.isFinite(t)||!Number.isFinite(n))&&(t>n?t-n:n-t)<=e}function d(t,n,e=1e-6){return!f(t,n,e)&&t>n}function g(t,n,e=1e-6){return!f(t,n,e)&&t<n}function M(t,n,e=1e-6){return f(t,n,e)||t>n}const p=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function m(t){return p.setFloat64(0,t),p.getBigInt64(0)}const N=BigInt("1000000"),E=A(1);function A(t){const n=m(t=Math.abs(t)),e=function(t){return p.setBigInt64(0,t),p.getFloat64(0)}(n<=N?N:n-N);return Math.abs(t-e)}function I(t,n,e=E){if(t===n)return!0;if(!Number.isFinite(t)||!Number.isFinite(n))return!1;if(null!=e&&A(Math.min(Math.abs(t),Math.abs(n)))<e)return Math.abs(t-n)<=e;const r=m(t),o=m(n);return r<0==o<0&&!((r<o?o-r:r-o)>N)}function O(t){return T(Math.max(-b,Math.min(t,b)))}function T(t){return r[0]=t,r[0]}function S(t){const n=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],e=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],r=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(f(n,1)&&f(e,1)&&f(r,1))}const b=T(34028234663852886e22);function v(t,n,e){if(void 0===e||0===+e)return Math[t](n);if(n=+n,e=+e,isNaN(n)||"number"!=typeof e||e%1!=0)return NaN;let r=n.toString().split("e");return r=(n=Math[t](+(r[0]+"e"+(r[1]?+r[1]-e:-e)))).toString().split("e"),+(r[0]+"e"+(r[1]?+r[1]+e:e))}},38954:(t,n,e)=>{e.d(n,{A:()=>g,B:()=>d,C:()=>l,D:()=>h,E:()=>U,F:()=>F,H:()=>B,a:()=>P,b:()=>m,c:()=>a,d:()=>u,e:()=>S,f:()=>c,g:()=>p,h:()=>b,i:()=>s,j:()=>N,k:()=>A,l:()=>i,m:()=>v,n:()=>T,o:()=>R,q:()=>w,r:()=>O,s:()=>E,t:()=>_,u:()=>I,v:()=>y,w:()=>f,x:()=>V,y:()=>z,z:()=>M});var r=e(51850),o=e(34304);function i(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function s(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function c(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function l(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function h(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function f(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function d(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function g(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function M(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function p(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function m(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function N(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return Math.sqrt(e*e+r*r+o*o)}function E(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return e*e+r*r+o*o}function A(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function I(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function O(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function T(t,n){const e=n[0],r=n[1],o=n[2];let i=e*e+r*r+o*o;return i>0&&(i=1/Math.sqrt(i),t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i),t}function S(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function b(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],s=e[1],c=e[2];return t[0]=o*c-i*s,t[1]=i*a-r*c,t[2]=r*s-o*a,t}function v(t,n,e,r){const o=n[0],i=n[1],a=n[2];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t[2]=a+r*(e[2]-a),t}function _(t,n,e){const r=n[0],o=n[1],i=n[2];return t[0]=e[0]*r+e[4]*o+e[8]*i+e[12],t[1]=e[1]*r+e[5]*o+e[9]*i+e[13],t[2]=e[2]*r+e[6]*o+e[10]*i+e[14],t}function R(t,n,e){const r=n[0],o=n[1],i=n[2];return t[0]=r*e[0]+o*e[3]+i*e[6],t[1]=r*e[1]+o*e[4]+i*e[7],t[2]=r*e[2]+o*e[5]+i*e[8],t}function y(t,n,e){const r=e[0],o=e[1],i=e[2],a=e[3],s=n[0],c=n[1],u=n[2],l=o*u-i*c,h=i*s-r*u,f=r*c-o*s,d=o*f-i*h,g=i*l-r*f,M=r*h-o*l,p=2*a;return t[0]=s+l*p+2*d,t[1]=c+h*p+2*g,t[2]=u+f*p+2*M,t}const L=(0,r.vt)(),D=(0,r.vt)();function w(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function U(t,n,e){const r=e[0]-n[0],o=e[1]-n[1],i=e[2]-n[2];let a=r*r+o*o+i*i;return a>0?(a=1/Math.sqrt(a),t[0]=r*a,t[1]=o*a,t[2]=i*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const P=u,C=l,x=h,F=N,V=E,B=i,z=A;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:c,angle:function(t,n){T(L,t),T(D,n);const e=S(L,D);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,o,i){const a=1-i,s=a*a,c=i*i,u=s*a,l=3*i*s,h=3*c*a,f=c*i;return t[0]=n[0]*u+e[0]*l+r[0]*h+o[0]*f,t[1]=n[1]*u+e[1]*l+r[1]*h+o[1]*f,t[2]=n[2]*u+e[2]*l+r[2]*h+o[2]*f,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:a,cross:b,crossAndNormalize:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],s=e[1],c=e[2],u=o*c-i*s,l=i*a-r*c,h=r*s-o*a,f=Math.sqrt(u*u+l*l+h*h);return t[0]=u/f,t[1]=l/f,t[2]=h/f,t},direction:U,dist:F,distance:N,div:x,divide:h,dot:S,equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],i=t[2],a=n[0],s=n[1],c=n[2],u=(0,o.FD)();return Math.abs(e-a)<=u*Math.max(1,Math.abs(e),Math.abs(a))&&Math.abs(r-s)<=u*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-c)<=u*Math.max(1,Math.abs(i),Math.abs(c))},exactEquals:w,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,o,i){const a=i*i,s=a*(2*i-3)+1,c=a*(i-2)+i,u=a*(i-1),l=a*(3-2*i);return t[0]=n[0]*s+e[0]*c+r[0]*u+o[0]*l,t[1]=n[1]*s+e[1]*c+r[1]*u+o[1]*l,t[2]=n[2]*s+e[2]*c+r[2]*u+o[2]*l,t},inverse:O,len:B,length:i,lerp:v,max:M,min:g,mul:C,multiply:l,negate:I,normalize:T,random:function(t,n=1){const e=o.Ov,r=2*e()*Math.PI,i=2*e()-1,a=Math.sqrt(1-i*i)*n;return t[0]=Math.cos(r)*a,t[1]=Math.sin(r)*a,t[2]=i*n,t},rotateX:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0],i[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),i[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateY:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),i[1]=o[1],i[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateZ:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),i[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),i[2]=o[2],t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:p,scaleAndAdd:m,set:s,sign:d,sqrDist:V,sqrLen:z,squaredDistance:E,squaredLength:A,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:P,subtract:u,transformMat3:R,transformMat4:_,transformQuat:y},Symbol.toStringTag,{value:"Module"}))},46540:(t,n,e)=>{var r;e.d(n,{r:()=>r}),function(t){t.POSITION="position",t.NORMAL="normal",t.NORMALCOMPRESSED="normalCompressed",t.UV0="uv0",t.UVI="uvi",t.COLOR="color",t.SYMBOLCOLOR="symbolColor",t.SIZE="size",t.ROTATION="rotation",t.TANGENT="tangent",t.OFFSET="offset",t.PERSPECTIVEDIVIDE="perspectiveDivide",t.CENTEROFFSETANDDISTANCE="centerOffsetAndDistance",t.LENGTH="length",t.NEXTDELTA="nextDelta",t.PREVIOUSDELTA="previousDelta",t.U0="u0",t.LINEPARAMETERS="lineParameters",t.COLORFEATUREATTRIBUTE="colorFeatureAttribute",t.SIZEFEATUREATTRIBUTE="sizeFeatureAttribute",t.OPACITYFEATUREATTRIBUTE="opacityFeatureAttribute",t.DISTANCETOSTART="distanceToStart",t.UVMAPSPACE="uvMapSpace",t.BOUNDINGRECT="boundingRect",t.UVREGION="uvRegion",t.PROFILERIGHT="profileRight",t.PROFILEUP="profileUp",t.PROFILEVERTEXANDNORMAL="profileVertexAndNormal",t.PROFILEAUXDATA="profileAuxData",t.INSTANCEMODELORIGINHI="instanceModelOriginHi",t.INSTANCEMODELORIGINLO="instanceModelOriginLo",t.INSTANCEMODEL="instanceModel",t.INSTANCEMODELNORMAL="instanceModelNormal",t.INSTANCECOLOR="instanceColor",t.INSTANCEFEATUREATTRIBUTE="instanceFeatureAttribute",t.LOCALTRANSFORM="localTransform",t.GLOBALTRANSFORM="globalTransform",t.BOUNDINGSPHERE="boundingSphere",t.MODELORIGIN="modelOrigin",t.MODELSCALEFACTORS="modelScaleFactors",t.FEATUREATTRIBUTE="featureAttribute",t.STATE="state",t.LODLEVEL="lodLevel",t.POSITION0="position0",t.POSITION1="position1",t.NORMAL2COMPRESSED="normal2Compressed",t.COMPONENTINDEX="componentIndex",t.VARIANTOFFSET="variantOffset",t.VARIANTSTROKE="variantStroke",t.VARIANTEXTENSION="variantExtension",t.SIDENESS="sideness",t.START="start",t.END="end",t.UP="up",t.START_UP="startUp",t.END_UP="endUp",t.EXTRUDE="extrude",t.OLIDCOLOR="objectAndLayerIdColor",t.INSTANCEOBJECTANDLAYERIDCOLOR="instanceObjectAndLayerIdColor"}(r||(r={}))},48163:(t,n,e)=>{function r(){return[0,0]}function o(t,n){return[t,n]}function i(){return o(1,1)}function a(){return o(1,0)}function s(){return o(0,1)}e.d(n,{Un:()=>c,fA:()=>o,vt:()=>r});const c=i(),u=a(),l=s();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:u,UNIT_Y:l,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:o,ones:i,unitX:a,unitY:s,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},51850:(t,n,e)=>{function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function i(t,n,e){return[t,n,e]}function a(t,n,e){return[t,n,e]}function s(t,n=[0,0,0]){const e=Math.min(3,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n}function c(){return i(1,1,1)}function u(){return i(1,0,0)}function l(){return i(0,1,0)}function h(){return i(0,0,1)}e.d(n,{CN:()=>a,Cb:()=>p,Cw:()=>g,JP:()=>M,Un:()=>d,ci:()=>s,fA:()=>i,o8:()=>o,uY:()=>f,vt:()=>r});const f=[0,0,0],d=c(),g=u(),M=l(),p=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:g,UNIT_Y:M,UNIT_Z:p,ZEROS:f,clone:o,create:r,freeze:a,fromArray:s,fromValues:i,ones:c,unitX:u,unitY:l,unitZ:h,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},71936:(t,n,e)=>{e.r(n),e.d(n,{default:()=>c});var r=e(1843);function o(t,n){return n.push(t.buffer),{buffer:t.buffer,layout:new r.l5(t.layout)}}var i=e(3055),a=e(93406),s=e(431);class c{async extract(t){const n=u(t),e=(0,s.o6)(n),r=[n.data.buffer];return{result:l(e,r),transferList:r}}async extractComponentsEdgeLocations(t){const n=u(t),e=(0,s.hx)(n.data,n.skipDeduplicate,n.indices,n.indicesLength),r=[];return{result:o((0,a.K)(e,f).regular.instancesData,r),transferList:r}}async extractEdgeLocations(t){const n=u(t),e=(0,s.hx)(n.data,n.skipDeduplicate,n.indices,n.indicesLength),r=[];return{result:o((0,a.K)(e,h).regular.instancesData,r),transferList:r}}}function u(t){return{data:i.I$.createView(t.dataBuffer),indices:"Uint32Array"===t.indicesType?new Uint32Array(t.indices):"Uint16Array"===t.indicesType?new Uint16Array(t.indices):t.indices,indicesLength:t.indicesLength,writerSettings:t.writerSettings,skipDeduplicate:t.skipDeduplicate}}function l(t,n){return n.push(t.regular.lodInfo.lengths.buffer),n.push(t.silhouette.lodInfo.lengths.buffer),{regular:{instancesData:o(t.regular.instancesData,n),lodInfo:{lengths:t.regular.lodInfo.lengths.buffer}},silhouette:{instancesData:o(t.silhouette.instancesData,n),lodInfo:{lengths:t.silhouette.lodInfo.lengths.buffer}},averageEdgeLength:t.averageEdgeLength}}const h=new class{allocate(t){return s.Jb.createBuffer(t)}trim(t,n){return t.slice(0,n)}write(t,n,e){t.position0.setVec(n,e.position0),t.position1.setVec(n,e.position1)}},f=new class{allocate(t){return s.HY.createBuffer(t)}trim(t,n){return t.slice(0,n)}write(t,n,e){t.position0.setVec(n,e.position0),t.position1.setVec(n,e.position1),t.componentIndex.set(n,e.componentIndex)}}},74038:(t,n,e)=>{e.d(n,{_:()=>r});class r{constructor(t,n,e,r,o,i=!1,a=0){this.name=t,this.count=n,this.type=e,this.offset=r,this.stride=o,this.normalized=i,this.divisor=a}}},87317:(t,n,e)=>{e.d(n,{a:()=>E,b:()=>g,c:()=>o,d:()=>l,e:()=>A,g:()=>p,h:()=>a,j:()=>d,l:()=>m,n:()=>M,s:()=>i,t:()=>N});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function i(t,n,e,r,o){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t}function a(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t}function s(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t}function c(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t[3]=n[3]*e[3],t}function u(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t[3]=n[3]/e[3],t}function l(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t}function h(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],i=n[3]-t[3];return Math.sqrt(e*e+r*r+o*o+i*i)}function f(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],i=n[3]-t[3];return e*e+r*r+o*o+i*i}function d(t){const n=t[0],e=t[1],r=t[2],o=t[3];return Math.sqrt(n*n+e*e+r*r+o*o)}function g(t){const n=t[0],e=t[1],r=t[2],o=t[3];return n*n+e*e+r*r+o*o}function M(t,n){const e=n[0],r=n[1],o=n[2],i=n[3];let a=e*e+r*r+o*o+i*i;return a>0&&(a=1/Math.sqrt(a),t[0]=e*a,t[1]=r*a,t[2]=o*a,t[3]=i*a),t}function p(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function m(t,n,e,r){const o=n[0],i=n[1],a=n[2],s=n[3];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t[2]=a+r*(e[2]-a),t[3]=s+r*(e[3]-s),t}function N(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3];return t[0]=e[0]*r+e[4]*o+e[8]*i+e[12]*a,t[1]=e[1]*r+e[5]*o+e[9]*i+e[13]*a,t[2]=e[2]*r+e[6]*o+e[10]*i+e[14]*a,t[3]=e[3]*r+e[7]*o+e[11]*i+e[15]*a,t}function E(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function A(t,n){const e=t[0],o=t[1],i=t[2],a=t[3],s=n[0],c=n[1],u=n[2],l=n[3],h=(0,r.FD)();return Math.abs(e-s)<=h*Math.max(1,Math.abs(e),Math.abs(s))&&Math.abs(o-c)<=h*Math.max(1,Math.abs(o),Math.abs(c))&&Math.abs(i-u)<=h*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(a-l)<=h*Math.max(1,Math.abs(a),Math.abs(l))}const I=s,O=c,T=u,S=h,b=f,v=d,_=g;Object.freeze(Object.defineProperty({__proto__:null,add:a,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},copy:o,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:S,distance:h,div:T,divide:u,dot:p,equals:A,exactEquals:E,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},len:v,length:d,lerp:m,max:function(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t[3]=Math.max(n[3],e[3]),t},min:function(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t[3]=Math.min(n[3],e[3]),t},mul:O,multiply:c,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},normalize:M,random:function(t,n=1){const e=r.Ov;let o,i,a,s,c,u;do{o=2*e()-1,i=2*e()-1,c=o*o+i*i}while(c>=1);do{a=2*e()-1,s=2*e()-1,u=a*a+s*s}while(u>=1);const l=Math.sqrt((1-c)/u);return t[0]=n*o,t[1]=n*i,t[2]=n*a*l,t[3]=n*s*l,t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t},scale:l,scaleAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t},set:i,sqrDist:b,sqrLen:_,squaredDistance:f,squaredLength:g,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:I,subtract:s,transformMat4:N,transformQuat:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],s=e[1],c=e[2],u=e[3],l=u*r+s*i-c*o,h=u*o+c*r-a*i,f=u*i+a*o-s*r,d=-a*r-s*o-c*i;return t[0]=l*u+d*-a+h*-c-f*-s,t[1]=h*u+d*-s+f*-a-l*-c,t[2]=f*u+d*-c+l*-s-h*-a,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},91829:(t,n,e)=>{function r(){return[0,0,0,0]}function o(t){return[t[0],t[1],t[2],t[3]]}function i(t,n,e,r){return[t,n,e,r]}function a(t,n,e,r){return[t,n,e,r]}function s(t,n=[0,0,0,0]){const e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n}function c(){return i(1,1,1,1)}function u(){return i(1,0,0,0)}function l(){return i(0,1,0,0)}function h(){return i(0,0,1,0)}function f(){return i(0,0,0,1)}e.d(n,{CN:()=>a,Un:()=>g,ci:()=>s,fA:()=>i,o8:()=>o,uY:()=>d,vt:()=>r});const d=[0,0,0,0],g=c(),M=u(),p=l(),m=h(),N=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:g,UNIT_W:N,UNIT_X:M,UNIT_Y:p,UNIT_Z:m,ZEROS:d,clone:o,create:r,freeze:a,fromArray:s,fromValues:i,ones:c,unitW:f,unitX:u,unitY:l,unitZ:h,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},93406:(t,n,e)=>{e.d(n,{K:()=>c});var r=e(34727),o=e(3694),i=e(38954),a=e(51850);const s=-1;function c(t,n,e){const r=t.vertices.position,o=t.vertices.componentIndex,a=M.position0,c=M.position1,h=M.faceNormal0,d=M.faceNormal1,{edges:g,normals:p}=l(t),m=g.length/4,N=n.allocate(m);let E=0;const A=m,T=e?.allocate(A);let b=0,v=0,_=0;f.length=0;for(let t=0;t<m;++t){const n=4*t;r.getVec(g.data[n],a),r.getVec(g.data[n+1],c);const e=f.pushNew();e.index=4*t,e.length=(0,i.j)(a,c)}f.sort(((t,n)=>n.length-t.length));const R=new Array,y=new Array;f.forAll((({length:t,index:l})=>{const f=g.data[l],m=g.data[l+1],A=g.data[l+2],L=g.data[l+3],D=L===s;if(r.getVec(f,a),r.getVec(m,c),D){const t=3*A;(0,i.i)(h,p.data[t],p.data[t+1],p.data[t+2]),(0,i.c)(d,h),M.componentIndex=o.get(f),M.cosAngle=(0,i.e)(h,d)}else{let t=3*A;if((0,i.i)(h,p.data[t],p.data[t+1],p.data[t+2]),t=3*L,(0,i.i)(d,p.data[t],p.data[t+1],p.data[t+2]),M.componentIndex=o.get(f),M.cosAngle=(0,i.e)(h,d),function(t,n){return t.cosAngle>n}(M,O))return;M.cosAngle<-.9999&&(0,i.c)(d,h)}v+=t,_++,D||function(t,n){return t.cosAngle<n}(M,S)?(n.write(N,E++,M),R.push(t)):u(M,I)&&(T&&e&&e.write(T,b++,M),y.push(t))}));const L=new Float32Array(R.reverse()),D=new Float32Array(y.reverse()),w=T&&e?{instancesData:T.slice(0,b),lodInfo:{lengths:D}}:void 0;return{regular:{instancesData:N.slice(0,E),lodInfo:{lengths:L}},silhouette:w,averageEdgeLength:v/_}}function u(t,n){const e=(0,r.XM)(t.cosAngle);return(0,i.E)(m,t.position1,t.position0),e*((0,i.e)((0,i.h)(p,t.faceNormal0,t.faceNormal1),m)>0?-1:1)>n}function l(t){const n=t.faces.length/3,e=t.faces,r=t.neighbors,o=t.vertices.position;d.length=g.length=0;for(let t=0;t<n;t++){const n=3*t,a=r[n],c=r[n+1],u=r[n+2],l=e[n],h=e[n+1],f=e[n+2];o.getVec(l,N),o.getVec(h,E),o.getVec(f,A),(0,i.d)(E,E,N),(0,i.d)(A,A,N),(0,i.h)(N,E,A),(0,i.n)(N,N),g.pushArray(N),(a===s||l<h)&&(d.push(l),d.push(h),d.push(t),d.push(a)),(c===s||h<f)&&(d.push(h),d.push(f),d.push(t),d.push(c)),(u===s||f<l)&&(d.push(f),d.push(l),d.push(t),d.push(u))}return{edges:d,normals:g}}class h{constructor(){this.index=0,this.length=0}}const f=new o.A({allocator:t=>t||new h,deallocator:null}),d=new o.A({deallocator:null}),g=new o.A({deallocator:null}),M=new class{constructor(){this.position0=(0,a.vt)(),this.position1=(0,a.vt)(),this.faceNormal0=(0,a.vt)(),this.faceNormal1=(0,a.vt)(),this.componentIndex=0,this.cosAngle=0}},p=(0,a.vt)(),m=(0,a.vt)(),N=(0,a.vt)(),E=(0,a.vt)(),A=(0,a.vt)(),I=(0,r.kU)(4),O=Math.cos(I),T=(0,r.kU)(35),S=Math.cos(T)}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1088],{31088:(e,t,r)=>{r.r(t),r.d(t,{OperatorGeodeticDensifyByLength:()=>u,OperatorGeodeticDensifyCursor:()=>a});var s=r(76061),n=r(55537),i=r(12189);class u{getOperatorType(){return 10310}supportsCurves(){return!0}accelerateGeometry(e,t,r){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,r,s,n){return new a(e,r,s,t,-1,-1,n)}execute(e,t,r,i,u){const a=new s.S([e]),m=this.executeMany(a,t,r,i,u).next();return m||(0,n.d)("null output"),m}}class a extends s.G{constructor(e,t,r,s,i,u,a){super(),this.m_progressTracker=a,u>0&&(0,n.t)(""),4!==r&&i>0&&(0,n.t)(""),t||(0,n.a)(""),0===t.getCoordinateSystemType()&&(0,n.a)(""),s>0||i>0||(0,n.a)(""),this.m_index=-1,this.m_inputGeoms=e,this.m_spatialReference=t,this.m_curveType=r,this.m_maxLengthMeters=s,this.m_maxDeviationMeters=i,this.m_maxAngle=u}next(){{let e;for(;e=this.m_inputGeoms.next();)return(0,n.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.geodeticDensify(e);return null}}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}geodeticDensify(e){return(0,i.L)(e,this.m_spatialReference,this.m_curveType,this.m_maxLengthMeters,this.m_maxDeviationMeters,this.m_progressTracker)}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1088],{31088:(e,t,r)=>{r.r(t),r.d(t,{OperatorGeodeticDensifyByLength:()=>u,OperatorGeodeticDensifyCursor:()=>a});var s=r(76061),n=r(55537),i=r(12189);class u{getOperatorType(){return 10310}supportsCurves(){return!0}accelerateGeometry(e,t,r){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,r,s,n){return new a(e,r,s,t,-1,-1,n)}execute(e,t,r,i,u){const a=new s.S([e]),m=this.executeMany(a,t,r,i,u).next();return m||(0,n.d)("null output"),m}}class a extends s.G{constructor(e,t,r,s,i,u,a){super(),this.m_progressTracker=a,u>0&&(0,n.t)(""),4!==r&&i>0&&(0,n.t)(""),t||(0,n.a)(""),0===t.getCoordinateSystemType()&&(0,n.a)(""),s>0||i>0||(0,n.a)(""),this.m_index=-1,this.m_inputGeoms=e,this.m_spatialReference=t,this.m_curveType=r,this.m_maxLengthMeters=s,this.m_maxDeviationMeters=i,this.m_maxAngle=u}next(){{let e;for(;e=this.m_inputGeoms.next();)return(0,n.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.geodeticDensify(e);return null}}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}geodeticDensify(e){return(0,i.N)(e,this.m_spatialReference,this.m_curveType,this.m_maxLengthMeters,this.m_maxDeviationMeters,this.m_progressTracker)}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[847,1088,6061],{26640:(e,t,n)=>{n.d(t,{D:()=>E,m:()=>m,s:()=>y,w:()=>d});var s=n(90237),i=n(55537),a=n(88885),r=n(12189),o=n(83661),_=n(79187),h=n(95213);function m(){return{outPoint:new o.P,index:-1,t:Number.NaN}}function u(e,t,n){return{outPoint:e.clone(),index:t,t:n}}function c(e,t,n,s){e.outPoint.assign(t),e.index=n,e.t=s}function l(e,t){e.outPoint.assign(t.outPoint),e.index=t.index,e.t=t.t}function g(e,t,n,s){e.index=n,e.t=s,t.queryCoord2D(e.t,e.outPoint)}function p(e,t){const n=m();l(n,e),l(e,t),l(t,n)}function d(e,t,n,s,a,o){if(e.getGeometryType()===i.G.enumPolygon){for(;s.nextPath();)if(s.hasNextSegment()){const t=s.nextSegment();if(0!==(0,r.h)(e,t.getEndXY(),0))return c(a,t.getEndXY(),-1,Number.NaN),c(o,t.getEndXY(),-1,Number.NaN),!0}s.resetToFirstPath()}if(t.getGeometryType()===i.G.enumPolygon){for(;n.nextPath();)if(n.hasNextSegment()){const e=n.nextSegment();if(0!==(0,r.h)(t,e.getEndXY(),0))return c(a,e.getEndXY(),-1,Number.NaN),c(o,e.getEndXY(),-1,Number.NaN),!0}n.resetToFirstPath()}return!1}function y(e){const t=e.getPathCount(),n=(0,o.d)(e.getSegmentCount(),0);let s=0;for(let i=0;i<t;++i){const t=s+e.getSegmentCountPath(i);for(let a=s,r=e.getPathStart(i);a<t;++a,++r)n[a]=r;s=t}return(0,a.s)(e.getPointCount(),n),n}function P(e,t){return!!Number.isNaN(t)||e<=t}function f(e){const t=new a.a;return t.addEnvelope(e,!1),t}class E{constructor(e,t){if(this.m_env2DgeometryA=null,this.m_env2DgeometryB=null,this.m_progressCounter=0,this.m_progressTracker=t,this.m_maxSqrDistance=e*e,this.m_maxDistance=e,this.m_bIsNearCalc=!1,Number.isNaN(this.m_maxDistance)?this.m_maxDistance=Number.POSITIVE_INFINITY:this.m_maxDistance=e,this.m_maxSqrDistance=this.m_maxDistance*this.m_maxDistance,Number.isFinite(this.m_maxSqrDistance)){let e=Math.sqrt(this.m_maxSqrDistance);for(;e<this.m_maxDistance;)this.m_maxSqrDistance*=1+Number.EPSILON,e=Math.sqrt(this.m_maxSqrDistance)}}calculate(e,t,n,s){if((e.getGeometryType()!==h.P.type||t.getGeometryType()!==h.P.type)&&(this.m_env2DgeometryA=new _.Envelope2D,this.m_env2DgeometryB=new _.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!P(this.m_env2DgeometryA.distanceFromEnvelope(this.m_env2DgeometryB),this.m_maxDistance)))return Number.POSITIVE_INFINITY;const i=u(new o.P,(0,o.j)(),Number.NaN),a=u(new o.P,(0,o.j)(),Number.NaN),r=this._ExecuteBruteForce(e,t,i,a);return P(r,this.m_maxDistance)?(null!==n&&l(n,i),null!==s&&l(s,a),r):Number.POSITIVE_INFINITY}isNear(e,t){if(this.m_bIsNearCalc=!0,e.isEmpty()||t.isEmpty())return!1;if(e===t)return!0;let n=!0;if(e.getGeometryType()!==h.P.type&&e.getGeometryType()!==h.E.type||t.getGeometryType()!==h.P.type&&t.getGeometryType()!==h.E.type||(n=!1),n){if(this.m_env2DgeometryA=new _.Envelope2D,this.m_env2DgeometryB=new _.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!(this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)>this.m_maxSqrDistance))return!0;if(this.m_env2DgeometryA.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>this.m_maxSqrDistance)return!1}const s=u(new o.P,(0,o.j)(),Number.NaN),i=u(new o.P,(0,o.j)(),Number.NaN);return this._ExecuteBruteForce(e,t,s,i)<=this.m_maxDistance}progress_(e=!1){}_ExecuteBruteForce(e,t,n,s){switch(e.getGeometryType()){case i.G.enumPoint:return this.distancePointGeometry(e,t,n,s);case i.G.enumMultiPoint:return this.distanceMultipointGeometry(e,t,n,s);case i.G.enumEnvelope:return this.distanceEnvelopeGeometry(e,t,n,s);case i.G.enumPolyline:case i.G.enumPolygon:return this.distanceMultipathGeometry(e,t,n,s);default:return Number.NaN}}distancePointGeometry(e,t,n,s){switch(t.getGeometryType()){case i.G.enumPoint:return this.distancePointPoint(e,t,n,s);case i.G.enumMultiPoint:return this.distancePointMultipoint(e,t,n,s);case i.G.enumPolyline:case i.G.enumPolygon:return this.distancePointMultipath(e,t,n,s);case i.G.enumEnvelope:return this.distancePointEnvelope(e,t,n,s);default:return Number.NaN}}distancePointPoint(e,t,n,s){const i=e.getXY(),a=t.getXY();return c(n,i,0,0),c(s,a,0,0),Math.sqrt(o.P.sqrDistance(i,a))}distancePointMultipoint(e,t,n,s){const i=e.getXY();let a=this.m_maxSqrDistance,r=a,_=!1;const h=t.getPointCount(),m=new o.P;for(let e=0;e<h;++e)if(t.queryXY(e,m),r=o.P.sqrDistance(i,m),this.m_bIsNearCalc){if(r<=a)return 0}else if(!(r>a)&&(!_&&r===a||r<a)&&(a=r,c(n,i,0,0),c(s,m,e,0),_=!0,0===a))return 0;return _?Math.sqrt(a):Number.POSITIVE_INFINITY}distancePointMultipath(e,t,n,s){const a=!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB),h=e.getXY();if(!a&&t.getGeometryType()===i.G.enumPolygon&&0!==(0,r.h)(t,h,0))return c(n,h,0,0),c(s,h,-1,Number.NaN),0;t.getImpl().getAccelerators();let m=this.m_maxSqrDistance,u=m,l=-1;const g=new _.Envelope2D,p=t.querySegmentIterator();let d=!1;for(;p.nextPath();)for(;p.hasNextSegment();){const e=p.nextSegment();e.queryEnvelope(g);const t=g.sqrDistance(h);if(t>m)continue;if(!this.m_bIsNearCalc&&d&&t===m)continue;l=e.getClosestCoordinate(h,!1);const i=e.getCoord2D(l);if(u=o.P.sqrDistance(h,i),this.m_bIsNearCalc){if(u<=m)return 0}else if(!(u>m)&&(!d||u<m)&&(m=u,c(n,h,0,0),c(s,i,p.getStartPointIndex(),l),d=!0,0===m))return 0}return d?Math.sqrt(m):Number.POSITIVE_INFINITY}distancePointEnvelope(e,t,n,s){const i=e.getXY();c(n,i,0,0),c(s,i,-1,Number.NaN);const a=t.asEnvelope2D();return a.contains(i)?0:Math.sqrt(a.sqrDistance(i,s.outPoint))}distanceMultipointGeometry(e,t,n,s){switch(t.getGeometryType()){case i.G.enumPoint:{this.m_env2DgeometryB=(0,o.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const i=this.distancePointMultipoint(t,e,s,n);return this.m_env2DgeometryB=(0,o.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),i}case i.G.enumMultiPoint:return this.distanceMultipointMultipoint(e,t,n,s,1,1);case i.G.enumPolyline:case i.G.enumPolygon:return this.distanceMultipointMultipath(e,t,n,s);case i.G.enumEnvelope:return this.distanceMultipointMultipath(e,f(t),n,s);default:return Number.NaN}}distanceMultipointMultipoint(e,t,n,i,a,r){const _={stack:[],error:void 0,hasError:!1};try{if(this.m_bIsNearCalc&&1===a&&1===r){const s=Math.trunc((0,o.s)(Math.sqrt(e.getPointCount())+1,1,(0,o.i)())),a=Math.trunc((0,o.s)(Math.sqrt(t.getPointCount())+1,1,(0,o.i)()));if((s>=4||a>=4)&&this.distanceMultipointMultipoint(e,t,n,i,s,a)<=this.m_maxSqrDistance)return 0}let h=this.m_maxSqrDistance;const m=[e],u=[t],l=this.swapGeometriesIfBGtA(m,u);l&&(this.m_env2DgeometryB=(0,o.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),r=(0,o.c)(a,a=r),p(n,i)),(0,s.b)(_,(0,o.h)((()=>{p(n,i),this.m_env2DgeometryB=(0,o.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)}),!l),!1);const g=m[0].getImpl(),d=u[0].getImpl(),y=g.getPointCount(),P=d.getPointCount(),f=P>1;let E=!1;const S=new o.P,x=new o.P;for(let e=0;e<y;e+=a){if(g.queryXY(e,S),f){const e=this.m_env2DgeometryB.sqrDistance(S);if(this.m_bIsNearCalc){if(e>h)continue;if(this.m_env2DgeometryB.sqrMaxMinDistance(S)<=h)return 0}else if(e>=h)continue}for(let t=0;t<P;t+=r){d.queryXY(t,x);const s=o.P.sqrDistance(S,x);if(this.m_bIsNearCalc){if(s<=h)return 0}else if(!(s>h||E&&s===h)&&(!E||s<h)&&(c(n,S,e,0),c(i,x,t,0),E=!0,h=s,0===h))return E?Math.sqrt(h):Number.POSITIVE_INFINITY}}return E?Math.sqrt(h):Number.POSITIVE_INFINITY}catch(e){_.error=e,_.hasError=!0}finally{(0,s.c)(_)}}distanceMultipointMultipath(e,t,n,s){let a=!!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)&&t.getGeometryType()===i.G.enumPolygon;const h=t.querySegmentIterator();h.stripAttributes();const m=new _.Envelope2D,u=new o.P;let l=this.m_maxSqrDistance;const g=e.getImpl(),p=g.getPointCount(),d=p>1;let y=!1;for(;h.nextPath();)for(;h.hasNextSegment();){const e=h.nextSegment();if(e.queryLooseEnvelope(m),d){const e=m.sqrDistanceEnvelope(this.m_env2DgeometryA,null,null);if(this.m_bIsNearCalc){if(e>l)continue}else if(e>l||y&&e===l)continue}for(let i=0;i<p;i++){if(g.queryXY(i,u),a&&0!==(0,r.h)(t,u,0))return c(n,u,-1,Number.NaN),c(s,u,i,0),0;{const e=m.sqrDistance(u);if(this.m_bIsNearCalc){if(e>l)continue}else if(e>l)continue}const o=e.getClosestCoordinate(u,!1),_=e.getCoord2D(o);u.subThis(_);const p=u.sqrLength();if(this.m_bIsNearCalc){if(p<=l)return 0}else if(!(p>l)&&(!y||p<l)&&(l=p,c(n,g.getXY(i),i,0),c(s,_,h.getStartPointIndex(),o),y=!0,0===l))return 0}a=!1}return y?Math.sqrt(l):Number.POSITIVE_INFINITY}distanceEnvelopeGeometry(e,t,n,s){switch(t.getGeometryType()){case i.G.enumPoint:return this.distancePointEnvelope(t,e,s,n);case i.G.enumMultiPoint:{this.m_env2DgeometryB=(0,o.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const i=this.distanceMultipointMultipath(t,f(e),s,n);return this.m_env2DgeometryB=(0,o.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),i}case i.G.enumPolyline:case i.G.enumPolygon:return this.distanceMultipathMultipath(f(e),t,n,s);case i.G.enumEnvelope:return this.distanceEnvelopeEnvelope(e,t,n,s);default:return Number.NaN}}distanceEnvelopeEnvelope(e,t,n,s){n.t=Number.NaN,n.index=-1,s.t=Number.NaN,s.index=-1;const i=e.asEnvelope2D(),a=t.asEnvelope2D();return Math.sqrt(i.sqrDistanceEnvelope(a,n.outPoint,s.outPoint))}distanceMultipathGeometry(e,t,n,s){switch(t.getGeometryType()){case i.G.enumPoint:{this.m_env2DgeometryB=(0,o.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const i=this.distancePointMultipath(t,e,s,n);return this.m_env2DgeometryB=(0,o.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),i}case i.G.enumMultiPoint:{this.m_env2DgeometryB=(0,o.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const i=this.distanceMultipointMultipath(t,e,s,n);return this.m_env2DgeometryB=(0,o.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),i}case i.G.enumPolyline:case i.G.enumPolygon:return this.distanceMultipathMultipath(e,t,n,s);case i.G.enumEnvelope:return this.distanceMultipathMultipath(e,f(t),n,s);default:return Number.NaN}}distanceMultipathMultipath(e,t,n,i){const r={stack:[],error:void 0,hasError:!1};try{const h=[e],u=[t],c=this.swapGeometriesIfAGtB(h,u);c&&(this.m_env2DgeometryB=(0,o.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),p(n,i)),(0,s.b)(r,(0,o.h)((()=>{p(n,i),this.m_env2DgeometryB=(0,o.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)}),!c),!1);const P=h[0],f=u[0],E=P.querySegmentIterator();E.stripAttributes();const S=f.querySegmentIterator();if(S.stripAttributes(),this.m_bIsNearCalc&&this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)<=this.m_maxSqrDistance)return 0;if(this.m_bIsNearCalc){const e=Math.trunc((0,o.s)(Math.sqrt(P.getPointCount())+1,1,(0,o.i)())),t=Math.trunc((0,o.s)(Math.sqrt(P.getPointCount())+1,1,(0,o.i)()));if(this.distanceMultipointMultipoint(P,f,n,i,e,t)<=this.m_maxSqrDistance)return 0}if(this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)){const e=m(),t=m();if(d(P,f,E,S,e,t))return l(n,e),l(i,t),0}const x=y(P),v=[],N=new a.S,A=new _.Envelope2D,D=new _.Envelope2D,M=new _.Envelope2D;let w=this.m_maxSqrDistance,C=!0,T=!1;for(let e=0,t=x.length;e<t;++e){P.querySegment(x[e],N,!0);const t=N.get();if(t.queryEnvelope(A),!(A.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>w)){if(this.m_bIsNearCalc&&A.sqrMaxDistanceEnvelope(this.m_env2DgeometryB)<=w)return 0;for(;S.nextPath();){if(this.progress_(),C)f.queryPathEnvelope(S.getPathIndex(),M),v[S.getPathIndex()]=M.clone();else if(A.sqrDistanceEnvelope(v[S.getPathIndex()],null,null)>w)continue;for(;S.hasNextSegment();){const s=S.nextSegment();if(s.queryEnvelope(D),A.sqrDistanceEnvelope(D,null,null)<=w){const a=!A.isIntersecting(D),r=[0],o=[0];let _=t.distance(s,a,r,o);if(_*=_,this.m_bIsNearCalc&&_<=this.m_maxSqrDistance)return 0;if(_<w||_===w&&x[e]<n.index){if(T=!0,g(n,t,x[e],r[0]),g(i,s,S.getStartPointIndex(),o[0]),0===_)return 0;w=_}}}}S.resetToFirstPath(),C=!1}}return T?Math.sqrt(w):Number.POSITIVE_INFINITY}catch(e){r.error=e,r.hasError=!0}finally{(0,s.c)(r)}}swapGeometriesIfAGtB(e,t){return(0,i.v)(e[0])>(0,i.v)(t[0])&&(t[0]=(0,o.c)(e[0],e[0]=t[0]),!0)}swapGeometriesIfBGtA(e,t){return this.swapGeometriesIfAGtB(t,e)}}},31088:(e,t,n)=>{n.r(t),n.d(t,{OperatorGeodeticDensifyByLength:()=>r,OperatorGeodeticDensifyCursor:()=>o});var s=n(76061),i=n(55537),a=n(12189);class r{getOperatorType(){return 10310}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,s,i){return new o(e,n,s,t,-1,-1,i)}execute(e,t,n,a,r){const o=new s.S([e]),_=this.executeMany(o,t,n,a,r).next();return _||(0,i.d)("null output"),_}}class o extends s.G{constructor(e,t,n,s,a,r,o){super(),this.m_progressTracker=o,r>0&&(0,i.t)(""),4!==n&&a>0&&(0,i.t)(""),t||(0,i.a)(""),0===t.getCoordinateSystemType()&&(0,i.a)(""),s>0||a>0||(0,i.a)(""),this.m_index=-1,this.m_inputGeoms=e,this.m_spatialReference=t,this.m_curveType=n,this.m_maxLengthMeters=s,this.m_maxDeviationMeters=a,this.m_maxAngle=r}next(){{let e;for(;e=this.m_inputGeoms.next();)return(0,i.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.geodeticDensify(e);return null}}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}geodeticDensify(e){return(0,a.L)(e,this.m_spatialReference,this.m_curveType,this.m_maxLengthMeters,this.m_maxDeviationMeters,this.m_progressTracker)}}},47591:(e,t,n)=>{n.d(t,{O:()=>p});var s=n(55537),i=n(12189),a=n(88885),r=n(83661),o=n(95213),_=n(79187),h=n(5247),m=n(31139);function u(){return{m_pGcs:new r.P,m_xyz:new o.d,m_factor:Number.NaN,m_geoLength:Number.NaN,setValues:c,setLength:l,assign:g}}function c(e,t,n,s){this.m_factor=e,this.m_pGcs.assign(t),this.m_xyz.assign(s),this.m_geoLength=n}function l(e){this.m_geoLength=e}function g(e){this.m_pGcs.assign(e.m_pGcs),this.m_xyz.assign(e.m_xyz),this.m_factor=e.m_factor,this.m_geoLength=e.m_geoLength}class p{getOperatorType(){return 10315}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}_ExecuteShapePreservingLength(e,t,n,s,a){if(e.hasNonLinearSegments()&&(e=(new h.O).execute(e,0,t.getTolerance(0),0,a)),t.isPannable()){let s=90,r=-90;if(1===n.getUnit().getUnitToBaseFactor()&&(s*=Math.PI/180,r*=Math.PI/180),2===t.getCoordinateSystemType()){let e=null;const n=[0,0,0,0];e=t.getPECoordSys(),n[0]=0,n[1]=s,n[2]=0,n[3]=r,i.K.geogToProj(e,2,n),s=n[1],r=n[3]}const o=new _.Envelope2D;e.queryEnvelope(o),o.ymin=r,o.ymax=s,e=(new m.O).execute(e,o,t,a)}else{const n=t.getPCSHorizon();if((e=(new i.g).execute(e,n,t,a))===n){const t=e.clone();e=t}}return e.isEmpty()?0:this._ExecuteIterativeApproach(e,t,n,s,1,a)}_ExecuteIterativeApproach(e,t,n,a,_,h){const m=(0,i.v)();n.querySpheroidData(m);const c=m.majorSemiAxis,l=m.e2,g=n.getUnit().getUnitToBaseFactor(),p=(0,r.n)(u,40),P=(0,r.d)(40,Number.NaN),f=u(),E=u();let S;const x=[0,0,0,0],v=t.getPECoordSys(),N=new r.P,A=new r.P,D=new r.P,M=new r.P,w=new r.P;let C=0;const T=e.querySegmentIterator();for(;T.nextPath();)for(;T.hasNextSegment();){const e=T.nextSegment();N.assign(e.getStartXY()),A.assign(e.getEndXY()),2===t.getCoordinateSystemType()?(x[0]=N.x,x[1]=N.y,x[2]=A.x,x[3]=A.y,i.K.projToGeog(v,2,x),D.x=x[0]*g,D.y=x[1]*g,M.x=x[2]*g,M.y=x[3]*g):(D.setCoordsPoint2D(N),M.setCoordsPoint2D(A),D.scale(g),M.scale(g));const n=new o.d,a=new o.d;d(c,l,D,n),d(c,l,M,a);let r=y(c,n,a);f.setValues(0,D,Number.NaN,n),E.setValues(1,M,r,a),S=_,p[0].assign(E),P[0]=_;let h=0;for(;;){h>128&&(0,s.d)("iterations exceeded");const n=.5*(f.m_factor+E.m_factor),a=e.getCoord2D(n);2===t.getCoordinateSystemType()?(x[0]=a.x,x[1]=a.y,i.K.projToGeog(v,1,x),w.x=x[0]*g,w.y=x[1]*g):(w.setCoordsPoint2D(a),w.scale(g)),D.setCoordsPoint2D(f.m_pGcs),M.setCoordsPoint2D(E.m_pGcs);const m=new o.d;d(c,l,w,m);const u=y(c,f.m_xyz,m),N=y(c,E.m_xyz,m);r=E.m_geoLength,Number.isNaN(r)&&(r=y(c,f.m_xyz,E.m_xyz));const A=u+N,T=S===_&&A>=20&&Math.abs(A-r)>1e-8*(r+A);if(h+2<40&&(T||Math.abs(A-r)>0&&S>0))E.setLength(N),p[h].assign(E),E.setValues(n,w,u,m),p[++h].assign(E),T?(S=_,P[h]=_):(S--,P[h-1]=S,P[h]=S);else{if(C+=A,0===h)break;f.assign(E),E.assign(p[--h]),S=P[h]}}}return C}execute(e,t,n){if(t&&0!==t.getCoordinateSystemType()||(0,s.a)(""),e.isEmpty()||e.getDimension()<1)return 0;let r=null;const o=t.getGCS();o!==t&&(r=(0,i.B)(t,o,null));const _=e.getGeometryType();if(_===s.G.enumEnvelope){const s=new a.a;return s.addEnvelope(e,!1),this._ExecuteShapePreservingLength(s,t,o,r,n)}if((0,s.f)(_)){const s=new a.P;return s.addSegment(e,!0),this._ExecuteShapePreservingLength(s,t,o,r,n)}return this._ExecuteShapePreservingLength(e,t,o,r,n)}}function d(e,t,n,s){s.assign((0,i.w)(e,t,n))}function y(e,t,n){const s=e,i=new o.d;i.setSub(t,n);const a=i.length();return 2*s*Math.asin(a/(2*s))}},76061:(e,t,n)=>{n.d(t,{G:()=>s,S:()=>i});class s{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class i extends s{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},80847:(e,t,n)=>{n.r(t),n.d(t,{OperatorGeodeticArea:()=>T});var s=n(55537),i=n(88885),a=n(5247),r=n(12189),o=n(83661),_=n(79187),h=n(95213),m=n(31139),u=n(47591),c=n(90237),l=n(11878);n(26640),n(76061),n(31088),Symbol.dispose;class g{constructor(e,t,n,s,i=0,a=4){this.m_ptDistFrom=new o.P,this.m_segStartPt=new o.P,this.m_segEndPt=new o.P,this.m_geodeticLength=new r.P,this.m_az12=new r.P,this.m_minGeodeticDist=new r.P,this.m_segStartPt3d=new h.d,this.m_segEndPt3d=new h.d,this.m_sr=s,this.m_distCurveType=i,this.m_segCurveType=a,this.m_inputGCS=this.m_sr.getGCS(),this.m_rpu=this.m_inputGCS.getUnit().getUnitToBaseFactor(),this.m_bIsPannablePcs=2===this.m_sr.getCoordinateSystemType()&&this.m_sr.isPannable();const _=(0,r.v)();this.m_inputGCS.querySpheroidData(_),this.m_a=_.majorSemiAxis,this.m_eSquared=_.e2,this.setPointDistFrom(e),this.setSegmentEndPoints(t,n)}setSegmentEndPoints(e,t){this.m_segStartPt.assign(e),this.m_segEndPt.assign(t),this.m_bIsPannablePcs||(this.m_segStartPt.mulThis(this.m_rpu),this.m_segEndPt.mulThis(this.m_rpu)),2===this.m_segCurveType&&(this.m_segStartPt3d.assign((0,r.w)(this.m_a,this.m_eSquared,this.m_segStartPt)),this.m_segEndPt3d.assign((0,r.w)(this.m_a,this.m_eSquared,this.m_segEndPt))),this.calculateAndUpdateSegmentLength()}setPointDistFrom(e){this.m_ptDistFrom.assign(e),this.m_ptDistFrom.scale(this.m_rpu)}setSegmentCurveType(e){this.m_segCurveType=e}setDistanceCurveType(e){this.m_distCurveType=e}makeFunctor(){return e=>{let t;switch(this.m_segCurveType){case 0:case 1:case 3:{const n={stack:[],error:void 0,hasError:!1};try{const s=(0,c.b)(n,new r.P,!1),i=(0,c.b)(n,new r.P,!1);r.z.geodeticCoordinate(this.m_a,this.m_eSquared,this.m_segStartPt.x,this.m_segStartPt.y,this.m_geodeticLength.val*e,this.m_az12.val,s,i,this.m_segCurveType),t=new o.P(s.val,i.val);break}catch(e){n.error=e,n.hasError=!0}finally{(0,c.c)(n)}}case 2:{const n=h.d.lerp(this.m_segStartPt3d,this.m_segEndPt3d,e);t=(0,r.y)(this.m_a,this.m_eSquared,n);break}case 4:t=o.P.lerp(this.m_segStartPt,this.m_segEndPt,e),this.m_bIsPannablePcs&&((0,r.x)(this.m_sr,0,[t],1),t.mulThis(this.m_rpu));break;default:(0,s.d)("Invalid curve type")}return r.z.geodeticDistance(this.m_a,this.m_eSquared,this.m_ptDistFrom.x,this.m_ptDistFrom.y,t.x,t.y,this.m_minGeodeticDist,null,null,this.m_distCurveType),this.m_minGeodeticDist.val}}calculateAndUpdateSegmentLength(){switch(this.m_segCurveType){case 0:case 2:case 1:case 3:r.z.geodeticDistance(this.m_a,this.m_eSquared,this.m_segStartPt.x,this.m_segStartPt.y,this.m_segEndPt.x,this.m_segEndPt.y,this.m_geodeticLength,this.m_az12,null,this.m_segCurveType);break;case 4:this.m_geodeticLength.val=o.P.distance(this.m_segStartPt,this.m_segEndPt);break;default:(0,s.d)("Invalid curve type")}}[Symbol.dispose](){this.m_geodeticLength[Symbol.dispose](),this.m_az12[Symbol.dispose](),this.m_minGeodeticDist[Symbol.dispose]()}}Symbol.dispose;class p{constructor(e,t,n,s,i=100){this.m_startPt=e.clone(),this.m_endPt=t.clone(),this.m_cE2=s,this.m_cE=Math.sqrt(this.m_cE2),this.m_c1By2e=1/(2*this.m_cE),this.m_cRpu=n.getGCS().getUnit().getUnitToBaseFactor(),this.isPcs=2===n.getCoordinateSystemType(),this.PEProjcs=n.getPECoordSys(),this.m_points=(0,o.d)(2*i,Number.NaN)}setSegmentEndPoints(e,t){this.m_startPt.assign(e),this.m_endPt.assign(t)}makeFunctor(){return e=>{const t=[0,0];t[0]=this.m_startPt.x*(1-e)+this.m_endPt.x*e,t[1]=this.m_startPt.y*(1-e)+this.m_endPt.y*e,this.isPcs&&r.K.projToGeogCenter(this.PEProjcs,1,t,0);const n=Math.sin(t[1]*this.m_cRpu);return 0===this.m_cE2?n:-Math.log((1-this.m_cE*n)/(1+this.m_cE*n))*this.m_c1By2e+n/(1-this.m_cE2*n*n)}}}function d(e,t,n,s,i){const o=(new a.O).execute(e,t,0,0,i);let h;h=s?(new r.A).execute(o,s,i):o;const m=1===n.getUnit().getUnitToBaseFactor()?Math.PI/180:1,u=new _.Envelope2D;h.queryEnvelope(u);const c=new _.Envelope2D,l=new _.Envelope2D,g=new _.Envelope2D;c.setCoords({xmin:u.xmin,ymin:75*m,xmax:u.xmax,ymax:90*m}),l.setCoords({xmin:u.xmin,ymin:-60*m,xmax:u.xmax,ymax:75*m}),g.setCoords({xmin:u.xmin,ymin:-90*m,xmax:u.xmax,ymax:-60*m}),c.inflateCoords(.01*c.width(),0),l.inflateCoords(.01*l.width(),0),g.inflateCoords(.01*g.width(),0);let p=0;return p+=y(h,c,n,i),p+=y(h,l,n,i),p+=y(h,g,n,i),p}function y(e,t,n,i){const a=(new m.O).execute(e,t,n,i);if(null!==a&&!a.isEmpty()){const e=new _.Envelope2D;a.queryEnvelope(e);const{first:t,second:h}=function(e,t){const n=function(e,t){const n=e.getUnit().getUnitToBaseFactor(),i=t.getCenter();i.scale(180*n/Math.PI);const a=new o.P;a.x=0,a.y=0;let _=0;if(0===_){i.y>45?(a.y=o.o,_=0):i.y<-45?(a.y=-o.o,_=1):i.x>=45&&i.x<135?(a.x=o.o,_=2):i.x>=135||i.x<-135?(a.x=o.o,_=3):i.x<-45&&i.x>=-135?(a.x=-o.o,_=4):(a.x=0,_=5);const e=n*Math.sqrt((0,o.a)(t.xmin-t.xmax)+(0,o.a)(t.ymin-t.ymax)),s=a.clone(),r=t.getCenter();if(r.scale(n),_<2&&(s.x=r.x),o.P.distance(s,r)+.5*e>o.o)return null}const h=P[_];if(null!==h&&h.getGCS().equalHorizontal(e))return h;const m=e.getText(),u=a.x,c=a.y;let l=0,g=-1;6!==_?g=r.a9.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA:((0,s.g)(false),l=0,g=r.a9.PE_PRJ_CYLINDRICAL_EQAREA);const p=(0,r.aw)("EqualAreaPCS");let d;g===r.a9.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA?d=`PROJCS["${p}",${m},PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${u}],PARAMETER["Latitude_of_Origin",${c}],UNIT["Meter",1.0]]`:g===r.a9.PE_PRJ_CYLINDRICAL_EQAREA?d=`PROJCS["${p}",${m},PROJECTION["Cylindrical_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${u}],PARAMETER["Standard_Parallel_1",${l}],PARAMETER["Latitude_of_Origin",${c}],UNIT["Meter",1.0]]`:(0,s.d)("getEqualAreaPcsFixed");const y=(0,r.a)(d);return P[_]&&P[_].destroy(),P[_]=y,y}(e,t);if(null!==n)return(0,o.k)(n,!1);const i=e.getText(),a=e.getUnit().getUnitToBaseFactor(),_=(t.xmin+t.width()/2)*a,h=(t.ymin+t.height()/2)*a;let m=0,u=0,c=-1;t.ymin*a>=75*Math.PI/180||t.ymax*a<=-60*Math.PI/180?c=r.a9.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA:t.ymin>0||t.ymax<0?(m=(t.ymin+1/3*t.height())*a,u=(t.ymin+2/3*t.height())*a,c=r.a9.PE_PRJ_ALBERS):(m=(t.ymin+2/3*t.height())*a,c=r.a9.PE_PRJ_CYLINDRICAL_EQAREA);const l=(0,r.aw)("EqualAreaPCS");let g;return c===r.a9.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA?g=`PROJCS["${l}",${i},PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${_}],PARAMETER["Latitude_of_Origin",${h}],UNIT["Meter",1.0]]`:c===r.a9.PE_PRJ_ALBERS?g=`PROJCS["${l}",${i},PROJECTION["Albers"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${_}],PARAMETER["Standard_Parallel_1",${m}],PARAMETER["Standard_Parallel_2",${u}],PARAMETER["Latitude_of_Origin",${h}],UNIT["Meter",1.0]]`:c===r.a9.PE_PRJ_CYLINDRICAL_EQAREA?g=`PROJCS["${l}",${i},PROJECTION["Cylindrical_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${_}],PARAMETER["Standard_Parallel_1",${m}],PARAMETER["Latitude_of_Origin",${h}],UNIT["Meter",1.0]]`:(0,s.d)("getEqualAreaPCSInstance"),(0,o.k)((0,r.a)(g),!0)}(n,e),m=(0,r.B)(n,t,null),u=(new r.A).execute(a,m,i).calculateArea2D();return h&&t.destroy(),u}return 0}const P=[null,null,null,null,null,null,null];class f{getOperatorType(){return 10314}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n){if(0===t.getCoordinateSystemType()&&(0,s.a)(""),e.isEmpty()||e.getDimension()<2)return 0;if((0,s.c)(e),e.getGeometryType()===s.G.enumEnvelope){const s=new i.a;return s.addEnvelope(e,!1),this.execute(s,t,n)}let c=e;e.getDescription().getAttributeCount()>1&&(c=e.clone(),c.dropAllAttributes());const l=(new a.O).execute(c,0,t.getTolerance(0),0,n);let g=null;const y=t.getGCS();y!==t&&(g=(0,r.B)(t,y));let P=(new r.O).execute(l,t,!1,n);return P.isEmpty()?0:(P===e&&(P=e.clone()),t.isPannable()?function(e,t,n){const s=new _.Envelope2D;e.queryEnvelope(s);const a=(0,h.c)(t,s,!0).total(),u=t.getPannableExtent();u.xmin=s.xmin-10*a,u.xmax=s.xmax+10*a;const c=(new m.O).execute(e,u,t,n).getImpl().querySegmentIterator();c.stripAttributes();const l=(0,r.v)();t.querySpheroidData(l);const g=l.e2,d=0===g?2:1,y=new o.P(0,0),P=new o.P(0,0),f=new o.K(0),E=new p(y,P,t,g,100);for(;c.nextPath();)for(;c.hasNextSegment();){const e=c.nextSegment();y.assign(e.getStartXY()),P.assign(e.getEndXY()),E.setSegmentEndPoints(y,P);const t=(0,i.x)(6,0,1,1e-12,1e-15,E.makeFunctor());f.pe((P.x-y.x)*t)}const S=l.majorSemiAxis;return d*S*S*(1-g)*Math.PI*f.getResult()/t.getPannableExtent().width()}(P,t,n):function(e,t,n,s,i){const a=function(e,t,n){const s=e.calculateLength2D(),i=(new u.O).execute(e,t,n)/25e3,a=s/e.getSegmentCount()*2;let r=Math.min(a,s/i);return 0===r&&(r=1),(0,o.k)(r,s/r)}(e,t,i);let r=d(e,a.first,n,s,i),_=1,h=0,m=0;do{if(_++,a.first*=.5,a.first<50*t.getTolerance(0))return r;a.second*=2,m=d(e,a.first,n,s,i),h=Math.abs(m-r),r=m}while(Math.abs(r)>1&&h>1e-8*Math.abs(r)&&(a.second<65e3&&_<8||_<4));return m}(P,t,y,g,n))}}function E(){return{m_p_PCS:new o.P,m_factor:Number.NaN,setValues:S,assign:x}}function S(e,t){this.m_factor=e,this.m_p_PCS.assign(t)}function x(e){this.m_factor=e.m_factor,this.m_p_PCS.assign(e.m_p_PCS)}class v{constructor(e,t,n,s){this.m_ptStart=new h.d,this.m_ptEnd=new h.d,this.m_ptStart.assign(t),this.m_ptEnd.assign(n),this.m_deltaX=this.m_ptEnd.x-this.m_ptStart.x,this.m_deltaY=this.m_ptEnd.y-this.m_ptStart.y,this.m_e=Math.sqrt(e),this.m_e2=e,this.m_c1MinusE2=1-e;const i=Math.sin(s);let a;a=0===this.m_e2?2*i:i*((0,o.y)(this.m_e*i)+1/(1-this.m_e2*i*i)),this.m_baseA=a}setSegmentEndPoints(e,t){this.m_ptStart.assign(e),this.m_ptEnd.assign(t),this.m_deltaX=this.m_ptEnd.x-this.m_ptStart.x,this.m_deltaY=this.m_ptEnd.y-this.m_ptStart.y}makeFunctor(){return e=>{const t=1-e,n=t*this.m_ptStart.x+e*this.m_ptEnd.x,s=t*this.m_ptStart.y+e*this.m_ptEnd.y,i=t*this.m_ptStart.z+e*this.m_ptEnd.z,a=n*n+s*s,r=i/Math.sqrt(i*i+this.m_c1MinusE2*this.m_c1MinusE2*a);let _;return _=0===this.m_e2?2*r:r*((0,o.y)(this.m_e*r)+1/(1-this.m_e2*r*r)),(this.m_deltaY*n-this.m_deltaX*s)/a*(_-this.m_baseA)}}}function N(){return{sin_phi:Number.NaN,one_p_sin_phi:Number.NaN,one_m_sin_phi:Number.NaN,one_m_e_2_sin_2_phi:Number.NaN,sin_half_phi_pf:Number.NaN,sin_half_phi_pz:Number.NaN,sin_half_asin_e_sin_phi_pf:Number.NaN,sin_half_asin_e_sin_phi_pz:Number.NaN,atanh_sin_phi:Number.NaN,atanh_esin_phi:Number.NaN,make_negative:!1,initialize:A,changeSign:D,assign:M,clone:w}}function A(e,t,n,s){const i=.5*e;this.sin_phi=Math.sin(e);const a=t*this.sin_phi,r=.5*Math.asin(a);this.one_p_sin_phi=1+this.sin_phi,this.one_m_sin_phi=1-this.sin_phi,this.one_m_e_2_sin_2_phi=(1+a)*(1-a),this.sin_half_phi_pf=Math.sin(i+n),this.sin_half_phi_pz=Math.sin(i+s),this.sin_half_asin_e_sin_phi_pf=Math.sin(r+n),this.sin_half_asin_e_sin_phi_pz=Math.sin(r+s),this.atanh_sin_phi=Math.log(this.sin_half_phi_pf/this.sin_half_phi_pz),this.atanh_esin_phi=Math.log(this.sin_half_asin_e_sin_phi_pf/this.sin_half_asin_e_sin_phi_pz)}function D(){this.sin_phi=-this.sin_phi;let e=this.one_p_sin_phi;this.one_p_sin_phi=this.one_m_sin_phi,this.one_m_sin_phi=e,e=this.sin_half_phi_pf,this.sin_half_phi_pf=this.sin_half_phi_pz,this.sin_half_phi_pz=e,e=this.sin_half_asin_e_sin_phi_pf,this.sin_half_asin_e_sin_phi_pf=this.sin_half_asin_e_sin_phi_pz,this.sin_half_asin_e_sin_phi_pz=e,this.atanh_sin_phi=-this.atanh_sin_phi,this.atanh_esin_phi=-this.atanh_esin_phi}function M(e){this.sin_phi=e.sin_phi,this.one_p_sin_phi=e.one_p_sin_phi,this.one_m_sin_phi=e.one_m_sin_phi,this.one_m_e_2_sin_2_phi=e.one_m_e_2_sin_2_phi,this.sin_half_phi_pf=e.sin_half_phi_pf,this.sin_half_phi_pz=e.sin_half_phi_pz,this.sin_half_asin_e_sin_phi_pf=e.sin_half_asin_e_sin_phi_pf,this.sin_half_asin_e_sin_phi_pz=e.sin_half_asin_e_sin_phi_pz,this.atanh_sin_phi=e.atanh_sin_phi,this.atanh_esin_phi=e.atanh_esin_phi,this.make_negative=e.make_negative}function w(){return{...this}}class C{constructor(e,t,n){this.m_transformPCS2GCS=null,this.m_scaleToRadians=new l.T,this.m_scaleToDegrees=new l.T,this.m_progressTracker=n,(0,s.g)(4!==t),this.m_curveType=t,this.m_inputSR=e,e&&0!==e.getCoordinateSystemType()||(0,s.a)(""),this.m_inputGCS=e.getGCS(),this.m_a=0,this.m_eSquared=0,this.m_b=0,this.m_rpu=0}executePolygonGeodeticArea(e){let t,n=e.clone();if(n.dropAllAttributes(),e.hasNonLinearSegments()&&(n=(new a.O).execute(n,0,this.m_inputSR.getTolerance(0),0,this.m_progressTracker)),this.m_inputSR.isPannable()){const e=new _.Envelope2D;n.queryEnvelope(e);const t=this.m_inputSR.getPannableExtent();if(!t.containsEnvelope(e)){const s=t.getCenterX()-e.getCenterX(),i=new l.T;i.setShiftCoords(s,0),n.applyTransformation(i),e.move(s,0);const a=new o.E;t.queryIntervalX(a);const _=new o.E;e.queryIntervalX(_),n=a.contains(_)?(0,r.H)(n,this.m_inputSR):(new r.A).foldInto360RangeGeodetic(n,this.m_inputSR,this.m_curveType)}}if(this.m_transformPCS2GCS?(n=(new r.O).execute(n,this.m_inputSR,!1,this.m_progressTracker),t=n.createInstance(),(0,r.N)(this.m_transformPCS2GCS,n,t,this.m_progressTracker)||(t=(new r.A).execute(n,this.m_transformPCS2GCS,this.m_progressTracker))):t=(new r.O).execute(n,this.m_inputGCS,!1,this.m_progressTracker),t.isEmpty())return 0;if(1===this.m_curveType){const e=(0,r.v)();return this.m_inputGCS.querySpheroidData(e),this.m_a=e.majorSemiAxis,this.m_eSquared=e.e2,this.loxodromeArea(t)}const s=t.getImpl();this.m_rpu=this.m_inputGCS.getUnit().getUnitToBaseFactor(),this.m_scaleToRadians.setScale(this.m_rpu),s.applyTransformation(this.m_scaleToRadians),this.m_scaleToDegrees=this.m_scaleToRadians,this.m_scaleToDegrees.invertThis();const i=(0,r.v)();if(this.m_inputGCS.querySpheroidData(i),this.m_a=i.majorSemiAxis,this.m_b=i.minorSemiAxis,this.m_eSquared=i.e2,2===this.m_curveType)return this.executeClippedPolygonGreatEllipticArea(t);{const e={stack:[],error:void 0,hasError:!1};try{const n=r.ax.unit(9101),s=this.m_inputGCS.getPECoordSys(),i=(0,c.b)(e,s.cloneAlterUnits(n),!1);let a,o,_=this.executeClippedPolygonGeodeticArea(t,i,0),h=0;do{h++,a=this.executeClippedPolygonGeodeticArea(t,i,h),o=Math.abs(a-_),_=a}while(Math.abs(a)>1&&o>1e-8*Math.abs(a)&&h<7);return a}catch(t){e.error=t,e.hasError=!0}finally{(0,c.c)(e)}}}executeClippedPolygonGeodeticArea(e,t,n){const s={stack:[],error:void 0,hasError:!1};try{const i=new _.Envelope2D;e.queryEnvelope(i);const a=(0,c.b)(s,this.getEqualAreaPCSInstance(t,i),!1),h=e.clone();(0,r.ay)(a,h);const m=50,u=h.getImpl().getAttributeStreamRef(0),l=e.getImpl().getAttributeStreamRef(0),g=(0,c.b)(s,new r.P,!1),p=(0,c.b)(s,new r.P,!1),d=40,y=[0,0],P=(0,o.n)(E,d),f=(0,o.d)(d,-1),S=E(),x=E();let v,N;const A=a;let D=h.calculateArea2D();const M=new o.K(0),w=.5*Math.PI,C=1e-10*Math.abs(D)+1e-6,T=e.getPathCount();let q,b,I,R;const G=new o.P,L=new o.P,B=new o.P,z=new o.P,O=new o.P,k=new o.P;let F,Y;for(b=e.getPathStart(0),q=0;q<T;q++,b=I)for(I=e.getPathEnd(q),u.queryPoint2D(I-1<<1,B),l.queryPoint2D(I-1<<1,G),Math.abs(G.y)>w&&(G.y=(0,o.f)(w,G.y)),R=b;R<I;R++,B.assign(z),G.assign(L)){if(u.queryPoint2D(R<<1,z),l.queryPoint2D(R<<1,L),Math.abs(L.y)>w&&(L.y=(0,o.f)(w,L.y)),F=o.P.distance(B,z),F<m||0===G.y&&0===L.y)continue;r.z.geodeticDistance(this.m_a,this.m_eSquared,G.x,G.y,L.x,L.y,g,p,null,this.m_curveType);const e=g.val,t=p.val;for(S.setValues(0,B),x.setValues(1,z),N=n,P[0].assign(x),f[0]=n,v=0;v>=0;){Y=.5*(S.m_factor+x.m_factor),r.z.geodeticCoordinate(this.m_a,this.m_eSquared,G.x,G.y,e*Y,t,g,p,this.m_curveType),O.x=g.val,O.y=p.val,y[0]=O.x,y[1]=O.y,r.K.geogToProj(A,1,y),k.x=y[0],k.y=y[1];const n=.5*-k.offset(S.m_p_PCS,x.m_p_PCS)*o.P.distance(S.m_p_PCS,x.m_p_PCS);if(M.pe(n),Math.abs(n)>C||Math.abs(n)>0&&N>0)x.setValues(Y,k),v++,P[v].assign(x),Math.abs(n)<=C?(N--,f[v-1]=N,f[v]=N):(N=f[v-1],f[v]=N);else{if(v<=0)break;S.assign(x),v--,x.assign(P[v]),N=f[v]}}}return D+=M.getResult(),Math.abs(D)}catch(e){s.error=e,s.hasError=!0}finally{(0,c.c)(s)}}executeClippedPolygonGreatEllipticArea(e){const t=[],n=[],s=new o.P,i=new o.P,a=(0,r.w)(1,this.m_eSquared,new o.P(0,.5*Math.PI)),m=new o.K(0),u=new o.K(0),c=new o.K(0),l=new h.d,g=new h.d,p=new _.Envelope2D;e.queryLooseEnvelope(p);let d=0;p.containsCoords(p.xmin,0)||(d=Math.abs(p.ymin)<Math.abs(p.ymax)?p.ymin:p.ymax);const y=new v(this.m_eSquared,l,g,d),P=this.m_a*this.m_a,f=e.getImpl().querySegmentIterator();for(f.stripAttributes();f.nextPath();)for(;f.hasNextSegment();){const e=f.nextSegment();s.assign(e.getStartXY()),i.assign(e.getEndXY()),i.x-s.x>Math.PI?s.x+=2*Math.PI:i.x-s.x<-Math.PI&&(i.x+=2*Math.PI),this.splitSegmentCrossingItegralThreshold(e,t,n);for(let e of t)l.assign((0,r.w)(this.m_a,this.m_eSquared,e.getStartXY())),g.assign((0,r.w)(this.m_a,this.m_eSquared,e.getEndXY())),y.setSegmentEndPoints(l,g),this.adaptiveIntegrationWithRomberg(y,m);for(let e of n){let t=e.getStartXY(),n=e.getEndXY(),s=d;t.y<0&&(n=(0,o.c)(t,t=n),t.y=-t.y,n.y=-n.y,s=-s);const i=(0,r.w)(1,this.m_eSquared,t),_=(0,r.w)(1,this.m_eSquared,n),m=Math.min(t.y,n.y),l=(0,r.az)(this.m_eSquared,t.x,n.x,s,m);u.pe(l);const g=Math.abs((0,r.az)(this.m_eSquared,t.x,n.x,m,o.o)),p=new h.d;p.setSub(i,a);const y=new h.d;y.setSub(_,a);const f=new h.d;f.setCrossProductVector(p,y);let E=P*(g-.5*f.length());E=(0,o.f)(E,n.x-t.x),c.pe(E)}t.length=0,n.length=0}return c.getResult()+P*(.5*(1-this.m_eSquared)*m.getResult()+u.getResult())}getEqualAreaPCSInstance(e,t){const n=t.getCenterX();let s,i;const a=t.height();let _,h;(_=t.ymin>45*Math.PI/180||t.ymax<45*-Math.PI/180)?s=(0,o.f)(.5*Math.PI,t.getCenterY()):(s=t.getCenterY(),i=t.ymin+a*(2/3));const m=(0,r.aw)("EqualAreaPCS"),u=e.toString();return h=_?r.ax.fromString(r.a9.PE_TYPE_PROJCS,`PROJCS["${m}", ${u}, PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing", 0],PARAMETER["Central_Meridian", ${n}], PARAMETER["Latitude_of_Origin", ${s}], UNIT["Meter",1.0]]`):r.ax.fromString(r.a9.PE_TYPE_PROJCS,`PROJCS["${m}", ${u}, PROJECTION["Cylindrical_Equal_Area"],PARAMETER["False_Easting", 0],PARAMETER["False_Northing", 0],PARAMETER["Central_Meridian", ${n}],PARAMETER["Standard_Parallel_1", ${i}],PARAMETER["Latitude_of_Origin", ${s}],UNIT["Meter",1.0]]`),h}splitSegmentCrossingItegralThreshold(e,t,n){const s=100,a=400,_=(0,r.w)(this.m_a,this.m_eSquared,new o.P(0,o.o)),m=(0,r.w)(this.m_a,this.m_eSquared,new o.P(0,-o.o)),u=this.splitSegmentPassingThroughPole(e);for(let e of u){const u=e.getStartXY(),c=e.getEndXY(),l=(0,r.w)(this.m_a,this.m_eSquared,u),g=(0,r.w)(this.m_a,this.m_eSquared,c),p=new o.P,d=new h.d;let y=h.d.sqrDistance(_,l),P=h.d.sqrDistance(l,g);if(y<=s){if(!(P>a)){n.push(new i.L({start:u,end:c}));continue}d.assign(g.sub(l)),d.normalizeThis(),d.assign(l.add(d.mul(20))),p.assign((0,r.y)(this.m_a,this.m_eSquared,d)),n.push(new i.L({start:u,end:p})),u.assign(p)}if(l.assign((0,r.w)(this.m_a,this.m_eSquared,u)),y=h.d.sqrDistance(_,g),P=h.d.sqrDistance(l,g),y<=s){if(!(P>a)){n.push(new i.L({start:u,end:c}));continue}d.assign(g.sub(l)),d.normalizeThis(),d.assign(g.sub(d.mul(20))),p.assign((0,r.y)(this.m_a,this.m_eSquared,d)),n.push(new i.L({start:p,end:c})),c.assign(p)}if(l.assign((0,r.w)(this.m_a,this.m_eSquared,u)),g.assign((0,r.w)(this.m_a,this.m_eSquared,c)),y=h.d.sqrDistance(m,l),P=h.d.sqrDistance(l,g),y<=s){if(!(P>a)){n.push(new i.L({start:u,end:c}));continue}d.assign(g.sub(l)),d.normalizeThis(),d.assign(l.add(d.mul(20))),p.assign((0,r.y)(this.m_a,this.m_eSquared,d)),n.push(new i.L({start:u,end:p})),u.assign(p)}if(l.assign((0,r.w)(this.m_a,this.m_eSquared,u)),g.assign((0,r.w)(this.m_a,this.m_eSquared,c)),y=h.d.sqrDistance(m,g),P=h.d.sqrDistance(l,g),y<=s){if(!(P>a)){n.push(new i.L({start:u,end:c}));continue}d.assign(g.sub(l)),d.normalizeThis(),d.assign(g.sub(d.mul(20))),p.assign((0,r.y)(this.m_a,this.m_eSquared,d)),n.push(new i.L({start:p,end:c})),c.assign(p)}t.push(new i.L({start:u,end:c}))}}splitSegmentPassingThroughPole(e){const t={stack:[],error:void 0,hasError:!1};try{const n=[],s=new h.d,a=new h.d,_=new h.d,m=new o.P,u=20,l=3.124139361,p=10,d=e.getStartXY(),y=e.getEndXY(),P=(0,c.b)(t,new r.P,!1);if(r.z.geodeticDistance(this.m_a,this.m_eSquared,d.x,d.y,y.x,y.y,P,null,null,2),Math.abs(y.x-d.x)>l&&P.val>u){const e=new g(new o.P(0,90),d.divide(this.m_rpu),y.divide(this.m_rpu),this.m_inputGCS,2,2);let t=(0,r.E)(e.makeFunctor(),0,1,1e-10);if(t.second<=p&&t.first>0&&t.first<1)return s.assign((0,r.w)(this.m_a,this.m_eSquared,d)),a.assign((0,r.w)(this.m_a,this.m_eSquared,y)),(0,o.x)(s,a,t.first,_),m.assign((0,r.y)(this.m_a,this.m_eSquared,_)),n.push(new i.L({start:d,end:m})),n.push(new i.L({start:m,end:y})),n;if(e.setPointDistFrom(new o.P(0,-90)),t=(0,r.E)(e.makeFunctor(),0,1,1e-10),t.second<=p&&t.first>0&&t.first<1)return s.assign((0,r.w)(this.m_a,this.m_eSquared,d)),a.assign((0,r.w)(this.m_a,this.m_eSquared,y)),(0,o.x)(s,a,t.first,_),m.assign((0,r.y)(this.m_a,this.m_eSquared,_)),n.push(new i.L({start:d,end:m})),n.push(new i.L({start:m,end:y})),n}return n.push(new i.L({start:d,end:y})),n}catch(e){t.error=e,t.hasError=!0}finally{(0,c.c)(t)}}adaptiveIntegrationWithRomberg(e,t){const n=e.makeFunctor();let s=0,a=1,r=n(s),o=n(a);const _=1e-17,h=1e-14;let m=(s+a)/2,u=n(m),c=Math.abs(u-r),l=Math.abs(o-u),g=0;for(;g++<32&&(c/l<.1||l/c<.1);)c<l?(t.pe((0,i.x)(5,s,m,h,_,n)),s=m,r=u):(t.pe((0,i.x)(5,m,a,h,_,n)),a=m,o=u),m=(s+a)/2,u=Math.abs(n(m)),c=Math.abs(u-r),l=Math.abs(o-u);t.pe((0,i.x)(5,s,a,h,_,n))}loxodromeAreaHemi(e,t,n,s,i){const a=n.clone(),r=i.clone();let _,h,m,u,c,l,g,p,d,y,P,f,E,S,x,v;return a.make_negative&&a.changeSign(),r.make_negative&&r.changeSign(),P=s-t,1===Math.abs(a.sin_phi)||1===Math.abs(r.sin_phi)?e.half_qp*P:a.sin_phi===r.sin_phi?(y=.5*e.one_m_e_2*a.sin_phi*(1/a.one_m_e_2_sin_2_phi+(0,o.y)(e.e*a.sin_phi))*P,y):(x=Math.log(r.sin_half_phi_pf*a.sin_half_phi_pz/(r.sin_half_phi_pz*a.sin_half_phi_pf)),v=Math.log(r.sin_half_asin_e_sin_phi_pf*a.sin_half_asin_e_sin_phi_pz/(r.sin_half_asin_e_sin_phi_pz*a.sin_half_asin_e_sin_phi_pf)),1===this.m_eSquared?(c=0,_=.5*(x+r.sin_phi/r.one_m_e_2_sin_2_phi-a.sin_phi/a.one_m_e_2_sin_2_phi),h=0):(c=-2*e.atanh_e_over_e*(Math.log(r.one_p_sin_phi/a.one_p_sin_phi)-e.e*v),_=(x-e.e*v)/e.one_m_e_2,h=(Math.log(r.one_m_e_2_sin_2_phi/a.one_m_e_2_sin_2_phi)+c/e.atanh_e_over_e)/e.one_m_e_2),m=-v*(a.atanh_esin_phi+r.atanh_esin_phi),u=1/a.one_m_e_2_sin_2_phi-1/r.one_m_e_2_sin_2_phi,l=(0,o.z)(r.one_m_sin_phi/e.one_p_e,e.e)-(0,o.z)(a.one_m_sin_phi/e.one_p_e,e.e),g=(0,o.z)(r.one_p_sin_phi/e.one_p_e,e.e)-(0,o.z)(a.one_p_sin_phi/e.one_p_e,e.e),p=(0,o.z)(a.one_m_sin_phi/-e.one_m_e,e.e)-(0,o.z)(r.one_m_sin_phi/-e.one_m_e,e.e),d=(0,o.z)(a.one_p_sin_phi/-e.one_m_e,e.e)-(0,o.z)(r.one_p_sin_phi/-e.one_m_e,e.e),y=.25/_*(h+m+u+c+.5*(l+g+p+d)),y+=e.half_qp,f=.5*e.one_m_e_2*a.sin_phi*(1/a.one_m_e_2_sin_2_phi+(0,o.y)(e.e*a.sin_phi)),E=.5*e.one_m_e_2*r.sin_phi*(1/r.one_m_e_2_sin_2_phi+(0,o.y)(e.e*r.sin_phi)),E<f&&(S=f,f=E,E=S),y<f&&(y=f),y>E&&(y=E),y*=P,y)}loxodromeArea(e){const t=Math.PI/180;let n=0;const s={e:Number.NaN,one_p_e:Number.NaN,one_m_e:Number.NaN,one_m_e_2:Number.NaN,atanh_e_over_e:Number.NaN,half_qp:Number.NaN,f:Number.NaN,z:Number.NaN},i=N(),a=N();s.e=Math.sqrt(this.m_eSquared),s.one_p_e=1+s.e,s.one_m_e=1-s.e,s.one_m_e_2=1-this.m_eSquared,s.atanh_e_over_e=(0,o.y)(s.e),this.m_eSquared>=1?s.half_qp=1:s.half_qp=.5*(1+s.atanh_e_over_e*s.one_m_e_2),s.f=.25*Math.PI,s.z=.75*Math.PI,a.initialize(0,s.e,s.f,s.z);const r=e.getPathCount(),_=new o.P,h=new o.P,m=e.getImpl().getAttributeStreamRef(0);for(let o=0;o<r;o++){const r=e.getPathStart(o),u=e.getPathEnd(o);if(!(u-r<=1)){m.queryPoint2D(2*(u-1),_);for(let e=r;e<u;e++){m.queryPoint2D(2*e,h);const o=_.y*t,u=h.y*t;if(e===r?(i.initialize(o,s.e,s.f,s.z),i.make_negative=!1):i.assign(a),a.initialize(u,s.e,s.f,s.z),a.make_negative=!1,_.y*h.y<0){if(_.y>=90&&h.y<=-90||h.y>=90&&_.y<=-90)return Number.NaN;const e=N();e.initialize(0,s.e,s.f,s.z),e.make_negative=!1;const r=i.atanh_sin_phi-s.e*i.atanh_esin_phi,m=a.atanh_sin_phi-s.e*a.atanh_esin_phi,u=(m*_.x-r*h.x)/(m-r);o<0?(i.make_negative=!0,n-=this.loxodromeAreaHemi(s,_.x*t,i,u*t,e),i.make_negative=!1,n+=this.loxodromeAreaHemi(s,u*t,e,h.x*t,a)):(n+=this.loxodromeAreaHemi(s,_.x*t,i,u*t,e),a.make_negative=!0,n-=this.loxodromeAreaHemi(s,u*t,e,h.x*t,a),a.make_negative=!1)}else _.y>=0?n+=this.loxodromeAreaHemi(s,_.x*t,i,h.x*t,a):(i.make_negative=!0,a.make_negative=!0,n-=this.loxodromeAreaHemi(s,_.x*t,i,h.x*t,a),i.make_negative=!1,a.make_negative=!1);_.assign(h)}}}return this.m_a*n*this.m_a}calculate(e){if(e.isEmpty()||e.getDimension()<2)return 0;if(e.getGeometryType()===s.G.enumEnvelope){const t=new i.a;return t.addEnvelope(e,!1),this.calculate(t)}return this.m_inputSR!==this.m_inputGCS&&null===this.m_transformPCS2GCS&&(this.m_transformPCS2GCS=(0,r.B)(this.m_inputSR,this.m_inputGCS,null)),this.executePolygonGeodeticArea(e)}}class T{getOperatorType(){return 10311}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n,i){return(0,s.c)(e),4===n?(new f).execute(e,t,i):new C(t,n,i).calculate(e)}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[847,1088,6061],{26640:(e,t,n)=>{n.d(t,{D:()=>f,m:()=>m,s:()=>y,w:()=>d});var s=n(90237),i=n(55537),a=n(88885),r=n(12189),o=n(83661),_=n(79187),h=n(95213);function m(){return{outPoint:new o.P,index:-1,t:Number.NaN}}function u(e,t,n){return{outPoint:e.clone(),index:t,t:n}}function c(e,t,n,s){e.outPoint.assign(t),e.index=n,e.t=s}function l(e,t){e.outPoint.assign(t.outPoint),e.index=t.index,e.t=t.t}function g(e,t,n,s){e.index=n,e.t=s,t.queryCoord2D(e.t,e.outPoint)}function p(e,t){const n=m();l(n,e),l(e,t),l(t,n)}function d(e,t,n,s,a,o){if(e.getGeometryType()===i.G.enumPolygon){for(;s.nextPath();)if(s.hasNextSegment()){const t=s.nextSegment();if(0!==(0,r.h)(e,t.getEndXY(),0))return c(a,t.getEndXY(),-1,Number.NaN),c(o,t.getEndXY(),-1,Number.NaN),!0}s.resetToFirstPath()}if(t.getGeometryType()===i.G.enumPolygon){for(;n.nextPath();)if(n.hasNextSegment()){const e=n.nextSegment();if(0!==(0,r.h)(t,e.getEndXY(),0))return c(a,e.getEndXY(),-1,Number.NaN),c(o,e.getEndXY(),-1,Number.NaN),!0}n.resetToFirstPath()}return!1}function y(e){const t=e.getPathCount(),n=(0,o.d)(e.getSegmentCount(),0);let s=0;for(let i=0;i<t;++i){const t=s+e.getSegmentCountPath(i);for(let a=s,r=e.getPathStart(i);a<t;++a,++r)n[a]=r;s=t}return(0,a.s)(e.getPointCount(),n),n}function P(e,t){return!!Number.isNaN(t)||e<=t}function E(e){const t=new a.a;return t.addEnvelope(e,!1),t}class f{constructor(e,t){if(this.m_env2DgeometryA=null,this.m_env2DgeometryB=null,this.m_progressCounter=0,this.m_progressTracker=t,this.m_maxSqrDistance=e*e,this.m_maxDistance=e,this.m_bIsNearCalc=!1,Number.isNaN(this.m_maxDistance)?this.m_maxDistance=Number.POSITIVE_INFINITY:this.m_maxDistance=e,this.m_maxSqrDistance=this.m_maxDistance*this.m_maxDistance,Number.isFinite(this.m_maxSqrDistance)){let e=Math.sqrt(this.m_maxSqrDistance);for(;e<this.m_maxDistance;)this.m_maxSqrDistance*=1+Number.EPSILON,e=Math.sqrt(this.m_maxSqrDistance)}}calculate(e,t,n,s){if((e.getGeometryType()!==h.P.type||t.getGeometryType()!==h.P.type)&&(this.m_env2DgeometryA=new _.Envelope2D,this.m_env2DgeometryB=new _.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!P(this.m_env2DgeometryA.distanceFromEnvelope(this.m_env2DgeometryB),this.m_maxDistance)))return Number.POSITIVE_INFINITY;const i=u(new o.P,(0,o.j)(),Number.NaN),a=u(new o.P,(0,o.j)(),Number.NaN),r=this._ExecuteBruteForce(e,t,i,a);return P(r,this.m_maxDistance)?(null!==n&&l(n,i),null!==s&&l(s,a),r):Number.POSITIVE_INFINITY}isNear(e,t){if(this.m_bIsNearCalc=!0,e.isEmpty()||t.isEmpty())return!1;if(e===t)return!0;let n=!0;if(e.getGeometryType()!==h.P.type&&e.getGeometryType()!==h.E.type||t.getGeometryType()!==h.P.type&&t.getGeometryType()!==h.E.type||(n=!1),n){if(this.m_env2DgeometryA=new _.Envelope2D,this.m_env2DgeometryB=new _.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!(this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)>this.m_maxSqrDistance))return!0;if(this.m_env2DgeometryA.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>this.m_maxSqrDistance)return!1}const s=u(new o.P,(0,o.j)(),Number.NaN),i=u(new o.P,(0,o.j)(),Number.NaN);return this._ExecuteBruteForce(e,t,s,i)<=this.m_maxDistance}progress_(e=!1){}_ExecuteBruteForce(e,t,n,s){switch(e.getGeometryType()){case i.G.enumPoint:return this.distancePointGeometry(e,t,n,s);case i.G.enumMultiPoint:return this.distanceMultipointGeometry(e,t,n,s);case i.G.enumEnvelope:return this.distanceEnvelopeGeometry(e,t,n,s);case i.G.enumPolyline:case i.G.enumPolygon:return this.distanceMultipathGeometry(e,t,n,s);default:return Number.NaN}}distancePointGeometry(e,t,n,s){switch(t.getGeometryType()){case i.G.enumPoint:return this.distancePointPoint(e,t,n,s);case i.G.enumMultiPoint:return this.distancePointMultipoint(e,t,n,s);case i.G.enumPolyline:case i.G.enumPolygon:return this.distancePointMultipath(e,t,n,s);case i.G.enumEnvelope:return this.distancePointEnvelope(e,t,n,s);default:return Number.NaN}}distancePointPoint(e,t,n,s){const i=e.getXY(),a=t.getXY();return c(n,i,0,0),c(s,a,0,0),Math.sqrt(o.P.sqrDistance(i,a))}distancePointMultipoint(e,t,n,s){const i=e.getXY();let a=this.m_maxSqrDistance,r=a,_=!1;const h=t.getPointCount(),m=new o.P;for(let e=0;e<h;++e)if(t.queryXY(e,m),r=o.P.sqrDistance(i,m),this.m_bIsNearCalc){if(r<=a)return 0}else if(!(r>a)&&(!_&&r===a||r<a)&&(a=r,c(n,i,0,0),c(s,m,e,0),_=!0,0===a))return 0;return _?Math.sqrt(a):Number.POSITIVE_INFINITY}distancePointMultipath(e,t,n,s){const a=!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB),h=e.getXY();if(!a&&t.getGeometryType()===i.G.enumPolygon&&0!==(0,r.h)(t,h,0))return c(n,h,0,0),c(s,h,-1,Number.NaN),0;t.getImpl().getAccelerators();let m=this.m_maxSqrDistance,u=m,l=-1;const g=new _.Envelope2D,p=t.querySegmentIterator();let d=!1;for(;p.nextPath();)for(;p.hasNextSegment();){const e=p.nextSegment();e.queryEnvelope(g);const t=g.sqrDistance(h);if(t>m)continue;if(!this.m_bIsNearCalc&&d&&t===m)continue;l=e.getClosestCoordinate(h,!1);const i=e.getCoord2D(l);if(u=o.P.sqrDistance(h,i),this.m_bIsNearCalc){if(u<=m)return 0}else if(!(u>m)&&(!d||u<m)&&(m=u,c(n,h,0,0),c(s,i,p.getStartPointIndex(),l),d=!0,0===m))return 0}return d?Math.sqrt(m):Number.POSITIVE_INFINITY}distancePointEnvelope(e,t,n,s){const i=e.getXY();c(n,i,0,0),c(s,i,-1,Number.NaN);const a=t.asEnvelope2D();return a.contains(i)?0:Math.sqrt(a.sqrDistance(i,s.outPoint))}distanceMultipointGeometry(e,t,n,s){switch(t.getGeometryType()){case i.G.enumPoint:{this.m_env2DgeometryB=(0,o.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const i=this.distancePointMultipoint(t,e,s,n);return this.m_env2DgeometryB=(0,o.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),i}case i.G.enumMultiPoint:return this.distanceMultipointMultipoint(e,t,n,s,1,1);case i.G.enumPolyline:case i.G.enumPolygon:return this.distanceMultipointMultipath(e,t,n,s);case i.G.enumEnvelope:return this.distanceMultipointMultipath(e,E(t),n,s);default:return Number.NaN}}distanceMultipointMultipoint(e,t,n,i,a,r){const _={stack:[],error:void 0,hasError:!1};try{if(this.m_bIsNearCalc&&1===a&&1===r){const s=Math.trunc((0,o.s)(Math.sqrt(e.getPointCount())+1,1,(0,o.i)())),a=Math.trunc((0,o.s)(Math.sqrt(t.getPointCount())+1,1,(0,o.i)()));if((s>=4||a>=4)&&this.distanceMultipointMultipoint(e,t,n,i,s,a)<=this.m_maxSqrDistance)return 0}let h=this.m_maxSqrDistance;const m=[e],u=[t],l=this.swapGeometriesIfBGtA(m,u);l&&(this.m_env2DgeometryB=(0,o.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),r=(0,o.c)(a,a=r),p(n,i)),(0,s.b)(_,(0,o.h)((()=>{p(n,i),this.m_env2DgeometryB=(0,o.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)}),!l),!1);const g=m[0].getImpl(),d=u[0].getImpl(),y=g.getPointCount(),P=d.getPointCount(),E=P>1;let f=!1;const S=new o.P,x=new o.P;for(let e=0;e<y;e+=a){if(g.queryXY(e,S),E){const e=this.m_env2DgeometryB.sqrDistance(S);if(this.m_bIsNearCalc){if(e>h)continue;if(this.m_env2DgeometryB.sqrMaxMinDistance(S)<=h)return 0}else if(e>=h)continue}for(let t=0;t<P;t+=r){d.queryXY(t,x);const s=o.P.sqrDistance(S,x);if(this.m_bIsNearCalc){if(s<=h)return 0}else if(!(s>h||f&&s===h)&&(!f||s<h)&&(c(n,S,e,0),c(i,x,t,0),f=!0,h=s,0===h))return f?Math.sqrt(h):Number.POSITIVE_INFINITY}}return f?Math.sqrt(h):Number.POSITIVE_INFINITY}catch(e){_.error=e,_.hasError=!0}finally{(0,s.c)(_)}}distanceMultipointMultipath(e,t,n,s){let a=!!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)&&t.getGeometryType()===i.G.enumPolygon;const h=t.querySegmentIterator();h.stripAttributes();const m=new _.Envelope2D,u=new o.P;let l=this.m_maxSqrDistance;const g=e.getImpl(),p=g.getPointCount(),d=p>1;let y=!1;for(;h.nextPath();)for(;h.hasNextSegment();){const e=h.nextSegment();if(e.queryLooseEnvelope(m),d){const e=m.sqrDistanceEnvelope(this.m_env2DgeometryA,null,null);if(this.m_bIsNearCalc){if(e>l)continue}else if(e>l||y&&e===l)continue}for(let i=0;i<p;i++){if(g.queryXY(i,u),a&&0!==(0,r.h)(t,u,0))return c(n,u,-1,Number.NaN),c(s,u,i,0),0;{const e=m.sqrDistance(u);if(this.m_bIsNearCalc){if(e>l)continue}else if(e>l)continue}const o=e.getClosestCoordinate(u,!1),_=e.getCoord2D(o);u.subThis(_);const p=u.sqrLength();if(this.m_bIsNearCalc){if(p<=l)return 0}else if(!(p>l)&&(!y||p<l)&&(l=p,c(n,g.getXY(i),i,0),c(s,_,h.getStartPointIndex(),o),y=!0,0===l))return 0}a=!1}return y?Math.sqrt(l):Number.POSITIVE_INFINITY}distanceEnvelopeGeometry(e,t,n,s){switch(t.getGeometryType()){case i.G.enumPoint:return this.distancePointEnvelope(t,e,s,n);case i.G.enumMultiPoint:{this.m_env2DgeometryB=(0,o.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const i=this.distanceMultipointMultipath(t,E(e),s,n);return this.m_env2DgeometryB=(0,o.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),i}case i.G.enumPolyline:case i.G.enumPolygon:return this.distanceMultipathMultipath(E(e),t,n,s);case i.G.enumEnvelope:return this.distanceEnvelopeEnvelope(e,t,n,s);default:return Number.NaN}}distanceEnvelopeEnvelope(e,t,n,s){n.t=Number.NaN,n.index=-1,s.t=Number.NaN,s.index=-1;const i=e.asEnvelope2D(),a=t.asEnvelope2D();return Math.sqrt(i.sqrDistanceEnvelope(a,n.outPoint,s.outPoint))}distanceMultipathGeometry(e,t,n,s){switch(t.getGeometryType()){case i.G.enumPoint:{this.m_env2DgeometryB=(0,o.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const i=this.distancePointMultipath(t,e,s,n);return this.m_env2DgeometryB=(0,o.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),i}case i.G.enumMultiPoint:{this.m_env2DgeometryB=(0,o.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const i=this.distanceMultipointMultipath(t,e,s,n);return this.m_env2DgeometryB=(0,o.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),i}case i.G.enumPolyline:case i.G.enumPolygon:return this.distanceMultipathMultipath(e,t,n,s);case i.G.enumEnvelope:return this.distanceMultipathMultipath(e,E(t),n,s);default:return Number.NaN}}distanceMultipathMultipath(e,t,n,i){const r={stack:[],error:void 0,hasError:!1};try{const h=[e],u=[t],c=this.swapGeometriesIfAGtB(h,u);c&&(this.m_env2DgeometryB=(0,o.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),p(n,i)),(0,s.b)(r,(0,o.h)((()=>{p(n,i),this.m_env2DgeometryB=(0,o.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)}),!c),!1);const P=h[0],E=u[0],f=P.querySegmentIterator();f.stripAttributes();const S=E.querySegmentIterator();if(S.stripAttributes(),this.m_bIsNearCalc&&this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)<=this.m_maxSqrDistance)return 0;if(this.m_bIsNearCalc){const e=Math.trunc((0,o.s)(Math.sqrt(P.getPointCount())+1,1,(0,o.i)())),t=Math.trunc((0,o.s)(Math.sqrt(P.getPointCount())+1,1,(0,o.i)()));if(this.distanceMultipointMultipoint(P,E,n,i,e,t)<=this.m_maxSqrDistance)return 0}if(this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)){const e=m(),t=m();if(d(P,E,f,S,e,t))return l(n,e),l(i,t),0}const x=y(P),v=[],N=new a.S,D=new _.Envelope2D,A=new _.Envelope2D,M=new _.Envelope2D;let C=this.m_maxSqrDistance,T=!0,q=!1;for(let e=0,t=x.length;e<t;++e){P.querySegment(x[e],N,!0);const t=N.get();if(t.queryEnvelope(D),!(D.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>C)){if(this.m_bIsNearCalc&&D.sqrMaxDistanceEnvelope(this.m_env2DgeometryB)<=C)return 0;for(;S.nextPath();){if(this.progress_(),T)E.queryPathEnvelope(S.getPathIndex(),M),v[S.getPathIndex()]=M.clone();else if(D.sqrDistanceEnvelope(v[S.getPathIndex()],null,null)>C)continue;for(;S.hasNextSegment();){const s=S.nextSegment();if(s.queryEnvelope(A),D.sqrDistanceEnvelope(A,null,null)<=C){const a=!D.isIntersecting(A),r=[0],o=[0];let _=t.distance(s,a,r,o);if(_*=_,this.m_bIsNearCalc&&_<=this.m_maxSqrDistance)return 0;if(_<C||_===C&&x[e]<n.index){if(q=!0,g(n,t,x[e],r[0]),g(i,s,S.getStartPointIndex(),o[0]),0===_)return 0;C=_}}}}S.resetToFirstPath(),T=!1}}return q?Math.sqrt(C):Number.POSITIVE_INFINITY}catch(e){r.error=e,r.hasError=!0}finally{(0,s.c)(r)}}swapGeometriesIfAGtB(e,t){return(0,i.v)(e[0])>(0,i.v)(t[0])&&(t[0]=(0,o.c)(e[0],e[0]=t[0]),!0)}swapGeometriesIfBGtA(e,t){return this.swapGeometriesIfAGtB(t,e)}}},31088:(e,t,n)=>{n.r(t),n.d(t,{OperatorGeodeticDensifyByLength:()=>r,OperatorGeodeticDensifyCursor:()=>o});var s=n(76061),i=n(55537),a=n(12189);class r{getOperatorType(){return 10310}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,s,i){return new o(e,n,s,t,-1,-1,i)}execute(e,t,n,a,r){const o=new s.S([e]),_=this.executeMany(o,t,n,a,r).next();return _||(0,i.d)("null output"),_}}class o extends s.G{constructor(e,t,n,s,a,r,o){super(),this.m_progressTracker=o,r>0&&(0,i.t)(""),4!==n&&a>0&&(0,i.t)(""),t||(0,i.a)(""),0===t.getCoordinateSystemType()&&(0,i.a)(""),s>0||a>0||(0,i.a)(""),this.m_index=-1,this.m_inputGeoms=e,this.m_spatialReference=t,this.m_curveType=n,this.m_maxLengthMeters=s,this.m_maxDeviationMeters=a,this.m_maxAngle=r}next(){{let e;for(;e=this.m_inputGeoms.next();)return(0,i.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.geodeticDensify(e);return null}}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}geodeticDensify(e){return(0,a.N)(e,this.m_spatialReference,this.m_curveType,this.m_maxLengthMeters,this.m_maxDeviationMeters,this.m_progressTracker)}}},47591:(e,t,n)=>{n.d(t,{O:()=>p});var s=n(55537),i=n(12189),a=n(88885),r=n(83661),o=n(95213),_=n(79187),h=n(5247),m=n(31139);function u(){return{m_pGcs:new r.P,m_xyz:new o.d,m_factor:Number.NaN,m_geoLength:Number.NaN,setValues:c,setLength:l,assign:g}}function c(e,t,n,s){this.m_factor=e,this.m_pGcs.assign(t),this.m_xyz.assign(s),this.m_geoLength=n}function l(e){this.m_geoLength=e}function g(e){this.m_pGcs.assign(e.m_pGcs),this.m_xyz.assign(e.m_xyz),this.m_factor=e.m_factor,this.m_geoLength=e.m_geoLength}class p{getOperatorType(){return 10315}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}_ExecuteShapePreservingLength(e,t,n,s,a){if(e.hasNonLinearSegments()&&(e=(new h.O).execute(e,0,t.getTolerance(0),0,a)),t.isPannable()){let s=90,r=-90;if(1===n.getUnit().getUnitToBaseFactor()&&(s*=Math.PI/180,r*=Math.PI/180),2===t.getCoordinateSystemType()){let e=null;const n=[0,0,0,0];e=t.getPECoordSys(),n[0]=0,n[1]=s,n[2]=0,n[3]=r,i.B.geogToProj(e,2,n),s=n[1],r=n[3]}const o=new _.Envelope2D;e.queryEnvelope(o),o.ymin=r,o.ymax=s,e=(new m.O).execute(e,o,t,a)}else{const n=t.getPCSHorizon();if((e=(new i.g).execute(e,n,t,a))===n){const t=e.clone();e=t}}return e.isEmpty()?0:this._ExecuteIterativeApproach(e,t,n,s,1,a)}_ExecuteIterativeApproach(e,t,n,a,_,h){const m=(0,i.v)();n.querySpheroidData(m);const c=m.majorSemiAxis,l=m.e2,g=n.getUnit().getUnitToBaseFactor(),p=(0,r.k)(u,40),P=(0,r.d)(40,Number.NaN),E=u(),f=u();let S;const x=[0,0,0,0],v=t.getPECoordSys(),N=new r.P,D=new r.P,A=new r.P,M=new r.P,C=new r.P;let T=0;const q=e.querySegmentIterator();for(;q.nextPath();)for(;q.hasNextSegment();){const e=q.nextSegment();N.assign(e.getStartXY()),D.assign(e.getEndXY()),2===t.getCoordinateSystemType()?(x[0]=N.x,x[1]=N.y,x[2]=D.x,x[3]=D.y,i.B.projToGeog(v,2,x),A.x=x[0]*g,A.y=x[1]*g,M.x=x[2]*g,M.y=x[3]*g):(A.setCoordsPoint2D(N),M.setCoordsPoint2D(D),A.scale(g),M.scale(g));const n=new o.d,a=new o.d;d(c,l,A,n),d(c,l,M,a);let r=y(c,n,a);E.setValues(0,A,Number.NaN,n),f.setValues(1,M,r,a),S=_,p[0].assign(f),P[0]=_;let h=0;for(;;){h>128&&(0,s.d)("iterations exceeded");const n=.5*(E.m_factor+f.m_factor),a=e.getCoord2D(n);2===t.getCoordinateSystemType()?(x[0]=a.x,x[1]=a.y,i.B.projToGeog(v,1,x),C.x=x[0]*g,C.y=x[1]*g):(C.setCoordsPoint2D(a),C.scale(g)),A.setCoordsPoint2D(E.m_pGcs),M.setCoordsPoint2D(f.m_pGcs);const m=new o.d;d(c,l,C,m);const u=y(c,E.m_xyz,m),N=y(c,f.m_xyz,m);r=f.m_geoLength,Number.isNaN(r)&&(r=y(c,E.m_xyz,f.m_xyz));const D=u+N,q=S===_&&D>=20&&Math.abs(D-r)>1e-8*(r+D);if(h+2<40&&(q||Math.abs(D-r)>0&&S>0))f.setLength(N),p[h].assign(f),f.setValues(n,C,u,m),p[++h].assign(f),q?(S=_,P[h]=_):(S--,P[h-1]=S,P[h]=S);else{if(T+=D,0===h)break;E.assign(f),f.assign(p[--h]),S=P[h]}}}return T}execute(e,t,n){if(t&&0!==t.getCoordinateSystemType()||(0,s.a)(""),e.isEmpty()||e.getDimension()<1)return 0;let r=null;const o=t.getGCS();o!==t&&(r=(0,i.D)(t,o,null));const _=e.getGeometryType();if(_===s.G.enumEnvelope){const s=new a.a;return s.addEnvelope(e,!1),this._ExecuteShapePreservingLength(s,t,o,r,n)}if((0,s.f)(_)){const s=new a.P;return s.addSegment(e,!0),this._ExecuteShapePreservingLength(s,t,o,r,n)}return this._ExecuteShapePreservingLength(e,t,o,r,n)}}function d(e,t,n,s){s.assign((0,i.E)(e,t,n))}function y(e,t,n){const s=e,i=new o.d;i.setSub(t,n);const a=i.length();return 2*s*Math.asin(a/(2*s))}},76061:(e,t,n)=>{n.d(t,{G:()=>s,S:()=>i});class s{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class i extends s{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},80847:(e,t,n)=>{n.r(t),n.d(t,{OperatorGeodeticArea:()=>q});var s=n(55537),i=n(88885),a=n(5247),r=n(12189),o=n(83661),_=n(79187),h=n(95213),m=n(31139),u=n(47591),c=n(90237),l=n(11878);n(26640),n(76061),n(31088),Symbol.dispose;class g{constructor(e,t,n,s,i=0,a=4){this.m_ptDistFrom=new o.P,this.m_segStartPt=new o.P,this.m_segEndPt=new o.P,this.m_geodeticLength=new r.P,this.m_az12=new r.P,this.m_minGeodeticDist=new r.P,this.m_segStartPt3d=new h.d,this.m_segEndPt3d=new h.d,this.m_sr=s,this.m_distCurveType=i,this.m_segCurveType=a,this.m_inputGCS=this.m_sr.getGCS(),this.m_rpu=this.m_inputGCS.getUnit().getUnitToBaseFactor(),this.m_bIsPannablePcs=2===this.m_sr.getCoordinateSystemType()&&this.m_sr.isPannable();const _=(0,r.v)();this.m_inputGCS.querySpheroidData(_),this.m_a=_.majorSemiAxis,this.m_eSquared=_.e2,this.setPointDistFrom(e),this.setSegmentEndPoints(t,n)}setSegmentEndPoints(e,t){this.m_segStartPt.assign(e),this.m_segEndPt.assign(t),this.m_bIsPannablePcs||(this.m_segStartPt.mulThis(this.m_rpu),this.m_segEndPt.mulThis(this.m_rpu)),2===this.m_segCurveType&&(this.m_segStartPt3d.assign((0,r.E)(this.m_a,this.m_eSquared,this.m_segStartPt)),this.m_segEndPt3d.assign((0,r.E)(this.m_a,this.m_eSquared,this.m_segEndPt))),this.calculateAndUpdateSegmentLength()}setPointDistFrom(e){this.m_ptDistFrom.assign(e),this.m_ptDistFrom.scale(this.m_rpu)}setSegmentCurveType(e){this.m_segCurveType=e}setDistanceCurveType(e){this.m_distCurveType=e}makeFunctor(){return e=>{let t;switch(this.m_segCurveType){case 0:case 1:case 3:{const n={stack:[],error:void 0,hasError:!1};try{const s=(0,c.b)(n,new r.P,!1),i=(0,c.b)(n,new r.P,!1);r.A.geodeticCoordinate(this.m_a,this.m_eSquared,this.m_segStartPt.x,this.m_segStartPt.y,this.m_geodeticLength.val*e,this.m_az12.val,s,i,this.m_segCurveType),t=new o.P(s.val,i.val);break}catch(e){n.error=e,n.hasError=!0}finally{(0,c.c)(n)}}case 2:{const n=h.d.lerp(this.m_segStartPt3d,this.m_segEndPt3d,e);t=(0,r.G)(this.m_a,this.m_eSquared,n);break}case 4:t=o.P.lerp(this.m_segStartPt,this.m_segEndPt,e),this.m_bIsPannablePcs&&((0,r.F)(this.m_sr,0,[t],1),t.mulThis(this.m_rpu));break;default:(0,s.d)("Invalid curve type")}return r.A.geodeticDistance(this.m_a,this.m_eSquared,this.m_ptDistFrom.x,this.m_ptDistFrom.y,t.x,t.y,this.m_minGeodeticDist,null,null,this.m_distCurveType),this.m_minGeodeticDist.val}}calculateAndUpdateSegmentLength(){switch(this.m_segCurveType){case 0:case 2:case 1:case 3:r.A.geodeticDistance(this.m_a,this.m_eSquared,this.m_segStartPt.x,this.m_segStartPt.y,this.m_segEndPt.x,this.m_segEndPt.y,this.m_geodeticLength,this.m_az12,null,this.m_segCurveType);break;case 4:this.m_geodeticLength.val=o.P.distance(this.m_segStartPt,this.m_segEndPt);break;default:(0,s.d)("Invalid curve type")}}[Symbol.dispose](){this.m_geodeticLength[Symbol.dispose](),this.m_az12[Symbol.dispose](),this.m_minGeodeticDist[Symbol.dispose]()}}Symbol.dispose;class p{constructor(e,t,n,s,i=100){this.m_startPt=e.clone(),this.m_endPt=t.clone(),this.m_cE2=s,this.m_cE=Math.sqrt(this.m_cE2),this.m_c1By2e=1/(2*this.m_cE),this.m_cRpu=n.getGCS().getUnit().getUnitToBaseFactor(),this.isPcs=2===n.getCoordinateSystemType(),this.PEProjcs=n.getPECoordSys(),this.m_points=(0,o.d)(2*i,Number.NaN)}setSegmentEndPoints(e,t){this.m_startPt.assign(e),this.m_endPt.assign(t)}makeFunctor(){return e=>{const t=[0,0];t[0]=this.m_startPt.x*(1-e)+this.m_endPt.x*e,t[1]=this.m_startPt.y*(1-e)+this.m_endPt.y*e,this.isPcs&&r.B.projToGeogCenter(this.PEProjcs,1,t,0);const n=Math.sin(t[1]*this.m_cRpu);return 0===this.m_cE2?n:-Math.log((1-this.m_cE*n)/(1+this.m_cE*n))*this.m_c1By2e+n/(1-this.m_cE2*n*n)}}}function d(e,t,n,s,i){const o=(new a.O).execute(e,t,0,0,i);let h;h=s?(new r.z).execute(o,s,i):o;const m=1===n.getUnit().getUnitToBaseFactor()?Math.PI/180:1,u=new _.Envelope2D;h.queryEnvelope(u);const c=new _.Envelope2D,l=new _.Envelope2D,g=new _.Envelope2D;c.setCoords({xmin:u.xmin,ymin:75*m,xmax:u.xmax,ymax:90*m}),l.setCoords({xmin:u.xmin,ymin:-60*m,xmax:u.xmax,ymax:75*m}),g.setCoords({xmin:u.xmin,ymin:-90*m,xmax:u.xmax,ymax:-60*m}),c.inflateCoords(.01*c.width(),0),l.inflateCoords(.01*l.width(),0),g.inflateCoords(.01*g.width(),0);let p=0;return p+=y(h,c,n,i),p+=y(h,l,n,i),p+=y(h,g,n,i),p}function y(e,t,n,i){const a=(new m.O).execute(e,t,n,i);if(null!==a&&!a.isEmpty()){const e=new _.Envelope2D;a.queryEnvelope(e);const{first:t,second:h}=function(e,t){const n=function(e,t){const n=e.getUnit().getUnitToBaseFactor(),i=t.getCenter();i.scale(180*n/Math.PI);const a=new o.P;a.x=0,a.y=0;let _=0;if(0===_){i.y>45?(a.y=o.o,_=0):i.y<-45?(a.y=-o.o,_=1):i.x>=45&&i.x<135?(a.x=o.o,_=2):i.x>=135||i.x<-135?(a.x=o.o,_=3):i.x<-45&&i.x>=-135?(a.x=-o.o,_=4):(a.x=0,_=5);const e=n*Math.sqrt((0,o.a)(t.xmin-t.xmax)+(0,o.a)(t.ymin-t.ymax)),s=a.clone(),r=t.getCenter();if(r.scale(n),_<2&&(s.x=r.x),o.P.distance(s,r)+.5*e>o.o)return null}const h=P[_];if(null!==h&&h.getGCS().equalHorizontal(e))return h;const m=e.getText(),u=a.x,c=a.y;let l=0,g=-1;6!==_?g=r.a9.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA:((0,s.g)(false),l=0,g=r.a9.PE_PRJ_CYLINDRICAL_EQAREA);const p=(0,r.aw)("EqualAreaPCS");let d;g===r.a9.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA?d=`PROJCS["${p}",${m},PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${u}],PARAMETER["Latitude_of_Origin",${c}],UNIT["Meter",1.0]]`:g===r.a9.PE_PRJ_CYLINDRICAL_EQAREA?d=`PROJCS["${p}",${m},PROJECTION["Cylindrical_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${u}],PARAMETER["Standard_Parallel_1",${l}],PARAMETER["Latitude_of_Origin",${c}],UNIT["Meter",1.0]]`:(0,s.d)("getEqualAreaPcsFixed");const y=(0,r.a)(d);return P[_]&&P[_].destroy(),P[_]=y,y}(e,t);if(null!==n)return(0,o.l)(n,!1);const i=e.getText(),a=e.getUnit().getUnitToBaseFactor(),_=(t.xmin+t.width()/2)*a,h=(t.ymin+t.height()/2)*a;let m=0,u=0,c=-1;t.ymin*a>=75*Math.PI/180||t.ymax*a<=-60*Math.PI/180?c=r.a9.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA:t.ymin>0||t.ymax<0?(m=(t.ymin+1/3*t.height())*a,u=(t.ymin+2/3*t.height())*a,c=r.a9.PE_PRJ_ALBERS):(m=(t.ymin+2/3*t.height())*a,c=r.a9.PE_PRJ_CYLINDRICAL_EQAREA);const l=(0,r.aw)("EqualAreaPCS");let g;return c===r.a9.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA?g=`PROJCS["${l}",${i},PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${_}],PARAMETER["Latitude_of_Origin",${h}],UNIT["Meter",1.0]]`:c===r.a9.PE_PRJ_ALBERS?g=`PROJCS["${l}",${i},PROJECTION["Albers"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${_}],PARAMETER["Standard_Parallel_1",${m}],PARAMETER["Standard_Parallel_2",${u}],PARAMETER["Latitude_of_Origin",${h}],UNIT["Meter",1.0]]`:c===r.a9.PE_PRJ_CYLINDRICAL_EQAREA?g=`PROJCS["${l}",${i},PROJECTION["Cylindrical_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${_}],PARAMETER["Standard_Parallel_1",${m}],PARAMETER["Latitude_of_Origin",${h}],UNIT["Meter",1.0]]`:(0,s.d)("getEqualAreaPCSInstance"),(0,o.l)((0,r.a)(g),!0)}(n,e),m=(0,r.D)(n,t,null),u=(new r.z).execute(a,m,i).calculateArea2D();return h&&t.destroy(),u}return 0}const P=[null,null,null,null,null,null,null];class E{getOperatorType(){return 10314}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n){if(0===t.getCoordinateSystemType()&&(0,s.a)(""),e.isEmpty()||e.getDimension()<2)return 0;if((0,s.c)(e),e.getGeometryType()===s.G.enumEnvelope){const s=new i.a;return s.addEnvelope(e,!1),this.execute(s,t,n)}let c=e;e.getDescription().getAttributeCount()>1&&(c=e.clone(),c.dropAllAttributes());const l=(new a.O).execute(c,0,t.getTolerance(0),0,n);let g=null;const y=t.getGCS();y!==t&&(g=(0,r.D)(t,y));let P=(new r.O).execute(l,t,!1,n);return P.isEmpty()?0:(P===e&&(P=e.clone()),t.isPannable()?function(e,t,n){const s=new _.Envelope2D;e.queryEnvelope(s);const a=(0,h.c)(t,s,!0).total(),u=t.getPannableExtent();u.xmin=s.xmin-10*a,u.xmax=s.xmax+10*a;const c=(new m.O).execute(e,u,t,n).getImpl().querySegmentIterator();c.stripAttributes();const l=(0,r.v)();t.querySpheroidData(l);const g=l.e2,d=0===g?2:1,y=new o.P(0,0),P=new o.P(0,0),E=new o.K(0),f=new p(y,P,t,g,100);for(;c.nextPath();)for(;c.hasNextSegment();){const e=c.nextSegment();y.assign(e.getStartXY()),P.assign(e.getEndXY()),f.setSegmentEndPoints(y,P);const t=(0,i.x)(6,0,1,1e-12,1e-15,f.makeFunctor());E.pe((P.x-y.x)*t)}const S=l.majorSemiAxis;return d*S*S*(1-g)*Math.PI*E.getResult()/t.getPannableExtent().width()}(P,t,n):function(e,t,n,s,i){const a=function(e,t,n){const s=e.calculateLength2D(),i=(new u.O).execute(e,t,n)/25e3,a=s/e.getSegmentCount()*2;let r=Math.min(a,s/i);return 0===r&&(r=1),(0,o.l)(r,s/r)}(e,t,i);let r=d(e,a.first,n,s,i),_=1,h=0,m=0;do{if(_++,a.first*=.5,a.first<50*t.getTolerance(0))return r;a.second*=2,m=d(e,a.first,n,s,i),h=Math.abs(m-r),r=m}while(Math.abs(r)>1&&h>1e-8*Math.abs(r)&&(a.second<65e3&&_<8||_<4));return m}(P,t,y,g,n))}}function f(){return{m_p_PCS:new o.P,m_factor:Number.NaN,setValues:S,assign:x}}function S(e,t){this.m_factor=e,this.m_p_PCS.assign(t)}function x(e){this.m_factor=e.m_factor,this.m_p_PCS.assign(e.m_p_PCS)}class v{constructor(e,t,n,s){this.m_ptStart=new h.d,this.m_ptEnd=new h.d,this.m_ptStart.assign(t),this.m_ptEnd.assign(n),this.m_deltaX=this.m_ptEnd.x-this.m_ptStart.x,this.m_deltaY=this.m_ptEnd.y-this.m_ptStart.y,this.m_e=Math.sqrt(e),this.m_e2=e,this.m_c1MinusE2=1-e;const i=Math.sin(s);let a;a=0===this.m_e2?2*i:i*((0,o.y)(this.m_e*i)+1/(1-this.m_e2*i*i)),this.m_baseA=a}setSegmentEndPoints(e,t){this.m_ptStart.assign(e),this.m_ptEnd.assign(t),this.m_deltaX=this.m_ptEnd.x-this.m_ptStart.x,this.m_deltaY=this.m_ptEnd.y-this.m_ptStart.y}makeFunctor(){return e=>{const t=1-e,n=t*this.m_ptStart.x+e*this.m_ptEnd.x,s=t*this.m_ptStart.y+e*this.m_ptEnd.y,i=t*this.m_ptStart.z+e*this.m_ptEnd.z,a=n*n+s*s,r=i/Math.sqrt(i*i+this.m_c1MinusE2*this.m_c1MinusE2*a);let _;return _=0===this.m_e2?2*r:r*((0,o.y)(this.m_e*r)+1/(1-this.m_e2*r*r)),(this.m_deltaY*n-this.m_deltaX*s)/a*(_-this.m_baseA)}}}function N(){return{sin_phi:Number.NaN,one_p_sin_phi:Number.NaN,one_m_sin_phi:Number.NaN,one_m_e_2_sin_2_phi:Number.NaN,sin_half_phi_pf:Number.NaN,sin_half_phi_pz:Number.NaN,sin_half_asin_e_sin_phi_pf:Number.NaN,sin_half_asin_e_sin_phi_pz:Number.NaN,atanh_sin_phi:Number.NaN,atanh_esin_phi:Number.NaN,make_negative:!1,initialize:D,changeSign:A,assign:M,clone:C}}function D(e,t,n,s){const i=.5*e;this.sin_phi=Math.sin(e);const a=t*this.sin_phi,r=.5*Math.asin(a);this.one_p_sin_phi=1+this.sin_phi,this.one_m_sin_phi=1-this.sin_phi,this.one_m_e_2_sin_2_phi=(1+a)*(1-a),this.sin_half_phi_pf=Math.sin(i+n),this.sin_half_phi_pz=Math.sin(i+s),this.sin_half_asin_e_sin_phi_pf=Math.sin(r+n),this.sin_half_asin_e_sin_phi_pz=Math.sin(r+s),this.atanh_sin_phi=Math.log(this.sin_half_phi_pf/this.sin_half_phi_pz),this.atanh_esin_phi=Math.log(this.sin_half_asin_e_sin_phi_pf/this.sin_half_asin_e_sin_phi_pz)}function A(){this.sin_phi=-this.sin_phi;let e=this.one_p_sin_phi;this.one_p_sin_phi=this.one_m_sin_phi,this.one_m_sin_phi=e,e=this.sin_half_phi_pf,this.sin_half_phi_pf=this.sin_half_phi_pz,this.sin_half_phi_pz=e,e=this.sin_half_asin_e_sin_phi_pf,this.sin_half_asin_e_sin_phi_pf=this.sin_half_asin_e_sin_phi_pz,this.sin_half_asin_e_sin_phi_pz=e,this.atanh_sin_phi=-this.atanh_sin_phi,this.atanh_esin_phi=-this.atanh_esin_phi}function M(e){this.sin_phi=e.sin_phi,this.one_p_sin_phi=e.one_p_sin_phi,this.one_m_sin_phi=e.one_m_sin_phi,this.one_m_e_2_sin_2_phi=e.one_m_e_2_sin_2_phi,this.sin_half_phi_pf=e.sin_half_phi_pf,this.sin_half_phi_pz=e.sin_half_phi_pz,this.sin_half_asin_e_sin_phi_pf=e.sin_half_asin_e_sin_phi_pf,this.sin_half_asin_e_sin_phi_pz=e.sin_half_asin_e_sin_phi_pz,this.atanh_sin_phi=e.atanh_sin_phi,this.atanh_esin_phi=e.atanh_esin_phi,this.make_negative=e.make_negative}function C(){return{...this}}class T{constructor(e,t,n){this.m_transformPCS2GCS=null,this.m_scaleToRadians=new l.T,this.m_scaleToDegrees=new l.T,this.m_progressTracker=n,(0,s.g)(4!==t),this.m_curveType=t,this.m_inputSR=e,e&&0!==e.getCoordinateSystemType()||(0,s.a)(""),this.m_inputGCS=e.getGCS(),this.m_a=0,this.m_eSquared=0,this.m_b=0,this.m_rpu=0}executePolygonGeodeticArea(e){let t,n=e.clone();if(n.dropAllAttributes(),e.hasNonLinearSegments()&&(n=(new a.O).execute(n,0,this.m_inputSR.getTolerance(0),0,this.m_progressTracker)),this.m_inputSR.isPannable()){const e=new _.Envelope2D;n.queryEnvelope(e);const t=this.m_inputSR.getPannableExtent();if(!t.containsEnvelope(e)){const s=t.getCenterX()-e.getCenterX(),i=new l.T;i.setShiftCoords(s,0),n.applyTransformation(i),e.move(s,0);const a=new o.E;t.queryIntervalX(a);const _=new o.E;e.queryIntervalX(_),n=a.contains(_)?(0,r.w)(n,this.m_inputSR):(new r.z).foldInto360RangeGeodetic(n,this.m_inputSR,this.m_curveType)}}if(this.m_transformPCS2GCS?(n=(new r.O).execute(n,this.m_inputSR,!1,this.m_progressTracker),t=n.createInstance(),(0,r.y)(this.m_transformPCS2GCS,n,t,this.m_progressTracker)||(t=(new r.z).execute(n,this.m_transformPCS2GCS,this.m_progressTracker))):t=(new r.O).execute(n,this.m_inputGCS,!1,this.m_progressTracker),t.isEmpty())return 0;if(1===this.m_curveType){const e=(0,r.v)();return this.m_inputGCS.querySpheroidData(e),this.m_a=e.majorSemiAxis,this.m_eSquared=e.e2,this.loxodromeArea(t)}const s=t.getImpl();this.m_rpu=this.m_inputGCS.getUnit().getUnitToBaseFactor(),this.m_scaleToRadians.setScale(this.m_rpu),s.applyTransformation(this.m_scaleToRadians),this.m_scaleToDegrees=this.m_scaleToRadians,this.m_scaleToDegrees.invertThis();const i=(0,r.v)();if(this.m_inputGCS.querySpheroidData(i),this.m_a=i.majorSemiAxis,this.m_b=i.minorSemiAxis,this.m_eSquared=i.e2,2===this.m_curveType)return this.executeClippedPolygonGreatEllipticArea(t);{const e={stack:[],error:void 0,hasError:!1};try{const n=r.ax.unit(9101),s=this.m_inputGCS.getPECoordSys(),i=(0,c.b)(e,s.cloneAlterUnits(n),!1);let a,o,_=this.executeClippedPolygonGeodeticArea(t,i,0),h=0;do{h++,a=this.executeClippedPolygonGeodeticArea(t,i,h),o=Math.abs(a-_),_=a}while(Math.abs(a)>1&&o>1e-8*Math.abs(a)&&h<7);return a}catch(t){e.error=t,e.hasError=!0}finally{(0,c.c)(e)}}}executeClippedPolygonGeodeticArea(e,t,n){const s={stack:[],error:void 0,hasError:!1};try{const i=new _.Envelope2D;e.queryEnvelope(i);const a=(0,c.b)(s,this.getEqualAreaPCSInstance(t,i),!1),h=e.clone();(0,r.ay)(a,h);const m=50,u=h.getImpl().getAttributeStreamRef(0),l=e.getImpl().getAttributeStreamRef(0),g=(0,c.b)(s,new r.P,!1),p=(0,c.b)(s,new r.P,!1),d=40,y=[0,0],P=(0,o.k)(f,d),E=(0,o.d)(d,-1),S=f(),x=f();let v,N;const D=a;let A=h.calculateArea2D();const M=new o.K(0),C=.5*Math.PI,T=1e-10*Math.abs(A)+1e-6,q=e.getPathCount();let b,w,I,G;const R=new o.P,L=new o.P,B=new o.P,z=new o.P,O=new o.P,F=new o.P;let k,Y;for(w=e.getPathStart(0),b=0;b<q;b++,w=I)for(I=e.getPathEnd(b),u.queryPoint2D(I-1<<1,B),l.queryPoint2D(I-1<<1,R),Math.abs(R.y)>C&&(R.y=(0,o.f)(C,R.y)),G=w;G<I;G++,B.assign(z),R.assign(L)){if(u.queryPoint2D(G<<1,z),l.queryPoint2D(G<<1,L),Math.abs(L.y)>C&&(L.y=(0,o.f)(C,L.y)),k=o.P.distance(B,z),k<m||0===R.y&&0===L.y)continue;r.A.geodeticDistance(this.m_a,this.m_eSquared,R.x,R.y,L.x,L.y,g,p,null,this.m_curveType);const e=g.val,t=p.val;for(S.setValues(0,B),x.setValues(1,z),N=n,P[0].assign(x),E[0]=n,v=0;v>=0;){Y=.5*(S.m_factor+x.m_factor),r.A.geodeticCoordinate(this.m_a,this.m_eSquared,R.x,R.y,e*Y,t,g,p,this.m_curveType),O.x=g.val,O.y=p.val,y[0]=O.x,y[1]=O.y,r.B.geogToProj(D,1,y),F.x=y[0],F.y=y[1];const n=.5*-F.offset(S.m_p_PCS,x.m_p_PCS)*o.P.distance(S.m_p_PCS,x.m_p_PCS);if(M.pe(n),Math.abs(n)>T||Math.abs(n)>0&&N>0)x.setValues(Y,F),v++,P[v].assign(x),Math.abs(n)<=T?(N--,E[v-1]=N,E[v]=N):(N=E[v-1],E[v]=N);else{if(v<=0)break;S.assign(x),v--,x.assign(P[v]),N=E[v]}}}return A+=M.getResult(),Math.abs(A)}catch(e){s.error=e,s.hasError=!0}finally{(0,c.c)(s)}}executeClippedPolygonGreatEllipticArea(e){const t=[],n=[],s=new o.P,i=new o.P,a=(0,r.E)(1,this.m_eSquared,new o.P(0,.5*Math.PI)),m=new o.K(0),u=new o.K(0),c=new o.K(0),l=new h.d,g=new h.d,p=new _.Envelope2D;e.queryLooseEnvelope(p);let d=0;p.containsCoords(p.xmin,0)||(d=Math.abs(p.ymin)<Math.abs(p.ymax)?p.ymin:p.ymax);const y=new v(this.m_eSquared,l,g,d),P=this.m_a*this.m_a,E=e.getImpl().querySegmentIterator();for(E.stripAttributes();E.nextPath();)for(;E.hasNextSegment();){const e=E.nextSegment();s.assign(e.getStartXY()),i.assign(e.getEndXY()),i.x-s.x>Math.PI?s.x+=2*Math.PI:i.x-s.x<-Math.PI&&(i.x+=2*Math.PI),this.splitSegmentCrossingItegralThreshold(e,t,n);for(let e of t)l.assign((0,r.E)(this.m_a,this.m_eSquared,e.getStartXY())),g.assign((0,r.E)(this.m_a,this.m_eSquared,e.getEndXY())),y.setSegmentEndPoints(l,g),this.adaptiveIntegrationWithRomberg(y,m);for(let e of n){let t=e.getStartXY(),n=e.getEndXY(),s=d;t.y<0&&(n=(0,o.c)(t,t=n),t.y=-t.y,n.y=-n.y,s=-s);const i=(0,r.E)(1,this.m_eSquared,t),_=(0,r.E)(1,this.m_eSquared,n),m=Math.min(t.y,n.y),l=(0,r.az)(this.m_eSquared,t.x,n.x,s,m);u.pe(l);const g=Math.abs((0,r.az)(this.m_eSquared,t.x,n.x,m,o.o)),p=new h.d;p.setSub(i,a);const y=new h.d;y.setSub(_,a);const E=new h.d;E.setCrossProductVector(p,y);let f=P*(g-.5*E.length());f=(0,o.f)(f,n.x-t.x),c.pe(f)}t.length=0,n.length=0}return c.getResult()+P*(.5*(1-this.m_eSquared)*m.getResult()+u.getResult())}getEqualAreaPCSInstance(e,t){const n=t.getCenterX();let s,i;const a=t.height();let _,h;(_=t.ymin>45*Math.PI/180||t.ymax<45*-Math.PI/180)?s=(0,o.f)(.5*Math.PI,t.getCenterY()):(s=t.getCenterY(),i=t.ymin+a*(2/3));const m=(0,r.aw)("EqualAreaPCS"),u=e.toString();return h=_?r.ax.fromString(r.a9.PE_TYPE_PROJCS,`PROJCS["${m}", ${u}, PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing", 0],PARAMETER["Central_Meridian", ${n}], PARAMETER["Latitude_of_Origin", ${s}], UNIT["Meter",1.0]]`):r.ax.fromString(r.a9.PE_TYPE_PROJCS,`PROJCS["${m}", ${u}, PROJECTION["Cylindrical_Equal_Area"],PARAMETER["False_Easting", 0],PARAMETER["False_Northing", 0],PARAMETER["Central_Meridian", ${n}],PARAMETER["Standard_Parallel_1", ${i}],PARAMETER["Latitude_of_Origin", ${s}],UNIT["Meter",1.0]]`),h}splitSegmentCrossingItegralThreshold(e,t,n){const s=100,a=400,_=(0,r.E)(this.m_a,this.m_eSquared,new o.P(0,o.o)),m=(0,r.E)(this.m_a,this.m_eSquared,new o.P(0,-o.o)),u=this.splitSegmentPassingThroughPole(e);for(let e of u){const u=e.getStartXY(),c=e.getEndXY(),l=(0,r.E)(this.m_a,this.m_eSquared,u),g=(0,r.E)(this.m_a,this.m_eSquared,c),p=new o.P,d=new h.d;let y=h.d.sqrDistance(_,l),P=h.d.sqrDistance(l,g);if(y<=s){if(!(P>a)){n.push(new i.L({start:u,end:c}));continue}d.assign(g.sub(l)),d.normalizeThis(),d.assign(l.add(d.mul(20))),p.assign((0,r.G)(this.m_a,this.m_eSquared,d)),n.push(new i.L({start:u,end:p})),u.assign(p)}if(l.assign((0,r.E)(this.m_a,this.m_eSquared,u)),y=h.d.sqrDistance(_,g),P=h.d.sqrDistance(l,g),y<=s){if(!(P>a)){n.push(new i.L({start:u,end:c}));continue}d.assign(g.sub(l)),d.normalizeThis(),d.assign(g.sub(d.mul(20))),p.assign((0,r.G)(this.m_a,this.m_eSquared,d)),n.push(new i.L({start:p,end:c})),c.assign(p)}if(l.assign((0,r.E)(this.m_a,this.m_eSquared,u)),g.assign((0,r.E)(this.m_a,this.m_eSquared,c)),y=h.d.sqrDistance(m,l),P=h.d.sqrDistance(l,g),y<=s){if(!(P>a)){n.push(new i.L({start:u,end:c}));continue}d.assign(g.sub(l)),d.normalizeThis(),d.assign(l.add(d.mul(20))),p.assign((0,r.G)(this.m_a,this.m_eSquared,d)),n.push(new i.L({start:u,end:p})),u.assign(p)}if(l.assign((0,r.E)(this.m_a,this.m_eSquared,u)),g.assign((0,r.E)(this.m_a,this.m_eSquared,c)),y=h.d.sqrDistance(m,g),P=h.d.sqrDistance(l,g),y<=s){if(!(P>a)){n.push(new i.L({start:u,end:c}));continue}d.assign(g.sub(l)),d.normalizeThis(),d.assign(g.sub(d.mul(20))),p.assign((0,r.G)(this.m_a,this.m_eSquared,d)),n.push(new i.L({start:p,end:c})),c.assign(p)}t.push(new i.L({start:u,end:c}))}}splitSegmentPassingThroughPole(e){const t={stack:[],error:void 0,hasError:!1};try{const n=[],s=new h.d,a=new h.d,_=new h.d,m=new o.P,u=20,l=3.124139361,p=10,d=e.getStartXY(),y=e.getEndXY(),P=(0,c.b)(t,new r.P,!1);if(r.A.geodeticDistance(this.m_a,this.m_eSquared,d.x,d.y,y.x,y.y,P,null,null,2),Math.abs(y.x-d.x)>l&&P.val>u){const e=new g(new o.P(0,90),d.divide(this.m_rpu),y.divide(this.m_rpu),this.m_inputGCS,2,2);let t=(0,r.I)(e.makeFunctor(),0,1,1e-10);if(t.second<=p&&t.first>0&&t.first<1)return s.assign((0,r.E)(this.m_a,this.m_eSquared,d)),a.assign((0,r.E)(this.m_a,this.m_eSquared,y)),(0,o.x)(s,a,t.first,_),m.assign((0,r.G)(this.m_a,this.m_eSquared,_)),n.push(new i.L({start:d,end:m})),n.push(new i.L({start:m,end:y})),n;if(e.setPointDistFrom(new o.P(0,-90)),t=(0,r.I)(e.makeFunctor(),0,1,1e-10),t.second<=p&&t.first>0&&t.first<1)return s.assign((0,r.E)(this.m_a,this.m_eSquared,d)),a.assign((0,r.E)(this.m_a,this.m_eSquared,y)),(0,o.x)(s,a,t.first,_),m.assign((0,r.G)(this.m_a,this.m_eSquared,_)),n.push(new i.L({start:d,end:m})),n.push(new i.L({start:m,end:y})),n}return n.push(new i.L({start:d,end:y})),n}catch(e){t.error=e,t.hasError=!0}finally{(0,c.c)(t)}}adaptiveIntegrationWithRomberg(e,t){const n=e.makeFunctor();let s=0,a=1,r=n(s),o=n(a);const _=1e-17,h=1e-14;let m=(s+a)/2,u=n(m),c=Math.abs(u-r),l=Math.abs(o-u),g=0;for(;g++<32&&(c/l<.1||l/c<.1);)c<l?(t.pe((0,i.x)(5,s,m,h,_,n)),s=m,r=u):(t.pe((0,i.x)(5,m,a,h,_,n)),a=m,o=u),m=(s+a)/2,u=Math.abs(n(m)),c=Math.abs(u-r),l=Math.abs(o-u);t.pe((0,i.x)(5,s,a,h,_,n))}loxodromeAreaHemi(e,t,n,s,i){const a=n.clone(),r=i.clone();let _,h,m,u,c,l,g,p,d,y,P,E,f,S,x,v;return a.make_negative&&a.changeSign(),r.make_negative&&r.changeSign(),P=s-t,1===Math.abs(a.sin_phi)||1===Math.abs(r.sin_phi)?e.half_qp*P:a.sin_phi===r.sin_phi?(y=.5*e.one_m_e_2*a.sin_phi*(1/a.one_m_e_2_sin_2_phi+(0,o.y)(e.e*a.sin_phi))*P,y):(x=Math.log(r.sin_half_phi_pf*a.sin_half_phi_pz/(r.sin_half_phi_pz*a.sin_half_phi_pf)),v=Math.log(r.sin_half_asin_e_sin_phi_pf*a.sin_half_asin_e_sin_phi_pz/(r.sin_half_asin_e_sin_phi_pz*a.sin_half_asin_e_sin_phi_pf)),1===this.m_eSquared?(c=0,_=.5*(x+r.sin_phi/r.one_m_e_2_sin_2_phi-a.sin_phi/a.one_m_e_2_sin_2_phi),h=0):(c=-2*e.atanh_e_over_e*(Math.log(r.one_p_sin_phi/a.one_p_sin_phi)-e.e*v),_=(x-e.e*v)/e.one_m_e_2,h=(Math.log(r.one_m_e_2_sin_2_phi/a.one_m_e_2_sin_2_phi)+c/e.atanh_e_over_e)/e.one_m_e_2),m=-v*(a.atanh_esin_phi+r.atanh_esin_phi),u=1/a.one_m_e_2_sin_2_phi-1/r.one_m_e_2_sin_2_phi,l=(0,o.z)(r.one_m_sin_phi/e.one_p_e,e.e)-(0,o.z)(a.one_m_sin_phi/e.one_p_e,e.e),g=(0,o.z)(r.one_p_sin_phi/e.one_p_e,e.e)-(0,o.z)(a.one_p_sin_phi/e.one_p_e,e.e),p=(0,o.z)(a.one_m_sin_phi/-e.one_m_e,e.e)-(0,o.z)(r.one_m_sin_phi/-e.one_m_e,e.e),d=(0,o.z)(a.one_p_sin_phi/-e.one_m_e,e.e)-(0,o.z)(r.one_p_sin_phi/-e.one_m_e,e.e),y=.25/_*(h+m+u+c+.5*(l+g+p+d)),y+=e.half_qp,E=.5*e.one_m_e_2*a.sin_phi*(1/a.one_m_e_2_sin_2_phi+(0,o.y)(e.e*a.sin_phi)),f=.5*e.one_m_e_2*r.sin_phi*(1/r.one_m_e_2_sin_2_phi+(0,o.y)(e.e*r.sin_phi)),f<E&&(S=E,E=f,f=S),y<E&&(y=E),y>f&&(y=f),y*=P,y)}loxodromeArea(e){const t=Math.PI/180;let n=0;const s={e:Number.NaN,one_p_e:Number.NaN,one_m_e:Number.NaN,one_m_e_2:Number.NaN,atanh_e_over_e:Number.NaN,half_qp:Number.NaN,f:Number.NaN,z:Number.NaN},i=N(),a=N();s.e=Math.sqrt(this.m_eSquared),s.one_p_e=1+s.e,s.one_m_e=1-s.e,s.one_m_e_2=1-this.m_eSquared,s.atanh_e_over_e=(0,o.y)(s.e),this.m_eSquared>=1?s.half_qp=1:s.half_qp=.5*(1+s.atanh_e_over_e*s.one_m_e_2),s.f=.25*Math.PI,s.z=.75*Math.PI,a.initialize(0,s.e,s.f,s.z);const r=e.getPathCount(),_=new o.P,h=new o.P,m=e.getImpl().getAttributeStreamRef(0);for(let o=0;o<r;o++){const r=e.getPathStart(o),u=e.getPathEnd(o);if(!(u-r<=1)){m.queryPoint2D(2*(u-1),_);for(let e=r;e<u;e++){m.queryPoint2D(2*e,h);const o=_.y*t,u=h.y*t;if(e===r?(i.initialize(o,s.e,s.f,s.z),i.make_negative=!1):i.assign(a),a.initialize(u,s.e,s.f,s.z),a.make_negative=!1,_.y*h.y<0){if(_.y>=90&&h.y<=-90||h.y>=90&&_.y<=-90)return Number.NaN;const e=N();e.initialize(0,s.e,s.f,s.z),e.make_negative=!1;const r=i.atanh_sin_phi-s.e*i.atanh_esin_phi,m=a.atanh_sin_phi-s.e*a.atanh_esin_phi,u=(m*_.x-r*h.x)/(m-r);o<0?(i.make_negative=!0,n-=this.loxodromeAreaHemi(s,_.x*t,i,u*t,e),i.make_negative=!1,n+=this.loxodromeAreaHemi(s,u*t,e,h.x*t,a)):(n+=this.loxodromeAreaHemi(s,_.x*t,i,u*t,e),a.make_negative=!0,n-=this.loxodromeAreaHemi(s,u*t,e,h.x*t,a),a.make_negative=!1)}else _.y>=0?n+=this.loxodromeAreaHemi(s,_.x*t,i,h.x*t,a):(i.make_negative=!0,a.make_negative=!0,n-=this.loxodromeAreaHemi(s,_.x*t,i,h.x*t,a),i.make_negative=!1,a.make_negative=!1);_.assign(h)}}}return this.m_a*n*this.m_a}calculate(e){if(e.isEmpty()||e.getDimension()<2)return 0;if(e.getGeometryType()===s.G.enumEnvelope){const t=new i.a;return t.addEnvelope(e,!1),this.calculate(t)}return this.m_inputSR!==this.m_inputGCS&&null===this.m_transformPCS2GCS&&(this.m_transformPCS2GCS=(0,r.D)(this.m_inputSR,this.m_inputGCS,null)),this.executePolygonGeodeticArea(e)}}class q{getOperatorType(){return 10311}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n,i){return(0,s.c)(e),4===n?(new E).execute(e,t,i):new T(t,n,i).calculate(e)}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2944],{240:(t,n,e)=>{e.d(n,{C:()=>h,vt:()=>o,lU:()=>f,fA:()=>l,mR:()=>A,Qj:()=>u,T7:()=>S,gv:()=>m,Ui:()=>v,Tj:()=>O,_I:()=>g,mP:()=>N,LV:()=>c});var a=e(34727),r=e(38954),i=e(51850),s=(e(87317),e(44280),e(32114));function o(t=j){return[t[0],t[1],t[2],t[3]]}function c(t=j[0],n=j[1],e=j[2],a=j[3]){return l(t,n,e,a,s.Km.get())}function h(t,n){return l(n[0],n[1],n[2],n[3],t)}function u(t){return t}function l(t,n,e,a,r=o()){return r[0]=t,r[1]=n,r[2]=e,r[3]=a,r}function f(t,n,e,a=0,i=Math.floor(e*(1/3)),s=Math.floor(e*(2/3))){if(e<3)return!1;n(I,a);let c=i,h=!1;for(;c<e-1&&!h;)n(E,c),c++,h=!(0,r.q)(I,E);if(!h)return!1;for(c=Math.max(c,s),h=!1;c<e&&!h;)n(M,c),c++,(0,r.d)(_,I,E),(0,r.n)(_,_),(0,r.d)(T,E,M),(0,r.n)(T,T),h=!(0,r.q)(I,M)&&!(0,r.q)(E,M)&&Math.abs((0,r.e)(_,T))<d;return h?(function(t,n,e,a=o()){const r=e[0]-n[0],i=e[1]-n[1],s=e[2]-n[2],c=t[0]-n[0],h=t[1]-n[1],u=t[2]-n[2],l=i*u-s*h,f=s*c-r*u,d=r*h-i*c,I=l*l+f*f+d*d,E=Math.abs(I-1)>1e-5&&I>1e-12?1/Math.sqrt(I):1;a[0]=l*E,a[1]=f*E,a[2]=d*E,a[3]=-(a[0]*t[0]+a[1]*t[1]+a[2]*t[2])}(I,E,M,t),!0):(0!==a||1!==i||2!==s)&&f(t,n,e,0,1,2)}(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,i.vt)();const d=.99619469809,I=(0,i.vt)(),E=(0,i.vt)(),M=(0,i.vt)(),_=(0,i.vt)(),T=(0,i.vt)();function N(t,n,e){return n!==t&&h(t,n),t[3]=-(0,r.e)(t,e),t}function A(t,n,e,a){return(0,r.h)(M,n,t),function(t,n,e){const a=n[0]*n[0]+n[1]*n[1]+n[2]*n[2],r=Math.abs(a-1)>1e-5&&a>1e-12?1/Math.sqrt(a):1;return e[0]=n[0]*r,e[1]=n[1]*r,e[2]=n[2]*r,e[3]=-(e[0]*t[0]+e[1]*t[1]+e[2]*t[2]),e}(e,M,a)}function v(t,n,e){return null!=n&&b(L(t,n.origin,n.direction,D,e))}function S(t,n,e){return b(L(t,n.origin,n.vector,p.NONE,e))}function m(t,n,e){return b(L(t,n.origin,n.vector,p.CLAMP,e))}function O(t,n){return P(t,n)>=0}function g(t,n,e){const a=(0,r.g)(s.rq.get(),t,-t[3]),i=function(t,n,e){const a=(0,r.g)(s.rq.get(),t,(0,r.e)(t,n));return(0,r.d)(e,n,a),e}(t,(0,r.d)(s.rq.get(),n,a),s.rq.get());return(0,r.f)(e,i,a),e}function P(t,n){return(0,r.e)(t,n)+t[3]}var R,C;function b(t){return t===R.INTERSECTS_INSIDE_OUT||t===R.INTERSECTS_OUTSIDE_IN}function L(t,n,e,i,s){const o=(0,r.e)(t,e),c=P(t,n);if(0===o)return c>=0?R.INSIDE:R.OUTSIDE;let h=-c/o;return i&p.CLAMP&&(h=(0,a.qE)(h,0,1)),!(i&p.INFINITE_MIN)&&h<0||!(i&p.INFINITE_MAX)&&h>1?c>=0?R.INSIDE:R.OUTSIDE:((0,r.f)(s,n,(0,r.g)(s,e,h)),c>=0?R.INTERSECTS_INSIDE_OUT:R.INTERSECTS_OUTSIDE_IN)}(C=R||(R={}))[C.INTERSECTS_INSIDE_OUT=0]="INTERSECTS_INSIDE_OUT",C[C.INTERSECTS_OUTSIDE_IN=1]="INTERSECTS_OUTSIDE_IN",C[C.INSIDE=2]="INSIDE",C[C.OUTSIDE=3]="OUTSIDE";const j=[0,0,1,0];var p;!function(t){t[t.NONE=0]="NONE",t[t.CLAMP=1]="CLAMP",t[t.INFINITE_MIN=4]="INFINITE_MIN",t[t.INFINITE_MAX=8]="INFINITE_MAX"}(p||(p={})),p.INFINITE_MIN,p.INFINITE_MAX;const D=p.INFINITE_MAX},24151:(t,n,e)=>{var a;e.d(n,{RT:()=>a}),function(t){t[t.Global=1]="Global",t[t.Local=2]="Local"}(a||(a={}))},46540:(t,n,e)=>{var a;e.d(n,{r:()=>a}),function(t){t.POSITION="position",t.NORMAL="normal",t.NORMALCOMPRESSED="normalCompressed",t.UV0="uv0",t.UVI="uvi",t.COLOR="color",t.SYMBOLCOLOR="symbolColor",t.SIZE="size",t.ROTATION="rotation",t.TANGENT="tangent",t.OFFSET="offset",t.PERSPECTIVEDIVIDE="perspectiveDivide",t.CENTEROFFSETANDDISTANCE="centerOffsetAndDistance",t.LENGTH="length",t.NEXTDELTA="nextDelta",t.PREVIOUSDELTA="previousDelta",t.U0="u0",t.LINEPARAMETERS="lineParameters",t.COLORFEATUREATTRIBUTE="colorFeatureAttribute",t.SIZEFEATUREATTRIBUTE="sizeFeatureAttribute",t.OPACITYFEATUREATTRIBUTE="opacityFeatureAttribute",t.DISTANCETOSTART="distanceToStart",t.UVMAPSPACE="uvMapSpace",t.BOUNDINGRECT="boundingRect",t.UVREGION="uvRegion",t.PROFILERIGHT="profileRight",t.PROFILEUP="profileUp",t.PROFILEVERTEXANDNORMAL="profileVertexAndNormal",t.PROFILEAUXDATA="profileAuxData",t.INSTANCEMODELORIGINHI="instanceModelOriginHi",t.INSTANCEMODELORIGINLO="instanceModelOriginLo",t.INSTANCEMODEL="instanceModel",t.INSTANCEMODELNORMAL="instanceModelNormal",t.INSTANCECOLOR="instanceColor",t.INSTANCEFEATUREATTRIBUTE="instanceFeatureAttribute",t.LOCALTRANSFORM="localTransform",t.GLOBALTRANSFORM="globalTransform",t.BOUNDINGSPHERE="boundingSphere",t.MODELORIGIN="modelOrigin",t.MODELSCALEFACTORS="modelScaleFactors",t.FEATUREATTRIBUTE="featureAttribute",t.STATE="state",t.LODLEVEL="lodLevel",t.POSITION0="position0",t.POSITION1="position1",t.NORMAL2COMPRESSED="normal2Compressed",t.COMPONENTINDEX="componentIndex",t.VARIANTOFFSET="variantOffset",t.VARIANTSTROKE="variantStroke",t.VARIANTEXTENSION="variantExtension",t.SIDENESS="sideness",t.START="start",t.END="end",t.UP="up",t.START_UP="startUp",t.END_UP="endUp",t.EXTRUDE="extrude",t.OLIDCOLOR="objectAndLayerIdColor",t.INSTANCEOBJECTANDLAYERIDCOLOR="instanceObjectAndLayerIdColor"}(a||(a={}))},46610:(t,n,e)=>{e.d(n,{K:()=>a,n:()=>r});class a{constructor(t,n,e=n){this.data=t,this.size=n,this.stride=e}}class r extends a{constructor(t,n,e,a=!1,r=e){super(t,e,r),this.indices=n,this.exclusive=a}}},48353:(t,n,e)=>{e.d(n,{l:()=>h});var a=e(34727),r=e(58083),i=e(51850);function s(t,n,e){const a=Math.sin(t),r=Math.cos(t),i=Math.sin(n),s=Math.cos(n),o=e;return o[0]=-a,o[4]=-i*r,o[8]=s*r,o[12]=0,o[1]=r,o[5]=-i*a,o[9]=s*a,o[13]=0,o[2]=0,o[6]=s,o[10]=i,o[14]=0,o[3]=0,o[7]=0,o[11]=0,o[15]=1,o}var o=e(37539),c=e(21325);function h(t,n,e,a){const i=(0,o.Tp)(t,a);if(null==i)return!1;const h=i.source.spatialReferenceId,I=i.dest.spatialReferenceId;if(h===I&&!u(I)&&(h!==o.rz.UNKNOWN||(0,c.aI)(t,a)))return(0,r.kN)(e,n),!0;if(u(I)){const t=o.w5[h][o.rz.LON_LAT],a=o.w5[o.rz.LON_LAT][I];return null!=t&&null!=a&&(t(n,0,f,0),a(f,0,d,0),s(l*f[0],l*f[1],e),e[12]=d[0],e[13]=d[1],e[14]=d[2],!0)}const E=u(h);if((I===o.rz.WEB_MERCATOR||I===o.rz.PLATE_CARREE||I===o.rz.WGS84||I===o.rz.CGCS2000)&&(h===o.rz.WGS84||E||h===o.rz.WEB_MERCATOR||h===o.rz.CGCS2000)){const t=o.w5[h][o.rz.LON_LAT],a=o.w5[o.rz.LON_LAT][I];return null!=t&&null!=a&&(t(n,0,f,0),a(f,0,d,0),E?function(t,n,e){s(t,n,e),(0,r.mg)(e,e)}(l*f[0],l*f[1],e):(0,r.D_)(e),e[12]=d[0],e[13]=d[1],e[14]=d[2],!0)}return!1}function u(t){return t===o.rz.SPHERICAL_ECEF||t===o.rz.SPHERICAL_MARS_PCPF||t===o.rz.SPHERICAL_MOON_PCPF||t===o.rz.WGS84_ECEF}const l=(0,a.kU)(1),f=(0,i.vt)(),d=(0,i.vt)()},57005:(t,n,e)=>{e.d(n,{ab:()=>At,gm:()=>Lt});var a=e(77690),r=e(29242),i=e(9093),s=e(67026),o=e(82534),c=e(38954),h=e(51850),u=e(87317),l=e(91829),f=e(73941),d=e(98764),I=e(48353),E=e(9762),M=e(37539),_=e(240),T=e(21325),N=e(32114),A=e(24151),v=e(48163),S=e(46610);const m=1e-6,O=(0,h.vt)(),g=(0,h.vt)();function P(t,n,e,a,r,i,s,o,c,h){return function(t,n,e){let a=Tt(t.maxVert[0],t.minVert[0]),r=0;for(let n=1;n<7;++n){const e=Tt(t.maxVert[n],t.minVert[n]);e>a&&(a=e,r=n)}It(n,t.minVert[r]),It(e,t.maxVert[r])}(t,a,r),Tt(a,r)<m?1:(ft(s,a,r),Mt(s,s),function(t,n,e,a){const{data:r,size:i}=t;let s=Number.NEGATIVE_INFINITY,o=0;for(let t=0;t<r.length;t+=i){x[0]=r[t]-n[0],x[1]=r[t+1]-n[1],x[2]=r[t+2]-n[2];const a=e[0]*x[0]+e[1]*x[1]+e[2]*x[2],i=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],c=x[0]*x[0]+x[1]*x[1]+x[2]*x[2]-a*a/i;c>s&&(s=c,o=t)}return It(a,r,o),s}(n,a,s,i)<m?2:(ft(o,r,i),Mt(o,o),ft(c,i,a),Mt(c,c),Et(e,o,s),Mt(e,e),B(n,e,s,o,c,h),0))}const R=(0,h.vt)(),C=(0,h.vt)(),b=(0,h.vt)(),L=(0,h.vt)(),j=(0,h.vt)(),p=(0,h.vt)(),D=(0,h.vt)(),F=(0,h.vt)();function z(t,n,e,a,r,i,s,o,c){(function(t,n,e,a,r){!function(t,n,e,a,r){const{data:i,size:s}=t;It(a,i),It(r,a),e[0]=Nt(H,n),e[1]=e[0];for(let t=s;t<i.length;t+=s){const s=i[t]*n[0]+i[t+1]*n[1]+i[t+2]*n[2];s<e[0]&&(e[0]=s,It(a,i,t)),s>e[1]&&(e[1]=s,It(r,i,t))}}(t,n,U,r,a);const i=Nt(e,n);U[1]-m<=i&&(a[0]=void 0),U[0]+m>=i&&(r[0]=void 0)})(t,n,e,R,C),void 0!==R[0]&&(ft(b,R,e),Mt(b,b),ft(L,R,a),Mt(L,L),ft(j,R,r),Mt(j,j),Et(p,L,i),Mt(p,p),Et(D,j,s),Mt(D,D),Et(F,b,o),Mt(F,F),B(t,p,i,L,b,c),B(t,D,s,j,L,c),B(t,F,o,b,j,c)),void 0!==C[0]&&(ft(b,C,e),Mt(b,b),ft(L,C,a),Mt(L,L),ft(j,C,r),Mt(j,j),Et(p,L,i),Mt(p,p),Et(D,j,s),Mt(D,D),Et(F,b,o),Mt(F,F),B(t,p,i,L,b,c),B(t,D,s,j,L,c),B(t,F,o,b,j,c))}const x=[0,0,0],U=(0,v.vt)(),w=(0,h.vt)(),q=(0,h.vt)(),V=(0,h.vt)(),y=(0,h.vt)(),G=(0,h.vt)(),X=(0,h.vt)();function B(t,n,e,a,r,i){if(_t(n)<m)return;Et(w,e,n),Et(q,a,n),Et(V,r,n),Q(t,n,U),G[1]=U[0],y[1]=U[1],X[1]=y[1]-G[1];const s=[e,a,r],o=[w,q,V];for(let e=0;e<3;++e){Q(t,s[e],U),G[0]=U[0],y[0]=U[1],Q(t,o[e],U),G[2]=U[0],y[2]=U[1],X[0]=y[0]-G[0],X[2]=y[2]-G[2];const a=ut(X);a<i.quality&&(It(i.b0,s[e]),It(i.b1,n),It(i.b2,o[e]),i.quality=a)}}const H=(0,h.vt)();function Q(t,n,e){const{data:a,size:r}=t;e[0]=Number.POSITIVE_INFINITY,e[1]=Number.NEGATIVE_INFINITY;for(let t=0;t<a.length;t+=r){const r=a[t]*n[0]+a[t+1]*n[1]+a[t+2]*n[2];e[0]=Math.min(e[0],r),e[1]=Math.max(e[1],r)}}function Y(t,n,e){e.center=t,e.halfSize=(0,c.g)(n,n,.5),e.quaternion=o.zK}const k=(0,h.vt)(),W=(0,h.vt)(),Z=(0,h.vt)(),K=(0,h.vt)(),J=(0,h.vt)(),$=(0,h.vt)();function tt(t,n,e){It(k,n),Math.abs(n[0])>Math.abs(n[1])&&Math.abs(n[0])>Math.abs(n[2])?k[0]=0:Math.abs(n[1])>Math.abs(n[2])?k[1]=0:k[2]=0,_t(k)<m&&(k[0]=k[1]=k[2]=1),Et(W,n,k),Mt(W,W),Et(Z,n,W),Mt(Z,Z),nt(t,n,W,Z,K,J),ft($,J,K),ot(n,W,Z,K,J,$,e)}function nt(t,n,e,a,r,i){Q(t,n,U),r[0]=U[0],i[0]=U[1],Q(t,e,U),r[1]=U[0],i[1]=U[1],Q(t,a,U),r[2]=U[0],i[2]=U[1]}const et=(0,h.vt)(),at=(0,h.vt)(),rt=(0,h.vt)(),it=(0,r.fA)(1,0,0,0,1,0,0,0,1),st=(0,o.vt)();function ot(t,n,e,a,r,i,s){it[0]=t[0],it[1]=t[1],it[2]=t[2],it[3]=n[0],it[4]=n[1],it[5]=n[2],it[6]=e[0],it[7]=e[1],it[8]=e[2],s.quaternion=function(t,n){const e=n[0]+n[4]+n[8];if(e>0){let a=Math.sqrt(e+1);t[3]=.5*a,a=.5/a,t[0]=(n[5]-n[7])*a,t[1]=(n[6]-n[2])*a,t[2]=(n[1]-n[3])*a}else{let e=0;n[4]>n[0]&&(e=1),n[8]>n[3*e+e]&&(e=2);const a=(e+1)%3,r=(e+2)%3;let i=Math.sqrt(n[3*e+e]-n[3*a+a]-n[3*r+r]+1);t[e]=.5*i,i=.5/i,t[3]=(n[3*a+r]-n[3*r+a])*i,t[a]=(n[3*a+e]+n[3*e+a])*i,t[r]=(n[3*r+e]+n[3*e+r])*i}return t}(st,it),lt(et,a,r),dt(et,et,.5),dt(at,t,et[0]),dt(rt,n,et[1]),lt(at,at,rt),dt(rt,e,et[2]),s.center=(0,c.f)(at,at,rt),s.halfSize=(0,c.g)(et,i,.5)}class ct{constructor(t){this.minVert=new Array(7),this.maxVert=new Array(7),this.buffer=new ArrayBuffer(448);let n=0;this.minProj=new Float64Array(this.buffer,n,7),n+=56,this.maxProj=new Float64Array(this.buffer,n,7),n+=56;for(let t=0;t<7;++t)this.minVert[t]=new Float64Array(this.buffer,n,3),n+=24;for(let t=0;t<7;++t)this.maxVert[t]=new Float64Array(this.buffer,n,3),n+=24;for(let t=0;t<7;++t)this.minProj[t]=Number.POSITIVE_INFINITY,this.maxProj[t]=Number.NEGATIVE_INFINITY;const e=new Array(7),a=new Array(7),{data:r,size:i}=t;for(let t=0;t<r.length;t+=i){let n=r[t];n<this.minProj[0]&&(this.minProj[0]=n,e[0]=t),n>this.maxProj[0]&&(this.maxProj[0]=n,a[0]=t),n=r[t+1],n<this.minProj[1]&&(this.minProj[1]=n,e[1]=t),n>this.maxProj[1]&&(this.maxProj[1]=n,a[1]=t),n=r[t+2],n<this.minProj[2]&&(this.minProj[2]=n,e[2]=t),n>this.maxProj[2]&&(this.maxProj[2]=n,a[2]=t),n=r[t]+r[t+1]+r[t+2],n<this.minProj[3]&&(this.minProj[3]=n,e[3]=t),n>this.maxProj[3]&&(this.maxProj[3]=n,a[3]=t),n=r[t]+r[t+1]-r[t+2],n<this.minProj[4]&&(this.minProj[4]=n,e[4]=t),n>this.maxProj[4]&&(this.maxProj[4]=n,a[4]=t),n=r[t]-r[t+1]+r[t+2],n<this.minProj[5]&&(this.minProj[5]=n,e[5]=t),n>this.maxProj[5]&&(this.maxProj[5]=n,a[5]=t),n=r[t]-r[t+1]-r[t+2],n<this.minProj[6]&&(this.minProj[6]=n,e[6]=t),n>this.maxProj[6]&&(this.maxProj[6]=n,a[6]=t)}for(let t=0;t<7;++t){let n=e[t];It(this.minVert[t],r,n),n=a[t],It(this.maxVert[t],r,n)}}}class ht{constructor(){this.b0=(0,h.fA)(1,0,0),this.b1=(0,h.fA)(0,1,0),this.b2=(0,h.fA)(0,0,1),this.quality=0}}function ut(t){return t[0]*t[1]+t[0]*t[2]+t[1]*t[2]}function lt(t,n,e){t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2]}function ft(t,n,e){t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2]}function dt(t,n,e){t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e}function It(t,n,e=0){t[0]=n[e],t[1]=n[e+1],t[2]=n[e+2]}function Et(t,n,e){const a=n[0],r=n[1],i=n[2],s=e[0],o=e[1],c=e[2];t[0]=r*c-i*o,t[1]=i*s-a*c,t[2]=a*o-r*s}function Mt(t,n){const e=n[0]*n[0]+n[1]*n[1]+n[2]*n[2];if(e>0){const a=1/Math.sqrt(e);t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a}}function _t(t){return t[0]*t[0]+t[1]*t[1]+t[2]*t[2]}function Tt(t,n){const e=n[0]-t[0],a=n[1]-t[1],r=n[2]-t[2];return e*e+a*a+r*r}function Nt(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}class At{constructor(t=h.uY,n=Bt,e=o.zK){this._data=[t[0],t[1],t[2],n[0],n[1],n[2],e[0],e[1],e[2],e[3]]}clone(){const t=new At;return t._data=this._data.slice(),t}invalidate(){this._data[3]=-1}get isValid(){return this._data[3]>=0}static fromData(t){const n=new At;return n._data=t.slice(),n}static fromJSON(t){return new At(t.center,t.halfSize,t.quaternion)}copy(t){this._data=t.data.slice()}get center(){return(0,c.i)(N.rq.get(),this._data[0],this._data[1],this._data[2])}get centerX(){return this._data[0]}get centerY(){return this._data[1]}get centerZ(){return this._data[2]}getCenter(t){return t[0]=this._data[0],t[1]=this._data[1],t[2]=this._data[2],t}set center(t){this._data[0]=t[0],this._data[1]=t[1],this._data[2]=t[2]}setCenter(t,n,e){this._data[0]=t,this._data[1]=n,this._data[2]=e}get halfSize(){return(0,c.i)(N.rq.get(),this._data[3],this._data[4],this._data[5])}get halfSizeX(){return this._data[3]}get halfSizeY(){return this._data[4]}get halfSizeZ(){return this._data[5]}getHalfSize(t){return t[0]=this._data[3],t[1]=this._data[4],t[2]=this._data[5],t}set halfSize(t){this._data[3]=t[0],this._data[4]=t[1],this._data[5]=t[2]}get quaternion(){return(0,s.hZ)(N.J8.get(),this._data[6],this._data[7],this._data[8],this._data[9])}getQuaternion(t){return t[0]=this._data[6],t[1]=this._data[7],t[2]=this._data[8],t[3]=this._data[9],t}set quaternion(t){this._data[6]=t[0],this._data[7]=t[1],this._data[8]=t[2],this._data[9]=t[3]}get data(){return this._data}getCorners(t){const n=vt,e=this._data;n[0]=e[6],n[1]=e[7],n[2]=e[8],n[3]=e[9];for(let a=0;a<8;++a){const r=t[a];r[0]=(1&a?-1:1)*e[3],r[1]=(2&a?-1:1)*e[4],r[2]=(4&a?-1:1)*e[5],(0,c.v)(r,r,n),r[0]+=e[0],r[1]+=e[1],r[2]+=e[2]}}doesIntersectFrustumConservativeApproximation(t){return this.intersectPlane(t[0])<=0&&this.intersectPlane(t[1])<=0&&this.intersectPlane(t[2])<=0&&this.intersectPlane(t[3])<=0&&this.intersectPlane(t[4])<=0&&this.intersectPlane(t[5])<=0}get radius(){const t=this._data[3],n=this._data[4],e=this._data[5];return Math.sqrt(t*t+n*n+e*e)}intersectSphere(t){Ot[0]=this._data[0]-t[0],Ot[1]=this._data[1]-t[1],Ot[2]=this._data[2]-t[2];const n=this.getQuaternion(St);return(0,s.Xr)(vt,n),(0,c.v)(Ot,Ot,vt),(0,c.w)(Ot,Ot),gt[0]=Math.min(Ot[0],this._data[3]),gt[1]=Math.min(Ot[1],this._data[4]),gt[2]=Math.min(Ot[2],this._data[5]),(0,c.x)(gt,Ot)<t[3]*t[3]}intersectSphereWithMBS(t,n=this.radius){const e=this._data;Ot[0]=e[0]-t[0],Ot[1]=e[1]-t[1],Ot[2]=e[2]-t[2];const a=t[3],r=a+n;return!((0,c.y)(Ot)>r*r)&&(vt[0]=-e[6],vt[1]=-e[7],vt[2]=-e[8],vt[3]=e[9],(0,c.v)(Ot,Ot,vt),(0,c.w)(Ot,Ot),gt[0]=Math.min(Ot[0],e[3]),gt[1]=Math.min(Ot[1],e[4]),gt[2]=Math.min(Ot[2],e[5]),(0,c.x)(gt,Ot)<a*a)}intersectPlane(t){const n=t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3],e=this.projectedRadius((0,_.Qj)(t));return n>e?1:n<-e?-1:0}intersectRay(t,n,e=0){const a=this._data,r=vt;r[0]=-a[6],r[1]=-a[7],r[2]=-a[8],r[3]=a[9],Ot[0]=t[0]-a[0],Ot[1]=t[1]-a[1],Ot[2]=t[2]-a[2];const i=(0,c.v)(Ot,Ot,vt),s=(0,c.v)(gt,n,vt);let o=-1/0,h=1/0;const u=this.getHalfSize(Ut);for(let t=0;t<3;t++){const n=i[t],a=s[t],r=u[t]+e;if(Math.abs(a)>1e-6){const t=(r-n)/a,e=(-r-n)/a;o=Math.max(o,Math.min(t,e)),h=Math.min(h,Math.max(t,e))}else if(n>r||n<-r)return!1}return o<=h}projectedArea(t,n,e,r){const i=this.getQuaternion(St);(0,s.Xr)(vt,i),Ot[0]=t[0]-this._data[0],Ot[1]=t[1]-this._data[1],Ot[2]=t[2]-this._data[2],(0,c.v)(Ot,Ot,vt);const o=this.getHalfSize(Ut),h=Ot[0]<-o[0]?-1:Ot[0]>o[0]?1:0,l=Ot[1]<-o[1]?-1:Ot[1]>o[1]?1:0,f=Ot[2]<-o[2]?-1:Ot[2]>o[2]?1:0,d=Math.abs(h)+Math.abs(l)+Math.abs(f);if(0===d)return 1/0;const I=1===d?4:6,E=6*(h+3*l+9*f+13);(0,a.I0)(wt,i),(0,a.hs)(wt,wt,o);const M=this.getCenter(zt);for(let t=0;t<I;t++){const e=bt[E+t];(0,c.i)(Ot,((1&e)<<1)-1,(2&e)-1,((4&e)>>1)-1),(0,c.o)(Ot,Ot,wt),(0,c.f)(Pt,M,Ot),Pt[3]=1,(0,u.t)(Pt,Pt,n);const a=1/Math.max(1e-6,Pt[3]);Ct[2*t]=Pt[0]*a,Ct[2*t+1]=Pt[1]*a}const _=2*I-2;let T=Ct[0]*(Ct[3]-Ct[_+1])+Ct[_]*(Ct[1]-Ct[_-1]);for(let t=2;t<_;t+=2)T+=Ct[t]*(Ct[t+3]-Ct[t-1]);return Math.abs(T)*e*r*.125}projectedRadius(t){const n=this.getQuaternion(St);return(0,s.Xr)(vt,n),(0,c.v)(Ot,t,vt),Math.abs(Ot[0]*this._data[3])+Math.abs(Ot[1]*this._data[4])+Math.abs(Ot[2]*this._data[5])}minimumDistancePlane(t){return t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3]-this.projectedRadius((0,_.Qj)(t))}maximumDistancePlane(t){return t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3]+this.projectedRadius((0,_.Qj)(t))}toAaBoundingBox(t){const n=this.getQuaternion(St),e=(0,a.I0)(wt,n),r=this._data[3]*Math.abs(e[0])+this._data[4]*Math.abs(e[3])+this._data[5]*Math.abs(e[6]),i=this._data[3]*Math.abs(e[1])+this._data[4]*Math.abs(e[4])+this._data[5]*Math.abs(e[7]),s=this._data[3]*Math.abs(e[2])+this._data[4]*Math.abs(e[5])+this._data[5]*Math.abs(e[8]);t[0]=this._data[0]-r,t[1]=this._data[1]-i,t[2]=this._data[2]-s,t[3]=this._data[0]+r,t[4]=this._data[1]+i,t[5]=this._data[2]+s}transform(t,n,e,a=0,r=(0,d.lO)(e),i=(0,d.lO)(n),o=(0,M.jd)(n,i)){if(e===r)n.isGeographic?function(t,n,e,a,r=(0,d.lO)(e)){const i=(0,f.tO)(e),o=1+Math.max(0,a)/(i.radius+t.centerZ);t.getCenter(Ft),Ft[2]+=a,(0,E.projectBuffer)(Ft,e,0,Ft,r,0),n.center=Ft;const h=t.getQuaternion(St);n.quaternion=h,(0,s.Xr)(vt,h),(0,c.i)(yt,0,0,1),(0,c.v)(yt,yt,vt);const u=t.getHalfSize(Ut);(0,c.i)(yt,u[0]*Math.abs(yt[0]),u[1]*Math.abs(yt[1]),u[2]*Math.abs(yt[2])),(0,c.g)(yt,yt,i.inverseFlattening),(0,c.f)(yt,u,yt),n.halfSize=(0,c.g)(yt,yt,o)}(this,t,n,a,i):function(t,n,e,a,r=(0,d.lO)(e),i=(0,M.jd)(e,r)){t.getCorners(Vt),t.getCenter(Ft),Ft[2]+=a,(0,I.l)(e,Ft,qt,r),n.setCenter(qt[12],qt[13],qt[14]);const o=2*Math.sqrt(1+qt[0]+qt[5]+qt[10]);vt[0]=(qt[6]-qt[9])/o,vt[1]=(qt[8]-qt[2])/o,vt[2]=(qt[1]-qt[4])/o,vt[3]=.25*o;const h=t.getQuaternion(St);n.quaternion=(0,s.lw)(vt,vt,h),(0,s.Xr)(vt,vt),(0,c.i)(Gt,0,0,0);const u=n.getCenter(xt);for(const t of Vt)t[2]+=a,i(t,0,t,0),(0,c.a)(yt,t,u),(0,c.v)(yt,yt,vt),(0,c.w)(yt,yt),(0,c.z)(Gt,Gt,yt);n.halfSize=Gt}(this,t,n,a,i,o);else if(n.isWGS84&&(e.isWebMercator||(0,T.r1)(e)))!function(t,n,e,a,r){n.getCenter(zt),zt[2]+=r;const i=(0,d.lO)(e);(0,E.projectBuffer)(zt,t,0,zt,i,0),jt(i,n,zt,e,a)}(n,this,e,t,a);else if(n.isWebMercator&&(0,T.r1)(e))!function(t,n,e,a,r){n.getCenter(zt),zt[2]+=r,jt(t,n,zt,e,a)}(n,this,e,t,a);else{const r=this.getCenter(zt);r[2]+=a,(0,E.projectBuffer)(r,n,0,r,e,0),t.center=r,this!==t&&(t.quaternion=this.getQuaternion(St),t.halfSize=this.getHalfSize(Ut))}}}const vt=(0,o.vt)(),St=(0,o.vt)(),mt=(0,o.vt)(),Ot=(0,h.vt)(),gt=(0,h.vt)(),Pt=(0,l.vt)();function Rt(t,n=new At){return function(t,n){const{data:e,size:a}=t,r=e.length/a;if(r<=0)return;const i=new ct(t);lt(O,i.minProj,i.maxProj),dt(O,O,.5),ft(g,i.maxProj,i.minProj);const s=ut(g),o=new ht;o.quality=s,r<14&&(t=new S.K(new Float64Array(i.buffer,112,42),3));const c=(0,h.vt)(),u=(0,h.vt)(),l=(0,h.vt)(),f=(0,h.vt)(),d=(0,h.vt)(),I=(0,h.vt)(),E=(0,h.vt)();switch(P(i,t,E,c,u,l,f,d,I,o)){case 1:return void Y(O,g,n);case 2:return void tt(t,f,n)}z(t,E,c,u,l,f,d,I,o),nt(t,o.b0,o.b1,o.b2,K,J);const M=(0,h.vt)();ft(M,J,K),o.quality=ut(M),o.quality<s?ot(o.b0,o.b1,o.b2,K,J,M,n):Y(O,g,n)}(t,n),n}const Ct=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1,1.1,1.2],bt=(()=>{const t=new Int8Array(162);let n=0;const e=e=>{for(let a=0;a<e.length;a++)t[n+a]=e[a];n+=6};return e([6,2,3,1,5,4]),e([0,2,3,1,5,4]),e([0,2,3,7,5,4]),e([0,1,3,2,6,4]),e([0,1,3,2,0,0]),e([0,1,5,7,3,2]),e([0,1,3,7,6,4]),e([0,1,3,7,6,2]),e([0,1,5,7,6,2]),e([0,1,5,4,6,2]),e([0,1,5,4,0,0]),e([0,1,3,7,5,4]),e([0,2,6,4,0,0]),e([0,0,0,0,0,0]),e([1,3,7,5,0,0]),e([2,3,7,6,4,0]),e([2,3,7,6,0,0]),e([2,3,1,5,7,6]),e([0,1,5,7,6,2]),e([0,1,5,7,6,4]),e([0,1,3,7,6,4]),e([4,5,7,6,2,0]),e([4,5,7,6,0,0]),e([4,5,1,3,7,6]),e([0,2,3,7,5,4]),e([6,2,3,7,5,4]),e([6,2,3,1,5,4]),t})();function Lt(t,n,e,a,r){const i=t.getQuaternion(St);r.quaternion=i,(0,s.Xr)(vt,i);const o=t.getCenter(zt),u=t.getHalfSize(Ut);if(a===A.RT.Global){(0,c.v)(yt,o,vt),(0,c.w)(Gt,yt),(0,c.A)(Xt,Gt,u),(0,c.a)(Xt,Gt,Xt);const a=(0,c.l)(Xt);(0,c.f)(Xt,Gt,u);const i=(0,c.l)(Xt);if(a<e)r.center=o,(0,c.i)(yt,e,e,e),r.halfSize=(0,c.f)(yt,u,yt);else{const s=i>0?1+n/i:1,o=a>0?1+e/a:1,h=(o+s)/2,l=(o-s)/2;(0,c.g)(Xt,Gt,l),r.halfSize=(0,c.b)(Xt,Xt,u,h),(0,c.g)(Xt,Gt,h),(0,c.b)(Xt,Xt,u,l),(0,c.B)(yt,yt),(0,c.C)(yt,Xt,yt);const f=t.getQuaternion(mt);r.center=(0,c.v)(yt,yt,f)}}else{r.center=(0,c.b)(yt,o,h.Cb,(e+n)/2);const t=(0,c.v)(yt,h.Cb,vt);(0,c.w)(t,t),r.halfSize=(0,c.b)(Gt,u,t,(e-n)/2)}return r}function jt(t,n,e,r,i){const s=n.getQuaternion(St),o=(0,a.I0)(wt,s),c=n.getHalfSize(Ut);for(let t=0;t<8;++t){for(let n=0;n<3;++n)Ft[n]=c[n]*(t&1<<n?-1:1);for(let n=0;n<3;++n){let a=e[n];for(let t=0;t<3;++t)a+=Ft[t]*o[3*t+n];pt[3*t+n]=a}}(0,E.projectBuffer)(pt,t,0,pt,r,0,8),Rt(Dt,i)}const pt=new Array(24),Dt=new S.K(pt,3),Ft=(0,h.vt)(),zt=(0,h.vt)(),xt=(0,h.vt)(),Ut=(0,h.vt)(),wt=(0,r.vt)(),qt=(0,i.vt)(),Vt=[[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]],yt=(0,h.vt)(),Gt=(0,h.vt)(),Xt=(0,h.vt)(),Bt=(0,h.CN)(-1,-1,-1)},67026:(t,n,e)=>{e.d(n,{A6:()=>E,Xd:()=>u,Xr:()=>d,hZ:()=>_,lw:()=>l,t2:()=>C,x8:()=>h});var a=e(29242),r=e(82534),i=e(51850),s=e(34304),o=e(38954),c=e(87317);function h(t,n,e){e*=.5;const a=Math.sin(e);return t[0]=a*n[0],t[1]=a*n[1],t[2]=a*n[2],t[3]=Math.cos(e),t}function u(t,n){const e=2*Math.acos(n[3]),a=Math.sin(e/2);return a>(0,s.FD)()?(t[0]=n[0]/a,t[1]=n[1]/a,t[2]=n[2]/a):(t[0]=1,t[1]=0,t[2]=0),e}function l(t,n,e){const a=n[0],r=n[1],i=n[2],s=n[3],o=e[0],c=e[1],h=e[2],u=e[3];return t[0]=a*u+s*o+r*h-i*c,t[1]=r*u+s*c+i*o-a*h,t[2]=i*u+s*h+a*c-r*o,t[3]=s*u-a*o-r*c-i*h,t}function f(t,n,e,a){const r=n[0],i=n[1],o=n[2],c=n[3];let h,u,l,f,d,I=e[0],E=e[1],M=e[2],_=e[3];return u=r*I+i*E+o*M+c*_,u<0&&(u=-u,I=-I,E=-E,M=-M,_=-_),1-u>(0,s.FD)()?(h=Math.acos(u),l=Math.sin(h),f=Math.sin((1-a)*h)/l,d=Math.sin(a*h)/l):(f=1-a,d=a),t[0]=f*r+d*I,t[1]=f*i+d*E,t[2]=f*o+d*M,t[3]=f*c+d*_,t}function d(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function I(t,n){const e=n[0]+n[4]+n[8];let a;if(e>0)a=Math.sqrt(e+1),t[3]=.5*a,a=.5/a,t[0]=(n[5]-n[7])*a,t[1]=(n[6]-n[2])*a,t[2]=(n[1]-n[3])*a;else{let e=0;n[4]>n[0]&&(e=1),n[8]>n[3*e+e]&&(e=2);const r=(e+1)%3,i=(e+2)%3;a=Math.sqrt(n[3*e+e]-n[3*r+r]-n[3*i+i]+1),t[e]=.5*a,a=.5/a,t[3]=(n[3*r+i]-n[3*i+r])*a,t[r]=(n[3*r+e]+n[3*e+r])*a,t[i]=(n[3*i+e]+n[3*e+i])*a}return t}function E(t,n,e,a){const r=.5*Math.PI/180;n*=r,e*=r,a*=r;const i=Math.sin(n),s=Math.cos(n),o=Math.sin(e),c=Math.cos(e),h=Math.sin(a),u=Math.cos(a);return t[0]=i*c*u-s*o*h,t[1]=s*o*u+i*c*h,t[2]=s*c*h-i*o*u,t[3]=s*c*u+i*o*h,t}const M=c.c,_=c.s,T=c.g,N=l,A=c.d,v=c.h,S=c.l,m=c.j,O=m,g=c.b,P=g,R=c.n,C=c.a,b=c.e,L=(0,i.vt)(),j=(0,i.fA)(1,0,0),p=(0,i.fA)(0,1,0),D=(0,r.vt)(),F=(0,r.vt)(),z=(0,a.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:T,calculateW:function(t,n){const e=n[0],a=n[1],r=n[2];return t[0]=e,t[1]=a,t[2]=r,t[3]=Math.sqrt(Math.abs(1-e*e-a*a-r*r)),t},conjugate:d,copy:M,dot:v,equals:b,exactEquals:C,fromEuler:E,fromMat3:I,getAxisAngle:u,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,n){const e=n[0],a=n[1],r=n[2],i=n[3],s=e*e+a*a+r*r+i*i,o=s?1/s:0;return t[0]=-e*o,t[1]=-a*o,t[2]=-r*o,t[3]=i*o,t},len:O,length:m,lerp:S,mul:N,multiply:l,normalize:R,random:function(t){const n=s.Ov,e=n(),a=n(),r=n(),i=Math.sqrt(1-e),o=Math.sqrt(e);return t[0]=i*Math.sin(2*Math.PI*a),t[1]=i*Math.cos(2*Math.PI*a),t[2]=o*Math.sin(2*Math.PI*r),t[3]=o*Math.cos(2*Math.PI*r),t},rotateX:function(t,n,e){e*=.5;const a=n[0],r=n[1],i=n[2],s=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=a*c+s*o,t[1]=r*c+i*o,t[2]=i*c-r*o,t[3]=s*c-a*o,t},rotateY:function(t,n,e){e*=.5;const a=n[0],r=n[1],i=n[2],s=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=a*c-i*o,t[1]=r*c+s*o,t[2]=i*c+a*o,t[3]=s*c-r*o,t},rotateZ:function(t,n,e){e*=.5;const a=n[0],r=n[1],i=n[2],s=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=a*c+r*o,t[1]=r*c-a*o,t[2]=i*c+s*o,t[3]=s*c-i*o,t},rotationTo:function(t,n,e){const a=(0,o.e)(n,e);return a<-.999999?((0,o.h)(L,j,n),(0,o.H)(L)<1e-6&&(0,o.h)(L,p,n),(0,o.n)(L,L),h(t,L,Math.PI),t):a>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,o.h)(L,n,e),t[0]=L[0],t[1]=L[1],t[2]=L[2],t[3]=1+a,R(t,t))},scale:A,set:_,setAxes:function(t,n,e,a){const r=z;return r[0]=e[0],r[3]=e[1],r[6]=e[2],r[1]=a[0],r[4]=a[1],r[7]=a[2],r[2]=-n[0],r[5]=-n[1],r[8]=-n[2],R(t,I(t,r))},setAxisAngle:h,slerp:f,sqlerp:function(t,n,e,a,r,i){return f(D,n,r,i),f(F,e,a,i),f(t,D,F,2*i*(1-i)),t},sqrLen:P,squaredLength:g,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},98764:(t,n,e)=>{e.d(n,{Y0:()=>h,lO:()=>u});var a=e(73941),r=e(16930),i=e(21325);const s=new r.A(a.fv),o=new r.A(a.FY),c=new r.A(a.LJ),h=new r.A(a.Ro);function u(t){const n=l.get(t);if(n)return n;let e=s;if(t)if(t===o)e=o;else if(t===c)e=c;else{const n=t.wkid,a=t.latestWkid;if(null!=n||null!=a)(0,i.tl)(n)||(0,i.tl)(a)?e=o:((0,i.ZL)(n)||(0,i.ZL)(a))&&(e=c);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===f?e=o:t===d&&(e=c)}}}return l.set(t,e),e}const l=new Map,f=o.wkt.toUpperCase(),d=c.wkt.toUpperCase()}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2944],{240:(t,n,e)=>{e.d(n,{C:()=>h,vt:()=>o,lU:()=>f,fA:()=>l,mR:()=>A,Qj:()=>u,T7:()=>S,gv:()=>m,Ui:()=>v,Tj:()=>O,_I:()=>g,mP:()=>N,LV:()=>c});var a=e(34727),r=e(38954),i=e(51850),s=(e(87317),e(44280),e(32114));function o(t=j){return[t[0],t[1],t[2],t[3]]}function c(t=j[0],n=j[1],e=j[2],a=j[3]){return l(t,n,e,a,s.Km.get())}function h(t,n){return l(n[0],n[1],n[2],n[3],t)}function u(t){return t}function l(t,n,e,a,r=o()){return r[0]=t,r[1]=n,r[2]=e,r[3]=a,r}function f(t,n,e,a=0,i=Math.floor(e*(1/3)),s=Math.floor(e*(2/3))){if(e<3)return!1;n(I,a);let c=i,h=!1;for(;c<e-1&&!h;)n(E,c),c++,h=!(0,r.q)(I,E);if(!h)return!1;for(c=Math.max(c,s),h=!1;c<e&&!h;)n(M,c),c++,(0,r.d)(_,I,E),(0,r.n)(_,_),(0,r.d)(T,E,M),(0,r.n)(T,T),h=!(0,r.q)(I,M)&&!(0,r.q)(E,M)&&Math.abs((0,r.e)(_,T))<d;return h?(function(t,n,e,a=o()){const r=e[0]-n[0],i=e[1]-n[1],s=e[2]-n[2],c=t[0]-n[0],h=t[1]-n[1],u=t[2]-n[2],l=i*u-s*h,f=s*c-r*u,d=r*h-i*c,I=l*l+f*f+d*d,E=Math.abs(I-1)>1e-5&&I>1e-12?1/Math.sqrt(I):1;a[0]=l*E,a[1]=f*E,a[2]=d*E,a[3]=-(a[0]*t[0]+a[1]*t[1]+a[2]*t[2])}(I,E,M,t),!0):(0!==a||1!==i||2!==s)&&f(t,n,e,0,1,2)}(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,i.vt)();const d=.99619469809,I=(0,i.vt)(),E=(0,i.vt)(),M=(0,i.vt)(),_=(0,i.vt)(),T=(0,i.vt)();function N(t,n,e){return n!==t&&h(t,n),t[3]=-(0,r.e)(t,e),t}function A(t,n,e,a){return(0,r.h)(M,n,t),function(t,n,e){const a=n[0]*n[0]+n[1]*n[1]+n[2]*n[2],r=Math.abs(a-1)>1e-5&&a>1e-12?1/Math.sqrt(a):1;return e[0]=n[0]*r,e[1]=n[1]*r,e[2]=n[2]*r,e[3]=-(e[0]*t[0]+e[1]*t[1]+e[2]*t[2]),e}(e,M,a)}function v(t,n,e){return null!=n&&b(L(t,n.origin,n.direction,D,e))}function S(t,n,e){return b(L(t,n.origin,n.vector,p.NONE,e))}function m(t,n,e){return b(L(t,n.origin,n.vector,p.CLAMP,e))}function O(t,n){return P(t,n)>=0}function g(t,n,e){const a=(0,r.g)(s.rq.get(),t,-t[3]),i=function(t,n,e){const a=(0,r.g)(s.rq.get(),t,(0,r.e)(t,n));return(0,r.d)(e,n,a),e}(t,(0,r.d)(s.rq.get(),n,a),s.rq.get());return(0,r.f)(e,i,a),e}function P(t,n){return(0,r.e)(t,n)+t[3]}var R,C;function b(t){return t===R.INTERSECTS_INSIDE_OUT||t===R.INTERSECTS_OUTSIDE_IN}function L(t,n,e,i,s){const o=(0,r.e)(t,e),c=P(t,n);if(0===o)return c>=0?R.INSIDE:R.OUTSIDE;let h=-c/o;return i&p.CLAMP&&(h=(0,a.qE)(h,0,1)),!(i&p.INFINITE_MIN)&&h<0||!(i&p.INFINITE_MAX)&&h>1?c>=0?R.INSIDE:R.OUTSIDE:((0,r.f)(s,n,(0,r.g)(s,e,h)),c>=0?R.INTERSECTS_INSIDE_OUT:R.INTERSECTS_OUTSIDE_IN)}(C=R||(R={}))[C.INTERSECTS_INSIDE_OUT=0]="INTERSECTS_INSIDE_OUT",C[C.INTERSECTS_OUTSIDE_IN=1]="INTERSECTS_OUTSIDE_IN",C[C.INSIDE=2]="INSIDE",C[C.OUTSIDE=3]="OUTSIDE";const j=[0,0,1,0];var p;!function(t){t[t.NONE=0]="NONE",t[t.CLAMP=1]="CLAMP",t[t.INFINITE_MIN=4]="INFINITE_MIN",t[t.INFINITE_MAX=8]="INFINITE_MAX"}(p||(p={})),p.INFINITE_MIN,p.INFINITE_MAX;const D=p.INFINITE_MAX},24151:(t,n,e)=>{var a;e.d(n,{RT:()=>a}),function(t){t[t.Global=1]="Global",t[t.Local=2]="Local"}(a||(a={}))},46540:(t,n,e)=>{var a;e.d(n,{r:()=>a}),function(t){t.POSITION="position",t.NORMAL="normal",t.NORMALCOMPRESSED="normalCompressed",t.UV0="uv0",t.UVI="uvi",t.COLOR="color",t.SYMBOLCOLOR="symbolColor",t.SIZE="size",t.ROTATION="rotation",t.TANGENT="tangent",t.OFFSET="offset",t.PERSPECTIVEDIVIDE="perspectiveDivide",t.CENTEROFFSETANDDISTANCE="centerOffsetAndDistance",t.LENGTH="length",t.NEXTDELTA="nextDelta",t.PREVIOUSDELTA="previousDelta",t.U0="u0",t.LINEPARAMETERS="lineParameters",t.COLORFEATUREATTRIBUTE="colorFeatureAttribute",t.SIZEFEATUREATTRIBUTE="sizeFeatureAttribute",t.OPACITYFEATUREATTRIBUTE="opacityFeatureAttribute",t.DISTANCETOSTART="distanceToStart",t.UVMAPSPACE="uvMapSpace",t.BOUNDINGRECT="boundingRect",t.UVREGION="uvRegion",t.PROFILERIGHT="profileRight",t.PROFILEUP="profileUp",t.PROFILEVERTEXANDNORMAL="profileVertexAndNormal",t.PROFILEAUXDATA="profileAuxData",t.INSTANCEMODELORIGINHI="instanceModelOriginHi",t.INSTANCEMODELORIGINLO="instanceModelOriginLo",t.INSTANCEMODEL="instanceModel",t.INSTANCEMODELNORMAL="instanceModelNormal",t.INSTANCECOLOR="instanceColor",t.INSTANCEFEATUREATTRIBUTE="instanceFeatureAttribute",t.LOCALTRANSFORM="localTransform",t.GLOBALTRANSFORM="globalTransform",t.BOUNDINGSPHERE="boundingSphere",t.MODELORIGIN="modelOrigin",t.MODELSCALEFACTORS="modelScaleFactors",t.FEATUREATTRIBUTE="featureAttribute",t.STATE="state",t.LODLEVEL="lodLevel",t.POSITION0="position0",t.POSITION1="position1",t.NORMAL2COMPRESSED="normal2Compressed",t.COMPONENTINDEX="componentIndex",t.VARIANTOFFSET="variantOffset",t.VARIANTSTROKE="variantStroke",t.VARIANTEXTENSION="variantExtension",t.SIDENESS="sideness",t.START="start",t.END="end",t.UP="up",t.START_UP="startUp",t.END_UP="endUp",t.EXTRUDE="extrude",t.OLIDCOLOR="objectAndLayerIdColor",t.INSTANCEOBJECTANDLAYERIDCOLOR="instanceObjectAndLayerIdColor"}(a||(a={}))},46610:(t,n,e)=>{e.d(n,{K:()=>a,n:()=>r});class a{constructor(t,n,e=n){this.data=t,this.size=n,this.stride=e}}class r extends a{constructor(t,n,e,a=!1,r=e){super(t,e,r),this.indices=n,this.exclusive=a}}},48353:(t,n,e)=>{e.d(n,{l:()=>h});var a=e(34727),r=e(58083),i=e(51850);function s(t,n,e){const a=Math.sin(t),r=Math.cos(t),i=Math.sin(n),s=Math.cos(n),o=e;return o[0]=-a,o[4]=-i*r,o[8]=s*r,o[12]=0,o[1]=r,o[5]=-i*a,o[9]=s*a,o[13]=0,o[2]=0,o[6]=s,o[10]=i,o[14]=0,o[3]=0,o[7]=0,o[11]=0,o[15]=1,o}var o=e(37539),c=e(21325);function h(t,n,e,a){const i=(0,o.Tp)(t,a);if(null==i)return!1;const h=i.source.spatialReferenceId,I=i.dest.spatialReferenceId;if(h===I&&!u(I)&&(h!==o.rz.UNKNOWN||(0,c.aI)(t,a)))return(0,r.kN)(e,n),!0;if(u(I)){const t=o.w5[h][o.rz.LON_LAT],a=o.w5[o.rz.LON_LAT][I];return null!=t&&null!=a&&(t(n,0,f,0),a(f,0,d,0),s(l*f[0],l*f[1],e),e[12]=d[0],e[13]=d[1],e[14]=d[2],!0)}const E=u(h);if((I===o.rz.WEB_MERCATOR||I===o.rz.PLATE_CARREE||I===o.rz.WGS84||I===o.rz.CGCS2000)&&(h===o.rz.WGS84||E||h===o.rz.WEB_MERCATOR||h===o.rz.CGCS2000)){const t=o.w5[h][o.rz.LON_LAT],a=o.w5[o.rz.LON_LAT][I];return null!=t&&null!=a&&(t(n,0,f,0),a(f,0,d,0),E?function(t,n,e){s(t,n,e),(0,r.mg)(e,e)}(l*f[0],l*f[1],e):(0,r.D_)(e),e[12]=d[0],e[13]=d[1],e[14]=d[2],!0)}return!1}function u(t){return t===o.rz.SPHERICAL_ECEF||t===o.rz.SPHERICAL_MARS_PCPF||t===o.rz.SPHERICAL_MOON_PCPF||t===o.rz.WGS84_ECEF}const l=(0,a.kU)(1),f=(0,i.vt)(),d=(0,i.vt)()},57005:(t,n,e)=>{e.d(n,{ab:()=>At,gm:()=>Lt});var a=e(77690),r=e(29242),i=e(9093),s=e(67026),o=e(82534),c=e(38954),h=e(51850),u=e(87317),l=e(91829),f=e(73941),d=e(98764),I=e(48353),E=e(9762),M=e(37539),_=e(240),T=e(21325),N=e(32114),A=e(24151),v=e(48163),S=e(46610);const m=1e-6,O=(0,h.vt)(),g=(0,h.vt)();function P(t,n,e,a,r,i,s,o,c,h){return function(t,n,e){let a=Tt(t.maxVert[0],t.minVert[0]),r=0;for(let n=1;n<7;++n){const e=Tt(t.maxVert[n],t.minVert[n]);e>a&&(a=e,r=n)}It(n,t.minVert[r]),It(e,t.maxVert[r])}(t,a,r),Tt(a,r)<m?1:(ft(s,a,r),Mt(s,s),function(t,n,e,a){const{data:r,size:i}=t;let s=Number.NEGATIVE_INFINITY,o=0;for(let t=0;t<r.length;t+=i){x[0]=r[t]-n[0],x[1]=r[t+1]-n[1],x[2]=r[t+2]-n[2];const a=e[0]*x[0]+e[1]*x[1]+e[2]*x[2],i=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],c=x[0]*x[0]+x[1]*x[1]+x[2]*x[2]-a*a/i;c>s&&(s=c,o=t)}return It(a,r,o),s}(n,a,s,i)<m?2:(ft(o,r,i),Mt(o,o),ft(c,i,a),Mt(c,c),Et(e,o,s),Mt(e,e),B(n,e,s,o,c,h),0))}const R=(0,h.vt)(),C=(0,h.vt)(),b=(0,h.vt)(),L=(0,h.vt)(),j=(0,h.vt)(),p=(0,h.vt)(),D=(0,h.vt)(),F=(0,h.vt)();function z(t,n,e,a,r,i,s,o,c){(function(t,n,e,a,r){!function(t,n,e,a,r){const{data:i,size:s}=t;It(a,i),It(r,a),e[0]=Nt(H,n),e[1]=e[0];for(let t=s;t<i.length;t+=s){const s=i[t]*n[0]+i[t+1]*n[1]+i[t+2]*n[2];s<e[0]&&(e[0]=s,It(a,i,t)),s>e[1]&&(e[1]=s,It(r,i,t))}}(t,n,U,r,a);const i=Nt(e,n);U[1]-m<=i&&(a[0]=void 0),U[0]+m>=i&&(r[0]=void 0)})(t,n,e,R,C),void 0!==R[0]&&(ft(b,R,e),Mt(b,b),ft(L,R,a),Mt(L,L),ft(j,R,r),Mt(j,j),Et(p,L,i),Mt(p,p),Et(D,j,s),Mt(D,D),Et(F,b,o),Mt(F,F),B(t,p,i,L,b,c),B(t,D,s,j,L,c),B(t,F,o,b,j,c)),void 0!==C[0]&&(ft(b,C,e),Mt(b,b),ft(L,C,a),Mt(L,L),ft(j,C,r),Mt(j,j),Et(p,L,i),Mt(p,p),Et(D,j,s),Mt(D,D),Et(F,b,o),Mt(F,F),B(t,p,i,L,b,c),B(t,D,s,j,L,c),B(t,F,o,b,j,c))}const x=[0,0,0],U=(0,v.vt)(),w=(0,h.vt)(),q=(0,h.vt)(),V=(0,h.vt)(),y=(0,h.vt)(),G=(0,h.vt)(),X=(0,h.vt)();function B(t,n,e,a,r,i){if(_t(n)<m)return;Et(w,e,n),Et(q,a,n),Et(V,r,n),Q(t,n,U),G[1]=U[0],y[1]=U[1],X[1]=y[1]-G[1];const s=[e,a,r],o=[w,q,V];for(let e=0;e<3;++e){Q(t,s[e],U),G[0]=U[0],y[0]=U[1],Q(t,o[e],U),G[2]=U[0],y[2]=U[1],X[0]=y[0]-G[0],X[2]=y[2]-G[2];const a=ut(X);a<i.quality&&(It(i.b0,s[e]),It(i.b1,n),It(i.b2,o[e]),i.quality=a)}}const H=(0,h.vt)();function Q(t,n,e){const{data:a,size:r}=t;e[0]=Number.POSITIVE_INFINITY,e[1]=Number.NEGATIVE_INFINITY;for(let t=0;t<a.length;t+=r){const r=a[t]*n[0]+a[t+1]*n[1]+a[t+2]*n[2];e[0]=Math.min(e[0],r),e[1]=Math.max(e[1],r)}}function Y(t,n,e){e.center=t,e.halfSize=(0,c.g)(n,n,.5),e.quaternion=o.zK}const k=(0,h.vt)(),W=(0,h.vt)(),Z=(0,h.vt)(),K=(0,h.vt)(),J=(0,h.vt)(),$=(0,h.vt)();function tt(t,n,e){It(k,n),Math.abs(n[0])>Math.abs(n[1])&&Math.abs(n[0])>Math.abs(n[2])?k[0]=0:Math.abs(n[1])>Math.abs(n[2])?k[1]=0:k[2]=0,_t(k)<m&&(k[0]=k[1]=k[2]=1),Et(W,n,k),Mt(W,W),Et(Z,n,W),Mt(Z,Z),nt(t,n,W,Z,K,J),ft($,J,K),ot(n,W,Z,K,J,$,e)}function nt(t,n,e,a,r,i){Q(t,n,U),r[0]=U[0],i[0]=U[1],Q(t,e,U),r[1]=U[0],i[1]=U[1],Q(t,a,U),r[2]=U[0],i[2]=U[1]}const et=(0,h.vt)(),at=(0,h.vt)(),rt=(0,h.vt)(),it=(0,r.fA)(1,0,0,0,1,0,0,0,1),st=(0,o.vt)();function ot(t,n,e,a,r,i,s){it[0]=t[0],it[1]=t[1],it[2]=t[2],it[3]=n[0],it[4]=n[1],it[5]=n[2],it[6]=e[0],it[7]=e[1],it[8]=e[2],s.quaternion=function(t,n){const e=n[0]+n[4]+n[8];if(e>0){let a=Math.sqrt(e+1);t[3]=.5*a,a=.5/a,t[0]=(n[5]-n[7])*a,t[1]=(n[6]-n[2])*a,t[2]=(n[1]-n[3])*a}else{let e=0;n[4]>n[0]&&(e=1),n[8]>n[3*e+e]&&(e=2);const a=(e+1)%3,r=(e+2)%3;let i=Math.sqrt(n[3*e+e]-n[3*a+a]-n[3*r+r]+1);t[e]=.5*i,i=.5/i,t[3]=(n[3*a+r]-n[3*r+a])*i,t[a]=(n[3*a+e]+n[3*e+a])*i,t[r]=(n[3*r+e]+n[3*e+r])*i}return t}(st,it),lt(et,a,r),dt(et,et,.5),dt(at,t,et[0]),dt(rt,n,et[1]),lt(at,at,rt),dt(rt,e,et[2]),s.center=(0,c.f)(at,at,rt),s.halfSize=(0,c.g)(et,i,.5)}class ct{constructor(t){this.minVert=new Array(7),this.maxVert=new Array(7),this.buffer=new ArrayBuffer(448);let n=0;this.minProj=new Float64Array(this.buffer,n,7),n+=56,this.maxProj=new Float64Array(this.buffer,n,7),n+=56;for(let t=0;t<7;++t)this.minVert[t]=new Float64Array(this.buffer,n,3),n+=24;for(let t=0;t<7;++t)this.maxVert[t]=new Float64Array(this.buffer,n,3),n+=24;for(let t=0;t<7;++t)this.minProj[t]=Number.POSITIVE_INFINITY,this.maxProj[t]=Number.NEGATIVE_INFINITY;const e=new Array(7),a=new Array(7),{data:r,size:i}=t;for(let t=0;t<r.length;t+=i){let n=r[t];n<this.minProj[0]&&(this.minProj[0]=n,e[0]=t),n>this.maxProj[0]&&(this.maxProj[0]=n,a[0]=t),n=r[t+1],n<this.minProj[1]&&(this.minProj[1]=n,e[1]=t),n>this.maxProj[1]&&(this.maxProj[1]=n,a[1]=t),n=r[t+2],n<this.minProj[2]&&(this.minProj[2]=n,e[2]=t),n>this.maxProj[2]&&(this.maxProj[2]=n,a[2]=t),n=r[t]+r[t+1]+r[t+2],n<this.minProj[3]&&(this.minProj[3]=n,e[3]=t),n>this.maxProj[3]&&(this.maxProj[3]=n,a[3]=t),n=r[t]+r[t+1]-r[t+2],n<this.minProj[4]&&(this.minProj[4]=n,e[4]=t),n>this.maxProj[4]&&(this.maxProj[4]=n,a[4]=t),n=r[t]-r[t+1]+r[t+2],n<this.minProj[5]&&(this.minProj[5]=n,e[5]=t),n>this.maxProj[5]&&(this.maxProj[5]=n,a[5]=t),n=r[t]-r[t+1]-r[t+2],n<this.minProj[6]&&(this.minProj[6]=n,e[6]=t),n>this.maxProj[6]&&(this.maxProj[6]=n,a[6]=t)}for(let t=0;t<7;++t){let n=e[t];It(this.minVert[t],r,n),n=a[t],It(this.maxVert[t],r,n)}}}class ht{constructor(){this.b0=(0,h.fA)(1,0,0),this.b1=(0,h.fA)(0,1,0),this.b2=(0,h.fA)(0,0,1),this.quality=0}}function ut(t){return t[0]*t[1]+t[0]*t[2]+t[1]*t[2]}function lt(t,n,e){t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2]}function ft(t,n,e){t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2]}function dt(t,n,e){t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e}function It(t,n,e=0){t[0]=n[e],t[1]=n[e+1],t[2]=n[e+2]}function Et(t,n,e){const a=n[0],r=n[1],i=n[2],s=e[0],o=e[1],c=e[2];t[0]=r*c-i*o,t[1]=i*s-a*c,t[2]=a*o-r*s}function Mt(t,n){const e=n[0]*n[0]+n[1]*n[1]+n[2]*n[2];if(e>0){const a=1/Math.sqrt(e);t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a}}function _t(t){return t[0]*t[0]+t[1]*t[1]+t[2]*t[2]}function Tt(t,n){const e=n[0]-t[0],a=n[1]-t[1],r=n[2]-t[2];return e*e+a*a+r*r}function Nt(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}class At{constructor(t=h.uY,n=Bt,e=o.zK){this._data=[t[0],t[1],t[2],n[0],n[1],n[2],e[0],e[1],e[2],e[3]]}clone(){const t=new At;return t._data=this._data.slice(),t}invalidate(){this._data[3]=-1}get isValid(){return this._data[3]>=0}static fromData(t){const n=new At;return n._data=t.slice(),n}static fromJSON(t){return new At(t.center,t.halfSize,t.quaternion)}copy(t){this._data=t.data.slice()}get center(){return(0,c.i)(N.rq.get(),this._data[0],this._data[1],this._data[2])}get centerX(){return this._data[0]}get centerY(){return this._data[1]}get centerZ(){return this._data[2]}getCenter(t){return t[0]=this._data[0],t[1]=this._data[1],t[2]=this._data[2],t}set center(t){this._data[0]=t[0],this._data[1]=t[1],this._data[2]=t[2]}setCenter(t,n,e){this._data[0]=t,this._data[1]=n,this._data[2]=e}get halfSize(){return(0,c.i)(N.rq.get(),this._data[3],this._data[4],this._data[5])}get halfSizeX(){return this._data[3]}get halfSizeY(){return this._data[4]}get halfSizeZ(){return this._data[5]}getHalfSize(t){return t[0]=this._data[3],t[1]=this._data[4],t[2]=this._data[5],t}set halfSize(t){this._data[3]=t[0],this._data[4]=t[1],this._data[5]=t[2]}get quaternion(){return(0,s.hZ)(N.J8.get(),this._data[6],this._data[7],this._data[8],this._data[9])}getQuaternion(t){return t[0]=this._data[6],t[1]=this._data[7],t[2]=this._data[8],t[3]=this._data[9],t}set quaternion(t){this._data[6]=t[0],this._data[7]=t[1],this._data[8]=t[2],this._data[9]=t[3]}get data(){return this._data}getCorners(t){const n=vt,e=this._data;n[0]=e[6],n[1]=e[7],n[2]=e[8],n[3]=e[9];for(let a=0;a<8;++a){const r=t[a];r[0]=(1&a?-1:1)*e[3],r[1]=(2&a?-1:1)*e[4],r[2]=(4&a?-1:1)*e[5],(0,c.v)(r,r,n),r[0]+=e[0],r[1]+=e[1],r[2]+=e[2]}}doesIntersectFrustumConservativeApproximation(t){return this.intersectPlane(t[0])<=0&&this.intersectPlane(t[1])<=0&&this.intersectPlane(t[2])<=0&&this.intersectPlane(t[3])<=0&&this.intersectPlane(t[4])<=0&&this.intersectPlane(t[5])<=0}get radius(){const t=this._data[3],n=this._data[4],e=this._data[5];return Math.sqrt(t*t+n*n+e*e)}intersectSphere(t){Ot[0]=this._data[0]-t[0],Ot[1]=this._data[1]-t[1],Ot[2]=this._data[2]-t[2];const n=this.getQuaternion(St);return(0,s.Xr)(vt,n),(0,c.v)(Ot,Ot,vt),(0,c.w)(Ot,Ot),gt[0]=Math.min(Ot[0],this._data[3]),gt[1]=Math.min(Ot[1],this._data[4]),gt[2]=Math.min(Ot[2],this._data[5]),(0,c.x)(gt,Ot)<t[3]*t[3]}intersectSphereWithMBS(t,n=this.radius){const e=this._data;Ot[0]=e[0]-t[0],Ot[1]=e[1]-t[1],Ot[2]=e[2]-t[2];const a=t[3],r=a+n;return!((0,c.y)(Ot)>r*r)&&(vt[0]=-e[6],vt[1]=-e[7],vt[2]=-e[8],vt[3]=e[9],(0,c.v)(Ot,Ot,vt),(0,c.w)(Ot,Ot),gt[0]=Math.min(Ot[0],e[3]),gt[1]=Math.min(Ot[1],e[4]),gt[2]=Math.min(Ot[2],e[5]),(0,c.x)(gt,Ot)<a*a)}intersectPlane(t){const n=t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3],e=this.projectedRadius((0,_.Qj)(t));return n>e?1:n<-e?-1:0}intersectRay(t,n,e=0){const a=this._data,r=vt;r[0]=-a[6],r[1]=-a[7],r[2]=-a[8],r[3]=a[9],Ot[0]=t[0]-a[0],Ot[1]=t[1]-a[1],Ot[2]=t[2]-a[2];const i=(0,c.v)(Ot,Ot,vt),s=(0,c.v)(gt,n,vt);let o=-1/0,h=1/0;const u=this.getHalfSize(Ut);for(let t=0;t<3;t++){const n=i[t],a=s[t],r=u[t]+e;if(Math.abs(a)>1e-6){const t=(r-n)/a,e=(-r-n)/a;o=Math.max(o,Math.min(t,e)),h=Math.min(h,Math.max(t,e))}else if(n>r||n<-r)return!1}return o<=h}projectedArea(t,n,e,r){const i=this.getQuaternion(St);(0,s.Xr)(vt,i),Ot[0]=t[0]-this._data[0],Ot[1]=t[1]-this._data[1],Ot[2]=t[2]-this._data[2],(0,c.v)(Ot,Ot,vt);const o=this.getHalfSize(Ut),h=Ot[0]<-o[0]?-1:Ot[0]>o[0]?1:0,l=Ot[1]<-o[1]?-1:Ot[1]>o[1]?1:0,f=Ot[2]<-o[2]?-1:Ot[2]>o[2]?1:0,d=Math.abs(h)+Math.abs(l)+Math.abs(f);if(0===d)return 1/0;const I=1===d?4:6,E=6*(h+3*l+9*f+13);(0,a.I0)(wt,i),(0,a.hs)(wt,wt,o);const M=this.getCenter(zt);for(let t=0;t<I;t++){const e=bt[E+t];(0,c.i)(Ot,((1&e)<<1)-1,(2&e)-1,((4&e)>>1)-1),(0,c.o)(Ot,Ot,wt),(0,c.f)(Pt,M,Ot),Pt[3]=1,(0,u.t)(Pt,Pt,n);const a=1/Math.max(1e-6,Pt[3]);Ct[2*t]=Pt[0]*a,Ct[2*t+1]=Pt[1]*a}const _=2*I-2;let T=Ct[0]*(Ct[3]-Ct[_+1])+Ct[_]*(Ct[1]-Ct[_-1]);for(let t=2;t<_;t+=2)T+=Ct[t]*(Ct[t+3]-Ct[t-1]);return Math.abs(T)*e*r*.125}projectedRadius(t){const n=this.getQuaternion(St);return(0,s.Xr)(vt,n),(0,c.v)(Ot,t,vt),Math.abs(Ot[0]*this._data[3])+Math.abs(Ot[1]*this._data[4])+Math.abs(Ot[2]*this._data[5])}minimumDistancePlane(t){return t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3]-this.projectedRadius((0,_.Qj)(t))}maximumDistancePlane(t){return t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3]+this.projectedRadius((0,_.Qj)(t))}toAaBoundingBox(t){const n=this.getQuaternion(St),e=(0,a.I0)(wt,n),r=this._data[3]*Math.abs(e[0])+this._data[4]*Math.abs(e[3])+this._data[5]*Math.abs(e[6]),i=this._data[3]*Math.abs(e[1])+this._data[4]*Math.abs(e[4])+this._data[5]*Math.abs(e[7]),s=this._data[3]*Math.abs(e[2])+this._data[4]*Math.abs(e[5])+this._data[5]*Math.abs(e[8]);t[0]=this._data[0]-r,t[1]=this._data[1]-i,t[2]=this._data[2]-s,t[3]=this._data[0]+r,t[4]=this._data[1]+i,t[5]=this._data[2]+s}transform(t,n,e,a=0,r=(0,d.lO)(e),i=(0,d.lO)(n),o=(0,M.jd)(n,i)){if(e===r)n.isGeographic?function(t,n,e,a,r=(0,d.lO)(e)){const i=(0,f.tO)(e),o=1+Math.max(0,a)/(i.radius+t.centerZ);t.getCenter(Ft),Ft[2]+=a,(0,E.projectBuffer)(Ft,e,0,Ft,r,0),n.center=Ft;const h=t.getQuaternion(St);n.quaternion=h,(0,s.Xr)(vt,h),(0,c.i)(yt,0,0,1),(0,c.v)(yt,yt,vt);const u=t.getHalfSize(Ut);(0,c.i)(yt,u[0]*Math.abs(yt[0]),u[1]*Math.abs(yt[1]),u[2]*Math.abs(yt[2])),(0,c.g)(yt,yt,i.inverseFlattening),(0,c.f)(yt,u,yt),n.halfSize=(0,c.g)(yt,yt,o)}(this,t,n,a,i):function(t,n,e,a,r=(0,d.lO)(e),i=(0,M.jd)(e,r)){t.getCorners(Vt),t.getCenter(Ft),Ft[2]+=a,(0,I.l)(e,Ft,qt,r),n.setCenter(qt[12],qt[13],qt[14]);const o=2*Math.sqrt(1+qt[0]+qt[5]+qt[10]);vt[0]=(qt[6]-qt[9])/o,vt[1]=(qt[8]-qt[2])/o,vt[2]=(qt[1]-qt[4])/o,vt[3]=.25*o;const h=t.getQuaternion(St);n.quaternion=(0,s.lw)(vt,vt,h),(0,s.Xr)(vt,vt),(0,c.i)(Gt,0,0,0);const u=n.getCenter(xt);for(const t of Vt)t[2]+=a,i(t,0,t,0),(0,c.a)(yt,t,u),(0,c.v)(yt,yt,vt),(0,c.w)(yt,yt),(0,c.z)(Gt,Gt,yt);n.halfSize=Gt}(this,t,n,a,i,o);else if(n.isWGS84&&(e.isWebMercator||(0,T.r1)(e)))!function(t,n,e,a,r){n.getCenter(zt),zt[2]+=r;const i=(0,d.lO)(e);(0,E.projectBuffer)(zt,t,0,zt,i,0),jt(i,n,zt,e,a)}(n,this,e,t,a);else if(n.isWebMercator&&(0,T.r1)(e))!function(t,n,e,a,r){n.getCenter(zt),zt[2]+=r,jt(t,n,zt,e,a)}(n,this,e,t,a);else{const r=this.getCenter(zt);r[2]+=a,(0,E.projectBuffer)(r,n,0,r,e,0),t.center=r,this!==t&&(t.quaternion=this.getQuaternion(St),t.halfSize=this.getHalfSize(Ut))}}}const vt=(0,o.vt)(),St=(0,o.vt)(),mt=(0,o.vt)(),Ot=(0,h.vt)(),gt=(0,h.vt)(),Pt=(0,l.vt)();function Rt(t,n=new At){return function(t,n){const{data:e,size:a}=t,r=e.length/a;if(r<=0)return;const i=new ct(t);lt(O,i.minProj,i.maxProj),dt(O,O,.5),ft(g,i.maxProj,i.minProj);const s=ut(g),o=new ht;o.quality=s,r<14&&(t=new S.K(new Float64Array(i.buffer,112,42),3));const c=(0,h.vt)(),u=(0,h.vt)(),l=(0,h.vt)(),f=(0,h.vt)(),d=(0,h.vt)(),I=(0,h.vt)(),E=(0,h.vt)();switch(P(i,t,E,c,u,l,f,d,I,o)){case 1:return void Y(O,g,n);case 2:return void tt(t,f,n)}z(t,E,c,u,l,f,d,I,o),nt(t,o.b0,o.b1,o.b2,K,J);const M=(0,h.vt)();ft(M,J,K),o.quality=ut(M),o.quality<s?ot(o.b0,o.b1,o.b2,K,J,M,n):Y(O,g,n)}(t,n),n}const Ct=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1,1.1,1.2],bt=(()=>{const t=new Int8Array(162);let n=0;const e=e=>{for(let a=0;a<e.length;a++)t[n+a]=e[a];n+=6};return e([6,2,3,1,5,4]),e([0,2,3,1,5,4]),e([0,2,3,7,5,4]),e([0,1,3,2,6,4]),e([0,1,3,2,0,0]),e([0,1,5,7,3,2]),e([0,1,3,7,6,4]),e([0,1,3,7,6,2]),e([0,1,5,7,6,2]),e([0,1,5,4,6,2]),e([0,1,5,4,0,0]),e([0,1,3,7,5,4]),e([0,2,6,4,0,0]),e([0,0,0,0,0,0]),e([1,3,7,5,0,0]),e([2,3,7,6,4,0]),e([2,3,7,6,0,0]),e([2,3,1,5,7,6]),e([0,1,5,7,6,2]),e([0,1,5,7,6,4]),e([0,1,3,7,6,4]),e([4,5,7,6,2,0]),e([4,5,7,6,0,0]),e([4,5,1,3,7,6]),e([0,2,3,7,5,4]),e([6,2,3,7,5,4]),e([6,2,3,1,5,4]),t})();function Lt(t,n,e,a,r){const i=t.getQuaternion(St);r.quaternion=i,(0,s.Xr)(vt,i);const o=t.getCenter(zt),u=t.getHalfSize(Ut);if(a===A.RT.Global){(0,c.v)(yt,o,vt),(0,c.w)(Gt,yt),(0,c.A)(Xt,Gt,u),(0,c.a)(Xt,Gt,Xt);const a=(0,c.l)(Xt);(0,c.f)(Xt,Gt,u);const i=(0,c.l)(Xt);if(a<e)r.center=o,(0,c.i)(yt,e,e,e),r.halfSize=(0,c.f)(yt,u,yt);else{const s=i>0?1+n/i:1,o=a>0?1+e/a:1,h=(o+s)/2,l=(o-s)/2;(0,c.g)(Xt,Gt,l),r.halfSize=(0,c.b)(Xt,Xt,u,h),(0,c.g)(Xt,Gt,h),(0,c.b)(Xt,Xt,u,l),(0,c.B)(yt,yt),(0,c.C)(yt,Xt,yt);const f=t.getQuaternion(mt);r.center=(0,c.v)(yt,yt,f)}}else{r.center=(0,c.b)(yt,o,h.Cb,(e+n)/2);const t=(0,c.v)(yt,h.Cb,vt);(0,c.w)(t,t),r.halfSize=(0,c.b)(Gt,u,t,(e-n)/2)}return r}function jt(t,n,e,r,i){const s=n.getQuaternion(St),o=(0,a.I0)(wt,s),c=n.getHalfSize(Ut);for(let t=0;t<8;++t){for(let n=0;n<3;++n)Ft[n]=c[n]*(t&1<<n?-1:1);for(let n=0;n<3;++n){let a=e[n];for(let t=0;t<3;++t)a+=Ft[t]*o[3*t+n];pt[3*t+n]=a}}(0,E.projectBuffer)(pt,t,0,pt,r,0,8),Rt(Dt,i)}const pt=new Array(24),Dt=new S.K(pt,3),Ft=(0,h.vt)(),zt=(0,h.vt)(),xt=(0,h.vt)(),Ut=(0,h.vt)(),wt=(0,r.vt)(),qt=(0,i.vt)(),Vt=[[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]],yt=(0,h.vt)(),Gt=(0,h.vt)(),Xt=(0,h.vt)(),Bt=(0,h.CN)(-1,-1,-1)},67026:(t,n,e)=>{e.d(n,{A6:()=>E,Xd:()=>u,Xr:()=>d,hZ:()=>_,lw:()=>l,t2:()=>C,x8:()=>h});var a=e(29242),r=e(82534),i=e(51850),s=e(34304),o=e(38954),c=e(87317);function h(t,n,e){e*=.5;const a=Math.sin(e);return t[0]=a*n[0],t[1]=a*n[1],t[2]=a*n[2],t[3]=Math.cos(e),t}function u(t,n){const e=2*Math.acos(n[3]),a=Math.sin(e/2);return a>(0,s.FD)()?(t[0]=n[0]/a,t[1]=n[1]/a,t[2]=n[2]/a):(t[0]=1,t[1]=0,t[2]=0),e}function l(t,n,e){const a=n[0],r=n[1],i=n[2],s=n[3],o=e[0],c=e[1],h=e[2],u=e[3];return t[0]=a*u+s*o+r*h-i*c,t[1]=r*u+s*c+i*o-a*h,t[2]=i*u+s*h+a*c-r*o,t[3]=s*u-a*o-r*c-i*h,t}function f(t,n,e,a){const r=n[0],i=n[1],o=n[2],c=n[3];let h,u,l,f,d,I=e[0],E=e[1],M=e[2],_=e[3];return u=r*I+i*E+o*M+c*_,u<0&&(u=-u,I=-I,E=-E,M=-M,_=-_),1-u>(0,s.FD)()?(h=Math.acos(u),l=Math.sin(h),f=Math.sin((1-a)*h)/l,d=Math.sin(a*h)/l):(f=1-a,d=a),t[0]=f*r+d*I,t[1]=f*i+d*E,t[2]=f*o+d*M,t[3]=f*c+d*_,t}function d(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function I(t,n){const e=n[0]+n[4]+n[8];let a;if(e>0)a=Math.sqrt(e+1),t[3]=.5*a,a=.5/a,t[0]=(n[5]-n[7])*a,t[1]=(n[6]-n[2])*a,t[2]=(n[1]-n[3])*a;else{let e=0;n[4]>n[0]&&(e=1),n[8]>n[3*e+e]&&(e=2);const r=(e+1)%3,i=(e+2)%3;a=Math.sqrt(n[3*e+e]-n[3*r+r]-n[3*i+i]+1),t[e]=.5*a,a=.5/a,t[3]=(n[3*r+i]-n[3*i+r])*a,t[r]=(n[3*r+e]+n[3*e+r])*a,t[i]=(n[3*i+e]+n[3*e+i])*a}return t}function E(t,n,e,a){const r=.5*Math.PI/180;n*=r,e*=r,a*=r;const i=Math.sin(n),s=Math.cos(n),o=Math.sin(e),c=Math.cos(e),h=Math.sin(a),u=Math.cos(a);return t[0]=i*c*u-s*o*h,t[1]=s*o*u+i*c*h,t[2]=s*c*h-i*o*u,t[3]=s*c*u+i*o*h,t}const M=c.c,_=c.s,T=c.h,N=l,A=c.d,v=c.g,S=c.l,m=c.j,O=m,g=c.b,P=g,R=c.n,C=c.a,b=c.e,L=(0,i.vt)(),j=(0,i.fA)(1,0,0),p=(0,i.fA)(0,1,0),D=(0,r.vt)(),F=(0,r.vt)(),z=(0,a.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:T,calculateW:function(t,n){const e=n[0],a=n[1],r=n[2];return t[0]=e,t[1]=a,t[2]=r,t[3]=Math.sqrt(Math.abs(1-e*e-a*a-r*r)),t},conjugate:d,copy:M,dot:v,equals:b,exactEquals:C,fromEuler:E,fromMat3:I,getAxisAngle:u,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,n){const e=n[0],a=n[1],r=n[2],i=n[3],s=e*e+a*a+r*r+i*i,o=s?1/s:0;return t[0]=-e*o,t[1]=-a*o,t[2]=-r*o,t[3]=i*o,t},len:O,length:m,lerp:S,mul:N,multiply:l,normalize:R,random:function(t){const n=s.Ov,e=n(),a=n(),r=n(),i=Math.sqrt(1-e),o=Math.sqrt(e);return t[0]=i*Math.sin(2*Math.PI*a),t[1]=i*Math.cos(2*Math.PI*a),t[2]=o*Math.sin(2*Math.PI*r),t[3]=o*Math.cos(2*Math.PI*r),t},rotateX:function(t,n,e){e*=.5;const a=n[0],r=n[1],i=n[2],s=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=a*c+s*o,t[1]=r*c+i*o,t[2]=i*c-r*o,t[3]=s*c-a*o,t},rotateY:function(t,n,e){e*=.5;const a=n[0],r=n[1],i=n[2],s=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=a*c-i*o,t[1]=r*c+s*o,t[2]=i*c+a*o,t[3]=s*c-r*o,t},rotateZ:function(t,n,e){e*=.5;const a=n[0],r=n[1],i=n[2],s=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=a*c+r*o,t[1]=r*c-a*o,t[2]=i*c+s*o,t[3]=s*c-i*o,t},rotationTo:function(t,n,e){const a=(0,o.e)(n,e);return a<-.999999?((0,o.h)(L,j,n),(0,o.H)(L)<1e-6&&(0,o.h)(L,p,n),(0,o.n)(L,L),h(t,L,Math.PI),t):a>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,o.h)(L,n,e),t[0]=L[0],t[1]=L[1],t[2]=L[2],t[3]=1+a,R(t,t))},scale:A,set:_,setAxes:function(t,n,e,a){const r=z;return r[0]=e[0],r[3]=e[1],r[6]=e[2],r[1]=a[0],r[4]=a[1],r[7]=a[2],r[2]=-n[0],r[5]=-n[1],r[8]=-n[2],R(t,I(t,r))},setAxisAngle:h,slerp:f,sqlerp:function(t,n,e,a,r,i){return f(D,n,r,i),f(F,e,a,i),f(t,D,F,2*i*(1-i)),t},sqrLen:P,squaredLength:g,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},98764:(t,n,e)=>{e.d(n,{Y0:()=>h,lO:()=>u});var a=e(73941),r=e(16930),i=e(21325);const s=new r.A(a.fv),o=new r.A(a.FY),c=new r.A(a.LJ),h=new r.A(a.Ro);function u(t){const n=l.get(t);if(n)return n;let e=s;if(t)if(t===o)e=o;else if(t===c)e=c;else{const n=t.wkid,a=t.latestWkid;if(null!=n||null!=a)(0,i.tl)(n)||(0,i.tl)(a)?e=o:((0,i.ZL)(n)||(0,i.ZL)(a))&&(e=c);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===f?e=o:t===d&&(e=c)}}}return l.set(t,e),e}const l=new Map,f=o.wkt.toUpperCase(),d=c.wkt.toUpperCase()}}]);