@arcgis/core 4.23.0-next.20220118 → 4.23.0-next.20220119

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 (27) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/{2d947080a27db6ce0d75.js → 05db312a0ca6bd3f014a.js} +1 -1
  3. package/assets/esri/core/workers/chunks/{7c9d2638693d5f798b23.js → 1b28042fdf3f4dbc8ea5.js} +1 -1
  4. package/assets/esri/core/workers/chunks/43cdff2418325e163420.js +1 -0
  5. package/assets/esri/core/workers/chunks/{bc790b2f964144d10abe.js → 618076e6de605873e433.js} +1 -1
  6. package/assets/esri/core/workers/chunks/{ba6fdaed6c315dc13981.js → 625d2663daa8e0cf64b0.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{85b34d91cf07567d6873.js → 67162b3e2cc1b5dc6818.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{987182b3a578fc7de251.js → 76eef4799f6c5fff7e2d.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{b99e69302ea701fff0ea.js → c8f976e53e232e8da9cc.js} +39 -29
  10. package/assets/esri/core/workers/chunks/{4c301ca9c493b96df746.js → e6df9839b551569fbc62.js} +1 -1
  11. package/chunks/DefaultMaterial.glsl.js +2 -2
  12. package/core/typedArrayUtil.js +1 -1
  13. package/layers/mixins/OperationalLayer.js +1 -1
  14. package/package.json +1 -1
  15. package/rasterRenderers.js +1 -1
  16. package/support/revision.js +1 -1
  17. package/views/2d/engine/vectorTiles/style/VectorTilesRequestManager.js +1 -1
  18. package/views/3d/webgl-engine/core/shaderLibrary/Transform.glsl.js +7 -1
  19. package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +28 -24
  20. package/views/3d/webgl-engine/lib/TextRenderer.js +1 -1
  21. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  22. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  23. package/views/3d/webgl-engine/shaders/RealisticTreeTechnique.js +1 -1
  24. package/views/SceneView.js +1 -1
  25. package/views/support/DefaultsFromMap.js +1 -1
  26. package/widgets/Editor/workflowUtils.js +1 -1
  27. package/assets/esri/core/workers/chunks/89de05207744149fb58b.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8589,3172],{92835:(e,t,r)=>{r.d(t,{Z:()=>m});var n,i=r(43697),s=r(96674),o=r(70586),a=r(35463),l=r(5600),u=(r(67676),r(80442),r(75215),r(71715)),c=r(52011),h=r(30556);let p=n=class extends s.wq{constructor(e){super(e),this.end=null,this.start=null}static get allTime(){return d}static get empty(){return f}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?e.getTime():null}get isAllTime(){return this.equals(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?e.getTime():null}clone(){return new n({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=(0,o.pC)(this.start)?this.start.getTime():this.start,r=(0,o.pC)(this.end)?this.end.getTime():this.end,n=(0,o.pC)(e.start)?e.start.getTime():e.start,i=(0,o.pC)(e.end)?e.end.getTime():e.end;return t===n&&r===i}expandTo(e){if(this.isEmpty||this.isAllTime)return this.clone();const t=(0,o.Po)(this.start,(t=>(0,a.JE)(t,e))),r=(0,o.Po)(this.end,(t=>(0,a.Nm)((0,a.JE)(t,e),1,e)));return new n({start:t,end:r})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return n.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=(0,o.R2)(this.start,-1/0,(e=>e.getTime())),r=(0,o.R2)(this.end,1/0,(e=>e.getTime())),i=(0,o.R2)(e.start,-1/0,(e=>e.getTime())),s=(0,o.R2)(e.end,1/0,(e=>e.getTime()));let a,l;if(i>=t&&i<=r?a=i:t>=i&&t<=s&&(a=t),r>=i&&r<=s?l=r:s>=t&&s<=r&&(l=s),!isNaN(a)&&!isNaN(l)){const e=new n;return e.start=a===-1/0?null:new Date(a),e.end=l===1/0?null:new Date(l),e}return n.empty}offset(e,t){if(this.isEmpty||this.isAllTime)return this.clone();const r=new n,{start:i,end:s}=this;return(0,o.pC)(i)&&(r.start=(0,a.Nm)(i,e,t)),(0,o.pC)(s)&&(r.end=(0,a.Nm)(s,e,t)),r}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return d.clone();const t=(0,o.pC)(this.start)&&(0,o.pC)(e.start)?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=(0,o.pC)(this.end)&&(0,o.pC)(e.end)?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new n({start:t,end:r})}};(0,i._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),(0,i._)([(0,u.r)("end")],p.prototype,"readEnd",null),(0,i._)([(0,h.c)("end")],p.prototype,"writeEnd",null),(0,i._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],p.prototype,"isAllTime",null),(0,i._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],p.prototype,"isEmpty",null),(0,i._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),(0,i._)([(0,u.r)("start")],p.prototype,"readStart",null),(0,i._)([(0,h.c)("start")],p.prototype,"writeStart",null),p=n=(0,i._)([(0,c.j)("esri.TimeExtent")],p);const d=new p,f=new p({start:void 0,end:void 0}),m=p},46851:(e,t,r)=>{r.d(t,{E:()=>n,R:()=>i});const n=1e-6,i=Math.random,s=Math.PI/180,o=180/Math.PI;Object.freeze({__proto__:null,EPSILON:n,RANDOM:i,toRadian:function(e){return e*s},toDegree:function(e){return e*o},equals:function(e,t){return Math.abs(e-t)<=n*Math.max(1,Math.abs(e),Math.abs(t))}})},52138:(e,t,r)=>{r.d(t,{a:()=>l,d:()=>m,e:()=>p,f:()=>d,h:()=>h,i:()=>o,j:()=>c,m:()=>u,p:()=>w,s:()=>s,t:()=>a,u:()=>f,v:()=>M,w:()=>_,y:()=>y});var n=r(65617),i=r(46851);function s(e,t,r,n,i,s,o,a,l,u,c,h,p,d,f,m,y){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e[4]=s,e[5]=o,e[6]=a,e[7]=l,e[8]=u,e[9]=c,e[10]=h,e[11]=p,e[12]=d,e[13]=f,e[14]=m,e[15]=y,e}function o(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function a(e,t){if(e===t){const r=t[1],n=t[2],i=t[3],s=t[6],o=t[7],a=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=s,e[11]=t[14],e[12]=i,e[13]=o,e[14]=a}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function l(e,t){const r=t[0],n=t[1],i=t[2],s=t[3],o=t[4],a=t[5],l=t[6],u=t[7],c=t[8],h=t[9],p=t[10],d=t[11],f=t[12],m=t[13],y=t[14],g=t[15],b=r*a-n*o,v=r*l-i*o,_=r*u-s*o,M=n*l-i*a,w=n*u-s*a,S=i*u-s*l,x=c*m-h*f,E=c*y-p*f,C=c*g-d*f,O=h*y-p*m,I=h*g-d*m,T=p*g-d*y;let L=b*T-v*I+_*O+M*C-w*E+S*x;return L?(L=1/L,e[0]=(a*T-l*I+u*O)*L,e[1]=(i*I-n*T-s*O)*L,e[2]=(m*S-y*w+g*M)*L,e[3]=(p*w-h*S-d*M)*L,e[4]=(l*C-o*T-u*E)*L,e[5]=(r*T-i*C+s*E)*L,e[6]=(y*_-f*S-g*v)*L,e[7]=(c*S-p*_+d*v)*L,e[8]=(o*I-a*C+u*x)*L,e[9]=(n*C-r*I-s*x)*L,e[10]=(f*w-m*_+g*b)*L,e[11]=(h*_-c*w-d*b)*L,e[12]=(a*E-o*O-l*x)*L,e[13]=(r*O-n*E+i*x)*L,e[14]=(m*v-f*M-y*b)*L,e[15]=(c*M-h*v+p*b)*L,e):null}function u(e,t,r){const n=t[0],i=t[1],s=t[2],o=t[3],a=t[4],l=t[5],u=t[6],c=t[7],h=t[8],p=t[9],d=t[10],f=t[11],m=t[12],y=t[13],g=t[14],b=t[15];let v=r[0],_=r[1],M=r[2],w=r[3];return e[0]=v*n+_*a+M*h+w*m,e[1]=v*i+_*l+M*p+w*y,e[2]=v*s+_*u+M*d+w*g,e[3]=v*o+_*c+M*f+w*b,v=r[4],_=r[5],M=r[6],w=r[7],e[4]=v*n+_*a+M*h+w*m,e[5]=v*i+_*l+M*p+w*y,e[6]=v*s+_*u+M*d+w*g,e[7]=v*o+_*c+M*f+w*b,v=r[8],_=r[9],M=r[10],w=r[11],e[8]=v*n+_*a+M*h+w*m,e[9]=v*i+_*l+M*p+w*y,e[10]=v*s+_*u+M*d+w*g,e[11]=v*o+_*c+M*f+w*b,v=r[12],_=r[13],M=r[14],w=r[15],e[12]=v*n+_*a+M*h+w*m,e[13]=v*i+_*l+M*p+w*y,e[14]=v*s+_*u+M*d+w*g,e[15]=v*o+_*c+M*f+w*b,e}function c(e,t,r){const n=r[0],i=r[1],s=r[2];let o,a,l,u,c,h,p,d,f,m,y,g;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*s+t[12],e[13]=t[1]*n+t[5]*i+t[9]*s+t[13],e[14]=t[2]*n+t[6]*i+t[10]*s+t[14],e[15]=t[3]*n+t[7]*i+t[11]*s+t[15]):(o=t[0],a=t[1],l=t[2],u=t[3],c=t[4],h=t[5],p=t[6],d=t[7],f=t[8],m=t[9],y=t[10],g=t[11],e[0]=o,e[1]=a,e[2]=l,e[3]=u,e[4]=c,e[5]=h,e[6]=p,e[7]=d,e[8]=f,e[9]=m,e[10]=y,e[11]=g,e[12]=o*n+c*i+f*s+t[12],e[13]=a*n+h*i+m*s+t[13],e[14]=l*n+p*i+y*s+t[14],e[15]=u*n+d*i+g*s+t[15]),e}function h(e,t,r){const n=r[0],i=r[1],s=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*s,e[9]=t[9]*s,e[10]=t[10]*s,e[11]=t[11]*s,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function p(e,t,r,n){let s,o,a,l,u,c,h,p,d,f,m,y,g,b,v,_,M,w,S,x,E,C,O,I,T=n[0],L=n[1],A=n[2],R=Math.sqrt(T*T+L*L+A*A);return R<i.E?null:(R=1/R,T*=R,L*=R,A*=R,s=Math.sin(r),o=Math.cos(r),a=1-o,l=t[0],u=t[1],c=t[2],h=t[3],p=t[4],d=t[5],f=t[6],m=t[7],y=t[8],g=t[9],b=t[10],v=t[11],_=T*T*a+o,M=L*T*a+A*s,w=A*T*a-L*s,S=T*L*a-A*s,x=L*L*a+o,E=A*L*a+T*s,C=T*A*a+L*s,O=L*A*a-T*s,I=A*A*a+o,e[0]=l*_+p*M+y*w,e[1]=u*_+d*M+g*w,e[2]=c*_+f*M+b*w,e[3]=h*_+m*M+v*w,e[4]=l*S+p*x+y*E,e[5]=u*S+d*x+g*E,e[6]=c*S+f*x+b*E,e[7]=h*S+m*x+v*E,e[8]=l*C+p*O+y*I,e[9]=u*C+d*O+g*I,e[10]=c*C+f*O+b*I,e[11]=h*C+m*O+v*I,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}function d(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function f(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function m(e,t,r){let n,s,o,a=r[0],l=r[1],u=r[2],c=Math.sqrt(a*a+l*l+u*u);return c<i.E?null:(c=1/c,a*=c,l*=c,u*=c,n=Math.sin(t),s=Math.cos(t),o=1-s,e[0]=a*a*o+s,e[1]=l*a*o+u*n,e[2]=u*a*o-l*n,e[3]=0,e[4]=a*l*o-u*n,e[5]=l*l*o+s,e[6]=u*l*o+a*n,e[7]=0,e[8]=a*u*o+l*n,e[9]=l*u*o-a*n,e[10]=u*u*o+s,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}function y(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function g(e,t,r){const n=t[0],i=t[1],s=t[2],o=t[3],a=n+n,l=i+i,u=s+s,c=n*a,h=n*l,p=n*u,d=i*l,f=i*u,m=s*u,y=o*a,g=o*l,b=o*u;return e[0]=1-(d+m),e[1]=h+b,e[2]=p-g,e[3]=0,e[4]=h-b,e[5]=1-(c+m),e[6]=f+y,e[7]=0,e[8]=p+g,e[9]=f-y,e[10]=1-(c+d),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}const b=(0,n.c)();function v(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}function _(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function M(e,t){if(e===t)return!0;const r=e[0],n=e[1],s=e[2],o=e[3],a=e[4],l=e[5],u=e[6],c=e[7],h=e[8],p=e[9],d=e[10],f=e[11],m=e[12],y=e[13],g=e[14],b=e[15],v=t[0],_=t[1],M=t[2],w=t[3],S=t[4],x=t[5],E=t[6],C=t[7],O=t[8],I=t[9],T=t[10],L=t[11],A=t[12],R=t[13],j=t[14],q=t[15];return Math.abs(r-v)<=i.E*Math.max(1,Math.abs(r),Math.abs(v))&&Math.abs(n-_)<=i.E*Math.max(1,Math.abs(n),Math.abs(_))&&Math.abs(s-M)<=i.E*Math.max(1,Math.abs(s),Math.abs(M))&&Math.abs(o-w)<=i.E*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(a-S)<=i.E*Math.max(1,Math.abs(a),Math.abs(S))&&Math.abs(l-x)<=i.E*Math.max(1,Math.abs(l),Math.abs(x))&&Math.abs(u-E)<=i.E*Math.max(1,Math.abs(u),Math.abs(E))&&Math.abs(c-C)<=i.E*Math.max(1,Math.abs(c),Math.abs(C))&&Math.abs(h-O)<=i.E*Math.max(1,Math.abs(h),Math.abs(O))&&Math.abs(p-I)<=i.E*Math.max(1,Math.abs(p),Math.abs(I))&&Math.abs(d-T)<=i.E*Math.max(1,Math.abs(d),Math.abs(T))&&Math.abs(f-L)<=i.E*Math.max(1,Math.abs(f),Math.abs(L))&&Math.abs(m-A)<=i.E*Math.max(1,Math.abs(m),Math.abs(A))&&Math.abs(y-R)<=i.E*Math.max(1,Math.abs(y),Math.abs(R))&&Math.abs(g-j)<=i.E*Math.max(1,Math.abs(g),Math.abs(j))&&Math.abs(b-q)<=i.E*Math.max(1,Math.abs(b),Math.abs(q))}function w(e){const t=i.E,r=e[0],n=e[1],s=e[2],o=e[4],a=e[5],l=e[6],u=e[8],c=e[9],h=e[10];return Math.abs(1-(r*r+o*o+u*u))<=t&&Math.abs(1-(n*n+a*a+c*c))<=t&&Math.abs(1-(s*s+l*l+h*h))<=t}const S=u,x=v;Object.freeze({__proto__:null,copy:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},set:s,identity:o,transpose:a,invert:l,adjoint:function(e,t){const r=t[0],n=t[1],i=t[2],s=t[3],o=t[4],a=t[5],l=t[6],u=t[7],c=t[8],h=t[9],p=t[10],d=t[11],f=t[12],m=t[13],y=t[14],g=t[15];return e[0]=a*(p*g-d*y)-h*(l*g-u*y)+m*(l*d-u*p),e[1]=-(n*(p*g-d*y)-h*(i*g-s*y)+m*(i*d-s*p)),e[2]=n*(l*g-u*y)-a*(i*g-s*y)+m*(i*u-s*l),e[3]=-(n*(l*d-u*p)-a*(i*d-s*p)+h*(i*u-s*l)),e[4]=-(o*(p*g-d*y)-c*(l*g-u*y)+f*(l*d-u*p)),e[5]=r*(p*g-d*y)-c*(i*g-s*y)+f*(i*d-s*p),e[6]=-(r*(l*g-u*y)-o*(i*g-s*y)+f*(i*u-s*l)),e[7]=r*(l*d-u*p)-o*(i*d-s*p)+c*(i*u-s*l),e[8]=o*(h*g-d*m)-c*(a*g-u*m)+f*(a*d-u*h),e[9]=-(r*(h*g-d*m)-c*(n*g-s*m)+f*(n*d-s*h)),e[10]=r*(a*g-u*m)-o*(n*g-s*m)+f*(n*u-s*a),e[11]=-(r*(a*d-u*h)-o*(n*d-s*h)+c*(n*u-s*a)),e[12]=-(o*(h*y-p*m)-c*(a*y-l*m)+f*(a*p-l*h)),e[13]=r*(h*y-p*m)-c*(n*y-i*m)+f*(n*p-i*h),e[14]=-(r*(a*y-l*m)-o*(n*y-i*m)+f*(n*l-i*a)),e[15]=r*(a*p-l*h)-o*(n*p-i*h)+c*(n*l-i*a),e},determinant:function(e){const t=e[0],r=e[1],n=e[2],i=e[3],s=e[4],o=e[5],a=e[6],l=e[7],u=e[8],c=e[9],h=e[10],p=e[11],d=e[12],f=e[13],m=e[14],y=e[15];return(t*o-r*s)*(h*y-p*m)-(t*a-n*s)*(c*y-p*f)+(t*l-i*s)*(c*m-h*f)+(r*a-n*o)*(u*y-p*d)-(r*l-i*o)*(u*m-h*d)+(n*l-i*a)*(u*f-c*d)},multiply:u,translate:c,scale:h,rotate:p,rotateX:function(e,t,r){const n=Math.sin(r),i=Math.cos(r),s=t[4],o=t[5],a=t[6],l=t[7],u=t[8],c=t[9],h=t[10],p=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=s*i+u*n,e[5]=o*i+c*n,e[6]=a*i+h*n,e[7]=l*i+p*n,e[8]=u*i-s*n,e[9]=c*i-o*n,e[10]=h*i-a*n,e[11]=p*i-l*n,e},rotateY:function(e,t,r){const n=Math.sin(r),i=Math.cos(r),s=t[0],o=t[1],a=t[2],l=t[3],u=t[8],c=t[9],h=t[10],p=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*i-u*n,e[1]=o*i-c*n,e[2]=a*i-h*n,e[3]=l*i-p*n,e[8]=s*n+u*i,e[9]=o*n+c*i,e[10]=a*n+h*i,e[11]=l*n+p*i,e},rotateZ:function(e,t,r){const n=Math.sin(r),i=Math.cos(r),s=t[0],o=t[1],a=t[2],l=t[3],u=t[4],c=t[5],h=t[6],p=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*i+u*n,e[1]=o*i+c*n,e[2]=a*i+h*n,e[3]=l*i+p*n,e[4]=u*i-s*n,e[5]=c*i-o*n,e[6]=h*i-a*n,e[7]=p*i-l*n,e},fromTranslation:d,fromScaling:f,fromRotation:m,fromXRotation:y,fromYRotation:function(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:function(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromRotationTranslation:g,fromQuat2:function(e,t){const r=b,n=-t[0],i=-t[1],s=-t[2],o=t[3],a=t[4],l=t[5],u=t[6],c=t[7],h=n*n+i*i+s*s+o*o;return h>0?(r[0]=2*(a*o+c*n+l*s-u*i)/h,r[1]=2*(l*o+c*i+u*n-a*s)/h,r[2]=2*(u*o+c*s+a*i-l*n)/h):(r[0]=2*(a*o+c*n+l*s-u*i),r[1]=2*(l*o+c*i+u*n-a*s),r[2]=2*(u*o+c*s+a*i-l*n)),g(e,t,r),e},getTranslation:function(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e},getScaling:function(e,t){const r=t[0],n=t[1],i=t[2],s=t[4],o=t[5],a=t[6],l=t[8],u=t[9],c=t[10];return e[0]=Math.sqrt(r*r+n*n+i*i),e[1]=Math.sqrt(s*s+o*o+a*a),e[2]=Math.sqrt(l*l+u*u+c*c),e},getRotation:function(e,t){const r=t[0]+t[5]+t[10];let n=0;return r>0?(n=2*Math.sqrt(r+1),e[3]=.25*n,e[0]=(t[6]-t[9])/n,e[1]=(t[8]-t[2])/n,e[2]=(t[1]-t[4])/n):t[0]>t[5]&&t[0]>t[10]?(n=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/n,e[0]=.25*n,e[1]=(t[1]+t[4])/n,e[2]=(t[8]+t[2])/n):t[5]>t[10]?(n=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/n,e[0]=(t[1]+t[4])/n,e[1]=.25*n,e[2]=(t[6]+t[9])/n):(n=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/n,e[0]=(t[8]+t[2])/n,e[1]=(t[6]+t[9])/n,e[2]=.25*n),e},fromRotationTranslationScale:function(e,t,r,n){const i=t[0],s=t[1],o=t[2],a=t[3],l=i+i,u=s+s,c=o+o,h=i*l,p=i*u,d=i*c,f=s*u,m=s*c,y=o*c,g=a*l,b=a*u,v=a*c,_=n[0],M=n[1],w=n[2];return e[0]=(1-(f+y))*_,e[1]=(p+v)*_,e[2]=(d-b)*_,e[3]=0,e[4]=(p-v)*M,e[5]=(1-(h+y))*M,e[6]=(m+g)*M,e[7]=0,e[8]=(d+b)*w,e[9]=(m-g)*w,e[10]=(1-(h+f))*w,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e},fromRotationTranslationScaleOrigin:function(e,t,r,n,i){const s=t[0],o=t[1],a=t[2],l=t[3],u=s+s,c=o+o,h=a+a,p=s*u,d=s*c,f=s*h,m=o*c,y=o*h,g=a*h,b=l*u,v=l*c,_=l*h,M=n[0],w=n[1],S=n[2],x=i[0],E=i[1],C=i[2],O=(1-(m+g))*M,I=(d+_)*M,T=(f-v)*M,L=(d-_)*w,A=(1-(p+g))*w,R=(y+b)*w,j=(f+v)*S,q=(y-b)*S,D=(1-(p+m))*S;return e[0]=O,e[1]=I,e[2]=T,e[3]=0,e[4]=L,e[5]=A,e[6]=R,e[7]=0,e[8]=j,e[9]=q,e[10]=D,e[11]=0,e[12]=r[0]+x-(O*x+L*E+j*C),e[13]=r[1]+E-(I*x+A*E+q*C),e[14]=r[2]+C-(T*x+R*E+D*C),e[15]=1,e},fromQuat:function(e,t){const r=t[0],n=t[1],i=t[2],s=t[3],o=r+r,a=n+n,l=i+i,u=r*o,c=n*o,h=n*a,p=i*o,d=i*a,f=i*l,m=s*o,y=s*a,g=s*l;return e[0]=1-h-f,e[1]=c+g,e[2]=p-y,e[3]=0,e[4]=c-g,e[5]=1-u-f,e[6]=d+m,e[7]=0,e[8]=p+y,e[9]=d-m,e[10]=1-u-h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},frustum:function(e,t,r,n,i,s,o){const a=1/(r-t),l=1/(i-n),u=1/(s-o);return e[0]=2*s*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*s*l,e[6]=0,e[7]=0,e[8]=(r+t)*a,e[9]=(i+n)*l,e[10]=(o+s)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*s*2*u,e[15]=0,e},perspective:function(e,t,r,n,i){const s=1/Math.tan(t/2);let o;return e[0]=s/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=i&&i!==1/0?(o=1/(n-i),e[10]=(i+n)*o,e[14]=2*i*n*o):(e[10]=-1,e[14]=-2*n),e},perspectiveFromFieldOfView:function(e,t,r,n){const i=Math.tan(t.upDegrees*Math.PI/180),s=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),a=Math.tan(t.rightDegrees*Math.PI/180),l=2/(o+a),u=2/(i+s);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-(o-a)*l*.5,e[9]=(i-s)*u*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e},ortho:function(e,t,r,n,i,s,o){const a=1/(t-r),l=1/(n-i),u=1/(s-o);return e[0]=-2*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*a,e[13]=(i+n)*l,e[14]=(o+s)*u,e[15]=1,e},lookAt:function(e,t,r,n){let s,a,l,u,c,h,p,d,f,m;const y=t[0],g=t[1],b=t[2],v=n[0],_=n[1],M=n[2],w=r[0],S=r[1],x=r[2];return Math.abs(y-w)<i.E&&Math.abs(g-S)<i.E&&Math.abs(b-x)<i.E?o(e):(p=y-w,d=g-S,f=b-x,m=1/Math.sqrt(p*p+d*d+f*f),p*=m,d*=m,f*=m,s=_*f-M*d,a=M*p-v*f,l=v*d-_*p,m=Math.sqrt(s*s+a*a+l*l),m?(m=1/m,s*=m,a*=m,l*=m):(s=0,a=0,l=0),u=d*l-f*a,c=f*s-p*l,h=p*a-d*s,m=Math.sqrt(u*u+c*c+h*h),m?(m=1/m,u*=m,c*=m,h*=m):(u=0,c=0,h=0),e[0]=s,e[1]=u,e[2]=p,e[3]=0,e[4]=a,e[5]=c,e[6]=d,e[7]=0,e[8]=l,e[9]=h,e[10]=f,e[11]=0,e[12]=-(s*y+a*g+l*b),e[13]=-(u*y+c*g+h*b),e[14]=-(p*y+d*g+f*b),e[15]=1,e)},targetTo:function(e,t,r,n){const i=t[0],s=t[1],o=t[2],a=n[0],l=n[1],u=n[2];let c=i-r[0],h=s-r[1],p=o-r[2],d=c*c+h*h+p*p;d>0&&(d=1/Math.sqrt(d),c*=d,h*=d,p*=d);let f=l*p-u*h,m=u*c-a*p,y=a*h-l*c;return d=f*f+m*m+y*y,d>0&&(d=1/Math.sqrt(d),f*=d,m*=d,y*=d),e[0]=f,e[1]=m,e[2]=y,e[3]=0,e[4]=h*y-p*m,e[5]=p*f-c*y,e[6]=c*m-h*f,e[7]=0,e[8]=c,e[9]=h,e[10]=p,e[11]=0,e[12]=i,e[13]=s,e[14]=o,e[15]=1,e},str:function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)},add:function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e},subtract:v,multiplyScalar:function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e},multiplyScalarAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e[4]=t[4]+r[4]*n,e[5]=t[5]+r[5]*n,e[6]=t[6]+r[6]*n,e[7]=t[7]+r[7]*n,e[8]=t[8]+r[8]*n,e[9]=t[9]+r[9]*n,e[10]=t[10]+r[10]*n,e[11]=t[11]+r[11]*n,e[12]=t[12]+r[12]*n,e[13]=t[13]+r[13]*n,e[14]=t[14]+r[14]*n,e[15]=t[15]+r[15]*n,e},exactEquals:_,equals:M,isOrthoNormal:w,mul:S,sub:x})},25929:(e,t,r)=>{r.d(t,{M:()=>d,f:()=>s,i:()=>h,p:()=>m,r:()=>a,t:()=>o,w:()=>l});var n=r(70586),i=r(17452);function s(e,t){const r=t&&t.url&&t.url.path;if(e&&r&&(e=(0,i.hF)(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const r=(0,i.PF)(e,t.portalItem.itemUrl);c.test(r)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(r).path)}return p(e,t&&t.portal)}function o(e,t,r=d.YES){if(!e)return e;!(0,i.YP)(e)&&t&&t.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let n=(0,i.hF)(e);if(t){const r=t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.rootPath||t.url&&t.url.path;if(r){const s=p(r,t.portal);n=(0,i.PF)(p(n,t.portal),s,s),n!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(n)}}return n=function(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?(0,i.Ie)(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}(n,t&&t.portal),(0,i.YP)(n)&&(n=(0,i.Fv)(n)),null!=t&&t.resources&&null!=t&&t.portalItem&&!(0,i.YP)(n)&&!(0,i.HK)(n)&&r===d.YES&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(n)}),n}function a(e,t,r){return s(e,r)}function l(e,t,r,n){const i=o(e,n);void 0!==i&&(t[r]=i)}const u=/\/items\/([^\/]+)\/resources\//,c=/^\.\/resources\//;function h(e){const t=(0,n.pC)(e)?e.match(u):null;return(0,n.pC)(t)?t[1]:null}function p(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const r=`${t.urlKey}.${t.customBaseUrl}`,n=(0,i.TI)();return(0,i.D6)(n,`${n.scheme}://${r}`)?(0,i.Ie)(e,t.portalHostname,r):(0,i.Ie)(e,r,t.portalHostname)}var d,f;(f=d||(d={}))[f.YES=0]="YES",f[f.NO=1]="NO";const m=Object.freeze({__proto__:null,fromJSON:s,toJSON:o,read:a,write:l,itemIdFromResourceUrl:h,get MarkKeep(){return d}})},17896:(e,t,r)=>{r.d(t,{E:()=>h,a:()=>p,b:()=>l,c:()=>b,d:()=>g,e:()=>v,f:()=>u,g:()=>o,h:()=>f,i:()=>d,k:()=>E,l:()=>s,m:()=>_,n:()=>y,p:()=>m,q:()=>w,r:()=>C,s:()=>a,t:()=>M,u:()=>R});var n=r(65617),i=r(46851);function s(e){const t=e[0],r=e[1],n=e[2];return Math.sqrt(t*t+r*r+n*n)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,r,n){return e[0]=t,e[1]=r,e[2]=n,e}function l(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function u(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function c(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function h(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function p(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function d(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(r*r+n*n+i*i)}function f(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return r*r+n*n+i*i}function m(e){const t=e[0],r=e[1],n=e[2];return t*t+r*r+n*n}function y(e,t){const r=t[0],n=t[1],i=t[2];let s=r*r+n*n+i*i;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function g(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function b(e,t,r){const n=t[0],i=t[1],s=t[2],o=r[0],a=r[1],l=r[2];return e[0]=i*l-s*a,e[1]=s*o-n*l,e[2]=n*a-i*o,e}function v(e,t,r,n){const i=t[0],s=t[1],o=t[2];return e[0]=i+n*(r[0]-i),e[1]=s+n*(r[1]-s),e[2]=o+n*(r[2]-o),e}function _(e,t,r){const n=t[0],i=t[1],s=t[2];return e[0]=r[0]*n+r[4]*i+r[8]*s+r[12],e[1]=r[1]*n+r[5]*i+r[9]*s+r[13],e[2]=r[2]*n+r[6]*i+r[10]*s+r[14],e}function M(e,t,r){const n=t[0],i=t[1],s=t[2];return e[0]=n*r[0]+i*r[3]+s*r[6],e[1]=n*r[1]+i*r[4]+s*r[7],e[2]=n*r[2]+i*r[5]+s*r[8],e}function w(e,t,r){const n=r[0],i=r[1],s=r[2],o=r[3],a=t[0],l=t[1],u=t[2];let c=i*u-s*l,h=s*a-n*u,p=n*l-i*a,d=i*p-s*h,f=s*c-n*p,m=n*h-i*c;const y=2*o;return c*=y,h*=y,p*=y,d*=2,f*=2,m*=2,e[0]=a+c+d,e[1]=l+h+f,e[2]=u+p+m,e}const S=(0,n.c)(),x=(0,n.c)();function E(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function C(e,t,r){const n=r[0]-t[0],i=r[1]-t[1],s=r[2]-t[2];let o=n*n+i*i+s*s;return o>0?(o=1/Math.sqrt(o),e[0]=n*o,e[1]=i*o,e[2]=s*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const O=u,I=c,T=h,L=d,A=f,R=s,j=m;Object.freeze({__proto__:null,length:s,copy:o,set:a,add:l,subtract:u,multiply:c,divide:h,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},min:function(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e},max:function(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:p,scaleAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e},distance:d,squaredDistance:f,squaredLength:m,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e},normalize:y,dot:g,cross:b,lerp:v,hermite:function(e,t,r,n,i,s){const o=s*s,a=o*(2*s-3)+1,l=o*(s-2)+s,u=o*(s-1),c=o*(3-2*s);return e[0]=t[0]*a+r[0]*l+n[0]*u+i[0]*c,e[1]=t[1]*a+r[1]*l+n[1]*u+i[1]*c,e[2]=t[2]*a+r[2]*l+n[2]*u+i[2]*c,e},bezier:function(e,t,r,n,i,s){const o=1-s,a=o*o,l=s*s,u=a*o,c=3*s*a,h=3*l*o,p=l*s;return e[0]=t[0]*u+r[0]*c+n[0]*h+i[0]*p,e[1]=t[1]*u+r[1]*c+n[1]*h+i[1]*p,e[2]=t[2]*u+r[2]*c+n[2]*h+i[2]*p,e},random:function(e,t){t=t||1;const r=2*(0,i.R)()*Math.PI,n=2*(0,i.R)()-1,s=Math.sqrt(1-n*n)*t;return e[0]=Math.cos(r)*s,e[1]=Math.sin(r)*s,e[2]=n*t,e},transformMat4:_,transformMat3:M,transformQuat:w,rotateX:function(e,t,r,n){const i=[],s=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],s[0]=i[0],s[1]=i[1]*Math.cos(n)-i[2]*Math.sin(n),s[2]=i[1]*Math.sin(n)+i[2]*Math.cos(n),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateY:function(e,t,r,n){const i=[],s=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],s[0]=i[2]*Math.sin(n)+i[0]*Math.cos(n),s[1]=i[1],s[2]=i[2]*Math.cos(n)-i[0]*Math.sin(n),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateZ:function(e,t,r,n){const i=[],s=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],s[0]=i[0]*Math.cos(n)-i[1]*Math.sin(n),s[1]=i[0]*Math.sin(n)+i[1]*Math.cos(n),s[2]=i[2],e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},angle:function(e,t){o(S,e),o(x,t),y(S,S),y(x,x);const r=g(S,x);return r>1?0:r<-1?Math.PI:Math.acos(r)},str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},exactEquals:E,equals:function(e,t){if(e===t)return!0;const r=e[0],n=e[1],s=e[2],o=t[0],a=t[1],l=t[2];return Math.abs(r-o)<=i.E*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(n-a)<=i.E*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(s-l)<=i.E*Math.max(1,Math.abs(s),Math.abs(l))},direction:C,sub:O,mul:I,div:T,dist:L,sqrDist:A,len:R,sqrLen:j})},65617:(e,t,r)=>{function n(){return[0,0,0]}function i(e){return[e[0],e[1],e[2]]}function s(e,t,r){return[e,t,r]}function o(e){const t=[0,0,0],r=Math.min(3,e.length);for(let n=0;n<r;++n)t[n]=e[n];return t}function a(e,t){return new Float64Array(e,t,3)}function l(){return s(1,1,1)}function u(){return s(1,0,0)}function c(){return s(0,1,0)}function h(){return s(0,0,1)}r.d(t,{O:()=>d,Z:()=>p,a:()=>i,b:()=>a,c:()=>n,d:()=>o,f:()=>s});const p=[0,0,0],d=l(),f=u(),m=c(),y=h();Object.freeze({__proto__:null,create:n,clone:i,fromValues:s,fromArray:o,createView:a,zeros:function(){return[0,0,0]},ones:l,unitX:u,unitY:c,unitZ:h,ZEROS:p,ONES:d,UNIT_X:f,UNIT_Y:m,UNIT_Z:y})},98766:(e,t,r)=>{r.d(t,{a:()=>o,b:()=>c,c:()=>i,d:()=>y,e:()=>d,f:()=>f,g:()=>b,h:()=>v,l:()=>g,n:()=>m,s:()=>s});var n=r(46851);function i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function s(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function o(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e}function a(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e}function l(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function u(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e}function c(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function h(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],s=t[3]-e[3];return Math.sqrt(r*r+n*n+i*i+s*s)}function p(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],s=t[3]-e[3];return r*r+n*n+i*i+s*s}function d(e){const t=e[0],r=e[1],n=e[2],i=e[3];return Math.sqrt(t*t+r*r+n*n+i*i)}function f(e){const t=e[0],r=e[1],n=e[2],i=e[3];return t*t+r*r+n*n+i*i}function m(e,t){const r=t[0],n=t[1],i=t[2],s=t[3];let o=r*r+n*n+i*i+s*s;return o>0&&(o=1/Math.sqrt(o),e[0]=r*o,e[1]=n*o,e[2]=i*o,e[3]=s*o),e}function y(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function g(e,t,r,n){const i=t[0],s=t[1],o=t[2],a=t[3];return e[0]=i+n*(r[0]-i),e[1]=s+n*(r[1]-s),e[2]=o+n*(r[2]-o),e[3]=a+n*(r[3]-a),e}function b(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function v(e,t){const r=e[0],i=e[1],s=e[2],o=e[3],a=t[0],l=t[1],u=t[2],c=t[3];return Math.abs(r-a)<=n.E*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-l)<=n.E*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(s-u)<=n.E*Math.max(1,Math.abs(s),Math.abs(u))&&Math.abs(o-c)<=n.E*Math.max(1,Math.abs(o),Math.abs(c))}const _=a,M=l,w=u,S=h,x=p,E=d,C=f;Object.freeze({__proto__:null,copy:i,set:s,add:o,subtract:a,multiply:l,divide:u,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},min:function(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e},max:function(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e},scale:c,scaleAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e},distance:h,squaredDistance:p,length:d,squaredLength:f,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},normalize:m,dot:y,lerp:g,random:function(e,t){let r,i,s,o,a,l;t=t||1;do{r=2*(0,n.R)()-1,i=2*(0,n.R)()-1,a=r*r+i*i}while(a>=1);do{s=2*(0,n.R)()-1,o=2*(0,n.R)()-1,l=s*s+o*o}while(l>=1);const u=Math.sqrt((1-a)/l);return e[0]=t*r,e[1]=t*i,e[2]=t*s*u,e[3]=t*o*u,e},transformMat4:function(e,t,r){const n=t[0],i=t[1],s=t[2],o=t[3];return e[0]=r[0]*n+r[4]*i+r[8]*s+r[12]*o,e[1]=r[1]*n+r[5]*i+r[9]*s+r[13]*o,e[2]=r[2]*n+r[6]*i+r[10]*s+r[14]*o,e[3]=r[3]*n+r[7]*i+r[11]*s+r[15]*o,e},transformQuat:function(e,t,r){const n=t[0],i=t[1],s=t[2],o=r[0],a=r[1],l=r[2],u=r[3],c=u*n+a*s-l*i,h=u*i+l*n-o*s,p=u*s+o*i-a*n,d=-o*n-a*i-l*s;return e[0]=c*u+d*-o+h*-l-p*-a,e[1]=h*u+d*-a+p*-o-c*-l,e[2]=p*u+d*-l+c*-a-h*-o,e[3]=t[3],e},str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},exactEquals:b,equals:v,sub:_,mul:M,div:w,dist:S,sqrDist:x,len:E,sqrLen:C})},80539:(e,t,r)=>{r.d(t,{Z:()=>A});var n,i=r(43697),s=r(3894),o=r(32448),a=r(22974),l=r(70586),u=r(71143);!function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"}(n||(n={}));var c,h=r(1654),p=r(5600),d=r(75215),f=r(52421),m=r(52011),y=r(58971),g=r(39020);class b{constructor(){this._observers=[]}observe(e){return this._observers.includes(e)||this._observers.push(e),new g.X(this._observers,e)}notify(){const e=this._observers.slice();for(let t=0;t<e.length;++t){const r=e[t];r.onInvalidated(),r.onCommitted()}}}const v=new u.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(e){this.defaultPrevented=!1,this.item=e}},void 0,(e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1})),_=()=>{};function M(e){return e?e instanceof L?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function w(e){if(e&&e.length)return e[0]}function S(e,t,r,n){const i=Math.min(e.length-r,t.length-n);let s=0;for(;s<i&&e[r+s]===t[n+s];)s++;return s}function x(e,t,r,n){t&&t.forEach(((t,i,s)=>{e.push(t),x(e,r.call(n,t,i,s),r,n)}))}const E=new Set,C=new Set,O=new Set,I=new Map;let T=0,L=c=class extends o.Z.EventedAccessor{constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._timer=null,this._observable=new b,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:T++})}static isCollection(e){return null!=e&&e instanceof c}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof c?{items:e}:e:{}}destroy(){this.removeAll()}*[Symbol.iterator](){yield*this.items}get items(){return(0,y.it)(this._observable),this._items}set items(e){this._emitBeforeChanges(n.ADD)||(this._splice(0,this.length,M(e)),this._emitAfterChanges(n.ADD))}hasEventListener(e){return"change"===e?this._chgListeners.length>0:this._emitter.hasEventListener(e)}on(e,t){if("change"===e){const e=this._chgListeners,r={removed:!1,callback:t};return e.push(r),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),{remove(){this.remove=_,r.removed=!0,e.splice(e.indexOf(r),1)}}}return this._emitter.on(e,t)}once(e,t){const r=this.on(e,t);return{remove(){r.remove()}}}add(e,t){if((0,y.it)(this._observable),this._emitBeforeChanges(n.ADD))return this;const r=this.getNextIndex(null!=t?t:null);return this._splice(r,0,[e]),this._emitAfterChanges(n.ADD),this}addMany(e,t=this._items.length){if((0,y.it)(this._observable),!e||!e.length)return this;if(this._emitBeforeChanges(n.ADD))return this;const r=this.getNextIndex(t);return this._splice(r,0,M(e)),this._emitAfterChanges(n.ADD),this}removeAll(){if((0,y.it)(this._observable),!this.length||this._emitBeforeChanges(n.REMOVE))return[];const e=this._splice(0,this.length)||[];return this._emitAfterChanges(n.REMOVE),e}clone(){return(0,y.it)(this._observable),this._createNewInstance({items:this._items.map(a.d9)})}concat(...e){(0,y.it)(this._observable);const t=e.map(M);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,y.it)(this._observable),!this.length||this._emitBeforeChanges(n.REMOVE))return;const r=(0,l.j0)(this._splice(0,this.length)),i=r.length;for(let n=0;n<i;n++)e.call(t,r[n],n,r);this._emitAfterChanges(n.REMOVE)}every(e,t){return(0,y.it)(this._observable),this._items.every(e,t)}filter(e,t){let r;return(0,y.it)(this._observable),r=2===arguments.length?this._items.filter(e,t):this._items.filter(e),this._createNewInstance({items:r})}find(e,t){return(0,y.it)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,y.it)(this._observable),this._items.findIndex(e,t)}flatten(e,t){(0,y.it)(this._observable);const r=[];return x(r,this,e,t),new c(r)}forEach(e,t){return(0,y.it)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,y.it)(this._observable),this._items[e]}getNextIndex(e){(0,y.it)(this._observable);const t=this.length;return(e=null==e?t:e)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,y.it)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,y.it)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,y.it)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,y.it)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,y.it)(this._observable);const r=this._items.map(e,t);return new c({items:r})}reorder(e,t=this.length-1){(0,y.it)(this._observable);const r=this.indexOf(e);if(-1!==r){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(n.MOVE))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(n.MOVE)}return e}}pop(){if((0,y.it)(this._observable),!this.length||this._emitBeforeChanges(n.REMOVE))return;const e=w(this._splice(this.length-1,1));return this._emitAfterChanges(n.REMOVE),e}push(...e){return(0,y.it)(this._observable),this._emitBeforeChanges(n.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(n.ADD)),this.length}reduce(e,t){(0,y.it)(this._observable);const r=this._items;return 2===arguments.length?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){(0,y.it)(this._observable);const r=this._items;return 2===arguments.length?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return(0,y.it)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,y.it)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(n.REMOVE))return;const t=w(this._splice(e,1));return this._emitAfterChanges(n.REMOVE),t}removeMany(e){if((0,y.it)(this._observable),!e||!e.length||this._emitBeforeChanges(n.REMOVE))return[];const t=e instanceof c?e.toArray():e,r=this._items,i=[],s=t.length;for(let e=0;e<s;e++){const n=t[e],s=r.indexOf(n);if(s>-1){const n=1+S(t,r,e+1,s+1),o=this._splice(s,n);o&&o.length>0&&i.push.apply(i,o),e+=n-1}}return this._emitAfterChanges(n.REMOVE),i}reverse(){if((0,y.it)(this._observable),this._emitBeforeChanges(n.MOVE))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(n.MOVE),this}shift(){if((0,y.it)(this._observable),!this.length||this._emitBeforeChanges(n.REMOVE))return;const e=w(this._splice(0,1));return this._emitAfterChanges(n.REMOVE),e}slice(e=0,t=this.length){return(0,y.it)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,y.it)(this._observable),this._items.some(e,t)}sort(e){if((0,y.it)(this._observable),!this.length||this._emitBeforeChanges(n.MOVE))return this;const t=(0,l.j0)(this._splice(0,this.length));return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(n.MOVE),this}splice(e,t,...r){(0,y.it)(this._observable);const i=(t?n.REMOVE:0)|(r.length?n.ADD:0);if(this._emitBeforeChanges(i))return[];const s=this._splice(e,t,r)||[];return this._emitAfterChanges(i),s}toArray(){return(0,y.it)(this._observable),this._items.slice()}toJSON(){return(0,y.it)(this._observable),this.toArray()}toLocaleString(){return(0,y.it)(this._observable),this._items.toLocaleString()}toString(){return(0,y.it)(this._observable),this._items.toString()}unshift(...e){return(0,y.it)(this._observable),!e.length||this._emitBeforeChanges(n.ADD)||(this._splice(0,0,e),this._emitAfterChanges(n.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){const n=this._items,i=this.itemType;let s,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,h.Os)((()=>this._dispatchChange()))),t){if(o=n.splice(e,t),this.hasEventListener("before-remove")){const t=v.acquire();t.target=this,t.cancellable=!0;for(let r=0,i=o.length;r<i;r++)s=o[r],t.reset(s),this.emit("before-remove",t),t.defaultPrevented&&(o.splice(r,1),n.splice(e,0,s),e+=1,r-=1,i-=1);v.release(t)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const e=v.acquire();e.target=this,e.cancellable=!1;const t=o.length;for(let r=0;r<t;r++)e.reset(o[r]),this.emit("after-remove",e);v.release(e)}}if(r&&r.length){if(i){const e=[];for(const t of r){const r=i.ensureType(t);null==r&&null!=t||e.push(r)}r=e}const t=this.hasEventListener("before-add"),s=this.hasEventListener("after-add"),o=e===this.length;if(t||s){const i=v.acquire();i.target=this,i.cancellable=!0;const a=v.acquire();a.target=this,a.cancellable=!1;for(const l of r)t?(i.reset(l),this.emit("before-add",i),i.defaultPrevented||(o?n.push(l):n.splice(e++,0,l),this._set("length",n.length),s&&(a.reset(l),this.emit("after-add",a)))):(o?n.push(l):n.splice(e++,0,l),this._set("length",n.length),a.reset(l),this.emit("after-add",a));v.release(a),v.release(i)}else{if(o)for(const e of r)n.push(e);else n.splice(e,0,...r);this._set("length",n.length)}}return(r&&r.length||o&&o.length)&&this._notifyChangeEvent(r,o),o}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const r=v.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,v.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=v.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),v.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;E.clear(),C.clear(),O.clear();for(const{added:t,removed:r}of e){if(t)if(0===O.size&&0===C.size)for(const e of t)E.add(e);else for(const e of t)C.has(e)?(O.add(e),C.delete(e)):O.has(e)||E.add(e);if(r)if(0===O.size&&0===E.size)for(const e of r)C.add(e);else for(const e of r)E.has(e)?E.delete(e):(O.delete(e),C.add(e))}const r=s.Z.acquire();E.forEach((e=>{r.push(e)}));const n=s.Z.acquire();C.forEach((e=>{n.push(e)}));const i=this._items,o=t.items,a=s.Z.acquire();if(O.forEach((e=>{o.indexOf(e)!==i.indexOf(e)&&a.push(e)})),t.listeners&&(r.length||n.length||a.length)){const e={target:this,added:r,removed:n,moved:a},i=t.listeners.length;for(let r=0;r<i;r++){const n=t.listeners[r];n.removed||n.callback.call(this,e)}}s.Z.release(r),s.Z.release(n),s.Z.release(a)}E.clear(),C.clear(),O.clear()}};L.ofType=e=>{if(!e)return c;if(I.has(e))return I.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const r in e.typeMap){const n=e.typeMap[r].prototype.declaredClass;t?t+=` | ${n}`:t=n}let r=class extends c{};return(0,i._)([(0,f.c)({Type:e,ensureType:"function"==typeof e?(0,d.se)(e):(0,d.N7)(e)})],r.prototype,"itemType",void 0),r=(0,i._)([(0,m.j)(`esri.core.Collection<${t}>`)],r),I.set(e,r),r},(0,i._)([(0,p.Cb)()],L.prototype,"length",void 0),(0,i._)([(0,p.Cb)()],L.prototype,"items",null),L=c=(0,i._)([(0,m.j)("esri.core.Collection")],L);const A=L},32448:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(43697),i=r(15923),s=r(50758),o=r(52011);class a{constructor(){this._emitter=new a.EventEmitter(this)}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}}!function(e){class t{constructor(e=null){this.target=e,this._listenersMap=null}clear(){this._listenersMap&&this._listenersMap.clear(),this._listenersMap=null}emit(e,t){const r=this._listenersMap&&this._listenersMap.get(e);if(!r)return!1;const n=this.target||this;return[...r].forEach((e=>{e.call(n,t)})),r.length>0}on(e,t){if(Array.isArray(e)){const r=e.map((e=>this.on(e,t)));return(0,s.AL)(r)}if(e.indexOf(",")>-1)throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap||(this._listenersMap=new Map);const r=this._listenersMap.get(e)||[];return r.push(t),this._listenersMap.set(e,r),{remove:()=>{const r=this._listenersMap&&this._listenersMap.get(e)||[],n=r.indexOf(t);n>=0&&r.splice(n,1)}}}once(e,t){const r=this.on(e,(e=>{r.remove(),t.call(null,e)}));return r}hasEventListener(e){const t=this._listenersMap&&this._listenersMap.get(e);return null!=t&&t.length>0}}e.EventEmitter=t,e.EventedMixin=e=>{let r=class extends e{constructor(){super(...arguments),this._emitter=new t}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};return r=(0,n._)([(0,o.j)("esri.core.Evented")],r),r};let r=class extends i.Z{constructor(){super(...arguments),this._emitter=new a.EventEmitter(this)}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};r=(0,n._)([(0,o.j)("esri.core.Evented")],r),e.EventedAccessor=r}(a||(a={}));const l=a},61247:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(43697),i=r(15923),s=r(80539),o=r(70586),a=r(5600),l=r(52011);let u=class extends i.Z{constructor(e){super(e),this._groups=new Map}destroy(){this.removeAll()}get size(){let e=0;return this._groups.forEach((t=>{e+=t.length})),e}add(e,t){if(!this._isHandle(e)&&!Array.isArray(e)&&!s.Z.isCollection(e))return this;const r=this._getOrCreateGroup(t);return Array.isArray(e)||s.Z.isCollection(e)?e.forEach((e=>this._isHandle(e)&&r.push(e))):r.push(e),this.notifyChange("size"),this}forEach(e,t){if("function"==typeof e)this._groups.forEach((t=>t.forEach(e)));else{const r=this._getGroup(e);r&&t&&r.forEach(t)}}has(e){return this._groups.has(this._ensureGroupKey(e))}remove(e){if(Array.isArray(e)||s.Z.isCollection(e))return e.forEach(this.remove,this),this;if(!this.has(e))return this;const t=this._getGroup(e);for(let e=0;e<t.length;e++)t[e].remove();return this._deleteGroup(e),this.notifyChange("size"),this}removeAll(){return this._groups.forEach((e=>{for(let t=0;t<e.length;t++)e[t].remove()})),this._groups.clear(),this.notifyChange("size"),this}_isHandle(e){return e&&!!e.remove}_getOrCreateGroup(e){if(this.has(e))return this._getGroup(e);const t=[];return this._groups.set(this._ensureGroupKey(e),t),t}_getGroup(e){return(0,o.j0)(this._groups.get(this._ensureGroupKey(e)))}_deleteGroup(e){return this._groups.delete(this._ensureGroupKey(e))}_ensureGroupKey(e){return e||"_default_"}};(0,n._)([(0,a.Cb)({readOnly:!0})],u.prototype,"size",null),u=(0,n._)([(0,l.j)("esri.core.Handles")],u);const c=u},10699:(e,t,r)=>{r.d(t,{I:()=>o});var n=r(43697),i=r(52011);let s=0;const o=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return t=(0,n._)([(0,i.j)("esri.core.Identifiable")],t),t};let a=class extends(o(class{})){};a=(0,n._)([(0,i.j)("esri.core.Identifiable")],a)},16453:(e,t,r)=>{r.d(t,{R:()=>v,w:()=>_});var n=r(43697),i=r(15923),s=r(70586),o=r(41103),a=r(22974),l=r(31263);class u{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(l.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new u,r=this._originStores[l.s3.DEFAULTS];r&&r.forEach(((e,r)=>{t.set(r,(0,a.d9)(e),l.s3.DEFAULTS)}));for(let r=l.s3.SERVICE;r<l.kk;r++){const n=this._originStores[r];n&&n.forEach(((n,i)=>{e&&e.has(i)||t.set(i,(0,a.d9)(n),r)}))}return t}get(e,t){const r=void 0===t?this._values:this._originStores[t];return r?r.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,r=l.s3.USER){let n=this._originStores[r];if(n||(n=new Map,this._originStores[r]=n),n.set(e,t),!this._values.has(e)||(0,s.j0)(this._propertyOriginMap.get(e))<=r){const n=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),n!==t}return!1}delete(e,t=l.s3.USER){const r=this._originStores[t];if(!r)return;const n=r.get(e);if(r.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let r=t-1;r>=0;r--){const t=this._originStores[r];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,r);break}}}return n}has(e,t){const r=void 0===t?this._values:this._originStores[t];return!!r&&r.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const r=this._originStores[t],n=r&&r.get(e),i=this._values.get(e);return this._values.set(e,n),this._propertyOriginMap.set(e,t),i!==n}originOf(e){return this._propertyOriginMap.get(e)||l.s3.DEFAULTS}forEach(e){this._values.forEach(e)}}var c=r(50549),h=r(1153),p=r(52011);const d=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,s.j0)((0,h.vw)(this)),r=t.store,n=new u;t.store=n,(0,o.M)(t,r,n)}read(e,t){(0,c.ij)(this,e,t)}getAtOrigin(e,t){const r=f(this),n=(0,l.M9)(t);if("string"==typeof e)return r.get(e,n);const i={};return e.forEach((e=>{i[e]=r.get(e,n)})),i}originOf(e){return(0,l.x3)(this.originIdOf(e))}originIdOf(e){return f(this).originOf(e)}revert(e,t){const r=f(this),n=(0,l.M9)(t),i=(0,h.vw)(this);let s;s="string"==typeof e?"*"===e?r.keys(n):[e]:e,s.forEach((e=>{i.invalidate(e),r.revert(e,n),i.commit(e)}))}};return t=(0,n._)([(0,p.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function f(e){return(0,h.vw)(e).store}let m=class extends(d(i.Z)){};m=(0,n._)([(0,p.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],m);var y=r(76169);const g=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return b(this).delete(e,(0,l.M9)(t))}write(e={},t){return(0,y.cW)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,h.vw)(this).setAtOrigin(e,t,(0,l.M9)(r))}removeOrigin(e){const t=b(this),r=(0,l.M9)(e),n=t.keys(r);for(const e of n)t.originOf(e)===r&&t.set(e,t.get(e,r),l.s3.USER)}updateOrigin(e,t){const r=b(this),n=(0,l.M9)(t),i=this.get(e);for(let t=n+1;t<l.kk;++t)r.delete(e,t);r.set(e,i,n)}toJSON(e){return this.write({},e)}};return t=(0,n._)([(0,p.j)("esri.core.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function b(e){return(0,h.vw)(e).store}const v=e=>{let t=class extends(g(d(e))){constructor(...e){super(...e)}};return t=(0,n._)([(0,p.j)("esri.core.MultiOriginJSONSupport")],t),t};let _=class extends(v(i.Z)){};_=(0,n._)([(0,p.j)("esri.core.MultiOriginJSONSupport")],_)},36030:(e,t,r)=>{r.d(t,{J:()=>s});var n=r(35454),i=r(5600);function s(e,t={}){var r;const s=e instanceof n.Xn?e:new n.Xn(e,t),o={type:null==(r=null==t?void 0:t.ignoreUnknown)||r?s.apiValues:String,json:{type:s.jsonValues,read:(null==t||!t.readOnly)&&{reader:s.read},write:{writer:s.write}}};return void 0!==(null==t?void 0:t.readOnly)&&(o.readOnly=!!t.readOnly),void 0!==(null==t?void 0:t.default)&&(o.json.default=t.default),void 0!==(null==t?void 0:t.name)&&(o.json.name=t.name),(0,i.Cb)(o)}},52421:(e,t,r)=>{function n(e){return(t,r)=>{t[r]=e}}r.d(t,{c:()=>n})},22021:(e,t,r)=>{r.d(t,{ZF:()=>p,Kt:()=>d,jE:()=>y,uZ:()=>o,oK:()=>f,Vl:()=>c,wt:()=>a,t7:()=>u,Sf:()=>s,fp:()=>l,BV:()=>h});var n=r(17896);r(98766);const i=new Float32Array(1);function s(e){--e;for(let t=1;t<32;t<<=1)e|=e>>t;return e+1}function o(e,t,r){return Math.min(Math.max(e,t),r)}function a(e){return 0==(e&e-1)}function l(e){return e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,++e}function u(e,t,r){return e+(t-e)*r}function c(e){return e*Math.PI/180}function h(e){return 180*e/Math.PI}function p(e){return Math.acos(o(e,-1,1))}function d(e){return Math.asin(o(e,-1,1))}function f(e){return m(Math.max(-g,Math.min(e,g)))}function m(e){return i[0]=e,i[0]}function y(e,t){const r=(0,n.l)(e),i=d(e[2]/r),s=Math.atan2(e[1]/r,e[0]/r);return(0,n.s)(t,r,i,s),t}const g=m(34028234663852886e22)},35463:(e,t,r)=>{r.d(t,{rJ:()=>a,Nm:()=>s,JE:()=>o}),r(80442);const n={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8},i={milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",multiplier:1},seconds:{getter:"getSeconds",setter:"setSeconds",multiplier:1},minutes:{getter:"getMinutes",setter:"setMinutes",multiplier:1},hours:{getter:"getHours",setter:"setHours",multiplier:1},days:{getter:"getDate",setter:"setDate",multiplier:1},weeks:{getter:"getDate",setter:"setDate",multiplier:7},months:{getter:"getMonth",setter:"setMonth",multiplier:1},years:{getter:"getFullYear",setter:"setFullYear",multiplier:1},decades:{getter:"getFullYear",setter:"setFullYear",multiplier:10},centuries:{getter:"getFullYear",setter:"setFullYear",multiplier:100}};function s(e,t,r){const n=new Date(e.getTime());if(t&&r){const e=i[r],{getter:s,setter:o,multiplier:a}=e;if("months"===r){const e=function(e,t){const r=new Date(e,t+1,1);return r.setDate(0),r.getDate()}(n.getFullYear(),n.getMonth()+t);n.getDate()>e&&n.setDate(e)}n[o](n[s]()+t*a)}return n}function o(e,t){switch(t){case"milliseconds":return new Date(e.getTime());case"seconds":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());case"minutes":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes());case"hours":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours());case"days":return new Date(e.getFullYear(),e.getMonth(),e.getDate());case"weeks":return new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay());case"months":return new Date(e.getFullYear(),e.getMonth(),1);case"years":return new Date(e.getFullYear(),0,1);case"decades":return new Date(e.getFullYear()-e.getFullYear()%10,0,1);case"centuries":return new Date(e.getFullYear()-e.getFullYear()%100,0,1);default:return new Date}}function a(e,t,r){return 0===e?0:e*n[t]/n[r]}},43050:(e,t,r)=>{r.d(t,{S1:()=>o,on:()=>h,OY:()=>c,cm:()=>l,N1:()=>a,LR:()=>u,tH:()=>p});var n=r(91460),i=(r(22974),r(95330));const s=/\?(\.|$)/g;function o(e,t,r,n){const i=Array.isArray(t)?t:t.indexOf(",")>-1?t.split(","):[t],o=function(e,t,r,n){return e.watch(t,r,n)}(e,t,r,n);for(const t of i){const n=t.trim().replace(s,"$1"),i=e.get(n);r.call(e,i,i,n,e)}return o}function a(e,t,r,n){return p(e,t,d,r,n)}function l(e,t,r,n){return p(e,t,f,r,n)}function u(e,t,r,n){return p(e,t,m,r,n)}function c(e,t,r,n){return p(e,t,y,r,n)}function h(e,t,r,i,s,a,l){const u={};function c(t){const n=u[t];n&&(a&&a(n.target,t,e,r),n.handle.remove(),delete u[t])}const h=o(e,t,((t,o,a)=>{c(a),(0,n.vT)(t)&&(u[a]={handle:(0,n.on)(t,r,i),target:t},s&&s(t,a,e,r))}),l);return{remove(){h.remove();for(const e in u)c(e)}}}function p(e,t,r,n,s){const o="function"==typeof n?n:null,a="object"==typeof n?n:null;"boolean"==typeof n&&(s=n);let l,u=!1;function c(){l&&(l.remove(),l=null)}const h=(0,i.dD)();(0,i.fu)(a,(()=>{c(),h.reject((0,i.zE)())}));const p={then:h.promise.then.bind(h.promise),catch:h.promise.catch.bind(h.promise),remove:c};return Object.freeze(p),l=function(e,t,r,n,i){const s=e.watch(t,((t,i,s,o)=>{r&&!r(t)||null==n||n.call(e,t,i,s,o)}),i);if(Array.isArray(t))for(const i of t){const s=e.get(i);r&&r(s)&&(null==n||n.call(e,s,s,t,e))}else{const i=e.get(t);r&&r(i)&&(null==n||n.call(e,i,i,t,e))}return s}(e,t,r,((t,r,n,i)=>{u=!0,c(),o&&o.call(e,t,r,n,i),h.resolve({value:t,oldValue:r,propertyName:n,target:i})}),s),u&&c(),p}function d(e){return!!e}function f(e){return!e}function m(e){return!0===e}function y(e){return!1===e}},79235:(e,t,r)=>{r.d(t,{Z:()=>v});var n,i=r(43697),s=r(67676),o=r(35454),a=r(96674),l=r(67900),u=r(20941),c=r(5600),h=(r(80442),r(75215),r(71715)),p=r(52011),d=r(30556);const f=(0,o.wY)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=f.jsonValues.slice();(0,s.e$)(m,"orthometric");const y=(0,o.wY)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let g=n=class extends a.wq{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return f.write(e,t,r)}readHeightModel(e,t,r){return f.read(e)||(r&&r.messages&&r.messages.push(function(e,t){return new u.Z("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return y.read(e)||(r&&r.messages&&r.messages.push(b(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.$C)(e)||y.read(e)||(r&&r.messages&&r.messages.push(b(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new n({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.cM)(t);return new n({heightModel:e.heightModel,heightUnit:r,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new n;return t.read(e,{origin:"web-scene"}),t}};function b(e,t){return new u.Z("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,i._)([(0,c.Cb)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],g.prototype,"heightModel",void 0),(0,i._)([(0,d.c)("web-scene","heightModel")],g.prototype,"writeHeightModel",null),(0,i._)([(0,h.r)(["web-scene","service"],"heightModel")],g.prototype,"readHeightModel",null),(0,i._)([(0,c.Cb)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:y.jsonValues,write:y.write}}}})],g.prototype,"heightUnit",void 0),(0,i._)([(0,h.r)("web-scene","heightUnit")],g.prototype,"readHeightUnit",null),(0,i._)([(0,h.r)("service","heightUnit")],g.prototype,"readHeightUnitService",null),(0,i._)([(0,c.Cb)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],g.prototype,"vertCRS",void 0),(0,i._)([(0,h.r)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],g.prototype,"readVertCRS",null),g=n=(0,i._)([(0,p.j)("esri.geometry.HeightModelInfo")],g);const v=g},24470:(e,t,r)=>{r.d(t,{Gv:()=>p,SO:()=>u,r3:()=>h,Ue:()=>s,oJ:()=>a,al:()=>o,kK:()=>c,HH:()=>l}),r(80442),r(22021);var n=r(70586),i=r(6570);function s(e=d){return[e[0],e[1],e[2],e[3]]}function o(e,t,r,n,i=s()){return i[0]=e,i[1]=t,i[2]=r,i[3]=n,i}function a(e,t=s()){return t[0]=e.xmin,t[1]=e.ymin,t[2]=e.xmax,t[3]=e.ymax,t}function l(e,t){return new i.Z({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:t})}function u(e){return function(e){return(0,n.Wi)(e)||e[0]>=e[2]?0:e[2]-e[0]}(e)*function(e){return e[1]>=e[3]?0:e[3]-e[1]}(e)}function c(e,t){return Math.max(t[0],e[0])<=Math.min(t[2],e[2])&&Math.max(t[1],e[1])<=Math.min(t[3],e[3])}function h(e,t){return t[0]>=e[0]&&t[2]<=e[2]&&t[1]>=e[1]&&t[3]<=e[3]}const p=[1/0,1/0,-1/0,-1/0],d=[0,0,0,0]},69285:(e,t,r)=>{r.d(t,{k:()=>o});var n=r(70586),i=r(67900),s=r(8744);function o(e,t,r){if((0,n.Wi)(t)||(0,n.Wi)(r)||r.vcsWkid||(0,s.fS)(t,r))return null;const o=(0,i._R)(t)/(0,i._R)(r);if(1===o)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,o);case"extent":case"esriGeometryExtent":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return null}}},4717:(e,t,r)=>{r.r(t),r.d(t,{default:()=>X});var n=r(43697),i=r(20102),s=r(61247),o=r(70586),a=r(16453),l=r(95330),u=r(43050),c=r(5600),h=(r(67676),r(80442),r(75215),r(71715)),p=r(52011),d=r(81153),f=r(17452),m=r(41123),y=r(7628),g=r(31263);function b(e){return v[function(e){return e instanceof Blob?e.type:function(e){const t=(0,f.Ml)(e);return w[t]||_}(e.url)}(e)]||M}const v={},_="text/plain",M=v[_],w={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip"};for(const e in w)v[w[e]]=e;var S=r(25929);function x(e){const t=(0,o.pC)(e)&&e.origins?e.origins:[void 0];return(r,n)=>{const i=function(e,t,r){if((0,o.pC)(e)&&"resource"===e.type)return function(e,t,r){const n=(0,y.VZ)(t,r);return{type:String,read:(e,t,r)=>{const i=(0,S.r)(e,t,r);return n.type===String?i:"function"==typeof n.type?new n.type({url:i}):void 0},write:{writer(t,i,s,a){if(!a||!a.resources)return"string"==typeof t?void(i[s]=(0,S.t)(t,a)):void(i[s]=t.write({},a));const l=function(e){return(0,o.Wi)(e)?null:"string"==typeof e?e:e.url}(t),u=l?(0,S.t)(l,{...a,verifyItemRelativeUrls:a&&a.verifyItemRelativeUrls?{writtenUrls:a.verifyItemRelativeUrls.writtenUrls,rootPath:null}:null},S.M.NO):null,c=n.type!==String&&(!(0,d.l)(this)||a&&a.origin&&this.originIdOf(r)>(0,g.M9)(a.origin));a&&a.portalItem&&(0,o.pC)(u)&&!(0,f.YP)(u)?c?function(e,t,r,n,i,s,o,a){const l=o.portalItem.resourceFromPath(n),u=O(r,n,o);b(u)===(0,f.Ml)(l.path)?(C(e,t,l,u,o.resources.toUpdate),i[s]=n):E(e,t,r,n,i,s,o,a)}(this,r,t,u,i,s,a,e):function(e,t,r,n){n.resources.toKeep.push({resource:n.portalItem.resourceFromPath(e)}),t[r]=e}(u,i,s,a):a&&a.portalItem&&((0,o.Wi)(u)||(0,o.pC)((0,S.i)(u))||(0,f.jc)(u)||c)?E(this,r,t,u,i,s,a,e):i[s]=u}}}}(e,t,r);switch((0,o.pC)(e)&&e.type?e.type:"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=S.p;return{read:e,write:t}}}}(e,r,n);for(const e of t){const t=(0,c.CJ)(r,e,n);for(const e in i)t[e]=i[e]}}}function E(e,t,n,i,s,a,l,u){const c=(0,m.D)(),h=O(n,i,l),p=(0,f.v_)((0,o.U2)(u,"prefix"),c),d=`${p}.${b(h)}`,y=l.portalItem.resourceFromPath(d);(0,f.jc)(i)&&l.resources.pendingOperations.push(async function(e){const t=(await Promise.resolve().then(r.bind(r,3172))).default,{data:n}=await t(e,{responseType:"blob"});return n}(i).then((e=>{y.path=`${p}.${b(e)}`,s[a]=y.itemRelativeUrl})).catch((()=>{}))),C(e,t,y,h,l.resources.toAdd),s[a]=y.itemRelativeUrl}function C(e,t,r,n,i){i.push({resource:r,content:n,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function O(e,t,r){return"string"==typeof e?{url:t}:new Blob([JSON.stringify(e.toJSON(r))],{type:"application/json"})}var I,T=r(29600),L=r(54295),A=r(17287),R=r(38009),j=r(16859),q=r(72965),D=r(13496),N=r(21506),k=r(51161),U=r(3172),P=r(80539),F=r(96674),Z=(r(66577),r(22974)),G=r(20941),V=r(30556),B=r(90411),H=r(17332);let z=I=class extends F.wq{constructor(e){super(e),this.geometry=null,this.type="clip"}writeGeometry(e,t,r,n){if(n.layer&&n.layer.spatialReference&&!n.layer.spatialReference.equals(this.geometry.spatialReference)){if(!(0,B.Up)(e.spatialReference,n.layer.spatialReference))return void(n&&n.messages&&n.messages.push(new G.Z("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:n.layer.spatialReference,context:n})));const i=new H.Z;(0,B.Wt)(e,i,n.layer.spatialReference),t[r]=i.toJSON(n)}else t[r]=e.toJSON(n);delete t[r].spatialReference}clone(){return new I({geometry:(0,Z.d9)(this.geometry),type:this.type})}};(0,n._)([(0,c.Cb)({type:H.Z}),x()],z.prototype,"geometry",void 0),(0,n._)([(0,V.c)(["web-scene","portal-item"],"geometry")],z.prototype,"writeGeometry",null),(0,n._)([(0,c.Cb)({type:["clip","mask","replace"],nonNullable:!0}),x()],z.prototype,"type",void 0),z=I=(0,n._)([(0,p.j)("esri.layers.support.SceneModification")],z);const $=z;var J;let Y=J=class extends((0,F.eC)(P.Z.ofType($))){constructor(e){super(e),this.url=null}toJSON(e){return this.toArray().map((t=>t.toJSON(e))).filter((e=>!!e.geometry))}clone(){return new J({url:this.url,items:this.items.map((e=>e.clone()))})}_readModifications(e,t){for(const r of e)this.add($.fromJSON(r,t))}static fromJSON(e,t){const r=new J;return r._readModifications(e,t),r}static async fromUrl(e,t,r){const n={url:(0,f.mN)(e),origin:"service"},i=await(0,U.default)(e,{responseType:"json",signal:(0,o.U2)(r,"signal")}),s=t.toJSON(),a=[];for(const e of i.data)a.push($.fromJSON({...e,geometry:{...e.geometry,spatialReference:s}},n));return new J({url:e,items:a})}};(0,n._)([(0,c.Cb)({type:String})],Y.prototype,"url",void 0),Y=J=(0,n._)([(0,p.j)("esri.layers.support.SceneModifications")],Y);const W=Y;let K=class extends((0,D.Vt)((0,A.Y)((0,R.q)((0,j.I)((0,q.M)((0,a.R)((0,L.V)(T.Z)))))))){constructor(...e){super(...e),this.handles=new s.Z,this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this._modificationsSource=null,this.elevationInfo=null,this.path=null}destroy(){this.handles.destroy()}initialize(){this.handles.add((0,u.on)(this,"modifications","after-changes",(()=>this.modifications=this.modifications),null,null,!0))}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readModifications(e,t,r){this._modificationsSource={url:(0,S.f)(e,r),context:r}}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}async _doLoad(e){const t=(0,o.U2)(e,"signal");try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(e){(0,l.r9)(e)}if(await this._fetchService(t),(0,o.pC)(this._modificationsSource)){const t=await W.fromUrl(this._modificationsSource.url,this.spatialReference,e);this.setAtOrigin("modifications",t,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t)}beforeSave(){if(!(0,o.Wi)(this._modificationsSource))return this.load().then((()=>{}),(()=>{}))}async saveAs(e,t){return this._debouncedSaveOperations(D.xp.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"};return this._debouncedSaveOperations(D.xp.SAVE,e)}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new i.Z("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new i.Z("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new i.Z("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}};(0,n._)([(0,c.Cb)({type:String,readOnly:!0})],K.prototype,"geometryType",void 0),(0,n._)([(0,c.Cb)({type:["show","hide"]})],K.prototype,"listMode",void 0),(0,n._)([(0,c.Cb)({type:["IntegratedMeshLayer"]})],K.prototype,"operationalLayerType",void 0),(0,n._)([(0,c.Cb)({json:{read:!1},readOnly:!0})],K.prototype,"type",void 0),(0,n._)([(0,c.Cb)({type:k.U4,readOnly:!0})],K.prototype,"nodePages",void 0),(0,n._)([(0,c.Cb)({type:[k.QI],readOnly:!0})],K.prototype,"materialDefinitions",void 0),(0,n._)([(0,c.Cb)({type:[k.Yh],readOnly:!0})],K.prototype,"textureSetDefinitions",void 0),(0,n._)([(0,c.Cb)({type:[k.H3],readOnly:!0})],K.prototype,"geometryDefinitions",void 0),(0,n._)([(0,c.Cb)({readOnly:!0})],K.prototype,"serviceUpdateTimeStamp",void 0),(0,n._)([(0,c.Cb)({type:W}),x({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],K.prototype,"modifications",void 0),(0,n._)([(0,h.r)(["web-scene","portal-item"],"modifications")],K.prototype,"readModifications",null),(0,n._)([(0,c.Cb)(N.PV)],K.prototype,"elevationInfo",void 0),(0,n._)([(0,c.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],K.prototype,"path",void 0),K=(0,n._)([(0,p.j)("esri.layers.IntegratedMeshLayer")],K);const X=K},29600:(e,t,r)=>{r.d(t,{Z:()=>_});var n=r(43697),i=r(68773),s=(r(66577),r(3172)),o=r(20102),a=r(32448),l=r(10699),u=r(83379),c=r(92604),h=r(95330),p=r(17452),d=r(5600),f=(r(67676),r(80442),r(75215),r(52011)),m=r(6570),y=r(82971);let g=0;const b=c.Z.getLogger("esri.layers.Layer");let v=class extends(a.Z.EventedMixin((0,l.I)(u.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.Z(-180,-90,180,90,y.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=y.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e,n=await r.e(3529).then(r.bind(r,63529));try{return await n.fromUrl(t)}catch(e){throw b.error("#fromArcGISServerUrl({ url: '"+t.url+"'})","Failed to create layer from arcgis server url",e),e}}static async fromPortalItem(e){const t="portalItem"in e?e:{portalItem:e},n=await r.e(4579).then(r.bind(r,44579));try{return await n.fromItem(t)}catch(e){const r=t&&t.portalItem,n=r&&r.id||"unset",s=r&&r.portal&&r.portal.url||i.Z.portalUrl;throw b.error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+n+"')",e),e}}initialize(){this.when().catch((e=>{var t,r;(0,h.D_)(e)||c.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${null!=(t=this.title)?t:"no title"}', id: '${null!=(r=this.id)?r:"no id"}')`,{error:e})}))}destroy(){if(this.parent){const e=this,t=this.parent;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"baseLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){const e=this.url;return e?(0,p.mN)(e):null}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,s.default)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,n._)([(0,d.Cb)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,n._)([(0,d.Cb)({type:m.Z})],v.prototype,"fullExtent",void 0),(0,n._)([(0,d.Cb)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,n._)([(0,d.Cb)({type:String})],v.prototype,"id",void 0),(0,n._)([(0,d.Cb)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,n._)([(0,d.Cb)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,n._)([(0,d.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,n._)([(0,d.Cb)()],v.prototype,"parent",void 0),(0,n._)([(0,d.Cb)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,n._)([(0,d.Cb)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,n._)([(0,d.Cb)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,n._)([(0,d.Cb)({type:y.Z})],v.prototype,"spatialReference",void 0),(0,n._)([(0,d.Cb)({type:String})],v.prototype,"title",void 0),(0,n._)([(0,d.Cb)({type:String,readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,n._)([(0,d.Cb)()],v.prototype,"url",void 0),(0,n._)([(0,d.Cb)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,n._)([(0,f.j)("esri.layers.Layer")],v);const _=v},38009:(e,t,r)=>{r.d(t,{q:()=>d});var n=r(43697),i=r(20102),s=r(17452),o=r(5600),a=(r(67676),r(80442),r(75215),r(52011)),l=r(30556),u=r(50549),c=r(76169);const h={"web-scene/operational-layers":{ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISTiledElevationServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BuildingSceneLayer:!0,GroupLayer:!0,IntegratedMeshLayer:!0,OGCFeatureLayer:!0,PointCloudLayer:!0,WebTiledLayer:!0,CSV:!0,GeoJSON:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,KML:!0,RasterDataLayer:!0,Voxel:!0},"web-scene/basemap":{ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,WebTiledLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,ArcGISImageServiceLayer:!0,WMS:!0,ArcGISMapServiceLayer:!0},"web-scene/ground":{ArcGISTiledElevationServiceLayer:!0,RasterDataElevationLayer:!0},"web-map/operational-layers":{ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISStreamLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BingMapsAerial:!0,BingMapsHybrid:!0,BingMapsRoad:!0,CSV:!0,GeoRSS:!0,GeoJSON:!0,GroupLayer:!0,KML:!0,OGCFeatureLayer:!0,SubtypeGroupLayer:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,WebTiledLayer:!0},"web-map/basemap":{ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,WMS:!0,WebTiledLayer:!0,BingMapsAerial:!0,BingMapsRoad:!0,BingMapsHybrid:!0},"web-map/tables":{ArcGISFeatureLayer:!0},"portal-item/operational-layers":{ArcGISSceneServiceLayer:!0,PointCloudLayer:!0,BuildingSceneLayer:!0,IntegratedMeshLayer:!0}};var p=r(21506);const d=e=>{let t=class extends e{constructor(){super(...arguments),this.title=null}writeListMode(e,t,r,n){(n&&"ground"===n.layerContainerType||e&&(0,c.df)(this,r,{},n))&&(t[r]=e)}writeOperationalLayerType(e,t,r,n){!e||n&&"tables"===n.layerContainerType||(t.layerType=e)}writeTitle(e,t){t.title=e||"Layer"}read(e,t){t&&(t.layer=this),(0,u.$Z)(this,e,(t=>super.read(e,t)),t)}write(e,t){if(null!=t&&t.origin){const e=`${t.origin}/${t.layerContainerType||"operational-layers"}`,n=h[e];let s=n&&n[this.operationalLayerType];var r;if("ArcGISTiledElevationServiceLayer"===this.operationalLayerType&&"web-scene/operational-layers"===e&&(s=!1),!s)return null==(r=t.messages)||r.push(new i.Z("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this})),null}const n=super.write(e,{...t,layer:this}),o=!!t&&!!t.messages&&!!t.messages.filter((e=>e instanceof i.Z&&"web-document-write:property-required"===e.name)).length;var a;return(0,s.jc)(null==n?void 0:n.url)?(null==t||null==(a=t.messages)||a.push(new i.Z("layer:invalid-url",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Blob URL cannot be written to web scenes and web maps`,{layer:this})),null):!this.url&&o?null:n}beforeSave(){}};return(0,n._)([(0,o.Cb)({type:String,json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],t.prototype,"id",void 0),(0,n._)([(0,o.Cb)({json:{write:{ignoreOrigin:!0},origins:{"web-map":{read:!1,write:!1}}}})],t.prototype,"listMode",void 0),(0,n._)([(0,l.c)("listMode")],t.prototype,"writeListMode",null),(0,n._)([(0,o.Cb)({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1}}}})],t.prototype,"operationalLayerType",void 0),(0,n._)([(0,l.c)("operationalLayerType")],t.prototype,"writeOperationalLayerType",null),(0,n._)([(0,o.Cb)(p.Oh)],t.prototype,"opacity",void 0),(0,n._)([(0,o.Cb)({type:String,json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],t.prototype,"title",void 0),(0,n._)([(0,l.c)("title")],t.prototype,"writeTitle",null),(0,n._)([(0,o.Cb)({type:Boolean,json:{name:"visibility",origins:{"web-document":{name:"visibility",default:!0},"portal-item":{name:"visibility",read:{source:["visible","visibility"]}}}}})],t.prototype,"visible",void 0),t=(0,n._)([(0,a.j)("esri.layers.mixins.OperationalLayer")],t),t}},72965:(e,t,r)=>{r.d(t,{M:()=>o});var n=r(43697),i=r(5600),s=(r(67676),r(80442),r(75215),r(52011));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,n._)([(0,i.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,n._)([(0,i.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,n._)([(0,i.Cb)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,n._)([(0,s.j)("esri.layers.mixins.ScaleRangeLayer")],t),t}},51161:(e,t,r)=>{r.d(t,{H3:()=>g,QI:()=>h,U4:()=>l,Yh:()=>d});var n=r(43697),i=r(96674),s=r(5600),o=(r(67676),r(80442),r(75215),r(36030)),a=r(52011);let l=class extends i.wq{constructor(){super(...arguments),this.nodesPerPage=null,this.rootIndex=0,this.lodSelectionMetricType=null}};(0,n._)([(0,s.Cb)({type:Number})],l.prototype,"nodesPerPage",void 0),(0,n._)([(0,s.Cb)({type:Number})],l.prototype,"rootIndex",void 0),(0,n._)([(0,s.Cb)({type:String})],l.prototype,"lodSelectionMetricType",void 0),l=(0,n._)([(0,a.j)("esri.layer.support.I3SNodePageDefinition")],l);let u=class extends i.wq{constructor(){super(...arguments),this.factor=1}};(0,n._)([(0,s.Cb)({type:Number,json:{read:{source:"textureSetDefinitionId"}}})],u.prototype,"id",void 0),(0,n._)([(0,s.Cb)({type:Number})],u.prototype,"factor",void 0),u=(0,n._)([(0,a.j)("esri.layer.support.I3SMaterialTexture")],u);let c=class extends i.wq{constructor(){super(...arguments),this.baseColorFactor=[1,1,1,1],this.baseColorTexture=null,this.metallicRoughnessTexture=null,this.metallicFactor=1,this.roughnessFactor=1}};(0,n._)([(0,s.Cb)({type:[Number]})],c.prototype,"baseColorFactor",void 0),(0,n._)([(0,s.Cb)({type:u})],c.prototype,"baseColorTexture",void 0),(0,n._)([(0,s.Cb)({type:u})],c.prototype,"metallicRoughnessTexture",void 0),(0,n._)([(0,s.Cb)({type:Number})],c.prototype,"metallicFactor",void 0),(0,n._)([(0,s.Cb)({type:Number})],c.prototype,"roughnessFactor",void 0),c=(0,n._)([(0,a.j)("esri.layer.support.I3SMaterialPBRMetallicRoughness")],c);let h=class extends i.wq{constructor(){super(...arguments),this.alphaMode="opaque",this.alphaCutoff=.25,this.doubleSided=!1,this.cullFace="none",this.normalTexture=null,this.occlusionTexture=null,this.emissiveTexture=null,this.emissiveFactor=null,this.pbrMetallicRoughness=null}};(0,n._)([(0,o.J)({opaque:"opaque",mask:"mask",blend:"blend"})],h.prototype,"alphaMode",void 0),(0,n._)([(0,s.Cb)({type:Number})],h.prototype,"alphaCutoff",void 0),(0,n._)([(0,s.Cb)({type:Boolean})],h.prototype,"doubleSided",void 0),(0,n._)([(0,o.J)({none:"none",back:"back",front:"front"})],h.prototype,"cullFace",void 0),(0,n._)([(0,s.Cb)({type:u})],h.prototype,"normalTexture",void 0),(0,n._)([(0,s.Cb)({type:u})],h.prototype,"occlusionTexture",void 0),(0,n._)([(0,s.Cb)({type:u})],h.prototype,"emissiveTexture",void 0),(0,n._)([(0,s.Cb)({type:[Number]})],h.prototype,"emissiveFactor",void 0),(0,n._)([(0,s.Cb)({type:c})],h.prototype,"pbrMetallicRoughness",void 0),h=(0,n._)([(0,a.j)("esri.layer.support.I3SMaterialDefinition")],h);let p=class extends i.wq{};(0,n._)([(0,s.Cb)({type:String,json:{read:{source:["name","index"],reader:(e,t)=>null!=e?e:`${t.index}`}}})],p.prototype,"name",void 0),(0,n._)([(0,o.J)({jpg:"jpg",png:"png",dds:"dds","ktx-etc2":"ktx-etc2",ktx2:"ktx2",basis:"basis"})],p.prototype,"format",void 0),p=(0,n._)([(0,a.j)("esri.layer.support.I3STextureFormat")],p);let d=class extends i.wq{constructor(){super(...arguments),this.atlas=!1}};(0,n._)([(0,s.Cb)({type:[p]})],d.prototype,"formats",void 0),(0,n._)([(0,s.Cb)({type:Boolean})],d.prototype,"atlas",void 0),d=(0,n._)([(0,a.j)("esri.layer.support.I3STextureSetDefinition")],d);let f=class extends i.wq{};(0,n._)([(0,o.J)({Float32:"Float32",UInt64:"UInt64",UInt32:"UInt32",UInt16:"UInt16",UInt8:"UInt8"})],f.prototype,"type",void 0),(0,n._)([(0,s.Cb)({type:Number})],f.prototype,"component",void 0),f=(0,n._)([(0,a.j)("esri.layer.support.I3SGeometryAttribute")],f);let m=class extends i.wq{};(0,n._)([(0,o.J)({draco:"draco"})],m.prototype,"encoding",void 0),(0,n._)([(0,s.Cb)({type:[String]})],m.prototype,"attributes",void 0),m=(0,n._)([(0,a.j)("esri.layer.support.I3SGeometryCompressedAttributes")],m);let y=class extends i.wq{constructor(){super(...arguments),this.offset=0}};(0,n._)([(0,s.Cb)({type:Number})],y.prototype,"offset",void 0),(0,n._)([(0,s.Cb)({type:f})],y.prototype,"position",void 0),(0,n._)([(0,s.Cb)({type:f})],y.prototype,"normal",void 0),(0,n._)([(0,s.Cb)({type:f})],y.prototype,"uv0",void 0),(0,n._)([(0,s.Cb)({type:f})],y.prototype,"color",void 0),(0,n._)([(0,s.Cb)({type:f})],y.prototype,"uvRegion",void 0),(0,n._)([(0,s.Cb)({type:f})],y.prototype,"featureId",void 0),(0,n._)([(0,s.Cb)({type:f})],y.prototype,"faceRange",void 0),(0,n._)([(0,s.Cb)({type:m})],y.prototype,"compressedAttributes",void 0),y=(0,n._)([(0,a.j)("esri.layer.support.I3SGeometryBuffer")],y);let g=class extends i.wq{};(0,n._)([(0,o.J)({triangle:"triangle"})],g.prototype,"topology",void 0),(0,n._)([(0,s.Cb)()],g.prototype,"geometryBuffers",void 0),g=(0,n._)([(0,a.j)("esri.layer.support.I3SGeometryDefinition")],g)},21506:(e,t,r)=>{r.d(t,{qG:()=>_,PV:()=>y,id:()=>w,iR:()=>d,rn:()=>m,u1:()=>x,rO:()=>S,Oh:()=>b,bT:()=>v,C_:()=>p,Lx:()=>g,vg:()=>M,YI:()=>h,HQ:()=>f});var n=r(92835),i=r(6570),s=r(82971),o=r(25929),a=r(70586),l=(r(95330),r(35463)),u=r(20682),c=r(65242);const h={type:Boolean,value:!0,json:{origins:{service:{read:!1,write:!1},"web-map":{read:!1,write:!1}},name:"screenSizePerspective",write:!0}},p={type:Boolean,value:!0,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,writer(e,t,r){t[r]=!e}}}},d={type:Boolean,value:!0,json:{name:"showLabels",write:!0}},f={type:String,json:{origins:{"portal-item":{write:!1}},write:{isRequired:!0,ignoreOrigin:!0,writer:o.w}}},m={type:Boolean,value:!0,json:{origins:{service:{read:{enabled:!1}}},name:"showLegend",write:!0}},y={value:null,type:u.Z,json:{origins:{service:{name:"elevationInfo",write:!0}},name:"layerDefinition.elevationInfo",write:!0}};function g(e){return{type:e,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}}}const b={type:Number,json:{origins:{"web-document":{write:!0,read:!0},"portal-item":{write:!0}}}},v={...b,json:{...b.json,origins:{"web-document":{...b.json.origins["web-document"],write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}}}},read:{source:["layerDefinition.drawingInfo.transparency","drawingInfo.transparency"],reader:(e,t,r)=>r&&"service"!==r.origin||!t.drawingInfo||void 0===t.drawingInfo.transparency?t.layerDefinition&&t.layerDefinition.drawingInfo&&void 0!==t.layerDefinition.drawingInfo.transparency?(0,c.b)(t.layerDefinition.drawingInfo.transparency):void 0:(0,c.b)(t.drawingInfo.transparency)}}},_={type:n.Z,readOnly:!0,get(){var e,t;if(null==(e=this.layer)||!e.timeInfo)return null;const{datesInUnknownTimezone:r,timeOffset:i,useViewTime:s}=this.layer,o=null==(t=this.view)?void 0:t.timeExtent;let u=this.layer.timeExtent;r&&(u=function(e){if(!e)return e;const{start:t,end:r}=e;return new n.Z({start:(0,a.pC)(t)?(0,l.Nm)(t,t.getTimezoneOffset(),"minutes"):t,end:(0,a.pC)(r)?(0,l.Nm)(r,r.getTimezoneOffset(),"minutes"):r})}(u));let c=s?o&&u?o.intersection(u):o||u:u;if(!c||c.isEmpty||c.isAllTime)return c;i&&(c=c.offset(-i.value,i.unit)),r&&(c=function(e){if(!e)return e;const{start:t,end:r}=e;return new n.Z({start:(0,a.pC)(t)?(0,l.Nm)(t,-t.getTimezoneOffset(),"minutes"):t,end:(0,a.pC)(r)?(0,l.Nm)(r,-r.getTimezoneOffset(),"minutes"):r})}(c));const h=this._get("timeExtent");return c.equals(h)?h:c}},M={type:i.Z,readOnly:!0,json:{origins:{service:{read:{source:["fullExtent","spatialReference"],reader:(e,t)=>{const r=i.Z.fromJSON(e);return null!=t.spatialReference&&"object"==typeof t.spatialReference&&(r.spatialReference=s.Z.fromJSON(t.spatialReference)),r}}}},read:!1}},w={type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}}}},S={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.minScale"},write:{target:"layerDefinition.minScale"}}},x={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.maxScale"},write:{target:"layerDefinition.maxScale"}}}},3172:(e,t,r)=>{r.r(t),r.d(t,{default:()=>d});var n=r(68773),i=r(40330),s=r(20102),o=r(80442),a=r(22974),l=r(70586),u=r(95330),c=r(17452),h=r(71058),p=r(85958);async function d(e,t){var a;const p=(0,c.HK)(e),g=(0,c.jc)(e);g||p||(e=(0,c.Fv)(e));const b={url:e,requestOptions:{...(0,l.Wg)(t)}};let v=(0,c.oh)(e);if(v){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,n;try{n=await e.before(t)}catch(e){r=S("request:interceptor",e,t)}if((n instanceof Error||n instanceof s.Z)&&(r=S("request:interceptor",n,t)),r)throw e.error&&e.error(r),r;return n}}(v,b);if(null!=e)return{data:e,getHeader:_,requestOptions:b.requestOptions,url:b.url};v.after||v.error||(v=null)}if(e=b.url,"image"===(t=b.requestOptions).responseType){if((0,o.Z)("host-webworker")||(0,o.Z)("host-node"))throw S("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),b)}else if(p)throw S("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+t.responseType),b);if("head"===t.method){if(t.body)throw S("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),b);if(p||g)throw S("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),b)}if(await async function(){(0,o.Z)("host-webworker")?f||(f=await Promise.all([r.e(102),r.e(9884)]).then(r.bind(r,29884))):d._abortableFetch||(d._abortableFetch=globalThis.fetch.bind(globalThis))}(),f)return f.execute(e,t);const M=new AbortController;(0,u.fu)(t,(()=>M.abort()));const w={controller:M,credential:null,credentialToken:null,fetchOptions:null,hasToken:!1,interceptor:v,params:b,redoRequest:!1,useIdentity:m.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},O=await async function(e){var t,r;let s,o;await async function(e){const t=e.params.url,r=e.params.requestOptions,s=e.controller.signal,o=r.body;let a=null,l=null,c=null;if(y&&"HTMLFormElement"in globalThis&&(o instanceof FormData?a=o:o instanceof HTMLFormElement&&(l=o,a=new FormData(l))),"string"==typeof o&&(c=o),e.fetchOptions={cache:r.cacheBust&&!d._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:"head"===r.method?"HEAD":"GET",mode:"cors",redirect:"follow",signal:s},(a||c)&&(e.fetchOptions.body=a||c),"anonymous"===r.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query&&r.query.token||a&&a.get&&a.get("token")||l&&l.elements.token),!e.hasToken&&n.Z.apiKey&&(0,h.r)(t)&&(r.query||(r.query={}),r.query.token=n.Z.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!E(t)&&!(0,u.Hc)(s)){let n;"immediate"===r.authMode?(await x(),n=await i.id.getCredential(t,{signal:s}),e.credential=n):"no-prompt"===r.authMode?(await x(),n=await i.id.getCredential(t,{prompt:!1,signal:s}).catch((()=>{})),e.credential=n):i.id&&(n=i.id.findCredential(t)),n&&(e.credentialToken=n.token,e.useSSL=!!n.ssl)}}(e);try{do{[s,o]=await C(e)}while(!await I(e,s,o))}catch(t){const r=S("request:server",t,e.params,s);throw r.details.ssl=e.useSSL,e.interceptor&&e.interceptor.error&&e.interceptor.error(r),r}const a=e.params.url;if(/\/sharing\/rest\/(accounts|portals)\/self/i.test(a)&&!e.hasToken&&!e.credentialToken&&null!=(t=o)&&null!=(r=t.user)&&r.username&&!(0,c.kl)(a)){const e=(0,c.P$)(a,!0);e&&m.trustedServers.push(e)}const l=e.credential;if(l&&i.id){const e=i.id.findServerInfo(l.server);let t=e&&e.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=i.id.findCredential(t,l.userId);e&&-1===i.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:o,getHeader:s?e=>s.headers.get(e):_,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(w);return null==(a=v)||null==a.after||a.after(O),O}let f;const m=n.Z.request,y="FormData"in globalThis,g=[499,498,403,401],b=["COM_0056","COM_0057","SB_0008"],v=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],_=()=>null,M=Symbol();function w(e){const t=(0,c.P$)(e);return!t||t.endsWith(".arcgis.com")||d._corsServers.includes(t)||(0,c.kl)(t)}function S(e,t,r,n){let i="Error";const o={url:r.url,requestOptions:r.requestOptions,getHeader:_,ssl:!1};if(t instanceof s.Z)return t.details?(t.details=(0,a.d9)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=o,t;if(t){const e=n&&(e=>n.headers.get(e)),r=n&&n.status,s=t.message;s&&(i=s),e&&(o.getHeader=e),o.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||r||0,o.subCode=t.subcode,o.messageCode=t.messageCode,"string"==typeof t.details?o.messages=[t.details]:o.messages=t.details,o.raw=M in t?t[M]:t}return(0,u.D_)(t)?(0,u.zE)():new s.Z(e,i,o)}async function x(){i.id||await Promise.all([r.e(280),r.e(2785),r.e(102),r.e(8536)]).then(r.bind(r,85976))}function E(e){return v.some((t=>t.test(e)))}async function C(e){let t=e.params.url;const r=e.params.requestOptions,n=e.fetchOptions,s=(0,c.jc)(t)||(0,c.HK)(t),a=r.responseType||"json",l=s?0:null!=r.timeout?r.timeout:m.timeout;let h=!1;if(!s){e.useSSL&&(t=(0,c.hO)(t)),r.cacheBust&&"default"===n.cache&&(t=(0,c.ZN)(t,"request.preventCache",Date.now()));let s={...r.query};e.credentialToken&&(s.token=e.credentialToken);let a=(0,c.B7)(s);(0,o.Z)("esri-url-encodes-apostrophe")&&(a=a.replace(/'/g,"%27"));const l=t.length+1+a.length;let u;h="delete"===r.method||"post"===r.method||"put"===r.method||!!r.body||l>m.maxUrlLength;const p=r.useProxy||!!(0,c.ed)(t);if(p){const e=(0,c.b7)(t);u=e.path,!h&&u.length+1+l>m.maxUrlLength&&(h=!0),e.query&&(s={...e.query,...s})}if("HEAD"===n.method&&(h||p)){if(h){if(l>m.maxUrlLength)throw S("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw S("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(p)throw S("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(h?(n.method="delete"===r.method?"DELETE":"put"===r.method?"PUT":"POST",r.body?t=(0,c.fl)(t,s):(n.body=(0,c.B7)(s),n.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,c.fl)(t,s),p&&(e.useProxy=!0,t=`${u}?${t}`),s.token&&y&&n.body instanceof FormData){const e=n.body;e.set?e.set("token",s.token):e.append("token",s.token)}if(r.hasOwnProperty("withCredentials"))e.withCredentials=r.withCredentials;else if(!(0,c.D6)(t,(0,c.TI)()))if((0,c.kl)(t))e.withCredentials=!0;else if(i.id){const r=i.id.findServerInfo(t);r&&r.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(n.credentials="include")}let p,f,g=0,b=!1;l>0&&(g=setTimeout((()=>{b=!0,e.controller.abort()}),l));try{if("native-request-init"===r.responseType)f=n,f.url=t;else if("image"!==r.responseType||"default"!==n.cache||"GET"!==n.method||h||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(r.headers)||!s&&!e.useProxy&&m.proxyUrl&&!w(t)){if(p=await d._abortableFetch(t,n),e.useProxy||function(e){const t=(0,c.P$)(e);t&&!d._corsServers.includes(t)&&d._corsServers.push(t)}(t),"native"===r.responseType)f=p;else if("HEAD"!==n.method)if(p.ok){switch(a){case"array-buffer":f=await p.arrayBuffer();break;case"blob":case"image":f=await p.blob();break;default:f=await p.text()}if(g&&(clearTimeout(g),g=0),"json"===a||"xml"===a||"document"===a)if(f)switch(a){case"json":f=JSON.parse(f);break;case"xml":f=O(f,"application/xml");break;case"document":f=O(f,"text/html")}else f=null;if(f){if("array-buffer"===a||"blob"===a){const e=p.headers.get("Content-Type");if(/application\/json|text\/plain/i.test(e)&&f["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(f).json();e.error&&(f=e)}catch{}}"image"===a&&f instanceof Blob&&(f=await T(URL.createObjectURL(f),e,!0))}}else f=await p.text()}else f=await T(t,e)}catch(n){if("AbortError"===n.name){if(b)throw new Error("Timeout exceeded");throw(0,u.zE)("Request canceled")}if(!(!p&&n instanceof TypeError&&m.proxyUrl)||r.body||"delete"===r.method||"head"===r.method||"post"===r.method||"put"===r.method||e.useProxy||w(t))throw n;e.redoRequest=!0,(0,c.tD)({proxyUrl:m.proxyUrl,urlPrefix:(0,c.P$)(t)})}finally{g&&clearTimeout(g)}return[p,f]}function O(e,t){let r;try{r=(new DOMParser).parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function I(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const n=e.params.requestOptions;if(!t||"native"===n.responseType||"native-request-init"===n.responseType)return!0;let s,o,a,l;if(!t.ok)throw s=new Error(`Unable to load ${t.url} status: ${t.status}`),s[M]=r,s;null!=r&&r.error&&(s=r.error),s&&(o=Number(s.code),a=s.hasOwnProperty("subcode")?Number(s.subcode):null,l=s.messageCode,l=l&&l.toUpperCase());const u=n.authMode;if(403===o&&(4===a||s.message&&s.message.toLowerCase().indexOf("ssl")>-1&&-1===s.message.toLowerCase().indexOf("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===o)&&-1!==g.indexOf(o)&&!E(e.params.url)&&(403!==o||-1===b.indexOf(l)&&(null==a||2===a&&e.credentialToken))){await x();try{const t=await i.id.getCredential(e.params.url,{error:S("request:server",s,e.params),prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===u)return e.credential=null,e.credentialToken=null,!1;s=t}}if(s)throw s;return!0}function T(e,t,r=!1){const n=t.controller.signal,i=new Image;return t.withCredentials?i.crossOrigin="use-credentials":i.crossOrigin="anonymous",i.alt="",i.src=e,(0,p.f)(i,e,r,n)}d._abortableFetch=null,d._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(e,t,r)=>{r.d(t,{r:()=>s});var n=r(17452);const i=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function s(e){const t=(0,n.P$)(e,!0);return t&&t.endsWith(".arcgis.com")&&!i.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,r)=>{r.d(t,{f:()=>o});var n=r(80442),i=r(70586),s=r(95330);function o(e,t,r=!1,o){return new Promise(((l,u)=>{if((0,s.Hc)(o))return void u(a());let c=()=>{d(),u(new Error(`Unable to load ${t}`))},h=()=>{const t=e;d(),l(t)},p=()=>{if(!e)return;const t=e;d(),t.src="",u(a())};const d=()=>{(0,n.Z)("esri-image-decode")||(e.removeEventListener("error",c),e.removeEventListener("load",h)),c=null,h=null,e=null,(0,i.pC)(o)&&o.removeEventListener("abort",p),p=null,r&&URL.revokeObjectURL(t)};(0,i.pC)(o)&&o.addEventListener("abort",p),(0,n.Z)("esri-image-decode")?e.decode().then(h,c):(e.addEventListener("error",c),e.addEventListener("load",h))}))}function a(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}},20682:(e,t,r)=>{r.d(t,{Z:()=>M});var n,i=r(43697),s=r(35454),o=r(96674),a=r(70586),l=r(5600),u=(r(67676),r(80442),r(75215),r(71715)),c=r(52011),h=r(30556),p=r(35671);let d=n=class extends o.wq{async collectRequiredFields(e,t){return(0,p.io)(e,t,this.expression)}clone(){return new n({expression:this.expression,title:this.title})}};(0,i._)([(0,l.Cb)({type:String,json:{write:!0}})],d.prototype,"expression",void 0),(0,i._)([(0,l.Cb)({type:String,json:{write:!0}})],d.prototype,"title",void 0),d=n=(0,i._)([(0,c.j)("esri.layers.support.FeatureExpressionInfo")],d);const f=d;var m=r(99282);const y=function(){const e=Object.keys(m.a);return e.sort(),e}();var g;const b=(0,s.wY)()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"}),v=new s.Xn({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});let _=g=class extends o.wq{constructor(){super(...arguments),this.offset=null}readFeatureExpressionInfo(e,t){return null!=e?e:t.featureExpression&&0===t.featureExpression.value?{expression:"0"}:void 0}writeFeatureExpressionInfo(e,t,r,n){t[r]=e.write({},n),"0"===e.expression&&(t.featureExpression={value:0})}get mode(){const{offset:e,featureExpressionInfo:t}=this;return this._isOverridden("mode")?this._get("mode"):(0,a.pC)(e)||t?"relative-to-ground":"on-the-ground"}set mode(e){this._override("mode",e)}set unit(e){this._set("unit",e)}write(e,t){return this.offset||this.mode||this.featureExpressionInfo||this.unit?super.write(e,t):null}clone(){return new g({mode:this.mode,offset:this.offset,featureExpressionInfo:this.featureExpressionInfo?this.featureExpressionInfo.clone():void 0,unit:this.unit})}};(0,i._)([(0,l.Cb)({type:f,json:{write:!0}})],_.prototype,"featureExpressionInfo",void 0),(0,i._)([(0,u.r)("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],_.prototype,"readFeatureExpressionInfo",null),(0,i._)([(0,h.c)("featureExpressionInfo",{featureExpressionInfo:{type:f},"featureExpression.value":{type:[0]}})],_.prototype,"writeFeatureExpressionInfo",null),(0,i._)([(0,l.Cb)({type:b.apiValues,nonNullable:!0,json:{type:b.jsonValues,read:b.read,write:{writer:b.write,isRequired:!0}}})],_.prototype,"mode",null),(0,i._)([(0,l.Cb)({type:Number,json:{write:!0}})],_.prototype,"offset",void 0),(0,i._)([(0,l.Cb)({type:y,json:{type:String,read:v.read,write:v.write}})],_.prototype,"unit",null),_=g=(0,i._)([(0,c.j)("esri.layers.support.ElevationInfo")],_);const M=_},65242:(e,t,r)=>{r.d(t,{a:()=>i,b:()=>s});var n=r(75215);function i(e){const t=(0,n.vU)(100*(1-e));return Math.max(0,Math.min(t,100))}function s(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8589,3172],{92835:(e,t,r)=>{r.d(t,{Z:()=>m});var n,i=r(43697),s=r(96674),o=r(70586),a=r(35463),l=r(5600),u=(r(67676),r(80442),r(75215),r(71715)),c=r(52011),h=r(30556);let p=n=class extends s.wq{constructor(e){super(e),this.end=null,this.start=null}static get allTime(){return d}static get empty(){return f}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?e.getTime():null}get isAllTime(){return this.equals(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?e.getTime():null}clone(){return new n({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=(0,o.pC)(this.start)?this.start.getTime():this.start,r=(0,o.pC)(this.end)?this.end.getTime():this.end,n=(0,o.pC)(e.start)?e.start.getTime():e.start,i=(0,o.pC)(e.end)?e.end.getTime():e.end;return t===n&&r===i}expandTo(e){if(this.isEmpty||this.isAllTime)return this.clone();const t=(0,o.Po)(this.start,(t=>(0,a.JE)(t,e))),r=(0,o.Po)(this.end,(t=>(0,a.Nm)((0,a.JE)(t,e),1,e)));return new n({start:t,end:r})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return n.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=(0,o.R2)(this.start,-1/0,(e=>e.getTime())),r=(0,o.R2)(this.end,1/0,(e=>e.getTime())),i=(0,o.R2)(e.start,-1/0,(e=>e.getTime())),s=(0,o.R2)(e.end,1/0,(e=>e.getTime()));let a,l;if(i>=t&&i<=r?a=i:t>=i&&t<=s&&(a=t),r>=i&&r<=s?l=r:s>=t&&s<=r&&(l=s),!isNaN(a)&&!isNaN(l)){const e=new n;return e.start=a===-1/0?null:new Date(a),e.end=l===1/0?null:new Date(l),e}return n.empty}offset(e,t){if(this.isEmpty||this.isAllTime)return this.clone();const r=new n,{start:i,end:s}=this;return(0,o.pC)(i)&&(r.start=(0,a.Nm)(i,e,t)),(0,o.pC)(s)&&(r.end=(0,a.Nm)(s,e,t)),r}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return d.clone();const t=(0,o.pC)(this.start)&&(0,o.pC)(e.start)?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=(0,o.pC)(this.end)&&(0,o.pC)(e.end)?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new n({start:t,end:r})}};(0,i._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),(0,i._)([(0,u.r)("end")],p.prototype,"readEnd",null),(0,i._)([(0,h.c)("end")],p.prototype,"writeEnd",null),(0,i._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],p.prototype,"isAllTime",null),(0,i._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],p.prototype,"isEmpty",null),(0,i._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),(0,i._)([(0,u.r)("start")],p.prototype,"readStart",null),(0,i._)([(0,h.c)("start")],p.prototype,"writeStart",null),p=n=(0,i._)([(0,c.j)("esri.TimeExtent")],p);const d=new p,f=new p({start:void 0,end:void 0}),m=p},46851:(e,t,r)=>{r.d(t,{E:()=>n,R:()=>i});const n=1e-6,i=Math.random,s=Math.PI/180,o=180/Math.PI;Object.freeze({__proto__:null,EPSILON:n,RANDOM:i,toRadian:function(e){return e*s},toDegree:function(e){return e*o},equals:function(e,t){return Math.abs(e-t)<=n*Math.max(1,Math.abs(e),Math.abs(t))}})},52138:(e,t,r)=>{r.d(t,{a:()=>l,d:()=>m,e:()=>p,f:()=>d,h:()=>h,i:()=>o,j:()=>c,m:()=>u,p:()=>w,s:()=>s,t:()=>a,u:()=>f,v:()=>M,w:()=>_,y:()=>y});var n=r(65617),i=r(46851);function s(e,t,r,n,i,s,o,a,l,u,c,h,p,d,f,m,y){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e[4]=s,e[5]=o,e[6]=a,e[7]=l,e[8]=u,e[9]=c,e[10]=h,e[11]=p,e[12]=d,e[13]=f,e[14]=m,e[15]=y,e}function o(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function a(e,t){if(e===t){const r=t[1],n=t[2],i=t[3],s=t[6],o=t[7],a=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=s,e[11]=t[14],e[12]=i,e[13]=o,e[14]=a}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function l(e,t){const r=t[0],n=t[1],i=t[2],s=t[3],o=t[4],a=t[5],l=t[6],u=t[7],c=t[8],h=t[9],p=t[10],d=t[11],f=t[12],m=t[13],y=t[14],g=t[15],b=r*a-n*o,v=r*l-i*o,_=r*u-s*o,M=n*l-i*a,w=n*u-s*a,S=i*u-s*l,x=c*m-h*f,E=c*y-p*f,C=c*g-d*f,O=h*y-p*m,I=h*g-d*m,T=p*g-d*y;let L=b*T-v*I+_*O+M*C-w*E+S*x;return L?(L=1/L,e[0]=(a*T-l*I+u*O)*L,e[1]=(i*I-n*T-s*O)*L,e[2]=(m*S-y*w+g*M)*L,e[3]=(p*w-h*S-d*M)*L,e[4]=(l*C-o*T-u*E)*L,e[5]=(r*T-i*C+s*E)*L,e[6]=(y*_-f*S-g*v)*L,e[7]=(c*S-p*_+d*v)*L,e[8]=(o*I-a*C+u*x)*L,e[9]=(n*C-r*I-s*x)*L,e[10]=(f*w-m*_+g*b)*L,e[11]=(h*_-c*w-d*b)*L,e[12]=(a*E-o*O-l*x)*L,e[13]=(r*O-n*E+i*x)*L,e[14]=(m*v-f*M-y*b)*L,e[15]=(c*M-h*v+p*b)*L,e):null}function u(e,t,r){const n=t[0],i=t[1],s=t[2],o=t[3],a=t[4],l=t[5],u=t[6],c=t[7],h=t[8],p=t[9],d=t[10],f=t[11],m=t[12],y=t[13],g=t[14],b=t[15];let v=r[0],_=r[1],M=r[2],w=r[3];return e[0]=v*n+_*a+M*h+w*m,e[1]=v*i+_*l+M*p+w*y,e[2]=v*s+_*u+M*d+w*g,e[3]=v*o+_*c+M*f+w*b,v=r[4],_=r[5],M=r[6],w=r[7],e[4]=v*n+_*a+M*h+w*m,e[5]=v*i+_*l+M*p+w*y,e[6]=v*s+_*u+M*d+w*g,e[7]=v*o+_*c+M*f+w*b,v=r[8],_=r[9],M=r[10],w=r[11],e[8]=v*n+_*a+M*h+w*m,e[9]=v*i+_*l+M*p+w*y,e[10]=v*s+_*u+M*d+w*g,e[11]=v*o+_*c+M*f+w*b,v=r[12],_=r[13],M=r[14],w=r[15],e[12]=v*n+_*a+M*h+w*m,e[13]=v*i+_*l+M*p+w*y,e[14]=v*s+_*u+M*d+w*g,e[15]=v*o+_*c+M*f+w*b,e}function c(e,t,r){const n=r[0],i=r[1],s=r[2];let o,a,l,u,c,h,p,d,f,m,y,g;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*s+t[12],e[13]=t[1]*n+t[5]*i+t[9]*s+t[13],e[14]=t[2]*n+t[6]*i+t[10]*s+t[14],e[15]=t[3]*n+t[7]*i+t[11]*s+t[15]):(o=t[0],a=t[1],l=t[2],u=t[3],c=t[4],h=t[5],p=t[6],d=t[7],f=t[8],m=t[9],y=t[10],g=t[11],e[0]=o,e[1]=a,e[2]=l,e[3]=u,e[4]=c,e[5]=h,e[6]=p,e[7]=d,e[8]=f,e[9]=m,e[10]=y,e[11]=g,e[12]=o*n+c*i+f*s+t[12],e[13]=a*n+h*i+m*s+t[13],e[14]=l*n+p*i+y*s+t[14],e[15]=u*n+d*i+g*s+t[15]),e}function h(e,t,r){const n=r[0],i=r[1],s=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*s,e[9]=t[9]*s,e[10]=t[10]*s,e[11]=t[11]*s,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function p(e,t,r,n){let s,o,a,l,u,c,h,p,d,f,m,y,g,b,v,_,M,w,S,x,E,C,O,I,T=n[0],L=n[1],A=n[2],R=Math.sqrt(T*T+L*L+A*A);return R<i.E?null:(R=1/R,T*=R,L*=R,A*=R,s=Math.sin(r),o=Math.cos(r),a=1-o,l=t[0],u=t[1],c=t[2],h=t[3],p=t[4],d=t[5],f=t[6],m=t[7],y=t[8],g=t[9],b=t[10],v=t[11],_=T*T*a+o,M=L*T*a+A*s,w=A*T*a-L*s,S=T*L*a-A*s,x=L*L*a+o,E=A*L*a+T*s,C=T*A*a+L*s,O=L*A*a-T*s,I=A*A*a+o,e[0]=l*_+p*M+y*w,e[1]=u*_+d*M+g*w,e[2]=c*_+f*M+b*w,e[3]=h*_+m*M+v*w,e[4]=l*S+p*x+y*E,e[5]=u*S+d*x+g*E,e[6]=c*S+f*x+b*E,e[7]=h*S+m*x+v*E,e[8]=l*C+p*O+y*I,e[9]=u*C+d*O+g*I,e[10]=c*C+f*O+b*I,e[11]=h*C+m*O+v*I,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}function d(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function f(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function m(e,t,r){let n,s,o,a=r[0],l=r[1],u=r[2],c=Math.sqrt(a*a+l*l+u*u);return c<i.E?null:(c=1/c,a*=c,l*=c,u*=c,n=Math.sin(t),s=Math.cos(t),o=1-s,e[0]=a*a*o+s,e[1]=l*a*o+u*n,e[2]=u*a*o-l*n,e[3]=0,e[4]=a*l*o-u*n,e[5]=l*l*o+s,e[6]=u*l*o+a*n,e[7]=0,e[8]=a*u*o+l*n,e[9]=l*u*o-a*n,e[10]=u*u*o+s,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}function y(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function g(e,t,r){const n=t[0],i=t[1],s=t[2],o=t[3],a=n+n,l=i+i,u=s+s,c=n*a,h=n*l,p=n*u,d=i*l,f=i*u,m=s*u,y=o*a,g=o*l,b=o*u;return e[0]=1-(d+m),e[1]=h+b,e[2]=p-g,e[3]=0,e[4]=h-b,e[5]=1-(c+m),e[6]=f+y,e[7]=0,e[8]=p+g,e[9]=f-y,e[10]=1-(c+d),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}const b=(0,n.c)();function v(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}function _(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function M(e,t){if(e===t)return!0;const r=e[0],n=e[1],s=e[2],o=e[3],a=e[4],l=e[5],u=e[6],c=e[7],h=e[8],p=e[9],d=e[10],f=e[11],m=e[12],y=e[13],g=e[14],b=e[15],v=t[0],_=t[1],M=t[2],w=t[3],S=t[4],x=t[5],E=t[6],C=t[7],O=t[8],I=t[9],T=t[10],L=t[11],A=t[12],R=t[13],j=t[14],q=t[15];return Math.abs(r-v)<=i.E*Math.max(1,Math.abs(r),Math.abs(v))&&Math.abs(n-_)<=i.E*Math.max(1,Math.abs(n),Math.abs(_))&&Math.abs(s-M)<=i.E*Math.max(1,Math.abs(s),Math.abs(M))&&Math.abs(o-w)<=i.E*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(a-S)<=i.E*Math.max(1,Math.abs(a),Math.abs(S))&&Math.abs(l-x)<=i.E*Math.max(1,Math.abs(l),Math.abs(x))&&Math.abs(u-E)<=i.E*Math.max(1,Math.abs(u),Math.abs(E))&&Math.abs(c-C)<=i.E*Math.max(1,Math.abs(c),Math.abs(C))&&Math.abs(h-O)<=i.E*Math.max(1,Math.abs(h),Math.abs(O))&&Math.abs(p-I)<=i.E*Math.max(1,Math.abs(p),Math.abs(I))&&Math.abs(d-T)<=i.E*Math.max(1,Math.abs(d),Math.abs(T))&&Math.abs(f-L)<=i.E*Math.max(1,Math.abs(f),Math.abs(L))&&Math.abs(m-A)<=i.E*Math.max(1,Math.abs(m),Math.abs(A))&&Math.abs(y-R)<=i.E*Math.max(1,Math.abs(y),Math.abs(R))&&Math.abs(g-j)<=i.E*Math.max(1,Math.abs(g),Math.abs(j))&&Math.abs(b-q)<=i.E*Math.max(1,Math.abs(b),Math.abs(q))}function w(e){const t=i.E,r=e[0],n=e[1],s=e[2],o=e[4],a=e[5],l=e[6],u=e[8],c=e[9],h=e[10];return Math.abs(1-(r*r+o*o+u*u))<=t&&Math.abs(1-(n*n+a*a+c*c))<=t&&Math.abs(1-(s*s+l*l+h*h))<=t}const S=u,x=v;Object.freeze({__proto__:null,copy:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},set:s,identity:o,transpose:a,invert:l,adjoint:function(e,t){const r=t[0],n=t[1],i=t[2],s=t[3],o=t[4],a=t[5],l=t[6],u=t[7],c=t[8],h=t[9],p=t[10],d=t[11],f=t[12],m=t[13],y=t[14],g=t[15];return e[0]=a*(p*g-d*y)-h*(l*g-u*y)+m*(l*d-u*p),e[1]=-(n*(p*g-d*y)-h*(i*g-s*y)+m*(i*d-s*p)),e[2]=n*(l*g-u*y)-a*(i*g-s*y)+m*(i*u-s*l),e[3]=-(n*(l*d-u*p)-a*(i*d-s*p)+h*(i*u-s*l)),e[4]=-(o*(p*g-d*y)-c*(l*g-u*y)+f*(l*d-u*p)),e[5]=r*(p*g-d*y)-c*(i*g-s*y)+f*(i*d-s*p),e[6]=-(r*(l*g-u*y)-o*(i*g-s*y)+f*(i*u-s*l)),e[7]=r*(l*d-u*p)-o*(i*d-s*p)+c*(i*u-s*l),e[8]=o*(h*g-d*m)-c*(a*g-u*m)+f*(a*d-u*h),e[9]=-(r*(h*g-d*m)-c*(n*g-s*m)+f*(n*d-s*h)),e[10]=r*(a*g-u*m)-o*(n*g-s*m)+f*(n*u-s*a),e[11]=-(r*(a*d-u*h)-o*(n*d-s*h)+c*(n*u-s*a)),e[12]=-(o*(h*y-p*m)-c*(a*y-l*m)+f*(a*p-l*h)),e[13]=r*(h*y-p*m)-c*(n*y-i*m)+f*(n*p-i*h),e[14]=-(r*(a*y-l*m)-o*(n*y-i*m)+f*(n*l-i*a)),e[15]=r*(a*p-l*h)-o*(n*p-i*h)+c*(n*l-i*a),e},determinant:function(e){const t=e[0],r=e[1],n=e[2],i=e[3],s=e[4],o=e[5],a=e[6],l=e[7],u=e[8],c=e[9],h=e[10],p=e[11],d=e[12],f=e[13],m=e[14],y=e[15];return(t*o-r*s)*(h*y-p*m)-(t*a-n*s)*(c*y-p*f)+(t*l-i*s)*(c*m-h*f)+(r*a-n*o)*(u*y-p*d)-(r*l-i*o)*(u*m-h*d)+(n*l-i*a)*(u*f-c*d)},multiply:u,translate:c,scale:h,rotate:p,rotateX:function(e,t,r){const n=Math.sin(r),i=Math.cos(r),s=t[4],o=t[5],a=t[6],l=t[7],u=t[8],c=t[9],h=t[10],p=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=s*i+u*n,e[5]=o*i+c*n,e[6]=a*i+h*n,e[7]=l*i+p*n,e[8]=u*i-s*n,e[9]=c*i-o*n,e[10]=h*i-a*n,e[11]=p*i-l*n,e},rotateY:function(e,t,r){const n=Math.sin(r),i=Math.cos(r),s=t[0],o=t[1],a=t[2],l=t[3],u=t[8],c=t[9],h=t[10],p=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*i-u*n,e[1]=o*i-c*n,e[2]=a*i-h*n,e[3]=l*i-p*n,e[8]=s*n+u*i,e[9]=o*n+c*i,e[10]=a*n+h*i,e[11]=l*n+p*i,e},rotateZ:function(e,t,r){const n=Math.sin(r),i=Math.cos(r),s=t[0],o=t[1],a=t[2],l=t[3],u=t[4],c=t[5],h=t[6],p=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*i+u*n,e[1]=o*i+c*n,e[2]=a*i+h*n,e[3]=l*i+p*n,e[4]=u*i-s*n,e[5]=c*i-o*n,e[6]=h*i-a*n,e[7]=p*i-l*n,e},fromTranslation:d,fromScaling:f,fromRotation:m,fromXRotation:y,fromYRotation:function(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:function(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromRotationTranslation:g,fromQuat2:function(e,t){const r=b,n=-t[0],i=-t[1],s=-t[2],o=t[3],a=t[4],l=t[5],u=t[6],c=t[7],h=n*n+i*i+s*s+o*o;return h>0?(r[0]=2*(a*o+c*n+l*s-u*i)/h,r[1]=2*(l*o+c*i+u*n-a*s)/h,r[2]=2*(u*o+c*s+a*i-l*n)/h):(r[0]=2*(a*o+c*n+l*s-u*i),r[1]=2*(l*o+c*i+u*n-a*s),r[2]=2*(u*o+c*s+a*i-l*n)),g(e,t,r),e},getTranslation:function(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e},getScaling:function(e,t){const r=t[0],n=t[1],i=t[2],s=t[4],o=t[5],a=t[6],l=t[8],u=t[9],c=t[10];return e[0]=Math.sqrt(r*r+n*n+i*i),e[1]=Math.sqrt(s*s+o*o+a*a),e[2]=Math.sqrt(l*l+u*u+c*c),e},getRotation:function(e,t){const r=t[0]+t[5]+t[10];let n=0;return r>0?(n=2*Math.sqrt(r+1),e[3]=.25*n,e[0]=(t[6]-t[9])/n,e[1]=(t[8]-t[2])/n,e[2]=(t[1]-t[4])/n):t[0]>t[5]&&t[0]>t[10]?(n=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/n,e[0]=.25*n,e[1]=(t[1]+t[4])/n,e[2]=(t[8]+t[2])/n):t[5]>t[10]?(n=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/n,e[0]=(t[1]+t[4])/n,e[1]=.25*n,e[2]=(t[6]+t[9])/n):(n=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/n,e[0]=(t[8]+t[2])/n,e[1]=(t[6]+t[9])/n,e[2]=.25*n),e},fromRotationTranslationScale:function(e,t,r,n){const i=t[0],s=t[1],o=t[2],a=t[3],l=i+i,u=s+s,c=o+o,h=i*l,p=i*u,d=i*c,f=s*u,m=s*c,y=o*c,g=a*l,b=a*u,v=a*c,_=n[0],M=n[1],w=n[2];return e[0]=(1-(f+y))*_,e[1]=(p+v)*_,e[2]=(d-b)*_,e[3]=0,e[4]=(p-v)*M,e[5]=(1-(h+y))*M,e[6]=(m+g)*M,e[7]=0,e[8]=(d+b)*w,e[9]=(m-g)*w,e[10]=(1-(h+f))*w,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e},fromRotationTranslationScaleOrigin:function(e,t,r,n,i){const s=t[0],o=t[1],a=t[2],l=t[3],u=s+s,c=o+o,h=a+a,p=s*u,d=s*c,f=s*h,m=o*c,y=o*h,g=a*h,b=l*u,v=l*c,_=l*h,M=n[0],w=n[1],S=n[2],x=i[0],E=i[1],C=i[2],O=(1-(m+g))*M,I=(d+_)*M,T=(f-v)*M,L=(d-_)*w,A=(1-(p+g))*w,R=(y+b)*w,j=(f+v)*S,q=(y-b)*S,D=(1-(p+m))*S;return e[0]=O,e[1]=I,e[2]=T,e[3]=0,e[4]=L,e[5]=A,e[6]=R,e[7]=0,e[8]=j,e[9]=q,e[10]=D,e[11]=0,e[12]=r[0]+x-(O*x+L*E+j*C),e[13]=r[1]+E-(I*x+A*E+q*C),e[14]=r[2]+C-(T*x+R*E+D*C),e[15]=1,e},fromQuat:function(e,t){const r=t[0],n=t[1],i=t[2],s=t[3],o=r+r,a=n+n,l=i+i,u=r*o,c=n*o,h=n*a,p=i*o,d=i*a,f=i*l,m=s*o,y=s*a,g=s*l;return e[0]=1-h-f,e[1]=c+g,e[2]=p-y,e[3]=0,e[4]=c-g,e[5]=1-u-f,e[6]=d+m,e[7]=0,e[8]=p+y,e[9]=d-m,e[10]=1-u-h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},frustum:function(e,t,r,n,i,s,o){const a=1/(r-t),l=1/(i-n),u=1/(s-o);return e[0]=2*s*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*s*l,e[6]=0,e[7]=0,e[8]=(r+t)*a,e[9]=(i+n)*l,e[10]=(o+s)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*s*2*u,e[15]=0,e},perspective:function(e,t,r,n,i){const s=1/Math.tan(t/2);let o;return e[0]=s/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=i&&i!==1/0?(o=1/(n-i),e[10]=(i+n)*o,e[14]=2*i*n*o):(e[10]=-1,e[14]=-2*n),e},perspectiveFromFieldOfView:function(e,t,r,n){const i=Math.tan(t.upDegrees*Math.PI/180),s=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),a=Math.tan(t.rightDegrees*Math.PI/180),l=2/(o+a),u=2/(i+s);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-(o-a)*l*.5,e[9]=(i-s)*u*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e},ortho:function(e,t,r,n,i,s,o){const a=1/(t-r),l=1/(n-i),u=1/(s-o);return e[0]=-2*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*a,e[13]=(i+n)*l,e[14]=(o+s)*u,e[15]=1,e},lookAt:function(e,t,r,n){let s,a,l,u,c,h,p,d,f,m;const y=t[0],g=t[1],b=t[2],v=n[0],_=n[1],M=n[2],w=r[0],S=r[1],x=r[2];return Math.abs(y-w)<i.E&&Math.abs(g-S)<i.E&&Math.abs(b-x)<i.E?o(e):(p=y-w,d=g-S,f=b-x,m=1/Math.sqrt(p*p+d*d+f*f),p*=m,d*=m,f*=m,s=_*f-M*d,a=M*p-v*f,l=v*d-_*p,m=Math.sqrt(s*s+a*a+l*l),m?(m=1/m,s*=m,a*=m,l*=m):(s=0,a=0,l=0),u=d*l-f*a,c=f*s-p*l,h=p*a-d*s,m=Math.sqrt(u*u+c*c+h*h),m?(m=1/m,u*=m,c*=m,h*=m):(u=0,c=0,h=0),e[0]=s,e[1]=u,e[2]=p,e[3]=0,e[4]=a,e[5]=c,e[6]=d,e[7]=0,e[8]=l,e[9]=h,e[10]=f,e[11]=0,e[12]=-(s*y+a*g+l*b),e[13]=-(u*y+c*g+h*b),e[14]=-(p*y+d*g+f*b),e[15]=1,e)},targetTo:function(e,t,r,n){const i=t[0],s=t[1],o=t[2],a=n[0],l=n[1],u=n[2];let c=i-r[0],h=s-r[1],p=o-r[2],d=c*c+h*h+p*p;d>0&&(d=1/Math.sqrt(d),c*=d,h*=d,p*=d);let f=l*p-u*h,m=u*c-a*p,y=a*h-l*c;return d=f*f+m*m+y*y,d>0&&(d=1/Math.sqrt(d),f*=d,m*=d,y*=d),e[0]=f,e[1]=m,e[2]=y,e[3]=0,e[4]=h*y-p*m,e[5]=p*f-c*y,e[6]=c*m-h*f,e[7]=0,e[8]=c,e[9]=h,e[10]=p,e[11]=0,e[12]=i,e[13]=s,e[14]=o,e[15]=1,e},str:function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)},add:function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e},subtract:v,multiplyScalar:function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e},multiplyScalarAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e[4]=t[4]+r[4]*n,e[5]=t[5]+r[5]*n,e[6]=t[6]+r[6]*n,e[7]=t[7]+r[7]*n,e[8]=t[8]+r[8]*n,e[9]=t[9]+r[9]*n,e[10]=t[10]+r[10]*n,e[11]=t[11]+r[11]*n,e[12]=t[12]+r[12]*n,e[13]=t[13]+r[13]*n,e[14]=t[14]+r[14]*n,e[15]=t[15]+r[15]*n,e},exactEquals:_,equals:M,isOrthoNormal:w,mul:S,sub:x})},25929:(e,t,r)=>{r.d(t,{M:()=>d,f:()=>s,i:()=>h,p:()=>m,r:()=>a,t:()=>o,w:()=>l});var n=r(70586),i=r(17452);function s(e,t){const r=t&&t.url&&t.url.path;if(e&&r&&(e=(0,i.hF)(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const r=(0,i.PF)(e,t.portalItem.itemUrl);c.test(r)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(r).path)}return p(e,t&&t.portal)}function o(e,t,r=d.YES){if(!e)return e;!(0,i.YP)(e)&&t&&t.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let n=(0,i.hF)(e);if(t){const r=t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.rootPath||t.url&&t.url.path;if(r){const s=p(r,t.portal);n=(0,i.PF)(p(n,t.portal),s,s),n!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(n)}}return n=function(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?(0,i.Ie)(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}(n,t&&t.portal),(0,i.YP)(n)&&(n=(0,i.Fv)(n)),null!=t&&t.resources&&null!=t&&t.portalItem&&!(0,i.YP)(n)&&!(0,i.HK)(n)&&r===d.YES&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(n)}),n}function a(e,t,r){return s(e,r)}function l(e,t,r,n){const i=o(e,n);void 0!==i&&(t[r]=i)}const u=/\/items\/([^\/]+)\/resources\//,c=/^\.\/resources\//;function h(e){const t=(0,n.pC)(e)?e.match(u):null;return(0,n.pC)(t)?t[1]:null}function p(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const r=`${t.urlKey}.${t.customBaseUrl}`,n=(0,i.TI)();return(0,i.D6)(n,`${n.scheme}://${r}`)?(0,i.Ie)(e,t.portalHostname,r):(0,i.Ie)(e,r,t.portalHostname)}var d,f;(f=d||(d={}))[f.YES=0]="YES",f[f.NO=1]="NO";const m=Object.freeze({__proto__:null,fromJSON:s,toJSON:o,read:a,write:l,itemIdFromResourceUrl:h,get MarkKeep(){return d}})},17896:(e,t,r)=>{r.d(t,{E:()=>h,a:()=>p,b:()=>l,c:()=>b,d:()=>g,e:()=>v,f:()=>u,g:()=>o,h:()=>f,i:()=>d,k:()=>E,l:()=>s,m:()=>_,n:()=>y,p:()=>m,q:()=>w,r:()=>C,s:()=>a,t:()=>M,u:()=>R});var n=r(65617),i=r(46851);function s(e){const t=e[0],r=e[1],n=e[2];return Math.sqrt(t*t+r*r+n*n)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,r,n){return e[0]=t,e[1]=r,e[2]=n,e}function l(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function u(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function c(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function h(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function p(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function d(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(r*r+n*n+i*i)}function f(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return r*r+n*n+i*i}function m(e){const t=e[0],r=e[1],n=e[2];return t*t+r*r+n*n}function y(e,t){const r=t[0],n=t[1],i=t[2];let s=r*r+n*n+i*i;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function g(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function b(e,t,r){const n=t[0],i=t[1],s=t[2],o=r[0],a=r[1],l=r[2];return e[0]=i*l-s*a,e[1]=s*o-n*l,e[2]=n*a-i*o,e}function v(e,t,r,n){const i=t[0],s=t[1],o=t[2];return e[0]=i+n*(r[0]-i),e[1]=s+n*(r[1]-s),e[2]=o+n*(r[2]-o),e}function _(e,t,r){const n=t[0],i=t[1],s=t[2];return e[0]=r[0]*n+r[4]*i+r[8]*s+r[12],e[1]=r[1]*n+r[5]*i+r[9]*s+r[13],e[2]=r[2]*n+r[6]*i+r[10]*s+r[14],e}function M(e,t,r){const n=t[0],i=t[1],s=t[2];return e[0]=n*r[0]+i*r[3]+s*r[6],e[1]=n*r[1]+i*r[4]+s*r[7],e[2]=n*r[2]+i*r[5]+s*r[8],e}function w(e,t,r){const n=r[0],i=r[1],s=r[2],o=r[3],a=t[0],l=t[1],u=t[2];let c=i*u-s*l,h=s*a-n*u,p=n*l-i*a,d=i*p-s*h,f=s*c-n*p,m=n*h-i*c;const y=2*o;return c*=y,h*=y,p*=y,d*=2,f*=2,m*=2,e[0]=a+c+d,e[1]=l+h+f,e[2]=u+p+m,e}const S=(0,n.c)(),x=(0,n.c)();function E(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function C(e,t,r){const n=r[0]-t[0],i=r[1]-t[1],s=r[2]-t[2];let o=n*n+i*i+s*s;return o>0?(o=1/Math.sqrt(o),e[0]=n*o,e[1]=i*o,e[2]=s*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const O=u,I=c,T=h,L=d,A=f,R=s,j=m;Object.freeze({__proto__:null,length:s,copy:o,set:a,add:l,subtract:u,multiply:c,divide:h,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},min:function(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e},max:function(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:p,scaleAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e},distance:d,squaredDistance:f,squaredLength:m,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e},normalize:y,dot:g,cross:b,lerp:v,hermite:function(e,t,r,n,i,s){const o=s*s,a=o*(2*s-3)+1,l=o*(s-2)+s,u=o*(s-1),c=o*(3-2*s);return e[0]=t[0]*a+r[0]*l+n[0]*u+i[0]*c,e[1]=t[1]*a+r[1]*l+n[1]*u+i[1]*c,e[2]=t[2]*a+r[2]*l+n[2]*u+i[2]*c,e},bezier:function(e,t,r,n,i,s){const o=1-s,a=o*o,l=s*s,u=a*o,c=3*s*a,h=3*l*o,p=l*s;return e[0]=t[0]*u+r[0]*c+n[0]*h+i[0]*p,e[1]=t[1]*u+r[1]*c+n[1]*h+i[1]*p,e[2]=t[2]*u+r[2]*c+n[2]*h+i[2]*p,e},random:function(e,t){t=t||1;const r=2*(0,i.R)()*Math.PI,n=2*(0,i.R)()-1,s=Math.sqrt(1-n*n)*t;return e[0]=Math.cos(r)*s,e[1]=Math.sin(r)*s,e[2]=n*t,e},transformMat4:_,transformMat3:M,transformQuat:w,rotateX:function(e,t,r,n){const i=[],s=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],s[0]=i[0],s[1]=i[1]*Math.cos(n)-i[2]*Math.sin(n),s[2]=i[1]*Math.sin(n)+i[2]*Math.cos(n),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateY:function(e,t,r,n){const i=[],s=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],s[0]=i[2]*Math.sin(n)+i[0]*Math.cos(n),s[1]=i[1],s[2]=i[2]*Math.cos(n)-i[0]*Math.sin(n),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateZ:function(e,t,r,n){const i=[],s=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],s[0]=i[0]*Math.cos(n)-i[1]*Math.sin(n),s[1]=i[0]*Math.sin(n)+i[1]*Math.cos(n),s[2]=i[2],e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},angle:function(e,t){o(S,e),o(x,t),y(S,S),y(x,x);const r=g(S,x);return r>1?0:r<-1?Math.PI:Math.acos(r)},str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},exactEquals:E,equals:function(e,t){if(e===t)return!0;const r=e[0],n=e[1],s=e[2],o=t[0],a=t[1],l=t[2];return Math.abs(r-o)<=i.E*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(n-a)<=i.E*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(s-l)<=i.E*Math.max(1,Math.abs(s),Math.abs(l))},direction:C,sub:O,mul:I,div:T,dist:L,sqrDist:A,len:R,sqrLen:j})},65617:(e,t,r)=>{function n(){return[0,0,0]}function i(e){return[e[0],e[1],e[2]]}function s(e,t,r){return[e,t,r]}function o(e){const t=[0,0,0],r=Math.min(3,e.length);for(let n=0;n<r;++n)t[n]=e[n];return t}function a(e,t){return new Float64Array(e,t,3)}function l(){return s(1,1,1)}function u(){return s(1,0,0)}function c(){return s(0,1,0)}function h(){return s(0,0,1)}r.d(t,{O:()=>d,Z:()=>p,a:()=>i,b:()=>a,c:()=>n,d:()=>o,f:()=>s});const p=[0,0,0],d=l(),f=u(),m=c(),y=h();Object.freeze({__proto__:null,create:n,clone:i,fromValues:s,fromArray:o,createView:a,zeros:function(){return[0,0,0]},ones:l,unitX:u,unitY:c,unitZ:h,ZEROS:p,ONES:d,UNIT_X:f,UNIT_Y:m,UNIT_Z:y})},98766:(e,t,r)=>{r.d(t,{a:()=>o,b:()=>c,c:()=>i,d:()=>y,e:()=>d,f:()=>f,g:()=>b,h:()=>v,l:()=>g,n:()=>m,s:()=>s});var n=r(46851);function i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function s(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function o(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e}function a(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e}function l(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function u(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e}function c(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function h(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],s=t[3]-e[3];return Math.sqrt(r*r+n*n+i*i+s*s)}function p(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],s=t[3]-e[3];return r*r+n*n+i*i+s*s}function d(e){const t=e[0],r=e[1],n=e[2],i=e[3];return Math.sqrt(t*t+r*r+n*n+i*i)}function f(e){const t=e[0],r=e[1],n=e[2],i=e[3];return t*t+r*r+n*n+i*i}function m(e,t){const r=t[0],n=t[1],i=t[2],s=t[3];let o=r*r+n*n+i*i+s*s;return o>0&&(o=1/Math.sqrt(o),e[0]=r*o,e[1]=n*o,e[2]=i*o,e[3]=s*o),e}function y(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function g(e,t,r,n){const i=t[0],s=t[1],o=t[2],a=t[3];return e[0]=i+n*(r[0]-i),e[1]=s+n*(r[1]-s),e[2]=o+n*(r[2]-o),e[3]=a+n*(r[3]-a),e}function b(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function v(e,t){const r=e[0],i=e[1],s=e[2],o=e[3],a=t[0],l=t[1],u=t[2],c=t[3];return Math.abs(r-a)<=n.E*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-l)<=n.E*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(s-u)<=n.E*Math.max(1,Math.abs(s),Math.abs(u))&&Math.abs(o-c)<=n.E*Math.max(1,Math.abs(o),Math.abs(c))}const _=a,M=l,w=u,S=h,x=p,E=d,C=f;Object.freeze({__proto__:null,copy:i,set:s,add:o,subtract:a,multiply:l,divide:u,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},min:function(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e},max:function(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e},scale:c,scaleAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e},distance:h,squaredDistance:p,length:d,squaredLength:f,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},normalize:m,dot:y,lerp:g,random:function(e,t){let r,i,s,o,a,l;t=t||1;do{r=2*(0,n.R)()-1,i=2*(0,n.R)()-1,a=r*r+i*i}while(a>=1);do{s=2*(0,n.R)()-1,o=2*(0,n.R)()-1,l=s*s+o*o}while(l>=1);const u=Math.sqrt((1-a)/l);return e[0]=t*r,e[1]=t*i,e[2]=t*s*u,e[3]=t*o*u,e},transformMat4:function(e,t,r){const n=t[0],i=t[1],s=t[2],o=t[3];return e[0]=r[0]*n+r[4]*i+r[8]*s+r[12]*o,e[1]=r[1]*n+r[5]*i+r[9]*s+r[13]*o,e[2]=r[2]*n+r[6]*i+r[10]*s+r[14]*o,e[3]=r[3]*n+r[7]*i+r[11]*s+r[15]*o,e},transformQuat:function(e,t,r){const n=t[0],i=t[1],s=t[2],o=r[0],a=r[1],l=r[2],u=r[3],c=u*n+a*s-l*i,h=u*i+l*n-o*s,p=u*s+o*i-a*n,d=-o*n-a*i-l*s;return e[0]=c*u+d*-o+h*-l-p*-a,e[1]=h*u+d*-a+p*-o-c*-l,e[2]=p*u+d*-l+c*-a-h*-o,e[3]=t[3],e},str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},exactEquals:b,equals:v,sub:_,mul:M,div:w,dist:S,sqrDist:x,len:E,sqrLen:C})},80539:(e,t,r)=>{r.d(t,{Z:()=>A});var n,i=r(43697),s=r(3894),o=r(32448),a=r(22974),l=r(70586),u=r(71143);!function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"}(n||(n={}));var c,h=r(1654),p=r(5600),d=r(75215),f=r(52421),m=r(52011),y=r(58971),g=r(39020);class b{constructor(){this._observers=[]}observe(e){return this._observers.includes(e)||this._observers.push(e),new g.X(this._observers,e)}notify(){const e=this._observers.slice();for(let t=0;t<e.length;++t){const r=e[t];r.onInvalidated(),r.onCommitted()}}}const v=new u.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(e){this.defaultPrevented=!1,this.item=e}},void 0,(e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1})),_=()=>{};function M(e){return e?e instanceof L?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function w(e){if(e&&e.length)return e[0]}function S(e,t,r,n){const i=Math.min(e.length-r,t.length-n);let s=0;for(;s<i&&e[r+s]===t[n+s];)s++;return s}function x(e,t,r,n){t&&t.forEach(((t,i,s)=>{e.push(t),x(e,r.call(n,t,i,s),r,n)}))}const E=new Set,C=new Set,O=new Set,I=new Map;let T=0,L=c=class extends o.Z.EventedAccessor{constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._timer=null,this._observable=new b,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:T++})}static isCollection(e){return null!=e&&e instanceof c}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof c?{items:e}:e:{}}destroy(){this.removeAll()}*[Symbol.iterator](){yield*this.items}get items(){return(0,y.it)(this._observable),this._items}set items(e){this._emitBeforeChanges(n.ADD)||(this._splice(0,this.length,M(e)),this._emitAfterChanges(n.ADD))}hasEventListener(e){return"change"===e?this._chgListeners.length>0:this._emitter.hasEventListener(e)}on(e,t){if("change"===e){const e=this._chgListeners,r={removed:!1,callback:t};return e.push(r),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),{remove(){this.remove=_,r.removed=!0,e.splice(e.indexOf(r),1)}}}return this._emitter.on(e,t)}once(e,t){const r=this.on(e,t);return{remove(){r.remove()}}}add(e,t){if((0,y.it)(this._observable),this._emitBeforeChanges(n.ADD))return this;const r=this.getNextIndex(null!=t?t:null);return this._splice(r,0,[e]),this._emitAfterChanges(n.ADD),this}addMany(e,t=this._items.length){if((0,y.it)(this._observable),!e||!e.length)return this;if(this._emitBeforeChanges(n.ADD))return this;const r=this.getNextIndex(t);return this._splice(r,0,M(e)),this._emitAfterChanges(n.ADD),this}removeAll(){if((0,y.it)(this._observable),!this.length||this._emitBeforeChanges(n.REMOVE))return[];const e=this._splice(0,this.length)||[];return this._emitAfterChanges(n.REMOVE),e}clone(){return(0,y.it)(this._observable),this._createNewInstance({items:this._items.map(a.d9)})}concat(...e){(0,y.it)(this._observable);const t=e.map(M);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,y.it)(this._observable),!this.length||this._emitBeforeChanges(n.REMOVE))return;const r=(0,l.j0)(this._splice(0,this.length)),i=r.length;for(let n=0;n<i;n++)e.call(t,r[n],n,r);this._emitAfterChanges(n.REMOVE)}every(e,t){return(0,y.it)(this._observable),this._items.every(e,t)}filter(e,t){let r;return(0,y.it)(this._observable),r=2===arguments.length?this._items.filter(e,t):this._items.filter(e),this._createNewInstance({items:r})}find(e,t){return(0,y.it)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,y.it)(this._observable),this._items.findIndex(e,t)}flatten(e,t){(0,y.it)(this._observable);const r=[];return x(r,this,e,t),new c(r)}forEach(e,t){return(0,y.it)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,y.it)(this._observable),this._items[e]}getNextIndex(e){(0,y.it)(this._observable);const t=this.length;return(e=null==e?t:e)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,y.it)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,y.it)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,y.it)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,y.it)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,y.it)(this._observable);const r=this._items.map(e,t);return new c({items:r})}reorder(e,t=this.length-1){(0,y.it)(this._observable);const r=this.indexOf(e);if(-1!==r){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(n.MOVE))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(n.MOVE)}return e}}pop(){if((0,y.it)(this._observable),!this.length||this._emitBeforeChanges(n.REMOVE))return;const e=w(this._splice(this.length-1,1));return this._emitAfterChanges(n.REMOVE),e}push(...e){return(0,y.it)(this._observable),this._emitBeforeChanges(n.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(n.ADD)),this.length}reduce(e,t){(0,y.it)(this._observable);const r=this._items;return 2===arguments.length?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){(0,y.it)(this._observable);const r=this._items;return 2===arguments.length?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return(0,y.it)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,y.it)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(n.REMOVE))return;const t=w(this._splice(e,1));return this._emitAfterChanges(n.REMOVE),t}removeMany(e){if((0,y.it)(this._observable),!e||!e.length||this._emitBeforeChanges(n.REMOVE))return[];const t=e instanceof c?e.toArray():e,r=this._items,i=[],s=t.length;for(let e=0;e<s;e++){const n=t[e],s=r.indexOf(n);if(s>-1){const n=1+S(t,r,e+1,s+1),o=this._splice(s,n);o&&o.length>0&&i.push.apply(i,o),e+=n-1}}return this._emitAfterChanges(n.REMOVE),i}reverse(){if((0,y.it)(this._observable),this._emitBeforeChanges(n.MOVE))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(n.MOVE),this}shift(){if((0,y.it)(this._observable),!this.length||this._emitBeforeChanges(n.REMOVE))return;const e=w(this._splice(0,1));return this._emitAfterChanges(n.REMOVE),e}slice(e=0,t=this.length){return(0,y.it)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,y.it)(this._observable),this._items.some(e,t)}sort(e){if((0,y.it)(this._observable),!this.length||this._emitBeforeChanges(n.MOVE))return this;const t=(0,l.j0)(this._splice(0,this.length));return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(n.MOVE),this}splice(e,t,...r){(0,y.it)(this._observable);const i=(t?n.REMOVE:0)|(r.length?n.ADD:0);if(this._emitBeforeChanges(i))return[];const s=this._splice(e,t,r)||[];return this._emitAfterChanges(i),s}toArray(){return(0,y.it)(this._observable),this._items.slice()}toJSON(){return(0,y.it)(this._observable),this.toArray()}toLocaleString(){return(0,y.it)(this._observable),this._items.toLocaleString()}toString(){return(0,y.it)(this._observable),this._items.toString()}unshift(...e){return(0,y.it)(this._observable),!e.length||this._emitBeforeChanges(n.ADD)||(this._splice(0,0,e),this._emitAfterChanges(n.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){const n=this._items,i=this.itemType;let s,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,h.Os)((()=>this._dispatchChange()))),t){if(o=n.splice(e,t),this.hasEventListener("before-remove")){const t=v.acquire();t.target=this,t.cancellable=!0;for(let r=0,i=o.length;r<i;r++)s=o[r],t.reset(s),this.emit("before-remove",t),t.defaultPrevented&&(o.splice(r,1),n.splice(e,0,s),e+=1,r-=1,i-=1);v.release(t)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const e=v.acquire();e.target=this,e.cancellable=!1;const t=o.length;for(let r=0;r<t;r++)e.reset(o[r]),this.emit("after-remove",e);v.release(e)}}if(r&&r.length){if(i){const e=[];for(const t of r){const r=i.ensureType(t);null==r&&null!=t||e.push(r)}r=e}const t=this.hasEventListener("before-add"),s=this.hasEventListener("after-add"),o=e===this.length;if(t||s){const i=v.acquire();i.target=this,i.cancellable=!0;const a=v.acquire();a.target=this,a.cancellable=!1;for(const l of r)t?(i.reset(l),this.emit("before-add",i),i.defaultPrevented||(o?n.push(l):n.splice(e++,0,l),this._set("length",n.length),s&&(a.reset(l),this.emit("after-add",a)))):(o?n.push(l):n.splice(e++,0,l),this._set("length",n.length),a.reset(l),this.emit("after-add",a));v.release(a),v.release(i)}else{if(o)for(const e of r)n.push(e);else n.splice(e,0,...r);this._set("length",n.length)}}return(r&&r.length||o&&o.length)&&this._notifyChangeEvent(r,o),o}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const r=v.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,v.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=v.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),v.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;E.clear(),C.clear(),O.clear();for(const{added:t,removed:r}of e){if(t)if(0===O.size&&0===C.size)for(const e of t)E.add(e);else for(const e of t)C.has(e)?(O.add(e),C.delete(e)):O.has(e)||E.add(e);if(r)if(0===O.size&&0===E.size)for(const e of r)C.add(e);else for(const e of r)E.has(e)?E.delete(e):(O.delete(e),C.add(e))}const r=s.Z.acquire();E.forEach((e=>{r.push(e)}));const n=s.Z.acquire();C.forEach((e=>{n.push(e)}));const i=this._items,o=t.items,a=s.Z.acquire();if(O.forEach((e=>{o.indexOf(e)!==i.indexOf(e)&&a.push(e)})),t.listeners&&(r.length||n.length||a.length)){const e={target:this,added:r,removed:n,moved:a},i=t.listeners.length;for(let r=0;r<i;r++){const n=t.listeners[r];n.removed||n.callback.call(this,e)}}s.Z.release(r),s.Z.release(n),s.Z.release(a)}E.clear(),C.clear(),O.clear()}};L.ofType=e=>{if(!e)return c;if(I.has(e))return I.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const r in e.typeMap){const n=e.typeMap[r].prototype.declaredClass;t?t+=` | ${n}`:t=n}let r=class extends c{};return(0,i._)([(0,f.c)({Type:e,ensureType:"function"==typeof e?(0,d.se)(e):(0,d.N7)(e)})],r.prototype,"itemType",void 0),r=(0,i._)([(0,m.j)(`esri.core.Collection<${t}>`)],r),I.set(e,r),r},(0,i._)([(0,p.Cb)()],L.prototype,"length",void 0),(0,i._)([(0,p.Cb)()],L.prototype,"items",null),L=c=(0,i._)([(0,m.j)("esri.core.Collection")],L);const A=L},32448:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(43697),i=r(15923),s=r(50758),o=r(52011);class a{constructor(){this._emitter=new a.EventEmitter(this)}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}}!function(e){class t{constructor(e=null){this.target=e,this._listenersMap=null}clear(){this._listenersMap&&this._listenersMap.clear(),this._listenersMap=null}emit(e,t){const r=this._listenersMap&&this._listenersMap.get(e);if(!r)return!1;const n=this.target||this;return[...r].forEach((e=>{e.call(n,t)})),r.length>0}on(e,t){if(Array.isArray(e)){const r=e.map((e=>this.on(e,t)));return(0,s.AL)(r)}if(e.indexOf(",")>-1)throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap||(this._listenersMap=new Map);const r=this._listenersMap.get(e)||[];return r.push(t),this._listenersMap.set(e,r),{remove:()=>{const r=this._listenersMap&&this._listenersMap.get(e)||[],n=r.indexOf(t);n>=0&&r.splice(n,1)}}}once(e,t){const r=this.on(e,(e=>{r.remove(),t.call(null,e)}));return r}hasEventListener(e){const t=this._listenersMap&&this._listenersMap.get(e);return null!=t&&t.length>0}}e.EventEmitter=t,e.EventedMixin=e=>{let r=class extends e{constructor(){super(...arguments),this._emitter=new t}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};return r=(0,n._)([(0,o.j)("esri.core.Evented")],r),r};let r=class extends i.Z{constructor(){super(...arguments),this._emitter=new a.EventEmitter(this)}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};r=(0,n._)([(0,o.j)("esri.core.Evented")],r),e.EventedAccessor=r}(a||(a={}));const l=a},61247:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(43697),i=r(15923),s=r(80539),o=r(70586),a=r(5600),l=r(52011);let u=class extends i.Z{constructor(e){super(e),this._groups=new Map}destroy(){this.removeAll()}get size(){let e=0;return this._groups.forEach((t=>{e+=t.length})),e}add(e,t){if(!this._isHandle(e)&&!Array.isArray(e)&&!s.Z.isCollection(e))return this;const r=this._getOrCreateGroup(t);return Array.isArray(e)||s.Z.isCollection(e)?e.forEach((e=>this._isHandle(e)&&r.push(e))):r.push(e),this.notifyChange("size"),this}forEach(e,t){if("function"==typeof e)this._groups.forEach((t=>t.forEach(e)));else{const r=this._getGroup(e);r&&t&&r.forEach(t)}}has(e){return this._groups.has(this._ensureGroupKey(e))}remove(e){if(Array.isArray(e)||s.Z.isCollection(e))return e.forEach(this.remove,this),this;if(!this.has(e))return this;const t=this._getGroup(e);for(let e=0;e<t.length;e++)t[e].remove();return this._deleteGroup(e),this.notifyChange("size"),this}removeAll(){return this._groups.forEach((e=>{for(let t=0;t<e.length;t++)e[t].remove()})),this._groups.clear(),this.notifyChange("size"),this}_isHandle(e){return e&&!!e.remove}_getOrCreateGroup(e){if(this.has(e))return this._getGroup(e);const t=[];return this._groups.set(this._ensureGroupKey(e),t),t}_getGroup(e){return(0,o.j0)(this._groups.get(this._ensureGroupKey(e)))}_deleteGroup(e){return this._groups.delete(this._ensureGroupKey(e))}_ensureGroupKey(e){return e||"_default_"}};(0,n._)([(0,a.Cb)({readOnly:!0})],u.prototype,"size",null),u=(0,n._)([(0,l.j)("esri.core.Handles")],u);const c=u},10699:(e,t,r)=>{r.d(t,{I:()=>o});var n=r(43697),i=r(52011);let s=0;const o=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return t=(0,n._)([(0,i.j)("esri.core.Identifiable")],t),t};let a=class extends(o(class{})){};a=(0,n._)([(0,i.j)("esri.core.Identifiable")],a)},16453:(e,t,r)=>{r.d(t,{R:()=>v,w:()=>_});var n=r(43697),i=r(15923),s=r(70586),o=r(41103),a=r(22974),l=r(31263);class u{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(l.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new u,r=this._originStores[l.s3.DEFAULTS];r&&r.forEach(((e,r)=>{t.set(r,(0,a.d9)(e),l.s3.DEFAULTS)}));for(let r=l.s3.SERVICE;r<l.kk;r++){const n=this._originStores[r];n&&n.forEach(((n,i)=>{e&&e.has(i)||t.set(i,(0,a.d9)(n),r)}))}return t}get(e,t){const r=void 0===t?this._values:this._originStores[t];return r?r.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,r=l.s3.USER){let n=this._originStores[r];if(n||(n=new Map,this._originStores[r]=n),n.set(e,t),!this._values.has(e)||(0,s.j0)(this._propertyOriginMap.get(e))<=r){const n=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),n!==t}return!1}delete(e,t=l.s3.USER){const r=this._originStores[t];if(!r)return;const n=r.get(e);if(r.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let r=t-1;r>=0;r--){const t=this._originStores[r];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,r);break}}}return n}has(e,t){const r=void 0===t?this._values:this._originStores[t];return!!r&&r.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const r=this._originStores[t],n=r&&r.get(e),i=this._values.get(e);return this._values.set(e,n),this._propertyOriginMap.set(e,t),i!==n}originOf(e){return this._propertyOriginMap.get(e)||l.s3.DEFAULTS}forEach(e){this._values.forEach(e)}}var c=r(50549),h=r(1153),p=r(52011);const d=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,s.j0)((0,h.vw)(this)),r=t.store,n=new u;t.store=n,(0,o.M)(t,r,n)}read(e,t){(0,c.ij)(this,e,t)}getAtOrigin(e,t){const r=f(this),n=(0,l.M9)(t);if("string"==typeof e)return r.get(e,n);const i={};return e.forEach((e=>{i[e]=r.get(e,n)})),i}originOf(e){return(0,l.x3)(this.originIdOf(e))}originIdOf(e){return f(this).originOf(e)}revert(e,t){const r=f(this),n=(0,l.M9)(t),i=(0,h.vw)(this);let s;s="string"==typeof e?"*"===e?r.keys(n):[e]:e,s.forEach((e=>{i.invalidate(e),r.revert(e,n),i.commit(e)}))}};return t=(0,n._)([(0,p.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function f(e){return(0,h.vw)(e).store}let m=class extends(d(i.Z)){};m=(0,n._)([(0,p.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],m);var y=r(76169);const g=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return b(this).delete(e,(0,l.M9)(t))}write(e={},t){return(0,y.cW)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,h.vw)(this).setAtOrigin(e,t,(0,l.M9)(r))}removeOrigin(e){const t=b(this),r=(0,l.M9)(e),n=t.keys(r);for(const e of n)t.originOf(e)===r&&t.set(e,t.get(e,r),l.s3.USER)}updateOrigin(e,t){const r=b(this),n=(0,l.M9)(t),i=this.get(e);for(let t=n+1;t<l.kk;++t)r.delete(e,t);r.set(e,i,n)}toJSON(e){return this.write({},e)}};return t=(0,n._)([(0,p.j)("esri.core.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function b(e){return(0,h.vw)(e).store}const v=e=>{let t=class extends(g(d(e))){constructor(...e){super(...e)}};return t=(0,n._)([(0,p.j)("esri.core.MultiOriginJSONSupport")],t),t};let _=class extends(v(i.Z)){};_=(0,n._)([(0,p.j)("esri.core.MultiOriginJSONSupport")],_)},36030:(e,t,r)=>{r.d(t,{J:()=>s});var n=r(35454),i=r(5600);function s(e,t={}){var r;const s=e instanceof n.Xn?e:new n.Xn(e,t),o={type:null==(r=null==t?void 0:t.ignoreUnknown)||r?s.apiValues:String,json:{type:s.jsonValues,read:(null==t||!t.readOnly)&&{reader:s.read},write:{writer:s.write}}};return void 0!==(null==t?void 0:t.readOnly)&&(o.readOnly=!!t.readOnly),void 0!==(null==t?void 0:t.default)&&(o.json.default=t.default),void 0!==(null==t?void 0:t.name)&&(o.json.name=t.name),(0,i.Cb)(o)}},52421:(e,t,r)=>{function n(e){return(t,r)=>{t[r]=e}}r.d(t,{c:()=>n})},22021:(e,t,r)=>{r.d(t,{ZF:()=>p,Kt:()=>d,jE:()=>y,uZ:()=>o,oK:()=>f,Vl:()=>c,wt:()=>a,t7:()=>u,Sf:()=>s,fp:()=>l,BV:()=>h});var n=r(17896);r(98766);const i=new Float32Array(1);function s(e){--e;for(let t=1;t<32;t<<=1)e|=e>>t;return e+1}function o(e,t,r){return Math.min(Math.max(e,t),r)}function a(e){return 0==(e&e-1)}function l(e){return e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,++e}function u(e,t,r){return e+(t-e)*r}function c(e){return e*Math.PI/180}function h(e){return 180*e/Math.PI}function p(e){return Math.acos(o(e,-1,1))}function d(e){return Math.asin(o(e,-1,1))}function f(e){return m(Math.max(-g,Math.min(e,g)))}function m(e){return i[0]=e,i[0]}function y(e,t){const r=(0,n.l)(e),i=d(e[2]/r),s=Math.atan2(e[1]/r,e[0]/r);return(0,n.s)(t,r,i,s),t}const g=m(34028234663852886e22)},35463:(e,t,r)=>{r.d(t,{rJ:()=>a,Nm:()=>s,JE:()=>o}),r(80442);const n={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8},i={milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",multiplier:1},seconds:{getter:"getSeconds",setter:"setSeconds",multiplier:1},minutes:{getter:"getMinutes",setter:"setMinutes",multiplier:1},hours:{getter:"getHours",setter:"setHours",multiplier:1},days:{getter:"getDate",setter:"setDate",multiplier:1},weeks:{getter:"getDate",setter:"setDate",multiplier:7},months:{getter:"getMonth",setter:"setMonth",multiplier:1},years:{getter:"getFullYear",setter:"setFullYear",multiplier:1},decades:{getter:"getFullYear",setter:"setFullYear",multiplier:10},centuries:{getter:"getFullYear",setter:"setFullYear",multiplier:100}};function s(e,t,r){const n=new Date(e.getTime());if(t&&r){const e=i[r],{getter:s,setter:o,multiplier:a}=e;if("months"===r){const e=function(e,t){const r=new Date(e,t+1,1);return r.setDate(0),r.getDate()}(n.getFullYear(),n.getMonth()+t);n.getDate()>e&&n.setDate(e)}n[o](n[s]()+t*a)}return n}function o(e,t){switch(t){case"milliseconds":return new Date(e.getTime());case"seconds":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());case"minutes":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes());case"hours":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours());case"days":return new Date(e.getFullYear(),e.getMonth(),e.getDate());case"weeks":return new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay());case"months":return new Date(e.getFullYear(),e.getMonth(),1);case"years":return new Date(e.getFullYear(),0,1);case"decades":return new Date(e.getFullYear()-e.getFullYear()%10,0,1);case"centuries":return new Date(e.getFullYear()-e.getFullYear()%100,0,1);default:return new Date}}function a(e,t,r){return 0===e?0:e*n[t]/n[r]}},43050:(e,t,r)=>{r.d(t,{S1:()=>o,on:()=>h,OY:()=>c,cm:()=>l,N1:()=>a,LR:()=>u,tH:()=>p});var n=r(91460),i=(r(22974),r(95330));const s=/\?(\.|$)/g;function o(e,t,r,n){const i=Array.isArray(t)?t:t.indexOf(",")>-1?t.split(","):[t],o=function(e,t,r,n){return e.watch(t,r,n)}(e,t,r,n);for(const t of i){const n=t.trim().replace(s,"$1"),i=e.get(n);r.call(e,i,i,n,e)}return o}function a(e,t,r,n){return p(e,t,d,r,n)}function l(e,t,r,n){return p(e,t,f,r,n)}function u(e,t,r,n){return p(e,t,m,r,n)}function c(e,t,r,n){return p(e,t,y,r,n)}function h(e,t,r,i,s,a,l){const u={};function c(t){const n=u[t];n&&(a&&a(n.target,t,e,r),n.handle.remove(),delete u[t])}const h=o(e,t,((t,o,a)=>{c(a),(0,n.vT)(t)&&(u[a]={handle:(0,n.on)(t,r,i),target:t},s&&s(t,a,e,r))}),l);return{remove(){h.remove();for(const e in u)c(e)}}}function p(e,t,r,n,s){const o="function"==typeof n?n:null,a="object"==typeof n?n:null;"boolean"==typeof n&&(s=n);let l,u=!1;function c(){l&&(l.remove(),l=null)}const h=(0,i.dD)();(0,i.fu)(a,(()=>{c(),h.reject((0,i.zE)())}));const p={then:h.promise.then.bind(h.promise),catch:h.promise.catch.bind(h.promise),remove:c};return Object.freeze(p),l=function(e,t,r,n,i){const s=e.watch(t,((t,i,s,o)=>{r&&!r(t)||null==n||n.call(e,t,i,s,o)}),i);if(Array.isArray(t))for(const i of t){const s=e.get(i);r&&r(s)&&(null==n||n.call(e,s,s,t,e))}else{const i=e.get(t);r&&r(i)&&(null==n||n.call(e,i,i,t,e))}return s}(e,t,r,((t,r,n,i)=>{u=!0,c(),o&&o.call(e,t,r,n,i),h.resolve({value:t,oldValue:r,propertyName:n,target:i})}),s),u&&c(),p}function d(e){return!!e}function f(e){return!e}function m(e){return!0===e}function y(e){return!1===e}},79235:(e,t,r)=>{r.d(t,{Z:()=>v});var n,i=r(43697),s=r(67676),o=r(35454),a=r(96674),l=r(67900),u=r(20941),c=r(5600),h=(r(80442),r(75215),r(71715)),p=r(52011),d=r(30556);const f=(0,o.wY)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=f.jsonValues.slice();(0,s.e$)(m,"orthometric");const y=(0,o.wY)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let g=n=class extends a.wq{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return f.write(e,t,r)}readHeightModel(e,t,r){return f.read(e)||(r&&r.messages&&r.messages.push(function(e,t){return new u.Z("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return y.read(e)||(r&&r.messages&&r.messages.push(b(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.$C)(e)||y.read(e)||(r&&r.messages&&r.messages.push(b(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new n({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.cM)(t);return new n({heightModel:e.heightModel,heightUnit:r,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new n;return t.read(e,{origin:"web-scene"}),t}};function b(e,t){return new u.Z("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,i._)([(0,c.Cb)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],g.prototype,"heightModel",void 0),(0,i._)([(0,d.c)("web-scene","heightModel")],g.prototype,"writeHeightModel",null),(0,i._)([(0,h.r)(["web-scene","service"],"heightModel")],g.prototype,"readHeightModel",null),(0,i._)([(0,c.Cb)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:y.jsonValues,write:y.write}}}})],g.prototype,"heightUnit",void 0),(0,i._)([(0,h.r)("web-scene","heightUnit")],g.prototype,"readHeightUnit",null),(0,i._)([(0,h.r)("service","heightUnit")],g.prototype,"readHeightUnitService",null),(0,i._)([(0,c.Cb)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],g.prototype,"vertCRS",void 0),(0,i._)([(0,h.r)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],g.prototype,"readVertCRS",null),g=n=(0,i._)([(0,p.j)("esri.geometry.HeightModelInfo")],g);const v=g},24470:(e,t,r)=>{r.d(t,{Gv:()=>p,SO:()=>u,r3:()=>h,Ue:()=>s,oJ:()=>a,al:()=>o,kK:()=>c,HH:()=>l}),r(80442),r(22021);var n=r(70586),i=r(6570);function s(e=d){return[e[0],e[1],e[2],e[3]]}function o(e,t,r,n,i=s()){return i[0]=e,i[1]=t,i[2]=r,i[3]=n,i}function a(e,t=s()){return t[0]=e.xmin,t[1]=e.ymin,t[2]=e.xmax,t[3]=e.ymax,t}function l(e,t){return new i.Z({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:t})}function u(e){return function(e){return(0,n.Wi)(e)||e[0]>=e[2]?0:e[2]-e[0]}(e)*function(e){return e[1]>=e[3]?0:e[3]-e[1]}(e)}function c(e,t){return Math.max(t[0],e[0])<=Math.min(t[2],e[2])&&Math.max(t[1],e[1])<=Math.min(t[3],e[3])}function h(e,t){return t[0]>=e[0]&&t[2]<=e[2]&&t[1]>=e[1]&&t[3]<=e[3]}const p=[1/0,1/0,-1/0,-1/0],d=[0,0,0,0]},69285:(e,t,r)=>{r.d(t,{k:()=>o});var n=r(70586),i=r(67900),s=r(8744);function o(e,t,r){if((0,n.Wi)(t)||(0,n.Wi)(r)||r.vcsWkid||(0,s.fS)(t,r))return null;const o=(0,i._R)(t)/(0,i._R)(r);if(1===o)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,o);case"extent":case"esriGeometryExtent":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return null}}},4717:(e,t,r)=>{r.r(t),r.d(t,{default:()=>X});var n=r(43697),i=r(20102),s=r(61247),o=r(70586),a=r(16453),l=r(95330),u=r(43050),c=r(5600),h=(r(67676),r(80442),r(75215),r(71715)),p=r(52011),d=r(81153),f=r(17452),m=r(41123),y=r(7628),g=r(31263);function b(e){return v[function(e){return e instanceof Blob?e.type:function(e){const t=(0,f.Ml)(e);return w[t]||_}(e.url)}(e)]||M}const v={},_="text/plain",M=v[_],w={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip"};for(const e in w)v[w[e]]=e;var S=r(25929);function x(e){const t=(0,o.pC)(e)&&e.origins?e.origins:[void 0];return(r,n)=>{const i=function(e,t,r){if((0,o.pC)(e)&&"resource"===e.type)return function(e,t,r){const n=(0,y.VZ)(t,r);return{type:String,read:(e,t,r)=>{const i=(0,S.r)(e,t,r);return n.type===String?i:"function"==typeof n.type?new n.type({url:i}):void 0},write:{writer(t,i,s,a){if(!a||!a.resources)return"string"==typeof t?void(i[s]=(0,S.t)(t,a)):void(i[s]=t.write({},a));const l=function(e){return(0,o.Wi)(e)?null:"string"==typeof e?e:e.url}(t),u=l?(0,S.t)(l,{...a,verifyItemRelativeUrls:a&&a.verifyItemRelativeUrls?{writtenUrls:a.verifyItemRelativeUrls.writtenUrls,rootPath:null}:null},S.M.NO):null,c=n.type!==String&&(!(0,d.l)(this)||a&&a.origin&&this.originIdOf(r)>(0,g.M9)(a.origin));a&&a.portalItem&&(0,o.pC)(u)&&!(0,f.YP)(u)?c?function(e,t,r,n,i,s,o,a){const l=o.portalItem.resourceFromPath(n),u=O(r,n,o);b(u)===(0,f.Ml)(l.path)?(C(e,t,l,u,o.resources.toUpdate),i[s]=n):E(e,t,r,n,i,s,o,a)}(this,r,t,u,i,s,a,e):function(e,t,r,n){n.resources.toKeep.push({resource:n.portalItem.resourceFromPath(e)}),t[r]=e}(u,i,s,a):a&&a.portalItem&&((0,o.Wi)(u)||(0,o.pC)((0,S.i)(u))||(0,f.jc)(u)||c)?E(this,r,t,u,i,s,a,e):i[s]=u}}}}(e,t,r);switch((0,o.pC)(e)&&e.type?e.type:"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=S.p;return{read:e,write:t}}}}(e,r,n);for(const e of t){const t=(0,c.CJ)(r,e,n);for(const e in i)t[e]=i[e]}}}function E(e,t,n,i,s,a,l,u){const c=(0,m.D)(),h=O(n,i,l),p=(0,f.v_)((0,o.U2)(u,"prefix"),c),d=`${p}.${b(h)}`,y=l.portalItem.resourceFromPath(d);(0,f.jc)(i)&&l.resources.pendingOperations.push(async function(e){const t=(await Promise.resolve().then(r.bind(r,3172))).default,{data:n}=await t(e,{responseType:"blob"});return n}(i).then((e=>{y.path=`${p}.${b(e)}`,s[a]=y.itemRelativeUrl})).catch((()=>{}))),C(e,t,y,h,l.resources.toAdd),s[a]=y.itemRelativeUrl}function C(e,t,r,n,i){i.push({resource:r,content:n,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function O(e,t,r){return"string"==typeof e?{url:t}:new Blob([JSON.stringify(e.toJSON(r))],{type:"application/json"})}var I,T=r(29600),L=r(54295),A=r(17287),R=r(38009),j=r(16859),q=r(72965),D=r(13496),N=r(21506),k=r(51161),U=r(3172),P=r(80539),F=r(96674),Z=(r(66577),r(22974)),G=r(20941),V=r(30556),B=r(90411),H=r(17332);let z=I=class extends F.wq{constructor(e){super(e),this.geometry=null,this.type="clip"}writeGeometry(e,t,r,n){if(n.layer&&n.layer.spatialReference&&!n.layer.spatialReference.equals(this.geometry.spatialReference)){if(!(0,B.Up)(e.spatialReference,n.layer.spatialReference))return void(n&&n.messages&&n.messages.push(new G.Z("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:n.layer.spatialReference,context:n})));const i=new H.Z;(0,B.Wt)(e,i,n.layer.spatialReference),t[r]=i.toJSON(n)}else t[r]=e.toJSON(n);delete t[r].spatialReference}clone(){return new I({geometry:(0,Z.d9)(this.geometry),type:this.type})}};(0,n._)([(0,c.Cb)({type:H.Z}),x()],z.prototype,"geometry",void 0),(0,n._)([(0,V.c)(["web-scene","portal-item"],"geometry")],z.prototype,"writeGeometry",null),(0,n._)([(0,c.Cb)({type:["clip","mask","replace"],nonNullable:!0}),x()],z.prototype,"type",void 0),z=I=(0,n._)([(0,p.j)("esri.layers.support.SceneModification")],z);const $=z;var J;let Y=J=class extends((0,F.eC)(P.Z.ofType($))){constructor(e){super(e),this.url=null}toJSON(e){return this.toArray().map((t=>t.toJSON(e))).filter((e=>!!e.geometry))}clone(){return new J({url:this.url,items:this.items.map((e=>e.clone()))})}_readModifications(e,t){for(const r of e)this.add($.fromJSON(r,t))}static fromJSON(e,t){const r=new J;return r._readModifications(e,t),r}static async fromUrl(e,t,r){const n={url:(0,f.mN)(e),origin:"service"},i=await(0,U.default)(e,{responseType:"json",signal:(0,o.U2)(r,"signal")}),s=t.toJSON(),a=[];for(const e of i.data)a.push($.fromJSON({...e,geometry:{...e.geometry,spatialReference:s}},n));return new J({url:e,items:a})}};(0,n._)([(0,c.Cb)({type:String})],Y.prototype,"url",void 0),Y=J=(0,n._)([(0,p.j)("esri.layers.support.SceneModifications")],Y);const W=Y;let K=class extends((0,D.Vt)((0,A.Y)((0,R.q)((0,j.I)((0,q.M)((0,a.R)((0,L.V)(T.Z)))))))){constructor(...e){super(...e),this.handles=new s.Z,this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this._modificationsSource=null,this.elevationInfo=null,this.path=null}destroy(){this.handles.destroy()}initialize(){this.handles.add((0,u.on)(this,"modifications","after-changes",(()=>this.modifications=this.modifications),null,null,!0))}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readModifications(e,t,r){this._modificationsSource={url:(0,S.f)(e,r),context:r}}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}async _doLoad(e){const t=(0,o.U2)(e,"signal");try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(e){(0,l.r9)(e)}if(await this._fetchService(t),(0,o.pC)(this._modificationsSource)){const t=await W.fromUrl(this._modificationsSource.url,this.spatialReference,e);this.setAtOrigin("modifications",t,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t)}beforeSave(){if(!(0,o.Wi)(this._modificationsSource))return this.load().then((()=>{}),(()=>{}))}async saveAs(e,t){return this._debouncedSaveOperations(D.xp.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"};return this._debouncedSaveOperations(D.xp.SAVE,e)}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new i.Z("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new i.Z("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new i.Z("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}};(0,n._)([(0,c.Cb)({type:String,readOnly:!0})],K.prototype,"geometryType",void 0),(0,n._)([(0,c.Cb)({type:["show","hide"]})],K.prototype,"listMode",void 0),(0,n._)([(0,c.Cb)({type:["IntegratedMeshLayer"]})],K.prototype,"operationalLayerType",void 0),(0,n._)([(0,c.Cb)({json:{read:!1},readOnly:!0})],K.prototype,"type",void 0),(0,n._)([(0,c.Cb)({type:k.U4,readOnly:!0})],K.prototype,"nodePages",void 0),(0,n._)([(0,c.Cb)({type:[k.QI],readOnly:!0})],K.prototype,"materialDefinitions",void 0),(0,n._)([(0,c.Cb)({type:[k.Yh],readOnly:!0})],K.prototype,"textureSetDefinitions",void 0),(0,n._)([(0,c.Cb)({type:[k.H3],readOnly:!0})],K.prototype,"geometryDefinitions",void 0),(0,n._)([(0,c.Cb)({readOnly:!0})],K.prototype,"serviceUpdateTimeStamp",void 0),(0,n._)([(0,c.Cb)({type:W}),x({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],K.prototype,"modifications",void 0),(0,n._)([(0,h.r)(["web-scene","portal-item"],"modifications")],K.prototype,"readModifications",null),(0,n._)([(0,c.Cb)(N.PV)],K.prototype,"elevationInfo",void 0),(0,n._)([(0,c.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],K.prototype,"path",void 0),K=(0,n._)([(0,p.j)("esri.layers.IntegratedMeshLayer")],K);const X=K},29600:(e,t,r)=>{r.d(t,{Z:()=>_});var n=r(43697),i=r(68773),s=(r(66577),r(3172)),o=r(20102),a=r(32448),l=r(10699),u=r(83379),c=r(92604),h=r(95330),p=r(17452),d=r(5600),f=(r(67676),r(80442),r(75215),r(52011)),m=r(6570),y=r(82971);let g=0;const b=c.Z.getLogger("esri.layers.Layer");let v=class extends(a.Z.EventedMixin((0,l.I)(u.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.Z(-180,-90,180,90,y.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=y.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e,n=await r.e(3529).then(r.bind(r,63529));try{return await n.fromUrl(t)}catch(e){throw b.error("#fromArcGISServerUrl({ url: '"+t.url+"'})","Failed to create layer from arcgis server url",e),e}}static async fromPortalItem(e){const t="portalItem"in e?e:{portalItem:e},n=await r.e(4579).then(r.bind(r,44579));try{return await n.fromItem(t)}catch(e){const r=t&&t.portalItem,n=r&&r.id||"unset",s=r&&r.portal&&r.portal.url||i.Z.portalUrl;throw b.error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+n+"')",e),e}}initialize(){this.when().catch((e=>{var t,r;(0,h.D_)(e)||c.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${null!=(t=this.title)?t:"no title"}', id: '${null!=(r=this.id)?r:"no id"}')`,{error:e})}))}destroy(){if(this.parent){const e=this,t=this.parent;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"baseLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){const e=this.url;return e?(0,p.mN)(e):null}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,s.default)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,n._)([(0,d.Cb)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,n._)([(0,d.Cb)({type:m.Z})],v.prototype,"fullExtent",void 0),(0,n._)([(0,d.Cb)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,n._)([(0,d.Cb)({type:String})],v.prototype,"id",void 0),(0,n._)([(0,d.Cb)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,n._)([(0,d.Cb)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,n._)([(0,d.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,n._)([(0,d.Cb)()],v.prototype,"parent",void 0),(0,n._)([(0,d.Cb)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,n._)([(0,d.Cb)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,n._)([(0,d.Cb)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,n._)([(0,d.Cb)({type:y.Z})],v.prototype,"spatialReference",void 0),(0,n._)([(0,d.Cb)({type:String})],v.prototype,"title",void 0),(0,n._)([(0,d.Cb)({type:String,readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,n._)([(0,d.Cb)()],v.prototype,"url",void 0),(0,n._)([(0,d.Cb)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,n._)([(0,f.j)("esri.layers.Layer")],v);const _=v},38009:(e,t,r)=>{r.d(t,{q:()=>d});var n=r(43697),i=r(20102),s=r(17452),o=r(5600),a=(r(67676),r(80442),r(75215),r(52011)),l=r(30556),u=r(50549),c=r(76169);const h={"web-scene/operational-layers":{ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISTiledElevationServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BuildingSceneLayer:!0,GroupLayer:!0,IntegratedMeshLayer:!0,OGCFeatureLayer:!0,PointCloudLayer:!0,WebTiledLayer:!0,CSV:!0,GeoJSON:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,KML:!0,RasterDataLayer:!0,Voxel:!0},"web-scene/basemap":{ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,WebTiledLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,ArcGISImageServiceLayer:!0,WMS:!0,ArcGISMapServiceLayer:!0},"web-scene/ground":{ArcGISTiledElevationServiceLayer:!0,RasterDataElevationLayer:!0},"web-map/operational-layers":{ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISStreamLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BingMapsAerial:!0,BingMapsHybrid:!0,BingMapsRoad:!0,CSV:!0,GeoRSS:!0,GeoJSON:!0,GroupLayer:!0,KML:!0,OGCFeatureLayer:!0,SubtypeGroupLayer:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,WebTiledLayer:!0},"web-map/basemap":{ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,WMS:!0,WebTiledLayer:!0,BingMapsAerial:!0,BingMapsRoad:!0,BingMapsHybrid:!0},"web-map/tables":{ArcGISFeatureLayer:!0},"portal-item/operational-layers":{ArcGISSceneServiceLayer:!0,PointCloudLayer:!0,BuildingSceneLayer:!0,IntegratedMeshLayer:!0}};var p=r(21506);const d=e=>{let t=class extends e{constructor(){super(...arguments),this.title=null}writeListMode(e,t,r,n){(n&&"ground"===n.layerContainerType||e&&(0,c.df)(this,r,{},n))&&(t[r]=e)}writeOperationalLayerType(e,t,r,n){!e||n&&"tables"===n.layerContainerType||(t.layerType=e)}writeTitle(e,t){t.title=e||"Layer"}read(e,t){t&&(t.layer=this),(0,u.$Z)(this,e,(t=>super.read(e,t)),t)}write(e,t){if(null!=t&&t.origin){const e=`${t.origin}/${t.layerContainerType||"operational-layers"}`,n=h[e];let s=n&&n[this.operationalLayerType];var r;if("ArcGISTiledElevationServiceLayer"===this.operationalLayerType&&"web-scene/operational-layers"===e&&(s=!1),!s)return null==(r=t.messages)||r.push(new i.Z("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this})),null}const n=super.write(e,{...t,layer:this}),o=!!t&&!!t.messages&&!!t.messages.filter((e=>e instanceof i.Z&&"web-document-write:property-required"===e.name)).length;var a;return(0,s.jc)(null==n?void 0:n.url)?(null==t||null==(a=t.messages)||a.push(new i.Z("layer:invalid-url",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Blob URL cannot be written to web scenes and web maps`,{layer:this})),null):!this.url&&o?null:n}beforeSave(){}};return(0,n._)([(0,o.Cb)({type:String,json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],t.prototype,"id",void 0),(0,n._)([(0,o.Cb)({json:{write:{ignoreOrigin:!0},origins:{"web-map":{read:!1,write:!1}}}})],t.prototype,"listMode",void 0),(0,n._)([(0,l.c)("listMode")],t.prototype,"writeListMode",null),(0,n._)([(0,o.Cb)({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1}}}})],t.prototype,"operationalLayerType",void 0),(0,n._)([(0,l.c)("operationalLayerType")],t.prototype,"writeOperationalLayerType",null),(0,n._)([(0,o.Cb)(p.Oh)],t.prototype,"opacity",void 0),(0,n._)([(0,o.Cb)({type:String,json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],t.prototype,"title",void 0),(0,n._)([(0,l.c)("title")],t.prototype,"writeTitle",null),(0,n._)([(0,o.Cb)({type:Boolean,json:{name:"visibility"}})],t.prototype,"visible",void 0),t=(0,n._)([(0,a.j)("esri.layers.mixins.OperationalLayer")],t),t}},72965:(e,t,r)=>{r.d(t,{M:()=>o});var n=r(43697),i=r(5600),s=(r(67676),r(80442),r(75215),r(52011));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,n._)([(0,i.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,n._)([(0,i.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,n._)([(0,i.Cb)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,n._)([(0,s.j)("esri.layers.mixins.ScaleRangeLayer")],t),t}},51161:(e,t,r)=>{r.d(t,{H3:()=>g,QI:()=>h,U4:()=>l,Yh:()=>d});var n=r(43697),i=r(96674),s=r(5600),o=(r(67676),r(80442),r(75215),r(36030)),a=r(52011);let l=class extends i.wq{constructor(){super(...arguments),this.nodesPerPage=null,this.rootIndex=0,this.lodSelectionMetricType=null}};(0,n._)([(0,s.Cb)({type:Number})],l.prototype,"nodesPerPage",void 0),(0,n._)([(0,s.Cb)({type:Number})],l.prototype,"rootIndex",void 0),(0,n._)([(0,s.Cb)({type:String})],l.prototype,"lodSelectionMetricType",void 0),l=(0,n._)([(0,a.j)("esri.layer.support.I3SNodePageDefinition")],l);let u=class extends i.wq{constructor(){super(...arguments),this.factor=1}};(0,n._)([(0,s.Cb)({type:Number,json:{read:{source:"textureSetDefinitionId"}}})],u.prototype,"id",void 0),(0,n._)([(0,s.Cb)({type:Number})],u.prototype,"factor",void 0),u=(0,n._)([(0,a.j)("esri.layer.support.I3SMaterialTexture")],u);let c=class extends i.wq{constructor(){super(...arguments),this.baseColorFactor=[1,1,1,1],this.baseColorTexture=null,this.metallicRoughnessTexture=null,this.metallicFactor=1,this.roughnessFactor=1}};(0,n._)([(0,s.Cb)({type:[Number]})],c.prototype,"baseColorFactor",void 0),(0,n._)([(0,s.Cb)({type:u})],c.prototype,"baseColorTexture",void 0),(0,n._)([(0,s.Cb)({type:u})],c.prototype,"metallicRoughnessTexture",void 0),(0,n._)([(0,s.Cb)({type:Number})],c.prototype,"metallicFactor",void 0),(0,n._)([(0,s.Cb)({type:Number})],c.prototype,"roughnessFactor",void 0),c=(0,n._)([(0,a.j)("esri.layer.support.I3SMaterialPBRMetallicRoughness")],c);let h=class extends i.wq{constructor(){super(...arguments),this.alphaMode="opaque",this.alphaCutoff=.25,this.doubleSided=!1,this.cullFace="none",this.normalTexture=null,this.occlusionTexture=null,this.emissiveTexture=null,this.emissiveFactor=null,this.pbrMetallicRoughness=null}};(0,n._)([(0,o.J)({opaque:"opaque",mask:"mask",blend:"blend"})],h.prototype,"alphaMode",void 0),(0,n._)([(0,s.Cb)({type:Number})],h.prototype,"alphaCutoff",void 0),(0,n._)([(0,s.Cb)({type:Boolean})],h.prototype,"doubleSided",void 0),(0,n._)([(0,o.J)({none:"none",back:"back",front:"front"})],h.prototype,"cullFace",void 0),(0,n._)([(0,s.Cb)({type:u})],h.prototype,"normalTexture",void 0),(0,n._)([(0,s.Cb)({type:u})],h.prototype,"occlusionTexture",void 0),(0,n._)([(0,s.Cb)({type:u})],h.prototype,"emissiveTexture",void 0),(0,n._)([(0,s.Cb)({type:[Number]})],h.prototype,"emissiveFactor",void 0),(0,n._)([(0,s.Cb)({type:c})],h.prototype,"pbrMetallicRoughness",void 0),h=(0,n._)([(0,a.j)("esri.layer.support.I3SMaterialDefinition")],h);let p=class extends i.wq{};(0,n._)([(0,s.Cb)({type:String,json:{read:{source:["name","index"],reader:(e,t)=>null!=e?e:`${t.index}`}}})],p.prototype,"name",void 0),(0,n._)([(0,o.J)({jpg:"jpg",png:"png",dds:"dds","ktx-etc2":"ktx-etc2",ktx2:"ktx2",basis:"basis"})],p.prototype,"format",void 0),p=(0,n._)([(0,a.j)("esri.layer.support.I3STextureFormat")],p);let d=class extends i.wq{constructor(){super(...arguments),this.atlas=!1}};(0,n._)([(0,s.Cb)({type:[p]})],d.prototype,"formats",void 0),(0,n._)([(0,s.Cb)({type:Boolean})],d.prototype,"atlas",void 0),d=(0,n._)([(0,a.j)("esri.layer.support.I3STextureSetDefinition")],d);let f=class extends i.wq{};(0,n._)([(0,o.J)({Float32:"Float32",UInt64:"UInt64",UInt32:"UInt32",UInt16:"UInt16",UInt8:"UInt8"})],f.prototype,"type",void 0),(0,n._)([(0,s.Cb)({type:Number})],f.prototype,"component",void 0),f=(0,n._)([(0,a.j)("esri.layer.support.I3SGeometryAttribute")],f);let m=class extends i.wq{};(0,n._)([(0,o.J)({draco:"draco"})],m.prototype,"encoding",void 0),(0,n._)([(0,s.Cb)({type:[String]})],m.prototype,"attributes",void 0),m=(0,n._)([(0,a.j)("esri.layer.support.I3SGeometryCompressedAttributes")],m);let y=class extends i.wq{constructor(){super(...arguments),this.offset=0}};(0,n._)([(0,s.Cb)({type:Number})],y.prototype,"offset",void 0),(0,n._)([(0,s.Cb)({type:f})],y.prototype,"position",void 0),(0,n._)([(0,s.Cb)({type:f})],y.prototype,"normal",void 0),(0,n._)([(0,s.Cb)({type:f})],y.prototype,"uv0",void 0),(0,n._)([(0,s.Cb)({type:f})],y.prototype,"color",void 0),(0,n._)([(0,s.Cb)({type:f})],y.prototype,"uvRegion",void 0),(0,n._)([(0,s.Cb)({type:f})],y.prototype,"featureId",void 0),(0,n._)([(0,s.Cb)({type:f})],y.prototype,"faceRange",void 0),(0,n._)([(0,s.Cb)({type:m})],y.prototype,"compressedAttributes",void 0),y=(0,n._)([(0,a.j)("esri.layer.support.I3SGeometryBuffer")],y);let g=class extends i.wq{};(0,n._)([(0,o.J)({triangle:"triangle"})],g.prototype,"topology",void 0),(0,n._)([(0,s.Cb)()],g.prototype,"geometryBuffers",void 0),g=(0,n._)([(0,a.j)("esri.layer.support.I3SGeometryDefinition")],g)},21506:(e,t,r)=>{r.d(t,{qG:()=>_,PV:()=>y,id:()=>w,iR:()=>d,rn:()=>m,u1:()=>x,rO:()=>S,Oh:()=>b,bT:()=>v,C_:()=>p,Lx:()=>g,vg:()=>M,YI:()=>h,HQ:()=>f});var n=r(92835),i=r(6570),s=r(82971),o=r(25929),a=r(70586),l=(r(95330),r(35463)),u=r(20682),c=r(65242);const h={type:Boolean,value:!0,json:{origins:{service:{read:!1,write:!1},"web-map":{read:!1,write:!1}},name:"screenSizePerspective",write:!0}},p={type:Boolean,value:!0,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,writer(e,t,r){t[r]=!e}}}},d={type:Boolean,value:!0,json:{name:"showLabels",write:!0}},f={type:String,json:{origins:{"portal-item":{write:!1}},write:{isRequired:!0,ignoreOrigin:!0,writer:o.w}}},m={type:Boolean,value:!0,json:{origins:{service:{read:{enabled:!1}}},name:"showLegend",write:!0}},y={value:null,type:u.Z,json:{origins:{service:{name:"elevationInfo",write:!0}},name:"layerDefinition.elevationInfo",write:!0}};function g(e){return{type:e,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}}}const b={type:Number,json:{origins:{"web-document":{write:!0,read:!0},"portal-item":{write:!0}}}},v={...b,json:{...b.json,origins:{"web-document":{...b.json.origins["web-document"],write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}}}},read:{source:["layerDefinition.drawingInfo.transparency","drawingInfo.transparency"],reader:(e,t,r)=>r&&"service"!==r.origin||!t.drawingInfo||void 0===t.drawingInfo.transparency?t.layerDefinition&&t.layerDefinition.drawingInfo&&void 0!==t.layerDefinition.drawingInfo.transparency?(0,c.b)(t.layerDefinition.drawingInfo.transparency):void 0:(0,c.b)(t.drawingInfo.transparency)}}},_={type:n.Z,readOnly:!0,get(){var e,t;if(null==(e=this.layer)||!e.timeInfo)return null;const{datesInUnknownTimezone:r,timeOffset:i,useViewTime:s}=this.layer,o=null==(t=this.view)?void 0:t.timeExtent;let u=this.layer.timeExtent;r&&(u=function(e){if(!e)return e;const{start:t,end:r}=e;return new n.Z({start:(0,a.pC)(t)?(0,l.Nm)(t,t.getTimezoneOffset(),"minutes"):t,end:(0,a.pC)(r)?(0,l.Nm)(r,r.getTimezoneOffset(),"minutes"):r})}(u));let c=s?o&&u?o.intersection(u):o||u:u;if(!c||c.isEmpty||c.isAllTime)return c;i&&(c=c.offset(-i.value,i.unit)),r&&(c=function(e){if(!e)return e;const{start:t,end:r}=e;return new n.Z({start:(0,a.pC)(t)?(0,l.Nm)(t,-t.getTimezoneOffset(),"minutes"):t,end:(0,a.pC)(r)?(0,l.Nm)(r,-r.getTimezoneOffset(),"minutes"):r})}(c));const h=this._get("timeExtent");return c.equals(h)?h:c}},M={type:i.Z,readOnly:!0,json:{origins:{service:{read:{source:["fullExtent","spatialReference"],reader:(e,t)=>{const r=i.Z.fromJSON(e);return null!=t.spatialReference&&"object"==typeof t.spatialReference&&(r.spatialReference=s.Z.fromJSON(t.spatialReference)),r}}}},read:!1}},w={type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}}}},S={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.minScale"},write:{target:"layerDefinition.minScale"}}},x={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.maxScale"},write:{target:"layerDefinition.maxScale"}}}},3172:(e,t,r)=>{r.r(t),r.d(t,{default:()=>d});var n=r(68773),i=r(40330),s=r(20102),o=r(80442),a=r(22974),l=r(70586),u=r(95330),c=r(17452),h=r(71058),p=r(85958);async function d(e,t){var a;const p=(0,c.HK)(e),g=(0,c.jc)(e);g||p||(e=(0,c.Fv)(e));const b={url:e,requestOptions:{...(0,l.Wg)(t)}};let v=(0,c.oh)(e);if(v){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,n;try{n=await e.before(t)}catch(e){r=S("request:interceptor",e,t)}if((n instanceof Error||n instanceof s.Z)&&(r=S("request:interceptor",n,t)),r)throw e.error&&e.error(r),r;return n}}(v,b);if(null!=e)return{data:e,getHeader:_,requestOptions:b.requestOptions,url:b.url};v.after||v.error||(v=null)}if(e=b.url,"image"===(t=b.requestOptions).responseType){if((0,o.Z)("host-webworker")||(0,o.Z)("host-node"))throw S("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),b)}else if(p)throw S("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+t.responseType),b);if("head"===t.method){if(t.body)throw S("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),b);if(p||g)throw S("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),b)}if(await async function(){(0,o.Z)("host-webworker")?f||(f=await Promise.all([r.e(102),r.e(9884)]).then(r.bind(r,29884))):d._abortableFetch||(d._abortableFetch=globalThis.fetch.bind(globalThis))}(),f)return f.execute(e,t);const M=new AbortController;(0,u.fu)(t,(()=>M.abort()));const w={controller:M,credential:null,credentialToken:null,fetchOptions:null,hasToken:!1,interceptor:v,params:b,redoRequest:!1,useIdentity:m.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},O=await async function(e){var t,r;let s,o;await async function(e){const t=e.params.url,r=e.params.requestOptions,s=e.controller.signal,o=r.body;let a=null,l=null,c=null;if(y&&"HTMLFormElement"in globalThis&&(o instanceof FormData?a=o:o instanceof HTMLFormElement&&(l=o,a=new FormData(l))),"string"==typeof o&&(c=o),e.fetchOptions={cache:r.cacheBust&&!d._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:"head"===r.method?"HEAD":"GET",mode:"cors",redirect:"follow",signal:s},(a||c)&&(e.fetchOptions.body=a||c),"anonymous"===r.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query&&r.query.token||a&&a.get&&a.get("token")||l&&l.elements.token),!e.hasToken&&n.Z.apiKey&&(0,h.r)(t)&&(r.query||(r.query={}),r.query.token=n.Z.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!E(t)&&!(0,u.Hc)(s)){let n;"immediate"===r.authMode?(await x(),n=await i.id.getCredential(t,{signal:s}),e.credential=n):"no-prompt"===r.authMode?(await x(),n=await i.id.getCredential(t,{prompt:!1,signal:s}).catch((()=>{})),e.credential=n):i.id&&(n=i.id.findCredential(t)),n&&(e.credentialToken=n.token,e.useSSL=!!n.ssl)}}(e);try{do{[s,o]=await C(e)}while(!await I(e,s,o))}catch(t){const r=S("request:server",t,e.params,s);throw r.details.ssl=e.useSSL,e.interceptor&&e.interceptor.error&&e.interceptor.error(r),r}const a=e.params.url;if(/\/sharing\/rest\/(accounts|portals)\/self/i.test(a)&&!e.hasToken&&!e.credentialToken&&null!=(t=o)&&null!=(r=t.user)&&r.username&&!(0,c.kl)(a)){const e=(0,c.P$)(a,!0);e&&m.trustedServers.push(e)}const l=e.credential;if(l&&i.id){const e=i.id.findServerInfo(l.server);let t=e&&e.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=i.id.findCredential(t,l.userId);e&&-1===i.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:o,getHeader:s?e=>s.headers.get(e):_,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(w);return null==(a=v)||null==a.after||a.after(O),O}let f;const m=n.Z.request,y="FormData"in globalThis,g=[499,498,403,401],b=["COM_0056","COM_0057","SB_0008"],v=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],_=()=>null,M=Symbol();function w(e){const t=(0,c.P$)(e);return!t||t.endsWith(".arcgis.com")||d._corsServers.includes(t)||(0,c.kl)(t)}function S(e,t,r,n){let i="Error";const o={url:r.url,requestOptions:r.requestOptions,getHeader:_,ssl:!1};if(t instanceof s.Z)return t.details?(t.details=(0,a.d9)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=o,t;if(t){const e=n&&(e=>n.headers.get(e)),r=n&&n.status,s=t.message;s&&(i=s),e&&(o.getHeader=e),o.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||r||0,o.subCode=t.subcode,o.messageCode=t.messageCode,"string"==typeof t.details?o.messages=[t.details]:o.messages=t.details,o.raw=M in t?t[M]:t}return(0,u.D_)(t)?(0,u.zE)():new s.Z(e,i,o)}async function x(){i.id||await Promise.all([r.e(280),r.e(2785),r.e(102),r.e(8536)]).then(r.bind(r,85976))}function E(e){return v.some((t=>t.test(e)))}async function C(e){let t=e.params.url;const r=e.params.requestOptions,n=e.fetchOptions,s=(0,c.jc)(t)||(0,c.HK)(t),a=r.responseType||"json",l=s?0:null!=r.timeout?r.timeout:m.timeout;let h=!1;if(!s){e.useSSL&&(t=(0,c.hO)(t)),r.cacheBust&&"default"===n.cache&&(t=(0,c.ZN)(t,"request.preventCache",Date.now()));let s={...r.query};e.credentialToken&&(s.token=e.credentialToken);let a=(0,c.B7)(s);(0,o.Z)("esri-url-encodes-apostrophe")&&(a=a.replace(/'/g,"%27"));const l=t.length+1+a.length;let u;h="delete"===r.method||"post"===r.method||"put"===r.method||!!r.body||l>m.maxUrlLength;const p=r.useProxy||!!(0,c.ed)(t);if(p){const e=(0,c.b7)(t);u=e.path,!h&&u.length+1+l>m.maxUrlLength&&(h=!0),e.query&&(s={...e.query,...s})}if("HEAD"===n.method&&(h||p)){if(h){if(l>m.maxUrlLength)throw S("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw S("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(p)throw S("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(h?(n.method="delete"===r.method?"DELETE":"put"===r.method?"PUT":"POST",r.body?t=(0,c.fl)(t,s):(n.body=(0,c.B7)(s),n.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,c.fl)(t,s),p&&(e.useProxy=!0,t=`${u}?${t}`),s.token&&y&&n.body instanceof FormData){const e=n.body;e.set?e.set("token",s.token):e.append("token",s.token)}if(r.hasOwnProperty("withCredentials"))e.withCredentials=r.withCredentials;else if(!(0,c.D6)(t,(0,c.TI)()))if((0,c.kl)(t))e.withCredentials=!0;else if(i.id){const r=i.id.findServerInfo(t);r&&r.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(n.credentials="include")}let p,f,g=0,b=!1;l>0&&(g=setTimeout((()=>{b=!0,e.controller.abort()}),l));try{if("native-request-init"===r.responseType)f=n,f.url=t;else if("image"!==r.responseType||"default"!==n.cache||"GET"!==n.method||h||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(r.headers)||!s&&!e.useProxy&&m.proxyUrl&&!w(t)){if(p=await d._abortableFetch(t,n),e.useProxy||function(e){const t=(0,c.P$)(e);t&&!d._corsServers.includes(t)&&d._corsServers.push(t)}(t),"native"===r.responseType)f=p;else if("HEAD"!==n.method)if(p.ok){switch(a){case"array-buffer":f=await p.arrayBuffer();break;case"blob":case"image":f=await p.blob();break;default:f=await p.text()}if(g&&(clearTimeout(g),g=0),"json"===a||"xml"===a||"document"===a)if(f)switch(a){case"json":f=JSON.parse(f);break;case"xml":f=O(f,"application/xml");break;case"document":f=O(f,"text/html")}else f=null;if(f){if("array-buffer"===a||"blob"===a){const e=p.headers.get("Content-Type");if(/application\/json|text\/plain/i.test(e)&&f["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(f).json();e.error&&(f=e)}catch{}}"image"===a&&f instanceof Blob&&(f=await T(URL.createObjectURL(f),e,!0))}}else f=await p.text()}else f=await T(t,e)}catch(n){if("AbortError"===n.name){if(b)throw new Error("Timeout exceeded");throw(0,u.zE)("Request canceled")}if(!(!p&&n instanceof TypeError&&m.proxyUrl)||r.body||"delete"===r.method||"head"===r.method||"post"===r.method||"put"===r.method||e.useProxy||w(t))throw n;e.redoRequest=!0,(0,c.tD)({proxyUrl:m.proxyUrl,urlPrefix:(0,c.P$)(t)})}finally{g&&clearTimeout(g)}return[p,f]}function O(e,t){let r;try{r=(new DOMParser).parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function I(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const n=e.params.requestOptions;if(!t||"native"===n.responseType||"native-request-init"===n.responseType)return!0;let s,o,a,l;if(!t.ok)throw s=new Error(`Unable to load ${t.url} status: ${t.status}`),s[M]=r,s;null!=r&&r.error&&(s=r.error),s&&(o=Number(s.code),a=s.hasOwnProperty("subcode")?Number(s.subcode):null,l=s.messageCode,l=l&&l.toUpperCase());const u=n.authMode;if(403===o&&(4===a||s.message&&s.message.toLowerCase().indexOf("ssl")>-1&&-1===s.message.toLowerCase().indexOf("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===o)&&-1!==g.indexOf(o)&&!E(e.params.url)&&(403!==o||-1===b.indexOf(l)&&(null==a||2===a&&e.credentialToken))){await x();try{const t=await i.id.getCredential(e.params.url,{error:S("request:server",s,e.params),prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===u)return e.credential=null,e.credentialToken=null,!1;s=t}}if(s)throw s;return!0}function T(e,t,r=!1){const n=t.controller.signal,i=new Image;return t.withCredentials?i.crossOrigin="use-credentials":i.crossOrigin="anonymous",i.alt="",i.src=e,(0,p.f)(i,e,r,n)}d._abortableFetch=null,d._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(e,t,r)=>{r.d(t,{r:()=>s});var n=r(17452);const i=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function s(e){const t=(0,n.P$)(e,!0);return t&&t.endsWith(".arcgis.com")&&!i.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,r)=>{r.d(t,{f:()=>o});var n=r(80442),i=r(70586),s=r(95330);function o(e,t,r=!1,o){return new Promise(((l,u)=>{if((0,s.Hc)(o))return void u(a());let c=()=>{d(),u(new Error(`Unable to load ${t}`))},h=()=>{const t=e;d(),l(t)},p=()=>{if(!e)return;const t=e;d(),t.src="",u(a())};const d=()=>{(0,n.Z)("esri-image-decode")||(e.removeEventListener("error",c),e.removeEventListener("load",h)),c=null,h=null,e=null,(0,i.pC)(o)&&o.removeEventListener("abort",p),p=null,r&&URL.revokeObjectURL(t)};(0,i.pC)(o)&&o.addEventListener("abort",p),(0,n.Z)("esri-image-decode")?e.decode().then(h,c):(e.addEventListener("error",c),e.addEventListener("load",h))}))}function a(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}},20682:(e,t,r)=>{r.d(t,{Z:()=>M});var n,i=r(43697),s=r(35454),o=r(96674),a=r(70586),l=r(5600),u=(r(67676),r(80442),r(75215),r(71715)),c=r(52011),h=r(30556),p=r(35671);let d=n=class extends o.wq{async collectRequiredFields(e,t){return(0,p.io)(e,t,this.expression)}clone(){return new n({expression:this.expression,title:this.title})}};(0,i._)([(0,l.Cb)({type:String,json:{write:!0}})],d.prototype,"expression",void 0),(0,i._)([(0,l.Cb)({type:String,json:{write:!0}})],d.prototype,"title",void 0),d=n=(0,i._)([(0,c.j)("esri.layers.support.FeatureExpressionInfo")],d);const f=d;var m=r(99282);const y=function(){const e=Object.keys(m.a);return e.sort(),e}();var g;const b=(0,s.wY)()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"}),v=new s.Xn({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});let _=g=class extends o.wq{constructor(){super(...arguments),this.offset=null}readFeatureExpressionInfo(e,t){return null!=e?e:t.featureExpression&&0===t.featureExpression.value?{expression:"0"}:void 0}writeFeatureExpressionInfo(e,t,r,n){t[r]=e.write({},n),"0"===e.expression&&(t.featureExpression={value:0})}get mode(){const{offset:e,featureExpressionInfo:t}=this;return this._isOverridden("mode")?this._get("mode"):(0,a.pC)(e)||t?"relative-to-ground":"on-the-ground"}set mode(e){this._override("mode",e)}set unit(e){this._set("unit",e)}write(e,t){return this.offset||this.mode||this.featureExpressionInfo||this.unit?super.write(e,t):null}clone(){return new g({mode:this.mode,offset:this.offset,featureExpressionInfo:this.featureExpressionInfo?this.featureExpressionInfo.clone():void 0,unit:this.unit})}};(0,i._)([(0,l.Cb)({type:f,json:{write:!0}})],_.prototype,"featureExpressionInfo",void 0),(0,i._)([(0,u.r)("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],_.prototype,"readFeatureExpressionInfo",null),(0,i._)([(0,h.c)("featureExpressionInfo",{featureExpressionInfo:{type:f},"featureExpression.value":{type:[0]}})],_.prototype,"writeFeatureExpressionInfo",null),(0,i._)([(0,l.Cb)({type:b.apiValues,nonNullable:!0,json:{type:b.jsonValues,read:b.read,write:{writer:b.write,isRequired:!0}}})],_.prototype,"mode",null),(0,i._)([(0,l.Cb)({type:Number,json:{write:!0}})],_.prototype,"offset",void 0),(0,i._)([(0,l.Cb)({type:y,json:{type:String,read:v.read,write:v.write}})],_.prototype,"unit",null),_=g=(0,i._)([(0,c.j)("esri.layers.support.ElevationInfo")],_);const M=_},65242:(e,t,r)=>{r.d(t,{a:()=>i,b:()=>s});var n=r(75215);function i(e){const t=(0,n.vU)(100*(1-e));return Math.max(0,Math.min(t,100))}function s(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}}}]);