@vsleem-realsee-viewer/realsee-plugin 2.0.28 → 2.0.29

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/dist/index.mjs CHANGED
@@ -34611,7 +34611,7 @@ class yo {
34611
34611
  x.set(P.id, P), w = P;
34612
34612
  continue;
34613
34613
  }
34614
- P.position && w?.position && rn.distXY(P.position, w.position) >= v && (x.set(P.id, P), w = P);
34614
+ P.position && w?.position && rn.dist(P.position, w.position) >= v && (x.set(P.id, P), w = P);
34615
34615
  }
34616
34616
  const _ = new yo(this);
34617
34617
  return _.trackPoints = x, _.coordinate = t, _.realseeSetting = s, _;
@@ -34641,7 +34641,7 @@ class yo {
34641
34641
  getPointsByDistance(t, e) {
34642
34642
  if (!t.position || e <= 0) return [];
34643
34643
  const { x: s, y: r } = t.position;
34644
- return Array.from(this.trackPoints.values()).filter((a) => !a.position || !t.position || Math.abs(a.position.x - s) > e || Math.abs(a.position.y - r) > e ? !1 : rn.distXY(a.position, t.position) <= e);
34644
+ return Array.from(this.trackPoints.values()).filter((a) => !a.position || !t.position || Math.abs(a.position.x - s) > e || Math.abs(a.position.y - r) > e ? !1 : rn.dist(a.position, t.position) <= e);
34645
34645
  }
34646
34646
  /**
34647
34647
  * 根据数量获取附近的点
@@ -35296,7 +35296,7 @@ function yA(i, t) {
35296
35296
  if (ct.trackPoints?.size)
35297
35297
  for (const vt of ct.trackPoints.values()) {
35298
35298
  if (!vt.position) continue;
35299
- const ht = rn.distXY(at.position, vt.position);
35299
+ const ht = rn.dist(at.position, vt.position);
35300
35300
  if (ht === 0) {
35301
35301
  A = ht, nt = vt;
35302
35302
  break;
package/dist/index.umd.js CHANGED
@@ -3948,4 +3948,4 @@ void main() {
3948
3948
  * @preserve
3949
3949
  * gcoord 1.0.7, geographic coordinate library
3950
3950
  * Copyright (c) 2025 Jiulong Hu <me@hujiulong.com>
3951
- */const{sin:Tn,cos:TM,sqrt:fh,abs:Ca,PI:un}=Math,Kp=6378245,$p=.006693421622965823;function tm(n,t){return n>=72.004&&n<=137.8347&&t>=.8293&&t<=55.8271}function bM(n,t){let e=-100+2*n+3*t+.2*t*t+.1*n*t+.2*fh(Ca(n));return e+=(20*Tn(6*n*un)+20*Tn(2*n*un))*2/3,e+=(20*Tn(t*un)+40*Tn(t/3*un))*2/3,e+=(160*Tn(t/12*un)+320*Tn(t*un/30))*2/3,e}function AM(n,t){let e=300+n+2*t+.1*n*n+.1*n*t+.1*fh(Ca(n));return e+=(20*Tn(6*n*un)+20*Tn(2*n*un))*2/3,e+=(20*Tn(n*un)+40*Tn(n/3*un))*2/3,e+=(150*Tn(n/12*un)+300*Tn(n/30*un))*2/3,e}function CM(n,t){let e=AM(n-105,t-35),s=bM(n-105,t-35);const r=t/180*un;let a=Tn(r);a=1-$p*a*a;const l=fh(a);return e=e*180/(Kp/l*TM(r)*un),s=s*180/(Kp*(1-$p)/(a*l)*un),[e,s]}function qi(n){const[t,e]=n;if(!tm(t,e))return[t,e];const s=CM(t,e);return[t+s[0],e+s[1]]}function sr(n){const[t,e]=n;if(!tm(t,e))return[t,e];let[s,r]=[t,e],a=qi([s,r]),l=a[0]-t,h=a[1]-e;for(;Ca(l)>1e-6||Ca(h)>1e-6;)s-=l,r-=h,a=qi([s,r]),l=a[0]-t,h=a[1]-e;return[s,r]}const{sin:Pa,cos:Ra,atan2:em,sqrt:nm,PI:PM}=Math,La=PM*3e3/180;function rr(n){const[t,e]=n,s=t-.0065,r=e-.006,a=nm(s*s+r*r)-2e-5*Pa(r*La),l=em(r,s)-3e-6*Ra(s*La),h=a*Ra(l),u=a*Pa(l);return[h,u]}function or(n){const[t,e]=n,s=t,r=e,a=nm(s*s+r*r)+2e-5*Pa(r*La),l=em(r,s)+3e-6*Ra(s*La),h=a*Ra(l)+.0065,u=a*Pa(l)+.006;return[h,u]}const im=180/Math.PI,sm=Math.PI/180,Ia=6378137,Qi=20037508342789244e-9;function Da(n){return[n[0]*im/Ia,(Math.PI*.5-2*Math.atan(Math.exp(-n[1]/Ia)))*im]}function ka(n){const t=Math.abs(n[0])<=180?n[0]:n[0]-(n[0]<0?-1:1)*360,e=[Ia*t*sm,Ia*Math.log(Math.tan(Math.PI*.25+.5*n[1]*sm))];return e[0]>Qi&&(e[0]=Qi),e[0]<-Qi&&(e[0]=-Qi),e[1]>Qi&&(e[1]=Qi),e[1]<-Qi&&(e[1]=-Qi),e}const{abs:Ua}=Math,rm=[1289059486e-2,836237787e-2,5591021,348198983e-2,167804312e-2,0],om=[75,60,45,30,15,0],RM=[[1410526172116255e-23,898305509648872e-20,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-.03801003308653,173379812e-1],[-7435856389565537e-24,8983055097726239e-21,-.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,1026014486e-2],[-3030883460898826e-23,898305509983578e-20,.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,.32710905363475,685681737e-2],[-1981981304930552e-23,8983055099779535e-21,.03278182852591,40.31678527705744,.65659298677277,-4.44255534477492,.85341911805263,.12923347998204,-.04625736007561,448277706e-2],[309191371068437e-23,8983055096812155e-21,6995724062e-14,23.10934304144901,-.00023663490511,-.6321817810242,-.00663494467273,.03430082397953,-.00466043876332,25551644e-1],[2890871144776878e-24,8983055095805407e-21,-3068298e-14,7.47137025468032,-353937994e-14,-.02145144861037,-1234426596e-14,.00010322952773,-323890364e-14,826088.5]],LM=[[-.0015702102444,111320.7020616939,0x60e374c3105a3,-0x24bb4115e2e164,0x5cc55543bb0ae8,-0x7ce070193f3784,0x5e7ca61ddf8150,-0x261a578d8b24d0,0x665d60f3742ca,82.5],[.0008277824516172526,111320.7020463578,6477955746671607e-7,-4082003173641316e-6,1077490566351142e-5,-1517187553151559e-5,1205306533862167e-5,-5124939663577472e-6,9133119359512032e-7,67.5],[.00337398766765,111320.7020202162,4481351045890365e-9,-2339375119931662e-8,7968221547186455e-8,-1159649932797253e-7,9723671115602145e-8,-4366194633752821e-8,8477230501135234e-9,52.5],[.00220636496208,111320.7020209128,51751.86112841131,3796837749470245e-9,992013.7397791013,-122195221711287e-8,1340652697009075e-9,-620943.6990984312,144416.9293806241,37.5],[-.0003441963504368392,111320.7020576856,278.2353980772752,2485758690035394e-9,6070.750963243378,54821.18345352118,9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-.0003218135878613132,111320.7020701615,.00369383431289,823725.6402795718,.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,.37238884252424,7.45]];function am(n,t,e){const s=Ua(t)/e[9];let r=e[0]+e[1]*Ua(n),a=e[2]+e[3]*s+e[4]*Math.pow(s,2)+e[5]*Math.pow(s,3)+e[6]*Math.pow(s,4)+e[7]*Math.pow(s,5)+e[8]*Math.pow(s,6);return r*=n<0?-1:1,a*=t<0?-1:1,[r,a]}function Oa(n){const[t,e]=n;let s=[];for(let r=0;r<om.length;r++)if(Ua(e)>om[r]){s=LM[r];break}return am(t,e,s)}function Na(n){const[t,e]=n;let s=[];for(let r=0;r<rm.length;r++)if(Ua(e)>=rm[r]){s=RM[r];break}return am(t,e,s)}function ji(n,t){if(!n)throw new Error(t)}function lm(n){return!!n&&Object.prototype.toString.call(n)==="[object Array]"}function cm(n){return!isNaN(Number(n))&&n!==null&&!lm(n)}function Un(...n){const t=n.length-1;return function(...e){let s=t,r=n[t].apply(null,e);for(;s--;)r=n[s].call(null,r);return r}}function hm(n,t,e=!1){if(n===null)return;let s,r,a,l,h,u,d=0,p=0,m,_;const{type:E}=n,w=E==="FeatureCollection",S=E==="Feature",v=w?n.features.length:1;for(let g=0;g<v;g++){m=w?n.features[g].geometry:S?n.geometry:n,_=m?m.type==="GeometryCollection":!1,u=_?m.geometries.length:1;for(let R=0;R<u;R++){let P=0,T=0;if(l=_?m.geometries[R]:m,l===null)continue;const U=l.type;switch(d=e&&(U==="Polygon"||U==="MultiPolygon")?1:0,U){case null:break;case"Point":if(h=l.coordinates,t(h,p,g,P,T)===!1)return!1;p++,P++;break;case"LineString":case"MultiPoint":for(h=l.coordinates,s=0;s<h.length;s++){if(t(h[s],p,g,P,T)===!1)return!1;p++,U==="MultiPoint"&&P++}U==="LineString"&&P++;break;case"Polygon":case"MultiLineString":for(h=l.coordinates,s=0;s<h.length;s++){for(r=0;r<h[s].length-d;r++){if(t(h[s][r],p,g,P,T)===!1)return!1;p++}U==="MultiLineString"&&P++,U==="Polygon"&&T++}U==="Polygon"&&P++;break;case"MultiPolygon":for(h=l.coordinates,s=0;s<h.length;s++){for(T=0,r=0;r<h[s].length;r++){for(a=0;a<h[s][r].length-d;a++){if(t(h[s][r][a],p,g,P,T)===!1)return!1;p++}T++}P++}break;case"GeometryCollection":for(s=0;s<l.geometries.length;s++)if(hm(l.geometries[s],t,e)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}var Be;(function(n){n.WGS84="WGS84",n.WGS1984="WGS84",n.EPSG4326="WGS84",n.GCJ02="GCJ02",n.AMap="GCJ02",n.BD09="BD09",n.BD09LL="BD09",n.Baidu="BD09",n.BMap="BD09",n.BD09MC="BD09MC",n.BD09Meter="BD09MC",n.EPSG3857="EPSG3857",n.EPSG900913="EPSG3857",n.EPSG102100="EPSG3857",n.WebMercator="EPSG3857",n.WM="EPSG3857"})(Be||(Be={}));const IM={to:{[Be.GCJ02]:qi,[Be.BD09]:Un(or,qi),[Be.BD09MC]:Un(Oa,or,qi),[Be.EPSG3857]:ka}},DM={to:{[Be.WGS84]:sr,[Be.BD09]:or,[Be.BD09MC]:Un(Oa,or),[Be.EPSG3857]:Un(ka,sr)}},kM={to:{[Be.WGS84]:Un(sr,rr),[Be.GCJ02]:rr,[Be.EPSG3857]:Un(ka,sr,rr),[Be.BD09MC]:Oa}},UM={to:{[Be.WGS84]:Da,[Be.GCJ02]:Un(qi,Da),[Be.BD09]:Un(or,qi,Da),[Be.BD09MC]:Un(Oa,or,qi,Da)}},OM={to:{[Be.WGS84]:Un(sr,rr,Na),[Be.GCJ02]:Un(rr,Na),[Be.EPSG3857]:Un(ka,sr,rr,Na),[Be.BD09]:Na}};var NM={WGS84:IM,GCJ02:DM,BD09:kM,EPSG3857:UM,BD09MC:OM};function BM(n,t,e){if(ji(!!n,"The args[0] input coordinate is required"),ji(!!t,"The args[1] original coordinate system is required"),ji(!!e,"The args[2] target coordinate system is required"),t===e)return n;const s=NM[t];ji(!!s,`Invalid original coordinate system: ${t}`);const r=s.to[e];ji(!!r,`Invalid target coordinate system: ${e}`);const a=typeof n;if(ji(a==="string"||a==="object",`Invalid input coordinate type: ${a}`),a==="string")try{n=JSON.parse(n)}catch{throw new Error(`Invalid input coordinate: ${n}`)}let l=!1;lm(n)&&(ji(n.length>=2,`Invalid input coordinate: ${n}`),ji(cm(n[0])&&cm(n[1]),`Invalid input coordinate: ${n}`),n=n.map(Number),l=!0);const h=r;return l?h(n):(hm(n,u=>{[u[0],u[1]]=h(u)}),n)}const um=Object.assign(Object.assign({},Be),{CRSTypes:Be,transform:BM});class ar{id="";coordinateId=0;coordinate=new xt.Coordinate;trackPoints=new Map;trackMarkers=new Map;relativePosition;projectId;createTime;color;type;panoramaSize;realseeSetting;data;constructor(t){this.setState(t)}setState(t){Object.assign(this,t)}static async parsedModel(t,e,s){const{coordinateId:r,relativePosition:a,trackList:l,markerList:h,...u}=t,d=xt.utils.cloneDeep({...u,coordinateId:r,relativePosition:a});if(r&&e){let E=e?.findCsById(r);if(xt.RelativeMap.isValid(a)){const w=xt.RelativeMap.toParse(a);E=new xt.Coordinate({parent:E,type:xt.CoordinateType.Data,relativeMap:w})}d.coordinate=E}const{id:p,coordinate:m,color:_}=d;if(l?.length&&m&&s){const E=await I_(l?.[0]?.img,s);d.panoramaSize=E;const w=new Map;for(const S of l){const v=gs.parsedModel({...S,patrolId:p,color:_},m,E,s);v.id&&w.set(v.id,new gs(v))}d.trackPoints=w}if(h?.length&&e){const E=new Map;for(const w of h){const S=no.parsedModel({...w,patrolId:p},e);S.id&&E.set(S.id,new no(S))}d.trackMarkers=E}return d}hasPoint(t){return this?.trackPoints?.has(t)}getPoint(t){return this?.trackPoints?.get(t)}getNearPoint(t){const e=Array.from(this?.trackPoints?.values()),s=e[0],r=e[e.length-1];return t<=(s.rawIndex??0)?s:t>=(r.rawIndex??0)?r:e.find(a=>(a.rawIndex??0)>=t)}hasMarker(t){return this?.trackMarkers?.has(t)}getMarker(t){return this?.trackMarkers?.get(t)}getPointMarkers(t){return Array.from(this?.trackMarkers?.values()).filter(e=>e.pointId===t)}projection(t,e,s){const{coordinate:r,trackPoints:a,trackMarkers:l}=this||{};if(!r||!a?.size)return;const h=r.getDestRelativeMap(t),u=r.getDestRelativeMap(e);if(!h||!u)return;const d=Array.from(l?.values()),p={srcToDstRelativeMap:h,srcCoordinate:r,dstCoordinate:t},m={srcToDstRelativeMap:u,srcCoordinate:r,dstCoordinate:e},{pointLax:_=0,trackCRSType:E}=s||{},w=new Map;let S;for(const g of a.values()){const R=g.projection(p,m);if(!R)continue;if(R.index=w.size,r.modelType===xt.CoordinateModelType.GeoModel){const{point:T}=R;if(E&&T){const[U,B]=um.transform([T.lon,T.lat],um.WGS84,E);R.point=new xt.Point({...T,lon:U,lat:B})}}if(_<=0){w.set(R.id,R);continue}if(d.find(T=>T.pointId===R.id)){w.set(R.id,R),S=R;continue}if(!w.size){w.set(R.id,R),S=R;continue}R.position&&S?.position&&xt.Point.distXY(R.position,S.position)>=_&&(w.set(R.id,R),S=R)}const v=new ar(this);return v.trackPoints=w,v.coordinate=t,v.realseeSetting=s,v}getPathMarkers(t){const{pointType:e=Aa.NUMBER,pointNumber:s=5,pointDistance:r=5}=this.realseeSetting||{},a=this.getPoint(t?.id??"");if(!a)return[];let l=[];return e===Aa.NUMBER?l=this.getPointsByNumber(a,s):e===Aa.DISTANCE&&(l=this.getPointsByDistance(a,r)),this.createPathMarkers(a,l)}getPointsByDistance(t,e){if(!t.position||e<=0)return[];const{x:s,y:r}=t.position;return Array.from(this.trackPoints.values()).filter(a=>!a.position||!t.position||Math.abs(a.position.x-s)>e||Math.abs(a.position.y-r)>e?!1:xt.Point.distXY(a.position,t.position)<=e)}getPointsByNumber(t,e){const s=Array.from(this.trackPoints.values()),r=s.findIndex(h=>h.id===t?.id);if(r===-1)return[];const a=Math.max(0,r-e),l=Math.min(s.length,r+e+1);return s.slice(a,l)}createPathMarkers(t,e){const{pathPin:s,pathRedPin:r}=this.realseeSetting||{},a=t.position;if(!a)return[];const l=[];for(const h of e){const u=h.position;if(!u)continue;const{d,yaw:p,pitch:m}=gs.toSphericalCoord(a,u);if(d===0)continue;const _=Math.min(120/(d/2e3),120),E=this.getPointMarkers(h.id).length>0;l.push({id:h.id,image:E?r:s,position:new xt.Position({yaw:p,pitch:m}),data:{...h,markerType:dh.pin},size:{width:_,height:_/2},hoverScale:{amount:1},opacity:.8,anchor:"center center"})}return l}getViolationMarkers(t){if(!t)return[];const e=this.getPointMarkers(t.id);return this.createViolationMarkers(e)}createViolationMarkers(t){return t.map((e,s)=>({id:e.id,image:e.markerIcon,position:e.perspective||new xt.Position({yaw:xt.Point.toDegrees(10)*s,pitch:0}),data:{...e,markerType:e.markerType},size:{width:50,height:50},hoverScale:{amount:1},opacity:.8,anchor:"bottom center"}))}getPreloadPoints(t){if(!t)return[];const{preloadStep:e=5}=this.realseeSetting||{},s=Array.from(this.trackPoints.values()),r=s.findIndex(h=>h.id===t?.id);if(r===-1)return[];const a=Math.max(0,r-e),l=Math.min(s.length,r+e+1);return s.slice(a,l)}}const{cloneDeep:dm,deepMergeProps:FM,getDiffProps:zM}=xt.utils;function HM(n,t,e,s,r){const a=y.ref(),l=y.ref(!1),h=y.ref(new Set),u=y.ref(new Set),d=y.ref(dm(Hh)),p=y.computed(()=>d.value),m=y.ref(),_=y.computed(()=>{const{currentRecord:pt}=y.unref(t)||{};return Array.from(pt?.trackPoints?.values()||[])});y.watch(()=>dm(n.value?.viewer),E,{immediate:!0,deep:!0});function E(pt,Rt){const Y=zM(pt,Rt);S(Y)}function w(){return p.value}function S(pt){pt&&FM(d.value,pt)}function v(){y.unref(e)?.container?.addEventListener("mousedown",P),y.unref(e)?.container?.addEventListener("touchstart",P),y.unref(e)?.container?.addEventListener("mouseover",T),y.unref(e)?.container?.addEventListener("mouseout",U),y.unref(e)?.addEventListener(jt.ReadyEvent.type,pt=>{r("ready",pt)}),y.unref(e)?.addEventListener(jt.SizeUpdatedEvent.type,pt=>{r("size-updated",pt)}),y.unref(e)?.addEventListener(jt.PanoramaLoadedEvent.type,pt=>{r("panorama-loaded",pt)}),y.unref(e)?.addEventListener(jt.PanoramaErrorEvent.type,pt=>{r("panorama-error",pt)}),y.unref(e)?.addEventListener(jt.ClickEvent.type,pt=>{r("click",pt)}),y.unref(e)?.addEventListener(jt.PositionUpdatedEvent.type,pt=>{r("position-updated",pt)}),y.unref(e)?.addEventListener(jt.ZoomUpdatedEvent.type,pt=>{r("zoom-updated",pt)})}function g(){}function R(pt){r("panorama-complete",pt)}function P(pt){r("mousedown",pt)}function T(pt){Z(!0)}function U(pt){Z(!1)}async function B(pt,Rt){if(l.value){a.value={currentPoint:pt,options:Rt};return}try{l.value=!0;const{loadingPh:Y=!1}=p.value,{panorama:st,placeholderImg:ft}=pt;ft&&!Y?(await e.value?.setPanorama(ft,Rt),await e.value?.setPanorama(st,{showLoader:!1})):await e.value?.setPanorama(st,Rt),await N(st)}catch(Y){console.error(Y)}finally{l.value=!1,D(),z(),R(a.value)}}async function N(pt){try{if(xt.utils.isObject(pt)){const Rt=pt.tileUrl(Math.floor(pt.cols/2),0);if(Rt){const Y=await fetch(Rt);if(Y.ok)return await Y.blob()}}}catch{}}async function z(){if(await y.nextTick(),a.value){const{currentPoint:pt,options:Rt}=a.value;a.value=void 0,B(pt,Rt)}}async function D(){let{currentPoint:pt,currentRecord:Rt}=y.unref(t)||{};if(pt&&Rt){const Y=Rt.getPreloadPoints(pt);for(const st of Y)if(!h.value.has(st.id)&&!u.value.has(st.id)){u.value.add(st.id);const{panorama:ft,placeholderImg:Dt}=st||{},Ut=[];if(xt.utils.isObject(ft)){const zt=ft.tileUrl(Math.floor(ft.cols/2),0);Ut.push(fetch(ft.baseUrl),fetch(zt))}else Ut.push(fetch(ft)),Dt&&Ut.push(fetch(Dt));Promise.all(Ut).then(()=>{h.value.add(st.id)}).finally(()=>{u.value.delete(st.id)}).catch(zt=>{console.error(zt)})}}}function M(){k()}function k(){const{handleViolationMarkerFn:pt,handlePathMarkerFn:Rt}=y.unref(n)?.marker||{},{currentPoint:Y,currentRecord:st,currentMarker:ft}=y.unref(t)||{};if(Y&&st){const Dt=st?.getPathMarkers(Y)?.map(ce=>Rt?.(ce)||ce),Ut=st?.getViolationMarkers(Y)?.map(ce=>pt?.(ce)||ce),zt=[...Dt,...Ut];if(y.unref(s)?.setMarkers(zt),ft){const ce=Ut.find(at=>at.data.id===ft.id);if(!ce)return;y.unref(s)?.gotoMarker(ce.id,100)}}}function Z(pt){S({mouseover:pt})}function J(pt){S({mousedown:pt})}function V(){return y.unref(d)?.mouseover??!1}function $(){return y.unref(d)?.mousedown??!1}function K(pt){S({moveDirection:pt})}function ut(pt){m.value=pt}async function G(){const{currentPoint:pt}=y.unref(t)||{};if(pt){const Rt=Tt(pt);m.value=void 0,await B(pt,Rt)}}function Tt(pt){const{defaultTransition:Rt}=p.value,Y={showLoader:!1,transition:Rt},st=Mt(pt);return{...Y,...m.value,...st?{position:st}:{}}}function lt(pt){return Math.max(50,Math.min(1e3,pt-100))}function Mt(pt,Rt){const{viewMode:Y,moveDirection:st=1,moveThresh:ft=0}=p.value;if(!pt||Y===ir.Auto||st===Yi.Stationary)return;const Dt=e.value?.getPosition()?.yaw??0,Ut=Rt??ft;if(Y===ir.FollowView){const zt=pt.point.yaw??0;return Math.abs(zt-Dt)>=Ut?{yaw:zt,pitch:0}:void 0}if(Y===ir.FollowRoad){const{index:zt=0,point:ce}=pt,at=_.value[zt+st]?.point;if(!ce||!at)return;const C=gs?.toSphericalCoord(ce,at);if(!C)return;const it=C.yaw??0;if(Math.abs(it-Dt)>=Ut)return{yaw:it,pitch:0}}}return{getProps:p,viewerAction:{getState:w,setState:S,isMouseover:V,isMousedown:$,setMousedown:J,setMouseover:Z,setPanoramaPath:B,setViewerStatus:ut,setMoveDirection:K,updateMarkers:k,preloadPanorama:D,loadMarkers:M,updateViewer:G,getPanoramaOptions:Tt,getTransitionSpeed:lt,getMovePosition:Mt},handleViewerEvents:v,handleUninstallEvents:g}}const{cloneDeep:fm,deepMergeProps:VM,getDiffProps:GM}=xt.utils;function WM(n,t,e,s,r){const a=y.ref(fm(Gh)),l=y.computed(()=>a.value);y.watch(()=>fm(n.value?.marker),h,{immediate:!0,deep:!0});function h(_,E){const w=GM(_,E);u(w)}function u(_){_&&VM(a.value,_)}function d(){y.unref(s)?.addEventListener(xp.SelectMarkerEvent.type,p)}async function p(_){const{id:E,data:w}=_.marker.config,{onPointChange:S,onMarkerChange:v}=l.value;w.markerType==dh.pin?(await S?.(_),y.unref(t)?.selectPoint(w),r("select-point",w)):(await v?.(_),y.unref(s)?.gotoMarker(E,500),y.unref(t)?.selectMarker(w),r("select-marker",w))}return{getProps:l,markerAction:{},handleMarkerEvents:d}}const ZM={class:"vsleem-viewer"},pm=Pn(y.defineComponent({name:"Viewer",__name:"Viewer",emits:["register","ready","click","mousedown","size-updated","zoom-updated","position-updated","panorama-loaded","panorama-error","panorama-complete","select-point","select-marker"],setup(n,{expose:t,emit:e}){const s=e,r=y.ref(),a=y.ref(),l=y.ref(""),h=y.ref(),u=y.ref(),d=y.computed(()=>y.unref(y.unref(h))),p=y.computed(()=>y.unref(y.unref(u))),{getProps:m,handleViewerEvents:_,viewerAction:E}=HM(d,p,r,a,s),{handleMarkerEvents:w,markerAction:S}=WM(d,p,r,a,s);y.watch(()=>y.unref(p)?.ready,v,{immediate:!0}),y.onMounted(U),y.onBeforeUnmount(P);function v(B){B&&(g(),_(),w())}function g(){const{currentPoint:B}=p.value;if(y.unref(r)||!B)return;const N=R(),z=new HS(N),D=z.getPlugin(jp);r.value=Object.assign(z,E),a.value=Object.assign(D,S)}function R(){const{currentPoint:B}=p.value,N=E.getMovePosition(B,0);N&&E.setState({defaultYaw:N.yaw,defaultPitch:N.pitch});let z;xt.utils.isObject(B?.panorama)&&(z=$S);const{viewMode:D,moveThresh:M,moveDirection:k,mousedown:Z,mouseover:J,loadingPh:V,...$}=m.value;return{...$,container:l.value,panorama:B?.panorama,adapter:z,plugins:[[jp,[]]]}}function P(){r.value?.destroy()}function T(B,N){h.value=B,u.value=N}function U(){s("register",r,a,T)}return t({getViewer:()=>y.unref(r),getMarker:()=>y.unref(a)}),(B,N)=>(y.openBlock(),y.createElementBlock("div",ZM,[y.createElementVNode("div",{ref_key:"viewerElRef",ref:l},null,512)]))}}),[["__scopeId","data-v-3371c619"]]);function XM(n,t){const e=y.ref(),s=y.ref(!1);function r(l,h){y.unref(s)||(e.value=l,y.unref(n)&&y.unref(t)&&h(n,t),s.value=!0)}function a(){return y.unref(y.unref(e))}return{register:r,getMap:a}}function YM(n,t){const e=y.ref(),s=y.ref(!1);function r(l,h){y.unref(s)||(e.value=l,y.unref(n)&&y.unref(t)&&h(n,t),s.value=!0)}function a(){return y.unref(y.unref(e))}return{register:r,getPlaybar:a}}function qM(n,t){return xt.http.request({url:"/project/jssdk/patrolRecord/detailNew",method:xt.RequestMethod.GET,params:n},t)}function QM(n,t){const{setReferPoint:e,setRealseeState:s}=t,r=y.ref(),a=y.ref(),l=y.ref(),h=y.reactive(new Map),u=y.ref(!1),d=y.ref(!1),p=y.ref(),m=y.ref(),_=y.ref(),E=y.ref(),w=y.computed(()=>a.value?.findCsById(p.value)),S=y.computed(()=>w.value?.findParentSpace()),v=y.computed(()=>xt.Coordinate.getCommonCoordinate(Array.from(h.values(),at=>at.coordinate))),g=y.computed(()=>h.get(m.value??"")),R=y.computed(()=>N.value.get(m.value??"")),P=y.computed(()=>g.value?.getPoint(_.value??"")),T=y.computed(()=>R.value?.getPoint(_.value??"")),U=y.computed(()=>R.value?.getMarker(E.value??"")),B=y.computed(()=>R.value?.getPointMarkers(T.value?.id??"")||[]),N=y.computed(()=>{const at=new Map;if(!w.value||!v.value)return at;for(const C of h.values()){const it=C.projection(w.value,v.value,n.value.realseeSetting);it&&at.set(it.id,it)}return at}),z=y.computed(()=>{const at=new Map;if(!N.value.size)return at;for(const C of N.value.values()){const{trackMarkers:it}=C;for(const ct of it.values()){const _t=C.getPoint(ct.pointId);if(_t){const ht=at.get(_t)??[];ht.push(ct),ht.length===1&&at.set(_t,ht)}}}return at});async function D(at){const{projectId:C,patrolId:it}=at||{},ct=it?Array.isArray(it)?it:[it]:[];try{if(!C||!ct.length)throw new xt.AppError(ze.StoreMissParams,"缺少必要的查询参数");if(u.value=!0,C!=a.value?.projectId){const[Nt,pe]=await Promise.all([xt.DataSource.getProjectDetail(C),xt.DataSource.getCoordinateTree(C)]);if(!Nt)throw new xt.AppError(ze.StoreNoProjectDetail,`未查询到项目ID为 ${C} 的项目详情`);const{tileLayers:ge=[]}=n.value.map||{};if(ge.length){const O=ge[ge.length-1]||{},b=xt.utils.getMapProvider(O?.url),Q=b?.CRSTypes?.[Nt.mapArea??0];Q&&Q!==xt.CRSTypes.WGS84&&(Nt.CRSType=Q,Nt.mapType=b.name,s({realseeSetting:{trackCRSType:Q}}))}if(r.value=Nt,!pe)throw new xt.AppError(ze.StoreNoCSTree,`未查询到项目ID为 ${C} 的坐标系树`);a.value=pe}const[_t,...ht]=ct,Ot=await M(_t);if(!Ot)return;const yt=Ot.coordinate.findChildModel([xt.CoordinateModelType.CADModel,xt.CoordinateModelType.GeoModel]);if(yt?.modelType===xt.CoordinateModelType.CADModel&&!yt?.modelValue)throw new xt.AppError(ze.StroeNoModelValue,`没有找到当前坐标系${yt?.id||""}的modelKey字段值`);l.value=yt?.getMappedCsTree(),h.clear(),h.set(Ot.id,Ot),Z({modelCsId:yt?.id,...at}),pt(ht)}catch(_t){console.error(_t),n.value.fetchError?.(_t)}finally{u.value=!1}}async function M(at){try{let C=await qM({...n.value.fetchParams,id:at});if(C=await n.value.handleResponseFn?.(C)||C,!C)throw new xt.AppError(ze.StoreNoRecord,`未查询到ID为 ${at} 的巡检记录`);const it=st();C.color=C.color||it;const{appSetting:ct}=n.value,_t=await ar.parsedModel(C,a.value,ct);if(!_t?.trackPoints?.size||!_t.coordinate)throw new xt.AppError(ze.StoreInvRecord,`ID为 ${at} 是无效的巡检记录`);let ht;if(u.value?ht=a.value?.findCsById(_t.coordinateId):l.value&&(ht=l.value.findCsById(_t.coordinateId)),!ht)throw new xt.AppError(ze.StoreRecordOutCSTree,`ID为 ${at} 的巡检记录不在映射坐标系树内`);if(ht?.modelType===xt.CoordinateModelType.GeoModel){const yt=a.value?.findClosestModel(xt.CoordinateModelType.GeoModel);if(yt&&!yt.relativeMap?.refPoint){const Nt=Array.from(_t.trackPoints.values()),pe=new xt.GeoPoint(Nt[0].point),ge=new xt.RelativeMap({refPoint:pe});yt.setOptions({relativeMap:ge})}}const Ot=new ar(_t);return n.value.fetchSuccess?.(Ot,a.value),Ot}catch(C){console.error(C),n.value.fetchError?.(C)}}function k(at=!1){d.value=at}function Z(at){const{patrolId:C,pointId:it,modelCsId:ct}=at,_t=C?Array.isArray(C)?C:[C]:[],ht=h.get(_t[0]);if(ht){const Ot=Array.from(ht.trackPoints.values());m.value=ht.id,_.value=it??Ot[0]?.id}ct&&(p.value=ct)}function J(at){const{id:C}=at;if(l.value?.findCsById(C)?.type===xt.CoordinateType.Model)p.value=C;else throw new xt.AppError(ze.StoreNoCSByID,`ID为 ${C} 的模型坐标系不在映射坐标系树内`)}function V(at){const C=Mt(at.id??"");if(!C)throw new xt.AppError(ze.StoreSelectNoRecord,`未找到ID为 ${at.id} 的巡检记录`);const it=Array.from(C.trackPoints.values());m.value=C.id,_.value=it[0]?.id}function $(at){const{patrolId:C,id:it=""}=at,ct=Mt(C??"");if(!ct)throw new xt.AppError(ze.StoreSelectNoRecord,`未找到轨迹点patrolId为 ${C} 的巡检记录`);if(!ct?.hasPoint(it))throw new xt.AppError(ze.StoreSelectNoPoint,`未找到ID为 ${it} 的轨迹点`);m.value=ct.id,_.value=it}function K(at){if(at){const{patrolId:C,id:it=""}=at,ct=Mt(C??"");if(!ct)throw new xt.AppError(ze.StoreSelectNoRecord,`未找到问题标记patrolId为 ${C} 的巡检记录`);if(!ct?.hasMarker(it))throw new xt.AppError(ze.StoreSelectNoMarker,`未找到ID为 ${it} 的问题标记`);E.value=it}else E.value=void 0}function ut(at){const C=h.get(at.patrolId);if(!C)throw new xt.AppError(ze.StoreSelectNoRecord,`未找到问题标记patrolId为 ${at.patrolId} 的巡检记录`);C.trackMarkers.set(at.id,at)}function G(at){const C=h.get(at.patrolId??"");if(!C)throw new xt.AppError(ze.StoreSelectNoRecord,`未找到问题标记patrolId为 ${at.patrolId} 的巡检记录`);C.trackMarkers.delete(at.id??"")}function Tt(at){const C=h.get(at.patrolId??"");if(!C)throw new xt.AppError(ze.StoreSelectNoRecord,`未找到问题标记patrolId为 ${at.patrolId} 的巡检记录`);const it=C.trackMarkers.get(at.id??"");if(!it)throw new xt.AppError(ze.StoreSelectNoMarker,`未找到ID为 ${at.id} 的问题标记`);Object.assign(it,at)}function lt(at){return N.value.has(at)}function Mt(at){return N.value.get(at)}async function Gt(at){if(!h.has(at)){const C=await M(at);if(C){const it=new ar(C);return h.set(it.id,it),it}}}async function pt(at){if(at.length)for(const C of at)await Gt(C)}function Rt(at){if(R.value?.id===at)throw new xt.AppError(ze.StoreSelectedMarker,`ID为 ${at} 的巡检记录正在被使用,无法删除`);return h.delete(at)}async function Y(at){const C=h.get(at.id??"");if(!C)throw new xt.AppError(ze.StoreSelectNoRecord,`未找到ID为 ${at.id} 的巡检记录`);Object.assign(C,at)}function st(){const at=u.value?[]:Array.from(h.values()).map(it=>it.color?.toUpperCase?.());return(n.value.realseeSetting?.trackColorRange||[]).find(it=>!at.includes(it?.toUpperCase?.()))}function ft(){return w.value?.findClosestModel(xt.CoordinateModelType.BIMModel)}function Dt(at){let C=1/0,it;if(at.position){for(const ct of N.value.values())if(ct.trackPoints?.size)for(const _t of ct.trackPoints.values()){if(!_t.position)continue;const ht=xt.Point.distXY(at.position,_t.position);if(ht===0){C=ht,it=_t;break}ht<C&&(C=ht,it=_t)}if(it)return it}}function Ut(at){if(!w.value||!v.value||!at)return;const C=a.value?.findCsById(at.coordinate.id);if(!C)return;const it=C?.getDestRelativeMap(w.value),ct=C?.getDestRelativeMap(v.value);if(!it||!ct)return;const _t={srcToDstRelativeMap:it,srcCoordinate:C,dstCoordinate:w.value},ht={srcToDstRelativeMap:ct,srcCoordinate:C,dstCoordinate:v.value};return at.projection(_t,ht)}function zt(){return ce.value}const ce=y.computed(()=>({ready:d.value,rawDataSource:h,currentProject:r.value,coordinateTree:a.value,mappedCoordinateTree:l.value,dataSource:N.value,comCoordinate:v.value,currentModel:w.value,currentSpace:S.value,currentRawRecord:g.value,currentRecord:R.value,currentRawPoint:P.value,currentPoint:T.value,currentMarker:U.value,currentPointMarkers:B.value,groupedMarkers:z.value,reload:D,fetchRecord:M,selectModel:J,selectRecord:V,selectPoint:$,selectMarker:K,setReferPoint:e,addMarker:ut,removeMarker:G,updateMarker:Tt,hasRecord:lt,getRecord:Mt,addRecord:Gt,batchAddRecords:pt,removeRecord:Rt,updateRecord:Y,findClosestBIMModel:ft,findClosestPoint:Dt,normalizeToModelPoint:Ut}));return{storeRef:ce,getStore:zt,setReady:k}}function jM(n,t){const e=y.ref(),s=y.ref(),r=y.ref(!1);function a(u,d,p){y.unref(r)||(e.value=u,s.value=d,y.unref(n)&&y.unref(t)&&p(n,t),r.value=!0)}function l(){return y.unref(y.unref(e))}function h(){return y.unref(y.unref(s))}return{register:a,getViewer:l,getMarker:h}}const{cloneDeep:mm,deepMergeProps:JM,getDiffProps:KM}=xt.utils;function gm(n,t){const e=y.ref(mm(Wh)),s=y.computed(()=>e.value);y.watch(()=>mm(n),v,{immediate:!0,deep:!0}),y.watch(()=>s.value.searchInfo,()=>T(r.value.ready),{deep:!0});const{storeRef:r,getStore:a,setReady:l}=QM(s,{setReferPoint:B,setRealseeState:R}),{register:h,getViewer:u,getMarker:d}=jM(s,r),{register:p,getMap:m}=XM(s,r),{register:_,getPlaybar:E}=YM(s,r);y.onMounted(w),y.onBeforeUnmount(S);async function w(){const{appSetting:N,immediate:z}=y.unref(s);N&&xt.http.setRequestGlobalConfig(N),z&&(await T(!0),setTimeout(P,0))}function S(){t?.("destroy")}function v(N,z){const D=KM(N,z);R(D)}function g(){return s.value}function R(N){N&&JM(e.value,N)}function P(){l(!0),t?.("ready")}async function T(N){const{searchInfo:z}=s.value;N&&z&&(await r.value?.reload(z),t?.("reload"))}function U(){const N=xt.utils.cloneDeep(s.value),z=a();if(z){const{currentModel:J,currentRecord:V,currentPoint:$}=z,{projectId:K=0,id:ut=""}=V||{},G=$?.id,Tt=J?.id;N.searchInfo={projectId:K,patrolId:ut,pointId:G,modelCsId:Tt}}const D=u();if(D){const J=xt.utils.cloneDeep(s.value.viewer),V=D.getPosition(),$=D.getZoomLevel(),{yaw:K,pitch:ut}=V||{};N.viewer={...J,defaultZoomLvl:$,defaultYaw:K,defaultPitch:ut}}d()&&(N.marker=xt.utils.cloneDeep(s.value.marker));const k=m();if(k){const{size:J,radarAngle:V,...$}=k.getState()||{};N.map={...$}}const Z=E();if(Z){const{showPlay:J,showSpeed:V,...$}=Z.getState()||{};N.playbar={...$,showPlay:!1,showSpeed:!1}}return N}async function B(N,z){const D=a();if(D){const M=u();if(!M)return;const{viewMode:k}=M?.getState()||{};if(k!==ir.Auto)throw new xt.AppError(ze.ViewModeNoAuto,"视图预览不是自由模式");const Z=D.normalizeToModelPoint(N);if(!Z?.point)return;const J=D.findClosestPoint(Z);if(!J?.point)return;const{zoom:V=0}=z,{yaw:$=0,pitch:K=0}=z.position||{},G={yaw:Z.point.yaw-J.point.yaw+$,pitch:K};D?.selectPoint?.(J),M.setViewerStatus({position:G,zoom:V}),D.currentPoint?.id===J.id&&M.updateViewer()}}return{getProps:s,storeRef:r,registerViewer:h,registerMap:p,registerPlaybar:_,getStore:a,getViewer:u,getMarker:d,getPlaybar:E,getMap:m,getOptions:U,getState:g,setState:R}}function $M(n,t,e,s,r){const a=y.computed(()=>n.value.ready&&!!n.value.currentRecord),l=y.computed(()=>{const{dataSource:E,coordinateTree:w,mappedCoordinateTree:S,currentSpace:v,currentModel:g,currentRecord:R,currentPoint:P,currentMarker:T,currentPointMarkers:U}=n.value||{};return{dataSource:E,coordinateTree:w,mappedCoordinateTree:S,currentSpace:v,currentModel:g,currentRecord:R,currentPoint:P,currentPointMarkers:U,currentMarker:T}});y.watch(()=>n.value?.currentModel?.id,h,{immediate:!0}),y.watch(()=>n.value?.currentRecord?.id,u,{immediate:!0}),y.watch(()=>n.value?.currentPoint?.id,d,{immediate:!0}),y.watch(()=>n.value?.currentRecord?.trackPoints.size,m,{immediate:!0});function h(E){E&&r("change-model",n.value?.currentModel)}function u(E){E&&r("change-record",n.value?.currentRecord)}function d(E,w){E&&(p(E,w),r("change-point",n.value?.currentPoint))}function p(E,w){_(w),t()?.updateViewer?.()}function m(E){if(E){const{currentRecord:w,currentRawPoint:S,selectPoint:v}=n.value;if(w?.id===S?.patrolId){const g=w?.getNearPoint(S?.rawIndex||0);g&&v?.(g)}}}function _(E){const w=t(),{moveDirection:S}=w?.getState()||{};if(S!==Yi.Stationary){const v=n.value?.currentPoint,g=n.value.currentRecord?.getPoint(E??""),R=(v?.index??0)-(g?.index??0)>=0?Yi.Forward:Yi.Backward;w?.setMoveDirection(R)}}return{getShow:a,getBindValue:l}}function tT(n,t){const{getMap:e,getViewer:s}=n;function r(){t("map-ready")}function a(){t("map-resize")}function l(_){t("map-collapse",_)}function h(){t("map-dragger")}function u(_){t("map-angle-updated",_)}function d(_,E){p(),t("map-select-point",_,E)}function p(){const{rotation:_}=e()?.getState?.()||{},E=_?void 0:Yi.Stationary;s()?.setMoveDirection(E)}return{mapEvents:{ready:r,resize:a,collapse:l,dragger:h,angleUpdated:u,selectPoint:d}}}function eT(n,t){const{getViewer:e,getPlaybar:s,setState:r}=n;function a(){t("playbar-ready")}function l(T){E(),t("playbar-slider",T)}function h(T){w(),t("playbar-backward",T)}function u(T){v(!1),t("playbar-pause",T)}function d(T){v(!0),t("playbar-play",T)}function p(T){S(),t("playbar-forward",T)}function m(T){g(T),t("playbar-speed",T)}function _(T){t("playbar-select-point",T)}function E(){const{rotation:T}=s()?.getState()||{};R(T?.slider)}function w(){const{rotation:T}=s()?.getState()||{};R(T?.backward)}function S(){const{rotation:T}=s()?.getState()||{};R(T?.forward)}function v(T){const{rotation:U}=s()?.getState()||{};R(U?.play),e()?.setState({loadingPh:T})}function g(T){const B={speed:e()?.getTransitionSpeed(T)};r({playbar:{speed:T}}),e()?.setState({defaultTransition:B})}function R(T){const U=T?void 0:Yi.Stationary;e()?.setMoveDirection(U)}return{playbarEvents:{ready:a,backward:h,pause:u,play:d,forward:p,slider:l,speed:m,selectPoint:_}}}function nT(n,t){const{getMap:e,getPlaybar:s,getViewer:r}=n,a=y.ref({yaw:0,pitch:0});function l(M){g(M),t("viewer-ready")}function h(M){t("viewer-click",M)}function u(M){R(),t("viewer-mousedown",M)}function d(M){P(M),t("viewer-size-updated",M)}function p(M){T(M),t("viewer-zoom-updated",M)}function m(M){U(M),t("viewer-position-updated",M,z(M))}function _(M){B(),t("viewer-panorama-loaded",M)}function E(M){t("viewer-panorama-error",M)}function w(M){N(M),t("viewer-panorama-complete")}function S(M){t("viewer-select-point",M)}function v(M){t("viewer-select-marker",M)}function g(M){const{defaultYaw:k=0,defaultPitch:Z=0}=M?.currentTarget.config;a.value={yaw:k,pitch:Z},e()?.setRadarYaw(k),e()?.setRadarHFov(M?.currentTarget?.state?.hFov??90)}function R(M){e()?.setCollapse(!0)}function P(M){e()?.setRadarHFov(M?.currentTarget?.state?.hFov??90)}function T(M){e()?.setRadarHFov(M?.currentTarget?.state?.hFov??90)}function U(M){e()?.setRadarYaw(M.position.yaw??0)}function B(){r()?.loadMarkers()}function N(M){M||s()?.playNext()}function z(M){const{yaw:k,pitch:Z}=M.position,{yaw:J,pitch:V}=y.unref(a);return a.value=M.position,{yaw:k-J,pitch:Z-V}}return{viewerEvents:{ready:l,click:h,mousedown:u,sizeUpdated:d,zoomUpdated:p,positionUpdated:m,panoramaLoaded:_,panoramaError:E,panoramaComplete:w,selectPoint:S,selectMarker:v}}}const iT={class:"vsleem-realsee"},_m=Pn(y.defineComponent({name:"Realsee",__name:"Realsee",props:{appSetting:{},searchInfo:{},realseeSetting:{default:()=>el},viewer:{},marker:{},playbar:{default:()=>_o},map:{default:()=>go},immediate:{type:Boolean,default:!0},fetchParams:{},handleResponseFn:{},fetchSuccess:{},fetchError:{}},emits:["ready","reload","destroy","change-model","change-record","change-point","map-ready","map-resize","map-collapse","map-dragger","map-angle-updated","map-select-point","viewer-ready","viewer-click","viewer-mousedown","viewer-size-updated","viewer-zoom-updated","viewer-position-updated","viewer-panorama-loaded","viewer-panorama-error","viewer-panorama-complete","viewer-select-point","viewer-select-marker","playbar-ready","playbar-backward","playbar-pause","playbar-play","playbar-forward","playbar-speed","playbar-slider","playbar-select-point"],setup(n,{expose:t,emit:e}){const s=n,r=e,{registerViewer:a,registerMap:l,registerPlaybar:h,getProps:u,...d}=gm(s,r),{storeRef:p,getViewer:m,getMap:_,getPlaybar:E}=d,{getShow:w,getBindValue:S}=$M(p,m,_,E,r),{viewerEvents:v}=nT(d,r),{mapEvents:g}=tT(d,r),{playbarEvents:R}=eT(d,r);return t(d),(P,T)=>(y.openBlock(),y.createElementBlock("div",iT,[y.createVNode(pm,y.mergeProps({onRegister:y.unref(a)},y.toHandlers(y.unref(v))),null,16,["onRegister"]),y.unref(u).map&&y.unref(w)?(y.openBlock(),y.createBlock(Yh,y.mergeProps({key:0,onRegister:y.unref(l)},y.toHandlers(y.unref(g))),{extra:y.withCtx(U=>[y.renderSlot(P.$slots,"mapExtra",y.normalizeProps(y.guardReactiveProps(U)),void 0,!0)]),left:y.withCtx(U=>[y.renderSlot(P.$slots,"mapLeft",y.normalizeProps(y.guardReactiveProps(U)),void 0,!0)]),right:y.withCtx(U=>[y.renderSlot(P.$slots,"mapRight",y.normalizeProps(y.guardReactiveProps(U)),void 0,!0)]),default:y.withCtx(U=>[y.renderSlot(P.$slots,"mapDefault",y.normalizeProps(y.guardReactiveProps(U)),void 0,!0)]),_:3},16,["onRegister"])):y.createCommentVNode("",!0),y.unref(u).playbar&&y.unref(w)?(y.openBlock(),y.createBlock(Qh,y.mergeProps({key:1,onRegister:y.unref(h)},y.toHandlers(y.unref(R))),{slider:y.withCtx(U=>[y.renderSlot(P.$slots,"playbarSlider",y.normalizeProps(y.guardReactiveProps(U)),void 0,!0)]),box:y.withCtx(U=>[y.renderSlot(P.$slots,"playbarBox",y.normalizeProps(y.guardReactiveProps(U)),void 0,!0)]),caption:y.withCtx(U=>[y.renderSlot(P.$slots,"playbarCaption",y.normalizeProps(y.guardReactiveProps(U)),void 0,!0)]),button:y.withCtx(U=>[y.renderSlot(P.$slots,"playbarButton",y.normalizeProps(y.guardReactiveProps(U)),void 0,!0)]),default:y.withCtx(U=>[y.renderSlot(P.$slots,"playbarDefault",y.normalizeProps(y.guardReactiveProps(U)),void 0,!0)]),_:3},16,["onRegister"])):y.createCommentVNode("",!0),y.renderSlot(P.$slots,"default",y.normalizeProps(y.guardReactiveProps(y.unref(S))),void 0,!0)]))}}),[["__scopeId","data-v-cb8f711d"]]);Ce.APP_SETTING=Fh,Ce.DirectionMoveEnum=Yi,Ce.MAP_CONFIG=go,Ce.MAP_GEO_OPTIONS=Vh,Ce.MARKER_CONFIG=Gh,Ce.Map=Yh,Ce.PLAYBAR_CONFIG=_o,Ce.Playbar=Qh,Ce.REALSEE_CONFIG=Wh,Ce.REALSEE_SETTING=el,Ce.Realsee=_m,Ce.RealseeErrorCode=ze,Ce.RealseePlugin=_m,Ce.TILE_LAYERS=nl,Ce.TRACK_COLOR_LIST=zh,Ce.TrackMarker=no,Ce.TrackPoint=gs,Ce.TrackRecord=ar,Ce.TrackRecordTypeEnum=Jp,Ce.VIEWER_CONFIG=Hh,Ce.ViewModeEnum=ir,Ce.Viewer=pm,Ce.useRealsee=gm,Object.defineProperty(Ce,Symbol.toStringTag,{value:"Module"})}));
3951
+ */const{sin:Tn,cos:TM,sqrt:fh,abs:Ca,PI:un}=Math,Kp=6378245,$p=.006693421622965823;function tm(n,t){return n>=72.004&&n<=137.8347&&t>=.8293&&t<=55.8271}function bM(n,t){let e=-100+2*n+3*t+.2*t*t+.1*n*t+.2*fh(Ca(n));return e+=(20*Tn(6*n*un)+20*Tn(2*n*un))*2/3,e+=(20*Tn(t*un)+40*Tn(t/3*un))*2/3,e+=(160*Tn(t/12*un)+320*Tn(t*un/30))*2/3,e}function AM(n,t){let e=300+n+2*t+.1*n*n+.1*n*t+.1*fh(Ca(n));return e+=(20*Tn(6*n*un)+20*Tn(2*n*un))*2/3,e+=(20*Tn(n*un)+40*Tn(n/3*un))*2/3,e+=(150*Tn(n/12*un)+300*Tn(n/30*un))*2/3,e}function CM(n,t){let e=AM(n-105,t-35),s=bM(n-105,t-35);const r=t/180*un;let a=Tn(r);a=1-$p*a*a;const l=fh(a);return e=e*180/(Kp/l*TM(r)*un),s=s*180/(Kp*(1-$p)/(a*l)*un),[e,s]}function qi(n){const[t,e]=n;if(!tm(t,e))return[t,e];const s=CM(t,e);return[t+s[0],e+s[1]]}function sr(n){const[t,e]=n;if(!tm(t,e))return[t,e];let[s,r]=[t,e],a=qi([s,r]),l=a[0]-t,h=a[1]-e;for(;Ca(l)>1e-6||Ca(h)>1e-6;)s-=l,r-=h,a=qi([s,r]),l=a[0]-t,h=a[1]-e;return[s,r]}const{sin:Pa,cos:Ra,atan2:em,sqrt:nm,PI:PM}=Math,La=PM*3e3/180;function rr(n){const[t,e]=n,s=t-.0065,r=e-.006,a=nm(s*s+r*r)-2e-5*Pa(r*La),l=em(r,s)-3e-6*Ra(s*La),h=a*Ra(l),u=a*Pa(l);return[h,u]}function or(n){const[t,e]=n,s=t,r=e,a=nm(s*s+r*r)+2e-5*Pa(r*La),l=em(r,s)+3e-6*Ra(s*La),h=a*Ra(l)+.0065,u=a*Pa(l)+.006;return[h,u]}const im=180/Math.PI,sm=Math.PI/180,Ia=6378137,Qi=20037508342789244e-9;function Da(n){return[n[0]*im/Ia,(Math.PI*.5-2*Math.atan(Math.exp(-n[1]/Ia)))*im]}function ka(n){const t=Math.abs(n[0])<=180?n[0]:n[0]-(n[0]<0?-1:1)*360,e=[Ia*t*sm,Ia*Math.log(Math.tan(Math.PI*.25+.5*n[1]*sm))];return e[0]>Qi&&(e[0]=Qi),e[0]<-Qi&&(e[0]=-Qi),e[1]>Qi&&(e[1]=Qi),e[1]<-Qi&&(e[1]=-Qi),e}const{abs:Ua}=Math,rm=[1289059486e-2,836237787e-2,5591021,348198983e-2,167804312e-2,0],om=[75,60,45,30,15,0],RM=[[1410526172116255e-23,898305509648872e-20,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-.03801003308653,173379812e-1],[-7435856389565537e-24,8983055097726239e-21,-.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,1026014486e-2],[-3030883460898826e-23,898305509983578e-20,.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,.32710905363475,685681737e-2],[-1981981304930552e-23,8983055099779535e-21,.03278182852591,40.31678527705744,.65659298677277,-4.44255534477492,.85341911805263,.12923347998204,-.04625736007561,448277706e-2],[309191371068437e-23,8983055096812155e-21,6995724062e-14,23.10934304144901,-.00023663490511,-.6321817810242,-.00663494467273,.03430082397953,-.00466043876332,25551644e-1],[2890871144776878e-24,8983055095805407e-21,-3068298e-14,7.47137025468032,-353937994e-14,-.02145144861037,-1234426596e-14,.00010322952773,-323890364e-14,826088.5]],LM=[[-.0015702102444,111320.7020616939,0x60e374c3105a3,-0x24bb4115e2e164,0x5cc55543bb0ae8,-0x7ce070193f3784,0x5e7ca61ddf8150,-0x261a578d8b24d0,0x665d60f3742ca,82.5],[.0008277824516172526,111320.7020463578,6477955746671607e-7,-4082003173641316e-6,1077490566351142e-5,-1517187553151559e-5,1205306533862167e-5,-5124939663577472e-6,9133119359512032e-7,67.5],[.00337398766765,111320.7020202162,4481351045890365e-9,-2339375119931662e-8,7968221547186455e-8,-1159649932797253e-7,9723671115602145e-8,-4366194633752821e-8,8477230501135234e-9,52.5],[.00220636496208,111320.7020209128,51751.86112841131,3796837749470245e-9,992013.7397791013,-122195221711287e-8,1340652697009075e-9,-620943.6990984312,144416.9293806241,37.5],[-.0003441963504368392,111320.7020576856,278.2353980772752,2485758690035394e-9,6070.750963243378,54821.18345352118,9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-.0003218135878613132,111320.7020701615,.00369383431289,823725.6402795718,.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,.37238884252424,7.45]];function am(n,t,e){const s=Ua(t)/e[9];let r=e[0]+e[1]*Ua(n),a=e[2]+e[3]*s+e[4]*Math.pow(s,2)+e[5]*Math.pow(s,3)+e[6]*Math.pow(s,4)+e[7]*Math.pow(s,5)+e[8]*Math.pow(s,6);return r*=n<0?-1:1,a*=t<0?-1:1,[r,a]}function Oa(n){const[t,e]=n;let s=[];for(let r=0;r<om.length;r++)if(Ua(e)>om[r]){s=LM[r];break}return am(t,e,s)}function Na(n){const[t,e]=n;let s=[];for(let r=0;r<rm.length;r++)if(Ua(e)>=rm[r]){s=RM[r];break}return am(t,e,s)}function ji(n,t){if(!n)throw new Error(t)}function lm(n){return!!n&&Object.prototype.toString.call(n)==="[object Array]"}function cm(n){return!isNaN(Number(n))&&n!==null&&!lm(n)}function Un(...n){const t=n.length-1;return function(...e){let s=t,r=n[t].apply(null,e);for(;s--;)r=n[s].call(null,r);return r}}function hm(n,t,e=!1){if(n===null)return;let s,r,a,l,h,u,d=0,p=0,m,_;const{type:E}=n,w=E==="FeatureCollection",S=E==="Feature",v=w?n.features.length:1;for(let g=0;g<v;g++){m=w?n.features[g].geometry:S?n.geometry:n,_=m?m.type==="GeometryCollection":!1,u=_?m.geometries.length:1;for(let R=0;R<u;R++){let P=0,T=0;if(l=_?m.geometries[R]:m,l===null)continue;const U=l.type;switch(d=e&&(U==="Polygon"||U==="MultiPolygon")?1:0,U){case null:break;case"Point":if(h=l.coordinates,t(h,p,g,P,T)===!1)return!1;p++,P++;break;case"LineString":case"MultiPoint":for(h=l.coordinates,s=0;s<h.length;s++){if(t(h[s],p,g,P,T)===!1)return!1;p++,U==="MultiPoint"&&P++}U==="LineString"&&P++;break;case"Polygon":case"MultiLineString":for(h=l.coordinates,s=0;s<h.length;s++){for(r=0;r<h[s].length-d;r++){if(t(h[s][r],p,g,P,T)===!1)return!1;p++}U==="MultiLineString"&&P++,U==="Polygon"&&T++}U==="Polygon"&&P++;break;case"MultiPolygon":for(h=l.coordinates,s=0;s<h.length;s++){for(T=0,r=0;r<h[s].length;r++){for(a=0;a<h[s][r].length-d;a++){if(t(h[s][r][a],p,g,P,T)===!1)return!1;p++}T++}P++}break;case"GeometryCollection":for(s=0;s<l.geometries.length;s++)if(hm(l.geometries[s],t,e)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}var Be;(function(n){n.WGS84="WGS84",n.WGS1984="WGS84",n.EPSG4326="WGS84",n.GCJ02="GCJ02",n.AMap="GCJ02",n.BD09="BD09",n.BD09LL="BD09",n.Baidu="BD09",n.BMap="BD09",n.BD09MC="BD09MC",n.BD09Meter="BD09MC",n.EPSG3857="EPSG3857",n.EPSG900913="EPSG3857",n.EPSG102100="EPSG3857",n.WebMercator="EPSG3857",n.WM="EPSG3857"})(Be||(Be={}));const IM={to:{[Be.GCJ02]:qi,[Be.BD09]:Un(or,qi),[Be.BD09MC]:Un(Oa,or,qi),[Be.EPSG3857]:ka}},DM={to:{[Be.WGS84]:sr,[Be.BD09]:or,[Be.BD09MC]:Un(Oa,or),[Be.EPSG3857]:Un(ka,sr)}},kM={to:{[Be.WGS84]:Un(sr,rr),[Be.GCJ02]:rr,[Be.EPSG3857]:Un(ka,sr,rr),[Be.BD09MC]:Oa}},UM={to:{[Be.WGS84]:Da,[Be.GCJ02]:Un(qi,Da),[Be.BD09]:Un(or,qi,Da),[Be.BD09MC]:Un(Oa,or,qi,Da)}},OM={to:{[Be.WGS84]:Un(sr,rr,Na),[Be.GCJ02]:Un(rr,Na),[Be.EPSG3857]:Un(ka,sr,rr,Na),[Be.BD09]:Na}};var NM={WGS84:IM,GCJ02:DM,BD09:kM,EPSG3857:UM,BD09MC:OM};function BM(n,t,e){if(ji(!!n,"The args[0] input coordinate is required"),ji(!!t,"The args[1] original coordinate system is required"),ji(!!e,"The args[2] target coordinate system is required"),t===e)return n;const s=NM[t];ji(!!s,`Invalid original coordinate system: ${t}`);const r=s.to[e];ji(!!r,`Invalid target coordinate system: ${e}`);const a=typeof n;if(ji(a==="string"||a==="object",`Invalid input coordinate type: ${a}`),a==="string")try{n=JSON.parse(n)}catch{throw new Error(`Invalid input coordinate: ${n}`)}let l=!1;lm(n)&&(ji(n.length>=2,`Invalid input coordinate: ${n}`),ji(cm(n[0])&&cm(n[1]),`Invalid input coordinate: ${n}`),n=n.map(Number),l=!0);const h=r;return l?h(n):(hm(n,u=>{[u[0],u[1]]=h(u)}),n)}const um=Object.assign(Object.assign({},Be),{CRSTypes:Be,transform:BM});class ar{id="";coordinateId=0;coordinate=new xt.Coordinate;trackPoints=new Map;trackMarkers=new Map;relativePosition;projectId;createTime;color;type;panoramaSize;realseeSetting;data;constructor(t){this.setState(t)}setState(t){Object.assign(this,t)}static async parsedModel(t,e,s){const{coordinateId:r,relativePosition:a,trackList:l,markerList:h,...u}=t,d=xt.utils.cloneDeep({...u,coordinateId:r,relativePosition:a});if(r&&e){let E=e?.findCsById(r);if(xt.RelativeMap.isValid(a)){const w=xt.RelativeMap.toParse(a);E=new xt.Coordinate({parent:E,type:xt.CoordinateType.Data,relativeMap:w})}d.coordinate=E}const{id:p,coordinate:m,color:_}=d;if(l?.length&&m&&s){const E=await I_(l?.[0]?.img,s);d.panoramaSize=E;const w=new Map;for(const S of l){const v=gs.parsedModel({...S,patrolId:p,color:_},m,E,s);v.id&&w.set(v.id,new gs(v))}d.trackPoints=w}if(h?.length&&e){const E=new Map;for(const w of h){const S=no.parsedModel({...w,patrolId:p},e);S.id&&E.set(S.id,new no(S))}d.trackMarkers=E}return d}hasPoint(t){return this?.trackPoints?.has(t)}getPoint(t){return this?.trackPoints?.get(t)}getNearPoint(t){const e=Array.from(this?.trackPoints?.values()),s=e[0],r=e[e.length-1];return t<=(s.rawIndex??0)?s:t>=(r.rawIndex??0)?r:e.find(a=>(a.rawIndex??0)>=t)}hasMarker(t){return this?.trackMarkers?.has(t)}getMarker(t){return this?.trackMarkers?.get(t)}getPointMarkers(t){return Array.from(this?.trackMarkers?.values()).filter(e=>e.pointId===t)}projection(t,e,s){const{coordinate:r,trackPoints:a,trackMarkers:l}=this||{};if(!r||!a?.size)return;const h=r.getDestRelativeMap(t),u=r.getDestRelativeMap(e);if(!h||!u)return;const d=Array.from(l?.values()),p={srcToDstRelativeMap:h,srcCoordinate:r,dstCoordinate:t},m={srcToDstRelativeMap:u,srcCoordinate:r,dstCoordinate:e},{pointLax:_=0,trackCRSType:E}=s||{},w=new Map;let S;for(const g of a.values()){const R=g.projection(p,m);if(!R)continue;if(R.index=w.size,r.modelType===xt.CoordinateModelType.GeoModel){const{point:T}=R;if(E&&T){const[U,B]=um.transform([T.lon,T.lat],um.WGS84,E);R.point=new xt.Point({...T,lon:U,lat:B})}}if(_<=0){w.set(R.id,R);continue}if(d.find(T=>T.pointId===R.id)){w.set(R.id,R),S=R;continue}if(!w.size){w.set(R.id,R),S=R;continue}R.position&&S?.position&&xt.Point.dist(R.position,S.position)>=_&&(w.set(R.id,R),S=R)}const v=new ar(this);return v.trackPoints=w,v.coordinate=t,v.realseeSetting=s,v}getPathMarkers(t){const{pointType:e=Aa.NUMBER,pointNumber:s=5,pointDistance:r=5}=this.realseeSetting||{},a=this.getPoint(t?.id??"");if(!a)return[];let l=[];return e===Aa.NUMBER?l=this.getPointsByNumber(a,s):e===Aa.DISTANCE&&(l=this.getPointsByDistance(a,r)),this.createPathMarkers(a,l)}getPointsByDistance(t,e){if(!t.position||e<=0)return[];const{x:s,y:r}=t.position;return Array.from(this.trackPoints.values()).filter(a=>!a.position||!t.position||Math.abs(a.position.x-s)>e||Math.abs(a.position.y-r)>e?!1:xt.Point.dist(a.position,t.position)<=e)}getPointsByNumber(t,e){const s=Array.from(this.trackPoints.values()),r=s.findIndex(h=>h.id===t?.id);if(r===-1)return[];const a=Math.max(0,r-e),l=Math.min(s.length,r+e+1);return s.slice(a,l)}createPathMarkers(t,e){const{pathPin:s,pathRedPin:r}=this.realseeSetting||{},a=t.position;if(!a)return[];const l=[];for(const h of e){const u=h.position;if(!u)continue;const{d,yaw:p,pitch:m}=gs.toSphericalCoord(a,u);if(d===0)continue;const _=Math.min(120/(d/2e3),120),E=this.getPointMarkers(h.id).length>0;l.push({id:h.id,image:E?r:s,position:new xt.Position({yaw:p,pitch:m}),data:{...h,markerType:dh.pin},size:{width:_,height:_/2},hoverScale:{amount:1},opacity:.8,anchor:"center center"})}return l}getViolationMarkers(t){if(!t)return[];const e=this.getPointMarkers(t.id);return this.createViolationMarkers(e)}createViolationMarkers(t){return t.map((e,s)=>({id:e.id,image:e.markerIcon,position:e.perspective||new xt.Position({yaw:xt.Point.toDegrees(10)*s,pitch:0}),data:{...e,markerType:e.markerType},size:{width:50,height:50},hoverScale:{amount:1},opacity:.8,anchor:"bottom center"}))}getPreloadPoints(t){if(!t)return[];const{preloadStep:e=5}=this.realseeSetting||{},s=Array.from(this.trackPoints.values()),r=s.findIndex(h=>h.id===t?.id);if(r===-1)return[];const a=Math.max(0,r-e),l=Math.min(s.length,r+e+1);return s.slice(a,l)}}const{cloneDeep:dm,deepMergeProps:FM,getDiffProps:zM}=xt.utils;function HM(n,t,e,s,r){const a=y.ref(),l=y.ref(!1),h=y.ref(new Set),u=y.ref(new Set),d=y.ref(dm(Hh)),p=y.computed(()=>d.value),m=y.ref(),_=y.computed(()=>{const{currentRecord:pt}=y.unref(t)||{};return Array.from(pt?.trackPoints?.values()||[])});y.watch(()=>dm(n.value?.viewer),E,{immediate:!0,deep:!0});function E(pt,Rt){const Y=zM(pt,Rt);S(Y)}function w(){return p.value}function S(pt){pt&&FM(d.value,pt)}function v(){y.unref(e)?.container?.addEventListener("mousedown",P),y.unref(e)?.container?.addEventListener("touchstart",P),y.unref(e)?.container?.addEventListener("mouseover",T),y.unref(e)?.container?.addEventListener("mouseout",U),y.unref(e)?.addEventListener(jt.ReadyEvent.type,pt=>{r("ready",pt)}),y.unref(e)?.addEventListener(jt.SizeUpdatedEvent.type,pt=>{r("size-updated",pt)}),y.unref(e)?.addEventListener(jt.PanoramaLoadedEvent.type,pt=>{r("panorama-loaded",pt)}),y.unref(e)?.addEventListener(jt.PanoramaErrorEvent.type,pt=>{r("panorama-error",pt)}),y.unref(e)?.addEventListener(jt.ClickEvent.type,pt=>{r("click",pt)}),y.unref(e)?.addEventListener(jt.PositionUpdatedEvent.type,pt=>{r("position-updated",pt)}),y.unref(e)?.addEventListener(jt.ZoomUpdatedEvent.type,pt=>{r("zoom-updated",pt)})}function g(){}function R(pt){r("panorama-complete",pt)}function P(pt){r("mousedown",pt)}function T(pt){Z(!0)}function U(pt){Z(!1)}async function B(pt,Rt){if(l.value){a.value={currentPoint:pt,options:Rt};return}try{l.value=!0;const{loadingPh:Y=!1}=p.value,{panorama:st,placeholderImg:ft}=pt;ft&&!Y?(await e.value?.setPanorama(ft,Rt),await e.value?.setPanorama(st,{showLoader:!1})):await e.value?.setPanorama(st,Rt),await N(st)}catch(Y){console.error(Y)}finally{l.value=!1,D(),z(),R(a.value)}}async function N(pt){try{if(xt.utils.isObject(pt)){const Rt=pt.tileUrl(Math.floor(pt.cols/2),0);if(Rt){const Y=await fetch(Rt);if(Y.ok)return await Y.blob()}}}catch{}}async function z(){if(await y.nextTick(),a.value){const{currentPoint:pt,options:Rt}=a.value;a.value=void 0,B(pt,Rt)}}async function D(){let{currentPoint:pt,currentRecord:Rt}=y.unref(t)||{};if(pt&&Rt){const Y=Rt.getPreloadPoints(pt);for(const st of Y)if(!h.value.has(st.id)&&!u.value.has(st.id)){u.value.add(st.id);const{panorama:ft,placeholderImg:Dt}=st||{},Ut=[];if(xt.utils.isObject(ft)){const zt=ft.tileUrl(Math.floor(ft.cols/2),0);Ut.push(fetch(ft.baseUrl),fetch(zt))}else Ut.push(fetch(ft)),Dt&&Ut.push(fetch(Dt));Promise.all(Ut).then(()=>{h.value.add(st.id)}).finally(()=>{u.value.delete(st.id)}).catch(zt=>{console.error(zt)})}}}function M(){k()}function k(){const{handleViolationMarkerFn:pt,handlePathMarkerFn:Rt}=y.unref(n)?.marker||{},{currentPoint:Y,currentRecord:st,currentMarker:ft}=y.unref(t)||{};if(Y&&st){const Dt=st?.getPathMarkers(Y)?.map(ce=>Rt?.(ce)||ce),Ut=st?.getViolationMarkers(Y)?.map(ce=>pt?.(ce)||ce),zt=[...Dt,...Ut];if(y.unref(s)?.setMarkers(zt),ft){const ce=Ut.find(at=>at.data.id===ft.id);if(!ce)return;y.unref(s)?.gotoMarker(ce.id,100)}}}function Z(pt){S({mouseover:pt})}function J(pt){S({mousedown:pt})}function V(){return y.unref(d)?.mouseover??!1}function $(){return y.unref(d)?.mousedown??!1}function K(pt){S({moveDirection:pt})}function ut(pt){m.value=pt}async function G(){const{currentPoint:pt}=y.unref(t)||{};if(pt){const Rt=Tt(pt);m.value=void 0,await B(pt,Rt)}}function Tt(pt){const{defaultTransition:Rt}=p.value,Y={showLoader:!1,transition:Rt},st=Mt(pt);return{...Y,...m.value,...st?{position:st}:{}}}function lt(pt){return Math.max(50,Math.min(1e3,pt-100))}function Mt(pt,Rt){const{viewMode:Y,moveDirection:st=1,moveThresh:ft=0}=p.value;if(!pt||Y===ir.Auto||st===Yi.Stationary)return;const Dt=e.value?.getPosition()?.yaw??0,Ut=Rt??ft;if(Y===ir.FollowView){const zt=pt.point.yaw??0;return Math.abs(zt-Dt)>=Ut?{yaw:zt,pitch:0}:void 0}if(Y===ir.FollowRoad){const{index:zt=0,point:ce}=pt,at=_.value[zt+st]?.point;if(!ce||!at)return;const C=gs?.toSphericalCoord(ce,at);if(!C)return;const it=C.yaw??0;if(Math.abs(it-Dt)>=Ut)return{yaw:it,pitch:0}}}return{getProps:p,viewerAction:{getState:w,setState:S,isMouseover:V,isMousedown:$,setMousedown:J,setMouseover:Z,setPanoramaPath:B,setViewerStatus:ut,setMoveDirection:K,updateMarkers:k,preloadPanorama:D,loadMarkers:M,updateViewer:G,getPanoramaOptions:Tt,getTransitionSpeed:lt,getMovePosition:Mt},handleViewerEvents:v,handleUninstallEvents:g}}const{cloneDeep:fm,deepMergeProps:VM,getDiffProps:GM}=xt.utils;function WM(n,t,e,s,r){const a=y.ref(fm(Gh)),l=y.computed(()=>a.value);y.watch(()=>fm(n.value?.marker),h,{immediate:!0,deep:!0});function h(_,E){const w=GM(_,E);u(w)}function u(_){_&&VM(a.value,_)}function d(){y.unref(s)?.addEventListener(xp.SelectMarkerEvent.type,p)}async function p(_){const{id:E,data:w}=_.marker.config,{onPointChange:S,onMarkerChange:v}=l.value;w.markerType==dh.pin?(await S?.(_),y.unref(t)?.selectPoint(w),r("select-point",w)):(await v?.(_),y.unref(s)?.gotoMarker(E,500),y.unref(t)?.selectMarker(w),r("select-marker",w))}return{getProps:l,markerAction:{},handleMarkerEvents:d}}const ZM={class:"vsleem-viewer"},pm=Pn(y.defineComponent({name:"Viewer",__name:"Viewer",emits:["register","ready","click","mousedown","size-updated","zoom-updated","position-updated","panorama-loaded","panorama-error","panorama-complete","select-point","select-marker"],setup(n,{expose:t,emit:e}){const s=e,r=y.ref(),a=y.ref(),l=y.ref(""),h=y.ref(),u=y.ref(),d=y.computed(()=>y.unref(y.unref(h))),p=y.computed(()=>y.unref(y.unref(u))),{getProps:m,handleViewerEvents:_,viewerAction:E}=HM(d,p,r,a,s),{handleMarkerEvents:w,markerAction:S}=WM(d,p,r,a,s);y.watch(()=>y.unref(p)?.ready,v,{immediate:!0}),y.onMounted(U),y.onBeforeUnmount(P);function v(B){B&&(g(),_(),w())}function g(){const{currentPoint:B}=p.value;if(y.unref(r)||!B)return;const N=R(),z=new HS(N),D=z.getPlugin(jp);r.value=Object.assign(z,E),a.value=Object.assign(D,S)}function R(){const{currentPoint:B}=p.value,N=E.getMovePosition(B,0);N&&E.setState({defaultYaw:N.yaw,defaultPitch:N.pitch});let z;xt.utils.isObject(B?.panorama)&&(z=$S);const{viewMode:D,moveThresh:M,moveDirection:k,mousedown:Z,mouseover:J,loadingPh:V,...$}=m.value;return{...$,container:l.value,panorama:B?.panorama,adapter:z,plugins:[[jp,[]]]}}function P(){r.value?.destroy()}function T(B,N){h.value=B,u.value=N}function U(){s("register",r,a,T)}return t({getViewer:()=>y.unref(r),getMarker:()=>y.unref(a)}),(B,N)=>(y.openBlock(),y.createElementBlock("div",ZM,[y.createElementVNode("div",{ref_key:"viewerElRef",ref:l},null,512)]))}}),[["__scopeId","data-v-3371c619"]]);function XM(n,t){const e=y.ref(),s=y.ref(!1);function r(l,h){y.unref(s)||(e.value=l,y.unref(n)&&y.unref(t)&&h(n,t),s.value=!0)}function a(){return y.unref(y.unref(e))}return{register:r,getMap:a}}function YM(n,t){const e=y.ref(),s=y.ref(!1);function r(l,h){y.unref(s)||(e.value=l,y.unref(n)&&y.unref(t)&&h(n,t),s.value=!0)}function a(){return y.unref(y.unref(e))}return{register:r,getPlaybar:a}}function qM(n,t){return xt.http.request({url:"/project/jssdk/patrolRecord/detailNew",method:xt.RequestMethod.GET,params:n},t)}function QM(n,t){const{setReferPoint:e,setRealseeState:s}=t,r=y.ref(),a=y.ref(),l=y.ref(),h=y.reactive(new Map),u=y.ref(!1),d=y.ref(!1),p=y.ref(),m=y.ref(),_=y.ref(),E=y.ref(),w=y.computed(()=>a.value?.findCsById(p.value)),S=y.computed(()=>w.value?.findParentSpace()),v=y.computed(()=>xt.Coordinate.getCommonCoordinate(Array.from(h.values(),at=>at.coordinate))),g=y.computed(()=>h.get(m.value??"")),R=y.computed(()=>N.value.get(m.value??"")),P=y.computed(()=>g.value?.getPoint(_.value??"")),T=y.computed(()=>R.value?.getPoint(_.value??"")),U=y.computed(()=>R.value?.getMarker(E.value??"")),B=y.computed(()=>R.value?.getPointMarkers(T.value?.id??"")||[]),N=y.computed(()=>{const at=new Map;if(!w.value||!v.value)return at;for(const C of h.values()){const it=C.projection(w.value,v.value,n.value.realseeSetting);it&&at.set(it.id,it)}return at}),z=y.computed(()=>{const at=new Map;if(!N.value.size)return at;for(const C of N.value.values()){const{trackMarkers:it}=C;for(const ct of it.values()){const _t=C.getPoint(ct.pointId);if(_t){const ht=at.get(_t)??[];ht.push(ct),ht.length===1&&at.set(_t,ht)}}}return at});async function D(at){const{projectId:C,patrolId:it}=at||{},ct=it?Array.isArray(it)?it:[it]:[];try{if(!C||!ct.length)throw new xt.AppError(ze.StoreMissParams,"缺少必要的查询参数");if(u.value=!0,C!=a.value?.projectId){const[Nt,pe]=await Promise.all([xt.DataSource.getProjectDetail(C),xt.DataSource.getCoordinateTree(C)]);if(!Nt)throw new xt.AppError(ze.StoreNoProjectDetail,`未查询到项目ID为 ${C} 的项目详情`);const{tileLayers:ge=[]}=n.value.map||{};if(ge.length){const O=ge[ge.length-1]||{},b=xt.utils.getMapProvider(O?.url),Q=b?.CRSTypes?.[Nt.mapArea??0];Q&&Q!==xt.CRSTypes.WGS84&&(Nt.CRSType=Q,Nt.mapType=b.name,s({realseeSetting:{trackCRSType:Q}}))}if(r.value=Nt,!pe)throw new xt.AppError(ze.StoreNoCSTree,`未查询到项目ID为 ${C} 的坐标系树`);a.value=pe}const[_t,...ht]=ct,Ot=await M(_t);if(!Ot)return;const yt=Ot.coordinate.findChildModel([xt.CoordinateModelType.CADModel,xt.CoordinateModelType.GeoModel]);if(yt?.modelType===xt.CoordinateModelType.CADModel&&!yt?.modelValue)throw new xt.AppError(ze.StroeNoModelValue,`没有找到当前坐标系${yt?.id||""}的modelKey字段值`);l.value=yt?.getMappedCsTree(),h.clear(),h.set(Ot.id,Ot),Z({modelCsId:yt?.id,...at}),pt(ht)}catch(_t){console.error(_t),n.value.fetchError?.(_t)}finally{u.value=!1}}async function M(at){try{let C=await qM({...n.value.fetchParams,id:at});if(C=await n.value.handleResponseFn?.(C)||C,!C)throw new xt.AppError(ze.StoreNoRecord,`未查询到ID为 ${at} 的巡检记录`);const it=st();C.color=C.color||it;const{appSetting:ct}=n.value,_t=await ar.parsedModel(C,a.value,ct);if(!_t?.trackPoints?.size||!_t.coordinate)throw new xt.AppError(ze.StoreInvRecord,`ID为 ${at} 是无效的巡检记录`);let ht;if(u.value?ht=a.value?.findCsById(_t.coordinateId):l.value&&(ht=l.value.findCsById(_t.coordinateId)),!ht)throw new xt.AppError(ze.StoreRecordOutCSTree,`ID为 ${at} 的巡检记录不在映射坐标系树内`);if(ht?.modelType===xt.CoordinateModelType.GeoModel){const yt=a.value?.findClosestModel(xt.CoordinateModelType.GeoModel);if(yt&&!yt.relativeMap?.refPoint){const Nt=Array.from(_t.trackPoints.values()),pe=new xt.GeoPoint(Nt[0].point),ge=new xt.RelativeMap({refPoint:pe});yt.setOptions({relativeMap:ge})}}const Ot=new ar(_t);return n.value.fetchSuccess?.(Ot,a.value),Ot}catch(C){console.error(C),n.value.fetchError?.(C)}}function k(at=!1){d.value=at}function Z(at){const{patrolId:C,pointId:it,modelCsId:ct}=at,_t=C?Array.isArray(C)?C:[C]:[],ht=h.get(_t[0]);if(ht){const Ot=Array.from(ht.trackPoints.values());m.value=ht.id,_.value=it??Ot[0]?.id}ct&&(p.value=ct)}function J(at){const{id:C}=at;if(l.value?.findCsById(C)?.type===xt.CoordinateType.Model)p.value=C;else throw new xt.AppError(ze.StoreNoCSByID,`ID为 ${C} 的模型坐标系不在映射坐标系树内`)}function V(at){const C=Mt(at.id??"");if(!C)throw new xt.AppError(ze.StoreSelectNoRecord,`未找到ID为 ${at.id} 的巡检记录`);const it=Array.from(C.trackPoints.values());m.value=C.id,_.value=it[0]?.id}function $(at){const{patrolId:C,id:it=""}=at,ct=Mt(C??"");if(!ct)throw new xt.AppError(ze.StoreSelectNoRecord,`未找到轨迹点patrolId为 ${C} 的巡检记录`);if(!ct?.hasPoint(it))throw new xt.AppError(ze.StoreSelectNoPoint,`未找到ID为 ${it} 的轨迹点`);m.value=ct.id,_.value=it}function K(at){if(at){const{patrolId:C,id:it=""}=at,ct=Mt(C??"");if(!ct)throw new xt.AppError(ze.StoreSelectNoRecord,`未找到问题标记patrolId为 ${C} 的巡检记录`);if(!ct?.hasMarker(it))throw new xt.AppError(ze.StoreSelectNoMarker,`未找到ID为 ${it} 的问题标记`);E.value=it}else E.value=void 0}function ut(at){const C=h.get(at.patrolId);if(!C)throw new xt.AppError(ze.StoreSelectNoRecord,`未找到问题标记patrolId为 ${at.patrolId} 的巡检记录`);C.trackMarkers.set(at.id,at)}function G(at){const C=h.get(at.patrolId??"");if(!C)throw new xt.AppError(ze.StoreSelectNoRecord,`未找到问题标记patrolId为 ${at.patrolId} 的巡检记录`);C.trackMarkers.delete(at.id??"")}function Tt(at){const C=h.get(at.patrolId??"");if(!C)throw new xt.AppError(ze.StoreSelectNoRecord,`未找到问题标记patrolId为 ${at.patrolId} 的巡检记录`);const it=C.trackMarkers.get(at.id??"");if(!it)throw new xt.AppError(ze.StoreSelectNoMarker,`未找到ID为 ${at.id} 的问题标记`);Object.assign(it,at)}function lt(at){return N.value.has(at)}function Mt(at){return N.value.get(at)}async function Gt(at){if(!h.has(at)){const C=await M(at);if(C){const it=new ar(C);return h.set(it.id,it),it}}}async function pt(at){if(at.length)for(const C of at)await Gt(C)}function Rt(at){if(R.value?.id===at)throw new xt.AppError(ze.StoreSelectedMarker,`ID为 ${at} 的巡检记录正在被使用,无法删除`);return h.delete(at)}async function Y(at){const C=h.get(at.id??"");if(!C)throw new xt.AppError(ze.StoreSelectNoRecord,`未找到ID为 ${at.id} 的巡检记录`);Object.assign(C,at)}function st(){const at=u.value?[]:Array.from(h.values()).map(it=>it.color?.toUpperCase?.());return(n.value.realseeSetting?.trackColorRange||[]).find(it=>!at.includes(it?.toUpperCase?.()))}function ft(){return w.value?.findClosestModel(xt.CoordinateModelType.BIMModel)}function Dt(at){let C=1/0,it;if(at.position){for(const ct of N.value.values())if(ct.trackPoints?.size)for(const _t of ct.trackPoints.values()){if(!_t.position)continue;const ht=xt.Point.dist(at.position,_t.position);if(ht===0){C=ht,it=_t;break}ht<C&&(C=ht,it=_t)}if(it)return it}}function Ut(at){if(!w.value||!v.value||!at)return;const C=a.value?.findCsById(at.coordinate.id);if(!C)return;const it=C?.getDestRelativeMap(w.value),ct=C?.getDestRelativeMap(v.value);if(!it||!ct)return;const _t={srcToDstRelativeMap:it,srcCoordinate:C,dstCoordinate:w.value},ht={srcToDstRelativeMap:ct,srcCoordinate:C,dstCoordinate:v.value};return at.projection(_t,ht)}function zt(){return ce.value}const ce=y.computed(()=>({ready:d.value,rawDataSource:h,currentProject:r.value,coordinateTree:a.value,mappedCoordinateTree:l.value,dataSource:N.value,comCoordinate:v.value,currentModel:w.value,currentSpace:S.value,currentRawRecord:g.value,currentRecord:R.value,currentRawPoint:P.value,currentPoint:T.value,currentMarker:U.value,currentPointMarkers:B.value,groupedMarkers:z.value,reload:D,fetchRecord:M,selectModel:J,selectRecord:V,selectPoint:$,selectMarker:K,setReferPoint:e,addMarker:ut,removeMarker:G,updateMarker:Tt,hasRecord:lt,getRecord:Mt,addRecord:Gt,batchAddRecords:pt,removeRecord:Rt,updateRecord:Y,findClosestBIMModel:ft,findClosestPoint:Dt,normalizeToModelPoint:Ut}));return{storeRef:ce,getStore:zt,setReady:k}}function jM(n,t){const e=y.ref(),s=y.ref(),r=y.ref(!1);function a(u,d,p){y.unref(r)||(e.value=u,s.value=d,y.unref(n)&&y.unref(t)&&p(n,t),r.value=!0)}function l(){return y.unref(y.unref(e))}function h(){return y.unref(y.unref(s))}return{register:a,getViewer:l,getMarker:h}}const{cloneDeep:mm,deepMergeProps:JM,getDiffProps:KM}=xt.utils;function gm(n,t){const e=y.ref(mm(Wh)),s=y.computed(()=>e.value);y.watch(()=>mm(n),v,{immediate:!0,deep:!0}),y.watch(()=>s.value.searchInfo,()=>T(r.value.ready),{deep:!0});const{storeRef:r,getStore:a,setReady:l}=QM(s,{setReferPoint:B,setRealseeState:R}),{register:h,getViewer:u,getMarker:d}=jM(s,r),{register:p,getMap:m}=XM(s,r),{register:_,getPlaybar:E}=YM(s,r);y.onMounted(w),y.onBeforeUnmount(S);async function w(){const{appSetting:N,immediate:z}=y.unref(s);N&&xt.http.setRequestGlobalConfig(N),z&&(await T(!0),setTimeout(P,0))}function S(){t?.("destroy")}function v(N,z){const D=KM(N,z);R(D)}function g(){return s.value}function R(N){N&&JM(e.value,N)}function P(){l(!0),t?.("ready")}async function T(N){const{searchInfo:z}=s.value;N&&z&&(await r.value?.reload(z),t?.("reload"))}function U(){const N=xt.utils.cloneDeep(s.value),z=a();if(z){const{currentModel:J,currentRecord:V,currentPoint:$}=z,{projectId:K=0,id:ut=""}=V||{},G=$?.id,Tt=J?.id;N.searchInfo={projectId:K,patrolId:ut,pointId:G,modelCsId:Tt}}const D=u();if(D){const J=xt.utils.cloneDeep(s.value.viewer),V=D.getPosition(),$=D.getZoomLevel(),{yaw:K,pitch:ut}=V||{};N.viewer={...J,defaultZoomLvl:$,defaultYaw:K,defaultPitch:ut}}d()&&(N.marker=xt.utils.cloneDeep(s.value.marker));const k=m();if(k){const{size:J,radarAngle:V,...$}=k.getState()||{};N.map={...$}}const Z=E();if(Z){const{showPlay:J,showSpeed:V,...$}=Z.getState()||{};N.playbar={...$,showPlay:!1,showSpeed:!1}}return N}async function B(N,z){const D=a();if(D){const M=u();if(!M)return;const{viewMode:k}=M?.getState()||{};if(k!==ir.Auto)throw new xt.AppError(ze.ViewModeNoAuto,"视图预览不是自由模式");const Z=D.normalizeToModelPoint(N);if(!Z?.point)return;const J=D.findClosestPoint(Z);if(!J?.point)return;const{zoom:V=0}=z,{yaw:$=0,pitch:K=0}=z.position||{},G={yaw:Z.point.yaw-J.point.yaw+$,pitch:K};D?.selectPoint?.(J),M.setViewerStatus({position:G,zoom:V}),D.currentPoint?.id===J.id&&M.updateViewer()}}return{getProps:s,storeRef:r,registerViewer:h,registerMap:p,registerPlaybar:_,getStore:a,getViewer:u,getMarker:d,getPlaybar:E,getMap:m,getOptions:U,getState:g,setState:R}}function $M(n,t,e,s,r){const a=y.computed(()=>n.value.ready&&!!n.value.currentRecord),l=y.computed(()=>{const{dataSource:E,coordinateTree:w,mappedCoordinateTree:S,currentSpace:v,currentModel:g,currentRecord:R,currentPoint:P,currentMarker:T,currentPointMarkers:U}=n.value||{};return{dataSource:E,coordinateTree:w,mappedCoordinateTree:S,currentSpace:v,currentModel:g,currentRecord:R,currentPoint:P,currentPointMarkers:U,currentMarker:T}});y.watch(()=>n.value?.currentModel?.id,h,{immediate:!0}),y.watch(()=>n.value?.currentRecord?.id,u,{immediate:!0}),y.watch(()=>n.value?.currentPoint?.id,d,{immediate:!0}),y.watch(()=>n.value?.currentRecord?.trackPoints.size,m,{immediate:!0});function h(E){E&&r("change-model",n.value?.currentModel)}function u(E){E&&r("change-record",n.value?.currentRecord)}function d(E,w){E&&(p(E,w),r("change-point",n.value?.currentPoint))}function p(E,w){_(w),t()?.updateViewer?.()}function m(E){if(E){const{currentRecord:w,currentRawPoint:S,selectPoint:v}=n.value;if(w?.id===S?.patrolId){const g=w?.getNearPoint(S?.rawIndex||0);g&&v?.(g)}}}function _(E){const w=t(),{moveDirection:S}=w?.getState()||{};if(S!==Yi.Stationary){const v=n.value?.currentPoint,g=n.value.currentRecord?.getPoint(E??""),R=(v?.index??0)-(g?.index??0)>=0?Yi.Forward:Yi.Backward;w?.setMoveDirection(R)}}return{getShow:a,getBindValue:l}}function tT(n,t){const{getMap:e,getViewer:s}=n;function r(){t("map-ready")}function a(){t("map-resize")}function l(_){t("map-collapse",_)}function h(){t("map-dragger")}function u(_){t("map-angle-updated",_)}function d(_,E){p(),t("map-select-point",_,E)}function p(){const{rotation:_}=e()?.getState?.()||{},E=_?void 0:Yi.Stationary;s()?.setMoveDirection(E)}return{mapEvents:{ready:r,resize:a,collapse:l,dragger:h,angleUpdated:u,selectPoint:d}}}function eT(n,t){const{getViewer:e,getPlaybar:s,setState:r}=n;function a(){t("playbar-ready")}function l(T){E(),t("playbar-slider",T)}function h(T){w(),t("playbar-backward",T)}function u(T){v(!1),t("playbar-pause",T)}function d(T){v(!0),t("playbar-play",T)}function p(T){S(),t("playbar-forward",T)}function m(T){g(T),t("playbar-speed",T)}function _(T){t("playbar-select-point",T)}function E(){const{rotation:T}=s()?.getState()||{};R(T?.slider)}function w(){const{rotation:T}=s()?.getState()||{};R(T?.backward)}function S(){const{rotation:T}=s()?.getState()||{};R(T?.forward)}function v(T){const{rotation:U}=s()?.getState()||{};R(U?.play),e()?.setState({loadingPh:T})}function g(T){const B={speed:e()?.getTransitionSpeed(T)};r({playbar:{speed:T}}),e()?.setState({defaultTransition:B})}function R(T){const U=T?void 0:Yi.Stationary;e()?.setMoveDirection(U)}return{playbarEvents:{ready:a,backward:h,pause:u,play:d,forward:p,slider:l,speed:m,selectPoint:_}}}function nT(n,t){const{getMap:e,getPlaybar:s,getViewer:r}=n,a=y.ref({yaw:0,pitch:0});function l(M){g(M),t("viewer-ready")}function h(M){t("viewer-click",M)}function u(M){R(),t("viewer-mousedown",M)}function d(M){P(M),t("viewer-size-updated",M)}function p(M){T(M),t("viewer-zoom-updated",M)}function m(M){U(M),t("viewer-position-updated",M,z(M))}function _(M){B(),t("viewer-panorama-loaded",M)}function E(M){t("viewer-panorama-error",M)}function w(M){N(M),t("viewer-panorama-complete")}function S(M){t("viewer-select-point",M)}function v(M){t("viewer-select-marker",M)}function g(M){const{defaultYaw:k=0,defaultPitch:Z=0}=M?.currentTarget.config;a.value={yaw:k,pitch:Z},e()?.setRadarYaw(k),e()?.setRadarHFov(M?.currentTarget?.state?.hFov??90)}function R(M){e()?.setCollapse(!0)}function P(M){e()?.setRadarHFov(M?.currentTarget?.state?.hFov??90)}function T(M){e()?.setRadarHFov(M?.currentTarget?.state?.hFov??90)}function U(M){e()?.setRadarYaw(M.position.yaw??0)}function B(){r()?.loadMarkers()}function N(M){M||s()?.playNext()}function z(M){const{yaw:k,pitch:Z}=M.position,{yaw:J,pitch:V}=y.unref(a);return a.value=M.position,{yaw:k-J,pitch:Z-V}}return{viewerEvents:{ready:l,click:h,mousedown:u,sizeUpdated:d,zoomUpdated:p,positionUpdated:m,panoramaLoaded:_,panoramaError:E,panoramaComplete:w,selectPoint:S,selectMarker:v}}}const iT={class:"vsleem-realsee"},_m=Pn(y.defineComponent({name:"Realsee",__name:"Realsee",props:{appSetting:{},searchInfo:{},realseeSetting:{default:()=>el},viewer:{},marker:{},playbar:{default:()=>_o},map:{default:()=>go},immediate:{type:Boolean,default:!0},fetchParams:{},handleResponseFn:{},fetchSuccess:{},fetchError:{}},emits:["ready","reload","destroy","change-model","change-record","change-point","map-ready","map-resize","map-collapse","map-dragger","map-angle-updated","map-select-point","viewer-ready","viewer-click","viewer-mousedown","viewer-size-updated","viewer-zoom-updated","viewer-position-updated","viewer-panorama-loaded","viewer-panorama-error","viewer-panorama-complete","viewer-select-point","viewer-select-marker","playbar-ready","playbar-backward","playbar-pause","playbar-play","playbar-forward","playbar-speed","playbar-slider","playbar-select-point"],setup(n,{expose:t,emit:e}){const s=n,r=e,{registerViewer:a,registerMap:l,registerPlaybar:h,getProps:u,...d}=gm(s,r),{storeRef:p,getViewer:m,getMap:_,getPlaybar:E}=d,{getShow:w,getBindValue:S}=$M(p,m,_,E,r),{viewerEvents:v}=nT(d,r),{mapEvents:g}=tT(d,r),{playbarEvents:R}=eT(d,r);return t(d),(P,T)=>(y.openBlock(),y.createElementBlock("div",iT,[y.createVNode(pm,y.mergeProps({onRegister:y.unref(a)},y.toHandlers(y.unref(v))),null,16,["onRegister"]),y.unref(u).map&&y.unref(w)?(y.openBlock(),y.createBlock(Yh,y.mergeProps({key:0,onRegister:y.unref(l)},y.toHandlers(y.unref(g))),{extra:y.withCtx(U=>[y.renderSlot(P.$slots,"mapExtra",y.normalizeProps(y.guardReactiveProps(U)),void 0,!0)]),left:y.withCtx(U=>[y.renderSlot(P.$slots,"mapLeft",y.normalizeProps(y.guardReactiveProps(U)),void 0,!0)]),right:y.withCtx(U=>[y.renderSlot(P.$slots,"mapRight",y.normalizeProps(y.guardReactiveProps(U)),void 0,!0)]),default:y.withCtx(U=>[y.renderSlot(P.$slots,"mapDefault",y.normalizeProps(y.guardReactiveProps(U)),void 0,!0)]),_:3},16,["onRegister"])):y.createCommentVNode("",!0),y.unref(u).playbar&&y.unref(w)?(y.openBlock(),y.createBlock(Qh,y.mergeProps({key:1,onRegister:y.unref(h)},y.toHandlers(y.unref(R))),{slider:y.withCtx(U=>[y.renderSlot(P.$slots,"playbarSlider",y.normalizeProps(y.guardReactiveProps(U)),void 0,!0)]),box:y.withCtx(U=>[y.renderSlot(P.$slots,"playbarBox",y.normalizeProps(y.guardReactiveProps(U)),void 0,!0)]),caption:y.withCtx(U=>[y.renderSlot(P.$slots,"playbarCaption",y.normalizeProps(y.guardReactiveProps(U)),void 0,!0)]),button:y.withCtx(U=>[y.renderSlot(P.$slots,"playbarButton",y.normalizeProps(y.guardReactiveProps(U)),void 0,!0)]),default:y.withCtx(U=>[y.renderSlot(P.$slots,"playbarDefault",y.normalizeProps(y.guardReactiveProps(U)),void 0,!0)]),_:3},16,["onRegister"])):y.createCommentVNode("",!0),y.renderSlot(P.$slots,"default",y.normalizeProps(y.guardReactiveProps(y.unref(S))),void 0,!0)]))}}),[["__scopeId","data-v-cb8f711d"]]);Ce.APP_SETTING=Fh,Ce.DirectionMoveEnum=Yi,Ce.MAP_CONFIG=go,Ce.MAP_GEO_OPTIONS=Vh,Ce.MARKER_CONFIG=Gh,Ce.Map=Yh,Ce.PLAYBAR_CONFIG=_o,Ce.Playbar=Qh,Ce.REALSEE_CONFIG=Wh,Ce.REALSEE_SETTING=el,Ce.Realsee=_m,Ce.RealseeErrorCode=ze,Ce.RealseePlugin=_m,Ce.TILE_LAYERS=nl,Ce.TRACK_COLOR_LIST=zh,Ce.TrackMarker=no,Ce.TrackPoint=gs,Ce.TrackRecord=ar,Ce.TrackRecordTypeEnum=Jp,Ce.VIEWER_CONFIG=Hh,Ce.ViewModeEnum=ir,Ce.Viewer=pm,Ce.useRealsee=gm,Object.defineProperty(Ce,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vsleem-realsee-viewer/realsee-plugin",
3
- "version": "2.0.28",
3
+ "version": "2.0.29",
4
4
  "description": "Realsee plugin for VSLeem RealSee Viewer",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.mjs",
@@ -13,11 +13,11 @@
13
13
  "dist"
14
14
  ],
15
15
  "dependencies": {
16
- "@vsleem-realsee-viewer/shared": "2.0.28"
16
+ "@vsleem-realsee-viewer/shared": "2.0.29"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "vue": ">=3.5.0",
20
- "@vsleem-realsee-viewer/shared": "2.0.28"
20
+ "@vsleem-realsee-viewer/shared": "2.0.29"
21
21
  },
22
22
  "peerDependenciesMeta": {
23
23
  "vue": {