chbim-plugins 0.0.166 → 0.0.167

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/chbim-plugins.js CHANGED
@@ -30119,25 +30119,25 @@ class S1 {
30119
30119
  }
30120
30120
  }
30121
30121
  const E1 = () => {
30122
- var x;
30122
+ var x, a;
30123
30123
  window.planClip.clearPlanClip(), window.schemeEvnModify.clearAllEvnModify(), window.bimRotatePoint.stop(), window.bimTrafficSimulation.destruction(), window.bimMapPTV && window.bimMapPTV.destruction(), window.romStop(), window.complete(), window.bimMapCompare.hide ? window.bimMapCompare.hide() : window.bimMapCompare.destroyControl(), window.updateEitor({
30124
30124
  content: ""
30125
- }), (x = window.glftSet.glftList) == null || x.map((a) => {
30126
- a.remove();
30125
+ }), (a = (x = window.glftSet) == null ? void 0 : x.glftList) == null || a.map((o) => {
30126
+ o.remove();
30127
30127
  });
30128
30128
  }, b1 = () => {
30129
- var x;
30129
+ var x, a;
30130
30130
  window.planClip.clearPlanClip(), window.bimRotatePoint.stop(), window.bimTrafficSimulation.destruction(), window.bimMapPTV && window.bimMapPTV.destruction(), window.romStop(), window.complete(), window.bimMapCompare.hide ? window.bimMapCompare.hide() : window.bimMapCompare.destroyControl(), window.updateEitor({
30131
30131
  content: ""
30132
- }), (x = window.glftSet.glftList) == null || x.map((a) => {
30133
- a.remove();
30132
+ }), (a = (x = window.glftSet) == null ? void 0 : x.glftList) == null || a.map((o) => {
30133
+ o.remove();
30134
30134
  });
30135
30135
  }, C1 = () => {
30136
- var x;
30136
+ var x, a;
30137
30137
  window.planClip.clearPlanClip(), window.bimRotatePoint.stop(), window.bimTrafficSimulation.destruction(), window.bimMapPTV && window.bimMapPTV.destruction(), window.romStop(), window.complete(), window.bimMapCompare.hide ? window.bimMapCompare.hide() : window.bimMapCompare.destroyControl(), window.updateEitor({
30138
30138
  content: ""
30139
- }), (x = window.glftSet.glftList) == null || x.map((a) => {
30140
- a.remove();
30139
+ }), (a = (x = window.glftSet) == null ? void 0 : x.glftList) == null || a.map((o) => {
30140
+ o.remove();
30141
30141
  });
30142
30142
  }, A1 = (x) => {
30143
30143
  let a = [];
@@ -2699,4 +2699,4 @@ function print() { __p += __j.call(arguments, '') }
2699
2699
  * Subject to the terms at https://gsap.com/standard-license or for
2700
2700
  * Club GSAP members, the agreement issued with that membership.
2701
2701
  * @author: Jack Doyle, jack@greensock.com
2702
- */var Sd,ta,Bl,Ic,Wa,Ed,Dc,ug=function(){return typeof window<"u"},ds={},ja=180/Math.PI,Nl=Math.PI/180,Fl=Math.atan2,bd=1e8,zc=/([A-Z])/g,cg=/(left|right|width|margin|padding|x)/i,fg=/[\s,\(]\S/,jo={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},kc=function(a,o){return o.set(o.t,o.p,Math.round((o.s+o.c*a)*1e4)/1e4+o.u,o)},dg=function(a,o){return o.set(o.t,o.p,a===1?o.e:Math.round((o.s+o.c*a)*1e4)/1e4+o.u,o)},pg=function(a,o){return o.set(o.t,o.p,a?Math.round((o.s+o.c*a)*1e4)/1e4+o.u:o.b,o)},mg=function(a,o){var c=o.s+o.c*a;o.set(o.t,o.p,~~(c+(c<0?-.5:.5))+o.u,o)},Cd=function(a,o){return o.set(o.t,o.p,a?o.e:o.b,o)},Ad=function(a,o){return o.set(o.t,o.p,a!==1?o.b:o.e,o)},gg=function(a,o,c){return a.style[o]=c},vg=function(a,o,c){return a.style.setProperty(o,c)},yg=function(a,o,c){return a._gsap[o]=c},_g=function(a,o,c){return a._gsap.scaleX=a._gsap.scaleY=c},xg=function(a,o,c,f,u){var m=a._gsap;m.scaleX=m.scaleY=c,m.renderTransform(u,m)},wg=function(a,o,c,f,u){var m=a._gsap;m[o]=c,m.renderTransform(u,m)},pn="transform",Lr=pn+"Origin",Tg=function x(a,o){var c=this,f=this.target,u=f.style,m=f._gsap;if(a in ds&&u){if(this.tfm=this.tfm||{},a!=="transform")a=jo[a]||a,~a.indexOf(",")?a.split(",").forEach(function(g){return c.tfm[g]=ps(f,g)}):this.tfm[a]=m.x?m[a]:ps(f,a),a===Lr&&(this.tfm.zOrigin=m.zOrigin);else return jo.transform.split(",").forEach(function(g){return x.call(c,g,o)});if(this.props.indexOf(pn)>=0)return;m.svg&&(this.svgo=f.getAttribute("data-svg-origin"),this.props.push(Lr,o,"")),a=pn}(u||o)&&this.props.push(a,o,u[a])},Pd=function(a){a.translate&&(a.removeProperty("translate"),a.removeProperty("scale"),a.removeProperty("rotate"))},Mg=function(){var a=this.props,o=this.target,c=o.style,f=o._gsap,u,m;for(u=0;u<a.length;u+=3)a[u+1]?o[a[u]]=a[u+2]:a[u+2]?c[a[u]]=a[u+2]:c.removeProperty(a[u].substr(0,2)==="--"?a[u]:a[u].replace(zc,"-$1").toLowerCase());if(this.tfm){for(m in this.tfm)f[m]=this.tfm[m];f.svg&&(f.renderTransform(),o.setAttribute("data-svg-origin",this.svgo||"")),u=Dc(),(!u||!u.isStart)&&!c[pn]&&(Pd(c),f.zOrigin&&c[Lr]&&(c[Lr]+=" "+f.zOrigin+"px",f.zOrigin=0,f.renderTransform()),f.uncache=1)}},Ld=function(a,o){var c={target:a,props:[],revert:Mg,save:Tg};return a._gsap||Pr.core.getCache(a),o&&o.split(",").forEach(function(f){return c.save(f)}),c},Rd,Bc=function(a,o){var c=ta.createElementNS?ta.createElementNS((o||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),a):ta.createElement(a);return c&&c.style?c:ta.createElement(a)},Xo=function x(a,o,c){var f=getComputedStyle(a);return f[o]||f.getPropertyValue(o.replace(zc,"-$1").toLowerCase())||f.getPropertyValue(o)||!c&&x(a,Ul(o)||o,1)||""},Od="O,Moz,ms,Ms,Webkit".split(","),Ul=function(a,o,c){var f=o||Wa,u=f.style,m=5;if(a in u&&!c)return a;for(a=a.charAt(0).toUpperCase()+a.substr(1);m--&&!(Od[m]+a in u););return m<0?null:(m===3?"ms":m>=0?Od[m]:"")+a},Nc=function(){ug()&&window.document&&(Sd=window,ta=Sd.document,Bl=ta.documentElement,Wa=Bc("div")||{style:{}},Bc("div"),pn=Ul(pn),Lr=pn+"Origin",Wa.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Rd=!!Ul("perspective"),Dc=Pr.core.reverting,Ic=1)},Fc=function x(a){var o=Bc("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),c=this.parentNode,f=this.nextSibling,u=this.style.cssText,m;if(Bl.appendChild(o),o.appendChild(this),this.style.display="block",a)try{m=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=x}catch{}else this._gsapBBox&&(m=this._gsapBBox());return c&&(f?c.insertBefore(this,f):c.appendChild(this)),Bl.removeChild(o),this.style.cssText=u,m},Id=function(a,o){for(var c=o.length;c--;)if(a.hasAttribute(o[c]))return a.getAttribute(o[c])},Dd=function(a){var o;try{o=a.getBBox()}catch{o=Fc.call(a,!0)}return o&&(o.width||o.height)||a.getBBox===Fc||(o=Fc.call(a,!0)),o&&!o.width&&!o.x&&!o.y?{x:+Id(a,["x","cx","x1"])||0,y:+Id(a,["y","cy","y1"])||0,width:0,height:0}:o},zd=function(a){return!!(a.getCTM&&(!a.parentNode||a.ownerSVGElement)&&Dd(a))},Xa=function(a,o){if(o){var c=a.style,f;o in ds&&o!==Lr&&(o=pn),c.removeProperty?(f=o.substr(0,2),(f==="ms"||o.substr(0,6)==="webkit")&&(o="-"+o),c.removeProperty(f==="--"?o:o.replace(zc,"-$1").toLowerCase())):c.removeAttribute(o)}},ea=function(a,o,c,f,u,m){var g=new Ar(a._pt,o,c,0,1,m?Ad:Cd);return a._pt=g,g.b=f,g.e=u,a._props.push(c),g},kd={deg:1,rad:1,turn:1},Sg={grid:1,flex:1},ia=function x(a,o,c,f){var u=parseFloat(c)||0,m=(c+"").trim().substr((u+"").length)||"px",g=Wa.style,y=cg.test(o),S=a.tagName.toLowerCase()==="svg",b=(S?"client":"offset")+(y?"Width":"Height"),I=100,k=f==="px",O=f==="%",N,E,L,w;if(f===m||!u||kd[f]||kd[m])return u;if(m!=="px"&&!k&&(u=x(a,o,c,"px")),w=a.getCTM&&zd(a),(O||m==="%")&&(ds[o]||~o.indexOf("adius")))return N=w?a.getBBox()[y?"width":"height"]:a[b],Rn(O?u/N*I:u/100*N);if(g[y?"width":"height"]=I+(k?m:f),E=~o.indexOf("adius")||f==="em"&&a.appendChild&&!S?a:a.parentNode,w&&(E=(a.ownerSVGElement||{}).parentNode),(!E||E===ta||!E.appendChild)&&(E=ta.body),L=E._gsap,L&&O&&L.width&&y&&L.time===Xr.time&&!L.uncache)return Rn(u/L.width*I);if(O&&(o==="height"||o==="width")){var M=a.style[o];a.style[o]=I+f,N=a[b],M?a.style[o]=M:Xa(a,o)}else(O||m==="%")&&!Sg[Xo(E,"display")]&&(g.position=Xo(a,"position")),E===a&&(g.position="static"),E.appendChild(Wa),N=Wa[b],E.removeChild(Wa),g.position="absolute";return y&&O&&(L=Na(E),L.time=Xr.time,L.width=E[b]),Rn(k?N*u/I:N&&u?I/N*u:0)},ps=function(a,o,c,f){var u;return Ic||Nc(),o in jo&&o!=="transform"&&(o=jo[o],~o.indexOf(",")&&(o=o.split(",")[0])),ds[o]&&o!=="transform"?(u=Lh(a,f),u=o!=="transformOrigin"?u[o]:u.svg?u.origin:Mu(Xo(a,Lr))+" "+u.zOrigin+"px"):(u=a.style[o],(!u||u==="auto"||f||~(u+"").indexOf("calc("))&&(u=Tu[o]&&Tu[o](a,o,c)||Xo(a,o)||Uf(a,o)||(o==="opacity"?1:0))),c&&!~(u+"").trim().indexOf(" ")?ia(a,o,u,c)+c:u},Eg=function(a,o,c,f){if(!c||c==="none"){var u=Ul(o,a,1),m=u&&Xo(a,u,1);m&&m!==c?(o=u,c=m):o==="borderColor"&&(c=Xo(a,"borderTopColor"))}var g=new Ar(this._pt,a.style,o,0,1,xd),y=0,S=0,b,I,k,O,N,E,L,w,M,R,C,U;if(g.b=c,g.e=f,c+="",f+="",f==="auto"&&(E=a.style[o],a.style[o]=f,f=Xo(a,o)||f,E?a.style[o]=E:Xa(a,o)),b=[c,f],ud(b),c=b[0],f=b[1],k=c.match(Rl)||[],U=f.match(Rl)||[],U.length){for(;I=Rl.exec(f);)L=I[0],M=f.substring(y,I.index),N?N=(N+1)%5:(M.substr(-5)==="rgba("||M.substr(-5)==="hsla(")&&(N=1),L!==(E=k[S++]||"")&&(O=parseFloat(E)||0,C=E.substr((O+"").length),L.charAt(1)==="="&&(L=Ol(O,L)+C),w=parseFloat(L),R=L.substr((w+"").length),y=Rl.lastIndex-R.length,R||(R=R||Hr.units[o]||C,y===f.length&&(f+=R,g.e+=R)),C!==R&&(O=ia(a,o,E,R)||0),g._pt={_next:g._pt,p:M||S===1?M:",",s:O,c:w-O,m:N&&N<4||o==="zIndex"?Math.round:0});g.c=y<f.length?f.substring(y,f.length):""}else g.r=o==="display"&&f==="none"?Ad:Cd;return If.test(f)&&(g.e=0),this._pt=g,g},Bd={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},bg=function(a){var o=a.split(" "),c=o[0],f=o[1]||"50%";return(c==="top"||c==="bottom"||f==="left"||f==="right")&&(a=c,c=f,f=a),o[0]=Bd[c]||c,o[1]=Bd[f]||f,o.join(" ")},Cg=function(a,o){if(o.tween&&o.tween._time===o.tween._dur){var c=o.t,f=c.style,u=o.u,m=c._gsap,g,y,S;if(u==="all"||u===!0)f.cssText="",y=1;else for(u=u.split(","),S=u.length;--S>-1;)g=u[S],ds[g]&&(y=1,g=g==="transformOrigin"?Lr:pn),Xa(c,g);y&&(Xa(c,pn),m&&(m.svg&&c.removeAttribute("transform"),Lh(c,1),m.uncache=1,Pd(f)))}},Tu={clearProps:function(a,o,c,f,u){if(u.data!=="isFromStart"){var m=a._pt=new Ar(a._pt,o,c,0,0,Cg);return m.u=f,m.pr=-10,m.tween=u,a._props.push(c),1}}},Ph=[1,0,0,1,0,0],Nd={},Fd=function(a){return a==="matrix(1, 0, 0, 1, 0, 0)"||a==="none"||!a},Ud=function(a){var o=Xo(a,pn);return Fd(o)?Ph:o.substr(7).match(Of).map(Rn)},Uc=function(a,o){var c=a._gsap||Na(a),f=a.style,u=Ud(a),m,g,y,S;return c.svg&&a.getAttribute("transform")?(y=a.transform.baseVal.consolidate().matrix,u=[y.a,y.b,y.c,y.d,y.e,y.f],u.join(",")==="1,0,0,1,0,0"?Ph:u):(u===Ph&&!a.offsetParent&&a!==Bl&&!c.svg&&(y=f.display,f.display="block",m=a.parentNode,(!m||!a.offsetParent)&&(S=1,g=a.nextElementSibling,Bl.appendChild(a)),u=Ud(a),y?f.display=y:Xa(a,"display"),S&&(g?m.insertBefore(a,g):m?m.appendChild(a):Bl.removeChild(a))),o&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},Gc=function(a,o,c,f,u,m){var g=a._gsap,y=u||Uc(a,!0),S=g.xOrigin||0,b=g.yOrigin||0,I=g.xOffset||0,k=g.yOffset||0,O=y[0],N=y[1],E=y[2],L=y[3],w=y[4],M=y[5],R=o.split(" "),C=parseFloat(R[0])||0,U=parseFloat(R[1])||0,F,X,K,Z;c?y!==Ph&&(X=O*L-N*E)&&(K=C*(L/X)+U*(-E/X)+(E*M-L*w)/X,Z=C*(-N/X)+U*(O/X)-(O*M-N*w)/X,C=K,U=Z):(F=Dd(a),C=F.x+(~R[0].indexOf("%")?C/100*F.width:C),U=F.y+(~(R[1]||R[0]).indexOf("%")?U/100*F.height:U)),f||f!==!1&&g.smooth?(w=C-S,M=U-b,g.xOffset=I+(w*O+M*E)-w,g.yOffset=k+(w*N+M*L)-M):g.xOffset=g.yOffset=0,g.xOrigin=C,g.yOrigin=U,g.smooth=!!f,g.origin=o,g.originIsAbsolute=!!c,a.style[Lr]="0px 0px",m&&(ea(m,g,"xOrigin",S,C),ea(m,g,"yOrigin",b,U),ea(m,g,"xOffset",I,g.xOffset),ea(m,g,"yOffset",k,g.yOffset)),a.setAttribute("data-svg-origin",C+" "+U)},Lh=function(a,o){var c=a._gsap||new pd(a);if("x"in c&&!o&&!c.uncache)return c;var f=a.style,u=c.scaleX<0,m="px",g="deg",y=getComputedStyle(a),S=Xo(a,Lr)||"0",b,I,k,O,N,E,L,w,M,R,C,U,F,X,K,Z,ct,Rt,tt,_t,G,Pt,Et,At,ce,re,Ft,It,Nt,Pe,pe,Wt;return b=I=k=E=L=w=M=R=C=0,O=N=1,c.svg=!!(a.getCTM&&zd(a)),y.translate&&((y.translate!=="none"||y.scale!=="none"||y.rotate!=="none")&&(f[pn]=(y.translate!=="none"?"translate3d("+(y.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(y.rotate!=="none"?"rotate("+y.rotate+") ":"")+(y.scale!=="none"?"scale("+y.scale.split(" ").join(",")+") ":"")+(y[pn]!=="none"?y[pn]:"")),f.scale=f.rotate=f.translate="none"),X=Uc(a,c.svg),c.svg&&(c.uncache?(ce=a.getBBox(),S=c.xOrigin-ce.x+"px "+(c.yOrigin-ce.y)+"px",At=""):At=!o&&a.getAttribute("data-svg-origin"),Gc(a,At||S,!!At||c.originIsAbsolute,c.smooth!==!1,X)),U=c.xOrigin||0,F=c.yOrigin||0,X!==Ph&&(Rt=X[0],tt=X[1],_t=X[2],G=X[3],b=Pt=X[4],I=Et=X[5],X.length===6?(O=Math.sqrt(Rt*Rt+tt*tt),N=Math.sqrt(G*G+_t*_t),E=Rt||tt?Fl(tt,Rt)*ja:0,M=_t||G?Fl(_t,G)*ja+E:0,M&&(N*=Math.abs(Math.cos(M*Nl))),c.svg&&(b-=U-(U*Rt+F*_t),I-=F-(U*tt+F*G))):(Wt=X[6],Pe=X[7],Ft=X[8],It=X[9],Nt=X[10],pe=X[11],b=X[12],I=X[13],k=X[14],K=Fl(Wt,Nt),L=K*ja,K&&(Z=Math.cos(-K),ct=Math.sin(-K),At=Pt*Z+Ft*ct,ce=Et*Z+It*ct,re=Wt*Z+Nt*ct,Ft=Pt*-ct+Ft*Z,It=Et*-ct+It*Z,Nt=Wt*-ct+Nt*Z,pe=Pe*-ct+pe*Z,Pt=At,Et=ce,Wt=re),K=Fl(-_t,Nt),w=K*ja,K&&(Z=Math.cos(-K),ct=Math.sin(-K),At=Rt*Z-Ft*ct,ce=tt*Z-It*ct,re=_t*Z-Nt*ct,pe=G*ct+pe*Z,Rt=At,tt=ce,_t=re),K=Fl(tt,Rt),E=K*ja,K&&(Z=Math.cos(K),ct=Math.sin(K),At=Rt*Z+tt*ct,ce=Pt*Z+Et*ct,tt=tt*Z-Rt*ct,Et=Et*Z-Pt*ct,Rt=At,Pt=ce),L&&Math.abs(L)+Math.abs(E)>359.9&&(L=E=0,w=180-w),O=Rn(Math.sqrt(Rt*Rt+tt*tt+_t*_t)),N=Rn(Math.sqrt(Et*Et+Wt*Wt)),K=Fl(Pt,Et),M=Math.abs(K)>2e-4?K*ja:0,C=pe?1/(pe<0?-pe:pe):0),c.svg&&(At=a.getAttribute("transform"),c.forceCSS=a.setAttribute("transform","")||!Fd(Xo(a,pn)),At&&a.setAttribute("transform",At))),Math.abs(M)>90&&Math.abs(M)<270&&(u?(O*=-1,M+=E<=0?180:-180,E+=E<=0?180:-180):(N*=-1,M+=M<=0?180:-180)),o=o||c.uncache,c.x=b-((c.xPercent=b&&(!o&&c.xPercent||(Math.round(a.offsetWidth/2)===Math.round(-b)?-50:0)))?a.offsetWidth*c.xPercent/100:0)+m,c.y=I-((c.yPercent=I&&(!o&&c.yPercent||(Math.round(a.offsetHeight/2)===Math.round(-I)?-50:0)))?a.offsetHeight*c.yPercent/100:0)+m,c.z=k+m,c.scaleX=Rn(O),c.scaleY=Rn(N),c.rotation=Rn(E)+g,c.rotationX=Rn(L)+g,c.rotationY=Rn(w)+g,c.skewX=M+g,c.skewY=R+g,c.transformPerspective=C+m,(c.zOrigin=parseFloat(S.split(" ")[2])||!o&&c.zOrigin||0)&&(f[Lr]=Mu(S)),c.xOffset=c.yOffset=0,c.force3D=Hr.force3D,c.renderTransform=c.svg?Pg:Rd?Gd:Ag,c.uncache=0,c},Mu=function(a){return(a=a.split(" "))[0]+" "+a[1]},Hc=function(a,o,c){var f=or(o);return Rn(parseFloat(o)+parseFloat(ia(a,"x",c+"px",f)))+f},Ag=function(a,o){o.z="0px",o.rotationY=o.rotationX="0deg",o.force3D=0,Gd(a,o)},qa="0deg",Rh="0px",Ya=") ",Gd=function(a,o){var c=o||this,f=c.xPercent,u=c.yPercent,m=c.x,g=c.y,y=c.z,S=c.rotation,b=c.rotationY,I=c.rotationX,k=c.skewX,O=c.skewY,N=c.scaleX,E=c.scaleY,L=c.transformPerspective,w=c.force3D,M=c.target,R=c.zOrigin,C="",U=w==="auto"&&a&&a!==1||w===!0;if(R&&(I!==qa||b!==qa)){var F=parseFloat(b)*Nl,X=Math.sin(F),K=Math.cos(F),Z;F=parseFloat(I)*Nl,Z=Math.cos(F),m=Hc(M,m,X*Z*-R),g=Hc(M,g,-Math.sin(F)*-R),y=Hc(M,y,K*Z*-R+R)}L!==Rh&&(C+="perspective("+L+Ya),(f||u)&&(C+="translate("+f+"%, "+u+"%) "),(U||m!==Rh||g!==Rh||y!==Rh)&&(C+=y!==Rh||U?"translate3d("+m+", "+g+", "+y+") ":"translate("+m+", "+g+Ya),S!==qa&&(C+="rotate("+S+Ya),b!==qa&&(C+="rotateY("+b+Ya),I!==qa&&(C+="rotateX("+I+Ya),(k!==qa||O!==qa)&&(C+="skew("+k+", "+O+Ya),(N!==1||E!==1)&&(C+="scale("+N+", "+E+Ya),M.style[pn]=C||"translate(0, 0)"},Pg=function(a,o){var c=o||this,f=c.xPercent,u=c.yPercent,m=c.x,g=c.y,y=c.rotation,S=c.skewX,b=c.skewY,I=c.scaleX,k=c.scaleY,O=c.target,N=c.xOrigin,E=c.yOrigin,L=c.xOffset,w=c.yOffset,M=c.forceCSS,R=parseFloat(m),C=parseFloat(g),U,F,X,K,Z;y=parseFloat(y),S=parseFloat(S),b=parseFloat(b),b&&(b=parseFloat(b),S+=b,y+=b),y||S?(y*=Nl,S*=Nl,U=Math.cos(y)*I,F=Math.sin(y)*I,X=Math.sin(y-S)*-k,K=Math.cos(y-S)*k,S&&(b*=Nl,Z=Math.tan(S-b),Z=Math.sqrt(1+Z*Z),X*=Z,K*=Z,b&&(Z=Math.tan(b),Z=Math.sqrt(1+Z*Z),U*=Z,F*=Z)),U=Rn(U),F=Rn(F),X=Rn(X),K=Rn(K)):(U=I,K=k,F=X=0),(R&&!~(m+"").indexOf("px")||C&&!~(g+"").indexOf("px"))&&(R=ia(O,"x",m,"px"),C=ia(O,"y",g,"px")),(N||E||L||w)&&(R=Rn(R+N-(N*U+E*X)+L),C=Rn(C+E-(N*F+E*K)+w)),(f||u)&&(Z=O.getBBox(),R=Rn(R+f/100*Z.width),C=Rn(C+u/100*Z.height)),Z="matrix("+U+","+F+","+X+","+K+","+R+","+C+")",O.setAttribute("transform",Z),M&&(O.style[pn]=Z)},Lg=function(a,o,c,f,u){var m=360,g=Wn(u),y=parseFloat(u)*(g&&~u.indexOf("rad")?ja:1),S=y-f,b=f+S+"deg",I,k;return g&&(I=u.split("_")[1],I==="short"&&(S%=m,S!==S%(m/2)&&(S+=S<0?m:-m)),I==="cw"&&S<0?S=(S+m*bd)%m-~~(S/m)*m:I==="ccw"&&S>0&&(S=(S-m*bd)%m-~~(S/m)*m)),a._pt=k=new Ar(a._pt,o,c,f,S,dg),k.e=b,k.u="deg",a._props.push(c),k},Hd=function(a,o){for(var c in o)a[c]=o[c];return a},Rg=function(a,o,c){var f=Hd({},c._gsap),u="perspective,force3D,transformOrigin,svgOrigin",m=c.style,g,y,S,b,I,k,O,N;f.svg?(S=c.getAttribute("transform"),c.setAttribute("transform",""),m[pn]=o,g=Lh(c,1),Xa(c,pn),c.setAttribute("transform",S)):(S=getComputedStyle(c)[pn],m[pn]=o,g=Lh(c,1),m[pn]=S);for(y in ds)S=f[y],b=g[y],S!==b&&u.indexOf(y)<0&&(O=or(S),N=or(b),I=O!==N?ia(c,y,S,N):parseFloat(S),k=parseFloat(b),a._pt=new Ar(a._pt,g,y,I,k-I,kc),a._pt.u=N||0,a._props.push(y));Hd(g,f)};Cr("padding,margin,Width,Radius",function(x,a){var o="Top",c="Right",f="Bottom",u="Left",m=(a<3?[o,c,f,u]:[o+u,o+c,f+c,f+u]).map(function(g){return a<2?x+g:"border"+g+x});Tu[a>1?"border"+x:x]=function(g,y,S,b,I){var k,O;if(arguments.length<4)return k=m.map(function(N){return ps(g,N,S)}),O=k.join(" "),O.split(k[0]).length===5?k[0]:O;k=(b+"").split(" "),O={},m.forEach(function(N,E){return O[N]=k[E]=k[E]||k[(E-1)/2|0]}),g.init(y,O,I)}});var Vd={name:"css",register:Nc,targetTest:function(a){return a.style&&a.nodeType},init:function(a,o,c,f,u){var m=this._props,g=a.style,y=c.vars.startAt,S,b,I,k,O,N,E,L,w,M,R,C,U,F,X,K;Ic||Nc(),this.styles=this.styles||Ld(a),K=this.styles.props,this.tween=c;for(E in o)if(E!=="autoRound"&&(b=o[E],!(Wr[E]&&md(E,o,c,f,a,u)))){if(O=typeof b,N=Tu[E],O==="function"&&(b=b.call(c,f,a,u),O=typeof b),O==="string"&&~b.indexOf("random(")&&(b=Mh(b)),N)N(this,a,E,b,c)&&(X=1);else if(E.substr(0,2)==="--")S=(getComputedStyle(a).getPropertyValue(E)+"").trim(),b+="",Ks.lastIndex=0,Ks.test(S)||(L=or(S),w=or(b)),w?L!==w&&(S=ia(a,E,S,w)+w):L&&(b+=L),this.add(g,"setProperty",S,b,f,u,0,0,E),m.push(E),K.push(E,0,g[E]);else if(O!=="undefined"){if(y&&E in y?(S=typeof y[E]=="function"?y[E].call(c,f,a,u):y[E],Wn(S)&&~S.indexOf("random(")&&(S=Mh(S)),or(S+"")||S==="auto"||(S+=Hr.units[E]||or(ps(a,E))||""),(S+"").charAt(1)==="="&&(S=ps(a,E))):S=ps(a,E),k=parseFloat(S),M=O==="string"&&b.charAt(1)==="="&&b.substr(0,2),M&&(b=b.substr(2)),I=parseFloat(b),E in jo&&(E==="autoAlpha"&&(k===1&&ps(a,"visibility")==="hidden"&&I&&(k=0),K.push("visibility",0,g.visibility),ea(this,g,"visibility",k?"inherit":"hidden",I?"inherit":"hidden",!I)),E!=="scale"&&E!=="transform"&&(E=jo[E],~E.indexOf(",")&&(E=E.split(",")[0]))),R=E in ds,R){if(this.styles.save(E),C||(U=a._gsap,U.renderTransform&&!o.parseTransform||Lh(a,o.parseTransform),F=o.smoothOrigin!==!1&&U.smooth,C=this._pt=new Ar(this._pt,g,pn,0,1,U.renderTransform,U,0,-1),C.dep=1),E==="scale")this._pt=new Ar(this._pt,U,"scaleY",U.scaleY,(M?Ol(U.scaleY,M+I):I)-U.scaleY||0,kc),this._pt.u=0,m.push("scaleY",E),E+="X";else if(E==="transformOrigin"){K.push(Lr,0,g[Lr]),b=bg(b),U.svg?Gc(a,b,0,F,0,this):(w=parseFloat(b.split(" ")[2])||0,w!==U.zOrigin&&ea(this,U,"zOrigin",U.zOrigin,w),ea(this,g,E,Mu(S),Mu(b)));continue}else if(E==="svgOrigin"){Gc(a,b,1,F,0,this);continue}else if(E in Nd){Lg(this,U,E,k,M?Ol(k,M+b):b);continue}else if(E==="smoothOrigin"){ea(this,U,"smooth",U.smooth,b);continue}else if(E==="force3D"){U[E]=b;continue}else if(E==="transform"){Rg(this,b,a);continue}}else E in g||(E=Ul(E)||E);if(R||(I||I===0)&&(k||k===0)&&!fg.test(b)&&E in g)L=(S+"").substr((k+"").length),I||(I=0),w=or(b)||(E in Hr.units?Hr.units[E]:L),L!==w&&(k=ia(a,E,S,w)),this._pt=new Ar(this._pt,R?U:g,E,k,(M?Ol(k,M+I):I)-k,!R&&(w==="px"||E==="zIndex")&&o.autoRound!==!1?mg:kc),this._pt.u=w||0,L!==w&&w!=="%"&&(this._pt.b=S,this._pt.r=pg);else if(E in g)Eg.call(this,a,E,S,M?M+b:b);else if(E in a)this.add(a,E,S||a[E],M?M+b:b,f,u);else if(E!=="parseTransform"){uc(E,b);continue}R||(E in g?K.push(E,0,g[E]):K.push(E,1,S||a[E])),m.push(E)}}X&&wd(this)},render:function(a,o){if(o.tween._time||!Dc())for(var c=o._pt;c;)c.r(a,c.d),c=c._next;else o.styles.revert()},get:ps,aliases:jo,getSetter:function(a,o,c){var f=jo[o];return f&&f.indexOf(",")<0&&(o=f),o in ds&&o!==Lr&&(a._gsap.x||ps(a,"x"))?c&&Ed===c?o==="scale"?_g:yg:(Ed=c||{})&&(o==="scale"?xg:wg):a.style&&!rc(a.style[o])?gg:~o.indexOf("-")?vg:Ac(a,o)},core:{_removeProperty:Xa,_getMatrix:Uc}};Pr.utils.checkPrefix=Ul,Pr.core.getStyleSaver=Ld,function(x,a,o,c){var f=Cr(x+","+a+","+o,function(u){ds[u]=1});Cr(a,function(u){Hr.units[u]="deg",Nd[u]=1}),jo[f[13]]=x+","+a,Cr(c,function(u){var m=u.split(":");jo[m[1]]=f[m[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),Cr("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(x){Hr.units[x]="px"}),Pr.registerPlugin(Vd);var Vc=Pr.registerPlugin(Vd)||Pr;Vc.core.Tween;class Og{constructor(a,o=!1){window.mars3d&&(this.Cesium=window.mars3d.Cesium,this.DynamicMaskingArr=[],this.DynamicMaskingStyle=[],this.canvasClientWidth=a.viewer.canvas.clientWidth,this.canvasClientHeight=a.viewer.canvas.clientHeight,this.oldSet=new Set,this.tweenMap=new Map,this.isDynamicMasking=o)}add(a,o){let c=a.options.symbol.styleOptions.label.font_size,f=a.options.vectorId,u=Number(c)*1.4,m=Number(c)*1.8,g=a.options.symbol.styleOptions.label,{color:y,outlineColor:S,backgroundColor:b}=g;a.eachGraphic(I=>{I.style.label&&this.DynamicMaskingArr.push({id:f,uid:I.id,position:I._getLablePosition(),label:I.name,width:I.name?u*I.name.length:0,height:m,color:y,outline:o.label.outline,outlineColor:S,background:o.label.background,backgroundColor:b,dynamicMaskingColor:{backgroundColor:this.Cesium.Color.fromCssColorString(o.label.backgroundColor),color:this.Cesium.Color.fromCssColorString(o.label.color),outlineColor:this.Cesium.Color.fromCssColorString(o.label.outlineColor)}})}),this.DynamicMaskingStyle.push({vectorId:a.options.vectorId,outline:o.label.outline,background:o.label.background,color:this.Cesium.Color.fromCssColorString(o.label.color),backgroundColor:this.Cesium.Color.fromCssColorString(o.label.backgroundColor),outlineColor:this.Cesium.Color.fromCssColorString(o.label.outlineColor)}),this.oldSet=new Set,this.tweenMap=new Map}remove(a){this.DynamicMaskingArr=this.DynamicMaskingArr.filter(o=>o.id!==a),this.DynamicMaskingStyle=this.DynamicMaskingStyle.filter(o=>o.vectorId!==a),this.oldSet=new Set,this.tweenMap=new Map}modify(a,o){let{label:c}=o;if(c){let{color:f,outline:u,outlineColor:m,background:g,backgroundColor:y}=c;this.DynamicMaskingArr.forEach(S=>{S.id===a&&(f!=null&&(S.color=this.Cesium.Color.fromCssColorString(f),S.dynamicMaskingColor.color=this.Cesium.Color.fromCssColorString(f)),u!=null&&(S.outline=u),m!=null&&(S.outlineColor=this.Cesium.Color.fromCssColorString(m),S.dynamicMaskingColor.outlineColor=this.Cesium.Color.fromCssColorString(m)),g!=null&&(S.background=g),y!=null&&(S.backgroundColor=this.Cesium.Color.fromCssColorString(y),S.dynamicMaskingColor.backgroundColor=this.Cesium.Color.fromCssColorString(y)))})}}getBoundingRectangle(a){var o=this.Cesium.SceneTransforms.wgs84ToWindowCoordinates(window.map.viewer.scene,a.position);return o!==void 0?new this.Cesium.BoundingRectangle(o.x,o.y,a.width,a.height):new this.Cesium.BoundingRectangle(0,0,1,1)}getNonIntersectingRectangles(){let a=[];for(var o=0;o<this.DynamicMaskingArr.length;o++){let f=!1,u=this.DynamicMaskingArr[o],m,g,y;if(g=this.getBoundingRectangle(u),!(g.x<0||g.x>this.canvasClientWidth||g.y<0||g.y>this.canvasClientHeight))if(a.length===0){a.push(o);continue}else{for(var c=0;c<a.length;c++)if(m=this.DynamicMaskingArr[a[c]],y=this.getBoundingRectangle(m),this.Cesium.Intersect.OUTSIDE!==this.Cesium.BoundingRectangle.intersect(g,y)){f=!0;break}f||a.push(o)}}return new Set(a)}ifShow(){if(this.isDynamicMasking){let o={color:.001,outlineColor:.001,backgroundColor:.001},c={color:1,outlineColor:1,backgroundColor:1},f=this.getNonIntersectingRectangles(),u=new Set([...this.oldSet].filter(g=>!f.has(g))),m=new Set([...f].filter(g=>!this.oldSet.has(g)));for(let g of u)if(this.DynamicMaskingArr[g]){if(this.tweenMap.has(g)){var a=this.tweenMap.get(g);a.kill(),this.tweenMap.delete(g)}var a=Vc.to(c,{duration:.2,color:0,outlineColor:0,backgroundColor:0,onUpdate:()=>{var S,b;var y=this.DynamicMaskingArr[g];y.backgroundColor.alpha=c.backgroundColor,y.color.alpha=c.color,y.outlineColor.alpha=c.outlineColor,(b=(S=window.map.getLayer(y.id,"vectorId"))==null?void 0:S.getGraphicByAttr(y.uid))==null||b.setStyle({label:{show:!1,outline:!1,background:!1}})}});this.tweenMap.set(g,a)}for(let g of m)if(this.DynamicMaskingArr[g]){if(this.tweenMap.has(g)){var a=this.tweenMap.get(g);a.kill(),this.tweenMap.delete(g)}let y=this.DynamicMaskingArr[g],{backgroundColor:S,color:b,outlineColor:I}=y.dynamicMaskingColor;var a=Vc.to(o,{duration:.8+Math.random(),color:b.alpha,outlineColor:I.alpha,backgroundColor:S.alpha,onUpdate:()=>{var O,N;y.backgroundColor.alpha=o.backgroundColor,y.color.alpha=o.color,y.outlineColor.alpha=o.outlineColor,(N=(O=window.map.getLayer(y.id,"vectorId"))==null?void 0:O.getGraphicByAttr(y.uid))==null||N.setStyle({label:{show:!0,outline:y.outline,background:y.background,color:y.color,outlineColor:y.outlineColor,backgroundColor:y.backgroundColor}})}});this.tweenMap.set(g,a)}this.oldSet=f}}switchDynamicMasking(a){if(a)window.map.getLayers().forEach(o=>{var c;if((c=o.options)!=null&&c.vectorId){let{color:f,outlineColor:u,backgroundColor:m}=o.options.symbol.styleOptions.label;o.eachGraphic(g=>{g.setStyle({label:{color:f.withAlpha(0),outlineColor:u.withAlpha(.001),backgroundColor:m.withAlpha(.001),show:!1,background:!1,outline:!1}})})}});else if(this.DynamicMaskingStyle.length>0){let o;this.DynamicMaskingStyle.forEach(c=>{let{color:f,outline:u,outlineColor:m,background:g,backgroundColor:y,vectorId:S}=c;o=window.map.getLayer(S,"vectorId"),o&&o.eachGraphic(b=>{b.setStyle({label:{color:f,outlineColor:m,backgroundColor:y,show:!0,background:g,outline:u}})})})}this.isDynamicMasking=a,window.bimVector.switchDynamicMasking(a)}}const Ig=()=>{var x;window.planClip.clearPlanClip(),window.schemeEvnModify.clearAllEvnModify(),window.bimRotatePoint.stop(),window.bimTrafficSimulation.destruction(),window.bimMapPTV&&window.bimMapPTV.destruction(),window.romStop(),window.complete(),window.bimMapCompare.hide?window.bimMapCompare.hide():window.bimMapCompare.destroyControl(),window.updateEitor({content:""}),(x=window.glftSet.glftList)==null||x.map(a=>{a.remove()})},Dg=()=>{var x;window.planClip.clearPlanClip(),window.bimRotatePoint.stop(),window.bimTrafficSimulation.destruction(),window.bimMapPTV&&window.bimMapPTV.destruction(),window.romStop(),window.complete(),window.bimMapCompare.hide?window.bimMapCompare.hide():window.bimMapCompare.destroyControl(),window.updateEitor({content:""}),(x=window.glftSet.glftList)==null||x.map(a=>{a.remove()})},zg=()=>{var x;window.planClip.clearPlanClip(),window.bimRotatePoint.stop(),window.bimTrafficSimulation.destruction(),window.bimMapPTV&&window.bimMapPTV.destruction(),window.romStop(),window.complete(),window.bimMapCompare.hide?window.bimMapCompare.hide():window.bimMapCompare.destroyControl(),window.updateEitor({content:""}),(x=window.glftSet.glftList)==null||x.map(a=>{a.remove()})},kg=x=>{let a=[];if(x.forEach(o=>{let{id:c}=o,f={id:c,mockData:{nextPage:[],item:[],previousPage:[]}};o.operate.forEach((u,m)=>{let g=Wc(u,f.mockData.nextPage);f.mockData.nextPage=g,f.mockData.item=g,f.mockData.previousPage=[]}),a.push(f)}),a.length>1)for(let o=1;o<a.length;o++){let c=a[o].mockData,f=a[o-1].mockData.item;const u=new Map;f.forEach(m=>{m.type!="rotatePoint"&&m.type!="viewpoint"&&m.type!="roaming"&&m.type!="splitScreen"&&m.type!="planClip"&&m.type!="editor"&&m.type!="gltf"?u.set(`${m.screenplayId}-${m.type}`,m):a[o].mockData.previousPage.push(m)}),c.nextPage.forEach(m=>{const g=`${m.screenplayId}-${m.type}`;let y={...u.get(g)};if(u.has(g)){if(m.type=="flight")a[o].mockData.previousPage.unshift(u.get(g)),y=m;else{let S={};Object.keys(m).forEach(b=>{if(b!="screenplayId"&&b!="type")if(u.get(g)[b])if(Object.keys(S).length==0&&(S={screenplayId:m.screenplayId,type:m.type}),b=="clip"||b=="flat"){y[b]=Wd(u.get(g)[b],m[b]);let I={screenplayId:m.screenplayId,type:m.type};I[b]={},Object.keys(m[b]).forEach(k=>{u.get(g)[b][k]?I[b][k]=u.get(g)[b][k]:m[b][k]=="true"&&(I[b][k]="false")}),S={...I,...S}}else S[b]=u.get(g)[b],y[b]=m[b];else a[o].mockData.previousPage.some(I=>I.screenplayId===m.screenplayId)||(S={...jd(m,b),...S}),y[b]=m[b]}),Object.keys(S).length>0&&a[o].mockData.previousPage.push(S)}u.set(g,y)}else{let S=jd(m);S&&a[o].mockData.previousPage.push(S),u.set(g,m)}}),a[o].mockData.item=Array.from(u.values())}return a},Wc=(x,a=null)=>{let{executionProperty:o,screenplayId:c,property:f,type:u,delay:m,delayTime:g}=x;if((f=="add"||f==!0)&&(f="true"),(f=="remove"||f==!1)&&(f="false"),u=="pit"){let S=window.schemeEvnModify.getModelModifyDataForInitModelById(c);if(S){let b={};b[c]=f,f=b,c=S.modelId,o=S.type}}let y;if(c==""||c=="map")if(c="map",u=="splitScreen"){let{splitScreenMode:S,splitScreenModePercentage:b}=JSON.parse(f);a.push({screenplayId:c,type:u,executionProperty:{splitScreenMode:S,splitScreenModePercentage:b,mapClone:[]}});let{mainScreen:I,secondaryScreen:k}=JSON.parse(x.property);I.forEach(N=>{Wc(N,a)});let O=a.find(N=>N.type=="splitScreen");k.forEach(N=>{Wc(N,O.executionProperty.mapClone)})}else y={screenplayId:c,type:u,executionProperty:f},(o=="clip"||o=="flat")&&(y[o]=f),m&&(y.delay=m),g&&(y.delayTime=g),a&&(u=="flight"?a.unshift(y):a.push(y));else y=a?a.find(S=>S.screenplayId==c):null,y?(o=="clip"||o=="flat"?y[o]?y[o]=Wd(y[o],f):(y[o]=f,y.type="model"):y[o]=f,m&&(y[o].delay=m),g&&(y[o].delayTime=g)):(y={screenplayId:c,type:u},m&&(y.delay=m),g&&(y.delayTime=g),o=="clip"||o=="flat"?(y[o]=f,y.type="model"):y[o]=f,a&&(u=="flight"?a.unshift(y):a.push(y)));return a||y},Wd=(x,a)=>{const o={...x};for(const c in a)a.hasOwnProperty(c)&&(o[c]=a[c]);return o},jd=(x,a="all")=>{let{type:o,show:c,screenplayId:f,overallStaining:u,clip:m,flat:g}=x,y={};if(a=="all")switch(o){case"model":case"shp":case"plot":c&&c=="true"&&(y={screenplayId:f,type:o,show:"false"}),u&&(y={...y,screenplayId:f,type:o,overallStaining:"false"}),m&&(y={...y,screenplayId:f,type:o,clip:"false"}),g&&(y={...y,screenplayId:f,type:o,flat:"false"});break;case"terrain":y={screenplayId:f,type:o,executionProperty:"true"};break;case"pit":y={screenplayId:f,type:o,executionProperty:"false"};break;case"underground":y={screenplayId:f,type:o,executionProperty:"1"};break}else switch(a){case"clip":case"flat":case"overallStaining":y={screenplayId:f,type:o},y[a]="false";break}return Object.keys(y).length>0?y:null},Bg=(x,a)=>{const o={};return Object.keys(a).forEach(c=>{x.hasOwnProperty(c)&&(o[c]=x[c])}),o},Ng=x=>/^rgba\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*,\s*(0|1|0\.\d+)\s*\)$/i.test(x),Fg=x=>{let a={};(x==null?void 0:x.length)>0&&x[0].operate.forEach(o=>{let{executionProperty:c,screenplayId:f,property:u,type:m}=o;(c=="show"||c=="overallStaining")&&(a[f]||(a[f]={type:m}),a[f][u]=c)}),window.map.getLayers().forEach(o=>{if((o.type=="3dtiles"||o.type=="geojson"||o.type=="tileset")&&o.options.name!="国界"){let c=o.options.modelId||o.options.vectorId;a[c]?(window.bimModel.editColor(c),window.schemeEvnModify.clearAllModelModify({isClone:!1})):o.remove()}}),window.bimEntity.entityLayer.getGraphicsByAttr().forEach(o=>{o.remove()}),window.bimMapSetUp.undergroundVal(1),window.bimTerrainProvider.show(),window.bimTrafficSimulation.destruction(),window.bimRotatePoint.stop(),window.bimMapPTV.destruction(),window.romStop(),window.complete(),window.planClip.clearPlanClip()};class Ug{constructor(a){Ys(this,"getPositions",a=>a.length>1&&(Array.isArray(a[0])||typeof a[0]=="object")?a:this.getPositions(a[0]));Ys(this,"terrainCutById",(a,o,c)=>{switch(c==null?void 0:c.isClone){case!0:if(this.createTerrainModifyInstanceClone(),!this.terrainClipClone||this.terrainClipClone.list.find(f=>f.id==o))return;this.terrainClipClone.addArea(a.length>1?a:a[0],{id:o});break;case!1:if(!this.terrainClip||this.terrainClip.list.find(f=>f.id==o))return;this.terrainClip.addArea(a.length>1?a:a[0],{id:o});break}});Ys(this,"clearTerrainCutById",(a,o)=>{switch(o==null?void 0:o.isClone){case!0:if(this.createTerrainModifyInstanceClone(),!this.terrainClipClone)return;this.terrainClipClone.removeArea(a);break;case!1:if(!this.terrainClip)return;this.terrainClip.removeArea(a);break}});Ys(this,"terrainFlattenById",(a,o,c,f)=>{switch(f==null?void 0:f.isClone){case!0:if(this.createTerrainModifyInstanceClone(),!this.terrainFlatClone||this.terrainFlatClone.list.find(u=>u.id==c))return;this.terrainFlatClone.addArea(a.length>1?a:a[0],{id:c,height:o});break;case!1:if(!this.terrainFlat||this.terrainFlat.list.find(u=>u.id==c))return;this.terrainFlat.addArea(a.length>1?a:a[0],{id:c,height:o});break}});Ys(this,"clearTerrainFlattenById",(a,o)=>{switch(o==null?void 0:o.isClone){case!0:if(this.createTerrainModifyInstanceClone(),!this.terrainFlatClone)return;this.terrainFlatClone.removeArea(a);break;case!1:if(!this.terrainFlat)return;this.terrainFlat.removeArea(a);break}});this.flattenedEvnModifyData=a,this.modelIdListByModify=[],this.modelIdListByModifyClone=[],this.terrainClip=null,this.terrainFlat=null,this.terrainClipClone=null,this.terrainFlatClone=null,this.createTerrainModifyInstance()}getDataFromFlattenedEvnModifyListById(a){const o=this.flattenedEvnModifyData.find(c=>c.id==a);return o||null}getModelFromMapById(a,o){let c;switch(o==null?void 0:o.isClone){case!0:c=window.mapClone?window.mapClone.mapEx.getLayers():[];break;case!1:c=window.map.getLayers();break}return c.find(u=>u.options.modelId==a)}updateFlattenedEvnModifyData(a){this.flattenedEvnModifyData=a}modelCutById(a,o,c,f){const u=bimModel.queryModel(a,f);if(u&&!u.clip.list.find(m=>m.id==c))switch(u.clip.addArea(o.length>1?o:o[0],{id:c}),f==null?void 0:f.isClone){case!0:this.modelIdListByModifyClone.push(a),this.modelIdListByModifyClone=[...new Set(this.modelIdListByModifyClone)];break;case!1:this.modelIdListByModify.push(a),this.modelIdListByModify=[...new Set(this.modelIdListByModify)];break}}modelFlattenById(a,o,c,f,u){const m=bimModel.queryModel(a,u);if(m&&!m.flat.list.find(g=>g.id==f))switch(m.flat.addArea(o.length>1?o:o[0],{height:c,id:f}),u==null?void 0:u.isClone){case!0:this.modelIdListByModifyClone.push(a),this.modelIdListByModifyClone=[...new Set(this.modelIdListByModifyClone)];break;case!1:this.modelIdListByModify.push(a),this.modelIdListByModify=[...new Set(this.modelIdListByModify)];break}}clearModelCutById(a,o,c){const f=bimModel.queryModel(a,c);if(f)switch(f.clip.removeArea(o),c.isClone){case!0:this.modelIdListByModifyClone=this.modelIdListByModifyClone.filter(u=>u!=a);break;case!1:this.modelIdListByModify=this.modelIdListByModify.filter(u=>u!=a);break}}clearModelFlattenById(a,o,c){const f=bimModel.queryModel(a,c);if(f)switch(f.flat.removeArea(o),c==null?void 0:c.isClone){case!0:this.modelIdListByModifyClone=this.modelIdListByModifyClone.filter(u=>u!=a);break;case!1:this.modelIdListByModify=this.modelIdListByModify.filter(u=>u!=a);break}}createTerrainModifyInstance(){if(window.map.thing.terrainClip)this.terrainClip=window.map.thing.terrainClip;else{const a=new mars3d.thing.TerrainClip({czm:!1,splitNum:30});window.map.addThing(a),this.terrainClip=a}if(window.map.thing.terrainFlat)this.terrainFlat=window.map.thing.terrainFlat;else{const a=new mars3d.thing.TerrainFlat({splitNum:80});window.map.addThing(a),this.terrainFlat=a}}createTerrainModifyInstanceClone(){if(window.mapClone){if(window.mapClone.mapEx.thing.terrainClip)this.terrainClipClone=window.mapClone.mapEx.thing.terrainClip;else{const a=new mars3d.thing.TerrainClip({splitNum:80});window.mapClone.mapEx.addThing(a),this.terrainClipClone=a}if(window.mapClone.mapEx.thing.terrainFlat)this.terrainFlatClone=window.mapClone.mapEx.thing.terrainFlat;else{const a=new mars3d.thing.TerrainFlat({splitNum:80});window.mapClone.mapEx.addThing(a),this.terrainFlatClone=a}}}evnModifyById(a,o){o=arguments[1]||{isClone:!1};const c=this.getDataFromFlattenedEvnModifyListById(a);if(!c)return;const{bimEnvModify:{embsId:f,dataType:u,modifyType:m}}=c;for(let g=0;g<c.bimEnvModifyData.length;g++){const y=this.getPositions(JSON.parse(c.bimEnvModifyData[g].modifyData).coordinates),S=JSON.parse(c.bimEnvModifyData[g].modifyData).depth,b=c.bimEnvModifyData[g].id;u===0&&m===0?this.modelCutById(f,y,b,o):u===0&&m===1?this.modelFlattenById(f,y,S,b,o):u===1&&m===0?this.terrainCutById(y,b,o):u===1&&m===1&&this.terrainFlattenById(y,S,b,o)}}evnModifyByIdAndAddOptionsToStore(a,o){o=arguments[1]||{isClone:!1};const c=this.getDataFromFlattenedEvnModifyListById(a);if(!c)return;const{bimEnvModify:{embsId:f,dataType:u,modifyType:m}}=c;for(let g=0;g<c.bimEnvModifyData.length;g++){const y=this.getPositions(JSON.parse(c.bimEnvModifyData[g].modifyData).coordinates),S=JSON.parse(c.bimEnvModifyData[g].modifyData).depth,b=c.bimEnvModifyData[g].id;u===0&&m===0?this.modelCutById(f,y,b,o):u===0&&m===1?this.modelFlattenById(f,y,S,b,o):u===1&&m===0?this.terrainCutById(y,b,o):u===1&&m===1&&this.terrainFlattenById(y,S,b,o)}}clearEvnModifyById(a,o){o=arguments[1]||{isClone:!1};const c=this.getDataFromFlattenedEvnModifyListById(a);if(!c)return;const{bimEnvModify:{embsId:f,dataType:u,modifyType:m}}=c;for(let g=0;g<c.bimEnvModifyData.length;g++){const y=c.bimEnvModifyData[g].id;u===0&&m===0?this.clearModelCutById(f,y,o):u===0&&m===1?this.clearModelFlattenById(f,y,o):u===1&&m===0?this.clearTerrainCutById(y,o):u===1&&m===1&&this.clearTerrainFlattenById(y,o)}}clearAllModelModify(a){switch(a||(a={isClone:!1}),a.isClone){case!0:this.modelIdListByModifyClone.forEach(o=>{const c=bimModel.queryModel(o,a);c&&(c.clip.clear(),c.flat.clear())}),this.modelIdListByModifyClone=[];break;case!1:this.modelIdListByModify.forEach(o=>{const c=bimModel.queryModel(o,a);c&&(c.clip.clear(),c.flat.clear())}),this.modelIdListByModify=[];break}}clearAllTerrainModify(a){switch(a||(a={isClone:!1}),a.isClone){case!0:window.mapClone||(this.terrainClipClone=null,this.terrainFlatClone=null),this.terrainClipClone&&this.terrainClipClone.clear(),this.terrainFlatClone&&this.terrainFlatClone.clear();break;case!1:this.terrainClip&&this.terrainClip.clear(),this.terrainFlat&&this.terrainFlat.clear();break}}getModelModifyDataForInitModelById(a){const o=this.getDataFromFlattenedEvnModifyListById(a);if(!o)return;const{bimEnvModify:{embsId:c,dataType:f,modifyType:u}}=o;if(this.modelIdListByModify.push(c),f===0&&u===0){const m={modelId:c,type:"clip",area:[]};for(let g=0;g<o.bimEnvModifyData.length;g++){const S={positions:this.getPositions(JSON.parse(o.bimEnvModifyData[g].modifyData).coordinates),id:o.bimEnvModifyData[g].id};m.area.push(S)}return m}else if(f===0&&u===1){const m={modelId:c,type:"flat",area:[]};for(let g=0;g<o.bimEnvModifyData.length;g++){const y=this.getPositions(JSON.parse(o.bimEnvModifyData[g].modifyData).coordinates),S={id:o.bimEnvModifyData[g].id,positions:y,height:JSON.parse(o.bimEnvModifyData[g].modifyData).depth};return m.area.push(S),m}}}clearAllEvnModify(){this.clearAllModelModify({isClone:!0}),this.clearAllModelModify({isClone:!1}),this.clearAllTerrainModify({isClone:!0}),this.clearAllTerrainModify({isClone:!1})}destroyTerrainModifyInstance(){this.clearAllTerrainModify({isClone:!0}),this.clearAllTerrainModify({isClone:!1}),this.terrainClip&&window.map.removeThing(this.terrainClip,!0),this.terrainFlat&&window.map.removeThing(this.terrainFlat,!0),this.terrainClipClone&&window.mapClone.mapEx.removeThing(this.terrainClipClone,!0),this.terrainFlatClone&&window.mapClone.mapEx.removeThing(this.terrainFlatClone,!0),this.terrainClip=null,this.terrainFlat=null,this.terrainClipClone=null,this.terrainFlatClone=null}}let Gl=null,ms=null,na=null;class Gg{constructor(){mars3d&&(this.projectId=parseInt(window.sessionStorage.getItem("nowProjectId")),this.viewPoints=new Array,this.roaming=null)}init(a,o,c){ms=new mars3d.layer.GraphicLayer({isContinued:!0});var f=this;window.map.addLayer(ms),ms.on(mars3d.EventType.drawCreated,function(u){var m=u.graphic.point;o(m),setTimeout(()=>{f.startDrawGraphic()},500)}),ms.on(mars3d.EventType.editStop,function(u){}),na=c,Gl=new mars3d.layer.GraphicLayer,window.map.addLayer(Gl),a&&(this.viewPoints=a.filter((u,m)=>{if(m%(na.smooth*1)==0)return u})),this.addGraphicLayer(this.viewPoints)}addDemoGraphic1(a,o){const c=new mars3d.graphic.PolylinePrimitive({positions:a.map(f=>[f.lng,f.lat,f.alt+1e3]),style:{width:10,materialType:mars3d.MaterialType.LineFlow,materialOptions:{color:"red",image:o+"img/line/line-arrow-blue.png",speed:10,repeat:new Cesium.Cartesian2(5,1),mixt:!0}}});Gl.addGraphic(c)}addGraphicLayer(a){var o={};na.Viewovalue==1?o={camera:{type:"dy",followedX:na.followedX,followedZ:na.followedZ},interpolation:!0,interpolationDegree:6,autoMiddleDynamicPosition:!0,interpolationAlgorithm:Cesium.HermitePolynomialApproximation}:na.Viewovalue==2?o={camera:{type:"gs",pitch:-30,radius:500},interpolation:!0,interpolationDegree:2,clockLoop:!0,path:{width:3,color:Cesium.Color.fromCssColorString("#ff0000").withAlpha(.5)}}:o={camera:{type:"sd",followedZ:na.followedZ},polyline:{width:3,color:Cesium.Color.fromCssColorString("#ff0000").withAlpha(.5)}},a=a.map(c=>[c.lng,c.lat,c.alt]),a.length,this.fixedRoute=new mars3d.graphic.FixedRoute({name:"贴地表表面漫游",speed:na.speed,autoStop:!0,positions:a,offsetHeight:1.6,clockLoop:!0,...o}),Gl.addGraphic(this.fixedRoute)}addDemoGraphic(a,o){const c=new mars3d.graphic.BillboardEntity({position:new mars3d.LngLatPoint(a.lng,a.lat,a.alt),style:{width:30,height:32,image:"/img/marker/markffd700.png",scale:1,scaleByDistance:!1,scaleByDistance_far:1e6,scaleByDistance_farValue:.1,scaleByDistance_near:1e3,scaleByDistance_nearValue:1,distanceDisplayCondition:!1,distanceDisplayCondition_far:2e6,distanceDisplayCondition_near:0,clampToGround:!1,visibleDepth:!1,drawShow:!0}});ms.addGraphic(c)}startDrawGraphic(a){ms.startDraw({type:"billboard",style:{width:30,height:32,image:"/img/marker/markffd700.png",scale:1,scaleByDistance:!1,scaleByDistance_far:1e6,scaleByDistance_farValue:.1,scaleByDistance_near:1e3,scaleByDistance_nearValue:1,distanceDisplayCondition:!1,distanceDisplayCondition_far:2e6,distanceDisplayCondition_near:0,clampToGround:!1,visibleDepth:!1,drawShow:!0,classificationType:Cesium.ClassificationType.TERRAIN}}).then(o=>{})}start(){this.fixedRoute&&(this.fixedRoute.start(),window.map.scene.screenSpaceCameraController.enableCollisionDetection=!1)}pause(){this.fixedRoute&&this.fixedRoute.pause()}resume(){this.fixedRoute&&this.fixedRoute.proceed()}stop(){this.fixedRoute&&this.fixedRoute.stop()}remove(){this.fixedRoute&&this.fixedRoute.stop(),window.map.removeThing(this.roaming,!0),window.map.removeLayer(Gl,!0),window.map.removeLayer(ms,!0),this.viewPoints=[],window.map.scene.screenSpaceCameraController.enableCollisionDetection=!0}removeCameraRoute(){Gl.clear(),ms.clear()}removegraphicLayerpoint(){ms.clear()}}class Hg{constructor(a){window.mars3d&&(this.beginDate="",this.endDate="",this.trafficSimulationLayer,this.trafficSimulationArr=[],this.style={width:4,materialType:window.mars3d.MaterialType.LineFlow,materialOptions:{color:"#4ac2ff",image:a+"img/textures/line-arrow-right.png",repeat_x:20,repeat_y:1,speed:20},clampToGround:!1,allowDrillPick:!1},this.vehicleSum=100,this.automobileList=[{url:a+"gltf/cart/suv.gltf"},{url:a+"gltf/cart/red_car.gltf"},{url:a+"gltf/cart/benchi3.gltf"},{url:a+"gltf/cart/suv.gltf"},{url:a+"gltf/cart/red_car.gltf"},{url:a+"gltf/cart/benchi3.gltf"},{url:a+"gltf/cart/aodi1.gltf"},{url:a+"gltf/cart/kache3.gltf"},{url:a+"gltf/cart/bus2.gltf"},{url:a+"gltf/cart/jiaobanche.glb"}],this._czmlLayer,this._czmlLayerArr=[])}init(a){this.trafficSimulationLayer=new window.mars3d.layer.GraphicLayer({temporaryLayer:"trafficSimulation"}),window.map.addLayer(this.trafficSimulationLayer),window.map.bimMapEdit="1",a&&(this._czmlLayerArr=a)}addLine(a){let o=a;return new Promise(c=>{this.trafficSimulationLayer.startDraw({type:"polylineP",attr:{trafficSimulationId:o},style:{...this.style}}).then(f=>{c({id:o,pointSet:f.coordinates,speed:45,interval:1})})})}initLine(a){let o;a.forEach(c=>{let{id:f}=c;o=new window.mars3d.graphic.PolylinePrimitive({positions:c.pointSet,attr:{trafficSimulationId:f},style:{...this.style}}),this.trafficSimulationLayer.addGraphic(o)})}positionLine(a){let o=this.queryTrafficSimulationLine(a);o&&o.flyTo({scale:2})}deleteLine(a){let o=this.queryTrafficSimulationLine(a);o&&o.remove()}queryTrafficSimulationArr(){return this.trafficSimulationArr}queryTrafficSimulationLine(a){if(this.trafficSimulationLayer)return this.trafficSimulationLayer.getGraphicByAttr(a,"trafficSimulationId")}editTrafficSimulationLine(a,o=!0){let c=this.queryTrafficSimulationLine(a);o?(c.setStyle({materialOptions:{color:"#ff0000"}}),c.startEditing()):(c.setStyle({materialOptions:{color:"#4ac2ff"}}),c.stopEditing())}fallbackTrafficSimulationLine(a,o){let c=this.queryTrafficSimulationLine(a);c.positions=o,c.setStyle({materialOptions:{color:"#4ac2ff"}}),c.stopEditing()}queryCzml(a){return this._czmlLayerArr.length==0?!1:this._czmlLayerArr.find(o=>o.id==a)}start(a="add"){this.destruction(),this.beginDate=new Date().toISOString();let o=new Date,c=o.getDate();o.setDate(c+1),this.endDate=o.toISOString(),this.queryCzml(a)?this.trafficSimulationArr=JSON.parse(this.queryCzml(a).route):this.trafficSimulationArr=[],this.processingData(a)}selected(){this._czmlLayer&&this._czmlLayer.flyTo()}destruction(){this.trafficSimulationLayer.clear(),this.trafficSimulationLayer.remove(),this._czmlLayer&&(this._czmlLayer.clear(),this._czmlLayer.remove()),this.style.materialOptions.color="#4ac2ff",window.map.bimMapEdit="0"}processingData(a){let o=[{version:"1.0",id:"document",clock:{interval:`${this.beginDate}/${this.endDate}`,currentTime:this.beginDate,multiplier:1},style:{distanceDisplayCondition:!0,distanceDisplayCondition_far:1e6,distanceDisplayCondition_near:0}}],c=[],f=JSON.parse(JSON.stringify(this.trafficSimulationArr)),u=0;f.forEach((g,y)=>{let S=0,b=0,{pointSet:I,interval:k,speed:O}=g;for(let N=1;N<=this.vehicleSum;N++){let E=JSON.parse(JSON.stringify(I));E.forEach((w,M)=>{M>0&&(u=parseFloat((this.disTance(w,E[M-1].slice(1))/O).toFixed(2)),S+=u),M==0&&(S=b),w.unshift(S)}),b+=k,c=E.reduce((w,M)=>w.concat(M));let L={name:`${y}-${N}`,availability:`${this.beginDate}/${this.endDate}`,orientation:{velocityReference:"#position"},position:{epoch:this.beginDate,cartographicDegrees:c},style:{minimumPixelSize:100,distanceDisplayCondition:!0,distanceDisplayCondition_near:0,distanceDisplayCondition_far:1300,distanceDisplayPoint:{color:"#00ff00",pixelSize:8}},model:{show:!0,gltf:this.randomVehicle(),heightReference:window.Cesium.HeightReference.CLAMP_TO_GROUND,clampToGround:!0,scale:.6,minimumPixelSize:100,maximumScale:1.5}};o.push(L)}});let m={name:"交通模拟",czmlId:a,data:o,autoUpdateClock:!1};this._czmlLayer=new window.mars3d.layer.CzmlLayer(m),window.map.addLayer(this._czmlLayer)}disTance(a,o){let c,f,u;return c=window.Cesium.Cartesian3.fromDegrees(...a),f=window.Cesium.Cartesian3.fromDegrees(...o),u=window.Cesium.Cartesian3.distance(c,f),u}randomVehicle(){let a=Math.round(Math.random()*(this.automobileList.length-1));return this.automobileList[a].url}}const Vg=[Tf,Ef],Wg={continuation:null,mapModali:null,install(x){if(Vg.forEach((m,g)=>{x.component(m.name,m)}),this.continuation){x.config.globalProperties.$continuation=this.continuation;return}let a=oi.createApp(Mf),o=document.createElement("div"),c=document.body;if(c.appendChild(o),this.loading=a.mount(o),x.config.globalProperties.$loading=this.loading,window.$continuation=this.loading,this.mapModali){x.config.globalProperties.$mapModali=this.mapModali;return}let f=oi.createApp(Sf),u=document.createElement("div");c.appendChild(u),this.mapModali=f.mount(u),x.config.globalProperties.$mapModali=this.mapModali,window.$mapModali=this.mapModali}};Pi.BimBackgroundPlate=Ef,Pi.BimCutscenes=Mf,Pi.BimElevationImage=um,Pi.BimEntity=fm,Pi.BimModel=sm,Pi.BimModify=Ug,Pi.BimTerrainProvider=hm,Pi.BimTrafficSimulation=Hg,Pi.BimVector=lm,Pi.Bimroaming=Gg,Pi.Button=Tf,Pi.ChbimPlugins=Wg,Pi.DynamicMasking=Og,Pi.MapModali=Sf,Pi.PanoramicView=vm,Pi.ViewShed=cm,Pi.getSameKeyData=Bg,Pi.init=Ig,Pi.initMap=Fg,Pi.isValidRGBA=Ng,Pi.nextPage=zg,Pi.operateMapData=kg,Pi.previousPage=Dg,Object.defineProperty(Pi,Symbol.toStringTag,{value:"Module"})});
2702
+ */var Sd,ta,Bl,Ic,Wa,Ed,Dc,ug=function(){return typeof window<"u"},ds={},ja=180/Math.PI,Nl=Math.PI/180,Fl=Math.atan2,bd=1e8,zc=/([A-Z])/g,cg=/(left|right|width|margin|padding|x)/i,fg=/[\s,\(]\S/,jo={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},kc=function(a,o){return o.set(o.t,o.p,Math.round((o.s+o.c*a)*1e4)/1e4+o.u,o)},dg=function(a,o){return o.set(o.t,o.p,a===1?o.e:Math.round((o.s+o.c*a)*1e4)/1e4+o.u,o)},pg=function(a,o){return o.set(o.t,o.p,a?Math.round((o.s+o.c*a)*1e4)/1e4+o.u:o.b,o)},mg=function(a,o){var c=o.s+o.c*a;o.set(o.t,o.p,~~(c+(c<0?-.5:.5))+o.u,o)},Cd=function(a,o){return o.set(o.t,o.p,a?o.e:o.b,o)},Ad=function(a,o){return o.set(o.t,o.p,a!==1?o.b:o.e,o)},gg=function(a,o,c){return a.style[o]=c},vg=function(a,o,c){return a.style.setProperty(o,c)},yg=function(a,o,c){return a._gsap[o]=c},_g=function(a,o,c){return a._gsap.scaleX=a._gsap.scaleY=c},xg=function(a,o,c,f,u){var m=a._gsap;m.scaleX=m.scaleY=c,m.renderTransform(u,m)},wg=function(a,o,c,f,u){var m=a._gsap;m[o]=c,m.renderTransform(u,m)},pn="transform",Lr=pn+"Origin",Tg=function x(a,o){var c=this,f=this.target,u=f.style,m=f._gsap;if(a in ds&&u){if(this.tfm=this.tfm||{},a!=="transform")a=jo[a]||a,~a.indexOf(",")?a.split(",").forEach(function(g){return c.tfm[g]=ps(f,g)}):this.tfm[a]=m.x?m[a]:ps(f,a),a===Lr&&(this.tfm.zOrigin=m.zOrigin);else return jo.transform.split(",").forEach(function(g){return x.call(c,g,o)});if(this.props.indexOf(pn)>=0)return;m.svg&&(this.svgo=f.getAttribute("data-svg-origin"),this.props.push(Lr,o,"")),a=pn}(u||o)&&this.props.push(a,o,u[a])},Pd=function(a){a.translate&&(a.removeProperty("translate"),a.removeProperty("scale"),a.removeProperty("rotate"))},Mg=function(){var a=this.props,o=this.target,c=o.style,f=o._gsap,u,m;for(u=0;u<a.length;u+=3)a[u+1]?o[a[u]]=a[u+2]:a[u+2]?c[a[u]]=a[u+2]:c.removeProperty(a[u].substr(0,2)==="--"?a[u]:a[u].replace(zc,"-$1").toLowerCase());if(this.tfm){for(m in this.tfm)f[m]=this.tfm[m];f.svg&&(f.renderTransform(),o.setAttribute("data-svg-origin",this.svgo||"")),u=Dc(),(!u||!u.isStart)&&!c[pn]&&(Pd(c),f.zOrigin&&c[Lr]&&(c[Lr]+=" "+f.zOrigin+"px",f.zOrigin=0,f.renderTransform()),f.uncache=1)}},Ld=function(a,o){var c={target:a,props:[],revert:Mg,save:Tg};return a._gsap||Pr.core.getCache(a),o&&o.split(",").forEach(function(f){return c.save(f)}),c},Rd,Bc=function(a,o){var c=ta.createElementNS?ta.createElementNS((o||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),a):ta.createElement(a);return c&&c.style?c:ta.createElement(a)},Xo=function x(a,o,c){var f=getComputedStyle(a);return f[o]||f.getPropertyValue(o.replace(zc,"-$1").toLowerCase())||f.getPropertyValue(o)||!c&&x(a,Ul(o)||o,1)||""},Od="O,Moz,ms,Ms,Webkit".split(","),Ul=function(a,o,c){var f=o||Wa,u=f.style,m=5;if(a in u&&!c)return a;for(a=a.charAt(0).toUpperCase()+a.substr(1);m--&&!(Od[m]+a in u););return m<0?null:(m===3?"ms":m>=0?Od[m]:"")+a},Nc=function(){ug()&&window.document&&(Sd=window,ta=Sd.document,Bl=ta.documentElement,Wa=Bc("div")||{style:{}},Bc("div"),pn=Ul(pn),Lr=pn+"Origin",Wa.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Rd=!!Ul("perspective"),Dc=Pr.core.reverting,Ic=1)},Fc=function x(a){var o=Bc("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),c=this.parentNode,f=this.nextSibling,u=this.style.cssText,m;if(Bl.appendChild(o),o.appendChild(this),this.style.display="block",a)try{m=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=x}catch{}else this._gsapBBox&&(m=this._gsapBBox());return c&&(f?c.insertBefore(this,f):c.appendChild(this)),Bl.removeChild(o),this.style.cssText=u,m},Id=function(a,o){for(var c=o.length;c--;)if(a.hasAttribute(o[c]))return a.getAttribute(o[c])},Dd=function(a){var o;try{o=a.getBBox()}catch{o=Fc.call(a,!0)}return o&&(o.width||o.height)||a.getBBox===Fc||(o=Fc.call(a,!0)),o&&!o.width&&!o.x&&!o.y?{x:+Id(a,["x","cx","x1"])||0,y:+Id(a,["y","cy","y1"])||0,width:0,height:0}:o},zd=function(a){return!!(a.getCTM&&(!a.parentNode||a.ownerSVGElement)&&Dd(a))},Xa=function(a,o){if(o){var c=a.style,f;o in ds&&o!==Lr&&(o=pn),c.removeProperty?(f=o.substr(0,2),(f==="ms"||o.substr(0,6)==="webkit")&&(o="-"+o),c.removeProperty(f==="--"?o:o.replace(zc,"-$1").toLowerCase())):c.removeAttribute(o)}},ea=function(a,o,c,f,u,m){var g=new Ar(a._pt,o,c,0,1,m?Ad:Cd);return a._pt=g,g.b=f,g.e=u,a._props.push(c),g},kd={deg:1,rad:1,turn:1},Sg={grid:1,flex:1},ia=function x(a,o,c,f){var u=parseFloat(c)||0,m=(c+"").trim().substr((u+"").length)||"px",g=Wa.style,y=cg.test(o),S=a.tagName.toLowerCase()==="svg",b=(S?"client":"offset")+(y?"Width":"Height"),I=100,k=f==="px",O=f==="%",N,E,L,w;if(f===m||!u||kd[f]||kd[m])return u;if(m!=="px"&&!k&&(u=x(a,o,c,"px")),w=a.getCTM&&zd(a),(O||m==="%")&&(ds[o]||~o.indexOf("adius")))return N=w?a.getBBox()[y?"width":"height"]:a[b],Rn(O?u/N*I:u/100*N);if(g[y?"width":"height"]=I+(k?m:f),E=~o.indexOf("adius")||f==="em"&&a.appendChild&&!S?a:a.parentNode,w&&(E=(a.ownerSVGElement||{}).parentNode),(!E||E===ta||!E.appendChild)&&(E=ta.body),L=E._gsap,L&&O&&L.width&&y&&L.time===Xr.time&&!L.uncache)return Rn(u/L.width*I);if(O&&(o==="height"||o==="width")){var M=a.style[o];a.style[o]=I+f,N=a[b],M?a.style[o]=M:Xa(a,o)}else(O||m==="%")&&!Sg[Xo(E,"display")]&&(g.position=Xo(a,"position")),E===a&&(g.position="static"),E.appendChild(Wa),N=Wa[b],E.removeChild(Wa),g.position="absolute";return y&&O&&(L=Na(E),L.time=Xr.time,L.width=E[b]),Rn(k?N*u/I:N&&u?I/N*u:0)},ps=function(a,o,c,f){var u;return Ic||Nc(),o in jo&&o!=="transform"&&(o=jo[o],~o.indexOf(",")&&(o=o.split(",")[0])),ds[o]&&o!=="transform"?(u=Lh(a,f),u=o!=="transformOrigin"?u[o]:u.svg?u.origin:Mu(Xo(a,Lr))+" "+u.zOrigin+"px"):(u=a.style[o],(!u||u==="auto"||f||~(u+"").indexOf("calc("))&&(u=Tu[o]&&Tu[o](a,o,c)||Xo(a,o)||Uf(a,o)||(o==="opacity"?1:0))),c&&!~(u+"").trim().indexOf(" ")?ia(a,o,u,c)+c:u},Eg=function(a,o,c,f){if(!c||c==="none"){var u=Ul(o,a,1),m=u&&Xo(a,u,1);m&&m!==c?(o=u,c=m):o==="borderColor"&&(c=Xo(a,"borderTopColor"))}var g=new Ar(this._pt,a.style,o,0,1,xd),y=0,S=0,b,I,k,O,N,E,L,w,M,R,C,U;if(g.b=c,g.e=f,c+="",f+="",f==="auto"&&(E=a.style[o],a.style[o]=f,f=Xo(a,o)||f,E?a.style[o]=E:Xa(a,o)),b=[c,f],ud(b),c=b[0],f=b[1],k=c.match(Rl)||[],U=f.match(Rl)||[],U.length){for(;I=Rl.exec(f);)L=I[0],M=f.substring(y,I.index),N?N=(N+1)%5:(M.substr(-5)==="rgba("||M.substr(-5)==="hsla(")&&(N=1),L!==(E=k[S++]||"")&&(O=parseFloat(E)||0,C=E.substr((O+"").length),L.charAt(1)==="="&&(L=Ol(O,L)+C),w=parseFloat(L),R=L.substr((w+"").length),y=Rl.lastIndex-R.length,R||(R=R||Hr.units[o]||C,y===f.length&&(f+=R,g.e+=R)),C!==R&&(O=ia(a,o,E,R)||0),g._pt={_next:g._pt,p:M||S===1?M:",",s:O,c:w-O,m:N&&N<4||o==="zIndex"?Math.round:0});g.c=y<f.length?f.substring(y,f.length):""}else g.r=o==="display"&&f==="none"?Ad:Cd;return If.test(f)&&(g.e=0),this._pt=g,g},Bd={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},bg=function(a){var o=a.split(" "),c=o[0],f=o[1]||"50%";return(c==="top"||c==="bottom"||f==="left"||f==="right")&&(a=c,c=f,f=a),o[0]=Bd[c]||c,o[1]=Bd[f]||f,o.join(" ")},Cg=function(a,o){if(o.tween&&o.tween._time===o.tween._dur){var c=o.t,f=c.style,u=o.u,m=c._gsap,g,y,S;if(u==="all"||u===!0)f.cssText="",y=1;else for(u=u.split(","),S=u.length;--S>-1;)g=u[S],ds[g]&&(y=1,g=g==="transformOrigin"?Lr:pn),Xa(c,g);y&&(Xa(c,pn),m&&(m.svg&&c.removeAttribute("transform"),Lh(c,1),m.uncache=1,Pd(f)))}},Tu={clearProps:function(a,o,c,f,u){if(u.data!=="isFromStart"){var m=a._pt=new Ar(a._pt,o,c,0,0,Cg);return m.u=f,m.pr=-10,m.tween=u,a._props.push(c),1}}},Ph=[1,0,0,1,0,0],Nd={},Fd=function(a){return a==="matrix(1, 0, 0, 1, 0, 0)"||a==="none"||!a},Ud=function(a){var o=Xo(a,pn);return Fd(o)?Ph:o.substr(7).match(Of).map(Rn)},Uc=function(a,o){var c=a._gsap||Na(a),f=a.style,u=Ud(a),m,g,y,S;return c.svg&&a.getAttribute("transform")?(y=a.transform.baseVal.consolidate().matrix,u=[y.a,y.b,y.c,y.d,y.e,y.f],u.join(",")==="1,0,0,1,0,0"?Ph:u):(u===Ph&&!a.offsetParent&&a!==Bl&&!c.svg&&(y=f.display,f.display="block",m=a.parentNode,(!m||!a.offsetParent)&&(S=1,g=a.nextElementSibling,Bl.appendChild(a)),u=Ud(a),y?f.display=y:Xa(a,"display"),S&&(g?m.insertBefore(a,g):m?m.appendChild(a):Bl.removeChild(a))),o&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},Gc=function(a,o,c,f,u,m){var g=a._gsap,y=u||Uc(a,!0),S=g.xOrigin||0,b=g.yOrigin||0,I=g.xOffset||0,k=g.yOffset||0,O=y[0],N=y[1],E=y[2],L=y[3],w=y[4],M=y[5],R=o.split(" "),C=parseFloat(R[0])||0,U=parseFloat(R[1])||0,F,X,K,Z;c?y!==Ph&&(X=O*L-N*E)&&(K=C*(L/X)+U*(-E/X)+(E*M-L*w)/X,Z=C*(-N/X)+U*(O/X)-(O*M-N*w)/X,C=K,U=Z):(F=Dd(a),C=F.x+(~R[0].indexOf("%")?C/100*F.width:C),U=F.y+(~(R[1]||R[0]).indexOf("%")?U/100*F.height:U)),f||f!==!1&&g.smooth?(w=C-S,M=U-b,g.xOffset=I+(w*O+M*E)-w,g.yOffset=k+(w*N+M*L)-M):g.xOffset=g.yOffset=0,g.xOrigin=C,g.yOrigin=U,g.smooth=!!f,g.origin=o,g.originIsAbsolute=!!c,a.style[Lr]="0px 0px",m&&(ea(m,g,"xOrigin",S,C),ea(m,g,"yOrigin",b,U),ea(m,g,"xOffset",I,g.xOffset),ea(m,g,"yOffset",k,g.yOffset)),a.setAttribute("data-svg-origin",C+" "+U)},Lh=function(a,o){var c=a._gsap||new pd(a);if("x"in c&&!o&&!c.uncache)return c;var f=a.style,u=c.scaleX<0,m="px",g="deg",y=getComputedStyle(a),S=Xo(a,Lr)||"0",b,I,k,O,N,E,L,w,M,R,C,U,F,X,K,Z,ct,Rt,tt,_t,G,Pt,Et,At,ce,re,Ft,It,Nt,Pe,pe,Wt;return b=I=k=E=L=w=M=R=C=0,O=N=1,c.svg=!!(a.getCTM&&zd(a)),y.translate&&((y.translate!=="none"||y.scale!=="none"||y.rotate!=="none")&&(f[pn]=(y.translate!=="none"?"translate3d("+(y.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(y.rotate!=="none"?"rotate("+y.rotate+") ":"")+(y.scale!=="none"?"scale("+y.scale.split(" ").join(",")+") ":"")+(y[pn]!=="none"?y[pn]:"")),f.scale=f.rotate=f.translate="none"),X=Uc(a,c.svg),c.svg&&(c.uncache?(ce=a.getBBox(),S=c.xOrigin-ce.x+"px "+(c.yOrigin-ce.y)+"px",At=""):At=!o&&a.getAttribute("data-svg-origin"),Gc(a,At||S,!!At||c.originIsAbsolute,c.smooth!==!1,X)),U=c.xOrigin||0,F=c.yOrigin||0,X!==Ph&&(Rt=X[0],tt=X[1],_t=X[2],G=X[3],b=Pt=X[4],I=Et=X[5],X.length===6?(O=Math.sqrt(Rt*Rt+tt*tt),N=Math.sqrt(G*G+_t*_t),E=Rt||tt?Fl(tt,Rt)*ja:0,M=_t||G?Fl(_t,G)*ja+E:0,M&&(N*=Math.abs(Math.cos(M*Nl))),c.svg&&(b-=U-(U*Rt+F*_t),I-=F-(U*tt+F*G))):(Wt=X[6],Pe=X[7],Ft=X[8],It=X[9],Nt=X[10],pe=X[11],b=X[12],I=X[13],k=X[14],K=Fl(Wt,Nt),L=K*ja,K&&(Z=Math.cos(-K),ct=Math.sin(-K),At=Pt*Z+Ft*ct,ce=Et*Z+It*ct,re=Wt*Z+Nt*ct,Ft=Pt*-ct+Ft*Z,It=Et*-ct+It*Z,Nt=Wt*-ct+Nt*Z,pe=Pe*-ct+pe*Z,Pt=At,Et=ce,Wt=re),K=Fl(-_t,Nt),w=K*ja,K&&(Z=Math.cos(-K),ct=Math.sin(-K),At=Rt*Z-Ft*ct,ce=tt*Z-It*ct,re=_t*Z-Nt*ct,pe=G*ct+pe*Z,Rt=At,tt=ce,_t=re),K=Fl(tt,Rt),E=K*ja,K&&(Z=Math.cos(K),ct=Math.sin(K),At=Rt*Z+tt*ct,ce=Pt*Z+Et*ct,tt=tt*Z-Rt*ct,Et=Et*Z-Pt*ct,Rt=At,Pt=ce),L&&Math.abs(L)+Math.abs(E)>359.9&&(L=E=0,w=180-w),O=Rn(Math.sqrt(Rt*Rt+tt*tt+_t*_t)),N=Rn(Math.sqrt(Et*Et+Wt*Wt)),K=Fl(Pt,Et),M=Math.abs(K)>2e-4?K*ja:0,C=pe?1/(pe<0?-pe:pe):0),c.svg&&(At=a.getAttribute("transform"),c.forceCSS=a.setAttribute("transform","")||!Fd(Xo(a,pn)),At&&a.setAttribute("transform",At))),Math.abs(M)>90&&Math.abs(M)<270&&(u?(O*=-1,M+=E<=0?180:-180,E+=E<=0?180:-180):(N*=-1,M+=M<=0?180:-180)),o=o||c.uncache,c.x=b-((c.xPercent=b&&(!o&&c.xPercent||(Math.round(a.offsetWidth/2)===Math.round(-b)?-50:0)))?a.offsetWidth*c.xPercent/100:0)+m,c.y=I-((c.yPercent=I&&(!o&&c.yPercent||(Math.round(a.offsetHeight/2)===Math.round(-I)?-50:0)))?a.offsetHeight*c.yPercent/100:0)+m,c.z=k+m,c.scaleX=Rn(O),c.scaleY=Rn(N),c.rotation=Rn(E)+g,c.rotationX=Rn(L)+g,c.rotationY=Rn(w)+g,c.skewX=M+g,c.skewY=R+g,c.transformPerspective=C+m,(c.zOrigin=parseFloat(S.split(" ")[2])||!o&&c.zOrigin||0)&&(f[Lr]=Mu(S)),c.xOffset=c.yOffset=0,c.force3D=Hr.force3D,c.renderTransform=c.svg?Pg:Rd?Gd:Ag,c.uncache=0,c},Mu=function(a){return(a=a.split(" "))[0]+" "+a[1]},Hc=function(a,o,c){var f=or(o);return Rn(parseFloat(o)+parseFloat(ia(a,"x",c+"px",f)))+f},Ag=function(a,o){o.z="0px",o.rotationY=o.rotationX="0deg",o.force3D=0,Gd(a,o)},qa="0deg",Rh="0px",Ya=") ",Gd=function(a,o){var c=o||this,f=c.xPercent,u=c.yPercent,m=c.x,g=c.y,y=c.z,S=c.rotation,b=c.rotationY,I=c.rotationX,k=c.skewX,O=c.skewY,N=c.scaleX,E=c.scaleY,L=c.transformPerspective,w=c.force3D,M=c.target,R=c.zOrigin,C="",U=w==="auto"&&a&&a!==1||w===!0;if(R&&(I!==qa||b!==qa)){var F=parseFloat(b)*Nl,X=Math.sin(F),K=Math.cos(F),Z;F=parseFloat(I)*Nl,Z=Math.cos(F),m=Hc(M,m,X*Z*-R),g=Hc(M,g,-Math.sin(F)*-R),y=Hc(M,y,K*Z*-R+R)}L!==Rh&&(C+="perspective("+L+Ya),(f||u)&&(C+="translate("+f+"%, "+u+"%) "),(U||m!==Rh||g!==Rh||y!==Rh)&&(C+=y!==Rh||U?"translate3d("+m+", "+g+", "+y+") ":"translate("+m+", "+g+Ya),S!==qa&&(C+="rotate("+S+Ya),b!==qa&&(C+="rotateY("+b+Ya),I!==qa&&(C+="rotateX("+I+Ya),(k!==qa||O!==qa)&&(C+="skew("+k+", "+O+Ya),(N!==1||E!==1)&&(C+="scale("+N+", "+E+Ya),M.style[pn]=C||"translate(0, 0)"},Pg=function(a,o){var c=o||this,f=c.xPercent,u=c.yPercent,m=c.x,g=c.y,y=c.rotation,S=c.skewX,b=c.skewY,I=c.scaleX,k=c.scaleY,O=c.target,N=c.xOrigin,E=c.yOrigin,L=c.xOffset,w=c.yOffset,M=c.forceCSS,R=parseFloat(m),C=parseFloat(g),U,F,X,K,Z;y=parseFloat(y),S=parseFloat(S),b=parseFloat(b),b&&(b=parseFloat(b),S+=b,y+=b),y||S?(y*=Nl,S*=Nl,U=Math.cos(y)*I,F=Math.sin(y)*I,X=Math.sin(y-S)*-k,K=Math.cos(y-S)*k,S&&(b*=Nl,Z=Math.tan(S-b),Z=Math.sqrt(1+Z*Z),X*=Z,K*=Z,b&&(Z=Math.tan(b),Z=Math.sqrt(1+Z*Z),U*=Z,F*=Z)),U=Rn(U),F=Rn(F),X=Rn(X),K=Rn(K)):(U=I,K=k,F=X=0),(R&&!~(m+"").indexOf("px")||C&&!~(g+"").indexOf("px"))&&(R=ia(O,"x",m,"px"),C=ia(O,"y",g,"px")),(N||E||L||w)&&(R=Rn(R+N-(N*U+E*X)+L),C=Rn(C+E-(N*F+E*K)+w)),(f||u)&&(Z=O.getBBox(),R=Rn(R+f/100*Z.width),C=Rn(C+u/100*Z.height)),Z="matrix("+U+","+F+","+X+","+K+","+R+","+C+")",O.setAttribute("transform",Z),M&&(O.style[pn]=Z)},Lg=function(a,o,c,f,u){var m=360,g=Wn(u),y=parseFloat(u)*(g&&~u.indexOf("rad")?ja:1),S=y-f,b=f+S+"deg",I,k;return g&&(I=u.split("_")[1],I==="short"&&(S%=m,S!==S%(m/2)&&(S+=S<0?m:-m)),I==="cw"&&S<0?S=(S+m*bd)%m-~~(S/m)*m:I==="ccw"&&S>0&&(S=(S-m*bd)%m-~~(S/m)*m)),a._pt=k=new Ar(a._pt,o,c,f,S,dg),k.e=b,k.u="deg",a._props.push(c),k},Hd=function(a,o){for(var c in o)a[c]=o[c];return a},Rg=function(a,o,c){var f=Hd({},c._gsap),u="perspective,force3D,transformOrigin,svgOrigin",m=c.style,g,y,S,b,I,k,O,N;f.svg?(S=c.getAttribute("transform"),c.setAttribute("transform",""),m[pn]=o,g=Lh(c,1),Xa(c,pn),c.setAttribute("transform",S)):(S=getComputedStyle(c)[pn],m[pn]=o,g=Lh(c,1),m[pn]=S);for(y in ds)S=f[y],b=g[y],S!==b&&u.indexOf(y)<0&&(O=or(S),N=or(b),I=O!==N?ia(c,y,S,N):parseFloat(S),k=parseFloat(b),a._pt=new Ar(a._pt,g,y,I,k-I,kc),a._pt.u=N||0,a._props.push(y));Hd(g,f)};Cr("padding,margin,Width,Radius",function(x,a){var o="Top",c="Right",f="Bottom",u="Left",m=(a<3?[o,c,f,u]:[o+u,o+c,f+c,f+u]).map(function(g){return a<2?x+g:"border"+g+x});Tu[a>1?"border"+x:x]=function(g,y,S,b,I){var k,O;if(arguments.length<4)return k=m.map(function(N){return ps(g,N,S)}),O=k.join(" "),O.split(k[0]).length===5?k[0]:O;k=(b+"").split(" "),O={},m.forEach(function(N,E){return O[N]=k[E]=k[E]||k[(E-1)/2|0]}),g.init(y,O,I)}});var Vd={name:"css",register:Nc,targetTest:function(a){return a.style&&a.nodeType},init:function(a,o,c,f,u){var m=this._props,g=a.style,y=c.vars.startAt,S,b,I,k,O,N,E,L,w,M,R,C,U,F,X,K;Ic||Nc(),this.styles=this.styles||Ld(a),K=this.styles.props,this.tween=c;for(E in o)if(E!=="autoRound"&&(b=o[E],!(Wr[E]&&md(E,o,c,f,a,u)))){if(O=typeof b,N=Tu[E],O==="function"&&(b=b.call(c,f,a,u),O=typeof b),O==="string"&&~b.indexOf("random(")&&(b=Mh(b)),N)N(this,a,E,b,c)&&(X=1);else if(E.substr(0,2)==="--")S=(getComputedStyle(a).getPropertyValue(E)+"").trim(),b+="",Ks.lastIndex=0,Ks.test(S)||(L=or(S),w=or(b)),w?L!==w&&(S=ia(a,E,S,w)+w):L&&(b+=L),this.add(g,"setProperty",S,b,f,u,0,0,E),m.push(E),K.push(E,0,g[E]);else if(O!=="undefined"){if(y&&E in y?(S=typeof y[E]=="function"?y[E].call(c,f,a,u):y[E],Wn(S)&&~S.indexOf("random(")&&(S=Mh(S)),or(S+"")||S==="auto"||(S+=Hr.units[E]||or(ps(a,E))||""),(S+"").charAt(1)==="="&&(S=ps(a,E))):S=ps(a,E),k=parseFloat(S),M=O==="string"&&b.charAt(1)==="="&&b.substr(0,2),M&&(b=b.substr(2)),I=parseFloat(b),E in jo&&(E==="autoAlpha"&&(k===1&&ps(a,"visibility")==="hidden"&&I&&(k=0),K.push("visibility",0,g.visibility),ea(this,g,"visibility",k?"inherit":"hidden",I?"inherit":"hidden",!I)),E!=="scale"&&E!=="transform"&&(E=jo[E],~E.indexOf(",")&&(E=E.split(",")[0]))),R=E in ds,R){if(this.styles.save(E),C||(U=a._gsap,U.renderTransform&&!o.parseTransform||Lh(a,o.parseTransform),F=o.smoothOrigin!==!1&&U.smooth,C=this._pt=new Ar(this._pt,g,pn,0,1,U.renderTransform,U,0,-1),C.dep=1),E==="scale")this._pt=new Ar(this._pt,U,"scaleY",U.scaleY,(M?Ol(U.scaleY,M+I):I)-U.scaleY||0,kc),this._pt.u=0,m.push("scaleY",E),E+="X";else if(E==="transformOrigin"){K.push(Lr,0,g[Lr]),b=bg(b),U.svg?Gc(a,b,0,F,0,this):(w=parseFloat(b.split(" ")[2])||0,w!==U.zOrigin&&ea(this,U,"zOrigin",U.zOrigin,w),ea(this,g,E,Mu(S),Mu(b)));continue}else if(E==="svgOrigin"){Gc(a,b,1,F,0,this);continue}else if(E in Nd){Lg(this,U,E,k,M?Ol(k,M+b):b);continue}else if(E==="smoothOrigin"){ea(this,U,"smooth",U.smooth,b);continue}else if(E==="force3D"){U[E]=b;continue}else if(E==="transform"){Rg(this,b,a);continue}}else E in g||(E=Ul(E)||E);if(R||(I||I===0)&&(k||k===0)&&!fg.test(b)&&E in g)L=(S+"").substr((k+"").length),I||(I=0),w=or(b)||(E in Hr.units?Hr.units[E]:L),L!==w&&(k=ia(a,E,S,w)),this._pt=new Ar(this._pt,R?U:g,E,k,(M?Ol(k,M+I):I)-k,!R&&(w==="px"||E==="zIndex")&&o.autoRound!==!1?mg:kc),this._pt.u=w||0,L!==w&&w!=="%"&&(this._pt.b=S,this._pt.r=pg);else if(E in g)Eg.call(this,a,E,S,M?M+b:b);else if(E in a)this.add(a,E,S||a[E],M?M+b:b,f,u);else if(E!=="parseTransform"){uc(E,b);continue}R||(E in g?K.push(E,0,g[E]):K.push(E,1,S||a[E])),m.push(E)}}X&&wd(this)},render:function(a,o){if(o.tween._time||!Dc())for(var c=o._pt;c;)c.r(a,c.d),c=c._next;else o.styles.revert()},get:ps,aliases:jo,getSetter:function(a,o,c){var f=jo[o];return f&&f.indexOf(",")<0&&(o=f),o in ds&&o!==Lr&&(a._gsap.x||ps(a,"x"))?c&&Ed===c?o==="scale"?_g:yg:(Ed=c||{})&&(o==="scale"?xg:wg):a.style&&!rc(a.style[o])?gg:~o.indexOf("-")?vg:Ac(a,o)},core:{_removeProperty:Xa,_getMatrix:Uc}};Pr.utils.checkPrefix=Ul,Pr.core.getStyleSaver=Ld,function(x,a,o,c){var f=Cr(x+","+a+","+o,function(u){ds[u]=1});Cr(a,function(u){Hr.units[u]="deg",Nd[u]=1}),jo[f[13]]=x+","+a,Cr(c,function(u){var m=u.split(":");jo[m[1]]=f[m[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),Cr("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(x){Hr.units[x]="px"}),Pr.registerPlugin(Vd);var Vc=Pr.registerPlugin(Vd)||Pr;Vc.core.Tween;class Og{constructor(a,o=!1){window.mars3d&&(this.Cesium=window.mars3d.Cesium,this.DynamicMaskingArr=[],this.DynamicMaskingStyle=[],this.canvasClientWidth=a.viewer.canvas.clientWidth,this.canvasClientHeight=a.viewer.canvas.clientHeight,this.oldSet=new Set,this.tweenMap=new Map,this.isDynamicMasking=o)}add(a,o){let c=a.options.symbol.styleOptions.label.font_size,f=a.options.vectorId,u=Number(c)*1.4,m=Number(c)*1.8,g=a.options.symbol.styleOptions.label,{color:y,outlineColor:S,backgroundColor:b}=g;a.eachGraphic(I=>{I.style.label&&this.DynamicMaskingArr.push({id:f,uid:I.id,position:I._getLablePosition(),label:I.name,width:I.name?u*I.name.length:0,height:m,color:y,outline:o.label.outline,outlineColor:S,background:o.label.background,backgroundColor:b,dynamicMaskingColor:{backgroundColor:this.Cesium.Color.fromCssColorString(o.label.backgroundColor),color:this.Cesium.Color.fromCssColorString(o.label.color),outlineColor:this.Cesium.Color.fromCssColorString(o.label.outlineColor)}})}),this.DynamicMaskingStyle.push({vectorId:a.options.vectorId,outline:o.label.outline,background:o.label.background,color:this.Cesium.Color.fromCssColorString(o.label.color),backgroundColor:this.Cesium.Color.fromCssColorString(o.label.backgroundColor),outlineColor:this.Cesium.Color.fromCssColorString(o.label.outlineColor)}),this.oldSet=new Set,this.tweenMap=new Map}remove(a){this.DynamicMaskingArr=this.DynamicMaskingArr.filter(o=>o.id!==a),this.DynamicMaskingStyle=this.DynamicMaskingStyle.filter(o=>o.vectorId!==a),this.oldSet=new Set,this.tweenMap=new Map}modify(a,o){let{label:c}=o;if(c){let{color:f,outline:u,outlineColor:m,background:g,backgroundColor:y}=c;this.DynamicMaskingArr.forEach(S=>{S.id===a&&(f!=null&&(S.color=this.Cesium.Color.fromCssColorString(f),S.dynamicMaskingColor.color=this.Cesium.Color.fromCssColorString(f)),u!=null&&(S.outline=u),m!=null&&(S.outlineColor=this.Cesium.Color.fromCssColorString(m),S.dynamicMaskingColor.outlineColor=this.Cesium.Color.fromCssColorString(m)),g!=null&&(S.background=g),y!=null&&(S.backgroundColor=this.Cesium.Color.fromCssColorString(y),S.dynamicMaskingColor.backgroundColor=this.Cesium.Color.fromCssColorString(y)))})}}getBoundingRectangle(a){var o=this.Cesium.SceneTransforms.wgs84ToWindowCoordinates(window.map.viewer.scene,a.position);return o!==void 0?new this.Cesium.BoundingRectangle(o.x,o.y,a.width,a.height):new this.Cesium.BoundingRectangle(0,0,1,1)}getNonIntersectingRectangles(){let a=[];for(var o=0;o<this.DynamicMaskingArr.length;o++){let f=!1,u=this.DynamicMaskingArr[o],m,g,y;if(g=this.getBoundingRectangle(u),!(g.x<0||g.x>this.canvasClientWidth||g.y<0||g.y>this.canvasClientHeight))if(a.length===0){a.push(o);continue}else{for(var c=0;c<a.length;c++)if(m=this.DynamicMaskingArr[a[c]],y=this.getBoundingRectangle(m),this.Cesium.Intersect.OUTSIDE!==this.Cesium.BoundingRectangle.intersect(g,y)){f=!0;break}f||a.push(o)}}return new Set(a)}ifShow(){if(this.isDynamicMasking){let o={color:.001,outlineColor:.001,backgroundColor:.001},c={color:1,outlineColor:1,backgroundColor:1},f=this.getNonIntersectingRectangles(),u=new Set([...this.oldSet].filter(g=>!f.has(g))),m=new Set([...f].filter(g=>!this.oldSet.has(g)));for(let g of u)if(this.DynamicMaskingArr[g]){if(this.tweenMap.has(g)){var a=this.tweenMap.get(g);a.kill(),this.tweenMap.delete(g)}var a=Vc.to(c,{duration:.2,color:0,outlineColor:0,backgroundColor:0,onUpdate:()=>{var S,b;var y=this.DynamicMaskingArr[g];y.backgroundColor.alpha=c.backgroundColor,y.color.alpha=c.color,y.outlineColor.alpha=c.outlineColor,(b=(S=window.map.getLayer(y.id,"vectorId"))==null?void 0:S.getGraphicByAttr(y.uid))==null||b.setStyle({label:{show:!1,outline:!1,background:!1}})}});this.tweenMap.set(g,a)}for(let g of m)if(this.DynamicMaskingArr[g]){if(this.tweenMap.has(g)){var a=this.tweenMap.get(g);a.kill(),this.tweenMap.delete(g)}let y=this.DynamicMaskingArr[g],{backgroundColor:S,color:b,outlineColor:I}=y.dynamicMaskingColor;var a=Vc.to(o,{duration:.8+Math.random(),color:b.alpha,outlineColor:I.alpha,backgroundColor:S.alpha,onUpdate:()=>{var O,N;y.backgroundColor.alpha=o.backgroundColor,y.color.alpha=o.color,y.outlineColor.alpha=o.outlineColor,(N=(O=window.map.getLayer(y.id,"vectorId"))==null?void 0:O.getGraphicByAttr(y.uid))==null||N.setStyle({label:{show:!0,outline:y.outline,background:y.background,color:y.color,outlineColor:y.outlineColor,backgroundColor:y.backgroundColor}})}});this.tweenMap.set(g,a)}this.oldSet=f}}switchDynamicMasking(a){if(a)window.map.getLayers().forEach(o=>{var c;if((c=o.options)!=null&&c.vectorId){let{color:f,outlineColor:u,backgroundColor:m}=o.options.symbol.styleOptions.label;o.eachGraphic(g=>{g.setStyle({label:{color:f.withAlpha(0),outlineColor:u.withAlpha(.001),backgroundColor:m.withAlpha(.001),show:!1,background:!1,outline:!1}})})}});else if(this.DynamicMaskingStyle.length>0){let o;this.DynamicMaskingStyle.forEach(c=>{let{color:f,outline:u,outlineColor:m,background:g,backgroundColor:y,vectorId:S}=c;o=window.map.getLayer(S,"vectorId"),o&&o.eachGraphic(b=>{b.setStyle({label:{color:f,outlineColor:m,backgroundColor:y,show:!0,background:g,outline:u}})})})}this.isDynamicMasking=a,window.bimVector.switchDynamicMasking(a)}}const Ig=()=>{var x,a;window.planClip.clearPlanClip(),window.schemeEvnModify.clearAllEvnModify(),window.bimRotatePoint.stop(),window.bimTrafficSimulation.destruction(),window.bimMapPTV&&window.bimMapPTV.destruction(),window.romStop(),window.complete(),window.bimMapCompare.hide?window.bimMapCompare.hide():window.bimMapCompare.destroyControl(),window.updateEitor({content:""}),(a=(x=window.glftSet)==null?void 0:x.glftList)==null||a.map(o=>{o.remove()})},Dg=()=>{var x,a;window.planClip.clearPlanClip(),window.bimRotatePoint.stop(),window.bimTrafficSimulation.destruction(),window.bimMapPTV&&window.bimMapPTV.destruction(),window.romStop(),window.complete(),window.bimMapCompare.hide?window.bimMapCompare.hide():window.bimMapCompare.destroyControl(),window.updateEitor({content:""}),(a=(x=window.glftSet)==null?void 0:x.glftList)==null||a.map(o=>{o.remove()})},zg=()=>{var x,a;window.planClip.clearPlanClip(),window.bimRotatePoint.stop(),window.bimTrafficSimulation.destruction(),window.bimMapPTV&&window.bimMapPTV.destruction(),window.romStop(),window.complete(),window.bimMapCompare.hide?window.bimMapCompare.hide():window.bimMapCompare.destroyControl(),window.updateEitor({content:""}),(a=(x=window.glftSet)==null?void 0:x.glftList)==null||a.map(o=>{o.remove()})},kg=x=>{let a=[];if(x.forEach(o=>{let{id:c}=o,f={id:c,mockData:{nextPage:[],item:[],previousPage:[]}};o.operate.forEach((u,m)=>{let g=Wc(u,f.mockData.nextPage);f.mockData.nextPage=g,f.mockData.item=g,f.mockData.previousPage=[]}),a.push(f)}),a.length>1)for(let o=1;o<a.length;o++){let c=a[o].mockData,f=a[o-1].mockData.item;const u=new Map;f.forEach(m=>{m.type!="rotatePoint"&&m.type!="viewpoint"&&m.type!="roaming"&&m.type!="splitScreen"&&m.type!="planClip"&&m.type!="editor"&&m.type!="gltf"?u.set(`${m.screenplayId}-${m.type}`,m):a[o].mockData.previousPage.push(m)}),c.nextPage.forEach(m=>{const g=`${m.screenplayId}-${m.type}`;let y={...u.get(g)};if(u.has(g)){if(m.type=="flight")a[o].mockData.previousPage.unshift(u.get(g)),y=m;else{let S={};Object.keys(m).forEach(b=>{if(b!="screenplayId"&&b!="type")if(u.get(g)[b])if(Object.keys(S).length==0&&(S={screenplayId:m.screenplayId,type:m.type}),b=="clip"||b=="flat"){y[b]=Wd(u.get(g)[b],m[b]);let I={screenplayId:m.screenplayId,type:m.type};I[b]={},Object.keys(m[b]).forEach(k=>{u.get(g)[b][k]?I[b][k]=u.get(g)[b][k]:m[b][k]=="true"&&(I[b][k]="false")}),S={...I,...S}}else S[b]=u.get(g)[b],y[b]=m[b];else a[o].mockData.previousPage.some(I=>I.screenplayId===m.screenplayId)||(S={...jd(m,b),...S}),y[b]=m[b]}),Object.keys(S).length>0&&a[o].mockData.previousPage.push(S)}u.set(g,y)}else{let S=jd(m);S&&a[o].mockData.previousPage.push(S),u.set(g,m)}}),a[o].mockData.item=Array.from(u.values())}return a},Wc=(x,a=null)=>{let{executionProperty:o,screenplayId:c,property:f,type:u,delay:m,delayTime:g}=x;if((f=="add"||f==!0)&&(f="true"),(f=="remove"||f==!1)&&(f="false"),u=="pit"){let S=window.schemeEvnModify.getModelModifyDataForInitModelById(c);if(S){let b={};b[c]=f,f=b,c=S.modelId,o=S.type}}let y;if(c==""||c=="map")if(c="map",u=="splitScreen"){let{splitScreenMode:S,splitScreenModePercentage:b}=JSON.parse(f);a.push({screenplayId:c,type:u,executionProperty:{splitScreenMode:S,splitScreenModePercentage:b,mapClone:[]}});let{mainScreen:I,secondaryScreen:k}=JSON.parse(x.property);I.forEach(N=>{Wc(N,a)});let O=a.find(N=>N.type=="splitScreen");k.forEach(N=>{Wc(N,O.executionProperty.mapClone)})}else y={screenplayId:c,type:u,executionProperty:f},(o=="clip"||o=="flat")&&(y[o]=f),m&&(y.delay=m),g&&(y.delayTime=g),a&&(u=="flight"?a.unshift(y):a.push(y));else y=a?a.find(S=>S.screenplayId==c):null,y?(o=="clip"||o=="flat"?y[o]?y[o]=Wd(y[o],f):(y[o]=f,y.type="model"):y[o]=f,m&&(y[o].delay=m),g&&(y[o].delayTime=g)):(y={screenplayId:c,type:u},m&&(y.delay=m),g&&(y.delayTime=g),o=="clip"||o=="flat"?(y[o]=f,y.type="model"):y[o]=f,a&&(u=="flight"?a.unshift(y):a.push(y)));return a||y},Wd=(x,a)=>{const o={...x};for(const c in a)a.hasOwnProperty(c)&&(o[c]=a[c]);return o},jd=(x,a="all")=>{let{type:o,show:c,screenplayId:f,overallStaining:u,clip:m,flat:g}=x,y={};if(a=="all")switch(o){case"model":case"shp":case"plot":c&&c=="true"&&(y={screenplayId:f,type:o,show:"false"}),u&&(y={...y,screenplayId:f,type:o,overallStaining:"false"}),m&&(y={...y,screenplayId:f,type:o,clip:"false"}),g&&(y={...y,screenplayId:f,type:o,flat:"false"});break;case"terrain":y={screenplayId:f,type:o,executionProperty:"true"};break;case"pit":y={screenplayId:f,type:o,executionProperty:"false"};break;case"underground":y={screenplayId:f,type:o,executionProperty:"1"};break}else switch(a){case"clip":case"flat":case"overallStaining":y={screenplayId:f,type:o},y[a]="false";break}return Object.keys(y).length>0?y:null},Bg=(x,a)=>{const o={};return Object.keys(a).forEach(c=>{x.hasOwnProperty(c)&&(o[c]=x[c])}),o},Ng=x=>/^rgba\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*,\s*(0|1|0\.\d+)\s*\)$/i.test(x),Fg=x=>{let a={};(x==null?void 0:x.length)>0&&x[0].operate.forEach(o=>{let{executionProperty:c,screenplayId:f,property:u,type:m}=o;(c=="show"||c=="overallStaining")&&(a[f]||(a[f]={type:m}),a[f][u]=c)}),window.map.getLayers().forEach(o=>{if((o.type=="3dtiles"||o.type=="geojson"||o.type=="tileset")&&o.options.name!="国界"){let c=o.options.modelId||o.options.vectorId;a[c]?(window.bimModel.editColor(c),window.schemeEvnModify.clearAllModelModify({isClone:!1})):o.remove()}}),window.bimEntity.entityLayer.getGraphicsByAttr().forEach(o=>{o.remove()}),window.bimMapSetUp.undergroundVal(1),window.bimTerrainProvider.show(),window.bimTrafficSimulation.destruction(),window.bimRotatePoint.stop(),window.bimMapPTV.destruction(),window.romStop(),window.complete(),window.planClip.clearPlanClip()};class Ug{constructor(a){Ys(this,"getPositions",a=>a.length>1&&(Array.isArray(a[0])||typeof a[0]=="object")?a:this.getPositions(a[0]));Ys(this,"terrainCutById",(a,o,c)=>{switch(c==null?void 0:c.isClone){case!0:if(this.createTerrainModifyInstanceClone(),!this.terrainClipClone||this.terrainClipClone.list.find(f=>f.id==o))return;this.terrainClipClone.addArea(a.length>1?a:a[0],{id:o});break;case!1:if(!this.terrainClip||this.terrainClip.list.find(f=>f.id==o))return;this.terrainClip.addArea(a.length>1?a:a[0],{id:o});break}});Ys(this,"clearTerrainCutById",(a,o)=>{switch(o==null?void 0:o.isClone){case!0:if(this.createTerrainModifyInstanceClone(),!this.terrainClipClone)return;this.terrainClipClone.removeArea(a);break;case!1:if(!this.terrainClip)return;this.terrainClip.removeArea(a);break}});Ys(this,"terrainFlattenById",(a,o,c,f)=>{switch(f==null?void 0:f.isClone){case!0:if(this.createTerrainModifyInstanceClone(),!this.terrainFlatClone||this.terrainFlatClone.list.find(u=>u.id==c))return;this.terrainFlatClone.addArea(a.length>1?a:a[0],{id:c,height:o});break;case!1:if(!this.terrainFlat||this.terrainFlat.list.find(u=>u.id==c))return;this.terrainFlat.addArea(a.length>1?a:a[0],{id:c,height:o});break}});Ys(this,"clearTerrainFlattenById",(a,o)=>{switch(o==null?void 0:o.isClone){case!0:if(this.createTerrainModifyInstanceClone(),!this.terrainFlatClone)return;this.terrainFlatClone.removeArea(a);break;case!1:if(!this.terrainFlat)return;this.terrainFlat.removeArea(a);break}});this.flattenedEvnModifyData=a,this.modelIdListByModify=[],this.modelIdListByModifyClone=[],this.terrainClip=null,this.terrainFlat=null,this.terrainClipClone=null,this.terrainFlatClone=null,this.createTerrainModifyInstance()}getDataFromFlattenedEvnModifyListById(a){const o=this.flattenedEvnModifyData.find(c=>c.id==a);return o||null}getModelFromMapById(a,o){let c;switch(o==null?void 0:o.isClone){case!0:c=window.mapClone?window.mapClone.mapEx.getLayers():[];break;case!1:c=window.map.getLayers();break}return c.find(u=>u.options.modelId==a)}updateFlattenedEvnModifyData(a){this.flattenedEvnModifyData=a}modelCutById(a,o,c,f){const u=bimModel.queryModel(a,f);if(u&&!u.clip.list.find(m=>m.id==c))switch(u.clip.addArea(o.length>1?o:o[0],{id:c}),f==null?void 0:f.isClone){case!0:this.modelIdListByModifyClone.push(a),this.modelIdListByModifyClone=[...new Set(this.modelIdListByModifyClone)];break;case!1:this.modelIdListByModify.push(a),this.modelIdListByModify=[...new Set(this.modelIdListByModify)];break}}modelFlattenById(a,o,c,f,u){const m=bimModel.queryModel(a,u);if(m&&!m.flat.list.find(g=>g.id==f))switch(m.flat.addArea(o.length>1?o:o[0],{height:c,id:f}),u==null?void 0:u.isClone){case!0:this.modelIdListByModifyClone.push(a),this.modelIdListByModifyClone=[...new Set(this.modelIdListByModifyClone)];break;case!1:this.modelIdListByModify.push(a),this.modelIdListByModify=[...new Set(this.modelIdListByModify)];break}}clearModelCutById(a,o,c){const f=bimModel.queryModel(a,c);if(f)switch(f.clip.removeArea(o),c.isClone){case!0:this.modelIdListByModifyClone=this.modelIdListByModifyClone.filter(u=>u!=a);break;case!1:this.modelIdListByModify=this.modelIdListByModify.filter(u=>u!=a);break}}clearModelFlattenById(a,o,c){const f=bimModel.queryModel(a,c);if(f)switch(f.flat.removeArea(o),c==null?void 0:c.isClone){case!0:this.modelIdListByModifyClone=this.modelIdListByModifyClone.filter(u=>u!=a);break;case!1:this.modelIdListByModify=this.modelIdListByModify.filter(u=>u!=a);break}}createTerrainModifyInstance(){if(window.map.thing.terrainClip)this.terrainClip=window.map.thing.terrainClip;else{const a=new mars3d.thing.TerrainClip({czm:!1,splitNum:30});window.map.addThing(a),this.terrainClip=a}if(window.map.thing.terrainFlat)this.terrainFlat=window.map.thing.terrainFlat;else{const a=new mars3d.thing.TerrainFlat({splitNum:80});window.map.addThing(a),this.terrainFlat=a}}createTerrainModifyInstanceClone(){if(window.mapClone){if(window.mapClone.mapEx.thing.terrainClip)this.terrainClipClone=window.mapClone.mapEx.thing.terrainClip;else{const a=new mars3d.thing.TerrainClip({splitNum:80});window.mapClone.mapEx.addThing(a),this.terrainClipClone=a}if(window.mapClone.mapEx.thing.terrainFlat)this.terrainFlatClone=window.mapClone.mapEx.thing.terrainFlat;else{const a=new mars3d.thing.TerrainFlat({splitNum:80});window.mapClone.mapEx.addThing(a),this.terrainFlatClone=a}}}evnModifyById(a,o){o=arguments[1]||{isClone:!1};const c=this.getDataFromFlattenedEvnModifyListById(a);if(!c)return;const{bimEnvModify:{embsId:f,dataType:u,modifyType:m}}=c;for(let g=0;g<c.bimEnvModifyData.length;g++){const y=this.getPositions(JSON.parse(c.bimEnvModifyData[g].modifyData).coordinates),S=JSON.parse(c.bimEnvModifyData[g].modifyData).depth,b=c.bimEnvModifyData[g].id;u===0&&m===0?this.modelCutById(f,y,b,o):u===0&&m===1?this.modelFlattenById(f,y,S,b,o):u===1&&m===0?this.terrainCutById(y,b,o):u===1&&m===1&&this.terrainFlattenById(y,S,b,o)}}evnModifyByIdAndAddOptionsToStore(a,o){o=arguments[1]||{isClone:!1};const c=this.getDataFromFlattenedEvnModifyListById(a);if(!c)return;const{bimEnvModify:{embsId:f,dataType:u,modifyType:m}}=c;for(let g=0;g<c.bimEnvModifyData.length;g++){const y=this.getPositions(JSON.parse(c.bimEnvModifyData[g].modifyData).coordinates),S=JSON.parse(c.bimEnvModifyData[g].modifyData).depth,b=c.bimEnvModifyData[g].id;u===0&&m===0?this.modelCutById(f,y,b,o):u===0&&m===1?this.modelFlattenById(f,y,S,b,o):u===1&&m===0?this.terrainCutById(y,b,o):u===1&&m===1&&this.terrainFlattenById(y,S,b,o)}}clearEvnModifyById(a,o){o=arguments[1]||{isClone:!1};const c=this.getDataFromFlattenedEvnModifyListById(a);if(!c)return;const{bimEnvModify:{embsId:f,dataType:u,modifyType:m}}=c;for(let g=0;g<c.bimEnvModifyData.length;g++){const y=c.bimEnvModifyData[g].id;u===0&&m===0?this.clearModelCutById(f,y,o):u===0&&m===1?this.clearModelFlattenById(f,y,o):u===1&&m===0?this.clearTerrainCutById(y,o):u===1&&m===1&&this.clearTerrainFlattenById(y,o)}}clearAllModelModify(a){switch(a||(a={isClone:!1}),a.isClone){case!0:this.modelIdListByModifyClone.forEach(o=>{const c=bimModel.queryModel(o,a);c&&(c.clip.clear(),c.flat.clear())}),this.modelIdListByModifyClone=[];break;case!1:this.modelIdListByModify.forEach(o=>{const c=bimModel.queryModel(o,a);c&&(c.clip.clear(),c.flat.clear())}),this.modelIdListByModify=[];break}}clearAllTerrainModify(a){switch(a||(a={isClone:!1}),a.isClone){case!0:window.mapClone||(this.terrainClipClone=null,this.terrainFlatClone=null),this.terrainClipClone&&this.terrainClipClone.clear(),this.terrainFlatClone&&this.terrainFlatClone.clear();break;case!1:this.terrainClip&&this.terrainClip.clear(),this.terrainFlat&&this.terrainFlat.clear();break}}getModelModifyDataForInitModelById(a){const o=this.getDataFromFlattenedEvnModifyListById(a);if(!o)return;const{bimEnvModify:{embsId:c,dataType:f,modifyType:u}}=o;if(this.modelIdListByModify.push(c),f===0&&u===0){const m={modelId:c,type:"clip",area:[]};for(let g=0;g<o.bimEnvModifyData.length;g++){const S={positions:this.getPositions(JSON.parse(o.bimEnvModifyData[g].modifyData).coordinates),id:o.bimEnvModifyData[g].id};m.area.push(S)}return m}else if(f===0&&u===1){const m={modelId:c,type:"flat",area:[]};for(let g=0;g<o.bimEnvModifyData.length;g++){const y=this.getPositions(JSON.parse(o.bimEnvModifyData[g].modifyData).coordinates),S={id:o.bimEnvModifyData[g].id,positions:y,height:JSON.parse(o.bimEnvModifyData[g].modifyData).depth};return m.area.push(S),m}}}clearAllEvnModify(){this.clearAllModelModify({isClone:!0}),this.clearAllModelModify({isClone:!1}),this.clearAllTerrainModify({isClone:!0}),this.clearAllTerrainModify({isClone:!1})}destroyTerrainModifyInstance(){this.clearAllTerrainModify({isClone:!0}),this.clearAllTerrainModify({isClone:!1}),this.terrainClip&&window.map.removeThing(this.terrainClip,!0),this.terrainFlat&&window.map.removeThing(this.terrainFlat,!0),this.terrainClipClone&&window.mapClone.mapEx.removeThing(this.terrainClipClone,!0),this.terrainFlatClone&&window.mapClone.mapEx.removeThing(this.terrainFlatClone,!0),this.terrainClip=null,this.terrainFlat=null,this.terrainClipClone=null,this.terrainFlatClone=null}}let Gl=null,ms=null,na=null;class Gg{constructor(){mars3d&&(this.projectId=parseInt(window.sessionStorage.getItem("nowProjectId")),this.viewPoints=new Array,this.roaming=null)}init(a,o,c){ms=new mars3d.layer.GraphicLayer({isContinued:!0});var f=this;window.map.addLayer(ms),ms.on(mars3d.EventType.drawCreated,function(u){var m=u.graphic.point;o(m),setTimeout(()=>{f.startDrawGraphic()},500)}),ms.on(mars3d.EventType.editStop,function(u){}),na=c,Gl=new mars3d.layer.GraphicLayer,window.map.addLayer(Gl),a&&(this.viewPoints=a.filter((u,m)=>{if(m%(na.smooth*1)==0)return u})),this.addGraphicLayer(this.viewPoints)}addDemoGraphic1(a,o){const c=new mars3d.graphic.PolylinePrimitive({positions:a.map(f=>[f.lng,f.lat,f.alt+1e3]),style:{width:10,materialType:mars3d.MaterialType.LineFlow,materialOptions:{color:"red",image:o+"img/line/line-arrow-blue.png",speed:10,repeat:new Cesium.Cartesian2(5,1),mixt:!0}}});Gl.addGraphic(c)}addGraphicLayer(a){var o={};na.Viewovalue==1?o={camera:{type:"dy",followedX:na.followedX,followedZ:na.followedZ},interpolation:!0,interpolationDegree:6,autoMiddleDynamicPosition:!0,interpolationAlgorithm:Cesium.HermitePolynomialApproximation}:na.Viewovalue==2?o={camera:{type:"gs",pitch:-30,radius:500},interpolation:!0,interpolationDegree:2,clockLoop:!0,path:{width:3,color:Cesium.Color.fromCssColorString("#ff0000").withAlpha(.5)}}:o={camera:{type:"sd",followedZ:na.followedZ},polyline:{width:3,color:Cesium.Color.fromCssColorString("#ff0000").withAlpha(.5)}},a=a.map(c=>[c.lng,c.lat,c.alt]),a.length,this.fixedRoute=new mars3d.graphic.FixedRoute({name:"贴地表表面漫游",speed:na.speed,autoStop:!0,positions:a,offsetHeight:1.6,clockLoop:!0,...o}),Gl.addGraphic(this.fixedRoute)}addDemoGraphic(a,o){const c=new mars3d.graphic.BillboardEntity({position:new mars3d.LngLatPoint(a.lng,a.lat,a.alt),style:{width:30,height:32,image:"/img/marker/markffd700.png",scale:1,scaleByDistance:!1,scaleByDistance_far:1e6,scaleByDistance_farValue:.1,scaleByDistance_near:1e3,scaleByDistance_nearValue:1,distanceDisplayCondition:!1,distanceDisplayCondition_far:2e6,distanceDisplayCondition_near:0,clampToGround:!1,visibleDepth:!1,drawShow:!0}});ms.addGraphic(c)}startDrawGraphic(a){ms.startDraw({type:"billboard",style:{width:30,height:32,image:"/img/marker/markffd700.png",scale:1,scaleByDistance:!1,scaleByDistance_far:1e6,scaleByDistance_farValue:.1,scaleByDistance_near:1e3,scaleByDistance_nearValue:1,distanceDisplayCondition:!1,distanceDisplayCondition_far:2e6,distanceDisplayCondition_near:0,clampToGround:!1,visibleDepth:!1,drawShow:!0,classificationType:Cesium.ClassificationType.TERRAIN}}).then(o=>{})}start(){this.fixedRoute&&(this.fixedRoute.start(),window.map.scene.screenSpaceCameraController.enableCollisionDetection=!1)}pause(){this.fixedRoute&&this.fixedRoute.pause()}resume(){this.fixedRoute&&this.fixedRoute.proceed()}stop(){this.fixedRoute&&this.fixedRoute.stop()}remove(){this.fixedRoute&&this.fixedRoute.stop(),window.map.removeThing(this.roaming,!0),window.map.removeLayer(Gl,!0),window.map.removeLayer(ms,!0),this.viewPoints=[],window.map.scene.screenSpaceCameraController.enableCollisionDetection=!0}removeCameraRoute(){Gl.clear(),ms.clear()}removegraphicLayerpoint(){ms.clear()}}class Hg{constructor(a){window.mars3d&&(this.beginDate="",this.endDate="",this.trafficSimulationLayer,this.trafficSimulationArr=[],this.style={width:4,materialType:window.mars3d.MaterialType.LineFlow,materialOptions:{color:"#4ac2ff",image:a+"img/textures/line-arrow-right.png",repeat_x:20,repeat_y:1,speed:20},clampToGround:!1,allowDrillPick:!1},this.vehicleSum=100,this.automobileList=[{url:a+"gltf/cart/suv.gltf"},{url:a+"gltf/cart/red_car.gltf"},{url:a+"gltf/cart/benchi3.gltf"},{url:a+"gltf/cart/suv.gltf"},{url:a+"gltf/cart/red_car.gltf"},{url:a+"gltf/cart/benchi3.gltf"},{url:a+"gltf/cart/aodi1.gltf"},{url:a+"gltf/cart/kache3.gltf"},{url:a+"gltf/cart/bus2.gltf"},{url:a+"gltf/cart/jiaobanche.glb"}],this._czmlLayer,this._czmlLayerArr=[])}init(a){this.trafficSimulationLayer=new window.mars3d.layer.GraphicLayer({temporaryLayer:"trafficSimulation"}),window.map.addLayer(this.trafficSimulationLayer),window.map.bimMapEdit="1",a&&(this._czmlLayerArr=a)}addLine(a){let o=a;return new Promise(c=>{this.trafficSimulationLayer.startDraw({type:"polylineP",attr:{trafficSimulationId:o},style:{...this.style}}).then(f=>{c({id:o,pointSet:f.coordinates,speed:45,interval:1})})})}initLine(a){let o;a.forEach(c=>{let{id:f}=c;o=new window.mars3d.graphic.PolylinePrimitive({positions:c.pointSet,attr:{trafficSimulationId:f},style:{...this.style}}),this.trafficSimulationLayer.addGraphic(o)})}positionLine(a){let o=this.queryTrafficSimulationLine(a);o&&o.flyTo({scale:2})}deleteLine(a){let o=this.queryTrafficSimulationLine(a);o&&o.remove()}queryTrafficSimulationArr(){return this.trafficSimulationArr}queryTrafficSimulationLine(a){if(this.trafficSimulationLayer)return this.trafficSimulationLayer.getGraphicByAttr(a,"trafficSimulationId")}editTrafficSimulationLine(a,o=!0){let c=this.queryTrafficSimulationLine(a);o?(c.setStyle({materialOptions:{color:"#ff0000"}}),c.startEditing()):(c.setStyle({materialOptions:{color:"#4ac2ff"}}),c.stopEditing())}fallbackTrafficSimulationLine(a,o){let c=this.queryTrafficSimulationLine(a);c.positions=o,c.setStyle({materialOptions:{color:"#4ac2ff"}}),c.stopEditing()}queryCzml(a){return this._czmlLayerArr.length==0?!1:this._czmlLayerArr.find(o=>o.id==a)}start(a="add"){this.destruction(),this.beginDate=new Date().toISOString();let o=new Date,c=o.getDate();o.setDate(c+1),this.endDate=o.toISOString(),this.queryCzml(a)?this.trafficSimulationArr=JSON.parse(this.queryCzml(a).route):this.trafficSimulationArr=[],this.processingData(a)}selected(){this._czmlLayer&&this._czmlLayer.flyTo()}destruction(){this.trafficSimulationLayer.clear(),this.trafficSimulationLayer.remove(),this._czmlLayer&&(this._czmlLayer.clear(),this._czmlLayer.remove()),this.style.materialOptions.color="#4ac2ff",window.map.bimMapEdit="0"}processingData(a){let o=[{version:"1.0",id:"document",clock:{interval:`${this.beginDate}/${this.endDate}`,currentTime:this.beginDate,multiplier:1},style:{distanceDisplayCondition:!0,distanceDisplayCondition_far:1e6,distanceDisplayCondition_near:0}}],c=[],f=JSON.parse(JSON.stringify(this.trafficSimulationArr)),u=0;f.forEach((g,y)=>{let S=0,b=0,{pointSet:I,interval:k,speed:O}=g;for(let N=1;N<=this.vehicleSum;N++){let E=JSON.parse(JSON.stringify(I));E.forEach((w,M)=>{M>0&&(u=parseFloat((this.disTance(w,E[M-1].slice(1))/O).toFixed(2)),S+=u),M==0&&(S=b),w.unshift(S)}),b+=k,c=E.reduce((w,M)=>w.concat(M));let L={name:`${y}-${N}`,availability:`${this.beginDate}/${this.endDate}`,orientation:{velocityReference:"#position"},position:{epoch:this.beginDate,cartographicDegrees:c},style:{minimumPixelSize:100,distanceDisplayCondition:!0,distanceDisplayCondition_near:0,distanceDisplayCondition_far:1300,distanceDisplayPoint:{color:"#00ff00",pixelSize:8}},model:{show:!0,gltf:this.randomVehicle(),heightReference:window.Cesium.HeightReference.CLAMP_TO_GROUND,clampToGround:!0,scale:.6,minimumPixelSize:100,maximumScale:1.5}};o.push(L)}});let m={name:"交通模拟",czmlId:a,data:o,autoUpdateClock:!1};this._czmlLayer=new window.mars3d.layer.CzmlLayer(m),window.map.addLayer(this._czmlLayer)}disTance(a,o){let c,f,u;return c=window.Cesium.Cartesian3.fromDegrees(...a),f=window.Cesium.Cartesian3.fromDegrees(...o),u=window.Cesium.Cartesian3.distance(c,f),u}randomVehicle(){let a=Math.round(Math.random()*(this.automobileList.length-1));return this.automobileList[a].url}}const Vg=[Tf,Ef],Wg={continuation:null,mapModali:null,install(x){if(Vg.forEach((m,g)=>{x.component(m.name,m)}),this.continuation){x.config.globalProperties.$continuation=this.continuation;return}let a=oi.createApp(Mf),o=document.createElement("div"),c=document.body;if(c.appendChild(o),this.loading=a.mount(o),x.config.globalProperties.$loading=this.loading,window.$continuation=this.loading,this.mapModali){x.config.globalProperties.$mapModali=this.mapModali;return}let f=oi.createApp(Sf),u=document.createElement("div");c.appendChild(u),this.mapModali=f.mount(u),x.config.globalProperties.$mapModali=this.mapModali,window.$mapModali=this.mapModali}};Pi.BimBackgroundPlate=Ef,Pi.BimCutscenes=Mf,Pi.BimElevationImage=um,Pi.BimEntity=fm,Pi.BimModel=sm,Pi.BimModify=Ug,Pi.BimTerrainProvider=hm,Pi.BimTrafficSimulation=Hg,Pi.BimVector=lm,Pi.Bimroaming=Gg,Pi.Button=Tf,Pi.ChbimPlugins=Wg,Pi.DynamicMasking=Og,Pi.MapModali=Sf,Pi.PanoramicView=vm,Pi.ViewShed=cm,Pi.getSameKeyData=Bg,Pi.init=Ig,Pi.initMap=Fg,Pi.isValidRGBA=Ng,Pi.nextPage=zg,Pi.operateMapData=kg,Pi.previousPage=Dg,Object.defineProperty(Pi,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "chbim-plugins",
3
3
  "private": false,
4
- "version": "0.0.166",
4
+ "version": "0.0.167",
5
5
  "description": "此插件和chbim云平台强绑定",
6
6
  "main": "chbim-plugins.js",
7
- "keywords": ["vue", "Cesium"],
7
+ "keywords": [
8
+ "vue",
9
+ "Cesium"
10
+ ],
8
11
  "author": "zhang",
9
12
  "license": "ISC"
10
13
  }