1"use strict";(self.webpackChunkbirn_project=self.webpackChunkbirn_project||[]).push([[5227],{25227:(J,m,s)=>{s.r(m),s.d(m,{default:()=>H});var y=s(15861),a=s(17626),g=s(84792),L=s(26584),f=s(63290),d=s(62208),T=s(99959),u=s(10699),I=s(21726),n=s(77712),x=s(85931),D=(s(8314),s(90912),s(68653)),b=s(76898),j=s(79334),E=s(44917),O=s(5143),V=s(65088),M=s(49286),U=s(6647),Z=s(13812),$=s(54024),A=s(59289);const P=f.Z.getLogger("esri.core.workers.WorkerHandle");class w{constructor(e,t,r,h,c={}){this._mainMethod=t,this._transferLists=r,this._listeners=[],this._promise=(0,A.bA)(e,{...c,schedule:h}).then(p=>{if(void 0===this._thread){this._thread=p,this._promise=null,c.hasInitialize&&this.broadcast({},"initialize");for(const l of this._listeners)this._connectListener(l)}else p.close()}),this._promise.catch(p=>P.error(`Failed to initialize ${e} worker: ${p}`))}on(e,t){const r={removed:!1,eventName:e,callback:t,threadHandle:null};return this._listeners.push(r),this._connectListener(r),(0,$.kB)(()=>{r.removed=!0,(0,x.Od)(this._listeners,r),this._thread&&(0,d.pC)(r.threadHandle)&&r.threadHandle.remove()})}destroy(){this._thread&&(this._thread.close(),this._thread=null),this._promise=null}invoke(e,t){return this.invokeMethod(this._mainMethod,e,t)}invokeMethod(e,t,r){if(this._thread){const h=this._transferLists[e],c=h?h(t):[];return this._thread.invoke(e,t,{transferList:c,signal:r})}return this._promise?this._promise.then(()=>((0,u.k_)(r),this.invokeMethod(e,t,r))):Promise.reject(null)}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then(()=>{}):this._promise?this._promise.then(()=>this.broadcast(e,t)):Promise.reject()}get promise(){return this._promise}_connectListener(e){this._thread&&this._thread.on(e.eventName,e.callback).then(t=>{e.removed||(e.threadHandle=t)})}}class S extends w{constructor(e=null){super("LercWorker","_decode",{_decode:t=>[t.buffer]},e,{strategy:"dedicated"}),this.schedule=e,this.ref=0}decode(e,t,r){return e&&0!==e.byteLength?this.invoke({buffer:e,options:t},r):Promise.resolve(null)}release(){--this.ref<=0&&(v.forEach((e,t)=>{e===this&&v.delete(t)}),this.destroy())}}const v=new Map,C=f.Z.getLogger("esri.layers.ElevationLayer");let o=class extends((0,O.Z)((0,V.Y)((0,M.q)((0,U.I)((0,T.R)(E.Z)))))){constructor(...i){super(...i),this.copyright=null,this.heightModelInfo=null,this.path=null,this.opacity=1,this.operationalLayerType="ArcGISTiledElevationServiceLayer",this.sourceJSON=null,this.type="elevation",this.url=null,this.version=null,this._lercDecoder=function N(i=null){let e=v.get((0,d.Wg)(i));return e||((0,d.pC)(i)?(e=new S(t=>i.schedule(t)),v.set(i,e)):(e=new S,v.set(null,e))),++e.ref,e}()}normalizeCtorArgs(i,e){return"string"==typeof i?{url:i,...e}:i}destroy(){this._lercDecoder=(0,d.RY)(this._lercDecoder)}set minScale(i){this.constructed&&C.warn(`${this.declaredClass}.minScale support has been removed (since 4.5)`)}get minScale(){}set maxScale(i){this.constructed&&C.warn(`${this.declaredClass}.maxScale support has been removed (since 4.5)`)}get maxScale(){}readVersion(i,e){let t=e.currentVersion;return t||(t=9.3),t}load(i){const e=(0,d.pC)(i)?i.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"],supportsData:!1,validateItem:t=>{for(let r=0;r<t.typeKeywords.length;r++)if("elevation 3d layer"===t.typeKeywords[r].toLowerCase())return!0;throw new L.Z("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}' ",{type:"Image Service",expectedType:"Image Service Elevation 3D Layer"})}},i).catch(u.r9).then(()=>this._fetchImageService(e))),Promise.resolve(this)}fetchTile(i,e,t,r){const h=(0,d.pC)((r=r||{signal:null}).signal)?r.signal:r.signal=(new AbortController).signal,c={responseType:"array-buffer",signal:h},p={noDataValue:r.noDataValue,returnFileInfo:!0};return this.load().then(()=>this._fetchTileAvailability(i,e,t,r)).then(()=>(0,g.default)(this.getTileUrl(i,e,t),c)).then(l=>this._lercDecoder.decode(l.data,p,h)).then(l=>({values:l.pixelData,width:l.width,height:l.height,maxZError:l.fileInfo.maxZError,noDataValue:l.noDataValue,minValue:l.minValue,maxValue:l.maxValue}))}getTileUrl(i,e,t){const h=(0,I.B7)({...this.parsedUrl.query,blankTile:!(!this.tilemapCache&&this.supportsBlankTile)&&null});return`${this.parsedUrl.path}/tile/${i}/${e}/${t}${h?"?"+h:""}`}queryElevation(i,e){var t=this;return(0,y.Z)(function*(){const{ElevationQuery:r}=yield s.e(1991).then(s.bind(s,1991));return(0,u.k_)(e),(new r).query(t,i,e)})()}createElevationSampler(i,e){var t=this;return(0,y.Z)(function*(){const{ElevationQuery:r}=yield s.e(1991).then(s.bind(s,1991));return(0,u.k_)(e),(new r).createSampler(t,i,e)})()}_fetchTileAvailability(i,e,t,r){return this.tilemapCache?this.tilemapCache.fetchAvailability(i,e,t,r):Promise.resolve("unknown")}_fetchImageService(i){var e=this;return(0,y.Z)(function*(){if(e.sourceJSON)return e.sourceJSON;const t={query:{f:"json",...e.parsedUrl.query},responseType:"json",signal:i},r=yield(0,g.default)(e.parsedUrl.path,t);r.ssl&&(e.url=e.url.replace(/^http:/i,"https:")),e.sourceJSON=r.data,e.read(r.data,{origin:"service",url:e.parsedUrl})})()}
1get hasOverriddenFetchTile(){return!this.fetchTile.__isDefault__}};(0,a._)([(0,n.Cb)({json:{read:{source:"copyrightText"}}})],o.prototype,"copyright",void 0),(0,a._)([(0,n.Cb)({readOnly:!0,type:j.Z})],o.prototype,"heightModelInfo",void 0),(0,a._)([(0,n.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],o.prototype,"path",void 0),(0,a._)([(0,n.Cb)({type:["show","hide"]})],o.prototype,"listMode",void 0),(0,a._)([(0,n.Cb)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],o.prototype,"minScale",null),(0,a._)([(0,n.Cb)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],o.prototype,"maxScale",null),(0,a._)([(0,n.Cb)({json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],o.prototype,"opacity",void 0),(0,a._)([(0,n.Cb)({type:["ArcGISTiledElevationServiceLayer"]})],o.prototype,"operationalLayerType",void 0),(0,a._)([(0,n.Cb)()],o.prototype,"sourceJSON",void 0),(0,a._)([(0,n.Cb)({json:{read:!1},value:"elevation",readOnly:!0})],o.prototype,"type",void 0),(0,a._)([(0,n.Cb)(Z.HQ)],o.prototype,"url",void 0),(0,a._)([(0,n.Cb)()],o.prototype,"version",void 0),(0,a._)([(0,D.r)("version",["currentVersion"])],o.prototype,"readVersion",null),o=(0,a._)([(0,b.j)("esri.layers.ElevationLayer")],o),o.prototype.fetchTile.__isDefault__=!0;const H=o}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.