UNPKG

gy-cesium

Version:

gy

1 lines 1.69 MB
"use strict";var e,t,A,n,s,o,i,r,a,c,h,u,g,f,w,P,d,D,B,l,z,M,x,H,C,j,v,I,G,Y,O,N,m,E,Q,p,b,T,X,F,R,L,y,q,U,Z,V,W,k,J,K,S,_,$,ee,te,Ae,ne,se,oe,ie,re,ae,ce,he,ue,ge,fe,we,Pe,de,De,Be,le,ze,Me,xe,He,Ce,je,ve,Ie,Ge,Ye,Oe,Ne,me,Ee,Qe,pe,be,Te,Xe,Fe,Re,Le,ye,qe,Ue,Ze,Ve,We,ke,Je,Ke,Se,_e,$e,et,tt,At,nt,st,ot,it,rt,at,ct,ht,ut,gt,ft,wt,Pt,dt,Dt,Bt,lt,zt,Mt,xt,Ht,Ct,jt,vt,It,Gt,Yt,Ot,Nt,mt,Et,Qt,pt,bt,Tt,Xt,Ft,Rt=Object.defineProperty,Lt=(e,t,A)=>(((e,t,A)=>{t in e?Rt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:A}):e[t]=A})(e,"symbol"!=typeof t?t+"":t,A),A);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const yt=require("vue-demi"),qt=require("cesium"),Ut=require("@turf/turf"),Zt=require("gsap"),Vt=require("@cesium/engine/Source/Scene/ShadowMap.js"),Wt=require("@cesium/engine/Source/Renderer/Texture.js"),kt=e=>e&&"object"==typeof e&&"default"in e?e:{default:e};function Jt(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const A in e)if("default"!==A){const n=Object.getOwnPropertyDescriptor(e,A);Object.defineProperty(t,A,n.get?n:{enumerable:!0,get:()=>e[A]})}return t.default=e,Object.freeze(t)}const Kt=Jt(qt),St=kt(Zt),_t=kt(Vt),$t=kt(Wt);!function(){const e=uA,t=hA();for(;;)try{if(992556===-parseInt(e(509))/1+parseInt(e(499))/2*(parseInt(e(498))/3)+parseInt(e(494))/4*(-parseInt(e(502))/5)+parseInt(e(507))/6*(parseInt(e(497))/7)+parseInt(e(496))/8*(-parseInt(e(495))/9)+-parseInt(e(501))/10+-parseInt(e(493))/11*(-parseInt(e(503))/12))break;t.push(t.shift())}catch(A){t.push(t.shift())}}();const eA=52.35987755982988,tA=3.141592653589793,AA=6378245,nA=.006693421622965943;function sA(e,t){const A=uA;if(gA(e,t))return[e,t];{let n=aA(e-105,t-35),s=cA(e-105,t-35),o=t/180*tA,i=Math.sin(o);i=1-nA*i*i;let r=Math[A(500)](i);n=180*n/(AA*(1-nA)/(i*r)*tA),s=180*s/(AA/r*Math[A(505)](o)*tA);return[e+s,t+n]}}function oA(e,t){const A=uA;if(gA(e,t))return[e,t];{let n=aA(e-105,t-35),s=cA(e-105,t-35),o=t/180*tA,i=Math[A(508)](o);i=1-nA*i*i;let r=Math[A(500)](i);n=180*n/(AA*(1-nA)/(i*r)*tA),s=180*s/(AA/r*Math[A(505)](o)*tA);return[2*e-(e+s),2*t-(t+n)]}}function iA(e,t){const A=function(e,t){const A=uA;let n=52.35987755982988,s=e-.0065,o=t-.006,i=Math[A(500)](s*s+o*o)-2e-5*Math[A(508)](o*n),r=Math.atan2(o,s)-3e-6*Math.cos(s*n);return[i*Math[A(505)](r),i*Math[A(508)](r)]}(e,t);return oA(A[0],A[1])}function rA(e,t){const A=sA(e,t);return function(e,t){const A=uA;let n=Math[A(500)](e*e+t*t)+2e-5*Math[A(508)](t*eA),s=Math[A(504)](t,e)+3e-6*Math[A(505)](e*eA);return[n*Math[A(505)](s)+.0065,n*Math.sin(s)+.006]}(A[0],A[1])}function aA(e,t){const A=uA;let n=2*e-100+3*t+.2*t*t+.1*e*t+.2*Math[A(500)](Math[A(506)](e));return n+=2*(20*Math[A(508)](6*e*tA)+20*Math[A(508)](2*e*tA))/3,n+=2*(20*Math[A(508)](t*tA)+40*Math[A(508)](t/3*tA))/3,n+=2*(160*Math[A(508)](t/12*tA)+320*Math[A(508)](t*tA/30))/3,n}function cA(e,t){const A=uA;let n=300+e+2*t+.1*e*e+.1*e*t+.1*Math.sqrt(Math[A(506)](e));return n+=2*(20*Math[A(508)](6*e*tA)+20*Math[A(508)](2*e*tA))/3,n+=2*(20*Math.sin(e*tA)+40*Math.sin(e/3*tA))/3,n+=2*(150*Math[A(508)](e/12*tA)+300*Math[A(508)](e/30*tA))/3,n}function hA(){const e=["58740YQVhIS","atan2","cos","abs","3960840UQlIxR","sin","407727FgNHTl","4345ZfybnS","4uXPBfM","9vmQUyR","5760808tWgOuj","21ROjAAp","3891957XcuMNx","2lLGNTN","sqrt","18365020XPYMbp","6271890ndfFjQ"];return(hA=function(){return e})()}function uA(e,t){const A=hA();return(uA=function(e,t){return A[e-=493]})(e,t)}function gA(e,t){return e<72.004||e>137.8347||t<.8293||t>55.8271||!1}!function(){const e=CA,t=jA();for(;;)try{if(271007===parseInt(e(189))/1+-parseInt(e(171))/2+parseInt(e(169))/3*(parseInt(e(156))/4)+-parseInt(e(179))/5*(parseInt(e(202))/6)+parseInt(e(187))/7+-parseInt(e(193))/8+-parseInt(e(153))/9*(-parseInt(e(159))/10))break;t.push(t.shift())}catch(A){t.push(t.shift())}}();let fA=[];const wA=e=>{const t=CA;return Kt[t(173)][t(204)](e)},PA=(e,t,A=0)=>{const n=CA;return Kt[n(192)][n(176)](e,t,A)},dA=e=>{const t=CA;return Kt[t(185)][t(162)](e)},DA=()=>{const e=CA;let t=["a","b","c","d","e","f","g","h","i","g","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],[A,n]=[Math.floor(4*Math[e(163)]()+1),Math.floor(8*Math[e(163)]()+17)];t=t[e(168)](()=>.4-Math[e(163)]())[e(160)](A,n)[e(160)](0,8)[e(180)]("");let s="modelId"+((new Date)[e(178)]()+t);return fA[e(181)](s)?s=DA():fA[e(196)](s),s},BA=(e,t=.01)=>{const A=CA;if(0===t)return e;let n=Ut.lineString(e),s=Ut.lineChunk(n,t,{units:A(188)}).features,o=[];return s[A(198)](e=>{const t=A;let n=e.geometry[t(170)];o[t(196)](...n)}),o},lA=(e,t)=>{const A=CA;let n,s,o;try{n=(e.toString()[A(203)](".")[1]||"")[A(164)]}catch(r){n=0}try{s=(t.toString()[A(203)](".")[1]||"")[A(164)]}catch(a){s=0}o=Math[A(177)](10,Math.max(n,s));let i=n>=s?n:s;return Number((Math[A(161)](e*o-t*o)/o)[A(165)](i))},zA=(e,t)=>{const A=CA;var n,s,o;try{n=(e.toString()[A(203)](".")[1]||"").length}catch(i){n=0}try{s=(t.toString()[A(203)](".")[1]||"")[A(164)]}catch(r){s=0}return o=Math[A(177)](10,Math[A(195)](n,s)),Math.round(e*o+t*o)/o},MA=(e,t)=>{const A=CA;var n=0,s=e[A(183)](),o=t[A(183)]();try{n+=(s.split(".")[1]||"")[A(164)]}catch(i){}try{n+=(o.split(".")[1]||"")[A(164)]}catch(r){}return Number(s.replace(".",""))*Number(o.replace(".",""))/Math[A(177)](10,n)},xA=(e,t)=>{const A=CA;if(0==e||0==t)return 0;var n,s,o=0,i=0;try{o=(e[A(183)]()[A(203)](".")[1]||"")[A(164)]}catch(r){}try{i=(t[A(183)]()[A(203)](".")[1]||"")[A(164)]}catch(a){}return n=Number(e[A(183)]()[A(172)](".","")),s=Number(t[A(183)]()[A(172)](".","")),Number(n/s*Math[A(177)](10,i-o))},HA=e=>{const t=CA;if(!Array[t(154)](e)||e[t(164)]<3)return!1;let A=JSON[t(166)](JSON[t(190)](e));A[0]===A[A[t(164)]-1]&&(A=A[t(160)](0,A[t(164)]-1)),A=A[t(174)]();let n,s,o,i=0,r=parseFloat(A[i].x);for(let w=0;w<A[t(164)];w++)parseFloat(A[w].x)>r&&(r=parseFloat(A[w].x),i=w);0===i?(n=A[A.length-1],s=A[i],o=A[i+1]):i===A[t(164)]-1?(n=A[i-1],s=A[i],o=A[0]):(n=A[i-1],s=A[i],o=A[i+1]);const a=parseFloat(n.x),c=parseFloat(n.y),h=parseFloat(s.x),u=parseFloat(s.y),g=parseFloat(o.x),f=parseFloat(o.y);return lA(xA(lA(a,g),lA(u,f)),xA(lA(h,g),lA(c,f)))<0};function CA(e,t){const A=jA();return(CA=function(e,t){return A[e-=151]})(e,t)}function jA(){const e=["Ellipsoid","sort","11103TYFQeu","coordinates","528844siKxJT","replace","Math","reverse","Matrix4","fromDegrees","pow","getTime","1040lVDpoz","join","includes","west","toString","scale","Color","fromUniformScale","437983pZfMPx","miles","261783ycFwhF","stringify","rotateZ","Cartesian3","2968144zUKJhb","Transforms","max","push","rotateX","forEach","WGS84","localFrameToFixedFrameGenerator","multiply","1782mrgzGJ","split","toRadians","HeadingPitchRoll","多边形坐标集合不能少于3个","27MLxxVG","isArray","north","268tJeuiU","sqrt","error","1319680vKHDcv","slice","round","fromCssColorString","random","length","toFixed","parse"];return(jA=function(){return e})()}const vA=(e,t)=>{const A=CA,n=Kt[A(173)].toRadians(t[A(191)]),s=Kt.Math[A(204)](t[A(197)]),o=Kt[A(173)][A(204)](t.rotateY),i=new(Kt[A(151)])(n,s,o),r=Kt[A(194)][A(200)](A(155),A(182));let a=Kt[A(194)].headingPitchRollToFixedFrame(e,i,Kt[A(167)][A(199)],r),c=Kt[A(175)][A(186)](t[A(184)]);return a=Kt.Matrix4[A(201)](a,c,a),a},IA=Object.freeze(Object.defineProperty({__proto__:null,toRadians:wA,lonlatToPosition:PA,getColorByCssColor:dA,getModelId:DA,formatLintPosition:BA,flortSub:lA,flortAdd:zA,flortMul:MA,flortDiv:xA,isClockwise:HA,scalePolygon:(e,t)=>{const A=CA;if(!Array.isArray(e)||e.length<3)return[];let n=e;const s=HA(n)?-t:t,o=(e,t)=>Math[A(157)](zA(MA(e,e),MA(t,t))),i=n.length,r=[];for(let a=0;a<i;a++){const e=n[a],t=n[0===a?i-1:a-1],c=n[a===i-1?0:a+1],h=lA(t.x,e.x),u=lA(t.y,e.y),g=o(h,u);let f=xA(h,g),w=xA(u,g);const P=lA(c.x,e.x),d=lA(c.y,e.y),D=o(P,d);let B=xA(P,D),l=xA(d,D);const z=xA(-s,Math[A(157)](xA(lA(1,zA(MA(f,B),MA(w,l))),2)));zA(MA(h,d),-1*MA(u,P))<0&&(B*=-1,l*=-1,f*=-1,w*=-1);const M=zA(f,B),x=zA(w,l),H=xA(z,o(M,x)),C=MA(M,H),j=MA(x,H),v=zA(C,e.x),I=zA(j,e.y);r[a]={x:v,y:I}}return r},getModelMatrixByOptions:vA},Symbol.toStringTag,{value:"Module"}));function GA(){const e=["finalPercentage","view","clipValue = texCoordId.x;","values","fromPointNormal","delColor","offsetY","fromArray","forEach","bottom-up","elementArr","concat","elementArrToObj","fromCartesian","old","Matrix4",")')","loadTilesetFromUrl","featureIdToActualIdMap"," float end = start + ","innerContents","getControlOptions","FLOAT","every","loadClip_box","animationTime","compareType","delay","contentList","toString","39iByaEr","fromRotationZ","8473498ILufsd","Cartesian3","lonlatToWGS84","length","getScenetreeElement","compareScenetree","sort","addModelControlsList","maximumCacheOverflowBytes","Plane","getScenetree","41027UvmhnH","splitDirection","setUniform","compareTilePath","centerMatrix4","void fragmentMain(FragmentInput fsInput, inout czm_modelMaterial material) {\n // 获取featureId\n int featureId = int(fsInput.attributes.featureId_0);\n float progress = 0.0;\n float opacity = 0.0; // 默认透明度为0\n // 根据不同的生长方向计算裁剪平面\n float clipValue = 0.0;\n \n // 构建空间位置(模型坐标)\n vec3 positionMC = fsInput.attributes.positionMC;\n vec2 texCoordId = fsInput.attributes.positionMC.xy;\n \n // 根据构件ID计算动画参数\n","layerList","setMemberAnimation","delOpacity",") {\n","fromPlane","CustomShaderTranslucencyMode","lat","set","clipValue = 1.0 - texCoordId.x;","rotateY","\n // 应用裁剪效果(仅对生长动画有效)\n if (clipValue > progress) {\n discard;\n }\n","getScenetreeProm","Color","#ff0","BoundingSphere","fromRotationTranslation","isSplitView","loaded","getFeature","log","push","content","10uhVuES","size","SplitDirection","getSphereBounding","boundingSphere","scenes","#0ff","getProperty","readyFinish","\n \n \n material.alpha = opacity;\n}","updateStyle","loadedFun","remove","135668HldzbO","IDENTITY","getDirectChildIds","transform","isLayering","addComparetileset"," } else {\n","dbId","subtract","flyTo","slice","HIDEMODELCETNER","number","customShader","LightingModel","boundingSphereCenter","opacity","true","max","fragmentShaderText","right-left","normalize","getElementCenterById","tilesetLoaderObj","longitude","layerTileset","addLayeringList","inverseTransformation","element"," * (u_time - start) / ","Cartographic","filter"," progress = 0.0;\n","initTileset","u_time","name","hideEarth","type","1760298BjtYpv","scene","_normal","toFixed","Resource","primitives","tileset","1128HztBOZ","compareColorObj","load3DTile","Matrix3","isArray","Cesium3DTileset","stylesByIdObj","toDegrees","stop","opt","Transforms","primitiveObj","inverse","featureId","rotateX","equals","fromRotationY","wGS84ToLonlat","fade"," progress = ","keys","setOpacity","left","show","fromRadians","find","startTime","addTilesetModelObj","1086273QXTkzw","clone","map","tilesetModelObj","color","getControlValue","eastNorthUpToFixedFrame","ClippingPlane","212412QXDFos","getTilesetAllContent","NONE","clipValue = 1.0 - texCoordId.y;","resourceOpt","url","center","setStyleColor","error","setPointion","cross","loadFinish","clipValue = texCoordId.y;","root","fromUniformScale","noTransform","left-right","duration","sphere","modelMatrix","start","color('rgba(","new","showLayerByName","_root","Compare","CustomShader","setTileMatrix4","TilesetLoader","includes","multiply","RED","getAnimationConditionCode","behind"," if (u_time >= start && u_time <= end) {\n","growthAnimationMap","setMemberAnimationOpt","boundingVolume","finish","animationType","compareResult"," float start = ","getChildAllContent","lon","fromDegrees","animHeight","fromRotationX","style"," }\n","toRadians","chgOpacity","Math","rotateZ","min","scale","get","latitude","getLayerList","slider","animationRuntime","distance","restart","setStylesById","cesiumObj","projectTo2D","all"," }\n","Cesium3DTileStyle","TYPE","orginMatrixInverse","children"," if (u_time < start) {discard;}\n","getType4Plane","fromUrl","useDefaultPosition","getTilesetModelMatrix","multiplyByPoint","tilesetModelMatrix","readyFun","addColor"," opacity = progress;\n","from","flyToBoundingSphere","fromTranslation","offsetX","fromCssColorString","lastIndexOf","then","camera","height","5cKkQrO","top","animationTimer","PBR","383992BXuLtv","// 生长动画逻辑\n opacity = 1.0;\n "];return(GA=function(){return e})()}const YA=OA;function OA(e,t){const A=GA();return(OA=function(e,t){return A[e-=333]})(e,t)}!function(){const e=OA,t=GA();for(;;)try{if(460956===parseInt(e(560))/1+parseInt(e(466))/2+parseInt(e(592))/3*(parseInt(e(385))/4)+-parseInt(e(556))/5*(parseInt(e(423))/6)+parseInt(e(344))/7*(-parseInt(e(430))/8)+-parseInt(e(458))/9+parseInt(e(372))/10*(parseInt(e(333))/11))break;t.push(t.shift())}catch(A){t.push(t.shift())}}();class NA{constructor(p,b,T){Lt(this,e),Lt(this,t),Lt(this,A),Lt(this,n),Lt(this,s),Lt(this,"loaded"),Lt(this,o),Lt(this,i),Lt(this,r),Lt(this,"rotateX"),Lt(this,a),Lt(this,c),Lt(this,"scale"),Lt(this,h),Lt(this,u),Lt(this,"readyFun"),Lt(this,g),Lt(this,f),Lt(this,"tilesetModelObj"),Lt(this,w),Lt(this,"id"),Lt(this,P),Lt(this,d),Lt(this,"url"),Lt(this,D),Lt(this,B),Lt(this,l),Lt(this,z),Lt(this,M,new Map),Lt(this,x,0),Lt(this,"animationTimer",null),Lt(this,H),Lt(this,C),Lt(this,j),Lt(this,v),Lt(this,I),Lt(this,G),Lt(this,Y),Lt(this,"compareType"),Lt(this,O),Lt(this,N),Lt(this,m),Lt(this,E),Lt(this,Q),Lt(this,"featureIdToActualIdMap",new Map);const X=YA;this[X(534)]=X(494),this[X(439)]=T,this[X(418)]=null,this.tileset=null,this[X(410)]={},this[X(590)]=[],this[X(572)]=null,this[X(504)]=!1,this[X(367)]=!1,this[X(544)]=null,this[X(383)]=null,this.lon=(null==T?void 0:T[X(509)])||null,this[X(356)]=(null==T?void 0:T[X(356)])||null,this[X(555)]=(null==T?void 0:T[X(555)])||0,this.offsetX=(null==T?void 0:T[X(550)])||0,this.offsetY=(null==T?void 0:T.offsetY)||0,this[X(444)]=(null==T?void 0:T.rotateX)||0,this[X(359)]=(null==T?void 0:T[X(359)])||0,this[X(518)]=(null==T?void 0:T[X(518)])||0,this[X(401)]=void 0!==(null==T?void 0:T[X(401)])?null==T?void 0:T[X(401)]:1,this[X(520)]=void 0!==(null==T?void 0:T.scale)?null==T?void 0:T[X(520)]:1,this[X(462)]=(null==T?void 0:T[X(462)])||"",this.compareColorObj=(null==T?void 0:T[X(431)])||{},this[X(347)]=(null==T?void 0:T[X(347)])||"",this.compareType=(null==T?void 0:T[X(588)])||X(488),this.resourceOpt=(null==T?void 0:T[X(470)])||0,this[X(341)]=(null==T?void 0:T[X(341)])||536870912,this[X(530)]=(null==T?void 0:T[X(530)])||!1,this.id=(null==T?void 0:T.id)||"",this[X(345)]=(null==T?void 0:T[X(345)])||X(468),this[X(461)]={},this[X(348)]=null,this[X(400)]=null,this[X(529)]=p,this.orginMatrixInverse=null,this.url=b,this[X(525)]=0,this[X(436)]=[],this[X(350)]=[],this.tilesetModelMatrix=null,this[X(432)](),this[X(506)]={}}[(e=YA(534),t=YA(429),A=YA(418),n=YA(410),s=YA(504),o=YA(555),i=YA(550),r=YA(568),a=YA(359),c=YA(518),h=YA(470),u=YA(401),g=YA(383),f=YA(590),w=YA(348),P=YA(529),d=YA(462),D=YA(345),B=YA(509),l=YA(356),z=YA(535),M=YA(501),x=YA(587),H=YA(525),C=YA(347),j=YA(436),v=YA(350),I=YA(439),G=YA(506),Y=YA(431),O=YA(341),N=YA(530),m=YA(572),E=YA(400),Q=YA(543),"getModelName")](){const e=YA;return this.id||this[e(471)][e(395)](this[e(471)][e(552)]("/")+1)}[YA(463)](){const e=YA;return{lon:this.lon,lat:this[e(356)],offsetX:this[e(550)],offsetY:this[e(568)],height:this[e(555)],rotateX:this[e(444)],rotateY:this[e(359)],rotateZ:this.rotateZ,scale:this[e(520)],opacity:this[e(401)]}}[YA(583)](){const e=YA;let t=[];return this[e(509)]&&this[e(356)]&&(t=[{name:"经度",value:e(509),type:e(397),step:1e-5},{name:"纬度",value:"lat",type:e(397),step:1e-5}]),t[e(573)]([{name:e(550),value:e(550),type:e(397),step:.001},{name:e(568),value:e(568),type:e(397),step:.001},{name:"高度",value:"height",type:e(397)},{name:"缩放",value:"scale",type:e(397),step:.01},{name:"颜色",value:e(462),type:e(462)},{name:"rotateX",value:e(444),type:e(524),min:-180,max:180},{name:e(359),value:e(359),type:e(524),min:-180,max:180},{name:e(518),value:"rotateZ",type:e(524),min:-180,max:180},{name:"透明度",value:e(401),type:"slider",min:0,max:1,step:.01}])}[YA(382)](e){const t=YA;if(this[t(550)]=e[t(550)],this[t(568)]=e.offsetY,this[t(555)]=e[t(555)],this[t(401)]=e.opacity,this[t(520)]=e[t(520)],this[t(444)]=e[t(444)],this[t(359)]=e[t(359)],this[t(518)]=e[t(518)],this[t(462)]=e[t(462)]||"",this.tilesetModelMatrix=null,e[t(509)]&&e[t(356)]){this.lon=e[t(509)],this[t(356)]=e[t(356)];let[A,n]=this[t(529)].lonlatToWGS84(this[t(509)],this[t(356)]);this[t(429)][t(376)][t(472)]=Kt[t(334)][t(510)](A,n,this.height),this[t(348)]=null,this[t(493)]()}this[t(475)](this[t(555)],this[t(550)],this[t(568)]),this[t(451)](),this.setTileMatrix4()}[YA(380)](e){const t=YA;e&&(this[t(504)]?e(this[t(429)]):this[t(544)]=e)}[YA(477)](e){const t=YA;e&&(0!==this[t(590)][t(336)]?e(this[t(590)]):this.loadedFun=e)}[YA(579)](){return new Promise(e=>{const t=OA;if(this[t(439)][t(429)])e(this.opt[t(429)][t(459)]());else{let A=this[t(471)];this.resourceOpt&&(this[t(470)].url=this.url,A=new(Kt[t(427)])(this[t(470)]));let n={maximumCacheOverflowBytes:this[t(341)],cacheBytes:this.maximumCacheOverflowBytes,projectTo2D:this.projectTo2D};Kt[t(435)][t(539)](A,n)[t(553)](t=>{e(t)})}})}load3DTile(){const e=YA;this[e(579)]()[e(553)](t=>{const A=e;this[A(429)]=t;let n=Kt[A(577)][A(569)](t[A(490)][A(388)]);if(this.orginMatrixInverse=Kt[A(577)][A(442)](n,new Kt.Matrix4),t[A(479)][A(503)]&&t[A(479)][A(503)]instanceof Kt.TileBoundingRegion){let e=null,n=this[A(439)][A(540)];if(n=void 0===n||n,this.cesiumObj.hideEarth&&n)e=new Kt.Cartesian3,this[A(529)][A(396)][A(459)](e);else if(null!==this.lon&&null!==this[A(356)]){let[t,n]=this[A(529)].lonlatToWGS84(this[A(509)],this[A(356)]);e=Kt[A(334)][A(510)](t,n,0)}else{e=t[A(376)][A(472)]}if(e){let n=t.boundingSphere.center[A(459)]();const s=Kt.Cartographic[A(575)](n),o=Kt[A(415)][A(575)](e),i=Kt[A(334)].fromRadians(s.longitude,s.latitude,0);let r=this[A(550)]/1e5,a=this[A(568)]/1e5;const c=Kt[A(334)][A(454)](o[A(409)]+r,o[A(522)]+a,this[A(555)]),h=Kt[A(334)][A(393)](c,i,new(Kt[A(334)]));t[A(485)]=Kt[A(577)].fromTranslation(h)}}else{if(this[A(475)](this[A(555)],0,0),this[A(529)][A(421)]){let e=new(Kt[A(334)]);this[A(529)][A(396)][A(459)](e),t[A(376)][A(472)]=e,this[A(400)]=e}else if(null!==this[A(509)]&&null!==this[A(356)]){let[e,n]=this[A(529)][A(335)](this[A(509)],this[A(356)]);const s=Kt[A(334)].fromDegrees(e,n,this[A(555)]);t[A(376)][A(472)]=s,this[A(400)]=s}this.setTileMatrix4(),this[A(475)](this.height,this[A(550)],this[A(568)])}this[A(529)].view[A(424)][A(428)].add(t),this[A(529)][A(366)]&&this[A(345)]&&(t[A(345)]=Kt[A(374)][this[A(345)]]),!this[A(439)].noControls&&this[A(529)][A(340)](this),!this.id&&(this.id=DA()),this.cesiumObj[A(441)][this.id]=this,this[A(544)]&&this.readyFun(this[A(429)]),this[A(504)]=!0,this[A(429)][A(408)]=this,this[A(429)].id=this.id,this[A(451)](),t.allTilesLoaded.addEventListener(()=>{const e=A;let n=this[e(467)](t[e(479)]),s={},o=new Map;n[e(570)](t=>{const A=e;let n=t.featuresLength;for(let e=0;e<n;e++){let n=t[A(368)](e),i=n[A(379)]("id"),r=n[A(443)];void 0!==r&&void 0!==i&&o[A(357)](r,i),s[i]?s[i].push(n):s[i]=[n]}}),this[e(461)]=s,this[e(580)]=o,this.contentList=n,this[e(439)][e(457)]&&this[e(439)][e(457)](s)}),this[A(383)]&&this[A(383)](this[A(590)]),this[A(367)]=!0}),this[e(347)]&&this[e(390)](),this[e(439)][e(389)]&&this[e(411)]()}[YA(375)](){const e=YA;let t=[-2177749.47819868,4388734.47251549,4070062.29710294,.430175895748655],A=new(Kt[e(334)])(t[0],t[1],t[2]);if(this[e(535)]&&this[e(429)][e(490)][e(388)]){const t=Kt[e(577)].multiply(this[e(429)][e(490)][e(388)],this[e(535)],new(Kt[e(577)]));A=Kt.Matrix4[e(542)](t,A,new Kt.Cartesian3)}return new(Kt[e(364)])(A,t[3])}clearIdStyles(){const e=YA;this.stylesByIdObj={},this[e(528)]()}[YA(528)](e,t="#fff",A=1){const n=YA;let s=[];e&&(!Array[n(434)](e)&&(e=[e]),e[n(570)](e=>{this[n(436)][e]=[t,A]})),Object[n(450)](this[n(436)])[n(570)](e=>{const t=n;let A=this[t(436)][e];new(Kt[t(533)]);let o=Kt[t(362)].fromCssColorString(A[0]).toBytes(),i=t(487)+o[0]+","+o[1]+", "+o[2]+", "+A[1]+t(578);s[t(370)](["${id} === '"+e+"'",i])});let o=null;if(this[n(462)]){new(Kt[n(533)]);let e=Kt[n(362)][n(551)](this[n(462)]).toBytes();o=n(487)+e[0]+","+e[1]+", "+e[2]+", "+this[n(401)]+n(578)}o&&s[n(370)]([n(402),o]),this[n(429)].style=new(Kt[n(533)])({color:{conditions:s}})}[YA(473)](e){const t=YA;this.color=e,this[t(451)]()}setOpacity(e){const t=YA;if(void 0===e&&(e=this[t(401)]),this[t(401)]=e,this[t(462)]){let e=new Kt.Cesium3DTileStyle,A=Kt.Color[t(551)](this[t(462)]).toBytes();e[t(462)]=t(487)+A[0]+","+A[1]+", "+A[2]+", "+this[t(401)]+")')",this[t(429)][t(513)]=e}else this[t(429)].style=new(Kt[t(533)])({color:{evaluateColor:()=>{const e=t;return new Kt.Color(1,1,1,this[e(401)])}}})}[YA(351)](){const e=YA;if(!this[e(429)]||0===this[e(501)][e(373)])return;this[e(429)].customShader&&(this[e(429)][e(398)]=void 0);const t=new(Kt[e(492)])({uniforms:{u_time:{type:Kt.UniformType[e(584)],value:this[e(587)]/1e3}},lightingModel:Kt[e(399)][e(559)],translucencyMode:Kt[e(355)].TRANSLUCENT,fragmentShaderText:e(349)+this.getAnimationConditionCode()+e(381)});this.tileset[e(398)]=t}[YA(498)](){let e="";const t=new Map;return this.growthAnimationMap.forEach((e,A)=>{const n=OA;t[n(357)](A[n(591)](),e)}),this.featureIdToActualIdMap.forEach((A,n)=>{const s=OA;if(t.has(A)){const o=t[s(521)](A),i=o.finalPercentage,r=o.startTime/1e3,a=o[s(483)]/1e3;if(e+=" if (featureId == "+n+s(353),e+=s(507)+r[s(426)](3)+";\n",e+=s(581)+a[s(426)](3)+";\n",e+=s(537),e+=s(500),e+=s(449)+i[s(426)](3)+s(414)+a[s(426)](3)+";\n",e+=" } else if (u_time > end) {\n",e+=s(449)+i.toFixed(3)+" * 1.0;\n",e+=s(391),e+=s(417),e+=s(514),o[s(505)]!==s(448)){let t;switch(o[s(505)]){case s(571):t=s(564);break;case"top-down":t=s(469);break;case s(482):t="clipValue = texCoordId.x";break;case s(405):t=s(358);break;default:t=s(478)}e+=s(561)+t+s(360)}else e+=s(546);e+=s(532)}}),e}[YA(502)](e){const t=YA;this.stop(),this[t(501)].clear(),e[t(570)](e=>{const A=t;this[A(501)].set(e[A(392)],{startTime:e[A(589)],duration:e[A(483)],animationType:e[A(505)]||A(571),finalPercentage:void 0!==e[A(562)]?Math[A(403)](0,Math[A(519)](1,e.finalPercentage)):1})});let A=e[t(460)](e=>e.delay),n=0===A.length?0:Math[t(403)](...A),s=e[t(460)](e=>e[t(483)]),o=0===s.length?0:Math[t(403)](...s);this[t(525)]=n+o}[YA(486)](){const e=YA;0!==this[e(501)][e(373)]&&(this[e(558)]||(this[e(351)](),this[e(558)]=setInterval(()=>{const t=e;this[t(587)]+=100,this[t(429)]&&this[t(429)][t(398)]&&this.tileset[t(398)][t(346)](t(419),this[t(587)]/1e3);(Array[t(547)](this[t(501)][t(565)]())[t(585)](e=>this[t(587)]>=e[t(456)]+e[t(483)])||this[t(587)]>=this.animationRuntime)&&this.stop()},100)))}[YA(438)](){const e=YA;this[e(587)]=0,this[e(558)]&&(clearInterval(this[e(558)]),this[e(558)]=null),this[e(429)]&&this[e(429)][e(398)]}pause(){const e=YA;this[e(558)]&&(clearInterval(this[e(558)]),this[e(558)]=null)}[YA(527)](){this.stop(),this.start()}[YA(511)](e){const t=YA;if(this[t(429)]){let A=this[t(429)].boundingSphere[t(472)].clone();const n=Kt[t(415)].fromCartesian(A),s=Kt.Cartesian3[t(454)](n[t(409)],n[t(522)],0);let o=this[t(550)]/1e5,i=this[t(568)]/1e5;const r=Kt[t(334)].fromRadians(n[t(409)]+o,n.latitude+i,e),a=Kt.Cartesian3.subtract(r,s,new Kt.Cartesian3);let c=Kt[t(577)][t(549)](a);St.default.to(this.tileset[t(485)],2,{...c})}}[YA(475)](e,t=0,A=0){const n=YA;if(this[n(429)]){let s=this[n(429)][n(376)][n(472)][n(459)]();const o=Kt[n(415)][n(575)](s),i=Kt.Cartesian3[n(454)](o[n(409)],o[n(522)],0);t/=1e5,A/=1e5;const r=Kt[n(334)][n(454)](o.longitude+t,o[n(522)]+A,e),a=Kt[n(334)][n(393)](r,i,new(Kt[n(334)]));this[n(429)][n(485)]=Kt.Matrix4.fromTranslation(a)}else this.height=e,this[n(550)]=t,this.offsetY=A}[YA(508)](e){const t=YA;let A=[];if(e){A[t(370)](e);let n=e[t(582)];n&&n[t(570)](e=>{const n=t;A[n(370)](...this[n(508)](e))})}return A}[YA(467)](e){const t=YA;let A=[];if(e[t(536)]){e[t(536)][t(570)](e=>{const n=t;A.push(...this[n(467)](e))})}return A[t(370)](...this[t(508)](e[t(371)])),A}getTilesetCenterMatrix4(){const e=YA;if(!this[e(348)]){let t=this[e(429)][e(376)],A=Kt[e(415)][e(575)](t[e(472)]),n=Kt.Math.toDegrees(A[e(409)]),s=Kt.Math[e(437)](A[e(522)]),o=Kt[e(334)][e(454)](Kt.Math[e(515)](n),Kt[e(517)].toRadians(s),0),i=Kt.Transforms[e(464)](o);this.centerMatrix4=i[e(459)]()}return this.centerMatrix4}[YA(493)](){const e=YA;if(this.opt[e(481)])return;let t=this.getTilesetCenterMatrix4().clone(),A=Kt.Matrix4[e(480)](this[e(520)]);Kt[e(577)][e(496)](t,A,t);let n=Kt[e(433)].fromRotationX(Kt[e(517)][e(515)](this[e(444)])),s=Kt[e(577)][e(365)](n);Kt[e(577)].multiply(t,s,t);let o=Kt[e(433)][e(446)](Kt[e(517)][e(515)](this.rotateY)),i=Kt.Matrix4[e(365)](o);Kt[e(577)].multiply(t,i,t);let r=Kt.Matrix3[e(593)](Kt[e(517)].toRadians(this.rotateZ)),a=Kt[e(577)][e(365)](r);Kt[e(577)][e(496)](t,a,t),this[e(429)][e(490)][e(388)]=t}[YA(394)](){const e=YA;let t=this.tileset[e(376)].clone();this[e(529)][e(563)][e(554)][e(548)](t)}[YA(586)](e,t,A){const n=YA;var s,o=this[n(429)],i=o[n(479)].transform;i&&i[n(445)](Kt[n(577)][n(386)])||!i?Kt[n(440)][n(464)](o[n(376)][n(472)]):Kt.Matrix4[n(569)](o[n(479)][n(388)]),s=Kt.Matrix4[n(412)](Kt[n(577)][n(569)](o.root.transform),new(Kt[n(577)]));let r=Kt.Transforms[n(464)](o[n(376)][n(472)])[n(459)](),a=Kt.Matrix4.fromUniformScale(this[n(520)]);Kt.Matrix4[n(496)](r,a,r);let c=Kt.Matrix3[n(512)](Kt[n(517)].toRadians(this[n(444)])),h=Kt[n(577)][n(365)](c);Kt[n(577)][n(496)](r,h,r);let u=Kt.Matrix3[n(446)](Kt[n(517)][n(515)](this[n(359)])),g=Kt[n(577)][n(365)](u);Kt[n(577)].multiply(r,g,r);let f=Kt.Matrix3[n(593)](Kt[n(517)][n(515)](this[n(518)])),w=Kt[n(577)].fromRotationTranslation(f);Kt.Matrix4[n(496)](r,w,r),r=Kt[n(577)].inverseTransformation(r,new(Kt[n(577)]));let P=e[n(472)],d=e.radius,D=P.x,B=P.y,l=P.z,z=new(Kt[n(334)])(D,B-d,l),M=new(Kt[n(334)])(D-d,B,l),x=new Kt.Cartesian3(D,B+d,l),H=new(Kt[n(334)])(D+d,B,l),C=new(Kt[n(334)])(0,0,1);new(Kt[n(334)])(0,0,-1);let j=s;z=Kt[n(577)][n(542)](j,z,new(Kt[n(334)])(0,0,0)),M=Kt.Matrix4[n(542)](j,M,new(Kt[n(334)])(0,0,0)),x=Kt.Matrix4[n(542)](j,x,new(Kt[n(334)])(0,0,0)),H=Kt[n(577)][n(542)](j,H,new(Kt[n(334)])(0,0,0));let v=Kt.Cartesian3[n(393)](M,z,new(Kt[n(334)])),I=Kt.Cartesian3[n(476)](v,C,new(Kt[n(334)]));I=Kt.Cartesian3[n(406)](I,I);let G=Kt[n(342)].fromPointNormal(P,I),Y=Kt[n(465)][n(354)](G),O=Kt[n(334)][n(393)](x,M,new(Kt[n(334)])),N=Kt[n(334)][n(476)](O,C,new(Kt[n(334)]));N=Kt.Cartesian3[n(406)](N,N);let m=Kt[n(342)].fromPointNormal(z,N),E=Kt[n(465)][n(354)](m),Q=Kt[n(334)][n(393)](H,x,new(Kt[n(334)])),p=Kt[n(334)][n(476)](Q,C,new Kt.Cartesian3);p=Kt[n(334)][n(406)](p,p);let b=Kt[n(342)][n(566)](P,p),T=Kt[n(465)].fromPlane(b),X=Kt[n(334)][n(393)](z,H,new(Kt[n(334)])),F=Kt[n(334)][n(476)](X,C,new(Kt[n(334)]));F=Kt.Cartesian3[n(406)](F,F);let R=Kt[n(342)][n(566)](z,F),L=Kt[n(465)][n(354)](R);return Y[n(526)]=Y[n(526)]/1e3-22,E.distance=E[n(526)]/1e3-22,T[n(526)]=T[n(526)]/1e3-22,L[n(526)]=L.distance/1e3-22,new Kt.ClippingPlaneCollection({planes:[Y,E,T,L],edgeColor:Kt[n(362)][n(497)],edgeWidth:1})}createPlaneUpdateFunction_box(e,t,A){return function(){return e}}[YA(538)](e){const t=YA;var A,n=e[t(425)],s=n.x,o=n.y,i=n.z;return 1==s&&0==o&&0==i?A=t(452):-1==s&&0==o&&0==i?A="right":0==s&&1==o&&0==i?A=t(499):0==s&&-1==o&&0==i?A="front":0==s&&0==o&&-1==i&&(A=t(557)),A}[YA(387)](e){const t=YA,A=[];return A.push(e.id),e[t(536)]&&e[t(536)][t(570)](e=>{A[t(370)](...this.getDirectChildIds(e))}),A}[YA(411)](){const e=YA;let t=this.url[e(395)](0,this[e(471)][e(552)]("/"));const A=function(t,A){const n=e;Object[n(450)](t).forEach(e=>{const s=n;A[s(495)](e)?t[e].forEach(e=>e[s(453)]=!0):t[e].forEach(e=>e[s(453)]=!1)})};this.getScenetreeProm(t)[e(553)](t=>{const n=e;let s=t[n(377)][0][n(536)][n(339)]((e,t)=>t[n(420)]-e.name),o=[];s[n(570)]((e,t)=>{const i=n;let r=this.getDirectChildIds(e);if(o.push({name:e[i(420)],id:e.id,ids:r,index:t}),t===s[i(336)]-1)this[i(410)][e.id]=this,this[i(439)].addTilesetModelObj=e=>{A(e,r)};else{let t={...this[i(439)],isLayering:!1,addTilesetModelObj(e){A(e,r)}};t.id&&(t.id=t.id+"_"+e.id),this[i(410)][e.id]=new NA(this[i(529)],this[i(471)],t)}}),this[n(350)]=o,this[n(439)].getLayerList&&this.opt[n(523)](this[n(350)])})}[YA(489)](e,t=10){const A=YA;let n=this.layerList[A(455)](t=>t.name===e);n&&this[A(350)][A(570)]((e,s)=>{const o=A;let i=this.height;s-n.index>0&&(i=t+this.height),this[o(410)][e.id]&&this[o(410)][e.id][o(511)](i)})}[YA(390)](){const e=YA;let t=Object.assign({},this[e(439)]);t.path=t.compareTilePath,t[e(347)]="",t.id=t.id+e(491),this[e(343)]()}[YA(337)](e){const t=YA;let A=[];return e[t(570)](e=>{const n=t;e[n(422)]===n(413)?A[n(370)](e):A[n(370)](...this[n(337)](e[n(536)]))}),A}[YA(574)](e){let t={};return e.forEach(e=>{t[e.id]=e}),t}[YA(338)](e,t){const A=YA;this[A(588)]===A(576)&&([e,t]=[t,e]);let n=this.getScenetreeElement(e.scenes),s=this.getScenetreeElement(t[A(377)]),o=this[A(574)](n),i=this[A(574)](s),r=Object.keys(o),a=Object.keys(i),c=r[A(416)](e=>a[A(495)](e)),h=a[A(416)](e=>!c[A(495)](e)),u=r[A(416)](e=>!c[A(495)](e)),g=[],f=[];c[A(570)](e=>{const t=A;let n=o[e][t(484)],s=i[e][t(484)],r=new(Kt[t(334)])(n[0],n[1],n[2]),a=n[3],c=new(Kt[t(334)])(s[0],s[1],s[2]),h=s[3],u=new Kt.BoundingSphere(r,a),w=new Kt.BoundingSphere(c,h);Kt[t(364)].equals(u,w)?f.push(e):g[t(370)](e)});let w=this[A(431)][A(567)]||"#f00",P=this[A(431)][A(352)]||1,d=this.compareColorObj[A(545)]||A(363),D=this.compareColorObj.addOpacity||1,B=this[A(431)].chgColor||A(378),l=this[A(431)][A(516)]||1;this[A(588)]===A(576)?(this.setStylesById(g,B,l),this.setStylesById(h,w,P)):(this.setStylesById(u,d,D),this[A(528)](g,B,l)),this[A(506)]={changeIds:g,noChangeIds:f,deleteIds:h,addIds:u}}[YA(343)](){const e=YA;let t=this[e(471)].slice(0,this[e(471)][e(552)]("/")),A=this[e(361)](t),n=this[e(361)](this[e(347)]);Promise[e(531)]([A,n])[e(553)](([t,A])=>{this[e(338)](t,A)})}[YA(361)](e){const t=YA;let A={url:e+"/scenetree.json"};return this[t(470)]&&(A=Object.assign(A,this[t(470)])),new Promise(e=>{var n;const s=t;null==(n=new(Kt[s(427)])(A).fetchJson())||n[s(553)](t=>{e(t)})})}[YA(407)](e){return new Promise(async t=>{const A=OA;if(!this[A(572)]){let e=this[A(471)][A(395)](0,this.url[A(552)]("/")),t=await this[A(361)](e),n=this[A(337)](t.scenes);this[A(572)]=n}let n=this[A(572)][A(455)](t=>t.id===e);if(n){let e=n[A(484)],s=new Kt.Cartesian3(e[0],e[1],e[2]);if(this[A(535)]&&this[A(429)][A(490)][A(388)]){const e=Kt.Matrix4[A(496)](this.tileset[A(490)][A(388)],this[A(535)],new Kt.Matrix4);s=Kt[A(577)][A(542)](e,s,new(Kt[A(334)]))}const o=new(Kt[A(364)])(s,e[3]),i=Kt[A(415)].fromCartesian(o[A(472)]);let r=Kt[A(517)].toDegrees(i.latitude),a=Kt[A(517)][A(437)](i[A(409)]);[a,r]=this[A(529)][A(447)](a,r),t({lon:a,lat:r,hei:i[A(555)]})}else t({lon:0,lat:0,hei:0,isError:!0})})}[YA(541)](e=null){const t=YA;if(this.tilesetModelMatrix&&!e)return this[t(543)];{let A=this.tileset.boundingSphere,n=Kt[t(415)][t(575)](A[t(472)]),s=(null==e?void 0:e[t(550)])||0,o=(null==e?void 0:e.offsetY)||0,i=(null==e?void 0:e.height)||0,r=(null==e?void 0:e[t(444)])||0,a=(null==e?void 0:e[t(359)])||0,c=(null==e?void 0:e[t(518)])||0,h=(null==e?void 0:e[t(520)])||1;s/=1e5,o/=1e5;const u=Kt[t(334)][t(454)](n[t(409)]+s,n[t(522)]+o,this[t(555)]+i);let g=vA(u,{rotateZ:this[t(518)]+c,rotateX:this[t(444)]+r,rotateY:this.rotateY+a,scale:this[t(520)]*h});return!e&&(this[t(543)]=g.clone()),g}}getTilesetModelMatrixZero(){return new Kt.Matrix4(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}[YA(384)](){var e,t,A;const n=YA;try{this.tileset&&this[n(429)].destroy(),null==(A=null==(t=null==(e=this[n(529)])?void 0:e[n(563)])?void 0:t[n(424)][n(428)])||A[n(384)](this[n(429)])}catch(s){}}}const mA=EA;function EA(e,t){const A=QA();return(EA=function(e,t){return A[e-=288]})(e,t)}function QA(){const e=["animations","fromGltfAsync","offsetX","HeadingPitchRoll","url","tilesetModelMatrix","3812TSBAAM","18XeRKII","height","loadFinFun","40TlMUEg","setLonLat","animMartrix","REPEAT","HIDEMODELLONLAT","push","WGS84","flyTo","rotateZ","setOpacity","请添加模型位置!","NONE","localFrameToFixedFrameGenerator","REVERSE","removeAll","透明度","Cartesian3","view","isFlyToObj","readyEvent","setModelMatrix","isLoadFinish","flyToBoundingSphere","color('rgba(255,255, 255, ","2901522stGEIU","scene","正在播放全部动画!请停止后再添加新动画!","MIRRORED_REPEAT",")')","animationList","getTilesetModelMatrix","scale","opacity","ModelAnimationLoop","animationsLength","fromDegrees","activeAnimations","请添加模型 URL!","loadModel","rotateY","west","lonlatToWGS84","findIndex","Model","2157701IBSuWJ","GltfLoader","getModelName","splice","SplitDirection","stopAllAnimations","Matrix4","cesiumObj","22mYaIPm","fromRadians","Cesium3DTileStyle","2133555IUrmJc","updateStyle","clone","animationList_linshi","lon","rotateX","resourceOpt","Transforms","getControlValue","noControls","lastIndexOf","loop","splitDirection","lat","north","reverse","6152110dVmtNi","then","primitives","index","remove","toRadians","addAllAnimations","number","center","slider","Resource","camera","Ellipsoid","gltfModel","headingPitchRollToFixedFrame","70288NRmCNM","Math","animHeight","style","fromCartesian","getControlOptions","longitude","addModelControlsList","modelMatrix","addEventListener","63042BkCVaz","length","getTilesetModelMatrixZero","TYPE","boundingSphere","add","error","loopAllAnimations","hideEarth","options","loopAllAnimationsSpeed"];return(QA=function(){return e})()}!function(){const e=EA,t=QA();for(;;)try{if(272739===parseInt(e(391))/1*(parseInt(e(330))/2)+parseInt(e(374))/3*(parseInt(e(395))/4)+-parseInt(e(333))/5+-parseInt(e(302))/6+-parseInt(e(322))/7+parseInt(e(364))/8+parseInt(e(392))/9*(parseInt(e(349))/10))break;t.push(t.shift())}catch(A){t.push(t.shift())}}();class pA{constructor(e,t,A){Lt(this,p),Lt(this,b),Lt(this,T),Lt(this,"id"),Lt(this,X),Lt(this,F),Lt(this,R),Lt(this,"rotateZ"),Lt(this,"scale"),Lt(this,L),Lt(this,y),Lt(this,q),Lt(this,U),Lt(this,Z),Lt(this,V),Lt(this,"animationList"),Lt(this,"animationList_linshi"),Lt(this,W),Lt(this,k),Lt(this,J),Lt(this,K),Lt(this,S),Lt(this,_),Lt(this,$),Lt(this,ee),Lt(this,te);const n=mA;this[n(377)]=n(323),this[n(389)]=t,this[n(383)]=A,this.cesiumObj=e,this.id=A.id||"",this[n(338)]=A[n(338)]||0,this[n(317)]=A.rotateY||0,this.rotateZ=A[n(403)]||0,this.scale=void 0!==(null==A?void 0:A[n(309)])?null==A?void 0:A[n(309)]:1,this[n(310)]=void 0!==(null==A?void 0:A[n(310)])?null==A?void 0:A.opacity:1,this[n(339)]=A.resourceOpt||null,this[n(345)]=A[n(345)]||n(289),this[n(396)](this[n(383)]),this.height=A.height||0,this.animationsLength=0,this.loopAllAnimations=A[n(381)]||"",this[n(384)]=void 0!==(null==A?void 0:A[n(384)])?null==A?void 0:A[n(384)]:1,this[n(362)]=null,this.animationList=[],this[n(336)]=[],this[n(299)]=!1,this[n(394)]=null,this.isFlyToObj=null,this[n(372)]=null,this[n(390)]=null,this.url&&void 0!==this[n(337)]&&void 0!==this[n(346)]&&this[n(316)]()}[(p=mA(377),b=mA(389),T=mA(329),X=mA(312),F=mA(338),R=mA(317),L=mA(337),y=mA(346),q=mA(393),U=mA(381),Z=mA(384),V=mA(362),W=mA(299),k=mA(394),J=mA(296),K=mA(372),S=mA(345),_=mA(310),$=mA(339),ee=mA(383),te=mA(390),mA(396))](e){const t=mA;let A,n;if(this[t(329)][t(382)]){let s=(e.x||0)/1e5,o=(e.y||0)/1e5;A=this[t(329)][t(399)][0]+s,n=this[t(329)][t(399)][1]+o}else A=e[t(337)],n=e[t(346)];this[t(337)]=A,this[t(346)]=n}[mA(324)](){const e=mA;return this.id||this[e(389)].slice(this[e(389)][e(343)]("/")+1)}[mA(341)](){const e=mA;return{x:this[e(383)].x||0,y:this.options.y||0,lon:this.lon,lat:this[e(346)],height:this.height,rotateX:this.rotateX,rotateY:this[e(317)],rotateZ:this[e(403)],scale:this[e(309)],opacity:this[e(310)]}}[mA(369)](){const e=mA;let t=[{name:"经度",value:e(337),type:e(356),step:1e-5},{name:"纬度",value:e(346),type:e(356),step:1e-5}];this[e(329)][e(382)]&&(t=[{name:"x偏移",value:"x",type:e(356),step:.001},{name:"y偏移",value:"y",type:e(356),step:.001}]);let A=[{name:"高度",value:e(393),type:e(356)},{name:"缩放",value:e(309),type:e(356),step:.01},{name:e(338),value:"rotateX",type:"slider",min:-180,max:180},{name:e(317),value:e(317),type:"slider",min:-180,max:180},{name:e(403),value:e(403),type:"slider",min:-180,max:180},{name:e(293),value:e(310),type:e(358),min:0,max:1,step:.01}];return t=t.concat(A),t}[mA(334)](e){const t=mA;this[t(396)](e),this[t(393)]=e.height,this.rotateX=e[t(338)],this[t(317)]=e[t(317)],this[t(403)]=e[t(403)],this[t(309)]=e[t(309)],this.opacity=e.opacity,this[t(390)]=null,this[t(298)](),this[t(362)][t(372)]=this[t(372)],this[t(362)][t(309)]=this.scale,this[t(362)][t(367)]=new(Kt[t(332)])({color:t(301)+this[t(310)]+t(306)})}[mA(404)](e){const t=mA;void 0===e&&(e=this[t(310)]),this[t(310)]=e,this.gltfModel[t(367)]=new Kt.Cesium3DTileStyle({color:t(301)+this[t(310)]+")')"})}loadFinish(e){const t=mA;this[t(299)]?e(this.gltfModel):this[t(394)]=e}[mA(298)](){const e=mA;let[t,A]=this[e(329)][e(319)](this.lon,this[e(346)]);const n=Kt.Cartesian3[e(313)](t,A,this.height),s=Kt[e(365)][e(354)](this.rotateZ),o=Kt[e(365)][e(354)](this[e(338)]),i=Kt.Math[e(354)](this[e(317)]),r=new(Kt[e(388)])(s,o,i),a=Kt[e(340)][e(290)]("north",e(318));this[e(372)]=Kt[e(340)][e(363)](n,r,Kt[e(361)][e(401)],a)}animPosition(e,t){const A=mA;this[A(362)]&&(this[A(337)]=e,this.lat=t,this[A(397)]())}[mA(366)](e){const t=mA;this[t(362)]&&(this.height=e,this[t(397)]())}[mA(397)](){const e=mA;let[t,A]=this[e(329)][e(319)](this[e(337)],this[e(346)]);const n=Kt[e(294)][e(313)](t,A,this[e(393)]),s=Kt[e(365)][e(354)](this.rotateZ),o=Kt[e(365)][e(354)](this[e(338)]),i=Kt[e(365)][e(354)](this[e(317)]),r=new(Kt[e(388)])(s,o,i),a=Kt[e(340)][e(290)](e(347),e(318));this[e(372)]=Kt.Transforms[e(363)](n,r,Kt[e(361)].WGS84,a),St.default.to(this.gltfModel[e(372)],2,{...this[e(372)]})}[mA(316)](){const e=mA;this.setModelMatrix();let t=this.url;this[e(339)]&&(this.resourceOpt[e(389)]=this[e(389)],t=new(Kt[e(359)])(this[e(339)])),!this.id&&(this.id=DA()),Kt[e(321)][e(386)]({url:t,scale:this[e(309)],id:this.id||null,modelMatrix:this.modelMatrix,gltfCallback:t=>{var A;const n=e;this[n(312)]=(null==(A=t[n(385)])?void 0:A[n(375)])||0}})[e(350)](t=>{const A=e;this[A(362)]=t,this.cesiumObj[A(295)].scene[A(351)][A(379)](this[A(362)]),!this[A(383)][A(342)]&&this.cesiumObj[A(371)](this),this[A(329)].primitiveObj[this.id]=this,this[A(329)].isSplitView&&(this[A(362)].splitDirection=Kt[A(326)][this[A(345)]]),1!==this[A(310)]&&(this[A(362)][A(367)]=new(Kt[A(332)])({color:A(301)+this.opacity+A(306)})),this[A(362)][A(297)][A(373)](()=>{const e=A;this.loopAllAnimations&&this[e(355)](),this[e(296)]&&this[e(402)](),0!==this[e(336)][e(375)]&&this[e(336)].forEach(e=>{this.addAnimation(e)})}),this[A(299)]=!0,this[A(394)]&&this[A(394)](this[A(362)])})}addAnimation(e){const t=mA;if(!this.isLoadFinish)return void this[t(336)][t(400)](e);let A=e[t(352)];if(void 0===e[t(352)])return;if(A+1>this.animationsLength)return;let n=e[t(344)]||t(289);e.speed;let s=e[t(348)]||!1;if(this[t(381)])return;let o=this[t(307)][t(320)](e=>e[t(352)]===A);-1!==o&&(this[t(307)][o],this[t(307)][t(325)](o,1));let i={index:A,loop:Kt[t(311)][n],multiplier:this[t(384)],reverse:s},r=this[t(362)][t(314)][t(379)](i);this[t(307)].push({index:A,anim:r})}[mA(355)](){const e=mA;let t=!1;this[e(381)]===e(291)&&(t=!0),this.loopAllAnimations!==e(305)&&(this.loopAllAnimations=e(398));for(let A=0;A<this[e(312)];A++)this[e(362)][e(314)][e(379)]({index:A,loop:Kt[e(311)][this.loopAllAnimations],multiplier:this.loopAllAnimationsSpeed,reverse:t})}[mA(327)](){const e=mA;this[e(381)]="",this[e(362)][e(314)][e(292)]()}[mA(402)](){const e=mA;let t=this[e(362)][e(378)][e(335)]();this.cesiumObj.view[e(360)][e(300)](t)}[mA(308)](e=null){const t=mA;if(this[t(390)]&&!e)return this[t(390)];{let A=this[t(362)][t(378)],n=Kt.Cartographic[t(368)](A[t(357)]);!e&&(e={});let s=e[t(387)]||0,o=e.offsetY||0,i=e[t(393)]||0,r=e[t(338)]||0,a=e[t(317)]||0,c=e.rotateZ||0,h=e[t(309)]||0;const u=Kt.Cartesian3[t(331)](n[t(370)]+s,n.latitude+o,this[t(393)]+i);return this[t(390)]=vA(u,{rotateX:this[t(338)]+r,rotateZ:this[t(403)]+c,rotateY:this[t(317)]+a,scale:this[t(309)]+h}),this[t(390)]}}[mA(376)](){return new(Kt[mA(328)])(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)}remove(){var e,t,A;const n=mA;try{null==(A=null==(t=null==(e=this[n(329)])?void 0:e[n(295)])?void 0:t[n(303)].primitives)||A[n(353)](this[n(362)])}catch(s){}}}const bA=TA;function TA(e,t){const A=FA();return(TA=function(e,t){return A[e-=464]})(e,t)}!function(){const e=TA,t=FA();for(;;)try{if(848869===parseInt(e(471))/1+parseInt(e(468))/2+-parseInt(e(472))/3+parseInt(e(474))/4+-parseInt(e(482))/5+-parseInt(e(475))/6+-parseInt(e(493))/7*(-parseInt(e(494))/8))break;t.push(t.shift())}catch(A){t.push(t.shift())}}();class XA{constructor(){Lt(this,"PI"),Lt(this,"a"),Lt(this,"b"),Lt(this,"f"),Lt(this,Ae),Lt(this,"ee"),Lt(this,ne),Lt(this,se),Lt(this,oe),Lt(this,"EPSILON"),Lt(this,"M_PI");const e=bA;this.PI=3.141592653589793,this.a=6378137,this.b=6356752.3142,this.f=(this.a-this.b)/this.a,this.e_sq=this.f*(2-this.f),this.ee=.00669437999013,this[e(489)]=1/298.257223563,this[e(487)]=this[e(489)]*(2-this[e(489)]),this[e(465)]=6378137,this.EPSILON=1e-12}[(Ae=bA(473),ne=bA(489),se=bA(487),oe=bA(465),"CalculateCoordinates")](e,t,A,n){const s=bA;let o,i;n*=Math[s(478)](2*this.PI/360*A),360<t&&(t%=360),t<0&&(t=360+t%360),e=null,A=this.lonLat2WebMercator(e),t<=90?(o=n*Math.cos(2*this.PI/360*t),i=n*Math[s(484)](2*this.PI/360*t),e={x:A.x+o,y:A.y-i}):90<t&&t<=180?(o=n*Math[s(484)](2*this.PI/360*(t-90)),i=n*Math[s(478)](2*this.PI/360*(t-90)),e={x:A.x-o,y:A.y-i}):180<t&&t<=270?(o=n*Math[s(478)](2*this.PI/360*(t-180)),i=n*Math.sin(2*this.PI/360*(t-180)),e={x:A.x-o,y:A.y+i}):(o=n*Math[s(484)](2*this.PI/360*(t-270)),i=n*Math[s(478)](2*this.PI/360*(t-270)),e={x:A.x+o,y:A.y+i});let r=n*Math[s(484)](2*this.PI/360*A);return{lng:(e=this[s(488)](e)).x,lat:e.y,height:r}}lonLat2WebMercator(e){const t=bA;return{x:e.x*this.a/180,y:Math[t(467)](Math.tan((90+e.y)*this.PI/360))/(this.PI/180)*this.a/180}}[bA(488)](e){let t=e.x/this.a*180;return e=e.y/this.a*180,{x:t,y:180/this.PI*(2*Math.exp(e*this.PI/180)-this.PI/2)}}get_atan(e,t){const A=bA;let n=0;return 0==e?n=this.PI/2:0==t?n=this.PI:(n=Math[A(485)](Math[A(466)](t/e)),0<t&&e<0?n=this.PI-n:t<0&&e<0?n=this.PI+n:t<0&&0<e&&(n=2*this.M_PI-n)),n}[bA(490)](e){const t=bA;let A=this.PI/180*e[t(477)],n=this.PI/180*e[t(483)],s=e[t(480)];return{x:((e=this.a/Math[t(476)](1-this.ee*Math[t(484)](n)*Math[t(484)](n)))+s)*Math[t(478)](n)*Math[t(478)](A),y:(e+s)*Math[t(478)](n)*Math[t(484)](A),z:(e*(1-this.ee)+s)*Math[t(484)](n)}}[bA(486)](e){const t=bA;let A=this[t(481)](e.x,e.y);A<0&&(A+=this.PI);let n,s=this[t(481)](Math.sqrt(e.x*e.x+e.y*e.y),e.z),o=Math.sqrt(1-this[t(487)]*Math[t(484)](s)*Math[t(484)](s)),i=(this[t(465)],0);for(;n=s,o=Math[t(476)](1-this[t(487)]*Math.sin(n)*Math.sin(n)),i=this.WGSa/o,s=this.get_atan(Math.sqrt(e.x*e.x+e.y*e.y),e.z+i*this[t(487)]*Math[t(484)](n)),Math[t(466)](s-n)>this[t(464)];);let r=Math[t(476)](e.x*e.x+e.y*e.y)/Math[t(478)](s)-this[t(465)]/Math[t(476)](1-this[t(487)]*Math[t(484)](s)*Math.sin(s));return{longitude:180*A/this.PI,latitude:180*s/this.PI,altitude:r}}[bA(491)](e,t){const A=bA;let n,s=t[A(469)],o=t[A(470)],i=t[A(492)],r=0<=i?s*Math.sin(this.PI/180*i):-1*s*Math.sin(this.PI/180*Math[A(466)](i)),a=s*Math[A(478)](this.PI/180*Math.abs(i)),c=0;n=o<=90?(c=a*Math[A(484)](this.PI/180*o),a*Math.cos(this.PI/180*o)):90<o&&o<180?(c=a*Math[A(478)](this.PI/180*(o-90)),-1*a*Math.sin(this.PI/180*(o-90))):180<o&&o<270?(c=-1*a*Math[A(484)](this.PI/180*(o-180)),-1*a*Math[A(478)](this.PI/180*(o-180))):(c=-1*a*Math[A(484)](this.PI/180*(360-o)),a*Math[A(478)](this.PI/180*(360-o)));let h=this[A(479)](e[A(483)]),u=this[A(479)](e.longitude);return t=e.altitude,s=Math[A(484)](h),i=this.a/Math[A(476)](1-this[A(473)]*s*s),a=Math[A(484)](h),o=Math[A(478)](h),e=Math[A(484)](u),s=Math[A(478)](u),h=(t+i)*o*s,u=(t+i)*o*e,t=(t+(1-this[A(473)])*i)*a,i=o*r-a*n,o=a*r+o*n,n=s*i-e*c,c=e*i+s*c,this.ConvertXYZToLLA({x:n+h,y:c+u,z:o+t})}[bA(479)](e){return this.PI/180*e}}function FA(){const e=["get_atan","1909895yExhob","latitude","sin","atan","ConvertXYZToLLA","WGSe2","webMercator2LonLat","WGSF","ConvertLLAToXYZ","enu_to_ecef","elevation","1617argUqF","424OeXcUT","EPSILON","WGSa","abs","log","824246toJnXI","distance","azimuth","1187019QhbaYu","619500XyzSOT","e_sq","575792QUOXmb","1907910vkOxof","sqrt","longitude","cos","radians","altitude"];return(FA=function(){return e})()}const RA=LA;function LA(e,t){const A=yA();return(LA=function(e,t){return A[e-=371]})(e,t)}function yA(){const e=["243827WswWFC","_textureSize","depthBias","位置坐标错误","PixelDatatype","isDestroyed","长宽比","orientation","175QXGeRL","1483568lpRaZa","lastIndexOf","postProcess","combinedUniforms1","Quaternion","update","primitives","distance","negate","addCameraFrustum","normalize","GeometryInstance","27cZokIh","add","context","_aspectRatio","_darkness","_pointBias","position","33342kahDIN","lon","rotateX","17636KIQPcg","removeEventListener","video","_isPointLight","FrustumOutlineGeometry","changeCamera","PostProcessStage","getModelName","172878qGMnNe","show","remove","_distance","direction","PixelFormat","maximumDistance","error","_lightPositionEC","subtract","initCameraParam","withAlpha","normalShadingSmooth","frameState","_camerafov","PerInstanceColorAppearance","rotateY","aspectRatio","fov","normalOffsetScale","upWC","combinedUniforms2","activeVideo","cameraPosition","_debugFrustum","destroy","_scanPlaneBackCommand","concat","longitude","setFrustumVisible","setOptions","getOrientation","scene","hideEarth","YELLOW","options","url","log","latitude","Primitive","switch","far","Color","Cartesian3","11891RhCLsd","addEventListener","lat","height","lonlatToWGS84","1717815WZNLpR","fromDegrees","cesiumObj","Math","videoTexture","8010zZfaPM","shadowMaps","debugFrustum","altitude","PerspectiveFrustum","activeVideoListener","getControlOptions","UNSIGNED_BYTE","viewShadowMap","enu_to_ecef","_position","RGBA","oldOpt","viewer","defaultValue","directionWC","slider","number","HIDEMODELLONLAT","Cartesian4","frustum","cameraFrustum","Camera","postProcessStages","x偏移","updateStyle","_cameraPosition","Matrix3","clock","addPostProcess","231QwKUQX","fromElements","onTick","near","createShadowMap","_primitiveBias","flyTo","_lightCamera","setColumn","ColorGeometryInstanceAttribute","alpha"];return(yA=function(){return e})()}!function(){const e=LA,t=yA();for(;;)try{if(607310===parseInt(e(415))/1+parseInt(e(443))/2+-parseInt(e(404))/3*(parseInt(e(446))/4)+-parseInt(e(503))/5+-parseInt(e(454))/6*(-parseInt(e(423))/7)+parseInt(e(424))/8*(-parseInt(e(436))/9)+-parseInt(e(374))/10*(-parseInt(e(498))/11))break;t.push(t.shift())}catch(A){t.push(t.shift())}}();class qA{constructor(e,t,A){var n;Lt(this,"viewer"),Lt(this,"CT"),Lt(this,"options"),Lt(this,ie),Lt(this,re),Lt(this,ae),Lt(this,"alpha"),Lt(this,ce),Lt(this,he),Lt(this,ue),Lt(this,ge),Lt(this,"activeVideoListener"),Lt(this,fe),Lt(this,we),Lt(this,Pe),Lt(this,de),Lt(this,"postProcess"),Lt(this,De),Lt(this,Be),Lt(this,le),Lt(this,ze),Lt(this,Me),Lt(this,"url"),Lt(this,"id"),Lt(this,xe),Lt(this,"cesiumObj");const s=RA;this[s(387)]=e,this[s(379)]=null,this.id=A.id||null,this.CT=new XA,this[s(371)]=t,this[s(484)](A);let o=this[s(464)]();this[s(407)]=o[s(407)]||.1,this[s(477)]=o[s(477)],this[s(442)]=o[s(442)],this[s(414)]=o.alpha||1,this[s(448)]=this.options[s(448)],this[s(490)]=(null==(n=this.options[s(448)])?void 0:n.src)||"",this.debugFrustum=Kt[s(388)](o[s(376)],!0),this[s(471)]=this.options[s(471)]||1,this[s(472)]=o[s(472)]||400,this[s(477)]&&this[s(442)]&&(this[s(476)](),this[s(485)](),this[s(408)](),this[s(433)](),this[s(403)](),this[s(387)][s(486)].primitives[s(437)](this))}[(ie=RA(407),re=RA(477),ae=RA(442),ce=RA(448),he=RA(376),ue=RA(471),ge=RA(472),fe=RA(373),we=RA(422),Pe=RA(382),de=RA(395),De=RA(468),Be=RA(400),le=RA(478),ze=RA(384),Me=RA(439),xe=RA(386),"setOptions")](e){const t=RA;let A;if(this[t(386)]=e,this[t(371)][t(487)]){let n=(e.x||0)/1e5,s=(e.y||0)/1e5;A=this[t(371)][t(502)](this[t(371)][t(392)][0]+n,this[t(371)].HIDEMODELLONLAT[1]+s)}else A=this.cesiumObj[t(502)](e.lon,e[t(500)]);let n={id:e.id||null,video:e[t(448)],position:{x:A[0],y:A[1],z:e[t(501)]||300},rotation:{x:e[t(445)]||0,y:e[t(470)]||0},near:e[t(407)]||0,far:e[t(495)]||1e4,fov:e[t(472)]||60,aspectRatio:e[t(471)]||1,alpha:e[t(414)]||1,debugFrustum:e[t(376)]||!1};this.options=n}[RA(453)](){const e=RA;return this.id||this.url.slice(this.url[e(425)]("/")+1)}getControlValue(){const e=RA;return{x:this[e(386)].x||0,y:this[e(386)].y||0,lon:this[e(386)][e(444)],lat:this[e(386)].lat,height:this.oldOpt[e(501)],rotateX:this.oldOpt.rotateX,rotateY:this[e(386)][e(470)],far:this.oldOpt.far,fov:this[e(386)][e(472)],aspectRatio:this[e(386)][e(471)],alpha:this.oldOpt[e(414)],debugFrustum:this[e(386)][e(376)]}}[RA(410)](){const e=RA;let t;if(this.cesiumObj[e(487)]){let A=(this.oldOpt.x||0)/1e5,n=(this[e(386)].y||0)/1e5;t=this[e(371)].lonlatToWGS84(this[e(371)].HIDEMODELLONLAT[0]+A,this.cesiumObj.HIDEMODELLONLAT[1]+n)}else t=this[e(371)].lonlatToWGS84(this.oldOpt[e(444)],this.oldOpt[e(500)]);this[e(371)][e(451)](t[0],t[1],this[e(386)].height+300,{isFly:!0,heading:0})}[RA(380)](){const e=RA;let t=[{name:"经度",value:e(444),type:"number",step:1e-5},{name:"纬度",value:e(500),type:e(391),step:1e-5}];this.cesiumObj[e(487)]&&(t=[{name:e(398),value:"x",type:"number",step:1},{name:"y偏移",value:"y",type:"number",step:1}]);let A=[{name:"高度",value:e(501),type:e(391)},{name:e(445),value:e(445),type:e(390),min:-180,max:180},{name:e(470),value:e(470),type:e(390),min:-180,max:180},{name:"距离",value:e(495),type:e(391)},{name:"张角",value:e(472),type:e(391)},{name:e(421),value:e(471),type:e(391),min:1e-6,step:.1},{name:"透明度",value:"alpha",type:"slider",min:0,max:1,step:.01},{name:"是否显示辅助线",value:e(376),type:e(494)}];return t=t[e(481)](A),t}[RA(464)](){const e=RA;let t=this.CT[e(383)]({longitude:+this[e(489)][e(442)].x,latitude:+this[e(489)][e(442)].y,altitude:+this.options[e(442)].z},{distance:this[e(489)].far,azimuth:+this[e(489)].rotation.y,elevation:+this[e(489)].rotation.x});return t=Kt[e(497)].fromDegrees(t[e(482)],t[e(492)],t[e(377)]),Kt[e(497)][e(504)