{"version":3,"sources":["node_modules/@arcgis/core/portal/portalDefault.js","node_modules/@arcgis/core/portal/PortalQueryParams.js","node_modules/@arcgis/core/portal/PortalGroup.js","node_modules/@arcgis/core/portal/PortalQueryResult.js","node_modules/@arcgis/core/portal/PortalFolder.js","node_modules/@arcgis/core/portal/PortalUser.js","node_modules/@arcgis/core/portal/Portal.js"],"sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nlet t;\nfunction e() {\n t = void 0;\n}\nfunction n(e) {\n return t && !t.destroyed || (t = e()), t;\n}\nexport { e as clearDefaultPortalInstance, n as ensureDefaultPortalInstance };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as t } from \"../chunks/tslib.es6.js\";\nimport r from \"../core/Accessor.js\";\nimport { JSONMap as e } from \"../core/jsonMap.js\";\nimport { clone as s } from \"../core/lang.js\";\nimport { property as o } from \"../core/accessorSupport/decorators/property.js\";\nimport \"../core/has.js\";\nimport \"../core/Logger.js\";\nimport { subclass as i } from \"../core/accessorSupport/decorators/subclass.js\";\nimport a from \"../geometry/Extent.js\";\nimport n from \"../geometry/SpatialReference.js\";\nimport { project as l } from \"../geometry/support/webMercatorUtils.js\";\nvar u;\nconst m = new e({\n avgRating: \"avg-rating\",\n numRatings: \"num-ratings\",\n numComments: \"num-comments\",\n numViews: \"num-views\"\n});\nlet p = u = class extends r {\n constructor(t) {\n 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;\n }\n get sortOrder() {\n return this._get(\"sortOrder\") || \"asc\";\n }\n set sortOrder(t) {\n \"asc\" !== t && \"desc\" !== t || this._set(\"sortOrder\", t);\n }\n clone() {\n return new u({\n categories: this.categories ? s(this.categories) : null,\n disableExtraQuery: this.disableExtraQuery,\n extent: this.extent ? this.extent.clone() : null,\n filter: this.filter,\n num: this.num,\n query: this.query,\n sortField: this.sortField,\n sortOrder: this.sortOrder,\n start: this.start\n });\n }\n toRequestOptions(t, r) {\n let e = [];\n this.categories && (e = this.categories.map(t => Array.isArray(t) ? JSON.stringify(t) : t));\n let s = \"\";\n if (this.extent) {\n const t = l(this.extent, n.WGS84);\n null != t && (s = `${t.xmin},${t.ymin},${t.xmax},${t.ymax}`);\n }\n let o = this.query;\n !this.disableExtraQuery && t.extraQuery && (o = \"(\" + o + \")\" + t.extraQuery);\n const i = {\n categories: e,\n bbox: s,\n q: o,\n filter: this.filter,\n num: this.num,\n sortField: null,\n sortOrder: null,\n start: this.start\n };\n return this.sortField && (i.sortField = this.sortField.split(\",\").map(t => m.toJSON(t.trim())).join(\",\"), i.sortOrder = this.sortOrder), {\n query: {\n ...r,\n ...i\n }\n };\n }\n};\nt([o()], p.prototype, \"categories\", void 0), t([o()], p.prototype, \"disableExtraQuery\", void 0), t([o({\n type: a\n})], p.prototype, \"extent\", void 0), t([o()], p.prototype, \"filter\", void 0), t([o()], p.prototype, \"num\", void 0), t([o()], p.prototype, \"query\", void 0), t([o()], p.prototype, \"sortField\", void 0), t([o()], p.prototype, \"sortOrder\", null), t([o()], p.prototype, \"start\", void 0), p = u = t([i(\"esri.portal.PortalQueryParams\")], p);\nconst c = p;\nexport { c as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as t } from \"../chunks/tslib.es6.js\";\nimport r from \"../core/Error.js\";\nimport { JSONSupport as e } from \"../core/JSONSupport.js\";\nimport { property as o } from \"../core/accessorSupport/decorators/property.js\";\nimport { ensureType as s } from \"../core/accessorSupport/ensureType.js\";\nimport \"../core/RandomLCG.js\";\nimport \"../core/has.js\";\nimport { subclass as n } from \"../core/accessorSupport/decorators/subclass.js\";\nimport i from \"./PortalQueryParams.js\";\nvar l;\nlet u = l = class extends e {\n constructor(t) {\n 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;\n }\n get thumbnailUrl() {\n const t = this.url,\n r = this.thumbnail;\n return t && r && this.portal ? this.portal?.normalizeUrl(`${t}/info/${r}?f=json`) : null;\n }\n get url() {\n const t = this.portal?.restUrl;\n return t ? t + \"/community/groups/\" + this.id : null;\n }\n fetchCategorySchema(t) {\n return this.portal.request(this.url + \"/categorySchema\", t).then(r => {\n const e = r.categorySchema || [];\n return e.some(t => \"contentCategorySetsGroupQuery.LivingAtlas\" === t.source) ? this._fetchCategorySchemaSet(\"LivingAtlas\", t) : e;\n });\n }\n fetchMembers(t) {\n return this.portal.request(this.url + \"/users\", t);\n }\n getThumbnailUrl(t) {\n let r = this.thumbnailUrl;\n return r && t && (r += `&w=${t}`), r;\n }\n toJSON() {\n throw new r(\"internal:not-yet-implemented\", \"PortalGroup.toJSON is not yet implemented\");\n }\n static fromJSON(t) {\n if (!t) return null;\n if (t.declaredClass) throw new Error(\"JSON object is already hydrated\");\n const r = new l({\n sourceJSON: t\n });\n return r.read(t), r;\n }\n queryItems(t, r) {\n let e = s(i, t);\n const o = this.portal;\n return parseFloat(o.currentVersion) > 5 ? (e = e || new i(), o.queryPortal(`/content/groups/${this.id}/search`, e, \"PortalItem\", r)) : (e = e ? e.clone() : new i(), e.query = \"group:\" + this.id + (e.query ? \" \" + e.query : \"\"), o.queryItems(e, r));\n }\n _fetchCategorySchemaSet(t, e) {\n const o = this.portal;\n return o.fetchSelf(o.authMode, !0, e).then(t => {\n const s = t.contentCategorySetsGroupQuery;\n if (s) {\n const t = new i({\n disableExtraQuery: !0,\n num: 1,\n query: s\n });\n return o.queryGroups(t, e);\n }\n throw new r(\"portal-group:fetchCategorySchema\", \"contentCategorySetsGroupQuery value not found\");\n }).then(o => {\n if (o.total) {\n const r = o.results[0],\n s = new i({\n num: 1,\n query: `typekeywords:\"${t}\"`\n });\n return r.queryItems(s, e);\n }\n throw new r(\"portal-group:fetchCategorySchema\", \"contentCategorySetsGroupQuery group not found\");\n }).then(t => {\n if (t.total) {\n return t.results[0].fetchData(\"json\", e).then(t => {\n const r = t?.categorySchema;\n return r?.length ? r : [];\n });\n }\n return [];\n });\n }\n};\nt([o()], u.prototype, \"access\", void 0), t([o({\n type: Date\n})], u.prototype, \"created\", void 0), t([o()], u.prototype, \"description\", void 0), t([o()], u.prototype, \"id\", void 0), t([o()], u.prototype, \"isInvitationOnly\", void 0), t([o({\n type: Date\n})], u.prototype, \"modified\", void 0), t([o()], u.prototype, \"owner\", void 0), t([o()], u.prototype, \"portal\", void 0), t([o()], u.prototype, \"snippet\", void 0), t([o()], u.prototype, \"sortField\", void 0), t([o()], u.prototype, \"sortOrder\", void 0), t([o()], u.prototype, \"sourceJSON\", void 0), t([o()], u.prototype, \"tags\", void 0), t([o()], u.prototype, \"thumbnail\", void 0), t([o({\n readOnly: !0\n})], u.prototype, \"thumbnailUrl\", null), t([o()], u.prototype, \"title\", void 0), t([o({\n readOnly: !0\n})], u.prototype, \"url\", null), u = l = t([n(\"esri.portal.PortalGroup\")], u);\nconst p = u;\nexport { p as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as r } from \"../chunks/tslib.es6.js\";\nimport o from \"../core/Accessor.js\";\nimport { property as s } from \"../core/accessorSupport/decorators/property.js\";\nimport \"../core/has.js\";\nimport \"../core/Logger.js\";\nimport \"../core/RandomLCG.js\";\nimport { subclass as t } from \"../core/accessorSupport/decorators/subclass.js\";\nlet e = class extends o {\n constructor(r) {\n super(r), this.nextQueryParams = null, this.queryParams = null, this.results = null, this.total = null;\n }\n};\nr([s()], e.prototype, \"nextQueryParams\", void 0), r([s()], e.prototype, \"queryParams\", void 0), r([s()], e.prototype, \"results\", void 0), r([s()], e.prototype, \"total\", void 0), e = r([t(\"esri.portal.PortalQueryResult\")], e);\nconst p = e;\nexport { p as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as t } from \"../chunks/tslib.es6.js\";\nimport o from \"../core/Error.js\";\nimport { JSONSupport as r } from \"../core/JSONSupport.js\";\nimport { property as e } from \"../core/accessorSupport/decorators/property.js\";\nimport \"../core/has.js\";\nimport \"../core/Logger.js\";\nimport \"../core/RandomLCG.js\";\nimport { subclass as s } from \"../core/accessorSupport/decorators/subclass.js\";\nlet p = class extends r {\n constructor(t) {\n super(t), this.created = null, this.id = null, this.portal = null, this.title = null, this.username = null;\n }\n get url() {\n const t = this.portal?.restUrl;\n return t ? `${t}/content/users/${this.username}/${this.id}` : null;\n }\n toJSON() {\n throw new o(\"internal:not-yet-implemented\", \"PortalFolder.toJSON is not yet implemented\");\n }\n};\nt([e({\n type: Date\n})], p.prototype, \"created\", void 0), t([e()], p.prototype, \"id\", void 0), t([e()], p.prototype, \"portal\", void 0), t([e()], p.prototype, \"title\", void 0), t([e({\n readOnly: !0\n})], p.prototype, \"url\", null), t([e()], p.prototype, \"username\", void 0), p = t([s(\"esri.portal.PortalFolder\")], p);\nconst l = p;\nexport { l as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as t } from \"../chunks/tslib.es6.js\";\nimport e from \"../core/Error.js\";\nimport { JSONSupport as r } from \"../core/JSONSupport.js\";\nimport { property as o } from \"../core/accessorSupport/decorators/property.js\";\nimport \"../core/has.js\";\nimport \"../core/Logger.js\";\nimport \"../core/RandomLCG.js\";\nimport { subclass as s } from \"../core/accessorSupport/decorators/subclass.js\";\nimport l from \"./PortalFolder.js\";\nimport i from \"./PortalGroup.js\";\nvar n;\nlet u = n = class extends r {\n constructor(t) {\n super(t), this.access = null, this.created = null, this.culture = null, this.description = null, this.email = null, this.fullName = 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;\n }\n get thumbnailUrl() {\n const t = this.url,\n e = this.thumbnail;\n return t && e ? this.portal.normalizeUrl(`${t}/info/${e}?f=json`) : null;\n }\n get userContentUrl() {\n const t = this.portal?.restUrl;\n return t ? `${t}/content/users/${this.username}` : null;\n }\n get url() {\n const t = this.portal?.restUrl;\n return t ? `${t}/community/users/${this.username}` : null;\n }\n addItem(t) {\n const e = t && t.item,\n r = t?.data,\n o = t?.folder,\n s = {\n method: \"post\"\n };\n e && (s.query = e.createPostQuery(), null != r && (\"string\" == typeof r ? s.query.text = r : \"object\" == typeof r && (s.query.text = JSON.stringify(r))));\n let l = this.userContentUrl;\n return o && (l += \"/\" + (\"string\" == typeof o ? o : o.id)), this.portal.request(l + \"/addItem\", s).then(t => (e.id = t.id, e.portal = this.portal, e.loaded ? e.reload() : e.load()));\n }\n async deleteItem(t, e = !1) {\n let r = this.userContentUrl;\n t.ownerFolder && (r += \"/\" + t.ownerFolder);\n const o = e ? {\n permanentDelete: !0\n } : {};\n await this.portal.request(r + `/items/${t.id}/delete`, {\n method: \"post\",\n query: o\n }), t.id = null, t.portal = null;\n }\n async deleteItems(t, r = !1) {\n t = t.slice();\n const o = this.userContentUrl + \"/deleteItems\",\n s = [],\n l = t.map(t => t.id);\n if (l.length) {\n const i = {\n method: \"post\",\n query: {\n items: l.join(\",\"),\n permanentDelete: r\n }\n },\n n = await this.portal.request(o, i);\n for (const r of n.results) {\n const o = t.find(t => r.itemId === t.id),\n l = r.success;\n let i = null;\n l ? (o.id = null, o.portal = null) : r.error && (i = new e(\"portal:delete-item-failed\", r.error.message, r.error)), s.push({\n item: o,\n success: l,\n error: i\n });\n }\n }\n return s;\n }\n fetchFolders() {\n const t = {\n query: {\n num: 1\n }\n };\n return this.portal.request(this.userContentUrl ?? \"\", t).then(t => {\n let e;\n return e = t && t.folders ? t.folders.map(t => {\n const e = l.fromJSON(t);\n return e.portal = this.portal, e;\n }) : [], e;\n });\n }\n fetchGroups() {\n return this.portal.request(this.url ?? \"\").then(t => {\n let e;\n return e = t && t.groups ? t.groups.map(t => {\n const e = i.fromJSON(t);\n return e.portal = this.portal, e;\n }) : [], e;\n });\n }\n async fetchItems(t) {\n t ??= {};\n let e = this.userContentUrl ?? \"\";\n t.folder && (e += \"/\" + t.folder.id);\n const {\n default: r\n } = await import(\"./PortalItem.js\"),\n o = {\n folders: !1,\n inRecycleBin: !!t.inRecycleBin || null,\n foldersContent: !(t.folder || !t.includeSubfolderItems) || null,\n num: t.num || 10,\n start: t.start || 1,\n sortField: t.sortField || \"created\",\n sortOrder: t.sortOrder || \"asc\"\n },\n s = await this.portal.request(e, {\n query: o\n });\n let l;\n return s?.items ? (l = s.items.map(t => {\n const e = r.fromJSON(t);\n return e.portal = this.portal, e;\n }), await Promise.all(l.map(t => t.load())), {\n items: l,\n nextStart: s.nextStart,\n total: s.total\n }) : {\n items: [],\n nextStart: -1,\n total: 0\n };\n }\n fetchTags() {\n return this.portal.request(this.url + \"/tags\").then(t => t.tags);\n }\n getThumbnailUrl(t) {\n let e = this.thumbnailUrl;\n return e && t && (e += `&w=${t}`), e;\n }\n queryFavorites(t) {\n return this.favGroupId ? (this._favGroup || (this._favGroup = new i({\n id: this.favGroupId,\n portal: this.portal\n })), this._favGroup.queryItems(t)) : Promise.reject(new e(\"internal:unknown\", \"Unknown internal error\", {\n internalError: \"Unknown favGroupId\"\n }));\n }\n async restoreItem(t, e) {\n const r = this.userContentUrl,\n o = e ? {\n folderID: \"string\" == typeof e ? e : e.id\n } : null;\n await this.portal.request(r + `/items/${t.id}/restore`, {\n method: \"post\",\n query: o\n });\n }\n toJSON() {\n throw new e(\"internal:not-yet-implemented\", \"PortalUser.toJSON is not yet implemented\");\n }\n static fromJSON(t) {\n if (!t) return null;\n if (t.declaredClass) throw new Error(\"JSON object is already hydrated\");\n const e = new n({\n sourceJSON: t\n });\n return e.read(t), e;\n }\n};\nt([o()], u.prototype, \"access\", void 0), t([o({\n type: Date\n})], u.prototype, \"created\", void 0), t([o()], u.prototype, \"culture\", void 0), t([o()], u.prototype, \"description\", void 0), t([o()], u.prototype, \"email\", void 0), t([o()], u.prototype, \"favGroupId\", void 0), t([o()], u.prototype, \"fullName\", void 0), t([o({\n type: Date\n})], u.prototype, \"modified\", void 0), t([o()], u.prototype, \"orgId\", void 0), t([o()], u.prototype, \"portal\", void 0), t([o()], u.prototype, \"preferredView\", void 0), t([o()], u.prototype, \"privileges\", void 0), t([o()], u.prototype, \"region\", void 0), t([o()], u.prototype, \"role\", void 0), t([o()], u.prototype, \"roleId\", void 0), t([o()], u.prototype, \"sourceJSON\", void 0), t([o()], u.prototype, \"thumbnail\", void 0), t([o({\n readOnly: !0\n})], u.prototype, \"thumbnailUrl\", null), t([o()], u.prototype, \"units\", void 0), t([o({\n readOnly: !0\n})], u.prototype, \"userContentUrl\", null), t([o({\n readOnly: !0\n})], u.prototype, \"url\", null), t([o()], u.prototype, \"username\", void 0), t([o()], u.prototype, \"userLicenseTypeId\", void 0), t([o()], u.prototype, \"userType\", void 0), u = n = t([s(\"esri.portal.PortalUser\")], u);\nconst p = u;\nexport { p as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as e } from \"../chunks/tslib.es6.js\";\nimport t from \"../config.js\";\nimport { id as r } from \"../kernel.js\";\nimport o from \"../request.js\";\nimport s from \"../core/Error.js\";\nimport { JSONSupportMixin as a } from \"../core/JSONSupport.js\";\nimport i from \"../core/Loadable.js\";\nimport { destroyMaybe as l, removeMaybe as u } from \"../core/maybe.js\";\nimport { throwIfAborted as n, isAborted as p, createAbortError as h, throwIfAbortError as d } from \"../core/promiseUtils.js\";\nimport { property as y } from \"../core/accessorSupport/decorators/property.js\";\nimport { ensureType as c } from \"../core/accessorSupport/ensureType.js\";\nimport \"../core/RandomLCG.js\";\nimport \"../core/has.js\";\nimport { reader as m } from \"../core/accessorSupport/decorators/reader.js\";\nimport { subclass as f } from \"../core/accessorSupport/decorators/subclass.js\";\nimport v from \"../geometry/Extent.js\";\nimport { getLocale as S } from \"../intl/locale.js\";\nimport { ensureDefaultPortalInstance as P } from \"./portalDefault.js\";\nimport g from \"./PortalGroup.js\";\nimport O from \"./PortalQueryParams.js\";\nimport B from \"./PortalQueryResult.js\";\nimport D from \"./PortalUser.js\";\nimport { isApiKeyApplicable as G } from \"../support/apiKeyUtils.js\";\nvar _;\nlet M;\nconst Q = {\n PortalGroup: () => Promise.resolve({\n default: g\n }),\n PortalItem: () => import(\"./PortalItem.js\"),\n PortalUser: () => Promise.resolve({\n default: D\n })\n};\nlet U = _ = class extends a(i) {\n constructor(e) {\n super(e), this._esriIdCredentialCreateHandle = null, this.access = null, this.allSSL = !1, this.authMode = \"auto\", this.authorizedCrossOriginDomains = null, this.basemapGalleryGroupQuery = null, this.basemapGalleryGroupQuery3D = 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 = t.portalUrl, this.urlKey = null, this.user = null, this.use3dBasemaps = !0, this.useDefault3dBasemap = !1, this.useStandardizedQuery = !1, this.useVectorBasemaps = !1, this.vectorBasemapGalleryGroupQuery = null;\n }\n normalizeCtorArgs(e) {\n return \"string\" == typeof e ? {\n url: e\n } : e;\n }\n destroy() {\n C.unregister(this), this.defaultBasemap = l(this.defaultBasemap), this.defaultDevBasemap = l(this.defaultDevBasemap), this.defaultVectorBasemap = l(this.defaultVectorBasemap), this._esriIdCredentialCreateHandle = u(this._esriIdCredentialCreateHandle);\n }\n readAuthorizedCrossOriginDomains(e) {\n if (e) for (const r of e) t.request.trustedServers.includes(r) || t.request.trustedServers.push(r);\n return e;\n }\n readDefaultBasemap(e) {\n return this._readBasemap(e);\n }\n readDefaultDevBasemap(e) {\n return this._readBasemap(e);\n }\n readDefaultVectorBasemap(e) {\n return this._readBasemap(e);\n }\n get extraQuery() {\n const e = this.user?.orgId,\n t = !e || this.canSearchPublic;\n return this.id && !t ? ` AND orgid:${this.id}` : null;\n }\n get hasAPIKey() {\n return G(this.url);\n }\n get isOrganization() {\n return !!this.access;\n }\n get itemPageUrl() {\n return this.url ? `${this.url}/home/item.html` : null;\n }\n get restUrl() {\n let e = this.url;\n if (e) {\n const t = e.indexOf(\"/sharing\");\n e = t > 0 ? e.slice(0, t) : this.url.replace(/\\/+$/, \"\"), e += \"/sharing/rest\";\n }\n return e;\n }\n get thumbnailUrl() {\n const e = this.restUrl,\n t = this.thumbnail;\n return e && t ? this._normalizeSSL(e + \"/portals/self/resources/\" + t) : null;\n }\n readUrlKey(e) {\n return e ? e.toLowerCase() : e;\n }\n readUser(e) {\n let t = null;\n return e && (t = D.fromJSON(e), t.portal = this), t;\n }\n load(e) {\n const t = import(\"../Basemap.js\").then(({\n default: t\n }) => {\n n(e), M = t;\n }).then(() => this.sourceJSON ? this.sourceJSON : this.fetchSelf(this.authMode, !1, e)).then(e => {\n if (!this.hasAPIKey && r) {\n const e = r;\n this.credential = e.findCredential(this.restUrl), this.credential || this.authMode !== _.AUTH_MODE_AUTO && this.authMode !== _.AUTH_MODE_NO_PROMPT || (this._esriIdCredentialCreateHandle?.remove(), this._esriIdCredentialCreateHandle = e.on(\"credential-create\", w(new WeakRef(this))), C.register(this, this._esriIdCredentialCreateHandle, this));\n }\n this.sourceJSON = e, this.read(e);\n });\n return this.addResolvingPromise(t), Promise.resolve(this);\n }\n async createElevationLayers() {\n await this.load();\n const e = this._getHelperService(\"defaultElevationLayers\"),\n t = (await import(\"../layers/ElevationLayer.js\")).default;\n return e ? e.map(e => new t({\n id: e.id,\n url: e.url\n })) : [];\n }\n async fetchBasemaps(e, t) {\n const r = await this._fetchBasemaps(e, t);\n if (!0 === t?.include3d && !1 !== this.use3dBasemaps) {\n const o = await this._fetchBasemaps3D(e, t);\n r.unshift(...o);\n }\n return r;\n }\n async fetchDefault3DBasemap(e) {\n if (!this.useDefault3dBasemap || !this.default3DBasemapQuery || \"none\" === this.default3DBasemapQuery) return null;\n const t = new O();\n t.query = this.default3DBasemapQuery, t.disableExtraQuery = !0;\n const r = (await this.queryItems(t, e)).results.find(e => \"Web Scene\" === e.type);\n return r ? new M({\n portalItem: r\n }) : null;\n }\n fetchCategorySchema(e) {\n return this.hasCategorySchema ? this.request(this.restUrl + \"/portals/self/categorySchema\", e).then(e => e.categorySchema) : p(e) ? Promise.reject(h()) : Promise.resolve([]);\n }\n fetchFeaturedGroups(e) {\n const t = this.featuredGroups,\n r = new O({\n num: 100,\n sortField: \"title\"\n });\n if (t?.length) {\n const o = [];\n for (const e of t) o.push(`(title:\"${e.title}\" AND owner:${e.owner})`);\n return r.query = o.join(\" OR \"), this.queryGroups(r, e).then(e => e.results);\n }\n return p(e) ? Promise.reject(h()) : Promise.resolve([]);\n }\n fetchRegions(e) {\n const t = this.user?.culture || this.culture || S();\n return this.request(this.restUrl + \"/portals/regions\", {\n ...e,\n query: {\n culture: t\n }\n });\n }\n fetchSettings(e) {\n const t = this.user?.culture || this.culture || S();\n return this.request(this.restUrl + \"/portals/self/settings\", {\n ...e,\n query: {\n culture: t\n }\n });\n }\n static getDefault() {\n return P(() => new _());\n }\n queryGroups(e, t) {\n return this.queryPortal(\"/community/groups\", e, \"PortalGroup\", t);\n }\n queryItems(e, t) {\n return this.queryPortal(\"/search\", e, \"PortalItem\", t);\n }\n queryUsers(e, t) {\n return e.sortField || (e.sortField = \"username\"), this.queryPortal(\"/community/users\", e, \"PortalUser\", t);\n }\n fetchSelf(e = this.authMode, t = !1, r) {\n const o = this.restUrl + \"/portals/self\",\n s = {\n authMode: e,\n query: {\n culture: S().toLowerCase()\n },\n withCredentials: !0,\n ...r\n };\n return \"auto\" === s.authMode && (s.authMode = \"no-prompt\"), t && (s.query.default = !0), this.request(o, s);\n }\n queryPortal(e, t, r, o) {\n const s = c(O, t),\n a = t => this.request(this.restUrl + e, {\n ...s.toRequestOptions(this),\n ...o\n }).then(e => {\n const r = s.clone();\n return r.start = e.nextStart, new B({\n nextQueryParams: r,\n queryParams: s,\n total: e.total,\n results: _._resultsToTypedArray(t, {\n portal: this\n }, e, o)\n });\n }).then(e => Promise.all(e.results.map(t => \"function\" == typeof t.when ? t.when() : e)).then(() => e, t => (d(t), e)));\n return r && Q[r] ? Q[r]().then(({\n default: e\n }) => (n(o), a(e))) : a();\n }\n signIn() {\n if (this.hasAPIKey) return this.load().then(() => {\n if (!this.user) throw new s(\"portal:not-authenticated\", \"Unable to authenticate user. Portal.user is missing\");\n });\n if (this.authMode === _.AUTH_MODE_ANONYMOUS || this.authMode === _.AUTH_MODE_NO_PROMPT && !r) return Promise.reject(new s(\"portal:invalid-auth-mode\", `Current \"authMode\"' is \"${this.authMode}\"`));\n if (\"failed\" === this.loadStatus) return Promise.reject(this.loadError);\n const e = e => Promise.resolve().then(() => \"not-loaded\" === this.loadStatus ? (e || (this.authMode = \"immediate\"), this.load().then(() => null)) : \"loading\" === this.loadStatus ? this.load().then(() => this.credential ? null : (this.credential = e, this.fetchSelf(\"immediate\"))) : this.user && this.credential === e ? null : (this.credential = e, this.fetchSelf(\"immediate\"))).then(e => {\n e && (this.sourceJSON = e, this.read(e));\n });\n return r ? r.getCredential(this.restUrl, {\n prompt: this.authMode !== _.AUTH_MODE_NO_PROMPT\n }).then(t => e(t)) : e(this.credential);\n }\n normalizeUrl(e) {\n const t = this.credential?.token;\n return this._normalizeSSL(t ? e + (e.includes(\"?\") ? \"&\" : \"?\") + \"token=\" + t : e);\n }\n requestToTypedArray(e, t, r) {\n return this.request(e, t).then(e => {\n const t = _._resultsToTypedArray(r, {\n portal: this\n }, e);\n return Promise.all(t.map(t => \"function\" == typeof t.when ? t.when() : e)).then(() => t, () => t);\n });\n }\n request(e, t = {}) {\n const r = {\n f: \"json\",\n ...t.query\n },\n {\n authMode: s = this.authMode === _.AUTH_MODE_ANONYMOUS || this.authMode === _.AUTH_MODE_NO_PROMPT ? this.authMode : \"auto\",\n body: a = null,\n cacheBust: i = !1,\n method: l = \"auto\",\n responseType: u = \"json\",\n signal: n\n } = t,\n p = {\n authMode: s,\n body: a,\n cacheBust: i,\n method: l,\n query: r,\n responseType: u,\n timeout: 0,\n signal: n\n };\n return t.withCredentials && (p.withCredentials = !0), o(this._normalizeSSL(e), p).then(e => e.data);\n }\n toJSON() {\n throw new s(\"internal:not-yet-implemented\", \"Portal.toJSON is not yet implemented\");\n }\n static fromJSON(e) {\n if (!e) return null;\n if (e.declaredClass) throw new Error(\"JSON object is already hydrated\");\n return new _({\n sourceJSON: e\n });\n }\n _getHelperService(e) {\n const t = this.helperServices && this.helperServices[e];\n if (!t) throw new s(\"portal:service-not-found\", `The \\`helperServices\\` do not include an entry named \"${e}\"`);\n return t;\n }\n async _fetchBasemaps(e, t) {\n const r = new O();\n r.query = e || (this.hasAPIKey ? this.devBasemapGalleryGroupQuery : this.useVectorBasemaps ? this.vectorBasemapGalleryGroupQuery : this.basemapGalleryGroupQuery), r.disableExtraQuery = !0;\n const o = await this.queryGroups(r, t);\n if (!o.total) return [];\n const s = o.results[0];\n r.num = 100, r.query = 'type:\"Web Map\" -type:\"Web Application\"', r.sortField = s.sortField || \"name\", r.sortOrder = s.sortOrder || \"desc\";\n const a = await s.queryItems(r, t);\n if (!a.total) return [];\n return a.results.filter(e => \"Web Map\" === e.type).map(e => new M({\n portalItem: e\n }));\n }\n async _fetchBasemaps3D(e, t) {\n const r = e || this.basemapGalleryGroupQuery3D;\n if (!r) return [];\n const o = new O({\n query: r,\n disableExtraQuery: !0\n }),\n s = await this.queryGroups(o, t);\n if (!s.total) return [];\n const a = s.results[0];\n o.num = 100, o.query = 'type:\"Web Scene\"', o.sortField = a.sortField || \"name\", o.sortOrder = a.sortOrder || \"desc\";\n const i = await a.queryItems(o, t);\n if (!i.total) return [];\n return i.results.filter(e => \"Web Scene\" === e.type).map(e => new M({\n portalItem: e\n }));\n }\n _normalizeSSL(e) {\n return e.replace(/^http:/i, \"https:\").replace(\":7080\", \":7443\");\n }\n _readBasemap(e) {\n if (e) {\n const t = M.fromJSON(e);\n return t.portalItem = {\n portal: this\n }, t;\n }\n return null;\n }\n static _resultsToTypedArray(e, t, r, o) {\n let s;\n if (r) {\n const a = null != o ? o.signal : null;\n s = r.listings || r.notifications || r.userInvitations || r.tags || r.items || r.groups || r.comments || r.provisions || r.results || r.relatedItems || r, (e || t) && (s = s.map(r => {\n const o = Object.assign(e ? e.fromJSON(r) : r, t);\n return \"function\" == typeof o.load && o.load(a), o;\n }));\n } else s = [];\n return s;\n }\n};\nU.AUTH_MODE_ANONYMOUS = \"anonymous\", U.AUTH_MODE_AUTO = \"auto\", U.AUTH_MODE_IMMEDIATE = \"immediate\", U.AUTH_MODE_NO_PROMPT = \"no-prompt\", e([y()], U.prototype, \"access\", void 0), e([y()], U.prototype, \"allSSL\", void 0), e([y()], U.prototype, \"authMode\", void 0), e([y()], U.prototype, \"authorizedCrossOriginDomains\", void 0), e([m(\"authorizedCrossOriginDomains\")], U.prototype, \"readAuthorizedCrossOriginDomains\", null), e([y()], U.prototype, \"basemapGalleryGroupQuery\", void 0), e([y({\n json: {\n name: \"3DBasemapGalleryGroupQuery\"\n }\n})], U.prototype, \"basemapGalleryGroupQuery3D\", void 0), e([y()], U.prototype, \"bingKey\", void 0), e([y()], U.prototype, \"canListApps\", void 0), e([y()], U.prototype, \"canListData\", void 0), e([y()], U.prototype, \"canListPreProvisionedItems\", void 0), e([y()], U.prototype, \"canProvisionDirectPurchase\", void 0), e([y()], U.prototype, \"canSearchPublic\", void 0), e([y()], U.prototype, \"canShareBingPublic\", void 0), e([y()], U.prototype, \"canSharePublic\", void 0), e([y()], U.prototype, \"canSignInArcGIS\", void 0), e([y()], U.prototype, \"canSignInIDP\", void 0), e([y()], U.prototype, \"colorSetsGroupQuery\", void 0), e([y()], U.prototype, \"commentsEnabled\", void 0), e([y({\n type: Date\n})], U.prototype, \"created\", void 0), e([y()], U.prototype, \"credential\", void 0), e([y()], U.prototype, \"culture\", void 0), e([y()], U.prototype, \"currentVersion\", void 0), e([y()], U.prototype, \"customBaseUrl\", void 0), e([y()], U.prototype, \"default3DBasemapQuery\", void 0), e([y()], U.prototype, \"defaultBasemap\", void 0), e([m(\"defaultBasemap\")], U.prototype, \"readDefaultBasemap\", null), e([y()], U.prototype, \"defaultDevBasemap\", void 0), e([m(\"defaultDevBasemap\")], U.prototype, \"readDefaultDevBasemap\", null), e([y({\n type: v\n})], U.prototype, \"defaultExtent\", void 0), e([y()], U.prototype, \"defaultVectorBasemap\", void 0), e([m(\"defaultVectorBasemap\")], U.prototype, \"readDefaultVectorBasemap\", null), e([y()], U.prototype, \"description\", void 0), e([y()], U.prototype, \"devBasemapGalleryGroupQuery\", void 0), e([y()], U.prototype, \"eueiEnabled\", void 0), e([y({\n readOnly: !0\n})], U.prototype, \"extraQuery\", null), e([y()], U.prototype, \"featuredGroups\", void 0), e([y()], U.prototype, \"featuredItemsGroupQuery\", void 0), e([y()], U.prototype, \"galleryTemplatesGroupQuery\", void 0), e([y()], U.prototype, \"layoutGroupQuery\", void 0), e([y()], U.prototype, \"livingAtlasGroupQuery\", void 0), e([y({\n readOnly: !0\n})], U.prototype, \"hasAPIKey\", null), e([y()], U.prototype, \"hasCategorySchema\", void 0), e([y()], U.prototype, \"hasClassificationSchema\", void 0), e([y()], U.prototype, \"helpBase\", void 0), e([y()], U.prototype, \"helperServices\", void 0), e([y()], U.prototype, \"helpMap\", void 0), e([y()], U.prototype, \"homePageFeaturedContent\", void 0), e([y()], U.prototype, \"homePageFeaturedContentCount\", void 0), e([y()], U.prototype, \"httpPort\", void 0), e([y()], U.prototype, \"httpsPort\", void 0), e([y()], U.prototype, \"id\", void 0), e([y()], U.prototype, \"ipCntryCode\", void 0), e([y({\n readOnly: !0\n})], U.prototype, \"isOrganization\", null), e([y()], U.prototype, \"isPortal\", void 0), e([y()], U.prototype, \"isReadOnly\", void 0), e([y({\n readOnly: !0\n})], U.prototype, \"itemPageUrl\", null), e([y()], U.prototype, \"layerTemplatesGroupQuery\", void 0), e([y()], U.prototype, \"maxTokenExpirationMinutes\", void 0), e([y({\n type: Date\n})], U.prototype, \"modified\", void 0), e([y()], U.prototype, \"name\", void 0), e([y()], U.prototype, \"portalHostname\", void 0), e([y()], U.prototype, \"portalMode\", void 0), e([y()], U.prototype, \"portalProperties\", void 0), e([y()], U.prototype, \"region\", void 0), e([y()], U.prototype, \"recycleBinEnabled\", void 0), e([y({\n readOnly: !0\n})], U.prototype, \"restUrl\", null), e([y()], U.prototype, \"rotatorPanels\", void 0), e([y()], U.prototype, \"showHomePageDescription\", void 0), e([y()], U.prototype, \"sourceJSON\", void 0), e([y()], U.prototype, \"staticImagesUrl\", void 0), e([y({\n json: {\n name: \"2DStylesGroupQuery\"\n }\n})], U.prototype, \"stylesGroupQuery2d\", void 0), e([y({\n json: {\n name: \"stylesGroupQuery\"\n }\n})], U.prototype, \"stylesGroupQuery3d\", void 0), e([y()], U.prototype, \"supportsHostedServices\", void 0), e([y()], U.prototype, \"symbolSetsGroupQuery\", void 0), e([y()], U.prototype, \"templatesGroupQuery\", void 0), e([y()], U.prototype, \"thumbnail\", void 0), e([y({\n readOnly: !0\n})], U.prototype, \"thumbnailUrl\", null), e([y()], U.prototype, \"units\", void 0), e([y()], U.prototype, \"url\", void 0), e([y()], U.prototype, \"urlKey\", void 0), e([m(\"urlKey\")], U.prototype, \"readUrlKey\", null), e([y()], U.prototype, \"user\", void 0), e([m(\"user\")], U.prototype, \"readUser\", null), e([y()], U.prototype, \"use3dBasemaps\", void 0), e([y()], U.prototype, \"useDefault3dBasemap\", void 0), e([y()], U.prototype, \"useStandardizedQuery\", void 0), e([y()], U.prototype, \"useVectorBasemaps\", void 0), e([y()], U.prototype, \"vectorBasemapGalleryGroupQuery\", void 0), U = _ = e([f(\"esri.portal.Portal\")], U);\nconst b = U,\n C = new FinalizationRegistry(e => {\n e.remove();\n });\nfunction w(e) {\n const t = r;\n return () => {\n const r = e.deref();\n r && t.findCredential(r.restUrl) && r.signIn().catch(() => {});\n };\n}\nexport { b as default };"],"mappings":"0pBAIA,IAAIA,EAIJ,SAASC,GAAEC,EAAG,CACZ,OAAOC,GAAK,CAACA,EAAE,YAAcA,EAAID,EAAE,GAAIC,CACzC,CCKA,IAAIC,EACEC,GAAI,IAAIC,EAAE,CACd,UAAW,aACX,WAAY,cACZ,YAAa,eACb,SAAU,WACZ,CAAC,EACGC,EAAIH,EAAI,cAAcI,CAAE,CAC1B,YAAY,EAAG,CACb,MAAM,CAAC,EAAG,KAAK,WAAa,KAAM,KAAK,kBAAoB,GAAI,KAAK,OAAS,KAAM,KAAK,OAAS,KAAM,KAAK,IAAM,GAAI,KAAK,MAAQ,KAA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O,EAAE,CAACM,EAAE,MAAM,CAAC,EAAGb,EAAE,UAAW,WAAY,IAAI,EAAGO,EAAE,CAACL,EAAE,CAAC,EAAGF,EAAE,UAAW,gBAAiB,MAAM,EAAGO,EAAE,CAACL,EAAE,CAAC,EAAGF,EAAE,UAAW,sBAAuB,MAAM,EAAGO,EAAE,CAACL,EAAE,CAAC,EAAGF,EAAE,UAAW,uBAAwB,MAAM,EAAGO,EAAE,CAACL,EAAE,CAAC,EAAGF,EAAE,UAAW,oBAAqB,MAAM,EAAGO,EAAE,CAACL,EAAE,CAAC,EAAGF,EAAE,UAAW,iCAAkC,MAAM,EAAGA,EAAIJ,EAAIW,EAAE,CAACU,EAAE,oBAAoB,CAAC,EAAGjB,CAAC,EACjmB,IAAMkB,GAAIlB,EACRK,GAAI,IAAI,qBAAqBF,GAAK,CAChCA,EAAE,OAAO,CACX,CAAC,EACH,SAASQ,GAAER,EAAG,CACZ,IAAMK,EAAIE,EACV,MAAO,IAAM,CACX,IAAMH,EAAIJ,EAAE,MAAM,EAClBI,GAAKC,EAAE,eAAeD,EAAE,OAAO,GAAKA,EAAE,OAAO,EAAE,MAAM,IAAM,CAAC,CAAC,CAC/D,CACF","names":["t","n","e","t","u","m","n","p","b","a","r","e","t","s","M","g","o","i","__spreadValues","w","c","l","u","f","r","e","t","s","w","c","o","m","a","p","e","b","r","m","a","p","p","f","s","r","m","a","l","n","u","f","e","r","o","s","l","t","__async","i","p","m","a","_","M","Q","p","U","u","m","e","s","C","l","r","t","n","i","w","__async","o","c","__spreadProps","__spreadValues","a","b"],"x_google_ignoreList":[0,1,2,3,4,5,6]}