var e=Object.defineProperty,r=Object.defineProperties,o=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,l=(t,i,r)=>i in t?e(t,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[i]=r,c=(e,t)=>{for(var i in t||(t={}))a.call(t,i)&&l(e,i,t[i]);if(n)for(var i of n(t))s.call(t,i)&&l(e,i,t[i]);return e},u=(e,t)=>r(e,o(t));const d="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");class p{static uuid(e="D"){let t,i=[];i[8]=i[13]=i[18]=i[23]="-",i[14]="4";for(let r=0;r<36;r++)i[r]||(t=0|16*Math.random(),i[r]=d[19==r?3&t|8:t]);return e+"-"+i.join("")}static merge(e,...t){let i,r,o,n;for(r=0,o=t.length;r0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(i)}static addClass(e,t){if(void 0!==e.classList){let i=p.splitWords(t);for(let t=0,r=i.length;t\n\t\t\t比例尺:\n\t\t\t\n\t\t\t\t${this._scale}\n\t\t\t\n\t\t\n\t\t\n\t\t\t经度:${this._posX}\n\t\t\t纬度:${this._posY}\n\t\t\t相机高度:${this._cameraHeight}\n\t\t\t方向:${this._pitch}\n\t\t\t俯仰角:${this._heading}\n\t\t\n\t\t`}get show(){return this._show}set show(e){e?this.createStatusBar():this.removeStatusBar(),this._show=e}initListener(){const e=this,t=this._viewer.scene;this._scaleListener=function(){let i=t.canvas.clientWidth,r=t.canvas.clientHeight,o=t.camera.getPickRay(new Cesium.Cartesian2(i/2|0,r-1)),n=t.camera.getPickRay(new Cesium.Cartesian2(1+i/2|0,r-1)),a=t.globe,s=a.pick(o,t),l=a.pick(n,t);if(s&&l){let t=new Cesium.EllipsoidGeodesic,i=a.ellipsoid.cartesianToCartographic(s),r=a.ellipsoid.cartesianToCartographic(l);t.setEndPoints(i,r);let o=t.surfaceDistance,n=e.closest(o/10);e._scale=n<1?1e3*n+"m":n+"km"}}}createStatusBar(){const e=this._viewer;this.initHandler(e),this.initScale(e,!0),this._domContainer=h.create("div","lk-status-bar",document.getElementById(this._viewer._container.id))}removeStatusBar(){this.initScale(this._viewer,!1),this._handler&&this._handler.destroy(),this._domContainer&&h.remove(this._domContainer)}initHandler(e){const t=this;this._handler=new Cesium.ScreenSpaceEventHandler(e.scene.canvas);this._handler.setInputAction((function(i){let r=i.endPosition;const o=e.scene.camera.pickEllipsoid(r,e.scene.globe.ellipsoid);if(o){let i=Cesium.Cartographic.fromCartesian(o);t._posX=Cesium.Math.toDegrees(i.longitude).toFixed(5),t._posY=Cesium.Math.toDegrees(i.latitude).toFixed(5);const r=e.camera.positionCartographic.height;t._cameraHeight=r<1e3?r.toFixed(2)+"m":(r/1e3).toFixed(2)+"km",t._pitch=Number(e.scene.camera.pitch).toFixed(2),t._heading=Number(e.scene.camera.heading).toFixed(2),t._domContainer.innerHTML=t.statusDom}}),Cesium.ScreenSpaceEventType.MOUSE_MOVE)}initScale(e,t){const i=e.scene;t?i.postRender.addEventListener(this._scaleListener):i.postRender.removeEventListener(this._scaleListener)}closest(e){const t=[.001,.002,.003,.005,.01,.015,.02,.025,.03,.035,.04,.045,.05,.06,.07,.08,.09,.1,.12,.15,.2,.25,.3,.5,1,2,3,5,10,15,20,25,30,35,40,45,50,60,70,80,90,100,120,150,200,250,300,500,1e3,2e3,5e3,1e4,1e5,5e5,1e6];let i=t[0],r=Math.abs(i-e);for(let o=1;o{new Cesium.sampleTerrainMostDetailed(r,i).then((function(t){e(t)}))}))}var _,b,y,w,x=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",setSessionid:m,guid:function(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},getGuid:g,getHeigthByLngLat:function(e,t){if(!e)throw new Cesium.DeveloperError("no viewer object!");if(!Cesium.defined(t.longitude)&&!Cesium.defined(t.latitude))throw new Cesium.DeveloperError("longitude and latitude are required.");t.level=Cesium.defaultValue(t.level,11);let i=Cesium.Cartographic.fromDegrees(t.longitude,t.latitude),r=e.terrainProvider;return new Promise(((e,o)=>{new Cesium.sampleTerrain(r,t.level,[i]).then((function(t){t&&e(t[0].height)}))}))},getHeigthByPoints:function(e,t){if(!e)throw new Cesium.DeveloperError("no viewer object!");if(!Cesium.defined(t))throw new Cesium.DeveloperError("options is required.");t.level=Cesium.defaultValue(t.level,11);let i=[],r=t.points;for(let n=0;n{new Cesium.sampleTerrain(o,t.level,i).then((function(t){t&&e(t)}))}))},getHeigthByPointsMostDetailed:v});class C{constructor(e){if(!Cesium.defined(e)||!Cesium.defined(e.container))throw new Cesium.DeveloperError("options.container is required.");Cesium.Ion.defaultAccessToken="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIxNzM5YjQ3MC03YmMxLTRmMjAtOTk4Yi0yNDMyMDZlOTQzYTYiLCJpZCI6NTU5MjAsImlhdCI6MTYyNDI0NTM5NX0.diydVWFzw5C5rQlHaFYkdDJoSorcdex81KpWcntyICo",this._viewer=this._initMap(e),this._imageryLayers=this._viewer.imageryLayers,this._primitives=this._viewer.scene.primitives,this._entities=this._viewer.entities,this._dataSources=this._viewer.dataSources,this._defaultSkyBox=this._viewer.scene.skyBox,this.statusBar=new f(this._viewer),console.log(Cesium.buildModuleUrl.getCesiumBaseUrl())}_initMap(e){var t=new Cesium.SingleTileImageryProvider({url:"jt3dSDK/imgs/earth_3.jpg"});if(Cesium.defined(e.imageryProviderType)){if(!Cesium.defined(e.imageryProviderUrl))throw new Cesium.DeveloperError("imageryProviderType and imageryProviderUrl are required.");"SingleTileImageryProvider"==e.imageryProviderType?t=new Cesium.SingleTileImageryProvider({url:e.imageryProviderUrl}):"OpenStreetMapImageryProvider"==e.imageryProviderType?t=new Cesium.OpenStreetMapImageryProvider({url:e.imageryProviderUrl}):"ArcGisMapServerImageryProvider"==e.imageryProviderType&&(t=new Cesium.ArcGisMapServerImageryProvider({url:e.imageryProviderUrl}))}let i=new Cesium.Viewer(e.container,{animation:!0,timeline:!0,shadows:!1,shouldAnimate:!0,baseLayerPicker:!1,navigationHelpButton:!1,homeButton:!1,fullscreenButton:!1,sceneModePicker:!1,scene3DOnly:!0,infoBox:!1,clampToGround:!0,geocoder:!1,imageryProvider:t,selectionIndicator:!1,contextOptions:{webgl:{alpha:!0,depth:!0,stencil:!0,antialias:!0,premultipliedAlpha:!0,preserveDrawingBuffer:!0,failIfMajorPerformanceCaveat:!0}}});function r(e,t,i){var r=new Cesium.JulianDate;Cesium.JulianDate.addHours(e,8,r);var o,n=Cesium.JulianDate.toGregorianDate(r);if(i)o="";else if(o=new Date(n.year,n.month-1,n.day),o=n.year+"-"+o.toLocaleString("zh-cn",{month:"short"}).split("月").join("-")+n.day+" ",t||n.hour+n.minute===0)return o;let a,s,l;return a=n.hour<10?`0${n.hour}`:n.hour,s=n.minute<10?`0${n.minute}`:n.minute,l=n.second<10?`0${n.second}`:n.second,o+a+":"+s+":"+l}return i._cesiumWidget._creditContainer.style.display="none",i.scene.globe.show=!0,i.scene.globe.depthTestAgainstTerrain=!0,i.scene.globe.enableLighting=!1,i.scene.requestRenderMode=!1,i.scene.debugShowFramesPerSecond=!0,i.scene.skyAtmosphere.show=!1,i.scene.skyBox.show=!0,i.scene.sun.show=!0,i.scene.moon.show=!1,i.cesiumWidget.screenSpaceEventHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),i.animation.viewModel.dateFormatter=r,i.animation.viewModel.timeFormatter=function(e,t){return r(e,t,!0)},i.timeline.makeLabel=r,i}_setView(e){if(!Cesium.defined(e.longitude)&&!Cesium.defined(e.latitude))throw new Cesium.DeveloperError("longitude and latitude are required.");Cesium.Check.typeOf.number("longitude",e.longitude),Cesium.Check.typeOf.number("latitude",e.latitude),this._viewer.camera.setView({destination:Cesium.Cartesian3.fromDegrees(e.longitude,e.latitude,e.height),orientation:{heading:Cesium.Math.toRadians(Cesium.defaultValue(e.heading,0)),pitch:Cesium.Math.toRadians(Cesium.defaultValue(e.pitch,-90)),roll:e.roll}})}_getChinaPostion(){return Cesium.Cartesian3.fromDegrees(116.435314,40.960521,1e7)}_flytoChina(){this._viewer.camera.flyTo({destination:this._getChinaPostion(),duration:8})}}Object.assign(C.prototype,{setViewChina:function(){this._setView({longitude:103.84,latitude:31.15,height:24e6,heading:0,pitch:-90,roll:0})},fullMap:function(e){return new Promise(((t,i)=>{let r=this;this._entities.removeById("fullMapRectangle"),e.isRemove=Cesium.defaultValue(e.isRemove,!0),e.duration=Cesium.defaultValue(e.duration,3),e.heading=Cesium.defaultValue(e.heading,0),e.pitch=Cesium.defaultValue(e.pitch,-90),e.range=Cesium.defaultValue(e.range,0);var o=Cesium.Rectangle.fromDegrees(e.west,e.south,e.east,e.north),n=this._entities.add({id:"fullMapRectangle",name:"fullMapRectangle",rectangle:{coordinates:o,material:Cesium.Color.GREEN.withAlpha(0),height:10,outline:!1}});this._viewer.flyTo(n,{duration:e.duration,offset:{heading:Cesium.Math.toRadians(e.heading),pitch:Cesium.Math.toRadians(e.pitch),range:e.range}}).then((function(i){i&&(e.isRemove&&n&&(r._entities.remove(n),n=null),t(!0))})).catch((function(e){console.log(e)}))}))},setMapNorth(){let e=this._viewer,t=Cesium.Math.toDegrees(e.camera.pitch).toFixed(0);var i=e.camera.pickEllipsoid(new Cesium.Cartesian2(e.canvas.clientWidth/2,e.canvas.clientHeight/2)),r=Cesium.Ellipsoid.WGS84.cartesianToCartographic(i);let o=180*r.longitude/Math.PI,n=180*r.latitude/Math.PI,a=180*e.camera.positionCartographic.longitude/Math.PI,s=180*e.camera.positionCartographic.latitude/Math.PI,l=e.camera.positionCartographic.height.toFixed(0);var c=Cesium.Cartographic.fromDegrees(a,s,l),u=Cesium.Cartographic.fromDegrees(o,n,0),d=new Cesium.EllipsoidGeodesic;d.setEndPoints(c,u);var p=d.surfaceDistance;let h=Math.sqrt(Math.pow(p,2)+Math.pow(l-0,2));this.centerEntity&&e.entities.remove(this.centerEntity),this.centerEntity=e.entities.add({position:Cesium.Cartesian3.fromDegrees(o,n,0),point:{color:Cesium.Color.RED,pixelSize:1}});let f=new Cesium.HeadingPitchRange(Cesium.Math.toRadians(0),Cesium.Math.toRadians(t),h);e.zoomTo(this.centerEntity,f)},setMapSpin(e){let t=this,i=this._viewer;var r=i.camera.pickEllipsoid(new Cesium.Cartesian2(i.canvas.clientWidth/2,i.canvas.clientHeight/2)),o=Cesium.Ellipsoid.WGS84.cartesianToCartographic(r);let n=180*o.longitude/Math.PI,a=180*o.latitude/Math.PI,s=0;v(i,[[n,a]]).then((function(r){function o(){let e=parseFloat(Cesium.Math.toDegrees(i.camera.heading).toFixed(2))+.2,r=180*i.camera.positionCartographic.longitude/Math.PI,o=180*i.camera.positionCartographic.latitude/Math.PI,l=i.camera.positionCartographic.height.toFixed(0),c=Cesium.Math.toDegrees(i.camera.pitch).toFixed(0);var u=Cesium.Cartographic.fromDegrees(r,o,l),d=Cesium.Cartographic.fromDegrees(n,a,s),p=new Cesium.EllipsoidGeodesic;p.setEndPoints(u,d);var h=p.surfaceDistance;let f=Math.sqrt(Math.pow(h,2)+Math.pow(l-s,2)),m=new Cesium.HeadingPitchRange(Cesium.Math.toRadians(e),Cesium.Math.toRadians(c),f);i.zoomTo(t.spinEntity,m)}s=r[0].height,t.spinEntity&&i.entities.remove(t.spinEntity),t.spinEntity=i.entities.add({position:Cesium.Cartesian3.fromDegrees(n,a,s),point:{color:Cesium.Color.RED,pixelSize:1}}),e?i.clock.onTick.addEventListener(o):i.clock.onTick.removeEventListener(o)}))},addMobileClick(e){let t=this,i=this._viewer;new Cesium.ScreenSpaceEventHandler(i.scene.canvas).setInputAction((function(r){i.entities.removeAll();var o=i.scene.pickPosition(r.position),n=Cesium.Cartographic.fromCartesian(o),a=Cesium.Math.toDegrees(n.longitude),s=Cesium.Math.toDegrees(n.latitude),l=n.height;l<0&&(l=0);const c=a,u=s,d=l+.5;t.third=e,t.third&&(t.thirdObj={x:c,y:u,z:d,heading:i.scene.camera.heading,pitch:i.scene.camera.pitch,roll:i.scene.camera.roll,position:o},t.changeThird())}),Cesium.ScreenSpaceEventType.LEFT_CLICK)},changeThird(){const e=this;let t=this._viewer;if(e.third){this._viewer.clock.shouldAnimate=!0,t.entities.removeAll();let i=e.thirdObj.x,r=e.thirdObj.y,o=e.thirdObj.z;e.thirdObj.position.x,e.thirdObj.position.y,e.thirdObj.position.z;const n=e.thirdObj.heading,a=e.thirdObj.pitch,s=e.thirdObj.roll,l=Cesium.Cartesian3.fromDegrees(i,r,o),c=new Cesium.HeadingPitchRoll(n,a,s),u=Cesium.Transforms.headingPitchRollQuaternion(l,c),d=t.entities.add({position:l,orientation:u});t.trackedEntity=d,t.entities.add(new Cesium.Entity({point:new Cesium.PointGraphics({color:new Cesium.Color(1,1,0),pixelSize:6,outlineColor:new Cesium.Color(0,1,1)}),position:l})),setTimeout((()=>{var e=l;let i=new Cesium.HeadingPitchRange(Cesium.Math.toRadians(n),Cesium.Math.toRadians(a),5e3);t.camera.lookAt(e,i)}),100)}else t.entities.removeAll()},rotateCamera(e){let t=this._viewer;e={lng:116.404125,lat:39.914714,pitch:-35,height:400},new Cesium.ScreenSpaceEventHandler(t.scene.canvas).setInputAction((function(i){t.entities.removeAll();var r=t.scene.pickPosition(i.position),o=Cesium.Cartographic.fromCartesian(r),n=Cesium.Math.toDegrees(o.longitude),a=Cesium.Math.toDegrees(o.latitude);o.height,v(t,[[n,a]]).then((function(i){i[0].height,e.lng=n,e.lat=a;var r=Cesium.Cartesian3.fromDegrees(e.lng,e.lat,0),o=Cesium.Math.toRadians(e.pitch),s=Cesium.JulianDate.fromDate(new Date),l=Cesium.JulianDate.addSeconds(s,10,new Cesium.JulianDate);t.clock.startTime=s.clone(),t.clock.stopTime=l.clone(),t.clock.currentTime=s.clone(),t.clock.clockRange=Cesium.ClockRange.CLAMPED,t.clock.clockStep=Cesium.ClockStep.SYSTEM_CLOCK,t.camera.heading,t.entities.add(new Cesium.Entity({point:new Cesium.PointGraphics({color:new Cesium.Color(1,1,0),pixelSize:6,outlineColor:new Cesium.Color(0,1,1)}),position:r}));var c=function(){Cesium.JulianDate.secondsDifference(t.clock.currentTime,t.clock.startTime);let e=parseFloat(Cesium.Math.toDegrees(t.camera.heading).toFixed(2))+.2,i=new Cesium.HeadingPitchRange(Cesium.Math.toRadians(e),o,500);t.camera.lookAt(r,i),Cesium.JulianDate.compare(t.clock.currentTime,t.clock.stopTime)>=0&&t.clock.onTick.removeEventListener(c)};t.clock.onTick.addEventListener(c)}))}),Cesium.ScreenSpaceEventType.LEFT_CLICK)},rotateCamera2(e){let t=this._viewer;e={lng:116.404125,lat:39.914714,pitch:-35,height:400},new Cesium.ScreenSpaceEventHandler(t.scene.canvas).setInputAction((function(i){t.entities.removeAll();var r=t.scene.pickPosition(i.position),o=Cesium.Cartographic.fromCartesian(r),n=Cesium.Math.toDegrees(o.longitude),a=Cesium.Math.toDegrees(o.latitude),s=o.height;v(t,[[n,a]]).then((function(i){s=i[0].height,e.lng=n,e.lat=a;var r=Cesium.Cartesian3.fromDegrees(e.lng,e.lat,0);Cesium.Math.toRadians(e.pitch);var o=Cesium.JulianDate.fromDate(new Date);Cesium.JulianDate.addSeconds(o,10,new Cesium.JulianDate),t.camera.heading,t.entities.add(new Cesium.Entity({point:new Cesium.PointGraphics({color:new Cesium.Color(1,1,0),pixelSize:6,outlineColor:new Cesium.Color(0,1,1)}),position:r}));var l=function(){let e=parseFloat(Cesium.Math.toDegrees(t.camera.heading).toFixed(2))+.2,i=180*t.camera.positionCartographic.longitude/Math.PI,r=180*t.camera.positionCartographic.latitude/Math.PI,o=t.camera.positionCartographic.height.toFixed(0),c=Cesium.Math.toDegrees(t.camera.pitch).toFixed(0);var u=Cesium.Cartographic.fromDegrees(i,r,o),d=Cesium.Cartographic.fromDegrees(n,a,s),p=new Cesium.EllipsoidGeodesic;p.setEndPoints(u,d);var h=p.surfaceDistance;let f=Math.sqrt(Math.pow(h,2)+Math.pow(o-s,2)),m=new Cesium.HeadingPitchRange(Cesium.Math.toRadians(e),Cesium.Math.toRadians(c),f);t.zoomTo(_,m),t.scene.camera.moveBackward(f),Cesium.JulianDate.compare(t.clock.currentTime,t.clock.stopTime)>=0&&t.clock.onTick.removeEventListener(l)};t.clock.onTick.addEventListener(l)}))}),Cesium.ScreenSpaceEventType.LEFT_CLICK)},mapRotationToPoint:function(e){let t=this._viewer;function i(){let e=parseFloat(Cesium.Math.toDegrees(t.camera.heading).toFixed(2))+.2,i=180*t.camera.positionCartographic.longitude/Math.PI,r=180*t.camera.positionCartographic.latitude/Math.PI,o=t.camera.positionCartographic.height.toFixed(0),n=Cesium.Math.toDegrees(t.camera.pitch).toFixed(0);var a=Cesium.Cartographic.fromDegrees(i,r,o),s=Cesium.Cartographic.fromDegrees(b,y,w),l=new Cesium.EllipsoidGeodesic;l.setEndPoints(a,s);var c=l.surfaceDistance;let u=Math.sqrt(Math.pow(c,2)+Math.pow(o-w,2)),d=new Cesium.HeadingPitchRange(Cesium.Math.toRadians(e),Cesium.Math.toRadians(n),u);t.zoomTo(_,d)}new Cesium.ScreenSpaceEventHandler(t.scene.canvas).setInputAction((function(r){t.entities.removeAll();var o=t.scene.pickPosition(r.position),n=Cesium.Cartographic.fromCartesian(o),a=Cesium.Math.toDegrees(n.longitude);Cesium.Math.toDegrees(n.latitude);var s=n.height;s<0&&(s=0);let l=180*t.camera.positionCartographic.longitude/Math.PI,c=180*t.camera.positionCartographic.latitude/Math.PI,u=t.camera.positionCartographic.height.toFixed(0);parseFloat(Cesium.Math.toDegrees(t.camera.heading)).toFixed(2),Cesium.Math.toDegrees(t.camera.pitch).toFixed(2),b=n,y=a,w=s;var d=Cesium.Cartographic.fromDegrees(l,c,u),p=Cesium.Cartographic.fromDegrees(b,y,w),h=new Cesium.EllipsoidGeodesic;h.setEndPoints(d,p),h.surfaceDistance,_&&t.entities.remove(_),_=t.entities.add({position:Cesium.Cartesian3.fromDegrees(b,y,w),point:{color:Cesium.Color.RED,pixelSize:1}}),e?t.clock.onTick.addEventListener(i):t.clock.onTick.removeEventListener(i)}),Cesium.ScreenSpaceEventType.LEFT_CLICK)},mapSpinRotate(){let e=parseFloat(Cesium.Math.toDegrees(viewer.camera.heading).toFixed(2))+.2,t=180*viewer.camera.positionCartographic.longitude/Math.PI,i=180*viewer.camera.positionCartographic.latitude/Math.PI,r=viewer.camera.positionCartographic.height.toFixed(0),o=Cesium.Math.toDegrees(viewer.camera.pitch).toFixed(0);var n=Cesium.Cartographic.fromDegrees(t,i,r),a=Cesium.Cartographic.fromDegrees(b,y,w),s=new Cesium.EllipsoidGeodesic;s.setEndPoints(n,a);var l=s.surfaceDistance;let c=Math.sqrt(Math.pow(l,2)+Math.pow(r-w,2)),u=new Cesium.HeadingPitchRange(Cesium.Math.toRadians(e),Cesium.Math.toRadians(o),c);viewer.zoomTo(_,u)}});const k=52.35987755982988,T=3.141592653589793,E=.006693421622965943;class A{static BD09ToGCJ02(e,t){let i=+e-.0065,r=+t-.006,o=Math.sqrt(i*i+r*r)-2e-5*Math.sin(r*k),n=Math.atan2(r,i)-3e-6*Math.cos(i*k);return[o*Math.cos(n),o*Math.sin(n)]}static GCJ02ToBD09(e,t){t=+t,e=+e;let i=Math.sqrt(e*e+t*t)+2e-5*Math.sin(t*k),r=Math.atan2(t,e)+3e-6*Math.cos(e*k);return[i*Math.cos(r)+.0065,i*Math.sin(r)+.006]}static WGS84ToGCJ02(e,t){if(t=+t,e=+e,this.out_of_china(e,t))return[e,t];{let i=this.delta(e,t);return[e+i[0],t+i[1]]}}static GCJ02ToWGS84(e,t){if(t=+t,e=+e,this.out_of_china(e,t))return[e,t];{let i=this.delta(e,t);return[2*e-(e+i[0]),2*t-(t+i[1])]}}static delta(e,t){let i=this.transformLng(e-105,t-35),r=this.transformLat(e-105,t-35);const o=t/180*T;let n=Math.sin(o);n=1-E*n*n;const a=Math.sqrt(n);return i=180*i/(6378245/a*Math.cos(o)*T),r=180*r/(6378245*(1-E)/(n*a)*T),[i,r]}static transformLng(e,t){let i=300+(e=+e)+2*(t=+t)+.1*e*e+.1*e*t+.1*Math.sqrt(Math.abs(e));return i+=2*(20*Math.sin(6*e*T)+20*Math.sin(2*e*T))/3,i+=2*(20*Math.sin(e*T)+40*Math.sin(e/3*T))/3,i+=2*(150*Math.sin(e/12*T)+300*Math.sin(e/30*T))/3,i}static transformLat(e,t){let i=2*(e=+e)-100+3*(t=+t)+.2*t*t+.1*e*t+.2*Math.sqrt(Math.abs(e));return i+=2*(20*Math.sin(6*e*T)+20*Math.sin(2*e*T))/3,i+=2*(20*Math.sin(t*T)+40*Math.sin(t/3*T))/3,i+=2*(160*Math.sin(t/12*T)+320*Math.sin(t*T/30))/3,i}static out_of_china(e,t){return t=+t,!((e=+e)>73.66&&e<135.05&&t>3.86&&t<53.55)}static getCatesian3FromPX(e,t){let i=e.scene.drillPick(t),r=null,o=!1,n=!1;for(let s in i){let n=i[s];if((n&&n.primitive instanceof Cesium.Cesium3DTileFeature||n&&n.primitive instanceof Cesium.Cesium3DTileset||n&&n.primitive instanceof Cesium.Model)&&(o=!0),o&&(e.scene.pick(t),r=e.scene.pickPosition(t),r)){let e=Cesium.Cartographic.fromCartesian(r);e.height<0&&(e.height=0);let t=Cesium.Math.toDegrees(e.longitude),i=Cesium.Math.toDegrees(e.latitude),o=e.height;r=this.transformWGS84ToCartesian({lng:t,lat:i,alt:o})}}let a=e.terrainProvider instanceof Cesium.EllipsoidTerrainProvider;if(!o&&!a){let i=e.scene.camera.getPickRay(t);if(!i)return null;r=e.scene.globe.pick(i,e.scene),n=!0}if(o||n||!a||(r=e.scene.camera.pickEllipsoid(t,e.scene.globe.ellipsoid)),r){let e=this.transformCartesianToWGS84(r);return e.alt<0&&(r=this.transformWGS84ToCartesian(e,.1)),r}return!1}static transformWGS84ToCartesian(e,t){return e?Cesium.Cartesian3.fromDegrees(e.lng||e.lon,e.lat,e.alt=t||e.alt,Cesium.Ellipsoid.WGS84):Cesium.Cartesian3.ZERO}static transformCartesianToWGS84(e){let t=Cesium.Ellipsoid.WGS84.cartesianToCartographic(e);return{lng:Cesium.Math.toDegrees(t.longitude),lat:Cesium.Math.toDegrees(t.latitude),alt:t.height}}static Cartesian3ListToWGS84(e){let t=Cesium.Ellipsoid.WGS84,i=[];for(let r=0;r{this._transformProjection(r)}));let o=this._addImageryProvider(e.id,r);this.setLayersStyle({serviceId:o,alpha:e.alpha}),t&&t(o)},addTileMapServiceImagery:function(e,t){if(!Cesium.defined(e)||!Cesium.defined(e.url))throw new Cesium.DeveloperError("options.url is required.");e.id=e.id||this._guid();let i={url:e.url};e.minimumLevel&&(i.minimumLevel=e.minimumLevel),e.maximumLevel&&(i.maximumLevel=e.maximumLevel);var r=new Cesium.TileMapServiceImageryProvider(i);let o=this._addImageryProvider(e.id,r);this.setLayersStyle({serviceId:o,alpha:e.alpha}),t&&t(o)},addWebMapTileService:function(e,t){if(!Cesium.defined(e)||!Cesium.defined(e.url))throw new Cesium.DeveloperError("options.url is required.");if(!Cesium.defined(e.layers))throw new Cesium.DeveloperError("options.layers is required.");if(!Cesium.defined(e.style))throw new Cesium.DeveloperError("options.style is required.");if(!Cesium.defined(e.tileMatrixSetID))throw new Cesium.DeveloperError("options.tileMatrixSetID is required.");e.id=e.id||this._guid();let i={url:e.url,layer:e.layers,style:e.style,tileMatrixSetID:e.tileMatrixSetID,format:Cesium.defaultValue(e.format,"image/png")};e.tileMatrixLabels&&(i.tileMatrixLabels=e.tileMatrixLabels),e.minimumLevel&&(i.minimumLevel=e.minimumLevel),e.maximumLevel&&(i.maximumLevel=e.maximumLevel);let r=new Cesium.WebMapTileServiceImageryProvider(i),o=this._addImageryProvider(e.id,r);this.setLayersStyle({serviceId:o,alpha:e.alpha}),t&&t(o)},addWebMapService:function(e,t){if(!Cesium.defined(e)||!Cesium.defined(e.url))throw new Cesium.DeveloperError("options.url is required.");if(!Cesium.defined(e.layers))throw new Cesium.DeveloperError("options.layers is required.");e.id=e.id||this._guid();let i={url:e.url,layer:e.layers,parameters:{transparent:!0,request:"GetMap",format:"image/png"}};e.minimumLevel&&(i.minimumLevel=e.minimumLevel),e.maximumLevel&&(i.maximumLevel=e.maximumLevel);let r=new Cesium.WebMapServiceImageryProvider(i),o=this._addImageryProvider(e.id,r);this.setLayersStyle({serviceId:o,alpha:e.alpha}),t&&t(o)},addArcGisMapServer:function(e,t){if(!Cesium.defined(e)||!Cesium.defined(e.url))throw new Cesium.DeveloperError("options.url is required.");e.id=e.id||this._guid();let i={url:e.url};e.layers&&(i.layers=e.layers);let r=new Cesium.ArcGisMapServerImageryProvider(i),o=this._addImageryProvider(e.id,r);this.setLayersStyle({serviceId:o,alpha:e.alpha}),t&&t(o)},addCesium3DTileset:function(e,t){if(!Cesium.defined(e)||!Cesium.defined(e.url))throw new Cesium.DeveloperError("options.url is required.");e.id=e.id||this._guid();let i={url:e.url,skipLevelOfDetail:!0},r=new Cesium.Cesium3DTileset(i),o=this._addScenePrimitives(e.id,r);this.set3DTilePosition({serviceId:o,height:e.height}),this.set3DTileStyle({serviceId:o,alpha:e.alpha}),t&&t(o)},addCesium3DTilesetBm:function(e,t){if(!Cesium.defined(e)||!Cesium.defined(e.url))throw new Cesium.DeveloperError("options.url is required.");e.id=e.id||this._guid();let i=new Cesium.Cesium3DTileset({url:e.url,skipLevelOfDetail:!0}),r=this._addScenePrimitives(e.id,i);this.set3DTileBMStyle({serviceId:r,color:e.color}),t&&t(r)},addPolygonImageMaterial:function(e,t){if(!Cesium.defined(e.points))throw new Cesium.DeveloperError("options.points is required.");e.points.length<3&&reject("面对象,点数至少3个");let i=[];i=e.points instanceof Cesium.Cartesian3?e.points:e.points.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0))),e.id=e.id||this._guid(),e.alpha=e.alpha||1,this.classificationType=Cesium.ClassificationType.BOTH,"Terrain"===e.classificationType?this.classificationType=Cesium.ClassificationType.TERRAIN:"3DTiles"===e.classificationType&&(this.classificationType=Cesium.ClassificationType.CESIUM_3D_TILE),e.url?(Cesium.Entity.supportsMaterialsforEntitiesOnTerrain(this._viewer.scene)||window.alert("Terrain Entity materials are not supported on this platform"),this.material=new Cesium.ImageMaterialProperty({image:e.url,repeat:Cesium.Cartesian2(1,1),transparent:!0,color:Cesium.Color.WHITE.withAlpha(e.alpha)})):this.material=Cesium.Color.RED.withAlpha(e.alpha),window[e.id]=this._viewer.entities.add({id:e.id,polygon:{hierarchy:i,material:this.material,classificationType:this.classificationType}}),t&&t(e.id)},addEntitiesGltf:function(e,t){let i,r=this._viewer;if(!Cesium.defined(e.points))throw resolve("options.points is required."),new Cesium.DeveloperError("options.points is required.");if(!Cesium.defined(e.url))throw resolve("options.url is required."),new Cesium.DeveloperError("options.url is required.");e.id=e.id||this._guid(),e.heading=Cesium.defaultValue(e.heading,0),e.pitch=Cesium.defaultValue(e.pitch,0),e.roll=Cesium.defaultValue(e.roll,0),e.alpha=Cesium.defaultValue(e.alpha,1),i=e.points instanceof Cesium.Cartesian3?e.points:Cesium.Cartesian3.fromDegrees(e.points[0],e.points[1],e.points[2]||0);var o=Cesium.Math.toRadians(e.heading),n=e.pitch,a=e.roll,s=new Cesium.HeadingPitchRoll(o,n,a),l=r.entities.add({id:e.id,position:i,orientation:Cesium.Transforms.headingPitchRollQuaternion(i,s),model:{uri:e.url,incrementallyLoadTextures:!0,colorBlendMode:Cesium.ColorBlendMode.HIGHLIGHT,colorBlendAmount:.1,color:Cesium.Color.WHITE.withAlpha(e.alpha),imageBasedLightingFactor:new Cesium.Cartesian2(12,13),runAnimations:!0,show:!0,debugWireframe:!1,debugShowBoundingVolume:!1}});e.minimumPixelSize&&(l.model.minimumPixelSize=e.minimumPixelSize),e.maximumScale&&(l.model.maximumScale=e.maximumScale),e.silhouetteColor&&(l.model.silhouetteColor=new Cesium.Color(e.silhouetteColor[0],e.silhouetteColor[1],e.silhouetteColor[2],e.silhouetteColor[3]||1)),window[e.id]=l,t&&t(e.id)},addScenePrimitivesGltf(e,t){let i,r=this._viewer;if(!Cesium.defined(e.points))throw resolve("options.points is required."),new Cesium.DeveloperError("options.points is required.");if(!Cesium.defined(e.url))throw resolve("options.url is required."),new Cesium.DeveloperError("options.url is required.");e.id=e.id||this._guid(),e.scale=Cesium.defaultValue(e.scale,1),i=e.points instanceof Cesium.Cartesian3?e.points:Cesium.Cartesian3.fromDegrees(e.points[0],e.points[1],e.points[2]||0);const o=Cesium.Transforms.eastNorthUpToFixedFrame(i);let n=r.scene.primitives.add(Cesium.Model.fromGltf({show:!0,url:e.url,modelMatrix:o,lightColor:new Cesium.Cartesian3(10,10,10),debugWireframe:!1,debugShowBoundingVolume:!1}));n.readyPromise.then((function(){var e=Cesium.Matrix4.fromRotationTranslation(Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(0)));Cesium.Matrix4.multiply(n.modelMatrix,e,n.modelMatrix)})),window[e.id]=n,t&&t(e.id)},addPolylineByGeoJson(e,t){let i=this;if(this._viewer,!Cesium.defined(e.url))throw resolve("options.url is required."),new Cesium.DeveloperError("options.url is required.");e.id=e.id||this._guid(),e.clampToGround=Cesium.defaultValue(e.clampToGround,!0),e.width=Cesium.defaultValue(e.width,3),e.minHeigh=Cesium.defaultValue(e.minHeigh,0),e.maxHeigh=Cesium.defaultValue(e.maxHeigh,2e8),Cesium.GeoJsonDataSource.load(e.url,{clampToGround:e.clampToGround}).then((r=>{i._viewer.dataSources.add(r),r.name=e.id;let o=r.entities.values,n=new S(e);for(var a=0;a{e.billboard={image:o.imgUrl,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,scale:o.scale,pixelOffset:new Cesium.Cartesian2(0,o.pixelOffset),disableDepthTestDistance:Number.POSITIVE_INFINITY};let t=n.text;e.properties[n.textField]&&(t=e.properties[n.textField]._value),""===t&&(t=(i+1).toString()),e.label={text:t.toString(),font:n.font,fillColor:n.fillColor,outlineColor:n.outlineColor,outlineWidth:n.outlineWidth,style:Cesium.LabelStyle.FILL_AND_OUTLINE,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,showBackground:n.showBackground,backgroundColor:n.backgroundColor,backgroundPadding:new Cesium.Cartesian2(6,6),disableDepthTestDistance:Number.POSITIVE_INFINITY,pixelOffset:new Cesium.Cartesian2(0,n.pixelOffset),scale:n.scale},n.scaleByDistance&&(n.scaleByDistance.near=Cesium.defaultValue(n.scaleByDistance.near,0),n.scaleByDistance.nearValue=Cesium.defaultValue(n.scaleByDistance.nearValue,0),n.scaleByDistance.far=Cesium.defaultValue(n.scaleByDistance.far,1),n.scaleByDistance.farValue=Cesium.defaultValue(n.scaleByDistance.farValue,0),e.label.scaleByDistance=new Cesium.NearFarScalar(n.scaleByDistance.near,n.scaleByDistance.nearValue,n.scaleByDistance.far,n.scaleByDistance.farValue))})),t&&t(e.id)}))}}),Object.assign(P.prototype,{set3DTileStyle(e){if(!Cesium.defined(e)||!Cesium.defined(e.serviceId))throw new Cesium.DeveloperError("options.serviceId is required.");Cesium.defined(e.alpha)&&Cesium.Check.typeOf.number("alpha",e.alpha),e.alpha=Cesium.defaultValue(e.alpha,1),window[e.serviceId].style=new Cesium.Cesium3DTileStyle({color:"color('rgba(255,255,255,"+e.alpha+")')"})},set3DTileBMStyle:function(e){if(!Cesium.defined(e)||!Cesium.defined(e.serviceId))throw new Cesium.DeveloperError("options.serviceId is required.");e.color=e.color?"vec4("+e.color[0]+"/255, "+e.color[1]+"/255, "+e.color[2]+"/255, "+e.color[3]+")":"vec4(0.0, 0.58, 0.86, 1.0)",window[e.serviceId].readyPromise.then((t=>{t.boundingSphere.radius,t.boundingSphere.radius>1e4&&t.boundingSphere.radius,t.style=new Cesium.Cesium3DTileStyle({color:e.color}),t.tileVisible.addEventListener((e=>{let t=e.content,i=t.featuresLength;for(let r=0;r{const r=i._sourcePrograms[t],o=i._rendererResources.sourceShaders[r.fragmentShader];let n="";-1!==o.indexOf(" v_positionEC;")?n="v_positionEC":-1!==o.indexOf(" v_pos;")&&(n="v_pos");const a=`vec4(${e.color.toString()})`;i._rendererResources.sourceShaders[r.fragmentShader]=`\n\t\t\t\t\t\t\t\t\t\t\t\t varying vec3 ${n};\n\t\t\t\t\t\t\t\t\t\t\t\t void main(void){\n\t\t\t\t\t\t\t\t\t\t\t\t\tvec4 v_helsing_position = czm_inverseModelView * vec4(${n},1); \n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\tfloat _baseHeight = -30.0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tfloat vtxf_height = v_helsing_position.z - _baseHeight;\n\t\t\t\t\t\t\t\t\t\t\t\t\tfloat stc_pl = fract(czm_frameNumber / 120.0) * 3.14159265 * 2.0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tfloat stc_sd = vtxf_height / 30.0 + sin(stc_pl) * 0.1;\n\t\t\t\t\t\t\t\t\t\t\t\t\tgl_FragColor = ${a};\n\t\t\t\t\t\t\t\t\t\t\t\t\tgl_FragColor *= vec4(stc_sd, stc_sd, stc_sd, 1.0);\n\t\t\t\t\t\t\t\t\t\t\t\t\t/* 扫描线 */\n\t\t\t\t\t\t\t\t\t\t\t\t\tfloat glowRange = 80.0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tfloat stc_a13 = fract(czm_frameNumber / 460.0);\n\t\t\t\t\t\t\t\t\t\t\t\t\tfloat stc_h = clamp(v_helsing_position.z / glowRange, 0.0, 1.0);\n\t\t\t\t\t\t\t\t\t\t\t\t\tstc_a13 = abs(stc_a13 - 0.5) * 1.0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tfloat stc_diff = step(0.003, abs(stc_h - stc_a13));\n\t\t\t\t\t\t\t\t\t\t\t\t\tgl_FragColor.rgb += gl_FragColor.rgb * (1.0 - stc_diff);\n\t\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t\t\t`})),i._shouldRegenerateShaders=!0)}}))})),this._viewer.scene.requestRender()},set3DTilePosition:function(e){if(!Cesium.defined(e)||!Cesium.defined(e.serviceId))throw new Cesium.DeveloperError("options.serviceId is required.");window[e.serviceId].readyPromise.then((function(){let t=window[e.serviceId].boundingSphere,i=Cesium.Cartographic.fromCartesian(t.center);e.height=Cesium.defaultValue(e.height,15);let r=Cesium.Cartesian3.fromRadians(i.longitude,i.latitude,e.height),o=Cesium.Cartesian3.fromRadians(i.longitude,i.latitude,0),n=Cesium.Cartesian3.subtract(r,o,new Cesium.Cartesian3);window[e.serviceId].modelMatrix=Cesium.Matrix4.fromTranslation(n)})),this._viewer.scene.requestRender()},setLayersStyle(e){if(!Cesium.defined(e)||!Cesium.defined(e.serviceId))throw new Cesium.DeveloperError("options.serviceId is required.");let t=window[e.serviceId];Cesium.defined(e.alpha)&&Cesium.Check.typeOf.number("alpha",e.alpha),e.alpha=Cesium.defaultValue(e.alpha,1),t.alpha=e.alpha,Cesium.defined(e.brightness)&&Cesium.Check.typeOf.number("brightness",e.brightness),e.brightness=Cesium.defaultValue(e.brightness,1),t.brightness=e.brightness,Cesium.defined(e.contrast)&&Cesium.Check.typeOf.number("contrast",e.contrast),e.contrast=Cesium.defaultValue(e.contrast,1),t.contrast=e.contrast,Cesium.defined(e.gamma)&&Cesium.Check.typeOf.number("gamma",e.gamma),e.gamma=Cesium.defaultValue(e.gamma,1),t.gamma=e.gamma,Cesium.defined(e.hue)&&Cesium.Check.typeOf.number("hue",e.hue),e.hue=Cesium.defaultValue(e.hue,0),t.hue=e.hue,Cesium.defined(e.saturation)&&Cesium.Check.typeOf.number("saturation",e.saturation),e.saturation=Cesium.defaultValue(e.saturation,1),t.saturation=e.saturation},setPolygonImageMaterial(e){Cesium.defined(e.alpha)&&Cesium.Check.typeOf.number("alpha",e.alpha),e.alpha=Cesium.defaultValue(e.alpha,1),window[e.serviceId].polygon.material.color._value.alpha=e.alpha},setModelStyle(e){Cesium.defined(e.alpha)&&Cesium.Check.typeOf.number("alpha",e.alpha),e.alpha=Cesium.defaultValue(e.alpha,1);let t=window[e.serviceId];t.model?t.model.color._value.alpha=e.alpha:t.color._value.alpha=e.alpha},setTerrainExaggeration(e){Cesium.defined(e.terrainExaggeration)&&Cesium.Check.typeOf.number("terrainExaggeration",e.terrainExaggeration),e.terrainExaggeration=Cesium.defaultValue(e.terrainExaggeration,1),this._viewer.scene.globe.terrainExaggeration=e.terrainExaggeration}}),Object.assign(P.prototype,{removeImageryProvider(e){return new Promise(((t,i)=>{if(!Cesium.defined(e)||!Cesium.defined(e.serviceId))throw new Cesium.DeveloperError("options.serviceId is required.");this._removeImageryProvider(e.serviceId),t(!0)}))},removeTerrain(){return new Promise(((e,t)=>{this._setEllipsoidTerrain(),e(!0)}))},removeScenePrimitives(e){return new Promise(((t,i)=>{if(!Cesium.defined(e)||!Cesium.defined(e.serviceId))throw new Cesium.DeveloperError("options.serviceId is required.");this._removeScenePrimitives(e.serviceId),t(!0)}))},removeEntity(e){return new Promise(((t,i)=>{if(!Cesium.defined(e)||!Cesium.defined(e.serviceId))throw new Cesium.DeveloperError("options.serviceId is required.");this._viewer.entities.remove(window[e.serviceId]),window[e.serviceId]=null,t(!0)}))},removeDataSources(e){let t=this._viewer;return new Promise(((i,r)=>{if(!Cesium.defined(e)||!Cesium.defined(e.serviceId))throw new Cesium.DeveloperError("options.serviceId is required.");let o=t.dataSources.getByName(e.serviceId);o.forEach(((e,r)=>{t.dataSources.remove(e),r===o.length-1&&i(!0)}))}))}}),Date.prototype.Format=function(e){var t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var i in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),t)new RegExp("("+i+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?t[i]:("00"+t[i]).substr((""+t[i]).length)));return e};class I{constructor({viewer:e,url:t,opacity:i=.75,show:r=!0}={}){this._viewer=e,this._url=t,this._opacity=i,this._renderName=this._guid();let o=new Cesium.CustomDataSource(this._renderName);this._viewer.dataSources.add(o),this._entities=o.entities,this._renderEntities=new Map,this._isUpdateTile=r,this._isDebug=!1,this._init()}_init(){let e=this;this._provider=new Cesium.ArcGisMapServerImageryProvider({url:e._url}),this._provider.readyPromise.then((function(t){e._rectangle=e._provider.rectangle,e._isDebug&&e._printDebug(),e._viewer.scene.postRender.addEventListener((()=>{e._isUpdateTile&&(e._isUpdateTile=!1,e._renderTiles())}))}))}_guid(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}_printDebug(){this._provider.tilingScheme;let e=new Cesium.GeographicTilingScheme;this._drawDebugRectangle(this._rectangle,Cesium.Color.GREEN),e.tileXYToRectangle(1696,312,10)}_drawDebugRectangle(e,t){let i=this._calculateRectangleOutlineCoordinates(e),r=new Cesium.Entity({name:this._renderName,polyline:{positions:i,material:t,width:10,clampToGround:!0}});this._entities.add(r)}_console(...e){this._isDebug&&console.log("==="+(new Date).Format("yyyy-MM-dd HH:mm:ss")+">>>",e)}_renderTiles(){let e=this,t=this._viewer.scene.globe._surface._tilesToRender;void 0!==t&&0!==t.length?new Promise(((e,i)=>{t.sort((function(e,t){return parseInt(e.level)-parseInt(t.level)})),e(t)})).then((t=>{e._asyncProjectionTiles(t)})):this._isUpdateTile=!0}_createKey(e,t,i){return`${this._renderName}_${e}_${t}_${i}`}_asyncProjectionTiles(e){let t=[];for(let o of e){let e=this._projectionTile(o);for(let i of e){let e=this._createKey(i.x,i.y,i.level);if(void 0===t.find((e=>e.x===i.x&&e.y===i.y))){let r=!1;for(let o of t)if(Cesium.Rectangle.intersection(o.rectangle,i.rectangle)){o.childTiles.push(e),r=!0;break}r||t.push({key:e,x:i.x,y:i.y,level:i.level,rectangle:i.rectangle,childTiles:[]})}}}let i=t.length,r=[];for(;i--;){let e=t[i];if(e.childTiles.length>=1){let o=this._createFourTiles(e);for(let e of o)r.push(e);t.splice(i,1)}}for(let o of r)t.push(o);t.sort((function(e,t){return parseInt(e.level)-parseInt(t.level)})),this._renderTilesToViewer(t)}_createTileByRectangleAndLevel(e,t){let i=Cesium.Rectangle.center(e),r=parseInt(t)+1,o=this._provider.tilingScheme.positionToTileXY(i,r);if(void 0!==o)return{key:this._createKey(o.x,o.y,r),x:o.x,y:o.y,level:r,rectangle:e,childTiles:[]}}_createFourTiles(e){let t=[],i=[],r=e.rectangle;t.push(Cesium.Rectangle.subsection(r,0,0,.5,.5)),t.push(Cesium.Rectangle.subsection(r,.5,0,1,.5)),t.push(Cesium.Rectangle.subsection(r,0,.5,.5,1)),t.push(Cesium.Rectangle.subsection(r,.5,.5,1,1));for(let o of t)if(Cesium.Rectangle.intersection(o,this._rectangle)){let t=this._createTileByRectangleAndLevel(o,e.level);void 0!==t&&i.push(t)}return i}_renderTilesToViewer(e){let t=this,i=[];for(let[r,o]of this._renderEntities){void 0===e.find((e=>e.key===r))&&i.push(r)}for(let r of i)this._renderEntities.delete(r),this._entities.removeById(r);for(let r of e)if(!this._renderEntities.has(r.key)){let e=this._renderSimpleTileToViewer(r);this._renderEntities.set(r.key,e);let i=new Blob([`(${M.toString()})()`]),o=new Worker(URL.createObjectURL(i));o.postMessage({key:r.key,url:this._url,x:r.x,y:r.y,level:r.level}),o.onmessage=function(e){t._console(`render x:${e.data.x} y:${e.data.y} level:${e.data.level}`);let i=t._entities.getById(e.data.key);if(void 0!==i){e.data.key;const r=t._createCanvas(e.data,e.data.image,t._isDebug);i.rectangle.material=r}o.terminate()}}this._isUpdateTile=!0}_renderSimpleTileToViewer(e){const t=this._createCanvas(e,void 0,this._isDebug);let i=this._calculateRectangleOutlineCoordinates(e.rectangle),r=new Cesium.Entity({name:this._renderName,id:e.key,rectangle:{coordinates:e.rectangle,material:t},polyline:{positions:i,material:Cesium.Color.YELLOW.withAlpha(this._isDebug?1:0),width:1,clampToGround:!0}});return this._entities.add(r)}_createCanvas(e,t,i){let r=this._provider;const o=document.createElement("canvas");o.width=r.tileWidth,o.height=r.tileHeight;const n=o.getContext("2d");return void 0!==t&&(n.globalAlpha=this._opacity,n.drawImage(event.data.image,0,0,o.width,o.height)),void 0!==i&&!0===i&&(n.globalAlpha=1,n.font="20px Arial",n.textAlign="center",n.fillStyle="rgba(255,255,0)",n.strokeStyle="rgba(255,255,255,1)",n.lineWidth=2,n.strokeText(`L: ${e.level}`,126,86),n.fillText(`L: ${e.level}`,126,86),n.strokeText(`X: ${e.x}`,126,136),n.fillText(`X: ${e.x}`,126,136),n.strokeText(`Y: ${e.y}`,126,186),n.fillText(`Y: ${e.y}`,126,186)),o}_projectionTile(e){let t=e._rectangle,i=parseInt(e.level),r=this._provider.tilingScheme,o=[];if(void 0===Cesium.Rectangle.intersection(t,this._rectangle))return o;let n=r.positionToTileXY(Cesium.Rectangle.northwest(t),i),a=r.positionToTileXY(Cesium.Rectangle.southeast(t),i);if(void 0!==n&&void 0!==a)for(let s=n.x;s<=a.x;s++)for(let e=n.y;e<=a.y;e++){let t=r.tileXYToRectangle(s,e,i);Cesium.Rectangle.intersection(t,this._rectangle)&&o.push({x:s,y:e,level:i,rectangle:t})}else if(void 0!==n){let e=r.tileXYToRectangle(n.x,n.y,i);Cesium.Rectangle.intersection(e,this._rectangle)&&o.push({x:n.x,y:n.y,level:i,rectangle:e})}else if(void 0!==a){let e=r.tileXYToRectangle(a.x,a.y,i);Cesium.Rectangle.intersection(e,this._rectangle)&&o.push({x:a.x,y:a.y,level:i,rectangle:e})}return o}_calculateRectangleOutlineCoordinates(e){let t=Cesium.Rectangle.southeast(e),i=Cesium.Cartographic.toCartesian(t),r=Cesium.Rectangle.southwest(e),o=Cesium.Cartographic.toCartesian(r),n=Cesium.Rectangle.northeast(e),a=Cesium.Cartographic.toCartesian(n),s=Cesium.Rectangle.northwest(e);return[o,i,a,Cesium.Cartographic.toCartesian(s),o]}_removeEntityByName(e){var t=this._entities;if(t&&t.values){for(var i=[],r=0;r>>",i+" Not found")},r.send()}}Object.assign(I.prototype,{hide:function(){this._console("隐藏"),this._isUpdateTile=!1,this._removeEntityByName(this._renderName),this._renderEntities.clear()},show:function(){this._console("显示"),this._isUpdateTile=!0},setOpacity:function(e){void 0!==e&&"number"==typeof e&&(e>=1&&(this._opacity=1),e<=0&&(this._opacity=0),this._opacity=parseFloat(e))}});class D{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._locationEntity=null}}Object.assign(D.prototype,{flyToPoint:function(e){return new Promise(((t,i)=>{if(!Cesium.defined(e)||!Cesium.defined(e.longitude)||!Cesium.defined(e.latitude))throw new Cesium.DeveloperError("options.longitude and options.latitude are required.");e.height=Cesium.defaultValue(e.height,0),e.heading=Cesium.defaultValue(e.heading,0),e.pitch=Cesium.defaultValue(e.pitch,-90),e.range=Cesium.defaultValue(e.range,0),e.duration=Cesium.defaultValue(e.duration,3);var r=new Cesium.BoundingSphere(Cesium.Cartesian3.fromDegrees(e.longitude,e.latitude,e.height),0);this._viewer.camera.flyToBoundingSphere(r,{duration:e.duration,complete:function(){t(!0)},offset:{heading:Cesium.Math.toRadians(e.heading),pitch:Cesium.Math.toRadians(e.pitch),range:e.range}})}))},flyToEntityByPoints:function(e,t,i){return new Promise(((r,o)=>{let n=this;if(i=i||{},void 0===e||void 0===e.length)return void o("输入的坐标集合异常!");let a=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));switch(n._locationEntity&&n._viewer.entities.remove(n._locationEntity),t){case"point":n._locationEntity=n._viewer.entities.add({position:a[0],point:{pixelSize:1}});break;case"polyline":a.length<2?o("线对象定位,点数至少2个"):n._locationEntity=n._viewer.entities.add({polyline:{positions:a,clampToGround:!0,material:new Cesium.Color(255,0,0,.5),width:1}});break;case"polygon":a.length<3?o("面对象定位,点数至少3个"):n._locationEntity=n._viewer.entities.add({polygon:{hierarchy:{positions:a},material:new Cesium.Color(255,0,0,.5),outline:!0}});break;default:o("坐标异常!")}i.duration=Cesium.defaultValue(i.duration,3),i.heading=Cesium.defaultValue(i.heading,0),i.pitch=Cesium.defaultValue(i.pitch,-90),i.range=Cesium.defaultValue(i.range,0),n._viewer.flyTo(n._locationEntity,{duration:i.duration,offset:{heading:Cesium.Math.toRadians(i.heading),pitch:Cesium.Math.toRadians(i.pitch),range:i.range}}).then((function(){r(!0)}))}))},flyToEntity:function(e,t){return new Promise(((i,r)=>{let o=this;t=t||{},o._locationEntity&&o._viewer.entities.remove(o._locationEntity),o._locationEntity=e,t.duration=Cesium.defaultValue(t.duration,3),t.heading=Cesium.defaultValue(t.heading,0),t.pitch=Cesium.defaultValue(t.pitch,-90),t.range=Cesium.defaultValue(t.range,0),o._viewer.flyTo(o._locationEntity,{duration:t.duration,offset:{heading:Cesium.Math.toRadians(t.heading),pitch:Cesium.Math.toRadians(t.pitch),range:t.range}}).then((function(){i(o._locationEntity)}))}))}});const L=function(e,t,i){let r,o,n,a,s=document.getElementById("toolTip");if(e&&"object"==typeof e&&(r=e),r&&r.origin?("center"===r.origin&&(o=15,n=-12),"top"===r.origin&&(o=15,n=-44),"bottom"===r.origin&&(o=15,n=20)):(o=15,n=20),r&&r.color?("white"===r.color&&(a="background: rgba(255, 255, 255, 0.8);color: black;"),"black"===r.color&&(a="background: rgba(0, 0, 0, 0.5);color: white;"),"yellow"===r.color&&(a="color: black;background-color: #ffcc33;border: 1px solid white;")):a="background: rgba(0, 0, 0, 0.5);color: white;",!s){const e=document.getElementsByClassName("cesium-viewer")[0];let t=document.createElement("div");e.append(t);let i='';e.insertAdjacentHTML("beforeend",i),s=document.getElementById("toolTip")}return i?(s.innerHTML=e,s.style.left=t.x+o+"px",s.style.top=t.y+n+"px",s.style.display="block"):s.style.display="none",{tooltip:s,style:r,showAt:function(e,t){this.tooltip.innerHTML=t,this.style&&this.style.origin?("center"===this.style.origin&&(o=15,n=-this.tooltip.offsetHeight/2),"top"===this.style.origin&&(o=15,n=-this.tooltip.offsetHeight-20),"bottom"===this.style.origin&&(o=15,n=20)):(o=15,n=-this.tooltip.offsetHeight/2),this.tooltip.style.left=e.x+o+"px",this.tooltip.style.top=e.y+n+"px",this.tooltip.style.display="block"},show:function(e){this.tooltip.style.display=e?"block":"none"}}};class O{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._resultObject={viewPoint:void 0,targetPoints:[],targetPoint:void 0,objectExclude:[],entities:[]}}_distance(e,t){let i=Cesium.Cartographic.fromCartesian(e),r=Cesium.Cartographic.fromCartesian(t),o=new Cesium.EllipsoidGeodesic;o.setEndPoints(i,r);let n=o.surfaceDistance;return n=Math.sqrt(Math.pow(n,2)+Math.pow(r.height-i.height,2)),n}} /*! * author: [object Object] * @sakitam-gis/kriging v0.1.0 * build-time: 2019-7-6 20:41 * LICENSE: MIT * (c) 2019-2019 https://github.com/sakitam-gis/kriging.js */ function R(e){return Math.max.apply(null,e)}function N(e){return Math.min.apply(null,e)}function B(e,t){for(var i=[],r=0;ri!=e[o][1]>i&&t<(e[o][0]-e[r][0])*(i-e[r][1])/(e[o][1]-e[r][1])+e[r][0]&&(n=!n);return n}function U(e,t){for(var i=0,r=B(0,t*t);i=s&&(s=Math.abs(e[r*t+o]),v=r,g=o);if(++m[g],v!==g){for(n=0;n=0;n--)if(f[n]!==h[n])for(o=0;oi?t+(r-t)/i:t+(r-t)/i*(e/i*1.5-.5*Math.pow(e/i,3))}function Z(e,t,i){var r,o=Array(i.n);for(r=0;r{let r=A.getCatesian3FromPX(e._viewer,i.position);if(t="左键创建视角终点,右键结束通视分析",r)if(e._resultObject.viewPoint){e._resultObject.targetPoint=r;let t=e._viewer.entities.add({position:r,point:{color:Cesium.Color.YELLOW,pixelSize:5},label:{text:"目标位置",font:"12px sans-serif",fillColor:new Cesium.Color(255,255,255,1),outlineColor:new Cesium.Color(0,154,94,1),style:Cesium.LabelStyle.FILL_AND_OUTLINE,outlineWidth:1,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,pixelOffset:new Cesium.Cartesian2(0,-28),showBackground:!0,backgroundColor:new Cesium.Color(0,0,0,.6),disableDepthTestDistance:Number.POSITIVE_INFINITY}});e._resultObject.objectExclude.push(t),e._resultObject.entities.push(t);let i=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(e._resultObject.targetPoint,e._resultObject.viewPoint,new Cesium.Cartesian3),new Cesium.Cartesian3),o=new Cesium.Ray(e._resultObject.viewPoint,i),n=e._viewer.scene.pickFromRay(o,e._resultObject.objectExclude);if(n){let t=e._distance(e._resultObject.viewPoint,e._resultObject.targetPoint),i=e._distance(e._resultObject.viewPoint,n.position),o=e._distance(n.position,e._resultObject.targetPoint);if(console.log(t,i,o),t>i){let a=e._viewer.entities.add({polyline:{positions:[e._resultObject.viewPoint,n.position],material:Cesium.Color.GREEN,width:3}});e._resultObject.entities.push(a);let s=e._viewer.entities.add({polyline:{positions:[n.position,e._resultObject.targetPoint],material:Cesium.Color.RED,width:3}});e._resultObject.entities.push(s),e._resultObject.targetPoints.push({targetPoint:r,visual:!1,distance:[t,i,o]})}else{let n=e._viewer.entities.add({polyline:{positions:[e._resultObject.viewPoint,e._resultObject.targetPoint],material:Cesium.Color.GREEN,width:3}});e._resultObject.entities.push(n),e._resultObject.targetPoints.push({targetPoint:r,visual:!0,distance:[t,i,o]})}}}else{e._resultObject.viewPoint=r;let t=e._viewer.entities.add({position:r,point:{color:Cesium.Color.YELLOW,pixelSize:5},label:{text:"观察位置",font:"12px sans-serif",fillColor:new Cesium.Color(255,255,255,1),outlineColor:new Cesium.Color(0,154,94,1),style:Cesium.LabelStyle.FILL_AND_OUTLINE,outlineWidth:1,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,pixelOffset:new Cesium.Cartesian2(0,-28),showBackground:!0,backgroundColor:new Cesium.Color(0,0,0,.6),disableDepthTestDistance:Number.POSITIVE_INFINITY}});e._resultObject.objectExclude.push(t),e._resultObject.entities.push(t)}}),Cesium.ScreenSpaceEventType.LEFT_CLICK),i.setInputAction((function(e){L(t,e.endPosition,!0)}),Cesium.ScreenSpaceEventType.MOUSE_MOVE),i.setInputAction((e=>{L(t,e.endPosition,!1),i.destroy()}),Cesium.ScreenSpaceEventType.RIGHT_CLICK)},clearAll(){this._resultObject.entities.forEach((e=>{this._viewer.entities.remove(e)})),this._resultObject={viewPoint:void 0,targetPoints:[],targetPoint:void 0,objectExclude:[],entities:[]}}});var X={train:function(e,t,i,r,o,n){var a,s,l,c,u={t:e,x:t,y:i,nugget:0,range:0,sill:0,A:1/3,n:0,model:q,K:[],M:[]};switch(r){case"gaussian":u.model=Y;break;case"exponential":u.model=q;break;case"spherical":u.model=Q;break;default:u.model=q}var d=e.length,p=Array((d*d-d)/2);for(a=0,l=0;a30?30:(d*d-d)/2,f=u.range/h,m=B(0,h),g=B(0,h);if(h<30)for(c=0;c=(d*d-d)/2)););l>0&&(m[c]/=l,g[c]/=l,c++)}if(c<2)return u}d=c,u.range=m[d-1]-m[0];var v=B(1,2*d),_=Array(d),b=u.A;for(a=0;ac[1]&&(c[1]=e[r][o][0]),e[r][o][1]u[1]&&(u[1]=e[r][o][1]);var d=Array(2),p=Array(2),h=Array(2),f=Array(2),m=Math.ceil((c[1]-c[0])/i),g=Math.ceil((u[1]-u[0])/i),v=Array(m+1);for(r=0;r<=m;r++)v[r]=Array(g+1);for(r=0;rh[1]&&(h[1]=e[r][o][0]),e[r][o][1]f[1]&&(f[1]=e[r][o][1]);for(d[0]=Math.floor((h[0]-(h[0]-c[0])%i-c[0])/i),d[1]=Math.ceil((h[1]-(h[1]-c[1])%i-c[0])/i),p[0]=Math.floor((f[0]-(f[0]-u[0])%i-u[0])/i),p[1]=Math.ceil((f[1]-(f[1]-u[1])%i-u[0])/i),o=d[0];o<=d[1];o++)for(n=p[0];n<=p[1];n++)s=c[0]+o*i,l=u[0]+n*i,j(e[r],s,l)&&(v[o][n]=Z(s,l,t))}return{xlim:c,ylim:u,width:i,data:v,zlim:[N(t.t),R(t.t)]}}},plot:function(e,t,i,r,o){var n=e.getContext("2d"),a=t.data,s=t.zlim,l=t.width;if(n){n.clearRect(0,0,e.width,e.height);var c=[i[1]-i[0],r[1]-r[0],s[1]-s[0]],u=void 0,d=void 0,p=void 0,h=void 0,f=void 0,m=a.length,g=a[0].length,v=Math.ceil(l*e.width/(i[1]-i[0])),_=Math.ceil(l*e.height/(r[1]-r[0]));for(u=0;u1&&(f=1),n.fillStyle=o[Math.floor((o.length-1)*f)],n.fillRect(Math.round(p-v/2),Math.round(h-_/2),v,_))}},max:R,min:N,pip:j,rep:B,matrixDiag:U,matrixTranspose:F,matrixAdd:z,matrixMultiply:H,matrixChol:W,matrixChol2inv:V,matrixSolve:G,variogramGaussian:Y,variogramExponential:q,variogramSpherical:Q},K={centimeters:637100880,centimetres:637100880,degrees:6371008.8/111325,feet:20902260.511392,inches:6371008.8*39.37,kilometers:6371.0088,kilometres:6371.0088,meters:6371008.8,metres:6371008.8,miles:3958.761333810546,millimeters:6371008800,millimetres:6371008800,nauticalmiles:6371008.8/1852,radians:1,yards:6371008.8*1.0936};function J(e,t,i){void 0===i&&(i={});var r={type:"Feature"};return(0===i.id||i.id)&&(r.id=i.id),i.bbox&&(r.bbox=i.bbox),r.properties=t||{},r.geometry=e,r}function $(e,t,i){if(void 0===i&&(i={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!ne(e[0])||!ne(e[1]))throw new Error("coordinates must contain numbers");return J({type:"Point",coordinates:e},t,i)}function ee(e,t,i){void 0===i&&(i={});for(var r=0,o=e;re[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function de(e){if(Array.isArray(e))return e;if("Feature"===e.type){if(null!==e.geometry)return e.geometry.coordinates}else if(e.coordinates)return e.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function pe(e){return"Feature"===e.type?e.geometry:e}ce.default=ce;var he="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function fe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function me(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(i){var r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return e[i]}})})),t}var ge={exports:{}};function ve(e,t,i,r,o){_e(e,t,i||0,r||e.length-1,o||ye)}function _e(e,t,i,r,o){for(;r>i;){if(r-i>600){var n=r-i+1,a=t-i+1,s=Math.log(n),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(n-l)/n)*(a-n/2<0?-1:1);_e(e,t,Math.max(i,Math.floor(t-a*l/n+c)),Math.min(r,Math.floor(t+(n-a)*l/n+c)),o)}var u=e[t],d=i,p=r;for(be(e,i,t),o(e[r],u)>0&&be(e,i,r);d0;)p--}0===o(e[i],u)?be(e,i,p):be(e,++p,r),p<=t&&(i=p+1),t<=p&&(r=p-1)}}function be(e,t,i){var r=e[t];e[t]=e[i],e[i]=r}function ye(e,t){return et?1:0}function we(e,t,i){if(!i)return t.indexOf(e);for(let r=0;r=e.minX&&t.maxY>=e.minY}function De(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Le(e,t,i,r,o){const n=[t,i];for(;n.length;){if((i=n.pop())-(t=n.pop())<=r)continue;const a=t+Math.ceil((i-t)/r/2)*r;ve(e,a,t,i,o),n.push(t,a,a,i)}}var Oe=me(Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:class{constructor(e=9){this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(e){let t=this.data;const i=[];if(!Me(e,t))return i;const r=this.toBBox,o=[];for(;t;){for(let n=0;n=0&&o[t].children.length>this._maxEntries;)this._split(o,t),t--;this._adjustParentBBoxes(r,o,t)}_split(e,t){const i=e[t],r=i.children.length,o=this._minEntries;this._chooseSplitAxis(i,o,r);const n=this._chooseSplitIndex(i,o,r),a=De(i.children.splice(n,i.children.length-n));a.height=i.height,a.leaf=i.leaf,xe(i,this.toBBox),xe(a,this.toBBox),t?e[t-1].children.push(a):this._splitRoot(i,a)}_splitRoot(e,t){this.data=De([e,t]),this.data.height=e.height+1,this.data.leaf=!1,xe(this.data,this.toBBox)}_chooseSplitIndex(e,t,i){let r,o=1/0,n=1/0;for(let a=t;a<=i-t;a++){const t=Ce(e,0,a,this.toBBox),s=Ce(e,a,i,this.toBBox),l=Pe(t,s),c=Ae(t)+Ae(s);l=t;l--){const t=e.children[l];ke(a,e.leaf?o(t):t),s+=Se(a)}return s}_adjustParentBBoxes(e,t,i){for(let r=i;r>=0;r--)ke(t[r],e)}_condense(e){for(let t,i=e.length-1;i>=0;i--)0===e[i].children.length?i>0?(t=e[i-1].children,t.splice(t.indexOf(e[i]),1)):this.clear():xe(e[i],this.toBBox)}}}));function Re(e,t){return et?1:0}var Ne=me(Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:class{constructor(e=[],t=Re){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let i=(this.length>>1)-1;i>=0;i--)this._down(i)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;const e=this.data[0],t=this.data.pop();return this.length--,this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:t,compare:i}=this,r=t[e];for(;e>0;){const o=e-1>>1,n=t[o];if(i(r,n)>=0)break;t[e]=n,e=o}t[e]=r}_down(e){const{data:t,compare:i}=this,r=this.length>>1,o=t[e];for(;e=0)break;t[e]=n,e=r}t[e]=o}}})),Be={exports:{}},je=function(e,t,i,r){var o=e[0],n=e[1],a=!1;void 0===i&&(i=0),void 0===r&&(r=t.length);for(var s=(r-i)/2,l=0,c=s-1;ln!=h>n&&o<(p-u)*(n-d)/(h-d)+u&&(a=!a)}return a},Ue=function(e,t,i,r){var o=e[0],n=e[1],a=!1;void 0===i&&(i=0),void 0===r&&(r=t.length);for(var s=r-i,l=0,c=s-1;ln!=h>n&&o<(p-u)*(n-d)/(h-d)+u&&(a=!a)}return a};Be.exports=function(e,t,i,r){return t.length>0&&Array.isArray(t[0])?Ue(e,t,i,r):je(e,t,i,r)},Be.exports.nested=Ue,Be.exports.flat=je;var Fe={exports:{}};!function(e){const t=134217729,i=33306690738754706e-32;function r(e,t,i,r,o){let n,a,s,l,c=t[0],u=r[0],d=0,p=0;u>c==u>-c?(n=c,c=t[++d]):(n=u,u=r[++p]);let h=0;if(dc==u>-c?(s=n-((a=c+n)-c),c=t[++d]):(s=n-((a=u+n)-u),u=r[++p]),n=a,0!==s&&(o[h++]=s);dc==u>-c?(s=n-((a=n+c)-(l=a-n))+(c-l),c=t[++d]):(s=n-((a=n+u)-(l=a-n))+(u-l),u=r[++p]),n=a,0!==s&&(o[h++]=s);for(;d0!=_>0)return b;const y=Math.abs(v+_);return Math.abs(b)>=n*y?b:-function(e,o,n,h,f,m,g){let v,_,b,y,w,x,C,k,T,E,A,S,P,I,M,D,L,O;const R=e-f,N=n-f,B=o-m,j=h-m;w=(M=(k=R-(C=(x=t*R)-(x-R)))*(E=j-(T=(x=t*j)-(x-j)))-((I=R*j)-C*T-k*T-C*E))-(A=M-(L=(k=B-(C=(x=t*B)-(x-B)))*(E=N-(T=(x=t*N)-(x-N)))-((D=B*N)-C*T-k*T-C*E))),l[0]=M-(A+w)+(w-L),w=(P=I-((S=I+A)-(w=S-I))+(A-w))-(A=P-D),l[1]=P-(A+w)+(w-D),w=(O=S+A)-S,l[2]=S-(O-w)+(A-w),l[3]=O;let U=function(e,t){let i=t[0];for(let r=1;r=F||-U>=F)return U;if(v=e-(R+(w=e-R))+(w-f),b=n-(N+(w=n-N))+(w-f),_=o-(B+(w=o-B))+(w-m),y=h-(j+(w=h-j))+(w-m),0===v&&0===_&&0===b&&0===y)return U;if(F=s*g+i*Math.abs(U),(U+=R*y+j*v-(B*b+N*_))>=F||-U>=F)return U;w=(M=(k=v-(C=(x=t*v)-(x-v)))*(E=j-(T=(x=t*j)-(x-j)))-((I=v*j)-C*T-k*T-C*E))-(A=M-(L=(k=_-(C=(x=t*_)-(x-_)))*(E=N-(T=(x=t*N)-(x-N)))-((D=_*N)-C*T-k*T-C*E))),p[0]=M-(A+w)+(w-L),w=(P=I-((S=I+A)-(w=S-I))+(A-w))-(A=P-D),p[1]=P-(A+w)+(w-D),w=(O=S+A)-S,p[2]=S-(O-w)+(A-w),p[3]=O;const z=r(4,l,4,p,c);w=(M=(k=R-(C=(x=t*R)-(x-R)))*(E=y-(T=(x=t*y)-(x-y)))-((I=R*y)-C*T-k*T-C*E))-(A=M-(L=(k=B-(C=(x=t*B)-(x-B)))*(E=b-(T=(x=t*b)-(x-b)))-((D=B*b)-C*T-k*T-C*E))),p[0]=M-(A+w)+(w-L),w=(P=I-((S=I+A)-(w=S-I))+(A-w))-(A=P-D),p[1]=P-(A+w)+(w-D),w=(O=S+A)-S,p[2]=S-(O-w)+(A-w),p[3]=O;const H=r(z,c,4,p,u);w=(M=(k=v-(C=(x=t*v)-(x-v)))*(E=y-(T=(x=t*y)-(x-y)))-((I=v*y)-C*T-k*T-C*E))-(A=M-(L=(k=_-(C=(x=t*_)-(x-_)))*(E=b-(T=(x=t*b)-(x-b)))-((D=_*b)-C*T-k*T-C*E))),p[0]=M-(A+w)+(w-L),w=(P=I-((S=I+A)-(w=S-I))+(A-w))-(A=P-D),p[1]=P-(A+w)+(w-D),w=(O=S+A)-S,p[2]=S-(O-w)+(A-w),p[3]=O;const W=r(H,u,4,p,d);return d[W-1]}(e,o,h,f,m,g,y)},e.orient2dfast=function(e,t,i,r,o,n){return(t-n)*(i-o)-(e-o)*(r-n)},Object.defineProperty(e,"__esModule",{value:!0})}(Fe.exports);var ze=Oe,He=Ne,We=Be.exports,Ve=Fe.exports.orient2d;function Ge(e,t,i){t=Math.max(0,void 0===t?2:t),i=i||0;var r=function(e){for(var t=e[0],i=e[0],r=e[0],o=e[0],n=0;nr[0]&&(r=a),a[1]o[1]&&(o=a)}var s=[t,i,r,o],l=s.slice();for(n=0;n=2&&Ke(t[t.length-2],t[t.length-1],e[i])<=0;)t.pop();t.push(e[i])}for(var r=[],o=e.length-1;o>=0;o--){for(;r.length>=2&&Ke(r[r.length-2],r[r.length-1],e[o])<=0;)r.pop();r.push(e[o])}return r.pop(),t.pop(),t.concat(r)}(l)}(e),o=new ze(16);o.toBBox=function(e){return{minX:e[0],minY:e[1],maxX:e[0],maxY:e[1]}},o.compareMinX=function(e,t){return e[0]-t[0]},o.compareMinY=function(e,t){return e[1]-t[1]},o.load(e);for(var n,a=[],s=0;sn||s.push({node:u,dist:d})}for(;s.length&&!s.peek().node.children;){var p=s.pop(),h=p.node,f=tt(h,t,i),m=tt(h,r,o);if(p.dist=t.minX&&e[0]<=t.maxX&&e[1]>=t.minY&&e[1]<=t.maxY}function Xe(e,t,i){for(var r,o,n,a,s=Math.min(e[0],t[0]),l=Math.min(e[1],t[1]),c=Math.max(e[0],t[0]),u=Math.max(e[1],t[1]),d=i.search({minX:s,minY:l,maxX:c,maxY:u}),p=0;p0!=Ke(r,o,a)>0&&Ke(n,a,r)>0!=Ke(n,a,o)>0)return!1;return!0}function Ke(e,t,i){return Ve(e[0],e[1],t[0],t[1],i[0],i[1])}function Je(e){var t=e.p,i=e.next.p;return e.minX=Math.min(t[0],i[0]),e.minY=Math.min(t[1],i[1]),e.maxX=Math.max(t[0],i[0]),e.maxY=Math.max(t[1],i[1]),e}function $e(e,t){var i={p:e,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return t?(i.next=t.next,i.prev=t,t.next.prev=i,t.next=i):(i.prev=i,i.next=i),i}function et(e,t){var i=e[0]-t[0],r=e[1]-t[1];return i*i+r*r}function tt(e,t,i){var r=t[0],o=t[1],n=i[0]-r,a=i[1]-o;if(0!==n||0!==a){var s=((e[0]-r)*n+(e[1]-o)*a)/(n*n+a*a);s>1?(r=i[0],o=i[1]):s>0&&(r+=n*s,o+=a*s)}return(n=e[0]-r)*n+(a=e[1]-o)*a}function it(e,t,i,r,o,n,a,s){var l,c,u,d,p=i-e,h=r-t,f=a-o,m=s-n,g=e-o,v=t-n,_=p*p+h*h,b=p*f+h*m,y=f*f+m*m,w=p*g+h*v,x=f*g+m*v,C=_*y-b*b,k=C,T=C;0===C?(c=0,k=1,d=x,T=y):(d=_*x-b*w,(c=b*x-y*w)<0?(c=0,d=x,T=y):c>k&&(c=k,d=x+b,T=y)),d<0?(d=0,-w<0?c=0:-w>_?c=k:(c=-w,k=_)):d>T&&(d=T,-w+b<0?c=0:-w+b>_?c=k:(c=-w+b,k=_));var E=(1-(u=0===d?0:d/T))*o+u*a-((1-(l=0===c?0:c/k))*e+l*i),A=(1-u)*n+u*s-((1-l)*t+l*r);return E*E+A*A}function rt(e,t){return e[0]===t[0]?e[1]-t[1]:e[0]-t[0]}He.default&&(He=He.default),ge.exports=Ge,ge.exports.default=Ge;var ot=ge.exports;function nt(e,t,i){if(void 0===i&&(i={}),!e)throw new Error("point is required");if(!t)throw new Error("polygon is required");var r=ue(e),o=pe(t),n=o.type,a=t.bbox,s=o.coordinates;if(a&&!1===function(e,t){return t[0]<=e[0]&&t[1]<=e[1]&&t[2]>=e[0]&&t[3]>=e[1]}(r,a))return!1;"Polygon"===n&&(s=[s]);for(var l=!1,c=0;ce[1]!=c>e[1]&&e[0]<(l-a)*(e[1]-s)/(c-s)+a&&(r=!r)}return r}function st(e,t,i){void 0===i&&(i={});var r=ue(e),o=ue(t),n=oe(o[1]-r[1]),a=oe(o[0]-r[0]),s=oe(r[1]),l=oe(o[1]),c=Math.pow(Math.sin(n/2),2)+Math.pow(Math.sin(a/2),2)*Math.cos(s)*Math.cos(l);return function(e,t){void 0===t&&(t="kilometers");var i=K[t];if(!i)throw new Error(t+" units is invalid");return e*i}(2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c)),i.units)}function lt(e,t,i,r){void 0===r&&(r={});var o=ue(e),n=oe(o[0]),a=oe(o[1]),s=oe(i),l=function(e,t){void 0===t&&(t="kilometers");var i=K[t];if(!i)throw new Error(t+" units is invalid");return e/i}(t,r.units),c=Math.asin(Math.sin(a)*Math.cos(l)+Math.cos(a)*Math.sin(l)*Math.cos(s));return $([re(n+Math.atan2(Math.sin(s)*Math.sin(l)*Math.cos(a),Math.cos(l)-Math.sin(a)*Math.sin(c))),re(c)],r.properties)}function ct(e,t,i){if(void 0===i&&(i={}),!0===i.final)return function(e,t){var i=ct(t,e);return i=(i+180)%360}(e,t);var r=ue(e),o=ue(t),n=oe(r[0]),a=oe(o[0]),s=oe(r[1]),l=oe(o[1]),c=Math.sin(a-n)*Math.cos(l),u=Math.cos(s)*Math.sin(l)-Math.sin(s)*Math.cos(l)*Math.cos(a-n);return re(Math.atan2(c,u))}function ut(e,t){return lt(e,st(e,t)/2,ct(e,t))}function dt(e,t){void 0===t&&(t={});var i=0,r=0,o=0;return ae(e,(function(e){i+=e[0],r+=e[1],o++}),!0),$([i/o,r/o],t.properties)}function pt(e,t){switch(void 0===t&&(t={}),function(e,t){return"FeatureCollection"===e.type?"FeatureCollection":"GeometryCollection"===e.type?"GeometryCollection":"Feature"===e.type&&null!==e.geometry?e.geometry.type:e.type}(e)){case"Point":return $(ue(e),t.properties);case"Polygon":var i=[];ae(e,(function(e){i.push(e)}));var r,o,n,a,s,l,c,u,d=dt(e,{properties:t.properties}),p=d.geometry.coordinates,h=0,f=0,m=0,g=i.map((function(e){return[e[0]-p[0],e[1]-p[1]]}));for(r=0;r3?ee([r]):null}(e);return _?pt(_,{properties:t.properties}):dt(e,{properties:t.properties})}}function ht(e){if(!e)throw new Error("geojson is required");var t=[];return le(e,(function(e){!function(e,t){var i=[],r=e.geometry;if(null!==r){switch(r.type){case"Polygon":i=de(r);break;case"LineString":i=[de(r)]}i.forEach((function(i){(function(e,t){var i=[];return e.reduce((function(e,r){var o,n,a,s,l,c,u=te([e,r],t);return u.bbox=(n=r,a=(o=e)[0],s=o[1],l=n[0],c=n[1],[al?a:l,s>c?s:c]),i.push(u),r})),i})(i,e.properties).forEach((function(e){e.id=t.length,t.push(e)}))}))}}(e,t)})),ie(t)}var ft={exports:{}};function mt(e,t,i,r,o){gt(e,t,i||0,r||e.length-1,o||_t)}function gt(e,t,i,r,o){for(;r>i;){if(r-i>600){var n=r-i+1,a=t-i+1,s=Math.log(n),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(n-l)/n)*(a-n/2<0?-1:1);gt(e,t,Math.max(i,Math.floor(t-a*l/n+c)),Math.min(r,Math.floor(t+(n-a)*l/n+c)),o)}var u=e[t],d=i,p=r;for(vt(e,i,t),o(e[r],u)>0&&vt(e,i,r);d0;)p--}0===o(e[i],u)?vt(e,i,p):vt(e,++p,r),p<=t&&(i=p+1),t<=p&&(r=p-1)}}function vt(e,t,i){var r=e[t];e[t]=e[i],e[i]=r}function _t(e,t){return et?1:0}function bt(e,t,i){if(!i)return t.indexOf(e);for(let r=0;r=e.minX&&t.maxY>=e.minY}function It(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Mt(e,t,i,r,o){const n=[t,i];for(;n.length;){if((i=n.pop())-(t=n.pop())<=r)continue;const a=t+Math.ceil((i-t)/r/2)*r;mt(e,a,t,i,o),n.push(t,a,a,i)}}var Dt=me(Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:class{constructor(e=9){this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(e){let t=this.data;const i=[];if(!Pt(e,t))return i;const r=this.toBBox,o=[];for(;t;){for(let n=0;n=0&&o[t].children.length>this._maxEntries;)this._split(o,t),t--;this._adjustParentBBoxes(r,o,t)}_split(e,t){const i=e[t],r=i.children.length,o=this._minEntries;this._chooseSplitAxis(i,o,r);const n=this._chooseSplitIndex(i,o,r),a=It(i.children.splice(n,i.children.length-n));a.height=i.height,a.leaf=i.leaf,yt(i,this.toBBox),yt(a,this.toBBox),t?e[t-1].children.push(a):this._splitRoot(i,a)}_splitRoot(e,t){this.data=It([e,t]),this.data.height=e.height+1,this.data.leaf=!1,yt(this.data,this.toBBox)}_chooseSplitIndex(e,t,i){let r,o=1/0,n=1/0;for(let a=t;a<=i-t;a++){const t=wt(e,0,a,this.toBBox),s=wt(e,a,i,this.toBBox),l=At(t,s),c=Tt(t)+Tt(s);l=t;l--){const t=e.children[l];xt(a,e.leaf?o(t):t),s+=Et(a)}return s}_adjustParentBBoxes(e,t,i){for(let r=i;r>=0;r--)xt(t[r],e)}_condense(e){for(let t,i=e.length-1;i>=0;i--)0===e[i].children.length?i>0?(t=e[i-1].children,t.splice(t.indexOf(e[i]),1)):this.clear():yt(e[i],this.toBBox)}}})),Lt={};!function(e){function t(e,t,i){void 0===i&&(i={});var r={type:"Feature"};return(0===i.id||i.id)&&(r.id=i.id),i.bbox&&(r.bbox=i.bbox),r.properties=t||{},r.geometry=e,r}function i(e,i,r){if(void 0===r&&(r={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!p(e[0])||!p(e[1]))throw new Error("coordinates must contain numbers");return t({type:"Point",coordinates:e},i,r)}function r(e,i,r){void 0===r&&(r={});for(var o=0,n=e;o=0))throw new Error("precision must be a positive number");var i=Math.pow(10,t||0);return Math.round(e*i)/i},e.radiansToLength=c,e.lengthToRadians=u,e.lengthToDegrees=function(e,t){return d(u(e,t))},e.bearingToAzimuth=function(e){var t=e%360;return t<0&&(t+=360),t},e.radiansToDegrees=d,e.degreesToRadians=function(e){return e%360*Math.PI/180},e.convertLength=function(e,t,i){if(void 0===t&&(t="kilometers"),void 0===i&&(i="kilometers"),!(e>=0))throw new Error("length must be a positive number");return c(u(e,t),i)},e.convertArea=function(t,i,r){if(void 0===i&&(i="meters"),void 0===r&&(r="kilometers"),!(t>=0))throw new Error("area must be a positive number");var o=e.areaFactors[i];if(!o)throw new Error("invalid original units");var n=e.areaFactors[r];if(!n)throw new Error("invalid final units");return t/o*n},e.isNumber=p,e.isObject=function(e){return!!e&&e.constructor===Object},e.validateBBox=function(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach((function(e){if(!p(e))throw new Error("bbox must only contain numbers")}))},e.validateId=function(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")}}(Lt);var Ot={};Object.defineProperty(Ot,"__esModule",{value:!0});var Rt=Lt;function Nt(e,t,i){if(null!==e)for(var r,o,n,a,s,l,c,u,d=0,p=0,h=e.type,f="FeatureCollection"===h,m="Feature"===h,g=f?e.features.length:1,v=0;vs||p>l||h>c)return a=n,s=i,l=p,c=h,void(o=0);var f=Rt.lineString([a,n],e.properties);if(!1===t(f,i,r,h,o))return!1;o++,a=n}))&&void 0}}}))}function Ht(e,t){if(!e)throw new Error("geojson is required");Ft(e,(function(e,i,r){if(null!==e.geometry){var o=e.geometry.type,n=e.geometry.coordinates;switch(o){case"LineString":if(!1===t(e,i,r,0,0))return!1;break;case"Polygon":for(var a=0;ae[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2] line1 must only contain 2 coordinates");if(2!==r.length)throw new Error(" line2 must only contain 2 coordinates");var o=i[0][0],n=i[0][1],a=i[1][0],s=i[1][1],l=r[0][0],c=r[0][1],u=r[1][0],d=r[1][1],p=(d-c)*(a-o)-(u-l)*(s-n),h=(u-l)*(n-c)-(d-c)*(o-l),f=(a-o)*(n-c)-(s-n)*(o-l);if(0===p)return null;var m=h/p,g=f/p;return m>=0&&m<=1&&g>=0&&g<=1?$([o+m*(a-o),n+m*(s-n)]):null}function ii(e,t,i){void 0===i&&(i={});for(var r=ue(e),o=de(t),n=0;no)return!1}else if(0!==h)return!1;return r?"start"===r?Math.abs(d)>=Math.abs(p)?d>0?s0?l=Math.abs(p)?d>0?s<=n&&n0?l<=a&&a=Math.abs(p)?d>0?s0?l=Math.abs(p)?d>0?s<=n&&n<=c:c<=n&&n<=s:p>0?l<=a&&a<=u:u<=a&&a<=l}function oi(e,t){var i=pe(e),r=pe(t),o=i.type,n=r.type;switch(o){case"Point":switch(n){case"MultiPoint":return function(e,t){var i,r=!1;for(i=0;it[0])&&(!(e[2]t[1])&&!(e[3]1?function(e,t,i){return void 0===i&&(i={}),J({type:"MultiLineString",coordinates:e},t,i)}(e,t):te(e[0],t)}function ui(e,t){var i=!0;return le(e,(function(e){le(t,(function(t){if(!1===i)return!1;i=function(e,t){switch(e.type){case"Point":switch(t.type){case"Point":return i=e.coordinates,r=t.coordinates,!(i[0]===r[0]&&i[1]===r[1]);case"LineString":return!di(t,e);case"Polygon":return!nt(e,t)}break;case"LineString":switch(t.type){case"Point":return!di(e,t);case"LineString":return!function(e,t){if(ei(e,t).features.length>0)return!0;return!1}(e,t);case"Polygon":return!pi(t,e)}break;case"Polygon":switch(t.type){case"Point":return!nt(t,e);case"LineString":return!pi(e,t);case"Polygon":return!function(e,t){for(var i=0,r=e.coordinates[0];i0)return!0;return!1}(t,e)}}var i,r;return!1}(e.geometry,t.geometry)}))})),i}function di(e,t){for(var i=0;i0}function hi(e,t,i){var r=i[0]-e[0],o=i[1]-e[1],n=t[0]-e[0],a=t[1]-e[1];return 0==r*a-o*n&&(Math.abs(n)>=Math.abs(a)?n>0?e[0]<=i[0]&&i[0]<=t[0]:t[0]<=i[0]&&i[0]<=e[0]:a>0?e[1]<=i[1]&&i[1]<=t[1]:t[1]<=i[1]&&i[1]<=e[1])}function fi(e,t){var i=!1;return le(e,(function(e){le(t,(function(t){if(!0===i)return!0;i=!ui(e.geometry,t.geometry)}))})),i}function mi(e,t,i){return void 0===i&&(i={}),function(e,t,i,r){void 0===r&&(r={});for(var o=[],n=e[0],a=e[1],s=e[2],l=e[3],c=t/st([n,a],[s,a],r)*(s-n),u=i/st([n,a],[n,l],r)*(l-a),d=s-n,p=l-a,h=Math.floor(d/c),f=Math.floor(p/u),m=(p-f*u)/2,g=n+(d-h*c)/2,v=0;v=e?r=t?2*Math.PI-o:Math.PI+o,o=180*o/Math.PI,o}getPitch(e,t){let i=Cesium.Transforms.eastNorthUpToFixedFrame(e);const r=Cesium.Cartesian3.subtract(t,e,new Cesium.Cartesian3);let o=Cesium.Matrix4.multiplyByPointAsVector(Cesium.Matrix4.inverse(i,i),r,r);return Cesium.Cartesian3.normalize(o,o),Cesium.Math.PI_OVER_TWO-Cesium.Math.acosClamped(o.z)}updateViewShed(){this.clear(),this.setLightCamera(),this.addVisualPyramid(),this.createFrustum()}clear(){this.pyramid&&(this.viewer.entities.removeById(this.pyramid.id),this.pyramid=void 0),this.frustumPrimitive&&(this.viewer.scene.primitives.remove(this.frustumPrimitive),this.frustumPrimitive=void 0),this.debugModelMatrixPrimitive&&(this.viewer.scene.primitives.remove(this.debugModelMatrixPrimitive),this.debugModelMatrixPrimitive=void 0)}addVisualPyramid(){let e=this.ViewShedOptions,t=e.viewPosition,i=Number(e.visualRange),r=Cesium.Transforms.eastNorthUpToFixedFrame(t);this.debugModelMatrixPrimitive=this.viewer.scene.primitives.add(new Cesium.DebugModelMatrixPrimitive({modelMatrix:r,length:5}));const o=e.horizontalViewAngle/2,n=e.verticalViewAngle/2,a=Cesium.Math.toDegrees(e.pitch),s=new Cesium.EllipsoidGraphics({radii:new Cesium.Cartesian3(i,i,i),minimumClock:Cesium.Math.toRadians(90-e.direction-o),maximumClock:Cesium.Math.toRadians(90-e.direction+o),minimumCone:Cesium.Math.toRadians(90-a-n),maximumCone:Cesium.Math.toRadians(90-a+n),fill:!1,outline:!0,subdivisions:256,stackPartitions:64,slicePartitions:64,outlineColor:Cesium.Color.YELLOWGREEN.withAlpha(.5)}),l=new Cesium.Entity({position:t,ellipsoid:s});this.pyramid=this.viewer.entities.add(l)}setLightCamera(){this.lightCamera||(this.lightCamera=new Cesium.Camera(this.viewer.scene));let e=this.ViewShedOptions,t=Number(e.visualRange);this.lightCamera.position=e.viewPosition,this.lightCamera.frustum.near=.1,this.lightCamera.frustum.far=t;const i=Cesium.Math.toRadians(e.horizontalViewAngle),r=Cesium.Math.toRadians(e.verticalViewAngle);this.lightCamera.frustum.aspectRatio=t*Math.tan(i/2)*2/(t*Math.tan(r/2)*2),this.lightCamera.frustum.fov=i>r?i:r,this.lightCamera.setView({destination:e.viewPosition,orientation:{heading:Cesium.Math.toRadians(e.direction||0),pitch:e.pitch||0,roll:0}})}createFrustum(){const e=new Cesium.Cartesian3,t=new Cesium.Matrix3,i=new Cesium.Quaternion,r=this.lightCamera.directionWC,o=this.lightCamera.upWC;let n=this.lightCamera.rightWC;n=Cesium.Cartesian3.negate(n,e);let a=t;Cesium.Matrix3.setColumn(a,0,n,a),Cesium.Matrix3.setColumn(a,1,o,a),Cesium.Matrix3.setColumn(a,2,r,a);let s=Cesium.Quaternion.fromRotationMatrix(a,i),l=new Cesium.GeometryInstance({geometry:new Cesium.FrustumOutlineGeometry({frustum:this.lightCamera.frustum,origin:this.ViewShedOptions.viewPosition,orientation:s}),id:"视椎体轮廓线"+Math.random().toString(36).substr(2),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(new Cesium.Color(0,1,0,1)),show:new Cesium.ShowGeometryInstanceAttribute(!0)}});this.frustumPrimitive=this.viewer.scene.primitives.add(new Cesium.Primitive({geometryInstances:l,appearance:new Cesium.PerInstanceColorAppearance({flat:!0,translucent:!1,closed:!0})}))}addViewershedPolygon(e){let t=new Cesium.PolygonGeometry({polygonHierarchy:new Cesium.PolygonHierarchy(Cesium.Cartesian3.fromDegreesArray(e)),height:0,extrudedHeight:0,vertexFormat:Cesium.PerInstanceColorAppearance.VERTEX_FORMAT,stRotation:0,ellipsoid:Cesium.Ellipsoid.WGS84,granularity:Cesium.Math.RADIANS_PER_DEGREE,perPositionHeight:!1,closeTop:!0,closeBottom:!0,arcType:Cesium.ArcType.GEODESIC}),i=new Cesium.GeometryInstance({geometry:t,name:"ViewershedPolygon",attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.BLUE.withAlpha(.6)),show:new Cesium.ShowGeometryInstanceAttribute(!0)}});this.viewershedPolygon=this.viewer.scene.primitives.add(new Cesium.GroundPrimitive({geometryInstances:i,appearance:new Cesium.EllipsoidSurfaceAppearance({aboveGround:!0,material:new Cesium.Material({fabric:{type:"Image",uniforms:{image:this.returnImgae()}}})})}))}drawViewershed(e){const t=this.cartesian3ToDegree(this.ViewShedOptions.viewPosition),i=this.ViewShedOptions.visualRange,r=this.ViewShedOptions.direction;let o=this.computeBoundaryOptions(t,i,r);const n=o.bbox;let a=ee([o.boundaryPoints]);const s=this.ViewShedOptions.visualRange/(1e3*e);let l=function(e,t,i){void 0===i&&(i={}),i.mask&&!i.units&&(i.units="kilometers");for(var r=[],o=e[0],n=e[1],a=e[2],s=e[3],l=t/st([o,n],[a,n],i)*(a-o),c=t/st([o,n],[o,s],i)*(s-n),u=a-o,d=s-n,p=Math.floor(u/l),h=(d-Math.floor(d/c)*c)/2,f=o+(u-p*l)/2;f<=a;){for(var m=n+h;m<=s;){var g=$([f,m],i.properties);i.mask?oi(g,i.mask)&&r.push(g):r.push(g),m+=c}f+=l}return ie(r)}(n,s,{mask:a});console.log(this.ViewShedOptions.visualRange,e,s);let c=this.createTargetPoints(l,s,t),u=X.train(c.values,c.lngs,c.lats,"exponential",0,100),d=X.grid([o.boundaryPoints],u,s/1e3);this.canvasEle.width=3840,this.canvasEle.height=2160,X.plot(this.canvasEle,d,[n[0],n[2]],[n[1],n[3]],["#ff000080","#ff000080","#ff000080","#ff000080","#ff000080","#ff000080","#00ff0080","#00ff0080","#00ff0080","#00ff0080","#00ff0080","#00ff0080"]),this.addViewershedPolygon(o.positionArr)}computeBoundaryOptions(e,t,i){let r=6356725;const o=e[0],n=e[1],a=[o,n,o,n];let s=[],l=[];s.push(o,n),l.push([o,n]);let c=i+45>360?i-45-360:i-45,u=c+90;for(let d=c;d<=u;d++){let e=t*Math.sin(d*Math.PI/180),i=t*Math.cos(d*Math.PI/180),c=r+21412*(90-n)/90,u=o+e/(c*Math.cos(n*Math.PI/180))*180/Math.PI,p=n+i/c*180/Math.PI;s.push(u,p),l.push([u,p]),this.refreshBBox(a,u,p)}return l.push([o,n]),{positionArr:s,boundaryPoints:l,bbox:a}}refreshBBox(e,t,i){e[0]=te[2]?t:e[2],e[3]=i>e[3]?i:e[3]}createTargetPoints(e,t,i){let r=[this.frustumPrimitive,this.pyramid,this.debugModelMatrixPrimitive],o=[],n=[],a=[],s=this.getHeight(i[0],i[1],r);[].push({x:i[0],y:i[1],z:s});let l=this.ViewShedOptions.viewPosition;for(let c=0;ct?o.push(0):o.push(1),n.push(s),a.push(u)}}return{values:o,lngs:n,lats:a}}returnImgae(){return this.canvasEle.toDataURL("image/png")}}Object.assign(gi.prototype,{createViewshed:function(e){let t=this,i=t.viewer.scene;t.initHandler(),t.clearAll();let r=0,o="左键点击创建起点";t.handler=new Cesium.ScreenSpaceEventHandler(t.viewer.canvas),t.handler.setInputAction((n=>{if(r++,1===r){o="左键点击创建终点";let e=i.pickPosition(n.position),r=t.cartesian3ToDegree(e);t.handler.setInputAction((function(n){L(o,n.endPosition,!0);let a=i.pickPosition(n.endPosition);if(Cesium.defined(a)){let i=t.cartesian3ToDegree(a),o=Cesium.Cartesian3.distance(a,e),n=t.getAngle(r[0],r[1],i[0],i[1]),s=t.getPitch(e,a);t.ViewShedOptions={viewPosition:e,endPosition:a,direction:n,pitch:s,horizontalViewAngle:90,verticalViewAngle:60,visibleAreaColor:Cesium.Color.GREEN,invisibleAreaColor:Cesium.Color.RED,visualRange:o},t.updateViewShed()}}),Cesium.ScreenSpaceEventType.MOUSE_MOVE)}2===r&&(t.initHandler(),t.drawViewershed(e),L(o,n.endPosition,!1))}),Cesium.ScreenSpaceEventType.LEFT_CLICK),t.handler.setInputAction((function(e){L(o,e.endPosition,!0)}),Cesium.ScreenSpaceEventType.MOUSE_MOVE)},clearAll:function(){this.clear(),this.viewershedPolygon&&(this.viewer.scene.primitives.remove(this.viewershedPolygon),this.viewershedPolygon=void 0)}});class vi{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._stopTime=null}}Object.assign(vi.prototype,{startSunShine(e){e=e||{},Cesium.defined(e.startTime)||(e.startTime=(new Date).getTime()),Cesium.defined(e.stopTime)||(e.stopTime=(new Date).getTime()+1e3),Cesium.defined(e.speed)||(e.speed=1600),this._stopTime?(this._viewer.clock.shouldAnimate=!0,this._viewer.clock.currentTime=this._stopTime):(this._viewer.scene.globe.enableLighting=!0,this._viewer.shadows=!0,this._viewer.clock.startTime=Cesium.JulianDate.fromDate(new Date(e.startTime)),this._viewer.clock.currentTime=Cesium.JulianDate.fromDate(new Date(e.startTime)),this._viewer.clock.stopTime=Cesium.JulianDate.fromDate(new Date(e.stopTime)),console.log(this._viewer.clock.currentTime),this._viewer.clock.clockRange=Cesium.ClockRange.LOOP_STOP,this._viewer.clock.clockStep=Cesium.ClockStep.SYSTEM_CLOCK_MULTIPLIER,this._viewer.clock.multiplier=e.speed,this._viewer.clock.canAnimate=!0,this._viewer.clock.shouldAnimate=!0)},stopSunShine(){this._stopTime=this._viewer.clock.currentTime,console.log(this._viewer.clock.currentTime),this._viewer.clock.shouldAnimate=!1},removeSunShine(){this._stopTime&&(this._viewer.clock.shouldAnimate=!0,this._viewer.clock.currentTime=this._stopTime,console.log(this._viewer.clock.currentTime)),this._viewer.scene.globe.enableLighting=!1,this._viewer.shadows=!1,this._stopTime=null}}),Object.assign(vi.prototype,{start(e){document.getElementsByClassName("cesium-viewer-animationContainer").length>0&&(document.getElementsByClassName("cesium-viewer-animationContainer")[0].style.display="block"),document.getElementsByClassName("cesium-viewer-timelineContainer").length>0&&(document.getElementsByClassName("cesium-viewer-timelineContainer")[0].style.display="block"),this._viewer.shadows=!0,e=e||{},Cesium.defined(e.startTime)||(e.startTime=new Date((new Date).toLocaleDateString()).getTime(),console.log("当天凌晨0点",new Date((new Date).toLocaleDateString()))),Cesium.defined(e.stopTime)||(e.stopTime=new Date((new Date).toLocaleDateString()).getTime()+864e5-1,console.log("当天23点59分59秒",new Date(new Date((new Date).toLocaleDateString()).getTime()+144e5))),Cesium.defined(e.speed)||(e.speed=1600);let t=Cesium.JulianDate.fromDate(new Date(e.startTime)),i=Cesium.JulianDate.fromDate(new Date(e.stopTime));viewer.timeline.zoomTo(t,i);let r=viewer.clock;r.shouldAnimate=!1,r.startTime=t,r.stopTime=i,r.currentTime=t,r.clockRange=Cesium.ClockRange.UNBOUNDED,r.multiplier=e.speed},remove(){document.getElementsByClassName("cesium-viewer-animationContainer").length>0&&(document.getElementsByClassName("cesium-viewer-animationContainer")[0].style.display="none"),document.getElementsByClassName("cesium-viewer-timelineContainer").length>0&&(document.getElementsByClassName("cesium-viewer-timelineContainer")[0].style.display="none"),this._viewer.shadows=!1,this._viewer.clock.currentTime=Cesium.JulianDate.fromDate(new Date((new Date).getTime())),this._viewer.clock.shouldAnimate=!1}});class _i{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._profileEntities=[]}_interPoints(e,t){let i=[],r=[];for(let a=0;ao&&(o=i);let n=parseInt(o/2);n>1e3&&(n=1e3),n<2&&(n=2);for(let a=0;a{let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));this.removeProfileAnalysis(),t.clampToGround=!0,console.log(o);let n=this._interPoints(o,[t]);console.log(n),i(n)}))},removeProfileAnalysis(){let e=this;e._profileEntities&&e._profileEntities.length>0&&e._profileEntities.forEach((t=>{e._viewer.entities.remove(t)})),e._profileEntities=[]}});class bi{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this.delEntitys=[],this.maxHeigh=-1e6}_VolumeAnalysis(e){let t=this,i=0,r=0,o=0,n=0;const a=e.geom.indices,s=e.geom.attributes.position.values;for(let c=0;cthis.maxHeigh&&(this.maxHeigh=o),{heightPos:Cesium.Cartesian3.fromRadians(r.longitude,r.latitude,o),noHeightPos:Cesium.Cartesian3.fromRadians(r.longitude,r.latitude,0),height:o}}}Object.assign(bi.prototype,{createPolygonGeo(e,t){return new Promise(((i,r)=>{let o=this;(t=t||{}).precision=Cesium.defaultValue(t.precision,256),t.height=Cesium.defaultValue(t.height,10),o.remove();let n=[];for(let t=0;t{let i=e[2]||0;t=i,iCesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0))),r=this;r.data=i,r.baseHeight=t.baseHeight,r.targetY=t.baseHeight+t.height;let o=new Cesium.GeometryInstance({geometry:new Cesium.PolygonGeometry({polygonHierarchy:new Cesium.PolygonHierarchy(r.data),height:r.baseHeight,extrudedHeight:r.baseHeight+3e3}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.fromCssColorString(t.color).withAlpha(t.alpha)),show:new Cesium.ShowGeometryInstanceAttribute(!0)}});r.limitHeightPrimitive=r._viewer.scene.primitives.add(new Cesium.ClassificationPrimitive({geometryInstances:o,releaseGeometryInstances:!1,classificationType:Cesium.ClassificationType.CESIUM_3D_TILE})),r._setPolygon(t)},removePrimitive(){this.HiePolygon&&this._viewer.entities.remove(this.HiePolygon),this.limitHeightPrimitive&&this._viewer.scene.primitives.remove(this.limitHeightPrimitive)},changeHeight(e){if(!this.limitHeightPrimitive)return;this.targetY=this.baseHeight+e;let t=Cesium.Cartographic.fromCartesian(this.limitHeightPrimitive._primitive._boundingSpheres[0].center),i=Cesium.Cartesian3.fromRadians(t.longitude,t.latitude,this.baseHeight),r=Cesium.Cartesian3.fromRadians(t.longitude,t.latitude,this.baseHeight+e),o=Cesium.Cartesian3.subtract(r,i,new Cesium.Cartesian3);this.limitHeightPrimitive._primitive.modelMatrix=Cesium.Matrix4.fromTranslation(o)}});class wi{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._camera=this._viewer.camera,this._scene=this._viewer.scene,this.targetY=0,this._mouseHandler()}_mouseHandler(){let e,t=this,i=t._viewer,r=t._scene;new Cesium.ScreenSpaceEventHandler(i.scene.canvas).setInputAction((function(t){let i=r.pick(t.position);Cesium.defined(i)&&Cesium.defined(i.id)&&Cesium.defined(i.id.plane)&&(e=i.id.plane,e.material=Cesium.Color.RED.withAlpha(.05),e.outlineColor=Cesium.Color.RED,r.screenSpaceCameraController.enableInputs=!1)}),Cesium.ScreenSpaceEventType.LEFT_DOWN),new Cesium.ScreenSpaceEventHandler(i.scene.canvas).setInputAction((function(){Cesium.defined(e)&&(e.material=Cesium.Color.RED.withAlpha(.1),e.outlineColor=Cesium.Color.RED,e=void 0),r.screenSpaceCameraController.enableInputs=!0}),Cesium.ScreenSpaceEventType.LEFT_UP),new Cesium.ScreenSpaceEventHandler(i.scene.canvas).setInputAction((function(i){if(Cesium.defined(e)){let e=i.startPosition.y-i.endPosition.y;t.targetY+=e}}),Cesium.ScreenSpaceEventType.MOUSE_MOVE)}_createPlaneUpdateFunction(e){let t=this;return function(){return e.distance=t.targetY,e}}_createPlane(e,t,i){let r=this._getOriginCoordinateSystemPoint(e,i),o=this._getOriginCoordinateSystemPoint(t,i),n=new Cesium.Cartesian3(0,0,10),a=Cesium.Cartesian3.subtract(o,r,new Cesium.Cartesian3),s=Cesium.Cartesian3.cross(a,n,new Cesium.Cartesian3);s=Cesium.Cartesian3.normalize(s,s);let l=Cesium.Plane.fromPointNormal(r,s);return Cesium.ClippingPlane.fromPlane(l)}_getOriginCoordinateSystemPoint(e,t){let i=Cesium.Cartesian3.fromDegrees(e[0],e[1]);return Cesium.Matrix4.multiplyByPoint(t,i,new Cesium.Cartesian3(0,0,0))}_getInverseTransform(e){let t;const i=e.root.transform;return t=i&&i.equals(Cesium.Matrix4.IDENTITY)||!i?Cesium.Transforms.eastNorthUpToFixedFrame(e.boundingSphere.center):Cesium.Matrix4.fromArray(e.root.transform),Cesium.Matrix4.inverseTransformation(t,new Cesium.Matrix4)}_isDirRes(e,t){var i=[];e.forEach((e=>{i.push([e.lng,e.lat])}));let r=function(e){for(var t,i,r=de(e),o=0,n=1;n0}(te(i));var o=[];if(t)if(r)for(var n=0,a=e.length-1;a>=0;a--)o[n]=e[a],n++;else o=e;else if(r)o=e;else for(n=0,a=e.length-1;a>=0;a--)o[n]=e[a],n++;return o}}Object.assign(wi.prototype,{activate(e){let t=this,i=t._viewer,r=t._getInverseTransform(e);[].push(t._createPlane([121.55814450142213,37.39658788787028],[121.65814450142213,37.49658788787028],r));let o=new Cesium.ClippingPlaneCollection({planes:[new Cesium.ClippingPlane(new Cesium.Cartesian3(0,1,0),-10)],edgeWidth:1});return t.tileset=e,e.clippingPlanes=o,e.debugShowBoundingVolume=!1,e.readyPromise.then((function(){let r=e.boundingSphere,n=r.radius;if(i.zoomTo(e,new Cesium.HeadingPitchRange(.5,-.2,n/5)),!Cesium.Matrix4.equals(e.root.transform,Cesium.Matrix4.IDENTITY)){const t=Cesium.Matrix4.getTranslation(e.root.transform,new Cesium.Cartesian3),i=Cesium.Cartographic.fromCartesian(t),r=Cesium.Cartographic.fromCartesian(e.boundingSphere.center).height-i.height;o.modelMatrix=Cesium.Matrix4.fromTranslation(new Cesium.Cartesian3(0,0,r))}for(let e=0;eCesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));let i=this.viewer;this.clear();let r=[],o=Cesium.Cartesian3.subtract(e[0],e[1],new Cesium.Cartesian3).x>0;this.excavateMinHeight=999999999;for(let n=0;n{let i=[],r=e.reduce((function(e,t,r,o){var n=10*r,a=n+10,s=o.slice(n,a);return 0!=s.length&&(i[r]=s),i}),[]);t._calculateSlope(r),t._openTip()}))}_createPolygonInsrance(e,t){let i=[];for(let o=1;o0?[Cesium.Cartographic.toCartesian(n),Cesium.Cartographic.toCartesian(a)]:[Cesium.Cartographic.toCartesian(a),Cesium.Cartographic.toCartesian(n)];return new Cesium.GeometryInstance({id:{type:"SlopeAspect",value:o},geometry:new Cesium.GroundPolylineGeometry({positions:s,width:this.arrowWidth}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.BLUE.withAlpha(.6)),show:new Cesium.ShowGeometryInstanceAttribute(!0)}})}_calculateSlope(e){let t=this,i=[],r=[];for(let a=0;as&&(s=t,l=e)}let c=new Cesium.Cartographic(n.longitude,n.latitude,0),u=new Cesium.Cartographic(o[l].longitude,o[l].latitude,0),d=Cesium.Cartesian3.distance(Cesium.Cartographic.toCartesian(c),Cesium.Cartographic.toCartesian(u)),p=Math.abs(s/d),h=t._calculateSlopeColor(p,.4);const f=t._createPolygonInsrance(o,h);r.push(f);let m=l>4?o[l-4]:o[l+4],g=o[l];const v=t._createArrowInstance(g,n,m,s,p);i.push(v)}const o=t._viewer.scene.primitives.add(new Cesium.GroundPrimitive({geometryInstances:r,appearance:new Cesium.PerInstanceColorAppearance({translucent:!0,closed:!1})})),n=t._viewer.scene.primitives.add(new Cesium.GroundPolylinePrimitive({geometryInstances:i,appearance:new Cesium.PolylineMaterialAppearance({material:new Cesium.Material({fabric:{type:"PolylineArrow",uniforms:{color:new Cesium.Color(1,1,0,.8)}}})})}));t.result.push(n,o)}_calculateSlopeColor(e,t){return e<.00872686779075879?"rgba(85,182,43,"+t+")":e<.03492076949174773?"rgba(135,211,43,"+t+")":e<.08748866352592401?"rgba(204,244,44,"+t+")":e<.2679491924311227?"rgba(245,233,44,"+t+")":e<.7002075382097097?"rgba(255,138,43,"+t+")":e<1.4281480067421144?"rgba(255,84,43,"+t+")":"rgba(255,32,43,"+t+")"}}Object.assign(Ti.prototype,{createNew4Distance(e,t,i){let r=this;(i=i||{}).distance=i.distance||.1;let o=200*i.distance>35?35:200*i.distance;r.arrowWidth=o<15?15:o;let n=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));r.clearAll();let a=A.Cartesian3ListToWGS84(n),s=[],l=1e4,c=1e4,u=-1e4,d=-1e3;for(let f=0;fu?t:u,d=i>d?i:d}s.push(s[0]);let p=[l,c,u,d];ee([s]);let h=mi(p,i.distance,{});r._createEllipse(h)},createNew4Num(e,t,i){let r=this;(i=i||{}).num=Cesium.defaultValue(i.num,10);let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));r.clearAll();let n=A.Cartesian3ListToWGS84(o),a=[],s=1e4,l=1e4,c=-1e4,u=-1e3;for(let v=0;vc?t:c,u=i>u?i:u}a.push(a[0]);let d=[s,l,c,u],p=c-s,h=u-l;h=h>p?h:p;const f=h/i.num;let m=2e3*f>35?35:2e3*f;r.arrowWidth=m<15?15:m,ee([a]);let g=mi(d,f,{units:"degrees"});r._createEllipse(g)},clearAll(){this.result.forEach((e=>{this._viewer.scene.primitives.remove(e)})),this.result=[],this.handler&&(this.handler.destroy(),this.handler=void 0)}});let Ei={TerrainExcavation:ki,SlopeAspect:Ti};class Ai{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e}_initRain(){this.rainStage=new Cesium.PostProcessStage({name:"jt_rain",fragmentShader:this._rain(),uniforms:{tiltAngle:()=>this.tiltAngle,rainSize:()=>this.rainSize,rainSpeed:()=>this.rainSpeed}}),this._viewer.scene.postProcessStages.add(this.rainStage)}_initSnow(){this.snowStage=new Cesium.PostProcessStage({name:"jt_snow",fragmentShader:this._snow(),uniforms:{snowSize:()=>this.snowSize,snowSpeed:()=>this.snowSpeed}}),this._viewer.scene.postProcessStages.add(this.snowStage)}_initFog(){this.fogStage=new Cesium.PostProcessStage({name:"jt_fog",fragmentShader:this._fog(),uniforms:{visibility:()=>this.visibility,fogColor:()=>this.color}}),this._viewer.scene.postProcessStages.add(this.fogStage)}_rain(){return"uniform sampler2D colorTexture;\n\t varying vec2 v_textureCoordinates;\n\t uniform float tiltAngle;\n\t uniform float rainSize;\n\t uniform float rainSpeed;\n\t float hash(float x) {\n\t return fract(sin(x * 133.3) * 13.13);\n\t }\n\t void main(void) {\n\t float time = czm_frameNumber / rainSpeed;\n\t vec2 resolution = czm_viewport.zw;\n\t vec2 uv = (gl_FragCoord.xy * 2. - resolution.xy) / min(resolution.x, resolution.y);\n\t vec3 c = vec3(.6, .7, .8);\n\t float a = tiltAngle;\n\t float si = sin(a), co = cos(a);\n\t uv *= mat2(co, -si, si, co);\n\t uv *= length(uv + vec2(0, 4.9)) * rainSize + 1.;\n\t float v = 1. - sin(hash(floor(uv.x * 100.)) * 2.);\n\t float b = clamp(abs(sin(20. * time * v + uv.y * (5. / (2. + v)))) - .95, 0., 1.) * 20.;\n\t c *= v * b;\n\t gl_FragColor = mix(texture2D(colorTexture, v_textureCoordinates), vec4(c, 1), .5);\n\t }\n\t "}_snow(){return"uniform sampler2D colorTexture;\n varying vec2 v_textureCoordinates;\n uniform float snowSpeed;\n uniform float snowSize;\n float snow(vec2 uv,float scale)\n {\n float time=czm_frameNumber/snowSpeed;\n float w=smoothstep(1.,0.,-uv.y*(scale/10.));if(w<.1)return 0.;\n uv+=time/scale;uv.y+=time*2./scale;uv.x+=sin(uv.y+time*.5)/scale;\n uv*=scale;vec2 s=floor(uv),f=fract(uv),p;float k=3.,d;\n p=.5+.35*sin(11.*fract(sin((s+p+scale)*mat2(7,3,6,5))*5.))-f;d=length(p);k=min(d,k);\n k=smoothstep(0.,k,sin(f.x+f.y)*snowSize);\n return k*w;\n }\n void main(void){\n vec2 resolution=czm_viewport.zw;\n vec2 uv=(gl_FragCoord.xy*2.-resolution.xy)/min(resolution.x,resolution.y);\n vec3 finalColor=vec3(0);\n //float c=smoothstep(1.,0.3,clamp(uv.y*.3+.8,0.,.75));\n float c=0.;\n c+=snow(uv,30.)*.0;\n c+=snow(uv,20.)*.0;\n c+=snow(uv,15.)*.0;\n c+=snow(uv,10.);\n c+=snow(uv,8.);\n c+=snow(uv,6.);\n c+=snow(uv,5.);\n finalColor=(vec3(c));\n gl_FragColor=mix(texture2D(colorTexture,v_textureCoordinates),vec4(finalColor,1),.5);\n }\n "}_fog(){return"uniform sampler2D colorTexture;\n\t uniform sampler2D depthTexture;\n\t uniform float visibility;\n\t uniform vec4 fogColor;\n\t varying vec2 v_textureCoordinates; \n\t void main(void) \n\t { \n\t vec4 origcolor = texture2D(colorTexture, v_textureCoordinates); \n\t float depth = czm_readDepth(depthTexture, v_textureCoordinates); \n\t vec4 depthcolor = texture2D(depthTexture, v_textureCoordinates); \n\t float f = visibility * (depthcolor.r - 0.3) / 0.2; \n\t if (f < 0.0) f = 0.0; \n\t else if (f > 1.0) f = 1.0; \n\t gl_FragColor = mix(origcolor, fogColor, f); \n\t }\n"}_removeSnow(){this._viewer&&this.snowStage&&(this._viewer.scene.postProcessStages.remove(this.snowStage),delete this.snowSize,delete this.snowSpeed)}_removeRain(){this._viewer&&this.rainStage&&(this._viewer.scene.postProcessStages.remove(this.rainStage),delete this.tiltAngle,delete this.rainSize,delete this.rainSpeed)}_removeFog(){this._viewer&&this.fogStage&&(this._viewer.scene.postProcessStages.remove(this.fogStage),delete this.visibility,delete this.color)}}Object.assign(Ai.prototype,{addRainEffect(e){e=e||{},this.tiltAngle=Cesium.defaultValue(e.tiltAngle,-.6),this.rainSize=Cesium.defaultValue(e.rainSize,.3),this.rainSpeed=Cesium.defaultValue(e.rainSpeed,60),this._initRain()},addSnowEffect(e){e=e||{},this.snowSize=Cesium.defaultValue(e.snowSize,.02),this.snowSpeed=Cesium.defaultValue(e.snowSpeed,60),this._initSnow()},addFogEffect(e){e=e||{},this.visibility=Cesium.defaultValue(e.visibility,.1),this.color=Cesium.defaultValue(e.color,new Cesium.Color(.8,.8,.8,.5)),this._show=Cesium.defaultValue(e.show,!0),this._initFog()},removeEffect(){this.snowStage&&this._removeSnow(),this.rainStage&&this._removeRain(),this.fogStage&&this._removeFog()}});const Si=Cesium.BoxGeometry,Pi=Cesium.Cartesian3,Ii=Cesium.defaultValue,Mi=Cesium.defined,Di=Cesium.destroyObject,Li=Cesium.DeveloperError,Oi=Cesium.GeometryPipeline,Ri=Cesium.Matrix3,Ni=Cesium.Matrix4,Bi=Cesium.Transforms,ji=Cesium.VertexFormat,Ui=Cesium.BufferUsage,Fi=Cesium.CubeMap,zi=Cesium.DrawCommand,Hi=Cesium.loadCubeMap,Wi=Cesium.RenderState,Vi=Cesium.VertexArray,Gi=Cesium.BlendingState,Yi=Cesium.SceneMode,qi=Cesium.ShaderProgram,Qi=Cesium.ShaderSource;Cesium.defined(Cesium.Matrix4.getRotation)||(Cesium.Matrix4.getRotation=Cesium.Matrix4.getMatrix3);class Zi{constructor(e){this.sources=e.sources,this._sources=void 0,this.show=Ii(e.show,!0),this._command=new zi({modelMatrix:Ni.clone(Ni.IDENTITY),owner:this}),this._cubeMap=void 0,this._attributeLocations=void 0,this._useHdr=void 0}}const Xi=new Ri;Zi.prototype.update=function(e,t){const i=this;if(!this.show)return;if(e.mode!==Yi.SCENE3D&&e.mode!==Yi.MORPHING)return;if(!e.passes.render)return;const r=e.context;if(this._sources!==this.sources){this._sources=this.sources;const e=this.sources;if(!(Mi(e.positiveX)&&Mi(e.negativeX)&&Mi(e.positiveY)&&Mi(e.negativeY)&&Mi(e.positiveZ)&&Mi(e.negativeZ)))throw new Li("this.sources is required and must have positiveX, negativeX, positiveY, negativeY, positiveZ, and negativeZ properties.");if(typeof e.positiveX!=typeof e.negativeX||typeof e.positiveX!=typeof e.positiveY||typeof e.positiveX!=typeof e.negativeY||typeof e.positiveX!=typeof e.positiveZ||typeof e.positiveX!=typeof e.negativeZ)throw new Li("this.sources properties must all be the same type.");"string"==typeof e.positiveX?Hi(r,this._sources).then((function(e){i._cubeMap=i._cubeMap&&i._cubeMap.destroy(),i._cubeMap=e})):(this._cubeMap=this._cubeMap&&this._cubeMap.destroy(),this._cubeMap=new Fi({context:r,source:e}))}const o=this._command;if(o.modelMatrix=Bi.eastNorthUpToFixedFrame(e.camera._positionWC),!Mi(o.vertexArray)){o.uniformMap={u_cubeMap:function(){return i._cubeMap},u_rotateMatrix:function(){return Ni.getRotation(o.modelMatrix,Xi)}};const e=Si.createGeometry(Si.fromDimensions({dimensions:new Pi(2,2,2),vertexFormat:ji.POSITION_ONLY})),t=this._attributeLocations=Oi.createAttributeLocations(e);o.vertexArray=Vi.fromGeometry({context:r,geometry:e,attributeLocations:t,bufferUsage:Ui._DRAW}),o.renderState=Wi.fromCache({blending:Gi.ALPHA_BLEND})}if(!Mi(o.shaderProgram)||this._useHdr!==t){const e=new Qi({defines:[t?"HDR":""],sources:["uniform samplerCube u_cubeMap;\n varying vec3 v_texCoord;\n void main()\n {\n vec4 color = textureCube(u_cubeMap, normalize(v_texCoord));\n gl_FragColor = vec4(czm_gammaCorrect(color).rgb, czm_morphTime);\n }\n "]});o.shaderProgram=qi.fromCache({context:r,vertexShaderSource:"attribute vec3 position;\n varying vec3 v_texCoord;\n uniform mat3 u_rotateMatrix;\n void main()\n {\n vec3 p = czm_viewRotation * u_rotateMatrix * (czm_temeToPseudoFixed * (czm_entireFrustum.y * position));\n gl_Position = czm_projection * vec4(p, 1.0);\n v_texCoord = position.xyz;\n }\n ",fragmentShaderSource:e,attributeLocations:this._attributeLocations}),this._useHdr=t}return Mi(this._cubeMap)?o:void 0},Zi.prototype.isDestroyed=function(){return!1},Zi.prototype.destroy=function(){const e=this._command;return e.vertexArray=e.vertexArray&&e.vertexArray.destroy(),e.shaderProgram=e.shaderProgram&&e.shaderProgram.destroy(),this._cubeMap=this._cubeMap&&this._cubeMap.destroy(),Di(this)};class Ki{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._farSkyBox=e.scene.skyBox}}Object.assign(Ki.prototype,{setGroundSkyBox(e){if((e=e||{}).height=e.height||2e5,e.type=e.type||"蓝天",e.sources){if(!(Cesium.defined(e.sources.positiveX)&&Cesium.defined(e.sources.negativeX)&&Cesium.defined(e.sources.positiveY)&&Cesium.defined(e.sources.negativeY)&&Cesium.defined(e.sources.positiveZ)&&Cesium.defined(e.sources.negativeZ)))throw new Cesium.DeveloperError("options.sources is required and must have positiveX, negativeX, positiveY, negativeY, positiveZ, and negativeZ properties.")}else switch(e.type){case"晚霞":e.sources={positiveX:"/jt3dSDK/imgs/skybox/01/px.png",negativeX:"/jt3dSDK/imgs/skybox/01/nx.png",positiveY:"/jt3dSDK/imgs/skybox/01/py.png",negativeY:"/jt3dSDK/imgs/skybox/01/ny.png",positiveZ:"/jt3dSDK/imgs/skybox/01/pz.png",negativeZ:"/jt3dSDK/imgs/skybox/01/nz.png"};break;case"阴天":e.sources={positiveX:"/jt3dSDK/imgs/skybox/02/px.jpg",negativeX:"/jt3dSDK/imgs/skybox/02/nx.jpg",positiveY:"/jt3dSDK/imgs/skybox/02/py.jpg",negativeY:"/jt3dSDK/imgs/skybox/02/ny.jpg",positiveZ:"/jt3dSDK/imgs/skybox/02/pz.jpg",negativeZ:"/jt3dSDK/imgs/skybox/02/nz.jpg"};break;case"蓝天":e.sources={positiveX:"/jt3dSDK/imgs/skybox/03/px.jpg",negativeX:"/jt3dSDK/imgs/skybox/03/nx.jpg",positiveY:"/jt3dSDK/imgs/skybox/03/py.jpg",negativeY:"/jt3dSDK/imgs/skybox/03/ny.jpg",positiveZ:"/jt3dSDK/imgs/skybox/03/pz.jpg",negativeZ:"/jt3dSDK/imgs/skybox/03/nz.jpg"};break;case"紫色星空":e.sources={positiveX:"/jt3dSDK/imgs/skybox/04/px.jpg",negativeX:"/jt3dSDK/imgs/skybox/04/nx.jpg",positiveY:"/jt3dSDK/imgs/skybox/04/py.jpg",negativeY:"/jt3dSDK/imgs/skybox/04/ny.jpg",positiveZ:"/jt3dSDK/imgs/skybox/04/pz.jpg",negativeZ:"/jt3dSDK/imgs/skybox/04/nz.jpg"};break;case"蓝色星空":e.sources={positiveX:"/jt3dSDK/imgs/skybox/05/px.jpg",negativeX:"/jt3dSDK/imgs/skybox/05/nx.jpg",positiveY:"/jt3dSDK/imgs/skybox/05/py.jpg",negativeY:"/jt3dSDK/imgs/skybox/05/ny.jpg",positiveZ:"/jt3dSDK/imgs/skybox/05/pz.jpg",negativeZ:"/jt3dSDK/imgs/skybox/05/nz.jpg"}}let t=this,i=new Zi({sources:e.sources,show:!0});t._viewer.scene.postRender.addEventListener((()=>{var r=t._viewer.camera.position;Cesium.Cartographic.fromCartesian(r).height0){var n=new Cesium.Cartesian3(e._property._values[3*t-3],e._property._values[3*t-2],e._property._values[3*t-1]);if(t<976)o=Cesium.Cartesian3.fromDegrees(r[t].x,r[t].y,r[t].z);else if(t>975&&t<986)o=Cesium.Cartesian3.fromDegrees(r[t].x,r[t].y,r[t].z);else if(t>985)o=Cesium.Cartesian3.fromDegrees(r[t].x,r[t].y,r[t].z);var a=[Cesium.Ellipsoid.WGS84.cartesianToCartographic(n),Cesium.Ellipsoid.WGS84.cartesianToCartographic(o)],s=new Cesium.EllipsoidGeodesic(a[0],a[1]).surfaceDistance/50;i=Cesium.JulianDate.addSeconds(e._property._times[t-1],s,new Cesium.JulianDate);e.addSample(i,o)}}return e};var i=e.geometry.coordinates,r=[];if(!(i.length>0))return;for(var o=0;o0&&(e.multiplier=-t),e.shouldAnimate=!0},outFly(){var e=Cesium.JulianDate.fromDate(new Date);this._viewer.clock.startTime=e.clone();var t=Cesium.JulianDate.addSeconds(e,3e8,new Cesium.JulianDate);this._viewer.clock.stopTime=t.clone(),this.clearFlyPaths()},drawFlyPaths(e,t){return new Promise(((t,i)=>{let r=this;r.clearFlyPaths();let o=r._viewer.camera.position;var n={orientation:{heading:r._viewer.camera.heading,pitch:r._viewer.camera.pitch,roll:r._viewer.camera.roll},position:o,clampToGround:!0,geometry:{type:"LineString",coordinates:e}};r._draw3DObj=n,t(!0)}))},clearFlyPaths(){this._draw3DObj=null,this._viewer.trackedEntity=void 0,this._viewer.entities.remove(this.entityFly)}});class or{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._iconBlue="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0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d5xQ9wKUukUo/u4h8SdecCHzPmwdtOMJF9ciHodbE+cvmA+cAm1rVoSAsD1m3fmH127cfvSUJOiXRh98nS8/8dpXb0DknWNKB5qzsOIKlwYdIULpWMwB+ZunNrVC2tDeQIa2P552+4jfFsROxd0sbRfm5/31dyMPumZLQWkwsqA9EOTCzqCzdTGvKB7MCNWTU9s/oIOWsHh41tvGz5uNv34Fxdi64IOvNaxQ/t2aXvzVixKTUnqezkSRBqhCm4bMW7GhboGuJw7H+qQW7nEBoALFPCvOx8cP+toYUl+W4v4o6h0L9iiNkvBdnNXplYvsSEtOFddc75owLCxc6jLd7aVCMDulzlmDtgCm6FSEju38RAxztJUumTkoy+9faqyqjDSIgDzgezJi6gN+P9Is1HKjpBGz9T+U1cy+ulXZ9XU/lMRKRGABZjUEyeseCJcIY1i6BY4NmHagjlen/+CXREUow6wADMcEeEKQTxxq96wadfvCz9cvpBuBSVcEbCWYuQAFmCGSgrbSojx0qW9KmfxV5u/zP1+MTEqI6vlCNFhLWAAFsdEl1sIvIAgdTn98muL1mzZtXe1VYCtv+xbDWsBg2OR/0OIKaaB9ooHsqcsoXt8h4Uwu+P+xyfD/zwqOIatHw7YFQJvVthSUICVDxs9Kae0rOJwS2vKyk8fgbmwhq/V7fKwLYSLgWLoPLz9s59//c3mwjKMPTZ+5hswl6ceWiQ4REQIF2OE5QOHCo9NfCVndoPHW3vxHPgOxmAOzOVr0BUlhIuB0Hn2+5937p/77hcLgsMyfF7wwbKFMAZz+Fx0RQoJDsvvL8ndYYZlM8y+8/HKbXbDbKgW8ftd+qQJLQcglFZCaE3qFn81wogEh1mYE/F74bb64RnFAm/DDwy6mPdrkJLzKGfLpsj+vwIMACSZzfDJFmOPAAAAAElFTkSuQmCC"}}Object.assign(or.prototype,{generatePoint(e,t){return new Promise(((i,r)=>{let o=this;if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");(t=t||{}).id=t.id||m();let n=t.style||{};n.pixelSize=Cesium.defaultValue(n.pixelSize,10),n.color?n.color=new Cesium.Color(n.color[0],n.color[1],n.color[2],n.color[3]||1):n.color=new Cesium.Color.fromCssColorString("#ff0000").withAlpha(1),n.outlineColor?n.outlineColor=new Cesium.Color(n.outlineColor[0],n.outlineColor[1],n.outlineColor[2],n.outlineColor[3]||1):n.outlineColor=new Cesium.Color.fromCssColorString("#ffff00").withAlpha(1),n.outlineWidth=Cesium.defaultValue(n.outlineWidth,1),v(o._viewer,[e]).then((function(r){let a=Cesium.Cartesian3.fromDegrees(e[0],e[1],r[0].height),s=new Cesium.Entity({id:t.id,position:a,point:{pixelSize:n.pixelSize,color:n.color,outlineColor:n.outlineColor,outlineWidth:n.outlineWidth,heightReference:Cesium.HeightReference.NONE,disableDepthTestDistance:r[0].height}});if(t.label){let e=t.label||{};e.text=Cesium.defaultValue(e.text,""),e.font=Cesium.defaultValue(e.font,"24px Helvetica"),e.fillColor?e.fillColor=new Cesium.Color(e.fillColor[0],e.fillColor[1],e.fillColor[2],e.fillColor[3]||1):e.fillColor=new Cesium.Color.fromCssColorString("#fff").withAlpha(1),e.outlineColor?e.outlineColor=new Cesium.Color(e.outlineColor[0],e.outlineColor[1],e.outlineColor[2],e.outlineColor[3]||1):e.outlineColor=new Cesium.Color(0,.6,.3,0),e.outlineWidth=Cesium.defaultValue(e.outlineWidth,1),e.showBackground=Cesium.defaultValue(e.showBackground,!1),e.backgroundColor?e.backgroundColor=new Cesium.Color(e.backgroundColor[0],e.backgroundColor[1],e.backgroundColor[2],e.backgroundColor[3]||1):e.backgroundColor=new Cesium.Color(0,0,0,.6),e.pixelOffset=Cesium.defaultValue(e.pixelOffset,0),e.scale=Cesium.defaultValue(e.scale,1),e.near=Cesium.defaultValue(e.near,150),e.nearValue=Cesium.defaultValue(e.nearValue,1),e.far=Cesium.defaultValue(e.far,2400),e.farValue=Cesium.defaultValue(e.farValue,0),s.label={text:e.text,font:e.font,fillColor:e.fillColor,outlineColor:e.outlineColor,outlineWidth:e.outlineWidth,style:Cesium.LabelStyle.FILL_AND_OUTLINE,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,showBackground:e.showBackground,backgroundColor:e.backgroundColor,backgroundPadding:new Cesium.Cartesian2(6,6),disableDepthTestDistance:Number.POSITIVE_INFINITY,pixelOffset:new Cesium.Cartesian2(0,t.pixelOffset),scale:e.scale}}o._viewer.entities.add(s),i(s)}))}))},addBillboard(e,t){return new Promise(((i,r)=>{let o=this._viewer;(t=t||{}).id=t.id||m();let n=t.billboard||{};n.imgUrl=n.imgUrl||this._iconBlue,n.scale=Cesium.defaultValue(n.scale,1),n.pixelOffset=Cesium.defaultValue(n.pixelOffset,0),n.near=Cesium.defaultValue(n.near,150),n.nearValue=Cesium.defaultValue(n.nearValue,1),n.far=Cesium.defaultValue(n.far,2400),n.farValue=Cesium.defaultValue(n.farValue,0);let a=Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0),s=new Cesium.Entity({id:t.id,name:"add billboard",position:a,billboard:{image:n.imgUrl,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,scale:n.scale,pixelOffset:new Cesium.Cartesian2(0,n.pixelOffset),disableDepthTestDistance:Number.POSITIVE_INFINITY,scaleByDistance:new Cesium.NearFarScalar(n.near,n.nearValue,n.far,n.farValue)}});if(t.label){let e=t.label||{};e.text=Cesium.defaultValue(e.text,""),e.font=Cesium.defaultValue(e.font,"24px Helvetica"),e.fillColor instanceof Array?e.fillColor=new Cesium.Color(e.fillColor[0],e.fillColor[1],e.fillColor[2],e.fillColor[3]||1):e.fillColor instanceof String?e.fillColor=new Cesium.Color.fromCssColorString(e.fillColor).withAlpha(1):e.fillColor=new Cesium.Color.fromCssColorString("#ff0000").withAlpha(1),e.outlineColor instanceof Array?e.outlineColor=new Cesium.Color(e.outlineColor[0],e.outlineColor[1],e.outlineColor[2],e.outlineColor[3]||1):e.outlineColor instanceof String?e.outlineColor=new Cesium.Color.fromCssColorString(e.outlineColor).withAlpha(1):e.outlineColor=new Cesium.Color.fromCssColorString("#FFFF00").withAlpha(1),e.outlineWidth=Cesium.defaultValue(e.outlineWidth,1),e.showBackground=Cesium.defaultValue(e.showBackground,!1),e.backgroundColor instanceof Array?e.backgroundColor=new Cesium.Color(e.backgroundColor[0],e.backgroundColor[1],e.backgroundColor[2],e.backgroundColor[3]||1):e.backgroundColor instanceof String?e.backgroundColor=new Cesium.Color.fromCssColorString(e.backgroundColor).withAlpha(1):e.backgroundColor=new Cesium.Color.fromCssColorString("#FFFF00").withAlpha(1),e.pixelOffset=Cesium.defaultValue(e.pixelOffset,0),e.scale=Cesium.defaultValue(e.scale,1),e.near=Cesium.defaultValue(e.near,150),e.nearValue=Cesium.defaultValue(e.nearValue,1),e.far=Cesium.defaultValue(e.far,2400),e.farValue=Cesium.defaultValue(e.farValue,0),s.label={text:e.text,font:e.font,fillColor:e.fillColor,outlineColor:e.outlineColor,outlineWidth:e.outlineWidth,style:Cesium.LabelStyle.FILL_AND_OUTLINE,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,showBackground:e.showBackground,backgroundColor:e.backgroundColor,backgroundPadding:new Cesium.Cartesian2(6,6),disableDepthTestDistance:Number.POSITIVE_INFINITY,pixelOffset:new Cesium.Cartesian2(0,t.pixelOffset),scale:e.scale,scaleByDistance:new Cesium.NearFarScalar(e.near,e.nearValue,e.far,e.farValue)}}o.entities.add(s),i(s)}))},addBillboardByGeoJson:function(e,t){return new Promise(((r,o)=>{let n=this._viewer;if(!Cesium.defined(e))throw new Cesium.DeveloperError("geoJsonUrl is required.");(t=t||{}).id=t.id||m();let a=t.billboard||{};a.imgUrl=Cesium.defaultValue(a.imgUrl,"./jt3dSDK/imgs/point/point3.png"),a.scale=Cesium.defaultValue(a.scale,1),a.pixelOffset=Cesium.defaultValue(a.pixelOffset,0);let s=t.label||{};s.text=Cesium.defaultValue(s.text,""),s.textField=Cesium.defaultValue(s.textField,""),s.font=Cesium.defaultValue(s.font,"24px Helvetica"),s.fillColor instanceof Array?s.fillColor=new Cesium.Color(s.fillColor[0],s.fillColor[1],s.fillColor[2],s.fillColor[3]||1):s.fillColor instanceof String?s.fillColor=new Cesium.Color.fromCssColorString(s.fillColor).withAlpha(1):s.fillColor=new Cesium.Color.fromCssColorString("#ff0000").withAlpha(1),s.outlineColor instanceof Array?s.outlineColor=new Cesium.Color(s.outlineColor[0],s.outlineColor[1],s.outlineColor[2],s.outlineColor[3]||1):s.outlineColor instanceof String?s.outlineColor=new Cesium.Color.fromCssColorString(s.outlineColor).withAlpha(1):s.outlineColor=new Cesium.Color.fromCssColorString("#FFFF00").withAlpha(1),s.outlineWidth=Cesium.defaultValue(s.outlineWidth,1),s.showBackground=Cesium.defaultValue(s.showBackground,!1),s.backgroundColor instanceof Array?s.backgroundColor=new Cesium.Color(s.backgroundColor[0],s.backgroundColor[1],s.backgroundColor[2],s.backgroundColor[3]||1):s.backgroundColor instanceof String?s.backgroundColor=new Cesium.Color.fromCssColorString(s.backgroundColor).withAlpha(1):s.backgroundColor=new Cesium.Color.fromCssColorString("#FFFF00").withAlpha(1),s.pixelOffset=Cesium.defaultValue(s.pixelOffset,0),s.scale=Cesium.defaultValue(s.scale,1),s.near=Cesium.defaultValue(s.near,150),s.nearValue=Cesium.defaultValue(s.nearValue,1),s.far=Cesium.defaultValue(s.far,2400),s.farValue=Cesium.defaultValue(s.farValue,0);new Cesium.GeoJsonDataSource(t.id).load(e,{clampToGround:!0}).then((function(e){n.dataSources.add(e);e.entities.values.forEach((e=>{e.billboard={image:a.imgUrl,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,scale:a.scale,pixelOffset:new Cesium.Cartesian2(0,a.pixelOffset),disableDepthTestDistance:Number.POSITIVE_INFINITY};let t=s.text;e.properties[s.textField]&&(t=e.properties[s.textField]._value),""===t&&(t=(i+1).toString()),e.label={text:t.toString(),font:s.font,fillColor:s.fillColor,outlineColor:s.outlineColor,outlineWidth:s.outlineWidth,style:Cesium.LabelStyle.FILL_AND_OUTLINE,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,showBackground:s.showBackground,backgroundColor:s.backgroundColor,backgroundPadding:new Cesium.Cartesian2(6,6),disableDepthTestDistance:Number.POSITIVE_INFINITY,pixelOffset:new Cesium.Cartesian2(0,s.pixelOffset),scale:s.scale},s.scaleByDistance&&(s.scaleByDistance.near=Cesium.defaultValue(s.scaleByDistance.near,0),s.scaleByDistance.nearValue=Cesium.defaultValue(s.scaleByDistance.nearValue,0),s.scaleByDistance.far=Cesium.defaultValue(s.scaleByDistance.far,1),s.scaleByDistance.farValue=Cesium.defaultValue(s.scaleByDistance.farValue,0),e.label.scaleByDistance=new Cesium.NearFarScalar(s.scaleByDistance.near,s.scaleByDistance.nearValue,s.scaleByDistance.far,s.scaleByDistance.farValue))}))}))}))},addGltf:function(e){let t=this._viewer;return new Promise(((i,r)=>{if(!Cesium.defined(e.points))throw i("options.points is required."),new Cesium.DeveloperError("options.points is required.");if(!Cesium.defined(e.url))throw i("options.url is required."),new Cesium.DeveloperError("options.url is required.");let o;e.id=e.id||m(),e.heading=Cesium.defaultValue(e.heading,0),e.pitch=Cesium.defaultValue(e.pitch,0),e.roll=Cesium.defaultValue(e.roll,0),e.alpha=Cesium.defaultValue(e.alpha,1),o=e.points instanceof Cesium.Cartesian3?e.points:Cesium.Cartesian3.fromDegrees(e.points[0],e.points[1],e.points[2]||0);var n=Cesium.Math.toRadians(e.heading),a=e.pitch,s=e.roll,l=new Cesium.HeadingPitchRoll(n,a,s),c=t.entities.add({id:e.id,position:o,orientation:Cesium.Transforms.headingPitchRollQuaternion(o,l),model:{uri:e.url,incrementallyLoadTextures:!0,colorBlendMode:Cesium.ColorBlendMode.HIGHLIGHT,colorBlendAmount:.1,color:Cesium.Color.WHITE.withAlpha(e.alpha),imageBasedLightingFactor:new Cesium.Cartesian2(12,13),runAnimations:!0,show:!0,debugWireframe:!1,debugShowBoundingVolume:!1}});e.minimumPixelSize&&(c.model.minimumPixelSize=e.minimumPixelSize),e.maximumScale&&(c.model.maximumScale=e.maximumScale),e.silhouetteColor&&(c.model.silhouetteColor=new Cesium.Color(e.silhouetteColor[0],e.silhouetteColor[1],e.silhouetteColor[2],e.silhouetteColor[3]||1)),window[e.id]=c,i(e.id)}))},addModelFromGltf(e){let t=this._viewer;return new Promise(((i,r)=>{if(!Cesium.defined(e.points))throw i("options.points is required."),new Cesium.DeveloperError("options.points is required.");if(!Cesium.defined(e.url))throw i("options.url is required."),new Cesium.DeveloperError("options.url is required.");let o;e.id=e.id||m(),e.scale=Cesium.defaultValue(e.scale,1),o=e.points instanceof Cesium.Cartesian3?e.points:Cesium.Cartesian3.fromDegrees(e.points[0],e.points[1],e.points[2]||0);const n=Cesium.Transforms.eastNorthUpToFixedFrame(o);let a=t.scene.primitives.add(Cesium.Model.fromGltf({show:!0,url:e.url,modelMatrix:n,lightColor:new Cesium.Cartesian3(10,10,10),debugWireframe:!1,debugShowBoundingVolume:!1}));a.readyPromise.then((function(){var e=Cesium.Matrix4.fromRotationTranslation(Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(0)));Cesium.Matrix4.multiply(a.modelMatrix,e,a.modelMatrix)})),window[e.id]=a,i(e.id)}))}});class nr{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e}}Object.assign(nr.prototype,{drawPolylineByGeoJson:function(e,t){return new Promise(((i,r)=>{let o=this._viewer;if(!Cesium.defined(e))throw new Cesium.DeveloperError("geoJsonUrl is required.");(t=t||{}).id=t.id||m(),t.clampToGround=Cesium.defaultValue(t.clampToGround,!0),t.width=Cesium.defaultValue(t.width,3),t.minHeigh=Cesium.defaultValue(t.minHeigh,0),t.maxHeigh=Cesium.defaultValue(t.maxHeigh,2e8),Cesium.GeoJsonDataSource.load(e,{clampToGround:t.clampToGround}).then((e=>{o.dataSources.add(e),e.name=t.id;let r=e.entities.values,n=new Cesium.DistanceDisplayCondition(t.minHeigh,t.maxHeigh),a=new S(t);for(var s=0;s{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&r("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||m(),t.width=t.width||5;let n=new S(t);i(this._viewer.entities.add({id:t.id,name:"Pulse line",polyline:{positions:o,width:t.width,material:n,clampToGround:!0}}))}))},PolylineArrowMaterialProperty:function(e,t){return new Promise(((i,r)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&r("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||m(),t.width=t.width||5;let n=new S(t);i(this._viewer.entities.add({id:t.id,name:"Pulse line",polyline:{positions:o,width:t.width,material:n,clampToGround:!0}}))}))},drawGlowingLine(e,t){return new Promise(((i,r)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&r("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||m(),t.color?t.color=new Cesium.Color(t.color[0],t.color[1],t.color[2],t.color[3]||1):t.color=Cesium.Color.RED,t.width=t.width||5,t.glowPower=t.glowPower||.25,t.taperPower=t.taperPower||1,i(this._viewer.entities.add({id:t.id,name:"Glowing blue line on the surface",polyline:{clampToGround:!0,positions:o,width:t.width,followSurface:!0,material:new Cesium.PolylineGlowMaterialProperty({color:t.color,glowPower:t.glowPower,taperPower:t.taperPower})}}))}))},drawSpecifyColorLine(e,t){return new Promise(((i,r)=>{Cesium.defined(e)||r("points is required."),e.length<2&&r("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||m(),t.color?t.color=new Cesium.Color(t.color[0],t.color[1],t.color[2],t.color[3]||1):t.color=new Cesium.Color.fromCssColorString("#ff0000").withAlpha(1),t.width=t.width||5,i(this._viewer.entities.add({id:t.id,name:"Red line on the surface",polyline:{clampToGround:!0,positions:o,width:t.width,material:t.color}}))}))},drawSpecifyColorAndOutlineColorLine(e,t){return new Promise(((i,r)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&r("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||m(),t.color?t.color=new Cesium.Color(t.color[0],t.color[1],t.color[2],t.color[3]||1):t.color=new Cesium.Color.fromCssColorString("#ff0000").withAlpha(1),t.width=t.width||5,t.outlineColor?t.outlineColor=new Cesium.Color(t.outlineColor[0],t.outlineColor[1],t.outlineColor[2],t.outlineColor[3]||1):t.outlineColor=new Cesium.Color.fromCssColorString("#ffff00").withAlpha(1),t.outlineWidth=Cesium.defaultValue(t.outlineWidth,1),i(this._viewer.entities.add({id:t.id,name:"Orange line with black outline at height and following the surface",polyline:{clampToGround:!0,positions:o,width:t.width,material:new Cesium.PolylineOutlineMaterialProperty({color:t.color,outlineWidth:t.outlineWidth,outlineColor:t.outlineColor})}}))}))},drawSpecifyColorArrowStaticStateLine(e,t){return new Promise(((i,r)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&r("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||m(),t.color?t.color=new Cesium.Color(t.color[0],t.color[1],t.color[2],t.color[3]||1):t.color=new Cesium.Color.fromCssColorString("#ff0000").withAlpha(1),t.width=t.width||5,i(this._viewer.entities.add({id:t.id,name:"Purple straight arrow at height",polyline:{clampToGround:!0,positions:o,width:t.width,followSurface:!1,material:new Cesium.PolylineArrowMaterialProperty(t.color)}}))}))},drawDashedLine(e,t){return new Promise(((i,r)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&r("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||m(),t.color?t.color=new Cesium.Color(t.color[0],t.color[1],t.color[2],t.color[3]||1):t.color=new Cesium.Color.fromCssColorString("#ff0000").withAlpha(1),t.width=t.width||5,t.gapColor?t.gapColor=new Cesium.Color(t.gapColor[0],t.gapColor[1],t.gapColor[2],t.gapColor[3]||1):t.gapColor=Cesium.Color.TRANSPARENT,t.dashLength=t.dashLength||16,t.dashPattern=t.dashPattern||255,i(this._viewer.entities.add({id:t.id,name:"CYAN dashed line",polyline:{clampToGround:!0,positions:o,width:t.width,material:new Cesium.PolylineDashMaterialProperty({color:t.color,gapColor:t.gapColor,dashLength:t.dashLength,dashPattern:t.dashPattern})}}))}))}});class ar{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._drawEntities=[],this._polygonEntity=null}}Object.assign(ar.prototype,{drawPolygonByGeoJson(e,t){return new Promise(((i,r)=>{let o=this;if(!Cesium.defined(e))throw new Cesium.DeveloperError("geoJsonUrl is required.");(t=t||{}).id=t.id||m(),t.clampToGround=Cesium.defaultValue(t.clampToGround,!0),t.color=Cesium.defaultValue(t.color,"#FF0000"),t.outlineColor=Cesium.defaultValue(t.outlineColor,"#FFFF00"),t.outlineWidth=Cesium.defaultValue(t.outlineWidth,1),t.extrudedHeight=Cesium.defaultValue(t.extrudedHeight,0),Cesium.GeoJsonDataSource.load(e,{clampToGround:!0,stroke:Cesium.Color.WHITE,strokeWidth:3,fill:Cesium.Color.RED.withAlpha(.5)}).then((e=>{o._viewer.dataSources.add(e),e.name=t.id;let r=e.entities.values;for(let i=0;i{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<3&&r("面对象,点数至少3个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||m(),t.fill=t.fill||!0,t.color?t.color=new Cesium.Color(t.color[0],t.color[1],t.color[2],t.color[3]||1):t.color=new Cesium.Color.fromCssColorString("#ff0000").withAlpha(1),t.outline=t.outline||!1,t.outlineColor?t.outlineColor=new Cesium.Color(t.outlineColor[0],t.outlineColor[1],t.outlineColor[2],t.outlineColor[3]||1):t.outlineColor=new Cesium.Color.fromCssColorString("#000").withAlpha(1),t.outlineWidth=Cesium.defaultValue(t.outlineWidth,1);let n=new Cesium.Entity({id:t.id,name:"Generate surfaces based on coordinate points",polygon:{hierarchy:o,material:t.color,fill:t.fill,outline:t.outline,outlineWidth:t.outlineWidth,outlineColor:t.outlineColor}});t.outline&&(n.polyline={positions:n.polygon.hierarchy._value.positions,width:t.outlineWidth,material:t.outlineColor,clampToGround:!0}),this._viewer.entities.add(n),i(n)}))}}),Cesium.Primitive.prototype.setUseGeometry=function(e){this._useGeometry=e},Cesium.Primitive.prototype.getUseGeometry=function(){return this._useGeometry};class sr{constructor(e,t){this._viewer=e,this._init(t)}_init(e){if(this._viewer.scene.globe.depthTestAgainstTerrain=!0,this._viewer.cesiumWidget.screenSpaceEventHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),this._entities=this._viewer.entities,this._pointEntitys=[],this._sketchPointImage=void 0,this._iconNormal="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcEAYAAAAinQPXAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAAASAAAAEgARslrPgAAB2FJREFUWMO9mHtQlNcZxn/nW65GxHtEqTEajUxVoLYRSIyipHG4qG0lajtxVIRFubgqXuOI28ZE7FAvCLKLSNKxg/FSIzdvqNE62kaRitqpYMxovBGigo4I4n6nfwjsCrsLrtjnn53vnPe87/Oc9/2+854VdBhCd6ZP6dMHlAXO/lOngrzMLz/8EEQ0ASNGANNY2aOHxYIdfHr3LuBCwPnzQIKcf/AgiJ8pQV99BfmvR4+orHxZVsLxpZFT0qd07gy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sketchEntityName="sketchEntity",this._sketchTempPoints=[],this._sketchPoints=[],this._sketchOutputPoints=[],this._sketchTempPolyline=void 0,this._sketchPolyline=void 0,this._sketchTempPolygon=void 0,this._sketchPolygon=void 0,this._sketchTempAltituePolyline=void 0,this._sketchAltitudePolyline=void 0,this._sketchAltitudeInitHeight=0,this._sketchTempSpatialPolyline=void 0,this._sketchSpatialPolyline=void 0,this._sketchTempCircle=void 0,this._sketchCircle=void 0,this._sketchTempRectangle=void 0,this._sketchRectangle=void 0,this._sketchTempTriangleAltitudePolyline=void 0,this._sketchTriangleAltituePolyline=void 0,this._sketchTempSpatialTriangle=void 0,this._sketchSpatialTriangle=void 0,this._lineLabel=void 0,this._polygonLabel=void 0,e&&e.isDrawPoint?this._isDrawPoint=e.isDrawPoint:this._isDrawPoint=!1,e&&e.isRetainDrawPoint?this._isRetainDrawPoint=e.isRetainDrawPoint:this._isRetainDrawPoint=!1,this._param={moveLineWidth:2,lineWidth:2,moveAltitudeLineWidth:2,altitudeLineWidth:2,spatialLineWidth:2,moveEllipseColor:[0,255,0,.5],moveEllipseOutline:!0,moveEllipseOutlineColor:[255,0,0,.5],moveEllipseOutlineWidth:1,spatialLineWidth:2,ellipseColor:[0,0,255,.5],ellipseOutline:!0,ellipseOutlineColor:[255,0,0,.5],ellipseOutlineWidth:1},this._setMoveLineStyle(void 0),this._setLineStyle(void 0),this._setMovePolygonStyle(void 0),this._setPolygonStyle(void 0),this._setMoveAltitudeLineStyle(void 0),this._setAltitudeLineStyle(void 0),this._setMoveEllipseStyle(void 0),this._setEllipseStyle(void 0),this._setSpatialLineStyle(void 0),e&&e.iconType)switch(e.iconType){case sr.SketchIconType.Normal:this._sketchPointImage=this._iconNormal;break;case sr.SketchIconType.Blue:this._sketchPointImage=this._iconBlue;break;case sr.SketchIconType.Green:this._sketchPointImage=this._iconGreen;break;case sr.SketchIconType.Violet:this._sketchPointImage=this._iconViolet;break;default:this._sketchPointImage=this._iconNormal}else this._sketchPointImage=this._iconNormal}_arcToDegree(e){return e/Math.PI*180}_toColor(e,t,i,r){let o=new Cesium.Color(0,0,0,1);return"number"!=typeof e||"number"!=typeof t||"number"!=typeof i||"number"!=typeof r||e<0||e>255||t<0||t>255||i<0||i>255||r<0||r>1?o:new Cesium.Color(e/255,t/255,i/255,r)}_toColorFromArray(e){if(!e||void 0===e.length||0===e.length)return new Cesium.Color(1,1,1,1);let t=255,i=255,r=255,o=1;return 1===e.length?t=parseInt(e[0]):2===e.length?(t=parseInt(e[0]),i=parseInt(e[1])):3===e.length?(t=parseInt(e[0]),i=parseInt(e[1]),r=parseInt(e[2])):e.length>=4&&(t=parseInt(e[0]),i=parseInt(e[1]),r=parseInt(e[2]),o=parseFloat(e[3])),new Cesium.Color(t/255,i/255,r/255,o)}_updateScene(){this._viewer.scene.requestRender()}_getScreenClickPosition(e){let t,i=this._viewer.scene.camera.getPickRay(e),r=this._viewer.scene.globe.pick(i,this._viewer.scene);return Cesium.Ellipsoid.WGS84.cartesianToCartographic(r),Cesium.defined(r)&&(t={x:r.x,y:r.y,z:r.z}),t}_getScreenClickPositionAndHeight(e){var t=void 0,i=void 0,r=void 0,o=this._viewer.scene.camera.getPickRay(e),n=this._viewer.scene.globe.pick(o,this._viewer.scene),a=Cesium.Ellipsoid.WGS84.cartesianToCartographic(n);if(null==this._viewer.scene.pick(e))t=this._arcToDegree(a.longitude),i=this._arcToDegree(a.latitude),r=a.height;else{var s=this._viewer.scene.pickPosition(e);if(Cesium.defined(s)){a=Cesium.Cartographic.fromCartesian(s);t=this._arcToDegree(a.longitude),i=this._arcToDegree(a.latitude),r=a.height}}return{lng:t,lat:i,height:r}}_transfromFromScreenPoint(e){let t=this._getScreenClickPositionAndHeight(e);return{gLocation:t,sLocation:Cesium.Cartesian3.fromDegrees(t.lng,t.lat,t.height)}}_removeEntityByName(e){var t=this._entities;if(t&&t.values){for(var i=[],r=0;r0&&(i._sketchPoints.pop(),i._sketchOutputPoints.pop(),t.onUndo&&t.onUndo())})),this._registerLeftDoubleClickEvent(e,(function(e){i._clearEvent(),t.onComplete&&t.onComplete(i._sketchPoints,i._sketchOutputPoints)}))},_sketchDrawPolyline(e,t){let i=this;this._registerLeftClickEvent(e,(function(e){let r=i._transfromFromScreenPoint(e.position);Cesium.defined(r.sLocation)&&(i._isDrawPoint&&i._createPoint(r.sLocation,i._lineLabel),0===i._sketchTempPoints.length&&(i._createTempPolyline(),i._sketchTempPoints.push(r.sLocation.clone())),i._sketchTempPoints.push(r.sLocation),i._sketchPoints.push(r.sLocation.clone()),i._sketchOutputPoints.push(r.gLocation),t.onAdded&&t.onAdded(i._sketchPoints,i._sketchOutputPoints))})),this._registerMouseMoveEvent(e,(function(e){if(i._isRuntimeApp())return;let r=i._transfromFromScreenPoint(e.endPosition);Cesium.defined(r.sLocation)&&Cesium.defined(i._sketchTempPolyline)&&(i._sketchTempPoints.pop(),i._sketchTempPoints.push(r.sLocation),t.onMoving&&t.onMoving(r.sLocation))})),this._registerRightClickEvent(e,(function(e){if(i._sketchTempPoints.length>2){if(i._sketchPoints.pop(),i._sketchTempPoints.splice(i._sketchTempPoints.length-2,1),i._isDrawPoint){let e=i._pointEntitys[i._pointEntitys.length-1];i._entities.remove(e),i._pointEntitys.pop()}t.onUndo&&t.onUndo()}})),this._registerLeftDoubleClickEvent(e,(function(r){i._sketchPoints.length<2?t.onError&&t.onError("点数少于两个,禁止结束绘制!"):(i._removeEntityByObject(i._sketchTempPolyline),i._createPolyline(),i._isRetainDrawPoint||i._removePointEntitys(),i._clearEvent(e),t.onComplete&&t.onComplete(i._sketchPoints,i._sketchOutputPoints))}))},_sketchDrawSpatialPolyline(e,t){let i=this;this._registerLeftClickEvent(e,(function(e){let r=i._transfromFromScreenPoint(e.position);Cesium.defined(r.sLocation)&&(i._isDrawPoint&&i._createPoint(r.sLocation,i._lineLabel),0===i._sketchTempPoints.length&&(i._createTempSpatialPolyline(),i._sketchTempPoints.push(r.sLocation.clone())),i._sketchTempPoints.push(r.sLocation),i._sketchPoints.push(r.sLocation.clone()),i._sketchOutputPoints.push(r.gLocation),t.onAdded&&t.onAdded(i._sketchPoints,i._sketchOutputPoints))})),this._registerMouseMoveEvent(e,(function(e){if(i._isRuntimeApp())return;let r=i._transfromFromScreenPoint(e.endPosition);Cesium.defined(r.sLocation)&&Cesium.defined(i._sketchTempSpatialPolyline)&&(i._sketchTempPoints.pop(),i._sketchTempPoints.push(r.sLocation),t.onMoving&&t.onMoving(r.sLocation))})),this._registerLeftDoubleClickEvent(e,(function(r){i._sketchPoints.length<2?t.onError&&t.onError("绘制点少于2个,禁止结束绘制!"):(i._removeEntityByObject(i._sketchTempSpatialPolyline),i._createSpatialPolyline(),i._removePointEntitys(),i._clearEvent(e),t.onComplete&&t.onComplete(i._sketchPoints,i._sketchOutputPoints))})),this._registerRightClickEvent(e,(function(e){i._sketchTempPoints.length>2&&(i._sketchPoints.pop(),i._sketchTempPoints.splice(i._sketchTempPoints.length-2,1),t.onUndo&&t.onUndo())}))},_sketchDrawPolygon(e,t){let i=this;this._registerLeftClickEvent(e,(function(e){let r=i._transfromFromScreenPoint(e.position);Cesium.defined(r.sLocation)&&(i._isDrawPoint&&i._createPoint(r.sLocation,i._lineLabel),0===i._sketchTempPoints.length&&(i._createTempPolygon(),i._createTempPolyline(),i._sketchTempPoints.push(r.sLocation.clone())),i._sketchTempPoints.push(r.sLocation),i._sketchPoints.push(r.sLocation.clone()),i._sketchOutputPoints.push(r.gLocation),t.onAdded&&t.onAdded(i._sketchPoints,i._sketchOutputPoints))})),this._registerMouseMoveEvent(e,(function(e){if(i._isRuntimeApp())return;let r=i._transfromFromScreenPoint(e.endPosition);Cesium.defined(r.sLocation)&&Cesium.defined(i._sketchTempPolygon)&&(i._sketchTempPoints.pop(),i._sketchTempPoints.push(r.sLocation),t.onMoving&&t.onMoving(r.sLocation))})),this._registerRightClickEvent(e,(function(e){if(i._sketchTempPoints.length>2){if(i._sketchPoints.pop(),i._sketchTempPoints.splice(i._sketchTempPoints.length-2,1),i._isDrawPoint){let e=i._pointEntitys[i._pointEntitys.length-1];i._entities.remove(e),i._pointEntitys.pop()}t.onUndo&&t.onUndo()}})),this._registerLeftDoubleClickEvent(e,(function(r){i._sketchPoints.length<3?t.onError&&t.onError("点数少于3个,禁止结束绘制!"):(i._removeEntityByObject(i._sketchTempPolygon),i._removeEntityByObject(i._sketchTempPolyline),i._createPolygon(),i._isRetainDrawPoint||i._removePointEntitys(),i._clearEvent(e),t.onComplete&&t.onComplete(i._sketchPoints,i._sketchOutputPoints))}))},_sketchDrawCircle:function(e,t){let i=this;this._registerLeftClickEvent(e,(function(r){if(0===i._sketchTempPoints.length){let e=i._transfromFromScreenPoint(r.position);if(!Cesium.defined(e.sLocation))return;i._isDrawPoint&&i._createPoint(e.sLocation,"起点"),i._sketchTempPoints.push(e.sLocation.clone()),i._sketchTempPoints.push(e.sLocation),i._sketchPoints.push(e.sLocation.clone()),i._sketchOutputPoints.push(e.gLocation),i._createTempCircle(e.sLocation),t.onAdded&&t.onAdded(e.sLocation)}else i._removePointEntitys(),i._removeEntityByObject(i._sketchTempCircle),i._createCircle(),i._clearEvent(e),t.onComplete&&t.onComplete(i._sketchOutputPoints[0],i._sketchEllipseRadius)})),this._registerMouseMoveEvent(e,(function(e){if(!i._isRuntimeApp()&&Cesium.defined(i._sketchTempCircle)){var t=i._viewer.scene.pickPosition(e.endPosition);null!=t&&(i._sketchTempPoints.pop(),i._sketchTempPoints.push(t))}}))},_sketchDrawHeightPolyline:function(e,t){let i=this;this._registerLeftClickEvent(e,(function(r){if(0===i._sketchTempPoints.length){let e=i._transfromFromScreenPoint(r.position);if(!Cesium.defined(e.sLocation))return;i._isDrawPoint&&i._createPoint(e.sLocation,"起点"),i._sketchAltitudeInitHeight=e.gLocation.height,i._sketchTempPoints.push(e.sLocation.clone()),i._sketchTempPoints.push(e.sLocation),i._sketchPoints.push(e.sLocation.clone()),t.onAdded&&t.onAdded(e.sLocation)}else i._removePointEntitys(),i._removeEntityByObject(i._sketchTempAltituePolyline),i._createAltitudePolyline(),i._clearEvent(e),t.onComplete&&t.onComplete(i._sketchAltitudePolylinePostions,i._sketchEllipseCenterPosition)})),this._registerMouseMoveEvent(e,(function(e){if(!i._isRuntimeApp()&&null!=i._sketchTempPoints&&0!=i._sketchTempPoints.length){var r=i._viewer.scene.pickPosition(e.endPosition);null!=r&&i._sketchTempPoints.length>=2&&(Cesium.defined(i._sketchTempAltituePolyline)?(i._sketchTempPoints.pop(),i._sketchTempPoints.push(r)):i._createTempAltitudePolyline(),t.onMoving&&t.onMoving(i._sketchAltitudePolylinePostions,i._sketchEllipseCenterPosition))}}))},_sketchDrawRectangle:function(e,t){let i=this;this._registerLeftClickEvent(e,(function(r){if(0===i._sketchTempPoints.length){let e=i._transfromFromScreenPoint(r.position);if(!Cesium.defined(e.sLocation))return;i._isDrawPoint&&i._createPoint(e.sLocation,"起点"),i._sketchTempPoints.push(e.gLocation),i._sketchTempPoints.push(e.gLocation),i._sketchPoints.push(e.gLocation),i._createTempRectangle(),t.onAdded&&t.onAdded(e.sLocation)}else i._removePointEntitys(),i._removeEntityByObject(i._sketchTempRectangle),i._createRectangle(),e.destroy(),e=null,t.onComplete&&t.onComplete(i._sketchOutputPoints)})),this._registerMouseMoveEvent(e,(function(e){if(i._isRuntimeApp())return;if(!Cesium.defined(i._sketchTempRectangle))return;let t=i._transfromFromScreenPoint(e.endPosition);Cesium.defined(t.sLocation)&&(i._sketchTempPoints.pop(),i._sketchTempPoints.push(t.gLocation))}))},_sketchDrawTriangle:function(e,t){let i=this;e.setInputAction((function(e){if(Cesium.defined(i._sketchTempAltituePolyline))return;let t=i._transfromFromScreenPoint(e.position);Cesium.defined(t.sLocation)&&(0==i._sketchPoints.length?(i._createPoint(t.sLocation,"起点"),i._sketchTempPoints.push(t.sLocation.clone()),i._sketchTempPoints.push(t.sLocation),i._sketchPoints.push(t.sLocation),i._createTempPolyline()):1===i._sketchPoints.length&&(i._createPoint(t.sLocation,"高度起点"),i._entities.remove(i._sketchTempPolyline),i._sketchPoints.push(t.sLocation),i._createPolyline(),i._sketchTempPoints.push(t.sLocation.clone()),i._sketchPoints.push(t.sLocation),i._sketchAltitudeInitHeight=t.gLocation.height,i._createTempTriangleAltitudePolylineAndSpatialPolyline()))}),Cesium.ScreenSpaceEventType.LEFT_CLICK),e.setInputAction((function(e){if(void 0!==i._sketchPoints&&0!==i._sketchPoints.length){var t=i._viewer.scene.pickPosition(e.endPosition);null!=t&&(i._sketchTempPoints.pop(),i._sketchTempPoints.push(t))}}),Cesium.ScreenSpaceEventType.MOUSE_MOVE),e.setInputAction((function(r){i._sketchPoints.length<2?t.onError&&t.onError("绘制图形不完整,禁止结束绘制!"):(i._removePointEntitys(),i._removeEntityByObject(i._sketchTempTriangleAltitudePolyline),i._removeEntityByObject(i._sketchTempSpatialPolyline),i._createAltitudePolyline(),i._createTriangleSpatialPolyline(),e.destroy(),e=null,t.onComplete(i._sketchPoints,i._sketchTriangleSpatialPolylinePositions,i._sketchAltitudePolylinePostions,i._sketchEllipseCenterPosition))}),Cesium.ScreenSpaceEventType.RIGHT_CLICK)},_sketchDrawPolygonBody(e,t){let i=this;this._registerLeftClickEvent(e,(function(e){let r=i._transfromFromScreenPoint(e.position);Cesium.defined(r.sLocation)&&(i._isDrawPoint&&i._createPoint(r.sLocation,i._lineLabel),0===i._sketchTempPoints.length&&(i._createTempPolygon(),i._createTempPolyline(),i._sketchTempPoints.push(r.sLocation.clone())),i._sketchTempPoints.push(r.sLocation),i._sketchPoints.push(r.sLocation.clone()),i._sketchOutputPoints.push(r.gLocation),t.onAdded&&t.onAdded(i._sketchPoints,i._sketchOutputPoints))})),this._registerMouseMoveEvent(e,(function(e){if(i._isRuntimeApp())return;let r=i._transfromFromScreenPoint(e.endPosition);Cesium.defined(r.sLocation)&&Cesium.defined(i._sketchTempPolygon)&&(i._sketchTempPoints.pop(),i._sketchTempPoints.push(r.sLocation),t.onMoving&&t.onMoving(r.sLocation))})),this._registerRightClickEvent(e,(function(e){i._sketchTempPoints.length>2&&(i._sketchPoints.pop(),i._sketchOutputPoints.pop(),i._sketchTempPoints.splice(i._sketchTempPoints.length-2,1),t.onUndo&&t.onUndo(i._sketchPoints))})),this._registerLeftDoubleClickEvent(e,(function(r){i._sketchPoints.length<3?t.onError&&t.onError("点数少于3个,禁止结束绘制!"):(i._removeEntityByObject(i._sketchTempPolygon),i._removeEntityByObject(i._sketchTempPolyline),i._createPolygonBody({height:30,color:[255,255,0,.9]}),i._removePointEntitys(),i._clearEvent(e),t.onComplete&&t.onComplete(i._sketchPoints,i._sketchOutputPoints))}))},_sketchDrawTriangleA:function(e,t){let i=this;this._registerLeftClickEvent(e,(function(r){if(Cesium.defined(i._sketchTempAltituePolyline))return;let o=i._transfromFromScreenPoint(r.position);Cesium.defined(o.sLocation)&&(0==i._sketchPoints.length?(i._sketchTempPoints.push(o.sLocation.clone()),i._sketchTempPoints.push(o.sLocation),i._sketchPoints.push(o.sLocation),i._createTempSpatialTriangle()):i._sketchPoints.length>0&&(i._removePointEntitys(),i._removeEntityByObject(i._sketchTempSpatialTriangle),i._createSpatialTriangle(),i._clearEvent(e),t.onComplete&&t.onComplete(i._sketchSpatialTrianglePositions)))})),this._registerMouseMoveEvent(e,(function(e){if(!i._isRuntimeApp()&&void 0!==i._sketchPoints&&0!==i._sketchPoints.length){var r=i._viewer.scene.pickPosition(e.endPosition);null!=r&&(i._sketchTempPoints.pop(),i._sketchTempPoints.push(r),t.onMoving&&t.onMoving(r))}}))},sketchTools:function(e,t){let i=this;switch(this._clear(),i._sketchEventHandler=new Cesium.ScreenSpaceEventHandler(this._viewer.scene.canvas),e){case sr.SketchType.Point:i._sketchDrawPoint(i._sketchEventHandler,t);break;case sr.SketchType.Line:i._sketchDrawPolyline(i._sketchEventHandler,t);break;case sr.SketchType.Polygon:i._sketchDrawPolygon(i._sketchEventHandler,t);break;case sr.SketchType.Height:i._sketchDrawHeightPolyline(i._sketchEventHandler,t);break;case sr.SketchType.Spatial:i._sketchDrawSpatialPolyline(i._sketchEventHandler,t);break;case sr.SketchType.Circle:i._sketchDrawCircle(i._sketchEventHandler,t);break;case sr.SketchType.Rectangle:i._sketchDrawRectangle(i._sketchEventHandler,t);break;case sr.SketchType.Triangle:i._sketchDrawTriangleA(i._sketchEventHandler,t);break;case sr.SketchType.PolygonBody:i._sketchDrawPolygonBody(i._sketchEventHandler,t);break;case sr.SketchType.MultiplePoint:i._sketchDrawMultiplePoint(i._sketchEventHandler,t)}},sketchDrawFeacture:function(e,t,i){let r=this;if(void 0===e||void 0===e.length||e.length<2)i&&i.onError&&i.onError("输入的坐标集合异常!");else{this._sketchPoints=[];for(let t=0;t255)},_checkAlpha:function(e){if(null==e)return!1;if("number"!=typeof e)return!1;let t=parseFloat(e);return!(t<0||t>1)},_checkColorAndAlpha:function(e){let t;if(e&&void 0!==e.length&&0!==e.length)return 1===e.length&&this._checkColor(e[0])?t=[e[0],0,0,1]:2===e.length&&this._checkColor(e[0])&&this._checkColor(e[1])?t=[e[0],e[1],0,1]:3===e.length&&this._checkColor(e[0])&&this._checkColor(e[1])&&this._checkColor(e[2])?t=[e[0],e[1],e[2],1]:4===e.length&&this._checkColor(e[0])&&this._checkColor(e[1])&&this._checkColor(e[2])&&this._checkAlpha(e[3])&&(t=[e[0],e[1],e[2],e[3]]),t},sketchEditPickPolygonBody:function(e){let t=this._sketchPickPolygonBody;if(void 0===t)return void(e.onComplete&&e.onComplete("未拾取对象或拾取的对象不符合要求!"));let i=t._useGeometry.color,r=t._useGeometry.height;this._sketchPoints=t._useGeometry.cPoints,this._sketchOutputPoints=t._useGeometry.gPoints,e&&e.height&&"number"==typeof e.height&&(r=parseInt(e.height)),e&&e.color&&this._checkColorAndAlpha(e.color)&&(i=this._checkColorAndAlpha(e.color)),this._viewer.scene.primitives.remove(t),this._createPolygonBody({color:i,height:r}),e.onComplete&&e.onComplete(void 0)},sketchRemovePickPolygonBody:function(e){let t=this._sketchPickPolygonBody;void 0!==t?(this._viewer.scene.primitives.remove(t),e&&e(void 0)):e&&e("未拾取对象或拾取的对象不符合要求!")},sketchPick:function(e){let t=this,i=new Cesium.ScreenSpaceEventHandler(this._viewer.scene.canvas);i.setInputAction((function(r){let o=t._viewer.scene.pick(r.position);o&&o.primitive&&null!=o.primitive._useGeometry?(t._sketchPickPolygonBody=o.primitive,e&&e({color:o.primitive._useGeometry.color,height:o.primitive._useGeometry.height})):(t._sketchPickPolygonBody=void 0,e&&e(void 0)),i.destroy(),i=null}),Cesium.ScreenSpaceEventType.LEFT_CLICK)}}),sr.SketchType=Object.freeze({Point:"point",MultiplePoint:"multiplePoint",Line:"line",Polygon:"polygon",Height:"height",Spatial:"spatial",Circle:"circle",Rectangle:"rectangle",Triangle:"triangle",PolygonBody:"polygonBody",DrawPoint:"drawPoint",DrawMultiplePoint:"drawMultiplePoint",DrawPolyline:"drawPolyline",DrawPolygon:"drawPolygon"}),sr.SketchIconType=Object.freeze({Normal:"normal",Blue:"blue",Green:"green",Violet:"violter"}),sr.RuntimeEnvironment=Object.freeze({App:"app",Web:"web"});class lr{constructor(e,t){this._viewer=e,this._sketchViewModel=new sr(e,{iconType:sr.SketchIconType.Blue}),t&&t.isClear&&(this._isClear=t.isClear),this._init()}_init(){this._measureEntityName="MeasureEntity",this._entities=this._viewer.entities,this._measurePointImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcEAYAAAAinQPXAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAAASAAAAEgARslrPgAAB2FJREFUWMO9mHtQlNcZxn/nW65GxHtEqTEajUxVoLYRSIyipHG4qG0lajtxVIRFubgqXuOI28ZE7FAvCLKLSNKxg/FSIzdvqNE62kaRitqpYMxovBGigo4I4n6nfwjsCrsLrtjnn53vnPe87/Oc9/2+854VdBhCd6ZP6dMHlAXO/lOngrzMLz/8E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Ps2iT8rvhUfrP54RLHgbv82Ps+/XsCWnWc7TmKzx/yfAAHo1CtU9myPWAAAAAElFTkSuQmCC",this._measureTempPoints=[]}_updateScene(){this._viewer.scene.requestRender()}_removeEntityByName(e){let t=this._entities;if(!t||!t.values)return;let i=[];for(let r=0;r!!i[e.toLowerCase()]:e=>!!i[e]}Object.assign(lr.prototype,{_tooltipInit:function(e){this._tooltipId="tooltipJt";let t=document.getElementById(this._tooltipId);if(null===t){t=document.createElement("div"),t.id=this._tooltipId,document.body.appendChild(t);let e="";e+="top: 30px;",e+="left: 30px;",e+="position: absolute;",e+="display: flex;",e+="align-items: center;",e+="width: 12x0px;",e+="height: auto;",e+="background-color: rgba(0, 0, 0, 0.65);",e+="border-radius: 5px;",e+="color: rgb(255, 255, 255);",e+="font-size: 12px;",e+="font-family: 'Alimama_ShuHeiTi_Bold';",e+="padding: 8px;",e+="border:solid 1px rgb(255,0,0);",t.setAttribute("style",e)}null!=e&&(t.innerHTML=e),document.onmousemove=function(e){t.style.left=e.clientX+10+"px",t.style.top=e.clientY-t.offsetHeight/2+"px"}},_tooltipRemove:function(){let e=document.getElementById(this._tooltipId);null!=e&&document.body.removeChild(e)},_tooltipSetText:function(e){let t=document.getElementById(this._tooltipId);null!=t&&(t.innerHTML=e)}}),Object.assign(lr.prototype,{clear:function(){this._clear(!0),this._initMousePointerStyle()}}),Object.assign(lr.prototype,{measureLength:function(e){let t=this;this._tempEntitys=[],this._clear(this._isClear),this._setMousePointerStyle(),this._tooltipInit("点击开始测量"),"Web"===this._checkAppOrWeb()?this._sketchViewModel.sketchTools(sr.SketchType.Line,{onAdded:function(e,i){if(1===e.length)t._createPoint(e[0],"起点");else{let i=t._measureDistance(e),r=[e[e.length-2],e[e.length-1]];i+=" +"+t._measureDistance(r),t._tempEntitys.push(t._createPoint(e[e.length-1],i))}},onUndo:function(){t._viewer.entities.remove(t._tempEntitys[t._tempEntitys.length-1]),t._tempEntitys.pop()},onMoving:function(e,i){t._tooltipSetText("右键单击回退
左键双击结束绘制")},onError:function(t){e&&e(t)},onComplete:function(e,i){t._initMousePointerStyle(),t._tooltipRemove()}}):this._sketchViewModel.sketchTools(sr.SketchType.Line,{onAdded:function(i,r){if(1===i.length){t._tooltipRemove(),t._createPoint(i[0],"起点");let r=document.getElementById("drawButtonDiv");if(null==r){r=document.createElement("div"),r.id="drawButtonDiv",r.style.position="absolute",r.style.right="10px",r.style.bottom="80px",r.style.backgroundColor="rgba(40,40,40,.7)",r.style.padding="5px",r.style.width="60px",r.style.zIndex="9999";let i='\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t';r.innerHTML=i,document.body.appendChild(r),document.getElementById("btnDrawBackout").onclick=()=>{if(t._sketchViewModel._sketchTempPoints.length>2){if(t._sketchViewModel._sketchPoints.pop(),t._sketchViewModel._sketchTempPoints.splice(t._sketchViewModel._sketchTempPoints.length-1,1),t._sketchViewModel._isDrawPoint){let e=t._sketchViewModel._pointEntitys[t._sketchViewModel._pointEntitys.length-1];t._sketchViewModel._entities.remove(e),t._sketchViewModel._pointEntitys.pop()}t._viewer.entities.remove(t._tempEntitys[t._tempEntitys.length-1]),t._tempEntitys.pop()}},document.getElementById("btnDrawComplete").onclick=()=>{if(t._sketchViewModel._sketchPoints.length<2)return void(e&&e("点数少于两个,禁止结束绘制!"));t._sketchViewModel._removeEntityByObject(t._sketchViewModel._sketchTempPolyline),t._sketchViewModel._createPolyline(),t._sketchViewModel._isRetainDrawPoint||t._sketchViewModel._removePointEntitys(),t._sketchViewModel._clearEvent(t._sketchViewModel._sketchEventHandler),t._initMousePointerStyle(),t._tooltipRemove();let i=document.getElementById("drawButtonDiv");i&&document.body.removeChild(i)}}}else{let e=t._measureDistance(i),r=[i[i.length-2],i[i.length-1]];e+=" +"+t._measureDistance(r),t._tempEntitys.push(t._createPoint(i[i.length-1],e))}},onUndo:function(){},onMoving:function(e,t){},onComplete:function(e,i){t._initMousePointerStyle(),t._tooltipRemove();let r=document.getElementById("drawButtonDiv");r&&document.body.removeChild(r)}})},measureSpatialLength:function(e){let t=this;this._clear(this._isClear),this._setMousePointerStyle(),this._tooltipInit("点击开始测量"),this._tempEntitys=[],"Web"===this._checkAppOrWeb()?this._sketchViewModel.sketchTools(sr.SketchType.Spatial,{onAdded:function(e,i){if(1===e.length)t._createPoint(e[0],"起点");else{let i=t._measureSpaceDistance(e);t._tempEntitys.push(t._createPoint(e[e.length-1],i))}},onUndo:function(){t._viewer.entities.remove(t._tempEntitys[t._tempEntitys.length-1]),t._tempEntitys.pop()},onMoving:function(e,i){t._tooltipSetText("右键单击回退
左键双击结束绘制")},onError:function(t){e&&e(t)},onComplete:function(e,i){t._initMousePointerStyle(),t._tooltipRemove()}}):this._sketchViewModel.sketchTools(sr.SketchType.Spatial,{onAdded:function(i,r){if(1===i.length){t._tooltipRemove(),t._createPoint(i[0],"起点");let r=document.getElementById("drawButtonDiv");if(null==r){r=document.createElement("div"),r.id="drawButtonDiv",r.style.position="absolute",r.style.right="10px",r.style.bottom="80px",r.style.backgroundColor="rgba(40,40,40,.7)",r.style.padding="5px",r.style.width="60px",r.style.zIndex="9999";let i='\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t';r.innerHTML=i,document.body.appendChild(r),document.getElementById("btnDrawBackout").onclick=()=>{t._sketchViewModel._sketchTempPoints.length>2&&(t._sketchViewModel._sketchPoints.pop(),t._sketchViewModel._sketchTempPoints.splice(t._sketchViewModel._sketchTempPoints.length-2,1),t._viewer.entities.remove(t._tempEntitys[t._tempEntitys.length-1]),t._tempEntitys.pop())},document.getElementById("btnDrawComplete").onclick=()=>{if(t._sketchViewModel._sketchPoints.length<2)return void(e&&e("点数少于两个,禁止结束绘制!"));t._sketchViewModel._removeEntityByObject(t._sketchViewModel._sketchTempSpatialPolyline),t._sketchViewModel._createSpatialPolyline(),t._sketchViewModel._removePointEntitys(),t._sketchViewModel._clearEvent(t._sketchViewModel._sketchEventHandler),t._initMousePointerStyle(),t._tooltipRemove();let i=document.getElementById("drawButtonDiv");i&&document.body.removeChild(i)}}}else{let e=t._measureSpaceDistance(i);t._tempEntitys.push(t._createPoint(i[i.length-1],e))}},onUndo:function(){},onMoving:function(e,t){},onComplete:function(e,i){t._initMousePointerStyle(),t._tooltipRemove();let r=document.getElementById("drawButtonDiv");r&&document.body.removeChild(r)}})},measureArea:function(e){let t=this;this._clear(this._isClear),this._setMousePointerStyle(),this._tooltipInit("点击开始测量");var i="";"Web"===this._checkAppOrWeb()?this._sketchViewModel.sketchTools(sr.SketchType.Polygon,{onAdded:function(e,r){if(t._measureTempPoints.push(t._cartesianToGeography(e[e.length-1])),1===e.length)i="起点",t._createPoint(e[0],new Cesium.CallbackProperty((function(){return i}),!1));else if(e.length>=3){let r=t._measureArea(t._measureTempPoints,e);i=r>1e5?(r/1e5).toFixed(2)+"km²":r.toFixed(2)+"m²"}},onUndo:function(){t._measureTempPoints.pop(),1===t._measureTempPoints.length&&(t._areaLabel="起点")},onMoving:function(e,i){t._tooltipSetText("右键单击回退
左键双击结束绘制")},onError:function(t){e&&e(t)},onComplete:function(e,i){t._initMousePointerStyle(),t._tooltipRemove()}}):this._sketchViewModel.sketchTools(sr.SketchType.Polygon,{onAdded:function(r,o){if(t._measureTempPoints.push(t._cartesianToGeography(r[r.length-1])),1===r.length){t._tooltipRemove(),i="起点",t._createPoint(r[0],new Cesium.CallbackProperty((function(){return i}),!1));let o=document.getElementById("drawButtonDiv");if(null==o){o=document.createElement("div"),o.id="drawButtonDiv",o.style.position="absolute",o.style.right="10px",o.style.bottom="80px",o.style.backgroundColor="rgba(40,40,40,.7)",o.style.padding="5px",o.style.width="60px",o.style.zIndex="9999";let i='\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t';o.innerHTML=i,document.body.appendChild(o),document.getElementById("btnDrawBackout").onclick=()=>{if(t._sketchViewModel._sketchTempPoints.length>2){if(t._sketchViewModel._sketchPoints.pop(),t._sketchViewModel._sketchTempPoints.splice(t._sketchViewModel._sketchTempPoints.length-2,1),t._sketchViewModel._isDrawPoint){let e=t._sketchViewModel._pointEntitys[t._sketchViewModel._pointEntitys.length-1];t._entities.remove(e),t._sketchViewModel._pointEntitys.pop()}t._measureTempPoints.pop(),1===t._measureTempPoints.length&&(t._areaLabel="起点")}},document.getElementById("btnDrawComplete").onclick=()=>{if(t._sketchViewModel._sketchPoints.length<3)return void(e&&e("点数少于3个,禁止结束绘制!"));t._sketchViewModel._removeEntityByObject(t._sketchViewModel._sketchTempPolygon),t._sketchViewModel._removeEntityByObject(t._sketchViewModel._sketchTempPolyline),t._sketchViewModel._createPolygon(),t._sketchViewModel._isRetainDrawPoint||t._sketchViewModel._removePointEntitys(),t._sketchViewModel._clearEvent(t._sketchViewModel._sketchEventHandler),t._initMousePointerStyle(),t._tooltipRemove();let i=document.getElementById("drawButtonDiv");i&&document.body.removeChild(i)}}}else if(r.length>=3){let e=t._measureArea(t._measureTempPoints,r);i=e>1e5?(e/1e5).toFixed(2)+"km²":e.toFixed(2)+"m²"}},onUndo:function(){},onMoving:function(e,t){},onComplete:function(e,i){t._initMousePointerStyle(),t._tooltipRemove();let r=document.getElementById("drawButtonDiv");r&&document.body.removeChild(r)}})},measureHeight:function(e){let t=this;this._clear(this._isClear),this._setMousePointerStyle(),this._tooltipInit("点击开始测量"),this._sketchViewModel.sketchTools(sr.SketchType.Height,{onAdded:function(e){t._tooltipSetText("再次单击结束测量")},onMoving:function(e,i){let r=t._calculatePolylineAltitudeHeight(e);t._altitudeLabelPosition=i,t._altitudeLabelText=r,void 0===t._altitudeDynamicLabel&&t._createAltitudeDynamicLabel()},onError:function(t){e&&e(t)},onComplete:function(e,i){let r=t._calculatePolylineAltitudeHeight(e);t._entities.remove(t._altitudeDynamicLabel),t._createLabel(i,r),t._initMousePointerStyle(),t._tooltipRemove()}})},measureTriangle:function(e){let t=this;this._clear(this._isClear),this._setMousePointerStyle(),this._tooltipInit("点击开始测量"),this._sketchViewModel.sketchTools(sr.SketchType.Triangle,{onMoving:function(e){t._tooltipSetText("再次单击结束测量")},onError:function(t){e&&e(t)},onComplete:function(e){t._initMousePointerStyle(),t._tooltipRemove();let i=[e[0],e[1]],r=t._measureSpaceDistance(i),o=[e[1],e[2]],n=t._measureSpaceDistance(o),a=[e[2],e[0]],s=t._calculatePolylineAltitudeHeight(a);t._createLabel(e[0],"斜距:"+r),t._createLabel(e[1],"平距:"+n),t._createLabel(e[2],"高度:"+s)}})}}),Object.assign(lr.prototype,{queryByPolygon:function(e,t){let i=this;this._clear(this._isClear),this._setMousePointerStyle(),this._tooltipInit("点击开始绘制区域"),"Web"===this._checkAppOrWeb()?this._sketchViewModel.sketchTools(sr.SketchType.Polygon,{onMoving:function(e,t){i._tooltipSetText("右键单击回退
左键双击结束绘制开始查询")},onError:function(e){t&&t(e)},onComplete:function(t,r){let o;i._initMousePointerStyle(),i._tooltipRemove();for(let e=0;e{if(i._sketchViewModel._sketchTempPoints.length>2&&(i._sketchViewModel._sketchPoints.pop(),i._sketchViewModel._sketchTempPoints.splice(i._sketchViewModel._sketchTempPoints.length-2,1),i._sketchViewModel._isDrawPoint)){let e=i._sketchViewModel._pointEntitys[i._sketchViewModel._pointEntitys.length-1];i._entities.remove(e),i._sketchViewModel._pointEntitys.pop()}},document.getElementById("btnDrawComplete").onclick=()=>{if(i._sketchViewModel._sketchPoints.length<3)return void(t&&t("点数少于3个,禁止结束绘制!"));let r;i._sketchViewModel._removeEntityByObject(i._sketchViewModel._sketchTempPolygon),i._sketchViewModel._removeEntityByObject(i._sketchViewModel._sketchTempPolyline),i._sketchViewModel._createPolygon(),i._sketchViewModel._isRetainDrawPoint||i._sketchViewModel._removePointEntitys(),i._sketchViewModel._clearEvent(i._sketchViewModel._sketchEventHandler),i._initMousePointerStyle(),i._tooltipRemove();for(let e=0;e左键双击结束绘制"),this._tempEntitys=[],this._sketchViewModel.sketchTools(sr.SketchType.MultiplePoint,{onAdded:function(e,i){let r=i.lng.toFixed(6)+","+i.lat.toFixed(6);t._tempEntitys.push(t._createPoint(e,r))},onUndo:function(){t._viewer.entities.remove(t._tempEntitys[t._tempEntitys.length-1]),t._tempEntitys.pop()},onComplete:function(i,r){t._initMousePointerStyle(),t._tooltipRemove();let o=[];for(let e=0;e左键双击结束绘制开始查询")},onError:function(e){t&&t(e)},onComplete:function(t,r){let o;i._initMousePointerStyle(),i._tooltipRemove();for(let e=0;e{if(i._sketchViewModel._sketchTempPoints.length>2&&(i._sketchViewModel._sketchPoints.pop(),i._sketchViewModel._sketchTempPoints.splice(i._sketchViewModel._sketchTempPoints.length-2,1),i._sketchViewModel._isDrawPoint)){let e=i._sketchViewModel._pointEntitys[i._sketchViewModel._pointEntitys.length-1];i._sketchViewModel._entities.remove(e),i._sketchViewModel._pointEntitys.pop()}},document.getElementById("btnDrawComplete").onclick=()=>{if(i._sketchViewModel._sketchPoints.length<2)return void(t&&t("点数少于两个,禁止结束绘制!"));let r;i._sketchViewModel._removeEntityByObject(i._sketchViewModel._sketchTempPolyline),i._sketchViewModel._createPolyline(),i._sketchViewModel._isRetainDrawPoint||i._sketchViewModel._removePointEntitys(),i._sketchViewModel._clearEvent(i._sketchViewModel._sketchEventHandler),i._initMousePointerStyle(),i._tooltipRemove();for(let e=0;e左键双击结束绘制")},onUndo:function(e){0===e.length?t._tooltipInit("点击开始绘制"):e.length<3?t._tooltipInit("右键单击回退"):t._tooltipInit("右键单击回退
左键双击结束绘制")},onComplete:function(i,r){t._initMousePointerStyle(),t._tooltipRemove(),e&&e()}})},drawPointFeacture:function(e,t){this._sketchViewModel.sketchDrawFeacture(e,sr.SketchType.DrawPoint,t)},drawMultiplePointFeacture:function(e,t){this._sketchViewModel.sketchDrawFeacture(e,sr.SketchType.DrawMultiplePoint,t)},drawPolylineFeacture:function(e,t){this._sketchViewModel.sketchDrawFeacture(e,sr.SketchType.DrawPolyline,t)},drawPolygonFeacture:function(e,t){this._sketchViewModel.sketchDrawFeacture(e,sr.SketchType.DrawPolygon,t)}}),Object.assign(lr.prototype,{tooltipInit:function(e){this._tooltipInit(e)},tooltipRemove:function(){this._tooltipRemove()},tooltipSetText:function(e){this._tooltipSetText(e)}}),Object.assign(lr.prototype,{pickPolygonBody:function(e){this._sketchViewModel.sketchPick((function(t){void 0===t?e&&e(void 0):e&&e({color:t.color,height:t.height})}))},setPolygonBody:function(e){this._sketchViewModel.sketchEditPickPolygonBody({color:e.color,height:e.height,onComplete:e.onComplete})},removePolygonBody:function(e){this._sketchViewModel.sketchRemovePickPolygonBody(e)}});const ur=()=>{},dr=Object.assign,pr=Object.prototype.hasOwnProperty,hr=(e,t)=>pr.call(e,t),fr=Array.isArray,mr=e=>"[object Map]"===br(e),gr=e=>"symbol"==typeof e,vr=e=>null!==e&&"object"==typeof e,_r=Object.prototype.toString,br=e=>_r.call(e),yr=e=>"string"==typeof e&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,wr=(e,t)=>!Object.is(e,t);let xr;const Cr=[];class kr{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&xr&&(this.parent=xr,this.index=(xr.scopes||(xr.scopes=[])).push(this)-1)}run(e){if(this.active)try{return this.on(),e()}finally{this.off()}}on(){this.active&&(Cr.push(this),xr=this)}off(){this.active&&(Cr.pop(),xr=Cr[Cr.length-1])}stop(e){if(this.active){if(this.effects.forEach((e=>e.stop())),this.cleanups.forEach((e=>e())),this.scopes&&this.scopes.forEach((e=>e.stop(!0))),this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}function Tr(e){xr&&xr.cleanups.push(e)}const Er=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Ar=e=>(e.w&Mr)>0,Sr=e=>(e.n&Mr)>0,Pr=new WeakMap;let Ir=0,Mr=1;const Dr=[];let Lr;const Or=Symbol(""),Rr=Symbol("");class Nr{constructor(e,t=null,i){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],function(e,t){(t=t||xr)&&t.active&&t.effects.push(e)}(this,i)}run(){if(!this.active)return this.fn();if(!Dr.includes(this))try{return Dr.push(Lr=this),Ur.push(jr),jr=!0,Mr=1<<++Ir,Ir<=30?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let i=0;for(let r=0;r0?Dr[e-1]:void 0}}stop(){this.active&&(Br(this),this.onStop&&this.onStop(),this.active=!1)}}function Br(e){const{deps:t}=e;if(t.length){for(let i=0;i{("length"===t||t>=r)&&s.push(e)}));else switch(void 0!==i&&s.push(a.get(i)),t){case"add":fr(e)?yr(i)&&s.push(a.get("length")):(s.push(a.get(Or)),mr(e)&&s.push(a.get(Rr)));break;case"delete":fr(e)||(s.push(a.get(Or)),mr(e)&&s.push(a.get(Rr)));break;case"set":mr(e)&&s.push(a.get(Or))}if(1===s.length)s[0]&&Yr(s[0]);else{const e=[];for(const t of s)t&&e.push(...t);Yr(Er(e))}}function Yr(e,t){for(const i of fr(e)?e:[...e])(i!==Lr||i.allowRecurse)&&(i.scheduler?i.scheduler():i.run())}const qr=cr("__proto__,__v_isRef,__isVue"),Qr=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(gr)),Zr=eo(),Xr=eo(!1,!0),Kr=eo(!0),Jr=$r();function $r(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const i=jo(this);for(let t=0,o=this.length;t{e[t]=function(...e){Fr();const i=jo(this)[t].apply(this,e);return zr(),i}})),e}function eo(e=!1,t=!1){return function(i,r,o){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_raw"===r&&o===(e?t?Io:Po:t?So:Ao).get(i))return i;const n=fr(i);if(!e&&n&&hr(Jr,r))return Reflect.get(Jr,r,o);const a=Reflect.get(i,r,o);if(gr(r)?Qr.has(r):qr(r))return a;if(e||Hr(i,0,r),t)return a;if(Vo(a)){return!n||!yr(r)?a.value:a}return vr(a)?e?Lo(a):Do(a):a}}function to(e=!1){return function(t,i,r,o){let n=t[i];if(!e&&!No(r)&&(r=jo(r),n=jo(n),!fr(t)&&Vo(n)&&!Vo(r)))return n.value=r,!0;const a=fr(t)&&yr(i)?Number(i)!0,deleteProperty:(e,t)=>!0},oo=dr({},io,{get:Xr,set:to(!0)}),no=e=>e,ao=e=>Reflect.getPrototypeOf(e);function so(e,t,i=!1,r=!1){const o=jo(e=e.__v_raw),n=jo(t);t!==n&&!i&&Hr(o,0,t),!i&&Hr(o,0,n);const{has:a}=ao(o),s=r?no:i?zo:Fo;return a.call(o,t)?s(e.get(t)):a.call(o,n)?s(e.get(n)):void(e!==o&&e.get(t))}function lo(e,t=!1){const i=this.__v_raw,r=jo(i),o=jo(e);return e!==o&&!t&&Hr(r,0,e),!t&&Hr(r,0,o),e===o?i.has(e):i.has(e)||i.has(o)}function co(e,t=!1){return e=e.__v_raw,!t&&Hr(jo(e),0,Or),Reflect.get(e,"size",e)}function uo(e){e=jo(e);const t=jo(this);return ao(t).has.call(t,e)||(t.add(e),Gr(t,"add",e,e)),this}function po(e,t){t=jo(t);const i=jo(this),{has:r,get:o}=ao(i);let n=r.call(i,e);n||(e=jo(e),n=r.call(i,e));const a=o.call(i,e);return i.set(e,t),n?wr(t,a)&&Gr(i,"set",e,t):Gr(i,"add",e,t),this}function ho(e){const t=jo(this),{has:i,get:r}=ao(t);let o=i.call(t,e);o||(e=jo(e),o=i.call(t,e)),r&&r.call(t,e);const n=t.delete(e);return o&&Gr(t,"delete",e,void 0),n}function fo(){const e=jo(this),t=0!==e.size,i=e.clear();return t&&Gr(e,"clear",void 0,void 0),i}function mo(e,t){return function(i,r){const o=this,n=o.__v_raw,a=jo(n),s=t?no:e?zo:Fo;return!e&&Hr(a,0,Or),n.forEach(((e,t)=>i.call(r,s(e),s(t),o)))}}function go(e,t,i){return function(...r){const o=this.__v_raw,n=jo(o),a=mr(n),s="entries"===e||e===Symbol.iterator&&a,l="keys"===e&&a,c=o[e](...r),u=i?no:t?zo:Fo;return!t&&Hr(n,0,l?Rr:Or),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function vo(e){return function(...t){return"delete"!==e&&this}}function _o(){const e={get(e){return so(this,e)},get size(){return co(this)},has:lo,add:uo,set:po,delete:ho,clear:fo,forEach:mo(!1,!1)},t={get(e){return so(this,e,!1,!0)},get size(){return co(this)},has:lo,add:uo,set:po,delete:ho,clear:fo,forEach:mo(!1,!0)},i={get(e){return so(this,e,!0)},get size(){return co(this,!0)},has(e){return lo.call(this,e,!0)},add:vo("add"),set:vo("set"),delete:vo("delete"),clear:vo("clear"),forEach:mo(!0,!1)},r={get(e){return so(this,e,!0,!0)},get size(){return co(this,!0)},has(e){return lo.call(this,e,!0)},add:vo("add"),set:vo("set"),delete:vo("delete"),clear:vo("clear"),forEach:mo(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=go(o,!1,!1),i[o]=go(o,!0,!1),t[o]=go(o,!1,!0),r[o]=go(o,!0,!0)})),[e,i,t,r]}const[bo,yo,wo,xo]=_o();function Co(e,t){const i=t?e?xo:wo:e?yo:bo;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(hr(i,r)&&r in t?i:t,r,o)}const ko={get:Co(!1,!1)},To={get:Co(!1,!0)},Eo={get:Co(!0,!1)},Ao=new WeakMap,So=new WeakMap,Po=new WeakMap,Io=new WeakMap;function Mo(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>br(e).slice(8,-1))(e))}function Do(e){return e&&e.__v_isReadonly?e:Oo(e,!1,io,ko,Ao)}function Lo(e){return Oo(e,!0,ro,Eo,Po)}function Oo(e,t,i,r,o){if(!vr(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const n=o.get(e);if(n)return n;const a=Mo(e);if(0===a)return e;const s=new Proxy(e,2===a?r:i);return o.set(e,s),s}function Ro(e){return No(e)?Ro(e.__v_raw):!(!e||!e.__v_isReactive)}function No(e){return!(!e||!e.__v_isReadonly)}function Bo(e){return Ro(e)||No(e)}function jo(e){const t=e&&e.__v_raw;return t?jo(t):e}function Uo(e){return((e,t,i)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:i})})(e,"__v_skip",!0),e}const Fo=e=>vr(e)?Do(e):e,zo=e=>vr(e)?Lo(e):e;function Ho(e){Wr()&&((e=jo(e)).dep||(e.dep=Er()),Vr(e.dep))}function Wo(e,t){(e=jo(e)).dep&&Yr(e.dep)}function Vo(e){return Boolean(e&&!0===e.__v_isRef)}function Go(e){return qo(e,!1)}function Yo(e){return qo(e,!0)}function qo(e,t){return Vo(e)?e:new Qo(e,t)}class Qo{constructor(e,t){this._shallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:jo(e),this._value=t?e:Fo(e)}get value(){return Ho(this),this._value}set value(e){e=this._shallow?e:jo(e),wr(e,this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:Fo(e),Wo(this))}}function Zo(e){return Vo(e)?e.value:e}const Xo={get:(e,t,i)=>Zo(Reflect.get(e,t,i)),set:(e,t,i,r)=>{const o=e[t];return Vo(o)&&!Vo(i)?(o.value=i,!0):Reflect.set(e,t,i,r)}};function Ko(e){return Ro(e)?e:new Proxy(e,Xo)}function Jo(e){const t=fr(e)?new Array(e.length):{};for(const i in e)t[i]=en(e,i);return t}class $o{constructor(e,t,i){this._object=e,this._key=t,this._defaultValue=i,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}}function en(e,t,i){const r=e[t];return Vo(r)?r:new $o(e,t,i)}class tn{constructor(e,t,i){this._setter=t,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new Nr(e,(()=>{this._dirty||(this._dirty=!0,Wo(this))})),this.__v_isReadonly=i}get value(){const e=jo(this);return Ho(e),e._dirty&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function rn(e,t){let i,r;const o="function"==typeof e;o?(i=e,r=ur):(i=e.get,r=e.set);return new tn(i,r,o||!r)}function on(e,t){const i=Object.create(null),r=e.split(",");for(let o=0;o!!i[e.toLowerCase()]:e=>!!i[e]}function nn(e){if(Cn(e)){const t={};for(let i=0;i{if(e){const i=e.split(sn);i.length>1&&(t[i[0].trim()]=i[1].trim())}})),t}function cn(e){let t="";if(An(e))t=e;else if(Cn(e))for(let i=0;inull==e?"":Cn(e)||Sn(e)&&(e.toString===In||!En(e.toString))?JSON.stringify(e,dn,2):String(e),dn=(e,t)=>t&&t.__v_isRef?dn(e,t.value):kn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,i])=>(e[`${t} =>`]=i,e)),{})}:Tn(t)?{[`Set(${t.size})`]:[...t.values()]}:!Sn(t)||Cn(t)||Dn(t)?t:String(t),pn={},hn=[],fn=()=>{},mn=()=>!1,gn=/^on[^a-z]/,vn=e=>gn.test(e),_n=e=>e.startsWith("onUpdate:"),bn=Object.assign,yn=(e,t)=>{const i=e.indexOf(t);i>-1&&e.splice(i,1)},wn=Object.prototype.hasOwnProperty,xn=(e,t)=>wn.call(e,t),Cn=Array.isArray,kn=e=>"[object Map]"===Mn(e),Tn=e=>"[object Set]"===Mn(e),En=e=>"function"==typeof e,An=e=>"string"==typeof e,Sn=e=>null!==e&&"object"==typeof e,Pn=e=>Sn(e)&&En(e.then)&&En(e.catch),In=Object.prototype.toString,Mn=e=>In.call(e),Dn=e=>"[object Object]"===Mn(e),Ln=on(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),On=e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))},Rn=/-(\w)/g,Nn=On((e=>e.replace(Rn,((e,t)=>t?t.toUpperCase():"")))),Bn=/\B([A-Z])/g,jn=On((e=>e.replace(Bn,"-$1").toLowerCase())),Un=On((e=>e.charAt(0).toUpperCase()+e.slice(1))),Fn=On((e=>e?`on${Un(e)}`:"")),zn=(e,t)=>!Object.is(e,t),Hn=(e,t)=>{for(let i=0;i{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:i})},Vn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Gn;function Yn(e,t,...i){const r=e.vnode.props||pn;let o=i;const n=t.startsWith("update:"),a=n&&t.slice(7);if(a&&a in r){const e=`${"modelValue"===a?"model":a}Modifiers`,{number:t,trim:n}=r[e]||pn;n?o=i.map((e=>e.trim())):t&&(o=i.map(Vn))}let s,l=r[s=Fn(t)]||r[s=Fn(Nn(t))];!l&&n&&(l=r[s=Fn(jn(t))]),l&&xl(l,e,6,o);const c=r[s+"Once"];if(c){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,xl(c,e,6,o)}}function qn(e,t,i=!1){const r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;const n=e.emits;let a={},s=!1;if(!En(e)){const r=e=>{const i=qn(e,t,!0);i&&(s=!0,bn(a,i))};!i&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return n||s?(Cn(n)?n.forEach((e=>a[e]=null)):bn(a,n),r.set(e,a),a):(r.set(e,null),null)}function Qn(e,t){return!(!e||!vn(t))&&(t=t.slice(2).replace(/Once$/,""),xn(e,t[0].toLowerCase()+t.slice(1))||xn(e,jn(t))||xn(e,t))}let Zn=null,Xn=null;function Kn(e){const t=Zn;return Zn=e,Xn=e&&e.type.__scopeId||null,t}function Jn(e,t=Zn,i){if(!t)return e;if(e._n)return e;const r=(...i)=>{r._d&&Is(-1);const o=Kn(t),n=e(...i);return Kn(o),r._d&&Is(1),n};return r._n=!0,r._c=!0,r._d=!0,r}function $n(e){const{type:t,vnode:i,proxy:r,withProxy:o,props:n,propsOptions:[a],slots:s,attrs:l,emit:c,render:u,renderCache:d,data:p,setupState:h,ctx:f,inheritAttrs:m}=e;let g,v;const _=Kn(e);try{if(4&i.shapeFlag){const e=o||r;g=Vs(u.call(e,e,d,n,h,p,f)),v=l}else{const e=t;0,g=Vs(e.length>1?e(n,{attrs:l,slots:s,emit:c}):e(n,null)),v=t.props?l:ea(l)}}catch(y){Es.length=0,Cl(y,e,1),g=Fs(ks)}let b=g;if(v&&!1!==m){const e=Object.keys(v),{shapeFlag:t}=b;e.length&&7&t&&(a&&e.some(_n)&&(v=ta(v,a)),b=zs(b,v))}return i.dirs&&(b.dirs=b.dirs?b.dirs.concat(i.dirs):i.dirs),i.transition&&(b.transition=i.transition),g=b,Kn(_),g}const ea=e=>{let t;for(const i in e)("class"===i||"style"===i||vn(i))&&((t||(t={}))[i]=e[i]);return t},ta=(e,t)=>{const i={};for(const r in e)_n(r)&&r.slice(9)in t||(i[r]=e[r]);return i};function ia(e,t,i){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o1)return i&&En(t)?t.call(r.proxy):t}}const na=[Function,Array],aa={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:na,onEnter:na,onAfterEnter:na,onEnterCancelled:na,onBeforeLeave:na,onLeave:na,onAfterLeave:na,onLeaveCancelled:na,onBeforeAppear:na,onAppear:na,onAfterAppear:na,onAppearCancelled:na},setup(e,{slots:t}){const i=nl(),r=function(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ca((()=>{e.isMounted=!0})),Ea((()=>{e.isUnmounting=!0})),e}();let o;return()=>{const n=t.default&&pa(t.default(),!0);if(!n||!n.length)return;const a=jo(e),{mode:s}=a,l=n[0];if(r.isLeaving)return ca(l);const c=ua(l);if(!c)return ca(l);const u=la(c,a,r,i);da(c,u);const d=i.subTree,p=d&&ua(d);let h=!1;const{getTransitionKey:f}=c.type;if(f){const e=f();void 0===o?o=e:e!==o&&(o=e,h=!0)}if(p&&p.type!==ks&&(!Rs(c,p)||h)){const e=la(p,a,r,i);if(da(p,e),"out-in"===s)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,i.update()},ca(l);"in-out"===s&&c.type!==ks&&(e.delayLeave=(e,t,i)=>{sa(r,p)[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=i})}return l}}};function sa(e,t){const{leavingVNodes:i}=e;let r=i.get(t.type);return r||(r=Object.create(null),i.set(t.type,r)),r}function la(e,t,i,r){const{appear:o,mode:n,persisted:a=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:p,onAfterLeave:h,onLeaveCancelled:f,onBeforeAppear:m,onAppear:g,onAfterAppear:v,onAppearCancelled:_}=t,b=String(e.key),y=sa(i,e),w=(e,t)=>{e&&xl(e,r,9,t)},x={mode:n,persisted:a,beforeEnter(t){let r=s;if(!i.isMounted){if(!o)return;r=m||s}t._leaveCb&&t._leaveCb(!0);const n=y[b];n&&Rs(e,n)&&n.el._leaveCb&&n.el._leaveCb(),w(r,[t])},enter(e){let t=l,r=c,n=u;if(!i.isMounted){if(!o)return;t=g||l,r=v||c,n=_||u}let a=!1;const s=e._enterCb=t=>{a||(a=!0,w(t?n:r,[e]),x.delayedLeave&&x.delayedLeave(),e._enterCb=void 0)};t?(t(e,s),t.length<=1&&s()):s()},leave(t,r){const o=String(e.key);if(t._enterCb&&t._enterCb(!0),i.isUnmounting)return r();w(d,[t]);let n=!1;const a=t._leaveCb=i=>{n||(n=!0,r(),w(i?f:h,[t]),t._leaveCb=void 0,y[o]===e&&delete y[o])};y[o]=e,p?(p(t,a),p.length<=1&&a()):a()},clone:e=>la(e,t,i,r)};return x}function ca(e){if(ma(e))return(e=zs(e)).children=null,e}function ua(e){return ma(e)?e.children?e.children[0]:void 0:e}function da(e,t){6&e.shapeFlag&&e.component?da(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function pa(e,t=!1){let i=[],r=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader,ma=e=>e.type.__isKeepAlive;function ga(e,t){_a(e,"a",t)}function va(e,t){_a(e,"da",t)}function _a(e,t,i=ol){const r=e.__wdc||(e.__wdc=()=>{let t=i;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(ya(t,r,i),i){let e=i.parent;for(;e&&e.parent;)ma(e.parent.vnode)&&ba(r,t,i,e),e=e.parent}}function ba(e,t,i,r){const o=ya(t,e,r,!0);Aa((()=>{yn(r[t],o)}),i)}function ya(e,t,i=ol,r=!1){if(i){const o=i[e]||(i[e]=[]),n=t.__weh||(t.__weh=(...r)=>{if(i.isUnmounted)return;Fr(),al(i);const o=xl(t,i,e,r);return sl(),zr(),o});return r?o.unshift(n):o.push(n),n}}const wa=e=>(t,i=ol)=>(!cl||"sp"===e)&&ya(e,t,i),xa=wa("bm"),Ca=wa("m"),ka=wa("bu"),Ta=wa("u"),Ea=wa("bum"),Aa=wa("um"),Sa=wa("sp"),Pa=wa("rtg"),Ia=wa("rtc");function Ma(e,t=ol){ya("ec",e,t)}let Da=!0;function La(e){const t=Na(e),i=e.proxy,r=e.ctx;Da=!1,t.beforeCreate&&Oa(t.beforeCreate,e,"bc");const{data:o,computed:n,methods:a,watch:s,provide:l,inject:c,created:u,beforeMount:d,mounted:p,beforeUpdate:h,updated:f,activated:m,deactivated:g,beforeDestroy:v,beforeUnmount:_,destroyed:b,unmounted:y,render:w,renderTracked:x,renderTriggered:C,errorCaptured:k,serverPrefetch:T,expose:E,inheritAttrs:A,components:S,directives:P,filters:I}=t;if(c&&function(e,t,i=fn,r=!1){Cn(e)&&(e=Fa(e));for(const o in e){const i=e[o];let n;n=Sn(i)?"default"in i?oa(i.from||o,i.default,!0):oa(i.from||o):oa(i),Vo(n)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>n.value,set:e=>n.value=e}):t[o]=n}}(c,r,null,e.appContext.config.unwrapInjectedRef),a)for(const D in a){const e=a[D];En(e)&&(r[D]=e.bind(i))}if(o){const t=o.call(i,i);Sn(t)&&(e.data=Do(t))}if(Da=!0,n)for(const D in n){const e=n[D],t=rn({get:En(e)?e.bind(i,i):En(e.get)?e.get.bind(i,i):fn,set:!En(e)&&En(e.set)?e.set.bind(i):fn});Object.defineProperty(r,D,{enumerable:!0,configurable:!0,get:()=>t.value,set:e=>t.value=e})}if(s)for(const D in s)Ra(s[D],r,i,D);if(l){const e=En(l)?l.call(i):l;Reflect.ownKeys(e).forEach((t=>{ra(t,e[t])}))}function M(e,t){Cn(t)?t.forEach((t=>e(t.bind(i)))):t&&e(t.bind(i))}if(u&&Oa(u,e,"c"),M(xa,d),M(Ca,p),M(ka,h),M(Ta,f),M(ga,m),M(va,g),M(Ma,k),M(Ia,x),M(Pa,C),M(Ea,_),M(Aa,y),M(Sa,T),Cn(E))if(E.length){const t=e.exposed||(e.exposed={});E.forEach((e=>{Object.defineProperty(t,e,{get:()=>i[e],set:t=>i[e]=t})}))}else e.exposed||(e.exposed={});w&&e.render===fn&&(e.render=w),null!=A&&(e.inheritAttrs=A),S&&(e.components=S),P&&(e.directives=P)}function Oa(e,t,i){xl(Cn(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,i)}function Ra(e,t,i,r){const o=r.includes(".")?Xl(i,r):()=>i[r];if(An(e)){const i=t[e];En(i)&&ql(o,i)}else if(En(e))ql(o,e.bind(i));else if(Sn(e))if(Cn(e))e.forEach((e=>Ra(e,t,i,r)));else{const r=En(e.handler)?e.handler.bind(i):t[e.handler];En(r)&&ql(o,r,e)}}function Na(e){const t=e.type,{mixins:i,extends:r}=t,{mixins:o,optionsCache:n,config:{optionMergeStrategies:a}}=e.appContext,s=n.get(t);let l;return s?l=s:o.length||i||r?(l={},o.length&&o.forEach((e=>Ba(l,e,a,!0))),Ba(l,t,a)):l=t,n.set(t,l),l}function Ba(e,t,i,r=!1){const{mixins:o,extends:n}=t;n&&Ba(e,n,i,!0),o&&o.forEach((t=>Ba(e,t,i,!0)));for(const a in t)if(r&&"expose"===a);else{const r=ja[a]||i&&i[a];e[a]=r?r(e[a],t[a]):t[a]}return e}const ja={data:Ua,props:Ha,emits:Ha,methods:Ha,computed:Ha,beforeCreate:za,created:za,beforeMount:za,mounted:za,beforeUpdate:za,updated:za,beforeDestroy:za,beforeUnmount:za,destroyed:za,unmounted:za,activated:za,deactivated:za,errorCaptured:za,serverPrefetch:za,components:Ha,directives:Ha,watch:function(e,t){if(!e)return t;if(!t)return e;const i=bn(Object.create(null),e);for(const r in t)i[r]=za(e[r],t[r]);return i},provide:Ua,inject:function(e,t){return Ha(Fa(e),Fa(t))}};function Ua(e,t){return t?e?function(){return bn(En(e)?e.call(this,this):e,En(t)?t.call(this,this):t)}:t:e}function Fa(e){if(Cn(e)){const t={};for(let i=0;i{l=!0;const[i,r]=Ya(e,t,!0);bn(a,i),r&&s.push(...r)};!i&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!n&&!l)return r.set(e,hn),hn;if(Cn(n))for(let u=0;u-1,i[1]=r<0||t-1||xn(i,"default"))&&s.push(e)}}}const c=[a,s];return r.set(e,c),c}function qa(e){return"$"!==e[0]}function Qa(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function Za(e,t){return Qa(e)===Qa(t)}function Xa(e,t){return Cn(t)?t.findIndex((t=>Za(t,e))):En(t)&&Za(t,e)?0:-1}const Ka=e=>"_"===e[0]||"$stable"===e,Ja=e=>Cn(e)?e.map(Vs):[Vs(e)],$a=(e,t,i)=>{const r=Jn(((...e)=>Ja(t(...e))),i);return r._c=!1,r},es=(e,t,i)=>{const r=e._ctx;for(const o in e){if(Ka(o))continue;const i=e[o];if(En(i))t[o]=$a(0,i,r);else if(null!=i){const e=Ja(i);t[o]=()=>e}}},ts=(e,t)=>{const i=Ja(t);e.slots.default=()=>i};function is(e,t){if(null===Zn)return e;const i=Zn.proxy,r=e.dirs||(e.dirs=[]);for(let o=0;o(n.has(e)||(e&&En(e.install)?(n.add(e),e.install(s,...t)):En(e)&&(n.add(e),e(s,...t))),s),mixin:e=>(o.mixins.includes(e)||o.mixins.push(e),s),component:(e,t)=>t?(o.components[e]=t,s):o.components[e],directive:(e,t)=>t?(o.directives[e]=t,s):o.directives[e],mount(n,l,c){if(!a){const u=Fs(i,r);return u.appContext=o,l&&t?t(u,n):e(u,n,c),a=!0,s._container=n,n.__vue_app__=s,hl(u.component)||u.component.proxy}},unmount(){a&&(e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(o.provides[e]=t,s)};return s}}function ss(e,t,i,r,o=!1){if(Cn(e))return void e.forEach(((e,n)=>ss(e,t&&(Cn(t)?t[n]:t),i,r,o)));if(fa(r)&&!o)return;const n=4&r.shapeFlag?hl(r.component)||r.component.proxy:r.el,a=o?null:n,{i:s,r:l}=e,c=t&&t.r,u=s.refs===pn?s.refs={}:s.refs,d=s.setupState;if(null!=c&&c!==l&&(An(c)?(u[c]=null,xn(d,c)&&(d[c]=null)):Vo(c)&&(c.value=null)),En(l))wl(l,s,12,[a,u]);else{const t=An(l),r=Vo(l);if(t||r){const r=()=>{if(e.f){const i=t?u[l]:l.value;o?Cn(i)&&yn(i,n):Cn(i)?i.includes(n)||i.push(n):t?u[l]=[n]:(l.value=[n],e.k&&(u[e.k]=l.value))}else t?(u[l]=a,xn(d,l)&&(d[l]=a)):Vo(l)&&(l.value=a,e.k&&(u[e.k]=a))};a?(r.id=-1,ls(r,i)):r()}}}const ls=function(e,t){t&&t.pendingBranch?Cn(e)?t.effects.push(...e):t.effects.push(e):Fl(e,Dl,Ml,Ll)};function cs(e){return function(e,t){(Gn||(Gn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})).__VUE__=!0;const{insert:i,remove:r,patchProp:o,createElement:n,createText:a,createComment:s,setText:l,setElementText:c,parentNode:u,nextSibling:d,setScopeId:p=fn,cloneNode:h,insertStaticContent:f}=e,m=(e,t,i,r=null,o=null,n=null,a=!1,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Rs(e,t)&&(r=W(e),j(e,o,n,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case Cs:g(e,t,i,r);break;case ks:v(e,t,i,r);break;case Ts:null==e&&_(t,i,r,a);break;case xs:S(e,t,i,r,o,n,a,s,l);break;default:1&d?w(e,t,i,r,o,n,a,s,l):6&d?P(e,t,i,r,o,n,a,s,l):(64&d||128&d)&&c.process(e,t,i,r,o,n,a,s,l,G)}null!=u&&o&&ss(u,e&&e.ref,n,t||e,!t)},g=(e,t,r,o)=>{if(null==e)i(t.el=a(t.children),r,o);else{const i=t.el=e.el;t.children!==e.children&&l(i,t.children)}},v=(e,t,r,o)=>{null==e?i(t.el=s(t.children||""),r,o):t.el=e.el},_=(e,t,i,r)=>{[e.el,e.anchor]=f(e.children,t,i,r)},b=({el:e,anchor:t},r,o)=>{let n;for(;e&&e!==t;)n=d(e),i(e,r,o),e=n;i(t,r,o)},y=({el:e,anchor:t})=>{let i;for(;e&&e!==t;)i=d(e),r(e),e=i;r(t)},w=(e,t,i,r,o,n,a,s,l)=>{a=a||"svg"===t.type,null==e?x(t,i,r,o,n,a,s,l):T(e,t,o,n,a,s,l)},x=(e,t,r,a,s,l,u,d)=>{let p,f;const{type:m,props:g,shapeFlag:v,transition:_,patchFlag:b,dirs:y}=e;if(e.el&&void 0!==h&&-1===b)p=e.el=h(e.el);else{if(p=e.el=n(e.type,l,g&&g.is,g),8&v?c(p,e.children):16&v&&k(e.children,p,null,a,s,l&&"foreignObject"!==m,u,d),y&&rs(e,null,a,"created"),g){for(const t in g)"value"===t||Ln(t)||o(p,t,null,g[t],l,e.children,a,s,H);"value"in g&&o(p,"value",null,g.value),(f=g.onVnodeBeforeMount)&&Qs(f,a,e)}C(p,e,e.scopeId,u,a)}y&&rs(e,null,a,"beforeMount");const w=(!s||s&&!s.pendingBranch)&&_&&!_.persisted;w&&_.beforeEnter(p),i(p,t,r),((f=g&&g.onVnodeMounted)||w||y)&&ls((()=>{f&&Qs(f,a,e),w&&_.enter(p),y&&rs(e,null,a,"mounted")}),s)},C=(e,t,i,r,o)=>{if(i&&p(e,i),r)for(let n=0;n{for(let c=l;c{const l=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const h=e.props||pn,f=t.props||pn;let m;i&&us(i,!1),(m=f.onVnodeBeforeUpdate)&&Qs(m,i,t,e),p&&rs(t,e,i,"beforeUpdate"),i&&us(i,!0);const g=n&&"foreignObject"!==t.type;if(d?E(e.dynamicChildren,d,l,i,r,g,a):s||O(e,t,l,null,i,r,g,a,!1),u>0){if(16&u)A(l,t,h,f,i,r,n);else if(2&u&&h.class!==f.class&&o(l,"class",null,f.class,n),4&u&&o(l,"style",h.style,f.style,n),8&u){const a=t.dynamicProps;for(let t=0;t{m&&Qs(m,i,t,e),p&&rs(t,e,i,"updated")}),r)},E=(e,t,i,r,o,n,a)=>{for(let s=0;s{if(i!==r){for(const l in r){if(Ln(l))continue;const c=r[l],u=i[l];c!==u&&"value"!==l&&o(e,l,u,c,s,t.children,n,a,H)}if(i!==pn)for(const l in i)Ln(l)||l in r||o(e,l,i[l],null,s,t.children,n,a,H);"value"in r&&o(e,"value",i.value,r.value)}},S=(e,t,r,o,n,s,l,c,u)=>{const d=t.el=e?e.el:a(""),p=t.anchor=e?e.anchor:a("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(c=c?c.concat(m):m),null==e?(i(d,r,o),i(p,r,o),k(t.children,r,p,n,s,l,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(E(e.dynamicChildren,f,r,n,s,l,c),(null!=t.key||n&&t===n.subTree)&&ds(e,t,!0)):O(e,t,r,p,n,s,l,c,u)},P=(e,t,i,r,o,n,a,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?o.ctx.activate(t,i,r,a,l):I(t,i,r,o,n,a,l):M(e,t,l)},I=(e,t,i,r,o,n,a)=>{const s=e.component=function(e,t,i){const r=e.type,o=(t?t.appContext:e.appContext)||il,n={uid:rl++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new kr(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ya(r,o),emitsOptions:qn(r,o),emit:null,emitted:null,propsDefaults:pn,inheritAttrs:r.inheritAttrs,ctx:pn,data:pn,props:pn,attrs:pn,slots:pn,refs:pn,setupState:pn,setupContext:null,suspense:i,suspenseId:i?i.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};n.ctx={_:n},n.root=t?t.root:n,n.emit=Yn.bind(null,n),e.ce&&e.ce(n);return n}(e,r,o);if(ma(e)&&(s.ctx.renderer=G),function(e,t=!1){cl=t;const{props:i,children:r}=e.vnode,o=ll(e);Wa(e,i,o,t),((e,t)=>{if(32&e.vnode.shapeFlag){const i=t._;i?(e.slots=jo(t),Wn(t,"_",i)):es(t,e.slots={})}else e.slots={},t&&ts(e,t);Wn(e.slots,Ns,1)})(e,r);const n=o?function(e,t){const i=e.type;e.accessCache=Object.create(null),e.proxy=Uo(new Proxy(e.ctx,tl));const{setup:r}=i;if(r){const i=e.setupContext=r.length>1?pl(e):null;al(e),Fr();const o=wl(r,e,0,[e.props,i]);if(zr(),sl(),Pn(o)){if(o.then(sl,sl),t)return o.then((i=>{ul(e,i,t)})).catch((t=>{Cl(t,e,0)}));e.asyncDep=o}else ul(e,o,t)}else dl(e,t)}(e,t):void 0;cl=!1}(s),s.asyncDep){if(o&&o.registerDep(s,D),!e.el){const e=s.subTree=Fs(ks);v(null,e,t,i)}}else D(s,e,t,i,o,n,a)},M=(e,t,i)=>{const r=t.component=e.component;if(function(e,t,i){const{props:r,children:o,component:n}=e,{props:a,children:s,patchFlag:l}=t,c=n.emitsOptions;if(t.dirs||t.transition)return!0;if(!(i&&l>=0))return!(!o&&!s||s&&s.$stable)||r!==a&&(r?!a||ia(r,a,c):!!a);if(1024&l)return!0;if(16&l)return r?ia(r,a,c):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;tAl&&El.splice(t,1)}(r.update),r.update()}else t.component=e.component,t.el=e.el,r.vnode=t},D=(e,t,i,r,o,n,a)=>{const s=()=>{if(e.isMounted){let t,{next:i,bu:r,u:s,parent:l,vnode:c}=e,d=i;us(e,!1),i?(i.el=c.el,L(e,i,a)):i=c,r&&Hn(r),(t=i.props&&i.props.onVnodeBeforeUpdate)&&Qs(t,l,i,c),us(e,!0);const p=$n(e),h=e.subTree;e.subTree=p,m(h,p,u(h.el),W(h),e,o,n),i.el=p.el,null===d&&function({vnode:e,parent:t},i){for(;t&&t.subTree===e;)(e=t.vnode).el=i,t=t.parent}(e,p.el),s&&ls(s,o),(t=i.props&&i.props.onVnodeUpdated)&&ls((()=>Qs(t,l,i,c)),o)}else{let a;const{el:s,props:l}=t,{bm:c,m:u,parent:d}=e,p=fa(t);if(us(e,!1),c&&Hn(c),!p&&(a=l&&l.onVnodeBeforeMount)&&Qs(a,d,t),us(e,!0),s&&q){const i=()=>{e.subTree=$n(e),q(s,e.subTree,e,o,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&i())):i()}else{const a=e.subTree=$n(e);m(null,a,i,r,e,o,n),t.el=a.el}if(u&&ls(u,o),!p&&(a=l&&l.onVnodeMounted)){const e=t;ls((()=>Qs(a,d,e)),o)}256&t.shapeFlag&&e.a&&ls(e.a,o),e.isMounted=!0,t=i=r=null}},l=e.effect=new Nr(s,(()=>jl(e.update)),e.scope),c=e.update=l.run.bind(l);c.id=e.uid,us(e,!0),c()},L=(e,t,i)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,i,r){const{props:o,attrs:n,vnode:{patchFlag:a}}=e,s=jo(o),[l]=e.propsOptions;let c=!1;if(!(r||a>0)||16&a){let r;Va(e,t,o,n)&&(c=!0);for(const n in s)t&&(xn(t,n)||(r=jn(n))!==n&&xn(t,r))||(l?!i||void 0===i[n]&&void 0===i[r]||(o[n]=Ga(l,s,n,void 0,e,!0)):delete o[n]);if(n!==s)for(const e in n)t&&xn(t,e)||(delete n[e],c=!0)}else if(8&a){const i=e.vnode.dynamicProps;for(let r=0;r{const{vnode:r,slots:o}=e;let n=!0,a=pn;if(32&r.shapeFlag){const e=t._;e?i&&1===e?n=!1:(bn(o,t),i||1!==e||delete o._):(n=!t.$stable,es(t,o)),a=t}else t&&(ts(e,t),a={default:1});if(n)for(const s in o)Ka(s)||s in a||delete o[s]})(e,t.children,i),Fr(),zl(void 0,e.update),zr()},O=(e,t,i,r,o,n,a,s,l=!1)=>{const u=e&&e.children,d=e?e.shapeFlag:0,p=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void N(u,p,i,r,o,n,a,s,l);if(256&h)return void R(u,p,i,r,o,n,a,s,l)}8&f?(16&d&&H(u,o,n),p!==u&&c(i,p)):16&d?16&f?N(u,p,i,r,o,n,a,s,l):H(u,o,n,!0):(8&d&&c(i,""),16&f&&k(p,i,r,o,n,a,s,l))},R=(e,t,i,r,o,n,a,s,l)=>{t=t||hn;const c=(e=e||hn).length,u=t.length,d=Math.min(c,u);let p;for(p=0;pu?H(e,o,n,!0,!1,d):k(t,i,r,o,n,a,s,l,d)},N=(e,t,i,r,o,n,a,s,l)=>{let c=0;const u=t.length;let d=e.length-1,p=u-1;for(;c<=d&&c<=p;){const r=e[c],u=t[c]=l?Gs(t[c]):Vs(t[c]);if(!Rs(r,u))break;m(r,u,i,null,o,n,a,s,l),c++}for(;c<=d&&c<=p;){const r=e[d],c=t[p]=l?Gs(t[p]):Vs(t[p]);if(!Rs(r,c))break;m(r,c,i,null,o,n,a,s,l),d--,p--}if(c>d){if(c<=p){const e=p+1,d=ep)for(;c<=d;)j(e[c],o,n,!0),c++;else{const h=c,f=c,g=new Map;for(c=f;c<=p;c++){const e=t[c]=l?Gs(t[c]):Vs(t[c]);null!=e.key&&g.set(e.key,c)}let v,_=0;const b=p-f+1;let y=!1,w=0;const x=new Array(b);for(c=0;c=b){j(r,o,n,!0);continue}let u;if(null!=r.key)u=g.get(r.key);else for(v=f;v<=p;v++)if(0===x[v-f]&&Rs(r,t[v])){u=v;break}void 0===u?j(r,o,n,!0):(x[u-f]=c+1,u>=w?w=u:y=!0,m(r,t[u],i,null,o,n,a,s,l),_++)}const C=y?function(e){const t=e.slice(),i=[0];let r,o,n,a,s;const l=e.length;for(r=0;r>1,e[i[s]]0&&(t[r]=i[n-1]),i[n]=r)}}n=i.length,a=i[n-1];for(;n-- >0;)i[n]=a,a=t[a];return i}(x):hn;for(v=C.length-1,c=b-1;c>=0;c--){const e=f+c,d=t[e],p=e+1{const{el:a,type:s,transition:l,children:c,shapeFlag:u}=e;if(6&u)return void B(e.component.subTree,t,r,o);if(128&u)return void e.suspense.move(t,r,o);if(64&u)return void s.move(e,t,r,G);if(s===xs){i(a,t,r);for(let e=0;el.enter(a)),n);else{const{leave:e,delayLeave:o,afterLeave:n}=l,s=()=>i(a,t,r),c=()=>{e(a,(()=>{s(),n&&n()}))};o?o(a,s,c):c()}else i(a,t,r)},j=(e,t,i,r=!1,o=!1)=>{const{type:n,props:a,ref:s,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:p}=e;if(null!=s&&ss(s,null,i,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&p,f=!fa(e);let m;if(f&&(m=a&&a.onVnodeBeforeUnmount)&&Qs(m,t,e),6&u)z(e.component,i,r);else{if(128&u)return void e.suspense.unmount(i,r);h&&rs(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,i,o,G,r):c&&(n!==xs||d>0&&64&d)?H(c,t,i,!1,!0):(n===xs&&384&d||!o&&16&u)&&H(l,t,i),r&&U(e)}(f&&(m=a&&a.onVnodeUnmounted)||h)&&ls((()=>{m&&Qs(m,t,e),h&&rs(e,null,t,"unmounted")}),i)},U=e=>{const{type:t,el:i,anchor:o,transition:n}=e;if(t===xs)return void F(i,o);if(t===Ts)return void y(e);const a=()=>{r(i),n&&!n.persisted&&n.afterLeave&&n.afterLeave()};if(1&e.shapeFlag&&n&&!n.persisted){const{leave:t,delayLeave:r}=n,o=()=>t(i,a);r?r(e.el,a,o):o()}else a()},F=(e,t)=>{let i;for(;e!==t;)i=d(e),r(e),e=i;r(t)},z=(e,t,i)=>{const{bum:r,scope:o,update:n,subTree:a,um:s}=e;r&&Hn(r),o.stop(),n&&(n.active=!1,j(a,e,t,i)),s&&ls(s,t),ls((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},H=(e,t,i,r=!1,o=!1,n=0)=>{for(let a=n;a6&e.shapeFlag?W(e.component.subTree):128&e.shapeFlag?e.suspense.next():d(e.anchor||e.el),V=(e,t,i)=>{null==e?t._vnode&&j(t._vnode,null,null,!0):m(t._vnode||null,e,t,null,null,null,i),Hl(),t._vnode=e},G={p:m,um:j,m:B,r:U,mt:I,mc:k,pc:O,pbc:E,n:W,o:e};let Y,q;t&&([Y,q]=t(G));return{render:V,hydrate:Y,createApp:as(V,Y)}}(e)}function us({effect:e,update:t},i){e.allowRecurse=t.allowRecurse=i}function ds(e,t,i=!1){const r=e.children,o=t.children;if(Cn(r)&&Cn(o))for(let n=0;ne&&(e.disabled||""===e.disabled),hs=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,fs=(e,t)=>{const i=e&&e.to;if(An(i)){if(t){return t(i)}return null}return i};function ms(e,t,i,{o:{insert:r},m:o},n=2){0===n&&r(e.targetAnchor,t,i);const{el:a,anchor:s,shapeFlag:l,children:c,props:u}=e,d=2===n;if(d&&r(a,t,i),(!d||ps(u))&&16&l)for(let p=0;p{16&_&&u(b,e,t,o,n,a,s,l)};v?g(i,c):d&&g(d,p)}else{t.el=e.el;const r=t.anchor=e.anchor,u=t.target=e.target,h=t.targetAnchor=e.targetAnchor,m=ps(e.props),g=m?i:u,_=m?r:h;if(a=a||hs(u),y?(p(e.dynamicChildren,y,g,o,n,a,s),ds(e,t,!0)):l||d(e,t,g,_,o,n,a,s,!1),v)m||ms(t,i,r,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=fs(t.props,f);e&&ms(t,e,null,c,0)}else m&&ms(t,u,h,c,1)}},remove(e,t,i,r,{um:o,o:{remove:n}},a){const{shapeFlag:s,children:l,anchor:c,targetAnchor:u,target:d,props:p}=e;if(d&&n(u),(a||!ps(p))&&(n(c),16&s))for(let h=0;h0?As||hn:null,Es.pop(),As=Es[Es.length-1]||null,Ps>0&&As&&As.push(e),e}function Ds(e,t,i,r,o,n){return Ms(Us(e,t,i,r,o,n,!0))}function Ls(e,t,i,r,o){return Ms(Fs(e,t,i,r,o,!0))}function Os(e){return!!e&&!0===e.__v_isVNode}function Rs(e,t){return e.type===t.type&&e.key===t.key}const Ns="__vInternal",Bs=({key:e})=>null!=e?e:null,js=({ref:e,ref_key:t,ref_for:i})=>null!=e?An(e)||Vo(e)||En(e)?{i:Zn,r:e,k:t,f:!!i}:e:null;function Us(e,t=null,i=null,r=0,o=null,n=(e===xs?0:1),a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Bs(t),ref:t&&js(t),scopeId:Xn,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:n,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null};return s?(Ys(l,i),128&n&&e.normalize(l)):i&&(l.shapeFlag|=An(i)?8:16),Ps>0&&!a&&As&&(l.patchFlag>0||6&n)&&32!==l.patchFlag&&As.push(l),l}const Fs=function(e,t=null,i=null,r=0,o=null,n=!1){e&&e!==_s||(e=ks);if(Os(e)){const r=zs(e,t,!0);return i&&Ys(r,i),r}a=e,En(a)&&"__vccOpts"in a&&(e=e.__vccOpts);var a;if(t){t=function(e){return e?Bo(e)||Ns in e?bn({},e):e:null}(t);let{class:e,style:i}=t;e&&!An(e)&&(t.class=cn(e)),Sn(i)&&(Bo(i)&&!Cn(i)&&(i=bn({},i)),t.style=nn(i))}const s=An(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:Sn(e)?4:En(e)?2:0;return Us(e,t,i,r,o,s,n,!0)};function zs(e,t,i=!1){const{props:r,ref:o,patchFlag:n,children:a}=e,s=t?qs(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&Bs(s),ref:t&&t.ref?i&&o?Cn(o)?o.concat(js(t)):[o,js(t)]:js(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xs?-1===n?16:16|n:n,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&zs(e.ssContent),ssFallback:e.ssFallback&&zs(e.ssFallback),el:e.el,anchor:e.anchor}}function Hs(e=" ",t=0){return Fs(Cs,null,e,t)}function Ws(e="",t=!1){return t?(Ss(),Ls(ks,null,e)):Fs(ks,null,e)}function Vs(e){return null==e||"boolean"==typeof e?Fs(ks):Cn(e)?Fs(xs,null,e.slice()):"object"==typeof e?Gs(e):Fs(Cs,null,String(e))}function Gs(e){return null===e.el||e.memo?e:zs(e)}function Ys(e,t){let i=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(Cn(t))i=16;else if("object"==typeof t){if(65&r){const i=t.default;return void(i&&(i._c&&(i._d=!1),Ys(e,i()),i._c&&(i._d=!0)))}{i=32;const r=t._;r||Ns in t?3===r&&Zn&&(1===Zn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Zn}}else En(t)?(t={default:t,_ctx:Zn},i=32):(t=String(t),64&r?(i=16,t=[Hs(t)]):i=8);e.children=t,e.shapeFlag|=i}function qs(...e){const t={};for(let i=0;it(e,i,void 0,n&&n[i])));else{const i=Object.keys(e);o=new Array(i.length);for(let r=0,a=i.length;r!Os(e)||e.type!==ks&&!(e.type===xs&&!Js(e.children))))?e:null}const $s=e=>e?ll(e)?hl(e)||e.proxy:$s(e.parent):null,el=bn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>$s(e.parent),$root:e=>$s(e.root),$emit:e=>e.emit,$options:e=>Na(e),$forceUpdate:e=>()=>jl(e.update),$nextTick:e=>Bl.bind(e.proxy),$watch:e=>Zl.bind(e)}),tl={get({_:e},t){const{ctx:i,setupState:r,data:o,props:n,accessCache:a,type:s,appContext:l}=e;let c;if("$"!==t[0]){const s=a[t];if(void 0!==s)switch(s){case 1:return r[t];case 2:return o[t];case 4:return i[t];case 3:return n[t]}else{if(r!==pn&&xn(r,t))return a[t]=1,r[t];if(o!==pn&&xn(o,t))return a[t]=2,o[t];if((c=e.propsOptions[0])&&xn(c,t))return a[t]=3,n[t];if(i!==pn&&xn(i,t))return a[t]=4,i[t];Da&&(a[t]=0)}}const u=el[t];let d,p;return u?("$attrs"===t&&Hr(e,0,t),u(e)):(d=s.__cssModules)&&(d=d[t])?d:i!==pn&&xn(i,t)?(a[t]=4,i[t]):(p=l.config.globalProperties,xn(p,t)?p[t]:void 0)},set({_:e},t,i){const{data:r,setupState:o,ctx:n}=e;if(o!==pn&&xn(o,t))o[t]=i;else if(r!==pn&&xn(r,t))r[t]=i;else if(xn(e.props,t))return!1;return("$"!==t[0]||!(t.slice(1)in e))&&(n[t]=i,!0)},has({_:{data:e,setupState:t,accessCache:i,ctx:r,appContext:o,propsOptions:n}},a){let s;return!!i[a]||e!==pn&&xn(e,a)||t!==pn&&xn(t,a)||(s=n[0])&&xn(s,a)||xn(r,a)||xn(el,a)||xn(o.config.globalProperties,a)}},il=os();let rl=0;let ol=null;const nl=()=>ol||Zn,al=e=>{ol=e,e.scope.on()},sl=()=>{ol&&ol.scope.off(),ol=null};function ll(e){return 4&e.vnode.shapeFlag}let cl=!1;function ul(e,t,i){En(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Sn(t)&&(e.setupState=Ko(t)),dl(e,i)}function dl(e,t,i){const r=e.type;e.render||(e.render=r.render||fn),al(e),Fr(),La(e),zr(),sl()}function pl(e){const t=t=>{e.exposed=t||{}};let i;return{get attrs(){return i||(i=function(e){return new Proxy(e.attrs,{get:(t,i)=>(Hr(e,0,"$attrs"),t[i])})}(e))},slots:e.slots,emit:e.emit,expose:t}}function hl(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Ko(Uo(e.exposed)),{get:(t,i)=>i in t?t[i]:i in el?el[i](e):void 0}))}const fl=/(?:^|[-_])(\w)/g;function ml(e){return En(e)&&e.displayName||e.name}function gl(e,t,i=!1){let r=ml(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e&&e.parent){const i=e=>{for(const i in e)if(e[i]===t)return i};r=i(e.components||e.parent.type.components)||i(e.appContext.components)}return r?r.replace(fl,(e=>e.toUpperCase())).replace(/[-_]/g,""):i?"App":"Anonymous"}const vl=[];function _l(e,...t){Fr();const i=vl.length?vl[vl.length-1].component:null,r=i&&i.appContext.config.warnHandler,o=function(){let e=vl[vl.length-1];if(!e)return[];const t=[];for(;e;){const i=t[0];i&&i.vnode===e?i.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}();if(r)wl(r,i,11,[e+t.join(""),i&&i.proxy,o.map((({vnode:e})=>`at <${gl(i,e.type)}>`)).join("\n"),o]);else{const i=[`[Vue warn]: ${e}`,...t];o.length&&i.push("\n",...function(e){const t=[];return e.forEach(((e,i)=>{t.push(...0===i?[]:["\n"],...function({vnode:e,recurseCount:t}){const i=t>0?`... (${t} recursive calls)`:"",r=!!e.component&&null==e.component.parent,o=` at <${gl(e.component,e.type,r)}`,n=">"+i;return e.props?[o,...bl(e.props),n]:[o+n]}(e))})),t}(o)),console.warn(...i)}zr()}function bl(e){const t=[],i=Object.keys(e);return i.slice(0,3).forEach((i=>{t.push(...yl(i,e[i]))})),i.length>3&&t.push(" ..."),t}function yl(e,t,i){return An(t)?(t=JSON.stringify(t),i?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?i?t:[`${e}=${t}`]:Vo(t)?(t=yl(e,jo(t.value),!0),i?t:[`${e}=Ref<`,t,">"]):En(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=jo(t),i?t:[`${e}=`,t])}function wl(e,t,i,r){let o;try{o=r?e(...r):e()}catch(n){Cl(n,t,i)}return o}function xl(e,t,i,r){if(En(e)){const o=wl(e,t,i,r);return o&&Pn(o)&&o.catch((e=>{Cl(e,t,i)})),o}const o=[];for(let n=0;n>>1;Wl(El[r])Wl(e)-Wl(t))),Ll=0;Llnull==e.id?1/0:e.id;function Vl(e){Tl=!1,kl=!0,zl(e),El.sort(((e,t)=>Wl(e)-Wl(t)));try{for(Al=0;Ale.value,u=!!e._shallow):Ro(e)?(l=()=>e,r=!0):Cn(e)?(d=!0,u=e.some(Ro),l=()=>e.map((e=>Vo(e)?e.value:Ro(e)?Kl(e):En(e)?wl(e,s,2):void 0))):l=En(e)?t?()=>wl(e,s,2):()=>{if(!s||!s.isUnmounted)return c&&c(),xl(e,s,3,[p])}:fn,t&&r){const e=l;l=()=>Kl(e())}let p=e=>{c=g.onStop=()=>{wl(e,s,4)}};if(cl)return p=fn,t?i&&xl(t,s,3,[l(),d?[]:void 0,p]):l(),fn;let h=d?[]:Yl;const f=()=>{if(g.active)if(t){const e=g.run();(r||u||(d?e.some(((e,t)=>zn(e,h[t]))):zn(e,h)))&&(c&&c(),xl(t,s,3,[e,h===Yl?void 0:h,p]),h=e)}else g.run()};let m;f.allowRecurse=!!t,m="sync"===o?f:"post"===o?()=>ls(f,s&&s.suspense):()=>{!s||s.isMounted?function(e){Fl(e,Pl,Sl,Il)}(f):f()};const g=new Nr(l,m);return t?i?f():h=g.run():"post"===o?ls(g.run.bind(g),s&&s.suspense):g.run(),()=>{g.stop(),s&&s.scope&&yn(s.scope.effects,g)}}function Zl(e,t,i){const r=this.proxy,o=An(e)?e.includes(".")?Xl(r,e):()=>r[e]:e.bind(r,r);let n;En(t)?n=t:(n=t.handler,i=t);const a=ol;al(this);const s=Ql(o,n.bind(r),i);return a?al(a):sl(),s}function Xl(e,t){const i=t.split(".");return()=>{let t=e;for(let e=0;e{Kl(e,t)}));else if(Dn(e))for(const i in e)Kl(e[i],t);return e}function Jl(){return $l().slots}function $l(){const e=nl();return e.setupContext||(e.setupContext=pl(e))}function ec(e,t,i){const r=arguments.length;return 2===r?Sn(t)&&!Cn(t)?Os(t)?Fs(e,null,[t]):Fs(e,t):Fs(e,null,t):(r>3?i=Array.prototype.slice.call(arguments,2):3===r&&Os(i)&&(i=[i]),Fs(e,t,i))}const tc="3.2.25";function ic(e,t){const i=Object.create(null),r=e.split(",");for(let o=0;o!!i[e.toLowerCase()]:e=>!!i[e]}const rc=ic("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function oc(e){return!!e||""===e}function nc(e,t){if(e===t)return!0;let i=cc(e),r=cc(t);if(i||r)return!(!i||!r)&&e.getTime()===t.getTime();if(i=lc(e),r=lc(t),i||r)return!(!i||!r)&&function(e,t){if(e.length!==t.length)return!1;let i=!0;for(let r=0;i&&re instanceof Date,uc=e=>"string"==typeof e,dc=e=>null!==e&&"object"==typeof e,pc=e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))},hc=/-(\w)/g,fc=pc((e=>e.replace(hc,((e,t)=>t?t.toUpperCase():"")))),mc=/\B([A-Z])/g,gc=pc((e=>e.replace(mc,"-$1").toLowerCase())),vc=pc((e=>e.charAt(0).toUpperCase()+e.slice(1))),_c=e=>{const t=parseFloat(e);return isNaN(t)?e:t},bc="undefined"!=typeof document?document:null,yc=new Map,wc={insert:(e,t,i)=>{t.insertBefore(e,i||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,i,r)=>{const o=t?bc.createElementNS("http://www.w3.org/2000/svg",e):bc.createElement(e,i?{is:i}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>bc.createTextNode(e),createComment:e=>bc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>bc.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,i,r){const o=i?i.previousSibling:t.lastChild;let n=yc.get(e);if(!n){const t=bc.createElement("template");if(t.innerHTML=r?`${e}`:e,n=t.content,r){const e=n.firstChild;for(;e.firstChild;)n.appendChild(e.firstChild);n.removeChild(e)}yc.set(e,n)}return t.insertBefore(n.cloneNode(!0),i),[o?o.nextSibling:t.firstChild,i?i.previousSibling:t.lastChild]}};const xc=/\s*!important$/;function Cc(e,t,i){if(lc(i))i.forEach((i=>Cc(e,t,i)));else if(t.startsWith("--"))e.setProperty(t,i);else{const r=function(e,t){const i=Tc[t];if(i)return i;let r=Nn(t);if("filter"!==r&&r in e)return Tc[t]=r;r=vc(r);for(let o=0;odocument.createEvent("Event").timeStamp&&(Ac=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);Sc=!!(e&&Number(e[1])<=53)}let Pc=0;const Ic=Promise.resolve(),Mc=()=>{Pc=0};function Dc(e,t,i,r){e.addEventListener(t,i,r)}function Lc(e,t,i,r,o=null){const n=e._vei||(e._vei={}),a=n[t];if(r&&a)a.value=r;else{const[i,s]=function(e){let t;if(Oc.test(e)){let i;for(t={};i=e.match(Oc);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[gc(e.slice(2)),t]}(t);if(r){Dc(e,i,n[t]=function(e,t){const i=e=>{const r=e.timeStamp||Ac();(Sc||r>=i.attached-1)&&xl(function(e,t){if(lc(t)){const i=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{i.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e(t)))}return t}(e,i.value),t,5,[e])};return i.value=e,i.attached=(()=>Pc||(Ic.then(Mc),Pc=Ac()))(),i}(r,o),s)}else a&&(!function(e,t,i,r){e.removeEventListener(t,i,r)}(e,i,a,s),n[t]=void 0)}}const Oc=/(?:Once|Passive|Capture)$/;const Rc=/^on[a-z]/;const Nc="undefined"!=typeof HTMLElement?HTMLElement:class{};class Bc extends Nc{constructor(e,t={},i){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&i?i(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,Bl((()=>{this._connected||(lu(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let i=0;i{for(const t of e)this._setAttr(t.attributeName)})).observe(this,{attributes:!0});const e=e=>{const{props:t,styles:i}=e,r=!lc(t),o=t?r?Object.keys(t):t:[];let n;if(r)for(const a in this._props){const e=t[a];(e===Number||e&&e.type===Number)&&(this._props[a]=_c(this._props[a]),(n||(n=Object.create(null)))[a]=!0)}this._numberProps=n;for(const a of Object.keys(this))"_"!==a[0]&&this._setProp(a,this[a],!0,!1);for(const a of o.map(fc))Object.defineProperty(this,a,{get(){return this._getProp(a)},set(e){this._setProp(a,e)}});this._applyStyles(i),this._update()},t=this._def.__asyncLoader;t?t().then(e):e(this._def)}_setAttr(e){let t=this.getAttribute(e);this._numberProps&&this._numberProps[e]&&(t=_c(t)),this._setProp(fc(e),t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,i=!0,r=!0){t!==this._props[e]&&(this._props[e]=t,r&&this._instance&&this._update(),i&&(!0===t?this.setAttribute(gc(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(gc(e),t+""):t||this.removeAttribute(gc(e))))}_update(){lu(this._createVNode(),this.shadowRoot)}_createVNode(){const e=Fs(this._def,sc({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0,e.emit=(e,...t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof Bc){e.parent=t._instance;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}const jc="transition",Uc=(e,{slots:t})=>ec(aa,function(e){const t={};for(const S in e)S in Fc||(t[S]=e[S]);if(!1===e.css)return t;const{name:i="v",type:r,duration:o,enterFromClass:n=`${i}-enter-from`,enterActiveClass:a=`${i}-enter-active`,enterToClass:s=`${i}-enter-to`,appearFromClass:l=n,appearActiveClass:c=a,appearToClass:u=s,leaveFromClass:d=`${i}-leave-from`,leaveActiveClass:p=`${i}-leave-active`,leaveToClass:h=`${i}-leave-to`}=e,f=function(e){if(null==e)return null;if(dc(e))return[Wc(e.enter),Wc(e.leave)];{const t=Wc(e);return[t,t]}}(o),m=f&&f[0],g=f&&f[1],{onBeforeEnter:v,onEnter:_,onEnterCancelled:b,onLeave:y,onLeaveCancelled:w,onBeforeAppear:x=v,onAppear:C=_,onAppearCancelled:k=b}=t,T=(e,t,i)=>{Gc(e,t?u:s),Gc(e,t?c:a),i&&i()},E=(e,t)=>{Gc(e,h),Gc(e,p),t&&t()},A=e=>(t,i)=>{const o=e?C:_,a=()=>T(t,e,i);zc(o,[t,a]),Yc((()=>{Gc(t,e?l:n),Vc(t,e?u:s),Hc(o)||Qc(t,r,m,a)}))};return sc(t,{onBeforeEnter(e){zc(v,[e]),Vc(e,n),Vc(e,a)},onBeforeAppear(e){zc(x,[e]),Vc(e,l),Vc(e,c)},onEnter:A(!1),onAppear:A(!0),onLeave(e,t){const i=()=>E(e,t);Vc(e,d),document.body.offsetHeight,Vc(e,p),Yc((()=>{Gc(e,d),Vc(e,h),Hc(y)||Qc(e,r,g,i)})),zc(y,[e,i])},onEnterCancelled(e){T(e,!1),zc(b,[e])},onAppearCancelled(e){T(e,!0),zc(k,[e])},onLeaveCancelled(e){E(e),zc(w,[e])}})}(e),t);Uc.displayName="Transition";const Fc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Uc.props=sc({},aa.props,Fc);const zc=(e,t=[])=>{lc(e)?e.forEach((e=>e(...t))):e&&e(...t)},Hc=e=>!!e&&(lc(e)?e.some((e=>e.length>1)):e.length>1);function Wc(e){return _c(e)}function Vc(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function Gc(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:i}=e;i&&(i.delete(t),i.size||(e._vtc=void 0))}function Yc(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let qc=0;function Qc(e,t,i,r){const o=e._endId=++qc,n=()=>{o===e._endId&&r()};if(i)return setTimeout(n,i);const{type:a,timeout:s,propCount:l}=function(e,t){const i=window.getComputedStyle(e),r=e=>(i[e]||"").split(", "),o=r("transitionDelay"),n=r("transitionDuration"),a=Zc(o,n),s=r("animationDelay"),l=r("animationDuration"),c=Zc(s,l);let u=null,d=0,p=0;t===jc?a>0&&(u=jc,d=a,p=n.length):"animation"===t?c>0&&(u="animation",d=c,p=l.length):(d=Math.max(a,c),u=d>0?a>c?jc:"animation":null,p=u?u===jc?n.length:l.length:0);const h=u===jc&&/\b(transform|all)(,|$)/.test(i.transitionProperty);return{type:u,timeout:d,propCount:p,hasTransform:h}}(e,t);if(!a)return r();const c=a+"end";let u=0;const d=()=>{e.removeEventListener(c,p),n()},p=t=>{t.target===e&&++u>=l&&d()};setTimeout((()=>{uXc(t)+Xc(e[i]))))}function Xc(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}const Kc=e=>{const t=e.props["onUpdate:modelValue"];return lc(t)?e=>((e,t)=>{for(let i=0;i{e._assign(function(e){return"_value"in e?e._value:e.value}(e))}))},beforeUpdate(e,{value:t,oldValue:i},r){e._assign=Kc(r),t!==i&&(e.checked=nc(t,r.props.value))}};const $c=["ctrl","shift","alt","meta"],eu={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>$c.some((i=>e[`${i}Key`]&&!t.includes(i)))},tu=(e,t)=>(i,...r)=>{for(let e=0;ei=>{if(!("key"in i))return;const r=gc(i.key);return t.some((e=>e===r||iu[e]===r))?e(i):void 0},ou={beforeMount(e,{value:t},{transition:i}){e._vod="none"===e.style.display?"":e.style.display,i&&t?i.beforeEnter(e):nu(e,t)},mounted(e,{value:t},{transition:i}){i&&t&&i.enter(e)},updated(e,{value:t,oldValue:i},{transition:r}){!t!=!i&&(r?t?(r.beforeEnter(e),nu(e,!0),r.enter(e)):r.leave(e,(()=>{nu(e,!1)})):nu(e,t))},beforeUnmount(e,{value:t}){nu(e,t)}};function nu(e,t){e.style.display=t?e._vod:"none"}const au=sc({patchProp:(e,t,i,r,o=!1,n,a,s,l)=>{"class"===t?function(e,t,i){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):i?e.setAttribute("class",t):e.className=t}(e,r,o):"style"===t?function(e,t,i){const r=e.style,o=uc(i);if(i&&!o){for(const e in i)Cc(r,e,i[e]);if(t&&!uc(t))for(const e in t)null==i[e]&&Cc(r,e,"")}else{const n=r.display;o?t!==i&&(r.cssText=i):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=n)}}(e,i,r):(e=>ac.test(e))(t)?(e=>e.startsWith("onUpdate:"))(t)||Lc(e,t,0,r,a):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,i,r){if(r)return"innerHTML"===t||"textContent"===t||!(!(t in e)||!Rc.test(t)||(o=i,"function"!=typeof o));var o;if("spellcheck"===t||"draggable"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(Rc.test(t)&&uc(i))return!1;return t in e}(e,t,r,o))?function(e,t,i,r,o,n,a){if("innerHTML"===t||"textContent"===t)return r&&a(r,o,n),void(e[t]=null==i?"":i);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=i;const r=null==i?"":i;return e.value===r&&"OPTION"!==e.tagName||(e.value=r),void(null==i&&e.removeAttribute(t))}if(""===i||null==i){const r=typeof e[t];if("boolean"===r)return void(e[t]=oc(i));if(null==i&&"string"===r)return e[t]="",void e.removeAttribute(t);if("number"===r){try{e[t]=0}catch(s){}return void e.removeAttribute(t)}}try{e[t]=i}catch(l){}}(e,t,r,n,a,s,l):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,i,r,o){if(r&&t.startsWith("xlink:"))null==i?e.removeAttributeNS(Ec,t.slice(6,t.length)):e.setAttributeNS(Ec,t,i);else{const r=rc(t);null==i||r&&!oc(i)?e.removeAttribute(t):e.setAttribute(t,r?"":i)}}(e,t,r,o))}},wc);let su;const lu=(...e)=>{(su||(su=cs(au))).render(...e)};var cu="object"==typeof global&&global&&global.Object===Object&&global,uu="object"==typeof self&&self&&self.Object===Object&&self,du=cu||uu||Function("return this")(),pu=du.Symbol,hu=Object.prototype,fu=hu.hasOwnProperty,mu=hu.toString,gu=pu?pu.toStringTag:void 0;var vu=Object.prototype.toString;var _u=pu?pu.toStringTag:void 0;function bu(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":_u&&_u in Object(e)?function(e){var t=fu.call(e,gu),i=e[gu];try{e[gu]=void 0;var r=!0}catch(n){}var o=mu.call(e);return r&&(t?e[gu]=i:delete e[gu]),o}(e):function(e){return vu.call(e)}(e)}function yu(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==bu(e)}var wu=Array.isArray,xu=pu?pu.prototype:void 0,Cu=xu?xu.toString:void 0;function ku(e){if("string"==typeof e)return e;if(wu(e))return function(e,t){for(var i=-1,r=null==e?0:e.length,o=Array(r);++i-1},ed.prototype.set=function(e,t){var i=this.__data__,r=Ju(i,e);return r<0?(++this.size,i.push([e,t])):i[r][1]=t,this};var td=Gu(du,"Map");function id(e,t){var i,r,o=e.__data__;return("string"==(r=typeof(i=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?o["string"==typeof t?"string":"hash"]:o.map}function rd(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t=t||i<0||d&&e-c>=n}function g(){var e=fd();if(m(e))return v(e);s=setTimeout(g,function(e){var i=t-(e-l);return d?gd(i,n-(e-c)):i}(e))}function v(e){return s=void 0,p&&r?h(e):(r=o=void 0,a)}function _(){var e=fd(),i=m(e);if(r=arguments,o=this,l=e,i){if(void 0===s)return f(l);if(d)return clearTimeout(s),s=setTimeout(g,t),h(l)}return void 0===s&&(s=setTimeout(g,t)),a}return t=Lu(t)||0,Su(i)&&(u=!!i.leading,n=(d="maxWait"in i)?md(Lu(i.maxWait)||0,t):n,p="trailing"in i?!!i.trailing:p),_.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},_.flush=function(){return void 0===s?a:v(fd())},_}function _d(e){for(var t=-1,i=null==e?0:e.length,r={};++tr=>{const o=null==e?void 0:e(r);if(!1===i||!o)return null==t?void 0:t(r)};var wd;const xd="undefined"!=typeof window,Cd=e=>"boolean"==typeof e,kd=e=>"number"==typeof e,Td=()=>{};function Ed(e){return"function"==typeof e?e():Zo(e)}function Ad(e){return!!xr&&(Tr(e),!0)}function Sd(e,t,i={}){const{immediate:r=!0}=i,o=Go(!1);let n=null;function a(){n&&(clearTimeout(n),n=null)}function s(){o.value=!1,a()}function l(...i){a(),o.value=!0,n=setTimeout((()=>{o.value=!1,n=null,e(...i)}),Ed(t))}return r&&(o.value=!0,xd&&l()),Ad(s),{isPending:o,start:l,stop:s}}function Pd(e){var t;const i=Ed(e);return null!=(t=null==i?void 0:i.$el)?t:i}xd&&(null==(wd=null==window?void 0:window.navigator)?void 0:wd.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const Id=xd?window:void 0;function Md(...e){let t,i,r,o;if("string"==typeof e[0]?([i,r,o]=e,t=Id):[t,i,r,o]=e,!t)return Td;let n=Td;const a=ql((()=>Pd(t)),(e=>{n(),e&&(e.addEventListener(i,r,o),n=()=>{e.removeEventListener(i,r,o),n=Td})}),{immediate:!0,flush:"post"}),s=()=>{a(),n()};return Ad(s),s}function Dd(e,t=!1){const i=Go(),r=()=>i.value=Boolean(e());return r(),function(e,t=!0){nl()?Ca(e):t?e():Bl(e)}(r,t),i}const Ld="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Od="__vueuse_ssr_handlers__";Ld[Od]=Ld[Od]||{},Ld[Od];var Rd,Nd,Bd=Object.getOwnPropertySymbols,jd=Object.prototype.hasOwnProperty,Ud=Object.prototype.propertyIsEnumerable;function Fd(e,t,i={}){const r=i,{window:o=Id}=r,n=((e,t)=>{var i={};for(var r in e)jd.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&Bd)for(var r of Bd(e))t.indexOf(r)<0&&Ud.call(e,r)&&(i[r]=e[r]);return i})(r,["window"]);let a;const s=Dd((()=>o&&"ResizeObserver"in o)),l=()=>{a&&(a.disconnect(),a=void 0)},c=ql((()=>Pd(e)),(e=>{l(),s.value&&o&&e&&(a=new ResizeObserver(t),a.observe(e,n))}),{immediate:!0,flush:"post"}),u=()=>{l(),c()};return Ad(u),{isSupported:s,stop:u}}(Nd=Rd||(Rd={})).UP="UP",Nd.RIGHT="RIGHT",Nd.DOWN="DOWN",Nd.LEFT="LEFT",Nd.NONE="NONE";var zd=Object.defineProperty,Hd=Object.getOwnPropertySymbols,Wd=Object.prototype.hasOwnProperty,Vd=Object.prototype.propertyIsEnumerable,Gd=(e,t,i)=>t in e?zd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;((e,t)=>{for(var i in t||(t={}))Wd.call(t,i)&&Gd(e,i,t[i]);if(Hd)for(var i of Hd(t))Vd.call(t,i)&&Gd(e,i,t[i])})({linear:function(e){return e}},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const Yd=e=>{let t,i;return"touchend"===e.type?(i=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(i=e.touches[0].clientY,t=e.touches[0].clientX):(i=e.clientY,t=e.clientX),{clientX:t,clientY:i}},qd=()=>{},Qd=Object.prototype.hasOwnProperty,Zd=(e,t)=>Qd.call(e,t),Xd=Array.isArray,Kd=e=>"function"==typeof e,Jd=e=>"string"==typeof e,$d=e=>null!==e&&"object"==typeof e,ep=/-(\w)/g,tp=(e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))})((e=>e.replace(ep,((e,t)=>t?t.toUpperCase():"")))),ip=e=>void 0===e,rp=e=>"undefined"!=typeof Element&&e instanceof Element,op=e=>Object.keys(e);class np extends Error{constructor(e){super(e),this.name="ElementPlusError"}}const ap=(e="")=>e.split(" ").filter((e=>!!e.trim())),sp=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)};function lp(e,t="px"){return e?Jd(e)?e:kd(e)?`${e}${t}`:void 0:""}let cp; /*! Element Plus Icons Vue v2.0.9 */ var up=(e,t)=>{let i=e.__vccOpts||e;for(let[r,o]of t)i[r]=o;return i},dp={name:"ArrowDown"},pp={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},hp=[Us("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1)];var fp=up(dp,[["render",function(e,t,i,r,o,n){return Ss(),Ds("svg",pp,hp)}],["__file","arrow-down.vue"]]),mp={name:"ArrowUp"},gp={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},vp=[Us("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1)];var _p=up(mp,[["render",function(e,t,i,r,o,n){return Ss(),Ds("svg",gp,vp)}],["__file","arrow-up.vue"]]),bp={name:"CircleCheck"},yp={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},wp=[Us("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),Us("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1)];var xp=up(bp,[["render",function(e,t,i,r,o,n){return Ss(),Ds("svg",yp,wp)}],["__file","circle-check.vue"]]),Cp={name:"CircleClose"},kp={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Tp=[Us("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),Us("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1)];var Ep=up(Cp,[["render",function(e,t,i,r,o,n){return Ss(),Ds("svg",kp,Tp)}],["__file","circle-close.vue"]]),Ap={name:"Close"},Sp={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Pp=[Us("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1)];var Ip=up(Ap,[["render",function(e,t,i,r,o,n){return Ss(),Ds("svg",Sp,Pp)}],["__file","close.vue"]]),Mp={name:"Delete"},Dp={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Lp=[Us("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1)];var Op=up(Mp,[["render",function(e,t,i,r,o,n){return Ss(),Ds("svg",Dp,Lp)}],["__file","delete.vue"]]),Rp={name:"Edit"},Np={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Bp=[Us("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z"},null,-1),Us("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"},null,-1)];var jp=up(Rp,[["render",function(e,t,i,r,o,n){return Ss(),Ds("svg",Np,Bp)}],["__file","edit.vue"]]),Up={name:"Hide"},Fp={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},zp=[Us("path",{d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z",fill:"currentColor"},null,-1),Us("path",{d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z",fill:"currentColor"},null,-1)];var Hp=up(Up,[["render",function(e,t,i,r,o,n){return Ss(),Ds("svg",Fp,zp)}],["__file","hide.vue"]]),Wp={name:"Loading"},Vp={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Gp=[Us("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1)];var Yp=up(Wp,[["render",function(e,t,i,r,o,n){return Ss(),Ds("svg",Vp,Gp)}],["__file","loading.vue"]]),qp={name:"Minus"},Qp={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Zp=[Us("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1)];var Xp=up(qp,[["render",function(e,t,i,r,o,n){return Ss(),Ds("svg",Qp,Zp)}],["__file","minus.vue"]]),Kp={name:"Plus"},Jp={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},$p=[Us("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1)];var eh=up(Kp,[["render",function(e,t,i,r,o,n){return Ss(),Ds("svg",Jp,$p)}],["__file","plus.vue"]]),th={name:"View"},ih={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},rh=[Us("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1)];var oh=up(th,[["render",function(e,t,i,r,o,n){return Ss(),Ds("svg",ih,rh)}],["__file","view.vue"]]);const nh=(e,t)=>{if(!$d(e)||$d(i=e)&&i.__epPropKey)return e;var i;const{values:r,required:o,default:n,type:a,validator:s}=e,l={type:a,required:!!o,validator:r||s?i=>{let o=!1,a=[];if(r&&(a=Array.from(r),Zd(e,"default")&&a.push(n),o||(o=a.includes(i))),s&&(o||(o=s(i))),!o&&a.length>0){const e=[...new Set(a)].map((e=>JSON.stringify(e))).join(", ");_l(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${e}], got value ${JSON.stringify(i)}.`)}return o}:void 0,__epPropKey:!0};return Zd(e,"default")&&(l.default=n),l},ah=e=>_d(Object.entries(e).map((([e,t])=>[e,nh(t,e)]))),sh=[String,Object,Function],lh={Close:Ip},ch={validating:Yp,success:xp,error:Ep},uh=(e,t)=>{if(e.install=i=>{for(const r of[e,...Object.values(null!=t?t:{})])i.component(r.name,r)},t)for(const[i,r]of Object.entries(t))e[i]=r;return e},dh=e=>(e.install=qd,e),ph="Tab",hh="Enter",fh="Space",mh="Escape",gh=["","default","small","large"];var vh=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(vh||{});const _h=["class","style"],bh=/^on[A-Z]/,yh=Symbol("buttonGroupContextKey"),wh=Symbol(),xh=Symbol("dialogInjectionKey"),Ch=Symbol("formContextKey"),kh=Symbol("formItemContextKey"),Th=Symbol("radioGroupKey"),Eh=Symbol("popper"),Ah=Symbol("popperContent"),Sh=e=>{const t=nl();return rn((()=>{var i,r;return null!=(r=(null==(i=t.proxy)?void 0:i.$props)[e])?r:void 0}))},Ph=Go();function Ih(e,t){const i=nl()?oa(wh,Ph):Ph;return e?rn((()=>{var r,o;return null!=(o=null==(r=i.value)?void 0:r[e])?o:t})):i}const Mh=(e,t)=>{var i;const r=[...new Set([...op(e),...op(t)])],o={};for(const n of r)o[n]=null!=(i=t[n])?i:e[n];return o},Dh=nh({type:String,values:gh,required:!1}),Lh=(e,t={})=>{const i=Go(void 0),r=t.prop?i:Sh("size"),o=t.global?i:Ih("size"),n=t.form?{size:void 0}:oa(Ch,void 0),a=t.formItem?{size:void 0}:oa(kh,void 0);return rn((()=>r.value||Zo(e)||(null==a?void 0:a.size)||(null==n?void 0:n.size)||o.value||""))},Oh=e=>{const t=Sh("disabled"),i=oa(Ch,void 0);return rn((()=>t.value||Zo(e)||(null==i?void 0:i.disabled)||!1))},Rh=({from:e,replacement:t,scope:i,version:r,ref:o,type:n="API"},a)=>{ql((()=>Zo(a)),(e=>{}),{immediate:!0})},Nh=(e,t,i)=>{let r={offsetX:0,offsetY:0};const o=t=>{const i=t.clientX,o=t.clientY,{offsetX:n,offsetY:a}=r,s=e.value.getBoundingClientRect(),l=s.left,c=s.top,u=s.width,d=s.height,p=document.documentElement.clientWidth,h=document.documentElement.clientHeight,f=-l+n,m=-c+a,g=p-l-u+n,v=h-c-d+a,_=t=>{const s=Math.min(Math.max(n+t.clientX-i,f),g),l=Math.min(Math.max(a+t.clientY-o,m),v);r={offsetX:s,offsetY:l},e.value.style.transform=`translate(${lp(s)}, ${lp(l)})`},b=()=>{document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",b)};document.addEventListener("mousemove",_),document.addEventListener("mouseup",b)},n=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",o)};Ca((()=>{Gl((()=>{i.value?t.value&&e.value&&t.value.addEventListener("mousedown",o):n()}))})),Ea((()=>{n()}))},Bh=(e,t,i,r,o)=>{let n=`${e}-${t}`;return i&&(n+=`-${i}`),r&&(n+=`__${r}`),o&&(n+=`--${o}`),n},jh=e=>{const t=Ih("namespace","el");return{namespace:t,b:(i="")=>Bh(t.value,e,i,"",""),e:i=>i?Bh(t.value,e,"",i,""):"",m:i=>i?Bh(t.value,e,"","",i):"",be:(i,r)=>i&&r?Bh(t.value,e,i,r,""):"",em:(i,r)=>i&&r?Bh(t.value,e,"",i,r):"",bm:(i,r)=>i&&r?Bh(t.value,e,i,"",r):"",bem:(i,r,o)=>i&&r&&o?Bh(t.value,e,i,r,o):"",is:(e,...t)=>{const i=!(t.length>=1)||t[0];return e&&i?`is-${e}`:""},cssVar:e=>{const i={};for(const r in e)e[r]&&(i[`--${t.value}-${r}`]=e[r]);return i},cssVarName:e=>`--${t.value}-${e}`,cssVarBlock:i=>{const r={};for(const o in i)i[o]&&(r[`--${t.value}-${e}-${o}`]=i[o]);return r},cssVarBlockName:i=>`--${t.value}-${e}-${i}`}},Uh={prefix:Math.floor(1e4*Math.random()),current:0},Fh=Symbol("elIdInjection"),zh=e=>{const t=oa(Fh,Uh),i=Ih("namespace","el");return rn((()=>Zo(e)||`${i.value}-id-${t.prefix}-${t.current++}`))},Hh=()=>({form:oa(Ch,void 0),formItem:oa(kh,void 0)}),Wh=(e,{formItemContext:t,disableIdGeneration:i,disableIdManagement:r})=>{i||(i=Go(!1)),r||(r=Go(!1));const o=Go();let n;const a=rn((()=>{var i;return!!(!e.label&&t&&t.inputIds&&(null==(i=t.inputIds)?void 0:i.length)<=1)}));return Ca((()=>{n=ql([en(e,"id"),i],(([e,i])=>{const n=null!=e?e:i?void 0:zh().value;n!==o.value&&((null==t?void 0:t.removeInputId)&&(o.value&&t.removeInputId(o.value),(null==r?void 0:r.value)||i||!n||t.addInputId(n)),o.value=n)}),{immediate:!0})})),Aa((()=>{n&&n(),(null==t?void 0:t.removeInputId)&&o.value&&t.removeInputId(o.value)})),{isLabeledByFormItem:a,inputId:o}};var Vh={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const Gh=e=>(t,i)=>Yh(t,i,Zo(e)),Yh=(e,t,i)=>hd(i,e,e).replace(/\{(\w+)\}/g,((e,i)=>{var r;return`${null!=(r=null==t?void 0:t[i])?r:`{${i}}`}`})),qh=()=>{const e=Ih("locale");return(e=>({lang:rn((()=>Zo(e).name)),locale:Vo(e)?e:Go(e),t:Gh(e)}))(rn((()=>e.value||Vh)))},Qh=e=>{Vo(e)||function(e,t){throw new np(`[${e}] ${t}`)}("[useLockscreen]","You need to pass a ref param to this function");const t=jh("popup"),i=rn((()=>t.bm("parent","hidden")));if(!xd||sp(document.body,i.value))return;let r=0,o=!1,n="0";const a=()=>{var e,t;e=document.body,t=i.value,e&&t.trim()&&e.classList.remove(...ap(t)),o&&(document.body.style.width=n)};ql(e,(e=>{if(!e)return void a();o=!sp(document.body,i.value),o&&(n=document.body.style.width),r=(e=>{var t;if(!xd)return 0;if(void 0!==cp)return cp;const i=document.createElement("div");i.className=`${e}-scrollbar__wrap`,i.style.visibility="hidden",i.style.width="100px",i.style.position="absolute",i.style.top="-9999px",document.body.appendChild(i);const r=i.offsetWidth;i.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",i.appendChild(o);const n=o.offsetWidth;return null==(t=i.parentNode)||t.removeChild(i),cp=r-n,cp})(t.namespace.value);const s=document.documentElement.clientHeight{var i;if(!xd||!e||!t)return"";let r=tp(t);"float"===r&&(r="cssFloat");try{const t=e.style[r];if(t)return t;const o=null==(i=document.defaultView)?void 0:i.getComputedStyle(e,"");return o?o[r]:""}catch(o){return e.style[r]}})(document.body,"overflowY");var c,u;r>0&&(s||"scroll"===l)&&o&&(document.body.style.width=`calc(100% - ${r}px)`),c=document.body,u=i.value,c&&u.trim()&&c.classList.add(...ap(u))})),Tr((()=>a()))},Zh=nh({type:Boolean,default:null}),Xh=nh({type:Function}),Kh=e=>{if(!e)return{onClick:qd,onMousedown:qd,onMouseup:qd};let t=!1,i=!1;return{onClick:r=>{t&&i&&e(r),t=i=!1},onMousedown:e=>{t=e.target===e.currentTarget},onMouseup:e=>{i=e.target===e.currentTarget}}};let Jh=[];const $h=e=>{const t=e;t.key===mh&&Jh.forEach((e=>e(t)))};let ef;const tf=`el-popper-container-${Math.floor(1e4*Math.random())}`,rf=`#${tf}`,of=()=>{xa((()=>{xd&&(ef&&document.body.querySelector(rf)||(ef=(()=>{const e=document.createElement("div");return e.id=tf,document.body.appendChild(e),e})()))}))},nf=ah({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),af=({showAfter:e,hideAfter:t,open:i,close:r})=>{const{registerTimeout:o}=function(){let e;const t=()=>window.clearTimeout(e);return Ad((()=>t())),{registerTimeout:(i,r)=>{t(),e=window.setTimeout(i,r)},cancelTimeout:t}}();return{onOpen:t=>{o((()=>{i(t)}),Zo(e))},onClose:e=>{o((()=>{r(e)}),Zo(t))}}},sf=Symbol("elForwardRef"),lf=Go(0),cf=()=>{const e=Ih("zIndex",2e3),t=rn((()=>e.value+lf.value));return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(lf.value++,t.value)}};var uf=(e,t)=>{const i=e.__vccOpts||e;for(const[r,o]of t)i[r]=o;return i};const df=ah({size:{type:[Number,String]},color:{type:String}});const pf=uh(uf(ha(u(c({},{name:"ElIcon",inheritAttrs:!1}),{props:df,setup(e){const t=e,i=jh("icon"),r=rn((()=>{const{size:e,color:i}=t;return e||i?{fontSize:ip(e)?void 0:lp(e),"--color":i}:{}}));return(e,t)=>(Ss(),Ds("i",qs({class:Zo(i).b(),style:Zo(r)},e.$attrs),[Ks(e.$slots,"default")],16))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]));let hf;const ff=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function mf(e,t=1,i){var r;hf||(hf=document.createElement("textarea"),document.body.appendChild(hf));const{paddingSize:o,borderSize:n,boxSizing:a,contextStyle:s}=function(e){const t=window.getComputedStyle(e),i=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:ff.map((e=>`${e}:${t.getPropertyValue(e)}`)).join(";"),paddingSize:r,borderSize:o,boxSizing:i}}(e);hf.setAttribute("style",`${s};\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n`),hf.value=e.value||e.placeholder||"";let l=hf.scrollHeight;const c={};"border-box"===a?l+=n:"content-box"===a&&(l-=o),hf.value="";const u=hf.scrollHeight-o;if(kd(t)){let e=u*t;"border-box"===a&&(e=e+o+n),l=Math.max(e,l),c.minHeight=`${e}px`}if(kd(i)){let e=u*i;"border-box"===a&&(e=e+o+n),l=Math.min(e,l)}return c.height=`${l}px`,null==(r=hf.parentNode)||r.removeChild(hf),hf=void 0,c}const gf=ah({id:{type:String,default:void 0},size:Dh,disabled:Boolean,modelValue:{type:[String,Number,Object],default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String,default:""},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:sh},prefixIcon:{type:sh},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:[Object,Array,String],default:()=>({})}}),vf={"update:modelValue":e=>Jd(e),input:e=>Jd(e),change:e=>Jd(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},_f=["role"],bf=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder"],yf=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder"];const wf=uh(uf(ha(u(c({},{name:"ElInput",inheritAttrs:!1}),{props:gf,emits:vf,setup(e,{expose:t,emit:i}){const r=e,o={suffix:"append",prefix:"prepend"},n=nl(),a=$l().attrs,s=Jl(),l=rn((()=>{const e={};return"combobox"===r.containerRole&&(e["aria-haspopup"]=a["aria-haspopup"],e["aria-owns"]=a["aria-owns"],e["aria-expanded"]=a["aria-expanded"]),e})),u=((e={})=>{const{excludeListeners:t=!1,excludeKeys:i}=e,r=rn((()=>((null==i?void 0:i.value)||[]).concat(_h))),o=nl();return rn(o?()=>{var e;return _d(Object.entries(null==(e=o.proxy)?void 0:e.$attrs).filter((([e])=>!(r.value.includes(e)||t&&bh.test(e)))))}:()=>({}))})({excludeKeys:rn((()=>Object.keys(l.value)))}),{form:d,formItem:p}=Hh(),{inputId:h}=Wh(r,{formItemContext:p}),f=Lh(),m=Oh(),g=jh("input"),v=jh("textarea"),_=Yo(),b=Yo(),y=Go(!1),w=Go(!1),x=Go(!1),C=Go(!1),k=Go(),T=Yo(r.inputStyle),E=rn((()=>_.value||b.value)),A=rn((()=>{var e;return null!=(e=null==d?void 0:d.statusIcon)&&e})),S=rn((()=>(null==p?void 0:p.validateState)||"")),P=rn((()=>S.value&&ch[S.value])),I=rn((()=>C.value?oh:Hp)),M=rn((()=>[a.style,r.inputStyle])),D=rn((()=>[r.inputStyle,T.value,{resize:r.resize}])),L=rn((()=>bd(r.modelValue)?"":String(r.modelValue))),O=rn((()=>r.clearable&&!m.value&&!r.readonly&&!!L.value&&(y.value||w.value))),R=rn((()=>r.showPassword&&!m.value&&!r.readonly&&!!L.value&&(!!L.value||y.value))),N=rn((()=>r.showWordLimit&&!!u.value.maxlength&&("text"===r.type||"textarea"===r.type)&&!m.value&&!r.readonly&&!r.showPassword)),B=rn((()=>Array.from(L.value).length)),j=rn((()=>!!N.value&&B.value>Number(u.value.maxlength))),U=rn((()=>!!s.suffix||!!r.suffixIcon||O.value||r.showPassword||N.value||!!S.value&&A.value)),[F,z]=function(e){const t=Go();return[function(){if(null==e.value)return;const{selectionStart:i,selectionEnd:r,value:o}=e.value;if(null==i||null==r)return;const n=o.slice(0,Math.max(0,i)),a=o.slice(Math.max(0,r));t.value={selectionStart:i,selectionEnd:r,value:o,beforeTxt:n,afterTxt:a}},function(){if(null==e.value||null==t.value)return;const{value:i}=e.value,{beforeTxt:r,afterTxt:o,selectionStart:n}=t.value;if(null==r||null==o||null==n)return;let a=i.length;if(i.endsWith(o))a=i.length-o.length;else if(i.startsWith(r))a=r.length;else{const e=r[n-1],t=i.indexOf(e,n-1);-1!==t&&(a=t+1)}e.value.setSelectionRange(a,a)}]}(_);Fd(b,(e=>{if(!N.value||"both"!==r.resize)return;const t=e[0],{width:i}=t.contentRect;k.value={right:`calc(100% - ${i+15+6}px)`}}));const H=()=>{const{type:e,autosize:t}=r;if(xd&&"textarea"===e)if(t){const e=$d(t)?t.minRows:void 0,i=$d(t)?t.maxRows:void 0;T.value=c({},mf(b.value,e,i))}else T.value={minHeight:mf(b.value).minHeight}},W=()=>{const e=E.value;e&&e.value!==L.value&&(e.value=L.value)},V=e=>{const{el:t}=n.vnode;if(!t)return;const i=Array.from(t.querySelectorAll(`.${g.e(e)}`)).find((e=>e.parentNode===t));if(!i)return;const r=o[e];s[r]?i.style.transform=`translateX(${"suffix"===e?"-":""}${t.querySelector(`.${g.be("group",r)}`).offsetWidth}px)`:i.removeAttribute("style")},G=()=>{V("prefix"),V("suffix")},Y=async e=>{F();let{value:t}=e.target;r.formatter&&(t=r.parser?r.parser(t):t,t=r.formatter(t)),x.value||(t!==L.value?(i("update:modelValue",t),i("input",t),await Bl(),W(),z()):W())},q=e=>{i("change",e.target.value)},Q=e=>{i("compositionstart",e),x.value=!0},Z=e=>{var t;i("compositionupdate",e);const r=null==(t=e.target)?void 0:t.value,o=r[r.length-1]||"";x.value=!(e=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e))(o)},X=e=>{i("compositionend",e),x.value&&(x.value=!1,Y(e))},K=()=>{C.value=!C.value,J()},J=async()=>{var e;await Bl(),null==(e=E.value)||e.focus()},$=e=>{y.value=!0,i("focus",e)},ee=e=>{var t;y.value=!1,i("blur",e),r.validateEvent&&(null==(t=null==p?void 0:p.validate)||t.call(p,"blur").catch((e=>{})))},te=e=>{w.value=!1,i("mouseleave",e)},ie=e=>{w.value=!0,i("mouseenter",e)},re=e=>{i("keydown",e)},oe=()=>{i("update:modelValue",""),i("change",""),i("clear"),i("input","")};return ql((()=>r.modelValue),(()=>{var e;Bl((()=>H())),r.validateEvent&&(null==(e=null==p?void 0:p.validate)||e.call(p,"change").catch((e=>{})))})),ql(L,(()=>W())),ql((()=>r.type),(async()=>{await Bl(),W(),H(),G()})),Ca((async()=>{!r.formatter&&r.parser,W(),G(),await Bl(),H()})),Ta((async()=>{await Bl(),G()})),t({input:_,textarea:b,ref:E,textareaStyle:D,autosize:en(r,"autosize"),focus:J,blur:()=>{var e;return null==(e=E.value)?void 0:e.blur()},select:()=>{var e;null==(e=E.value)||e.select()},clear:oe,resizeTextarea:H}),(e,t)=>is((Ss(),Ds("div",qs(Zo(l),{class:["textarea"===e.type?Zo(v).b():Zo(g).b(),Zo(g).m(Zo(f)),Zo(g).is("disabled",Zo(m)),Zo(g).is("exceed",Zo(j)),{[Zo(g).b("group")]:e.$slots.prepend||e.$slots.append,[Zo(g).bm("group","append")]:e.$slots.append,[Zo(g).bm("group","prepend")]:e.$slots.prepend,[Zo(g).m("prefix")]:e.$slots.prefix||e.prefixIcon,[Zo(g).m("suffix")]:e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword,[Zo(g).bm("suffix","password-clear")]:Zo(O)&&Zo(R)},e.$attrs.class],style:Zo(M),role:e.containerRole,onMouseenter:ie,onMouseleave:te}),[Ws(" input "),"textarea"!==e.type?(Ss(),Ds(xs,{key:0},[Ws(" prepend slot "),e.$slots.prepend?(Ss(),Ds("div",{key:0,class:cn(Zo(g).be("group","prepend"))},[Ks(e.$slots,"prepend")],2)):Ws("v-if",!0),Us("div",{class:cn([Zo(g).e("wrapper"),Zo(g).is("focus",y.value)])},[Ws(" prefix slot "),e.$slots.prefix||e.prefixIcon?(Ss(),Ds("span",{key:0,class:cn(Zo(g).e("prefix"))},[Us("span",{class:cn(Zo(g).e("prefix-inner"))},[Ks(e.$slots,"prefix"),e.prefixIcon?(Ss(),Ls(Zo(pf),{key:0,class:cn(Zo(g).e("icon"))},{default:Jn((()=>[(Ss(),Ls(bs(e.prefixIcon)))])),_:1},8,["class"])):Ws("v-if",!0)],2)],2)):Ws("v-if",!0),Us("input",qs({id:Zo(h),ref_key:"input",ref:_,class:Zo(g).e("inner")},Zo(u),{type:e.showPassword?C.value?"text":"password":e.type,disabled:Zo(m),formatter:e.formatter,parser:e.parser,readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.label,placeholder:e.placeholder,style:e.inputStyle,onCompositionstart:Q,onCompositionupdate:Z,onCompositionend:X,onInput:Y,onFocus:$,onBlur:ee,onChange:q,onKeydown:re}),null,16,bf),Ws(" suffix slot "),Zo(U)?(Ss(),Ds("span",{key:1,class:cn(Zo(g).e("suffix"))},[Us("span",{class:cn(Zo(g).e("suffix-inner"))},[Zo(O)&&Zo(R)&&Zo(N)?Ws("v-if",!0):(Ss(),Ds(xs,{key:0},[Ks(e.$slots,"suffix"),e.suffixIcon?(Ss(),Ls(Zo(pf),{key:0,class:cn(Zo(g).e("icon"))},{default:Jn((()=>[(Ss(),Ls(bs(e.suffixIcon)))])),_:1},8,["class"])):Ws("v-if",!0)],64)),Zo(O)?(Ss(),Ls(Zo(pf),{key:1,class:cn([Zo(g).e("icon"),Zo(g).e("clear")]),onMousedown:tu(Zo(qd),["prevent"]),onClick:oe},{default:Jn((()=>[Fs(Zo(Ep))])),_:1},8,["class","onMousedown"])):Ws("v-if",!0),Zo(R)?(Ss(),Ls(Zo(pf),{key:2,class:cn([Zo(g).e("icon"),Zo(g).e("password")]),onClick:K},{default:Jn((()=>[(Ss(),Ls(bs(Zo(I))))])),_:1},8,["class"])):Ws("v-if",!0),Zo(N)?(Ss(),Ds("span",{key:3,class:cn(Zo(g).e("count"))},[Us("span",{class:cn(Zo(g).e("count-inner"))},un(Zo(B))+" / "+un(Zo(u).maxlength),3)],2)):Ws("v-if",!0),Zo(S)&&Zo(P)&&Zo(A)?(Ss(),Ls(Zo(pf),{key:4,class:cn([Zo(g).e("icon"),Zo(g).e("validateIcon"),Zo(g).is("loading","validating"===Zo(S))])},{default:Jn((()=>[(Ss(),Ls(bs(Zo(P))))])),_:1},8,["class"])):Ws("v-if",!0)],2)],2)):Ws("v-if",!0)],2),Ws(" append slot "),e.$slots.append?(Ss(),Ds("div",{key:1,class:cn(Zo(g).be("group","append"))},[Ks(e.$slots,"append")],2)):Ws("v-if",!0)],64)):(Ss(),Ds(xs,{key:1},[Ws(" textarea "),Us("textarea",qs({id:Zo(h),ref_key:"textarea",ref:b,class:Zo(v).e("inner")},Zo(u),{tabindex:e.tabindex,disabled:Zo(m),readonly:e.readonly,autocomplete:e.autocomplete,style:Zo(D),"aria-label":e.label,placeholder:e.placeholder,onCompositionstart:Q,onCompositionupdate:Z,onCompositionend:X,onInput:Y,onFocus:$,onBlur:ee,onChange:q,onKeydown:re}),null,16,yf),Zo(N)?(Ss(),Ds("span",{key:0,style:nn(k.value),class:cn(Zo(g).e("count"))},un(Zo(B))+" / "+un(Zo(u).maxlength),7)):Ws("v-if",!0)],64))],16,_f)),[[ou,"hidden"!==e.type]])}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]])),xf=ah({role:{type:String,values:["dialog","grid","listbox","menu","tooltip","tree"],default:"tooltip"}});var Cf=uf(ha(u(c({},{name:"ElPopperRoot",inheritAttrs:!1}),{props:xf,setup(e,{expose:t}){const i=e,r={triggerRef:Go(),popperInstanceRef:Go(),contentRef:Go(),referenceRef:Go(),role:rn((()=>i.role))};return t(r),ra(Eh,r),(e,t)=>Ks(e.$slots,"default")}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const kf=ah({arrowOffset:{type:Number,default:5}});var Tf=uf(ha(u(c({},{name:"ElPopperArrow",inheritAttrs:!1}),{props:kf,setup(e,{expose:t}){const i=e,r=jh("popper"),{arrowOffset:o,arrowRef:n}=oa(Ah,void 0);return ql((()=>i.arrowOffset),(e=>{o.value=e})),Ea((()=>{n.value=void 0})),t({arrowRef:n}),(e,t)=>(Ss(),Ds("span",{ref_key:"arrowRef",ref:n,class:cn(Zo(r).e("arrow")),"data-popper-arrow":""},null,2))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const Ef=ha({name:"ElOnlyChild",setup(e,{slots:t,attrs:i}){var r;const o=oa(sf),n=(a=null!=(r=null==o?void 0:o.setForwardRef)?r:qd,{mounted(e){a(e)},updated(e){a(e)},unmounted(){a(null)}});var a;return()=>{var e;const r=null==(e=t.default)?void 0:e.call(t,i);if(!r)return null;if(r.length>1)return null;const o=Af(r);return o?is(zs(o,i),[[n]]):null}}});function Af(e){if(!e)return null;const t=e;for(const i of t){if($d(i))switch(i.type){case ks:continue;case Cs:case"svg":return Sf(i);case xs:return Af(i.children);default:return i}return Sf(i)}return null}function Sf(e){const t=jh("only-child");return Fs("span",{class:t.e("content")},[e])}const Pf=ah({virtualRef:{type:Object},virtualTriggering:Boolean,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,onBlur:Function,onContextmenu:Function,id:String,open:Boolean});var If=uf(ha(u(c({},{name:"ElPopperTrigger",inheritAttrs:!1}),{props:Pf,setup(e,{expose:t}){const i=e,{role:r,triggerRef:o}=oa(Eh,void 0);var n;n=o,ra(sf,{setForwardRef:e=>{n.value=e}});const a=rn((()=>l.value?i.id:void 0)),s=rn((()=>{if(r&&"tooltip"===r.value)return i.open&&i.id?i.id:void 0})),l=rn((()=>{if(r&&"tooltip"!==r.value)return r.value})),c=rn((()=>l.value?`${i.open}`:void 0));let u;return Ca((()=>{ql((()=>i.virtualRef),(e=>{e&&(o.value=Pd(e))}),{immediate:!0}),ql((()=>o.value),((e,t)=>{null==u||u(),u=void 0,rp(e)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach((r=>{var o;const n=i[r];n&&(e.addEventListener(r.slice(2).toLowerCase(),n),null==(o=null==t?void 0:t.removeEventListener)||o.call(t,r.slice(2).toLowerCase(),n))})),u=ql([a,s,l,c],(t=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(((i,r)=>{bd(t[r])?e.removeAttribute(i):e.setAttribute(i,t[r])}))}),{immediate:!0})),rp(t)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((e=>t.removeAttribute(e)))}),{immediate:!0})})),Ea((()=>{null==u||u(),u=void 0})),t({triggerRef:o}),(e,t)=>e.virtualTriggering?Ws("v-if",!0):(Ss(),Ls(Zo(Ef),qs({key:0},e.$attrs,{"aria-controls":Zo(a),"aria-describedby":Zo(s),"aria-expanded":Zo(c),"aria-haspopup":Zo(l)}),{default:Jn((()=>[Ks(e.$slots,"default")])),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]),Mf="top",Df="bottom",Lf="right",Of="left",Rf="auto",Nf=[Mf,Df,Lf,Of],Bf="start",jf="end",Uf="viewport",Ff="popper",zf=Nf.reduce((function(e,t){return e.concat([t+"-"+Bf,t+"-"+jf])}),[]),Hf=[].concat(Nf,[Rf]).reduce((function(e,t){return e.concat([t,t+"-"+Bf,t+"-"+jf])}),[]),Wf=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Vf(e){return e?(e.nodeName||"").toLowerCase():null}function Gf(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Yf(e){return e instanceof Gf(e).Element||e instanceof Element}function qf(e){return e instanceof Gf(e).HTMLElement||e instanceof HTMLElement}function Qf(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Gf(e).ShadowRoot||e instanceof ShadowRoot)}var Zf={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];!qf(o)||!Vf(o)||(Object.assign(o.style,i),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},n=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});!qf(r)||!Vf(r)||(Object.assign(r.style,n),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Xf(e){return e.split("-")[0]}var Kf=Math.max,Jf=Math.min,$f=Math.round;function em(e,t){void 0===t&&(t=!1);var i=e.getBoundingClientRect(),r=1,o=1;if(qf(e)&&t){var n=e.offsetHeight,a=e.offsetWidth;a>0&&(r=$f(i.width)/a||1),n>0&&(o=$f(i.height)/n||1)}return{width:i.width/r,height:i.height/o,top:i.top/o,right:i.right/r,bottom:i.bottom/o,left:i.left/r,x:i.left/r,y:i.top/o}}function tm(e){var t=em(e),i=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:r}}function im(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&Qf(i)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function rm(e){return Gf(e).getComputedStyle(e)}function om(e){return["table","td","th"].indexOf(Vf(e))>=0}function nm(e){return((Yf(e)?e.ownerDocument:e.document)||window.document).documentElement}function am(e){return"html"===Vf(e)?e:e.assignedSlot||e.parentNode||(Qf(e)?e.host:null)||nm(e)}function sm(e){return qf(e)&&"fixed"!==rm(e).position?e.offsetParent:null}function lm(e){for(var t=Gf(e),i=sm(e);i&&om(i)&&"static"===rm(i).position;)i=sm(i);return i&&("html"===Vf(i)||"body"===Vf(i)&&"static"===rm(i).position)?t:i||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&qf(e)&&"fixed"===rm(e).position)return null;var i=am(e);for(Qf(i)&&(i=i.host);qf(i)&&["html","body"].indexOf(Vf(i))<0;){var r=rm(i);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return i;i=i.parentNode}return null}(e)||t}function cm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function um(e,t,i){return Kf(e,Jf(t,i))}function dm(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function pm(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}var hm={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,r=e.name,o=e.options,n=i.elements.arrow,a=i.modifiersData.popperOffsets,s=Xf(i.placement),l=cm(s),c=[Of,Lf].indexOf(s)>=0?"height":"width";if(n&&a){var u=function(e,t){return dm("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:pm(e,Nf))}(o.padding,i),d=tm(n),p="y"===l?Mf:Of,h="y"===l?Df:Lf,f=i.rects.reference[c]+i.rects.reference[l]-a[l]-i.rects.popper[c],m=a[l]-i.rects.reference[l],g=lm(n),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,_=f/2-m/2,b=u[p],y=v-d[c]-u[h],w=v/2-d[c]/2+_,x=um(b,w,y),C=l;i.modifiersData[r]=((t={})[C]=x,t.centerOffset=x-w,t)}},effect:function(e){var t=e.state,i=e.options.element,r=void 0===i?"[data-popper-arrow]":i;null!=r&&("string"==typeof r&&!(r=t.elements.popper.querySelector(r))||!im(t.elements.popper,r)||(t.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fm(e){return e.split("-")[1]}var mm={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gm(e){var t,i=e.popper,r=e.popperRect,o=e.placement,n=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,h=void 0===p?0:p,f=a.y,m=void 0===f?0:f,g="function"==typeof u?u({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var v=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),b=Of,y=Mf,w=window;if(c){var x=lm(i),C="clientHeight",k="clientWidth";if(x===Gf(i)&&("static"!==rm(x=nm(i)).position&&"absolute"===s&&(C="scrollHeight",k="scrollWidth")),x=x,o===Mf||(o===Of||o===Lf)&&n===jf)y=Df,m-=(d&&x===w&&w.visualViewport?w.visualViewport.height:x[C])-r.height,m*=l?1:-1;if(o===Of||(o===Mf||o===Df)&&n===jf)b=Lf,h-=(d&&x===w&&w.visualViewport?w.visualViewport.width:x[k])-r.width,h*=l?1:-1}var T,E=Object.assign({position:s},c&&mm),A=!0===u?function(e){var t=e.x,i=e.y,r=window.devicePixelRatio||1;return{x:$f(t*r)/r||0,y:$f(i*r)/r||0}}({x:h,y:m}):{x:h,y:m};return h=A.x,m=A.y,l?Object.assign({},E,((T={})[y]=_?"0":"",T[b]=v?"0":"",T.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",T)):Object.assign({},E,((t={})[y]=_?m+"px":"",t[b]=v?h+"px":"",t.transform="",t))}var vm={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,r=i.gpuAcceleration,o=void 0===r||r,n=i.adaptive,a=void 0===n||n,s=i.roundOffsets,l=void 0===s||s,c={placement:Xf(t.placement),variation:fm(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,gm(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,gm(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},_m={passive:!0};var bm={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,r=e.options,o=r.scroll,n=void 0===o||o,a=r.resize,s=void 0===a||a,l=Gf(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return n&&c.forEach((function(e){e.addEventListener("scroll",i.update,_m)})),s&&l.addEventListener("resize",i.update,_m),function(){n&&c.forEach((function(e){e.removeEventListener("scroll",i.update,_m)})),s&&l.removeEventListener("resize",i.update,_m)}},data:{}},ym={left:"right",right:"left",bottom:"top",top:"bottom"};function wm(e){return e.replace(/left|right|bottom|top/g,(function(e){return ym[e]}))}var xm={start:"end",end:"start"};function Cm(e){return e.replace(/start|end/g,(function(e){return xm[e]}))}function km(e){var t=Gf(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Tm(e){return em(nm(e)).left+km(e).scrollLeft}function Em(e){var t=rm(e),i=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+o+r)}function Am(e){return["html","body","#document"].indexOf(Vf(e))>=0?e.ownerDocument.body:qf(e)&&Em(e)?e:Am(am(e))}function Sm(e,t){var i;void 0===t&&(t=[]);var r=Am(e),o=r===(null==(i=e.ownerDocument)?void 0:i.body),n=Gf(r),a=o?[n].concat(n.visualViewport||[],Em(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Sm(am(a)))}function Pm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Im(e,t){return t===Uf?Pm(function(e){var t=Gf(e),i=nm(e),r=t.visualViewport,o=i.clientWidth,n=i.clientHeight,a=0,s=0;return r&&(o=r.width,n=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:n,x:a+Tm(e),y:s}}(e)):Yf(t)?function(e){var t=em(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Pm(function(e){var t,i=nm(e),r=km(e),o=null==(t=e.ownerDocument)?void 0:t.body,n=Kf(i.scrollWidth,i.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Kf(i.scrollHeight,i.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Tm(e),l=-r.scrollTop;return"rtl"===rm(o||i).direction&&(s+=Kf(i.clientWidth,o?o.clientWidth:0)-n),{width:n,height:a,x:s,y:l}}(nm(e)))}function Mm(e,t,i){var r="clippingParents"===t?function(e){var t=Sm(am(e)),i=["absolute","fixed"].indexOf(rm(e).position)>=0&&qf(e)?lm(e):e;return Yf(i)?t.filter((function(e){return Yf(e)&&im(e,i)&&"body"!==Vf(e)})):[]}(e):[].concat(t),o=[].concat(r,[i]),n=o[0],a=o.reduce((function(t,i){var r=Im(e,i);return t.top=Kf(r.top,t.top),t.right=Jf(r.right,t.right),t.bottom=Jf(r.bottom,t.bottom),t.left=Kf(r.left,t.left),t}),Im(e,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Dm(e){var t,i=e.reference,r=e.element,o=e.placement,n=o?Xf(o):null,a=o?fm(o):null,s=i.x+i.width/2-r.width/2,l=i.y+i.height/2-r.height/2;switch(n){case Mf:t={x:s,y:i.y-r.height};break;case Df:t={x:s,y:i.y+i.height};break;case Lf:t={x:i.x+i.width,y:l};break;case Of:t={x:i.x-r.width,y:l};break;default:t={x:i.x,y:i.y}}var c=n?cm(n):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Bf:t[c]=t[c]-(i[u]/2-r[u]/2);break;case jf:t[c]=t[c]+(i[u]/2-r[u]/2)}}return t}function Lm(e,t){void 0===t&&(t={});var i=t,r=i.placement,o=void 0===r?e.placement:r,n=i.boundary,a=void 0===n?"clippingParents":n,s=i.rootBoundary,l=void 0===s?Uf:s,c=i.elementContext,u=void 0===c?Ff:c,d=i.altBoundary,p=void 0!==d&&d,h=i.padding,f=void 0===h?0:h,m=dm("number"!=typeof f?f:pm(f,Nf)),g=u===Ff?"reference":Ff,v=e.rects.popper,_=e.elements[p?g:u],b=Mm(Yf(_)?_:_.contextElement||nm(e.elements.popper),a,l),y=em(e.elements.reference),w=Dm({reference:y,element:v,strategy:"absolute",placement:o}),x=Pm(Object.assign({},v,w)),C=u===Ff?x:y,k={top:b.top-C.top+m.top,bottom:C.bottom-b.bottom+m.bottom,left:b.left-C.left+m.left,right:C.right-b.right+m.right},T=e.modifiersData.offset;if(u===Ff&&T){var E=T[o];Object.keys(k).forEach((function(e){var t=[Lf,Df].indexOf(e)>=0?1:-1,i=[Mf,Df].indexOf(e)>=0?"y":"x";k[e]+=E[i]*t}))}return k}var Om={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=i.mainAxis,n=void 0===o||o,a=i.altAxis,s=void 0===a||a,l=i.fallbackPlacements,c=i.padding,u=i.boundary,d=i.rootBoundary,p=i.altBoundary,h=i.flipVariations,f=void 0===h||h,m=i.allowedAutoPlacements,g=t.options.placement,v=Xf(g),_=l||(v===g||!f?[wm(g)]:function(e){if(Xf(e)===Rf)return[];var t=wm(e);return[Cm(e),t,Cm(t)]}(g)),b=[g].concat(_).reduce((function(e,i){return e.concat(Xf(i)===Rf?function(e,t){void 0===t&&(t={});var i=t,r=i.placement,o=i.boundary,n=i.rootBoundary,a=i.padding,s=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?Hf:l,u=fm(r),d=u?s?zf:zf.filter((function(e){return fm(e)===u})):Nf,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var h=p.reduce((function(t,i){return t[i]=Lm(e,{placement:i,boundary:o,rootBoundary:n,padding:a})[Xf(i)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:i,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:m}):i)}),[]),y=t.rects.reference,w=t.rects.popper,x=new Map,C=!0,k=b[0],T=0;T=0,I=P?"width":"height",M=Lm(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),D=P?S?Lf:Of:S?Df:Mf;y[I]>w[I]&&(D=wm(D));var L=wm(D),O=[];if(n&&O.push(M[A]<=0),s&&O.push(M[D]<=0,M[L]<=0),O.every((function(e){return e}))){k=E,C=!1;break}x.set(E,O)}if(C)for(var R=function(e){var t=b.find((function(t){var i=x.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},N=f?3:1;N>0;N--){if("break"===R(N))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Rm(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function Nm(e){return[Mf,Lf,Df,Of].some((function(t){return e[t]>=0}))}var Bm={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,r=t.rects.reference,o=t.rects.popper,n=t.modifiersData.preventOverflow,a=Lm(t,{elementContext:"reference"}),s=Lm(t,{altBoundary:!0}),l=Rm(a,r),c=Rm(s,o,n),u=Nm(l),d=Nm(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};var jm={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,r=e.name,o=i.offset,n=void 0===o?[0,0]:o,a=Hf.reduce((function(e,i){return e[i]=function(e,t,i){var r=Xf(e),o=[Of,Mf].indexOf(r)>=0?-1:1,n="function"==typeof i?i(Object.assign({},t,{placement:e})):i,a=n[0],s=n[1];return a=a||0,s=(s||0)*o,[Of,Lf].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(i,t.rects,n),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var Um={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=Dm({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var Fm={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,r=e.name,o=i.mainAxis,n=void 0===o||o,a=i.altAxis,s=void 0!==a&&a,l=i.boundary,c=i.rootBoundary,u=i.altBoundary,d=i.padding,p=i.tether,h=void 0===p||p,f=i.tetherOffset,m=void 0===f?0:f,g=Lm(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=Xf(t.placement),_=fm(t.placement),b=!_,y=cm(v),w=function(e){return"x"===e?"y":"x"}(y),x=t.modifiersData.popperOffsets,C=t.rects.reference,k=t.rects.popper,T="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,E="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(x){if(n){var P,I="y"===y?Mf:Of,M="y"===y?Df:Lf,D="y"===y?"height":"width",L=x[y],O=L+g[I],R=L-g[M],N=h?-k[D]/2:0,B=_===Bf?C[D]:k[D],j=_===Bf?-k[D]:-C[D],U=t.elements.arrow,F=h&&U?tm(U):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=z[I],W=z[M],V=um(0,C[D],F[D]),G=b?C[D]/2-N-V-H-E.mainAxis:B-V-H-E.mainAxis,Y=b?-C[D]/2+N+V+W+E.mainAxis:j+V+W+E.mainAxis,q=t.elements.arrow&&lm(t.elements.arrow),Q=q?"y"===y?q.clientTop||0:q.clientLeft||0:0,Z=null!=(P=null==A?void 0:A[y])?P:0,X=L+Y-Z,K=um(h?Jf(O,L+G-Z-Q):O,L,h?Kf(R,X):R);x[y]=K,S[y]=K-L}if(s){var J,$="x"===y?Mf:Of,ee="x"===y?Df:Lf,te=x[w],ie="y"===w?"height":"width",re=te+g[$],oe=te-g[ee],ne=-1!==[Mf,Of].indexOf(v),ae=null!=(J=null==A?void 0:A[w])?J:0,se=ne?re:te-C[ie]-k[ie]-ae+E.altAxis,le=ne?te+C[ie]+k[ie]-ae-E.altAxis:oe,ce=h&&ne?function(e,t,i){var r=um(e,t,i);return r>i?i:r}(se,te,le):um(h?se:re,te,h?le:oe);x[w]=ce,S[w]=ce-te}t.modifiersData[r]=S}},requiresIfExists:["offset"]};function zm(e,t,i){void 0===i&&(i=!1);var r=qf(t),o=qf(t)&&function(e){var t=e.getBoundingClientRect(),i=$f(t.width)/e.offsetWidth||1,r=$f(t.height)/e.offsetHeight||1;return 1!==i||1!==r}(t),n=nm(t),a=em(e,o),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!i)&&(("body"!==Vf(t)||Em(n))&&(s=function(e){return e!==Gf(e)&&qf(e)?function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):km(e)}(t)),qf(t)?((l=em(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):n&&(l.x=Tm(n))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Hm(e){var t=new Map,i=new Set,r=[];function o(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||o(e)})),r}function Wm(e){var t;return function(){return t||(t=new Promise((function(i){Promise.resolve().then((function(){t=void 0,i(e())}))}))),t}}var Vm={placement:"bottom",modifiers:[],strategy:"absolute"};function Gm(){for(var e=arguments.length,t=new Array(e),i=0;i{const t=[],i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0||e===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)t.push(i.currentNode);return t},Zm=(e,t)=>{for(const i of e)if(!Xm(i,t))return i},Xm=(e,t)=>{if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1},Km=(e,t)=>{if(e&&e.focus){const i=document.activeElement;e.focus({preventScroll:!0}),e!==i&&(e=>e instanceof HTMLInputElement&&"select"in e)(e)&&t&&e.select()}};function Jm(e,t){const i=[...e],r=e.indexOf(t);return-1!==r&&i.splice(r,1),i}const $m=(()=>{let e=[];return{push:t=>{const i=e[0];i&&t!==i&&i.pause(),e=Jm(e,t),e.unshift(t)},remove:t=>{var i,r;e=Jm(e,t),null==(r=null==(i=e[0])?void 0:i.resume)||r.call(i)}}})(),eg={cancelable:!0,bubbles:!1},tg=Symbol("elFocusTrap");var ig=uf(ha({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:["focusAfterTrapped","focusAfterReleased","focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const i=Go();let r,o;var n;n=i=>{e.trapped&&!a.paused&&t("release-requested",i)},Ca((()=>{0===Jh.length&&document.addEventListener("keydown",$h),xd&&Jh.push(n)})),Ea((()=>{Jh=Jh.filter((e=>e!==n)),0===Jh.length&&xd&&document.removeEventListener("keydown",$h)}));const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=i=>{if(!e.loop&&!e.trapped)return;if(a.paused)return;const{key:r,altKey:o,ctrlKey:n,metaKey:s,currentTarget:l,shiftKey:c}=i,{loop:u}=e,d=r===ph&&!o&&!n&&!s,p=document.activeElement;if(d&&p){const e=l,[r,o]=(e=>{const t=Qm(e);return[Zm(t,e),Zm(t.reverse(),e)]})(e);r&&o?c||p!==o?c&&[r,e].includes(p)&&(i.preventDefault(),u&&Km(o,!0),t("focusout-prevented")):(i.preventDefault(),u&&Km(r,!0),t("focusout-prevented")):p===e&&(i.preventDefault(),t("focusout-prevented"))}};ra(tg,{focusTrapRef:i,onKeydown:s}),ql((()=>e.focusTrapEl),(e=>{e&&(i.value=e)}),{immediate:!0}),ql([i],(([e],[t])=>{e&&(e.addEventListener("keydown",s),e.addEventListener("focusin",u),e.addEventListener("focusout",d)),t&&(t.removeEventListener("keydown",s),t.removeEventListener("focusin",u),t.removeEventListener("focusout",d))}));const l=e=>{t("focusAfterTrapped",e)},c=e=>t("focusAfterReleased",e),u=r=>{const n=Zo(i);if(!n)return;const s=r.target,l=s&&n.contains(s);l&&t("focusin",r),a.paused||e.trapped&&(l?o=s:Km(o,!0))},d=r=>{const n=Zo(i);if(!a.paused&&n)if(e.trapped){const t=r.relatedTarget;bd(t)||n.contains(t)||setTimeout((()=>{!a.paused&&e.trapped&&Km(o,!0)}),0)}else{const e=r.target;e&&n.contains(e)||t("focusout",r)}};async function p(){await Bl();const t=Zo(i);if(t){$m.push(a);const i=document.activeElement;r=i;if(!t.contains(i)){const r=new Event("focus-trap.focus-after-trapped",eg);t.addEventListener("focus-trap.focus-after-trapped",l),t.dispatchEvent(r),r.defaultPrevented||Bl((()=>{let r=e.focusStartEl;Jd(r)||(Km(r),document.activeElement!==r&&(r="first")),"first"===r&&((e,t=!1)=>{const i=document.activeElement;for(const r of e)if(Km(r,t),document.activeElement!==i)return})(Qm(t),!0),document.activeElement!==i&&"container"!==r||Km(t)}))}}}function h(){const e=Zo(i);if(e){e.removeEventListener("focus-trap.focus-after-trapped",l);const t=new Event("focus-trap.focus-after-released",eg);e.addEventListener("focus-trap.focus-after-released",c),e.dispatchEvent(t),t.defaultPrevented||Km(null!=r?r:document.body,!0),e.removeEventListener("focus-trap.focus-after-released",l),$m.remove(a)}}return Ca((()=>{e.trapped&&p(),ql((()=>e.trapped),(e=>{e?p():h()}))})),Ea((()=>{e.trapped&&h()})),{onKeydown:s}}}),[["render",function(e,t,i,r,o,n){return Ks(e.$slots,"default",{handleKeydown:e.onKeydown})}],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const rg=ah({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Array,default:()=>[]},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Hf,default:"bottom"},popperOptions:{type:Object,default:()=>({})},strategy:{type:String,values:["fixed","absolute"],default:"absolute"}}),og=ah(u(c({},rg),{id:String,style:{type:[String,Array,Object]},className:{type:[String,Array,Object]},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:[String,Array,Object]},popperStyle:{type:[String,Array,Object]},referenceEl:{type:Object},triggerTargetEl:{type:Object},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number})),ng=(e,t)=>{const{placement:i,strategy:r,popperOptions:o}=e,n=u(c({placement:i,strategy:r},o),{modifiers:ag(e)});return function(e,{arrowEl:t,arrowOffset:i}){e.modifiers.push({name:"arrow",options:{element:t,padding:null!=i?i:5}})}(n,t),function(e,t){t&&(e.modifiers=[...e.modifiers,...null!=t?t:[]])}(n,null==o?void 0:o.modifiers),n};function ag(e){const{offset:t,gpuAcceleration:i,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,null!=t?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:null!=r?r:[]}},{name:"computeStyles",options:{gpuAcceleration:i,adaptive:i}}]}var sg=uf(ha(u(c({},{name:"ElPopperContent"}),{props:og,emits:["mouseenter","mouseleave","focus","blur","close"],setup(e,{expose:t,emit:i}){const r=e,{popperInstanceRef:o,contentRef:n,triggerRef:a,role:s}=oa(Eh,void 0),l=oa(kh,void 0),{nextZIndex:d}=cf(),p=jh("popper"),h=Go(),f=Go("first"),m=Go(),g=Go();ra(Ah,{arrowRef:m,arrowOffset:g}),l&&(l.addInputId||l.removeInputId)&&ra(kh,u(c({},l),{addInputId:qd,removeInputId:qd}));const v=Go(r.zIndex||d()),_=Go(!1);let b;const y=rn((()=>(e=>{if(xd)return Pd(e)})(r.referenceEl)||Zo(a))),w=rn((()=>[{zIndex:Zo(v)},r.popperStyle])),x=rn((()=>[p.b(),p.is("pure",r.pure),p.is(r.effect),r.popperClass])),C=rn((()=>s&&"dialog"===s.value?"false":void 0)),k=(e=!0)=>{var t;null==(t=Zo(o))||t.update(),e&&(v.value=r.zIndex||d())},T=()=>{var e,t;const i={name:"eventListeners",enabled:r.visible};null==(t=null==(e=Zo(o))?void 0:e.setOptions)||t.call(e,(e=>u(c({},e),{modifiers:[...e.modifiers||[],i]}))),k(!1),r.visible&&r.focusOnShow?_.value=!0:!1===r.visible&&(_.value=!1)},E=()=>{i("focus")},A=()=>{f.value="first",i("blur")},S=e=>{var t;r.visible&&!_.value&&(e.target&&(f.value=e.target),_.value=!0,e.relatedTarget&&(null==(t=e.relatedTarget)||t.focus()))},P=()=>{r.trapping||(_.value=!1)},I=()=>{_.value=!1,i("close")};return Ca((()=>{let e;ql(y,(t=>{var i;null==e||e();const a=Zo(o);if(null==(i=null==a?void 0:a.destroy)||i.call(a),t){const i=Zo(h);n.value=i,o.value=(({referenceEl:e,popperContentEl:t,arrowEl:i})=>{const o=ng(r,{arrowEl:i,arrowOffset:Zo(g)});return qm(e,t,o)})({referenceEl:t,popperContentEl:i,arrowEl:Zo(m)}),e=ql((()=>t.getBoundingClientRect()),(()=>k()),{immediate:!0})}else o.value=void 0}),{immediate:!0}),ql((()=>r.triggerTargetEl),((e,t)=>{null==b||b(),b=void 0;const i=Zo(e||h.value),o=Zo(t||h.value);if(rp(i)){const{ariaLabel:e,id:t}=Jo(r);b=ql([s,e,C,t],(e=>{["role","aria-label","aria-modal","id"].forEach(((t,r)=>{bd(e[r])?i.removeAttribute(t):i.setAttribute(t,e[r])}))}),{immediate:!0})}rp(o)&&["role","aria-label","aria-modal","id"].forEach((e=>{o.removeAttribute(e)}))}),{immediate:!0}),ql((()=>r.visible),T,{immediate:!0}),ql((()=>ng(r,{arrowEl:Zo(m),arrowOffset:Zo(g)})),(e=>{var t;return null==(t=o.value)?void 0:t.setOptions(e)}))})),Ea((()=>{null==b||b(),b=void 0})),t({popperContentRef:h,popperInstanceRef:o,updatePopper:k,contentStyle:w}),(e,t)=>(Ss(),Ds("div",{ref_key:"popperContentRef",ref:h,style:nn(Zo(w)),class:cn(Zo(x)),tabindex:"-1",onMouseenter:t[0]||(t[0]=t=>e.$emit("mouseenter",t)),onMouseleave:t[1]||(t[1]=t=>e.$emit("mouseleave",t))},[Fs(Zo(ig),{trapped:_.value,"trap-on-focus-in":!0,"focus-trap-el":h.value,"focus-start-el":f.value,onFocusAfterTrapped:E,onFocusAfterReleased:A,onFocusin:S,onFocusoutPrevented:P,onReleaseRequested:I},{default:Jn((()=>[Ks(e.$slots,"default")])),_:3},8,["trapped","focus-trap-el","focus-start-el"])],38))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const lg=uh(Cf),cg=jh("tooltip"),ug=ah(u(c(c({},nf),og),{appendTo:{type:[String,Object],default:rf},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Boolean,default:null},transition:{type:String,default:`${cg.namespace.value}-fade-in-linear`},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}})),dg=ah(u(c({},Pf),{disabled:Boolean,trigger:{type:[String,Array],default:"hover"},triggerKeys:{type:Array,default:()=>[hh,fh]}})),pg=ah({openDelay:{type:Number},visibleArrow:{type:Boolean,default:void 0},hideAfter:{type:Number,default:200},showArrow:{type:Boolean,default:!0}}),hg=Symbol("elTooltip");var fg=uf(ha({name:"ElTooltipContent",components:{ElPopperContent:sg},inheritAttrs:!1,props:ug,setup(e){const t=Go(null),i=Go(!1),r=Go(!1),o=Go(!1),n=Go(!1),{controlled:a,id:s,open:l,trigger:c,onClose:u,onOpen:d,onShow:p,onHide:h,onBeforeShow:f,onBeforeHide:m}=oa(hg,void 0),g=rn((()=>e.persistent));Ea((()=>{n.value=!0}));const v=rn((()=>!!Zo(g)||Zo(l))),_=rn((()=>!e.disabled&&Zo(l))),b=rn((()=>{var t;return null!=(t=e.style)?t:{}})),y=rn((()=>!Zo(l))),w=()=>{if(Zo(a))return!0},x=yd(w,(()=>{e.enterable&&"hover"===Zo(c)&&d()})),C=yd(w,(()=>{"hover"===Zo(c)&&u()}));let k;return ql((()=>Zo(l)),(e=>{e||null==k||k()}),{flush:"post"}),{ariaHidden:y,entering:r,leaving:o,id:s,intermediateOpen:i,contentStyle:b,contentRef:t,destroyed:n,shouldRender:v,shouldShow:_,onClose:u,open:l,onAfterShow:()=>{p(),k=function(e,t,i={}){const{window:r=Id,ignore:o,capture:n=!0,detectIframe:a=!1}=i;if(!r)return;const s=Go(!0);let l;const c=i=>{r.clearTimeout(l);const n=Pd(e),a=i.composedPath();n&&n!==i.target&&!a.includes(n)&&s.value&&(o&&o.length>0&&o.some((e=>{const t=Pd(e);return t&&(i.target===t||a.includes(t))}))||t(i))},u=[Md(r,"click",c,{passive:!0,capture:n}),Md(r,"pointerdown",(t=>{const i=Pd(e);s.value=!!i&&!t.composedPath().includes(i)}),{passive:!0}),Md(r,"pointerup",(e=>{if(0===e.button){const t=e.composedPath();e.composedPath=()=>t,l=r.setTimeout((()=>c(e)),50)}}),{passive:!0}),a&&Md(r,"blur",(i=>{var r;const o=Pd(e);"IFRAME"!==(null==(r=document.activeElement)?void 0:r.tagName)||(null==o?void 0:o.contains(document.activeElement))||t(i)}))].filter(Boolean);return()=>u.forEach((e=>e()))}(rn((()=>{var e;return null==(e=t.value)?void 0:e.popperContentRef})),(()=>{if(Zo(a))return;"hover"!==Zo(c)&&u()}))},onBeforeEnter:()=>{var e,i;null==(i=null==(e=t.value)?void 0:e.updatePopper)||i.call(e),null==f||f()},onBeforeLeave:()=>{null==m||m()},onContentEnter:x,onContentLeave:C,onTransitionLeave:()=>{h()},onBlur:()=>{e.virtualTriggering||u()}}}}),[["render",function(e,t,i,r,o,n){const a=vs("el-popper-content");return Ss(),Ls(gs,{disabled:!e.teleported,to:e.appendTo},[Fs(Uc,{name:e.transition,onAfterLeave:e.onTransitionLeave,onBeforeEnter:e.onBeforeEnter,onAfterEnter:e.onAfterShow,onBeforeLeave:e.onBeforeLeave},{default:Jn((()=>[e.shouldRender?is((Ss(),Ls(a,qs({key:0,id:e.id,ref:"contentRef"},e.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":e.ariaHidden,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,e.contentStyle],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:e.shouldShow,"z-index":e.zIndex,onMouseenter:e.onContentEnter,onMouseleave:e.onContentLeave,onBlur:e.onBlur,onClose:e.onClose}),{default:Jn((()=>[Ws(" Workaround bug #6378 "),e.destroyed?Ws("v-if",!0):Ks(e.$slots,"default",{key:0})])),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onBlur","onClose"])),[[ou,e.shouldShow]]):Ws("v-if",!0)])),_:3},8,["name","onAfterLeave","onBeforeEnter","onAfterEnter","onBeforeLeave"])],8,["disabled","to"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const mg=(e,t,i)=>r=>{((e,t)=>Xd(e)?e.includes(t):e===t)(Zo(e),t)&&i(r)};var gg=uf(ha({name:"ElTooltipTrigger",components:{ElPopperTrigger:If},props:dg,setup(e){const t=jh("tooltip"),{controlled:i,id:r,open:o,onOpen:n,onClose:a,onToggle:s}=oa(hg,void 0),l=Go(null),c=()=>{if(Zo(i)||e.disabled)return!0},u=en(e,"trigger"),d=yd(c,mg(u,"hover",n)),p=yd(c,mg(u,"hover",a)),h=yd(c,mg(u,"click",(e=>{0===e.button&&s(e)}))),f=yd(c,mg(u,"focus",n));return{onBlur:yd(c,mg(u,"focus",a)),onContextMenu:yd(c,mg(u,"contextmenu",(e=>{e.preventDefault(),s(e)}))),onFocus:f,onMouseenter:d,onMouseleave:p,onClick:h,onKeydown:yd(c,(t=>{const{code:i}=t;e.triggerKeys.includes(i)&&(t.preventDefault(),s(t))})),open:o,id:r,triggerRef:l,ns:t}}}),[["render",function(e,t,i,r,o,n){const a=vs("el-popper-trigger");return Ss(),Ls(a,{id:e.id,"virtual-ref":e.virtualRef,open:e.open,"virtual-triggering":e.virtualTriggering,class:cn(e.ns.e("trigger")),onBlur:e.onBlur,onClick:e.onClick,onContextmenu:e.onContextMenu,onFocus:e.onFocus,onMouseenter:e.onMouseenter,onMouseleave:e.onMouseleave,onKeydown:e.onKeydown},{default:Jn((()=>[Ks(e.$slots,"default")])),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const{useModelToggleProps:vg,useModelToggle:_g,useModelToggleEmits:bg}=(e=>{const t=`update:${e}`,i=`onUpdate:${e}`;return{useModelToggle:({indicator:r,toggleReason:o,shouldHideWhenRouteChanges:n,shouldProceed:a,onShow:s,onHide:l})=>{const u=nl(),{emit:d}=u,p=u.props,h=rn((()=>Kd(p[i]))),f=rn((()=>null===p[e])),m=e=>{!0!==r.value&&(r.value=!0,o&&(o.value=e),Kd(s)&&s(e))},g=e=>{!1!==r.value&&(r.value=!1,o&&(o.value=e),Kd(l)&&l(e))},v=e=>{if(!0===p.disabled||Kd(a)&&!a())return;const i=h.value&&xd;i&&d(t,!0),!f.value&&i||m(e)},_=e=>{if(!0===p.disabled||!xd)return;const i=h.value&&xd;i&&d(t,!1),!f.value&&i||g(e)},b=e=>{Cd(e)&&(p.disabled&&e?h.value&&d(t,!1):r.value!==e&&(e?m():g()))};return ql((()=>p[e]),b),n&&void 0!==u.appContext.config.globalProperties.$route&&ql((()=>c({},u.proxy.$route)),(()=>{n.value&&r.value&&_()})),Ca((()=>{b(p[e])})),{hide:_,show:v,toggle:()=>{r.value?_():v()},hasUpdateHandler:h}},useModelToggleProps:{[e]:Zh,[i]:Xh},useModelToggleEmits:[t]}})("visible"),yg=ha({name:"ElTooltip",components:{ElPopper:lg,ElPopperArrow:Tf,ElTooltipContent:fg,ElTooltipTrigger:gg},props:c(c(c(c(c(c({},xf),vg),ug),dg),kf),pg),emits:[...bg,"before-show","before-hide","show","hide","open","close"],setup(e,{emit:t}){of();const i=rn((()=>(ip(e.openDelay),e.openDelay||e.showAfter))),r=rn((()=>(ip(e.visibleArrow),Cd(e.visibleArrow)?e.visibleArrow:e.showArrow))),o=zh(),n=Go(null),a=Go(null),s=()=>{var e;const t=Zo(n);t&&(null==(e=t.popperInstanceRef)||e.update())},l=Go(!1),c=Go(void 0),{show:u,hide:d,hasUpdateHandler:p}=_g({indicator:l,toggleReason:c}),{onOpen:h,onClose:f}=af({showAfter:i,hideAfter:en(e,"hideAfter"),open:u,close:d}),m=rn((()=>Cd(e.visible)&&!p.value));ra(hg,{controlled:m,id:o,open:Lo(l),trigger:en(e,"trigger"),onOpen:e=>{h(e)},onClose:e=>{f(e)},onToggle:e=>{Zo(l)?f(e):h(e)},onShow:()=>{t("show",c.value)},onHide:()=>{t("hide",c.value)},onBeforeShow:()=>{t("before-show",c.value)},onBeforeHide:()=>{t("before-hide",c.value)},updatePopper:s}),ql((()=>e.disabled),(e=>{e&&l.value&&(l.value=!1)}));return va((()=>l.value&&d())),{compatShowAfter:i,compatShowArrow:r,popperRef:n,contentRef:a,open:l,hide:d,isFocusInsideContent:()=>{var e,t;const i=null==(t=null==(e=a.value)?void 0:e.contentRef)?void 0:t.popperContentRef;return i&&i.contains(document.activeElement)},updatePopper:s,onOpen:h,onClose:f}}}),wg=["innerHTML"],xg={key:1};const Cg=uh(uf(yg,[["render",function(e,t,i,r,o,n){const a=vs("el-tooltip-trigger"),s=vs("el-popper-arrow"),l=vs("el-tooltip-content"),c=vs("el-popper");return Ss(),Ls(c,{ref:"popperRef",role:e.role},{default:Jn((()=>[Fs(a,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:Jn((()=>[e.$slots.default?Ks(e.$slots,"default",{key:0}):Ws("v-if",!0)])),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),Fs(l,{ref:"contentRef","aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":e.popperClass,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.compatShowAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo},{default:Jn((()=>[Ks(e.$slots,"content",{},(()=>[e.rawContent?(Ss(),Ds("span",{key:0,innerHTML:e.content},null,8,wg)):(Ss(),Ds("span",xg,un(e.content),1))])),e.compatShowArrow?(Ss(),Ls(s,{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):Ws("v-if",!0)])),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])])),_:3},8,["role"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]])),kg=ah({size:Dh,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:sh},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:sh,default:()=>Yp},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),Tg={click:e=>e instanceof MouseEvent};function Eg(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var i=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),i&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function Ag(e){return Math.min(1,Math.max(0,e))}function Sg(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Pg(e){return e<=1?"".concat(100*Number(e),"%"):e}function Ig(e){return 1===e.length?"0"+e:String(e)}function Mg(e,t,i){e=Eg(e,255),t=Eg(t,255),i=Eg(i,255);var r=Math.max(e,t,i),o=Math.min(e,t,i),n=0,a=0,s=(r+o)/2;if(r===o)a=0,n=0;else{var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),r){case e:n=(t-i)/l+(t1&&(i-=1),i<1/6?e+6*i*(t-e):i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function Lg(e,t,i){e=Eg(e,255),t=Eg(t,255),i=Eg(i,255);var r=Math.max(e,t,i),o=Math.min(e,t,i),n=0,a=r,s=r-o,l=0===r?0:s/r;if(r===o)n=0;else{switch(r){case e:n=(t-i)/s+(t>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=jg(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=i.format)&&void 0!==r?r:o.format,this.gradientType=i.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,i=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=Sg(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var e=Lg(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=Lg(this.r,this.g,this.b),t=Math.round(360*e.h),i=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(i,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(i,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=Mg(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=Mg(this.r,this.g,this.b),t=Math.round(360*e.h),i=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(i,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(i,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Og(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,i,r,o){var n,a=[Ig(Math.round(e).toString(16)),Ig(Math.round(t).toString(16)),Ig(Math.round(i).toString(16)),Ig((n=r,Math.round(255*parseFloat(n)).toString(16)))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),i=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(i,")"):"rgba(".concat(e,", ").concat(t,", ").concat(i,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*Eg(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*Eg(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+Og(this.r,this.g,this.b,!1),t=0,i=Object.entries(Bg);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(i=this.toRgbString()),"prgb"===e&&(i=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(i=this.toHexString()),"hex3"===e&&(i=this.toHexString(!0)),"hex4"===e&&(i=this.toHex8String(!0)),"hex8"===e&&(i=this.toHex8String()),"name"===e&&(i=this.toName()),"hsl"===e&&(i=this.toHslString()),"hsv"===e&&(i=this.toHsvString()),i||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var i=this.toHsl();return i.l+=t/100,i.l=Ag(i.l),new e(i)},e.prototype.brighten=function(t){void 0===t&&(t=10);var i=this.toRgb();return i.r=Math.max(0,Math.min(255,i.r-Math.round(-t/100*255))),i.g=Math.max(0,Math.min(255,i.g-Math.round(-t/100*255))),i.b=Math.max(0,Math.min(255,i.b-Math.round(-t/100*255))),new e(i)},e.prototype.darken=function(t){void 0===t&&(t=10);var i=this.toHsl();return i.l-=t/100,i.l=Ag(i.l),new e(i)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var i=this.toHsl();return i.s-=t/100,i.s=Ag(i.s),new e(i)},e.prototype.saturate=function(t){void 0===t&&(t=10);var i=this.toHsl();return i.s+=t/100,i.s=Ag(i.s),new e(i)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var i=this.toHsl(),r=(i.h+t)%360;return i.h=r<0?360+r:r,new e(i)},e.prototype.mix=function(t,i){void 0===i&&(i=50);var r=this.toRgb(),o=new e(t).toRgb(),n=i/100;return new e({r:(o.r-r.r)*n+r.r,g:(o.g-r.g)*n+r.g,b:(o.b-r.b)*n+r.b,a:(o.a-r.a)*n+r.a})},e.prototype.analogous=function(t,i){void 0===t&&(t=6),void 0===i&&(i=30);var r=this.toHsl(),o=360/i,n=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,n.push(new e(r));return n},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var i=this.toHsv(),r=i.h,o=i.s,n=i.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:n})),n=(n+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),i=t.h;return[this,new e({h:(i+72)%360,s:t.s,l:t.l}),new e({h:(i+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var i=this.toRgb(),r=new e(t).toRgb();return new e({r:r.r+(i.r-r.r)*i.a,g:r.g+(i.g-r.g)*i.a,b:r.b+(i.b-r.b)*i.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var i=this.toHsl(),r=i.h,o=[this],n=360/t,a=1;a"text"===r.type)));const n=oa(yh,void 0),a=Ih("button"),s=jh("button"),{form:l}=Hh(),c=Lh(rn((()=>null==n?void 0:n.size))),u=Oh(),d=Go(),p=rn((()=>r.type||(null==n?void 0:n.type)||"")),h=rn((()=>{var e,t,i;return null!=(i=null!=(t=r.autoInsertSpace)?t:null==(e=a.value)?void 0:e.autoInsertSpace)&&i})),f=rn((()=>{var e;const t=null==(e=o.default)?void 0:e.call(o);if(h.value&&1===(null==t?void 0:t.length)){const e=t[0];if((null==e?void 0:e.type)===Cs){const t=e.children;return/^\p{Unified_Ideograph}{2}$/u.test(t.trim())}}return!1})),m=function(e){const t=Oh(),i=jh("button");return rn((()=>{let r={};const o=e.color;if(o){const n=new Vg(o),a=e.dark?n.tint(20).toString():Gg(n,20);if(e.plain)r=i.cssVarBlock({"bg-color":e.dark?Gg(n,90):n.tint(90).toString(),"text-color":o,"border-color":e.dark?Gg(n,50):n.tint(50).toString(),"hover-text-color":`var(${i.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":a,"active-text-color":`var(${i.cssVarName("color-white")})`,"active-border-color":a}),t.value&&(r[i.cssVarBlockName("disabled-bg-color")]=e.dark?Gg(n,90):n.tint(90).toString(),r[i.cssVarBlockName("disabled-text-color")]=e.dark?Gg(n,50):n.tint(50).toString(),r[i.cssVarBlockName("disabled-border-color")]=e.dark?Gg(n,80):n.tint(80).toString());else{const s=e.dark?Gg(n,30):n.tint(30).toString(),l=n.isDark()?`var(${i.cssVarName("color-white")})`:`var(${i.cssVarName("color-black")})`;if(r=i.cssVarBlock({"bg-color":o,"text-color":l,"border-color":o,"hover-bg-color":s,"hover-text-color":l,"hover-border-color":s,"active-bg-color":a,"active-border-color":a}),t.value){const t=e.dark?Gg(n,50):n.tint(50).toString();r[i.cssVarBlockName("disabled-bg-color")]=t,r[i.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${i.cssVarName("color-white")})`,r[i.cssVarBlockName("disabled-border-color")]=t}}}return r}))}(r),g=e=>{"reset"===r.nativeType&&(null==l||l.resetFields()),i("click",e)};return t({ref:d,size:c,type:p,disabled:u,shouldAddSpace:f}),(e,t)=>(Ss(),Ds("button",{ref_key:"_ref",ref:d,class:cn([Zo(s).b(),Zo(s).m(Zo(p)),Zo(s).m(Zo(c)),Zo(s).is("disabled",Zo(u)),Zo(s).is("loading",e.loading),Zo(s).is("plain",e.plain),Zo(s).is("round",e.round),Zo(s).is("circle",e.circle),Zo(s).is("text",e.text),Zo(s).is("link",e.link),Zo(s).is("has-bg",e.bg)]),"aria-disabled":Zo(u)||e.loading,disabled:Zo(u)||e.loading,autofocus:e.autofocus,type:e.nativeType,style:nn(Zo(m)),onClick:g},[e.loading?(Ss(),Ds(xs,{key:0},[e.$slots.loading?Ks(e.$slots,"loading",{key:0}):(Ss(),Ls(Zo(pf),{key:1,class:cn(Zo(s).is("loading"))},{default:Jn((()=>[(Ss(),Ls(bs(e.loadingIcon)))])),_:1},8,["class"]))],64)):e.icon||e.$slots.icon?(Ss(),Ls(Zo(pf),{key:1},{default:Jn((()=>[e.icon?(Ss(),Ls(bs(e.icon),{key:0})):Ks(e.$slots,"icon",{key:1})])),_:3})):Ws("v-if",!0),e.$slots.default?(Ss(),Ds("span",{key:2,class:cn({[Zo(s).em("text","expand")]:Zo(f)})},[Ks(e.$slots,"default")],2)):Ws("v-if",!0)],14,Yg))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const Qg={size:kg.size,type:kg.type};var Zg=uf(ha(u(c({},{name:"ElButtonGroup"}),{props:Qg,setup(e){const t=e;ra(yh,Do({size:en(t,"size"),type:en(t,"type")}));const i=jh("button");return(e,t)=>(Ss(),Ds("div",{class:cn(`${Zo(i).b("group")}`)},[Ks(e.$slots,"default")],2))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const Xg=uh(qg,{ButtonGroup:Zg}),Kg=dh(Zg),Jg=new Map;let $g;function ev(e,t){let i=[];return Array.isArray(t.arg)?i=t.arg:rp(t.arg)&&i.push(t.arg),function(r,o){const n=t.instance.popperRef,a=r.target,s=null==o?void 0:o.target,l=!t||!t.instance,c=!a||!s,u=e.contains(a)||e.contains(s),d=e===a,p=i.length&&i.some((e=>null==e?void 0:e.contains(a)))||i.length&&i.includes(s),h=n&&(n.contains(a)||n.contains(s));l||c||u||d||p||h||t.value(r,o)}}xd&&(document.addEventListener("mousedown",(e=>$g=e)),document.addEventListener("mouseup",(e=>{for(const t of Jg.values())for(const{documentHandler:i}of t)i(e,$g)})));const tv={beforeMount(e,t){Jg.has(e)||Jg.set(e,[]),Jg.get(e).push({documentHandler:ev(e,t),bindingFn:t.value})},updated(e,t){Jg.has(e)||Jg.set(e,[]);const i=Jg.get(e),r=i.findIndex((e=>e.bindingFn===t.oldValue)),o={documentHandler:ev(e,t),bindingFn:t.value};r>=0?i.splice(r,1,o):i.push(o)},unmounted(e){Jg.delete(e)}},iv={beforeMount(e,t){let i=null,r=null;const o=()=>t.value&&t.value(),n=()=>{r&&(clearTimeout(r),r=null),i&&(clearInterval(i),i=null)};e.addEventListener("mousedown",(e=>{0===e.button&&(o(),document.addEventListener("mouseup",n,{once:!0}),n(),r=setTimeout((()=>{i=setInterval((()=>{o()}),100)}),600))}))}},rv=ah({size:Dh,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),ov=ah(u(c({},rv),{modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean})),nv={"update:modelValue":e=>Jd(e)||kd(e)||Cd(e),change:e=>Jd(e)||kd(e)||Cd(e)},av=(e,t)=>{const i=Go(),r=oa(Th,void 0),o=rn((()=>!!r)),n=rn({get:()=>o.value?r.modelValue:e.modelValue,set(n){o.value?r.changeEvent(n):t&&t("update:modelValue",n),i.value.checked=e.modelValue===e.label}}),a=Lh(rn((()=>null==r?void 0:r.size))),s=Oh(rn((()=>null==r?void 0:r.disabled))),l=Go(!1),c=rn((()=>s.value||o.value&&n.value!==e.label?-1:0));return{radioRef:i,isGroup:o,radioGroup:r,focus:l,size:a,disabled:s,tabIndex:c,modelValue:n}},sv=["value","name","disabled"];var lv=uf(ha(u(c({},{name:"ElRadio"}),{props:ov,emits:nv,setup(e,{emit:t}){const i=e,r=jh("radio"),{radioRef:o,radioGroup:n,focus:a,size:s,disabled:l,modelValue:c}=av(i,t);function u(){Bl((()=>t("change",c.value)))}return(e,t)=>{var i;return Ss(),Ds("label",{class:cn([Zo(r).b(),Zo(r).is("disabled",Zo(l)),Zo(r).is("focus",Zo(a)),Zo(r).is("bordered",e.border),Zo(r).is("checked",Zo(c)===e.label),Zo(r).m(Zo(s))])},[Us("span",{class:cn([Zo(r).e("input"),Zo(r).is("disabled",Zo(l)),Zo(r).is("checked",Zo(c)===e.label)])},[is(Us("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":t[0]||(t[0]=e=>Vo(c)?c.value=e:null),class:cn(Zo(r).e("original")),value:e.label,name:e.name||(null==(i=Zo(n))?void 0:i.name),disabled:Zo(l),type:"radio",onFocus:t[1]||(t[1]=e=>a.value=!0),onBlur:t[2]||(t[2]=e=>a.value=!1),onChange:u},null,42,sv),[[Jc,Zo(c)]]),Us("span",{class:cn(Zo(r).e("inner"))},null,2)],2),Us("span",{class:cn(Zo(r).e("label")),onKeydown:t[3]||(t[3]=tu((()=>{}),["stop"]))},[Ks(e.$slots,"default",{},(()=>[Hs(un(e.label),1)]))],34)],2)}}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const cv=ah(u(c({},rv),{name:{type:String,default:""}})),uv=["value","name","disabled"];var dv=uf(ha(u(c({},{name:"ElRadioButton"}),{props:cv,setup(e){const t=e,i=jh("radio"),{radioRef:r,focus:o,size:n,disabled:a,modelValue:s,radioGroup:l}=av(t),c=rn((()=>({backgroundColor:(null==l?void 0:l.fill)||"",borderColor:(null==l?void 0:l.fill)||"",boxShadow:(null==l?void 0:l.fill)?`-1px 0 0 0 ${l.fill}`:"",color:(null==l?void 0:l.textColor)||""})));return(e,t)=>{var u;return Ss(),Ds("label",{class:cn([Zo(i).b("button"),Zo(i).is("active",Zo(s)===e.label),Zo(i).is("disabled",Zo(a)),Zo(i).is("focus",Zo(o)),Zo(i).bm("button",Zo(n))])},[is(Us("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":t[0]||(t[0]=e=>Vo(s)?s.value=e:null),class:cn(Zo(i).be("button","original-radio")),value:e.label,type:"radio",name:e.name||(null==(u=Zo(l))?void 0:u.name),disabled:Zo(a),onFocus:t[1]||(t[1]=e=>o.value=!0),onBlur:t[2]||(t[2]=e=>o.value=!1)},null,42,uv),[[Jc,Zo(s)]]),Us("span",{class:cn(Zo(i).be("button","inner")),style:nn(Zo(s)===e.label?Zo(c):{}),onKeydown:t[3]||(t[3]=tu((()=>{}),["stop"]))},[Ks(e.$slots,"default",{},(()=>[Hs(un(e.label),1)]))],38)],2)}}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const pv=ah({id:{type:String,default:void 0},size:Dh,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),hv=nv,fv=["id","aria-label","aria-labelledby"];var mv=uf(ha(u(c({},{name:"ElRadioGroup"}),{props:pv,emits:hv,setup(e,{emit:t}){const i=e,r=jh("radio"),o=zh(),n=Go(),{formItem:a}=Hh(),{inputId:s,isLabeledByFormItem:l}=Wh(i,{formItemContext:a});Ca((()=>{const e=n.value.querySelectorAll("[type=radio]"),t=e[0];!Array.from(e).some((e=>e.checked))&&t&&(t.tabIndex=0)}));const d=rn((()=>i.name||o.value));return ra(Th,Do(u(c({},Jo(i)),{changeEvent:e=>{t("update:modelValue",e),Bl((()=>t("change",e)))},name:d}))),ql((()=>i.modelValue),(()=>{i.validateEvent&&(null==a||a.validate("change").catch((e=>{})))})),(e,t)=>(Ss(),Ds("div",{id:Zo(s),ref_key:"radioGroupRef",ref:n,class:cn(Zo(r).b("group")),role:"radiogroup","aria-label":Zo(l)?void 0:e.label||"radio-group","aria-labelledby":Zo(l)?Zo(a).labelId:void 0},[Ks(e.$slots,"default")],10,fv))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);uh(lv,{RadioButton:dv,RadioGroup:mv});const gv=dh(mv),vv=dh(dv);let _v=!1;function bv(e,t){if(!xd)return;const i=function(e){var i;null==(i=t.drag)||i.call(t,e)},r=function(e){var o;document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",i),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,_v=!1,null==(o=t.end)||o.call(t,e)},o=function(e){var o;_v||(e.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",i),document.addEventListener("mouseup",r),document.addEventListener("touchmove",i),document.addEventListener("touchend",r),_v=!0,null==(o=t.start)||o.call(t,e))};e.addEventListener("mousedown",o),e.addEventListener("touchstart",o)}var yv=uf(ha({name:"ElColorAlphaSlider",props:{color:{type:Object,required:!0},vertical:{type:Boolean,default:!1}},setup(e){const t=jh("color-alpha-slider"),i=nl(),r=Yo(null),o=Yo(null),n=Go(0),a=Go(0),s=Go(null);function l(t){const o=i.vnode.el.getBoundingClientRect(),{clientX:n,clientY:a}=Yd(t);if(e.vertical){let t=a-o.top;t=Math.max(r.value.offsetHeight/2,t),t=Math.min(t,o.height-r.value.offsetHeight/2),e.color.set("alpha",Math.round((t-r.value.offsetHeight/2)/(o.height-r.value.offsetHeight)*100))}else{let t=n-o.left;t=Math.max(r.value.offsetWidth/2,t),t=Math.min(t,o.width-r.value.offsetWidth/2),e.color.set("alpha",Math.round((t-r.value.offsetWidth/2)/(o.width-r.value.offsetWidth)*100))}}function c(){n.value=function(){if(e.vertical)return 0;const t=i.vnode.el,o=e.color.get("alpha");return t?Math.round(o*(t.offsetWidth-r.value.offsetWidth/2)/100):0}(),a.value=function(){const t=i.vnode.el;if(!e.vertical)return 0;const o=e.color.get("alpha");return t?Math.round(o*(t.offsetHeight-r.value.offsetHeight/2)/100):0}(),s.value=function(){if(e.color&&e.color.value){const{r:t,g:i,b:r}=e.color.toRgb();return`linear-gradient(to right, rgba(${t}, ${i}, ${r}, 0) 0%, rgba(${t}, ${i}, ${r}, 1) 100%)`}return null}()}return ql((()=>e.color.get("alpha")),(()=>{c()})),ql((()=>e.color.value),(()=>{c()})),Ca((()=>{const e={drag:e=>{l(e)},end:e=>{l(e)}};bv(o.value,e),bv(r.value,e),c()})),{thumb:r,bar:o,thumbLeft:n,thumbTop:a,background:s,handleClick:function(e){e.target!==r.value&&l(e)},update:c,ns:t}}}),[["render",function(e,t,i,r,o,n){return Ss(),Ds("div",{class:cn([e.ns.b(),e.ns.is("vertical",e.vertical)])},[Us("div",{ref:"bar",class:cn(e.ns.e("bar")),style:nn({background:e.background}),onClick:t[0]||(t[0]=(...t)=>e.handleClick&&e.handleClick(...t))},null,6),Us("div",{ref:"thumb",class:cn(e.ns.e("thumb")),style:nn({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);var wv=uf(ha({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=jh("color-hue-slider"),i=nl(),r=Go(null),o=Go(null),n=Go(0),a=Go(0),s=rn((()=>e.color.get("hue")));function l(t){const o=i.vnode.el.getBoundingClientRect(),{clientX:n,clientY:a}=Yd(t);let s;if(e.vertical){let e=a-o.top;e=Math.min(e,o.height-r.value.offsetHeight/2),e=Math.max(r.value.offsetHeight/2,e),s=Math.round((e-r.value.offsetHeight/2)/(o.height-r.value.offsetHeight)*360)}else{let e=n-o.left;e=Math.min(e,o.width-r.value.offsetWidth/2),e=Math.max(r.value.offsetWidth/2,e),s=Math.round((e-r.value.offsetWidth/2)/(o.width-r.value.offsetWidth)*360)}e.color.set("hue",s)}function c(){n.value=function(){const t=i.vnode.el;if(e.vertical)return 0;const o=e.color.get("hue");return t?Math.round(o*(t.offsetWidth-r.value.offsetWidth/2)/360):0}(),a.value=function(){const t=i.vnode.el;if(!e.vertical)return 0;const o=e.color.get("hue");return t?Math.round(o*(t.offsetHeight-r.value.offsetHeight/2)/360):0}()}return ql((()=>s.value),(()=>{c()})),Ca((()=>{const e={drag:e=>{l(e)},end:e=>{l(e)}};bv(o.value,e),bv(r.value,e),c()})),{bar:o,thumb:r,thumbLeft:n,thumbTop:a,hueValue:s,handleClick:function(e){e.target!==r.value&&l(e)},update:c,ns:t}}}),[["render",function(e,t,i,r,o,n){return Ss(),Ds("div",{class:cn([e.ns.b(),e.ns.is("vertical",e.vertical)])},[Us("div",{ref:"bar",class:cn(e.ns.e("bar")),onClick:t[0]||(t[0]=(...t)=>e.handleClick&&e.handleClick(...t))},null,2),Us("div",{ref:"thumb",class:cn(e.ns.e("thumb")),style:nn({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const xv=Symbol(),Cv=function(e,t,i){return[e,t*i/((e=(2-t)*i)<1?e:2-e)||0,e/2]},kv=function(e,t){var i;"string"==typeof(i=e)&&i.includes(".")&&1===Number.parseFloat(i)&&(e="100%");const r=function(e){return"string"==typeof e&&e.includes("%")}(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),r&&(e=Number.parseInt(""+e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},Tv={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Ev=function(e){e=Math.min(Math.round(e),255);const t=Math.floor(e/16),i=e%16;return`${Tv[t]||t}${Tv[i]||i}`},Av=function({r:e,g:t,b:i}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+i)?"":`#${Ev(e)}${Ev(t)}${Ev(i)}`},Sv={A:10,B:11,C:12,D:13,E:14,F:15},Pv=function(e){return 2===e.length?16*(Sv[e[0].toUpperCase()]||+e[0])+(Sv[e[1].toUpperCase()]||+e[1]):Sv[e[1].toUpperCase()]||+e[1]},Iv=function(e,t,i){e=kv(e,255),t=kv(t,255),i=kv(i,255);const r=Math.max(e,t,i),o=Math.min(e,t,i);let n;const a=r,s=r-o,l=0===r?0:s/r;if(r===o)n=0;else{switch(r){case e:n=(t-i)/s+(t{this._hue=Math.max(0,Math.min(360,e)),this._saturation=Math.max(0,Math.min(100,t)),this._value=Math.max(0,Math.min(100,i)),this.doOnChange()};if(e.includes("hsl")){const i=e.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));if(4===i.length?this._alpha=100*Number.parseFloat(i[3]):3===i.length&&(this._alpha=100),i.length>=3){const{h:e,s:r,v:o}=function(e,t,i){i/=100;let r=t/=100;const o=Math.max(i,.01);return t*=(i*=2)<=1?i:2-i,r*=o<=1?o:2-o,{h:e,s:100*(0===i?2*r/(o+r):2*t/(i+t)),v:(i+t)/2*100}}(i[0],i[1],i[2]);t(e,r,o)}}else if(e.includes("hsv")){const i=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));4===i.length?this._alpha=100*Number.parseFloat(i[3]):3===i.length&&(this._alpha=100),i.length>=3&&t(i[0],i[1],i[2])}else if(e.includes("rgb")){const i=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));if(4===i.length?this._alpha=100*Number.parseFloat(i[3]):3===i.length&&(this._alpha=100),i.length>=3){const{h:e,s:r,v:o}=Iv(i[0],i[1],i[2]);t(e,r,o)}}else if(e.includes("#")){const i=e.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(i))return;let r,o,n;3===i.length?(r=Pv(i[0]+i[0]),o=Pv(i[1]+i[1]),n=Pv(i[2]+i[2])):6!==i.length&&8!==i.length||(r=Pv(i.slice(0,2)),o=Pv(i.slice(2,4)),n=Pv(i.slice(4,6))),8===i.length?this._alpha=Pv(i.slice(6))/255*100:3!==i.length&&6!==i.length||(this._alpha=100);const{h:a,s:s,v:l}=Iv(r,o,n);t(a,s,l)}}compare(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1}doOnChange(){const{_hue:e,_saturation:t,_value:i,_alpha:r,format:o}=this;if(this.enableAlpha)switch(o){case"hsl":{const r=Cv(e,t/100,i/100);this.value=`hsla(${e}, ${Math.round(100*r[1])}%, ${Math.round(100*r[2])}%, ${this.get("alpha")/100})`;break}case"hsv":this.value=`hsva(${e}, ${Math.round(t)}%, ${Math.round(i)}%, ${this.get("alpha")/100})`;break;case"hex":this.value=`${Av(Mv(e,t,i))}${Ev(255*r/100)}`;break;default:{const{r:r,g:o,b:n}=Mv(e,t,i);this.value=`rgba(${r}, ${o}, ${n}, ${this.get("alpha")/100})`}}else switch(o){case"hsl":{const r=Cv(e,t/100,i/100);this.value=`hsl(${e}, ${Math.round(100*r[1])}%, ${Math.round(100*r[2])}%)`;break}case"hsv":this.value=`hsv(${e}, ${Math.round(t)}%, ${Math.round(i)}%)`;break;case"rgb":{const{r:r,g:o,b:n}=Mv(e,t,i);this.value=`rgb(${r}, ${o}, ${n})`;break}default:this.value=Av(Mv(e,t,i))}}}const Lv=ha({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=jh("color-predefine"),{currentColor:i}=oa(xv),r=Go(o(e.colors,e.color));function o(e,t){return e.map((e=>{const i=new Dv;return i.enableAlpha=!0,i.format="rgba",i.fromString(e),i.selected=i.value===t.value,i}))}return ql((()=>i.value),(e=>{const t=new Dv;t.fromString(e),r.value.forEach((e=>{e.selected=t.compare(e)}))})),Gl((()=>{r.value=o(e.colors,e.color)})),{rgbaColors:r,handleSelect:function(t){e.color.fromString(e.colors[t])},ns:t}}}),Ov=["onClick"];var Rv=uf(Lv,[["render",function(e,t,i,r,o,n){return Ss(),Ds("div",{class:cn(e.ns.b())},[Us("div",{class:cn(e.ns.e("colors"))},[(Ss(!0),Ds(xs,null,Zs(e.rgbaColors,((t,i)=>(Ss(),Ds("div",{key:e.colors[i],class:cn([e.ns.e("color-selector"),e.ns.is("alpha",t._alpha<100),{selected:t.selected}]),onClick:t=>e.handleSelect(i)},[Us("div",{style:nn({backgroundColor:t.value})},null,4)],10,Ov)))),128))],2)],2)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const Nv=ha({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=jh("color-svpanel"),i=nl(),r=Go(0),o=Go(0),n=Go("hsl(0, 100%, 50%)"),a=rn((()=>({hue:e.color.get("hue"),value:e.color.get("value")})));function s(){const t=e.color.get("saturation"),a=e.color.get("value"),s=i.vnode.el,{clientWidth:l,clientHeight:c}=s;o.value=t*l/100,r.value=(100-a)*c/100,n.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function l(t){const n=i.vnode.el.getBoundingClientRect(),{clientX:a,clientY:s}=Yd(t);let l=a-n.left,c=s-n.top;l=Math.max(0,l),l=Math.min(l,n.width),c=Math.max(0,c),c=Math.min(c,n.height),o.value=l,r.value=c,e.color.set({saturation:l/n.width*100,value:100-c/n.height*100})}return ql((()=>a.value),(()=>{s()})),Ca((()=>{bv(i.vnode.el,{drag:e=>{l(e)},end:e=>{l(e)}}),s()})),{cursorTop:r,cursorLeft:o,background:n,colorValue:a,handleDrag:l,update:s,ns:t}}}),Bv=[Us("div",null,null,-1)];const jv=ha({name:"ElColorPicker",components:{ElButton:Xg,ElTooltip:Cg,ElInput:wf,ElIcon:pf,Close:Ip,ArrowDown:fp,SvPanel:uf(Nv,[["render",function(e,t,i,r,o,n){return Ss(),Ds("div",{class:cn(e.ns.b()),style:nn({backgroundColor:e.background})},[Us("div",{class:cn(e.ns.e("white"))},null,2),Us("div",{class:cn(e.ns.e("black"))},null,2),Us("div",{class:cn(e.ns.e("cursor")),style:nn({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},Bv,6)],6)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]),HueSlider:wv,AlphaSlider:yv,Predefine:Rv},directives:{ClickOutside:tv},props:{modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:{type:String,validator:e=>["",...gh].includes(e)},popperClass:String,label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:Array,validateEvent:{type:Boolean,default:!0}},emits:["change","active-change","update:modelValue"],setup(e,{emit:t}){const{t:i}=qh(),r=jh("color"),{form:o,formItem:n}=Hh(),{inputId:a,isLabeledByFormItem:s}=Wh(e,{formItemContext:n}),l=Go(),c=Go(),u=Go(),d=Go(null);let p=!0;const h=Do(new Dv({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue})),f=Go(!1),m=Go(!1),g=Go(""),v=rn((()=>e.modelValue||m.value?function(e,t){if(!(e instanceof Dv))throw new TypeError("color should be instance of _color Class");const{r:i,g:r,b:o}=e.toRgb();return t?`rgba(${i}, ${r}, ${o}, ${e.get("alpha")/100})`:`rgb(${i}, ${r}, ${o})`}(h,e.showAlpha):"transparent")),_=Lh(),b=rn((()=>!(!e.disabled&&!(null==o?void 0:o.disabled)))),y=rn((()=>e.modelValue||m.value?h.value:"")),w=rn((()=>s.value?void 0:e.label||i("el.colorpicker.defaultLabel"))),x=rn((()=>s.value?null==n?void 0:n.labelId:void 0));ql((()=>e.modelValue),(e=>{e?e&&e!==h.value&&(p=!1,h.fromString(e)):m.value=!1})),ql((()=>y.value),(e=>{g.value=e,p&&t("active-change",e),p=!0})),ql((()=>h.value),(()=>{e.modelValue||m.value||(m.value=!0)}));const C=vd((function(e){f.value=e}),100);function k(){Bl((()=>{e.modelValue?h.fromString(e.modelValue):(h.value="",Bl((()=>{m.value=!1})))}))}return Ca((()=>{e.modelValue&&(g.value=y.value)})),ql((()=>f.value),(()=>{Bl((()=>{var e,t,i;null==(e=l.value)||e.update(),null==(t=c.value)||t.update(),null==(i=u.value)||i.update()}))})),ra(xv,{currentColor:y}),{color:h,colorDisabled:b,colorSize:_,displayedColor:v,showPanelColor:m,showPicker:f,customInput:g,buttonId:a,buttonAriaLabel:w,buttonAriaLabelledby:x,handleConfirm:function(){h.fromString(g.value)},hide:function(){C(!1),k()},handleTrigger:function(){b.value||C(!f.value)},clear:function(){C(!1),t("update:modelValue",null),t("change",null),null!==e.modelValue&&e.validateEvent&&(null==n||n.validate("change").catch((e=>{}))),k()},confirmValue:function(){const i=h.value;t("update:modelValue",i),t("change",i),e.validateEvent&&(null==n||n.validate("change").catch((e=>{}))),C(!1),Bl((()=>{const t=new Dv({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue});h.compare(t)||k()}))},t:i,ns:r,hue:l,svPanel:c,alpha:u,popper:d}}}),Uv=["id","aria-label","aria-labelledby","aria-description","tabindex"];var Fv=uf(jv,[["render",function(e,t,i,r,o,n){const a=vs("hue-slider"),s=vs("sv-panel"),l=vs("alpha-slider"),c=vs("predefine"),u=vs("el-input"),d=vs("el-button"),p=vs("arrow-down"),h=vs("el-icon"),f=vs("close"),m=vs("el-tooltip"),g=ys("directives","click-outside");return Ss(),Ls(m,{ref:"popper",visible:e.showPicker,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[e.ns.be("picker","panel"),e.ns.b("dropdown"),e.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${e.ns.namespace.value}-zoom-in-top`,persistent:""},{content:Jn((()=>[is((Ss(),Ds("div",null,[Us("div",{class:cn(e.ns.be("dropdown","main-wrapper"))},[Fs(a,{ref:"hue",class:"hue-slider",color:e.color,vertical:""},null,8,["color"]),Fs(s,{ref:"svPanel",color:e.color},null,8,["color"])],2),e.showAlpha?(Ss(),Ls(l,{key:0,ref:"alpha",color:e.color},null,8,["color"])):Ws("v-if",!0),e.predefine?(Ss(),Ls(c,{key:1,ref:"predefine",color:e.color,colors:e.predefine},null,8,["color","colors"])):Ws("v-if",!0),Us("div",{class:cn(e.ns.be("dropdown","btns"))},[Us("span",{class:cn(e.ns.be("dropdown","value"))},[Fs(u,{modelValue:e.customInput,"onUpdate:modelValue":t[0]||(t[0]=t=>e.customInput=t),"validate-event":!1,size:"small",onKeyup:ru(e.handleConfirm,["enter"]),onBlur:e.handleConfirm},null,8,["modelValue","onKeyup","onBlur"])],2),Fs(d,{class:cn(e.ns.be("dropdown","link-btn")),text:"",size:"small",onClick:e.clear},{default:Jn((()=>[Hs(un(e.t("el.colorpicker.clear")),1)])),_:1},8,["class","onClick"]),Fs(d,{plain:"",size:"small",class:cn(e.ns.be("dropdown","btn")),onClick:e.confirmValue},{default:Jn((()=>[Hs(un(e.t("el.colorpicker.confirm")),1)])),_:1},8,["class","onClick"])],2)])),[[g,e.hide]])])),default:Jn((()=>[Us("div",{id:e.buttonId,class:cn([e.ns.b("picker"),e.ns.is("disabled",e.colorDisabled),e.ns.bm("picker",e.colorSize)]),role:"button","aria-label":e.buttonAriaLabel,"aria-labelledby":e.buttonAriaLabelledby,"aria-description":e.t("el.colorpicker.description",{color:e.modelValue||""}),tabindex:e.tabindex,onKeydown:t[2]||(t[2]=ru(((...t)=>e.handleTrigger&&e.handleTrigger(...t)),["enter"]))},[e.colorDisabled?(Ss(),Ds("div",{key:0,class:cn(e.ns.be("picker","mask"))},null,2)):Ws("v-if",!0),Us("div",{class:cn(e.ns.be("picker","trigger")),onClick:t[1]||(t[1]=(...t)=>e.handleTrigger&&e.handleTrigger(...t))},[Us("span",{class:cn([e.ns.be("picker","color"),e.ns.is("alpha",e.showAlpha)])},[Us("span",{class:cn(e.ns.be("picker","color-inner")),style:nn({backgroundColor:e.displayedColor})},[is(Fs(h,{class:cn([e.ns.be("picker","icon"),e.ns.is("icon-arrow-down")])},{default:Jn((()=>[Fs(p)])),_:1},8,["class"]),[[ou,e.modelValue||e.showPanelColor]]),e.modelValue||e.showPanelColor?Ws("v-if",!0):(Ss(),Ls(h,{key:0,class:cn([e.ns.be("picker","empty"),e.ns.is("icon-close")])},{default:Jn((()=>[Fs(f)])),_:1},8,["class"]))],6)],2)],2)],42,Uv)])),_:1},8,["visible","popper-class","transition"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/index.vue"]]);Fv.install=e=>{e.component(Fv.name,Fv)};const zv=Fv,Hv={},Wv=uh(ha({name:"ElConfigProvider",props:ah({a11y:{type:Boolean,default:!0},locale:{type:Object},size:Dh,button:{type:Object},experimentalFeatures:{type:Object},keyboardNavigation:{type:Boolean,default:!0},message:{type:Object},zIndex:Number,namespace:{type:String,default:"el"}}),setup(e,{slots:t}){ql((()=>e.message),(e=>{Object.assign(Hv,null!=e?e:{})}),{immediate:!0,deep:!0});const i=((e,t,i=!1)=>{var r;const o=!!nl(),n=o?Ih():void 0,a=null!=(r=null==t?void 0:t.provide)?r:o?ra:void 0;if(!a)return;const s=rn((()=>{const t=Zo(e);return(null==n?void 0:n.value)?Mh(n.value,t):t}));return a(wh,s),!i&&Ph.value||(Ph.value=s.value),s})(e);return()=>Ks(t,"default",{config:null==i?void 0:i.value})}}));const Vv=ha({name:"ElOverlay",props:ah({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:[String,Array,Object]},zIndex:{type:[String,Number]}}),emits:{click:e=>e instanceof MouseEvent},setup(e,{slots:t,emit:i}){const r=jh("overlay"),{onClick:o,onMousedown:n,onMouseup:a}=Kh(e.customMaskEvent?void 0:e=>{i("click",e)});return()=>e.mask?Fs("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:o,onMousedown:n,onMouseup:a},[Ks(t,"default")],vh.STYLE|vh.CLASS|vh.PROPS,["onClick","onMouseup","onMousedown"]):ec("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Ks(t,"default")])}}),Gv=ah({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:sh},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),Yv=["aria-label"],qv=["id"];var Qv=uf(ha(u(c({},{name:"ElDialogContent"}),{props:Gv,emits:{close:()=>!0},setup(e){const t=e,{t:i}=qh(),{Close:r}=lh,{dialogRef:o,headerRef:n,bodyId:a,ns:s,style:l}=oa(xh),{focusTrapRef:c}=oa(tg),u=((...e)=>t=>{e.forEach((e=>{Kd(e)?e(t):e.value=t}))})(c,o),d=rn((()=>t.draggable));return Nh(o,n,d),(e,t)=>(Ss(),Ds("div",{ref:Zo(u),class:cn([Zo(s).b(),Zo(s).is("fullscreen",e.fullscreen),Zo(s).is("draggable",Zo(d)),Zo(s).is("align-center",e.alignCenter),{[Zo(s).m("center")]:e.center},e.customClass]),style:nn(Zo(l)),tabindex:"-1",onClick:t[1]||(t[1]=tu((()=>{}),["stop"]))},[Us("header",{ref_key:"headerRef",ref:n,class:cn(Zo(s).e("header"))},[Ks(e.$slots,"header",{},(()=>[Us("span",{role:"heading",class:cn(Zo(s).e("title"))},un(e.title),3)])),e.showClose?(Ss(),Ds("button",{key:0,"aria-label":Zo(i)("el.dialog.close"),class:cn(Zo(s).e("headerbtn")),type:"button",onClick:t[0]||(t[0]=t=>e.$emit("close"))},[Fs(Zo(pf),{class:cn(Zo(s).e("close"))},{default:Jn((()=>[(Ss(),Ls(bs(e.closeIcon||Zo(r))))])),_:1},8,["class"])],10,Yv)):Ws("v-if",!0)],2),Us("div",{id:Zo(a),class:cn(Zo(s).e("body"))},[Ks(e.$slots,"default")],10,qv),e.$slots.footer?(Ss(),Ds("footer",{key:0,class:cn(Zo(s).e("footer"))},[Ks(e.$slots,"footer")],2)):Ws("v-if",!0)],6))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const Zv=ah(u(c({},Gv),{appendToBody:{type:Boolean,default:!1},beforeClose:{type:Function},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}})),Xv={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,"update:modelValue":e=>Cd(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},Kv=["aria-label","aria-labelledby","aria-describedby"];const Jv=uh(uf(ha(u(c({},{name:"ElDialog",inheritAttrs:!1}),{props:Zv,emits:Xv,setup(e,{expose:t}){const i=e,r=Jl();Rh({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},rn((()=>!!r.title))),Rh({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},rn((()=>!!i.customClass)));const o=jh("dialog"),n=Go(),a=Go(),s=Go(),{visible:l,titleId:c,bodyId:u,style:d,overlayDialogStyle:p,rendered:h,zIndex:f,afterEnter:m,afterLeave:g,beforeLeave:v,handleClose:_,onModalClick:b,onOpenAutoFocus:y,onCloseAutoFocus:w,onCloseRequested:x}=((e,t)=>{const i=nl().emit,{nextZIndex:r}=cf();let o="";const n=zh(),a=zh(),s=Go(!1),l=Go(!1),c=Go(!1),u=Go(e.zIndex||r());let d,p;const h=Ih("namespace","el"),f=rn((()=>{const t={},i=`--${h.value}-dialog`;return e.fullscreen||(e.top&&(t[`${i}-margin-top`]=e.top),e.width&&(t[`${i}-width`]=lp(e.width))),t})),m=rn((()=>e.alignCenter?{display:"flex"}:{}));function g(){null==p||p(),null==d||d(),e.openDelay&&e.openDelay>0?({stop:d}=Sd((()=>b()),e.openDelay)):b()}function v(){null==d||d(),null==p||p(),e.closeDelay&&e.closeDelay>0?({stop:p}=Sd((()=>y()),e.closeDelay)):y()}function _(){e.beforeClose?e.beforeClose((function(e){e||(l.value=!0,s.value=!1)})):v()}function b(){xd&&(s.value=!0)}function y(){s.value=!1}return e.lockScroll&&Qh(s),ql((()=>e.modelValue),(o=>{o?(l.value=!1,g(),c.value=!0,u.value=e.zIndex?u.value++:r(),Bl((()=>{i("open"),t.value&&(t.value.scrollTop=0)}))):s.value&&v()})),ql((()=>e.fullscreen),(e=>{t.value&&(e?(o=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=o)})),Ca((()=>{e.modelValue&&(s.value=!0,c.value=!0,g())})),{afterEnter:function(){i("opened")},afterLeave:function(){i("closed"),i("update:modelValue",!1),e.destroyOnClose&&(c.value=!1)},beforeLeave:function(){i("close")},handleClose:_,onModalClick:function(){e.closeOnClickModal&&_()},close:v,doClose:y,onOpenAutoFocus:function(){i("openAutoFocus")},onCloseAutoFocus:function(){i("closeAutoFocus")},onCloseRequested:function(){e.closeOnPressEscape&&_()},titleId:n,bodyId:a,closed:l,style:f,overlayDialogStyle:m,rendered:c,visible:s,zIndex:u}})(i,n);ra(xh,{dialogRef:n,headerRef:a,bodyId:u,ns:o,rendered:h,style:d});const C=Kh(b),k=rn((()=>i.draggable&&!i.fullscreen));return t({visible:l,dialogContentRef:s}),(e,t)=>(Ss(),Ls(gs,{to:"body",disabled:!e.appendToBody},[Fs(Uc,{name:"dialog-fade",onAfterEnter:Zo(m),onAfterLeave:Zo(g),onBeforeLeave:Zo(v),persisted:""},{default:Jn((()=>[is(Fs(Zo(Vv),{"custom-mask-event":"",mask:e.modal,"overlay-class":e.modalClass,"z-index":Zo(f)},{default:Jn((()=>[Us("div",{role:"dialog","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:Zo(c),"aria-describedby":Zo(u),class:cn(`${Zo(o).namespace.value}-overlay-dialog`),style:nn(Zo(p)),onClick:t[0]||(t[0]=(...e)=>Zo(C).onClick&&Zo(C).onClick(...e)),onMousedown:t[1]||(t[1]=(...e)=>Zo(C).onMousedown&&Zo(C).onMousedown(...e)),onMouseup:t[2]||(t[2]=(...e)=>Zo(C).onMouseup&&Zo(C).onMouseup(...e))},[Fs(Zo(ig),{loop:"",trapped:Zo(l),"focus-start-el":"container",onFocusAfterTrapped:Zo(y),onFocusAfterReleased:Zo(w),onReleaseRequested:Zo(x)},{default:Jn((()=>[Zo(h)?(Ss(),Ls(Qv,qs({key:0,ref_key:"dialogContentRef",ref:s},e.$attrs,{"custom-class":e.customClass,center:e.center,"align-center":e.alignCenter,"close-icon":e.closeIcon,draggable:Zo(k),fullscreen:e.fullscreen,"show-close":e.showClose,title:e.title,onClose:Zo(_)}),Xs({header:Jn((()=>[e.$slots.title?Ks(e.$slots,"title",{key:1}):Ks(e.$slots,"header",{key:0,close:Zo(_),titleId:Zo(c),titleClass:Zo(o).e("title")})])),default:Jn((()=>[Ks(e.$slots,"default")])),_:2},[e.$slots.footer?{name:"footer",fn:Jn((()=>[Ks(e.$slots,"footer")]))}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):Ws("v-if",!0)])),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onReleaseRequested"])],46,Kv)])),_:3},8,["mask","overlay-class","z-index"]),[[ou,Zo(l)]])])),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]])),$v=ah({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:Dh,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>null===e||kd(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),e_={change:(e,t)=>e!==t,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,input:e=>kd(e)||bd(e),"update:modelValue":e=>kd(e)||bd(e)},t_=["aria-label","onKeydown"],i_=["aria-label","onKeydown"];const r_=uh(uf(ha(u(c({},{name:"ElInputNumber"}),{props:$v,emits:e_,setup(e,{expose:t,emit:i}){const r=e,{t:o}=qh(),n=jh("input-number"),a=Go(),s=Do({currentValue:r.modelValue,userInput:null}),{formItem:l}=Hh(),c=rn((()=>kd(r.modelValue)&&_(r.modelValue,-1)kd(r.modelValue)&&_(r.modelValue)>r.max)),d=rn((()=>{const e=v(r.step);return ip(r.precision)?Math.max(v(r.modelValue),e):(r.precision,r.precision)})),p=rn((()=>r.controls&&"right"===r.controlsPosition)),h=Lh(),f=Oh(),m=rn((()=>{if(null!==s.userInput)return s.userInput;let e=s.currentValue;if(bd(e))return"";if(kd(e)){if(Number.isNaN(e))return"";ip(r.precision)||(e=e.toFixed(r.precision))}return e})),g=(e,t)=>{if(ip(t)&&(t=d.value),0===t)return Math.round(e);let i=String(e);const r=i.indexOf(".");if(-1===r)return e;if(!i.replace(".","").split("")[r+t])return e;const o=i.length;return"5"===i.charAt(o-1)&&(i=`${i.slice(0,Math.max(0,o-1))}6`),Number.parseFloat(Number(i).toFixed(t))},v=e=>{if(bd(e))return 0;const t=e.toString(),i=t.indexOf(".");let r=0;return-1!==i&&(r=t.length-i-1),r},_=(e,t=1)=>kd(e)?g(e+r.step*t):s.currentValue,b=()=>{if(r.readonly||f.value||u.value)return;const e=r.modelValue||0,t=_(e);x(t)},y=()=>{if(r.readonly||f.value||c.value)return;const e=r.modelValue||0,t=_(e,-1);x(t)},w=(e,t)=>{const{max:o,min:n,step:a,precision:s,stepStrictly:l,valueOnClear:c}=r;let u=Number(e);if(bd(e)||Number.isNaN(u))return null;if(""===e){if(null===c)return null;u=Jd(c)?{min:n,max:o}[c]:c}return l&&(u=g(Math.round(u/a)*a,s)),ip(s)||(u=g(u,s)),(u>o||uo?o:n,t&&i("update:modelValue",u)),u},x=e=>{var t;const o=s.currentValue,n=w(e);o!==n&&(s.userInput=null,i("update:modelValue",n),i("input",n),i("change",n,o),r.validateEvent&&(null==(t=null==l?void 0:l.validate)||t.call(l,"change").catch((e=>{}))),s.currentValue=n)},C=e=>s.userInput=e,k=e=>{const t=""!==e?Number(e):"";(kd(t)&&!Number.isNaN(t)||""===e)&&x(t),s.userInput=null},T=e=>{i("focus",e)},E=e=>{var t;i("blur",e),r.validateEvent&&(null==(t=null==l?void 0:l.validate)||t.call(l,"blur").catch((e=>{})))};return ql((()=>r.modelValue),(e=>{s.currentValue=w(e,!0),s.userInput=null}),{immediate:!0}),Ca((()=>{var e;const{min:t,max:o,modelValue:n}=r,l=null==(e=a.value)?void 0:e.input;if(l.setAttribute("role","spinbutton"),Number.isFinite(o)?l.setAttribute("aria-valuemax",String(o)):l.removeAttribute("aria-valuemax"),Number.isFinite(t)?l.setAttribute("aria-valuemin",String(t)):l.removeAttribute("aria-valuemin"),l.setAttribute("aria-valuenow",String(s.currentValue)),l.setAttribute("aria-disabled",String(f.value)),!kd(n)&&null!=n){let e=Number(n);Number.isNaN(e)&&(e=null),i("update:modelValue",e)}})),Ta((()=>{var e;const t=null==(e=a.value)?void 0:e.input;null==t||t.setAttribute("aria-valuenow",`${s.currentValue}`)})),t({focus:()=>{var e,t;null==(t=null==(e=a.value)?void 0:e.focus)||t.call(e)},blur:()=>{var e,t;null==(t=null==(e=a.value)?void 0:e.blur)||t.call(e)}}),(e,t)=>(Ss(),Ds("div",{class:cn([Zo(n).b(),Zo(n).m(Zo(h)),Zo(n).is("disabled",Zo(f)),Zo(n).is("without-controls",!e.controls),Zo(n).is("controls-right",Zo(p))]),onDragstart:t[0]||(t[0]=tu((()=>{}),["prevent"]))},[e.controls?is((Ss(),Ds("span",{key:0,role:"button","aria-label":Zo(o)("el.inputNumber.decrease"),class:cn([Zo(n).e("decrease"),Zo(n).is("disabled",Zo(c))]),onKeydown:ru(y,["enter"])},[Fs(Zo(pf),null,{default:Jn((()=>[Zo(p)?(Ss(),Ls(Zo(fp),{key:0})):(Ss(),Ls(Zo(Xp),{key:1}))])),_:1})],42,t_)),[[Zo(iv),y]]):Ws("v-if",!0),e.controls?is((Ss(),Ds("span",{key:1,role:"button","aria-label":Zo(o)("el.inputNumber.increase"),class:cn([Zo(n).e("increase"),Zo(n).is("disabled",Zo(u))]),onKeydown:ru(b,["enter"])},[Fs(Zo(pf),null,{default:Jn((()=>[Zo(p)?(Ss(),Ls(Zo(_p),{key:0})):(Ss(),Ls(Zo(eh),{key:1}))])),_:1})],42,i_)),[[Zo(iv),b]]):Ws("v-if",!0),Fs(Zo(wf),{id:e.id,ref_key:"input",ref:a,type:"number",step:e.step,"model-value":Zo(m),placeholder:e.placeholder,readonly:e.readonly,disabled:Zo(f),size:Zo(h),max:e.max,min:e.min,name:e.name,label:e.label,"validate-event":!1,onKeydown:[ru(tu(b,["prevent"]),["up"]),ru(tu(y,["prevent"]),["down"])],onBlur:E,onFocus:T,onInput:C,onChange:k},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]])); /*! Element Plus v2.2.16 */var o_,n_,a_={name:"zh-cn",el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}},s_={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}}; /*! Element Plus v2.2.16 */o_="undefined"!=typeof window?window:he,n_=function(e,t){var i=[],r=Object.getPrototypeOf,o=i.slice,n=function(e){return i.concat.apply([],e)},a=i.push,s=i.indexOf,l={},c=l.toString,u=l.hasOwnProperty,d=u.toString,p=d.call(Object),h={},f=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},m=function(e){return null!=e&&e===e.window},g=e.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function _(e,t,i){var r,o,n=(i=i||g).createElement("script");if(n.text=e,t)for(r in v)(o=t[r]||t.getAttribute&&t.getAttribute(r))&&n.setAttribute(r,o);i.head.appendChild(n).parentNode.removeChild(n)}function b(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var y="3.6.3",w=function(e,t){return new w.fn.init(e,t)};function x(e){var t=!!e&&"length"in e&&e.length,i=b(e);return!f(e)&&!m(e)&&("array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e)}w.fn=w.prototype={jquery:y,constructor:w,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.map(this,(function(t,i){return e.call(t,i,t)})))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(w.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(i>=0&&i+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),G=new RegExp(B+"|>"),Y=new RegExp(F),q=new RegExp("^"+j+"$"),Q={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},Z=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),ie=function(e,t){var i="0x"+e.slice(1)-65536;return t||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ne=function(){p()},ae=ye((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{L.apply(I=O.call(w.childNodes),w.childNodes),I[w.childNodes.length].nodeType}catch(Te){L={apply:I.length?function(e,t){D.apply(e,O.call(t))}:function(e,t){for(var i=e.length,r=0;e[i++]=t[r++];);e.length=i-1}}}function se(e,t,r,o){var n,s,c,u,d,f,v,_=t&&t.ownerDocument,w=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return r;if(!o&&(p(t),t=t||h,m)){if(11!==w&&(d=$.exec(e)))if(n=d[1]){if(9===w){if(!(c=t.getElementById(n)))return r;if(c.id===n)return r.push(c),r}else if(_&&(c=_.getElementById(n))&&b(t,c)&&c.id===n)return r.push(c),r}else{if(d[2])return L.apply(r,t.getElementsByTagName(e)),r;if((n=d[3])&&i.getElementsByClassName&&t.getElementsByClassName)return L.apply(r,t.getElementsByClassName(n)),r}if(i.qsa&&!A[e+" "]&&(!g||!g.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(v=e,_=t,1===w&&(G.test(e)||V.test(e))){for((_=ee.test(e)&&ve(t.parentNode)||t)===t&&i.scope||((u=t.getAttribute("id"))?u=u.replace(re,oe):t.setAttribute("id",u=y)),s=(f=a(e)).length;s--;)f[s]=(u?"#"+u:":scope")+" "+be(f[s]);v=f.join(",")}try{if(i.cssSupportsSelector&&!CSS.supports("selector(:is("+v+"))"))throw new Error;return L.apply(r,_.querySelectorAll(v)),r}catch(x){A(e,!0)}finally{u===y&&t.removeAttribute("id")}}}return l(e.replace(H,"$1"),t,r,o)}function le(){var e=[];return function t(i,o){return e.push(i+" ")>r.cacheLength&&delete t[e.shift()],t[i+" "]=o}}function ce(e){return e[y]=!0,e}function ue(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(Te){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var i=e.split("|"),o=i.length;o--;)r.attrHandle[i[o]]=t}function pe(e,t){var i=t&&e,r=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function he(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ce((function(t){return t=+t,ce((function(i,r){for(var o,n=e([],i.length,t),a=n.length;a--;)i[o=n[a]]&&(i[o]=!(r[o]=i[o]))}))}))}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in i=se.support={},n=se.isXML=function(e){var t=e&&e.namespaceURI,i=e&&(e.ownerDocument||e).documentElement;return!Z.test(t||i&&i.nodeName||"HTML")},p=se.setDocument=function(e){var t,o,a=e?e.ownerDocument||e:w;return a!=h&&9===a.nodeType&&a.documentElement?(f=(h=a).documentElement,m=!n(h),w!=h&&(o=h.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",ne,!1):o.attachEvent&&o.attachEvent("onunload",ne)),i.scope=ue((function(e){return f.appendChild(e).appendChild(h.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),i.cssSupportsSelector=ue((function(){return CSS.supports("selector(*)")&&h.querySelectorAll(":is(:jqfake)")&&!CSS.supports("selector(:is(*,:jqfake))")})),i.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),i.getElementsByTagName=ue((function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length})),i.getElementsByClassName=J.test(h.getElementsByClassName),i.getById=ue((function(e){return f.appendChild(e).id=y,!h.getElementsByName||!h.getElementsByName(y).length})),i.getById?(r.filter.ID=function(e){var t=e.replace(te,ie);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var i=t.getElementById(e);return i?[i]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ie);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var i,r,o,n=t.getElementById(e);if(n){if((i=n.getAttributeNode("id"))&&i.value===e)return[n];for(o=t.getElementsByName(e),r=0;n=o[r++];)if((i=n.getAttributeNode("id"))&&i.value===e)return[n]}return[]}}),r.find.TAG=i.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):i.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,r=[],o=0,n=t.getElementsByTagName(e);if("*"===e){for(;i=n[o++];)1===i.nodeType&&r.push(i);return r}return n},r.find.CLASS=i.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(i.qsa=J.test(h.querySelectorAll))&&(ue((function(e){var t;f.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+N+")"),e.querySelectorAll("[id~="+y+"-]").length||g.push("~="),(t=h.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+y+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(i.matchesSelector=J.test(_=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ue((function(e){i.disconnectedMatch=_.call(e,"*"),_.call(e,"[s!='']:x"),v.push("!=",F)})),i.cssSupportsSelector||g.push(":has"),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(f.compareDocumentPosition),b=t||J.test(f.contains)?function(e,t){var i=9===e.nodeType&&e.documentElement||e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(i.contains?i.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},S=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!i.sortDetached&&t.compareDocumentPosition(e)===r?e==h||e.ownerDocument==w&&b(w,e)?-1:t==h||t.ownerDocument==w&&b(w,t)?1:u?R(u,e)-R(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var i,r=0,o=e.parentNode,n=t.parentNode,a=[e],s=[t];if(!o||!n)return e==h?-1:t==h?1:o?-1:n?1:u?R(u,e)-R(u,t):0;if(o===n)return pe(e,t);for(i=e;i=i.parentNode;)a.unshift(i);for(i=t;i=i.parentNode;)s.unshift(i);for(;a[r]===s[r];)r++;return r?pe(a[r],s[r]):a[r]==w?-1:s[r]==w?1:0},h):h},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(p(e),i.matchesSelector&&m&&!A[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var r=_.call(e,t);if(r||i.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(Te){A(t,!0)}return se(t,h,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=h&&p(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=h&&p(e);var o=r.attrHandle[t.toLowerCase()],n=o&&P.call(r.attrHandle,t.toLowerCase())?o(e,t,!m):void 0;return void 0!==n?n:i.attributes||!m?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},se.escape=function(e){return(e+"").replace(re,oe)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],o=0,n=0;if(d=!i.detectDuplicates,u=!i.sortStable&&e.slice(0),e.sort(S),d){for(;t=e[n++];)t===e[n]&&(o=r.push(n));for(;o--;)e.splice(r[o],1)}return u=null,e},o=se.getText=function(e){var t,i="",r=0,n=e.nodeType;if(n){if(1===n||9===n||11===n){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=o(e)}else if(3===n||4===n)return e.nodeValue}else for(;t=e[r++];)i+=o(t);return i},(r=se.selectors={cacheLength:50,createPseudo:ce,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ie),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ie),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&Y.test(i)&&(t=a(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ie).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=k[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+B+"|$)"))&&k(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,i){return function(r){var o=se.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===i:"!="===t?o!==i:"^="===t?i&&0===o.indexOf(i):"*="===t?i&&o.indexOf(i)>-1:"$="===t?i&&o.slice(-i.length)===i:"~="===t?(" "+o.replace(z," ")+" ").indexOf(i)>-1:"|="===t&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,r,o){var n="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,i,l){var c,u,d,p,h,f,m=n!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),_=!l&&!s,b=!1;if(g){if(n){for(;m;){for(p=t;p=p[m];)if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[a?g.firstChild:g.lastChild],a&&_){for(b=(h=(c=(u=(d=(p=g)[y]||(p[y]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===x&&c[1])&&c[2],p=h&&g.childNodes[h];p=++h&&p&&p[m]||(b=h=0)||f.pop();)if(1===p.nodeType&&++b&&p===t){u[e]=[x,h,b];break}}else if(_&&(b=h=(c=(u=(d=(p=t)[y]||(p[y]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===x&&c[1]),!1===b)for(;(p=++h&&p&&p[m]||(b=h=0)||f.pop())&&((s?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++b||(_&&((u=(d=p[y]||(p[y]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]=[x,b]),p!==t)););return(b-=o)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var i,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return o[y]?o(t):o.length>1?(i=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,i){for(var r,n=o(e,t),a=n.length;a--;)e[r=R(e,n[a])]=!(i[r]=n[a])})):function(e){return o(e,0,i)}):o}},pseudos:{not:ce((function(e){var t=[],i=[],r=s(e.replace(H,"$1"));return r[y]?ce((function(e,t,i,o){for(var n,a=r(e,null,o,[]),s=e.length;s--;)(n=a[s])&&(e[s]=!(t[s]=n))})):function(e,o,n){return t[0]=e,r(t,null,n,i),t[0]=null,!i.pop()}})),has:ce((function(e){return function(t){return se(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ie),function(t){return(t.textContent||o(t)).indexOf(e)>-1}})),lang:ce((function(e){return q.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ie).toLowerCase(),function(t){var i;do{if(i=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge((function(){return[0]})),last:ge((function(e,t){return[t-1]})),eq:ge((function(e,t,i){return[i<0?i+t:i]})),even:ge((function(e,t){for(var i=0;it?t:i;--r>=0;)e.push(r);return e})),gt:ge((function(e,t,i){for(var r=i<0?i+t:i;++r1?function(t,i,r){for(var o=e.length;o--;)if(!e[o](t,i,r))return!1;return!0}:e[0]}function xe(e,t,i,r,o){for(var n,a=[],s=0,l=e.length,c=null!=t;s-1&&(n[c]=!(a[c]=d))}}else v=xe(v===a?v.splice(f,v.length):v),o?o(null,a,v,l):L.apply(a,v)}))}function ke(e){for(var t,i,o,n=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],l=a?1:0,u=ye((function(e){return e===t}),s,!0),d=ye((function(e){return R(t,e)>-1}),s,!0),p=[function(e,i,r){var o=!a&&(r||i!==c)||((t=i).nodeType?u(e,i,r):d(e,i,r));return t=null,o}];l1&&we(p),l>1&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(H,"$1"),i,l0,o=e.length>0,n=function(n,a,s,l,u){var d,f,g,v=0,_="0",b=n&&[],y=[],w=c,C=n||o&&r.find.TAG("*",u),k=x+=null==w?1:Math.random()||.1,T=C.length;for(u&&(c=a==h||a||u);_!==T&&null!=(d=C[_]);_++){if(o&&d){for(f=0,a||d.ownerDocument==h||(p(d),s=!m);g=e[f++];)if(g(d,a||h,s)){l.push(d);break}u&&(x=k)}i&&((d=!g&&d)&&v--,n&&b.push(d))}if(v+=_,i&&_!==v){for(f=0;g=t[f++];)g(b,y,a,s);if(n){if(v>0)for(;_--;)b[_]||y[_]||(y[_]=M.call(l));y=xe(y)}L.apply(l,y),u&&!n&&y.length>0&&v+t.length>1&&se.uniqueSort(l)}return u&&(x=k,c=w),b};return i?ce(n):n}(n,o))).selector=e}return s},l=se.select=function(e,t,i,o){var n,l,c,u,d,p="function"==typeof e&&e,h=!o&&a(e=p.selector||e);if(i=i||[],1===h.length){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&m&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ie),t)||[])[0]))return i;p&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(n=Q.needsContext.test(e)?0:l.length;n--&&(c=l[n],!r.relative[u=c.type]);)if((d=r.find[u])&&(o=d(c.matches[0].replace(te,ie),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(n,1),!(e=o.length&&be(l)))return L.apply(i,o),i;break}}return(p||s(e,h))(o,t,!m,i,!t||ee.test(e)&&ve(t.parentNode)||t),i},i.sortStable=y.split("").sort(S).join("")===y,i.detectDuplicates=!!d,p(),i.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))})),ue((function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")}))||de("type|href|height|width",(function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),i.attributes&&ue((function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||de("value",(function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||de(N,(function(e,t,i){var r;if(!i)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(e);w.find=C,w.expr=C.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=C.uniqueSort,w.text=C.getText,w.isXMLDoc=C.isXML,w.contains=C.contains,w.escapeSelector=C.escape;var k=function(e,t,i){for(var r=[],o=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&w(e).is(i))break;r.push(e)}return r},T=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},E=w.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var S=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function P(e,t,i){return f(t)?w.grep(e,(function(e,r){return!!t.call(e,r,e)!==i})):t.nodeType?w.grep(e,(function(e){return e===t!==i})):"string"!=typeof t?w.grep(e,(function(e){return s.call(t,e)>-1!==i})):w.filter(t,e,i)}w.filter=function(e,t,i){var r=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?w.find.matchesSelector(r,e)?[r]:[]:w.find.matches(e,w.grep(t,(function(e){return 1===e.nodeType})))},w.fn.extend({find:function(e){var t,i,r=this.length,o=this;if("string"!=typeof e)return this.pushStack(w(e).filter((function(){for(t=0;t1?w.uniqueSort(i):i},filter:function(e){return this.pushStack(P(this,e||[],!1))},not:function(e){return this.pushStack(P(this,e||[],!0))},is:function(e){return!!P(this,"string"==typeof e&&E.test(e)?w(e):e||[],!1).length}});var I,M=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,i){var r,o;if(!e)return this;if(i=i||I,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:M.exec(e))||!r[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:g,!0)),S.test(r[1])&&w.isPlainObject(t))for(r in t)f(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=g.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):f(e)?void 0!==i.ready?i.ready(e):e(w):w.makeArray(e,this)}).prototype=w.fn,I=w(g);var D=/^(?:parents|prev(?:Until|All))/,L={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),i=t.length;return this.filter((function(){for(var e=0;e-1:1===i.nodeType&&w.find.matchesSelector(i,e))){n.push(i);break}return this.pushStack(n.length>1?w.uniqueSort(n):n)},index:function(e){return e?"string"==typeof e?s.call(w(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return k(e,"parentNode")},parentsUntil:function(e,t,i){return k(e,"parentNode",i)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return k(e,"nextSibling")},prevAll:function(e){return k(e,"previousSibling")},nextUntil:function(e,t,i){return k(e,"nextSibling",i)},prevUntil:function(e,t,i){return k(e,"previousSibling",i)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},(function(e,t){w.fn[e]=function(i,r){var o=w.map(this,t,i);return"Until"!==e.slice(-5)&&(r=i),r&&"string"==typeof r&&(o=w.filter(r,o)),this.length>1&&(L[e]||w.uniqueSort(o),D.test(e)&&o.reverse()),this.pushStack(o)}}));var R=/[^\x20\t\r\n\f]+/g;function N(e){return e}function B(e){throw e}function j(e,t,i,r){var o;try{e&&f(o=e.promise)?o.call(e).done(t).fail(i):e&&f(o=e.then)?o.call(e,t,i):t.apply(void 0,[e].slice(r))}catch(n){i.apply(void 0,[n])}}w.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return w.each(e.match(R)||[],(function(e,i){t[i]=!0})),t}(e):w.extend({},e);var t,i,r,o,n=[],a=[],s=-1,l=function(){for(o=o||e.once,r=t=!0;a.length;s=-1)for(i=a.shift();++s-1;)n.splice(i,1),i<=s&&s--})),this},has:function(e){return e?w.inArray(e,n)>-1:n.length>0},empty:function(){return n&&(n=[]),this},disable:function(){return o=a=[],n=i="",this},disabled:function(){return!n},lock:function(){return o=a=[],i||t||(n=i=""),this},locked:function(){return!!o},fireWith:function(e,i){return o||(i=[e,(i=i||[]).slice?i.slice():i],a.push(i),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},w.extend({Deferred:function(t){var i=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return n.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return w.Deferred((function(t){w.each(i,(function(i,r){var o=f(e[r[4]])&&e[r[4]];n[r[1]]((function(){var e=o&&o.apply(this,arguments);e&&f(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,o?[e]:arguments)}))})),e=null})).promise()},then:function(t,r,o){var n=0;function a(t,i,r,o){return function(){var s=this,l=arguments,c=function(){var e,c;if(!(t=n&&(r!==B&&(s=void 0,l=[e]),i.rejectWith(s,l))}};t?u():(w.Deferred.getStackHook&&(u.stackTrace=w.Deferred.getStackHook()),e.setTimeout(u))}}return w.Deferred((function(e){i[0][3].add(a(0,e,f(o)?o:N,e.notifyWith)),i[1][3].add(a(0,e,f(t)?t:N)),i[2][3].add(a(0,e,f(r)?r:B))})).promise()},promise:function(e){return null!=e?w.extend(e,o):o}},n={};return w.each(i,(function(e,t){var a=t[2],s=t[5];o[t[1]]=a.add,s&&a.add((function(){r=s}),i[3-e][2].disable,i[3-e][3].disable,i[0][2].lock,i[0][3].lock),a.add(t[3].fire),n[t[0]]=function(){return n[t[0]+"With"](this===n?void 0:this,arguments),this},n[t[0]+"With"]=a.fireWith})),o.promise(n),t&&t.call(n,n),n},when:function(e){var t=arguments.length,i=t,r=Array(i),n=o.call(arguments),a=w.Deferred(),s=function(e){return function(i){r[e]=this,n[e]=arguments.length>1?o.call(arguments):i,--t||a.resolveWith(r,n)}};if(t<=1&&(j(e,a.done(s(i)).resolve,a.reject,!t),"pending"===a.state()||f(n[i]&&n[i].then)))return a.then();for(;i--;)j(n[i],s(i),a.reject);return a.promise()}});var U=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(t,i){e.console&&e.console.warn&&t&&U.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)},w.readyException=function(t){e.setTimeout((function(){throw t}))};var F=w.Deferred();function z(){g.removeEventListener("DOMContentLoaded",z),e.removeEventListener("load",z),w.ready()}w.fn.ready=function(e){return F.then(e).catch((function(e){w.readyException(e)})),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==e&&--w.readyWait>0||F.resolveWith(g,[w]))}}),w.ready.then=F.then,"complete"===g.readyState||"loading"!==g.readyState&&!g.documentElement.doScroll?e.setTimeout(w.ready):(g.addEventListener("DOMContentLoaded",z),e.addEventListener("load",z));var H=function(e,t,i,r,o,n,a){var s=0,l=e.length,c=null==i;if("object"===b(i))for(s in o=!0,i)H(e,t,s,i[s],!0,n,a);else if(void 0!==r&&(o=!0,f(r)||(a=!0),c&&(a?(t.call(e,r),t=null):(c=t,t=function(e,t,i){return c.call(w(e),i)})),t))for(;s1,null,!0)},removeData:function(e){return this.each((function(){X.remove(this,e)}))}}),w.extend({queue:function(e,t,i){var r;if(e)return t=(t||"fx")+"queue",r=Z.get(e,t),i&&(!r||Array.isArray(i)?r=Z.access(e,t,w.makeArray(i)):r.push(i)),r||[]},dequeue:function(e,t){t=t||"fx";var i=w.queue(e,t),r=i.length,o=i.shift(),n=w._queueHooks(e,t);"inprogress"===o&&(o=i.shift(),r--),o&&("fx"===t&&i.unshift("inprogress"),delete n.stop,o.call(e,(function(){w.dequeue(e,t)}),n)),!r&&n&&n.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return Z.get(e,i)||Z.access(e,i,{empty:w.Callbacks("once memory").add((function(){Z.remove(e,[t+"queue",i])}))})}}),w.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length\x20\t\r\n\f]*)/i,me=/^$|^module$|\/(?:java|ecma)script/i;de=g.createDocumentFragment().appendChild(g.createElement("div")),(pe=g.createElement("input")).setAttribute("type","radio"),pe.setAttribute("checked","checked"),pe.setAttribute("name","t"),de.appendChild(pe),h.checkClone=de.cloneNode(!0).cloneNode(!0).lastChild.checked,de.innerHTML="",h.noCloneChecked=!!de.cloneNode(!0).lastChild.defaultValue,de.innerHTML="",h.option=!!de.lastChild;var ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var i;return i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?w.merge([e],i):i}function _e(e,t){for(var i=0,r=e.length;i",""]);var be=/<|&#?\w+;/;function ye(e,t,i,r,o){for(var n,a,s,l,c,u,d=t.createDocumentFragment(),p=[],h=0,f=e.length;h-1)o&&o.push(n);else if(c=oe(n),a=ve(d.appendChild(n),"script"),c&&_e(a),i)for(u=0;n=a[u++];)me.test(n.type||"")&&i.push(n);return d}var we=/^([^.]*)(?:\.(.+)|)/;function xe(){return!0}function Ce(){return!1}function ke(e,t){return e===function(){try{return g.activeElement}catch(e){}}()==("focus"===t)}function Te(e,t,i,r,o,n){var a,s;if("object"==typeof t){for(s in"string"!=typeof i&&(r=r||i,i=void 0),t)Te(e,s,i,r,t[s],n);return e}if(null==r&&null==o?(o=i,r=i=void 0):null==o&&("string"==typeof i?(o=r,r=void 0):(o=r,r=i,i=void 0)),!1===o)o=Ce;else if(!o)return e;return 1===n&&(a=o,(o=function(e){return w().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=w.guid++)),e.each((function(){w.event.add(this,t,o,r,i)}))}function Ee(e,t,i){i?(Z.set(e,t,!1),w.event.add(e,t,{namespace:!1,handler:function(e){var r,n,a=Z.get(this,t);if(1&e.isTrigger&&this[t]){if(a.length)(w.event.special[t]||{}).delegateType&&e.stopPropagation();else if(a=o.call(arguments),Z.set(this,t,a),r=i(this,t),this[t](),a!==(n=Z.get(this,t))||r?Z.set(this,t,!1):n={},a!==n)return e.stopImmediatePropagation(),e.preventDefault(),n&&n.value}else a.length&&(Z.set(this,t,{value:w.event.trigger(w.extend(a[0],w.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Z.get(e,t)&&w.event.add(e,t,xe)}w.event={global:{},add:function(e,t,i,r,o){var n,a,s,l,c,u,d,p,h,f,m,g=Z.get(e);if(q(e))for(i.handler&&(i=(n=i).handler,o=n.selector),o&&w.find.matchesSelector(re,o),i.guid||(i.guid=w.guid++),(l=g.events)||(l=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(t){return void 0!==w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(R)||[""]).length;c--;)h=m=(s=we.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),h&&(d=w.event.special[h]||{},h=(o?d.delegateType:d.bindType)||h,d=w.event.special[h]||{},u=w.extend({type:h,origType:m,data:r,handler:i,guid:i.guid,selector:o,needsContext:o&&w.expr.match.needsContext.test(o),namespace:f.join(".")},n),(p=l[h])||((p=l[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,f,a)||e.addEventListener&&e.addEventListener(h,a)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=i.guid)),o?p.splice(p.delegateCount++,0,u):p.push(u),w.event.global[h]=!0)},remove:function(e,t,i,r,o){var n,a,s,l,c,u,d,p,h,f,m,g=Z.hasData(e)&&Z.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(R)||[""]).length;c--;)if(h=m=(s=we.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),h){for(d=w.event.special[h]||{},p=l[h=(r?d.delegateType:d.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=n=p.length;n--;)u=p[n],!o&&m!==u.origType||i&&i.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(p.splice(n,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(e,u));a&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,f,g.handle)||w.removeEvent(e,h,g.handle),delete l[h])}else for(h in l)w.event.remove(e,h+t[c],i,r,!0);w.isEmptyObject(l)&&Z.remove(e,"handle events")}},dispatch:function(e){var t,i,r,o,n,a,s=new Array(arguments.length),l=w.event.fix(e),c=(Z.get(this,"events")||Object.create(null))[l.type]||[],u=w.event.special[l.type]||{};for(s[0]=l,t=1;t=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(n=[],a={},i=0;i-1:w.find(o,this,null,[c]).length),a[o]&&n.push(r);n.length&&s.push({elem:c,handlers:n})}return c=this,l\s*$/g;function Ie(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function Me(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function De(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var i,r,o,n,a,s;if(1===t.nodeType){if(Z.hasData(e)&&(s=Z.get(e).events))for(o in Z.remove(t,"handle events"),s)for(i=0,r=s[o].length;i1&&"string"==typeof g&&!h.checkClone&&Se.test(g))return e.each((function(o){var n=e.eq(o);v&&(t[0]=g.call(this,o,n.html())),Oe(n,t,i,r)}));if(p&&(a=(o=ye(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=a),a||r)){for(l=(s=w.map(ve(o,"script"),Me)).length;d0&&_e(a,!d&&ve(e,"script")),u},cleanData:function(e){for(var t,i,r,o=w.event.special,n=0;void 0!==(i=e[n]);n++)if(q(i)){if(t=i[Z.expando]){if(t.events)for(r in t.events)o[r]?w.event.remove(i,r):w.removeEvent(i,r,t.handle);i[Z.expando]=void 0}i[X.expando]&&(i[X.expando]=void 0)}}}),w.fn.extend({detach:function(e){return Re(this,e,!0)},remove:function(e){return Re(this,e)},text:function(e){return H(this,(function(e){return void 0===e?w.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Oe(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ie(this,e).appendChild(e)}))},prepend:function(){return Oe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ie(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Oe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Oe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(w.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return w.clone(this,e,t)}))},html:function(e){return H(this,(function(e){var t=this[0]||{},i=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ae.test(e)&&!ge[(fe.exec(e)||["",""])[1].toLowerCase()]){e=w.htmlPrefilter(e);try{for(;i=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-n-l-s-.5))||0),l}function $e(e,t,i){var r=je(e),o=(!h.boxSizingReliable()||i)&&"border-box"===w.css(e,"boxSizing",!1,r),n=o,a=He(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Ne.test(a)){if(!i)return a;a="auto"}return(!h.boxSizingReliable()&&o||!h.reliableTrDimensions()&&A(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===w.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===w.css(e,"boxSizing",!1,r),(n=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+Je(e,t,i||(o?"border":"content"),n,r,a)+"px"}function et(e,t,i,r,o){return new et.prototype.init(e,t,i,r,o)}w.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=He(e,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,i,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,n,a,s=Y(t),l=Be.test(t),c=e.style;if(l||(t=qe(s)),a=w.cssHooks[t]||w.cssHooks[s],void 0===i)return a&&"get"in a&&void 0!==(o=a.get(e,!1,r))?o:c[t];"string"==(n=typeof i)&&(o=te.exec(i))&&o[1]&&(i=se(e,t,o),n="number"),null!=i&&i==i&&("number"!==n||l||(i+=o&&o[3]||(w.cssNumber[s]?"":"px")),h.clearCloneStyle||""!==i||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(i=a.set(e,i,r))||(l?c.setProperty(t,i):c[t]=i))}},css:function(e,t,i,r){var o,n,a,s=Y(t);return Be.test(t)||(t=qe(s)),(a=w.cssHooks[t]||w.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,i)),void 0===o&&(o=He(e,t,r)),"normal"===o&&t in Xe&&(o=Xe[t]),""===i||i?(n=parseFloat(o),!0===i||isFinite(n)?n||0:o):o}}),w.each(["height","width"],(function(e,t){w.cssHooks[t]={get:function(e,i,r){if(i)return!Qe.test(w.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?$e(e,t,r):Ue(e,Ze,(function(){return $e(e,t,r)}))},set:function(e,i,r){var o,n=je(e),a=!h.scrollboxSize()&&"absolute"===n.position,s=(a||r)&&"border-box"===w.css(e,"boxSizing",!1,n),l=r?Je(e,t,r,s,n):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(n[t])-Je(e,t,"border",!1,n)-.5)),l&&(o=te.exec(i))&&"px"!==(o[3]||"px")&&(e.style[t]=i,i=w.css(e,t)),Ke(0,i,l)}}})),w.cssHooks.marginLeft=We(h.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(He(e,"marginLeft"))||e.getBoundingClientRect().left-Ue(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),w.each({margin:"",padding:"",border:"Width"},(function(e,t){w.cssHooks[e+t]={expand:function(i){for(var r=0,o={},n="string"==typeof i?i.split(" "):[i];r<4;r++)o[e+ie[r]+t]=n[r]||n[r-2]||n[0];return o}},"margin"!==e&&(w.cssHooks[e+t].set=Ke)})),w.fn.extend({css:function(e,t){return H(this,(function(e,t,i){var r,o,n={},a=0;if(Array.isArray(t)){for(r=je(e),o=t.length;a1)}}),w.Tween=et,et.prototype={constructor:et,init:function(e,t,i,r,o,n){this.elem=e,this.prop=i,this.easing=o||w.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=n||(w.cssNumber[i]?"":"px")},cur:function(){var e=et.propHooks[this.prop];return e&&e.get?e.get(this):et.propHooks._default.get(this)},run:function(e){var t,i=et.propHooks[this.prop];return this.options.duration?this.pos=t=w.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):et.propHooks._default.set(this),this}},et.prototype.init.prototype=et.prototype,et.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=w.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):1!==e.elem.nodeType||!w.cssHooks[e.prop]&&null==e.elem.style[qe(e.prop)]?e.elem[e.prop]=e.now:w.style(e.elem,e.prop,e.now+e.unit)}}},et.propHooks.scrollTop=et.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},w.fx=et.prototype.init,w.fx.step={};var tt,it,rt=/^(?:toggle|show|hide)$/,ot=/queueHooks$/;function nt(){it&&(!1===g.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(nt):e.setTimeout(nt,w.fx.interval),w.fx.tick())}function at(){return e.setTimeout((function(){tt=void 0})),tt=Date.now()}function st(e,t){var i,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)o["margin"+(i=ie[r])]=o["padding"+i]=e;return t&&(o.opacity=o.width=e),o}function lt(e,t,i){for(var r,o=(ct.tweeners[t]||[]).concat(ct.tweeners["*"]),n=0,a=o.length;n1)},removeAttr:function(e){return this.each((function(){w.removeAttr(this,e)}))}}),w.extend({attr:function(e,t,i){var r,o,n=e.nodeType;if(3!==n&&8!==n&&2!==n)return void 0===e.getAttribute?w.prop(e,t,i):(1===n&&w.isXMLDoc(e)||(o=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?ut:void 0)),void 0!==i?null===i?void w.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,i,t))?r:(e.setAttribute(t,i+""),i):o&&"get"in o&&null!==(r=o.get(e,t))?r:null==(r=w.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&A(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,r=0,o=t&&t.match(R);if(o&&1===e.nodeType)for(;i=o[r++];)e.removeAttribute(i)}}),ut={set:function(e,t,i){return!1===t?w.removeAttr(e,i):e.setAttribute(i,i),i}},w.each(w.expr.match.bool.source.match(/\w+/g),(function(e,t){var i=dt[t]||w.find.attr;dt[t]=function(e,t,r){var o,n,a=t.toLowerCase();return r||(n=dt[a],dt[a]=o,o=null!=i(e,t,r)?a:null,dt[a]=n),o}}));var pt=/^(?:input|select|textarea|button)$/i,ht=/^(?:a|area)$/i;function ft(e){return(e.match(R)||[]).join(" ")}function mt(e){return e.getAttribute&&e.getAttribute("class")||""}function gt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(R)||[]}w.fn.extend({prop:function(e,t){return H(this,w.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[w.propFix[e]||e]}))}}),w.extend({prop:function(e,t,i){var r,o,n=e.nodeType;if(3!==n&&8!==n&&2!==n)return 1===n&&w.isXMLDoc(e)||(t=w.propFix[t]||t,o=w.propHooks[t]),void 0!==i?o&&"set"in o&&void 0!==(r=o.set(e,i,t))?r:e[t]=i:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=w.find.attr(e,"tabindex");return t?parseInt(t,10):pt.test(e.nodeName)||ht.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(w.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){w.propFix[this.toLowerCase()]=this})),w.fn.extend({addClass:function(e){var t,i,r,o,n,a;return f(e)?this.each((function(t){w(this).addClass(e.call(this,t,mt(this)))})):(t=gt(e)).length?this.each((function(){if(r=mt(this),i=1===this.nodeType&&" "+ft(r)+" "){for(n=0;n-1;)i=i.replace(" "+o+" "," ");a=ft(i),r!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(e,t){var i,r,o,n,a=typeof e,s="string"===a||Array.isArray(e);return f(e)?this.each((function(i){w(this).toggleClass(e.call(this,i,mt(this),t),t)})):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(i=gt(e),this.each((function(){if(s)for(n=w(this),o=0;o-1)return!0;return!1}});var vt=/\r/g;w.fn.extend({val:function(e){var t,i,r,o=this[0];return arguments.length?(r=f(e),this.each((function(i){var o;1===this.nodeType&&(null==(o=r?e.call(this,i,w(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=w.map(o,(function(e){return null==e?"":e+""}))),(t=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))}))):o?(t=w.valHooks[o.type]||w.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(o,"value"))?i:"string"==typeof(i=o.value)?i.replace(vt,""):null==i?"":i:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:ft(w.text(e))}},select:{get:function(e){var t,i,r,o=e.options,n=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?n+1:o.length;for(r=n<0?l:a?n:0;r-1)&&(i=!0);return i||(e.selectedIndex=-1),n}}}}),w.each(["radio","checkbox"],(function(){w.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=w.inArray(w(e).val(),t)>-1}},h.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),h.focusin="onfocusin"in e;var _t=/^(?:focusinfocus|focusoutblur)$/,bt=function(e){e.stopPropagation()};w.extend(w.event,{trigger:function(t,i,r,o){var n,a,s,l,c,d,p,h,v=[r||g],_=u.call(t,"type")?t.type:t,b=u.call(t,"namespace")?t.namespace.split("."):[];if(a=h=s=r=r||g,3!==r.nodeType&&8!==r.nodeType&&!_t.test(_+w.event.triggered)&&(_.indexOf(".")>-1&&(b=_.split("."),_=b.shift(),b.sort()),c=_.indexOf(":")<0&&"on"+_,(t=t[w.expando]?t:new w.Event(_,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),i=null==i?[t]:w.makeArray(i,[t]),p=w.event.special[_]||{},o||!p.trigger||!1!==p.trigger.apply(r,i))){if(!o&&!p.noBubble&&!m(r)){for(l=p.delegateType||_,_t.test(l+_)||(a=a.parentNode);a;a=a.parentNode)v.push(a),s=a;s===(r.ownerDocument||g)&&v.push(s.defaultView||s.parentWindow||e)}for(n=0;(a=v[n++])&&!t.isPropagationStopped();)h=a,t.type=n>1?l:p.bindType||_,(d=(Z.get(a,"events")||Object.create(null))[t.type]&&Z.get(a,"handle"))&&d.apply(a,i),(d=c&&a[c])&&d.apply&&q(a)&&(t.result=d.apply(a,i),!1===t.result&&t.preventDefault());return t.type=_,o||t.isDefaultPrevented()||p._default&&!1!==p._default.apply(v.pop(),i)||!q(r)||c&&f(r[_])&&!m(r)&&((s=r[c])&&(r[c]=null),w.event.triggered=_,t.isPropagationStopped()&&h.addEventListener(_,bt),r[_](),t.isPropagationStopped()&&h.removeEventListener(_,bt),w.event.triggered=void 0,s&&(r[c]=s)),t.result}},simulate:function(e,t,i){var r=w.extend(new w.Event,i,{type:e,isSimulated:!0});w.event.trigger(r,null,t)}}),w.fn.extend({trigger:function(e,t){return this.each((function(){w.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var i=this[0];if(i)return w.event.trigger(e,t,i,!0)}}),h.focusin||w.each({focus:"focusin",blur:"focusout"},(function(e,t){var i=function(e){w.event.simulate(t,e.target,w.event.fix(e))};w.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,o=Z.access(r,t);o||r.addEventListener(e,i,!0),Z.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,o=Z.access(r,t)-1;o?Z.access(r,t,o):(r.removeEventListener(e,i,!0),Z.remove(r,t))}}}));var yt=e.location,wt={guid:Date.now()},xt=/\?/;w.parseXML=function(t){var i,r;if(!t||"string"!=typeof t)return null;try{i=(new e.DOMParser).parseFromString(t,"text/xml")}catch(o){}return r=i&&i.getElementsByTagName("parsererror")[0],i&&!r||w.error("Invalid XML: "+(r?w.map(r.childNodes,(function(e){return e.textContent})).join("\n"):t)),i};var Ct=/\[\]$/,kt=/\r?\n/g,Tt=/^(?:submit|button|image|reset|file)$/i,Et=/^(?:input|select|textarea|keygen)/i;function At(e,t,i,r){var o;if(Array.isArray(t))w.each(t,(function(t,o){i||Ct.test(e)?r(e,o):At(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,i,r)}));else if(i||"object"!==b(t))r(e,t);else for(o in t)At(e+"["+o+"]",t[o],i,r)}w.param=function(e,t){var i,r=[],o=function(e,t){var i=f(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,(function(){o(this.name,this.value)}));else for(i in e)At(i,e[i],t,o);return r.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&Et.test(this.nodeName)&&!Tt.test(e)&&(this.checked||!he.test(e))})).map((function(e,t){var i=w(this).val();return null==i?null:Array.isArray(i)?w.map(i,(function(e){return{name:t.name,value:e.replace(kt,"\r\n")}})):{name:t.name,value:i.replace(kt,"\r\n")}})).get()}});var St=/%20/g,Pt=/#.*$/,It=/([?&])_=[^&]*/,Mt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Dt=/^(?:GET|HEAD)$/,Lt=/^\/\//,Ot={},Rt={},Nt="*/".concat("*"),Bt=g.createElement("a");function jt(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var r,o=0,n=t.toLowerCase().match(R)||[];if(f(i))for(;r=n[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(i)):(e[r]=e[r]||[]).push(i)}}function Ut(e,t,i,r){var o={},n=e===Rt;function a(s){var l;return o[s]=!0,w.each(e[s]||[],(function(e,s){var c=s(t,i,r);return"string"!=typeof c||n||o[c]?n?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)})),l}return a(t.dataTypes[0])||!o["*"]&&a("*")}function Ft(e,t){var i,r,o=w.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((o[i]?e:r||(r={}))[i]=t[i]);return r&&w.extend(!0,e,r),e}Bt.href=yt.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(yt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Nt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ft(Ft(e,w.ajaxSettings),t):Ft(w.ajaxSettings,e)},ajaxPrefilter:jt(Ot),ajaxTransport:jt(Rt),ajax:function(t,i){"object"==typeof t&&(i=t,t=void 0),i=i||{};var r,o,n,a,s,l,c,u,d,p,h=w.ajaxSetup({},i),f=h.context||h,m=h.context&&(f.nodeType||f.jquery)?w(f):w.event,v=w.Deferred(),_=w.Callbacks("once memory"),b=h.statusCode||{},y={},x={},C="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=Mt.exec(n);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?n:null},setRequestHeader:function(e,t){return null==c&&(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,y[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)k.always(e[k.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||C;return r&&r.abort(t),T(0,t),this}};if(v.promise(k),h.url=((t||h.url||yt.href)+"").replace(Lt,yt.protocol+"//"),h.type=i.method||i.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(R)||[""],null==h.crossDomain){l=g.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Bt.protocol+"//"+Bt.host!=l.protocol+"//"+l.host}catch(E){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=w.param(h.data,h.traditional)),Ut(Ot,h,i,k),c)return k;for(d in(u=w.event&&h.global)&&0==w.active++&&w.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Dt.test(h.type),o=h.url.replace(Pt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(St,"+")):(p=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(xt.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(It,"$1"),p=(xt.test(o)?"&":"?")+"_="+wt.guid+++p),h.url=o+p),h.ifModified&&(w.lastModified[o]&&k.setRequestHeader("If-Modified-Since",w.lastModified[o]),w.etag[o]&&k.setRequestHeader("If-None-Match",w.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||i.contentType)&&k.setRequestHeader("Content-Type",h.contentType),k.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Nt+"; q=0.01":""):h.accepts["*"]),h.headers)k.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(f,k,h)||c))return k.abort();if(C="abort",_.add(h.complete),k.done(h.success),k.fail(h.error),r=Ut(Rt,h,i,k)){if(k.readyState=1,u&&m.trigger("ajaxSend",[k,h]),c)return k;h.async&&h.timeout>0&&(s=e.setTimeout((function(){k.abort("timeout")}),h.timeout));try{c=!1,r.send(y,T)}catch(E){if(c)throw E;T(-1,E)}}else T(-1,"No Transport");function T(t,i,a,l){var d,p,g,y,x,C=i;c||(c=!0,s&&e.clearTimeout(s),r=void 0,n=l||"",k.readyState=t>0?4:0,d=t>=200&&t<300||304===t,a&&(y=function(e,t,i){for(var r,o,n,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){l.unshift(o);break}if(l[0]in i)n=l[0];else{for(o in i){if(!l[0]||e.converters[o+" "+l[0]]){n=o;break}a||(a=o)}n=n||a}if(n)return n!==l[0]&&l.unshift(n),i[n]}(h,k,a)),!d&&w.inArray("script",h.dataTypes)>-1&&w.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),y=function(e,t,i,r){var o,n,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(n=u.shift();n;)if(e.responseFields[n]&&(i[e.responseFields[n]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=n,n=u.shift())if("*"===n)n=l;else if("*"!==l&&l!==n){if(!(a=c[l+" "+n]||c["* "+n]))for(o in c)if((s=o.split(" "))[1]===n&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[o]:!0!==c[o]&&(n=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(E){return{state:"parsererror",error:a?E:"No conversion from "+l+" to "+n}}}return{state:"success",data:t}}(h,y,k,d),d?(h.ifModified&&((x=k.getResponseHeader("Last-Modified"))&&(w.lastModified[o]=x),(x=k.getResponseHeader("etag"))&&(w.etag[o]=x)),204===t||"HEAD"===h.type?C="nocontent":304===t?C="notmodified":(C=y.state,p=y.data,d=!(g=y.error))):(g=C,!t&&C||(C="error",t<0&&(t=0))),k.status=t,k.statusText=(i||C)+"",d?v.resolveWith(f,[p,C,k]):v.rejectWith(f,[k,C,g]),k.statusCode(b),b=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[k,h,d?p:g]),_.fireWith(f,[k,C]),u&&(m.trigger("ajaxComplete",[k,h]),--w.active||w.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,i){return w.get(e,t,i,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],(function(e,t){w[t]=function(e,i,r,o){return f(i)&&(o=o||r,r=i,i=void 0),w.ajax(w.extend({url:e,type:t,dataType:o,data:i,success:r},w.isPlainObject(e)&&e))}})),w.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),w._evalUrl=function(e,t,i){return w.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){w.globalEval(e,t,i)}})},w.fn.extend({wrapAll:function(e){var t;return this[0]&&(f(e)&&(e=e.call(this[0])),t=w(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return f(e)?this.each((function(t){w(this).wrapInner(e.call(this,t))})):this.each((function(){var t=w(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)}))},wrap:function(e){var t=f(e);return this.each((function(i){w(this).wrapAll(t?e.call(this,i):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){w(this).replaceWith(this.childNodes)})),this}}),w.expr.pseudos.hidden=function(e){return!w.expr.pseudos.visible(e)},w.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(t){}};var zt={0:200,1223:204},Ht=w.ajaxSettings.xhr();h.cors=!!Ht&&"withCredentials"in Ht,h.ajax=Ht=!!Ht,w.ajaxTransport((function(t){var i,r;if(h.cors||Ht&&!t.crossDomain)return{send:function(o,n){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)s.setRequestHeader(a,o[a]);i=function(e){return function(){i&&(i=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?n(0,"error"):n(s.status,s.statusText):n(zt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=i(),r=s.onerror=s.ontimeout=i("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout((function(){i&&r()}))},i=i("abort");try{s.send(t.hasContent&&t.data||null)}catch(l){if(i)throw l}},abort:function(){i&&i()}}})),w.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return w.globalEval(e),e}}}),w.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),w.ajaxTransport("script",(function(e){var t,i;if(e.crossDomain||e.scriptAttrs)return{send:function(r,o){t=w("