(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6020b8b6"],{"331e":function(e,t,s){"use strict";s.r(t),s.d(t,"default",(function(){return h}));var i=s("a4ee"),r=(s("c120"),s("b2b2")),a=(s("e92d"),s("cea0"),s("b50f"),s("2dd4"),s("d386")),o=s("0f1c"),n=s("01f2"),c=s("8c81"),l=s("ba46"),d=s("a015");class p{constructor(e,t){this.offset=e,this.extent=t}}function b(e){const t=e.key,s=new Map,i=256,r=c["P"],a=e.tileInfoView.tileInfo.isWrappable;return s.set(Object(d["a"])(t,-1,-1,a).id,new p([-r,-r],[r-i,r-i,r,r])),s.set(Object(d["a"])(t,0,-1,a).id,new p([0,-r],[0,r-i,r,r])),s.set(Object(d["a"])(t,1,-1,a).id,new p([r,-r],[0,r-i,i,r])),s.set(Object(d["a"])(t,-1,0,a).id,new p([-r,0],[r-i,0,r,r])),s.set(Object(d["a"])(t,1,0,a).id,new p([r,0],[0,0,i,r])),s.set(Object(d["a"])(t,-1,1,a).id,new p([-r,r],[r-i,0,r,i])),s.set(Object(d["a"])(t,0,1,a).id,new p([0,r],[0,0,r,i])),s.set(Object(d["a"])(t,1,1,a).id,new p([r,r],[0,0,i,i])),s}let u=class extends l["a"]{constructor(){super(...arguments),this.type="heatmap",this._tileKeyToFeatureSets=new Map}initialize(){this.handles.add([this.tileStore.on("update",this.onTileUpdate.bind(this))])}async update(e,t){const s=t.schema.processors[0];"heatmap"===s.type&&Object(o["a"])(this._schema,s)&&(e.mesh=!0,this._schema=s)}onTileUpdate(e){for(const t of e.removed)this._tileKeyToFeatureSets.delete(t.key.id)}onTileClear(e){const t={clear:!0};return this._tileKeyToFeatureSets.delete(e.key.id),this.remoteClient.invoke("tileRenderer.onTileData",{tileKey:e.id,data:t})}async onTileMessage(e,t,s){this._tileKeyToFeatureSets.has(e.key.id)||this._tileKeyToFeatureSets.set(e.key.id,new Map);const i=this._tileKeyToFeatureSets.get(e.key.id);if(Object(r["k"])(t.addOrUpdate)&&t.addOrUpdate.hasFeatures&&i.set(t.addOrUpdate.instance,t),t.end){const t=[],i=b(e);this._tileKeyToFeatureSets.forEach((s,a)=>{if(a===e.key.id)s.forEach(e=>Object(r["b"])(e.addOrUpdate,e=>t.push(e)));else if(i.has(a)){const e=i.get(a),[o,n]=e.offset;s.forEach(e=>Object(r["b"])(e.addOrUpdate,e=>{const s=e.transform(o,n,1,1);t.push(s)}))}});const a=Object(n["a"])(t,this._schema.mesh,512,512),o={tileKey:e.key.id,intensityInfo:a},c=[a.matrix];return this.remoteClient.invoke("tileRenderer.onTileData",o,{...s,transferList:c})}}onTileError(e,t,s){return this.remoteClient.invoke("tileRenderer.onTileError",{tileKey:e.id,error:t},s)}};u=Object(i["a"])([Object(a["a"])("esri.views.2d.layers.features.processors.HeatmapProcessor")],u);const h=u},a015:function(e,t,s){"use strict";s.d(t,"a",(function(){return i}));s("ee0e");function i(e,t,s,i){const r=e.clone(),a=1<=a?(r.col=o-a,r.world+=1):r.col=o,r.row=n,r}},ba46:function(e,t,s){"use strict";s.d(t,"a",(function(){return c}));var i=s("a4ee"),r=s("9096"),a=s("59b2"),o=(s("b50f"),s("c120"),s("cea0"),s("d386"));let n=class extends r["a"]{initialize(){}destroy(){}get supportsTileUpdates(){return!1}get spatialReference(){const e=this.get("tileStore.tileScheme.spatialReference");return e&&e.toJSON()||null}};Object(i["a"])([Object(a["b"])({readOnly:!0})],n.prototype,"supportsTileUpdates",null),Object(i["a"])([Object(a["b"])({constructOnly:!0})],n.prototype,"remoteClient",void 0),Object(i["a"])([Object(a["b"])({constructOnly:!0})],n.prototype,"service",void 0),Object(i["a"])([Object(a["b"])()],n.prototype,"spatialReference",null),Object(i["a"])([Object(a["b"])({constructOnly:!0})],n.prototype,"tileInfo",void 0),Object(i["a"])([Object(a["b"])({constructOnly:!0})],n.prototype,"tileStore",void 0),n=Object(i["a"])([Object(o["a"])("esri.views.2d.layers.features.processors.BaseProcessor")],n);const c=n}}]); //# sourceMappingURL=chunk-6020b8b6.a5018e8e.js.map