@arcgis/core 4.34.0-next.41 → 4.34.0-next.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/016d421114118307d4dd.js +1 -0
  3. package/assets/esri/core/workers/chunks/250b1629becca0410f2a.js +1 -0
  4. package/assets/esri/core/workers/chunks/3245d20ea4bb779f87ef.js +1 -0
  5. package/assets/esri/core/workers/chunks/6b73926feb5c5d957062.js +1 -0
  6. package/assets/esri/core/workers/chunks/{6269c4bbf0f224a954e9.js → 6f4079b7a2b45f304ee6.js} +1 -1
  7. package/assets/esri/core/workers/chunks/82955562805ad5514ed8.js +346 -0
  8. package/assets/esri/core/workers/chunks/{94850c094e076d81a016.js → dca2b487152cde45fb65.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{31ad9949b08a5b07218c.js → eea3e0bd17479a767160.js} +2 -2
  10. package/assets/esri/core/workers/chunks/fe6fa1f2c2d54d41645e.js +1 -0
  11. package/config.js +1 -1
  12. package/core/workers/registry.js +1 -1
  13. package/kernel.js +1 -1
  14. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  15. package/package.json +1 -1
  16. package/support/revision.js +1 -1
  17. package/views/2d/engine/flow/styles/Imagery.js +1 -1
  18. package/views/2d/engine/flow/styles/Particles.js +1 -1
  19. package/views/2d/engine/flow/styles/Streamlines.js +1 -1
  20. package/views/2d/engine/imagery/RasterVFDisplayObject.js +1 -1
  21. package/views/2d/engine/vectorTiles/RenderBucket.js +1 -1
  22. package/views/2d/engine/webgl/BitBlitRenderer.js +1 -1
  23. package/views/2d/engine/webgl/Mesh2D.js +1 -1
  24. package/views/2d/engine/webgl/VertexStream.js +1 -1
  25. package/views/2d/engine/webgl/brushes/WGLBrushStencil.js +1 -1
  26. package/views/2d/engine/webgl/brushes/WGLBrushTileDebugInfo.js +1 -1
  27. package/views/2d/engine/webgl/brushes/WGLBrushVTLBackground.js +1 -1
  28. package/views/2d/engine/webgl/cpuMapped/Buffer.js +1 -1
  29. package/views/2d/engine/webgl/cpuMapped/MappedMesh.js +1 -1
  30. package/views/2d/engine/webgl/effects/highlight/HighlightRenderer.js +1 -1
  31. package/views/2d/engine/webgl/meshing/Mesh.js +1 -1
  32. package/views/2d/engine/webgl/meshing/SimpleMesh.js +1 -1
  33. package/views/2d/engine/webgl/shaderGraph/techniques/overlay/OverlayTechnique.js +1 -1
  34. package/views/2d/engine/webgl/shaderGraph/techniques/videoScreenRenderer/VideoScreenTechnique.js +1 -1
  35. package/views/2d/layers/BaseDynamicLayerView2D.js +1 -1
  36. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  37. package/views/2d/layers/KMLLayerView2D.js +1 -1
  38. package/views/2d/layers/MapImageLayerView2D.js +1 -1
  39. package/views/2d/layers/MediaLayerView2D.js +1 -1
  40. package/views/2d/layers/TileLayerView2D.js +1 -1
  41. package/views/2d/layers/WMSLayerView2D.js +1 -1
  42. package/views/2d/layers/graphics/GraphicBoundsRenderer.js +1 -1
  43. package/views/2d/layers/support/DebugOverlay.js +1 -1
  44. package/views/3d/environment/LocalAtmosphere.js +1 -1
  45. package/views/3d/environment/MarsAtmosphere.js +1 -1
  46. package/views/3d/environment/Precipitation.js +1 -1
  47. package/views/3d/layers/FlowSubView3D.js +1 -1
  48. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  49. package/views/3d/layers/I3SMeshView3D.js +1 -1
  50. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  51. package/views/3d/layers/graphics/pipeline/rendering/DirectRenderer.js +1 -1
  52. package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
  53. package/views/3d/layers/support/FlowTileTree3DDebugger.js +1 -1
  54. package/views/3d/support/GaussianSplatSortWorker.js +5 -0
  55. package/views/3d/support/GaussianSplatWorkerHandle.js +5 -0
  56. package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
  57. package/views/3d/support/flow/geometryUtils.js +1 -1
  58. package/views/3d/support/flow/loadUtils.js +1 -1
  59. package/views/3d/terrain/PatchGeometryFactory.js +1 -1
  60. package/views/3d/terrain/PatchRenderData.js +1 -1
  61. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  62. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
  63. package/views/3d/webgl-engine/effects/ScreenSpaceGeometry.js +1 -1
  64. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
  65. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  66. package/views/3d/webgl-engine/effects/laserlines/LaserlinePathData.js +1 -1
  67. package/views/3d/webgl-engine/effects/stars/Stars.js +1 -1
  68. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  69. package/views/3d/webgl-engine/lib/edgeRendering/bufferLayouts.js +1 -1
  70. package/views/3d/webgl-engine/lib/edgeRendering/edgeBufferWriters.js +1 -1
  71. package/views/3d/webgl-engine/lib/glUtil3D.js +1 -1
  72. package/views/3d/webgl-engine/lib/lodRendering/BackedBufferObject.js +1 -1
  73. package/views/3d/webgl-engine/lib/lodRendering/LodComponentData.js +1 -1
  74. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  75. package/views/3d/webgl-engine/lib/lodRendering/RenderInstanceData.js +1 -1
  76. package/views/3d/webgl-engine/materials/renderers/MergedBuffer.js +1 -1
  77. package/views/3d/webgl-engine/materials/renderers/VaoCache.js +1 -1
  78. package/views/VideoView.js +1 -1
  79. package/views/support/TileTreeDebugger.js +1 -1
  80. package/views/webgl/BufferObject.js +1 -1
  81. package/views/webgl/Util.js +1 -1
  82. package/views/webgl/VertexArrayObject.js +1 -1
  83. package/views/webgl/VertexBuffer.js +1 -1
  84. package/views/webgl/testFloatBufferBlend.js +1 -1
  85. package/views/webgl/testSVGPremultipliedAlpha.js +1 -1
  86. package/assets/esri/core/workers/chunks/01bd8f90e55081e65b38.js +0 -1
  87. package/assets/esri/core/workers/chunks/0a27f9b11d03874809ee.js +0 -346
  88. package/assets/esri/core/workers/chunks/34f677e8c1691c10e4e9.js +0 -1
  89. package/assets/esri/core/workers/chunks/e95a8c988ef822723503.js +0 -1
  90. package/assets/esri/core/workers/chunks/fd3009164d5e38fda85f.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4304],{21015:(e,t,r)=>{r.d(t,{R:()=>u});var n=r(78888),o=r(60999),s=r(49186),i=r(74887),a=r(84952);class u{constructor(e){this._streamDataRequester=e}async loadJSON(e,t){return this._load(0,e,t)}async loadBinary(e,t){return(0,a.DB)(e)?((0,i.Te)(t),(0,a.lJ)(e)):this._load(1,e,t)}async loadImage(e,t){return this._load(2,e,t)}async _load(e,t,r){if(null==this._streamDataRequester)return(await(0,n.A)(t,{responseType:l[e]})).data;const a=await(0,o.Ke)(this._streamDataRequester.request(t,e,r));if(!0===a.ok)return a.value;throw(0,i.QP)(a.error),new s.A("glt-loader-request-error",`Request for resource failed: ${a.error}`)}}const l={2:"image",1:"array-buffer",0:"json",3:void 0}},43609:(e,t,r)=>{r.d(t,{a:()=>s,f:()=>i,n:()=>o});var n=r(34275);function o(e,t){s(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function s(e,t,r=2,o=r){const s=t.length/2;let i=0,a=0;if(!(0,n.iu)(t)||(0,n.dk)(t)){for(let n=0;n<s;++n)e[i]=t[a],e[i+1]=t[a+1],i+=r,a+=o;return}const u=(0,n.a3)(t);if((0,n.JI)(t))for(let n=0;n<s;++n)e[i]=Math.max(t[a]/u,-1),e[i+1]=Math.max(t[a+1]/u,-1),i+=r,a+=o;else for(let n=0;n<s;++n)e[i]=t[a]/u,e[i+1]=t[a+1]/u,i+=r,a+=o}function i(e,t,r,n){const o=e.typedBuffer,s=e.typedBufferStride,i=n?.count??e.count;let a=(n?.dstIndex??0)*s;for(let e=0;e<i;++e)o[a]=t,o[a+1]=r,a+=s}Object.freeze(Object.defineProperty({__proto__:null,fill:i,normalizeIntegerBuffer:s,normalizeIntegerBufferView:o},Symbol.toStringTag,{value:"Module"}))},51530:(e,t,r)=>{r.d(t,{KB:()=>i,Xi:()=>o,pn:()=>a,x3:()=>s});var n=r(44208);class o{constructor(e){this.data=e,this.type="encoded-mesh-texture",this.encoding="image/ktx2"}}function s(e){return"encoded-mesh-texture"===e?.type}async function i(e){const t=new Blob([e]),r=await t.text();return JSON.parse(r)}async function a(e,t){if("image/ktx2"===t)return new o(e);const r=new Blob([e],{type:t});let s=URL.createObjectURL(r);switch(t){case"image/jpeg":s+="#.jpg";break;case"image/png":s+="#.png"}const i=new Image;if((0,n.A)("esri-iPhone"))return new Promise((e,t)=>{const r=()=>{o(),e(i)},n=e=>{o(),t(e)},o=()=>{URL.revokeObjectURL(s),i.removeEventListener("load",r),i.removeEventListener("error",n)};i.addEventListener("load",r),i.addEventListener("error",n),i.src=s});try{i.src=s,await i.decode()}catch(e){console.warn("Failed decoding HTMLImageElement")}return URL.revokeObjectURL(s),i}},61473:(e,t,r)=>{function n(e){return e=e||globalThis.location.hostname,l.some(t=>null!=e?.match(t))}function o(e,t){return e?(t=t||globalThis.location.hostname)?null!=t.match(s)||null!=t.match(a)?e.replace("static.arcgis.com","staticdev.arcgis.com"):null!=t.match(i)||null!=t.match(u)?e.replace("static.arcgis.com","staticqa.arcgis.com"):e:e:null}r.d(t,{EM:()=>o,b5:()=>n});const s=/^devext\.arcgis\.com$/,i=/^qaext\.arcgis\.com$/,a=/^[\w-]*\.mapsdevext\.arcgis\.com$/,u=/^[\w-]*\.mapsqa\.arcgis\.com$/,l=[/^([\w-]*\.)?[\w-]*\.zrh-dev-local\.esri\.com$/,s,i,/^jsapps\.esri\.com$/,a,u]},64304:(e,t,r)=>{r.d(t,{fetch:()=>J});var n=r(40876),o=r(61473),s=r(34727),i=r(77690),a=r(29242),u=r(58083),l=r(9093),c=r(48163),f=r(38954),d=r(51850),m=r(70328),p=r(11868),h=r(13030),y=r(73354),g=r(65686),x=r(43609),w=r(21015),b=r(84498),v=r(51530),T=r(88340);function B(e){if(null==e)return null;const t=null!=e.offset?e.offset:T.uY,r=null!=e.rotation?e.rotation:0,n=null!=e.scale?e.scale:T.Un,o=(0,a.fA)(1,0,0,0,1,0,t[0],t[1],1),s=(0,a.fA)(Math.cos(r),-Math.sin(r),0,Math.sin(r),Math.cos(r),0,0,0,1),u=(0,a.fA)(n[0],0,0,0,n[1],0,0,0,1),l=(0,a.vt)();return(0,i.lw)(l,s,u),(0,i.lw)(l,o,l),l}class S{constructor(){this.geometries=new Array,this.materials=new Array,this.textures=new Array}}class M{constructor(e,t,r){this.name=e,this.lodThreshold=t,this.pivotOffset=r,this.stageResources=new S,this.numberOfVertices=0}}var R=r(78888),A=r(60999),_=r(49186),E=r(53966),I=r(69397);class P{constructor(){this._outer=new Map}clear(){this._outer.clear()}get empty(){return 0===this._outer.size}get outerSize(){return this._outer.size}get(e,t){return this._outer.get(e)?.get(t)}getInner(e){return this._outer.get(e)}set(e,t,r){const n=this._outer.get(e);n?n.set(t,r):this._outer.set(e,new Map([[t,r]]))}delete(e,t){const r=this._outer.get(e);r&&(r.delete(t),0===r.size&&this._outer.delete(e))}forEach(e){this._outer.forEach((t,r)=>e(t,r))}forAll(e){this._outer.forEach((t,r)=>t.forEach((t,n)=>e(t,r,n)))}}var O=r(74887),U=r(46140),L=r(97146),j=r(99677),k=r(46610),C=r(87170),F=r(48833),V=r(63573);const q=()=>E.A.getLogger("esri.views.3d.layers.graphics.objectResourceUtils");class z{constructor(e,t,r){this.resource=e,this.textures=t,this.cachedMemory=r}}function $(e){throw new _.A("",`Request for object resource failed: ${e}`)}function D(e){const t=e.params,r=t.topology;let n=!0;switch(t.vertexAttributes||(q().warn("Geometry must specify vertex attributes"),n=!1),t.topology){case"PerAttributeArray":break;case"Indexed":case null:case void 0:{const e=t.faces;if(e){if(t.vertexAttributes)for(const r in t.vertexAttributes){const t=e[r];t?.values?(null!=t.valueType&&"UInt32"!==t.valueType&&(q().warn(`Unsupported indexed geometry indices type '${t.valueType}', only UInt32 is currently supported`),n=!1),null!=t.valuesPerElement&&1!==t.valuesPerElement&&(q().warn(`Unsupported indexed geometry values per element '${t.valuesPerElement}', only 1 is currently supported`),n=!1)):(q().warn(`Indexed geometry does not specify face indices for '${r}' attribute`),n=!1)}}else q().warn("Indexed geometries must specify faces"),n=!1;break}default:q().warn(`Unsupported topology '${r}'`),n=!1}e.params.material||(q().warn("Geometry requires material"),n=!1);const o=e.params.vertexAttributes;for(const e in o)o[e].values||(q().warn("Geometries with externally defined attributes are not yet supported"),n=!1);return n}function G(e){const t=(0,m.Ie)();return e.forEach(e=>{const r=e.boundingInfo;null!=r&&((0,m.iT)(t,r.bbMin),(0,m.iT)(t,r.bbMax))}),t}function N(e){switch(e){case"mask":return 2;case"maskAndTransparency":return 3;case"none":return 1;default:return 0}}function Q(e){const t=e.params;return{id:1,material:t.material,texture:t.texture,region:t.texture}}const K=new U.R(1,2,"wosr");var W=r(74810);async function J(e,t){const a=function(e){const t=e.match(/(.*\.(gltf|glb))(\?lod=([0-9]+))?$/);return t?{fileType:"gltf",url:t[1],specifiedLodIndex:null!=t[4]?Number(t[4]):null}:e.match(/(.*\.(json|json\.gz))$/)?{fileType:"wosr",url:e,specifiedLodIndex:null}:{fileType:"unknown",url:e,specifiedLodIndex:null}}((0,o.EM)(e));if("wosr"===a.fileType){const e=await(t.cache?t.cache.loadWOSR(a.url,t):async function(e,t){const r=await async function(e,t){const r=t?.streamDataRequester;if(r)return async function(e,t,r){const n=await(0,A.Ke)(t.request(e,0,r));if(!0===n.ok)return n.value;(0,O.QP)(n.error),$(n.error.details.url)}(e,r,t);const n=await(0,A.Ke)((0,R.A)(e,t));if(!0===n.ok)return n.value.data;(0,O.QP)(n.error),$(n.error)}(e,t),n=await async function(e,t){const r=new Array;for(const n in e){const o=e[n],s=o.images[0].data;if(!s){q().warn("Externally referenced texture data is not yet supported");continue}const i=o.encoding+";base64,"+s,a="/textureDefinitions/"+n,u="rgba"===o.channels?o.alphaChannelUsage||"transparency":"none",l={noUnpackFlip:!0,wrap:{s:10497,t:10497},preMultiplyAlpha:1!==N(u)},c=t?.disableTextures?Promise.resolve(null):(0,j.D)(i,t);r.push(c.then(e=>({refId:a,image:e,parameters:l,alphaChannelUsage:u})))}const n=await Promise.all(r),o={};for(const e of n)o[e.refId]=e;return o}(r.textureDefinitions??{},t);let o=0;for(const e in n)if(n.hasOwnProperty(e)){const t=n[e];o+=t?.image?t.image.width*t.image.height*4:0}return new z(r,n,o+(0,I.Qh)(r))}(a.url,t)),{engineResources:r,referenceBoundingBox:n}=function(e,t){const r=new Array,n=new Array,o=new Array,s=new P,i=e.resource,a=U.R.parse(i.version||"1.0","wosr");K.validate(a);const u=i.model.name,l=i.model.geometries,c=i.materialDefinitions??{},f=e.textures;let m=0;const p=new Map;for(let e=0;e<l.length;e++){const i=l[e];if(!D(i))continue;const a=Q(i),u=i.params.vertexAttributes,h=[],y=e=>{if("PerAttributeArray"===i.params.topology)return null;const t=i.params.faces;for(const r in t)if(r===e)return t[r].values;return null},g=u.position,x=g.values.length/g.valuesPerElement;for(const e in u){const t=u[e],r=t.values,n=y(e)??(0,L.tM)(x);h.push([e,new k.n(r,n,t.valuesPerElement,!0)])}const w=a.texture,b=f&&f[w];if(b&&!p.has(w)){const{image:e,parameters:t}=b,r=new F.g(e,t);n.push(r),p.set(w,r)}const v=p.get(w),T=v?v.id:void 0,B=a.material;let S=s.get(B,w);if(null==S){const e=c[B.slice(B.lastIndexOf("/")+1)].params;1===e.transparency&&(e.transparency=0);const r=b?N(b.alphaChannelUsage):void 0,n={ambient:(0,d.ci)(e.diffuse),diffuse:(0,d.ci)(e.diffuse),opacity:1-(e.transparency||0),textureAlphaMode:r,textureAlphaCutoff:.33,textureId:T,doubleSided:!0,cullFace:0,colorMixMode:e.externalColorMixMode||"tint",textureAlphaPremultiplied:b?.parameters.preMultiplyAlpha??!1};t?.materialParameters&&Object.assign(n,t.materialParameters),S=new V.$U(n,t),s.set(B,w,S)}o.push(S);const M=new C.V(S,h);m+=h.find(e=>"position"===e[0])?.[1]?.indices.length??0,r.push(M)}return{engineResources:[{name:u,stageResources:{textures:n,materials:o,geometries:r},pivotOffset:i.model.pivotOffset,numberOfVertices:m,lodThreshold:null}],referenceBoundingBox:G(r)}}(e,t);return{lods:r,referenceBoundingBox:n,isEsriSymbolResource:!1,isWosr:!0}}let T;if(t.cache)T=await t.cache.loadGLTF(a.url,t,!!t.usePBR);else{const{loadGLTF:e}=await r.e(9738).then(r.bind(r,99738));T=await e(new w.R(t.streamDataRequester),a.url,t,t.usePBR)}const S=T.model.meta?.ESRI_proxyEllipsoid,_=T.meta.isEsriSymbolResource&&null!=S&&"EsriRealisticTreesStyle"===T.meta.ESRI_webstyle;_&&!T.customMeta.esriTreeRendering&&(T.customMeta.esriTreeRendering=!0,function(e,t){for(let r=0;r<e.model.lods.length;++r){const o=e.model.lods[r];for(const s of o.parts){const o=s.attributes.normal;if(null==o)return;const i=s.attributes.position,a=i.count,c=(0,d.vt)(),m=(0,d.vt)(),p=(0,d.vt)(),y=new Float32Array(4*a),g=new Float32Array(3*a),x=(0,u.B8)((0,l.vt)(),s.transform);let w=0,b=0;for(let u=0;u<a;u++){i.getVec(u,m),o.getVec(u,c),(0,f.t)(m,m,s.transform),(0,f.d)(p,m,t.center),(0,f.D)(p,p,t.radius);const a=p[2],l=(0,f.l)(p),d=Math.min(.45+.55*l*l,1)**n.Tf;(0,f.D)(p,p,t.radius),null!==x&&(0,f.t)(p,p,x),(0,f.n)(p,p),r+1!==e.model.lods.length&&e.model.lods.length>1&&(0,f.m)(p,p,c,a>-1?.2:Math.min(-4*a-3.8,1)),g[w]=p[0],g[w+1]=p[1],g[w+2]=p[2],w+=3,y[b]=d,y[b+1]=d,y[b+2]=d,y[b+3]=1,b+=4}s.attributes.normal=new h.xs(g),s.attributes.color=new h.Eq(y)}}}(T,S));const E=!!t.usePBR,J=T.meta.isEsriSymbolResource?{usePBR:E,isSchematic:!1,treeRendering:_,mrrFactors:W.SY}:{usePBR:E,isSchematic:!1,treeRendering:!1,mrrFactors:W.mb},X={...t.materialParameters,treeRendering:_},{engineResources:H,referenceBoundingBox:Z}=function(e,t,r,o,a,u){const l=e.model,f=new Array,d=new Map,w=new Map,T=l.lods.length,S=(0,m.Ie)();return l.lods.forEach((e,R)=>{const A=!0===o.skipHighLods&&(T>1&&0===R||T>3&&1===R)||!1===o.skipHighLods&&null!=a&&R!==a;if(A&&0!==R)return;const _=new M(e.name,e.lodThreshold,[0,0,0]);e.parts.forEach(e=>{const a=A?new V.$U({},o):function(e,t,r,o,s,i,a,u,l){const f=e.materials.get(t.material);if(null==f)return null;const{normal:d,color:m,texCoord0:p,tangent:h}=t.attributes,y=t.material+(d?"_normal":"")+(m?"_color":"")+(p?"_texCoord0":"")+(h?"_tangent":""),g=null!=t.attributes.texCoord0,x=null!=t.attributes.normal,w=function(e){switch(e){case"BLEND":return 0;case"MASK":return 2;case"OPAQUE":case null:case void 0:return 1}}(f.alphaMode);if(!i.has(y)){if(g){const t=(t,r=!1,n=!1)=>{if(null!=t&&!a.has(t)){const o=e.textures.get(t);if(o){const e=o.data,s=r&&!(0,v.x3)(e)?u.compressionOptions:void 0;a.set(t,new F.g((0,v.x3)(e)?e.data:e,{...o.parameters,preMultiplyAlpha:!(0,v.x3)(e)&&n,encoding:(0,v.x3)(e)?e.encoding:void 0,compressionOptions:s}))}}},r=1!==w&&!l;t(f.colorTexture,r,1!==w),t(f.normalTexture),t(f.occlusionTexture,!0),t(f.emissiveTexture),t(f.metallicRoughnessTexture,!0)}const r=1/n.Tf,d=f.color[0]**r,m=f.color[1]**r,p=f.color[2]**r,h=f.emissiveFactor[0]**r,b=f.emissiveFactor[1]**r,T=f.emissiveFactor[2]**r,S=null!=f.colorTexture&&g?a.get(f.colorTexture):null,M=(0,W.Jr)(f),R=null!=f.normalTextureTransform?.scale?f.normalTextureTransform?.scale:c.Un;i.set(y,new V.$U({...o,customDepthTest:1,textureAlphaMode:w,textureAlphaCutoff:f.alphaCutoff,diffuse:[d,m,p],ambient:[d,m,p],opacity:"OPAQUE"===f.alphaMode?1:f.opacity,doubleSided:f.doubleSided,doubleSidedType:"winding-order",cullFace:f.doubleSided?0:2,hasVertexColors:!!t.attributes.color,hasVertexTangents:!!t.attributes.tangent,normalType:x?0:2,castShadows:!0,receiveShadows:f.receiveShadows,receiveAmbientOcclusion:f.receiveAmbientOcclusion,textureId:null!=S?S.id:void 0,colorMixMode:f.colorMixMode,normalTextureId:null!=f.normalTexture&&g?a.get(f.normalTexture).id:void 0,textureAlphaPremultiplied:null!=S&&!!S.parameters.preMultiplyAlpha,occlusionTextureId:null!=f.occlusionTexture&&g?a.get(f.occlusionTexture).id:void 0,emissiveTextureId:null!=f.emissiveTexture&&g?a.get(f.emissiveTexture).id:void 0,metallicRoughnessTextureId:null!=f.metallicRoughnessTexture&&g?a.get(f.metallicRoughnessTexture).id:void 0,emissiveBaseColor:[h,b,T],mrrFactors:M?W.Bt:[f.metallicFactor,f.roughnessFactor,o.mrrFactors[2]],isSchematic:M,colorTextureTransformMatrix:B(f.colorTextureTransform),normalTextureTransformMatrix:B(f.normalTextureTransform),scale:[R[0],R[1]],occlusionTextureTransformMatrix:B(f.occlusionTextureTransform),emissiveTextureTransformMatrix:B(f.emissiveTextureTransform),metallicRoughnessTextureTransformMatrix:B(f.metallicRoughnessTextureTransform),...s},u))}const b=i.get(y);if(r.stageResources.materials.push(b),g){const e=e=>{null!=e&&r.stageResources.textures.push(a.get(e))};e(f.colorTexture),e(f.normalTexture),e(f.occlusionTexture),e(f.emissiveTexture),e(f.metallicRoughnessTexture)}return b}(l,e,_,t,r,d,w,o,u),{geometry:f,vertexCount:T}=function(e,t){const r=e.attributes.position.count,n=(0,b.x)(e.indices||r,e.primitiveType),o=(0,p.oe)(3*r),{typedBuffer:a,typedBufferStride:u}=e.attributes.position;(0,y.t)(o,a,e.transform,3,u);const l=[["position",new k.n(o,n,3,!0)]];if(null!=e.attributes.normal){const t=(0,p.oe)(3*r),{typedBuffer:o,typedBufferStride:a}=e.attributes.normal;(0,i.Ge)(Y,e.transform),(0,y.b)(t,o,Y,3,a),(0,s.or)(Y)&&(0,y.n)(t,t),l.push(["normal",new k.n(t,n,3,!0)])}if(null!=e.attributes.tangent){const t=(0,p.oe)(4*r),{typedBuffer:o,typedBufferStride:a}=e.attributes.tangent;(0,i.z0)(Y,e.transform),(0,g.t)(t,o,Y,4,a),(0,s.or)(Y)&&(0,y.n)(t,t,4),l.push(["tangent",new k.n(t,n,4,!0)])}if(null!=e.attributes.texCoord0){const t=(0,p.oe)(2*r),{typedBuffer:o,typedBufferStride:s}=e.attributes.texCoord0;(0,x.a)(t,o,2,s),l.push(["uv0",new k.n(t,n,2,!0)])}const c=e.attributes.color;if(null!=c){const t=new Uint8Array(4*r);4===c.elementCount?c instanceof h.Eq?(0,g.b)(t,c,1,255):(c instanceof h.XP||c instanceof h.Uz)&&(0,g.b)(t,c,1/255,255):(t.fill(255),c instanceof h.xs?(0,y.f)(t,c.typedBuffer,1,255,4,c.typedBufferStride):(e.attributes.color instanceof h.eI||e.attributes.color instanceof h.nS)&&(0,y.f)(t,c.typedBuffer,1/255,255,4,e.attributes.color.typedBufferStride)),l.push(["color",new k.n(t,n,4,!0)])}return{geometry:new C.V(t,l),vertexCount:r}}(e,a??new V.$U({},o)),M=f.boundingInfo;null!=M&&0===R&&((0,m.iT)(S,M.bbMin),(0,m.iT)(S,M.bbMax)),null!=a&&(_.stageResources.geometries.push(f),_.numberOfVertices+=T)}),A||f.push(_)}),{engineResources:f,referenceBoundingBox:S}}(T,J,X,t,a.specifiedLodIndex,_);return{lods:H,referenceBoundingBox:Z,isEsriSymbolResource:T.meta.isEsriSymbolResource,isWosr:!1}}const Y=(0,a.vt)()},65686:(e,t,r)=>{r.d(t,{a:()=>s,b:()=>c,l:()=>l,n:()=>a,t:()=>i});var n=r(40876),o=(r(44208),r(53966));function s(e,t,r){i(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function i(e,t,r,n=4,o=n){if(e.length/n!==t.length/o)return;const s=e.length/n,i=r[0],a=r[1],u=r[2],l=r[3],c=r[4],f=r[5],d=r[6],m=r[7],p=r[8];let h=0,y=0;for(let r=0;r<s;r++){const r=t[h],s=t[h+1],g=t[h+2],x=t[h+3];e[y]=i*r+l*s+d*g,e[y+1]=a*r+c*s+m*g,e[y+2]=u*r+f*s+p*g,e[y+3]=x,h+=o,y+=n}}function a(e,t){const r=Math.min(e.count,t.count),n=e.typedBuffer,o=e.typedBufferStride,s=t.typedBuffer,i=t.typedBufferStride;for(let e=0;e<r;e++){const t=e*o,r=e*i,a=s[r],u=s[r+1],l=s[r+2],c=a*a+u*u+l*l;if(c>0){const e=1/Math.sqrt(c);n[t]=e*a,n[t+1]=e*u,n[t+2]=e*l}}}function u(e,t,r,n=4){const o=Math.min(e.length/n,t.count),s=t.typedBuffer,i=t.typedBufferStride;let a=0,u=0;for(let t=0;t<o;t++)e[u]=r*s[a],e[u+1]=r*s[a+1],e[u+2]=r*s[a+2],e[u+3]=r*s[a+3],a+=i,u+=n}function l(e,t,r,n){c(e.typedBuffer,t,r,n,e.typedBufferStride)}function c(e,t,r,o,s=4){const i=Math.min(e.length/s,t.count),a=t.typedBuffer,u=t.typedBufferStride;let l=0,c=0;const f=1/n.Tf;for(let t=0;t<i;t++)e[c]=o*(r*a[l])**f,e[c+1]=o*(r*a[l+1])**f,e[c+2]=o*(r*a[l+2])**f,e[c+3]=o*r*a[l+3],l+=u,c+=s}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:l,normalize:a,scale:u,scaleView:function(e,t,r){u(e.typedBuffer,t,r,e.typedBufferStride)},transformMat3:i,transformMat3View:s,transformMat4:function(e,t,r,n=4,s=n){if(e.length/n!==t.length/s)return void o.A.getLogger("esri.views.3d.support.buffer.math").error("source and destination buffers need to have the same number of elements");const i=e.length/n,a=r[0],u=r[1],l=r[2],c=r[3],f=r[4],d=r[5],m=r[6],p=r[7],h=r[8],y=r[9],g=r[10],x=r[11],w=r[12],b=r[13],v=r[14],T=r[15];let B=0,S=0;for(let r=0;r<i;r++){const r=t[B],o=t[B+1],i=t[B+2],M=t[B+3];e[S]=a*r+f*o+h*i+w*M,e[S+1]=u*r+d*o+y*i+b*M,e[S+2]=l*r+m*o+g*i+v*M,e[S+3]=c*r+p*o+x*i+T*M,B+=s,S+=n}},transformMat4View:function(e,t,r){if(e.count!==t.count)return;const n=e.count,o=r[0],s=r[1],i=r[2],a=r[3],u=r[4],l=r[5],c=r[6],f=r[7],d=r[8],m=r[9],p=r[10],h=r[11],y=r[12],g=r[13],x=r[14],w=r[15],b=e.typedBuffer,v=e.typedBufferStride,T=t.typedBuffer,B=t.typedBufferStride;for(let e=0;e<n;e++){const t=e*v,r=e*B,n=T[r],S=T[r+1],M=T[r+2],R=T[r+3];b[t]=o*n+u*S+d*M+y*R,b[t+1]=s*n+l*S+m*M+g*R,b[t+2]=i*n+c*S+p*M+x*R,b[t+3]=a*n+f*S+h*M+w*R}}},Symbol.toStringTag,{value:"Module"}))},69397:(e,t,r)=>{r.d(t,{$B:()=>o,Qf:()=>l,Qh:()=>a,RS:()=>s,ez:()=>d,lM:()=>i,qK:()=>f});var n=r(34275);function o(e){return 32+e.length}const s=16;function i(e){if(!e)return 0;let t=f;for(const r in e)e.hasOwnProperty(r)&&(t+=u(e[r],!1));return t}function a(e){if(!e)return 0;if("number"==typeof e[0])return l(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return c(e,8);let r=d;for(let n=0;n<t;n++)r+=u(e[n]);return r}(e);let t=f;for(const r in e)e.hasOwnProperty(r)&&(t+=u(e[r]));return t}function u(e,t=!0){switch(typeof e){case"object":return t?a(e):f;case"string":return o(e);case"number":return s;case"boolean":return 4;default:return 8}}function l(...e){return e.reduce((e,t)=>e+(t?(0,n.iu)(t)?t.byteLength+m:Array.isArray(t)?c(t,s):0:0),0)}function c(e,t){return d+e.length*t}const f=32,d=16,m=145},73354:(e,t,r)=>{r.d(t,{a:()=>f,b:()=>a,c:()=>i,d:()=>o,e:()=>d,f:()=>c,l:()=>l,n:()=>m,t:()=>s});var n=r(40876);function o(e,t,r){s(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function s(e,t,r,n=3,o=n){if(e.length/n!==Math.ceil(t.length/o))return e;const s=e.length/n,i=r[0],a=r[1],u=r[2],l=r[4],c=r[5],f=r[6],d=r[8],m=r[9],p=r[10],h=r[12],y=r[13],g=r[14];let x=0,w=0;for(let r=0;r<s;r++){const r=t[x],s=t[x+1],b=t[x+2];e[w]=i*r+l*s+d*b+h,e[w+1]=a*r+c*s+m*b+y,e[w+2]=u*r+f*s+p*b+g,x+=o,w+=n}return e}function i(e,t,r){a(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function a(e,t,r,n=3,o=n){if(e.length/n!==Math.ceil(t.length/o))return;const s=e.length/n,i=r[0],a=r[1],u=r[2],l=r[3],c=r[4],f=r[5],d=r[6],m=r[7],p=r[8];let h=0,y=0;for(let r=0;r<s;r++){const r=t[h],s=t[h+1],g=t[h+2];e[y]=i*r+l*s+d*g,e[y+1]=a*r+c*s+m*g,e[y+2]=u*r+f*s+p*g,h+=o,y+=n}}function u(e,t,r,n=3,o=n){const s=Math.min(e.length/n,t.length/o);let i=0,a=0;for(let u=0;u<s;u++)e[a]=r*t[i],e[a+1]=r*t[i+1],e[a+2]=r*t[i+2],i+=o,a+=n;return e}function l(e,t,r,n){c(e.typedBuffer,t.typedBuffer,r,n,e.typedBufferStride,t.typedBufferStride)}function c(e,t,r,o,s=3,i=s){const a=Math.min(e.length/s,t.length/i);let u=0,l=0;const c=1/n.Tf;for(let n=0;n<a;n++)e[l]=o*(r*t[u])**c,e[l+1]=o*(r*t[u+1])**c,e[l+2]=o*(r*t[u+2])**c,u+=i,l+=s}function f(e,t,r,n=3,o=n){const s=e.length/n;if(s!==Math.ceil(t.length/o))return e;let i=0,a=0;for(let u=0;u<s;u++)e[a]=t[i]+r[0],e[a+1]=t[i+1]+r[1],e[a+2]=t[i+2]+r[2],i+=o,a+=n;return e}function d(e,t){m(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function m(e,t,r=3,n=r){const o=Math.min(e.length/r,t.length/n);let s=0,i=0;for(let a=0;a<o;a++){const o=t[s],a=t[s+1],u=t[s+2],l=o*o+a*a+u*u;if(l>0){const t=1/Math.sqrt(l);e[i]=t*o,e[i+1]=t*a,e[i+2]=t*u}s+=n,i+=r}}r(44208),r(53966),Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:l,normalize:m,normalizeView:d,scale:u,scaleView:function(e,t,r){u(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,r){const n=Math.min(e.count,t.count),o=e.typedBuffer,s=e.typedBufferStride,i=t.typedBuffer,a=t.typedBufferStride;let u=0,l=0;for(let e=0;e<n;e++)o[l]=i[u]>>r,o[l+1]=i[u+1]>>r,o[l+2]=i[u+2]>>r,u+=a,l+=s},transformMat3:a,transformMat3View:i,transformMat4:s,transformMat4View:o,translate:f},Symbol.toStringTag,{value:"Module"}))},84498:(e,t,r)=>{r.d(t,{x:()=>i});var n=r(34275),o=r(97146),s=r(63907);function i(e,t){switch(t){case s.WR.TRIANGLES:return function(e){return"number"==typeof e?(0,o.tM)(e):(0,n.mg)(e)?new Uint16Array(e):e}(e);case s.WR.TRIANGLE_STRIP:return function(e){const t="number"==typeof e?e:e.length;if(t<3)return[];const r=t-2,n=(0,o.my)(3*r);if("number"==typeof e){let e=0;for(let t=0;t<r;t+=1)t%2==0?(n[e++]=t,n[e++]=t+1,n[e++]=t+2):(n[e++]=t+1,n[e++]=t,n[e++]=t+2)}else{let t=0;for(let o=0;o<r;o+=1)o%2==0?(n[t++]=e[o],n[t++]=e[o+1],n[t++]=e[o+2]):(n[t++]=e[o+1],n[t++]=e[o],n[t++]=e[o+2])}return n}(e);case s.WR.TRIANGLE_FAN:return function(e){const t="number"==typeof e?e:e.length;if(t<3)return new Uint16Array(0);const r=t-2,n=r<=65536?new Uint16Array(3*r):new Uint32Array(3*r);if("number"==typeof e){let e=0;for(let t=0;t<r;++t)n[e++]=0,n[e++]=t+1,n[e++]=t+2;return n}const o=e[0];let s=e[1],i=0;for(let t=0;t<r;++t){const r=e[t+2];n[i++]=o,n[i++]=s,n[i++]=r,s=r}return n}(e)}}},88340:(e,t,r)=>{function n(){return new Float32Array(2)}function o(e,t){const r=new Float32Array(2);return r[0]=e,r[1]=t,r}function s(){return n()}function i(){return o(1,1)}function a(){return o(1,0)}function u(){return o(0,1)}r.d(t,{Un:()=>c,fA:()=>o,uY:()=>l,vt:()=>n});const l=s(),c=i(),f=a(),d=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:f,UNIT_Y:d,ZEROS:l,clone:function(e){const t=new Float32Array(2);return t[0]=e[0],t[1]=e[1],t},create:n,fromValues:o,ones:i,unitX:a,unitY:u,zeros:s},Symbol.toStringTag,{value:"Module"}))}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5404],{95404:(e,r,t)=>{t.d(r,{computeObjectLayerResourceSize:()=>u}),t(78888);var i=t(49186),o=t(66344),n=t(51850),s=t(70328),l=t(8887);let c=new o.q(50);async function u(e,r=null){if(!e.isPrimitive){const r=e.resource?.href;if(!r)throw new i.A("symbol:invalid-resource","The symbol does not have a valid resource");const o=c.get(r);if(void 0!==o)return o;const{fetch:l}=await Promise.all([t.e(3030),t.e(7937),t.e(7005),t.e(9192),t.e(4304)]).then(t.bind(t,64304)),u=await l(r,{disableTextures:!0,spherical:!0}),a=(0,s.Ej)(u.referenceBoundingBox,(0,n.vt)());return c.put(r,a),a}if(!e.resource?.primitive)throw new i.A("symbol:invalid-resource","The symbol does not have a valid resource");const o=(0,s.vt)((0,l.Fq)(e.resource.primitive));if(null!=r)for(let e=0;e<o.length;e++)o[e]*=r;return(0,s.Ej)(o,(0,n.vt)())}}}]);