@arcgis/core 4.28.0-next.20230712 → 4.28.0-next.20230713
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.
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/08ee2bd914867fd2cbd5.js +1 -0
- package/assets/esri/core/workers/chunks/{4f92fd5167e22c602e8a.js → 169b04f05f5c875c5083.js} +1 -1
- package/assets/esri/core/workers/chunks/55109f141c9f120833f6.js +1 -0
- package/assets/esri/core/workers/chunks/8c5a8c1dfb086069bb06.js +1 -0
- package/assets/esri/core/workers/chunks/{f156387d6c645b18a8dd.js → b2a0e3e1dfccda7ed12e.js} +1 -1
- package/assets/esri/core/workers/chunks/d4881b238c8a93390cde.js +1 -0
- package/assets/esri/core/workers/chunks/dcb004dfba27335c7c3c.js +1 -0
- package/assets/esri/core/workers/chunks/{ad38aede3ec854191511.js → f6e24113643784bc6731.js} +1 -1
- package/assets/esri/core/workers/chunks/{3a0e2535f6cdb2e65667.js → fb610982b1366cdbc0c3.js} +1 -1
- package/assets/esri/core/workers/chunks/{5583921a498172edd5ac.js → fcab431f13b4a9f92dbf.js} +1 -1
- package/core/Collection.js +1 -1
- package/core/accessorSupport/ensureType.js +1 -1
- package/core/accessorSupport/set.js +1 -1
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/support/rasterDatasets/ImageServerRaster.js +1 -1
- package/layers/support/rasterDatasets/multipartParser.js +1 -1
- package/layers/support/wmtsUtils.js +1 -1
- package/package.json +1 -1
- package/support/revision.js +1 -1
- package/views/3d/environment/EnvironmentRenderer.js +1 -1
- package/views/3d/externalRenderers/ExternalRendererStore.js +1 -1
- package/views/3d/layers/i3s/PointRenderer.js +1 -1
- package/views/3d/support/LaserLineRenderer.js +1 -1
- package/views/3d/support/engineContent/line.js +1 -1
- package/views/3d/terrain/PatchRenderData.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/terrain/TileRenderer.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +17 -21
- package/views/3d/webgl-engine/lib/GLMaterialRepository.js +1 -1
- package/views/3d/webgl-engine/lib/GLMaterials.js +1 -1
- package/views/3d/webgl-engine/lib/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/SmaaRenderPass.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/SlicePlaneMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/stippleTextureRepository.js +1 -1
- package/widgets/ElevationProfile/support/ProfileGenerationError.js +1 -1
- package/widgets/ElevationProfile/support/chartUtils.js +1 -1
- package/assets/esri/core/workers/chunks/00b023cb63f23bc074b8.js +0 -1
- package/assets/esri/core/workers/chunks/1e413a44b35bfecbfa59.js +0 -1
- package/assets/esri/core/workers/chunks/71c029f95cb4666ae207.js +0 -1
- package/assets/esri/core/workers/chunks/c9ef45225947ccc2bd4c.js +0 -1
- package/assets/esri/core/workers/chunks/dda6fab95d50c1215808.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3422,5732,9880],{99880:(t,e,s)=>{s.d(e,{V:()=>a});var i=s(68773),n=(s(3172),s(20102)),r=s(92604),o=s(17452);const h=r.Z.getLogger("esri.assets");function a(t){if(!i.default.assetsPath)throw h.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new n.Z("assets:path-not-set","config.assetsPath is not set");return(0,o.v_)(i.default.assetsPath,t)}},5732:(t,e,s)=>{s.d(e,{c:()=>i,g:()=>n});var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},52138:(t,e,s)=>{s.d(e,{A:()=>m,a:()=>a,d:()=>_,e:()=>f,f:()=>d,g:()=>b,h:()=>v,i:()=>o,j:()=>M,k:()=>u,m:()=>l,s:()=>r,t:()=>h,w:()=>c,y:()=>B,z:()=>x});var i=s(65617),n=s(46851);function r(t,e,s,i,n,r,o,h,a,l,c,u,f,d,_,m,g){return t[0]=e,t[1]=s,t[2]=i,t[3]=n,t[4]=r,t[5]=o,t[6]=h,t[7]=a,t[8]=l,t[9]=c,t[10]=u,t[11]=f,t[12]=d,t[13]=_,t[14]=m,t[15]=g,t}function o(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function h(t,e){if(t===e){const s=e[1],i=e[2],n=e[3],r=e[6],o=e[7],h=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=s,t[6]=e[9],t[7]=e[13],t[8]=i,t[9]=r,t[11]=e[14],t[12]=n,t[13]=o,t[14]=h}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function a(t,e){const s=e[0],i=e[1],n=e[2],r=e[3],o=e[4],h=e[5],a=e[6],l=e[7],c=e[8],u=e[9],f=e[10],d=e[11],_=e[12],m=e[13],g=e[14],p=e[15],b=s*h-i*o,y=s*a-n*o,v=s*l-r*o,M=i*a-n*h,x=i*l-r*h,B=n*l-r*a,E=c*m-u*_,w=c*g-f*_,I=c*p-d*_,S=u*g-f*m,z=u*p-d*m,A=f*p-d*g;let R=b*A-y*z+v*S+M*I-x*w+B*E;return R?(R=1/R,t[0]=(h*A-a*z+l*S)*R,t[1]=(n*z-i*A-r*S)*R,t[2]=(m*B-g*x+p*M)*R,t[3]=(f*x-u*B-d*M)*R,t[4]=(a*I-o*A-l*w)*R,t[5]=(s*A-n*I+r*w)*R,t[6]=(g*v-_*B-p*y)*R,t[7]=(c*B-f*v+d*y)*R,t[8]=(o*z-h*I+l*E)*R,t[9]=(i*I-s*z-r*E)*R,t[10]=(_*x-m*v+p*b)*R,t[11]=(u*v-c*x-d*b)*R,t[12]=(h*w-o*S-a*E)*R,t[13]=(s*S-i*w+n*E)*R,t[14]=(m*y-_*M-g*b)*R,t[15]=(c*M-u*y+f*b)*R,t):null}function l(t,e,s){const i=e[0],n=e[1],r=e[2],o=e[3],h=e[4],a=e[5],l=e[6],c=e[7],u=e[8],f=e[9],d=e[10],_=e[11],m=e[12],g=e[13],p=e[14],b=e[15];let y=s[0],v=s[1],M=s[2],x=s[3];return t[0]=y*i+v*h+M*u+x*m,t[1]=y*n+v*a+M*f+x*g,t[2]=y*r+v*l+M*d+x*p,t[3]=y*o+v*c+M*_+x*b,y=s[4],v=s[5],M=s[6],x=s[7],t[4]=y*i+v*h+M*u+x*m,t[5]=y*n+v*a+M*f+x*g,t[6]=y*r+v*l+M*d+x*p,t[7]=y*o+v*c+M*_+x*b,y=s[8],v=s[9],M=s[10],x=s[11],t[8]=y*i+v*h+M*u+x*m,t[9]=y*n+v*a+M*f+x*g,t[10]=y*r+v*l+M*d+x*p,t[11]=y*o+v*c+M*_+x*b,y=s[12],v=s[13],M=s[14],x=s[15],t[12]=y*i+v*h+M*u+x*m,t[13]=y*n+v*a+M*f+x*g,t[14]=y*r+v*l+M*d+x*p,t[15]=y*o+v*c+M*_+x*b,t}function c(t,e,s){const i=s[0],n=s[1],r=s[2];if(e===t)t[12]=e[0]*i+e[4]*n+e[8]*r+e[12],t[13]=e[1]*i+e[5]*n+e[9]*r+e[13],t[14]=e[2]*i+e[6]*n+e[10]*r+e[14],t[15]=e[3]*i+e[7]*n+e[11]*r+e[15];else{const s=e[0],o=e[1],h=e[2],a=e[3],l=e[4],c=e[5],u=e[6],f=e[7],d=e[8],_=e[9],m=e[10],g=e[11];t[0]=s,t[1]=o,t[2]=h,t[3]=a,t[4]=l,t[5]=c,t[6]=u,t[7]=f,t[8]=d,t[9]=_,t[10]=m,t[11]=g,t[12]=s*i+l*n+d*r+e[12],t[13]=o*i+c*n+_*r+e[13],t[14]=h*i+u*n+m*r+e[14],t[15]=a*i+f*n+g*r+e[15]}return t}function u(t,e,s){const i=s[0],n=s[1],r=s[2];return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*r,t[9]=e[9]*r,t[10]=e[10]*r,t[11]=e[11]*r,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function f(t,e,s,i){let r,o,h,a,l,c,u,f,d,_,m,g,p,b,y,v,M,x,B,E,w,I,S,z,A=i[0],R=i[1],C=i[2],O=Math.sqrt(A*A+R*R+C*C);return O<(0,n.g)()?null:(O=1/O,A*=O,R*=O,C*=O,r=Math.sin(s),o=Math.cos(s),h=1-o,a=e[0],l=e[1],c=e[2],u=e[3],f=e[4],d=e[5],_=e[6],m=e[7],g=e[8],p=e[9],b=e[10],y=e[11],v=A*A*h+o,M=R*A*h+C*r,x=C*A*h-R*r,B=A*R*h-C*r,E=R*R*h+o,w=C*R*h+A*r,I=A*C*h+R*r,S=R*C*h-A*r,z=C*C*h+o,t[0]=a*v+f*M+g*x,t[1]=l*v+d*M+p*x,t[2]=c*v+_*M+b*x,t[3]=u*v+m*M+y*x,t[4]=a*B+f*E+g*w,t[5]=l*B+d*E+p*w,t[6]=c*B+_*E+b*w,t[7]=u*B+m*E+y*w,t[8]=a*I+f*S+g*z,t[9]=l*I+d*S+p*z,t[10]=c*I+_*S+b*z,t[11]=u*I+m*S+y*z,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function d(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function _(t,e,s){if(0===e)return o(t);let i,r,h,a=s[0],l=s[1],c=s[2],u=Math.sqrt(a*a+l*l+c*c);return u<(0,n.g)()?null:(u=1/u,a*=u,l*=u,c*=u,i=Math.sin(e),r=Math.cos(e),h=1-r,t[0]=a*a*h+r,t[1]=l*a*h+c*i,t[2]=c*a*h-l*i,t[3]=0,t[4]=a*l*h-c*i,t[5]=l*l*h+r,t[6]=c*l*h+a*i,t[7]=0,t[8]=a*c*h+l*i,t[9]=l*c*h-a*i,t[10]=c*c*h+r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function m(t,e){const s=Math.sin(e),i=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=s,t[7]=0,t[8]=0,t[9]=-s,t[10]=i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(t,e,s){const i=e[0],n=e[1],r=e[2],o=e[3],h=i+i,a=n+n,l=r+r,c=i*h,u=i*a,f=i*l,d=n*a,_=n*l,m=r*l,g=o*h,p=o*a,b=o*l;return t[0]=1-(d+m),t[1]=u+b,t[2]=f-p,t[3]=0,t[4]=u-b,t[5]=1-(c+m),t[6]=_+g,t[7]=0,t[8]=f+p,t[9]=_-g,t[10]=1-(c+d),t[11]=0,t[12]=s[0],t[13]=s[1],t[14]=s[2],t[15]=1,t}const p=(0,i.c)();function b(t,e,s,i){const n=e[0],r=e[1],o=e[2],h=e[3],a=n+n,l=r+r,c=o+o,u=n*a,f=n*l,d=n*c,_=r*l,m=r*c,g=o*c,p=h*a,b=h*l,y=h*c,v=i[0],M=i[1],x=i[2];return t[0]=(1-(_+g))*v,t[1]=(f+y)*v,t[2]=(d-b)*v,t[3]=0,t[4]=(f-y)*M,t[5]=(1-(u+g))*M,t[6]=(m+p)*M,t[7]=0,t[8]=(d+b)*x,t[9]=(m-p)*x,t[10]=(1-(u+_))*x,t[11]=0,t[12]=s[0],t[13]=s[1],t[14]=s[2],t[15]=1,t}function y(t,e,s){return t[0]=e[0]-s[0],t[1]=e[1]-s[1],t[2]=e[2]-s[2],t[3]=e[3]-s[3],t[4]=e[4]-s[4],t[5]=e[5]-s[5],t[6]=e[6]-s[6],t[7]=e[7]-s[7],t[8]=e[8]-s[8],t[9]=e[9]-s[9],t[10]=e[10]-s[10],t[11]=e[11]-s[11],t[12]=e[12]-s[12],t[13]=e[13]-s[13],t[14]=e[14]-s[14],t[15]=e[15]-s[15],t}function v(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function M(t,e){if(t===e)return!0;const s=t[0],i=t[1],r=t[2],o=t[3],h=t[4],a=t[5],l=t[6],c=t[7],u=t[8],f=t[9],d=t[10],_=t[11],m=t[12],g=t[13],p=t[14],b=t[15],y=e[0],v=e[1],M=e[2],x=e[3],B=e[4],E=e[5],w=e[6],I=e[7],S=e[8],z=e[9],A=e[10],R=e[11],C=e[12],O=e[13],L=e[14],X=e[15],Z=(0,n.g)();return Math.abs(s-y)<=Z*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(i-v)<=Z*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(r-M)<=Z*Math.max(1,Math.abs(r),Math.abs(M))&&Math.abs(o-x)<=Z*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(h-B)<=Z*Math.max(1,Math.abs(h),Math.abs(B))&&Math.abs(a-E)<=Z*Math.max(1,Math.abs(a),Math.abs(E))&&Math.abs(l-w)<=Z*Math.max(1,Math.abs(l),Math.abs(w))&&Math.abs(c-I)<=Z*Math.max(1,Math.abs(c),Math.abs(I))&&Math.abs(u-S)<=Z*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(f-z)<=Z*Math.max(1,Math.abs(f),Math.abs(z))&&Math.abs(d-A)<=Z*Math.max(1,Math.abs(d),Math.abs(A))&&Math.abs(_-R)<=Z*Math.max(1,Math.abs(_),Math.abs(R))&&Math.abs(m-C)<=Z*Math.max(1,Math.abs(m),Math.abs(C))&&Math.abs(g-O)<=Z*Math.max(1,Math.abs(g),Math.abs(O))&&Math.abs(p-L)<=Z*Math.max(1,Math.abs(p),Math.abs(L))&&Math.abs(b-X)<=Z*Math.max(1,Math.abs(b),Math.abs(X))}function x(t){const e=(0,n.g)(),s=t[0],i=t[1],r=t[2],o=t[4],h=t[5],a=t[6],l=t[8],c=t[9],u=t[10];return Math.abs(1-(s*s+o*o+l*l))<=e&&Math.abs(1-(i*i+h*h+c*c))<=e&&Math.abs(1-(r*r+a*a+u*u))<=e}function B(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const E=l,w=y;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,s){return t[0]=e[0]+s[0],t[1]=e[1]+s[1],t[2]=e[2]+s[2],t[3]=e[3]+s[3],t[4]=e[4]+s[4],t[5]=e[5]+s[5],t[6]=e[6]+s[6],t[7]=e[7]+s[7],t[8]=e[8]+s[8],t[9]=e[9]+s[9],t[10]=e[10]+s[10],t[11]=e[11]+s[11],t[12]=e[12]+s[12],t[13]=e[13]+s[13],t[14]=e[14]+s[14],t[15]=e[15]+s[15],t},adjoint:function(t,e){const s=e[0],i=e[1],n=e[2],r=e[3],o=e[4],h=e[5],a=e[6],l=e[7],c=e[8],u=e[9],f=e[10],d=e[11],_=e[12],m=e[13],g=e[14],p=e[15];return t[0]=h*(f*p-d*g)-u*(a*p-l*g)+m*(a*d-l*f),t[1]=-(i*(f*p-d*g)-u*(n*p-r*g)+m*(n*d-r*f)),t[2]=i*(a*p-l*g)-h*(n*p-r*g)+m*(n*l-r*a),t[3]=-(i*(a*d-l*f)-h*(n*d-r*f)+u*(n*l-r*a)),t[4]=-(o*(f*p-d*g)-c*(a*p-l*g)+_*(a*d-l*f)),t[5]=s*(f*p-d*g)-c*(n*p-r*g)+_*(n*d-r*f),t[6]=-(s*(a*p-l*g)-o*(n*p-r*g)+_*(n*l-r*a)),t[7]=s*(a*d-l*f)-o*(n*d-r*f)+c*(n*l-r*a),t[8]=o*(u*p-d*m)-c*(h*p-l*m)+_*(h*d-l*u),t[9]=-(s*(u*p-d*m)-c*(i*p-r*m)+_*(i*d-r*u)),t[10]=s*(h*p-l*m)-o*(i*p-r*m)+_*(i*l-r*h),t[11]=-(s*(h*d-l*u)-o*(i*d-r*u)+c*(i*l-r*h)),t[12]=-(o*(u*g-f*m)-c*(h*g-a*m)+_*(h*f-a*u)),t[13]=s*(u*g-f*m)-c*(i*g-n*m)+_*(i*f-n*u),t[14]=-(s*(h*g-a*m)-o*(i*g-n*m)+_*(i*a-n*h)),t[15]=s*(h*f-a*u)-o*(i*f-n*u)+c*(i*a-n*h),t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},determinant:function(t){const e=t[0],s=t[1],i=t[2],n=t[3],r=t[4],o=t[5],h=t[6],a=t[7],l=t[8],c=t[9],u=t[10],f=t[11],d=t[12],_=t[13],m=t[14],g=t[15];return(e*o-s*r)*(u*g-f*m)-(e*h-i*r)*(c*g-f*_)+(e*a-n*r)*(c*m-u*_)+(s*h-i*o)*(l*g-f*d)-(s*a-n*o)*(l*m-u*d)+(i*a-n*h)*(l*_-c*d)},equals:M,exactEquals:v,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){const s=e[0],i=e[1],n=e[2],r=e[3],o=s+s,h=i+i,a=n+n,l=s*o,c=i*o,u=i*h,f=n*o,d=n*h,_=n*a,m=r*o,g=r*h,p=r*a;return t[0]=1-u-_,t[1]=c+p,t[2]=f-g,t[3]=0,t[4]=c-p,t[5]=1-l-_,t[6]=d+m,t[7]=0,t[8]=f+g,t[9]=d-m,t[10]=1-l-u,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const s=p,i=-e[0],n=-e[1],r=-e[2],o=e[3],h=e[4],a=e[5],l=e[6],c=e[7],u=i*i+n*n+r*r+o*o;return u>0?(s[0]=2*(h*o+c*i+a*r-l*n)/u,s[1]=2*(a*o+c*n+l*i-h*r)/u,s[2]=2*(l*o+c*r+h*n-a*i)/u):(s[0]=2*(h*o+c*i+a*r-l*n),s[1]=2*(a*o+c*n+l*i-h*r),s[2]=2*(l*o+c*r+h*n-a*i)),g(t,e,s),t},fromRotation:_,fromRotationTranslation:g,fromRotationTranslationScale:b,fromRotationTranslationScaleOrigin:function(t,e,s,i,n){const r=e[0],o=e[1],h=e[2],a=e[3],l=r+r,c=o+o,u=h+h,f=r*l,d=r*c,_=r*u,m=o*c,g=o*u,p=h*u,b=a*l,y=a*c,v=a*u,M=i[0],x=i[1],B=i[2],E=n[0],w=n[1],I=n[2],S=(1-(m+p))*M,z=(d+v)*M,A=(_-y)*M,R=(d-v)*x,C=(1-(f+p))*x,O=(g+b)*x,L=(_+y)*B,X=(g-b)*B,Z=(1-(f+m))*B;return t[0]=S,t[1]=z,t[2]=A,t[3]=0,t[4]=R,t[5]=C,t[6]=O,t[7]=0,t[8]=L,t[9]=X,t[10]=Z,t[11]=0,t[12]=s[0]+E-(S*E+R*w+L*I),t[13]=s[1]+w-(z*E+C*w+X*I),t[14]=s[2]+I-(A*E+O*w+Z*I),t[15]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:d,fromXRotation:m,fromYRotation:function(t,e){const s=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=0,t[2]=-s,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=s,t[9]=0,t[10]=i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,e){const s=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=s,t[2]=0,t[3]=0,t[4]=-s,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},frustum:function(t,e,s,i,n,r,o){const h=1/(s-e),a=1/(n-i),l=1/(r-o);return t[0]=2*r*h,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*r*a,t[6]=0,t[7]=0,t[8]=(s+e)*h,t[9]=(n+i)*a,t[10]=(o+r)*l,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*r*2*l,t[15]=0,t},getRotation:function(t,e){const s=e[0]+e[5]+e[10];let i=0;return s>0?(i=2*Math.sqrt(s+1),t[3]=.25*i,t[0]=(e[6]-e[9])/i,t[1]=(e[8]-e[2])/i,t[2]=(e[1]-e[4])/i):e[0]>e[5]&&e[0]>e[10]?(i=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/i,t[0]=.25*i,t[1]=(e[1]+e[4])/i,t[2]=(e[8]+e[2])/i):e[5]>e[10]?(i=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/i,t[0]=(e[1]+e[4])/i,t[1]=.25*i,t[2]=(e[6]+e[9])/i):(i=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/i,t[0]=(e[8]+e[2])/i,t[1]=(e[6]+e[9])/i,t[2]=.25*i),t},getScaling:function(t,e){const s=e[0],i=e[1],n=e[2],r=e[4],o=e[5],h=e[6],a=e[8],l=e[9],c=e[10];return t[0]=Math.sqrt(s*s+i*i+n*n),t[1]=Math.sqrt(r*r+o*o+h*h),t[2]=Math.sqrt(a*a+l*l+c*c),t},getTranslation:function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},hasIdentityRotation:B,identity:o,invert:a,invertOrIdentity:function(t,e){return a(t,e)||o(t),t},isOrthoNormal:x,lookAt:function(t,e,s,i){const r=e[0],h=e[1],a=e[2];let l=r-s[0],c=h-s[1],u=a-s[2];const f=(0,n.g)();if(Math.abs(l)<f&&Math.abs(c)<f&&Math.abs(u)<f)return void o(t);let d=1/Math.sqrt(l*l+c*c+u*u);l*=d,c*=d,u*=d;const _=i[0],m=i[1],g=i[2];let p=m*u-g*c,b=g*l-_*u,y=_*c-m*l;d=Math.sqrt(p*p+b*b+y*y),d?(d=1/d,p*=d,b*=d,y*=d):(p=0,b=0,y=0);let v=c*y-u*b,M=u*p-l*y,x=l*b-c*p;d=Math.sqrt(v*v+M*M+x*x),d?(d=1/d,v*=d,M*=d,x*=d):(v=0,M=0,x=0),t[0]=p,t[1]=v,t[2]=l,t[3]=0,t[4]=b,t[5]=M,t[6]=c,t[7]=0,t[8]=y,t[9]=x,t[10]=u,t[11]=0,t[12]=-(p*r+b*h+y*a),t[13]=-(v*r+M*h+x*a),t[14]=-(l*r+c*h+u*a),t[15]=1},mul:E,multiply:l,multiplyScalar:function(t,e,s){return t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s,t[3]=e[3]*s,t[4]=e[4]*s,t[5]=e[5]*s,t[6]=e[6]*s,t[7]=e[7]*s,t[8]=e[8]*s,t[9]=e[9]*s,t[10]=e[10]*s,t[11]=e[11]*s,t[12]=e[12]*s,t[13]=e[13]*s,t[14]=e[14]*s,t[15]=e[15]*s,t},multiplyScalarAndAdd:function(t,e,s,i){return t[0]=e[0]+s[0]*i,t[1]=e[1]+s[1]*i,t[2]=e[2]+s[2]*i,t[3]=e[3]+s[3]*i,t[4]=e[4]+s[4]*i,t[5]=e[5]+s[5]*i,t[6]=e[6]+s[6]*i,t[7]=e[7]+s[7]*i,t[8]=e[8]+s[8]*i,t[9]=e[9]+s[9]*i,t[10]=e[10]+s[10]*i,t[11]=e[11]+s[11]*i,t[12]=e[12]+s[12]*i,t[13]=e[13]+s[13]*i,t[14]=e[14]+s[14]*i,t[15]=e[15]+s[15]*i,t},ortho:function(t,e,s,i,n,r,o){const h=1/(e-s),a=1/(i-n),l=1/(r-o);return t[0]=-2*h,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*l,t[11]=0,t[12]=(e+s)*h,t[13]=(n+i)*a,t[14]=(o+r)*l,t[15]=1,t},perspective:function(t,e,s,i,n){const r=1/Math.tan(e/2);let o;return t[0]=r/s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=n&&n!==1/0?(o=1/(i-n),t[10]=(n+i)*o,t[14]=2*n*i*o):(t[10]=-1,t[14]=-2*i),t},perspectiveFromFieldOfView:function(t,e,s,i){const n=Math.tan(e.upDegrees*Math.PI/180),r=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),h=Math.tan(e.rightDegrees*Math.PI/180),a=2/(o+h),l=2/(n+r);return t[0]=a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=-(o-h)*a*.5,t[9]=(n-r)*l*.5,t[10]=i/(s-i),t[11]=-1,t[12]=0,t[13]=0,t[14]=i*s/(s-i),t[15]=0,t},rotate:f,rotateX:function(t,e,s){const i=Math.sin(s),n=Math.cos(s),r=e[4],o=e[5],h=e[6],a=e[7],l=e[8],c=e[9],u=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=r*n+l*i,t[5]=o*n+c*i,t[6]=h*n+u*i,t[7]=a*n+f*i,t[8]=l*n-r*i,t[9]=c*n-o*i,t[10]=u*n-h*i,t[11]=f*n-a*i,t},rotateY:function(t,e,s){const i=Math.sin(s),n=Math.cos(s),r=e[0],o=e[1],h=e[2],a=e[3],l=e[8],c=e[9],u=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=r*n-l*i,t[1]=o*n-c*i,t[2]=h*n-u*i,t[3]=a*n-f*i,t[8]=r*i+l*n,t[9]=o*i+c*n,t[10]=h*i+u*n,t[11]=a*i+f*n,t},rotateZ:function(t,e,s){const i=Math.sin(s),n=Math.cos(s),r=e[0],o=e[1],h=e[2],a=e[3],l=e[4],c=e[5],u=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=r*n+l*i,t[1]=o*n+c*i,t[2]=h*n+u*i,t[3]=a*n+f*i,t[4]=l*n-r*i,t[5]=c*n-o*i,t[6]=u*n-h*i,t[7]=f*n-a*i,t},scale:u,set:r,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:w,subtract:y,targetTo:function(t,e,s,i){const n=e[0],r=e[1],o=e[2],h=i[0],a=i[1],l=i[2];let c=n-s[0],u=r-s[1],f=o-s[2],d=c*c+u*u+f*f;d>0&&(d=1/Math.sqrt(d),c*=d,u*=d,f*=d);let _=a*f-l*u,m=l*c-h*f,g=h*u-a*c;return d=_*_+m*m+g*g,d>0&&(d=1/Math.sqrt(d),_*=d,m*=d,g*=d),t[0]=_,t[1]=m,t[2]=g,t[3]=0,t[4]=u*g-f*m,t[5]=f*_-c*g,t[6]=c*m-u*_,t[7]=0,t[8]=c,t[9]=u,t[10]=f,t[11]=0,t[12]=n,t[13]=r,t[14]=o,t[15]=1,t},translate:c,transpose:h},Symbol.toStringTag,{value:"Module"}))},46791:(t,e,s)=>{s.d(e,{Z:()=>R});var i,n=s(43697),r=s(3894),o=s(32448),h=s(50758),a=s(22974),l=s(71143);!function(t){t[t.ADD=1]="ADD",t[t.REMOVE=2]="REMOVE",t[t.MOVE=4]="MOVE"}(i||(i={}));var c,u=s(1654),f=s(75215),d=s(58971),_=s(5600),m=s(52421),g=s(52011),p=s(10661);class b{constructor(t,e,s,i,n){this.target=t,this.added=e,this.removed=s,this.start=i,this.deleteCount=n}}const y=new l.Z(class{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(t){this.defaultPrevented=!1,this.item=t}},void 0,(t=>{t.item=null,t.target=null,t.defaultPrevented=!1,t.cancellable=!1}));function v(t){return t?t instanceof A?t.toArray():t.length?Array.prototype.slice.apply(t):[]:[]}function M(t){if(t&&t.length)return t[0]}function x(t,e,s,i){const n=Math.min(t.length-s,e.length-i);let r=0;for(;r<n&&t[s+r]===e[i+r];)r++;return r}function B(t,e,s,i){e&&e.forEach(((e,n,r)=>{t.push(e),B(t,s.call(i,e,n,r),s,i)}))}const E=new Set,w=new Set,I=new Set,S=new Map;let z=0,A=c=class extends o.Z.EventedAccessor{static isCollection(t){return null!=t&&t instanceof c}constructor(t){super(t),this._chgListeners=[],this._notifications=null,this._timer=null,this._observable=new p.s,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:z++})}normalizeCtorArgs(t){return t?Array.isArray(t)||t instanceof c?{items:t}:t:{}}destroy(){this._removeAllRaw()}*[Symbol.iterator](){yield*this.items}get items(){return(0,d.it)(this._observable),this._items}set items(t){this._emitBeforeChanges(i.ADD)||(this._splice(0,this.length,v(t)),this._emitAfterChanges(i.ADD))}hasEventListener(t){return"change"===t?this._chgListeners.length>0:this._emitter.hasEventListener(t)}on(t,e){if("change"===t){const t=this._chgListeners,s={removed:!1,callback:e};return t.push(s),this._notifications&&this._notifications.push({listeners:t.slice(),items:this._items.slice(),changes:[]}),(0,h.kB)((()=>{s.removed=!0,t.splice(t.indexOf(s),1)}))}return this._emitter.on(t,e)}once(t,e){return this.on(t,e)}add(t,e){if((0,d.it)(this._observable),this._emitBeforeChanges(i.ADD))return this;const s=this.getNextIndex(e??null);return this._splice(s,0,[t]),this._emitAfterChanges(i.ADD),this}addMany(t,e=this._items.length){if((0,d.it)(this._observable),!t||!t.length)return this;if(this._emitBeforeChanges(i.ADD))return this;const s=this.getNextIndex(e);return this._splice(s,0,v(t)),this._emitAfterChanges(i.ADD),this}at(t){if((0,d.it)(this._observable),(t=Math.trunc(t)||0)<0&&(t+=this.length),!(t<0||t>=this.length))return this._items[t]}removeAll(){if((0,d.it)(this._observable),!this.length||this._emitBeforeChanges(i.REMOVE))return[];const t=this._removeAllRaw();return this._emitAfterChanges(i.REMOVE),t}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,d.it)(this._observable),this._createNewInstance({items:this._items.map(a.d9)})}concat(...t){(0,d.it)(this._observable);const e=t.map(v);return this._createNewInstance({items:this._items.concat(...e)})}drain(t,e){if((0,d.it)(this._observable),!this.length||this._emitBeforeChanges(i.REMOVE))return;const s=this._splice(0,this.length),n=s.length;for(let i=0;i<n;i++)t.call(e,s[i],i,s);this._emitAfterChanges(i.REMOVE)}every(t,e){return(0,d.it)(this._observable),this._items.every(t,e)}filter(t,e){let s;return(0,d.it)(this._observable),s=2===arguments.length?this._items.filter(t,e):this._items.filter(t),this._createNewInstance({items:s})}find(t,e){return(0,d.it)(this._observable),this._items.find(t,e)}findIndex(t,e){return(0,d.it)(this._observable),this._items.findIndex(t,e)}flatten(t,e){(0,d.it)(this._observable);const s=[];return B(s,this,t,e),new c(s)}forEach(t,e){return(0,d.it)(this._observable),this._items.forEach(t,e)}getItemAt(t){return(0,d.it)(this._observable),this._items[t]}getNextIndex(t){(0,d.it)(this._observable);const e=this.length;return(t=t??e)<0?t=0:t>e&&(t=e),t}includes(t,e=0){return(0,d.it)(this._observable),this._items.includes(t,e)}indexOf(t,e=0){return(0,d.it)(this._observable),this._items.indexOf(t,e)}join(t=","){return(0,d.it)(this._observable),this._items.join(t)}lastIndexOf(t,e=this.length-1){return(0,d.it)(this._observable),this._items.lastIndexOf(t,e)}map(t,e){(0,d.it)(this._observable);const s=this._items.map(t,e);return new c({items:s})}reorder(t,e=this.length-1){(0,d.it)(this._observable);const s=this.indexOf(t);if(-1!==s){if(e<0?e=0:e>=this.length&&(e=this.length-1),s!==e){if(this._emitBeforeChanges(i.MOVE))return t;this._splice(s,1),this._splice(e,0,[t]),this._emitAfterChanges(i.MOVE)}return t}}pop(){if((0,d.it)(this._observable),!this.length||this._emitBeforeChanges(i.REMOVE))return;const t=M(this._splice(this.length-1,1));return this._emitAfterChanges(i.REMOVE),t}push(...t){return(0,d.it)(this._observable),this._emitBeforeChanges(i.ADD)||(this._splice(this.length,0,t),this._emitAfterChanges(i.ADD)),this.length}reduce(t,e){(0,d.it)(this._observable);const s=this._items;return 2===arguments.length?s.reduce(t,e):s.reduce(t)}reduceRight(t,e){(0,d.it)(this._observable);const s=this._items;return 2===arguments.length?s.reduceRight(t,e):s.reduceRight(t)}remove(t){return(0,d.it)(this._observable),this.removeAt(this.indexOf(t))}removeAt(t){if((0,d.it)(this._observable),t<0||t>=this.length||this._emitBeforeChanges(i.REMOVE))return;const e=M(this._splice(t,1));return this._emitAfterChanges(i.REMOVE),e}removeMany(t){if((0,d.it)(this._observable),!t||!t.length||this._emitBeforeChanges(i.REMOVE))return[];const e=t instanceof c?t.toArray():t,s=this._items,n=[],r=e.length;for(let t=0;t<r;t++){const i=e[t],r=s.indexOf(i);if(r>-1){const i=1+x(e,s,t+1,r+1),o=this._splice(r,i);o&&o.length>0&&n.push.apply(n,o),t+=i-1}}return this._emitAfterChanges(i.REMOVE),n}reverse(){if((0,d.it)(this._observable),this._emitBeforeChanges(i.MOVE))return this;const t=this._splice(0,this.length);return t&&(t.reverse(),this._splice(0,0,t)),this._emitAfterChanges(i.MOVE),this}shift(){if((0,d.it)(this._observable),!this.length||this._emitBeforeChanges(i.REMOVE))return;const t=M(this._splice(0,1));return this._emitAfterChanges(i.REMOVE),t}slice(t=0,e=this.length){return(0,d.it)(this._observable),this._createNewInstance({items:this._items.slice(t,e)})}some(t,e){return(0,d.it)(this._observable),this._items.some(t,e)}sort(t){if((0,d.it)(this._observable),!this.length||this._emitBeforeChanges(i.MOVE))return this;const e=this._splice(0,this.length);return arguments.length?e.sort(t):e.sort(),this._splice(0,0,e),this._emitAfterChanges(i.MOVE),this}splice(t,e,...s){(0,d.it)(this._observable);const n=(e?i.REMOVE:0)|(s.length?i.ADD:0);if(this._emitBeforeChanges(n))return[];const r=this._splice(t,e,s)||[];return this._emitAfterChanges(n),r}toArray(){return(0,d.it)(this._observable),this._items.slice()}toJSON(){return(0,d.it)(this._observable),this.toArray()}toLocaleString(){return(0,d.it)(this._observable),this._items.toLocaleString()}toString(){return(0,d.it)(this._observable),this._items.toString()}unshift(...t){return(0,d.it)(this._observable),!t.length||this._emitBeforeChanges(i.ADD)||(this._splice(0,0,t),this._emitAfterChanges(i.ADD)),this.length}_createNewInstance(t){return new this.constructor(t)}_splice(t,e,s){const i=this._items,n=this.itemType;let r,o;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._timer=(0,u.Os)((()=>this._dispatchChange()))),e){if(o=i.splice(t,e),this.hasEventListener("before-remove")){const e=y.acquire();e.target=this,e.cancellable=!0;for(let s=0,n=o.length;s<n;s++)r=o[s],e.reset(r),this.emit("before-remove",e),e.defaultPrevented&&(o.splice(s,1),i.splice(t,0,r),t+=1,s-=1,n-=1);y.release(e)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const t=y.acquire();t.target=this,t.cancellable=!1;const e=o.length;for(let s=0;s<e;s++)t.reset(o[s]),this.emit("after-remove",t);y.release(t)}}if(s&&s.length){if(n){const t=[];for(const e of s){const s=n.ensureType(e);null==s&&null!=e||t.push(s)}s=t}const e=this.hasEventListener("before-add"),r=this.hasEventListener("after-add"),o=t===this.length;if(e||r){const n=y.acquire();n.target=this,n.cancellable=!0;const h=y.acquire();h.target=this,h.cancellable=!1;for(const a of s)e?(n.reset(a),this.emit("before-add",n),n.defaultPrevented||(o?i.push(a):i.splice(t++,0,a),this._set("length",i.length),r&&(h.reset(a),this.emit("after-add",h)))):(o?i.push(a):i.splice(t++,0,a),this._set("length",i.length),h.reset(a),this.emit("after-add",h));y.release(h),y.release(n)}else{if(o)for(const t of s)i.push(t);else i.splice(t,0,...s);this._set("length",i.length)}}if((s&&s.length||o&&o.length)&&this._notifyChangeEvent(s,o),this.hasEventListener("after-splice")){const i=new b(this,s,o,t,e);this.emit("after-splice",i)}return o}_emitBeforeChanges(t){let e=!1;if(this.hasEventListener("before-changes")){const s=y.acquire();s.target=this,s.cancellable=!0,s.type=t,this.emit("before-changes",s),e=s.defaultPrevented,y.release(s)}return e}_emitAfterChanges(t){if(this.hasEventListener("after-changes")){const e=y.acquire();e.target=this,e.cancellable=!1,e.type=t,this.emit("after-changes",e),y.release(e)}this._observable.notify()}_notifyChangeEvent(t,e){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:t,removed:e})}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),!this._notifications)return;const t=this._notifications;this._notifications=null;for(const e of t){const t=e.changes;E.clear(),w.clear(),I.clear();for(const{added:e,removed:s}of t){if(e)if(0===I.size&&0===w.size)for(const t of e)E.add(t);else for(const t of e)w.has(t)?(I.add(t),w.delete(t)):I.has(t)||E.add(t);if(s)if(0===I.size&&0===E.size)for(const t of s)w.add(t);else for(const t of s)E.has(t)?E.delete(t):(I.delete(t),w.add(t))}const s=r.Z.acquire();E.forEach((t=>{s.push(t)}));const i=r.Z.acquire();w.forEach((t=>{i.push(t)}));const n=this._items,o=e.items,h=r.Z.acquire();if(I.forEach((t=>{o.indexOf(t)!==n.indexOf(t)&&h.push(t)})),e.listeners&&(s.length||i.length||h.length)){const t={target:this,added:s,removed:i,moved:h},n=e.listeners.length;for(let s=0;s<n;s++){const i=e.listeners[s];i.removed||i.callback.call(this,t)}}r.Z.release(s),r.Z.release(i),r.Z.release(h)}E.clear(),w.clear(),I.clear()}};A.ofType=t=>{if(!t)return c;if(S.has(t))return S.get(t);let e=null;if("function"==typeof t)e=t.prototype.declaredClass;else if(t.base)e=t.base.prototype.declaredClass;else for(const s in t.typeMap){const i=t.typeMap[s].prototype.declaredClass;e?e+=` | ${i}`:e=i}let s=class extends c{};return(0,n._)([(0,m.c)({Type:t,ensureType:"function"==typeof t?(0,f.se)(t):(0,f.N7)(t)})],s.prototype,"itemType",void 0),s=(0,n._)([(0,g.j)(`esri.core.Collection<${e}>`)],s),S.set(t,s),s},(0,n._)([(0,_.Cb)()],A.prototype,"length",void 0),(0,n._)([(0,_.Cb)()],A.prototype,"items",null),A=c=(0,n._)([(0,g.j)("esri.core.Collection")],A);const R=A},32448:(t,e,s)=>{s.d(e,{Z:()=>a});var i=s(43697),n=s(92036),r=s(50758),o=s(52011);class h{constructor(){this._emitter=new h.EventEmitter(this)}emit(t,e){return this._emitter.emit(t,e)}on(t,e){return this._emitter.on(t,e)}once(t,e){return this._emitter.once(t,e)}hasEventListener(t){return this._emitter.hasEventListener(t)}}!function(t){class e{constructor(t=null){this._target=t,this._listenersMap=null}clear(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clear()}emit(t,e){const s=this._listenersMap&&this._listenersMap.get(t);if(!s)return!1;const i=this._target||this;return[...s].forEach((t=>{t.call(i,e)})),s.length>0}on(t,e){if(Array.isArray(t)){const s=t.map((t=>this.on(t,e)));return(0,r.AL)(s)}if(t.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap||(this._listenersMap=new Map);const s=this._listenersMap.get(t)||[];return s.push(e),this._listenersMap.set(t,s),(0,r.kB)((()=>{const s=this._listenersMap&&this._listenersMap.get(t)||[],i=s.indexOf(e);i>=0&&s.splice(i,1)}))}once(t,e){const s=this.on(t,(t=>{s.remove(),e.call(null,t)}));return s}hasEventListener(t){const e=this._listenersMap&&this._listenersMap.get(t);return null!=e&&e.length>0}}t.EventEmitter=e,t.EventedMixin=t=>{let s=class extends t{constructor(){super(...arguments),this._emitter=new e}destroy(){this._emitter.clear()}emit(t,e){return this._emitter.emit(t,e)}on(t,e){return this._emitter.on(t,e)}once(t,e){return this._emitter.once(t,e)}hasEventListener(t){return this._emitter.hasEventListener(t)}};return s=(0,i._)([(0,o.j)("esri.core.Evented")],s),s};let s=class extends n.Z{constructor(){super(...arguments),this._emitter=new h.EventEmitter(this)}destroy(){this._emitter.clear()}emit(t,e){return this._emitter.emit(t,e)}on(t,e){return this._emitter.on(t,e)}once(t,e){return this._emitter.once(t,e)}hasEventListener(t){return this._emitter.hasEventListener(t)}};s=(0,i._)([(0,o.j)("esri.core.Evented")],s),t.EventedAccessor=s}(h||(h={}));const a=h},13867:(t,e,s)=>{s.d(e,{z:()=>n});var i=s(69801);class n{constructor(t,e){this._storage=new i.WJ,this.id="",this.name="",this.size=0,this._storage.maxSize=t,this._storage.register(this),e&&this._storage.registerRemoveFunc("",e)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(t,e,s=1){this._storage.put(this,t,e,s,1)}pop(t){return this._storage.pop(this,t)}get(t){return this._storage.get(this,t)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}resetHitRate(){}}},69801:(t,e,s)=>{s.d(e,{WJ:()=>h,Xq:()=>o});var i,n,r=s(44553);(n=i||(i={}))[n.ALL=0]="ALL",n[n.SOME=1]="SOME";class o{constructor(t,e,s){this.name=t,this._storage=e,this.id=a+++":",this.size=0,this.maxSize=0,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),s&&(this._storage.registerRemoveFunc(this.id,s),this._removeFunc=!0)}destroy(){this._storage.clear(this),this._removeFunc&&this._storage.deregisterRemoveFunc(this.id),this._storage.deregister(this),this._storage=null}get hitRate(){return this._hit/(this._hit+this._miss)}get sizeAll(){return this._storage.size}resetHitRate(){this._hit=this._miss=0}put(t,e,s,i=0){this._storage.put(this,t,e,s,i)}get(t){const e=this._storage.get(this,t);return void 0===e?++this._miss:++this._hit,e}peek(t){return this._storage.peek(this,t)}pop(t){const e=this._storage.pop(this,t);return void 0===e?++this._miss:++this._hit,e}updateSize(t,e,s){this._storage.updateSize(this,t,e,s)}clear(){this._storage.clear(this)}clearAll(){this._storage.clearAll()}get performanceInfo(){return this._storage.performanceInfo}resetStats(){this._storage.resetStats()}}class h{get size(){return this._size}constructor(t=10485760){this._maxSize=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new r.Z,this._users=new r.Z}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear(),this._db=null}register(t){this._users.push(t)}deregister(t){this._users.removeUnordered(t)}registerRemoveFunc(t,e){this._removeFuncs.push([t,e])}deregisterRemoveFunc(t){this._removeFuncs.filterInPlace((e=>e[0]!==t))}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,0),this._checkSizeLimits()}put(t,e,s,n,r){e=t.id+e;const o=this._db.get(e);if(o&&(this._size-=o.size,t.size-=o.size,this._db.delete(e),o.entry!==s&&this._notifyRemove(e,o.entry,i.ALL)),n>this._maxSize)return void this._notifyRemove(e,s,i.ALL);if(void 0===s)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return void console.warn("Refusing to cache entry with invalid size "+n);const h=1+Math.max(r,-3)- -3;this._db.set(e,{entry:s,size:n,lifetime:h,lives:h}),this._size+=n,t.size+=n,this._checkSizeLimits()}updateSize(t,e,s,n){e=t.id+e;const r=this._db.get(e);if(r&&r.entry===s){for(this._size-=r.size,t.size-=r.size;n>this._maxSize;){const t=this._notifyRemove(e,s,i.SOME);if(!(null!=t&&t>0))return void this._db.delete(e);n=t}r.size=n,this._size+=n,t.size+=n,this._checkSizeLimits()}}pop(t,e){e=t.id+e;const s=this._db.get(e);if(s)return this._size-=s.size,t.size-=s.size,this._db.delete(e),++this._hit,s.entry;++this._miss}get(t,e){e=t.id+e;const s=this._db.get(e);if(void 0!==s)return this._db.delete(e),s.lives=s.lifetime,this._db.set(e,s),++this._hit,s.entry;++this._miss}peek(t,e){const s=this._db.get(t.id+e);return s?++this._hit:++this._miss,s?.entry}get performanceInfo(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},s=new Array;this._db.forEach(((t,i)=>{const n=t.lifetime;s[n]=(s[n]||0)+t.size,this._users.forAll((s=>{const{id:n,name:r}=s;if(i.startsWith(n)){const s=e[r]||0;e[r]=s+t.size}}))}));const i={};this._users.forAll((t=>{const s=t.name;if("hitRate"in t&&"number"==typeof t.hitRate&&!isNaN(t.hitRate)&&t.hitRate>0){const n=e[s]||0;e[s]=n,i[s]=Math.round(100*t.hitRate)+"%"}else i[s]="0%"}));const n=Object.keys(e);n.sort(((t,s)=>e[s]-e[t])),n.forEach((s=>t[s]=Math.round(e[s]/2**20)+"MB / "+i[s]));for(let e=s.length-1;e>=0;--e){const i=s[e];i&&(t["Priority "+(e+-3-1)]=Math.round(i/this._size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._users.forAll((t=>t.resetHitRate()))}clear(t){const e=t.id;this._db.forEach(((t,s)=>{s.startsWith(e)&&(this._size-=t.size,this._db.delete(s),this._notifyRemove(s,t.entry,i.ALL))})),t.size=0}clearAll(){this._db.forEach(((t,e)=>this._notifyRemove(e,t.entry,i.ALL))),this._users.forEach((t=>t.size=0)),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,s){let i;return this._removeFuncs.some((n=>{if(t.startsWith(n[0])){const t=n[1](e,s);return"number"==typeof t&&(i=t),!0}return!1})),i}_checkSizeLimits(){if(this._size>this._maxSize)for(const[t,e]of this._db)if(this._purgeItem(t,e),this._size<=.9*this.maxSize)return;this._users.forEach((t=>{if(t.maxSize>0&&t.size>t.maxSize)for(const[e,s]of this._db)if(e.startsWith(t.id)&&(this._purgeItem(e,s,t),t.size<=.9*t.maxSize))return}))}_purgeItem(t,e,s=this._users.find((e=>t.startsWith(e.id)))){if(this._db.delete(t),e.lives<=1){this._size-=e.size,s&&(s.size-=e.size);const n=this._notifyRemove(t,e.entry,i.SOME);null!=n&&n>0&&(this._size+=n,s&&(s.size+=n),e.lives=e.lifetime,e.size=n,this._db.set(t,e))}else--e.lives,this._db.set(t,e)}}let a=0},52421:(t,e,s)=>{function i(t){return(e,s)=>{e[s]=t}}s.d(e,{c:()=>i})},10661:(t,e,s)=>{s.d(e,{s:()=>n});var i=s(42100);class n extends i.s{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},66643:(t,e,s)=>{s.d(e,{Ed:()=>l,UI:()=>c,mt:()=>_,q6:()=>d,vr:()=>m});var i=s(43697),n=s(92036),r=s(70586),o=s(95330),h=s(5600),a=s(52011);function l(t,e,s){return(0,o.as)(t.map(((t,i)=>e.apply(s,[t,i]))))}async function c(t,e,s){return(await(0,o.as)(t.map(((t,i)=>e.apply(s,[t,i]))))).map((t=>t.value))}function u(t){return{ok:!0,value:t}}function f(t){return{ok:!1,error:t}}async function d(t){if(null==t)return{ok:!1,error:new Error("no promise provided")};try{return u(await t)}catch(t){return f(t)}}async function _(t){try{return u(await t)}catch(t){return(0,o.r9)(t),f(t)}}function m(t,e){return new g(t,e)}let g=class extends n.Z{get value(){return null!=(t=this._result)&&!0===t.ok?t.value:null;var t}get error(){return null!=(t=this._result)&&!1===t.ok?t.error:null;var t}get finished(){return null!=this._result}constructor(t,e){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,r.IM)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:s}=this._abortController;this.promise=t(s),this.promise.then((t=>{this._result=u(t),this._cleanup()}),(t=>{this._result=f(t),this._cleanup()})),this._abortHandle=(0,o.fu)(e,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,r.hw)(this._abortHandle),this._abortController=null}};(0,i._)([(0,h.Cb)()],g.prototype,"value",null),(0,i._)([(0,h.Cb)()],g.prototype,"error",null),(0,i._)([(0,h.Cb)()],g.prototype,"finished",null),(0,i._)([(0,h.Cb)()],g.prototype,"promise",void 0),(0,i._)([(0,h.Cb)()],g.prototype,"_result",void 0),g=(0,i._)([(0,a.j)("esri.core.asyncUtils.ReactiveTask")],g)},24133:(t,e,s)=>{s.d(e,{Q:()=>o});var i=s(67676),n=s(44553),r=s(88764);class o{constructor(t=9,e){this._compareMinX=c,this._compareMinY=u,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),y.prune(),v.prune(),M.prune(),x.prune()}all(t){this._all(this._data,t)}search(t,e){let s=this._data;const i=this._toBBox;if(p(t,s))for(y.clear();s;){for(let n=0,r=s.children.length;n<r;n++){const r=s.children[n],o=s.leaf?i(r):r;p(t,o)&&(s.leaf?e(r):g(t,o)?this._all(r,e):y.push(r))}s=y.pop()}}collides(t){let e=this._data;const s=this._toBBox;if(!p(t,e))return!1;for(y.clear();e;){for(let i=0,n=e.children.length;i<n;i++){const n=e.children[i],r=e.leaf?s(n):n;if(p(t,r)){if(e.leaf||g(t,r))return!0;y.push(n)}}e=y.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,s=t.length;e<s;e++)this.insert(t[e]);return this}let e=this._build(t.slice(0,t.length),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new w([]),this}remove(t){if(!t)return this;let e,s=this._data,n=null,r=0,o=!1;const h=this._toBBox(t);for(M.clear(),x.clear();s||M.length>0;){if(s||(s=M.pop(),n=M.data[M.length-1],r=x.pop()??0,o=!0),s.leaf&&(e=(0,i.cq)(s.children,t,s.children.length,s.indexHint),-1!==e))return s.children.splice(e,1),M.push(s),this._condense(M),this;o||s.leaf||!g(s,h)?n?(r++,s=n.children[r],o=!1):s=null:(M.push(s),x.push(r),r=0,n=s,s=s.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,e){let s=t;for(v.clear();s;){if(!0===s.leaf)for(const t of s.children)e(t);else v.pushArray(s.children);s=v.pop()??null}}_build(t,e,s,i){const n=s-e+1;let r=this._maxEntries;if(n<=r){const i=new w(t.slice(e,s+1));return h(i,this._toBBox),i}i||(i=Math.ceil(Math.log(n)/Math.log(r)),r=Math.ceil(n/r**(i-1)));const o=new I([]);o.height=i;const a=Math.ceil(n/r),l=a*Math.ceil(Math.sqrt(r));b(t,e,s,l,this._compareMinX);for(let n=e;n<=s;n+=l){const e=Math.min(n+l-1,s);b(t,n,e,a,this._compareMinY);for(let s=n;s<=e;s+=a){const n=Math.min(s+a-1,e);o.children.push(this._build(t,s,n,i-1))}}return h(o,this._toBBox),o}_chooseSubtree(t,e,s,i){for(;i.push(e),!0!==e.leaf&&i.length-1!==s;){let s,i=1/0,n=1/0;for(let r=0,o=e.children.length;r<o;r++){const o=e.children[r],h=f(o),a=_(t,o)-h;a<n?(n=a,i=h<i?h:i,s=o):a===n&&h<i&&(i=h,s=o)}e=s||e.children[0]}return e}_insert(t,e,s){const i=this._toBBox,n=s?t:i(t);M.clear();const r=this._chooseSubtree(n,this._data,e,M);for(r.children.push(t),l(r,n);e>=0&&M.data[e].children.length>this._maxEntries;)this._split(M,e),e--;this._adjustParentBBoxes(n,M,e)}_split(t,e){const s=t.data[e],i=s.children.length,n=this._minEntries;this._chooseSplitAxis(s,n,i);const r=this._chooseSplitIndex(s,n,i);if(!r)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const o=s.children.splice(r,s.children.length-r),a=s.leaf?new w(o):new I(o);a.height=s.height,h(s,this._toBBox),h(a,this._toBBox),e?t.data[e-1].children.push(a):this._splitRoot(s,a)}_splitRoot(t,e){this._data=new I([t,e]),this._data.height=t.height+1,h(this._data,this._toBBox)}_chooseSplitIndex(t,e,s){let i,n,r;i=n=1/0;for(let o=e;o<=s-e;o++){const e=a(t,0,o,this._toBBox),h=a(t,o,s,this._toBBox),l=m(e,h),c=f(e)+f(h);l<i?(i=l,r=o,n=c<n?c:n):l===i&&c<n&&(n=c,r=o)}return r}_chooseSplitAxis(t,e,s){const i=t.leaf?this._compareMinX:c,n=t.leaf?this._compareMinY:u;this._allDistMargin(t,e,s,i)<this._allDistMargin(t,e,s,n)&&t.children.sort(i)}_allDistMargin(t,e,s,i){t.children.sort(i);const n=this._toBBox,r=a(t,0,e,n),o=a(t,s-e,s,n);let h=d(r)+d(o);for(let i=e;i<s-e;i++){const e=t.children[i];l(r,t.leaf?n(e):e),h+=d(r)}for(let i=s-e-1;i>=e;i--){const e=t.children[i];l(o,t.leaf?n(e):e),h+=d(o)}return h}_adjustParentBBoxes(t,e,s){for(let i=s;i>=0;i--)l(e.data[i],t)}_condense(t){for(let e=t.length-1;e>=0;e--){const s=t.data[e];if(0===s.children.length)if(e>0){const n=t.data[e-1],r=n.children;r.splice((0,i.cq)(r,s,r.length,n.indexHint),1)}else this.clear();else h(s,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function h(t,e){a(t,0,t.children.length,e,t)}function a(t,e,s,i,n){n||(n=new w([])),n.minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(let r,o=e;o<s;o++)r=t.children[o],l(n,t.leaf?i(r):r);return n}function l(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function c(t,e){return t.minX-e.minX}function u(t,e){return t.minY-e.minY}function f(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function d(t){return t.maxX-t.minX+(t.maxY-t.minY)}function _(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function m(t,e){const s=Math.max(t.minX,e.minX),i=Math.max(t.minY,e.minY),n=Math.min(t.maxX,e.maxX),r=Math.min(t.maxY,e.maxY);return Math.max(0,n-s)*Math.max(0,r-i)}function g(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function p(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function b(t,e,s,i,n){const o=[e,s];for(;o.length;){const e=o.pop(),s=o.pop();if(e-s<=i)continue;const h=s+Math.ceil((e-s)/i/2)*i;(0,r.q)(t,h,s,e,n),o.push(s,h,h,e)}}const y=new n.Z,v=new n.Z,M=new n.Z,x=new n.Z({deallocator:void 0});class B{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class E extends B{constructor(){super(...arguments),this.height=1,this.indexHint=new i.SO}}class w extends E{constructor(t){super(),this.children=t,this.leaf=!0}}class I extends E{constructor(t){super(),this.children=t,this.leaf=!1}}},17445:(t,e,s)=>{s.d(e,{N1:()=>f,YP:()=>a,Z_:()=>m,gx:()=>l,nn:()=>g,on:()=>u,tX:()=>p}),s(66643),s(46791);var i=s(91460),n=s(50758),r=s(70586),o=s(95330),h=s(26258);function a(t,e,s={}){return c(t,e,s,d)}function l(t,e,s={}){return c(t,e,s,_)}function c(t,e,s={},i){let n=null;const o=s.once?(t,s)=>{i(t)&&((0,r.hw)(n),e(t,s))}:(t,s)=>{i(t)&&e(t,s)};if(n=(0,h.aQ)(t,o,s.sync,s.equals),s.initial){const e=t();o(e,e)}return n}function u(t,e,s,o={}){let h=null,l=null,c=null;function u(){h&&l&&(l.remove(),o.onListenerRemove?.(h),h=null,l=null)}function f(t){o.once&&o.once&&(0,r.hw)(c),s(t)}const d=a(t,((t,s)=>{u(),(0,i.vT)(t)&&(h=t,l=(0,i.on)(t,e,f),o.onListenerAdd?.(t))}),{sync:o.sync,initial:!0});return c=(0,n.kB)((()=>{d.remove(),u()})),c}function f(t,e){return function(t,e,s){if((0,o.Hc)(s))return Promise.reject((0,o.zE)());const i=t();if(e?.(i))return Promise.resolve(i);let h=null;function a(){h=(0,r.hw)(h)}return new Promise(((i,r)=>{h=(0,n.AL)([(0,o.fu)(s,(()=>{a(),r((0,o.zE)())})),c(t,(t=>{a(),i(t)}),{sync:!1,once:!0},e??d)])}))}(t,_,e)}function d(t){return!0}function _(t){return!!t}s(87538);const m={sync:!0},g={initial:!0},p={sync:!0,initial:!0}},16306:(t,e,s)=>{s.d(e,{aX:()=>x});var i=s(68773),n=s(20102),r=s(92604),o=s(38913),h=s(58901),a=s(73913),l=s(8744),c=s(40488),u=(s(66577),s(3172)),f=s(33955),d=s(11282),_=s(17452);async function m(t,e,s){const i="string"==typeof t?(0,_.mN)(t):t,n=e[0].spatialReference,r=(0,f.Ji)(e[0]),o={...s,query:{...i.query,f:"json",sr:n.wkid??JSON.stringify(n),geometries:JSON.stringify((a=e,{geometryType:(0,f.Ji)(a[0]),geometries:a.map((t=>t.toJSON()))}))}},{data:h}=await(0,u.default)(i.path+"/simplify",o);var a;return function(t,e,s){const i=(0,f.q9)(e);return t.map((t=>{const e=i.fromJSON(t);return e.spatialReference=s,e}))}(h.geometries,r,n)}const g=r.Z.getLogger("esri.geometry.support.normalizeUtils");function p(t){return"polygon"===t[0].type}function b(t){return"polyline"===t[0].type}function y(t,e,s){if(e){const e=function(t,e){if(!(t instanceof h.Z||t instanceof o.Z)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw g.error(t),new n.Z(t)}const s=(0,a.x3)(t),i=[];for(const t of s){const s=[];i.push(s),s.push([t[0][0],t[0][1]]);for(let i=0;i<t.length-1;i++){const n=t[i][0],r=t[i][1],o=t[i+1][0],h=t[i+1][1],a=Math.sqrt((o-n)*(o-n)+(h-r)*(h-r)),l=(h-r)/a,c=(o-n)/a,u=a/e;if(u>1){for(let t=1;t<=u-1;t++){const i=t*e,o=c*i+n,h=l*i+r;s.push([o,h])}const t=(a+Math.floor(u-1)*e)/2,i=c*t+n,o=l*t+r;s.push([i,o])}s.push([o,h])}}return function(t){return"polygon"===t.type}(t)?new o.Z({rings:i,spatialReference:t.spatialReference}):new h.Z({paths:i,spatialReference:t.spatialReference})}(t,1e6);t=(0,c.Sx)(e,!0)}return s&&(t=(0,a.Sy)(t,s)),t}function v(t,e,s){if(Array.isArray(t)){const i=t[0];if(i>e){const s=(0,a.XZ)(i,e);t[0]=i+s*(-2*e)}else if(i<s){const e=(0,a.XZ)(i,s);t[0]=i+e*(-2*s)}}else{const i=t.x;if(i>e){const s=(0,a.XZ)(i,e);t=t.clone().offset(s*(-2*e),0)}else if(i<s){const e=(0,a.XZ)(i,s);t=t.clone().offset(e*(-2*s),0)}}return t}function M(t,e){let s=-1;for(let i=0;i<e.cutIndexes.length;i++){const n=e.cutIndexes[i],r=e.geometries[i],o=(0,a.x3)(r);for(let t=0;t<o.length;t++){const e=o[t];e.some((s=>{if(s[0]<180)return!0;{let s=0;for(let t=0;t<e.length;t++){const i=e[t][0];s=i>s?i:s}s=Number(s.toFixed(9));const i=-360*(0,a.XZ)(s,180);for(let s=0;s<e.length;s++){const e=r.getPoint(t,s);r.setPoint(t,s,e.clone().offset(i,0))}return!0}}))}if(n===s){if(p(t))for(const e of(0,a.x3)(r))t[n]=t[n].addRing(e);else if(b(t))for(const e of(0,a.x3)(r))t[n]=t[n].addPath(e)}else s=n,t[n]=r}return t}async function x(t,e,s){if(!Array.isArray(t))return x([t],e);e&&"string"!=typeof e&&g.warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof e?e:e?.url??i.default.geometryServiceUrl;let r,_,p,b,B,E,w,I,S=0;const z=[],A=[];for(const e of t)if(null!=e)if(r||(r=e.spatialReference,_=(0,l.C5)(r),p=r.isWebMercator,E=p?102100:4326,b=a.UZ[E].maxX,B=a.UZ[E].minX,w=a.UZ[E].plus180Line,I=a.UZ[E].minus180Line),_)if("mesh"===e.type)A.push(e);else if("point"===e.type)A.push(v(e.clone(),b,B));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map((t=>v(t,b,B))),A.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,_);A.push(t.rings?new o.Z(t):t)}else if(e.extent){const t=e.extent,s=(0,a.XZ)(t.xmin,B)*(2*b);let i=0===s?e.clone():(0,a.Sy)(e.clone(),s);t.offset(s,0),t.intersects(w)&&t.xmax!==b?(S=t.xmax>S?t.xmax:S,i=y(i,p),z.push(i),A.push("cut")):t.intersects(I)&&t.xmin!==B?(S=t.xmax*(2*b)>S?t.xmax*(2*b):S,i=y(i,p,360),z.push(i),A.push("cut")):A.push(i)}else A.push(e.clone());else A.push(e);else A.push(e);let R=(0,a.XZ)(S,b),C=-90;const O=R,L=new h.Z;for(;R>0;){const t=360*R-180;L.addPath([[t,C],[t,-1*C]]),C*=-1,R--}if(z.length>0&&O>0){const e=M(z,await async function(t,e,s,i){const n=(0,d.en)(t),r=e[0].spatialReference,o={...i,query:{...n.query,f:"json",sr:JSON.stringify(r),target:JSON.stringify({geometryType:(0,f.Ji)(e[0]),geometries:e}),cutter:JSON.stringify(s)}},h=await(0,u.default)(n.path+"/cut",o),{cutIndexes:a,geometries:l=[]}=h.data;return{cutIndexes:a,geometries:l.map((t=>{const e=(0,f.im)(t);return e.spatialReference=r,e}))}}(n,z,L,s)),i=[],r=[];for(let s=0;s<A.length;s++){const n=A[s];if("cut"!==n)r.push(n);else{const n=e.shift(),o=t[s];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&n.rings.length>=o.rings.length?(i.push(n),r.push("simplify")):r.push(p?(0,c.$)(n):n)}}if(!i.length)return r;const o=await m(n,i,s),h=[];for(let t=0;t<r.length;t++){const e=r[t];"simplify"!==e?h.push(e):h.push(p?(0,c.$)(o.shift()):o.shift())}return h}const X=[];for(let t=0;t<A.length;t++){const e=A[t];if("cut"!==e)X.push(e);else{const t=z.shift();X.push(!0===p?(0,c.$)(t):t)}}return X}},73913:(t,e,s)=>{s.d(e,{Sy:()=>a,UZ:()=>o,XZ:()=>h,x3:()=>l});var i=s(58901),n=s(82971),r=s(33955);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.Z.WebMercator}),minus180Line:new i.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.Z({paths:[[[180,-180],[180,180]]],spatialReference:n.Z.WGS84}),minus180Line:new i.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:n.Z.WGS84})}};function h(t,e){return Math.ceil((t-e)/(2*e))}function a(t,e){const s=l(t);for(const t of s)for(const s of t)s[0]+=e;return t}function l(t){return(0,r.oU)(t)?t.rings:t.paths}},37549:(t,e,s)=>{s.d(e,{H:()=>h});var i=s(80442),n=s(24133),r=s(24470);const o={minX:0,minY:0,maxX:0,maxY:0};class h{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new n.Q(9,(0,i.Z)("esri-csp-restrictions")?t=>({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const t=new Array(this._idByBounds.size);let e=0;this._idByBounds.forEach(((s,i)=>{t[e++]=i})),this._indexInvalid=!1,this._index.clear(),this._index.load(t)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((t=>this._idByBounds.has(t)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const t=(0,r.cS)();for(const e of this._boundsById.values())e&&(t[0]=Math.min(e[0],t[0]),t[1]=Math.min(e[1],t[1]),t[2]=Math.max(e[2],t[2]),t[3]=Math.max(e[3],t[3]));return t}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(t){const e=this._boundsById.get(t);this._boundsById.delete(t),e&&(this._idByBounds.delete(e),this._indexInvalid||this._index.remove(e))}forEachInBounds(t,e){this._loadIndex(),function(t,e,s){(function(t){o.minX=t[0],o.minY=t[1],o.maxX=t[2],o.maxY=t[3]})(e),t.search(o,s)}(this._index,t,(t=>e(this._idByBounds.get(t))))}get(t){return this._boundsById.get(t)}has(t){return this._boundsById.has(t)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(t,e){if(!this._indexInvalid){const e=this._boundsById.get(t);e&&(this._index.remove(e),this._idByBounds.delete(e))}this._boundsById.set(t,e),e&&(this._idByBounds.set(e,t),this._indexInvalid||(this._boundsToLoad.push(e),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},57191:(t,e,s)=>{s.d(e,{Z:()=>g});var i=s(20102),n=s(32448),r=s(92604),o=s(60437),h=s(24470),a=s(98732),l=s(37549),c=s(29730),u=s(70272),f=s(5428);const d={getObjectId:t=>t.objectId,getAttributes:t=>t.attributes,getAttribute:(t,e)=>t.attributes[e],cloneWithGeometry:(t,e)=>new u.u_(e,t.attributes,null,t.objectId),getGeometry:t=>t.geometry,getCentroid:(t,e)=>(null==t.centroid&&(t.centroid=(0,c.Y)(new f.Z,t.geometry,e.hasZ,e.hasM)),t.centroid)};var _=s(11490);const m=(0,o.Ue)();class g{constructor(t){this.geometryInfo=t,this._boundsStore=new l.H,this._featuresById=new Map,this._markedIds=new Set,this.events=new n.Z,this.featureAdapter=d}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let t=0;return this._featuresById.forEach((e=>{null!=e.geometry&&e.geometry.coords&&(t+=e.geometry.coords.length)})),{featureCount:this._featuresById.size,vertexCount:t/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(t){if(null==this.fullBounds)return null;const[e,s,i,n]=this.fullBounds;return{xmin:e,ymin:s,xmax:i,ymax:n,spatialReference:(0,_.S2)(t)}}add(t){this._add(t),this._emitChanged()}addMany(t){for(const e of t)this._add(e);this._emitChanged()}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(t){const e=this._featuresById.get(t);return e?(this._remove(e),this._emitChanged(),e):null}removeManyById(t){this._boundsStore.invalidateIndex();for(const e of t){const t=this._featuresById.get(e);t&&this._remove(t)}this._emitChanged()}forEachBounds(t,e){for(const s of t){const t=this._boundsStore.get(s.objectId);t&&e((0,o.JR)(m,t))}}getFeature(t){return this._featuresById.get(t)}has(t){return this._featuresById.has(t)}forEach(t){this._featuresById.forEach((e=>t(e)))}forEachInBounds(t,e){this._boundsStore.forEachInBounds(t,(t=>{e(this._featuresById.get(t))}))}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let t=!1;this._featuresById.forEach(((e,s)=>{this._markedIds.has(s)||(t=!0,this._remove(e))})),this._markedIds.clear(),t&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(t){if(!t)return;const e=t.objectId;if(null==e)return void r.Z.getLogger("esri.layers.graphics.data.FeatureStore").error(new i.Z("featurestore:invalid-feature","feature id is missing",{feature:t}));const s=this._featuresById.get(e);let n;if(this._markedIds.add(e),s?(t.displayId=s.displayId,n=this._boundsStore.get(e),this._boundsStore.delete(e)):null!=this.onFeatureAdd&&this.onFeatureAdd(t),null==t.geometry||!t.geometry.coords||!t.geometry.coords.length)return this._boundsStore.set(e,null),void this._featuresById.set(e,t);n=(0,a.$)(null!=n?n:(0,h.Ue)(),t.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),null!=n&&this._boundsStore.set(e,n),this._featuresById.set(e,t)}_remove(t){null!=this.onFeatureRemove&&this.onFeatureRemove(t);const e=t.objectId;return this._markedIds.delete(e),this._boundsStore.delete(e),this._featuresById.delete(e),t}}},23095:(t,e,s)=>{s.d(e,{O0:()=>u,av:()=>h,b:()=>m,d1:()=>l,og:()=>_});var i=s(8744),n=s(35671);class r{constructor(){this.code=null,this.description=null}}class o{constructor(t){this.error=new r,this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error.description=t}}function h(t){return new o(t)}class a{constructor(t){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=t}}function l(t){return new a(t)}const c=new Set;function u(t,e,s,i=!1,r){c.clear();for(const o in s){const a=t.get(o);if(!a)continue;const l=s[o],u=f(a,l);if(u!==l&&r&&r.push({name:"invalid-value-type",message:"attribute value was converted to match the field type",details:{field:a,originalValue:l,sanitizedValue:u}}),c.add(a.name),a&&(i||a.editable)){const t=(0,n.Qc)(a,u);if(t)return h((0,n.vP)(t,a,u));e[a.name]=u}}for(const e of t?.requiredFields??[])if(!c.has(e.name))return h(`missing required field "${e.name}"`);return null}function f(t,e){let s=e;return"string"==typeof e&&(0,n.H7)(t)?s=parseFloat(e):null!=e&&(0,n.qN)(t)&&"string"!=typeof e&&(s=String(e)),(0,n.Pz)(s)}let d;function _(t,e){if(!t||!(0,i.JY)(e))return t;if("rings"in t||"paths"in t){if(null==d)throw new TypeError("geometry engine not loaded");return d.simplify(e,t)}return t}async function m(t,e){!(0,i.JY)(t)||"esriGeometryPolygon"!==e&&"esriGeometryPolyline"!==e||await async function(){return null==d&&(d=await Promise.all([s.e(5837),s.e(247)]).then(s.bind(s,30247))),d}()}},11282:(t,e,s)=>{s.d(e,{cv:()=>h,en:()=>o,lA:()=>r}),s(68773),s(40330);var i=s(22974),n=s(17452);function r(t,e){return e?{...e,query:{...t??{},...e.query}}:{query:t}}function o(t){return"string"==typeof t?(0,n.mN)(t):(0,i.d9)(t)}function h(t,e,s){const i={};for(const n in t){if("declaredClass"===n)continue;const r=t[n];if(null!=r&&"function"!=typeof r)if(Array.isArray(r)){i[n]=[];for(let t=0;t<r.length;t++)i[n][t]=h(r[t])}else if("object"==typeof r)if(r.toJSON){const t=r.toJSON(s&&s[n]);i[n]=e?t:JSON.stringify(t)}else i[n]=e?r:JSON.stringify(r);else i[n]=r}return i}s(71058)}}]);
|