var e=Object.defineProperty,t=Object.defineProperties,r=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,a=(t,r,i)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,s=(e,t)=>{for(var r in t||(t={}))l.call(t,r)&&a(e,r,t[r]);if(o)for(var r of o(t))n.call(t,r)&&a(e,r,t[r]);return e},c=(e,i)=>t(e,r(i)),d=(e,t,r)=>(a(e,"symbol"!=typeof t?t+"":t,r),r);const u="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");class p{static uuid(e="D"){let t,r=[];r[8]=r[13]=r[18]=r[23]="-",r[14]="4";for(let i=0;i<36;i++)r[i]||(t=0|16*Math.random(),r[i]=u[19==i?3&t|8:t]);return e+"-"+r.join("")}static merge(e,...t){let r,i,o,l;for(i=0,o=t.length;i0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(r)}static addClass(e,t){if(void 0!==e.classList){let r=p.splitWords(t);for(let t=0,i=r.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空间信息\n\t\t\t刷帧率:|\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 r=t.canvas.clientWidth,i=t.canvas.clientHeight,o=t.camera.getPickRay(new Cesium.Cartesian2(r/2|0,i-1)),l=t.camera.getPickRay(new Cesium.Cartesian2(1+r/2|0,i-1)),n=t.globe,a=n.pick(o,t),s=n.pick(l,t);if(a&&s){let t=new Cesium.EllipsoidGeodesic,r=n.ellipsoid.cartesianToCartographic(a),i=n.ellipsoid.cartesianToCartographic(s);t.setEndPoints(r,i);let o=t.surfaceDistance,l=e.closest(o/10);e._scale=l<1?1e3*l+"m":l+"km"}document.getElementsByClassName("scale-border")[0].innerText=e._scale,document.getElementsByClassName("cesium-performanceDisplay-ms").length>0&&(document.getElementById("status_ms").innerText=document.getElementsByClassName("cesium-performanceDisplay-ms")[0].innerText),document.getElementsByClassName("cesium-performanceDisplay-fps").length>0&&(document.getElementById("status_fps").innerText=document.getElementsByClassName("cesium-performanceDisplay-fps")[0].innerText)}}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)),this._domContainer.innerHTML=this.statusDom}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(e){let r=t._getScreenClickPositionAndHeight(e.endPosition);Cesium.defined(r)&&r.lng&&(t._posX=r.lng.toFixed(8),t._posY=r.lat.toFixed(8),t._posZ=r.height.toFixed(2),document.getElementById("status_spaceInfo").innerHTML=`\n\t\t\t\t经度:${t._posX}\n\t\t\t\t纬度:${t._posY}\n\t\t\t\t高度:${t._posZ}\n\t\t\t\t`)}),Cesium.ScreenSpaceEventType.MOUSE_MOVE)}initScale(e,t){const r=e.scene;t?r.postRender.addEventListener(this._scaleListener):r.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 r=t[0],i=Math.abs(r-e);for(let o=1;o{new Cesium.sampleTerrain(i,t.level,[r]).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 r=[],i=t.points;for(let l=0;l{new Cesium.sampleTerrain(o,t.level,r).then((function(t){t&&e(t)}))}))},getHeigthByPointsMostDetailed:function(e,t){if(!e)throw new Cesium.DeveloperError("no viewer object!");if(!Cesium.defined(t))throw new Cesium.DeveloperError("points is required.");let r=[];for(let o=0;o{new Cesium.sampleTerrainMostDetailed(i,r).then((function(t){e(t)}))}))},getHeigthByPointMostDetailed:function(e,t){if(!e)throw new Cesium.DeveloperError("no viewer object!");if(!Cesium.defined(t))throw new Cesium.DeveloperError("points is required.");let r=Cesium.Cartographic.fromDegrees(t[0],t[1]),i=e.terrainProvider;return new Promise(((e,t)=>{new Cesium.sampleTerrainMostDetailed(i,r).then((function(t){e(t)}))}))},createTooltip:b});class _{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 g(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 r=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 i(e,t,r){var i=new Cesium.JulianDate;Cesium.JulianDate.addHours(e,8,i);var o,l=Cesium.JulianDate.toGregorianDate(i);if(r)o="";else if(o=new Date(l.year,l.month-1,l.day),o=l.year+"-"+o.toLocaleString("zh-cn",{month:"short"}).split("月").join("-")+l.day+" ",t||l.hour+l.minute===0)return o;let n,a,s;return n=l.hour<10?`0${l.hour}`:l.hour,a=l.minute<10?`0${l.minute}`:l.minute,s=l.second<10?`0${l.second}`:l.second,o+n+":"+a+":"+s}return r._cesiumWidget._creditContainer.style.display="none",r.scene.globe.show=!0,r.scene.globe.depthTestAgainstTerrain=!0,r.scene.globe.enableLighting=!1,r.scene.requestRenderMode=!1,r.scene.debugShowFramesPerSecond=!0,r.scene.skyAtmosphere.show=!1,r.scene.skyBox.show=!0,r.scene.sun.show=!0,r.scene.moon.show=!1,r.cesiumWidget.screenSpaceEventHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),r.animation.viewModel.dateFormatter=i,r.animation.viewModel.timeFormatter=function(e,t){return i(e,t,!0)},r.timeline.makeLabel=i,r}_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(_.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,r)=>{let i=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),l=this._entities.add({id:"fullMapRectangle",name:"fullMapRectangle",rectangle:{coordinates:o,material:Cesium.Color.GREEN.withAlpha(0),height:10,outline:!1}});this._viewer.flyTo(l,{duration:e.duration,offset:{heading:Cesium.Math.toRadians(e.heading),pitch:Cesium.Math.toRadians(e.pitch),range:e.range}}).then((function(r){r&&(e.isRemove&&l&&(i._entities.remove(l),l=null),t(!0))})).catch((function(e){console.log(e)}))}))},setMapNorth(){let e=this._viewer,t=Cesium.Math.toDegrees(e.camera.pitch).toFixed(0);var r=e.camera.pickEllipsoid(new Cesium.Cartesian2(e.canvas.clientWidth/2,e.canvas.clientHeight/2)),i=Cesium.Ellipsoid.WGS84.cartesianToCartographic(r);let o=180*i.longitude/Math.PI,l=180*i.latitude/Math.PI,n=180*e.camera.positionCartographic.longitude/Math.PI,a=180*e.camera.positionCartographic.latitude/Math.PI,s=e.camera.positionCartographic.height.toFixed(0);var c=Cesium.Cartographic.fromDegrees(n,a,s),d=Cesium.Cartographic.fromDegrees(o,l,0),u=new Cesium.EllipsoidGeodesic;u.setEndPoints(c,d);var p=u.surfaceDistance;let h=Math.sqrt(Math.pow(p,2)+Math.pow(s-0,2));this.centerEntity&&e.entities.remove(this.centerEntity),this.centerEntity=e.entities.add({position:Cesium.Cartesian3.fromDegrees(o,l,0),point:{color:Cesium.Color.RED,pixelSize:1}});let g=new Cesium.HeadingPitchRange(Cesium.Math.toRadians(0),Cesium.Math.toRadians(t),h);e.zoomTo(this.centerEntity,g)},setMapSpinByPoint(e,t){let r=this._viewer;if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");(t=t||{}).speed=Cesium.defaultValue(t.speed,30);var i=e;i=e instanceof Cesium.Cartesian3?e:Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0);var o=r.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:i})),l=360/t.speed,n=r.camera.heading,a=r.camera.pitch;t.pitch&&(a=Cesium.Math.toRadians(t.pitch));var s=r.camera.positionCartographic.height;t.pitch&&(a=t.height);var c=Cesium.JulianDate.fromDate(new Date);r.clock.startTime=c.clone(),r.clock.currentTime=c.clone(),r.clock.clockRange=Cesium.ClockRange.CLAMPED,r.clock.clockStep=Cesium.ClockStep.SYSTEM_CLOCK;var d=function(){var e=Cesium.JulianDate.secondsDifference(r.clock.currentTime,r.clock.startTime),t=Cesium.Math.toRadians(e*l)+n;r.scene.camera.setView({destination:i,orientation:{heading:t,pitch:a}}),r.scene.camera.moveBackward(s),Cesium.JulianDate.compare(r.clock.currentTime,r.clock.stopTime)>=0&&r.clock.onTick.removeEventListener(d),new Cesium.ScreenSpaceEventHandler(r.scene.canvas).setInputAction((function(e){r.clock.onTick.removeEventListener(d),r.entities.remove(o)}),Cesium.ScreenSpaceEventType.LEFT_DOWN)};r.clock.onTick.addEventListener(d)}});const y=52.35987755982988,x=3.141592653589793,w=.006693421622965943;class k{static BD09ToGCJ02(e,t){let r=+e-.0065,i=+t-.006,o=Math.sqrt(r*r+i*i)-2e-5*Math.sin(i*y),l=Math.atan2(i,r)-3e-6*Math.cos(r*y);return[o*Math.cos(l),o*Math.sin(l)]}static GCJ02ToBD09(e,t){t=+t,e=+e;let r=Math.sqrt(e*e+t*t)+2e-5*Math.sin(t*y),i=Math.atan2(t,e)+3e-6*Math.cos(e*y);return[r*Math.cos(i)+.0065,r*Math.sin(i)+.006]}static WGS84ToGCJ02(e,t){if(t=+t,e=+e,this.out_of_china(e,t))return[e,t];{let r=this.delta(e,t);return[e+r[0],t+r[1]]}}static GCJ02ToWGS84(e,t){if(t=+t,e=+e,this.out_of_china(e,t))return[e,t];{let r=this.delta(e,t);return[2*e-(e+r[0]),2*t-(t+r[1])]}}static delta(e,t){let r=this.transformLng(e-105,t-35),i=this.transformLat(e-105,t-35);const o=t/180*x;let l=Math.sin(o);l=1-w*l*l;const n=Math.sqrt(l);return r=180*r/(6378245/n*Math.cos(o)*x),i=180*i/(6378245*(1-w)/(l*n)*x),[r,i]}static transformLng(e,t){let r=300+(e=+e)+2*(t=+t)+.1*e*e+.1*e*t+.1*Math.sqrt(Math.abs(e));return r+=2*(20*Math.sin(6*e*x)+20*Math.sin(2*e*x))/3,r+=2*(20*Math.sin(e*x)+40*Math.sin(e/3*x))/3,r+=2*(150*Math.sin(e/12*x)+300*Math.sin(e/30*x))/3,r}static transformLat(e,t){let r=2*(e=+e)-100+3*(t=+t)+.2*t*t+.1*e*t+.2*Math.sqrt(Math.abs(e));return r+=2*(20*Math.sin(6*e*x)+20*Math.sin(2*e*x))/3,r+=2*(20*Math.sin(t*x)+40*Math.sin(t/3*x))/3,r+=2*(160*Math.sin(t/12*x)+320*Math.sin(t*x/30))/3,r}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 r=e.scene.drillPick(t),i=null,o=!1,l=!1;for(let a in r){let l=r[a];if((l&&l.primitive instanceof Cesium.Cesium3DTileFeature||l&&l.primitive instanceof Cesium.Cesium3DTileset||l&&l.primitive instanceof Cesium.Model)&&(o=!0),o&&(e.scene.pick(t),i=e.scene.pickPosition(t),i)){let e=Cesium.Cartographic.fromCartesian(i);e.height<0&&(e.height=0);let t=Cesium.Math.toDegrees(e.longitude),r=Cesium.Math.toDegrees(e.latitude),o=e.height;i=this.transformWGS84ToCartesian({lng:t,lat:r,alt:o})}}let n=e.terrainProvider instanceof Cesium.EllipsoidTerrainProvider;if(!o&&!n){let r=e.scene.camera.getPickRay(t);if(!r)return null;i=e.scene.globe.pick(r,e.scene),l=!0}if(o||l||!n||(i=e.scene.camera.pickEllipsoid(t,e.scene.globe.ellipsoid)),i){let e=this.transformCartesianToWGS84(i);return e.alt<0&&(i=this.transformWGS84ToCartesian(e,.1)),i}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,r=[];for(let i=0;i{this._transformProjection(i)})),this._addImageryProvider(e.id,i),this.setLayersStyle({serviceId:e.id,alpha:e.alpha}),t&&t(e.id)},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 r={url:e.url};e.minimumLevel&&(r.minimumLevel=e.minimumLevel),e.maximumLevel?r.maximumLevel=e.maximumLevel:r.maximumLevel=18;var i=new Cesium.TileMapServiceImageryProvider(r);this._addImageryProvider(e.id,i),this.setLayersStyle({serviceId:e.id,alpha:e.alpha}),t&&t(e.id)},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 r={url:e.url,layer:e.layers,style:e.style,tileMatrixSetID:e.tileMatrixSetID,format:Cesium.defaultValue(e.format,"image/png")};e.tileMatrixLabels&&(r.tileMatrixLabels=e.tileMatrixLabels),e.minimumLevel&&(r.minimumLevel=e.minimumLevel),e.maximumLevel?r.maximumLevel=e.maximumLevel:r.maximumLevel=18;let i=new Cesium.WebMapTileServiceImageryProvider(r);this._addImageryProvider(e.id,i),this.setLayersStyle({serviceId:e.id,alpha:e.alpha}),t&&t(e.id)},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 r={url:e.url,layers:e.layers};e.parameters?r.parameters=e.parameters:r.parameters={service:"WMS",transparent:!0,request:"GetMap",format:"image/png"},e.minimumLevel&&(r.minimumLevel=e.minimumLevel),e.maximumLevel?r.maximumLevel=e.maximumLevel:r.maximumLevel=18;let i=new Cesium.WebMapServiceImageryProvider(r);this._addImageryProvider(e.id,i),this.setLayersStyle({serviceId:e.id,alpha:e.alpha}),t&&t(e.id)},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 r={url:e.url};e.layers&&(r.layers=e.layers);let i=new Cesium.ArcGisMapServerImageryProvider(r);this._addImageryProvider(e.id,i),this.setLayersStyle({serviceId:e.id,alpha:e.alpha}),t&&t(e.id)},addCesium3DTileset:function(e,t){let r=this;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};new Cesium.Cesium3DTileset(i).readyPromise.then((i=>{console.log("加载完成"),window[e.id]=i,r._addScenePrimitives(i),r.set3DTilePosition({serviceId:e.id,height:e.height}),r.set3DTileStyle({serviceId:e.id,alpha:e.alpha}),t&&t(e.id)})).catch((function(e){console.log(e)}))},addCesium3DTilesetBm:function(e,t){let r=this;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};new Cesium.Cesium3DTileset(i).readyPromise.then((i=>{console.log("加载完成"),window[e.id]=i,r._addScenePrimitives(i),r.set3DTileBMStyle({serviceId:e.id,color:e.color}),t&&t(e.id)})).catch((function(e){console.log(e)}))},addPolygonImageMaterial:function(e,t){if(!Cesium.defined(e.points))throw new Cesium.DeveloperError("options.points is required.");e.points.length<3&&reject("面对象,点数至少3个");let r=[];r=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:r,material:this.material,classificationType:this.classificationType}}),t&&t(e.id)},addEntitiesGltf:function(e,t){let r,i=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),r=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),l=e.pitch,n=e.roll,a=new Cesium.HeadingPitchRoll(o,l,n),s=i.entities.add({id:e.id,position:r,orientation:Cesium.Transforms.headingPitchRollQuaternion(r,a),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&&(s.model.minimumPixelSize=e.minimumPixelSize),e.maximumScale&&(s.model.maximumScale=e.maximumScale),e.silhouetteColor&&(s.model.silhouetteColor=new Cesium.Color(e.silhouetteColor[0]/255,e.silhouetteColor[1]/255,e.silhouetteColor[2]/255,e.silhouetteColor[3])),window[e.id]=s,t&&t(e.id)},addScenePrimitivesGltf(e,t){let r,i=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),r=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(r);let l=i.scene.primitives.add(Cesium.Model.fromGltf({show:!0,url:e.url,modelMatrix:o,lightColor:new Cesium.Cartesian3(10,10,10),debugWireframe:!1,debugShowBoundingVolume:!1}));l.readyPromise.then((function(){var e=Cesium.Matrix4.fromRotationTranslation(Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(0)));Cesium.Matrix4.multiply(l.modelMatrix,e,l.modelMatrix)})),window[e.id]=l,t&&t(e.id)},addPolylineByGeoJson(e,t){let r=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((i=>{r._viewer.dataSources.add(i),i.name=e.id;let o=i.entities.values,l=new C(e);for(var n=0;n{if(t.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},o.scaleByDistance&&(o.scaleByDistance.near=Cesium.defaultValue(o.scaleByDistance.near,0),o.scaleByDistance.nearValue=Cesium.defaultValue(o.scaleByDistance.nearValue,0),o.scaleByDistance.far=Cesium.defaultValue(o.scaleByDistance.far,1),o.scaleByDistance.farValue=Cesium.defaultValue(o.scaleByDistance.farValue,0),t.billboard.scaleByDistance=new Cesium.NearFarScalar(o.scaleByDistance.near,o.scaleByDistance.nearValue,o.scaleByDistance.far,o.scaleByDistance.farValue)),e.label){let r=e.label||{};r.text=Cesium.defaultValue(r.text,""),r.textField=Cesium.defaultValue(r.textField,""),r.font=Cesium.defaultValue(r.font,"24px Helvetica"),r.fillColor instanceof Array?r.fillColor=new Cesium.Color(r.fillColor[0]/255,r.fillColor[1]/255,r.fillColor[2]/255,r.fillColor[3]):"string"==typeof e.color?r.fillColor=new Cesium.Color.fromCssColorString(r.fillColor):r.fillColor=new Cesium.Color.fromCssColorString("#ff0000"),r.outlineColor instanceof Array?r.outlineColor=new Cesium.Color(r.outlineColor[0]/255,r.outlineColor[1]/255,r.outlineColor[2]/255,r.outlineColor[3]):r.outlineColor instanceof String?r.outlineColor=new Cesium.Color.fromCssColorString(r.outlineColor):r.outlineColor=new Cesium.Color.fromCssColorString("#FFFF00"),r.outlineWidth=Cesium.defaultValue(r.outlineWidth,1),r.showBackground=Cesium.defaultValue(r.showBackground,!1),r.backgroundColor instanceof Array?r.backgroundColor=new Cesium.Color(r.backgroundColor[0]/255,r.backgroundColor[1]/255,r.backgroundColor[2]/255,r.backgroundColor[3]):r.backgroundColor instanceof String?r.backgroundColor=new Cesium.Color.fromCssColorString(r.backgroundColor):r.backgroundColor=new Cesium.Color.fromCssColorString("#FFFF00"),r.pixelOffset=Cesium.defaultValue(r.pixelOffset,0),r.scale=Cesium.defaultValue(r.scale,1),r.near=Cesium.defaultValue(r.near,150),r.nearValue=Cesium.defaultValue(r.nearValue,1),r.far=Cesium.defaultValue(r.far,2400),r.farValue=Cesium.defaultValue(r.farValue,0);let o=r.text;t.properties[r.textField]&&(o=t.properties[r.textField]._value),""===o&&(o=(i+1).toString()),t.label={text:o.toString(),font:r.font,fillColor:r.fillColor,outlineColor:r.outlineColor,outlineWidth:r.outlineWidth,style:Cesium.LabelStyle.FILL_AND_OUTLINE,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,showBackground:r.showBackground,backgroundColor:r.backgroundColor,backgroundPadding:new Cesium.Cartesian2(6,6),disableDepthTestDistance:Number.POSITIVE_INFINITY,pixelOffset:new Cesium.Cartesian2(0,r.pixelOffset),scale:r.scale},r.scaleByDistance&&(r.scaleByDistance.near=Cesium.defaultValue(r.scaleByDistance.near,0),r.scaleByDistance.nearValue=Cesium.defaultValue(r.scaleByDistance.nearValue,0),r.scaleByDistance.far=Cesium.defaultValue(r.scaleByDistance.far,1),r.scaleByDistance.farValue=Cesium.defaultValue(r.scaleByDistance.farValue,0),t.label.scaleByDistance=new Cesium.NearFarScalar(r.scaleByDistance.near,r.scaleByDistance.nearValue,r.scaleByDistance.far,r.scaleByDistance.farValue))}})),t&&t(e.id)}))},addBillboardByJson(e,t){let r=this._viewer;if(!Cesium.defined(e.url))throw resolve("options.url is required."),new Cesium.DeveloperError("options.url is required.");e.id=e.id||this._guid();let i=e.billboard||{};i.imgUrl=Cesium.defaultValue(i.imgUrl,"jt3dSDK/imgs/point/point3.png"),i.scale=Cesium.defaultValue(i.scale,1),i.pixelOffset=Cesium.defaultValue(i.pixelOffset,0),fetch(e.url).then((e=>e.json())).then((o=>{for(var l=0;l{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,r=t.featuresLength;for(let i=0;i{const i=r._sourcePrograms[t],o=r._rendererResources.sourceShaders[i.fragmentShader];let l="";-1!==o.indexOf(" v_positionEC;")?l="v_positionEC":-1!==o.indexOf(" v_pos;")&&(l="v_pos");const n=`vec4(${e.color.toString()})`;r._rendererResources.sourceShaders[i.fragmentShader]=`\n\t\t\t\t\t\t\t\t\t\t\t\t varying vec3 ${l};\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(${l},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 = ${n};\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`})),r._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.");e.height=Cesium.defaultValue(e.height,0);let t=window[e.serviceId].boundingSphere,r=Cesium.Cartographic.fromCartesian(t.center),i=Cesium.Cartesian3.fromRadians(r.longitude,r.latitude,e.height),o=Cesium.Cartesian3.fromRadians(r.longitude,r.latitude,0),l=Cesium.Cartesian3.subtract(i,o,new Cesium.Cartesian3);window[e.serviceId].modelMatrix=Cesium.Matrix4.fromTranslation(l),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(E.prototype,{removeImageryProvider(e){return new Promise(((t,r)=>{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,r)=>{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,r)=>{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(((r,i)=>{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,i)=>{t.dataSources.remove(e),i===o.length-1&&r(!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 r in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),t)new RegExp("("+r+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?t[r]:("00"+t[r]).substr((""+t[r]).length)));return e};class T{constructor({viewer:e,url:t,opacity:r=.75,show:i=!0}={}){this._viewer=e,this._url=t,this._opacity=r,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=i,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 r=this._calculateRectangleOutlineCoordinates(e),i=new Cesium.Entity({name:this._renderName,polyline:{positions:r,material:t,width:10,clampToGround:!0}});this._entities.add(i)}_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,r)=>{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,r){return`${this._renderName}_${e}_${t}_${r}`}_asyncProjectionTiles(e){let t=[];for(let o of e){let e=this._projectionTile(o);for(let r of e){let e=this._createKey(r.x,r.y,r.level);if(void 0===t.find((e=>e.x===r.x&&e.y===r.y))){let i=!1;for(let o of t)if(Cesium.Rectangle.intersection(o.rectangle,r.rectangle)){o.childTiles.push(e),i=!0;break}i||t.push({key:e,x:r.x,y:r.y,level:r.level,rectangle:r.rectangle,childTiles:[]})}}}let r=t.length,i=[];for(;r--;){let e=t[r];if(e.childTiles.length>=1){let o=this._createFourTiles(e);for(let e of o)i.push(e);t.splice(r,1)}}for(let o of i)t.push(o);t.sort((function(e,t){return parseInt(e.level)-parseInt(t.level)})),this._renderTilesToViewer(t)}_createTileByRectangleAndLevel(e,t){let r=Cesium.Rectangle.center(e),i=parseInt(t)+1,o=this._provider.tilingScheme.positionToTileXY(r,i);if(void 0!==o)return{key:this._createKey(o.x,o.y,i),x:o.x,y:o.y,level:i,rectangle:e,childTiles:[]}}_createFourTiles(e){let t=[],r=[],i=e.rectangle;t.push(Cesium.Rectangle.subsection(i,0,0,.5,.5)),t.push(Cesium.Rectangle.subsection(i,.5,0,1,.5)),t.push(Cesium.Rectangle.subsection(i,0,.5,.5,1)),t.push(Cesium.Rectangle.subsection(i,.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&&r.push(t)}return r}_renderTilesToViewer(e){let t=this,r=[];for(let[i,o]of this._renderEntities){void 0===e.find((e=>e.key===i))&&r.push(i)}for(let i of r)this._renderEntities.delete(i),this._entities.removeById(i);for(let i of e)if(!this._renderEntities.has(i.key)){let e=this._renderSimpleTileToViewer(i);this._renderEntities.set(i.key,e);let r=new Blob([`(${S.toString()})()`]),o=new Worker(URL.createObjectURL(r));o.postMessage({key:i.key,url:this._url,x:i.x,y:i.y,level:i.level}),o.onmessage=function(e){t._console(`render x:${e.data.x} y:${e.data.y} level:${e.data.level}`);let r=t._entities.getById(e.data.key);if(void 0!==r){e.data.key;const i=t._createCanvas(e.data,e.data.image,t._isDebug);r.rectangle.material=i}o.terminate()}}this._isUpdateTile=!0}_renderSimpleTileToViewer(e){const t=this._createCanvas(e,void 0,this._isDebug);let r=this._calculateRectangleOutlineCoordinates(e.rectangle),i=new Cesium.Entity({name:this._renderName,id:e.key,rectangle:{coordinates:e.rectangle,material:t},polyline:{positions:r,material:Cesium.Color.YELLOW.withAlpha(this._isDebug?1:0),width:1,clampToGround:!0}});return this._entities.add(i)}_createCanvas(e,t,r){let i=this._provider;const o=document.createElement("canvas");o.width=i.tileWidth,o.height=i.tileHeight;const l=o.getContext("2d");return void 0!==t&&(l.globalAlpha=this._opacity,l.drawImage(event.data.image,0,0,o.width,o.height)),void 0!==r&&!0===r&&(l.globalAlpha=1,l.font="20px Arial",l.textAlign="center",l.fillStyle="rgba(255,255,0)",l.strokeStyle="rgba(255,255,255,1)",l.lineWidth=2,l.strokeText(`L: ${e.level}`,126,86),l.fillText(`L: ${e.level}`,126,86),l.strokeText(`X: ${e.x}`,126,136),l.fillText(`X: ${e.x}`,126,136),l.strokeText(`Y: ${e.y}`,126,186),l.fillText(`Y: ${e.y}`,126,186)),o}_projectionTile(e){let t=e._rectangle,r=parseInt(e.level),i=this._provider.tilingScheme,o=[];if(void 0===Cesium.Rectangle.intersection(t,this._rectangle))return o;let l=i.positionToTileXY(Cesium.Rectangle.northwest(t),r),n=i.positionToTileXY(Cesium.Rectangle.southeast(t),r);if(void 0!==l&&void 0!==n)for(let a=l.x;a<=n.x;a++)for(let e=l.y;e<=n.y;e++){let t=i.tileXYToRectangle(a,e,r);Cesium.Rectangle.intersection(t,this._rectangle)&&o.push({x:a,y:e,level:r,rectangle:t})}else if(void 0!==l){let e=i.tileXYToRectangle(l.x,l.y,r);Cesium.Rectangle.intersection(e,this._rectangle)&&o.push({x:l.x,y:l.y,level:r,rectangle:e})}else if(void 0!==n){let e=i.tileXYToRectangle(n.x,n.y,r);Cesium.Rectangle.intersection(e,this._rectangle)&&o.push({x:n.x,y:n.y,level:r,rectangle:e})}return o}_calculateRectangleOutlineCoordinates(e){let t=Cesium.Rectangle.southeast(e),r=Cesium.Cartographic.toCartesian(t),i=Cesium.Rectangle.southwest(e),o=Cesium.Cartographic.toCartesian(i),l=Cesium.Rectangle.northeast(e),n=Cesium.Cartographic.toCartesian(l),a=Cesium.Rectangle.northwest(e);return[o,r,n,Cesium.Cartographic.toCartesian(a),o]}_removeEntityByName(e){var t=this._entities;if(t&&t.values){for(var r=[],i=0;i>>",r+" Not found")},i.send()}}Object.assign(T.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 A{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._locationEntity=null}}Object.assign(A.prototype,{flyToPoint:function(e){return new Promise(((t,r)=>{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 i=new Cesium.BoundingSphere(Cesium.Cartesian3.fromDegrees(e.longitude,e.latitude,e.height),0);this._viewer.camera.flyToBoundingSphere(i,{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,r){return new Promise(((i,o)=>{let l=this;if(r=r||{},void 0===e||void 0===e.length)return void o("输入的坐标集合异常!");let n=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));switch(l._locationEntity&&l._viewer.entities.remove(l._locationEntity),t){case"point":l._locationEntity=l._viewer.entities.add({position:n[0],point:{pixelSize:1}});break;case"polyline":n.length<2?o("线对象定位,点数至少2个"):l._locationEntity=l._viewer.entities.add({polyline:{positions:n,clampToGround:!0,material:new Cesium.Color(255,0,0,.5),width:1}});break;case"polygon":n.length<3?o("面对象定位,点数至少3个"):l._locationEntity=l._viewer.entities.add({polygon:{hierarchy:{positions:n},material:new Cesium.Color(255,0,0,.5),outline:!0}});break;default:o("坐标异常!")}r.duration=Cesium.defaultValue(r.duration,3),r.heading=Cesium.defaultValue(r.heading,0),r.pitch=Cesium.defaultValue(r.pitch,-90),r.range=Cesium.defaultValue(r.range,0),l._viewer.flyTo(l._locationEntity,{duration:r.duration,offset:{heading:Cesium.Math.toRadians(r.heading),pitch:Cesium.Math.toRadians(r.pitch),range:r.range}}).then((function(e){e&&i(l._locationEntity)}))}))},flyToEntity:function(e,t){return new Promise(((r,i)=>{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(e){e&&r(o._locationEntity)}))}))},zoomToTilesets(e,t){return new Promise(((r,i)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("tileset is required.");(t=t||{}).heading=Cesium.defaultValue(t.heading,120),t.pitch=Cesium.defaultValue(t.pitch,-10),t.range=Cesium.defaultValue(t.range,450),t.duration=Cesium.defaultValue(t.duration,3);let o=e.boundingSphere;this._viewer.camera.flyToBoundingSphere(o,{duration:t.duration,complete:function(){r(!0)},offset:{heading:Cesium.Math.toRadians(t.heading),pitch:Cesium.Math.toRadians(t.pitch),range:t.range}})}))},flyToTileset(e,t){return new Promise(((r,i)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("tileset is required.");(t=t||{}).heading=Cesium.defaultValue(t.heading,120),t.pitch=Cesium.defaultValue(t.pitch,-10),t.range=Cesium.defaultValue(t.range,450),t.duration=Cesium.defaultValue(t.duration,3),this._viewer.flyTo(e,{duration:t.duration,offset:{heading:Cesium.Math.toRadians(t.heading),pitch:Cesium.Math.toRadians(t.pitch),range:t.range}}).then((function(e){e&&r(!0)}))}))}});const P=function(e,t,r){let i,o,l,n,a=document.getElementById("toolTip");if(e&&"object"==typeof e&&(i=e),i&&i.origin?("center"===i.origin&&(o=15,l=-12),"top"===i.origin&&(o=15,l=-44),"bottom"===i.origin&&(o=15,l=20)):(o=15,l=20),i&&i.color?("white"===i.color&&(n="background: rgba(255, 255, 255, 0.8);color: black;"),"black"===i.color&&(n="background: rgba(0, 0, 0, 0.65);color: white;"),"yellow"===i.color&&(n="color: black;background-color: #ffcc33;border: 1px solid white;")):n="background: rgba(0, 0, 0, 0.65);color: white;",!a){const e=document.getElementsByClassName("cesium-viewer")[0];let t=document.createElement("div");e.append(t);let r='';e.insertAdjacentHTML("beforeend",r),a=document.getElementById("toolTip")}return r?(a.innerHTML=e,a.style.left=t.x+o+"px",a.style.top=t.y+l+"px",a.style.display="block"):a.style.display="none",{tooltip:a,style:i,showAt:function(e,t){this.tooltip.innerHTML=t,this.style&&this.style.origin?("center"===this.style.origin&&(o=15,l=-this.tooltip.offsetHeight/2),"top"===this.style.origin&&(o=15,l=-this.tooltip.offsetHeight-20),"bottom"===this.style.origin&&(o=15,l=20)):(o=15,l=-this.tooltip.offsetHeight/2),this.tooltip.style.left=e.x+o+"px",this.tooltip.style.top=e.y+l+"px",this.tooltip.style.display="block"},show:function(e){this.tooltip.style.display=e?"block":"none"}}};class D{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 r=Cesium.Cartographic.fromCartesian(e),i=Cesium.Cartographic.fromCartesian(t),o=new Cesium.EllipsoidGeodesic;o.setEndPoints(r,i);let l=o.surfaceDistance;return l=Math.sqrt(Math.pow(l,2)+Math.pow(i.height-r.height,2)),l}_checkAppOrWeb(){return window.navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)?D.RuntimeEnvironment.App:D.RuntimeEnvironment.Web}_isRuntimeApp(){return this._checkAppOrWeb()===D.RuntimeEnvironment.App}_isRuntimeWeb(){return this._checkAppOrWeb()===D.RuntimeEnvironment.Web}_createOperationMainDom(){let e=document.createElement("div");e.id="drawButtonDiv",e.style.width="80px",e.style.backgroundColor="rgba(5, 45, 155, 0.7)",e.style.borderRadius="5px",e.style.display="flex",e.style.flexDirection="column",e.style.padding="8px",e.style.justifyContent="center",e.style.position="absolute",e.style.bottom="150px",e.style.right="10px";let t=document.createElement("button");t.id="btnDrawComplete",t.style.height="30px",t.style.backgroundColor="rgba(88, 185, 45, 1.0)",t.style.color="rgb(255, 255, 255)",t.style.border="0px solid red",t.style.borderRadius="5px",t.innerHTML="完成",t.style.fontSize="13px",t.style.cursor="pointer",e.appendChild(t),document.body.appendChild(e)}_showTooltipMessage(e){let t=document.getElementById("messageMainDom");null!=t&&document.body.removeChild(t),t=document.createElement("div"),t.style.width="30%",t.style.backgroundColor="rgba(237, 248, 230, 1.0)",t.style.height="45px",t.style.border="solid 2px rgb(219, 241, 208)",t.style.borderRadius="8px",t.style.display="flex",t.style.alignItems="center",t.style.paddingLeft="10px",t.style.color="rgb(91, 188, 48)",t.style.fontSize="14px",t.style.fontWeight="600",t.style.position="absolute",t.style.left="35%",t.style.transition="transform 1s",t.style.transform="translateY(-90px)",t.style.top="0px",t.style.zIndex=1e3,document.body.appendChild(t);let r="";r+="
",r+="
"+e+"
",t.innerHTML=r,t.addEventListener("transitionend",(function(){setTimeout((function(){document.body.removeChild(t)}),1e3)}),!1),setTimeout((function(){t.style.transform="translateY(50px)"}),100)}} /*! * 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 I(e){return Math.max.apply(null,e)}function M(e){return Math.min.apply(null,e)}function L(e,t){for(var r=[],i=0;ir!=e[o][1]>r&&t<(e[o][0]-e[i][0])*(r-e[i][1])/(e[o][1]-e[i][1])+e[i][0]&&(l=!l);return l}function z(e,t){for(var r=0,i=L(0,t*t);r=a&&(a=Math.abs(e[i*t+o]),b=i,m=o);if(++f[m],b!==m){for(l=0;l=0;l--)if(g[l]!==h[l])for(o=0;or?t+(i-t)/r:t+(i-t)/r*(e/r*1.5-.5*Math.pow(e/r,3))}function G(e,t,r){var i,o=Array(r.n);for(i=0;i{let i=k._transfromFromScreenPoint(e._viewer,r.position);if(t="左键创建视角终点,右键结束通视分析",this._isRuntimeApp()&&(t="再次单击创建视角终点",e._showTooltipMessage(t)),!Cesium.defined(i.sLocation))return;let o=i.sLocation;if(e._resultObject.viewPoint){e._resultObject.targetPoint=o;let t=e._viewer.entities.add({position:o,point:{color:Cesium.Color.YELLOW,pixelSize:5},label:{text:"目标位置",font:"12px sans-serif",fillColor:new Cesium.Color(1,1,1,1),outlineColor:new Cesium.Color(0,154/255,94/255,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 r=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(e._resultObject.targetPoint,e._resultObject.viewPoint,new Cesium.Cartesian3),new Cesium.Cartesian3),i=new Cesium.Ray(e._resultObject.viewPoint,r),l=e._viewer.scene.pickFromRay(i,e._resultObject.objectExclude);if(l){let t=e._distance(e._resultObject.viewPoint,e._resultObject.targetPoint),r=e._distance(e._resultObject.viewPoint,l.position),i=e._distance(l.position,e._resultObject.targetPoint);if(console.log(t,r,i),t>r){let n=e._viewer.entities.add({polyline:{positions:[e._resultObject.viewPoint,l.position],material:Cesium.Color.GREEN,width:3}});e._resultObject.entities.push(n);let a=e._viewer.entities.add({polyline:{positions:[l.position,e._resultObject.targetPoint],material:Cesium.Color.RED,width:3}});e._resultObject.entities.push(a),e._resultObject.targetPoints.push({targetPoint:o,visual:!1,distance:[t,r,i]})}else{let l=e._viewer.entities.add({polyline:{positions:[e._resultObject.viewPoint,e._resultObject.targetPoint],material:Cesium.Color.GREEN,width:3}});e._resultObject.entities.push(l),e._resultObject.targetPoints.push({targetPoint:o,visual:!0,distance:[t,r,i]})}}}else{e._resultObject.viewPoint=o;let t=e._viewer.entities.add({position:o,point:{color:Cesium.Color.YELLOW,pixelSize:5},label:{text:"观察位置",font:"12px sans-serif",fillColor:new Cesium.Color(1,1,1,1),outlineColor:new Cesium.Color(0,154/255,94/255,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)}2===e._resultObject.objectExclude.length&&this._isRuntimeApp()&&(e._createOperationMainDom(),document.getElementById("btnDrawComplete").onclick=()=>{P(t,r.endPosition,!1),e.handler.destroy();let i=document.getElementById("drawButtonDiv");i&&document.body.removeChild(i)})}),Cesium.ScreenSpaceEventType.LEFT_CLICK),e.handler.setInputAction((function(r){e._isRuntimeApp()||P(t,r.endPosition,!0)}),Cesium.ScreenSpaceEventType.MOUSE_MOVE),e.handler.setInputAction((r=>{P(t,r.endPosition,!1),e.handler.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:[]},this.handler&&this.handler.destroy();let e=document.getElementById("drawButtonDiv");e&&document.body.removeChild(e)}}),D.RuntimeEnvironment=Object.freeze({App:"app",Web:"web"});var Y={train:function(e,t,r,i,o,l){var n,a,s,c,d={t:e,x:t,y:r,nugget:0,range:0,sill:0,A:1/3,n:0,model:W,K:[],M:[]};switch(i){case"gaussian":d.model=V;break;case"exponential":d.model=W;break;case"spherical":d.model=H;break;default:d.model=W}var u=e.length,p=Array((u*u-u)/2);for(n=0,s=0;n30?30:(u*u-u)/2,g=d.range/h,f=L(0,h),m=L(0,h);if(h<30)for(c=0;c=(u*u-u)/2)););s>0&&(f[c]/=s,m[c]/=s,c++)}if(c<2)return d}u=c,d.range=f[u-1]-f[0];var b=L(1,2*u),v=Array(u),_=d.A;for(n=0;nc[1]&&(c[1]=e[i][o][0]),e[i][o][1]d[1]&&(d[1]=e[i][o][1]);var u=Array(2),p=Array(2),h=Array(2),g=Array(2),f=Math.ceil((c[1]-c[0])/r),m=Math.ceil((d[1]-d[0])/r),b=Array(f+1);for(i=0;i<=f;i++)b[i]=Array(m+1);for(i=0;ih[1]&&(h[1]=e[i][o][0]),e[i][o][1]g[1]&&(g[1]=e[i][o][1]);for(u[0]=Math.floor((h[0]-(h[0]-c[0])%r-c[0])/r),u[1]=Math.ceil((h[1]-(h[1]-c[1])%r-c[0])/r),p[0]=Math.floor((g[0]-(g[0]-d[0])%r-d[0])/r),p[1]=Math.ceil((g[1]-(g[1]-d[1])%r-d[0])/r),o=u[0];o<=u[1];o++)for(l=p[0];l<=p[1];l++)a=c[0]+o*r,s=d[0]+l*r,O(e[i],a,s)&&(b[o][l]=G(a,s,t))}return{xlim:c,ylim:d,width:r,data:b,zlim:[M(t.t),I(t.t)]}}},plot:function(e,t,r,i,o){var l=e.getContext("2d"),n=t.data,a=t.zlim,s=t.width;if(l){l.clearRect(0,0,e.width,e.height);var c=[r[1]-r[0],i[1]-i[0],a[1]-a[0]],d=void 0,u=void 0,p=void 0,h=void 0,g=void 0,f=n.length,m=n[0].length,b=Math.ceil(s*e.width/(r[1]-r[0])),v=Math.ceil(s*e.height/(i[1]-i[0]));for(d=0;d1&&(g=1),l.fillStyle=o[Math.floor((o.length-1)*g)],l.fillRect(Math.round(p-b/2),Math.round(h-v/2),b,v))}},max:I,min:M,pip:O,rep:L,matrixDiag:z,matrixTranspose:R,matrixAdd:N,matrixMultiply:B,matrixChol:j,matrixChol2inv:F,matrixSolve:U,variogramGaussian:V,variogramExponential:W,variogramSpherical:H},q={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 Z(e,t,r){void 0===r&&(r={});var i={type:"Feature"};return(0===r.id||r.id)&&(i.id=r.id),r.bbox&&(i.bbox=r.bbox),i.properties=t||{},i.geometry=e,i}function X(e,t,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(!te(e[0])||!te(e[1]))throw new Error("coordinates must contain numbers");return Z({type:"Point",coordinates:e},t,r)}function Q(e,t,r){void 0===r&&(r={});for(var i=0,o=e;ie[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 ae(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 se(e){return"Feature"===e.type?e.geometry:e}le.default=le;var ce="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function de(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ue(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})})),t}var pe={exports:{}};function he(e,t,r,i,o){ge(e,t,r||0,i||e.length-1,o||me)}function ge(e,t,r,i,o){for(;i>r;){if(i-r>600){var l=i-r+1,n=t-r+1,a=Math.log(l),s=.5*Math.exp(2*a/3),c=.5*Math.sqrt(a*s*(l-s)/l)*(n-l/2<0?-1:1);ge(e,t,Math.max(r,Math.floor(t-n*s/l+c)),Math.min(i,Math.floor(t+(l-n)*s/l+c)),o)}var d=e[t],u=r,p=i;for(fe(e,r,t),o(e[i],d)>0&&fe(e,r,i);u0;)p--}0===o(e[r],d)?fe(e,r,p):fe(e,++p,i),p<=t&&(r=p+1),t<=p&&(i=p-1)}}function fe(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function me(e,t){return et?1:0}function be(e,t,r){if(!r)return t.indexOf(e);for(let i=0;i=e.minX&&t.maxY>=e.minY}function Ae(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Pe(e,t,r,i,o){const l=[t,r];for(;l.length;){if((r=l.pop())-(t=l.pop())<=i)continue;const n=t+Math.ceil((r-t)/i/2)*i;he(e,n,t,r,o),l.push(t,n,n,r)}}var De=ue(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 r=[];if(!Se(e,t))return r;const i=this.toBBox,o=[];for(;t;){for(let l=0;l=0&&o[t].children.length>this._maxEntries;)this._split(o,t),t--;this._adjustParentBBoxes(i,o,t)}_split(e,t){const r=e[t],i=r.children.length,o=this._minEntries;this._chooseSplitAxis(r,o,i);const l=this._chooseSplitIndex(r,o,i),n=Ae(r.children.splice(l,r.children.length-l));n.height=r.height,n.leaf=r.leaf,ve(r,this.toBBox),ve(n,this.toBBox),t?e[t-1].children.push(n):this._splitRoot(r,n)}_splitRoot(e,t){this.data=Ae([e,t]),this.data.height=e.height+1,this.data.leaf=!1,ve(this.data,this.toBBox)}_chooseSplitIndex(e,t,r){let i,o=1/0,l=1/0;for(let n=t;n<=r-t;n++){const t=_e(e,0,n,this.toBBox),a=_e(e,n,r,this.toBBox),s=Ee(t,a),c=ke(t)+ke(a);s=t;s--){const t=e.children[s];ye(n,e.leaf?o(t):t),a+=Ce(n)}return a}_adjustParentBBoxes(e,t,r){for(let i=r;i>=0;i--)ye(t[i],e)}_condense(e){for(let t,r=e.length-1;r>=0;r--)0===e[r].children.length?r>0?(t=e[r-1].children,t.splice(t.indexOf(e[r]),1)):this.clear():ve(e[r],this.toBBox)}}}));function Ie(e,t){return et?1:0}var Me=ue(Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:class{constructor(e=[],t=Ie){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}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:r}=this,i=t[e];for(;e>0;){const o=e-1>>1,l=t[o];if(r(i,l)>=0)break;t[e]=l,e=o}t[e]=i}_down(e){const{data:t,compare:r}=this,i=this.length>>1,o=t[e];for(;e=0)break;t[e]=l,e=i}t[e]=o}}})),Le={exports:{}},Oe=function(e,t,r,i){var o=e[0],l=e[1],n=!1;void 0===r&&(r=0),void 0===i&&(i=t.length);for(var a=(i-r)/2,s=0,c=a-1;sl!=h>l&&o<(p-d)*(l-u)/(h-u)+d&&(n=!n)}return n},ze=function(e,t,r,i){var o=e[0],l=e[1],n=!1;void 0===r&&(r=0),void 0===i&&(i=t.length);for(var a=i-r,s=0,c=a-1;sl!=h>l&&o<(p-d)*(l-u)/(h-u)+d&&(n=!n)}return n};Le.exports=function(e,t,r,i){return t.length>0&&Array.isArray(t[0])?ze(e,t,r,i):Oe(e,t,r,i)},Le.exports.nested=ze,Le.exports.flat=Oe;var Re={exports:{}};!function(e){const t=134217729,r=33306690738754706e-32;function i(e,t,r,i,o){let l,n,a,s,c=t[0],d=i[0],u=0,p=0;d>c==d>-c?(l=c,c=t[++u]):(l=d,d=i[++p]);let h=0;if(uc==d>-c?(a=l-((n=c+l)-c),c=t[++u]):(a=l-((n=d+l)-d),d=i[++p]),l=n,0!==a&&(o[h++]=a);uc==d>-c?(a=l-((n=l+c)-(s=n-l))+(c-s),c=t[++u]):(a=l-((n=l+d)-(s=n-l))+(d-s),d=i[++p]),l=n,0!==a&&(o[h++]=a);for(;u0!=v>0)return _;const y=Math.abs(b+v);return Math.abs(_)>=l*y?_:-function(e,o,l,h,g,f,m){let b,v,_,y,x,w,k,C,E,T,S,A,P,D,I,M,L,O;const z=e-g,R=l-g,N=o-f,B=h-f;x=(I=(C=z-(k=(w=t*z)-(w-z)))*(T=B-(E=(w=t*B)-(w-B)))-((D=z*B)-k*E-C*E-k*T))-(S=I-(L=(C=N-(k=(w=t*N)-(w-N)))*(T=R-(E=(w=t*R)-(w-R)))-((M=N*R)-k*E-C*E-k*T))),s[0]=I-(S+x)+(x-L),x=(P=D-((A=D+S)-(x=A-D))+(S-x))-(S=P-M),s[1]=P-(S+x)+(x-M),x=(O=A+S)-A,s[2]=A-(O-x)+(S-x),s[3]=O;let j=function(e,t){let r=t[0];for(let i=1;i=F||-j>=F)return j;if(b=e-(z+(x=e-z))+(x-g),_=l-(R+(x=l-R))+(x-g),v=o-(N+(x=o-N))+(x-f),y=h-(B+(x=h-B))+(x-f),0===b&&0===v&&0===_&&0===y)return j;if(F=a*m+r*Math.abs(j),(j+=z*y+B*b-(N*_+R*v))>=F||-j>=F)return j;x=(I=(C=b-(k=(w=t*b)-(w-b)))*(T=B-(E=(w=t*B)-(w-B)))-((D=b*B)-k*E-C*E-k*T))-(S=I-(L=(C=v-(k=(w=t*v)-(w-v)))*(T=R-(E=(w=t*R)-(w-R)))-((M=v*R)-k*E-C*E-k*T))),p[0]=I-(S+x)+(x-L),x=(P=D-((A=D+S)-(x=A-D))+(S-x))-(S=P-M),p[1]=P-(S+x)+(x-M),x=(O=A+S)-A,p[2]=A-(O-x)+(S-x),p[3]=O;const U=i(4,s,4,p,c);x=(I=(C=z-(k=(w=t*z)-(w-z)))*(T=y-(E=(w=t*y)-(w-y)))-((D=z*y)-k*E-C*E-k*T))-(S=I-(L=(C=N-(k=(w=t*N)-(w-N)))*(T=_-(E=(w=t*_)-(w-_)))-((M=N*_)-k*E-C*E-k*T))),p[0]=I-(S+x)+(x-L),x=(P=D-((A=D+S)-(x=A-D))+(S-x))-(S=P-M),p[1]=P-(S+x)+(x-M),x=(O=A+S)-A,p[2]=A-(O-x)+(S-x),p[3]=O;const V=i(U,c,4,p,d);x=(I=(C=b-(k=(w=t*b)-(w-b)))*(T=y-(E=(w=t*y)-(w-y)))-((D=b*y)-k*E-C*E-k*T))-(S=I-(L=(C=v-(k=(w=t*v)-(w-v)))*(T=_-(E=(w=t*_)-(w-_)))-((M=v*_)-k*E-C*E-k*T))),p[0]=I-(S+x)+(x-L),x=(P=D-((A=D+S)-(x=A-D))+(S-x))-(S=P-M),p[1]=P-(S+x)+(x-M),x=(O=A+S)-A,p[2]=A-(O-x)+(S-x),p[3]=O;const W=i(V,d,4,p,u);return u[W-1]}(e,o,h,g,f,m,y)},e.orient2dfast=function(e,t,r,i,o,l){return(t-l)*(r-o)-(e-o)*(i-l)},Object.defineProperty(e,"__esModule",{value:!0})}(Re.exports);var Ne=De,Be=Me,je=Le.exports,Fe=Re.exports.orient2d;function Ue(e,t,r){t=Math.max(0,void 0===t?2:t),r=r||0;var i=function(e){for(var t=e[0],r=e[0],i=e[0],o=e[0],l=0;li[0]&&(i=n),n[1]o[1]&&(o=n)}var a=[t,r,i,o],s=a.slice();for(l=0;l=2&&qe(t[t.length-2],t[t.length-1],e[r])<=0;)t.pop();t.push(e[r])}for(var i=[],o=e.length-1;o>=0;o--){for(;i.length>=2&&qe(i[i.length-2],i[i.length-1],e[o])<=0;)i.pop();i.push(e[o])}return i.pop(),t.pop(),t.concat(i)}(s)}(e),o=new Ne(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 l,n=[],a=0;al||a.push({node:d,dist:u})}for(;a.length&&!a.peek().node.children;){var p=a.pop(),h=p.node,g=Ke(h,t,r),f=Ke(h,i,o);if(p.dist=t.minX&&e[0]<=t.maxX&&e[1]>=t.minY&&e[1]<=t.maxY}function Ye(e,t,r){for(var i,o,l,n,a=Math.min(e[0],t[0]),s=Math.min(e[1],t[1]),c=Math.max(e[0],t[0]),d=Math.max(e[1],t[1]),u=r.search({minX:a,minY:s,maxX:c,maxY:d}),p=0;p0!=qe(i,o,n)>0&&qe(l,n,i)>0!=qe(l,n,o)>0)return!1;return!0}function qe(e,t,r){return Fe(e[0],e[1],t[0],t[1],r[0],r[1])}function Ze(e){var t=e.p,r=e.next.p;return e.minX=Math.min(t[0],r[0]),e.minY=Math.min(t[1],r[1]),e.maxX=Math.max(t[0],r[0]),e.maxY=Math.max(t[1],r[1]),e}function Xe(e,t){var r={p:e,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return t?(r.next=t.next,r.prev=t,t.next.prev=r,t.next=r):(r.prev=r,r.next=r),r}function Qe(e,t){var r=e[0]-t[0],i=e[1]-t[1];return r*r+i*i}function Ke(e,t,r){var i=t[0],o=t[1],l=r[0]-i,n=r[1]-o;if(0!==l||0!==n){var a=((e[0]-i)*l+(e[1]-o)*n)/(l*l+n*n);a>1?(i=r[0],o=r[1]):a>0&&(i+=l*a,o+=n*a)}return(l=e[0]-i)*l+(n=e[1]-o)*n}function Je(e,t,r,i,o,l,n,a){var s,c,d,u,p=r-e,h=i-t,g=n-o,f=a-l,m=e-o,b=t-l,v=p*p+h*h,_=p*g+h*f,y=g*g+f*f,x=p*m+h*b,w=g*m+f*b,k=v*y-_*_,C=k,E=k;0===k?(c=0,C=1,u=w,E=y):(u=v*w-_*x,(c=_*w-y*x)<0?(c=0,u=w,E=y):c>C&&(c=C,u=w+_,E=y)),u<0?(u=0,-x<0?c=0:-x>v?c=C:(c=-x,C=v)):u>E&&(u=E,-x+_<0?c=0:-x+_>v?c=C:(c=-x+_,C=v));var T=(1-(d=0===u?0:u/E))*o+d*n-((1-(s=0===c?0:c/C))*e+s*r),S=(1-d)*l+d*a-((1-s)*t+s*i);return T*T+S*S}function $e(e,t){return e[0]===t[0]?e[1]-t[1]:e[0]-t[0]}Be.default&&(Be=Be.default),pe.exports=Ue,pe.exports.default=Ue;var et=pe.exports;function tt(e,t,r){if(void 0===r&&(r={}),!e)throw new Error("point is required");if(!t)throw new Error("polygon is required");var i=ne(e),o=se(t),l=o.type,n=t.bbox,a=o.coordinates;if(n&&!1===function(e,t){return t[0]<=e[0]&&t[1]<=e[1]&&t[2]>=e[0]&&t[3]>=e[1]}(i,n))return!1;"Polygon"===l&&(a=[a]);for(var s=!1,c=0;ce[1]!=c>e[1]&&e[0]<(s-n)*(e[1]-a)/(c-a)+n&&(i=!i)}return i}function it(e,t,r){void 0===r&&(r={});var i=ne(e),o=ne(t),l=ee(o[1]-i[1]),n=ee(o[0]-i[0]),a=ee(i[1]),s=ee(o[1]),c=Math.pow(Math.sin(l/2),2)+Math.pow(Math.sin(n/2),2)*Math.cos(a)*Math.cos(s);return function(e,t){void 0===t&&(t="kilometers");var r=q[t];if(!r)throw new Error(t+" units is invalid");return e*r}(2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c)),r.units)}function ot(e,t,r,i){void 0===i&&(i={});var o=ne(e),l=ee(o[0]),n=ee(o[1]),a=ee(r),s=function(e,t){void 0===t&&(t="kilometers");var r=q[t];if(!r)throw new Error(t+" units is invalid");return e/r}(t,i.units),c=Math.asin(Math.sin(n)*Math.cos(s)+Math.cos(n)*Math.sin(s)*Math.cos(a));return X([$(l+Math.atan2(Math.sin(a)*Math.sin(s)*Math.cos(n),Math.cos(s)-Math.sin(n)*Math.sin(c))),$(c)],i.properties)}function lt(e,t,r){if(void 0===r&&(r={}),!0===r.final)return function(e,t){var r=lt(t,e);return r=(r+180)%360}(e,t);var i=ne(e),o=ne(t),l=ee(i[0]),n=ee(o[0]),a=ee(i[1]),s=ee(o[1]),c=Math.sin(n-l)*Math.cos(s),d=Math.cos(a)*Math.sin(s)-Math.sin(a)*Math.cos(s)*Math.cos(n-l);return $(Math.atan2(c,d))}function nt(e,t){return ot(e,it(e,t)/2,lt(e,t))}function at(e,t){void 0===t&&(t={});var r=0,i=0,o=0;return re(e,(function(e){r+=e[0],i+=e[1],o++}),!0),X([r/o,i/o],t.properties)}function st(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 X(ne(e),t.properties);case"Polygon":var r=[];re(e,(function(e){r.push(e)}));var i,o,l,n,a,s,c,d,u=at(e,{properties:t.properties}),p=u.geometry.coordinates,h=0,g=0,f=0,m=r.map((function(e){return[e[0]-p[0],e[1]-p[1]]}));for(i=0;i3?Q([i]):null}(e);return v?st(v,{properties:t.properties}):at(e,{properties:t.properties})}}function ct(e){if(!e)throw new Error("geojson is required");var t=[];return oe(e,(function(e){!function(e,t){var r=[],i=e.geometry;if(null!==i){switch(i.type){case"Polygon":r=ae(i);break;case"LineString":r=[ae(i)]}r.forEach((function(r){(function(e,t){var r=[];return e.reduce((function(e,i){var o,l,n,a,s,c,d=K([e,i],t);return d.bbox=(l=i,n=(o=e)[0],a=o[1],s=l[0],c=l[1],[ns?n:s,a>c?a:c]),r.push(d),i})),r})(r,e.properties).forEach((function(e){e.id=t.length,t.push(e)}))}))}}(e,t)})),J(t)}var dt={exports:{}};function ut(e,t,r,i,o){pt(e,t,r||0,i||e.length-1,o||gt)}function pt(e,t,r,i,o){for(;i>r;){if(i-r>600){var l=i-r+1,n=t-r+1,a=Math.log(l),s=.5*Math.exp(2*a/3),c=.5*Math.sqrt(a*s*(l-s)/l)*(n-l/2<0?-1:1);pt(e,t,Math.max(r,Math.floor(t-n*s/l+c)),Math.min(i,Math.floor(t+(l-n)*s/l+c)),o)}var d=e[t],u=r,p=i;for(ht(e,r,t),o(e[i],d)>0&&ht(e,r,i);u0;)p--}0===o(e[r],d)?ht(e,r,p):ht(e,++p,i),p<=t&&(r=p+1),t<=p&&(i=p-1)}}function ht(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function gt(e,t){return et?1:0}function ft(e,t,r){if(!r)return t.indexOf(e);for(let i=0;i=e.minX&&t.maxY>=e.minY}function Tt(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function St(e,t,r,i,o){const l=[t,r];for(;l.length;){if((r=l.pop())-(t=l.pop())<=i)continue;const n=t+Math.ceil((r-t)/i/2)*i;ut(e,n,t,r,o),l.push(t,n,n,r)}}var At=ue(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 r=[];if(!Et(e,t))return r;const i=this.toBBox,o=[];for(;t;){for(let l=0;l=0&&o[t].children.length>this._maxEntries;)this._split(o,t),t--;this._adjustParentBBoxes(i,o,t)}_split(e,t){const r=e[t],i=r.children.length,o=this._minEntries;this._chooseSplitAxis(r,o,i);const l=this._chooseSplitIndex(r,o,i),n=Tt(r.children.splice(l,r.children.length-l));n.height=r.height,n.leaf=r.leaf,mt(r,this.toBBox),mt(n,this.toBBox),t?e[t-1].children.push(n):this._splitRoot(r,n)}_splitRoot(e,t){this.data=Tt([e,t]),this.data.height=e.height+1,this.data.leaf=!1,mt(this.data,this.toBBox)}_chooseSplitIndex(e,t,r){let i,o=1/0,l=1/0;for(let n=t;n<=r-t;n++){const t=bt(e,0,n,this.toBBox),a=bt(e,n,r,this.toBBox),s=kt(t,a),c=xt(t)+xt(a);s=t;s--){const t=e.children[s];vt(n,e.leaf?o(t):t),a+=wt(n)}return a}_adjustParentBBoxes(e,t,r){for(let i=r;i>=0;i--)vt(t[i],e)}_condense(e){for(let t,r=e.length-1;r>=0;r--)0===e[r].children.length?r>0?(t=e[r-1].children,t.splice(t.indexOf(e[r]),1)):this.clear():mt(e[r],this.toBBox)}}})),Pt={};!function(e){function t(e,t,r){void 0===r&&(r={});var i={type:"Feature"};return(0===r.id||r.id)&&(i.id=r.id),r.bbox&&(i.bbox=r.bbox),i.properties=t||{},i.geometry=e,i}function r(e,r,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(!p(e[0])||!p(e[1]))throw new Error("coordinates must contain numbers");return t({type:"Point",coordinates:e},r,i)}function i(e,r,i){void 0===i&&(i={});for(var o=0,l=e;o=0))throw new Error("precision must be a positive number");var r=Math.pow(10,t||0);return Math.round(e*r)/r},e.radiansToLength=c,e.lengthToRadians=d,e.lengthToDegrees=function(e,t){return u(d(e,t))},e.bearingToAzimuth=function(e){var t=e%360;return t<0&&(t+=360),t},e.radiansToDegrees=u,e.degreesToRadians=function(e){return e%360*Math.PI/180},e.convertLength=function(e,t,r){if(void 0===t&&(t="kilometers"),void 0===r&&(r="kilometers"),!(e>=0))throw new Error("length must be a positive number");return c(d(e,t),r)},e.convertArea=function(t,r,i){if(void 0===r&&(r="meters"),void 0===i&&(i="kilometers"),!(t>=0))throw new Error("area must be a positive number");var o=e.areaFactors[r];if(!o)throw new Error("invalid original units");var l=e.areaFactors[i];if(!l)throw new Error("invalid final units");return t/o*l},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")}}(Pt);var Dt={};Object.defineProperty(Dt,"__esModule",{value:!0});var It=Pt;function Mt(e,t,r){if(null!==e)for(var i,o,l,n,a,s,c,d,u=0,p=0,h=e.type,g="FeatureCollection"===h,f="Feature"===h,m=g?e.features.length:1,b=0;ba||p>s||h>c)return n=l,a=r,s=p,c=h,void(o=0);var g=It.lineString([n,l],e.properties);if(!1===t(g,r,i,h,o))return!1;o++,n=l}))&&void 0}}}))}function Bt(e,t){if(!e)throw new Error("geojson is required");Rt(e,(function(e,r,i){if(null!==e.geometry){var o=e.geometry.type,l=e.geometry.coordinates;switch(o){case"LineString":if(!1===t(e,r,i,0,0))return!1;break;case"Polygon":for(var n=0;ne[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2] line1 must only contain 2 coordinates");if(2!==i.length)throw new Error(" line2 must only contain 2 coordinates");var o=r[0][0],l=r[0][1],n=r[1][0],a=r[1][1],s=i[0][0],c=i[0][1],d=i[1][0],u=i[1][1],p=(u-c)*(n-o)-(d-s)*(a-l),h=(d-s)*(l-c)-(u-c)*(o-s),g=(n-o)*(l-c)-(a-l)*(o-s);if(0===p)return null;var f=h/p,m=g/p;return f>=0&&f<=1&&m>=0&&m<=1?X([o+f*(n-o),l+f*(a-l)]):null}function Jt(e,t,r){void 0===r&&(r={});for(var i=ne(e),o=ae(t),l=0;lo)return!1}else if(0!==h)return!1;return i?"start"===i?Math.abs(u)>=Math.abs(p)?u>0?a0?s=Math.abs(p)?u>0?a<=l&&l0?s<=n&&n=Math.abs(p)?u>0?a0?s=Math.abs(p)?u>0?a<=l&&l<=c:c<=l&&l<=a:p>0?s<=n&&n<=d:d<=n&&n<=s}function er(e,t){var r=se(e),i=se(t),o=r.type,l=i.type;switch(o){case"Point":switch(l){case"MultiPoint":return function(e,t){var r,i=!1;for(r=0;rt[0])&&(!(e[2]t[1])&&!(e[3]1?function(e,t,r){return void 0===r&&(r={}),Z({type:"MultiLineString",coordinates:e},t,r)}(e,t):K(e[0],t)}function nr(e,t){var r=!0;return oe(e,(function(e){oe(t,(function(t){if(!1===r)return!1;r=function(e,t){switch(e.type){case"Point":switch(t.type){case"Point":return r=e.coordinates,i=t.coordinates,!(r[0]===i[0]&&r[1]===i[1]);case"LineString":return!ar(t,e);case"Polygon":return!tt(e,t)}break;case"LineString":switch(t.type){case"Point":return!ar(e,t);case"LineString":return!function(e,t){if(Qt(e,t).features.length>0)return!0;return!1}(e,t);case"Polygon":return!sr(t,e)}break;case"Polygon":switch(t.type){case"Point":return!tt(t,e);case"LineString":return!sr(e,t);case"Polygon":return!function(e,t){for(var r=0,i=e.coordinates[0];r0)return!0;return!1}(t,e)}}var r,i;return!1}(e.geometry,t.geometry)}))})),r}function ar(e,t){for(var r=0;r0}function cr(e,t,r){var i=r[0]-e[0],o=r[1]-e[1],l=t[0]-e[0],n=t[1]-e[1];return 0==i*n-o*l&&(Math.abs(l)>=Math.abs(n)?l>0?e[0]<=r[0]&&r[0]<=t[0]:t[0]<=r[0]&&r[0]<=e[0]:n>0?e[1]<=r[1]&&r[1]<=t[1]:t[1]<=r[1]&&r[1]<=e[1])}function dr(e,t){var r=!1;return oe(e,(function(e){oe(t,(function(t){if(!0===r)return!0;r=!nr(e.geometry,t.geometry)}))})),r}function ur(e,t,r){return void 0===r&&(r={}),function(e,t,r,i){void 0===i&&(i={});for(var o=[],l=e[0],n=e[1],a=e[2],s=e[3],c=t/it([l,n],[a,n],i)*(a-l),d=r/it([l,n],[l,s],i)*(s-n),u=a-l,p=s-n,h=Math.floor(u/c),g=Math.floor(p/d),f=(p-g*d)/2,m=l+(u-h*c)/2,b=0;b=e?i=t?2*Math.PI-o:Math.PI+o,o=180*o/Math.PI,o}getPitch(e,t){let r=Cesium.Transforms.eastNorthUpToFixedFrame(e);const i=Cesium.Cartesian3.subtract(t,e,new Cesium.Cartesian3);let o=Cesium.Matrix4.multiplyByPointAsVector(Cesium.Matrix4.inverse(r,r),i,i);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,r=Number(e.visualRange),i=Cesium.Transforms.eastNorthUpToFixedFrame(t);this.debugModelMatrixPrimitive=this.viewer.scene.primitives.add(new Cesium.DebugModelMatrixPrimitive({modelMatrix:i,length:5}));const o=e.horizontalViewAngle/2,l=e.verticalViewAngle/2,n=Cesium.Math.toDegrees(e.pitch),a=new Cesium.EllipsoidGraphics({radii:new Cesium.Cartesian3(r,r,r),minimumClock:Cesium.Math.toRadians(90-e.direction-o),maximumClock:Cesium.Math.toRadians(90-e.direction+o),minimumCone:Cesium.Math.toRadians(90-n-l),maximumCone:Cesium.Math.toRadians(90-n+l),fill:!1,outline:!0,subdivisions:256,stackPartitions:64,slicePartitions:64,outlineColor:Cesium.Color.YELLOWGREEN.withAlpha(.5)}),s=new Cesium.Entity({position:t,ellipsoid:a});this.pyramid=this.viewer.entities.add(s)}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 r=Cesium.Math.toRadians(e.horizontalViewAngle),i=Cesium.Math.toRadians(e.verticalViewAngle);this.lightCamera.frustum.aspectRatio=t*Math.tan(r/2)*2/(t*Math.tan(i/2)*2),this.lightCamera.frustum.fov=r>i?r:i,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,r=new Cesium.Quaternion,i=this.lightCamera.directionWC,o=this.lightCamera.upWC;let l=this.lightCamera.rightWC;l=Cesium.Cartesian3.negate(l,e);let n=t;Cesium.Matrix3.setColumn(n,0,l,n),Cesium.Matrix3.setColumn(n,1,o,n),Cesium.Matrix3.setColumn(n,2,i,n);let a=Cesium.Quaternion.fromRotationMatrix(n,r),s=new Cesium.GeometryInstance({geometry:new Cesium.FrustumOutlineGeometry({frustum:this.lightCamera.frustum,origin:this.ViewShedOptions.viewPosition,orientation:a}),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:s,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}),r=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:r,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),r=this.ViewShedOptions.visualRange,i=this.ViewShedOptions.direction;let o=this.computeBoundaryOptions(t,r,i);const l=o.bbox;let n=Q([o.boundaryPoints]);const a=this.ViewShedOptions.visualRange/(1e3*e);let s=function(e,t,r){void 0===r&&(r={}),r.mask&&!r.units&&(r.units="kilometers");for(var i=[],o=e[0],l=e[1],n=e[2],a=e[3],s=t/it([o,l],[n,l],r)*(n-o),c=t/it([o,l],[o,a],r)*(a-l),d=n-o,u=a-l,p=Math.floor(d/s),h=(u-Math.floor(u/c)*c)/2,g=o+(d-p*s)/2;g<=n;){for(var f=l+h;f<=a;){var m=X([g,f],r.properties);r.mask?er(m,r.mask)&&i.push(m):i.push(m),f+=c}g+=s}return J(i)}(l,a,{mask:n});console.log(this.ViewShedOptions.visualRange,e,a);let c=this.createTargetPoints(s,a,t),d=Y.train(c.values,c.lngs,c.lats,"exponential",0,100),u=Y.grid([o.boundaryPoints],d,a/1e3);this.canvasEle.width=3840,this.canvasEle.height=2160,Y.plot(this.canvasEle,u,[l[0],l[2]],[l[1],l[3]],["#ff000080","#ff000080","#ff000080","#ff000080","#ff000080","#ff000080","#00ff0080","#00ff0080","#00ff0080","#00ff0080","#00ff0080","#00ff0080"]),this.addViewershedPolygon(o.positionArr)}computeBoundaryOptions(e,t,r){let i=6356725;const o=e[0],l=e[1],n=[o,l,o,l];let a=[],s=[];a.push(o,l),s.push([o,l]);let c=r+45>360?r-45-360:r-45,d=c+90;for(let u=c;u<=d;u++){let e=t*Math.sin(u*Math.PI/180),r=t*Math.cos(u*Math.PI/180),c=i+21412*(90-l)/90,d=o+e/(c*Math.cos(l*Math.PI/180))*180/Math.PI,p=l+r/c*180/Math.PI;a.push(d,p),s.push([d,p]),this.refreshBBox(n,d,p)}return s.push([o,l]),{positionArr:a,boundaryPoints:s,bbox:n}}refreshBBox(e,t,r){e[0]=te[2]?t:e[2],e[3]=r>e[3]?r:e[3]}createTargetPoints(e,t,r){let i=[this.frustumPrimitive,this.pyramid,this.debugModelMatrixPrimitive],o=[],l=[],n=[],a=this.getHeight(r[0],r[1],i);[].push({x:r[0],y:r[1],z:a});let s=this.ViewShedOptions.viewPosition;for(let c=0;ct?o.push(0):o.push(1),l.push(a),n.push(d)}}return{values:o,lngs:l,lats:n}}returnImgae(){return this.canvasEle.toDataURL("image/png")}}Object.assign(pr.prototype,{createViewshed:function(e){let t=this,r=t.viewer.scene;t.initHandler(),t.clearAll();let i=0,o="左键点击创建起点";t.handler=new Cesium.ScreenSpaceEventHandler(t.viewer.canvas),t.handler.setInputAction((l=>{if(i++,1===i){o="左键点击创建终点";let e=r.pickPosition(l.position),i=t.cartesian3ToDegree(e);t.handler.setInputAction((function(l){P(o,l.endPosition,!0);let n=r.pickPosition(l.endPosition);if(Cesium.defined(n)){let r=t.cartesian3ToDegree(n),o=Cesium.Cartesian3.distance(n,e),l=t.getAngle(i[0],i[1],r[0],r[1]),a=t.getPitch(e,n);t.ViewShedOptions={viewPosition:e,endPosition:n,direction:l,pitch:a,horizontalViewAngle:90,verticalViewAngle:60,visibleAreaColor:Cesium.Color.GREEN,invisibleAreaColor:Cesium.Color.RED,visualRange:o},t.updateViewShed()}}),Cesium.ScreenSpaceEventType.MOUSE_MOVE)}2===i&&(t.initHandler(),t.drawViewershed(e),P(o,l.endPosition,!1))}),Cesium.ScreenSpaceEventType.LEFT_CLICK),t.handler.setInputAction((function(e){P(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 hr{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._stopTime=null}}Object.assign(hr.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(hr.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)),r=Cesium.JulianDate.fromDate(new Date(e.stopTime));viewer.timeline.zoomTo(t,r);let i=viewer.clock;i.shouldAnimate=!1,i.startTime=t,i.stopTime=r,i.currentTime=t,i.clockRange=Cesium.ClockRange.UNBOUNDED,i.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 gr{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._profileEntities=[]}_interPoints(e,t){let r=[],i=[];for(let n=0;no&&(o=r);let l=parseInt(o/2);l>1e3&&(l=1e3),l<2&&(l=2);for(let n=0;n{let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));this.removeProfileAnalysis(),t.clampToGround=!0,console.log(o);let l=this._interPoints(o,[t]);console.log(l),r(l)}))},removeProfileAnalysis(){let e=this;e._profileEntities&&e._profileEntities.length>0&&e._profileEntities.forEach((t=>{e._viewer.entities.remove(t)})),e._profileEntities=[]}});class fr{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this.delEntitys=[],this.maxHeigh=-1e6}_VolumeAnalysis(e){let t=this,r=0,i=0,o=0,l=0;const n=e.geom.indices,a=e.geom.attributes.position.values;for(let c=0;cthis.maxHeigh&&(this.maxHeigh=o),{heightPos:Cesium.Cartesian3.fromRadians(i.longitude,i.latitude,o),noHeightPos:Cesium.Cartesian3.fromRadians(i.longitude,i.latitude,0),height:o}}}Object.assign(fr.prototype,{createPolygonGeo(e,t){return new Promise(((r,i)=>{let o=this;(t=t||{}).precision=Cesium.defaultValue(t.precision,256),t.height=Cesium.defaultValue(t.height,10),o.remove();let l=[];for(let t=0;t{let r=e[2]||0;t=r,rCesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0))),i=this;i.data=r,i.baseHeight=t.baseHeight,i.targetY=t.baseHeight+t.height;let o=new Cesium.GeometryInstance({geometry:new Cesium.PolygonGeometry({polygonHierarchy:new Cesium.PolygonHierarchy(i.data),height:i.baseHeight,extrudedHeight:i.baseHeight+3e3}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.fromCssColorString(t.color).withAlpha(t.alpha)),show:new Cesium.ShowGeometryInstanceAttribute(!0)}});i.limitHeightPrimitive=i._viewer.scene.primitives.add(new Cesium.ClassificationPrimitive({geometryInstances:o,releaseGeometryInstances:!1,classificationType:Cesium.ClassificationType.CESIUM_3D_TILE})),i._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),r=Cesium.Cartesian3.fromRadians(t.longitude,t.latitude,this.baseHeight),i=Cesium.Cartesian3.fromRadians(t.longitude,t.latitude,this.baseHeight+e),o=Cesium.Cartesian3.subtract(i,r,new Cesium.Cartesian3);this.limitHeightPrimitive._primitive.modelMatrix=Cesium.Matrix4.fromTranslation(o)}});class br{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,r=t._viewer,i=t._scene;new Cesium.ScreenSpaceEventHandler(r.scene.canvas).setInputAction((function(t){let r=i.pick(t.position);Cesium.defined(r)&&Cesium.defined(r.id)&&Cesium.defined(r.id.plane)&&(e=r.id.plane,e.material=Cesium.Color.RED.withAlpha(.05),e.outlineColor=Cesium.Color.RED,i.screenSpaceCameraController.enableInputs=!1)}),Cesium.ScreenSpaceEventType.LEFT_DOWN),new Cesium.ScreenSpaceEventHandler(r.scene.canvas).setInputAction((function(){Cesium.defined(e)&&(e.material=Cesium.Color.RED.withAlpha(.1),e.outlineColor=Cesium.Color.RED,e=void 0),i.screenSpaceCameraController.enableInputs=!0}),Cesium.ScreenSpaceEventType.LEFT_UP),new Cesium.ScreenSpaceEventHandler(r.scene.canvas).setInputAction((function(r){if(Cesium.defined(e)){let e=r.startPosition.y-r.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,r){let i=this._getOriginCoordinateSystemPoint(e,r),o=this._getOriginCoordinateSystemPoint(t,r),l=new Cesium.Cartesian3(0,0,10),n=Cesium.Cartesian3.subtract(o,i,new Cesium.Cartesian3),a=Cesium.Cartesian3.cross(n,l,new Cesium.Cartesian3);a=Cesium.Cartesian3.normalize(a,a);let s=Cesium.Plane.fromPointNormal(i,a);return Cesium.ClippingPlane.fromPlane(s)}_getOriginCoordinateSystemPoint(e,t){let r=Cesium.Cartesian3.fromDegrees(e[0],e[1]);return Cesium.Matrix4.multiplyByPoint(t,r,new Cesium.Cartesian3(0,0,0))}_getInverseTransform(e){let t;const r=e.root.transform;return t=r&&r.equals(Cesium.Matrix4.IDENTITY)||!r?Cesium.Transforms.eastNorthUpToFixedFrame(e.boundingSphere.center):Cesium.Matrix4.fromArray(e.root.transform),Cesium.Matrix4.inverseTransformation(t,new Cesium.Matrix4)}_isDirRes(e,t){var r=[];e.forEach((e=>{r.push([e.lng,e.lat])}));let i=function(e){for(var t,r,i=ae(e),o=0,l=1;l0}(K(r));var o=[];if(t)if(i)for(var l=0,n=e.length-1;n>=0;n--)o[l]=e[n],l++;else o=e;else if(i)o=e;else for(l=0,n=e.length-1;n>=0;n--)o[l]=e[n],l++;return o}}Object.assign(br.prototype,{activate(e){let t=this,r=t._viewer,i=t._getInverseTransform(e);[].push(t._createPlane([121.55814450142213,37.39658788787028],[121.65814450142213,37.49658788787028],i));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 i=e.boundingSphere,l=i.radius;if(r.zoomTo(e,new Cesium.HeadingPitchRange(.5,-.2,l/5)),!Cesium.Matrix4.equals(e.root.transform,Cesium.Matrix4.IDENTITY)){const t=Cesium.Matrix4.getTranslation(e.root.transform,new Cesium.Cartesian3),r=Cesium.Cartographic.fromCartesian(t),i=Cesium.Cartographic.fromCartesian(e.boundingSphere.center).height-r.height;o.modelMatrix=Cesium.Matrix4.fromTranslation(new Cesium.Cartesian3(0,0,i))}for(let e=0;eCesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));let r=this.viewer;this.clear();let i=[],o=Cesium.Cartesian3.subtract(e[0],e[1],new Cesium.Cartesian3).x>0;this.excavateMinHeight=999999999;for(let l=0;l{let r=[],i=e.reduce((function(e,t,i,o){var l=10*i,n=l+10,a=o.slice(l,n);return 0!=a.length&&(r[i]=a),r}),[]);t._calculateSlope(i),t._openTip()}))}_createPolygonInsrance(e,t){let r=[];for(let o=1;o0?[Cesium.Cartographic.toCartesian(l),Cesium.Cartographic.toCartesian(n)]:[Cesium.Cartographic.toCartesian(n),Cesium.Cartographic.toCartesian(l)];return new Cesium.GeometryInstance({id:{type:"SlopeAspect",value:o},geometry:new Cesium.GroundPolylineGeometry({positions:a,width:this.arrowWidth}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.BLUE.withAlpha(.6)),show:new Cesium.ShowGeometryInstanceAttribute(!0)}})}_calculateSlope(e){let t=this,r=[],i=[];for(let n=0;na&&(a=t,s=e)}let c=new Cesium.Cartographic(l.longitude,l.latitude,0),d=new Cesium.Cartographic(o[s].longitude,o[s].latitude,0),u=Cesium.Cartesian3.distance(Cesium.Cartographic.toCartesian(c),Cesium.Cartographic.toCartesian(d)),p=Math.abs(a/u),h=t._calculateSlopeColor(p,.4);const g=t._createPolygonInsrance(o,h);i.push(g);let f=s>4?o[s-4]:o[s+4],m=o[s];const b=t._createArrowInstance(m,l,f,a,p);r.push(b)}const o=t._viewer.scene.primitives.add(new Cesium.GroundPrimitive({geometryInstances:i,appearance:new Cesium.PerInstanceColorAppearance({translucent:!0,closed:!1})})),l=t._viewer.scene.primitives.add(new Cesium.GroundPolylinePrimitive({geometryInstances:r,appearance:new Cesium.PolylineMaterialAppearance({material:new Cesium.Material({fabric:{type:"PolylineArrow",uniforms:{color:new Cesium.Color(1,1,0,.8)}}})})}));t.result.push(l,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(xr.prototype,{createNew4Distance(e,t,r){let i=this;(r=r||{}).distance=r.distance||.1;let o=200*r.distance>35?35:200*r.distance;i.arrowWidth=o<15?15:o;let l=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));i.clearAll();let n=k.Cartesian3ListToWGS84(l),a=[],s=1e4,c=1e4,d=-1e4,u=-1e3;for(let g=0;gd?t:d,u=r>u?r:u}a.push(a[0]);let p=[s,c,d,u];Q([a]);let h=ur(p,r.distance,{});i._createEllipse(h)},createNew4Num(e,t,r){let i=this;(r=r||{}).num=Cesium.defaultValue(r.num,10);let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));i.clearAll();let l=k.Cartesian3ListToWGS84(o),n=[],a=1e4,s=1e4,c=-1e4,d=-1e3;for(let b=0;bc?t:c,d=r>d?r:d}n.push(n[0]);let u=[a,s,c,d],p=c-a,h=d-s;h=h>p?h:p;const g=h/r.num;let f=2e3*g>35?35:2e3*g;i.arrowWidth=f<15?15:f,Q([n]);let m=ur(u,g,{units:"degrees"});i._createEllipse(m)},clearAll(){this.result.forEach((e=>{this._viewer.scene.primitives.remove(e)})),this.result=[],this.handler&&(this.handler.destroy(),this.handler=void 0)}});let wr={TerrainExcavation:yr,SlopeAspect:xr};class kr{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(kr.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 Cr=Cesium.BoxGeometry,Er=Cesium.Cartesian3,Tr=Cesium.defaultValue,Sr=Cesium.defined,Ar=Cesium.destroyObject,Pr=Cesium.DeveloperError,Dr=Cesium.GeometryPipeline,Ir=Cesium.Matrix3,Mr=Cesium.Matrix4,Lr=Cesium.Transforms,Or=Cesium.VertexFormat,zr=Cesium.BufferUsage,Rr=Cesium.CubeMap,Nr=Cesium.DrawCommand,Br=Cesium.loadCubeMap,jr=Cesium.RenderState,Fr=Cesium.VertexArray,Ur=Cesium.BlendingState,Vr=Cesium.SceneMode,Wr=Cesium.ShaderProgram,Hr=Cesium.ShaderSource;Cesium.defined(Cesium.Matrix4.getRotation)||(Cesium.Matrix4.getRotation=Cesium.Matrix4.getMatrix3);class Gr{constructor(e){this.sources=e.sources,this._sources=void 0,this.show=Tr(e.show,!0),this._command=new Nr({modelMatrix:Mr.clone(Mr.IDENTITY),owner:this}),this._cubeMap=void 0,this._attributeLocations=void 0,this._useHdr=void 0}}const Yr=new Ir;Gr.prototype.update=function(e,t){const r=this;if(!this.show)return;if(e.mode!==Vr.SCENE3D&&e.mode!==Vr.MORPHING)return;if(!e.passes.render)return;const i=e.context;if(this._sources!==this.sources){this._sources=this.sources;const e=this.sources;if(!(Sr(e.positiveX)&&Sr(e.negativeX)&&Sr(e.positiveY)&&Sr(e.negativeY)&&Sr(e.positiveZ)&&Sr(e.negativeZ)))throw new Pr("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 Pr("this.sources properties must all be the same type.");"string"==typeof e.positiveX?Br(i,this._sources).then((function(e){r._cubeMap=r._cubeMap&&r._cubeMap.destroy(),r._cubeMap=e})):(this._cubeMap=this._cubeMap&&this._cubeMap.destroy(),this._cubeMap=new Rr({context:i,source:e}))}const o=this._command;if(o.modelMatrix=Lr.eastNorthUpToFixedFrame(e.camera._positionWC),!Sr(o.vertexArray)){o.uniformMap={u_cubeMap:function(){return r._cubeMap},u_rotateMatrix:function(){return Mr.getRotation(o.modelMatrix,Yr)}};const e=Cr.createGeometry(Cr.fromDimensions({dimensions:new Er(2,2,2),vertexFormat:Or.POSITION_ONLY})),t=this._attributeLocations=Dr.createAttributeLocations(e);o.vertexArray=Fr.fromGeometry({context:i,geometry:e,attributeLocations:t,bufferUsage:zr._DRAW}),o.renderState=jr.fromCache({blending:Ur.ALPHA_BLEND})}if(!Sr(o.shaderProgram)||this._useHdr!==t){const e=new Hr({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=Wr.fromCache({context:i,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 Sr(this._cubeMap)?o:void 0},Gr.prototype.isDestroyed=function(){return!1},Gr.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(),Ar(this)};class qr{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._farSkyBox=e.scene.skyBox}}Object.assign(qr.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,r=new Gr({sources:e.sources,show:!0});t._viewer.scene.postRender.addEventListener((()=>{var i=t._viewer.camera.position;Cesium.Cartographic.fromCartesian(i).heightCesium.Cartesian3.fromDegrees(e.lng,e.lat,e.height))),i=[];for(let e=0;e{let e=new Cesium.SampledPositionProperty;for(let i=0;i{let i=this;i.clearFlyPaths();let o=i._viewer.camera.position;var l={orientation:{heading:i._viewer.camera.heading,pitch:i._viewer.camera.pitch,roll:i._viewer.camera.roll},position:o,clampToGround:!0,geometry:{type:"LineString",coordinates:e}};i._draw3DObj=l,t(!0)}))},clearFlyPaths(){this._draw3DObj=null,this._viewer.trackedEntity=void 0,this._viewer.entities.remove(this.entityFly)},startFly(e,t){this._draw3DObj?this._startFly(this._draw3DObj,e):t&&t("漫游路线不存在")},pauseFly(){var e=this._viewer.clockViewModel;e.shouldAnimate?e.shouldAnimate=!1:this._viewer.clockViewModel.canAnimate&&(e.shouldAnimate=!0)},forwardFly(){var e=this._viewer.clockViewModel,t=e.multiplier;t<0&&(e.multiplier=-t),e.shouldAnimate=!0},backwardsFly(){var e=this._viewer.clockViewModel,t=e.multiplier;t>0&&(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()}});class ei{constructor(e,t,r){if(!e)throw new Cesium.DeveloperError("no viewer object!");if(!t)throw new Cesium.DeveloperError("no positions Array!");this.viewer=e,this.entity=void 0,(r=r||{}).time=Cesium.defaultValue(r.time,360),r.speed=Cesium.defaultValue(r.speed,10),r.isPathShow=Cesium.defaultValue(r.isPathShow,!0),r.height=Cesium.defaultValue(r.height,5),r.role=Cesium.defaultValue(r.role,1),r.followedX=Cesium.defaultValue(r.followedX,50),r.followedZ=Cesium.defaultValue(r.followedZ,10),this.time=r.time,this.speed=r.speed,this.isPathShow=r.isPathShow,this.height=r.height,this.role=r.role,this.followedX=r.followedX,this.followedZ=r.followedZ,this.model=r.model,this.billboard=r.billboard,this.point=r.point,this.label=r.label,this.property=this.ComputeRoamingLineProperty(t,this.time)}ComputeRoamingLineProperty(e,t){let r=[];r=e[0]instanceof Cesium.Cartesian3?e:e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));let i=[];for(let u=0;u{let t=new Cesium.SampledPositionProperty;for(let i=0;i0&&(this.viewer.clock.multiplier=-e),this.viewer.clock.shouldAnimate=!0}ChangeRoamingSpeed(e){this.viewer.clock.multiplier=e}EndRoaming(){void 0!==this.entity&&this.viewer.entities.remove(this.entity),this.viewer.trackedEntity=void 0,this.viewer.clock.shouldAnimate=!1;let e=this.viewer.clock.onTick.numberOfListeners;for(let t=0;t{let o;if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");o=e instanceof Cesium.Cartesian3?e:Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0),(t=t||{}).id=t.id||f();let l=t.label||{};l.text=Cesium.defaultValue(l.text,"金田CIM三维基础平台"),l.font=Cesium.defaultValue(l.font,"24px Helvetica"),l.fillColor instanceof Array?l.fillColor=new Cesium.Color(l.fillColor[0]/255,l.fillColor[1]/255,l.fillColor[2]/255,l.fillColor[3]):"string"==typeof l.fillColor?l.fillColor=new Cesium.Color.fromCssColorString(l.fillColor):l.fillColor=new Cesium.Color.fromCssColorString("#FFFF00"),l.outlineColor instanceof Array?l.outlineColor=new Cesium.Color(l.outlineColor[0]/255,l.outlineColor[1]/255,l.outlineColor[2]/255,l.outlineColor[3]):"string"==typeof l.outlineColor?l.outlineColor=new Cesium.Color.fromCssColorString(l.outlineColor):l.outlineColor=new Cesium.Color.fromCssColorString("#FFF"),l.outlineWidth=Cesium.defaultValue(l.outlineWidth,1),l.showBackground=Cesium.defaultValue(l.showBackground,!1),l.backgroundColor instanceof Array?l.backgroundColor=new Cesium.Color(l.backgroundColor[0]/255,l.backgroundColor[1]/255,l.backgroundColor[2]/255,l.backgroundColor[3]):"string"==typeof l.backgroundColor?l.backgroundColor=new Cesium.Color.fromCssColorString(l.backgroundColor):l.backgroundColor=new Cesium.Color.fromCssColorString("#FFF"),l.backgroundPadding&&(l.backgroundPadding=new Cesium.Cartesian2(l.backgroundPadding,l.backgroundPadding));let n=new Cesium.Entity({id:t.id,position:o,label:{text:l.text,font:l.font,fillColor:l.fillColor,outlineColor:l.outlineColor,outlineWidth:l.outlineWidth,style:Cesium.LabelStyle.FILL_AND_OUTLINE,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,showBackground:l.showBackground,backgroundColor:l.backgroundColor,backgroundPadding:l.backgroundPadding,disableDepthTestDistance:Number.POSITIVE_INFINITY,heightReference:Cesium.HeightReference.CLAMP_TO_GROUND}});l.pixelOffset&&(l.pixelOffset.x=Cesium.defaultValue(l.pixelOffset.x,0),l.pixelOffset.y=Cesium.defaultValue(l.pixelOffset.y,0),n.label.pixelOffset=new Cesium.Cartesian2(l.pixelOffset.x,l.pixelOffset.y)),l.scaleByDistance&&(l.scaleByDistance.near=Cesium.defaultValue(l.scaleByDistance.near,0),l.scaleByDistance.nearValue=Cesium.defaultValue(l.scaleByDistance.nearValue,0),l.scaleByDistance.far=Cesium.defaultValue(l.scaleByDistance.far,1),l.scaleByDistance.farValue=Cesium.defaultValue(l.scaleByDistance.farValue,0),n.label.scaleByDistance=new Cesium.NearFarScalar(l.scaleByDistance.near,l.scaleByDistance.nearValue,l.scaleByDistance.far,l.scaleByDistance.farValue)),this._viewer.entities.add(n),r(n)}))},addPoint(e,t){return new Promise(((r,i)=>{let o;if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");o=e instanceof Cesium.Cartesian3?e:Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0),(t=t||{}).id=t.id||f();let l=t.point||{};l.pixelSize=Cesium.defaultValue(l.pixelSize,10),l.color instanceof Array?l.color=new Cesium.Color(l.color[0]/255,l.color[1]/255,l.color[2]/255,l.color[3]):"string"==typeof l.color?l.color=new Cesium.Color.fromCssColorString(l.color):l.color=new Cesium.Color.fromCssColorString("#FFF"),l.outlineColor instanceof Array?l.outlineColor=new Cesium.Color(l.outlineColor[0]/255,l.outlineColor[1]/255,l.outlineColor[2]/255,l.outlineColor[3]):"string"==typeof l.outlineColor?l.outlineColor=new Cesium.Color.fromCssColorString(l.outlineColor):l.outlineColor=new Cesium.Color.fromCssColorString("#FFF"),l.outlineWidth=Cesium.defaultValue(l.outlineWidth,1);let n=new Cesium.Entity({id:t.id,position:o,point:{pixelSize:l.pixelSize,color:l.color,outlineColor:l.outlineColor,outlineWidth:l.outlineWidth,heightReference:Cesium.HeightReference.CLAMP_TO_GROUND,disableDepthTestDistance:Number.POSITIVE_INFINITY}});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]/255,e.fillColor[1]/255,e.fillColor[2]/255,e.fillColor[3]):"string"==typeof e.fillColor?e.fillColor=new Cesium.Color.fromCssColorString(e.fillColor):e.fillColor=new Cesium.Color.fromCssColorString("#FFFF00"),e.outlineColor instanceof Array?e.outlineColor=new Cesium.Color(e.outlineColor[0]/255,e.outlineColor[1]/255,e.outlineColor[2]/255,e.outlineColor[3]):"string"==typeof e.outlineColor?e.outlineColor=new Cesium.Color.fromCssColorString(e.outlineColor):e.outlineColor=new Cesium.Color.fromCssColorString("#FFF"),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]/255,e.backgroundColor[1]/255,e.backgroundColor[2]/255,e.backgroundColor[3]):"string"==typeof e.backgroundColor?e.backgroundColor=new Cesium.Color.fromCssColorString(e.backgroundColor):e.backgroundColor=new Cesium.Color.fromCssColorString("#FFF"),e.backgroundPadding&&(e.backgroundPadding=new Cesium.Cartesian2(e.backgroundPadding,e.backgroundPadding)),n.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},e.scaleByDistance&&(e.scaleByDistance.near=Cesium.defaultValue(e.scaleByDistance.near,0),e.scaleByDistance.nearValue=Cesium.defaultValue(e.scaleByDistance.nearValue,0),e.scaleByDistance.far=Cesium.defaultValue(e.scaleByDistance.far,1),e.scaleByDistance.farValue=Cesium.defaultValue(e.scaleByDistance.farValue,0),n.label.scaleByDistance=new Cesium.NearFarScalar(e.scaleByDistance.near,e.scaleByDistance.nearValue,e.scaleByDistance.far,e.scaleByDistance.farValue))}this._viewer.entities.add(n),r(n)}))},addBillboard(e,t){return new Promise(((r,i)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");let o;o=e instanceof Cesium.Cartesian3?e:Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0),(t=t||{}).id=t.id||f();let l=t.billboard||{};l.image=l.imgUrl||"jt3dSDK/imgs/point/point3.png",l.scale=Cesium.defaultValue(l.scale,1),l.pixelOffset=Cesium.defaultValue(l.pixelOffset,0);let n=new Cesium.Entity({id:t.id,name:"add billboard",position:o,billboard:{image:l.image,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,scale:l.scale,pixelOffset:new Cesium.Cartesian2(0,l.pixelOffset),heightReference:Cesium.HeightReference.CLAMP_TO_GROUND,disableDepthTestDistance:Number.POSITIVE_INFINITY}});if(l.scaleByDistance&&(l.scaleByDistance.near=Cesium.defaultValue(l.scaleByDistance.near,0),l.scaleByDistance.nearValue=Cesium.defaultValue(l.scaleByDistance.nearValue,0),l.scaleByDistance.far=Cesium.defaultValue(l.scaleByDistance.far,1),l.scaleByDistance.farValue=Cesium.defaultValue(l.scaleByDistance.farValue,0),n.billboard.scaleByDistance=new Cesium.NearFarScalar(l.scaleByDistance.near,l.scaleByDistance.nearValue,l.scaleByDistance.far,l.scaleByDistance.farValue)),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]/255,e.fillColor[1]/255,e.fillColor[2]/255,e.fillColor[3]):"string"==typeof e.fillColor?e.fillColor=new Cesium.Color.fromCssColorString(e.fillColor):e.fillColor=new Cesium.Color.fromCssColorString("#ff0000"),e.outlineColor instanceof Array?e.outlineColor=new Cesium.Color(e.outlineColor[0]/255,e.outlineColor[1]/255,e.outlineColor[2]/255,e.outlineColor[3]):"string"==typeof e.outlineColor?e.outlineColor=new Cesium.Color.fromCssColorString(e.outlineColor):e.outlineColor=new Cesium.Color.fromCssColorString("#FFFF00"),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]/255,e.backgroundColor[1]/255,e.backgroundColor[2]/255,e.backgroundColor[3]):"string"==typeof e.backgroundColor?e.backgroundColor=new Cesium.Color.fromCssColorString(e.backgroundColor):e.backgroundColor=new Cesium.Color.fromCssColorString("#FFFF00"),e.backgroundPadding&&(e.backgroundPadding=new Cesium.Cartesian2(e.backgroundPadding,e.backgroundPadding)),n.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:e.backgroundPadding,disableDepthTestDistance:Number.POSITIVE_INFINITY},e.pixelOffset&&(e.pixelOffset.x=Cesium.defaultValue(e.pixelOffset.x,0),e.pixelOffset.y=Cesium.defaultValue(e.pixelOffset.y,0),n.label.pixelOffset=new Cesium.Cartesian2(e.pixelOffset.x,e.pixelOffset.y)),e.scaleByDistance&&(e.scaleByDistance.near=Cesium.defaultValue(e.scaleByDistance.near,0),e.scaleByDistance.nearValue=Cesium.defaultValue(e.scaleByDistance.nearValue,0),e.scaleByDistance.far=Cesium.defaultValue(e.scaleByDistance.far,1),e.scaleByDistance.farValue=Cesium.defaultValue(e.scaleByDistance.farValue,0),n.label.scaleByDistance=new Cesium.NearFarScalar(e.scaleByDistance.near,e.scaleByDistance.nearValue,e.scaleByDistance.far,e.scaleByDistance.farValue))}this._viewer.entities.add(n),r(n)}))},addModel:function(e,t){let r=this;return this._viewer,new Promise(((i,o)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");let l;l=e instanceof Cesium.Cartesian3?e:Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0),(t=t||{}).id=t.id||f();let n=t.model||{};n.alpha=Cesium.defaultValue(n.alpha,1),n.heading=Cesium.defaultValue(n.heading,0),n.pitch=Cesium.defaultValue(n.pitch,0),n.roll=Cesium.defaultValue(n.roll,0);var a=Cesium.Math.toRadians(n.heading),s=n.pitch,c=n.roll;new Cesium.HeadingPitchRoll(a,s,c);let d=new Cesium.Entity({id:t.id,position:l,model:{uri:n.url,incrementallyLoadTextures:!0,colorBlendMode:Cesium.ColorBlendMode.HIGHLIGHT,colorBlendAmount:.1,color:Cesium.Color.WHITE.withAlpha(n.alpha),imageBasedLightingFactor:new Cesium.Cartesian2(12,13),runAnimations:!0,show:!0,debugWireframe:!1,debugShowBoundingVolume:!1,heightReference:Cesium.HeightReference.CLAMP_TO_GROUND,disableDepthTestDistance:Number.POSITIVE_INFINITY}});n.minimumPixelSize&&(d.model.minimumPixelSize=n.minimumPixelSize),n.maximumScale&&(d.model.maximumScale=n.maximumScale),n.silhouetteColor&&(n.silhouetteColor instanceof Array?d.model.silhouetteColor=new Cesium.Color(n.silhouetteColor[0]/255,n.silhouetteColor[1]/255,n.silhouetteColor[2]/255,n.silhouetteColor[3]):"string"==typeof n.silhouetteColor&&(d.model.silhouetteColor=new Cesium.Color.fromCssColorString(n.silhouetteColor))),n.silhouetteSize=Cesium.defaultValue(n.silhouetteSize,1),r._viewer.entities.add(d),i(d)}))},addBillboardByGeoJson:function(e,t){return new Promise(((r,o)=>{let l=this._viewer;if(!Cesium.defined(e))throw new Cesium.DeveloperError("geoJsonUrl is required.");(t=t||{}).id=t.id||f();let n=t.billboard||{};n.imgUrl=Cesium.defaultValue(n.imgUrl,"jt3dSDK/imgs/point/point3.png"),n.scale=Cesium.defaultValue(n.scale,1),n.pixelOffset=Cesium.defaultValue(n.pixelOffset,0);let a=t.label||{};a.text=Cesium.defaultValue(a.text,""),a.textField=Cesium.defaultValue(a.textField,""),a.font=Cesium.defaultValue(a.font,"24px Helvetica"),a.fillColor instanceof Array?a.fillColor=new Cesium.Color(a.fillColor[0]/255,a.fillColor[1]/255,a.fillColor[2]/255,a.fillColor[3]):"string"==typeof a.fillColor?a.fillColor=new Cesium.Color.fromCssColorString(a.fillColor):a.fillColor=new Cesium.Color.fromCssColorString("#ff0000"),a.outlineColor instanceof Array?a.outlineColor=new Cesium.Color(a.outlineColor[0]/255,a.outlineColor[1]/255,a.outlineColor[2]/255,a.outlineColor[3]):"string"==typeof a.outlineColor?a.outlineColor=new Cesium.Color.fromCssColorString(a.outlineColor):a.outlineColor=new Cesium.Color.fromCssColorString("#FFFF00"),a.outlineWidth=Cesium.defaultValue(a.outlineWidth,1),a.showBackground=Cesium.defaultValue(a.showBackground,!1),a.backgroundColor instanceof Array?a.backgroundColor=new Cesium.Color(a.backgroundColor[0]/255,a.backgroundColor[1]/255,a.backgroundColor[2]/255,a.backgroundColor[3]):"string"==typeof a.backgroundColor?a.backgroundColor=new Cesium.Color.fromCssColorString(a.backgroundColor):a.backgroundColor=new Cesium.Color.fromCssColorString("#FFFF00"),a.pixelOffset=Cesium.defaultValue(a.pixelOffset,0),a.scale=Cesium.defaultValue(a.scale,1);new Cesium.GeoJsonDataSource(t.id).load(e,{clampToGround:!0}).then((function(e){l.dataSources.add(e);e.entities.values.forEach((e=>{e.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};let t=a.text;e.properties[a.textField]&&(t=e.properties[a.textField]._value),""===t&&(t=(i+1).toString()),e.label={text:t.toString(),font:a.font,fillColor:a.fillColor,outlineColor:a.outlineColor,outlineWidth:a.outlineWidth,style:Cesium.LabelStyle.FILL_AND_OUTLINE,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,showBackground:a.showBackground,backgroundColor:a.backgroundColor,backgroundPadding:new Cesium.Cartesian2(6,6),disableDepthTestDistance:Number.POSITIVE_INFINITY,pixelOffset:new Cesium.Cartesian2(0,a.pixelOffset),scale:a.scale},a.scaleByDistance&&(a.scaleByDistance.near=Cesium.defaultValue(a.scaleByDistance.near,0),a.scaleByDistance.nearValue=Cesium.defaultValue(a.scaleByDistance.nearValue,0),a.scaleByDistance.far=Cesium.defaultValue(a.scaleByDistance.far,1),a.scaleByDistance.farValue=Cesium.defaultValue(a.scaleByDistance.farValue,0),e.label.scaleByDistance=new Cesium.NearFarScalar(a.scaleByDistance.near,a.scaleByDistance.nearValue,a.scaleByDistance.far,a.scaleByDistance.farValue))}))}))}))},addGltf:function(e){let t=this._viewer;return new Promise(((r,i)=>{if(!Cesium.defined(e.points))throw r("options.points is required."),new Cesium.DeveloperError("options.points is required.");if(!Cesium.defined(e.url))throw r("options.url is required."),new Cesium.DeveloperError("options.url is required.");let o;e.id=e.id||f(),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 l=Cesium.Math.toRadians(e.heading),n=e.pitch,a=e.roll,s=new Cesium.HeadingPitchRoll(l,n,a),c=t.entities.add({id:e.id,position:o,orientation:Cesium.Transforms.headingPitchRollQuaternion(o,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&&(c.model.minimumPixelSize=e.minimumPixelSize),e.maximumScale&&(c.model.maximumScale=e.maximumScale),e.silhouetteColor&&(e.silhouetteColor instanceof Array?e.silhouetteColor=new Cesium.Color(e.silhouetteColor[0]/255,e.silhouetteColor[1]/255,e.silhouetteColor[2]/255,e.silhouetteColor[3]):"string"==typeof e.silhouetteColor?e.silhouetteColor=new Cesium.Color.fromCssColorString(e.silhouetteColor):e.silhouetteColor=new Cesium.Color.fromCssColorString("#FFFF00")),window[e.id]=c,r(e.id)}))},addModelFromGltf(e,t){let r=this._viewer;return new Promise(((e,i)=>{if(!Cesium.defined(t.points))throw e("options.points is required."),new Cesium.DeveloperError("options.points is required.");if(!Cesium.defined(t.url))throw e("options.url is required."),new Cesium.DeveloperError("options.url is required.");let o;t.id=t.id||f(),t.scale=Cesium.defaultValue(t.scale,1),o=t.points instanceof Cesium.Cartesian3?t.points:Cesium.Cartesian3.fromDegrees(t.points[0],t.points[1],t.points[2]||0);const l=Cesium.Transforms.eastNorthUpToFixedFrame(o);let n=r.scene.primitives.add(Cesium.Model.fromGltf({show:!0,url:t.url,modelMatrix:l,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[t.id]=n,e(t.id)}))}});class ri{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e}}Object.assign(ri.prototype,{drawPolylineByGeoJson:function(e,t){return new Promise(((r,i)=>{let o=this._viewer;if(!Cesium.defined(e))throw new Cesium.DeveloperError("geoJsonUrl is required.");(t=t||{}).id=t.id||f(),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 i=e.entities.values,l=new Cesium.DistanceDisplayCondition(t.minHeigh,t.maxHeigh),n=new C(t);for(var a=0;a{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&i("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||f(),t.width=t.width||5;let l=new C(t);r(this._viewer.entities.add({id:t.id,name:"Pulse line",polyline:{positions:o,width:t.width,material:l,clampToGround:!0}}))}))},PolylineArrowMaterialProperty:function(e,t){return new Promise(((r,i)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&i("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||f(),t.width=t.width||5;let l=new C(t);r(this._viewer.entities.add({id:t.id,name:"Pulse line",polyline:{positions:o,width:t.width,material:l,clampToGround:!0}}))}))},drawGlowingLine(e,t){return new Promise(((r,i)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&i("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||f(),t.color&&(t.color instanceof Array?t.color=new Cesium.Color(t.color[0]/255,t.color[1]/255,t.color[2]/255,t.color[3]):"string"==typeof t.color?t.color=new Cesium.Color.fromCssColorString(t.color):t.color=new Cesium.Color.fromCssColorString("#FFFF00")),t.width=t.width||5,t.glowPower=t.glowPower||.25,t.taperPower=t.taperPower||1,r(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(((r,i)=>{Cesium.defined(e)||i("points is required."),e.length<2&&i("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||f(),t.color&&(t.color instanceof Array?t.color=new Cesium.Color(t.color[0]/255,t.color[1]/255,t.color[2]/255,t.color[3]):"string"==typeof t.color?t.color=new Cesium.Color.fromCssColorString(t.color):t.color=new Cesium.Color.fromCssColorString("#FFFF00")),t.width=t.width||5,r(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(((r,i)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&i("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||f(),t.color&&(t.color instanceof Array?t.color=new Cesium.Color(t.color[0]/255,t.color[1]/255,t.color[2]/255,t.color[3]):"string"==typeof t.color?t.color=new Cesium.Color.fromCssColorString(t.color):t.color=new Cesium.Color.fromCssColorString("#FFFF00")),t.width=t.width||5,t.outlineColor&&(t.outlineColor instanceof Array?t.outlineColor=new Cesium.Color(t.outlineColor[0]/255,t.outlineColor[1]/255,t.outlineColor[2]/255,t.outlineColor[3]):"string"==typeof t.outlineColor?t.outlineColor=new Cesium.Color.fromCssColorString(t.outlineColor):t.outlineColor=new Cesium.Color.fromCssColorString("#FFFF00")),t.outlineWidth=Cesium.defaultValue(t.outlineWidth,1),r(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(((r,i)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&i("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||f(),t.color&&(t.color instanceof Array?t.color=new Cesium.Color(t.color[0]/255,t.color[1]/255,t.color[2]/255,t.color[3]):"string"==typeof t.color?t.color=new Cesium.Color.fromCssColorString(t.color):t.color=new Cesium.Color.fromCssColorString("#FFFF00")),t.width=t.width||5,r(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(((r,i)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&i("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||f(),t.color&&(t.color instanceof Array?t.color=new Cesium.Color(t.color[0]/255,t.color[1]/255,t.color[2]/255,t.color[3]):"string"==typeof t.color?t.color=new Cesium.Color.fromCssColorString(t.color):t.color=new Cesium.Color.fromCssColorString("#FFFF00")),t.width=t.width||5,t.gapColor&&(t.gapColor instanceof Array?t.gapColor=new Cesium.Color(t.gapColor[0]/255,t.gapColor[1]/255,t.gapColor[2]/255,t.gapColor[3]):"string"==typeof t.gapColor?t.gapColor=new Cesium.Color.fromCssColorString(t.gapColor):t.gapColor=new Cesium.Color.fromCssColorString("#FFFF00")),t.dashLength=t.dashLength||16,t.dashPattern=t.dashPattern||255,r(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 ii{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._drawEntities=[],this._polygonEntity=null}}function oi(e){this._definitionChanged=new Cesium.Event,this._color=void 0,this._colorSubscription=void 0,this.color=e.color||Color.BLUE,this.duration=e.duration||1e3,this.trailImage=e.trailImage,this._time=(new Date).getTime()}Object.assign(ii.prototype,{drawPolygonByGeoJson(e,t){return new Promise(((r,i)=>{let o=this;if(!Cesium.defined(e))throw new Cesium.DeveloperError("geoJsonUrl is required.");(t=t||{}).id=t.id||f(),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 i=e.entities.values;for(let r=0;r{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<3&&i("面对象,点数至少3个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||f(),t.fill=t.fill||!0,t.color?t.color=new Cesium.Color(t.color[0]/255,t.color[1]/255,t.color[2]/255,t.color[3]):t.color=new Cesium.Color.fromCssColorString("#ff0000"),t.outline=t.outline||!1,t.outlineColor?t.outlineColor=new Cesium.Color(t.outlineColor[0]/255,t.outlineColor[1]/255,t.outlineColor[2]/255,t.outlineColor[3]):t.outlineColor=new Cesium.Color.fromCssColorString("#000"),t.outlineWidth=Cesium.defaultValue(t.outlineWidth,1);let l=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&&(l.polyline={positions:l.polygon.hierarchy._value.positions,width:t.outlineWidth,material:t.outlineColor,clampToGround:!0}),this._viewer.entities.add(l),r(l)}))}}),Object.defineProperties(oi.prototype,{isConstant:{get:function(){return!1}},definitionChanged:{get:function(){return this._definitionChanged}},color:Cesium.createPropertyDescriptor("color")});var li="wallType"+parseInt(1e3*Math.random());oi.prototype.getType=function(e){return li},oi.prototype.getValue=function(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrClonedDefault(this._color,e,Cesium.Color.WHITE,t.color),t.image=this.trailImage,this.duration&&(t.time=((new Date).getTime()-this._time)%this.duration/this.duration),viewer.scene.requestRender(),t},oi.prototype.equals=function(e){return this===e||e instanceof oi&&Cesium.Property.equals(this._color,e._color)},Cesium.Material._materialCache.addMaterial(li,{fabric:{type:li,uniforms:{color:new Cesium.Color(1,0,0,.5),image:Cesium.Material.DefaultImageId,time:-20},source:function(e){if(e&&e.get){var t="czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;";return"vertical"==e.direction?t+="vec4 colorImage = texture2D(image, vec2(fract(st.s), fract(float("+e.count+")*st.t"+e.order+" time)));\n ":t+="vec4 colorImage = texture2D(image, vec2(fract(float("+e.count+")*st.s "+e.order+" time), fract(st.t)));\n ",t+="vec4 fragColor;\n fragColor.rgb = (colorImage.rgb+color.rgb) / 1.0;\n fragColor = czm_gammaCorrect(fragColor);\n material.diffuse = colorImage.rgb;\n material.alpha = colorImage.a;\n material.emission = fragColor.rgb;\n return material;\n }"}}({get:!0,count:3,direction:"vertical",order:"-"})},translucent:function(e){return!0}}),Cesium.DynamicWallMaterialProperty=oi;class ni{constructor(e){this._definitionChanged=new Cesium.Event,this._color=void 0,this.color=e.color}get isConstant(){return!1}get definitionChanged(){return this._definitionChanged}getType(e){return Cesium.Material.WallDiffuseMaterialType}getValue(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrDefault(this._color,e,Cesium.Color.RED,t.color),t}equals(e){return this===e||e instanceof ni&&Cesium.Property.equals(this._color,e._color)}}Object.defineProperties(ni.prototype,{color:Cesium.createPropertyDescriptor("color")}),Cesium.WallDiffuseMaterialProperty=ni,Cesium.Material.WallDiffuseMaterialProperty="WallDiffuseMaterialProperty",Cesium.Material.WallDiffuseMaterialType="WallDiffuseMaterialType",Cesium.Material.WallDiffuseMaterialSource="\n uniform vec4 color;\n czm_material czm_getMaterial(czm_materialInput materialInput){\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n material.diffuse = color.rgb * 2.0;\n material.alpha = color.a * (1.0 - fract(st.t)) * 0.8;\n return material;\n }\n \n ",Cesium.Material._materialCache.addMaterial(Cesium.Material.WallDiffuseMaterialType,{fabric:{type:Cesium.Material.WallDiffuseMaterialType,uniforms:{color:new Cesium.Color(1,0,0,1)},source:Cesium.Material.WallDiffuseMaterialSource},translucent:function(e){return!0}});class ai{constructor(e,t){this._viewer=e,t=t||{},this._definitionChanged=new Cesium.Event,this._color=void 0,this.color=t.color||Cesium.Color.BLUE,this.duration=t.duration||1e3,this.count=t.duration||1,this.direction=t.duration||"vertical",this.order=t.duration||"-",this.trailImage=Cesium.defaultValue(t.trailImage,"jt3dSDK/imgs/wallmaterial/wl.png"),this._time=(new Date).getTime(),this._materialTypeName="WallMaterial"+this._guid(),this._param={color:this.color._value.toCssColorString(),image:this.trailImage,duration:this.duration,count:this.count,direction:this.direction,order:this.order},Cesium.Material._materialCache.addMaterial(this._materialTypeName,{fabric:{type:this._materialTypeName,uniforms:{time:-20,color:new Cesium.Color(1,0,0,.5),image:t.trailImage},source:this._getDirectionWallShader(t.param)},translucent:function(e){return!0}})}_guid(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}getType(e){return this._materialTypeName}getValue(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrClonedDefault(this._color,e,Cesium.Color.BLUE,t.color),t.image=this.trailImage,this.duration&&(t.time=((new Date).getTime()-this._time)%this.duration/this.duration),this._viewer.scene.requestRender(),t}equals(e){return this===e||e instanceof ai&&Cesium.Property.equals(this._color,e._color)&&e._param.order===this._param.order&&e._param.count===this._param.count&&e._param.direction===this._param.direction&&e.duration===this.duration}_getDirectionWallShader(e){let t=Cesium.defaultValue(e,{}),r=void 0!==t.count&&"number"==typeof t.count&&t.count>0?t.count:1,i="horizontal"===t.direction?"horizontal":"vertical",o="+"===t.order?"+":"-";this._param.count=r,this._param.direction=i,this._param.order=o;let l="";return l+="czm_material czm_getMaterial(czm_materialInput materialInput){\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n","vertical"===i?l+=" vec4 colorImage = texture2D(image,vec2(st.s,fract(float("+r+")*st.t "+o+" time)));\n":"horizontal"===i&&(l+=" vec4 colorImage = texture2D(image, vec2(fract(float("+r+")*st.s "+o+" time), st.t));\n"),l+=" vec4 fragColor;\n fragColor.rgb = color.rgb / 1.0;\n fragColor = czm_gammaCorrect(fragColor);\n material.alpha = colorImage.a * color.a;\n material.diffuse = color.rgb;\n material.emission = fragColor.rgb;\n return material;\n}",l}}Object.defineProperties(ai.prototype,{isConstant:{get:function(){return!1}},definitionChanged:{get:function(){return this._definitionChanged}},color:Cesium.createPropertyDescriptor("color")});class si{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e}}Object.assign(si.prototype,{drawWallByGeoJson:function(e,t){return new Promise(((r,i)=>{let o=this._viewer;if(!Cesium.defined(e))throw new Cesium.DeveloperError("geoJsonUrl is required.");(t=t||{}).id=t.id||f(),t.clampToGround=Cesium.defaultValue(t.clampToGround,!0),t.minimunHeights=void 0!==t.minimunHeights&&"number"==typeof t.minimunHeights?t.minimunHeights:0,t.maximumHeights=void 0!==t.maximumHeights&&"number"==typeof t.maximumHeights?t.maximumHeights:1e3,t.color&&(t.color instanceof Array?t.color=new Cesium.Color(t.color[0]/255,t.color[1]/255,t.color[2]/255,t.color[3]):"string"==typeof t.color?t.color=new Cesium.Color.fromCssColorString(t.color):t.color=new Cesium.Color.fromCssColorString("#FFFF00")),t.trailImage=Cesium.defaultValue(t.trailImage,"jt3dSDK/imgs/wallmaterial/wl.png"),t.duration=Cesium.defaultValue(t.duration,3e3),t.count=Cesium.defaultValue(t.count,1),t.direction=Cesium.defaultValue(t.direction,"vertical"),t.order=Cesium.defaultValue(t.order,"-"),fetch(e).then((e=>e.json())).then((e=>{for(var i=0;iCesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0))),l=new Cesium.CustomDataSource(t.id);o.dataSources.add(l);let n=new Cesium.Entity({name:"立体墙效果",wall:{positions:r,maximumHeights:new Array(r.length).fill(t.maximumHeights),minimunHeights:new Array(r.length).fill(t.minimunHeights),material:new ai(o,{trailImage:t.trailImage,color:t.color,duration:t.duration,param:{count:t.count,direction:t.direction,order:t.order}})}});l.entities.add(n)}r(t.id)}))}))}});class ci{constructor(e){this._viewer=e.viewer,this._definitionChanged=new Cesium.Event,this._color=void 0,this.color=e.color||Cesium.Color.BLUE,this.count=e.count||1,this.duration=e.duration||1e3,this._time=(new Date).getTime(),this._materialTypeName="jtCircleMaterial",this._param={color:this.color._value.toCssColorString(),duration:this.duration,count:this.count},Cesium.Material._materialCache.addMaterial(this._materialTypeName,{fabric:{type:this._materialTypeName,uniforms:{time:0,color:new Cesium.Color(1,0,0,.5),count:1},source:this._getCircleMaterial()},translucent:function(e){return!0}})}_getCircleMaterial(){return"czm_material czm_getMaterial(czm_materialInput materialInput)\n{\n czm_material material = czm_getDefaultMaterial(materialInput);\n material.diffuse = 1.5 * color.rgb;\n vec2 st = materialInput.st;\n vec3 str = materialInput.str;\n float dis = distance(st, vec2(0.5, 0.5));\n float per = fract(time);\n if (abs(str.z) > 0.001)\n {\n //着色器渲染停止,不在绘制内容 \n discard;\n }\n if (dis > 0.5)\n {\n //超出半径范围时,着色器渲染停止 \n discard;\n } else {\n //把半径分成count份,每两份之间的间隔距离 \n float perDis = 0.5 / count;\n float disNum;\n float bl = 0.0;\n //循环,最多999个环 \n for (int i = 0; i <= 999; i++)\n {\n //判断是否属于数量内的环 \n if (float(i) <= count)\n {\n disNum = perDis * float(i) - dis + per / count;\n if (disNum > 0.0)\n {\n if (disNum < perDis)\n {\n bl = 1.0 - disNum / perDis;\n } else if (disNum - perDis < perDis) {\n bl = 1.0 - abs(1.0 - disNum / perDis);\n }\n material.alpha = color.a * pow(bl, 3.0);\n }\n }\n }\n }\n return material;\n}\n"}}Object.assign(ci.prototype,{getType:function(e){return this._materialTypeName},getValue:function(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrClonedDefault(this._color,e,Cesium.Color.BLUE,t.color),t.count=this.count,this.duration&&(t.time=((new Date).getTime()-this._time)%this.duration/this.duration),this._viewer.scene.requestRender(),t},equals:function(e){return this===e||e instanceof ci&&Cesium.Property.equals(this._color,e._color)}}),Object.defineProperties(ci.prototype,{isConstant:{get:function(){return!1}},definitionChanged:{get:function(){return this._definitionChanged}},color:Cesium.createPropertyDescriptor("color")});class di{constructor(e){this._definitionChanged=new Cesium.Event,this._color=void 0,this._speed=void 0,this.color=e.color,this.speed=e.speed,this.count=e.count,this.gradient=e.gradient}get isConstant(){return!1}get definitionChanged(){return this._definitionChanged}getType(e){return Cesium.Material.CircleRippleMaterialType}getValue(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrDefault(this._color,e,Cesium.Color.RED,t.color),t.speed=Cesium.Property.getValueOrDefault(this._speed,e,10,t.speed),t.count=this.count,t.gradient=this.gradient,t}equals(e){return this===e||e instanceof di&&Cesium.Property.equals(this._color,e._color)&&Cesium.Property.equals(this._speed,e._speed)&&Cesium.Property.equals(this.count,e.count)&&Cesium.Property.equals(this.gradient,e.gradient)}}Object.defineProperties(di.prototype,{color:Cesium.createPropertyDescriptor("color"),speed:Cesium.createPropertyDescriptor("speed"),count:Cesium.createPropertyDescriptor("count"),gradient:Cesium.createPropertyDescriptor("gradient")}),Cesium.CircleRippleMaterialProperty=di,Cesium.Material.CircleRippleMaterialProperty="CircleRippleMaterialProperty",Cesium.Material.CircleRippleMaterialType="CircleRippleMaterialType",Cesium.Material.CircleRippleMaterialSource="\n uniform vec4 color;\n uniform float speed;\n uniform float count;\n uniform float gradient;\n\n czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n material.diffuse = 1.5 * color.rgb;\n vec2 st = materialInput.st;\n float dis = distance(st, vec2(0.5, 0.5));\n float per = fract(czm_frameNumber * speed / 1000.0);\n if(count == 1.0){\n if(dis > per * 0.5){\n discard;\n }else {\n material.alpha = color.a * dis / per / 2.0;\n }\n } else {\n vec3 str = materialInput.str;\n if(abs(str.z) > 0.001){\n discard;\n }\n if(dis > 0.5){\n discard;\n } else {\n float perDis = 0.5 / count;\n float disNum;\n float bl = 0.0;\n for(int i = 0; i <= 999; i++){\n if(float(i) <= count){\n disNum = perDis * float(i) - dis + per / count;\n if(disNum > 0.0){\n if(disNum < perDis){\n bl = 1.0 - disNum / perDis;\n }\n else if(disNum - perDis < perDis){\n bl = 1.0 - abs(1.0 - disNum / perDis);\n }\n material.alpha = pow(bl,(1.0 + 10.0 * (1.0 - gradient)));\n }\n }\n }\n }\n }\n return material;\n }\n ",Cesium.Material._materialCache.addMaterial(Cesium.Material.CircleRippleMaterialType,{fabric:{type:Cesium.Material.CircleRippleMaterialType,uniforms:{color:new Cesium.Color(1,0,0,1),speed:3,count:4,gradient:.2},source:Cesium.Material.CircleRippleMaterialSource},translucent:function(e){return!0}});class ui{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e}}Object.assign(ui.prototype,{drawCircle:function(e,t,r){return new Promise(((i,o)=>{let l,n=this._viewer;if(!Cesium.defined(e))throw new Cesium.DeveloperError("centerPoint is required.");if(!Cesium.defined(t))throw new Cesium.DeveloperError("radius is required.");l=e instanceof Cesium.Cartesian3?e:Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0),t="number"==typeof t&&t>0?t:100,(r=r||{}).id=r.id||f(),r.clampToGround=Cesium.defaultValue(r.clampToGround,!0),r.CircleType=Cesium.defaultValue(r.CircleType,"ColorCircle"),r.duration=Cesium.defaultValue(r.duration,3e3),r.count=Cesium.defaultValue(r.count,1),r.color&&(r.color instanceof Array?r.color=new Cesium.Color(r.color[0]/255,r.color[1]/255,r.color[2]/255,r.color[3]):"string"==typeof r.color?r.color=new Cesium.Color.fromCssColorString(r.color):r.color=new Cesium.Color.fromCssColorString("#FFFF00")),r.outlineColor&&(r.outlineColor instanceof Array?r.outlineColor=new Cesium.Color(r.outlineColor[0]/255,r.outlineColor[1]/255,r.outlineColor[2]/255,r.outlineColor[3]):"string"==typeof r.outlineColor?r.outlineColor=new Cesium.Color.fromCssColorString(r.outlineColor):r.outlineColor=new Cesium.Color.fromCssColorString("#FFFF00")),r.outlineWidth=Cesium.defaultValue(r.outlineWidth,0);let a=r.color;r.outlineColor,"DynamicCircle"===r.CircleType&&(a=new Cesium.CircleRippleMaterialProperty({color:r.color,speed:r.duration/1e3,count:r.count,gradient:.2}));let s=new Cesium.Entity({id:r.id,position:l,ellipse:{semiMinorAxis:t,semiMajorAxis:t,material:a,outline:!0,outlineColor:r.outlineColor,outlineWidth:r.outlineWidth}});i(s,n.entities.add(s))}))}}),Cesium.Primitive.prototype.setUseGeometry=function(e){this._useGeometry=e},Cesium.Primitive.prototype.getUseGeometry=function(){return this._useGeometry};class pi{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,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",this._iconBlue="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozNjZmZDYyMy02NmE4LWYzNDUtODc4MC00YmMwY2IzZWM4OTMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MkEyMUE1MDg3NTAyMTFFREI0RUY4MjBCRjRGRDc0QUIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MkEyMUE1MDc3NTAyMTFFREI0RUY4MjBCRjRGRDc0QUIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OWFmM2ZiODktNzQ4OS1kMDRkLTkyNzUtZDM5MWNhYzYwMGE1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjM2NmZkNjIzLTY2YTgtZjM0NS04NzgwLTRiYzBjYjNlYzg5MyIv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",this._iconGreen="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozNjZmZDYyMy02NmE4LWYzNDUtODc4MC00YmMwY2IzZWM4OTMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MjI1NDIwOUU3NTAyMTFFRDk0MTJGQzhGMTFCQkREODIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MjI1NDIwOUQ3NTAyMTFFRDk0MTJGQzhGMTFCQkREODIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OWFmM2ZiODktNzQ4OS1kMDRkLTkyNzUtZDM5MWNhYzYwMGE1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjM2NmZkNjIzLTY2YTgtZjM0NS04NzgwLTRiYzBjYjNlYzg5MyIv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",this._iconViolet="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozNjZmZDYyMy02NmE4LWYzNDUtODc4MC00YmMwY2IzZWM4OTMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzFDREU3Mjk3NTAyMTFFREE4MThDODBGNzMxNDBCQzEiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MzFDREU3Mjg3NTAyMTFFREE4MThDODBGNzMxNDBCQzEiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OWFmM2ZiODktNzQ4OS1kMDRkLTkyNzUtZDM5MWNhYzYwMGE1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjM2NmZkNjIzLTY2YTgtZjM0NS04NzgwLTRiYzBjYjNlYzg5MyIv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",this._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.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 pi.SketchIconType.Normal:this._sketchPointImage=this._iconNormal;break;case pi.SketchIconType.Blue:this._sketchPointImage=this._iconBlue;break;case pi.SketchIconType.Green:this._sketchPointImage=this._iconGreen;break;case pi.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,r,i){let o=new Cesium.Color(0,0,0,1);return"number"!=typeof e||"number"!=typeof t||"number"!=typeof r||"number"!=typeof i||e<0||e>255||t<0||t>255||r<0||r>255||i<0||i>1?o:new Cesium.Color(e/255,t/255,r/255,i)}_toColorFromArray(e){if(!e||void 0===e.length||0===e.length)return new Cesium.Color(1,1,1,1);let t=255,r=255,i=255,o=1;return 1===e.length?t=parseInt(e[0]):2===e.length?(t=parseInt(e[0]),r=parseInt(e[1])):3===e.length?(t=parseInt(e[0]),r=parseInt(e[1]),i=parseInt(e[2])):e.length>=4&&(t=parseInt(e[0]),r=parseInt(e[1]),i=parseInt(e[2]),o=parseFloat(e[3])),new Cesium.Color(t/255,r/255,i/255,o)}_updateScene(){this._viewer.scene.requestRender()}_getScreenClickPosition(e){let t,r=this._viewer.scene.camera.getPickRay(e),i=this._viewer.scene.globe.pick(r,this._viewer.scene);return Cesium.Ellipsoid.WGS84.cartesianToCartographic(i),Cesium.defined(i)&&(t={x:i.x,y:i.y,z:i.z}),t}_getScreenClickPositionAndHeight(e){var t=void 0,r=void 0,i=void 0,o=this._viewer.scene.camera.getPickRay(e),l=this._viewer.scene.globe.pick(o,this._viewer.scene),n=Cesium.Ellipsoid.WGS84.cartesianToCartographic(l);if(null==this._viewer.scene.pick(e))t=this._arcToDegree(n.longitude),r=this._arcToDegree(n.latitude),i=n.height;else{var a=this._viewer.scene.pickPosition(e);if(Cesium.defined(a)){n=Cesium.Cartographic.fromCartesian(a);t=this._arcToDegree(n.longitude),r=this._arcToDegree(n.latitude),i=n.height}}return{lng:t,lat:r,height:i}}_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 r=[],i=0;i0&&(r._sketchPoints.pop(),r._sketchOutputPoints.pop(),t.onUndo&&t.onUndo())})),this._registerLeftDoubleClickEvent(e,(function(e){r._clearEvent(),t.onComplete&&t.onComplete(r._sketchPoints,r._sketchOutputPoints)}))},_sketchDrawPolyline(e,t){let r=this;this._registerLeftClickEvent(e,(function(e){let i=r._transfromFromScreenPoint(e.position);Cesium.defined(i.sLocation)&&(r._isDrawPoint&&r._createPoint(i.sLocation,r._lineLabel),0===r._sketchTempPoints.length&&(r._createTempPolyline(),r._sketchTempPoints.push(i.sLocation.clone())),r._sketchTempPoints.push(i.sLocation),r._sketchPoints.push(i.sLocation.clone()),r._sketchOutputPoints.push(i.gLocation),t.onAdded&&t.onAdded(r._sketchPoints,r._sketchOutputPoints))})),this._registerMouseMoveEvent(e,(function(e){if(r._isRuntimeApp())return;let i=r._transfromFromScreenPoint(e.endPosition);Cesium.defined(i.sLocation)&&Cesium.defined(r._sketchTempPolyline)&&(r._sketchTempPoints.pop(),r._sketchTempPoints.push(i.sLocation),t.onMoving&&t.onMoving(i.sLocation))})),this._registerRightClickEvent(e,(function(e){if(r._sketchTempPoints.length>2){if(r._sketchPoints.pop(),r._sketchTempPoints.splice(r._sketchTempPoints.length-2,1),r._isDrawPoint){let e=r._pointEntitys[r._pointEntitys.length-1];r._entities.remove(e),r._pointEntitys.pop()}t.onUndo&&t.onUndo()}})),this._registerLeftDoubleClickEvent(e,(function(i){r._isRuntimeApp()||(r._sketchPoints.length<2?t.onError&&t.onError("点数少于两个,禁止结束绘制!"):(r._removeEntityByObject(r._sketchTempPolyline),r._createPolyline(),r._isRetainDrawPoint||r._removePointEntitys(),r._clearEvent(e),t.onComplete&&t.onComplete(r._sketchPoints,r._sketchOutputPoints)))}))},_sketchDrawSpatialPolyline(e,t){let r=this;this._registerLeftClickEvent(e,(function(e){let i=r._transfromFromScreenPoint(e.position);Cesium.defined(i.sLocation)&&(r._isDrawPoint&&r._createPoint(i.sLocation,r._lineLabel),0===r._sketchTempPoints.length&&(r._createTempSpatialPolyline(),r._sketchTempPoints.push(i.sLocation.clone())),r._sketchTempPoints.push(i.sLocation),r._sketchPoints.push(i.sLocation.clone()),r._sketchOutputPoints.push(i.gLocation),t.onAdded&&t.onAdded(r._sketchPoints,r._sketchOutputPoints))})),this._registerMouseMoveEvent(e,(function(e){if(r._isRuntimeApp())return;let i=r._transfromFromScreenPoint(e.endPosition);Cesium.defined(i.sLocation)&&Cesium.defined(r._sketchTempSpatialPolyline)&&(r._sketchTempPoints.pop(),r._sketchTempPoints.push(i.sLocation),t.onMoving&&t.onMoving(i.sLocation))})),this._registerLeftDoubleClickEvent(e,(function(i){r._isRuntimeApp()||(r._sketchPoints.length<2?t.onError&&t.onError("绘制点少于2个,禁止结束绘制!"):(r._removeEntityByObject(r._sketchTempSpatialPolyline),r._createSpatialPolyline(),r._removePointEntitys(),r._clearEvent(e),t.onComplete&&t.onComplete(r._sketchPoints,r._sketchOutputPoints)))})),this._registerRightClickEvent(e,(function(e){r._sketchTempPoints.length>2&&(r._sketchPoints.pop(),r._sketchTempPoints.splice(r._sketchTempPoints.length-2,1),t.onUndo&&t.onUndo())}))},_sketchDrawPolygon(e,t){let r=this;this._registerLeftClickEvent(e,(function(e){let i=r._transfromFromScreenPoint(e.position);Cesium.defined(i.sLocation)&&(r._isDrawPoint&&r._createPoint(i.sLocation,r._lineLabel),0===r._sketchTempPoints.length&&(r._createTempPolygon(),r._createTempPolyline(),r._sketchTempPoints.push(i.sLocation.clone())),r._sketchTempPoints.push(i.sLocation),r._sketchPoints.push(i.sLocation.clone()),r._sketchOutputPoints.push(i.gLocation),t.onAdded&&t.onAdded(r._sketchPoints,r._sketchOutputPoints))})),this._registerMouseMoveEvent(e,(function(e){if(r._isRuntimeApp())return;let i=r._transfromFromScreenPoint(e.endPosition);Cesium.defined(i.sLocation)&&Cesium.defined(r._sketchTempPolygon)&&(r._sketchTempPoints.pop(),r._sketchTempPoints.push(i.sLocation),t.onMoving&&t.onMoving(i.sLocation))})),this._registerRightClickEvent(e,(function(e){if(r._sketchTempPoints.length>2){if(r._sketchPoints.pop(),r._sketchTempPoints.splice(r._sketchTempPoints.length-2,1),r._isDrawPoint){let e=r._pointEntitys[r._pointEntitys.length-1];r._entities.remove(e),r._pointEntitys.pop()}t.onUndo&&t.onUndo()}})),this._registerLeftDoubleClickEvent(e,(function(i){r._isRuntimeApp()||(r._sketchPoints.length<3?t.onError&&t.onError("点数少于3个,禁止结束绘制!"):(r._removeEntityByObject(r._sketchTempPolygon),r._removeEntityByObject(r._sketchTempPolyline),r._createPolygon(),r._isRetainDrawPoint||r._removePointEntitys(),r._clearEvent(e),t.onComplete&&t.onComplete(r._sketchPoints,r._sketchOutputPoints)))}))},_sketchDrawCircle:function(e,t){let r=this;this._registerLeftClickEvent(e,(function(i){let o=r._transfromFromScreenPoint(i.position);if(Cesium.defined(o.sLocation))if(0===r._sketchTempPoints.length)r._isDrawPoint&&r._createPoint(o.sLocation,"起点"),r._sketchTempPoints.push(o.sLocation.clone()),r._sketchTempPoints.push(o.sLocation),r._sketchPoints.push(o.sLocation.clone()),r._sketchOutputPoints.push(o.gLocation),r._createTempCircle(o.sLocation),t.onAdded&&t.onAdded(o.sLocation);else{if(r._isRuntimeApp()){r._sketchTempPoints.pop(),r._sketchTempPoints.push(o.sLocation);let e=r._sketchEllipseCenterPosition,t=r._sketchTempPoints[1];r._ellipseOutlineCoordinates=[];for(let o=5;o<360;){let i=r._rotatedPointByAngle(t,e,o);r._ellipseOutlineCoordinates.push(i),o+=5}r._ellipseOutlineCoordinates.push(r._ellipseOutlineCoordinates[0]);let i=Cesium.Cartographic.fromCartesian(r._sketchTempPoints[0]),l=Cesium.Cartographic.fromCartesian(r._sketchTempPoints[1]),n=new Cesium.EllipsoidGeodesic;n.setEndPoints(i,l),r._sketchEllipseRadius=n.surfaceDistance,r._sketchEllipseRadius<=0&&(r._sketchEllipseRadius=1)}r._removePointEntitys(),r._removeEntityByObject(r._sketchTempCircle),r._createCircle(),r._clearEvent(e),t.onComplete&&t.onComplete(r._sketchOutputPoints[0],r._sketchEllipseRadius)}})),this._registerMouseMoveEvent(e,(function(e){if(!r._isRuntimeApp()&&Cesium.defined(r._sketchTempCircle)){var t=r._viewer.scene.pickPosition(e.endPosition);null!=t&&(r._sketchTempPoints.pop(),r._sketchTempPoints.push(t))}}))},_sketchDrawHeightPolyline:function(e,t){let r=this;this._registerLeftClickEvent(e,(function(i){let o=r._transfromFromScreenPoint(i.position);if(Cesium.defined(o.sLocation))if(0===r._sketchTempPoints.length)r._isDrawPoint&&r._createPoint(o.sLocation,"起点"),r._sketchAltitudeInitHeight=o.gLocation.height,r._sketchTempPoints.push(o.sLocation.clone()),r._sketchTempPoints.push(o.sLocation),r._sketchPoints.push(o.sLocation.clone()),t.onAdded&&t.onAdded(o.sLocation);else{if(r._isRuntimeApp()){r._sketchTempPoints.pop(),r._sketchTempPoints.push(o.sLocation);let e=Cesium.Cartographic.fromCartesian(r._sketchTempPoints[0]),t=Cesium.Cartographic.fromCartesian(r._sketchTempPoints[1]);r._sketchEllipseCenterPosition=Cesium.Cartesian3.fromDegrees(Cesium.Math.toDegrees(e.longitude),Cesium.Math.toDegrees(e.latitude),t.height),r._sketchAltitudePolylinePostions=[],r._sketchAltitudePolylinePostions.push(r._sketchTempPoints[0]);let i=Cesium.Cartesian3.fromDegrees(Cesium.Math.toDegrees(e.longitude),Cesium.Math.toDegrees(e.latitude),t.height);r._sketchAltitudePolylinePostions.push(i);let l=new Cesium.EllipsoidGeodesic;l.setEndPoints(e,t),r._sketchEllipseRadius=l.surfaceDistance,r._sketchEllipseRadius<=0&&(r._sketchEllipseRadius=1);let n=t.height-e.height;r._sketchEllipseHeight=n+r._sketchAltitudeInitHeight}r._removePointEntitys(),r._removeEntityByObject(r._sketchTempAltituePolyline),r._createAltitudePolyline(),r._clearEvent(e),t.onComplete&&t.onComplete(r._sketchAltitudePolylinePostions,r._sketchEllipseCenterPosition)}})),this._registerMouseMoveEvent(e,(function(e){if(!r._isRuntimeApp()&&null!=r._sketchTempPoints&&0!=r._sketchTempPoints.length){var i=r._viewer.scene.pickPosition(e.endPosition);null!=i&&r._sketchTempPoints.length>=2&&(Cesium.defined(r._sketchTempAltituePolyline)?(r._sketchTempPoints.pop(),r._sketchTempPoints.push(i)):r._createTempAltitudePolyline(),t.onMoving&&t.onMoving(r._sketchAltitudePolylinePostions,r._sketchEllipseCenterPosition))}}))},_sketchDrawRectangle:function(e,t){let r=this;this._registerLeftClickEvent(e,(function(i){let o=r._transfromFromScreenPoint(i.position);if(Cesium.defined(o.sLocation))if(0===r._sketchTempPoints.length)r._isDrawPoint&&r._createPoint(o.sLocation,"起点"),r._sketchTempPoints.push(o.gLocation),r._sketchTempPoints.push(o.gLocation),r._sketchPoints.push(o.gLocation),r._createTempRectangle(),t.onAdded&&t.onAdded(o.sLocation);else{if(r._isRuntimeApp()){r._sketchTempPoints.pop(),r._sketchTempPoints.push(o.gLocation);let e=parseFloat(r._sketchTempPoints[0].lng),t=parseFloat(r._sketchTempPoints[0].lat),i=parseFloat(r._sketchTempPoints[1].lng),l=parseFloat(r._sketchTempPoints[1].lat);r._rectangleCoordinates=[0,0,1,1],e2&&(r._sketchPoints.pop(),r._sketchOutputPoints.pop(),r._sketchTempPoints.splice(r._sketchTempPoints.length-2,1),t.onUndo&&t.onUndo(r._sketchPoints))})),this._registerLeftDoubleClickEvent(e,(function(i){r._isRuntimeApp()||(r._sketchPoints.length<3?t.onError&&t.onError("点数少于3个,禁止结束绘制!"):(r._removeEntityByObject(r._sketchTempPolygon),r._removeEntityByObject(r._sketchTempPolyline),r._createPolygonBody({height:30,color:[255,255,0,.9]}),r._removePointEntitys(),r._clearEvent(e),t.onComplete&&t.onComplete(r._sketchPoints,r._sketchOutputPoints)))}))},_sketchDrawTriangleA:function(e,t){let r=this;this._registerLeftClickEvent(e,(function(i){if(Cesium.defined(r._sketchTempAltituePolyline))return;let o=r._transfromFromScreenPoint(i.position);if(Cesium.defined(o.sLocation))if(0==r._sketchPoints.length)r._isDrawPoint&&r._createPoint(o.sLocation,"起点"),r._sketchTempPoints.push(o.sLocation.clone()),r._sketchTempPoints.push(o.sLocation),r._sketchPoints.push(o.sLocation),r._createTempSpatialTriangle(),t.onAdded&&t.onAdded(o.sLocation);else if(r._sketchPoints.length>0){if(r._isRuntimeApp()){r._sketchTempPoints.pop(),r._sketchTempPoints.push(o.sLocation),r._sketchSpatialTrianglePositions=[],r._sketchSpatialTrianglePositions.push(r._sketchTempPoints[0].clone()),r._sketchSpatialTrianglePositions.push(r._sketchTempPoints[1].clone());let e=Cesium.Cartographic.fromCartesian(r._sketchTempPoints[0]),t=Cesium.Cartographic.fromCartesian(r._sketchTempPoints[1]),i=Cesium.Cartesian3.fromDegrees(Cesium.Math.toDegrees(e.longitude),Cesium.Math.toDegrees(e.latitude),t.height);r._sketchSpatialTrianglePositions.push(i),r._sketchSpatialTrianglePositions.push(r._sketchTempPoints[0].clone())}r._removePointEntitys(),r._removeEntityByObject(r._sketchTempSpatialTriangle),r._createSpatialTriangle(),r._clearEvent(e),t.onComplete&&t.onComplete(r._sketchSpatialTrianglePositions)}})),this._registerMouseMoveEvent(e,(function(e){if(!r._isRuntimeApp()&&void 0!==r._sketchPoints&&0!==r._sketchPoints.length){var i=r._viewer.scene.pickPosition(e.endPosition);null!=i&&(r._sketchTempPoints.pop(),r._sketchTempPoints.push(i),t.onMoving&&t.onMoving(i))}}))},sketchTools:function(e,t){let r=this;switch(this._clear(),r._sketchEventHandler=new Cesium.ScreenSpaceEventHandler(this._viewer.scene.canvas),e){case pi.SketchType.Point:r._sketchDrawPoint(r._sketchEventHandler,t);break;case pi.SketchType.Line:r._sketchDrawPolyline(r._sketchEventHandler,t);break;case pi.SketchType.Polygon:r._sketchDrawPolygon(r._sketchEventHandler,t);break;case pi.SketchType.Height:r._sketchDrawHeightPolyline(r._sketchEventHandler,t);break;case pi.SketchType.Spatial:r._sketchDrawSpatialPolyline(r._sketchEventHandler,t);break;case pi.SketchType.Circle:r._sketchDrawCircle(r._sketchEventHandler,t);break;case pi.SketchType.Rectangle:r._sketchDrawRectangle(r._sketchEventHandler,t);break;case pi.SketchType.Triangle:r._sketchDrawTriangleA(r._sketchEventHandler,t);break;case pi.SketchType.PolygonBody:r._sketchDrawPolygonBody(r._sketchEventHandler,t);break;case pi.SketchType.MultiplePoint:r._sketchDrawMultiplePoint(r._sketchEventHandler,t)}},sketchDrawFeacture:function(e,t,r){let i=this;if(void 0===e||void 0===e.length||e.length<2)r&&r.onError&&r.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 r=t._useGeometry.color,i=t._useGeometry.height;this._sketchPoints=t._useGeometry.cPoints,this._sketchOutputPoints=t._useGeometry.gPoints,e&&e.height&&"number"==typeof e.height&&(i=parseInt(e.height)),e&&e.color&&this._checkColorAndAlpha(e.color)&&(r=this._checkColorAndAlpha(e.color)),this._viewer.scene.primitives.remove(t),this._createPolygonBody({color:r,height:i}),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,r=new Cesium.ScreenSpaceEventHandler(this._viewer.scene.canvas);r.setInputAction((function(i){let o=t._viewer.scene.pick(i.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)),r.destroy(),r=null}),Cesium.ScreenSpaceEventType.LEFT_CLICK)}}),pi.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"}),pi.SketchIconType=Object.freeze({Normal:"normal",Blue:"blue",Green:"green",Violet:"violter"}),pi.RuntimeEnvironment=Object.freeze({App:"app",Web:"web"});class hi{constructor(e,t){this._viewer=e,(t=t||{}).isDrawPoint?this._isDrawPoint=t.isDrawPoint:this._isDrawPoint=!1,t.isRetainDrawPoint?this._isRetainDrawPoint=t.isRetainDrawPoint:this._isRetainDrawPoint=!1,t.isClear?this._isClear=t.isClear:this._isClear=!1,this._sketchViewModel=new pi(e,{iconType:pi.SketchIconType.Blue,isDrawPoint:this._isDrawPoint,isRetainDrawPoint:this._isRetainDrawPoint});let r=document.getElementById("drawButtonDiv");r&&document.body.removeChild(r),this._init()}_init(){this._measureEntityName="MeasureEntity",this._entities=this._viewer.entities,this._measurePointImage="data:image/png;base64,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",this._iconBlue="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozNjZmZDYyMy02NmE4LWYzNDUtODc4MC00YmMwY2IzZWM4OTMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MkEyMUE1MDg3NTAyMTFFREI0RUY4MjBCRjRGRDc0QUIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MkEyMUE1MDc3NTAyMTFFREI0RUY4MjBCRjRGRDc0QUIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OWFmM2ZiODktNzQ4OS1kMDRkLTkyNzUtZDM5MWNhYzYwMGE1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjM2NmZkNjIzLTY2YTgtZjM0NS04NzgwLTRiYzBjYjNlYzg5MyIv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",this._iconGreen="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozNjZmZDYyMy02NmE4LWYzNDUtODc4MC00YmMwY2IzZWM4OTMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MjI1NDIwOUU3NTAyMTFFRDk0MTJGQzhGMTFCQkREODIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MjI1NDIwOUQ3NTAyMTFFRDk0MTJGQzhGMTFCQkREODIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OWFmM2ZiODktNzQ4OS1kMDRkLTkyNzUtZDM5MWNhYzYwMGE1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjM2NmZkNjIzLTY2YTgtZjM0NS04NzgwLTRiYzBjYjNlYzg5MyIv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",this._iconViolet="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozNjZmZDYyMy02NmE4LWYzNDUtODc4MC00YmMwY2IzZWM4OTMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzFDREU3Mjk3NTAyMTFFREE4MThDODBGNzMxNDBCQzEiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MzFDREU3Mjg3NTAyMTFFREE4MThDODBGNzMxNDBCQzEiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OWFmM2ZiODktNzQ4OS1kMDRkLTkyNzUtZDM5MWNhYzYwMGE1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjM2NmZkNjIzLTY2YTgtZjM0NS04NzgwLTRiYzBjYjNlYzg5MyIv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",this._measureTempPoints=[]}_updateScene(){this._viewer.scene.requestRender()}_removeEntityByName(e){let t=this._entities;if(!t||!t.values)return;let r=[];for(let i=0;i",t.innerHTML=r,t.addEventListener("transitionend",(function(){setTimeout((function(){document.body.removeChild(t)}),1e3)}),!1),setTimeout((function(){t.style.transform="translateY(50px)"}),100)}}function gi(e,t){const r=Object.create(null),i=e.split(",");for(let o=0;o!!r[e.toLowerCase()]:e=>!!r[e]}Object.assign(hi.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(hi.prototype,{clear:function(){this._clear(!0),this._initMousePointerStyle()}}),Object.assign(hi.prototype,{measureLength:function(e){let t=this;this._tempEntitys=[],this._clear(this._isClear),this._setMousePointerStyle(),this._isRuntimeApp()?this._showTooltipMessage("点击开始测量"):this._tooltipInit("点击开始测量"),this._isRuntimeWeb()?this._sketchViewModel.sketchTools(pi.SketchType.Line,{onAdded:function(e,r){if(1===e.length)t._createPoint(e[0],"起点");else{let r=t._measureDistance(e),i=[e[e.length-2],e[e.length-1]];r+=" +"+t._measureDistance(i),t._tempEntitys.push(t._createPoint(e[e.length-1],r))}},onUndo:function(){t._viewer.entities.remove(t._tempEntitys[t._tempEntitys.length-1]),t._tempEntitys.pop()},onMoving:function(e,r){t._tooltipSetText("右键单击回退
左键双击结束绘制")},onError:function(t){e&&e(t)},onComplete:function(e,r){t._initMousePointerStyle(),t._tooltipRemove()}}):this._sketchViewModel.sketchTools(pi.SketchType.Line,{onAdded:function(r,i){if(1===r.length){t._tooltipRemove(),t._createPoint(r[0],"起点"),null==document.getElementById("drawButtonDiv")&&(t._createOperationMainDom(),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 r=document.getElementById("drawButtonDiv");r&&document.body.removeChild(r)})}else{let e=t._measureDistance(r),i=[r[r.length-2],r[r.length-1]];e+=" +"+t._measureDistance(i),t._tempEntitys.push(t._createPoint(r[r.length-1],e))}}})},measureSpatialLength:function(e){let t=this;this._clear(this._isClear),this._setMousePointerStyle(),this._isRuntimeApp()?this._showTooltipMessage("点击开始测量"):this._tooltipInit("点击开始测量"),this._tempEntitys=[],this._isRuntimeWeb()?this._sketchViewModel.sketchTools(pi.SketchType.Spatial,{onAdded:function(e,r){if(1===e.length)t._createPoint(e[0],"起点");else{let r=t._measureSpaceDistance(e);t._tempEntitys.push(t._createPoint(e[e.length-1],r))}},onUndo:function(){t._viewer.entities.remove(t._tempEntitys[t._tempEntitys.length-1]),t._tempEntitys.pop()},onMoving:function(e,r){t._tooltipSetText("右键单击回退
左键双击结束绘制")},onError:function(t){e&&e(t)},onComplete:function(e,r){t._initMousePointerStyle(),t._tooltipRemove()}}):this._sketchViewModel.sketchTools(pi.SketchType.Spatial,{onAdded:function(r,i){if(1===r.length){t._tooltipRemove(),t._createPoint(r[0],"起点"),null==document.getElementById("drawButtonDiv")&&(t._createOperationMainDom(),document.getElementById("btnDrawBackout").onclick=()=>{t._sketchViewModel._sketchTempPoints.length>2&&(t._sketchViewModel._sketchPoints.pop(),t._sketchViewModel._sketchTempPoints.splice(t._sketchViewModel._sketchTempPoints.length-1,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 r=document.getElementById("drawButtonDiv");r&&document.body.removeChild(r)})}else{let e=t._measureSpaceDistance(r);t._tempEntitys.push(t._createPoint(r[r.length-1],e))}}})},measureArea:function(e){let t=this;this._clear(this._isClear),this._setMousePointerStyle(),this._isRuntimeApp()?this._showTooltipMessage("点击开始测量"):this._tooltipInit("点击开始测量");var r="";this._isRuntimeWeb()?this._sketchViewModel.sketchTools(pi.SketchType.Polygon,{onAdded:function(e,i){if(t._measureTempPoints.push(t._cartesianToGeography(e[e.length-1])),1===e.length)r="起点",t._createPoint(e[0],new Cesium.CallbackProperty((function(){return r}),!1));else if(e.length>=3){let i=t._measureArea(t._measureTempPoints,e);r=i>1e5?(i/1e5).toFixed(2)+"km²":i.toFixed(2)+"m²"}},onUndo:function(){t._measureTempPoints.pop(),1===t._measureTempPoints.length&&(t._areaLabel="起点")},onMoving:function(e,r){t._tooltipSetText("右键单击回退
左键双击结束绘制")},onError:function(t){e&&e(t)},onComplete:function(e,r){t._initMousePointerStyle(),t._tooltipRemove()}}):this._sketchViewModel.sketchTools(pi.SketchType.Polygon,{onAdded:function(i,o){if(t._measureTempPoints.push(t._cartesianToGeography(i[i.length-1])),1===i.length){t._tooltipRemove(),r="起点",t._createPoint(i[0],new Cesium.CallbackProperty((function(){return r}),!1)),null==document.getElementById("drawButtonDiv")&&(t._createOperationMainDom(),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._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 r=document.getElementById("drawButtonDiv");r&&document.body.removeChild(r)})}else if(i.length>=3){let e=t._measureArea(t._measureTempPoints,i);r=e>1e5?(e/1e5).toFixed(2)+"km²":e.toFixed(2)+"m²"}}})},measureHeight:function(e){let t=this;this._clear(this._isClear),this._setMousePointerStyle(),this._isRuntimeApp()?this._showTooltipMessage("点击开始绘制线"):this._tooltipInit("单击开始绘制线"),this._sketchViewModel.sketchTools(pi.SketchType.Height,{onAdded:function(e){t._isRuntimeApp()?t._showTooltipMessage("再次点击结束测量"):t._tooltipSetText("再次单击结束测量")},onMoving:function(e,r){let i=t._calculatePolylineAltitudeHeight(e);t._altitudeLabelPosition=r,t._altitudeLabelText=i,void 0===t._altitudeDynamicLabel&&t._createAltitudeDynamicLabel()},onError:function(t){e&&e(t)},onComplete:function(e,r){let i=t._calculatePolylineAltitudeHeight(e);t._entities.remove(t._altitudeDynamicLabel),t._createLabel(r,i),t._initMousePointerStyle(),t._tooltipRemove()}})},measureTriangle:function(e){let t=this;this._clear(this._isClear),this._setMousePointerStyle(),this._isRuntimeApp()?this._showTooltipMessage("点击开始绘制线"):this._tooltipInit("单击开始绘制线"),this._sketchViewModel.sketchTools(pi.SketchType.Triangle,{onAdded:function(e){t._isRuntimeApp()?t._showTooltipMessage("再次点击结束测量"):t._tooltipSetText("再次单击结束测量")},onMoving:function(e){t._tooltipSetText("再次单击结束测量")},onError:function(t){e&&e(t)},onComplete:function(e){t._initMousePointerStyle(),t._tooltipRemove();let r=[e[0],e[1]],i=t._measureSpaceDistance(r),o=[e[1],e[2]],l=t._measureSpaceDistance(o),n=[e[2],e[0]],a=t._calculatePolylineAltitudeHeight(n);t._createLabel(e[0],"斜距:"+i),t._createLabel(e[1],"平距:"+l),t._createLabel(e[2],"高度:"+a)}})}}),Object.assign(hi.prototype,{queryByPoint:function(e){let t=this;this._setMousePointerStyle(),this._clear(this._isClear),this._isRuntimeApp()?this._showTooltipMessage("点击位置进行查询"):this._tooltipInit("单击位置进行查询"),this._sketchViewModel.sketchTools(pi.SketchType.Point,{onComplete:function(r,i){t._initMousePointerStyle(),t._tooltipRemove(),t._createPoint(r);let o=i.lng+","+i.lat;e&&e(o)}})},queryByMultiplePoint:function(e){let t=this;this._setMousePointerStyle(),this._clear(this._isClear),this._tooltipInit("点击位置绘制
左键双击结束绘制"),this._tempEntitys=[],this._sketchViewModel.sketchTools(pi.SketchType.MultiplePoint,{onAdded:function(e,r){let i=r.lng.toFixed(6)+","+r.lat.toFixed(6);t._tempEntitys.push(t._createPoint(e,i))},onUndo:function(){t._viewer.entities.remove(t._tempEntitys[t._tempEntitys.length-1]),t._tempEntitys.pop()},onComplete:function(r,i){t._initMousePointerStyle(),t._tooltipRemove();let o=[];for(let e=0;e左键双击结束绘制开始查询")},onError:function(e){t&&t(e)},onComplete:function(t,i){let o;r._initMousePointerStyle(),r._tooltipRemove();for(let e=0;e{if(r._sketchViewModel._sketchTempPoints.length>2&&(r._sketchViewModel._sketchPoints.pop(),r._sketchViewModel._sketchTempPoints.splice(r._sketchViewModel._sketchTempPoints.length-1,1),r._sketchViewModel._isDrawPoint)){let e=r._sketchViewModel._pointEntitys[r._sketchViewModel._pointEntitys.length-1];r._sketchViewModel._entities.remove(e),r._sketchViewModel._pointEntitys.pop()}},document.getElementById("btnDrawComplete").onclick=()=>{if(r._sketchViewModel._sketchPoints.length<2)return void(t&&t("点数少于两个,禁止结束绘制!"));let i;r._sketchViewModel._removeEntityByObject(r._sketchViewModel._sketchTempPolyline),r._sketchViewModel._createPolyline(),r._sketchViewModel._isRetainDrawPoint||r._sketchViewModel._removePointEntitys(),r._sketchViewModel._clearEvent(r._sketchViewModel._sketchEventHandler),r._initMousePointerStyle(),r._tooltipRemove();for(let e=0;e左键双击结束绘制开始查询")},onError:function(e){t&&t(e)},onComplete:function(t,i){let o;r._initMousePointerStyle(),r._tooltipRemove();for(let e=0;e{if(r._sketchViewModel._sketchTempPoints.length>2&&(r._sketchViewModel._sketchPoints.pop(),r._sketchViewModel._sketchTempPoints.splice(r._sketchViewModel._sketchTempPoints.length-1,1),r._sketchViewModel._isDrawPoint)){let e=r._sketchViewModel._pointEntitys[r._sketchViewModel._pointEntitys.length-1];r._entities.remove(e),r._sketchViewModel._pointEntitys.pop()}},document.getElementById("btnDrawComplete").onclick=()=>{if(r._sketchViewModel._sketchPoints.length<3)return void(t&&t("点数少于3个,禁止结束绘制!"));let i;r._sketchViewModel._removeEntityByObject(r._sketchViewModel._sketchTempPolygon),r._sketchViewModel._removeEntityByObject(r._sketchViewModel._sketchTempPolyline),r._sketchViewModel._createPolygon(),r._sketchViewModel._isRetainDrawPoint||r._sketchViewModel._removePointEntitys(),r._sketchViewModel._clearEvent(r._sketchViewModel._sketchEventHandler),r._initMousePointerStyle(),r._tooltipRemove();for(let e=0;e左键双击结束绘制")},onUndo:function(e){0===e.length?t._tooltipInit("点击开始绘制"):e.length<3?t._tooltipInit("右键单击回退"):t._tooltipInit("右键单击回退
左键双击结束绘制")},onComplete:function(r,i){t._initMousePointerStyle(),t._tooltipRemove(),e&&e()}})},drawPointFeacture:function(e,t){this._sketchViewModel.sketchDrawFeacture(e,pi.SketchType.DrawPoint,t)},drawMultiplePointFeacture:function(e,t){this._sketchViewModel.sketchDrawFeacture(e,pi.SketchType.DrawMultiplePoint,t)},drawPolylineFeacture:function(e,t){this._sketchViewModel.sketchDrawFeacture(e,pi.SketchType.DrawPolyline,t)},drawPolygonFeacture:function(e,t){this._sketchViewModel.sketchDrawFeacture(e,pi.SketchType.DrawPolygon,t)}}),Object.assign(hi.prototype,{tooltipInit:function(e){this._tooltipInit(e)},tooltipRemove:function(){this._tooltipRemove()},tooltipSetText:function(e){this._tooltipSetText(e)}}),Object.assign(hi.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)}}),hi.RuntimeEnvironment=Object.freeze({App:"app",Web:"web"});const fi=()=>{},mi=Object.assign,bi=Object.prototype.hasOwnProperty,vi=(e,t)=>bi.call(e,t),_i=Array.isArray,yi=e=>"[object Map]"===Ci(e),xi=e=>"symbol"==typeof e,wi=e=>null!==e&&"object"==typeof e,ki=Object.prototype.toString,Ci=e=>ki.call(e),Ei=e=>"string"==typeof e&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,Ti=(e,t)=>!Object.is(e,t);let Si;const Ai=[];class Pi{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&Si&&(this.parent=Si,this.index=(Si.scopes||(Si.scopes=[])).push(this)-1)}run(e){if(this.active)try{return this.on(),e()}finally{this.off()}}on(){this.active&&(Ai.push(this),Si=this)}off(){this.active&&(Ai.pop(),Si=Ai[Ai.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 Di(e){Si&&Si.cleanups.push(e)}const Ii=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Mi=e=>(e.w&Ri)>0,Li=e=>(e.n&Ri)>0,Oi=new WeakMap;let zi=0,Ri=1;const Ni=[];let Bi;const ji=Symbol(""),Fi=Symbol("");class Ui{constructor(e,t=null,r){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],function(e,t){(t=t||Si)&&t.active&&t.effects.push(e)}(this,r)}run(){if(!this.active)return this.fn();if(!Ni.includes(this))try{return Ni.push(Bi=this),Hi.push(Wi),Wi=!0,Ri=1<<++zi,zi<=30?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let r=0;for(let i=0;i0?Ni[e-1]:void 0}}stop(){this.active&&(Vi(this),this.onStop&&this.onStop(),this.active=!1)}}function Vi(e){const{deps:t}=e;if(t.length){for(let r=0;r{("length"===t||t>=i)&&a.push(e)}));else switch(void 0!==r&&a.push(n.get(r)),t){case"add":_i(e)?Ei(r)&&a.push(n.get("length")):(a.push(n.get(ji)),yi(e)&&a.push(n.get(Fi)));break;case"delete":_i(e)||(a.push(n.get(ji)),yi(e)&&a.push(n.get(Fi)));break;case"set":yi(e)&&a.push(n.get(ji))}if(1===a.length)a[0]&&Ki(a[0]);else{const e=[];for(const t of a)t&&e.push(...t);Ki(Ii(e))}}function Ki(e,t){for(const r of _i(e)?e:[...e])(r!==Bi||r.allowRecurse)&&(r.scheduler?r.scheduler():r.run())}const Ji=gi("__proto__,__v_isRef,__isVue"),$i=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(xi)),eo=lo(),to=lo(!1,!0),ro=lo(!0),io=oo();function oo(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const r=Wo(this);for(let t=0,o=this.length;t{e[t]=function(...e){Gi();const r=Wo(this)[t].apply(this,e);return Yi(),r}})),e}function lo(e=!1,t=!1){return function(r,i,o){if("__v_isReactive"===i)return!e;if("__v_isReadonly"===i)return e;if("__v_raw"===i&&o===(e?t?zo:Oo:t?Lo:Mo).get(r))return r;const l=_i(r);if(!e&&l&&vi(io,i))return Reflect.get(io,i,o);const n=Reflect.get(r,i,o);if(xi(i)?$i.has(i):Ji(i))return n;if(e||qi(r,0,i),t)return n;if(Xo(n)){return!l||!Ei(i)?n.value:n}return wi(n)?e?Bo(n):No(n):n}}function no(e=!1){return function(t,r,i,o){let l=t[r];if(!e&&!Uo(i)&&(i=Wo(i),l=Wo(l),!_i(t)&&Xo(l)&&!Xo(i)))return l.value=i,!0;const n=_i(t)&&Ei(r)?Number(r)!0,deleteProperty:(e,t)=>!0},co=mi({},ao,{get:to,set:no(!0)}),uo=e=>e,po=e=>Reflect.getPrototypeOf(e);function ho(e,t,r=!1,i=!1){const o=Wo(e=e.__v_raw),l=Wo(t);t!==l&&!r&&qi(o,0,t),!r&&qi(o,0,l);const{has:n}=po(o),a=i?uo:r?Yo:Go;return n.call(o,t)?a(e.get(t)):n.call(o,l)?a(e.get(l)):void(e!==o&&e.get(t))}function go(e,t=!1){const r=this.__v_raw,i=Wo(r),o=Wo(e);return e!==o&&!t&&qi(i,0,e),!t&&qi(i,0,o),e===o?r.has(e):r.has(e)||r.has(o)}function fo(e,t=!1){return e=e.__v_raw,!t&&qi(Wo(e),0,ji),Reflect.get(e,"size",e)}function mo(e){e=Wo(e);const t=Wo(this);return po(t).has.call(t,e)||(t.add(e),Qi(t,"add",e,e)),this}function bo(e,t){t=Wo(t);const r=Wo(this),{has:i,get:o}=po(r);let l=i.call(r,e);l||(e=Wo(e),l=i.call(r,e));const n=o.call(r,e);return r.set(e,t),l?Ti(t,n)&&Qi(r,"set",e,t):Qi(r,"add",e,t),this}function vo(e){const t=Wo(this),{has:r,get:i}=po(t);let o=r.call(t,e);o||(e=Wo(e),o=r.call(t,e)),i&&i.call(t,e);const l=t.delete(e);return o&&Qi(t,"delete",e,void 0),l}function _o(){const e=Wo(this),t=0!==e.size,r=e.clear();return t&&Qi(e,"clear",void 0,void 0),r}function yo(e,t){return function(r,i){const o=this,l=o.__v_raw,n=Wo(l),a=t?uo:e?Yo:Go;return!e&&qi(n,0,ji),l.forEach(((e,t)=>r.call(i,a(e),a(t),o)))}}function xo(e,t,r){return function(...i){const o=this.__v_raw,l=Wo(o),n=yi(l),a="entries"===e||e===Symbol.iterator&&n,s="keys"===e&&n,c=o[e](...i),d=r?uo:t?Yo:Go;return!t&&qi(l,0,s?Fi:ji),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:a?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function wo(e){return function(...t){return"delete"!==e&&this}}function ko(){const e={get(e){return ho(this,e)},get size(){return fo(this)},has:go,add:mo,set:bo,delete:vo,clear:_o,forEach:yo(!1,!1)},t={get(e){return ho(this,e,!1,!0)},get size(){return fo(this)},has:go,add:mo,set:bo,delete:vo,clear:_o,forEach:yo(!1,!0)},r={get(e){return ho(this,e,!0)},get size(){return fo(this,!0)},has(e){return go.call(this,e,!0)},add:wo("add"),set:wo("set"),delete:wo("delete"),clear:wo("clear"),forEach:yo(!0,!1)},i={get(e){return ho(this,e,!0,!0)},get size(){return fo(this,!0)},has(e){return go.call(this,e,!0)},add:wo("add"),set:wo("set"),delete:wo("delete"),clear:wo("clear"),forEach:yo(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=xo(o,!1,!1),r[o]=xo(o,!0,!1),t[o]=xo(o,!1,!0),i[o]=xo(o,!0,!0)})),[e,r,t,i]}const[Co,Eo,To,So]=ko();function Ao(e,t){const r=t?e?So:To:e?Eo:Co;return(t,i,o)=>"__v_isReactive"===i?!e:"__v_isReadonly"===i?e:"__v_raw"===i?t:Reflect.get(vi(r,i)&&i in t?r:t,i,o)}const Po={get:Ao(!1,!1)},Do={get:Ao(!1,!0)},Io={get:Ao(!0,!1)},Mo=new WeakMap,Lo=new WeakMap,Oo=new WeakMap,zo=new WeakMap;function Ro(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=>Ci(e).slice(8,-1))(e))}function No(e){return e&&e.__v_isReadonly?e:jo(e,!1,ao,Po,Mo)}function Bo(e){return jo(e,!0,so,Io,Oo)}function jo(e,t,r,i,o){if(!wi(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const l=o.get(e);if(l)return l;const n=Ro(e);if(0===n)return e;const a=new Proxy(e,2===n?i:r);return o.set(e,a),a}function Fo(e){return Uo(e)?Fo(e.__v_raw):!(!e||!e.__v_isReactive)}function Uo(e){return!(!e||!e.__v_isReadonly)}function Vo(e){return Fo(e)||Uo(e)}function Wo(e){const t=e&&e.__v_raw;return t?Wo(t):e}function Ho(e){return((e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})})(e,"__v_skip",!0),e}const Go=e=>wi(e)?No(e):e,Yo=e=>wi(e)?Bo(e):e;function qo(e){Zi()&&((e=Wo(e)).dep||(e.dep=Ii()),Xi(e.dep))}function Zo(e,t){(e=Wo(e)).dep&&Ki(e.dep)}function Xo(e){return Boolean(e&&!0===e.__v_isRef)}function Qo(e){return Jo(e,!1)}function Ko(e){return Jo(e,!0)}function Jo(e,t){return Xo(e)?e:new $o(e,t)}class $o{constructor(e,t){this._shallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Wo(e),this._value=t?e:Go(e)}get value(){return qo(this),this._value}set value(e){e=this._shallow?e:Wo(e),Ti(e,this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:Go(e),Zo(this))}}function el(e){Zo(e)}function tl(e){return Xo(e)?e.value:e}const rl={get:(e,t,r)=>tl(Reflect.get(e,t,r)),set:(e,t,r,i)=>{const o=e[t];return Xo(o)&&!Xo(r)?(o.value=r,!0):Reflect.set(e,t,r,i)}};function il(e){return Fo(e)?e:new Proxy(e,rl)}function ol(e){const t=_i(e)?new Array(e.length):{};for(const r in e)t[r]=nl(e,r);return t}class ll{constructor(e,t,r){this._object=e,this._key=t,this._defaultValue=r,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 nl(e,t,r){const i=e[t];return Xo(i)?i:new ll(e,t,r)}class al{constructor(e,t,r){this._setter=t,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new Ui(e,(()=>{this._dirty||(this._dirty=!0,Zo(this))})),this.__v_isReadonly=r}get value(){const e=Wo(this);return qo(e),e._dirty&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function sl(e,t){let r,i;const o="function"==typeof e;o?(r=e,i=fi):(r=e.get,i=e.set);return new al(r,i,o||!i)}function cl(e,t){const r=Object.create(null),i=e.split(",");for(let o=0;o!!r[e.toLowerCase()]:e=>!!r[e]}function dl(e){if(Al(e)){const t={};for(let r=0;r{if(e){const r=e.split(pl);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}function gl(e){let t="";if(Ml(e))t=e;else if(Al(e))for(let r=0;rnull==e?"":Al(e)||Ll(e)&&(e.toString===zl||!Il(e.toString))?JSON.stringify(e,ml,2):String(e),ml=(e,t)=>t&&t.__v_isRef?ml(e,t.value):Pl(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,r])=>(e[`${t} =>`]=r,e)),{})}:Dl(t)?{[`Set(${t.size})`]:[...t.values()]}:!Ll(t)||Al(t)||Nl(t)?t:String(t),bl={},vl=[],_l=()=>{},yl=()=>!1,xl=/^on[^a-z]/,wl=e=>xl.test(e),kl=e=>e.startsWith("onUpdate:"),Cl=Object.assign,El=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},Tl=Object.prototype.hasOwnProperty,Sl=(e,t)=>Tl.call(e,t),Al=Array.isArray,Pl=e=>"[object Map]"===Rl(e),Dl=e=>"[object Set]"===Rl(e),Il=e=>"function"==typeof e,Ml=e=>"string"==typeof e,Ll=e=>null!==e&&"object"==typeof e,Ol=e=>Ll(e)&&Il(e.then)&&Il(e.catch),zl=Object.prototype.toString,Rl=e=>zl.call(e),Nl=e=>"[object Object]"===Rl(e),Bl=cl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),jl=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},Fl=/-(\w)/g,Ul=jl((e=>e.replace(Fl,((e,t)=>t?t.toUpperCase():"")))),Vl=/\B([A-Z])/g,Wl=jl((e=>e.replace(Vl,"-$1").toLowerCase())),Hl=jl((e=>e.charAt(0).toUpperCase()+e.slice(1))),Gl=jl((e=>e?`on${Hl(e)}`:"")),Yl=(e,t)=>!Object.is(e,t),ql=(e,t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},Xl=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ql;function Kl(e,t,...r){const i=e.vnode.props||bl;let o=r;const l=t.startsWith("update:"),n=l&&t.slice(7);if(n&&n in i){const e=`${"modelValue"===n?"model":n}Modifiers`,{number:t,trim:l}=i[e]||bl;l?o=r.map((e=>e.trim())):t&&(o=r.map(Xl))}let a,s=i[a=Gl(t)]||i[a=Gl(Ul(t))];!s&&l&&(s=i[a=Gl(Wl(t))]),s&&Ps(s,e,6,o);const c=i[a+"Once"];if(c){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,Ps(c,e,6,o)}}function Jl(e,t,r=!1){const i=t.emitsCache,o=i.get(e);if(void 0!==o)return o;const l=e.emits;let n={},a=!1;if(!Il(e)){const i=e=>{const r=Jl(e,t,!0);r&&(a=!0,Cl(n,r))};!r&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return l||a?(Al(l)?l.forEach((e=>n[e]=null)):Cl(n,l),i.set(e,n),n):(i.set(e,null),null)}function $l(e,t){return!(!e||!wl(t))&&(t=t.slice(2).replace(/Once$/,""),Sl(e,t[0].toLowerCase()+t.slice(1))||Sl(e,Wl(t))||Sl(e,t))}let en=null,tn=null;function rn(e){const t=en;return en=e,tn=e&&e.type.__scopeId||null,t}function on(e,t=en,r){if(!t)return e;if(e._n)return e;const i=(...r)=>{i._d&&Na(-1);const o=rn(t),l=e(...r);return rn(o),i._d&&Na(1),l};return i._n=!0,i._c=!0,i._d=!0,i}function ln(e){const{type:t,vnode:r,proxy:i,withProxy:o,props:l,propsOptions:[n],slots:a,attrs:s,emit:c,render:d,renderCache:u,data:p,setupState:h,ctx:g,inheritAttrs:f}=e;let m,b;const v=rn(e);try{if(4&r.shapeFlag){const e=o||i;m=Ka(d.call(e,e,u,l,h,p,g)),b=s}else{const e=t;0,m=Ka(e.length>1?e(l,{attrs:s,slots:a,emit:c}):e(l,null)),b=t.props?s:nn(s)}}catch(y){La.length=0,Ds(y,e,1),m=qa(Ia)}let _=m;if(b&&!1!==f){const e=Object.keys(b),{shapeFlag:t}=_;e.length&&7&t&&(n&&e.some(kl)&&(b=an(b,n)),_=Za(_,b))}return r.dirs&&(_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&(_.transition=r.transition),m=_,rn(v),m}const nn=e=>{let t;for(const r in e)("class"===r||"style"===r||wl(r))&&((t||(t={}))[r]=e[r]);return t},an=(e,t)=>{const r={};for(const i in e)kl(i)&&i.slice(9)in t||(r[i]=e[i]);return r};function sn(e,t,r){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let o=0;o1)return r&&Il(t)?t.call(i.proxy):t}}const un=[Function,Array],pn={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:un,onEnter:un,onAfterEnter:un,onEnterCancelled:un,onBeforeLeave:un,onLeave:un,onAfterLeave:un,onLeaveCancelled:un,onBeforeAppear:un,onAppear:un,onAfterAppear:un,onAppearCancelled:un},setup(e,{slots:t}){const r=ps(),i=function(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Pn((()=>{e.isMounted=!0})),Mn((()=>{e.isUnmounting=!0})),e}();let o;return()=>{const l=t.default&&vn(t.default(),!0);if(!l||!l.length)return;const n=Wo(e),{mode:a}=n,s=l[0];if(i.isLeaving)return fn(s);const c=mn(s);if(!c)return fn(s);const d=gn(c,n,i,r);bn(c,d);const u=r.subTree,p=u&&mn(u);let h=!1;const{getTransitionKey:g}=c.type;if(g){const e=g();void 0===o?o=e:e!==o&&(o=e,h=!0)}if(p&&p.type!==Ia&&(!Va(c,p)||h)){const e=gn(p,n,i,r);if(bn(p,e),"out-in"===a)return i.isLeaving=!0,e.afterLeave=()=>{i.isLeaving=!1,r.update()},fn(s);"in-out"===a&&c.type!==Ia&&(e.delayLeave=(e,t,r)=>{hn(i,p)[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=r})}return s}}};function hn(e,t){const{leavingVNodes:r}=e;let i=r.get(t.type);return i||(i=Object.create(null),r.set(t.type,i)),i}function gn(e,t,r,i){const{appear:o,mode:l,persisted:n=!1,onBeforeEnter:a,onEnter:s,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:u,onLeave:p,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:f,onAppear:m,onAfterAppear:b,onAppearCancelled:v}=t,_=String(e.key),y=hn(r,e),x=(e,t)=>{e&&Ps(e,i,9,t)},w={mode:l,persisted:n,beforeEnter(t){let i=a;if(!r.isMounted){if(!o)return;i=f||a}t._leaveCb&&t._leaveCb(!0);const l=y[_];l&&Va(e,l)&&l.el._leaveCb&&l.el._leaveCb(),x(i,[t])},enter(e){let t=s,i=c,l=d;if(!r.isMounted){if(!o)return;t=m||s,i=b||c,l=v||d}let n=!1;const a=e._enterCb=t=>{n||(n=!0,x(t?l:i,[e]),w.delayedLeave&&w.delayedLeave(),e._enterCb=void 0)};t?(t(e,a),t.length<=1&&a()):a()},leave(t,i){const o=String(e.key);if(t._enterCb&&t._enterCb(!0),r.isUnmounting)return i();x(u,[t]);let l=!1;const n=t._leaveCb=r=>{l||(l=!0,i(),x(r?g:h,[t]),t._leaveCb=void 0,y[o]===e&&delete y[o])};y[o]=e,p?(p(t,n),p.length<=1&&n()):n()},clone:e=>gn(e,t,r,i)};return w}function fn(e){if(xn(e))return(e=Za(e)).children=null,e}function mn(e){return xn(e)?e.children?e.children[0]:void 0:e}function bn(e,t){6&e.shapeFlag&&e.component?bn(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 vn(e,t=!1){let r=[],i=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader,xn=e=>e.type.__isKeepAlive;function wn(e,t){Cn(e,"a",t)}function kn(e,t){Cn(e,"da",t)}function Cn(e,t,r=us){const i=e.__wdc||(e.__wdc=()=>{let t=r;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Tn(t,i,r),r){let e=r.parent;for(;e&&e.parent;)xn(e.parent.vnode)&&En(i,t,r,e),e=e.parent}}function En(e,t,r,i){const o=Tn(t,e,i,!0);Ln((()=>{El(i[t],o)}),r)}function Tn(e,t,r=us,i=!1){if(r){const o=r[e]||(r[e]=[]),l=t.__weh||(t.__weh=(...i)=>{if(r.isUnmounted)return;Gi(),hs(r);const o=Ps(t,r,e,i);return gs(),Yi(),o});return i?o.unshift(l):o.push(l),l}}const Sn=e=>(t,r=us)=>(!ms||"sp"===e)&&Tn(e,t,r),An=Sn("bm"),Pn=Sn("m"),Dn=Sn("bu"),In=Sn("u"),Mn=Sn("bum"),Ln=Sn("um"),On=Sn("sp"),zn=Sn("rtg"),Rn=Sn("rtc");function Nn(e,t=us){Tn("ec",e,t)}let Bn=!0;function jn(e){const t=Vn(e),r=e.proxy,i=e.ctx;Bn=!1,t.beforeCreate&&Fn(t.beforeCreate,e,"bc");const{data:o,computed:l,methods:n,watch:a,provide:s,inject:c,created:d,beforeMount:u,mounted:p,beforeUpdate:h,updated:g,activated:f,deactivated:m,beforeDestroy:b,beforeUnmount:v,destroyed:_,unmounted:y,render:x,renderTracked:w,renderTriggered:k,errorCaptured:C,serverPrefetch:E,expose:T,inheritAttrs:S,components:A,directives:P,filters:D}=t;if(c&&function(e,t,r=_l,i=!1){Al(e)&&(e=Yn(e));for(const o in e){const r=e[o];let l;l=Ll(r)?"default"in r?dn(r.from||o,r.default,!0):dn(r.from||o):dn(r),Xo(l)&&i?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e}):t[o]=l}}(c,i,null,e.appContext.config.unwrapInjectedRef),n)for(const M in n){const e=n[M];Il(e)&&(i[M]=e.bind(r))}if(o){const t=o.call(r,r);Ll(t)&&(e.data=No(t))}if(Bn=!0,l)for(const M in l){const e=l[M],t=sl({get:Il(e)?e.bind(r,r):Il(e.get)?e.get.bind(r,r):_l,set:!Il(e)&&Il(e.set)?e.set.bind(r):_l});Object.defineProperty(i,M,{enumerable:!0,configurable:!0,get:()=>t.value,set:e=>t.value=e})}if(a)for(const M in a)Un(a[M],i,r,M);if(s){const e=Il(s)?s.call(r):s;Reflect.ownKeys(e).forEach((t=>{cn(t,e[t])}))}function I(e,t){Al(t)?t.forEach((t=>e(t.bind(r)))):t&&e(t.bind(r))}if(d&&Fn(d,e,"c"),I(An,u),I(Pn,p),I(Dn,h),I(In,g),I(wn,f),I(kn,m),I(Nn,C),I(Rn,w),I(zn,k),I(Mn,v),I(Ln,y),I(On,E),Al(T))if(T.length){const t=e.exposed||(e.exposed={});T.forEach((e=>{Object.defineProperty(t,e,{get:()=>r[e],set:t=>r[e]=t})}))}else e.exposed||(e.exposed={});x&&e.render===_l&&(e.render=x),null!=S&&(e.inheritAttrs=S),A&&(e.components=A),P&&(e.directives=P)}function Fn(e,t,r){Ps(Al(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,r)}function Un(e,t,r,i){const o=i.includes(".")?ic(r,i):()=>r[i];if(Ml(e)){const r=t[e];Il(r)&&ec(o,r)}else if(Il(e))ec(o,e.bind(r));else if(Ll(e))if(Al(e))e.forEach((e=>Un(e,t,r,i)));else{const i=Il(e.handler)?e.handler.bind(r):t[e.handler];Il(i)&&ec(o,i,e)}}function Vn(e){const t=e.type,{mixins:r,extends:i}=t,{mixins:o,optionsCache:l,config:{optionMergeStrategies:n}}=e.appContext,a=l.get(t);let s;return a?s=a:o.length||r||i?(s={},o.length&&o.forEach((e=>Wn(s,e,n,!0))),Wn(s,t,n)):s=t,l.set(t,s),s}function Wn(e,t,r,i=!1){const{mixins:o,extends:l}=t;l&&Wn(e,l,r,!0),o&&o.forEach((t=>Wn(e,t,r,!0)));for(const n in t)if(i&&"expose"===n);else{const i=Hn[n]||r&&r[n];e[n]=i?i(e[n],t[n]):t[n]}return e}const Hn={data:Gn,props:Zn,emits:Zn,methods:Zn,computed:Zn,beforeCreate:qn,created:qn,beforeMount:qn,mounted:qn,beforeUpdate:qn,updated:qn,beforeDestroy:qn,beforeUnmount:qn,destroyed:qn,unmounted:qn,activated:qn,deactivated:qn,errorCaptured:qn,serverPrefetch:qn,components:Zn,directives:Zn,watch:function(e,t){if(!e)return t;if(!t)return e;const r=Cl(Object.create(null),e);for(const i in t)r[i]=qn(e[i],t[i]);return r},provide:Gn,inject:function(e,t){return Zn(Yn(e),Yn(t))}};function Gn(e,t){return t?e?function(){return Cl(Il(e)?e.call(this,this):e,Il(t)?t.call(this,this):t)}:t:e}function Yn(e){if(Al(e)){const t={};for(let r=0;r{s=!0;const[r,i]=Jn(e,t,!0);Cl(n,r),i&&a.push(...i)};!r&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}if(!l&&!s)return i.set(e,vl),vl;if(Al(l))for(let d=0;d-1,r[1]=i<0||t-1||Sl(r,"default"))&&a.push(e)}}}const c=[n,a];return i.set(e,c),c}function $n(e){return"$"!==e[0]}function ea(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function ta(e,t){return ea(e)===ea(t)}function ra(e,t){return Al(t)?t.findIndex((t=>ta(t,e))):Il(t)&&ta(t,e)?0:-1}const ia=e=>"_"===e[0]||"$stable"===e,oa=e=>Al(e)?e.map(Ka):[Ka(e)],la=(e,t,r)=>{const i=on(((...e)=>oa(t(...e))),r);return i._c=!1,i},na=(e,t,r)=>{const i=e._ctx;for(const o in e){if(ia(o))continue;const r=e[o];if(Il(r))t[o]=la(0,r,i);else if(null!=r){const e=oa(r);t[o]=()=>e}}},aa=(e,t)=>{const r=oa(t);e.slots.default=()=>r};function sa(e,t){if(null===en)return e;const r=en.proxy,i=e.dirs||(e.dirs=[]);for(let o=0;o(l.has(e)||(e&&Il(e.install)?(l.add(e),e.install(a,...t)):Il(e)&&(l.add(e),e(a,...t))),a),mixin:e=>(o.mixins.includes(e)||o.mixins.push(e),a),component:(e,t)=>t?(o.components[e]=t,a):o.components[e],directive:(e,t)=>t?(o.directives[e]=t,a):o.directives[e],mount(l,s,c){if(!n){const d=qa(r,i);return d.appContext=o,s&&t?t(d,l):e(d,l,c),n=!0,a._container=l,l.__vue_app__=a,ys(d.component)||d.component.proxy}},unmount(){n&&(e(null,a._container),delete a._container.__vue_app__)},provide:(e,t)=>(o.provides[e]=t,a)};return a}}function ha(e,t,r,i,o=!1){if(Al(e))return void e.forEach(((e,l)=>ha(e,t&&(Al(t)?t[l]:t),r,i,o)));if(yn(i)&&!o)return;const l=4&i.shapeFlag?ys(i.component)||i.component.proxy:i.el,n=o?null:l,{i:a,r:s}=e,c=t&&t.r,d=a.refs===bl?a.refs={}:a.refs,u=a.setupState;if(null!=c&&c!==s&&(Ml(c)?(d[c]=null,Sl(u,c)&&(u[c]=null)):Xo(c)&&(c.value=null)),Il(s))As(s,a,12,[n,d]);else{const t=Ml(s),i=Xo(s);if(t||i){const i=()=>{if(e.f){const r=t?d[s]:s.value;o?Al(r)&&El(r,l):Al(r)?r.includes(l)||r.push(l):t?d[s]=[l]:(s.value=[l],e.k&&(d[e.k]=s.value))}else t?(d[s]=n,Sl(u,s)&&(u[s]=n)):Xo(s)&&(s.value=n,e.k&&(d[e.k]=n))};n?(i.id=-1,ga(i,r)):i()}}}const ga=function(e,t){t&&t.pendingBranch?Al(e)?t.effects.push(...e):t.effects.push(e):qs(e,js,Bs,Fs)};function fa(e){return function(e,t){(Ql||(Ql="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})).__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:l,createText:n,createComment:a,setText:s,setElementText:c,parentNode:d,nextSibling:u,setScopeId:p=_l,cloneNode:h,insertStaticContent:g}=e,f=(e,t,r,i=null,o=null,l=null,n=!1,a=null,s=!!t.dynamicChildren)=>{if(e===t)return;e&&!Va(e,t)&&(i=W(e),B(e,o,l,!0),e=null),-2===t.patchFlag&&(s=!1,t.dynamicChildren=null);const{type:c,ref:d,shapeFlag:u}=t;switch(c){case Da:m(e,t,r,i);break;case Ia:b(e,t,r,i);break;case Ma:null==e&&v(t,r,i,n);break;case Pa:A(e,t,r,i,o,l,n,a,s);break;default:1&u?x(e,t,r,i,o,l,n,a,s):6&u?P(e,t,r,i,o,l,n,a,s):(64&u||128&u)&&c.process(e,t,r,i,o,l,n,a,s,G)}null!=d&&o&&ha(d,e&&e.ref,l,t||e,!t)},m=(e,t,i,o)=>{if(null==e)r(t.el=n(t.children),i,o);else{const r=t.el=e.el;t.children!==e.children&&s(r,t.children)}},b=(e,t,i,o)=>{null==e?r(t.el=a(t.children||""),i,o):t.el=e.el},v=(e,t,r,i)=>{[e.el,e.anchor]=g(e.children,t,r,i)},_=({el:e,anchor:t},i,o)=>{let l;for(;e&&e!==t;)l=u(e),r(e,i,o),e=l;r(t,i,o)},y=({el:e,anchor:t})=>{let r;for(;e&&e!==t;)r=u(e),i(e),e=r;i(t)},x=(e,t,r,i,o,l,n,a,s)=>{n=n||"svg"===t.type,null==e?w(t,r,i,o,l,n,a,s):E(e,t,o,l,n,a,s)},w=(e,t,i,n,a,s,d,u)=>{let p,g;const{type:f,props:m,shapeFlag:b,transition:v,patchFlag:_,dirs:y}=e;if(e.el&&void 0!==h&&-1===_)p=e.el=h(e.el);else{if(p=e.el=l(e.type,s,m&&m.is,m),8&b?c(p,e.children):16&b&&C(e.children,p,null,n,a,s&&"foreignObject"!==f,d,u),y&&ca(e,null,n,"created"),m){for(const t in m)"value"===t||Bl(t)||o(p,t,null,m[t],s,e.children,n,a,V);"value"in m&&o(p,"value",null,m.value),(g=m.onVnodeBeforeMount)&&ts(g,n,e)}k(p,e,e.scopeId,d,n)}y&&ca(e,null,n,"beforeMount");const x=(!a||a&&!a.pendingBranch)&&v&&!v.persisted;x&&v.beforeEnter(p),r(p,t,i),((g=m&&m.onVnodeMounted)||x||y)&&ga((()=>{g&&ts(g,n,e),x&&v.enter(p),y&&ca(e,null,n,"mounted")}),a)},k=(e,t,r,i,o)=>{if(r&&p(e,r),i)for(let l=0;l{for(let c=s;c{const s=t.el=e.el;let{patchFlag:d,dynamicChildren:u,dirs:p}=t;d|=16&e.patchFlag;const h=e.props||bl,g=t.props||bl;let f;r&&ma(r,!1),(f=g.onVnodeBeforeUpdate)&&ts(f,r,t,e),p&&ca(t,e,r,"beforeUpdate"),r&&ma(r,!0);const m=l&&"foreignObject"!==t.type;if(u?T(e.dynamicChildren,u,s,r,i,m,n):a||O(e,t,s,null,r,i,m,n,!1),d>0){if(16&d)S(s,t,h,g,r,i,l);else if(2&d&&h.class!==g.class&&o(s,"class",null,g.class,l),4&d&&o(s,"style",h.style,g.style,l),8&d){const n=t.dynamicProps;for(let t=0;t{f&&ts(f,r,t,e),p&&ca(t,e,r,"updated")}),i)},T=(e,t,r,i,o,l,n)=>{for(let a=0;a{if(r!==i){for(const s in i){if(Bl(s))continue;const c=i[s],d=r[s];c!==d&&"value"!==s&&o(e,s,d,c,a,t.children,l,n,V)}if(r!==bl)for(const s in r)Bl(s)||s in i||o(e,s,r[s],null,a,t.children,l,n,V);"value"in i&&o(e,"value",r.value,i.value)}},A=(e,t,i,o,l,a,s,c,d)=>{const u=t.el=e?e.el:n(""),p=t.anchor=e?e.anchor:n("");let{patchFlag:h,dynamicChildren:g,slotScopeIds:f}=t;f&&(c=c?c.concat(f):f),null==e?(r(u,i,o),r(p,i,o),C(t.children,i,p,l,a,s,c,d)):h>0&&64&h&&g&&e.dynamicChildren?(T(e.dynamicChildren,g,i,l,a,s,c),(null!=t.key||l&&t===l.subTree)&&ba(e,t,!0)):O(e,t,i,p,l,a,s,c,d)},P=(e,t,r,i,o,l,n,a,s)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?o.ctx.activate(t,r,i,n,s):D(t,r,i,o,l,n,s):I(e,t,s)},D=(e,t,r,i,o,l,n)=>{const a=e.component=function(e,t,r){const i=e.type,o=(t?t.appContext:e.appContext)||cs,l={uid:ds++,vnode:e,type:i,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new Pi(!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:Jn(i,o),emitsOptions:Jl(i,o),emit:null,emitted:null,propsDefaults:bl,inheritAttrs:i.inheritAttrs,ctx:bl,data:bl,props:bl,attrs:bl,slots:bl,refs:bl,setupState:bl,setupContext:null,suspense:r,suspenseId:r?r.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};l.ctx={_:l},l.root=t?t.root:l,l.emit=Kl.bind(null,l),e.ce&&e.ce(l);return l}(e,i,o);if(xn(e)&&(a.ctx.renderer=G),function(e,t=!1){ms=t;const{props:r,children:i}=e.vnode,o=fs(e);Xn(e,r,o,t),((e,t)=>{if(32&e.vnode.shapeFlag){const r=t._;r?(e.slots=Wo(t),Zl(t,"_",r)):na(t,e.slots={})}else e.slots={},t&&aa(e,t);Zl(e.slots,Wa,1)})(e,i);const l=o?function(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=Ho(new Proxy(e.ctx,ss));const{setup:i}=r;if(i){const r=e.setupContext=i.length>1?_s(e):null;hs(e),Gi();const o=As(i,e,0,[e.props,r]);if(Yi(),gs(),Ol(o)){if(o.then(gs,gs),t)return o.then((r=>{bs(e,r,t)})).catch((t=>{Ds(t,e,0)}));e.asyncDep=o}else bs(e,o,t)}else vs(e,t)}(e,t):void 0;ms=!1}(a),a.asyncDep){if(o&&o.registerDep(a,M),!e.el){const e=a.subTree=qa(Ia);b(null,e,t,r)}}else M(a,e,t,r,o,l,n)},I=(e,t,r)=>{const i=t.component=e.component;if(function(e,t,r){const{props:i,children:o,component:l}=e,{props:n,children:a,patchFlag:s}=t,c=l.emitsOptions;if(t.dirs||t.transition)return!0;if(!(r&&s>=0))return!(!o&&!a||a&&a.$stable)||i!==n&&(i?!n||sn(i,n,c):!!n);if(1024&s)return!0;if(16&s)return i?sn(i,n,c):!!n;if(8&s){const e=t.dynamicProps;for(let t=0;tOs&&Ls.splice(t,1)}(i.update),i.update()}else t.component=e.component,t.el=e.el,i.vnode=t},M=(e,t,r,i,o,l,n)=>{const a=()=>{if(e.isMounted){let t,{next:r,bu:i,u:a,parent:s,vnode:c}=e,u=r;ma(e,!1),r?(r.el=c.el,L(e,r,n)):r=c,i&&ql(i),(t=r.props&&r.props.onVnodeBeforeUpdate)&&ts(t,s,r,c),ma(e,!0);const p=ln(e),h=e.subTree;e.subTree=p,f(h,p,d(h.el),W(h),e,o,l),r.el=p.el,null===u&&function({vnode:e,parent:t},r){for(;t&&t.subTree===e;)(e=t.vnode).el=r,t=t.parent}(e,p.el),a&&ga(a,o),(t=r.props&&r.props.onVnodeUpdated)&&ga((()=>ts(t,s,r,c)),o)}else{let n;const{el:a,props:s}=t,{bm:c,m:d,parent:u}=e,p=yn(t);if(ma(e,!1),c&&ql(c),!p&&(n=s&&s.onVnodeBeforeMount)&&ts(n,u,t),ma(e,!0),a&&q){const r=()=>{e.subTree=ln(e),q(a,e.subTree,e,o,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&r())):r()}else{const n=e.subTree=ln(e);f(null,n,r,i,e,o,l),t.el=n.el}if(d&&ga(d,o),!p&&(n=s&&s.onVnodeMounted)){const e=t;ga((()=>ts(n,u,e)),o)}256&t.shapeFlag&&e.a&&ga(e.a,o),e.isMounted=!0,t=r=i=null}},s=e.effect=new Ui(a,(()=>Gs(e.update)),e.scope),c=e.update=s.run.bind(s);c.id=e.uid,ma(e,!0),c()},L=(e,t,r)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,function(e,t,r,i){const{props:o,attrs:l,vnode:{patchFlag:n}}=e,a=Wo(o),[s]=e.propsOptions;let c=!1;if(!(i||n>0)||16&n){let i;Qn(e,t,o,l)&&(c=!0);for(const l in a)t&&(Sl(t,l)||(i=Wl(l))!==l&&Sl(t,i))||(s?!r||void 0===r[l]&&void 0===r[i]||(o[l]=Kn(s,a,l,void 0,e,!0)):delete o[l]);if(l!==a)for(const e in l)t&&Sl(t,e)||(delete l[e],c=!0)}else if(8&n){const r=e.vnode.dynamicProps;for(let i=0;i{const{vnode:i,slots:o}=e;let l=!0,n=bl;if(32&i.shapeFlag){const e=t._;e?r&&1===e?l=!1:(Cl(o,t),r||1!==e||delete o._):(l=!t.$stable,na(t,o)),n=t}else t&&(aa(e,t),n={default:1});if(l)for(const a in o)ia(a)||a in n||delete o[a]})(e,t.children,r),Gi(),Zs(void 0,e.update),Yi()},O=(e,t,r,i,o,l,n,a,s=!1)=>{const d=e&&e.children,u=e?e.shapeFlag:0,p=t.children,{patchFlag:h,shapeFlag:g}=t;if(h>0){if(128&h)return void R(d,p,r,i,o,l,n,a,s);if(256&h)return void z(d,p,r,i,o,l,n,a,s)}8&g?(16&u&&V(d,o,l),p!==d&&c(r,p)):16&u?16&g?R(d,p,r,i,o,l,n,a,s):V(d,o,l,!0):(8&u&&c(r,""),16&g&&C(p,r,i,o,l,n,a,s))},z=(e,t,r,i,o,l,n,a,s)=>{t=t||vl;const c=(e=e||vl).length,d=t.length,u=Math.min(c,d);let p;for(p=0;pd?V(e,o,l,!0,!1,u):C(t,r,i,o,l,n,a,s,u)},R=(e,t,r,i,o,l,n,a,s)=>{let c=0;const d=t.length;let u=e.length-1,p=d-1;for(;c<=u&&c<=p;){const i=e[c],d=t[c]=s?Ja(t[c]):Ka(t[c]);if(!Va(i,d))break;f(i,d,r,null,o,l,n,a,s),c++}for(;c<=u&&c<=p;){const i=e[u],c=t[p]=s?Ja(t[p]):Ka(t[p]);if(!Va(i,c))break;f(i,c,r,null,o,l,n,a,s),u--,p--}if(c>u){if(c<=p){const e=p+1,u=ep)for(;c<=u;)B(e[c],o,l,!0),c++;else{const h=c,g=c,m=new Map;for(c=g;c<=p;c++){const e=t[c]=s?Ja(t[c]):Ka(t[c]);null!=e.key&&m.set(e.key,c)}let b,v=0;const _=p-g+1;let y=!1,x=0;const w=new Array(_);for(c=0;c<_;c++)w[c]=0;for(c=h;c<=u;c++){const i=e[c];if(v>=_){B(i,o,l,!0);continue}let d;if(null!=i.key)d=m.get(i.key);else for(b=g;b<=p;b++)if(0===w[b-g]&&Va(i,t[b])){d=b;break}void 0===d?B(i,o,l,!0):(w[d-g]=c+1,d>=x?x=d:y=!0,f(i,t[d],r,null,o,l,n,a,s),v++)}const k=y?function(e){const t=e.slice(),r=[0];let i,o,l,n,a;const s=e.length;for(i=0;i>1,e[r[a]]0&&(t[i]=r[l-1]),r[l]=i)}}l=r.length,n=r[l-1];for(;l-- >0;)r[l]=n,n=t[n];return r}(w):vl;for(b=k.length-1,c=_-1;c>=0;c--){const e=g+c,u=t[e],p=e+1{const{el:n,type:a,transition:s,children:c,shapeFlag:d}=e;if(6&d)return void N(e.component.subTree,t,i,o);if(128&d)return void e.suspense.move(t,i,o);if(64&d)return void a.move(e,t,i,G);if(a===Pa){r(n,t,i);for(let e=0;es.enter(n)),l);else{const{leave:e,delayLeave:o,afterLeave:l}=s,a=()=>r(n,t,i),c=()=>{e(n,(()=>{a(),l&&l()}))};o?o(n,a,c):c()}else r(n,t,i)},B=(e,t,r,i=!1,o=!1)=>{const{type:l,props:n,ref:a,children:s,dynamicChildren:c,shapeFlag:d,patchFlag:u,dirs:p}=e;if(null!=a&&ha(a,null,r,e,!0),256&d)return void t.ctx.deactivate(e);const h=1&d&&p,g=!yn(e);let f;if(g&&(f=n&&n.onVnodeBeforeUnmount)&&ts(f,t,e),6&d)U(e.component,r,i);else{if(128&d)return void e.suspense.unmount(r,i);h&&ca(e,null,t,"beforeUnmount"),64&d?e.type.remove(e,t,r,o,G,i):c&&(l!==Pa||u>0&&64&u)?V(c,t,r,!1,!0):(l===Pa&&384&u||!o&&16&d)&&V(s,t,r),i&&j(e)}(g&&(f=n&&n.onVnodeUnmounted)||h)&&ga((()=>{f&&ts(f,t,e),h&&ca(e,null,t,"unmounted")}),r)},j=e=>{const{type:t,el:r,anchor:o,transition:l}=e;if(t===Pa)return void F(r,o);if(t===Ma)return void y(e);const n=()=>{i(r),l&&!l.persisted&&l.afterLeave&&l.afterLeave()};if(1&e.shapeFlag&&l&&!l.persisted){const{leave:t,delayLeave:i}=l,o=()=>t(r,n);i?i(e.el,n,o):o()}else n()},F=(e,t)=>{let r;for(;e!==t;)r=u(e),i(e),e=r;i(t)},U=(e,t,r)=>{const{bum:i,scope:o,update:l,subTree:n,um:a}=e;i&&ql(i),o.stop(),l&&(l.active=!1,B(n,e,t,r)),a&&ga(a,t),ga((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},V=(e,t,r,i=!1,o=!1,l=0)=>{for(let n=l;n6&e.shapeFlag?W(e.component.subTree):128&e.shapeFlag?e.suspense.next():u(e.anchor||e.el),H=(e,t,r)=>{null==e?t._vnode&&B(t._vnode,null,null,!0):f(t._vnode||null,e,t,null,null,null,r),Xs(),t._vnode=e},G={p:f,um:B,m:N,r:j,mt:D,mc:C,pc:O,pbc:T,n:W,o:e};let Y,q;t&&([Y,q]=t(G));return{render:H,hydrate:Y,createApp:pa(H,Y)}}(e)}function ma({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function ba(e,t,r=!1){const i=e.children,o=t.children;if(Al(i)&&Al(o))for(let l=0;le&&(e.disabled||""===e.disabled),_a=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,ya=(e,t)=>{const r=e&&e.to;if(Ml(r)){if(t){return t(r)}return null}return r};function xa(e,t,r,{o:{insert:i},m:o},l=2){0===l&&i(e.targetAnchor,t,r);const{el:n,anchor:a,shapeFlag:s,children:c,props:d}=e,u=2===l;if(u&&i(n,t,r),(!u||va(d))&&16&s)for(let p=0;p{16&v&&d(_,e,t,o,l,n,a,s)};b?m(r,c):u&&m(u,p)}else{t.el=e.el;const i=t.anchor=e.anchor,d=t.target=e.target,h=t.targetAnchor=e.targetAnchor,f=va(e.props),m=f?r:d,v=f?i:h;if(n=n||_a(d),y?(p(e.dynamicChildren,y,m,o,l,n,a),ba(e,t,!0)):s||u(e,t,m,v,o,l,n,a,!1),b)f||xa(t,r,i,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=ya(t.props,g);e&&xa(t,e,null,c,0)}else f&&xa(t,d,h,c,1)}},remove(e,t,r,i,{um:o,o:{remove:l}},n){const{shapeFlag:a,children:s,anchor:c,targetAnchor:d,target:u,props:p}=e;if(u&&l(d),(n||!va(p))&&(l(c),16&a))for(let h=0;h0?Oa||vl:null,La.pop(),Oa=La[La.length-1]||null,Ra>0&&Oa&&Oa.push(e),e}function ja(e,t,r,i,o,l){return Ba(Ya(e,t,r,i,o,l,!0))}function Fa(e,t,r,i,o){return Ba(qa(e,t,r,i,o,!0))}function Ua(e){return!!e&&!0===e.__v_isVNode}function Va(e,t){return e.type===t.type&&e.key===t.key}const Wa="__vInternal",Ha=({key:e})=>null!=e?e:null,Ga=({ref:e,ref_key:t,ref_for:r})=>null!=e?Ml(e)||Xo(e)||Il(e)?{i:en,r:e,k:t,f:!!r}:e:null;function Ya(e,t=null,r=null,i=0,o=null,l=(e===Pa?0:1),n=!1,a=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ha(t),ref:t&&Ga(t),scopeId:tn,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null};return a?($a(s,r),128&l&&e.normalize(s)):r&&(s.shapeFlag|=Ml(r)?8:16),Ra>0&&!n&&Oa&&(s.patchFlag>0||6&l)&&32!==s.patchFlag&&Oa.push(s),s}const qa=function(e,t=null,r=null,i=0,o=null,l=!1){e&&e!==Ca||(e=Ia);if(Ua(e)){const i=Za(e,t,!0);return r&&$a(i,r),i}n=e,Il(n)&&"__vccOpts"in n&&(e=e.__vccOpts);var n;if(t){t=function(e){return e?Vo(e)||Wa in e?Cl({},e):e:null}(t);let{class:e,style:r}=t;e&&!Ml(e)&&(t.class=gl(e)),Ll(r)&&(Vo(r)&&!Al(r)&&(r=Cl({},r)),t.style=dl(r))}const a=Ml(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:Ll(e)?4:Il(e)?2:0;return Ya(e,t,r,i,o,a,l,!0)};function Za(e,t,r=!1){const{props:i,ref:o,patchFlag:l,children:n}=e,a=t?es(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Ha(a),ref:t&&t.ref?r&&o?Al(o)?o.concat(Ga(t)):[o,Ga(t)]:Ga(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:n,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Pa?-1===l?16:16|l:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Za(e.ssContent),ssFallback:e.ssFallback&&Za(e.ssFallback),el:e.el,anchor:e.anchor}}function Xa(e=" ",t=0){return qa(Da,null,e,t)}function Qa(e="",t=!1){return t?(za(),Fa(Ia,null,e)):qa(Ia,null,e)}function Ka(e){return null==e||"boolean"==typeof e?qa(Ia):Al(e)?qa(Pa,null,e.slice()):"object"==typeof e?Ja(e):qa(Da,null,String(e))}function Ja(e){return null===e.el||e.memo?e:Za(e)}function $a(e,t){let r=0;const{shapeFlag:i}=e;if(null==t)t=null;else if(Al(t))r=16;else if("object"==typeof t){if(65&i){const r=t.default;return void(r&&(r._c&&(r._d=!1),$a(e,r()),r._c&&(r._d=!0)))}{r=32;const i=t._;i||Wa in t?3===i&&en&&(1===en.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=en}}else Il(t)?(t={default:t,_ctx:en},r=32):(t=String(t),64&i?(r=16,t=[Xa(t)]):r=8);e.children=t,e.shapeFlag|=r}function es(...e){const t={};for(let r=0;rt(e,r,void 0,l&&l[r])));else{const r=Object.keys(e);o=new Array(r.length);for(let i=0,n=r.length;i!Ua(e)||e.type!==Ia&&!(e.type===Pa&&!ls(e.children))))?e:null}const ns=e=>e?fs(e)?ys(e)||e.proxy:ns(e.parent):null,as=Cl(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=>ns(e.parent),$root:e=>ns(e.root),$emit:e=>e.emit,$options:e=>Vn(e),$forceUpdate:e=>()=>Gs(e.update),$nextTick:e=>Hs.bind(e.proxy),$watch:e=>rc.bind(e)}),ss={get({_:e},t){const{ctx:r,setupState:i,data:o,props:l,accessCache:n,type:a,appContext:s}=e;let c;if("$"!==t[0]){const a=n[t];if(void 0!==a)switch(a){case 1:return i[t];case 2:return o[t];case 4:return r[t];case 3:return l[t]}else{if(i!==bl&&Sl(i,t))return n[t]=1,i[t];if(o!==bl&&Sl(o,t))return n[t]=2,o[t];if((c=e.propsOptions[0])&&Sl(c,t))return n[t]=3,l[t];if(r!==bl&&Sl(r,t))return n[t]=4,r[t];Bn&&(n[t]=0)}}const d=as[t];let u,p;return d?("$attrs"===t&&qi(e,0,t),d(e)):(u=a.__cssModules)&&(u=u[t])?u:r!==bl&&Sl(r,t)?(n[t]=4,r[t]):(p=s.config.globalProperties,Sl(p,t)?p[t]:void 0)},set({_:e},t,r){const{data:i,setupState:o,ctx:l}=e;if(o!==bl&&Sl(o,t))o[t]=r;else if(i!==bl&&Sl(i,t))i[t]=r;else if(Sl(e.props,t))return!1;return("$"!==t[0]||!(t.slice(1)in e))&&(l[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:i,appContext:o,propsOptions:l}},n){let a;return!!r[n]||e!==bl&&Sl(e,n)||t!==bl&&Sl(t,n)||(a=l[0])&&Sl(a,n)||Sl(i,n)||Sl(as,n)||Sl(o.config.globalProperties,n)}},cs=da();let ds=0;let us=null;const ps=()=>us||en,hs=e=>{us=e,e.scope.on()},gs=()=>{us&&us.scope.off(),us=null};function fs(e){return 4&e.vnode.shapeFlag}let ms=!1;function bs(e,t,r){Il(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ll(t)&&(e.setupState=il(t)),vs(e,r)}function vs(e,t,r){const i=e.type;e.render||(e.render=i.render||_l),hs(e),Gi(),jn(e),Yi(),gs()}function _s(e){const t=t=>{e.exposed=t||{}};let r;return{get attrs(){return r||(r=function(e){return new Proxy(e.attrs,{get:(t,r)=>(qi(e,0,"$attrs"),t[r])})}(e))},slots:e.slots,emit:e.emit,expose:t}}function ys(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(il(Ho(e.exposed)),{get:(t,r)=>r in t?t[r]:r in as?as[r](e):void 0}))}const xs=/(?:^|[-_])(\w)/g;function ws(e){return Il(e)&&e.displayName||e.name}function ks(e,t,r=!1){let i=ws(t);if(!i&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(i=e[1])}if(!i&&e&&e.parent){const r=e=>{for(const r in e)if(e[r]===t)return r};i=r(e.components||e.parent.type.components)||r(e.appContext.components)}return i?i.replace(xs,(e=>e.toUpperCase())).replace(/[-_]/g,""):r?"App":"Anonymous"}const Cs=[];function Es(e,...t){Gi();const r=Cs.length?Cs[Cs.length-1].component:null,i=r&&r.appContext.config.warnHandler,o=function(){let e=Cs[Cs.length-1];if(!e)return[];const t=[];for(;e;){const r=t[0];r&&r.vnode===e?r.recurseCount++:t.push({vnode:e,recurseCount:0});const i=e.component&&e.component.parent;e=i&&i.vnode}return t}();if(i)As(i,r,11,[e+t.join(""),r&&r.proxy,o.map((({vnode:e})=>`at <${ks(r,e.type)}>`)).join("\n"),o]);else{const r=[`[Vue warn]: ${e}`,...t];o.length&&r.push("\n",...function(e){const t=[];return e.forEach(((e,r)=>{t.push(...0===r?[]:["\n"],...function({vnode:e,recurseCount:t}){const r=t>0?`... (${t} recursive calls)`:"",i=!!e.component&&null==e.component.parent,o=` at <${ks(e.component,e.type,i)}`,l=">"+r;return e.props?[o,...Ts(e.props),l]:[o+l]}(e))})),t}(o)),console.warn(...r)}Yi()}function Ts(e){const t=[],r=Object.keys(e);return r.slice(0,3).forEach((r=>{t.push(...Ss(r,e[r]))})),r.length>3&&t.push(" ..."),t}function Ss(e,t,r){return Ml(t)?(t=JSON.stringify(t),r?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?r?t:[`${e}=${t}`]:Xo(t)?(t=Ss(e,Wo(t.value),!0),r?t:[`${e}=Ref<`,t,">"]):Il(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Wo(t),r?t:[`${e}=`,t])}function As(e,t,r,i){let o;try{o=i?e(...i):e()}catch(l){Ds(l,t,r)}return o}function Ps(e,t,r,i){if(Il(e)){const o=As(e,t,r,i);return o&&Ol(o)&&o.catch((e=>{Ds(e,t,r)})),o}const o=[];for(let l=0;l>>1;Qs(Ls[i])Qs(e)-Qs(t))),Fs=0;Fsnull==e.id?1/0:e.id;function Ks(e){Ms=!1,Is=!0,Zs(e),Ls.sort(((e,t)=>Qs(e)-Qs(t)));try{for(Os=0;Ose.value,d=!!e._shallow):Fo(e)?(s=()=>e,i=!0):Al(e)?(u=!0,d=e.some(Fo),s=()=>e.map((e=>Xo(e)?e.value:Fo(e)?oc(e):Il(e)?As(e,a,2):void 0))):s=Il(e)?t?()=>As(e,a,2):()=>{if(!a||!a.isUnmounted)return c&&c(),Ps(e,a,3,[p])}:_l,t&&i){const e=s;s=()=>oc(e())}let p=e=>{c=m.onStop=()=>{As(e,a,4)}};if(ms)return p=_l,t?r&&Ps(t,a,3,[s(),u?[]:void 0,p]):s(),_l;let h=u?[]:$s;const g=()=>{if(m.active)if(t){const e=m.run();(i||d||(u?e.some(((e,t)=>Yl(e,h[t]))):Yl(e,h)))&&(c&&c(),Ps(t,a,3,[e,h===$s?void 0:h,p]),h=e)}else m.run()};let f;g.allowRecurse=!!t,f="sync"===o?g:"post"===o?()=>ga(g,a&&a.suspense):()=>{!a||a.isMounted?function(e){qs(e,Rs,zs,Ns)}(g):g()};const m=new Ui(s,f);return t?r?g():h=m.run():"post"===o?ga(m.run.bind(m),a&&a.suspense):m.run(),()=>{m.stop(),a&&a.scope&&El(a.scope.effects,m)}}function rc(e,t,r){const i=this.proxy,o=Ml(e)?e.includes(".")?ic(i,e):()=>i[e]:e.bind(i,i);let l;Il(t)?l=t:(l=t.handler,r=t);const n=us;hs(this);const a=tc(o,l.bind(i),r);return n?hs(n):gs(),a}function ic(e,t){const r=t.split(".");return()=>{let t=e;for(let e=0;e{oc(e,t)}));else if(Nl(e))for(const r in e)oc(e[r],t);return e}function lc(){return nc().slots}function nc(){const e=ps();return e.setupContext||(e.setupContext=_s(e))}function ac(e,t,r){const i=arguments.length;return 2===i?Ll(t)&&!Al(t)?Ua(t)?qa(e,null,[t]):qa(e,t):qa(e,null,t):(i>3?r=Array.prototype.slice.call(arguments,2):3===i&&Ua(r)&&(r=[r]),qa(e,t,r))}const sc="3.2.25";function cc(e,t){const r=Object.create(null),i=e.split(",");for(let o=0;o!!r[e.toLowerCase()]:e=>!!r[e]}const dc=cc("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function uc(e){return!!e||""===e}function pc(e,t){if(e===t)return!0;let r=mc(e),i=mc(t);if(r||i)return!(!r||!i)&&e.getTime()===t.getTime();if(r=fc(e),i=fc(t),r||i)return!(!r||!i)&&function(e,t){if(e.length!==t.length)return!1;let r=!0;for(let i=0;r&&ie instanceof Date,bc=e=>"string"==typeof e,vc=e=>null!==e&&"object"==typeof e,_c=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},yc=/-(\w)/g,xc=_c((e=>e.replace(yc,((e,t)=>t?t.toUpperCase():"")))),wc=/\B([A-Z])/g,kc=_c((e=>e.replace(wc,"-$1").toLowerCase())),Cc=_c((e=>e.charAt(0).toUpperCase()+e.slice(1))),Ec=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Tc="undefined"!=typeof document?document:null,Sc=new Map,Ac={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,i)=>{const o=t?Tc.createElementNS("http://www.w3.org/2000/svg",e):Tc.createElement(e,r?{is:r}:void 0);return"select"===e&&i&&null!=i.multiple&&o.setAttribute("multiple",i.multiple),o},createText:e=>Tc.createTextNode(e),createComment:e=>Tc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Tc.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,r,i){const o=r?r.previousSibling:t.lastChild;let l=Sc.get(e);if(!l){const t=Tc.createElement("template");if(t.innerHTML=i?`${e}`:e,l=t.content,i){const e=l.firstChild;for(;e.firstChild;)l.appendChild(e.firstChild);l.removeChild(e)}Sc.set(e,l)}return t.insertBefore(l.cloneNode(!0),r),[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};const Pc=/\s*!important$/;function Dc(e,t,r){if(fc(r))r.forEach((r=>Dc(e,t,r)));else if(t.startsWith("--"))e.setProperty(t,r);else{const i=function(e,t){const r=Mc[t];if(r)return r;let i=Ul(t);if("filter"!==i&&i in e)return Mc[t]=i;i=Cc(i);for(let o=0;odocument.createEvent("Event").timeStamp&&(Oc=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);zc=!!(e&&Number(e[1])<=53)}let Rc=0;const Nc=Promise.resolve(),Bc=()=>{Rc=0};function jc(e,t,r,i){e.addEventListener(t,r,i)}function Fc(e,t,r,i,o=null){const l=e._vei||(e._vei={}),n=l[t];if(i&&n)n.value=i;else{const[r,a]=function(e){let t;if(Uc.test(e)){let r;for(t={};r=e.match(Uc);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[kc(e.slice(2)),t]}(t);if(i){jc(e,r,l[t]=function(e,t){const r=e=>{const i=e.timeStamp||Oc();(zc||i>=r.attached-1)&&Ps(function(e,t){if(fc(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e(t)))}return t}(e,r.value),t,5,[e])};return r.value=e,r.attached=(()=>Rc||(Nc.then(Bc),Rc=Oc()))(),r}(i,o),a)}else n&&(!function(e,t,r,i){e.removeEventListener(t,r,i)}(e,r,n,a),l[t]=void 0)}}const Uc=/(?:Once|Passive|Capture)$/;const Vc=/^on[a-z]/;function Wc(e,t){const r=_n(e);class i extends Gc{constructor(e){super(r,e,t)}}return i.def=r,i}const Hc="undefined"!=typeof HTMLElement?HTMLElement:class{};class Gc extends Hc{constructor(e,t={},r){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,Hs((()=>{this._connected||(_d(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let r=0;r{for(const t of e)this._setAttr(t.attributeName)})).observe(this,{attributes:!0});const e=e=>{const{props:t,styles:r}=e,i=!fc(t),o=t?i?Object.keys(t):t:[];let l;if(i)for(const n in this._props){const e=t[n];(e===Number||e&&e.type===Number)&&(this._props[n]=Ec(this._props[n]),(l||(l=Object.create(null)))[n]=!0)}this._numberProps=l;for(const n of Object.keys(this))"_"!==n[0]&&this._setProp(n,this[n],!0,!1);for(const n of o.map(xc))Object.defineProperty(this,n,{get(){return this._getProp(n)},set(e){this._setProp(n,e)}});this._applyStyles(r),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=Ec(t)),this._setProp(xc(e),t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,r=!0,i=!0){t!==this._props[e]&&(this._props[e]=t,i&&this._instance&&this._update(),r&&(!0===t?this.setAttribute(kc(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(kc(e),t+""):t||this.removeAttribute(kc(e))))}_update(){_d(this._createVNode(),this.shadowRoot)}_createVNode(){const e=qa(this._def,gc({},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 Gc){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 Yc="transition",qc=(e,{slots:t})=>ac(pn,function(e){const t={};for(const A in e)A in Zc||(t[A]=e[A]);if(!1===e.css)return t;const{name:r="v",type:i,duration:o,enterFromClass:l=`${r}-enter-from`,enterActiveClass:n=`${r}-enter-active`,enterToClass:a=`${r}-enter-to`,appearFromClass:s=l,appearActiveClass:c=n,appearToClass:d=a,leaveFromClass:u=`${r}-leave-from`,leaveActiveClass:p=`${r}-leave-active`,leaveToClass:h=`${r}-leave-to`}=e,g=function(e){if(null==e)return null;if(vc(e))return[Kc(e.enter),Kc(e.leave)];{const t=Kc(e);return[t,t]}}(o),f=g&&g[0],m=g&&g[1],{onBeforeEnter:b,onEnter:v,onEnterCancelled:_,onLeave:y,onLeaveCancelled:x,onBeforeAppear:w=b,onAppear:k=v,onAppearCancelled:C=_}=t,E=(e,t,r)=>{$c(e,t?d:a),$c(e,t?c:n),r&&r()},T=(e,t)=>{$c(e,h),$c(e,p),t&&t()},S=e=>(t,r)=>{const o=e?k:v,n=()=>E(t,e,r);Xc(o,[t,n]),ed((()=>{$c(t,e?s:l),Jc(t,e?d:a),Qc(o)||rd(t,i,f,n)}))};return gc(t,{onBeforeEnter(e){Xc(b,[e]),Jc(e,l),Jc(e,n)},onBeforeAppear(e){Xc(w,[e]),Jc(e,s),Jc(e,c)},onEnter:S(!1),onAppear:S(!0),onLeave(e,t){const r=()=>T(e,t);Jc(e,u),document.body.offsetHeight,Jc(e,p),ed((()=>{$c(e,u),Jc(e,h),Qc(y)||rd(e,i,m,r)})),Xc(y,[e,r])},onEnterCancelled(e){E(e,!1),Xc(_,[e])},onAppearCancelled(e){E(e,!0),Xc(C,[e])},onLeaveCancelled(e){T(e),Xc(x,[e])}})}(e),t);qc.displayName="Transition";const Zc={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};qc.props=gc({},pn.props,Zc);const Xc=(e,t=[])=>{fc(e)?e.forEach((e=>e(...t))):e&&e(...t)},Qc=e=>!!e&&(fc(e)?e.some((e=>e.length>1)):e.length>1);function Kc(e){return Ec(e)}function Jc(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function $c(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:r}=e;r&&(r.delete(t),r.size||(e._vtc=void 0))}function ed(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let td=0;function rd(e,t,r,i){const o=e._endId=++td,l=()=>{o===e._endId&&i()};if(r)return setTimeout(l,r);const{type:n,timeout:a,propCount:s}=function(e,t){const r=window.getComputedStyle(e),i=e=>(r[e]||"").split(", "),o=i("transitionDelay"),l=i("transitionDuration"),n=id(o,l),a=i("animationDelay"),s=i("animationDuration"),c=id(a,s);let d=null,u=0,p=0;t===Yc?n>0&&(d=Yc,u=n,p=l.length):"animation"===t?c>0&&(d="animation",u=c,p=s.length):(u=Math.max(n,c),d=u>0?n>c?Yc:"animation":null,p=d?d===Yc?l.length:s.length:0);const h=d===Yc&&/\b(transform|all)(,|$)/.test(r.transitionProperty);return{type:d,timeout:u,propCount:p,hasTransform:h}}(e,t);if(!n)return i();const c=n+"end";let d=0;const u=()=>{e.removeEventListener(c,p),l()},p=t=>{t.target===e&&++d>=s&&u()};setTimeout((()=>{dod(t)+od(e[r]))))}function od(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}const ld=e=>{const t=e.props["onUpdate:modelValue"];return fc(t)?e=>((e,t)=>{for(let r=0;r{if(t.target.composing)return;let i=e.value;r?i=i.trim():l&&(i=Ec(i)),e._assign(i)})),r&&jc(e,"change",(()=>{e.value=e.value.trim()})),t||(jc(e,"compositionstart",nd),jc(e,"compositionend",ad),jc(e,"change",ad))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:r,trim:i,number:o}},l){if(e._assign=ld(l),e.composing)return;if(document.activeElement===e){if(r)return;if(i&&e.value.trim()===t)return;if((o||"number"===e.type)&&Ec(e.value)===t)return}const n=null==t?"":t;e.value!==n&&(e.value=n)}},cd={created(e,{value:t},r){e.checked=pc(t,r.props.value),e._assign=ld(r),jc(e,"change",(()=>{e._assign(function(e){return"_value"in e?e._value:e.value}(e))}))},beforeUpdate(e,{value:t,oldValue:r},i){e._assign=ld(i),t!==r&&(e.checked=pc(t,i.props.value))}};const dd=["ctrl","shift","alt","meta"],ud={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)=>dd.some((r=>e[`${r}Key`]&&!t.includes(r)))},pd=(e,t)=>(r,...i)=>{for(let e=0;er=>{if(!("key"in r))return;const i=kc(r.key);return t.some((e=>e===i||hd[e]===i))?e(r):void 0},fd={beforeMount(e,{value:t},{transition:r}){e._vod="none"===e.style.display?"":e.style.display,r&&t?r.beforeEnter(e):md(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:i}){!t!=!r&&(i?t?(i.beforeEnter(e),md(e,!0),i.enter(e)):i.leave(e,(()=>{md(e,!1)})):md(e,t))},beforeUnmount(e,{value:t}){md(e,t)}};function md(e,t){e.style.display=t?e._vod:"none"}const bd=gc({patchProp:(e,t,r,i,o=!1,l,n,a,s)=>{"class"===t?function(e,t,r){const i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),null==t?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}(e,i,o):"style"===t?function(e,t,r){const i=e.style,o=bc(r);if(r&&!o){for(const e in r)Dc(i,e,r[e]);if(t&&!bc(t))for(const e in t)null==r[e]&&Dc(i,e,"")}else{const l=i.display;o?t!==r&&(i.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=l)}}(e,r,i):(e=>hc.test(e))(t)?(e=>e.startsWith("onUpdate:"))(t)||Fc(e,t,0,i,n):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,r,i){if(i)return"innerHTML"===t||"textContent"===t||!(!(t in e)||!Vc.test(t)||(o=r,"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(Vc.test(t)&&bc(r))return!1;return t in e}(e,t,i,o))?function(e,t,r,i,o,l,n){if("innerHTML"===t||"textContent"===t)return i&&n(i,o,l),void(e[t]=null==r?"":r);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=r;const i=null==r?"":r;return e.value===i&&"OPTION"!==e.tagName||(e.value=i),void(null==r&&e.removeAttribute(t))}if(""===r||null==r){const i=typeof e[t];if("boolean"===i)return void(e[t]=uc(r));if(null==r&&"string"===i)return e[t]="",void e.removeAttribute(t);if("number"===i){try{e[t]=0}catch(a){}return void e.removeAttribute(t)}}try{e[t]=r}catch(s){}}(e,t,i,l,n,a,s):("true-value"===t?e._trueValue=i:"false-value"===t&&(e._falseValue=i),function(e,t,r,i,o){if(i&&t.startsWith("xlink:"))null==r?e.removeAttributeNS(Lc,t.slice(6,t.length)):e.setAttributeNS(Lc,t,r);else{const i=dc(t);null==r||i&&!uc(r)?e.removeAttribute(t):e.setAttribute(t,i?"":r)}}(e,t,i,o))}},Ac);let vd;const _d=(...e)=>{(vd||(vd=fa(bd))).render(...e)};var yd="object"==typeof global&&global&&global.Object===Object&&global,xd="object"==typeof self&&self&&self.Object===Object&&self,wd=yd||xd||Function("return this")(),kd=wd.Symbol,Cd=Object.prototype,Ed=Cd.hasOwnProperty,Td=Cd.toString,Sd=kd?kd.toStringTag:void 0;var Ad=Object.prototype.toString;var Pd=kd?kd.toStringTag:void 0;function Dd(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Pd&&Pd in Object(e)?function(e){var t=Ed.call(e,Sd),r=e[Sd];try{e[Sd]=void 0;var i=!0}catch(l){}var o=Td.call(e);return i&&(t?e[Sd]=r:delete e[Sd]),o}(e):function(e){return Ad.call(e)}(e)}function Id(e){return null!=e&&"object"==typeof e}function Md(e){return"symbol"==typeof e||Id(e)&&"[object Symbol]"==Dd(e)}var Ld=Array.isArray,Od=kd?kd.prototype:void 0,zd=Od?Od.toString:void 0;function Rd(e){if("string"==typeof e)return e;if(Ld(e))return function(e,t){for(var r=-1,i=null==e?0:e.length,o=Array(i);++r-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}var uu=Object.prototype;function pu(e){return Id(e)&&"[object Arguments]"==Dd(e)}var hu=Object.prototype,gu=hu.hasOwnProperty,fu=hu.propertyIsEnumerable,mu=pu(function(){return arguments}())?pu:function(e){return Id(e)&&gu.call(e,"callee")&&!fu.call(e,"callee")};var bu="object"==typeof exports&&exports&&!exports.nodeType&&exports,vu=bu&&"object"==typeof module&&module&&!module.nodeType&&module,_u=vu&&vu.exports===bu?wd.Buffer:void 0,yu=(_u?_u.isBuffer:void 0)||function(){return!1},xu={};xu["[object Float32Array]"]=xu["[object Float64Array]"]=xu["[object Int8Array]"]=xu["[object Int16Array]"]=xu["[object Int32Array]"]=xu["[object Uint8Array]"]=xu["[object Uint8ClampedArray]"]=xu["[object Uint16Array]"]=xu["[object Uint32Array]"]=!0,xu["[object Arguments]"]=xu["[object Array]"]=xu["[object ArrayBuffer]"]=xu["[object Boolean]"]=xu["[object DataView]"]=xu["[object Date]"]=xu["[object Error]"]=xu["[object Function]"]=xu["[object Map]"]=xu["[object Number]"]=xu["[object Object]"]=xu["[object RegExp]"]=xu["[object Set]"]=xu["[object String]"]=xu["[object WeakMap]"]=!1;var wu,ku="object"==typeof exports&&exports&&!exports.nodeType&&exports,Cu=ku&&"object"==typeof module&&module&&!module.nodeType&&module,Eu=Cu&&Cu.exports===ku&&yd.process,Tu=function(){try{var e=Cu&&Cu.require&&Cu.require("util").types;return e||Eu&&Eu.binding&&Eu.binding("util")}catch(t){}}(),Su=Tu&&Tu.isTypedArray,Au=Su?(wu=Su,function(e){return wu(e)}):function(e){return Id(e)&&du(e.length)&&!!xu[Dd(e)]},Pu=Object.prototype.hasOwnProperty;function Du(e,t){var r=Ld(e),i=!r&&mu(e),o=!r&&!i&&yu(e),l=!r&&!i&&!o&&Au(e),n=r||i||o||l,a=n?function(e,t){for(var r=-1,i=Array(e);++r-1},Wu.prototype.set=function(e,t){var r=this.__data__,i=Uu(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this};var Hu=lu(wd,"Map");function Gu(e,t){var r,i,o=e.__data__;return("string"==(i=typeof(r=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function Yu(e){var t=-1,r=null==e?0:e.length;for(this.clear();++ta))return!1;var c=l.get(e),d=l.get(t);if(c&&d)return c==t&&d==e;var u=-1,p=!0,h=2&r?new bp:void 0;for(l.set(e,t),l.set(t,e);++u=t||r<0||u&&e-c>=l}function m(){var e=Pp();if(f(e))return b(e);a=setTimeout(m,function(e){var r=t-(e-s);return u?Ip(r,l-(e-c)):r}(e))}function b(e){return a=void 0,p&&i?h(e):(i=o=void 0,n)}function v(){var e=Pp(),r=f(e);if(i=arguments,o=this,s=e,r){if(void 0===a)return g(s);if(u)return clearTimeout(a),a=setTimeout(m,t),h(s)}return void 0===a&&(a=setTimeout(m,t)),n}return t=Gd(t)||0,Fd(r)&&(d=!!r.leading,l=(u="maxWait"in r)?Dp(Gd(r.maxWait)||0,t):l,p="trailing"in r?!!r.trailing:p),v.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=s=o=a=void 0},v.flush=function(){return void 0===a?n:b(Pp())},v}function Lp(e){for(var t=-1,r=null==e?0:e.length,i={};++ti=>{const o=null==e?void 0:e(i);if(!1===r||!o)return null==t?void 0:t(i)};var Np;const Bp="undefined"!=typeof window,jp=e=>"boolean"==typeof e,Fp=e=>"number"==typeof e,Up=()=>{};function Vp(e){return"function"==typeof e?e():tl(e)}function Wp(e){return!!Si&&(Di(e),!0)}function Hp(e,t,r={}){const{immediate:i=!0}=r,o=Qo(!1);let l=null;function n(){l&&(clearTimeout(l),l=null)}function a(){o.value=!1,n()}function s(...r){n(),o.value=!0,l=setTimeout((()=>{o.value=!1,l=null,e(...r)}),Vp(t))}return i&&(o.value=!0,Bp&&s()),Wp(a),{isPending:o,start:s,stop:a}}function Gp(e){var t;const r=Vp(e);return null!=(t=null==r?void 0:r.$el)?t:r}Bp&&(null==(Np=null==window?void 0:window.navigator)?void 0:Np.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const Yp=Bp?window:void 0;function qp(...e){let t,r,i,o;if("string"==typeof e[0]?([r,i,o]=e,t=Yp):[t,r,i,o]=e,!t)return Up;let l=Up;const n=ec((()=>Gp(t)),(e=>{l(),e&&(e.addEventListener(r,i,o),l=()=>{e.removeEventListener(r,i,o),l=Up})}),{immediate:!0,flush:"post"}),a=()=>{n(),l()};return Wp(a),a}function Zp(e,t=!1){const r=Qo(),i=()=>r.value=Boolean(e());return i(),function(e,t=!0){ps()?Pn(e):t?e():Hs(e)}(i,t),r}const Xp="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Qp="__vueuse_ssr_handlers__";Xp[Qp]=Xp[Qp]||{},Xp[Qp];var Kp,Jp,$p=Object.getOwnPropertySymbols,eh=Object.prototype.hasOwnProperty,th=Object.prototype.propertyIsEnumerable;function rh(e,t,r={}){const i=r,{window:o=Yp}=i,l=((e,t)=>{var r={};for(var i in e)eh.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&$p)for(var i of $p(e))t.indexOf(i)<0&&th.call(e,i)&&(r[i]=e[i]);return r})(i,["window"]);let n;const a=Zp((()=>o&&"ResizeObserver"in o)),s=()=>{n&&(n.disconnect(),n=void 0)},c=ec((()=>Gp(e)),(e=>{s(),a.value&&o&&e&&(n=new ResizeObserver(t),n.observe(e,l))}),{immediate:!0,flush:"post"}),d=()=>{s(),c()};return Wp(d),{isSupported:a,stop:d}}(Jp=Kp||(Kp={})).UP="UP",Jp.RIGHT="RIGHT",Jp.DOWN="DOWN",Jp.LEFT="LEFT",Jp.NONE="NONE";var ih=Object.defineProperty,oh=Object.getOwnPropertySymbols,lh=Object.prototype.hasOwnProperty,nh=Object.prototype.propertyIsEnumerable,ah=(e,t,r)=>t in e?ih(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;((e,t)=>{for(var r in t||(t={}))lh.call(t,r)&&ah(e,r,t[r]);if(oh)for(var r of oh(t))nh.call(t,r)&&ah(e,r,t[r])})({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 sh=e=>{let t,r;return"touchend"===e.type?(r=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(r=e.touches[0].clientY,t=e.touches[0].clientX):(r=e.clientY,t=e.clientX),{clientX:t,clientY:r}},ch=()=>{},dh=Object.prototype.hasOwnProperty,uh=(e,t)=>dh.call(e,t),ph=Array.isArray,hh=e=>"function"==typeof e,gh=e=>"string"==typeof e,fh=e=>null!==e&&"object"==typeof e,mh=e=>fh(e)&&hh(e.then)&&hh(e.catch),bh=Object.prototype.toString,vh=e=>(e=>bh.call(e))(e).slice(8,-1),_h=/-(\w)/g,yh=(e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))})((e=>e.replace(_h,((e,t)=>t?t.toUpperCase():"")))),xh=e=>void 0===e,wh=e=>"undefined"!=typeof Element&&e instanceof Element,kh=e=>Object.keys(e);class Ch extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function Eh(e,t){throw new Ch(`[${e}] ${t}`)}const Th=(e="")=>e.split(" ").filter((e=>!!e.trim())),Sh=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)};function Ah(e,t="px"){return e?gh(e)?e:Fp(e)?`${e}${t}`:void 0:""}let Ph; /*! Element Plus Icons Vue v2.0.9 */ var Dh=(e,t)=>{let r=e.__vccOpts||e;for(let[i,o]of t)r[i]=o;return r},Ih={name:"ArrowDown"},Mh={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Lh=[Ya("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 Oh=Dh(Ih,[["render",function(e,t,r,i,o,l){return za(),ja("svg",Mh,Lh)}],["__file","arrow-down.vue"]]),zh={name:"ArrowRight"},Rh={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Nh=[Ya("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1)];var Bh=Dh(zh,[["render",function(e,t,r,i,o,l){return za(),ja("svg",Rh,Nh)}],["__file","arrow-right.vue"]]),jh={name:"ArrowUp"},Fh={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Uh=[Ya("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 Vh=Dh(jh,[["render",function(e,t,r,i,o,l){return za(),ja("svg",Fh,Uh)}],["__file","arrow-up.vue"]]),Wh={name:"CircleCheck"},Hh={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Gh=[Ya("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),Ya("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 Yh=Dh(Wh,[["render",function(e,t,r,i,o,l){return za(),ja("svg",Hh,Gh)}],["__file","circle-check.vue"]]),qh={name:"CircleClose"},Zh={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Xh=[Ya("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),Ya("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 Qh=Dh(qh,[["render",function(e,t,r,i,o,l){return za(),ja("svg",Zh,Xh)}],["__file","circle-close.vue"]]),Kh={name:"Close"},Jh={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},$h=[Ya("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 eg=Dh(Kh,[["render",function(e,t,r,i,o,l){return za(),ja("svg",Jh,$h)}],["__file","close.vue"]]),tg={name:"Delete"},rg={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ig=[Ya("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 og=Dh(tg,[["render",function(e,t,r,i,o,l){return za(),ja("svg",rg,ig)}],["__file","delete.vue"]]),lg={name:"Edit"},ng={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ag=[Ya("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),Ya("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 sg=Dh(lg,[["render",function(e,t,r,i,o,l){return za(),ja("svg",ng,ag)}],["__file","edit.vue"]]),cg={name:"Hide"},dg={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ug=[Ya("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),Ya("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 pg=Dh(cg,[["render",function(e,t,r,i,o,l){return za(),ja("svg",dg,ug)}],["__file","hide.vue"]]),hg={name:"Loading"},gg={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},fg=[Ya("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 mg=Dh(hg,[["render",function(e,t,r,i,o,l){return za(),ja("svg",gg,fg)}],["__file","loading.vue"]]),bg={name:"Minus"},vg={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_g=[Ya("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1)];var yg=Dh(bg,[["render",function(e,t,r,i,o,l){return za(),ja("svg",vg,_g)}],["__file","minus.vue"]]),xg={name:"Plus"},wg={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},kg=[Ya("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 Cg=Dh(xg,[["render",function(e,t,r,i,o,l){return za(),ja("svg",wg,kg)}],["__file","plus.vue"]]),Eg={name:"Setting"},Tg={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Sg=[Ya("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384zm0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256z"},null,-1)];var Ag=Dh(Eg,[["render",function(e,t,r,i,o,l){return za(),ja("svg",Tg,Sg)}],["__file","setting.vue"]]),Pg={name:"View"},Dg={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ig=[Ya("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 Mg=Dh(Pg,[["render",function(e,t,r,i,o,l){return za(),ja("svg",Dg,Ig)}],["__file","view.vue"]]);const Lg=(e,t)=>{if(!fh(e)||fh(r=e)&&r.__epPropKey)return e;var r;const{values:i,required:o,default:l,type:n,validator:a}=e,s={type:n,required:!!o,validator:i||a?r=>{let o=!1,n=[];if(i&&(n=Array.from(i),uh(e,"default")&&n.push(l),o||(o=n.includes(r))),a&&(o||(o=a(r))),!o&&n.length>0){const e=[...new Set(n)].map((e=>JSON.stringify(e))).join(", ");Es(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${e}], got value ${JSON.stringify(r)}.`)}return o}:void 0,__epPropKey:!0};return uh(e,"default")&&(s.default=l),s},Og=e=>Lp(Object.entries(e).map((([e,t])=>[e,Lg(t,e)]))),zg=[String,Object,Function],Rg={Close:eg},Ng={validating:mg,success:Yh,error:Qh},Bg=(e,t)=>{if(e.install=r=>{for(const i of[e,...Object.values(null!=t?t:{})])r.component(i.name,i)},t)for(const[r,i]of Object.entries(t))e[r]=i;return e},jg=e=>(e.install=ch,e),Fg="Tab",Ug="Enter",Vg="Space",Wg="Escape",Hg="Backspace",Gg=["","default","small","large"],Yg={large:40,default:32,small:24},qg=e=>["",...Gg].includes(e);var Zg=(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))(Zg||{});const Xg=e=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e),Qg=()=>Math.floor(1e4*Math.random()),Kg=["class","style"],Jg=/^on[A-Z]/,$g=Symbol("buttonGroupContextKey"),ef=Symbol("collapseContextKey"),tf=Symbol(),rf=Symbol("dialogInjectionKey"),of=Symbol("formContextKey"),lf=Symbol("formItemContextKey"),nf=Symbol("radioGroupKey"),af=Symbol("scrollbarContextKey"),sf=Symbol("popper"),cf=Symbol("popperContent"),df=e=>{const t=ps();return sl((()=>{var r,i;return null!=(i=(null==(r=t.proxy)?void 0:r.$props)[e])?i:void 0}))},uf=Qo();function pf(e,t){const r=ps()?dn(tf,uf):uf;return e?sl((()=>{var i,o;return null!=(o=null==(i=r.value)?void 0:i[e])?o:t})):r}const hf=(e,t)=>{var r;const i=[...new Set([...kh(e),...kh(t)])],o={};for(const l of i)o[l]=null!=(r=t[l])?r:e[l];return o},gf=Lg({type:String,values:Gg,required:!1}),ff=(e,t={})=>{const r=Qo(void 0),i=t.prop?r:df("size"),o=t.global?r:pf("size"),l=t.form?{size:void 0}:dn(of,void 0),n=t.formItem?{size:void 0}:dn(lf,void 0);return sl((()=>i.value||tl(e)||(null==n?void 0:n.size)||(null==l?void 0:l.size)||o.value||""))},mf=e=>{const t=df("disabled"),r=dn(of,void 0);return sl((()=>t.value||tl(e)||(null==r?void 0:r.disabled)||!1))},bf=({from:e,replacement:t,scope:r,version:i,ref:o,type:l="API"},n)=>{ec((()=>tl(n)),(e=>{}),{immediate:!0})},vf=(e,t,r)=>{let i={offsetX:0,offsetY:0};const o=t=>{const r=t.clientX,o=t.clientY,{offsetX:l,offsetY:n}=i,a=e.value.getBoundingClientRect(),s=a.left,c=a.top,d=a.width,u=a.height,p=document.documentElement.clientWidth,h=document.documentElement.clientHeight,g=-s+l,f=-c+n,m=p-s-d+l,b=h-c-u+n,v=t=>{const a=Math.min(Math.max(l+t.clientX-r,g),m),s=Math.min(Math.max(n+t.clientY-o,f),b);i={offsetX:a,offsetY:s},e.value.style.transform=`translate(${Ah(a)}, ${Ah(s)})`},_=()=>{document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",_)};document.addEventListener("mousemove",v),document.addEventListener("mouseup",_)},l=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",o)};Pn((()=>{Js((()=>{r.value?t.value&&e.value&&t.value.addEventListener("mousedown",o):l()}))})),Mn((()=>{l()}))},_f=(e,t,r,i,o)=>{let l=`${e}-${t}`;return r&&(l+=`-${r}`),i&&(l+=`__${i}`),o&&(l+=`--${o}`),l},yf=e=>{const t=pf("namespace","el");return{namespace:t,b:(r="")=>_f(t.value,e,r,"",""),e:r=>r?_f(t.value,e,"",r,""):"",m:r=>r?_f(t.value,e,"","",r):"",be:(r,i)=>r&&i?_f(t.value,e,r,i,""):"",em:(r,i)=>r&&i?_f(t.value,e,"",r,i):"",bm:(r,i)=>r&&i?_f(t.value,e,r,"",i):"",bem:(r,i,o)=>r&&i&&o?_f(t.value,e,r,i,o):"",is:(e,...t)=>{const r=!(t.length>=1)||t[0];return e&&r?`is-${e}`:""},cssVar:e=>{const r={};for(const i in e)e[i]&&(r[`--${t.value}-${i}`]=e[i]);return r},cssVarName:e=>`--${t.value}-${e}`,cssVarBlock:r=>{const i={};for(const o in r)r[o]&&(i[`--${t.value}-${e}-${o}`]=r[o]);return i},cssVarBlockName:r=>`--${t.value}-${e}-${r}`}},xf={prefix:Math.floor(1e4*Math.random()),current:0},wf=Symbol("elIdInjection"),kf=e=>{const t=dn(wf,xf),r=pf("namespace","el");return sl((()=>tl(e)||`${r.value}-id-${t.prefix}-${t.current++}`))},Cf=()=>({form:dn(of,void 0),formItem:dn(lf,void 0)}),Ef=(e,{formItemContext:t,disableIdGeneration:r,disableIdManagement:i})=>{r||(r=Qo(!1)),i||(i=Qo(!1));const o=Qo();let l;const n=sl((()=>{var r;return!!(!e.label&&t&&t.inputIds&&(null==(r=t.inputIds)?void 0:r.length)<=1)}));return Pn((()=>{l=ec([nl(e,"id"),r],(([e,r])=>{const l=null!=e?e:r?void 0:kf().value;l!==o.value&&((null==t?void 0:t.removeInputId)&&(o.value&&t.removeInputId(o.value),(null==i?void 0:i.value)||r||!l||t.addInputId(l)),o.value=l)}),{immediate:!0})})),Ln((()=>{l&&l(),(null==t?void 0:t.removeInputId)&&o.value&&t.removeInputId(o.value)})),{isLabeledByFormItem:n,inputId:o}};var Tf={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 Sf=e=>(t,r)=>Af(t,r,tl(e)),Af=(e,t,r)=>$u(r,e,e).replace(/\{(\w+)\}/g,((e,r)=>{var i;return`${null!=(i=null==t?void 0:t[r])?i:`{${r}}`}`})),Pf=()=>{const e=pf("locale");return(e=>({lang:sl((()=>tl(e).name)),locale:Xo(e)?e:Qo(e),t:Sf(e)}))(sl((()=>e.value||Tf)))},Df=e=>{Xo(e)||Eh("[useLockscreen]","You need to pass a ref param to this function");const t=yf("popup"),r=sl((()=>t.bm("parent","hidden")));if(!Bp||Sh(document.body,r.value))return;let i=0,o=!1,l="0";const n=()=>{var e,t;e=document.body,t=r.value,e&&t.trim()&&e.classList.remove(...Th(t)),o&&(document.body.style.width=l)};ec(e,(e=>{if(!e)return void n();o=!Sh(document.body,r.value),o&&(l=document.body.style.width),i=(e=>{var t;if(!Bp)return 0;if(void 0!==Ph)return Ph;const r=document.createElement("div");r.className=`${e}-scrollbar__wrap`,r.style.visibility="hidden",r.style.width="100px",r.style.position="absolute",r.style.top="-9999px",document.body.appendChild(r);const i=r.offsetWidth;r.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",r.appendChild(o);const l=o.offsetWidth;return null==(t=r.parentNode)||t.removeChild(r),Ph=i-l,Ph})(t.namespace.value);const a=document.documentElement.clientHeight{var r;if(!Bp||!e||!t)return"";let i=yh(t);"float"===i&&(i="cssFloat");try{const t=e.style[i];if(t)return t;const o=null==(r=document.defaultView)?void 0:r.getComputedStyle(e,"");return o?o[i]:""}catch(o){return e.style[i]}})(document.body,"overflowY");var c,d;i>0&&(a||"scroll"===s)&&o&&(document.body.style.width=`calc(100% - ${i}px)`),c=document.body,d=r.value,c&&d.trim()&&c.classList.add(...Th(d))})),Di((()=>n()))},If=Lg({type:Boolean,default:null}),Mf=Lg({type:Function}),Lf=e=>{if(!e)return{onClick:ch,onMousedown:ch,onMouseup:ch};let t=!1,r=!1;return{onClick:i=>{t&&r&&e(i),t=r=!1},onMousedown:e=>{t=e.target===e.currentTarget},onMouseup:e=>{r=e.target===e.currentTarget}}};let Of=[];const zf=e=>{const t=e;t.key===Wg&&Of.forEach((e=>e(t)))};let Rf;const Nf=`el-popper-container-${Qg()}`,Bf=`#${Nf}`,jf=()=>{An((()=>{Bp&&(Rf&&document.body.querySelector(Bf)||(Rf=(()=>{const e=document.createElement("div");return e.id=Nf,document.body.appendChild(e),e})()))}))},Ff=Og({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),Uf=({showAfter:e,hideAfter:t,open:r,close:i})=>{const{registerTimeout:o}=function(){let e;const t=()=>window.clearTimeout(e);return Wp((()=>t())),{registerTimeout:(r,i)=>{t(),e=window.setTimeout(r,i)},cancelTimeout:t}}();return{onOpen:t=>{o((()=>{r(t)}),tl(e))},onClose:e=>{o((()=>{i(e)}),tl(t))}}},Vf=Symbol("elForwardRef"),Wf=Qo(0),Hf=()=>{const e=pf("zIndex",2e3),t=sl((()=>e.value+Wf.value));return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(Wf.value++,t.value)}};var Gf=(e,t)=>{const r=e.__vccOpts||e;for(const[i,o]of t)r[i]=o;return r};const Yf=Og({size:{type:[Number,String]},color:{type:String}});const qf=Bg(Gf(_n(c(s({},{name:"ElIcon",inheritAttrs:!1}),{props:Yf,setup(e){const t=e,r=yf("icon"),i=sl((()=>{const{size:e,color:r}=t;return e||r?{fontSize:xh(e)?void 0:Ah(e),"--color":r}:{}}));return(e,t)=>(za(),ja("i",es({class:tl(r).b(),style:tl(i)},e.$attrs),[os(e.$slots,"default")],16))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]));let Zf;const Xf=["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 Qf(e,t=1,r){var i;Zf||(Zf=document.createElement("textarea"),document.body.appendChild(Zf));const{paddingSize:o,borderSize:l,boxSizing:n,contextStyle:a}=function(e){const t=window.getComputedStyle(e),r=t.getPropertyValue("box-sizing"),i=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:Xf.map((e=>`${e}:${t.getPropertyValue(e)}`)).join(";"),paddingSize:i,borderSize:o,boxSizing:r}}(e);Zf.setAttribute("style",`${a};\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`),Zf.value=e.value||e.placeholder||"";let s=Zf.scrollHeight;const c={};"border-box"===n?s+=l:"content-box"===n&&(s-=o),Zf.value="";const d=Zf.scrollHeight-o;if(Fp(t)){let e=d*t;"border-box"===n&&(e=e+o+l),s=Math.max(e,s),c.minHeight=`${e}px`}if(Fp(r)){let e=d*r;"border-box"===n&&(e=e+o+l),s=Math.min(e,s)}return c.height=`${s}px`,null==(i=Zf.parentNode)||i.removeChild(Zf),Zf=void 0,c}const Kf=Og({id:{type:String,default:void 0},size:gf,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:zg},prefixIcon:{type:zg},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:()=>({})}}),Jf={"update:modelValue":e=>gh(e),input:e=>gh(e),change:e=>gh(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"],em=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder"],tm=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder"];const rm=Bg(Gf(_n(c(s({},{name:"ElInput",inheritAttrs:!1}),{props:Kf,emits:Jf,setup(e,{expose:t,emit:r}){const i=e,o={suffix:"append",prefix:"prepend"},l=ps(),n=nc().attrs,a=lc(),c=sl((()=>{const e={};return"combobox"===i.containerRole&&(e["aria-haspopup"]=n["aria-haspopup"],e["aria-owns"]=n["aria-owns"],e["aria-expanded"]=n["aria-expanded"]),e})),d=((e={})=>{const{excludeListeners:t=!1,excludeKeys:r}=e,i=sl((()=>((null==r?void 0:r.value)||[]).concat(Kg))),o=ps();return sl(o?()=>{var e;return Lp(Object.entries(null==(e=o.proxy)?void 0:e.$attrs).filter((([e])=>!(i.value.includes(e)||t&&Jg.test(e)))))}:()=>({}))})({excludeKeys:sl((()=>Object.keys(c.value)))}),{form:u,formItem:p}=Cf(),{inputId:h}=Ef(i,{formItemContext:p}),g=ff(),f=mf(),m=yf("input"),b=yf("textarea"),v=Ko(),_=Ko(),y=Qo(!1),x=Qo(!1),w=Qo(!1),k=Qo(!1),C=Qo(),E=Ko(i.inputStyle),T=sl((()=>v.value||_.value)),S=sl((()=>{var e;return null!=(e=null==u?void 0:u.statusIcon)&&e})),A=sl((()=>(null==p?void 0:p.validateState)||"")),P=sl((()=>A.value&&Ng[A.value])),D=sl((()=>k.value?Mg:pg)),I=sl((()=>[n.style,i.inputStyle])),M=sl((()=>[i.inputStyle,E.value,{resize:i.resize}])),L=sl((()=>zp(i.modelValue)?"":String(i.modelValue))),O=sl((()=>i.clearable&&!f.value&&!i.readonly&&!!L.value&&(y.value||x.value))),z=sl((()=>i.showPassword&&!f.value&&!i.readonly&&!!L.value&&(!!L.value||y.value))),R=sl((()=>i.showWordLimit&&!!d.value.maxlength&&("text"===i.type||"textarea"===i.type)&&!f.value&&!i.readonly&&!i.showPassword)),N=sl((()=>Array.from(L.value).length)),B=sl((()=>!!R.value&&N.value>Number(d.value.maxlength))),j=sl((()=>!!a.suffix||!!i.suffixIcon||O.value||i.showPassword||R.value||!!A.value&&S.value)),[F,U]=function(e){const t=Qo();return[function(){if(null==e.value)return;const{selectionStart:r,selectionEnd:i,value:o}=e.value;if(null==r||null==i)return;const l=o.slice(0,Math.max(0,r)),n=o.slice(Math.max(0,i));t.value={selectionStart:r,selectionEnd:i,value:o,beforeTxt:l,afterTxt:n}},function(){if(null==e.value||null==t.value)return;const{value:r}=e.value,{beforeTxt:i,afterTxt:o,selectionStart:l}=t.value;if(null==i||null==o||null==l)return;let n=r.length;if(r.endsWith(o))n=r.length-o.length;else if(r.startsWith(i))n=i.length;else{const e=i[l-1],t=r.indexOf(e,l-1);-1!==t&&(n=t+1)}e.value.setSelectionRange(n,n)}]}(v);rh(_,(e=>{if(!R.value||"both"!==i.resize)return;const t=e[0],{width:r}=t.contentRect;C.value={right:`calc(100% - ${r+15+6}px)`}}));const V=()=>{const{type:e,autosize:t}=i;if(Bp&&"textarea"===e)if(t){const e=fh(t)?t.minRows:void 0,r=fh(t)?t.maxRows:void 0;E.value=s({},Qf(_.value,e,r))}else E.value={minHeight:Qf(_.value).minHeight}},W=()=>{const e=T.value;e&&e.value!==L.value&&(e.value=L.value)},H=e=>{const{el:t}=l.vnode;if(!t)return;const r=Array.from(t.querySelectorAll(`.${m.e(e)}`)).find((e=>e.parentNode===t));if(!r)return;const i=o[e];a[i]?r.style.transform=`translateX(${"suffix"===e?"-":""}${t.querySelector(`.${m.be("group",i)}`).offsetWidth}px)`:r.removeAttribute("style")},G=()=>{H("prefix"),H("suffix")},Y=async e=>{F();let{value:t}=e.target;i.formatter&&(t=i.parser?i.parser(t):t,t=i.formatter(t)),w.value||(t!==L.value?(r("update:modelValue",t),r("input",t),await Hs(),W(),U()):W())},q=e=>{r("change",e.target.value)},Z=e=>{r("compositionstart",e),w.value=!0},X=e=>{var t;r("compositionupdate",e);const i=null==(t=e.target)?void 0:t.value,o=i[i.length-1]||"";w.value=!Xg(o)},Q=e=>{r("compositionend",e),w.value&&(w.value=!1,Y(e))},K=()=>{k.value=!k.value,J()},J=async()=>{var e;await Hs(),null==(e=T.value)||e.focus()},$=e=>{y.value=!0,r("focus",e)},ee=e=>{var t;y.value=!1,r("blur",e),i.validateEvent&&(null==(t=null==p?void 0:p.validate)||t.call(p,"blur").catch((e=>{})))},te=e=>{x.value=!1,r("mouseleave",e)},re=e=>{x.value=!0,r("mouseenter",e)},ie=e=>{r("keydown",e)},oe=()=>{r("update:modelValue",""),r("change",""),r("clear"),r("input","")};return ec((()=>i.modelValue),(()=>{var e;Hs((()=>V())),i.validateEvent&&(null==(e=null==p?void 0:p.validate)||e.call(p,"change").catch((e=>{})))})),ec(L,(()=>W())),ec((()=>i.type),(async()=>{await Hs(),W(),V(),G()})),Pn((async()=>{!i.formatter&&i.parser,W(),G(),await Hs(),V()})),In((async()=>{await Hs(),G()})),t({input:v,textarea:_,ref:T,textareaStyle:M,autosize:nl(i,"autosize"),focus:J,blur:()=>{var e;return null==(e=T.value)?void 0:e.blur()},select:()=>{var e;null==(e=T.value)||e.select()},clear:oe,resizeTextarea:V}),(e,t)=>sa((za(),ja("div",es(tl(c),{class:["textarea"===e.type?tl(b).b():tl(m).b(),tl(m).m(tl(g)),tl(m).is("disabled",tl(f)),tl(m).is("exceed",tl(B)),{[tl(m).b("group")]:e.$slots.prepend||e.$slots.append,[tl(m).bm("group","append")]:e.$slots.append,[tl(m).bm("group","prepend")]:e.$slots.prepend,[tl(m).m("prefix")]:e.$slots.prefix||e.prefixIcon,[tl(m).m("suffix")]:e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword,[tl(m).bm("suffix","password-clear")]:tl(O)&&tl(z)},e.$attrs.class],style:tl(I),role:e.containerRole,onMouseenter:re,onMouseleave:te}),[Qa(" input "),"textarea"!==e.type?(za(),ja(Pa,{key:0},[Qa(" prepend slot "),e.$slots.prepend?(za(),ja("div",{key:0,class:gl(tl(m).be("group","prepend"))},[os(e.$slots,"prepend")],2)):Qa("v-if",!0),Ya("div",{class:gl([tl(m).e("wrapper"),tl(m).is("focus",y.value)])},[Qa(" prefix slot "),e.$slots.prefix||e.prefixIcon?(za(),ja("span",{key:0,class:gl(tl(m).e("prefix"))},[Ya("span",{class:gl(tl(m).e("prefix-inner"))},[os(e.$slots,"prefix"),e.prefixIcon?(za(),Fa(tl(qf),{key:0,class:gl(tl(m).e("icon"))},{default:on((()=>[(za(),Fa(Ea(e.prefixIcon)))])),_:1},8,["class"])):Qa("v-if",!0)],2)],2)):Qa("v-if",!0),Ya("input",es({id:tl(h),ref_key:"input",ref:v,class:tl(m).e("inner")},tl(d),{type:e.showPassword?k.value?"text":"password":e.type,disabled:tl(f),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:Z,onCompositionupdate:X,onCompositionend:Q,onInput:Y,onFocus:$,onBlur:ee,onChange:q,onKeydown:ie}),null,16,em),Qa(" suffix slot "),tl(j)?(za(),ja("span",{key:1,class:gl(tl(m).e("suffix"))},[Ya("span",{class:gl(tl(m).e("suffix-inner"))},[tl(O)&&tl(z)&&tl(R)?Qa("v-if",!0):(za(),ja(Pa,{key:0},[os(e.$slots,"suffix"),e.suffixIcon?(za(),Fa(tl(qf),{key:0,class:gl(tl(m).e("icon"))},{default:on((()=>[(za(),Fa(Ea(e.suffixIcon)))])),_:1},8,["class"])):Qa("v-if",!0)],64)),tl(O)?(za(),Fa(tl(qf),{key:1,class:gl([tl(m).e("icon"),tl(m).e("clear")]),onMousedown:pd(tl(ch),["prevent"]),onClick:oe},{default:on((()=>[qa(tl(Qh))])),_:1},8,["class","onMousedown"])):Qa("v-if",!0),tl(z)?(za(),Fa(tl(qf),{key:2,class:gl([tl(m).e("icon"),tl(m).e("password")]),onClick:K},{default:on((()=>[(za(),Fa(Ea(tl(D))))])),_:1},8,["class"])):Qa("v-if",!0),tl(R)?(za(),ja("span",{key:3,class:gl(tl(m).e("count"))},[Ya("span",{class:gl(tl(m).e("count-inner"))},fl(tl(N))+" / "+fl(tl(d).maxlength),3)],2)):Qa("v-if",!0),tl(A)&&tl(P)&&tl(S)?(za(),Fa(tl(qf),{key:4,class:gl([tl(m).e("icon"),tl(m).e("validateIcon"),tl(m).is("loading","validating"===tl(A))])},{default:on((()=>[(za(),Fa(Ea(tl(P))))])),_:1},8,["class"])):Qa("v-if",!0)],2)],2)):Qa("v-if",!0)],2),Qa(" append slot "),e.$slots.append?(za(),ja("div",{key:1,class:gl(tl(m).be("group","append"))},[os(e.$slots,"append")],2)):Qa("v-if",!0)],64)):(za(),ja(Pa,{key:1},[Qa(" textarea "),Ya("textarea",es({id:tl(h),ref_key:"textarea",ref:_,class:tl(b).e("inner")},tl(d),{tabindex:e.tabindex,disabled:tl(f),readonly:e.readonly,autocomplete:e.autocomplete,style:tl(M),"aria-label":e.label,placeholder:e.placeholder,onCompositionstart:Z,onCompositionupdate:X,onCompositionend:Q,onInput:Y,onFocus:$,onBlur:ee,onChange:q,onKeydown:ie}),null,16,tm),tl(R)?(za(),ja("span",{key:0,style:dl(C.value),class:gl(tl(m).e("count"))},fl(tl(N))+" / "+fl(tl(d).maxlength),7)):Qa("v-if",!0)],64))],16,$f)),[[fd,"hidden"!==e.type]])}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]])),im={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};var om=Gf(_n({__name:"thumb",props:Og({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),setup(e){const t=e,r=dn(af),i=yf("scrollbar");r||Eh("Thumb","can not inject scrollbar context");const o=Qo(),l=Qo(),n=Qo({}),a=Qo(!1);let s=!1,c=!1,d=Bp?document.onselectstart:null;const u=sl((()=>im[t.vertical?"vertical":"horizontal"])),p=sl((()=>(({move:e,size:t,bar:r})=>({[r.size]:t,transform:`translate${r.axis}(${e}%)`}))({size:t.size,move:t.move,bar:u.value}))),h=sl((()=>o.value[u.value.offset]**2/r.wrapElement[u.value.scrollSize]/t.ratio/l.value[u.value.offset])),g=e=>{var t;if(e.stopPropagation(),e.ctrlKey||[1,2].includes(e.button))return;null==(t=window.getSelection())||t.removeAllRanges(),m(e);const r=e.currentTarget;r&&(n.value[u.value.axis]=r[u.value.offset]-(e[u.value.client]-r.getBoundingClientRect()[u.value.direction]))},f=e=>{if(!l.value||!o.value||!r.wrapElement)return;const t=100*(Math.abs(e.target.getBoundingClientRect()[u.value.direction]-e[u.value.client])-l.value[u.value.offset]/2)*h.value/o.value[u.value.offset];r.wrapElement[u.value.scroll]=t*r.wrapElement[u.value.scrollSize]/100},m=e=>{e.stopImmediatePropagation(),s=!0,document.addEventListener("mousemove",b),document.addEventListener("mouseup",v),d=document.onselectstart,document.onselectstart=()=>!1},b=e=>{if(!o.value||!l.value)return;if(!1===s)return;const t=n.value[u.value.axis];if(!t)return;const i=100*(-1*(o.value.getBoundingClientRect()[u.value.direction]-e[u.value.client])-(l.value[u.value.offset]-t))*h.value/o.value[u.value.offset];r.wrapElement[u.value.scroll]=i*r.wrapElement[u.value.scrollSize]/100},v=()=>{s=!1,n.value[u.value.axis]=0,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",v),_(),c&&(a.value=!1)};Mn((()=>{_(),document.removeEventListener("mouseup",v)}));const _=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return qp(nl(r,"scrollbarElement"),"mousemove",(()=>{c=!1,a.value=!!t.size})),qp(nl(r,"scrollbarElement"),"mouseleave",(()=>{c=!0,a.value=s})),(e,t)=>(za(),Fa(qc,{name:tl(i).b("fade"),persisted:""},{default:on((()=>[sa(Ya("div",{ref_key:"instance",ref:o,class:gl([tl(i).e("bar"),tl(i).is(tl(u).key)]),onMousedown:f},[Ya("div",{ref_key:"thumb",ref:l,class:gl(tl(i).e("thumb")),style:dl(tl(p)),onMousedown:g},null,38)],34),[[fd,e.always||a.value]])])),_:1},8,["name"]))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);var lm=Gf(_n({__name:"bar",props:Og({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),setup(e,{expose:t}){const r=e,i=Qo(0),o=Qo(0);return t({handleScroll:e=>{if(e){const t=e.offsetHeight-4,l=e.offsetWidth-4;o.value=100*e.scrollTop/t*r.ratioY,i.value=100*e.scrollLeft/l*r.ratioX}}}),(e,t)=>(za(),ja(Pa,null,[qa(om,{move:i.value,ratio:e.ratioX,size:e.width,always:e.always},null,8,["move","ratio","size","always"]),qa(om,{move:o.value,ratio:e.ratioY,size:e.height,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const nm=Og({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:[String,Object,Array],default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),am={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Fp)};const sm=Bg(Gf(_n(c(s({},{name:"ElScrollbar"}),{props:nm,emits:am,setup(e,{expose:t,emit:r}){const i=e,o=yf("scrollbar");let l,n;const a=Qo(),s=Qo(),c=Qo(),d=Qo("0"),u=Qo("0"),p=Qo(),h=Qo(1),g=Qo(1),f=sl((()=>{const e={};return i.height&&(e.height=Ah(i.height)),i.maxHeight&&(e.maxHeight=Ah(i.maxHeight)),[i.wrapStyle,e]})),m=()=>{var e;s.value&&(null==(e=p.value)||e.handleScroll(s.value),r("scroll",{scrollTop:s.value.scrollTop,scrollLeft:s.value.scrollLeft}))};const b=()=>{if(!s.value)return;const e=s.value.offsetHeight-4,t=s.value.offsetWidth-4,r=e**2/s.value.scrollHeight,o=t**2/s.value.scrollWidth,l=Math.max(r,i.minSize),n=Math.max(o,i.minSize);h.value=r/(e-r)/(l/(e-l)),g.value=o/(t-o)/(n/(t-n)),u.value=l+4i.noresize),(e=>{e?(null==l||l(),null==n||n()):(({stop:l}=rh(c,b)),n=qp("resize",b))}),{immediate:!0}),ec((()=>[i.maxHeight,i.height]),(()=>{i.native||Hs((()=>{var e;b(),s.value&&(null==(e=p.value)||e.handleScroll(s.value))}))})),cn(af,No({scrollbarElement:a,wrapElement:s})),Pn((()=>{i.native||Hs((()=>{b()}))})),In((()=>b())),t({wrap$:s,update:b,scrollTo:function(e,t){fh(e)?s.value.scrollTo(e):Fp(e)&&Fp(t)&&s.value.scrollTo(e,t)},setScrollTop:e=>{Fp(e)&&(s.value.scrollTop=e)},setScrollLeft:e=>{Fp(e)&&(s.value.scrollLeft=e)},handleScroll:m}),(e,t)=>(za(),ja("div",{ref_key:"scrollbar$",ref:a,class:gl(tl(o).b())},[Ya("div",{ref_key:"wrap$",ref:s,class:gl([e.wrapClass,tl(o).e("wrap"),{[tl(o).em("wrap","hidden-default")]:!e.native}]),style:dl(tl(f)),onScroll:m},[(za(),Fa(Ea(e.tag),{ref_key:"resize$",ref:c,class:gl([tl(o).e("view"),e.viewClass]),style:dl(e.viewStyle)},{default:on((()=>[os(e.$slots,"default")])),_:3},8,["class","style"]))],38),e.native?Qa("v-if",!0):(za(),Fa(lm,{key:0,ref_key:"barRef",ref:p,height:u.value,width:d.value,always:e.always,"ratio-x":g.value,"ratio-y":h.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]])),cm=Og({role:{type:String,values:["dialog","grid","listbox","menu","tooltip","tree"],default:"tooltip"}});var dm=Gf(_n(c(s({},{name:"ElPopperRoot",inheritAttrs:!1}),{props:cm,setup(e,{expose:t}){const r=e,i={triggerRef:Qo(),popperInstanceRef:Qo(),contentRef:Qo(),referenceRef:Qo(),role:sl((()=>r.role))};return t(i),cn(sf,i),(e,t)=>os(e.$slots,"default")}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const um=Og({arrowOffset:{type:Number,default:5}});var pm=Gf(_n(c(s({},{name:"ElPopperArrow",inheritAttrs:!1}),{props:um,setup(e,{expose:t}){const r=e,i=yf("popper"),{arrowOffset:o,arrowRef:l}=dn(cf,void 0);return ec((()=>r.arrowOffset),(e=>{o.value=e})),Mn((()=>{l.value=void 0})),t({arrowRef:l}),(e,t)=>(za(),ja("span",{ref_key:"arrowRef",ref:l,class:gl(tl(i).e("arrow")),"data-popper-arrow":""},null,2))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const hm=_n({name:"ElOnlyChild",setup(e,{slots:t,attrs:r}){var i;const o=dn(Vf),l=(n=null!=(i=null==o?void 0:o.setForwardRef)?i:ch,{mounted(e){n(e)},updated(e){n(e)},unmounted(){n(null)}});var n;return()=>{var e;const i=null==(e=t.default)?void 0:e.call(t,r);if(!i)return null;if(i.length>1)return null;const o=gm(i);return o?sa(Za(o,r),[[l]]):null}}});function gm(e){if(!e)return null;const t=e;for(const r of t){if(fh(r))switch(r.type){case Ia:continue;case Da:case"svg":return fm(r);case Pa:return gm(r.children);default:return r}return fm(r)}return null}function fm(e){const t=yf("only-child");return qa("span",{class:t.e("content")},[e])}const mm=Og({virtualRef:{type:Object},virtualTriggering:Boolean,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,onBlur:Function,onContextmenu:Function,id:String,open:Boolean});var bm=Gf(_n(c(s({},{name:"ElPopperTrigger",inheritAttrs:!1}),{props:mm,setup(e,{expose:t}){const r=e,{role:i,triggerRef:o}=dn(sf,void 0);var l;l=o,cn(Vf,{setForwardRef:e=>{l.value=e}});const n=sl((()=>s.value?r.id:void 0)),a=sl((()=>{if(i&&"tooltip"===i.value)return r.open&&r.id?r.id:void 0})),s=sl((()=>{if(i&&"tooltip"!==i.value)return i.value})),c=sl((()=>s.value?`${r.open}`:void 0));let d;return Pn((()=>{ec((()=>r.virtualRef),(e=>{e&&(o.value=Gp(e))}),{immediate:!0}),ec((()=>o.value),((e,t)=>{null==d||d(),d=void 0,wh(e)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach((i=>{var o;const l=r[i];l&&(e.addEventListener(i.slice(2).toLowerCase(),l),null==(o=null==t?void 0:t.removeEventListener)||o.call(t,i.slice(2).toLowerCase(),l))})),d=ec([n,a,s,c],(t=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(((r,i)=>{zp(t[i])?e.removeAttribute(r):e.setAttribute(r,t[i])}))}),{immediate:!0})),wh(t)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((e=>t.removeAttribute(e)))}),{immediate:!0})})),Mn((()=>{null==d||d(),d=void 0})),t({triggerRef:o}),(e,t)=>e.virtualTriggering?Qa("v-if",!0):(za(),Fa(tl(hm),es({key:0},e.$attrs,{"aria-controls":tl(n),"aria-describedby":tl(a),"aria-expanded":tl(c),"aria-haspopup":tl(s)}),{default:on((()=>[os(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"]]),vm="top",_m="bottom",ym="right",xm="left",wm="auto",km=[vm,_m,ym,xm],Cm="start",Em="end",Tm="viewport",Sm="popper",Am=km.reduce((function(e,t){return e.concat([t+"-"+Cm,t+"-"+Em])}),[]),Pm=[].concat(km,[wm]).reduce((function(e,t){return e.concat([t,t+"-"+Cm,t+"-"+Em])}),[]),Dm=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Im(e){return e?(e.nodeName||"").toLowerCase():null}function Mm(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Lm(e){return e instanceof Mm(e).Element||e instanceof Element}function Om(e){return e instanceof Mm(e).HTMLElement||e instanceof HTMLElement}function zm(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Mm(e).ShadowRoot||e instanceof ShadowRoot)}var Rm={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},i=t.attributes[e]||{},o=t.elements[e];!Om(o)||!Im(o)||(Object.assign(o.style,r),Object.keys(i).forEach((function(e){var t=i[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],o=t.attributes[e]||{},l=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});!Om(i)||!Im(i)||(Object.assign(i.style,l),Object.keys(o).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Nm(e){return e.split("-")[0]}var Bm=Math.max,jm=Math.min,Fm=Math.round;function Um(e,t){void 0===t&&(t=!1);var r=e.getBoundingClientRect(),i=1,o=1;if(Om(e)&&t){var l=e.offsetHeight,n=e.offsetWidth;n>0&&(i=Fm(r.width)/n||1),l>0&&(o=Fm(r.height)/l||1)}return{width:r.width/i,height:r.height/o,top:r.top/o,right:r.right/i,bottom:r.bottom/o,left:r.left/i,x:r.left/i,y:r.top/o}}function Vm(e){var t=Um(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function Wm(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&zm(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Hm(e){return Mm(e).getComputedStyle(e)}function Gm(e){return["table","td","th"].indexOf(Im(e))>=0}function Ym(e){return((Lm(e)?e.ownerDocument:e.document)||window.document).documentElement}function qm(e){return"html"===Im(e)?e:e.assignedSlot||e.parentNode||(zm(e)?e.host:null)||Ym(e)}function Zm(e){return Om(e)&&"fixed"!==Hm(e).position?e.offsetParent:null}function Xm(e){for(var t=Mm(e),r=Zm(e);r&&Gm(r)&&"static"===Hm(r).position;)r=Zm(r);return r&&("html"===Im(r)||"body"===Im(r)&&"static"===Hm(r).position)?t:r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Om(e)&&"fixed"===Hm(e).position)return null;var r=qm(e);for(zm(r)&&(r=r.host);Om(r)&&["html","body"].indexOf(Im(r))<0;){var i=Hm(r);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return r;r=r.parentNode}return null}(e)||t}function Qm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Km(e,t,r){return Bm(e,jm(t,r))}function Jm(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function $m(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}var eb={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,i=e.name,o=e.options,l=r.elements.arrow,n=r.modifiersData.popperOffsets,a=Nm(r.placement),s=Qm(a),c=[xm,ym].indexOf(a)>=0?"height":"width";if(l&&n){var d=function(e,t){return Jm("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:$m(e,km))}(o.padding,r),u=Vm(l),p="y"===s?vm:xm,h="y"===s?_m:ym,g=r.rects.reference[c]+r.rects.reference[s]-n[s]-r.rects.popper[c],f=n[s]-r.rects.reference[s],m=Xm(l),b=m?"y"===s?m.clientHeight||0:m.clientWidth||0:0,v=g/2-f/2,_=d[p],y=b-u[c]-d[h],x=b/2-u[c]/2+v,w=Km(_,x,y),k=s;r.modifiersData[i]=((t={})[k]=w,t.centerOffset=w-x,t)}},effect:function(e){var t=e.state,r=e.options.element,i=void 0===r?"[data-popper-arrow]":r;null!=i&&("string"==typeof i&&!(i=t.elements.popper.querySelector(i))||!Wm(t.elements.popper,i)||(t.elements.arrow=i))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function tb(e){return e.split("-")[1]}var rb={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ib(e){var t,r=e.popper,i=e.popperRect,o=e.placement,l=e.variation,n=e.offsets,a=e.position,s=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,p=n.x,h=void 0===p?0:p,g=n.y,f=void 0===g?0:g,m="function"==typeof d?d({x:h,y:f}):{x:h,y:f};h=m.x,f=m.y;var b=n.hasOwnProperty("x"),v=n.hasOwnProperty("y"),_=xm,y=vm,x=window;if(c){var w=Xm(r),k="clientHeight",C="clientWidth";if(w===Mm(r)&&("static"!==Hm(w=Ym(r)).position&&"absolute"===a&&(k="scrollHeight",C="scrollWidth")),w=w,o===vm||(o===xm||o===ym)&&l===Em)y=_m,f-=(u&&w===x&&x.visualViewport?x.visualViewport.height:w[k])-i.height,f*=s?1:-1;if(o===xm||(o===vm||o===_m)&&l===Em)_=ym,h-=(u&&w===x&&x.visualViewport?x.visualViewport.width:w[C])-i.width,h*=s?1:-1}var E,T=Object.assign({position:a},c&&rb),S=!0===d?function(e){var t=e.x,r=e.y,i=window.devicePixelRatio||1;return{x:Fm(t*i)/i||0,y:Fm(r*i)/i||0}}({x:h,y:f}):{x:h,y:f};return h=S.x,f=S.y,s?Object.assign({},T,((E={})[y]=v?"0":"",E[_]=b?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+f+"px)":"translate3d("+h+"px, "+f+"px, 0)",E)):Object.assign({},T,((t={})[y]=v?f+"px":"",t[_]=b?h+"px":"",t.transform="",t))}var ob={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,i=r.gpuAcceleration,o=void 0===i||i,l=r.adaptive,n=void 0===l||l,a=r.roundOffsets,s=void 0===a||a,c={placement:Nm(t.placement),variation:tb(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,ib(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:n,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ib(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},lb={passive:!0};var nb={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,i=e.options,o=i.scroll,l=void 0===o||o,n=i.resize,a=void 0===n||n,s=Mm(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&c.forEach((function(e){e.addEventListener("scroll",r.update,lb)})),a&&s.addEventListener("resize",r.update,lb),function(){l&&c.forEach((function(e){e.removeEventListener("scroll",r.update,lb)})),a&&s.removeEventListener("resize",r.update,lb)}},data:{}},ab={left:"right",right:"left",bottom:"top",top:"bottom"};function sb(e){return e.replace(/left|right|bottom|top/g,(function(e){return ab[e]}))}var cb={start:"end",end:"start"};function db(e){return e.replace(/start|end/g,(function(e){return cb[e]}))}function ub(e){var t=Mm(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function pb(e){return Um(Ym(e)).left+ub(e).scrollLeft}function hb(e){var t=Hm(e),r=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+i)}function gb(e){return["html","body","#document"].indexOf(Im(e))>=0?e.ownerDocument.body:Om(e)&&hb(e)?e:gb(qm(e))}function fb(e,t){var r;void 0===t&&(t=[]);var i=gb(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),l=Mm(i),n=o?[l].concat(l.visualViewport||[],hb(i)?i:[]):i,a=t.concat(n);return o?a:a.concat(fb(qm(n)))}function mb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bb(e,t){return t===Tm?mb(function(e){var t=Mm(e),r=Ym(e),i=t.visualViewport,o=r.clientWidth,l=r.clientHeight,n=0,a=0;return i&&(o=i.width,l=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(n=i.offsetLeft,a=i.offsetTop)),{width:o,height:l,x:n+pb(e),y:a}}(e)):Lm(t)?function(e){var t=Um(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):mb(function(e){var t,r=Ym(e),i=ub(e),o=null==(t=e.ownerDocument)?void 0:t.body,l=Bm(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),n=Bm(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+pb(e),s=-i.scrollTop;return"rtl"===Hm(o||r).direction&&(a+=Bm(r.clientWidth,o?o.clientWidth:0)-l),{width:l,height:n,x:a,y:s}}(Ym(e)))}function vb(e,t,r){var i="clippingParents"===t?function(e){var t=fb(qm(e)),r=["absolute","fixed"].indexOf(Hm(e).position)>=0&&Om(e)?Xm(e):e;return Lm(r)?t.filter((function(e){return Lm(e)&&Wm(e,r)&&"body"!==Im(e)})):[]}(e):[].concat(t),o=[].concat(i,[r]),l=o[0],n=o.reduce((function(t,r){var i=bb(e,r);return t.top=Bm(i.top,t.top),t.right=jm(i.right,t.right),t.bottom=jm(i.bottom,t.bottom),t.left=Bm(i.left,t.left),t}),bb(e,l));return n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}function _b(e){var t,r=e.reference,i=e.element,o=e.placement,l=o?Nm(o):null,n=o?tb(o):null,a=r.x+r.width/2-i.width/2,s=r.y+r.height/2-i.height/2;switch(l){case vm:t={x:a,y:r.y-i.height};break;case _m:t={x:a,y:r.y+r.height};break;case ym:t={x:r.x+r.width,y:s};break;case xm:t={x:r.x-i.width,y:s};break;default:t={x:r.x,y:r.y}}var c=l?Qm(l):null;if(null!=c){var d="y"===c?"height":"width";switch(n){case Cm:t[c]=t[c]-(r[d]/2-i[d]/2);break;case Em:t[c]=t[c]+(r[d]/2-i[d]/2)}}return t}function yb(e,t){void 0===t&&(t={});var r=t,i=r.placement,o=void 0===i?e.placement:i,l=r.boundary,n=void 0===l?"clippingParents":l,a=r.rootBoundary,s=void 0===a?Tm:a,c=r.elementContext,d=void 0===c?Sm:c,u=r.altBoundary,p=void 0!==u&&u,h=r.padding,g=void 0===h?0:h,f=Jm("number"!=typeof g?g:$m(g,km)),m=d===Sm?"reference":Sm,b=e.rects.popper,v=e.elements[p?m:d],_=vb(Lm(v)?v:v.contextElement||Ym(e.elements.popper),n,s),y=Um(e.elements.reference),x=_b({reference:y,element:b,strategy:"absolute",placement:o}),w=mb(Object.assign({},b,x)),k=d===Sm?w:y,C={top:_.top-k.top+f.top,bottom:k.bottom-_.bottom+f.bottom,left:_.left-k.left+f.left,right:k.right-_.right+f.right},E=e.modifiersData.offset;if(d===Sm&&E){var T=E[o];Object.keys(C).forEach((function(e){var t=[ym,_m].indexOf(e)>=0?1:-1,r=[vm,_m].indexOf(e)>=0?"y":"x";C[e]+=T[r]*t}))}return C}var xb={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=r.mainAxis,l=void 0===o||o,n=r.altAxis,a=void 0===n||n,s=r.fallbackPlacements,c=r.padding,d=r.boundary,u=r.rootBoundary,p=r.altBoundary,h=r.flipVariations,g=void 0===h||h,f=r.allowedAutoPlacements,m=t.options.placement,b=Nm(m),v=s||(b===m||!g?[sb(m)]:function(e){if(Nm(e)===wm)return[];var t=sb(e);return[db(e),t,db(t)]}(m)),_=[m].concat(v).reduce((function(e,r){return e.concat(Nm(r)===wm?function(e,t){void 0===t&&(t={});var r=t,i=r.placement,o=r.boundary,l=r.rootBoundary,n=r.padding,a=r.flipVariations,s=r.allowedAutoPlacements,c=void 0===s?Pm:s,d=tb(i),u=d?a?Am:Am.filter((function(e){return tb(e)===d})):km,p=u.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=u);var h=p.reduce((function(t,r){return t[r]=yb(e,{placement:r,boundary:o,rootBoundary:l,padding:n})[Nm(r)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:r,boundary:d,rootBoundary:u,padding:c,flipVariations:g,allowedAutoPlacements:f}):r)}),[]),y=t.rects.reference,x=t.rects.popper,w=new Map,k=!0,C=_[0],E=0;E<_.length;E++){var T=_[E],S=Nm(T),A=tb(T)===Cm,P=[vm,_m].indexOf(S)>=0,D=P?"width":"height",I=yb(t,{placement:T,boundary:d,rootBoundary:u,altBoundary:p,padding:c}),M=P?A?ym:xm:A?_m:vm;y[D]>x[D]&&(M=sb(M));var L=sb(M),O=[];if(l&&O.push(I[S]<=0),a&&O.push(I[M]<=0,I[L]<=0),O.every((function(e){return e}))){C=T,k=!1;break}w.set(T,O)}if(k)for(var z=function(e){var t=_.find((function(t){var r=w.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},R=g?3:1;R>0;R--){if("break"===z(R))break}t.placement!==C&&(t.modifiersData[i]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function wb(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function kb(e){return[vm,ym,_m,xm].some((function(t){return e[t]>=0}))}var Cb={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,i=t.rects.reference,o=t.rects.popper,l=t.modifiersData.preventOverflow,n=yb(t,{elementContext:"reference"}),a=yb(t,{altBoundary:!0}),s=wb(n,i),c=wb(a,o,l),d=kb(s),u=kb(c);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}};var Eb={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,i=e.name,o=r.offset,l=void 0===o?[0,0]:o,n=Pm.reduce((function(e,r){return e[r]=function(e,t,r){var i=Nm(e),o=[xm,vm].indexOf(i)>=0?-1:1,l="function"==typeof r?r(Object.assign({},t,{placement:e})):r,n=l[0],a=l[1];return n=n||0,a=(a||0)*o,[xm,ym].indexOf(i)>=0?{x:a,y:n}:{x:n,y:a}}(r,t.rects,l),e}),{}),a=n[t.placement],s=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=n}};var Tb={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=_b({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var Sb={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,i=e.name,o=r.mainAxis,l=void 0===o||o,n=r.altAxis,a=void 0!==n&&n,s=r.boundary,c=r.rootBoundary,d=r.altBoundary,u=r.padding,p=r.tether,h=void 0===p||p,g=r.tetherOffset,f=void 0===g?0:g,m=yb(t,{boundary:s,rootBoundary:c,padding:u,altBoundary:d}),b=Nm(t.placement),v=tb(t.placement),_=!v,y=Qm(b),x=function(e){return"x"===e?"y":"x"}(y),w=t.modifiersData.popperOffsets,k=t.rects.reference,C=t.rects.popper,E="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,T="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(w){if(l){var P,D="y"===y?vm:xm,I="y"===y?_m:ym,M="y"===y?"height":"width",L=w[y],O=L+m[D],z=L-m[I],R=h?-C[M]/2:0,N=v===Cm?k[M]:C[M],B=v===Cm?-C[M]:-k[M],j=t.elements.arrow,F=h&&j?Vm(j):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=U[D],W=U[I],H=Km(0,k[M],F[M]),G=_?k[M]/2-R-H-V-T.mainAxis:N-H-V-T.mainAxis,Y=_?-k[M]/2+R+H+W+T.mainAxis:B+H+W+T.mainAxis,q=t.elements.arrow&&Xm(t.elements.arrow),Z=q?"y"===y?q.clientTop||0:q.clientLeft||0:0,X=null!=(P=null==S?void 0:S[y])?P:0,Q=L+Y-X,K=Km(h?jm(O,L+G-X-Z):O,L,h?Bm(z,Q):z);w[y]=K,A[y]=K-L}if(a){var J,$="x"===y?vm:xm,ee="x"===y?_m:ym,te=w[x],re="y"===x?"height":"width",ie=te+m[$],oe=te-m[ee],le=-1!==[vm,xm].indexOf(b),ne=null!=(J=null==S?void 0:S[x])?J:0,ae=le?ie:te-k[re]-C[re]-ne+T.altAxis,se=le?te+k[re]+C[re]-ne-T.altAxis:oe,ce=h&&le?function(e,t,r){var i=Km(e,t,r);return i>r?r:i}(ae,te,se):Km(h?ae:ie,te,h?se:oe);w[x]=ce,A[x]=ce-te}t.modifiersData[i]=A}},requiresIfExists:["offset"]};function Ab(e,t,r){void 0===r&&(r=!1);var i=Om(t),o=Om(t)&&function(e){var t=e.getBoundingClientRect(),r=Fm(t.width)/e.offsetWidth||1,i=Fm(t.height)/e.offsetHeight||1;return 1!==r||1!==i}(t),l=Ym(t),n=Um(e,o),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(i||!i&&!r)&&(("body"!==Im(t)||hb(l))&&(a=function(e){return e!==Mm(e)&&Om(e)?function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):ub(e)}(t)),Om(t)?((s=Um(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):l&&(s.x=pb(l))),{x:n.left+a.scrollLeft-s.x,y:n.top+a.scrollTop-s.y,width:n.width,height:n.height}}function Pb(e){var t=new Map,r=new Set,i=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var i=t.get(e);i&&o(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||o(e)})),i}function Db(e){var t;return function(){return t||(t=new Promise((function(r){Promise.resolve().then((function(){t=void 0,r(e())}))}))),t}}var Ib={placement:"bottom",modifiers:[],strategy:"absolute"};function Mb(){for(var e=arguments.length,t=new Array(e),r=0;r{const t=[],r=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(;r.nextNode();)t.push(r.currentNode);return t},Rb=(e,t)=>{for(const r of e)if(!Nb(r,t))return r},Nb=(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},Bb=(e,t)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(e=>e instanceof HTMLInputElement&&"select"in e)(e)&&t&&e.select()}};function jb(e,t){const r=[...e],i=e.indexOf(t);return-1!==i&&r.splice(i,1),r}const Fb=(()=>{let e=[];return{push:t=>{const r=e[0];r&&t!==r&&r.pause(),e=jb(e,t),e.unshift(t)},remove:t=>{var r,i;e=jb(e,t),null==(i=null==(r=e[0])?void 0:r.resume)||i.call(r)}}})(),Ub={cancelable:!0,bubbles:!1},Vb=Symbol("elFocusTrap");var Wb=Gf(_n({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 r=Qo();let i,o;var l;l=r=>{e.trapped&&!n.paused&&t("release-requested",r)},Pn((()=>{0===Of.length&&document.addEventListener("keydown",zf),Bp&&Of.push(l)})),Mn((()=>{Of=Of.filter((e=>e!==l)),0===Of.length&&Bp&&document.removeEventListener("keydown",zf)}));const n={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},a=r=>{if(!e.loop&&!e.trapped)return;if(n.paused)return;const{key:i,altKey:o,ctrlKey:l,metaKey:a,currentTarget:s,shiftKey:c}=r,{loop:d}=e,u=i===Fg&&!o&&!l&&!a,p=document.activeElement;if(u&&p){const e=s,[i,o]=(e=>{const t=zb(e);return[Rb(t,e),Rb(t.reverse(),e)]})(e);i&&o?c||p!==o?c&&[i,e].includes(p)&&(r.preventDefault(),d&&Bb(o,!0),t("focusout-prevented")):(r.preventDefault(),d&&Bb(i,!0),t("focusout-prevented")):p===e&&(r.preventDefault(),t("focusout-prevented"))}};cn(Vb,{focusTrapRef:r,onKeydown:a}),ec((()=>e.focusTrapEl),(e=>{e&&(r.value=e)}),{immediate:!0}),ec([r],(([e],[t])=>{e&&(e.addEventListener("keydown",a),e.addEventListener("focusin",d),e.addEventListener("focusout",u)),t&&(t.removeEventListener("keydown",a),t.removeEventListener("focusin",d),t.removeEventListener("focusout",u))}));const s=e=>{t("focusAfterTrapped",e)},c=e=>t("focusAfterReleased",e),d=i=>{const l=tl(r);if(!l)return;const a=i.target,s=a&&l.contains(a);s&&t("focusin",i),n.paused||e.trapped&&(s?o=a:Bb(o,!0))},u=i=>{const l=tl(r);if(!n.paused&&l)if(e.trapped){const t=i.relatedTarget;zp(t)||l.contains(t)||setTimeout((()=>{!n.paused&&e.trapped&&Bb(o,!0)}),0)}else{const e=i.target;e&&l.contains(e)||t("focusout",i)}};async function p(){await Hs();const t=tl(r);if(t){Fb.push(n);const r=document.activeElement;i=r;if(!t.contains(r)){const i=new Event("focus-trap.focus-after-trapped",Ub);t.addEventListener("focus-trap.focus-after-trapped",s),t.dispatchEvent(i),i.defaultPrevented||Hs((()=>{let i=e.focusStartEl;gh(i)||(Bb(i),document.activeElement!==i&&(i="first")),"first"===i&&((e,t=!1)=>{const r=document.activeElement;for(const i of e)if(Bb(i,t),document.activeElement!==r)return})(zb(t),!0),document.activeElement!==r&&"container"!==i||Bb(t)}))}}}function h(){const e=tl(r);if(e){e.removeEventListener("focus-trap.focus-after-trapped",s);const t=new Event("focus-trap.focus-after-released",Ub);e.addEventListener("focus-trap.focus-after-released",c),e.dispatchEvent(t),t.defaultPrevented||Bb(null!=i?i:document.body,!0),e.removeEventListener("focus-trap.focus-after-released",s),Fb.remove(n)}}return Pn((()=>{e.trapped&&p(),ec((()=>e.trapped),(e=>{e?p():h()}))})),Mn((()=>{e.trapped&&h()})),{onKeydown:a}}}),[["render",function(e,t,r,i,o,l){return os(e.$slots,"default",{handleKeydown:e.onKeydown})}],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const Hb=Og({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Array,default:()=>[]},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Pm,default:"bottom"},popperOptions:{type:Object,default:()=>({})},strategy:{type:String,values:["fixed","absolute"],default:"absolute"}}),Gb=Og(c(s({},Hb),{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})),Yb=(e,t)=>{const{placement:r,strategy:i,popperOptions:o}=e,l=c(s({placement:r,strategy:i},o),{modifiers:qb(e)});return function(e,{arrowEl:t,arrowOffset:r}){e.modifiers.push({name:"arrow",options:{element:t,padding:null!=r?r:5}})}(l,t),function(e,t){t&&(e.modifiers=[...e.modifiers,...null!=t?t:[]])}(l,null==o?void 0:o.modifiers),l};function qb(e){const{offset:t,gpuAcceleration:r,fallbackPlacements:i}=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!=i?i:[]}},{name:"computeStyles",options:{gpuAcceleration:r,adaptive:r}}]}var Zb=Gf(_n(c(s({},{name:"ElPopperContent"}),{props:Gb,emits:["mouseenter","mouseleave","focus","blur","close"],setup(e,{expose:t,emit:r}){const i=e,{popperInstanceRef:o,contentRef:l,triggerRef:n,role:a}=dn(sf,void 0),d=dn(lf,void 0),{nextZIndex:u}=Hf(),p=yf("popper"),h=Qo(),g=Qo("first"),f=Qo(),m=Qo();cn(cf,{arrowRef:f,arrowOffset:m}),d&&(d.addInputId||d.removeInputId)&&cn(lf,c(s({},d),{addInputId:ch,removeInputId:ch}));const b=Qo(i.zIndex||u()),v=Qo(!1);let _;const y=sl((()=>(e=>{if(Bp)return Gp(e)})(i.referenceEl)||tl(n))),x=sl((()=>[{zIndex:tl(b)},i.popperStyle])),w=sl((()=>[p.b(),p.is("pure",i.pure),p.is(i.effect),i.popperClass])),k=sl((()=>a&&"dialog"===a.value?"false":void 0)),C=(e=!0)=>{var t;null==(t=tl(o))||t.update(),e&&(b.value=i.zIndex||u())},E=()=>{var e,t;const r={name:"eventListeners",enabled:i.visible};null==(t=null==(e=tl(o))?void 0:e.setOptions)||t.call(e,(e=>c(s({},e),{modifiers:[...e.modifiers||[],r]}))),C(!1),i.visible&&i.focusOnShow?v.value=!0:!1===i.visible&&(v.value=!1)},T=()=>{r("focus")},S=()=>{g.value="first",r("blur")},A=e=>{var t;i.visible&&!v.value&&(e.target&&(g.value=e.target),v.value=!0,e.relatedTarget&&(null==(t=e.relatedTarget)||t.focus()))},P=()=>{i.trapping||(v.value=!1)},D=()=>{v.value=!1,r("close")};return Pn((()=>{let e;ec(y,(t=>{var r;null==e||e();const n=tl(o);if(null==(r=null==n?void 0:n.destroy)||r.call(n),t){const r=tl(h);l.value=r,o.value=(({referenceEl:e,popperContentEl:t,arrowEl:r})=>{const o=Yb(i,{arrowEl:r,arrowOffset:tl(m)});return Ob(e,t,o)})({referenceEl:t,popperContentEl:r,arrowEl:tl(f)}),e=ec((()=>t.getBoundingClientRect()),(()=>C()),{immediate:!0})}else o.value=void 0}),{immediate:!0}),ec((()=>i.triggerTargetEl),((e,t)=>{null==_||_(),_=void 0;const r=tl(e||h.value),o=tl(t||h.value);if(wh(r)){const{ariaLabel:e,id:t}=ol(i);_=ec([a,e,k,t],(e=>{["role","aria-label","aria-modal","id"].forEach(((t,i)=>{zp(e[i])?r.removeAttribute(t):r.setAttribute(t,e[i])}))}),{immediate:!0})}wh(o)&&["role","aria-label","aria-modal","id"].forEach((e=>{o.removeAttribute(e)}))}),{immediate:!0}),ec((()=>i.visible),E,{immediate:!0}),ec((()=>Yb(i,{arrowEl:tl(f),arrowOffset:tl(m)})),(e=>{var t;return null==(t=o.value)?void 0:t.setOptions(e)}))})),Mn((()=>{null==_||_(),_=void 0})),t({popperContentRef:h,popperInstanceRef:o,updatePopper:C,contentStyle:x}),(e,t)=>(za(),ja("div",{ref_key:"popperContentRef",ref:h,style:dl(tl(x)),class:gl(tl(w)),tabindex:"-1",onMouseenter:t[0]||(t[0]=t=>e.$emit("mouseenter",t)),onMouseleave:t[1]||(t[1]=t=>e.$emit("mouseleave",t))},[qa(tl(Wb),{trapped:v.value,"trap-on-focus-in":!0,"focus-trap-el":h.value,"focus-start-el":g.value,onFocusAfterTrapped:T,onFocusAfterReleased:S,onFocusin:A,onFocusoutPrevented:P,onReleaseRequested:D},{default:on((()=>[os(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 Xb=Bg(dm),Qb=yf("tooltip"),Kb=Og(c(s(s({},Ff),Gb),{appendTo:{type:[String,Object],default:Bf},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Boolean,default:null},transition:{type:String,default:`${Qb.namespace.value}-fade-in-linear`},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}})),Jb=Og(c(s({},mm),{disabled:Boolean,trigger:{type:[String,Array],default:"hover"},triggerKeys:{type:Array,default:()=>[Ug,Vg]}})),$b=Og({openDelay:{type:Number},visibleArrow:{type:Boolean,default:void 0},hideAfter:{type:Number,default:200},showArrow:{type:Boolean,default:!0}}),ev=Symbol("elTooltip");var tv=Gf(_n({name:"ElTooltipContent",components:{ElPopperContent:Zb},inheritAttrs:!1,props:Kb,setup(e){const t=Qo(null),r=Qo(!1),i=Qo(!1),o=Qo(!1),l=Qo(!1),{controlled:n,id:a,open:s,trigger:c,onClose:d,onOpen:u,onShow:p,onHide:h,onBeforeShow:g,onBeforeHide:f}=dn(ev,void 0),m=sl((()=>e.persistent));Mn((()=>{l.value=!0}));const b=sl((()=>!!tl(m)||tl(s))),v=sl((()=>!e.disabled&&tl(s))),_=sl((()=>{var t;return null!=(t=e.style)?t:{}})),y=sl((()=>!tl(s))),x=()=>{if(tl(n))return!0},w=Rp(x,(()=>{e.enterable&&"hover"===tl(c)&&u()})),k=Rp(x,(()=>{"hover"===tl(c)&&d()}));let C;return ec((()=>tl(s)),(e=>{e||null==C||C()}),{flush:"post"}),{ariaHidden:y,entering:i,leaving:o,id:a,intermediateOpen:r,contentStyle:_,contentRef:t,destroyed:l,shouldRender:b,shouldShow:v,onClose:d,open:s,onAfterShow:()=>{p(),C=function(e,t,r={}){const{window:i=Yp,ignore:o,capture:l=!0,detectIframe:n=!1}=r;if(!i)return;const a=Qo(!0);let s;const c=r=>{i.clearTimeout(s);const l=Gp(e),n=r.composedPath();l&&l!==r.target&&!n.includes(l)&&a.value&&(o&&o.length>0&&o.some((e=>{const t=Gp(e);return t&&(r.target===t||n.includes(t))}))||t(r))},d=[qp(i,"click",c,{passive:!0,capture:l}),qp(i,"pointerdown",(t=>{const r=Gp(e);a.value=!!r&&!t.composedPath().includes(r)}),{passive:!0}),qp(i,"pointerup",(e=>{if(0===e.button){const t=e.composedPath();e.composedPath=()=>t,s=i.setTimeout((()=>c(e)),50)}}),{passive:!0}),n&&qp(i,"blur",(r=>{var i;const o=Gp(e);"IFRAME"!==(null==(i=document.activeElement)?void 0:i.tagName)||(null==o?void 0:o.contains(document.activeElement))||t(r)}))].filter(Boolean);return()=>d.forEach((e=>e()))}(sl((()=>{var e;return null==(e=t.value)?void 0:e.popperContentRef})),(()=>{if(tl(n))return;"hover"!==tl(c)&&d()}))},onBeforeEnter:()=>{var e,r;null==(r=null==(e=t.value)?void 0:e.updatePopper)||r.call(e),null==g||g()},onBeforeLeave:()=>{null==f||f()},onContentEnter:w,onContentLeave:k,onTransitionLeave:()=>{h()},onBlur:()=>{e.virtualTriggering||d()}}}}),[["render",function(e,t,r,i,o,l){const n=ka("el-popper-content");return za(),Fa(wa,{disabled:!e.teleported,to:e.appendTo},[qa(qc,{name:e.transition,onAfterLeave:e.onTransitionLeave,onBeforeEnter:e.onBeforeEnter,onAfterEnter:e.onAfterShow,onBeforeLeave:e.onBeforeLeave},{default:on((()=>[e.shouldRender?sa((za(),Fa(n,es({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:on((()=>[Qa(" Workaround bug #6378 "),e.destroyed?Qa("v-if",!0):os(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"])),[[fd,e.shouldShow]]):Qa("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 rv=(e,t,r)=>i=>{((e,t)=>ph(e)?e.includes(t):e===t)(tl(e),t)&&r(i)};var iv=Gf(_n({name:"ElTooltipTrigger",components:{ElPopperTrigger:bm},props:Jb,setup(e){const t=yf("tooltip"),{controlled:r,id:i,open:o,onOpen:l,onClose:n,onToggle:a}=dn(ev,void 0),s=Qo(null),c=()=>{if(tl(r)||e.disabled)return!0},d=nl(e,"trigger"),u=Rp(c,rv(d,"hover",l)),p=Rp(c,rv(d,"hover",n)),h=Rp(c,rv(d,"click",(e=>{0===e.button&&a(e)}))),g=Rp(c,rv(d,"focus",l));return{onBlur:Rp(c,rv(d,"focus",n)),onContextMenu:Rp(c,rv(d,"contextmenu",(e=>{e.preventDefault(),a(e)}))),onFocus:g,onMouseenter:u,onMouseleave:p,onClick:h,onKeydown:Rp(c,(t=>{const{code:r}=t;e.triggerKeys.includes(r)&&(t.preventDefault(),a(t))})),open:o,id:i,triggerRef:s,ns:t}}}),[["render",function(e,t,r,i,o,l){const n=ka("el-popper-trigger");return za(),Fa(n,{id:e.id,"virtual-ref":e.virtualRef,open:e.open,"virtual-triggering":e.virtualTriggering,class:gl(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:on((()=>[os(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:ov,useModelToggle:lv,useModelToggleEmits:nv}=(e=>{const t=`update:${e}`,r=`onUpdate:${e}`;return{useModelToggle:({indicator:i,toggleReason:o,shouldHideWhenRouteChanges:l,shouldProceed:n,onShow:a,onHide:c})=>{const d=ps(),{emit:u}=d,p=d.props,h=sl((()=>hh(p[r]))),g=sl((()=>null===p[e])),f=e=>{!0!==i.value&&(i.value=!0,o&&(o.value=e),hh(a)&&a(e))},m=e=>{!1!==i.value&&(i.value=!1,o&&(o.value=e),hh(c)&&c(e))},b=e=>{if(!0===p.disabled||hh(n)&&!n())return;const r=h.value&&Bp;r&&u(t,!0),!g.value&&r||f(e)},v=e=>{if(!0===p.disabled||!Bp)return;const r=h.value&&Bp;r&&u(t,!1),!g.value&&r||m(e)},_=e=>{jp(e)&&(p.disabled&&e?h.value&&u(t,!1):i.value!==e&&(e?f():m()))};return ec((()=>p[e]),_),l&&void 0!==d.appContext.config.globalProperties.$route&&ec((()=>s({},d.proxy.$route)),(()=>{l.value&&i.value&&v()})),Pn((()=>{_(p[e])})),{hide:v,show:b,toggle:()=>{i.value?v():b()},hasUpdateHandler:h}},useModelToggleProps:{[e]:If,[r]:Mf},useModelToggleEmits:[t]}})("visible"),av=_n({name:"ElTooltip",components:{ElPopper:Xb,ElPopperArrow:pm,ElTooltipContent:tv,ElTooltipTrigger:iv},props:s(s(s(s(s(s({},cm),ov),Kb),Jb),um),$b),emits:[...nv,"before-show","before-hide","show","hide","open","close"],setup(e,{emit:t}){jf();const r=sl((()=>(xh(e.openDelay),e.openDelay||e.showAfter))),i=sl((()=>(xh(e.visibleArrow),jp(e.visibleArrow)?e.visibleArrow:e.showArrow))),o=kf(),l=Qo(null),n=Qo(null),a=()=>{var e;const t=tl(l);t&&(null==(e=t.popperInstanceRef)||e.update())},s=Qo(!1),c=Qo(void 0),{show:d,hide:u,hasUpdateHandler:p}=lv({indicator:s,toggleReason:c}),{onOpen:h,onClose:g}=Uf({showAfter:r,hideAfter:nl(e,"hideAfter"),open:d,close:u}),f=sl((()=>jp(e.visible)&&!p.value));cn(ev,{controlled:f,id:o,open:Bo(s),trigger:nl(e,"trigger"),onOpen:e=>{h(e)},onClose:e=>{g(e)},onToggle:e=>{tl(s)?g(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:a}),ec((()=>e.disabled),(e=>{e&&s.value&&(s.value=!1)}));return kn((()=>s.value&&u())),{compatShowAfter:r,compatShowArrow:i,popperRef:l,contentRef:n,open:s,hide:u,isFocusInsideContent:()=>{var e,t;const r=null==(t=null==(e=n.value)?void 0:e.contentRef)?void 0:t.popperContentRef;return r&&r.contains(document.activeElement)},updatePopper:a,onOpen:h,onClose:g}}}),sv=["innerHTML"],cv={key:1};const dv=Bg(Gf(av,[["render",function(e,t,r,i,o,l){const n=ka("el-tooltip-trigger"),a=ka("el-popper-arrow"),s=ka("el-tooltip-content"),c=ka("el-popper");return za(),Fa(c,{ref:"popperRef",role:e.role},{default:on((()=>[qa(n,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:on((()=>[e.$slots.default?os(e.$slots,"default",{key:0}):Qa("v-if",!0)])),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),qa(s,{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:on((()=>[os(e.$slots,"content",{},(()=>[e.rawContent?(za(),ja("span",{key:0,innerHTML:e.content},null,8,sv)):(za(),ja("span",cv,fl(e.content),1))])),e.compatShowArrow?(za(),Fa(a,{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):Qa("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"]])),uv=Og({size:gf,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:zg},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:zg,default:()=>mg},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),pv={click:e=>e instanceof MouseEvent};function hv(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(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 gv(e){return Math.min(1,Math.max(0,e))}function fv(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function mv(e){return e<=1?"".concat(100*Number(e),"%"):e}function bv(e){return 1===e.length?"0"+e:String(e)}function vv(e,t,r){e=hv(e,255),t=hv(t,255),r=hv(r,255);var i=Math.max(e,t,r),o=Math.min(e,t,r),l=0,n=0,a=(i+o)/2;if(i===o)n=0,l=0;else{var s=i-o;switch(n=a>.5?s/(2-i-o):s/(i+o),i){case e:l=(t-r)/s+(t1&&(r-=1),r<1/6?e+6*r*(t-e):r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function yv(e,t,r){e=hv(e,255),t=hv(t,255),r=hv(r,255);var i=Math.max(e,t,r),o=Math.min(e,t,r),l=0,n=i,a=i-o,s=0===i?0:a/i;if(i===o)l=0;else{switch(i){case e:l=(t-r)/a+(t>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=Ev(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!==(i=r.format)&&void 0!==i?i:o.format,this.gradientType=r.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,r=e.g/255,i=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=fv(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var e=yv(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=yv(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),i=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(t,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=vv(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=vv(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),i=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(t,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),xv(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,r,i,o){var l,n=[bv(Math.round(e).toString(16)),bv(Math.round(t).toString(16)),bv(Math.round(r).toString(16)),bv((l=i,Math.round(255*parseFloat(l)).toString(16)))];return o&&n[0].startsWith(n[0].charAt(1))&&n[1].startsWith(n[1].charAt(1))&&n[2].startsWith(n[2].charAt(1))&&n[3].startsWith(n[3].charAt(1))?n[0].charAt(0)+n[1].charAt(0)+n[2].charAt(0)+n[3].charAt(0):n.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),r=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(r,")"):"rgba(".concat(e,", ").concat(t,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*hv(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*hv(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="#"+xv(this.r,this.g,this.b,!1),t=0,r=Object.entries(Cv);t=0;return t||!i||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||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 r=this.toHsl();return r.l+=t/100,r.l=gv(r.l),new e(r)},e.prototype.brighten=function(t){void 0===t&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-t/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-t/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-t/100*255))),new e(r)},e.prototype.darken=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=gv(r.l),new e(r)},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 r=this.toHsl();return r.s-=t/100,r.s=gv(r.s),new e(r)},e.prototype.saturate=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=gv(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),i=(r.h+t)%360;return r.h=i<0?360+i:i,new e(r)},e.prototype.mix=function(t,r){void 0===r&&(r=50);var i=this.toRgb(),o=new e(t).toRgb(),l=r/100;return new e({r:(o.r-i.r)*l+i.r,g:(o.g-i.g)*l+i.g,b:(o.b-i.b)*l+i.b,a:(o.a-i.a)*l+i.a})},e.prototype.analogous=function(t,r){void 0===t&&(t=6),void 0===r&&(r=30);var i=this.toHsl(),o=360/r,l=[this];for(i.h=(i.h-(o*t>>1)+720)%360;--t;)i.h=(i.h+o)%360,l.push(new e(i));return l},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 r=this.toHsv(),i=r.h,o=r.s,l=r.v,n=[],a=1/t;t--;)n.push(new e({h:i,s:o,v:l})),l=(l+a)%1;return n},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),i=new e(t).toRgb();return new e({r:i.r+(r.r-i.r)*r.a,g:i.g+(r.g-i.g)*r.a,b:i.b+(r.b-i.b)*r.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),i=r.h,o=[this],l=360/t,n=1;n"text"===i.type)));const l=dn($g,void 0),n=pf("button"),a=yf("button"),{form:s}=Cf(),c=ff(sl((()=>null==l?void 0:l.size))),d=mf(),u=Qo(),p=sl((()=>i.type||(null==l?void 0:l.type)||"")),h=sl((()=>{var e,t,r;return null!=(r=null!=(t=i.autoInsertSpace)?t:null==(e=n.value)?void 0:e.autoInsertSpace)&&r})),g=sl((()=>{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)===Da){const t=e.children;return/^\p{Unified_Ideograph}{2}$/u.test(t.trim())}}return!1})),f=function(e){const t=mf(),r=yf("button");return sl((()=>{let i={};const o=e.color;if(o){const l=new Iv(o),n=e.dark?l.tint(20).toString():Mv(l,20);if(e.plain)i=r.cssVarBlock({"bg-color":e.dark?Mv(l,90):l.tint(90).toString(),"text-color":o,"border-color":e.dark?Mv(l,50):l.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":n,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":n}),t.value&&(i[r.cssVarBlockName("disabled-bg-color")]=e.dark?Mv(l,90):l.tint(90).toString(),i[r.cssVarBlockName("disabled-text-color")]=e.dark?Mv(l,50):l.tint(50).toString(),i[r.cssVarBlockName("disabled-border-color")]=e.dark?Mv(l,80):l.tint(80).toString());else{const a=e.dark?Mv(l,30):l.tint(30).toString(),s=l.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(i=r.cssVarBlock({"bg-color":o,"text-color":s,"border-color":o,"hover-bg-color":a,"hover-text-color":s,"hover-border-color":a,"active-bg-color":n,"active-border-color":n}),t.value){const t=e.dark?Mv(l,50):l.tint(50).toString();i[r.cssVarBlockName("disabled-bg-color")]=t,i[r.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,i[r.cssVarBlockName("disabled-border-color")]=t}}}return i}))}(i),m=e=>{"reset"===i.nativeType&&(null==s||s.resetFields()),r("click",e)};return t({ref:u,size:c,type:p,disabled:d,shouldAddSpace:g}),(e,t)=>(za(),ja("button",{ref_key:"_ref",ref:u,class:gl([tl(a).b(),tl(a).m(tl(p)),tl(a).m(tl(c)),tl(a).is("disabled",tl(d)),tl(a).is("loading",e.loading),tl(a).is("plain",e.plain),tl(a).is("round",e.round),tl(a).is("circle",e.circle),tl(a).is("text",e.text),tl(a).is("link",e.link),tl(a).is("has-bg",e.bg)]),"aria-disabled":tl(d)||e.loading,disabled:tl(d)||e.loading,autofocus:e.autofocus,type:e.nativeType,style:dl(tl(f)),onClick:m},[e.loading?(za(),ja(Pa,{key:0},[e.$slots.loading?os(e.$slots,"loading",{key:0}):(za(),Fa(tl(qf),{key:1,class:gl(tl(a).is("loading"))},{default:on((()=>[(za(),Fa(Ea(e.loadingIcon)))])),_:1},8,["class"]))],64)):e.icon||e.$slots.icon?(za(),Fa(tl(qf),{key:1},{default:on((()=>[e.icon?(za(),Fa(Ea(e.icon),{key:0})):os(e.$slots,"icon",{key:1})])),_:3})):Qa("v-if",!0),e.$slots.default?(za(),ja("span",{key:2,class:gl({[tl(a).em("text","expand")]:tl(g)})},[os(e.$slots,"default")],2)):Qa("v-if",!0)],14,Lv))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const zv={size:uv.size,type:uv.type};var Rv=Gf(_n(c(s({},{name:"ElButtonGroup"}),{props:zv,setup(e){const t=e;cn($g,No({size:nl(t,"size"),type:nl(t,"type")}));const r=yf("button");return(e,t)=>(za(),ja("div",{class:gl(`${tl(r).b("group")}`)},[os(e.$slots,"default")],2))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const Nv=Bg(Ov,{ButtonGroup:Rv}),Bv=jg(Rv),jv=new Map;let Fv;function Uv(e,t){let r=[];return Array.isArray(t.arg)?r=t.arg:wh(t.arg)&&r.push(t.arg),function(i,o){const l=t.instance.popperRef,n=i.target,a=null==o?void 0:o.target,s=!t||!t.instance,c=!n||!a,d=e.contains(n)||e.contains(a),u=e===n,p=r.length&&r.some((e=>null==e?void 0:e.contains(n)))||r.length&&r.includes(a),h=l&&(l.contains(n)||l.contains(a));s||c||d||u||p||h||t.value(i,o)}}Bp&&(document.addEventListener("mousedown",(e=>Fv=e)),document.addEventListener("mouseup",(e=>{for(const t of jv.values())for(const{documentHandler:r}of t)r(e,Fv)})));const Vv={beforeMount(e,t){jv.has(e)||jv.set(e,[]),jv.get(e).push({documentHandler:Uv(e,t),bindingFn:t.value})},updated(e,t){jv.has(e)||jv.set(e,[]);const r=jv.get(e),i=r.findIndex((e=>e.bindingFn===t.oldValue)),o={documentHandler:Uv(e,t),bindingFn:t.value};i>=0?r.splice(i,1,o):r.push(o)},unmounted(e){jv.delete(e)}},Wv={beforeMount(e,t){let r=null,i=null;const o=()=>t.value&&t.value(),l=()=>{i&&(clearTimeout(i),i=null),r&&(clearInterval(r),r=null)};e.addEventListener("mousedown",(e=>{0===e.button&&(o(),document.addEventListener("mouseup",l,{once:!0}),l(),i=setTimeout((()=>{r=setInterval((()=>{o()}),100)}),600))}))}},Hv=Og({size:gf,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),Gv=Og(c(s({},Hv),{modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean})),Yv={"update:modelValue":e=>gh(e)||Fp(e)||jp(e),change:e=>gh(e)||Fp(e)||jp(e)},qv=(e,t)=>{const r=Qo(),i=dn(nf,void 0),o=sl((()=>!!i)),l=sl({get:()=>o.value?i.modelValue:e.modelValue,set(l){o.value?i.changeEvent(l):t&&t("update:modelValue",l),r.value.checked=e.modelValue===e.label}}),n=ff(sl((()=>null==i?void 0:i.size))),a=mf(sl((()=>null==i?void 0:i.disabled))),s=Qo(!1),c=sl((()=>a.value||o.value&&l.value!==e.label?-1:0));return{radioRef:r,isGroup:o,radioGroup:i,focus:s,size:n,disabled:a,tabIndex:c,modelValue:l}},Zv=["value","name","disabled"];var Xv=Gf(_n(c(s({},{name:"ElRadio"}),{props:Gv,emits:Yv,setup(e,{emit:t}){const r=e,i=yf("radio"),{radioRef:o,radioGroup:l,focus:n,size:a,disabled:s,modelValue:c}=qv(r,t);function d(){Hs((()=>t("change",c.value)))}return(e,t)=>{var r;return za(),ja("label",{class:gl([tl(i).b(),tl(i).is("disabled",tl(s)),tl(i).is("focus",tl(n)),tl(i).is("bordered",e.border),tl(i).is("checked",tl(c)===e.label),tl(i).m(tl(a))])},[Ya("span",{class:gl([tl(i).e("input"),tl(i).is("disabled",tl(s)),tl(i).is("checked",tl(c)===e.label)])},[sa(Ya("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":t[0]||(t[0]=e=>Xo(c)?c.value=e:null),class:gl(tl(i).e("original")),value:e.label,name:e.name||(null==(r=tl(l))?void 0:r.name),disabled:tl(s),type:"radio",onFocus:t[1]||(t[1]=e=>n.value=!0),onBlur:t[2]||(t[2]=e=>n.value=!1),onChange:d},null,42,Zv),[[cd,tl(c)]]),Ya("span",{class:gl(tl(i).e("inner"))},null,2)],2),Ya("span",{class:gl(tl(i).e("label")),onKeydown:t[3]||(t[3]=pd((()=>{}),["stop"]))},[os(e.$slots,"default",{},(()=>[Xa(fl(e.label),1)]))],34)],2)}}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const Qv=Og(c(s({},Hv),{name:{type:String,default:""}})),Kv=["value","name","disabled"];var Jv=Gf(_n(c(s({},{name:"ElRadioButton"}),{props:Qv,setup(e){const t=e,r=yf("radio"),{radioRef:i,focus:o,size:l,disabled:n,modelValue:a,radioGroup:s}=qv(t),c=sl((()=>({backgroundColor:(null==s?void 0:s.fill)||"",borderColor:(null==s?void 0:s.fill)||"",boxShadow:(null==s?void 0:s.fill)?`-1px 0 0 0 ${s.fill}`:"",color:(null==s?void 0:s.textColor)||""})));return(e,t)=>{var d;return za(),ja("label",{class:gl([tl(r).b("button"),tl(r).is("active",tl(a)===e.label),tl(r).is("disabled",tl(n)),tl(r).is("focus",tl(o)),tl(r).bm("button",tl(l))])},[sa(Ya("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":t[0]||(t[0]=e=>Xo(a)?a.value=e:null),class:gl(tl(r).be("button","original-radio")),value:e.label,type:"radio",name:e.name||(null==(d=tl(s))?void 0:d.name),disabled:tl(n),onFocus:t[1]||(t[1]=e=>o.value=!0),onBlur:t[2]||(t[2]=e=>o.value=!1)},null,42,Kv),[[cd,tl(a)]]),Ya("span",{class:gl(tl(r).be("button","inner")),style:dl(tl(a)===e.label?tl(c):{}),onKeydown:t[3]||(t[3]=pd((()=>{}),["stop"]))},[os(e.$slots,"default",{},(()=>[Xa(fl(e.label),1)]))],38)],2)}}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const $v=Og({id:{type:String,default:void 0},size:gf,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}}),e_=Yv,t_=["id","aria-label","aria-labelledby"];var r_=Gf(_n(c(s({},{name:"ElRadioGroup"}),{props:$v,emits:e_,setup(e,{emit:t}){const r=e,i=yf("radio"),o=kf(),l=Qo(),{formItem:n}=Cf(),{inputId:a,isLabeledByFormItem:d}=Ef(r,{formItemContext:n});Pn((()=>{const e=l.value.querySelectorAll("[type=radio]"),t=e[0];!Array.from(e).some((e=>e.checked))&&t&&(t.tabIndex=0)}));const u=sl((()=>r.name||o.value));return cn(nf,No(c(s({},ol(r)),{changeEvent:e=>{t("update:modelValue",e),Hs((()=>t("change",e)))},name:u}))),ec((()=>r.modelValue),(()=>{r.validateEvent&&(null==n||n.validate("change").catch((e=>{})))})),(e,t)=>(za(),ja("div",{id:tl(a),ref_key:"radioGroupRef",ref:l,class:gl(tl(i).b("group")),role:"radiogroup","aria-label":tl(d)?void 0:e.label||"radio-group","aria-labelledby":tl(d)?tl(n).labelId:void 0},[os(e.$slots,"default")],10,t_))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);Bg(Xv,{RadioButton:Jv,RadioGroup:r_});const i_=jg(r_),o_=jg(Jv),l_=Og({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:Gg,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),n_={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent};const a_=Bg(Gf(_n(c(s({},{name:"ElTag"}),{props:l_,emits:n_,setup(e,{emit:t}){const r=e,i=ff(),o=yf("tag"),l=sl((()=>{const{type:e,hit:t,effect:l,closable:n,round:a}=r;return[o.b(),o.is("closable",n),o.m(e),o.m(i.value),o.m(l),o.is("hit",t),o.is("round",a)]})),n=e=>{t("close",e)},a=e=>{t("click",e)};return(e,t)=>e.disableTransitions?(za(),ja("span",{key:0,class:gl(tl(l)),style:dl({backgroundColor:e.color}),onClick:a},[Ya("span",{class:gl(tl(o).e("content"))},[os(e.$slots,"default")],2),e.closable?(za(),Fa(tl(qf),{key:0,class:gl(tl(o).e("close")),onClick:pd(n,["stop"])},{default:on((()=>[qa(tl(eg))])),_:1},8,["class","onClick"])):Qa("v-if",!0)],6)):(za(),Fa(qc,{key:1,name:`${tl(o).namespace.value}-zoom-in-center`,appear:""},{default:on((()=>[Ya("span",{class:gl(tl(l)),style:dl({backgroundColor:e.color}),onClick:a},[Ya("span",{class:gl(tl(o).e("content"))},[os(e.$slots,"default")],2),e.closable?(za(),Fa(tl(qf),{key:0,class:gl(tl(o).e("close")),onClick:pd(n,["stop"])},{default:on((()=>[qa(tl(eg))])),_:1},8,["class","onClick"])):Qa("v-if",!0)],6)])),_:3},8,["name"]))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]])),s_=e=>typeof Fp(e),c_=Og({accordion:Boolean,modelValue:{type:[Array,String,Number],default:()=>[]}}),d_={"update:modelValue":s_,change:s_};var u_=Gf(_n(c(s({},{name:"ElCollapse"}),{props:c_,emits:d_,setup(e,{expose:t,emit:r}){const i=e,o=yf("collapse"),l=Qo(ep(i.modelValue)),n=e=>{l.value=e;const t=i.accordion?l.value[0]:l.value;r("update:modelValue",t),r("change",t)};return ec((()=>i.modelValue),(()=>l.value=ep(i.modelValue)),{deep:!0}),cn(ef,{activeNames:l,handleItemClick:e=>{if(i.accordion)n([!l.value[0]&&0!==l.value[0]||l.value[0]!==e?e:""]);else{const t=[...l.value],r=t.indexOf(e);r>-1?t.splice(r,1):t.push(e),n(t)}}}),t({activeNames:l,setActiveNames:n}),(e,t)=>(za(),ja("div",{class:gl(tl(o).b()),role:"tablist","aria-multiselectable":"true"},[os(e.$slots,"default")],2))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);var p_=Gf(_n(c(s({},{name:"ElCollapseTransition"}),{setup(e){const t=yf("collapse-transition"),r={beforeEnter(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0},enter(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.maxHeight=`${e.scrollHeight}px`,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.maxHeight=0,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},afterEnter(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow},beforeLeave(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.maxHeight=`${e.scrollHeight}px`,e.style.overflow="hidden"},leave(e){0!==e.scrollHeight&&(e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0)},afterLeave(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom}};return(e,i)=>(za(),Fa(qc,es({name:tl(t).b()},function(e){const t={};for(const r in e)t[Gl(r)]=e[r];return t}(r)),{default:on((()=>[os(e.$slots,"default")])),_:3},16,["name"]))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);p_.install=e=>{e.component(p_.name,p_)};const h_=p_,g_=Og({title:{type:String,default:""},name:{type:[String,Number],default:()=>Qg()},disabled:Boolean}),f_=["aria-expanded","aria-controls","aria-describedby"],m_=["id","tabindex","onKeypress"],b_=["id","aria-hidden","aria-labelledby"];var v_=Gf(_n(c(s({},{name:"ElCollapseItem"}),{props:g_,setup(e,{expose:t}){const r=e,i=dn(ef),o=yf("collapse"),l=Qo(!1),n=Qo(!1),a=Qo(Qg()),s=sl((()=>null==i?void 0:i.activeNames.value.includes(r.name))),c=()=>{setTimeout((()=>{n.value?n.value=!1:l.value=!0}),50)},d=()=>{r.disabled||(null==i||i.handleItemClick(r.name),l.value=!1,n.value=!0)},u=()=>{null==i||i.handleItemClick(r.name)};return t({isActive:s}),(e,t)=>(za(),ja("div",{class:gl([tl(o).b("item"),tl(o).is("active",tl(s)),tl(o).is("disabled",e.disabled)])},[Ya("div",{role:"tab","aria-expanded":tl(s),"aria-controls":tl(o).b(`content-${a.value}`),"aria-describedby":tl(o).b(`content-${a.value}`)},[Ya("div",{id:tl(o).b(`head-${a.value}`),class:gl([tl(o).be("item","header"),tl(o).is("active",tl(s)),{focusing:l.value&&!e.disabled}]),role:"button",tabindex:e.disabled?-1:0,onClick:d,onKeypress:gd(pd(u,["stop","prevent"]),["space","enter"]),onFocus:c,onBlur:t[0]||(t[0]=e=>l.value=!1)},[os(e.$slots,"title",{},(()=>[Xa(fl(e.title),1)])),qa(tl(qf),{class:gl([tl(o).be("item","arrow"),tl(o).is("active",tl(s))])},{default:on((()=>[qa(tl(Bh))])),_:1},8,["class"])],42,m_)],8,f_),qa(tl(h_),null,{default:on((()=>[sa(Ya("div",{id:tl(o).b(`content-${a.value}`),class:gl(tl(o).be("item","wrap")),role:"tabpanel","aria-hidden":!tl(s),"aria-labelledby":tl(o).b(`head-${a.value}`)},[Ya("div",{class:gl(tl(o).be("item","content"))},[os(e.$slots,"default")],2)],10,b_),[[fd,tl(s)]])])),_:3})],2))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const __=Bg(u_,{CollapseItem:v_}),y_=jg(v_);let x_=!1;function w_(e,t){if(!Bp)return;const r=function(e){var r;null==(r=t.drag)||r.call(t,e)},i=function(e){var o;document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",i),document.removeEventListener("touchmove",r),document.removeEventListener("touchend",i),document.onselectstart=null,document.ondragstart=null,x_=!1,null==(o=t.end)||o.call(t,e)},o=function(e){var o;x_||(e.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",r),document.addEventListener("mouseup",i),document.addEventListener("touchmove",r),document.addEventListener("touchend",i),x_=!0,null==(o=t.start)||o.call(t,e))};e.addEventListener("mousedown",o),e.addEventListener("touchstart",o)}var k_=Gf(_n({name:"ElColorAlphaSlider",props:{color:{type:Object,required:!0},vertical:{type:Boolean,default:!1}},setup(e){const t=yf("color-alpha-slider"),r=ps(),i=Ko(null),o=Ko(null),l=Qo(0),n=Qo(0),a=Qo(null);function s(t){const o=r.vnode.el.getBoundingClientRect(),{clientX:l,clientY:n}=sh(t);if(e.vertical){let t=n-o.top;t=Math.max(i.value.offsetHeight/2,t),t=Math.min(t,o.height-i.value.offsetHeight/2),e.color.set("alpha",Math.round((t-i.value.offsetHeight/2)/(o.height-i.value.offsetHeight)*100))}else{let t=l-o.left;t=Math.max(i.value.offsetWidth/2,t),t=Math.min(t,o.width-i.value.offsetWidth/2),e.color.set("alpha",Math.round((t-i.value.offsetWidth/2)/(o.width-i.value.offsetWidth)*100))}}function c(){l.value=function(){if(e.vertical)return 0;const t=r.vnode.el,o=e.color.get("alpha");return t?Math.round(o*(t.offsetWidth-i.value.offsetWidth/2)/100):0}(),n.value=function(){const t=r.vnode.el;if(!e.vertical)return 0;const o=e.color.get("alpha");return t?Math.round(o*(t.offsetHeight-i.value.offsetHeight/2)/100):0}(),a.value=function(){if(e.color&&e.color.value){const{r:t,g:r,b:i}=e.color.toRgb();return`linear-gradient(to right, rgba(${t}, ${r}, ${i}, 0) 0%, rgba(${t}, ${r}, ${i}, 1) 100%)`}return null}()}return ec((()=>e.color.get("alpha")),(()=>{c()})),ec((()=>e.color.value),(()=>{c()})),Pn((()=>{const e={drag:e=>{s(e)},end:e=>{s(e)}};w_(o.value,e),w_(i.value,e),c()})),{thumb:i,bar:o,thumbLeft:l,thumbTop:n,background:a,handleClick:function(e){e.target!==i.value&&s(e)},update:c,ns:t}}}),[["render",function(e,t,r,i,o,l){return za(),ja("div",{class:gl([e.ns.b(),e.ns.is("vertical",e.vertical)])},[Ya("div",{ref:"bar",class:gl(e.ns.e("bar")),style:dl({background:e.background}),onClick:t[0]||(t[0]=(...t)=>e.handleClick&&e.handleClick(...t))},null,6),Ya("div",{ref:"thumb",class:gl(e.ns.e("thumb")),style:dl({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 C_=Gf(_n({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=yf("color-hue-slider"),r=ps(),i=Qo(null),o=Qo(null),l=Qo(0),n=Qo(0),a=sl((()=>e.color.get("hue")));function s(t){const o=r.vnode.el.getBoundingClientRect(),{clientX:l,clientY:n}=sh(t);let a;if(e.vertical){let e=n-o.top;e=Math.min(e,o.height-i.value.offsetHeight/2),e=Math.max(i.value.offsetHeight/2,e),a=Math.round((e-i.value.offsetHeight/2)/(o.height-i.value.offsetHeight)*360)}else{let e=l-o.left;e=Math.min(e,o.width-i.value.offsetWidth/2),e=Math.max(i.value.offsetWidth/2,e),a=Math.round((e-i.value.offsetWidth/2)/(o.width-i.value.offsetWidth)*360)}e.color.set("hue",a)}function c(){l.value=function(){const t=r.vnode.el;if(e.vertical)return 0;const o=e.color.get("hue");return t?Math.round(o*(t.offsetWidth-i.value.offsetWidth/2)/360):0}(),n.value=function(){const t=r.vnode.el;if(!e.vertical)return 0;const o=e.color.get("hue");return t?Math.round(o*(t.offsetHeight-i.value.offsetHeight/2)/360):0}()}return ec((()=>a.value),(()=>{c()})),Pn((()=>{const e={drag:e=>{s(e)},end:e=>{s(e)}};w_(o.value,e),w_(i.value,e),c()})),{bar:o,thumb:i,thumbLeft:l,thumbTop:n,hueValue:a,handleClick:function(e){e.target!==i.value&&s(e)},update:c,ns:t}}}),[["render",function(e,t,r,i,o,l){return za(),ja("div",{class:gl([e.ns.b(),e.ns.is("vertical",e.vertical)])},[Ya("div",{ref:"bar",class:gl(e.ns.e("bar")),onClick:t[0]||(t[0]=(...t)=>e.handleClick&&e.handleClick(...t))},null,2),Ya("div",{ref:"thumb",class:gl(e.ns.e("thumb")),style:dl({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 E_=Symbol(),T_=function(e,t,r){return[e,t*r/((e=(2-t)*r)<1?e:2-e)||0,e/2]},S_=function(e,t){var r;"string"==typeof(r=e)&&r.includes(".")&&1===Number.parseFloat(r)&&(e="100%");const i=function(e){return"string"==typeof e&&e.includes("%")}(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),i&&(e=Number.parseInt(""+e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},A_={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},P_=function(e){e=Math.min(Math.round(e),255);const t=Math.floor(e/16),r=e%16;return`${A_[t]||t}${A_[r]||r}`},D_=function({r:e,g:t,b:r}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+r)?"":`#${P_(e)}${P_(t)}${P_(r)}`},I_={A:10,B:11,C:12,D:13,E:14,F:15},M_=function(e){return 2===e.length?16*(I_[e[0].toUpperCase()]||+e[0])+(I_[e[1].toUpperCase()]||+e[1]):I_[e[1].toUpperCase()]||+e[1]},L_=function(e,t,r){e=S_(e,255),t=S_(t,255),r=S_(r,255);const i=Math.max(e,t,r),o=Math.min(e,t,r);let l;const n=i,a=i-o,s=0===i?0:a/i;if(i===o)l=0;else{switch(i){case e:l=(t-r)/a+(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,r)),this.doOnChange()};if(e.includes("hsl")){const r=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===r.length?this._alpha=100*Number.parseFloat(r[3]):3===r.length&&(this._alpha=100),r.length>=3){const{h:e,s:i,v:o}=function(e,t,r){r/=100;let i=t/=100;const o=Math.max(r,.01);return t*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,{h:e,s:100*(0===r?2*i/(o+i):2*t/(r+t)),v:(r+t)/2*100}}(r[0],r[1],r[2]);t(e,i,o)}}else if(e.includes("hsv")){const r=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));4===r.length?this._alpha=100*Number.parseFloat(r[3]):3===r.length&&(this._alpha=100),r.length>=3&&t(r[0],r[1],r[2])}else if(e.includes("rgb")){const r=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===r.length?this._alpha=100*Number.parseFloat(r[3]):3===r.length&&(this._alpha=100),r.length>=3){const{h:e,s:i,v:o}=L_(r[0],r[1],r[2]);t(e,i,o)}}else if(e.includes("#")){const r=e.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(r))return;let i,o,l;3===r.length?(i=M_(r[0]+r[0]),o=M_(r[1]+r[1]),l=M_(r[2]+r[2])):6!==r.length&&8!==r.length||(i=M_(r.slice(0,2)),o=M_(r.slice(2,4)),l=M_(r.slice(4,6))),8===r.length?this._alpha=M_(r.slice(6))/255*100:3!==r.length&&6!==r.length||(this._alpha=100);const{h:n,s:a,v:s}=L_(i,o,l);t(n,a,s)}}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:r,_alpha:i,format:o}=this;if(this.enableAlpha)switch(o){case"hsl":{const i=T_(e,t/100,r/100);this.value=`hsla(${e}, ${Math.round(100*i[1])}%, ${Math.round(100*i[2])}%, ${this.get("alpha")/100})`;break}case"hsv":this.value=`hsva(${e}, ${Math.round(t)}%, ${Math.round(r)}%, ${this.get("alpha")/100})`;break;case"hex":this.value=`${D_(O_(e,t,r))}${P_(255*i/100)}`;break;default:{const{r:i,g:o,b:l}=O_(e,t,r);this.value=`rgba(${i}, ${o}, ${l}, ${this.get("alpha")/100})`}}else switch(o){case"hsl":{const i=T_(e,t/100,r/100);this.value=`hsl(${e}, ${Math.round(100*i[1])}%, ${Math.round(100*i[2])}%)`;break}case"hsv":this.value=`hsv(${e}, ${Math.round(t)}%, ${Math.round(r)}%)`;break;case"rgb":{const{r:i,g:o,b:l}=O_(e,t,r);this.value=`rgb(${i}, ${o}, ${l})`;break}default:this.value=D_(O_(e,t,r))}}}const R_=_n({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=yf("color-predefine"),{currentColor:r}=dn(E_),i=Qo(o(e.colors,e.color));function o(e,t){return e.map((e=>{const r=new z_;return r.enableAlpha=!0,r.format="rgba",r.fromString(e),r.selected=r.value===t.value,r}))}return ec((()=>r.value),(e=>{const t=new z_;t.fromString(e),i.value.forEach((e=>{e.selected=t.compare(e)}))})),Js((()=>{i.value=o(e.colors,e.color)})),{rgbaColors:i,handleSelect:function(t){e.color.fromString(e.colors[t])},ns:t}}}),N_=["onClick"];var B_=Gf(R_,[["render",function(e,t,r,i,o,l){return za(),ja("div",{class:gl(e.ns.b())},[Ya("div",{class:gl(e.ns.e("colors"))},[(za(!0),ja(Pa,null,rs(e.rgbaColors,((t,r)=>(za(),ja("div",{key:e.colors[r],class:gl([e.ns.e("color-selector"),e.ns.is("alpha",t._alpha<100),{selected:t.selected}]),onClick:t=>e.handleSelect(r)},[Ya("div",{style:dl({backgroundColor:t.value})},null,4)],10,N_)))),128))],2)],2)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const j_=_n({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=yf("color-svpanel"),r=ps(),i=Qo(0),o=Qo(0),l=Qo("hsl(0, 100%, 50%)"),n=sl((()=>({hue:e.color.get("hue"),value:e.color.get("value")})));function a(){const t=e.color.get("saturation"),n=e.color.get("value"),a=r.vnode.el,{clientWidth:s,clientHeight:c}=a;o.value=t*s/100,i.value=(100-n)*c/100,l.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function s(t){const l=r.vnode.el.getBoundingClientRect(),{clientX:n,clientY:a}=sh(t);let s=n-l.left,c=a-l.top;s=Math.max(0,s),s=Math.min(s,l.width),c=Math.max(0,c),c=Math.min(c,l.height),o.value=s,i.value=c,e.color.set({saturation:s/l.width*100,value:100-c/l.height*100})}return ec((()=>n.value),(()=>{a()})),Pn((()=>{w_(r.vnode.el,{drag:e=>{s(e)},end:e=>{s(e)}}),a()})),{cursorTop:i,cursorLeft:o,background:l,colorValue:n,handleDrag:s,update:a,ns:t}}}),F_=[Ya("div",null,null,-1)];const U_=_n({name:"ElColorPicker",components:{ElButton:Nv,ElTooltip:dv,ElInput:rm,ElIcon:qf,Close:eg,ArrowDown:Oh,SvPanel:Gf(j_,[["render",function(e,t,r,i,o,l){return za(),ja("div",{class:gl(e.ns.b()),style:dl({backgroundColor:e.background})},[Ya("div",{class:gl(e.ns.e("white"))},null,2),Ya("div",{class:gl(e.ns.e("black"))},null,2),Ya("div",{class:gl(e.ns.e("cursor")),style:dl({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},F_,6)],6)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]),HueSlider:C_,AlphaSlider:k_,Predefine:B_},directives:{ClickOutside:Vv},props:{modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:{type:String,validator:qg},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:r}=Pf(),i=yf("color"),{form:o,formItem:l}=Cf(),{inputId:n,isLabeledByFormItem:a}=Ef(e,{formItemContext:l}),s=Qo(),c=Qo(),d=Qo(),u=Qo(null);let p=!0;const h=No(new z_({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue})),g=Qo(!1),f=Qo(!1),m=Qo(""),b=sl((()=>e.modelValue||f.value?function(e,t){if(!(e instanceof z_))throw new TypeError("color should be instance of _color Class");const{r:r,g:i,b:o}=e.toRgb();return t?`rgba(${r}, ${i}, ${o}, ${e.get("alpha")/100})`:`rgb(${r}, ${i}, ${o})`}(h,e.showAlpha):"transparent")),v=ff(),_=sl((()=>!(!e.disabled&&!(null==o?void 0:o.disabled)))),y=sl((()=>e.modelValue||f.value?h.value:"")),x=sl((()=>a.value?void 0:e.label||r("el.colorpicker.defaultLabel"))),w=sl((()=>a.value?null==l?void 0:l.labelId:void 0));ec((()=>e.modelValue),(e=>{e?e&&e!==h.value&&(p=!1,h.fromString(e)):f.value=!1})),ec((()=>y.value),(e=>{m.value=e,p&&t("active-change",e),p=!0})),ec((()=>h.value),(()=>{e.modelValue||f.value||(f.value=!0)}));const k=Mp((function(e){g.value=e}),100);function C(){Hs((()=>{e.modelValue?h.fromString(e.modelValue):(h.value="",Hs((()=>{f.value=!1})))}))}return Pn((()=>{e.modelValue&&(m.value=y.value)})),ec((()=>g.value),(()=>{Hs((()=>{var e,t,r;null==(e=s.value)||e.update(),null==(t=c.value)||t.update(),null==(r=d.value)||r.update()}))})),cn(E_,{currentColor:y}),{color:h,colorDisabled:_,colorSize:v,displayedColor:b,showPanelColor:f,showPicker:g,customInput:m,buttonId:n,buttonAriaLabel:x,buttonAriaLabelledby:w,handleConfirm:function(){h.fromString(m.value)},hide:function(){k(!1),C()},handleTrigger:function(){_.value||k(!g.value)},clear:function(){k(!1),t("update:modelValue",null),t("change",null),null!==e.modelValue&&e.validateEvent&&(null==l||l.validate("change").catch((e=>{}))),C()},confirmValue:function(){const r=h.value;t("update:modelValue",r),t("change",r),e.validateEvent&&(null==l||l.validate("change").catch((e=>{}))),k(!1),Hs((()=>{const t=new z_({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue});h.compare(t)||C()}))},t:r,ns:i,hue:s,svPanel:c,alpha:d,popper:u}}}),V_=["id","aria-label","aria-labelledby","aria-description","tabindex"];var W_=Gf(U_,[["render",function(e,t,r,i,o,l){const n=ka("hue-slider"),a=ka("sv-panel"),s=ka("alpha-slider"),c=ka("predefine"),d=ka("el-input"),u=ka("el-button"),p=ka("arrow-down"),h=ka("el-icon"),g=ka("close"),f=ka("el-tooltip"),m=Ta("click-outside");return za(),Fa(f,{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:on((()=>[sa((za(),ja("div",null,[Ya("div",{class:gl(e.ns.be("dropdown","main-wrapper"))},[qa(n,{ref:"hue",class:"hue-slider",color:e.color,vertical:""},null,8,["color"]),qa(a,{ref:"svPanel",color:e.color},null,8,["color"])],2),e.showAlpha?(za(),Fa(s,{key:0,ref:"alpha",color:e.color},null,8,["color"])):Qa("v-if",!0),e.predefine?(za(),Fa(c,{key:1,ref:"predefine",color:e.color,colors:e.predefine},null,8,["color","colors"])):Qa("v-if",!0),Ya("div",{class:gl(e.ns.be("dropdown","btns"))},[Ya("span",{class:gl(e.ns.be("dropdown","value"))},[qa(d,{modelValue:e.customInput,"onUpdate:modelValue":t[0]||(t[0]=t=>e.customInput=t),"validate-event":!1,size:"small",onKeyup:gd(e.handleConfirm,["enter"]),onBlur:e.handleConfirm},null,8,["modelValue","onKeyup","onBlur"])],2),qa(u,{class:gl(e.ns.be("dropdown","link-btn")),text:"",size:"small",onClick:e.clear},{default:on((()=>[Xa(fl(e.t("el.colorpicker.clear")),1)])),_:1},8,["class","onClick"]),qa(u,{plain:"",size:"small",class:gl(e.ns.be("dropdown","btn")),onClick:e.confirmValue},{default:on((()=>[Xa(fl(e.t("el.colorpicker.confirm")),1)])),_:1},8,["class","onClick"])],2)])),[[m,e.hide]])])),default:on((()=>[Ya("div",{id:e.buttonId,class:gl([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]=gd(((...t)=>e.handleTrigger&&e.handleTrigger(...t)),["enter"]))},[e.colorDisabled?(za(),ja("div",{key:0,class:gl(e.ns.be("picker","mask"))},null,2)):Qa("v-if",!0),Ya("div",{class:gl(e.ns.be("picker","trigger")),onClick:t[1]||(t[1]=(...t)=>e.handleTrigger&&e.handleTrigger(...t))},[Ya("span",{class:gl([e.ns.be("picker","color"),e.ns.is("alpha",e.showAlpha)])},[Ya("span",{class:gl(e.ns.be("picker","color-inner")),style:dl({backgroundColor:e.displayedColor})},[sa(qa(h,{class:gl([e.ns.be("picker","icon"),e.ns.is("icon-arrow-down")])},{default:on((()=>[qa(p)])),_:1},8,["class"]),[[fd,e.modelValue||e.showPanelColor]]),e.modelValue||e.showPanelColor?Qa("v-if",!0):(za(),Fa(h,{key:0,class:gl([e.ns.be("picker","empty"),e.ns.is("icon-close")])},{default:on((()=>[qa(g)])),_:1},8,["class"]))],6)],2)],2)],42,V_)])),_:1},8,["visible","popper-class","transition"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/index.vue"]]);W_.install=e=>{e.component(W_.name,W_)};const H_=W_,G_={},Y_=Bg(_n({name:"ElConfigProvider",props:Og({a11y:{type:Boolean,default:!0},locale:{type:Object},size:gf,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}){ec((()=>e.message),(e=>{Object.assign(G_,null!=e?e:{})}),{immediate:!0,deep:!0});const r=((e,t,r=!1)=>{var i;const o=!!ps(),l=o?pf():void 0,n=null!=(i=null==t?void 0:t.provide)?i:o?cn:void 0;if(!n)return;const a=sl((()=>{const t=tl(e);return(null==l?void 0:l.value)?hf(l.value,t):t}));return n(tf,a),!r&&uf.value||(uf.value=a.value),a})(e);return()=>os(t,"default",{config:null==r?void 0:r.value})}}));const q_=_n({name:"ElOverlay",props:Og({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:r}){const i=yf("overlay"),{onClick:o,onMousedown:l,onMouseup:n}=Lf(e.customMaskEvent?void 0:e=>{r("click",e)});return()=>e.mask?qa("div",{class:[i.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:o,onMousedown:l,onMouseup:n},[os(t,"default")],Zg.STYLE|Zg.CLASS|Zg.PROPS,["onClick","onMouseup","onMousedown"]):ac("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[os(t,"default")])}}),Z_=Og({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:zg},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),X_=["aria-label"],Q_=["id"];var K_=Gf(_n(c(s({},{name:"ElDialogContent"}),{props:Z_,emits:{close:()=>!0},setup(e){const t=e,{t:r}=Pf(),{Close:i}=Rg,{dialogRef:o,headerRef:l,bodyId:n,ns:a,style:s}=dn(rf),{focusTrapRef:c}=dn(Vb),d=((...e)=>t=>{e.forEach((e=>{hh(e)?e(t):e.value=t}))})(c,o),u=sl((()=>t.draggable));return vf(o,l,u),(e,t)=>(za(),ja("div",{ref:tl(d),class:gl([tl(a).b(),tl(a).is("fullscreen",e.fullscreen),tl(a).is("draggable",tl(u)),tl(a).is("align-center",e.alignCenter),{[tl(a).m("center")]:e.center},e.customClass]),style:dl(tl(s)),tabindex:"-1",onClick:t[1]||(t[1]=pd((()=>{}),["stop"]))},[Ya("header",{ref_key:"headerRef",ref:l,class:gl(tl(a).e("header"))},[os(e.$slots,"header",{},(()=>[Ya("span",{role:"heading",class:gl(tl(a).e("title"))},fl(e.title),3)])),e.showClose?(za(),ja("button",{key:0,"aria-label":tl(r)("el.dialog.close"),class:gl(tl(a).e("headerbtn")),type:"button",onClick:t[0]||(t[0]=t=>e.$emit("close"))},[qa(tl(qf),{class:gl(tl(a).e("close"))},{default:on((()=>[(za(),Fa(Ea(e.closeIcon||tl(i))))])),_:1},8,["class"])],10,X_)):Qa("v-if",!0)],2),Ya("div",{id:tl(n),class:gl(tl(a).e("body"))},[os(e.$slots,"default")],10,Q_),e.$slots.footer?(za(),ja("footer",{key:0,class:gl(tl(a).e("footer"))},[os(e.$slots,"footer")],2)):Qa("v-if",!0)],6))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const J_=Og(c(s({},Z_),{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}})),$_={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,"update:modelValue":e=>jp(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},ey=["aria-label","aria-labelledby","aria-describedby"];const ty=Bg(Gf(_n(c(s({},{name:"ElDialog",inheritAttrs:!1}),{props:J_,emits:$_,setup(e,{expose:t}){const r=e,i=lc();bf({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"},sl((()=>!!i.title))),bf({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"},sl((()=>!!r.customClass)));const o=yf("dialog"),l=Qo(),n=Qo(),a=Qo(),{visible:s,titleId:c,bodyId:d,style:u,overlayDialogStyle:p,rendered:h,zIndex:g,afterEnter:f,afterLeave:m,beforeLeave:b,handleClose:v,onModalClick:_,onOpenAutoFocus:y,onCloseAutoFocus:x,onCloseRequested:w}=((e,t)=>{const r=ps().emit,{nextZIndex:i}=Hf();let o="";const l=kf(),n=kf(),a=Qo(!1),s=Qo(!1),c=Qo(!1),d=Qo(e.zIndex||i());let u,p;const h=pf("namespace","el"),g=sl((()=>{const t={},r=`--${h.value}-dialog`;return e.fullscreen||(e.top&&(t[`${r}-margin-top`]=e.top),e.width&&(t[`${r}-width`]=Ah(e.width))),t})),f=sl((()=>e.alignCenter?{display:"flex"}:{}));function m(){null==p||p(),null==u||u(),e.openDelay&&e.openDelay>0?({stop:u}=Hp((()=>_()),e.openDelay)):_()}function b(){null==u||u(),null==p||p(),e.closeDelay&&e.closeDelay>0?({stop:p}=Hp((()=>y()),e.closeDelay)):y()}function v(){e.beforeClose?e.beforeClose((function(e){e||(s.value=!0,a.value=!1)})):b()}function _(){Bp&&(a.value=!0)}function y(){a.value=!1}return e.lockScroll&&Df(a),ec((()=>e.modelValue),(o=>{o?(s.value=!1,m(),c.value=!0,d.value=e.zIndex?d.value++:i(),Hs((()=>{r("open"),t.value&&(t.value.scrollTop=0)}))):a.value&&b()})),ec((()=>e.fullscreen),(e=>{t.value&&(e?(o=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=o)})),Pn((()=>{e.modelValue&&(a.value=!0,c.value=!0,m())})),{afterEnter:function(){r("opened")},afterLeave:function(){r("closed"),r("update:modelValue",!1),e.destroyOnClose&&(c.value=!1)},beforeLeave:function(){r("close")},handleClose:v,onModalClick:function(){e.closeOnClickModal&&v()},close:b,doClose:y,onOpenAutoFocus:function(){r("openAutoFocus")},onCloseAutoFocus:function(){r("closeAutoFocus")},onCloseRequested:function(){e.closeOnPressEscape&&v()},titleId:l,bodyId:n,closed:s,style:g,overlayDialogStyle:f,rendered:c,visible:a,zIndex:d}})(r,l);cn(rf,{dialogRef:l,headerRef:n,bodyId:d,ns:o,rendered:h,style:u});const k=Lf(_),C=sl((()=>r.draggable&&!r.fullscreen));return t({visible:s,dialogContentRef:a}),(e,t)=>(za(),Fa(wa,{to:"body",disabled:!e.appendToBody},[qa(qc,{name:"dialog-fade",onAfterEnter:tl(f),onAfterLeave:tl(m),onBeforeLeave:tl(b),persisted:""},{default:on((()=>[sa(qa(tl(q_),{"custom-mask-event":"",mask:e.modal,"overlay-class":e.modalClass,"z-index":tl(g)},{default:on((()=>[Ya("div",{role:"dialog","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:tl(c),"aria-describedby":tl(d),class:gl(`${tl(o).namespace.value}-overlay-dialog`),style:dl(tl(p)),onClick:t[0]||(t[0]=(...e)=>tl(k).onClick&&tl(k).onClick(...e)),onMousedown:t[1]||(t[1]=(...e)=>tl(k).onMousedown&&tl(k).onMousedown(...e)),onMouseup:t[2]||(t[2]=(...e)=>tl(k).onMouseup&&tl(k).onMouseup(...e))},[qa(tl(Wb),{loop:"",trapped:tl(s),"focus-start-el":"container",onFocusAfterTrapped:tl(y),onFocusAfterReleased:tl(x),onReleaseRequested:tl(w)},{default:on((()=>[tl(h)?(za(),Fa(K_,es({key:0,ref_key:"dialogContentRef",ref:a},e.$attrs,{"custom-class":e.customClass,center:e.center,"align-center":e.alignCenter,"close-icon":e.closeIcon,draggable:tl(C),fullscreen:e.fullscreen,"show-close":e.showClose,title:e.title,onClose:tl(v)}),is({header:on((()=>[e.$slots.title?os(e.$slots,"title",{key:1}):os(e.$slots,"header",{key:0,close:tl(v),titleId:tl(c),titleClass:tl(o).e("title")})])),default:on((()=>[os(e.$slots,"default")])),_:2},[e.$slots.footer?{name:"footer",fn:on((()=>[os(e.$slots,"footer")]))}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):Qa("v-if",!0)])),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onReleaseRequested"])],46,ey)])),_:3},8,["mask","overlay-class","z-index"]),[[fd,tl(s)]])])),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]])),ry=Og({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:gf,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>null===e||Fp(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}}),iy={change:(e,t)=>e!==t,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,input:e=>Fp(e)||zp(e),"update:modelValue":e=>Fp(e)||zp(e)},oy=["aria-label","onKeydown"],ly=["aria-label","onKeydown"];const ny=Bg(Gf(_n(c(s({},{name:"ElInputNumber"}),{props:ry,emits:iy,setup(e,{expose:t,emit:r}){const i=e,{t:o}=Pf(),l=yf("input-number"),n=Qo(),a=No({currentValue:i.modelValue,userInput:null}),{formItem:s}=Cf(),c=sl((()=>Fp(i.modelValue)&&v(i.modelValue,-1)Fp(i.modelValue)&&v(i.modelValue)>i.max)),u=sl((()=>{const e=b(i.step);return xh(i.precision)?Math.max(b(i.modelValue),e):(i.precision,i.precision)})),p=sl((()=>i.controls&&"right"===i.controlsPosition)),h=ff(),g=mf(),f=sl((()=>{if(null!==a.userInput)return a.userInput;let e=a.currentValue;if(zp(e))return"";if(Fp(e)){if(Number.isNaN(e))return"";xh(i.precision)||(e=e.toFixed(i.precision))}return e})),m=(e,t)=>{if(xh(t)&&(t=u.value),0===t)return Math.round(e);let r=String(e);const i=r.indexOf(".");if(-1===i)return e;if(!r.replace(".","").split("")[i+t])return e;const o=r.length;return"5"===r.charAt(o-1)&&(r=`${r.slice(0,Math.max(0,o-1))}6`),Number.parseFloat(Number(r).toFixed(t))},b=e=>{if(zp(e))return 0;const t=e.toString(),r=t.indexOf(".");let i=0;return-1!==r&&(i=t.length-r-1),i},v=(e,t=1)=>Fp(e)?m(e+i.step*t):a.currentValue,_=()=>{if(i.readonly||g.value||d.value)return;const e=i.modelValue||0,t=v(e);w(t)},y=()=>{if(i.readonly||g.value||c.value)return;const e=i.modelValue||0,t=v(e,-1);w(t)},x=(e,t)=>{const{max:o,min:l,step:n,precision:a,stepStrictly:s,valueOnClear:c}=i;let d=Number(e);if(zp(e)||Number.isNaN(d))return null;if(""===e){if(null===c)return null;d=gh(c)?{min:l,max:o}[c]:c}return s&&(d=m(Math.round(d/n)*n,a)),xh(a)||(d=m(d,a)),(d>o||do?o:l,t&&r("update:modelValue",d)),d},w=e=>{var t;const o=a.currentValue,l=x(e);o!==l&&(a.userInput=null,r("update:modelValue",l),r("input",l),r("change",l,o),i.validateEvent&&(null==(t=null==s?void 0:s.validate)||t.call(s,"change").catch((e=>{}))),a.currentValue=l)},k=e=>a.userInput=e,C=e=>{const t=""!==e?Number(e):"";(Fp(t)&&!Number.isNaN(t)||""===e)&&w(t),a.userInput=null},E=e=>{r("focus",e)},T=e=>{var t;r("blur",e),i.validateEvent&&(null==(t=null==s?void 0:s.validate)||t.call(s,"blur").catch((e=>{})))};return ec((()=>i.modelValue),(e=>{a.currentValue=x(e,!0),a.userInput=null}),{immediate:!0}),Pn((()=>{var e;const{min:t,max:o,modelValue:l}=i,s=null==(e=n.value)?void 0:e.input;if(s.setAttribute("role","spinbutton"),Number.isFinite(o)?s.setAttribute("aria-valuemax",String(o)):s.removeAttribute("aria-valuemax"),Number.isFinite(t)?s.setAttribute("aria-valuemin",String(t)):s.removeAttribute("aria-valuemin"),s.setAttribute("aria-valuenow",String(a.currentValue)),s.setAttribute("aria-disabled",String(g.value)),!Fp(l)&&null!=l){let e=Number(l);Number.isNaN(e)&&(e=null),r("update:modelValue",e)}})),In((()=>{var e;const t=null==(e=n.value)?void 0:e.input;null==t||t.setAttribute("aria-valuenow",`${a.currentValue}`)})),t({focus:()=>{var e,t;null==(t=null==(e=n.value)?void 0:e.focus)||t.call(e)},blur:()=>{var e,t;null==(t=null==(e=n.value)?void 0:e.blur)||t.call(e)}}),(e,t)=>(za(),ja("div",{class:gl([tl(l).b(),tl(l).m(tl(h)),tl(l).is("disabled",tl(g)),tl(l).is("without-controls",!e.controls),tl(l).is("controls-right",tl(p))]),onDragstart:t[0]||(t[0]=pd((()=>{}),["prevent"]))},[e.controls?sa((za(),ja("span",{key:0,role:"button","aria-label":tl(o)("el.inputNumber.decrease"),class:gl([tl(l).e("decrease"),tl(l).is("disabled",tl(c))]),onKeydown:gd(y,["enter"])},[qa(tl(qf),null,{default:on((()=>[tl(p)?(za(),Fa(tl(Oh),{key:0})):(za(),Fa(tl(yg),{key:1}))])),_:1})],42,oy)),[[tl(Wv),y]]):Qa("v-if",!0),e.controls?sa((za(),ja("span",{key:1,role:"button","aria-label":tl(o)("el.inputNumber.increase"),class:gl([tl(l).e("increase"),tl(l).is("disabled",tl(d))]),onKeydown:gd(_,["enter"])},[qa(tl(qf),null,{default:on((()=>[tl(p)?(za(),Fa(tl(Vh),{key:0})):(za(),Fa(tl(Cg),{key:1}))])),_:1})],42,ly)),[[tl(Wv),_]]):Qa("v-if",!0),qa(tl(rm),{id:e.id,ref_key:"input",ref:n,type:"number",step:e.step,"model-value":tl(f),placeholder:e.placeholder,readonly:e.readonly,disabled:tl(g),size:tl(h),max:e.max,min:e.min,name:e.name,label:e.label,"validate-event":!1,onKeydown:[gd(pd(_,["prevent"]),["up"]),gd(pd(y,["prevent"]),["down"])],onBlur:T,onFocus:E,onInput:k,onChange:C},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"]]));var ay=Gf(_n({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const t=yf("select"),r=No({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:i,itemSelected:o,isDisabled:l,select:n,hoverItem:a}=function(e,t){const r=dn("ElSelect"),i=dn("ElSelectGroup",{disabled:!1}),o=sl((()=>"[object object]"===Object.prototype.toString.call(e.value).toLowerCase())),l=sl((()=>r.props.multiple?u(r.props.modelValue,e.value):p(e.value,r.props.modelValue))),n=sl((()=>{if(r.props.multiple){const e=r.props.modelValue||[];return!l.value&&e.length>=r.props.multipleLimit&&r.props.multipleLimit>0}return!1})),a=sl((()=>e.label||(o.value?"":e.value))),s=sl((()=>e.value||e.label||"")),c=sl((()=>e.disabled||t.groupDisabled||n.value)),d=ps(),u=(e=[],t)=>{if(o.value){const i=r.props.valueKey;return e&&e.some((e=>Wo($u(e,i))===$u(t,i)))}return e&&e.includes(t)},p=(e,t)=>{if(o.value){const{valueKey:i}=r.props;return $u(e,i)===$u(t,i)}return e===t};ec((()=>a.value),(()=>{e.created||r.props.remote||r.setSelected()})),ec((()=>e.value),((t,i)=>{const{remote:o,valueKey:l}=r.props;if(Object.is(t,i)||(r.onOptionDestroy(i,d.proxy),r.onOptionCreate(d.proxy)),!e.created&&!o){if(l&&"object"==typeof t&&"object"==typeof i&&t[l]===i[l])return;r.setSelected()}})),ec((()=>i.disabled),(()=>{t.groupDisabled=i.disabled}),{immediate:!0});const{queryChange:h}=Wo(r);return ec(h,(i=>{const{query:o}=tl(i),l=new RegExp(((e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"))(o),"i");t.visible=l.test(a.value)||e.created,t.visible||r.filteredOptionsCount--})),{select:r,currentLabel:a,currentValue:s,itemSelected:l,isDisabled:c,hoverItem:()=>{e.disabled||i.disabled||(r.hoverIndex=r.optionsArray.indexOf(d.proxy))}}}(e,r),{visible:s,hover:c}=ol(r),d=ps().proxy;return n.onOptionCreate(d),Mn((()=>{const e=d.value,{selected:t}=n,r=(n.props.multiple?t:[t]).some((e=>e.value===d.value));Hs((()=>{n.cachedOptions.get(e)!==d||r||n.cachedOptions.delete(e)})),n.onOptionDestroy(e,d)})),{ns:t,currentLabel:i,itemSelected:o,isDisabled:l,select:n,hoverItem:a,visible:s,hover:c,selectOptionClick:function(){!0!==e.disabled&&!0!==r.groupDisabled&&n.handleOptionSelect(d,!0)},states:r}}}),[["render",function(e,t,r,i,o,l){return sa((za(),ja("li",{class:gl([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:t[0]||(t[0]=(...t)=>e.hoverItem&&e.hoverItem(...t)),onClick:t[1]||(t[1]=pd(((...t)=>e.selectOptionClick&&e.selectOptionClick(...t)),["stop"]))},[os(e.$slots,"default",{},(()=>[Ya("span",null,fl(e.currentLabel),1)]))],34)),[[fd,e.visible]])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const sy=_n({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=dn("ElSelect"),t=yf("select"),r=sl((()=>e.props.popperClass)),i=sl((()=>e.props.multiple)),o=sl((()=>e.props.fitInputWidth)),l=Qo("");function n(){var t;l.value=`${null==(t=e.selectWrapper)?void 0:t.offsetWidth}px`}return Pn((()=>{n(),rh(e.selectWrapper,n)})),{ns:t,minWidth:l,popperClass:r,isMultiple:i,isFitInputWidth:o}}});const cy=(e,t,r)=>{const{t:i}=Pf(),o=yf("select"),l=Qo(null),n=Qo(null),a=Qo(null),s=Qo(null),c=Qo(null),d=Qo(null),u=Qo(-1),p=Ko({query:""}),h=Ko(""),{form:g,formItem:f}=Cf(),m=sl((()=>!e.filterable||e.multiple||!t.visible)),b=sl((()=>e.disabled||(null==g?void 0:g.disabled))),v=sl((()=>{const r=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:void 0!==e.modelValue&&null!==e.modelValue&&""!==e.modelValue;return e.clearable&&!b.value&&t.inputHovering&&r})),_=sl((()=>e.remote&&e.filterable?"":e.suffixIcon)),y=sl((()=>o.is("reverse",_.value&&t.visible))),x=sl((()=>e.remote?300:0)),w=sl((()=>e.loading?e.loadingText||i("el.select.loading"):(!e.remote||""!==t.query||0!==t.options.size)&&(e.filterable&&t.query&&t.options.size>0&&0===t.filteredOptionsCount?e.noMatchText||i("el.select.noMatch"):0===t.options.size?e.noDataText||i("el.select.noData"):null))),k=sl((()=>Array.from(t.options.values()))),C=sl((()=>Array.from(t.cachedOptions.values()))),E=sl((()=>{const r=k.value.filter((e=>!e.created)).some((e=>e.currentLabel===t.query));return e.filterable&&e.allowCreate&&""!==t.query&&!r})),T=ff(),S=sl((()=>["small"].includes(T.value)?"small":"default")),A=sl({get:()=>t.visible&&!1!==w.value,set(e){t.visible=e}});ec([()=>b.value,()=>T.value,()=>null==g?void 0:g.size],(()=>{Hs((()=>{P()}))})),ec((()=>e.placeholder),(e=>{t.cachedPlaceHolder=t.currentPlaceholder=e})),ec((()=>e.modelValue),((r,i)=>{e.multiple&&(P(),r&&r.length>0||n.value&&""!==t.query?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",D(t.query))),L(),e.filterable&&!e.multiple&&(t.inputLength=20),!Op(r,i)&&e.validateEvent&&(null==f||f.validate("change").catch((e=>{})))}),{flush:"post",deep:!0}),ec((()=>t.visible),(i=>{var o,l,s;i?(null==(l=null==(o=a.value)?void 0:o.updatePopper)||l.call(o),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,e.multiple?null==(s=n.value)||s.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),D(t.query),e.multiple||e.remote||(p.value.query="",el(p),el(h)))):(n.value&&n.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,z(),Hs((()=>{n.value&&""===n.value.value&&0===t.selected.length&&(t.currentPlaceholder=t.cachedPlaceHolder)})),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),r.emit("visible-change",i)})),ec((()=>t.options.entries()),(()=>{var r,i,o;if(!Bp)return;null==(i=null==(r=a.value)?void 0:r.updatePopper)||i.call(r),e.multiple&&P();const l=(null==(o=c.value)?void 0:o.querySelectorAll("input"))||[];Array.from(l).includes(document.activeElement)||L(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&M()}),{flush:"post"}),ec((()=>t.hoverIndex),(e=>{"number"==typeof e&&e>-1&&(u.value=k.value[e]||{}),k.value.forEach((e=>{e.hover=u.value===e}))}));const P=()=>{e.collapseTags&&!e.filterable||Hs((()=>{var e,r;if(!l.value)return;const i=l.value.$el.querySelector("input"),o=s.value,n=(c=T.value||(null==g?void 0:g.size),Yg[c||"default"]);var c;i.style.height=(0===t.selected.length?n:Math.max(o?o.clientHeight+(o.clientHeight>n?6:0):0,n))-2+"px",t.tagInMultiLine=Number.parseFloat(i.style.height)>=n,t.visible&&!1!==w.value&&(null==(r=null==(e=a.value)?void 0:e.updatePopper)||r.call(e))}))},D=async r=>{t.previousQuery===r||t.isOnComposition||(null!==t.previousQuery||"function"!=typeof e.filterMethod&&"function"!=typeof e.remoteMethod?(t.previousQuery=r,Hs((()=>{var e,r;t.visible&&(null==(r=null==(e=a.value)?void 0:e.updatePopper)||r.call(e))})),t.hoverIndex=-1,e.multiple&&e.filterable&&Hs((()=>{const r=15*n.value.value.length+20;t.inputLength=e.collapseTags?Math.min(50,r):r,I(),P()})),e.remote&&"function"==typeof e.remoteMethod?(t.hoverIndex=-1,e.remoteMethod(r)):"function"==typeof e.filterMethod?(e.filterMethod(r),el(h)):(t.filteredOptionsCount=t.optionsCount,p.value.query=r,el(p),el(h)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await Hs(),M())):t.previousQuery=r)},I=()=>{""!==t.currentPlaceholder&&(t.currentPlaceholder=n.value.value?"":t.cachedPlaceHolder)},M=()=>{const e=k.value.filter((e=>e.visible&&!e.disabled&&!e.states.groupDisabled)),r=e.find((e=>e.created)),i=e[0];t.hoverIndex=V(k.value,r||i)},L=()=>{var r;if(!e.multiple){const i=O(e.modelValue);return(null==(r=i.props)?void 0:r.created)?(t.createdLabel=i.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=i.currentLabel,t.selected=i,void(e.filterable&&(t.query=t.selectedLabel))}t.selectedLabel="";const i=[];Array.isArray(e.modelValue)&&e.modelValue.forEach((e=>{i.push(O(e))})),t.selected=i,Hs((()=>{P()}))},O=r=>{let i;const o="object"===vh(r).toLowerCase(),l="null"===vh(r).toLowerCase(),n="undefined"===vh(r).toLowerCase();for(let s=t.cachedOptions.size-1;s>=0;s--){const t=C.value[s];if(o?$u(t.value,e.valueKey)===$u(r,e.valueKey):t.value===r){i={value:r,currentLabel:t.currentLabel,isDisabled:t.isDisabled};break}}if(i)return i;const a={value:r,currentLabel:o?r.label:l||n?"":r};return e.multiple&&(a.hitState=!1),a},z=()=>{setTimeout((()=>{const r=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map((e=>k.value.findIndex((t=>$u(t,r)===$u(e,r)))))):t.hoverIndex=-1:t.hoverIndex=k.value.findIndex((e=>q(e)===q(t.selected)))}),300)},R=()=>{var e;t.inputWidth=null==(e=l.value)?void 0:e.$el.getBoundingClientRect().width},N=Mp((()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,D(t.query))}),x.value),B=Mp((e=>{D(e.target.value)}),x.value),j=t=>{Op(e.modelValue,t)||r.emit("change",t)},F=i=>{i.stopPropagation();const o=e.multiple?[]:"";if("string"!=typeof o)for(const e of t.selected)e.isDisabled&&o.push(e.value);r.emit("update:modelValue",o),j(o),t.visible=!1,r.emit("clear")},U=(i,o)=>{var l;if(e.multiple){const o=(e.modelValue||[]).slice(),a=V(o,i.value);a>-1?o.splice(a,1):(e.multipleLimit<=0||o.length{H(i)}))},V=(t=[],r)=>{if(!fh(r))return t.indexOf(r);const i=e.valueKey;let o=-1;return t.some(((e,t)=>Wo($u(e,i))===$u(r,i)&&(o=t,!0))),o},W=()=>{t.softFocus=!0;const e=n.value||l.value;e&&(null==e||e.focus())},H=e=>{var t,r,i,l,n;const s=Array.isArray(e)?e[0]:e;let c=null;if(null==s?void 0:s.value){const e=k.value.filter((e=>e.value===s.value));e.length>0&&(c=e[0].$el)}if(a.value&&c){const e=null==(l=null==(i=null==(r=null==(t=a.value)?void 0:t.popperRef)?void 0:r.contentRef)?void 0:i.querySelector)?void 0:l.call(i,`.${o.be("dropdown","wrap")}`);e&&function(e,t){if(!Bp)return;if(!t)return void(e.scrollTop=0);const r=[];let i=t.offsetParent;for(;null!==i&&e!==i&&e.contains(i);)r.push(i),i=i.offsetParent;const o=t.offsetTop+r.reduce(((e,t)=>e+t.offsetTop),0),l=o+t.offsetHeight,n=e.scrollTop,a=n+e.clientHeight;oa&&(e.scrollTop=l-e.clientHeight)}(e,c)}null==(n=d.value)||n.handleScroll()},G=e=>{if(!Array.isArray(t.selected))return;const r=t.selected[t.selected.length-1];return r?!0===e||!1===e?(r.hitState=e,e):(r.hitState=!r.hitState,r.hitState):void 0},Y=()=>{var e;b.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:t.visible=!t.visible,t.visible&&(null==(e=n.value||l.value)||e.focus()))},q=t=>fh(t.value)?$u(t.value,e.valueKey):t.value,Z=sl((()=>k.value.filter((e=>e.visible)).every((e=>e.disabled)))),X=e=>{if(t.visible){if(0!==t.options.size&&0!==t.filteredOptionsCount&&!t.isOnComposition&&!Z.value){"next"===e?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):"prev"===e&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const r=k.value[t.hoverIndex];!0!==r.disabled&&!0!==r.states.groupDisabled&&r.visible||X(e),Hs((()=>H(u.value)))}}else t.visible=!0};return{optionsArray:k,selectSize:T,handleResize:()=>{var t,r;R(),null==(r=null==(t=a.value)?void 0:t.updatePopper)||r.call(t),e.multiple&&!e.filterable&&P()},debouncedOnInputChange:N,debouncedQueryChange:B,deletePrevTag:i=>{if(i.target.value.length<=0&&!G()){const t=e.modelValue.slice();t.pop(),r.emit("update:modelValue",t),j(t)}1===i.target.value.length&&0===e.modelValue.length&&(t.currentPlaceholder=t.cachedPlaceHolder)},deleteTag:(i,o)=>{const l=t.selected.indexOf(o);if(l>-1&&!b.value){const t=e.modelValue.slice();t.splice(l,1),r.emit("update:modelValue",t),j(t),r.emit("remove-tag",o.value)}i.stopPropagation()},deleteSelected:F,handleOptionSelect:U,scrollToOption:H,readonly:m,resetInputHeight:P,showClose:v,iconComponent:_,iconReverse:y,showNewOption:E,collapseTagSize:S,setSelected:L,managePlaceholder:I,selectDisabled:b,emptyText:w,toggleLastOptionHitState:G,resetInputState:e=>{e.code!==Hg&&G(!1),t.inputLength=15*n.value.value.length+20,P()},handleComposition:e=>{const r=e.target.value;if("compositionend"===e.type)t.isOnComposition=!1,Hs((()=>D(r)));else{const e=r[r.length-1]||"";t.isOnComposition=!Xg(e)}},onOptionCreate:e=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(e.value,e),t.cachedOptions.set(e.value,e)},onOptionDestroy:(e,r)=>{t.options.get(e)===r&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(e))},handleMenuEnter:()=>{Hs((()=>H(t.selected)))},handleFocus:i=>{t.softFocus?t.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),r.emit("focus",i))},blur:()=>{var e;t.visible=!1,null==(e=l.value)||e.blur()},handleBlur:e=>{Hs((()=>{t.isSilentBlur?t.isSilentBlur=!1:r.emit("blur",e)})),t.softFocus=!1},handleClearClick:e=>{F(e)},handleClose:()=>{t.visible=!1},handleKeydownEscape:e=>{t.visible&&(e.preventDefault(),e.stopPropagation(),t.visible=!1)},toggleMenu:Y,selectOption:()=>{t.visible?k.value[t.hoverIndex]&&U(k.value[t.hoverIndex],void 0):Y()},getValueKey:q,navigateOptions:X,dropMenuVisible:A,queryChange:p,groupQueryChange:h,reference:l,input:n,tooltipRef:a,tags:s,selectWrapper:c,scrollbar:d}},dy=_n({name:"ElSelect",componentName:"ElSelect",components:{ElInput:rm,ElSelectMenu:Gf(sy,[["render",function(e,t,r,i,o,l){return za(),ja("div",{class:gl([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:dl({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[os(e.$slots,"default")],6)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]),ElOption:ay,ElTag:a_,ElScrollbar:sm,ElTooltip:dv,ElIcon:qf},directives:{ClickOutside:Vv},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:qg},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},teleported:Kb.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:[String,Object],default:Qh},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:[String,Object],default:Vh},tagType:c(s({},l_.type),{default:"info"}),validateEvent:{type:Boolean,default:!0}},emits:["update:modelValue","change","remove-tag","clear","visible-change","focus","blur"],setup(e,t){const r=yf("select"),i=yf("input"),{t:o}=Pf(),l=function(e){const{t:t}=Pf();return No({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1})}(e),{optionsArray:n,selectSize:a,readonly:s,handleResize:c,collapseTagSize:d,debouncedOnInputChange:u,debouncedQueryChange:p,deletePrevTag:h,deleteTag:g,deleteSelected:f,handleOptionSelect:m,scrollToOption:b,setSelected:v,resetInputHeight:_,managePlaceholder:y,showClose:x,selectDisabled:w,iconComponent:k,iconReverse:C,showNewOption:E,emptyText:T,toggleLastOptionHitState:S,resetInputState:A,handleComposition:P,onOptionCreate:D,onOptionDestroy:I,handleMenuEnter:M,handleFocus:L,blur:O,handleBlur:z,handleClearClick:R,handleClose:N,handleKeydownEscape:B,toggleMenu:j,selectOption:F,getValueKey:U,navigateOptions:V,dropMenuVisible:W,reference:H,input:G,tooltipRef:Y,tags:q,selectWrapper:Z,scrollbar:X,queryChange:Q,groupQueryChange:K}=cy(e,l,t),{focus:J}=($=H,{focus:()=>{var e,t;null==(t=null==(e=$.value)?void 0:e.focus)||t.call(e)}});var $;const{inputWidth:ee,selected:te,inputLength:re,filteredOptionsCount:ie,visible:oe,softFocus:le,selectedLabel:ne,hoverIndex:ae,query:se,inputHovering:ce,currentPlaceholder:de,menuVisibleOnFocus:ue,isOnComposition:pe,isSilentBlur:he,options:ge,cachedOptions:fe,optionsCount:me,prefixWidth:be,tagInMultiLine:ve}=ol(l),_e=sl((()=>{const t=[r.b()],i=tl(a);return i&&t.push(r.m(i)),e.disabled&&t.push(r.m("disabled")),t})),ye=sl((()=>({maxWidth:tl(ee)-32+"px",width:"100%"})));cn("ElSelect",No({props:e,options:ge,optionsArray:n,cachedOptions:fe,optionsCount:me,filteredOptionsCount:ie,hoverIndex:ae,handleOptionSelect:m,onOptionCreate:D,onOptionDestroy:I,selectWrapper:Z,selected:te,setSelected:v,queryChange:Q,groupQueryChange:K})),Pn((()=>{l.cachedPlaceHolder=de.value=e.placeholder||o("el.select.placeholder"),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(de.value=""),rh(Z,c),e.remote&&e.multiple&&_(),Hs((()=>{const e=H.value&&H.value.$el;if(e&&(ee.value=e.getBoundingClientRect().width,t.slots.prefix)){const t=e.querySelector(`.${i.e("prefix")}`);be.value=Math.max(t.getBoundingClientRect().width+5,30)}})),v()})),e.multiple&&!Array.isArray(e.modelValue)&&t.emit("update:modelValue",[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit("update:modelValue","");const xe=sl((()=>{var e,t;return null==(t=null==(e=Y.value)?void 0:e.popperRef)?void 0:t.contentRef}));return{tagInMultiLine:ve,prefixWidth:be,selectSize:a,readonly:s,handleResize:c,collapseTagSize:d,debouncedOnInputChange:u,debouncedQueryChange:p,deletePrevTag:h,deleteTag:g,deleteSelected:f,handleOptionSelect:m,scrollToOption:b,inputWidth:ee,selected:te,inputLength:re,filteredOptionsCount:ie,visible:oe,softFocus:le,selectedLabel:ne,hoverIndex:ae,query:se,inputHovering:ce,currentPlaceholder:de,menuVisibleOnFocus:ue,isOnComposition:pe,isSilentBlur:he,options:ge,resetInputHeight:_,managePlaceholder:y,showClose:x,selectDisabled:w,iconComponent:k,iconReverse:C,showNewOption:E,emptyText:T,toggleLastOptionHitState:S,resetInputState:A,handleComposition:P,handleMenuEnter:M,handleFocus:L,blur:O,handleBlur:z,handleClearClick:R,handleClose:N,handleKeydownEscape:B,toggleMenu:j,selectOption:F,getValueKey:U,navigateOptions:V,dropMenuVisible:W,focus:J,reference:H,input:G,tooltipRef:Y,popperPaneRef:xe,tags:q,selectWrapper:Z,scrollbar:X,wrapperKls:_e,selectTagsStyle:ye,nsSelect:r}}}),uy={class:"select-trigger"},py=["disabled","autocomplete"],hy={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};var gy=Gf(dy,[["render",function(e,t,r,i,o,l){const n=ka("el-tag"),a=ka("el-tooltip"),s=ka("el-icon"),c=ka("el-input"),d=ka("el-option"),u=ka("el-scrollbar"),p=ka("el-select-menu"),h=Ta("click-outside");return sa((za(),ja("div",{ref:"selectWrapper",class:gl(e.wrapperKls),onClick:t[22]||(t[22]=pd(((...t)=>e.toggleMenu&&e.toggleMenu(...t)),["stop"]))},[qa(a,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:"bottom-start",teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:on((()=>[Ya("div",uy,[e.multiple?(za(),ja("div",{key:0,ref:"tags",class:gl(e.nsSelect.e("tags")),style:dl(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(za(),ja("span",{key:0,class:gl([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[qa(n,{closable:!e.selectDisabled&&!e.selected[0].isDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:e.tagType,"disable-transitions":"",onClose:t[0]||(t[0]=t=>e.deleteTag(t,e.selected[0]))},{default:on((()=>[Ya("span",{class:gl(e.nsSelect.e("tags-text")),style:dl({maxWidth:e.inputWidth-123+"px"})},fl(e.selected[0].currentLabel),7)])),_:1},8,["closable","size","hit","type"]),e.selected.length>1?(za(),Fa(n,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:on((()=>[e.collapseTagsTooltip?(za(),Fa(a,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:on((()=>[Ya("span",{class:gl(e.nsSelect.e("tags-text"))},"+ "+fl(e.selected.length-1),3)])),content:on((()=>[Ya("div",{class:gl(e.nsSelect.e("collapse-tags"))},[(za(!0),ja(Pa,null,rs(e.selected.slice(1),((t,r)=>(za(),ja("div",{key:r,class:gl(e.nsSelect.e("collapse-tag"))},[(za(),Fa(n,{key:e.getValueKey(t),class:"in-tooltip",closable:!e.selectDisabled&&!t.isDisabled,size:e.collapseTagSize,hit:t.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:r=>e.deleteTag(r,t)},{default:on((()=>[Ya("span",{class:gl(e.nsSelect.e("tags-text")),style:dl({maxWidth:e.inputWidth-75+"px"})},fl(t.currentLabel),7)])),_:2},1032,["closable","size","hit","type","onClose"]))],2)))),128))],2)])),_:1},8,["disabled","effect","teleported"])):(za(),ja("span",{key:1,class:gl(e.nsSelect.e("tags-text"))},"+ "+fl(e.selected.length-1),3))])),_:1},8,["size","type"])):Qa("v-if",!0)],2)):Qa("v-if",!0),Qa("
"),e.collapseTags?Qa("v-if",!0):(za(),Fa(qc,{key:1,onAfterLeave:e.resetInputHeight},{default:on((()=>[Ya("span",{class:gl([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(za(!0),ja(Pa,null,rs(e.selected,(t=>(za(),Fa(n,{key:e.getValueKey(t),closable:!e.selectDisabled&&!t.isDisabled,size:e.collapseTagSize,hit:t.hitState,type:e.tagType,"disable-transitions":"",onClose:r=>e.deleteTag(r,t)},{default:on((()=>[Ya("span",{class:gl(e.nsSelect.e("tags-text")),style:dl({maxWidth:e.inputWidth-75+"px"})},fl(t.currentLabel),7)])),_:2},1032,["closable","size","hit","type","onClose"])))),128))],2)])),_:1},8,["onAfterLeave"])),Qa("
"),e.filterable?sa((za(),ja("input",{key:2,ref:"input","onUpdate:modelValue":t[1]||(t[1]=t=>e.query=t),type:"text",class:gl([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:dl({marginLeft:e.prefixWidth&&!e.selected.length||e.tagInMultiLine?`${e.prefixWidth}px`:"",flexGrow:1,width:e.inputLength/(e.inputWidth-32)+"%",maxWidth:e.inputWidth-42+"px"}),onFocus:t[2]||(t[2]=(...t)=>e.handleFocus&&e.handleFocus(...t)),onBlur:t[3]||(t[3]=(...t)=>e.handleBlur&&e.handleBlur(...t)),onKeyup:t[4]||(t[4]=(...t)=>e.managePlaceholder&&e.managePlaceholder(...t)),onKeydown:[t[5]||(t[5]=(...t)=>e.resetInputState&&e.resetInputState(...t)),t[6]||(t[6]=gd(pd((t=>e.navigateOptions("next")),["prevent"]),["down"])),t[7]||(t[7]=gd(pd((t=>e.navigateOptions("prev")),["prevent"]),["up"])),t[8]||(t[8]=gd(((...t)=>e.handleKeydownEscape&&e.handleKeydownEscape(...t)),["esc"])),t[9]||(t[9]=gd(pd(((...t)=>e.selectOption&&e.selectOption(...t)),["stop","prevent"]),["enter"])),t[10]||(t[10]=gd(((...t)=>e.deletePrevTag&&e.deletePrevTag(...t)),["delete"])),t[11]||(t[11]=gd((t=>e.visible=!1),["tab"]))],onCompositionstart:t[12]||(t[12]=(...t)=>e.handleComposition&&e.handleComposition(...t)),onCompositionupdate:t[13]||(t[13]=(...t)=>e.handleComposition&&e.handleComposition(...t)),onCompositionend:t[14]||(t[14]=(...t)=>e.handleComposition&&e.handleComposition(...t)),onInput:t[15]||(t[15]=(...t)=>e.debouncedQueryChange&&e.debouncedQueryChange(...t))},null,46,py)),[[sd,e.query]]):Qa("v-if",!0)],6)):Qa("v-if",!0),qa(c,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=t=>e.selectedLabel=t),type:"text",placeholder:e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:gl([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[17]||(t[17]=gd(pd((t=>e.navigateOptions("next")),["stop","prevent"]),["down"])),t[18]||(t[18]=gd(pd((t=>e.navigateOptions("prev")),["stop","prevent"]),["up"])),gd(pd(e.selectOption,["stop","prevent"]),["enter"]),gd(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=gd((t=>e.visible=!1),["tab"]))],onMouseenter:t[20]||(t[20]=t=>e.inputHovering=!0),onMouseleave:t[21]||(t[21]=t=>e.inputHovering=!1)},is({suffix:on((()=>[e.iconComponent&&!e.showClose?(za(),Fa(s,{key:0,class:gl([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:on((()=>[(za(),Fa(Ea(e.iconComponent)))])),_:1},8,["class"])):Qa("v-if",!0),e.showClose&&e.clearIcon?(za(),Fa(s,{key:1,class:gl([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:on((()=>[(za(),Fa(Ea(e.clearIcon)))])),_:1},8,["class","onClick"])):Qa("v-if",!0)])),_:2},[e.$slots.prefix?{name:"prefix",fn:on((()=>[Ya("div",hy,[os(e.$slots,"prefix")])]))}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])])])),content:on((()=>[qa(p,null,{default:on((()=>[sa(qa(u,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:gl([e.nsSelect.is("empty",!e.allowCreate&&Boolean(e.query)&&0===e.filteredOptionsCount)])},{default:on((()=>[e.showNewOption?(za(),Fa(d,{key:0,value:e.query,created:!0},null,8,["value"])):Qa("v-if",!0),os(e.$slots,"default")])),_:3},8,["wrap-class","view-class","class"]),[[fd,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.size)?(za(),ja(Pa,{key:0},[e.$slots.empty?os(e.$slots,"empty",{key:0}):(za(),ja("p",{key:1,class:gl(e.nsSelect.be("dropdown","empty"))},fl(e.emptyText),3))],64)):Qa("v-if",!0)])),_:3})])),_:3},8,["visible","teleported","popper-class","effect","transition","persistent","onShow"])],2)),[[h,e.handleClose,e.popperPaneRef]])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);var fy=Gf(_n({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=yf("select"),r=Qo(!0),i=ps(),o=Qo([]);cn("ElSelectGroup",No(s({},ol(e))));const l=dn("ElSelect");Pn((()=>{o.value=n(i.subTree)}));const n=e=>{const t=[];return Array.isArray(e.children)&&e.children.forEach((e=>{var r;e.type&&"ElOption"===e.type.name&&e.component&&e.component.proxy?t.push(e.component.proxy):(null==(r=e.children)?void 0:r.length)&&t.push(...n(e))})),t},{groupQueryChange:a}=Wo(l);return ec(a,(()=>{r.value=o.value.some((e=>!0===e.visible))})),{visible:r,ns:t}}}),[["render",function(e,t,r,i,o,l){return sa((za(),ja("ul",{class:gl(e.ns.be("group","wrap"))},[Ya("li",{class:gl(e.ns.be("group","title"))},fl(e.label),3),Ya("li",null,[Ya("ul",{class:gl(e.ns.b("group"))},[os(e.$slots,"default")],2)])],2)),[[fd,e.visible]])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const my=Bg(gy,{Option:ay,OptionGroup:fy}),by=jg(ay);jg(fy);const vy=Og({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:zg},inactiveIcon:{type:zg},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:Function},size:{type:String,validator:qg},tabindex:{type:[String,Number]}}),_y={"update:modelValue":e=>jp(e)||gh(e)||Fp(e),change:e=>jp(e)||gh(e)||Fp(e),input:e=>jp(e)||gh(e)||Fp(e)},yy=["onClick"],xy=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],wy=["aria-hidden"],ky=["aria-hidden"],Cy=["aria-hidden"],Ey=["aria-hidden"];const Ty=Bg(Gf(_n(c(s({},{name:"ElSwitch"}),{props:vy,emits:_y,setup(e,{expose:t,emit:r}){const i=e,o="ElSwitch",l=ps(),{formItem:n}=Cf(),a=ff(),c=yf("switch");bf({from:'"value"',replacement:'"model-value" or "v-model"',scope:o,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},sl((()=>{var e;return!!(null==(e=l.vnode.props)?void 0:e.value)})));const{inputId:d}=Ef(i,{formItemContext:n}),u=mf(sl((()=>i.loading))),p=Qo(!1!==i.modelValue),h=Qo(),g=Qo(),f=sl((()=>[c.b(),c.m(a.value),c.is("disabled",u.value),c.is("checked",v.value)])),m=sl((()=>({width:Ah(i.width)})));ec((()=>i.modelValue),(()=>{p.value=!0})),ec((()=>i.value),(()=>{p.value=!1}));const b=sl((()=>p.value?i.modelValue:i.value)),v=sl((()=>b.value===i.activeValue));[i.activeValue,i.inactiveValue].includes(b.value)||(r("update:modelValue",i.inactiveValue),r("change",i.inactiveValue),r("input",i.inactiveValue)),ec(v,(e=>{var t;h.value.checked=e,i.validateEvent&&(null==(t=null==n?void 0:n.validate)||t.call(n,"change").catch((e=>{})))}));const _=()=>{const e=v.value?i.inactiveValue:i.activeValue;r("update:modelValue",e),r("change",e),r("input",e),Hs((()=>{h.value.checked=v.value}))},y=()=>{if(u.value)return;const{beforeChange:e}=i;if(!e)return void _();const t=e();[mh(t),jp(t)].includes(!0)||Eh(o,"beforeChange must return type `Promise` or `boolean`"),mh(t)?t.then((e=>{e&&_()})).catch((e=>{})):t&&_()},x=sl((()=>c.cssVarBlock(s(s(s({},i.activeColor?{"on-color":i.activeColor}:null),i.inactiveColor?{"off-color":i.inactiveColor}:null),i.borderColor?{"border-color":i.borderColor}:null))));return Pn((()=>{h.value.checked=v.value})),t({focus:()=>{var e,t;null==(t=null==(e=h.value)?void 0:e.focus)||t.call(e)},checked:v}),(e,t)=>(za(),ja("div",{class:gl(tl(f)),style:dl(tl(x)),onClick:pd(y,["prevent"])},[Ya("input",{id:tl(d),ref_key:"input",ref:h,class:gl(tl(c).e("input")),type:"checkbox",role:"switch","aria-checked":tl(v),"aria-disabled":tl(u),name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:tl(u),tabindex:e.tabindex,onChange:_,onKeydown:gd(y,["enter"])},null,42,xy),e.inlinePrompt||!e.inactiveIcon&&!e.inactiveText?Qa("v-if",!0):(za(),ja("span",{key:0,class:gl([tl(c).e("label"),tl(c).em("label","left"),tl(c).is("active",!tl(v))])},[e.inactiveIcon?(za(),Fa(tl(qf),{key:0},{default:on((()=>[(za(),Fa(Ea(e.inactiveIcon)))])),_:1})):Qa("v-if",!0),!e.inactiveIcon&&e.inactiveText?(za(),ja("span",{key:1,"aria-hidden":tl(v)},fl(e.inactiveText),9,wy)):Qa("v-if",!0)],2)),Ya("span",{ref_key:"core",ref:g,class:gl(tl(c).e("core")),style:dl(tl(m))},[e.inlinePrompt?(za(),ja("div",{key:0,class:gl(tl(c).e("inner"))},[e.activeIcon||e.inactiveIcon?(za(),ja(Pa,{key:0},[e.activeIcon?(za(),Fa(tl(qf),{key:0,class:gl([tl(c).is("icon"),tl(v)?tl(c).is("show"):tl(c).is("hide")])},{default:on((()=>[(za(),Fa(Ea(e.activeIcon)))])),_:1},8,["class"])):Qa("v-if",!0),e.inactiveIcon?(za(),Fa(tl(qf),{key:1,class:gl([tl(c).is("icon"),tl(v)?tl(c).is("hide"):tl(c).is("show")])},{default:on((()=>[(za(),Fa(Ea(e.inactiveIcon)))])),_:1},8,["class"])):Qa("v-if",!0)],64)):e.activeText||e.inactiveIcon?(za(),ja(Pa,{key:1},[e.activeText?(za(),ja("span",{key:0,class:gl([tl(c).is("text"),tl(v)?tl(c).is("show"):tl(c).is("hide")]),"aria-hidden":!tl(v)},fl(e.activeText.substring(0,3)),11,ky)):Qa("v-if",!0),e.inactiveText?(za(),ja("span",{key:1,class:gl([tl(c).is("text"),tl(v)?tl(c).is("hide"):tl(c).is("show")]),"aria-hidden":tl(v)},fl(e.inactiveText.substring(0,3)),11,Cy)):Qa("v-if",!0)],64)):Qa("v-if",!0)],2)):Qa("v-if",!0),Ya("div",{class:gl(tl(c).e("action"))},[e.loading?(za(),Fa(tl(qf),{key:0,class:gl(tl(c).is("loading"))},{default:on((()=>[qa(tl(mg))])),_:1},8,["class"])):Qa("v-if",!0)],2)],6),e.inlinePrompt||!e.activeIcon&&!e.activeText?Qa("v-if",!0):(za(),ja("span",{key:1,class:gl([tl(c).e("label"),tl(c).em("label","right"),tl(c).is("active",tl(v))])},[e.activeIcon?(za(),Fa(tl(qf),{key:0},{default:on((()=>[(za(),Fa(Ea(e.activeIcon)))])),_:1})):Qa("v-if",!0),!e.activeIcon&&e.activeText?(za(),ja("span",{key:1,"aria-hidden":!tl(v)},fl(e.activeText),9,Ey)):Qa("v-if",!0)],2))],14,yy))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]])); /*! Element Plus v2.2.16 */var Sy,Ay,Py={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:"取消"}}},Dy={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 */Sy="undefined"!=typeof window?window:ce,Ay=function(e,t){var r=[],i=Object.getPrototypeOf,o=r.slice,l=function(e){return r.concat.apply([],e)},n=r.push,a=r.indexOf,s={},c=s.toString,d=s.hasOwnProperty,u=d.toString,p=u.call(Object),h={},g=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},f=function(e){return null!=e&&e===e.window},m=e.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function v(e,t,r){var i,o,l=(r=r||m).createElement("script");if(l.text=e,t)for(i in b)(o=t[i]||t.getAttribute&&t.getAttribute(i))&&l.setAttribute(i,o);r.head.appendChild(l).parentNode.removeChild(l)}function _(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?s[c.call(e)]||"object":typeof e}var y="3.6.3",x=function(e,t){return new x.fn.init(e,t)};function w(e){var t=!!e&&"length"in e&&e.length,r=_(e);return!g(e)&&!f(e)&&("array"===r||0===t||"number"==typeof t&&t>0&&t-1 in e)}x.fn=x.prototype={jquery:y,constructor:x,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=x.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return x.each(this,e)},map:function(e){return this.pushStack(x.map(this,(function(t,r){return e.call(t,r,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(x.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(x.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,r=+e+(e<0?t:0);return this.pushStack(r>=0&&r+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),G=new RegExp(N+"|>"),Y=new RegExp(F),q=new RegExp("^"+B+"$"),Z={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+j),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("^(?:"+R+")$","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")},X=/HTML$/i,Q=/^(?: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"),re=function(e,t){var r="0x"+e.slice(1)-65536;return t||(r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320))},ie=/([\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},le=function(){p()},ne=ye((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{L.apply(D=O.call(x.childNodes),x.childNodes),D[x.childNodes.length].nodeType}catch(Ee){L={apply:D.length?function(e,t){M.apply(e,O.call(t))}:function(e,t){for(var r=e.length,i=0;e[r++]=t[i++];);e.length=r-1}}}function ae(e,t,i,o){var l,a,c,d,u,g,b,v=t&&t.ownerDocument,x=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==x&&9!==x&&11!==x)return i;if(!o&&(p(t),t=t||h,f)){if(11!==x&&(u=$.exec(e)))if(l=u[1]){if(9===x){if(!(c=t.getElementById(l)))return i;if(c.id===l)return i.push(c),i}else if(v&&(c=v.getElementById(l))&&_(t,c)&&c.id===l)return i.push(c),i}else{if(u[2])return L.apply(i,t.getElementsByTagName(e)),i;if((l=u[3])&&r.getElementsByClassName&&t.getElementsByClassName)return L.apply(i,t.getElementsByClassName(l)),i}if(r.qsa&&!S[e+" "]&&(!m||!m.test(e))&&(1!==x||"object"!==t.nodeName.toLowerCase())){if(b=e,v=t,1===x&&(G.test(e)||H.test(e))){for((v=ee.test(e)&&be(t.parentNode)||t)===t&&r.scope||((d=t.getAttribute("id"))?d=d.replace(ie,oe):t.setAttribute("id",d=y)),a=(g=n(e)).length;a--;)g[a]=(d?"#"+d:":scope")+" "+_e(g[a]);b=g.join(",")}try{if(r.cssSupportsSelector&&!CSS.supports("selector(:is("+b+"))"))throw new Error;return L.apply(i,v.querySelectorAll(b)),i}catch(w){S(e,!0)}finally{d===y&&t.removeAttribute("id")}}}return s(e.replace(V,"$1"),t,i,o)}function se(){var e=[];return function t(r,o){return e.push(r+" ")>i.cacheLength&&delete t[e.shift()],t[r+" "]=o}}function ce(e){return e[y]=!0,e}function de(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(Ee){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var r=e.split("|"),o=r.length;o--;)i.attrHandle[r[o]]=t}function pe(e,t){var r=t&&e,i=r&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(r)for(;r=r.nextSibling;)if(r===t)return-1;return e?1:-1}function he(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function ge(e){return function(t){var r=t.nodeName.toLowerCase();return("input"===r||"button"===r)&&t.type===e}}function fe(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&&ne(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return ce((function(t){return t=+t,ce((function(r,i){for(var o,l=e([],r.length,t),n=l.length;n--;)r[o=l[n]]&&(r[o]=!(i[o]=r[o]))}))}))}function be(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in r=ae.support={},l=ae.isXML=function(e){var t=e&&e.namespaceURI,r=e&&(e.ownerDocument||e).documentElement;return!X.test(t||r&&r.nodeName||"HTML")},p=ae.setDocument=function(e){var t,o,n=e?e.ownerDocument||e:x;return n!=h&&9===n.nodeType&&n.documentElement?(g=(h=n).documentElement,f=!l(h),x!=h&&(o=h.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",le,!1):o.attachEvent&&o.attachEvent("onunload",le)),r.scope=de((function(e){return g.appendChild(e).appendChild(h.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),r.cssSupportsSelector=de((function(){return CSS.supports("selector(*)")&&h.querySelectorAll(":is(:jqfake)")&&!CSS.supports("selector(:is(*,:jqfake))")})),r.attributes=de((function(e){return e.className="i",!e.getAttribute("className")})),r.getElementsByTagName=de((function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length})),r.getElementsByClassName=J.test(h.getElementsByClassName),r.getById=de((function(e){return g.appendChild(e).id=y,!h.getElementsByName||!h.getElementsByName(y).length})),r.getById?(i.filter.ID=function(e){var t=e.replace(te,re);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&f){var r=t.getElementById(e);return r?[r]:[]}}):(i.filter.ID=function(e){var t=e.replace(te,re);return function(e){var r=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return r&&r.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&f){var r,i,o,l=t.getElementById(e);if(l){if((r=l.getAttributeNode("id"))&&r.value===e)return[l];for(o=t.getElementsByName(e),i=0;l=o[i++];)if((r=l.getAttributeNode("id"))&&r.value===e)return[l]}return[]}}),i.find.TAG=r.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):r.qsa?t.querySelectorAll(e):void 0}:function(e,t){var r,i=[],o=0,l=t.getElementsByTagName(e);if("*"===e){for(;r=l[o++];)1===r.nodeType&&i.push(r);return i}return l},i.find.CLASS=r.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&f)return t.getElementsByClassName(e)},b=[],m=[],(r.qsa=J.test(h.querySelectorAll))&&(de((function(e){var t;g.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+R+")"),e.querySelectorAll("[id~="+y+"-]").length||m.push("~="),(t=h.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+y+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),de((function(e){e.innerHTML="";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),g.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(r.matchesSelector=J.test(v=g.matches||g.webkitMatchesSelector||g.mozMatchesSelector||g.oMatchesSelector||g.msMatchesSelector))&&de((function(e){r.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),b.push("!=",F)})),r.cssSupportsSelector||m.push(":has"),m=m.length&&new RegExp(m.join("|")),b=b.length&&new RegExp(b.join("|")),t=J.test(g.compareDocumentPosition),_=t||J.test(g.contains)?function(e,t){var r=9===e.nodeType&&e.documentElement||e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},A=t?function(e,t){if(e===t)return u=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!r.sortDetached&&t.compareDocumentPosition(e)===i?e==h||e.ownerDocument==x&&_(x,e)?-1:t==h||t.ownerDocument==x&&_(x,t)?1:d?z(d,e)-z(d,t):0:4&i?-1:1)}:function(e,t){if(e===t)return u=!0,0;var r,i=0,o=e.parentNode,l=t.parentNode,n=[e],a=[t];if(!o||!l)return e==h?-1:t==h?1:o?-1:l?1:d?z(d,e)-z(d,t):0;if(o===l)return pe(e,t);for(r=e;r=r.parentNode;)n.unshift(r);for(r=t;r=r.parentNode;)a.unshift(r);for(;n[i]===a[i];)i++;return i?pe(n[i],a[i]):n[i]==x?-1:a[i]==x?1:0},h):h},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if(p(e),r.matchesSelector&&f&&!S[t+" "]&&(!b||!b.test(t))&&(!m||!m.test(t)))try{var i=v.call(e,t);if(i||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(Ee){S(t,!0)}return ae(t,h,null,[e]).length>0},ae.contains=function(e,t){return(e.ownerDocument||e)!=h&&p(e),_(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!=h&&p(e);var o=i.attrHandle[t.toLowerCase()],l=o&&P.call(i.attrHandle,t.toLowerCase())?o(e,t,!f):void 0;return void 0!==l?l:r.attributes||!f?e.getAttribute(t):(l=e.getAttributeNode(t))&&l.specified?l.value:null},ae.escape=function(e){return(e+"").replace(ie,oe)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,i=[],o=0,l=0;if(u=!r.detectDuplicates,d=!r.sortStable&&e.slice(0),e.sort(A),u){for(;t=e[l++];)t===e[l]&&(o=i.push(l));for(;o--;)e.splice(i[o],1)}return d=null,e},o=ae.getText=function(e){var t,r="",i=0,l=e.nodeType;if(l){if(1===l||9===l||11===l){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)r+=o(e)}else if(3===l||4===l)return e.nodeValue}else for(;t=e[i++];)r+=o(t);return r},(i=ae.selectors={cacheLength:50,createPseudo:ce,match:Z,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,re),e[3]=(e[3]||e[4]||e[5]||"").replace(te,re),"~="===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]||ae.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]&&ae.error(e[0]),e},PSEUDO:function(e){var t,r=!e[6]&&e[2];return Z.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":r&&Y.test(r)&&(t=n(r,!0))&&(t=r.indexOf(")",r.length-t)-r.length)&&(e[0]=e[0].slice(0,t),e[2]=r.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,re).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+N+"|$)"))&&C(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,r){return function(i){var o=ae.attr(i,e);return null==o?"!="===t:!t||(o+="","="===t?o===r:"!="===t?o!==r:"^="===t?r&&0===o.indexOf(r):"*="===t?r&&o.indexOf(r)>-1:"$="===t?r&&o.slice(-r.length)===r:"~="===t?(" "+o.replace(U," ")+" ").indexOf(r)>-1:"|="===t&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,r,i,o){var l="nth"!==e.slice(0,3),n="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===o?function(e){return!!e.parentNode}:function(t,r,s){var c,d,u,p,h,g,f=l!==n?"nextSibling":"previousSibling",m=t.parentNode,b=a&&t.nodeName.toLowerCase(),v=!s&&!a,_=!1;if(m){if(l){for(;f;){for(p=t;p=p[f];)if(a?p.nodeName.toLowerCase()===b:1===p.nodeType)return!1;g=f="only"===e&&!g&&"nextSibling"}return!0}if(g=[n?m.firstChild:m.lastChild],n&&v){for(_=(h=(c=(d=(u=(p=m)[y]||(p[y]={}))[p.uniqueID]||(u[p.uniqueID]={}))[e]||[])[0]===w&&c[1])&&c[2],p=h&&m.childNodes[h];p=++h&&p&&p[f]||(_=h=0)||g.pop();)if(1===p.nodeType&&++_&&p===t){d[e]=[w,h,_];break}}else if(v&&(_=h=(c=(d=(u=(p=t)[y]||(p[y]={}))[p.uniqueID]||(u[p.uniqueID]={}))[e]||[])[0]===w&&c[1]),!1===_)for(;(p=++h&&p&&p[f]||(_=h=0)||g.pop())&&((a?p.nodeName.toLowerCase()!==b:1!==p.nodeType)||!++_||(v&&((d=(u=p[y]||(p[y]={}))[p.uniqueID]||(u[p.uniqueID]={}))[e]=[w,_]),p!==t)););return(_-=o)===i||_%i==0&&_/i>=0}}},PSEUDO:function(e,t){var r,o=i.pseudos[e]||i.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return o[y]?o(t):o.length>1?(r=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,r){for(var i,l=o(e,t),n=l.length;n--;)e[i=z(e,l[n])]=!(r[i]=l[n])})):function(e){return o(e,0,r)}):o}},pseudos:{not:ce((function(e){var t=[],r=[],i=a(e.replace(V,"$1"));return i[y]?ce((function(e,t,r,o){for(var l,n=i(e,null,o,[]),a=e.length;a--;)(l=n[a])&&(e[a]=!(t[a]=l))})):function(e,o,l){return t[0]=e,i(t,null,l,r),t[0]=null,!r.pop()}})),has:ce((function(e){return function(t){return ae(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,re),function(t){return(t.textContent||o(t)).indexOf(e)>-1}})),lang:ce((function(e){return q.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(te,re).toLowerCase(),function(t){var r;do{if(r=f?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(r=r.toLowerCase())===e||0===r.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var r=e.location&&e.location.hash;return r&&r.slice(1)===t.id},root:function(e){return e===g},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:fe(!1),disabled:fe(!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!i.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return Q.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:me((function(){return[0]})),last:me((function(e,t){return[t-1]})),eq:me((function(e,t,r){return[r<0?r+t:r]})),even:me((function(e,t){for(var r=0;rt?t:r;--i>=0;)e.push(i);return e})),gt:me((function(e,t,r){for(var i=r<0?r+t:r;++i1?function(t,r,i){for(var o=e.length;o--;)if(!e[o](t,r,i))return!1;return!0}:e[0]}function we(e,t,r,i,o){for(var l,n=[],a=0,s=e.length,c=null!=t;a-1&&(l[c]=!(n[c]=u))}}else b=we(b===n?b.splice(g,b.length):b),o?o(null,n,b,s):L.apply(n,b)}))}function Ce(e){for(var t,r,o,l=e.length,n=i.relative[e[0].type],a=n||i.relative[" "],s=n?1:0,d=ye((function(e){return e===t}),a,!0),u=ye((function(e){return z(t,e)>-1}),a,!0),p=[function(e,r,i){var o=!n&&(i||r!==c)||((t=r).nodeType?d(e,r,i):u(e,r,i));return t=null,o}];s1&&xe(p),s>1&&_e(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(V,"$1"),r,s0,o=e.length>0,l=function(l,n,a,s,d){var u,g,m,b=0,v="0",_=l&&[],y=[],x=c,k=l||o&&i.find.TAG("*",d),C=w+=null==x?1:Math.random()||.1,E=k.length;for(d&&(c=n==h||n||d);v!==E&&null!=(u=k[v]);v++){if(o&&u){for(g=0,n||u.ownerDocument==h||(p(u),a=!f);m=e[g++];)if(m(u,n||h,a)){s.push(u);break}d&&(w=C)}r&&((u=!m&&u)&&b--,l&&_.push(u))}if(b+=v,r&&v!==b){for(g=0;m=t[g++];)m(_,y,n,a);if(l){if(b>0)for(;v--;)_[v]||y[v]||(y[v]=I.call(s));y=we(y)}L.apply(s,y),d&&!l&&y.length>0&&b+t.length>1&&ae.uniqueSort(s)}return d&&(w=C,c=x),_};return r?ce(l):l}(l,o))).selector=e}return a},s=ae.select=function(e,t,r,o){var l,s,c,d,u,p="function"==typeof e&&e,h=!o&&n(e=p.selector||e);if(r=r||[],1===h.length){if((s=h[0]=h[0].slice(0)).length>2&&"ID"===(c=s[0]).type&&9===t.nodeType&&f&&i.relative[s[1].type]){if(!(t=(i.find.ID(c.matches[0].replace(te,re),t)||[])[0]))return r;p&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(l=Z.needsContext.test(e)?0:s.length;l--&&(c=s[l],!i.relative[d=c.type]);)if((u=i.find[d])&&(o=u(c.matches[0].replace(te,re),ee.test(s[0].type)&&be(t.parentNode)||t))){if(s.splice(l,1),!(e=o.length&&_e(s)))return L.apply(r,o),r;break}}return(p||a(e,h))(o,t,!f,r,!t||ee.test(e)&&be(t.parentNode)||t),r},r.sortStable=y.split("").sort(A).join("")===y,r.detectDuplicates=!!u,p(),r.sortDetached=de((function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))})),de((function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")}))||ue("type|href|height|width",(function(e,t,r){if(!r)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),r.attributes&&de((function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||ue("value",(function(e,t,r){if(!r&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),de((function(e){return null==e.getAttribute("disabled")}))||ue(R,(function(e,t,r){var i;if(!r)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null})),ae}(e);x.find=k,x.expr=k.selectors,x.expr[":"]=x.expr.pseudos,x.uniqueSort=x.unique=k.uniqueSort,x.text=k.getText,x.isXMLDoc=k.isXML,x.contains=k.contains,x.escapeSelector=k.escape;var C=function(e,t,r){for(var i=[],o=void 0!==r;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&x(e).is(r))break;i.push(e)}return i},E=function(e,t){for(var r=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&r.push(e);return r},T=x.expr.match.needsContext;function S(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function P(e,t,r){return g(t)?x.grep(e,(function(e,i){return!!t.call(e,i,e)!==r})):t.nodeType?x.grep(e,(function(e){return e===t!==r})):"string"!=typeof t?x.grep(e,(function(e){return a.call(t,e)>-1!==r})):x.filter(t,e,r)}x.filter=function(e,t,r){var i=t[0];return r&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?x.find.matchesSelector(i,e)?[i]:[]:x.find.matches(e,x.grep(t,(function(e){return 1===e.nodeType})))},x.fn.extend({find:function(e){var t,r,i=this.length,o=this;if("string"!=typeof e)return this.pushStack(x(e).filter((function(){for(t=0;t1?x.uniqueSort(r):r},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&&T.test(e)?x(e):e||[],!1).length}});var D,I=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(e,t,r){var i,o;if(!e)return this;if(r=r||D,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:I.exec(e))||!i[1]&&t)return!t||t.jquery?(t||r).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:m,!0)),A.test(i[1])&&x.isPlainObject(t))for(i in t)g(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(o=m.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==r.ready?r.ready(e):e(x):x.makeArray(e,this)}).prototype=x.fn,D=x(m);var M=/^(?: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}x.fn.extend({has:function(e){var t=x(e,this),r=t.length;return this.filter((function(){for(var e=0;e-1:1===r.nodeType&&x.find.matchesSelector(r,e))){l.push(r);break}return this.pushStack(l.length>1?x.uniqueSort(l):l)},index:function(e){return e?"string"==typeof e?a.call(x(e),this[0]):a.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return C(e,"parentNode")},parentsUntil:function(e,t,r){return C(e,"parentNode",r)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return C(e,"nextSibling")},prevAll:function(e){return C(e,"previousSibling")},nextUntil:function(e,t,r){return C(e,"nextSibling",r)},prevUntil:function(e,t,r){return C(e,"previousSibling",r)},siblings:function(e){return E((e.parentNode||{}).firstChild,e)},children:function(e){return E(e.firstChild)},contents:function(e){return null!=e.contentDocument&&i(e.contentDocument)?e.contentDocument:(S(e,"template")&&(e=e.content||e),x.merge([],e.childNodes))}},(function(e,t){x.fn[e]=function(r,i){var o=x.map(this,t,r);return"Until"!==e.slice(-5)&&(i=r),i&&"string"==typeof i&&(o=x.filter(i,o)),this.length>1&&(L[e]||x.uniqueSort(o),M.test(e)&&o.reverse()),this.pushStack(o)}}));var z=/[^\x20\t\r\n\f]+/g;function R(e){return e}function N(e){throw e}function B(e,t,r,i){var o;try{e&&g(o=e.promise)?o.call(e).done(t).fail(r):e&&g(o=e.then)?o.call(e,t,r):t.apply(void 0,[e].slice(i))}catch(l){r.apply(void 0,[l])}}x.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return x.each(e.match(z)||[],(function(e,r){t[r]=!0})),t}(e):x.extend({},e);var t,r,i,o,l=[],n=[],a=-1,s=function(){for(o=o||e.once,i=t=!0;n.length;a=-1)for(r=n.shift();++a-1;)l.splice(r,1),r<=a&&a--})),this},has:function(e){return e?x.inArray(e,l)>-1:l.length>0},empty:function(){return l&&(l=[]),this},disable:function(){return o=n=[],l=r="",this},disabled:function(){return!l},lock:function(){return o=n=[],r||t||(l=r=""),this},locked:function(){return!!o},fireWith:function(e,r){return o||(r=[e,(r=r||[]).slice?r.slice():r],n.push(r),t||s()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},x.extend({Deferred:function(t){var r=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],i="pending",o={state:function(){return i},always:function(){return l.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return x.Deferred((function(t){x.each(r,(function(r,i){var o=g(e[i[4]])&&e[i[4]];l[i[1]]((function(){var e=o&&o.apply(this,arguments);e&&g(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[i[0]+"With"](this,o?[e]:arguments)}))})),e=null})).promise()},then:function(t,i,o){var l=0;function n(t,r,i,o){return function(){var a=this,s=arguments,c=function(){var e,c;if(!(t=l&&(i!==N&&(a=void 0,s=[e]),r.rejectWith(a,s))}};t?d():(x.Deferred.getStackHook&&(d.stackTrace=x.Deferred.getStackHook()),e.setTimeout(d))}}return x.Deferred((function(e){r[0][3].add(n(0,e,g(o)?o:R,e.notifyWith)),r[1][3].add(n(0,e,g(t)?t:R)),r[2][3].add(n(0,e,g(i)?i:N))})).promise()},promise:function(e){return null!=e?x.extend(e,o):o}},l={};return x.each(r,(function(e,t){var n=t[2],a=t[5];o[t[1]]=n.add,a&&n.add((function(){i=a}),r[3-e][2].disable,r[3-e][3].disable,r[0][2].lock,r[0][3].lock),n.add(t[3].fire),l[t[0]]=function(){return l[t[0]+"With"](this===l?void 0:this,arguments),this},l[t[0]+"With"]=n.fireWith})),o.promise(l),t&&t.call(l,l),l},when:function(e){var t=arguments.length,r=t,i=Array(r),l=o.call(arguments),n=x.Deferred(),a=function(e){return function(r){i[e]=this,l[e]=arguments.length>1?o.call(arguments):r,--t||n.resolveWith(i,l)}};if(t<=1&&(B(e,n.done(a(r)).resolve,n.reject,!t),"pending"===n.state()||g(l[r]&&l[r].then)))return n.then();for(;r--;)B(l[r],a(r),n.reject);return n.promise()}});var j=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(t,r){e.console&&e.console.warn&&t&&j.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,r)},x.readyException=function(t){e.setTimeout((function(){throw t}))};var F=x.Deferred();function U(){m.removeEventListener("DOMContentLoaded",U),e.removeEventListener("load",U),x.ready()}x.fn.ready=function(e){return F.then(e).catch((function(e){x.readyException(e)})),this},x.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==e&&--x.readyWait>0||F.resolveWith(m,[x]))}}),x.ready.then=F.then,"complete"===m.readyState||"loading"!==m.readyState&&!m.documentElement.doScroll?e.setTimeout(x.ready):(m.addEventListener("DOMContentLoaded",U),e.addEventListener("load",U));var V=function(e,t,r,i,o,l,n){var a=0,s=e.length,c=null==r;if("object"===_(r))for(a in o=!0,r)V(e,t,a,r[a],!0,l,n);else if(void 0!==i&&(o=!0,g(i)||(n=!0),c&&(n?(t.call(e,i),t=null):(c=t,t=function(e,t,r){return c.call(x(e),r)})),t))for(;a1,null,!0)},removeData:function(e){return this.each((function(){Q.remove(this,e)}))}}),x.extend({queue:function(e,t,r){var i;if(e)return t=(t||"fx")+"queue",i=X.get(e,t),r&&(!i||Array.isArray(r)?i=X.access(e,t,x.makeArray(r)):i.push(r)),i||[]},dequeue:function(e,t){t=t||"fx";var r=x.queue(e,t),i=r.length,o=r.shift(),l=x._queueHooks(e,t);"inprogress"===o&&(o=r.shift(),i--),o&&("fx"===t&&r.unshift("inprogress"),delete l.stop,o.call(e,(function(){x.dequeue(e,t)}),l)),!i&&l&&l.empty.fire()},_queueHooks:function(e,t){var r=t+"queueHooks";return X.get(e,r)||X.access(e,r,{empty:x.Callbacks("once memory").add((function(){X.remove(e,[t+"queue",r])}))})}}),x.fn.extend({queue:function(e,t){var r=2;return"string"!=typeof e&&(t=e,e="fx",r--),arguments.length\x20\t\r\n\f]*)/i,fe=/^$|^module$|\/(?:java|ecma)script/i;ue=m.createDocumentFragment().appendChild(m.createElement("div")),(pe=m.createElement("input")).setAttribute("type","radio"),pe.setAttribute("checked","checked"),pe.setAttribute("name","t"),ue.appendChild(pe),h.checkClone=ue.cloneNode(!0).cloneNode(!0).lastChild.checked,ue.innerHTML="",h.noCloneChecked=!!ue.cloneNode(!0).lastChild.defaultValue,ue.innerHTML="",h.option=!!ue.lastChild;var me={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function be(e,t){var r;return r=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&S(e,t)?x.merge([e],r):r}function ve(e,t){for(var r=0,i=e.length;r",""]);var _e=/<|&#?\w+;/;function ye(e,t,r,i,o){for(var l,n,a,s,c,d,u=t.createDocumentFragment(),p=[],h=0,g=e.length;h-1)o&&o.push(l);else if(c=oe(l),n=be(u.appendChild(l),"script"),c&&ve(n),r)for(d=0;l=n[d++];)fe.test(l.type||"")&&r.push(l);return u}var xe=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function ke(){return!1}function Ce(e,t){return e===function(){try{return m.activeElement}catch(e){}}()==("focus"===t)}function Ee(e,t,r,i,o,l){var n,a;if("object"==typeof t){for(a in"string"!=typeof r&&(i=i||r,r=void 0),t)Ee(e,a,r,i,t[a],l);return e}if(null==i&&null==o?(o=r,i=r=void 0):null==o&&("string"==typeof r?(o=i,i=void 0):(o=i,i=r,r=void 0)),!1===o)o=ke;else if(!o)return e;return 1===l&&(n=o,(o=function(e){return x().off(e),n.apply(this,arguments)}).guid=n.guid||(n.guid=x.guid++)),e.each((function(){x.event.add(this,t,o,i,r)}))}function Te(e,t,r){r?(X.set(e,t,!1),x.event.add(e,t,{namespace:!1,handler:function(e){var i,l,n=X.get(this,t);if(1&e.isTrigger&&this[t]){if(n.length)(x.event.special[t]||{}).delegateType&&e.stopPropagation();else if(n=o.call(arguments),X.set(this,t,n),i=r(this,t),this[t](),n!==(l=X.get(this,t))||i?X.set(this,t,!1):l={},n!==l)return e.stopImmediatePropagation(),e.preventDefault(),l&&l.value}else n.length&&(X.set(this,t,{value:x.event.trigger(x.extend(n[0],x.Event.prototype),n.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===X.get(e,t)&&x.event.add(e,t,we)}x.event={global:{},add:function(e,t,r,i,o){var l,n,a,s,c,d,u,p,h,g,f,m=X.get(e);if(q(e))for(r.handler&&(r=(l=r).handler,o=l.selector),o&&x.find.matchesSelector(ie,o),r.guid||(r.guid=x.guid++),(s=m.events)||(s=m.events=Object.create(null)),(n=m.handle)||(n=m.handle=function(t){return void 0!==x&&x.event.triggered!==t.type?x.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(z)||[""]).length;c--;)h=f=(a=xe.exec(t[c])||[])[1],g=(a[2]||"").split(".").sort(),h&&(u=x.event.special[h]||{},h=(o?u.delegateType:u.bindType)||h,u=x.event.special[h]||{},d=x.extend({type:h,origType:f,data:i,handler:r,guid:r.guid,selector:o,needsContext:o&&x.expr.match.needsContext.test(o),namespace:g.join(".")},l),(p=s[h])||((p=s[h]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,i,g,n)||e.addEventListener&&e.addEventListener(h,n)),u.add&&(u.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),o?p.splice(p.delegateCount++,0,d):p.push(d),x.event.global[h]=!0)},remove:function(e,t,r,i,o){var l,n,a,s,c,d,u,p,h,g,f,m=X.hasData(e)&&X.get(e);if(m&&(s=m.events)){for(c=(t=(t||"").match(z)||[""]).length;c--;)if(h=f=(a=xe.exec(t[c])||[])[1],g=(a[2]||"").split(".").sort(),h){for(u=x.event.special[h]||{},p=s[h=(i?u.delegateType:u.bindType)||h]||[],a=a[2]&&new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"),n=l=p.length;l--;)d=p[l],!o&&f!==d.origType||r&&r.guid!==d.guid||a&&!a.test(d.namespace)||i&&i!==d.selector&&("**"!==i||!d.selector)||(p.splice(l,1),d.selector&&p.delegateCount--,u.remove&&u.remove.call(e,d));n&&!p.length&&(u.teardown&&!1!==u.teardown.call(e,g,m.handle)||x.removeEvent(e,h,m.handle),delete s[h])}else for(h in s)x.event.remove(e,h+t[c],r,i,!0);x.isEmptyObject(s)&&X.remove(e,"handle events")}},dispatch:function(e){var t,r,i,o,l,n,a=new Array(arguments.length),s=x.event.fix(e),c=(X.get(this,"events")||Object.create(null))[s.type]||[],d=x.event.special[s.type]||{};for(a[0]=s,t=1;t=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(l=[],n={},r=0;r-1:x.find(o,this,null,[c]).length),n[o]&&l.push(i);l.length&&a.push({elem:c,handlers:l})}return c=this,s\s*$/g;function De(e,t){return S(e,"table")&&S(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Me(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var r,i,o,l,n,a;if(1===t.nodeType){if(X.hasData(e)&&(a=X.get(e).events))for(o in X.remove(t,"handle events"),a)for(r=0,i=a[o].length;r1&&"string"==typeof m&&!h.checkClone&&Ae.test(m))return e.each((function(o){var l=e.eq(o);b&&(t[0]=m.call(this,o,l.html())),Oe(l,t,r,i)}));if(p&&(n=(o=ye(t,e[0].ownerDocument,!1,e,i)).firstChild,1===o.childNodes.length&&(o=n),n||i)){for(s=(a=x.map(be(o,"script"),Ie)).length;u0&&ve(n,!u&&be(e,"script")),d},cleanData:function(e){for(var t,r,i,o=x.event.special,l=0;void 0!==(r=e[l]);l++)if(q(r)){if(t=r[X.expando]){if(t.events)for(i in t.events)o[i]?x.event.remove(r,i):x.removeEvent(r,i,t.handle);r[X.expando]=void 0}r[Q.expando]&&(r[Q.expando]=void 0)}}}),x.fn.extend({detach:function(e){return ze(this,e,!0)},remove:function(e){return ze(this,e)},text:function(e){return V(this,(function(e){return void 0===e?x.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||De(this,e).appendChild(e)}))},prepend:function(){return Oe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=De(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&&(x.cleanData(be(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return x.clone(this,e,t)}))},html:function(e){return V(this,(function(e){var t=this[0]||{},r=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Se.test(e)&&!me[(ge.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;r=0&&(s+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-l-s-a-.5))||0),s}function $e(e,t,r){var i=Be(e),o=(!h.boxSizingReliable()||r)&&"border-box"===x.css(e,"boxSizing",!1,i),l=o,n=Ve(e,t,i),a="offset"+t[0].toUpperCase()+t.slice(1);if(Re.test(n)){if(!r)return n;n="auto"}return(!h.boxSizingReliable()&&o||!h.reliableTrDimensions()&&S(e,"tr")||"auto"===n||!parseFloat(n)&&"inline"===x.css(e,"display",!1,i))&&e.getClientRects().length&&(o="border-box"===x.css(e,"boxSizing",!1,i),(l=a in e)&&(n=e[a])),(n=parseFloat(n)||0)+Je(e,t,r||(o?"border":"content"),l,i,n)+"px"}function et(e,t,r,i,o){return new et.prototype.init(e,t,r,i,o)}x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var r=Ve(e,"opacity");return""===r?"1":r}}}},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,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,l,n,a=Y(t),s=Ne.test(t),c=e.style;if(s||(t=qe(a)),n=x.cssHooks[t]||x.cssHooks[a],void 0===r)return n&&"get"in n&&void 0!==(o=n.get(e,!1,i))?o:c[t];"string"==(l=typeof r)&&(o=te.exec(r))&&o[1]&&(r=ae(e,t,o),l="number"),null!=r&&r==r&&("number"!==l||s||(r+=o&&o[3]||(x.cssNumber[a]?"":"px")),h.clearCloneStyle||""!==r||0!==t.indexOf("background")||(c[t]="inherit"),n&&"set"in n&&void 0===(r=n.set(e,r,i))||(s?c.setProperty(t,r):c[t]=r))}},css:function(e,t,r,i){var o,l,n,a=Y(t);return Ne.test(t)||(t=qe(a)),(n=x.cssHooks[t]||x.cssHooks[a])&&"get"in n&&(o=n.get(e,!0,r)),void 0===o&&(o=Ve(e,t,i)),"normal"===o&&t in Qe&&(o=Qe[t]),""===r||r?(l=parseFloat(o),!0===r||isFinite(l)?l||0:o):o}}),x.each(["height","width"],(function(e,t){x.cssHooks[t]={get:function(e,r,i){if(r)return!Ze.test(x.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?$e(e,t,i):je(e,Xe,(function(){return $e(e,t,i)}))},set:function(e,r,i){var o,l=Be(e),n=!h.scrollboxSize()&&"absolute"===l.position,a=(n||i)&&"border-box"===x.css(e,"boxSizing",!1,l),s=i?Je(e,t,i,a,l):0;return a&&n&&(s-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(l[t])-Je(e,t,"border",!1,l)-.5)),s&&(o=te.exec(r))&&"px"!==(o[3]||"px")&&(e.style[t]=r,r=x.css(e,t)),Ke(0,r,s)}}})),x.cssHooks.marginLeft=We(h.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ve(e,"marginLeft"))||e.getBoundingClientRect().left-je(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),x.each({margin:"",padding:"",border:"Width"},(function(e,t){x.cssHooks[e+t]={expand:function(r){for(var i=0,o={},l="string"==typeof r?r.split(" "):[r];i<4;i++)o[e+re[i]+t]=l[i]||l[i-2]||l[0];return o}},"margin"!==e&&(x.cssHooks[e+t].set=Ke)})),x.fn.extend({css:function(e,t){return V(this,(function(e,t,r){var i,o,l={},n=0;if(Array.isArray(t)){for(i=Be(e),o=t.length;n1)}}),x.Tween=et,et.prototype={constructor:et,init:function(e,t,r,i,o,l){this.elem=e,this.prop=r,this.easing=o||x.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=l||(x.cssNumber[r]?"":"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,r=et.propHooks[this.prop];return this.options.duration?this.pos=t=x.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),r&&r.set?r.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=x.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):1!==e.elem.nodeType||!x.cssHooks[e.prop]&&null==e.elem.style[qe(e.prop)]?e.elem[e.prop]=e.now:x.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)}},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},x.fx=et.prototype.init,x.fx.step={};var tt,rt,it=/^(?:toggle|show|hide)$/,ot=/queueHooks$/;function lt(){rt&&(!1===m.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(lt):e.setTimeout(lt,x.fx.interval),x.fx.tick())}function nt(){return e.setTimeout((function(){tt=void 0})),tt=Date.now()}function at(e,t){var r,i=0,o={height:e};for(t=t?1:0;i<4;i+=2-t)o["margin"+(r=re[i])]=o["padding"+r]=e;return t&&(o.opacity=o.width=e),o}function st(e,t,r){for(var i,o=(ct.tweeners[t]||[]).concat(ct.tweeners["*"]),l=0,n=o.length;l1)},removeAttr:function(e){return this.each((function(){x.removeAttr(this,e)}))}}),x.extend({attr:function(e,t,r){var i,o,l=e.nodeType;if(3!==l&&8!==l&&2!==l)return void 0===e.getAttribute?x.prop(e,t,r):(1===l&&x.isXMLDoc(e)||(o=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?dt:void 0)),void 0!==r?null===r?void x.removeAttr(e,t):o&&"set"in o&&void 0!==(i=o.set(e,r,t))?i:(e.setAttribute(t,r+""),r):o&&"get"in o&&null!==(i=o.get(e,t))?i:null==(i=x.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&S(e,"input")){var r=e.value;return e.setAttribute("type",t),r&&(e.value=r),t}}}},removeAttr:function(e,t){var r,i=0,o=t&&t.match(z);if(o&&1===e.nodeType)for(;r=o[i++];)e.removeAttribute(r)}}),dt={set:function(e,t,r){return!1===t?x.removeAttr(e,r):e.setAttribute(r,r),r}},x.each(x.expr.match.bool.source.match(/\w+/g),(function(e,t){var r=ut[t]||x.find.attr;ut[t]=function(e,t,i){var o,l,n=t.toLowerCase();return i||(l=ut[n],ut[n]=o,o=null!=r(e,t,i)?n:null,ut[n]=l),o}}));var pt=/^(?:input|select|textarea|button)$/i,ht=/^(?:a|area)$/i;function gt(e){return(e.match(z)||[]).join(" ")}function ft(e){return e.getAttribute&&e.getAttribute("class")||""}function mt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(z)||[]}x.fn.extend({prop:function(e,t){return V(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[x.propFix[e]||e]}))}}),x.extend({prop:function(e,t,r){var i,o,l=e.nodeType;if(3!==l&&8!==l&&2!==l)return 1===l&&x.isXMLDoc(e)||(t=x.propFix[t]||t,o=x.propHooks[t]),void 0!==r?o&&"set"in o&&void 0!==(i=o.set(e,r,t))?i:e[t]=r:o&&"get"in o&&null!==(i=o.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=x.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||(x.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)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){x.propFix[this.toLowerCase()]=this})),x.fn.extend({addClass:function(e){var t,r,i,o,l,n;return g(e)?this.each((function(t){x(this).addClass(e.call(this,t,ft(this)))})):(t=mt(e)).length?this.each((function(){if(i=ft(this),r=1===this.nodeType&&" "+gt(i)+" "){for(l=0;l-1;)r=r.replace(" "+o+" "," ");n=gt(r),i!==n&&this.setAttribute("class",n)}})):this:this.attr("class","")},toggleClass:function(e,t){var r,i,o,l,n=typeof e,a="string"===n||Array.isArray(e);return g(e)?this.each((function(r){x(this).toggleClass(e.call(this,r,ft(this),t),t)})):"boolean"==typeof t&&a?t?this.addClass(e):this.removeClass(e):(r=mt(e),this.each((function(){if(a)for(l=x(this),o=0;o-1)return!0;return!1}});var bt=/\r/g;x.fn.extend({val:function(e){var t,r,i,o=this[0];return arguments.length?(i=g(e),this.each((function(r){var o;1===this.nodeType&&(null==(o=i?e.call(this,r,x(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=x.map(o,(function(e){return null==e?"":e+""}))),(t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))}))):o?(t=x.valHooks[o.type]||x.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(r=t.get(o,"value"))?r:"string"==typeof(r=o.value)?r.replace(bt,""):null==r?"":r:void 0}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:gt(x.text(e))}},select:{get:function(e){var t,r,i,o=e.options,l=e.selectedIndex,n="select-one"===e.type,a=n?null:[],s=n?l+1:o.length;for(i=l<0?s:n?l:0;i-1)&&(r=!0);return r||(e.selectedIndex=-1),l}}}}),x.each(["radio","checkbox"],(function(){x.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=x.inArray(x(e).val(),t)>-1}},h.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),h.focusin="onfocusin"in e;var vt=/^(?:focusinfocus|focusoutblur)$/,_t=function(e){e.stopPropagation()};x.extend(x.event,{trigger:function(t,r,i,o){var l,n,a,s,c,u,p,h,b=[i||m],v=d.call(t,"type")?t.type:t,_=d.call(t,"namespace")?t.namespace.split("."):[];if(n=h=a=i=i||m,3!==i.nodeType&&8!==i.nodeType&&!vt.test(v+x.event.triggered)&&(v.indexOf(".")>-1&&(_=v.split("."),v=_.shift(),_.sort()),c=v.indexOf(":")<0&&"on"+v,(t=t[x.expando]?t:new x.Event(v,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=_.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+_.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),r=null==r?[t]:x.makeArray(r,[t]),p=x.event.special[v]||{},o||!p.trigger||!1!==p.trigger.apply(i,r))){if(!o&&!p.noBubble&&!f(i)){for(s=p.delegateType||v,vt.test(s+v)||(n=n.parentNode);n;n=n.parentNode)b.push(n),a=n;a===(i.ownerDocument||m)&&b.push(a.defaultView||a.parentWindow||e)}for(l=0;(n=b[l++])&&!t.isPropagationStopped();)h=n,t.type=l>1?s:p.bindType||v,(u=(X.get(n,"events")||Object.create(null))[t.type]&&X.get(n,"handle"))&&u.apply(n,r),(u=c&&n[c])&&u.apply&&q(n)&&(t.result=u.apply(n,r),!1===t.result&&t.preventDefault());return t.type=v,o||t.isDefaultPrevented()||p._default&&!1!==p._default.apply(b.pop(),r)||!q(i)||c&&g(i[v])&&!f(i)&&((a=i[c])&&(i[c]=null),x.event.triggered=v,t.isPropagationStopped()&&h.addEventListener(v,_t),i[v](),t.isPropagationStopped()&&h.removeEventListener(v,_t),x.event.triggered=void 0,a&&(i[c]=a)),t.result}},simulate:function(e,t,r){var i=x.extend(new x.Event,r,{type:e,isSimulated:!0});x.event.trigger(i,null,t)}}),x.fn.extend({trigger:function(e,t){return this.each((function(){x.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var r=this[0];if(r)return x.event.trigger(e,t,r,!0)}}),h.focusin||x.each({focus:"focusin",blur:"focusout"},(function(e,t){var r=function(e){x.event.simulate(t,e.target,x.event.fix(e))};x.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,o=X.access(i,t);o||i.addEventListener(e,r,!0),X.access(i,t,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,o=X.access(i,t)-1;o?X.access(i,t,o):(i.removeEventListener(e,r,!0),X.remove(i,t))}}}));var yt=e.location,xt={guid:Date.now()},wt=/\?/;x.parseXML=function(t){var r,i;if(!t||"string"!=typeof t)return null;try{r=(new e.DOMParser).parseFromString(t,"text/xml")}catch(o){}return i=r&&r.getElementsByTagName("parsererror")[0],r&&!i||x.error("Invalid XML: "+(i?x.map(i.childNodes,(function(e){return e.textContent})).join("\n"):t)),r};var kt=/\[\]$/,Ct=/\r?\n/g,Et=/^(?:submit|button|image|reset|file)$/i,Tt=/^(?:input|select|textarea|keygen)/i;function St(e,t,r,i){var o;if(Array.isArray(t))x.each(t,(function(t,o){r||kt.test(e)?i(e,o):St(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,r,i)}));else if(r||"object"!==_(t))i(e,t);else for(o in t)St(e+"["+o+"]",t[o],r,i)}x.param=function(e,t){var r,i=[],o=function(e,t){var r=g(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==r?"":r)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,(function(){o(this.name,this.value)}));else for(r in e)St(r,e[r],t,o);return i.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&Tt.test(this.nodeName)&&!Et.test(e)&&(this.checked||!he.test(e))})).map((function(e,t){var r=x(this).val();return null==r?null:Array.isArray(r)?x.map(r,(function(e){return{name:t.name,value:e.replace(Ct,"\r\n")}})):{name:t.name,value:r.replace(Ct,"\r\n")}})).get()}});var At=/%20/g,Pt=/#.*$/,Dt=/([?&])_=[^&]*/,It=/^(.*?):[ \t]*([^\r\n]*)$/gm,Mt=/^(?:GET|HEAD)$/,Lt=/^\/\//,Ot={},zt={},Rt="*/".concat("*"),Nt=m.createElement("a");function Bt(e){return function(t,r){"string"!=typeof t&&(r=t,t="*");var i,o=0,l=t.toLowerCase().match(z)||[];if(g(r))for(;i=l[o++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(r)):(e[i]=e[i]||[]).push(r)}}function jt(e,t,r,i){var o={},l=e===zt;function n(a){var s;return o[a]=!0,x.each(e[a]||[],(function(e,a){var c=a(t,r,i);return"string"!=typeof c||l||o[c]?l?!(s=c):void 0:(t.dataTypes.unshift(c),n(c),!1)})),s}return n(t.dataTypes[0])||!o["*"]&&n("*")}function Ft(e,t){var r,i,o=x.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((o[r]?e:i||(i={}))[r]=t[r]);return i&&x.extend(!0,e,i),e}Nt.href=yt.href,x.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:{"*":Rt,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":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ft(Ft(e,x.ajaxSettings),t):Ft(x.ajaxSettings,e)},ajaxPrefilter:Bt(Ot),ajaxTransport:Bt(zt),ajax:function(t,r){"object"==typeof t&&(r=t,t=void 0),r=r||{};var i,o,l,n,a,s,c,d,u,p,h=x.ajaxSetup({},r),g=h.context||h,f=h.context&&(g.nodeType||g.jquery)?x(g):x.event,b=x.Deferred(),v=x.Callbacks("once memory"),_=h.statusCode||{},y={},w={},k="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(c){if(!n)for(n={};t=It.exec(l);)n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?l:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[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)C.always(e[C.status]);else for(t in e)_[t]=[_[t],e[t]];return this},abort:function(e){var t=e||k;return i&&i.abort(t),E(0,t),this}};if(b.promise(C),h.url=((t||h.url||yt.href)+"").replace(Lt,yt.protocol+"//"),h.type=r.method||r.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(z)||[""],null==h.crossDomain){s=m.createElement("a");try{s.href=h.url,s.href=s.href,h.crossDomain=Nt.protocol+"//"+Nt.host!=s.protocol+"//"+s.host}catch(T){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=x.param(h.data,h.traditional)),jt(Ot,h,r,C),c)return C;for(u in(d=x.event&&h.global)&&0==x.active++&&x.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Mt.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(At,"+")):(p=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(wt.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(Dt,"$1"),p=(wt.test(o)?"&":"?")+"_="+xt.guid+++p),h.url=o+p),h.ifModified&&(x.lastModified[o]&&C.setRequestHeader("If-Modified-Since",x.lastModified[o]),x.etag[o]&&C.setRequestHeader("If-None-Match",x.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||r.contentType)&&C.setRequestHeader("Content-Type",h.contentType),C.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Rt+"; q=0.01":""):h.accepts["*"]),h.headers)C.setRequestHeader(u,h.headers[u]);if(h.beforeSend&&(!1===h.beforeSend.call(g,C,h)||c))return C.abort();if(k="abort",v.add(h.complete),C.done(h.success),C.fail(h.error),i=jt(zt,h,r,C)){if(C.readyState=1,d&&f.trigger("ajaxSend",[C,h]),c)return C;h.async&&h.timeout>0&&(a=e.setTimeout((function(){C.abort("timeout")}),h.timeout));try{c=!1,i.send(y,E)}catch(T){if(c)throw T;E(-1,T)}}else E(-1,"No Transport");function E(t,r,n,s){var u,p,m,y,w,k=r;c||(c=!0,a&&e.clearTimeout(a),i=void 0,l=s||"",C.readyState=t>0?4:0,u=t>=200&&t<300||304===t,n&&(y=function(e,t,r){for(var i,o,l,n,a=e.contents,s=e.dataTypes;"*"===s[0];)s.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(o in a)if(a[o]&&a[o].test(i)){s.unshift(o);break}if(s[0]in r)l=s[0];else{for(o in r){if(!s[0]||e.converters[o+" "+s[0]]){l=o;break}n||(n=o)}l=l||n}if(l)return l!==s[0]&&s.unshift(l),r[l]}(h,C,n)),!u&&x.inArray("script",h.dataTypes)>-1&&x.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),y=function(e,t,r,i){var o,l,n,a,s,c={},d=e.dataTypes.slice();if(d[1])for(n in e.converters)c[n.toLowerCase()]=e.converters[n];for(l=d.shift();l;)if(e.responseFields[l]&&(r[e.responseFields[l]]=t),!s&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),s=l,l=d.shift())if("*"===l)l=s;else if("*"!==s&&s!==l){if(!(n=c[s+" "+l]||c["* "+l]))for(o in c)if((a=o.split(" "))[1]===l&&(n=c[s+" "+a[0]]||c["* "+a[0]])){!0===n?n=c[o]:!0!==c[o]&&(l=a[0],d.unshift(a[1]));break}if(!0!==n)if(n&&e.throws)t=n(t);else try{t=n(t)}catch(T){return{state:"parsererror",error:n?T:"No conversion from "+s+" to "+l}}}return{state:"success",data:t}}(h,y,C,u),u?(h.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(x.lastModified[o]=w),(w=C.getResponseHeader("etag"))&&(x.etag[o]=w)),204===t||"HEAD"===h.type?k="nocontent":304===t?k="notmodified":(k=y.state,p=y.data,u=!(m=y.error))):(m=k,!t&&k||(k="error",t<0&&(t=0))),C.status=t,C.statusText=(r||k)+"",u?b.resolveWith(g,[p,k,C]):b.rejectWith(g,[C,k,m]),C.statusCode(_),_=void 0,d&&f.trigger(u?"ajaxSuccess":"ajaxError",[C,h,u?p:m]),v.fireWith(g,[C,k]),d&&(f.trigger("ajaxComplete",[C,h]),--x.active||x.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,r){return x.get(e,t,r,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}}),x.each(["get","post"],(function(e,t){x[t]=function(e,r,i,o){return g(r)&&(o=o||i,i=r,r=void 0),x.ajax(x.extend({url:e,type:t,dataType:o,data:r,success:i},x.isPlainObject(e)&&e))}})),x.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),x._evalUrl=function(e,t,r){return x.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){x.globalEval(e,t,r)}})},x.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=x(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 g(e)?this.each((function(t){x(this).wrapInner(e.call(this,t))})):this.each((function(){var t=x(this),r=t.contents();r.length?r.wrapAll(e):t.append(e)}))},wrap:function(e){var t=g(e);return this.each((function(r){x(this).wrapAll(t?e.call(this,r):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){x(this).replaceWith(this.childNodes)})),this}}),x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)},x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(t){}};var Ut={0:200,1223:204},Vt=x.ajaxSettings.xhr();h.cors=!!Vt&&"withCredentials"in Vt,h.ajax=Vt=!!Vt,x.ajaxTransport((function(t){var r,i;if(h.cors||Vt&&!t.crossDomain)return{send:function(o,l){var n,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(n in t.xhrFields)a[n]=t.xhrFields[n];for(n in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)a.setRequestHeader(n,o[n]);r=function(e){return function(){r&&(r=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?l(0,"error"):l(a.status,a.statusText):l(Ut[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=r(),i=a.onerror=a.ontimeout=r("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout((function(){r&&i()}))},r=r("abort");try{a.send(t.hasContent&&t.data||null)}catch(s){if(r)throw s}},abort:function(){r&&r()}}})),x.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),x.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 x.globalEval(e),e}}}),x.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),x.ajaxTransport("script",(function(e){var t,r;if(e.crossDomain||e.scriptAttrs)return{send:function(i,o){t=x("