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,EAAEb,UAAU,wBAAmB,IAAQ,OAAE,EAAC,WAAKa,EAAEb,UAAU,YAAO,IAAQ,OAAE,EAAC,WAAKa,EAAEb,UAAU,iBAAY,IAAQ,OAAE,EAAC,QAAE,CAACI,UAAS,KAAMS,EAAEb,UAAU,eAAe,OAAM,OAAE,EAAC,WAAKa,EAAEb,UAAU,aAAQ,IAAQ,OAAE,EAAC,WAAKa,EAAEb,UAAU,YAAO,IAAQ,OAAE,EAAC,WAAKa,EAAEb,UAAU,oBAAe,IAAQ,OAAE,EAAC,QAAE,CAACC,KAAKC,OAAO+H,KAAK,CAAC,IAAAvD,CAAK7E,EAAE5B,GAAG,GAAG2C,EAAEgD,IAAI3F,EAAEgC,MAAM,CAAC,MAAMhC,EAAEE,KAAKiB,QAAQ4E,QAAQnE,IAAI5B,GAAGE,KAAKqD,GAAG,GAAGvD,mBAAmBE,KAAKqD,UAAU,IAAI,CAAC,OAAO3B,CAAC,MAAMgB,EAAEb,UAAU,WAAM,IAAQ,OAAE,EAAC,QAAE,CAACI,UAAS,KAAMS,EAAEb,UAAU,cAAc,MAAMa,EAAEJ,GAAE,OAAE,EAAC,OAAE,2BAA2BI,GAAG,MAAMuH,EAAEvH,C","sources":["webpack://wingismaps/./node_modules/@arcgis/core/portal/PortalItemResource.js","webpack://wingismaps/./node_modules/@arcgis/core/portal/PortalRating.js","webpack://wingismaps/./node_modules/@arcgis/core/portal/PortalItem.js"],"sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.28/esri/copyright.txt for details.\n*/\nimport{_ as t}from\"../chunks/tslib.es6.js\";import r from\"../core/Accessor.js\";import e from\"../core/Error.js\";import o from\"../core/Logger.js\";import{isAbsolute as s,makeRelative as a}from\"../core/urlUtils.js\";import{property as l}from\"../core/accessorSupport/decorators/property.js\";import{cast as p}from\"../core/accessorSupport/decorators/cast.js\";import\"../core/arrayUtils.js\";import\"../core/has.js\";import{subclass as i}from\"../core/accessorSupport/decorators/subclass.js\";let n=class extends r{constructor(t){super(t),this.portalItem=null}normalizeCtorArgs(t){return t?.portalItem&&t.path?{...t,path:this._normalizePath(t.path,t.portalItem)}:t}set path(t){null!=t&&s(t)?o.getLogger(this).error(\"portalitemresource:invalid-path\",\"A portal item resource path must be relative\"):this._set(\"path\",t)}_castPath(t){return this._normalizePath(t,this.portalItem)}get url(){return this.portalItem&&this.path?`${this.portalItem.itemUrl}/resources/${this.path}`:null}get cdnUrl(){return this.portalItem&&this.path?`${this.portalItem.itemCdnUrl}/resources/${this.path}`:null}get itemRelativeUrl(){return this.portalItem&&this.path?`./resources/${this.path}`:null}fetch(t=\"json\",r){const o=this.cdnUrl;if(null==o)throw new e(\"portal-item-resource:fetch\",\"Portal item resource does not refer to a valid item or path\");return this.portalItem.portal.request(o,{responseType:t,query:{token:this.portalItem.apiKey},signal:r?.signal})}async update(t,r){const{addOrUpdateResource:e}=await import(\"./support/resourceUtils.js\");return e(this,\"update\",t,r)}hasPath(){return null!=this.path}_normalizePath(t,r){return null==t?t:(t=t.replace(/^\\/+/,\"\"),null!=r&&s(t)&&(t=a(t,r.itemUrl)),t?.replace(/^\\/+/,\"\").replace(/^(\\.\\/)?resources\\//,\"\"))}};t([l()],n.prototype,\"portalItem\",void 0),t([l({type:String,value:null})],n.prototype,\"path\",null),t([p(\"path\")],n.prototype,\"_castPath\",null),t([l({type:String,readOnly:!0})],n.prototype,\"url\",null),t([l({type:String,readOnly:!0})],n.prototype,\"cdnUrl\",null),t([l({type:String,readOnly:!0})],n.prototype,\"itemRelativeUrl\",null),n=t([i(\"esri.portal.PortalItemResource\")],n);const u=n;export{u as default};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.28/esri/copyright.txt for details.\n*/\nimport{_ as r}from\"../chunks/tslib.es6.js\";import o from\"../core/Accessor.js\";import{property as s}from\"../core/accessorSupport/decorators/property.js\";import\"../core/accessorSupport/ensureType.js\";import\"../core/arrayUtils.js\";import\"../core/has.js\";import{subclass as t}from\"../core/accessorSupport/decorators/subclass.js\";let e=class extends o{constructor(r){super(r),this.created=null,this.rating=null}};r([s()],e.prototype,\"created\",void 0),r([s()],e.prototype,\"rating\",void 0),e=r([t(\"esri.portal.PortalRating\")],e);const c=e;export{c as default};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.28/esri/copyright.txt for details.\n*/\nimport{_ as e}from\"../chunks/tslib.es6.js\";import{getAssetUrl as t}from\"../assets.js\";import{id as i}from\"../kernel.js\";import r from\"../core/Error.js\";import{JSONSupportMixin as o}from\"../core/JSONSupport.js\";import{clone as s,fixJson as a}from\"../core/lang.js\";import n from\"../core/Loadable.js\";import{isDataProtocol as l,makeAbsolute as p}from\"../core/urlUtils.js\";import{property as c}from\"../core/accessorSupport/decorators/property.js\";import{ensureClass as d}from\"../core/accessorSupport/ensureType.js\";import{reader as u}from\"../core/accessorSupport/decorators/reader.js\";import{subclass as m}from\"../core/accessorSupport/decorators/subclass.js\";import h from\"../geometry/Extent.js\";import g from\"./Portal.js\";import y from\"./PortalItemResource.js\";import v from\"./PortalRating.js\";var w;const f=new Set([\"Map Service\",\"Feature Service\",\"Feature Collection\",\"Scene Service\",\"Image Service\",\"Stream Service\",\"Vector Tile Service\",\"GeoJson\",\"CSV\",\"KML\",\"WFS\",\"WMTS\",\"WMS\",\"Feed\"]),b=new Set([\"KML\",\"GeoJson\",\"CSV\"]);let k=w=class extends(o(n)){static from(e){return d(w,e)}constructor(e){super(e),this.access=null,this.accessInformation=null,this.apiKey=null,this.applicationProxies=null,this.avgRating=null,this.categories=null,this.created=null,this.culture=null,this.description=null,this.extent=null,this.groupCategories=null,this.id=null,this.isOrgItem=!1,this.itemControl=null,this.licenseInfo=null,this.modified=null,this.name=null,this.numComments=null,this.numRatings=null,this.numViews=null,this.owner=null,this.ownerFolder=null,this.portal=null,this.screenshots=null,this.size=null,this.snippet=null,this.sourceJSON=null,this.sourceUrl=null,this.spatialReference=null,this.tags=null,this.title=null,this.type=null,this.typeKeywords=null,this.url=null}destroy(){this.portal=null}get displayName(){const e=this.type,t=this.typeKeywords||[];let i=e;return\"Feature Service\"===e||\"Feature Collection\"===e?i=t.includes(\"Table\")?\"Table\":t.includes(\"Route Layer\")?\"Route Layer\":t.includes(\"Markup\")?\"Markup\":\"Feature Layer\":\"Image Service\"===e?i=t.includes(\"Elevation 3D Layer\")?\"Elevation Layer\":t.includes(\"Tiled Imagery\")?\"Tiled Imagery Layer\":\"Imagery Layer\":\"Scene Service\"===e?i=\"Scene Layer\":\"Video Service\"===e?i=\"Video Layer\":\"Scene Package\"===e?i=\"Scene Layer Package\":\"Stream Service\"===e?i=\"Feature Layer\":\"Geoprocessing Service\"===e?i=t.includes(\"Web Tool\")?\"Tool\":\"Geoprocessing Service\":\"Geocoding Service\"===e?i=\"Locator\":\"Geoenrichment Service\"===e?i=\"GeoEnrichment Service\":\"Microsoft Powerpoint\"===e?i=\"Microsoft PowerPoint\":\"GeoJson\"===e?i=\"GeoJSON\":\"Globe Service\"===e?i=\"Globe Layer\":\"Vector Tile Service\"===e?i=\"Tile Layer\":\"netCDF\"===e?i=\"NetCDF\":\"Map Service\"===e?i=t.includes(\"Spatiotemporal\")||!t.includes(\"Hosted Service\")&&!t.includes(\"Tiled\")||t.includes(\"Relational\")?\"Map Image Layer\":\"Tile Layer\":e&&e.toLowerCase().includes(\"add in\")?i=e.replaceAll(/(add in)/gi,\"Add-In\"):\"datastore catalog service\"===e?i=\"Big Data File Share\":\"Compact Tile Package\"===e?i=\"Tile Package (tpkx)\":\"OGCFeatureServer\"===e?i=\"OGC Feature Layer\":\"web mapping application\"===e&&t.includes(\"configurableApp\")?i=\"Instant App\":\"Insights Page\"===e?i=\"Insights Report\":\"Excalibur Imagery Project\"===e&&(i=\"Excalibur Project\"),i}readExtent(e){return e&&e.length?new h(e[0][0],e[0][1],e[1][0],e[1][1]):null}get iconUrl(){const e=this.type?.toLowerCase()||\"\",i=this.typeKeywords||[],r=\"esri/images/portal/\",o=\"16\";let s,a=!1,n=!1,l=!1,p=!1,c=!1,d=!1,u=!1;return e.indexOf(\"service\")>0||\"feature collection\"===e||\"kml\"===e||\"wms\"===e||\"wmts\"===e||\"wfs\"===e?(a=i.includes(\"Hosted Service\"),\"feature service\"===e||\"feature collection\"===e||\"kml\"===e||\"wfs\"===e?(n=i.includes(\"Table\"),l=i.includes(\"Route Layer\"),p=i.includes(\"Markup\"),c=i.includes(\"Spatiotemporal\"),d=i.includes(\"UtilityNetwork\"),s=c&&n?\"spatiotemporaltable\":n?\"table\":l?\"routelayer\":p?\"markup\":c?\"spatiotemporal\":a?\"featureshosted\":d?\"utilitynetwork\":\"features\"):s=\"map service\"===e||\"wms\"===e||\"wmts\"===e?a||i.includes(\"Tiled\")||\"wmts\"===e?\"maptiles\":\"mapimages\":\"scene service\"===e?i.includes(\"Line\")?\"sceneweblayerline\":i.includes(\"3DObject\")?\"sceneweblayermultipatch\":i.includes(\"Point\")?\"sceneweblayerpoint\":i.includes(\"IntegratedMesh\")?\"sceneweblayermesh\":i.includes(\"PointCloud\")?\"sceneweblayerpointcloud\":i.includes(\"Polygon\")?\"sceneweblayerpolygon\":i.includes(\"Building\")?\"sceneweblayerbuilding\":i.includes(\"Voxel\")?\"sceneweblayervoxel\":\"sceneweblayer\":\"image service\"===e?i.includes(\"Elevation 3D Layer\")?\"elevationlayer\":i.includes(\"Tiled Imagery\")?\"tiledimagerylayer\":\"imagery\":\"stream service\"===e?\"streamlayer\":\"video service\"===e?i.includes(\"Live Stream\")?\"livestreamvideolayer\":\"videolayer\":\"vector tile service\"===e?\"vectortile\":\"datastore catalog service\"===e?\"datastorecollection\":\"geocoding service\"===e?\"geocodeservice\":\"geoprocessing service\"===e?i.includes(\"Web Tool\")?\"tool\":\"layers\":\"geodata service\"===e?\"geodataservice\":\"3dtiles service\"===e?\"3dtileslayer\":\"layers\"):\"web map\"===e||\"cityengine web scene\"===e?s=\"maps\":\"web scene\"===e?s=i.includes(\"ViewingMode-Local\")?\"webscenelocal\":\"websceneglobal\":\"web mapping application\"===e&&i.includes(\"configurableApp\")?s=\"instantapps\":\"web mapping application\"===e||\"mobile application\"===e||\"application\"===e||\"operation view\"===e||\"desktop application\"===e?s=\"apps\":\"map document\"===e||\"map package\"===e||\"published map\"===e||\"scene document\"===e||\"globe document\"===e||\"basemap package\"===e||\"mobile basemap package\"===e||\"mobile map package\"===e||\"project package\"===e||\"project template\"===e||\"pro map\"===e||\"layout\"===e||\"layer\"===e&&i.includes(\"ArcGIS Pro\")||\"explorer map\"===e&&i.indexOf(\"Explorer Document\")?s=\"mapsgray\":\"service definition\"===e||\"csv\"===e||\"shapefile\"===e||\"cad drawing\"===e||\"geojson\"===e||\"netcdf\"===e||\"administrative report\"===e?s=\"datafiles\":\"explorer add in\"===e||\"desktop add in\"===e||\"windows viewer add in\"===e||\"windows viewer configuration\"===e?s=\"appsgray\":\"360 vr experience\"===e?s=\"360vr\":\"arcgis pro add in\"===e||\"arcgis pro configuration\"===e?s=\"addindesktop\":\"rule package\"===e||\"file geodatabase\"===e||\"sqlite geodatabase\"===e||\"csv collection\"===e||\"kml collection\"===e||\"windows mobile package\"===e||\"map template\"===e||\"desktop application template\"===e||\"gml\"===e||\"arcpad package\"===e||\"code sample\"===e||\"document link\"===e||\"earth configuration\"===e||\"operations dashboard add in\"===e||\"rules package\"===e||\"image\"===e||\"workflow manager package\"===e||\"explorer map\"===e&&i.includes(\"Explorer Mapping Application\")||i.includes(\"Document\")?s=\"datafilesgray\":\"network analysis service\"===e||\"geoprocessing service\"===e||\"geodata service\"===e||\"geometry service\"===e||\"geoprocessing package\"===e||\"locator package\"===e||\"geoprocessing sample\"===e||\"workflow manager service\"===e?s=\"toolsgray\":\"layer\"===e||\"layer package\"===e||\"explorer layer\"===e?s=\"layersgray\":\"scene package\"===e?s=\"scenepackage\":\"3dtiles package\"===e?s=\"3dtileslayerpackage\":\"mobile scene package\"===e?s=\"mobilescenepackage\":\"tile package\"===e||\"compact tile package\"===e?s=\"tilepackage\":\"task file\"===e?s=\"taskfile\":\"report template\"===e?s=\"report-template\":\"statistical data collection\"===e?s=\"statisticaldatacollection\":\"insights workbook\"===e?s=\"workbook\":\"insights model\"===e?s=\"insightsmodel\":\"insights page\"===e?s=\"insightspage\":\"insights theme\"===e?s=\"insightstheme\":\"hub initiative\"===e?s=\"hubinitiative\":\"hubpage\"===e?s=\"hubpage\":\"hub event\"===e?s=\"hubevent\":\"hub site application\"===e?s=\"hubsite\":\"hub project\"===e?s=\"hubproject\":\"relational database connection\"===e?s=\"relationaldatabaseconnection\":\"big data file share\"===e?s=\"datastorecollection\":\"image collection\"===e?s=\"imagecollection\":\"style\"===e?s=\"style\":\"desktop style\"===e?s=\"desktopstyle\":\"dashboard\"===e?s=\"dashboard\":\"raster function template\"===e?s=\"rasterprocessingtemplate\":\"vector tile package\"===e?s=\"vectortilepackage\":\"ortho mapping project\"===e?s=\"orthomappingproject\":\"ortho mapping template\"===e?s=\"orthomappingtemplate\":\"solution\"===e?s=\"solutions\":\"geopackage\"===e?s=\"geopackage\":\"deep learning package\"===e?s=\"deeplearningpackage\":\"real time analytic\"===e?s=\"realtimeanalytics\":\"big data analytic\"===e?s=\"bigdataanalytics\":\"feed\"===e?s=\"feed\":\"excalibur imagery project\"===e?s=\"excaliburimageryproject\":\"notebook\"===e?s=\"notebook\":\"storymap\"===e?s=\"storymap\":\"survey123 add in\"===e?s=\"survey123addin\":\"mission\"===e?s=\"mission\":\"mission report\"===e?s=\"missionreport\":\"mission template\"===e?s=\"missiontemplate\":\"quickcapture project\"===e?s=\"quickcaptureproject\":\"pro report\"===e?s=\"proreport\":\"pro report template\"===e?s=\"proreporttemplate\":\"urban model\"===e?s=\"urbanmodel\":\"web experience\"===e?s=\"experiencebuilder\":\"web experience template\"===e?s=\"webexperiencetemplate\":\"experience builder widget\"===e?s=\"experiencebuilderwidget\":\"experience builder widget package\"===e?s=\"experiencebuilderwidgetpackage\":\"workflow\"===e?s=\"workflow\":\"insights script\"===e?s=\"insightsscript\":\"kernel gateway connection\"===e?s=\"kernelgatewayconnection\":\"hub initiative template\"===e?s=\"hubinitiativetemplate\":\"storymap theme\"===e?s=\"storymaptheme\":\"knowledge graph\"===e?s=\"knowledgegraph\":\"knowledge studio project\"===e?s=\"knowledgestudio\":\"native application\"===e?s=\"nativeapp\":\"native application installer\"===e?s=\"nativeappinstaller\":\"link chart\"===e?s=\"linkchart\":\"investigation\"===e?s=\"investigation\":\"ogcfeatureserver\"===e?s=\"features\":\"pro project\"===e?s=\"proproject\":\"insights workbook package\"===e?s=\"insightsworkbookpackage\":\"apache parquet\"===e?s=\"apacheparquet\":\"notebook code snippets\"===e||\"notebook code snippet library\"===e?s=\"notebookcodesnippets\":\"suitability model\"===e?s=\"suitabilitymodel\":\"esri classifier definition\"===e?s=\"classifierdefinition\":\"esri classification schema\"===e?s=\"classificationschema\":\"insights data engineering workbook\"===e?s=\"dataengineeringworkbook\":\"insights data engineering model\"===e?s=\"dataengineeringmodel\":\"deep learning studio project\"===e?s=\"deeplearningproject\":\"discussion\"===e?s=\"discussion\":\"allsource project\"===e?s=\"allsourceproject\":\"api key\"===e?s=\"apikey\":\"data pipeline\"===e?s=\"datapipelines\":\"group layer\"===e?(u=i.includes(\"Map\"),s=u?\"layergroup2d\":\"layergroup\"):s=\"media layer\"===e?\"onlinemedialayer\":\"form\"===e?i.includes(\"Survey123\")?\"survey\":\"datafilesgray\":\"maps\",s?t(r+s+o+\".png\"):null}get isLayer(){return null!=this.type&&f.has(this.type)}get itemCdnUrl(){let e=this.itemUrl;return e&&i&&!i.findCredential(e)&&(e=i._normalizeAGOLorgDomain(e),e=e.replace(/^https?:\\/\\/www\\.arcgis\\.com/,\"https://cdn.arcgis.com\"),e=e.replace(/^https?:\\/\\/devext\\.arcgis\\.com/,\"https://cdndev.arcgis.com\"),e=e.replace(/^https?:\\/\\/qaext\\.arcgis\\.com/,\"https://cdnqa.arcgis.com\")),e}get itemPageUrl(){const e=this.portal?.itemPageUrl;return e&&this.id?`${e}?id=${this.id}`:null}get itemUrl(){const e=this.portal?.restUrl;return e&&this.id?`${e}/content/items/${this.id}`:null}get thumbnailUrl(){const e=this.itemUrl,t=this.thumbnail;return e&&t?this.portal?.normalizeUrl(`${e}/info/${t}?f=json`)??null:null}get userItemUrl(){const e=this.portal?.restUrl;if(!e)return null;const t=this.owner||this.portal?.user?.username;if(!t)return null;return`${e}/content/users/${this.ownerFolder?`${t}/${this.ownerFolder}`:t}/items/${this.id}`}load(e){const t=this.portal??(this.portal=g.getDefault()),i=t.load(e).then((()=>this.sourceJSON?this.sourceJSON:this.id&&this.itemUrl?t.request(this.itemUrl,{signal:null!=e?e.signal:null,query:{token:this.apiKey}}):{})).then((e=>{this.sourceJSON=e,this.read(e)}));return this.addResolvingPromise(i),Promise.resolve(this)}async addRating(e){const t={method:\"post\",query:{}};return e instanceof v&&(e=e.rating),null==e||isNaN(e)||\"number\"!=typeof e||(t.query.rating=e),this.portal?(await this.portal.request(this.itemUrl+\"/addRating\",t),new v({rating:e,created:new Date})):null}clone(){const e={access:this.access,accessInformation:this.accessInformation,applicationProxies:s(this.applicationProxies),avgRating:this.avgRating,categories:s(this.categories),created:s(this.created),culture:this.culture,description:this.description,extent:s(this.extent),groupCategories:s(this.groupCategories),id:this.id,itemControl:this.itemControl,licenseInfo:this.licenseInfo,modified:s(this.modified),name:this.name,numComments:this.numComments,numRatings:this.numRatings,numViews:this.numViews,owner:this.owner,ownerFolder:this.ownerFolder,portal:this.portal,screenshots:s(this.screenshots),size:this.size,snippet:this.snippet,sourceUrl:this.sourceUrl,spatialReference:this.spatialReference,tags:s(this.tags),thumbnail:this.thumbnail,title:this.title,type:this.type,typeKeywords:s(this.typeKeywords),url:this.url};this.loaded&&(e.loadStatus=\"loaded\");const t=new w({sourceJSON:this.sourceJSON}).set(e);return t._set(\"isOrgItem\",this.isOrgItem),t}createPostQuery(){const e=this.toJSON();for(const i of[\"tags\",\"typeKeywords\",\"categories\"])e[i]=e[i]?.join(\", \");const{extent:t}=e;return t&&(e.extent=JSON.stringify(t)),e}async deleteRating(){await this.portal.request(this.itemUrl+\"/deleteRating\",{method:\"post\"})}fetchData(e=\"json\",t){return this.portal.request(this.itemUrl+\"/data\",{responseType:e,...t,query:{token:this.apiKey}})}async fetchRating(e){const t=await this.portal.request(this.itemUrl+\"/rating\",{query:{token:this.apiKey},...e});return null!=t.rating?(t.created=new Date(t.created),new v(t)):null}fetchRelatedItems(e,t){return this.portal.requestToTypedArray(this.itemUrl+\"/relatedItems\",{query:{...e,token:this.apiKey},...t},w)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}reload(){return this.portal.request(this.itemUrl??\"\",{cacheBust:!0,query:{token:this.apiKey}}).then((e=>(this.sourceJSON=e,this.read(e),this)))}update(e){return this.id?this.load().then((()=>this.portal.signIn())).then((()=>{const t=e?.data,i={method:\"post\"};i.query=this.createPostQuery();for(const e in i.query)null===i.query[e]&&(i.query[e]=\"\");return i.query.clearEmptyFields=!0,null!=t&&(\"string\"==typeof t?i.query.text=t:\"object\"==typeof t&&(i.query.text=JSON.stringify(t))),this.portal.request(`${this.userItemUrl}/update`,i).then((()=>this.reload()))})):Promise.reject(new r(\"portal:item-does-not-exist\",\"The item does not exist yet and cannot be updated\"))}async copy(e){if(!this.id)throw new r(\"portal:item-does-not-exist\",\"The item does not exist yet\");await this.load();const{portal:t,itemUrl:i}=this;await t.signIn();const{copyResources:o,folder:s,tags:a,title:n}=e||{},l={method:\"post\",query:{copyPrivateResources:\"all\"===o,folder:\"string\"==typeof s?s:s?.id,includeResources:!!o,tags:a?.join(\",\"),title:n}},{itemId:p}=await t.request(`${i}/copy`,l);return new w({id:p,portal:t})}updateThumbnail(e){return this.id?this.load().then((()=>this.portal.signIn())).then((()=>{const t=e.thumbnail,i=e.filename,r={method:\"post\"};if(\"string\"==typeof t)l(t)?r.query={data:t}:r.query={url:p(t)},null!=i&&(r.query.filename=i);else{const e=new FormData;null!=i?e.append(\"file\",t,i):e.append(\"file\",t),r.body=e}return this.portal.request(`${this.userItemUrl}/updateThumbnail`,r).then((()=>this.reload()))})):Promise.reject(new r(\"portal:item-does-not-exist\",\"The item does not exist yet and cannot be updated\"))}async fetchResources(e={},t){const{fetchResources:i}=await import(\"./support/resourceUtils.js\");return i(this,e,t)}async addResource(e,t,i){const{addOrUpdateResource:r}=await import(\"./support/resourceUtils.js\");return e.portalItem=this,r(e,\"add\",t,i)}async removeResource(e,t){const{removeResource:i}=await import(\"./support/resourceUtils.js\");if(e.portalItem&&e.portalItem.itemUrl!==this.itemUrl)throw new r(\"removeresource:portal-item-mismatch\",\"The portal item associated with the provided resource does not match the item\");return i(this,e,t)}async removeAllResources(e){const{removeAllResources:t}=await import(\"./support/resourceUtils.js\");return t(this,e)}resourceFromPath(e){return new y({portalItem:this,path:e})}toJSON(){const e=this.extent,t={accessInformation:this.accessInformation,categories:s(this.categories),created:this.created?.getTime(),description:this.description,extent:e&&[[e.xmin,e.ymin],[e.xmax,e.ymax]],id:this.id,isOrgItem:this.isOrgItem,licenseInfo:this.licenseInfo,modified:this.modified?.getTime(),name:this.name,owner:this.owner,ownerFolder:this.ownerFolder,snippet:this.snippet,sourceUrl:this.sourceUrl,spatialReference:this.spatialReference,tags:s(this.tags),thumbnail:this.thumbnail,title:this.title,type:this.type,typeKeywords:s(this.typeKeywords),url:this.url};return a(t)}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error(\"JSON object is already hydrated\");return new w({sourceJSON:e})}_getPostQuery(){const e=this.toJSON();for(const t in e)\"tags\"===t&&null!==e[t]&&(e[t]=e[t].join(\", \")),\"typeKeywords\"===t&&null!==e[t]&&(e[t]=e[t].join(\", \")),\"extent\"===t&&e[t]&&(e[t]=JSON.stringify(e[t]));return e}};e([c({type:[\"private\",\"shared\",\"org\",\"public\"]})],k.prototype,\"access\",void 0),e([c()],k.prototype,\"accessInformation\",void 0),e([c({type:String})],k.prototype,\"apiKey\",void 0),e([c({json:{read:{source:\"appProxies\"}}})],k.prototype,\"applicationProxies\",void 0),e([c()],k.prototype,\"avgRating\",void 0),e([c()],k.prototype,\"categories\",void 0),e([c({type:Date})],k.prototype,\"created\",void 0),e([c()],k.prototype,\"culture\",void 0),e([c()],k.prototype,\"description\",void 0),e([c({readOnly:!0})],k.prototype,\"displayName\",null),e([c({type:h})],k.prototype,\"extent\",void 0),e([u(\"extent\")],k.prototype,\"readExtent\",null),e([c()],k.prototype,\"groupCategories\",void 0),e([c({readOnly:!0})],k.prototype,\"iconUrl\",null),e([c()],k.prototype,\"id\",void 0),e([c({readOnly:!0})],k.prototype,\"isLayer\",null),e([c({type:Boolean,readOnly:!0})],k.prototype,\"isOrgItem\",void 0),e([c()],k.prototype,\"itemControl\",void 0),e([c({readOnly:!0})],k.prototype,\"itemPageUrl\",null),e([c({readOnly:!0})],k.prototype,\"itemUrl\",null),e([c()],k.prototype,\"licenseInfo\",void 0),e([c({type:Date})],k.prototype,\"modified\",void 0),e([c()],k.prototype,\"name\",void 0),e([c()],k.prototype,\"numComments\",void 0),e([c()],k.prototype,\"numRatings\",void 0),e([c()],k.prototype,\"numViews\",void 0),e([c()],k.prototype,\"owner\",void 0),e([c()],k.prototype,\"ownerFolder\",void 0),e([c({type:g})],k.prototype,\"portal\",void 0),e([c()],k.prototype,\"screenshots\",void 0),e([c()],k.prototype,\"size\",void 0),e([c()],k.prototype,\"snippet\",void 0),e([c()],k.prototype,\"sourceJSON\",void 0),e([c({type:String})],k.prototype,\"sourceUrl\",void 0),e([c({type:String})],k.prototype,\"spatialReference\",void 0),e([c()],k.prototype,\"tags\",void 0),e([c()],k.prototype,\"thumbnail\",void 0),e([c({readOnly:!0})],k.prototype,\"thumbnailUrl\",null),e([c()],k.prototype,\"title\",void 0),e([c()],k.prototype,\"type\",void 0),e([c()],k.prototype,\"typeKeywords\",void 0),e([c({type:String,json:{read(e,t){if(b.has(t.type)){const t=this.portal?.restUrl;e||=t&&this.id?`${t}/content/items/${this.id}/data`:null}return e}}})],k.prototype,\"url\",void 0),e([c({readOnly:!0})],k.prototype,\"userItemUrl\",null),k=w=e([m(\"esri.portal.PortalItem\")],k);const S=k;export{S as default};\n"],"names":["n","constructor","t","super","this","portalItem","normalizeCtorArgs","path","_normalizePath","getLogger","error","_set","_castPath","url","itemUrl","cdnUrl","itemCdnUrl","itemRelativeUrl","fetch","r","o","portal","request","responseType","query","token","apiKey","signal","update","addOrUpdateResource","e","hasPath","replace","prototype","type","String","value","readOnly","u","created","rating","c","w","f","Set","b","k","from","access","accessInformation","applicationProxies","avgRating","categories","culture","description","extent","groupCategories","id","isOrgItem","itemControl","licenseInfo","modified","name","numComments","numRatings","numViews","owner","ownerFolder","screenshots","size","snippet","sourceJSON","sourceUrl","spatialReference","tags","title","typeKeywords","destroy","displayName","i","includes","toLowerCase","replaceAll","readExtent","length","iconUrl","s","a","l","p","d","indexOf","isLayer","has","findCredential","_normalizeAGOLorgDomain","itemPageUrl","restUrl","thumbnailUrl","thumbnail","normalizeUrl","userItemUrl","user","username","load","getDefault","then","read","addResolvingPromise","Promise","resolve","addRating","method","isNaN","Date","clone","loaded","loadStatus","set","createPostQuery","toJSON","join","JSON","stringify","deleteRating","fetchData","fetchRating","fetchRelatedItems","requestToTypedArray","getThumbnailUrl","reload","cacheBust","signIn","data","clearEmptyFields","text","reject","copy","copyResources","folder","copyPrivateResources","includeResources","itemId","updateThumbnail","filename","FormData","append","body","fetchResources","addResource","removeResource","removeAllResources","resourceFromPath","getTime","xmin","ymin","xmax","ymax","fromJSON","declaredClass","Error","_getPostQuery","json","source","Boolean","S"],"sourceRoot":""}