@arcgis/core 5.2.0-next.144 → 5.2.0-next.146
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/analysis/AreaMeasurementAnalysis.d.ts +11 -1
- package/analysis/DirectLineMeasurementAnalysis.d.ts +11 -1
- package/analysis/DistanceMeasurementAnalysis.d.ts +8 -0
- package/arcade/featureSetUtils.js +1 -1
- package/arcgisGlobal.d.ts +5 -5
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{1ede8666d804c553803e.js → 0b6941781e35ce0f7274.js} +1 -1
- package/assets/esri/core/workers/chunks/{a0d459bdb91ee892d4b6.js → 116293b1ee788a89ce1e.js} +1 -1
- package/assets/esri/core/workers/chunks/18f20fd43ec9ce03cef1.js +1 -0
- package/assets/esri/core/workers/chunks/{8959a825f5e1ce6f38ac.js → 1c65ab9ed611c322ce27.js} +1 -1
- package/assets/esri/core/workers/chunks/257910cca66dc5df465e.js +1 -0
- package/assets/esri/core/workers/chunks/2e096537a3a5555a4a93.js +1 -0
- package/assets/esri/core/workers/chunks/{8ba32d3a0df4a206ef1c.js → 392bcef780df52fb4cca.js} +1 -1
- package/assets/esri/core/workers/chunks/{d4926545193414cf2f16.js → 4ed8655770a3e018e366.js} +1 -1
- package/assets/esri/core/workers/chunks/505227797bcf2a1d908d.js +1 -0
- package/assets/esri/core/workers/chunks/532a1b6ff9a7c950e325.js +1 -0
- package/assets/esri/core/workers/chunks/56a24061589f4a968818.js +1 -0
- package/assets/esri/core/workers/chunks/{5b3cfe95314a75a735c1.js → 588e677f33df86a595bf.js} +1 -1
- package/assets/esri/core/workers/chunks/{25e6013e2c095629b236.js → 58c252289411b0d86473.js} +1 -1
- package/assets/esri/core/workers/chunks/{1c0975c2dd1d0e2710bb.js → 6883a5c6883eccaddf64.js} +1 -1
- package/assets/esri/core/workers/chunks/{f74e32d2ffe81778826b.js → 6c1d5577a17a5c8ccf39.js} +1 -1
- package/assets/esri/core/workers/chunks/6c83398cf586ecea0eb1.js +1 -0
- package/assets/esri/core/workers/chunks/{e521bb9ee2030245c3ce.js → 6f358116f79021ff9687.js} +1 -1
- package/assets/esri/core/workers/chunks/76196c414e48834f7b92.js +1 -0
- package/assets/esri/core/workers/chunks/{cbe6c0f32608cb504695.js → 776ae25a34352d3468bc.js} +1 -1
- package/assets/esri/core/workers/chunks/77ebacfdf8e57f2e03f1.js +1118 -0
- package/assets/esri/core/workers/chunks/794e5a67a88cb10c1a19.js +1 -0
- package/assets/esri/core/workers/chunks/943a0f140813ee4ab04a.js +1 -0
- package/assets/esri/core/workers/chunks/{fccbb902fe08448f91de.js → 9c1e69ac82e2bf746191.js} +1 -1
- package/assets/esri/core/workers/chunks/aba42885c5d6b2b5fe7f.js +1 -0
- package/assets/esri/core/workers/chunks/b61008f28b788f759e2a.js +1 -0
- package/assets/esri/core/workers/chunks/{402a82c77420254831bc.js → b7d77dd2abb255fd2e5a.js} +1 -1
- package/assets/esri/core/workers/chunks/{8b54589f173259c1ba55.js → b8054adc45bca069b948.js} +1 -1
- package/assets/esri/core/workers/chunks/ba48045a81acc4cda927.js +1 -0
- package/assets/esri/core/workers/chunks/d21257d2e2a37266c0f7.js +1 -0
- package/assets/esri/core/workers/chunks/d4f038e04c42aed588c1.js +1 -0
- package/assets/esri/core/workers/chunks/d90a3bfd45b5ed4092e0.js +1 -0
- package/assets/esri/core/workers/chunks/{43fc42405167a5537039.js → f095cf98940e3f95d51e.js} +1 -1
- package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +0 -2
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.en.json +1 -1
- package/{basemaps/BasemapCollection.d.ts → basemapGallery/BasemapGalleryModel.d.ts} +8 -8
- package/{basemaps/BasemapCollection.js → basemapGallery/BasemapGalleryModel.js} +1 -1
- package/{basemaps → basemapGallery}/BasemapsSource.d.ts +1 -1
- package/{basemaps → basemapGallery}/BasemapsSource.js +1 -1
- package/{basemaps → basemapGallery}/LocalBasemapsSource.d.ts +2 -2
- package/{basemaps → basemapGallery}/LocalBasemapsSource.js +1 -1
- package/{basemaps → basemapGallery}/PortalBasemapsSource.d.ts +2 -2
- package/{basemaps → basemapGallery}/PortalBasemapsSource.js +1 -1
- package/{basemaps → basemapGallery}/support/BasemapItem.d.ts +2 -2
- package/{basemaps → basemapGallery}/support/BasemapItem.js +1 -1
- package/{basemaps → basemapGallery}/types.d.ts +2 -2
- package/chunks/GlobalIllumination.glsl.js +4 -2
- package/chunks/GlobalIlluminationBlur.glsl.js +3 -5
- package/chunks/GlobalIlluminationUpscale.glsl.js +1 -1
- package/config.js +1 -1
- package/core/colorUtils.js +1 -1
- package/form/elements/inputs/DynamicChoiceInput.d.ts +35 -5
- package/kernel.js +1 -1
- package/layers/ParquetLayer.d.ts +9 -8
- package/layers/ParquetLayer.js +1 -1
- package/layers/graphics/sources/FeatureLayerSource.js +1 -1
- package/layers/graphics/transferFeatures.js +1 -1
- package/layers/raster/datasets/TIFFRaster.js +1 -1
- package/layers/support/ParquetPortalItemData.d.ts +2 -0
- package/layers/support/ParquetPortalItemData.js +1 -1
- package/layers/support/PortalItemData.d.ts +21 -0
- package/layers/support/parquetUtils.d.ts +1 -1
- package/layers/support/types.d.ts +1 -1
- package/package.json +2 -2
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +4 -4
- package/views/2d/analysis/DistanceMeasurementAnalysisView2D.d.ts +4 -4
- package/views/2d/layers/features/sources/strategies/FeatureDrillDownTileLoadStrategy.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightEditTool.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
- package/views/3d/analysis/ViewshedAnalysisView3D.d.ts +3 -0
- package/views/3d/analysis/VolumeMeasurementAnalysisView3D.d.ts +2 -1
- package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
- package/views/3d/layers/support/FeatureMemory.js +1 -1
- package/views/3d/layers/support/FeatureTile.js +1 -1
- package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
- package/views/3d/layers/support/featureTileQuery3D.js +1 -1
- package/views/3d/support/PBFDecoder.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadGlobalIllumination.glsl.js +16 -11
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationColorQuantization.glsl.js +2 -2
- package/views/SceneView.d.ts +4 -10
- package/views/View.d.ts +4 -12
- package/views/interactive/options/SnappingOptions.d.ts +29 -12
- package/views/interactive/options/TooltipOptions.d.ts +9 -1
- package/views/interactive/options/ValueOptions.d.ts +9 -2
- package/views/interactive/options/ViewOptions.d.ts +82 -6
- package/views/interactive/support/Units.d.ts +1 -0
- package/widgets/BasemapGallery/BasemapGalleryViewModel.d.ts +2 -2
- package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
- package/widgets/BasemapGallery/support/BasemapGalleryItem.d.ts +3 -3
- package/widgets/BasemapGallery/support/LocalBasemapsSource.d.ts +2 -2
- package/widgets/BasemapGallery/support/PortalBasemapsSource.d.ts +2 -2
- package/widgets/BasemapGallery/types.d.ts +3 -3
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
- package/widgets/BatchAttributeForm/expressions/ExpressionsManager.js +1 -1
- package/widgets/BatchAttributeForm/expressions/expressionUtils.js +1 -1
- package/widgets/BatchAttributeForm/inputs/FieldInput.d.ts +6 -0
- package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/DynamicChoiceController.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/Editor/EditorViewModel.d.ts +13 -8
- package/widgets/Editor.d.ts +9 -9
- package/widgets/FeatureForm.d.ts +2 -2
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/Sketch/SketchViewModel.d.ts +13 -8
- package/widgets/Sketch.d.ts +9 -9
- package/assets/esri/core/workers/chunks/14a3808427deaaa85bf2.js +0 -1
- package/assets/esri/core/workers/chunks/1b551ef3d84d9c1e93f9.js +0 -1
- package/assets/esri/core/workers/chunks/260dcb79dfd0f981949f.js +0 -1
- package/assets/esri/core/workers/chunks/303676d1b10676c9cab4.js +0 -1
- package/assets/esri/core/workers/chunks/37a636f61cfe89c6bfd1.js +0 -1
- package/assets/esri/core/workers/chunks/4097edb2ad522dff50ce.js +0 -1
- package/assets/esri/core/workers/chunks/4a0216ee6382d9276f1c.js +0 -1
- package/assets/esri/core/workers/chunks/55766692b578e60dd70e.js +0 -1742
- package/assets/esri/core/workers/chunks/57970d43cdcc5cf57a30.js +0 -1
- package/assets/esri/core/workers/chunks/5fd099ca1024707387b2.js +0 -1
- package/assets/esri/core/workers/chunks/68e24fa3f564c2a5c9fd.js +0 -1
- package/assets/esri/core/workers/chunks/8e7a33cc1f83063043f2.js +0 -1
- package/assets/esri/core/workers/chunks/a23272a7a47a95f6ddea.js +0 -1
- package/assets/esri/core/workers/chunks/cbdebdfa5f2cded29d0d.js +0 -1
- package/assets/esri/core/workers/chunks/cfae60b9d2f2939e9c16.js +0 -1
- package/assets/esri/core/workers/chunks/d56780290e0218d3e9de.js +0 -1
- package/assets/esri/core/workers/chunks/de24fc414a3f243d675e.js +0 -1
- package/assets/esri/core/workers/chunks/e22d45aeef293a5ffb78.js +0 -1
- package/assets/esri/core/workers/chunks/ea746d9bbea170719a1c.js +0 -1
- package/assets/esri/core/workers/chunks/f0c0c02730fe0d948fc1.js +0 -1
- /package/{basemaps → basemapGallery}/support/basemapCompatibilityUtils.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1737],{40876(e,t,n){n.d(t,{Eq:()=>m,G1:()=>g,Q6:()=>b,TS:()=>l,V6:()=>r,Vm:()=>f,ay:()=>o,c1:()=>p,c4:()=>a,j5:()=>u,lT:()=>d,oW:()=>h,xV:()=>_});const i={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function r(e){return!!i[e]||!!i[e.toLowerCase()]}function l(e){return i[e]??i[e.toLowerCase()]}function a(e){return[...l(e)]}function s(e,t,n){n<0&&++n,n>1&&--n;let i=6*n;return i<1?e+(t-e)*i:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function o(e,t,n,i=1){let r=(e%360+360)%360/360,l=n<=.5?n*(t+1):n+t-n*t,a=2*n-l;return[Math.round(255*s(a,l,r+1/3)),Math.round(255*s(a,l,r)),Math.round(255*s(a,l,r-1/3)),i]}function u(e){let t=e.length>5,n=t?8:4,i=(1<<n)-1,r=t?1:17,l=t?9===e.length:5===e.length,a=Number("0x"+e.slice(1));if(isNaN(a))return null;let s,o=[0,0,0,1];return l&&(s=a&i,a>>=n,o[3]=r*s/255),s=a&i,a>>=n,o[2]=r*s,s=a&i,a>>=n,o[1]=r*s,s=a&i,a>>=n,o[0]=r*s,o}function h(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{let t=parseInt(e.slice(1,2),16),n=parseInt(e.slice(2,3),16),i=parseInt(e.slice(3,4),16),r=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,n+16*n,i+16*i,(r+16*r)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function d(e){let t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){let e=t[2].split(/\s*,\s*/),n=t[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){if(e[0].endsWith("%")){let t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),c(t)}return c(e.map(e=>parseFloat(e)))}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return o(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function c(e){return e[0]=p(e[0]),e[1]=p(e[1]),e[2]=p(e[2]),e[3]=4===e.length?g(e[3]):1,e}function m(e){let t=r(e)?l(e):null;return t??=d(e),t??=h(e),t}function f(e){let t=m(e);return null==t?null:[t[0]/255,t[1]/255,t[2]/255,t[3]]}function g(e){return y(e,0,1)}function p(e){return Math.round(y(e,0,255))}function y(e,t,n){return e=Number(e),isNaN(e)?n:e<t?t:e>n?n:e}const v=1/2.2;function b(e){return e**2.2}function _(e){return e**v}n.d(t,["iw",0,v])},7762(e,t,n){var i,r=n(32198),l=n(98291),a=n(4576),s=n(65529),o=n(36563),u=n(4718),h=n(53966),d=n(93687),c=n(76030),m=n(78888),f=n(62788),g=n(10107),p=n(7695),y=n(64108),v=n(95488),b=n(12195);class _{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class M{constructor(e,t,n,i,r){this.target=e,this.added=t,this.removed=n,this.start=i,this.deleteCount=r}}const w=new d.A(()=>new _,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function T(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function x(e){return e?e instanceof N?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function F(e){if(e?.length)return e[0]}function C(e,t,n,i){let r=Math.min(e.length-n,t.length-i),l=0;for(;l<r&&e[n+l]===t[i+l];)l++;return l}function S(e,t,n,i){t&&t.forEach((t,r,l)=>{e.push(t),S(e,n.call(i,t,r,l),n,i)})}const z=new Set,V=new Set,D=new Set,I=new Map;let k=0,N=i=class extends s.nJ{static ofType(e){if(!e)return i;if(I.has(e))return I.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(let n in e.typeMap){let i=e.typeMap[n].prototype.declaredClass;t?t+=` | ${i}`:t=i}let n=class extends i{};return(0,r.Cg)([(0,p.u)({Type:e,ensureType:"function"==typeof e?(0,m.dp)(e):(0,m.aq)(e)})],n.prototype,"itemType",void 0),n=(0,r.Cg)([(0,y.$)(`esri.core.Collection<${t}>`)],n),I.set(e,n),n}static isCollection(e){return null!=e&&e instanceof i}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new v.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:k++})}normalizeCtorArgs(e){return e?(0,a.yc)(e)||e instanceof i?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?h.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,f.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,x(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,o.hA)();if("change"===e){let e=this._chgListeners,n={removed:!1,callback:t};return e.push(n),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,o.hA)(()=>{n.removed=!0,e.splice(e.indexOf(n),1)})}return super.on(e,t)}once(e,t){let n="deref"in t?()=>t.deref():()=>t,i=this.on(e,e=>{n()?.call(null,e),i.remove()});return i}add(e,t){if((0,f.gc)(this._observable),this._emitBeforeChanges(1))return this;let n=this.getNextIndex(t??null);return this._splice(n,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,f.gc)(this._observable),!e?.length||this._emitBeforeChanges(1))return this;let n=this.getNextIndex(t);return this._splice(n,0,x(e)),this._emitAfterChanges(1),this}at(e){if((0,f.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];let e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,f.gc)(this._observable),this._createNewInstance({items:this._items.map(u.o8)})}concat(...e){(0,f.gc)(this._observable);let t=e.map(x);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let n=this._splice(0,this.length),i=n.length;for(let r=0;r<i;r++)e.call(t,n[r],r,n);this._emitAfterChanges(2)}destroyAll(){this.drain(T)}destroyMany(e){let t=this.removeMany(e);return t.forEach(T),t}every(e,t){return(0,f.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,f.gc)(this._observable);let n=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:n})}find(e,t){return(0,f.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,f.gc)(this._observable),this._items.findIndex(e,t)}findLast(e,t){return(0,f.gc)(this._observable),this._items.findLast(e,t)}findLastIndex(e,t){return(0,f.gc)(this._observable),this._items.findLastIndex(e,t)}flatten(e,t){(0,f.gc)(this._observable);let n=[];return S(n,this,e,t),new i(n)}forEach(e,t){return(0,f.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,f.gc)(this._observable),this._items[e]}getNextIndex(e){(0,f.gc)(this._observable);let t=this.length;return e??=t,e<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,f.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,f.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,f.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,f.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,f.gc)(this._observable);let n=this._items.map(e,t);return new i({items:n})}reorder(e,t=this.length-1){(0,f.gc)(this._observable);let n=this.indexOf(e);if(-1!==n){if(t<0?t=0:t>=this.length&&(t=this.length-1),n!==t){if(this._emitBeforeChanges(4))return e;this._splice(n,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let e=F(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,f.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,f.gc)(this._observable);let n=this._items;return 2===arguments.length?n.reduce(e,t):n.reduce(e)}reduceRight(e,t){(0,f.gc)(this._observable);let n=this._items;return 2===arguments.length?n.reduceRight(e,t):n.reduceRight(e)}remove(e){return(0,f.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,f.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;let t=F(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,f.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];let t=e instanceof i?e.toArray():e,n=this._items,r=[],l=t.length;for(let e=0;e<l;e++){let i=t[e],l=n.indexOf(i);if(l>-1){let i=1+C(t,n,e+1,l+1),a=this._splice(l,i);a&&a.length>0&&r.push.apply(r,a),e+=i-1}}return this._emitAfterChanges(2),r}reverse(){if((0,f.gc)(this._observable),this._emitBeforeChanges(4))return this;let e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let e=F(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,f.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,f.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;let t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){let t=this.length-1;for(let n=0;n<t;n++)if(e(this.items[n],this.items[n+1])>0)return!0;return!1}splice(e,t,...n){(0,f.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;let i=(t?2:0)|!!n.length;if(this._emitBeforeChanges(i))return[];let r=this._splice(e,t,n)||[];return this._emitAfterChanges(i),r}toArray(){return(0,f.gc)(this._observable),this._items.slice()}toJSON(e){return(0,f.gc)(this._observable),this.toArray().map(t=>(0,b.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,f.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,f.gc)(this._observable),this._items.toString()}unshift(...e){return(0,f.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,n){let i,r,l=this._items,a=this.itemType;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,c._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(r=l.splice(e,t),this.hasEventListener("before-remove")){let t=w.acquire();t.target=this,t.cancellable=!0;for(let n=0,a=r.length;n<a;n++)i=r[n],t.reset(i),this.emit("before-remove",t),t.defaultPrevented&&(r.splice(n,1),l.splice(e,0,i),e+=1,--n,--a);w.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){let e=w.acquire();e.target=this,e.cancellable=!1;let t=r.length;for(let n=0;n<t;n++)e.reset(r[n]),this.emit("after-remove",e);w.release(e)}}if(n?.length){if(a){let e=[];for(let t of n){let n=a.ensureType(t);(null!=n||null==t)&&e.push(n)}n=e}let t=this.hasEventListener("before-add"),i=this.hasEventListener("after-add"),r=e===this.length;if(t||i){let a=w.acquire();a.target=this,a.cancellable=!0;let s=w.acquire();s.target=this,s.cancellable=!1;for(let o of n)t?(a.reset(o),this.emit("before-add",a),a.defaultPrevented||(r?l.push(o):l.splice(e++,0,o),this._length=l.length,i&&(s.reset(o),this.emit("after-add",s)))):(r?l.push(o):l.splice(e++,0,o),this._length=l.length,s.reset(o),this.emit("after-add",s));w.release(s),w.release(a)}else{if(r)for(let e of n)l.push(e);else l.splice(e,0,...n);this._length=l.length}}if((n?.length||r?.length)&&this._notifyChangeEvent(n,r),this.hasEventListener("after-splice")){let i=new M(this,n,r,e,t);this.emit("after-splice",i)}return r}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){let n=w.acquire();n.target=this,n.cancellable=!0,n.type=e,this.emit("before-changes",n),t=n.defaultPrevented,w.release(n)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){let t=w.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),w.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&=(this._timer.remove(),null),this._updating=!1,!this._notifications)return;let e=this._notifications;this._notifications=null;for(let t of e){let e=t.changes;z.clear(),V.clear(),D.clear();for(let{added:t,removed:n}of e){if(t)if(0===D.size&&0===V.size)for(let e of t)z.add(e);else for(let e of t)V.has(e)?(D.add(e),V.delete(e)):D.has(e)||z.add(e);if(n)if(0===D.size&&0===z.size)for(let e of n)V.add(e);else for(let e of n)z.has(e)?z.delete(e):(D.delete(e),V.add(e))}let n=l.A.acquire();z.forEach(e=>{n.push(e)});let i=l.A.acquire();V.forEach(e=>{i.push(e)});let r=this._items,a=t.items,s=l.A.acquire();if(D.forEach(e=>{a.indexOf(e)!==r.indexOf(e)&&s.push(e)}),t.listeners&&(n.length||i.length||s.length)){let e={target:this,added:n,removed:i,moved:s},r=t.listeners.length;for(let n=0;n<r;n++){let i=t.listeners[n];i.removed||i.callback.call(this,e)}}l.A.release(n),l.A.release(i),l.A.release(s)}z.clear(),V.clear(),D.clear()}};(0,r.Cg)([(0,g.MZ)()],N.prototype,"_updating",void 0),(0,r.Cg)([(0,g.MZ)()],N.prototype,"_length",void 0),(0,r.Cg)([(0,g.MZ)()],N.prototype,"length",null),(0,r.Cg)([(0,g.MZ)()],N.prototype,"items",null),(0,r.Cg)([(0,g.MZ)({readOnly:!0})],N.prototype,"updating",null),N=i=(0,r.Cg)([(0,y.$)("esri.core.Collection")],N);const L=N;n.d(t,["A",0,L])},7695(e,t,n){function i(e){return(t,n)=>{t[n]=e}}n.d(t,{u:()=>i})},91829(e,t,n){function i(){return[0,0,0,0]}function r(e,t,n,i){return[e,t,n,i]}function l(){return r(1,1,1,1)}function a(){return r(1,0,0,0)}function s(){return r(0,1,0,0)}function o(){return r(0,0,1,0)}function u(){return r(0,0,0,1)}n.d(t,{_Y:()=>u,fA:()=>r,vt:()=>i});const h=[0,0,0,0],d=l(),c=a(),m=s(),f=o(),g=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_W:g,UNIT_X:c,UNIT_Y:m,UNIT_Z:f,ZEROS:h,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:i,freeze:function(e,t,n,i){return[e,t,n,i]},fromArray:function(e,t=[0,0,0,0]){let n=Math.min(4,e.length);for(let i=0;i<n;++i)t[i]=e[i];return t},fromValues:r,ones:l,unitW:u,unitX:a,unitY:s,unitZ:o,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(t,["Un",0,d,"uY",0,h])},78955(e,t,n){n.d(t,{Bw:()=>p,C:()=>r,Cc:()=>_,LI:()=>c,Om:()=>b,S8:()=>v,T9:()=>d,WQ:()=>a,Z0:()=>M,aI:()=>T,hG:()=>g,hZ:()=>l,hs:()=>m,jk:()=>h,m3:()=>y,t2:()=>w});var i=n(34304);function r(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function l(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=i,e[3]=r,e}function a(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e}function s(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e}function o(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e[3]=t[3]*n[3],e}function u(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e[3]=t[3]/n[3],e}function h(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e[3]=Math.min(t[3],n[3]),e}function d(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e[3]=Math.max(t[3],n[3]),e}function c(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function m(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e}function f(e,t){let n=t[0]-e[0],i=t[1]-e[1],r=t[2]-e[2],l=t[3]-e[3];return Math.sqrt(n*n+i*i+r*r+l*l)}function g(e,t){let n=t[0]-e[0],i=t[1]-e[1],r=t[2]-e[2],l=t[3]-e[3];return n*n+i*i+r*r+l*l}function p(e){let t=e[0],n=e[1],i=e[2],r=e[3];return Math.sqrt(t*t+n*n+i*i+r*r)}function y(e){let t=e[0],n=e[1],i=e[2],r=e[3];return t*t+n*n+i*i+r*r}function v(e,t){let n=t[0],i=t[1],r=t[2],l=t[3],a=n*n+i*i+r*r+l*l;return a>0&&(a=1/Math.sqrt(a),e[0]=n*a,e[1]=i*a,e[2]=r*a,e[3]=l*a),e}function b(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function _(e,t,n,i){let r=t[0],l=t[1],a=t[2],s=t[3];return e[0]=r+i*(n[0]-r),e[1]=l+i*(n[1]-l),e[2]=a+i*(n[2]-a),e[3]=s+i*(n[3]-s),e}function M(e,t,n){let i=t[0],r=t[1],l=t[2],a=t[3];return e[0]=n[0]*i+n[4]*r+n[8]*l+n[12]*a,e[1]=n[1]*i+n[5]*r+n[9]*l+n[13]*a,e[2]=n[2]*i+n[6]*r+n[10]*l+n[14]*a,e[3]=n[3]*i+n[7]*r+n[11]*l+n[15]*a,e}function w(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function T(e,t){let n=e[0],r=e[1],l=e[2],a=e[3],s=t[0],o=t[1],u=t[2],h=t[3],d=(0,i.FD)();return Math.abs(n-s)<=d*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-o)<=d*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(l-u)<=d*Math.max(1,Math.abs(l),Math.abs(u))&&Math.abs(a-h)<=d*Math.max(1,Math.abs(a),Math.abs(h))}const x=s,F=o,C=u,S=f,z=g,V=p,D=y;Object.freeze(Object.defineProperty({__proto__:null,add:a,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:r,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:S,distance:f,div:C,divide:u,dot:b,equals:T,exactEquals:w,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:V,length:p,lerp:_,max:d,min:h,mul:F,multiply:o,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:v,random:function(e,t=1){let n,r,l,a,s,o,u=i.Ov;do{n=2*u()-1,r=2*u()-1,s=n*n+r*r}while(s>=1);do{l=2*u()-1,a=2*u()-1,o=l*l+a*a}while(o>=1);let h=Math.sqrt((1-s)/o);return e[0]=t*n,e[1]=t*r,e[2]=t*l*h,e[3]=t*a*h,e},round:c,scale:m,scaleAndAdd:function(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e[2]=t[2]+n[2]*i,e[3]=t[3]+n[3]*i,e},set:l,sqrDist:z,sqrLen:D,squaredDistance:g,squaredLength:y,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:x,subtract:s,transformMat4:M,transformQuat:function(e,t,n){let i=t[0],r=t[1],l=t[2],a=n[0],s=n[1],o=n[2],u=n[3],h=u*i+s*l-o*r,d=u*r+o*i-a*l,c=u*l+a*r-s*i,m=-a*i-s*r-o*l;return e[0]=h*u+m*-a+d*-o-c*-s,e[1]=d*u+m*-s+c*-a-h*-o,e[2]=c*u+m*-o+h*-s-d*-a,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},90629(e,t,n){n.d(t,{Lz:()=>r,PN:()=>l,cr:()=>a,gs:()=>o,r_:()=>u,tc:()=>s}),n(39829);const i=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function r(e){return e?e/72*96:0}function l(e){return e?72*e/96:0}function a(e){if("string"==typeof e){let t=e.match(i);if(t){let n=Number(t[1]),i=t[3]&&t[3].toLowerCase(),r=e.startsWith("-"),a="px"===i?l(n):n;return r?-a:a}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function s(e=0,t=0){return{x:e,y:t}}function o(e=0,t=0){return[e,t]}function u(e=0,t=0,n=0){return[e,t,n]}},88930(e,t,n){n.d(t,{S1:()=>s,VW:()=>o,lL:()=>u,rb:()=>h,t:()=>d});var i=n(97770),r=(n(98623),n(34747));const l=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,a={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function s(e,t,n,l="system"){if("unknown"===n)return e;let a=new r.oh((0,i.wj)(l)),s=r.c9.fromJSDate(e,{zone:a}),o="decades"===n||"centuries"===n?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(n);return"decades"===n&&(t*=10),"centuries"===n&&(t*=100),s.plus({[o]:t}).toJSDate()}function o(e,t,n="milliseconds"){let i=e.getTime(),r=d(t,n,"milliseconds");return new Date(i+r)}function u(e,t,n="system"){let{unit:l}=t,a=Math.max(1,Math.trunc(t.value)),s=new r.oh((0,i.wj)(n)),o=r.c9.fromJSDate(e,{zone:s}),u=e=>e-e%a;switch(l){case"milliseconds":return o.startOf("second").plus({millisecond:u(o.millisecond)}).toJSDate();case"seconds":return o.startOf("minute").plus({second:u(o.second)}).toJSDate();case"minutes":return o.startOf("hour").plus({minute:u(o.minute)}).toJSDate();case"hours":return o.startOf("day").plus({hour:u(o.hour)}).toJSDate();case"days":return o.startOf("month").plus({day:u(o.day-1)}).toJSDate();case"weeks":{let e=o.startOf("year").startOf("week"),t=Math.floor(o.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return o.startOf("year").plus({month:u(o.month-1)}).toJSDate();case"years":case"decades":case"centuries":{let e=o.startOf("year"),t=("decades"===l?10:"centuries"===l?100:1)*a,n=e.year-e.year%t;return e.set({year:n}).toJSDate()}case"unknown":return e}}function h(e){let t=l.exec(e);if(!t)return null;let{hh:n,mm:i,ss:r,ms:s}=t.groups;return Number(n)*a.hours+Number(i)*a.minutes+Number(r||0)*a.seconds+Number(s||0)}function d(e,t,n){return 0===e?0:e*a[t]/a[n]}},62577(e,t,n){function i(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance,1,1]:[1,1,1,1],translate:null==e.extent?[0,0,0,0]:[e.extent.xmin,e.extent.ymax,e.extent.zmin??0,e.extent.mmin??0]}:null}function r(e){if(function(e){return"lowerLeft"===e.originPosition&&4===e.scale.length&&4===e.translate.length}(e))return e;let{originPosition:t,scale:n,translate:i}=e,r=n[0]??1,l=n[1]??1;return{originPosition:"lowerLeft",scale:[r,"lowerLeft"===t?l:-l,n[2]??1,n[3]??1],translate:[i[0]??0,i[1]??0,i[2]??0,i[3]??0]}}function l({scale:e,translate:t},n){return Math.round((n-t[0])/e[0])}function a({scale:e,translate:t},n){return Math.round((n-t[1])/e[1])}function s({scale:e,translate:t},n){return n*e[0]+t[0]}function o({scale:e,translate:t},n){return n*e[1]+t[1]}function u({scale:e,translate:t},n){return(n??0)*e[2]+t[2]}function h({scale:e,translate:t},n){return n?n*e[3]+t[3]:0}function d(e,t){return e&&t?g:e&&!t?m:!e&&t?f:c}n.d(t,{$X:()=>_,B2:()=>a,Gy:()=>y,IE:()=>l,P5:()=>M,Q1:()=>r,SW:()=>v,Tr:()=>b,VV:()=>i});const c=(e,t)=>{let n=Array(t.length);if(!t.length)return n;let i=t[0],r=s(e,i[0]),l=o(e,i[1]);n[0]=[r,l];let{scale:a,originPosition:u}=e,h=a[0],d="lowerLeft"===u?a[1]:-a[1];for(let e=1;e<t.length;e++){let[i,a]=t[e];r+=h*i,l+=d*a,n[e]=[r,l]}return n},m=(e,t)=>{let n=Array(t.length);if(!t.length)return n;let i=t[0],r=s(e,i[0]),l=o(e,i[1]);n[0]=[r,l,u(e,i[2])];let{scale:a,originPosition:h}=e,d=a[0],c="lowerLeft"===h?a[1]:-a[1];for(let i=1;i<t.length;i++){let[a,s,o]=t[i];r+=d*a,l+=c*s,n[i]=[r,l,u(e,o)]}return n},f=(e,t)=>{let n=Array(t.length);if(!t.length)return n;let i=t[0],r=s(e,i[0]),l=o(e,i[1]);n[0]=[r,l,h(e,i[2])];let{scale:a,originPosition:u}=e,d=a[0],c="lowerLeft"===u?a[1]:-a[1];for(let i=1;i<t.length;i++){let[a,s,o]=t[i];r+=d*a,l+=c*s,n[i]=[r,l,h(e,o)]}return n},g=(e,t)=>{let n=Array(t.length);if(!t.length)return n;let i=t[0],r=s(e,i[0]),l=o(e,i[1]);n[0]=[r,l,u(e,i[2]),h(e,i[3])];let{scale:a,originPosition:d}=e,c=a[0],m="lowerLeft"===d?a[1]:-a[1];for(let i=1;i<t.length;i++){let[a,s,o,d]=t[i];r+=c*a,l+=m*s,n[i]=[r,l,u(e,o),h(e,d)]}return n};function p(e,t,n){let i=Array(n.length);for(let r=0;r<n.length;r++)i[r]=t(e,n[r]);return i}function y(e,t,n){let i=r(e);return t.x=l(i,n.x),t.y=a(i,n.y),null!=n.z&&(t.z=function({scale:e,translate:t},n){return Math.round(((n??0)-t[2])/e[2])}(i,n.z)),null!=n.m&&(t.m=function({scale:e,translate:t},n){return n?Math.round((n-t[3])/e[3]):0}(i,n.m)),t}function v(e,t,n,i=n?.hasZ??!1,l=n?.hasM??!1){if(null!=n){let a=r(e);t.points=d(i,l)(a,n.points),t.hasZ=i,t.hasM=l}return t}function b(e,t,n,i=null!=n?.z,l=null!=n?.m){if(null==n)return t;let a=r(e);return t.x=s(a,n.x),t.y=o(a,n.y),i&&(t.z=u(a,n.z)),l&&(t.m=h(a,n.m)),t}function _(e,t,n,i=n?.hasZ??!1,l=n?.hasM??!1){return null!=n&&(t.rings=p(r(e),d(i,l),n.rings),t.hasZ=i,t.hasM=l),t}function M(e,t,n,i=n?.hasZ??!1,l=n?.hasM??!1){return null!=n&&(t.paths=p(r(e),d(i,l),n.paths),t.hasZ=i,t.hasM=l),t}},97770(e,t,n){n.d(t,{Ey:()=>D,F8:()=>V,J2:()=>F,Yq:()=>S,_m:()=>C,iS:()=>z,wj:()=>I});var i=n(66552),r=n(73444),l=n(98623),a=n(34747);const s={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},o={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:"UTC"},h={year:"numeric",month:"numeric",day:"numeric"},d={year:"numeric",month:"long",day:"numeric"},c={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},f={hour:"numeric",minute:"numeric"},g={...f,second:"numeric"},p={hourCycle:"h23"},y={...f,...p},v={...g,...p},b={"short-date":h,"short-date-short-time":{...h,...f},"short-date-short-time-24":{...h,...y},"short-date-long-time":{...h,...g},"short-date-long-time-24":{...h,...v},"short-date-le":h,"short-date-le-short-time":{...h,...f},"short-date-le-short-time-24":{...h,...y},"short-date-le-long-time":{...h,...g},"short-date-le-long-time-24":{...h,...v},"long-month-day-year":d,"long-month-day-year-short-time":{...d,...f},"long-month-day-year-short-time-24":{...d,...y},"long-month-day-year-long-time":{...d,...g},"long-month-day-year-long-time-24":{...d,...v},"day-short-month-year":c,"day-short-month-year-short-time":{...c,...f},"day-short-month-year-short-time-24":{...c,...y},"day-short-month-year-long-time":{...c,...g},"day-short-month-year-long-time-24":{...c,...v},"long-date":m,"long-date-short-time":{...m,...f},"long-date-short-time-24":{...m,...y},"long-date-long-time":{...m,...g},"long-date-long-time-24":{...m,...v},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":f,"long-time":g},_=(0,i.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),M={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function w(){let e=(0,r.lR)();return(e&&M[e])??(0,r.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:e})=>"month"===e)?.value.toLowerCase()&&(M.bs="sr-Latn-CS");let T=new WeakMap;const x=b["short-date-short-time"];function F(e){return b[e]}function C(e){let{dateStyle:t,timeStyle:n,hour12:i,year:r,month:l}=e,a={};return t?a.dateStyle=t:r&&(a.year=r,a.month=l||void 0),n&&!a.year&&(a.timeStyle=n,a.hour12="auto"===i?void 0:"always"===i),a}function S(e,t=x){return function(e){let t=T.get(e);if(!t){let n=w(),i=I(e.timeZone??"system"),r={...e,timeZone:i};t=new Intl.DateTimeFormat(n,r),T.set(e,t)}return t}(t).format(e)}function z(e,t=x){return S(new Date(e),{...t,...u,...o})}function V(e,t=x){return S(new Date(`1970-01-01T${e}Z`),{...t,...u,...s})}function D(e,t=x){let n=a.c9.fromISO(e,{setZone:!0});if(!n.isValid)return e;if(t.timeZone)return S(n.toJSDate(),t);let i=0===n.offset?"UTC":t.timeZone,r={...t,timeZone:i};return n.toLocaleString(r,{locale:w()})}function I(e){switch(e){case"system":return l.N;case l.L:return"UTC";default:return e}}(0,r.Ml)(()=>{T=new WeakMap}),n.d(t,["_v",0,_])},73444(e,t,n){n.d(t,{JK:()=>o,Ml:()=>p,QC:()=>d,lR:()=>h,oQ:()=>f});var i=n(36563);let r;n(44208);const l=globalThis.esriConfig?.locale,a=globalThis.document?.documentElement;function s(){let e=a?.getAttribute("lang"),t=globalThis.navigator?.language;return l??e??t??"en"}function o(){return void 0===r&&(r=s()),r}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function h(e=o()){return c(e)?.language}function d(e=o()){let t=c(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function c(e=o()){return u.exec(e)?.groups}const m=[];function f(e){return m.push(e),(0,i.hA)(()=>{m.splice(m.indexOf(e),1)})}new Map;const g=[];function p(e){return g.push(e),(0,i.hA)(()=>g.splice(g.indexOf(e),1))}function y(){let e=s();r!==e&&([...g].forEach(t=>t(e)),r=e,[...m].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",y),a&&new MutationObserver(()=>{y()}).observe(a,{attributeFilter:["lang"]})},95466(e,t,n){n.d(t,{A:()=>u});var i=n(49186),r=n(53966),l=n(12195),a=n(30524),s=n(98623),o=n(56400);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],d(e))}static fromLayerJSON(e){return new u(e.fields??[],d(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;let n=[];for(let e of this.fields){let t=e?.name,i=(0,a.GZ)(t);if(t&&i){let r=(0,a.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(r,e),this._normalizedFieldsMap.set(i,e),n.push(`${r}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),!(0,a.te)(e)&&!(0,a.Xz)(e)&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}n.sort(),this.uid=n.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(let e of this.fields)!(0,a.te)(e)&&!(0,a.Xz)(e)&&!e.nullable&&void 0===(0,a.lD)(e)&&this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,a.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){let t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(r.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):h.has(t.type)?s.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,l.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const h=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function d(e){let t=new Map;if(!e.fields)return t;let n=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:r}=e,l=(i?"startField"in i?i.startField:i.startTimeField:"")??"",u=(i?"endField"in i?i.endField:i.endTimeField:"")??"",d=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,o.ZS)(e.dateFieldsTimeReference):null,c=r?function(e){return"timeZone"in e}(r)?r.timeZone??d:r.dateFieldsTimeReference?(0,o.ZS)(r.dateFieldsTimeReference):d??"UTC":null,m=i?function(e){return"timeZone"in e}(i)?i.timeZone??d:i.timeReference?(0,o.ZS)(i.timeReference):d:null,f=new Map([[(0,a.NF)(r?.creationDateField??""),c],[(0,a.NF)(r?.editDateField??""),c],[(0,a.NF)(l),m],[(0,a.NF)(u),m]]);for(let{name:i,type:r}of e.fields)if(h.has(r))t.set(i,s.L);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(i,null);else if(n)t.set(i,s.L);else{let e=f.get((0,a.NF)(i??""))??d;t.set(i,e)}return t}},61760(e,t,n){n.d(t,{PU:()=>l,YW:()=>s,hv:()=>a,zp:()=>r}),n(34727);var i=n(90629);function r(e){return(0,i.PN)(2.4*e)}function l(e){return(0,i.Lz)(e)/2.4}function a(e,t,n){let i=Math.sqrt(e**2+t**2)/n;return i>1?0:3/(Math.PI*n**2)*(1-i**2)**2}function s(e){return"function"==typeof e?e:e?t=>+t[e]:()=>1}n(78955),n(91829)},9760(e,t,n){n.d(t,{A:()=>h});var i=n(32198),r=n(66552),l=n(25482),a=n(91429),s=n(93223);const o=new r.J({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),u=new r.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let h=class extends l.o{constructor(e){super(e),this.type="class-breaks-definition",this.breakCount=null,this.classificationField=null,this.classificationMethod=null,this.normalizationField=null,this.normalizationType=null}set standardDeviationInterval(e){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",e)}set definedInterval(e){"defined-interval"===this.classificationMethod&&this._set("definedInterval",e)}};(0,i.Cg)([(0,s.e)({classBreaksDef:"class-breaks-definition"})],h.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"breakCount",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"classificationField",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{read:o.read,write:o.write}})],h.prototype,"classificationMethod",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"normalizationField",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:u.read,write:u.write}})],h.prototype,"normalizationType",void 0),(0,i.Cg)([(0,a.MZ)({value:null,json:{write:!0}})],h.prototype,"standardDeviationInterval",null),(0,i.Cg)([(0,a.MZ)({value:null,json:{write:!0}})],h.prototype,"definedInterval",null),h=(0,i.Cg)([(0,a.$K)("esri.rest.support.ClassBreaksDefinition")],h)},84892(e,t,n){n.d(t,{t:()=>l});var i=n(53966);function r(e,t){return Number(e.toFixed(t))}function l(e,t){let{normalizationTotal:n}=e;return{classBreaks:a(e,t),normalizationTotal:n}}function a(e,t){let n=e.definition,{classificationMethod:i,normalizationType:l,definedInterval:a}=n,u=n.breakCount??1,h=[],d=e.values;if(0===d.length)return[];d=d.sort((e,t)=>e-t);let[c,m]=t??[d.at(0),d.at(-1)];if("equal-interval"===i)if(d.length>=u){let e=(m-c)/u,t=c;for(let n=1;n<u;n++){let i=r(c+n*e,6);h.push({minValue:t,maxValue:i,label:s(t,i,l)}),t=i}h.push({minValue:t,maxValue:m,label:s(t,m,l)})}else d.forEach(e=>{h.push({minValue:e,maxValue:e,label:s(e,e,l)})});else if("natural-breaks"===i){let t=function(e){let t=[],n=[],i=Number.MIN_VALUE,r=1,l=-1;for(let a=0;a<e.length;a++){let s=e[a];s===i?(r++,n[l]=r):null!==s&&(t.push(s),i=s,r=1,n.push(r),l++)}return{uniqueValues:t,valueFrequency:n}}(d),n=e.valueFrequency||t.valueFrequency,i=o(t.uniqueValues,n,u),a=c;for(let e=1;e<u;e++)if(t.uniqueValues.length>e){let n=r(t.uniqueValues[i[e]],6);h.push({minValue:a,maxValue:n,label:s(a,n,l)}),a=n}h.push({minValue:a,maxValue:m,label:s(a,m,l)})}else if("quantile"===i)if(d.length>=u&&c!==m){let e=c,t=Math.ceil(d.length/u),n=0;for(let i=1;i<u;i++){let r=t+n-1;r>d.length&&(r=d.length-1),r<0&&(r=0),h.push({minValue:e,maxValue:d[r],label:s(e,d[r],l)}),e=d[r],n+=t,t=Math.ceil((d.length-n)/(u-i))}h.push({minValue:e,maxValue:m,label:s(e,m,l)})}else{let e=-1;for(let t=0;t<d.length;t++){let n=d[t];n!==e&&(e=n,h.push({minValue:e,maxValue:n,label:s(e,n,l)}),e=n)}}else if("standard-deviation"===i){let e=function(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t/=e.length,t}(d),t=function(e,t){let n=0;for(let i=0;i<e.length;i++){let r=e[i];n+=(r-t)*(r-t)}return n/=e.length,Math.sqrt(n)}(d,e);if(0===t)h.push({minValue:d[0],maxValue:d[0],label:s(d[0],d[0],l)});else{let n=function(e,t,n,i,r){let l=Math.max(i-e,t-i)/r/n;return l=l>=1?1:l>=.5?.5:.25,l}(c,m,u,e,t)*t,i=0,a=c;for(let t=u;t>=1;t--){let o=r(e-(t-.5)*n,6);h.push({minValue:a,maxValue:o,label:s(a,o,l)}),a=o,i++}let o=r(e+.5*n,6);h.push({minValue:a,maxValue:o,label:s(a,o,l)}),a=o,i++;for(let t=1;t<=u;t++)o=i===2*u?m:r(e+(t+.5)*n,6),h.push({minValue:a,maxValue:o,label:s(a,o,l)}),a=o,i++}}else if("defined-interval"===i){if(!a)return h;let[e,n]=t??[d.at(0),d.at(-1)],i=Math.ceil((n-e)/a),o=e;for(let t=1;t<i;t++){let n=r(e+t*a,6);h.push({minValue:o,maxValue:n,label:s(o,n,l)}),o=n}h.push({minValue:o,maxValue:n,label:s(o,n,l)})}return h}function s(e,t,n){let i=null;return i=e===t?n&&"percent-of-total"===n?e+"%":e.toString():n&&"percent-of-total"===n?e+"% - "+t+"%":e+" - "+t,i}function o(e,t,n){let i=e.length,r=[];n>i&&(n=i);for(let e=0;e<n;e++)r.push(Math.round(e*i/n-1));r.push(i-1);let l=u(r,e,t,n);return function(e,t,n,i,r,l){let a=0,s=0,o=0,u=0,d=!0;for(let c=0;c<2&&d;c++){0===c&&(d=!1);for(let c=0;c<l-1;c++)for(;n[c+1]+1!==n[c+2];){n[c+1]=n[c+1]+1;let l=h(c,n,i,r);o=l.sbMean,a=l.sbSdcm;let m=h(c+1,n,i,r);if(u=m.sbMean,s=m.sbSdcm,!(a+s<t[c]+t[c+1])){n[c+1]=n[c+1]-1;break}t[c]=a,t[c+1]=s,e[c]=o,e[c+1]=u,d=!0}for(let c=l-1;c>0;c--)for(;n[c]!==n[c-1]+1;){n[c]=n[c]-1;let l=h(c-1,n,i,r);o=l.sbMean,a=l.sbSdcm;let m=h(c,n,i,r);if(u=m.sbMean,s=m.sbSdcm,!(a+s<t[c-1]+t[c])){n[c]=n[c]+1;break}t[c-1]=a,t[c]=s,e[c-1]=o,e[c]=u,d=!0}}return d}(l.mean,l.sdcm,r,e,t,n)&&(l=u(r,e,t,n)),r}function u(e,t,n,i){let r=[],l=[],a=[],s=0,o=[],u=[];for(let r=0;r<i;r++){let i=h(r,e,t,n);o.push(i.sbMean),u.push(i.sbSdcm),s+=u[r]}let d,c=s,m=!0;for(;m||s<c;){m=!1,r=[];for(let t=0;t<i;t++)r.push(e[t]);for(let n=0;n<i;n++)for(let r=e[n]+1;r<=e[n+1];r++)if(d=t[r],n>0&&r!==e[n+1]&&Math.abs(d-o[n])>Math.abs(d-o[n-1]))e[n]=r;else if(n<i-1&&e[n]!==r-1&&Math.abs(d-o[n])>Math.abs(d-o[n+1])){e[n+1]=r-1;break}c=s,s=0,l=[],a=[];for(let r=0;r<i;r++){l.push(o[r]),a.push(u[r]);let i=h(r,e,t,n);o[r]=i.sbMean,u[r]=i.sbSdcm,s+=u[r]}}if(s>c){for(let t=0;t<i;t++)e[t]=r[t],o[t]=l[t],u[t]=a[t];s=c}return{mean:o,sdcm:u}}function h(e,t,n,r){let l=0,a=0;for(let i=t[e]+1;i<=t[e+1];i++){let e=r[i];l+=n[i]*e,a+=e}a<=0&&i.A.getLogger("esri.rest.support.generateRendererUtils").warn("Exception in Natural Breaks calculation");let s=l/a,o=0;for(let i=t[e]+1;i<=t[e+1];i++)o+=r[i]*(n[i]-s)**2;return{sbMean:s,sbSdcm:o}}},26412(e,t,n){n.r(t),n.d(t,{classBreaks:()=>b,heatmapStatistics:()=>M,histogram:()=>_,summaryStatistics:()=>y,uniqueValues:()=>v}),n(49186);var i=n(90629),r=n(88930),l=n(86738),a=n(16930),s=n(62577),o=n(21325),u=n(95466),h=n(30524),d=n(61760),c=n(4560),m=n(1873),f=n(43668);let g;async function p(e,t,n=!0){if(!t)return[];let i,{field:l,field2:s,field3:o,fieldDelimiter:d,sqlExpression:p,fieldInfos:y,timeZone:v}=e,b=l&&y?.find(e=>e.name.toLowerCase()===l.toLowerCase()),_=!!b&&(0,h.OH)(b),M=!!b&&(0,c.fs)(b),w=e.valueExpression,T=e.normalizationType,x=e.normalizationField,F=e.normalizationTotal,C=[],S=e.viewInfoParams,z=null;if(w){if(!g){let{arcadeUtils:e}=await(0,f.l)();g=e}g.hasGeometryOperations(w)&&await g.enableGeometryOperations(),z=g.createFunction(w),i=S?g.getViewInfo({viewingMode:S.viewingMode,scale:S.scale,spatialReference:new a.A(S.spatialReference)}):null}let V=e.fieldInfos,D=t[0]&&"declaredClass"in t[0]&&"esri.Graphic"===t[0].declaredClass||!V?null:{fields:V};for await(let e of t){let t,a=e.attributes;if(p){let n=await(0,c.j4)(p,new u.A(V));n&&(t=n.calculateValue(e.attributes))}else if(w){let n=D?Object.assign({},e,{layer:D}):e,r=g.createExecContext(n,i,v);t=g.executeFunction(z,r)}else a&&(t=a[l],s?(t=`${(0,m.gJ)(t)}${d}${(0,m.gJ)(a[s])}`,o&&(t=`${t}${d}${(0,m.gJ)(a[o])}`)):"string"==typeof t&&n&&(M?t=t?new Date(t).getTime():null:_&&(t=t?(0,r.rb)(t):null)));if(T&&"number"==typeof t&&isFinite(t)){let e=a&&parseFloat(a[x]);t=(0,m.zS)(t,T,e,F)}C.push(t)}return C}async function y(e){let{attribute:t,features:n}=e,{normalizationType:i,normalizationField:r,minValue:l,maxValue:a,fieldType:s,outStatisticTypes:o}=t,u=await p({field:t.field,valueExpression:t.valueExpression,normalizationType:i,normalizationField:r,normalizationTotal:t.normalizationTotal,viewInfoParams:t.viewInfoParams,timeZone:t.timeZone,fieldInfos:t.fieldInfos},n),h=(0,m.Vb)({normalizationType:i,normalizationField:r,minValue:l,maxValue:a}),d={value:.5,fieldType:s},c="esriFieldTypeString"===s?(0,m.z9)({values:u,supportsNullCount:h,percentileParams:d,outStatisticTypes:o}):(0,m.G_)({values:u,minValue:l,maxValue:a,useSampleStdDev:!i,supportsNullCount:h,percentileParams:d,outStatisticTypes:o});return(0,m.oZ)(c,o,"esriFieldTypeDate"===s)}async function v(e){let{attribute:t,features:n}=e,i=await p({field:t.field,field2:t.field2,field3:t.field3,fieldDelimiter:t.fieldDelimiter,valueExpression:t.valueExpression,viewInfoParams:t.viewInfoParams,timeZone:t.timeZone,fieldInfos:t.fieldInfos},n,!1),r=(0,m.b3)(i);return(0,m.lv)(r,t.domains,t.returnAllCodedValues,t.fieldDelimiter)}async function b(e){let{attribute:t,features:n}=e,{field:i,normalizationType:r,normalizationField:l,normalizationTotal:a,classificationMethod:s}=t,o=await p({field:i,valueExpression:t.valueExpression,normalizationType:r,normalizationField:l,normalizationTotal:a,viewInfoParams:t.viewInfoParams,timeZone:t.timeZone,fieldInfos:t.fieldInfos},n),u=(0,m.Rw)(o,{field:i,normalizationType:r,normalizationField:l,normalizationTotal:a,classificationMethod:s,standardDeviationInterval:t.standardDeviationInterval,numClasses:t.numClasses,minValue:t.minValue,maxValue:t.maxValue});return(0,m.jM)(u,s)}async function _(e){let{attribute:t,features:n}=e,{field:i,normalizationType:r,normalizationField:l,normalizationTotal:a,classificationMethod:s}=t,o=await p({field:i,valueExpression:t.valueExpression,sqlExpression:t.sqlExpression,normalizationType:r,normalizationField:l,normalizationTotal:a,viewInfoParams:t.viewInfoParams,timeZone:t.timeZone,fieldInfos:t.fieldInfos},n);return(0,m.$y)(o,{field:i,normalizationType:r,normalizationField:l,normalizationTotal:a,classificationMethod:s,standardDeviationInterval:t.standardDeviationInterval,numBins:t.numBins,minValue:t.minValue,maxValue:t.maxValue})}async function M(e){let{attribute:t,features:n}=e,{field:r,radius:a,transform:u,spatialReference:h}=t,c=t.size??[0,0],m=function(e,t,n,i){let r=(0,o.d9)(n)?(0,o.Vp)(n):null,a=r?Math.round((r.valid[1]-r.valid[0])/t.scale[0]):null;return e.map(e=>{let n=new l.A(e.geometry);return(0,s.Gy)(t,n,n),e.geometry=r?function(e,t,n){return e.x<0?e.x+=t:e.x>n&&(e.x-=t),e}(n,a??0,i[0]):n,e})}(n??[],u,h,c);return function(e,t=18,n,r,l){let a=new Float64Array(r*l);t=Math.round((0,i.Lz)(t));let s=1/0,o=-1/0,u=(0,d.YW)(n);for(let{geometry:n,attributes:i}of e){let{x:e,y:h}=n,c=Math.max(0,e-t),m=Math.max(0,h-t),f=Math.min(l,h+t),g=Math.min(r,e+t),p=+u(i);for(let n=m;n<f;n++)for(let i=c;i<g;i++){let l=n*r+i,u=(0,d.hv)(i-e,n-h,t)*p,c=a[l]+=u;s=Math.min(s,c),o=Math.max(o,c)}}return{min:s,max:o}}(m,a??void 0,r,c[0],c[1])}},4560(e,t,n){n.d(t,{i0:()=>u,j4:()=>o,fs:()=>s});var i=n(97770),r=n(30524);n(7762),n(84952),n(27865),n(43281),n(98623);var l=n(56400);let a;function s(e){return(0,r.vE)(e)||(0,r.zD)(e)||(0,r.Ah)(e)}async function o(e,t){return e?(a||=new(await Promise.all([n.e(9696),n.e(2867)]).then(()=>n(44123)).then(e=>e.WhereClauseCache))(50,500),a.get(e,t)):null}function u(e,t){let n,r,{format:a,fieldFormat:s,timeZoneOptions:o,fieldType:u}=t??{},h=s?(0,i._m)(s):null;if(o&&({timeZone:n,timeZoneName:r}=(0,l.hv)(o.layerTimeZone,o.datesInUnknownTimezone,o.viewTimeZone,h||(0,i.J2)(a||"short-date-short-time"),u)),"string"==typeof e&&isNaN(Date.parse("time-only"===u?`1970-01-01T${e}Z`:e)))return e;switch(u){case"date-only":{let t=h||(0,i.J2)(a||"short-date");return"string"==typeof e?(0,i.iS)(e,{...t}):(0,i.Yq)(e,{...t,timeZone:"UTC"})}case"time-only":{let t=h||(0,i.J2)(a||"short-time");return"string"==typeof e?(0,i.F8)(e,t):(0,i.Yq)(e,{...t,timeZone:"UTC"})}case"timestamp-offset":{let t=a||h||o?h||(0,i.J2)(a||"short-date-short-time"):void 0,l=t?{...t,timeZone:n,timeZoneName:r}:void 0;return"string"==typeof e?(0,i.Ey)(e,l):(0,i.Yq)(e,l)}default:{let t=a||h||o?h||(0,i.J2)(a||"short-date-short-time"):void 0;return(0,i.Yq)("string"==typeof e?new Date(e):e,t?{...t,timeZone:n,timeZoneName:r}:void 0)}}}new Set(["integer","small-integer"])},1873(e,t,n){n.d(t,{$y:()=>L,Ak:()=>A,FM:()=>f,G_:()=>c,Rw:()=>k,Vb:()=>h,b3:()=>z,gJ:()=>u,jM:()=>N,lv:()=>D,oZ:()=>S,qg:()=>m,sU:()=>Z,z9:()=>d,zS:()=>I});var i=n(9760),r=n(84892);const l=/\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*/gi,a=new Set(["esriFieldTypeDate","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeOID","esriFieldTypeBigInteger"]),s=new Set(["esriFieldTypeTimeOnly","esriFieldTypeDateOnly"]),o=["min","max","avg","stddev","count","sum","variance","nullcount","median"];function u(e){return null==e||"string"==typeof e&&!e?"<Null>":e}function h(e){let t=null!=e.normalizationField||null!=e.normalizationType,n=null!=e.minValue||null!=e.maxValue,i=!!e.sqlExpression&&e.supportsSQLExpression;return!t&&!n&&!i}function d(e){let{outStatisticTypes:t}=e,n=e.returnDistinct?[...new Set(e.values)]:e.values,i=n.filter(e=>null!=e).sort(),r=i.length,l={count:r,min:i[0],max:i[r-1]};return e.supportsNullCount&&(l.nullcount=n.length-r),e.percentileParams&&(!t?.include?.length||t.include.includes("median"))&&(!t?.exclude?.length||!t.exclude.includes("median"))&&(l.median=m(n,e.percentileParams)),l}function c(e){let{values:t,useSampleStdDev:n,supportsNullCount:i,outStatisticTypes:r}=e,l=1/0,a=-1/0,s=null,o=null,u=null,h=null,d=0,c=null==e.minValue?-1/0:e.minValue,f=null==e.maxValue?1/0:e.maxValue;for(let e of t)Number.isFinite(e)?e>=c&&e<=f&&(s=null===s?e:s+e,l=Math.min(l,e),a=Math.max(a,e),d++):"string"==typeof e&&d++;if(d&&null!=s){o=s/d;let e=0;for(let n of t)Number.isFinite(n)&&n>=c&&n<=f&&(e+=(n-o)**2);h=n?d>1?e/(d-1):0:d>0?e/d:0,u=Math.sqrt(h)}else l=null,a=null;let g={avg:o,count:d,max:a,min:l,stddev:u,sum:s,variance:h};return i&&(g.nullcount=t.length-d),e.percentileParams&&(!r?.include?.length||r.include.includes("median"))&&(!r?.exclude?.length||!r.exclude.includes("median"))&&(g.median=m(t,e.percentileParams)),g}function m(e,t){let{fieldType:n,value:i,orderBy:r,isDiscrete:l}=t,a=f(n,"desc"===r,"case-insensitive");if(e=[...e].filter(e=>null!=e).sort((e,t)=>a(e,t)),0===e.length)return null;if(i<=0)return e[0];if(i>=1)return e[e.length-1];let s=(e.length-1)*i,o=Math.floor(s),u=o+1,h=s%1,d=e[o],c=e[u];return u>=e.length||l||"string"==typeof d||"string"==typeof c?d:d*(1-h)+c*h}function f(e,t,n="case-sensitive"){if(e){if(a.has(e))return F(t);if(s.has(e))return w(t,!0);if("esriFieldTypeTimestampOffset"===e)return function(e){return e?b:v}(t);let i=w(t,"case-sensitive"===n);if("esriFieldTypeString"===e)return i;if("esriFieldTypeGUID"===e||"esriFieldTypeGlobalID"===e)return(e,t)=>i(C(e),C(t))}let i=t?1:-1,r=F(t),l=w(t,"case-sensitive"===n),o=y(t);return(e,t)=>"number"==typeof e&&"number"==typeof t?r(e,t):"string"==typeof e&&"string"==typeof t?l(e,t):o(e,t)??i}const g=(e,t)=>null==e?null==t?0:1:null==t?-1:null,p=(e,t)=>null==e?null==t?0:-1:null==t?1:null;function y(e){return e?g:p}const v=(e,t)=>p(e,t)??(e===t?0:new Date(e).getTime()-new Date(t).getTime()),b=(e,t)=>g(e,t)??(e===t?0:new Date(t).getTime()-new Date(e).getTime()),_=(e,t)=>p(e,t)??(e===t?0:e<t?-1:1),M=(e,t)=>g(e,t)??(e===t?0:e<t?1:-1);function w(e,t){if(t)return e?M:_;let n=y(e);return e?(e,t)=>n(e,t)??((e=e.toUpperCase())>(t=t.toUpperCase())?-1:+(e<t)):(e,t)=>n(e,t)??((e=e.toUpperCase())<(t=t.toUpperCase())?-1:+(e>t))}const T=(e,t)=>g(e,t)??t-e,x=(e,t)=>p(e,t)??e-t;function F(e){return e?T:x}function C(e){return e.slice(24,36)+e.slice(19,23)+e.slice(16,18)+e.slice(14,16)+e.slice(11,13)+e.slice(9,11)+e.slice(6,8)+e.slice(4,6)+e.slice(2,4)+e.slice(0,2)}function S(e,t,n){let i;for(i in e)t?.include?.length&&!t.include.includes(i)||t?.exclude?.length&&t.exclude.includes(i)?delete e[i]:o.includes(i)&&(Number.isFinite(e[i])||(e[i]=null));return n&&["avg","stddev","variance"].forEach(t=>{null!=e[t]&&(e[t]=Math.ceil(e[t]??0))}),e}function z(e){let t={};for(let n of e)(null==n||"string"==typeof n&&""===n.trim())&&(n=null),null==t[n]?t[n]={count:1,data:n}:t[n].count++;return{count:t}}function V(e){return"coded-value"===e?.type?e.codedValues.map(e=>e.code):[]}function D(e,t,n,i){let r=e.count,l=[];if(n&&t){let e=[],n=V(t[0]);for(let r of n)if(t[1]){let n=V(t[1]);for(let l of n)if(t[2]){let n=V(t[2]);for(let t of n)e.push(`${u(r)}${i}${u(l)}${i}${u(t)}`)}else e.push(`${u(r)}${i}${u(l)}`)}else e.push(r);for(let t of e)r.hasOwnProperty(t)||(r[t]={data:t,count:0})}for(let e in r){let t=r[e];l.push({value:t.data,count:t.count,label:t.label})}return{uniqueValueInfos:l}}function I(e,t,n,i){let r=null;switch(t){case"log":0!==e&&(r=Math.log(e)*Math.LOG10E);break;case"percent-of-total":Number.isFinite(i)&&0!==i&&(r=e/i*100);break;case"field":Number.isFinite(n)&&0!==n&&(r=e/n);break;case"natural-log":e>0&&(r=Math.log(e));break;case"square-root":e>0&&(r=e**.5)}return r}function k(e,t,n){let l=function(e){let{breakCount:t,field:n,normalizationField:r,normalizationType:l}=e,a=e.classificationMethod||"equal-interval",s="standard-deviation"===a?e.standardDeviationInterval||1:void 0,o="defined-interval"===a?e.definedInterval:void 0;return new i.A({breakCount:t,classificationField:n,classificationMethod:a,normalizationField:"field"===l?r:void 0,normalizationType:l,standardDeviationInterval:s,definedInterval:o})}({field:t.field,normalizationType:t.normalizationType,normalizationField:t.normalizationField,classificationMethod:t.classificationMethod,standardDeviationInterval:t.standardDeviationInterval,definedInterval:t.definedInterval,breakCount:t.numClasses||5});return e=function(e,t,n){let i=t??-1/0,r=n??1/0;return e.filter(e=>Number.isFinite(e)&&e>=i&&e<=r)}(e,t.minValue,t.maxValue),(0,r.t)({definition:l,values:e,normalizationTotal:t.normalizationTotal},n)}function N(e,t){let n=e.classBreaks,i=n.length,r=n[0]?.minValue,a=n[i-1]?.maxValue,s="standard-deviation"===t,o=l;return n=n.map(e=>{let t=e.label,n={minValue:e.minValue,maxValue:e.maxValue,label:t};if(s&&t){let e=t.match(o)?.map(e=>+e.trim())??[];2===e.length?(n.minStdDev=e[0],n.maxStdDev=e[1],e[0]<0&&e[1]>0&&(n.hasAvg=!0)):1===e.length&&(t.includes("<")?(n.minStdDev=null,n.maxStdDev=e[0]):t.includes(">")&&(n.minStdDev=e[0],n.maxStdDev=null))}return n}),{minValue:r,maxValue:a,classBreakInfos:n,normalizationTotal:e.normalizationTotal}}function L(e,t){let n=Z(e,t);if(null==n.min&&null==n.max)return{bins:[],minValue:n.min,maxValue:n.max,normalizationTotal:t.normalizationTotal};let i=n.intervals,r=n.min??0,l=n.max??0,a=i.map((e,t)=>({minValue:i[t][0],maxValue:i[t][1],count:0}));for(let t of e)if(null!=t&&t>=r&&t<=l){let e=A(i,t);e>-1&&a[e].count++}return{bins:a,minValue:r,maxValue:l,normalizationTotal:t.normalizationTotal}}function Z(e,t,n=!1){let{field:i,classificationMethod:r,standardDeviationInterval:l,definedInterval:a,normalizationType:s,normalizationField:o,normalizationTotal:u,minValue:d,maxValue:m}=t,f=t.numBins||10,g=null,p=null,y=null;if(r&&"equal-interval"!==r||s){let{classBreaks:t}=k(e,{field:i,normalizationType:s,normalizationField:o,normalizationTotal:u,classificationMethod:r,standardDeviationInterval:l,definedInterval:a,minValue:d,maxValue:m,numClasses:f},null!=d&&null!=m?[d,m]:void 0);g=t[0]?.minValue,p=t[t.length-1]?.maxValue,y=t.map(e=>[e.minValue,e.maxValue])}else{if(null!=d&&null!=m)g=d,p=m;else{let t=c({values:e,minValue:d,maxValue:m,useSampleStdDev:!s,supportsNullCount:h({normalizationType:s,normalizationField:o,minValue:d,maxValue:m})});g=t.min??null,p=t.max??null}y=function(e,t,n){let i,r=(t-e)/n,l=[],a=e;for(let e=1;e<=n;e++)i=a+r,i=Number(i.toFixed(16)),l.push([a,e===n?t:i]),a=i;return l}(g??0,p??0,f)}if(n&&y.length){let e=y.at(-1)[1];y.push([e,e])}return{min:g,max:p,intervals:y}}function A(e,t){let n=-1;for(let i=e.length-1;i>=0;i--)if(t>=e[i][0]){n=i;break}return n}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[563],{15142(t,e,s){s.d(e,{A:()=>o});var r=s(4576),i=s(21818);const l=(t,e,s,r)=>{let i=e,l=e,h=s>>>1,n=t[i-1];for(;l<=h;){l=i<<1,l<s&&r(t[l-1],t[l])<0&&++l;let e=t[l-1];if(r(e,n)<=0)break;t[i-1]=e,i=l}t[i-1]=n},h=(t,e)=>t<e?-1:+(t>e);function n(t,e,s,r){void 0===e&&(e=0),void 0===s&&(s=t.length),void 0===r&&(r=h);for(let i=s>>>1;i>e;i--)l(t,i,s,r);let i=e+1;for(let h=s-1;h>e;h--){let s=t[e];t[e]=t[h],t[h]=s,l(t,i,h,r)}}function*a(t,e,s,r){void 0===e&&(e=0),void 0===s&&(s=t.length),void 0===r&&(r=h);for(let i=s>>>1;i>e;i--)l(t,i,s,r),yield;let i=e+1;for(let h=s-1;h>e;h--){let s=t[e];t[e]=t[h],t[h]=s,l(t,i,h,r),yield}}class o{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new r.vW,t&&(t.initialSize&&(this.data=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){let e=[];for(let s=0;s<this._length;s++){let r=this.data[s];t(r)&&e.push(r)}return e}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,e){let s=this.data.indexOf(t,e);return-1!==s&&s<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 e=t;e<this._length;++e)this.data[e]=this._deallocator(this.data[e]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,e=t.length){for(let s=0;s<e;s++)this.data[this._length++]=t[s]}pushAll(t){for(let e of t)this.data[this._length++]=e}fill(t,e){for(let s=0;s<e;s++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));let 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;let t=this.data[this.length-1];return--this.length,this._shrink(),t}remove(t){let e=(0,r.qh)(this.data,(0,i.z)(t),this.length,this._hint);if(-1!==e)return this.data.splice(e,1),--this.length,t}removeUnordered(t){return this.removeUnorderedIndex((0,r.qh)(this.data,(0,i.z)(t),this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,e=t.length,s){this.length=(0,r.mW)(this.data,t,this.length,e,this._hint,s),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(t,e){if(t>=this.length||e>=this.length||t===e)return;let s=this.data[t];this.data[t]=this.data[e],this.data[e]=s}sort(t){n(this.data,0,this.length,t)}iterableSort(t){return a(this.data,0,this.length,t)}some(t,e){for(let s=0;s<this.length;++s)if(t.call(e,this.data[s],s,this.data))return!0;return!1}find(t,e){let{data:s,length:r}=this;for(let i=0;i<r;++i)if(t.call(e,s[i]))return s[i]}filterInPlace(t,e){let s=0;for(let r=0;r<this._length;++r){let i=this.data[r];t.call(e,i,r,this.data)&&(this.data[r]=this.data[s],this.data[s]=i,s++)}if(this._deallocator)for(let t=s;t<this._length;t++)this.data[t]=this._deallocator(this.data[t]);return this._length=s,this._shrink(),this}forAll(t,e){let{data:s,length:r}=this;for(let i=0;i<r;++i)t.call(e,s[i],i,s)}forEach(t,e){this.data.slice(0,this.length).forEach(t,e)}map(t,e){let s=Array(this.length);for(let r=0;r<this.length;++r)s[r]=t.call(e,this.data[r],r,this.data);return s}reduce(t,e){let s=e;for(let e=0;e<this.length;++e)s=t(s,this.data[e],e,this.data);return s}has(t){let e=this.length,s=this.data;for(let r=0;r<e;++r)if(s[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))}},9775(t,e,s){s.d(e,{A:()=>l});var r=s(62788),i=s(95488);class l{constructor(t=t=>t.values().next().value){this._peeker=t,this._observable=new i.I,this._items=new Set}get length(){return(0,r.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let t;for(t of this._items);return t}peek(){if(0!==this.length)return this._peeker(this._items)}push(t){this.contains(t)||(this._items.add(t),this._observable.notify())}contains(t){return(0,r.gc)(this._observable),this._items.has(t)}pop(){if(0===this.length)return;let t=this.peek();return this._items.delete(t),this._observable.notify(),t}popLast(){if(0===this.length)return;let t=this.last();return this._items.delete(t),this._observable.notify(),t}remove(t){this.contains(t)&&(this._items.delete(t),this._observable.notify())}filter(t){let e=this.length;return this._items.forEach(e=>{t(e)||this._items.delete(e)}),e!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,r.gc)(this._observable),yield*this._items}}},563(t,e,s){s.d(e,{QueueProcessor:()=>o,SharedConcurrency:()=>u});var r=s(97768),i=s(17676),l=s(9775),h=s(32587),n=s(76030),a=s(44794);class o{constructor(t){this._schedule=null,this._deferreds=new h.A,this._controllers=new h.A,this._processingItems=new h.A,this._pausedSignal=(0,a.v)(!1),this.process=t.process,this.concurrency=t.concurrency,this.sharedConcurrency=t.sharedConcurrency??d,this._queue=new l.A(t.peeker)}destroy(){this.clear(),this._schedule=(0,r.xt)(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&!this.full}get full(){return this._processingItems.size>=this.concurrency||this.sharedConcurrency.full}abort(t){this._controllers.get(t)?.abort()}clear(){this._queue.clear();let t=Array.from(this._controllers.values());this._controllers.clear(),t.forEach(t=>t.abort()),this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear(),this._cancelNext()}forEach(t){this._deferreds.forEach((e,s)=>t(s))}_get(t){return this._deferreds.get(t)?.promise}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(t,e){let s=this._get(t);if(s)return s;let r=new AbortController,l=Promise.withResolvers(),h=e?(0,i.u7)(e,()=>r.abort()):null,n=(0,i.NY)(r.signal,()=>{let e=this._processingItems.get(t);e&&e.controller.abort(),a(),l.reject((0,i.NK)())}),a=()=>{n.remove(),h?.remove(),this._removeItem(t),this._queue.remove(t),this._scheduleNext()};return this._deferreds.set(t,l),this._controllers.set(t,r),l.promise.then(a,a),this._queue.push(t),this._scheduleNext(),l.promise}last(){return this._queue.last()}reset(){let t=Array.from(this._processingItems.values());this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear();for(let e of t)this._queue.push(e.item),e.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){let t=[];for(;this._queue.length;)t.push(this._queue.pop());return this.clear(),t}_removeItem(t){this._deferreds.delete(t),this._controllers.delete(t),this._processingItems.has(t)&&(this._processingItems.delete(t),--this.sharedConcurrency.current.value)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=(0,n._)(()=>{this._schedule=null,this._next()}))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency&&!this.sharedConcurrency.full;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&=(this._schedule.remove(),null)}_processResult(t,e){this._canProcessFulfillment(t)&&(this._scheduleNext(),this._deferreds.get(t.item).resolve(e))}_processError(t,e){this._canProcessFulfillment(t)&&(this._scheduleNext(),this._deferreds.get(t.item).reject(e))}_canProcessFulfillment(t){return!(!this._deferreds.get(t.item)||this._processingItems.get(t.item)!==t)}_process(t){if(null==t)return;let e,s=new AbortController,r=new c(t,s);this._processingItems.set(t,r),this.sharedConcurrency.current.value+=1;try{e=this.process(t,s.signal)}catch(t){this._processError(r,t)}(0,i.$X)(e)?(r.promise=e,e.then(t=>this._processResult(r,t),t=>this._processError(r,t))):this._processResult(r,e)}}class c{constructor(t,e){this.item=t,this.controller=e,this.promise=null}}class u{constructor(t){this.limit=t,this.current=(0,a.v)(0)}get full(){return this.current.value>=this.limit}}const d=new u(1/0)},32587(t,e,s){s.d(e,{A:()=>l});var r=s(62788),i=s(95488);class l{constructor(t){this._observable=new i.I,this._notifyPending=!1,this._batchDepth=0,this._map=new Map(t)}get size(){return(0,r.gc)(this._observable),this._map.size}batch(t){try{this._batchDepth++,t()}finally{this._batchDepth--,this._notifyPending&&0===this._batchDepth&&(this._notifyPending=!1,this._notify())}}clear(){this._map.size>0&&(this._map.clear(),this._notify())}delete(t){let e=this._map.delete(t);return e&&this._notify(),e}entries(){return(0,r.gc)(this._observable),this._map.entries()}forEach(t,e){(0,r.gc)(this._observable),this._map.forEach((s,r)=>t.call(e,s,r,this),e)}get(t){return(0,r.gc)(this._observable),this._map.get(t)}has(t){return(0,r.gc)(this._observable),this._map.has(t)}keys(){return(0,r.gc)(this._observable),this._map.keys()}set(t,e){return this._map.set(t,e),this._notify(),this}transformValues(t,e=this._map.keys()){this.batch(()=>{for(let s of e){if(!this._map.has(s))continue;let e=this._map.get(s),r=t(e,s);r!==e&&this.set(s,r)}})}values(){return(0,r.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,r.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}_notify(){this._batchDepth>0?this._notifyPending=!0:this._observable.notify()}}},11406(t,e,s){s.d(e,{T:()=>l});var r=s(36563);class i{constructor(t,e){this._observers=t,this._observer=e}remove(){let{_observers:t,_observer:e}=this;if(t[t.length-1]===e)return void t.pop();let s=t.indexOf(this._observer);-1!==s&&t.splice(s,1)}}class l{constructor(){this._observers=null,this.destroyed=!1}observe(t){if(this.destroyed||t.destroyed)return h;this._observers??=[];let e=this._observers,s=!1,r=!1;for(let i of e)if(i.destroyed)r=!0;else if(i===t){s=!0;break}return s||(e.push(t),r&&this._removeDestroyedObservers()),new i(e,t)}_removeDestroyedObservers(){let t=this._observers;if(!t)return;let e=t.length;if(0===e)return;let s=0;for(let r=0;r<e;++r){for(;r+s<e&&t[r+s].destroyed;)++s;if(s>0){if(!(r+s<e))break;t[r]=t[r+s]}}t.length=e-s}destroy(){if(this.destroyed)return;this.destroyed=!0;let t=this._observers;if(null!=t){for(let e of t)e.onCommitted();this._observers=null}}}const h=(0,r.hA)()},62788(t,e,s){s.d(e,{F_:()=>_,Xr:()=>v,a:()=>d,fE:()=>p,gc:()=>o}),s(44208);var r=s(53966),i=s(88620),l=s(47328);const h=new(s(67867).R),n=[];let a=h;function o(t){a.onAccessed(t)}let c=!1,u=!1;function d(t,e,s){if(c)return f(t,e,s);let i;if(u){a=t,n.push(t);try{i=e.call(s)}catch(t){throw r.A.getLogger("esri.core.accessorSupport.tracking").error(t),t}finally{g()}}else{a=t,n.push(t);try{i=e.call(s)}finally{g()}}return i}function _(t,e){return d(h,t,e)}function f(t,e,s){let i,l=c;c=!0,a=t,n.push(t);try{i=e.call(s)}catch(t){u&&r.A.getLogger("esri.core.accessorSupport.tracking").error(t)}return g(),c=l,i}function g(){let t=n.length;if(t>1){let e=n.pop();a=n[t-2],e.onTrackingEnd()}else if(1===t){let t=n.pop();a=h,t.onTrackingEnd()}else a=h}function p(t,e){if(e.flags&l.i.DepTrackingInitialized)return;e.flags|=l.i.DepTrackingInitialized;let s=u;u=!1,e.flags&l.i.AutoTracked?f(e.trackingTarget,e.metadata.get,t):v(t,e),u=s}const m=[];function v(t,e){e.flags&l.i.ExplicitlyTracking||(e.flags|=l.i.ExplicitlyTracking,f(e.trackingTarget,()=>{let s=e.metadata.dependsOn||m;for(let e of s)if("string"!=typeof e||e.includes(".")){let s=(0,i.AH)(e);for(let e=0,r=t;e<s.length&&"object"==typeof r&&r;++e)r=y(r,s[e],e!==s.length-1)}else y(t,e,!1)}),e.flags&=~l.i.ExplicitlyTracking)}function y(t,e,s){let r=e.endsWith("?")?e.slice(0,-1):e;if(null!=t.getItemAt||Array.isArray(t)){let e=parseInt(r,10);if(!isNaN(e))return Array.isArray(t)?t[e]:t.at(e)}let l=(0,i.oY)(t);if(l){let e=l.propertiesByName.get(r);e&&(o(e),p(t,e))}return s?t[r]:void 0}},47328(t,e,s){s.d(e,["i",0,{Dirty:1,Overridden:2,Computing:4,NonNullable:8,HasDefaultValue:16,DepTrackingInitialized:32,AutoTracked:64,ExplicitlyTracking:128}])},95488(t,e,s){s.d(e,{I:()=>i});var r=s(11406);class i extends r.T{notify(){let t=this._observers;if(t&&t.length>0){let e=t.slice();for(let t of e)t.onInvalidated(),t.onCommitted()}}}},67867(t,e,s){s.d(e,{R:()=>r});class r{constructor(t){this.accessed=void 0,this._handles=void 0,this._observer=t}destroy(){this.clear(),this.accessed=void 0,this._observer=void 0}onAccessed(t){null!=this._observer&&t!==this._observer&&(this.accessed??=new Set,this.accessed.add(t))}onTrackingEnd(){null!=this._observer&&(this.clear(),null!=this.accessed&&(this._handles??=[],this.accessed.forEach(t=>{this._handles.push(t.observe(this._observer))}),this.accessed.clear()))}clear(){if(null!=this._handles)for(;this._handles.length;)this._handles.pop().remove()}}},88620(t,e,s){s.d(e,{AH:()=>o,h1:()=>n,oY:()=>l,qg:()=>u,yh:()=>h});var r=s(36563),i=s(4718);function l(t){return t.__accessor__??null}function h(t,e){return null!=t?.metadata?.[e]}function n(t,e,s){return a(t,e,s?{policy:s,path:""}:null)}function a(t,e,s){return e?Object.keys(e).reduce((t,r)=>{let l=r;if("__proto__"===l)return t;let h=null,n="merge";if(s&&(h=s.path?`${s.path}.${r}`:r,n=s.policy(h)),"replace"===n||"replace-arrays"===n&&Array.isArray(t[l]))return t[l]=e[l],t;if(void 0===t[l])return t[l]=(0,i.o8)(e[l]),t;let o=t[l],c=e[l];if(o===c)return t;if(Array.isArray(c)||Array.isArray(t))o=t[l]=o?Array.isArray(o)?o.slice():[o]:[],c&&(Array.isArray(c)||(c=[c]),c.forEach(t=>{o.includes(t)||o.push(t)}));else if(c&&"object"==typeof c)if(s){let e=s.path;s.path=h,t[l]=a(o,c,s),s.path=e}else t[l]=a(o,c,null);else(!t.hasOwnProperty(r)||e.hasOwnProperty(r))&&(t[l]=c);return t},t||{}):t}function o(t){return Array.isArray(t)?t:t.split(".")}function c(t){return t.includes(",")?t.split(",").map(t=>t.trim()):[t.trim()]}function u(t,e,s,i){let l=function(t){if(Array.isArray(t)){let e=[];for(let s of t)e.push(...c(s));return e}return c(t)}(e);if(1!==l.length){let e=l.map(e=>i(t,e,s));return(0,r.vE)(e)}return i(t,l[0],s)}},26390(t,e,s){s.d(e,{d:()=>i});const r=[];function i(t){r.push(t),1===r.length&&queueMicrotask(()=>{let t=r.slice();r.length=0;for(let e of t)e()})}},76030(t,e,s){s.d(e,{_:()=>y,$m:()=>T,gh:()=>x,md:()=>S});var r=s(26390);function i(t,e,s,r,i){console.timeStamp(t,e,s,i,r)}class l{constructor(t,e=30){this.name=t,this._counter=0,this._samples=Array(e)}push(t){null!=t&&(this._samples[++this._counter%this._samples.length]=t)}set(t){null!=t&&(this._samples[this._counter%this._samples.length]=t)}get median(){return this._samples.slice().sort((t,e)=>t-e)[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce((t,e)=>t+e,0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}var h=s(15142),n=s(17676),a=s(78659);class o{constructor(t){this.phases=t,this.paused=!1,this.ticks=-1,this.removed=!1}}class c{constructor(t){this.callback=t,this.isActive=!0}remove(){this.isActive=!1}}let u=0;const d={time:(0,a.l5)(0),deltaTime:(0,a.l5)(0),elapsedFrameTime:(0,a.l5)(0),frameDuration:(0,a.l5)(0)},_=["prepare","preRender","render","postRender","update","finish"],f=[],g=new h.A;class p{constructor(t){this._task=t}remove(){this._task.removed=!0}pause(){this._task.paused=!0}resume(){this._task.paused=!1,m()}}function m(){b??=(u=performance.now(),requestAnimationFrame(A))}const v={frameTasks:g,willDispatch:!1,clearFrameTasks:function(t=!1){g.forAll(t=>{t.removed=!0}),t&&w()},dispatch:I,executeFrameTasks:function(t){let e=(0,a.l5)(t-u);u=t;let s=1e3/60,r=Math.max(0,e-s);d.time=t,d.frameDuration=(0,a.l5)(s-r);for(let s=0;s<_.length;s++){let r=performance.now(),l=_[s];g.forAll(r=>{r.paused||r.removed||(0===s&&r.ticks++,!r.phases[l])||(d.elapsedFrameTime=(0,a.l5)(performance.now()-t),d.deltaTime=0===r.ticks?(0,a.l5)(0):e,r.phases[l]?.call(r,d))});let h=performance.now();E[s].push(h-r),i(l,r,h,"Maps SDK","Scheduling")}w();let l=performance.now();q.push(l-t),i("Animation Frame",t,l,"Maps SDK","Scheduling")},reschedule:function(){null!=b&&(cancelAnimationFrame(b),b=requestAnimationFrame(A))}};function y(t){let e=new c(t);return f.push(e),v.willDispatch||(v.willDispatch=!0,(0,r.d)(I)),e}let b=null;function A(){let t=performance.now();b=null,b=g.some(t=>!t.paused&&!t.removed)?requestAnimationFrame(A):null,v.executeFrameTasks(t)}const k=new h.A;function w(){g.forAll(t=>{t.removed&&k.push(t)}),g.removeUnorderedMany(k.data,k.length),k.clear()}function I(){for(;f.length;){let t=f.shift();t.isActive&&t.callback()}v.willDispatch=!1}function S(t=1,e){let s=Promise.withResolvers(),i=()=>{(0,n.G4)(e)?s.reject((0,n.NK)()):0===t?s.resolve():(--t,(0,r.d)(()=>i()))};return i(),s.promise}function x(){let t=Promise.withResolvers(),e=function(t){let e=new o(t);return g.push(e),m(),new p(e)}({postRender:()=>{e.remove(),y(()=>t.resolve())}});return t.promise}async function T(t){await function(t){return S(1,t)}(t),await new Promise(e=>requestAnimationFrame(()=>{t?.aborted||e()}))}const E=_.map(t=>new l(t)),q=new l("total")},44794(t,e,s){s.d(e,{v:()=>n});var r=s(4718),i=s(62788),l=s(95488);class h{constructor(t,e){this._observable=new l.I,this._value=t,this._equalityFunction=e}get value(){return(0,i.gc)(this._observable),this._value}set value(t){this._equalityFunction(t,this._value)||(this._value=t,this._observable.notify())}mutate(t){t(this._value),this._observable.notify()}}function n(t,e=r.gh){return new h(t,e)}},78659(t,e,s){function r(t){return t}function i(t){return 1e3*t}function l(t){return t}s.d(e,{Kp:()=>l,gr:()=>i,l5:()=>r})}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[563],{15142(t,e,s){s.d(e,{A:()=>o});var r=s(4576),i=s(21818);const l=(t,e,s,r)=>{let i=e,l=e,h=s>>>1,n=t[i-1];for(;l<=h;){l=i<<1,l<s&&r(t[l-1],t[l])<0&&++l;let e=t[l-1];if(r(e,n)<=0)break;t[i-1]=e,i=l}t[i-1]=n},h=(t,e)=>t<e?-1:+(t>e);function n(t,e,s,r){void 0===e&&(e=0),void 0===s&&(s=t.length),void 0===r&&(r=h);for(let i=s>>>1;i>e;i--)l(t,i,s,r);let i=e+1;for(let h=s-1;h>e;h--){let s=t[e];t[e]=t[h],t[h]=s,l(t,i,h,r)}}function*a(t,e,s,r){void 0===e&&(e=0),void 0===s&&(s=t.length),void 0===r&&(r=h);for(let i=s>>>1;i>e;i--)l(t,i,s,r),yield;let i=e+1;for(let h=s-1;h>e;h--){let s=t[e];t[e]=t[h],t[h]=s,l(t,i,h,r),yield}}class o{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new r.vW,t&&(t.initialSize&&(this.data=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){let e=[];for(let s=0;s<this._length;s++){let r=this.data[s];t(r)&&e.push(r)}return e}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,e){let s=this.data.indexOf(t,e);return-1!==s&&s<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 e=t;e<this._length;++e)this.data[e]=this._deallocator(this.data[e]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,e=t.length){for(let s=0;s<e;s++)this.data[this._length++]=t[s]}pushAll(t){for(let e of t)this.data[this._length++]=e}fill(t,e){for(let s=0;s<e;s++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));let 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;let t=this.data[this.length-1];return--this.length,this._shrink(),t}remove(t){let e=(0,r.qh)(this.data,(0,i.z)(t),this.length,this._hint);if(-1!==e)return this.data.splice(e,1),--this.length,t}removeUnordered(t){return this.removeUnorderedIndex((0,r.qh)(this.data,(0,i.z)(t),this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,e=t.length,s){this.length=(0,r.mW)(this.data,t,this.length,e,this._hint,s),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(t,e){if(t>=this.length||e>=this.length||t===e)return;let s=this.data[t];this.data[t]=this.data[e],this.data[e]=s}sort(t){n(this.data,0,this.length,t)}iterableSort(t){return a(this.data,0,this.length,t)}some(t,e){for(let s=0;s<this.length;++s)if(t.call(e,this.data[s],s,this.data))return!0;return!1}find(t,e){let{data:s,length:r}=this;for(let i=0;i<r;++i)if(t.call(e,s[i]))return s[i]}filterInPlace(t,e){let s=0;for(let r=0;r<this._length;++r){let i=this.data[r];t.call(e,i,r,this.data)&&(this.data[r]=this.data[s],this.data[s]=i,s++)}if(this._deallocator)for(let t=s;t<this._length;t++)this.data[t]=this._deallocator(this.data[t]);return this._length=s,this._shrink(),this}forAll(t,e){let{data:s,length:r}=this;for(let i=0;i<r;++i)t.call(e,s[i],i,s)}forEach(t,e){this.data.slice(0,this.length).forEach(t,e)}map(t,e){let s=Array(this.length);for(let r=0;r<this.length;++r)s[r]=t.call(e,this.data[r],r,this.data);return s}reduce(t,e){let s=e;for(let e=0;e<this.length;++e)s=t(s,this.data[e],e,this.data);return s}has(t){let e=this.length,s=this.data;for(let r=0;r<e;++r)if(s[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))}},9775(t,e,s){s.d(e,{A:()=>l});var r=s(62788),i=s(95488);class l{constructor(t=t=>t.values().next().value){this._peeker=t,this._observable=new i.I,this._items=new Set}get length(){return(0,r.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let t;for(t of this._items);return t}peek(){if(0!==this.length)return this._peeker(this._items)}push(t){this.contains(t)||(this._items.add(t),this._observable.notify())}contains(t){return(0,r.gc)(this._observable),this._items.has(t)}pop(){if(0===this.length)return;let t=this.peek();return this._items.delete(t),this._observable.notify(),t}popLast(){if(0===this.length)return;let t=this.last();return this._items.delete(t),this._observable.notify(),t}remove(t){this.contains(t)&&(this._items.delete(t),this._observable.notify())}filter(t){let e=this.length;return this._items.forEach(e=>{t(e)||this._items.delete(e)}),e!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,r.gc)(this._observable),yield*this._items}}},563(t,e,s){s.d(e,{QueueProcessor:()=>o,SharedConcurrency:()=>u});var r=s(97768),i=s(17676),l=s(9775),h=s(32587),n=s(76030),a=s(44794);class o{constructor(t){this._schedule=null,this._deferreds=new h.A,this._controllers=new h.A,this._processingItems=new h.A,this._pausedSignal=(0,a.v)(!1),this.process=t.process,this.concurrency=t.concurrency,this.sharedConcurrency=t.sharedConcurrency??d,this._queue=new l.A(t.peeker)}destroy(){this.clear(),this._schedule=(0,r.xt)(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&!this.full}get full(){return this._processingItems.size>=this.concurrency||this.sharedConcurrency.full}abort(t){this._controllers.get(t)?.abort()}clear(){this._queue.clear();let t=Array.from(this._controllers.values());this._controllers.clear(),t.forEach(t=>t.abort()),this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear(),this._cancelNext()}forEach(t){this._deferreds.forEach((e,s)=>t(s))}_get(t){return this._deferreds.get(t)?.promise}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(t,e){let s=this._get(t);if(s)return s;let r=new AbortController,l=Promise.withResolvers(),h=e?(0,i.u7)(e,()=>r.abort()):null,n=(0,i.NY)(r.signal,()=>{let e=this._processingItems.get(t);e&&e.controller.abort(),a(),l.reject((0,i.NK)())}),a=()=>{n.remove(),h?.remove(),this._removeItem(t),this._queue.remove(t),this._scheduleNext()};return this._deferreds.set(t,l),this._controllers.set(t,r),l.promise.then(a,a),this._queue.push(t),this._scheduleNext(),l.promise}last(){return this._queue.last()}reset(){let t=Array.from(this._processingItems.values());this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear();for(let e of t)this._queue.push(e.item),e.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){let t=[];for(;this._queue.length;)t.push(this._queue.pop());return this.clear(),t}_removeItem(t){this._deferreds.delete(t),this._controllers.delete(t),this._processingItems.has(t)&&(this._processingItems.delete(t),--this.sharedConcurrency.current.value)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=(0,n._)(()=>{this._schedule=null,this._next()}))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency&&!this.sharedConcurrency.full;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&=(this._schedule.remove(),null)}_processResult(t,e){this._canProcessFulfillment(t)&&(this._scheduleNext(),this._deferreds.get(t.item).resolve(e))}_processError(t,e){this._canProcessFulfillment(t)&&(this._scheduleNext(),this._deferreds.get(t.item).reject(e))}_canProcessFulfillment(t){return!(!this._deferreds.get(t.item)||this._processingItems.get(t.item)!==t)}_process(t){if(null==t)return;let e,s=new AbortController,r=new c(t,s);this._processingItems.set(t,r),this.sharedConcurrency.current.value+=1;try{e=this.process(t,s.signal)}catch(t){this._processError(r,t)}(0,i.$X)(e)?(r.promise=e,e.then(t=>this._processResult(r,t),t=>this._processError(r,t))):this._processResult(r,e)}}class c{constructor(t,e){this.item=t,this.controller=e,this.promise=null}}class u{constructor(t){this.limit=t,this.current=(0,a.v)(0)}get full(){return this.current.value>=this.limit}}const d=new u(1/0)},32587(t,e,s){s.d(e,{A:()=>l});var r=s(62788),i=s(95488);class l{constructor(t){this._observable=new i.I,this._notifyPending=!1,this._batchDepth=0,this._map=new Map(t)}get size(){return(0,r.gc)(this._observable),this._map.size}batch(t){try{this._batchDepth++,t()}finally{this._batchDepth--,this._notifyPending&&0===this._batchDepth&&(this._notifyPending=!1,this._notify())}}clear(){this._map.size>0&&(this._map.clear(),this._notify())}delete(t){let e=this._map.delete(t);return e&&this._notify(),e}entries(){return(0,r.gc)(this._observable),this._map.entries()}forEach(t,e){(0,r.gc)(this._observable),this._map.forEach((s,r)=>t.call(e,s,r,this),e)}get(t){return(0,r.gc)(this._observable),this._map.get(t)}has(t){return(0,r.gc)(this._observable),this._map.has(t)}keys(){return(0,r.gc)(this._observable),this._map.keys()}set(t,e){return this._map.set(t,e),this._notify(),this}transformValues(t,e=this._map.keys()){this.batch(()=>{for(let s of e){if(!this._map.has(s))continue;let e=this._map.get(s),r=t(e,s);r!==e&&this.set(s,r)}})}values(){return(0,r.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,r.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}_notify(){this._batchDepth>0?this._notifyPending=!0:this._observable.notify()}}},11406(t,e,s){s.d(e,{T:()=>l});var r=s(36563);class i{constructor(t,e){this._observers=t,this._observer=e}remove(){let{_observers:t,_observer:e}=this;if(t[t.length-1]===e)return void t.pop();let s=t.indexOf(this._observer);-1!==s&&t.splice(s,1)}}class l{constructor(){this._observers=null,this.destroyed=!1}observe(t){if(this.destroyed||t.destroyed)return h;this._observers??=[];let e=this._observers,s=!1,r=!1;for(let i of e)if(i.destroyed)r=!0;else if(i===t){s=!0;break}return s||(e.push(t),r&&this._removeDestroyedObservers()),new i(e,t)}_removeDestroyedObservers(){let t=this._observers;if(!t)return;let e=t.length;if(0===e)return;let s=0;for(let r=0;r<e;++r){for(;r+s<e&&t[r+s].destroyed;)++s;if(s>0){if(!(r+s<e))break;t[r]=t[r+s]}}t.length=e-s}destroy(){if(this.destroyed)return;this.destroyed=!0;let t=this._observers;if(null!=t){for(let e of t)e.onCommitted();this._observers=null}}}const h=(0,r.hA)()},62788(t,e,s){s.d(e,{F_:()=>_,Xr:()=>v,a:()=>d,fE:()=>p,gc:()=>o}),s(44208);var r=s(53966),i=s(88620),l=s(47328);const h=new(s(67867).R),n=[];let a=h;function o(t){a.onAccessed(t)}let c=!1,u=!1;function d(t,e,s){if(c)return f(t,e,s);let i;if(u){a=t,n.push(t);try{i=e.call(s)}catch(t){throw r.A.getLogger("esri.core.accessorSupport.tracking").error(t),t}finally{g()}}else{a=t,n.push(t);try{i=e.call(s)}finally{g()}}return i}function _(t,e){return d(h,t,e)}function f(t,e,s){let i,l=c;c=!0,a=t,n.push(t);try{i=e.call(s)}catch(t){u&&r.A.getLogger("esri.core.accessorSupport.tracking").error(t)}return g(),c=l,i}function g(){let t=n.length;if(t>1){let e=n.pop();a=n[t-2],e.onTrackingEnd()}else if(1===t){let t=n.pop();a=h,t.onTrackingEnd()}else a=h}function p(t,e){if(e.flags&l.i.DepTrackingInitialized)return;e.flags|=l.i.DepTrackingInitialized;let s=u;u=!1,e.flags&l.i.AutoTracked?f(e.trackingTarget,e.metadata.get,t):v(t,e),u=s}const m=[];function v(t,e){e.flags&l.i.ExplicitlyTracking||(e.flags|=l.i.ExplicitlyTracking,f(e.trackingTarget,()=>{let s=e.metadata.dependsOn||m;for(let e of s)if("string"!=typeof e||e.includes(".")){let s=(0,i.AH)(e);for(let e=0,r=t;e<s.length&&"object"==typeof r&&r;++e)r=y(r,s[e],e!==s.length-1)}else y(t,e,!1)}),e.flags&=~l.i.ExplicitlyTracking)}function y(t,e,s){let r=e.endsWith("?")?e.slice(0,-1):e;if(null!=t.getItemAt||Array.isArray(t)){let e=parseInt(r,10);if(!isNaN(e))return Array.isArray(t)?t[e]:t.at(e)}let l=(0,i.oY)(t);if(l){let e=l.propertiesByName.get(r);e&&(o(e),p(t,e))}return s?t[r]:void 0}},47328(t,e,s){s.d(e,["i",0,{Dirty:1,Overridden:2,Computing:4,NonNullable:8,HasDefaultValue:16,DepTrackingInitialized:32,AutoTracked:64,ExplicitlyTracking:128}])},95488(t,e,s){s.d(e,{I:()=>i});var r=s(11406);class i extends r.T{notify(){let t=this._observers;if(t&&t.length>0){let e=t.slice();for(let t of e)t.onInvalidated(),t.onCommitted()}}}},67867(t,e,s){s.d(e,{R:()=>r});class r{constructor(t){this.accessed=void 0,this._handles=void 0,this._observer=t}destroy(){this.clear(),this.accessed=void 0,this._observer=void 0}onAccessed(t){null!=this._observer&&t!==this._observer&&(this.accessed??=new Set,this.accessed.add(t))}onTrackingEnd(){null!=this._observer&&(this.clear(),null!=this.accessed&&(this._handles??=[],this.accessed.forEach(t=>{this._handles.push(t.observe(this._observer))}),this.accessed.clear()))}clear(){if(null!=this._handles)for(;this._handles.length;)this._handles.pop().remove()}}},88620(t,e,s){s.d(e,{AH:()=>o,h1:()=>n,oY:()=>l,qg:()=>u,yh:()=>h});var r=s(36563),i=s(4718);function l(t){return t.__accessor__??null}function h(t,e){return null!=t?.metadata?.[e]}function n(t,e,s){return a(t,e,s?{policy:s,path:""}:null)}function a(t,e,s){return e?Object.keys(e).reduce((t,r)=>{let l=r;if("__proto__"===l)return t;let h=null,n="merge";if(s&&(h=s.path?`${s.path}.${r}`:r,n=s.policy(h)),"replace"===n||"replace-arrays"===n&&Array.isArray(t[l]))return t[l]=e[l],t;if(void 0===t[l])return t[l]=(0,i.o8)(e[l]),t;let o=t[l],c=e[l];if(o===c)return t;if(Array.isArray(c)||Array.isArray(t))o=t[l]=o?Array.isArray(o)?o.slice():[o]:[],c&&(Array.isArray(c)||(c=[c]),c.forEach(t=>{o.includes(t)||o.push(t)}));else if(c&&"object"==typeof c)if(s){let e=s.path;s.path=h,t[l]=a(o,c,s),s.path=e}else t[l]=a(o,c,null);else(!t.hasOwnProperty(r)||e.hasOwnProperty(r))&&(t[l]=c);return t},t||{}):t}function o(t){return Array.isArray(t)?t:t.split(".")}function c(t){return t.includes(",")?t.split(",").map(t=>t.trim()):[t.trim()]}function u(t,e,s,i){let l=function(t){if(Array.isArray(t)){let e=[];for(let s of t)e.push(...c(s));return e}return c(t)}(e);if(1!==l.length){let e=l.map(e=>i(t,e,s));return(0,r.vE)(e)}return i(t,l[0],s)}},26390(t,e,s){s.d(e,{d:()=>i});const r=[];function i(t){r.push(t),1===r.length&&queueMicrotask(()=>{let t=r.slice();r.length=0;for(let e of t)e()})}},76030(t,e,s){s.d(e,{_:()=>p,$m:()=>w,md:()=>k});var r=s(26390);function i(t,e,s,r,i){console.timeStamp(t,e,s,i,r)}class l{constructor(t,e=30){this.name=t,this._counter=0,this._samples=Array(e)}push(t){null!=t&&(this._samples[++this._counter%this._samples.length]=t)}set(t){null!=t&&(this._samples[this._counter%this._samples.length]=t)}get median(){return this._samples.slice().sort((t,e)=>t-e)[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce((t,e)=>t+e,0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}var h=s(15142),n=s(17676),a=s(78659);class o{constructor(t){this.callback=t,this.isActive=!0}remove(){this.isActive=!1}}let c=0;const u={time:(0,a.l5)(0),deltaTime:(0,a.l5)(0),elapsedFrameTime:(0,a.l5)(0),frameDuration:(0,a.l5)(0)},d=["prepare","preRender","render","postRender","update","finish"],_=[],f=new h.A,g={frameTasks:f,willDispatch:!1,clearFrameTasks:function(t=!1){f.forAll(t=>{t.removed=!0}),t&&b()},dispatch:A,executeFrameTasks:function(t){let e=(0,a.l5)(t-c);c=t;let s=1e3/60,r=Math.max(0,e-s);u.time=t,u.frameDuration=(0,a.l5)(s-r);for(let s=0;s<d.length;s++){let r=performance.now(),l=d[s];f.forAll(r=>{r.paused||r.removed||(0===s&&r.ticks++,!r.phases[l])||(u.elapsedFrameTime=(0,a.l5)(performance.now()-t),u.deltaTime=0===r.ticks?(0,a.l5)(0):e,r.phases[l]?.call(r,u))});let h=performance.now();I[s].push(h-r),i(l,r,h,"Maps SDK","Scheduling")}b();let l=performance.now();S.push(l-t),i("Animation Frame",t,l,"Maps SDK","Scheduling")},reschedule:function(){null!=m&&(cancelAnimationFrame(m),m=requestAnimationFrame(v))}};function p(t){let e=new o(t);return _.push(e),g.willDispatch||(g.willDispatch=!0,(0,r.d)(A)),e}let m=null;function v(){let t=performance.now();m=null,m=f.some(t=>!t.paused&&!t.removed)?requestAnimationFrame(v):null,g.executeFrameTasks(t)}const y=new h.A;function b(){f.forAll(t=>{t.removed&&y.push(t)}),f.removeUnorderedMany(y.data,y.length),y.clear()}function A(){for(;_.length;){let t=_.shift();t.isActive&&t.callback()}g.willDispatch=!1}function k(t=1,e){let s=Promise.withResolvers(),i=()=>{(0,n.G4)(e)?s.reject((0,n.NK)()):0===t?s.resolve():(--t,(0,r.d)(()=>i()))};return i(),s.promise}async function w(t){await function(t){return k(1,t)}(t),await new Promise(e=>requestAnimationFrame(()=>{t?.aborted||e()}))}const I=d.map(t=>new l(t)),S=new l("total")},44794(t,e,s){s.d(e,{v:()=>n});var r=s(4718),i=s(62788),l=s(95488);class h{constructor(t,e){this._observable=new l.I,this._value=t,this._equalityFunction=e}get value(){return(0,i.gc)(this._observable),this._value}set value(t){this._equalityFunction(t,this._value)||(this._value=t,this._observable.notify())}mutate(t){t(this._value),this._observable.notify()}}function n(t,e=r.gh){return new h(t,e)}},78659(t,e,s){function r(t){return t}function i(t){return 1e3*t}function l(t){return t}s.d(e,{Kp:()=>l,gr:()=>i,l5:()=>r})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9933],{39933(e,t,l){l.r(t),l.d(t,{build:()=>s.b}),l(32680),l(34711),l(71020),l(72722),l(96336),l(53466),l(54154),l(9169),l(12696),l(68785),l(89214),l(98619),l(20598),l(22393),l(59469),l(56529),l(51406),l(89435),l(58614),l(20693),l(33079),l(31821),l(63761),l(27832),l(84368),l(14113);var s=l(57323)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,8366],{73354(t,e,n){n.d(e,{a:()=>c,b:()=>a,c:()=>o,d:()=>u,e:()=>h,f:()=>f,l:()=>s,n:()=>p,t:()=>i}),n(44208);var r=n(72727);function o(t,e,n){i(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function i(t,e,n,o=3,i=o){let u=(0,r.k)(t.length,o,3),a=(0,r.k)(e.length,i,3),l=Math.min(u,a),s=n[0],f=n[1],c=n[2],h=n[4],p=n[5],M=n[6],d=n[8],m=n[9],g=n[10],v=n[12],y=n[13],S=n[14],_=0,w=0;for(let n=0;n<l;n++){let n=e[_],r=e[_+1],u=e[_+2];t[w]=s*n+h*r+d*u+v,t[w+1]=f*n+p*r+m*u+y,t[w+2]=c*n+M*r+g*u+S,_+=i,w+=o}return t}function u(t,e,n){a(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function a(t,e,n,o=3,i=o){let u=(0,r.k)(t.length,o,3),a=(0,r.k)(e.length,i,3),l=Math.min(u,a),s=n[0],f=n[1],c=n[2],h=n[3],p=n[4],M=n[5],d=n[6],m=n[7],g=n[8],v=0,y=0;for(let n=0;n<l;n++){let n=e[v],r=e[v+1],u=e[v+2];t[y]=s*n+h*r+d*u,t[y+1]=f*n+p*r+m*u,t[y+2]=c*n+M*r+g*u,v+=i,y+=o}}function l(t,e,n,r=3,o=r){let i=Math.min(t.length/r,e.length/o),u=0,a=0;for(let l=0;l<i;l++)t[a]=n*e[u],t[a+1]=n*e[u+1],t[a+2]=n*e[u+2],u+=o,a+=r;return t}function s(t,e,n,r){f(t.typedBuffer,e.typedBuffer,n,r,t.typedBufferStride,e.typedBufferStride)}function f(t,e,n,r,o=3,i=o){let u=Math.min(t.length/o,e.length/i),a=0,l=0,s=1/2.2;for(let f=0;f<u;f++)t[l]=r*(n*e[a])**s,t[l+1]=r*(n*e[a+1])**s,t[l+2]=r*(n*e[a+2])**s,a+=i,l+=o}function c(t,e,n,o=3,i=o){let u=(0,r.k)(t.length,o,3),a=(0,r.k)(e.length,i,3),l=Math.min(u,a),s=0,f=0;for(let r=0;r<l;r++)t[f]=e[s]+n[0],t[f+1]=e[s+1]+n[1],t[f+2]=e[s+2]+n[2],s+=i,f+=o;return t}function h(t,e){p(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function p(t,e,n=3,r=n){let o=Math.min(t.length/n,e.length/r),i=0,u=0;for(let a=0;a<o;a++){let o=e[i],a=e[i+1],l=e[i+2],s=o*o+a*a+l*l;if(s>0){let e=1/Math.sqrt(s);t[u]=e*o,t[u+1]=e*a,t[u+2]=e*l}i+=r,u+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:f,linearToSRGBView:s,normalize:p,normalizeView:h,scale:l,scaleView:function(t,e,n){l(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,n){let r=Math.min(t.count,e.count),o=t.typedBuffer,i=t.typedBufferStride,u=e.typedBuffer,a=e.typedBufferStride,l=0,s=0;for(let t=0;t<r;t++)o[s]=u[l]>>n,o[s+1]=u[l+1]>>n,o[s+2]=u[l+2]>>n,l+=a,s+=i},transformMat3:a,transformMat3View:u,transformMat4:i,transformMat4View:o,translate:c},Symbol.toStringTag,{value:"Module"}))},82534(t,e,n){function r(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}n.d(e,{o8:()=>o,vt:()=>r});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,i])},48163(t,e,n){function r(){return[0,0]}function o(t){return[t[0],t[1]]}function i(t,e){return[t,e]}function u(){return i(1,1)}function a(){return i(-1,-1)}function l(){return i(1,0)}function s(){return i(0,1)}n.d(e,{fA:()=>i,o8:()=>o,vt:()=>r});const f=u(),c=a(),h=l(),p=s();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:c,ONES:f,UNIT_X:h,UNIT_Y:p,ZEROS:[0,0],clone:o,create:r,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){let n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:i,negativeOnes:a,ones:u,unitX:l,unitY:s,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["IA",0,c,"Un",0,f])},91829(t,e,n){function r(){return[0,0,0,0]}function o(t,e,n,r){return[t,e,n,r]}function i(){return o(1,1,1,1)}function u(){return o(1,0,0,0)}function a(){return o(0,1,0,0)}function l(){return o(0,0,1,0)}function s(){return o(0,0,0,1)}n.d(e,{_Y:()=>s,fA:()=>o,vt:()=>r});const f=[0,0,0,0],c=i(),h=u(),p=a(),M=l(),d=s();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_W:d,UNIT_X:h,UNIT_Y:p,UNIT_Z:M,ZEROS:f,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:function(t,e,n,r){return[t,e,n,r]},fromArray:function(t,e=[0,0,0,0]){let n=Math.min(4,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:o,ones:i,unitW:s,unitX:u,unitY:a,unitZ:l,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Un",0,c,"uY",0,f])},67026(t,e,n){n.d(e,{A6:()=>d,Xd:()=>f,Xr:()=>p,lw:()=>c,x8:()=>s});var r=n(29242),o=n(82534),i=n(51850),u=n(34304),a=n(35522),l=n(78955);function s(t,e,n){n*=.5;let r=Math.sin(n);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(n),t}function f(t,e){let n=2*Math.acos(e[3]),r=Math.sin(n/2);return r>(0,u.FD)()?(t[0]=e[0]/r,t[1]=e[1]/r,t[2]=e[2]/r):(t[0]=1,t[1]=0,t[2]=0),n}function c(t,e,n){let r=e[0],o=e[1],i=e[2],u=e[3],a=n[0],l=n[1],s=n[2],f=n[3];return t[0]=r*f+u*a+o*s-i*l,t[1]=o*f+u*l+i*a-r*s,t[2]=i*f+u*s+r*l-o*a,t[3]=u*f-r*a-o*l-i*s,t}function h(t,e,n,r){let o,i,a,l,s,f=e[0],c=e[1],h=e[2],p=e[3],M=n[0],d=n[1],m=n[2],g=n[3];return i=f*M+c*d+h*m+p*g,i<0&&(i=-i,M=-M,d=-d,m=-m,g=-g),1-i>(0,u.FD)()?(o=Math.acos(i),a=Math.sin(o),l=Math.sin((1-r)*o)/a,s=Math.sin(r*o)/a):(l=1-r,s=r),t[0]=l*f+s*M,t[1]=l*c+s*d,t[2]=l*h+s*m,t[3]=l*p+s*g,t}function p(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function M(t,e){let n,r=e[0]+e[4]+e[8];if(r>0)n=Math.sqrt(r+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{let r=0;e[4]>e[0]&&(r=1),e[8]>e[3*r+r]&&(r=2);let o=(r+1)%3,i=(r+2)%3;n=Math.sqrt(e[3*r+r]-e[3*o+o]-e[3*i+i]+1),t[r]=.5*n,n=.5/n,t[3]=(e[3*o+i]-e[3*i+o])*n,t[o]=(e[3*o+r]+e[3*r+o])*n,t[i]=(e[3*i+r]+e[3*r+i])*n}return t}function d(t,e,n,r){let o=.5*Math.PI/180;e*=o,n*=o,r*=o;let i=Math.sin(e),u=Math.cos(e),a=Math.sin(n),l=Math.cos(n),s=Math.sin(r),f=Math.cos(r);return t[0]=i*l*f-u*a*s,t[1]=u*a*f+i*l*s,t[2]=u*l*s-i*a*f,t[3]=u*l*f+i*a*s,t}const m=l.C,g=l.hZ,v=l.WQ,y=c,S=l.hs,_=l.Om,w=l.Cc,A=l.Bw,b=A,B=l.m3,O=B,x=l.S8,I=l.t2,N=l.aI,T=(0,i.vt)(),Z=(0,i.fA)(1,0,0),q=(0,i.fA)(0,1,0),R=(0,o.vt)(),C=(0,o.vt)(),P=(0,r.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:v,calculateW:function(t,e){let n=e[0],r=e[1],o=e[2];return t[0]=n,t[1]=r,t[2]=o,t[3]=Math.sqrt(Math.abs(1-n*n-r*r-o*o)),t},conjugate:p,copy:m,dot:_,equals:N,exactEquals:I,fromEuler:d,fromMat3:M,getAxisAngle:f,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,e){let n=e[0],r=e[1],o=e[2],i=e[3],u=n*n+r*r+o*o+i*i,a=u?1/u:0;return t[0]=-n*a,t[1]=-r*a,t[2]=-o*a,t[3]=i*a,t},len:b,length:A,lerp:w,mul:y,multiply:c,normalize:x,random:function(t){let e=u.Ov,n=e(),r=e(),o=e(),i=Math.sqrt(1-n),a=Math.sqrt(n);return t[0]=i*Math.sin(2*Math.PI*r),t[1]=i*Math.cos(2*Math.PI*r),t[2]=a*Math.sin(2*Math.PI*o),t[3]=a*Math.cos(2*Math.PI*o),t},rotateX:function(t,e,n){n*=.5;let r=e[0],o=e[1],i=e[2],u=e[3],a=Math.sin(n),l=Math.cos(n);return t[0]=r*l+u*a,t[1]=o*l+i*a,t[2]=i*l-o*a,t[3]=u*l-r*a,t},rotateY:function(t,e,n){n*=.5;let r=e[0],o=e[1],i=e[2],u=e[3],a=Math.sin(n),l=Math.cos(n);return t[0]=r*l-i*a,t[1]=o*l+u*a,t[2]=i*l+r*a,t[3]=u*l-o*a,t},rotateZ:function(t,e,n){n*=.5;let r=e[0],o=e[1],i=e[2],u=e[3],a=Math.sin(n),l=Math.cos(n);return t[0]=r*l+o*a,t[1]=o*l-r*a,t[2]=i*l+u*a,t[3]=u*l-i*a,t},rotationTo:function(t,e,n){let r=(0,a.Om)(e,n);return r<-.999999?((0,a.$A)(T,Z,e),(0,a.Il)(T)<1e-6&&(0,a.$A)(T,q,e),(0,a.S8)(T,T),s(t,T,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,a.$A)(T,e,n),t[0]=T[0],t[1]=T[1],t[2]=T[2],t[3]=1+r,x(t,t))},scale:S,set:g,setAxes:function(t,e,n,r){let o=P;return o[0]=n[0],o[3]=n[1],o[6]=n[2],o[1]=r[0],o[4]=r[1],o[7]=r[2],o[2]=-e[0],o[5]=-e[1],o[8]=-e[2],x(t,M(t,o))},setAxisAngle:s,slerp:h,sqlerp:function(t,e,n,r,o,i){return h(R,e,o,i),h(C,n,r,i),h(t,R,C,2*i*(1-i)),t},sqrLen:O,squaredLength:B,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"})),n.d(e,["hZ",0,g,"t2",0,I])},48353(t,e,n){n.d(e,{l:()=>s});var r=n(34727),o=n(58083),i=n(51850);function u(t,e,n){let r=Math.sin(t),o=Math.cos(t),i=Math.sin(e),u=Math.cos(e),a=n;return a[0]=-r,a[4]=-i*o,a[8]=u*o,a[12]=0,a[1]=o,a[5]=-i*r,a[9]=u*r,a[13]=0,a[2]=0,a[6]=u,a[10]=i,a[14]=0,a[3]=0,a[7]=0,a[11]=0,a[15]=1,a}var a=n(49208),l=n(21325);function s(t,e,n,r){let i=(0,a.Tp)(t,r);if(null==i)return!1;let s=i.source.spatialReferenceId,M=i.dest.spatialReferenceId;if(s===M&&!f(M)&&(0!==s||(0,l.aI)(t,r)))return(0,o.kN)(n,e),!0;if(f(M)){let t=a.w5[s][10],r=a.w5[10][M];return null!=t&&null!=r&&(t(e,0,h,0),r(h,0,p,0),u(c*h[0],c*h[1],n),n[12]=p[0],n[13]=p[1],n[14]=p[2],!0)}let d=f(s);if((3===M||11===M||2===M||5===M)&&(2===s||d||3===s||5===s)){let t=a.w5[s][10],r=a.w5[10][M];return null!=t&&null!=r&&(t(e,0,h,0),r(h,0,p,0),d?function(t,e,n){u(t,e,n),(0,o.mg)(n,n)}(c*h[0],c*h[1],n):(0,o.D_)(n),n[12]=p[0],n[13]=p[1],n[14]=p[2],!0)}return!1}function f(t){return 1===t||6===t||8===t||4===t}const c=(0,r.kU)(1),h=(0,i.vt)(),p=(0,i.vt)()},65806(t,e,n){n.d(e,{g:()=>u});var r=n(51850),o=n(99917),i=n(9762);function u(t,e,n,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,n))return a[0]=t.x,a[1]=t.y,a[2]=t.z??0,(0,i.projectBuffer)(a,t.spatialReference,0,e,n,0);let u=(0,o.tryProject)(t,n,r);return!!u&&(e[0]=u.x,e[1]=u.y,e[2]=u.z??0,!0)}const a=(0,r.vt)()},73836(t,e,n){n.d(e,{A:()=>p});var r=n(32198),o=n(69540),i=n(25482),u=n(91429),a=n(58083),l=n(9093),s=n(67026),f=n(82534),c=n(51850),h=n(24770);let p=class extends((0,o.OU)(i.o)){constructor(t){super(t),this.translation=(0,c.vt)(),this.rotationAxis=(0,c.ci)(h.up),this.rotationAngle=0,this.scale=(0,c.fA)(1,1,1)}get rotation(){return(0,h.i4)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,c.o8)((0,h.yo)(t)),this.rotationAngle=(0,h.g7)(t)}get localMatrix(){let t=(0,l.vt)();return(0,s.x8)(M,(0,h.yo)(this.rotation),(0,h.$I)(this.rotation)),(0,a.o1)(t,M,this.translation,this.scale),t}get localMatrixInverse(){return(0,a.B8)((0,l.vt)(),this.localMatrix)}equals(t){return this===t||null!=t&&(0,a.t2)(this.localMatrix,t.localMatrix)}};(0,r.Cg)([(0,u.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],p.prototype,"translation",void 0),(0,r.Cg)([(0,u.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],p.prototype,"rotationAxis",void 0),(0,r.Cg)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],p.prototype,"rotationAngle",void 0),(0,r.Cg)([(0,u.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],p.prototype,"scale",void 0),(0,r.Cg)([(0,u.MZ)()],p.prototype,"rotation",null),(0,r.Cg)([(0,u.MZ)()],p.prototype,"localMatrix",null),(0,r.Cg)([(0,u.MZ)()],p.prototype,"localMatrixInverse",null),p=(0,r.Cg)([(0,u.$K)("esri.geometry.support.MeshTransform")],p);const M=(0,f.vt)()},24770(t,e,n){n.d(e,{$I:()=>m,AU:()=>p,g7:()=>d,i4:()=>f,ui:()=>c,vt:()=>s,yo:()=>M});var r=n(34727),o=n(58083),i=n(67026),u=n(82534),a=n(35522),l=n(51850);function s(t=v){return[t[0],t[1],t[2],t[3]]}function f(t,e,n=s()){return(0,a.C)(n,t),n[3]=e,n}function c(t,e=s()){let n=(0,o.l)(y,t);return g(e,(0,r.KJ)((0,i.Xd)(e,n))),e}function h(t,e,n=s()){return(0,i.x8)(y,t,m(t)),(0,i.x8)(S,e,m(e)),(0,i.lw)(y,S,y),g(n,(0,r.KJ)((0,i.Xd)(n,y)))}function p(t,e,n,r=s()){return f(l.Cw,t,_),f(l.JP,e,w),f(l.Cb,n,A),h(_,w,_),h(_,A,r),r}function M(t){return t}function d(t){return t[3]}function m(t){return(0,r.kU)(t[3])}function g(t,e){return t[3]=e,t}const v=[0,0,1,0],y=(0,u.vt)(),S=(0,u.vt)(),_=(s(),s()),w=s(),A=s();n.d(e,["up",0,v])},72727(t,e,n){function r(t,e,n){if(e<=0)return 0;let r=t-n;return r<0?0:Math.floor(r/e)+1}n.d(e,{k:()=>r}),n(53966)},27921(t,e,n){n.d(e,{$Q:()=>I,BX:()=>x,C:()=>s,Cr:()=>p,H:()=>T,LV:()=>l,O_:()=>h,Qj:()=>f,T7:()=>b,Ui:()=>A,_I:()=>Z,fA:()=>c,gv:()=>B,lU:()=>M,mN:()=>q,mP:()=>_,mR:()=>w,vE:()=>P,vt:()=>a,wE:()=>R});var r=n(34727),o=n(35522),i=n(51850),u=(n(78955),n(44280),n(32114));function a(t=X){return[t[0],t[1],t[2],t[3]]}function l(t=X[0],e=X[1],n=X[2],r=X[3]){return c(t,e,n,r,u.Km.get())}function s(t,e){return c(e[0],e[1],e[2],e[3],t)}function f(t){return t}function c(t,e,n,r,o=a()){return o[0]=t,o[1]=e,o[2]=n,o[3]=r,o}function h(t,e,n){let r=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],o=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return n[0]=e[0]*o,n[1]=e[1]*o,n[2]=e[2]*o,n[3]=-(n[0]*t[0]+n[1]*t[1]+n[2]*t[2]),n}function p(t,e,n,r=a()){let o=n[0]-e[0],i=n[1]-e[1],u=n[2]-e[2],l=t[0]-e[0],s=t[1]-e[1],f=t[2]-e[2],c=i*f-u*s,h=u*l-o*f,p=o*s-i*l,M=c*c+h*h+p*p,d=Math.abs(M-1)>1e-5&&M>1e-12?1/Math.sqrt(M):1;return r[0]=c*d,r[1]=h*d,r[2]=p*d,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function M(t,e,n,r=0,i=Math.floor(1/3*n),u=Math.floor(2/3*n)){if(n<3)return!1;e(m,r);let a=i,l=!1;for(;a<n-1&&!l;)e(g,a),a++,l=!(0,o.t2)(m,g);if(!l)return!1;for(a=Math.max(a,u),l=!1;a<n&&!l;)e(v,a),a++,(0,o.Re)(y,m,g),(0,o.S8)(y,y),(0,o.Re)(S,g,v),(0,o.S8)(S,S),l=!(0,o.t2)(m,v)&&!(0,o.t2)(g,v)&&Math.abs((0,o.Om)(y,S))<d;return l?(p(m,g,v,t),!0):(0!==r||1!==i||2!==u)&&M(t,e,n,0,1,2)}n(32728);const d=.99619469809,m=(0,i.vt)(),g=(0,i.vt)(),v=(0,i.vt)(),y=(0,i.vt)(),S=(0,i.vt)();function _(t,e,n){return e!==t&&s(t,e),t[3]=-(0,o.Om)(t,n),t}function w(t,e,n,r){return(0,o.$A)(v,e,t),h(n,v,r)}function A(t,e,n){return null!=e&&C(P(t,e.origin,e.direction,E,n))}function b(t,e,n){return C(P(t,e.origin,e.vector,0,n))}function B(t,e,n){return C(P(t,e.origin,e.vector,1,n))}function O(t,e){return q(t,e)<=0}function x(t,e){return q(t,e)>=0}function I(t,e){return function(t,e,n,r,i,u,a){let l=(0,o.Om)(t,n),s=q(t,e);if(l>-1e-6&&l<1e-6)return N(s,i,u);let f=-s/l,c=N(l,i,!1);return!(a&&!c&&!N(s,i,u))&&(c?f>r.c0&&(r.c0=f):f<r.c1&&(r.c1=f),r.c0<=r.c1)}(t,e.ray.origin,e.ray.direction,e,!1,!1,!0)}function N(t,e,n){return n?e?t>=0:t<=0:e?t>0:t<0}function T(t,e,n,r=!1){let i=e.at(-1),u=q(t,i),a=r?u>0:u<=0;for(let l=0;l<e.length;l++){let s=e.at(l),f=q(t,s),c=r?f>0:f<=0;a!==c&&(0,o.Cc)(n(),i,s,u/(u-f)),c&&(0,o.C)(n(),s),i=s,u=f,a=c}}function Z(t,e,n){let r=(0,o.hs)(u.rq.get(),t,-t[3]),i=function(t,e,n){let r=(0,o.hs)(u.rq.get(),t,(0,o.Om)(t,e));return(0,o.Re)(n,e,r),n}(t,(0,o.Re)(u.rq.get(),e,r),u.rq.get());return(0,o.WQ)(n,i,r),n}function q(t,e){return(0,o.Om)(t,e)+t[3]}function R(t,e,n){for(let r=0;r<n;++r)if(O(t,e[r]))return!1;return!0}function C(t){return 0===t||1===t}function P(t,e,n,i,u){let a=(0,o.Om)(t,n),l=q(t,e);if(0===a)return l>=0?2:3;let s=-l/a;return 1&i&&(s=(0,r.qE)(s,0,1)),!(4&i)&&s<0||!(8&i)&&s>1?l>=0?2:3:((0,o.WQ)(u,e,(0,o.hs)(u,n,s)),l>=0?0:1)}const X=[0,0,1,0],E=8;(0,i.vt)()},44280(t,e,n){n.d(e,{g7:()=>a,gr:()=>u});var r=n(34727),o=n(35522),i=n(51850);function u(t,e){return(0,o.Om)(t,e)/(0,o.Bw)(t)}function a(t,e){let n=(0,o.Om)(t,e)/((0,o.Bw)(t)*(0,o.Bw)(e));return-(0,r.XM)(n)}(0,i.vt)(),(0,i.vt)()},32114(t,e,n){n.d(e,{Rc:()=>p,rq:()=>c,Km:()=>h}),n(44208);var r=n(26390),o=n(29242),i=n(9093),u=n(82534),a=n(48163),l=n(51850),s=n(91829);class f{constructor(t){this._create=t,this._items=[],this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){let t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new f(a.vt)}static createVec3f64(){return new f(l.vt)}static createVec4f64(){return new f(s.vt)}static createMat3f64(){return new f(o.vt)}static createMat4f64(){return new f(i.vt)}static createQuatf64(){return new f(u.vt)}get test(){}}f.createVec2f64();const c=f.createVec3f64(),h=f.createVec4f64(),p=(f.createMat3f64(),f.createMat4f64());f.createQuatf64()},77793(t,e,n){n.d(e,{V:()=>i,f:()=>u});var r=n(86738),o=n(73836);function i(t,e,n=a){return new r.A({x:t[n.originX],y:t[n.originY],z:t[n.originZ],spatialReference:e})}function u(t,e=a){return new o.A({translation:[t[e.translationX],-t[e.translationZ],t[e.translationY]],rotationAxis:[t[e.rotationX],-t[e.rotationZ],t[e.rotationY]],rotationAngle:t[e.rotationDeg],scale:[t[e.scaleX],t[e.scaleZ],t[e.scaleY]]})}const a={originX:"originX",originY:"originY",originZ:"originZ",translationX:"translationX",translationY:"translationY",translationZ:"translationZ",scaleX:"scaleX",scaleY:"scaleY",scaleZ:"scaleZ",rotationX:"rotationX",rotationY:"rotationY",rotationZ:"rotationZ",rotationDeg:"rotationDeg"}},40050(t,e,n){n.r(e),n.d(e,{assetMapFromAssetMapsJSON:()=>m,extractMesh:()=>d,meshFeatureSetFromJSON:()=>M});var r=n(52106),o=n(53966),i=n(91869),u=n(5443),a=n(16930),l=n(40118),s=n(63579),f=n(20557),c=n(22671),h=n(77793);const p=()=>o.A.getLogger("esri.rest.support.meshFeatureSet");function M(t,e,n){let o=n.features;n.features=[],delete n.geometryType;let i=c.A.fromJSON(n);if(i.geometryType="mesh",!n.assetMaps)return i;let u=m(e,n.assetMaps),l=t.sourceSpatialReference??a.A.WGS84,s=n.globalIdFieldName,{outFields:f}=t,h=null!=f&&f.length>0?(p=f.includes("*")?null:new Set(f),({attributes:t})=>{if(!t)return{};if(!p)return t;for(let e in t)p.has(e)||delete t[e];return t}):()=>({});var p;for(let t of o){let n=d(t,s,l,e,u);i.features.push(new r.A({geometry:n,attributes:h(t)}))}return i}function d(t,e,n,r,o){let i=t.attributes[e],a=o.get(i);if(null==a||!t.geometry)return null;let f=(0,h.V)(t.attributes,n,r.transformFieldRoles),c=u.A.fromJSON(t.geometry);c.spatialReference=n;let p=(0,h.f)(t.attributes,r.transformFieldRoles),M=n.isGeographic?"local":"georeferenced",d=function(t){let e=Array.from(t.files.values()),n=[];for(let t of e){if(2!==t.status)return null;let e=[];for(let n of t.parts){if(!n)return null;e.push(new s.Bq(n.url,n.hash))}n.push(new s.Qp(t.name,t.mimeType,e))}return{type:"service",assets:n}}(a);return d?(0,l.createWithExternalSource)(f,d,{extent:c,transform:p,vertexSpace:M,unitConversionDisabled:!0}):(0,l.H5)(f,{transform:p,vertexSpace:M})}function m(t,e){let n=new Map;for(let r of e){let e=r.parentGlobalId;if(null==e)continue;let o=r.assetName,u=r.assetType,a=r.assetHash,l=r.assetURL,s=r.conversionStatus,c=r.seqNo,h=(0,f.Fm)(u,t.supportedFormats);if(!h){p().error("mesh-feature-set:unknown-format",`Service returned an asset of type ${u}, but it does not list it as a supported type`);continue}let M=(0,i.tE)(n,e,()=>({files:new Map}));(0,i.tE)(M.files,o,()=>({name:o,type:u,mimeType:h,status:g(s),parts:[]})).parts[c]={hash:a,url:l}}return n}function g(t){switch(t){case"COMPLETED":case"SUBMITTED":return 2;case"INPROGRESS":return 1;default:return 0}}},32728(t,e,n){n.d(e,{YH:()=>u,nu:()=>a,wp:()=>i}),n(34727);var r=n(35522),o=n(51850);function i(t,e){let n=Math.sqrt(e[0]*e[0]+e[4]*e[4]+e[8]*e[8]),o=Math.sqrt(e[1]*e[1]+e[5]*e[5]+e[9]*e[9]),i=Math.sqrt(e[2]*e[2]+e[6]*e[6]+e[10]*e[10]);return(0,r.hZ)(t,n,o,i),t}function u(t,e,n){n||=t;let o=(0,r.Om)(t,e);(0,r.hZ)(n,t[0]-o*e[0],t[1]-o*e[1],t[2]-o*e[2]),(0,r.S8)(n,n)}function a(t,e,n,i=(0,o.vt)()){let u=(0,r.Bw)(t),a=(0,r.Bw)(e),f=(0,r.Om)(t,e)/(u*a);if(f<.9999999999999999){let o=Math.acos(f),c=((1-n)*u+n*a)/Math.sin(o),h=c/u*Math.sin((1-n)*o),p=c/a*Math.sin(n*o);return(0,r.hs)(l,t,h),(0,r.hs)(s,e,p),(0,r.WQ)(i,l,s)}return(0,r.Cc)(i,t,e,n)}(0,o.vt)(),(0,o.vt)(),(0,o.vt)();const l=(0,o.vt)(),s=(0,o.vt)()}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[909,7982],{27982(e,a,r){r.r(a),r.d(a,{fromUrl:()=>f,isGaussianSplat3DTilesUrl:()=>p});var t=r(49186),l=r(84952),n=r(60694),s=r(92009),i=r(23154),o=r(2976),y=r(77548),u=r(7861);const c={FeatureLayer:!0,SceneLayer:!0,VideoLayer:!0};async function f(e){let{properties:a,url:t}=e,l={...a,url:t},n=await w(t,a?.customParameters),{Constructor:s,layerId:i,sourceJSON:o,parsedUrl:y,layers:u,tables:c}=n;if(u.length+c.length===0)return null!=i&&(l.layerId=i),null!=o&&(l.sourceJSON=o),new s(l);let f=new(0,(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5356),r.e(6569)]).then(()=>r(85989))).default)({title:y.title});return await async function(e,a,r){let t=a.sublayerConstructorProvider;for(let{id:l,serverUrl:n}of a.layers){let s=d(a.layerInfos,l),i=m(n,l,s,(s&&t?.(s))??a.Constructor,r);e.add(i)}if(a.tables.length){let t=await h("FeatureLayer");a.tables.forEach(({id:l,serverUrl:n})=>{let s=m(n,l,d(a.tableInfos,l),t,r);e.tables.add(s)})}}(f,n,l),f}function d(e,a){return e?e.find(({id:e})=>e===a):null}function m(e,a,r,t,l){let n={...l,layerId:a};return null!=e&&(n.url=e),null!=r&&(n.sourceJSON=r),"sublayerTitleMode"in t.prototype&&(n.sublayerTitleMode="service-name"),new t(n)}async function w(e,a){let r=(0,n.qg)(e);if(r??=await async function(e,a){let r=await(0,u.L)(e,{customParameters:a}),t=null,s=null,i=r.type;if("Feature Layer"===i||"Table"===i?(t="FeatureServer",s=r.id??null):"indexedVector"===i?t="VectorTileServer":r.hasOwnProperty("mapName")?t="MapServer":r.hasOwnProperty("bandCount")&&r.hasOwnProperty("pixelSizeX")?t="ImageServer":r.hasOwnProperty("maxRecordCount")&&r.hasOwnProperty("allowGeometryUpdates")?t="FeatureServer":r.hasOwnProperty("streamUrls")?t="StreamServer":L(r)?(t="SceneServer",s=r.id):r.hasOwnProperty("layers")&&L(r.layers?.[0])&&(t="SceneServer"),!t)return null;let o=null==s?null:(0,n.iz)(e);return{title:null!=o&&r.name||(0,l.e7)(e),serverType:t,sublayer:s,url:{path:null==o?(0,l.An)(e).path:o.serviceUrl}}}(e,a),null==r)throw new t.A("arcgis-layers:url-mismatch","The url '${url}' is not a valid arcgis resource",{url:e});let o,{serverType:f,sublayer:d}=r,m={FeatureServer:"FeatureLayer",KnowledgeGraphServer:"KnowledgeGraphLayer",StreamServer:"StreamLayer",VectorTileServer:"VectorTileLayer",VideoServer:"VideoLayer"},w="FeatureServer"===f,S="SceneServer"===f,v={parsedUrl:r,Constructor:null,layerId:w||S?d??void 0:void 0,layers:[],tables:[]};switch(f){case"MapServer":if(null!=d){let{type:r}=await(0,u.L)(e,{customParameters:a});switch(o="FeatureLayer",r){case"Annotation Layer":o="AnnotationFeatureLayer";break;case"Dimension Layer":o="DimensionFeatureLayer";break;case"Catalog Layer":o="CatalogLayer";break;case"Annotation SubLayer":case"Catalog Dynamic Group Layer":throw new t.A("arcgis-layers:unsupported",`fromUrl() does not support "${r}" type`)}}else o=await async function(e,a){return(await(0,u.L)(e,{customParameters:a})).tileInfo}(e,a)?"TileLayer":"MapImageLayer";break;case"ImageServer":{let{tileInfo:r,cacheType:t}=await(0,u.L)(e,{customParameters:a});o=r?"LERC"!==r?.format?.toUpperCase()||t&&"elevation"!==t.toLowerCase()?"ImageryTileLayer":"ElevationLayer":"ImageryLayer";break}case"SceneServer":{let e=await(0,u.L)(r.url.path,{customParameters:a});if(o="SceneLayer",e){let a=e?.layers;if("Voxel"===e?.layerType)o="VoxelLayer";else if(a?.length){let e=a[0]?.layerType;null!=e&&null!=y.XX[e]&&(o=y.XX[e])}}break}case"3DTilesServer":o=await p(e,a)?"GaussianSplatLayer":"IntegratedMesh3DTilesLayer";break;case"FeatureServer":if(o="FeatureLayer",null!=d){let r=await(0,u.L)(e,{customParameters:a});v.sourceJSON=r,v.preferredUrl=(0,y.$x)();let l=(0,i.Jo)(r.type);if(!l)throw new t.A("arcgis-layers:unsupported",`fromUrl() does not support "${r.type}" type`);o=l}break;default:o=m[f]}if(c[o]&&null==d){let r=await async function(e,a,r){let t,l,n,o,c;switch(a){case"FeatureServer":{let a=await(0,i.QM)(e,{customParameters:r});n=(0,y.$x)(e,{preferredHost:a.preferredHost});let l=!!a.layersJSON,s=a.layersJSON||a.serviceJSON;o=l?s?.layers:[],c=l?s?.tables:[],t=s;break}case"SceneServer":{let a=await async function(e,a){let r=await(0,u.L)(e,{customParameters:a});if(!r.layers?.[0])return{serviceInfo:r};try{let{serverUrl:t}=await(0,s.L)(e),l=await(0,u.L)(t,{customParameters:a}).catch(()=>null);return l&&(r.tables=l.tables),{serviceInfo:r,tableServerUrl:t}}catch{return{serviceInfo:r}}}(e,r);t=a.serviceInfo,l=a.tableServerUrl;break}default:t=await(0,u.L)(e,{customParameters:r})}return{preferredUrl:n,layers:t?.layers?.map(e=>({id:e.id})).reverse()||[],tables:t?.tables?.map(e=>({serverUrl:l,id:e.id})).reverse()||[],layerInfos:o,tableInfos:c}}(e,f,a),l=r.layers.length+r.tables.length;if(w){if(0===l)throw new t.A("arcgis-layers:no-data",`The feature service '${e}' does not have any supported layers or tables`);v.preferredUrl=r.preferredUrl,v.layerInfos=r.layerInfos,v.tableInfos=r.tableInfos}if(1!==l)v.layers=r.layers,v.tables=r.tables,w&&r.layerInfos?.length&&(v.sublayerConstructorProvider=await async function(e){if(!e.length)return;let a=new Set,r=[];for(let{type:t}of e)a.has(t)||(a.add(t),r.push(h((0,i.Jo)(t))));let t=await Promise.all(r),l=new Map;return Array.from(a).forEach((e,a)=>{l.set(e,t[a])}),e=>l.get(e.type)}(r.layerInfos));else if(w||S){let e=r.layerInfos?.[0]??r.tableInfos?.[0];v.layerId=r.layers[0]?.id??r.tables[0]?.id,v.sourceJSON=e,w&&(o=(0,i.Jo)(e?.type))}}return v.Constructor=await h(o),v}function L(e){return null!=e&&e.hasOwnProperty("store")&&e.hasOwnProperty("id")&&"number"==typeof e.id}async function h(e){return(0,o.U[e])()}async function p(e,a){return!0===((await(0,u.L)(e,{customParameters:a})).extensions?.["3DTILES_content_gltf"])?.extensionsRequired?.includes("KHR_gaussian_splatting")}},92009(e,a,r){r.d(a,{L:()=>u});var t=r(70333),l=r(56507),n=r(49186),s=r(17676),i=r(60694),o=r(20655),y=r(80812);async function u(e,a){let r=(0,i.qg)(e);if(!r)throw new n.A("invalid-url","Invalid scene service url");let u={...a,sceneServerUrl:r.url.path,layerId:r.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){let a=(await c(e)).serviceItemId;if(!a)return null;let r=new y.default({id:a,apiKey:e.apiKey}),n=await async function(e){let a=t.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;let r=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{let a=(await(0,l.A)(r,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,s.QP)(e)}return null}(e);null!=n&&(r.portal=new o.A({url:n}));try{return await r.load({signal:e.signal})}catch(e){return(0,s.QP)(e),null}}(u),null==u.sceneLayerItem)return f(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);let d=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{let r=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find(e=>"Feature Service"===e.type)||null;if(!r)return null;let t=new y.default({portal:r.portal,id:r.id});return await t.load(),t}catch(e){return(0,s.QP)(e),null}}(u);if(!d?.url)throw new n.A("related-service-not-found","Could not find feature service through portal item relationship");u.featureServiceItem=d;let m=await f(d.url,u);return m.portalItem=d,m}async function c(e){if(e.rootDocument)return e.rootDocument;let a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{e.rootDocument=(await(0,l.A)(e.sceneServerUrl,a)).data}catch{e.rootDocument={}}return e.rootDocument}async function f(e,a){let r=(0,i.qg)(e);if(!r)throw new n.A("invalid-feature-service-url","Invalid feature service url");let t=r.url.path,s=a.layerId;if(null==s)return{serverUrl:t};let o=c(a),y=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,u=(y?.layers?.[0]||y?.tables?.[0])?.customParameters,f=e=>{let r={query:{f:"json",...u},responseType:"json",authMode:e,signal:a.signal};return(0,l.A)(t,r)},d=f("anonymous").catch(()=>f("no-prompt")),[m,w]=await Promise.all([d,o]),L=w?.layers,h=m.data&&m.data.layers;if(!Array.isArray(h))throw Error("expected layers array");if(Array.isArray(L)){for(let e=0;e<Math.min(L.length,h.length);e++)if(L[e].id===s)return{serverUrl:t,layerId:h[e].id}}else if(null!=s&&s<h.length)return{serverUrl:t,layerId:h[s].id};throw Error("could not find matching associated sublayer")}},23154(e,a,r){r.d(a,{A6:()=>i,Aq:()=>w,Jo:()=>m,QM:()=>s});var t=r(77548),l=r(7861);const n=new Set(["Annotation Layer","Catalog Layer","Dimension Layer","Feature Layer","Oriented Imagery Layer"]);async function s(e,a){let{serviceJSON:r,layersJSON:t,...l}=await i(e,a);u(r);let n={serviceJSON:r,...l};return t&&(u(t),n.layersJSON=t),n}async function i(e,a){let{loadContext:r,...n}=a||{},s=r?await r.fetchServiceMetadata(e,n):await(0,l.L)(e,n),i=(0,t.G$)();d(s);let o={serviceJSON:s,preferredHost:i};if((s.currentVersion??0)<10.5)return o;let y=`${(0,t.$x)()??e}/layers`,u=r?await r.fetchServiceMetadata(y,n):await(0,l.L)(y,n);return d(u),o.layersJSON={layers:u.layers,tables:u.tables},o}function o(e){return n.has(e.type)}function y(e){return"Table"===e.type}function u(e){e.layers=e.layers?.filter(o),e.tables=e.tables?.filter(y)}function c(e){e.type||="Feature Layer"}function f(e){e.type||="Table"}function d(e){e.layers?.forEach(c),e.tables?.forEach(f)}function m(e){if(!e)return"FeatureLayer";switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"DimensionFeatureLayer";case"Annotation Layer":return"AnnotationFeatureLayer"}return null}function w(e,a){if(!e)return a?"Table":"ArcGISFeatureLayer";switch(e){case"Annotation Layer":return"ArcGISAnnotationLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"ArcGISDimensionLayer";case"Feature Layer":return"ArcGISFeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Parcel Layer":return"ParcelLayer";case"Table":return"Table";case"Topology Layer":return"TopologyLayer";case"Trace Network Layer":return"TraceNetworkLayer";case"Utility Network Layer":return"UtilityNetworkLayer";default:return null}}},2976(e,a,r){const t={AnnotationFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(2889),r.e(4674),r.e(7283),r.e(7537)]).then(()=>r(20737))).default,BingMapsLayer:async()=>(await Promise.all([r.e(6914),r.e(7865),r.e(5732),r.e(6684)]).then(()=>r(17029))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9789),r.e(4674),r.e(7283),r.e(8589),r.e(7005),r.e(9480),r.e(8505),r.e(9389)]).then(()=>r(82411))).default,CSVLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(5683)]).then(()=>r(68695))).default,CatalogLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(9789),r.e(4674),r.e(893),r.e(7283),r.e(7013),r.e(7067),r.e(3312)]).then(()=>r(83508))).default,DimensionFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(2889),r.e(4674),r.e(7283),r.e(8361)]).then(()=>r(25077))).default,DimensionLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(3813)]).then(()=>r(71493))).default,ElevationLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(9953),r.e(8732),r.e(3169)]).then(()=>r(38732))).default,FeatureLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9789),r.e(4674),r.e(7283),r.e(8589),r.e(6217)]).then(()=>r(18589))).default,GaussianSplatLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(2047),r.e(6475)]).then(()=>r(36475))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(221)]).then(()=>r(15481))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(9657)]).then(()=>r(63201))).default,GeospatialPDFLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(9187),r.e(8885),r.e(7865),r.e(9117),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(3299),r.e(9944),r.e(2754),r.e(6841),r.e(9859),r.e(5485),r.e(4642),r.e(7063)]).then(()=>r(87063))).default,GroupLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5356),r.e(6569)]).then(()=>r(85989))).default,ImageryLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(893),r.e(9944),r.e(6841),r.e(5676),r.e(3452),r.e(7772)]).then(()=>r(87772))).default,ImageryTileLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(9944),r.e(2754),r.e(6841),r.e(5676),r.e(9859),r.e(9235),r.e(3452),r.e(1003),r.e(2806),r.e(7870)]).then(()=>r(90124))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(9953),r.e(2047),r.e(6451),r.e(9229)]).then(()=>r(61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(9953),r.e(7552),r.e(1843),r.e(7005),r.e(9480),r.e(2047),r.e(8197),r.e(6451),r.e(3527)]).then(()=>r(49013))).default,KMLLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(1214),r.e(5051),r.e(6854),r.e(4859)]).then(()=>r(162))).default,KnowledgeGraphLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9789),r.e(9696),r.e(359),r.e(5752),r.e(6151),r.e(3902),r.e(4934),r.e(8692)]).then(()=>r(28692))).default,LineOfSightLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(4470),r.e(9695)]).then(()=>r(49695))).default,LinkChartLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9789),r.e(9696),r.e(359),r.e(5752),r.e(6151),r.e(3902),r.e(4934),r.e(3309)]).then(()=>r(93309))).default,MapImageLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(4674),r.e(893),r.e(8470),r.e(2241)]).then(()=>r(7656))).default,MapNotesLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9789),r.e(4674),r.e(7283),r.e(8589),r.e(6151),r.e(4403)]).then(()=>r(96299))).default,MediaLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5485),r.e(3121)]).then(()=>r(99557))).default,OGCFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(8505),r.e(5977)]).then(()=>r(65977))).default,OpenStreetMapLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(7269),r.e(349)]).then(()=>r(40349))).default,OrientedImageryLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9789),r.e(4674),r.e(7283),r.e(8589),r.e(1402)]).then(()=>r(16852))).default,ParquetLayer:async()=>(await Promise.all([r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(3819),r.e(3483),r.e(2100)]).then(()=>r(99680))).default,PointCloudLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(2869),r.e(7984),r.e(7885)]).then(()=>r(77885))).default,RouteLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(1214),r.e(5051),r.e(6854),r.e(4779)]).then(()=>r(39622))).default,SceneLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(7005),r.e(9480),r.e(8505),r.e(4844)]).then(()=>r(2e4))).default,SketchLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9789),r.e(4674),r.e(7283),r.e(8589),r.e(6151),r.e(4152)]).then(()=>r(15056))).default,StreamLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(557)]).then(()=>r(79457))).default,SubtypeGroupLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(2889),r.e(9789),r.e(4674),r.e(7283),r.e(1951)]).then(()=>r(97483))).default,TileLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(4674),r.e(893),r.e(8470),r.e(6811)]).then(()=>r(71756))).default,UnknownLayer:async()=>(await Promise.all([r.e(9917),r.e(146)]).then(()=>r(146))).default,UnsupportedLayer:async()=>(await Promise.all([r.e(9917),r.e(5165)]).then(()=>r(45165))).default,VectorTileLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(9953),r.e(5228),r.e(7499),r.e(9260)]).then(()=>r(50638))).default,VideoLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(3910),r.e(5128),r.e(4674),r.e(575)]).then(()=>r(86875))).default,ViewshedLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(4470),r.e(6650)]).then(()=>r(96650))).default,VoxelLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(2869),r.e(167)]).then(()=>r(90167))).default,WCSLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(9944),r.e(2754),r.e(6841),r.e(5676),r.e(9859),r.e(9235),r.e(3452),r.e(2806),r.e(2061)]).then(()=>r(20521))).default,WFSLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9281)]).then(()=>r(21901))).default,WMSLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(1904)]).then(()=>r(51904))).default,WMTSLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(7269),r.e(309)]).then(()=>r(20309))).default,WebTileLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(7269)]).then(()=>r(47314))).default};r.d(a,["U",0,t])},7861(e,a,r){r.d(a,{L:()=>l});var t=r(56507);async function l(e,a){return(await(0,t.A)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}})).data}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[909,7982],{27982(e,a,r){r.r(a),r.d(a,{fromUrl:()=>f,isGaussianSplat3DTilesUrl:()=>p});var t=r(49186),l=r(84952),n=r(60694),s=r(92009),i=r(23154),o=r(2976),y=r(77548),u=r(7861);const c={FeatureLayer:!0,SceneLayer:!0,VideoLayer:!0};async function f(e){let{properties:a,url:t}=e,l={...a,url:t},n=await w(t,a?.customParameters),{Constructor:s,layerId:i,sourceJSON:o,parsedUrl:y,layers:u,tables:c}=n;if(u.length+c.length===0)return null!=i&&(l.layerId=i),null!=o&&(l.sourceJSON=o),new s(l);let f=new(0,(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5356),r.e(6569)]).then(()=>r(85989))).default)({title:y.title});return await async function(e,a,r){let t=a.sublayerConstructorProvider;for(let{id:l,serverUrl:n}of a.layers){let s=d(a.layerInfos,l),i=m(n,l,s,(s&&t?.(s))??a.Constructor,r);e.add(i)}if(a.tables.length){let t=await h("FeatureLayer");a.tables.forEach(({id:l,serverUrl:n})=>{let s=m(n,l,d(a.tableInfos,l),t,r);e.tables.add(s)})}}(f,n,l),f}function d(e,a){return e?e.find(({id:e})=>e===a):null}function m(e,a,r,t,l){let n={...l,layerId:a};return null!=e&&(n.url=e),null!=r&&(n.sourceJSON=r),"sublayerTitleMode"in t.prototype&&(n.sublayerTitleMode="service-name"),new t(n)}async function w(e,a){let r=(0,n.qg)(e);if(r??=await async function(e,a){let r=await(0,u.L)(e,{customParameters:a}),t=null,s=null,i=r.type;if("Feature Layer"===i||"Table"===i?(t="FeatureServer",s=r.id??null):"indexedVector"===i?t="VectorTileServer":r.hasOwnProperty("mapName")?t="MapServer":r.hasOwnProperty("bandCount")&&r.hasOwnProperty("pixelSizeX")?t="ImageServer":r.hasOwnProperty("maxRecordCount")&&r.hasOwnProperty("allowGeometryUpdates")?t="FeatureServer":r.hasOwnProperty("streamUrls")?t="StreamServer":L(r)?(t="SceneServer",s=r.id):r.hasOwnProperty("layers")&&L(r.layers?.[0])&&(t="SceneServer"),!t)return null;let o=null==s?null:(0,n.iz)(e);return{title:null!=o&&r.name||(0,l.e7)(e),serverType:t,sublayer:s,url:{path:null==o?(0,l.An)(e).path:o.serviceUrl}}}(e,a),null==r)throw new t.A("arcgis-layers:url-mismatch","The url '${url}' is not a valid arcgis resource",{url:e});let o,{serverType:f,sublayer:d}=r,m={FeatureServer:"FeatureLayer",KnowledgeGraphServer:"KnowledgeGraphLayer",StreamServer:"StreamLayer",VectorTileServer:"VectorTileLayer",VideoServer:"VideoLayer"},w="FeatureServer"===f,S="SceneServer"===f,v={parsedUrl:r,Constructor:null,layerId:w||S?d??void 0:void 0,layers:[],tables:[]};switch(f){case"MapServer":if(null!=d){let{type:r}=await(0,u.L)(e,{customParameters:a});switch(o="FeatureLayer",r){case"Annotation Layer":o="AnnotationFeatureLayer";break;case"Dimension Layer":o="DimensionFeatureLayer";break;case"Catalog Layer":o="CatalogLayer";break;case"Annotation SubLayer":case"Catalog Dynamic Group Layer":throw new t.A("arcgis-layers:unsupported",`fromUrl() does not support "${r}" type`)}}else o=await async function(e,a){return(await(0,u.L)(e,{customParameters:a})).tileInfo}(e,a)?"TileLayer":"MapImageLayer";break;case"ImageServer":{let{tileInfo:r,cacheType:t}=await(0,u.L)(e,{customParameters:a});o=r?"LERC"!==r?.format?.toUpperCase()||t&&"elevation"!==t.toLowerCase()?"ImageryTileLayer":"ElevationLayer":"ImageryLayer";break}case"SceneServer":{let e=await(0,u.L)(r.url.path,{customParameters:a});if(o="SceneLayer",e){let a=e?.layers;if("Voxel"===e?.layerType)o="VoxelLayer";else if(a?.length){let e=a[0]?.layerType;null!=e&&null!=y.XX[e]&&(o=y.XX[e])}}break}case"3DTilesServer":o=await p(e,a)?"GaussianSplatLayer":"IntegratedMesh3DTilesLayer";break;case"FeatureServer":if(o="FeatureLayer",null!=d){let r=await(0,u.L)(e,{customParameters:a});v.sourceJSON=r,v.preferredUrl=(0,y.$x)();let l=(0,i.Jo)(r.type);if(!l)throw new t.A("arcgis-layers:unsupported",`fromUrl() does not support "${r.type}" type`);o=l}break;default:o=m[f]}if(c[o]&&null==d){let r=await async function(e,a,r){let t,l,n,o,c;switch(a){case"FeatureServer":{let a=await(0,i.QM)(e,{customParameters:r});n=(0,y.$x)(e,{preferredHost:a.preferredHost});let l=!!a.layersJSON,s=a.layersJSON||a.serviceJSON;o=l?s?.layers:[],c=l?s?.tables:[],t=s;break}case"SceneServer":{let a=await async function(e,a){let r=await(0,u.L)(e,{customParameters:a});if(!r.layers?.[0])return{serviceInfo:r};try{let{serverUrl:t}=await(0,s.L)(e),l=await(0,u.L)(t,{customParameters:a}).catch(()=>null);return l&&(r.tables=l.tables),{serviceInfo:r,tableServerUrl:t}}catch{return{serviceInfo:r}}}(e,r);t=a.serviceInfo,l=a.tableServerUrl;break}default:t=await(0,u.L)(e,{customParameters:r})}return{preferredUrl:n,layers:t?.layers?.map(e=>({id:e.id})).reverse()||[],tables:t?.tables?.map(e=>({serverUrl:l,id:e.id})).reverse()||[],layerInfos:o,tableInfos:c}}(e,f,a),l=r.layers.length+r.tables.length;if(w){if(0===l)throw new t.A("arcgis-layers:no-data",`The feature service '${e}' does not have any supported layers or tables`);v.preferredUrl=r.preferredUrl,v.layerInfos=r.layerInfos,v.tableInfos=r.tableInfos}if(1!==l)v.layers=r.layers,v.tables=r.tables,w&&r.layerInfos?.length&&(v.sublayerConstructorProvider=await async function(e){if(!e.length)return;let a=new Set,r=[];for(let{type:t}of e)a.has(t)||(a.add(t),r.push(h((0,i.Jo)(t))));let t=await Promise.all(r),l=new Map;return Array.from(a).forEach((e,a)=>{l.set(e,t[a])}),e=>l.get(e.type)}(r.layerInfos));else if(w||S){let e=r.layerInfos?.[0]??r.tableInfos?.[0];v.layerId=r.layers[0]?.id??r.tables[0]?.id,v.sourceJSON=e,w&&(o=(0,i.Jo)(e?.type))}}return v.Constructor=await h(o),v}function L(e){return null!=e&&e.hasOwnProperty("store")&&e.hasOwnProperty("id")&&"number"==typeof e.id}async function h(e){return(0,o.U[e])()}async function p(e,a){return!0===((await(0,u.L)(e,{customParameters:a})).extensions?.["3DTILES_content_gltf"])?.extensionsRequired?.includes("KHR_gaussian_splatting")}},92009(e,a,r){r.d(a,{L:()=>u});var t=r(70333),l=r(56507),n=r(49186),s=r(17676),i=r(60694),o=r(20655),y=r(80812);async function u(e,a){let r=(0,i.qg)(e);if(!r)throw new n.A("invalid-url","Invalid scene service url");let u={...a,sceneServerUrl:r.url.path,layerId:r.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){let a=(await c(e)).serviceItemId;if(!a)return null;let r=new y.default({id:a,apiKey:e.apiKey}),n=await async function(e){let a=t.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;let r=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{let a=(await(0,l.A)(r,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,s.QP)(e)}return null}(e);null!=n&&(r.portal=new o.A({url:n}));try{return await r.load({signal:e.signal})}catch(e){return(0,s.QP)(e),null}}(u),null==u.sceneLayerItem)return f(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);let d=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{let r=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find(e=>"Feature Service"===e.type)||null;if(!r)return null;let t=new y.default({portal:r.portal,id:r.id});return await t.load(),t}catch(e){return(0,s.QP)(e),null}}(u);if(!d?.url)throw new n.A("related-service-not-found","Could not find feature service through portal item relationship");u.featureServiceItem=d;let m=await f(d.url,u);return m.portalItem=d,m}async function c(e){if(e.rootDocument)return e.rootDocument;let a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{e.rootDocument=(await(0,l.A)(e.sceneServerUrl,a)).data}catch{e.rootDocument={}}return e.rootDocument}async function f(e,a){let r=(0,i.qg)(e);if(!r)throw new n.A("invalid-feature-service-url","Invalid feature service url");let t=r.url.path,s=a.layerId;if(null==s)return{serverUrl:t};let o=c(a),y=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,u=(y?.layers?.[0]||y?.tables?.[0])?.customParameters,f=e=>{let r={query:{f:"json",...u},responseType:"json",authMode:e,signal:a.signal};return(0,l.A)(t,r)},d=f("anonymous").catch(()=>f("no-prompt")),[m,w]=await Promise.all([d,o]),L=w?.layers,h=m.data&&m.data.layers;if(!Array.isArray(h))throw Error("expected layers array");if(Array.isArray(L)){for(let e=0;e<Math.min(L.length,h.length);e++)if(L[e].id===s)return{serverUrl:t,layerId:h[e].id}}else if(null!=s&&s<h.length)return{serverUrl:t,layerId:h[s].id};throw Error("could not find matching associated sublayer")}},23154(e,a,r){r.d(a,{A6:()=>i,Aq:()=>w,Jo:()=>m,QM:()=>s});var t=r(77548),l=r(7861);const n=new Set(["Annotation Layer","Catalog Layer","Dimension Layer","Feature Layer","Oriented Imagery Layer"]);async function s(e,a){let{serviceJSON:r,layersJSON:t,...l}=await i(e,a);u(r);let n={serviceJSON:r,...l};return t&&(u(t),n.layersJSON=t),n}async function i(e,a){let{loadContext:r,...n}=a||{},s=r?await r.fetchServiceMetadata(e,n):await(0,l.L)(e,n),i=(0,t.G$)();d(s);let o={serviceJSON:s,preferredHost:i};if((s.currentVersion??0)<10.5)return o;let y=`${(0,t.$x)()??e}/layers`,u=r?await r.fetchServiceMetadata(y,n):await(0,l.L)(y,n);return d(u),o.layersJSON={layers:u.layers,tables:u.tables},o}function o(e){return n.has(e.type)}function y(e){return"Table"===e.type}function u(e){e.layers=e.layers?.filter(o),e.tables=e.tables?.filter(y)}function c(e){e.type||="Feature Layer"}function f(e){e.type||="Table"}function d(e){e.layers?.forEach(c),e.tables?.forEach(f)}function m(e){if(!e)return"FeatureLayer";switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"DimensionFeatureLayer";case"Annotation Layer":return"AnnotationFeatureLayer"}return null}function w(e,a){if(!e)return a?"Table":"ArcGISFeatureLayer";switch(e){case"Annotation Layer":return"ArcGISAnnotationLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"ArcGISDimensionLayer";case"Feature Layer":return"ArcGISFeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Parcel Layer":return"ParcelLayer";case"Table":return"Table";case"Topology Layer":return"TopologyLayer";case"Trace Network Layer":return"TraceNetworkLayer";case"Utility Network Layer":return"UtilityNetworkLayer";default:return null}}},2976(e,a,r){const t={AnnotationFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(2889),r.e(4674),r.e(7283),r.e(7537)]).then(()=>r(20737))).default,BingMapsLayer:async()=>(await Promise.all([r.e(6914),r.e(7865),r.e(5732),r.e(6684)]).then(()=>r(17029))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9789),r.e(4674),r.e(7283),r.e(8589),r.e(7005),r.e(9480),r.e(8505),r.e(9389)]).then(()=>r(82411))).default,CSVLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(5683)]).then(()=>r(68695))).default,CatalogLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(9789),r.e(4674),r.e(893),r.e(7283),r.e(7013),r.e(7067),r.e(3312)]).then(()=>r(83508))).default,DimensionFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(2889),r.e(4674),r.e(7283),r.e(8361)]).then(()=>r(25077))).default,DimensionLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(3813)]).then(()=>r(71493))).default,ElevationLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(9953),r.e(8732),r.e(3169)]).then(()=>r(38732))).default,FeatureLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9789),r.e(4674),r.e(7283),r.e(8589),r.e(6217)]).then(()=>r(18589))).default,GaussianSplatLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(2047),r.e(6475)]).then(()=>r(36475))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(221)]).then(()=>r(15481))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(9657)]).then(()=>r(63201))).default,GeospatialPDFLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(9187),r.e(8885),r.e(7865),r.e(9117),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(3299),r.e(9944),r.e(2754),r.e(6841),r.e(9859),r.e(5485),r.e(4642),r.e(4907)]).then(()=>r(44907))).default,GroupLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5356),r.e(6569)]).then(()=>r(85989))).default,ImageryLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(893),r.e(9944),r.e(6841),r.e(5676),r.e(3452),r.e(7772)]).then(()=>r(87772))).default,ImageryTileLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(9944),r.e(2754),r.e(6841),r.e(5676),r.e(9859),r.e(9235),r.e(3452),r.e(1003),r.e(2806),r.e(7870)]).then(()=>r(90124))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(9953),r.e(2047),r.e(6451),r.e(9229)]).then(()=>r(61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(9953),r.e(7552),r.e(1843),r.e(7005),r.e(9480),r.e(2047),r.e(8197),r.e(6451),r.e(3527)]).then(()=>r(49013))).default,KMLLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(1214),r.e(5051),r.e(6854),r.e(4859)]).then(()=>r(162))).default,KnowledgeGraphLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9789),r.e(9696),r.e(359),r.e(5752),r.e(6151),r.e(3902),r.e(4934),r.e(8692)]).then(()=>r(28692))).default,LineOfSightLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(4470),r.e(9695)]).then(()=>r(49695))).default,LinkChartLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9789),r.e(9696),r.e(359),r.e(5752),r.e(6151),r.e(3902),r.e(4934),r.e(3309)]).then(()=>r(93309))).default,MapImageLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(4674),r.e(893),r.e(8470),r.e(2241)]).then(()=>r(7656))).default,MapNotesLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9789),r.e(4674),r.e(7283),r.e(8589),r.e(6151),r.e(4403)]).then(()=>r(96299))).default,MediaLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5485),r.e(3121)]).then(()=>r(99557))).default,OGCFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(8505),r.e(5977)]).then(()=>r(65977))).default,OpenStreetMapLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(7269),r.e(349)]).then(()=>r(40349))).default,OrientedImageryLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9789),r.e(4674),r.e(7283),r.e(8589),r.e(1402)]).then(()=>r(16852))).default,ParquetLayer:async()=>(await Promise.all([r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(3819),r.e(3483),r.e(2100)]).then(()=>r(99680))).default,PointCloudLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(2869),r.e(7984),r.e(7885)]).then(()=>r(77885))).default,RouteLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(1214),r.e(5051),r.e(6854),r.e(4779)]).then(()=>r(39622))).default,SceneLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(7005),r.e(9480),r.e(8505),r.e(4844)]).then(()=>r(2e4))).default,SketchLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9789),r.e(4674),r.e(7283),r.e(8589),r.e(6151),r.e(4152)]).then(()=>r(15056))).default,StreamLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(557)]).then(()=>r(79457))).default,SubtypeGroupLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(2889),r.e(9789),r.e(4674),r.e(7283),r.e(1951)]).then(()=>r(97483))).default,TileLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(4674),r.e(893),r.e(8470),r.e(6811)]).then(()=>r(71756))).default,UnknownLayer:async()=>(await Promise.all([r.e(9917),r.e(146)]).then(()=>r(146))).default,UnsupportedLayer:async()=>(await Promise.all([r.e(9917),r.e(5165)]).then(()=>r(45165))).default,VectorTileLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(9953),r.e(5228),r.e(7499),r.e(9260)]).then(()=>r(50638))).default,VideoLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(3910),r.e(5128),r.e(4674),r.e(575)]).then(()=>r(86875))).default,ViewshedLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(4470),r.e(6650)]).then(()=>r(96650))).default,VoxelLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(2869),r.e(167)]).then(()=>r(90167))).default,WCSLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(9944),r.e(2754),r.e(6841),r.e(5676),r.e(9859),r.e(9235),r.e(3452),r.e(2806),r.e(2061)]).then(()=>r(20521))).default,WFSLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9281)]).then(()=>r(21901))).default,WMSLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(1904)]).then(()=>r(51904))).default,WMTSLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(7269),r.e(309)]).then(()=>r(20309))).default,WebTileLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(7269)]).then(()=>r(47314))).default};r.d(a,["U",0,t])},7861(e,a,r){r.d(a,{L:()=>l});var t=r(56507);async function l(e,a){return(await(0,t.A)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}})).data}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7063],{26887(e,t,i){function r(){return[1,0,0,1,0,0]}function n(e,t,i,r,n,a){return[e,t,i,r,n,a]}i.d(t,{fA:()=>n,vt:()=>r});Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:[1,0,0,1,0,0],clone:function(e){return[e[0],e[1],e[2],e[3],e[4],e[5]]},create:r,fromValues:n},Symbol.toStringTag,{value:"Module"}))},4144(e,t,i){i.r(t),i.d(t,{clipToSpatialReference:()=>s,execute:()=>u,executeMany:()=>p,foldInto360Range:()=>h,foldInto360RangeGeodetic:()=>c,isLoaded:()=>o,load:()=>l,normalizeGeometry:()=>d,supportsCurves:()=>f,transform:()=>g});var r=i(76061),n=i(83290);let a;function o(){return!!a&&(0,n.i)()}async function l(){if(!o()){let[e,t]=await Promise.all([Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(9192)]).then(()=>i(9192)),Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(5756)]).then(()=>i(15756)).then(({injectPe:e})=>e),(0,n.l)()]);a=new e.OperatorProject,t(n.p)}}function s(e,t,i){return a.clipToSpatialReference(e,t,null,i)}function u(e,t){return a.execute(e,t,null)}function p(e,t){let i=a.executeMany(new r.S(e),t,null);return Array.from(i)}function h(e,t){return a.foldInto360Range(e,t)}function c(e,t,i){return a.foldInto360RangeGeodetic(e,t,i)}function d(e,t,i){return a.normalizeGeometry(e,t,i)}function f(){return a.supportsCurves()}function g(e,t,i,r,n){return a.transform(e,t,i,r,n)}},83276(e,t,i){i.r(t),i.d(t,{execute:()=>y,executeMany:()=>x,isLoaded:()=>f,load:()=>m,projectExecute:()=>_,projectExecuteMany:()=>w,projectIsLoaded:()=>d,projectLoad:()=>g,projectSupportsCurves:()=>h,supportsCurves:()=>c});var r=i(4144),n=i(85036),a=i(17499);let o,l,s,u,p,h,c;function d(){return!!o&&(0,r.isLoaded)()}function f(){return(0,n.Q)("projectOperator","isLoaded","projectIsLoaded"),d()}async function g(){if(!d()){let[e,t]=await Promise.all([Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(9567),i.e(9829),i.e(1666)]).then(()=>i(78125)),Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(6129)]).then(()=>i(86129)),(0,r.load)()]);o=e.fromGeometry,l=e.fromSpatialReference,s=e.getSpatialReference,u=e.toGeometry,p=t.createProjectionTransformation,h=(0,r.supportsCurves)(),c=h}}function m(){return(0,n.Q)("projectOperator","load","projectLoad"),g()}function _(e,t,i){let n=s(e),h=p(l(n),l(t),i),c=u((0,r.execute)(o(e),h),t);return!i?.zConversionDisabled&&c?.hasZ&&(0,a.g)([c],n,t),c}function y(e,t,i){return(0,n.Q)("projectOperator","execute","projectExecute"),_(e,t,i)}function w(e,t,i){let n=e.map(o),h=s(e),c=p(l(h),l(t),i),d=(0,r.executeMany)(n,c).map(e=>u(e,t));return!i?.zConversionDisabled&&d&&(0,a.g)(d,h,t),d}function x(e,t,i){return(0,n.Q)("projectOperator","executeMany","projectExecuteMany"),w(e,t,i)}},17499(e,t,i){i.d(t,{g:()=>a});var r=i(60408),n=i(62815);function a(e,t,i){let a;for(let o of e)if(o&&(0,r.Pv)(o)&&!("vertexAttributes"in o)){if(!a){let e="type"in o?o.type:(0,r.$B)(o);if(a=(0,n.N)(e,t,i),!a)return}a(o)}}},62815(e,t,i){i.d(t,{N:()=>l,d:()=>s});var r=i(86211),n=i(73941),a=i(21325),o=i(52006);function l(e,t,i){let r=s(t,i);if(1!==r)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,r);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(let i of e.curvePaths)for(let e of i){let i=(0,o.yP)(e);i.length>2&&(i[2]*=t)}if(e.paths)for(let i of e.paths)for(let e of i)e.length>2&&(e[2]*=t)}}(e,r);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(let i of e.curveRings)for(let e of i){let i=(0,o.yP)(e);i.length>2&&(i[2]*=t)}if(e.rings)for(let i of e.rings)for(let e of i)e.length>2&&(e[2]*=t)}}(e,r);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(let i of e.points)i.length>2&&(i[2]*=t)}(e,r);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,r);default:return}}function s(e,t){return null==e||null==t||(0,a.aI)(e,t)||(0,n.xP)(e)||(0,n.xP)(t)?1:(0,r.G9)(e)/(0,r.G9)(t)}},87063(e,t,i){i.r(t),i.d(t,{default:()=>xe});var r=i(32198),n=i(49186),a=i(25728),o=i(91429),l=i(16930),s=i(21325),u=i(4146),p=i(63074),h=i(72545),c=i(25036),d=i(86738),f=i(92474),g=i(83027),m=i(17676),_=i(48163),y=i(37585),w=i(5443),x=i(39829),P=i(88411),A=i(83276);class v{constructor(e){this.ctm=e.ctm,this.spatialReference=e.toSpatialReference(),this.pairedNeatline=e.pairedNeatline,this.outerExtentMediabox=this._getExtentFromArray(e.outerExtentMediaBox),this.geoControlPoints=e.geoControlPoints,this.outerMediaBox=e.outerExtentMediaBox,this.sourceMediaBoxPolygon=this.createSourceMediaBoxPolygon(),this.sourceNeatlinePolygon=this.createSourceNeatlinePolygon()}createSourceMediaBoxPolygon(){let e=[];for(let[t,i]of this.outerMediaBox){let r=M(this.ctm,t,i);e.push([r[0],r[1]])}return new x.A({rings:[e],spatialReference:this.spatialReference})}createSourceNeatlinePolygon(){let e=[];for(let[t,i]of this.pairedNeatline){let r=M(this.ctm,t,i);e.push([r[0],r[1]])}return new x.A({rings:[e],spatialReference:this.spatialReference})}createProjectedPolygon(e,t,i){(0,m.Te)(i);let r=e;if(r.spatialReference.equals(t))return r;if(!r||!r.extent)throw new n.A("geospatial-pdf-layer:load","Could not project neatline");let a=Math.max(r.extent.width,r.extent.height)/256,o=(0,P.densifyExecute)(r,a);return(0,A.projectExecute)(o,t)}toExtent(){return this._getExtentFromArray(this.pairedNeatline)}_getExtentFromArray(e){let t=1/0,i=1/0,r=-1/0,n=-1/0;for(let a=0;a<e.length;a++){let o=M(this.ctm,e[a][0],e[a][1]);t=Math.min(t,o[0]),i=Math.min(i,o[1]),r=Math.max(r,o[0]),n=Math.max(n,o[1])}return new w.A({xmin:t,ymin:i,xmax:r,ymax:n,spatialReference:this.spatialReference})}}function M(e,t,i){let[r,n,a,o,l,s]=e,u=(0,_.vt)();return(0,y.hZ)(u,r*t+a*i+l,n*t+o*i+s),u}i(44208);var R=i(26887),C=i(48237);function T(e,t,i,r){let n=Math.min(e.length,t.length,3),a=e.slice(0,n).map((e,r)=>({sourcePoint:{x:e[0],y:e[1]},mapPoint:new d.A({x:t[r][0],y:t[r][1],spatialReference:i})}));return new C.A({controlPoints:a,width:r.xmax-r.xmin,height:r.ymax-r.ymin})}function F(e){if(!e?.transform||e.transform.length<6)throw new n.A("geospatial-pdf-layer:georefrencer","created georeferencer does not have valid transform");return e.transform}function E(e){return(0,R.fA)(e[0],-e[1],-e[3],e[4],e[2],e[5])}function S(e){return[[e[0],e[1]],[e[0],e[3]],[e[2],e[3]],[e[2],e[1]]]}class b{constructor(e){let t=this.inputValidation(e);this._registration=t.registration,this._projection=t.projection,this._neatline=t.neatline,this.pairedNeatline=this._pairNeatline(),this.outerExtentMediaBox=S(t.mediaBox),this.geoControlPoints=this._getRegistrationPoints("geo"),this.ctm=t.ctm??this._buildCTMFromRegistration(),this.outputValidation()}inputValidation(e){let{ctm:t,registration:i,projection:r,display:a,neatline:o,mediaBox:l}=e;if(t&&6!==t.length)throw new n.A("geospatial-pdf-layer:invalid-frame","LGIDict has invalid CTM.");if(!t&&(!i||i.length<3))throw new n.A("geospatial-pdf-layer:invalid-frame","LGIDict missing CTM and minimum registration points");if(!l||4!==l.length)throw new n.A("geospatial-pdf-layer:invalid-frame","LGIDict missing or invalid MediaBox.");if(!o||o.length<4||o.length%2!=0)throw new n.A("geospatial-pdf-layer:invalid-frame","LGIDict missing or invalid amount of neatline points");return{ctm:t?(0,R.fA)(t[0],t[1],t[2],t[3],t[4],t[5]):void 0,registration:i??[],projection:r,display:a,neatline:o,mediaBox:l}}outputValidation(){if(6!==this.ctm.length)throw new n.A("geospatial-pdf-layer:invalid-frame","LGIDict missing or invalid CTM");if(this.pairedNeatline.length<4)throw new n.A("geospatial-pdf-layer:invalid-frame","Map Frame should have at least 4 neatline points.");if(4!==this.outerExtentMediaBox.length)throw new n.A("geospatial-pdf-layer:invalid-frame","Failed to generate outerextent from mediaBox.");if(!this.ctm&&this.geoControlPoints.length<2)throw new n.A("geospatial-pdf-layer:invalid-frame","Map Frame should have at least 2 geoControlPoints if defaulting.")}toSpatialReference(){return this._projection}_buildCTMFromRegistration(){let e=[],t=[];for(let i of this._registration)i.length<4||(e.push((0,_.fA)(i[0],i[1])),t.push((0,_.fA)(i[2],i[3])));let i=this._getSourceRect();return E(F(T(e,t,this.toSpatialReference(),i)))}_extentFromArray(e){let t=1/0,i=1/0,r=-1/0,a=-1/0;for(let n=0;n<e.length;n++){let o=e[n];t=Math.min(t,o[0]),i=Math.min(i,o[1]),r=Math.max(r,o[0]),a=Math.max(a,o[1])}if(!(Number.isFinite(t)&&Number.isFinite(i)&&Number.isFinite(r)&&Number.isFinite(a)))throw new n.A("geospatial-pdf-layer: invalid-frame","Failed to compute extent from registration.");return{xmin:t,ymin:i,xmax:r,ymax:a}}_getSourceRect(){if(4===this.outerExtentMediaBox?.length)return this._extentFromArray(this.outerExtentMediaBox);if(this._neatline.length>=6)return this._extentFromArray(this.pairedNeatline);let e=this._getRegistrationPoints("page");if(e.length>=2)return this._extentFromArray(e);throw new n.A("geospatial-pdf-layer: invalid-frame","Cannot build source rectangle from Neatline or Registration points.")}_getRegistrationPoints(e){let[t,i]="page"===e?[0,1]:[2,3];return this._registration.filter(e=>e.length>i).map(e=>[e[t],e[i]])}_pairNeatline(){let e=[];for(let t=0;t<this._neatline.length;t+=2){let i=this._neatline[t],r=this._neatline[t+1];Number.isFinite(i)&&Number.isFinite(r)&&e.push([i,r])}return 2===e.length&&(e.splice(1,0,[e[1][0],e[0][1]]),e.push([e[0][0],e[2][1]])),e}}const j={OriginLatitude:"Origin_Latitude",CentralMeridian:"Central_Meridian",ScaleFactor:"Scale_Factor",FalseEasting:"False_Easting",FalseNorthing:"False_Northing",Zone:"Zone",Hemisphere:"Hemisphere",StandardParallelOne:"Standard_Parallel_One",StandardParallelTwo:"Standard_Parallel_Two"},D=/^(?:NAD83|NORTH AMERICAN 1983|NAR(?:-[A-Z])?)$/i,L=/^(?:NAD27|NORTH AMERICAN 1927|NAS(?:-[A-Z])?)$/i,G=/^(?:WGS84|WGS 84|WGE)$/i;function N(e){let t=function(e){return function(e){let t,i=function(e){switch(e){case"Projection":case"Display":return e;default:return}}(e.Type),r=function(e){switch(e){case"TC":case"PH":case"UT":case"AC":case"LE":case"SPCS":return e;default:return}}(e.Projection_Type);if(r||(t="Projection is missing or has unsupported ProjectionType"),i||(t="Projection dictionary is missing or has invalid Type. Expected Projection or Display."),e.Datum||(t="Projection is missing a Datum"),t)throw new n.A("geospatial-pdf-layer:invalid-projection",t);return I(e,r),{kind:"projected",dictionaryType:i,projectionType:r,datum:e.Datum}}(e)}(e);if("projected"===t.kind){let{projectionType:i,datum:r}=t;return"SPCS"===i?function(e,t){let i=$(t);if(2800===e.Zone&&i&&z(i))return new l.A({wkid:32110});throw new n.A("geospatial-pdf-layer:invalid-projection",`Unsupported State Plane projection: datum ${t.name}, zone ${e.Zone}`)}(e,r):new l.A({wkt:O(e,i,r)})}}function I(e,t){let i=function(e){switch(e){case"TC":return["OriginLatitude","CentralMeridian","ScaleFactor","FalseEasting","FalseNorthing"];case"PH":return["OriginLatitude","CentralMeridian","FalseEasting","FalseNorthing"];case"UT":return["Zone","Hemisphere"];case"AC":case"LE":return["OriginLatitude","CentralMeridian","StandardParallelOne","StandardParallelTwo","FalseEasting","FalseNorthing"];case"SPCS":return["Zone"]}}(t);for(let r of i){let i=e[j[r]];if(void 0===i||""===i)throw new n.A("geospatial-pdf-layer:invalid-projection",`Projection ${t} missing required parameter ${r}.`)}}function O(e,t,i){let r=function(e,t,i){let r=function(e){let t=$(e);return t?z(t)?"NAD_1983":B(t)?"NAD_1927":Z(t)?"WGS_1984":"geospatialPDF":"geospatialPDF"}(i);switch(t){case"TC":return`${r}_GeospatialPDF_Transverse_Mercator`;case"PH":return`${r}_GeospatialPDF_Polyconic`;case"UT":return`${r}_GeospatialPDF_UTM_Zone_${e.Zone}_${e.Hemisphere}`;case"AC":return`${r}_GeospatialPDF_Albers_Equal_Area`;case"LE":return`${r}_GeospatialPDF_Lambert_Conformal_Conic`}}(e,t,i),a=function(e){switch(e){case"TC":case"UT":return"Transverse_Mercator";case"PH":return"Polyconic";case"AC":return"Albers";case"LE":return"Lambert_Conformal_Conic"}}(t),o=function(e){if("definition"===e.kind){let t=e.ellipsoid;if(!t?.semi_Major_Axis)throw new n.A("geospatial-pdf-layer:invalid-Datum","Datum definition requires semi-major axis");let i=function(e){if(null!=e.inverse_Flattening)return e.inverse_Flattening;let t=e.semi_Major_Axis,i=e.semi_Minor_Axis;if(null==t||null==i)throw new n.A("geospatial-pdf-layer:invalid-Datum","Ellipsoid definition missing InvFlattening or SemiMinorAxis.");return t===i?0:t/(t-i)}(t),r=e.name??"GeospatialPDF_Datum",a=`SPHEROID["${t.description??"GeospatialPDF_Spheroid"}",${t.semi_Major_Axis},${i}]`,o=e.to_WGS84;return`DATUM["${r}",${a}${o?`,TOWGS84[${o.dx??0},${o.dy??0},${o.dz??0},${o.rx??0},${o.ry??0},${o.rz??0},${o.sf??0}]`:""}]`}if(e.name){let t=e.name.toUpperCase();if(z(t))return'DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137,298.257222101]]';if(B(t))return'DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]]';if(Z(t))return'DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]]'}throw new n.A("geospatial-pdf-layer:invalid-Datum","Unsupported datum "+e.name)}(i),l=function(e){let t=e.toLowerCase();return["m","meter","meters","metre","metres"].includes(t)?'UNIT["Meter",1.0]':["ft","foot","feet"].includes(t)?'UNIT["Foot",0.3048]':`UNIT["${e}",1.0]`}(e.Units??"M"),s=function(e,t){switch(t){case"TC":return[`PARAMETER["False_Easting",${e.False_Easting}]`,`PARAMETER["False_Northing",${e.False_Northing}]`,`PARAMETER["Central_Meridian",${e.Central_Meridian}]`,`PARAMETER["Latitude_Of_Origin",${e.Origin_Latitude}]`,`PARAMETER["Scale_Factor",${e.Scale_Factor}]`];case"PH":return[`PARAMETER["False_Easting",${e.False_Easting}]`,`PARAMETER["False_Northing",${e.False_Northing}]`,`PARAMETER["Central_Meridian",${e.Central_Meridian}]`,`PARAMETER["Latitude_Of_Origin",${e.Origin_Latitude}]`];case"AC":case"LE":return[`PARAMETER["False_Easting",${e.False_Easting}]`,`PARAMETER["False_Northing",${e.False_Northing}]`,`PARAMETER["Central_Meridian",${e.Central_Meridian}]`,`PARAMETER["Latitude_Of_Origin",${e.Origin_Latitude}]`,`PARAMETER["Standard_Parallel_1",${e.Standard_Parallel_One}]`,`PARAMETER["Standard_Parallel_2",${e.Standard_Parallel_Two}]`];case"UT":return function(e){if(!e.Zone)throw new n.A("geospatial-pdf-layer:invalid-projection","No zone found for projection code UT");let t=6*e.Zone-183;return['PARAMETER["False_Easting",500000]',`PARAMETER["False_Northing",${/^s/i.test(e.Hemisphere??"")?1e7:0}]`,`PARAMETER["Central_Meridian",${t}]`,'PARAMETER["Latitude_Of_Origin",0]','PARAMETER["Scale_Factor",0.9996]']}(e)}}(e,t);return`PROJCS["${r}",GEOGCS["${function(e){let t=$(e);return t?z(t)?"GCS_North_American_1983":B(t)?"GCS_North_American_1927":Z(t)?"GCS_WGS_1984":"GCS_GeospatialPDF":"GCS_GeospatialPDF"}(i)}",${o},PRIMEM["Greenwich",0],UNIT["Degree",0.0174532925199433]],PROJECTION["${a}"],${s.join(",\n ")},${l}]`}function $(e){return e.name?function(e){return e.trim().toUpperCase().replace(/_/g," ").replace(/\s+/g," ")}(e.name):null}function z(e){return D.test(e)}function B(e){return L.test(e)}function Z(e){return G.test(e)}class H{constructor(e){let{bbox:t,bounds:i,gpts:r,lpts:n,gcs:a,mediaBox:o}=this.inputValidation(e);this._bbox=t,this._bounds=i,this._gpts=r,this._lpts=n,this._gcs=a,this.outerExtentMediaBox=S(o),this.geoControlPoints=this._getProjectedGeoControlPoints().map(e=>[e[0],e[1]]);let l=this._getBoundsPolygonPage()??this._getPageControlPoints();this.pairedNeatline=l.map(e=>[e[0],e[1]]),this.neatLine=this.pairedNeatline.flat(),this._georeference=this._createControlPointsGeoreference();let s=F(this._georeference);this.ctm=E(s),this.outputValidation()}toSpatialReference(){return new l.A({wkt:this._gcs.WKT})}inputValidation(e){let{bbox:t,bounds:i,gpts:r,lpts:a,gcs:o,mediaBox:l}=e;if(!t||4!==t.length)throw new n.A("geospatial-pdf-layer:invalid-frame","Viewport missing or invalid BBox.");if(!l||4!==l.length)throw new n.A("geospatial-pdf-layer:invalid-frame","Viewport missing or invalid MediaBox.");if(!r||r.length<6||r.length%2!=0)throw new n.A("geospatial-pdf-layer:invalid-frame","MeasureFrame missing or invalid GPTS.");if(!a||a.length<6||a.length%2!=0)throw new n.A("geospatial-pdf-layer:invalid-frame","MeasureFrame missing or invalid LPTS.");if(a.length!==r.length)throw new n.A("geospatial-pdf-layer: invalid-frame","MeasureFrame LPTS and GPTS must be same length");if(!o?.WKT)throw new n.A("geospatial-pdf-layer:invalid-frame","MeasureFrame missing or invalid WKT.");return{bbox:t,bounds:i,gpts:r,lpts:a,gcs:{WKT:o.WKT},mediaBox:l}}outputValidation(){if(4!==this.outerExtentMediaBox.length)throw new n.A("geospatial-pdf-layer:invalid-frame","Failed to generate outer extent from mediaBox.");if(this.geoControlPoints.length<2)throw new n.A("geospatial-pdf-layer:invalid-frame","Map Frame should have at least 2 geoControlPoints.");if(this.pairedNeatline.length<4)throw new n.A("geospatial-pdf-layer:invalid-frame","Map Frame should have at least 4 neatline points.");if(!this.ctm||6!==this.ctm.length)throw new n.A("geospatial-pdf-layer:invalid-frame","Missing or invalid Map Frame CTM")}_createControlPointsGeoreference(){let e=this._getPageControlPoints(),t=this._getProjectedGeoControlPoints(),i=this._getViewportRect();return T(e,t,this.toSpatialReference(),i)}_getBoundsPolygonLocal(){if(!this._bounds||this._bounds.length<8||this._bounds.length%2!=0)return null;let e=[];for(let t=0;t<this._bounds.length;t+=2)e.push({u:this._bounds[t],v:this._bounds[t+1]});return e}_getBoundsPolygonPage(){return this._getBoundsPolygonLocal()?.map(e=>this._localToPage(e.u,e.v))??null}_getPageControlPoints(){let e=[];for(let t=0;t<this._lpts.length;t+=2){let i=this._lpts[t],r=this._lpts[t+1];e.push(this._localToPage(i,r))}return e}_getProjectedGeoControlPoints(){let e=this.toSpatialReference(),t=[];for(let i=0;i<this._gpts.length;i+=2){let r=this._gpts[i],n=this._gpts[i+1],a=new d.A({x:n,y:r}),o=(0,A.projectExecute)(a,e);t.push((0,_.fA)(o.x,o.y))}return t}_getViewportRect(){let[e,t,i,r]=this._bbox;return{xmin:Math.min(e,i),ymin:Math.min(t,r),xmax:Math.max(e,i),ymax:Math.max(t,r)}}_localToPage(e,t){let[i,r,n,a]=this._bbox;return(0,_.fA)(i+e*(n-i),r+t*(a-r))}}function U(e){let t=re(e,"LGIDict map frame must be an object.");return{CTM:Q(t.CTM),Registration:X(t.Registration),Neatline:Q(t.Neatline),Projection:W(t.Projection),Display:W(t.Display)}}function k(e){let t=re(e,"Viewport frame must be an object."),i=function(e){if(ie(e))return{Bounds:Q(e.Bounds),GPTS:Q(e.GPTS),LPTS:Q(e.LPTS),GCS:V(e.GCS)}}(t.Measure);return{BBox:Q(t.BBox),Measure_Raw:t.Measure,Measure:i,Raw:t}}function V(e){if(ie(e))return{WKT:Y(e.WKT)}}function W(e){if(ie(e))return{Type:ee(e.Type),Units:ee(e.Units),Datum:J(e.Datum),Projection_Type:ee(e.ProjectionType),Central_Meridian:te(e.CentralMeridian),False_Easting:te(e.FalseEasting),False_Northing:te(e.FalseNorthing),Height:te(e.Height),Hemisphere:ee(e.Hemisphere),Latitude_One:te(e.LatitudeOne),Latitude_Two:te(e.LatitudeTwo),Latitude_Of_True_Scale:te(e.LatitudeOfTrueScale),Longitude_One:te(e.LongitudeOne),Longitude_Two:te(e.LongitudeTwo),Longitude_Down_From_Pole:te(e.LongitudeDownFromPole),Orientation:ee(e.Orientation),Origin_Height:te(e.OriginHeight),Origin_Latitude:te(e.OriginLatitude),Origin_Longitude:te(e.OriginLongitude),Scale_Factor:te(e.ScaleFactor),Standard_Parallel:te(e.StandardParallel),Standard_Parallel_One:te(e.StandardParallelOne),Standard_Parallel_Two:te(e.StandardParallelTwo),Zone:te(e.Zone),Description:ee(e.Description),raw:e}}function J(e){return null==e?null:"string"==typeof e?{kind:"name",name:ee(e),ellipsoid:null,to_WGS84:null,raw:e}:ie(e)?{kind:"definition",name:ee(e.Description),ellipsoid:K(e.Ellipsoid),to_WGS84:q(e.ToWGS84),raw:e}:{kind:"unknown",name:ee(e),ellipsoid:null,to_WGS84:null,raw:e}}function K(e){if(ie(e))return{semi_Major_Axis:te(e.SemiMajorAxis),inverse_Flattening:te(e.InvFlattening),semi_Minor_Axis:te(e.SemiMinorAxis),description:ee(e.Description)}}function q(e){if(ie(e))return{dx:te(e.dx)??0,dy:te(e.dy)??0,dz:te(e.dz)??0,rx:te(e.rx)??0,ry:te(e.ry)??0,rz:te(e.rz)??0,sf:te(e.sf)??0}}function Q(e){if(!Array.isArray(e))return;let t=[];for(let i of e){let e=te(i);if(void 0===e)return;t.push(e)}return t}function X(e){if(Array.isArray(e))return e.filter(e=>Array.isArray(e)).map(e=>e.map(e=>te(e)).filter(e=>void 0!==e))}function Y(e){if(null!=e)return"string"==typeof e?e:String(e)}function ee(e){let t=Y(e);if(void 0!==t)return t.trim()}function te(e){if(null==e)return;if("number"==typeof e)return Number.isFinite(e)?e:void 0;if("string"!=typeof e)return;let t=e.trim();if(""===t)return;let i=Number(t);return Number.isFinite(i)?i:void 0}function ie(e){return"object"==typeof e&&!!e&&!Array.isArray(e)}function re(e,t){if(!ie(e))throw new n.A("geospatial-pdf-layer:parse",t);return e}let ne=class extends f.x_{constructor(){super(...arguments),this._connection=null,this._workerHandler=null}load(e){let t=(0,g.h)("GeospatialPDFLayerWorker",{...e,strategy:"dedicated",registryTarget:this}).then(e=>{this._connection=e,this._workerHandler=this._connection.createInvokeProxy()});return this.addResolvingPromise(t),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null,this._workerHandler=null,super.destroy()}async loadPDF(e,t={}){await this.load(t);let{geospatialMetadata:i}=await this._workerHandler.loadPDF(e,t),r=function(e,t=0){let i={mediaBox:Q(e.MediaBox),rotate:te(e.Rotate),hasLGIDict:null!=e.LGIDict,hasVP:null!=e.VP},r=(a=t,function(e){return null==e?[]:Array.isArray(e)?e.map(e=>U(e)):[U(e)]}(e.LGIDict)[a]);var a;if(r){if(!r.Projection)throw new n.A("geospatial-pdf-layer:parse","LGIDict map frame missing Projection.");let t,a=N(r.Projection);try{t=r.Display?N(r.Display):void 0}catch{t=a}return{result:i,lgiDictFrame:new b({ctm:r.CTM,registration:r.Registration,projection:a,display:t,neatline:r.Neatline,mediaBox:Q(e.MediaBox)})}}let o=function(e,t){return function(e){return null==e?[]:Array.isArray(e)?e.map(e=>k(e)):[k(e)]}(e)[t]}(e.VP,t);return o?{result:i,vpFrame:new H({bbox:o.BBox,bounds:o.Measure?.Bounds,gpts:o.Measure?.GPTS,lpts:o.Measure?.LPTS,gcs:o.Measure?.GCS,mediaBox:Q(e.MediaBox)})}:{result:i}}(i,0),a=r.lgiDictFrame??r.vpFrame;if(!a)throw new n.A("geospatial-pdf-layer:load","pdf does not contain supported LGIDict or VP/Measure.");let o=new v(a);return{frame:o,sourceSpatialReference:o.spatialReference.toJSON(),fullExtent:o.toExtent()}}async render(e,t,i,r,n,a){let o={sourceExtentAsJSON:e.toJSON(),width:t,height:i,ctm:r,currentRing:n};return this._workerHandler.renderPDF(o,a)}};ne=(0,r.Cg)([(0,o.$K)("esri.layers.geospatialPDF.GeospatialPDFWorkerClient")],ne);var ae=i(49859),oe=i(14140),le=i(87186);let se=class extends ae.A{constructor(){super(...arguments),this._workerClient=new ne,this._extent=null,this._ctm=null,this._neatlineRing=[],this._width=0,this._height=0,this._tileSize=512,this.datasetFormat="PDF",this.frame=null,this.neatlineExtent=null,this.page=1,this.tileType="Raster"}destroy(){this._workerClient.destroy(),this.neatlineExtent=null,this._extent=null,this._ctm=null,this._neatlineRing=[]}async fetchRawTile(e,t,i,r={}){let n=this._extent,a=this._ctm,o=this.getTileExtentPDF(e,t,i);return o.intersects(n)?function(e){return new oe.A({width:e.width,height:e.height,pixelType:"u8",pixels:[e.red,e.green,e.blue],mask:e.mask})}(await this._workerClient.render(o,this._tileSize,this._tileSize,a,this._neatlineRing,r)):null}async _open(e){if(!this.url)throw new n.A("geospatial-pdf-raster:open","GeospatialPDFRaster requires a url.");let t=await this._workerClient.loadPDF({url:this.url,page:this.page},e);this.frame=t.frame;let i=this.frame.outerExtentMediabox;if(!i)throw new n.A("geospatial-pdf-raster:open","Failed to compute Geospatial PDF extent.");this.neatlineExtent=t.fullExtent,this._extent=i,this._ctm=this.frame.ctm,this._neatlineRing=this.frame.sourceMediaBoxPolygon.rings[0];let r=function(e,t){let[i,r,a,o]=e,l=i*o-r*a;if(!Number.isFinite(l)||0===l)throw new n.A("geospatial-pdf-raster:open","Failed to derive raster dimensions from an invalid PDF CTM.");let s=10*Math.hypot(o,r)/Math.abs(l),u=10*Math.hypot(a,i)/Math.abs(l),p=Math.max(1,Math.ceil(t.width*s)),h=Math.max(1,Math.ceil(t.height*u));if(!Number.isFinite(p)||!Number.isFinite(h))throw new n.A("geospatial-pdf-raster:open","PDF CTM produced invalid raster dimensions.");return[p,h]}(this.frame.ctm,this._extent);this._width=r[0],this._height=r[1];let a={x:i.width/this._width,y:i.height/this._height},o=new le.A({width:this._width,height:this._height,pixelType:"u8",extent:i,pixelSize:a,spatialReference:i.spatialReference,bandCount:3,keyProperties:{DataType:"Processed"}});this.createRemoteDatasetStorageInfo(o,this._tileSize,this._tileSize),this._set("rasterInfo",o),this.updateTileInfo()}getTileExtentPDF(e,t,i){let r=this._extent,n=2**e,a=r.width/this._width*n,o=r.height/this._height*n,l=new d.A({x:r.xmin,y:r.ymax});return this.getTileExtent({x:a,y:o},t,i,l,r.spatialReference,[512,512])}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],se.prototype,"datasetFormat",void 0),(0,r.Cg)([(0,o.MZ)({constructOnly:!0})],se.prototype,"page",void 0),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],se.prototype,"tileType",void 0),se=(0,r.Cg)([(0,o.$K)("esri.layers.raster.datasets.GeospatialPDFRaster")],se);var ue=i(34930),pe=i(69540),he=i(25482),ce=i(64108),de=i(80812),fe=i(36005),ge=i(43937);let me=class extends((0,he.T)(pe.Pw)){constructor(e){super(e),this.type="portal-item"}readPortalItem(e,t,i){if(t.itemId)return new de.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}};(0,r.Cg)([(0,o.MZ)({type:["portal-item"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],me.prototype,"type",void 0),(0,r.Cg)([(0,o.MZ)({type:de.default,json:{write:{isRequired:!0}}})],me.prototype,"portalItem",void 0),(0,r.Cg)([(0,fe.w)("portalItem",["itemId"])],me.prototype,"readPortalItem",null),(0,r.Cg)([(0,ge.K)("portalItem",{itemId:{type:String}})],me.prototype,"writePortalItem",null),me=(0,r.Cg)([(0,ce.$)("esri.layers.support.PortalItemData")],me);var _e=i(87045);let ye=class extends((0,p.dM)((0,c.j)((0,h.G)((0,a.M)(u.A))))){constructor(e){super(e),this.serviceRasterInfo=null,this._frame=null,this._objectURL=null,this.clippedToNeatline=!1,this.data=null,this.raster=null,this.spatialReference=null,this.type="geospatial-pdf"}load(e){return this.addResolvingPromise(this._load(e)),Promise.resolve(this)}destroy(){this._shutdownJobHandler(),this.raster?.destroy(),this._objectURL&&=(URL.revokeObjectURL(this._objectURL),null)}get fullExtent(){return this.serviceRasterInfo?.extent}async fetchImageBitmapTile(){throw new n.A("geospatial-pdf-layer:fetch-image-bitmap-tile","GeospatialPDFLayer does not expose pre-rendered image tile URLs.")}async fetchPixels(e,t,i,r={}){return we(this),await this._initJobHandler(),this.raster.fetchPixels(e,Math.round(t),Math.round(i),r)}async fetchTile(e,t,i,r={}){if(we(this),r.requestAsImageElement)throw new n.A("geospatial-pdf-layer:fetch-tile","GeospatialPDFLayer does not support requestAsImageElement.");await this._initJobHandler();let a=await this.raster.fetchTile(e,t,i,r);return this.clippedToNeatline&&a.pixelBlock&&this._frame&&a.srcExtent&&(a.pixelBlock=await(0,ue.$Q)(a.pixelBlock,a.srcExtent,this._frame.sourceNeatlinePolygon)),a}getCompatibleFullExtent(e){return this.loaded?(this._compatibleFullExtent?.spatialReference.equals(e)||(this._compatibleFullExtent=this.raster.computeExtent(e)),this._compatibleFullExtent):null}getCompatibleTileInfo(e,t,i=!1){if(!this.loaded||null==t)return null;if(i&&e.equals(this.spatialReference))return this.tileInfo;let r=(0,s.Vp)(e);return _e.A.create({size:256,spatialReference:e,origin:r?{x:r.origin[0],y:r.origin[1]}:{x:t.xmin,y:t.ymax}})}getRawDisplayBandIds(){return we(this),[0,1,2]}async _initJobHandler(){if(!this._rasterJobHandler)return super._initJobHandler().then(()=>{this._rasterJobHandler&&(we(this),this.raster.rasterJobHandler=this._rasterJobHandler)}).catch(()=>{})}_shutdownJobHandler(){super._shutdownJobHandler(),this.raster&&(this.raster.rasterJobHandler=null)}async _getDataUrl(e){let{data:t}=this;if("string"==typeof t)return t;if(t instanceof File)return this._objectURL=URL.createObjectURL(t),this._objectURL;if(t instanceof me){await t.portalItem.load({signal:e?.signal});let i=t.portalItem.url;if(!i)throw new n.A("geospatial-pdf-layer:load","Portal item does not have a valid data URL.");return i}throw new n.A("geospatialpdf-layer:missing-data","A data source must be specified.")}async _load(e){let t=await this._getDataUrl(e);await this._openRaster(t,e?.signal)}async _openRaster(e,t){let i=new se({url:e});if(await i.open({signal:t}),!i.rasterInfo)throw i.destroy(),new n.A("geospatialpdf-layer:load","cannot load resources on "+e);let{rasterInfo:r}=i;this._set("serviceRasterInfo",r),this.setAtOrigin("spatialReference",r.spatialReference,"service"),this.setAtOrigin("tileInfo",r.storageInfo.tileInfo,"service"),this._frame=i.frame,this.raster=i}};function we(e){if(!e.raster||!e.serviceRasterInfo)throw new n.A("imagery-tile","no raster")}(0,r.Cg)([(0,o.MZ)()],ye.prototype,"serviceRasterInfo",void 0),(0,r.Cg)([(0,o.MZ)({clonable:!1})],ye.prototype,"_compatibleFullExtent",void 0),(0,r.Cg)([(0,o.MZ)({type:Boolean})],ye.prototype,"clippedToNeatline",void 0),(0,r.Cg)([(0,o.MZ)()],ye.prototype,"data",void 0),(0,r.Cg)([(0,o.MZ)({json:{read:!1}})],ye.prototype,"fullExtent",null),(0,r.Cg)([(0,o.MZ)()],ye.prototype,"raster",void 0),(0,r.Cg)([(0,o.MZ)({readOnly:!0,type:l.A,json:{read:!1}})],ye.prototype,"spatialReference",void 0),(0,r.Cg)([(0,o.MZ)({type:_e.A,readOnly:!0})],ye.prototype,"tileInfo",void 0),(0,r.Cg)([(0,o.MZ)({readOnly:!0,value:"geospatial-pdf"})],ye.prototype,"type",void 0),ye=(0,r.Cg)([(0,o.$K)("esri.layers.GeospatialPDFLayer")],ye);const xe=ye},91806(e,t,i){i.d(t,{A:()=>s});var r,n=i(32198),a=i(25482),o=i(91429),l=i(78888);let s=class extends a.o{static{r=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new r({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],s.prototype,"cols",void 0),(0,n.Cg)([(0,o.MZ)({type:l.jz,json:{write:!0}})],s.prototype,"level",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],s.prototype,"levelValue",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],s.prototype,"origin",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],s.prototype,"resolution",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],s.prototype,"rows",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],s.prototype,"scale",void 0),s=r=(0,n.Cg)([(0,o.$K)("esri.layers.support.LOD")],s)},87045(e,t,i){i.d(t,{A:()=>w});var r,n=i(32198),a=i(66552),o=i(25482),l=i(86211),s=i(91429),u=i(78888),p=i(86738),h=i(16930),c=i(21325),d=i(28735),f=i(91806),g=i(72802),m=i(36005),_=i(43937);const y=new a.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let w=class extends o.o{static{r=this}static create(e={}){let{resolutionFactor:t=1,scales:i,size:n=256,spatialReference:a=h.A.WebMercator,numLODs:o=24}=e;if(!(0,c.fn)(a)){let e=[];if(i)for(let t=0;t<i.length;t++){let r=i[t];e.push(new f.A({level:t,scale:r,resolution:r}))}else{let t=5e-4;for(let i=o-1;i>=0;i--)e.unshift(new f.A({level:i,scale:t,resolution:t})),t*=2}return new r({dpi:96,lods:e,origin:new p.A(0,0,a),size:[n,n],spatialReference:a})}let s=(0,c.Vp)(a),u=e.origin?new p.A({x:e.origin.x,y:e.origin.y,spatialReference:a}):s?new p.A({x:s.origin[0],y:s.origin[1],spatialReference:a}):new p.A({x:0,y:0,spatialReference:a}),d=1/(39.37*(0,l.GA)(a)*96),g=[];if(i)for(let e=0;e<i.length;e++){let t=i[e],r=t*d;g.push(new f.A({level:e,scale:t,resolution:r}))}else{let e=(0,c.EA)(a)?512/n*591657527.5917094:256/n*591657527.591555,i=Math.ceil(o/t);g.push(new f.A({level:0,scale:e,resolution:e*d}));for(let r=1;r<i;r++){let i=e/2**t,n=i*d;g.push(new f.A({level:r,scale:i,resolution:n})),e=i}}return new r({dpi:96,lods:g,origin:u,size:[n,n],spatialReference:a})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){let{spatialReference:e,origin:t}=this;if(e&&t){let i=(0,c.Vp)(e);return e.isWrappable&&!!i&&Math.abs(i.origin[0]-t.x)<=i.dx}return!1}readOrigin(e,t){return p.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,i=0,r=[],n=this._levelToLOD={};e&&(t=-1/0,i=1/0,e.forEach(e=>{r.push(e.scale),t=e.scale>t?e.scale:t,i=e.scale<i?e.scale:i,n[e.level]=e})),this._set("scales",r),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){let t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];let i=Math.floor(e),r=i+1;return t[i]/(t[i]/t[r])**(e-i)}scaleToZoom(e){let t=this.scales,i=t.length-1,r=0;for(;r<i;r++){let i=t[r],n=t[r+1];if(i<=e)return r;if(n===e)return r+1;if(i>e&&n<e)return r+Math.log(i/e)/Math.log(i/n)}return r}tileAt(e,t,i,r){let n,a,o=this.lodAt(e);if(!o)return null;if("number"==typeof t)n=t,a=i;else if((0,c.aI)(t.spatialReference,this.spatialReference))n=t.x,a=t.y,r=i;else{let e=(0,d.Cv)(t,this.spatialReference);if(null==e)return null;n=e.x,a=e.y,r=i}let l=o.resolution*this.size[0],s=o.resolution*this.size[1];return r??=new g.U(0,0,0),r.level=e,r.row=Math.floor((this.origin.y-a)/s+.001),r.col=Math.floor((n-this.origin.x)/l+.001),this.updateTileInfo(r),r}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let i=this.lodAt(e.level);if(!i&&1===t){let t=this.lods[this.lods.length-1];t.level<e.level&&(i=t)}if(!i)return!1;let r=e.level-i.level,n=i.resolution*this.size[0]/2**r,a=i.resolution*this.size[1]/2**r;return e.extent[0]=this.origin.x+e.col*n,e.extent[1]=this.origin.y-(e.row+1)*a,e.extent[2]=e.extent[0]+n,e.extent[3]=e.extent[1]+a,!0}upsampleTile(e){let t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){let i=this.lodAt(t.level);if(null==i)return null;let{resolution:r}=i,n=r*this.size[0],a=r*this.size[1];return e[0]=this.origin.x+t.col*n,e[1]=this.origin.y-(t.row+1)*a,e[2]=e[0]+n,e[3]=e[1]+a,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return r.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;let t=(512===this.size[0]&&256===e?-1:0)+ +!!this.spatialReference.isGeographic;if(this.size[0]===e&&0===t)return this;let i=[],n=this.lods.length-t;for(let e=0;e<n;e++){let r=e+t,{scale:n,resolution:a}=r>=0?this.lods[r]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};i.push(new f.A({level:e,scale:n,resolution:a}))}return new r({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:i})}_initializeUpsampleLevels(){let e=this.lods;this._upsampleLevels=[];let t=null;for(let i=0;i<e.length;i++){let r=e[i];this._upsampleLevels[r.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/r.resolution:0},t=r}}};(0,n.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],w.prototype,"compressionQuality",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],w.prototype,"dpi",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{read:y.read,write:y.write,origins:{"web-scene":{read:!1,write:!1}}}})],w.prototype,"format",void 0),(0,n.Cg)([(0,s.MZ)({readOnly:!0})],w.prototype,"isWrappable",null),(0,n.Cg)([(0,s.MZ)({type:p.A,json:{write:!0}})],w.prototype,"origin",void 0),(0,n.Cg)([(0,m.w)("origin")],w.prototype,"readOrigin",null),(0,n.Cg)([(0,s.MZ)({type:[f.A],value:null,json:{write:!0}})],w.prototype,"lods",null),(0,n.Cg)([(0,s.MZ)({readOnly:!0})],w.prototype,"scales",void 0),(0,n.Cg)([(0,s.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],w.prototype,"size",void 0),(0,n.Cg)([(0,m.w)("size",["rows","cols"])],w.prototype,"readSize",null),(0,n.Cg)([(0,_.K)("size",{cols:{type:u.jz},rows:{type:u.jz}})],w.prototype,"writeSize",null),(0,n.Cg)([(0,s.MZ)({type:h.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),w=r=(0,n.Cg)([(0,s.$K)("esri.layers.support.TileInfo")],w)},72802(e,t,i){i.d(t,{U:()=>n});var r=i(19419);class n{constructor(e,t,i,n=(0,r.vt)()){this._level=e,this._row=t,this._col=i,this.extent=n}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new n(e.level,e.row,e.col,e.extent)}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4907],{26887(e,t,i){function r(){return[1,0,0,1,0,0]}function n(e,t,i,r,n,a){return[e,t,i,r,n,a]}i.d(t,{fA:()=>n,vt:()=>r});Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:[1,0,0,1,0,0],clone:function(e){return[e[0],e[1],e[2],e[3],e[4],e[5]]},create:r,fromValues:n},Symbol.toStringTag,{value:"Module"}))},4144(e,t,i){i.r(t),i.d(t,{clipToSpatialReference:()=>s,execute:()=>u,executeMany:()=>p,foldInto360Range:()=>h,foldInto360RangeGeodetic:()=>c,isLoaded:()=>o,load:()=>l,normalizeGeometry:()=>d,supportsCurves:()=>f,transform:()=>g});var r=i(76061),n=i(83290);let a;function o(){return!!a&&(0,n.i)()}async function l(){if(!o()){let[e,t]=await Promise.all([Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(9192)]).then(()=>i(9192)),Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(5756)]).then(()=>i(15756)).then(({injectPe:e})=>e),(0,n.l)()]);a=new e.OperatorProject,t(n.p)}}function s(e,t,i){return a.clipToSpatialReference(e,t,null,i)}function u(e,t){return a.execute(e,t,null)}function p(e,t){let i=a.executeMany(new r.S(e),t,null);return Array.from(i)}function h(e,t){return a.foldInto360Range(e,t)}function c(e,t,i){return a.foldInto360RangeGeodetic(e,t,i)}function d(e,t,i){return a.normalizeGeometry(e,t,i)}function f(){return a.supportsCurves()}function g(e,t,i,r,n){return a.transform(e,t,i,r,n)}},83276(e,t,i){i.r(t),i.d(t,{execute:()=>y,executeMany:()=>x,isLoaded:()=>f,load:()=>m,projectExecute:()=>_,projectExecuteMany:()=>w,projectIsLoaded:()=>d,projectLoad:()=>g,projectSupportsCurves:()=>h,supportsCurves:()=>c});var r=i(4144),n=i(85036),a=i(17499);let o,l,s,u,p,h,c;function d(){return!!o&&(0,r.isLoaded)()}function f(){return(0,n.Q)("projectOperator","isLoaded","projectIsLoaded"),d()}async function g(){if(!d()){let[e,t]=await Promise.all([Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(9567),i.e(9829),i.e(1666)]).then(()=>i(78125)),Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(6129)]).then(()=>i(86129)),(0,r.load)()]);o=e.fromGeometry,l=e.fromSpatialReference,s=e.getSpatialReference,u=e.toGeometry,p=t.createProjectionTransformation,h=(0,r.supportsCurves)(),c=h}}function m(){return(0,n.Q)("projectOperator","load","projectLoad"),g()}function _(e,t,i){let n=s(e),h=p(l(n),l(t),i),c=u((0,r.execute)(o(e),h),t);return!i?.zConversionDisabled&&c?.hasZ&&(0,a.g)([c],n,t),c}function y(e,t,i){return(0,n.Q)("projectOperator","execute","projectExecute"),_(e,t,i)}function w(e,t,i){let n=e.map(o),h=s(e),c=p(l(h),l(t),i),d=(0,r.executeMany)(n,c).map(e=>u(e,t));return!i?.zConversionDisabled&&d&&(0,a.g)(d,h,t),d}function x(e,t,i){return(0,n.Q)("projectOperator","executeMany","projectExecuteMany"),w(e,t,i)}},17499(e,t,i){i.d(t,{g:()=>a});var r=i(60408),n=i(62815);function a(e,t,i){let a;for(let o of e)if(o&&(0,r.Pv)(o)&&!("vertexAttributes"in o)){if(!a){let e="type"in o?o.type:(0,r.$B)(o);if(a=(0,n.N)(e,t,i),!a)return}a(o)}}},62815(e,t,i){i.d(t,{N:()=>l,d:()=>s});var r=i(86211),n=i(73941),a=i(21325),o=i(52006);function l(e,t,i){let r=s(t,i);if(1!==r)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,r);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(let i of e.curvePaths)for(let e of i){let i=(0,o.yP)(e);i.length>2&&(i[2]*=t)}if(e.paths)for(let i of e.paths)for(let e of i)e.length>2&&(e[2]*=t)}}(e,r);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(let i of e.curveRings)for(let e of i){let i=(0,o.yP)(e);i.length>2&&(i[2]*=t)}if(e.rings)for(let i of e.rings)for(let e of i)e.length>2&&(e[2]*=t)}}(e,r);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(let i of e.points)i.length>2&&(i[2]*=t)}(e,r);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,r);default:return}}function s(e,t){return null==e||null==t||(0,a.aI)(e,t)||(0,n.xP)(e)||(0,n.xP)(t)?1:(0,r.G9)(e)/(0,r.G9)(t)}},44907(e,t,i){i.r(t),i.d(t,{default:()=>fe});var r=i(32198),n=i(49186),a=i(25728),o=i(91429),l=i(16930),s=i(21325),u=i(4146),p=i(63074),h=i(72545),c=i(25036),d=i(86738),f=i(92474),g=i(83027),m=i(17676),_=i(48163),y=i(37585),w=i(5443),x=i(39829),P=i(88411),A=i(83276);class v{constructor(e){this.ctm=e.ctm,this.spatialReference=e.toSpatialReference(),this.pairedNeatline=e.pairedNeatline,this.outerExtentMediabox=this._getExtentFromArray(e.outerExtentMediaBox),this.geoControlPoints=e.geoControlPoints,this.outerMediaBox=e.outerExtentMediaBox,this.sourceMediaBoxPolygon=this.createSourceMediaBoxPolygon(),this.sourceNeatlinePolygon=this.createSourceNeatlinePolygon()}createSourceMediaBoxPolygon(){let e=[];for(let[t,i]of this.outerMediaBox){let r=M(this.ctm,t,i);e.push([r[0],r[1]])}return new x.A({rings:[e],spatialReference:this.spatialReference})}createSourceNeatlinePolygon(){let e=[];for(let[t,i]of this.pairedNeatline){let r=M(this.ctm,t,i);e.push([r[0],r[1]])}return new x.A({rings:[e],spatialReference:this.spatialReference})}createProjectedPolygon(e,t,i){(0,m.Te)(i);let r=e;if(r.spatialReference.equals(t))return r;if(!r||!r.extent)throw new n.A("geospatial-pdf-layer:load","Could not project neatline");let a=Math.max(r.extent.width,r.extent.height)/256,o=(0,P.densifyExecute)(r,a);return(0,A.projectExecute)(o,t)}toExtent(){return this._getExtentFromArray(this.pairedNeatline)}_getExtentFromArray(e){let t=1/0,i=1/0,r=-1/0,n=-1/0;for(let a=0;a<e.length;a++){let o=M(this.ctm,e[a][0],e[a][1]);t=Math.min(t,o[0]),i=Math.min(i,o[1]),r=Math.max(r,o[0]),n=Math.max(n,o[1])}return new w.A({xmin:t,ymin:i,xmax:r,ymax:n,spatialReference:this.spatialReference})}}function M(e,t,i){let[r,n,a,o,l,s]=e,u=(0,_.vt)();return(0,y.hZ)(u,r*t+a*i+l,n*t+o*i+s),u}i(44208);var R=i(26887),C=i(48237);function T(e,t,i,r){let n=Math.min(e.length,t.length,3),a=e.slice(0,n).map((e,r)=>({sourcePoint:{x:e[0],y:e[1]},mapPoint:new d.A({x:t[r][0],y:t[r][1],spatialReference:i})}));return new C.A({controlPoints:a,width:r.xmax-r.xmin,height:r.ymax-r.ymin})}function F(e){if(!e?.transform||e.transform.length<6)throw new n.A("geospatial-pdf-layer:georefrencer","created georeferencer does not have valid transform");return e.transform}function E(e){return(0,R.fA)(e[0],-e[1],-e[3],e[4],e[2],e[5])}function S(e){return[[e[0],e[1]],[e[0],e[3]],[e[2],e[3]],[e[2],e[1]]]}class b{constructor(e){let t=this.inputValidation(e);this._registration=t.registration,this._projection=t.projection,this._neatline=t.neatline,this.pairedNeatline=this._pairNeatline(),this.outerExtentMediaBox=S(t.mediaBox),this.geoControlPoints=this._getRegistrationPoints("geo"),this.ctm=t.ctm??this._buildCTMFromRegistration(),this.outputValidation()}inputValidation(e){let{ctm:t,registration:i,projection:r,display:a,neatline:o,mediaBox:l}=e;if(t&&6!==t.length)throw new n.A("geospatial-pdf-layer:invalid-frame","LGIDict has invalid CTM.");if(!t&&(!i||i.length<3))throw new n.A("geospatial-pdf-layer:invalid-frame","LGIDict missing CTM and minimum registration points");if(!l||4!==l.length)throw new n.A("geospatial-pdf-layer:invalid-frame","LGIDict missing or invalid MediaBox.");if(!o||o.length<4||o.length%2!=0)throw new n.A("geospatial-pdf-layer:invalid-frame","LGIDict missing or invalid amount of neatline points");return{ctm:t?(0,R.fA)(t[0],t[1],t[2],t[3],t[4],t[5]):void 0,registration:i??[],projection:r,display:a,neatline:o,mediaBox:l}}outputValidation(){if(6!==this.ctm.length)throw new n.A("geospatial-pdf-layer:invalid-frame","LGIDict missing or invalid CTM");if(this.pairedNeatline.length<4)throw new n.A("geospatial-pdf-layer:invalid-frame","Map Frame should have at least 4 neatline points.");if(4!==this.outerExtentMediaBox.length)throw new n.A("geospatial-pdf-layer:invalid-frame","Failed to generate outerextent from mediaBox.");if(!this.ctm&&this.geoControlPoints.length<2)throw new n.A("geospatial-pdf-layer:invalid-frame","Map Frame should have at least 2 geoControlPoints if defaulting.")}toSpatialReference(){return this._projection}_buildCTMFromRegistration(){let e=[],t=[];for(let i of this._registration)i.length<4||(e.push((0,_.fA)(i[0],i[1])),t.push((0,_.fA)(i[2],i[3])));let i=this._getSourceRect();return E(F(T(e,t,this.toSpatialReference(),i)))}_extentFromArray(e){let t=1/0,i=1/0,r=-1/0,a=-1/0;for(let n=0;n<e.length;n++){let o=e[n];t=Math.min(t,o[0]),i=Math.min(i,o[1]),r=Math.max(r,o[0]),a=Math.max(a,o[1])}if(!(Number.isFinite(t)&&Number.isFinite(i)&&Number.isFinite(r)&&Number.isFinite(a)))throw new n.A("geospatial-pdf-layer: invalid-frame","Failed to compute extent from registration.");return{xmin:t,ymin:i,xmax:r,ymax:a}}_getSourceRect(){if(4===this.outerExtentMediaBox?.length)return this._extentFromArray(this.outerExtentMediaBox);if(this._neatline.length>=6)return this._extentFromArray(this.pairedNeatline);let e=this._getRegistrationPoints("page");if(e.length>=2)return this._extentFromArray(e);throw new n.A("geospatial-pdf-layer: invalid-frame","Cannot build source rectangle from Neatline or Registration points.")}_getRegistrationPoints(e){let[t,i]="page"===e?[0,1]:[2,3];return this._registration.filter(e=>e.length>i).map(e=>[e[t],e[i]])}_pairNeatline(){let e=[];for(let t=0;t<this._neatline.length;t+=2){let i=this._neatline[t],r=this._neatline[t+1];Number.isFinite(i)&&Number.isFinite(r)&&e.push([i,r])}return 2===e.length&&(e.splice(1,0,[e[1][0],e[0][1]]),e.push([e[0][0],e[2][1]])),e}}const j={OriginLatitude:"Origin_Latitude",CentralMeridian:"Central_Meridian",ScaleFactor:"Scale_Factor",FalseEasting:"False_Easting",FalseNorthing:"False_Northing",Zone:"Zone",Hemisphere:"Hemisphere",StandardParallelOne:"Standard_Parallel_One",StandardParallelTwo:"Standard_Parallel_Two"},D=/^(?:NAD83|NORTH AMERICAN 1983|NAR(?:-[A-Z])?)$/i,L=/^(?:NAD27|NORTH AMERICAN 1927|NAS(?:-[A-Z])?)$/i,G=/^(?:WGS84|WGS 84|WGE)$/i;function N(e){let t=function(e){return function(e){let t,i=function(e){switch(e){case"Projection":case"Display":return e;default:return}}(e.Type),r=function(e){switch(e){case"TC":case"PH":case"UT":case"AC":case"LE":case"SPCS":return e;default:return}}(e.Projection_Type);if(r||(t="Projection is missing or has unsupported ProjectionType"),i||(t="Projection dictionary is missing or has invalid Type. Expected Projection or Display."),e.Datum||(t="Projection is missing a Datum"),t)throw new n.A("geospatial-pdf-layer:invalid-projection",t);return I(e,r),{kind:"projected",dictionaryType:i,projectionType:r,datum:e.Datum}}(e)}(e);if("projected"===t.kind){let{projectionType:i,datum:r}=t;return"SPCS"===i?function(e,t){let i=$(t);if(2800===e.Zone&&i&&z(i))return new l.A({wkid:32110});throw new n.A("geospatial-pdf-layer:invalid-projection",`Unsupported State Plane projection: datum ${t.name}, zone ${e.Zone}`)}(e,r):new l.A({wkt:O(e,i,r)})}}function I(e,t){let i=function(e){switch(e){case"TC":return["OriginLatitude","CentralMeridian","ScaleFactor","FalseEasting","FalseNorthing"];case"PH":return["OriginLatitude","CentralMeridian","FalseEasting","FalseNorthing"];case"UT":return["Zone","Hemisphere"];case"AC":case"LE":return["OriginLatitude","CentralMeridian","StandardParallelOne","StandardParallelTwo","FalseEasting","FalseNorthing"];case"SPCS":return["Zone"]}}(t);for(let r of i){let i=e[j[r]];if(void 0===i||""===i)throw new n.A("geospatial-pdf-layer:invalid-projection",`Projection ${t} missing required parameter ${r}.`)}}function O(e,t,i){let r=function(e,t,i){let r=function(e){let t=$(e);return t?z(t)?"NAD_1983":B(t)?"NAD_1927":Z(t)?"WGS_1984":"geospatialPDF":"geospatialPDF"}(i);switch(t){case"TC":return`${r}_GeospatialPDF_Transverse_Mercator`;case"PH":return`${r}_GeospatialPDF_Polyconic`;case"UT":return`${r}_GeospatialPDF_UTM_Zone_${e.Zone}_${e.Hemisphere}`;case"AC":return`${r}_GeospatialPDF_Albers_Equal_Area`;case"LE":return`${r}_GeospatialPDF_Lambert_Conformal_Conic`}}(e,t,i),a=function(e){switch(e){case"TC":case"UT":return"Transverse_Mercator";case"PH":return"Polyconic";case"AC":return"Albers";case"LE":return"Lambert_Conformal_Conic"}}(t),o=function(e){if("definition"===e.kind){let t=e.ellipsoid;if(!t?.semi_Major_Axis)throw new n.A("geospatial-pdf-layer:invalid-Datum","Datum definition requires semi-major axis");let i=function(e){if(null!=e.inverse_Flattening)return e.inverse_Flattening;let t=e.semi_Major_Axis,i=e.semi_Minor_Axis;if(null==t||null==i)throw new n.A("geospatial-pdf-layer:invalid-Datum","Ellipsoid definition missing InvFlattening or SemiMinorAxis.");return t===i?0:t/(t-i)}(t),r=e.name??"GeospatialPDF_Datum",a=`SPHEROID["${t.description??"GeospatialPDF_Spheroid"}",${t.semi_Major_Axis},${i}]`,o=e.to_WGS84;return`DATUM["${r}",${a}${o?`,TOWGS84[${o.dx??0},${o.dy??0},${o.dz??0},${o.rx??0},${o.ry??0},${o.rz??0},${o.sf??0}]`:""}]`}if(e.name){let t=e.name.toUpperCase();if(z(t))return'DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137,298.257222101]]';if(B(t))return'DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]]';if(Z(t))return'DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]]'}throw new n.A("geospatial-pdf-layer:invalid-Datum","Unsupported datum "+e.name)}(i),l=function(e){let t=e.toLowerCase();return["m","meter","meters","metre","metres"].includes(t)?'UNIT["Meter",1.0]':["ft","foot","feet"].includes(t)?'UNIT["Foot",0.3048]':`UNIT["${e}",1.0]`}(e.Units??"M"),s=function(e,t){switch(t){case"TC":return[`PARAMETER["False_Easting",${e.False_Easting}]`,`PARAMETER["False_Northing",${e.False_Northing}]`,`PARAMETER["Central_Meridian",${e.Central_Meridian}]`,`PARAMETER["Latitude_Of_Origin",${e.Origin_Latitude}]`,`PARAMETER["Scale_Factor",${e.Scale_Factor}]`];case"PH":return[`PARAMETER["False_Easting",${e.False_Easting}]`,`PARAMETER["False_Northing",${e.False_Northing}]`,`PARAMETER["Central_Meridian",${e.Central_Meridian}]`,`PARAMETER["Latitude_Of_Origin",${e.Origin_Latitude}]`];case"AC":case"LE":return[`PARAMETER["False_Easting",${e.False_Easting}]`,`PARAMETER["False_Northing",${e.False_Northing}]`,`PARAMETER["Central_Meridian",${e.Central_Meridian}]`,`PARAMETER["Latitude_Of_Origin",${e.Origin_Latitude}]`,`PARAMETER["Standard_Parallel_1",${e.Standard_Parallel_One}]`,`PARAMETER["Standard_Parallel_2",${e.Standard_Parallel_Two}]`];case"UT":return function(e){if(!e.Zone)throw new n.A("geospatial-pdf-layer:invalid-projection","No zone found for projection code UT");let t=6*e.Zone-183;return['PARAMETER["False_Easting",500000]',`PARAMETER["False_Northing",${/^s/i.test(e.Hemisphere??"")?1e7:0}]`,`PARAMETER["Central_Meridian",${t}]`,'PARAMETER["Latitude_Of_Origin",0]','PARAMETER["Scale_Factor",0.9996]']}(e)}}(e,t);return`PROJCS["${r}",GEOGCS["${function(e){let t=$(e);return t?z(t)?"GCS_North_American_1983":B(t)?"GCS_North_American_1927":Z(t)?"GCS_WGS_1984":"GCS_GeospatialPDF":"GCS_GeospatialPDF"}(i)}",${o},PRIMEM["Greenwich",0],UNIT["Degree",0.0174532925199433]],PROJECTION["${a}"],${s.join(",\n ")},${l}]`}function $(e){return e.name?function(e){return e.trim().toUpperCase().replace(/_/g," ").replace(/\s+/g," ")}(e.name):null}function z(e){return D.test(e)}function B(e){return L.test(e)}function Z(e){return G.test(e)}class H{constructor(e){let{bbox:t,bounds:i,gpts:r,lpts:n,gcs:a,mediaBox:o}=this.inputValidation(e);this._bbox=t,this._bounds=i,this._gpts=r,this._lpts=n,this._gcs=a,this.outerExtentMediaBox=S(o),this.geoControlPoints=this._getProjectedGeoControlPoints().map(e=>[e[0],e[1]]);let l=this._getBoundsPolygonPage()??this._getPageControlPoints();this.pairedNeatline=l.map(e=>[e[0],e[1]]),this.neatLine=this.pairedNeatline.flat(),this._georeference=this._createControlPointsGeoreference();let s=F(this._georeference);this.ctm=E(s),this.outputValidation()}toSpatialReference(){return new l.A({wkt:this._gcs.WKT})}inputValidation(e){let{bbox:t,bounds:i,gpts:r,lpts:a,gcs:o,mediaBox:l}=e;if(!t||4!==t.length)throw new n.A("geospatial-pdf-layer:invalid-frame","Viewport missing or invalid BBox.");if(!l||4!==l.length)throw new n.A("geospatial-pdf-layer:invalid-frame","Viewport missing or invalid MediaBox.");if(!r||r.length<6||r.length%2!=0)throw new n.A("geospatial-pdf-layer:invalid-frame","MeasureFrame missing or invalid GPTS.");if(!a||a.length<6||a.length%2!=0)throw new n.A("geospatial-pdf-layer:invalid-frame","MeasureFrame missing or invalid LPTS.");if(a.length!==r.length)throw new n.A("geospatial-pdf-layer: invalid-frame","MeasureFrame LPTS and GPTS must be same length");if(!o?.WKT)throw new n.A("geospatial-pdf-layer:invalid-frame","MeasureFrame missing or invalid WKT.");return{bbox:t,bounds:i,gpts:r,lpts:a,gcs:{WKT:o.WKT},mediaBox:l}}outputValidation(){if(4!==this.outerExtentMediaBox.length)throw new n.A("geospatial-pdf-layer:invalid-frame","Failed to generate outer extent from mediaBox.");if(this.geoControlPoints.length<2)throw new n.A("geospatial-pdf-layer:invalid-frame","Map Frame should have at least 2 geoControlPoints.");if(this.pairedNeatline.length<4)throw new n.A("geospatial-pdf-layer:invalid-frame","Map Frame should have at least 4 neatline points.");if(!this.ctm||6!==this.ctm.length)throw new n.A("geospatial-pdf-layer:invalid-frame","Missing or invalid Map Frame CTM")}_createControlPointsGeoreference(){let e=this._getPageControlPoints(),t=this._getProjectedGeoControlPoints(),i=this._getViewportRect();return T(e,t,this.toSpatialReference(),i)}_getBoundsPolygonLocal(){if(!this._bounds||this._bounds.length<8||this._bounds.length%2!=0)return null;let e=[];for(let t=0;t<this._bounds.length;t+=2)e.push({u:this._bounds[t],v:this._bounds[t+1]});return e}_getBoundsPolygonPage(){return this._getBoundsPolygonLocal()?.map(e=>this._localToPage(e.u,e.v))??null}_getPageControlPoints(){let e=[];for(let t=0;t<this._lpts.length;t+=2){let i=this._lpts[t],r=this._lpts[t+1];e.push(this._localToPage(i,r))}return e}_getProjectedGeoControlPoints(){let e=this.toSpatialReference(),t=[];for(let i=0;i<this._gpts.length;i+=2){let r=this._gpts[i],n=this._gpts[i+1],a=new d.A({x:n,y:r}),o=(0,A.projectExecute)(a,e);t.push((0,_.fA)(o.x,o.y))}return t}_getViewportRect(){let[e,t,i,r]=this._bbox;return{xmin:Math.min(e,i),ymin:Math.min(t,r),xmax:Math.max(e,i),ymax:Math.max(t,r)}}_localToPage(e,t){let[i,r,n,a]=this._bbox;return(0,_.fA)(i+e*(n-i),r+t*(a-r))}}function U(e){let t=re(e,"LGIDict map frame must be an object.");return{CTM:Q(t.CTM),Registration:X(t.Registration),Neatline:Q(t.Neatline),Projection:W(t.Projection),Display:W(t.Display)}}function k(e){let t=re(e,"Viewport frame must be an object."),i=function(e){if(ie(e))return{Bounds:Q(e.Bounds),GPTS:Q(e.GPTS),LPTS:Q(e.LPTS),GCS:V(e.GCS)}}(t.Measure);return{BBox:Q(t.BBox),Measure_Raw:t.Measure,Measure:i,Raw:t}}function V(e){if(ie(e))return{WKT:Y(e.WKT)}}function W(e){if(ie(e))return{Type:ee(e.Type),Units:ee(e.Units),Datum:J(e.Datum),Projection_Type:ee(e.ProjectionType),Central_Meridian:te(e.CentralMeridian),False_Easting:te(e.FalseEasting),False_Northing:te(e.FalseNorthing),Height:te(e.Height),Hemisphere:ee(e.Hemisphere),Latitude_One:te(e.LatitudeOne),Latitude_Two:te(e.LatitudeTwo),Latitude_Of_True_Scale:te(e.LatitudeOfTrueScale),Longitude_One:te(e.LongitudeOne),Longitude_Two:te(e.LongitudeTwo),Longitude_Down_From_Pole:te(e.LongitudeDownFromPole),Orientation:ee(e.Orientation),Origin_Height:te(e.OriginHeight),Origin_Latitude:te(e.OriginLatitude),Origin_Longitude:te(e.OriginLongitude),Scale_Factor:te(e.ScaleFactor),Standard_Parallel:te(e.StandardParallel),Standard_Parallel_One:te(e.StandardParallelOne),Standard_Parallel_Two:te(e.StandardParallelTwo),Zone:te(e.Zone),Description:ee(e.Description),raw:e}}function J(e){return null==e?null:"string"==typeof e?{kind:"name",name:ee(e),ellipsoid:null,to_WGS84:null,raw:e}:ie(e)?{kind:"definition",name:ee(e.Description),ellipsoid:K(e.Ellipsoid),to_WGS84:q(e.ToWGS84),raw:e}:{kind:"unknown",name:ee(e),ellipsoid:null,to_WGS84:null,raw:e}}function K(e){if(ie(e))return{semi_Major_Axis:te(e.SemiMajorAxis),inverse_Flattening:te(e.InvFlattening),semi_Minor_Axis:te(e.SemiMinorAxis),description:ee(e.Description)}}function q(e){if(ie(e))return{dx:te(e.dx)??0,dy:te(e.dy)??0,dz:te(e.dz)??0,rx:te(e.rx)??0,ry:te(e.ry)??0,rz:te(e.rz)??0,sf:te(e.sf)??0}}function Q(e){if(!Array.isArray(e))return;let t=[];for(let i of e){let e=te(i);if(void 0===e)return;t.push(e)}return t}function X(e){if(Array.isArray(e))return e.filter(e=>Array.isArray(e)).map(e=>e.map(e=>te(e)).filter(e=>void 0!==e))}function Y(e){if(null!=e)return"string"==typeof e?e:String(e)}function ee(e){let t=Y(e);if(void 0!==t)return t.trim()}function te(e){if(null==e)return;if("number"==typeof e)return Number.isFinite(e)?e:void 0;if("string"!=typeof e)return;let t=e.trim();if(""===t)return;let i=Number(t);return Number.isFinite(i)?i:void 0}function ie(e){return"object"==typeof e&&!!e&&!Array.isArray(e)}function re(e,t){if(!ie(e))throw new n.A("geospatial-pdf-layer:parse",t);return e}let ne=class extends f.x_{constructor(){super(...arguments),this._connection=null,this._workerHandler=null}load(e){let t=(0,g.h)("GeospatialPDFLayerWorker",{...e,strategy:"dedicated",registryTarget:this}).then(e=>{this._connection=e,this._workerHandler=this._connection.createInvokeProxy()});return this.addResolvingPromise(t),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null,this._workerHandler=null,super.destroy()}async loadPDF(e,t={}){await this.load(t);let{geospatialMetadata:i}=await this._workerHandler.loadPDF(e,t),r=function(e,t=0){let i={mediaBox:Q(e.MediaBox),rotate:te(e.Rotate),hasLGIDict:null!=e.LGIDict,hasVP:null!=e.VP},r=(a=t,function(e){return null==e?[]:Array.isArray(e)?e.map(e=>U(e)):[U(e)]}(e.LGIDict)[a]);var a;if(r){if(!r.Projection)throw new n.A("geospatial-pdf-layer:parse","LGIDict map frame missing Projection.");let t,a=N(r.Projection);try{t=r.Display?N(r.Display):void 0}catch{t=a}return{result:i,lgiDictFrame:new b({ctm:r.CTM,registration:r.Registration,projection:a,display:t,neatline:r.Neatline,mediaBox:Q(e.MediaBox)})}}let o=function(e,t){return function(e){return null==e?[]:Array.isArray(e)?e.map(e=>k(e)):[k(e)]}(e)[t]}(e.VP,t);return o?{result:i,vpFrame:new H({bbox:o.BBox,bounds:o.Measure?.Bounds,gpts:o.Measure?.GPTS,lpts:o.Measure?.LPTS,gcs:o.Measure?.GCS,mediaBox:Q(e.MediaBox)})}:{result:i}}(i,0),a=r.lgiDictFrame??r.vpFrame;if(!a)throw new n.A("geospatial-pdf-layer:load","pdf does not contain supported LGIDict or VP/Measure.");let o=new v(a);return{frame:o,sourceSpatialReference:o.spatialReference.toJSON(),fullExtent:o.toExtent()}}async render(e,t,i,r,n,a){let o={sourceExtentAsJSON:e.toJSON(),width:t,height:i,ctm:r,currentRing:n};return this._workerHandler.renderPDF(o,a)}};ne=(0,r.Cg)([(0,o.$K)("esri.layers.geospatialPDF.GeospatialPDFWorkerClient")],ne);var ae=i(49859),oe=i(14140),le=i(87186);let se=class extends ae.A{constructor(){super(...arguments),this._workerClient=new ne,this._extent=null,this._ctm=null,this._neatlineRing=[],this._width=0,this._height=0,this._tileSize=512,this.datasetFormat="PDF",this.frame=null,this.neatlineExtent=null,this.page=1,this.tileType="Raster"}destroy(){this._workerClient.destroy(),this.neatlineExtent=null,this._extent=null,this._ctm=null,this._neatlineRing=[]}async fetchRawTile(e,t,i,r={}){let n=this._extent,a=this._ctm,o=this.getTileExtentPDF(e,t,i);return o.intersects(n)?function(e){return new oe.A({width:e.width,height:e.height,pixelType:"u8",pixels:[e.red,e.green,e.blue],mask:e.mask})}(await this._workerClient.render(o,this._tileSize,this._tileSize,a,this._neatlineRing,r)):null}async _open(e){if(!this.url)throw new n.A("geospatial-pdf-raster:open","GeospatialPDFRaster requires a url.");let t=await this._workerClient.loadPDF({url:this.url,page:this.page},e);this.frame=t.frame;let i=this.frame.outerExtentMediabox;if(!i)throw new n.A("geospatial-pdf-raster:open","Failed to compute Geospatial PDF extent.");this.neatlineExtent=t.fullExtent,this._extent=i,this._ctm=this.frame.ctm,this._neatlineRing=this.frame.sourceMediaBoxPolygon.rings[0];let r=function(e,t){let[i,r,a,o]=e,l=i*o-r*a;if(!Number.isFinite(l)||0===l)throw new n.A("geospatial-pdf-raster:open","Failed to derive raster dimensions from an invalid PDF CTM.");let s=10*Math.hypot(o,r)/Math.abs(l),u=10*Math.hypot(a,i)/Math.abs(l),p=Math.max(1,Math.ceil(t.width*s)),h=Math.max(1,Math.ceil(t.height*u));if(!Number.isFinite(p)||!Number.isFinite(h))throw new n.A("geospatial-pdf-raster:open","PDF CTM produced invalid raster dimensions.");return[p,h]}(this.frame.ctm,this._extent);this._width=r[0],this._height=r[1];let a={x:i.width/this._width,y:i.height/this._height},o=new le.A({width:this._width,height:this._height,pixelType:"u8",extent:i,pixelSize:a,spatialReference:i.spatialReference,bandCount:3,keyProperties:{DataType:"Processed"}});this.createRemoteDatasetStorageInfo(o,this._tileSize,this._tileSize),this._set("rasterInfo",o),this.updateTileInfo()}getTileExtentPDF(e,t,i){let r=this._extent,n=2**e,a=r.width/this._width*n,o=r.height/this._height*n,l=new d.A({x:r.xmin,y:r.ymax});return this.getTileExtent({x:a,y:o},t,i,l,r.spatialReference,[512,512])}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],se.prototype,"datasetFormat",void 0),(0,r.Cg)([(0,o.MZ)({constructOnly:!0})],se.prototype,"page",void 0),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],se.prototype,"tileType",void 0),se=(0,r.Cg)([(0,o.$K)("esri.layers.raster.datasets.GeospatialPDFRaster")],se);var ue=i(34930),pe=i(15584),he=i(87045);let ce=class extends((0,p.dM)((0,c.j)((0,h.G)((0,a.M)(u.A))))){constructor(e){super(e),this.serviceRasterInfo=null,this._frame=null,this._objectURL=null,this.clippedToNeatline=!1,this.data=null,this.raster=null,this.spatialReference=null,this.type="geospatial-pdf"}load(e){return this.addResolvingPromise(this._load(e)),Promise.resolve(this)}destroy(){this._shutdownJobHandler(),this.raster?.destroy(),this._objectURL&&=(URL.revokeObjectURL(this._objectURL),null)}get fullExtent(){return this.serviceRasterInfo?.extent}async fetchImageBitmapTile(){throw new n.A("geospatial-pdf-layer:fetch-image-bitmap-tile","GeospatialPDFLayer does not expose pre-rendered image tile URLs.")}async fetchPixels(e,t,i,r={}){return de(this),await this._initJobHandler(),this.raster.fetchPixels(e,Math.round(t),Math.round(i),r)}async fetchTile(e,t,i,r={}){if(de(this),r.requestAsImageElement)throw new n.A("geospatial-pdf-layer:fetch-tile","GeospatialPDFLayer does not support requestAsImageElement.");await this._initJobHandler();let a=await this.raster.fetchTile(e,t,i,r);return this.clippedToNeatline&&a.pixelBlock&&this._frame&&a.srcExtent&&(a.pixelBlock=await(0,ue.$Q)(a.pixelBlock,a.srcExtent,this._frame.sourceNeatlinePolygon)),a}getCompatibleFullExtent(e){return this.loaded?(this._compatibleFullExtent?.spatialReference.equals(e)||(this._compatibleFullExtent=this.raster.computeExtent(e)),this._compatibleFullExtent):null}getCompatibleTileInfo(e,t,i=!1){if(!this.loaded||null==t)return null;if(i&&e.equals(this.spatialReference))return this.tileInfo;let r=(0,s.Vp)(e);return he.A.create({size:256,spatialReference:e,origin:r?{x:r.origin[0],y:r.origin[1]}:{x:t.xmin,y:t.ymax}})}getRawDisplayBandIds(){return de(this),[0,1,2]}async _initJobHandler(){if(!this._rasterJobHandler)return super._initJobHandler().then(()=>{this._rasterJobHandler&&(de(this),this.raster.rasterJobHandler=this._rasterJobHandler)}).catch(()=>{})}_shutdownJobHandler(){super._shutdownJobHandler(),this.raster&&(this.raster.rasterJobHandler=null)}async _getDataUrl(e){let{data:t}=this;if("string"==typeof t)return t;if(t instanceof File)return this._objectURL=URL.createObjectURL(t),this._objectURL;if(t instanceof pe.A){await t.portalItem.load({signal:e?.signal});let i=t.portalItem.url;if(!i)throw new n.A("geospatial-pdf-layer:load","Portal item does not have a valid data URL.");return i}throw new n.A("geospatialpdf-layer:missing-data","A data source must be specified.")}async _load(e){let t=await this._getDataUrl(e);await this._openRaster(t,e?.signal)}async _openRaster(e,t){let i=new se({url:e});if(await i.open({signal:t}),!i.rasterInfo)throw i.destroy(),new n.A("geospatialpdf-layer:load","cannot load resources on "+e);let{rasterInfo:r}=i;this._set("serviceRasterInfo",r),this.setAtOrigin("spatialReference",r.spatialReference,"service"),this.setAtOrigin("tileInfo",r.storageInfo.tileInfo,"service"),this._frame=i.frame,this.raster=i}};function de(e){if(!e.raster||!e.serviceRasterInfo)throw new n.A("imagery-tile","no raster")}(0,r.Cg)([(0,o.MZ)()],ce.prototype,"serviceRasterInfo",void 0),(0,r.Cg)([(0,o.MZ)({clonable:!1})],ce.prototype,"_compatibleFullExtent",void 0),(0,r.Cg)([(0,o.MZ)({type:Boolean})],ce.prototype,"clippedToNeatline",void 0),(0,r.Cg)([(0,o.MZ)()],ce.prototype,"data",void 0),(0,r.Cg)([(0,o.MZ)({json:{read:!1}})],ce.prototype,"fullExtent",null),(0,r.Cg)([(0,o.MZ)()],ce.prototype,"raster",void 0),(0,r.Cg)([(0,o.MZ)({readOnly:!0,type:l.A,json:{read:!1}})],ce.prototype,"spatialReference",void 0),(0,r.Cg)([(0,o.MZ)({type:he.A,readOnly:!0})],ce.prototype,"tileInfo",void 0),(0,r.Cg)([(0,o.MZ)({readOnly:!0,value:"geospatial-pdf"})],ce.prototype,"type",void 0),ce=(0,r.Cg)([(0,o.$K)("esri.layers.GeospatialPDFLayer")],ce);const fe=ce},91806(e,t,i){i.d(t,{A:()=>s});var r,n=i(32198),a=i(25482),o=i(91429),l=i(78888);let s=class extends a.o{static{r=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new r({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],s.prototype,"cols",void 0),(0,n.Cg)([(0,o.MZ)({type:l.jz,json:{write:!0}})],s.prototype,"level",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],s.prototype,"levelValue",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],s.prototype,"origin",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],s.prototype,"resolution",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],s.prototype,"rows",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],s.prototype,"scale",void 0),s=r=(0,n.Cg)([(0,o.$K)("esri.layers.support.LOD")],s)},15584(e,t,i){i.d(t,{A:()=>h});var r=i(32198),n=i(69540),a=i(25482),o=i(91429),l=i(64108),s=i(80812),u=i(36005),p=i(43937);let h=class extends((0,a.T)(n.Pw)){constructor(e){super(e),this.type="portal-item"}readPortalItem(e,t,i){if(t.itemId)return new s.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}};(0,r.Cg)([(0,o.MZ)({type:["portal-item"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],h.prototype,"type",void 0),(0,r.Cg)([(0,o.MZ)({type:s.default,json:{write:{isRequired:!0}}})],h.prototype,"portalItem",void 0),(0,r.Cg)([(0,u.w)("portalItem",["itemId"])],h.prototype,"readPortalItem",null),(0,r.Cg)([(0,p.K)("portalItem",{itemId:{type:String}})],h.prototype,"writePortalItem",null),h=(0,r.Cg)([(0,l.$)("esri.layers.support.PortalItemData")],h)},87045(e,t,i){i.d(t,{A:()=>w});var r,n=i(32198),a=i(66552),o=i(25482),l=i(86211),s=i(91429),u=i(78888),p=i(86738),h=i(16930),c=i(21325),d=i(28735),f=i(91806),g=i(72802),m=i(36005),_=i(43937);const y=new a.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let w=class extends o.o{static{r=this}static create(e={}){let{resolutionFactor:t=1,scales:i,size:n=256,spatialReference:a=h.A.WebMercator,numLODs:o=24}=e;if(!(0,c.fn)(a)){let e=[];if(i)for(let t=0;t<i.length;t++){let r=i[t];e.push(new f.A({level:t,scale:r,resolution:r}))}else{let t=5e-4;for(let i=o-1;i>=0;i--)e.unshift(new f.A({level:i,scale:t,resolution:t})),t*=2}return new r({dpi:96,lods:e,origin:new p.A(0,0,a),size:[n,n],spatialReference:a})}let s=(0,c.Vp)(a),u=e.origin?new p.A({x:e.origin.x,y:e.origin.y,spatialReference:a}):s?new p.A({x:s.origin[0],y:s.origin[1],spatialReference:a}):new p.A({x:0,y:0,spatialReference:a}),d=1/(39.37*(0,l.GA)(a)*96),g=[];if(i)for(let e=0;e<i.length;e++){let t=i[e],r=t*d;g.push(new f.A({level:e,scale:t,resolution:r}))}else{let e=(0,c.EA)(a)?512/n*591657527.5917094:256/n*591657527.591555,i=Math.ceil(o/t);g.push(new f.A({level:0,scale:e,resolution:e*d}));for(let r=1;r<i;r++){let i=e/2**t,n=i*d;g.push(new f.A({level:r,scale:i,resolution:n})),e=i}}return new r({dpi:96,lods:g,origin:u,size:[n,n],spatialReference:a})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){let{spatialReference:e,origin:t}=this;if(e&&t){let i=(0,c.Vp)(e);return e.isWrappable&&!!i&&Math.abs(i.origin[0]-t.x)<=i.dx}return!1}readOrigin(e,t){return p.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,i=0,r=[],n=this._levelToLOD={};e&&(t=-1/0,i=1/0,e.forEach(e=>{r.push(e.scale),t=e.scale>t?e.scale:t,i=e.scale<i?e.scale:i,n[e.level]=e})),this._set("scales",r),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){let t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];let i=Math.floor(e),r=i+1;return t[i]/(t[i]/t[r])**(e-i)}scaleToZoom(e){let t=this.scales,i=t.length-1,r=0;for(;r<i;r++){let i=t[r],n=t[r+1];if(i<=e)return r;if(n===e)return r+1;if(i>e&&n<e)return r+Math.log(i/e)/Math.log(i/n)}return r}tileAt(e,t,i,r){let n,a,o=this.lodAt(e);if(!o)return null;if("number"==typeof t)n=t,a=i;else if((0,c.aI)(t.spatialReference,this.spatialReference))n=t.x,a=t.y,r=i;else{let e=(0,d.Cv)(t,this.spatialReference);if(null==e)return null;n=e.x,a=e.y,r=i}let l=o.resolution*this.size[0],s=o.resolution*this.size[1];return r??=new g.U(0,0,0),r.level=e,r.row=Math.floor((this.origin.y-a)/s+.001),r.col=Math.floor((n-this.origin.x)/l+.001),this.updateTileInfo(r),r}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let i=this.lodAt(e.level);if(!i&&1===t){let t=this.lods[this.lods.length-1];t.level<e.level&&(i=t)}if(!i)return!1;let r=e.level-i.level,n=i.resolution*this.size[0]/2**r,a=i.resolution*this.size[1]/2**r;return e.extent[0]=this.origin.x+e.col*n,e.extent[1]=this.origin.y-(e.row+1)*a,e.extent[2]=e.extent[0]+n,e.extent[3]=e.extent[1]+a,!0}upsampleTile(e){let t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){let i=this.lodAt(t.level);if(null==i)return null;let{resolution:r}=i,n=r*this.size[0],a=r*this.size[1];return e[0]=this.origin.x+t.col*n,e[1]=this.origin.y-(t.row+1)*a,e[2]=e[0]+n,e[3]=e[1]+a,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return r.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;let t=(512===this.size[0]&&256===e?-1:0)+ +!!this.spatialReference.isGeographic;if(this.size[0]===e&&0===t)return this;let i=[],n=this.lods.length-t;for(let e=0;e<n;e++){let r=e+t,{scale:n,resolution:a}=r>=0?this.lods[r]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};i.push(new f.A({level:e,scale:n,resolution:a}))}return new r({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:i})}_initializeUpsampleLevels(){let e=this.lods;this._upsampleLevels=[];let t=null;for(let i=0;i<e.length;i++){let r=e[i];this._upsampleLevels[r.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/r.resolution:0},t=r}}};(0,n.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],w.prototype,"compressionQuality",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],w.prototype,"dpi",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{read:y.read,write:y.write,origins:{"web-scene":{read:!1,write:!1}}}})],w.prototype,"format",void 0),(0,n.Cg)([(0,s.MZ)({readOnly:!0})],w.prototype,"isWrappable",null),(0,n.Cg)([(0,s.MZ)({type:p.A,json:{write:!0}})],w.prototype,"origin",void 0),(0,n.Cg)([(0,m.w)("origin")],w.prototype,"readOrigin",null),(0,n.Cg)([(0,s.MZ)({type:[f.A],value:null,json:{write:!0}})],w.prototype,"lods",null),(0,n.Cg)([(0,s.MZ)({readOnly:!0})],w.prototype,"scales",void 0),(0,n.Cg)([(0,s.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],w.prototype,"size",void 0),(0,n.Cg)([(0,m.w)("size",["rows","cols"])],w.prototype,"readSize",null),(0,n.Cg)([(0,_.K)("size",{cols:{type:u.jz},rows:{type:u.jz}})],w.prototype,"writeSize",null),(0,n.Cg)([(0,s.MZ)({type:h.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),w=r=(0,n.Cg)([(0,s.$K)("esri.layers.support.TileInfo")],w)},72802(e,t,i){i.d(t,{U:()=>n});var r=i(19419);class n{constructor(e,t,i,n=(0,r.vt)()){this._level=e,this._row=t,this._col=i,this.extent=n}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new n(e.level,e.row,e.col,e.extent)}}}}]);
|