{"version":3,"sources":["node_modules/@arcgis/core/views/webgl/capabilities.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 e;\nfunction t() {\n return e || (e = l()), e;\n}\nclass r {\n constructor() {\n this.available = !1, this.majorPerformanceCaveat = !1, this.maxTextureSize = 0, this.supportsVertexShaderSamplers = !1, this.supportsHighPrecisionFragment = !1, this.supportsColorBufferFloat = !1, this.supportsColorBufferFloatBlend = !1, this.supportsColorBufferHalfFloat = !1;\n }\n}\nfunction o(e) {\n if (\"undefined\" == typeof WebGL2RenderingContext) return null;\n const t = document.createElement(\"canvas\");\n if (!t) return null;\n let r = t.getContext(\"webgl2\", {\n failIfMajorPerformanceCaveat: !0\n });\n if (null == r && (r = t.getContext(\"webgl2\"), null != r && (e.majorPerformanceCaveat = !0)), null == r) return r;\n e.available = !0, e.maxTextureSize = r.getParameter(r.MAX_TEXTURE_SIZE), e.supportsVertexShaderSamplers = r.getParameter(r.MAX_VERTEX_TEXTURE_IMAGE_UNITS) > 0;\n const o = r.getShaderPrecisionFormat(r.FRAGMENT_SHADER, r.HIGH_FLOAT);\n return o && (e.supportsHighPrecisionFragment = o.precision > 0), r;\n}\nfunction l() {\n const e = new r(),\n t = o(e);\n return null == t || (e.supportsColorBufferFloat = null !== t.getExtension(\"EXT_color_buffer_float\"), e.supportsColorBufferFloatBlend = null !== t.getExtension(\"EXT_float_blend\"), e.supportsColorBufferHalfFloat = e.supportsColorBufferFloat || null !== t.getExtension(\"EXT_color_buffer_half_float\")), e;\n}\nexport { t as getWebGLCapabilities };"],"mappings":"AAIA,IAAIA,EACJ,SAASC,GAAI,CACX,OAAOD,IAAMA,EAAIE,EAAE,GAAIF,CACzB,CACA,IAAMG,EAAN,KAAQ,CACN,aAAc,CACZ,KAAK,UAAY,GAAI,KAAK,uBAAyB,GAAI,KAAK,eAAiB,EAAG,KAAK,6BAA+B,GAAI,KAAK,8BAAgC,GAAI,KAAK,yBAA2B,GAAI,KAAK,8BAAgC,GAAI,KAAK,6BAA+B,EACpR,CACF,EACA,SAASC,EAAE,EAAG,CACZ,GAAmB,OAAO,uBAAtB,IAA8C,OAAO,KACzD,IAAMH,EAAI,SAAS,cAAc,QAAQ,EACzC,GAAI,CAACA,EAAG,OAAO,KACf,IAAIE,EAAIF,EAAE,WAAW,SAAU,CAC7B,6BAA8B,EAChC,CAAC,EACD,GAAYE,GAAR,OAAcA,EAAIF,EAAE,WAAW,QAAQ,EAAWE,GAAR,OAAc,EAAE,uBAAyB,KAAcA,GAAR,KAAW,OAAOA,EAC/G,EAAE,UAAY,GAAI,EAAE,eAAiBA,EAAE,aAAaA,EAAE,gBAAgB,EAAG,EAAE,6BAA+BA,EAAE,aAAaA,EAAE,8BAA8B,EAAI,EAC7J,IAAMC,EAAID,EAAE,yBAAyBA,EAAE,gBAAiBA,EAAE,UAAU,EACpE,OAAOC,IAAM,EAAE,8BAAgCA,EAAE,UAAY,GAAID,CACnE,CACA,SAASD,GAAI,CACX,IAAM,EAAI,IAAIC,EACZF,EAAIG,EAAE,CAAC,EACT,OAAeH,GAAR,OAAc,EAAE,yBAAoCA,EAAE,aAAa,wBAAwB,IAAhD,KAAmD,EAAE,8BAAyCA,EAAE,aAAa,iBAAiB,IAAzC,KAA4C,EAAE,6BAA+B,EAAE,0BAAqCA,EAAE,aAAa,6BAA6B,IAArD,MAAyD,CAC7S","names":["e","t","l","r","o"],"x_google_ignoreList":[0]}