@arcgis/core 5.0.0-next.5 → 5.0.0-next.7
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/VolumeMeasurement/volumeMeasurementConfiguration.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/020c8913d8e35d63080b.js +1 -0
- package/assets/esri/core/workers/chunks/{c2b47a7dc961863d283f.js → 02e69f0c63d97661da60.js} +1 -1
- package/assets/esri/core/workers/chunks/087973e7c4fea5fcfa5e.js +1 -0
- package/assets/esri/core/workers/chunks/{929ece362604dc301229.js → 17acde0245ecd956306c.js} +1 -1
- package/assets/esri/core/workers/chunks/{8cea114168d849c38b1b.js → 20278683bddc8c2d8136.js} +1 -1
- package/assets/esri/core/workers/chunks/{dc4982b0ac007bd70213.js → 22d6b8102e75bdef204c.js} +1 -1
- package/assets/esri/core/workers/chunks/{3271614322ba4b44fb5a.js → 279366e6b743f9680603.js} +1 -1
- package/assets/esri/core/workers/chunks/{f7c99e9c8d19352af38d.js → 3ac7562ea90f91a9f30c.js} +1 -1
- package/assets/esri/core/workers/chunks/3f3d492f1093b7832aab.js +1 -0
- package/assets/esri/core/workers/chunks/464d42bebb365287808d.js +1 -0
- package/assets/esri/core/workers/chunks/{d570c75a425aa29672c8.js → 4d599008e1ea42321b37.js} +1 -1
- package/assets/esri/core/workers/chunks/{0686243904381ef863dc.js → 53bd8996e8812f1ad7b2.js} +1 -1
- package/assets/esri/core/workers/chunks/{762fe93015b705546188.js → 5bd36dbf46c25bd961c8.js} +1 -1
- package/assets/esri/core/workers/chunks/{b7a17927e14f502006b4.js → 5ea0c62016d56990787b.js} +1 -1
- package/assets/esri/core/workers/chunks/{2ea6985da4eb0107bb9d.js → 5fc7b61f467f1d60a284.js} +1 -1
- package/assets/esri/core/workers/chunks/{a87521ebe632bf783ef4.js → 62a49cfd9a2508950e9f.js} +1 -1
- package/assets/esri/core/workers/chunks/{ec13053af1999701464a.js → 6826fe54562dcdc054d7.js} +1 -1
- package/assets/esri/core/workers/chunks/{309c5f69ea06f3081d83.js → 73487b9d85e726e9c012.js} +1 -1
- package/assets/esri/core/workers/chunks/7413e582bc2b16af6a0f.js +1 -0
- package/assets/esri/core/workers/chunks/{88d942cd25bef74fd50a.js → 7461124454bfb4fb6474.js} +1 -1
- package/assets/esri/core/workers/chunks/{147ad5fdd02f46b6da24.js → 7544316a75dbd981aea6.js} +1 -1
- package/assets/esri/core/workers/chunks/{0f8847f9ae3068833fa4.js → 75bf27271a31e26e1b21.js} +1 -1
- package/assets/esri/core/workers/chunks/{630efe10c871425b6a95.js → 76ae1702fecc7ad7017c.js} +1 -1
- package/assets/esri/core/workers/chunks/{de1f75c907152df7e788.js → 794748fd1edc29a621cd.js} +1 -1
- package/assets/esri/core/workers/chunks/{e1258b6a404e58878c7a.js → 7aaaebbabee27690283c.js} +1 -1
- package/assets/esri/core/workers/chunks/{6a69dafeb7c9ca8a3d84.js → 7c4a63aeead2505d6f02.js} +1 -1
- package/assets/esri/core/workers/chunks/{d84373a6ec94dcfec8c2.js → 88074189fa10c335370b.js} +1 -1
- package/assets/esri/core/workers/chunks/{a8c4fd779e454e4075c4.js → 8833c3d168951be4bf20.js} +1 -1
- package/assets/esri/core/workers/chunks/{85622fe99f4d08afe875.js → 8a314b3790313e6dc5db.js} +1 -1
- package/assets/esri/core/workers/chunks/{b0b2670596d6d8c32b5e.js → 8c056eac35d05d9524b7.js} +1 -1
- package/assets/esri/core/workers/chunks/{1a713dcc9971e1935401.js → 8f56f298e7c1a283f407.js} +1 -1
- package/assets/esri/core/workers/chunks/{dabc5a38a472c9719df9.js → 8ffd4710d168c2fcfd96.js} +1 -1
- package/assets/esri/core/workers/chunks/{1da74aa308ded5748ef5.js → 90250e9239c173aace88.js} +1 -1
- package/assets/esri/core/workers/chunks/90b2b43b8b54c9a1ec35.js +1 -0
- package/assets/esri/core/workers/chunks/90f8b4bda28af43ea019.js +1 -0
- package/assets/esri/core/workers/chunks/{89027f6800e17fab8973.js → 9486032af3e934d85582.js} +1 -1
- package/assets/esri/core/workers/chunks/95c594a87b732f5c4979.js +1 -0
- package/assets/esri/core/workers/chunks/{239377336a2009caea01.js → 99859dce1925b406ccd0.js} +1 -1
- package/assets/esri/core/workers/chunks/{a137c27ce078bea44f89.js → 9e8dceef4c961f56940d.js} +1 -1
- package/assets/esri/core/workers/chunks/{f5b7e7f2860a825ed373.js → 9fac5a12e878cd745354.js} +1 -1
- package/assets/esri/core/workers/chunks/{f779034623980bf9a37c.js → a06bac9b8f9e18874de8.js} +2 -2
- package/assets/esri/core/workers/chunks/{01642fe19e81bfa33eb5.js → a395373e3173e6458a56.js} +1 -1
- package/assets/esri/core/workers/chunks/a3991ae8caa713d4ddcd.js +1 -0
- package/assets/esri/core/workers/chunks/{a6ac1ff89c40f3a4797a.js → a712cdff78fc826acd8c.js} +1 -1
- package/assets/esri/core/workers/chunks/{af3fc2562bb6d217adf6.js → aa54b6f2aba6952af149.js} +1 -1
- package/assets/esri/core/workers/chunks/ac26e3e77df4302f47a2.js +1 -0
- package/assets/esri/core/workers/chunks/af5fc5d6c1d072a27df1.js +1 -0
- package/assets/esri/core/workers/chunks/{bc3bcf88b252760e2574.js → b3028b1ff75eafd0c358.js} +1 -1
- package/assets/esri/core/workers/chunks/{5875a51b97ee9bd438a0.js → bc241c7735e4efba734a.js} +1 -1
- package/assets/esri/core/workers/chunks/{56916e56c20465428dd4.js → be3b874f86f627f4fa98.js} +1 -1
- package/assets/esri/core/workers/chunks/c4e4da69969499a89a2c.js +1 -0
- package/assets/esri/core/workers/chunks/c8733cd621105afab2ac.js +1 -0
- package/assets/esri/core/workers/chunks/ccc0da0e01f023c8aa1f.js +1 -0
- package/assets/esri/core/workers/chunks/{c0b7e86860838638537f.js → cd1930f08e1fc8b30b14.js} +1 -1
- package/assets/esri/core/workers/chunks/{551c6c89b51b99f4864b.js → d1fe816b6990918c13c7.js} +1 -1
- package/assets/esri/core/workers/chunks/{8605ec4678eb4511c715.js → d305a21666b1ed5bf33d.js} +1 -1
- package/assets/esri/core/workers/chunks/{037b2548bf85e2d7c6ac.js → d40f57f9fc47f9a9f97c.js} +1 -1
- package/assets/esri/core/workers/chunks/{a29d7205394cb8b2a847.js → d97fadbc69e055d183a0.js} +1 -1
- package/assets/esri/core/workers/chunks/dedc4583b5f32a278124.js +1 -0
- package/assets/esri/core/workers/chunks/{e5bcc44f3dc6fc90835a.js → e5a06ce0ef6a9a90e100.js} +1 -1
- package/assets/esri/core/workers/chunks/f0e0a63962784acb4ba1.js +1 -0
- package/assets/esri/core/workers/chunks/f4d0ae6be1b3984228d0.js +1 -0
- package/assets/esri/core/workers/chunks/{7c5c272612198db83851.js → f5e47eea8720ba84665b.js} +1 -1
- package/assets/esri/core/workers/chunks/{fa4411e0a5ac3fcba365.js → f65c0102af17390a50ac.js} +1 -1
- package/assets/esri/core/workers/chunks/f6c11c8ac687de3ef1ab.js +1 -0
- package/assets/esri/core/workers/chunks/{7596d005a4dc3964b140.js → f6c8beb60f6d29945a2e.js} +1 -1
- package/assets/esri/core/workers/chunks/{a2a284d4dd5caaecbc2e.js → f746e3f7ebff2bbdf333.js} +1 -1
- package/assets/esri/core/workers/chunks/f9324e88c359c03f35aa.js +1 -0
- package/assets/esri/core/workers/chunks/{cfa3164e7fa1884dc2b9.js → facb3886714222772ab2.js} +1 -1
- package/assets/esri/core/workers/chunks/{aa6eb55e4fb57c4e8eeb.js → fd2efd1d1cf9d95a87e6.js} +1 -1
- package/assets/esri/core/workers/chunks/{fe3f95fda29e4844b153.js → fe77ae6cf232a7a3298e.js} +1 -1
- package/assets/esri/core/workers/chunks/{2ce4a0fe4fae63c43a81.js → ff35a077ac6776469805.js} +1 -1
- package/assets/esri/themes/base/widgets/_UtilityNetworkTrace.scss +14 -4
- 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/config.js +1 -1
- package/core/Identifiable.js +1 -1
- package/core/MultiOriginJSONSupport.js +1 -1
- package/core/NumericIdentifiable.js +5 -0
- package/core/WriteableMultiOriginJSONMixin.js +5 -0
- package/core/performance.js +5 -0
- package/core/scheduling.js +1 -1
- package/editing/sharedTemplates/executor/support/createFeatureServiceEdit.js +1 -1
- package/interfaces.d.ts +18 -2
- package/kernel.js +1 -1
- package/layers/support/MediaElementBase.js +1 -1
- package/layers/support/fieldUtils.js +1 -1
- package/package.json +3 -3
- package/support/basemapDefinitions.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/effects/EffectTaperedPolygon.js +1 -1
- package/undoredo/support/Services.js +1 -1
- package/views/2d/constraints/GeometryConstraint.js +1 -1
- package/views/2d/constraints/RotationConstraint.js +1 -1
- package/views/2d/constraints/ZoomConstraint.js +1 -1
- package/views/2d/engine/vectorTiles/decluttering/SymbolFader.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
- package/views/3d/layers/FlowSubView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFeatureStore.js +1 -1
- package/views/3d/layers/i3s/I3SOverrides.js +1 -1
- package/views/3d/layers/support/ImageHighlightHelper3D.js +1 -1
- package/views/3d/layers/support/lyr3dTypeConversions.js +1 -1
- package/views/3d/support/flow/FlowSubViewExtent3D.js +1 -1
- package/views/3d/support/flow/StreamlineResources3DOverlay.js +1 -1
- package/views/3d/support/flow/StreamlineResources3DShape.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/webgl-engine/statistics/RendererPerformanceInfo.js +1 -1
- package/views/analysis/ElevationProfile/constants.js +1 -1
- package/views/support/Scheduler.js +1 -1
- package/widgets/Attachments/AttachmentsViewModel.js +1 -1
- package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
- package/widgets/Search/LayerSearchSource.js +1 -1
- package/widgets/UtilityNetworkTrace.js +1 -1
- package/assets/esri/core/workers/chunks/0366b78b0ccf4ed5f6ac.js +0 -1
- package/assets/esri/core/workers/chunks/0429c1a3690f20647c9f.js +0 -1
- package/assets/esri/core/workers/chunks/0f100e163e1847e04155.js +0 -1
- package/assets/esri/core/workers/chunks/1eedac33c9fcd7681427.js +0 -1
- package/assets/esri/core/workers/chunks/2f03d33f4ca8a48461fc.js +0 -1
- package/assets/esri/core/workers/chunks/50864c1924030e62497d.js +0 -1
- package/assets/esri/core/workers/chunks/655360995c1cbc78a5a3.js +0 -1
- package/assets/esri/core/workers/chunks/71762199aef5d3107da2.js +0 -1
- package/assets/esri/core/workers/chunks/72c851c400752094b162.js +0 -1
- package/assets/esri/core/workers/chunks/7558919912f7fdc4837b.js +0 -1
- package/assets/esri/core/workers/chunks/829bc5dbda2f51561446.js +0 -1
- package/assets/esri/core/workers/chunks/98311fec6c16a1b23586.js +0 -1
- package/assets/esri/core/workers/chunks/a61cb4f1ca282bf8b75d.js +0 -1
- package/assets/esri/core/workers/chunks/bc6619307f312f9241bf.js +0 -1
- package/assets/esri/core/workers/chunks/bfc1e8aec7aace3ff30e.js +0 -1
- package/assets/esri/core/workers/chunks/c134ebbaeac514cbd657.js +0 -1
- package/assets/esri/core/workers/chunks/c368a8e8d2f1535af446.js +0 -1
- package/assets/esri/core/workers/chunks/d886fb97bdb348a16f25.js +0 -1
- package/assets/esri/core/workers/chunks/e6a86cad44056735ed26.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[655],{16405:(t,e,r)=>{r.d(e,{A:()=>c});var s,o=r(31635),i=r(69622),l=r(66552),a=r(4718),n=r(10107),u=(r(44208),r(53966),r(64108)),p=r(5443),d=r(16930),h=r(28735);const y=new l.J({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});let c=s=class extends i.A{constructor(t){super(t),this.categories=null,this.disableExtraQuery=!1,this.extent=null,this.filter=null,this.num=10,this.query=null,this.sortField=null,this.start=1}get sortOrder(){return this._get("sortOrder")||"asc"}set sortOrder(t){"asc"!==t&&"desc"!==t||this._set("sortOrder",t)}clone(){return new s({categories:this.categories?(0,a.o8)(this.categories):null,disableExtraQuery:this.disableExtraQuery,extent:this.extent?this.extent.clone():null,filter:this.filter,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})}toRequestOptions(t,e){let r=[];this.categories&&(r=this.categories.map(t=>Array.isArray(t)?JSON.stringify(t):t));let s="";if(this.extent){const t=(0,h.Cv)(this.extent,d.A.WGS84);null!=t&&(s=`${t.xmin},${t.ymin},${t.xmax},${t.ymax}`)}let o=this.query;!this.disableExtraQuery&&t.extraQuery&&(o="("+o+")"+t.extraQuery);const i={categories:r,bbox:s,q:o,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};return this.sortField&&(i.sortField=this.sortField.split(",").map(t=>y.toJSON(t.trim())).join(","),i.sortOrder=this.sortOrder),{query:{...e,...i}}}};(0,o.Cg)([(0,n.MZ)()],c.prototype,"categories",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"disableExtraQuery",void 0),(0,o.Cg)([(0,n.MZ)({type:p.A})],c.prototype,"extent",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"filter",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"num",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"query",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"sortField",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"sortOrder",null),(0,o.Cg)([(0,n.MZ)()],c.prototype,"start",void 0),c=s=(0,o.Cg)([(0,u.$)("esri.portal.PortalQueryParams")],c)},20655:(t,e,r)=>{r.d(e,{A:()=>G});var s=r(31635),o=r(92602),i=r(70333),l=r(78888),a=r(49186),n=r(44208),u=r(25482),p=r(92474),d=r(97768),h=r(74887),y=r(10107),c=r(56507),m=(r(87811),r(36005)),g=r(64108),C=r(5443),v=r(73444);let f;var M=r(96360),Z=r(16405),S=r(69622);r(53966);let P=class extends S.A{constructor(t){super(t),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};(0,s.Cg)([(0,y.MZ)()],P.prototype,"nextQueryParams",void 0),(0,s.Cg)([(0,y.MZ)()],P.prototype,"queryParams",void 0),(0,s.Cg)([(0,y.MZ)()],P.prototype,"results",void 0),(0,s.Cg)([(0,y.MZ)()],P.prototype,"total",void 0),P=(0,s.Cg)([(0,g.$)("esri.portal.PortalQueryResult")],P);var _,O=r(41318),w=r(926);let b;const A={PortalGroup:()=>Promise.resolve({default:M.A}),PortalItem:()=>r.e(812).then(r.bind(r,80812)),PortalUser:()=>Promise.resolve({default:O.A})};let G=class extends((0,u.T)(p.x_)){static{_=this}static{this.AUTH_MODE_ANONYMOUS="anonymous"}static{this.AUTH_MODE_AUTO="auto"}static{this.AUTH_MODE_IMMEDIATE="immediate"}static{this.AUTH_MODE_NO_PROMPT="no-prompt"}constructor(t){super(t),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.basemapGalleryGroupQuery3D=null,this.g3DTilesGalleryGroupQuery=null,this.g3dTilesEnabled=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.default3DBasemapQuery=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.layoutGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.hasClassificationSchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.recycleBinEnabled=!1,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=o.A.portalUrl,this.urlKey=null,this.user=null,this.use3dBasemaps=!0,this.useDefault3dBasemap=!1,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}normalizeCtorArgs(t){return"string"==typeof t?{url:t}:t}destroy(){q.unregister(this),this.defaultBasemap=(0,d.pR)(this.defaultBasemap),this.defaultDevBasemap=(0,d.pR)(this.defaultDevBasemap),this.defaultVectorBasemap=(0,d.pR)(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=(0,d.xt)(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(t){if(t)for(const e of t)o.A.request.trustedServers.includes(e)||o.A.request.trustedServers.push(e);return t}readDefaultBasemap(t){return this._readBasemap(t)}readDefaultDevBasemap(t){return this._readBasemap(t)}readDefaultVectorBasemap(t){return this._readBasemap(t)}get extraQuery(){const t=this.user?.orgId,e=!t||this.canSearchPublic;return this.id&&!e?` AND orgid:${this.id}`:null}get hasAPIKey(){return(0,w.Jn)(this.restUrl)}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get loaded(){return super.loaded}get restUrl(){let t=this.url;if(t){const e=t.indexOf("/sharing");t=e>0?t.slice(0,e):this.url.replace(/\/+$/,""),t+="/sharing/rest"}return t}get thumbnailUrl(){const t=this.restUrl,e=this.thumbnail;return t&&e?this._normalizeSSL(t+"/portals/self/resources/"+e):null}readUrlKey(t){return t?t.toLowerCase():t}readUser(t){let e=null;return t&&(e=O.A.fromJSON(t),e.portal=this),e}load(t){const e=Promise.all([r.e(812),r.e(3116)]).then(r.bind(r,83116)).then(({default:e})=>{(0,h.Te)(t),b=e}).then(()=>this.sourceJSON?this.sourceJSON:this.fetchSelf(this.authMode,!1,t)).then(t=>{if(!this.hasAPIKey&&i.id){const t=i.id;this.credential=t.findCredential(this.restUrl),this.credential||this.authMode!==_.AUTH_MODE_AUTO&&this.authMode!==_.AUTH_MODE_NO_PROMPT||(this._esriIdCredentialCreateHandle?.remove(),this._esriIdCredentialCreateHandle=t.on("credential-create",function(t){const e=i.id;return()=>{const r=t.deref();r&&e.findCredential(r.restUrl)&&r.signIn().catch(()=>{})}}(new WeakRef(this))),q.register(this,this._esriIdCredentialCreateHandle,this))}this.sourceJSON=t,this.read(t)});return this.addResolvingPromise(e),Promise.resolve(this)}async createElevationLayers(){await this.load();const t=this._getHelperService("defaultElevationLayers"),e=(await Promise.all([r.e(4045),r.e(9953),r.e(812),r.e(4802),r.e(588)]).then(r.bind(r,68611))).default;return t?t.map(t=>new e({id:t.id,url:t.url})):[]}async fetchBasemaps(t,e){const r=await this._fetchBasemaps(t,e);if(!0===e?.include3d&&!1!==this.use3dBasemaps){if(this.g3dTilesEnabled&&this.g3DTilesGalleryGroupQuery&&(0,n.A)("enable-feature:basemap-groundlayers")){const t=await this._fetchBasemaps3D(this.g3DTilesGalleryGroupQuery,e);r.unshift(...t)}const s=await this._fetchBasemaps3D(t,e);r.unshift(...s)}return r}async fetchDefault3DBasemap(t){if(!this.useDefault3dBasemap||!this.default3DBasemapQuery||"none"===this.default3DBasemapQuery)return null;const e=new Z.A;e.query=this.default3DBasemapQuery,e.disableExtraQuery=!0;const r=(await this.queryItems(e,t)).results.find(t=>"Web Scene"===t.type);return r?new b({portalItem:r}):null}fetchCategorySchema(t){return this.hasCategorySchema?this.request(this.restUrl+"/portals/self/categorySchema",t).then(t=>t.categorySchema):(0,h.G4)(t)?Promise.reject((0,h.NK)()):Promise.resolve([])}async fetchClassificationSchema(t){return this.hasClassificationSchema?this.request(this.restUrl+"/portals/self/classification/classificationSchema",t).then(t=>t.classificationSchema):null}fetchFeaturedGroups(t){const e=this.featuredGroups,r=new Z.A({num:100,sortField:"title"});if(e?.length){const s=[];for(const t of e)s.push(`(title:"${t.title}" AND owner:${t.owner})`);return r.query=s.join(" OR "),this.queryGroups(r,t).then(t=>t.results)}return(0,h.G4)(t)?Promise.reject((0,h.NK)()):Promise.resolve([])}fetchRegions(t){const e=this.user?.culture||this.culture||(0,v.JK)();return this.request(this.restUrl+"/portals/regions",{...t,query:{culture:e}})}fetchSettings(t){const e=this.user?.culture||this.culture||(0,v.JK)();return this.request(this.restUrl+"/portals/self/settings",{...t,query:{culture:e}})}static getDefault(){return f&&!f.destroyed||(f=new _),f}queryGroups(t,e){return this.queryPortal("/community/groups",t,"PortalGroup",e)}queryItems(t,e){return this.queryPortal("/search",t,"PortalItem",e)}queryUsers(t,e){return t.sortField||(t.sortField="username"),this.queryPortal("/community/users",t,"PortalUser",e)}fetchSelf(t=this.authMode,e=!1,r){const s=this.restUrl+"/portals/self",o={authMode:t,query:{culture:(0,v.JK)().toLowerCase()},withCredentials:!0,...r};return"auto"===o.authMode&&(o.authMode="no-prompt"),e&&(o.query.default=!0),this.request(s,o)}queryPortal(t,e,r,s){const o=(0,c.dp)(Z.A,e),i=e=>this.request(this.restUrl+t,{...o.toRequestOptions(this),...s}).then(t=>{const r=o.clone();return r.start=t.nextStart,new P({nextQueryParams:r,queryParams:o,total:t.total,results:_._resultsToTypedArray(e,{portal:this},t,s)})}).then(t=>Promise.all(t.results.map(e=>"function"==typeof e.when?e.when():t)).then(()=>t,e=>((0,h.QP)(e),t)));return r&&A[r]?A[r]().then(({default:t})=>((0,h.Te)(s),i(t))):i()}signIn(){if(this.hasAPIKey)return this.load().then(()=>{if(!this.user)throw new a.A("portal:not-authenticated","Unable to authenticate user. Portal.user is missing")});if(this.authMode===_.AUTH_MODE_ANONYMOUS||this.authMode===_.AUTH_MODE_NO_PROMPT&&!i.id)return Promise.reject(new a.A("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);const t=t=>Promise.resolve().then(()=>"not-loaded"===this.loadStatus?(t||(this.authMode="immediate"),this.load().then(()=>null)):"loading"===this.loadStatus?this.load().then(()=>this.credential?null:(this.credential=t,this.fetchSelf("immediate"))):this.user&&this.credential===t?null:(this.credential=t,this.fetchSelf("immediate"))).then(t=>{t&&(this.sourceJSON=t,this.read(t))});return i.id?i.id.getCredential(this.restUrl,{prompt:this.authMode!==_.AUTH_MODE_NO_PROMPT}).then(e=>t(e)):t(this.credential)}normalizeUrl(t){const e=this.credential?.token;return this._normalizeSSL(e?t+(t.includes("?")?"&":"?")+"token="+e:t)}requestToTypedArray(t,e,r){return this.request(t,e).then(t=>{const e=_._resultsToTypedArray(r,{portal:this},t);return Promise.all(e.map(e=>"function"==typeof e.when?e.when():t)).then(()=>e,()=>e)})}request(t,e={}){const r={f:"json",...e.query},{authMode:s=(this.authMode===_.AUTH_MODE_ANONYMOUS||this.authMode===_.AUTH_MODE_NO_PROMPT?this.authMode:"auto"),body:o=null,cacheBust:i=!1,method:a="auto",responseType:n="json",signal:u}=e,p={authMode:s,body:o,cacheBust:i,method:a,query:r,responseType:n,timeout:0,signal:u};return e.withCredentials&&(p.withCredentials=!0),(0,l.A)(this._normalizeSSL(t),p).then(t=>t.data)}toJSON(){throw new a.A("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");return new _({sourceJSON:t})}_getHelperService(t){const e=this.helperServices?.[t];if(!e)throw new a.A("portal:service-not-found",`The \`helperServices\` do not include an entry named "${t}"`);return e}async _fetchBasemaps(t,e){const r=new Z.A;r.query=t||((0,w.Dd)()?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0;const s=await this.queryGroups(r,e);if(!s.total)return[];const o=s.results[0];r.num=100,r.query='type:"Web Map" -type:"Web Application"',r.sortField=o.sortField||"name",r.sortOrder=o.sortOrder||"desc";const i=await o.queryItems(r,e);return i.total?i.results.filter(t=>"Web Map"===t.type).map(t=>new b({portalItem:t})):[]}async _fetchBasemaps3D(t,e){const r=t||this.basemapGalleryGroupQuery3D;if(!r)return[];if((0,w.Dd)())return[];const s=new Z.A({query:r,disableExtraQuery:!0}),o=await this.queryGroups(s,e);if(!o.total)return[];const i=o.results[0];s.num=100,s.query='type:"Web Scene"',s.sortField=i.sortField||"name",s.sortOrder=i.sortOrder||"desc";const l=await i.queryItems(s,e);return l.total?l.results.filter(t=>"Web Scene"===t.type).map(t=>new b({portalItem:t})):[]}_normalizeSSL(t){return t.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(t){if(t){const e=b.fromJSON(t);return e.portalItem={portal:this},e}return null}static _resultsToTypedArray(t,e,r,s){let o;if(r){const i=null!=s?s.signal:null;o=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(t||e)&&(o=o.map(r=>{const s=Object.assign(t?t.fromJSON(r):r,e);return"function"==typeof s.load&&s.load(i),s}))}else o=[];return o}};(0,s.Cg)([(0,y.MZ)()],G.prototype,"access",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"allSSL",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"authMode",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"authorizedCrossOriginDomains",void 0),(0,s.Cg)([(0,m.w)("authorizedCrossOriginDomains")],G.prototype,"readAuthorizedCrossOriginDomains",null),(0,s.Cg)([(0,y.MZ)()],G.prototype,"basemapGalleryGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)({json:{name:"3DBasemapGalleryGroupQuery"}})],G.prototype,"basemapGalleryGroupQuery3D",void 0),(0,s.Cg)([(0,y.MZ)({json:{name:"g3DTilesGalleryGroupQuery"}})],G.prototype,"g3DTilesGalleryGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)({json:{name:"g3dTilesEnabled"}})],G.prototype,"g3dTilesEnabled",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"bingKey",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"canListApps",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"canListData",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"canListPreProvisionedItems",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"canProvisionDirectPurchase",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"canSearchPublic",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"canShareBingPublic",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"canSharePublic",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"canSignInArcGIS",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"canSignInIDP",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"colorSetsGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"commentsEnabled",void 0),(0,s.Cg)([(0,y.MZ)({type:Date})],G.prototype,"created",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"credential",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"culture",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"currentVersion",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"customBaseUrl",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"default3DBasemapQuery",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"defaultBasemap",void 0),(0,s.Cg)([(0,m.w)("defaultBasemap")],G.prototype,"readDefaultBasemap",null),(0,s.Cg)([(0,y.MZ)()],G.prototype,"defaultDevBasemap",void 0),(0,s.Cg)([(0,m.w)("defaultDevBasemap")],G.prototype,"readDefaultDevBasemap",null),(0,s.Cg)([(0,y.MZ)({type:C.A})],G.prototype,"defaultExtent",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"defaultVectorBasemap",void 0),(0,s.Cg)([(0,m.w)("defaultVectorBasemap")],G.prototype,"readDefaultVectorBasemap",null),(0,s.Cg)([(0,y.MZ)()],G.prototype,"description",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"devBasemapGalleryGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"eueiEnabled",void 0),(0,s.Cg)([(0,y.MZ)({readOnly:!0})],G.prototype,"extraQuery",null),(0,s.Cg)([(0,y.MZ)()],G.prototype,"featuredGroups",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"featuredItemsGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"galleryTemplatesGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"layoutGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"livingAtlasGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)({readOnly:!0})],G.prototype,"hasAPIKey",null),(0,s.Cg)([(0,y.MZ)()],G.prototype,"hasCategorySchema",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"hasClassificationSchema",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"helpBase",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"helperServices",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"helpMap",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"homePageFeaturedContent",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"homePageFeaturedContentCount",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"httpPort",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"httpsPort",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"id",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"ipCntryCode",void 0),(0,s.Cg)([(0,y.MZ)({readOnly:!0})],G.prototype,"isOrganization",null),(0,s.Cg)([(0,y.MZ)()],G.prototype,"isPortal",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"isReadOnly",void 0),(0,s.Cg)([(0,y.MZ)({readOnly:!0})],G.prototype,"itemPageUrl",null),(0,s.Cg)([(0,y.MZ)()],G.prototype,"layerTemplatesGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"maxTokenExpirationMinutes",void 0),(0,s.Cg)([(0,y.MZ)({type:Date})],G.prototype,"modified",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"name",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"portalHostname",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"portalMode",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"portalProperties",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"region",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"recycleBinEnabled",void 0),(0,s.Cg)([(0,y.MZ)({readOnly:!0})],G.prototype,"restUrl",null),(0,s.Cg)([(0,y.MZ)()],G.prototype,"rotatorPanels",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"showHomePageDescription",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"staticImagesUrl",void 0),(0,s.Cg)([(0,y.MZ)({json:{name:"2DStylesGroupQuery"}})],G.prototype,"stylesGroupQuery2d",void 0),(0,s.Cg)([(0,y.MZ)({json:{name:"stylesGroupQuery"}})],G.prototype,"stylesGroupQuery3d",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"supportsHostedServices",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"symbolSetsGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"templatesGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"thumbnail",void 0),(0,s.Cg)([(0,y.MZ)({readOnly:!0})],G.prototype,"thumbnailUrl",null),(0,s.Cg)([(0,y.MZ)()],G.prototype,"units",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"url",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"urlKey",void 0),(0,s.Cg)([(0,m.w)("urlKey")],G.prototype,"readUrlKey",null),(0,s.Cg)([(0,y.MZ)()],G.prototype,"user",void 0),(0,s.Cg)([(0,m.w)("user")],G.prototype,"readUser",null),(0,s.Cg)([(0,y.MZ)()],G.prototype,"use3dBasemaps",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"useDefault3dBasemap",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"useStandardizedQuery",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"useVectorBasemaps",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"vectorBasemapGalleryGroupQuery",void 0),G=_=(0,s.Cg)([(0,g.$)("esri.portal.Portal")],G);const q=new FinalizationRegistry(t=>{t.remove()})},41318:(t,e,r)=>{r.d(e,{A:()=>d});var s=r(31635),o=r(49186),i=r(25482),l=r(10107),a=(r(44208),r(53966),r(87811),r(64108));let n=class extends i.o{constructor(t){super(t),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){const t=this.portal?.restUrl;return t?`${t}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new o.A("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};(0,s.Cg)([(0,l.MZ)({type:Date})],n.prototype,"created",void 0),(0,s.Cg)([(0,l.MZ)()],n.prototype,"id",void 0),(0,s.Cg)([(0,l.MZ)()],n.prototype,"portal",void 0),(0,s.Cg)([(0,l.MZ)()],n.prototype,"title",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],n.prototype,"url",null),(0,s.Cg)([(0,l.MZ)()],n.prototype,"username",void 0),n=(0,s.Cg)([(0,a.$)("esri.portal.PortalFolder")],n);var u,p=r(96360);let d=u=class extends i.o{constructor(t){super(t),this.access=null,this.created=null,this.culture=null,this.description=null,this.email=null,this.fullName=null,this.id=null,this.modified=null,this.orgId=null,this.portal=null,this.preferredView=null,this.privileges=null,this.region=null,this.role=null,this.roleId=null,this.sourceJSON=null,this.units=null,this.username=null,this.userLicenseTypeId=null,this.userType=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e?this.portal.normalizeUrl(`${t}/info/${e}?f=json`):null}get userContentUrl(){const t=this.portal?.restUrl;return t?`${t}/content/users/${this.id}`:null}get url(){const t=this.portal?.restUrl;return t?`${t}/community/users/${this.id}`:null}addItem(t){const e=t&&t.item,r=t?.data,s=t?.folder,o={method:"post"};e&&(o.query=e.createPostQuery(),null!=r&&("string"==typeof r?o.query.text=r:"object"==typeof r&&(o.query.text=JSON.stringify(r))));let i=this.userContentUrl;return s&&(i+="/"+("string"==typeof s?s:s.id)),this.portal.request(i+"/addItem",o).then(t=>(e.id=t.id,e.portal=this.portal,e.loaded?e.reload():e.load()))}async deleteItem(t,e=!1){let r=this.userContentUrl;t.ownerFolder&&(r+="/"+t.ownerFolder);const s=e?{permanentDelete:!0}:{};await this.portal.request(r+`/items/${t.id}/delete`,{method:"post",query:s}),t.id=null,t.portal=null}async deleteItems(t,e=!1){t=t.slice();const r=this.userContentUrl+"/deleteItems",s=[],i=t.map(t=>t.id);if(i.length){const l={method:"post",query:{items:i.join(","),permanentDelete:e}},a=await this.portal.request(r,l);for(const e of a.results){const r=t.find(t=>e.itemId===t.id),i=e.success;let l=null;i?(r.id=null,r.portal=null):e.error&&(l=new o.A("portal:delete-item-failed",e.error.message,e.error)),s.push({item:r,success:i,error:l})}}return s}fetchFolders(){return this.portal.request(this.userContentUrl??"",{query:{num:1}}).then(t=>{let e;return e=t&&t.folders?t.folders.map(t=>{const e=n.fromJSON(t);return e.portal=this.portal,e}):[],e})}fetchGroups(){return this.portal.request(this.url??"").then(t=>{let e;return e=t&&t.groups?t.groups.map(t=>{const e=p.A.fromJSON(t);return e.portal=this.portal,e}):[],e})}async fetchItems(t){t??={};let e=this.userContentUrl??"";t.folder&&(e+="/"+t.folder.id);const{default:s}=await r.e(812).then(r.bind(r,80812)),o={folders:!1,inRecycleBin:!!t.inRecycleBin||null,foldersContent:!(t.folder||!t.includeSubfolderItems)||null,num:t.num||10,start:t.start||1,sortField:t.sortField||"created",sortOrder:t.sortOrder||"asc"},i=await this.portal.request(e,{query:o});let l;return i?.items?(l=i.items.map(t=>{const e=s.fromJSON(t);return e.portal=this.portal,e}),await Promise.all(l.map(t=>t.load())),{items:l,nextStart:i.nextStart,total:i.total}):{items:[],nextStart:-1,total:0}}fetchTags(){return this.portal.request(this.url+"/tags").then(t=>t.tags)}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}queryFavorites(t){return this.favGroupId?(this._favGroup||(this._favGroup=new p.A({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(t)):Promise.reject(new o.A("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}async restoreItem(t,e){const r=this.userContentUrl,s=e?{folderID:"string"==typeof e?e:e.id}:null;await this.portal.request(r+`/items/${t.id}/restore`,{method:"post",query:s})}toJSON(){throw new o.A("internal:not-yet-implemented","PortalUser.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const e=new u({sourceJSON:t});return e.read(t),e}};(0,s.Cg)([(0,l.MZ)()],d.prototype,"access",void 0),(0,s.Cg)([(0,l.MZ)({type:Date})],d.prototype,"created",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"culture",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"description",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"email",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"favGroupId",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"fullName",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"id",void 0),(0,s.Cg)([(0,l.MZ)({type:Date})],d.prototype,"modified",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"orgId",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"portal",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"preferredView",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"privileges",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"region",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"role",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"roleId",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"thumbnail",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],d.prototype,"thumbnailUrl",null),(0,s.Cg)([(0,l.MZ)()],d.prototype,"units",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],d.prototype,"userContentUrl",null),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],d.prototype,"url",null),(0,s.Cg)([(0,l.MZ)()],d.prototype,"username",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"userLicenseTypeId",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"userType",void 0),d=u=(0,s.Cg)([(0,a.$)("esri.portal.PortalUser")],d)},61893:(t,e,r)=>{r.d(e,{Z:()=>p,g:()=>u});var s=r(31635),o=r(69622),i=r(36563),l=r(74887),a=r(64108);class n{constructor(){this._resolver=(0,l.Tw)(),this._status=0,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=1,this._cleanUp()},()=>{this._status=2,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(t){this._resolvingPromises.push(t),this._tryResolve()}isResolved(){return 1===this._status}isRejected(){return 2===this._status}isFulfilled(){return 0!==this._status}abort(){this._resolver.reject((0,l.NK)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;const t=(0,l.Tw)(),e=[...this._resolvingPromises,t.promise],r=this._allPromise=Promise.all(e);r.then(()=>{this.isFulfilled()||this._allPromise!==r||this._resolver.resolve()},t=>{this.isFulfilled()||this._allPromise!==r||(0,l.zf)(t)||this._resolver.reject(t)}),t.resolve()}}const u=t=>{const e=t;let r=class extends e{constructor(...t){super(...t),this._promiseProps=new n,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(t,e){return this._promiseProps.promise.then(()=>this).then(t,e)}catch(t){return this.when(null,t)}addResolvingPromise(t){t&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in t?t.when():t)}addResolvingTask(t){t&&!this._promiseProps.isFulfilled()&&(this.addHandles((0,i.rE)(t)),this._promiseProps.addResolvingPromise(t.promise))}};return r=(0,s.Cg)([(0,a.$)("esri.core.Promise")],r),r},p=u(o.A)},92474:(t,e,r)=>{r.d(e,{WV:()=>h,Zm:()=>c,x_:()=>y});var s=r(31635),o=r(49186),i=r(97768),l=r(61893),a=r(74887),n=r(67076),u=r(10107),p=r(64108);const d="loaded",h=t=>{const e=t;let r=class extends e{constructor(...t){super(...t),this._loadController=null,this.loadError=null,this.loadStatus="not-loaded",this._set("loadWarnings",[]),this.addResolvingPromise(new Promise(t=>{const e=this.load.bind(this);this.load=r=>{const s=new Promise((t,e)=>{const s=(0,a.NY)(r,e);this.destroyed&&e(new o.A("load:instance-destroyed",`Instance of '${this.declaredClass||this.constructor.name}' is already destroyed`,{instance:this})),this.when(t,e).finally(()=>{s&&s.remove()})});if("not-loaded"===this.loadStatus){this._set("loadStatus","loading");const t=this._loadController=new AbortController;e({signal:t.signal})}return t(),s}})),this.when(()=>{this._set("loadStatus",d),this._loadController=null},t=>{this.destroyed||(this._set("loadStatus","failed"),this._set("loadError",t),this._loadController=null)})}destroy(){this._loadController&&(this._loadController=(0,i.DC)(this._loadController),this._promiseProps.abort()),this._set("loadError",null),this._set("loadWarnings",[])}get loaded(){return this.loadStatus===d}get loadWarnings(){return this._get("loadWarnings")}load(t){return null}cancelLoad(){return this.isFulfilled()||(this._set("loadError",new o.A("load:cancelled","Cancelled")),this._loadController?.abort(),this._promiseProps.abort()),this}};return(0,s.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loaded",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loadError",void 0),(0,s.Cg)([(0,u.MZ)({clonable:!1})],r.prototype,"loadStatus",void 0),(0,s.Cg)([(0,u.MZ)({type:[n.A],readOnly:!0})],r.prototype,"loadWarnings",null),r=(0,s.Cg)([(0,p.$)("esri.core.Loadable")],r),r},y=h(l.Z);function c(t){return!(!t||!t.load)}},96360:(t,e,r)=>{r.d(e,{A:()=>d});var s,o=r(31635),i=r(49186),l=r(25482),a=r(10107),n=r(56507),u=(r(44208),r(87811),r(64108)),p=r(16405);let d=s=class extends l.o{constructor(t){super(t),this.access=null,this.created=null,this.description=null,this.id=null,this.isInvitationOnly=!1,this.modified=null,this.owner=null,this.portal=null,this.snippet=null,this.sortField=null,this.sortOrder=null,this.sourceJSON=null,this.tags=null,this.title=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e&&this.portal?this.portal?.normalizeUrl(`${t}/info/${e}?f=json`):null}get url(){const t=this.portal?.restUrl;return t?t+"/community/groups/"+this.id:null}fetchCategorySchema(t){return this.portal.request(this.url+"/categorySchema",t).then(e=>{const r=e.categorySchema||[];return r.some(t=>"contentCategorySetsGroupQuery.LivingAtlas"===t.source)?this._fetchCategorySchemaSet("LivingAtlas",t):r})}fetchMembers(t){return this.portal.request(this.url+"/users",t)}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}toJSON(){throw new i.A("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const e=new s({sourceJSON:t});return e.read(t),e}queryItems(t,e){let r=(0,n.dp)(p.A,t);const s=this.portal;return parseFloat(s.currentVersion)>5?(r=r||new p.A,s.queryPortal(`/content/groups/${this.id}/search`,r,"PortalItem",e)):(r=r?r.clone():new p.A,r.query="group:"+this.id+(r.query?" "+r.query:""),s.queryItems(r,e))}_fetchCategorySchemaSet(t,e){const r=this.portal;return r.fetchSelf(r.authMode,!0,e).then(t=>{const s=t.contentCategorySetsGroupQuery;if(s){const t=new p.A({disableExtraQuery:!0,num:1,query:s});return r.queryGroups(t,e)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")}).then(r=>{if(r.total){const s=r.results[0],o=new p.A({num:1,query:`typekeywords:"${t}"`});return s.queryItems(o,e)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found")}).then(t=>t.total?t.results[0].fetchData("json",e).then(t=>{const e=t?.categorySchema;return e?.length?e:[]}):[])}};(0,o.Cg)([(0,a.MZ)()],d.prototype,"access",void 0),(0,o.Cg)([(0,a.MZ)({type:Date})],d.prototype,"created",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"description",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"id",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"isInvitationOnly",void 0),(0,o.Cg)([(0,a.MZ)({type:Date})],d.prototype,"modified",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"owner",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"portal",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"snippet",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"sortField",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"sortOrder",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"sourceJSON",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"tags",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"thumbnail",void 0),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],d.prototype,"thumbnailUrl",null),(0,o.Cg)([(0,a.MZ)()],d.prototype,"title",void 0),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],d.prototype,"url",null),d=s=(0,o.Cg)([(0,u.$)("esri.portal.PortalGroup")],d)}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[655],{16405:(t,e,r)=>{r.d(e,{A:()=>c});var s,o=r(31635),i=r(69622),l=r(66552),a=r(4718),n=r(10107),u=(r(44208),r(53966),r(64108)),p=r(5443),d=r(16930),h=r(28735);const y=new l.J({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});let c=s=class extends i.A{constructor(t){super(t),this.categories=null,this.disableExtraQuery=!1,this.extent=null,this.filter=null,this.num=10,this.query=null,this.sortField=null,this.start=1}get sortOrder(){return this._get("sortOrder")||"asc"}set sortOrder(t){"asc"!==t&&"desc"!==t||this._set("sortOrder",t)}clone(){return new s({categories:this.categories?(0,a.o8)(this.categories):null,disableExtraQuery:this.disableExtraQuery,extent:this.extent?this.extent.clone():null,filter:this.filter,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})}toRequestOptions(t,e){let r=[];this.categories&&(r=this.categories.map(t=>Array.isArray(t)?JSON.stringify(t):t));let s="";if(this.extent){const t=(0,h.Cv)(this.extent,d.A.WGS84);null!=t&&(s=`${t.xmin},${t.ymin},${t.xmax},${t.ymax}`)}let o=this.query;!this.disableExtraQuery&&t.extraQuery&&(o="("+o+")"+t.extraQuery);const i={categories:r,bbox:s,q:o,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};return this.sortField&&(i.sortField=this.sortField.split(",").map(t=>y.toJSON(t.trim())).join(","),i.sortOrder=this.sortOrder),{query:{...e,...i}}}};(0,o.Cg)([(0,n.MZ)()],c.prototype,"categories",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"disableExtraQuery",void 0),(0,o.Cg)([(0,n.MZ)({type:p.A})],c.prototype,"extent",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"filter",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"num",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"query",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"sortField",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"sortOrder",null),(0,o.Cg)([(0,n.MZ)()],c.prototype,"start",void 0),c=s=(0,o.Cg)([(0,u.$)("esri.portal.PortalQueryParams")],c)},20655:(t,e,r)=>{r.d(e,{A:()=>G});var s=r(31635),o=r(92602),i=r(70333),l=r(78888),a=r(49186),n=r(44208),u=r(25482),p=r(92474),d=r(97768),h=r(74887),y=r(10107),c=r(56507),m=(r(87811),r(36005)),g=r(64108),C=r(5443),v=r(73444);let f;var M=r(96360),Z=r(16405),S=r(69622);r(53966);let P=class extends S.A{constructor(t){super(t),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};(0,s.Cg)([(0,y.MZ)()],P.prototype,"nextQueryParams",void 0),(0,s.Cg)([(0,y.MZ)()],P.prototype,"queryParams",void 0),(0,s.Cg)([(0,y.MZ)()],P.prototype,"results",void 0),(0,s.Cg)([(0,y.MZ)()],P.prototype,"total",void 0),P=(0,s.Cg)([(0,g.$)("esri.portal.PortalQueryResult")],P);var _,O=r(41318),w=r(926);let b;const A={PortalGroup:()=>Promise.resolve({default:M.A}),PortalItem:()=>r.e(812).then(r.bind(r,80812)),PortalUser:()=>Promise.resolve({default:O.A})};let G=class extends((0,u.T)(p.x_)){static{_=this}static{this.AUTH_MODE_ANONYMOUS="anonymous"}static{this.AUTH_MODE_AUTO="auto"}static{this.AUTH_MODE_IMMEDIATE="immediate"}static{this.AUTH_MODE_NO_PROMPT="no-prompt"}constructor(t){super(t),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.basemapGalleryGroupQuery3D=null,this.g3DTilesGalleryGroupQuery=null,this.g3dTilesEnabled=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.default3DBasemapQuery=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.layoutGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.hasClassificationSchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.recycleBinEnabled=!1,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=o.A.portalUrl,this.urlKey=null,this.user=null,this.use3dBasemaps=!0,this.useDefault3dBasemap=!1,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}normalizeCtorArgs(t){return"string"==typeof t?{url:t}:t}destroy(){q.unregister(this),this.defaultBasemap=(0,d.pR)(this.defaultBasemap),this.defaultDevBasemap=(0,d.pR)(this.defaultDevBasemap),this.defaultVectorBasemap=(0,d.pR)(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=(0,d.xt)(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(t){if(t)for(const e of t)o.A.request.trustedServers.includes(e)||o.A.request.trustedServers.push(e);return t}readDefaultBasemap(t){return this._readBasemap(t)}readDefaultDevBasemap(t){return this._readBasemap(t)}readDefaultVectorBasemap(t){return this._readBasemap(t)}get extraQuery(){const t=this.user?.orgId,e=!t||this.canSearchPublic;return this.id&&!e?` AND orgid:${this.id}`:null}get hasAPIKey(){return(0,w.Jn)(this.restUrl)}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get loaded(){return super.loaded}get restUrl(){let t=this.url;if(t){const e=t.indexOf("/sharing");t=e>0?t.slice(0,e):this.url.replace(/\/+$/,""),t+="/sharing/rest"}return t}get thumbnailUrl(){const t=this.restUrl,e=this.thumbnail;return t&&e?this._normalizeSSL(t+"/portals/self/resources/"+e):null}readUrlKey(t){return t?t.toLowerCase():t}readUser(t){let e=null;return t&&(e=O.A.fromJSON(t),e.portal=this),e}load(t){const e=Promise.all([r.e(812),r.e(3116)]).then(r.bind(r,83116)).then(({default:e})=>{(0,h.Te)(t),b=e}).then(()=>this.sourceJSON?this.sourceJSON:this.fetchSelf(this.authMode,!1,t)).then(t=>{if(!this.hasAPIKey&&i.id){const t=i.id;this.credential=t.findCredential(this.restUrl),this.credential||this.authMode!==_.AUTH_MODE_AUTO&&this.authMode!==_.AUTH_MODE_NO_PROMPT||(this._esriIdCredentialCreateHandle?.remove(),this._esriIdCredentialCreateHandle=t.on("credential-create",function(t){const e=i.id;return()=>{const r=t.deref();r&&e.findCredential(r.restUrl)&&r.signIn().catch(()=>{})}}(new WeakRef(this))),q.register(this,this._esriIdCredentialCreateHandle,this))}this.sourceJSON=t,this.read(t)});return this.addResolvingPromise(e),Promise.resolve(this)}async createElevationLayers(){await this.load();const t=this._getHelperService("defaultElevationLayers"),e=(await Promise.all([r.e(3508),r.e(9953),r.e(812),r.e(4802),r.e(588)]).then(r.bind(r,68611))).default;return t?t.map(t=>new e({id:t.id,url:t.url})):[]}async fetchBasemaps(t,e){const r=await this._fetchBasemaps(t,e);if(!0===e?.include3d&&!1!==this.use3dBasemaps){if(this.g3dTilesEnabled&&this.g3DTilesGalleryGroupQuery&&(0,n.A)("enable-feature:basemap-groundlayers")){const t=await this._fetchBasemaps3D(this.g3DTilesGalleryGroupQuery,e);r.unshift(...t)}const s=await this._fetchBasemaps3D(t,e);r.unshift(...s)}return r}async fetchDefault3DBasemap(t){if(!this.useDefault3dBasemap||!this.default3DBasemapQuery||"none"===this.default3DBasemapQuery)return null;const e=new Z.A;e.query=this.default3DBasemapQuery,e.disableExtraQuery=!0;const r=(await this.queryItems(e,t)).results.find(t=>"Web Scene"===t.type);return r?new b({portalItem:r}):null}fetchCategorySchema(t){return this.hasCategorySchema?this.request(this.restUrl+"/portals/self/categorySchema",t).then(t=>t.categorySchema):(0,h.G4)(t)?Promise.reject((0,h.NK)()):Promise.resolve([])}async fetchClassificationSchema(t){return this.hasClassificationSchema?this.request(this.restUrl+"/portals/self/classification/classificationSchema",t).then(t=>t.classificationSchema):null}fetchFeaturedGroups(t){const e=this.featuredGroups,r=new Z.A({num:100,sortField:"title"});if(e?.length){const s=[];for(const t of e)s.push(`(title:"${t.title}" AND owner:${t.owner})`);return r.query=s.join(" OR "),this.queryGroups(r,t).then(t=>t.results)}return(0,h.G4)(t)?Promise.reject((0,h.NK)()):Promise.resolve([])}fetchRegions(t){const e=this.user?.culture||this.culture||(0,v.JK)();return this.request(this.restUrl+"/portals/regions",{...t,query:{culture:e}})}fetchSettings(t){const e=this.user?.culture||this.culture||(0,v.JK)();return this.request(this.restUrl+"/portals/self/settings",{...t,query:{culture:e}})}static getDefault(){return f&&!f.destroyed||(f=new _),f}queryGroups(t,e){return this.queryPortal("/community/groups",t,"PortalGroup",e)}queryItems(t,e){return this.queryPortal("/search",t,"PortalItem",e)}queryUsers(t,e){return t.sortField||(t.sortField="username"),this.queryPortal("/community/users",t,"PortalUser",e)}fetchSelf(t=this.authMode,e=!1,r){const s=this.restUrl+"/portals/self",o={authMode:t,query:{culture:(0,v.JK)().toLowerCase()},withCredentials:!0,...r};return"auto"===o.authMode&&(o.authMode="no-prompt"),e&&(o.query.default=!0),this.request(s,o)}queryPortal(t,e,r,s){const o=(0,c.dp)(Z.A,e),i=e=>this.request(this.restUrl+t,{...o.toRequestOptions(this),...s}).then(t=>{const r=o.clone();return r.start=t.nextStart,new P({nextQueryParams:r,queryParams:o,total:t.total,results:_._resultsToTypedArray(e,{portal:this},t,s)})}).then(t=>Promise.all(t.results.map(e=>"function"==typeof e.when?e.when():t)).then(()=>t,e=>((0,h.QP)(e),t)));return r&&A[r]?A[r]().then(({default:t})=>((0,h.Te)(s),i(t))):i()}signIn(){if(this.hasAPIKey)return this.load().then(()=>{if(!this.user)throw new a.A("portal:not-authenticated","Unable to authenticate user. Portal.user is missing")});if(this.authMode===_.AUTH_MODE_ANONYMOUS||this.authMode===_.AUTH_MODE_NO_PROMPT&&!i.id)return Promise.reject(new a.A("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);const t=t=>Promise.resolve().then(()=>"not-loaded"===this.loadStatus?(t||(this.authMode="immediate"),this.load().then(()=>null)):"loading"===this.loadStatus?this.load().then(()=>this.credential?null:(this.credential=t,this.fetchSelf("immediate"))):this.user&&this.credential===t?null:(this.credential=t,this.fetchSelf("immediate"))).then(t=>{t&&(this.sourceJSON=t,this.read(t))});return i.id?i.id.getCredential(this.restUrl,{prompt:this.authMode!==_.AUTH_MODE_NO_PROMPT}).then(e=>t(e)):t(this.credential)}normalizeUrl(t){const e=this.credential?.token;return this._normalizeSSL(e?t+(t.includes("?")?"&":"?")+"token="+e:t)}requestToTypedArray(t,e,r){return this.request(t,e).then(t=>{const e=_._resultsToTypedArray(r,{portal:this},t);return Promise.all(e.map(e=>"function"==typeof e.when?e.when():t)).then(()=>e,()=>e)})}request(t,e={}){const r={f:"json",...e.query},{authMode:s=(this.authMode===_.AUTH_MODE_ANONYMOUS||this.authMode===_.AUTH_MODE_NO_PROMPT?this.authMode:"auto"),body:o=null,cacheBust:i=!1,method:a="auto",responseType:n="json",signal:u}=e,p={authMode:s,body:o,cacheBust:i,method:a,query:r,responseType:n,timeout:0,signal:u};return e.withCredentials&&(p.withCredentials=!0),(0,l.A)(this._normalizeSSL(t),p).then(t=>t.data)}toJSON(){throw new a.A("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");return new _({sourceJSON:t})}_getHelperService(t){const e=this.helperServices?.[t];if(!e)throw new a.A("portal:service-not-found",`The \`helperServices\` do not include an entry named "${t}"`);return e}async _fetchBasemaps(t,e){const r=new Z.A;r.query=t||((0,w.Dd)()?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0;const s=await this.queryGroups(r,e);if(!s.total)return[];const o=s.results[0];r.num=100,r.query='type:"Web Map" -type:"Web Application"',r.sortField=o.sortField||"name",r.sortOrder=o.sortOrder||"desc";const i=await o.queryItems(r,e);return i.total?i.results.filter(t=>"Web Map"===t.type).map(t=>new b({portalItem:t})):[]}async _fetchBasemaps3D(t,e){const r=t||this.basemapGalleryGroupQuery3D;if(!r)return[];if((0,w.Dd)())return[];const s=new Z.A({query:r,disableExtraQuery:!0}),o=await this.queryGroups(s,e);if(!o.total)return[];const i=o.results[0];s.num=100,s.query='type:"Web Scene"',s.sortField=i.sortField||"name",s.sortOrder=i.sortOrder||"desc";const l=await i.queryItems(s,e);return l.total?l.results.filter(t=>"Web Scene"===t.type).map(t=>new b({portalItem:t})):[]}_normalizeSSL(t){return t.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(t){if(t){const e=b.fromJSON(t);return e.portalItem={portal:this},e}return null}static _resultsToTypedArray(t,e,r,s){let o;if(r){const i=null!=s?s.signal:null;o=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(t||e)&&(o=o.map(r=>{const s=Object.assign(t?t.fromJSON(r):r,e);return"function"==typeof s.load&&s.load(i),s}))}else o=[];return o}};(0,s.Cg)([(0,y.MZ)()],G.prototype,"access",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"allSSL",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"authMode",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"authorizedCrossOriginDomains",void 0),(0,s.Cg)([(0,m.w)("authorizedCrossOriginDomains")],G.prototype,"readAuthorizedCrossOriginDomains",null),(0,s.Cg)([(0,y.MZ)()],G.prototype,"basemapGalleryGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)({json:{name:"3DBasemapGalleryGroupQuery"}})],G.prototype,"basemapGalleryGroupQuery3D",void 0),(0,s.Cg)([(0,y.MZ)({json:{name:"g3DTilesGalleryGroupQuery"}})],G.prototype,"g3DTilesGalleryGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)({json:{name:"g3dTilesEnabled"}})],G.prototype,"g3dTilesEnabled",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"bingKey",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"canListApps",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"canListData",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"canListPreProvisionedItems",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"canProvisionDirectPurchase",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"canSearchPublic",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"canShareBingPublic",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"canSharePublic",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"canSignInArcGIS",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"canSignInIDP",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"colorSetsGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"commentsEnabled",void 0),(0,s.Cg)([(0,y.MZ)({type:Date})],G.prototype,"created",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"credential",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"culture",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"currentVersion",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"customBaseUrl",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"default3DBasemapQuery",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"defaultBasemap",void 0),(0,s.Cg)([(0,m.w)("defaultBasemap")],G.prototype,"readDefaultBasemap",null),(0,s.Cg)([(0,y.MZ)()],G.prototype,"defaultDevBasemap",void 0),(0,s.Cg)([(0,m.w)("defaultDevBasemap")],G.prototype,"readDefaultDevBasemap",null),(0,s.Cg)([(0,y.MZ)({type:C.A})],G.prototype,"defaultExtent",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"defaultVectorBasemap",void 0),(0,s.Cg)([(0,m.w)("defaultVectorBasemap")],G.prototype,"readDefaultVectorBasemap",null),(0,s.Cg)([(0,y.MZ)()],G.prototype,"description",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"devBasemapGalleryGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"eueiEnabled",void 0),(0,s.Cg)([(0,y.MZ)({readOnly:!0})],G.prototype,"extraQuery",null),(0,s.Cg)([(0,y.MZ)()],G.prototype,"featuredGroups",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"featuredItemsGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"galleryTemplatesGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"layoutGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"livingAtlasGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)({readOnly:!0})],G.prototype,"hasAPIKey",null),(0,s.Cg)([(0,y.MZ)()],G.prototype,"hasCategorySchema",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"hasClassificationSchema",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"helpBase",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"helperServices",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"helpMap",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"homePageFeaturedContent",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"homePageFeaturedContentCount",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"httpPort",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"httpsPort",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"id",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"ipCntryCode",void 0),(0,s.Cg)([(0,y.MZ)({readOnly:!0})],G.prototype,"isOrganization",null),(0,s.Cg)([(0,y.MZ)()],G.prototype,"isPortal",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"isReadOnly",void 0),(0,s.Cg)([(0,y.MZ)({readOnly:!0})],G.prototype,"itemPageUrl",null),(0,s.Cg)([(0,y.MZ)()],G.prototype,"layerTemplatesGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"maxTokenExpirationMinutes",void 0),(0,s.Cg)([(0,y.MZ)({type:Date})],G.prototype,"modified",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"name",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"portalHostname",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"portalMode",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"portalProperties",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"region",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"recycleBinEnabled",void 0),(0,s.Cg)([(0,y.MZ)({readOnly:!0})],G.prototype,"restUrl",null),(0,s.Cg)([(0,y.MZ)()],G.prototype,"rotatorPanels",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"showHomePageDescription",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"staticImagesUrl",void 0),(0,s.Cg)([(0,y.MZ)({json:{name:"2DStylesGroupQuery"}})],G.prototype,"stylesGroupQuery2d",void 0),(0,s.Cg)([(0,y.MZ)({json:{name:"stylesGroupQuery"}})],G.prototype,"stylesGroupQuery3d",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"supportsHostedServices",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"symbolSetsGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"templatesGroupQuery",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"thumbnail",void 0),(0,s.Cg)([(0,y.MZ)({readOnly:!0})],G.prototype,"thumbnailUrl",null),(0,s.Cg)([(0,y.MZ)()],G.prototype,"units",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"url",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"urlKey",void 0),(0,s.Cg)([(0,m.w)("urlKey")],G.prototype,"readUrlKey",null),(0,s.Cg)([(0,y.MZ)()],G.prototype,"user",void 0),(0,s.Cg)([(0,m.w)("user")],G.prototype,"readUser",null),(0,s.Cg)([(0,y.MZ)()],G.prototype,"use3dBasemaps",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"useDefault3dBasemap",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"useStandardizedQuery",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"useVectorBasemaps",void 0),(0,s.Cg)([(0,y.MZ)()],G.prototype,"vectorBasemapGalleryGroupQuery",void 0),G=_=(0,s.Cg)([(0,g.$)("esri.portal.Portal")],G);const q=new FinalizationRegistry(t=>{t.remove()})},41318:(t,e,r)=>{r.d(e,{A:()=>d});var s=r(31635),o=r(49186),i=r(25482),l=r(10107),a=(r(44208),r(53966),r(87811),r(64108));let n=class extends i.o{constructor(t){super(t),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){const t=this.portal?.restUrl;return t?`${t}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new o.A("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};(0,s.Cg)([(0,l.MZ)({type:Date})],n.prototype,"created",void 0),(0,s.Cg)([(0,l.MZ)()],n.prototype,"id",void 0),(0,s.Cg)([(0,l.MZ)()],n.prototype,"portal",void 0),(0,s.Cg)([(0,l.MZ)()],n.prototype,"title",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],n.prototype,"url",null),(0,s.Cg)([(0,l.MZ)()],n.prototype,"username",void 0),n=(0,s.Cg)([(0,a.$)("esri.portal.PortalFolder")],n);var u,p=r(96360);let d=u=class extends i.o{constructor(t){super(t),this.access=null,this.created=null,this.culture=null,this.description=null,this.email=null,this.fullName=null,this.id=null,this.modified=null,this.orgId=null,this.portal=null,this.preferredView=null,this.privileges=null,this.region=null,this.role=null,this.roleId=null,this.sourceJSON=null,this.units=null,this.username=null,this.userLicenseTypeId=null,this.userType=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e?this.portal.normalizeUrl(`${t}/info/${e}?f=json`):null}get userContentUrl(){const t=this.portal?.restUrl;return t?`${t}/content/users/${this.id}`:null}get url(){const t=this.portal?.restUrl;return t?`${t}/community/users/${this.id}`:null}addItem(t){const e=t&&t.item,r=t?.data,s=t?.folder,o={method:"post"};e&&(o.query=e.createPostQuery(),null!=r&&("string"==typeof r?o.query.text=r:"object"==typeof r&&(o.query.text=JSON.stringify(r))));let i=this.userContentUrl;return s&&(i+="/"+("string"==typeof s?s:s.id)),this.portal.request(i+"/addItem",o).then(t=>(e.id=t.id,e.portal=this.portal,e.loaded?e.reload():e.load()))}async deleteItem(t,e=!1){let r=this.userContentUrl;t.ownerFolder&&(r+="/"+t.ownerFolder);const s=e?{permanentDelete:!0}:{};await this.portal.request(r+`/items/${t.id}/delete`,{method:"post",query:s}),t.id=null,t.portal=null}async deleteItems(t,e=!1){t=t.slice();const r=this.userContentUrl+"/deleteItems",s=[],i=t.map(t=>t.id);if(i.length){const l={method:"post",query:{items:i.join(","),permanentDelete:e}},a=await this.portal.request(r,l);for(const e of a.results){const r=t.find(t=>e.itemId===t.id),i=e.success;let l=null;i?(r.id=null,r.portal=null):e.error&&(l=new o.A("portal:delete-item-failed",e.error.message,e.error)),s.push({item:r,success:i,error:l})}}return s}fetchFolders(){return this.portal.request(this.userContentUrl??"",{query:{num:1}}).then(t=>{let e;return e=t&&t.folders?t.folders.map(t=>{const e=n.fromJSON(t);return e.portal=this.portal,e}):[],e})}fetchGroups(){return this.portal.request(this.url??"").then(t=>{let e;return e=t&&t.groups?t.groups.map(t=>{const e=p.A.fromJSON(t);return e.portal=this.portal,e}):[],e})}async fetchItems(t){t??={};let e=this.userContentUrl??"";t.folder&&(e+="/"+t.folder.id);const{default:s}=await r.e(812).then(r.bind(r,80812)),o={folders:!1,inRecycleBin:!!t.inRecycleBin||null,foldersContent:!(t.folder||!t.includeSubfolderItems)||null,num:t.num||10,start:t.start||1,sortField:t.sortField||"created",sortOrder:t.sortOrder||"asc"},i=await this.portal.request(e,{query:o});let l;return i?.items?(l=i.items.map(t=>{const e=s.fromJSON(t);return e.portal=this.portal,e}),await Promise.all(l.map(t=>t.load())),{items:l,nextStart:i.nextStart,total:i.total}):{items:[],nextStart:-1,total:0}}fetchTags(){return this.portal.request(this.url+"/tags").then(t=>t.tags)}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}queryFavorites(t){return this.favGroupId?(this._favGroup||(this._favGroup=new p.A({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(t)):Promise.reject(new o.A("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}async restoreItem(t,e){const r=this.userContentUrl,s=e?{folderID:"string"==typeof e?e:e.id}:null;await this.portal.request(r+`/items/${t.id}/restore`,{method:"post",query:s})}toJSON(){throw new o.A("internal:not-yet-implemented","PortalUser.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const e=new u({sourceJSON:t});return e.read(t),e}};(0,s.Cg)([(0,l.MZ)()],d.prototype,"access",void 0),(0,s.Cg)([(0,l.MZ)({type:Date})],d.prototype,"created",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"culture",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"description",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"email",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"favGroupId",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"fullName",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"id",void 0),(0,s.Cg)([(0,l.MZ)({type:Date})],d.prototype,"modified",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"orgId",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"portal",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"preferredView",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"privileges",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"region",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"role",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"roleId",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"thumbnail",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],d.prototype,"thumbnailUrl",null),(0,s.Cg)([(0,l.MZ)()],d.prototype,"units",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],d.prototype,"userContentUrl",null),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],d.prototype,"url",null),(0,s.Cg)([(0,l.MZ)()],d.prototype,"username",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"userLicenseTypeId",void 0),(0,s.Cg)([(0,l.MZ)()],d.prototype,"userType",void 0),d=u=(0,s.Cg)([(0,a.$)("esri.portal.PortalUser")],d)},61893:(t,e,r)=>{r.d(e,{Z:()=>p,g:()=>u});var s=r(31635),o=r(69622),i=r(36563),l=r(74887),a=r(64108);class n{constructor(){this._resolver=(0,l.Tw)(),this._status=0,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=1,this._cleanUp()},()=>{this._status=2,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(t){this._resolvingPromises.push(t),this._tryResolve()}isResolved(){return 1===this._status}isRejected(){return 2===this._status}isFulfilled(){return 0!==this._status}abort(){this._resolver.reject((0,l.NK)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;const t=(0,l.Tw)(),e=[...this._resolvingPromises,t.promise],r=this._allPromise=Promise.all(e);r.then(()=>{this.isFulfilled()||this._allPromise!==r||this._resolver.resolve()},t=>{this.isFulfilled()||this._allPromise!==r||(0,l.zf)(t)||this._resolver.reject(t)}),t.resolve()}}const u=t=>{const e=t;let r=class extends e{constructor(...t){super(...t),this._promiseProps=new n,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(t,e){return this._promiseProps.promise.then(()=>this).then(t,e)}catch(t){return this.when(null,t)}addResolvingPromise(t){t&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in t?t.when():t)}addResolvingTask(t){t&&!this._promiseProps.isFulfilled()&&(this.addHandles((0,i.rE)(t)),this._promiseProps.addResolvingPromise(t.promise))}};return r=(0,s.Cg)([(0,a.$)("esri.core.Promise")],r),r},p=u(o.A)},92474:(t,e,r)=>{r.d(e,{WV:()=>h,Zm:()=>c,x_:()=>y});var s=r(31635),o=r(49186),i=r(97768),l=r(61893),a=r(74887),n=r(67076),u=r(10107),p=r(64108);const d="loaded",h=t=>{const e=t;let r=class extends e{constructor(...t){super(...t),this._loadController=null,this.loadError=null,this.loadStatus="not-loaded",this._set("loadWarnings",[]),this.addResolvingPromise(new Promise(t=>{const e=this.load.bind(this);this.load=r=>{const s=new Promise((t,e)=>{const s=(0,a.NY)(r,e);this.destroyed&&e(new o.A("load:instance-destroyed",`Instance of '${this.declaredClass||this.constructor.name}' is already destroyed`,{instance:this})),this.when(t,e).finally(()=>{s&&s.remove()})});if("not-loaded"===this.loadStatus){this._set("loadStatus","loading");const t=this._loadController=new AbortController;e({signal:t.signal})}return t(),s}})),this.when(()=>{this._set("loadStatus",d),this._loadController=null},t=>{this.destroyed||(this._set("loadStatus","failed"),this._set("loadError",t),this._loadController=null)})}destroy(){this._loadController&&(this._loadController=(0,i.DC)(this._loadController),this._promiseProps.abort()),this._set("loadError",null),this._set("loadWarnings",[])}get loaded(){return this.loadStatus===d}get loadWarnings(){return this._get("loadWarnings")}load(t){return null}cancelLoad(){return this.isFulfilled()||(this._set("loadError",new o.A("load:cancelled","Cancelled")),this._loadController?.abort(),this._promiseProps.abort()),this}};return(0,s.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loaded",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loadError",void 0),(0,s.Cg)([(0,u.MZ)({clonable:!1})],r.prototype,"loadStatus",void 0),(0,s.Cg)([(0,u.MZ)({type:[n.A],readOnly:!0})],r.prototype,"loadWarnings",null),r=(0,s.Cg)([(0,p.$)("esri.core.Loadable")],r),r},y=h(l.Z);function c(t){return!(!t||!t.load)}},96360:(t,e,r)=>{r.d(e,{A:()=>d});var s,o=r(31635),i=r(49186),l=r(25482),a=r(10107),n=r(56507),u=(r(44208),r(87811),r(64108)),p=r(16405);let d=s=class extends l.o{constructor(t){super(t),this.access=null,this.created=null,this.description=null,this.id=null,this.isInvitationOnly=!1,this.modified=null,this.owner=null,this.portal=null,this.snippet=null,this.sortField=null,this.sortOrder=null,this.sourceJSON=null,this.tags=null,this.title=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e&&this.portal?this.portal?.normalizeUrl(`${t}/info/${e}?f=json`):null}get url(){const t=this.portal?.restUrl;return t?t+"/community/groups/"+this.id:null}fetchCategorySchema(t){return this.portal.request(this.url+"/categorySchema",t).then(e=>{const r=e.categorySchema||[];return r.some(t=>"contentCategorySetsGroupQuery.LivingAtlas"===t.source)?this._fetchCategorySchemaSet("LivingAtlas",t):r})}fetchMembers(t){return this.portal.request(this.url+"/users",t)}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}toJSON(){throw new i.A("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const e=new s({sourceJSON:t});return e.read(t),e}queryItems(t,e){let r=(0,n.dp)(p.A,t);const s=this.portal;return parseFloat(s.currentVersion)>5?(r=r||new p.A,s.queryPortal(`/content/groups/${this.id}/search`,r,"PortalItem",e)):(r=r?r.clone():new p.A,r.query="group:"+this.id+(r.query?" "+r.query:""),s.queryItems(r,e))}_fetchCategorySchemaSet(t,e){const r=this.portal;return r.fetchSelf(r.authMode,!0,e).then(t=>{const s=t.contentCategorySetsGroupQuery;if(s){const t=new p.A({disableExtraQuery:!0,num:1,query:s});return r.queryGroups(t,e)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")}).then(r=>{if(r.total){const s=r.results[0],o=new p.A({num:1,query:`typekeywords:"${t}"`});return s.queryItems(o,e)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found")}).then(t=>t.total?t.results[0].fetchData("json",e).then(t=>{const e=t?.categorySchema;return e?.length?e:[]}):[])}};(0,o.Cg)([(0,a.MZ)()],d.prototype,"access",void 0),(0,o.Cg)([(0,a.MZ)({type:Date})],d.prototype,"created",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"description",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"id",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"isInvitationOnly",void 0),(0,o.Cg)([(0,a.MZ)({type:Date})],d.prototype,"modified",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"owner",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"portal",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"snippet",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"sortField",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"sortOrder",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"sourceJSON",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"tags",void 0),(0,o.Cg)([(0,a.MZ)()],d.prototype,"thumbnail",void 0),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],d.prototype,"thumbnailUrl",null),(0,o.Cg)([(0,a.MZ)()],d.prototype,"title",void 0),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],d.prototype,"url",null),d=s=(0,o.Cg)([(0,u.$)("esri.portal.PortalGroup")],d)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5890],{159:(e,t,r)=>{r.d(t,{A:()=>u});var n,i=r(31635),s=r(69622),o=r(10107),l=(r(44208),r(53966),r(87811),r(64108)),a=r(99157);let u=n=class extends s.A{constructor(e){super(e),this.steps=[]}getInverse(){const e=new n;for(let t=this.steps.length-1;t>=0;t--){const r=this.steps[t];e.steps.push(r.getInverse())}return e}};(0,i.Cg)([(0,o.MZ)({type:[a.A],nonNullable:!0})],u.prototype,"steps",void 0),u=n=(0,i.Cg)([(0,l.$)("esri.geometry.operators.support.GeographicTransformation")],u)},8303:(e,t,r)=>{r.d(t,{A:()=>C});var n=r(31635),i=r(92602),s=r(70333),o=r(78888),l=r(60999),a=r(49186),u=r(53966),c=r(97768),p=r(74887),h=r(84952),d=r(10107),f=(r(44208),r(87811),r(36005)),y=r(64108),g=r(43937),m=r(77548),S=r(20655),w=r(80812),v=r(41318),M=r(10407);const C=e=>{const t=e;let C=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new w.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:n}=await r.e(1204).then(r.bind(r,41204));return(0,p.Te)(t),await n({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:n},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",n),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const n=!s.id?.findCredential(this.url),i=e===r.id;if(i&&r.portal.user)return this._getUserPrivileges(r,n);let o,l;if(i)o=r.portal.url;else try{o=await(0,m.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!o||!(0,h.b8)(o,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;l=await(s.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const a=!0,u=!1,c=!1;if(!l)return{features:{edit:a,fullEdit:u},content:{updateItem:c}};try{if(i?await r.reload():(r=new w.default({id:e,portal:{url:o}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,n)}catch(e){(0,p.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const r=(0,M.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=b.credential===t?b.user:await this._fetchEditingUser(e);return b.credential=t,b.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const n=`${r.owningSystemUrl}/sharing/rest`,i=S.A.getDefault();if(i&&i.loaded&&(0,h.S8)(i.restUrl)===(0,h.S8)(n))return i.user;const a=`${n}/community/self`,u=null!=e?e.signal:null,c=await(0,l.Ke)((0,o.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?v.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,n=this.portalItem?.id&&(this.portalItem.portal||S.A.getDefault());return r&&n&&!(0,h.ut)(n.restUrl,r.restUrl)?(t.messages&&t.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,n.Cg)([(0,d.MZ)({type:w.default})],C.prototype,"portalItem",null),(0,n.Cg)([(0,f.w)("web-document","portalItem",["itemId"])],C.prototype,"readPortalItem",null),(0,n.Cg)([(0,g.K)("web-document","portalItem",{itemId:{type:String}})],C.prototype,"writePortalItem",null),(0,n.Cg)([(0,d.MZ)({clonable:!1})],C.prototype,"resourceReferences",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasEditingPrivileges",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasFullEditingPrivileges",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasUpdateItemPrivileges",void 0),C=(0,n.Cg)([(0,y.$)("esri.layers.mixins.PortalLayer")],C),C},b={credential:null,user:null}},9762:(e,t,r)=>{r.r(t),r.d(t,{projectBuffer:()=>i});var n=r(37539);function i(e,t,r,i,s,o,l=Math.floor(e.length/3)){const a=(0,n.jd)(t,s);if(null==a)return!1;if(a===n.pO){if(e===i&&r===o)return!0;const t=r+3*l;for(let n=r,s=o;n<t;n++,s++)i[s]=e[n];return!0}const u=r+3*l;for(let t=r,n=o;t<u;t+=3,n+=3)a(e,t,i,n);return!0}},10407:(e,t,r)=>{r.d(t,{It:()=>d,LG:()=>o,OM:()=>u,Sm:()=>c,Y:()=>l,bK:()=>a,mm:()=>h,sQ:()=>p});var n=r(91218),i=r(16930),s=r(28735);function o(e,t){if(!l(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function l(e,t){return!!e.typeKeywords?.includes(t)}function a(e){return l(e,h.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function c(e,t,r){r?o(e,t):u(e,t)}async function p(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const r=i.A.WGS84;return await(0,n.initializeProjection)(t,r),(0,n.project)(e,r)}(r)}const h={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function d(e){const{portal:t,isOrgItem:r,itemControl:n}=e,i=t.user?.privileges;let s=!i||i.includes("features:user:edit"),o=!!r&&!!i?.includes("features:user:fullEdit");const l="update"===n||"admin"===n;return l?o=s=!0:o&&(s=!0),{features:{edit:s,fullEdit:o},content:{updateItem:l}}}},20378:(e,t,r)=>{r.d(t,{A:()=>h});var n=r(31635),i=r(68197),s=r(66552),o=r(25482),l=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),u=r(64108);const c=new s.J({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let p=0,h=class extends o.o{constructor(e){super(e),this.id="sym"+p++,this.type=null,this.color=new i.A([0,0,0,1])}readColor(e){return null!=e?.[0]?[e[0],e[1],e[2],e[3]/255]:e}async collectRequiredFields(e,t){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,n.Cg)([(0,l.MZ)({type:c.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:c.write,isRequired:!0}}})],h.prototype,"type",void 0),(0,n.Cg)([(0,l.MZ)({type:i.A,json:{write:{allowNull:!0}}})],h.prototype,"color",void 0),(0,n.Cg)([(0,a.w)("color")],h.prototype,"readColor",null),h=(0,n.Cg)([(0,u.$)("esri.symbols.Symbol")],h)},31593:(e,t,r)=>{r.d(t,{A:()=>C});var n=r(31635),i=r(66552),s=r(4718),o=r(90629),l=r(10107),a=(r(44208),r(53966),r(93223)),u=r(64108),c=(r(87811),r(20378));let p=class extends c.A{constructor(e){super(e),this.type="simple-line",this.width=.75}hash(){return`${this.type}.${this.width}`}};(0,n.Cg)([(0,a.e)({esriSLS:"simple-line"},{readOnly:!0})],p.prototype,"type",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,cast:o.cr,json:{write:!0}})],p.prototype,"width",void 0),p=(0,n.Cg)([(0,u.$)("esri.symbols.LineSymbol")],p);var h,d=r(68197),f=r(25482),y=r(36005),g=r(43937),m=r(83213);let S=h=class extends f.o{constructor(e){super(e),this.placement="begin-end",this.type="line-marker",this.style="arrow"}writeStyle(e,t,r,n){t[r]="web-map"===n?.origin?"arrow":e}set color(e){this._set("color",e)}readColor(e){return null!=e?.[0]?[e[0],e[1],e[2],e[3]/255]:e}writeColor(e,t,r,n){"web-map"===n?.origin||(t[r]=e)}clone(){return new h({color:(0,s.o8)(this.color),placement:this.placement,style:this.style})}hash(){return`${this.placement}.${this.color?.hash()}.${this.style}`}};(0,n.Cg)([(0,l.MZ)({type:["begin","end","begin-end"],json:{write:!0}})],S.prototype,"placement",void 0),(0,n.Cg)([(0,a.e)({"line-marker":"line-marker"},{readOnly:!0}),(0,l.MZ)({json:{origins:{"web-map":{write:!1}}}})],S.prototype,"type",void 0),(0,n.Cg)([(0,l.MZ)({type:m.z})],S.prototype,"style",void 0),(0,n.Cg)([(0,g.K)("style")],S.prototype,"writeStyle",null),(0,n.Cg)([(0,l.MZ)({type:d.A,value:null,json:{write:{allowNull:!0}}})],S.prototype,"color",null),(0,n.Cg)([(0,y.w)("color")],S.prototype,"readColor",null),(0,n.Cg)([(0,g.K)("color")],S.prototype,"writeColor",null),S=h=(0,n.Cg)([(0,u.$)("esri.symbols.LineSymbolMarker")],S);const w=S;var v;const M=new i.J({esriSLSSolid:"solid",esriSLSDash:"dash",esriSLSDot:"dot",esriSLSDashDot:"dash-dot",esriSLSDashDotDot:"long-dash-dot-dot",esriSLSNull:"none",esriSLSShortDash:"short-dash",esriSLSShortDot:"short-dot",esriSLSShortDashDot:"short-dash-dot",esriSLSShortDashDotDot:"short-dash-dot-dot",esriSLSLongDash:"long-dash",esriSLSLongDashDot:"long-dash-dot"});let C=v=class extends p{constructor(...e){super(...e),this.type="simple-line",this.style="solid",this.cap="round",this.join="round",this.marker=null,this.miterLimit=2}normalizeCtorArgs(e,t,r,n,i,s){if(e&&"string"!=typeof e)return e;const l={};return null!=e&&(l.style=e),null!=t&&(l.color=t),null!=r&&(l.width=(0,o.cr)(r)),null!=n&&(l.cap=n),null!=i&&(l.join=i),null!=s&&(l.miterLimit=(0,o.cr)(s)),l}clone(){return new v({color:(0,s.o8)(this.color),style:this.style,width:this.width,cap:this.cap,join:this.join,miterLimit:this.miterLimit,marker:this.marker?.clone()})}hash(){return`${super.hash()}.${this.color?.hash()}.${this.style}.${this.cap}.${this.join}.${this.miterLimit}.${this.marker?.hash()}`}};(0,n.Cg)([(0,a.e)({esriSLS:"simple-line"},{readOnly:!0})],C.prototype,"type",void 0),(0,n.Cg)([(0,l.MZ)({type:M.apiValues,json:{read:M.read,write:M.write}})],C.prototype,"style",void 0),(0,n.Cg)([(0,l.MZ)({type:["butt","round","square"],json:{write:{overridePolicy:(e,t,r)=>({enabled:"round"!==e&&null==r?.origin})}}})],C.prototype,"cap",void 0),(0,n.Cg)([(0,l.MZ)({type:["miter","round","bevel"],json:{write:{overridePolicy:(e,t,r)=>({enabled:"round"!==e&&null==r?.origin})}}})],C.prototype,"join",void 0),(0,n.Cg)([(0,l.MZ)({types:{key:"type",base:null,defaultKeyValue:"line-marker",typeMap:{"line-marker":w}},json:{write:!0,origins:{"web-scene":{write:!1}}}})],C.prototype,"marker",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{read:!1,write:!1}})],C.prototype,"miterLimit",void 0),C=v=(0,n.Cg)([(0,u.$)("esri.symbols.SimpleLineSymbol")],C)},37539:(e,t,r)=>{r.d(t,{pO:()=>y,jd:()=>h,Tp:()=>d,w5:()=>p});var n=r(34727),i=r(83047),s=r(73941),o=r(79258);Math.PI;const l=o.$O.radius,a=o.$O.eccentricitySquared,u={a1:l*a,a2:l*a*l*a,a3:l*a*a/2,a4:l*a*l*a*2.5,a5:l*a+l*a*a/2,a6:1-a};o.$O.radius,o.$O.flattening,o.Sw.radius,o.Sw.flattening,o.sH.radius,o.sH.flattening,o.sH.radius;var c=r(21325);const p={2:{5:y,7:null,9:null,10:y,1:b,6:null,8:null,0:null,3:m,11:S,2:y,4:x},5:{5:y,7:null,9:null,10:y,1:b,6:null,8:null,0:null,3:m,11:S,2:y,4:x},7:{5:null,7:y,9:null,10:y,1:null,6:C,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:y,10:y,1:null,6:null,8:M,0:null,3:null,11:null,2:null,4:null},3:{5:g,7:null,9:null,10:g,1:function(e,t,r,n){const i=e[t]/L,s=Z-2*Math.atan(Math.exp(-e[t+1]/L)),o=L+e[t+2],l=Math.cos(s)*o;r[n]=Math.cos(i)*l,r[n+1]=Math.sin(i)*l,r[n+2]=Math.sin(s)*o},6:null,8:null,0:null,3:y,11:function(e,t,r,n){g(e,t,r,n),S(r,n,r,n)},2:g,4:function(e,t,r,n){g(e,t,r,n),x(r,n,r,n)}},4:{5:j,7:null,9:null,10:j,1:function(e,t,r,n){j(e,t,r,n),b(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){j(e,t,r,n),m(r,n,r,n)},11:function(e,t,r,n){j(e,t,r,n),S(r,n,r,n)},2:j,4:y},1:{5:R,7:null,9:null,10:R,1:y,6:null,8:null,0:null,3:function(e,t,r,n){R(e,t,r,n),m(r,n,r,n)},11:function(e,t,r,n){R(e,t,r,n),S(r,n,r,n)},2:R,4:function(e,t,r,n){R(e,t,r,n),x(r,n,r,n)}},6:{5:null,7:I,9:null,10:I,1:null,6:y,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:P,10:P,1:null,6:null,8:y,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:y,3:null,11:null,2:null,4:null},10:{5:y,7:y,9:y,10:y,1:b,6:C,8:M,0:null,3:m,11:S,2:y,4:x},11:{5:w,7:null,9:null,10:w,1:function(e,t,r,n){w(e,t,r,n),b(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){w(e,t,r,n),m(r,n,r,n)},11:y,2:w,4:function(e,t,r,n){w(e,t,r,n),x(r,n,r,n)}}};function h(e,t){return d(e,t)?.projector}function d(e,t){if(null==e||null==t)return null;if(k.source.spatialReference===e&&k.dest.spatialReference===t)return k;const r=f(e,k.source),n=f(t,k.dest);return 0===r&&0===n?(0,c.aI)(e,t)?k.projector=y:k.projector=null:k.projector=p[r][n],k}function f(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,i.GA)(e,1)),(0,s.jA)(e)?t.spatialReferenceId=1:(0,c.oT)(e)?t.spatialReferenceId=2:(0,c.K8)(e)?t.spatialReferenceId=3:(0,c.r1)(e)?t.spatialReferenceId=11:e.wkt===s.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===s.FY.wkt?t.spatialReferenceId=6:e.wkt===s.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(e)?t.spatialReferenceId=7:(0,c.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function y(e,t,r,n){e!==r&&(r[n++]=e[t++],r[n++]=e[t++],r[n]=e[t])}function g(e,t,r,n){r[n]=$*(e[t]/L),r[n+1]=$*(Z-2*Math.atan(Math.exp(-e[t+1]/L))),r[n+2]=e[t+2]}function m(e,t,r,i){!function(e,t,r,i,s){const o=.4999999*Math.PI,l=(0,n.qE)(_*e[t+1],-o,o),a=Math.sin(l);r[i++]=_*e[t]*s.radius,r[i++]=s.halfSemiMajorAxis*Math.log((1+a)/(1-a)),r[i]=e[t+2]}(e,t,r,i,o.$O)}function S(e,t,r,n){r[n]=e[t]*E,r[n+1]=e[t+1]*E,r[n+2]=e[t+2]}function w(e,t,r,n){r[n]=e[t]*O,r[n+1]=e[t+1]*O,r[n+2]=e[t+2]}function v(e,t,r,n,i){const s=i+e[t+2],o=_*e[t+1],l=_*e[t],a=Math.cos(o)*s;r[n]=Math.cos(l)*a,r[n+1]=Math.sin(l)*a,r[n+2]=Math.sin(o)*s}function M(e,t,r,n){v(e,t,r,n,o.Sw.radius)}function C(e,t,r,n){v(e,t,r,n,o.sH.radius)}function b(e,t,r,n){v(e,t,r,n,o.$O.radius)}function A(e,t,r,i,s){const o=e[t],l=e[t+1],a=e[t+2],u=Math.sqrt(o*o+l*l+a*a),c=(0,n.YN)(a/(0===u?1:u)),p=Math.atan2(l,o);r[i++]=$*p,r[i++]=$*c,r[i]=u-s}function P(e,t,r,n){A(e,t,r,n,o.Sw.radius)}function I(e,t,r,n){A(e,t,r,n,o.sH.radius)}function R(e,t,r,n){A(e,t,r,n,o.$O.radius)}function x(e,t,r,n){!function(e,t,r,n,i){const s=_*e[t],o=_*e[t+1],l=e[t+2],a=Math.sin(o),u=Math.cos(o),c=i.radius/Math.sqrt(1-i.eccentricitySquared*a*a);r[n++]=(c+l)*u*Math.cos(s),r[n++]=(c+l)*u*Math.sin(s),r[n++]=(c*(1-i.eccentricitySquared)+l)*a}(e,t,r,n,o.$O)}function j(e,t,r,n){const i=u,s=e[t],l=e[t+1],a=e[t+2];let c,p,h,d,f,y,g,m,S,w,v,M,C,b,A,P,I,R,x,j,k;c=Math.abs(a),p=s*s+l*l,h=Math.sqrt(p),d=p+a*a,f=Math.sqrt(d),j=Math.atan2(l,s),y=a*a/d,g=p/d,b=i.a2/f,A=i.a3-i.a4/f,g>.3?(m=c/f*(1+g*(i.a1+b+y*A)/f),x=Math.asin(m),w=m*m,S=Math.sqrt(1-w)):(S=h/f*(1-y*(i.a5-b-g*A)/f),x=Math.acos(S),w=1-S*S,m=Math.sqrt(w)),v=1-o.$O.eccentricitySquared*w,M=o.$O.radius/Math.sqrt(v),C=i.a6*M,b=h-M*S,A=c-C*m,I=S*b+m*A,P=S*A-m*b,R=P/(C/v+I),x+=R,k=I+P*R/2,a<0&&(x=-x),r[n++]=$*j,r[n++]=$*x,r[n]=k}const k={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:y},_=(0,n.kU)(1),$=(0,n.KJ)(1),Z=.5*Math.PI,L=o.$O.radius,E=L*Math.PI/180,O=180/(L*Math.PI)},53930:(e,t,r)=>{r.d(t,{A:()=>g});var n,i=r(31635),s=r(68197),o=r(66552),l=r(4718),a=r(90629),u=r(10107),c=(r(44208),r(53966),r(93223)),p=r(64108),h=r(43937),d=r(89420),f=r(31593);const y=new o.J({esriSMSCircle:"circle",esriSMSSquare:"square",esriSMSCross:"cross",esriSMSX:"x",esriSMSDiamond:"diamond",esriSMSTriangle:"triangle",esriSMSPath:"path"});let g=n=class extends d.A{constructor(...e){super(...e),this.color=new s.A([255,255,255,.25]),this.type="simple-marker",this.size=12,this.style="circle",this.outline=new f.A}normalizeCtorArgs(e,t,r,n){if(e&&"string"!=typeof e)return e;const i={};return e&&(i.style=e),null!=t&&(i.size=(0,a.cr)(t)),r&&(i.outline=r),n&&(i.color=n),i}writeColor(e,t){e&&"x"!==this.style&&"cross"!==this.style&&(t.color=e.toJSON()),null===e&&(t.color=null)}set path(e){this.style="path",this._set("path",e)}clone(){return new n({angle:this.angle,color:(0,l.o8)(this.color),outline:this.outline&&this.outline.clone(),path:this.path,size:this.size,style:this.style,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${super.hash()}.${this.color&&this.color.hash()}.${this.path}.${this.style}.${this.outline?.hash()}`}};(0,i.Cg)([(0,u.MZ)()],g.prototype,"color",void 0),(0,i.Cg)([(0,h.K)("color")],g.prototype,"writeColor",null),(0,i.Cg)([(0,c.e)({esriSMS:"simple-marker"},{readOnly:!0})],g.prototype,"type",void 0),(0,i.Cg)([(0,u.MZ)()],g.prototype,"size",void 0),(0,i.Cg)([(0,u.MZ)({type:y.apiValues,json:{read:y.read,write:y.write}})],g.prototype,"style",void 0),(0,i.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],g.prototype,"path",null),(0,i.Cg)([(0,u.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":f.A}},json:{default:null,write:!0}})],g.prototype,"outline",void 0),g=n=(0,i.Cg)([(0,p.$)("esri.symbols.SimpleMarkerSymbol")],g)},58592:(e,t,r)=>{r.d(t,{A:()=>d});var n,i=r(31635),s=r(4718),o=r(90629),l=r(10107),a=(r(44208),r(53966),r(93223)),u=r(36005),c=r(64108),p=r(89420),h=r(77040);let d=n=class extends p.A{constructor(...e){super(...e),this.color=null,this.type="picture-marker",this.url=null,this.source=null,this.height=12,this.width=12,this.size=null}normalizeCtorArgs(e,t,r){if(e&&"string"!=typeof e&&null==e.imageData)return e;const n={};return e&&(n.url=e),null!=t&&(n.width=(0,o.cr)(t)),null!=r&&(n.height=(0,o.cr)(r)),n}readHeight(e,t){return t.size||e}readWidth(e,t){return t.size||e}clone(){const e=new n({angle:this.angle,height:this.height,url:this.url,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset});return e._set("source",(0,s.o8)(this.source)),e}hash(){return`${super.hash()}.${this.height}.${this.url}.${this.width}`}};(0,i.Cg)([(0,l.MZ)({json:{write:!1}})],d.prototype,"color",void 0),(0,i.Cg)([(0,a.e)({esriPMS:"picture-marker"},{readOnly:!0})],d.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)(h.ku)],d.prototype,"url",void 0),(0,i.Cg)([(0,l.MZ)(h.k7)],d.prototype,"source",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,cast:o.cr,json:{write:!0}})],d.prototype,"height",void 0),(0,i.Cg)([(0,u.w)("height",["height","size"])],d.prototype,"readHeight",null),(0,i.Cg)([(0,l.MZ)({type:Number,cast:o.cr,json:{write:!0}})],d.prototype,"width",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!1}})],d.prototype,"size",void 0),d=n=(0,i.Cg)([(0,c.$)("esri.symbols.PictureMarkerSymbol")],d)},60999:(e,t,r)=>{r.d(t,{DZ:()=>f,Ke:()=>d,Tj:()=>c,UT:()=>y,aD:()=>m,jJ:()=>u});var n=r(31635),i=r(69622),s=r(97768),o=r(74887),l=r(10107),a=r(64108);function u(e,t,r){return(0,o.Lx)(e.map((e,n)=>t.apply(r,[e,n])))}async function c(e,t,r){return(await(0,o.Lx)(e.map((e,n)=>t.apply(r,[e,n])))).map(e=>e.value)}function p(e){return{ok:!0,value:e}}function h(e){return{ok:!1,error:e}}async function d(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return p(await e)}catch(e){return h(e)}}async function f(e){try{return p(await e)}catch(e){return(0,o.QP)(e),h(e)}}function y(e,t){return new g(e,t)}let g=class extends i.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=p(e),this._cleanup()},e=>{this._result=h(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,n.Cg)([(0,l.MZ)()],g.prototype,"value",null),(0,n.Cg)([(0,l.MZ)()],g.prototype,"error",null),(0,n.Cg)([(0,l.MZ)()],g.prototype,"finished",null),(0,n.Cg)([(0,l.MZ)()],g.prototype,"promise",void 0),(0,n.Cg)([(0,l.MZ)()],g.prototype,"_result",void 0),g=(0,n.Cg)([(0,a.$)("esri.core.asyncUtils.ReactiveTask")],g);class m{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,n.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,n.hk)(t)}}}},62815:(e,t,r)=>{r.d(t,{N:()=>o});var n=r(83047),i=r(73941),s=r(21325);function o(e,t,r){if(null==t||null==r||r.vcsWkid||(0,s.aI)(t,r)||(0,i.xP)(t)||(0,i.xP)(r))return null;const o=(0,n.G9)(t)/(0,n.G9)(r);if(1===o)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,o);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return null}}},65851:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(31635),i=r(10107),s=(r(44208),r(53966),r(87811),r(64108)),o=r(31593),l=r(20378);let a=class extends l.A{constructor(e){super(e),this.outline=null,this.type=null}hash(){return`${this.type}.${this.outline?.hash()}`}};(0,n.Cg)([(0,i.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":o.A}},json:{default:null,write:!0}})],a.prototype,"outline",void 0),(0,n.Cg)([(0,i.MZ)({type:["simple-fill","picture-fill"],readOnly:!0})],a.prototype,"type",void 0),a=(0,n.Cg)([(0,s.$)("esri.symbols.FillSymbol")],a)},68197:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(40876),i=r(34727),s=r(56507);function o(e){return(0,i.qE)((0,s.Vr)(e),0,255)}function l(e,t){const r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}class a{static blendColors(e,t,r,n=new a){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){const r=(0,n.lT)(e);return r?a.fromArray(r,t):null}static fromHex(e,t=new a){const r=(0,n.oW)(e);return r?a.fromArray(r,t):null}static fromArray(e,t=new a){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,n.Eq)(e);return r?a.fromArray(r,t):null}static fromJSON(e){return null!=e?new a([e[0],e[1],e[2],(e[3]??255)/255]):void 0}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e,t){return null==e?null:(t??=[0,0,0,0],t[0]=e.r/255,t[1]=e.g/255,t[2]=e.b/255,t[3]=null!=e.a?e.a:1,t)}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?a.fromString(e,this):Array.isArray(e)?a.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof a||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,n=3===r||4===r,i=4===r||8===r,s=`#${l(this.r,n)}${l(this.g,n)}${l(this.b,n)}${i?l(Math.round(255*this.a),n):""}`;return t?s.toUpperCase():s}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){const t=o(this.r),r=o(this.g),n=o(this.b);return 0===e||1!==this.a?[t,r,n,o(255*this.a)]:[t,r,n]}clone(){return new a(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,n.c1)(this.r),this.g=(0,n.c1)(this.g),this.b=(0,n.c1)(this.b),this.a=(0,n.G1)(this.a),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}a.prototype.declaredClass="esri.Color"},69540:(e,t,r)=>{r.d(t,{OU:()=>c,Pw:()=>p});var n=r(31635),i=r(69622),s=(r(44208),r(4718)),o=(r(53966),r(97768)),l=r(88620),a=r(64108);const u=Symbol("ClonableMixin"),c=e=>{var t;const r=e;let i=class extends r{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){const t=(0,l.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const r=t.metadata,n=t.store,i={},a=new Map;for(const t in r){const o=r[t],l=n?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==l&&0!==l&&5!==l&&4!==l)continue;const c=this[t];let p=null;if("function"==typeof u)p=u(c,e);else if("reference"===u)p=c;else if(p=(0,s.TU)(c,e),null!=c&&null==p)continue;0===l?a.set(t,p):i[t]=p}const u=new(0,Object.getPrototypeOf(this).constructor)(i);if(a.size){const e=(0,l.oY)(u)?.store;if(e)for(const[t,r]of a)e.set(t,r,0)}return u}};return i=(0,n.Cg)([(0,a.$)("esri.core.Clonable")],i),i},p=c(i.A)},77040:(e,t,r)=>{r.d(t,{k7:()=>l,ku:()=>o});var n=r(84952),i=r(97159);function s(e,t){if(!(0,n.oP)(e)){const r=function(e){if(!e)return null;const{origin:t,layer:r}=e;if("service"!==t&&"portal-item"!==t)return null;const n=r?.type;return"feature"===n||"stream"===n?r.parsedUrl?.path:"map-image"===n||"tile"===n?e.url?.path:null}(t);if(r)return(0,n.fj)(r,"images",e)}return(0,i.f)(e,t)}const o={json:{read:{source:["imageData","url"],reader:function(e,t,r){return t.imageData?(0,n.Hg)({mediaType:t.contentType||"image/png",isBase64:!0,data:t.imageData}):s(t.url,r)}},write:{writer(e,t,r,s){!function(e,t,r,s){if((0,n.DB)(e)){const o=(0,n.r$)(e);if(!o)return;t.contentType=o.mediaType,t.imageData=o.data,r&&r.imageData===t.imageData&&r.url&&(0,i.w)(r.url,t,"url",s)}else(0,i.w)(e,t,"url",s)}(e,t,this.source,s)}}}},l={readOnly:!0,json:{read:{source:["imageData","url"],reader(e,t,r){const n={};return t.imageData&&(n.imageData=t.imageData),t.contentType&&(n.contentType=t.contentType),t.url&&(n.url=s(t.url,r)),n}}}}},78553:(e,t,r)=>{r.d(t,{D:()=>s,p:()=>i});var n=r(56507);function i(e){const t=(0,n.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function s(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}},83213:(e,t,r)=>{r.d(t,{x:()=>n,z:()=>i});const n=["begin","end","begin-end"],i=["arrow","circle","square","diamond","cross","x"]},85582:(e,t,r)=>{r.r(t),r.d(t,{default:()=>_});var n=r(31635),i=r(92602),s=r(78888),o=r(92071),l=r(74887),a=r(84952),u=r(10107),c=(r(44208),r(53966),r(87811),r(36005)),p=r(64108),h=r(5443),d=r(21325),f=r(4146),y=r(63074),g=r(16131),m=r(8303),S=r(54310),w=r(25036),v=r(10873),M=r(58592),C=r(94985),b=r(31593),A=r(53930),P=r(20378);const I=["atom","xml"],R={base:P.A,key:"type",typeMap:{"simple-line":b.A},errorContext:"symbol"},x={base:P.A,key:"type",typeMap:{"picture-marker":M.A,"simple-marker":A.A},errorContext:"symbol"},j={base:P.A,key:"type",typeMap:{"simple-fill":C.A},errorContext:"symbol"};let k=class extends((0,y.dM)((0,S.J)((0,g.q)((0,m.A)((0,w.j)((0,o.P)(f.A))))))){constructor(...e){super(...e),this.description=null,this.fullExtent=null,this.legendEnabled=!0,this.lineSymbol=null,this.pointSymbol=null,this.polygonSymbol=null,this.operationalLayerType="GeoRSS",this.url=null,this.type="geo-rss"}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readFeatureCollections(e,t){return t.featureCollection.layers.forEach(e=>{const t=e.layerDefinition.drawingInfo.renderer.symbol;t&&"esriSFS"===t.type&&t.outline?.style.includes("esriSFS")&&(t.outline.style="esriSLSSolid")}),t.featureCollection.layers}get hasPoints(){return this._hasGeometry("esriGeometryPoint")}get hasPolylines(){return this._hasGeometry("esriGeometryPolyline")}get hasPolygons(){return this._hasGeometry("esriGeometryPolygon")}get title(){const e=this._get("title");return e&&"defaults"!==this.originOf("title")?e:this.url?(0,a.e7)(this.url,I)||"GeoRSS":e}set title(e){this._set("title",e)}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service","Feature Service","Feature Collection","Scene Service"]},e).catch(l.QP).then(()=>this._fetchService(t)).then(e=>{this.read(e,{origin:"service"})})),Promise.resolve(this)}async hasDataChanged(){const e=await this._fetchService();return this.read(e,{origin:"service",ignoreDefaults:!0}),!0}async _fetchService(e){const t=this.spatialReference,{data:r}=await(0,s.A)(i.A.geoRSSServiceUrl,{query:{url:this.url,refresh:!!this.loaded||void 0,outSR:(0,d.oT)(t)?void 0:t.wkid??JSON.stringify(t)},signal:e});return r}_hasGeometry(e){return this.featureCollections?.some(t=>t.featureSet?.geometryType===e&&t.featureSet.features?.length>0)??!1}};(0,n.Cg)([(0,u.MZ)()],k.prototype,"description",void 0),(0,n.Cg)([(0,u.MZ)()],k.prototype,"featureCollections",void 0),(0,n.Cg)([(0,c.w)("service","featureCollections",["featureCollection.layers"])],k.prototype,"readFeatureCollections",null),(0,n.Cg)([(0,u.MZ)({type:h.A,json:{name:"lookAtExtent"}})],k.prototype,"fullExtent",void 0),(0,n.Cg)([(0,u.MZ)(v.id)],k.prototype,"id",void 0),(0,n.Cg)([(0,u.MZ)(v.fV)],k.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,u.MZ)({types:R,json:{write:!0}})],k.prototype,"lineSymbol",void 0),(0,n.Cg)([(0,u.MZ)({type:["show","hide"]})],k.prototype,"listMode",void 0),(0,n.Cg)([(0,u.MZ)({types:x,json:{write:!0}})],k.prototype,"pointSymbol",void 0),(0,n.Cg)([(0,u.MZ)({types:j,json:{write:!0}})],k.prototype,"polygonSymbol",void 0),(0,n.Cg)([(0,u.MZ)({type:["GeoRSS"]})],k.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,u.MZ)(v.OZ)],k.prototype,"url",void 0),(0,n.Cg)([(0,u.MZ)({json:{origins:{service:{read:{source:"name",reader:e=>e||void 0}}}}})],k.prototype,"title",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1},value:"geo-rss"})],k.prototype,"type",void 0),k=(0,n.Cg)([(0,p.$)("esri.layers.GeoRSSLayer")],k);const _=k},89420:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(31635),i=r(90629),s=r(10107),o=r(56507),l=(r(44208),r(87811),r(64108)),a=r(20378);let u=class extends a.A{constructor(e){super(e),this.angle=0,this.type=null,this.xoffset=0,this.yoffset=0,this.size=9}hash(){return`${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`}};(0,n.Cg)([(0,s.MZ)({type:Number,json:{read:e=>e&&-1*e,write:(e,t)=>t.angle=e&&-1*e}})],u.prototype,"angle",void 0),(0,n.Cg)([(0,s.MZ)({type:["simple-marker","picture-marker"],readOnly:!0})],u.prototype,"type",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,cast:i.cr,json:{write:!0}})],u.prototype,"xoffset",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,cast:i.cr,json:{write:!0}})],u.prototype,"yoffset",void 0),(0,n.Cg)([(0,s.MZ)({cast:e=>"auto"===e?e:(0,o.GB)((0,i.cr)(e)),json:{write:!0}})],u.prototype,"size",void 0),u=(0,n.Cg)([(0,l.$)("esri.symbols.MarkerSymbol")],u)},91218:(e,t,r)=>{r.r(t),r.d(t,{canProjectWithoutEngine:()=>q,initializeProjection:()=>B,isEqualBaseGCS:()=>F,isLoaded:()=>k,isLoadedOrLoad:()=>_,isLoadedOrLoadFor:()=>$,load:()=>L,project:()=>E,projectExtent:()=>re,projectMany:()=>O,projectMultipoint:()=>Y,projectOrLoad:()=>D,projectOrLoadMany:()=>T,projectPoint:()=>J,projectPolygon:()=>ee,projectPolyline:()=>Q,projectWithZConversion:()=>N,projectWithoutEngine:()=>K,requiresLoad:()=>Z,test:()=>U,tryProjectWithZConversion:()=>H,unload:()=>G});var n=r(49186),i=r(74887),s=r(62788),o=r(95488),l=r(51850),a=r(21276),u=r(73941),c=r(5443),p=r(91075),h=r(48526),d=r(86738),f=r(39829),y=r(82799),g=r(16930),m=r(159),S=r(9762),w=r(37539);function v(e,t,r,n,i,s){return M[0]=e,M[1]=t,M[2]=r,(0,S.projectBuffer)(M,n,0,i,s,0)}const M=(0,l.vt)();var C=r(21325),b=r(62815);let A=null,P=null,I=null,R=null,x={};const j=new o.I;function k(){return!!(P?.isLoaded()&&I?.isLoaded()&&R?.isLoaded())}function _(){return!!k()||((0,s.gc)(j),L(),!1)}function $(e,t){return!e||!t||q(e,t)||_()}function Z(e,t){return!q(e,t)&&!k()}async function L(e){null==A&&(A=Promise.all([r.e(3276).then(r.bind(r,83276)).then(e=>(P=e,P.load())),r.e(8377).then(r.bind(r,8377)).then(e=>(I=e,I.load())),r.e(2158).then(r.bind(r,12158)).then(e=>(R=e,R.load()))])),await A,(0,i.Te)(e),j.notify()}function E(e,t,r){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),O(e,e[0].spatialReference,t,r)):((0,a.f)(e),O([e],e.spatialReference,t,r)[0])}function O(e,t,r,n){if(null==t||null==r)return e;if(q(t,r,n))return e.map(e=>K(e,t,r));if(null==n?.geographicTransformation&&(0,u.jA)(t))return e.map(e=>K(e,t,g.A.WGS84)).map(e=>H(e,r));if(null==n?.geographicTransformation&&(0,u.jA)(r))return e.map(e=>H(e,g.A.WGS84)).map(e=>K(e,g.A.WGS84,r));if(!k())throw new z;if(!n?.geographicTransformation)if(n?.extendedParams)n={...n,geographicTransformation:R.getTransformation(t,r,n.areaOfInterestExtent)||new m.A};else if(!n?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,r);let i=x[e];i||(i=R.getTransformation(t,r)||new m.A,x[e]=i),n={geographicTransformation:i}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?P.executeMany(e,r,n):I.executeMany(e,r,n)}function D(e,t){const r=T([e],t);return null!=r.pending?{pending:r.pending,geometry:null}:null!=r.geometries?{pending:null,geometry:r.geometries[0]}:{pending:null,geometry:null}}function T(e,t){if(!k())for(const r of e)if(null!=r&&!(0,C.aI)(r.spatialReference,t)&&(0,C.fn)(r.spatialReference)&&(0,C.fn)(t)&&!q(r.spatialReference,t))return(0,s.gc)(j),{pending:L(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,C.aI)(e.spatialReference,t)?e:(0,C.fn)(e.spatialReference)&&(0,C.fn)(t)?H(e,t):null)}}class z extends n.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function G(){A=null,P=null,I=null,R=null,x={}}const U={get loadPromise(){return A}};function H(e,t){try{const r=E(e,t);if(null==r)return null;"xmin"in e&&"xmin"in r&&(r.zmin=e.zmin,r.zmax=e.zmax);const n=(0,b.N)(r.type,e.spatialReference,t);return null!=n&&n(r),r}catch(e){if(!(e instanceof z))throw e;return null}}async function N(e,t,r){const n=e.spatialReference;return null!=n&&null!=t&&await B(n,t,null,r),H(e,t)}function q(e,t,r){return!(r?.areaOfInterestExtent||r?.extendedParams||r?.geographicTransformation)&&(!!(0,C.aI)(e,t)||(0,C.fn)(e)&&(0,C.fn)(t)&&!!(0,w.jd)(e,t))}function F(e,t){if((0,C.aI)(e,t))return!0;if(!(0,C.fn)(e)||!(0,C.fn)(t))return!1;const r=(0,C.oT)(e)||(0,C.K8)(e)||(0,C.x1)(e),n=(0,C.oT)(t)||(0,C.K8)(t)||(0,C.x1)(t);return r&&n}async function B(e,t,r,n){if(k())return(0,i.NO)(n);if(Array.isArray(e)){for(const{source:t,dest:r,options:i}of e)if(t&&r&&!q(t,r,i))return L(n)}else if(e&&t&&!q(e,t,r))return L(n);return(0,i.NO)(n)}function K(e,t,r){return e?"x"in e?V(e,t,new d.A,r,0):"xmin"in e?ne(e,t,new c.A,r,0):"rings"in e?te(e,t,new f.A,r,0):"paths"in e?X(e,t,new y.A,r,0):"points"in e?W(e,t,new h.A,r,0):null:null}function J(e,t,r=t.spatialReference,n=0){return null!=r&&null!=e.spatialReference&&null!=V(e,e.spatialReference,t,r,n)}function V(e,t,r,n,i){se[0]=e.x,se[1]=e.y;const s=e.z;return se[2]=void 0!==s?s:i,(0,S.projectBuffer)(se,t,0,se,n,0)?(r.x=se[0],r.y=se[1],r.spatialReference=n,void 0!==s||(0,u.xP)(n)?(r.z=se[2],r.hasZ=!0):(r.z=void 0,r.hasZ=!1),void 0===e.m?(r.m=void 0,r.hasM=!1):(r.m=e.m,r.hasM=!0),r):null}function Y(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=W(e,e.spatialReference,t,r,n)}function W(e,t,r,n,i){const{points:s,hasZ:o,hasM:l}=e,a=[],c=s.length,p=[];for(const e of s)p.push(e[0],e[1],o?e[2]:i);if(!(0,S.projectBuffer)(p,t,0,p,n,0,c))return null;const h=o||(0,u.xP)(n);for(let e=0;e<c;++e){const t=3*e,r=p[t],n=p[t+1];h&&l?a.push([r,n,p[t+2],s[e][3]]):h?a.push([r,n,p[t+2]]):l?a.push([r,n,s[e][2]]):a.push([r,n])}return r.points=a,r.spatialReference=n,r.hasZ=o,r.hasM=l,r}function Q(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=X(e,e.spatialReference,t,r,n)}function X(e,t,r,n,i){const{paths:s,hasZ:o,hasM:l}=e,a=[];if(!ie(s,o??!1,l??!1,t,a,n,i))return null;const c=o||(0,u.xP)(n);return r.paths=a,r.spatialReference=n,r.hasZ=c,r.hasM=l,r}function ee(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=te(e,e.spatialReference,t,r,n)}function te(e,t,r,n,i){const{rings:s,hasZ:o,hasM:l}=e,a=[];if(!ie(s,o??!1,l??!1,t,a,n,i))return null;const c=o||(0,u.xP)(n);return r.rings=a,r.spatialReference=n,r.hasZ=c,r.hasM=l,r}function re(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=ne(e,e.spatialReference,t,r,n)}function ne(e,t,r,n,i){const{xmin:s,ymin:o,xmax:l,ymax:a,hasZ:c,hasM:p}=e;if(!v(s,o,c?e.zmin:i,t,se,n))return null;const h=c||(0,u.xP)(n);return r.xmin=se[0],r.ymin=se[1],h&&(r.zmin=se[2]),v(l,a,c?e.zmax:i,t,se,n)?(r.xmax=se[0],r.ymax=se[1],h&&(r.zmax=se[2]),p&&(r.mmin=e.mmin,r.mmax=e.mmax),r.spatialReference=n,r):null}function ie(e,t,r,n,i,s,o=0){const l=new Array;for(const r of e)for(const e of r)l.push(e[0],e[1],t?e[2]:o);if(!(0,S.projectBuffer)(l,n,0,l,s,0))return!1;let a=0;i.length=0;const c=t||(0,u.xP)(s);for(const t of e){const e=new Array;for(const n of t)c&&r?e.push([l[a++],l[a++],l[a++],n[3]]):c?e.push([l[a++],l[a++],l[a++]]):r?(e.push([l[a++],l[a++],n[2]]),a++):(e.push([l[a++],l[a++]]),a++);i.push(e)}return!0}const se=(0,l.vt)()},94985:(e,t,r)=>{r.d(t,{A:()=>f});var n,i=r(31635),s=r(68197),o=r(66552),l=r(4718),a=r(10107),u=(r(44208),r(53966),r(93223)),c=r(64108),p=r(65851),h=r(31593);const d=new o.J({esriSFSSolid:"solid",esriSFSNull:"none",esriSFSHorizontal:"horizontal",esriSFSVertical:"vertical",esriSFSForwardDiagonal:"forward-diagonal",esriSFSBackwardDiagonal:"backward-diagonal",esriSFSCross:"cross",esriSFSDiagonalCross:"diagonal-cross"});let f=n=class extends p.A{constructor(...e){super(...e),this.color=new s.A([0,0,0,.25]),this.outline=new h.A,this.type="simple-fill",this.style="solid"}normalizeCtorArgs(e,t,r){if(e&&"string"!=typeof e)return e;const n={};return e&&(n.style=e),t&&(n.outline=t),r&&(n.color=r),n}clone(){return new n({color:(0,l.o8)(this.color),outline:this.outline&&this.outline.clone(),style:this.style})}hash(){return`${super.hash()}${this.style}.${this.color&&this.color.hash()}`}};(0,i.Cg)([(0,a.MZ)()],f.prototype,"color",void 0),(0,i.Cg)([(0,a.MZ)()],f.prototype,"outline",void 0),(0,i.Cg)([(0,u.e)({esriSFS:"simple-fill"},{readOnly:!0})],f.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:d.apiValues,json:{read:d.read,write:d.write}})],f.prototype,"style",void 0),f=n=(0,i.Cg)([(0,c.$)("esri.symbols.SimpleFillSymbol")],f)},99157:(e,t,r)=>{r.d(t,{A:()=>a});var n,i=r(31635),s=r(69622),o=r(10107),l=(r(44208),r(53966),r(87811),r(64108));let a=n=class extends s.A{constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new n({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,i.Cg)([(0,o.MZ)()],a.prototype,"isInverse",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"wkt",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"wkid",void 0),a=n=(0,i.Cg)([(0,l.$)("esri.geometry.operators.support.GeographicTransformationStep")],a)}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5890],{159:(e,t,r)=>{r.d(t,{A:()=>u});var n,i=r(31635),s=r(69622),o=r(10107),l=(r(44208),r(53966),r(87811),r(64108)),a=r(99157);let u=n=class extends s.A{constructor(e){super(e),this.steps=[]}getInverse(){const e=new n;for(let t=this.steps.length-1;t>=0;t--){const r=this.steps[t];e.steps.push(r.getInverse())}return e}};(0,i.Cg)([(0,o.MZ)({type:[a.A],nonNullable:!0})],u.prototype,"steps",void 0),u=n=(0,i.Cg)([(0,l.$)("esri.geometry.operators.support.GeographicTransformation")],u)},8303:(e,t,r)=>{r.d(t,{A:()=>C});var n=r(31635),i=r(92602),s=r(70333),o=r(78888),l=r(60999),a=r(49186),u=r(53966),c=r(97768),p=r(74887),h=r(84952),d=r(10107),f=(r(44208),r(87811),r(36005)),y=r(64108),g=r(43937),m=r(77548),S=r(20655),w=r(80812),v=r(41318),M=r(10407);const C=e=>{const t=e;let C=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new w.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:n}=await r.e(1204).then(r.bind(r,41204));return(0,p.Te)(t),await n({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:n},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",n),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const n=!s.id?.findCredential(this.url),i=e===r.id;if(i&&r.portal.user)return this._getUserPrivileges(r,n);let o,l;if(i)o=r.portal.url;else try{o=await(0,m.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!o||!(0,h.b8)(o,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;l=await(s.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const a=!0,u=!1,c=!1;if(!l)return{features:{edit:a,fullEdit:u},content:{updateItem:c}};try{if(i?await r.reload():(r=new w.default({id:e,portal:{url:o}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,n)}catch(e){(0,p.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const r=(0,M.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=b.credential===t?b.user:await this._fetchEditingUser(e);return b.credential=t,b.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const n=`${r.owningSystemUrl}/sharing/rest`,i=S.A.getDefault();if(i&&i.loaded&&(0,h.S8)(i.restUrl)===(0,h.S8)(n))return i.user;const a=`${n}/community/self`,u=null!=e?e.signal:null,c=await(0,l.Ke)((0,o.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?v.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,n=this.portalItem?.id&&(this.portalItem.portal||S.A.getDefault());return r&&n&&!(0,h.ut)(n.restUrl,r.restUrl)?(t.messages&&t.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,n.Cg)([(0,d.MZ)({type:w.default})],C.prototype,"portalItem",null),(0,n.Cg)([(0,f.w)("web-document","portalItem",["itemId"])],C.prototype,"readPortalItem",null),(0,n.Cg)([(0,g.K)("web-document","portalItem",{itemId:{type:String}})],C.prototype,"writePortalItem",null),(0,n.Cg)([(0,d.MZ)({clonable:!1})],C.prototype,"resourceReferences",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasEditingPrivileges",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasFullEditingPrivileges",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasUpdateItemPrivileges",void 0),C=(0,n.Cg)([(0,y.$)("esri.layers.mixins.PortalLayer")],C),C},b={credential:null,user:null}},9762:(e,t,r)=>{r.r(t),r.d(t,{projectBuffer:()=>i});var n=r(37539);function i(e,t,r,i,s,o,l=Math.floor(e.length/3)){const a=(0,n.jd)(t,s);if(null==a)return!1;if(a===n.pO){if(e===i&&r===o)return!0;const t=r+3*l;for(let n=r,s=o;n<t;n++,s++)i[s]=e[n];return!0}const u=r+3*l;for(let t=r,n=o;t<u;t+=3,n+=3)a(e,t,i,n);return!0}},10407:(e,t,r)=>{r.d(t,{It:()=>d,LG:()=>o,OM:()=>u,Sm:()=>c,Y:()=>l,bK:()=>a,mm:()=>h,sQ:()=>p});var n=r(91218),i=r(16930),s=r(28735);function o(e,t){if(!l(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function l(e,t){return!!e.typeKeywords?.includes(t)}function a(e){return l(e,h.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function c(e,t,r){r?o(e,t):u(e,t)}async function p(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const r=i.A.WGS84;return await(0,n.initializeProjection)(t,r),(0,n.project)(e,r)}(r)}const h={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function d(e){const{portal:t,isOrgItem:r,itemControl:n}=e,i=t.user?.privileges;let s=!i||i.includes("features:user:edit"),o=!!r&&!!i?.includes("features:user:fullEdit");const l="update"===n||"admin"===n;return l?o=s=!0:o&&(s=!0),{features:{edit:s,fullEdit:o},content:{updateItem:l}}}},20378:(e,t,r)=>{r.d(t,{A:()=>h});var n=r(31635),i=r(68197),s=r(66552),o=r(25482),l=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),u=r(64108);const c=new s.J({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let p=0,h=class extends o.o{constructor(e){super(e),this.id="sym"+p++,this.type=null,this.color=new i.A([0,0,0,1])}readColor(e){return null!=e?.[0]?[e[0],e[1],e[2],e[3]/255]:e}async collectRequiredFields(e,t){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,n.Cg)([(0,l.MZ)({type:c.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:c.write,isRequired:!0}}})],h.prototype,"type",void 0),(0,n.Cg)([(0,l.MZ)({type:i.A,json:{write:{allowNull:!0}}})],h.prototype,"color",void 0),(0,n.Cg)([(0,a.w)("color")],h.prototype,"readColor",null),h=(0,n.Cg)([(0,u.$)("esri.symbols.Symbol")],h)},31593:(e,t,r)=>{r.d(t,{A:()=>C});var n=r(31635),i=r(66552),s=r(4718),o=r(90629),l=r(10107),a=(r(44208),r(53966),r(93223)),u=r(64108),c=(r(87811),r(20378));let p=class extends c.A{constructor(e){super(e),this.type="simple-line",this.width=.75}hash(){return`${this.type}.${this.width}`}};(0,n.Cg)([(0,a.e)({esriSLS:"simple-line"},{readOnly:!0})],p.prototype,"type",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,cast:o.cr,json:{write:!0}})],p.prototype,"width",void 0),p=(0,n.Cg)([(0,u.$)("esri.symbols.LineSymbol")],p);var h,d=r(68197),f=r(25482),y=r(36005),g=r(43937),m=r(83213);let S=h=class extends f.o{constructor(e){super(e),this.placement="begin-end",this.type="line-marker",this.style="arrow"}writeStyle(e,t,r,n){t[r]="web-map"===n?.origin?"arrow":e}set color(e){this._set("color",e)}readColor(e){return null!=e?.[0]?[e[0],e[1],e[2],e[3]/255]:e}writeColor(e,t,r,n){"web-map"===n?.origin||(t[r]=e)}clone(){return new h({color:(0,s.o8)(this.color),placement:this.placement,style:this.style})}hash(){return`${this.placement}.${this.color?.hash()}.${this.style}`}};(0,n.Cg)([(0,l.MZ)({type:["begin","end","begin-end"],json:{write:!0}})],S.prototype,"placement",void 0),(0,n.Cg)([(0,a.e)({"line-marker":"line-marker"},{readOnly:!0}),(0,l.MZ)({json:{origins:{"web-map":{write:!1}}}})],S.prototype,"type",void 0),(0,n.Cg)([(0,l.MZ)({type:m.z})],S.prototype,"style",void 0),(0,n.Cg)([(0,g.K)("style")],S.prototype,"writeStyle",null),(0,n.Cg)([(0,l.MZ)({type:d.A,value:null,json:{write:{allowNull:!0}}})],S.prototype,"color",null),(0,n.Cg)([(0,y.w)("color")],S.prototype,"readColor",null),(0,n.Cg)([(0,g.K)("color")],S.prototype,"writeColor",null),S=h=(0,n.Cg)([(0,u.$)("esri.symbols.LineSymbolMarker")],S);const w=S;var v;const M=new i.J({esriSLSSolid:"solid",esriSLSDash:"dash",esriSLSDot:"dot",esriSLSDashDot:"dash-dot",esriSLSDashDotDot:"long-dash-dot-dot",esriSLSNull:"none",esriSLSShortDash:"short-dash",esriSLSShortDot:"short-dot",esriSLSShortDashDot:"short-dash-dot",esriSLSShortDashDotDot:"short-dash-dot-dot",esriSLSLongDash:"long-dash",esriSLSLongDashDot:"long-dash-dot"});let C=v=class extends p{constructor(...e){super(...e),this.type="simple-line",this.style="solid",this.cap="round",this.join="round",this.marker=null,this.miterLimit=2}normalizeCtorArgs(e,t,r,n,i,s){if(e&&"string"!=typeof e)return e;const l={};return null!=e&&(l.style=e),null!=t&&(l.color=t),null!=r&&(l.width=(0,o.cr)(r)),null!=n&&(l.cap=n),null!=i&&(l.join=i),null!=s&&(l.miterLimit=(0,o.cr)(s)),l}clone(){return new v({color:(0,s.o8)(this.color),style:this.style,width:this.width,cap:this.cap,join:this.join,miterLimit:this.miterLimit,marker:this.marker?.clone()})}hash(){return`${super.hash()}.${this.color?.hash()}.${this.style}.${this.cap}.${this.join}.${this.miterLimit}.${this.marker?.hash()}`}};(0,n.Cg)([(0,a.e)({esriSLS:"simple-line"},{readOnly:!0})],C.prototype,"type",void 0),(0,n.Cg)([(0,l.MZ)({type:M.apiValues,json:{read:M.read,write:M.write}})],C.prototype,"style",void 0),(0,n.Cg)([(0,l.MZ)({type:["butt","round","square"],json:{write:{overridePolicy:(e,t,r)=>({enabled:"round"!==e&&null==r?.origin})}}})],C.prototype,"cap",void 0),(0,n.Cg)([(0,l.MZ)({type:["miter","round","bevel"],json:{write:{overridePolicy:(e,t,r)=>({enabled:"round"!==e&&null==r?.origin})}}})],C.prototype,"join",void 0),(0,n.Cg)([(0,l.MZ)({types:{key:"type",base:null,defaultKeyValue:"line-marker",typeMap:{"line-marker":w}},json:{write:!0,origins:{"web-scene":{write:!1}}}})],C.prototype,"marker",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{read:!1,write:!1}})],C.prototype,"miterLimit",void 0),C=v=(0,n.Cg)([(0,u.$)("esri.symbols.SimpleLineSymbol")],C)},37539:(e,t,r)=>{r.d(t,{pO:()=>y,jd:()=>h,Tp:()=>d,w5:()=>p});var n=r(34727),i=r(83047),s=r(73941),o=r(79258);Math.PI;const l=o.$O.radius,a=o.$O.eccentricitySquared,u={a1:l*a,a2:l*a*l*a,a3:l*a*a/2,a4:l*a*l*a*2.5,a5:l*a+l*a*a/2,a6:1-a};o.$O.radius,o.$O.flattening,o.Sw.radius,o.Sw.flattening,o.sH.radius,o.sH.flattening,o.sH.radius;var c=r(21325);const p={2:{5:y,7:null,9:null,10:y,1:b,6:null,8:null,0:null,3:m,11:S,2:y,4:x},5:{5:y,7:null,9:null,10:y,1:b,6:null,8:null,0:null,3:m,11:S,2:y,4:x},7:{5:null,7:y,9:null,10:y,1:null,6:C,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:y,10:y,1:null,6:null,8:M,0:null,3:null,11:null,2:null,4:null},3:{5:g,7:null,9:null,10:g,1:function(e,t,r,n){const i=e[t]/L,s=Z-2*Math.atan(Math.exp(-e[t+1]/L)),o=L+e[t+2],l=Math.cos(s)*o;r[n]=Math.cos(i)*l,r[n+1]=Math.sin(i)*l,r[n+2]=Math.sin(s)*o},6:null,8:null,0:null,3:y,11:function(e,t,r,n){g(e,t,r,n),S(r,n,r,n)},2:g,4:function(e,t,r,n){g(e,t,r,n),x(r,n,r,n)}},4:{5:j,7:null,9:null,10:j,1:function(e,t,r,n){j(e,t,r,n),b(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){j(e,t,r,n),m(r,n,r,n)},11:function(e,t,r,n){j(e,t,r,n),S(r,n,r,n)},2:j,4:y},1:{5:R,7:null,9:null,10:R,1:y,6:null,8:null,0:null,3:function(e,t,r,n){R(e,t,r,n),m(r,n,r,n)},11:function(e,t,r,n){R(e,t,r,n),S(r,n,r,n)},2:R,4:function(e,t,r,n){R(e,t,r,n),x(r,n,r,n)}},6:{5:null,7:I,9:null,10:I,1:null,6:y,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:P,10:P,1:null,6:null,8:y,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:y,3:null,11:null,2:null,4:null},10:{5:y,7:y,9:y,10:y,1:b,6:C,8:M,0:null,3:m,11:S,2:y,4:x},11:{5:w,7:null,9:null,10:w,1:function(e,t,r,n){w(e,t,r,n),b(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){w(e,t,r,n),m(r,n,r,n)},11:y,2:w,4:function(e,t,r,n){w(e,t,r,n),x(r,n,r,n)}}};function h(e,t){return d(e,t)?.projector}function d(e,t){if(null==e||null==t)return null;if(k.source.spatialReference===e&&k.dest.spatialReference===t)return k;const r=f(e,k.source),n=f(t,k.dest);return 0===r&&0===n?(0,c.aI)(e,t)?k.projector=y:k.projector=null:k.projector=p[r][n],k}function f(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,i.GA)(e,1)),(0,s.jA)(e)?t.spatialReferenceId=1:(0,c.oT)(e)?t.spatialReferenceId=2:(0,c.K8)(e)?t.spatialReferenceId=3:(0,c.r1)(e)?t.spatialReferenceId=11:e.wkt===s.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===s.FY.wkt?t.spatialReferenceId=6:e.wkt===s.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(e)?t.spatialReferenceId=7:(0,c.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function y(e,t,r,n){e!==r&&(r[n++]=e[t++],r[n++]=e[t++],r[n]=e[t])}function g(e,t,r,n){r[n]=$*(e[t]/L),r[n+1]=$*(Z-2*Math.atan(Math.exp(-e[t+1]/L))),r[n+2]=e[t+2]}function m(e,t,r,i){!function(e,t,r,i,s){const o=.4999999*Math.PI,l=(0,n.qE)(_*e[t+1],-o,o),a=Math.sin(l);r[i++]=_*e[t]*s.radius,r[i++]=s.halfSemiMajorAxis*Math.log((1+a)/(1-a)),r[i]=e[t+2]}(e,t,r,i,o.$O)}function S(e,t,r,n){r[n]=e[t]*E,r[n+1]=e[t+1]*E,r[n+2]=e[t+2]}function w(e,t,r,n){r[n]=e[t]*O,r[n+1]=e[t+1]*O,r[n+2]=e[t+2]}function v(e,t,r,n,i){const s=i+e[t+2],o=_*e[t+1],l=_*e[t],a=Math.cos(o)*s;r[n]=Math.cos(l)*a,r[n+1]=Math.sin(l)*a,r[n+2]=Math.sin(o)*s}function M(e,t,r,n){v(e,t,r,n,o.Sw.radius)}function C(e,t,r,n){v(e,t,r,n,o.sH.radius)}function b(e,t,r,n){v(e,t,r,n,o.$O.radius)}function A(e,t,r,i,s){const o=e[t],l=e[t+1],a=e[t+2],u=Math.sqrt(o*o+l*l+a*a),c=(0,n.YN)(a/(0===u?1:u)),p=Math.atan2(l,o);r[i++]=$*p,r[i++]=$*c,r[i]=u-s}function P(e,t,r,n){A(e,t,r,n,o.Sw.radius)}function I(e,t,r,n){A(e,t,r,n,o.sH.radius)}function R(e,t,r,n){A(e,t,r,n,o.$O.radius)}function x(e,t,r,n){!function(e,t,r,n,i){const s=_*e[t],o=_*e[t+1],l=e[t+2],a=Math.sin(o),u=Math.cos(o),c=i.radius/Math.sqrt(1-i.eccentricitySquared*a*a);r[n++]=(c+l)*u*Math.cos(s),r[n++]=(c+l)*u*Math.sin(s),r[n++]=(c*(1-i.eccentricitySquared)+l)*a}(e,t,r,n,o.$O)}function j(e,t,r,n){const i=u,s=e[t],l=e[t+1],a=e[t+2];let c,p,h,d,f,y,g,m,S,w,v,M,C,b,A,P,I,R,x,j,k;c=Math.abs(a),p=s*s+l*l,h=Math.sqrt(p),d=p+a*a,f=Math.sqrt(d),j=Math.atan2(l,s),y=a*a/d,g=p/d,b=i.a2/f,A=i.a3-i.a4/f,g>.3?(m=c/f*(1+g*(i.a1+b+y*A)/f),x=Math.asin(m),w=m*m,S=Math.sqrt(1-w)):(S=h/f*(1-y*(i.a5-b-g*A)/f),x=Math.acos(S),w=1-S*S,m=Math.sqrt(w)),v=1-o.$O.eccentricitySquared*w,M=o.$O.radius/Math.sqrt(v),C=i.a6*M,b=h-M*S,A=c-C*m,I=S*b+m*A,P=S*A-m*b,R=P/(C/v+I),x+=R,k=I+P*R/2,a<0&&(x=-x),r[n++]=$*j,r[n++]=$*x,r[n]=k}const k={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:y},_=(0,n.kU)(1),$=(0,n.KJ)(1),Z=.5*Math.PI,L=o.$O.radius,E=L*Math.PI/180,O=180/(L*Math.PI)},53930:(e,t,r)=>{r.d(t,{A:()=>g});var n,i=r(31635),s=r(68197),o=r(66552),l=r(4718),a=r(90629),u=r(10107),c=(r(44208),r(53966),r(93223)),p=r(64108),h=r(43937),d=r(89420),f=r(31593);const y=new o.J({esriSMSCircle:"circle",esriSMSSquare:"square",esriSMSCross:"cross",esriSMSX:"x",esriSMSDiamond:"diamond",esriSMSTriangle:"triangle",esriSMSPath:"path"});let g=n=class extends d.A{constructor(...e){super(...e),this.color=new s.A([255,255,255,.25]),this.type="simple-marker",this.size=12,this.style="circle",this.outline=new f.A}normalizeCtorArgs(e,t,r,n){if(e&&"string"!=typeof e)return e;const i={};return e&&(i.style=e),null!=t&&(i.size=(0,a.cr)(t)),r&&(i.outline=r),n&&(i.color=n),i}writeColor(e,t){e&&"x"!==this.style&&"cross"!==this.style&&(t.color=e.toJSON()),null===e&&(t.color=null)}set path(e){this.style="path",this._set("path",e)}clone(){return new n({angle:this.angle,color:(0,l.o8)(this.color),outline:this.outline&&this.outline.clone(),path:this.path,size:this.size,style:this.style,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${super.hash()}.${this.color&&this.color.hash()}.${this.path}.${this.style}.${this.outline?.hash()}`}};(0,i.Cg)([(0,u.MZ)()],g.prototype,"color",void 0),(0,i.Cg)([(0,h.K)("color")],g.prototype,"writeColor",null),(0,i.Cg)([(0,c.e)({esriSMS:"simple-marker"},{readOnly:!0})],g.prototype,"type",void 0),(0,i.Cg)([(0,u.MZ)()],g.prototype,"size",void 0),(0,i.Cg)([(0,u.MZ)({type:y.apiValues,json:{read:y.read,write:y.write}})],g.prototype,"style",void 0),(0,i.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],g.prototype,"path",null),(0,i.Cg)([(0,u.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":f.A}},json:{default:null,write:!0}})],g.prototype,"outline",void 0),g=n=(0,i.Cg)([(0,p.$)("esri.symbols.SimpleMarkerSymbol")],g)},58592:(e,t,r)=>{r.d(t,{A:()=>d});var n,i=r(31635),s=r(4718),o=r(90629),l=r(10107),a=(r(44208),r(53966),r(93223)),u=r(36005),c=r(64108),p=r(89420),h=r(77040);let d=n=class extends p.A{constructor(...e){super(...e),this.color=null,this.type="picture-marker",this.url=null,this.source=null,this.height=12,this.width=12,this.size=null}normalizeCtorArgs(e,t,r){if(e&&"string"!=typeof e&&null==e.imageData)return e;const n={};return e&&(n.url=e),null!=t&&(n.width=(0,o.cr)(t)),null!=r&&(n.height=(0,o.cr)(r)),n}readHeight(e,t){return t.size||e}readWidth(e,t){return t.size||e}clone(){const e=new n({angle:this.angle,height:this.height,url:this.url,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset});return e._set("source",(0,s.o8)(this.source)),e}hash(){return`${super.hash()}.${this.height}.${this.url}.${this.width}`}};(0,i.Cg)([(0,l.MZ)({json:{write:!1}})],d.prototype,"color",void 0),(0,i.Cg)([(0,a.e)({esriPMS:"picture-marker"},{readOnly:!0})],d.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)(h.ku)],d.prototype,"url",void 0),(0,i.Cg)([(0,l.MZ)(h.k7)],d.prototype,"source",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,cast:o.cr,json:{write:!0}})],d.prototype,"height",void 0),(0,i.Cg)([(0,u.w)("height",["height","size"])],d.prototype,"readHeight",null),(0,i.Cg)([(0,l.MZ)({type:Number,cast:o.cr,json:{write:!0}})],d.prototype,"width",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!1}})],d.prototype,"size",void 0),d=n=(0,i.Cg)([(0,c.$)("esri.symbols.PictureMarkerSymbol")],d)},60999:(e,t,r)=>{r.d(t,{DZ:()=>f,Ke:()=>d,Tj:()=>c,UT:()=>y,aD:()=>m,jJ:()=>u});var n=r(31635),i=r(69622),s=r(97768),o=r(74887),l=r(10107),a=r(64108);function u(e,t,r){return(0,o.Lx)(e.map((e,n)=>t.apply(r,[e,n])))}async function c(e,t,r){return(await(0,o.Lx)(e.map((e,n)=>t.apply(r,[e,n])))).map(e=>e.value)}function p(e){return{ok:!0,value:e}}function h(e){return{ok:!1,error:e}}async function d(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return p(await e)}catch(e){return h(e)}}async function f(e){try{return p(await e)}catch(e){return(0,o.QP)(e),h(e)}}function y(e,t){return new g(e,t)}let g=class extends i.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=p(e),this._cleanup()},e=>{this._result=h(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,n.Cg)([(0,l.MZ)()],g.prototype,"value",null),(0,n.Cg)([(0,l.MZ)()],g.prototype,"error",null),(0,n.Cg)([(0,l.MZ)()],g.prototype,"finished",null),(0,n.Cg)([(0,l.MZ)()],g.prototype,"promise",void 0),(0,n.Cg)([(0,l.MZ)()],g.prototype,"_result",void 0),g=(0,n.Cg)([(0,a.$)("esri.core.asyncUtils.ReactiveTask")],g);class m{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,n.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,n.hk)(t)}}}},62815:(e,t,r)=>{r.d(t,{N:()=>o});var n=r(83047),i=r(73941),s=r(21325);function o(e,t,r){if(null==t||null==r||r.vcsWkid||(0,s.aI)(t,r)||(0,i.xP)(t)||(0,i.xP)(r))return null;const o=(0,n.G9)(t)/(0,n.G9)(r);if(1===o)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,o);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return null}}},65851:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(31635),i=r(10107),s=(r(44208),r(53966),r(87811),r(64108)),o=r(31593),l=r(20378);let a=class extends l.A{constructor(e){super(e),this.outline=null,this.type=null}hash(){return`${this.type}.${this.outline?.hash()}`}};(0,n.Cg)([(0,i.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":o.A}},json:{default:null,write:!0}})],a.prototype,"outline",void 0),(0,n.Cg)([(0,i.MZ)({type:["simple-fill","picture-fill"],readOnly:!0})],a.prototype,"type",void 0),a=(0,n.Cg)([(0,s.$)("esri.symbols.FillSymbol")],a)},68197:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(40876),i=r(34727),s=r(56507);function o(e){return(0,i.qE)((0,s.Vr)(e),0,255)}function l(e,t){const r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}class a{static blendColors(e,t,r,n=new a){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){const r=(0,n.lT)(e);return r?a.fromArray(r,t):null}static fromHex(e,t=new a){const r=(0,n.oW)(e);return r?a.fromArray(r,t):null}static fromArray(e,t=new a){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,n.Eq)(e);return r?a.fromArray(r,t):null}static fromJSON(e){return null!=e?new a([e[0],e[1],e[2],(e[3]??255)/255]):void 0}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e,t){return null==e?null:(t??=[0,0,0,0],t[0]=e.r/255,t[1]=e.g/255,t[2]=e.b/255,t[3]=null!=e.a?e.a:1,t)}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?a.fromString(e,this):Array.isArray(e)?a.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof a||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,n=3===r||4===r,i=4===r||8===r,s=`#${l(this.r,n)}${l(this.g,n)}${l(this.b,n)}${i?l(Math.round(255*this.a),n):""}`;return t?s.toUpperCase():s}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){const t=o(this.r),r=o(this.g),n=o(this.b);return 0===e||1!==this.a?[t,r,n,o(255*this.a)]:[t,r,n]}clone(){return new a(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,n.c1)(this.r),this.g=(0,n.c1)(this.g),this.b=(0,n.c1)(this.b),this.a=(0,n.G1)(this.a),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}a.prototype.declaredClass="esri.Color"},69540:(e,t,r)=>{r.d(t,{OU:()=>c,Pw:()=>p});var n=r(31635),i=r(69622),s=(r(44208),r(4718)),o=(r(53966),r(97768)),l=r(88620),a=r(64108);const u=Symbol("ClonableMixin"),c=e=>{var t;const r=e;let i=class extends r{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){const t=(0,l.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const r=t.metadata,n=t.store,i={},a=new Map;for(const t in r){const o=r[t],l=n?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==l&&0!==l&&5!==l&&4!==l)continue;const c=this[t];let p=null;if("function"==typeof u)p=u(c,e);else if("reference"===u)p=c;else if(p=(0,s.TU)(c,e),null!=c&&null==p)continue;0===l?a.set(t,p):i[t]=p}const u=new(0,Object.getPrototypeOf(this).constructor)(i);if(a.size){const e=(0,l.oY)(u)?.store;if(e)for(const[t,r]of a)e.set(t,r,0)}return u}};return i=(0,n.Cg)([(0,a.$)("esri.core.Clonable")],i),i},p=c(i.A)},77040:(e,t,r)=>{r.d(t,{k7:()=>l,ku:()=>o});var n=r(84952),i=r(97159);function s(e,t){if(!(0,n.oP)(e)){const r=function(e){if(!e)return null;const{origin:t,layer:r}=e;if("service"!==t&&"portal-item"!==t)return null;const n=r?.type;return"feature"===n||"stream"===n?r.parsedUrl?.path:"map-image"===n||"tile"===n?e.url?.path:null}(t);if(r)return(0,n.fj)(r,"images",e)}return(0,i.f)(e,t)}const o={json:{read:{source:["imageData","url"],reader:function(e,t,r){return t.imageData?(0,n.Hg)({mediaType:t.contentType||"image/png",isBase64:!0,data:t.imageData}):s(t.url,r)}},write:{writer(e,t,r,s){!function(e,t,r,s){if((0,n.DB)(e)){const o=(0,n.r$)(e);if(!o)return;t.contentType=o.mediaType,t.imageData=o.data,r&&r.imageData===t.imageData&&r.url&&(0,i.w)(r.url,t,"url",s)}else(0,i.w)(e,t,"url",s)}(e,t,this.source,s)}}}},l={readOnly:!0,json:{read:{source:["imageData","url"],reader(e,t,r){const n={};return t.imageData&&(n.imageData=t.imageData),t.contentType&&(n.contentType=t.contentType),t.url&&(n.url=s(t.url,r)),n}}}}},78553:(e,t,r)=>{r.d(t,{D:()=>s,p:()=>i});var n=r(56507);function i(e){const t=(0,n.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function s(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}},83213:(e,t,r)=>{r.d(t,{x:()=>n,z:()=>i});const n=["begin","end","begin-end"],i=["arrow","circle","square","diamond","cross","x"]},85582:(e,t,r)=>{r.r(t),r.d(t,{default:()=>_});var n=r(31635),i=r(92602),s=r(78888),o=r(25728),l=r(74887),a=r(84952),u=r(10107),c=(r(44208),r(53966),r(87811),r(36005)),p=r(64108),h=r(5443),d=r(21325),f=r(4146),y=r(63074),g=r(16131),m=r(8303),S=r(54310),w=r(25036),v=r(10873),M=r(58592),C=r(94985),b=r(31593),A=r(53930),P=r(20378);const I=["atom","xml"],R={base:P.A,key:"type",typeMap:{"simple-line":b.A},errorContext:"symbol"},x={base:P.A,key:"type",typeMap:{"picture-marker":M.A,"simple-marker":A.A},errorContext:"symbol"},j={base:P.A,key:"type",typeMap:{"simple-fill":C.A},errorContext:"symbol"};let k=class extends((0,y.dM)((0,S.J)((0,g.q)((0,m.A)((0,w.j)((0,o.P)(f.A))))))){constructor(...e){super(...e),this.description=null,this.fullExtent=null,this.legendEnabled=!0,this.lineSymbol=null,this.pointSymbol=null,this.polygonSymbol=null,this.operationalLayerType="GeoRSS",this.url=null,this.type="geo-rss"}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readFeatureCollections(e,t){return t.featureCollection.layers.forEach(e=>{const t=e.layerDefinition.drawingInfo.renderer.symbol;t&&"esriSFS"===t.type&&t.outline?.style.includes("esriSFS")&&(t.outline.style="esriSLSSolid")}),t.featureCollection.layers}get hasPoints(){return this._hasGeometry("esriGeometryPoint")}get hasPolylines(){return this._hasGeometry("esriGeometryPolyline")}get hasPolygons(){return this._hasGeometry("esriGeometryPolygon")}get title(){const e=this._get("title");return e&&"defaults"!==this.originOf("title")?e:this.url?(0,a.e7)(this.url,I)||"GeoRSS":e}set title(e){this._set("title",e)}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service","Feature Service","Feature Collection","Scene Service"]},e).catch(l.QP).then(()=>this._fetchService(t)).then(e=>{this.read(e,{origin:"service"})})),Promise.resolve(this)}async hasDataChanged(){const e=await this._fetchService();return this.read(e,{origin:"service",ignoreDefaults:!0}),!0}async _fetchService(e){const t=this.spatialReference,{data:r}=await(0,s.A)(i.A.geoRSSServiceUrl,{query:{url:this.url,refresh:!!this.loaded||void 0,outSR:(0,d.oT)(t)?void 0:t.wkid??JSON.stringify(t)},signal:e});return r}_hasGeometry(e){return this.featureCollections?.some(t=>t.featureSet?.geometryType===e&&t.featureSet.features?.length>0)??!1}};(0,n.Cg)([(0,u.MZ)()],k.prototype,"description",void 0),(0,n.Cg)([(0,u.MZ)()],k.prototype,"featureCollections",void 0),(0,n.Cg)([(0,c.w)("service","featureCollections",["featureCollection.layers"])],k.prototype,"readFeatureCollections",null),(0,n.Cg)([(0,u.MZ)({type:h.A,json:{name:"lookAtExtent"}})],k.prototype,"fullExtent",void 0),(0,n.Cg)([(0,u.MZ)(v.id)],k.prototype,"id",void 0),(0,n.Cg)([(0,u.MZ)(v.fV)],k.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,u.MZ)({types:R,json:{write:!0}})],k.prototype,"lineSymbol",void 0),(0,n.Cg)([(0,u.MZ)({type:["show","hide"]})],k.prototype,"listMode",void 0),(0,n.Cg)([(0,u.MZ)({types:x,json:{write:!0}})],k.prototype,"pointSymbol",void 0),(0,n.Cg)([(0,u.MZ)({types:j,json:{write:!0}})],k.prototype,"polygonSymbol",void 0),(0,n.Cg)([(0,u.MZ)({type:["GeoRSS"]})],k.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,u.MZ)(v.OZ)],k.prototype,"url",void 0),(0,n.Cg)([(0,u.MZ)({json:{origins:{service:{read:{source:"name",reader:e=>e||void 0}}}}})],k.prototype,"title",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1},value:"geo-rss"})],k.prototype,"type",void 0),k=(0,n.Cg)([(0,p.$)("esri.layers.GeoRSSLayer")],k);const _=k},89420:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(31635),i=r(90629),s=r(10107),o=r(56507),l=(r(44208),r(87811),r(64108)),a=r(20378);let u=class extends a.A{constructor(e){super(e),this.angle=0,this.type=null,this.xoffset=0,this.yoffset=0,this.size=9}hash(){return`${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`}};(0,n.Cg)([(0,s.MZ)({type:Number,json:{read:e=>e&&-1*e,write:(e,t)=>t.angle=e&&-1*e}})],u.prototype,"angle",void 0),(0,n.Cg)([(0,s.MZ)({type:["simple-marker","picture-marker"],readOnly:!0})],u.prototype,"type",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,cast:i.cr,json:{write:!0}})],u.prototype,"xoffset",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,cast:i.cr,json:{write:!0}})],u.prototype,"yoffset",void 0),(0,n.Cg)([(0,s.MZ)({cast:e=>"auto"===e?e:(0,o.GB)((0,i.cr)(e)),json:{write:!0}})],u.prototype,"size",void 0),u=(0,n.Cg)([(0,l.$)("esri.symbols.MarkerSymbol")],u)},91218:(e,t,r)=>{r.r(t),r.d(t,{canProjectWithoutEngine:()=>q,initializeProjection:()=>B,isEqualBaseGCS:()=>F,isLoaded:()=>k,isLoadedOrLoad:()=>_,isLoadedOrLoadFor:()=>$,load:()=>L,project:()=>E,projectExtent:()=>re,projectMany:()=>O,projectMultipoint:()=>Y,projectOrLoad:()=>D,projectOrLoadMany:()=>T,projectPoint:()=>J,projectPolygon:()=>ee,projectPolyline:()=>Q,projectWithZConversion:()=>N,projectWithoutEngine:()=>K,requiresLoad:()=>Z,test:()=>U,tryProjectWithZConversion:()=>H,unload:()=>G});var n=r(49186),i=r(74887),s=r(62788),o=r(95488),l=r(51850),a=r(21276),u=r(73941),c=r(5443),p=r(91075),h=r(48526),d=r(86738),f=r(39829),y=r(82799),g=r(16930),m=r(159),S=r(9762),w=r(37539);function v(e,t,r,n,i,s){return M[0]=e,M[1]=t,M[2]=r,(0,S.projectBuffer)(M,n,0,i,s,0)}const M=(0,l.vt)();var C=r(21325),b=r(62815);let A=null,P=null,I=null,R=null,x={};const j=new o.I;function k(){return!!(P?.isLoaded()&&I?.isLoaded()&&R?.isLoaded())}function _(){return!!k()||((0,s.gc)(j),L(),!1)}function $(e,t){return!e||!t||q(e,t)||_()}function Z(e,t){return!q(e,t)&&!k()}async function L(e){null==A&&(A=Promise.all([r.e(3276).then(r.bind(r,83276)).then(e=>(P=e,P.load())),r.e(8377).then(r.bind(r,8377)).then(e=>(I=e,I.load())),r.e(2158).then(r.bind(r,12158)).then(e=>(R=e,R.load()))])),await A,(0,i.Te)(e),j.notify()}function E(e,t,r){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),O(e,e[0].spatialReference,t,r)):((0,a.f)(e),O([e],e.spatialReference,t,r)[0])}function O(e,t,r,n){if(null==t||null==r)return e;if(q(t,r,n))return e.map(e=>K(e,t,r));if(null==n?.geographicTransformation&&(0,u.jA)(t))return e.map(e=>K(e,t,g.A.WGS84)).map(e=>H(e,r));if(null==n?.geographicTransformation&&(0,u.jA)(r))return e.map(e=>H(e,g.A.WGS84)).map(e=>K(e,g.A.WGS84,r));if(!k())throw new z;if(!n?.geographicTransformation)if(n?.extendedParams)n={...n,geographicTransformation:R.getTransformation(t,r,n.areaOfInterestExtent)||new m.A};else if(!n?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,r);let i=x[e];i||(i=R.getTransformation(t,r)||new m.A,x[e]=i),n={geographicTransformation:i}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?P.executeMany(e,r,n):I.executeMany(e,r,n)}function D(e,t){const r=T([e],t);return null!=r.pending?{pending:r.pending,geometry:null}:null!=r.geometries?{pending:null,geometry:r.geometries[0]}:{pending:null,geometry:null}}function T(e,t){if(!k())for(const r of e)if(null!=r&&!(0,C.aI)(r.spatialReference,t)&&(0,C.fn)(r.spatialReference)&&(0,C.fn)(t)&&!q(r.spatialReference,t))return(0,s.gc)(j),{pending:L(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,C.aI)(e.spatialReference,t)?e:(0,C.fn)(e.spatialReference)&&(0,C.fn)(t)?H(e,t):null)}}class z extends n.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function G(){A=null,P=null,I=null,R=null,x={}}const U={get loadPromise(){return A}};function H(e,t){try{const r=E(e,t);if(null==r)return null;"xmin"in e&&"xmin"in r&&(r.zmin=e.zmin,r.zmax=e.zmax);const n=(0,b.N)(r.type,e.spatialReference,t);return null!=n&&n(r),r}catch(e){if(!(e instanceof z))throw e;return null}}async function N(e,t,r){const n=e.spatialReference;return null!=n&&null!=t&&await B(n,t,null,r),H(e,t)}function q(e,t,r){return!(r?.areaOfInterestExtent||r?.extendedParams||r?.geographicTransformation)&&(!!(0,C.aI)(e,t)||(0,C.fn)(e)&&(0,C.fn)(t)&&!!(0,w.jd)(e,t))}function F(e,t){if((0,C.aI)(e,t))return!0;if(!(0,C.fn)(e)||!(0,C.fn)(t))return!1;const r=(0,C.oT)(e)||(0,C.K8)(e)||(0,C.x1)(e),n=(0,C.oT)(t)||(0,C.K8)(t)||(0,C.x1)(t);return r&&n}async function B(e,t,r,n){if(k())return(0,i.NO)(n);if(Array.isArray(e)){for(const{source:t,dest:r,options:i}of e)if(t&&r&&!q(t,r,i))return L(n)}else if(e&&t&&!q(e,t,r))return L(n);return(0,i.NO)(n)}function K(e,t,r){return e?"x"in e?V(e,t,new d.A,r,0):"xmin"in e?ne(e,t,new c.A,r,0):"rings"in e?te(e,t,new f.A,r,0):"paths"in e?X(e,t,new y.A,r,0):"points"in e?W(e,t,new h.A,r,0):null:null}function J(e,t,r=t.spatialReference,n=0){return null!=r&&null!=e.spatialReference&&null!=V(e,e.spatialReference,t,r,n)}function V(e,t,r,n,i){se[0]=e.x,se[1]=e.y;const s=e.z;return se[2]=void 0!==s?s:i,(0,S.projectBuffer)(se,t,0,se,n,0)?(r.x=se[0],r.y=se[1],r.spatialReference=n,void 0!==s||(0,u.xP)(n)?(r.z=se[2],r.hasZ=!0):(r.z=void 0,r.hasZ=!1),void 0===e.m?(r.m=void 0,r.hasM=!1):(r.m=e.m,r.hasM=!0),r):null}function Y(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=W(e,e.spatialReference,t,r,n)}function W(e,t,r,n,i){const{points:s,hasZ:o,hasM:l}=e,a=[],c=s.length,p=[];for(const e of s)p.push(e[0],e[1],o?e[2]:i);if(!(0,S.projectBuffer)(p,t,0,p,n,0,c))return null;const h=o||(0,u.xP)(n);for(let e=0;e<c;++e){const t=3*e,r=p[t],n=p[t+1];h&&l?a.push([r,n,p[t+2],s[e][3]]):h?a.push([r,n,p[t+2]]):l?a.push([r,n,s[e][2]]):a.push([r,n])}return r.points=a,r.spatialReference=n,r.hasZ=o,r.hasM=l,r}function Q(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=X(e,e.spatialReference,t,r,n)}function X(e,t,r,n,i){const{paths:s,hasZ:o,hasM:l}=e,a=[];if(!ie(s,o??!1,l??!1,t,a,n,i))return null;const c=o||(0,u.xP)(n);return r.paths=a,r.spatialReference=n,r.hasZ=c,r.hasM=l,r}function ee(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=te(e,e.spatialReference,t,r,n)}function te(e,t,r,n,i){const{rings:s,hasZ:o,hasM:l}=e,a=[];if(!ie(s,o??!1,l??!1,t,a,n,i))return null;const c=o||(0,u.xP)(n);return r.rings=a,r.spatialReference=n,r.hasZ=c,r.hasM=l,r}function re(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=ne(e,e.spatialReference,t,r,n)}function ne(e,t,r,n,i){const{xmin:s,ymin:o,xmax:l,ymax:a,hasZ:c,hasM:p}=e;if(!v(s,o,c?e.zmin:i,t,se,n))return null;const h=c||(0,u.xP)(n);return r.xmin=se[0],r.ymin=se[1],h&&(r.zmin=se[2]),v(l,a,c?e.zmax:i,t,se,n)?(r.xmax=se[0],r.ymax=se[1],h&&(r.zmax=se[2]),p&&(r.mmin=e.mmin,r.mmax=e.mmax),r.spatialReference=n,r):null}function ie(e,t,r,n,i,s,o=0){const l=new Array;for(const r of e)for(const e of r)l.push(e[0],e[1],t?e[2]:o);if(!(0,S.projectBuffer)(l,n,0,l,s,0))return!1;let a=0;i.length=0;const c=t||(0,u.xP)(s);for(const t of e){const e=new Array;for(const n of t)c&&r?e.push([l[a++],l[a++],l[a++],n[3]]):c?e.push([l[a++],l[a++],l[a++]]):r?(e.push([l[a++],l[a++],n[2]]),a++):(e.push([l[a++],l[a++]]),a++);i.push(e)}return!0}const se=(0,l.vt)()},94985:(e,t,r)=>{r.d(t,{A:()=>f});var n,i=r(31635),s=r(68197),o=r(66552),l=r(4718),a=r(10107),u=(r(44208),r(53966),r(93223)),c=r(64108),p=r(65851),h=r(31593);const d=new o.J({esriSFSSolid:"solid",esriSFSNull:"none",esriSFSHorizontal:"horizontal",esriSFSVertical:"vertical",esriSFSForwardDiagonal:"forward-diagonal",esriSFSBackwardDiagonal:"backward-diagonal",esriSFSCross:"cross",esriSFSDiagonalCross:"diagonal-cross"});let f=n=class extends p.A{constructor(...e){super(...e),this.color=new s.A([0,0,0,.25]),this.outline=new h.A,this.type="simple-fill",this.style="solid"}normalizeCtorArgs(e,t,r){if(e&&"string"!=typeof e)return e;const n={};return e&&(n.style=e),t&&(n.outline=t),r&&(n.color=r),n}clone(){return new n({color:(0,l.o8)(this.color),outline:this.outline&&this.outline.clone(),style:this.style})}hash(){return`${super.hash()}${this.style}.${this.color&&this.color.hash()}`}};(0,i.Cg)([(0,a.MZ)()],f.prototype,"color",void 0),(0,i.Cg)([(0,a.MZ)()],f.prototype,"outline",void 0),(0,i.Cg)([(0,u.e)({esriSFS:"simple-fill"},{readOnly:!0})],f.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:d.apiValues,json:{read:d.read,write:d.write}})],f.prototype,"style",void 0),f=n=(0,i.Cg)([(0,c.$)("esri.symbols.SimpleFillSymbol")],f)},99157:(e,t,r)=>{r.d(t,{A:()=>a});var n,i=r(31635),s=r(69622),o=r(10107),l=(r(44208),r(53966),r(87811),r(64108));let a=n=class extends s.A{constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new n({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,i.Cg)([(0,o.MZ)()],a.prototype,"isInverse",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"wkt",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"wkid",void 0),a=n=(0,i.Cg)([(0,l.$)("esri.geometry.operators.support.GeographicTransformationStep")],a)}}]);
|