1"use strict";(self.webpackChunkodmp_angular=self.webpackChunkodmp_angular||[]).push([[3871],{86468:(F,D,e)=>{e.d(D,{T:()=>l,U:()=>a});var T=e(69287);function a(m,i,M=0){const P=(0,T.qE)(m,0,r);for(let S=0;S<4;S++)i[M+S]=Math.floor(256*d(P*g[S]))}function l(m,i=0){let M=0;for(let P=0;P<4;P++)M+=m[i+P]*p[P];return M}const g=[1,256,65536,16777216],p=[1/256,1/65536,1/16777216,1/4294967296],r=l(new Uint8ClampedArray([255,255,255,255]));function d(m){return m-Math.floor(m)}},76582:(F,D,e)=>{e.d(D,{LG:()=>P,mb:()=>U,yr:()=>S});var T=e(10467),a=e(56492),l=e(31610),g=e(12273),p=e(88532),r=e(63888),d=e(28399),m=e(50915),i=e(10746),M=e(4931);function P(b){return b&&"render"in b}function S(b){const u=document.createElement("canvas");return u.width=b.width,u.height=b.height,b.render(u.getContext("2d")),u}class U extends r.q{constructor(u=null,h=!1){super(),this.blendFunction="standard",this._sourceWidth=0,this._sourceHeight=0,this._textureInvalidated=!1,this._texture=null,this.stencilRef=0,this.coordScale=[1,1],this._height=void 0,this.pixelRatio=1,this.resolution=0,this.rotation=0,this._source=null,this._width=void 0,this.x=0,this.y=0,this.immutable=h,this.source=u,this.requestRender=this.requestRender.bind(this)}destroy(){this._texture&&(this._texture.dispose(),this._texture=null),null!=this._uploadStatus&&(this._uploadStatus.controller.abort(),this._uploadStatus=null)}get isSourceScaled(){return this.width!==this._sourceWidth||this.height!==this._sourceHeight}get height(){return void 0!==this._height?this._height:this._sourceHeight}set height(u){this._height=u}get source(){return this._source}set source(u){null==u&&null==this._source||(this._source=u,this.invalidateTexture(),this.requestRender())}get width(){return void 0!==this._width?this._width:this._sourceWidth}set width(u){this._width=u}beforeRender(u){super.beforeRender(u),this.updateTexture(u)}setSourceAsync(u,h){var w=this;return(0,T.A)(function*(){null!=w._uploadStatus&&w._uploadStatus.controller.abort();const R=new AbortController,O=(0,a.Tw)();return(0,a.NY)(h,()=>R.abort()),(0,a.NY)(R,B=>O.reject(B)),w._uploadStatus={controller:R,resolver:O},w.source=u,O.promise})()}invalidateTexture(){this._textureInvalidated||(this._textureInvalidated=!0,this._source instanceof HTMLImageElement?(this._sourceHeight=this._source.naturalHeight,this._sourceWidth=this._source.naturalWidth):this._source&&(this._sourceHeight=this._source.height,this._sourceWidth=this._source.width))}transitionStep(u,h){u>=64&&(this.fadeTransitionEnabled=!1),super.transitionStep(u,h)}setTransform(u){const h=(0,l.D_)(this.transforms.displayViewScreenMat3),[w,R]=u.toScreenNoRotation([0,0],[this.x,this.y]),O=this.resolution/this.pixelRatio/u.resolution,B=O*this.width,W=O*this.height,L=Math.PI*this.rotation/180;(0,l.Tl)(h,h,(0,p.fA)(w,R)),(0,l.Tl)(h,h,(0,p.fA)(B/2,W/2)),(0,l.e$)(h,h,-L),(0,l.Tl)(h,h,(0,p.fA)(-B/2,-W/2)),(0,l.Oe)(h,h,(0,p.fA)(B,W)),(0,l.lw)(this.transforms.displayViewScreenMat3,u.displayViewMat3,h)}setSamplingProfile(u){this._texture&&(u.mips&&!this._texture.descriptor.hasMipmap&&this._texture.generateMipmap(),this._texture.setSamplingMode(u.samplingMode))}bind(u,h){this._texture&&u.bindTexture(this._texture,h)}updateTexture(u){var h=this;return(0,T.A)(function*({context:w,painter:R}){if(!h._textureInvalidated)return;if(h._textureInvalidated=!1,h._texture||(h._texture=h._createTexture(w)),!h.source)return void h._texture.setData(null);h._texture.resize(h._sourceWidth,h._sourceHeight);const O=function x(b){var u;return P(b)?b instanceof d.A?null===(u=b.getRenderedRasterPixels())||void 0===u?void 0:u.renderedRasterPixels:S(b):b}(h.source);try{if(null!=h._uploadStatus){const{controller:B,resolver:W}=h._uploadStatus,L={signal:B.signal},{width:Y,height:C}=h,V=h._texture;yield R.textureUploadManager.enqueueTextureUpdate({data:O,texture:V,width:Y,height:C},L),W.resolve(),h._uploadStatus=null}else h._texture.setData(O);h.ready()}catch(B){(0,a.jH)(B)}}).apply(this,arguments)}onDetach(){this.destroy()}_createTransforms(){return{displayViewScreenMat3:(0,g.vt)()}}_createTexture(u){const h=this.immutable,w=new M.R;return w.internalFormat=h?m.H0.RGBA8:m.Ab.RGBA,w.wrapMode=m.pF.CLAMP_TO_EDGE,w.isImmutable=h,w.width=this._sourceWidth,w.height=this._sourceHeight,new i.g(u,w)}}},28399:(F,D,e)=>{e.d(D,{A:()=>T});class T{constructor(l,g,p){this.pixelBlock=l,this.extent=g,this.originalPixelBlock=p}get width(){return null!=this.pixelBlock?this.pixelBlock.width:0}get height(){return null!=this.pixelBlock?this.pixelBlock.height:0}render(l){var g;const p=this.pixelBlock;if(null==p)return;const r=this.filter({extent:this.extent,pixelBlock:null!==(g=this.originalPixelBlock)&&void 0!==g?g:p});if(null==r.pixelBlock)return;r.pixelBlock.maskIsAlpha&&(r.pixelBlock.premultiplyAlpha=!0);const d=r.pixelBlock.getAsRGBA(),m=l.createImageData(r.pixelBlock.width,r.pixelBlock.height);m.data.set(d),l.putImageData(m,0,0)}getRenderedRasterPixels(){const l=this.filter({extent:this.extent,pixelBlock:this.pixelBlock});return null==l.pixelBlock?null:(l.pixelBlock.maskIsAlpha&&(l.pixelBlock.premultiplyAlpha=!0),{width:l.pixelBlock.width,height:l.pixelBlock.height,renderedRasterPixels:new Uint8Array(l.pixelBlock.getAsRGBA().buffer)})}}},11393:(F,D,e)=>{e.r(D),e.d(D,{default:()=>ht});var T=e(10467),a=e(8189),l=e(77469),g=e(31178),p=e(11432),r=e(48900),d=e(45272),m=e(85211),S=(e(3248),e(35150),e(40707),e(76576)),x=e(28067),U=e(11817),b=e(32034),u=e(70264),h=e(68800),w=e(27641),R=e(76582),O=e(72663),B=e(84167),W=e(57052),L=e(13031),Y=e(41474),C=e(89563),V=e(1749),$=e(40018),tt=e(91837),at=e(3276),H=e(50915),lt=e(79061),et=e(31071),ot=e(48458),it=e(10746),st=e(4931);let nt=(()=>{class s{constructor(o){if(this._ownsRctx=!1,o)this._ownsRctx=!1,this._rctx=o;else{if(s._instance)return s._instanceRefCount++,s._instance;s._instanceRefCount=1,s._instance=this,this._ownsRctx=!0;const c=document.createElement("canvas").getContext("webgl2");c.getExtension("OES_texture_float"),this._rctx=new ot.e(c,{})}const E=(0,at.p)("raster/reproject","raster/reproject",new Map([["a_position",0]]),{applyProjection:!0,bilinear:!1,bicubic:!1});this._program=this._rctx.programCache.acquire(E.shaders.vertexShader,E.shaders.fragmentShader,E.attributes),this._rctx.useProgram(this._program),this._program.setUniform1f("u_opacity",1),this._program.setUniform1i("u_image",0),this._program.setUniform1i("u_flipY",0),this._program.setUniform1i("u_transformGrid",1),this._quad=new tt.A(this._rctx,[0,0,1,0,0,1,1,1])}reprojectTexture(o,v,E=!1){const c=(0,U.project)(o.extent,v),f=new V.A({x:(o.extent.xmax-o.extent.xmin)/o.texture.descriptor.width,y:(o.extent.ymax-o.extent.ymin)/o.texture.descriptor.height,spatialReference:o.extent.spatialReference}),{x:A,y:t}=(0,$.Wo)(f,v,o.extent);let n=(A+t)/2;const I=Math.round((c.xmax-c.xmin)/n),y=Math.round((c.ymax-c.ymin)/n);n=(c.width/I+c.height/y)/2;const j=new V.A({x:n,y:n,spatialReference:c.spatialReference}),Q=(0,$.l0)({projectedExtent:c,srcBufferExtent:o.extent,pixelSize:j,hasWrapAround:!0,spacing:[16,16]}),G=(0,et.kc)(this._rctx,Q),Z=new st.R(I,y);Z.wrapMode=H.pF.CLAMP_TO_EDGE;const N=new lt.H(this._rctx,Z);this._rctx.bindFramebuffer(N),this._rctx.setViewport(0,0,I,y),this._rctx.useProgram(this._program),this._rctx.bindTexture(o.texture,0),this._rctx.bindTexture(G,1),this._quad.bind();const{width:J=0,height:q=0}=o.texture.descriptor;if(this._program.setUniform2f("u_srcImageSize",J,q),this._program.setUniform2fv("u_transformSpacing",Q.spacing),this._program.setUniform2fv("u_transformGridSize",Q.size),this._program.setUniform2f("u_targetImageSize",I,y),this._quad.draw(),this._quad.unbind(),this._rctx.useProgram(null),this._rctx.bindFramebuffer(null),G.dispose(),E){const{width:X,height:K}=N,ut=new ImageData(null!=X?X:0,null!=K?K:0);N.readPixels(0,0,null!=X?X:0,null!=K?K:0,H.Ab.RGBA,H.ld.UNSIGNED_BYTE,ut.data);const dt=N.detachColorTexture(H.Nm.COLOR_ATTACHMENT0);return N.dispose(),{texture:dt,extent:c,imageData:ut}}const z=N.detachColorTexture(H.Nm.COLOR_ATTACHMENT0);return N.dispose(),{texture:z,extent:c}}reprojectBitmapData(o,v){const E=(0,R.LG)(o.bitmapData)?(0,R.yr)(o.bitmapData):o.bitmapData,c=new st.R;c.wrapMode=H.pF.CLAMP_TO_EDGE,c.width=o.bitmapData.width,c.height=o.bitmapData.height;const f=new it.g(this._rctx,c,E),A=this.reprojectTexture({texture:f,extent:o.extent},v,!0);A.texture.dispose();const t=document.createElement("canvas"),n=A.imageData;return t.width=n.width,t.height=n.height,t.getContext("2d").putImageData(n,0,0),{bitmapData:t,extent:A.extent}}loadAndReprojectBitmapData(o,v,E){var c=this;return(0,T.A)(function*(){const f=(yield(0,C.A)(o,{responseType:"image"})).data,A=document.createElement("canvas");A.width=f.width,A.height=f.height;const t=A.getContext("2d");t.drawImage(f,0,0);const n=t.getImageData(0,0,A.width,A.height);if(v.spatialReference.equals(E))return{bitmapData:n,extent:v};const I=c.reprojectBitmapData({bitmapData:n,extent:v},E);return{bitmapData:I.bitmapData,extent:I.extent}})()}destroy(){this._ownsRctx?(s._instanceRefCount--,0===s._instanceRefCount&&(this._quad.dispose(),this._program.dispose(),this._rctx.dispose(),s._instance=null)):(this._quad.dispose(),this._program.dispose())}}return s._instanceRefCount=0,s})();class rt{constructor(){this.allSublayers=new Map,this.allPoints=[],this.allPolylines=[],this.allPolygons=[],this.allMapImages=[]}}let k=class extends((0,B.e)(Y.A)){constructor(){super(...arguments),this._bitmapIndex=new Map,this._mapImageContainer=new O.l,this._kmlVisualData=new rt,this._fetchController=null,this.allVisiblePoints=new w.Y,this.allVisiblePolylines=new w.Y,this.allVisiblePolygons=new w.Y,this.allVisibleMapImages=new g.A}hitTest(s,_){var o=this;return(0,T.A)(function*(){var v,E,c;const f=o.layer;return[null===(v=o._pointsView)||void 0===v?void 0:v.hitTest(s),null===(E=o._polylinesView)||void 0===E?void 0:E.hitTest(s),null===(c=o._polygonsView)||void 0===c?void 0:c.hitTest(s)].flat().filter(
1Boolean).map(A=>(A.layer=f,A.sourceLayer=f,{type:"graphic",graphic:A,layer:f,mapPoint:s}))})()}update(s){this._polygonsView&&this._polygonsView.processUpdate(s),this._polylinesView&&this._polylinesView.processUpdate(s),this._pointsView&&this._pointsView.processUpdate(s)}attach(){this._fetchController=new AbortController,this.container.addChild(this._mapImageContainer),this._polygonsView=new L.A({view:this.view,graphics:this.allVisiblePolygons,requestUpdateCallback:()=>this.requestUpdate(),container:new W.A(this.view.featuresTilingScheme)}),this.container.addChild(this._polygonsView.container),this._polylinesView=new L.A({view:this.view,graphics:this.allVisiblePolylines,requestUpdateCallback:()=>this.requestUpdate(),container:new W.A(this.view.featuresTilingScheme)}),this.container.addChild(this._polylinesView.container),this._pointsView=new L.A({view:this.view,graphics:this.allVisiblePoints,requestUpdateCallback:()=>this.requestUpdate(),container:new W.A(this.view.featuresTilingScheme)}),this.container.addChild(this._pointsView.container),this.addAttachHandles([this.allVisibleMapImages.on("change",s=>{s.added.forEach(_=>this._addMapImage(_)),s.removed.forEach(_=>this._removeMapImage(_))}),(0,r.wB)(()=>this.layer.visibleSublayers,s=>{for(const _ of this._kmlVisualData.allSublayers.values())_.visibility=0;for(const _ of s){const o=this._kmlVisualData.allSublayers.get(_.id);o&&(o.visibility=1)}this._refreshCollections()})]),this._updatingHandles.addPromise(this._fetchService(this._fetchController.signal)),this._imageReprojector=new nt}detach(){this._fetchController=(0,p.DC)(this._fetchController),this._mapImageContainer.removeAllChildren(),this.container.removeAllChildren(),this._bitmapIndex.clear(),this._polygonsView=(0,p.pR)(this._polygonsView),this._polylinesView=(0,p.pR)(this._polylinesView),this._pointsView=(0,p.pR)(this._pointsView),this._imageReprojector=(0,p.pR)(this._imageReprojector)}viewChange(){this._polygonsView.viewChange(),this._polylinesView.viewChange(),this._pointsView.viewChange()}moveEnd(){}isUpdating(){return this._pointsView.updating||this._polygonsView.updating||this._polylinesView.updating}_addMapImage(s){var _,o;(null!==(_=this.view.spatialReference)&&void 0!==_&&_.isWGS84||null!==(o=this.view.spatialReference)&&void 0!==o&&o.isWebMercator)&&this._imageReprojector.loadAndReprojectBitmapData(s.href,x.A.fromJSON(s.extent),this.view.spatialReference).then(v=>{const E=new R.mb(v.bitmapData);E.x=v.extent.xmin,E.y=v.extent.ymax,E.resolution=v.extent.width/v.bitmapData.width,E.rotation=s.rotation,this._mapImageContainer.addChild(E),this._bitmapIndex.set(s,E)})}_getViewDependentUrl(s,_){return(0,T.A)(function*(){const{viewFormat:o,viewBoundScale:v,httpQuery:E}=s;if(null!=o){if(null==_)throw new Error("Loading this network link requires a view state.");let c;if(yield(0,U.load)(),null!=v&&1!==v){const z=new x.A(_.extent);z.expand(v),c=z}else c=_.extent;c=(0,U.project)(c,b.A.WGS84);const f=(0,U.project)(c,b.A.WebMercator),A=c.xmin,t=c.xmax,n=c.ymin,I=c.ymax,y=_.size[0]*_.pixelRatio,j=_.size[1]*_.pixelRatio,Q=Math.max(f.width,f.height),G={"[bboxWest]":A.toString(),"[bboxEast]":t.toString(),"[bboxSouth]":n.toString(),"[bboxNorth]":I.toString(),"[lookatLon]":c.center.x.toString(),"[lookatLat]":c.center.y.toString(),"[lookatRange]":Q.toString(),"[lookatTilt]":"0","[lookatHeading]":_.rotation.toString(),"[lookatTerrainLon]":c.center.x.toString(),"[lookatTerrainLat]":c.center.y.toString(),"[lookatTerrainAlt]":"0","[cameraLon]":c.center.x.toString(),"[cameraLat]":c.center.y.toString(),"[cameraAlt]":Q.toString(),"[horizFov]":"60","[vertFov]":"60","[horizPixels]":y.toString(),"[vertPixels]":j.toString(),"[terrainEnabled]":"0","[clientVersion]":l.rE,"[kmlVersion]":"2.2","[clientName]":"ArcGIS API for JavaScript","[language]":"en-US"},Z=z=>{for(const X in z){let K;for(K in G)z[X]=z[X].replace(K,G[K])}},N=(0,d.zf)(o);Z(N);let J={};null!=E&&(J=(0,d.zf)(E),Z(J));const q=(0,h.Dl)(s.href);return q.query={...q.query,...N,...J},`${q.path}?${(0,d.x0)(N)}`}return s.href})()}_fetchService(s){var _=this;return(0,T.A)(function*(){const o=new rt;yield _._loadVisualData(_.layer.url,o,s),_._kmlVisualData=o,_._refreshCollections()})()}_refreshCollections(){this.allVisiblePoints.removeAll(),this.allVisiblePolylines.removeAll(),this.allVisiblePolygons.removeAll(),this.allVisibleMapImages.removeAll(),this.allVisiblePoints.addMany(this._kmlVisualData.allPoints.filter(s=>this._isSublayerVisible(s.sublayerId)).map(({item:s})=>s)),this.allVisiblePolylines.addMany(this._kmlVisualData.allPolylines.filter(s=>this._isSublayerVisible(s.sublayerId)).map(({item:s})=>s)),this.allVisiblePolygons.addMany(this._kmlVisualData.allPolygons.filter(s=>this._isSublayerVisible(s.sublayerId)).map(({item:s})=>s)),this.allVisibleMapImages.addMany(this._kmlVisualData.allMapImages.filter(s=>this._isSublayerVisible(s.sublayerId)).map(({item:s})=>s))}_isSublayerVisible(s){const _=this._kmlVisualData.allSublayers.get(s);return!(null==_||!_.visibility)&&(-1===_.parentFolderId||this._isSublayerVisible(_.parentFolderId))}_loadVisualData(s,_,o){var v=this;return this._fetchParsedKML(s,o).then(function(){var E=(0,T.A)(function*(c){for(const f of c.sublayers){_.allSublayers.set(f.id,f);const A=f.points?yield(0,u.Sp)(f.points):[],t=f.polylines?yield(0,u.Sp)(f.polylines):[],n=f.polygons?yield(0,u.Sp)(f.polygons):[],I=f.mapImages||[];if(_.allPoints.push(...A.map(y=>({item:y,sublayerId:f.id}))),_.allPolylines.push(...t.map(y=>({item:y,sublayerId:f.id}))),_.allPolygons.push(...n.map(y=>({item:y,sublayerId:f.id}))),_.allMapImages.push(...I.map(y=>({item:y,sublayerId:f.id}))),f.networkLink){const y=yield v._getViewDependentUrl(f.networkLink,v.view.state);yield v._loadVisualData(y,_,o)}}});return function(c){return E.apply(this,arguments)}}())}_fetchParsedKML(s,_){return(0,u.Ox)(s,this.layer.spatialReference,this.layer.refreshInterval,_).then(o=>(0,u._4)(o.data))}_removeMapImage(s){const _=this._bitmapIndex.get(s);_&&(this._mapImageContainer.removeChild(_),this._bitmapIndex.delete(s))}};(0,a._)([(0,m.MZ)()],k.prototype,"_pointsView",void 0),(0,a._)([(0,m.MZ)()],k.prototype,"_polylinesView",void 0),(0,a._)([(0,m.MZ)()],k.prototype,"_polygonsView",void 0),(0,a._)([(0,m.MZ)()],k.prototype,"updating",void 0),k=(0,a._)([(0,S.$)("esri.views.2d.layers.KMLLayerView2D")],k);const ht=k},93093:(F,D,e)=>{e.d(D,{H:()=>l,If:()=>g,Y:()=>a});const a=class T{};function l(p,...r){let d="";for(let m=0;m<r.length;m++)d+=p[m]+r[m];return d+=p[p.length-1],d}function g(p,r,d=""){return p?r:d}var p;(p=l||(l={})).int=function r(m){return Math.round(m).toString()},p.float=function d(m){return m.toPrecision(8)}},67496:(F,D,e)=>{var T,a,l,g,p,r,d,m,i;e.d(D,{Am:()=>g,C7:()=>l,JS:()=>m,Mg:()=>r,dd:()=>p,it:()=>a,s2:()=>T,sf:()=>d}),(i=T||(T={}))[i.None=0]="None",i[i.Front=1]="Front",i[i.Back=2]="Back",i[i.COUNT=3]="COUNT",function(i){i[i.Less=0]="Less",i[i.Lequal=1]="Lequal",i[i.COUNT=2]="COUNT"}(a||(a={})),function(i){i[i.BACKGROUND=0]="BACKGROUND",i[i.UPDATE=1]="UPDATE"}(l||(l={})),function(i){i[i.NOT_LOADED=0]="NOT_LOADED",i[i.LOADING=1]="LOADING",i[i.LOADED=2]="LOADED"}(g||(g={})),function(i){i[i.IntegratedMeshMaskExcluded=1]="IntegratedMeshMaskExcluded",i[i.OutlineVisualElementMask=2]="OutlineVisualElementMask"}
1(p||(p={})),function(i){i[i.Highlight=0]="Highlight",i[i.MaskOccludee=1]="MaskOccludee"}(r||(r={})),function(i){i[i.Blend=0]="Blend",i[i.Opaque=1]="Opaque",i[i.Mask=2]="Mask",i[i.MaskBlend=3]="MaskBlend",i[i.COUNT=4]="COUNT"}(d||(d={})),function(i){i.DDS_ENCODING="image/vnd-ms.dds",i.KTX2_ENCODING="image/ktx2",i.BASIS_ENCODING="image/x.basis"}(m||(m={}))},52274:(F,D,e)=>{e.d(D,{_:()=>a});var T=e(11432);class a{constructor(){this._result=!1}dispose(){this._program=(0,T.WD)(this._program)}get result(){return null!=this._program&&(this._result=this._test(this._program),this.dispose()),this._result}}},54949:(F,D,e)=>{e.d(D,{_R:()=>l});class T{constructor(p,r,d,m,i,M,P,S,x){this.createQuery=p,this.deleteQuery=r,this.resultAvailable=d,this.getResult=m,this.disjoint=i,this.beginTimeElapsed=M,this.endTimeElapsed=P,this.createTimestamp=S,this.timestampBits=x}}let a=!1;function l(g,p){if(p.disjointTimerQuery)return null;let r=g.getExtension("EXT_disjoint_timer_query_webgl2");return r?new T(()=>g.createQuery(),d=>{g.deleteQuery(d),a=!1},d=>g.getQueryParameter(d,g.QUERY_RESULT_AVAILABLE),d=>g.getQueryParameter(d,g.QUERY_RESULT),()=>g.getParameter(r.GPU_DISJOINT_EXT),d=>{a||(a=!0,g.beginQuery(r.TIME_ELAPSED_EXT,d))},()=>{g.endQuery(r.TIME_ELAPSED_EXT),a=!1},d=>r.queryCounterEXT(d,r.TIMESTAMP_EXT),()=>g.getQuery(r.TIMESTAMP_EXT,r.QUERY_COUNTER_BITS_EXT)):(r=g.getExtension("EXT_disjoint_timer_query"),r?new T(()=>r.createQueryEXT(),d=>{r.deleteQueryEXT(d),a=!1},d=>r.getQueryObjectEXT(d,r.QUERY_RESULT_AVAILABLE_EXT),d=>r.getQueryObjectEXT(d,r.QUERY_RESULT_EXT),()=>g.getParameter(r.GPU_DISJOINT_EXT),d=>{a||(a=!0,r.beginQueryEXT(r.TIME_ELAPSED_EXT,d))},()=>{r.endQueryEXT(r.TIME_ELAPSED_EXT),a=!1},d=>r.queryCounterEXT(d,r.TIMESTAMP_EXT),()=>r.getQueryEXT(r.TIMESTAMP_EXT,r.QUERY_COUNTER_BITS_EXT)):null)}},41396:(F,D,e)=>{e.d(D,{Ey:()=>Y,Ky:()=>i,Ms:()=>A,Os:()=>m,Uy:()=>x,Xt:()=>S,gh:()=>p,kn:()=>U,p3:()=>g});var T=e(67496),a=e(50915);function l(t,n,I=a.Tb.ADD,y=[0,0,0,0]){return{srcRgb:t,srcAlpha:t,dstRgb:n,dstAlpha:n,opRgb:I,opAlpha:I,color:{r:y[0],g:y[1],b:y[2],a:y[3]}}}function g(t,n,I,y,j=a.Tb.ADD,Q=a.Tb.ADD,G=[0,0,0,0]){return{srcRgb:t,srcAlpha:n,dstRgb:I,dstAlpha:y,opRgb:j,opAlpha:Q,color:{r:G[0],g:G[1],b:G[2],a:G[3]}}}const p=l(a.dn.ZERO,a.dn.ONE_MINUS_SRC_ALPHA),m=(l(a.dn.ONE,a.dn.ZERO),l(a.dn.ONE,a.dn.ONE),l(a.dn.ONE,a.dn.ONE_MINUS_SRC_ALPHA)),i=g(a.dn.SRC_ALPHA,a.dn.ONE,a.dn.ONE_MINUS_SRC_ALPHA,a.dn.ONE_MINUS_SRC_ALPHA),M={face:a.Y7.BACK,mode:a.Ac.CCW},P={face:a.Y7.FRONT,mode:a.Ac.CCW},S=t=>t===T.s2.Back?M:t===T.s2.Front?P:null,x={zNear:0,zFar:1},U={r:!0,g:!0,b:!0,a:!0};function b(t){return $.intern(t)}function u(t){return at.intern(t)}function h(t){return lt.intern(t)}function w(t){return ot.intern(t)}function R(t){return st.intern(t)}function O(t){return rt.intern(t)}function B(t){return ht.intern(t)}function W(t){return _.intern(t)}function L(t){return v.intern(t)}function Y(t){return c.intern(t)}class C{constructor(n,I){this._makeKey=n,this._makeRef=I,this._interns=new Map}intern(n){var I;if(!n)return null;const y=this._makeKey(n),j=this._interns;return j.has(y)||j.set(y,this._makeRef(n)),null!==(I=j.get(y))&&void 0!==I?I:null}}function V(t){return"["+t.join(",")+"]"}const $=new C(tt,t=>({__tag:"Blending",...t}));function tt(t){return t?V([t.srcRgb,t.srcAlpha,t.dstRgb,t.dstAlpha,t.opRgb,t.opAlpha,t.color.r,t.color.g,t.color.b,t.color.a]):null}const at=new C(H,t=>({__tag:"Culling",...t}));function H(t){return t?V([t.face,t.mode]):null}const lt=new C(et,t=>({__tag:"PolygonOffset",...t}));function et(t){return t?V([t.factor,t.units]):null}const ot=new C(it,t=>({__tag:"DepthTest",...t}));function it(t){return t?V([t.func]):null}const st=new C(nt,t=>({__tag:"StencilTest",...t}));function nt(t){return t?V([t.function.func,t.function.ref,t.function.mask,t.operation.fail,t.operation.zFail,t.operation.zPass]):null}const rt=new C(k,t=>({__tag:"DepthWrite",...t}));function k(t){return t?V([t.zNear,t.zFar]):null}const ht=new C(s,t=>({__tag:"ColorWrite",...t}));function s(t){return t?V([t.r,t.g,t.b,t.a]):null}const _=new C(o,t=>({__tag:"StencilWrite",...t}));function o(t){return t?V([t.mask]):null}const v=new C(E,t=>({__tag:"DrawBuffers",...t}));function E(t){return t?V(t.buffers):null}const c=new C(function f(t){return t?V([tt(t.blending),H(t.culling),et(t.polygonOffset),it(t.depthTest),nt(t.stencilTest),k(t.depthWrite),s(t.colorWrite),o(t.stencilWrite),E(t.drawBuffers)]):null},t=>({blending:b(t.blending),culling:u(t.culling),polygonOffset:h(t.polygonOffset),depthTest:w(t.depthTest),stencilTest:R(t.stencilTest),depthWrite:O(t.depthWrite),colorWrite:B(t.colorWrite),stencilWrite:W(t.stencilWrite),drawBuffers:L(t.drawBuffers)}
1));class A{constructor(n){this._pipelineInvalid=!0,this._blendingInvalid=!0,this._cullingInvalid=!0,this._polygonOffsetInvalid=!0,this._depthTestInvalid=!0,this._stencilTestInvalid=!0,this._depthWriteInvalid=!0,this._colorWriteInvalid=!0,this._stencilWriteInvalid=!0,this._drawBuffersInvalid=!0,this._stateSetters=n}setPipeline(n){(this._pipelineInvalid||n!==this._pipeline)&&(this._setBlending(n.blending),this._setCulling(n.culling),this._setPolygonOffset(n.polygonOffset),this._setDepthTest(n.depthTest),this._setStencilTest(n.stencilTest),this._setDepthWrite(n.depthWrite),this._setColorWrite(n.colorWrite),this._setStencilWrite(n.stencilWrite),this._setDrawBuffers(n.drawBuffers),this._pipeline=n),this._pipelineInvalid=!1}invalidateBlending(){this._blendingInvalid=!0,this._pipelineInvalid=!0}invalidateCulling(){this._cullingInvalid=!0,this._pipelineInvalid=!0}invalidatePolygonOffset(){this._polygonOffsetInvalid=!0,this._pipelineInvalid=!0}invalidateDepthTest(){this._depthTestInvalid=!0,this._pipelineInvalid=!0}invalidateStencilTest(){this._stencilTestInvalid=!0,this._pipelineInvalid=!0}invalidateDepthWrite(){this._depthWriteInvalid=!0,this._pipelineInvalid=!0}invalidateColorWrite(){this._colorWriteInvalid=!0,this._pipelineInvalid=!0}invalidateStencilWrite(){this._stencilTestInvalid=!0,this._pipelineInvalid=!0}invalidateDrawBuffers(){this._drawBuffersInvalid=!0,this._pipelineInvalid=!0}_setBlending(n){this._blending=this._setSubState(n,this._blending,this._blendingInvalid,this._stateSetters.setBlending),this._blendingInvalid=!1}_setCulling(n){this._culling=this._setSubState(n,this._culling,this._cullingInvalid,this._stateSetters.setCulling),this._cullingInvalid=!1}_setPolygonOffset(n){this._polygonOffset=this._setSubState(n,this._polygonOffset,this._polygonOffsetInvalid,this._stateSetters.setPolygonOffset),this._polygonOffsetInvalid=!1}_setDepthTest(n){this._depthTest=this._setSubState(n,this._depthTest,this._depthTestInvalid,this._stateSetters.setDepthTest),this._depthTestInvalid=!1}_setStencilTest(n){this._stencilTest=this._setSubState(n,this._stencilTest,this._stencilTestInvalid,this._stateSetters.setStencilTest),this._stencilTestInvalid=!1}_setDepthWrite(n){this._depthWrite=this._setSubState(n,this._depthWrite,this._depthWriteInvalid,this._stateSetters.setDepthWrite),this._depthWriteInvalid=!1}_setColorWrite(n){this._colorWrite=this._setSubState(n,this._colorWrite,this._colorWriteInvalid,this._stateSetters.setColorWrite),this._colorWriteInvalid=!1}_setStencilWrite(n){this._stencilWrite=this._setSubState(n,this._stencilWrite,this._stencilWriteInvalid,this._stateSetters.setStencilWrite),this._stencilTestInvalid=!1}_setDrawBuffers(n){this._drawBuffers=this._setSubState(n,this._drawBuffers,this._drawBuffersInvalid,this._stateSetters.setDrawBuffers),this._drawBuffersInvalid=!1}_setSubState(n,I,y,j){return(y||n!==I)&&(j(n),this._pipelineInvalid=!0),n}}},20047:(F,D,e)=>{e.d(D,{H:()=>i});var T=e(9599),a=e(32788),l=e(50915),g=e(79061),p=e(10746),r=e(4931),d=e(45513),m=e(52274);class i extends m._{constructor(S){super(),this._rctx=S,this._program=S.programCache.acquire("\n precision highp float;\n\n attribute vec2 a_pos;\n varying vec2 v_uv;\n\n void main() {\n v_uv = a_pos;\n gl_Position = vec4(a_pos * 2.0 - 1.0, 0.0, 1.0);\n }\n ","\n precision highp float;\n\n varying vec2 v_uv;\n\n uniform sampler2D u_texture;\n\n void main() {\n gl_FragColor = texture2D(u_texture, v_uv);\n }\n ",new Map([["a_pos",0]]))}dispose(){super.dispose()}_test(S){const x=this._rctx;if(!x.gl)return S.dispose(),!0;const U=new r.R(1);U.wrapMode=l.pF.CLAMP_TO_EDGE,U.samplingMode=l.Cj.NEAREST;const b=new g.H(x,U),u=a.g.createVertex(x,l._U.STATIC_DRAW,new Uint16Array([0,0,1,0,0,1,1,1])),h=new d.Z(x,new Map([["a_pos",0]]),T.VS,new Map([["geometry",u]])),w=new r.R;w.samplingMode=l.Cj.LINEAR,w.wrapMode=l.pF.CLAMP_TO_EDGE;const R=new p.g(x,w,M);x.useProgram(S),x.bindTexture(R,0),S.setUniform1i("u_texture",0);const O=x.getBoundFramebufferObject(),{x:B,y:W,width:L,height:Y}=x.getViewport();x.bindFramebuffer(b),x.setViewport(0,0,1,1),x.setClearColor(0,0,0,0),x.setBlendingEnabled(!1),x.clear(l.NV.COLOR),x.bindVAO(h),x.drawArrays(l.WR.TRIANGLE_STRIP,0,4);const C=new Uint8Array(4);return b.readPixels(0,0,1,1,l.Ab.RGBA,l.ld.UNSIGNED_BYTE,C),h.dispose(),b.dispose(),R.dispose(),x.setViewport(B,W,L,Y),x.bindFramebuffer(O),255!==C[0]}}const M=new Image;M.src="data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg width='5' height='5' version='1.1' viewBox='0 0 5 5' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='5' height='5' fill='%23f00' fill-opacity='.5'/%3E%3C/svg%3E%0A",M.width=5,M.height=5,M.decode()}}]);
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.