(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1ae86eb6"],{"023b":function(e,t,i){"use strict";i("42ea")},"02be":function(e,t,i){},"0318":function(e,t,i){},"045a":function(e,t,i){"use strict";i("f597")},"0551":function(e,t,i){},"09bc":function(e,t,i){},"0a11":function(e,t,i){"use strict";i("20ad")},"0a1b":function(e,t,i){},"0a24":function(e,t,i){"use strict";i("0551")},"11df6":function(e,t,i){"use strict";i.r(t);var r=function(){var e=this;e._self._c;return e._m(0)},n=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"module_wrap box_border"},[t("div",{staticClass:"box_title box_title_radio"},[t("span",[e._v("结案时长分布")])]),t("div",{attrs:{id:"lawsuit_times_pie"}})])}],s=(i("f16c"),i("45d2"),i("8160"),i("ada4")),o={name:"LawsuitTimes",props:{isCollapse:{type:Boolean,default:!0},navForm:{type:Object,default:{}}},watch:{isCollapse(){setTimeout(()=>{this.myChart.resize()},600)},navForm:{deep:!0,handler(e){this.getData()}}},data(){return{radio:"数量",topDays:[],newNumber:0,myChart:"",option:""}},mounted(){this.role=localStorage.getItem("role"),window.addEventListener("resize",()=>{this.myChart&&setTimeout(()=>{this.myChart.resize()},500)})},methods:{getData(){this.instance({method:"post",url:"/large/data/screen/getCloseCaseTime",data:this.navForm,headers:{"Content-Type":"application/json;charset=UTF-8"}}).then(e=>{if(1==e.data.code){let t=e.data.data;this.loadCharts(t)}})},loadCharts(e){var t=document.getElementById("lawsuit_times_pie");if(!t)return;this.myChart=s["init"](t,null,{renderer:"svg"});let i=[];e.forEach((e,t)=>{let r={value:e.caseNum,name:e.name};i.push(r)}),this.option={tooltip:{trigger:"item",formatter:"{b}: {c}件",confine:!0},legend:{right:"5%",top:"middle",orient:"vertical",itemWidth:12,itemHeight:12,textStyle:{color:"#fff",fontSize:"0.12rem"}},series:[{type:"pie",radius:"70%",center:["40%","50%"],avoidLabelOverlap:!1,label:{position:"inner",fontSize:10,color:"#fff",formatter:"{d}%"},labelLine:{show:!1},data:i}]},this.myChart.setOption(this.option)}}},a=o,l=(i("5c7d"),i("1805")),c=Object(l["a"])(a,r,n,!1,null,"472f5bb0",null);t["default"]=c.exports},1229:function(e,t,i){},"13bd":function(e,t,i){"use strict";var r=i("ff51"),n=i("5f9c"),s=i("7b88"),o=URLSearchParams.prototype,a=n(o.forEach);r&&!("size"in o)&&s(o,"size",{get:function(){var e=0;return a(this,(function(){e++})),e},configurable:!0,enumerable:!0})},"13d4":function(e,t,i){},"14f5":function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"module_wrap box_border",attrs:{"element-loading-text":"数据加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"transparent"}},[e._m(0),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.loading,expression:"!loading"}],staticStyle:{height:"100%"}},[t("div",{attrs:{id:"depletion_sum_pie"}})])])},n=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"box_title"},[t("span",[e._v("估损偏差率统计")])])}],s=(i("f16c"),i("45d2"),i("8160"),i("ada4")),o={name:"DepletionSum",props:{isCollapse:{type:Boolean,default:!0},navForm:{type:Object,default:{}}},watch:{isCollapse(){setTimeout(()=>{this.myChart&&this.myChart.resize()},600)},navForm:{deep:!0,handler(e){this.getData()}}},data(){return{topDays:[],newNumber:0,option:"",myChart:"",loading:!0}},mounted(){this.role=localStorage.getItem("role"),window.addEventListener("resize",()=>{this.myChart&&setTimeout(()=>{this.myChart.resize()},500)})},methods:{getData(){this.loading=!0,this.instance({method:"post",url:"/large/data/screen/getMoneyLossEstimation",data:this.navForm,headers:{"Content-Type":"application/json;charset=UTF-8"}}).then(e=>{if(this.loading=!1,1==e.data.code){let t=e.data.data;this.loadCharts(t)}})},loadCharts(e){var t=this.$store.getters.baseURL;t=t.replace(/manager/,"");var i=document.getElementById("depletion_sum_pie");if(!i)return;this.myChart=s["init"](i,null,{renderer:"svg"});let r=[],n=[];e.forEach((e,t)=>{r.push(e.name),n.push(e.caseNumRatio)}),this.option={tooltip:{trigger:"axis",formatter:"{b}: {c}万元"},color:"#cd6e72",xAxis:{type:"category",boundaryGap:!1,axisLabel:{showMaxLabel:!0,textStyle:{color:"#fff"}},splitLine:{show:!1},axisTick:{},axisLine:{onZero:!1},offset:5,data:r},yAxis:{type:"value",axisLabel:{showMaxLabel:!0,formatter:"{value} 万",textStyle:{color:"#fff"}},splitLine:{show:!1},axisLine:{show:!1},axisTick:{show:!1}},grid:{left:"2%",right:"4%",top:"5%",bottom:"10%",containLabel:!0},series:[{data:n,type:"line",smooth:!0,symbol:"image://"+t+"images/money_icon.png",symbolSize:20}]},this.myChart.setOption(this.option)}},updated(){this.myChart&&this.myChart.resize()}},a=o,l=(i("4211"),i("1805")),c=Object(l["a"])(a,r,n,!1,null,"2ed98107",null);t["default"]=c.exports},"18dd":function(e,t,i){"use strict";var r=function(){var e=this,t=e._self._c;return t("div",{ref:"imgCont",staticClass:"imgCont",on:{mousewheel:function(t){return t.preventDefault(),e.rollImg(t)}}},[t("div",{staticClass:"iconBtn"},[t("span",{staticClass:"refreshBtn"},[t("i",{staticClass:"el-icon-zoom-out",on:{click:function(t){return t.stopPropagation(),e.outImg("out")}}}),t("i",{staticClass:"el-icon-zoom-in",on:{click:function(t){return t.stopPropagation(),e.outImg("in")}}}),t("i",{staticClass:"el-icon-refresh-left",on:{click:function(t){return t.stopPropagation(),e.rotate("left")}}}),t("i",{staticClass:"el-icon-refresh-right right",on:{click:function(t){return t.stopPropagation(),e.rotate("right")}}}),e._t("addIcon")],2)]),t("img",{ref:"imgDiv",staticClass:"bigImage",attrs:{id:"img",src:e.url},on:{mousedown:function(t){return t.stopPropagation(),t.preventDefault(),e.moveImg(t)}}})])},n=[],s={name:"ImgDeal",props:{url:{type:String}},components:{},data(){return{params:{zoomVal:1,left:0,top:0,currentX:0,currentY:0},deg:0}},computed:{},watch:{url:{handler(e){this.restImg()},immediate:!0}},created(){this.restImg()},mounted(){},methods:{restImg(){if(this.params={zoomVal:1,left:0,top:0,currentX:0,currentY:0},this.deg=0,this.$refs.imgDiv){let e=this.$refs.imgDiv;e.style.transform=`translate(-50%, -50%) scale(${this.params.zoomVal}) rotate(${this.deg}deg)`,e.style.left="50%",e.style.top="50%"}},rollImg(e){this.params.zoomVal+=e.wheelDelta/1200,this.rollFunc()},outImg(e){"out"==e?this.params.zoomVal-=.2:this.params.zoomVal+=.2,this.rollFunc()},rollFunc(){let e=this.$refs.imgDiv;if(!(this.params.zoomVal>=.2))return this.params.zoomVal=.2,e.style.transform=`translate(-50%, -50%) scale(${this.params.zoomVal}) rotate(${this.deg}deg)`,!1;e.style.transform=`translate(-50%, -50%) scale(${this.params.zoomVal}) rotate(${this.deg}deg)`},rotate(e){let t=this.$refs.imgDiv;this.deg="right"==e?this.deg+90:this.deg-90,t.style.transform=`translate(-50%, -50%) scale(${this.params.zoomVal}) rotate(${this.deg}deg)`},moveImg(e){e.preventDefault();let t=this.$refs.imgCont,i=this.$refs.imgDiv,r=e.pageX-i.offsetLeft,n=e.pageY-i.offsetTop;function s(e){i.style.left=e.pageX-r+"px",i.style.top=e.pageY-n+"px"}t.addEventListener("mousemove",s),i.addEventListener("mouseup",()=>{t.removeEventListener("mousemove",s)}),t.addEventListener("mouseout",()=>{t.removeEventListener("mousemove",s)})}}},o=s,a=(i("62d9"),i("1805")),l=Object(a["a"])(o,r,n,!1,null,"4e8b4616",null);t["a"]=l.exports},"1a62":function(e,t,i){},"1d88":function(e,t,i){"use strict";var r=i("44fd"),n=i("5f9c"),s=i("ad09"),o=i("1e56"),a=URLSearchParams,l=a.prototype,c=n(l.append),u=n(l["delete"]),d=n(l.forEach),h=n([].push),p=new a("a=1&a=2&b=3");p["delete"]("a",1),p["delete"]("b",void 0),p+""!=="a=2"&&r(l,"delete",(function(e){var t=arguments.length,i=t<2?void 0:arguments[1];if(t&&void 0===i)return u(this,e);var r=[];d(this,(function(e,t){h(r,{key:t,value:e})})),o(t,1);var n,a=s(e),l=s(i),p=0,f=0,m=!1,g=r.length;while(p{this.myChart&&this.myChart.resize()},600)},navForm:{deep:!0,handler(e){this.getData()}}},data(){return{topDays:[],newNumber:0,myChart:null,yAxisData1:[],yAxisData2:[],sumSeriesData1:[],sumSeriesData2:[],numSeriesData1:[],numSeriesData2:[],option:"",radio:"数量",radio1:"前15",tmpCasesNumTopTen:null,loading:!0}},mounted(){this.role=localStorage.getItem("role"),window.addEventListener("resize",()=>{this.myChart&&this.myChart.resize()})},methods:{getData(){this.loading=!0;let e=null;switch(this.echartsType){case"1":e="/large/data/screen/getProvinceCasesLabelNumTopTen";break;case"2":e="/large/data/screen/getProvinceCasesLabelNumTopTen";break;default:break}e&&this.instance({method:"post",url:e,data:this.navForm,headers:{"Content-Type":"application/json;charset=UTF-8"}}).then(e=>{if(this.loading=!1,1==e.data.code){let t=e.data.data;this.tmpCasesNumTopTen=t,this.loadCharts(t)}})},radioChange(){this.option&&("数量"==this.radio?(this.option.yAxis.data=this.yAxisData1,this.option.series[0].data=this.numSeriesData1,this.option.series[0].name="风险案件数量"):(this.option.yAxis.data=this.yAxisData2,this.option.series[0].data=this.sumSeriesData1,this.option.series[0].name="风险案件金额"),setTimeout(()=>{this.myChart.setOption(this.option)},100))},radioChange1(){let e=JSON.parse(JSON.stringify(this.numSeriesData1)),t=JSON.parse(JSON.stringify(this.sumSeriesData1)),i=JSON.parse(JSON.stringify(this.yAxisData1)),r=JSON.parse(JSON.stringify(this.yAxisData2));"前15"==this.radio1?"数量"==this.radio?(this.option.xAxis[0].data=i.slice(0,15),this.option.yAxis.data=i.slice(0,15),this.option.series[0].data=e.slice(0,15),this.option.series[0].name="风险标签案件占比"):(this.option.xAxis[0].data=i.slice(0,15),this.option.yAxis.data=r.slice(0,15),this.option.series[0].data=t.slice(0,15),this.option.series[0].name="风险案件金额"):"数量"==this.radio?(this.option.xAxis[0].data=i,this.option.yAxis.data=i,this.option.series[0].data=e,this.option.series[0].name="风险标签案件占比"):(this.option.xAxis[0].data=i,this.option.yAxis.data=r,this.option.series[0].data=t,this.option.series[0].name="风险案件金额"),setTimeout(()=>{this.myChart.setOption(this.option)},100)},loadCharts(e){var t=document.getElementById("case_bar_tag");t&&(this.myChart=s["init"](t,null,{renderer:"svg"}),this.yAxisData1=[],this.sumSeriesData1=[],this.sumSeriesData2=[],this.yAxisData2=[],this.numSeriesData1=[],this.numSeriesData2=[],e&&e.caseRiskNum&&e.caseRiskNum.forEach((e,t)=>{this.yAxisData1.push(e.name),this.numSeriesData1.push(e.caseNumRatio)}),e&&e.caseRiskMoney&&e.caseRiskMoney.forEach((e,t)=>{this.yAxisData2.push(e.name),this.sumSeriesData1.push(e.amountCaseFiled),this.sumSeriesData2.push(e.totalPayAmount)}),this.option={tooltip:{trigger:"axis",confine:!0,textStyle:{align:"left"}},grid:{left:"2%",right:"4%",top:"4%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",axisTick:{alignWithLabel:!0},axisLabel:{showMaxLabel:!0,rotate:40,textStyle:{color:"#fff"},width:60,overflow:"truncate",ellipsis:"..."},data:this.yAxisData1}],yAxis:[{type:"value",splitLine:{show:!1},axisLabel:{showMaxLabel:!0,formatter:"{value} %",textStyle:{color:"#fff"}},data:this.yAxisData1}],series:[{name:"风险标签案件占比",type:"bar",itemStyle:{color:new s["graphic"].LinearGradient(0,0,1,0,[{offset:0,color:"#FFFFFF"},{offset:1,color:"#A574F3"}])},tooltip:{valueFormatter:function(e){return e+" %"}},stack:"total",barMaxWidth:"40%",data:this.numSeriesData1}]},this.myChart.setOption(this.option),this.radioChange1())}},updated(){this.myChart&&this.myChart.resize()}},a=o,l=(i("64d0"),i("1805")),c=Object(l["a"])(a,r,n,!1,null,"020918e9",null);t["default"]=c.exports},"1e56":function(e,t,i){"use strict";var r=TypeError;e.exports=function(e,t){if(e{this.listenResize()},600)},navForm:{deep:!0,handler(e){this.getData()}}},data(){return{map:"",loca:"",chart:null,origin:"",checkedPoint:[],mapData:{},radio:"1",tabsActive:1,myChartMap:"",provinceCount:[],realTimeData:[],cityCount:[],nowVehicleData:{}}},mounted(){a=this,this.origin=window.location.origin,this.role=localStorage.getItem("role"),this.userInfo=JSON.parse(localStorage.getItem("userInfo")),this.getData(1),window.addEventListener("resize",this.listenResize)},beforeDestroy(){window.removeEventListener("resize",this.listenResize)},methods:{listenResize(){this.myChartMap&&setTimeout(()=>{this.myChartMap.resize()},600)},linkVehicleMap(e){if(this.userInfo.batchId||0==this.role)return!1;let t=this.$router.resolve({path:"/VehicleMap",query:{deviceNumber:e.deviceNumber,startTime:e.tripStartTime,endTime:e.tripEndTime}});window.open(t.href,"_blank")},getLatestTrip(){this.realTimeData=[],this.instance.get("/homepage/getLatestTrip",{params:{companyId:this.userInfo.company}}).then(e=>{1==e.data.code&&this.initRouteData(e.data.data)})},getLatestTripByProvince(e){this.realTimeData=[],this.instance.get("/homepage/getLatestTripByProvince",{params:{companyId:this.userInfo.company,provinceName:e}}).then(e=>{1==e.data.code&&this.initRouteData(e.data.data)})},initRouteData(e){var t=e.length;if(t>0){for(var i=0;i{this.mapData=e.data.data;var t=[],i=[];this.mapData.cityDatas.length>0&&(this.mapData.cityDatas.forEach((e,i)=>{var r={name:e.cityName,parent:e.provinceName,value:e.casesNo,level:1,avgRiskValue:e.avgRiskValue,insuredNo:e.insuredNo,riskPointsNo:e.riskPointsNo};t.push(r)}),this.cityCount=t),this.mapData.provinceDatas.length>0&&(this.mapData.provinceDatas.forEach((e,t)=>{var r={name:e.cityName,parent:e.provinceName,value:e.casesNo,level:1,avgRiskValue:e.avgRiskValue,insuredNo:e.insuredNo,riskPointsNo:e.riskPointsNo};i.push(r)}),this.provinceCount=i),setTimeout(()=>{this.createMap()},300)})},createMap(){function e(){a.$axios.get("/map/data-china.json").then(e=>{s["registerMap"]("china",e.data),a.myChartMap=s["extendsMap"]("container",{bgColor:"transparent",mapName:"china",goDown:!0,callback:function(e,t,i){},data:a.cityCount})})}s["extendsMap"]=function(e,t){a.chart&&a.chart.dispose(),a.chart=s["init"](document.getElementById(e),null,{renderer:"svg"});var i={},r={mapName:"china",goDown:!1,bgColor:"#404a59",activeArea:[],data:[],callback:function(e,t,i){}};t&&(t=s["util"].extend(r,t));var n=[t.mapName],l=0,c={leftPlus:115,leftCur:150,left:198,top:240},u=[[0,0],[8,11],[0,22]],d={font:'18px "Microsoft YaHei", sans-serif',textColor:"#30FBFE",lineColor:"#30FBFE"},h={resetOption:function(e,i,r){var s=this.createBreadcrumb(r),o=n.indexOf(r),a=i.graphic.length;if(o<0){if(i.graphic.push(s),i.graphic[0].children[0].shape.x2=145,i.graphic[0].children[1].shape.x2=145,i.graphic.length>2){for(var u,d=[],p=0;pt.name==e.name);if(-1!=n){let e="";return 3==a.tabsActive&&(e="
分包商数量:"+r[n].insuredNo+"个"),"城市:"+r[n].name+"
案件数:"+r[n].value+"件
风险点个数:"+r[n].riskPointsNo+"个"+e}return e.name}{let t="";return 3==a.tabsActive&&(t="
分包商数量:"+e.data.insuredNo+"个"),"城市:"+e.data.name+"
案件数:"+e.data.num+"件
风险点个数:"+e.data.riskPointsNo+"个"+t}}},label:{show:!0,color:"#fff"},itemStyle:{borderColor:"#2ff7fb",borderWidth:1,opacity:1,areaColor:{type:"radial",x:.5,y:.5,r:.8,colorStops:[{offset:0,color:"RGBA(0, 36, 109, 0.5)"},{offset:1,color:"RGBA(0, 36, 109, 0.7)"}],globalCoord:!1}},emphasis:{itemStyle:{areaColor:"rgba(0, 69, 109, 0.8)",borderWidth:0},label:{color:"#fff"}}},series:[{type:"effectScatter",coordinateSystem:"geo",showEffectOn:"emphasis",rippleEffect:{period:5,scale:2.5,brushType:"fill"},itemStyle:{opacity:.9,color:"#E29550",shadowBlur:10,shadowColor:"#333"},symbolSize(e,i){var r=e[2],n=t.data[0].value,s=6;return s=r<.4*n?6:r<.7*n?8:10,s},zlevel:1,data:h.initSeriesData(t.data)}]};return a.chart.setOption(p),a.chart.on("click",(function(e){var r="china"==n[l]?"中国":n[l],c=this;if(t.goDown&&e.name!==r&&o["a"][e.name]){var u=o["a"][e.name];a.$axios.get(a.origin+"/"+u).then(t=>{i=t.data,s["registerMap"](e.name,i),h.resetOption(c,p,e.name)})}"中国"!=r&&h.resetOption(a.chart,p,"china")})),a.chart.setMap=function(e){var t=this;e.indexOf("市")<0&&(e+="市");var r=o["a"][e];if(r){var n=r;a.$axios.get(n).then(r=>{i=r.data,s["registerMap"](e,i),h.resetOption(t,p,e)})}},a.chart},e()},appendScript(e){var t=document.createElement("script");t.charset="utf-8",t.src=e,document.head.appendChild(t)}}},c=l,u=(i("ea38"),i("1805")),d=Object(u["a"])(c,r,n,!1,null,"8d469ab2",null);t["default"]=d.exports},2253:function(e,t,i){},"24f0":function(e,t,i){},2887:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"module_wrap box_border"},[t("div",{staticClass:"box_border ratio_box"},[t("div",[t("b",[e._v("案均赔款金额:")]),t("span",[e._v(e._s(e.casesData.averageLossAmount)+"元")])])]),t("ul",{staticClass:"ratio_ul"},[t("li",{staticClass:"box_border"},[t("b",[e._v("车损案均")]),t("div",[e._v(e._s(e.casesData.averageAmountOfVehicleDamageCases)+" (元)")])]),t("li",{staticClass:"box_border"},[t("b",[e._v("物损案均")]),t("div",[e._v(e._s(e.casesData.averageAmountOfMaterialDamageCases)+" (元)")])]),t("li",{staticClass:"box_border"},[t("b",[e._v("门诊案均")]),t("div",[e._v(e._s(e.casesData.averageAmountOfHumanInjuryCases)+" (元)")])]),t("li",{staticClass:"box_border"},[t("b",[e._v("死亡案均")]),t("div",[e._v(e._s(e.casesData.averageAmountOfDeathCases)+" (万元)")])]),t("li",{staticClass:"box_border"},[t("b",[e._v("伤残案均")]),t("div",[e._v(e._s(e.casesData.averageAmountOfDisabilityCases)+" (元)")])]),t("li",{staticClass:"box_border"},[t("b",[e._v("住院案均")]),t("div",[e._v(e._s(e.casesData.averageAmountOfHospitalizationCases)+" (元)")])])])])},n=[],s={name:"ReparationsAmount",props:{navForm:{type:Object,default:{}}},data(){return{casesData:{},newNumber:0}},watch:{navForm:{immediate:!0,deep:!0,handler(e){this.getData()}}},mounted(){this.role=localStorage.getItem("role")},methods:{getData(){this.instance({method:"post",url:"/large/data/screen/getBusinessQualityData",data:this.navForm,headers:{"Content-Type":"application/json;charset=UTF-8"}}).then(e=>{if(1==e.data.code){let t=e.data.data||{};t.averageLossAmount=t.averageLossAmount&&Math.round(t.averageLossAmount),t.averageAmountOfVehicleDamageCases=t.averageAmountOfVehicleDamageCases&&Math.round(t.averageAmountOfVehicleDamageCases),t.averageAmountOfMaterialDamageCases=t.averageAmountOfMaterialDamageCases&&Math.round(t.averageAmountOfMaterialDamageCases),t.averageAmountOfHumanInjuryCases=t.averageAmountOfHumanInjuryCases&&Math.round(t.averageAmountOfHumanInjuryCases),t.averageAmountOfDeathCases=t.averageAmountOfDeathCases&&Math.round(t.averageAmountOfDeathCases),t.averageAmountOfHospitalizationCases=t.averageAmountOfHospitalizationCases&&Math.round(t.averageAmountOfHospitalizationCases),t.averageAmountOfDisabilityCases=t.averageAmountOfDisabilityCases&&Math.round(t.averageAmountOfDisabilityCases),this.casesData=t}})}}},o=s,a=(i("9ac4"),i("1805")),l=Object(a["a"])(o,r,n,!1,null,"a05c11d0",null);t["default"]=l.exports},"2de5":function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"wrap"},[e._m(0),t("div",{staticClass:"search_box public_box"},[t("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.navForm}},[t("div",{staticClass:"flex"},[t("div",[t("el-form-item",{staticStyle:{"margin-right":"0.8rem"}},[t("el-upload",{staticClass:"upload_box",attrs:{accept:".xls,.xlsx",action:e.baseURL+"/case/importCaseExcel","show-file-list":!0,headers:e.unloaderHeader,limit:1,"on-remove":e.handleRemove,"on-success":e.handleAvatarSuccess,"before-upload":e.beforeAvatarUpload}},[[t("el-button",{attrs:{type:"primary"}},[t("i",{staticClass:"el-icon-upload el-icon--left"}),e._v("上传案件")])]],2)],1),t("el-form-item",[t("span",{staticClass:"hint_text"},[e._v("(若无批量案件上传,可按条件查询)")])]),t("br"),t("el-form-item",{attrs:{label:"案件类型:"}},[t("el-select",{staticClass:"width_150",attrs:{clearable:"",multiple:"",placeholder:"请选择"},model:{value:e.navForm.caseType,callback:function(t){e.$set(e.navForm,"caseType",t)},expression:"navForm.caseType"}},[t("el-option",{attrs:{label:"骑手人伤",value:"骑手人伤"}}),t("el-option",{attrs:{label:"三者人伤",value:"三者人伤"}}),t("el-option",{attrs:{label:"三者物损",value:"三者物损"}}),t("el-option",{attrs:{label:"三者车损",value:"三者车损"}})],1)],1),t("el-form-item",{attrs:{label:"结案状态:"}},[t("el-select",{staticClass:"width_150",attrs:{clearable:"",placeholder:"请选择"},on:{change:e.caseClosedStatusChange},model:{value:e.caseClosedStatus,callback:function(t){e.caseClosedStatus=t},expression:"caseClosedStatus"}},[t("el-option",{attrs:{label:"未决",value:"0"}}),t("el-option",{attrs:{label:"已决",value:"1"}})],1)],1),t("el-form-item",{attrs:{label:"案件状态:"}},[t("el-select",{staticClass:"width_150",attrs:{multiple:"",clearable:"",placeholder:"请选择"},model:{value:e.navForm.caseStatus,callback:function(t){e.$set(e.navForm,"caseStatus",t)},expression:"navForm.caseStatus"}},e._l(e.statusOptions,(function(e,i){return t("el-option",{key:i,attrs:{label:e.status,value:e.status}})})),1)],1),t("el-form-item",{attrs:{label:"事故省:"}},[t("el-select",{staticClass:"width_150",attrs:{clearable:"",placeholder:"请选择"},model:{value:e.navForm.accidentProvince,callback:function(t){e.$set(e.navForm,"accidentProvince",t)},expression:"navForm.accidentProvince"}},e._l(e.provinceOptions,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1),t("el-form-item",{attrs:{label:"公估公司:"}},[t("el-input",{staticClass:"width_150",attrs:{placeholder:"请填写公估公司",clearable:""},model:{value:e.navForm.lossAdjusterCompany,callback:function(t){e.$set(e.navForm,"lossAdjusterCompany",t)},expression:"navForm.lossAdjusterCompany"}})],1),t("el-form-item",{attrs:{label:"被保险人:"}},[t("el-input",{staticClass:"width_150",attrs:{placeholder:"请填写分包商",clearable:""},model:{value:e.navForm.nameOfInsured,callback:function(t){e.$set(e.navForm,"nameOfInsured",t)},expression:"navForm.nameOfInsured"}})],1),t("el-form-item",{attrs:{label:"案件号/保单号:"}},[t("el-input",{staticClass:"width_180",attrs:{placeholder:"请填写案件号/保单号",clearable:""},model:{value:e.navForm.caseNo,callback:function(t){e.$set(e.navForm,"caseNo",t)},expression:"navForm.caseNo"}})],1),t("el-form-item",{staticClass:"dateBox",attrs:{label:"报案时间:"}},[t("el-row",{staticStyle:{width:"350px"}},[t("el-col",{attrs:{span:11}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择日期",clearable:"",type:"date","value-format":"yyyy-MM-dd"},model:{value:e.navForm.reportStartTime,callback:function(t){e.$set(e.navForm,"reportStartTime",t)},expression:"navForm.reportStartTime"}})],1),t("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:2}},[e._v("至")]),t("el-col",{attrs:{span:11}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择日期",clearable:"",type:"date","value-format":"yyyy-MM-dd"},model:{value:e.navForm.reportEndTime,callback:function(t){e.$set(e.navForm,"reportEndTime",t)},expression:"navForm.reportEndTime"}})],1)],1)],1),t("el-form-item",{staticClass:"dateBox",attrs:{label:"操作时间:"}},[t("el-row",{staticStyle:{width:"350px"}},[t("el-col",{attrs:{span:11}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择日期",clearable:"",type:"date","value-format":"yyyy-MM-dd"},model:{value:e.navForm.startTime,callback:function(t){e.$set(e.navForm,"startTime",t)},expression:"navForm.startTime"}})],1),t("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:2}},[e._v("至")]),t("el-col",{attrs:{span:11}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择日期",clearable:"",type:"date","value-format":"yyyy-MM-dd"},model:{value:e.navForm.endTime,callback:function(t){e.$set(e.navForm,"endTime",t)},expression:"navForm.endTime"}})],1)],1)],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.searchTable}},[e._v("风险查询")])],1)],1)])])],1),t("div",{staticClass:"main"},[t("div",{staticClass:"table_box public_box"},[t("div",{staticClass:"table_title"},[t("b",[e._v("案件详情")]),t("div",{staticClass:"case_statistics"},[t("div",[e._v("自留验证案件"+e._s(e.tagCount.oneselfVerifyCount||0)+"个,其中红灯案件"+e._s(e.tagCount.oneselfVerifyRedCount||0)+"个,绿灯案件"+e._s(e.tagCount.oneselfVerifyGreenCount||0)+"个;")]),t("div",[e._v("模型验证案件"+e._s(e.tagCount.modelVerifyCount||0)+"个,其中红灯案件"+e._s(e.tagCount.modelVerifyRedCount||0)+"个,绿灯案件"+e._s(e.tagCount.modelVerifyGreenCount||0)+"个。")])]),e.tableData.length>0?t("el-button",{staticClass:"download",attrs:{type:"text"},on:{click:e.handleDownload}},[t("i",{staticClass:"el-icon-download el-icon--left"}),e._v("下载表单")]):e._e()],1),t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,"empty-text":e.caseExcelData.length>0||e.navForm.endTime?"暂无案件":"暂无案件,请上传案件清单或选择查询日期"},on:{"sort-change":e.sortChange}},[t("el-table-column",{attrs:{prop:"caseNo",label:"案件号",width:"210"}}),t("el-table-column",{attrs:{prop:"currentStatusDesc",label:"案件状态"}}),t("el-table-column",{attrs:{prop:"accidentProperty",label:"案件类型","show-overflow-tooltip":!0}}),t("el-table-column",{attrs:{prop:"valueAtRisk",label:"风险值",sortable:"custom"}}),t("el-table-column",{attrs:{prop:"oneselfVerify",label:"自留验证",width:"100"},scopedSlots:e._u([{key:"default",fn:function(i){return[i.row.oneselfVerify?t("el-tag",{staticStyle:{width:"30px"},attrs:{size:"mini",type:"红灯案件"==i.row.oneselfVerify?"danger":"success",effect:"dark"}}):e._e()]}}])}),t("el-table-column",{attrs:{prop:"modelVerify",label:"模型验证",width:"100"},scopedSlots:e._u([{key:"default",fn:function(i){return[i.row.modelVerify?t("el-tag",{staticStyle:{width:"30px"},attrs:{size:"mini",type:"红灯案件"==i.row.modelVerify?"danger":"success",effect:"dark"}}):e._e()]}}])}),t("el-table-column",{attrs:{prop:"handleTime",label:"操作时间","show-overflow-tooltip":!0}}),t("el-table-column",{attrs:{label:"操作",width:"180px"},scopedSlots:e._u([{key:"default",fn:function(i){return[t("div",{staticClass:"flex"},[t("span",{staticClass:"a_color",on:{click:function(t){return e.lookDetails(i.row)}}},[e._v("查看详情")]),t("span",{staticClass:"a_color",on:{click:function(t){return e.hanleVerify(1,"自留验证",i.row)}}},[e._v("自留验证")]),t("span",{staticClass:"a_color",on:{click:function(t){return e.hanleVerify(2,"模型验证",i.row)}}},[e._v("模型验证")])])]}}])})],1),t("el-pagination",{staticStyle:{"margin-top":"0.2rem"},attrs:{"current-page":e.currentPage,layout:"total, sizes, prev, pager, next, jumper","page-sizes":[10,20],"page-size":10,total:e.totalPage},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1)]),t("el-dialog",{attrs:{visible:e.dialogVisibleVerify,title:e.verifyTitle,"modal-append-to-body":!1,"append-to-body":!0,center:"",width:"50%"},on:{"update:visible":function(t){e.dialogVisibleVerify=t}}},[t("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0}},[t("el-form-item",{attrs:{label:"验证信息:"}},[t("el-radio-group",{model:{value:e.verifyRadio,callback:function(t){e.verifyRadio=t},expression:"verifyRadio"}},[t("el-radio-button",{staticClass:"bg_red",attrs:{label:"红灯案件"}}),t("el-radio-button",{staticClass:"bg_green",attrs:{label:"绿灯案件"}})],1)],1),"红灯案件"==e.verifyRadio?t("div",[t("el-form-item",{staticClass:"form-items",attrs:{label:"验证依据:"}},[t("el-cascader",{ref:"cascader",attrs:{options:e.tmpOptions,props:e.props,"collapse-tags":"",clearable:""},on:{change:e.getselKnowledgeList},model:{value:e.tmpDatas,callback:function(t){e.tmpDatas=t},expression:"tmpDatas"}})],1),t("br"),t("el-form-item",{staticClass:"form-items",attrs:{label:"验证结论:"}},e._l(e.conclusionTags,(function(i){return t("el-tag",{key:i.value,attrs:{closable:""},on:{close:function(t){return e.conclusionClose(i)}}},[e._v(" "+e._s(i.label)+" ")])})),1)],1):e._e()],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:e.cancelCaseDialog}},[e._v("取 消")]),t("el-button",{attrs:{type:"primary"},on:{click:e.updateCaseTag}},[e._v("确 定")])],1)],1),t("el-dialog",{staticClass:"case_detail",attrs:{visible:e.dialogVisible,"modal-append-to-body":!1,"append-to-body":!0,width:"70%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"dialog_box"},[t("div",{staticClass:"dialog_header"},[t("div",[e._v("案件号:"+e._s(e.checkedRowDetail.caseNo))]),t("div",[e._v("是否快赔:"+e._s(e.checkedRowDetail.quickPayOrNot))])]),t("div",{staticClass:"dialog_main"},[t("el-steps",{attrs:{active:e.stepsActive,"align-center":"","process-status":"finish"}},e._l(e.checkedRowDetail.stageOfCaseVoList,(function(r,n){return t("el-step",{key:n,attrs:{title:r.stageName}},[r.arrivalOrNot?t("template",{slot:"description"},[t("div",{staticClass:"status_icon"},[r.yesOrNo&&r.caseRiskPoints.length>0?t("img",{attrs:{src:i("8baa"),alt:""}}):t("img",{attrs:{src:i("a9c0"),alt:""}})]),t("div",{staticStyle:{color:"#333"}},[r.yesOrNo&&r.caseRiskPoints.length>0?t("div",[t("p",[e._v("此阶段存在"+e._s(r.caseRiskPoints.length)+"个风险点")]),t("ul",{staticClass:"risk_point"},e._l(r.caseRiskPoints,(function(i,n){return t("li",{key:n},[t("p",[e._v(e._s(n+1+"、"+i.riskTip))]),t("div",{staticClass:"status_box"},[1==i.riskType?[0==i.status?t("span",{staticClass:"a_color",on:{click:function(t){return e.handleAttention(r,i)}}},[e._v("待关注")]):1==i.status?t("span",{staticStyle:{color:"#e6a23c"}},[e._v("已关注")]):e._e()]:2==i.riskType?[0==i.status?t("span",{staticClass:"a_color",on:{click:function(t){return e.handleAttention(r,i)}}},[e._v("待处理")]):e._e()]:e._e(),2==i.status?t("span",{staticStyle:{color:"#67c23a"}},[e._v("已处理")]):e._e()],2)])})),0)]):t("p",[e._v("此阶段无风险")])])]):e._e()],2)})),1),e.checkedRowDetail.riderAsThirdCases&&(e.checkedRowDetail.riderAsThirdCases.length>0||e.checkedRowDetail.thirdVehicleInCases.length>0||e.checkedRowDetail.riderAccumulatedCases.length>0||e.checkedRowDetail.riderMultiCases.length>0||e.checkedRowDetail.thirdInjuredCases.length>0)?t("div",{staticClass:"relevancy_case"},[t("p",[e._v("风险关联案件:")]),e.checkedRowDetail.riderAsThirdCases.length>0?[t("div",{staticClass:"small_title"},[e._v("该骑手在以下案件中为三者:")]),t("div",e._l(e.checkedRowDetail.riderAsThirdCases,(function(i,r){return t("span",{key:r},[e._v(e._s(i+";"))])})),0)]:e._e(),e.checkedRowDetail.thirdVehicleInCases.length>0?[t("div",{staticClass:"small_title"},[e._v("该三者车辆在以下案件中出现:")]),t("div",e._l(e.checkedRowDetail.thirdVehicleInCases,(function(i,r){return t("span",{key:r},[e._v(e._s(i+";"))])})),0)]:e._e(),e.checkedRowDetail.thirdInjuredCases.length>0?[t("div",{staticClass:"small_title"},[e._v("同一三者在以下案件中出现:")]),t("div",e._l(e.checkedRowDetail.thirdInjuredCases,(function(i,r){return t("span",{key:r},[e._v(e._s(i+";"))])})),0)]:e._e(),e.checkedRowDetail.riderMultiCases.length>0?[t("div",{staticClass:"small_title"},[e._v("骑手近期在以下案件中出险:")]),t("div",e._l(e.checkedRowDetail.riderMultiCases,(function(i,r){return t("span",{key:r},[e._v(e._s(i+";"))])})),0)]:e._e(),e.checkedRowDetail.riderAccumulatedCases.length>0?[t("div",{staticClass:"small_title"},[e._v("该骑手在以下案件中累计赔付:")]),t("div",e._l(e.checkedRowDetail.riderAccumulatedCases,(function(i,r){return t("span",{key:r},[e._v(e._s(i+";"))])})),0)]:e._e()],2):e._e()],1)])])],1)},n=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"page_title"},[t("b",[e._v("在线质检案件")]),t("span",[e._v("(案件列表显示满足筛选规则的案件)")])])}],s=(i("f16c"),i("9add"),i("45d2"),i("8160"),i("ffe5"),i("1d88"),i("84ae"),i("13bd"),i("5f87")),o={name:"onlineTesting",components:{},data(){return{caseExcelData:[],verifyTitle:"自留验证",checkedRow:"",dialogVisible:!1,relevancyVisible:!1,dialogVisibleVerify:!1,verifyRadio:"",verifyValue:"",baseURL:"",unloaderHeader:{token:""},fullscreenLoading:!1,uploadFile:{},fileName:"",activeName:"first",loading:!1,nowFilter:"",statusOptions:[],baseStatusOptions:[],provinceOptions:["辽宁省","江苏省","广西壮族自治区","福建省","四川省","黑龙江省","山东省","江西省","陕西省","吉林省","北京市","安徽省","河北省","河南省","重庆市","天津市","湖北省","甘肃省","上海市","云南省","贵州省","内蒙古自治区","山西省","海南省","浙江省","宁夏回族自治区","青海省","广东省","新疆维吾尔自治区","湖南省","西藏自治区","香港特别行政区","澳门特别行政区","台湾省"],navForm:{startTime:"",endTime:"",reportStartTime:"",reportEndTime:"",caseType:[],value:"",nameOfInsured:"",lossAdjusterCompany:"",accidentProvince:"",caseStatus:[],meituanCaseInfoList:[]},tagCount:{},caseClosedStatus:"",stepsActive:0,checkedRowDetail:{},riskOptions:[],customFilterOptionList:[],currentPage:1,pageSize:10,totalPage:0,tableData:[],props:{multiple:!0},tmpOptions:[],parentLevelOption:[],childLevelOption:[],levelOptionObj:{},parentLevel:"",childLevel:"",conclusionParent:[],conclusionTags:[],tmpDatas:[]}},methods:{getselKnowledgeList(){let e=this.$refs["cascader"].getCheckedNodes();e.length>0?(this.conclusionTags=[],this.conclusionParent=[],e.forEach(e=>{e.parent&&(this.conclusionParent.push({value:e.parent.value,name:e.parent.label}),this.conclusionTags.push({value:e.data.value,label:e.data.label,parentValue:e.parent.value}))})):this.conclusionTags=[]},conclusionClose(e){var t=JSON.parse(JSON.stringify(this.tmpDatas));let i=this.conclusionTags.findIndex(t=>t.value==e.value);this.conclusionTags.splice(i,1);let r=t.findIndex(t=>t[0]==e.parentValue&&t[1]==e.value);t.splice(r,1),this.tmpDatas=t},unique(e){var t={};return e=e.reduce((function(e,i){return!t[i.value]&&(t[i.value]=e.push(i)),e}),[]),e},getRiskCharacteristics(){this.instance.get("/meituanCaseTag/riskCharacteristics",{params:{}}).then(e=>{let t=e.data;1==t.code&&(this.parentLevelOption=[],this.childLevelOption=[],this.levelOptionObj={},t.data.length>0&&t.data.forEach((e,t)=>{e.label=e.key,e.value=e.key+t,e.val.length>0&&(e.children=e.val,e.val.forEach((e,t)=>{e.value=e["key"]+t,e.label=e.key}),this.levelOptionObj[e["key"]]=e["val"])}),this.tmpOptions=t.data)})},hanleVerify(e,t,i){if(this.verifyRadio="",this.dialogVisibleVerify=!0,this.verifyTitle=t,this.verifyValue=e,this.checkedRow=i,this.conclusionTags=[],this.tmpDatas=[],i.firstVerdictType){let e=this.levelOptionObj[i.firstVerdictType];i.firstVerdictList.forEach(t=>{e.forEach(e=>{e.key==t&&(this.conclusionTags.push(e),this.tmpOptions.forEach(t=>{t.label==i.firstVerdictType&&this.tmpDatas.push([t.value,e.value])}))})})}else if(i.verdictType){let e=this.levelOptionObj[i.verdictType];i.verdictList.forEach(t=>{e.forEach(e=>{e.key==t&&(this.conclusionTags.push(e),this.tmpOptions.forEach(t=>{t.label==i.verdictType&&this.tmpDatas.push([t.value,e.value])}))})})}},updateCaseTag(){let e=JSON.parse(JSON.stringify(this.checkedRow)),t=[],i=!1;this.conclusionTags.length>0&&this.conclusionTags.forEach(e=>{t.push(e.label)}),1==this.verifyValue?(e.modelVerify="",e.oneselfVerify=this.verifyRadio,e.firstVerdictList=t,e.firstVerdictType=this.conclusionParent.length>0&&this.unique(this.conclusionParent)[0].name):2==this.verifyValue&&(e.oneselfVerify="",e.modelVerify=this.verifyRadio,e.verdictList=t,e.verdictType=this.conclusionParent.length>0&&this.unique(this.conclusionParent)[0].name),0==this.tmpDatas.length?this.$message.error("请选择验证依据。"):i=!0,i&&this.instance.post("/meituanCaseTag/updateCaseTag",e).then(e=>{1==e.data.code&&(this.getTbodyData(),this.cancelCaseDialog(),this.$message.success("恭喜你,保存成功!"))})},cancelCaseDialog(){this.conclusionTags=[],this.verifyRadio="",this.tmpDatas=[],this.dialogVisibleVerify=!1},caseClosedStatusChange(e){let t=JSON.parse(JSON.stringify(this.baseStatusOptions));if(""==e)this.statusOptions=t;else{let i=[];t.forEach((t,r)=>{e==t.type&&i.push(t)}),this.statusOptions=i}},getCaseStatus(){this.restaurants=[],this.instance.get("/case/getCaseStatus",{params:{}}).then(e=>{1==e.data.code&&(this.statusOptions=e.data.data,this.baseStatusOptions=e.data.data)})},sortChange(e){this.navForm.sortField=e.prop,this.navForm.sortOrder="ascending"==e.order?"asc":"desc",this.getTbodyData()},handleAttention(e,t){var i="此操作表示已关注该风险,将修改案件信息, 是否继续?";2==t.riskType&&(i="此操作表示已核实该提示内容符合实情, 无风险,是否继续?"),this.$confirm(i,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{var e={id:t.id,status:1==t.riskType?1:2,stage:t.stage,meituanCaseNo:this.checkedRowDetail.meituanCaseNo};this.instance.post("/case/operationMark",e).then(e=>{1==e.data.code&&(t.status=1==t.riskType?1:2,2==t.status&&this.checkedRowDetail.numberOfRiskPoints--,this.$message({type:"success",message:e.data.message}))})}).catch(()=>{this.$message({type:"info",message:"已取消"})})},handleRemove(e,t){this.caseExcelData=[]},getCommonFilterOptionList(){this.instance.post("/case/getCommonFilterOptionList",{}).then(e=>{1==e.data.code&&(this.riskOptions=e.data.data)})},lookDetails(e){const t=this.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});this.instance.post("/case/getCaseDetail",{caseNo:e.caseNo}).then(e=>{t.close(),1==e.data.code&&(this.dialogVisible=!0,this.stepsActive=0,this.checkedRowDetail=e.data.data,e.data.data.stageOfCaseVoList.forEach((e,t)=>{e.arrivalOrNot&&(this.stepsActive=t)}))})},handleAvatarSuccess(e,t){this.fullscreenLoading.close(),this.fileName=t.name,this.uploadFile=e.data,1==e.code?(this.$message.success(e.message),this.caseExcelData=e.data):this.$message.error(e.message)},beforeAvatarUpload(e){if(e.size/1024>5e3)return this.$message.error("抱歉,上传文件不得大于5M!"),!1;this.unloaderHeader.Authorization="Bearer "+Object(s["c"])(),this.fullscreenLoading=this.$loading({lock:!0,text:"上传中,请稍后",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"})},handleSelectionChange(e){this.multipleSelection=e},searchTable(){this.caseExcelData.length>0||this.navForm.caseNo||this.navForm.startTime&&this.navForm.endTime||this.navForm.reportStartTime&&this.navForm.reportEndTime?(this.currentPage=1,this.getTbodyData()):this.$message.error("请上传文件或者选择结案时间、报案时间之后再查询!")},searchTagCount(e){this.instance.post("/meituanCaseTag/searchTagCount",e).then(e=>{1==e.data.code&&(this.tagCount=e.data.data||{})})},getTbodyData(){this.loading=!0,this.tableData=[];var e=JSON.parse(JSON.stringify(this.navForm));e.meituanCaseInfoList=this.caseExcelData,this.nowFilter=JSON.parse(JSON.stringify(e)),e.pageNum=this.currentPage,e.pageSize=this.pageSize,this.searchTagCount(e),this.instance.post("/meituanCaseTag/searchPage",e).then(e=>{this.loading=!1,1==e.data.code?(this.tableData=e.data.data.list,this.totalPage=parseInt(e.data.data.total)):this.totalPage=0})},handleSizeChange(e){this.pageSize=e,this.getTbodyData()},handleCurrentChange(e){this.currentPage=Number(e),this.getTbodyData()},handleDownload(){var e=JSON.parse(JSON.stringify(this.nowFilter));this.fullscreenLoading=this.$loading({lock:!0,text:"下载中,请稍后",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),this.instance({method:"post",url:"/case/exportCaseExcel",data:e,responseType:"blob",headers:{}}).then(e=>{if(this.fullscreenLoading.close(),e.data.size<200)return this.$message.error("单次下载案件不能超过10000条,请分段下载!"),!1;let t=window.URL.createObjectURL(new Blob([e.data])),i=document.createElement("a");i.style.display="none",i.href=t,i.setAttribute("download","案件下载清单.csv"),document.body.appendChild(i),i.click()}).catch((function(e){console.log(e)}))}},mounted(){this.getCaseStatus(),this.baseURL=this.$store.getters.baseURL;const e=new Date;let t=new Date(e.getTime()-6048e5);this.navForm.reportStartTime=this.dateFormatting(t,"yyyy-MM-dd"),this.navForm.reportEndTime=this.dateFormatting(e,"yyyy-MM-dd"),this.getTbodyData(),this.getRiskCharacteristics()}},a=o,l=(i("499d"),i("1805")),c=Object(l["a"])(a,r,n,!1,null,"2de4759b",null);t["default"]=c.exports},"302d":function(e,t,i){},"341e":function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"module_wrap box_border",attrs:{"element-loading-text":"数据加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"transparent"}},[t("div",{staticClass:"box_title"},[e._v(e._s("全国"==e.navForm.accidentProvince?"全国伤残案均金额排行榜":"伤残损案均金额统计"))]),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.loading,expression:"!loading"}],staticStyle:{height:"55%"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:"全国"==e.province,expression:"province == '全国'"}],attrs:{id:"assessment_deviation_bar"}}),t("div",{directives:[{name:"show",rawName:"v-show",value:"全国"!=e.province,expression:"province != '全国'"}],attrs:{id:"assessment_deviation_bar2"}}),e.tableData.length>0?t("div",{staticClass:"tables_box"},[t("el-table",{attrs:{data:[e.tableData[0]],"max-height":"200"}},e._l(e.tableData,(function(i,r){return t("el-table-column",{key:r,attrs:{label:i.accItem,width:String(i.accAmount).length>5?"100":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._e(),e._v(" "+e._s(i.accAmount?i.accAmount:"--")+" 元 ")]}}],null,!0)})})),1)],1):e._e()])])},n=[],s=(i("f16c"),i("45d2"),i("8160"),i("9052"),i("ada4")),o={name:"AssessmentDeviation",props:{isCollapse:{type:Boolean,default:!0},navForm:{type:Object,default:{}}},watch:{isCollapse(){setTimeout(()=>{this.myChart&&this.myChart.resize()},600)},navForm:{immediate:!0,deep:!0,handler(e){this.province=e.accidentProvince,this.getData()}}},data(){return{topDays:[],newNumber:0,myChart:"",myChart2:"",option:"",province:"",tableData:[],loading:!0}},mounted(){this.role=localStorage.getItem("role"),window.addEventListener("resize",()=>{this.myChart&&setTimeout(()=>{this.myChart.resize()},500)})},methods:{getData(){this.loading=!0,this.instance({method:"post",url:"/large/data/screen/disabledRanking",data:this.navForm,headers:{"Content-Type":"application/json;charset=UTF-8"}}).then(e=>{if(this.loading=!1,1==e.data.code){let t=e.data.data;if(t.length>0){let e=t.map(e=>({...e,accItem:this.$$abbreviateCity(e.accItem)}));"全国"==this.province?(e=e.splice(0,20),this.loadCharts(e)):this.loadCharts2(e)}}})},loadCharts2(e){var t=document.getElementById("assessment_deviation_bar2");if(!t)return;this.myChart2=s["init"](t,null,{renderer:"svg"});let i=[],r=[],n=[];e.forEach((e,t)=>{i.push(e.accItem),r.push(e.prvAmount),n.push(e.accAmount)}),this.tableData=e;let o={tooltip:{confine:!0,formatter:"{b}: {c}元",axisPointer:{type:"shadow"}},legend:{data:[this.province,"全国"],itemWidth:12,itemHeight:12,itemGap:20,textStyle:{color:"#fff"},left:"center"},grid:{top:25,left:"10",right:"10",bottom:"10",containLabel:!0},xAxis:{type:"category",splitLine:{show:!1},axisTick:{show:!0,alignWithLabel:!0},axisLabel:{showMaxLabel:!0,rotate:30,color:"#fff",width:70,overflow:"truncate",ellipsis:"..."},data:i},yAxis:{splitLine:{show:!1},axisTick:{show:!1},axisLabel:{color:"#fff",formatter:"{value} 元"}},series:[{name:this.province,type:"bar",itemStyle:{color:"#A55576"},stack:"total",barMaxWidth:"40%",data:r},{name:"全国",type:"bar",itemStyle:{color:new s["graphic"].LinearGradient(0,0,0,1,[{offset:0,color:"#FFFFFF"},{offset:1,color:"#52D3AA"}])},stack:"total",barMaxWidth:"40%",data:n}]};this.myChart2.setOption(o)},loadCharts(e){var t=document.getElementById("assessment_deviation_bar");if(!t)return;this.myChart=s["init"](t,null,{renderer:"svg"});let i=[],r=[];e.forEach((e,t)=>{i.push(e.accItem),r.push(e.accAmount)}),this.tableData=e;let n={tooltip:{confine:!0,formatter:"{b}: {c}元",axisPointer:{type:"shadow"}},legend:{itemWidth:12,itemHeight:12,itemGap:20,textStyle:{color:"#fff"},left:"center"},grid:{top:25,left:"10",right:"10",bottom:"10",containLabel:!0},xAxis:{type:"category",splitLine:{show:!1},axisTick:{show:!0,alignWithLabel:!0},axisLabel:{showMaxLabel:!0,rotate:30,color:"#fff",width:70,overflow:"truncate",ellipsis:"..."},data:i},yAxis:{splitLine:{show:!1},axisTick:{show:!1},axisLabel:{color:"#fff",formatter:"{value} 元"}},series:[{type:"bar",itemStyle:{color:new s["graphic"].LinearGradient(0,0,0,1,[{offset:0,color:"#FFFFFF"},{offset:1,color:"#52D3AA"}])},stack:"total",barMaxWidth:"35%",data:r}]};this.myChart.setOption(n,!0)}},updated(){this.myChart&&this.myChart.resize()}},a=o,l=(i("8e85"),i("1805")),c=Object(l["a"])(a,r,n,!1,null,"47ab67e3",null);t["default"]=c.exports},3575:function(e,t,i){"use strict";i("847e")},3839:function(e,t,i){},"385f":function(e,t,i){"use strict";i("caa1")},"38ae":function(e,t,i){},"3b4b":function(e,t,i){"use strict";i("6149")},"3ba8":function(e,t,i){"use strict";i("2253")},"3eae":function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"module_wrap box_border",attrs:{"element-loading-text":"数据加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"transparent"}},[t("div",{staticClass:"box_title"},[e._v(e._s("全国"==e.navForm.accidentProvince?"全国人伤损案均金额排行榜":"人伤损案均金额统计"))]),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.loading,expression:"!loading"}],staticStyle:{height:"55%"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:"全国"==e.province,expression:"province == '全国'"}],attrs:{id:"passing_rate_bar"}}),t("div",{directives:[{name:"show",rawName:"v-show",value:"全国"!=e.province,expression:"province != '全国'"}],attrs:{id:"passing_rate_bar2"}}),e.tableData.length>0?t("div",{staticClass:"tables_box"},[t("el-table",{attrs:{data:[e.tableData[0]],"max-height":"200"}},e._l(e.tableData,(function(i,r){return t("el-table-column",{key:r,attrs:{label:i.accItem,width:String(i.accAmount).length>5?"100":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._e(),e._v(" "+e._s(i.accAmount?i.accAmount:"--")+" 元 ")]}}],null,!0)})})),1)],1):e._e()])])},n=[],s=(i("f16c"),i("45d2"),i("8160"),i("9052"),i("ada4")),o={name:"PassingRate",props:{isCollapse:{type:Boolean,default:!0},navForm:{type:Object,default:{}}},watch:{isCollapse(){setTimeout(()=>{this.myChart&&this.myChart.resize()},600)},navForm:{immediate:!0,deep:!0,handler(e){this.province=e.accidentProvince,this.getData()}}},data(){return{topDays:[],newNumber:0,myChart:"",myChart2:"",option:"",province:"",tableData:[],loading:!0}},mounted(){this.role=localStorage.getItem("role"),window.addEventListener("resize",()=>{this.myChart&&setTimeout(()=>{this.myChart.resize()},500)})},methods:{getData(){this.loading=!0,this.instance({method:"post",url:"/large/data/screen/humanInjuryRanking",data:this.navForm,headers:{"Content-Type":"application/json;charset=UTF-8"}}).then(e=>{if(this.loading=!1,1==e.data.code){let t=e.data.data;if(t.length>0){let e=t.map(e=>({...e,accItem:this.$$abbreviateCity(e.accItem)}));"全国"==this.province?(e=e.splice(0,20),this.loadCharts(e)):this.loadCharts2(e)}}})},loadCharts2(e){var t=document.getElementById("passing_rate_bar2");if(!t)return;this.myChart2=s["init"](t,null,{renderer:"svg"});let i=[],r=[],n=[];e.forEach((e,t)=>{i.push(e.accItem),r.push(e.prvAmount),n.push(e.accAmount)}),this.tableData=e;let o={tooltip:{trigger:"axis"},legend:{textStyle:{color:"#fff",fontSize:12},itemGap:20},grid:{top:25,left:"10",right:"10",bottom:"10",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,axisLine:{show:!0,lineStyle:{color:"#233653"}},axisLabel:{showMaxLabel:!0,rotate:30,color:"#fff",width:70,overflow:"truncate",ellipsis:"..."},splitLine:{show:!1},axisTick:{show:!1},data:i}],yAxis:[{nameTextStyle:{color:"#7ec7ff",fontSize:12,padding:10},min:0,splitLine:{show:!1},axisTick:{show:!1},axisLabel:{color:"#fff",formatter:"{value} 元"}}],series:[{name:this.province,type:"line",symbol:"circle",showAllSymbol:!0,symbolSize:0,smooth:!0,lineStyle:{normal:{width:2,color:"#519B37"}},itemStyle:{color:"#519B37"},tooltip:{valueFormatter:function(e){return e+" 元"}},areaStyle:{normal:{color:new s["graphic"].LinearGradient(0,0,0,1,[{offset:0,color:"rgba(77,192,36,.3)"},{offset:1,color:"rgba(77,192,36, 0)"}],!1),shadowColor:"rgba(10,219,250, 0.5)",shadowBlur:20}},data:r},{name:"全国",type:"line",symbol:"circle",showAllSymbol:!0,symbolSize:0,smooth:!0,lineStyle:{normal:{width:2,color:"#BFCD3D"}},itemStyle:{color:"#BFCD3D"},tooltip:{valueFormatter:function(e){return e+" 元"}},areaStyle:{normal:{color:new s["graphic"].LinearGradient(0,0,0,1,[{offset:0,color:"rgba(248,172,6,.3)"},{offset:1,color:"rgba(248,172,6, 0)"}],!1),shadowColor:"rgba(10,219,250, 0.5)",shadowBlur:20}},data:n}]};this.myChart2.setOption(o)},loadCharts(e){var t=document.getElementById("passing_rate_bar");if(!t)return;this.myChart=s["init"](t,null,{renderer:"svg"});let i=[],r=[];e.forEach((e,t)=>{i.push(e.accItem),r.push(e.accAmount)}),this.tableData=e;const n=8,o=4,a=s["graphic"].extendShape({shape:{x:0,y:0},buildPath:function(e,t){const i=t.xAxisPoint,r=[t.x,t.y],s=[t.x-n,t.y-o],a=[i[0]-n,i[1]-o],l=[i[0],i[1]];e.moveTo(r[0],r[1]).lineTo(s[0],s[1]).lineTo(a[0],a[1]).lineTo(l[0],l[1]).closePath()}}),l=s["graphic"].extendShape({shape:{x:0,y:0},buildPath:function(e,t){const i=t.xAxisPoint,r=[t.x,t.y],s=[i[0],i[1]],a=[i[0]+n,i[1]-o],l=[t.x+n,t.y-o];e.moveTo(r[0],r[1]).lineTo(s[0],s[1]).lineTo(a[0],a[1]).lineTo(l[0],l[1]).closePath()}}),c=s["graphic"].extendShape({shape:{x:0,y:0},buildPath:function(e,t){const i=[t.x,t.y],r=[t.x+n,t.y-o],s=[t.x,t.y-n],a=[t.x-n,t.y-o];e.moveTo(i[0],i[1]).lineTo(r[0],r[1]).lineTo(s[0],s[1]).lineTo(a[0],a[1]).closePath()}});s["graphic"].registerShape("CubeLeft",a),s["graphic"].registerShape("CubeRight",l),s["graphic"].registerShape("CubeTop",c);let u={tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:"{b0} : {c0}元"},grid:{top:20,left:"10",right:"10",bottom:"10",containLabel:!0},xAxis:{type:"category",data:i,axisLabel:{showMaxLabel:!0,rotate:40,color:"#fff",width:60,overflow:"truncate",ellipsis:"..."},axisTick:{alignWithLabel:!0}},yAxis:{type:"value",splitLine:{show:!1},axisTick:{show:!1},axisLabel:{color:"#fff",formatter:"{value} 元"}},series:[{type:"custom",renderItem:(e,t)=>{const i=t.coord([t.value(0),t.value(1)]);return{type:"group",children:[{type:"CubeLeft",shape:{api:t,xValue:t.value(0),yValue:t.value(1),x:i[0],y:i[1],xAxisPoint:t.coord([t.value(0),0])},style:{fill:new s["graphic"].LinearGradient(0,0,0,1,[{offset:0,color:"#ffffff"},{offset:1,color:"#ADE050"}])}},{type:"CubeRight",shape:{api:t,xValue:t.value(0),yValue:t.value(1),x:i[0],y:i[1],xAxisPoint:t.coord([t.value(0),0])},style:{fill:new s["graphic"].LinearGradient(0,0,0,1,[{offset:0,color:"#ffffff"},{offset:1,color:"#ADE050"}])}},{type:"CubeTop",shape:{api:t,xValue:t.value(0),yValue:t.value(1),x:i[0],y:i[1],xAxisPoint:t.coord([t.value(0),0])},style:{fill:new s["graphic"].LinearGradient(0,0,0,1,[{offset:0,color:"#FFFFFF"},{offset:1,color:"#FFFFFF"}])}}]}},data:r},{type:"bar",itemStyle:{color:"transparent"},tooltip:{},data:r}]};this.myChart.setOption(u,!0)}},updated(){this.myChart&&this.myChart.resize()}},a=o,l=(i("5358"),i("1805")),c=Object(l["a"])(a,r,n,!1,null,"7f54c8b4",null);t["default"]=c.exports},4211:function(e,t,i){"use strict";i("fa13")},"42ea":function(e,t,i){},4619:function(e,t,i){e.exports=i.p+"img/success_icon.7a9bbf6b.png"},"480a":function(e,t,i){},"48fc":function(module,__webpack_exports__,__webpack_require__){"use strict";var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("f16c"),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("45d2"),core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("8160"),core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__),echarts__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("ada4");__webpack_exports__["a"]={name:"CaseTime",props:{isCollapse:{type:Boolean,default:!0},navForm:{type:Object,default:{}}},watch:{isCollapse(){setTimeout(()=>{this.myChart&&this.myChart.resize()},600)},navForm:{deep:!0,handler(e){this.province=e.accidentProvince,this.getData()}}},data(){return{topDays:[],newNumber:0,myChart:""}},mounted(){this.role=localStorage.getItem("role"),this.getData(),window.addEventListener("resize",()=>{this.myChart&&setTimeout(()=>{this.myChart.resize()},500)})},methods:{getData(){this.instance({method:"post",url:"/large/data/screen/meituanCaseReportingVo",data:this.navForm,headers:{"Content-Type":"application/json;charset=UTF-8"}}).then(e=>{if(1==e.data.code){let t=e.data.data;t.length>0&&this.loadCharts(t)}})},loadCharts(response){var chartDom=document.getElementById("case_time_bar");if(!chartDom)return;this.myChart=echarts__WEBPACK_IMPORTED_MODULE_3__["init"](chartDom,null,{renderer:"svg"});let xAxisData=[],seriesData=[];response.forEach((e,t)=>{xAxisData.push(e.name+"天"),seriesData.push(e.caseNumRatio)});var total=eval(seriesData.join("+")),option={tooltip:{formatter(e){let t=e.dataIndex;return e.name+": "+response[t].caseNum+"件"},show:!0},grid:{top:20,left:"10",right:"10",bottom:"10",containLabel:!0},xAxis:{type:"category",axisLabel:{showMaxLabel:!0,textStyle:{color:"#fff"}},axisTick:{alignWithLabel:!0},data:xAxisData},yAxis:{type:"value",axisLabel:{showMaxLabel:!0,textStyle:{color:"#fff"}},splitLine:{show:!1},axisTick:{show:!1}},series:[{type:"bar",barWidth:"40%",data:seriesData,label:{show:!0,position:"top",color:"#fff",formatter:"{c} %"},itemStyle:{color:new echarts__WEBPACK_IMPORTED_MODULE_3__["graphic"].LinearGradient(0,0,0,1,[{offset:0,color:"#e7a0a6"},{offset:.5,color:"#dc7b86"},{offset:1,color:"#d7636e"}])}}]};this.myChart.setOption(option)}}}},"499d":function(e,t,i){"use strict";i("999c")},"49f2":function(e,t,i){"use strict";i.r(t);var r=function(){var e=this;e._self._c;return e._m(0)},n=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"module_wrap box_border"},[t("div",{staticClass:"box_title"},[e._v("结案周期分布")]),t("div",{attrs:{id:"case_cycle_pie"}})])}],s=(i("f16c"),i("45d2"),i("8160"),i("ada4")),o={name:"CaseCycle",props:{isCollapse:{type:Boolean,default:!0},navForm:{type:Object,default:{}}},watch:{isCollapse(){setTimeout(()=>{this.myChart&&this.myChart.resize()},600)},navForm:{deep:!0,handler(e){this.province=e.accidentProvince,this.getData()}}},data(){return{topDays:[],newNumber:0,myChart:""}},mounted(){this.role=localStorage.getItem("role"),this.getData(),window.addEventListener("resize",()=>{this.myChart&&setTimeout(()=>{this.myChart.resize()},500)})},methods:{getData(){this.instance({method:"post",url:"/large/data/screen/meituanCaseNumVo",data:this.navForm,headers:{"Content-Type":"application/json;charset=UTF-8"}}).then(e=>{if(1==e.data.code){let t=e.data.data;t.length>0&&this.loadCharts(t)}})},loadCharts(e){var t=document.getElementById("case_cycle_pie");if(!t)return;this.myChart=s["init"](t,null,{renderer:"svg"});let i=[];e.forEach((e,t)=>{let r={value:e.caseNum,name:e.name,itemStyle:{borderColor:"#E3A505",shadowColor:"#433f24"}};1==t?r.itemStyle={borderColor:"#98fd7f",shadowColor:"#195c4b"}:2==t?r.itemStyle={borderColor:"#D1818B",shadowColor:"#632053"}:3==t&&(r.itemStyle={borderColor:"#2485af",shadowColor:"#082159"}),i.push(r)});var r={tooltip:{trigger:"item",formatter:"{b}: {c}件",confine:!0},legend:{bottom:"5%",itemWidth:12,itemHeight:12,textStyle:{color:"#fff"},left:"center"},series:[{type:"pie",radius:"55%",center:["50%","40%"],avoidLabelOverlap:!1,label:{position:"inner",fontSize:10,color:"#fff",formatter:"{d}%"},labelLine:{show:!1},itemStyle:{borderColor:"#e4393c",borderWidth:5,color:"#0A1A2E",shadowBlur:5,shadowColor:"rgba(85, 255, 0, 1)"},selectedMode:"single",data:i}]};this.myChart.setOption(r,!0)}}},a=o,l=(i("b1f1"),i("1805")),c=Object(l["a"])(a,r,n,!1,null,"7b71a94e",null);t["default"]=c.exports},"4c9c":function(e,t,i){"use strict";i("be4f")},"4f4d":function(e,t,i){"use strict";i("24f0")},"4f8c":function(e,t,i){},"4fd9":function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"module_wrap box_border"},[t("div",{staticClass:"box_border ratio_box"},[t("div",[t("b",[e._v("结案率:")]),t("span",[e._v(e._s(e.casesData.closingRate)+"%")])]),t("div",[t("b",[e._v("24小时报案率:")]),t("span",[e._v(e._s(e.casesData.durationOfFirstReportingDelay)+"%")])])]),t("ul",{staticClass:"ratio_ul"},[t("li",{staticClass:"box_border"},[t("b",[e._v("已决案件")]),t("div",[e._v(e._s(e.casesData.settledCaseNo)+" (笔)")])]),t("li",{staticClass:"box_border"},[t("b",[e._v("已决总赔款")]),t("div",[e._v(e._s(e.casesData.totalCompensationAmount)+" (万元)")])]),t("li",{staticClass:"box_border"},[t("b",[e._v("未决案件")]),t("div",[e._v(e._s(e.casesData.unsettledCaseNo)+" (笔)")])]),t("li",{staticClass:"box_border"},[t("b",[e._v("未决总估损")]),t("div",[e._v(e._s(e.casesData.predictCompensationAmount)+" (万元)")])])])])},n=[],s={name:"SettleLawsuit",props:{navForm:{type:Object,default:()=>({})}},watch:{navForm:{deep:!0,handler(e){this.getData()}}},data(){return{casesData:{},newNumber:0}},mounted(){this.role=localStorage.getItem("role"),this.getData()},methods:{getData(){this.instance({method:"post",url:"/large/data/screen/meituanCaseData",data:this.navForm,headers:{"Content-Type":"application/json;charset=UTF-8"}}).then(e=>{1==e.data.code&&(this.casesData=e.data.data)})}}},o=s,a=(i("3b4b"),i("b0c9"),i("1805")),l=Object(a["a"])(o,r,n,!1,null,"7becfabb",null);t["default"]=l.exports},5358:function(e,t,i){"use strict";i("d5e0")},"538b":function(e,t,i){"use strict";var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"wrap"},[e._e(),t("div",{staticClass:"public_box"},[t("div",{staticClass:"box_content"},[t("p",{staticClass:"box_title title_hot"},[e._v("案件基础条件")]),t("el-row",[t("el-col",{attrs:{span:7,offset:1}},[t("span",[e._v("案件号:"+e._s(e.caseData.caseNo))])]),t("el-col",{attrs:{span:6}},[t("span",[e._v("保单号:"+e._s(e.caseData.policyNo))])]),t("el-col",{attrs:{span:10}},[t("span",[e._v("保险公司:"+e._s(e.caseData.insureCompany))])])],1),t("el-row",[t("el-col",{attrs:{span:7,offset:1}},[t("span",[e._v("报案时间:"+e._s(e.caseData.reportTime))])]),t("el-col",{attrs:{span:6}},[t("span",[e._v("结案时间:"+e._s(e.caseData.closeTime))])]),t("el-col",{attrs:{span:10}},[t("span",[e._v("险种:"+e._s(e.caseData.insureType))])])],1),t("el-row",[t("el-col",{attrs:{span:7,offset:1}},[t("span",[e._v("案件时长:"+e._s(e.caseData.caseTimeStr))])]),t("el-col",{attrs:{span:6}},[t("span",[e._v("实际赔付金额:"+e._s(e.caseData.payAmount?e.caseData.payAmount:"")+" 元")])]),t("el-col",{attrs:{span:10}},[t("span",[e._v("案件状态:"+e._s(e.caseData.caseStatus))])])],1),t("el-row",[t("el-col",{attrs:{span:7,offset:1}},[t("span",[e._v("事故地点:"+e._s(e.caseData.accidentAddress))])])],1)],1),t("div",{staticClass:"box_content"},[t("p",{staticClass:"box_title title_hot"},[e._v("质检情况反馈")]),t("el-row",[t("el-col",{attrs:{span:7,offset:1}},[t("span",[e._v("质检人:"+e._s(e.caseData.username))])]),t("el-col",{attrs:{span:6}},[t("span",[e._v("时长:"+e._s(e.caseData.consumeTimeStr))])]),t("el-col",{attrs:{span:10}},[t("span",[e._v("任务分配时间:"+e._s(e.caseData.inletTime))])])],1),t("el-row",[t("el-col",{attrs:{span:7,offset:1}},[t("span",[e._v("开始时间:"+e._s(e.caseData.handlerTime))])]),t("el-col",{attrs:{span:6}},[t("span",[e._v("结束时间:"+e._s(e.caseData.submitTime))])]),t("el-col",{attrs:{span:10}},[t("span",[e._v("人工理算金额总和:"+e._s(e.caseData.adjustAmount))])])],1),e.caseData.submit?t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.navForm,rules:e.navFormRules}},[t("el-row",[t("el-col",{attrs:{span:6,offset:1}},[t("el-form-item",{staticClass:"label_title",attrs:{label:"车损人工理算金额:",prop:"vehicleDamageAmount"}},[t("el-row",[t("el-col",{attrs:{span:13}},[t("el-input",{model:{value:e.navForm.vehicleDamageAmount,callback:function(t){e.$set(e.navForm,"vehicleDamageAmount",t)},expression:"navForm.vehicleDamageAmount"}})],1)],1)],1)],1),t("el-col",{attrs:{span:10,offset:1}},[t("el-form-item",{attrs:{label:"原因:",prop:"vehicleDamageReason"}},[t("el-col",{attrs:{span:10}},[t("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入内容"},model:{value:e.navForm.vehicleDamageReason,callback:function(t){e.$set(e.navForm,"vehicleDamageReason",t)},expression:"navForm.vehicleDamageReason"}})],1)],1)],1)],1),t("el-row",[t("el-col",{attrs:{span:6,offset:1}},[t("el-form-item",{staticClass:"label_title",attrs:{label:"人伤人工理算金额:",prop:"humanInjuryAmount"}},[t("el-row",[t("el-col",{attrs:{span:13}},[t("el-input",{model:{value:e.navForm.humanInjuryAmount,callback:function(t){e.$set(e.navForm,"humanInjuryAmount",t)},expression:"navForm.humanInjuryAmount"}})],1)],1)],1)],1),t("el-col",{attrs:{span:10,offset:1}},[t("el-form-item",{attrs:{label:"原因:",prop:"humanInjuryReason"}},[t("el-col",{attrs:{span:10}},[t("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入内容"},model:{value:e.navForm.humanInjuryReason,callback:function(t){e.$set(e.navForm,"humanInjuryReason",t)},expression:"navForm.humanInjuryReason"}})],1)],1)],1)],1)],1):e._e(),e.caseData.submit?t("el-row",{staticClass:"text_center"},[t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("提交")])],1):e._e(),e.caseData.submit?e._e():t("el-row",[t("el-col",{attrs:{span:6,offset:1}},[t("span",[e._v("车损人工理算金额:"+e._s(e.caseData.vehicleDamageAmount))])]),t("el-col",{attrs:{span:8,offset:1}},[t("span",[e._v("原因:"+e._s(e.caseData.vehicleDamageReason))])])],1),e.caseData.submit?e._e():t("el-row",[t("el-col",{attrs:{span:6,offset:1}},[t("span",[e._v("人伤人工理算金额:"+e._s(e.caseData.humanInjuryAmount))])]),t("el-col",{attrs:{span:8,offset:1}},[t("span",[e._v("原因:"+e._s(e.caseData.humanInjuryReason))])])],1)],1)])])},n=[],s={name:"caseInfo",props:{caseData:{}},data(){return{navForm:{humanInjuryAmount:"",humanInjuryReason:"",vehicleDamageAmount:"",vehicleDamageReason:""},navFormRules:{vehicleDamageAmount:[{required:!0,message:"请输入内容",trigger:"blur"}],vehicleDamageReason:[{required:!0,message:"请输入内容",trigger:"blur"}],humanInjuryAmount:[{required:!0,message:"请输入内容",trigger:"blur"}],humanInjuryReason:[{required:!0,message:"请输入内容",trigger:"blur"}]},inputValue:""}},watch:{caseData(e){e&&(this.navForm={humanInjuryAmount:e.humanInjuryAmount,humanInjuryReason:e.humanInjuryReason,vehicleDamageAmount:e.vehicleDamageAmount,vehicleDamageReason:e.vehicleDamageReason})}},methods:{submitForm(e){this.$refs[e].validate(e=>{e&&this.instance.post("/caseJobCheck/commitCaseJob/"+this.caseData.caseNo,this.navForm).then(e=>{let t=e.data;1==t.code?(t.data.rowIndex=this.caseData.rowIndex,this.caseData=t.data,this.caseData.submit=!0,sessionStorage.setItem("caseData",JSON.stringify(this.caseData)),this.$message.success(e.data.message),this.$emit("submitCase",!1)):this.$message.error(e.data.message)})})}}},o=s,a=(i("ca96"),i("1805")),l=Object(a["a"])(o,r,n,!1,null,null,null);t["a"]=l.exports},"569d":function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return e.modalVisible?t("div",{staticClass:"modal",on:{click:function(t){return t.target!==t.currentTarget?null:e.handleReturn.apply(null,arguments)}}},[t("div",{staticClass:"modal_box"},["success"==e.pageType?[e._m(0),t("div",{staticClass:"modal_success"},[t("el-button",{attrs:{type:"primary",size:"default",plain:""},on:{click:e.handleReturn}},[e._v("提交成功")])],1)]:[e._m(1),t("div",{staticClass:"modal_text"},[t("span",[e._v("共有 ")]),t("b",[e._v(e._s(e.tipsNum)+"项 ")]),t("span",[e._v("报价异常")])]),t("div",{staticClass:"modal_btn_group"},[t("el-button",{attrs:{size:"default"},on:{click:e.handleSubmit}},[e._v("仍要提交")]),t("el-button",{attrs:{size:"default"},on:{click:e.handleReturn}},[e._v("返回修改")])],1)]],2)]):e._e()},n=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"modal_img"},[t("img",{attrs:{src:i("4619")}})])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"modal_img"},[t("img",{attrs:{src:i("fc27")}})])}],s={name:"ResultModal",props:{pageType:{type:String,default:"success"},tipsNum:{type:Number,default:0},modalVisible:{type:Boolean,default:!1}},components:{},data(){return{}},methods:{handleReturn(){this.$emit("handleReturn")},handleSubmit(){this.$emit("addWorkOrders")}}},o=s,a=(i("6a7e"),i("1805")),l=Object(a["a"])(o,r,n,!1,null,"2606f454",null);t["default"]=l.exports},"580d":function(e,t,i){"use strict";i("7b82")},5942:function(e,t,i){},"59e1":function(e,t,i){"use strict";i("9142")},"5b8b":function(e,t,i){},"5c7d":function(e,t,i){"use strict";i("f3ea")},"5cc7":function(e,t,i){"use strict";i("2021")},"5ce0":function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"wrap"},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.caseInfo,expression:"!caseInfo"}],staticClass:"task_page"},[e._m(0),t("div",{staticClass:"search_box public_box"},[t("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.navForm}},[t("el-form-item",{staticClass:"dateBox",attrs:{label:"报案开始时间:"}},[t("el-date-picker",{attrs:{type:"datetime",placeholder:"选择日期时间","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.navForm.reportStartTime,callback:function(t){e.$set(e.navForm,"reportStartTime",t)},expression:"navForm.reportStartTime"}})],1),t("el-form-item",{staticClass:"dateBox",attrs:{label:"报案结束时间:"}},[t("el-date-picker",{attrs:{type:"datetime",placeholder:"选择日期时间","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.navForm.reportEndTime,callback:function(t){e.$set(e.navForm,"reportEndTime",t)},expression:"navForm.reportEndTime"}})],1),t("el-form-item",{attrs:{label:"案件号:"}},[t("el-input",{attrs:{type:"text",placeholder:"请输入案件号",clearable:""},model:{value:e.navForm.caseNo,callback:function(t){e.$set(e.navForm,"caseNo",t)},expression:"navForm.caseNo"}})],1),t("el-form-item",{attrs:{label:"保单号:"}},[t("el-input",{attrs:{type:"text",placeholder:"请输入保单号",clearable:""},model:{value:e.navForm.policyNo,callback:function(t){e.$set(e.navForm,"policyNo",t)},expression:"navForm.policyNo"}})],1),t("el-form-item",{attrs:{label:"案件状态:"}},[t("el-select",{attrs:{placeholder:"请选择"},model:{value:e.navForm.commitStatus,callback:function(t){e.$set(e.navForm,"commitStatus",t)},expression:"navForm.commitStatus"}},[t("el-option",{attrs:{label:"未处理",value:"1"}}),t("el-option",{attrs:{label:"已处理",value:"2"}}),t("el-option",{attrs:{label:"全部",value:"99"}})],1)],1),t("el-form-item",[t("el-button",{staticStyle:{"margin-left":"0.2rem"},attrs:{type:"primary"},on:{click:function(t){return e.getTaskList(!0)}}},[e._v("查询")])],1),t("el-form-item",[t("el-button",{staticStyle:{"margin-left":"0.2rem"},attrs:{type:"primary"},on:{click:e.claimTask}},[e._v("认领任务")])],1)],1)],1),t("div",{staticClass:"main"},[t("div",{staticClass:"table_box public_box"},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,height:"470"}},[t("el-table-column",{attrs:{prop:"caseNo",label:"案件号"},scopedSlots:e._u([{key:"default",fn:function(i){return[i.row.caseNo.length<7?t("span",[e._v(e._s(i.row.caseNo))]):t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:i.row.caseNo,placement:"top-start"}},[t("span",[e._v(e._s(i.row.caseNo.slice(0,6)+"..."))])])]}}])}),t("el-table-column",{attrs:{prop:"policyNo",label:"保单号"},scopedSlots:e._u([{key:"default",fn:function(i){return[i.row.policyNo.length<10?t("span",[e._v(e._s(i.row.policyNo))]):t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:i.row.policyNo,placement:"top-start"}},[t("span",[e._v(e._s(i.row.policyNo.slice(0,6)+"..."))])])]}}])}),t("el-table-column",{attrs:{prop:"insureCompany",label:"保险公司"},scopedSlots:e._u([{key:"default",fn:function(i){return[i.row.insureCompany.length<8?t("span",[e._v(e._s(i.row.insureCompany))]):t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:i.row.insureCompany,placement:"top-start"}},[t("span",[e._v(e._s(i.row.insureCompany.slice(0,5)+"..."))])])]}}])}),t("el-table-column",{attrs:{prop:"accidentAddress",label:"事故地点"},scopedSlots:e._u([{key:"default",fn:function(i){return[i.row.accidentAddress.length<8?t("span",[e._v(e._s(i.row.accidentAddress))]):t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:i.row.accidentAddress,placement:"top-start"}},[t("span",[e._v(e._s(i.row.accidentAddress.slice(0,4)+"..."))])])]}}])}),t("el-table-column",{attrs:{prop:"insureType",label:"险种",width:"110"}}),t("el-table-column",{attrs:{prop:"reportTime",label:"报案时间",width:"135"}}),t("el-table-column",{attrs:{prop:"closeTime",label:"结案时间",width:"135"}}),t("el-table-column",{attrs:{prop:"caseStatus",label:"案件状态",width:"70"}}),t("el-table-column",{attrs:{prop:"consumeTimeStr",label:"案件总用时"}}),t("el-table-column",{attrs:{prop:"payAmount",label:"实际赔付金额"}}),t("el-table-column",{attrs:{prop:"adjustAmount",label:"人工理算金额"}}),t("el-table-column",{attrs:{prop:"diffAmount",label:"差价",width:"90"}}),t("el-table-column",{attrs:{prop:"username",label:"处理人"}}),t("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(i){return[t("span",{staticClass:"a_color",on:{click:function(t){return e.lookDetails(i.row,!0,i.$index)}}},[e._v("处理")])]}}])})],1),t("el-pagination",{attrs:{"current-page":e.navForm.page,layout:"total, sizes, prev, pager, next, jumper","page-sizes":[10,20],"page-size":e.navForm.size,total:e.navForm.total},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1)])]),e.caseInfo?t("div",{staticClass:"case_page"},[t("div",{staticClass:"page_title cursor",on:{click:function(t){return e.lookDetails(null,!1)}}},[t("b",[e._v("< 返回")])]),t("case-info",{attrs:{"case-data":e.caseRowData},on:{submitCase:e.submitCase}})],1):e._e()])},n=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"page_title"},[t("b",[e._v("我的任务")])])}],s=i("538b"),o={components:{CaseInfo:s["a"]},data(){return{navForm:{reportStartTime:"",reportEndTime:"",commitStatus:"1",caseNo:"",policyNo:"",size:10,page:1,total:1},loading:!1,caseInfo:!1,tableData:[],caseRowData:{}}},mounted(){this.getTaskList()},methods:{searchTable(){},claimTask(){this.instance.post("/caseJobCheck/allocationCaseJob",{}).then(e=>{let t=e.data;1==t.code?this.getTaskList():this.$message.error(e.data.message)})},lookDetails(e,t,i){if(t&&this.instance.post("/caseJobCheck/handleCaseJob/"+e.caseNo,{}).then(e=>{let t=e.data;1==t.code&&(this.caseRowData=t.data,this.caseRowData.submit=!0,this.caseRowData.rowIndex=i)}),!t){let e=sessionStorage.getItem("caseData")?JSON.parse(sessionStorage.getItem("caseData")):{};this.$set(this.tableData,e.rowIndex,e)}this.caseInfo=t},getTaskList(e){let t=JSON.parse(JSON.stringify(this.navForm));t.page=e?1:t.page,t.size=e?10:t.size,this.instance.post("/caseJobCheck/myPageJob",t).then(e=>{let t=e.data;1==t.code?(this.tableData=t.data.list,this.navForm.size=t.data.size,this.navForm.page=t.data.current,this.navForm.total=t.data.total):this.$message.error(e.data.message)})},handleSizeChange(e){this.navForm.size=e,this.getTaskList()},handleCurrentChange(e){this.navForm.page=e,this.getTaskList()},submitCase(e){this.caseInfo=!1,this.getTaskList()}}},a=o,l=(i("4f4d"),i("1805")),c=Object(l["a"])(a,r,n,!1,null,null,null);t["default"]=c.exports},"5de3":function(e,t,i){"use strict";i("3839")},6032:function(e,t,i){"use strict";i.d(t,"b",(function(){return s})),i.d(t,"c",(function(){return r})),i.d(t,"a",(function(){return n}));var r={"上海市":[121.487899486,31.24916171],"临沧市":[100.092612914,23.8878061038],"丽江市":[100.229628399,26.8753510895],"保山市":[99.1779956133,25.1204891962],"大理白族自治州":[100.223674789,25.5968996394],"德宏傣族景颇族自治州":[98.5894342874,24.441239663],"怒江傈僳族自治州":[98.8599320425,25.8606769782],"文山壮族苗族自治州":[104.246294318,23.3740868504],"昆明市":[102.714601139,25.0491531005],"昭通市":[103.725020656,27.3406329636],"普洱市":[100.98005773,22.7887777801],"曲靖市":[103.782538888,25.5207581429],"楚雄彝族自治州":[101.529382239,25.0663556742],"玉溪市":[102.545067892,24.3704471344],"红河哈尼族彝族自治州":[103.384064757,23.3677175165],"西双版纳傣族自治州":[100.803038275,22.0094330022],"迪庆藏族自治州":[99.7136815989,27.8310294612],"乌兰察布市":[113.112846391,41.0223629468],"乌海市":[106.831999097,39.6831770068],"兴安盟":[122.048166514,46.0837570652],"包头市":[109.846238532,40.6471194257],"呼伦贝尔市":[119.760821794,49.2016360546],"呼和浩特市":[111.66035052,40.8283188731],"巴彦淖尔市":[107.42380672,40.7691799024],"赤峰市":[118.930761192,42.2971123203],"通辽市":[122.260363263,43.633756073],"鄂尔多斯市":[109.993706251,39.8164895606],"锡林郭勒盟":[116.027339689,43.9397048423],"阿拉善盟":[105.695682871,38.8430752644],"北京市":[116.395645038,39.9299857781],"台中市":[119.337634104,26.0911937119],"台北市":[114.130474436,22.3748329286],"台南市":[121.360525873,38.9658447898],"嘉义市":[114.246701335,22.7288657203],"高雄市":[111.590952812,21.9464822541],"吉林市":[126.564543989,43.8719883344],"四平市":[124.391382074,43.1755247011],"延边朝鲜族自治州":[129.485901958,42.8964136037],"松原市":[124.832994532,45.1360489701],"白城市":[122.840776679,45.6210862752],"白山市":[126.435797675,41.945859397],"辽源市":[125.133686052,42.9233026191],"通化市":[125.942650139,41.7363971299],"长春市":[125.313642427,43.8983376071],"乐山市":[103.760824239,29.6009576111],"内江市":[105.073055992,29.5994615348],"凉山彝族自治州":[102.259590803,27.8923929037],"南充市":[106.105553984,30.8009651682],"宜宾市":[104.633019062,28.7696747963],"巴中市":[106.757915842,31.8691891592],"广元市":[105.81968694,32.4410401584],"广安市":[106.635720331,30.4639838879],"德阳市":[104.402397818,31.1311396527],"成都市":[104.067923463,30.6799428454],"攀枝花市":[101.722423152,26.5875712571],"泸州市":[105.443970289,28.8959298039],"甘孜藏族自治州":[101.969232063,30.0551441144],"眉山市":[103.841429563,30.0611150799],"绵阳市":[104.705518975,31.5047012581],"自贡市":[104.776071339,29.3591568895],"资阳市":[104.635930302,30.132191434],"达州市":[107.494973447,31.2141988589],"遂宁市":[105.564887792,30.5574913504],"阿坝藏族羌族自治州":[102.228564689,31.9057628583],"雅安市":[103.009356466,29.9997163371],"天津市":[117.210813092,39.1439299033],"中卫市":[105.196754199,37.5211241916],"吴忠市":[106.208254199,37.9935610029],"固原市":[106.285267996,36.0215234807],"石嘴山市":[106.379337202,39.0202232836],"银川市":[106.206478608,38.5026210119],"亳州市":[115.787928245,33.8712105653],"六安市":[116.505252683,31.7555583552],"合肥市":[117.282699092,31.8669422607],"安庆市":[117.058738772,30.5378978174],"宣城市":[118.752096311,30.9516423543],"宿州市":[116.988692412,33.6367723858],"池州市":[117.494476772,30.6600192482],"淮北市":[116.791447429,33.9600233054],"淮南市":[117.018638863,32.6428118237],"滁州市":[118.324570351,32.3173505954],"芜湖市":[118.384108423,31.3660197875],"蚌埠市":[117.357079866,32.9294989067],"铜陵市":[117.819428729,30.9409296947],"阜阳市":[115.820932259,32.9012113306],"马鞍山市":[118.515881847,31.6885281589],"黄山市":[118.293569632,29.7344348562],"东营市":[118.583926333,37.4871211553],"临沂市":[118.340768237,35.0724090744],"威海市":[122.093958366,37.5287870813],"德州市":[116.328161364,37.4608259263],"日照市":[119.507179943,35.4202251931],"枣庄市":[117.279305383,34.8078830784],"泰安市":[117.089414917,36.1880777589],"济南市":[117.024967066,36.6827847272],"济宁市":[116.600797625,35.4021216643],"淄博市":[118.059134278,36.8046848542],"滨州市":[117.968292415,37.4053139418],"潍坊市":[119.142633823,36.7161148731],"烟台市":[121.30955503,37.5365615629],"聊城市":[115.986869139,36.4558285147],"莱芜市":[117.684666912,36.2336541336],"菏泽市":[115.463359775,35.2624404961],"青岛市":[120.384428184,36.1052149013],"临汾市":[111.538787596,36.0997454436],"吕梁市":[111.143156602,37.527316097],"大同市":[113.290508673,40.1137444997],"太原市":[112.550863589,37.890277054],"忻州市":[112.727938829,38.461030573],"晋中市":[112.7385144,37.6933615268],"晋城市":[112.867332758,35.4998344672],"朔州市":[112.479927727,39.3376719662],"运城市":[111.006853653,35.0388594798],"长治市":[113.120292086,36.2016643857],"阳泉市":[113.569237602,37.8695294932],"东莞市":[113.763433991,23.0430238154],"中山市":[113.422060021,22.5451775145],"云浮市":[112.050945959,22.9379756855],"佛山市":[113.134025635,23.0350948405],"广州市":[113.307649675,23.1200491021],"惠州市":[114.41065808,23.1135398524],"揭阳市":[116.379500855,23.5479994669],"梅州市":[116.126403098,24.304570606],"汕头市":[116.728650288,23.3839084533],"汕尾市":[115.372924289,22.7787305002],"江门市":[113.078125341,22.5751167835],"河源市":[114.713721476,23.7572508505],"深圳市":[114.025973657,22.5460535462],"清远市":[113.040773349,23.6984685504],"湛江市":[110.365067263,21.2574631038],"潮州市":[116.630075991,23.6618116765],"珠海市":[113.562447026,22.2569146461],"肇庆市":[112.47965337,23.0786632829],"茂名市":[110.931245331,21.6682257188],"阳江市":[111.977009756,21.8715173045],"韶关市":[113.594461107,24.8029603119],"北海市":[109.122627919,21.472718235],"南宁市":[108.297233556,22.8064929356],"崇左市":[107.357322038,22.4154552965],"来宾市":[109.231816505,23.7411659265],"柳州市":[109.42240181,24.3290533525],"桂林市":[110.260920147,25.262901246],"梧州市":[111.30547195,23.4853946367],"河池市":[108.069947709,24.6995207829],"玉林市":[110.151676316,22.6439736084],"百色市":[106.631821404,23.9015123679],"贵港市":[109.613707557,23.1033731644],"贺州市":[111.552594179,24.4110535471],"钦州市":[108.638798056,21.9733504653],"防城港市":[108.351791153,21.6173984705],"乌鲁木齐市":[87.5649877411,43.8403803472],"伊犁哈萨克自治州":[81.2978535304,43.9222480963],"克孜勒苏柯尔克孜自治州":[76.1375644775,39.7503455778],"克拉玛依市":[84.8811801861,45.5943310667],"博尔塔拉蒙古自治州":[82.0524362672,44.9136513743],"吐鲁番地区":[89.1815948657,42.9604700169],"和田地区":[79.9302386372,37.1167744927],"哈密地区":[93.5283550928,42.8585963324],"喀什地区":[75.9929732675,39.4706271887],"塔城地区":[82.9748805837,46.7586836297],"昌吉回族自治州":[87.2960381257,44.0070578985],"阿克苏地区":[80.2698461793,41.1717309015],"阿勒泰地区":[88.1379154871,47.8397444862],"南京市":[118.778074408,32.0572355018],"南通市":[120.873800951,32.0146645408],"宿迁市":[118.296893379,33.9520497337],"常州市":[119.981861013,31.7713967447],"徐州市":[117.188106623,34.2715534311],"扬州市":[119.427777551,32.4085052546],"无锡市":[120.305455901,31.5700374519],"泰州市":[119.919606016,32.4760532748],"淮安市":[119.030186365,33.6065127393],"盐城市":[120.148871818,33.3798618771],"苏州市":[120.619907115,31.317987368],"连云港市":[119.173872217,34.601548967],"镇江市":[119.455835405,32.2044094436],"上饶市":[117.955463877,28.4576225539],"九江市":[115.999848022,29.7196395261],"南昌市":[115.893527546,28.6895780001],"吉安市":[114.992038711,27.1138476502],"宜春市":[114.400038672,27.8111298958],"抚州市":[116.360918867,27.9545451703],"新余市":[114.947117417,27.8223215586],"景德镇市":[117.186522625,29.3035627684],"萍乡市":[113.859917033,27.639544223],"赣州市":[114.935909079,25.8452955363],"鹰潭市":[117.035450186,28.2413095972],"保定市":[115.494810169,38.886564548],"唐山市":[118.183450598,39.6505309225],"廊坊市":[116.703602223,39.5186106251],"张家口市":[114.89378153,40.8111884911],"承德市":[117.933822456,40.9925210525],"沧州市":[116.863806476,38.2976153503],"石家庄市":[114.522081844,38.0489583146],"秦皇岛市":[119.604367616,39.9454615659],"衡水市":[115.686228653,37.7469290459],"邢台市":[114.520486813,37.0695311969],"邯郸市":[114.482693932,36.6093079285],"三门峡市":[111.181262093,34.7833199411],"信阳市":[114.085490993,32.1285823075],"南阳市":[112.542841901,33.0114195691],"周口市":[114.654101942,33.6237408181],"商丘市":[115.641885688,34.4385886402],"安阳市":[114.351806508,36.1102667222],"平顶山市":[113.300848978,33.7453014565],"开封市":[114.351642118,34.8018541758],"新乡市":[113.912690161,35.3072575577],"洛阳市":[112.447524769,34.6573678177],"漯河市":[114.0460614,33.5762786885],"濮阳市":[115.026627441,35.7532978882],"焦作市":[113.211835885,35.234607555],"许昌市":[113.83531246,34.0267395887],"郑州市":[113.64964385,34.7566100641],"驻马店市":[114.049153547,32.9831581541],"鹤壁市":[114.297769838,35.7554258742],"丽水市":[119.929575843,28.4562995521],"台州市":[121.440612936,28.6682832857],"嘉兴市":[120.760427699,30.7739922396],"宁波市":[121.579005973,29.8852589659],"杭州市":[120.219375416,30.2592444615],"温州市":[120.690634734,28.002837594],"湖州市":[120.137243163,30.8779251557],"绍兴市":[120.592467386,30.0023645805],"舟山市":[122.169872098,30.0360103026],"衢州市":[118.875841652,28.9569104475],"金华市":[119.652575704,29.1028991054],"三亚市":[109.522771281,18.2577759149],"三沙市":[112.350383075,16.840062894],"海口市":[110.330801848,20.022071277],"十堰市":[110.801228917,32.6369943395],"咸宁市":[114.300060592,29.8806567577],"孝感市":[113.935734392,30.9279547842],"宜昌市":[111.310981092,30.732757818],"恩施土家族苗族自治州":[109.491923304,30.2858883166],"武汉市":[114.316200103,30.5810841269],"荆州市":[112.241865807,30.332590523],"荆门市":[112.217330299,31.0426112029],"襄阳市":[112.250092848,32.2291685915],"鄂州市":[114.895594041,30.3844393228],"随州市":[113.379358364,31.7178576082],"黄冈市":[114.906618047,30.4461089379],"黄石市":[115.050683164,30.2161271277],"娄底市":[111.996396357,27.7410733023],"岳阳市":[113.146195519,29.3780070755],"常德市":[111.653718137,29.0121488552],"张家界市":[110.481620157,29.1248893532],"怀化市":[109.986958796,27.5574829012],"株洲市":[113.131695341,27.8274329277],"永州市":[111.614647686,26.4359716468],"湘潭市":[112.935555633,27.835095053],"湘西土家族苗族自治州":[109.7457458,28.3179507937],"益阳市":[112.366546645,28.5880877799],"衡阳市":[112.583818811,26.8981644154],"邵阳市":[111.461525404,27.2368112449],"郴州市":[113.037704468,25.7822639757],"长沙市":[112.979352788,28.2134782309],"澳门半岛":[113.566432335,22.1950041592],"澳门离岛":[113.557519102,22.2041179884],"临夏回族自治州":[103.215249178,35.5985143488],"兰州市":[103.823305441,36.064225525],"嘉峪关市":[98.2816345853,39.8023973267],"天水市":[105.736931623,34.5843194189],"定西市":[104.626637601,35.5860562418],"平凉市":[106.688911157,35.55011019],"庆阳市":[107.644227087,35.7268007545],"张掖市":[100.459891869,38.939320297],"武威市":[102.640147343,37.9331721429],"甘南藏族自治州":[102.917442486,34.9922111784],"白银市":[104.171240904,36.5466817062],"酒泉市":[98.5084145062,39.7414737682],"金昌市":[102.208126263,38.5160717995],"陇南市":[104.934573406,33.3944799729],"三明市":[117.642193934,26.2708352794],"南平市":[118.181882949,26.6436264742],"厦门市":[118.103886046,24.4892306125],"宁德市":[119.54208215,26.6565274192],"泉州市":[118.600362343,24.901652384],"漳州市":[117.676204679,24.5170647798],"福州市":[119.330221107,26.0471254966],"莆田市":[119.077730964,25.4484501367],"龙岩市":[117.017996739,25.0786854335],"山南地区":[91.7506438744,29.2290269317],"拉萨市":[91.111890896,29.6625570621],"日喀则地区":[88.8914855677,29.2690232039],"昌都地区":[97.18558158,31.1405756319],"林芝地区":[94.3499854582,29.6669406258],"那曲地区":[92.0670183689,31.4806798301],"阿里地区":[81.1076686895,30.4045565883],"六盘水市":[104.85208676,26.5918660603],"安顺市":[105.928269966,26.2285945777],"毕节市":[105.333323371,27.4085621313],"贵阳市":[106.709177096,26.6299067414],"遵义市":[106.931260316,27.6999613771],"铜仁市":[109.168558028,27.6749026906],"黔东南苗族侗族自治州":[107.985352573,26.5839917665],"黔南布依族苗族自治州":[107.52320511,26.2645359974],"黔西南布依族苗族自治州":[104.900557798,25.0951480559],"丹东市":[124.338543115,40.1290228266],"大连市":[121.593477781,38.9487099383],"抚顺市":[123.929819767,41.8773038296],"朝阳市":[120.446162703,41.5718276679],"本溪市":[123.77806237,41.3258376266],"沈阳市":[123.432790922,41.8086447835],"盘锦市":[122.07322781,41.141248023],"营口市":[122.233391371,40.6686510665],"葫芦岛市":[120.860757645,40.7430298813],"辽阳市":[123.172451205,41.2733392656],"铁岭市":[123.854849615,42.2997570121],"锦州市":[121.147748738,41.1308788759],"阜新市":[121.660822129,42.0192501071],"鞍山市":[123.007763329,41.1187436822],"重庆市":[106.530635013,29.5446061089],"咸阳市":[108.707509278,34.345372996],"商洛市":[109.934208154,33.8739073951],"安康市":[109.038044563,32.70437045],"宝鸡市":[107.170645452,34.3640808097],"延安市":[109.500509757,36.6033203523],"榆林市":[109.745925744,38.2794392401],"汉中市":[107.045477629,33.0815689782],"渭南市":[109.483932697,34.5023579758],"西安市":[108.953098279,34.2777998978],"铜川市":[108.968067013,34.9083676964],"果洛藏族自治州":[100.223722769,34.4804845846],"海东地区":[102.085206987,36.5176101677],"海北藏族自治州":[100.879802174,36.9606541011],"海南藏族自治州":[100.624066094,36.2843638038],"海西蒙古族藏族自治州":[97.3426254153,37.3737990706],"玉树藏族自治州":[97.0133161374,33.0062399097],"西宁市":[101.76792099,36.640738612],"黄南藏族自治州":[102.007600308,35.5228515517],"九龙":[114.173291988,22.3072458588],"新界":[114.146701965,22.4274312754],"香港岛":[114.183870524,22.2721034276],"七台河市":[131.019048047,45.7750053686],"伊春市":[128.910765978,47.7346850751],"佳木斯市":[130.284734586,46.8137796047],"双鸭山市":[131.17140174,46.6551020625],"哈尔滨市":[126.657716855,45.7732246332],"大兴安岭地区":[124.19610419,51.991788968],"大庆市":[125.02183973,46.59670902],"牡丹江市":[129.608035396,44.5885211528],"绥化市":[126.989094572,46.646063927],"鸡西市":[130.941767273,45.3215398866],"鹤岗市":[130.292472051,47.3386659037],"黑河市":[127.500830295,50.2506900907],"齐齐哈尔市":[123.987288942,47.3476998134]},n={"中国":"map/data-china.json","上海":"map/data-hainan.json","河北":"map/data-xizang.json","山西":"map/data-zhejiang.json","内蒙古":"map/data-yunnan.json","辽宁":"map/data-xinjiang.json","吉林":"map/data-tianjin.json","黑龙江":"map/data-sichuan.json","江苏":"map/data-shanxi.json","浙江":"map/data-shangxi.json","安徽":"map/data-shanghai.json","福建":"map/data-shangdong.json","江西":"map/data-qinghai.json","山东":"map/data-ningxia.json","河南":"map/data-neimenggu.json","湖北":"map/data-liaoning.json","湖南":"map/data-jilin.json","广东":"map/data-jiangxi.json","广西":"map/data-jiangsu.json","海南":"map/data-hunan.json","四川":"map/data-hubei.json","贵州":"map/data-henan.json","云南":"map/data-heilongjiang.json","西藏":"map/data-hebei.json","陕西":"map/data-guizhou.json","甘肃":"map/data-guangxi.json","青海":"map/data-guangdong.json","宁夏":"map/data-gansu.json","新疆":"map/data-chongqing.json","北京":"map/data-aomen.json","天津":"map/data-anhui.json","重庆":"map/data-beijing.json","香港":"map/data-fujian.json","澳门":"map/data-xianggang.json"},s={"中国":"zhongguo","上海":"shanghai","河北":"hebei","山西":"shangxi","内蒙古":"neimenggu","辽宁":"liaoning","吉林":"jilin","黑龙江":"heilongjiang","江苏":"jiangsu","浙江":"zhejiang","安徽":"anhui","福建":"fujian","江西":"jiangxi","山东":"shangdong","河南":"henan","湖北":"hubei","湖南":"hunan","广东":"guangdong","广西":"guangxi","海南":"hainan","四川":"sichuan","贵州":"guizhou","云南":"yunnan","西藏":"xizang","陕西":"shanxi","甘肃":"gansu","青海":"qinghai","宁夏":"ningxia","新疆":"xinjiang","北京":"beijing","天津":"tianjin","重庆":"chongqing","香港":"xianggang","澳门":"aomen"}},6149:function(e,t,i){},6276:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"relationship_graph"},[t("div",{staticClass:"page_title"},[t("b",[e._v(e._s(e.pageTitle))])]),t("div",{staticClass:"search_box public_box"},[t("el-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm}},[t("el-form-item",{attrs:{label:"",prop:"caseNo"}},[t("el-input",{staticClass:"width_450",attrs:{maxlength:"50",placeholder:"输入案件号,姓名,身份证号,车牌号,车架号,医院名称进行搜索",clearable:""},model:{value:e.searchForm.keyword,callback:function(t){e.$set(e.searchForm,"keyword",t)},expression:"searchForm.keyword"}})],1),t("el-form-item",{attrs:{label:"报案时间",prop:"caseNo"}},[t("el-date-picker",{staticClass:"date_style",attrs:{type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.searchForm.startRepTime,callback:function(t){e.$set(e.searchForm,"startRepTime",t)},expression:"searchForm.startRepTime"}}),e._v(" - "),t("el-date-picker",{staticClass:"date_style",attrs:{type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.searchForm.endRepTime,callback:function(t){e.$set(e.searchForm,"endRepTime",t)},expression:"searchForm.endRepTime"}})],1),t("el-form-item",{attrs:{label:"损伤类型",prop:"caseNo"}},[t("el-select",{staticClass:"width_150",attrs:{placeholder:"请选择",clearable:""},model:{value:e.searchForm.lossType,callback:function(t){e.$set(e.searchForm,"lossType",t)},expression:"searchForm.lossType"}},e._l(e.lossTypeOptions,(function(e){return t("el-option",{key:e.code,attrs:{label:e.label,value:e.code}})})),1)],1),t("el-form-item",{attrs:{label:"案件状态",prop:"caseStatus"}},[t("el-select",{staticClass:"width_130",attrs:{placeholder:"请选择",multiple:"",filterable:"",clearable:""},model:{value:e.searchForm.caseStatus,callback:function(t){e.$set(e.searchForm,"caseStatus",t)},expression:"searchForm.caseStatus"}},e._l(e.statusOptions,(function(e,i){return t("el-option",{key:i,attrs:{label:e.status,value:e.status}})})),1)],1),t("el-form-item",{attrs:{label:"实际赔付金额区间",prop:""}},[t("el-input",{staticClass:"width_140",attrs:{maxlength:"50",placeholder:"请输入",clearable:"",oninput:"value=value.replace(/[^\\d.]/g, '').replace(/\\.{2,}/g, '.').replace('.', '$#$').replace(/\\./g, '').replace('$#$', '.').replace(/^(\\-)*(\\d+)\\.(\\d\\d).*$/, '$1$2.$3').replace(/^\\./g, '').replace(/^0+(\\d)/, '$1')"},model:{value:e.searchForm.geAmount,callback:function(t){e.$set(e.searchForm,"geAmount",t)},expression:"searchForm.geAmount"}}),e._v(" - "),t("el-input",{staticClass:"width_140",attrs:{maxlength:"50",placeholder:"请输入",clearable:"",oninput:"value=value.replace(/[^\\d.]/g, '').replace(/\\.{2,}/g, '.').replace('.', '$#$').replace(/\\./g, '').replace('$#$', '.').replace(/^(\\-)*(\\d+)\\.(\\d\\d).*$/, '$1$2.$3').replace(/^\\./g, '').replace(/^0+(\\d)/, '$1')"},model:{value:e.searchForm.leAmount,callback:function(t){e.$set(e.searchForm,"leAmount",t)},expression:"searchForm.leAmount"}})],1),t("el-form-item",{attrs:{label:"案发地址",prop:""}},[t("el-select",{staticClass:"width_120",attrs:{placeholder:"省",clearable:""},on:{change:e.provinceChange1},model:{value:e.searchForm.caseProvince,callback:function(t){e.$set(e.searchForm,"caseProvince",t)},expression:"searchForm.caseProvince"}},e._l(e.provinceOptions,(function(e){return t("el-option",{key:e.areaCode,attrs:{label:e.areaName,value:e.areaName+"-"+e.areaCode}})})),1),e._v(" - "),t("el-select",{staticClass:"width_120",attrs:{placeholder:"市",disabled:e.cityDisabled,clearable:"",filterable:""},on:{change:e.provinceChange2},model:{value:e.searchForm.caseCity,callback:function(t){e.$set(e.searchForm,"caseCity",t)},expression:"searchForm.caseCity"}},e._l(e.cityOptions,(function(e){return t("el-option",{key:e.areaCode,attrs:{label:e.areaName,value:e.areaName+"-"+e.areaCode}})})),1),e._v(" - "),t("el-select",{staticClass:"width_120",attrs:{placeholder:"区",disabled:e.districtDisabled,clearable:"",filterable:""},model:{value:e.searchForm.caseCounty,callback:function(t){e.$set(e.searchForm,"caseCounty",t)},expression:"searchForm.caseCounty"}},e._l(e.districtOptions,(function(e){return t("el-option",{key:e.areaCode,attrs:{label:e.areaName,value:e.areaName+"-"+e.areaCode}})})),1)],1),t("el-form-item",[t("el-button",{staticStyle:{"margin-left":"0.2rem"},attrs:{type:"primary"},on:{click:t=>e.getGraphData(!1,t)}},[e._v("查询")]),t("el-button",{staticStyle:{"margin-left":"0.2rem"},attrs:{type:"primary",disabled:!e.myChartData},on:{click:e.download}},[e._v("下载")])],1)],1)],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.networkLoading,expression:"networkLoading"}],staticClass:"content_box public_box",staticStyle:{height:"calc(100vh - 230px)"}},[t("div",{ref:"chartContent",staticClass:"chart_content",attrs:{id:"chart_content"}}),t("div",{staticClass:"cricleMenu",attrs:{id:"cricleMenu"}},[t("div",{staticClass:"sector sector1",attrs:{title:"查看详情"},on:{click:function(t){return e.menuClick(1)}}},[t("div",{staticClass:"menuIcon iconfont icon-details"})]),t("div",{staticClass:"sector sector2",attrs:{title:"隐藏该节点"},on:{click:function(t){return e.menuClick(2)}}},[t("div",{staticClass:"menuIcon iconfont icon-yanjing_yincang_o"})]),t("div",{staticClass:"sector sector3",attrs:{title:"展开隐藏关系"},on:{click:function(t){return e.menuClick(3)}}},[t("div",{staticClass:"menuIcon iconfont icon-ico"})]),t("div",{staticClass:"line1"}),t("div",{staticClass:"line2"}),t("div",{staticClass:"line3"}),t("div",{staticClass:"menu_center",style:"background:"+e.menuCenterColor,on:{click:e.hideCricle}},[t("img",{directives:[{name:"show",rawName:"v-show",value:e.selectedNodeImg,expression:"selectedNodeImg"}],attrs:{src:e.selectedNodeImg}})])]),t("div",{staticClass:"cricleStyle",attrs:{id:"cricleStyle"}},[t("div",{staticClass:"menu_center"},[t("div",{staticClass:"custom_center",style:"background:"+e.hoverCenterColor+"; borderColor:"+e.hoverCenterBorderColor,on:{click:e.setCricleMenu}})])]),t("div",{staticClass:"cavasBgc"}),e.myChartData?t("div",{staticClass:"suspend"},[t("div",{class:{suspend_sidebar:1,suspend_left:1},style:e.leftExpandFlag?"":"width:20px !important;border: 1px solid #888;"},[t("ul",{staticClass:"titleUl"},[t("li",{class:{activeTitle:e.leftExpandFlag},on:{click:function(t){e.leftExpandFlag=!e.leftExpandFlag}}},[t("i",{class:e.leftExpandFlag?"el-icon-arrow-left":"el-icon-arrow-right"}),e._v(e._s(e.leftExpandFlag?"快捷分析":""))])]),e.leftExpandFlag?t("ul",{staticClass:"leftSidebarUl",staticStyle:{height:"calc(100vh - 230px)"}},[e._l(e.leftSideBar,(function(i,r){return t("li",{key:r,class:{activeIndex:r==e.leftActiveIndex},on:{click:function(t){return e.sidebarClick(r,"left")}}},[e._v(e._s(i.label))])})),t("i",{staticClass:"resetBtn el-icon-refresh-right",on:{click:function(t){return e.sidebarReset(0,"",!0)}}})],2):e._e()]),t("div",{class:{suspend_sidebar:1,suspend_right:1},style:e.rightExpandFlag?"":"width:20px !important;border: 1px solid #888;padding: 10px 0px;"},[t("ul",{staticClass:"titleUl"},[t("li",{class:{activeTitle:e.rightExpandFlag},on:{click:function(t){e.rightExpandFlag=!e.rightExpandFlag}}},[e._v(e._s(e.rightExpandFlag?"快捷筛选":"")+" "),t("i",{class:e.rightExpandFlag?"el-icon-arrow-right":"el-icon-arrow-left"})])]),e.rightExpandFlag?t("ul",{staticClass:"rightSidebarUl",staticStyle:{height:"calc(100vh - 230px)"}},[e._l(e.rightSideBar,(function(i,r){return t("li",{key:r,ref:"activeSideBar"+r,refInFor:!0,class:{activeIndex:r==e.getActiveCurrentVal(r)},on:{click:function(t){return e.sidebarClick(r,"right")}}},[t("p",[t("span",{class:"iconfont "+i.icon})]),t("p",[e._v(e._s(i.label))]),t("div",{staticClass:"cover"})])})),t("i",{staticClass:"resetBtn el-icon-refresh-right",on:{click:function(t){return e.sidebarReset(1)}}})],2):e._e()])]):e._e(),t("div",{class:{info_sidebar:1,show_sidebar:e.showSidebarFlag}},[t("div",{staticClass:"sidebar_title",style:"background:"+e.infoTitleBgc},[e._v(e._s(e.infoTitleTxt))]),t("i",{staticClass:"closeBtn el-icon-close",on:{click:function(t){e.showSidebarFlag=!1}}}),e.showSidebarFlag?t("div",{staticClass:"infoContent"},[e._l(e.currentNodeInfo.showTxtArr,(function(i,r){return t("el-row",{key:r,class:{activeRow:r%2==0}},[t("el-col",{staticClass:"sidebar_left",attrs:{span:8,offset:1}},[e._v(e._s(i.label)+":")]),i.hidden?"案件号"!=i.label?t("el-col",{attrs:{span:12,offset:1}},[t("overflow-txt",{attrs:{txt:i.value}})],1):t("el-col",{attrs:{span:12,offset:1}},[t("div",{staticClass:"tooltipText",on:{click:function(t){return e.hrefDetail(i.value)}}},[t("overflow-txt",{attrs:{txt:i.value}})],1)]):t("el-col",{attrs:{span:12,offset:1}},[e._v(e._s(i.value))])],1)})),"Case"!=e.currentNodeInfo.type&&"IdCardAddress"!=e.currentNodeInfo.type?t("el-row",[t("el-col",{staticClass:"sidebar_left",attrs:{span:8,offset:1}},[e._v("关联案件号:")]),t("el-col",{class:{case_content:1,short_content:e.clientHeight<800},attrs:{span:12,offset:1}},e._l(e.relatedCases,(function(i,r){return t("div",{key:r,staticClass:"tooltipText",on:{click:function(t){return e.hrefDetail(i)}}},[t("overflow-txt",{attrs:{txt:i}})],1)})),0)],1):e._e()],2):e._e()])]),t("transition",{attrs:{name:"el-fade-in-linear"}})],1)},n=[],s=(i("f16c"),i("45d2"),i("4e1c"),i("8160"),i("1d88"),i("84ae"),i("13bd"),i("644c"),i("1fd3"),i("ffb0")),o=i.n(s),a={props:{isCollapse:{type:Boolean,default:!0}},data(){return{showSidebarFlag:!1,drawer:!1,options:[{value:"选项1",label:"黄金糕"},{value:"选项2",label:"双皮奶"},{value:"选项3",label:"蚵仔煎"},{value:"选项4",label:"龙须面"},{value:"选项5",label:"北京烤鸭"}],networkLoading:!1,focusFlag:!1,hoverShow:!1,pageTitle:"",graphData:{},graphNodeObj:{},graphShow:!1,locationOrigin:"",searchForm:{keyword:"",startRepTime:"",endRepTime:"",lossType:"",geAmount:"",leAmount:"",caseProvince:"",caseCity:"",caseCounty:"",caseStatus:""},lossTypeOptions:[{code:1,label:"车物损"},{code:2,label:"人伤"},{code:3,label:"全部"}],provinceOptions:[],cityOptions:[],districtOptions:[],cityDisabled:!0,districtDisabled:!0,selectNodeId:null,hoverToolTips:{caseNo:"",reportTime:"",accidentProperty:"",currentStatusDesc:"",totalPayAmount:""},tooltipsData:{},leftExpandFlag:!0,rightExpandFlag:!0,leftActiveIndex:null,rightActiveIndex:1,leftSideBar:[{label:"骑手作为三者出险"},{label:"同一车辆多次出险"},{label:"骑手和三者疑似认识"},{label:"出险大于一次的骑手"},{label:"出险最多包商"},{label:"出险大于一次的修理厂"}],rightSideBar:[{icon:"icon-record-full",label:"案件",type:"Case"},{icon:"icon-renyuan",label:"人员",type:"Person"},{icon:"icon-shigu",label:"三者车",type:"Vehicle"},{icon:"icon-dizhi",label:"地址",type:"IdCardAddress"},{icon:"icon-wxbzhanghu",label:"收款账户",type:"Account"},{icon:"icon-xiulichang",label:"修理厂",type:"Repair"},{icon:"icon-hospital-building",label:"医院",type:"Hospital"},{icon:"icon-fenbaoshang",label:"包商",type:"Contractor"}],showMenu:!1,menuPosition:null,chartStoreData:null,nodesMapData:{},relationsMapData:{},currentActiveNodeId:null,currentHoverNodeId:null,myChartData:null,currentNodeInfo:null,classifyNodesData:{},cricleShow:!1,nodeTypeData:{Case:{color:"#CA90C0",borderColor:"#B261A4",type:"案件"},Person:{color:"#58C7E3",borderColor:"#23B3D7",type:"人"},Vehicle:{color:"#DA7094",borderColor:"#C73F6E",type:"三者车"},IdCardAddress:{color:"#569480",borderColor:"#5bc9a6",type:"地址"},Account:{color:"#F79767",borderColor:"#F36823",type:"收款账户"},Phone:{color:"#F26667",borderColor:"#E92829",type:"电话"},Appraisal:{color:"#ECB5CA",borderColor:"#DB7197",type:"鉴定机构"},Repair:{color:"#FFC453",borderColor:"#D7A012",type:"修理厂"},Hospital:{color:"#4C8EDA",borderColor:"#2871C1",type:"医院"},Contractor:{color:"#8DCC93",borderColor:"#5EB567",type:"包商"}},infoTitleBgc:"",infoTitleTxt:"",statusOptions:[],isExtendNode:!1,sourceGraphData:null,animationFlag:!0,menuCenterTxt:"",menuCenterColor:"",hoverCenterColor:"",hoverCenterBorderColor:"",activeCurrent0:null,activeCurrent1:null,activeCurrent2:null,activeCurrent3:3,activeCurrent4:4,activeCurrent5:5,activeCurrent6:6,activeCurrent7:7,activeCurrent8:8,relatedCases:[],hoverStyleOptions:{},nodeDragFlag:!1,analyseHighlightNodes:[],analyseHighlightEdges:[],drawWatchTime:null,analyseScreen:{0:[0,1],1:[0,2],2:[0,1,3],3:[0,1],4:[0,7],5:[0,5]},selectedNodeId:null,selectedNodeImg:null,edgesOptions:{arrows:"from",color:{color:"#a5abb6",highlight:"#ef5350",hover:"#a5abb6",inherit:"from",opacity:1},font:{color:"#000",size:12,align:"middle"},scaling:{min:1,max:1},arrowStrikethrough:!0,endPointOffset:{from:0},selectionWidth:1,hoverWidth:function(e){return e},width:1,shadow:!1},edgeColor:{color:"#ef5350",highlight:"#ef5350",hover:"#ef5350",inherit:"from",opacity:1},isStopped:!1,number:0,intervalId:null,checkStoppedId:null,lastUpdateTime:0,timeoutThreshold:2e3,searchData:null,queryAtlasData:null}},computed:{clientHeight(){return window.innerHeight}},mounted(){window.addEventListener("resize",()=>{this.resizeNetwork()}),this.pageTitle=this.$route.meta.title,this.locationOrigin=-1!=location.origin.indexOf("localhost")?"http://jiaanantest.platform.sigreal.cn":location.origin,this.getGraphData(),this.findProvince(),this.getCaseStatus()},beforeDestroy(){window.removeEventListener("resize",this.handleResize),this.network&&this.network.destroy()},methods:{checkIfStopped(){const e=Date.now();e-this.lastUpdateTime>this.timeoutThreshold&&(clearInterval(this.intervalId),clearInterval(this.checkStoppedId),this.isStopped=!0,console.log("动画停止了"))},startIncrement(){this.intervalId=setInterval(this.incrementNumber,100),this.isStopped=!1,this.lastUpdateTime=Date.now()},stopIncrement(){clearInterval(this.intervalId),clearInterval(this.checkStoppedId),this.isStopped=!0},resetDataStatus(e){this.nodesMapData={},this.relationsMapData={},this.classifyNodesData={},this.hoverStyleOptions={},this.analyseHighlightNodes=[],this.analyseHighlightEdges=[],this.myChartData=null,this.network=null,this.showSidebarFlag=!1,this.animationFlag=!1,this.networkLoading=!0,this.focusFlag=!1,this.selectNodeId=null,e||(this.leftActiveIndex=null,this.rightActiveIndex=null,this.sidebarReset(0),this.sidebarReset(1,!0)),this.analyseHighlightNodes=[],this.analyseHighlightEdges=[],this.hideCricle()},resizeNetwork(){this.network&&this.network.redraw()},hrefDetail(e){let t,i=!1;this.instance.get("/case/getMeituanCaseNo?caseNo="+e,{params:{}}).then(e=>{let r=e.data;1==r.code&&r.data?(i=!0,t=r.data):this.$message.error("该案件查询失败!");let n="https://www.jchunuo.com/fe/insurance-claim-service-platform/index.html#/detail/caseDetail/";i&&(n=-1!=t.indexOf("old")?"https://awp.meituan.com/ffe/insurance-claim-platform/index/index.html?code=MGAr4r&state=dx_auth_interceptor#/case?caseId=":"https://www.jchunuo.com/fe/insurance-claim-service-platform/index.html#/detail/caseDetail/",window.open(n+t))})},handleResize(){this.network&&this.network.fit({animation:!0})},getCaseStatus(){this.restaurants=[],this.instance.get("/case/getCaseStatus",{params:{}}).then(e=>{1==e.data.code&&(this.statusOptions=e.data.data,this.baseStatusOptions=e.data.data)})},getActiveCurrentVal(e){return this["activeCurrent"+e]},findProvince(){this.instance.post("/area/findProvince",{}).then(e=>{let t=e.data;1==t.code&&t.data&&(this.provinceOptions=t.data)})},findCity(){let e=this.searchForm.caseProvince.split("-")[1];this.instance.post("/area/findCity/"+e,{}).then(e=>{let t=e.data;1==t.code&&t.data&&(this.cityDisabled=!1,this.districtDisabled=!1,this.cityOptions=t.data)})},findDistrict(){let e=this.searchForm.caseCity.split("-")[1];this.instance.post("/area/findDistrict/"+e,{}).then(e=>{let t=e.data;1==t.code&&t.data&&(this.districtDisabled=!1,this.districtOptions=t.data)})},provinceChange1(e){this.searchForm.caseCity="",this.searchForm.caseCounty="",this.cityDisabled=!0,this.districtDisabled=!0,e&&this.findCity()},provinceChange2(e){this.searchForm.caseCounty="",this.districtDisabled=!0,e&&this.findDistrict()},sidebarClick(e,t){"left"==t?(this.analyseNodesData(e),this.hideCricle()):(this.hideCricle(),this["activeCurrent"+e]==e?this["activeCurrent"+e]=null:this["activeCurrent"+e]=e,this.updateNetwork(this.rightSideBar[e],this["activeCurrent"+e]==e))},updateNetwork(e,t){let i=this.classifyNodesData[e.type+"Ids"];this.network&&i.forEach(e=>{this.network.clustering.updateClusteredNode(e,{hidden:t})})},extendNodes(){let e=this.nodesMapData[this.currentActiveNodeId];this.instance.post("/neo4j/searchDataLink",{node:e}).then(e=>{let t=e.data;if(1==t.code){this.isExtendNode=!0;let e=t.data.nodes,i=t.data.relations,r=[],n=[],s=[];e.forEach(e=>{this.sourceGraphData.nodes.push(e),1==e.depth&&(this.nodesMapData[e.elementId]?s.push(e):r.push(e))}),i.forEach(e=>{let t=e.startNodeId+"---"+e.type+"---"+e.endNodeId;e.id=t,this.sourceGraphData.relations.push(e),this.relationsMapData[t]||n.push(e)});let o=this.handleNodesData(r,n,!0);r.length>0?o.nodes.forEach(e=>{this.myChartData.nodes.add(e)}):s.forEach(e=>{this.network.clustering.updateClusteredNode(e.elementId,{hidden:!1})}),n.length>0&&o.edges.forEach(e=>{this.myChartData.edges.add(e)});let a=this.sourceGraphData.nodes.filter((e,t,i)=>i.findIndex(t=>t.elementId===e.elementId)===t);this.sourceGraphData.nodes=a;let l=this.sourceGraphData.relations.filter((e,t,i)=>i.findIndex(t=>t.id===e.id)===t);this.sourceGraphData.relations=l,this.nodesClassify()}})},searchNodeCases(){let e={logic:1,nodes:this.queryAtlasData.nodes,relations:this.queryAtlasData.relations,node:this.nodesMapData[this.currentActiveNodeId]};this.instance.post("/neo4j/searchNodeCases",e).then(e=>{let t=e.data;1==t.code&&(this.relatedCases=t.data)})},analyseNodesData(e){this.networkLoading=!0,this.instance.post("/neo4j/analyseData",this.handleSearchData("analyse",e)).then(t=>{let i=t.data;if(1==i.code){this.queryAtlasData=i.data,this.leftActiveIndex=e,this.network&&this.clearNetwork(),this.resetDataStatus(!0),this.makeVis(i.data.nodes,i.data.relations),this.analyseHighlightNodes=i.data.highlightNodes,this.analyseHighlightEdges=i.data.highlightRelations,this.setHighlightNodesAndEdges(i.data.highlightNodes,i.data.highlightRelations),this.rightSideBar.forEach((e,t)=>{t==this.getActiveCurrentVal(t)&&this.updateNetwork(this.rightSideBar[t],this["activeCurrent"+t]==t)});let t=this.analyseScreen[this.leftActiveIndex];t&&t.forEach(e=>{"null"!=String(this["activeCurrent"+e])&&this.sidebarClick(e,"right")}),this.networkLoading=!1}else this.networkLoading=!1})},sidebarReset(e,t,i){0==e?(this.leftActiveIndex=null,this.clearNodesAndEdges(),this.focusNodes(),i&&this.getGraphData(!0)):(this.hideCricle(),this.rightSideBar.forEach((e,i)=>{this["activeCurrent"+i]=i<3?null:i,!t&&this.updateNetwork(this.rightSideBar[i],this["activeCurrent"+i]==i)}))},clearNodesAndEdges(){let e,t;this.network&&this.network.selectNodes([]);for(const r in this.nodesMapData)e=this.nodesMapData[r],this.myChartData.nodes.update({id:e.elementId,color:{background:this.nodeTypeData[e.type].color,border:this.nodeTypeData[e.type].borderColor},borderWidth:3});let i=JSON.parse(JSON.stringify(this.edgesOptions));i.color={color:"#A4AAB6",highlight:"#ef5350",inherit:"from",opacity:1};for(const r in this.relationsMapData)t=this.relationsMapData[r],i.id=r,this.myChartData.edges.update(i)},clearNetwork(){let e={nodes:new o.a.DataSet([]),edges:new o.a.DataSet([])};this.network.setData(e)},focusNodes(e){if(this.selectNodeId&&(e&&this.network.focus(this.selectNodeId,{scale:1}),this.network.selectNodes([this.selectNodeId])),"null"==String(this.leftActiveIndex)){this.clearRightSide();let e=[3,4,5,6,7];e.forEach(e=>{this.sidebarClick(e,"right")})}},clearRightSide(){let e=[0,1,2,3,4,5,6,7];e.forEach(e=>{"null"!=String(this["activeCurrent"+e])&&(this.sidebarClick(e,"right"),this["activeCurrent"+e]=null)})},handleNodesData(e,t,i,r){let n=new o.a.DataSet([]),s=new o.a.DataSet([]);if(t.forEach((e,t)=>{e.id=e.startNodeId+"---"+e.type+"---"+e.endNodeId,e.from=e.endNodeId,e.to=e.startNodeId,e.label=e.type,this.relationsMapData[e.id]||(this.relationsMapData[e.id]=e,n.add(e))}),r){let e=this.findWithDuplicateIds(t);e.forEach((e,t)=>{t>0&&(e.id=e.startNodeId+"---"+e.type+"---"+e.endNodeId+"---"+t,e.from=e.endNodeId,e.to=e.startNodeId,e.label=e.type,this.relationsMapData[e.id]=e,n.add(e))})}return e.forEach(e=>{let t=e.properties;switch(e.type){case"Case":e.text=t.caseNo?t.caseNo:"",this.tooltipsData[e.elementId]={caseNo:t.caseNo,reportTime:t.reportTime,insureTypeName:t.insureTypeName,accidentProperty:t.accidentProperty,currentStatusDesc:t.currentStatusDesc,totalPayAmount:t.totalPayAmount};break;case"Person":e.text=e.properties.name?e.properties.name:e.properties.identityNo;break;case"Vehicle":e.text=e.properties.vin?e.properties.vin:"";break;case"IdCardAddress":let i=e.properties.prov?e.properties.prov:"",r=e.properties.city?e.properties.city:"",n=e.properties.district?e.properties.district:"",s=e.properties.concat_address?e.properties.concat_address:"";e.text=i+r+n+s;break;case"Account":e.text=e.properties.accountName+" "+e.properties.accountNo;break;case"Phone":e.text=e.properties.phone?e.properties.phone:"";break;case"Appraisal":e.text=e.properties.organization?e.properties.organization:"";break;case"Repair":e.text=e.properties.repairName?e.properties.repairName:"";break;default:break}e.label=e.text,e.id=e.elementId,e.label==this.searchForm.keyword&&(this.selectNodeId=e.id),e.shape="dot",e.shape="circularImage",e.image=`${this.locationOrigin}/images/graph/${e.type}.png`,e.color={background:this.nodeTypeData[e.type].color,border:this.nodeTypeData[e.type].borderColor,hover:{background:this.nodeTypeData[e.type].color,border:this.nodeTypeData[e.type].borderColor},highlight:{border:"#ffd775",background:this.nodeTypeData[e.type].color}},this.nodesMapData[e.elementId]||(this.nodesMapData[e.elementId]=e,s.add(e))}),{nodes:s,edges:n}},download(){this.instance({method:"post",url:"/neo4j/downloadCase",data:{caseNos:this.classifyNodesData.caseNos},responseType:"blob"}).then(e=>{let t=window.URL.createObjectURL(new Blob([e.data])),i=document.createElement("a");i.style.display="none",i.href=t,i.setAttribute("download","案件列表.xls"),document.body.appendChild(i),i.click()})},getGraphData(e){this.network&&this.clearNetwork(),this.resetDataStatus(e);let t=JSON.parse(JSON.stringify(this.handleSearchData("search")));this.searchData=t,this.instance.post("/neo4j/searchData",t).then(e=>{let t=e.data;1==t.code?(this.sourceGraphData=t.data,this.queryAtlasData=t.data,this.makeVis(t.data.nodes,t.data.relations),this.networkLoading=!1):this.$message.error("查询失败!")})},handleSearchData(e,t){let i={},r=JSON.parse(JSON.stringify(this.searchForm));return"analyse"==e&&(i={logic:t+1},r=this.searchData||{}),r.startRepTime&&-1==r.startRepTime.indexOf(" 00:00:00")&&(r.startRepTime=r.startRepTime?r.startRepTime+" 00:00:00":""),r.endRepTime&&-1==r.endRepTime.indexOf(" 23:59:59")&&(r.endRepTime=r.endRepTime?r.endRepTime+" 23:59:59":""),r.caseProvince=r.caseProvince&&r.caseProvince.length>0&&r.caseProvince.split("-").length>0?r.caseProvince.split("-")[0]:"",r.caseCity=r.caseCity&&r.caseCity.length>0&&r.caseCity.split("-").length>0?r.caseCity.split("-")[0]:"",r.caseCounty=r.caseCounty&&r.caseCounty.length>0&&r.caseCounty.split("-").length>0?r.caseCounty.split("-")[0]:"",{...i,...r}},makeVis(e,t){let i=this;this.myChartData=this.handleNodesData(e,t,!1,!0);let r=document.getElementById("chart_content");const n={autoResize:!1,nodes:{font:{color:"#000",size:20},scaling:{min:0,max:0,label:{enabled:!0,min:8,max:8,maxVisible:0}},size:30,borderWidth:3},edges:i.edgesOptions,groups:{ws:{shape:"dot",color:"white"}},interaction:{hover:!0,zoomView:!0,dragView:!0},physics:{barnesHut:{gravitationalConstant:-8e4,springConstant:.1,springLength:200,centralGravity:.5},stabilization:{enabled:!0,iterations:1,updateInterval:1,onlyDynamicEdges:!1,fit:!0}},layout:{randomSeed:2}};this.network=new o.a.Network(r,this.myChartData,n),this.nodesClassify(),setTimeout(()=>{this.focusNodes()},3e3),this.network.on("stabilized",()=>{this.focusFlag||(this.focusFlag=!0)}),this.network.on("selectNode",e=>{this.selectedNodeId=e.nodes[0]}),this.network.on("afterDrawing",()=>{if(this.number++,this.animationFlag=!0,this.selectedNodeId){this.currentActiveNodeId=this.selectedNodeId;var e=this.network.getPositions([this.selectedNodeId]),t=e[this.selectedNodeId],i=this.network.getScale();let r=this.network.canvasToDOM({x:t.x,y:t.y});this.network.moveNode(this.selectedNodeId,t.x,t.y),this.setCriclePosition(Math.floor(r.x-54),Math.floor(r.y-55),i)}}),this.network.on("dragStart",e=>{this.animationFlag=!1,this.nodeDragFlag=!0,this.hideHoverStyle()}),this.network.on("dragEnd",e=>{e.nodes&&e.nodes.length>0&&(this.nodeDragFlag=!1,this.network.clustering.updateClusteredNode(e.nodes[0],{physics:!1}),this.network.stopSimulation())}),this.network.on("dragStart",e=>{this.hideCricle()}),this.network.on("controlNodeDragging",e=>{this.hideCricle()}),this.network.on("zoom",e=>{this.hideCricle()}),this.network.on("click",e=>{if(e.nodes.length>0){this.currentActiveNodeId=e.nodes[0],this.selectedNodeId=this.currentActiveNodeId;let t=this.network.getPosition(e.nodes[0]),i=this.network.getScale(),r=this.network.canvasToDOM({x:t.x,y:t.y});this.cricleShow?this.hideCricle():this.setCriclePosition(Math.floor(r.x-54),Math.floor(r.y-55),i,!0)}else this.showSidebarFlag=!1,this.hideCricle()}),this.network.on("hoverNode",e=>{e.pointer.DOM&&i.animationFlag&&!i.nodeDragFlag||this.hideHoverStyle()}),this.network.on("blurNode",e=>{this.hideHoverStyle()})},checkAnimationStatus(){let e=!0;setInterval(()=>{this.animationFlag||(e=!1)},1e3);return e},findWithDuplicateIds(e){const t=new Map;return e.forEach(e=>{const i=e.id;t.has(i)?t.set(i,t.get(i)+1):t.set(i,1)}),e.filter(e=>t.get(e.id)>1)},setHighlightNodesAndEdges(e,t){this.clearNodesAndEdges();let i=[],r=[],n=e;n&&n.forEach(e=>{i.push(e.elementId),this.myChartData.nodes.update({id:e.elementId,color:{background:this.nodeTypeData[e.type].color,border:"#FFD488"},borderWidth:5})});let s,o=t,a={color:this.edgeColor};t&&o.forEach(e=>{s=e.startNodeId+"---"+e.type+"---"+e.endNodeId,e.tmpId=s,e.id=s,r.push(s),a.id=e.id,this.myChartData.edges.update(a)});let l=this.findWithDuplicateIds(o);l.forEach((e,t)=>{t>0&&(e.id=e.startNodeId+"---"+e.type+"---"+e.endNodeId+"---"+t,a.id=e.id,this.myChartData.edges.update(a))})},setHoverStyle(e){let t=this.network.getPosition(e);this.currentHoverNodeId=e,this.currentActiveNodeId=e;let i=this.network.getScale(),r=this.network.canvasToDOM({x:t.x,y:t.y});this.setHoverPosition(Math.floor(r.x-49),Math.floor(r.y-49),i)},getNodeSize(e){var t=this.network.body.nodes[e];if(t){var i=this.network.getBoundingBox(t.id);return{width:i.width,height:i.height}}return null},setCricleMenu(){if(this.currentHoverNodeId){let e=this.network.getPosition(this.currentHoverNodeId),t=this.network.getScale(),i=this.network.canvasToDOM({x:e.x,y:e.y});this.cricleShow?this.hideCricle():this.animationFlag&&this.setCriclePosition(Math.floor(i.x-19),Math.floor(i.y-20),t,!0)}else this.hideCricle()},drawTextWithWrap(e,t,i,r,n,s,o){let a=t.split(" "),l="";e.fillStyle=i,a.forEach(t=>{let i=this.splitStringByLength(t,15);i.forEach(t=>{let i=l+t+" ",a=e.measureText(i),c=a.width;c>s&&""!==l?(e.fillText(l,r,n),l=t+" ",n+=o):l=i})}),e.fillStyle=i,e.fillText(l,r,n)},splitStringByLength(e,t){let i=[];for(let r=0;re.length?e.length:n,i.push(e.substring(r,n))}return i},menuClick(e){switch(e){case 1:this.relatedCases=[],this.currentNodeInfo=this.setNodesSidebarData(this.nodesMapData[this.currentActiveNodeId]),this.showSidebarFlag=!0,this.infoTitleTxt=this.nodeTypeData[this.currentNodeInfo.type].type,this.infoTitleBgc=this.nodeTypeData[this.currentNodeInfo.type].color,this.searchNodeCases();break;case 2:this.network&&this.network.clustering.updateClusteredNode(this.currentActiveNodeId,{hidden:!0});break;default:this.extendNodes();break}this.hideHoverStyle(),this.hideCricle()},setNodesSidebarData(e){let t=[];switch(e.type){case"Case":t=[{label:"案件号",hidden:!0,value:e.properties.caseNo||""},{label:"报案时间",value:e.properties.reportTime||""},{label:"险种类型",value:e.properties.insureTypeName||""},{label:"事故属性",value:e.properties.accidentProperty||""},{label:"当前状态",value:e.properties.currentStatusDesc||""},{label:"赔偿金额",value:e.properties.totalPayAmount?e.properties.totalPayAmount+"元":""}];break;case"Person":t=[{label:"id",value:e.properties.matchId||""},{label:"姓名",value:e.properties.name||""},{label:"身份证号",value:e.properties.identityNo||""}];break;case"Vehicle":t=[{label:"车牌号",value:e.properties.plateNo||""},{label:"车架号",value:e.properties.vin||""}];break;case"IdCardAddress":let i=e.properties.prov?e.properties.prov:"",r=e.properties.city?e.properties.city:"",n=e.properties.district?e.properties.district:"",s=e.properties.concat_address?e.properties.concat_address:"";t=[{label:"详细地址",value:i+r+n+s},{label:"省",value:i},{label:"市",value:r},{label:"区(县)",value:n},{label:"乡",value:s}];break;case"Account":t=[{label:"账户",value:e.properties.accountNo||""},{label:"账户名称",value:e.properties.accountName||""},{label:"开户行",value:e.properties.headBankName||""}];break;case"Phone":t=[{label:"电话号码",value:e.properties.phone||""}];break;case"Appraisal":t=[{label:"鉴定机构名称",value:e.properties.organization||""}];break;case"Repair":t=[{label:"修理厂名称",value:e.properties.repairName||""}];break;case"Hospital":t=[{label:"医院名称",value:e.properties.hospitalName||""}];break;case"Contractor":t=[{label:"包商名",value:e.properties.contractorName||""}];break;default:break}return e.showTxtArr=t,e},setCriclePosition(e,t,i,r){let n=document.getElementById("cricleMenu");n.style=`left: ${e}px; top: ${t}px;transform:scale(${i});display:block;`,this.menuCenterColor=this.nodeTypeData[this.nodesMapData[this.currentActiveNodeId].type].color,this.menuCenterTxt=this.nodeTypeData[this.nodesMapData[this.currentActiveNodeId].type].type,r&&(this.selectedNodeImg=null,this.selectedNodeImg=this.nodesMapData[this.selectedNodeId].image)},hideCricle(){this.selectedNodeId=null;let e=document.getElementById("cricleMenu");e&&(e.style="display:none")},setHoverPosition(e,t,i){this.hoverStyleOptions={x:e,y:t,scale:i};let r=document.getElementById("cricleStyle");r.style=`left: ${e}px; top: ${t}px;transform:scale(${i});display:block;`,this.hoverCenterColor=this.nodeTypeData[this.nodesMapData[this.currentHoverNodeId].type].color,this.hoverCenterBorderColor=this.nodeTypeData[this.nodesMapData[this.currentHoverNodeId].type].borderColor},hideHoverStyle(){let e=document.getElementById("cricleStyle");e.style="display:none;"},hideMenu(){this.showMenu=!1},nodesClassify(){let e=[],t=[],i=[],r=[],n=[],s=[],o=[],a=[],l=[],c=[],u=[];this.myChartData.nodes.forEach(d=>{switch(d.type){case"Case":c.push(d.id),u.push(d.properties.caseNo||"");break;case"Person":l.push(d.id);break;case"Vehicle":a.push(d.id);break;case"IdCardAddress":s.push(d.id);break;case"Account":o.push(d.id);break;case"Phone":n.push(d.id);break;case"Appraisal":r.push(d.id);break;case"Repair":i.push(d.id);break;case"Hospital":t.push(d.id);break;case"Contractor":e.push(d.id);break;default:break}}),this.classifyNodesData={CaseIds:c,PersonIds:l,VehicleIds:a,IdCardAddressIds:s,AccountIds:o,PhoneIds:n,AppraisalIds:r,RepairIds:i,HospitalIds:t,ContractorIds:e,caseNos:u}}},beforeDestroy(){clearInterval(this.intervalId),clearInterval(this.checkStoppedId)},watch:{isCollapse:{handler(e){this.hideCricle(),setTimeout(()=>{this.resizeNetwork()},600)},immediate:!0}}},l=a,c=(i("ad18"),i("1805")),u=Object(c["a"])(l,r,n,!1,null,"b65d04e6",null);t["default"]=u.exports},6282:function(e,t,i){!function(t,i){e.exports=i()}(0,(function(){return function(e){function t(r){if(i[r])return i[r].exports;var n=i[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var i={};return t.m=e,t.c=i,t.i=function(e){return e},t.d=function(e,i,r){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=2)}([function(e,t,i){var r=i(4)(i(1),i(5),null,null);e.exports=r.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(3);t.default={props:{startVal:{type:Number,required:!1,default:0},endVal:{type:Number,required:!1,default:2017},duration:{type:Number,required:!1,default:3e3},autoplay:{type:Boolean,required:!1,default:!0},decimals:{type:Number,required:!1,default:0,validator:function(e){return e>=0}},decimal:{type:String,required:!1,default:"."},separator:{type:String,required:!1,default:","},prefix:{type:String,required:!1,default:""},suffix:{type:String,required:!1,default:""},useEasing:{type:Boolean,required:!1,default:!0},easingFn:{type:Function,default:function(e,t,i,r){return i*(1-Math.pow(2,-10*e/r))*1024/1023+t}}},data:function(){return{localStartVal:this.startVal,displayValue:this.formatNumber(this.startVal),printVal:null,paused:!1,localDuration:this.duration,startTime:null,timestamp:null,remaining:null,rAF:null}},computed:{countDown:function(){return this.startVal>this.endVal}},watch:{startVal:function(){this.autoplay&&this.start()},endVal:function(){this.autoplay&&this.start()}},mounted:function(){this.autoplay&&this.start(),this.$emit("mountedCallback")},methods:{start:function(){this.localStartVal=this.startVal,this.startTime=null,this.localDuration=this.duration,this.paused=!1,this.rAF=(0,r.requestAnimationFrame)(this.count)},pauseResume:function(){this.paused?(this.resume(),this.paused=!1):(this.pause(),this.paused=!0)},pause:function(){(0,r.cancelAnimationFrame)(this.rAF)},resume:function(){this.startTime=null,this.localDuration=+this.remaining,this.localStartVal=+this.printVal,(0,r.requestAnimationFrame)(this.count)},reset:function(){this.startTime=null,(0,r.cancelAnimationFrame)(this.rAF),this.displayValue=this.formatNumber(this.startVal)},count:function(e){this.startTime||(this.startTime=e),this.timestamp=e;var t=e-this.startTime;this.remaining=this.localDuration-t,this.useEasing?this.countDown?this.printVal=this.localStartVal-this.easingFn(t,0,this.localStartVal-this.endVal,this.localDuration):this.printVal=this.easingFn(t,this.localStartVal,this.endVal-this.localStartVal,this.localDuration):this.countDown?this.printVal=this.localStartVal-(this.localStartVal-this.endVal)*(t/this.localDuration):this.printVal=this.localStartVal+(this.localStartVal-this.startVal)*(t/this.localDuration),this.countDown?this.printVal=this.printValthis.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal),t1?this.decimal+t[1]:"",n=/(\d+)(\d{3})/;if(this.separator&&!this.isNumber(this.separator))for(;n.test(i);)i=i.replace(n,"$1"+this.separator+"$2");return this.prefix+i+r+this.suffix}},destroyed:function(){(0,r.cancelAnimationFrame)(this.rAF)}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),n=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=n.default,"undefined"!=typeof window&&window.Vue&&window.Vue.component("count-to",n.default)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=0,n="webkit moz ms o".split(" "),s=void 0,o=void 0;if("undefined"==typeof window)t.requestAnimationFrame=s=function(){},t.cancelAnimationFrame=o=function(){};else{t.requestAnimationFrame=s=window.requestAnimationFrame,t.cancelAnimationFrame=o=window.cancelAnimationFrame;for(var a=void 0,l=0;l{this.myChart&&this.myChart.resize()},600)},navForm:{immediate:!0,deep:!0,handler(e){this.getData()}}},data(){return{topDays:[],newNumber:0,myChart:"",loading:!0}},mounted(){this.role=localStorage.getItem("role"),window.addEventListener("resize",()=>{this.myChart&&setTimeout(()=>{this.myChart.resize()},500)})},methods:{getData(){this.loading=!0,this.instance({method:"post",url:"/large/data/screen/getClaimAmountClassification",data:this.navForm,headers:{"Content-Type":"application/json;charset=UTF-8"}}).then(e=>{if(this.loading=!1,1==e.data.code){let t=e.data.data;t.length>0&&this.loadCharts(t)}})},loadCharts(e){var t=document.getElementById("reparations_amount_type_pie");if(!t)return;this.myChart=s["init"](t,null,{renderer:"svg"});let i=[];e.forEach((e,t)=>{let r={value:e.caseNumRatio,name:e.name,itemStyle:{borderColor:"#E3A505",shadowColor:"#433f24"}};1==t?r.itemStyle={borderColor:"#28fd7f",shadowColor:"#195c4b"}:2==t?r.itemStyle={borderColor:"#b1009a",shadowColor:"#632053"}:3==t?r.itemStyle={borderColor:"#2485af",shadowColor:"#082159"}:4==t?r.itemStyle={borderColor:"#e485af",shadowColor:"#382159"}:5==t&&(r.itemStyle={borderColor:"#f4893f",shadowColor:"#082359"}),i.push(r)});var r={tooltip:{trigger:"item",formatter:"{b}: {c}元",confine:!0},legend:{itemWidth:12,itemHeight:12,textStyle:{color:"#fff"},right:"5%",top:"middle",orient:"vertical"},series:[{type:"pie",radius:"60%",center:["40%","50%"],avoidLabelOverlap:!1,label:{position:"inner",fontSize:10,color:"#fff",formatter:"{d}%"},labelLine:{show:!1},itemStyle:{borderColor:"#e4393c",borderWidth:5,color:"#0A1A2E",shadowBlur:5,shadowColor:"rgba(85, 255, 0, 1)"},selectedMode:"single",data:i}]};this.myChart.setOption(r,!0)}},updated(){this.myChart&&this.myChart.resize()}},a=o,l=(i("0a24"),i("1805")),c=Object(l["a"])(a,r,n,!1,null,"38110235",null);t["default"]=c.exports},"6a7e":function(e,t,i){"use strict";i("a889")},"6b0b":function(e,t,i){"use strict";i("7363")},"6f90":function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"module_wrap box_border",attrs:{"element-loading-text":"数据加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"transparent"}},[t("div",{staticClass:"box_title"},[e._v(e._s("全国"==e.navForm.accidentProvince?"全国死亡案均金额排行榜":"死亡案均金额统计"))]),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.loading,expression:"!loading"}],staticStyle:{height:"55%"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:"全国"==e.province,expression:"province == '全国'"}],attrs:{id:"case_num_sum_bar"}}),t("div",{directives:[{name:"show",rawName:"v-show",value:"全国"!=e.province,expression:"province != '全国'"}],attrs:{id:"case_num_sum_bar2"}}),e.tableData.length>0?t("div",{staticClass:"tables_box"},[t("el-table",{attrs:{data:[e.tableData[0]],"max-height":"200"}},e._l(e.tableData,(function(i,r){return t("el-table-column",{key:r,attrs:{label:i.accItem,width:String(i.accAmount).length>5?"100":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._e(),e._v(" "+e._s(i.accAmount?i.accAmount:"--")+" 万元 ")]}}],null,!0)})})),1)],1):e._e()])])},n=[],s=(i("f16c"),i("45d2"),i("8160"),i("9052"),i("ada4")),o={name:"CaseNumSum",props:{isCollapse:{type:Boolean,default:!0},navForm:{type:Object,default:{}}},watch:{isCollapse(){setTimeout(()=>{this.myChart&&this.myChart.resize()},600)},navForm:{immediate:!0,deep:!0,handler(e){this.province=e.accidentProvince,this.getData()}}},data(){return{topDays:[],newNumber:0,myChart:"",myChart2:"",option:"",province:"",tableData:[],loading:!0}},mounted(){this.role=localStorage.getItem("role"),window.addEventListener("resize",()=>{this.myChart&&setTimeout(()=>{this.myChart.resize()},500)})},methods:{getData(){this.loading=!0,this.instance({method:"post",url:"/large/data/screen/deathRanking",data:this.navForm,headers:{"Content-Type":"application/json;charset=UTF-8"}}).then(e=>{if(this.loading=!1,1==e.data.code){let t=e.data.data;if(t.length>0){let e=t.map(e=>({...e,accItem:this.$$abbreviateCity(e.accItem)}));"全国"==this.province?(e=e.splice(0,20),this.loadCharts(e)):this.loadCharts2(e)}}})},loadCharts2(e){var t=document.getElementById("case_num_sum_bar2");if(!t)return;this.myChart2=s["init"](t,null,{renderer:"svg"});let i=[],r=[],n=[];e.forEach((e,t)=>{i.push(e.accItem),r.push(e.prvAmount),n.push(e.accAmount)}),this.tableData=e;let o={tooltip:{confine:!0,formatter:"{a}
{b}: {c}元",axisPointer:{type:"shadow"}},legend:{data:[this.province,"全国"],itemWidth:12,itemHeight:12,itemGap:20,textStyle:{color:"#fff"},left:"center"},grid:{top:25,left:"10",right:"10",bottom:"10",containLabel:!0},xAxis:{type:"category",splitLine:{show:!1},axisTick:{show:!0,alignWithLabel:!0},axisLabel:{showMaxLabel:!0,rotate:30,color:"#fff",width:70,overflow:"truncate",ellipsis:"..."},data:i},yAxis:{splitLine:{show:!1},axisTick:{show:!1},axisLabel:{color:"#fff",formatter:"{value} 元"}},color:new s["graphic"].LinearGradient(0,0,0,1,[{offset:0,color:"#FFFFFF"},{offset:1,color:"#B153F5"}]),series:[{name:this.province,type:"bar",itemStyle:{color:"#5283BD"},stack:"total",emphasis:{focus:"series"},barMaxWidth:"40%",data:r},{name:"全国",type:"bar",itemStyle:{color:new s["graphic"].LinearGradient(0,0,0,1,[{offset:0,color:"#FFFFFF"},{offset:1,color:"#F2B95D"}])},emphasis:{focus:"series"},stack:"total",barMaxWidth:"35%",data:n}]};this.myChart2.setOption(o)},loadCharts(e){var t=document.getElementById("case_num_sum_bar");if(!t)return;this.myChart=s["init"](t,null,{renderer:"svg"});let i=[],r=[];e.forEach((e,t)=>{i.push(e.accItem),r.push(e.accAmount)}),this.tableData=e;var n={tooltip:{trigger:"axis",formatter:"{b0} : {c0}元"},xAxis:{data:i,axisTick:{show:!1},axisLabel:{showMaxLabel:!0,rotate:40,color:"#fff",width:60,overflow:"truncate",ellipsis:"..."}},yAxis:{splitLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1}},grid:{top:"20",bottom:"5",left:"10",right:"10",containLabel:!0},color:["#88B3BD"],color:new s["graphic"].LinearGradient(0,0,0,1,[{offset:0,color:"#FFFFFF"},{offset:1,color:"#B153F5"}]),series:[{name:"hill",type:"pictorialBar",barCategoryGap:"-40%",symbol:"path://M0,10 L10,10 C5.5,10 5.5,5 5,0 C4.5,5 4.5,10 0,10 z",barWidth:"80%",label:{position:"top",color:"#fff",formatter:function(e){return Math.round(e.value/1e4)+" 万"}},emphasis:{itemStyle:{opacity:1}},data:r,z:10}]};this.myChart.setOption(n)}},updated(){this.myChart&&this.myChart.resize()}},a=o,l=(i("023b"),i("1805")),c=Object(l["a"])(a,r,n,!1,null,"049a4d56",null);t["default"]=c.exports},"72cc":function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"wrap"},[e._m(0),t("div",{staticClass:"search_box public_box"},[t("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.navForm}},[t("el-form-item",{staticClass:"noneMarginBottom",attrs:{label:"险种分类:"}},[t("el-select",{staticClass:"width_150",attrs:{filterable:"",clearable:"",placeholder:"请选择分类"},model:{value:e.navForm.insureTypeId,callback:function(t){e.$set(e.navForm,"insureTypeId",t)},expression:"navForm.insureTypeId"}},e._l(e.insureTypeList,(function(e,i){return t("el-option",{key:i,attrs:{label:e.metaData,value:e.id}})})),1)],1),t("el-form-item",{staticClass:"noneMarginBottom",attrs:{label:"险种名称:"}},[t("el-input",{staticClass:"width_150",attrs:{placeholder:"请填写名称",clearable:""},model:{value:e.navForm.insureName,callback:function(t){e.$set(e.navForm,"insureName",t)},expression:"navForm.insureName"}})],1),t("el-form-item",{staticClass:"noneMarginBottom"},[t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.searchTable(!0)}}},[e._v("查询")])],1)],1)],1),t("div",{staticClass:"table_box public_box"},[t("p",{staticStyle:{"text-align":"right","margin-bottom":"10px"}},[t("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogVisibleVerify=!0}}},[e._v("新增+")])],1),t("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData}},[t("el-table-column",{attrs:{prop:"insureType",label:"险种分类"}}),t("el-table-column",{attrs:{prop:"insureName",label:"险种名称"},scopedSlots:e._u([{key:"default",fn:function(i){return[i.row.insureName&&i.row.insureName.length>13?t("el-tooltip",{attrs:{effect:"dark",content:i.row.insureName,placement:"top-start"}},[t("span",[e._v(e._s(i.row.insureName.slice(0,13)+"..."))])]):t("span",[e._v(e._s(i.row.insureName))])]}}])}),t("el-table-column",{attrs:{prop:"thirdAmount",label:"三者赔付最高限额(万元)",width:"170"}}),t("el-table-column",{attrs:{prop:"deliveryAmount",label:"骑手医疗赔付责任限额(元)",width:"180"}}),t("el-table-column",{attrs:{prop:"rabidDogAmount",label:"狂犬疫苗赔偿限额(元)",width:"170"}}),t("el-table-column",{attrs:{prop:"deductibleAmount",label:"骑手医疗每次扣除免赔(元)",width:"180"}}),t("el-table-column",{attrs:{prop:"createUser",label:"创建人"}}),t("el-table-column",{attrs:{prop:"createTime",label:"创建时间",width:"140"}})],1),t("el-pagination",{staticStyle:{"margin-top":"0.2rem"},attrs:{"current-page":e.navForm.page,layout:"total, sizes, prev, pager, next, jumper","page-sizes":[10,20],"page-size":e.navForm.size,total:e.navForm.totalPage},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1),t("el-dialog",{attrs:{visible:e.dialogVisibleVerify,title:"新增人伤险种赔付条款","append-to-body":!0,center:"",width:"50%"},on:{"update:visible":function(t){e.dialogVisibleVerify=t},close:function(t){return e.saveAddForm(!1)}}},[t("el-form",{ref:"addFormRef",staticClass:"unit-dialog_form",attrs:{inline:!0,model:e.addForm,rules:e.addFormRules,"label-position":"right","label-width":"170px"}},[t("el-form-item",{staticClass:"form_select",attrs:{label:"险种分类:",prop:"insureTypeId"}},[t("el-select",{attrs:{placeholder:"请选择",filterable:""},model:{value:e.addForm.insureTypeId,callback:function(t){e.$set(e.addForm,"insureTypeId",t)},expression:"addForm.insureTypeId"}},e._l(e.insureTypeList,(function(e,i){return t("el-option",{key:i,attrs:{label:e.metaData,value:e.id}})})),1)],1),t("el-form-item",{attrs:{label:"险种名称:",prop:"insureName"}},[t("el-input",{attrs:{placeholder:"请输入内容"},model:{value:e.addForm.insureName,callback:function(t){e.$set(e.addForm,"insureName",t)},expression:"addForm.insureName"}})],1),t("el-form-item",{attrs:{label:"三者赔付最高限额:",prop:"thirdAmount"}},[t("el-input",{attrs:{type:"number",oninput:"if(value.length > 13){value = value.slice(0,13)}",placeholder:"请输入内容"},model:{value:e.addForm.thirdAmount,callback:function(t){e.$set(e.addForm,"thirdAmount",e._n(t))},expression:"addForm.thirdAmount"}}),e._v("万元 ")],1),t("el-form-item",{attrs:{label:"骑手医疗赔付责任限额:",prop:"deliveryAmount"}},[t("el-input",{attrs:{type:"number",oninput:"if(value.length > 13){value = value.slice(0,13)}",placeholder:"请输入内容"},model:{value:e.addForm.deliveryAmount,callback:function(t){e.$set(e.addForm,"deliveryAmount",e._n(t))},expression:"addForm.deliveryAmount"}}),e._v("元 ")],1),t("el-form-item",{attrs:{label:"狂犬疫苗医疗赔偿限额:",prop:"rabidDogAmount"}},[t("el-input",{attrs:{type:"number",oninput:"if(value.length > 13){value = value.slice(0,13)}",placeholder:"请输入内容"},model:{value:e.addForm.rabidDogAmount,callback:function(t){e.$set(e.addForm,"rabidDogAmount",e._n(t))},expression:"addForm.rabidDogAmount"}}),e._v("元 ")],1),t("el-form-item",{attrs:{label:"骑手医疗每次扣除免赔:",prop:"deductibleAmount"}},[t("el-input",{attrs:{type:"number",oninput:"if(value.length > 13){value = value.slice(0,13)}",placeholder:"请输入内容"},model:{value:e.addForm.deductibleAmount,callback:function(t){e.$set(e.addForm,"deductibleAmount",e._n(t))},expression:"addForm.deductibleAmount"}}),e._v("元 ")],1)],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(t){return e.saveAddForm(!1)}}},[e._v("取 消")]),t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.saveAddForm(!0)}}},[e._v("确 定")])],1)],1)],1)},n=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"page_title"},[t("b",[e._v("人伤险种赔付设置")])])}],s={name:"onlineTesting",components:{},data(){return{navForm:{insureTypeId:"",insureName:"",page:1,size:10,totalPage:0},insureTypeList:[],options:[],tableData:[],dialogVisibleVerify:!1,addForm:{insureTypeId:"",insureName:"",thirdAmount:"",deliveryAmount:"",rabidDogAmount:"",deductibleAmount:""},addFormRules:{insureTypeId:[{required:!0,message:"请选择分类",trigger:"change"}],insureName:[{required:!0,message:"请输入名称",trigger:"blur"}]}}},mounted(){this.getInsureType(),this.searchTable()},methods:{searchTable(e){this.navForm.page=e?1:this.navForm.page,this.instance.post("/medicalFileLimit/searchPage",this.navForm).then(e=>{var t=e.data;1==t.code&&(this.tableData=t.data.list,this.navForm.totalPage=t.data.total)})},handleCurrentChange(e){this.navForm.page=e,this.searchTable()},handleSizeChange(e){this.navForm.size=e,this.searchTable()},saveAddForm(e){e?this.$refs.addFormRef.validate(e=>{if(e){let e=this.insureTypeList.findIndex(e=>e.id==this.addForm.insureTypeId);this.addForm.insureType=-1!=e?this.insureTypeList[e].metaData:"",this.instance.post("/medicalFileLimit",this.addForm).then(e=>{let t=e.data;1==t.code?(this.searchTable(),this.$message.success("新增人伤险种赔付条款成功"),this.dialogVisibleVerify=!1,this.$refs.addFormRef.resetFields()):this.$message.error(t.message)})}}):(this.dialogVisibleVerify=!1,this.$refs.addFormRef.resetFields())},getInsureType(){this.instance.post("/backstage/getDict",{dictType:"MEDICAL_LIMIT_TYPE"}).then(e=>{var t=e.data;1==t.code&&(this.insureTypeList=t.data)})}}},o=s,a=(i("c060"),i("1805")),l=Object(a["a"])(o,r,n,!1,null,null,null);t["default"]=l.exports},7363:function(e,t,i){},7373:function(e,t,i){"use strict";i("1229")},"78ec":function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"invoice-content"},[t("div",{staticClass:"align-title autoC"},[e._v("图像查重平台")]),t("div",{staticClass:"align-inputs autoC"},[t("i",{staticClass:"input-icon el-icon-search"}),t("el-input",{staticClass:"align-input",attrs:{placeholder:"请输入案件号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.invoiceSearch.apply(null,arguments)}},model:{value:e.caseNo,callback:function(t){e.caseNo=t},expression:"caseNo"}}),t("span",{staticClass:"input-btn",on:{click:e.invoiceSearch}},[e._v("查验")])],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.searchLoading,expression:"searchLoading"}],staticClass:"align-center"},[e.searchData.length>0?[e.menuShow?t("ul",{class:e.searchData.length<6?"small_amount clearfix":"large autoC clearfix"},e._l(e.searchData,(function(i,r){return t("li",{key:r,on:{click:function(t){return e.invoiceDetail(i)}}},[t("el-card",{staticClass:"box-card"},[t("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[t("p",{staticStyle:{"margin-bottom":"5px"}},[e._v("风险案件号:")]),t("p",{staticStyle:{"margin-bottom":"8px"}},[e._v(e._s(i?i.caseNo:""))]),t("p",{staticStyle:{"margin-bottom":"5px"}},[e._v("保单号:")]),t("p",{staticStyle:{"margin-bottom":"8px"}},[e._v(e._s(i.targetInvoiceList&&i.targetInvoiceList[0]?i.targetInvoiceList[0].policyNo:""))]),t("p",{staticStyle:{"margin-bottom":"5px"}},[e._v("出险时间:")]),t("p",{staticStyle:{"margin-bottom":"8px"}},[e._v(e._s(i.targetInvoiceList&&i.targetInvoiceList[0]?i.targetInvoiceList[0].accidentTime:""))])]),t("div",{staticClass:"card_content",on:{click:function(t){return e.invoiceDetail(i)}}},[t("div",{staticClass:"caseInvoice"},[t("p",[e._v("重复图像数:"+e._s(i.caseInvoiceList?i.caseInvoiceList.length:""))])])])])],1)})),0):t("ul",{class:e.searchData.length<6?"small_amount clearfix":"menuFalseLarge autoC clearfix"},e._l(e.searchData,(function(i,r){return t("li",{key:r,on:{click:function(t){return e.invoiceDetail(i)}}},[t("el-card",{staticClass:"box-card"},[t("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[t("p",{staticStyle:{"margin-bottom":"5px"}},[e._v("风险案件号:")]),t("p",{staticStyle:{"margin-bottom":"8px"}},[e._v(e._s(i?i.caseNo:""))]),t("p",{staticStyle:{"margin-bottom":"5px"}},[e._v("保单号:")]),t("p",{staticStyle:{"margin-bottom":"8px"}},[e._v(e._s(i.targetInvoiceList&&i.targetInvoiceList[0]?i.targetInvoiceList[0].policyNo:""))]),t("p",{staticStyle:{"margin-bottom":"5px"}},[e._v("出险时间:")]),t("p",{staticStyle:{"margin-bottom":"8px"}},[e._v(e._s(i.targetInvoiceList&&i.targetInvoiceList[0]?i.targetInvoiceList[0].accidentTime:""))])]),t("div",{staticClass:"card_content",on:{click:function(t){return e.invoiceDetail(i)}}},[t("div",{staticClass:"caseInvoice"},[t("p",[e._v("重复图像数:"+e._s(i.caseInvoiceList?i.caseInvoiceList.length:""))])])])])],1)})),0)]:e._e(),0==e.searchData.length?t("el-empty",{attrs:{description:e.caseNo?e.descriptionTxt:"暂无数据"}}):e._e()],2),t("el-dialog",{staticClass:"popup_invoice",attrs:{center:"","append-to-body":"",visible:e.dialogVisible,width:"90%","before-close":e.closeDIalog},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"dialog_invoice clearfix"},[t("div",{staticClass:"dialog_left fl"},[t("p",{staticClass:"dialog_title",on:{click:function(t){return e.copyTxt(e.caseNo)}}},[e._v(" 查询案件号: "),e.caseNo&&e.caseNo.length>40?t("span",[e._v(e._s(e.caseNo.slice(0,40)+"..."))]):e.caseNo?t("span",[e._v(e._s(e.caseNo))]):e._e()]),t("p",{staticStyle:{"margin-bottom":"10px"},on:{click:function(t){return e.copyTxt(e.imgListData.left.imgUrlList[0].policyNo)}}},[e._v("保单号:"+e._s(e.imgListData.left.imgUrlList&&e.imgListData.left.imgUrlList[0]?e.imgListData.left.imgUrlList[0].policyNo:""))]),t("p",{staticStyle:{"margin-bottom":"10px"}},[e._v("出险时间:"+e._s(e.imgListData.left.imgUrlList&&e.imgListData.left.imgUrlList[0]?e.imgListData.left.imgUrlList[0].accidentTime:""))]),t("div",{staticClass:"invoice_carousel"},[e._e(),t("img-deal",{ref:"imgDeal",attrs:{url:e.previewCaseInvoiceImg}})],1),t("div",{staticClass:"invoice_content"},[e.imgListData.left.imgUrlList.length>0?t("div",{staticClass:"preview-box"},[t("i",{staticClass:"left-btn el-icon-arrow-left",on:{click:function(t){return e.imgLeft("left")}}}),t("div",{staticClass:"img_list"},[t("ul",{staticClass:"img_ul"},[e._l(e.imgListData.left.imgUrlList,(function(i,r){return[t("li",{key:r,staticClass:"Img_li",style:e.leftImgStyle,on:{click:function(t){return e.switchPreviewImg(i,r,"left")}}},[t("img",{class:r===e.imgListData.left.imgActiveIndex?"img_activeBorder":"",attrs:{src:i.imageUrl}})])]}))],2)]),t("i",{staticClass:"right-btn el-icon-arrow-right",on:{click:function(t){return e.imgRight("left")}}})]):e._e()])]),t("div",{staticClass:"dialog_right fr"},[t("p",{staticClass:"dialog_title",on:{click:function(t){return e.copyTxt(e.invoiceData.caseNo)}}},[e._v(" 风险案件号: "),e.invoiceData.caseNo&&e.invoiceData.caseNo.length>40?t("span",[e._v(e._s(e.invoiceData.caseNo.slice(0,40)+"..."))]):t("span",[e._v(e._s(e.invoiceData?e.invoiceData.caseNo:""))])]),t("p",{staticStyle:{"margin-bottom":"10px"},on:{click:function(t){return e.copyTxt(e.imgListData.right.imgUrlList[0].policyNo)}}},[e._v("保单号:"+e._s(e.imgListData.right.imgUrlList&&e.imgListData.right.imgUrlList[0]?e.imgListData.right.imgUrlList[0].policyNo:""))]),t("p",{staticStyle:{"margin-bottom":"10px"}},[e._v("出险时间:"+e._s(e.imgListData.right.imgUrlList&&e.imgListData.right.imgUrlList[0]?e.imgListData.right.imgUrlList[0].accidentTime:""))]),t("div",{staticClass:"invoice_carousel"},[e._e(),t("img-deal",{ref:"imgDeal",attrs:{url:e.previewTargetInvoiceImg}})],1),t("div",{staticClass:"invoice_content"},[e.imgListData.right.imgUrlList.length>0?t("div",{staticClass:"preview-box"},[t("i",{staticClass:"left-btn el-icon-arrow-left",on:{click:function(t){return e.imgLeft("left")}}}),t("div",{staticClass:"img_list"},[t("ul",{staticClass:"img_ul"},[e._l(e.imgListData.right.imgUrlList,(function(i,r){return[t("li",{key:r+100,staticClass:"Img_li",style:e.leftImgStyle,on:{click:function(t){return e.switchPreviewImg(i,r,"left")}}},[t("img",{class:r===e.imgListData.left.imgActiveIndex?"img_activeBorder":"",attrs:{src:i.imageUrl}})])]}))],2)]),t("i",{staticClass:"right-btn el-icon-arrow-right",on:{click:function(t){return e.imgRight("left")}}})]):e._e()])])])]),t("div",{staticClass:"footer"},[e._v("Copyright @2023 北京宏瓴科技发展有限公司")])],1)},n=[],s=i("18dd"),o={components:{ImgDeal:s["a"]},data(){return{searchLoading:!1,dialogVisible:!1,caseNo:"6020200807032022042276254",dataImgUrl:"",imgLoad:!1,searchObj:{},searchData:[],invoiceData:{},descriptionTxt:"暂无数据",caseInvoiceCurrentIndex:1,targetInvoiceCurrentIndex:1,imgUrlList:[],previewCaseInvoiceImg:"",previewTargetInvoiceImg:"",imgActiveIndex:0,imgDistance:0,allDistance:0,imgListData:{left:{imgUrlList:[],imgActiveIndex:0,imgDistance:0,allDistance:0},right:{imgUrlList:[],imgActiveIndex:0,imgDistance:0,allDistance:0}},menuShow:!0}},computed:{leftImgStyle(){return{transform:`translate3d(${this.imgListData.left.imgDistance}px, 0, 0)`}},rightImgStyle(){return{transform:`translate3d(${this.imgListData.right.imgDistance}px, 0, 0)`}}},mounted(){"E7IpJc*6(=}<"==localStorage.getItem("AUTH_TOKEN")&&(this.menuShow=!1,document.getElementsByClassName("fold_icon")[0].style.display="none",document.getElementsByClassName("header_right")[0].style.display="none",document.getElementsByClassName("header")[0].style.position="relative",document.getElementsByClassName("header")[0].style.zIndex=9)},methods:{invoiceSearch(){this.searchObj={},this.searchData=[],this.searchLoading=this.caseNo,this.caseNo&&this.instance.post("/case/invoiceDuplicateCheck",{caseNo:this.caseNo}).then(e=>{this.searchLoading=!1,1==e.data.code?(this.searchData=e.data.data,e.data.data.length<1&&(this.descriptionTxt="暂未发现图像异常案件"),this.$message.success(e.data.message)):this.$message.error(e.data.message)})},invoiceDetail(e){this.dialogVisible=!0,this.invoiceData=e,this.invoiceData.caseInvoiceList.length>0&&(this.imgListData.left.imgUrlList=this.invoiceData.caseInvoiceList,this.previewCaseInvoiceImg=this.invoiceData.caseInvoiceList[0].imageUrl),this.invoiceData.targetInvoiceList.length>0&&(this.imgListData.right.imgUrlList=this.invoiceData.targetInvoiceList,this.previewTargetInvoiceImg=this.invoiceData.targetInvoiceList[0].imageUrl)},imgOload(e){this.imgLoad=e},copyTxt(e){let t=document.createElement("input");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("Copy"),t.remove(),this.$message.success("复制成功")},leftCarouselChange(e){this.caseInvoiceCurrentIndex=e+1},rightCarouselChange(e){this.targetInvoiceCurrentIndex=e+1},imgLeft(e){if(this.imgListData[e].imgActiveIndex>0?this.imgListData[e].imgActiveIndex--:this.imgListData[e].imgActiveIndex=0,this.imgListData[e].imgActiveIndex>=6){var t=0;const i=window.setInterval(()=>{if(t<45)return this.imgListData[e].imgDistance+=2,void t++;window.clearInterval(i)},10)}this.previewCaseInvoiceImg=this.imgListData["left"].imgUrlList[this.imgListData["left"].imgActiveIndex].imageUrl,this.previewTargetInvoiceImg=this.imgListData["right"].imgUrlList[this.imgListData["left"].imgActiveIndex].imageUrl},imgRight(e){if(this.imgListData[e].imgActiveIndex=7&&this.imgListData[e].imgActiveIndex<=this.imgListData[e].imgUrlList.length-1){this.imgListData[e].allDistance=-90*(this.imgListData[e].imgActiveIndex-4);var t=0;const i=window.setInterval(()=>{if(t<45)return this.imgListData[e].imgDistance-=2,void t++;window.clearInterval(i)},10)}}else{this.imgListData[e].imgActiveIndex=0;t=0;var i=Math.abs(JSON.parse(JSON.stringify(this.imgListData[e].imgDistance)))/4;const r=window.setInterval(()=>{if(t0?[e._l(e.caseTotalRemined.contentList,(function(i,r){return[i.isNo?[i.caseNo.length>60?t("el-tooltip",{key:i.caseNo,attrs:{effect:"dark",placement:"top-start"}},[t("div",{staticStyle:{"max-width":"400px"},attrs:{slot:"content"},slot:"content"},[e._v(e._s(i.caseNo))]),t("div",{staticStyle:{"margin-top":"5px"}},[e._v(e._s(i.caseNo.slice(0,60)+"..."))])]):t("div",{key:i,staticStyle:{"margin-top":"5px"}},[e._v(e._s(i.caseNo))])]:t("p",{key:r,staticStyle:{"margin-top":"5px","line-height":"20px"},domProps:{innerHTML:e._s(i)}})]}))]:t("p",{staticStyle:{"text-align":"center"}},[e._v("暂无数据")])],2)])],1)]),t("div",{staticClass:"regions_content clearfix"},[t("h3",[e._v("分月案均金额")]),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.monthlyAnalysisRemined.loading,expression:"monthlyAnalysisRemined.loading"}],staticClass:"regions-box regions-content_left fl"},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.monthlyAnalysisRemined.showChart,expression:"monthlyAnalysisRemined.showChart"}],staticClass:"chart_box",attrs:{id:"chart2"}}),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.monthlyAnalysisRemined.showChart,expression:"!monthlyAnalysisRemined.showChart"}],staticClass:"chart_box"},[t("p",{staticClass:"noneData"},[e._v("暂无数据")])])]),t("div",{staticClass:"regions-box regions-content_right fr clearfix"},[t("el-tabs",{on:{"tab-click":function(t){return e.handleClick(e.monthlyAnalysisRemined)}},model:{value:e.monthlyAnalysisRemined.activeName,callback:function(t){e.$set(e.monthlyAnalysisRemined,"activeName",t)},expression:"monthlyAnalysisRemined.activeName"}},[t("el-tab-pane",{attrs:{label:"异常点",name:"first"}}),t("el-tab-pane",{attrs:{label:"分析",name:"second"}}),t("el-tab-pane",{attrs:{label:"建议",name:"third"}})],1),t("div",{staticClass:"abnormal fl"},[t("div",{staticClass:"abnormal-txt"},[e.monthlyAnalysisRemined.contentList.length>0?[e._l(e.monthlyAnalysisRemined.contentList,(function(i,r){return[i.isNo?[i.caseNo.length>60?t("el-tooltip",{key:i.caseNo,attrs:{effect:"dark",placement:"top-start"}},[t("div",{staticStyle:{"max-width":"400px"},attrs:{slot:"content"},slot:"content"},[e._v(e._s(i.caseNo))]),t("div",{staticStyle:{"margin-top":"5px"}},[e._v(e._s(i.caseNo.slice(0,60)+"..."))])]):t("div",{key:i,staticStyle:{"margin-top":"5px"}},[e._v(e._s(i.caseNo))])]:t("p",{key:r,staticStyle:{"margin-top":"5px","line-height":"20px"},domProps:{innerHTML:e._s(i)}})]}))]:t("p",{staticStyle:{"text-align":"center"}},[e._v("暂无数据")])],2)])],1)]),t("div",{staticClass:"regions_content clearfix"},[t("h3",[e._v("零结案、注销案件月度情况")]),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.monthlyCancel.loading,expression:"monthlyCancel.loading"}],staticClass:"regions-box regions-content_left fl"},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.monthlyCancel.showChart,expression:"monthlyCancel.showChart"}],staticClass:"chart_box",attrs:{id:"chart3"}}),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.monthlyCancel.showChart,expression:"!monthlyCancel.showChart"}],staticClass:"chart_box"},[t("p",{staticClass:"noneData"},[e._v("暂无数据")])])]),t("div",{staticClass:"regions-box regions-content_right fr clearfix"},[t("el-tabs",{on:{"tab-click":function(t){return e.handleClick(e.monthlyCancel)}},model:{value:e.monthlyCancel.activeName,callback:function(t){e.$set(e.monthlyCancel,"activeName",t)},expression:"monthlyCancel.activeName"}},[t("el-tab-pane",{attrs:{label:"异常点",name:"first"}}),t("el-tab-pane",{attrs:{label:"分析",name:"second"}}),t("el-tab-pane",{attrs:{label:"建议",name:"third"}})],1),t("div",{staticClass:"abnormal fl"},[t("div",{staticClass:"abnormal-txt"},[e.monthlyCancel.contentList.length>0?[e._l(e.monthlyCancel.contentList,(function(i,r){return[i.isNo?[i.caseNo.length>60?t("el-tooltip",{key:i.caseNo,attrs:{effect:"dark",placement:"top-start"}},[t("div",{staticStyle:{"max-width":"400px"},attrs:{slot:"content"},slot:"content"},[e._v(e._s(i.caseNo))]),t("div",{staticStyle:{"margin-top":"5px"}},[e._v(e._s(i.caseNo.slice(0,60)+"..."))])]):t("div",{key:i,staticStyle:{"margin-top":"5px"}},[e._v(e._s(i.caseNo))])]:t("p",{key:r,staticStyle:{"margin-top":"5px","line-height":"20px"},domProps:{innerHTML:e._s(i)}})]}))]:t("p",{staticStyle:{"text-align":"center"}},[e._v("暂无数据")])],2)])],1)]),t("div",{staticClass:"regions_content clearfix"},[t("h3",[e._v("月度案件数量(案件金额高于5000、低于5000)")]),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.monthlyAnalysisRemind.loading,expression:"monthlyAnalysisRemind.loading"}],staticClass:"regions-box regions-content_left fl"},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.monthlyAnalysisRemind.showChart,expression:"monthlyAnalysisRemind.showChart"}],staticClass:"chart_box",attrs:{id:"chart4"}}),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.monthlyAnalysisRemind.showChart,expression:"!monthlyAnalysisRemind.showChart"}],staticClass:"chart_box"},[t("p",{staticClass:"noneData"},[e._v("暂无数据")])])]),t("div",{staticClass:"regions-box regions-content_right fr clearfix"},[t("el-tabs",{on:{"tab-click":function(t){return e.handleClick(e.monthlyAnalysisRemind)}},model:{value:e.monthlyAnalysisRemind.activeName,callback:function(t){e.$set(e.monthlyAnalysisRemind,"activeName",t)},expression:"monthlyAnalysisRemind.activeName"}},[t("el-tab-pane",{attrs:{label:"异常点",name:"first"}}),t("el-tab-pane",{attrs:{label:"分析",name:"second"}}),t("el-tab-pane",{attrs:{label:"建议",name:"third"}})],1),t("div",{staticClass:"abnormal fl"},[t("div",{staticClass:"abnormal-txt"},[e.monthlyAnalysisRemind.contentList.length>0?[e._l(e.monthlyAnalysisRemind.contentList,(function(i,r){return[i.isNo?[i.caseNo.length>60?t("el-tooltip",{key:i.caseNo,attrs:{effect:"dark",placement:"top-start"}},[t("div",{staticStyle:{"max-width":"400px"},attrs:{slot:"content"},slot:"content"},[e._v(e._s(i.caseNo))]),t("div",{staticStyle:{"margin-top":"5px"}},[e._v(e._s(i.caseNo.slice(0,60)+"..."))])]):t("div",{key:i,staticStyle:{"margin-top":"5px"}},[e._v(e._s(i.caseNo))])]:t("p",{key:r,staticStyle:{"margin-top":"5px","line-height":"20px"},domProps:{innerHTML:e._s(i)}})]}))]:t("p",{staticStyle:{"text-align":"center"}},[e._v("暂无数据")])],2)])],1)])]),t("el-tab-pane",{attrs:{label:"区域",name:"second"}},[t("div",{staticClass:"regions_content clearfix"},[t("h3",{staticStyle:{"padding-left":"16px","margin-top":"10px"}},[e._v("各市案件量、总赔款")]),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.cityAnalysisRemind.loading,expression:"cityAnalysisRemind.loading"}],staticClass:"regions-box regions-content_left fl"},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.cityAnalysisRemind.showChart,expression:"cityAnalysisRemind.showChart"}],staticClass:"chart_box",staticStyle:{height:"650px","min-height":"500px"},attrs:{id:"chart5"}}),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.cityAnalysisRemind.showChart,expression:"!cityAnalysisRemind.showChart"}],staticClass:"chart_box"},[t("p",{staticClass:"noneData"},[e._v("暂无数据")])])]),t("div",{staticClass:"regions-box regions-content_right fr clearfix"},[t("el-tabs",{on:{"tab-click":function(t){return e.handleClick(e.cityAnalysisRemind)}},model:{value:e.cityAnalysisRemind.activeName,callback:function(t){e.$set(e.cityAnalysisRemind,"activeName",t)},expression:"cityAnalysisRemind.activeName"}},[t("el-tab-pane",{attrs:{label:"异常点",name:"first"}}),t("el-tab-pane",{attrs:{label:"分析",name:"second"}}),t("el-tab-pane",{attrs:{label:"建议",name:"third"}})],1),t("div",{staticClass:"abnormal fl"},[t("div",{staticClass:"abnormal-txt"},[e.cityAnalysisRemind.contentList.length>0?[e._l(e.cityAnalysisRemind.contentList,(function(i,r){return[i.isNo?[i.caseNo.length>60?t("el-tooltip",{key:i.caseNo,attrs:{effect:"dark",placement:"top-start"}},[t("div",{staticStyle:{"max-width":"400px"},attrs:{slot:"content"},slot:"content"},[e._v(e._s(i.caseNo))]),t("div",{staticStyle:{"margin-top":"5px"}},[e._v(e._s(i.caseNo.slice(0,60)+"..."))])]):t("div",{key:i,staticStyle:{"margin-top":"5px"}},[e._v(e._s(i.caseNo))])]:t("p",{key:r,staticStyle:{"margin-top":"5px","line-height":"20px"},domProps:{innerHTML:e._s(i)}})]}))]:t("p",{staticStyle:{"text-align":"center"}},[e._v("暂无数据")])],2)])],1)]),t("div",{staticClass:"regions_content clearfix"},[t("h3",[e._v("案均赔款量")]),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.cityAnalysisAvgRemind.loading,expression:"cityAnalysisAvgRemind.loading"}],staticClass:"regions-box regions-content_left fl"},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.cityAnalysisAvgRemind.showChart,expression:"cityAnalysisAvgRemind.showChart"}],staticClass:"chart_box",staticStyle:{height:"650px","min-height":"500px"},attrs:{id:"chart6"}}),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.cityAnalysisAvgRemind.showChart,expression:"!cityAnalysisAvgRemind.showChart"}],staticClass:"chart_box"},[t("p",{staticClass:"noneData"},[e._v("暂无数据")])])]),t("div",{staticClass:"regions-box regions-content_right fr clearfix"},[t("el-tabs",{on:{"tab-click":function(t){return e.handleClick(e.cityAnalysisAvgRemind)}},model:{value:e.cityAnalysisAvgRemind.activeName,callback:function(t){e.$set(e.cityAnalysisAvgRemind,"activeName",t)},expression:"cityAnalysisAvgRemind.activeName"}},[t("el-tab-pane",{attrs:{label:"异常点",name:"first"}}),t("el-tab-pane",{attrs:{label:"分析",name:"second"}}),t("el-tab-pane",{attrs:{label:"建议",name:"third"}})],1),t("div",{staticClass:"abnormal fl"},[t("div",{staticClass:"abnormal-txt"},[e.cityAnalysisAvgRemind.contentList.length>0?[e._l(e.cityAnalysisAvgRemind.contentList,(function(i,r){return[i.isNo?[i.caseNo.length>60?t("el-tooltip",{key:i.caseNo,attrs:{effect:"dark",placement:"top-start"}},[t("div",{staticStyle:{"max-width":"400px"},attrs:{slot:"content"},slot:"content"},[e._v(e._s(i.caseNo))]),t("div",{staticStyle:{"margin-top":"5px"}},[e._v(e._s(i.caseNo.slice(0,60)+"..."))])]):t("div",{key:i,staticStyle:{"margin-top":"5px"}},[e._v(e._s(i.caseNo))])]:t("p",{key:r,staticStyle:{"margin-top":"5px","line-height":"20px"},domProps:{innerHTML:e._s(i)}})]}))]:t("p",{staticStyle:{"text-align":"center"}},[e._v("暂无数据")])],2)])],1)]),t("div",{staticClass:"regions_content clearfix"},[t("h3",[e._v("城市案件量Top3")]),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.cityTopReportRemind1.loading,expression:"cityTopReportRemind1.loading"}],staticClass:"regions-box regions-content_left fl"},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.cityTopReportRemind1.showChart,expression:"cityTopReportRemind1.showChart"}],staticClass:"chart_box",attrs:{id:"chart7"}}),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.cityTopReportRemind1.showChart,expression:"!cityTopReportRemind1.showChart"}],staticClass:"chart_box"},[t("p",{staticClass:"noneData"},[e._v("暂无数据")])])]),t("div",{staticClass:"regions-box regions-content_right fr clearfix"},[t("el-tabs",{on:{"tab-click":function(t){return e.handleClick(e.cityTopReportRemind1)}},model:{value:e.cityTopReportRemind1.activeName,callback:function(t){e.$set(e.cityTopReportRemind1,"activeName",t)},expression:"cityTopReportRemind1.activeName"}},[t("el-tab-pane",{attrs:{label:"异常点",name:"first"}}),t("el-tab-pane",{attrs:{label:"分析",name:"second"}}),t("el-tab-pane",{attrs:{label:"建议",name:"third"}})],1),t("div",{staticClass:"abnormal fl"},[t("div",{staticClass:"abnormal-txt"},[e.cityTopReportRemind1.contentList.length>0?[e._l(e.cityTopReportRemind1.contentList,(function(i,r){return[i.isNo?[i.caseNo.length>60?t("el-tooltip",{key:i.caseNo,attrs:{effect:"dark",placement:"top-start"}},[t("div",{staticStyle:{"max-width":"400px"},attrs:{slot:"content"},slot:"content"},[e._v(e._s(i.caseNo))]),t("div",{staticStyle:{"margin-top":"5px"}},[e._v(e._s(i.caseNo.slice(0,60)+"..."))])]):t("div",{key:i,staticStyle:{"margin-top":"5px"}},[e._v(e._s(i.caseNo))])]:t("p",{key:r,staticStyle:{"margin-top":"5px","line-height":"20px"},domProps:{innerHTML:e._s(i)}})]}))]:t("p",{staticStyle:{"text-align":"center"}},[e._v("暂无数据")])],2)])],1)]),t("div",{staticClass:"regions_content clearfix"},[t("h3",[e._v("城市总赔款Top3")]),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.cityTopReportRemind2.loading,expression:"cityTopReportRemind2.loading"}],staticClass:"regions-box regions-content_left fl"},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.cityTopReportRemind2.showChart,expression:"cityTopReportRemind2.showChart"}],staticClass:"chart_box",attrs:{id:"chart8"}}),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.cityTopReportRemind2.showChart,expression:"!cityTopReportRemind2.showChart"}],staticClass:"chart_box"},[t("p",{staticClass:"noneData"},[e._v("暂无数据")])])]),t("div",{staticClass:"regions-box regions-content_right fr clearfix"},[t("el-tabs",{on:{"tab-click":function(t){return e.handleClick(e.cityTopReportRemind2)}},model:{value:e.cityTopReportRemind2.activeName,callback:function(t){e.$set(e.cityTopReportRemind2,"activeName",t)},expression:"cityTopReportRemind2.activeName"}},[t("el-tab-pane",{attrs:{label:"异常点",name:"first"}}),t("el-tab-pane",{attrs:{label:"分析",name:"second"}}),t("el-tab-pane",{attrs:{label:"建议",name:"third"}})],1),t("div",{staticClass:"abnormal fl"},[t("div",{staticClass:"abnormal-txt"},[e.cityTopReportRemind2.contentList.length>0?[e._l(e.cityTopReportRemind2.contentList,(function(i,r){return[i.isNo?[i.caseNo.length>60?t("el-tooltip",{key:i.caseNo,attrs:{effect:"dark",placement:"top-start"}},[t("div",{staticStyle:{"max-width":"400px"},attrs:{slot:"content"},slot:"content"},[e._v(e._s(i.caseNo))]),t("div",{staticStyle:{"margin-top":"5px"}},[e._v(e._s(i.caseNo.slice(0,60)+"..."))])]):t("div",{key:i,staticStyle:{"margin-top":"5px"}},[e._v(e._s(i.caseNo))])]:t("p",{key:r,staticStyle:{"margin-top":"5px","line-height":"20px"},domProps:{innerHTML:e._s(i)}})]}))]:t("p",{staticStyle:{"text-align":"center"}},[e._v("暂无数据")])],2)])],1)]),t("div",{staticClass:"regions_content clearfix"},[t("h3",[e._v("城市案均赔款Top3")]),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.cityTopReportRemind3.loading,expression:"cityTopReportRemind3.loading"}],staticClass:"regions-box regions-content_left fl"},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.cityTopReportRemind3.showChart,expression:"cityTopReportRemind3.showChart"}],staticClass:"chart_box",attrs:{id:"chart9"}}),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.cityTopReportRemind3.showChart,expression:"!cityTopReportRemind3.showChart"}],staticClass:"chart_box"},[t("p",{staticClass:"noneData"},[e._v("暂无数据")])])]),t("div",{staticClass:"regions-box regions-content_right fr clearfix"},[t("el-tabs",{on:{"tab-click":function(t){return e.handleClick(e.cityTopReportRemind3)}},model:{value:e.cityTopReportRemind3.activeName,callback:function(t){e.$set(e.cityTopReportRemind3,"activeName",t)},expression:"cityTopReportRemind3.activeName"}},[t("el-tab-pane",{attrs:{label:"异常点",name:"first"}}),t("el-tab-pane",{attrs:{label:"分析",name:"second"}}),t("el-tab-pane",{attrs:{label:"建议",name:"third"}})],1),t("div",{staticClass:"abnormal fl"},[t("div",{staticClass:"abnormal-txt"},[e.cityTopReportRemind3.contentList.length>0?[e._l(e.cityTopReportRemind3.contentList,(function(i,r){return[i.isNo?[i.caseNo.length>60?t("el-tooltip",{key:i.caseNo,attrs:{effect:"dark",placement:"top-start"}},[t("div",{staticStyle:{"max-width":"400px"},attrs:{slot:"content"},slot:"content"},[e._v(e._s(i.caseNo))]),t("div",{staticStyle:{"margin-top":"5px"}},[e._v(e._s(i.caseNo.slice(0,60)+"..."))])]):t("div",{key:i,staticStyle:{"margin-top":"5px"}},[e._v(e._s(i.caseNo))])]:t("p",{key:r,staticStyle:{"margin-top":"5px","line-height":"20px"},domProps:{innerHTML:e._s(i)}})]}))]:t("p",{staticStyle:{"text-align":"center"}},[e._v("暂无数据")])],2)])],1)])]),t("el-tab-pane",{attrs:{label:"长尾效应",name:"third"}},[t("div",{staticClass:"regions_content clearfix"},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.chart16Loading,expression:"chart16Loading"}],staticClass:"regions-box regions-content_left fl"},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.chart16Remind.showChart,expression:"chart16Remind.showChart"}],staticClass:"chart_box",attrs:{id:"chart16"}}),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.chart16Remind.showChart,expression:"!chart16Remind.showChart"}],staticClass:"chart_box"},[t("p",{staticClass:"noneData"},[e._v("暂无数据")])])]),t("div",{staticClass:"regions-box regions-content_right fr clearfix"},[t("h3",{staticStyle:{"margin-top":"10px","padding-left":"0"}},[e._v("长尾效应-计算长尾时间")]),t("div",{staticClass:"content-excel fl"},[t("el-row",[t("el-col",{attrs:{span:13}},[e._v("计算长尾时间")]),t("el-col",{attrs:{span:7,offset:2}},[t("el-select",{attrs:{placeholder:"请选择",size:"mini"},model:{value:e.excelDate,callback:function(t){e.excelDate=t},expression:"excelDate"}},e._l(e.excelOptions,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1)],1),t("el-row",[t("el-col",{attrs:{span:13}},[e._v("案件量")]),t("el-col",{attrs:{span:7,offset:2}},[e._v(e._s(e.tmpContentExcel[e.excelDate]?e.tmpContentExcel[e.excelDate].caseNum:0))])],1),t("el-row",[t("el-col",{attrs:{span:13}},[e._v("赔付总金额")]),t("el-col",{attrs:{span:7,offset:2}},[e._v(e._s(e.tmpContentExcel[e.excelDate]?e.tmpContentExcel[e.excelDate].totalPayAmount2:0)+" 万")])],1),t("el-row",[t("el-col",{attrs:{span:13}},[e._v("案均赔付金额")]),t("el-col",{attrs:{span:7,offset:2}},[e._v(e._s(e.tmpContentExcel[e.excelDate]?e.tmpContentExcel[e.excelDate].avgPayAmount:0)+" 元")])],1),t("el-row",[t("el-col",{attrs:{span:13}},[e._v("出险时间与首次赔付时间平均值")]),t("el-col",{attrs:{span:7,offset:2}},[e._v(e._s(e.tmpContentExcel[e.excelDate]?e.tmpContentExcel[e.excelDate].accDiffFirstPayTime:0)+" 天")])],1),t("el-row",[t("el-col",{attrs:{span:13}},[e._v("出险时间与末次赔付时间平均值")]),t("el-col",{attrs:{span:7,offset:2}},[e._v(e._s(e.tmpContentExcel[e.excelDate]?e.tmpContentExcel[e.excelDate].accDiffLastPayTime:0)+" 天")])],1),t("el-row",[t("el-col",{attrs:{span:13}},[e._v("首次赔付时间与末次赔付时间平均值")]),t("el-col",{attrs:{span:7,offset:2}},[e._v(e._s(e.tmpContentExcel[e.excelDate]?e.tmpContentExcel[e.excelDate].firstDiffLastPayTime:0)+" 天")])],1)],1)])]),t("div",{staticClass:"regions_content clearfix"},[t("h3",[e._v("大额赔偿案件")]),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.bigAmountCaseRemind.loading,expression:"bigAmountCaseRemind.loading"}],staticClass:"regions-box regions-content_left fl"},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.bigAmountCaseRemind.showChart,expression:"bigAmountCaseRemind.showChart"}],staticClass:"chart_box",attrs:{id:"chart15"}}),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.bigAmountCaseRemind.showChart,expression:"!bigAmountCaseRemind.showChart"}],staticClass:"chart_box"},[t("p",{staticClass:"noneData"},[e._v("暂无数据")])])]),t("div",{staticClass:"regions-box regions-content_right fr clearfix"},[t("el-tabs",{on:{"tab-click":function(t){return e.handleClick(e.bigAmountCaseRemind)}},model:{value:e.bigAmountCaseRemind.activeName,callback:function(t){e.$set(e.bigAmountCaseRemind,"activeName",t)},expression:"bigAmountCaseRemind.activeName"}},[t("el-tab-pane",{attrs:{label:"异常点",name:"first"}}),t("el-tab-pane",{attrs:{label:"分析",name:"second"}}),t("el-tab-pane",{attrs:{label:"建议",name:"third"}})],1),t("div",{staticClass:"abnormal fl"},[t("div",{staticClass:"abnormal-txt"},[e.bigAmountCaseRemind.contentList.length>0?[e._l(e.bigAmountCaseRemind.contentList,(function(i,r){return[i.isNo?[i.caseNo.length>60?t("el-tooltip",{key:i.caseNo,attrs:{effect:"dark",placement:"top-start"}},[t("div",{staticStyle:{"max-width":"400px"},attrs:{slot:"content"},slot:"content"},[e._v(e._s(i.caseNo))]),t("div",{staticStyle:{"margin-top":"5px"}},[e._v(e._s(i.caseNo.slice(0,60)+"..."))])]):t("div",{key:i,staticStyle:{"margin-top":"5px"}},[e._v(e._s(i.caseNo))])]:t("p",{key:r,staticStyle:{"margin-top":"5px","line-height":"20px"},domProps:{innerHTML:e._s(i)}})]}))]:t("p",{staticStyle:{"text-align":"center"}},[e._v("暂无数据")])],2)])],1)])]),t("el-tab-pane",{attrs:{label:"重点骑手",name:"fourth"}},[t("div",{staticClass:"regions_content clearfix"},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.keyRidersRemind.loading,expression:"keyRidersRemind.loading"}],staticClass:"regions-box regions-content_left fl"},[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.keyRidersData,stripe:""}},[t("el-table-column",{attrs:{type:"index",width:"50"}}),t("el-table-column",{attrs:{prop:"itemName",label:"骑手ID",width:"180"}}),t("el-table-column",{attrs:{prop:"itemValue3",label:"合计赔付金额"}}),t("el-table-column",{attrs:{prop:"itemValue1",label:"报案数"}}),t("el-table-column",{attrs:{prop:"itemValue2",label:"赔付案件数"}})],1)],1),t("div",{staticClass:"regions-box regions-content_right fr clearfix"},[t("el-tabs",{on:{"tab-click":function(t){return e.handleClick(e.keyRidersRemind)}},model:{value:e.keyRidersRemind.activeName,callback:function(t){e.$set(e.keyRidersRemind,"activeName",t)},expression:"keyRidersRemind.activeName"}},[t("el-tab-pane",{attrs:{label:"异常点",name:"first"}}),t("el-tab-pane",{attrs:{label:"分析",name:"second"}}),t("el-tab-pane",{attrs:{label:"建议",name:"third"}})],1),t("div",{staticClass:"abnormal fl"},[t("div",{staticClass:"abnormal-txt"},[e.keyRidersRemind.contentList.length>0?[e._l(e.keyRidersRemind.contentList,(function(i,r){return[i.isNo?[i.caseNo.length>60?t("el-tooltip",{key:i.caseNo,attrs:{effect:"dark",placement:"top-start"}},[t("div",{staticStyle:{"max-width":"400px"},attrs:{slot:"content"},slot:"content"},[e._v(e._s(i.caseNo))]),t("div",{staticStyle:{"margin-top":"5px"}},[e._v(e._s(i.caseNo.slice(0,60)+"..."))])]):t("div",{key:i,staticStyle:{"margin-top":"5px"}},[e._v(e._s(i.caseNo))])]:t("p",{key:r,staticStyle:{"margin-top":"5px","line-height":"20px"},domProps:{innerHTML:e._s(i)}})]}))]:t("p",{staticStyle:{"text-align":"center"}},[e._v("暂无数据")])],2)])],1)])]),t("el-tab-pane",{attrs:{label:"重点包商",name:"fifth"}},[t("div",{staticClass:"regions-box regions-content_left fl"},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.keyContractorsRemind.loading,expression:"keyContractorsRemind.loading"}],staticStyle:{width:"100%"},attrs:{data:e.keyContractorsData,stripe:""}},[t("el-table-column",{attrs:{type:"index",width:"50"}}),t("el-table-column",{attrs:{prop:"itemName",label:"包商名称",width:"190"}}),t("el-table-column",{attrs:{prop:"itemValue3",label:"合计赔付金额"}}),t("el-table-column",{attrs:{prop:"itemValue1",label:"报案数"}}),t("el-table-column",{attrs:{prop:"itemValue2",label:"赔付案件数"}}),t("el-table-column",{attrs:{prop:"itemValue4",label:"件均赔款"}})],1)],1),t("div",{staticClass:"regions-box regions-content_right fr clearfix"},[t("el-tabs",{on:{"tab-click":function(t){return e.handleClick(e.keyContractorsRemind)}},model:{value:e.keyContractorsRemind.activeName,callback:function(t){e.$set(e.keyContractorsRemind,"activeName",t)},expression:"keyContractorsRemind.activeName"}},[t("el-tab-pane",{attrs:{label:"异常点",name:"first"}}),t("el-tab-pane",{attrs:{label:"分析",name:"second"}}),t("el-tab-pane",{attrs:{label:"建议",name:"third"}})],1),t("div",{staticClass:"abnormal fl"},[t("div",{staticClass:"abnormal-txt",staticStyle:{"max-height":"500px"}},[e.keyContractorsRemind.contentList.length>0?e._l(e.keyContractorsRemind.contentList,(function(i,r){return t("p",{key:r,staticStyle:{"margin-top":"5px","line-height":"20px"},domProps:{innerHTML:e._s(i)}})})):t("p",{staticStyle:{"text-align":"center"}},[e._v("暂无数据")])],2)])],1)])],1)],1)])},n=[],s=(i("f16c"),i("45d2"),i("8160"),i("ada4")),o={data(){return{searchForm:{endCaseCloseTime:"",insuranceType:1,regionName:"河北省",startCaseCloseTime:""},caseTotalData:{},keyRidersData:[],keyContractorsData:[],provinceOption:[],caseTotalRemined:{activeName:"first",contentList:[],errorList:[],abnormal:[],analysis:[],advocate:[],activeTxt:"",showChart:!1,loading:!0},monthlyAnalysisRemined:{activeName:"first",contentList:[],errorList:[],abnormal:[],analysis:[],advocate:[],activeTxt:"",showChart:!1},monthlyCancel:{activeName:"first",contentList:[],errorList:[],abnormal:[],analysis:[],advocate:[],activeTxt:"",showChart:!1},monthlyAnalysisRemind:{activeName:"first",contentList:[],errorList:[],abnormal:[],analysis:[],advocate:[],activeTxt:"",showChart:!1},cityAnalysisRemind:{activeName:"first",contentList:[],errorList:[],abnormal:[],analysis:[],advocate:[],activeTxt:"",showChart:!1},cityAnalysisAvgRemind:{activeName:"first",contentList:[],errorList:[],abnormal:[],analysis:[],advocate:[],activeTxt:"",showChart:!1},cityTopReportRemind1:{activeName:"first",contentList:[],errorList:[],abnormal:[],analysis:[],advocate:[],activeTxt:"",showChart:!1},cityTopReportRemind2:{activeName:"first",contentList:[],errorList:[],abnormal:[],analysis:[],advocate:[],activeTxt:"",showChart:!1},cityTopReportRemind3:{activeName:"first",contentList:[],errorList:[],abnormal:[],analysis:[],advocate:[],activeTxt:"",showChart:!1},bigAmountCaseRemind:{activeName:"first",contentList:[],errorList:[],abnormal:[],analysis:[],advocate:[],activeTxt:"",showChart:!1},keyRidersRemind:{activeName:"first",contentList:[],errorList:[],abnormal:[],analysis:[],advocate:[],activeTxt:"",showChart:!1},keyContractorsRemind:{activeName:"first",contentList:[],errorList:[],abnormal:[],analysis:[],advocate:[],activeTxt:"",showChart:!1},chart16Remind:{activeName:"first",contentList:[],errorList:[],abnormal:[],analysis:[],advocate:[],activeTxt:"",showChart:!1},datePickerVal:"",tabActive:"first",contentExcel:{},tmpContentExcel:{},excelOptions:[],excelDate:"",chart16Loading:!0,pickerOptions:{shortcuts:[{text:"本月",onClick(e){e.$emit("pick",[new Date,new Date])}},{text:"今年至今",onClick(e){const t=new Date,i=new Date((new Date).getFullYear(),0);e.$emit("pick",[i,t])}},{text:"最近六个月",onClick(e){const t=new Date,i=new Date;i.setMonth(i.getMonth()-6),e.$emit("pick",[i,t])}},{text:"最近一年",onClick(e){const t=new Date,i=new Date;i.setMonth(i.getMonth()-12),e.$emit("pick",[i,t])}}]},chart1:null,chart2:null,chart3:null,chart4:null,chart5:null,chart6:null,chart7:null,chart8:null,chart9:null,chart10:null,chart15:null,chart15:null}},mounted(){let e=new Date,t=new Date;t.setMonth(t.getMonth()-12),t=this.getNowFormatDate(t),e=this.getNowFormatDate(e),this.datePickerVal=[t,e],this.getProvince(),this.regionsInterface();let i=this;window.addEventListener("resize",(function(){i.chart1&&i.chart1.resize(),i.chart2&&i.chart2.resize(),i.chart3&&i.chart3.resize(),i.chart4&&i.chart4.resize(),i.chart5&&i.chart5.resize(),i.chart6&&i.chart6.resize(),i.chart7&&i.chart7.resize(),i.chart8&&i.chart8.resize(),i.chart9&&i.chart9.resize(),i.chart16&&i.chart16.resize(),i.chart10&&i.chart10.resize(),i.chart15&&i.chart15.resize()}))},methods:{getProvince(){this.instance.post("/regionalAnalysis/searchProvince",this.searchForm).then(e=>{let t=e.data;1==t.code&&(this.provinceOption=t.data)})},regionsInterface(){if(this.datePickerVal.length>0){this.searchForm.startCaseCloseTime=this.datePickerVal[0];let e=this.datePickerVal[1],t=this.getLastDate(this.datePickerVal[1]),i=e.slice(0,8);this.searchForm.endCaseCloseTime=i+t}this.caseTotalRemined.loading=!0,this.monthlyAnalysisRemined.loading=!0,this.monthlyCancel.loading=!0,this.monthlyAnalysisRemind.loading=!0,this.cityAnalysisRemind.loading=!0,this.cityAnalysisAvgRemind.loading=!0,this.cityTopReportRemind1.loading=!0,this.cityTopReportRemind2.loading=!0,this.cityTopReportRemind3.loading=!0,this.bigAmountCaseRemind.loading=!0,this.keyRidersRemind.loading=!0,this.keyContractorsRemind.loading=!0,this.getCaseTotalCount(),this.caseTotalMonthlyAnalysis(),this.monthlyCancelAnalysis(),this.monthlyAnalysis(),this.cityAnalysis(),this.cityTopReport(),this.cityTopTotal(),this.cityTopAvg(),this.cityAnalysisAvg(),this.longTailCase(),this.bigAmountCase(),this.keyRiders(),this.keyContractors()},getCaseTotalCount(){this.instance.post("/regionalAnalysis/caseTotalCount",this.searchForm).then(e=>{let t=e.data;1==t.code&&(this.caseTotalData=t.data.base,t.data.errorList&&t.data.errorList.length>0?this.caseTotalCountError(t.data.errorList):(this.caseTotalRemined.analysis=[],this.caseTotalRemined.advocate=[]),t.data.itemList.length>0?(this.caseTotalChart(t.data.itemList),this.caseTotalRemined.errorList=t.data.errorList,this.handleContent(this.caseTotalRemined),this.caseTotalRemined.showChart=!0):this.caseTotalRemined.showChart=!1),this.caseTotalRemined.loading=!1})},caseTotalCountError(e){this.searchForm.errorList=e,this.instance.post("/regionalAnalysis/caseTotalCountError",this.searchForm).then(e=>{let t=e.data;1==t.code&&t.data&&(this.caseTotalRemined.analysisVos=t.data.analysisVos,this.handleAnalysisVos(this.caseTotalRemined))})},caseTotalChart(e){let t=["报案量","结案量"],i=[],r=[],n=[];e.forEach(e=>{i.push(e.itemName),r.push(e.itemValue1),n.push(e.itemValue2)});let o={tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},legend:{data:t},xAxis:[{type:"category",data:i,axisPointer:{type:"shadow"}}],yAxis:[{type:"value",axisLabel:{formatter:"{value}"}}],series:[{name:"报案量",type:"bar",label:{show:!0,position:"top"},tooltip:{valueFormatter:function(e){return e}},data:r},{name:"结案量",type:"bar",label:{show:!0,position:"top"},tooltip:{valueFormatter:function(e){return e}},data:n}]},a=document.getElementById("chart1");a&&(this.chart1=s["init"](a),this.chart1.setOption(o),setTimeout(()=>{this.chart1.resize()},30))},caseTotalMonthlyAnalysis(){this.instance.post("/regionalAnalysis/caseTotalMonthlyAnalysis",this.searchForm).then(e=>{let t=e.data;1==t.code&&(t.data.errorList&&t.data.errorList.length>0?this.caseTotalMonthlyAnalysisError(t.data.errorList):(this.monthlyAnalysisRemined.analysis=[],this.monthlyAnalysisRemined.advocate=[]),t.data.itemList.length>0?(this.monthlyAnalysisChart(t.data.itemList),this.monthlyAnalysisRemined.errorList=t.data.errorList,this.handleContent(this.monthlyAnalysisRemined),this.monthlyAnalysisRemined.showChart=!0):this.monthlyAnalysisRemined.showChart=!1),this.monthlyAnalysisRemined.loading=!1})},caseTotalMonthlyAnalysisError(e){this.searchForm.errorList=e,this.instance.post("/regionalAnalysis/caseTotalMonthlyAnalysisError",this.searchForm).then(e=>{let t=e.data;1==t.code&&t.data&&(this.monthlyAnalysisRemined.analysisVos=t.data.analysisVos,this.handleAnalysisVos(this.monthlyAnalysisRemined))})},monthlyAnalysisChart(e){let t=["案件金额(元)","案均金额(元)"],i=[],r=[],n=[],o=[],a=[];e.forEach(e=>{i.push(e.itemName),r.push(e.itemValue3),n.push(e.itemValue1),o.push(e.itemValue2),a.push(e.itemValue4)});let l={tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},legend:{data:t},xAxis:[{type:"category",data:i,axisPointer:{type:"shadow"}}],yAxis:[{type:"value",name:"案件金额"},{type:"value",name:"案均金额",splitLine:{show:!1}}],series:[{name:"案件金额(元)",type:"bar",label:{show:!0,position:"top"},tooltip:{valueFormatter:function(e){return e}},data:r},{name:"案均金额(元)",type:"line",yAxisIndex:1,tooltip:{valueFormatter:function(e){return e}},data:a}]},c=document.getElementById("chart2");c&&(this.chart2=s["init"](c),this.chart2.setOption(l),setTimeout(()=>{this.chart2.resize()},30))},monthlyCancelAnalysis(){this.instance.post("/regionalAnalysis/monthlyCancelAnalysis",this.searchForm).then(e=>{let t=e.data;1==t.code&&(t.data.itemList.length>0?(this.monthlyCancelAnalysisChart(t.data.itemList),this.monthlyCancel.errorList=t.data.errorList,this.handleContent(this.monthlyCancel),this.monthlyCancel.showChart=!0):this.monthlyCancel.showChart=!1),this.monthlyCancel.loading=!1})},monthlyCancelAnalysisChart(e){let t=["零结案","注销案件"],i=[],r=[],n=[];e.forEach(e=>{i.push(e.itemName),r.push(e.itemValue1),n.push(e.itemValue2)});let o={tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},legend:{data:t},xAxis:[{type:"category",data:i,axisPointer:{type:"shadow"}}],yAxis:[{type:"value",axisLabel:{formatter:"{value}"}}],series:[{name:"零结案",type:"bar",label:{show:!0,position:"top"},tooltip:{valueFormatter:function(e){return e}},data:r},{name:"注销案件",type:"bar",label:{show:!0,position:"top"},tooltip:{valueFormatter:function(e){return e}},data:n}]},a=document.getElementById("chart3");a&&(this.chart3=s["init"](a),this.chart3.setOption(o),setTimeout(()=>{this.chart3.resize()},30))},monthlyAnalysis(){this.instance.post("/regionalAnalysis/monthlyAnalysis",this.searchForm).then(e=>{let t=e.data;1==t.code&&(t.data.errorList&&t.data.errorList.length>0?this.monthlyAnalysisError(t.data.errorList):(this.monthlyAnalysisRemind.analysis=[],this.monthlyAnalysisRemind.advocate=[]),t.data.itemList.length>0?(this.monthlyAnalysis5000Chart(t.data.itemList),this.monthlyAnalysisRemind.errorList=t.data.errorList,this.handleContent(this.monthlyAnalysisRemind),this.monthlyAnalysisRemind.showChart=!0):this.monthlyAnalysisRemind.showChart=!1),this.monthlyAnalysisRemind.loading=!1})},monthlyAnalysisError(e){this.searchForm.errorList=e,this.instance.post("/regionalAnalysis/monthlyAnalysisError",this.searchForm).then(e=>{let t=e.data;1==t.code&&t.data&&(this.monthlyAnalysisRemind.analysisVos=t.data.analysisVos,this.handleAnalysisVos(this.monthlyAnalysisRemind))})},monthlyAnalysis5000Chart(e){let t=["低于5000","高于5000"],i=[],r=[],n=[];e.forEach(e=>{i.push(e.itemName),r.push(e.itemValue1),n.push(e.itemValue2)});let o={tooltip:{trigger:"axis"},legend:{data:t},xAxis:[{type:"category",boundaryGap:!1,data:i}],yAxis:[{type:"value",name:"低于5000"},{type:"value",name:"高于5000",splitLine:{show:!1},minInterval:1,min:1,max:()=>n.length>0?Math.max(...n):1}],series:[{name:"低于5000",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:r},{name:"高于5000",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:n}]},a=document.getElementById("chart4");a&&(this.chart4=s["init"](a),this.chart4.setOption(o),setTimeout(()=>{this.chart4.resize()},30))},cityAnalysis(){this.instance.post("/regionalAnalysis/cityAnalysis",this.searchForm).then(e=>{let t=e.data;1==t.code&&(t.data.errorList&&t.data.errorList.length>0?this.cityAnalysisError(t.data.errorList):(this.cityAnalysisRemind.analysis=[],this.cityAnalysisRemind.advocate=[]),t.data.itemList.length>0?(this.cityAnalysisChart(t.data.itemList),this.cityAnalysisRemind.errorList=t.data.errorList,this.handleContent(this.cityAnalysisRemind),this.cityAnalysisRemind.showChart=!0):this.cityAnalysisRemind.showChart=!1),this.cityAnalysisRemind.loading=!1})},cityAnalysisError(e){this.searchForm.errorList=e,this.instance.post("/regionalAnalysis/cityAnalysisError",this.searchForm).then(e=>{let t=e.data;1==t.code&&t.data&&(this.cityAnalysisRemind.analysisVos=t.data.analysisVos,this.handleAnalysisVos(this.cityAnalysisRemind))})},longTailCase(){this.instance.post("/regionalAnalysis/longTailCase",this.searchForm).then(e=>{let t=e.data;1==t.code&&(this.excelOptions=[],t.data.length>0?(this.excelDate=t.data[0].itemName,this.longTailCaseChart(t.data),t.data.forEach(e=>{this.excelOptions.push(e.itemName),this.tmpContentExcel[e.itemName]=e}),this.chart16Remind.showChart=!0):this.chart16Remind.showChart=!1),this.chart16Loading=!1})},cityAnalysisChart(e){let t=["案件量","总赔款量(万元)"],i=[],r=[],n=[];e.sort((e,t)=>e.itemValue1-t.itemValue1),e.forEach(e=>{i.push(e.itemName),r.push(e.itemValue1),n.push((e.itemValue3/1e4).toFixed(2))});let o={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{data:t},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"value",boundaryGap:[0,.01]},yAxis:{type:"category",data:i},series:[{name:"案件量",type:"bar",itemStyle:{normal:{label:{show:!0,position:"right"}}},data:r},{type:"bar",name:"总赔款量(万元)",showSymbol:!1,data:n}]},a=document.getElementById("chart5");a&&(this.chart5=s["init"](a),this.chart5.setOption(o),setTimeout(()=>{this.chart5.resize()},30))},longTailCaseChart(e){let t=["案件量","双零案件量"],i=[],r=[],n=[];e.forEach(e=>{i.push(e.itemName),r.push(e.caseNum),n.push(e.zeroCaseNum)});let o={tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},legend:{data:t},xAxis:[{type:"category",data:i,axisPointer:{type:"shadow"}}],yAxis:[{type:"value",axisLabel:{formatter:"{value}"}}],series:[{name:"案件量",type:"bar",label:{show:!0,position:"top"},tooltip:{valueFormatter:function(e){return e}},data:r},{name:"双零案件量",type:"bar",label:{show:!0,position:"top"},tooltip:{valueFormatter:function(e){return e}},data:n}]},a=document.getElementById("chart16");a&&(this.chart16=s["init"](a),this.chart16.setOption(o),setTimeout(()=>{this.chart16.resize()},30))},cityTopReport(){this.instance.post("/regionalAnalysis/cityTopReport",this.searchForm).then(e=>{let t=e.data;1==t.code&&(t.data.length>0?(this.cityTopReportChart(t.data),this.cityTopReportRemind1.errorList=t.data.errorList,this.handleContent(this.cityTopReportRemind1),this.cityTopReportRemind1.showChart=!0):this.cityTopReportRemind1.showChart=!1),this.cityTopReportRemind1.loading=!1})},cityAnalysisAvg(){this.instance.post("/regionalAnalysis/cityAnalysisAvg",this.searchForm).then(e=>{let t=e.data;1==t.code&&(t.data.errorList&&t.data.errorList.length>0?this.cityAnalysisAvgError(t.data.errorList):(this.cityAnalysisAvgRemind.analysis=[],this.cityAnalysisAvgRemind.advocate=[]),t.data.itemList.length>0?(this.cityAnalysisAvgChart(t.data.itemList,t.data.base),this.cityAnalysisAvgRemind.errorList=t.data.errorList,this.handleContent(this.cityAnalysisAvgRemind),this.cityAnalysisAvgRemind.showChart=!0):this.cityAnalysisAvgRemind.showChart=!1),this.cityAnalysisAvgRemind.loading=!1})},cityAnalysisAvgError(e){this.searchForm.errorList=e,this.instance.post("/regionalAnalysis/cityAnalysisAvgError",this.searchForm).then(e=>{let t=e.data;1==t.code&&t.data&&(this.cityAnalysisAvgRemind.analysisVos=t.data.analysisVos,this.handleAnalysisVos(this.cityAnalysisAvgRemind))})},cityAnalysisAvgChart(e,t){let i=["案均赔款(元)",{name:"全省均线",lineStyle:{type:"dotted",width:3,color:"#67C23A"}},{name:"全国均线",lineStyle:{type:"dotted",width:3,color:"red"}}],r=[],n=[],o=[],a=[],l=t.itemValue4,c=t.otherValue;e.sort((e,t)=>e.itemValue4-t.itemValue4),e.forEach((e,t)=>{r.push(e.itemName),n.push(e.itemValue4),o.push(0),a.push(0)});let u={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},color:["rgb(84,112,198)","#67C23A","red"],legend:{data:i},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"value",boundaryGap:[0,.01]},yAxis:{type:"category",data:r},series:[{name:"案均赔款(元)",type:"bar",itemStyle:{normal:{label:{show:!0,position:"right"}}},markLine:{symbol:"none",data:[{type:"average",name:"全省均线",xAxis:l,lineStyle:{normal:{color:"#67C23A"}},label:{textStyle:{color:"#fff"}}},{type:"average",name:"全国均线",xAxis:c,lineStyle:{normal:{color:"red"}},label:{textStyle:{color:"#fff"}}}]},data:n},{type:"line",name:"全省均线",showSymbol:!1,data:[]},{type:"line",name:"全国均线",showSymbol:!1,data:[]}]},d=document.getElementById("chart6");d&&(this.chart6=s["init"](d),this.chart6.setOption(u),setTimeout(()=>{this.chart6.resize()},30))},cityTopReportChart(e){let t=[],i=[],r={data1:[],data2:[],data3:[]};e.forEach((e,n)=>{t.push(e.cityName),e.itemList&&e.itemList.length>0&&(i=[],e.itemList.forEach(e=>{i.push(e.itemName),r["data"+(n+1)].push(e.itemValue1)}))});let n={tooltip:{trigger:"axis"},legend:{data:t},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:i},yAxis:{type:"value"},series:[{name:t[0],type:"line",stack:"Total",data:r.data1},{name:t[1],type:"line",stack:"Total",data:r.data2},{name:t[2],type:"line",stack:"Total",data:r.data3}]},o=document.getElementById("chart7");o&&(this.chart7=s["init"](o),this.chart7.setOption(n),setTimeout(()=>{this.chart7.resize()},30))},cityTopTotal(){this.instance.post("/regionalAnalysis/cityTopTotal",this.searchForm).then(e=>{let t=e.data;1==t.code&&(t.data.length>0?(this.cityTopTotalChart(t.data),this.cityTopReportRemind2.errorList=t.data.errorList,this.handleContent(this.cityTopReportRemind2),this.cityTopReportRemind2.showChart=!0):this.cityTopReportRemind2.showChart=!1),this.cityTopReportRemind2.loading=!1})},cityTopTotalChart(e){let t=[],i=[],r={data1:[],data2:[],data3:[]};e.forEach((e,n)=>{t.push(e.cityName),e.itemList&&e.itemList.length>0&&(i=[],e.itemList.forEach(e=>{i.push(e.itemName),r["data"+(n+1)].push(e.itemValue1)}))});let n={tooltip:{trigger:"axis"},legend:{data:t},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:i},yAxis:{type:"value"},series:[{name:t[0],type:"line",stack:"Total",data:r.data1},{name:t[1],type:"line",stack:"Total",data:r.data2},{name:t[2],type:"line",stack:"Total",data:r.data3}]},o=document.getElementById("chart8");o&&(this.chart8=s["init"](o),this.chart8.setOption(n),setTimeout(()=>{this.chart8.resize()},30))},cityTopAvg(){this.instance.post("/regionalAnalysis/cityTopAvg",this.searchForm).then(e=>{let t=e.data;1==t.code&&(t.data.length>0?(this.cityTopAvgChart(t.data),this.cityTopReportRemind3.errorList=t.data.errorList,this.handleContent(this.cityTopReportRemind3),this.cityTopReportRemind3.showChart=!0):this.cityTopReportRemind3.showChart=!1),this.cityTopReportRemind3.loading=!1})},cityTopAvgChart(e){let t=[],i=[],r={data1:[],data2:[],data3:[]};e.forEach((e,n)=>{t.push(e.cityName),e.itemList&&e.itemList.length>0&&(i=[],e.itemList.forEach(e=>{i.push(e.itemName),r["data"+(n+1)].push(e.itemValue1)}))});let n={tooltip:{trigger:"axis"},legend:{data:t},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:i},yAxis:{type:"value"},series:[{name:t[0],type:"line",stack:"Total",data:r.data1},{name:t[1],type:"line",stack:"Total",data:r.data2},{name:t[2],type:"line",stack:"Total",data:r.data3}]},o=document.getElementById("chart9");o&&(this.chart9=s["init"](o),this.chart9.setOption(n),setTimeout(()=>{this.chart9.resize()},30))},totalCityAnalysis(){},bigAmountCase(){this.instance.post("/regionalAnalysis/bigAmountCase",this.searchForm).then(e=>{let t=e.data;1==t.code&&(t.data.itemList.length>0?(this.bigAmountCaseChart(t.data.itemList),this.bigAmountCaseRemind.errorList=t.data.errorList,this.handleContent(this.bigAmountCaseRemind),this.bigAmountCaseRemind.showChart=!0):this.bigAmountCaseRemind.showChart=!1),this.bigAmountCaseRemind.loading=!1})},bigAmountCaseChart(e){let t=["案件量(起)","案件金额(元)"],i=[],r=[],n=[];e.forEach(e=>{i.push(e.itemName),r.push(e.itemValue1),n.push(e.itemValue3)});let o={tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},legend:{data:t},xAxis:[{type:"category",data:i,axisPointer:{type:"shadow"}}],yAxis:[{type:"value",name:"案件量(起)",min:0,max:250,interval:50},{type:"value",name:"案件金额(元)",splitLine:{show:!1},min:0,max:()=>n.length>0?Math.max(...n):1}],series:[{name:"案件量(起)",type:"bar",data:r},{name:"案件金额(元)",type:"line",label:{show:!0,position:"top"},yAxisIndex:1,data:n}]},a=document.getElementById("chart15");a&&(this.chart15=s["init"](a),this.chart15.setOption(o),setTimeout(()=>{this.chart15.resize()},30))},keyRiders(){this.instance.post("/regionalAnalysis/keyRiders",this.searchForm).then(e=>{let t=e.data;1==t.code&&(this.keyRidersData=t.data.itemList,this.keyRidersRemind.errorList=t.data.errorList,this.handleContent(this.keyRidersRemind)),this.keyRidersRemind.loading=!1})},keyContractors(){this.instance.post("/regionalAnalysis/keyContractors",this.searchForm).then(e=>{let t=e.data;1==t.code&&(this.keyContractorsData=t.data.itemList,this.keyContractorsRemind.errorList=t.data.errorList,this.handleContent(this.keyContractorsRemind)),this.keyContractorsRemind.loading=!1})},handleContent(e){e&&e.errorList&&e.errorList.length>0&&(e.abnormal=[],e.errorList.forEach(t=>{t.errorMsg&&e.abnormal.push(t.errorMsg.replace(/\n|\r\n/g,"
").replace(/ /g,"  ")),t.errorList&&t.errorList.length>0&&t.errorList.forEach(t=>{e.abnormal.push(t)})}),this.handleClick(e))},handleAnalysisVos(e){e&&e.analysisVos&&e.analysisVos.length>0&&(e.analysis=[],e.advocate=[],e.analysisVos.forEach(t=>{t.isShow&&t.infoList.forEach(i=>{e.analysis.push(t.itemName+" "+i.msg.replace(/\n|\r\n/g,"
").replace(/ /g,"  ")),e.advocate.push(t.itemName+" "+i.recommend.replace(/\n|\r\n/g,"
").replace(/ /g,"  ")),i.listInfo.length>0&&(e.analysis.push("案件号:"),i.listInfo.forEach((t,r)=>{e.analysis.push({caseNo:t,isNo:!0}),r==i.listInfo.length-1&&e.analysis.push('
')}))})}))},handleClick(e){switch(e.activeName){case"second":e.contentList=e.analysis;break;case"third":e.contentList=e.advocate;break;default:e.contentList=e.abnormal;break}},tabsClick(){switch(this.tabActive){case"first":setTimeout(()=>{this.chart1&&this.chart1.resize(),this.chart2&&this.chart2.resize(),this.chart3&&this.chart3.resize(),this.chart4&&this.chart4.resize()},20);break;case"second":setTimeout(()=>{this.chart5&&this.chart5.resize(),this.chart6&&this.chart6.resize(),this.chart7&&this.chart7.resize(),this.chart8&&this.chart8.resize(),this.chart9&&this.chart9.resize()},20);break;case"third":setTimeout(()=>{this.chart16&&this.chart16.resize(),this.chart10&&this.chart10.resize(),this.chart15&&this.chart15.resize()},20);break;case"fourth":break;default:break}},getNowFormatDate(e){e=e;var t="-",i=e.getFullYear(),r=e.getMonth()+1,n=e.getDate();r>=1&&r<=9&&(r="0"+r),n>=0&&n<=9&&(n="0"+n);var s=i+t+r+t+n;return s},getLastDate(e){let t=new Date(e),i=new Date(t.getFullYear(),t.getMonth()+1,0);return i.getDate()}}},a=o,l=(i("f9a0"),i("1805")),c=Object(l["a"])(a,r,n,!1,null,"03a847a0",null);t["default"]=c.exports},"7b82":function(e,t,i){},"7c3f":function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],class:"1"==e.echartsType?"module_wrap box_border":"module_wrap module_wrap2 box_border",attrs:{"element-loading-text":"数据加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"transparent"}},[t("div",{staticClass:"box_title box_title_radio"},[t("span",[e._v("分包商风险案件"+e._s("1"==e.echartsType?"":"占比")+"排行榜")]),1==e.echartsType?t("div",{staticClass:"radio_group"},[t("el-radio-group",{attrs:{size:"mini"},on:{change:e.radioChange},model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[t("el-radio-button",{attrs:{label:"数量"}}),t("el-radio-button",{attrs:{label:"金额"}})],1)],1):e._e()]),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.loading,expression:"!loading"}],staticStyle:{height:"100%"}},[1==e.echartsType?t("div",{attrs:{id:"risk_case_bar"}}):t("div",{attrs:{id:"risk_case_bar2"}})])])},n=[],s=(i("f16c"),i("45d2"),i("8160"),i("ada4")),o={name:"RiskCase",props:{isCollapse:{type:Boolean,default:!0},navForm:{type:Object,default:{}},echartsType:{type:String,default:""}},watch:{isCollapse(){setTimeout(()=>{this.myChart&&this.myChart.resize()},600)},navForm:{deep:!0,handler(e){this.getData()}}},data(){return{loading:!0,topDays:[],radio:"数量",newNumber:0,xAxisData1:[],xAxisData2:[],sumSeriesData1:[],sumSeriesData2:[],numSeriesData1:[],numSeriesData2:[],option:"",myChart:null}},mounted(){this.role=localStorage.getItem("role"),window.addEventListener("resize",()=>{this.myChart&&this.myChart.resize()}),window.onresize=()=>{this.myChart.resize()}},methods:{getData(){if(this.echartsType){this.loading=!0;let e=null;switch(this.echartsType){case"1":e="/large/data/screen/getSubcontractorCasesNumTopTen";break;case"2":e="/large/data/screen/getSubcontractorCasesRatioTopTen";break;default:break}e&&this.instance({method:"post",url:e,data:this.navForm,headers:{"Content-Type":"application/json;charset=UTF-8"}}).then(e=>{if(this.loading=!1,1==e.data.code){let t=e.data.data;"1"==this.echartsType?this.loadCharts(t):this.loadCharts2(t)}})}},radioChange(){this.option&&("数量"==this.radio?(this.option.xAxis[0].data=this.xAxisData1,this.option.series[0].data=this.numSeriesData1,this.option.series[1].data=this.numSeriesData2):(this.option.xAxis[0].data=this.xAxisData2,this.option.series[0].data=this.sumSeriesData1,this.option.series[1].data=this.sumSeriesData2),setTimeout(()=>{this.myChart.setOption(this.option)},100))},loadCharts(e){var t=document.getElementById("risk_case_bar");t&&(this.myChart=s["init"](t,null,{renderer:"svg"}),this.xAxisData1=[],this.sumSeriesData1=[],this.sumSeriesData2=[],this.xAxisData2=[],this.numSeriesData1=[],this.numSeriesData2=[],e&&e.caseRiskNum.forEach((e,t)=>{this.xAxisData1.push(e.name),this.numSeriesData1.push(e.caseNum),this.numSeriesData2.push((e.totalPayAmount/1e4).toFixed(2))}),e&&e.caseRiskMoney&&e.caseRiskMoney.length>0&&e.caseRiskMoney.forEach((e,t)=>{this.xAxisData2.push(e.name),this.sumSeriesData1.push(e.caseNum),this.sumSeriesData2.push((e.totalPayAmount/1e4).toFixed(2))}),this.option={color:["#96b4d8","#09d5d6"],color:1==this.echartsType?["#F9AB8E","#B4FF86"]:["#96b4d8","#09d5d6"],tooltip:{trigger:"axis",confine:!0,textStyle:{align:"left"}},grid:{top:"5",left:"10",right:"10",bottom:"15",containLabel:!0},legend:{data:["案件数量","赔款金额"],itemWidth:12,itemHeight:12,textStyle:{color:"#fff"},left:"center"},xAxis:[{type:"category",data:this.xAxisData1,axisPointer:{type:"shadow"},axisLabel:{showMaxLabel:!0,rotate:50,textStyle:{color:"#fff"},width:60,overflow:"truncate",ellipsis:"..."},axisTick:{alignWithLabel:!0}}],yAxis:[{type:"value",axisLabel:{showMaxLabel:!0,formatter:"{value} 件",textStyle:{color:"#fff"}},splitLine:{show:!1},axisTick:{show:!1}},{type:"value",axisLabel:{showMaxLabel:!0,formatter:"{value} 万",textStyle:{color:"#fff"}},splitLine:{show:!1},axisTick:{show:!1}}],series:[{name:"案件数量",type:"bar",tooltip:{valueFormatter:function(e){return e+" 件"}},data:this.numSeriesData1},{name:"赔款金额",type:"line",yAxisIndex:1,tooltip:{valueFormatter:function(e){return e+" 万元"}},smooth:!0,showSymbol:!1,data:this.numSeriesData2}]},this.myChart.setOption(this.option))},loadCharts2(e){var t=document.getElementById("risk_case_bar2");t&&(this.myChart=s["init"](t,null,{renderer:"svg"}),this.xAxisData1=[],this.sumSeriesData1=[],this.numSeriesData1=[],e&&e.caseRiskNum.forEach((e,t)=>{this.xAxisData1.push(e.name),this.numSeriesData1.push(e.caseNumRatio)}),this.option={color:["#96b4d8","#09d5d6"],tooltip:{trigger:"axis",confine:!0,textStyle:{align:"left"}},grid:{top:30,left:"10",right:"10",bottom:"15",containLabel:!0},legend:{data:[""],itemWidth:12,itemHeight:12,textStyle:{color:"#fff"},left:"center"},xAxis:[{type:"category",data:this.xAxisData1,axisPointer:{type:"shadow"},axisLabel:{showMaxLabel:!0,rotate:50,textStyle:{color:"#fff"},width:60,overflow:"truncate",ellipsis:"..."},axisTick:{alignWithLabel:!0}}],yAxis:[{type:"value",axisLabel:{showMaxLabel:!0,formatter:"{value} %",textStyle:{color:"#fff"}},splitLine:{show:!1},axisTick:{show:!1}}],series:[{name:"案件数量占比",type:"bar",tooltip:{valueFormatter:function(e){return e+" %"}},data:this.numSeriesData1}]},this.myChart.setOption(this.option))}},updated(){this.myChart&&this.myChart.resize()}},a=o,l=(i("eb72"),i("1805")),c=Object(l["a"])(a,r,n,!1,null,"524d4d40",null);t["default"]=c.exports},"7f69":function(e,t,i){"use strict";var r=i("8a19"),n=i("0273"),s=i("1ee3"),o=i("79b7"),a=TypeError,l="Reduce of empty array with no initial value",c=function(e){return function(t,i,c,u){var d=n(t),h=s(d),p=o(d);if(r(i),0===p&&c<2)throw new a(l);var f=e?p-1:0,m=e?-1:1;if(c<2)while(1){if(f in h){u=h[f],f+=m;break}if(f+=m,e?f<0:p<=f)throw new a(l)}for(;e?f>=0:p>f;f+=m)f in h&&(u=i(u,h[f],f,d));return u}};e.exports={left:c(!1),right:c(!0)}},"847e":function(e,t,i){},"84ae":function(e,t,i){"use strict";var r=i("44fd"),n=i("5f9c"),s=i("ad09"),o=i("1e56"),a=URLSearchParams,l=a.prototype,c=n(l.getAll),u=n(l.has),d=new a("a=1");!d.has("a",2)&&d.has("a",void 0)||r(l,"has",(function(e){var t=arguments.length,i=t<2?void 0:arguments[1];if(t&&void 0===i)return u(this,e);var r=c(this,e);o(t,1);var n=s(i),a=0;while(a{this.myChart&&this.myChart.resize()},1e3)},navForm:{deep:!0,handler(e){this.getData()}}},data(){return{topDays:[],newNumber:0,myChart:"",loading:!0}},mounted(){this.role=localStorage.getItem("role"),window.addEventListener("resize",()=>{this.myChart&&setTimeout(()=>{this.myChart.resize()},500)})},methods:{getData(){this.loading=!0,this.instance({method:"post",url:"/large/data/screen/getLast7DayCaseNum",data:this.navForm,headers:{"Content-Type":"application/json;charset=UTF-8"}}).then(e=>{if(this.loading=!1,1==e.data.code){let t=e.data.data;t.length>0&&this.loadCharts(t)}})},loadCharts(e){var t=document.getElementById("processing_time_bar1");if(!t)return;this.myChart=s["init"](t,null,{renderer:"svg"});let i=[],r=[],n=[];e.forEach((e,t)=>{i.push(e.name),r.push(e.caseNum),n.push(e.totalCaseNum)});var o={color:["#1BC0C4","#E461A2"],tooltip:{trigger:"axis",confine:!0,textStyle:{align:"left"}},grid:{left:"20px",right:"5px",top:"30px",bottom:"0%",containLabel:!0},xAxis:[{type:"category",data:i,axisPointer:{type:"shadow"},axisLabel:{showMaxLabel:!0,rotate:30,textStyle:{color:"#fff"}},axisTick:{alignWithLabel:!0}}],yAxis:[{type:"value",axisLabel:{showMaxLabel:!0,formatter:"{value}",textStyle:{color:"#fff"}},splitLine:{show:!1},axisTick:{show:!1}}],legend:{textStyle:{color:"#fff"}},color:["#1BC0C4","#E461A2"],series:[{name:"报案量",type:"bar",tooltip:{valueFormatter:function(e){return e+"件"}},data:r},{name:"结案量",type:"bar",tooltip:{valueFormatter:function(e){return e+"件"}},data:n}]};this.myChart.setOption(o)}},updated(){this.myChart&&this.myChart.resize()}},a=o,l=(i("adb0"),i("1805")),c=Object(l["a"])(a,r,n,!1,null,"b9dd1476",null);t["default"]=c.exports},"8e85":function(e,t,i){"use strict";i("e75c")},9033:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"iframe-box"},[t("div",{staticClass:"zhegai"}),e.iframeSrc.length>=0?t("iframe",{style:"height:"+e.resizeHeight,attrs:{id:"iframe1",src:e.iframeSrc,frameborder:"0"}}):e._e()])},n=[],s={data(){return{testNum:0,iframeSrc:"",resizeHeight:"653"}},mounted(){this.getDashboard(),this.resizeHeight=window.innerHeight-10+"px",window.onresize=()=>{this.resizeHeight=window.innerHeight-10+"px"}},methods:{testIframe(){this.testNum++,this.testNum>5&&(this.iframeSrc="http://jiaanantest.platform.sigreal.cn/staging/workManage?t=123",setTimeout(()=>{const e=document.getElementById("iframe1"),t=e.contentWindow,i=t.document,r=i.getElementById("pageTitle");r.innerHTML="Hello World!",r.style.color="red"},5e3))},getDashboard(){this.instance.get("/metabase/getDashboard/6",{params:{}}).then(e=>{let t=e.data;1==t.code&&(this.iframeSrc=t.data)})}}},o=s,a=(i("5de3"),i("1805")),l=Object(a["a"])(o,r,n,!1,null,null,null);t["default"]=l.exports},9142:function(e,t,i){},"96b4":function(e,t,i){"use strict";var r,n=new Uint8Array(16);function s(){if(!r&&(r="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(n)}var o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function a(e){return"string"===typeof e&&o.test(e)}for(var l=a,c=[],u=0;u<256;++u)c.push((u+256).toString(16).substr(1));function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!l(i))throw TypeError("Stringified UUID is invalid");return i}var h=d;function p(e,t,i){e=e||{};var r=e.random||(e.rng||s)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){i=i||0;for(var n=0;n<16;++n)t[i+n]=r[n];return t}return h(r)}t["a"]=p},"999c":function(e,t,i){},"9ac4":function(e,t,i){"use strict";i("bc27")},"9add":function(e,t,i){"use strict";var r=i("b7d7"),n=i("7f69").left,s=i("c9ec"),o=i("20a3"),a=i("c0ae"),l=!a&&o>79&&o<83,c=l||!s("reduce");r({target:"Array",proto:!0,forced:c},{reduce:function(e){var t=arguments.length;return n(this,e,t,t>1?arguments[1]:void 0)}})},"9cd9":function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"module_wrap box_border",attrs:{"element-loading-text":"数据加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"transparent"}},[t("div",{staticClass:"box_title box_title_radio"},[t("span",[e._v("风险案件数量&金额统计")]),t("div",{staticClass:"radio_group"},[t("el-radio-group",{attrs:{size:"mini"},on:{change:e.radioChange},model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[t("el-radio-button",{attrs:{label:"数量"}}),t("el-radio-button",{attrs:{label:"金额"}})],1)],1)]),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.loading,expression:"!loading"}],staticStyle:{height:"100%"}},[t("div",{attrs:{id:"risk_number_amount_pie"}})])])},n=[],s=(i("f16c"),i("45d2"),i("8160"),i("ada4")),o={name:"RiskNumberAmount",props:{isCollapse:{type:Boolean,default:!0},navForm:{type:Object,default:{}}},watch:{isCollapse(){setTimeout(()=>{this.myChart&&this.myChart.resize()},600)},navForm:{deep:!0,handler(e){this.province=e.accidentProvince,this.getData()}}},data(){return{radio:"数量",topDays:[],newNumber:0,seriesDataNum:[],seriesDataSum:[],yAxisDataNum:[],yAxisDataSum:[],maxDataNum:[],maxDataSum:[],myChart:"",option:"",loading:!0}},mounted(){this.role=localStorage.getItem("role"),this.getData(),window.addEventListener("resize",()=>{this.myChart&&setTimeout(()=>{this.myChart.resize()},500)})},methods:{getData(){this.loading=!0,this.instance({method:"post",url:"/large/data/screen/caseRiskNumVo",data:this.navForm,headers:{"Content-Type":"application/json;charset=UTF-8"}}).then(e=>{if(this.loading=!1,1==e.data.code){this.radio="数量";let t=e.data.data;this.loadCharts(t)}})},radioChange(){"数量"==this.radio?(this.option.series.forEach((e,t)=>{e.data=this.seriesDataNum,e.symbolBoundingData=this.maxDataNum}),this.option.yAxis.data=this.yAxisDataNum,this.option.xAxis.max=this.maxDataNum,this.option.tooltip.formatter="{b}: {c}件"):(this.option.series.forEach((e,t)=>{e.data=this.seriesDataSum,e.symbolBoundingData=this.maxDataSum}),this.option.yAxis.data=this.yAxisDataSum,this.option.xAxis.max=this.maxDataSum,this.option.tooltip.formatter="{b}: {c}元"),setTimeout(()=>{this.myChart.setOption(this.option)},100)},loadCharts(e){var t=document.getElementById("risk_number_amount_pie");if(t){this.myChart=s["init"](t,null,{renderer:"svg"}),this.seriesDataNum=[],this.seriesDataSum=[],this.yAxisDataNum=[],this.yAxisDataSum=[],e.caseRiskNum.forEach((e,t)=>{this.seriesDataNum.push(e.caseNum),this.yAxisDataNum.push(e.name)}),e.caseRiskMoney.forEach((e,t)=>{this.seriesDataSum.push(e.caseNumRatio),this.yAxisDataSum.push(e.name)}),this.maxDataNum=e.caseRiskNum[0].caseNum,this.maxDataSum=e.caseRiskMoney[0].caseNumRatio;this.option={tooltip:{formatter:"{b}: {c}件"},xAxis:{max:this.maxDataNum,splitLine:{show:!1},offset:10,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{show:!1}},yAxis:{data:this.yAxisDataNum,inverse:!0,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{margin:10,textStyle:{color:"#fff"}}},grid:{top:20,left:"5",right:"90",bottom:"20",containLabel:!0},series:[{name:"",type:"pictorialBar",symbol:"reat",symbolOffset:["-1%",0],symbolSize:["102%",16],itemStyle:{normal:{color:"#184D48"}},z:-180,symbolRepeat:null,symbolBoundingData:this.maxDataNum,data:this.seriesDataNum},{name:"",type:"pictorialBar",symbol:"reat",symbolOffset:["-0.5%",0],symbolSize:["101%",14],itemStyle:{normal:{color:"black"}},z:-20,symbolRepeat:null,symbolBoundingData:this.maxDataNum,data:this.seriesDataNum},{type:"pictorialBar",symbol:"rect",itemStyle:{normal:{barBorderRadius:5,color:"#37DACC"}},symbolRepeat:"fixed",symbolMargin:"5%",symbolClip:!0,symbolSize:12,symbolBoundingData:this.maxDataNum,data:this.seriesDataNum,z:99999999},{type:"pictorialBar",itemStyle:{normal:{color:"#184D48"}},label:{show:!0,position:"right",offset:[6,0],textStyle:{color:"darkorange"}},symbolRepeat:"fixed",symbolMargin:"5%",symbol:"rect",symbolSize:12,symbolBoundingData:this.maxDataNum,data:this.seriesDataNum,z:99999}]},this.myChart.setOption(this.option)}}},updated(){this.myChart&&this.myChart.resize()}},a=o,l=(i("045a"),i("1805")),c=Object(l["a"])(a,r,n,!1,null,"179b3e09",null);t["default"]=c.exports},"9e4b":function(e,t,i){"use strict";i("2014")},a06b:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"module_wrap box_border",attrs:{"element-loading-text":"数据加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"transparent"}},[t("div",{staticClass:"box_title"},[e._v("案件风险等级近七日变换趋势")]),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.loading,expression:"!loading"}],staticStyle:{height:"55%"}},[t("div",{attrs:{id:"risk_grade_bar"}})])])},n=[],s=(i("f16c"),i("45d2"),i("8160"),i("ada4")),o={name:"RiskGrade",props:{isCollapse:{type:Boolean,default:!0},navForm:{type:Object,default:{}}},watch:{isCollapse(){setTimeout(()=>{this.myChart&&this.myChart.resize()},600)},navForm:{deep:!0,handler(e){this.province=e.accidentProvince,this.getData()}}},data(){return{topDays:[],newNumber:0,myChart:"",loading:!0}},mounted(){this.role=localStorage.getItem("role"),this.getData(),window.addEventListener("resize",()=>{this.myChart&&setTimeout(()=>{this.myChart.resize()},500)})},methods:{getData(){this.loading=!0,this.instance({method:"post",url:"/large/data/screen/caseLevelDayNumVo",data:this.navForm,headers:{"Content-Type":"application/json;charset=UTF-8"}}).then(e=>{if(this.loading=!1,1==e.data.code){let t=e.data.data;t.length>0&&this.loadCharts(t)}})},loadCharts(e){var t=document.getElementById("risk_grade_bar");if(!t)return;this.myChart=s["init"](t,null,{renderer:"svg"});let i=[],r=[],n=[];e.forEach((e,t)=>{i.push(e.dayTime),r.push(e.caseNum),n.push(e.caseReduceNum)});var o={color:["#E8A5B1","#F95C8B"],tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}},textStyle:{align:"left"}},grid:{top:"20",left:"10",right:"10",bottom:"5",containLabel:!0},legend:{data:["风险案件数","风险案件总数"],itemWidth:12,itemHeight:12,itemGap:20,textStyle:{color:"#fff"},left:"center"},xAxis:[{type:"category",data:i,axisPointer:{type:"shadow"},axisLabel:{showMaxLabel:!0,textStyle:{color:"#fff"}},axisTick:{alignWithLabel:!0}}],yAxis:[{type:"value",axisLabel:{showMaxLabel:!0,formatter:"{value} 件",textStyle:{color:"#fff"}},splitLine:{show:!1},axisTick:{show:!1}},{type:"value",axisLabel:{showMaxLabel:!0,formatter:"{value} 件",textStyle:{color:"#fff"}},splitLine:{show:!1},axisTick:{show:!1}}],series:[{name:"风险案件总数",type:"bar",tooltip:{valueFormatter:function(e){return e+" 件"}},data:r},{name:"风险案件数",type:"line",yAxisIndex:1,tooltip:{valueFormatter:function(e){return e+" 件"}},smooth:!0,showSymbol:!1,areaStyle:{color:new s["graphic"].LinearGradient(0,0,0,1,[{offset:0,color:"#1faf8c"},{offset:1,color:"#165d59"}])},data:n}]};this.myChart.setOption(o)}},updated(){this.myChart&&this.myChart.resize()}},a=o,l=(i("4c9c"),i("1805")),c=Object(l["a"])(a,r,n,!1,null,"1accc418",null);t["default"]=c.exports},a533:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"wrap"},[e._m(0),t("div",{staticClass:"search_box public_box"},[t("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.navForm}},[t("div",{staticClass:"flex"},[t("div",[t("el-form-item",{staticStyle:{"margin-right":"0.8rem"}},[t("el-upload",{staticClass:"upload_box",attrs:{accept:".xls,.xlsx",action:e.baseURL+"/case/importCaseExcel","show-file-list":!0,headers:e.unloaderHeader,limit:1,"on-remove":e.handleRemove,"on-success":e.handleAvatarSuccess,"before-upload":e.beforeAvatarUpload}},[[t("el-button",{attrs:{type:"primary"}},[t("i",{staticClass:"el-icon-upload el-icon--left"}),e._v("上传案件")])]],2)],1),t("el-form-item",[t("span",{staticClass:"hint_text"},[e._v("(若无批量案件上传,可按条件查询)")])]),t("br"),t("el-form-item",{attrs:{label:"事故省:"}},[t("el-select",{staticClass:"width_150",attrs:{placeholder:"请选择"},model:{value:e.navForm.accidentProvince,callback:function(t){e.$set(e.navForm,"accidentProvince",t)},expression:"navForm.accidentProvince"}},e._l(e.provinceOptions,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1),t("el-form-item",{attrs:{label:"公估公司:"}},[t("el-input",{staticClass:"width_150",attrs:{placeholder:"请填写公估公司",clearable:""},model:{value:e.navForm.lossAdjusterCompany,callback:function(t){e.$set(e.navForm,"lossAdjusterCompany",t)},expression:"navForm.lossAdjusterCompany"}})],1),t("el-form-item",{attrs:{label:"被保险人:"}},[t("el-input",{staticClass:"width_150",attrs:{placeholder:"请填写分包商",clearable:""},model:{value:e.navForm.nameOfInsured,callback:function(t){e.$set(e.navForm,"nameOfInsured",t)},expression:"navForm.nameOfInsured"}})],1),t("el-form-item",{staticClass:"dateBox",attrs:{label:"报案时间:"}},[t("el-row",{staticStyle:{width:"370px"}},[t("el-col",{attrs:{span:11}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择日期",clearable:"",type:"date","value-format":"yyyy-MM-dd"},model:{value:e.navForm.reportStartTime,callback:function(t){e.$set(e.navForm,"reportStartTime",t)},expression:"navForm.reportStartTime"}})],1),t("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:2}},[e._v("至")]),t("el-col",{attrs:{span:11}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择日期",clearable:"",type:"date","value-format":"yyyy-MM-dd"},model:{value:e.navForm.reportEndTime,callback:function(t){e.$set(e.navForm,"reportEndTime",t)},expression:"navForm.reportEndTime"}})],1)],1)],1),t("el-form-item",{staticClass:"dateBox",attrs:{label:"结案时间:"}},[t("el-row",{staticStyle:{width:"370px"}},[t("el-col",{attrs:{span:11}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择日期",clearable:"",type:"date","value-format":"yyyy-MM-dd"},model:{value:e.navForm.startTime,callback:function(t){e.$set(e.navForm,"startTime",t)},expression:"navForm.startTime"}})],1),t("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:2}},[e._v("至")]),t("el-col",{attrs:{span:11}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择日期",clearable:"",type:"date","value-format":"yyyy-MM-dd"},model:{value:e.navForm.endTime,callback:function(t){e.$set(e.navForm,"endTime",t)},expression:"navForm.endTime"}})],1)],1)],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.searchTable}},[e._v("风险查询")])],1)],1)])])],1),t("div",{staticClass:"main"},[t("div",{staticClass:"table_box public_box"},[t("div",{staticClass:"table_title"},[t("b",[e._v("案件详情")]),e.tableData.length>0?t("el-button",{staticClass:"download",attrs:{type:"text"},on:{click:e.handleDownload}},[t("i",{staticClass:"el-icon-download el-icon--left"}),e._v("下载表单")]):e._e()],1),t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,"empty-text":e.caseExcelData.length>0||e.navForm.endTime?"暂无案件":"暂无案件,请上传案件清单或选择查询日期"}},[t("el-table-column",{attrs:{prop:"meituanCaseNo",label:"美团案件号"}}),t("el-table-column",{attrs:{prop:"accidentTime",label:"出险时间"}}),t("el-table-column",{attrs:{prop:"reportTime",label:"报案时间"}}),t("el-table-column",{attrs:{prop:"insureTypeName",label:"保险险种"}}),t("el-table-column",{attrs:{prop:"currentStatusDesc",label:"案件状态"}}),t("el-table-column",{attrs:{prop:"caseClosedTime",label:"结案时间"}}),t("el-table-column",{attrs:{prop:"totalPayAmount",label:"结案金额"}}),t("el-table-column",{attrs:{prop:"valueAtRisk",label:"风险值"}}),t("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(i){return[t("span",{staticClass:"a_color",on:{click:function(t){return e.lookDetails(i.row)}}},[e._v("查看详情")])]}}])})],1),t("el-pagination",{staticStyle:{"margin-top":"0.2rem"},attrs:{"current-page":e.currentPage,layout:"total, sizes, prev, pager, next, jumper","page-sizes":[10,20],"page-size":10,total:e.totalPage},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1)]),t("el-dialog",{attrs:{visible:e.dialogVisible,"modal-append-to-body":!1,width:"65%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"dialog_box"},[t("div",{staticClass:"dialog_header"},[t("div",[e._v("案件号:"+e._s(e.checkedRowDetail.caseNo))]),t("div",[e._v("是否快赔:"+e._s(e.checkedRowDetail.quickPayOrNot))])]),t("div",{staticClass:"dialog_main"},[t("div",{staticClass:"dialog_row"},[t("div",{staticClass:"dialog_col"},[t("div",{staticClass:"detail_title"},[e._v("涉事方信息:")]),t("ul",[t("li",[e._v("出险人姓名:"+e._s(e.checkedRowDetail.nameOfDeliveryMan))]),t("li",[e._v("三者姓名:"+e._s(e.checkedRowDetail.nameOfThirdParty))]),t("li",[e._v("被保险人:"+e._s(e.checkedRowDetail.nameOfInsured))]),t("li",[e._v("投保人:"+e._s(e.checkedRowDetail.insuranceApplicant))])])]),t("div",{staticClass:"dialog_col"},[t("div",{staticClass:"detail_title"},[e._v("审核信息:")]),t("ul",[t("li",[e._v("公估公司:"+e._s(e.checkedRowDetail.lossAdjusterCompany))]),t("li",[e._v("初审人:"+e._s(e.checkedRowDetail.firstCheckMan))]),t("li",[e._v("复审人:"+e._s(e.checkedRowDetail.reviewer))])])])]),t("div",{staticClass:"dialog_row"},[t("div",{staticClass:"dialog_col"},[t("div",{staticClass:"detail_title"},[e._v("事故省市:")]),t("ul",[t("li",[e._v(e._s(e.checkedRowDetail.accidentProvincesAndCities))])])])]),t("div",{staticClass:"dialog_row"},[t("div",{staticClass:"dialog_col",staticStyle:{width:"100%"}},[t("div",{staticClass:"detail_title"},[e._v("赔付信息:")]),t("ul",[t("li",[e._v("总赔款金额:"+e._s(e.checkedRowDetail.totalPayAmount)+"元")])]),t("div",{staticClass:"adjustment_detail"},[t("div",[e._v("理算明细:")]),t("ul",[t("li",[t("span",[e._v("车损:"+e._s(e.checkedRowDetail.vehicleDamage)+" 元")]),t("span",[e._v("门诊医疗费:"+e._s(e.checkedRowDetail.outPatientMedicalExpenses)+" 元")])]),t("li",[t("span",[e._v("伤残赔偿金:"+e._s(e.checkedRowDetail.disabilityCompensation)+" 元")]),t("span",[e._v("骑手住院津贴:"+e._s(e.checkedRowDetail.hospitalizationAllowanceForDeliveryMan)+" 元")])]),t("li",[t("span",[e._v("误工费:"+e._s(e.checkedRowDetail.lostWages)+" 元")]),t("span",[e._v("其他补助:"+e._s(e.checkedRowDetail.otherAllowance)+" 元")])]),t("li",[t("span",[e._v("物损金额:"+e._s(e.checkedRowDetail.itemDamage)+" 元")])])])])])])])])])],1)},n=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"page_title"},[t("b",[e._v("案件风险值查询")]),t("span",[e._v("(案件列表显示满足筛选规则的案件)")])])}],s=(i("1d88"),i("84ae"),i("13bd"),i("5f87")),o={name:"caseRisk",components:{},data(){return{caseExcelData:[],dialogVisible:!1,baseURL:"",unloaderHeader:{token:""},fullscreenLoading:!1,uploadFile:{},fileName:"",activeName:"first",loading:!1,nowFilter:"",provinceOptions:["辽宁省","江苏省","广西壮族自治区","福建省","四川省","黑龙江省","山东省","江西省","陕西省","吉林省","北京市","安徽省","河北省","河南省","重庆市","天津市","湖北省","甘肃省","上海市","云南省","贵州省","内蒙古自治区","山西省","海南省","浙江省","宁夏回族自治区","青海省","广东省","新疆维吾尔自治区","湖南省","西藏自治区","香港特别行政区","澳门特别行政区","台湾省"],navForm:{startTime:"",endTime:"",value:"",nameOfInsured:"",meituanCaseInfoList:[]},checkedRowDetail:{},riskOptions:[],customFilterOptionList:[],currentPage:1,pageSize:10,totalPage:0,tableData:[]}},methods:{handleRemove(e,t){this.caseExcelData=[]},getCommonFilterOptionList(){this.instance.post("/case/getCommonFilterOptionList",{}).then(e=>{1==e.data.code&&(this.riskOptions=e.data.data)})},lookDetails(e){this.checkedRowDetail=e,this.dialogVisible=!0},handleAvatarSuccess(e,t){this.fullscreenLoading.close(),this.fileName=t.name,this.uploadFile=e.data,1==e.code?(this.$message.success(e.message),this.caseExcelData=e.data):this.$message.error(e.message)},beforeAvatarUpload(e){if(e.size/1024>5e3)return this.$message.error("抱歉,上传文件不得大于5M!"),!1;this.unloaderHeader.token=Object(s["c"])(),this.fullscreenLoading=this.$loading({lock:!0,text:"上传中,请稍后",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"})},handleSelectionChange(e){this.multipleSelection=e},searchTable(){this.caseExcelData.length>0||this.navForm.startTime&&this.navForm.endTime?(this.currentPage=1,this.getTbodyData()):this.$message.error("请上传文件或者选择结案时间之后再查询!")},getTbodyData:function(){this.loading=!0,this.tableData=[];var e=JSON.parse(JSON.stringify(this.navForm));e.meituanCaseInfoList=this.caseExcelData,this.nowFilter=JSON.parse(JSON.stringify(e)),e.pageNum=this.currentPage,e.pageSize=this.pageSize,this.instance.post("/case/getCaseList",e).then(e=>{this.loading=!1,1==e.data.code?(this.tableData=e.data.data.list,this.totalPage=parseInt(e.data.data.total)):this.totalPage=0})},handleSizeChange(e){this.pageSize=e,this.getTbodyData()},handleCurrentChange:function(e){this.currentPage=Number(e),this.getTbodyData()},handleDownload(){var e=JSON.parse(JSON.stringify(this.nowFilter));this.fullscreenLoading=this.$loading({lock:!0,text:"下载中,请稍后",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),this.instance({method:"post",url:"/case/exportCaseExcel",data:e,responseType:"blob",headers:{}}).then(e=>{this.fullscreenLoading.close();let t=window.URL.createObjectURL(new Blob([e.data])),i=document.createElement("a");i.style.display="none",i.href=t,i.setAttribute("download","案件下载清单.csv"),document.body.appendChild(i),i.click()}).catch((function(e){console.log(e)}))}},mounted(){this.getCommonFilterOptionList(),this.baseURL=this.$store.getters.baseURL}},a=o,l=(i("c614"),i("1805")),c=Object(l["a"])(a,r,n,!1,null,"196fd0b0",null);t["default"]=c.exports},a889:function(e,t,i){},a9c0:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAA7lJREFUaEPtWb1PU1EU/50+lI3o4GI0KasMaiShfYRX+A90cRAHSKAlJiZCHNQFXNTBgImJaSuJDOrgov8BtITXNsGIQ11tonFx0LDx8XrMfQWF99V7y3s1TbjrO/ec8zsf99z7e4QOX9Th/uMYwP/OYGgZmCgPnOva6koxoR/gOAhxMOI2QEINjBpANWKs73bvFhYTle9hgD8SgExx6AJjd4IQ0wEeUHOIKoy6SehazBmrX9T2/pNuCcDt8kDP1pY2Q4RpAD2tGt/bt8mMhe5ua/55orKpqksZwFRRH2PCXTD6VI0FyhOqxHiaNcwlFb1KADJF/RWAMRUDLcgu5QxzXHafNIBMUf8K7DWlrPbW5Wo5w+yV2S4FIF1MrhPoiozCsGQY/DFvlPqb6WsKIF1I3iOix80URfGdme/nU6UnQboDAaQLyRtE9CYK52R1MvNoPlV66yfvC0Aclds7mhn6aSPr+b4coXryhKX7HbG+ANIFfY4Is6r2opBnxsN8ypzz0u0JQExYwCqFMKTCwrMJaEmvie0DYHAB4DthWQ9HDz3LGWti8h9a3gBW9U9gXArHsLcWIvyoA3lieJaGaxdhIzdkXm4KYGo5EWctJoZWdItQBWvXRUnslWtVxhhZ9d7sSLl2UNaVAfuuA4grQzTrgPPCwNRyYpi12LKMMQLGnXclF4BMMcL6dzhvR5+sd/JHtbsPPADo7wFclYmIksyRnbetfcgZ5rXAEsooNrA4o2MxTDLjrC+gcJwXLztXI3tl4BeAU3LR1fr+NqJfKYTlfMOh3znDPB2cgaIuDYCs+kh2pLwiFHrWc7jOSwJQKaEgB8N3XrqE1JrY19HGOe+bHbkadUpJNHErx6gHiAicF/yM6zrhHmSFwVEmfq0cIAeIkCNvu0NMN7OptUPvExcAQVBp29o3ZQC2BccVQWlINbdonbTOOwkxv9toWZ2oajjAwE8wXoBwi4Azzd2SlaBKzlhLOKU9AaSLyXkCua6usqaikGPwQt4ozUgB6PgHjUCZXtVnpe/qUYT8gE7lJ6XY2/GPegEi8reBROa83gCBdyGnzjbxoX5QmvKkTZm5xkBqKy+6D0aKH5UCYDd1G/lRWV60MTsVVjt4Uhk+VKkHnPhsvjRGD+TfsZIRIlS5zo+CeFAvTUoZ2Fdg/2La0aaJISZjZ/1iOhiFxsSuT4J4WJkII2yAaQWIvWz7Tz6vVApCDFpsmEEXA3+zgj/Dqq84CSrJQnOJtVRCrRqLYt8xgCiiqqKz4zPwB2J/00Al3MY6AAAAAElFTkSuQmCC"},a9e9:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"module_wrap box_border",attrs:{"element-loading-text":"数据加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"transparent"}},[t("div",{staticClass:"box_title"},[e._v("公估案件处理结案排行榜")]),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.loading,expression:"!loading"}],staticStyle:{height:"100%"}},[t("div",{attrs:{id:"processing_time_bar"}})])])},n=[],s=(i("f16c"),i("45d2"),i("8160"),i("ada4")),o={name:"ProcessingTime",props:{isCollapse:{type:Boolean,default:!0},navForm:{type:Object,default:{}}},watch:{isCollapse(){setTimeout(()=>{this.myChart&&this.myChart.resize()},1e3)},navForm:{deep:!0,handler(e){this.getData()}}},data(){return{topDays:[],newNumber:0,myChart:"",loading:!0}},mounted(){this.role=localStorage.getItem("role"),window.addEventListener("resize",()=>{this.myChart&&setTimeout(()=>{this.myChart.resize()},500)})},methods:{getData(){this.loading=!0,this.instance({method:"post",url:"/large/data/screen/getRiskTimeLossEstimation",data:this.navForm,headers:{"Content-Type":"application/json;charset=UTF-8"}}).then(e=>{if(this.loading=!1,1==e.data.code){let t=e.data.data;t.length>0&&this.loadCharts(t)}})},loadCharts(e){var t=document.getElementById("processing_time_bar");if(!t)return;this.myChart=s["init"](t,null,{renderer:"svg"});let i=[],r=[],n=[];e.forEach((e,t)=>{i.push(e.name),r.push(e.caseNumRatio),n.push(e.amountOfFirstCaseFiled)});var o={color:["#BEE758","#F58FA2"],tooltip:{trigger:"axis",confine:!0,textStyle:{align:"left"}},grid:{left:"2%",right:"4%",top:"5%",bottom:"0%",containLabel:!0},xAxis:[{type:"category",data:i,axisPointer:{type:"shadow"},axisLabel:{showMaxLabel:!0,rotate:30,textStyle:{color:"#fff"}},axisTick:{alignWithLabel:!0}}],yAxis:[{type:"value",axisLabel:{showMaxLabel:!0,formatter:"{value} 天",textStyle:{color:"#fff"}},splitLine:{show:!1},axisTick:{show:!1}}],series:[{type:"bar",tooltip:{valueFormatter:function(e){return e+" 天"}},data:r},{type:"line",tooltip:{valueFormatter:function(e){return e+" 天"}},data:n}]};this.myChart.setOption(o)}},updated(){this.myChart&&this.myChart.resize()}},a=o,l=(i("3575"),i("1805")),c=Object(l["a"])(a,r,n,!1,null,"2415c520",null);t["default"]=c.exports},ad18:function(e,t,i){"use strict";i("865f")},adb0:function(e,t,i){"use strict";i("7991")},b0bb:function(e,t,i){},b0c9:function(e,t,i){"use strict";i("302d")},b140:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],class:"1"==e.echartsType?"module_wrap box_border":"module_wrap module_wrap2 box_border",attrs:{"element-loading-text":"数据加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"transparent"}},[t("div",{staticClass:"box_title"},[e._v("公估风险案件"+e._s("1"==e.echartsType?"":"占比")+"统计")]),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.loading,expression:"!loading"}],staticStyle:{height:"100%"}},["1"==e.echartsType?t("div",{attrs:{id:"case_number_ratio_pie"}}):t("div",{attrs:{id:"case_number_ratio_pie2"}})])])},n=[],s=(i("f16c"),i("45d2"),i("8160"),i("ada4")),o={name:"CaseNumberRatio",props:{isCollapse:{type:Boolean,default:!0},navForm:{type:Object,default:{}},echartsType:{type:String,default:""}},watch:{isCollapse(){setTimeout(()=>{this.myChart&&this.myChart.resize()},600)},navForm:{deep:!0,handler(e){this.getData()}}},data(){return{topDays:[],newNumber:0,myChart:"",loading:!0}},mounted(){this.role=localStorage.getItem("role"),window.addEventListener("resize",()=>{this.myChart&&setTimeout(()=>{this.myChart.resize()},500)})},methods:{getData(){this.loading=!0,this.instance({method:"post",url:"/large/data/screen/getRiskLossEstimation",data:this.navForm,headers:{"Content-Type":"application/json;charset=UTF-8"}}).then(e=>{if(this.loading=!1,1==e.data.code){let t=e.data.data;"1"==this.echartsType?this.loadCharts(t):this.loadCharts2(t)}})},loadCharts(e){var t=document.getElementById("case_number_ratio_pie");if(!t)return;this.myChart=s["init"](t,null,{renderer:"svg"});let i=[],r=[];if(e.caseRiskMoney){e.caseRiskMoney.forEach((e,t)=>{i.push(e.name),r.push(e.caseNum)});var n={tooltip:{trigger:"axis",axisPointer:{type:"none"}},xAxis:{data:i,axisTick:{show:!1},axisLabel:{color:"#fff",rotate:50}},yAxis:{splitLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1}},grid:{top:"10",bottom:"10",left:"20",right:"10",containLabel:!0},color:["#9AE193"],series:[{name:"案件数量",type:"pictorialBar",barCategoryGap:"-40%",symbol:"path://M0,10 L10,10 C5.5,10 5.5,5 5,0 C4.5,5 4.5,10 0,10 z",label:{position:"top",color:"#fff",formatter:"{c} 件"},barWidth:"80%",emphasis:{itemStyle:{opacity:1}},data:r,z:10}]};this.myChart.setOption(n)}},loadCharts2(e){var t=document.getElementById("case_number_ratio_pie2");if(!t)return;this.myChart=s["init"](t,null,{renderer:"svg"});let i=[],r=[];if(e.caseRiskNum){e.caseRiskNum.forEach((e,t)=>{i.push(e.name),r.push(e.caseNumRatio)});var n={tooltip:{trigger:"axis",axisPointer:{type:"none"}},xAxis:{data:i,axisTick:{show:!1},axisLabel:{color:"#fff",rotate:50}},yAxis:{splitLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1}},grid:{top:"10",bottom:"10",left:"20",right:"10",containLabel:!0},color:["#87E5BC"],series:[{name:"风险案件占比",type:"pictorialBar",barCategoryGap:"-40%",symbol:"path://M0,10 L10,10 C5.5,10 5.5,5 5,0 C4.5,5 4.5,10 0,10 z",label:{position:"top",color:"#fff",formatter:"{c}%"},barWidth:"80%",emphasis:{itemStyle:{opacity:1}},data:r,z:10}]};this.myChart.setOption(n)}}},updated(){this.myChart&&this.myChart.resize()}},a=o,l=(i("fd41"),i("1805")),c=Object(l["a"])(a,r,n,!1,null,"2022e52c",null);t["default"]=c.exports},b147:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"wrap"},[t("el-carousel",{attrs:{"indicator-position":"none",interval:5e3,"initial-index":0,arrow:"always",autoplay:!1},on:{change:e.carouselChange}},[t("el-carousel-item",{directives:[{name:"loading",rawName:"v-loading",value:e.showloading2,expression:"showloading2"}],attrs:{"element-loading-text":"加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.1)"}},[t("div",{staticClass:"wrap_carousel2"},[t("div",{staticClass:"wrap_carousel_top"},[t("div",{staticClass:"update_time1"},[t("el-select",{staticClass:"time_select",attrs:{placeholder:"请选择"},on:{change:function(t){return e.timeSelectChange(2)}},model:{value:e.navForm2.type,callback:function(t){e.$set(e.navForm2,"type",t)},expression:"navForm2.type"}},e._l(e.options,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),t("el-date-picker",{attrs:{type:"daterange","start-placeholder":"开始日期","end-placeholder":"结束日期","range-separator":"至","value-format":"yyyy-MM-dd",size:"mini","default-time":["00:00:00","23:59:59"]},on:{change:e.reportTime2Change},model:{value:e.reportTime2,callback:function(t){e.reportTime2=t},expression:"reportTime2"}})],1),t("div",{staticClass:"home_title"},[e._v("业务质量监控")]),t("div",{staticClass:"update_time1",staticStyle:{visibility:"hidden"}},[t("p",[e._v("事故省:")]),t("el-select",{staticStyle:{width:"100px"},on:{change:e.provinceChange},model:{value:e.provinceValue,callback:function(t){e.provinceValue=t},expression:"provinceValue"}},e._l(e.provinceOption,(function(e){return t("el-option",{key:e.provinceName,attrs:{label:e.provinceName,value:e.provinceName}})})),1)],1),t("el-button",{staticClass:"download_btn",attrs:{type:"primary",loading:e.downloadFlag2},on:{click:function(t){return e.downloadData(2)}}},[e._v("下 载")])],1),e.delayLoading2?t("div",{staticClass:"wrap_parent"},[t("div",{staticClass:"wrap_carousel_top"},[t("reparations-amount",{attrs:{navForm:e.navForm2}}),t("reparations-amount-type",{attrs:{isCollapse:e.isCollapse,navForm:e.navForm2}}),t("all-reparations-amount",{attrs:{isCollapse:e.isCollapse,navForm:e.navForm2}})],1),t("div",{staticClass:"wrap_carousel_bottom"},[t("delay-report",{attrs:{isCollapse:e.isCollapse,navForm:e.navForm2}}),t("passing-rate",{attrs:{isCollapse:e.isCollapse,navForm:e.navForm2}})],1),t("div",{staticClass:"wrap_carousel_bottom"},[t("assessment-deviation",{attrs:{isCollapse:e.isCollapse,navForm:e.navForm2}}),t("case-num-sum",{attrs:{isCollapse:e.isCollapse,navForm:e.navForm2}})],1)]):e._e()])]),t("el-carousel-item",[t("div",{staticClass:"wrap_carousel1"},[t("div",{staticClass:"wrap_carousel_top"},[t("div",{staticClass:"update_time1"},[t("el-select",{staticClass:"time_select",attrs:{placeholder:"请选择"},on:{change:function(t){return e.timeSelectChange(1)}},model:{value:e.navForm1.type,callback:function(t){e.$set(e.navForm1,"type",t)},expression:"navForm1.type"}},e._l(e.options,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),t("el-date-picker",{attrs:{type:"daterange","start-placeholder":"开始日期","end-placeholder":"结束日期","range-separator":"至","value-format":"yyyy-MM-dd",size:"mini","default-time":["00:00:00","23:59:59"]},on:{change:e.reportTime1Change},model:{value:e.reportTime1,callback:function(t){e.reportTime1=t},expression:"reportTime1"}})],1),t("div",{staticClass:"home_title"},[e._v("作业质量监控")]),t("div",{staticClass:"home_title",staticStyle:{visibility:"hidden"}},[e._v("业务质量监控")]),t("el-button",{staticClass:"download_btn",attrs:{type:"primary",loading:e.downloadFlag1},on:{click:function(t){return e.downloadData(1)}}},[e._v("下 载")])],1),t("div",{staticClass:"wrap_parent wrap_content"},[t("div",{staticClass:"wrap_left"},[t("risk-case",{attrs:{isCollapse:e.isCollapse,navForm:e.navForm1,echartsType:"1"}}),t("risk-case",{attrs:{isCollapse:e.isCollapse,navForm:e.navForm1,echartsType:"2"}}),t("risk-case-tag",{attrs:{isCollapse:e.isCollapse,navForm:e.navForm1,echartsType:"2"}}),t("report-time",{attrs:{isCollapse:e.isCollapse,navForm:e.navForm1}})],1),t("div",{staticClass:"wrap_center"},[t("div",{directives:[{name:"show",rawName:"v-show",value:0,expression:"0"}],staticClass:"sum_num"},[t("span",[e._v("总风险案件数:"),t("countTo",{attrs:{startVal:e.riskCaseReduceAmount.riskCaseNum,endVal:e.riskCaseReduceAmount.riskCaseNum1,duration:1500}}),e._v("件")],1),t("span",[e._v("总减损金额:"),t("countTo",{attrs:{startVal:e.riskCaseReduceAmount.reduceAmountNum,endVal:e.riskCaseReduceAmount.reduceAmountNum1,duration:1500}}),e._v("万元")],1)]),t("province-risk",{attrs:{isCollapse:e.isCollapse,navForm:e.navForm1,echartsType:"1"}}),t("province-risk",{attrs:{isCollapse:e.isCollapse,navForm:e.navForm1,echartsType:"2"}}),t("province-risk-tag",{attrs:{isCollapse:e.isCollapse,navForm:e.navForm1,echartsType:"2"}}),t("depletion-sum",{attrs:{isCollapse:e.isCollapse,navForm:e.navForm1}})],1),t("div",{staticClass:"wrap_right wrap_right3"},[e._e(),t("case-number-ratio",{attrs:{isCollapse:e.isCollapse,navForm:e.navForm1,echartsType:"1"}}),t("case-number-ratio",{attrs:{isCollapse:e.isCollapse,navForm:e.navForm1,echartsType:"2"}}),t("processing-time",{attrs:{isCollapse:e.isCollapse,navForm:e.navForm1}}),t("case-7days-count",{attrs:{isCollapse:e.isCollapse,navForm:e.navForm1}})],1)])])]),t("el-carousel-item",{directives:[{name:"loading",rawName:"v-loading",value:e.showloading3,expression:"showloading3"}],staticClass:"carousel3",attrs:{"element-loading-text":"加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.1)"}},[t("div",{staticClass:"wrap_carousel_top"},[t("div",{staticClass:"update_time1"},[t("el-select",{staticClass:"time_select",attrs:{placeholder:"请选择"},on:{change:function(t){return e.timeSelectChange(3)}},model:{value:e.navForm3.type,callback:function(t){e.$set(e.navForm3,"type",t)},expression:"navForm3.type"}},e._l(e.options,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),t("el-date-picker",{attrs:{type:"daterange","start-placeholder":"开始日期","end-placeholder":"结束日期","range-separator":"至","value-format":"yyyy-MM-dd",size:"mini","default-time":["00:00:00","23:59:59"]},on:{change:e.reportTime3Change},model:{value:e.reportTime3,callback:function(t){e.reportTime3=t},expression:"reportTime3"}})],1),t("div",{staticClass:"home_title"},[e._v("综合分析")]),t("div",{staticClass:"update_time2",staticStyle:{visibility:"hidden"}},[t("p",[e._v("事故省:")]),t("el-select",{staticStyle:{width:"100px"},on:{change:e.provinceChange},model:{value:e.provinceValue,callback:function(t){e.provinceValue=t},expression:"provinceValue"}},e._l(e.provinceOption,(function(e){return t("el-option",{key:e.provinceName,attrs:{label:e.provinceName,value:e.provinceName}})})),1)],1),t("el-button",{staticClass:"download_btn",attrs:{type:"primary",loading:e.downloadFlag3},on:{click:function(t){return e.downloadData(3)}}},[e._v("下 载")])],1),e.delayLoading3?t("div",{staticClass:"wrap_carousel wrap_carousel3"},[t("div",{staticClass:"wrap_left wrap_left_40"},[t("settle-lawsuit",{attrs:{navForm:e.navForm3}}),t("risk-grade",{attrs:{isCollapse:e.isCollapse,navForm:e.navForm3}}),t("risk-point",{attrs:{isCollapse:e.isCollapse,navForm:e.navForm3}})],1),t("div",{staticClass:"wrap_center wrap_left_59"},[t("case-rate",{attrs:{isCollapse:e.isCollapse,navForm:e.navForm3}}),t("risk-number-amount",{attrs:{isCollapse:e.isCollapse,navForm:e.navForm3}})],1),e._e()]):e._e()])],1)],1)},n=[],s=(i("45d2"),i("8160"),i("1d88"),i("84ae"),i("13bd"),i("4fd9")),o=i("b36a"),a=i("49f2"),l=i("9cd9"),c=i("a06b"),u=i("dc1f"),d=i("20b9"),h=i("ff74"),p=i("fe11"),f=i("7c3f"),m=i("eaf6"),g=i("f522"),y=i("1dfa"),b=i("b140"),v=i("cb0e"),w=i("14f5"),x=i("a9e9"),_=i("8e5e"),j=i("2887"),C=i("11df6"),k=i("f02d"),S=i("d30f"),T=i("69eb"),E=i("3eae"),O=i("341e"),D=i("6f90"),A=i("6282"),N=i.n(A),I={name:"bigScreen",components:{countTo:N.a,SettleLawsuit:s["default"],CaseTime:o["default"],CaseCycle:a["default"],RiskNumberAmount:l["default"],RiskGrade:c["default"],RiskPoint:u["default"],ChinaMap:d["default"],CaseRate:p["default"],LawsuitTimes:C["default"],CaseNumSum:D["default"],PassingRate:E["default"],AssessmentDeviation:O["default"],ReparationsAmountType:T["default"],DelayReport:S["default"],AllReparationsAmount:k["default"],RiskCase:f["default"],RiskCaseTag:m["default"],ProvinceRisk:g["default"],ProvinceRiskTag:y["default"],DepletionSum:w["default"],ProcessingTime:x["default"],ReparationsAmount:j["default"],CaseNumberRatio:b["default"],ChinaMap3:h["default"],ReportTime:v["default"],Case7daysCount:_["default"]},props:{isCollapse:{type:Boolean,default:!0}},data(){return{downloadFlag1:!1,downloadFlag2:!1,downloadFlag3:!1,showloading2:!0,showloading3:!0,delayLoading2:!1,delayLoading3:!1,updateTime:"",reportTime3:"",reportTime2:"",reportTime1:"",closingTime:"",navForm3:{startTime:"",endTime:"",type:"1"},navForm2:{startTime:"",endTime:"",accidentProvince:"全国",type:"1"},navForm1:{startTime:"",endTime:"",closeCaseStartTime:"",closeCaseEndTime:"",type:"1"},riskCaseReduceAmount:{reduceAmountNum:0,riskCaseNum:0,reduceAmountNum1:0,riskCaseNum1:0},timer:null,provinceValue:"全国",provinceOption:[],options:[{value:"1",label:"报案时间"},{value:"2",label:"事故时间"},{value:"3",label:"结案时间"}],carouselFlag:!1}},mounted(){var e=new Date;new Date(e.getTime()-26784e5);let t=new Date(e.getTime()-31536e6),i=new Date(e.getTime()-864e5);this.reportTime1=[this.dateFormatting(t,"yyyy-MM-dd"),this.dateFormatting(i,"yyyy-MM-dd")],this.reportTime2=[this.dateFormatting(t,"yyyy-MM-dd"),this.dateFormatting(i,"yyyy-MM-dd")],this.reportTime3=[this.dateFormatting(t,"yyyy-MM-dd"),this.dateFormatting(i,"yyyy-MM-dd")],this.navForm3.startTime=this.reportTime3[0],this.navForm3.endTime=this.reportTime3[1],this.navForm2.startTime=this.reportTime2[0],this.navForm2.endTime=this.reportTime2[1],this.navForm1.startTime=this.reportTime1[0],this.navForm1.endTime=this.reportTime1[1],this.showloading2=!1,this.delayLoading2=!0,setTimeout(()=>{this.showloading3&&(this.showloading3=!1,this.delayLoading3=!0)},6e4)},methods:{downloadData(e){this["downloadFlag"+e]=!0,this.instance({method:"post",url:"/large/data/screen/downloadScreenData"+e,data:this["navForm"+e],responseType:"blob"}).then(t=>{this["downloadFlag"+e]=!1;let i=window.URL.createObjectURL(new Blob([t.data])),r=document.createElement("a");r.style.display="none",r.href=i,r.setAttribute("download",decodeURIComponent(t.headers.filename)),document.body.appendChild(r),r.click()})},carouselChange(e){switch(e){case 1:this.showloading2&&(this.showloading2=!1,this.delayLoading2=!0);break;case 2:this.showloading3&&(this.showloading3=!1,this.delayLoading3=!0);break;default:break}},getProvinceName(){this.instance({method:"post",url:"/large/data/screen/getProvinceName",data:this.navForm2,headers:{"Content-Type":"application/json;charset=UTF-8"}}).then(e=>{if(1==e.data.code){var t={provinceName:"全国"};e.data.data.unshift(t),this.provinceOption=e.data.data}})},getRiskCaseReduceAmount(e){this.instance({method:"post",url:"/large/data/screen/riskCaseReduceAmount",data:this.navForm1,headers:{"Content-Type":"application/json;charset=UTF-8"}}).then(t=>{if(1==t.data.code){var i=t.data.data;Object.keys(i).forEach(e=>{i[e]=parseInt(i[e])}),"one"!=e&&(this.riskCaseReduceAmount.reduceAmountNum=this.riskCaseReduceAmount.reduceAmountNum1||0,this.riskCaseReduceAmount.riskCaseNum=this.riskCaseReduceAmount.riskCaseNum1||0),this.riskCaseReduceAmount.reduceAmountNum1=i.reduceAmountNum||0,this.riskCaseReduceAmount.riskCaseNum1=i.riskCaseNum||0}})},reportTime1Change(e){this.navForm1.startTime=this.reportTime1[0],this.navForm1.endTime=this.reportTime1[1]},reportTime2Change(e){let t=new Date(this.reportTime2[1]).getTime()-new Date(this.reportTime2[0]).getTime();t<5184e5?this.$message.error("抱歉,报案时间间隔需大于7天!"):(this.navForm2.startTime=this.reportTime2[0],this.navForm2.endTime=this.reportTime2[1],this.navForm2.accidentProvince="全国",this.provinceValue="全国",this.getProvinceName())},reportTime3Change(e){let t=new Date(this.reportTime3[1]).getTime()-new Date(this.reportTime3[0]).getTime();t<5184e5?this.$message.error("抱歉,报案时间间隔需大于7天!"):(this.navForm3.startTime=this.reportTime3[0],this.navForm3.endTime=this.reportTime3[1])},timeSelectChange(e){this[`reportTime${e}Change`]()},closingTimeChange(e){this.navForm1.closeCaseStartTime=this.closingTime&&this.closingTime[0]?this.closingTime[0]:null,this.navForm1.closeCaseEndTime=this.closingTime&&this.closingTime[1]?this.closingTime[1]:null},provinceChange(e){this.navForm2.accidentProvince=e},getStartDate(){var e=new Date,t=e.getFullYear(),i=e.getMonth();0==i&&(i=12,t-=1),i<10&&(i="0"+i);new Date(t,i,0);var r=t+"-"+i+"-01";return r}},destroyed(){clearInterval(this.timer)},watch:{$route:{handler:function(e){this.redirect=e.query&&e.query.redirect},immediate:!0}}},R=I,P=(i("9e4b"),i("1805")),F=Object(P["a"])(R,r,n,!1,null,"5c3b6fdb",null);t["default"]=F.exports},b1f1:function(e,t,i){"use strict";i("b0bb")},b2ac:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"wrap"},[t("div",{staticClass:"file_box"},[e._m(0),t("el-upload",{ref:"upload",staticClass:"uploads-box",attrs:{drag:"",accept:".xls,.xlsx",action:e.baseURL+"/backstage/importInsureExpenses","show-file-list":!1,headers:e.unloaderHeader,limit:1,"on-remove":e.handleRemove,"on-success":e.handleAvatarSuccess,"before-upload":e.beforeAvatarUpload}},[t("i",{staticClass:"el-icon-upload"}),t("div",{staticClass:"el-upload__text"},[e._v("将文件拖到此处,或"),t("em",[e._v("点击上传")])])])],1)])},n=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"page_title",staticStyle:{padding:"25px","border-bottom":"1px dashed #d9d9d9"}},[t("b",[e._v("包商保费上传")])])}],s=i("9839"),o=i("5f87"),a={components:{MyHeader:s["a"]},data(){return{baseURL:"",unloaderHeader:{token:""}}},mounted(){this.baseURL=this.$store.getters.baseURL},methods:{handleRemove(e,t){this.caseExcelData=[]},handleAvatarSuccess(e,t){this.fullscreenLoading.close(),this.fileName=t.name,this.uploadFile=e.data,1==e.code?(this.$message.success("文件导入成功"),this.caseExcelData=e.data):this.$message.error(e.message),this.$refs["upload"].clearFiles()},beforeAvatarUpload(e){this.unloaderHeader.Authorization="Bearer "+Object(o["c"])(),this.fullscreenLoading=this.$loading({lock:!0,text:"上传中,请稍后",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"})}}},l=a,c=(i("59e1"),i("1805")),u=Object(c["a"])(l,r,n,!1,null,"589b13e1",null);t["default"]=u.exports},b36a:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this;e._self._c;return e._m(0)},n=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"module_wrap box_border"},[t("div",{staticClass:"box_title"},[e._v("报案时效统计")]),t("div",{attrs:{id:"case_time_bar"}})])}],s=i("48fc"),o=s["a"],a=(i("b8c0"),i("1805")),l=Object(a["a"])(o,r,n,!1,null,"69ab18e0",null);t["default"]=l.exports},b6ee:function(e,t,i){"use strict";i("13d4")},b8c0:function(e,t,i){"use strict";i("480a")},bc27:function(e,t,i){},bc72:function(e,t,i){"use strict";i("09bc")},be4f:function(e,t,i){},bed6:function(e,t,i){"use strict";i("e3eb")},c023:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"wrap"},[t("div",{staticClass:"page_title"},[t("b",[e._v(e._s(e.pageTitle))])]),t("div",{staticClass:"search_box public_box"},[t("el-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm}},[t("el-form-item",{attrs:{label:"保单号:",prop:"policyNo"}},[t("el-input",{staticClass:"width_200",attrs:{maxlength:"20",placeholder:"请输入",clearable:""},model:{value:e.searchForm.policyNo,callback:function(t){e.$set(e.searchForm,"policyNo",t)},expression:"searchForm.policyNo"}})],1),t("el-form-item",{staticClass:"resetMarginBottom",attrs:{label:"流入时间:"}},[t("el-row",{staticStyle:{width:"350px"}},[t("el-col",{attrs:{span:11}},[t("el-form-item",{attrs:{prop:"startTime"}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择日期",clearable:"",type:"date","value-format":"yyyy-MM-dd"},model:{value:e.searchForm.startTime,callback:function(t){e.$set(e.searchForm,"startTime",t)},expression:"searchForm.startTime"}})],1)],1),t("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:2}},[e._v("至")]),t("el-col",{attrs:{span:11}},[t("el-form-item",{attrs:{prop:"endTime"}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择日期",clearable:"",type:"date","value-format":"yyyy-MM-dd"},model:{value:e.searchForm.endTime,callback:function(t){e.$set(e.searchForm,"endTime",t)},expression:"searchForm.endTime"}})],1)],1)],1)],1),t("el-form-item",{attrs:{label:"分公司:",prop:"searchCompanyId"}},[t("el-select",{staticClass:"width_200",attrs:{multiple:"",filterable:"",placeholder:"请选择",clearable:""},model:{value:e.searchForm.searchCompanyId,callback:function(t){e.$set(e.searchForm,"searchCompanyId",t)},expression:"searchForm.searchCompanyId"}},e._l(e.companyOptions,(function(e){return t("el-option",{key:e.id,attrs:{label:e.desc,value:e.id}})})),1)],1),t("el-form-item",{attrs:{label:"当前处理人:",prop:"handlers"}},[t("el-select",{staticClass:"width_250",attrs:{multiple:"",filterable:"",placeholder:"请选择",clearable:""},model:{value:e.searchForm.handlers,callback:function(t){e.$set(e.searchForm,"handlers",t)},expression:"searchForm.handlers"}},e._l(e.employeeListOptions,(function(e){return t("el-option",{key:e.jobNo,attrs:{label:e.name,value:e.jobNo}})})),1)],1),t("el-form-item",{attrs:{label:"被保险人身份证号:",prop:"deliveryId"}},[t("el-input",{staticClass:"width_200",attrs:{maxlength:"20",placeholder:"请输入",clearable:""},model:{value:e.searchForm.deliveryId,callback:function(t){e.$set(e.searchForm,"deliveryId",t)},expression:"searchForm.deliveryId"}})],1),t("el-form-item",{attrs:{label:"姓名:",prop:"deliveryName"}},[t("el-input",{staticClass:"width_200",attrs:{maxlength:"20",placeholder:"请输入",clearable:""},model:{value:e.searchForm.deliveryName,callback:function(t){e.$set(e.searchForm,"deliveryName",t)},expression:"searchForm.deliveryName"}})],1),t("el-form-item",[t("el-button",{staticStyle:{"margin-left":"0.2rem"},attrs:{type:"primary"},on:{click:e.searchTable}},[e._v("查询")]),t("el-button",{staticStyle:{"margin-left":"0.2rem"},attrs:{type:"warning"},on:{click:e.resetForm}},[e._v("重置")]),t("el-button",{staticStyle:{"margin-left":"0.2rem"},attrs:{type:"primary"},on:{click:e.download}},[e._v("下载")])],1)],1)],1),t("div",{staticClass:"table_box public_box"},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableLoading,expression:"tableLoading"}],ref:"filterTable",attrs:{data:e.tableData,height:e.tableHeight}},[t("el-table-column",{attrs:{prop:"policyNo",label:"保单号",width:"200"}}),t("el-table-column",{attrs:{prop:"nameOfInsured",label:"被保人",width:"200"},scopedSlots:e._u([{key:"default",fn:function(e){return[t("overflow-txt",{attrs:{txt:e.row.nameOfInsured}})]}}])}),t("el-table-column",{attrs:{prop:"accidentProvince",label:"分公司"}}),t("el-table-column",{attrs:{prop:"accidentCity",label:"机构(城市)",width:"120"}}),t("el-table-column",{attrs:{prop:"insureTypeName",label:"险种",width:"200"},scopedSlots:e._u([{key:"default",fn:function(e){return[t("overflow-txt",{attrs:{txt:e.row.insureTypeName}})]}}])}),t("el-table-column",{attrs:{prop:"productType",label:"产品名称",width:"200"},scopedSlots:e._u([{key:"default",fn:function(e){return[t("overflow-txt",{attrs:{txt:e.row.productType}})]}}])}),t("el-table-column",{attrs:{prop:"reportTime",label:"报案时间",width:"140"}}),t("el-table-column",{attrs:{prop:"accidentTime",label:"出险时间",width:"140"}}),t("el-table-column",{attrs:{prop:"reportTime",label:"流入时间",width:"140"}}),t("el-table-column",{attrs:{prop:"durationOfClosedClaims",label:"案件总用时",width:"140"}}),t("el-table-column",{attrs:{prop:"humanInjury",label:"是否人伤"}}),t("el-table-column",{attrs:{prop:"accidentProperty",label:"损失类型"}}),t("el-table-column",{attrs:{prop:"currentStatusDesc",label:"案件状态"}}),t("el-table-column",{attrs:{prop:"predictPayAmount",label:"估损金额"}}),t("el-table-column",{attrs:{prop:"currentProcessor",label:"当前处理人",width:"140"}})],1),t("el-pagination",{attrs:{"current-page":e.searchForm.page,layout:"total, sizes, prev, pager, next, jumper","page-sizes":[10,20],"page-size":e.searchForm.size,total:e.searchForm.total},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1)])},n=[],s=(i("1d88"),i("84ae"),i("13bd"),{data(){return{tableHeight:null,pageTitle:"",searchForm:{policyNo:"",startTime:"",endTime:"",searchCompanyId:[],handlers:[],status:[],deliveryId:"",deliveryName:"",page:1,size:10,total:0},detailPageForm:{labelId:null,page:1,size:10,total:0},tagDataForm:{id:"",delDetails:[],labelName:"",typeStr:"",labelDetails:[{id:null,labelId:null,filed:"",labelItems:[{value:""}]}]},tagDataRules:{labelName:[{required:!0,message:"请输入标签名称",trigger:"blur"}],type:[{required:!0,message:"请选择标签类型",trigger:"blur"}]},tagTypeOption:[],sourceOption:[],itemOption:[],tableData:[],value:"",input:"",tableData:[],tmpTagDataForm:null,tableLoading:!1,companyOptions:[],employeeListOptions:[]}},mounted(){window.onresize=()=>{this.calcHeight()},this.calcHeight(),this.pageTitle=this.$route.meta.title,this.getTypeDic(),this.getSourceDic(),this.getTableData(),this.getItemDic(),this.getCompany(),this.getEmployeeList()},methods:{calcHeight(){let e=document.querySelector(".register_tabs")?document.querySelector(".register_tabs").clientHeight:0,t=document.querySelector(".public_box")?document.querySelector(".public_box").clientHeight:0,i=document.querySelector(".el-pagination")?document.querySelector(".el-pagination").clientHeight:0,r=0,n=175;this.tableHeight=window.innerHeight-e-t-i-r-n,this.tableHeight=this.tableHeight<200?200:this.tableHeight,this.$forceUpdate()},getCompany(){this.instance.post("/caseSearch/getCompany",{}).then(e=>{let t=e.data;1==t.code&&(this.companyOptions=t.data)})},getEmployeeList(){this.instance.post("/caseSearch/employeeList",{}).then(e=>{let t=e.data;1==t.code&&(this.employeeListOptions=t.data)})},getItemDic(){this.instance.get("/caseRiskLabel/itemDic",{params:{}}).then(e=>{let t=e.data;1==t.code&&(this.itemOption=t.data)})},getTypeDic(){this.instance.get("/caseRiskLabel/typeDic",{params:{}}).then(e=>{let t=e.data;1==t.code&&(this.tagTypeOption=t.data)})},getSourceDic(){this.instance.get("/caseRiskLabel/sourceDic",{params:{}}).then(e=>{let t=e.data;1==t.code&&(this.sourceOption=t.data)})},searchTable(){this.searchForm.page=1,this.getTableData()},resetForm(){this.$refs.searchForm&&this.$refs.searchForm.resetFields()},handleCurrentChange(e,t){this.searchForm.page=e,this.getTableData()},handleSizeChange(e,t){this.searchForm.size=e,this.searchForm.page=1,this.getTableData()},download(){let e=JSON.parse(JSON.stringify(this.searchForm));this.instance({method:"post",url:"/caseSearch/download",data:e,responseType:"blob"}).then(e=>{let t=window.URL.createObjectURL(new Blob([e.data])),i=document.createElement("a");i.style.display="none",i.href=t,i.setAttribute("download",decodeURIComponent(e.headers.filename)),document.body.appendChild(i),i.click()})},getTableData(){let e=JSON.parse(JSON.stringify(this.searchForm));this.tableLoading=!0,this.instance.post("/caseSearch/search",e).then(e=>{this.tableLoading=!1;let t=e.data;1==t.code?(this.tableData=t.data.list,this.searchForm.total=t.data.total):this.$message.error(e.message)})}}}),o=s,a=(i("580d"),i("1805")),l=Object(a["a"])(o,r,n,!1,null,"2fe8c35d",null);t["default"]=l.exports},c060:function(e,t,i){"use strict";i("0a1b")},c0ae:function(e,t,i){"use strict";var r=i("dbc3");e.exports="NODE"===r},c235:function(e,t,i){},c462:function(e,t,i){"use strict";i("8974")},c614:function(e,t,i){"use strict";i("4f8c")},c7e1:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAkxJREFUSEu1ljtMFFEUhr9/HhhM1MZmWUBKYmOr8VHZWJqYNRqMlbExiJKwVtqYyBLAR6tREzVqtNEYYmEpMbYa7dQIsltoY4gguzP3mFmFwCwwIu6Uc879v3sec86IVZ72izN5F4ZHEfvM3A7QVoFv0lfMvZX0TBY+mSrqy0oyWs6QL1m7U+0SxhHAX+0SQAzcCggvTBZVTvs2APLD0SEXu5vApgzhtHlaeD3lYvB0sWEJIFeKe5G7gtmykf0F0AFnKsWWa/O+C0JtQ9FhM3cf+FfxeU0nvIPzkdTF2gZnO5H/xmBLxi1fIhlmezP8pgPC7qQmvwGl6m2D41kpMFlB+A5zj7N8gRuVYssJtY1Yh0XRR7Ag69AaAbFH2KXcYO0sspEs8cS+RgASp5QrzY2BDjQDAPZcuVL1M9DZFIA0lQB+ABtTgHHkXU5DPau+VthqcRTvbLyQnU53l6CaAH4CG5YckMYNdzUt4lvLK5gllr+rYSSY1wu2J/V+NgF8ArqakiKYUK5UGwNrSpHr0zZfqvU7bLgZEQgNqG1kpoM4/GBmYRZkjd9B7NeibfVRkRuK7mCu578CxN3KQMuxOqB9dCYfV4P3iM2rQqRxzBKX3VnDziPcnmy6hdGcH5wrOOnBuse1ZJ6pMFUM6gMxtXCqfcDoOiAGfl+l6DcunPmQ65Gg65npSuVI8B15J8sDwcPFpmW3V70mtaAkqZDdXYqE3cPi8+VzrRMNX/hqxUpaWFFYcLj9oO6k4f78RXwDe4d5LxQGj8r9mlxJ5xc0Zg1/p29cmwAAAABJRU5ErkJggg=="},c926:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"home"},[t("div",{staticClass:"main"},[t("div",{staticClass:"search_box"},[t("div",{staticClass:"search_input"},[t("el-input",{attrs:{placeholder:"请输入案件号",clearable:""},model:{value:e.searchBase,callback:function(t){e.searchBase=t},expression:"searchBase"}}),t("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("搜索")])],1),t("div",{staticClass:"brand_box"},[t("div",[t("p",[e._v(e._s(e.vehicleDetail.amBrandName+"-"+e.vehicleDetail.amSeriesName))]),t("span",[e._v(e._s(e.vehicleDetail.amVehicleName))])])])]),t("div",{staticClass:"result_box"},[t("div",{staticClass:"search_input search_input2"},[t("div",[t("el-input",{attrs:{placeholder:"请输入零配件名称/OE码",clearable:""},model:{value:e.searchParts,callback:function(t){e.searchParts=t},expression:"searchParts"}}),t("el-button",{attrs:{type:"primary"},on:{click:e.handleSearchParts}},[e._v("搜索")])],1),t("div",{staticClass:"city_box"},[t("span",{staticClass:"location_icon"}),t("b",{staticClass:"city_hint"},[e._v("查询城市:")]),t("el-dropdown",{staticClass:"city_dropdown",attrs:{trigger:"click"}},[t("span",{staticClass:"el-dropdown-link"},[e._v(" "+e._s(e.defaultProvince.province)+" | "+e._s(e.defaultProvince.region)+" ")]),t("el-dropdown-menu",{staticStyle:{"max-height":"4rem",overflow:"auto"}},e._l(e.provinceData,(function(i,r){return t("el-dropdown-item",{key:r,attrs:{command:i.province},nativeOn:{click:function(t){return e.clickDropdown(i)}}},[e._v(e._s(i.province))])})),1)],1)],1)]),t("div",{staticClass:"vehicle_main"},[t("el-menu",{staticClass:"el-menu-vertical-demo vehicle_menu",attrs:{"default-active":"2"}},[e._l(e.menusData,(function(i,r){return[1==i.isLeaf?t("el-menu-item",{attrs:{index:r.toString()},on:{click:function(t){return e.menusSelect(i)}}},[t("span",[e._v(e._s(i.partGroupName))])]):t("el-submenu",{attrs:{index:r.toString()}},[t("template",{slot:"title"},[t("span",[e._v(e._s(i.partGroupName))])]),e._l(i.child,(function(i,n){return[1==i.isLeaf?t("el-menu-item",{attrs:{index:r+"-"+n},on:{click:function(t){return e.menusSelect(i)}}},[t("span",{staticStyle:{"padding-left":"0.1rem !important"}},[e._v(e._s(i.partGroupName))])]):t("el-submenu",{attrs:{index:r+"-"+n}},[t("template",{slot:"title"},[t("span",{staticStyle:{"padding-left":"0.1rem !important"}},[e._v(" "+e._s(i.partGroupName)+" ")])]),e._l(i.child,(function(i,s){return t("el-menu-item",{key:s,staticStyle:{"padding-left":"0.3rem !important"},attrs:{index:r+"-"+n+"-"+s},on:{click:function(t){return e.menusSelect(i)}}},[e._v(" "+e._s(i.partGroupName)+" ")])}))],2)]}))],2)]}))],2),t("el-table",{staticClass:"vehicle_table",attrs:{data:e.tableData,size:"small",height:"4.6rem","empty-text":"暂无数据"}},[t("el-table-column",{attrs:{prop:"name",label:"零件名称"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("div",{staticClass:"plus_cell"},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.checkedPartsId.includes(r.row.oeId+r.row.oeName),expression:"!checkedPartsId.includes(scope.row.oeId + scope.row.oeName)"}],on:{click:function(t){return e.clickRow(r.row,"plus")}}},[t("img",{attrs:{src:i("c7e1")}})]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.checkedPartsId.includes(r.row.oeId+r.row.oeName),expression:"checkedPartsId.includes(scope.row.oeId + scope.row.oeName)"}],on:{click:function(t){return e.clickRow(r.row,"minus")}}},[t("img",{attrs:{src:i("865a")}})]),t("span",[e._v(e._s(r.row.stdPartName))])])]}}])}),t("el-table-column",{attrs:{prop:"oeName",label:"原厂零件名称"}}),t("el-table-column",{attrs:{prop:"oe",label:"零件号"}})],1)],1)]),t("div",{staticClass:"parts_box"},[t("div",{staticClass:"parts_top"},[t("p",[e._v("我的配件工单")]),t("div",{staticClass:"parts_totle"},[t("div",[e._v("您已添加配件:"+e._s(e.myPartsData.length)+"个;价格合计:"+e._s(e.totalPrice)+"元")]),t("el-button",{staticClass:"download_btn",attrs:{type:"primary",size:"mini"},on:{click:e.handleDownload}},[e._v(" 工单下载"),t("i",{staticClass:"el-icon-download el-icon--right"})]),t("el-popover",{attrs:{placement:"top",width:"400"},model:{value:e.baseParameter.visible,callback:function(t){e.$set(e.baseParameter,"visible",t)},expression:"baseParameter.visible"}},[t("p",[e._v("请输入您的宝贵建议:")]),t("el-input",{staticStyle:{margin:"10px 0"},attrs:{type:"textarea",rows:5,placeholder:"请输入内容"},model:{value:e.baseParameter.textarea,callback:function(t){e.$set(e.baseParameter,"textarea",t)},expression:"baseParameter.textarea"}}),t("div",{staticStyle:{"text-align":"right",margin:"0"}},[t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){e.baseParameter.visible=!1}}},[e._v("取消")]),t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitMessage}},[e._v("确定")])],1),t("el-button",{attrs:{slot:"reference",size:"mini",type:"success"},slot:"reference"},[e._v("留言板")])],1)],1)]),t("div",{staticClass:"parts_middle disabled_null_border"},[t("el-table",{attrs:{data:e.myPartsData,size:"small","table-layout":"auto","empty-text":"暂无数据"},on:{"selection-change":e.handleSelectionChange}},[t("el-table-column",{attrs:{type:"selection",width:"45"}}),t("el-table-column",{attrs:{label:"零件名称"},scopedSlots:e._u([{key:"default",fn:function(i){return[i.row.oe?t("div",[e._v(e._s(i.row.stdPartName))]):t("div",{staticClass:"table_input"},[t("el-input",{attrs:{disabled:e.submitDisabled,size:"small"},model:{value:i.row.stdPartName,callback:function(t){e.$set(i.row,"stdPartName",t)},expression:"scope.row.stdPartName"}})],1)]}}])}),t("el-table-column",{attrs:{label:"原厂零件名称"},scopedSlots:e._u([{key:"default",fn:function(i){return[i.row.oe?t("div",[e._v(e._s(i.row.oeName))]):t("div",{staticClass:"table_input"},[t("el-input",{attrs:{disabled:"",size:"small"},model:{value:i.row.oeName,callback:function(t){e.$set(i.row,"oeName",t)},expression:"scope.row.oeName"}})],1)]}}])}),t("el-table-column",{attrs:{label:"零件号"},scopedSlots:e._u([{key:"default",fn:function(i){return[i.row.oe?t("div",[e._v(e._s(i.row.oe))]):t("div",{staticClass:"table_input"},[t("el-input",{attrs:{disabled:"",size:"small"},model:{value:i.row.oe,callback:function(t){e.$set(i.row,"oe",t)},expression:"scope.row.oe"}})],1)]}}])}),t("el-table-column",{attrs:{label:"零件维修/更换",width:"100"},scopedSlots:e._u([{key:"default",fn:function(i){return[t("div",[t("el-select",{staticClass:"m-2",attrs:{disabled:e.submitDisabled,placeholder:"Select",size:"default"},on:{change:function(t){return e.partsTypeChange(i.row)}},model:{value:i.row.operationType,callback:function(t){e.$set(i.row,"operationType",t)},expression:"scope.row.operationType"}},[t("el-option",{attrs:{label:"维修",value:"1"}}),t("el-option",{attrs:{label:"更换",value:"2"}})],1)],1)]}}])}),t("el-table-column",{attrs:{label:"装配数量(个)",width:"90"},scopedSlots:e._u([{key:"default",fn:function(i){return[i.row.oe?t("div",[e._v(e._s(i.row.partNum))]):t("div",{staticClass:"table_input"},[t("el-input",{attrs:{disabled:e.submitDisabled,type:"number",size:"small"},model:{value:i.row.partNum,callback:function(t){e.$set(i.row,"partNum",t)},expression:"scope.row.partNum"}})],1)]}}])}),t("el-table-column",{attrs:{label:"零件报价(元)",width:"90"},scopedSlots:e._u([{key:"default",fn:function(i){return[t("div",{staticClass:"table_input"},[t("el-input",{attrs:{disabled:!i.row.disabled||e.submitDisabled,type:"number",size:"small"},model:{value:i.row.partsOffer,callback:function(t){e.$set(i.row,"partsOffer",t)},expression:"scope.row.partsOffer"}})],1)]}}])}),t("el-table-column",{attrs:{label:"拆装报价(元)",width:"150"},scopedSlots:e._u([{key:"default",fn:function(i){return[t("div",{staticClass:"table_input"},[t("el-input",{attrs:{disabled:e.submitDisabled,type:"number",size:"small"},model:{value:i.row.installOffer,callback:function(t){e.$set(i.row,"installOffer",t)},expression:"scope.row.installOffer"}})],1)]}}])}),t("el-table-column",{attrs:{label:"修补费报价(元)",width:"150"},scopedSlots:e._u([{key:"default",fn:function(i){return[t("div",{staticClass:"table_input"},[t("el-input",{attrs:{disabled:i.row.disabled||e.submitDisabled,type:"number",size:"small"},model:{value:i.row.repairOffer,callback:function(t){e.$set(i.row,"repairOffer",t)},expression:"scope.row.repairOffer"}})],1)]}}])}),t("el-table-column",{attrs:{label:"喷漆报价(元)",width:"150"},scopedSlots:e._u([{key:"default",fn:function(i){return[t("div",{staticClass:"table_input"},[t("el-input",{attrs:{disabled:e.submitDisabled,type:"number",size:"small"},model:{value:i.row.paintingOffer,callback:function(t){e.$set(i.row,"paintingOffer",t)},expression:"scope.row.paintingOffer"}})],1)]}}])}),t("el-table-column",{attrs:{label:"报价异常提示"},scopedSlots:e._u([{key:"default",fn:function(i){return[t("div",[t("span",{staticStyle:{color:"#cc4f4f"}},[e._v(e._s(i.row.tips))])])]}}])}),t("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("div",{staticClass:"delete_icon",on:{click:function(t){return e.handleDelete("single",r.row)}}},[t("img",{attrs:{src:i("db4d")}})])]}}])})],1)],1),t("div",{staticClass:"parts_bottom"},[t("div",[t("el-button",{attrs:{size:"mini",type:"primary",plain:"",icon:"el-icon-plus"},on:{click:e.handleAdd}},[e._v("自定义添加")]),t("el-button",{staticStyle:{"margin-left":"0.3rem"},attrs:{size:"mini",type:"danger",plain:"",icon:"el-icon-delete"},on:{click:function(t){return e.handleDelete("batch")}}},[e._v("批量删除")])],1),t("div",[t("el-button",{attrs:{disabled:e.submitDisabled,size:"mini",type:"primary",icon:"el-icon-top"},on:{click:e.checkWorkOrders}},[e._v("提交报价")])],1)])])]),t("el-dialog",{attrs:{visible:e.centerDialogVisible,"modal-append-to-body":!1,title:e.checkedPartName,width:"56%"},on:{"update:visible":function(t){e.centerDialogVisible=t}}},[t("div",[t("img",{attrs:{src:e.checkedPartImg.picUrl}})])]),t("result-modal",{attrs:{tipsNum:e.baseParameter.tipsNum,pageType:e.submitType,modalVisible:e.modalVisible},on:{handleReturn:e.handleReturn,addWorkOrders:e.addWorkOrders}})],1)},n=[],s=(i("f16c"),i("45d2"),i("4e1c"),i("8160"),i("9052"),i("1d88"),i("84ae"),i("13bd"),i("569d")),o=i("96b4"),a={name:"VehicleInfo",components:{ResultModal:s["default"]},data(){return{vehicleDetail:"",modalVisible:!1,partForm:{},submitType:"",checkedPartsId:[],myPartsData:[],multipleSelection:[],menusData:[],tableData:[],searchBase:"",searchParts:"",defaultProvince:{},submitDisabled:!1,basePartsPrice:[],checkedPartImg:{},checkedPartName:"选中的零件名称",centerDialogVisible:!1,baseParameter:{vin:"",textarea:"",tipsNum:0,visible:!1,channelType:"",partGroupId:"",amVehicleId:""},provinceData:[{code:"110000",province:"北京市",region:"华北区",oeRegion:"华北区"},{code:"120000",province:"天津市",region:"华北区",oeRegion:"华北区"},{code:"130000",province:"河北省",region:"华北区",oeRegion:"华北区"},{code:"140000",province:"山西省",region:"华北区",oeRegion:"华北区"},{code:"150000",province:"内蒙古",region:"华北区",oeRegion:"华北区"},{code:"210000",province:"辽宁省",region:"东北区",oeRegion:"东北区"},{code:"220000",province:"吉林省",region:"东北区",oeRegion:"东北区"},{code:"230000",province:"黑龙江省",region:"东北区",oeRegion:"东北区"},{code:"310000",province:"上海市",region:"华东区",oeRegion:"华东区"},{code:"320000",province:"江苏省",region:"华东区",oeRegion:"华东区"},{code:"330000",province:"浙江省",region:"华东区",oeRegion:"华东区"},{code:"340000",province:"安徽省",region:"华东区",oeRegion:"华东区"},{code:"350000",province:"福建省",region:"华东区",oeRegion:"华南区"},{code:"360000",province:"江西省",region:"华东区",oeRegion:"华南区"},{code:"370000",province:"山东省",region:"华东区",oeRegion:"华北区"},{code:"410000",province:"河南省",region:"华中区",oeRegion:"华北区"},{code:"420000",province:"湖北省",region:"华中区",oeRegion:"华南区"},{code:"430000",province:"湖南省",region:"华中区",oeRegion:"华南区"},{code:"440000",province:"广东省",region:"华南区",oeRegion:"华南区"},{code:"450000",province:"广西省",region:"华南区",oeRegion:"华南区"},{code:"460000",province:"海南省",region:"华南区",oeRegion:"华南区"},{code:"500000",province:"重庆市",region:"西南区",oeRegion:"西部区"},{code:"510000",province:"四川省",region:"西南区",oeRegion:"西部区"},{code:"520000",province:"贵州省",region:"西南区",oeRegion:"华南区"},{code:"530000",province:"云南省",region:"西南区",oeRegion:"西部区"},{code:"540000",province:"西藏省",region:"西南区",oeRegion:"西部区"},{code:"610000",province:"陕西省",region:"西北区",oeRegion:"西部区"},{code:"620000",province:"甘肃省",region:"西北区",oeRegion:"西部区"},{code:"630000",province:"青海省",region:"西北区",oeRegion:"西部区"},{code:"640000",province:"宁夏省",region:"西北区",oeRegion:"西部区"},{code:"650000",province:"新疆省",region:"西北区",oeRegion:"西部区"},{code:"710000",province:"台湾省",region:"华东区",oeRegion:"港澳台"},{code:"810000",province:"香港",region:"华南区",oeRegion:"港澳台"},{code:"820000",province:"澳门",region:"华南区",oeRegion:"港澳台"}]}},computed:{totalPrice(){let e=0;return this.myPartsData.length>0&&this.myPartsData.forEach((t,i)=>{e+=Number(t.partNum)*(Number(t.partsOffer)+Number(t.installOffer)+Number(t.repairOffer)+Number(t.paintingOffer))}),e}},methods:{getVehicleStructure(){this.instance({method:"post",url:"/easyepc/getVehicleStructure",data:{amVehicleId:this.baseParameter.amVehicleId},headers:{}}).then(e=>{var t=e.data;if(1==t.code){this.baseParameter.amVehicleId=t.data.amVehicleId;let e=[];t.data.vehicleStructures.length>0&&(t.data.vehicleStructures.forEach((t,i)=>{t.child=[],1==t.partGroupLevel&&e.push(t)}),t.data.vehicleStructures.forEach((t,i)=>{2==t.partGroupLevel&&e.forEach((e,i)=>{e.partGroupId==t.parentId&&e.child.push(t)})}),t.data.vehicleStructures.forEach((t,i)=>{3==t.partGroupLevel&&e.forEach((e,i)=>{for(let r=0,n=e.child.length;r{let t=e.data;1==t.code&&(t.data.partsGroup.length>0&&t.data.partsGroup.forEach((e,i)=>{e.operationType="1",e.partsOffer=0,e.installOffer=0,e.repairOffer=0,e.paintingOffer=0,e.tips="",e.vin=t.data.vin}),this.tableData=t.data.partsGroup)})},loadPartImg(e){this.checkedPartImg=[],this.checkedPartName=e.oeName,this.instance({method:"post",url:"/easyepc/getPicByOeId",data:{amVehicleId:this.baseParameter.amVehicleId,partGroupId:this.baseParameter.partGroupId,oeId:e.oeId},headers:{}}).then(e=>{let t=e.data;1==t.code?(this.checkedPartImg=t.data[0],this.centerDialogVisible=!0):this.$message.error(t.message)})},getPartsPrice(e){this.instance({method:"post",url:"/easyepc/getPartsPrice",data:{oeId:e.oeId},headers:{}}).then(e=>{let t=e.data;1==t.code&&(this.basePartsPrice.push(t.data),this.myPartsData.forEach((e,i)=>{e.oeId==t.data.oeId&&(e.guidePrice=t.data.guidePrice)}))})},getTypeByOE(){this.instance({method:"post",url:"/easyepc/getTypeByOE",data:{oe:"",amBrandId:""},headers:{}}).then(e=>{e.data.code})},getProvincePrice(e){this.instance({method:"post",url:"/easyepc/getProvincePrice",data:{oe:e.oe,brandId:e.priceBrandId,provinceCode:this.defaultProvince.code},headers:{}}).then(e=>{let t=e.data;1==t.code&&this.myPartsData.forEach((e,i)=>{e.oe==t.data.oe&&(e.marketPrice=t.data.marketPrice)})})},handleSearch(){this.$router.push({path:"/calculatorTool/carDamage",query:{vid:this.searchBase}})},handleSearchParts(){this.instance({method:"post",url:"/easyepc/getPartsByNameOrOE",data:{searchWord:this.searchParts,amVehicleId:this.baseParameter.amVehicleId,vin:this.vehicleDetail.vin},headers:{}}).then(e=>{let t=e.data;1==t.code&&(t.data.length>0&&t.data.forEach((e,t)=>{e.operationType="1",e.partsOffer=0,e.installOffer=0,e.repairOffer=0,e.paintingOffer=0,e.tips="",e.vin=this.vehicleDetail.vin}),this.tableData=t.data)})},clickRow(e,t){if(this.submitDisabled=!1,"plus"==t)e.repairChannel=this.baseParameter.channelType,e.amVehicleId=this.baseParameter.amVehicleId,e.operationType="1",e.partsOffer=0,e.installOffer=0,e.repairOffer=0,e.paintingOffer=0,this.myPartsData.push(e),this.checkedPartsId.push(e.oeId+e.oeName),this.getPartsPrice(e);else{let t=this.myPartsData.findIndex((t,i)=>t.oeId+t.oeName==e.oeId+e.oeName);this.myPartsData.splice(t,1),this.checkedPartsId.remove(e.oeId+e.oeName)}},clickDropdown(e){this.$confirm("更换城市后,将为您重新查询当前配件价格,是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.defaultProvince=e}).catch(()=>{})},handleSelectionChange(e){this.multipleSelection=e},partsTypeChange(e){"2"==e.operationType?(e.disabled=!0,e.repairOffer=0):(e.disabled=!1,e.partsOffer=0)},handleDelete(e,t){if("batch"==e){if(!(this.multipleSelection.length>0))return this.$message.error("抱歉,请先选择要删除的配件!"),!1;{let e=this.myPartsData.filter(e=>{let t=this.multipleSelection.map(e=>e.oeId);return!t.includes(e.oeId)});this.multipleSelection.forEach((e,t)=>{this.checkedPartsId.remove(e.oeId+e.oeName)}),this.multipleSelection=[],this.myPartsData=e}}else{let e=this.myPartsData.findIndex((e,i)=>e.oeId==t.oeId);this.myPartsData.splice(e,1),this.checkedPartsId.remove(t.oeId+t.oeName)}},handleDownload(){if(!(this.myPartsData.length>0))return this.$message.error("抱歉,请先添加配件!"),!1;var e=!0;if(this.myPartsData.forEach((t,i)=>{t.addTime||(e=!1)}),0==e)return this.$message.error("抱歉,请先提交报价,再下载工单!"),!1;this.instance({method:"post",url:"/easyepc/exportWorkOrderDetail",data:[this.myPartsData[0]],responseType:"blob",headers:{}}).then(e=>{let t=window.URL.createObjectURL(new Blob([e.data])),i=document.createElement("a");i.style.display="none",i.href=t,i.setAttribute("download","车损计算器下载工单.zip"),document.body.appendChild(i),i.click()}).catch((function(e){console.log(e)}))},handleAdd(){this.submitDisabled=!1,this.myPartsData.push({vin:this.vehicleDetail.vin,oeId:Object(o["a"])(),oeName:"",partNum:1,oe:"",stdPartName:"",tips:"",partsOffer:0,installOffer:0,repairOffer:0,paintingOffer:0,operationType:"1"})},handleReturn(){this.modalVisible=!1},checkWorkOrders(){if(this.myPartsData.length>0){let e=!0,t="";if(this.myPartsData.forEach((i,r)=>{if(i.stdPartName||(t="抱歉,请填写自定义零件名称!",e=!1),!i.partNum>0&&(t="抱歉,请填写装配数量且大于0!",e=!1),2==i.operationType&&!i.partsOffer>0&&(t="抱歉,选择零件更换时,请填写零件报价且大于0!",e=!1),i.caseNo=this.baseParameter.caseNo,i.jobNo=this.baseParameter.jobNo,i.vehiclePrice=this.vehicleDetail.price,i.amVehicleName=this.vehicleDetail.amVehicleName,i.vehicleBrand=this.vehicleDetail.amBrandName+"-"+this.vehicleDetail.amSeriesName,!i.marketPrice>0){let e=this.defaultProvince.oeRegion;this.basePartsPrice.length>0&&this.basePartsPrice.forEach((t,r)=>{t.oeId==i.oeId&&("华东区"==e?i.marketPrice=t.marketPriceHd:"东北区"==e?i.marketPrice=t.marketPriceDb:"华北区"==e?i.marketPrice=t.marketPriceHb:"西部区"==e?i.marketPrice=t.marketPriceXb:"华南区"==e&&(i.marketPrice=t.marketPriceHn))})}}),!e)return this.$message.error(t),!1;this.instance({method:"post",url:"/easyepc/checkWorkOrders",data:this.myPartsData,headers:{}}).then(e=>{let t=e.data;if(this.modalVisible=!0,1==t.code?(this.submitType="success",this.submitDisabled=!0,this.linkNewPage(t.data)):0==t.code?(this.submitType="wraning",this.submitDisabled=!1,t.data||this.$message.error(t.message)):2==t.code&&this.$message.error(t.message),t.data.damageWorkOrderList.length>0){let e=0;t.data.damageWorkOrderList.forEach((t,i)=>{t.tips.trim()&&e++,this.partsTypeChange(t)}),this.baseParameter.tipsNum=e}this.myPartsData=t.data.damageWorkOrderList})}else this.$message.error("抱歉,请先添加配件!")},addWorkOrders(){this.instance({method:"post",url:"/easyepc/addWorkOrders",data:this.myPartsData,headers:{}}).then(e=>{let t=e.data;1==t.code?(this.submitDisabled=!0,this.myPartsData=t.data.damageWorkOrderList,this.linkNewPage(t.data),this.submitType="success"):this.$message.error(t.message)})},linkNewPage(e){},submitMessage(e){this.instance({method:"post",url:"/message/addTMessageBoard",data:{messageBoard:this.baseParameter.textarea,sysUserId:this.baseParameter.userid},headers:{}}).then(e=>{let t=e.data;1==t.code&&(this.baseParameter.visible=!1,this.baseParameter.textarea=""),this.$message(t.message)})}},mounted(){this.defaultProvince=this.provinceData[0];let e=localStorage.getItem("userInfo");e&&(e=JSON.parse(e),this.baseParameter.jobNo=e.jobNo);let t=localStorage.getItem("vehicleDetail");t&&(this.vehicleDetail=JSON.parse(t)||{}),this.baseParameter.amVehicleId=this.$route.query.vid,this.baseParameter.caseNo=this.$route.query.caseNo,this.baseParameter.channelType=this.$route.query.type,this.getVehicleStructure()}},l=a,c=(i("bc72"),i("1805")),u=Object(c["a"])(l,r,n,!1,null,"244ab0c0",null);t["default"]=u.exports},c9ec:function(e,t,i){"use strict";var r=i("5270");e.exports=function(e,t){var i=[][e];return!!i&&r((function(){i.call(null,t||function(){return 1},1)}))}},ca96:function(e,t,i){"use strict";i("c235")},caa1:function(e,t,i){},cb0e:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"module_wrap box_border",attrs:{"element-loading-text":"数据加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"transparent"}},[t("div",{staticClass:"box_title box_title_radio"},[t("span",[e._v("报案时效统计")]),t("div",{directives:[{name:"show",rawName:"v-show",value:0,expression:"0"}],staticClass:"radio_group"},[t("el-radio-group",{attrs:{size:"mini"},on:{change:e.radioChange},model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[t("el-radio-button",{attrs:{label:"骑手报案"}}),t("el-radio-button",{attrs:{label:"保司报案"}})],1)],1)]),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.loading,expression:"!loading"}],staticStyle:{height:"100%"}},[t("div",{attrs:{id:"distribution_pie"}})])])},n=[],s=(i("f16c"),i("45d2"),i("8160"),i("ada4")),o={name:"ReportTime",props:{isCollapse:{type:Boolean,default:!0},navForm:{type:Object,default:{}}},watch:{isCollapse(){setTimeout(()=>{this.myChart&&this.myChart.resize()},600)},navForm:{deep:!0,handler(e){this.getData()}}},data(){return{topDays:[],newNumber:0,radio:"骑手报案",xAxisData:[],seriesData1:[],seriesData2:[],option:"",myChart:"",loading:!0}},mounted(){this.role=localStorage.getItem("role"),window.addEventListener("resize",()=>{this.myChart&&setTimeout(()=>{this.myChart.resize()},500)})},methods:{getData(){this.loading=!0,this.instance({method:"post",url:"/large/data/screen/getReportRiskCase",data:this.navForm,headers:{"Content-Type":"application/json;charset=UTF-8"}}).then(e=>{if(this.loading=!1,1==e.data.code){let t=e.data.data;this.loadCharts(t)}})},radioChange(){this.option&&("骑手报案"==this.radio?this.option.series[0].data=this.seriesData1:this.option.series[0].data=this.seriesData2,setTimeout(()=>{this.myChart.setOption(this.option)},100))},loadCharts(e){var t=document.getElementById("distribution_pie");t&&(this.myChart=s["init"](t,null,{renderer:"svg"}),this.xAxisData=[],this.seriesData1=[],this.seriesData2=[],e.caseRiskMoney.forEach((e,t)=>{this.seriesData1.push(e.amountCaseFiled),this.seriesData2.push(e.caseNumRatio),this.seriesData1.push(e.amountOfFirstCaseFiled),this.seriesData2.push(e.totalPayAmount)}),this.option={tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},grid:{top:30,left:"10",right:"10",bottom:"15",containLabel:!0},color:["#EFBD71","#DBEF69"],legend:{data:["首次报案时间","每次报案时间"],itemWidth:12,itemHeight:12,textStyle:{color:"#fff"},left:"center"},xAxis:[{type:"category",data:["24h报案率","48h报案率"],axisPointer:{type:"shadow"},axisLabel:{showMaxLabel:!0,textStyle:{color:"#fff"},width:60,overflow:"truncate",ellipsis:"..."}}],yAxis:[{type:"value",splitLine:{show:!1},axisLabel:{showMaxLabel:!0,textStyle:{color:"#fff"}}},{type:"value",splitLine:{show:!1}}],series:[{name:"首次报案时间",type:"bar",tooltip:{valueFormatter:function(e){return e+" %"}},data:this.seriesData1},{name:"每次报案时间",type:"bar",tooltip:{valueFormatter:function(e){return e+" %"}},data:this.seriesData2}]},this.myChart.setOption(this.option))}},updated(){this.myChart&&this.myChart.resize()}},a=o,l=(i("5cc7"),i("1805")),c=Object(l["a"])(a,r,n,!1,null,"1cc5a936",null);t["default"]=c.exports},d188:function(e,t,i){e.exports=i.p+"img/null.71fc0223.png"},d30f:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"module_wrap box_border",attrs:{"element-loading-text":"数据加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"transparent"}},[t("div",{staticClass:"box_title box_title_radio"},[t("span",[e._v(e._s("全国"==e.province?"全国车物损案均金额排行榜":"车物损案均金额统计"))])]),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.loading,expression:"!loading"}],staticStyle:{height:"55%"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:"全国"==e.province,expression:"province == '全国'"}],attrs:{id:"delay_report_bar"}}),t("div",{directives:[{name:"show",rawName:"v-show",value:"全国"!=e.province,expression:"province != '全国'"}],attrs:{id:"delay_report_bar2"}}),e.tableData.length>0?t("div",{staticClass:"tables_box"},[t("el-table",{attrs:{data:[e.tableData[0]],"max-height":"200"}},e._l(e.tableData,(function(i,r){return t("el-table-column",{key:r,attrs:{label:i.accItem,width:String(i.accAmount).length>5?"100":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._e(),e._v(" "+e._s(i.accAmount?i.accAmount:"--")+" 元 ")]}}],null,!0)})})),1)],1):e._e()])])},n=[],s=(i("f16c"),i("45d2"),i("8160"),i("9052"),i("ada4")),o={name:"DelayReport",props:{isCollapse:{type:Boolean,default:!0},navForm:{type:Object,default:{}}},watch:{isCollapse(){setTimeout(()=>{this.myChart&&this.myChart.resize()},600)},navForm:{immediate:!0,deep:!0,handler(e){this.province=e.accidentProvince,this.getData()}}},data(){return{topDays:[],newNumber:0,myChart:"",myChart2:"",option:"",province:"",radio:"数量",tableData:[],loading:!0}},mounted(){this.role=localStorage.getItem("role"),window.addEventListener("resize",()=>{this.myChart&&setTimeout(()=>{this.myChart.resize()},500)})},methods:{getData(){this.loading=!0,this.instance({method:"post",url:"/large/data/screen/vehicleItemRanking",data:this.navForm,headers:{"Content-Type":"application/json;charset=UTF-8"}}).then(e=>{if(1==e.data.code){this.loading=!1;let t=e.data.data;if(t.length>0){t=t.splice(0,20);const e=t.map(e=>({...e,accItem:this.$$abbreviateCity(e.accItem)}));this.loadCharts(e)}}})},loadCharts2(e){var t=document.getElementById("delay_report_bar2");if(!t)return;this.myChart2=s["init"](t,null,{renderer:"svg"});let i=[],r=[],n=[];e.forEach((e,t)=>{i.push(e.accItem),r.push(e.prvAmount),n.push(e.accAmount)}),this.tableData=e,this.$forceUpdate();let o={tooltip:{confine:!0,formatter:"{a}
{b}: {c}元",axisPointer:{type:"shadow"}},legend:{data:[this.province,"全国"],itemWidth:12,itemHeight:12,itemGap:20,textStyle:{color:"#fff"},left:"center"},grid:{top:25,left:"10",right:"10",bottom:"10",containLabel:!0},xAxis:{type:"category",splitLine:{show:!1},axisTick:{show:!0,alignWithLabel:!0},axisLabel:{showMaxLabel:!0,rotate:30,color:"#fff",width:70,overflow:"truncate",ellipsis:"..."},data:i},yAxis:{splitLine:{show:!1},axisTick:{show:!1},axisLabel:{color:"#fff",formatter:"{value} 元"}},series:[{type:"bar",itemStyle:{color:"#037B89"},stack:"total",emphasis:{focus:"series"},barMaxWidth:"40%",data:r},{name:"全国",type:"bar",itemStyle:{color:"#58AFC3"},emphasis:{focus:"series"},stack:"total",barMaxWidth:"35%",data:n}]};this.myChart2.setOption(o)},loadCharts(e){var t=document.getElementById("delay_report_bar");if(!t)return;this.myChart=s["init"](t,null,{renderer:"svg"});let i=[],r=[];e.forEach((e,t)=>{i.push(e.accItem),r.push(e.accAmount)}),this.tableData=e;var n={tooltip:{formatter:"{b0} : {c0}元",show:!0},grid:{top:20,left:"10",right:"10",bottom:"10",containLabel:!0},xAxis:{type:"category",axisLabel:{showMaxLabel:!0,rotate:40,color:"#fff",width:60,overflow:"truncate",ellipsis:"..."},axisTick:{alignWithLabel:!0},data:i},yAxis:{type:"value",axisLabel:{color:"#fff",formatter:"{value} 元"},splitLine:{show:!1},axisTick:{show:!1}},series:[{type:"bar",barWidth:"40%",data:r,label:{show:!1,position:"top",color:"#fff",formatter:"{c} %"},itemStyle:{color:new s["graphic"].LinearGradient(0,0,0,1,[{offset:0,color:"#FFFFFF"},{offset:1,color:"#F2B95D"}])}}]};this.myChart.setOption(n)}},updated(){this.myChart&&this.myChart.resize()}},a=o,l=(i("c462"),i("1805")),c=Object(l["a"])(a,r,n,!1,null,"cd614eec",null);t["default"]=c.exports},d5e0:function(e,t,i){},db4d:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAX9JREFUOE+V0r9Lw0AUB/DvpS1V1KE4FEV0cFAcpLRVRAUR/ImYdxR0EfSfcHXyD3AUugiugUBSqpMiDiqaSNHJRcFBF7XUirXW5EkLSgyF4k13X+7De/c4Ac+yUqkO4Tg5Btq9OYCScN3pRCZz9pML74WclMMO81bCMMa8uU2UBnCaMIydP9AmsqoBAy0C6AJw44UM9AjgDcBzNQ+WShO1iudSxhTm4wAwVxHi3dfm71Fh3g8wr8bi8YPfVi2i/Adz97hpFi9UdesuHF5f1jTHknKjzXG2+zKZJ4voXmEeiZvmQ11oEb0gGo0m0+mKLWUupCipQV2//R8kOm0OBFIDuv5oqepaK6D3m2axYcWrhYXIYDab97+7IbxU1U4WotcLFSGuG0JbygSYR3ww2xBeEk25QszXoOsywuHNpKYV6kKb6PC1UJiZPDr6Ollaam4qlyM1FwxyUtcfq/u60PfdFgGs/GQusDtkGHtemAUw+2d6Qhx+hkI0qmkl/1S/AfA874ZszYD0AAAAAElFTkSuQmCC"},dbc3:function(e,t,i){"use strict";var r=i("4994"),n=i("a985"),s=i("f3c1"),o=function(e){return n.slice(0,e.length)===e};e.exports=function(){return o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===s(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"}()},dc1f:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"module_wrap box_border",attrs:{"element-loading-text":"数据加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"transparent"}},[e._m(0),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.loading,expression:"!loading"}],staticStyle:{height:"55%"}},[t("div",{attrs:{id:"risk_point_pie"}})])])},n=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"box_title"},[t("b",[e._v("案件风险占比分布")]),t("span",[e._v("(D级为最高风险)")])])}],s=(i("f16c"),i("45d2"),i("8160"),i("ada4")),o={name:"RiskPoint",props:{isCollapse:{type:Boolean,default:!0},navForm:{type:Object,default:{}}},watch:{isCollapse(){setTimeout(()=>{this.myChart&&this.myChart.resize()},600)},navForm:{deep:!0,handler(e){this.province=e.accidentProvince,this.getData()}}},data(){return{topDays:[],newNumber:0,myChart:"",loading:!0}},mounted(){this.role=localStorage.getItem("role"),this.getData(),window.addEventListener("resize",()=>{this.myChart&&setTimeout(()=>{this.myChart.resize()},500)})},methods:{getData(){this.loading=!0,this.instance({method:"post",url:"/large/data/screen/caseLevelNum",data:this.navForm,headers:{"Content-Type":"application/json;charset=UTF-8"}}).then(e=>{if(this.loading=!1,1==e.data.code){let t=e.data.data;t.length>0&&this.loadCharts(t)}})},loadCharts(e){var t=document.getElementById("risk_point_pie");if(!t)return;this.myChart=s["init"](t,null,{renderer:"svg"});let i=[];e.forEach((e,t)=>{let r={value:e.caseLevelNum,name:e.caseLevel};i.push(r)});var r={color:["#8B5CF6","#EC4899","#FFB95A","#75E6E0"],tooltip:{trigger:"item",formatter:"{b}: {c}件 ({d}%)",confine:!0},legend:{bottom:"5%",itemWidth:12,itemHeight:12,textStyle:{color:"#fff"},left:"center"},series:[{type:"pie",radius:["35%","60%"],center:["50%","40%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},labelLine:{show:!1},data:i}]};this.myChart.setOption(r,!0)}},updated(){this.myChart&&this.myChart.resize()}},a=o,l=(i("8b33"),i("1805")),c=Object(l["a"])(a,r,n,!1,null,"44372e6b",null);t["default"]=c.exports},e3eb:function(e,t,i){},e75c:function(e,t,i){},e94e:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"case_card card_bottom-padding caseInfo"},[t("div",{staticClass:"card_content"},[t("div",{staticClass:"tab_content"},[t("div",{staticClass:"btn_group1"},[t("el-button",{attrs:{type:"primary"},on:{click:e.showUpload}},[e._v("点击上传")]),t("el-button",{attrs:{type:"primary"},on:{click:function(t){e.analyseStr=[]}}},[e._v("清除日志")])],1)])]),t("div",{staticClass:"analyseBox"},[e._l(e.analyseStr,(function(i,r){return[t("p",{key:r,class:{analyseStyle:1,errorTxt:i.indexOf("失败")>=0}},[e._v(e._s(i))])]}))],2),t("el-dialog",{staticClass:"upload_dialog",attrs:{title:"上传材料",visible:e.uploadFlag,center:"","modal-append-to-body":!1,"close-on-click-modal":!1,width:"400px"},on:{"update:visible":function(t){e.uploadFlag=t}}},[t("div",{staticClass:"dialog_content"},[t("el-form",{ref:"uploadRef",attrs:{model:e.uploadForm,rules:e.uploadRules,"label-width":"120px"}},[t("el-form-item",{attrs:{label:"文件类型:",prop:"typeCode"}},[t("el-select",{attrs:{filterable:"",placeholder:"请选择"},model:{value:e.uploadForm.typeCode,callback:function(t){e.$set(e.uploadForm,"typeCode",t)},expression:"uploadForm.typeCode"}},e._l(e.caseFileTypeOptions,(function(e){return t("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1)],1),t("div",{staticClass:"upload_btn"},[e.selectFileFlag?t("el-button",{attrs:{size:"mini",type:"primary",disabled:""}},[e._v("选择文件")]):t("el-upload",{ref:"elUploadRef",attrs:{action:"#","http-request":t=>e.ossUpload(t),multiple:"",limit:10,"on-exceed":e.handleExceed,"on-remove":e.handleRemove,"file-list":e.fileList,"show-file-list":!1}},[t("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.addAnalyseStrFn("选择文件 按钮")}}},[e._v("选择文件")]),e.filesLengthError?t("p",{staticClass:"errorTxt"},[e._v("最少选择一个文件")]):e._e()],1)],1),e._l(e.uploadCaseFileForm.files,(function(i,r){return t("div",{key:r,staticClass:"files_box"},[t("div",{staticStyle:{width:"75%"}},[t("overflow-txt",{attrs:{txt:i.fileName}})],1),t("div",[t("span",{staticStyle:{color:"#409eff","margin-right":"10px"}},[e._v(e._s(i.uploadProgress))]),t("i",{staticClass:"del_icon el-icon-close",on:{click:function(t){return e.delUploadFile(i,r)}}})])])}))],2),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.entrustFn(!0)}}},[e._v("提 交")]),t("el-button",{on:{click:function(t){return e.entrustFn(!1)}}},[e._v("取 消")])],1)]),t("el-dialog",{staticClass:"preview_dialog",attrs:{title:"材料预览",visible:e.previewFlag,center:"","modal-append-to-body":!1,"close-on-click-modal":!1,width:"500px"},on:{"update:visible":function(t){e.previewFlag=t}}},[t("div",{staticClass:"preview_content"},[t("el-row",[t("el-col",{attrs:{span:4}},[e._v("文件类型:")]),t("el-col",{attrs:{span:10,offset:1}},[e._v(e._s(e.previewData.typeName))])],1),t("el-row",[t("el-col",{attrs:{span:4}},[e._v("上传人:")]),t("el-col",{attrs:{span:10,offset:1}},[e._v(e._s(e.previewData.createBy))])],1),t("el-row",[t("el-col",{attrs:{span:4}},[e._v("上传时间:")]),t("el-col",{attrs:{span:10,offset:1}},[e._v(e._s(e.previewData.createTime))])],1)],1),e.previewFlag?t("div",{staticClass:"preview_audio"},[t("audio",{attrs:{controls:""}},[t("source",{attrs:{src:e.previewData.previewPath,type:"audio/mpeg"}}),t("source",{attrs:{src:e.previewData.previewPath,type:"audio/ogg"}}),e._v(" 您的浏览器不支持该音频格式。 ")]),t("p",{staticStyle:{display:"none"}},[e._v(e._s(e.previewData.previewPath))])]):e._e()])],1)},n=[],s=(i("f16c"),i("45d2"),i("8160"),i("792b"),i("1d88"),i("84ae"),i("13bd"),i("f1b2")),o=i.n(s),a=i("96b4"),l={name:"CaseMateria",props:{btnMenuData:{type:Object,default:null}},data(){return{caseDetailData:{id:1},analyseStr:[],loading:!1,downloadLoading:!1,filesLengthError:!1,selectFileFlag:!1,previewFlag:!1,previewData:{},editUpload:!1,uploadFlag:!1,OSSClient:null,uploadForm:{lawPlatform:""},uploadRules:{typeCode:[{required:!0,message:"请选择文件类型",trigger:"blur"}]},baseURL:"",unloaderHeader:{token:""},uploadCaseFileForm:{caseId:"",files:[]},fileList:[],materialTable:[],materialForm:{page:1,size:10,total:0},caseFileTypeOptions:[],caseFileTypeObj:{1:"沟通记录",2:"投诉通知书",3:"监管报告",99:"其他"},audioTypeList:["mp3","mp4","wav","wma","aac","flac","ogg"],fileTypeList:["tiff","jfif","bmp","webp","gif","svg","jpg","svgz","png","jpeg","ico","xbm","dib","pjp","apng","tif","pjpeg","avif"]}},mounted(){this.initOSSClient(),this.getMaterialType()},methods:{initOSSClient(){this.instance.get("/aliyunoss/access",{params:{}}).then(e=>{let t=e.data;1==t.code?this.OSSClient=new o.a({accessKeyId:t.data.accessKeyId,accessKeySecret:t.data.accessKeySecret,stsToken:t.data.securityToken,region:t.data.region,bucket:t.data.bucket}):console.log("oss初始化失败,正在重试!")}).catch(e=>{console.log("oss初始化失败-"),console.log(e)})},previewFile(e,t){this.previewData=e,-1!=this.fileTypeList.indexOf(e.fileExtension)?this.$refs["elImage"+t].clickHandler():"pdf"==e.fileExtension?this.openFileInNewTab(this.getOssFilePath(e.ossPath)):-1!=this.audioTypeList.indexOf(e.fileExtension)?this.previewFlag=!0:console.log(e.fileExtension)},getMaterialType(){this.instance.get("/complaintMaterial/getMaterialType",{params:{}}).then(e=>{let t=e.data;1==t.code&&(this.caseFileTypeOptions=t.data)})},openFileInNewTab(e){var t=document.createElement("a");t.href=e,t.target="_blank",t.click()},handleExceed(e,t){this.$message.warning(`当前限制选择 10 个文件,本次选择了 ${e.length} 个文件,共选择了 ${e.length+t.length} 个文件`)},checkUploadFileLength(){this.selectFileFlag=this.uploadCaseFileForm.files.length>=10},downloadCaseFile(){this.downloadLoading=!0,this.instance({method:"post",url:"/complaintInfo/downloadMaterial",data:{complaintId:this.caseDetailData.id},responseType:"blob",headers:{}}).then(e=>{this.downloadLoading=!1;let t=window.URL.createObjectURL(new Blob([e.data])),i=document.createElement("a");i.style.display="none",i.href=t,i.setAttribute("download",decodeURIComponent(e.headers.filename)),document.body.appendChild(i),i.click()})},editUploadFn(e){let t=JSON.parse(JSON.stringify(this.materialTable));this.tmpTableData=JSON.parse(JSON.stringify(this.materialTable)),e?(t.forEach((e,t)=>{e.loading=!1,e.edit=!0,e.typeCode=e.typeCode}),this.materialTable=t,this.editUpload=!0):(this.getCaseDetail(),this.editCaseFileForm={caseId:"",deleteFiles:[],files:[]},t.forEach((e,t)=>{e.loading=!1,e.edit=!1}),this.materialTable=t,this.editUpload=!1)},getCaseDetail(){this.$emit("getCaseDetail")},showUpload(){this.uploadFlag=!0,this.uploadCaseFileForm={caseId:"",files:[]},this.uploadForm={typeCode:"",lawPlatform:""},this.fileList=[],this.addAnalyseStrFn("点击上传 按钮")},ossUpload(e,t){let i=this,r=e.file,n="upload-file",s=(location.protocol,r.name.split("."));if(s=s[s.length-1],r.name.length>55)return void this.$message.error("文件名过长,请修改后重试!");let o=null;this.addAnalyseStrFn("开始读取文件");const l=new FileReader;l.readAsDataURL(r),l.onloadend=()=>{o=l.result,i.addAnalyseStrFn("读取文件成功")},n="complaint/"+this.caseDetailData.id+"/"+Object(a["a"])()+"."+s,n&&this.addAnalyseStrFn("生成文件存储地址成功"),n&&this.addAnalyseStrFn("文件存储地址:"+n),this.uploadCaseFileForm.files.push({uploadProgress:"0%",tmpPath:n,complaintId:i.caseDetailData.id,typeCode:i.uploadForm.typeCode,fileName:r.name,ossPath:""}),this.OSSClient&&(this.addAnalyseStrFn("上传前置条件(阿里上传对象)准备完成,开始调用文件上传方法"),this.OSSClient.multipartUpload(n,r,{progress:(e,t)=>{let r=Math.floor(100*e)+"%";this.addAnalyseStrFn("文件上传进度更新:"+r),i.uploadCaseFileForm.files.forEach(e=>{e.tmpPath==n&&(e.uploadProgress=r,i.$forceUpdate())})}}).then((function(e){i.addAnalyseStrFn("文件上传完成"),console.log(e),i.uploadCaseFileForm.files.length<10&&(i.uploadCaseFileForm.files.forEach(t=>{t.tmpPath==e.name&&(t.ossPath=e.name)}),i.filesLengthError=!1,i.checkUploadFileLength())})).catch((function(e){console.log(e)})))},handleRemove(e,t){this.fileList=t},submitUpload(){},handleFile(e,t,i){if("del"==i)this.instance.post("/complaintMaterial/delMaterial",{materialId:e.id}).then(e=>{let i=e.data;if(1==i.code){this.$message.success("删除成功!");let e=this.materialTable.splice(t,1);this.editCaseFileForm.deleteFiles.push(e[0]),this.$forceUpdate()}else this.$message.error(i.message)});else{let i=this.getOssFilePath(e.ossPath);this.downloadPdf(e,t,i)}},getOssFilePath(e){let t=this.OSSClient.signatureUrl(e);return t},downloadPdf(e,t,i){e.loading=!0;const r=document.createElement("a");fetch(i).then(e=>e.blob()).then(t=>{e.loading=!1,r.href=URL.createObjectURL(t),r.download=e.fileName,document.body.appendChild(r),r.click(),window.URL.revokeObjectURL(r.href),document.body.removeChild(r)})},handleCurrentChange(){},handleSizeChange(){},delUploadFile(e,t){this.uploadCaseFileForm.files.splice(t,1),this.fileList=this.uploadCaseFileForm.files,this.checkUploadFileLength()},entrustFn(e){if(this.addAnalyseStrFn("点击上传材料弹窗提交按钮"),e){if(this.uploadCaseFileForm.files.length<1)return void(this.filesLengthError=!0);this.addAnalyseStrFn("校验上传材料弹窗完成"),this.$refs.uploadRef.validate(e=>{e?(this.addAnalyseStrFn("上传材料弹窗校验通过"),this.uploadCaseFileForm.files.forEach(e=>{e.typeCode=this.uploadForm.typeCode,e.typeName=this.caseFileTypeObj[this.uploadForm.lawPlatform]}),this.addCaseFile()):this.addAnalyseStrFn("上传材料弹窗校验失败")})}else this.cancelUpload()},cancelUpload(){this.uploadFlag=!1,this.uploadForm.lawPlatform="",this.fileList=[],this.uploadCaseFileForm.files=[],this.checkUploadFileLength(),this.$refs.elUploadRef&&this.$refs.elUploadRef[0]?this.$refs.elUploadRef[0].clearFiles():this.$refs.elUploadRef&&this.$refs.elUploadRef.clearFiles()},addCaseFile(){this.addAnalyseStrFn("调用弹窗提交方法");let e=!0;if(this.addAnalyseStrFn("开始校验文件进度"),this.uploadCaseFileForm.files.some((t,i)=>"100%"!=t.uploadProgress&&(e=!1,!0)),this.addAnalyseStrFn("校验文件进度完成"),!e)return this.addAnalyseStrFn("校验文件失败"),void this.$message.error("还有文件未上传完成,请检查后提交!");this.addAnalyseStrFn("开始调用提交接口"),this.instance.post("/complaintMaterial/addMaterialTest",this.uploadCaseFileForm.files).then(e=>{this.addAnalyseStrFn("接口调用成功");let t=e.data;1==t.code?(this.addAnalyseStrFn("材料上传成功!"),this.$message.success("材料上传成功!"),this.$emit("getCaseDetail"),this.cancelUpload()):(this.addAnalyseStrFn("材料上传失败!"),this.$message.error(t.message))})},initCaseMaterial(e){let t=JSON.parse(JSON.stringify(e));t.forEach((e,t)=>{e.loading=!1;let i=e.fileName.split("."),r=i[i.length-1];r=r.toLowerCase(),(99!=e.typeCode||this.fileTypeList.indexOf(r)>=0)&&(e.isPreview=!0,e.fileExtension=r,e.previewPath=this.getOssFilePath(e.ossPath))}),this.materialTable=t},addAnalyseStrFn(e){e=`${e}: ${this.getCurrentDateTime()}`,this.analyseStr.push(e)},getCurrentDateTime(){const e=new Date,t=e.getFullYear(),i=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0"),n=String(e.getHours()).padStart(2,"0"),s=String(e.getMinutes()).padStart(2,"0"),o=String(e.getSeconds()).padStart(2,"0");return`${t}-${i}-${r} ${n}:${s}:${o}`}},watch:{caseDetailData:{handler(e){},immediate:!0}}},c=l,u=(i("6b0b"),i("1805")),d=Object(u["a"])(c,r,n,!1,null,"1981a3b4",null);t["default"]=d.exports},ea38:function(e,t,i){"use strict";i("5942")},eaf6:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],class:"1"==e.echartsType?"module_wrap box_border":"module_wrap module_wrap2 box_border",attrs:{"element-loading-text":"数据加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"transparent"}},[e._m(0),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.loading,expression:"!loading"}],staticStyle:{height:"100%"}},[t("div",{attrs:{id:"risk_case_bar_tag"}})])])},n=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"box_title box_title_radio"},[t("span",[e._v("分包商风险案件标签排行榜")])])}],s=(i("f16c"),i("45d2"),i("8160"),i("ada4")),o={name:"RiskCaseTag",props:{isCollapse:{type:Boolean,default:!0},navForm:{type:Object,default:{}},echartsType:{type:String,default:""}},watch:{isCollapse(){setTimeout(()=>{this.myChart&&this.myChart.resize()},600)},navForm:{deep:!0,handler(e){this.getData()}}},data(){return{loading:!0,topDays:[],radio:"数量",newNumber:0,xAxisData1:[],xAxisData2:[],sumSeriesData1:[],sumSeriesData2:[],numSeriesData1:[],numSeriesData2:[],option:"",myChart:null}},mounted(){this.role=localStorage.getItem("role"),window.addEventListener("resize",()=>{this.myChart&&this.myChart.resize()}),window.onresize=()=>{this.myChart&&this.myChart.resize()}},methods:{getData(){if(this.echartsType){this.loading=!0;let e=null;switch(this.echartsType){case"1":e="/large/data/screen/getSubcontractorCasesLabelTopTen";break;case"2":e="/large/data/screen/getSubcontractorCasesLabelTopTen";break;default:break}e&&this.instance({method:"post",url:e,data:this.navForm,headers:{"Content-Type":"application/json;charset=UTF-8"}}).then(e=>{if(this.loading=!1,1==e.data.code){let t=e.data.data;this.loadCharts(t)}})}},radioChange(){this.option&&("数量"==this.radio?(this.option.xAxis[0].data=this.xAxisData1,this.option.series[0].data=this.numSeriesData1,this.option.series[1].data=this.numSeriesData2):(this.option.xAxis[0].data=this.xAxisData2,this.option.series[0].data=this.sumSeriesData1,this.option.series[1].data=this.sumSeriesData2),setTimeout(()=>{this.myChart.setOption(this.option)},100))},loadCharts(e){var t=document.getElementById("risk_case_bar_tag");t&&(this.myChart=s["init"](t,null,{renderer:"svg"}),this.xAxisData1=[],this.sumSeriesData1=[],this.sumSeriesData2=[],this.xAxisData2=[],this.numSeriesData1=[],this.numSeriesData2=[],e&&e.caseRiskNum.forEach((e,t)=>{this.xAxisData1.push(e.name),this.numSeriesData1.push(e.caseNumRatio),this.numSeriesData2.push(e.caseNum)}),e&&e.caseRiskMoney&&e.caseRiskMoney.length>0&&e.caseRiskMoney.forEach((e,t)=>{this.xAxisData2.push(e.name),this.sumSeriesData1.push(e.caseNum),this.sumSeriesData2.push(e.caseNum)}),this.option={color:["#EEEC8C","#09d5d6"],tooltip:{trigger:"axis",confine:!0,textStyle:{align:"left"}},grid:{top:"5",left:"10",right:"10",bottom:"15",containLabel:!0},legend:{name:"",data:["案件数量","赔款金额"],itemWidth:12,itemHeight:12,textStyle:{color:"#fff"},left:"center"},xAxis:[{type:"category",data:this.xAxisData1,axisPointer:{type:"shadow"},axisLabel:{showMaxLabel:!0,rotate:50,textStyle:{color:"#fff"},width:60,overflow:"truncate",ellipsis:"..."},axisTick:{alignWithLabel:!0}}],yAxis:[{type:"value",axisLabel:{showMaxLabel:!0,formatter:"{value} %",textStyle:{color:"#fff"}},splitLine:{show:!1},axisTick:{show:!1}},{type:"value",axisLabel:{showMaxLabel:!0,formatter:"{value} 万",textStyle:{color:"#fff"}},splitLine:{show:!1},axisTick:{show:!1}}],series:[{name:"风险标签案件占比",type:"bar",tooltip:{valueFormatter:function(e){return e+" %"}},data:this.numSeriesData1}]},this.myChart.setOption(this.option))}},updated(){this.myChart&&this.myChart.resize()}},a=o,l=(i("8665"),i("1805")),c=Object(l["a"])(a,r,n,!1,null,"963d9122",null);t["default"]=c.exports},eb72:function(e,t,i){"use strict";i("ed0c")},ed0c:function(e,t,i){},f02d:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"module_wrap box_border",attrs:{"element-loading-text":"数据加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"transparent"}},[t("div",{staticClass:"box_title box_title_radio"},[t("span",[e._v("总赔款金额变换趋势")]),t("div",{staticClass:"radio_group"},[t("el-radio-group",{attrs:{size:"mini"},on:{change:e.radioChange},model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[t("el-radio-button",{attrs:{label:"同比"}}),t("el-radio-button",{attrs:{label:"环比"}})],1)],1)]),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.loading,expression:"!loading"}],staticStyle:{height:"100%"}},[t("div",{attrs:{id:"all_reparations_amount_bar"}})])])},n=[],s=(i("f16c"),i("45d2"),i("8160"),i("ada4")),o={name:"AllReparationsAmount",props:{isCollapse:{type:Boolean,default:!0},navForm:{type:Object,default:{}}},watch:{isCollapse(){setTimeout(()=>{this.myChart&&this.myChart.resize()},600)},navForm:{immediate:!0,deep:!0,handler(e){this.getData()}}},data(){return{topDays:[],radio:"同比",newNumber:0,xAxisData1:[],xAxisData2:[],sumSeriesData1:[],sumSeriesData2:[],ratioSeriesData1:[],ratioSeriesData2:[],option:"",myChart:"",loading:!0}},mounted(){this.role=localStorage.getItem("role"),window.addEventListener("resize",()=>{this.myChart&&setTimeout(()=>{this.myChart.resize()},500)})},methods:{getData(){this.loading=!0,this.instance({method:"post",url:"/large/data/screen/getTotalCaseRatio",data:this.navForm,headers:{"Content-Type":"application/json;charset=UTF-8"}}).then(e=>{if(this.loading=!1,1==e.data.code){let t=e.data.data;this.loadCharts(t)}})},radioChange(){"同比"==this.radio?(this.option.legend.data=["总赔款金额","同比增长率"],this.option.xAxis.data=this.xAxisData1,this.option.series[0].data=this.ratioSeriesData1,this.option.series[1].data=this.ratioSeriesData2,this.option.series[1].name="同比增长率"):(this.option.legend.data=["总赔款金额","环比增长率"],this.option.xAxis.data=this.xAxisData2,this.option.series[0].data=this.sumSeriesData1,this.option.series[1].data=this.sumSeriesData2,this.option.series[1].name="环比增长率"),setTimeout(()=>{this.myChart.setOption(this.option)},100)},loadCharts(e){var t=document.getElementById("all_reparations_amount_bar");t&&(this.myChart=s["init"](t,null,{renderer:"svg"}),this.xAxisData1=[],this.sumSeriesData1=[],this.sumSeriesData2=[],this.xAxisData2=[],this.ratioSeriesData1=[],this.ratioSeriesData2=[],e.caseRiskMoney.forEach((e,t)=>{this.xAxisData1.push(e.name),this.sumSeriesData1.push((e.totalPayAmount/1e4).toFixed(2)),this.sumSeriesData2.push(e.caseNumRatio)}),e.caseRiskNum.forEach((e,t)=>{this.xAxisData2.push(e.name),this.ratioSeriesData1.push((e.totalPayAmount/1e4).toFixed(2)),this.ratioSeriesData2.push(e.caseNumRatio)}),this.option={color:["#96b4d8","#09d5d6"],tooltip:{trigger:"axis"},grid:{top:30,left:"10",right:"4%",bottom:"15",containLabel:!0},legend:{data:["总赔款金额","同比增长率"],itemWidth:12,itemHeight:12,textStyle:{color:"#fff"},left:"center"},xAxis:[{type:"category",data:this.xAxisData1,axisPointer:{type:"shadow"},axisLabel:{show:!1,showMaxLabel:!0,rotate:20,textStyle:{color:"#fff"}},axisTick:{show:!1}}],yAxis:[{type:"value",axisLabel:{showMaxLabel:!0,formatter:"{value} 万",textStyle:{color:"#fff"}},splitLine:{show:!1},axisTick:{show:!1}},{type:"value",axisLabel:{showMaxLabel:!0,formatter:"{value} %",textStyle:{color:"#fff"}},splitLine:{show:!1},axisTick:{show:!1}}],series:[{name:"总赔款金额",type:"bar",barWidth:"40%",tooltip:{valueFormatter:function(e){return e+" 万元"}},data:this.sumSeriesData1},{name:"同比增长率",type:"line",yAxisIndex:1,tooltip:{valueFormatter:function(e){return(e?e.toFixed(0):0)+" %"}},smooth:!0,showSymbol:!1,data:this.sumSeriesData2}]},this.myChart.setOption(this.option),this.radioChange())}},updated(){this.myChart&&this.myChart.resize()}},a=o,l=(i("bed6"),i("1805")),c=Object(l["a"])(a,r,n,!1,null,"150dea87",null);t["default"]=c.exports},f1b2:function(e,t,i){var r;(function(t){(function(t){e.exports=t()})((function(){var e;return function(){function e(t,i,n){function s(a,l){if(!i[a]){if(!t[a]){var c="function"==typeof r&&r;if(!l&&c)return r(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var d=i[a]={exports:{}};t[a][0].call(d.exports,(function(e){var i=t[a][1][e];return s(i||e)}),d,d.exports,e,t,i,n)}return i[a].exports}for(var o="function"==typeof r&&r,a=0;a\n\n\n'.concat(t,"\n"),i&&(o+="".concat(i,"\n")),o+="\n",s.content=o,s.mime="xml",s.successStatuses=[200],e.next=9,this.request(s);case 9:return a=e.sent,e.abrupt("return",{res:a.res});case 11:case"end":return e.stop()}}),e,this)})));function t(t,i,r){return e.apply(this,arguments)}return t}(),c.getBucketLogging=function(){var e=(0,s.default)(n.default.mark((function e(t,i){var r,s,o;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=this._bucketRequestParams("GET",t,"logging",i),r.successStatuses=[200],r.xmlResponse=!0,e.next=5,this.request(r);case 5:return s=e.sent,o=s.data.LoggingEnabled,e.abrupt("return",{enable:!!o,prefix:o&&o.TargetPrefix||null,res:s.res});case 8:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}(),c.deleteBucketLogging=function(){var e=(0,s.default)(n.default.mark((function e(t,i){var r,s;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=this._bucketRequestParams("DELETE",t,"logging",i),r.successStatuses=[204,200],e.next=4,this.request(r);case 4:return s=e.sent,e.abrupt("return",{res:s.res});case 6:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}(),c.putBucketCORS=function(){var e=(0,s.default)(n.default.mark((function e(t,i,r){var s,a,l,c,u,h,p,f,m,g;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(i=i||[],o(i.length,"rules is required"),i.forEach((function(e){o(e.allowedOrigin,"allowedOrigin is required"),o(e.allowedMethod,"allowedMethod is required")})),s=this._bucketRequestParams("PUT",t,"cors",r),a='\n',l=function(e){a+="".concat(e,"")},c=function(e){a+="".concat(e,"")},u=function(e){a+="".concat(e,"")},h=function(e){a+="".concat(e,"")},p=0,f=i.length;p",d(m.allowedOrigin).forEach(l),d(m.allowedMethod).forEach(c),d(m.allowedHeader).forEach(u),d(m.exposeHeader).forEach(h),m.maxAgeSeconds&&(a+="".concat(m.maxAgeSeconds,"")),a+="";return a+="",s.content=a,s.mime="xml",s.successStatuses=[200],e.next=16,this.request(s);case 16:return g=e.sent,e.abrupt("return",{res:g.res});case 18:case"end":return e.stop()}}),e,this)})));function t(t,i,r){return e.apply(this,arguments)}return t}(),c.getBucketCORS=function(){var e=(0,s.default)(n.default.mark((function e(t,i){var r,s,o,a;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=this._bucketRequestParams("GET",t,"cors",i),r.successStatuses=[200],r.xmlResponse=!0,e.next=5,this.request(r);case 5:return s=e.sent,o=[],s.data&&s.data.CORSRule&&(a=s.data.CORSRule,u(a)||(a=[a]),a.forEach((function(e){var t={};Object.keys(e).forEach((function(i){t[i.slice(0,1).toLowerCase()+i.slice(1,i.length)]=e[i]})),o.push(t)}))),e.abrupt("return",{rules:o,res:s.res});case 9:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}(),c.deleteBucketCORS=function(){var e=(0,s.default)(n.default.mark((function e(t,i){var r,s;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=this._bucketRequestParams("DELETE",t,"cors",i),r.successStatuses=[204],e.next=4,this.request(r);case 4:return s=e.sent,e.abrupt("return",{res:s.res});case 6:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}(),c.putBucketReferer=function(){var e=(0,s.default)(n.default.mark((function e(t,i,r,s){var o,a,l,c;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o=this._bucketRequestParams("PUT",t,"referer",s),a='\n\n',a+=" ".concat(i?"true":"false","\n"),r&&r.length>0){for(a+=" \n",l=0;l".concat(r[l],"\n");a+=" \n"}else a+=" \n";return a+="",o.content=a,o.mime="xml",o.successStatuses=[200],e.next=10,this.request(o);case 10:return c=e.sent,e.abrupt("return",{res:c.res});case 12:case"end":return e.stop()}}),e,this)})));function t(t,i,r,n){return e.apply(this,arguments)}return t}(),c.getBucketReferer=function(){var e=(0,s.default)(n.default.mark((function e(t,i){var r,s,o;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=this._bucketRequestParams("GET",t,"referer",i),r.successStatuses=[200],r.xmlResponse=!0,e.next=5,this.request(r);case 5:return s=e.sent,o=s.data.RefererList.Referer||null,o&&(u(o)||(o=[o])),e.abrupt("return",{allowEmpty:"true"===s.data.AllowEmptyReferer,referers:o,res:s.res});case 9:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}(),c.deleteBucketReferer=function(){var e=(0,s.default)(n.default.mark((function e(t,i){return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.putBucketReferer(t,!0,null,i);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}(),c._bucketRequestParams=function(e,t,i,r){return{method:e,bucket:t,subres:i,additionalHeaders:r&&r.additionalHeaders,timeout:r&&r.timeout,ctx:r&&r.ctx}}},{"../common/utils/checkBucketName":53,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,assert:95,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/web.dom-collections.for-each.js":380}],3:[function(e,t,i){(function(i,r){(function(){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),s=n(e("@babel/runtime/regenerator")),o=n(e("@babel/runtime/helpers/asyncToGenerator"));e("core-js/modules/es.function.name.js"),e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.symbol.js"),e("core-js/modules/es.symbol.description.js"),e("core-js/modules/es.array.slice.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.regexp.to-string.js");var a=e("debug")("ali-oss"),l=e("xml2js"),c=e("agentkeepalive"),u=e("merge-descriptors"),d=e("platform"),h=e("utility"),p=e("urllib"),f=e("./version"),m=e("bowser"),g=e("../common/signUtils"),y=e("../common/client/initOptions"),b=e("../common/utils/createRequest"),v=b.createRequest,w=e("../common/utils/encoder"),x=w.encoder,_=e("../common/client/getReqUrl"),j=_.getReqUrl,C=e("../common/utils/setSTSToken"),k=C.setSTSToken,S=e("../common/utils/retry"),T=S.retry,E=e("../common/utils/isFunction"),O=E.isFunction,D=e("../common/utils/getStandardRegion"),A=D.getStandardRegion,N=new c;function I(){var e=d.name,t=d.version;e&&e.toLowerCase&&"ie"===e.toLowerCase()&&t.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function R(){return location&&"https:"===location.protocol}function P(e,t){if(I(),!(this instanceof P))return new P(e,t);e&&e.inited?this.options=e:this.options=P.initOptions(e),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=p,this.agent=this.options.agent||N),this.ctx=t,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}t.exports=P,P.initOptions=function(e){e.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var t=Object.assign({secure:R(),useFetch:!1},e);return y(t)};var F=P.prototype;function M(e){return L.apply(this,arguments)}function L(){return L=(0,o.default)(s.default.mark((function e(t){var i,r,n,o,a,l;return s.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.options.stsToken||!O(this.options.refreshSTSToken)){e.next=3;break}return e.next=3,k.call(this);case 3:return i=v.call(this,t),this.options.useFetch||(i.params.mode="disable-fetch"),o=!!t.stream,e.prev=6,e.next=9,this.urllib.request(i.url,i.params);case 9:r=e.sent,this.debug("response %s %s, got %s, headers: %j",t.method,i.url,r.status,r.headers,"info"),e.next=16;break;case 13:e.prev=13,e.t0=e["catch"](6),n=e.t0;case 16:if(!r||!t.successStatuses||-1!==t.successStatuses.indexOf(r.status)){e.next=28;break}return e.next=19,this.requestError(r);case 19:if(a=e.sent,"RequestTimeTooSkewed"!==a.code||o){e.next=25;break}return this.options.amendTimeSkewed=+new Date(a.serverTime)-new Date,e.next=24,this.request(t);case 24:return e.abrupt("return",e.sent);case 25:a.params=t,e.next=32;break;case 28:if(!n){e.next=32;break}return e.next=31,this.requestError(n);case 31:a=e.sent;case 32:if(!a){e.next=34;break}throw a;case 34:if(!t.xmlResponse){e.next=39;break}return e.next=37,this.parseXML(r.data);case 37:l=e.sent,r.data=l;case 39:return e.abrupt("return",r);case 40:case"end":return e.stop()}}),e,this,[[6,13]])}))),L.apply(this,arguments)}F.debug=a,u(F,e("./object")),u(F,e("./bucket")),u(F,e("../common/bucket/getBucketWebsite")),u(F,e("../common/bucket/putBucketWebsite")),u(F,e("../common/bucket/deleteBucketWebsite")),u(F,e("../common/bucket/getBucketLifecycle")),u(F,e("../common/bucket/putBucketLifecycle")),u(F,e("../common/bucket/deleteBucketLifecycle")),u(F,e("../common/bucket/putBucketVersioning")),u(F,e("../common/bucket/getBucketVersioning")),u(F,e("../common/bucket/getBucketInventory")),u(F,e("../common/bucket/deleteBucketInventory")),u(F,e("../common/bucket/listBucketInventory")),u(F,e("../common/bucket/putBucketInventory")),u(F,e("../common/bucket/abortBucketWorm")),u(F,e("../common/bucket/completeBucketWorm")),u(F,e("../common/bucket/extendBucketWorm")),u(F,e("../common/bucket/getBucketWorm")),u(F,e("../common/bucket/initiateBucketWorm")),u(F,e("./managed-upload")),u(F,e("../common/multipart-copy")),u(F,e("../common/multipart")),u(F,e("../common/parallel")),F.signature=function(e){return this.debug("authorization stringToSign: %s",e,"info"),g.computeSignature(this.options.accessKeySecret,e,this.options.headerEncoding)},F._getReqUrl=j,F.authorization=function(e,t,i,r){var n=g.buildCanonicalString(e.toUpperCase(),t,{headers:r,parameters:i});return g.authorization(this.options.accessKeyId,this.options.accessKeySecret,n,this.options.headerEncoding)},F.authorizationV4=function(e,t,i,r,n){return g.authorizationV4(this.options.accessKeyId,this.options.accessKeySecret,A(this.options.region),e,t,i,r,n,this.options.headerEncoding)},F.request=function(){var e=(0,o.default)(s.default.mark((function e(t){var i=this;return s.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.options.retryMax){e.next=6;break}return e.next=3,T(M.bind(this),this.options.retryMax,{errorHandler:function(e){var r=function(e){if(t.stream)return!1;var r=[-1,-2].includes(e.status),n=i.options.requestErrorRetryHandle||function(){return!0};return r&&n(e)};return!!r(e)}})(t);case 3:return e.abrupt("return",e.sent);case 6:return e.abrupt("return",M.call(this,t));case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),F._getResource=function(e){var t="/";return e.bucket&&(t+="".concat(e.bucket,"/")),e.object&&(t+=x(e.object,this.options.headerEncoding)),t},F._escape=function(e){return h.encodeURIComponent(e).replace(/%2F/g,"/")},F._getUserAgent=function(){var e=r&&r.browser?"js":"nodejs",t="aliyun-sdk-".concat(e,"/").concat(f.version),i=d.description;return!i&&r&&(i="Node.js ".concat(r.version.slice(1)," on ").concat(r.platform," ").concat(r.arch)),this._checkUserAgent("".concat(t," ").concat(i))},F._checkUserAgent=function(e){var t=e.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return t},F.checkBrowserAndVersion=function(e,t){return m.name===e&&m.version.split(".")[0]===t},F.parseXML=function(e){return new Promise((function(t,r){i.isBuffer(e)&&(e=e.toString()),l.parseString(e,{explicitRoot:!1,explicitArray:!1},(function(e,i){e?r(e):t(i)}))}))},F.requestError=function(){var e=(0,o.default)(s.default.mark((function e(t){var i,r,n,a,l,c=this;return s.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=null,r=function(){var e=(0,o.default)(s.default.mark((function e(r){var n,o;return s.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c.parseXML(r);case 3:if(e.t0=e.sent,e.t0){e.next=6;break}e.t0={};case 6:n=e.t0,e.next=16;break;case 9:return e.prev=9,e.t1=e["catch"](0),c.debug(r,"error"),e.t1.message+="\nraw xml: ".concat(r),e.t1.status=t.status,e.t1.requestId=t.headers&&t.headers["x-oss-request-id"],e.abrupt("return",e.t1);case 16:return o=n.Message||"unknow request error, status: ".concat(t.status),n.Condition&&(o+=" (condition: ".concat(n.Condition,")")),i=new Error(o),i.name=n.Code?"".concat(n.Code,"Error"):"UnknownError",i.status=t.status,i.code=n.Code,i.ecCode=n.EC,i.requestId=n.RequestId,i.hostId=n.HostId,i.serverTime=n.ServerTime,e.abrupt("return",i);case 27:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t){return e.apply(this,arguments)}}(),t.data&&t.data.length){e.next=38;break}if(-1!==t.status&&-2!==t.status){e.next=10;break}i=new Error(t.message),i.name=t.name,i.status=t.status,i.code=t.name,e.next=36;break;case 10:if(404!==t.status){e.next=17;break}i=new Error("Object not exists"),i.name="NoSuchKeyError",i.status=404,i.code="NoSuchKey",e.next=34;break;case 17:if(412!==t.status){e.next=24;break}i=new Error("Pre condition failed"),i.name="PreconditionFailedError",i.status=412,i.code="PreconditionFailed",e.next=34;break;case 24:if(i=new Error("Unknow error, status: ".concat(t.status)),i.name="UnknownError",i.status=t.status,i.res=t,n=t.headers&&t.headers["x-oss-err"],!n){e.next=34;break}return a=atob(n),e.next=33,r(a);case 33:i=e.sent;case 34:i.requestId=t.headers&&t.headers["x-oss-request-id"],i.host="";case 36:e.next=43;break;case 38:return l=String(t.data),this.debug("request response error data: %s",l,"error"),e.next=42,r(l);case 42:i=e.sent;case 43:return this.debug("generate error %j",i,"error"),e.abrupt("return",i);case 45:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}).call(this)}).call(this,{isBuffer:e("../../node_modules/is-buffer/index.js")},e("_process"))},{"../../node_modules/is-buffer/index.js":409,"../common/bucket/abortBucketWorm":7,"../common/bucket/completeBucketWorm":8,"../common/bucket/deleteBucketInventory":9,"../common/bucket/deleteBucketLifecycle":10,"../common/bucket/deleteBucketWebsite":11,"../common/bucket/extendBucketWorm":12,"../common/bucket/getBucketInventory":13,"../common/bucket/getBucketLifecycle":14,"../common/bucket/getBucketVersioning":15,"../common/bucket/getBucketWebsite":16,"../common/bucket/getBucketWorm":17,"../common/bucket/initiateBucketWorm":18,"../common/bucket/listBucketInventory":19,"../common/bucket/putBucketInventory":20,"../common/bucket/putBucketLifecycle":21,"../common/bucket/putBucketVersioning":22,"../common/bucket/putBucketWebsite":23,"../common/client/getReqUrl":25,"../common/client/initOptions":26,"../common/multipart":30,"../common/multipart-copy":29,"../common/parallel":51,"../common/signUtils":52,"../common/utils/createRequest":58,"../common/utils/encoder":62,"../common/utils/getStandardRegion":65,"../common/utils/isFunction":72,"../common/utils/retry":80,"../common/utils/setSTSToken":82,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,_process:538,agentkeepalive:94,bowser:101,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.includes.js":315,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.function.name.js":322,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.promise.js":333,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/es.string.replace.js":345,"core-js/modules/es.symbol.description.js":351,"core-js/modules/es.symbol.js":354,debug:536,"merge-descriptors":428,platform:440,urllib:546,utility:545,xml2js:496}],4:[function(e,t,i){(function(t){(function(){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.function.name.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.array.from.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.array.filter.js"),e("core-js/modules/es.array.find.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/es.array.slice.js"),e("core-js/modules/es.array.iterator.js"),e("core-js/modules/es.array-buffer.slice.js"),e("core-js/modules/es.typed-array.uint8-array.js"),e("core-js/modules/es.typed-array.copy-within.js"),e("core-js/modules/es.typed-array.every.js"),e("core-js/modules/es.typed-array.fill.js"),e("core-js/modules/es.typed-array.filter.js"),e("core-js/modules/es.typed-array.find.js"),e("core-js/modules/es.typed-array.find-index.js"),e("core-js/modules/es.typed-array.for-each.js"),e("core-js/modules/es.typed-array.includes.js"),e("core-js/modules/es.typed-array.index-of.js"),e("core-js/modules/es.typed-array.iterator.js"),e("core-js/modules/es.typed-array.join.js"),e("core-js/modules/es.typed-array.last-index-of.js"),e("core-js/modules/es.typed-array.map.js"),e("core-js/modules/es.typed-array.reduce.js"),e("core-js/modules/es.typed-array.reduce-right.js"),e("core-js/modules/es.typed-array.reverse.js"),e("core-js/modules/es.typed-array.set.js"),e("core-js/modules/es.typed-array.slice.js"),e("core-js/modules/es.typed-array.some.js"),e("core-js/modules/es.typed-array.sort.js"),e("core-js/modules/es.typed-array.subarray.js"),e("core-js/modules/es.typed-array.to-locale-string.js"),e("core-js/modules/es.typed-array.to-string.js");var s=r(e("@babel/runtime/helpers/asyncToGenerator")),o=e("util"),a=e("path"),l=e("mime"),c=e("copy-to"),u=e("../common/utils/isBlob"),d=u.isBlob,h=e("../common/utils/isFile"),p=h.isFile,f=e("../common/utils/isBuffer"),m=f.isBuffer,g=i;g.multipartUpload=function(){var e=(0,s.default)(n.default.mark((function e(t,i){var r,s,o,c,u,h,f,g,y,b=arguments;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=b.length>2&&void 0!==b[2]?b[2]:{},this.resetCancelFlag(),r.disabledMD5=void 0===r.disabledMD5||!!r.disabledMD5,!r.checkpoint||!r.checkpoint.uploadId){e.next=8;break}return i&&p(i)&&(r.checkpoint.file=i),e.next=7,this._resumeMultipart(r.checkpoint,r);case 7:return e.abrupt("return",e.sent);case 8:return s=102400,r.mime||(p(i)?r.mime=l.getType(a.extname(i.name)):d(i)?r.mime=i.type:m(i)?r.mime="":r.mime=l.getType(a.extname(i))),r.headers=r.headers||{},this._convertMetaToHeaders(r.meta,r.headers),e.next=14,this._getFileSize(i);case 14:if(o=e.sent,!(o0&&c(d).to(p),f=this._divideParts(a,l),m=f.length,g=!1,y=function(e,r){return new Promise(function(){var a=(0,s.default)(n.default.mark((function s(a,l){var p,y,b,v,w;return n.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(n.prev=0,e.isCancel()){n.next=29;break}return p=f[r-1],n.next=5,e._createBuffer(o,p.start,p.end);case 5:return y=n.sent,b={content:y,size:p.end-p.start},n.prev=7,n.next=10,e._uploadPart(h,u,r,b,i);case 10:v=n.sent,n.next=18;break;case 13:if(n.prev=13,n.t0=n["catch"](7),404!==n.t0.status){n.next=17;break}throw e._makeAbortEvent();case 17:throw n.t0;case 18:if(e.isCancel()||g){n.next=26;break}if(t.doneParts.push({number:r,etag:v.res.headers.etag}),!i.progress){n.next=23;break}return n.next=23,i.progress(d.length/(m+1),t,v.res);case 23:a({number:r,etag:v.res.headers.etag}),n.next=27;break;case 26:a();case 27:n.next=30;break;case 29:a();case 30:n.next=41;break;case 32:n.prev=32,n.t1=n["catch"](0),w=new Error,w.name=n.t1.name,w.message=n.t1.message,w.stack=n.t1.stack,w.partNum=r,c(n.t1).to(w),l(w);case 41:case"end":return n.stop()}}),s,null,[[0,32],[7,13]])})));return function(e,t){return a.apply(this,arguments)}}())},b=Array.from(new Array(m),(function(e,t){return t+1})),v=p.map((function(e){return e.number})),w=b.filter((function(e){return v.indexOf(e)<0})),x=5,_=i.parallel||x,e.next=17,this._parallel(w,_,(function(e){return new Promise((function(t,i){y(r,e).then((function(e){e&&p.push(e),t()})).catch((function(e){i(e)}))}))}));case 17:if(j=e.sent,g=!0,C=j.find((function(e){return"abort"===e.name})),!C){e.next=22;break}throw C;case 22:if(!this.isCancel()){e.next=25;break}throw y=null,this._makeCancelEvent();case 25:if(!(j&&j.length>0)){e.next=28;break}throw j[0].message="Failed to upload some parts with error: ".concat(j[0].toString()," part_num: ").concat(j[0].partNum),j[0];case 28:return e.next=30,this.completeMultipartUpload(h,u,p,i);case 30:return e.abrupt("return",e.sent);case 31:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}(),g._getFileSize=function(){var e=(0,s.default)(n.default.mark((function e(t){return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!m(t)){e.next=4;break}return e.abrupt("return",t.length);case 4:if(!d(t)&&!p(t)){e.next=6;break}return e.abrupt("return",t.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}();var y=e("stream"),b=y.Readable;function v(e,t){if(!(this instanceof v))return new v(e,t);b.call(this,t),this.file=e,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}function w(e){return e.arrayBuffer?e.arrayBuffer():new Promise((function(t,i){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){i(e)},r.readAsArrayBuffer(e)}))}o.inherits(v,b),v.prototype.readFileAndPush=function(e){if(this.fileBuffer){var t=!0;while(t&&this.fileBuffer&&this.startthis.fileBuffer.length?this.fileBuffer.length:r,this.start=r,t=this.push(this.fileBuffer.slice(i,r))}}},v.prototype._read=function(e){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||0===this.start&&!this.file)return this.finish||(this.fileBuffer=null,this.finish=!0),void this.push(null);var i=16384;e=e||i;var r=this;this.reader.onload=function(i){r.fileBuffer=t.from(new Uint8Array(i.target.result)),r.file=null,r.readFileAndPush(e)},0===this.start?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(e)},g._createBuffer=function(){var e=(0,s.default)(n.default.mark((function e(i,r,s){var o,a;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!d(i)&&!p(i)){e.next=8;break}return o=i.slice(r,s),e.next=4,w(o);case 4:return a=e.sent,e.abrupt("return",t.from(a));case 8:if(!m(i)){e.next=12;break}return e.abrupt("return",i.subarray(r,s));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return e.stop()}}),e)})));function i(t,i,r){return e.apply(this,arguments)}return i}(),g._getPartSize=function(e,t){var i=1e4,r=1048576;t||(t=r);var n=Math.ceil(e/i);return t1&&void 0!==u[1]?u[1]:{},r=t["continuation-token"]||t.continuationToken,r&&(i.subres=Object.assign({"continuation-token":r},i.subres)),s=this._objectRequestParams("GET","",i),s.query=Object.assign({"list-type":2},t),delete s.query["continuation-token"],delete s.query.continuationToken,s.xmlResponse=!0,s.successStatuses=[200],e.next=11,this.request(s);case 11:return o=e.sent,a=o.data.Contents||[],l=this,a&&(Array.isArray(a)||(a=[a]),a=a.map((function(e){var t=null;return e.Owner&&(t={id:e.Owner.ID,displayName:e.Owner.DisplayName}),{name:e.Key,url:l._objectUrl(e.Key),lastModified:e.LastModified,etag:e.ETag,type:e.Type,size:Number(e.Size),storageClass:e.StorageClass,owner:t,restoreInfo:x(e.RestoreInfo)}}))),c=o.data.CommonPrefixes||null,c&&(Array.isArray(c)||(c=[c]),c=c.map((function(e){return e.Prefix}))),e.abrupt("return",{res:o.res,objects:a,prefixes:c,isTruncated:"true"===o.data.IsTruncated,keyCount:+o.data.KeyCount,continuationToken:o.data.ContinuationToken||null,nextContinuationToken:o.data.NextContinuationToken||null});case 18:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),_.restore=function(){var e=(0,s.default)(n.default.mark((function e(t){var i,r,s,o,a=arguments;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=a.length>1&&void 0!==a[1]?a[1]:{type:"Archive"},i=i||{},i.subres=Object.assign({restore:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),r=this._objectRequestParams("POST",t,i),s={RestoreRequest:{Days:i.Days?i.Days:2}},"ColdArchive"!==i.type&&"DeepColdArchive"!==i.type||(s.RestoreRequest.JobParameters={Tier:i.JobParameters?i.JobParameters:"Standard"}),r.content=v(s,{headers:!0}),r.mime="xml",r.successStatuses=[202],e.next=12,this.request(r);case 12:return o=e.sent,e.abrupt("return",{res:o.res});case 14:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),_._objectUrl=function(e){return this._getReqUrl({bucket:this.options.bucket,object:e})},_._objectRequestParams=function(e,t,i){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");i=i||{},t=this._objectName(t);var r={object:t,bucket:this.options.bucket,method:e,subres:i&&i.subres,additionalHeaders:i&&i.additionalHeaders,timeout:i&&i.timeout,ctx:i&&i.ctx};return i.headers&&(r.headers={},a(i.headers).to(r.headers)),r},_._objectName=function(e){return e.replace(/^\/+/,"")},_._convertMetaToHeaders=function(e,t){e&&Object.keys(e).forEach((function(i){t["x-oss-meta-".concat(i)]=e[i]}))},_._deleteFileSafe=function(e){var t=this;return new Promise((function(i){o.exists(e,(function(r){r?o.unlink(e,(function(r){r&&t.debug("unlink %j error: %s",e,r,"error"),i()})):i()}))}))}},{"../common/callback":24,"../common/image":27,"../common/object/asyncSignatureUrl":31,"../common/object/copyObject":32,"../common/object/delete":33,"../common/object/deleteMulti":34,"../common/object/deleteObjectTagging":35,"../common/object/generateObjectUrl":36,"../common/object/get":37,"../common/object/getACL":38,"../common/object/getBucketVersions":39,"../common/object/getObjectMeta":40,"../common/object/getObjectTagging":41,"../common/object/getObjectUrl":42,"../common/object/getSymlink":43,"../common/object/head":44,"../common/object/putACL":45,"../common/object/putObjectTagging":46,"../common/object/putSymlink":47,"../common/object/signPostObjectPolicyV4":48,"../common/object/signatureUrl":49,"../common/object/signatureUrlV4":50,"../common/utils/isBlob":68,"../common/utils/isBuffer":69,"../common/utils/isFile":71,"../common/utils/obj2xml":76,"../common/utils/parseRestoreInfo":78,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"copy-to":107,"core-js/modules/es.array.map.js":318,"core-js/modules/es.function.name.js":322,"core-js/modules/es.number.constructor.js":324,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.promise.js":333,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/es.string.replace.js":345,"core-js/modules/web.dom-collections.for-each.js":380,fs:102,"merge-descriptors":428,mime:430,path:439}],6:[function(e,t,i){"use strict";i.version="6.23.0"},{}],7:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator")),s=r(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(i,"__esModule",{value:!0}),i.abortBucketWorm=void 0;var o=e("../utils/checkBucketName");function a(e,t){return l.apply(this,arguments)}function l(){return l=(0,s.default)(n.default.mark((function e(t,i){var r,s;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o.checkBucketName(t),r=this._bucketRequestParams("DELETE",t,"worm",i),e.next=4,this.request(r);case 4:return s=e.sent,e.abrupt("return",{res:s.res,status:s.status});case 6:case"end":return e.stop()}}),e,this)}))),l.apply(this,arguments)}i.abortBucketWorm=a},{"../utils/checkBucketName":53,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93}],8:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator")),s=r(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(i,"__esModule",{value:!0}),i.completeBucketWorm=void 0;var o=e("../utils/checkBucketName");function a(e,t,i){return l.apply(this,arguments)}function l(){return l=(0,s.default)(n.default.mark((function e(t,i,r){var s,a;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o.checkBucketName(t),s=this._bucketRequestParams("POST",t,{wormId:i},r),e.next=4,this.request(s);case 4:return a=e.sent,e.abrupt("return",{res:a.res,status:a.status});case 6:case"end":return e.stop()}}),e,this)}))),l.apply(this,arguments)}i.completeBucketWorm=a},{"../utils/checkBucketName":53,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93}],9:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var s=r(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(i,"__esModule",{value:!0}),i.deleteBucketInventory=void 0;var o=e("../utils/checkBucketName");function a(e,t){return l.apply(this,arguments)}function l(){return l=(0,s.default)(n.default.mark((function e(t,i){var r,s,a,l,c=arguments;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=c.length>2&&void 0!==c[2]?c[2]:{},s=Object.assign({inventory:"",inventoryId:i},r.subres),o.checkBucketName(t),a=this._bucketRequestParams("DELETE",t,s,r),a.successStatuses=[204],e.next=7,this.request(a);case 7:return l=e.sent,e.abrupt("return",{status:l.status,res:l.res});case 9:case"end":return e.stop()}}),e,this)}))),l.apply(this,arguments)}i.deleteBucketInventory=a},{"../utils/checkBucketName":53,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],10:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator")),s=r(e("@babel/runtime/helpers/asyncToGenerator")),o=e("../utils/checkBucketName"),a=o.checkBucketName,l=i;l.deleteBucketLifecycle=function(){var e=(0,s.default)(n.default.mark((function e(t,i){var r,s;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a(t),r=this._bucketRequestParams("DELETE",t,"lifecycle",i),r.successStatuses=[204],e.next=5,this.request(r);case 5:return s=e.sent,e.abrupt("return",{res:s.res});case 7:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}()},{"../utils/checkBucketName":53,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93}],11:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator")),s=r(e("@babel/runtime/helpers/asyncToGenerator")),o=e("../utils/checkBucketName"),a=o.checkBucketName,l=i;l.deleteBucketWebsite=function(){var e=(0,s.default)(n.default.mark((function e(t,i){var r,s;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a(t),r=this._bucketRequestParams("DELETE",t,"website",i),r.successStatuses=[204],e.next=5,this.request(r);case 5:return s=e.sent,e.abrupt("return",{res:s.res});case 7:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}()},{"../utils/checkBucketName":53,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93}],12:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator")),s=r(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(i,"__esModule",{value:!0}),i.extendBucketWorm=void 0;var o=e("../utils/checkBucketName"),a=e("../utils/obj2xml");function l(e,t,i,r){return c.apply(this,arguments)}function c(){return c=(0,s.default)(n.default.mark((function e(t,i,r,s){var l,c,u;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o.checkBucketName(t),l=this._bucketRequestParams("POST",t,{wormExtend:"",wormId:i},s),c={ExtendWormConfiguration:{RetentionPeriodInDays:r}},l.mime="xml",l.content=a.obj2xml(c,{headers:!0}),l.successStatuses=[200],e.next=8,this.request(l);case 8:return u=e.sent,e.abrupt("return",{res:u.res,status:u.status});case 10:case"end":return e.stop()}}),e,this)}))),c.apply(this,arguments)}i.extendBucketWorm=l},{"../utils/checkBucketName":53,"../utils/obj2xml":76,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93}],13:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var s=r(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(i,"__esModule",{value:!0}),i.getBucketInventory=void 0;var o=e("../utils/checkBucketName"),a=e("../utils/formatInventoryConfig");function l(e,t){return c.apply(this,arguments)}function c(){return c=(0,s.default)(n.default.mark((function e(t,i){var r,s,l,c,u=arguments;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=u.length>2&&void 0!==u[2]?u[2]:{},s=Object.assign({inventory:"",inventoryId:i},r.subres),o.checkBucketName(t),l=this._bucketRequestParams("GET",t,s,r),l.successStatuses=[200],l.xmlResponse=!0,e.next=8,this.request(l);case 8:return c=e.sent,e.abrupt("return",{status:c.status,res:c.res,inventory:a.formatInventoryConfig(c.data)});case 10:case"end":return e.stop()}}),e,this)}))),c.apply(this,arguments)}i.getBucketInventory=l},{"../utils/checkBucketName":53,"../utils/formatInventoryConfig":63,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],14:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.array.map.js");var s=r(e("@babel/runtime/helpers/asyncToGenerator")),o=e("../utils/checkBucketName"),a=o.checkBucketName,l=e("../utils/isArray"),c=l.isArray,u=e("../utils/formatObjKey"),d=u.formatObjKey,h=i;h.getBucketLifecycle=function(){var e=(0,s.default)(n.default.mark((function e(t,i){var r,s,o;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a(t),r=this._bucketRequestParams("GET",t,"lifecycle",i),r.successStatuses=[200],r.xmlResponse=!0,e.next=6,this.request(r);case 6:return s=e.sent,o=s.data.Rule||null,o&&(c(o)||(o=[o]),o=o.map((function(e){return e.ID&&(e.id=e.ID,delete e.ID),e.Tag&&!c(e.Tag)&&(e.Tag=[e.Tag]),d(e,"firstLowerCase")}))),e.abrupt("return",{rules:o,res:s.res});case 10:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}()},{"../utils/checkBucketName":53,"../utils/formatObjKey":64,"../utils/isArray":67,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.map.js":318}],15:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator")),s=r(e("@babel/runtime/helpers/asyncToGenerator")),o=e("../utils/checkBucketName"),a=o.checkBucketName,l=i;l.getBucketVersioning=function(){var e=(0,s.default)(n.default.mark((function e(t,i){var r,s,o;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a(t),r=this._bucketRequestParams("GET",t,"versioning",i),r.xmlResponse=!0,r.successStatuses=[200],e.next=6,this.request(r);case 6:return s=e.sent,o=s.data.Status,e.abrupt("return",{status:s.status,versionStatus:o,res:s.res});case 9:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}()},{"../utils/checkBucketName":53,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93}],16:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator")),s=r(e("@babel/runtime/helpers/asyncToGenerator")),o=e("../utils/checkBucketName"),a=o.checkBucketName,l=e("../utils/isObject"),c=l.isObject,u=i;u.getBucketWebsite=function(){var e=(0,s.default)(n.default.mark((function e(t,i){var r,s,o;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a(t),r=this._bucketRequestParams("GET",t,"website",i),r.successStatuses=[200],r.xmlResponse=!0,e.next=6,this.request(r);case 6:return s=e.sent,o=[],s.data.RoutingRules&&s.data.RoutingRules.RoutingRule&&(o=c(s.data.RoutingRules.RoutingRule)?[s.data.RoutingRules.RoutingRule]:s.data.RoutingRules.RoutingRule),e.abrupt("return",{index:s.data.IndexDocument&&s.data.IndexDocument.Suffix||"",supportSubDir:s.data.IndexDocument&&s.data.IndexDocument.SupportSubDir||"false",type:s.data.IndexDocument&&s.data.IndexDocument.Type,routingRules:o,error:s.data.ErrorDocument&&s.data.ErrorDocument.Key||null,res:s.res});case 10:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}()},{"../utils/checkBucketName":53,"../utils/isObject":74,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93}],17:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var s=r(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(i,"__esModule",{value:!0}),i.getBucketWorm=void 0;var o=e("../utils/checkBucketName"),a=e("../utils/dataFix");function l(e,t){return c.apply(this,arguments)}function c(){return c=(0,s.default)(n.default.mark((function e(t,i){var r,s;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o.checkBucketName(t),r=this._bucketRequestParams("GET",t,"worm",i),r.successStatuses=[200],r.xmlResponse=!0,e.next=6,this.request(r);case 6:return s=e.sent,a.dataFix(s.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),e.abrupt("return",Object.assign(Object.assign({},s.data),{res:s.res,status:s.status}));case 9:case"end":return e.stop()}}),e,this)}))),c.apply(this,arguments)}i.getBucketWorm=l},{"../utils/checkBucketName":53,"../utils/dataFix":59,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],18:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator")),s=r(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(i,"__esModule",{value:!0}),i.initiateBucketWorm=void 0;var o=e("../utils/obj2xml"),a=e("../utils/checkBucketName");function l(e,t,i){return c.apply(this,arguments)}function c(){return c=(0,s.default)(n.default.mark((function e(t,i,r){var s,l,c;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a.checkBucketName(t),s=this._bucketRequestParams("POST",t,"worm",r),l={InitiateWormConfiguration:{RetentionPeriodInDays:i}},s.mime="xml",s.content=o.obj2xml(l,{headers:!0}),s.successStatuses=[200],e.next=8,this.request(s);case 8:return c=e.sent,e.abrupt("return",{res:c.res,wormId:c.res.headers["x-oss-worm-id"],status:c.status});case 10:case"end":return e.stop()}}),e,this)}))),c.apply(this,arguments)}i.initiateBucketWorm=l},{"../utils/checkBucketName":53,"../utils/obj2xml":76,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93}],19:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var s=r(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(i,"__esModule",{value:!0}),i.listBucketInventory=void 0;var o=e("../utils/checkBucketName"),a=e("../utils/formatInventoryConfig");function l(e){return c.apply(this,arguments)}function c(){return c=(0,s.default)(n.default.mark((function e(t){var i,r,s,l,c,u,d,h,p=arguments;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=p.length>1&&void 0!==p[1]?p[1]:{},r=i.continuationToken,s=Object.assign({inventory:""},r&&{"continuation-token":r},i.subres),o.checkBucketName(t),l=this._bucketRequestParams("GET",t,s,i),l.successStatuses=[200],l.xmlResponse=!0,e.next=9,this.request(l);case 9:return c=e.sent,u=c.data,d=c.res,h=c.status,e.abrupt("return",{isTruncated:"true"===u.IsTruncated,nextContinuationToken:u.NextContinuationToken,inventoryList:a.formatInventoryConfig(u.InventoryConfiguration,!0),status:h,res:d});case 12:case"end":return e.stop()}}),e,this)}))),c.apply(this,arguments)}i.listBucketInventory=l},{"../utils/checkBucketName":53,"../utils/formatInventoryConfig":63,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],20:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.array.concat.js");var s=r(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(i,"__esModule",{value:!0}),i.putBucketInventory=void 0;var o=e("../utils/checkBucketName"),a=e("../utils/obj2xml");function l(e,t){return c.apply(this,arguments)}function c(){return c=(0,s.default)(n.default.mark((function e(t,i){var r,s,l,c,u,d,h,p,f,m,g,y=arguments;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=y.length>2&&void 0!==y[2]?y[2]:{},s=Object.assign({inventory:"",inventoryId:i.id},r.subres),o.checkBucketName(t),l=i.OSSBucketDestination,c=i.optionalFields,u=i.includedObjectVersions,d="acs:oss:::",h="acs:ram::".concat(l.accountId,":role/"),p={InventoryConfiguration:{Id:i.id,IsEnabled:i.isEnabled,Filter:{Prefix:i.prefix||""},Destination:{OSSBucketDestination:{Format:l.format,AccountId:l.accountId,RoleArn:"".concat(h).concat(l.rolename),Bucket:"".concat(d).concat(l.bucket),Prefix:l.prefix||"",Encryption:l.encryption||""}},Schedule:{Frequency:i.frequency},IncludedObjectVersions:u,OptionalFields:{Field:(null===c||void 0===c?void 0:c.field)||[]}}},f=a.obj2xml(p,{headers:!0,firstUpperCase:!0}),m=this._bucketRequestParams("PUT",t,s,r),m.successStatuses=[200],m.mime="xml",m.content=f,e.next=14,this.request(m);case 14:return g=e.sent,e.abrupt("return",{status:g.status,res:g.res});case 16:case"end":return e.stop()}}),e,this)}))),c.apply(this,arguments)}i.putBucketInventory=l},{"../utils/checkBucketName":53,"../utils/obj2xml":76,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.object.assign.js":325}],21:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.array.includes.js");var s=r(e("@babel/runtime/helpers/asyncToGenerator")),o=e("../utils/checkBucketName"),a=o.checkBucketName,l=e("../utils/isArray"),c=l.isArray,u=e("../utils/deepCopy"),d=u.deepCopy,h=e("../utils/isObject"),p=h.isObject,f=e("../utils/obj2xml"),m=f.obj2xml,g=e("../utils/checkObjectTag"),y=g.checkObjectTag,b=e("../utils/getStrBytesCount"),v=b.getStrBytesCount,w=i;function x(e){e.days&&(e.expiration={days:e.days}),e.date&&(e.expiration={createdBeforeDate:e.date})}function _(e,t){var i=e.days,r=e.createdBeforeDate;if(!i&&!r)throw new Error("".concat(t," must includes days or createdBeforeDate"));if(i&&(c(i)||!/^[1-9][0-9]*$/.test(i)))throw new Error("days must be a positive integer");if(r&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(r))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function j(e,t){var i=e.noncurrentDays;if(!i)throw new Error("".concat(t," must includes noncurrentDays"));if(i&&(c(i)||!/^[1-9][0-9]*$/.test(i)))throw new Error("noncurrentDays must be a positive integer")}function C(e){if(!c(e)&&!p(e))throw new Error("tag must be Object or Array");e=p(e)?[e]:e;var t={},i=d(e);i.forEach((function(e){t[e.key]=e.value})),y(t)}function k(e){if(!["IA","Archive","ColdArchive","DeepColdArchive"].includes(e))throw new Error("StorageClass must be IA or Archive or ColdArchive or DeepColdArchive")}function S(e){if(e.id&&v(e.id)>255)throw new Error("ID is composed of 255 bytes at most");if(void 0===e.prefix)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(e.status))throw new Error("Status must be Enabled or Disabled");if(!e.expiration&&!e.noncurrentVersionExpiration&&!e.abortMultipartUpload&&!e.transition&&!e.noncurrentVersionTransition)throw new Error("Rule must includes expiration or noncurrentVersionExpiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(e.transition&&(k(e.transition.storageClass),_(e.transition,"Transition")),e.expiration)if(e.expiration.expiredObjectDeleteMarker){if(e.expiration.days||e.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}else _(e.expiration,"Expiration");if(e.abortMultipartUpload&&_(e.abortMultipartUpload,"AbortMultipartUpload"),e.noncurrentVersionTransition&&(k(e.noncurrentVersionTransition.storageClass),j(e.noncurrentVersionTransition,"NoncurrentVersionTransition")),e.noncurrentVersionExpiration&&j(e.noncurrentVersionExpiration,"NoncurrentVersionExpiration"),e.tag){if(e.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");C(e.tag)}}w.putBucketLifecycle=function(){var e=(0,s.default)(n.default.mark((function e(t,i,r){var s,o,l,u,d;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a(t),c(i)){e.next=3;break}throw new Error("rules must be Array");case 3:return s=this._bucketRequestParams("PUT",t,"lifecycle",r),o=[],l={LifecycleConfiguration:{Rule:o}},i.forEach((function(e){x(e),S(e),e.id&&(e.ID=e.id,delete e.id),o.push(e)})),u=m(l,{headers:!0,firstUpperCase:!0}),s.content=u,s.mime="xml",s.successStatuses=[200],e.next=13,this.request(s);case 13:return d=e.sent,e.abrupt("return",{res:d.res});case 15:case"end":return e.stop()}}),e,this)})));function t(t,i,r){return e.apply(this,arguments)}return t}()},{"../utils/checkBucketName":53,"../utils/checkObjectTag":56,"../utils/deepCopy":60,"../utils/getStrBytesCount":66,"../utils/isArray":67,"../utils/isObject":74,"../utils/obj2xml":76,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.includes.js":315,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/web.dom-collections.for-each.js":380}],22:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.array.includes.js");var s=r(e("@babel/runtime/helpers/asyncToGenerator")),o=e("../utils/checkBucketName"),a=o.checkBucketName,l=e("../utils/obj2xml"),c=l.obj2xml,u=i;u.putBucketVersioning=function(){var e=(0,s.default)(n.default.mark((function e(t,i){var r,s,o,l,u=arguments;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=u.length>2&&void 0!==u[2]?u[2]:{},a(t),["Enabled","Suspended"].includes(i)){e.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return s=this._bucketRequestParams("PUT",t,"versioning",r),o={VersioningConfiguration:{Status:i}},s.mime="xml",s.content=c(o,{headers:!0}),e.next=10,this.request(s);case 10:return l=e.sent,e.abrupt("return",{res:l.res,status:l.status});case 12:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}()},{"../utils/checkBucketName":53,"../utils/obj2xml":76,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.includes.js":315}],23:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator")),s=r(e("@babel/runtime/helpers/asyncToGenerator")),o=e("../utils/checkBucketName"),a=o.checkBucketName,l=e("../utils/obj2xml"),c=l.obj2xml,u=e("../utils/isArray"),d=u.isArray,h=i;h.putBucketWebsite=function(){var e=(0,s.default)(n.default.mark((function e(t){var i,r,s,o,l,u,h,p=arguments;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=p.length>1&&void 0!==p[1]?p[1]:{},r=p.length>2?p[2]:void 0,a(t),s=this._bucketRequestParams("PUT",t,"website",r),o={Suffix:i.index||"index.html"},l={IndexDocument:o},u={WebsiteConfiguration:l},i.supportSubDir&&(o.SupportSubDir=i.supportSubDir),i.type&&(o.Type=i.type),i.error&&(l.ErrorDocument={Key:i.error}),void 0===i.routingRules){e.next=14;break}if(d(i.routingRules)){e.next=13;break}throw new Error("RoutingRules must be Array");case 13:l.RoutingRules={RoutingRule:i.routingRules};case 14:return u=c(u),s.content=u,s.mime="xml",s.successStatuses=[200],e.next=20,this.request(s);case 20:return h=e.sent,e.abrupt("return",{res:h.res});case 22:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{"../utils/checkBucketName":53,"../utils/isArray":67,"../utils/obj2xml":76,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93}],24:[function(e,t,i){(function(t){(function(){"use strict";e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),i.encodeCallback=function(e,i){if(e.headers=e.headers||{},!Object.prototype.hasOwnProperty.call(e.headers,"x-oss-callback")&&i.callback){var r={callbackUrl:encodeURI(i.callback.url),callbackBody:i.callback.body};i.callback.host&&(r.callbackHost=i.callback.host),i.callback.contentType&&(r.callbackBodyType=i.callback.contentType),i.callback.callbackSNI&&(r.callbackSNI=i.callback.callbackSNI);var n=t.from(JSON.stringify(r)).toString("base64");if(e.headers["x-oss-callback"]=n,i.callback.customValue){var s={};Object.keys(i.callback.customValue).forEach((function(e){s["x:".concat(e)]=i.callback.customValue[e].toString()})),e.headers["x-oss-callback-var"]=t.from(JSON.stringify(s)).toString("base64")}}}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:103,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/web.dom-collections.for-each.js":380}],25:[function(e,t,i){"use strict";e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js");var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0}),i.getReqUrl=void 0;var n=r(e("copy-to")),s=r(e("url")),o=r(e("merge-descriptors")),a=r(e("is-type-of")),l=e("../utils/isIP"),c=e("../utils/checkConfigValid");function u(e){var t={},i=this.options.cname;c.checkConfigValid(this.options.endpoint,"endpoint"),n.default(this.options.endpoint,!1).to(t),!e.bucket||i||l.isIP(t.hostname)||this.options.sldEnable||(t.host="".concat(e.bucket,".").concat(t.host));var r="/";e.bucket&&this.options.sldEnable&&(r+="".concat(e.bucket,"/")),e.object&&(r+=this._escape(e.object).replace(/\+/g,"%2B")),t.pathname=r;var u={};if(e.query&&o.default(u,e.query),e.subres){var d={};a.default.string(e.subres)?d[e.subres]="":a.default.array(e.subres)?e.subres.forEach((function(e){d[e]=""})):d=e.subres,o.default(u,d)}return t.query=u,s.default.format(t)}i.getReqUrl=u},{"../utils/checkConfigValid":54,"../utils/isIP":73,"copy-to":107,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.replace.js":345,"core-js/modules/web.dom-collections.for-each.js":380,"is-type-of":537,"merge-descriptors":428,url:543}],26:[function(e,t,i){"use strict";e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.string.trim.js");var r=e("humanize-ms"),n=e("url"),s=e("../utils/checkBucketName"),o=s.checkBucketName,a=e("../utils/setRegion"),l=a.setRegion,c=e("../utils/checkConfigValid"),u=c.checkConfigValid;function d(e,t){u(e,"endpoint");var i=n.parse(e);if(i.protocol||(i=n.parse("http".concat(t?"s":"","://").concat(e))),"http:"!==i.protocol&&"https:"!==i.protocol)throw new Error("Endpoint protocol must be http or https.");return i}t.exports=function(e){if(!e||!e.accessKeyId||!e.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");!e.stsToken||e.refreshSTSToken||e.refreshSTSTokenInterval||console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken、accessKeyId、accessKeySecret automatically when sts token has expired"),e.bucket&&o(e.bucket);var t=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null,refreshSTSTokenInterval:3e5,retryMax:0,authorizationV4:!1},e);if(t.accessKeyId=t.accessKeyId.trim(),t.accessKeySecret=t.accessKeySecret.trim(),t.timeout&&(t.timeout=r(t.timeout)),t.endpoint)t.endpoint=d(t.endpoint,t.secure);else{if(!t.region)throw new Error("require options.endpoint or options.region");t.endpoint=l(t.region,t.internal,t.secure)}return t.inited=!0,t}},{"../utils/checkBucketName":53,"../utils/checkConfigValid":54,"../utils/setRegion":81,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.string.trim.js":349,"humanize-ms":399,url:543}],27:[function(e,t,i){"use strict";var r=e("merge-descriptors"),n=i;r(n,e("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":428}],28:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.array.concat.js");var s=r(e("@babel/runtime/helpers/asyncToGenerator")),o=e("../utils/checkBucketName"),a=o.checkBucketName,l=e("querystring"),c=e("js-base64"),u=c.Base64.encode,d=i;function h(e,t){if(!e)throw new Error("".concat(t," is required"));if("string"!==typeof e)throw new Error("".concat(t," must be String"))}d.processObjectSave=function(){var e=(0,s.default)(n.default.mark((function e(t,i,r,s){var o,c,d,p;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return h(t,"sourceObject"),h(i,"targetObject"),h(r,"process"),i=this._objectName(i),s&&a(s),o=this._objectRequestParams("POST",t,{subres:"x-oss-process"}),c=s?",b_".concat(u(s)):"",i=u(i),d={"x-oss-process":"".concat(r,"|sys/saveas,o_").concat(i).concat(c)},o.content=l.stringify(d),e.next=12,this.request(o);case 12:return p=e.sent,e.abrupt("return",{res:p.res,status:p.res.status});case 14:case"end":return e.stop()}}),e,this)})));function t(t,i,r,n){return e.apply(this,arguments)}return t}()},{"../utils/checkBucketName":53,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.concat.js":310,"js-base64":413,querystring:451}],29:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.function.name.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.array.from.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.array.filter.js"),e("core-js/modules/es.array.find.js"),e("core-js/modules/es.regexp.to-string.js");var s=r(e("@babel/runtime/helpers/asyncToGenerator")),o=e("debug")("ali-oss:multipart-copy"),a=e("copy-to"),l=i;l.uploadPartCopy=function(){var e=(0,s.default)(n.default.mark((function e(t,i,r,s,o){var a,l,c,u,d,h=arguments;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=h.length>5&&void 0!==h[5]?h[5]:{},a.headers=a.headers||{},l=a.versionId||a.subres&&a.subres.versionId||null,c=l?"/".concat(o.sourceBucketName,"/").concat(encodeURIComponent(o.sourceKey),"?versionId=").concat(l):"/".concat(o.sourceBucketName,"/").concat(encodeURIComponent(o.sourceKey)),a.headers["x-oss-copy-source"]=c,s&&(a.headers["x-oss-copy-source-range"]="bytes=".concat(s)),a.subres={partNumber:r,uploadId:i},u=this._objectRequestParams("PUT",t,a),u.mime=a.mime,u.successStatuses=[200],e.next=12,this.request(u);case 12:return d=e.sent,e.abrupt("return",{name:t,etag:d.res.headers.etag,res:d.res});case 14:case"end":return e.stop()}}),e,this)})));function t(t,i,r,n,s){return e.apply(this,arguments)}return t}(),l.multipartUploadCopy=function(){var e=(0,s.default)(n.default.mark((function e(t,i){var r,s,o,a,l,c,u,d,h,p,f,m,g=arguments;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=g.length>2&&void 0!==g[2]?g[2]:{},this.resetCancelFlag(),s=r.versionId,o=void 0===s?null:s,a={versionId:o},e.next=6,this._getObjectMeta(i.sourceBucketName,i.sourceKey,a);case 6:if(l=e.sent,c=l.res.headers["content-length"],i.startOffset=i.startOffset||0,i.endOffset=i.endOffset||c,!r.checkpoint||!r.checkpoint.uploadId){e.next=14;break}return e.next=13,this._resumeMultipartCopy(r.checkpoint,i,r);case 13:return e.abrupt("return",e.sent);case 14:if(u=102400,d=i.endOffset-i.startOffset,!(d0)){e.next=40;break}throw E=S[0],E.message="Failed to copy some parts with error: ".concat(E.toString()," part_num: ").concat(E.partNum),E;case 40:return e.next=42,this.completeMultipartUpload(m,p,f,r);case 42:return e.abrupt("return",e.sent);case 43:case"end":return e.stop()}}),e,this)})));function t(t,i,r){return e.apply(this,arguments)}return t}(),l._divideMultipartCopyParts=function(e,t,i){for(var r=Math.ceil(e/t),n=[],s=0;s\n\n',u=0;u\n",l+="".concat(h.number,"\n"),l+="".concat(h.etag,"\n"),l+="\n";return l+="",s=s||{},f={},f=c(s,(function(e){if(d(e))return null})),f.subres={uploadId:i},f.headers=p(f.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),m=this._objectRequestParams("POST",t,f),a.encodeCallback(m,f),m.mime="xml",m.content=l,m.headers&&m.headers["x-oss-callback"]||(m.xmlResponse=!0),m.successStatuses=[200],e.next=17,this.request(m);case 17:if(g=e.sent,!s.progress){e.next=21;break}return e.next=21,s.progress(1,null,g.res);case 21:return y={res:g.res,bucket:m.bucket,name:t,etag:g.res.headers.etag},m.headers&&m.headers["x-oss-callback"]&&(y.data=JSON.parse(g.data.toString())),e.abrupt("return",y);case 24:case"end":return e.stop()}}),e,this)})));function t(t,i,r,n){return e.apply(this,arguments)}return t}(),f._uploadPart=function(){var e=(0,s.default)(n.default.mark((function e(i,r,s,a,l){var c,u,d,h;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return l=l||{},c={},o(l).to(c),c.headers=c.headers||{},c.headers["Content-Length"]=a.size,c.headers=p(c.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),c.subres={partNumber:s,uploadId:r},u=this._objectRequestParams("PUT",i,c),u.mime=c.mime,d=t&&t.browser,d?u.content=a.content:u.stream=a.stream,u.successStatuses=[200],u.disabledMD5=l.disabledMD5,e.next=15,this.request(u);case 15:if(h=e.sent,h.res.headers.etag){e.next=18;break}throw new Error("Please set the etag of expose-headers in OSS \n https://help.aliyun.com/document_detail/32069.html");case 18:return a.stream&&(a.stream=null,u.stream=null),e.abrupt("return",{name:i,etag:h.res.headers.etag,res:h.res});case 20:case"end":return e.stop()}}),e,this)})));function i(t,i,r,n,s){return e.apply(this,arguments)}return i}()}).call(this)}).call(this,e("_process"))},{"./callback":24,"./utils/deepCopy":60,"./utils/isBuffer":69,"./utils/omit":77,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,_process:538,"copy-to":107,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.filter.js":312,"core-js/modules/es.array.map.js":318,"core-js/modules/es.array.sort.js":320,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.to-string.js":339}],31:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.regexp.exec.js");var s=r(e("@babel/runtime/helpers/asyncToGenerator")),o=e("url"),a=e("utility"),l=e("copy-to"),c=e("../../common/signUtils"),u=e("../utils/isIP"),d=u.isIP,h=e("../utils/setSTSToken"),p=h.setSTSToken,f=e("../utils/isFunction"),m=f.isFunction,g=i;g.asyncSignatureUrl=function(){var e=(0,s.default)(n.default.mark((function e(t,i){var r,s,u,h,f,g,y=arguments;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=!(y.length>2&&void 0!==y[2])||y[2],!d(this.options.endpoint.hostname)){e.next=3;break}throw new Error("can not get the object URL when endpoint is IP");case 3:if(!r||!/^\?/.test(t)){e.next=5;break}throw new Error("Invalid object name ".concat(t));case 5:if(i=i||{},t=this._objectName(t),i.method=i.method||"GET",s=a.timestamp()+(i.expires||1800),u={bucket:this.options.bucket,object:t},h=this._getResource(u),!this.options.stsToken||!m(this.options.refreshSTSToken)){e.next=14;break}return e.next=14,p.call(this);case 14:return this.options.stsToken&&(i["security-token"]=this.options.stsToken),f=c._signatureForURL(this.options.accessKeySecret,i,h,s),g=o.parse(this._getReqUrl(u)),g.query={OSSAccessKeyId:this.options.accessKeyId,Expires:s,Signature:f.Signature},l(f.subResource).to(g.query),e.abrupt("return",g.format());case 20:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}()},{"../../common/signUtils":52,"../utils/isFunction":72,"../utils/isIP":73,"../utils/setSTSToken":82,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"copy-to":107,"core-js/modules/es.regexp.exec.js":338,url:543,utility:545}],32:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.find.js"),e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js");var s=r(e("@babel/runtime/helpers/typeof")),o=r(e("@babel/runtime/helpers/asyncToGenerator")),a=e("../utils/checkBucketName"),l=a.checkBucketName,c=i,u=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];c.copy=function(){var e=(0,o.default)(n.default.mark((function e(t,i,r,o){var a,l,c;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return"object"===(0,s.default)(r)&&(o=r),o=o||{},o.headers=o.headers||{},Object.keys(o.headers).forEach((function(e){o.headers["x-oss-copy-source-".concat(e.toLowerCase())]=o.headers[e]})),(o.meta||Object.keys(o.headers).find((function(e){return u.includes(e.toLowerCase())})))&&(o.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(o.meta,o.headers),i=this._getSourceName(i,r),o.versionId&&(i="".concat(i,"?versionId=").concat(o.versionId)),o.headers["x-oss-copy-source"]=i,a=this._objectRequestParams("PUT",t,o),a.xmlResponse=!0,a.successStatuses=[200,304],e.next=14,this.request(a);case 14:return l=e.sent,c=l.data,c&&(c={etag:c.ETag,lastModified:c.LastModified}),e.abrupt("return",{data:c,res:l.res});case 18:case"end":return e.stop()}}),e,this)})));function t(t,i,r,n){return e.apply(this,arguments)}return t}(),c._getSourceName=function(e,t){return"string"===typeof t?e=this._objectName(e):"/"!==e[0]?t=this.options.bucket:(t=e.replace(/\/(.+?)(\/.*)/,"$1"),e=e.replace(/(\/.+?\/)(.*)/,"$2")),l(t),e=encodeURIComponent(e),e="/".concat(t,"/").concat(e),e}},{"../utils/checkBucketName":53,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/helpers/typeof":91,"@babel/runtime/regenerator":93,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.find.js":313,"core-js/modules/es.array.includes.js":315,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.replace.js":345,"core-js/modules/web.dom-collections.for-each.js":380}],33:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var s=r(e("@babel/runtime/helpers/asyncToGenerator")),o=i;o.delete=function(){var e=(0,s.default)(n.default.mark((function e(t){var i,r,s,o=arguments;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=o.length>1&&void 0!==o[1]?o[1]:{},i.subres=Object.assign({},i.subres),i.versionId&&(i.subres.versionId=i.versionId),r=this._objectRequestParams("DELETE",t,i),r.successStatuses=[204],e.next=7,this.request(r);case 7:return s=e.sent,e.abrupt("return",{res:s.res});case 9:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],34:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var s=r(e("@babel/runtime/helpers/asyncToGenerator")),o=e("utility"),a=e("../utils/obj2xml"),l=a.obj2xml,c=i;c.deleteMulti=function(){var e=(0,s.default)(n.default.mark((function e(t){var i,r,s,a,c,u,d,h,p,f,m,g,y,b=arguments;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=b.length>1&&void 0!==b[1]?b[1]:{},r=[],t&&t.length){e.next=4;break}throw new Error("names is required");case 4:for(s=0;s1&&void 0!==o[1]?o[1]:{},i.subres=Object.assign({tagging:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),t=this._objectName(t),r=this._objectRequestParams("DELETE",t,i),r.successStatuses=[204],e.next=8,this.request(r);case 8:return s=e.sent,e.abrupt("return",{status:s.status,res:s.res});case 10:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],36:[function(e,t,i){"use strict";e("core-js/modules/es.array.concat.js");var r=e("url"),n=e("../utils/isIP"),s=n.isIP,o=i;o.generateObjectUrl=function(e,t){if(s(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(t)"/"!==t[t.length-1]&&(t+="/");else{t=this.options.endpoint.format();var i=r.parse(t),n=this.options.bucket;i.hostname="".concat(n,".").concat(i.hostname),i.host="".concat(n,".").concat(i.host),t=i.format()}return t+this._escape(this._objectName(e))}},{"../utils/isIP":73,"core-js/modules/es.array.concat.js":310,url:543}],37:[function(e,t,i){(function(t){(function(){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var s=r(e("@babel/runtime/helpers/asyncToGenerator")),o=e("fs"),a=e("is-type-of"),l=e("../utils/isObject"),c=l.isObject,u=i;u.get=function(){var e=(0,s.default)(n.default.mark((function e(i,r){var s,l,u,d,h,p,f,m,g=arguments;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=g.length>2&&void 0!==g[2]?g[2]:{},l=null,u=!1,a.writableStream(r)?l=r:a.string(r)?(l=o.createWriteStream(r),u=!0):c(r)&&(s=r),s=s||{},d=t&&t.browser,h=null===s.responseCacheControl?"":"no-cache",p=d&&h?{"response-cache-control":h}:{},s.subres=Object.assign(p,s.subres),s.versionId&&(s.subres.versionId=s.versionId),s.process&&(s.subres["x-oss-process"]=s.process),e.prev=11,m=this._objectRequestParams("GET",i,s),m.writeStream=l,m.successStatuses=[200,206,304],e.next=17,this.request(m);case 17:f=e.sent,u&&l.destroy(),e.next=28;break;case 21:if(e.prev=21,e.t0=e["catch"](11),!u){e.next=27;break}return l.destroy(),e.next=27,this._deleteFileSafe(r);case 27:throw e.t0;case 28:return e.abrupt("return",{res:f.res,content:f.data});case 29:case"end":return e.stop()}}),e,this,[[11,21]])})));function i(t,i){return e.apply(this,arguments)}return i}()}).call(this)}).call(this,e("_process"))},{"../utils/isObject":74,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,_process:538,"core-js/modules/es.object.assign.js":325,fs:102,"is-type-of":537}],38:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var s=r(e("@babel/runtime/helpers/asyncToGenerator")),o=i;o.getACL=function(){var e=(0,s.default)(n.default.mark((function e(t){var i,r,s,o=arguments;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=o.length>1&&void 0!==o[1]?o[1]:{},i.subres=Object.assign({acl:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),t=this._objectName(t),r=this._objectRequestParams("GET",t,i),r.successStatuses=[200],r.xmlResponse=!0,e.next=9,this.request(r);case 9:return s=e.sent,e.abrupt("return",{acl:s.data.AccessControlList.Grant,owner:{id:s.data.Owner.ID,displayName:s.data.Owner.DisplayName},res:s.res});case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],39:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.number.constructor.js");var s=r(e("@babel/runtime/helpers/asyncToGenerator")),o=i,a=e("../utils/isObject"),l=a.isObject,c=e("../utils/isArray"),u=c.isArray,d=e("../utils/parseRestoreInfo"),h=d.parseRestoreInfo;function p(){return f.apply(this,arguments)}function f(){return f=(0,s.default)(n.default.mark((function e(){var t,i,r,s,o,a,l,c,d=arguments;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=d.length>0&&void 0!==d[0]?d[0]:{},i=d.length>1&&void 0!==d[1]?d[1]:{},!t.versionIdMarker||void 0!==t.keyMarker){e.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return i.subres=Object.assign({versions:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),r=this._objectRequestParams("GET","",i),r.xmlResponse=!0,r.successStatuses=[200],r.query=g(t),e.next=12,this.request(r);case 12:return s=e.sent,o=s.data.Version||[],a=s.data.DeleteMarker||[],l=this,o&&(Array.isArray(o)||(o=[o]),o=o.map((function(e){return{name:e.Key,url:l._objectUrl(e.Key),lastModified:e.LastModified,isLatest:"true"===e.IsLatest,versionId:e.VersionId,etag:e.ETag,type:e.Type,size:Number(e.Size),storageClass:e.StorageClass,owner:{id:e.Owner.ID,displayName:e.Owner.DisplayName},restoreInfo:h(e.RestoreInfo)}}))),a&&(u(a)||(a=[a]),a=a.map((function(e){return{name:e.Key,lastModified:e.LastModified,versionId:e.VersionId,owner:{id:e.Owner.ID,displayName:e.Owner.DisplayName}}}))),c=s.data.CommonPrefixes||null,c&&(u(c)||(c=[c]),c=c.map((function(e){return e.Prefix}))),e.abrupt("return",{res:s.res,objects:o,deleteMarker:a,prefixes:c,nextMarker:s.data.NextKeyMarker||null,NextVersionIdMarker:s.data.NextVersionIdMarker||null,nextKeyMarker:s.data.NextKeyMarker||null,nextVersionIdMarker:s.data.NextVersionIdMarker||null,isTruncated:"true"===s.data.IsTruncated});case 21:case"end":return e.stop()}}),e,this)}))),f.apply(this,arguments)}function m(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return l(e)&&Object.keys(e).forEach((function(i){t[m(i)]=e[i]})),t}o.getBucketVersions=p,o.listObjectVersions=p},{"../utils/isArray":67,"../utils/isObject":74,"../utils/parseRestoreInfo":78,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.map.js":318,"core-js/modules/es.number.constructor.js":324,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.replace.js":345,"core-js/modules/web.dom-collections.for-each.js":380}],40:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var s=r(e("@babel/runtime/helpers/asyncToGenerator")),o=i;o.getObjectMeta=function(){var e=(0,s.default)(n.default.mark((function e(t,i){var r,s;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=i||{},t=this._objectName(t),i.subres=Object.assign({objectMeta:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),r=this._objectRequestParams("HEAD",t,i),r.successStatuses=[200],e.next=8,this.request(r);case 8:return s=e.sent,e.abrupt("return",{status:s.status,res:s.res});case 10:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}()},{"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],41:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js");var s=r(e("@babel/runtime/helpers/asyncToGenerator")),o=i,a=e("../utils/isObject"),l=a.isObject;o.getObjectTagging=function(){var e=(0,s.default)(n.default.mark((function e(t){var i,r,s,o,a,c,u=arguments;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=u.length>1&&void 0!==u[1]?u[1]:{},i.subres=Object.assign({tagging:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),t=this._objectName(t),r=this._objectRequestParams("GET",t,i),r.successStatuses=[200],e.next=8,this.request(r);case 8:return s=e.sent,e.next=11,this.parseXML(s.data);case 11:return o=e.sent,a=o.TagSet.Tag,a=a&&l(a)?[a]:a||[],c={},a.forEach((function(e){c[e.Key]=e.Value})),e.abrupt("return",{status:s.status,res:s.res,tag:c});case 17:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{"../utils/isObject":74,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.to-string.js":329,"core-js/modules/web.dom-collections.for-each.js":380}],42:[function(e,t,i){"use strict";var r=e("../utils/isIP"),n=r.isIP,s=i;s.getObjectUrl=function(e,t){if(n(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return t?"/"!==t[t.length-1]&&(t+="/"):t=this.options.endpoint.format(),t+this._escape(this._objectName(e))}},{"../utils/isIP":73}],43:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var s=r(e("@babel/runtime/helpers/asyncToGenerator")),o=i;o.getSymlink=function(){var e=(0,s.default)(n.default.mark((function e(t){var i,r,s,o,a=arguments;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=a.length>1&&void 0!==a[1]?a[1]:{},i.subres=Object.assign({symlink:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),t=this._objectName(t),r=this._objectRequestParams("GET",t,i),r.successStatuses=[200],e.next=8,this.request(r);case 8:return s=e.sent,o=s.res.headers["x-oss-symlink-target"],e.abrupt("return",{targetName:decodeURIComponent(o),res:s.res});case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],44:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js");var s=r(e("@babel/runtime/helpers/asyncToGenerator")),o=e("../utils/checkEnv"),a=o.checkEnv,l=i;l.head=function(){var e=(0,s.default)(n.default.mark((function e(t){var i,r,s,o,l=arguments;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=l.length>1&&void 0!==l[1]?l[1]:{},a("Because HeadObject has gzip enabled, head cannot get the file size correctly. If you need to get the file size, please use getObjectMeta"),i.subres=Object.assign({},i.subres),i.versionId&&(i.subres.versionId=i.versionId),r=this._objectRequestParams("HEAD",t,i),r.successStatuses=[200,304],e.next=8,this.request(r);case 8:return s=e.sent,o={meta:null,res:s.res,status:s.status},200===s.status&&Object.keys(s.headers).forEach((function(e){0===e.indexOf("x-oss-meta-")&&(o.meta||(o.meta={}),o.meta[e.substring(11)]=s.headers[e])})),e.abrupt("return",o);case 12:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{"../utils/checkEnv":55,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/web.dom-collections.for-each.js":380}],45:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var s=r(e("@babel/runtime/helpers/asyncToGenerator")),o=i;o.putACL=function(){var e=(0,s.default)(n.default.mark((function e(t,i,r){var s,o;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=r||{},r.subres=Object.assign({acl:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),r.headers=r.headers||{},r.headers["x-oss-object-acl"]=i,t=this._objectName(t),s=this._objectRequestParams("PUT",t,r),s.successStatuses=[200],e.next=10,this.request(s);case 10:return o=e.sent,e.abrupt("return",{res:o.res});case 12:case"end":return e.stop()}}),e,this)})));function t(t,i,r){return e.apply(this,arguments)}return t}()},{"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],46:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.object.keys.js");var s=r(e("@babel/runtime/helpers/asyncToGenerator")),o=e("../utils/obj2xml"),a=o.obj2xml,l=e("../utils/checkObjectTag"),c=l.checkObjectTag,u=i;u.putObjectTagging=function(){var e=(0,s.default)(n.default.mark((function e(t,i){var r,s,o,l,u=arguments;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=u.length>2&&void 0!==u[2]?u[2]:{},c(i),r.subres=Object.assign({tagging:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),t=this._objectName(t),s=this._objectRequestParams("PUT",t,r),s.successStatuses=[200],i=Object.keys(i).map((function(e){return{Key:e,Value:i[e]}})),o={Tagging:{TagSet:{Tag:i}}},s.mime="xml",s.content=a(o),e.next=13,this.request(s);case 13:return l=e.sent,e.abrupt("return",{res:l.res,status:l.status});case 15:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}()},{"../utils/checkObjectTag":56,"../utils/obj2xml":76,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.map.js":318,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.keys.js":328}],47:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var s=r(e("@babel/runtime/helpers/asyncToGenerator")),o=i;o.putSymlink=function(){var e=(0,s.default)(n.default.mark((function e(t,i,r){var s,o;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=r||{},r.headers=r.headers||{},i=this._escape(this._objectName(i)),this._convertMetaToHeaders(r.meta,r.headers),r.headers["x-oss-symlink-target"]=i,r.subres=Object.assign({symlink:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),r.storageClass&&(r.headers["x-oss-storage-class"]=r.storageClass),t=this._objectName(t),s=this._objectRequestParams("PUT",t,r),s.successStatuses=[200],e.next=13,this.request(s);case 13:return o=e.sent,e.abrupt("return",{res:o.res});case 15:case"end":return e.stop()}}),e,this)})));function t(t,i,r){return e.apply(this,arguments)}return t}()},{"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],48:[function(e,t,i){(function(t){(function(){"use strict";e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js");var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0}),i.signPostObjectPolicyV4=void 0;var n=r(e("dateformat")),s=e("../utils/getStandardRegion"),o=e("../utils/policy2Str"),a=e("../signUtils");function l(e,i){var r=t.from(o.policy2Str(e),"utf8").toString("base64"),l=n.default(i,"UTC:yyyymmdd'T'HHMMss'Z'"),c=l.split("T")[0],u=a.getSignatureV4(this.options.accessKeySecret,c,s.getStandardRegion(this.options.region),r);return u}i.signPostObjectPolicyV4=l}).call(this)}).call(this,e("buffer").Buffer)},{"../signUtils":52,"../utils/getStandardRegion":65,"../utils/policy2Str":79,buffer:103,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.to-string.js":339,dateformat:383}],49:[function(e,t,i){"use strict";e("core-js/modules/es.regexp.exec.js");var r=e("url"),n=e("utility"),s=e("copy-to"),o=e("../../common/signUtils"),a=e("../utils/isIP"),l=a.isIP,c=i;c.signatureUrl=function(e,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(l(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(i&&/^\?/.test(e))throw new Error("Invalid object name ".concat(e));t=t||{},e=this._objectName(e),t.method=t.method||"GET";var a=n.timestamp()+(t.expires||1800),c={bucket:this.options.bucket,object:e},u=this._getResource(c);this.options.stsToken&&(t["security-token"]=this.options.stsToken);var d=o._signatureForURL(this.options.accessKeySecret,t,u,a),h=r.parse(this._getReqUrl(c));return h.query={OSSAccessKeyId:this.options.accessKeyId,Expires:a,Signature:d.Signature},s(d.subResource).to(h.query),h.format()}},{"../../common/signUtils":52,"../utils/isIP":73,"copy-to":107,"core-js/modules/es.regexp.exec.js":338,url:543,utility:545}],50:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.array.join.js");var s=r(e("@babel/runtime/helpers/asyncToGenerator")),o=e("dateformat"),a=e("url"),l=e("../../common/signUtils"),c=e("../utils/setSTSToken"),u=c.setSTSToken,d=e("../utils/isFunction"),h=d.isFunction,p=e("../utils/getStandardRegion"),f=p.getStandardRegion,m=i;m.signatureUrlV4=function(){var e=(0,s.default)(n.default.mark((function e(t,i,r,s,c){var d,p,m,g,y,b,v,w,x,_,j,C;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(d=this.options.cloudBoxId,p=l.getProduct(d),m=l.getSignRegion(f(this.options.region),d),g=r&&r.headers||{},y=Object.assign({},r&&r.queries||{}),b=new Date,v=o(b,"UTC:yyyymmdd'T'HHMMss'Z'"),w=v.split("T")[0],x=l.fixAdditionalHeaders(c),x.length>0&&(y["x-oss-additional-headers"]=x.join(";")),y["x-oss-credential"]=l.getCredential(w,m,this.options.accessKeyId,p),y["x-oss-date"]=v,y["x-oss-expires"]=i,y["x-oss-signature-version"]="OSS4-HMAC-SHA256",!this.options.stsToken||!h(this.options.refreshSTSToken)){e.next=17;break}return e.next=17,u.call(this);case 17:return this.options.stsToken&&(y["x-oss-security-token"]=this.options.stsToken),_=l.getCanonicalRequest(t,{headers:g,queries:y},this.options.bucket,s,x),j=l.getStringToSign(m,v,_,p),y["x-oss-signature"]=l.getSignatureV4(this.options.accessKeySecret,w,m,j,p),C=a.parse(this._getReqUrl({bucket:this.options.bucket,object:s})),C.query=Object.assign({},y),e.abrupt("return",C.format());case 24:case"end":return e.stop()}}),e,this)})));function t(t,i,r,n,s){return e.apply(this,arguments)}return t}()},{"../../common/signUtils":52,"../utils/getStandardRegion":65,"../utils/isFunction":72,"../utils/setSTSToken":82,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.join.js":317,"core-js/modules/es.object.assign.js":325,dateformat:383,url:543}],51:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.array.iterator.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/web.dom-collections.iterator.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.function.name.js");var s=r(e("@babel/runtime/helpers/asyncToGenerator")),o=e("./utils/isArray"),a=o.isArray,l=i;l._parallelNode=function(){var e=(0,s.default)(n.default.mark((function e(t,i,r,s){var o,a,l,c,u,d,h,p;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:o=this,a=[],l=[],c=t.length/i,u=t.length%i,d=0===u?c:(t.length-u)/i+1,h=1,p=0;case 8:if(!(p0)return a=!0,void(l<=0&&n(s));l+=1,p(e.value,u(h))}c=!1}}))},l.cancel=function(e){this.options.cancelFlag=!0,a(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach((function(e){if(!1===e.destroyed){var t={name:"cancel",message:"cancel"};e.destroy(t)}})),this.multipartUploadStreams=[],e&&this.abortMultipartUpload(e.name,e.uploadId,e.options)},l.isCancel=function(){return this.options.cancelFlag},l.resetCancelFlag=function(){this.options.cancelFlag=!1},l._stop=function(){this.options.cancelFlag=!0},l._makeCancelEvent=function(){var e={status:0,name:"cancel"};return e},l._makeAbortEvent=function(){var e={status:0,name:"abort",message:"upload task has been abort"};return e}},{"./utils/isArray":67,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.iterator.js":316,"core-js/modules/es.function.name.js":322,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.promise.js":333,"core-js/modules/es.string.iterator.js":343,"core-js/modules/web.dom-collections.for-each.js":380,"core-js/modules/web.dom-collections.iterator.js":381}],52:[function(e,t,i){(function(t){(function(){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/helpers/toConsumableArray"));e("core-js/modules/es.string.trim.js"),e("core-js/modules/es.array.sort.js"),e("core-js/modules/es.array.join.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.array.filter.js"),e("core-js/modules/es.array.iterator.js"),e("core-js/modules/es.set.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/web.dom-collections.iterator.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.string.starts-with.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.object.entries.js"),e("core-js/modules/es.regexp.to-string.js");var s=e("./../../shims/crypto/crypto.js"),o=e("is-type-of"),a=e("qs"),l=e("./utils/lowercaseKeyHeader"),c=l.lowercaseKeyHeader,u=e("./utils/encodeString"),d=u.encodeString;i.getProduct=function(e){return void 0===e?"oss":"oss-cloudbox"},i.getSignRegion=function(e,t){return void 0===t?e:t},i.buildCanonicalizedResource=function(e,t){var i="".concat(e),r="?";if(o.string(t)&&""!==t.trim())i+=r+t;else if(o.array(t))t.sort(),i+=r+t.join("&");else if(t){var n=function(e){i+=r+e,(t[e]||0===t[e])&&(i+="=".concat(t[e])),r="&"};Object.keys(t).sort().forEach(n)}return i},i.buildCanonicalString=function(e,t,i,r){i=i||{};var n=c(i.headers),s="x-oss-",o=[],a={},l=[e.toUpperCase(),n["content-md5"]||"",n["content-type"],r||n["x-oss-date"]];return Object.keys(n).forEach((function(e){var t=e.toLowerCase();0===t.indexOf(s)&&(a[t]=String(n[e]).trim())})),Object.keys(a).sort().forEach((function(e){o.push("".concat(e,":").concat(a[e]))})),l=l.concat(o),l.push(this.buildCanonicalizedResource(t,i.parameters)),l.join("\n")},i.computeSignature=function(e,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"utf-8",n=s.createHmac("sha1",e);return n.update(t.from(i,r)).digest("base64")},i.authorization=function(e,t,i,r){return"OSS ".concat(e,":").concat(this.computeSignature(t,i,r))},i.fixAdditionalHeaders=function(e){if(!e)return[];var t="x-oss-";return(0,n.default)(new Set(e.map((function(e){return e.toLowerCase()})))).filter((function(e){return"content-type"!==e&&"content-md5"!==e&&!e.startsWith(t)})).sort()},i.getCanonicalRequest=function(e,t,i,r,s){var l=c(t.headers),u=t.queries||{},h="x-oss-";if(r&&!i)throw Error("Please ensure that bucketName is passed into getCanonicalRequest.");var p=[e.toUpperCase(),d("/".concat(i?"".concat(i,"/"):"").concat(r||"")).replace(/%2F/g,"/")];p.push(a.stringify(u,{encoder:d,sort:function(e,t){return e.localeCompare(t)},strictNullHandling:!0})),s&&s.forEach((function(e){if(!Object.prototype.hasOwnProperty.call(l,e))throw Error("Can't find additional header ".concat(e," in request headers."))}));var f=new Set(s);Object.keys(l).forEach((function(e){("content-type"===e||"content-md5"===e||e.startsWith(h))&&f.add(e)}));var m="".concat((0,n.default)(f).sort().map((function(e){return"".concat(e,":").concat(o.string(l[e])?l[e].trim():l[e],"\n")})).join(""));return p.push(m),s&&s.length>0?p.push(s.join(";")):p.push(""),p.push(l["x-oss-content-sha256"]||"UNSIGNED-PAYLOAD"),p.join("\n")},i.getCredential=function(e,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"oss",n="".concat(e,"/").concat(t,"/").concat(r,"/aliyun_v4_request");return i?"".concat(i,"/").concat(n):n},i.getStringToSign=function(e,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"oss",n=["OSS4-HMAC-SHA256",t,this.getCredential(t.split("T")[0],e,void 0,r),s.createHash("sha256").update(i).digest("hex")];return n.join("\n")},i.getSignatureV4=function(e,t,i,r){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"oss",o=s.createHmac("sha256","aliyun_v4".concat(e)).update(t).digest(),a=s.createHmac("sha256",o).update(i).digest(),l=s.createHmac("sha256",a).update(n).digest(),c=s.createHmac("sha256",l).update("aliyun_v4_request").digest(),u=s.createHmac("sha256",c).update(r).digest("hex");return u},i.authorizationV4=function(e,i,r,n,s,a,l,c){var u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:"utf-8",d=arguments.length>9?arguments[9]:void 0,h=this.getProduct(d),p=this.fixAdditionalHeaders(c),f={};Object.entries(s.headers).forEach((function(e){f[e[0]]=o.string(e[1])?t.from(e[1],u).toString():e[1]}));var m=f["x-oss-date"]||s.queries&&s.queries["x-oss-date"],g=this.getCanonicalRequest(n,{headers:f,queries:s.queries},a,l,p),y=this.getStringToSign(r,m,g,h),b=m.split("T")[0],v=this.getSignatureV4(i,b,r,y,h),w=p.length>0?"AdditionalHeaders=".concat(p.join(";"),","):"";return"OSS4-HMAC-SHA256 Credential=".concat(this.getCredential(b,r,e,h),",").concat(w,"Signature=").concat(v)},i._signatureForURL=function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,o={},a=i.subResource,l=void 0===a?{}:a;if(i.process){var c="x-oss-process";l[c]=i.process}if(i.trafficLimit){var u="x-oss-traffic-limit";l[u]=i.trafficLimit}if(i.response&&Object.keys(i.response).forEach((function(e){var t="response-".concat(e.toLowerCase());l[t]=i.response[e]})),Object.keys(i).forEach((function(e){var t=e.toLowerCase(),r=i[e];0===t.indexOf("x-oss-")?o[t]=r:(0===t.indexOf("content-md5")||0===t.indexOf("content-type"))&&(o[e]=r)})),Object.prototype.hasOwnProperty.call(i,"security-token")&&(l["security-token"]=i["security-token"]),Object.prototype.hasOwnProperty.call(i,"callback")){var d={callbackUrl:encodeURI(i.callback.url),callbackBody:i.callback.body};if(i.callback.host&&(d.callbackHost=i.callback.host),i.callback.contentType&&(d.callbackBodyType=i.callback.contentType),i.callback.callbackSNI&&(d.callbackSNI=i.callback.callbackSNI),l.callback=t.from(JSON.stringify(d)).toString("base64"),i.callback.customValue){var h={};Object.keys(i.callback.customValue).forEach((function(e){h["x:".concat(e)]=i.callback.customValue[e]})),l["callback-var"]=t.from(JSON.stringify(h)).toString("base64")}}var p=this.buildCanonicalString(i.method,r,{headers:o,parameters:l},n.toString());return{Signature:this.computeSignature(e,p,s),subResource:l}}}).call(this)}).call(this,e("buffer").Buffer)},{"./../../shims/crypto/crypto.js":531,"./utils/encodeString":61,"./utils/lowercaseKeyHeader":75,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/helpers/toConsumableArray":90,buffer:103,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.filter.js":312,"core-js/modules/es.array.iterator.js":316,"core-js/modules/es.array.join.js":317,"core-js/modules/es.array.map.js":318,"core-js/modules/es.array.sort.js":320,"core-js/modules/es.object.entries.js":326,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/es.set.js":341,"core-js/modules/es.string.iterator.js":343,"core-js/modules/es.string.replace.js":345,"core-js/modules/es.string.starts-with.js":348,"core-js/modules/es.string.trim.js":349,"core-js/modules/web.dom-collections.for-each.js":380,"core-js/modules/web.dom-collections.iterator.js":381,"is-type-of":537,qs:445}],53:[function(e,t,i){"use strict";e("core-js/modules/es.regexp.exec.js"),Object.defineProperty(i,"__esModule",{value:!0}),i.checkBucketName=void 0,i.checkBucketName=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=t?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!i.test(e))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":338}],54:[function(e,t,i){"use strict";e("core-js/modules/es.regexp.exec.js"),Object.defineProperty(i,"__esModule",{value:!0}),i.checkConfigValid=void 0;var r={endpoint:n,region:/^[a-zA-Z0-9\-_]+$/};function n(e){return"string"===typeof e?/^[a-zA-Z0-9._:/-]+$/.test(e):!!e.host&&/^[a-zA-Z0-9._:/-]+$/.test(e.host)}i.checkConfigValid=function(e,t){if(r[t]){var i=!0;if(i=r[t]instanceof Function?r[t](e):r[t].test(e),!i)throw new Error("The ".concat(t," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":338}],55:[function(e,t,i){(function(e){(function(){"use strict";function t(t){e.browser&&console.warn(t)}Object.defineProperty(i,"__esModule",{value:!0}),i.checkEnv=void 0,i.checkEnv=t}).call(this)}).call(this,e("_process"))},{_process:538}],56:[function(e,t,i){"use strict";e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.object.entries.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(i,"__esModule",{value:!0}),i.checkObjectTag=void 0;var r=e("./checkValid"),n=r.checkValid,s=e("./isObject"),o=s.isObject,a=[{validator:function(e){if("string"!==typeof e)throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],l={key:[].concat(a,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(a,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function c(e){if(!o(e))throw new Error("tag must be Object");var t=Object.entries(e);if(t.length>10)throw new Error("maximum of 10 tags for a object");var i=["key","value"];t.forEach((function(e){e.forEach((function(e,t){n(e,l[i[t]])}))}))}i.checkObjectTag=c},{"./checkValid":57,"./isObject":74,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.object.entries.js":326,"core-js/modules/es.object.to-string.js":329,"core-js/modules/web.dom-collections.for-each.js":380}],57:[function(e,t,i){"use strict";function r(e,t){t.forEach((function(t){if(t.validator)t.validator(e);else if(t.pattern&&!t.pattern.test(e))throw new Error(t.msg)}))}e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.regexp.exec.js"),Object.defineProperty(i,"__esModule",{value:!0}),i.checkValid=void 0,i.checkValid=r},{"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/web.dom-collections.for-each.js":380}],58:[function(e,t,i){(function(t){(function(){"use strict";e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.string.includes.js"),e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.entries.js"),e("core-js/modules/es.array.concat.js"),Object.defineProperty(i,"__esModule",{value:!0}),i.createRequest=void 0;var r=e("./../../../shims/crypto/crypto.js"),n=e("debug")("ali-oss"),s=e("lodash/isString"),o=e("lodash/isArray"),a=e("lodash/isObject"),l=e("mime"),c=e("dateformat"),u=e("copy-to"),d=e("path"),h=e("./encoder"),p=h.encoder,f=e("./isIP"),m=f.isIP,g=e("./setRegion"),y=g.setRegion,b=e("../client/getReqUrl"),v=b.getReqUrl,w=e("./isDingTalk"),x=w.isDingTalk;function _(e,t){return e[t]||e[t.toLowerCase()]}function j(e,t){delete e[t],delete e[t.toLowerCase()]}function C(e){var i=new Date;this.options.amendTimeSkewed&&(i=+new Date+this.options.amendTimeSkewed);var h={"x-oss-date":c(i,this.options.authorizationV4?"UTC:yyyymmdd'T'HHMMss'Z'":"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};this.options.authorizationV4&&(h["x-oss-content-sha256"]="UNSIGNED-PAYLOAD"),"undefined"!==typeof window&&(h["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(h["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(h,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(h["x-oss-security-token"]=this.options.stsToken),u(e.headers).to(h),_(h,"Content-Type")||(e.mime&&e.mime.indexOf("/")>0?h["Content-Type"]=e.mime:x()?h["Content-Type"]="application/octet-stream":h["Content-Type"]=l.getType(e.mime||d.extname(e.object||""))),_(h,"Content-Type")||j(h,"Content-Type"),e.content&&(e.disabledMD5||(e.headers&&e.headers["Content-MD5"]?h["Content-MD5"]=e.headers["Content-MD5"]:h["Content-MD5"]=r.createHash("md5").update(t.from(e.content,"utf8")).digest("base64")),h["Content-Length"]||(h["Content-Length"]=e.content.length));var f=Object.prototype.hasOwnProperty;for(var g in h)h[g]&&f.call(h,g)&&(h[g]=p(String(h[g]),this.options.headerEncoding));var b={};if(s(e.subres)?b[e.subres]=null:o(e.subres)?e.subres.forEach((function(e){b[e]=null})):a(e.subres)&&Object.entries(e.subres).forEach((function(e){b[e[0]]=""===e[1]?null:e[1]})),a(e.query)&&Object.entries(e.query).forEach((function(e){b[e[0]]=e[1]})),h.authorization=this.options.authorizationV4?this.authorizationV4(e.method,{headers:h,queries:b},e.bucket,e.object,e.additionalHeaders):this.authorization(e.method,this._getResource(e),e.subres,h,this.options.headerEncoding),m(this.options.endpoint.hostname)){var w=this.options,C=w.region,k=w.internal,S=w.secure,T=y(C,k,S);h.host="".concat(e.bucket,".").concat(T.host)}var E=v.bind(this)(e);n("request %s %s, with headers %j, !!stream: %s",e.method,E,h,!!e.stream);var O=e.timeout||this.options.timeout,D={method:e.method,content:e.content,stream:e.stream,headers:h,timeout:O,writeStream:e.writeStream,customResponse:e.customResponse,ctx:e.ctx||this.ctx};return this.agent&&(D.agent=this.agent),this.httpsAgent&&(D.httpsAgent=this.httpsAgent),D.enableProxy=!!this.options.enableProxy,D.proxy=this.options.proxy?this.options.proxy:null,{url:E,params:D}}i.createRequest=C}).call(this)}).call(this,e("buffer").Buffer)},{"../client/getReqUrl":25,"./../../../shims/crypto/crypto.js":531,"./encoder":62,"./isDingTalk":70,"./isIP":73,"./setRegion":81,buffer:103,"copy-to":107,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.includes.js":315,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.entries.js":326,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.string.includes.js":342,"core-js/modules/web.dom-collections.for-each.js":380,dateformat:383,debug:536,"lodash/isArray":422,"lodash/isObject":423,"lodash/isString":425,mime:430,path:439}],59:[function(e,t,i){"use strict";e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.entries.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.object.keys.js"),Object.defineProperty(i,"__esModule",{value:!0}),i.dataFix=void 0;var r=e("./isObject"),n=["true","TRUE","1",1],s=["false","FALSE","0",0];function o(e,t,i){if(r.isObject(e)){var n=t.remove,s=void 0===n?[]:n,c=t.rename,u=void 0===c?{}:c,d=t.camel,h=void 0===d?[]:d,p=t.bool,f=void 0===p?[]:p,m=t.lowerFirst,g=void 0!==m&&m;return s.forEach((function(t){return delete e[t]})),Object.entries(u).forEach((function(t){e[t[0]]&&(e[t[1]]||(e[t[1]]=e[t[0]],delete e[t[0]]))})),h.forEach((function(t){if(e[t]){var i=t.replace(/^(.)/,(function(e){return e.toLowerCase()})).replace(/-(\w)/g,(function(e,t){return t.toUpperCase()}));e[i]||(e[i]=e[t])}})),f.forEach((function(t){e[t]=a(e[t])})),"function"===typeof i&&i(e),l(e,g),o}}function a(e){return!!e&&(!!n.includes(e)||!s.includes(e)&&e)}function l(e,t){t&&Object.keys(e).forEach((function(t){var i=t.replace(/^\w/,(function(e){return e.toLowerCase()}));"undefined"===typeof e[i]&&(e[i]=e[t],delete e[t])}))}i.dataFix=o},{"./isObject":74,"core-js/modules/es.array.includes.js":315,"core-js/modules/es.object.entries.js":326,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.replace.js":345,"core-js/modules/web.dom-collections.for-each.js":380}],60:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.slice.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js");var n=r(e("@babel/runtime/helpers/typeof"));Object.defineProperty(i,"__esModule",{value:!0}),i.deepCopyWith=i.deepCopy=void 0;var s=e("./isBuffer");i.deepCopy=function(e){if(null===e||"object"!==(0,n.default)(e))return e;if(s.isBuffer(e))return e.slice();var t=Array.isArray(e)?[]:{};return Object.keys(e).forEach((function(r){t[r]=i.deepCopy(e[r])})),t},i.deepCopyWith=function(e,t){function r(e,i,o){var a=t(e,i,o);if(void 0!==a)return a;if(null===e||"object"!==(0,n.default)(e))return e;if(s.isBuffer(e))return e.slice();var l=Array.isArray(e)?[]:{};return Object.keys(e).forEach((function(t){l[t]=r(e[t],t,e)})),l}return t?r(e,"",null):i.deepCopy(e)}},{"./isBuffer":69,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/helpers/typeof":91,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/web.dom-collections.for-each.js":380}],61:[function(e,t,i){"use strict";e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js");var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0}),i.encodeString=void 0;var n=r(e("lodash/toString"));function s(e){var t=n.default(e);return encodeURIComponent(t).replace(/[!'()*]/g,(function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())}))}i.encodeString=s},{"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/es.string.replace.js":345,"lodash/toString":427}],62:[function(e,t,i){(function(t){(function(){"use strict";function r(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf-8";return"utf-8"===i?e:t.from(e).toString("latin1")}e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(i,"__esModule",{value:!0}),i.encoder=void 0,i.encoder=r}).call(this)}).call(this,e("buffer").Buffer)},{buffer:103,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.to-string.js":339}],63:[function(e,t,i){"use strict";e("core-js/modules/es.array.map.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),Object.defineProperty(i,"__esModule",{value:!0}),i.formatInventoryConfig=void 0;var r=e("../utils/dataFix"),n=e("../utils/isObject"),s=e("../utils/isArray"),o=e("../utils/formatObjKey");function a(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t&&n.isObject(e)&&(e=[e]),e=s.isArray(e)?e.map(l):l(e),e}function l(e){return r.dataFix(e,{bool:["IsEnabled"]},(function(e){var t,i;e.prefix=e.Filter.Prefix,delete e.Filter,e.OSSBucketDestination=e.Destination.OSSBucketDestination,e.OSSBucketDestination.rolename=e.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete e.OSSBucketDestination.RoleArn,e.OSSBucketDestination.bucket=e.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete e.OSSBucketDestination.Bucket,delete e.Destination,e.frequency=e.Schedule.Frequency,delete e.Schedule.Frequency,(null===(t=null===e||void 0===e?void 0:e.OptionalFields)||void 0===t?void 0:t.Field)&&!s.isArray(null===(i=e.OptionalFields)||void 0===i?void 0:i.Field)&&(e.OptionalFields.Field=[e.OptionalFields.Field])})),e=o.formatObjKey(e,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),e}i.formatInventoryConfig=a},{"../utils/dataFix":59,"../utils/formatObjKey":64,"../utils/isArray":67,"../utils/isObject":74,"core-js/modules/es.array.map.js":318,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.replace.js":345}],64:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.string.includes.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js");var n=r(e("@babel/runtime/helpers/typeof"));function s(e,t,i){if(null===e||"object"!==(0,n.default)(e))return e;var r;if(Array.isArray(e)){r=[];for(var a=0;a").concat(e[t],""):"object"===n(e[t])?i+="<".concat(t,">").concat(s(e[t]),""):"array"===n(e[t])?i+=e[t].map((function(e){return"<".concat(t,">").concat(s(e),"")})).join(""):i+="<".concat(t,">").concat(e[t].toString(),""))})):i+=e.toString(),i}i.obj2xml=s},{"./formatObjKey":64,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.join.js":317,"core-js/modules/es.array.map.js":318,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/es.string.replace.js":345,"core-js/modules/web.dom-collections.for-each.js":380}],77:[function(e,t,i){"use strict";function r(e,t){var i="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=n(e))||t&&e&&"number"===typeof e.length){i&&(e=i);var r=0,s=function(){};return{s:s,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(l)throw o}}}}function n(e,t){if(e){if("string"===typeof e)return s(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,r=new Array(t);i2&&void 0!==arguments[2]?arguments[2]:{},r=0,n=i.retryDelay,s=void 0===n?500:n,o=i.errorHandler,a=void 0===o?function(){return!0}:o,l=function i(){for(var n=arguments.length,o=new Array(n),l=0;l1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s.checkConfigValid(e,"region");var r=i?"https://":"http://",o=t?"-internal.aliyuncs.com":".aliyuncs.com",a="vpc100-oss-cn-";return e.substr(0,a.length)===a&&(o=".aliyuncs.com"),n.default.parse(r+e+o)}i.setRegion=o},{"./checkConfigValid":54,url:543}],82:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.array.find.js"),e("core-js/modules/es.object.assign.js");var s=r(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(i,"__esModule",{value:!0}),i.checkCredentials=i.setSTSToken=void 0;var o=e("./formatObjKey");function a(){return l.apply(this,arguments)}function l(){return l=(0,s.default)(n.default.mark((function e(){var t,i;return n.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.options||(this.options={}),t=new Date,!this.stsTokenFreshTime){e.next=14;break}if(!(+t-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){e.next=12;break}return this.stsTokenFreshTime=t,e.next=7,this.options.refreshSTSToken();case 7:i=e.sent,i=o.formatObjKey(i,"firstLowerCase"),i.securityToken&&(i.stsToken=i.securityToken),c(i),Object.assign(this.options,i);case 12:e.next=15;break;case 14:this.stsTokenFreshTime=t;case 15:return e.abrupt("return",null);case 16:case"end":return e.stop()}}),e,this)}))),l.apply(this,arguments)}function c(e){var t=["accessKeySecret","accessKeyId","stsToken"],i=Object.keys(e);t.forEach((function(e){if(!i.find((function(t){return t===e})))throw Error("refreshSTSToken must return contains ".concat(e))}))}i.setSTSToken=a,i.checkCredentials=c},{"./formatObjKey":64,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.find.js":313,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329}],83:[function(e,t,i){function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,r=new Array(t);i=0;--n){var s=this.tryEntries[n],a=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var l=o.call(s,"catchLoc"),c=o.call(s,"finallyLoc");if(l&&c){if(this.prev=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),N(i),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var r=i.completion;if("throw"===r.type){var n=r.arg;N(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,i,r){return this.delegate={iterator:R(t),resultName:i,nextLoc:r},"next"===this.method&&(this.arg=e),v}},i}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},{"./typeof.js":91}],90:[function(e,t,i){var r=e("./arrayWithoutHoles.js"),n=e("./iterableToArray.js"),s=e("./unsupportedIterableToArray.js"),o=e("./nonIterableSpread.js");function a(e){return r(e)||n(e)||s(e)||o()}t.exports=a,t.exports.__esModule=!0,t.exports["default"]=t.exports},{"./arrayWithoutHoles.js":84,"./iterableToArray.js":87,"./nonIterableSpread.js":88,"./unsupportedIterableToArray.js":92}],91:[function(e,t,i){function r(e){return t.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t.exports.__esModule=!0,t.exports["default"]=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},{}],92:[function(e,t,i){var r=e("./arrayLikeToArray.js");function n(e,t){if(e){if("string"===typeof e)return r(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?r(e,t):void 0}}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},{"./arrayLikeToArray.js":83}],93:[function(e,t,i){var r=e("../helpers/regeneratorRuntime")();t.exports=r;try{regeneratorRuntime=r}catch(n){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},{"../helpers/regeneratorRuntime":89}],94:[function(e,t,i){function r(){}t.exports=r,t.exports.HttpsAgent=r},{}],95:[function(e,i,r){(function(t){(function(){"use strict";var r=e("object.assign/polyfill")(); /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */function n(e,t){if(e===t)return 0;for(var i=e.length,r=t.length,n=0,s=Math.min(i,r);n=0;c--)if(u[c]!==d[c])return!1;for(c=u.length-1;c>=0;c--)if(a=u[c],!w(e[a],t[a],i,r))return!1;return!0}function j(e,t,i){w(e,t,!0)&&b(e,t,i,"notDeepStrictEqual",j)}function C(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(i){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function k(e){var t;try{e()}catch(i){t=i}return t}function S(e,t,i,r){var n;if("function"!==typeof t)throw new TypeError('"block" argument must be a function');"string"===typeof i&&(r=i,i=null),n=k(t),r=(i&&i.name?" ("+i.name+").":".")+(r?" "+r:"."),e&&!n&&b(n,i,"Missing expected exception"+r);var s="string"===typeof r,a=!e&&o.isError(n),l=!e&&n&&!i;if((a&&s&&C(n,i)||l)&&b(n,i,"Got unwanted exception"+r),e&&n&&i&&!C(n,i)||!e&&n)throw n}function T(e,t){e||b(e,!0,t,"==",T)}h.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=y(this),this.generatedMessage=!0);var t=e.stackStartFunction||b;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var i=new Error;if(i.stack){var r=i.stack,n=f(t),s=r.indexOf("\n"+n);if(s>=0){var o=r.indexOf("\n",s+1);r=r.substring(o+1)}this.stack=r}}},o.inherits(h.AssertionError,Error),h.fail=b,h.ok=v,h.equal=function(e,t,i){e!=t&&b(e,t,i,"==",h.equal)},h.notEqual=function(e,t,i){e==t&&b(e,t,i,"!=",h.notEqual)},h.deepEqual=function(e,t,i){w(e,t,!1)||b(e,t,i,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,i){w(e,t,!0)||b(e,t,i,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,i){w(e,t,!1)&&b(e,t,i,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=j,h.strictEqual=function(e,t,i){e!==t&&b(e,t,i,"===",h.strictEqual)},h.notStrictEqual=function(e,t,i){e===t&&b(e,t,i,"!==",h.notStrictEqual)},h.throws=function(e,t,i){S(!0,e,t,i)},h.doesNotThrow=function(e,t,i){S(!1,e,t,i)},h.ifError=function(e){if(e)throw e},h.strict=r(T,h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var E=Object.keys||function(e){var t=[];for(var i in e)a.call(e,i)&&t.push(i);return t}}).call(this)}).call(this,"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"object.assign/polyfill":438,"util/":98}],96:[function(e,t,i){"function"===typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}},{}],97:[function(e,t,i){t.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},{}],98:[function(e,i,r){(function(t,i){(function(){var n=/%[sdj%]/g;r.format=function(e){if(!_(e)){for(var t=[],i=0;i=s)return e;switch(e){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch(t){return"[Circular]"}default:return e}})),l=r[i];i=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),b(t)?i.showHidden=t:t&&r._extend(i,t),C(i.showHidden)&&(i.showHidden=!1),C(i.depth)&&(i.depth=2),C(i.colors)&&(i.colors=!1),C(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=l),d(i,e,i.depth)}function l(e,t){var i=a.styles[t];return i?"["+a.colors[i][0]+"m"+e+"["+a.colors[i][1]+"m":e}function c(e,t){return e}function u(e){var t={};return e.forEach((function(e,i){t[e]=!0})),t}function d(e,t,i){if(e.customInspect&&t&&O(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var n=t.inspect(i,e);return _(n)||(n=d(e,n,i)),n}var s=h(e,t);if(s)return s;var o=Object.keys(t),a=u(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),E(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return p(t);if(0===o.length){if(O(t)){var l=t.name?": "+t.name:"";return e.stylize("[Function"+l+"]","special")}if(k(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(T(t))return e.stylize(Date.prototype.toString.call(t),"date");if(E(t))return p(t)}var c,b="",v=!1,w=["{","}"];if(y(t)&&(v=!0,w=["[","]"]),O(t)){var x=t.name?": "+t.name:"";b=" [Function"+x+"]"}return k(t)&&(b=" "+RegExp.prototype.toString.call(t)),T(t)&&(b=" "+Date.prototype.toUTCString.call(t)),E(t)&&(b=" "+p(t)),0!==o.length||v&&0!=t.length?i<0?k(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=v?f(e,t,i,a,o):o.map((function(r){return m(e,t,i,a,r,v)})),e.seen.pop(),g(c,b,w)):w[0]+b+w[1]}function h(e,t){if(C(t))return e.stylize("undefined","undefined");if(_(t)){var i="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(i,"string")}return x(t)?e.stylize(""+t,"number"):b(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,i,r,n){for(var s=[],o=0,a=t.length;o-1&&(a=s?a.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n"))):a=e.stylize("[Circular]","special")),C(o)){if(s&&n.match(/^\d+$/))return a;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+a}function g(e,t,i){var r=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return r>60?i[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+i[1]:i[0]+t+" "+e.join(", ")+" "+i[1]}function y(e){return Array.isArray(e)}function b(e){return"boolean"===typeof e}function v(e){return null===e}function w(e){return null==e}function x(e){return"number"===typeof e}function _(e){return"string"===typeof e}function j(e){return"symbol"===typeof e}function C(e){return void 0===e}function k(e){return S(e)&&"[object RegExp]"===A(e)}function S(e){return"object"===typeof e&&null!==e}function T(e){return S(e)&&"[object Date]"===A(e)}function E(e){return S(e)&&("[object Error]"===A(e)||e instanceof Error)}function O(e){return"function"===typeof e}function D(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function A(e){return Object.prototype.toString.call(e)}function N(e){return e<10?"0"+e.toString(10):e.toString(10)}r.debuglog=function(e){if(C(s)&&(s=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!o[e])if(new RegExp("\\b"+e+"\\b","i").test(s)){var i=t.pid;o[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,i,t)}}else o[e]=function(){};return o[e]},r.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=y,r.isBoolean=b,r.isNull=v,r.isNullOrUndefined=w,r.isNumber=x,r.isString=_,r.isSymbol=j,r.isUndefined=C,r.isRegExp=k,r.isObject=S,r.isDate=T,r.isError=E,r.isFunction=O,r.isPrimitive=D,r.isBuffer=e("./support/isBuffer");var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(){var e=new Date,t=[N(e.getHours()),N(e.getMinutes()),N(e.getSeconds())].join(":");return[e.getDate(),I[e.getMonth()],t].join(" ")}function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}r.log=function(){console.log("%s - %s",R(),r.format.apply(r,arguments))},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!S(t))return e;var i=Object.keys(t),r=i.length;while(r--)e[i[r]]=t[i[r]];return e}}).call(this)}).call(this,e("_process"),"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./support/isBuffer":97,_process:538,inherits:96}],99:[function(e,i,r){(function(e){(function(){"use strict";var t=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],r="undefined"===typeof globalThis?e:globalThis;i.exports=function(){for(var e=[],i=0;i0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");-1===i&&(i=t);var r=i===t?0:4-i%4;return[i,r]}function u(e){var t=c(e),i=t[0],r=t[1];return 3*(i+r)/4-r}function d(e,t,i){return 3*(t+i)/4-i}function h(e){var t,i,r=c(e),o=r[0],a=r[1],l=new s(d(e,o,a)),u=0,h=a>0?o-4:o;for(i=0;i>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===a&&(t=n[e.charCodeAt(i)]<<2|n[e.charCodeAt(i+1)]>>4,l[u++]=255&t),1===a&&(t=n[e.charCodeAt(i)]<<10|n[e.charCodeAt(i+1)]<<4|n[e.charCodeAt(i+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l}function p(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function f(e,t,i){for(var r,n=[],s=t;sl?l:a+o));return 1===n?(t=e[i-1],s.push(r[t>>2]+r[t<<4&63]+"==")):2===n&&(t=(e[i-2]<<8)+e[i-1],s.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},{}],101:[function(t,i,r){ /*! * Bowser - a browser detector * https://github.com/ded/bowser * MIT License | (c) Dustin Diaz 2015 */ !function(t,r,n){"undefined"!=typeof i&&i.exports?i.exports=n():"function"==typeof e&&e.amd?e(r,n):t[r]=n()}(this,"bowser",(function(){var e=!0;function t(t){function i(e){var i=t.match(e);return i&&i.length>1&&i[1]||""}function r(e){var i=t.match(e);return i&&i.length>1&&i[2]||""}var n,o=i(/(ipod|iphone|ipad)/i).toLowerCase(),a=/like android/i.test(t),l=!a&&/android/i.test(t),c=/nexus\s*[0-6]\s*/i.test(t),u=!c&&/nexus\s*[0-9]+/i.test(t),d=/CrOS/.test(t),h=/silk/i.test(t),p=/sailfish/i.test(t),f=/tizen/i.test(t),m=/(web|hpw)(o|0)s/i.test(t),g=/windows phone/i.test(t),y=(/SamsungBrowser/i.test(t),!g&&/windows/i.test(t)),b=!o&&!h&&/macintosh/i.test(t),v=!l&&!p&&!f&&!m&&/linux/i.test(t),w=r(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),x=i(/version\/(\d+(\.\d+)?)/i),_=/tablet/i.test(t)&&!/tablet pc/i.test(t),j=!_&&/[^-]mobi/i.test(t),C=/xbox/i.test(t);function k(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}/opera/i.test(t)?n={name:"Opera",opera:e,version:x||i(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(t)?n={name:"Opera",opera:e,version:i(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||x}:/SamsungBrowser/i.test(t)?n={name:"Samsung Internet for Android",samsungBrowser:e,version:x||i(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(t)?n={name:"NAVER Whale browser",whale:e,version:i(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(t)?n={name:"MZ Browser",mzbrowser:e,version:i(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(t)?n={name:"Opera Coast",coast:e,version:x||i(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(t)?n={name:"Focus",focus:e,version:i(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(t)?n={name:"Yandex Browser",yandexbrowser:e,version:x||i(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(t)?n={name:"UC Browser",ucbrowser:e,version:i(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(t)?n={name:"Maxthon",maxthon:e,version:i(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(t)?n={name:"Epiphany",epiphany:e,version:i(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(t)?n={name:"Puffin",puffin:e,version:i(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(t)?n={name:"Sleipnir",sleipnir:e,version:i(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(t)?n={name:"K-Meleon",kMeleon:e,version:i(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:g?(n={name:"Windows Phone",osname:"Windows Phone",windowsphone:e},w?(n.msedge=e,n.version=w):(n.msie=e,n.version=i(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(t)?n={name:"Internet Explorer",msie:e,version:i(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:d?n={name:"Chrome",osname:"Chrome OS",chromeos:e,chromeBook:e,chrome:e,version:i(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(t)?n={name:"Microsoft Edge",msedge:e,version:w}:/vivaldi/i.test(t)?n={name:"Vivaldi",vivaldi:e,version:i(/vivaldi\/(\d+(\.\d+)?)/i)||x}:p?n={name:"Sailfish",osname:"Sailfish OS",sailfish:e,version:i(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(t)?n={name:"SeaMonkey",seamonkey:e,version:i(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(t)?(n={name:"Firefox",firefox:e,version:i(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(t)&&(n.firefoxos=e,n.osname="Firefox OS")):h?n={name:"Amazon Silk",silk:e,version:i(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(t)?n={name:"PhantomJS",phantom:e,version:i(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(t)?n={name:"SlimerJS",slimer:e,version:i(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?n={name:"BlackBerry",osname:"BlackBerry OS",blackberry:e,version:x||i(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:m?(n={name:"WebOS",osname:"WebOS",webos:e,version:x||i(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(n.touchpad=e)):/bada/i.test(t)?n={name:"Bada",osname:"Bada",bada:e,version:i(/dolfin\/(\d+(\.\d+)?)/i)}:f?n={name:"Tizen",osname:"Tizen",tizen:e,version:i(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||x}:/qupzilla/i.test(t)?n={name:"QupZilla",qupzilla:e,version:i(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||x}:/chromium/i.test(t)?n={name:"Chromium",chromium:e,version:i(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||x}:/chrome|crios|crmo/i.test(t)?n={name:"Chrome",chrome:e,version:i(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:l?n={name:"Android",version:x}:/safari|applewebkit/i.test(t)?(n={name:"Safari",safari:e},x&&(n.version=x)):o?(n={name:"iphone"==o?"iPhone":"ipad"==o?"iPad":"iPod"},x&&(n.version=x)):n=/googlebot/i.test(t)?{name:"Googlebot",googlebot:e,version:i(/googlebot\/(\d+(\.\d+))/i)||x}:{name:i(/^(.*)\/(.*) /),version:r(/^(.*)\/(.*) /)},!n.msedge&&/(apple)?webkit/i.test(t)?(/(apple)?webkit\/537\.36/i.test(t)?(n.name=n.name||"Blink",n.blink=e):(n.name=n.name||"Webkit",n.webkit=e),!n.version&&x&&(n.version=x)):!n.opera&&/gecko\//i.test(t)&&(n.name=n.name||"Gecko",n.gecko=e,n.version=n.version||i(/gecko\/(\d+(\.\d+)?)/i)),n.windowsphone||!l&&!n.silk?!n.windowsphone&&o?(n[o]=e,n.ios=e,n.osname="iOS"):b?(n.mac=e,n.osname="macOS"):C?(n.xbox=e,n.osname="Xbox"):y?(n.windows=e,n.osname="Windows"):v&&(n.linux=e,n.osname="Linux"):(n.android=e,n.osname="Android");var S="";n.windows?S=k(i(/Windows ((NT|XP)( \d\d?.\d)?)/i)):n.windowsphone?S=i(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):n.mac?(S=i(/Mac OS X (\d+([_\.\s]\d+)*)/i),S=S.replace(/[_\s]/g,".")):o?(S=i(/os (\d+([_\s]\d+)*) like mac os x/i),S=S.replace(/[_\s]/g,".")):l?S=i(/android[ \/-](\d+(\.\d+)*)/i):n.webos?S=i(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):n.blackberry?S=i(/rim\stablet\sos\s(\d+(\.\d+)*)/i):n.bada?S=i(/bada\/(\d+(\.\d+)*)/i):n.tizen&&(S=i(/tizen[\/\s](\d+(\.\d+)*)/i)),S&&(n.osversion=S);var T=!n.windows&&S.split(".")[0];return _||u||"ipad"==o||l&&(3==T||T>=4&&!j)||n.silk?n.tablet=e:(j||"iphone"==o||"ipod"==o||l||c||n.blackberry||n.webos||n.bada)&&(n.mobile=e),n.msedge||n.msie&&n.version>=10||n.yandexbrowser&&n.version>=15||n.vivaldi&&n.version>=1||n.chrome&&n.version>=20||n.samsungBrowser&&n.version>=4||n.whale&&1===s([n.version,"1.0"])||n.mzbrowser&&1===s([n.version,"6.0"])||n.focus&&1===s([n.version,"1.0"])||n.firefox&&n.version>=20||n.safari&&n.version>=6||n.opera&&n.version>=10||n.ios&&n.osversion&&n.osversion.split(".")[0]>=6||n.blackberry&&n.version>=10.1||n.chromium&&n.version>=20?n.a=e:n.msie&&n.version<10||n.chrome&&n.version<20||n.firefox&&n.version<20||n.safari&&n.version<6||n.opera&&n.version<10||n.ios&&n.osversion&&n.osversion.split(".")[0]<6||n.chromium&&n.version<20?n.c=e:n.x=e,n}var i=t("undefined"!==typeof navigator&&navigator.userAgent||"");function r(e){return e.split(".").length}function n(e,t){var i,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(i=0;i=0){if(i[0][t]>i[1][t])return 1;if(i[0][t]!==i[1][t])return-1;if(0===t)return 0}}function o(e,r,n){var o=i;"string"===typeof r&&(n=r,r=void 0),void 0===r&&(r=!1),n&&(o=t(n));var a=""+o.version;for(var l in e)if(e.hasOwnProperty(l)&&o[l]){if("string"!==typeof e[l])throw new Error("Browser version in the minVersion map should be a string: "+l+": "+String(e));return s([a,e[l]])<0}return r}function a(e,t,i){return!o(e,t,i)}return i.test=function(e){for(var t=0;t * @license MIT */ "use strict";var t=e("base64-js"),r=e("ieee754");i.Buffer=a,i.SlowBuffer=y,i.INSPECT_MAX_BYTES=50;var n=2147483647;function s(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(t){return!1}}function o(e){if(e>n)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=a.prototype,t}function a(e,t,i){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return l(e,t,i)}function l(e,t,i){if("string"===typeof e)return h(e,t);if(ArrayBuffer.isView(e))return p(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return f(e,t,i);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return a.from(r,t,i);var n=m(e);if(n)return n;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e,t,i){return c(e),e<=0?o(e):void 0!==t?"string"===typeof i?o(e).fill(t,i):o(e).fill(t):o(e)}function d(e){return c(e),o(e<0?0:0|g(e))}function h(e,t){if("string"===typeof t&&""!==t||(t="utf8"),!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var i=0|b(e,t),r=o(i),n=r.write(e,t);return n!==i&&(r=r.slice(0,n)),r}function p(e){for(var t=e.length<0?0:0|g(e.length),i=o(t),r=0;r=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return 0|e}function y(e){return+e!=e&&(e=0),a.alloc(+e)}function b(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var i=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===i)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return X(e).length;default:if(n)return r?-1:H(e).length;t=(""+t).toLowerCase(),n=!0}}function v(e,t,i){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if(i>>>=0,t>>>=0,i<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return P(this,t,i);case"utf8":case"utf-8":return D(this,t,i);case"ascii":return I(this,t,i);case"latin1":case"binary":return R(this,t,i);case"base64":return O(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,i);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function w(e,t,i){var r=e[t];e[t]=e[i],e[i]=r}function x(e,t,i,r,n){if(0===e.length)return-1;if("string"===typeof i?(r=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,J(i)&&(i=n?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(n)return-1;i=e.length-1}else if(i<0){if(!n)return-1;i=0}if("string"===typeof t&&(t=a.from(t,r)),a.isBuffer(t))return 0===t.length?-1:_(e,t,i,r,n);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):_(e,[t],i,r,n);throw new TypeError("val must be string, number or Buffer")}function _(e,t,i,r,n){var s,o=1,a=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,a/=2,l/=2,i/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(n){var u=-1;for(s=i;sa&&(i=a-l),s=i;s>=0;s--){for(var d=!0,h=0;hn&&(r=n)):r=n;var s=t.length;r>s/2&&(r=s/2);for(var o=0;o239?4:c>223?3:c>191?2:1;if(n+d<=i)switch(d){case 1:c<128&&(u=c);break;case 2:s=e[n+1],128===(192&s)&&(l=(31&c)<<6|63&s,l>127&&(u=l));break;case 3:s=e[n+1],o=e[n+2],128===(192&s)&&128===(192&o)&&(l=(15&c)<<12|(63&s)<<6|63&o,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:s=e[n+1],o=e[n+2],a=e[n+3],128===(192&s)&&128===(192&o)&&128===(192&a)&&(l=(15&c)<<18|(63&s)<<12|(63&o)<<6|63&a,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),n+=d}return N(r)}i.kMaxLength=n,a.TYPED_ARRAY_SUPPORT=s(),a.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),"undefined"!==typeof Symbol&&null!=Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),a.poolSize=8192,a.from=function(e,t,i){return l(e,t,i)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(e,t,i){return u(e,t,i)},a.allocUnsafe=function(e){return d(e)},a.allocUnsafeSlow=function(e){return d(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(Y(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),Y(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var i=e.length,r=t.length,n=0,s=Math.min(i,r);nt&&(e+=" ... "),""},a.prototype.compare=function(e,t,i,r,n){if(Y(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),t<0||i>e.length||r<0||n>this.length)throw new RangeError("out of range index");if(r>=n&&t>=i)return 0;if(r>=n)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,r>>>=0,n>>>=0,this===e)return 0;for(var s=n-r,o=i-t,l=Math.min(s,o),c=this.slice(r,n),u=e.slice(t,i),d=0;d>>=0,isFinite(i)?(i>>>=0,void 0===r&&(r="utf8")):(r=i,i=void 0)}var n=this.length-t;if((void 0===i||i>n)&&(i=n),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var s=!1;;)switch(r){case"hex":return j(this,e,t,i);case"utf8":case"utf-8":return C(this,e,t,i);case"ascii":return k(this,e,t,i);case"latin1":case"binary":return S(this,e,t,i);case"base64":return T(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,i);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),s=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function N(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var i="",r=0;while(rr)&&(i=r);for(var n="",s=t;si)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,i,r,n,s){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function B(e,t,i,r,n,s){if(i+r>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function z(e,t,i,n,s){return t=+t,i>>>=0,s||B(e,t,i,4,34028234663852886e22,-34028234663852886e22),r.write(e,t,i,n,23,4),i+4}function U(e,t,i,n,s){return t=+t,i>>>=0,s||B(e,t,i,8,17976931348623157e292,-17976931348623157e292),r.write(e,t,i,n,52,8),i+8}a.prototype.slice=function(e,t){var i=this.length;e=~~e,t=void 0===t?i:~~t,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t>>=0,t>>>=0,i||M(e,t,this.length);var r=this[e],n=1,s=0;while(++s>>=0,t>>>=0,i||M(e,t,this.length);var r=this[e+--t],n=1;while(t>0&&(n*=256))r+=this[e+--t]*n;return r},a.prototype.readUInt8=function(e,t){return e>>>=0,t||M(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||M(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||M(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,i){e>>>=0,t>>>=0,i||M(e,t,this.length);var r=this[e],n=1,s=0;while(++s=n&&(r-=Math.pow(2,8*t)),r},a.prototype.readIntBE=function(e,t,i){e>>>=0,t>>>=0,i||M(e,t,this.length);var r=t,n=1,s=this[e+--r];while(r>0&&(n*=256))s+=this[e+--r]*n;return n*=128,s>=n&&(s-=Math.pow(2,8*t)),s},a.prototype.readInt8=function(e,t){return e>>>=0,t||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||M(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},a.prototype.readInt16BE=function(e,t){e>>>=0,t||M(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||M(e,4,this.length),r.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||M(e,4,this.length),r.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||M(e,8,this.length),r.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||M(e,8,this.length),r.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,i,r){if(e=+e,t>>>=0,i>>>=0,!r){var n=Math.pow(2,8*i)-1;L(this,e,t,i,n,0)}var s=1,o=0;this[t]=255&e;while(++o>>=0,i>>>=0,!r){var n=Math.pow(2,8*i)-1;L(this,e,t,i,n,0)}var s=i-1,o=1;this[t+s]=255&e;while(--s>=0&&(o*=256))this[t+s]=e/o&255;return t+i},a.prototype.writeUInt8=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,i,r){if(e=+e,t>>>=0,!r){var n=Math.pow(2,8*i-1);L(this,e,t,i,n-1,-n)}var s=0,o=1,a=0;this[t]=255&e;while(++s>0)-a&255;return t+i},a.prototype.writeIntBE=function(e,t,i,r){if(e=+e,t>>>=0,!r){var n=Math.pow(2,8*i-1);L(this,e,t,i,n-1,-n)}var s=i-1,o=1,a=0;this[t+s]=255&e;while(--s>=0&&(o*=256))e<0&&0===a&&0!==this[t+s+1]&&(a=1),this[t+s]=(e/o>>0)-a&255;return t+i},a.prototype.writeInt8=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,i){return z(this,e,t,!0,i)},a.prototype.writeFloatBE=function(e,t,i){return z(this,e,t,!1,i)},a.prototype.writeDoubleLE=function(e,t,i){return U(this,e,t,!0,i)},a.prototype.writeDoubleBE=function(e,t,i){return U(this,e,t,!1,i)},a.prototype.copy=function(e,t,i,r){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(i||(i=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--s)e[s+t]=this[s+i];else Uint8Array.prototype.set.call(e,this.subarray(i,r),t);return n},a.prototype.fill=function(e,t,i,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,i=this.length):"string"===typeof i&&(r=i,i=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var n=e.charCodeAt(0);("utf8"===r&&n<128||"latin1"===r)&&(e=n)}}else"number"===typeof e&&(e&=255);if(t<0||this.length>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"===typeof e)for(s=t;s55295&&i<57344){if(!n){if(i>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&s.push(239,191,189);continue}n=i;continue}if(i<56320){(t-=3)>-1&&s.push(239,191,189),n=i;continue}i=65536+(n-55296<<10|i-56320)}else n&&(t-=3)>-1&&s.push(239,191,189);if(n=null,i<128){if((t-=1)<0)break;s.push(i)}else if(i<2048){if((t-=2)<0)break;s.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;s.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return s}function G(e){for(var t=[],i=0;i>8,n=i%256,s.push(n),s.push(r)}return s}function X(e){return t.toByteArray(V(e))}function K(e,t,i,r){for(var n=0;n=t.length||n>=e.length)break;t[n+i]=e[n]}return n}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function J(e){return e!==e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":100,buffer:103,ieee754:400}],104:[function(e,t,i){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],105:[function(e,t,i){"use strict";var r=e("get-intrinsic"),n=e("./"),s=n(r("String.prototype.indexOf"));t.exports=function(e,t){var i=r(e,!!t);return"function"===typeof i&&s(e,".prototype.")>-1?n(i):i}},{"./":106,"get-intrinsic":390}],106:[function(e,t,i){"use strict";var r=e("function-bind"),n=e("get-intrinsic"),s=e("set-function-length"),o=n("%TypeError%"),a=n("%Function.prototype.apply%"),l=n("%Function.prototype.call%"),c=n("%Reflect.apply%",!0)||r.call(l,a),u=n("%Object.defineProperty%",!0),d=n("%Math.max%");if(u)try{u({},"a",{value:1})}catch(p){u=null}t.exports=function(e){if("function"!==typeof e)throw new o("a function is required");var t=c(r,l,arguments);return s(t,1+d(0,e.length-(arguments.length-1)),!0)};var h=function(){return c(r,a,arguments)};u?u(t.exports,"apply",{value:h}):t.exports.apply=h},{"function-bind":389,"get-intrinsic":390,"set-function-length":466}],107:[function(e,t,i){ /*! * copy-to - index.js * Copyright(c) 2014 dead_horse * MIT Licensed */ "use strict";var r=Array.prototype.slice;function n(e,t){if(!(this instanceof n))return new n(e,t);this.src=e,this._withAccess=t}function s(e,t){return void 0===e[t]&&void 0===e.__lookupGetter__(t)&&void 0===e.__lookupSetter__(t)}t.exports=n,n.prototype.withAccess=function(e){return this._withAccess=!1!==e,this},n.prototype.pick=function(e){return Array.isArray(e)||(e=r.call(arguments)),e.length&&(this.keys=e),this},n.prototype.to=function(e){if(e=e||{},!this.src)return e;var t=this.keys||Object.keys(this.src);if(!this._withAccess){for(var i=0;i>8&255]},Y=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},J=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Q=function(e){return G(g(e),23,4)},Z=function(e){return G(e,52,8)},ee=function(e,t,i){c(e[D],t,{configurable:!0,get:function(){return i(this)[t]}})},te=function(e,t,i,r){var n=R(e),s=m(i),o=!!r;if(s+t>n.byteLength)throw new V(N);var a=n.bytes,l=s+n.byteOffset,c=x(a,l,l+t);return o?c:H(c)},ie=function(e,t,i,r,n,s){var o=R(e),a=m(i),l=r(+n),c=!!s;if(a+t>o.byteLength)throw new V(N);for(var u=o.bytes,d=a+o.byteOffset,h=0;h>24)},setUint8:function(e,t){se(this,e,t<<24>>24)}},{unsafe:!0})}else M=function(e){h(this,L);var t=m(e);P(this,{type:E,bytes:W(q(t),0),byteLength:t}),s||(this.byteLength=t,this.detached=!1)},L=M[D],B=function(e,t,i){h(this,z),h(e,L);var r=I(e),n=r.byteLength,o=p(t);if(o<0||o>n)throw new V("Wrong offset");if(i=void 0===i?n-o:f(i),o+i>n)throw new V(A);P(this,{type:O,buffer:e,byteLength:i,byteOffset:o,bytes:r.bytes}),s||(this.buffer=e,this.byteLength=i,this.byteOffset=o)},z=B[D],s&&(ee(M,"byteLength",I),ee(B,"buffer",R),ee(B,"byteLength",R),ee(B,"byteOffset",R)),u(z,{getInt8:function(e){return te(this,1,e)[0]<<24>>24},getUint8:function(e){return te(this,1,e)[0]},getInt16:function(e){var t=te(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=te(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return J(te(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return J(te(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return $(te(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return $(te(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){ie(this,1,e,X,t)},setUint8:function(e,t){ie(this,1,e,X,t)},setInt16:function(e,t){ie(this,2,e,K,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){ie(this,2,e,K,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){ie(this,4,e,Y,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){ie(this,4,e,Y,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){ie(this,4,e,Q,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){ie(this,8,e,Z,t,arguments.length>2&&arguments[2])}});C(M,E),C(B,O),t.exports={ArrayBuffer:M,DataView:B}},{"../internals/an-instance":113,"../internals/array-buffer-basic-detection":115,"../internals/array-fill":120,"../internals/array-slice":131,"../internals/copy-constructor-properties":141,"../internals/create-non-enumerable-property":145,"../internals/define-built-in-accessor":148,"../internals/define-built-ins":150,"../internals/descriptors":153,"../internals/fails":171,"../internals/function-name":178,"../internals/function-uncurry-this":181,"../internals/global":188,"../internals/ieee754":194,"../internals/inherit-if-required":196,"../internals/internal-state":199,"../internals/math-fround":222,"../internals/object-get-prototype-of":236,"../internals/object-set-prototype-of":242,"../internals/set-to-string-tag":266,"../internals/to-index":281,"../internals/to-integer-or-infinity":283,"../internals/to-length":284}],119:[function(e,t,i){"use strict";var r=e("../internals/to-object"),n=e("../internals/to-absolute-index"),s=e("../internals/length-of-array-like"),o=e("../internals/delete-property-or-throw"),a=Math.min;t.exports=[].copyWithin||function(e,t){var i=r(this),l=s(i),c=n(e,l),u=n(t,l),d=arguments.length>2?arguments[2]:void 0,h=a((void 0===d?l:n(d,l))-u,l-c),p=1;u0)u in i?i[c]=i[u]:o(i,c),c+=p,u+=p;return i}},{"../internals/delete-property-or-throw":152,"../internals/length-of-array-like":219,"../internals/to-absolute-index":279,"../internals/to-object":285}],120:[function(e,t,i){"use strict";var r=e("../internals/to-object"),n=e("../internals/to-absolute-index"),s=e("../internals/length-of-array-like");t.exports=function(e){var t=r(this),i=s(t),o=arguments.length,a=n(o>1?arguments[1]:void 0,i),l=o>2?arguments[2]:void 0,c=void 0===l?i:n(l,i);while(c>a)t[a++]=e;return t}},{"../internals/length-of-array-like":219,"../internals/to-absolute-index":279,"../internals/to-object":285}],121:[function(e,t,i){"use strict";var r=e("../internals/array-iteration").forEach,n=e("../internals/array-method-is-strict"),s=n("forEach");t.exports=s?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":125,"../internals/array-method-is-strict":128}],122:[function(e,t,i){"use strict";var r=e("../internals/length-of-array-like");t.exports=function(e,t,i){var n=0,s=arguments.length>2?i:r(t),o=new e(s);while(s>n)o[n]=t[n++];return o}},{"../internals/length-of-array-like":219}],123:[function(e,t,i){"use strict";var r=e("../internals/function-bind-context"),n=e("../internals/function-call"),s=e("../internals/to-object"),o=e("../internals/call-with-safe-iteration-closing"),a=e("../internals/is-array-iterator-method"),l=e("../internals/is-constructor"),c=e("../internals/length-of-array-like"),u=e("../internals/create-property"),d=e("../internals/get-iterator"),h=e("../internals/get-iterator-method"),p=Array;t.exports=function(e){var t=s(e),i=l(this),f=arguments.length,m=f>1?arguments[1]:void 0,g=void 0!==m;g&&(m=r(m,f>2?arguments[2]:void 0));var y,b,v,w,x,_,j=h(t),C=0;if(!j||this===p&&a(j))for(y=c(t),b=i?new this(y):p(y);y>C;C++)_=g?m(t[C],C):t[C],u(b,C,_);else for(w=d(t,j),x=w.next,b=i?new this:[];!(v=n(x,w)).done;C++)_=g?o(w,m,[v.value,C],!0):v.value,u(b,C,_);return b.length=C,b}},{"../internals/call-with-safe-iteration-closing":135,"../internals/create-property":147,"../internals/function-bind-context":175,"../internals/function-call":177,"../internals/get-iterator":184,"../internals/get-iterator-method":183,"../internals/is-array-iterator-method":200,"../internals/is-constructor":204,"../internals/length-of-array-like":219,"../internals/to-object":285}],124:[function(e,t,i){"use strict";var r=e("../internals/to-indexed-object"),n=e("../internals/to-absolute-index"),s=e("../internals/length-of-array-like"),o=function(e){return function(t,i,o){var a,l=r(t),c=s(l),u=n(o,c);if(e&&i!==i){while(c>u)if(a=l[u++],a!==a)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===i)return e||u||0;return!e&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},{"../internals/length-of-array-like":219,"../internals/to-absolute-index":279,"../internals/to-indexed-object":282}],125:[function(e,t,i){"use strict";var r=e("../internals/function-bind-context"),n=e("../internals/function-uncurry-this"),s=e("../internals/indexed-object"),o=e("../internals/to-object"),a=e("../internals/length-of-array-like"),l=e("../internals/array-species-create"),c=n([].push),u=function(e){var t=1===e,i=2===e,n=3===e,u=4===e,d=6===e,h=7===e,p=5===e||d;return function(f,m,g,y){for(var b,v,w=o(f),x=s(w),_=a(x),j=r(m,g),C=0,k=y||l,S=t?k(f,_):i||h?k(f,0):void 0;_>C;C++)if((p||C in x)&&(b=x[C],v=j(b,C,w),e))if(t)S[C]=v;else if(v)switch(e){case 3:return!0;case 5:return b;case 6:return C;case 2:c(S,b)}else switch(e){case 4:return!1;case 7:c(S,b)}return d?-1:n||u?u:S}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},{"../internals/array-species-create":134,"../internals/function-bind-context":175,"../internals/function-uncurry-this":181,"../internals/indexed-object":195,"../internals/length-of-array-like":219,"../internals/to-object":285}],126:[function(e,t,i){"use strict";var r=e("../internals/function-apply"),n=e("../internals/to-indexed-object"),s=e("../internals/to-integer-or-infinity"),o=e("../internals/length-of-array-like"),a=e("../internals/array-method-is-strict"),l=Math.min,c=[].lastIndexOf,u=!!c&&1/[1].lastIndexOf(1,-0)<0,d=a("lastIndexOf"),h=u||!d;t.exports=h?function(e){if(u)return r(c,this,arguments)||0;var t=n(this),i=o(t),a=i-1;for(arguments.length>1&&(a=l(a,s(arguments[1]))),a<0&&(a=i+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:c},{"../internals/array-method-is-strict":128,"../internals/function-apply":174,"../internals/length-of-array-like":219,"../internals/to-indexed-object":282,"../internals/to-integer-or-infinity":283}],127:[function(e,t,i){"use strict";var r=e("../internals/fails"),n=e("../internals/well-known-symbol"),s=e("../internals/engine-v8-version"),o=n("species");t.exports=function(e){return s>=51||!r((function(){var t=[],i=t.constructor={};return i[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},{"../internals/engine-v8-version":167,"../internals/fails":171,"../internals/well-known-symbol":306}],128:[function(e,t,i){"use strict";var r=e("../internals/fails");t.exports=function(e,t){var i=[][e];return!!i&&r((function(){i.call(null,t||function(){return 1},1)}))}},{"../internals/fails":171}],129:[function(e,t,i){"use strict";var r=e("../internals/a-callable"),n=e("../internals/to-object"),s=e("../internals/indexed-object"),o=e("../internals/length-of-array-like"),a=TypeError,l=function(e){return function(t,i,l,c){var u=n(t),d=s(u),h=o(u);r(i);var p=e?h-1:0,f=e?-1:1;if(l<2)while(1){if(p in d){c=d[p],p+=f;break}if(p+=f,e?p<0:h<=p)throw new a("Reduce of empty array with no initial value")}for(;e?p>=0:h>p;p+=f)p in d&&(c=i(c,d[p],p,u));return c}};t.exports={left:l(!1),right:l(!0)}},{"../internals/a-callable":108,"../internals/indexed-object":195,"../internals/length-of-array-like":219,"../internals/to-object":285}],130:[function(e,t,i){"use strict";var r=e("../internals/descriptors"),n=e("../internals/is-array"),s=TypeError,o=Object.getOwnPropertyDescriptor,a=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();t.exports=a?function(e,t){if(n(e)&&!o(e,"length").writable)throw new s("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},{"../internals/descriptors":153,"../internals/is-array":201}],131:[function(e,t,i){"use strict";var r=e("../internals/function-uncurry-this");t.exports=r([].slice)},{"../internals/function-uncurry-this":181}],132:[function(e,t,i){"use strict";var r=e("../internals/array-slice"),n=Math.floor,s=function(e,t){var i=e.length;if(i<8){var o,a,l=1;while(l0)e[a]=e[--a];a!==l++&&(e[a]=o)}}else{var c=n(i/2),u=s(r(e,0,c),t),d=s(r(e,c),t),h=u.length,p=d.length,f=0,m=0;while(f1?arguments[1]:void 0);while(t=t?t.next:i.first){r(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!v(this,e)}}),s(h,i?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return b(this,0===e?0:e,t)}}:{add:function(e){return b(this,e=0===e?0:e,e)}}),p&&n(h,"size",{configurable:!0,get:function(){return m(this).size}}),d},setStrong:function(e,t,i){var r=t+" Iterator",n=y(t),s=y(r);u(e,t,(function(e,t){g(this,{type:r,target:e,state:n(e),kind:t,last:void 0})}),(function(){var e=s(this),t=e.kind,i=e.last;while(i&&i.removed)i=i.previous;return e.target&&(e.last=i=i?i.next:e.state.first)?d("keys"===t?i.key:"values"===t?i.value:[i.key,i.value],!1):(e.target=void 0,d(void 0,!0))}),i?"entries":"values",!i,!0),h(t)}}},{"../internals/an-instance":113,"../internals/create-iter-result-object":144,"../internals/define-built-in-accessor":148,"../internals/define-built-ins":150,"../internals/descriptors":153,"../internals/function-bind-context":175,"../internals/internal-metadata":198,"../internals/internal-state":199,"../internals/is-null-or-undefined":207,"../internals/iterate":213,"../internals/iterator-define":216,"../internals/object-create":229,"../internals/set-species":265}],140:[function(e,t,i){"use strict";var r=e("../internals/export"),n=e("../internals/global"),s=e("../internals/function-uncurry-this"),o=e("../internals/is-forced"),a=e("../internals/define-built-in"),l=e("../internals/internal-metadata"),c=e("../internals/iterate"),u=e("../internals/an-instance"),d=e("../internals/is-callable"),h=e("../internals/is-null-or-undefined"),p=e("../internals/is-object"),f=e("../internals/fails"),m=e("../internals/check-correctness-of-iteration"),g=e("../internals/set-to-string-tag"),y=e("../internals/inherit-if-required");t.exports=function(e,t,i){var b=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),w=b?"set":"add",x=n[e],_=x&&x.prototype,j=x,C={},k=function(e){var t=s(_[e]);a(_,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(v&&!p(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return v&&!p(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(v&&!p(e))&&t(this,0===e?0:e)}:function(e,i){return t(this,0===e?0:e,i),this})},S=o(e,!d(x)||!(v||_.forEach&&!f((function(){(new x).entries().next()}))));if(S)j=i.getConstructor(t,e,b,w),l.enable();else if(o(e,!0)){var T=new j,E=T[w](v?{}:-0,1)!==T,O=f((function(){T.has(1)})),D=m((function(e){new x(e)})),A=!v&&f((function(){var e=new x,t=5;while(t--)e[w](t,t);return!e.has(-0)}));D||(j=t((function(e,t){u(e,_);var i=y(new x,e,j);return h(t)||c(t,i[w],{that:i,AS_ENTRIES:b}),i})),j.prototype=_,_.constructor=j),(O||A)&&(k("delete"),k("has"),b&&k("get")),(A||E)&&k(w),v&&_.clear&&delete _.clear}return C[e]=j,r({global:!0,constructor:!0,forced:j!==x},C),g(j,e),v||i.setStrong(j,e,b),j}},{"../internals/an-instance":113,"../internals/check-correctness-of-iteration":136,"../internals/define-built-in":149,"../internals/export":170,"../internals/fails":171,"../internals/function-uncurry-this":181,"../internals/global":188,"../internals/inherit-if-required":196,"../internals/internal-metadata":198,"../internals/is-callable":203,"../internals/is-forced":205,"../internals/is-null-or-undefined":207,"../internals/is-object":208,"../internals/iterate":213,"../internals/set-to-string-tag":266}],141:[function(e,t,i){"use strict";var r=e("../internals/has-own-property"),n=e("../internals/own-keys"),s=e("../internals/object-get-own-property-descriptor"),o=e("../internals/object-define-property");t.exports=function(e,t,i){for(var a=n(t),l=o.f,c=s.f,u=0;un)throw r("Maximum allowed index exceeded");return e}},{}],156:[function(e,t,i){"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},{}],157:[function(e,t,i){"use strict";var r=e("../internals/document-create-element"),n=r("span").classList,s=n&&n.constructor&&n.constructor.prototype;t.exports=s===Object.prototype?void 0:s},{"../internals/document-create-element":154}],158:[function(e,t,i){"use strict";var r=e("../internals/engine-user-agent"),n=r.match(/firefox\/(\d+)/i);t.exports=!!n&&+n[1]},{"../internals/engine-user-agent":166}],159:[function(e,t,i){"use strict";var r=e("../internals/engine-is-deno"),n=e("../internals/engine-is-node");t.exports=!r&&!n&&"object"==typeof window&&"object"==typeof document},{"../internals/engine-is-deno":160,"../internals/engine-is-node":164}],160:[function(e,t,i){"use strict";t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},{}],161:[function(e,t,i){"use strict";var r=e("../internals/engine-user-agent");t.exports=/MSIE|Trident/.test(r)},{"../internals/engine-user-agent":166}],162:[function(e,t,i){"use strict";var r=e("../internals/engine-user-agent");t.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},{"../internals/engine-user-agent":166}],163:[function(e,t,i){"use strict";var r=e("../internals/engine-user-agent");t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},{"../internals/engine-user-agent":166}],164:[function(e,t,i){"use strict";var r=e("../internals/global"),n=e("../internals/classof-raw");t.exports="process"===n(r.process)},{"../internals/classof-raw":137,"../internals/global":188}],165:[function(e,t,i){"use strict";var r=e("../internals/engine-user-agent");t.exports=/web0s(?!.*chrome)/i.test(r)},{"../internals/engine-user-agent":166}],166:[function(e,t,i){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},{}],167:[function(e,t,i){"use strict";var r,n,s=e("../internals/global"),o=e("../internals/engine-user-agent"),a=s.process,l=s.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(r=u.split("."),n=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!n&&o&&(r=o.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/),r&&(n=+r[1]))),t.exports=n},{"../internals/engine-user-agent":166,"../internals/global":188}],168:[function(e,t,i){"use strict";var r=e("../internals/engine-user-agent"),n=r.match(/AppleWebKit\/(\d+)\./);t.exports=!!n&&+n[1]},{"../internals/engine-user-agent":166}],169:[function(e,t,i){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],170:[function(e,t,i){"use strict";var r=e("../internals/global"),n=e("../internals/object-get-own-property-descriptor").f,s=e("../internals/create-non-enumerable-property"),o=e("../internals/define-built-in"),a=e("../internals/define-global-property"),l=e("../internals/copy-constructor-properties"),c=e("../internals/is-forced");t.exports=function(e,t){var i,u,d,h,p,f,m=e.target,g=e.global,y=e.stat;if(u=g?r:y?r[m]||a(m,{}):(r[m]||{}).prototype,u)for(d in t){if(p=t[d],e.dontCallGetSet?(f=n(u,d),h=f&&f.value):h=u[d],i=c(g?d:m+(y?".":"#")+d,e.forced),!i&&void 0!==h){if(typeof p==typeof h)continue;l(p,h)}(e.sham||h&&h.sham)&&s(p,"sham",!0),o(u,d,p,e)}}},{"../internals/copy-constructor-properties":141,"../internals/create-non-enumerable-property":145,"../internals/define-built-in":149,"../internals/define-global-property":151,"../internals/global":188,"../internals/is-forced":205,"../internals/object-get-own-property-descriptor":232}],171:[function(e,t,i){"use strict";t.exports=function(e){try{return!!e()}catch(t){return!0}}},{}],172:[function(e,t,i){"use strict";e("../modules/es.regexp.exec");var r=e("../internals/function-uncurry-this-clause"),n=e("../internals/define-built-in"),s=e("../internals/regexp-exec"),o=e("../internals/fails"),a=e("../internals/well-known-symbol"),l=e("../internals/create-non-enumerable-property"),c=a("species"),u=RegExp.prototype;t.exports=function(e,t,i,d){var h=a(e),p=!o((function(){var t={};return t[h]=function(){return 7},7!==""[e](t)})),f=p&&!o((function(){var t=!1,i=/a/;return"split"===e&&(i={},i.constructor={},i.constructor[c]=function(){return i},i.flags="",i[h]=/./[h]),i.exec=function(){return t=!0,null},i[h](""),!t}));if(!p||!f||i){var m=r(/./[h]),g=t(h,""[e],(function(e,t,i,n,o){var a=r(e),l=t.exec;return l===s||l===u.exec?p&&!o?{done:!0,value:m(t,i,n)}:{done:!0,value:a(i,t,n)}:{done:!1}}));n(String.prototype,e,g[0]),n(u,h,g[1])}d&&l(u[h],"sham",!0)}},{"../internals/create-non-enumerable-property":145,"../internals/define-built-in":149,"../internals/fails":171,"../internals/function-uncurry-this-clause":180,"../internals/regexp-exec":256,"../internals/well-known-symbol":306,"../modules/es.regexp.exec":338}],173:[function(e,t,i){"use strict";var r=e("../internals/fails");t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},{"../internals/fails":171}],174:[function(e,t,i){"use strict";var r=e("../internals/function-bind-native"),n=Function.prototype,s=n.apply,o=n.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(s):function(){return o.apply(s,arguments)})},{"../internals/function-bind-native":176}],175:[function(e,t,i){"use strict";var r=e("../internals/function-uncurry-this-clause"),n=e("../internals/a-callable"),s=e("../internals/function-bind-native"),o=r(r.bind);t.exports=function(e,t){return n(e),void 0===t?e:s?o(e,t):function(){return e.apply(t,arguments)}}},{"../internals/a-callable":108,"../internals/function-bind-native":176,"../internals/function-uncurry-this-clause":180}],176:[function(e,t,i){"use strict";var r=e("../internals/fails");t.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},{"../internals/fails":171}],177:[function(e,t,i){"use strict";var r=e("../internals/function-bind-native"),n=Function.prototype.call;t.exports=r?n.bind(n):function(){return n.apply(n,arguments)}},{"../internals/function-bind-native":176}],178:[function(e,t,i){"use strict";var r=e("../internals/descriptors"),n=e("../internals/has-own-property"),s=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,a=n(s,"name"),l=a&&"something"===function(){}.name,c=a&&(!r||r&&o(s,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},{"../internals/descriptors":153,"../internals/has-own-property":189}],179:[function(e,t,i){"use strict";var r=e("../internals/function-uncurry-this"),n=e("../internals/a-callable");t.exports=function(e,t,i){try{return r(n(Object.getOwnPropertyDescriptor(e,t)[i]))}catch(s){}}},{"../internals/a-callable":108,"../internals/function-uncurry-this":181}],180:[function(e,t,i){"use strict";var r=e("../internals/classof-raw"),n=e("../internals/function-uncurry-this");t.exports=function(e){if("Function"===r(e))return n(e)}},{"../internals/classof-raw":137,"../internals/function-uncurry-this":181}],181:[function(e,t,i){"use strict";var r=e("../internals/function-bind-native"),n=Function.prototype,s=n.call,o=r&&n.bind.bind(s,s);t.exports=r?o:function(e){return function(){return s.apply(e,arguments)}}},{"../internals/function-bind-native":176}],182:[function(e,t,i){"use strict";var r=e("../internals/global"),n=e("../internals/is-callable"),s=function(e){return n(e)?e:void 0};t.exports=function(e,t){return arguments.length<2?s(r[e]):r[e]&&r[e][t]}},{"../internals/global":188,"../internals/is-callable":203}],183:[function(e,t,i){"use strict";var r=e("../internals/classof"),n=e("../internals/get-method"),s=e("../internals/is-null-or-undefined"),o=e("../internals/iterators"),a=e("../internals/well-known-symbol"),l=a("iterator");t.exports=function(e){if(!s(e))return n(e,l)||n(e,"@@iterator")||o[r(e)]}},{"../internals/classof":138,"../internals/get-method":186,"../internals/is-null-or-undefined":207,"../internals/iterators":218,"../internals/well-known-symbol":306}],184:[function(e,t,i){"use strict";var r=e("../internals/function-call"),n=e("../internals/a-callable"),s=e("../internals/an-object"),o=e("../internals/try-to-string"),a=e("../internals/get-iterator-method"),l=TypeError;t.exports=function(e,t){var i=arguments.length<2?a(e):t;if(n(i))return s(r(i,e));throw new l(o(e)+" is not iterable")}},{"../internals/a-callable":108,"../internals/an-object":114,"../internals/function-call":177,"../internals/get-iterator-method":183,"../internals/try-to-string":293}],185:[function(e,t,i){"use strict";var r=e("../internals/function-uncurry-this"),n=e("../internals/is-array"),s=e("../internals/is-callable"),o=e("../internals/classof-raw"),a=e("../internals/to-string"),l=r([].push);t.exports=function(e){if(s(e))return e;if(n(e)){for(var t=e.length,i=[],r=0;r]*>)/g,u=/\$([$&'`]|\d{1,2})/g;t.exports=function(e,t,i,r,d,h){var p=i+e.length,f=r.length,m=u;return void 0!==d&&(d=n(d),m=c),a(h,m,(function(n,a){var c;switch(o(a,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,i);case"'":return l(t,p);case"<":c=d[l(a,1,-1)];break;default:var u=+a;if(0===u)return n;if(u>f){var h=s(u/10);return 0===h?n:h<=f?void 0===r[h-1]?o(a,1):r[h-1]+o(a,1):n}c=r[u-1]}return void 0===c?"":c}))}},{"../internals/function-uncurry-this":181,"../internals/to-object":285}],188:[function(e,i,r){(function(e){(function(){"use strict";var t=function(e){return e&&e.Math===Math&&e};i.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||t("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this)}).call(this,"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],189:[function(e,t,i){"use strict";var r=e("../internals/function-uncurry-this"),n=e("../internals/to-object"),s=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return s(n(e),t)}},{"../internals/function-uncurry-this":181,"../internals/to-object":285}],190:[function(e,t,i){"use strict";t.exports={}},{}],191:[function(e,t,i){"use strict";t.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(i){}}},{}],192:[function(e,t,i){"use strict";var r=e("../internals/get-built-in");t.exports=r("document","documentElement")},{"../internals/get-built-in":182}],193:[function(e,t,i){"use strict";var r=e("../internals/descriptors"),n=e("../internals/fails"),s=e("../internals/document-create-element");t.exports=!r&&!n((function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},{"../internals/descriptors":153,"../internals/document-create-element":154,"../internals/fails":171}],194:[function(e,t,i){"use strict";var r=Array,n=Math.abs,s=Math.pow,o=Math.floor,a=Math.log,l=Math.LN2,c=function(e,t,i){var c,u,d,h=r(i),p=8*i-t-1,f=(1<>1,g=23===t?s(2,-24)-s(2,-77):0,y=e<0||0===e&&1/e<0?1:0,b=0;e=n(e),e!==e||e===1/0?(u=e!==e?1:0,c=f):(c=o(a(e)/l),d=s(2,-c),e*d<1&&(c--,d*=2),e+=c+m>=1?g/d:g*s(2,1-m),e*d>=2&&(c++,d/=2),c+m>=f?(u=0,c=f):c+m>=1?(u=(e*d-1)*s(2,t),c+=m):(u=e*s(2,m-1)*s(2,t),c=0));while(t>=8)h[b++]=255&u,u/=256,t-=8;c=c<0)h[b++]=255&c,c/=256,p-=8;return h[--b]|=128*y,h},u=function(e,t){var i,r=e.length,n=8*r-t-1,o=(1<>1,l=n-7,c=r-1,u=e[c--],d=127&u;u>>=7;while(l>0)d=256*d+e[c--],l-=8;i=d&(1<<-l)-1,d>>=-l,l+=t;while(l>0)i=256*i+e[c--],l-=8;if(0===d)d=1-a;else{if(d===o)return i?NaN:u?-1/0:1/0;i+=s(2,t),d-=a}return(u?-1:1)*i*s(2,d-t)};t.exports={pack:c,unpack:u}},{}],195:[function(e,t,i){"use strict";var r=e("../internals/function-uncurry-this"),n=e("../internals/fails"),s=e("../internals/classof-raw"),o=Object,a=r("".split);t.exports=n((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===s(e)?a(e,""):o(e)}:o},{"../internals/classof-raw":137,"../internals/fails":171,"../internals/function-uncurry-this":181}],196:[function(e,t,i){"use strict";var r=e("../internals/is-callable"),n=e("../internals/is-object"),s=e("../internals/object-set-prototype-of");t.exports=function(e,t,i){var o,a;return s&&r(o=t.constructor)&&o!==i&&n(a=o.prototype)&&a!==i.prototype&&s(e,a),e}},{"../internals/is-callable":203,"../internals/is-object":208,"../internals/object-set-prototype-of":242}],197:[function(e,t,i){"use strict";var r=e("../internals/function-uncurry-this"),n=e("../internals/is-callable"),s=e("../internals/shared-store"),o=r(Function.toString);n(s.inspectSource)||(s.inspectSource=function(e){return o(e)}),t.exports=s.inspectSource},{"../internals/function-uncurry-this":181,"../internals/is-callable":203,"../internals/shared-store":268}],198:[function(e,t,i){"use strict";var r=e("../internals/export"),n=e("../internals/function-uncurry-this"),s=e("../internals/hidden-keys"),o=e("../internals/is-object"),a=e("../internals/has-own-property"),l=e("../internals/object-define-property").f,c=e("../internals/object-get-own-property-names"),u=e("../internals/object-get-own-property-names-external"),d=e("../internals/object-is-extensible"),h=e("../internals/uid"),p=e("../internals/freezing"),f=!1,m=h("meta"),g=0,y=function(e){l(e,m,{value:{objectID:"O"+g++,weakData:{}}})},b=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,m)){if(!d(e))return"F";if(!t)return"E";y(e)}return e[m].objectID},v=function(e,t){if(!a(e,m)){if(!d(e))return!0;if(!t)return!1;y(e)}return e[m].weakData},w=function(e){return p&&f&&d(e)&&!a(e,m)&&y(e),e},x=function(){_.enable=function(){},f=!0;var e=c.f,t=n([].splice),i={};i[m]=1,e(i).length&&(c.f=function(i){for(var r=e(i),n=0,s=r.length;nb;b++)if(w=D(e[b]),w&&c(m,w))return w;return new f(!1)}g=u(e,y)}x=k?e.next:g.next;while(!(_=n(x,g)).done){try{w=D(_.value)}catch(A){h(g,"throw",A)}if("object"==typeof w&&w&&c(m,w))return w}return new f(!1)}},{"../internals/an-object":114,"../internals/function-bind-context":175,"../internals/function-call":177,"../internals/get-iterator":184,"../internals/get-iterator-method":183,"../internals/is-array-iterator-method":200,"../internals/iterator-close":214,"../internals/length-of-array-like":219,"../internals/object-is-prototype-of":238,"../internals/try-to-string":293}],214:[function(e,t,i){"use strict";var r=e("../internals/function-call"),n=e("../internals/an-object"),s=e("../internals/get-method");t.exports=function(e,t,i){var o,a;n(e);try{if(o=s(e,"return"),!o){if("throw"===t)throw i;return i}o=r(o,e)}catch(l){a=!0,o=l}if("throw"===t)throw i;if(a)throw o;return n(o),i}},{"../internals/an-object":114,"../internals/function-call":177,"../internals/get-method":186}],215:[function(e,t,i){"use strict";var r=e("../internals/iterators-core").IteratorPrototype,n=e("../internals/object-create"),s=e("../internals/create-property-descriptor"),o=e("../internals/set-to-string-tag"),a=e("../internals/iterators"),l=function(){return this};t.exports=function(e,t,i,c){var u=t+" Iterator";return e.prototype=n(r,{next:s(+!c,i)}),o(e,u,!1,!0),a[u]=l,e}},{"../internals/create-property-descriptor":146,"../internals/iterators":218,"../internals/iterators-core":217,"../internals/object-create":229,"../internals/set-to-string-tag":266}],216:[function(e,t,i){"use strict";var r=e("../internals/export"),n=e("../internals/function-call"),s=e("../internals/is-pure"),o=e("../internals/function-name"),a=e("../internals/is-callable"),l=e("../internals/iterator-create-constructor"),c=e("../internals/object-get-prototype-of"),u=e("../internals/object-set-prototype-of"),d=e("../internals/set-to-string-tag"),h=e("../internals/create-non-enumerable-property"),p=e("../internals/define-built-in"),f=e("../internals/well-known-symbol"),m=e("../internals/iterators"),g=e("../internals/iterators-core"),y=o.PROPER,b=o.CONFIGURABLE,v=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,x=f("iterator"),_="keys",j="values",C="entries",k=function(){return this};t.exports=function(e,t,i,o,f,g,S){l(i,t,o);var T,E,O,D=function(e){if(e===f&&P)return P;if(!w&&e&&e in I)return I[e];switch(e){case _:return function(){return new i(this,e)};case j:return function(){return new i(this,e)};case C:return function(){return new i(this,e)}}return function(){return new i(this)}},A=t+" Iterator",N=!1,I=e.prototype,R=I[x]||I["@@iterator"]||f&&I[f],P=!w&&R||D(f),F="Array"===t&&I.entries||R;if(F&&(T=c(F.call(new e)),T!==Object.prototype&&T.next&&(s||c(T)===v||(u?u(T,v):a(T[x])||p(T,x,k)),d(T,A,!0,!0),s&&(m[A]=k))),y&&f===j&&R&&R.name!==j&&(!s&&b?h(I,"name",j):(N=!0,P=function(){return n(R,this)})),f)if(E={values:D(j),keys:g?P:D(_),entries:D(C)},S)for(O in E)(w||N||!(O in I))&&p(I,O,E[O]);else r({target:t,proto:!0,forced:w||N},E);return s&&!S||I[x]===P||p(I,x,P,{name:f}),m[t]=P,E}},{"../internals/create-non-enumerable-property":145,"../internals/define-built-in":149,"../internals/export":170,"../internals/function-call":177,"../internals/function-name":178,"../internals/is-callable":203,"../internals/is-pure":210,"../internals/iterator-create-constructor":215,"../internals/iterators":218,"../internals/iterators-core":217,"../internals/object-get-prototype-of":236,"../internals/object-set-prototype-of":242,"../internals/set-to-string-tag":266,"../internals/well-known-symbol":306}],217:[function(e,t,i){"use strict";var r,n,s,o=e("../internals/fails"),a=e("../internals/is-callable"),l=e("../internals/is-object"),c=e("../internals/object-create"),u=e("../internals/object-get-prototype-of"),d=e("../internals/define-built-in"),h=e("../internals/well-known-symbol"),p=e("../internals/is-pure"),f=h("iterator"),m=!1;[].keys&&(s=[].keys(),"next"in s?(n=u(u(s)),n!==Object.prototype&&(r=n)):m=!0);var g=!l(r)||o((function(){var e={};return r[f].call(e)!==e}));g?r={}:p&&(r=c(r)),a(r[f])||d(r,f,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:m}},{"../internals/define-built-in":149,"../internals/fails":171,"../internals/is-callable":203,"../internals/is-object":208,"../internals/is-pure":210,"../internals/object-create":229,"../internals/object-get-prototype-of":236,"../internals/well-known-symbol":306}],218:[function(e,t,i){arguments[4][190][0].apply(i,arguments)},{dup:190}],219:[function(e,t,i){"use strict";var r=e("../internals/to-length");t.exports=function(e){return r(e.length)}},{"../internals/to-length":284}],220:[function(e,t,i){"use strict";var r=e("../internals/function-uncurry-this"),n=e("../internals/fails"),s=e("../internals/is-callable"),o=e("../internals/has-own-property"),a=e("../internals/descriptors"),l=e("../internals/function-name").CONFIGURABLE,c=e("../internals/inspect-source"),u=e("../internals/internal-state"),d=u.enforce,h=u.get,p=String,f=Object.defineProperty,m=r("".slice),g=r("".replace),y=r([].join),b=a&&!n((function(){return 8!==f((function(){}),"length",{value:8}).length})),v=String(String).split("String"),w=t.exports=function(e,t,i){"Symbol("===m(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),i&&i.getter&&(t="get "+t),i&&i.setter&&(t="set "+t),(!o(e,"name")||l&&e.name!==t)&&(a?f(e,"name",{value:t,configurable:!0}):e.name=t),b&&i&&o(i,"arity")&&e.length!==i.arity&&f(e,"length",{value:i.arity});try{i&&o(i,"constructor")&&i.constructor?a&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(n){}var r=d(e);return o(r,"source")||(r.source=y(v,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return s(this)&&h(this).source||c(this)}),"toString")},{"../internals/descriptors":153,"../internals/fails":171,"../internals/function-name":178,"../internals/function-uncurry-this":181,"../internals/has-own-property":189,"../internals/inspect-source":197,"../internals/internal-state":199,"../internals/is-callable":203}],221:[function(e,t,i){"use strict";var r=e("../internals/math-sign"),n=Math.abs,s=2220446049250313e-31,o=1/s,a=function(e){return e+o-o};t.exports=function(e,t,i,o){var l=+e,c=n(l),u=r(l);if(ci||h!==h?u*(1/0):u*h}},{"../internals/math-sign":223}],222:[function(e,t,i){"use strict";var r=e("../internals/math-float-round"),n=1.1920928955078125e-7,s=34028234663852886e22,o=11754943508222875e-54;t.exports=Math.fround||function(e){return r(e,n,s,o)}},{"../internals/math-float-round":221}],223:[function(e,t,i){"use strict";t.exports=Math.sign||function(e){var t=+e;return 0===t||t!==t?t:t<0?-1:1}},{}],224:[function(e,t,i){"use strict";var r=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?n:r)(t)}},{}],225:[function(e,t,i){"use strict";var r,n,s,o,a,l=e("../internals/global"),c=e("../internals/safe-get-built-in"),u=e("../internals/function-bind-context"),d=e("../internals/task").set,h=e("../internals/queue"),p=e("../internals/engine-is-ios"),f=e("../internals/engine-is-ios-pebble"),m=e("../internals/engine-is-webos-webkit"),g=e("../internals/engine-is-node"),y=l.MutationObserver||l.WebKitMutationObserver,b=l.document,v=l.process,w=l.Promise,x=c("queueMicrotask");if(!x){var _=new h,j=function(){var e,t;g&&(e=v.domain)&&e.exit();while(t=_.get())try{t()}catch(i){throw _.head&&r(),i}e&&e.enter()};p||g||m||!y||!b?!f&&w&&w.resolve?(o=w.resolve(void 0),o.constructor=w,a=u(o.then,o),r=function(){a(j)}):g?r=function(){v.nextTick(j)}:(d=u(d,l),r=function(){d(j)}):(n=!0,s=b.createTextNode(""),new y(j).observe(s,{characterData:!0}),r=function(){s.data=n=!n}),x=function(e){_.head||r(),_.add(e)}}t.exports=x},{"../internals/engine-is-ios":163,"../internals/engine-is-ios-pebble":162,"../internals/engine-is-node":164,"../internals/engine-is-webos-webkit":165,"../internals/function-bind-context":175,"../internals/global":188,"../internals/queue":254,"../internals/safe-get-built-in":263,"../internals/task":277}],226:[function(e,t,i){"use strict";var r=e("../internals/a-callable"),n=TypeError,s=function(e){var t,i;this.promise=new e((function(e,r){if(void 0!==t||void 0!==i)throw new n("Bad Promise constructor");t=e,i=r})),this.resolve=r(t),this.reject=r(i)};t.exports.f=function(e){return new s(e)}},{"../internals/a-callable":108}],227:[function(e,t,i){"use strict";var r=e("../internals/is-regexp"),n=TypeError;t.exports=function(e){if(r(e))throw new n("The method doesn't accept regular expressions");return e}},{"../internals/is-regexp":211}],228:[function(e,t,i){"use strict";var r=e("../internals/descriptors"),n=e("../internals/function-uncurry-this"),s=e("../internals/function-call"),o=e("../internals/fails"),a=e("../internals/object-keys"),l=e("../internals/object-get-own-property-symbols"),c=e("../internals/object-property-is-enumerable"),u=e("../internals/to-object"),d=e("../internals/indexed-object"),h=Object.assign,p=Object.defineProperty,f=n([].concat);t.exports=!h||o((function(){if(r&&1!==h({b:1},h(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},i=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[i]=7,n.split("").forEach((function(e){t[e]=e})),7!==h({},e)[i]||a(h({},t)).join("")!==n}))?function(e,t){var i=u(e),n=arguments.length,o=1,h=l.f,p=c.f;while(n>o){var m,g=d(arguments[o++]),y=h?f(a(g),h(g)):a(g),b=y.length,v=0;while(b>v)m=y[v++],r&&!s(p,g,m)||(i[m]=g[m])}return i}:h},{"../internals/descriptors":153,"../internals/fails":171,"../internals/function-call":177,"../internals/function-uncurry-this":181,"../internals/indexed-object":195,"../internals/object-get-own-property-symbols":235,"../internals/object-keys":240,"../internals/object-property-is-enumerable":241,"../internals/to-object":285}],229:[function(e,t,i){"use strict";var r,n=e("../internals/an-object"),s=e("../internals/object-define-properties"),o=e("../internals/enum-bug-keys"),a=e("../internals/hidden-keys"),l=e("../internals/html"),c=e("../internals/document-create-element"),u=e("../internals/shared-key"),d=">",h="<",p="prototype",f="script",m=u("IE_PROTO"),g=function(){},y=function(e){return h+f+d+e+h+"/"+f+d},b=function(e){e.write(y("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){var e,t=c("iframe"),i="java"+f+":";return t.style.display="none",l.appendChild(t),t.src=String(i),e=t.contentWindow.document,e.open(),e.write(y("document.F=Object")),e.close(),e.F},w=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}w="undefined"!=typeof document?document.domain&&r?b(r):v():b(r);var e=o.length;while(e--)delete w[p][o[e]];return w()};a[m]=!0,t.exports=Object.create||function(e,t){var i;return null!==e?(g[p]=n(e),i=new g,g[p]=null,i[m]=e):i=w(),void 0===t?i:s.f(i,t)}},{"../internals/an-object":114,"../internals/document-create-element":154,"../internals/enum-bug-keys":169,"../internals/hidden-keys":190,"../internals/html":192,"../internals/object-define-properties":230,"../internals/shared-key":267}],230:[function(e,t,i){"use strict";var r=e("../internals/descriptors"),n=e("../internals/v8-prototype-define-bug"),s=e("../internals/object-define-property"),o=e("../internals/an-object"),a=e("../internals/to-indexed-object"),l=e("../internals/object-keys");i.f=r&&!n?Object.defineProperties:function(e,t){o(e);var i,r=a(t),n=l(t),c=n.length,u=0;while(c>u)s.f(e,i=n[u++],r[i]);return e}},{"../internals/an-object":114,"../internals/descriptors":153,"../internals/object-define-property":231,"../internals/object-keys":240,"../internals/to-indexed-object":282,"../internals/v8-prototype-define-bug":301}],231:[function(e,t,i){"use strict";var r=e("../internals/descriptors"),n=e("../internals/ie8-dom-define"),s=e("../internals/v8-prototype-define-bug"),o=e("../internals/an-object"),a=e("../internals/to-property-key"),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",p="writable";i.f=r?s?function(e,t,i){if(o(e),t=a(t),o(i),"function"===typeof e&&"prototype"===t&&"value"in i&&p in i&&!i[p]){var r=u(e,t);r&&r[p]&&(e[t]=i.value,i={configurable:h in i?i[h]:r[h],enumerable:d in i?i[d]:r[d],writable:!1})}return c(e,t,i)}:c:function(e,t,i){if(o(e),t=a(t),o(i),n)try{return c(e,t,i)}catch(r){}if("get"in i||"set"in i)throw new l("Accessors not supported");return"value"in i&&(e[t]=i.value),e}},{"../internals/an-object":114,"../internals/descriptors":153,"../internals/ie8-dom-define":193,"../internals/to-property-key":289,"../internals/v8-prototype-define-bug":301}],232:[function(e,t,i){"use strict";var r=e("../internals/descriptors"),n=e("../internals/function-call"),s=e("../internals/object-property-is-enumerable"),o=e("../internals/create-property-descriptor"),a=e("../internals/to-indexed-object"),l=e("../internals/to-property-key"),c=e("../internals/has-own-property"),u=e("../internals/ie8-dom-define"),d=Object.getOwnPropertyDescriptor;i.f=r?d:function(e,t){if(e=a(e),t=l(t),u)try{return d(e,t)}catch(i){}if(c(e,t))return o(!n(s.f,e,t),e[t])}},{"../internals/create-property-descriptor":146,"../internals/descriptors":153,"../internals/function-call":177,"../internals/has-own-property":189,"../internals/ie8-dom-define":193,"../internals/object-property-is-enumerable":241,"../internals/to-indexed-object":282,"../internals/to-property-key":289}],233:[function(e,t,i){"use strict";var r=e("../internals/classof-raw"),n=e("../internals/to-indexed-object"),s=e("../internals/object-get-own-property-names").f,o=e("../internals/array-slice"),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return s(e)}catch(t){return o(a)}};t.exports.f=function(e){return a&&"Window"===r(e)?l(e):s(n(e))}},{"../internals/array-slice":131,"../internals/classof-raw":137,"../internals/object-get-own-property-names":234,"../internals/to-indexed-object":282}],234:[function(e,t,i){"use strict";var r=e("../internals/object-keys-internal"),n=e("../internals/enum-bug-keys"),s=n.concat("length","prototype");i.f=Object.getOwnPropertyNames||function(e){return r(e,s)}},{"../internals/enum-bug-keys":169,"../internals/object-keys-internal":239}],235:[function(e,t,i){"use strict";i.f=Object.getOwnPropertySymbols},{}],236:[function(e,t,i){"use strict";var r=e("../internals/has-own-property"),n=e("../internals/is-callable"),s=e("../internals/to-object"),o=e("../internals/shared-key"),a=e("../internals/correct-prototype-getter"),l=o("IE_PROTO"),c=Object,u=c.prototype;t.exports=a?c.getPrototypeOf:function(e){var t=s(e);if(r(t,l))return t[l];var i=t.constructor;return n(i)&&t instanceof i?i.prototype:t instanceof c?u:null}},{"../internals/correct-prototype-getter":143,"../internals/has-own-property":189,"../internals/is-callable":203,"../internals/shared-key":267,"../internals/to-object":285}],237:[function(e,t,i){"use strict";var r=e("../internals/fails"),n=e("../internals/is-object"),s=e("../internals/classof-raw"),o=e("../internals/array-buffer-non-extensible"),a=Object.isExtensible,l=r((function(){a(1)}));t.exports=l||o?function(e){return!!n(e)&&((!o||"ArrayBuffer"!==s(e))&&(!a||a(e)))}:a},{"../internals/array-buffer-non-extensible":116,"../internals/classof-raw":137,"../internals/fails":171,"../internals/is-object":208}],238:[function(e,t,i){"use strict";var r=e("../internals/function-uncurry-this");t.exports=r({}.isPrototypeOf)},{"../internals/function-uncurry-this":181}],239:[function(e,t,i){"use strict";var r=e("../internals/function-uncurry-this"),n=e("../internals/has-own-property"),s=e("../internals/to-indexed-object"),o=e("../internals/array-includes").indexOf,a=e("../internals/hidden-keys"),l=r([].push);t.exports=function(e,t){var i,r=s(e),c=0,u=[];for(i in r)!n(a,i)&&n(r,i)&&l(u,i);while(t.length>c)n(r,i=t[c++])&&(~o(u,i)||l(u,i));return u}},{"../internals/array-includes":124,"../internals/function-uncurry-this":181,"../internals/has-own-property":189,"../internals/hidden-keys":190,"../internals/to-indexed-object":282}],240:[function(e,t,i){"use strict";var r=e("../internals/object-keys-internal"),n=e("../internals/enum-bug-keys");t.exports=Object.keys||function(e){return r(e,n)}},{"../internals/enum-bug-keys":169,"../internals/object-keys-internal":239}],241:[function(e,t,i){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);i.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},{}],242:[function(e,t,i){"use strict";var r=e("../internals/function-uncurry-this-accessor"),n=e("../internals/an-object"),s=e("../internals/a-possible-prototype");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,i={};try{e=r(Object.prototype,"__proto__","set"),e(i,[]),t=i instanceof Array}catch(o){}return function(i,r){return n(i),s(r),t?e(i,r):i.__proto__=r,i}}():void 0)},{"../internals/a-possible-prototype":110,"../internals/an-object":114,"../internals/function-uncurry-this-accessor":179}],243:[function(e,t,i){"use strict";var r=e("../internals/descriptors"),n=e("../internals/fails"),s=e("../internals/function-uncurry-this"),o=e("../internals/object-get-prototype-of"),a=e("../internals/object-keys"),l=e("../internals/to-indexed-object"),c=e("../internals/object-property-is-enumerable").f,u=s(c),d=s([].push),h=r&&n((function(){var e=Object.create(null);return e[2]=2,!u(e,2)})),p=function(e){return function(t){var i,n=l(t),s=a(n),c=h&&null===o(n),p=s.length,f=0,m=[];while(p>f)i=s[f++],r&&!(c?i in n:u(n,i))||d(m,e?[i,n[i]]:n[i]);return m}};t.exports={entries:p(!0),values:p(!1)}},{"../internals/descriptors":153,"../internals/fails":171,"../internals/function-uncurry-this":181,"../internals/object-get-prototype-of":236,"../internals/object-keys":240,"../internals/object-property-is-enumerable":241,"../internals/to-indexed-object":282}],244:[function(e,t,i){"use strict";var r=e("../internals/to-string-tag-support"),n=e("../internals/classof");t.exports=r?{}.toString:function(){return"[object "+n(this)+"]"}},{"../internals/classof":138,"../internals/to-string-tag-support":290}],245:[function(e,t,i){"use strict";var r=e("../internals/function-call"),n=e("../internals/is-callable"),s=e("../internals/is-object"),o=TypeError;t.exports=function(e,t){var i,a;if("string"===t&&n(i=e.toString)&&!s(a=r(i,e)))return a;if(n(i=e.valueOf)&&!s(a=r(i,e)))return a;if("string"!==t&&n(i=e.toString)&&!s(a=r(i,e)))return a;throw new o("Can't convert object to primitive value")}},{"../internals/function-call":177,"../internals/is-callable":203,"../internals/is-object":208}],246:[function(e,t,i){"use strict";var r=e("../internals/get-built-in"),n=e("../internals/function-uncurry-this"),s=e("../internals/object-get-own-property-names"),o=e("../internals/object-get-own-property-symbols"),a=e("../internals/an-object"),l=n([].concat);t.exports=r("Reflect","ownKeys")||function(e){var t=s.f(a(e)),i=o.f;return i?l(t,i(e)):t}},{"../internals/an-object":114,"../internals/function-uncurry-this":181,"../internals/get-built-in":182,"../internals/object-get-own-property-names":234,"../internals/object-get-own-property-symbols":235}],247:[function(e,t,i){"use strict";var r=e("../internals/global");t.exports=r},{"../internals/global":188}],248:[function(e,t,i){"use strict";t.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},{}],249:[function(e,t,i){"use strict";var r=e("../internals/global"),n=e("../internals/promise-native-constructor"),s=e("../internals/is-callable"),o=e("../internals/is-forced"),a=e("../internals/inspect-source"),l=e("../internals/well-known-symbol"),c=e("../internals/engine-is-browser"),u=e("../internals/engine-is-deno"),d=e("../internals/is-pure"),h=e("../internals/engine-v8-version"),p=n&&n.prototype,f=l("species"),m=!1,g=s(r.PromiseRejectionEvent),y=o("Promise",(function(){var e=a(n),t=e!==String(n);if(!t&&66===h)return!0;if(d&&(!p["catch"]||!p["finally"]))return!0;if(!h||h<51||!/native code/.test(e)){var i=new n((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))},s=i.constructor={};if(s[f]=r,m=i.then((function(){}))instanceof r,!m)return!0}return!t&&(c||u)&&!g}));t.exports={CONSTRUCTOR:y,REJECTION_EVENT:g,SUBCLASSING:m}},{"../internals/engine-is-browser":159,"../internals/engine-is-deno":160,"../internals/engine-v8-version":167,"../internals/global":188,"../internals/inspect-source":197,"../internals/is-callable":203,"../internals/is-forced":205,"../internals/is-pure":210,"../internals/promise-native-constructor":250,"../internals/well-known-symbol":306}],250:[function(e,t,i){"use strict";var r=e("../internals/global");t.exports=r.Promise},{"../internals/global":188}],251:[function(e,t,i){"use strict";var r=e("../internals/an-object"),n=e("../internals/is-object"),s=e("../internals/new-promise-capability");t.exports=function(e,t){if(r(e),n(t)&&t.constructor===e)return t;var i=s.f(e),o=i.resolve;return o(t),i.promise}},{"../internals/an-object":114,"../internals/is-object":208,"../internals/new-promise-capability":226}],252:[function(e,t,i){"use strict";var r=e("../internals/promise-native-constructor"),n=e("../internals/check-correctness-of-iteration"),s=e("../internals/promise-constructor-detection").CONSTRUCTOR;t.exports=s||!n((function(e){r.all(e).then(void 0,(function(){}))}))},{"../internals/check-correctness-of-iteration":136,"../internals/promise-constructor-detection":249,"../internals/promise-native-constructor":250}],253:[function(e,t,i){"use strict";var r=e("../internals/object-define-property").f;t.exports=function(e,t,i){i in e||r(e,i,{configurable:!0,get:function(){return t[i]},set:function(e){t[i]=e}})}},{"../internals/object-define-property":231}],254:[function(e,t,i){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(e){var t={item:e,next:null},i=this.tail;i?i.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e){var t=this.head=e.next;return null===t&&(this.tail=null),e.item}}},t.exports=r},{}],255:[function(e,t,i){"use strict";var r=e("../internals/function-call"),n=e("../internals/an-object"),s=e("../internals/is-callable"),o=e("../internals/classof-raw"),a=e("../internals/regexp-exec"),l=TypeError;t.exports=function(e,t){var i=e.exec;if(s(i)){var c=r(i,e,t);return null!==c&&n(c),c}if("RegExp"===o(e))return r(a,e,t);throw new l("RegExp#exec called on incompatible receiver")}},{"../internals/an-object":114,"../internals/classof-raw":137,"../internals/function-call":177,"../internals/is-callable":203,"../internals/regexp-exec":256}],256:[function(e,t,i){"use strict";var r=e("../internals/function-call"),n=e("../internals/function-uncurry-this"),s=e("../internals/to-string"),o=e("../internals/regexp-flags"),a=e("../internals/regexp-sticky-helpers"),l=e("../internals/shared"),c=e("../internals/object-create"),u=e("../internals/internal-state").get,d=e("../internals/regexp-unsupported-dot-all"),h=e("../internals/regexp-unsupported-ncg"),p=l("native-string-replace",String.prototype.replace),f=RegExp.prototype.exec,m=f,g=n("".charAt),y=n("".indexOf),b=n("".replace),v=n("".slice),w=function(){var e=/a/,t=/b*/g;return r(f,e,"a"),r(f,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),x=a.BROKEN_CARET,_=void 0!==/()??/.exec("")[1],j=w||_||x||d||h;j&&(m=function(e){var t,i,n,a,l,d,h,j=this,C=u(j),k=s(e),S=C.raw;if(S)return S.lastIndex=j.lastIndex,t=r(m,S,k),j.lastIndex=S.lastIndex,t;var T=C.groups,E=x&&j.sticky,O=r(o,j),D=j.source,A=0,N=k;if(E&&(O=b(O,"y",""),-1===y(O,"g")&&(O+="g"),N=v(k,j.lastIndex),j.lastIndex>0&&(!j.multiline||j.multiline&&"\n"!==g(k,j.lastIndex-1))&&(D="(?: "+D+")",N=" "+N,A++),i=new RegExp("^(?:"+D+")",O)),_&&(i=new RegExp("^"+D+"$(?!\\s)",O)),w&&(n=j.lastIndex),a=r(f,E?i:j,N),E?a?(a.input=v(a.input,A),a[0]=v(a[0],A),a.index=j.lastIndex,j.lastIndex+=a[0].length):j.lastIndex=0:w&&a&&(j.lastIndex=j.global?a.index+a[0].length:n),_&&a&&a.length>1&&r(p,a[0],i,(function(){for(l=1;lb)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},{"../internals/fails":171,"../internals/global":188}],262:[function(e,t,i){"use strict";var r=e("../internals/is-null-or-undefined"),n=TypeError;t.exports=function(e){if(r(e))throw new n("Can't call method on "+e);return e}},{"../internals/is-null-or-undefined":207}],263:[function(e,t,i){"use strict";var r=e("../internals/global"),n=e("../internals/descriptors"),s=Object.getOwnPropertyDescriptor;t.exports=function(e){if(!n)return r[e];var t=s(r,e);return t&&t.value}},{"../internals/descriptors":153,"../internals/global":188}],264:[function(e,t,i){"use strict";t.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}},{}],265:[function(e,t,i){"use strict";var r=e("../internals/get-built-in"),n=e("../internals/define-built-in-accessor"),s=e("../internals/well-known-symbol"),o=e("../internals/descriptors"),a=s("species");t.exports=function(e){var t=r(e);o&&t&&!t[a]&&n(t,a,{configurable:!0,get:function(){return this}})}},{"../internals/define-built-in-accessor":148,"../internals/descriptors":153,"../internals/get-built-in":182,"../internals/well-known-symbol":306}],266:[function(e,t,i){"use strict";var r=e("../internals/object-define-property").f,n=e("../internals/has-own-property"),s=e("../internals/well-known-symbol"),o=s("toStringTag");t.exports=function(e,t,i){e&&!i&&(e=e.prototype),e&&!n(e,o)&&r(e,o,{configurable:!0,value:t})}},{"../internals/has-own-property":189,"../internals/object-define-property":231,"../internals/well-known-symbol":306}],267:[function(e,t,i){"use strict";var r=e("../internals/shared"),n=e("../internals/uid"),s=r("keys");t.exports=function(e){return s[e]||(s[e]=n(e))}},{"../internals/shared":269,"../internals/uid":299}],268:[function(e,t,i){"use strict";var r=e("../internals/global"),n=e("../internals/define-global-property"),s="__core-js_shared__",o=r[s]||n(s,{});t.exports=o},{"../internals/define-global-property":151,"../internals/global":188}],269:[function(e,t,i){"use strict";var r=e("../internals/is-pure"),n=e("../internals/shared-store");(t.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.0",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":210,"../internals/shared-store":268}],270:[function(e,t,i){"use strict";var r=e("../internals/an-object"),n=e("../internals/a-constructor"),s=e("../internals/is-null-or-undefined"),o=e("../internals/well-known-symbol"),a=o("species");t.exports=function(e,t){var i,o=r(e).constructor;return void 0===o||s(i=r(o)[a])?t:n(i)}},{"../internals/a-constructor":109,"../internals/an-object":114,"../internals/is-null-or-undefined":207,"../internals/well-known-symbol":306}],271:[function(e,t,i){"use strict";var r=e("../internals/function-uncurry-this"),n=e("../internals/to-integer-or-infinity"),s=e("../internals/to-string"),o=e("../internals/require-object-coercible"),a=r("".charAt),l=r("".charCodeAt),c=r("".slice),u=function(e){return function(t,i){var r,u,d=s(o(t)),h=n(i),p=d.length;return h<0||h>=p?e?"":void 0:(r=l(d,h),r<55296||r>56319||h+1===p||(u=l(d,h+1))<56320||u>57343?e?a(d,h):r:e?c(d,h,h+2):u-56320+(r-55296<<10)+65536)}};t.exports={codeAt:u(!1),charAt:u(!0)}},{"../internals/function-uncurry-this":181,"../internals/require-object-coercible":262,"../internals/to-integer-or-infinity":283,"../internals/to-string":291}],272:[function(e,t,i){"use strict";var r=e("../internals/function-name").PROPER,n=e("../internals/fails"),s=e("../internals/whitespaces"),o="​…᠎";t.exports=function(e){return n((function(){return!!s[e]()||o[e]()!==o||r&&s[e].name!==e}))}},{"../internals/fails":171,"../internals/function-name":178,"../internals/whitespaces":307}],273:[function(e,t,i){"use strict";var r=e("../internals/function-uncurry-this"),n=e("../internals/require-object-coercible"),s=e("../internals/to-string"),o=e("../internals/whitespaces"),a=r("".replace),l=RegExp("^["+o+"]+"),c=RegExp("(^|[^"+o+"])["+o+"]+$"),u=function(e){return function(t){var i=s(n(t));return 1&e&&(i=a(i,l,"")),2&e&&(i=a(i,c,"$1")),i}};t.exports={start:u(1),end:u(2),trim:u(3)}},{"../internals/function-uncurry-this":181,"../internals/require-object-coercible":262,"../internals/to-string":291,"../internals/whitespaces":307}],274:[function(e,t,i){"use strict";var r=e("../internals/engine-v8-version"),n=e("../internals/fails"),s=e("../internals/global"),o=s.String;t.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},{"../internals/engine-v8-version":167,"../internals/fails":171,"../internals/global":188}],275:[function(e,t,i){"use strict";var r=e("../internals/function-call"),n=e("../internals/get-built-in"),s=e("../internals/well-known-symbol"),o=e("../internals/define-built-in");t.exports=function(){var e=n("Symbol"),t=e&&e.prototype,i=t&&t.valueOf,a=s("toPrimitive");t&&!t[a]&&o(t,a,(function(e){return r(i,this)}),{arity:1})}},{"../internals/define-built-in":149,"../internals/function-call":177,"../internals/get-built-in":182,"../internals/well-known-symbol":306}],276:[function(e,t,i){"use strict";var r=e("../internals/symbol-constructor-detection");t.exports=r&&!!Symbol["for"]&&!!Symbol.keyFor},{"../internals/symbol-constructor-detection":274}],277:[function(e,t,i){"use strict";var r,n,s,o,a=e("../internals/global"),l=e("../internals/function-apply"),c=e("../internals/function-bind-context"),u=e("../internals/is-callable"),d=e("../internals/has-own-property"),h=e("../internals/fails"),p=e("../internals/html"),f=e("../internals/array-slice"),m=e("../internals/document-create-element"),g=e("../internals/validate-arguments-length"),y=e("../internals/engine-is-ios"),b=e("../internals/engine-is-node"),v=a.setImmediate,w=a.clearImmediate,x=a.process,_=a.Dispatch,j=a.Function,C=a.MessageChannel,k=a.String,S=0,T={},E="onreadystatechange";h((function(){r=a.location}));var O=function(e){if(d(T,e)){var t=T[e];delete T[e],t()}},D=function(e){return function(){O(e)}},A=function(e){O(e.data)},N=function(e){a.postMessage(k(e),r.protocol+"//"+r.host)};v&&w||(v=function(e){g(arguments.length,1);var t=u(e)?e:j(e),i=f(arguments,1);return T[++S]=function(){l(t,void 0,i)},n(S),S},w=function(e){delete T[e]},b?n=function(e){x.nextTick(D(e))}:_&&_.now?n=function(e){_.now(D(e))}:C&&!y?(s=new C,o=s.port2,s.port1.onmessage=A,n=c(o.postMessage,o)):a.addEventListener&&u(a.postMessage)&&!a.importScripts&&r&&"file:"!==r.protocol&&!h(N)?(n=N,a.addEventListener("message",A,!1)):n=E in m("script")?function(e){p.appendChild(m("script"))[E]=function(){p.removeChild(this),O(e)}}:function(e){setTimeout(D(e),0)}),t.exports={set:v,clear:w}},{"../internals/array-slice":131,"../internals/document-create-element":154,"../internals/engine-is-ios":163,"../internals/engine-is-node":164,"../internals/fails":171,"../internals/function-apply":174,"../internals/function-bind-context":175,"../internals/global":188,"../internals/has-own-property":189,"../internals/html":192,"../internals/is-callable":203,"../internals/validate-arguments-length":302}],278:[function(e,t,i){"use strict";var r=e("../internals/function-uncurry-this");t.exports=r(1..valueOf)},{"../internals/function-uncurry-this":181}],279:[function(e,t,i){"use strict";var r=e("../internals/to-integer-or-infinity"),n=Math.max,s=Math.min;t.exports=function(e,t){var i=r(e);return i<0?n(i+t,0):s(i,t)}},{"../internals/to-integer-or-infinity":283}],280:[function(e,t,i){"use strict";var r=e("../internals/to-primitive"),n=TypeError;t.exports=function(e){var t=r(e,"number");if("number"==typeof t)throw new n("Can't convert number to bigint");return BigInt(t)}},{"../internals/to-primitive":288}],281:[function(e,t,i){"use strict";var r=e("../internals/to-integer-or-infinity"),n=e("../internals/to-length"),s=RangeError;t.exports=function(e){if(void 0===e)return 0;var t=r(e),i=n(t);if(t!==i)throw new s("Wrong length or index");return i}},{"../internals/to-integer-or-infinity":283,"../internals/to-length":284}],282:[function(e,t,i){"use strict";var r=e("../internals/indexed-object"),n=e("../internals/require-object-coercible");t.exports=function(e){return r(n(e))}},{"../internals/indexed-object":195,"../internals/require-object-coercible":262}],283:[function(e,t,i){"use strict";var r=e("../internals/math-trunc");t.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},{"../internals/math-trunc":224}],284:[function(e,t,i){"use strict";var r=e("../internals/to-integer-or-infinity"),n=Math.min;t.exports=function(e){return e>0?n(r(e),9007199254740991):0}},{"../internals/to-integer-or-infinity":283}],285:[function(e,t,i){"use strict";var r=e("../internals/require-object-coercible"),n=Object;t.exports=function(e){return n(r(e))}},{"../internals/require-object-coercible":262}],286:[function(e,t,i){"use strict";var r=e("../internals/to-positive-integer"),n=RangeError;t.exports=function(e,t){var i=r(e);if(i%t)throw new n("Wrong offset");return i}},{"../internals/to-positive-integer":287}],287:[function(e,t,i){"use strict";var r=e("../internals/to-integer-or-infinity"),n=RangeError;t.exports=function(e){var t=r(e);if(t<0)throw new n("The argument can't be less than 0");return t}},{"../internals/to-integer-or-infinity":283}],288:[function(e,t,i){"use strict";var r=e("../internals/function-call"),n=e("../internals/is-object"),s=e("../internals/is-symbol"),o=e("../internals/get-method"),a=e("../internals/ordinary-to-primitive"),l=e("../internals/well-known-symbol"),c=TypeError,u=l("toPrimitive");t.exports=function(e,t){if(!n(e)||s(e))return e;var i,l=o(e,u);if(l){if(void 0===t&&(t="default"),i=r(l,e,t),!n(i)||s(i))return i;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},{"../internals/function-call":177,"../internals/get-method":186,"../internals/is-object":208,"../internals/is-symbol":212,"../internals/ordinary-to-primitive":245,"../internals/well-known-symbol":306}],289:[function(e,t,i){"use strict";var r=e("../internals/to-primitive"),n=e("../internals/is-symbol");t.exports=function(e){var t=r(e,"string");return n(t)?t:t+""}},{"../internals/is-symbol":212,"../internals/to-primitive":288}],290:[function(e,t,i){"use strict";var r=e("../internals/well-known-symbol"),n=r("toStringTag"),s={};s[n]="z",t.exports="[object z]"===String(s)},{"../internals/well-known-symbol":306}],291:[function(e,t,i){"use strict";var r=e("../internals/classof"),n=String;t.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},{"../internals/classof":138}],292:[function(e,t,i){"use strict";var r=Math.round;t.exports=function(e){var t=r(e);return t<0?0:t>255?255:255&t}},{}],293:[function(e,t,i){"use strict";var r=String;t.exports=function(e){try{return r(e)}catch(t){return"Object"}}},{}],294:[function(e,t,i){"use strict";var r=e("../internals/export"),n=e("../internals/global"),s=e("../internals/function-call"),o=e("../internals/descriptors"),a=e("../internals/typed-array-constructors-require-wrappers"),l=e("../internals/array-buffer-view-core"),c=e("../internals/array-buffer"),u=e("../internals/an-instance"),d=e("../internals/create-property-descriptor"),h=e("../internals/create-non-enumerable-property"),p=e("../internals/is-integral-number"),f=e("../internals/to-length"),m=e("../internals/to-index"),g=e("../internals/to-offset"),y=e("../internals/to-uint8-clamped"),b=e("../internals/to-property-key"),v=e("../internals/has-own-property"),w=e("../internals/classof"),x=e("../internals/is-object"),_=e("../internals/is-symbol"),j=e("../internals/object-create"),C=e("../internals/object-is-prototype-of"),k=e("../internals/object-set-prototype-of"),S=e("../internals/object-get-own-property-names").f,T=e("../internals/typed-array-from"),E=e("../internals/array-iteration").forEach,O=e("../internals/set-species"),D=e("../internals/define-built-in-accessor"),A=e("../internals/object-define-property"),N=e("../internals/object-get-own-property-descriptor"),I=e("../internals/array-from-constructor-and-list"),R=e("../internals/internal-state"),P=e("../internals/inherit-if-required"),F=R.get,M=R.set,L=R.enforce,B=A.f,z=N.f,U=n.RangeError,q=c.ArrayBuffer,V=q.prototype,W=c.DataView,H=l.NATIVE_ARRAY_BUFFER_VIEWS,G=l.TYPED_ARRAY_TAG,$=l.TypedArray,X=l.TypedArrayPrototype,K=l.isTypedArray,Y="BYTES_PER_ELEMENT",J="Wrong length",Q=function(e,t){D(e,t,{configurable:!0,get:function(){return F(this)[t]}})},Z=function(e){var t;return C(V,e)||"ArrayBuffer"===(t=w(e))||"SharedArrayBuffer"===t},ee=function(e,t){return K(e)&&!_(t)&&t in e&&p(+t)&&t>=0},te=function(e,t){return t=b(t),ee(e,t)?d(2,e[t]):z(e,t)},ie=function(e,t,i){return t=b(t),!(ee(e,t)&&x(i)&&v(i,"value"))||v(i,"get")||v(i,"set")||i.configurable||v(i,"writable")&&!i.writable||v(i,"enumerable")&&!i.enumerable?B(e,t,i):(e[t]=i.value,e)};o?(H||(N.f=te,A.f=ie,Q(X,"buffer"),Q(X,"byteOffset"),Q(X,"byteLength"),Q(X,"length")),r({target:"Object",stat:!0,forced:!H},{getOwnPropertyDescriptor:te,defineProperty:ie}),t.exports=function(e,t,i){var o=e.match(/\d+/)[0]/8,l=e+(i?"Clamped":"")+"Array",c="get"+e,d="set"+e,p=n[l],b=p,v=b&&b.prototype,w={},_=function(e,t){var i=F(e);return i.view[c](t*o+i.byteOffset,!0)},C=function(e,t,r){var n=F(e);n.view[d](t*o+n.byteOffset,i?y(r):r,!0)},D=function(e,t){B(e,t,{get:function(){return _(this,t)},set:function(e){return C(this,t,e)},enumerable:!0})};H?a&&(b=t((function(e,t,i,r){return u(e,v),P(function(){return x(t)?Z(t)?void 0!==r?new p(t,g(i,o),r):void 0!==i?new p(t,g(i,o)):new p(t):K(t)?I(b,t):s(T,b,t):new p(m(t))}(),e,b)})),k&&k(b,$),E(S(p),(function(e){e in b||h(b,e,p[e])})),b.prototype=v):(b=t((function(e,t,i,r){u(e,v);var n,a,l,c=0,d=0;if(x(t)){if(!Z(t))return K(t)?I(b,t):s(T,b,t);n=t,d=g(i,o);var h=t.byteLength;if(void 0===r){if(h%o)throw new U(J);if(a=h-d,a<0)throw new U(J)}else if(a=f(r)*o,a+d>h)throw new U(J);l=a/o}else l=m(t),a=l*o,n=new q(a);M(e,{buffer:n,byteOffset:d,byteLength:a,length:l,view:new W(n)});while(c1?arguments[1]:void 0,C=void 0!==j,k=c(x);if(k&&!u(k)){b=l(x,k),v=b.next,x=[];while(!(y=n(v,b)).done)x.push(y.value)}for(C&&_>2&&(j=r(j,arguments[2])),i=a(x),f=new(h(w))(i),m=d(f),t=0;i>t;t++)g=C?j(x[t],t):x[t],f[t]=m?p(g):+g;return f}},{"../internals/a-constructor":109,"../internals/array-buffer-view-core":117,"../internals/function-bind-context":175,"../internals/function-call":177,"../internals/get-iterator":184,"../internals/get-iterator-method":183,"../internals/is-array-iterator-method":200,"../internals/is-big-int-array":202,"../internals/length-of-array-like":219,"../internals/to-big-int":280,"../internals/to-object":285}],298:[function(e,t,i){"use strict";var r=e("../internals/array-buffer-view-core"),n=e("../internals/species-constructor"),s=r.aTypedArrayConstructor,o=r.getTypedArrayConstructor;t.exports=function(e){return s(n(e,o(e)))}},{"../internals/array-buffer-view-core":117,"../internals/species-constructor":270}],299:[function(e,t,i){"use strict";var r=e("../internals/function-uncurry-this"),n=0,s=Math.random(),o=r(1..toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++n+s,36)}},{"../internals/function-uncurry-this":181}],300:[function(e,t,i){"use strict";var r=e("../internals/symbol-constructor-detection");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},{"../internals/symbol-constructor-detection":274}],301:[function(e,t,i){"use strict";var r=e("../internals/descriptors"),n=e("../internals/fails");t.exports=r&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},{"../internals/descriptors":153,"../internals/fails":171}],302:[function(e,t,i){"use strict";var r=TypeError;t.exports=function(e,t){if(e=51||!n((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),y=function(e){if(!o(e))return!1;var t=e[m];return void 0!==t?!!t:s(e)},b=!g||!h("concat");r({target:"Array",proto:!0,arity:1,forced:b},{concat:function(e){var t,i,r,n,s,o=a(this),h=d(o,0),p=0;for(t=-1,r=arguments.length;t1?arguments[1]:void 0)}})},{"../internals/array-iteration":125,"../internals/array-method-has-species-support":127,"../internals/export":170}],313:[function(e,t,i){"use strict";var r=e("../internals/export"),n=e("../internals/array-iteration").find,s=e("../internals/add-to-unscopables"),o="find",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{find:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}}),s(o)},{"../internals/add-to-unscopables":111,"../internals/array-iteration":125,"../internals/export":170}],314:[function(e,t,i){"use strict";var r=e("../internals/export"),n=e("../internals/array-from"),s=e("../internals/check-correctness-of-iteration"),o=!s((function(e){Array.from(e)}));r({target:"Array",stat:!0,forced:o},{from:n})},{"../internals/array-from":123,"../internals/check-correctness-of-iteration":136,"../internals/export":170}],315:[function(e,t,i){"use strict";var r=e("../internals/export"),n=e("../internals/array-includes").includes,s=e("../internals/fails"),o=e("../internals/add-to-unscopables"),a=s((function(){return!Array(1).includes()}));r({target:"Array",proto:!0,forced:a},{includes:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},{"../internals/add-to-unscopables":111,"../internals/array-includes":124,"../internals/export":170,"../internals/fails":171}],316:[function(e,t,i){"use strict";var r=e("../internals/to-indexed-object"),n=e("../internals/add-to-unscopables"),s=e("../internals/iterators"),o=e("../internals/internal-state"),a=e("../internals/object-define-property").f,l=e("../internals/iterator-define"),c=e("../internals/create-iter-result-object"),u=e("../internals/is-pure"),d=e("../internals/descriptors"),h="Array Iterator",p=o.set,f=o.getterFor(h);t.exports=l(Array,"Array",(function(e,t){p(this,{type:h,target:r(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,i=e.index++;if(!t||i>=t.length)return e.target=void 0,c(void 0,!0);switch(e.kind){case"keys":return c(i,!1);case"values":return c(t[i],!1)}return c([i,t[i]],!1)}),"values");var m=s.Arguments=s.Array;if(n("keys"),n("values"),n("entries"),!u&&d&&"values"!==m.name)try{a(m,"name",{value:"values"})}catch(g){}},{"../internals/add-to-unscopables":111,"../internals/create-iter-result-object":144,"../internals/descriptors":153,"../internals/internal-state":199,"../internals/is-pure":210,"../internals/iterator-define":216,"../internals/iterators":218,"../internals/object-define-property":231,"../internals/to-indexed-object":282}],317:[function(e,t,i){"use strict";var r=e("../internals/export"),n=e("../internals/function-uncurry-this"),s=e("../internals/indexed-object"),o=e("../internals/to-indexed-object"),a=e("../internals/array-method-is-strict"),l=n([].join),c=s!==Object,u=c||!a("join",",");r({target:"Array",proto:!0,forced:u},{join:function(e){return l(o(this),void 0===e?",":e)}})},{"../internals/array-method-is-strict":128,"../internals/export":170,"../internals/function-uncurry-this":181,"../internals/indexed-object":195,"../internals/to-indexed-object":282}],318:[function(e,t,i){"use strict";var r=e("../internals/export"),n=e("../internals/array-iteration").map,s=e("../internals/array-method-has-species-support"),o=s("map");r({target:"Array",proto:!0,forced:!o},{map:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":125,"../internals/array-method-has-species-support":127,"../internals/export":170}],319:[function(e,t,i){"use strict";var r=e("../internals/export"),n=e("../internals/is-array"),s=e("../internals/is-constructor"),o=e("../internals/is-object"),a=e("../internals/to-absolute-index"),l=e("../internals/length-of-array-like"),c=e("../internals/to-indexed-object"),u=e("../internals/create-property"),d=e("../internals/well-known-symbol"),h=e("../internals/array-method-has-species-support"),p=e("../internals/array-slice"),f=h("slice"),m=d("species"),g=Array,y=Math.max;r({target:"Array",proto:!0,forced:!f},{slice:function(e,t){var i,r,d,h=c(this),f=l(h),b=a(e,f),v=a(void 0===t?f:t,f);if(n(h)&&(i=h.constructor,s(i)&&(i===g||n(i.prototype))?i=void 0:o(i)&&(i=i[m],null===i&&(i=void 0)),i===g||void 0===i))return p(h,b,v);for(r=new(void 0===i?g:i)(y(v-b,0)),d=0;b3)){if(f)return!0;if(g)return g<603;var e,t,i,r,n="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:i=3;break;case 68:case 71:i=4;break;default:i=2}for(r=0;r<47;r++)y.push({k:t+r,v:i})}for(y.sort((function(e,t){return t.v-e.v})),r=0;rc(i)?1:-1}};r({target:"Array",proto:!0,forced:C},{sort:function(e){void 0!==e&&s(e);var t=o(this);if(j)return void 0===e?b(t):b(t,e);var i,r,n=[],c=a(t);for(r=0;rw-r+i;f--)h(v,f-1)}else if(i>r)for(f=w-r;f>x;f--)y=f+r-1,b=f+i-1,y in v?v[b]=v[y]:h(v,b);for(f=0;f2)if(c=w(c),t=T(c,0),43===t||45===t){if(i=T(c,2),88===i||120===i)return NaN}else if(48===t){switch(T(c,1)){case 66:case 98:r=2,n=49;break;case 79:case 111:r=8,n=55;break;default:return+c}for(s=S(c,2),o=s.length,a=0;an)return NaN;return parseInt(s,r)}return+c},D=c(x,!_(" 0o1")||!_("0b1")||_("+0x1")),A=function(e){return h(C,e)&&m((function(){v(e)}))},N=function(e){var t=arguments.length<1?0:_(E(e));return A(this)?d(Object(t),this,N):t};N.prototype=C,D&&!n&&(C.constructor=N),r({global:!0,constructor:!0,wrap:!0,forced:D},{Number:N});var I=function(e,t){for(var i,r=s?g(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),n=0;r.length>n;n++)u(t,i=r[n])&&!u(e,i)&&b(e,i,y(t,i))};n&&j&&I(a[x],j),(D||n)&&I(a[x],_)},{"../internals/descriptors":153,"../internals/export":170,"../internals/fails":171,"../internals/function-uncurry-this":181,"../internals/global":188,"../internals/has-own-property":189,"../internals/inherit-if-required":196,"../internals/is-forced":205,"../internals/is-pure":210,"../internals/is-symbol":212,"../internals/object-define-property":231,"../internals/object-get-own-property-descriptor":232,"../internals/object-get-own-property-names":234,"../internals/object-is-prototype-of":238,"../internals/path":247,"../internals/string-trim":273,"../internals/this-number-value":278,"../internals/to-primitive":288}],325:[function(e,t,i){"use strict";var r=e("../internals/export"),n=e("../internals/object-assign");r({target:"Object",stat:!0,arity:2,forced:Object.assign!==n},{assign:n})},{"../internals/export":170,"../internals/object-assign":228}],326:[function(e,t,i){"use strict";var r=e("../internals/export"),n=e("../internals/object-to-array").entries;r({target:"Object",stat:!0},{entries:function(e){return n(e)}})},{"../internals/export":170,"../internals/object-to-array":243}],327:[function(e,t,i){"use strict";var r=e("../internals/export"),n=e("../internals/symbol-constructor-detection"),s=e("../internals/fails"),o=e("../internals/object-get-own-property-symbols"),a=e("../internals/to-object"),l=!n||s((function(){o.f(1)}));r({target:"Object",stat:!0,forced:l},{getOwnPropertySymbols:function(e){var t=o.f;return t?t(a(e)):[]}})},{"../internals/export":170,"../internals/fails":171,"../internals/object-get-own-property-symbols":235,"../internals/symbol-constructor-detection":274,"../internals/to-object":285}],328:[function(e,t,i){"use strict";var r=e("../internals/export"),n=e("../internals/to-object"),s=e("../internals/object-keys"),o=e("../internals/fails"),a=o((function(){s(1)}));r({target:"Object",stat:!0,forced:a},{keys:function(e){return s(n(e))}})},{"../internals/export":170,"../internals/fails":171,"../internals/object-keys":240,"../internals/to-object":285}],329:[function(e,t,i){"use strict";var r=e("../internals/to-string-tag-support"),n=e("../internals/define-built-in"),s=e("../internals/object-to-string");r||n(Object.prototype,"toString",s,{unsafe:!0})},{"../internals/define-built-in":149,"../internals/object-to-string":244,"../internals/to-string-tag-support":290}],330:[function(e,t,i){"use strict";var r=e("../internals/export"),n=e("../internals/function-call"),s=e("../internals/a-callable"),o=e("../internals/new-promise-capability"),a=e("../internals/perform"),l=e("../internals/iterate"),c=e("../internals/promise-statics-incorrect-iteration");r({target:"Promise",stat:!0,forced:c},{all:function(e){var t=this,i=o.f(t),r=i.resolve,c=i.reject,u=a((function(){var i=s(t.resolve),o=[],a=0,u=1;l(e,(function(e){var s=a++,l=!1;u++,n(i,t,e).then((function(e){l||(l=!0,o[s]=e,--u||r(o))}),c)})),--u||r(o)}));return u.error&&c(u.value),i.promise}})},{"../internals/a-callable":108,"../internals/export":170,"../internals/function-call":177,"../internals/iterate":213,"../internals/new-promise-capability":226,"../internals/perform":248,"../internals/promise-statics-incorrect-iteration":252}],331:[function(e,t,i){"use strict";var r=e("../internals/export"),n=e("../internals/is-pure"),s=e("../internals/promise-constructor-detection").CONSTRUCTOR,o=e("../internals/promise-native-constructor"),a=e("../internals/get-built-in"),l=e("../internals/is-callable"),c=e("../internals/define-built-in"),u=o&&o.prototype;if(r({target:"Promise",proto:!0,forced:s,real:!0},{catch:function(e){return this.then(void 0,e)}}),!n&&l(o)){var d=a("Promise").prototype["catch"];u["catch"]!==d&&c(u,"catch",d,{unsafe:!0})}},{"../internals/define-built-in":149,"../internals/export":170,"../internals/get-built-in":182,"../internals/is-callable":203,"../internals/is-pure":210,"../internals/promise-constructor-detection":249,"../internals/promise-native-constructor":250}],332:[function(e,t,i){"use strict";var r,n,s,o,a=e("../internals/export"),l=e("../internals/is-pure"),c=e("../internals/engine-is-node"),u=e("../internals/global"),d=e("../internals/function-call"),h=e("../internals/define-built-in"),p=e("../internals/object-set-prototype-of"),f=e("../internals/set-to-string-tag"),m=e("../internals/set-species"),g=e("../internals/a-callable"),y=e("../internals/is-callable"),b=e("../internals/is-object"),v=e("../internals/an-instance"),w=e("../internals/species-constructor"),x=e("../internals/task").set,_=e("../internals/microtask"),j=e("../internals/host-report-errors"),C=e("../internals/perform"),k=e("../internals/queue"),S=e("../internals/internal-state"),T=e("../internals/promise-native-constructor"),E=e("../internals/promise-constructor-detection"),O=e("../internals/new-promise-capability"),D="Promise",A=E.CONSTRUCTOR,N=E.REJECTION_EVENT,I=E.SUBCLASSING,R=S.getterFor(D),P=S.set,F=T&&T.prototype,M=T,L=F,B=u.TypeError,z=u.document,U=u.process,q=O.f,V=q,W=!!(z&&z.createEvent&&u.dispatchEvent),H="unhandledrejection",G="rejectionhandled",$=0,X=1,K=2,Y=1,J=2,Q=function(e){var t;return!(!b(e)||!y(t=e.then))&&t},Z=function(e,t){var i,r,n,s=t.value,o=t.state===X,a=o?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{a?(o||(t.rejection===J&&ne(t),t.rejection=Y),!0===a?i=s:(u&&u.enter(),i=a(s),u&&(u.exit(),n=!0)),i===e.promise?c(new B("Promise-chain cycle")):(r=Q(i))?d(r,i,l,c):l(i)):c(s)}catch(h){u&&!n&&u.exit(),c(h)}},ee=function(e,t){e.notified||(e.notified=!0,_((function(){var i,r=e.reactions;while(i=r.get())Z(i,e);e.notified=!1,t&&!e.rejection&&ie(e)})))},te=function(e,t,i){var r,n;W?(r=z.createEvent("Event"),r.promise=t,r.reason=i,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:i},!N&&(n=u["on"+e])?n(r):e===H&&j("Unhandled promise rejection",i)},ie=function(e){d(x,u,(function(){var t,i=e.facade,r=e.value,n=re(e);if(n&&(t=C((function(){c?U.emit("unhandledRejection",r,i):te(H,i,r)})),e.rejection=c||re(e)?J:Y,t.error))throw t.value}))},re=function(e){return e.rejection!==Y&&!e.parent},ne=function(e){d(x,u,(function(){var t=e.facade;c?U.emit("rejectionHandled",t):te(G,t,e.value)}))},se=function(e,t,i){return function(r){e(t,r,i)}},oe=function(e,t,i){e.done||(e.done=!0,i&&(e=i),e.value=t,e.state=K,ee(e,!0))},ae=function(e,t,i){if(!e.done){e.done=!0,i&&(e=i);try{if(e.facade===t)throw new B("Promise can't be resolved itself");var r=Q(t);r?_((function(){var i={done:!1};try{d(r,t,se(ae,i,e),se(oe,i,e))}catch(n){oe(i,n,e)}})):(e.value=t,e.state=X,ee(e,!1))}catch(n){oe({done:!1},n,e)}}};if(A&&(M=function(e){v(this,L),g(e),d(r,this);var t=R(this);try{e(se(ae,t),se(oe,t))}catch(i){oe(t,i)}},L=M.prototype,r=function(e){P(this,{type:D,done:!1,notified:!1,parent:!1,reactions:new k,rejection:!1,state:$,value:void 0})},r.prototype=h(L,"then",(function(e,t){var i=R(this),r=q(w(this,M));return i.parent=!0,r.ok=!y(e)||e,r.fail=y(t)&&t,r.domain=c?U.domain:void 0,i.state===$?i.reactions.add(r):_((function(){Z(r,i)})),r.promise})),n=function(){var e=new r,t=R(e);this.promise=e,this.resolve=se(ae,t),this.reject=se(oe,t)},O.f=q=function(e){return e===M||e===s?new n(e):V(e)},!l&&y(T)&&F!==Object.prototype)){o=F.then,I||h(F,"then",(function(e,t){var i=this;return new M((function(e,t){d(o,i,e,t)})).then(e,t)}),{unsafe:!0});try{delete F.constructor}catch(le){}p&&p(F,L)}a({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:M}),f(M,D,!1,!0),m(D)},{"../internals/a-callable":108,"../internals/an-instance":113,"../internals/define-built-in":149,"../internals/engine-is-node":164,"../internals/export":170,"../internals/function-call":177,"../internals/global":188,"../internals/host-report-errors":191,"../internals/internal-state":199,"../internals/is-callable":203,"../internals/is-object":208,"../internals/is-pure":210,"../internals/microtask":225,"../internals/new-promise-capability":226,"../internals/object-set-prototype-of":242,"../internals/perform":248,"../internals/promise-constructor-detection":249,"../internals/promise-native-constructor":250,"../internals/queue":254,"../internals/set-species":265,"../internals/set-to-string-tag":266,"../internals/species-constructor":270,"../internals/task":277}],333:[function(e,t,i){"use strict";e("../modules/es.promise.constructor"),e("../modules/es.promise.all"),e("../modules/es.promise.catch"),e("../modules/es.promise.race"),e("../modules/es.promise.reject"),e("../modules/es.promise.resolve")},{"../modules/es.promise.all":330,"../modules/es.promise.catch":331,"../modules/es.promise.constructor":332,"../modules/es.promise.race":334,"../modules/es.promise.reject":335,"../modules/es.promise.resolve":336}],334:[function(e,t,i){"use strict";var r=e("../internals/export"),n=e("../internals/function-call"),s=e("../internals/a-callable"),o=e("../internals/new-promise-capability"),a=e("../internals/perform"),l=e("../internals/iterate"),c=e("../internals/promise-statics-incorrect-iteration");r({target:"Promise",stat:!0,forced:c},{race:function(e){var t=this,i=o.f(t),r=i.reject,c=a((function(){var o=s(t.resolve);l(e,(function(e){n(o,t,e).then(i.resolve,r)}))}));return c.error&&r(c.value),i.promise}})},{"../internals/a-callable":108,"../internals/export":170,"../internals/function-call":177,"../internals/iterate":213,"../internals/new-promise-capability":226,"../internals/perform":248,"../internals/promise-statics-incorrect-iteration":252}],335:[function(e,t,i){"use strict";var r=e("../internals/export"),n=e("../internals/new-promise-capability"),s=e("../internals/promise-constructor-detection").CONSTRUCTOR;r({target:"Promise",stat:!0,forced:s},{reject:function(e){var t=n.f(this),i=t.reject;return i(e),t.promise}})},{"../internals/export":170,"../internals/new-promise-capability":226,"../internals/promise-constructor-detection":249}],336:[function(e,t,i){"use strict";var r=e("../internals/export"),n=e("../internals/get-built-in"),s=e("../internals/is-pure"),o=e("../internals/promise-native-constructor"),a=e("../internals/promise-constructor-detection").CONSTRUCTOR,l=e("../internals/promise-resolve"),c=n("Promise"),u=s&&!a;r({target:"Promise",stat:!0,forced:s||a},{resolve:function(e){return l(u&&this===c?o:this,e)}})},{"../internals/export":170,"../internals/get-built-in":182,"../internals/is-pure":210,"../internals/promise-constructor-detection":249,"../internals/promise-native-constructor":250,"../internals/promise-resolve":251}],337:[function(e,t,i){"use strict";var r=e("../internals/descriptors"),n=e("../internals/global"),s=e("../internals/function-uncurry-this"),o=e("../internals/is-forced"),a=e("../internals/inherit-if-required"),l=e("../internals/create-non-enumerable-property"),c=e("../internals/object-create"),u=e("../internals/object-get-own-property-names").f,d=e("../internals/object-is-prototype-of"),h=e("../internals/is-regexp"),p=e("../internals/to-string"),f=e("../internals/regexp-get-flags"),m=e("../internals/regexp-sticky-helpers"),g=e("../internals/proxy-accessor"),y=e("../internals/define-built-in"),b=e("../internals/fails"),v=e("../internals/has-own-property"),w=e("../internals/internal-state").enforce,x=e("../internals/set-species"),_=e("../internals/well-known-symbol"),j=e("../internals/regexp-unsupported-dot-all"),C=e("../internals/regexp-unsupported-ncg"),k=_("match"),S=n.RegExp,T=S.prototype,E=n.SyntaxError,O=s(T.exec),D=s("".charAt),A=s("".replace),N=s("".indexOf),I=s("".slice),R=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,P=/a/g,F=/a/g,M=new S(P)!==P,L=m.MISSED_STICKY,B=m.UNSUPPORTED_Y,z=r&&(!M||L||j||C||b((function(){return F[k]=!1,S(P)!==P||S(F)===F||"/a/i"!==String(S(P,"i"))}))),U=function(e){for(var t,i=e.length,r=0,n="",s=!1;r<=i;r++)t=D(e,r),"\\"!==t?s||"."!==t?("["===t?s=!0:"]"===t&&(s=!1),n+=t):n+="[\\s\\S]":n+=t+D(e,++r);return n},q=function(e){for(var t,i=e.length,r=0,n="",s=[],o=c(null),a=!1,l=!1,u=0,d="";r<=i;r++){if(t=D(e,r),"\\"===t)t+=D(e,++r);else if("]"===t)a=!1;else if(!a)switch(!0){case"["===t:a=!0;break;case"("===t:O(R,I(e,r+1))&&(r+=2,l=!0),n+=t,u++;continue;case">"===t&&l:if(""===d||v(o,d))throw new E("Invalid capture group name");o[d]=!0,s[s.length]=[d,u],l=!1,d="";continue}l?d+=t:n+=t}return[n,s]};if(o("RegExp",z)){for(var V=function(e,t){var i,r,n,s,o,c,u=d(T,this),m=h(e),g=void 0===t,y=[],b=e;if(!u&&m&&g&&e.constructor===V)return e;if((m||d(T,e))&&(e=e.source,g&&(t=f(b))),e=void 0===e?"":p(e),t=void 0===t?"":p(t),b=e,j&&"dotAll"in P&&(r=!!t&&N(t,"s")>-1,r&&(t=A(t,/s/g,""))),i=t,L&&"sticky"in P&&(n=!!t&&N(t,"y")>-1,n&&B&&(t=A(t,/y/g,""))),C&&(s=q(e),e=s[0],y=s[1]),o=a(S(e,t),u?this:T,V),(r||n||y.length)&&(c=w(o),r&&(c.dotAll=!0,c.raw=V(U(e),i)),n&&(c.sticky=!0),y.length&&(c.groups=y)),e!==b)try{l(o,"source",""===b?"(?:)":b)}catch(v){}return o},W=u(S),H=0;W.length>H;)g(V,S,W[H++]);T.constructor=V,V.prototype=T,y(n,"RegExp",V,{constructor:!0})}x("RegExp")},{"../internals/create-non-enumerable-property":145,"../internals/define-built-in":149,"../internals/descriptors":153,"../internals/fails":171,"../internals/function-uncurry-this":181,"../internals/global":188,"../internals/has-own-property":189,"../internals/inherit-if-required":196,"../internals/internal-state":199,"../internals/is-forced":205,"../internals/is-regexp":211,"../internals/object-create":229,"../internals/object-get-own-property-names":234,"../internals/object-is-prototype-of":238,"../internals/proxy-accessor":253,"../internals/regexp-get-flags":258,"../internals/regexp-sticky-helpers":259,"../internals/regexp-unsupported-dot-all":260,"../internals/regexp-unsupported-ncg":261,"../internals/set-species":265,"../internals/to-string":291,"../internals/well-known-symbol":306}],338:[function(e,t,i){"use strict";var r=e("../internals/export"),n=e("../internals/regexp-exec");r({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})},{"../internals/export":170,"../internals/regexp-exec":256}],339:[function(e,t,i){"use strict";var r=e("../internals/function-name").PROPER,n=e("../internals/define-built-in"),s=e("../internals/an-object"),o=e("../internals/to-string"),a=e("../internals/fails"),l=e("../internals/regexp-get-flags"),c="toString",u=RegExp.prototype,d=u[c],h=a((function(){return"/a/b"!==d.call({source:"a",flags:"b"})})),p=r&&d.name!==c;(h||p)&&n(u,c,(function(){var e=s(this),t=o(e.source),i=o(l(e));return"/"+t+"/"+i}),{unsafe:!0})},{"../internals/an-object":114,"../internals/define-built-in":149,"../internals/fails":171,"../internals/function-name":178,"../internals/regexp-get-flags":258,"../internals/to-string":291}],340:[function(e,t,i){"use strict";var r=e("../internals/collection"),n=e("../internals/collection-strong");r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n)},{"../internals/collection":140,"../internals/collection-strong":139}],341:[function(e,t,i){"use strict";e("../modules/es.set.constructor")},{"../modules/es.set.constructor":340}],342:[function(e,t,i){"use strict";var r=e("../internals/export"),n=e("../internals/function-uncurry-this"),s=e("../internals/not-a-regexp"),o=e("../internals/require-object-coercible"),a=e("../internals/to-string"),l=e("../internals/correct-is-regexp-logic"),c=n("".indexOf);r({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~c(a(o(this)),a(s(e)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":142,"../internals/export":170,"../internals/function-uncurry-this":181,"../internals/not-a-regexp":227,"../internals/require-object-coercible":262,"../internals/to-string":291}],343:[function(e,t,i){"use strict";var r=e("../internals/string-multibyte").charAt,n=e("../internals/to-string"),s=e("../internals/internal-state"),o=e("../internals/iterator-define"),a=e("../internals/create-iter-result-object"),l="String Iterator",c=s.set,u=s.getterFor(l);o(String,"String",(function(e){c(this,{type:l,string:n(e),index:0})}),(function(){var e,t=u(this),i=t.string,n=t.index;return n>=i.length?a(void 0,!0):(e=r(i,n),t.index+=e.length,a(e,!1))}))},{"../internals/create-iter-result-object":144,"../internals/internal-state":199,"../internals/iterator-define":216,"../internals/string-multibyte":271,"../internals/to-string":291}],344:[function(e,t,i){"use strict";var r=e("../internals/function-call"),n=e("../internals/fix-regexp-well-known-symbol-logic"),s=e("../internals/an-object"),o=e("../internals/is-null-or-undefined"),a=e("../internals/to-length"),l=e("../internals/to-string"),c=e("../internals/require-object-coercible"),u=e("../internals/get-method"),d=e("../internals/advance-string-index"),h=e("../internals/regexp-exec-abstract");n("match",(function(e,t,i){return[function(t){var i=c(this),n=o(t)?void 0:u(t,e);return n?r(n,t,i):new RegExp(t)[e](l(i))},function(e){var r=s(this),n=l(e),o=i(t,r,n);if(o.done)return o.value;if(!r.global)return h(r,n);var c=r.unicode;r.lastIndex=0;var u,p=[],f=0;while(null!==(u=h(r,n))){var m=l(u[0]);p[f]=m,""===m&&(r.lastIndex=d(n,a(r.lastIndex),c)),f++}return 0===f?null:p}]}))},{"../internals/advance-string-index":112,"../internals/an-object":114,"../internals/fix-regexp-well-known-symbol-logic":172,"../internals/function-call":177,"../internals/get-method":186,"../internals/is-null-or-undefined":207,"../internals/regexp-exec-abstract":255,"../internals/require-object-coercible":262,"../internals/to-length":284,"../internals/to-string":291}],345:[function(e,t,i){"use strict";var r=e("../internals/function-apply"),n=e("../internals/function-call"),s=e("../internals/function-uncurry-this"),o=e("../internals/fix-regexp-well-known-symbol-logic"),a=e("../internals/fails"),l=e("../internals/an-object"),c=e("../internals/is-callable"),u=e("../internals/is-null-or-undefined"),d=e("../internals/to-integer-or-infinity"),h=e("../internals/to-length"),p=e("../internals/to-string"),f=e("../internals/require-object-coercible"),m=e("../internals/advance-string-index"),g=e("../internals/get-method"),y=e("../internals/get-substitution"),b=e("../internals/regexp-exec-abstract"),v=e("../internals/well-known-symbol"),w=v("replace"),x=Math.max,_=Math.min,j=s([].concat),C=s([].push),k=s("".indexOf),S=s("".slice),T=function(e){return void 0===e?e:String(e)},E=function(){return"$0"==="a".replace(/./,"$0")}(),O=function(){return!!/./[w]&&""===/./[w]("a","$0")}(),D=!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}));o("replace",(function(e,t,i){var s=O?"$":"$0";return[function(e,i){var r=f(this),s=u(e)?void 0:g(e,w);return s?n(s,e,r,i):n(t,p(r),e,i)},function(e,n){var o=l(this),a=p(e);if("string"==typeof n&&-1===k(n,s)&&-1===k(n,"$<")){var u=i(t,o,a,n);if(u.done)return u.value}var f=c(n);f||(n=p(n));var g,v=o.global;v&&(g=o.unicode,o.lastIndex=0);var w,E=[];while(1){if(w=b(o,a),null===w)break;if(C(E,w),!v)break;var O=p(w[0]);""===O&&(o.lastIndex=m(a,h(o.lastIndex),g))}for(var D="",A=0,N=0;N=A&&(D+=S(a,A,P)+I,A=P+R.length)}return D+S(a,A)}]}),!D||!E||O)},{"../internals/advance-string-index":112,"../internals/an-object":114,"../internals/fails":171,"../internals/fix-regexp-well-known-symbol-logic":172,"../internals/function-apply":174,"../internals/function-call":177,"../internals/function-uncurry-this":181,"../internals/get-method":186,"../internals/get-substitution":187,"../internals/is-callable":203,"../internals/is-null-or-undefined":207,"../internals/regexp-exec-abstract":255,"../internals/require-object-coercible":262,"../internals/to-integer-or-infinity":283,"../internals/to-length":284,"../internals/to-string":291,"../internals/well-known-symbol":306}],346:[function(e,t,i){"use strict";var r=e("../internals/function-call"),n=e("../internals/fix-regexp-well-known-symbol-logic"),s=e("../internals/an-object"),o=e("../internals/is-null-or-undefined"),a=e("../internals/require-object-coercible"),l=e("../internals/same-value"),c=e("../internals/to-string"),u=e("../internals/get-method"),d=e("../internals/regexp-exec-abstract");n("search",(function(e,t,i){return[function(t){var i=a(this),n=o(t)?void 0:u(t,e);return n?r(n,t,i):new RegExp(t)[e](c(i))},function(e){var r=s(this),n=c(e),o=i(t,r,n);if(o.done)return o.value;var a=r.lastIndex;l(a,0)||(r.lastIndex=0);var u=d(r,n);return l(r.lastIndex,a)||(r.lastIndex=a),null===u?-1:u.index}]}))},{"../internals/an-object":114,"../internals/fix-regexp-well-known-symbol-logic":172,"../internals/function-call":177,"../internals/get-method":186,"../internals/is-null-or-undefined":207,"../internals/regexp-exec-abstract":255,"../internals/require-object-coercible":262,"../internals/same-value":264,"../internals/to-string":291}],347:[function(e,t,i){"use strict";var r=e("../internals/function-apply"),n=e("../internals/function-call"),s=e("../internals/function-uncurry-this"),o=e("../internals/fix-regexp-well-known-symbol-logic"),a=e("../internals/an-object"),l=e("../internals/is-null-or-undefined"),c=e("../internals/is-regexp"),u=e("../internals/require-object-coercible"),d=e("../internals/species-constructor"),h=e("../internals/advance-string-index"),p=e("../internals/to-length"),f=e("../internals/to-string"),m=e("../internals/get-method"),g=e("../internals/array-slice"),y=e("../internals/regexp-exec-abstract"),b=e("../internals/regexp-exec"),v=e("../internals/regexp-sticky-helpers"),w=e("../internals/fails"),x=v.UNSUPPORTED_Y,_=4294967295,j=Math.min,C=[].push,k=s(/./.exec),S=s(C),T=s("".slice),E=!w((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var i="ab".split(e);return 2!==i.length||"a"!==i[0]||"b"!==i[1]}));o("split",(function(e,t,i){var s;return s="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,i){var s=f(u(this)),o=void 0===i?_:i>>>0;if(0===o)return[];if(void 0===e)return[s];if(!c(e))return n(t,s,e,o);var a,l,d,h=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,y=new RegExp(e.source,p+"g");while(a=n(b,y,s)){if(l=y.lastIndex,l>m&&(S(h,T(s,m,a.index)),a.length>1&&a.index=o))break;y.lastIndex===a.index&&y.lastIndex++}return m===s.length?!d&&k(y,"")||S(h,""):S(h,T(s,m)),h.length>o?g(h,0,o):h}:"0".split(void 0,0).length?function(e,i){return void 0===e&&0===i?[]:n(t,this,e,i)}:t,[function(t,i){var r=u(this),o=l(t)?void 0:m(t,e);return o?n(o,t,r,i):n(s,f(r),t,i)},function(e,r){var n=a(this),o=f(e),l=i(s,n,o,r,s!==t);if(l.done)return l.value;var c=d(n,RegExp),u=n.unicode,m=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(x?"g":"y"),g=new c(x?"^(?:"+n.source+")":n,m),b=void 0===r?_:r>>>0;if(0===b)return[];if(0===o.length)return null===y(g,o)?[o]:[];var v=0,w=0,C=[];while(w1?arguments[1]:void 0,t.length)),r=a(e);return h(t,i,i+r.length)===r}})},{"../internals/correct-is-regexp-logic":142,"../internals/export":170,"../internals/function-uncurry-this-clause":180,"../internals/is-pure":210,"../internals/not-a-regexp":227,"../internals/object-get-own-property-descriptor":232,"../internals/require-object-coercible":262,"../internals/to-length":284,"../internals/to-string":291}],349:[function(e,t,i){"use strict";var r=e("../internals/export"),n=e("../internals/string-trim").trim,s=e("../internals/string-trim-forced");r({target:"String",proto:!0,forced:s("trim")},{trim:function(){return n(this)}})},{"../internals/export":170,"../internals/string-trim":273,"../internals/string-trim-forced":272}],350:[function(e,t,i){"use strict";var r=e("../internals/export"),n=e("../internals/global"),s=e("../internals/function-call"),o=e("../internals/function-uncurry-this"),a=e("../internals/is-pure"),l=e("../internals/descriptors"),c=e("../internals/symbol-constructor-detection"),u=e("../internals/fails"),d=e("../internals/has-own-property"),h=e("../internals/object-is-prototype-of"),p=e("../internals/an-object"),f=e("../internals/to-indexed-object"),m=e("../internals/to-property-key"),g=e("../internals/to-string"),y=e("../internals/create-property-descriptor"),b=e("../internals/object-create"),v=e("../internals/object-keys"),w=e("../internals/object-get-own-property-names"),x=e("../internals/object-get-own-property-names-external"),_=e("../internals/object-get-own-property-symbols"),j=e("../internals/object-get-own-property-descriptor"),C=e("../internals/object-define-property"),k=e("../internals/object-define-properties"),S=e("../internals/object-property-is-enumerable"),T=e("../internals/define-built-in"),E=e("../internals/define-built-in-accessor"),O=e("../internals/shared"),D=e("../internals/shared-key"),A=e("../internals/hidden-keys"),N=e("../internals/uid"),I=e("../internals/well-known-symbol"),R=e("../internals/well-known-symbol-wrapped"),P=e("../internals/well-known-symbol-define"),F=e("../internals/symbol-define-to-primitive"),M=e("../internals/set-to-string-tag"),L=e("../internals/internal-state"),B=e("../internals/array-iteration").forEach,z=D("hidden"),U="Symbol",q="prototype",V=L.set,W=L.getterFor(U),H=Object[q],G=n.Symbol,$=G&&G[q],X=n.RangeError,K=n.TypeError,Y=n.QObject,J=j.f,Q=C.f,Z=x.f,ee=S.f,te=o([].push),ie=O("symbols"),re=O("op-symbols"),ne=O("wks"),se=!Y||!Y[q]||!Y[q].findChild,oe=function(e,t,i){var r=J(H,t);r&&delete H[t],Q(e,t,i),r&&e!==H&&Q(H,t,r)},ae=l&&u((function(){return 7!==b(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a}))?oe:Q,le=function(e,t){var i=ie[e]=b($);return V(i,{type:U,tag:e,description:t}),l||(i.description=t),i},ce=function(e,t,i){e===H&&ce(re,t,i),p(e);var r=m(t);return p(i),d(ie,r)?(i.enumerable?(d(e,z)&&e[z][r]&&(e[z][r]=!1),i=b(i,{enumerable:y(0,!1)})):(d(e,z)||Q(e,z,y(1,b(null))),e[z][r]=!0),ae(e,r,i)):Q(e,r,i)},ue=function(e,t){p(e);var i=f(t),r=v(i).concat(me(i));return B(r,(function(t){l&&!s(he,i,t)||ce(e,t,i[t])})),e},de=function(e,t){return void 0===t?b(e):ue(b(e),t)},he=function(e){var t=m(e),i=s(ee,this,t);return!(this===H&&d(ie,t)&&!d(re,t))&&(!(i||!d(this,t)||!d(ie,t)||d(this,z)&&this[z][t])||i)},pe=function(e,t){var i=f(e),r=m(t);if(i!==H||!d(ie,r)||d(re,r)){var n=J(i,r);return!n||!d(ie,r)||d(i,z)&&i[z][r]||(n.enumerable=!0),n}},fe=function(e){var t=Z(f(e)),i=[];return B(t,(function(e){d(ie,e)||d(A,e)||te(i,e)})),i},me=function(e){var t=e===H,i=Z(t?re:f(e)),r=[];return B(i,(function(e){!d(ie,e)||t&&!d(H,e)||te(r,ie[e])})),r};c||(G=function(){if(h($,this))throw new K("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=N(e),i=function(e){var r=void 0===this?n:this;r===H&&s(i,re,e),d(r,z)&&d(r[z],t)&&(r[z][t]=!1);var o=y(1,e);try{ae(r,t,o)}catch(a){if(!(a instanceof X))throw a;oe(r,t,o)}};return l&&se&&ae(H,t,{configurable:!0,set:i}),le(t,e)},$=G[q],T($,"toString",(function(){return W(this).tag})),T(G,"withoutSetter",(function(e){return le(N(e),e)})),S.f=he,C.f=ce,k.f=ue,j.f=pe,w.f=x.f=fe,_.f=me,R.f=function(e){return le(I(e),e)},l&&(E($,"description",{configurable:!0,get:function(){return W(this).description}}),a||T(H,"propertyIsEnumerable",he,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:G}),B(v(ne),(function(e){P(e)})),r({target:U,stat:!0,forced:!c},{useSetter:function(){se=!0},useSimple:function(){se=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!l},{create:de,defineProperty:ce,defineProperties:ue,getOwnPropertyDescriptor:pe}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:fe}),F(),M(G,U),A[z]=!0},{"../internals/an-object":114,"../internals/array-iteration":125,"../internals/create-property-descriptor":146,"../internals/define-built-in":149,"../internals/define-built-in-accessor":148,"../internals/descriptors":153,"../internals/export":170,"../internals/fails":171,"../internals/function-call":177,"../internals/function-uncurry-this":181,"../internals/global":188,"../internals/has-own-property":189,"../internals/hidden-keys":190,"../internals/internal-state":199,"../internals/is-pure":210,"../internals/object-create":229,"../internals/object-define-properties":230,"../internals/object-define-property":231,"../internals/object-get-own-property-descriptor":232,"../internals/object-get-own-property-names":234,"../internals/object-get-own-property-names-external":233,"../internals/object-get-own-property-symbols":235,"../internals/object-is-prototype-of":238,"../internals/object-keys":240,"../internals/object-property-is-enumerable":241,"../internals/set-to-string-tag":266,"../internals/shared":269,"../internals/shared-key":267,"../internals/symbol-constructor-detection":274,"../internals/symbol-define-to-primitive":275,"../internals/to-indexed-object":282,"../internals/to-property-key":289,"../internals/to-string":291,"../internals/uid":299,"../internals/well-known-symbol":306,"../internals/well-known-symbol-define":304,"../internals/well-known-symbol-wrapped":305}],351:[function(e,t,i){"use strict";var r=e("../internals/export"),n=e("../internals/descriptors"),s=e("../internals/global"),o=e("../internals/function-uncurry-this"),a=e("../internals/has-own-property"),l=e("../internals/is-callable"),c=e("../internals/object-is-prototype-of"),u=e("../internals/to-string"),d=e("../internals/define-built-in-accessor"),h=e("../internals/copy-constructor-properties"),p=s.Symbol,f=p&&p.prototype;if(n&&l(p)&&(!("description"in f)||void 0!==p().description)){var m={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),t=c(f,this)?new p(e):void 0===e?p():p(e);return""===e&&(m[t]=!0),t};h(g,p),g.prototype=f,f.constructor=g;var y="Symbol(description detection)"===String(p("description detection")),b=o(f.valueOf),v=o(f.toString),w=/^Symbol\((.*)\)[^)]+$/,x=o("".replace),_=o("".slice);d(f,"description",{configurable:!0,get:function(){var e=b(this);if(a(m,e))return"";var t=v(e),i=y?_(t,7,-1):x(t,w,"$1");return""===i?void 0:i}}),r({global:!0,constructor:!0,forced:!0},{Symbol:g})}},{"../internals/copy-constructor-properties":141,"../internals/define-built-in-accessor":148,"../internals/descriptors":153,"../internals/export":170,"../internals/function-uncurry-this":181,"../internals/global":188,"../internals/has-own-property":189,"../internals/is-callable":203,"../internals/object-is-prototype-of":238,"../internals/to-string":291}],352:[function(e,t,i){"use strict";var r=e("../internals/export"),n=e("../internals/get-built-in"),s=e("../internals/has-own-property"),o=e("../internals/to-string"),a=e("../internals/shared"),l=e("../internals/symbol-registry-detection"),c=a("string-to-symbol-registry"),u=a("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=o(e);if(s(c,t))return c[t];var i=n("Symbol")(t);return c[t]=i,u[i]=t,i}})},{"../internals/export":170,"../internals/get-built-in":182,"../internals/has-own-property":189,"../internals/shared":269,"../internals/symbol-registry-detection":276,"../internals/to-string":291}],353:[function(e,t,i){"use strict";var r=e("../internals/well-known-symbol-define");r("iterator")},{"../internals/well-known-symbol-define":304}],354:[function(e,t,i){"use strict";e("../modules/es.symbol.constructor"),e("../modules/es.symbol.for"),e("../modules/es.symbol.key-for"),e("../modules/es.json.stringify"),e("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":323,"../modules/es.object.get-own-property-symbols":327,"../modules/es.symbol.constructor":350,"../modules/es.symbol.for":352,"../modules/es.symbol.key-for":355}],355:[function(e,t,i){"use strict";var r=e("../internals/export"),n=e("../internals/has-own-property"),s=e("../internals/is-symbol"),o=e("../internals/try-to-string"),a=e("../internals/shared"),l=e("../internals/symbol-registry-detection"),c=a("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!s(e))throw new TypeError(o(e)+" is not a symbol");if(n(c,e))return c[e]}})},{"../internals/export":170,"../internals/has-own-property":189,"../internals/is-symbol":212,"../internals/shared":269,"../internals/symbol-registry-detection":276,"../internals/try-to-string":293}],356:[function(e,t,i){"use strict";var r=e("../internals/function-uncurry-this"),n=e("../internals/array-buffer-view-core"),s=e("../internals/array-copy-within"),o=r(s),a=n.aTypedArray,l=n.exportTypedArrayMethod;l("copyWithin",(function(e,t){return o(a(this),e,t,arguments.length>2?arguments[2]:void 0)}))},{"../internals/array-buffer-view-core":117,"../internals/array-copy-within":119,"../internals/function-uncurry-this":181}],357:[function(e,t,i){"use strict";var r=e("../internals/array-buffer-view-core"),n=e("../internals/array-iteration").every,s=r.aTypedArray,o=r.exportTypedArrayMethod;o("every",(function(e){return n(s(this),e,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":117,"../internals/array-iteration":125}],358:[function(e,t,i){"use strict";var r=e("../internals/array-buffer-view-core"),n=e("../internals/array-fill"),s=e("../internals/to-big-int"),o=e("../internals/classof"),a=e("../internals/function-call"),l=e("../internals/function-uncurry-this"),c=e("../internals/fails"),u=r.aTypedArray,d=r.exportTypedArrayMethod,h=l("".slice),p=c((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e}));d("fill",(function(e){var t=arguments.length;u(this);var i="Big"===h(o(this),0,3)?s(e):+e;return a(n,this,i,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),p)},{"../internals/array-buffer-view-core":117,"../internals/array-fill":120,"../internals/classof":138,"../internals/fails":171,"../internals/function-call":177,"../internals/function-uncurry-this":181,"../internals/to-big-int":280}],359:[function(e,t,i){"use strict";var r=e("../internals/array-buffer-view-core"),n=e("../internals/array-iteration").filter,s=e("../internals/typed-array-from-species-and-list"),o=r.aTypedArray,a=r.exportTypedArrayMethod;a("filter",(function(e){var t=n(o(this),e,arguments.length>1?arguments[1]:void 0);return s(this,t)}))},{"../internals/array-buffer-view-core":117,"../internals/array-iteration":125,"../internals/typed-array-from-species-and-list":296}],360:[function(e,t,i){"use strict";var r=e("../internals/array-buffer-view-core"),n=e("../internals/array-iteration").findIndex,s=r.aTypedArray,o=r.exportTypedArrayMethod;o("findIndex",(function(e){return n(s(this),e,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":117,"../internals/array-iteration":125}],361:[function(e,t,i){"use strict";var r=e("../internals/array-buffer-view-core"),n=e("../internals/array-iteration").find,s=r.aTypedArray,o=r.exportTypedArrayMethod;o("find",(function(e){return n(s(this),e,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":117,"../internals/array-iteration":125}],362:[function(e,t,i){"use strict";var r=e("../internals/array-buffer-view-core"),n=e("../internals/array-iteration").forEach,s=r.aTypedArray,o=r.exportTypedArrayMethod;o("forEach",(function(e){n(s(this),e,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":117,"../internals/array-iteration":125}],363:[function(e,t,i){"use strict";var r=e("../internals/array-buffer-view-core"),n=e("../internals/array-includes").includes,s=r.aTypedArray,o=r.exportTypedArrayMethod;o("includes",(function(e){return n(s(this),e,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":117,"../internals/array-includes":124}],364:[function(e,t,i){"use strict";var r=e("../internals/array-buffer-view-core"),n=e("../internals/array-includes").indexOf,s=r.aTypedArray,o=r.exportTypedArrayMethod;o("indexOf",(function(e){return n(s(this),e,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":117,"../internals/array-includes":124}],365:[function(e,t,i){"use strict";var r=e("../internals/global"),n=e("../internals/fails"),s=e("../internals/function-uncurry-this"),o=e("../internals/array-buffer-view-core"),a=e("../modules/es.array.iterator"),l=e("../internals/well-known-symbol"),c=l("iterator"),u=r.Uint8Array,d=s(a.values),h=s(a.keys),p=s(a.entries),f=o.aTypedArray,m=o.exportTypedArrayMethod,g=u&&u.prototype,y=!n((function(){g[c].call([1])})),b=!!g&&g.values&&g[c]===g.values&&"values"===g.values.name,v=function(){return d(f(this))};m("entries",(function(){return p(f(this))}),y),m("keys",(function(){return h(f(this))}),y),m("values",v,y||!b,{name:"values"}),m(c,v,y||!b,{name:"values"})},{"../internals/array-buffer-view-core":117,"../internals/fails":171,"../internals/function-uncurry-this":181,"../internals/global":188,"../internals/well-known-symbol":306,"../modules/es.array.iterator":316}],366:[function(e,t,i){"use strict";var r=e("../internals/array-buffer-view-core"),n=e("../internals/function-uncurry-this"),s=r.aTypedArray,o=r.exportTypedArrayMethod,a=n([].join);o("join",(function(e){return a(s(this),e)}))},{"../internals/array-buffer-view-core":117,"../internals/function-uncurry-this":181}],367:[function(e,t,i){"use strict";var r=e("../internals/array-buffer-view-core"),n=e("../internals/function-apply"),s=e("../internals/array-last-index-of"),o=r.aTypedArray,a=r.exportTypedArrayMethod;a("lastIndexOf",(function(e){var t=arguments.length;return n(s,o(this),t>1?[e,arguments[1]]:[e])}))},{"../internals/array-buffer-view-core":117,"../internals/array-last-index-of":126,"../internals/function-apply":174}],368:[function(e,t,i){"use strict";var r=e("../internals/array-buffer-view-core"),n=e("../internals/array-iteration").map,s=e("../internals/typed-array-species-constructor"),o=r.aTypedArray,a=r.exportTypedArrayMethod;a("map",(function(e){return n(o(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(s(e))(t)}))}))},{"../internals/array-buffer-view-core":117,"../internals/array-iteration":125,"../internals/typed-array-species-constructor":298}],369:[function(e,t,i){"use strict";var r=e("../internals/array-buffer-view-core"),n=e("../internals/array-reduce").right,s=r.aTypedArray,o=r.exportTypedArrayMethod;o("reduceRight",(function(e){var t=arguments.length;return n(s(this),e,t,t>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":117,"../internals/array-reduce":129}],370:[function(e,t,i){"use strict";var r=e("../internals/array-buffer-view-core"),n=e("../internals/array-reduce").left,s=r.aTypedArray,o=r.exportTypedArrayMethod;o("reduce",(function(e){var t=arguments.length;return n(s(this),e,t,t>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":117,"../internals/array-reduce":129}],371:[function(e,t,i){"use strict";var r=e("../internals/array-buffer-view-core"),n=r.aTypedArray,s=r.exportTypedArrayMethod,o=Math.floor;s("reverse",(function(){var e,t=this,i=n(t).length,r=o(i/2),s=0;while(s1?arguments[1]:void 0,1),i=l(e);if(g)return n(p,this,i,t);var r=this.length,s=o(i),c=0;if(s+t>r)throw new u("Wrong length");while(cs)c[s]=i[s++];return c}),c)},{"../internals/array-buffer-view-core":117,"../internals/array-slice":131,"../internals/fails":171,"../internals/typed-array-species-constructor":298}],374:[function(e,t,i){"use strict";var r=e("../internals/array-buffer-view-core"),n=e("../internals/array-iteration").some,s=r.aTypedArray,o=r.exportTypedArrayMethod;o("some",(function(e){return n(s(this),e,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":117,"../internals/array-iteration":125}],375:[function(e,t,i){"use strict";var r=e("../internals/global"),n=e("../internals/function-uncurry-this-clause"),s=e("../internals/fails"),o=e("../internals/a-callable"),a=e("../internals/array-sort"),l=e("../internals/array-buffer-view-core"),c=e("../internals/engine-ff-version"),u=e("../internals/engine-is-ie-or-edge"),d=e("../internals/engine-v8-version"),h=e("../internals/engine-webkit-version"),p=l.aTypedArray,f=l.exportTypedArrayMethod,m=r.Uint16Array,g=m&&n(m.prototype.sort),y=!!g&&!(s((function(){g(new m(2),null)}))&&s((function(){g(new m(2),{})}))),b=!!g&&!s((function(){if(d)return d<74;if(c)return c<67;if(u)return!0;if(h)return h<602;var e,t,i=new m(516),r=Array(516);for(e=0;e<516;e++)t=e%4,i[e]=515-e,r[e]=e-2*t+3;for(g(i,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(i[e]!==r[e])return!0})),v=function(e){return function(t,i){return void 0!==e?+e(t,i)||0:i!==i?-1:t!==t?1:0===t&&0===i?1/t>0&&1/i<0?1:-1:t>i}};f("sort",(function(e){return void 0!==e&&o(e),b?g(this,e):a(p(this),v(e))}),!b||y)},{"../internals/a-callable":108,"../internals/array-buffer-view-core":117,"../internals/array-sort":132,"../internals/engine-ff-version":158,"../internals/engine-is-ie-or-edge":161,"../internals/engine-v8-version":167,"../internals/engine-webkit-version":168,"../internals/fails":171,"../internals/function-uncurry-this-clause":180,"../internals/global":188}],376:[function(e,t,i){"use strict";var r=e("../internals/array-buffer-view-core"),n=e("../internals/to-length"),s=e("../internals/to-absolute-index"),o=e("../internals/typed-array-species-constructor"),a=r.aTypedArray,l=r.exportTypedArrayMethod;l("subarray",(function(e,t){var i=a(this),r=i.length,l=s(e,r),c=o(i);return new c(i.buffer,i.byteOffset+l*i.BYTES_PER_ELEMENT,n((void 0===t?r:s(t,r))-l))}))},{"../internals/array-buffer-view-core":117,"../internals/to-absolute-index":279,"../internals/to-length":284,"../internals/typed-array-species-constructor":298}],377:[function(e,t,i){"use strict";var r=e("../internals/global"),n=e("../internals/function-apply"),s=e("../internals/array-buffer-view-core"),o=e("../internals/fails"),a=e("../internals/array-slice"),l=r.Int8Array,c=s.aTypedArray,u=s.exportTypedArrayMethod,d=[].toLocaleString,h=!!l&&o((function(){d.call(new l(1))})),p=o((function(){return[1,2].toLocaleString()!==new l([1,2]).toLocaleString()}))||!o((function(){l.prototype.toLocaleString.call([1,2])}));u("toLocaleString",(function(){return n(d,h?a(c(this)):c(this),a(arguments))}),p)},{"../internals/array-buffer-view-core":117,"../internals/array-slice":131,"../internals/fails":171,"../internals/function-apply":174,"../internals/global":188}],378:[function(e,t,i){"use strict";var r=e("../internals/array-buffer-view-core").exportTypedArrayMethod,n=e("../internals/fails"),s=e("../internals/global"),o=e("../internals/function-uncurry-this"),a=s.Uint8Array,l=a&&a.prototype||{},c=[].toString,u=o([].join);n((function(){c.call({})}))&&(c=function(){return u(this)});var d=l.toString!==c;r("toString",c,d)},{"../internals/array-buffer-view-core":117,"../internals/fails":171,"../internals/function-uncurry-this":181,"../internals/global":188}],379:[function(e,t,i){"use strict";var r=e("../internals/typed-array-constructor");r("Uint8",(function(e){return function(t,i,r){return e(this,t,i,r)}}))},{"../internals/typed-array-constructor":294}],380:[function(e,t,i){"use strict";var r=e("../internals/global"),n=e("../internals/dom-iterables"),s=e("../internals/dom-token-list-prototype"),o=e("../internals/array-for-each"),a=e("../internals/create-non-enumerable-property"),l=function(e){if(e&&e.forEach!==o)try{a(e,"forEach",o)}catch(t){e.forEach=o}};for(var c in n)n[c]&&l(r[c]&&r[c].prototype);l(s)},{"../internals/array-for-each":121,"../internals/create-non-enumerable-property":145,"../internals/dom-iterables":156,"../internals/dom-token-list-prototype":157,"../internals/global":188}],381:[function(e,t,i){"use strict";var r=e("../internals/global"),n=e("../internals/dom-iterables"),s=e("../internals/dom-token-list-prototype"),o=e("../modules/es.array.iterator"),a=e("../internals/create-non-enumerable-property"),l=e("../internals/set-to-string-tag"),c=e("../internals/well-known-symbol"),u=c("iterator"),d=o.values,h=function(e,t){if(e){if(e[u]!==d)try{a(e,u,d)}catch(r){e[u]=d}if(l(e,t,!0),n[t])for(var i in o)if(e[i]!==o[i])try{a(e,i,o[i])}catch(r){e[i]=o[i]}}};for(var p in n)h(r[p]&&r[p].prototype,p);h(s,"DOMTokenList")},{"../internals/create-non-enumerable-property":145,"../internals/dom-iterables":156,"../internals/dom-token-list-prototype":157,"../internals/global":188,"../internals/set-to-string-tag":266,"../internals/well-known-symbol":306,"../modules/es.array.iterator":316}],382:[function(e,t,i){function r(e){return Array.isArray?Array.isArray(e):"[object Array]"===y(e)}function n(e){return"boolean"===typeof e}function s(e){return null===e}function o(e){return null==e}function a(e){return"number"===typeof e}function l(e){return"string"===typeof e}function c(e){return"symbol"===typeof e}function u(e){return void 0===e}function d(e){return"[object RegExp]"===y(e)}function h(e){return"object"===typeof e&&null!==e}function p(e){return"[object Date]"===y(e)}function f(e){return"[object Error]"===y(e)||e instanceof Error}function m(e){return"function"===typeof e}function g(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function y(e){return Object.prototype.toString.call(e)}i.isArray=r,i.isBoolean=n,i.isNull=s,i.isNullOrUndefined=o,i.isNumber=a,i.isString=l,i.isSymbol=c,i.isUndefined=u,i.isRegExp=d,i.isObject=h,i.isDate=p,i.isError=f,i.isFunction=m,i.isPrimitive=g,i.isBuffer=e("buffer").Buffer.isBuffer},{buffer:103}],383:[function(t,i,r){(function(t){"use strict";var n=function(){var e=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,t=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,i=/[^-+\dA-Z]/g;return function(r,c,u,d){if(1!==arguments.length||"string"!==l(r)||/\d/.test(r)||(c=r,r=void 0),r=r||new Date,r instanceof Date||(r=new Date(r)),isNaN(r))throw TypeError("Invalid date");c=String(n.masks[c]||c||n.masks["default"]);var h=c.slice(0,4);"UTC:"!==h&&"GMT:"!==h||(c=c.slice(4),u=!0,"GMT:"===h&&(d=!0));var p=u?"getUTC":"get",f=r[p+"Date"](),m=r[p+"Day"](),g=r[p+"Month"](),y=r[p+"FullYear"](),b=r[p+"Hours"](),v=r[p+"Minutes"](),w=r[p+"Seconds"](),x=r[p+"Milliseconds"](),_=u?0:r.getTimezoneOffset(),j=o(r),C=a(r),k={d:f,dd:s(f),ddd:n.i18n.dayNames[m],dddd:n.i18n.dayNames[m+7],m:g+1,mm:s(g+1),mmm:n.i18n.monthNames[g],mmmm:n.i18n.monthNames[g+12],yy:String(y).slice(2),yyyy:y,h:b%12||12,hh:s(b%12||12),H:b,HH:s(b),M:v,MM:s(v),s:w,ss:s(w),l:s(x,3),L:s(Math.round(x/10)),t:b<12?"a":"p",tt:b<12?"am":"pm",T:b<12?"A":"P",TT:b<12?"AM":"PM",Z:d?"GMT":u?"UTC":(String(r).match(t)||[""]).pop().replace(i,""),o:(_>0?"-":"+")+s(100*Math.floor(Math.abs(_)/60)+Math.abs(_)%60,4),S:["th","st","nd","rd"][f%10>3?0:(f%100-f%10!=10)*f%10],W:j,N:C};return c.replace(e,(function(e){return e in k?k[e]:e.slice(1,e.length-1)}))}}();function s(e,t){e=String(e),t=t||2;while(e.length3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new a("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,n=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!l&&l(e,t);if(s)s(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===r&&d?d.enumerable:!r,value:i,writable:null===n&&d?d.writable:!n});else{if(!u&&(r||n||c))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=i}}},{"get-intrinsic":390,gopd:391,"has-property-descriptors":392}],385:[function(e,t,i){ /*! * escape-html * Copyright(c) 2012-2013 TJ Holowaychuk * Copyright(c) 2015 Andreas Lubbe * Copyright(c) 2015 Tiancheng "Timothy" Gu * MIT Licensed */ "use strict";var r=/["'&<>]/;function n(e){var t,i=""+e,n=r.exec(i);if(!n)return i;var s="",o=0,a=0;for(o=n.index;o0&&a.length>n&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,o(l)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,i){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:i},n=p.bind(r);return n.listener=i,r.wrapFn=n,n}function m(e,t,i){var r=e._events;if(void 0===r)return[];var n=r[t];return void 0===n?[]:"function"===typeof n?i?[n.listener||n]:[n]:i?v(n):y(n,n.length)}function g(e){var t=this._events;if(void 0!==t){var i=t[e];if("function"===typeof i)return 1;if(void 0!==i)return i.length}return 0}function y(e,t){for(var i=new Array(t),r=0;r0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var l=n[e];if(void 0===l)return!1;if("function"===typeof l)s(l,this,t);else{var c=l.length,u=y(l,c);for(i=0;i=0;s--)if(i[s]===t||i[s].listener===t){o=i[s].listener,n=s;break}if(n<0)return this;0===n?i.shift():b(i,n),1===i.length&&(r[e]=i[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(e){var t,i,r;if(i=this._events,void 0===i)return this;if(void 0===i.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete i[e]),this;if(0===arguments.length){var n,s=Object.keys(i);for(r=0;r=0;r--)this.removeListener(e,t[r]);return this},l.prototype.listeners=function(e){return m(this,e,!0)},l.prototype.rawListeners=function(e){return m(this,e,!1)},l.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},l.prototype.listenerCount=g,l.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},{}],387:[function(e,t,i){"use strict";var r=e("is-callable"),n=Object.prototype.toString,s=Object.prototype.hasOwnProperty,o=function(e,t,i){for(var r=0,n=e.length;r=3&&(s=i),"[object Array]"===n.call(e)?o(e,t,s):"string"===typeof e?a(e,t,s):l(e,t,s)};t.exports=c},{"is-callable":410}],388:[function(e,t,i){"use strict";var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,s=Math.max,o="[object Function]",a=function(e,t){for(var i=[],r=0;r1&&"boolean"!==typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===S(/^%?[^%]*%?$/,e))throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=O(e),r=i.length>0?i[0]:"",s=D("%"+r+"%",t),a=s.name,c=s.value,u=!1,d=s.alias;d&&(r=d[0],j(i,_([0,1],d)));for(var h=1,p=!0;h=i.length){var b=l(c,f);p=!!b,c=p&&"get"in b&&!("originalValue"in b.get)?b.get:c[f]}else p=x(c,f),c=c[f];p&&!u&&(g[a]=c)}}return c}},{"function-bind":389,"has-proto":393,"has-symbols":394,hasown:397}],391:[function(e,t,i){"use strict";var r=e("get-intrinsic"),n=r("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(s){n=null}t.exports=n},{"get-intrinsic":390}],392:[function(e,t,i){"use strict";var r=e("get-intrinsic"),n=r("%Object.defineProperty%",!0),s=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){return!1}return!1};s.hasArrayLengthDefineBug=function(){if(!s())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},t.exports=s},{"get-intrinsic":390}],393:[function(e,t,i){"use strict";var r={foo:{}},n=Object;t.exports=function(){return{__proto__:r}.foo===r.foo&&!({__proto__:null}instanceof n)}},{}],394:[function(e,t,i){"use strict";var r="undefined"!==typeof Symbol&&Symbol,n=e("./shams");t.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&n())))}},{"./shams":395}],395:[function(e,t,i){"use strict";t.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),i=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(i))return!1;var r=42;for(t in e[t]=r,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var s=Object.getOwnPropertyDescriptor(e,t);if(s.value!==r||!0!==s.enumerable)return!1}return!0}},{}],396:[function(e,t,i){"use strict";var r=e("has-symbols/shams");t.exports=function(){return r()&&!!Symbol.toStringTag}},{"has-symbols/shams":395}],397:[function(e,t,i){"use strict";var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,s=e("function-bind");t.exports=s.call(r,n)},{"function-bind":389}],398:[function(e,t,i){var r=e("http"),n=e("url"),s=t.exports;for(var o in r)r.hasOwnProperty(o)&&(s[o]=r[o]);function a(e){if("string"===typeof e&&(e=n.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}s.request=function(e,t){return e=a(e),r.request.call(this,e,t)},s.get=function(e,t){return e=a(e),r.get.call(this,e,t)}},{http:539,url:543}],399:[function(e,t,i){ /*! * humanize-ms - index.js * Copyright(c) 2014 dead_horse * MIT Licensed */ "use strict";var r=e("util"),n=e("ms");t.exports=function(e){if("number"===typeof e)return e;var t=n(e);if(void 0===t){var i=new Error(r.format("humanize-ms(%j) result undefined",e));console.warn(i.stack)}return t}},{ms:432,util:489}],400:[function(e,t,i){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ i.read=function(e,t,i,r,n){var s,o,a=8*n-r-1,l=(1<>1,u=-7,d=i?n-1:0,h=i?-1:1,p=e[t+d];for(d+=h,s=p&(1<<-u)-1,p>>=-u,u+=a;u>0;s=256*s+e[t+d],d+=h,u-=8);for(o=s&(1<<-u)-1,s>>=-u,u+=r;u>0;o=256*o+e[t+d],d+=h,u-=8);if(0===s)s=1-c;else{if(s===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),s-=c}return(p?-1:1)*o*Math.pow(2,s-r)},i.write=function(e,t,i,r,n,s){var o,a,l,c=8*s-n-1,u=(1<>1,h=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:s-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),t+=o+d>=1?h/l:h*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=u?(a=0,o=u):o+d>=1?(a=(t*l-1)*Math.pow(2,n),o+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,n),o=0));n>=8;e[i+p]=255&a,p+=f,a/=256,n-=8);for(o=o<0;e[i+p]=255&o,p+=f,o/=256,c-=8);e[i+p-f]|=128*m}},{}],401:[function(e,t,i){"use strict";var r,n,s,o=[e("./nextTick"),e("./queueMicrotask"),e("./mutation.js"),e("./messageChannel"),e("./stateChange"),e("./timeout")],a=-1,l=[],c=!1;function u(){r&&n&&(r=!1,n.length?l=n.concat(l):a=-1,l.length&&d())}function d(){if(!r){c=!1,r=!0;var e=l.length,t=setTimeout(u);while(e){n=l,l=[];while(n&&++a1)for(var i=1;i=0&&"[object Array]"!==s(e)&&"[object Function]"===s(e.callee)},l=function(){return o(arguments)}();o.isLegacyArguments=a,t.exports=l?o:a},{"call-bind/callBound":105,"has-tostringtag/shams":396}],409:[function(e,t,i){function r(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function n(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&r(e.slice(0,0))} /*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh * @license MIT */ t.exports=function(e){return null!=e&&(r(e)||n(e)||!!e._isBuffer)}},{}],410:[function(e,t,i){"use strict";var r,n,s=Function.prototype.toString,o="object"===typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"===typeof o&&"function"===typeof Object.defineProperty)try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},o((function(){throw 42}),null,r)}catch(x){x!==n&&(o=null)}else o=null;var a=/^\s*class\b/,l=function(e){try{var t=s.call(e);return a.test(t)}catch(i){return!1}},c=function(e){try{return!l(e)&&(s.call(e),!0)}catch(t){return!1}},u=Object.prototype.toString,d="[object Object]",h="[object Function]",p="[object GeneratorFunction]",f="[object HTMLAllCollection]",m="[object HTML document.all class]",g="[object HTMLCollection]",y="function"===typeof Symbol&&!!Symbol.toStringTag,b=!(0 in[,]),v=function(){return!1};if("object"===typeof document){var w=document.all;u.call(w)===u.call(document.all)&&(v=function(e){if((b||!e)&&("undefined"===typeof e||"object"===typeof e))try{var t=u.call(e);return(t===f||t===m||t===g||t===d)&&null==e("")}catch(i){}return!1})}t.exports=o?function(e){if(v(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;try{o(e,null,r)}catch(t){if(t!==n)return!1}return!l(e)&&c(e)}:function(e){if(v(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;if(y)return c(e);if(l(e))return!1;var t=u.call(e);return!(t!==h&&t!==p&&!/^\[object HTML/.test(t))&&c(e)}},{}],411:[function(e,t,i){"use strict";var r,n=Object.prototype.toString,s=Function.prototype.toString,o=/^\s*(?:function)?\*/,a=e("has-tostringtag/shams")(),l=Object.getPrototypeOf,c=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(e){}};t.exports=function(e){if("function"!==typeof e)return!1;if(o.test(s.call(e)))return!0;if(!a){var t=n.call(e);return"[object GeneratorFunction]"===t}if(!l)return!1;if("undefined"===typeof r){var i=c();r=!!i&&l(i)}return l(e)===r}},{"has-tostringtag/shams":396}],412:[function(e,t,i){"use strict";var r=e("which-typed-array");t.exports=function(e){return!!r(e)}},{"which-typed-array":490}],413:[function(i,r,n){(function(t){(function(){(function(t,i){"object"===typeof n&&"undefined"!==typeof r?r.exports=i(t):"function"===typeof e&&e.amd?e(i):i(t)})("undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof t?t:this,(function(t){"use strict";t=t||{};var i,n=t.Base64,s="2.6.4",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=function(e){for(var t={},i=0,r=e.length;i>>6)+l(128|63&t):l(224|t>>>12&15)+l(128|t>>>6&63)+l(128|63&t)}t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return l(240|t>>>18&7)+l(128|t>>>12&63)+l(128|t>>>6&63)+l(128|63&t)},u=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,d=function(e){return e.replace(u,c)},h=function(e){var t=[0,2,1][e.length%3],i=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),r=[o.charAt(i>>>18),o.charAt(i>>>12&63),t>=2?"=":o.charAt(i>>>6&63),t>=1?"=":o.charAt(63&i)];return r.join("")},p=t.btoa&&"function"==typeof t.btoa?function(e){return t.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,h)},f=function(e){return p(d(String(e)))},m=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},g=function(e,t){return t?m(f(e)):f(e)},y=function(e){return g(e,!0)};t.Uint8Array&&(i=function(e,t){for(var i="",r=0,n=e.length;r>>18)+o.charAt(c>>>12&63)+("undefined"!=typeof a?o.charAt(c>>>6&63):"=")+("undefined"!=typeof l?o.charAt(63&c):"=")}return t?m(i):i});var b,v=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,w=function(e){switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),i=t-65536;return l(55296+(i>>>10))+l(56320+(1023&i));case 3:return l((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return l((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},x=function(e){return e.replace(v,w)},_=function(e){var t=e.length,i=t%4,r=(t>0?a[e.charAt(0)]<<18:0)|(t>1?a[e.charAt(1)]<<12:0)|(t>2?a[e.charAt(2)]<<6:0)|(t>3?a[e.charAt(3)]:0),n=[l(r>>>16),l(r>>>8&255),l(255&r)];return n.length-=[0,0,2,1][i],n.join("")},j=t.atob&&"function"==typeof t.atob?function(e){return t.atob(e)}:function(e){return e.replace(/\S{1,4}/g,_)},C=function(e){return j(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},k=function(e){return x(j(e))},S=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},T=function(e){return k(S(e))};t.Uint8Array&&(b=function(e){return Uint8Array.from(C(S(e)),(function(e){return e.charCodeAt(0)}))});var E=function(){var e=t.Base64;return t.Base64=n,e};if(t.Base64={VERSION:s,atob:C,btoa:p,fromBase64:T,toBase64:g,utob:d,encode:g,encodeURI:y,btou:x,decode:T,noConflict:E,fromUint8Array:i,toUint8Array:b},"function"===typeof Object.defineProperty){var O=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};t.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",O((function(){return T(this)}))),Object.defineProperty(String.prototype,"toBase64",O((function(e){return g(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",O((function(){return g(this,!0)})))}}return t["Meteor"]&&(Base64=t.Base64),"undefined"!==typeof r&&r.exports?r.exports.Base64=t.Base64:"function"===typeof e&&e.amd&&e([],(function(){return t.Base64})),{Base64:t.Base64}}))}).call(this)}).call(this,"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],414:[function(e,t,i){var r=e("./_root"),n=r.Symbol;t.exports=n},{"./_root":421}],415:[function(e,t,i){function r(e,t){var i=-1,r=null==e?0:e.length,n=Array(r);while(++i100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var i=parseFloat(t[1]),c=(t[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return i*l;case"weeks":case"week":case"w":return i*a;case"days":case"day":case"d":return i*o;case"hours":case"hour":case"hrs":case"hr":case"h":return i*s;case"minutes":case"minute":case"mins":case"min":case"m":return i*n;case"seconds":case"second":case"secs":case"sec":case"s":return i*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function u(e){var t=Math.abs(e);return t>=o?Math.round(e/o)+"d":t>=s?Math.round(e/s)+"h":t>=n?Math.round(e/n)+"m":t>=r?Math.round(e/r)+"s":e+"ms"}function d(e){var t=Math.abs(e);return t>=o?h(e,t,o,"day"):t>=s?h(e,t,s,"hour"):t>=n?h(e,t,n,"minute"):t>=r?h(e,t,r,"second"):e+" ms"}function h(e,t,i,r){var n=t>=1.5*i;return Math.round(e/i)+" "+r+(n?"s":"")}t.exports=function(e,t){t=t||{};var i=typeof e;if("string"===i&&e.length>0)return c(e);if("number"===i&&isFinite(e))return t.long?d(e):u(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},{}],433:[function(e,i,r){(function(t){(function(){var r="function"===typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,s=r&&n&&"function"===typeof n.get?n.get:null,o=r&&Map.prototype.forEach,a="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=a&&l&&"function"===typeof l.get?l.get:null,u=a&&Set.prototype.forEach,d="function"===typeof WeakMap&&WeakMap.prototype,h=d?WeakMap.prototype.has:null,p="function"===typeof WeakSet&&WeakSet.prototype,f=p?WeakSet.prototype.has:null,m="function"===typeof WeakRef&&WeakRef.prototype,g=m?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,b=Object.prototype.toString,v=Function.prototype.toString,w=String.prototype.match,x=String.prototype.slice,_=String.prototype.replace,j=String.prototype.toUpperCase,C=String.prototype.toLowerCase,k=RegExp.prototype.test,S=Array.prototype.concat,T=Array.prototype.join,E=Array.prototype.slice,O=Math.floor,D="function"===typeof BigInt?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,N="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,I="function"===typeof Symbol&&"object"===typeof Symbol.iterator,R="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===I||"symbol")?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,F=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function M(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||k.call(/e/,t))return t;var i=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-O(-e):O(e);if(r!==e){var n=String(r),s=x.call(t,n.length+1);return _.call(n,i,"$&_")+"."+_.call(_.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(t,i,"$&_")}var L=e("./util.inspect"),B=L.custom,z=Y(B)?B:null;function U(e,t,i){var r="double"===(i.quoteStyle||t)?'"':"'";return r+e+r}function q(e){return _.call(String(e),/"/g,""")}function V(e){return"[object Array]"===ee(e)&&(!R||!("object"===typeof e&&R in e))}function W(e){return"[object Date]"===ee(e)&&(!R||!("object"===typeof e&&R in e))}function H(e){return"[object RegExp]"===ee(e)&&(!R||!("object"===typeof e&&R in e))}function G(e){return"[object Error]"===ee(e)&&(!R||!("object"===typeof e&&R in e))}function $(e){return"[object String]"===ee(e)&&(!R||!("object"===typeof e&&R in e))}function X(e){return"[object Number]"===ee(e)&&(!R||!("object"===typeof e&&R in e))}function K(e){return"[object Boolean]"===ee(e)&&(!R||!("object"===typeof e&&R in e))}function Y(e){if(I)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!N)return!1;try{return N.call(e),!0}catch(t){}return!1}function J(e){if(!e||"object"!==typeof e||!D)return!1;try{return D.call(e),!0}catch(t){}return!1}i.exports=function e(i,r,n,a){var l=r||{};if(Z(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Z(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var d=!Z(l,"customInspect")||l.customInspect;if("boolean"!==typeof d&&"symbol"!==d)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Z(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Z(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var h=l.numericSeparator;if("undefined"===typeof i)return"undefined";if(null===i)return"null";if("boolean"===typeof i)return i?"true":"false";if("string"===typeof i)return ce(i,l);if("number"===typeof i){if(0===i)return 1/0/i>0?"0":"-0";var p=String(i);return h?M(i,p):p}if("bigint"===typeof i){var f=String(i)+"n";return h?M(i,f):f}var m="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof n&&(n=0),n>=m&&m>0&&"object"===typeof i)return V(i)?"[Array]":"[Object]";var g=me(l,n);if("undefined"===typeof a)a=[];else if(ie(a,i)>=0)return"[Circular]";function b(t,i,r){if(i&&(a=E.call(a),a.push(i)),r){var s={depth:l.depth};return Z(l,"quoteStyle")&&(s.quoteStyle=l.quoteStyle),e(t,s,n+1,a)}return e(t,l,n+1,a)}if("function"===typeof i&&!H(i)){var v=te(i),w=ye(i,b);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(w.length>0?" { "+T.call(w,", ")+" }":"")}if(Y(i)){var j=I?_.call(String(i),/^(Symbol\(.*\))_[^)]*$/,"$1"):N.call(i);return"object"!==typeof i||I?j:de(j)}if(le(i)){for(var k="<"+C.call(String(i.nodeName)),O=i.attributes||[],A=0;A",k}if(V(i)){if(0===i.length)return"[]";var B=ye(i,b);return g&&!fe(B)?"["+ge(B,g)+"]":"[ "+T.call(B,", ")+" ]"}if(G(i)){var Q=ye(i,b);return"cause"in Error.prototype||!("cause"in i)||P.call(i,"cause")?0===Q.length?"["+String(i)+"]":"{ ["+String(i)+"] "+T.call(Q,", ")+" }":"{ ["+String(i)+"] "+T.call(S.call("[cause]: "+b(i.cause),Q),", ")+" }"}if("object"===typeof i&&d){if(z&&"function"===typeof i[z]&&L)return L(i,{depth:m-n});if("symbol"!==d&&"function"===typeof i.inspect)return i.inspect()}if(re(i)){var ue=[];return o&&o.call(i,(function(e,t){ue.push(b(t,i,!0)+" => "+b(e,i))})),pe("Map",s.call(i),ue,g)}if(oe(i)){var be=[];return u&&u.call(i,(function(e){be.push(b(e,i))})),pe("Set",c.call(i),be,g)}if(ne(i))return he("WeakMap");if(ae(i))return he("WeakSet");if(se(i))return he("WeakRef");if(X(i))return de(b(Number(i)));if(J(i))return de(b(D.call(i)));if(K(i))return de(y.call(i));if($(i))return de(b(String(i)));if("undefined"!==typeof window&&i===window)return"{ [object Window] }";if(i===t)return"{ [object globalThis] }";if(!W(i)&&!H(i)){var ve=ye(i,b),we=F?F(i)===Object.prototype:i instanceof Object||i.constructor===Object,xe=i instanceof Object?"":"null prototype",_e=!we&&R&&Object(i)===i&&R in i?x.call(ee(i),8,-1):xe?"Object":"",je=we||"function"!==typeof i.constructor?"":i.constructor.name?i.constructor.name+" ":"",Ce=je+(_e||xe?"["+T.call(S.call([],_e||[],xe||[]),": ")+"] ":"");return 0===ve.length?Ce+"{}":g?Ce+"{"+ge(ve,g)+"}":Ce+"{ "+T.call(ve,", ")+" }"}return String(i)};var Q=Object.prototype.hasOwnProperty||function(e){return e in this};function Z(e,t){return Q.call(e,t)}function ee(e){return b.call(e)}function te(e){if(e.name)return e.name;var t=w.call(v.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function ie(e,t){if(e.indexOf)return e.indexOf(t);for(var i=0,r=e.length;it.maxStringLength){var i=e.length-t.maxStringLength,r="... "+i+" more character"+(i>1?"s":"");return ce(x.call(e,0,t.maxStringLength),t)+r}var n=_.call(_.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ue);return U(n,"single",t)}function ue(e){var t=e.charCodeAt(0),i={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return i?"\\"+i:"\\x"+(t<16?"0":"")+j.call(t.toString(16))}function de(e){return"Object("+e+")"}function he(e){return e+" { ? }"}function pe(e,t,i,r){var n=r?ge(i,r):T.call(i,", ");return e+" ("+t+") {"+n+"}"}function fe(e){for(var t=0;t=0)return!1;return!0}function me(e,t){var i;if("\t"===e.indent)i="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;i=T.call(Array(e.indent+1)," ")}return{base:i,prev:T.call(Array(t+1),i)}}function ge(e,t){if(0===e.length)return"";var i="\n"+t.prev+t.base;return i+T.call(e,","+i)+"\n"+t.prev}function ye(e,t){var i=V(e),r=[];if(i){r.length=e.length;for(var n=0;n0&&!n.call(e,0))for(var p=0;p0)for(var m=0;m=0&&"[object Function]"===r.call(e.callee)),i}},{}],437:[function(e,t,i){"use strict";var r=e("object-keys"),n=e("has-symbols/shams")(),s=e("call-bind/callBound"),o=Object,a=s("Array.prototype.push"),l=s("Object.prototype.propertyIsEnumerable"),c=n?Object.getOwnPropertySymbols:null;t.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var i=o(e);if(1===arguments.length)return i;for(var s=1;s2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),s=a,o=0;continue}}else if(2===r.length||1===r.length){r="",n=0,s=a,o=0;continue}t&&(r.length>0?r+="/..":r="..",n=2)}else r.length>0?r+="/"+e.slice(s+1,a):r=e.slice(s+1,a),n=a-s-1;s=a,o=0}else 46===i&&-1!==o?++o:o=-1}return r}function n(e,t){var i=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return i?i===t.root?i+r:i+e+r:r}var s={resolve:function(){for(var t,n="",s=!1,o=arguments.length-1;o>=-1&&!s;o--){var a;o>=0?a=arguments[o]:(void 0===t&&(t=e.cwd()),a=t),i(a),0!==a.length&&(n=a+"/"+n,s=47===a.charCodeAt(0))}return n=r(n,!s),s?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(e){if(i(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return e=r(e,!t),0!==e.length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return i(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":s.normalize(e)},relative:function(e,t){if(i(e),i(t),e===t)return"";if(e=s.resolve(e),t=s.resolve(t),e===t)return"";for(var r=1;ru){if(47===t.charCodeAt(a+h))return t.slice(a+h+1);if(0===h)return t.slice(a+h)}else o>u&&(47===e.charCodeAt(r+h)?d=h:0===h&&(d=0));break}var p=e.charCodeAt(r+h),f=t.charCodeAt(a+h);if(p!==f)break;47===p&&(d=h)}var m="";for(h=r+d+1;h<=n;++h)h!==n&&47!==e.charCodeAt(h)||(0===m.length?m+="..":m+="/..");return m.length>0?m+t.slice(a+d):(a+=d,47===t.charCodeAt(a)&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(i(e),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,s=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),47===t){if(!s){n=o;break}}else s=!1;return-1===n?r?"/":".":r&&1===n?"//":e.slice(0,n)},basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');i(e);var r,n=0,s=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,l=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!o){n=r+1;break}}else-1===l&&(o=!1,l=r+1),a>=0&&(c===t.charCodeAt(a)?-1===--a&&(s=r):(a=-1,s=l))}return n===s?s=l:-1===s&&(s=e.length),e.slice(n,s)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!o){n=r+1;break}}else-1===s&&(o=!1,s=r+1);return-1===s?"":e.slice(n,s)},extname:function(e){i(e);for(var t=-1,r=0,n=-1,s=!0,o=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===n&&(s=!1,n=a+1),46===l?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!s){r=a+1;break}}return-1===t||-1===n||0===o||1===o&&t===n-1&&t===r+1?"":e.slice(t,n)},format:function(e){if(null===e||"object"!==typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return n("/",e)},parse:function(e){i(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var r,n=e.charCodeAt(0),s=47===n;s?(t.root="/",r=1):r=0;for(var o=-1,a=0,l=-1,c=!0,u=e.length-1,d=0;u>=r;--u)if(n=e.charCodeAt(u),47!==n)-1===l&&(c=!1,l=u+1),46===n?-1===o?o=u:1!==d&&(d=1):-1!==o&&(d=-1);else if(!c){a=u+1;break}return-1===o||-1===l||0===d||1===d&&o===l-1&&o===a+1?-1!==l&&(t.base=t.name=0===a&&s?e.slice(1,l):e.slice(a,l)):(0===a&&s?(t.name=e.slice(1,o),t.base=e.slice(1,l)):(t.name=e.slice(a,o),t.base=e.slice(a,l)),t.ext=e.slice(o,l)),a>0?t.dir=e.slice(0,a-1):s&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};s.posix=s,t.exports=s}).call(this)}).call(this,e("_process"))},{_process:538}],440:[function(i,r,n){(function(t){(function(){(function(){"use strict";var i={function:!0,object:!0},s=i[typeof window]&&window||this,o=i[typeof n]&&n,a=i[typeof r]&&r&&!r.nodeType&&r,l=o&&a&&"object"==typeof t&&t;!l||l.global!==l&&l.window!==l&&l.self!==l||(s=l);var c=Math.pow(2,53)-1,u=/\bOpera/,d=Object.prototype,h=d.hasOwnProperty,p=d.toString;function f(e){return e=String(e),e.charAt(0).toUpperCase()+e.slice(1)}function m(e,t,i){var r={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return t&&i&&/^Win/i.test(e)&&!/^Windows Phone /i.test(e)&&(r=r[/[\d.]+$/.exec(e)])&&(e="Windows "+r),e=String(e),t&&i&&(e=e.replace(RegExp(t,"i"),i)),e=y(e.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),e}function g(e,t){var i=-1,r=e?e.length:0;if("number"==typeof r&&r>-1&&r<=c)while(++i3?"WebKit":/\bOpera\b/.test(L)&&(/\bOPR\b/.test(e)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(e)&&!/^(?:Trident|EdgeHTML)$/.test(M)&&"WebKit"||!M&&/\bMSIE\b/i.test(e)&&("Mac OS"==U?"Tasman":"Trident")||"WebKit"==M&&/\bPlayStation\b(?! Vita\b)/i.test(L)&&"NetFront")&&(M=[o]),"IE"==L&&(o=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(e)||0)[1])?(L+=" Mobile",U="Windows Phone "+(/\+$/.test(o)?o:o+".x"),I.unshift("desktop mode")):/\bWPDesktop\b/i.test(e)?(L="IE Mobile",U="Windows Phone 8.x",I.unshift("desktop mode"),F||(F=(/\brv:([\d.]+)/.exec(e)||0)[1])):"IE"!=L&&"Trident"==M&&(o=/\brv:([\d.]+)/.exec(e))&&(L&&I.push("identifying as "+L+(F?" "+F:"")),L="IE",F=o[1]),P){if(w(t,"global"))if(k&&(o=k.lang.System,N=o.getProperty("os.arch"),U=U||o.getProperty("os.name")+" "+o.getProperty("os.version")),S){try{F=t.require("ringo/engine").version.join("."),L="RingoJS"}catch(Y){(o=t.system)&&o.global.system==t.system&&(L="Narwhal",U||(U=o[0].os||null))}L||(L="Rhino")}else"object"==typeof t.process&&!t.process.browser&&(o=t.process)&&("object"==typeof o.versions&&("string"==typeof o.versions.electron?(I.push("Node "+o.versions.node),L="Electron",F=o.versions.electron):"string"==typeof o.versions.nw&&(I.push("Chromium "+F,"Node "+o.versions.node),L="NW.js",F=o.versions.nw)),L||(L="Node.js",N=o.arch,U=o.platform,F=/[\d.]+/.exec(o.version),F=F?F[0]:null));else v(o=t.runtime)==d?(L="Adobe AIR",U=o.flash.system.Capabilities.os):v(o=t.phantom)==g?(L="PhantomJS",F=(o=o.version||null)&&o.major+"."+o.minor+"."+o.patch):"number"==typeof O.documentMode&&(o=/\bTrident\/(\d+)/i.exec(e))?(F=[F,O.documentMode],(o=+o[1]+4)!=F[1]&&(I.push("IE "+F[1]+" mode"),M&&(M[1]=""),F[1]=o),F="IE"==L?String(F[1].toFixed(1)):F[0]):"number"==typeof O.documentMode&&/^(?:Chrome|Firefox)\b/.test(L)&&(I.push("masking as "+L+" "+F),L="IE",F="11.0",M=["Trident"],U="Windows");U=U&&y(U)}if(F&&(o=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(F)||/(?:alpha|beta)(?: ?\d)?/i.exec(e+";"+(P&&r.appMinorVersion))||/\bMinefield\b/i.test(e)&&"a")&&(R=/b/i.test(o)?"beta":"alpha",F=F.replace(RegExp(o+"\\+?$"),"")+("beta"==R?E:T)+(/\d+\+?/.exec(o)||"")),"Fennec"==L||"Firefox"==L&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(U))L="Firefox Mobile";else if("Maxthon"==L&&F)F=F.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(B))"Xbox 360"==B&&(U=null),"Xbox 360"==B&&/\bIEMobile\b/.test(e)&&I.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(L)&&(!L||B||/Browser|Mobi/.test(L))||"Windows CE"!=U&&!/Mobi/i.test(e))if("IE"==L&&P)try{null===t.external&&I.unshift("platform preview")}catch(Y){I.unshift("embedded")}else(/\bBlackBerry\b/.test(B)||/\bBB10\b/.test(e))&&(o=(RegExp(B.replace(/ +/g," *")+"/([.\\d]+)","i").exec(e)||0)[1]||F)?(o=[o,/BB10/.test(e)],U=(o[1]?(B=null,z="BlackBerry"):"Device Software")+" "+o[0],F=null):this!=b&&"Wii"!=B&&(P&&D||/Opera/.test(L)&&/\b(?:MSIE|Firefox)\b/i.test(e)||"Firefox"==L&&/\bOS X (?:\d+\.){2,}/.test(U)||"IE"==L&&(U&&!/^Win/.test(U)&&F>5.5||/\bWindows XP\b/.test(U)&&F>8||8==F&&!/\bTrident\b/.test(e)))&&!u.test(o=C.call(b,e.replace(u,"")+";"))&&o.name&&(o="ing as "+o.name+((o=o.version)?" "+o:""),u.test(L)?(/\bIE\b/.test(o)&&"Mac OS"==U&&(U=null),o="identify"+o):(o="mask"+o,L=A?y(A.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(o)&&(U=null),P||(F=null)),M=["Presto"],I.push(o));else L+=" Mobile";(o=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(e)||0)[1])&&(o=[parseFloat(o.replace(/\.(\d)$/,".0$1")),o],"Safari"==L&&"+"==o[1].slice(-1)?(L="WebKit Nightly",R="alpha",F=o[1].slice(0,-1)):F!=o[1]&&F!=(o[2]=(/\bSafari\/([\d.]+\+?)/i.exec(e)||0)[1])||(F=null),o[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(e)||0)[1],537.36==o[0]&&537.36==o[2]&&parseFloat(o[1])>=28&&"WebKit"==M&&(M=["Blink"]),P&&(l||o[1])?(M&&(M[1]="like Chrome"),o=o[1]||(o=o[0],o<530?1:o<532?2:o<532.05?3:o<533?4:o<534.03?5:o<534.07?6:o<534.1?7:o<534.13?8:o<534.16?9:o<534.24?10:o<534.3?11:o<535.01?12:o<535.02?"13+":o<535.07?15:o<535.11?16:o<535.19?17:o<536.05?18:o<536.1?19:o<537.01?20:o<537.11?"21+":o<537.13?23:o<537.18?24:o<537.24?25:o<537.36?26:"Blink"!=M?"27":"28")):(M&&(M[1]="like Safari"),o=o[0],o=o<400?1:o<500?2:o<526?3:o<533?4:o<534?"4+":o<535?5:o<537?6:o<538?7:o<601?8:o<602?9:o<604?10:o<606?11:o<608?12:"12"),M&&(M[1]+=" "+(o+="number"==typeof o?".x":/[.+]/.test(o)?"":"+")),"Safari"==L&&(!F||parseInt(F)>45)?F=o:"Chrome"==L&&/\bHeadlessChrome/i.test(e)&&I.unshift("headless")),"Opera"==L&&(o=/\bzbov|zvav$/.exec(U))?(L+=" ",I.unshift("desktop mode"),"zvav"==o?(L+="Mini",F=null):L+="Mobile",U=U.replace(RegExp(" *"+o+"$"),"")):"Safari"==L&&/\bChrome\b/.exec(M&&M[1])?(I.unshift("desktop mode"),L="Chrome Mobile",F=null,/\bOS X\b/.test(U)?(z="Apple",U="iOS 4.3+"):U=null):/\bSRWare Iron\b/.test(L)&&!F&&(F=$("Chrome")),F&&0==F.indexOf(o=/[\d.]+$/.exec(U))&&e.indexOf("/"+o+"-")>-1&&(U=j(U.replace(o,""))),U&&-1!=U.indexOf(L)&&!RegExp(L+" OS").test(U)&&(U=U.replace(RegExp(" *"+x(L)+" *"),"")),M&&!/\b(?:Avant|Nook)\b/.test(L)&&(/Browser|Lunascape|Maxthon/.test(L)||"Safari"!=L&&/^iOS/.test(U)&&/\bSafari\b/.test(M[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(L)&&M[1])&&(o=M[M.length-1])&&I.push(o),I.length&&(I=["("+I.join("; ")+")"]),z&&B&&B.indexOf(z)<0&&I.push("on "+z),B&&I.push((/^on /.test(I[I.length-1])?"":"on ")+B),U&&(o=/ ([\d.+]+)$/.exec(U),a=o&&"/"==U.charAt(U.length-o[0].length-1),U={architecture:32,family:o&&!a?U.replace(o[0],""):U,version:o?o[1]:null,toString:function(){var e=this.version;return this.family+(e&&!a?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(o=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(N))&&!/\bi686\b/i.test(N)?(U&&(U.architecture=64,U.family=U.family.replace(RegExp(" *"+o),"")),L&&(/\bWOW64\b/i.test(e)||P&&/\w(?:86|32)$/.test(r.cpuClass||r.platform)&&!/\bWin64; x64\b/i.test(e))&&I.unshift("32-bit")):U&&/^OS X/.test(U.family)&&"Chrome"==L&&parseFloat(F)>=39&&(U.architecture=64),e||(e=null);var K={};return K.description=e,K.layout=M&&M[0],K.manufacturer=z,K.name=L,K.prerelease=R,K.product=B,K.ua=e,K.version=L&&F,K.os=U||{architecture:null,family:null,version:null,toString:function(){return"null"}},K.parse=C,K.toString=X,K.version&&I.unshift(F),K.name&&I.unshift(L),U&&L&&(U!=String(U).split(" ")[0]||U!=L.split(" ")[0]&&!B)&&I.push(B?"("+U+")":"on "+U),I.length&&(K.description=I.join(" ")),K}var k=C();"function"==typeof e&&"object"==typeof e.amd&&e.amd?(s.platform=k,e((function(){return k}))):o&&a?b(k,(function(e,t){o[t]=e})):s.platform=k}).call(this)}).call(this)}).call(this,"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],441:[function(e,t,i){(function(e){(function(){"use strict";function i(t,i,r,n){if("function"!==typeof t)throw new TypeError('"callback" argument must be a function');var s,o,a=arguments.length;switch(a){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,i)}));case 3:return e.nextTick((function(){t.call(null,i,r)}));case 4:return e.nextTick((function(){t.call(null,i,r,n)}));default:s=new Array(a-1),o=0;while(o1)for(var i=1;i= 0x80 (not a basic code point)","invalid-input":"Invalid input"},j=d-h,C=Math.floor,k=String.fromCharCode;function S(e){throw new RangeError(_[e])}function T(e,t){var i=e.length,r=[];while(i--)r[i]=t(e[i]);return r}function E(e,t){var i=e.split("@"),r="";i.length>1&&(r=i[0]+"@",e=i[1]),e=e.replace(x,".");var n=e.split("."),s=T(n,t).join(".");return r+s}function O(e){var t,i,r=[],n=0,s=e.length;while(n=55296&&t<=56319&&n65535&&(e-=65536,t+=k(e>>>10&1023|55296),e=56320|1023&e),t+=k(e),t})).join("")}function A(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:d}function N(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function I(e,t,i){var r=0;for(e=i?C(e/m):e>>1,e+=C(e/t);e>j*p>>1;r+=d)e=C(e/j);return C(r+(j+1)*e/(e+f))}function R(e){var t,i,r,n,s,o,a,l,c,f,m=[],v=e.length,w=0,x=y,_=g;for(i=e.lastIndexOf(b),i<0&&(i=0),r=0;r=128&&S("not-basic"),m.push(e.charCodeAt(r));for(n=i>0?i+1:0;n=v&&S("invalid-input"),l=A(e.charCodeAt(n++)),(l>=d||l>C((u-w)/o))&&S("overflow"),w+=l*o,c=a<=_?h:a>=_+p?p:a-_,lC(u/f)&&S("overflow"),o*=f}t=m.length+1,_=I(w-s,t,0==s),C(w/t)>u-x&&S("overflow"),x+=C(w/t),w%=t,m.splice(w++,0,x)}return D(m)}function P(e){var t,i,r,n,s,o,a,l,c,f,m,v,w,x,_,j=[];for(e=O(e),v=e.length,t=y,i=0,s=g,o=0;o=t&&mC((u-i)/w)&&S("overflow"),i+=(a-t)*w,t=a,o=0;ou&&S("overflow"),m==t){for(l=i,c=d;;c+=d){if(f=c<=s?h:c>=s+p?p:c-s,l-1?e.split(","):e},c="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",d=function(e,t){var i,d={__proto__:null},h=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,f=h.split(t.delimiter,p),m=-1,g=t.charset;if(t.charsetSentinel)for(i=0;i-1&&(b=s(b)?[b]:b),n.call(d,y)?d[y]=r.combine(d[y],b):d[y]=b}return d},h=function(e,t,i,r){for(var n=r?t:l(t,i),s=e.length-1;s>=0;--s){var o,a=e[s];if("[]"===a&&i.parseArrays)o=[].concat(n);else{o=i.plainObjects?Object.create(null):{};var c="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=parseInt(c,10);i.parseArrays||""!==c?!isNaN(u)&&a!==c&&String(u)===c&&u>=0&&i.parseArrays&&u<=i.arrayLimit?(o=[],o[u]=n):"__proto__"!==c&&(o[c]=n):o={0:n}}n=o}return n},p=function(e,t,i,r){if(e){var s=i.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=i.depth>0&&o.exec(s),c=l?s.slice(0,l.index):s,u=[];if(c){if(!i.plainObjects&&n.call(Object.prototype,c)&&!i.allowPrototypes)return;u.push(c)}var d=0;while(i.depth>0&&null!==(l=a.exec(s))&&d0?C.join(",")||null:void 0}];else if(l(h))D=h;else{var N=Object.keys(C);D=g?N.sort(g):N}for(var I=o&&l(C)&&1===C.length?i+"[]":i,R=0;R0?w+v:""}},{"./formats":444,"./utils":448,"side-channel":467}],448:[function(e,t,i){"use strict";var r=e("./formats"),n=Object.prototype.hasOwnProperty,s=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e){while(e.length>1){var t=e.pop(),i=t.obj[t.prop];if(s(i)){for(var r=[],n=0;n=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||s===r.RFC1738&&(40===u||41===u)?l+=a.charAt(c):u<128?l+=o[u]:u<2048?l+=o[192|u>>6]+o[128|63&u]:u<55296||u>=57344?l+=o[224|u>>12]+o[128|u>>6&63]+o[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&a.charCodeAt(c)),l+=o[240|u>>18]+o[128|u>>12&63]+o[128|u>>6&63]+o[128|63&u])}return l},p=function(e){for(var t=[{obj:{o:e},prop:"o"}],i=[],r=0;r0&&c>l&&(c=l);for(var u=0;u=0?(d=m.substr(0,g),h=m.substr(g+1)):(d=m,h=""),p=decodeURIComponent(d),f=decodeURIComponent(h),r(o,p)?n(o[p])?o[p].push(f):o[p]=[o[p],f]:o[p]=f}return o};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],450:[function(e,t,i){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,i,a){return t=t||"&",i=i||"=",null===e&&(e=void 0),"object"===typeof e?s(o(e),(function(o){var a=encodeURIComponent(r(o))+i;return n(e[o])?s(e[o],(function(e){return a+encodeURIComponent(r(e))})).join(t):a+encodeURIComponent(r(e[o]))})).join(t):a?encodeURIComponent(r(a))+i+encodeURIComponent(r(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function s(e,t){if(e.map)return e.map(t);for(var i=[],r=0;r0?("string"===typeof t||o.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=d(t)),r?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):C(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!i?(t=o.decoder.write(t),o.objectMode||0!==t.length?C(e,o,t,!1):I(e,o)):C(e,o,t,!1))):r||(o.reading=!1));return S(o)}function C(e,t,i,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",i),e.read(0)):(t.length+=t.objectMode?1:i.length,r?t.buffer.unshift(i):t.buffer.push(i),t.needReadable&&A(e)),I(e,t)}function k(e,t){var i;return h(t)||"string"===typeof t||void 0===t||e.objectMode||(i=new TypeError("Invalid non-string/buffer chunk")),i}function S(e){return!e.ended&&(e.needReadable||e.length=T?e=T:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function O(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=E(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function D(e,t){if(!t.ended){if(t.decoder){var i=t.decoder.end();i&&i.length&&(t.buffer.push(i),t.length+=t.objectMode?1:i.length)}t.ended=!0,A(e)}}function A(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(m("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(N,e):N(e))}function N(e){m("emit readable"),e.emit("readable"),B(e)}function I(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(R,e,t))}function R(e,t){var i=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(i=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):i=U(e,t.buffer,t.decoder),i);var i}function U(e,t,i){var r;return es.length?s.length:e;if(o===s.length?n+=s:n+=s.slice(0,e),e-=o,0===e){o===s.length?(++r,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=s.slice(o));break}++r}return t.length-=r,n}function V(e,t){var i=c.allocUnsafe(e),r=t.head,n=1;r.data.copy(i),e-=r.data.length;while(r=r.next){var s=r.data,o=e>s.length?s.length:e;if(s.copy(i,i.length-e,0,o),e-=o,0===e){o===s.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=s.slice(o));break}++n}return t.length-=n,i}function W(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,n.nextTick(H,t,e))}function H(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function G(e,t){for(var i=0,r=e.length;i=t.highWaterMark||t.ended))return m("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?W(this):A(this),null;if(e=O(e,t),0===e&&t.ended)return 0===t.length&&W(this),null;var r,n=t.needReadable;return m("need readable",n),(0===t.length||t.length-e0?z(e,t):null,null===r?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),i!==e&&t.ended&&W(this)),null!==r&&this.emit("data",r),r},_.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},_.prototype.pipe=function(e,i){var r=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=e;break;case 1:s.pipes=[s.pipes,e];break;default:s.pipes.push(e);break}s.pipesCount+=1,m("pipe count=%d opts=%j",s.pipesCount,i);var o=(!i||!1!==i.end)&&e!==t.stdout&&e!==t.stderr,l=o?u:x;function c(e,t){m("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,p())}function u(){m("onend"),e.end()}s.endEmitted?n.nextTick(l):r.once("end",l),e.on("unpipe",c);var d=P(r);e.on("drain",d);var h=!1;function p(){m("cleanup"),e.removeListener("close",b),e.removeListener("finish",v),e.removeListener("drain",d),e.removeListener("error",y),e.removeListener("unpipe",c),r.removeListener("end",u),r.removeListener("end",x),r.removeListener("data",g),h=!0,!s.awaitDrain||e._writableState&&!e._writableState.needDrain||d()}var f=!1;function g(t){m("ondata"),f=!1;var i=e.write(t);!1!==i||f||((1===s.pipesCount&&s.pipes===e||s.pipesCount>1&&-1!==G(s.pipes,e))&&!h&&(m("false write response, pause",s.awaitDrain),s.awaitDrain++,f=!0),r.pause())}function y(t){m("onerror",t),x(),e.removeListener("error",y),0===a(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",v),x()}function v(){m("onfinish"),e.removeListener("close",b),x()}function x(){m("unpipe"),r.unpipe(e)}return r.on("data",g),w(e,"error",y),e.once("close",b),e.once("finish",v),e.emit("pipe",r),s.flowing||(m("pipe resume"),r.resume()),e},_.prototype.unpipe=function(e){var t=this._readableState,i={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,i)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s-1?n:s.nextTick;w.WritableState=v;var c=Object.create(e("core-util-is"));c.inherits=e("inherits");var u={deprecate:e("util-deprecate")},d=e("./internal/streams/stream"),h=e("safe-buffer").Buffer,p=("undefined"!==typeof r?r:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function f(e){return h.from(e)}function m(e){return h.isBuffer(e)||e instanceof p}var g,y=e("./internal/streams/destroy");function b(){}function v(t,i){a=a||e("./_stream_duplex"),t=t||{};var r=i instanceof a;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var n=t.highWaterMark,s=t.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(s||0===s)?s:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=!1===t.decodeStrings;this.decodeStrings=!c,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){E(i,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function w(t){if(a=a||e("./_stream_duplex"),!g.call(w,this)&&!(this instanceof a))return new w(t);this._writableState=new v(t,this),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t.final&&(this._final=t.final)),d.call(this)}function x(e,t){var i=new Error("write after end");e.emit("error",i),s.nextTick(t,i)}function _(e,t,i,r){var n=!0,o=!1;return null===i?o=new TypeError("May not write null values to stream"):"string"===typeof i||void 0===i||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),s.nextTick(r,o),n=!1),n}function j(e,t,i){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=h.from(t,i)),t}function C(e,t,i,r,n,s){if(!i){var o=j(t,r,n);r!==o&&(i=!0,n="buffer",r=o)}var a=t.objectMode?1:r.length;t.length+=a;var l=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),w.prototype._write=function(e,t,i){i(new Error("_write() is not implemented"))},w.prototype._writev=null,w.prototype.end=function(e,t,i){var r=this._writableState;"function"===typeof e?(i=e,e=null,t=null):"function"===typeof t&&(i=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||F(this,r,i)},Object.defineProperty(w.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),w.prototype.destroy=y.destroy,w.prototype._undestroy=y.undestroy,w.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this)}).call(this,e("_process"),"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},e("timers").setImmediate)},{"./_stream_duplex":452,"./internal/streams/destroy":458,"./internal/streams/stream":459,_process:538,"core-util-is":382,inherits:407,"process-nextick-args":441,"safe-buffer":461,timers:484,"util-deprecate":486}],457:[function(e,t,i){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n=e("safe-buffer").Buffer,s=e("util");function o(e,t,i){e.copy(t,i)}t.exports=function(){function e(){r(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";var t=this.head,i=""+t.data;while(t=t.next)i+=e+t.data;return i},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);var t=n.allocUnsafe(e>>>0),i=this.head,r=0;while(i)o(i.data,t,r),r+=i.data.length,i=i.next;return t},e}(),s&&s.inspect&&s.inspect.custom&&(t.exports.prototype[s.inspect.custom]=function(){var e=s.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":461,util:102}],458:[function(e,t,i){"use strict";var r=e("process-nextick-args");function n(e,t){var i=this,n=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return n||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(o,this,e)):r.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?i._writableState?i._writableState.errorEmitted||(i._writableState.errorEmitted=!0,r.nextTick(o,i,e)):r.nextTick(o,i,e):t&&t(e)})),this)}function s(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(e,t){e.emit("error",t)}t.exports={destroy:n,undestroy:s}},{"process-nextick-args":441}],459:[function(e,t,i){t.exports=e("events").EventEmitter},{events:386}],460:[function(e,t,i){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],461:[function(e,t,i){var r=e("buffer"),n=r.Buffer;function s(e,t){for(var i in e)t[i]=e[i]}function o(e,t,i){return n(e,t,i)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(s(r,i),i.Buffer=o),s(n,o),o.from=function(e,t,i){if("number"===typeof e)throw new TypeError("Argument must not be a number");return n(e,t,i)},o.alloc=function(e,t,i){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=n(e);return void 0!==t?"string"===typeof i?r.fill(t,i):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n(e)},o.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},{buffer:103}],462:[function(e,t,i){"use strict";var r=e("safe-buffer").Buffer,n=r.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(e){if(!e)return"utf8";var t;while(1)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function o(e){var t=s(e);if("string"!==typeof t&&(r.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}function a(e){var t;switch(this.encoding=o(e),this.encoding){case"utf16le":this.text=f,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=g,this.end=y,t=3;break;default:return this.write=b,void(this.end=v)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function l(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function c(e,t,i){var r=t.length-1;if(r=0?(n>0&&(e.lastNeed=n-1),n):--r=0?(n>0&&(e.lastNeed=n-2),n):--r=0?(n>0&&(2===n?n=0:e.lastNeed=n-3),n):0))}function u(e,t,i){if(128!==(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,i=u(this,e,t);return void 0!==i?i:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function h(e,t){var i=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=i;var r=e.length-(i-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function f(e,t){if((e.length-t)%2===0){var i=e.toString("utf16le",t);if(i){var r=i.charCodeAt(i.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,i)}return t}function g(e,t){var i=(e.length-t)%3;return 0===i?e.toString("base64",t):(this.lastNeed=3-i,this.lastTotal=3,1===i?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-i))}function y(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function b(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}i.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,i;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i */ var r=e("buffer"),n=r.Buffer;function s(e,t){for(var i in e)t[i]=e[i]}function o(e,t,i){return n(e,t,i)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(s(r,i),i.Buffer=o),o.prototype=Object.create(n.prototype),s(n,o),o.from=function(e,t,i){if("number"===typeof e)throw new TypeError("Argument must not be a number");return n(e,t,i)},o.alloc=function(e,t,i){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=n(e);return void 0!==t?"string"===typeof i?r.fill(t,i):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n(e)},o.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},{buffer:103}],465:[function(e,t,i){(function(t){(function(){(function(i){i.parser=function(e,t){return new s(e,t)},i.SAXParser=s,i.SAXStream=d,i.createStream=u,i.MAX_BUFFER_LENGTH=65536;var r,n=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function s(e,t){if(!(this instanceof s))return new s(e,t);var r=this;a(r),r.q=r.c="",r.bufferCheckPosition=i.MAX_BUFFER_LENGTH,r.opt=t||{},r.opt.lowercase=r.opt.lowercase||r.opt.lowercasetags,r.looseCase=r.opt.lowercase?"toLowerCase":"toUpperCase",r.tags=[],r.closed=r.closedRoot=r.sawRoot=!1,r.tag=r.error=null,r.strict=!!e,r.noscript=!(!e&&!r.opt.noscript),r.state=S.BEGIN,r.strictEntities=r.opt.strictEntities,r.ENTITIES=r.strictEntities?Object.create(i.XML_ENTITIES):Object.create(i.ENTITIES),r.attribList=[],r.opt.xmlns&&(r.ns=Object.create(g)),r.trackPosition=!1!==r.opt.position,r.trackPosition&&(r.position=r.line=r.column=0),E(r,"onready")}function o(e){for(var t=Math.max(i.MAX_BUFFER_LENGTH,10),r=0,s=0,o=n.length;st)switch(n[s]){case"textNode":D(e);break;case"cdata":O(e,"oncdata",e.cdata),e.cdata="";break;case"script":O(e,"onscript",e.script),e.script="";break;default:N(e,"Max buffer length exceeded: "+n[s])}r=Math.max(r,a)}var l=i.MAX_BUFFER_LENGTH-r;e.bufferCheckPosition=l+e.position}function a(e){for(var t=0,i=n.length;t"===e||x(e)}function C(e,t){return e.test(t)}function k(e,t){return!C(e,t)}var S=0;for(var T in i.STATE={BEGIN:S++,BEGIN_WHITESPACE:S++,TEXT:S++,TEXT_ENTITY:S++,OPEN_WAKA:S++,SGML_DECL:S++,SGML_DECL_QUOTED:S++,DOCTYPE:S++,DOCTYPE_QUOTED:S++,DOCTYPE_DTD:S++,DOCTYPE_DTD_QUOTED:S++,COMMENT_STARTING:S++,COMMENT:S++,COMMENT_ENDING:S++,COMMENT_ENDED:S++,CDATA:S++,CDATA_ENDING:S++,CDATA_ENDING_2:S++,PROC_INST:S++,PROC_INST_BODY:S++,PROC_INST_ENDING:S++,OPEN_TAG:S++,OPEN_TAG_SLASH:S++,ATTRIB:S++,ATTRIB_NAME:S++,ATTRIB_NAME_SAW_WHITE:S++,ATTRIB_VALUE:S++,ATTRIB_VALUE_QUOTED:S++,ATTRIB_VALUE_CLOSED:S++,ATTRIB_VALUE_UNQUOTED:S++,ATTRIB_VALUE_ENTITY_Q:S++,ATTRIB_VALUE_ENTITY_U:S++,CLOSE_TAG:S++,CLOSE_TAG_SAW_WHITE:S++,SCRIPT:S++,SCRIPT_ENDING:S++},i.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},i.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(i.ENTITIES).forEach((function(e){var t=i.ENTITIES[e],r="number"===typeof t?String.fromCharCode(t):t;i.ENTITIES[e]=r})),i.STATE)i.STATE[i.STATE[T]]=T;function E(e,t,i){e[t]&&e[t](i)}function O(e,t,i){e.textNode&&D(e),E(e,t,i)}function D(e){e.textNode=A(e.opt,e.textNode),e.textNode&&E(e,"ontext",e.textNode),e.textNode=""}function A(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function N(e,t){return D(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,E(e,"onerror",t),e}function I(e){return e.sawRoot&&!e.closedRoot&&R(e,"Unclosed root tag"),e.state!==S.BEGIN&&e.state!==S.BEGIN_WHITESPACE&&e.state!==S.TEXT&&N(e,"Unexpected end"),D(e),e.c="",e.closed=!0,E(e,"onend"),s.call(e,e.strict,e.opt),e}function R(e,t){if("object"!==typeof e||!(e instanceof s))throw new Error("bad call to strictFail");e.strict&&N(e,t)}function P(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,i=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(i.ns=t.ns),e.attribList.length=0,O(e,"onopentagstart",i)}function F(e,t){var i=e.indexOf(":"),r=i<0?["",e]:e.split(":"),n=r[0],s=r[1];return t&&"xmlns"===e&&(n="xmlns",s=""),{prefix:n,local:s}}function M(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName))e.attribName=e.attribValue="";else{if(e.opt.xmlns){var t=F(e.attribName,!0),i=t.prefix,r=t.local;if("xmlns"===i)if("xml"===r&&e.attribValue!==f)R(e,"xml: prefix must be bound to "+f+"\nActual: "+e.attribValue);else if("xmlns"===r&&e.attribValue!==m)R(e,"xmlns: prefix must be bound to "+m+"\nActual: "+e.attribValue);else{var n=e.tag,s=e.tags[e.tags.length-1]||e;n.ns===s.ns&&(n.ns=Object.create(s.ns)),n.ns[r]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,O(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}}function L(e,t){if(e.opt.xmlns){var i=e.tag,r=F(e.tagName);i.prefix=r.prefix,i.local=r.local,i.uri=i.ns[r.prefix]||"",i.prefix&&!i.uri&&(R(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),i.uri=r.prefix);var n=e.tags[e.tags.length-1]||e;i.ns&&n.ns!==i.ns&&Object.keys(i.ns).forEach((function(t){O(e,"onopennamespace",{prefix:t,uri:i.ns[t]})}));for(var s=0,o=e.attribList.length;s",e.tagName="",void(e.state=S.SCRIPT);O(e,"onscript",e.script),e.script=""}var t=e.tags.length,i=e.tagName;e.strict||(i=i[e.looseCase]());var r=i;while(t--){var n=e.tags[t];if(n.name===r)break;R(e,"Unexpected close tag")}if(t<0)return R(e,"Unmatched closing tag: "+e.tagName),e.textNode+="",void(e.state=S.TEXT);e.tagName=i;var s=e.tags.length;while(s-- >t){var o=e.tag=e.tags.pop();e.tagName=e.tag.name,O(e,"onclosetag",e.tagName);var a={};for(var l in o.ns)a[l]=o.ns[l];var c=e.tags[e.tags.length-1]||e;e.opt.xmlns&&o.ns!==c.ns&&Object.keys(o.ns).forEach((function(t){var i=o.ns[t];O(e,"onclosenamespace",{prefix:t,uri:i})}))}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=S.TEXT}function z(e){var t,i=e.entity,r=i.toLowerCase(),n="";return e.ENTITIES[i]?e.ENTITIES[i]:e.ENTITIES[r]?e.ENTITIES[r]:(i=r,"#"===i.charAt(0)&&("x"===i.charAt(1)?(i=i.slice(2),t=parseInt(i,16),n=t.toString(16)):(i=i.slice(1),t=parseInt(i,10),n=t.toString(10))),i=i.replace(/^0+/,""),isNaN(t)||n.toLowerCase()!==i?(R(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t))}function U(e,t){"<"===t?(e.state=S.OPEN_WAKA,e.startTagPosition=e.position):x(t)||(R(e,"Non-whitespace before first tag."),e.textNode=t,e.state=S.TEXT)}function q(e,t){var i="";return t"===r?(O(t,"onsgmldeclaration",t.sgmlDecl),t.sgmlDecl="",t.state=S.TEXT):_(r)?(t.state=S.SGML_DECL_QUOTED,t.sgmlDecl+=r):t.sgmlDecl+=r;continue;case S.SGML_DECL_QUOTED:r===t.q&&(t.state=S.SGML_DECL,t.q=""),t.sgmlDecl+=r;continue;case S.DOCTYPE:">"===r?(t.state=S.TEXT,O(t,"ondoctype",t.doctype),t.doctype=!0):(t.doctype+=r,"["===r?t.state=S.DOCTYPE_DTD:_(r)&&(t.state=S.DOCTYPE_QUOTED,t.q=r));continue;case S.DOCTYPE_QUOTED:t.doctype+=r,r===t.q&&(t.q="",t.state=S.DOCTYPE);continue;case S.DOCTYPE_DTD:t.doctype+=r,"]"===r?t.state=S.DOCTYPE:_(r)&&(t.state=S.DOCTYPE_DTD_QUOTED,t.q=r);continue;case S.DOCTYPE_DTD_QUOTED:t.doctype+=r,r===t.q&&(t.state=S.DOCTYPE_DTD,t.q="");continue;case S.COMMENT:"-"===r?t.state=S.COMMENT_ENDING:t.comment+=r;continue;case S.COMMENT_ENDING:"-"===r?(t.state=S.COMMENT_ENDED,t.comment=A(t.opt,t.comment),t.comment&&O(t,"oncomment",t.comment),t.comment=""):(t.comment+="-"+r,t.state=S.COMMENT);continue;case S.COMMENT_ENDED:">"!==r?(R(t,"Malformed comment"),t.comment+="--"+r,t.state=S.COMMENT):t.state=S.TEXT;continue;case S.CDATA:"]"===r?t.state=S.CDATA_ENDING:t.cdata+=r;continue;case S.CDATA_ENDING:"]"===r?t.state=S.CDATA_ENDING_2:(t.cdata+="]"+r,t.state=S.CDATA);continue;case S.CDATA_ENDING_2:">"===r?(t.cdata&&O(t,"oncdata",t.cdata),O(t,"onclosecdata"),t.cdata="",t.state=S.TEXT):"]"===r?t.cdata+="]":(t.cdata+="]]"+r,t.state=S.CDATA);continue;case S.PROC_INST:"?"===r?t.state=S.PROC_INST_ENDING:x(r)?t.state=S.PROC_INST_BODY:t.procInstName+=r;continue;case S.PROC_INST_BODY:if(!t.procInstBody&&x(r))continue;"?"===r?t.state=S.PROC_INST_ENDING:t.procInstBody+=r;continue;case S.PROC_INST_ENDING:">"===r?(O(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody}),t.procInstName=t.procInstBody="",t.state=S.TEXT):(t.procInstBody+="?"+r,t.state=S.PROC_INST_BODY);continue;case S.OPEN_TAG:C(b,r)?t.tagName+=r:(P(t),">"===r?L(t):"/"===r?t.state=S.OPEN_TAG_SLASH:(x(r)||R(t,"Invalid character in tag name"),t.state=S.ATTRIB));continue;case S.OPEN_TAG_SLASH:">"===r?(L(t,!0),B(t)):(R(t,"Forward-slash in opening tag not followed by >"),t.state=S.ATTRIB);continue;case S.ATTRIB:if(x(r))continue;">"===r?L(t):"/"===r?t.state=S.OPEN_TAG_SLASH:C(y,r)?(t.attribName=r,t.attribValue="",t.state=S.ATTRIB_NAME):R(t,"Invalid attribute name");continue;case S.ATTRIB_NAME:"="===r?t.state=S.ATTRIB_VALUE:">"===r?(R(t,"Attribute without value"),t.attribValue=t.attribName,M(t),L(t)):x(r)?t.state=S.ATTRIB_NAME_SAW_WHITE:C(b,r)?t.attribName+=r:R(t,"Invalid attribute name");continue;case S.ATTRIB_NAME_SAW_WHITE:if("="===r)t.state=S.ATTRIB_VALUE;else{if(x(r))continue;R(t,"Attribute without value"),t.tag.attributes[t.attribName]="",t.attribValue="",O(t,"onattribute",{name:t.attribName,value:""}),t.attribName="",">"===r?L(t):C(y,r)?(t.attribName=r,t.state=S.ATTRIB_NAME):(R(t,"Invalid attribute name"),t.state=S.ATTRIB)}continue;case S.ATTRIB_VALUE:if(x(r))continue;_(r)?(t.q=r,t.state=S.ATTRIB_VALUE_QUOTED):(R(t,"Unquoted attribute value"),t.state=S.ATTRIB_VALUE_UNQUOTED,t.attribValue=r);continue;case S.ATTRIB_VALUE_QUOTED:if(r!==t.q){"&"===r?t.state=S.ATTRIB_VALUE_ENTITY_Q:t.attribValue+=r;continue}M(t),t.q="",t.state=S.ATTRIB_VALUE_CLOSED;continue;case S.ATTRIB_VALUE_CLOSED:x(r)?t.state=S.ATTRIB:">"===r?L(t):"/"===r?t.state=S.OPEN_TAG_SLASH:C(y,r)?(R(t,"No whitespace between attributes"),t.attribName=r,t.attribValue="",t.state=S.ATTRIB_NAME):R(t,"Invalid attribute name");continue;case S.ATTRIB_VALUE_UNQUOTED:if(!j(r)){"&"===r?t.state=S.ATTRIB_VALUE_ENTITY_U:t.attribValue+=r;continue}M(t),">"===r?L(t):t.state=S.ATTRIB;continue;case S.CLOSE_TAG:if(t.tagName)">"===r?B(t):C(b,r)?t.tagName+=r:t.script?(t.script+=""===r?B(t):R(t,"Invalid characters in closing tag");continue;case S.TEXT_ENTITY:case S.ATTRIB_VALUE_ENTITY_Q:case S.ATTRIB_VALUE_ENTITY_U:var a,l;switch(t.state){case S.TEXT_ENTITY:a=S.TEXT,l="textNode";break;case S.ATTRIB_VALUE_ENTITY_Q:a=S.ATTRIB_VALUE_QUOTED,l="attribValue";break;case S.ATTRIB_VALUE_ENTITY_U:a=S.ATTRIB_VALUE_UNQUOTED,l="attribValue";break}if(";"===r)if(t.opt.unparsedEntities){var c=z(t);t.entity="",t.state=a,t.write(c)}else t[l]+=z(t),t.entity="",t.state=a;else C(t.entity.length?w:v,r)?t.entity+=r:(R(t,"Invalid character in entity name"),t[l]+="&"+t.entity+r,t.entity="",t.state=a);continue;default:throw new Error(t,"Unknown state: "+t.state)}}return t.position>=t.bufferCheckPosition&&o(t),t} /*! http://mths.be/fromcodepoint v0.1.0 by @mathias */S=i.STATE,String.fromCodePoint||function(){var e=String.fromCharCode,t=Math.floor,i=function(){var i,r,n=16384,s=[],o=-1,a=arguments.length;if(!a)return"";var l="";while(++o1114111||t(c)!==c)throw RangeError("Invalid code point: "+c);c<=65535?s.push(c):(c-=65536,i=55296+(c>>10),r=c%1024+56320,s.push(i,r)),(o+1===a||s.length>n)&&(l+=e.apply(null,s),s.length=0)}return l};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:i,configurable:!0,writable:!0}):String.fromCodePoint=i}()})("undefined"===typeof i?this.sax={}:i)}).call(this)}).call(this,e("buffer").Buffer)},{buffer:103,stream:468,string_decoder:483}],466:[function(e,t,i){"use strict";var r=e("get-intrinsic"),n=e("define-data-property"),s=e("has-property-descriptors")(),o=e("gopd"),a=r("%TypeError%"),l=r("%Math.floor%");t.exports=function(e,t){if("function"!==typeof e)throw new a("`fn` is not a function");if("number"!==typeof t||t<0||t>4294967295||l(t)!==t)throw new a("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&o){var u=o(e,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(c=!1)}return(r||c||!i)&&(s?n(e,"length",t,!0,!0):n(e,"length",t)),e}},{"define-data-property":384,"get-intrinsic":390,gopd:391,"has-property-descriptors":392}],467:[function(e,t,i){"use strict";var r=e("get-intrinsic"),n=e("call-bind/callBound"),s=e("object-inspect"),o=r("%TypeError%"),a=r("%WeakMap%",!0),l=r("%Map%",!0),c=n("WeakMap.prototype.get",!0),u=n("WeakMap.prototype.set",!0),d=n("WeakMap.prototype.has",!0),h=n("Map.prototype.get",!0),p=n("Map.prototype.set",!0),f=n("Map.prototype.has",!0),m=function(e,t){for(var i,r=e;null!==(i=r.next);r=i)if(i.key===t)return r.next=i.next,i.next=e.next,e.next=i,i},g=function(e,t){var i=m(e,t);return i&&i.value},y=function(e,t,i){var r=m(e,t);r?r.value=i:e.next={key:t,next:e.next,value:i}},b=function(e,t){return!!m(e,t)};t.exports=function(){var e,t,i,r={assert:function(e){if(!r.has(e))throw new o("Side channel does not contain "+s(e))},get:function(r){if(a&&r&&("object"===typeof r||"function"===typeof r)){if(e)return c(e,r)}else if(l){if(t)return h(t,r)}else if(i)return g(i,r)},has:function(r){if(a&&r&&("object"===typeof r||"function"===typeof r)){if(e)return d(e,r)}else if(l){if(t)return f(t,r)}else if(i)return b(i,r);return!1},set:function(r,n){a&&r&&("object"===typeof r||"function"===typeof r)?(e||(e=new a),u(e,r,n)):l?(t||(t=new l),p(t,r,n)):(i||(i={key:{},next:null}),y(i,r,n))}};return r}},{"call-bind/callBound":105,"get-intrinsic":390,"object-inspect":433}],468:[function(e,t,i){t.exports=s;var r=e("events").EventEmitter,n=e("inherits");function s(){r.call(this)}n(s,r),s.Readable=e("readable-stream/lib/_stream_readable.js"),s.Writable=e("readable-stream/lib/_stream_writable.js"),s.Duplex=e("readable-stream/lib/_stream_duplex.js"),s.Transform=e("readable-stream/lib/_stream_transform.js"),s.PassThrough=e("readable-stream/lib/_stream_passthrough.js"),s.finished=e("readable-stream/lib/internal/streams/end-of-stream.js"),s.pipeline=e("readable-stream/lib/internal/streams/pipeline.js"),s.Stream=s,s.prototype.pipe=function(e,t){var i=this;function n(t){e.writable&&!1===e.write(t)&&i.pause&&i.pause()}function s(){i.readable&&i.resume&&i.resume()}i.on("data",n),e.on("drain",s),e._isStdio||t&&!1===t.end||(i.on("end",a),i.on("close",l));var o=!1;function a(){o||(o=!0,e.end())}function l(){o||(o=!0,"function"===typeof e.destroy&&e.destroy())}function c(e){if(u(),0===r.listenerCount(this,"error"))throw e}function u(){i.removeListener("data",n),e.removeListener("drain",s),i.removeListener("end",a),i.removeListener("close",l),i.removeListener("error",c),e.removeListener("error",c),i.removeListener("end",u),i.removeListener("close",u),e.removeListener("close",u)}return i.on("error",c),e.on("error",c),i.on("end",u),i.on("close",u),e.on("close",u),e.emit("pipe",i),e}},{events:386,inherits:407,"readable-stream/lib/_stream_duplex.js":470,"readable-stream/lib/_stream_passthrough.js":471,"readable-stream/lib/_stream_readable.js":472,"readable-stream/lib/_stream_transform.js":473,"readable-stream/lib/_stream_writable.js":474,"readable-stream/lib/internal/streams/end-of-stream.js":478,"readable-stream/lib/internal/streams/pipeline.js":480}],469:[function(e,t,i){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var n={};function s(e,t,i){function s(e,i,r){return"string"===typeof t?t:t(e,i,r)}i||(i=Error);var o=function(e){function t(t,i,r){return e.call(this,s(t,i,r))||this}return r(t,e),t}(i);o.prototype.name=i.name,o.prototype.code=e,n[e]=o}function o(e,t){if(Array.isArray(e)){var i=e.length;return e=e.map((function(e){return String(e)})),i>2?"one of ".concat(t," ").concat(e.slice(0,i-1).join(", "),", or ")+e[i-1]:2===i?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}function a(e,t,i){return e.substr(!i||i<0?0:+i,t.length)===t}function l(e,t,i){return(void 0===i||i>e.length)&&(i=e.length),e.substring(i-t.length,i)===t}function c(e,t,i){return"number"!==typeof i&&(i=0),!(i+t.length>e.length)&&-1!==e.indexOf(t,i)}s("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),s("ERR_INVALID_ARG_TYPE",(function(e,t,i){var r,n;if("string"===typeof t&&a(t,"not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be",l(e," argument"))n="The ".concat(e," ").concat(r," ").concat(o(t,"type"));else{var s=c(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(s," ").concat(r," ").concat(o(t,"type"))}return n+=". Received type ".concat(typeof i),n}),TypeError),s("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),s("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),s("ERR_STREAM_PREMATURE_CLOSE","Premature close"),s("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),s("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),s("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),s("ERR_STREAM_WRITE_AFTER_END","write after end"),s("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),s("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),s("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n},{}],470:[function(e,t,i){(function(i){(function(){"use strict";var r=Object.keys||function(e){var t=[];for(var i in e)t.push(i);return t};t.exports=c;var n=e("./_stream_readable"),s=e("./_stream_writable");e("inherits")(c,n);for(var o=r(s.prototype),a=0;a0)if("string"===typeof t||o.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=c(t)),r)o.endEmitted?k(e,new C):A(e,o,t,!0);else if(o.ended)k(e,new _);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!i?(t=o.decoder.write(t),o.objectMode||0!==t.length?A(e,o,t,!1):B(e,o)):A(e,o,t,!1)}else r||(o.reading=!1,B(e,o));return!o.ended&&(o.length=I?e=I:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function P(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=R(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function F(e,t){if(d("onEofChunk"),!t.ended){if(t.decoder){var i=t.decoder.end();i&&i.length&&(t.buffer.push(i),t.length+=t.objectMode?1:i.length)}t.ended=!0,t.sync?M(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,L(e)))}}function M(e){var i=e._readableState;d("emitReadable",i.needReadable,i.emittedReadable),i.needReadable=!1,i.emittedReadable||(d("emitReadable",i.flowing),i.emittedReadable=!0,t.nextTick(L,e))}function L(e){var t=e._readableState;d("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,G(e)}function B(e,i){i.readingMore||(i.readingMore=!0,t.nextTick(z,e,i))}function z(e,t){while(!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function V(e){d("readable nexttick read 0"),e.read(0)}function W(e,i){i.resumeScheduled||(i.resumeScheduled=!0,t.nextTick(H,e,i))}function H(e,t){d("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),G(e),t.flowing&&!t.reading&&e.read(0)}function G(e){var t=e._readableState;d("flow",t.flowing);while(t.flowing&&null!==e.read());}function $(e,t){return 0===t.length?null:(t.objectMode?i=t.buffer.shift():!e||e>=t.length?(i=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):i=t.buffer.consume(e,t.decoder),i);var i}function X(e){var i=e._readableState;d("endReadable",i.endEmitted),i.endEmitted||(i.ended=!0,t.nextTick(K,i,e))}function K(e,t){if(d("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var i=t._writableState;(!i||i.autoDestroy&&i.finished)&&t.destroy()}}function Y(e,t){for(var i=0,r=e.length;i=t.highWaterMark:t.length>0)||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?X(this):M(this),null;if(e=P(e,t),0===e&&t.ended)return 0===t.length&&X(this),null;var r,n=t.needReadable;return d("need readable",n),(0===t.length||t.length-e0?$(e,t):null,null===r?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),i!==e&&t.ended&&X(this)),null!==r&&this.emit("data",r),r},O.prototype._read=function(e){k(this,new j("_read()"))},O.prototype.pipe=function(e,i){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,d("pipe count=%d opts=%j",n.pipesCount,i);var o=(!i||!1!==i.end)&&e!==t.stdout&&e!==t.stderr,a=o?c:b;function l(e,t){d("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,p())}function c(){d("onend"),e.end()}n.endEmitted?t.nextTick(a):r.once("end",a),e.on("unpipe",l);var u=U(r);e.on("drain",u);var h=!1;function p(){d("cleanup"),e.removeListener("close",g),e.removeListener("finish",y),e.removeListener("drain",u),e.removeListener("error",m),e.removeListener("unpipe",l),r.removeListener("end",c),r.removeListener("end",b),r.removeListener("data",f),h=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||u()}function f(t){d("ondata");var i=e.write(t);d("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==Y(n.pipes,e))&&!h&&(d("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function m(t){d("onerror",t),b(),e.removeListener("error",m),0===s(e,"error")&&k(e,t)}function g(){e.removeListener("finish",y),b()}function y(){d("onfinish"),e.removeListener("close",g),b()}function b(){d("unpipe"),r.unpipe(e)}return r.on("data",f),T(e,"error",m),e.once("close",g),e.once("finish",y),e.emit("pipe",r),n.flowing||(d("pipe resume"),r.resume()),e},O.prototype.unpipe=function(e){var t=this._readableState,i={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,i)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,d("on readable",n.length,n.reading),n.length?M(this):n.reading||t.nextTick(V,this))),r},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(e,i){var r=o.prototype.removeListener.call(this,e,i);return"readable"===e&&t.nextTick(q,this),r},O.prototype.removeAllListeners=function(e){var i=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||t.nextTick(q,this),i},O.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!e.readableListening,W(this,e)),e.paused=!1,this},O.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(e){var t=this,i=this._readableState,r=!1;for(var n in e.on("end",(function(){if(d("wrapped end"),i.decoder&&!i.ended){var e=i.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(n){if(d("wrapped data"),i.decoder&&(n=i.decoder.write(n)),(!i.objectMode||null!==n&&void 0!==n)&&(i.objectMode||n&&n.length)){var s=t.push(n);s||(r=!0,e.pause())}})),e)void 0===this[n]&&"function"===typeof e[n]&&(this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n));for(var s=0;s-1))throw new C(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,i){i(new b("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,i){var r=this._writableState;return"function"===typeof e?(i=e,e=null,t=null):"function"===typeof t&&(i=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||W(this,r,i),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=p.destroy,E.prototype._undestroy=p.undestroy,E.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,e("_process"),"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"../errors":469,"./_stream_duplex":470,"./internal/streams/destroy":477,"./internal/streams/state":481,"./internal/streams/stream":482,_process:538,buffer:103,inherits:407,"util-deprecate":486}],475:[function(e,t,i){(function(i){(function(){"use strict";var r;function n(e,t,i){return t=s(t),t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function s(e){var t=o(e,"string");return"symbol"===typeof t?t:String(t)}function o(e,t){if("object"!==typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var a=e("./end-of-stream"),l=Symbol("lastResolve"),c=Symbol("lastReject"),u=Symbol("error"),d=Symbol("ended"),h=Symbol("lastPromise"),p=Symbol("handlePromise"),f=Symbol("stream");function m(e,t){return{value:e,done:t}}function g(e){var t=e[l];if(null!==t){var i=e[f].read();null!==i&&(e[h]=null,e[l]=null,e[c]=null,t(m(i,!1)))}}function y(e){i.nextTick(g,e)}function b(e,t){return function(i,r){e.then((function(){t[d]?i(m(void 0,!0)):t[p](i,r)}),r)}}var v=Object.getPrototypeOf((function(){})),w=Object.setPrototypeOf((r={get stream(){return this[f]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[d])return Promise.resolve(m(void 0,!0));if(this[f].destroyed)return new Promise((function(t,r){i.nextTick((function(){e[u]?r(e[u]):t(m(void 0,!0))}))}));var r,n=this[h];if(n)r=new Promise(b(n,this));else{var s=this[f].read();if(null!==s)return Promise.resolve(m(s,!1));r=new Promise(this[p])}return this[h]=r,r}},n(r,Symbol.asyncIterator,(function(){return this})),n(r,"return",(function(){var e=this;return new Promise((function(t,i){e[f].destroy(null,(function(e){e?i(e):t(m(void 0,!0))}))}))})),r),v),x=function(e){var t,i=Object.create(w,(t={},n(t,f,{value:e,writable:!0}),n(t,l,{value:null,writable:!0}),n(t,c,{value:null,writable:!0}),n(t,u,{value:null,writable:!0}),n(t,d,{value:e._readableState.endEmitted,writable:!0}),n(t,p,{value:function(e,t){var r=i[f].read();r?(i[h]=null,i[l]=null,i[c]=null,e(m(r,!1))):(i[l]=e,i[c]=t)},writable:!0}),t));return i[h]=null,a(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=i[c];return null!==t&&(i[h]=null,i[l]=null,i[c]=null,t(e)),void(i[u]=e)}var r=i[l];null!==r&&(i[h]=null,i[l]=null,i[c]=null,r(m(void 0,!0))),i[d]=!0})),e.on("readable",y.bind(null,i)),i};t.exports=x}).call(this)}).call(this,e("_process"))},{"./end-of-stream":478,_process:538}],476:[function(e,t,i){"use strict";function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)}return i}function n(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";var t=this.head,i=""+t.data;while(t=t.next)i+=e+t.data;return i}},{key:"concat",value:function(e){if(0===this.length)return h.alloc(0);var t=h.allocUnsafe(e>>>0),i=this.head,r=0;while(i)g(i.data,t,r),r+=i.data.length,i=i.next;return t}},{key:"consume",value:function(e,t){var i;return en.length?n.length:e;if(s===n.length?r+=n:r+=n.slice(0,e),e-=s,0===e){s===n.length?(++i,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=n.slice(s));break}++i}return this.length-=i,r}},{key:"_getBuffer",value:function(e){var t=h.allocUnsafe(e),i=this.head,r=1;i.data.copy(t),e-=i.data.length;while(i=i.next){var n=i.data,s=e>n.length?n.length:e;if(n.copy(t,t.length-e,0,s),e-=s,0===e){s===n.length?(++r,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=n.slice(s));break}++r}return this.length-=r,t}},{key:m,value:function(e,t){return f(this,n(n({},t),{},{depth:0,customInspect:!1}))}}]),e}()},{buffer:103,util:102}],477:[function(e,t,i){(function(e){(function(){"use strict";function i(t,i){var s=this,a=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return a||l?(i?i(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(o,this,t)):e.nextTick(o,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!i&&t?s._writableState?s._writableState.errorEmitted?e.nextTick(n,s):(s._writableState.errorEmitted=!0,e.nextTick(r,s,t)):e.nextTick(r,s,t):i?(e.nextTick(n,s),i(t)):e.nextTick(n,s)})),this)}function r(e,t){o(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function s(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(e,t){e.emit("error",t)}function a(e,t){var i=e._readableState,r=e._writableState;i&&i.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}t.exports={destroy:i,undestroy:s,errorOrDestroy:a}}).call(this)}).call(this,e("_process"))},{_process:538}],478:[function(e,t,i){"use strict";var r=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function n(e){var t=!1;return function(){if(!t){t=!0;for(var i=arguments.length,r=new Array(i),n=0;n0;return u(e,o,a,(function(e){r||(r=e),e&&s.forEach(d),o||(s.forEach(d),n(r))}))}));return t.reduce(h)}t.exports=f},{"../../../errors":469,"./end-of-stream":478}],481:[function(e,t,i){"use strict";var r=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;function n(e,t,i){return null!=e.highWaterMark?e.highWaterMark:t?e[i]:null}function s(e,t,i,s){var o=n(t,s,i);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0){var a=s?i:"highWaterMark";throw new r(a,o)}return Math.floor(o)}return e.objectMode?16:16384}t.exports={getHighWaterMark:s}},{"../../../errors":469}],482:[function(e,t,i){arguments[4][459][0].apply(i,arguments)},{dup:459,events:386}],483:[function(e,t,i){arguments[4][462][0].apply(i,arguments)},{dup:462,"safe-buffer":464}],484:[function(e,t,i){(function(t,r){(function(){var n=e("process/browser.js").nextTick,s=Function.prototype.apply,o=Array.prototype.slice,a={},l=0;function c(e,t){this._id=e,this._clearFn=t}i.setTimeout=function(){return new c(s.call(setTimeout,window,arguments),clearTimeout)},i.setInterval=function(){return new c(s.call(setInterval,window,arguments),clearInterval)},i.clearTimeout=i.clearInterval=function(e){e.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},i.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},i.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},i._unrefActive=i.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},i.setImmediate="function"===typeof t?t:function(e){var t=l++,r=!(arguments.length<2)&&o.call(arguments,1);return a[t]=!0,n((function(){a[t]&&(r?e.apply(null,r):e.call(null),i.clearImmediate(t))})),t},i.clearImmediate="function"===typeof r?r:function(e){delete a[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":442,timers:484}],485:[function(e,t,i){var r=e("buffer").Buffer;t.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"===typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(r.isBuffer(e)){for(var t=new Uint8Array(e.length),i=e.length,n=0;n=s)return e;switch(e){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch(t){return"[Circular]"}default:return e}})),a=r[i];i=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),v(t)?r.showHidden=t:t&&i._extend(r,t),k(r.showHidden)&&(r.showHidden=!1),k(r.depth)&&(r.depth=2),k(r.colors)&&(r.colors=!1),k(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),h(r,e,r.depth)}function c(e,t){var i=l.styles[t];return i?"["+l.colors[i][0]+"m"+e+"["+l.colors[i][1]+"m":e}function u(e,t){return e}function d(e){var t={};return e.forEach((function(e,i){t[e]=!0})),t}function h(e,t,r){if(e.customInspect&&t&&D(t.inspect)&&t.inspect!==i.inspect&&(!t.constructor||t.constructor.prototype!==t)){var n=t.inspect(r,e);return j(n)||(n=h(e,n,r)),n}var s=p(e,t);if(s)return s;var o=Object.keys(t),a=d(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),O(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return f(t);if(0===o.length){if(D(t)){var l=t.name?": "+t.name:"";return e.stylize("[Function"+l+"]","special")}if(S(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(E(t))return e.stylize(Date.prototype.toString.call(t),"date");if(O(t))return f(t)}var c,u="",v=!1,w=["{","}"];if(b(t)&&(v=!0,w=["[","]"]),D(t)){var x=t.name?": "+t.name:"";u=" [Function"+x+"]"}return S(t)&&(u=" "+RegExp.prototype.toString.call(t)),E(t)&&(u=" "+Date.prototype.toUTCString.call(t)),O(t)&&(u=" "+f(t)),0!==o.length||v&&0!=t.length?r<0?S(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=v?m(e,t,r,a,o):o.map((function(i){return g(e,t,r,a,i,v)})),e.seen.pop(),y(c,u,w)):w[0]+u+w[1]}function p(e,t){if(k(t))return e.stylize("undefined","undefined");if(j(t)){var i="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(i,"string")}return _(t)?e.stylize(""+t,"number"):v(t)?e.stylize(""+t,"boolean"):w(t)?e.stylize("null","null"):void 0}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,i,r,n){for(var s=[],o=0,a=t.length;o-1&&(a=s?a.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n"))):a=e.stylize("[Circular]","special")),k(o)){if(s&&n.match(/^\d+$/))return a;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+a}function y(e,t,i){var r=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return r>60?i[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+i[1]:i[0]+t+" "+e.join(", ")+" "+i[1]}function b(e){return Array.isArray(e)}function v(e){return"boolean"===typeof e}function w(e){return null===e}function x(e){return null==e}function _(e){return"number"===typeof e}function j(e){return"string"===typeof e}function C(e){return"symbol"===typeof e}function k(e){return void 0===e}function S(e){return T(e)&&"[object RegExp]"===N(e)}function T(e){return"object"===typeof e&&null!==e}function E(e){return T(e)&&"[object Date]"===N(e)}function O(e){return T(e)&&("[object Error]"===N(e)||e instanceof Error)}function D(e){return"function"===typeof e}function A(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function N(e){return Object.prototype.toString.call(e)}function I(e){return e<10?"0"+e.toString(10):e.toString(10)}i.debuglog=function(e){if(e=e.toUpperCase(),!s[e])if(o.test(e)){var r=t.pid;s[e]=function(){var t=i.format.apply(i,arguments);console.error("%s %d: %s",e,r,t)}}else s[e]=function(){};return s[e]},i.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},i.types=e("./support/types"),i.isArray=b,i.isBoolean=v,i.isNull=w,i.isNullOrUndefined=x,i.isNumber=_,i.isString=j,i.isSymbol=C,i.isUndefined=k,i.isRegExp=S,i.types.isRegExp=S,i.isObject=T,i.isDate=E,i.types.isDate=E,i.isError=O,i.types.isNativeError=O,i.isFunction=D,i.isPrimitive=A,i.isBuffer=e("./support/isBuffer");var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var e=new Date,t=[I(e.getHours()),I(e.getMinutes()),I(e.getSeconds())].join(":");return[e.getDate(),R[e.getMonth()],t].join(" ")}function F(e,t){return Object.prototype.hasOwnProperty.call(e,t)}i.log=function(){console.log("%s - %s",P(),i.format.apply(i,arguments))},i.inherits=e("inherits"),i._extend=function(e,t){if(!t||!T(t))return e;var i=Object.keys(t),r=i.length;while(r--)e[i[r]]=t[i[r]];return e};var M="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function L(e,t){if(!e){var i=new Error("Promise was rejected with a falsy value");i.reason=e,e=i}return t(e)}function B(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');function i(){for(var i=[],r=0;r-1?t:"Object"===t&&y(e)}return a?g(e):null}}).call(this)}).call(this,"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"available-typed-arrays":99,"call-bind":106,"call-bind/callBound":105,"for-each":387,gopd:391,"has-tostringtag/shams":396}],491:[function(e,t,i){(function(){"use strict";i.stripBOM=function(e){return"\ufeff"===e[0]?e.substring(1):e}}).call(this)},{}],492:[function(e,t,i){(function(){"use strict";var t,r,n,s,o,a={}.hasOwnProperty;t=e("xmlbuilder"),r=e("./defaults").defaults,s=function(e){return"string"===typeof e&&(e.indexOf("&")>=0||e.indexOf(">")>=0||e.indexOf("<")>=0)},o=function(e){return""},n=function(e){return e.replace("]]>","]]]]>")},i.Builder=function(){function e(e){var t,i,n;for(t in this.options={},i=r["0.2"],i)a.call(i,t)&&(n=i[t],this.options[t]=n);for(t in e)a.call(e,t)&&(n=e[t],this.options[t]=n)}return e.prototype.buildObject=function(e){var i,n,l,c,u;return i=this.options.attrkey,n=this.options.charkey,1===Object.keys(e).length&&this.options.rootName===r["0.2"].rootName?(u=Object.keys(e)[0],e=e[u]):u=this.options.rootName,l=function(e){return function(t,r){var c,u,d,h,p,f;if("object"!==typeof r)e.options.cdata&&s(r)?t.raw(o(r)):t.txt(r);else if(Array.isArray(r)){for(h in r)if(a.call(r,h))for(p in u=r[h],u)d=u[p],t=l(t.ele(p),d).up()}else for(p in r)if(a.call(r,p))if(u=r[p],p===i){if("object"===typeof u)for(c in u)f=u[c],t=t.att(c,f)}else if(p===n)t=e.options.cdata&&s(u)?t.raw(o(u)):t.txt(u);else if(Array.isArray(u))for(h in u)a.call(u,h)&&(d=u[h],t="string"===typeof d?e.options.cdata&&s(d)?t.ele(p).raw(o(d)).up():t.ele(p,d).up():l(t.ele(p),d).up());else"object"===typeof u?t=l(t.ele(p),u).up():"string"===typeof u&&e.options.cdata&&s(u)?t=t.ele(p).raw(o(u)).up():(null==u&&(u=""),t=t.ele(p,u.toString()).up());return t}}(this),c=t.create(u,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),l(c,e).end(this.options.renderOpts)},e}()}).call(this)},{"./defaults":493,xmlbuilder:529}],493:[function(e,t,i){(function(){i.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},{}],494:[function(e,t,i){(function(){"use strict";var t,r,n,s,o,a,l,c,u,d=function(e,t){return function(){return e.apply(t,arguments)}},h=function(e,t){for(var i in t)p.call(t,i)&&(e[i]=t[i]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},p={}.hasOwnProperty;c=e("sax"),s=e("events"),t=e("./bom"),l=e("./processors"),u=e("timers").setImmediate,r=e("./defaults").defaults,o=function(e){return"object"===typeof e&&null!=e&&0===Object.keys(e).length},a=function(e,t,i){var r,n,s;for(r=0,n=e.length;r0&&(c[e.options.childkey]=d),d=c;return r.length>0?e.assignOrPush(m,u,d):(e.options.explicitRoot&&(f=d,d={},n(d,u,f)),e.resultObject=d,e.saxParser.ended=!0,e.emit("end",e.resultObject))}}(this),i=function(e){return function(i){var n,s;if(s=r[r.length-1],s)return s[t]+=i,e.options.explicitChildren&&e.options.preserveChildrenOrder&&e.options.charsAsChildren&&(e.options.includeWhiteChars||""!==i.replace(/\\n/g,"").trim())&&(s[e.options.childkey]=s[e.options.childkey]||[],n={"#name":"__text__"},n[t]=i,e.options.normalize&&(n[t]=n[t].replace(/\s{2,}/g," ").trim()),s[e.options.childkey].push(n)),s}}(this),this.saxParser.ontext=i,this.saxParser.oncdata=function(e){return function(e){var t;if(t=i(e),t)return t.cdata=!0}}()},s.prototype.parseString=function(e,i){var r;null!=i&&"function"===typeof i&&(this.on("end",(function(e){return this.reset(),i(null,e)})),this.on("error",(function(e){return this.reset(),i(e)})));try{return e=e.toString(),""===e.trim()?(this.emit("end",null),!0):(e=t.stripBOM(e),this.options.async?(this.remaining=e,u(this.processAsync),this.saxParser):this.saxParser.write(e).close())}catch(n){if(r=n,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",r),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw r}},s.prototype.parseStringPromise=function(e){return new Promise(function(t){return function(i,r){return t.parseString(e,(function(e,t){return e?r(e):i(t)}))}}(this))},s}(s),i.parseString=function(e,t,r){var n,s,o;return null!=r?("function"===typeof r&&(n=r),"object"===typeof t&&(s=t)):("function"===typeof t&&(n=t),s={}),o=new i.Parser(s),o.parseString(e,n)},i.parseStringPromise=function(e,t){var r,n;return"object"===typeof t&&(r=t),n=new i.Parser(r),n.parseStringPromise(e)}}).call(this)},{"./bom":491,"./defaults":493,"./processors":495,events:386,sax:465,timers:484}],495:[function(e,t,i){(function(){"use strict";var e;e=new RegExp(/(?!xmlns)^.*:/),i.normalize=function(e){return e.toLowerCase()},i.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)},i.stripPrefix=function(t){return t.replace(e,"")},i.parseNumbers=function(e){return isNaN(e)||(e=e%1===0?parseInt(e,10):parseFloat(e)),e},i.parseBooleans=function(e){return/^(?:true|false)$/i.test(e)&&(e="true"===e.toLowerCase()),e}}).call(this)},{}],496:[function(e,t,i){(function(){"use strict";var t,r,n,s,o=function(e,t){for(var i in t)a.call(t,i)&&(e[i]=t[i]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},a={}.hasOwnProperty;r=e("./defaults"),t=e("./builder"),n=e("./parser"),s=e("./processors"),i.defaults=r.defaults,i.processors=s,i.ValidationError=function(e){function t(e){this.message=e}return o(t,e),t}(Error),i.Builder=t.Builder,i.Parser=n.Parser,i.parseString=n.parseString,i.parseStringPromise=n.parseStringPromise}).call(this)},{"./builder":492,"./defaults":493,"./parser":494,"./processors":495}],497:[function(e,t,i){(function(){t.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],498:[function(e,t,i){(function(){t.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},{}],499:[function(e,t,i){(function(){var e,i,r,n,s,o,a,l=[].slice,c={}.hasOwnProperty;e=function(){var e,t,i,r,n,o;if(o=arguments[0],n=2<=arguments.length?l.call(arguments,1):[],s(Object.assign))Object.assign.apply(null,arguments);else for(e=0,i=n.length;e":"attribute: {"+e+"}, parent: <"+this.parent.name+">"},e.prototype.isEqualNode=function(e){return e.namespaceURI===this.namespaceURI&&(e.prefix===this.prefix&&(e.localName===this.localName&&e.value===this.value))},e}()}).call(this)},{"./NodeType":498,"./XMLNode":520}],502:[function(e,t,i){(function(){var i,r,n=function(e,t){for(var i in t)s.call(t,i)&&(e[i]=t[i]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},s={}.hasOwnProperty;i=e("./NodeType"),r=e("./XMLCharacterData"),t.exports=function(e){function t(e,r){if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=i.CData,this.value=this.stringify.cdata(r)}return n(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.cdata(this,this.options.writer.filterOptions(e))},t}(r)}).call(this)},{"./NodeType":498,"./XMLCharacterData":503}],503:[function(e,t,i){(function(){var i,r=function(e,t){for(var i in t)n.call(t,i)&&(e[i]=t[i]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},n={}.hasOwnProperty;i=e("./XMLNode"),t.exports=function(e){function t(e){t.__super__.constructor.call(this,e),this.value=""}return r(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return this.value},set:function(e){return this.value=e||""}}),Object.defineProperty(t.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(t.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||""}}),t.prototype.clone=function(){return Object.create(this)},t.prototype.substringData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.appendData=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.insertData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.deleteData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.replaceData=function(e,t,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isEqualNode=function(e){return!!t.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)&&e.data===this.data},t}(i)}).call(this)},{"./XMLNode":520}],504:[function(e,t,i){(function(){var i,r,n=function(e,t){for(var i in t)s.call(t,i)&&(e[i]=t[i]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},s={}.hasOwnProperty;i=e("./NodeType"),r=e("./XMLCharacterData"),t.exports=function(e){function t(e,r){if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=i.Comment,this.value=this.stringify.comment(r)}return n(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.comment(this,this.options.writer.filterOptions(e))},t}(r)}).call(this)},{"./NodeType":498,"./XMLCharacterData":503}],505:[function(e,t,i){(function(){var i,r;i=e("./XMLDOMErrorHandler"),r=e("./XMLDOMStringList"),t.exports=function(){function e(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new i,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(e.prototype,"parameterNames",{get:function(){return new r(Object.keys(this.defaultParams))}}),e.prototype.getParameter=function(e){return this.params.hasOwnProperty(e)?this.params[e]:null},e.prototype.canSetParameter=function(e,t){return!0},e.prototype.setParameter=function(e,t){return null!=t?this.params[e]=t:delete this.params[e]},e}()}).call(this)},{"./XMLDOMErrorHandler":506,"./XMLDOMStringList":508}],506:[function(e,t,i){(function(){t.exports=function(){function e(){}return e.prototype.handleError=function(e){throw new Error(e)},e}()}).call(this)},{}],507:[function(e,t,i){(function(){t.exports=function(){function e(){}return e.prototype.hasFeature=function(e,t){return!0},e.prototype.createDocumentType=function(e,t,i){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(e,t,i){throw new Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(e){throw new Error("This DOM method is not implemented.")},e.prototype.getFeature=function(e,t){throw new Error("This DOM method is not implemented.")},e}()}).call(this)},{}],508:[function(e,t,i){(function(){t.exports=function(){function e(e){this.arr=e||[]}return Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(e){return this.arr[e]||null},e.prototype.contains=function(e){return-1!==this.arr.indexOf(e)},e}()}).call(this)},{}],509:[function(e,t,i){(function(){var i,r,n=function(e,t){for(var i in t)s.call(t,i)&&(e[i]=t[i]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},s={}.hasOwnProperty;r=e("./XMLNode"),i=e("./NodeType"),t.exports=function(e){function t(e,r,n,s,o,a){if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing DTD element name. "+this.debugInfo());if(null==n)throw new Error("Missing DTD attribute name. "+this.debugInfo(r));if(!s)throw new Error("Missing DTD attribute type. "+this.debugInfo(r));if(!o)throw new Error("Missing DTD attribute default. "+this.debugInfo(r));if(0!==o.indexOf("#")&&(o="#"+o),!o.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(r));if(a&&!o.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(r));this.elementName=this.stringify.name(r),this.type=i.AttributeDeclaration,this.attributeName=this.stringify.name(n),this.attributeType=this.stringify.dtdAttType(s),a&&(this.defaultValue=this.stringify.dtdAttDefault(a)),this.defaultValueType=o}return n(t,e),t.prototype.toString=function(e){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(e))},t}(r)}).call(this)},{"./NodeType":498,"./XMLNode":520}],510:[function(e,t,i){(function(){var i,r,n=function(e,t){for(var i in t)s.call(t,i)&&(e[i]=t[i]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},s={}.hasOwnProperty;r=e("./XMLNode"),i=e("./NodeType"),t.exports=function(e){function t(e,r,n){if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing DTD element name. "+this.debugInfo());n||(n="(#PCDATA)"),Array.isArray(n)&&(n="("+n.join(",")+")"),this.name=this.stringify.name(r),this.type=i.ElementDeclaration,this.value=this.stringify.dtdElementValue(n)}return n(t,e),t.prototype.toString=function(e){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(e))},t}(r)}).call(this)},{"./NodeType":498,"./XMLNode":520}],511:[function(e,t,i){(function(){var i,r,n,s=function(e,t){for(var i in t)o.call(t,i)&&(e[i]=t[i]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},o={}.hasOwnProperty;n=e("./Utility").isObject,r=e("./XMLNode"),i=e("./NodeType"),t.exports=function(e){function t(e,r,s,o){if(t.__super__.constructor.call(this,e),null==s)throw new Error("Missing DTD entity name. "+this.debugInfo(s));if(null==o)throw new Error("Missing DTD entity value. "+this.debugInfo(s));if(this.pe=!!r,this.name=this.stringify.name(s),this.type=i.EntityDeclaration,n(o)){if(!o.pubID&&!o.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(s));if(o.pubID&&!o.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(s));if(this.internal=!1,null!=o.pubID&&(this.pubID=this.stringify.dtdPubID(o.pubID)),null!=o.sysID&&(this.sysID=this.stringify.dtdSysID(o.sysID)),null!=o.nData&&(this.nData=this.stringify.dtdNData(o.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(s))}else this.value=this.stringify.dtdEntityValue(o),this.internal=!0}return s(t,e),Object.defineProperty(t.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(t.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(t.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(t.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(t.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(t.prototype,"xmlVersion",{get:function(){return null}}),t.prototype.toString=function(e){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(e))},t}(r)}).call(this)},{"./NodeType":498,"./Utility":499,"./XMLNode":520}],512:[function(e,t,i){(function(){var i,r,n=function(e,t){for(var i in t)s.call(t,i)&&(e[i]=t[i]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},s={}.hasOwnProperty;r=e("./XMLNode"),i=e("./NodeType"),t.exports=function(e){function t(e,r,n){if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing DTD notation name. "+this.debugInfo(r));if(!n.pubID&&!n.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(r));this.name=this.stringify.name(r),this.type=i.NotationDeclaration,null!=n.pubID&&(this.pubID=this.stringify.dtdPubID(n.pubID)),null!=n.sysID&&(this.sysID=this.stringify.dtdSysID(n.sysID))}return n(t,e),Object.defineProperty(t.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(t.prototype,"systemId",{get:function(){return this.sysID}}),t.prototype.toString=function(e){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(e))},t}(r)}).call(this)},{"./NodeType":498,"./XMLNode":520}],513:[function(e,t,i){(function(){var i,r,n,s=function(e,t){for(var i in t)o.call(t,i)&&(e[i]=t[i]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},o={}.hasOwnProperty;n=e("./Utility").isObject,r=e("./XMLNode"),i=e("./NodeType"),t.exports=function(e){function t(e,r,s,o){var a;t.__super__.constructor.call(this,e),n(r)&&(a=r,r=a.version,s=a.encoding,o=a.standalone),r||(r="1.0"),this.type=i.Declaration,this.version=this.stringify.xmlVersion(r),null!=s&&(this.encoding=this.stringify.xmlEncoding(s)),null!=o&&(this.standalone=this.stringify.xmlStandalone(o))}return s(t,e),t.prototype.toString=function(e){return this.options.writer.declaration(this,this.options.writer.filterOptions(e))},t}(r)}).call(this)},{"./NodeType":498,"./Utility":499,"./XMLNode":520}],514:[function(e,t,i){(function(){var i,r,n,s,o,a,l,c,u=function(e,t){for(var i in t)d.call(t,i)&&(e[i]=t[i]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},d={}.hasOwnProperty;c=e("./Utility").isObject,l=e("./XMLNode"),i=e("./NodeType"),r=e("./XMLDTDAttList"),s=e("./XMLDTDEntity"),n=e("./XMLDTDElement"),o=e("./XMLDTDNotation"),a=e("./XMLNamedNodeMap"),t.exports=function(e){function t(e,r,n){var s,o,a,l,u,d;if(t.__super__.constructor.call(this,e),this.type=i.DocType,e.children)for(l=e.children,o=0,a=l.length;o=0)this.up();return this.onEnd()},e.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},e.prototype.openNode=function(e){var t,n,s,o;if(!e.isOpen){if(this.root||0!==this.currentLevel||e.type!==i.Element||(this.root=e),n="",e.type===i.Element){for(s in this.writerOptions.state=r.OpenTag,n=this.writer.indent(e,this.writerOptions,this.currentLevel)+"<"+e.name,o=e.attribs,o)k.call(o,s)&&(t=o[s],n+=this.writer.attribute(t,this.writerOptions,this.currentLevel));n+=(e.children?">":"/>")+this.writer.endline(e,this.writerOptions,this.currentLevel),this.writerOptions.state=r.InsideTag}else this.writerOptions.state=r.OpenTag,n=this.writer.indent(e,this.writerOptions,this.currentLevel)+""),n+=this.writer.endline(e,this.writerOptions,this.currentLevel);return this.onData(n,this.currentLevel),e.isOpen=!0}},e.prototype.closeNode=function(e){var t;if(!e.isClosed)return t="",this.writerOptions.state=r.CloseTag,t=e.type===i.Element?this.writer.indent(e,this.writerOptions,this.currentLevel)+""+this.writer.endline(e,this.writerOptions,this.currentLevel):this.writer.indent(e,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(e,this.writerOptions,this.currentLevel),this.writerOptions.state=r.None,this.onData(t,this.currentLevel),e.isClosed=!0},e.prototype.onData=function(e,t){return this.documentStarted=!0,this.onDataCallback(e,t+1)},e.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},e.prototype.debugInfo=function(e){return null==e?"":"node: <"+e+">"},e.prototype.ele=function(){return this.element.apply(this,arguments)},e.prototype.nod=function(e,t,i){return this.node(e,t,i)},e.prototype.txt=function(e){return this.text(e)},e.prototype.dat=function(e){return this.cdata(e)},e.prototype.com=function(e){return this.comment(e)},e.prototype.ins=function(e,t){return this.instruction(e,t)},e.prototype.dec=function(e,t,i){return this.declaration(e,t,i)},e.prototype.dtd=function(e,t,i){return this.doctype(e,t,i)},e.prototype.e=function(e,t,i){return this.element(e,t,i)},e.prototype.n=function(e,t,i){return this.node(e,t,i)},e.prototype.t=function(e){return this.text(e)},e.prototype.d=function(e){return this.cdata(e)},e.prototype.c=function(e){return this.comment(e)},e.prototype.r=function(e){return this.raw(e)},e.prototype.i=function(e,t){return this.instruction(e,t)},e.prototype.att=function(){return this.currentNode&&this.currentNode.type===i.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.a=function(){return this.currentNode&&this.currentNode.type===i.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.ent=function(e,t){return this.entity(e,t)},e.prototype.pent=function(e,t){return this.pEntity(e,t)},e.prototype.not=function(e,t){return this.notation(e,t)},e}()}).call(this)},{"./NodeType":498,"./Utility":499,"./WriterState":500,"./XMLAttribute":501,"./XMLCData":502,"./XMLComment":504,"./XMLDTDAttList":509,"./XMLDTDElement":510,"./XMLDTDEntity":511,"./XMLDTDNotation":512,"./XMLDeclaration":513,"./XMLDocType":514,"./XMLDocument":515,"./XMLElement":518,"./XMLProcessingInstruction":522,"./XMLRaw":523,"./XMLStringWriter":525,"./XMLStringifier":526,"./XMLText":527}],517:[function(e,t,i){(function(){var i,r,n=function(e,t){for(var i in t)s.call(t,i)&&(e[i]=t[i]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},s={}.hasOwnProperty;r=e("./XMLNode"),i=e("./NodeType"),t.exports=function(e){function t(e){t.__super__.constructor.call(this,e),this.type=i.Dummy}return n(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return""},t}(r)}).call(this)},{"./NodeType":498,"./XMLNode":520}],518:[function(e,t,i){(function(){var i,r,n,s,o,a,l,c,u=function(e,t){for(var i in t)d.call(t,i)&&(e[i]=t[i]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},d={}.hasOwnProperty;c=e("./Utility"),l=c.isObject,a=c.isFunction,o=c.getValue,s=e("./XMLNode"),i=e("./NodeType"),r=e("./XMLAttribute"),n=e("./XMLNamedNodeMap"),t.exports=function(e){function t(e,r,n){var s,o,a,l;if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(r),this.type=i.Element,this.attribs={},this.schemaTypeInfo=null,null!=n&&this.attribute(n),e.type===i.Document&&(this.isRoot=!0,this.documentObject=e,e.rootObject=this,e.children))for(l=e.children,o=0,a=l.length;o=n;i=0<=n?++r:--r)if(!this.attribs[i].isEqualNode(e.attribs[i]))return!1;return!0},t}(s)}).call(this)},{"./NodeType":498,"./Utility":499,"./XMLAttribute":501,"./XMLNamedNodeMap":519,"./XMLNode":520}],519:[function(e,t,i){(function(){t.exports=function(){function e(e){this.nodes=e}return Object.defineProperty(e.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),e.prototype.clone=function(){return this.nodes=null},e.prototype.getNamedItem=function(e){return this.nodes[e]},e.prototype.setNamedItem=function(e){var t;return t=this.nodes[e.nodeName],this.nodes[e.nodeName]=e,t||null},e.prototype.removeNamedItem=function(e){var t;return t=this.nodes[e],delete this.nodes[e],t||null},e.prototype.item=function(e){return this.nodes[Object.keys(this.nodes)[e]]||null},e.prototype.getNamedItemNS=function(e,t){throw new Error("This DOM method is not implemented.")},e.prototype.setNamedItemNS=function(e){throw new Error("This DOM method is not implemented.")},e.prototype.removeNamedItemNS=function(e,t){throw new Error("This DOM method is not implemented.")},e}()}).call(this)},{}],520:[function(e,t,i){(function(){var i,r,n,s,o,a,l,c,u,d,h,p,f,m,g,y,b,v={}.hasOwnProperty;b=e("./Utility"),y=b.isObject,g=b.isFunction,m=b.isEmpty,f=b.getValue,c=null,n=null,s=null,o=null,a=null,h=null,p=null,d=null,l=null,r=null,u=null,i=null,t.exports=function(){function t(t){this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,c||(c=e("./XMLElement"),n=e("./XMLCData"),s=e("./XMLComment"),o=e("./XMLDeclaration"),a=e("./XMLDocType"),h=e("./XMLRaw"),p=e("./XMLText"),d=e("./XMLProcessingInstruction"),l=e("./XMLDummy"),r=e("./NodeType"),u=e("./XMLNodeList"),e("./XMLNamedNodeMap"),i=e("./DocumentPosition"))}return Object.defineProperty(t.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(t.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new u(this.children)),this.childNodeList}}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){var e;return e=this.parent.children.indexOf(this),this.parent.children[e-1]||null}}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){var e;return e=this.parent.children.indexOf(this),this.parent.children[e+1]||null}}),Object.defineProperty(t.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(t.prototype,"textContent",{get:function(){var e,t,i,n,s;if(this.nodeType===r.Element||this.nodeType===r.DocumentFragment){for(s="",n=this.children,t=0,i=n.length;t":(null!=(i=this.parent)?i.name:void 0)?"node: <"+e+">, parent: <"+this.parent.name+">":"node: <"+e+">":""},t.prototype.ele=function(e,t,i){return this.element(e,t,i)},t.prototype.nod=function(e,t,i){return this.node(e,t,i)},t.prototype.txt=function(e){return this.text(e)},t.prototype.dat=function(e){return this.cdata(e)},t.prototype.com=function(e){return this.comment(e)},t.prototype.ins=function(e,t){return this.instruction(e,t)},t.prototype.doc=function(){return this.document()},t.prototype.dec=function(e,t,i){return this.declaration(e,t,i)},t.prototype.e=function(e,t,i){return this.element(e,t,i)},t.prototype.n=function(e,t,i){return this.node(e,t,i)},t.prototype.t=function(e){return this.text(e)},t.prototype.d=function(e){return this.cdata(e)},t.prototype.c=function(e){return this.comment(e)},t.prototype.r=function(e){return this.raw(e)},t.prototype.i=function(e,t){return this.instruction(e,t)},t.prototype.u=function(){return this.up()},t.prototype.importXMLBuilder=function(e){return this.importDocument(e)},t.prototype.replaceChild=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.removeChild=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.appendChild=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.hasChildNodes=function(){return 0!==this.children.length},t.prototype.cloneNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isSupported=function(e,t){return!0},t.prototype.hasAttributes=function(){return 0!==this.attribs.length},t.prototype.compareDocumentPosition=function(e){var t,r;return t=this,t===e?0:this.document()!==e.document()?(r=i.Disconnected|i.ImplementationSpecific,Math.random()<.5?r|=i.Preceding:r|=i.Following,r):t.isAncestor(e)?i.Contains|i.Preceding:t.isDescendant(e)?i.Contains|i.Following:t.isPreceding(e)?i.Preceding:i.Following},t.prototype.isSameNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.lookupPrefix=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isDefaultNamespace=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.lookupNamespaceURI=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isEqualNode=function(e){var t,i,r;if(e.nodeType!==this.nodeType)return!1;if(e.children.length!==this.children.length)return!1;for(t=i=0,r=this.children.length-1;0<=r?i<=r:i>=r;t=0<=r?++i:--i)if(!this.children[t].isEqualNode(e.children[t]))return!1;return!0},t.prototype.getFeature=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.setUserData=function(e,t,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getUserData=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.contains=function(e){return!!e&&(e===this||this.isDescendant(e))},t.prototype.isDescendant=function(e){var t,i,r,n,s;for(s=this.children,r=0,n=s.length;ri},t.prototype.treePosition=function(e){var t,i;return i=0,t=!1,this.foreachTreeNode(this.document(),(function(r){if(i++,!t&&r===e)return t=!0})),t?i:-1},t.prototype.foreachTreeNode=function(e,t){var i,r,n,s,o;for(e||(e=this.document()),s=e.children,r=0,n=s.length;r0){for(this.stream.write(" ["),this.stream.write(this.endline(e,t,i)),t.state=r.InsideTag,a=e.children,s=0,o=a.length;s"),this.stream.write(this.endline(e,t,i)),t.state=r.None,this.closeNode(e,t,i)},t.prototype.element=function(e,t,n){var s,a,l,c,u,d,h,p,f;for(h in n||(n=0),this.openNode(e,t,n),t.state=r.OpenTag,this.stream.write(this.indent(e,t,n)+"<"+e.name),p=e.attribs,p)o.call(p,h)&&(s=p[h],this.attribute(s,t,n));if(l=e.children.length,c=0===l?null:e.children[0],0===l||e.children.every((function(e){return(e.type===i.Text||e.type===i.Raw)&&""===e.value})))t.allowEmpty?(this.stream.write(">"),t.state=r.CloseTag,this.stream.write("")):(t.state=r.CloseTag,this.stream.write(t.spaceBeforeSlash+"/>"));else if(!t.pretty||1!==l||c.type!==i.Text&&c.type!==i.Raw||null==c.value){for(this.stream.write(">"+this.endline(e,t,n)),t.state=r.InsideTag,f=e.children,u=0,d=f.length;u")}else this.stream.write(">"),t.state=r.InsideTag,t.suppressPrettyCount++,!0,this.writeChildNode(c,t,n+1),t.suppressPrettyCount--,!1,t.state=r.CloseTag,this.stream.write("");return this.stream.write(this.endline(e,t,n)),t.state=r.None,this.closeNode(e,t,n)},t.prototype.processingInstruction=function(e,i,r){return this.stream.write(t.__super__.processingInstruction.call(this,e,i,r))},t.prototype.raw=function(e,i,r){return this.stream.write(t.__super__.raw.call(this,e,i,r))},t.prototype.text=function(e,i,r){return this.stream.write(t.__super__.text.call(this,e,i,r))},t.prototype.dtdAttList=function(e,i,r){return this.stream.write(t.__super__.dtdAttList.call(this,e,i,r))},t.prototype.dtdElement=function(e,i,r){return this.stream.write(t.__super__.dtdElement.call(this,e,i,r))},t.prototype.dtdEntity=function(e,i,r){return this.stream.write(t.__super__.dtdEntity.call(this,e,i,r))},t.prototype.dtdNotation=function(e,i,r){return this.stream.write(t.__super__.dtdNotation.call(this,e,i,r))},t}(n)}).call(this)},{"./NodeType":498,"./WriterState":500,"./XMLWriterBase":528}],525:[function(e,t,i){(function(){var i,r=function(e,t){for(var i in t)n.call(t,i)&&(e[i]=t[i]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},n={}.hasOwnProperty;i=e("./XMLWriterBase"),t.exports=function(e){function t(e){t.__super__.constructor.call(this,e)}return r(t,e),t.prototype.document=function(e,t){var i,r,n,s,o;for(t=this.filterOptions(t),s="",o=e.children,r=0,n=o.length;r","]]]]>"),this.assertLegalChar(e))},t.prototype.comment=function(e){if(this.options.noValidation)return e;if(e=""+e||"",e.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+e);return this.assertLegalChar(e)},t.prototype.raw=function(e){return this.options.noValidation?e:""+e||""},t.prototype.attValue=function(e){return this.options.noValidation?e:this.assertLegalChar(this.attEscape(e=""+e||""))},t.prototype.insTarget=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.insValue=function(e){if(this.options.noValidation)return e;if(e=""+e||"",e.match(/\?>/))throw new Error("Invalid processing instruction value: "+e);return this.assertLegalChar(e)},t.prototype.xmlVersion=function(e){if(this.options.noValidation)return e;if(e=""+e||"",!e.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+e);return e},t.prototype.xmlEncoding=function(e){if(this.options.noValidation)return e;if(e=""+e||"",!e.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+e);return this.assertLegalChar(e)},t.prototype.xmlStandalone=function(e){return this.options.noValidation?e:e?"yes":"no"},t.prototype.dtdPubID=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdSysID=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdElementValue=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdAttType=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdAttDefault=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdEntityValue=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdNData=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.convertAttKey="@",t.prototype.convertPIKey="?",t.prototype.convertTextKey="#text",t.prototype.convertCDataKey="#cdata",t.prototype.convertCommentKey="#comment",t.prototype.convertRawKey="#raw",t.prototype.assertLegalChar=function(e){var t,i;if(this.options.noValidation)return e;if(t="","1.0"===this.options.version){if(t=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,i=e.match(t))throw new Error("Invalid character in string: "+e+" at index "+i.index)}else if("1.1"===this.options.version&&(t=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,i=e.match(t)))throw new Error("Invalid character in string: "+e+" at index "+i.index);return e},t.prototype.assertLegalName=function(e){var t;if(this.options.noValidation)return e;if(this.assertLegalChar(e),t=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!e.match(t))throw new Error("Invalid character in name");return e},t.prototype.textEscape=function(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&").replace(//g,">").replace(/\r/g," "))},t.prototype.attEscape=function(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&").replace(/0)?new Array(r).join(t.indent):""},e.prototype.endline=function(e,t,i){return!t.pretty||t.suppressPrettyCount?"":t.newline},e.prototype.attribute=function(e,t,i){var r;return this.openAttribute(e,t,i),r=" "+e.name+'="'+e.value+'"',this.closeAttribute(e,t,i),r},e.prototype.cdata=function(e,t,i){var n;return this.openNode(e,t,i),t.state=r.OpenTag,n=this.indent(e,t,i)+""+this.endline(e,t,i),t.state=r.None,this.closeNode(e,t,i),n},e.prototype.comment=function(e,t,i){var n;return this.openNode(e,t,i),t.state=r.OpenTag,n=this.indent(e,t,i)+"\x3c!-- ",t.state=r.InsideTag,n+=e.value,t.state=r.CloseTag,n+=" --\x3e"+this.endline(e,t,i),t.state=r.None,this.closeNode(e,t,i),n},e.prototype.declaration=function(e,t,i){var n;return this.openNode(e,t,i),t.state=r.OpenTag,n=this.indent(e,t,i)+"",n+=this.endline(e,t,i),t.state=r.None,this.closeNode(e,t,i),n},e.prototype.docType=function(e,t,i){var n,s,o,a,l;if(i||(i=0),this.openNode(e,t,i),t.state=r.OpenTag,a=this.indent(e,t,i),a+="0){for(a+=" [",a+=this.endline(e,t,i),t.state=r.InsideTag,l=e.children,s=0,o=l.length;s",a+=this.endline(e,t,i),t.state=r.None,this.closeNode(e,t,i),a},e.prototype.element=function(e,t,n){var o,a,l,c,u,d,h,p,f,m,g,y,b,v;for(f in n||(n=0),m=!1,g="",this.openNode(e,t,n),t.state=r.OpenTag,g+=this.indent(e,t,n)+"<"+e.name,y=e.attribs,y)s.call(y,f)&&(o=y[f],g+=this.attribute(o,t,n));if(l=e.children.length,c=0===l?null:e.children[0],0===l||e.children.every((function(e){return(e.type===i.Text||e.type===i.Raw)&&""===e.value})))t.allowEmpty?(g+=">",t.state=r.CloseTag,g+=""+this.endline(e,t,n)):(t.state=r.CloseTag,g+=t.spaceBeforeSlash+"/>"+this.endline(e,t,n));else if(!t.pretty||1!==l||c.type!==i.Text&&c.type!==i.Raw||null==c.value){if(t.dontPrettyTextNodes)for(b=e.children,u=0,h=b.length;u"+this.endline(e,t,n),t.state=r.InsideTag,v=e.children,d=0,p=v.length;d",m&&t.suppressPrettyCount--,g+=this.endline(e,t,n),t.state=r.None}else g+=">",t.state=r.InsideTag,t.suppressPrettyCount++,m=!0,g+=this.writeChildNode(c,t,n+1),t.suppressPrettyCount--,m=!1,t.state=r.CloseTag,g+=""+this.endline(e,t,n);return this.closeNode(e,t,n),g},e.prototype.writeChildNode=function(e,t,r){switch(e.type){case i.CData:return this.cdata(e,t,r);case i.Comment:return this.comment(e,t,r);case i.Element:return this.element(e,t,r);case i.Raw:return this.raw(e,t,r);case i.Text:return this.text(e,t,r);case i.ProcessingInstruction:return this.processingInstruction(e,t,r);case i.Dummy:return"";case i.Declaration:return this.declaration(e,t,r);case i.DocType:return this.docType(e,t,r);case i.AttributeDeclaration:return this.dtdAttList(e,t,r);case i.ElementDeclaration:return this.dtdElement(e,t,r);case i.EntityDeclaration:return this.dtdEntity(e,t,r);case i.NotationDeclaration:return this.dtdNotation(e,t,r);default:throw new Error("Unknown XML node type: "+e.constructor.name)}},e.prototype.processingInstruction=function(e,t,i){var n;return this.openNode(e,t,i),t.state=r.OpenTag,n=this.indent(e,t,i)+"",n+=this.endline(e,t,i),t.state=r.None,this.closeNode(e,t,i),n},e.prototype.raw=function(e,t,i){var n;return this.openNode(e,t,i),t.state=r.OpenTag,n=this.indent(e,t,i),t.state=r.InsideTag,n+=e.value,t.state=r.CloseTag,n+=this.endline(e,t,i),t.state=r.None,this.closeNode(e,t,i),n},e.prototype.text=function(e,t,i){var n;return this.openNode(e,t,i),t.state=r.OpenTag,n=this.indent(e,t,i),t.state=r.InsideTag,n+=e.value,t.state=r.CloseTag,n+=this.endline(e,t,i),t.state=r.None,this.closeNode(e,t,i),n},e.prototype.dtdAttList=function(e,t,i){var n;return this.openNode(e,t,i),t.state=r.OpenTag,n=this.indent(e,t,i)+""+this.endline(e,t,i),t.state=r.None,this.closeNode(e,t,i),n},e.prototype.dtdElement=function(e,t,i){var n;return this.openNode(e,t,i),t.state=r.OpenTag,n=this.indent(e,t,i)+""+this.endline(e,t,i),t.state=r.None,this.closeNode(e,t,i),n},e.prototype.dtdEntity=function(e,t,i){var n;return this.openNode(e,t,i),t.state=r.OpenTag,n=this.indent(e,t,i)+""+this.endline(e,t,i),t.state=r.None,this.closeNode(e,t,i),n},e.prototype.dtdNotation=function(e,t,i){var n;return this.openNode(e,t,i),t.state=r.OpenTag,n=this.indent(e,t,i)+""+this.endline(e,t,i),t.state=r.None,this.closeNode(e,t,i),n},e.prototype.openNode=function(e,t,i){},e.prototype.closeNode=function(e,t,i){},e.prototype.openAttribute=function(e,t,i){},e.prototype.closeAttribute=function(e,t,i){},e}()}).call(this)},{"./NodeType":498,"./Utility":499,"./WriterState":500,"./XMLCData":502,"./XMLComment":504,"./XMLDTDAttList":509,"./XMLDTDElement":510,"./XMLDTDEntity":511,"./XMLDTDNotation":512,"./XMLDeclaration":513,"./XMLDocType":514,"./XMLDummy":517,"./XMLElement":518,"./XMLProcessingInstruction":522,"./XMLRaw":523,"./XMLText":527}],529:[function(e,t,i){(function(){var i,r,n,s,o,a,l,c,u,d;d=e("./Utility"),c=d.assign,u=d.isFunction,n=e("./XMLDOMImplementation"),s=e("./XMLDocument"),o=e("./XMLDocumentCB"),l=e("./XMLStringWriter"),a=e("./XMLStreamWriter"),i=e("./NodeType"),r=e("./WriterState"),t.exports.create=function(e,t,i,r){var n,o;if(null==e)throw new Error("Root element needs a name.");return r=c({},t,i,r),n=new s(r),o=n.element(e),r.headless||(n.declaration(r),null==r.pubID&&null==r.sysID||n.dtd(r)),o},t.exports.begin=function(e,t,i){var r;return u(e)&&(r=[e,t],t=r[0],i=r[1],e={}),t?new o(e,t,i):new s(e)},t.exports.stringWriter=function(e){return new l(e)},t.exports.streamWriter=function(e,t){return new a(e,t)},t.exports.implementation=new n,t.exports.nodeType=i,t.exports.writerState=r}).call(this)},{"./NodeType":498,"./Utility":499,"./WriterState":500,"./XMLDOMImplementation":507,"./XMLDocument":515,"./XMLDocumentCB":516,"./XMLStreamWriter":524,"./XMLStringWriter":525}],530:[function(e,t,i){t.exports=n;var r=Object.prototype.hasOwnProperty;function n(){for(var e={},t=0;tl?t=e(t):t.length>5]|=128<>>9<<4)]=t;for(var i=1732584193,r=-271733879,n=-1732584194,s=271733878,d=0;d>16)+(t>>16)+(i>>16);return r<<16|65535&i}function d(e,t){return e<>>32-t}t.exports=function(e){return r.hash(e,n,16)}},{"./helpers":532}],534:[function(e,t,i){"use strict";var r=e("./helpers");function n(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var i=Array(80),r=1732584193,n=-271733879,c=-1732584194,u=271733878,d=-1009589776,h=0;h>16)+(t>>16)+(i>>16);return r<<16|65535&i}function l(e,t){return e<>>32-t}t.exports=function(e){return r.hash(e,n,20,!0)}},{"./helpers":532}],535:[function(e,t,i){"use strict";var r=e("./helpers"),n=function(e,t){var i=(65535&e)+(65535&t),r=(e>>16)+(t>>16)+(i>>16);return r<<16|65535&i},s=function(e,t){return e>>>t|e<<32-t},o=function(e,t){return e>>>t},a=function(e,t,i){return e&t^~e&i},l=function(e,t,i){return e&t^e&i^t&i},c=function(e){return s(e,2)^s(e,13)^s(e,22)},u=function(e){return s(e,6)^s(e,11)^s(e,25)},d=function(e){return s(e,7)^s(e,18)^o(e,3)},h=function(e){return s(e,17)^s(e,19)^o(e,10)},p=function(e,t){var i,r,s,o,p,f,m,g,y,b,v=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),w=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),x=new Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var _=0;_e._pos){var s=r.substr(e._pos);if("x-user-defined"===e._charset){for(var o=new n(s.length),a=0;ae._pos&&(e.push(new n(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){e.push(null)},c.readAsArrayBuffer(r);break}e._xhr.readyState===l.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this)}).call(this,e("_process"),"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},e("buffer").Buffer)},{"./capability":540,_process:538,buffer:103,"core-js/modules/es.array-buffer.slice.js":309,"core-js/modules/es.array.iterator.js":316,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.promise.js":333,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.match.js":344,"core-js/modules/es.string.split.js":347,"core-js/modules/es.typed-array.copy-within.js":356,"core-js/modules/es.typed-array.every.js":357,"core-js/modules/es.typed-array.fill.js":358,"core-js/modules/es.typed-array.filter.js":359,"core-js/modules/es.typed-array.find-index.js":360,"core-js/modules/es.typed-array.find.js":361,"core-js/modules/es.typed-array.for-each.js":362,"core-js/modules/es.typed-array.includes.js":363,"core-js/modules/es.typed-array.index-of.js":364,"core-js/modules/es.typed-array.iterator.js":365,"core-js/modules/es.typed-array.join.js":366,"core-js/modules/es.typed-array.last-index-of.js":367,"core-js/modules/es.typed-array.map.js":368,"core-js/modules/es.typed-array.reduce-right.js":369,"core-js/modules/es.typed-array.reduce.js":370,"core-js/modules/es.typed-array.reverse.js":371,"core-js/modules/es.typed-array.set.js":372,"core-js/modules/es.typed-array.slice.js":373,"core-js/modules/es.typed-array.some.js":374,"core-js/modules/es.typed-array.sort.js":375,"core-js/modules/es.typed-array.subarray.js":376,"core-js/modules/es.typed-array.to-locale-string.js":377,"core-js/modules/es.typed-array.to-string.js":378,"core-js/modules/es.typed-array.uint8-array.js":379,"core-js/modules/web.dom-collections.for-each.js":380,inherits:407,"readable-stream":463}],543:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/helpers/typeof"));e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.search.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.string.split.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.array.join.js"),e("core-js/modules/es.string.trim.js"),e("core-js/modules/es.string.match.js"),e("core-js/modules/es.array.slice.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.splice.js");var s=e("punycode"),o=e("./util");function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}i.parse=j,i.resolve=k,i.resolveObject=S,i.format=C,i.Url=a;var l=/^([a-z0-9.+-]+:)/i,c=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["<",">",'"',"`"," ","\r","\n","\t"],h=["{","}","|","\\","^","`"].concat(d),p=["'"].concat(h),f=["%","/","?",";","#"].concat(p),m=["/","?","#"],g=255,y=/^[+a-z0-9A-Z_-]{0,63}$/,b=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},x={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_=e("querystring");function j(e,t,i){if(e&&o.isObject(e)&&e instanceof a)return e;var r=new a;return r.parse(e,t,i),r}function C(e){return o.isString(e)&&(e=j(e)),e instanceof a?e.format():a.prototype.format.call(e)}function k(e,t){return j(e,!1,!0).resolve(t)}function S(e,t){return e?j(e,!1,!0).resolveObject(t):t}a.prototype.parse=function(e,t,i){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+(0,n.default)(e));var r=e.indexOf("?"),a=-1!==r&&r127?F+="x":F+=P[M];if(!F.match(y)){var B=I.slice(0,D),z=I.slice(D+1),U=P.match(b);U&&(B.push(U[1]),z.unshift(U[2])),z.length&&(h="/"+z.join(".")+h),this.hostname=B.join(".");break}}}this.hostname.length>g?this.hostname="":this.hostname=this.hostname.toLowerCase(),N||(this.hostname=s.toASCII(this.hostname));var q=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+q,this.href+=this.host,N&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==h[0]&&(h="/"+h))}if(!v[k])for(D=0,R=p.length;D0)&&i.host.split("@");k&&(i.auth=k.shift(),i.host=i.hostname=k.shift())}return i.search=e.search,i.query=e.query,o.isNull(i.pathname)&&o.isNull(i.search)||(i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")),i.href=i.format(),i}if(!j.length)return i.pathname=null,i.search?i.path="/"+i.search:i.path=null,i.href=i.format(),i;for(var S=j.slice(-1)[0],T=(i.host||e.host||j.length>1)&&("."===S||".."===S)||""===S,E=0,O=j.length;O>=0;O--)S=j[O],"."===S?j.splice(O,1):".."===S?(j.splice(O,1),E++):E&&(j.splice(O,1),E--);if(!v&&!_)for(;E--;E)j.unshift("..");!v||""===j[0]||j[0]&&"/"===j[0].charAt(0)||j.unshift(""),T&&"/"!==j.join("/").substr(-1)&&j.push("");var D=""===j[0]||j[0]&&"/"===j[0].charAt(0);if(C){i.hostname=i.host=D?"":j.length?j.shift():"";k=!!(i.host&&i.host.indexOf("@")>0)&&i.host.split("@");k&&(i.auth=k.shift(),i.host=i.hostname=k.shift())}return v=v||i.host&&j.length,v&&!D&&j.unshift(""),j.length?i.pathname=j.join("/"):(i.pathname=null,i.path=null),o.isNull(i.pathname)&&o.isNull(i.search)||(i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")),i.auth=e.auth||i.auth,i.slashes=i.slashes||e.slashes,i.href=i.format(),i},a.prototype.parseHost=function(){var e=this.host,t=c.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{"./util":544,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/helpers/typeof":91,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.join.js":317,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.array.splice.js":321,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.match.js":344,"core-js/modules/es.string.replace.js":345,"core-js/modules/es.string.search.js":346,"core-js/modules/es.string.split.js":347,"core-js/modules/es.string.trim.js":349,punycode:443,querystring:451}],544:[function(e,t,i){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),n=r(e("@babel/runtime/helpers/typeof"));t.exports={isString:function(e){return"string"===typeof e},isObject:function(e){return"object"===(0,n.default)(e)&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},{"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/helpers/typeof":91}],545:[function(e,t,i){"use strict";e("core-js/modules/es.number.constructor.js"),i.encodeURIComponent=function(e){try{return encodeURIComponent(e)}catch(t){return e}},i.escape=e("escape-html"),i.timestamp=function(e){if(e){var t=e;return"string"===typeof t&&(t=Number(t)),10===String(e).length&&(t*=1e3),new Date(t)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":324,"escape-html":385}],546:[function(e,t,i){(function(t,r){(function(){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),s=n(e("@babel/runtime/helpers/typeof"));e("core-js/modules/es.string.trim.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.function.name.js"),e("core-js/modules/es.array.concat.js");var o=e("util"),a=e("url"),l=e("http"),c=e("https"),u=e("debug")("urllib"),d=e("humanize-ms"),h=0,p=Math.pow(2,31)-10,f=/^https?:\/\//i;function m(e,t){return void 0===e?t:e}function g(e){return e?e.split(";")[0].trim().toLowerCase():""}function y(e,t){return function(i,r,n){if(i)return t(i);e({data:r,status:n.statusCode,headers:n.headers,res:n})}}i.TIMEOUTS=[d("300s"),d("300s")];var b=["json","text"];i.request=function(e,t,r){return 2===arguments.length&&"function"===typeof t&&(r=t,t=null),"function"===typeof r?i.requestWithCallback(e,t,r):new Promise((function(r,n){i.requestWithCallback(e,t,y(r,n))}))},i.requestWithCallback=function(e,n,y){if(!e||"string"!==typeof e&&"object"!==(0,s.default)(e)){var v=o.format("expect request url to be a string or a http request options, but got %j",e);throw new Error(v)}2===arguments.length&&"function"===typeof n&&(y=n,n=null),n=n||{},h>=p&&(h=0);var w=++h;n.requestUrls=n.requestUrls||[];var x={requestId:w,url:e,args:n,ctx:n.ctx};n.emitter&&n.emitter.emit("request",x),n.timeout=n.timeout||i.TIMEOUTS,n.maxRedirects=n.maxRedirects||10,n.streaming=n.streaming||n.customResponse;var _,j=Date.now();"string"===typeof e?(f.test(e)||(e="https://"+e),_=a.parse(e)):_=e;var C=(n.type||n.method||_.method||"GET").toUpperCase(),k=_.port||80,S=l,T=m(n.agent,i.agent),E=n.fixJSONCtlChars;"https:"===_.protocol&&(S=c,T=m(n.httpsAgent,i.httpsAgent),_.port||(k=443));var O={host:_.hostname||_.host||"localhost",path:_.path||"/",method:C,port:k,agent:T,headers:n.headers||{},lookup:n.lookup};Array.isArray(n.timeout)?O.requestTimeout=n.timeout[n.timeout.length-1]:"undefined"!==typeof n.timeout&&(O.requestTimeout=n.timeout);var D=n.auth||_.auth;D&&(O.auth=D);var A=n.content||n.data,N="GET"===C||"HEAD"===C||n.dataAsQueryString;if(!n.content&&A&&"string"!==typeof A&&!r.isBuffer(A))if(N)A=n.nestedQuerystring?qs.stringify(A):querystring.stringify(A);else{var I=O.headers["Content-Type"]||O.headers["content-type"];I||(I="json"===n.contentType?"application/json":"application/x-www-form-urlencoded",O.headers["Content-Type"]=I),A="application/json"===g(I)?JSON.stringify(A):n.nestedQuerystring?qs.stringify(A):querystring.stringify(A)}N&&A&&(O.path+=(_.query?"&":"?")+A,A=null);var R=0;if(A){var P=A.length;r.isBuffer(A)||(P=r.byteLength(A)),R=O.headers["Content-Length"]=P}"json"===n.dataType&&(O.headers.Accept="application/json"),"function"===typeof n.beforeRequest&&n.beforeRequest(O);var F=null,M=null,L=null,B=!1,z=!1,U=0,q=-1,V=!1,W="",H="",G=null;function $(){F&&(clearTimeout(F),F=null)}function X(){M&&(clearTimeout(M),M=null)}function K(i,r,s){if(X(),!y)return console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),w,t.pid,O.method,e),void(i&&console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s: %s\nstack: %s",Date(),w,t.pid,i.name,i.message,i.stack));var o=y;y=null;var a={};s&&(q=s.statusCode,a=s.headers);var l=Date.now()-j;G&&(G.contentDownload=l),u("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",l,U,q,O.method,O.host,O.path,z,G);var c={status:q,statusCode:q,headers:a,size:U,aborted:V,rt:l,keepAliveSocket:z,data:r,requestUrls:n.requestUrls,timing:G,remoteAddress:W,remotePort:H};if(i){var d="";T&&"function"===typeof T.getCurrentStatus&&(d=", agent status: "+JSON.stringify(T.getCurrentStatus())),i.message+=", "+O.method+" "+e+" "+q+" (connected: "+B+", keepalive socket: "+z+d+")\nheaders: "+JSON.stringify(a),i.data=r,i.path=O.path,i.status=q,i.headers=a,i.res=c}o(i,r,n.streaming?s:c),n.emitter&&(x.url=e,x.socket=ee&&ee.connection,x.options=O,x.size=R,n.emitter.emit("response",{requestId:w,error:i,ctx:n.ctx,req:x,res:c}))}function Y(t){var r=null;if(n.followRedirect&&statuses.redirect[t.statusCode]){n._followRedirectCount=(n._followRedirectCount||0)+1;var s=t.headers.location;if(s){if(!(n._followRedirectCount>n.maxRedirects)){var o=n.formatRedirectUrl?n.formatRedirectUrl(e,s):a.resolve(e,s);u("Request#%d %s: `redirected` from %s to %s",w,O.path,e,o),X(),n.headers&&n.headers.Host&&f.test(s)&&(n.headers.Host=null);var l=y;return y=null,i.requestWithCallback(o,n,l),{redirect:!0,error:null}}r=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+e),r.name="MaxRedirectError"}else r=new Error("Got statusCode "+t.statusCode+" but cannot resolve next location from headers"),r.name="FollowRedirectError"}return{redirect:!1,error:r}}function J(e,t,i){var r=e.headers["content-encoding"];return i(null,t,r)}n.timing&&(G={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),n.gzip&&(O.headers["Accept-Encoding"]||O.headers["accept-encoding"]||(O.headers["Accept-Encoding"]="gzip"));var Q,Z,ee,te=n.writeStream;function ie(t){if(G&&(G.waiting=Date.now()-j),u("Request#%d %s `req response` event emit: status %d, headers: %j",w,e,t.statusCode,t.headers),n.streaming){var i=Y(t);return i.redirect?void t.resume():i.error?(t.resume(),K(i.error,null,t)):K(null,null,t)}if(t.on("close",(function(){u("Request#%d %s: `res close` event emit, total size %d",w,e,U)})),t.on("error",(function(){u("Request#%d %s: `res error` event emit, total size %d",w,e,U)})),t.on("aborted",(function(){V=!0,u("Request#%d %s: `res aborted` event emit, total size %d",w,e,U)})),te){var s=Y(t);return s.redirect?void t.resume():s.error?(t.resume(),te.end(),K(s.error,null,t)):(!1===n.consumeWriteStream?t.on("end",K.bind(null,null,null,t)):te.on("close",(function(){u("Request#%d %s: writeStream close event emitted",w,e),K(L||null,null,t)})),t.pipe(te))}var o=[];t.on("data",(function(t){u("Request#%d %s: `res data` event emit, size %d",w,e,t.length),U+=t.length,o.push(t)})),t.on("end",(function(){var i=r.concat(o,U);if(u("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",w,e,U,t._dumped),L)return K(L,i,t);var s=Y(t);if(s.error)return K(s.error,i,t);s.redirect||J(t,i,(function(r,s,o){if(r)return K(r,i,t);if(!o&&b.indexOf(n.dataType)>=0){try{s=decodeBodyByCharset(s,t)}catch(l){return u("decodeBodyByCharset error: %s",l),K(null,s,t)}if("json"===n.dataType)if(0===U)s=null;else{var a=parseJSON(s,E);a.error?r=a.error:s=a.data}}V&&u("Request#%d %s: Remote socket was terminated before `response.end()` was called",w,e),K(r,s,t)}))}))}function re(){u("Connect timer ticking, timeout: %d",Q),F=setTimeout((function(){F=null,-1===q&&(q=-2);var t="Connect timeout for "+Q+"ms",i="ConnectionTimeoutError";ee.socket||(i="SocketAssignTimeoutError",t+=", working sockets is full"),L=new Error(t),L.name=i,L.requestId=w,u("ConnectTimeout: Request#%d %s %s: %s, connected: %s",w,e,L.name,t,B),se()}),Q)}function ne(){u("Response timer ticking, timeout: %d",Z),M=setTimeout((function(){M=null;var t="Response timeout for "+Z+"ms",i="ResponseTimeoutError";L=new Error(t),L.name=i,L.requestId=w,u("ResponseTimeout: Request#%d %s %s: %s, connected: %s",w,e,L.name,t,B),se()}),Z)}u("Request#%d %s %s with headers %j, options.path: %s",w,C,e,O.headers,O.path),n.requestUrls.push(e),Array.isArray(n.timeout)?(Q=d(n.timeout[0]),Z=d(n.timeout[1])):Q=Z=d(n.timeout),u("ConnectTimeout: %d, ResponseTimeout: %d",Q,Z),O.mode=n.mode?n.mode:"";try{ee=S.request(O,ie)}catch(oe){return K(oe)}function se(){u("Request#%d %s abort, connected: %s",w,e,B),ee.socket||(L.noSocket=!0,K(L)),ee.abort()}return"undefined"===typeof window?re():ee.on("requestTimeout",(function(){-1===q&&(q=-2);var e="Connect timeout for "+Q+"ms",t="ConnectionTimeoutError";L=new Error(e),L.name=t,L.requestId=w,se()})),G&&ee.on("finish",(function(){G.requestSent=Date.now()-j})),ee.once("socket",(function(t){G&&(G.queuing=Date.now()-j);var i=t.readyState;if("opening"===i)return t.once("lookup",(function(t,i,r){u("Request#%d %s lookup: %s, %s, %s",w,e,t,i,r),G&&(G.dnslookup=Date.now()-j),i&&(W=i)})),void t.once("connect",(function(){G&&(G.connected=Date.now()-j),$(),ne(),u("Request#%d %s new socket connected",w,e),B=!0,W||(W=t.remoteAddress),H=t.remotePort}));u("Request#%d %s reuse socket connected, readyState: %s",w,e,i),B=!0,z=!0,W||(W=t.remoteAddress),H=t.remotePort,$(),ne()})),ee.on("error",(function(t){"Error"!==t.name&&"TypeError"!==t.name||(t.name=B?"ResponseError":"RequestError"),t.message+=' (req "error")',u("Request#%d %s `req error` event emit, %s: %s",w,e,t.name,t.message),K(L||t)})),te&&te.once("error",(function(t){t.message+=' (writeStream "error")',L=t,u("Request#%d %s `writeStream error` event emit, %s: %s",w,e,t.name,t.message),se()})),n.stream?(n.stream.pipe(ee),n.stream.once("error",(function(t){t.message+=' (stream "error")',L=t,u("Request#%d %s `readStream error` event emit, %s: %s",w,e,t.name,t.message),se()}))):ee.end(A),ee.requestId=w,ee}}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/helpers/typeof":91,_process:538,buffer:103,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.function.name.js":322,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.promise.js":333,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.trim.js":349,debug:536,http:539,https:398,"humanize-ms":399,url:543,util:489}]},{},[1])(1)}))})(window)},f3ea:function(e,t,i){},f522:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],class:"1"==e.echartsType?"module_wrap box_border":"module_wrap module_wrap2 box_border",attrs:{"element-loading-text":"数据加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"transparent"}},[t("div",{staticClass:"box_title box_title_radio"},[t("span",[e._v("事故省风险案件"+e._s("1"==e.echartsType?"":"占比")+"排行榜")]),"1"==e.echartsType?t("div",{staticClass:"radio_group"},[t("span",{staticStyle:{"margin-right":"10px"}},[t("el-radio-group",{attrs:{size:"mini"},on:{change:e.radioChange},model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[t("el-radio-button",{attrs:{label:"数量"}}),t("el-radio-button",{attrs:{label:"金额"}})],1)],1),t("span",[t("el-radio-group",{attrs:{size:"mini"},on:{change:e.radioChange1},model:{value:e.radio1,callback:function(t){e.radio1=t},expression:"radio1"}},[t("el-radio-button",{attrs:{label:"全国"}}),t("el-radio-button",{attrs:{label:"前15"}})],1)],1)]):e._e()]),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.loading,expression:"!loading"}],staticStyle:{height:"100%"}},["1"==e.echartsType?t("div",{attrs:{id:"case_bar"}}):t("div",{attrs:{id:"case_bar2"}})])])},n=[],s=(i("f16c"),i("45d2"),i("8160"),i("ada4")),o={name:"ProvinceRisk",props:{isCollapse:{type:Boolean,default:!0},navForm:{type:Object,default:{}},echartsType:{type:String,default:""}},watch:{isCollapse(){setTimeout(()=>{this.myChart&&this.myChart.resize()},600)},navForm:{deep:!0,handler(e){this.getData()}}},data(){return{topDays:[],newNumber:0,myChart:null,yAxisData1:[],yAxisData2:[],sumSeriesData1:[],sumSeriesData2:[],numSeriesData1:[],numSeriesData2:[],option:"",radio:"数量",radio1:"前15",tmpCasesNumTopTen:null,loading:!0}},mounted(){this.role=localStorage.getItem("role"),window.addEventListener("resize",()=>{this.myChart&&this.myChart.resize()})},methods:{getData(){this.loading=!0;let e=null;switch(this.echartsType){case"1":e="/large/data/screen/getProvinceCasesNumTopTen";break;case"2":e="/large/data/screen/getProvinceCasesRatioTopTen";break;default:break}e&&this.instance({method:"post",url:e,data:this.navForm,headers:{"Content-Type":"application/json;charset=UTF-8"}}).then(e=>{if(this.loading=!1,1==e.data.code){let t=e.data.data;this.tmpCasesNumTopTen=t,1==this.echartsType?this.loadCharts(t):this.loadCharts2(t)}})},radioChange(){this.option&&("数量"==this.radio?(this.option.yAxis.data=this.yAxisData1,this.option.series[0].data=this.numSeriesData1,this.option.series[0].name="风险案件数量"):(this.option.yAxis.data=this.yAxisData2,this.option.series[0].data=this.sumSeriesData1,this.option.series[0].name="风险案件金额"),setTimeout(()=>{this.myChart.setOption(this.option)},100))},radioChange1(){let e=JSON.parse(JSON.stringify(this.numSeriesData1)),t=JSON.parse(JSON.stringify(this.sumSeriesData1)),i=JSON.parse(JSON.stringify(this.yAxisData1)),r=JSON.parse(JSON.stringify(this.yAxisData2));"前15"==this.radio1?"数量"==this.radio?(this.option.xAxis[0].data=i.slice(0,15),this.option.yAxis.data=i.slice(0,15),this.option.series[0].data=e.slice(0,15),this.option.series[0].name="风险案件数量"):(this.option.xAxis[0].data=i.slice(0,15),this.option.yAxis.data=r.slice(0,15),this.option.series[0].data=t.slice(0,15),this.option.series[0].name="风险案件金额"):"数量"==this.radio?(this.option.xAxis[0].data=i,this.option.yAxis.data=i,this.option.series[0].data=e,this.option.series[0].name="风险案件数量"):(this.option.xAxis[0].data=i,this.option.yAxis.data=r,this.option.series[0].data=t,this.option.series[0].name="风险案件金额"),setTimeout(()=>{this.myChart.setOption(this.option)},100)},loadCharts(e){let t=this;var i=document.getElementById("case_bar");i&&(this.myChart=s["init"](i,null,{renderer:"svg"}),this.yAxisData1=[],this.sumSeriesData1=[],this.sumSeriesData2=[],this.yAxisData2=[],this.numSeriesData1=[],this.numSeriesData2=[],e.caseRiskNum.forEach((e,t)=>{this.yAxisData1.push(e.name),this.numSeriesData1.push(e.caseNum),this.numSeriesData2.push(e.totalCaseNum)}),e.caseRiskMoney.forEach((e,t)=>{this.yAxisData2.push(e.name),this.sumSeriesData1.push(e.amountCaseFiled),this.sumSeriesData2.push(e.totalPayAmount)}),this.option={tooltip:{trigger:"axis",confine:!0,formatter(i){let r="",n="",s="";return"数量"==t.radio?(e.caseRiskNum.forEach((e,t)=>{i[0].name==e.name&&(r=e.name,n=e.caseNum,s=e.totalCaseNum)}),r+"
风险案件数量:"+n+"
总案件数量:"+s):(e.caseRiskMoney.forEach((e,t)=>{i[0].name==e.name&&(r=e.name,n=e.amountCaseFiled,s=e.totalPayAmount)}),r+"
风险案件金额:"+n+"
总案件金额:"+s)},axisPointer:{type:"shadow"}},grid:{left:"2%",right:"4%",top:"4%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",axisTick:{alignWithLabel:!0},axisLabel:{showMaxLabel:!0,rotate:40,textStyle:{color:"#fff"},width:60,overflow:"truncate",ellipsis:"..."},data:this.yAxisData1}],yAxis:[{type:"value",splitLine:{show:!1},axisLabel:{showMaxLabel:!0,textStyle:{color:"#fff"}},data:this.yAxisData1}],series:[{name:"风险案件数量",type:"bar",itemStyle:{color:"1"==this.echartsType?new s["graphic"].LinearGradient(0,0,1,0,[{offset:0,color:"#FFFFFF"},{offset:1,color:"#ED86C7"}]):new s["graphic"].LinearGradient(0,0,1,0,[{offset:0,color:"#FFFFFF"},{offset:1,color:"#A574F3"}])},stack:"total",barMaxWidth:"40%",data:this.numSeriesData1}]},this.myChart.setOption(this.option),this.radioChange1())},loadCharts2(e){var t=document.getElementById("case_bar2");t&&(this.myChart=s["init"](t,null,{renderer:"svg"}),this.yAxisData1=[],this.sumSeriesData1=[],this.sumSeriesData2=[],this.yAxisData2=[],this.numSeriesData1=[],this.numSeriesData2=[],e.caseRiskNum.forEach((e,t)=>{this.yAxisData1.push(e.name),this.numSeriesData1.push(e.caseNumRatio),this.numSeriesData2.push(e.totalCaseNum)}),this.option={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"2%",right:"4%",top:"15%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",axisTick:{alignWithLabel:!0},axisLabel:{showMaxLabel:!0,rotate:40,textStyle:{color:"#fff"},width:60,overflow:"truncate",ellipsis:"..."},data:this.yAxisData1}],yAxis:[{type:"value",splitLine:{show:!1},axisLabel:{showMaxLabel:!0,textStyle:{color:"#fff"}},data:this.yAxisData1}],series:[{name:"风险案件占比",type:"bar",itemStyle:{color:new s["graphic"].LinearGradient(0,0,1,0,[{offset:0,color:"#FFFFFF"},{offset:1,color:"#D473EC"}])},tooltip:{valueFormatter:function(e){return e+" %"}},stack:"total",barMaxWidth:"40%",data:this.numSeriesData1}]},this.myChart.setOption(this.option))}},updated(){this.myChart&&this.myChart.resize()}},a=o,l=(i("3ba8"),i("1805")),c=Object(l["a"])(a,r,n,!1,null,"f8ecae74",null);t["default"]=c.exports},f597:function(e,t,i){},f8ab:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"home"},[t("div",{staticClass:"main"},[t("div",{staticClass:"search_box"},[t("div",{staticClass:"search_input"},[t("el-input",{attrs:{placeholder:"请输入案件号",clearable:""},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}}),e.isValid?t("el-button",{attrs:{type:"primary"},on:{click:e.getVehicleData}},[e._v("搜索")]):e._e()],1),e._m(0),e.isValid?e._e():t("div",{staticStyle:{"margin-top":"0.3rem"}},[t("div",{staticClass:"search_input"},[t("el-input",{attrs:{placeholder:"请输入VIN码",clearable:""},model:{value:e.vin,callback:function(t){e.vin=t},expression:"vin"}}),t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.getVehicleData(2)}}},[e._v("搜索")])],1),e._m(1)])]),e.tableData.length>0?t("div",{staticClass:"result_box"},[t("p",{staticClass:"small_title"},[e._v("查询结果")]),t("div",{staticClass:"brand_box"},[t("div",{staticClass:"brand_detail"},[t("p",[e._v(e._s(e.tableData[0].amBrandName+"-"+e.tableData[0].amSeriesName))]),t("ul",[t("li",[e._v("VIN年份:"+e._s(e.tableData[0].amVinYear))]),t("li",[e._v("一级分类:"+e._s(e.tableData[0].vehCateOneNames))]),t("li",[e._v("二级分类:"+e._s(e.tableData[0].vehCateTwoNames))]),t("li",[e._v("厂商类型:"+e._s(e.tableData[0].importFlag))]),t("li",[e._v("国别:"+e._s(e.tableData[0].countriesName))]),t("li",[e._v("变速箱:"+e._s(e.tableData[0].gearboxType))]),t("li",[e._v("排量:"+e._s(e.tableData[0].engineDesc))]),t("li",[e._v("驱动形式:"+e._s(e.tableData[0].drivenType))])])])]),t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,size:"small","empty-text":"暂无数据"},on:{"row-click":e.clickRow}},[t("el-table-column",{attrs:{align:"center",prop:"amVehicleName",label:"销售车型名称"}}),t("el-table-column",{attrs:{align:"center",prop:"amBrandName",label:"品牌"}}),t("el-table-column",{attrs:{align:"center",prop:"amSeriesName",label:"车系"}}),t("el-table-column",{attrs:{align:"center",prop:"drivenType",label:"驱动形式"}}),t("el-table-column",{attrs:{align:"center",label:"厂家指导价"},scopedSlots:e._u([{key:"default",fn:function(i){return[t("div",[e._v(e._s(i.row.price)+"元")])]}}],null,!1,3084909748)})],1)],1):t("div",{staticClass:"empty_box"},[e._m(2),t("p",[e._v("请输入案件号")])])]),t("el-dialog",{attrs:{visible:e.modalVisible,"modal-append-to-body":!1,"close-on-click-modal":!1,"before-close":e.beforeClose,title:"请选择维修渠道",width:"5.4rem",center:"",top:"25vh"},on:{"update:visible":function(t){e.modalVisible=t}}},[t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleDialogBtn(1)}}},[e._v("修理厂维修")]),t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleDialogBtn(2)}}},[e._v("4S店维修")])],1)])],1)},n=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"demo_num"},[t("div",[t("img",{attrs:{src:i("8524")}})]),t("span",[e._v("示例案件号:812020080703202208051000193")])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"demo_num"},[t("div",[t("img",{attrs:{src:i("8524")}})]),t("span",[e._v("示例VIN码:LGBH12E20HY420076")])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"empty_img"},[t("img",{attrs:{src:i("d188")}})])}],s=(i("f16c"),{name:"carDamage",components:{},data(){return{caseNo:"",iframeSrc:"",isValid:!0,modalVisible:!1,checkedRow:{},tableData:[],jobNo:"",role:"",search:"",vin:""}},methods:{getVehicleData(e){return this.search?2!=e||this.vin?(this.tableData=[],void this.instance({method:"post",url:"/easyepc/analysisVinByCaseNo",data:{searchWord:this.search,jobNo:this.jobNo,role:this.role,vin:this.vin},headers:{}}).then(e=>{1==e.data.code?this.tableData=e.data.data:0==e.data.code?this.$message.error(e.data.message):2==e.data.code&&(this.$message.error(e.data.message),this.isValid=!1)})):(this.$message.error("抱歉,请输入VIN码!"),!1):(this.$message.error("抱歉,请输入案件号!"),!1)},clickRow(e){1==e.reportedOrNot&&this.$notify({title:"警告",message:"当前车辆已被报价",duration:0,type:"warning"}),this.modalVisible=!0,this.checkedRow=e},beforeClose(){this.modalVisible=!1,this.$notify.closeAll()},handleDialogBtn(e){this.modalVisible=!1,this.$notify.closeAll(),localStorage.setItem("vehicleDetail",JSON.stringify(this.checkedRow)),this.$router.push({path:"/calculatorTool/carDamageDetail",query:{vid:this.checkedRow.amVehicleId,caseNo:this.search,type:e,jobNo:this.jobNo}})}},mounted(){this.caseNo=this.$route.query.caseNo,this.caseNo&&(this.search=this.caseNo,this.getVehicleData());var e=localStorage.getItem("userInfo");e&&(e=JSON.parse(e),this.jobNo=e.jobNo,this.role=e.role);let t=this.$route.query.vid;t&&(this.search=t,this.getVehicleData())}}),o=s,a=(i("0a11"),i("1805")),l=Object(a["a"])(o,r,n,!1,null,"beb15554",null);t["default"]=l.exports},f9a0:function(e,t,i){"use strict";i("5b8b")},fa13:function(e,t,i){},fc27:function(e,t,i){e.exports=i.p+"img/wraning_icon.b1a63a56.png"},fd41:function(e,t,i){"use strict";i("0318")},fe11:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"module_wrap box_border",attrs:{"element-loading-text":"数据加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"transparent"}},[t("div",{staticClass:"box_title"},[e._v("公估公司接案量统计")]),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.loading,expression:"!loading"}],staticStyle:{height:"100%"}},[t("div",{attrs:{id:"rate_pie"}}),e.tableData.length>0?t("div",{staticClass:"tables_box"},[t("el-table",{attrs:{data:[e.tableData[0]],"max-height":"200"}},e._l(e.tableData,(function(i,r){return t("el-table-column",{key:r,attrs:{label:i.assessor,width:"全国"==e.province?"":"100"},scopedSlots:e._u([{key:"default",fn:function(r){return[e._e(),t("p",[e._v(e._s(i.assessorRatio?i.assessorRatio:"0")+" %")]),t("p",[e._v(e._s(i.assessorCaseNum?i.assessorCaseNum:"0")+" 件")])]}}],null,!0)})})),1)],1):e._e()])])},n=[],s=(i("f16c"),i("45d2"),i("8160"),i("ada4")),o={name:"CaseRate",props:{isCollapse:{type:Boolean,default:!0},navForm:{type:Object,default:{}}},watch:{isCollapse(){setTimeout(()=>{this.myChart&&this.myChart.resize()},600)},navForm:{deep:!0,handler(e){this.province=e.accidentProvince,this.getData()}}},data(){return{topDays:[],newNumber:0,myChart:"",tableData:[],loading:!0,province:""}},mounted(){this.role=localStorage.getItem("role"),this.getData(),window.addEventListener("resize",()=>{this.myChart&&setTimeout(()=>{this.myChart.resize()},500)})},methods:{getData(){this.loading=!0,this.instance({method:"post",url:"/large/data/screen/meituanAssessorCaseNum",data:this.navForm,headers:{"Content-Type":"application/json;charset=UTF-8"}}).then(e=>{if(this.loading=!1,1==e.data.code){let t=e.data.data;t.length>0&&this.loadCharts(t)}})},loadCharts(e){var t=document.getElementById("rate_pie");if(!t)return;this.myChart=s["init"](t,null,{renderer:"svg"});let i=[],r=[];e.forEach((e,t)=>{i.push(e.assessor),r.push(e.assessorRatio)}),this.tableData=e;var n={tooltip:{trigger:"axis",axisPointer:{type:"none"},formatter:function(t){let i=t[0].dataIndex;return t[0].name+"
接案率:"+t[0].value+"%
接案案件量:"+e[i].assessorCaseNum+"件"}},xAxis:{data:i,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{color:"#fff",rotate:30}},yAxis:{splitLine:{show:!1},axisTick:{show:!1},axisLine:{show:!1},axisLabel:{show:!1}},grid:{top:"20",bottom:"0",left:"10",right:"10",containLabel:!0},color:["#5FB3D7"],series:[{name:"hill",type:"pictorialBar",barCategoryGap:"-40%",label:{position:"top",color:"#fff",formatter:"{c}%"},symbol:"path://M0,10 L10,10 C5.5,10 5.5,5 5,0 C4.5,5 4.5,10 0,10 z",itemStyle:{},barWidth:"80%",emphasis:{itemStyle:{opacity:1}},data:r,z:10}]};this.myChart.setOption(n)}},updated(){this.myChart&&this.myChart.resize()}},a=o,l=(i("b6ee"),i("1805")),c=Object(l["a"])(a,r,n,!1,null,"bfcf48ec",null);t["default"]=c.exports},ff74:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"content"},[t("el-radio-group",{staticClass:"map_tab",staticStyle:{"margin-bottom":"30px"},on:{change:e.tabsChange},model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[t("el-radio-button",{attrs:{label:"1"}},[e._v("风险案件分布")]),t("el-radio-button",{attrs:{label:"2"}},[e._v("报案时效性分布")])],1),t("div",{attrs:{id:"container3",tabindex:"0"}})],1)},n=[],s=(i("f16c"),i("45d2"),i("8160"),i("9052"),i("ada4")),o=i("6032"),a={name:"ChinaMap3",props:{isCollapse:{type:Boolean,default:!0},navForm:{type:Object,default:{}}},watch:{isCollapse:{handler(e){e&&this.listenResize(),this.initChartsMap()},immediate:!0},navForm:{deep:!0,handler(e){this.getData()}}},data(){return{map:"",loca:"",chart:null,origin:"",checkedPoint:[],mapData:{},radio:"1",tabsActive:1,myChartMap:"",provinceCount:[],realTimeData:[],cityCount:[],nowVehicleData:{}}},mounted(){this,this.origin=window.location.origin,this.role=localStorage.getItem("role"),this.userInfo=JSON.parse(localStorage.getItem("userInfo")),window.addEventListener("resize",this.listenResize)},beforeDestroy(){window.removeEventListener("resize",this.listenResize)},methods:{listenResize(){this.myChartMap&&setTimeout(()=>{this.myChartMap.resize()},600)},linkVehicleMap(e){if(this.userInfo.batchId||0==this.role)return!1;let t=this.$router.resolve({path:"/VehicleMap",query:{deviceNumber:e.deviceNumber,startTime:e.tripStartTime,endTime:e.tripEndTime}});window.open(t.href,"_blank")},getLatestTrip(){this.realTimeData=[],this.instance.get("/homepage/getLatestTrip",{params:{companyId:this.userInfo.company}}).then(e=>{1==e.data.code&&this.initRouteData(e.data.data)})},getLatestTripByProvince(e){this.realTimeData=[],this.instance.get("/homepage/getLatestTripByProvince",{params:{companyId:this.userInfo.company,provinceName:e}}).then(e=>{1==e.data.code&&this.initRouteData(e.data.data)})},initRouteData(e){var t=e.length;if(t>0){for(var i=0;i{this.mapData=e.data.data;var t=[],i=[];this.mapData.cityDatas.length>0&&(this.mapData.cityDatas.forEach((e,i)=>{var r={name:e.cityName,parent:e.provinceName,value:e.caseNum,durationTime:e.durationTime,level:1,avgRiskValue:e.avgRiskValue,insuredNo:e.insuredNo,riskPointsNo:e.riskPointsNo};t.push(r)}),this.cityCount=t),this.mapData.provinceDatas.length>0&&(this.mapData.provinceDatas.forEach((e,t)=>{var r={name:e.cityName,parent:e.provinceName,value:e.caseNum,level:1,durationTime:e.durationTime,avgRiskValue:e.avgRiskValue,insuredNo:e.insuredNo,riskPointsNo:e.riskPointsNo};i.push(r)}),this.provinceCount=i),this.initChartsMap()})},createMap(e,t){var i=this;s["extendsMap"]=function(e,t){i.chart=s["init"](document.getElementById(e),null,{renderer:"svg"});var r={},n={mapName:"china",goDown:!1,bgColor:"#404a59",activeArea:[],data:[],callback:function(e,t,i){}};t&&(t=s["util"].extend(n,t));var a=[t.mapName],l=0,c={leftPlus:115,leftCur:150,left:198,top:240},u=[[0,0],[8,11],[0,22]],d={font:'18px "Microsoft YaHei", sans-serif',textColor:"#30FBFE",lineColor:"#30FBFE"},h={resetOption:function(e,i,r){var n=this.createBreadcrumb(r),s=a.indexOf(r),o=i.graphic.length;if(s<0){if(i.graphic.push(n),i.graphic[0].children[0].shape.x2=145,i.graphic[0].children[1].shape.x2=145,i.graphic.length>2){for(var u,d=[],p=0;pt.name==e.name);return-1!=s?"城市:"+n[s].name+"
案件数:"+n[s].value+"万件
案均时差:"+n[s].durationTime+"分":e.name}return 1==i.radio?"城市:"+e.data.name+"
案件数:"+e.data.num+"件":"城市:"+e.data.name+"
案均时差:"+e.data.durationTime+"天"}},label:{show:!0,color:"#fff"},itemStyle:{borderColor:"#2ff7fb",borderWidth:1,opacity:1,areaColor:{type:"radial",x:.5,y:.5,r:.8,colorStops:[{offset:0,color:"RGBA(0, 36, 109, 0.5)"},{offset:1,color:"RGBA(0, 36, 109, 0.7)"}],globalCoord:!1}},emphasis:{itemStyle:{areaColor:"rgba(0, 69, 109, 0.8)",borderWidth:0},label:{color:"#fff"}}},series:[{type:"effectScatter",coordinateSystem:"geo",showEffectOn:"emphasis",rippleEffect:{period:5,scale:2.5},itemStyle:{opacity:.9,color:"#E29550",shadowBlur:10,shadowColor:"#333"},symbolSize(e,i){var r=e[2],n=t.data[0].value,s=6;return s=r<.4*n?6:r<.7*n?8:10,s},zlevel:1,data:h.initSeriesData(t.data)}]};return i.chart.setOption(p),i.chart.on("click",(function(e){var n="china"==a[l]?"中国":a[l],c=this;if(t.goDown&&e.name!==n&&o["a"][e.name]){var u=o["a"][e.name];i.$axios.get(i.origin+"/"+u).then(t=>{r=t.data,s["registerMap"](e.name,r),h.resetOption(c,p,e.name)})}"中国"!=n&&h.resetOption(i.chart,p,"china")})),i.chart.setMap=function(e){var t=this;e.indexOf("市")<0&&(e+="市");var n=o["a"][e];if(n){var a=n;i.$axios.get(a).then(i=>{r=i.data,s["registerMap"](e,r),h.resetOption(t,p,e)})}},i.chart},i.myChartMap=s["extendsMap"](e,t)},initChartsMap(){var e=this;e.$axios.get("/map/data-china.json").then(t=>{s["registerMap"]("china",t.data),e.chart&&e.chart.dispose(),e.createMap("container3",{bgColor:"transparent",mapName:"china",goDown:!1,callback:function(e,t,i){},data:e.cityCount})})},appendScript(e){var t=document.createElement("script");t.charset="utf-8",t.src=e,document.head.appendChild(t)}}},l=a,c=(i("385f"),i("1805")),u=Object(c["a"])(l,r,n,!1,null,"78a29d92",null);t["default"]=u.exports},ffb0:function(e,t,i){(function(e){ /** * vis-network * https://visjs.github.io/vis-network/ * * A dynamic, browser-based visualization library. * * @version 9.1.13 * @date 2025-06-28T12:44:34.651Z * * @copyright (c) 2011-2017 Almende B.V, http://almende.com * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs * * @license * vis.js is dual licensed under both * * 1. The Apache 2.0 License * http://www.apache.org/licenses/LICENSE-2.0 * * and * * 2. The MIT License * http://opensource.org/licenses/MIT * * vis.js may be distributed under either license. */ !function(e,i){i(t)}(0,(function(t){"use strict";var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n=function(e){return e&&e.Math===Math&&e},s=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof i&&i)||function(){return this}()||i||Function("return this")(),o=function(e){try{return!!e()}catch(e){return!0}},a=!o((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),l=a,c=Function.prototype,u=c.apply,d=c.call,h="object"==typeof Reflect&&Reflect.apply||(l?d.bind(u):function(){return d.apply(u,arguments)}),p=a,f=Function.prototype,m=f.call,g=p&&f.bind.bind(m,m),y=p?g:function(e){return function(){return m.apply(e,arguments)}},b=y,v=b({}.toString),w=b("".slice),x=function(e){return w(v(e),8,-1)},_=x,j=y,C=function(e){if("Function"===_(e))return j(e)},k="object"==typeof document&&document.all,S={all:k,IS_HTMLDDA:void 0===k&&void 0!==k},T=S.all,E=S.IS_HTMLDDA?function(e){return"function"==typeof e||e===T}:function(e){return"function"==typeof e},O={},D=!o((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),A=a,N=Function.prototype.call,I=A?N.bind(N):function(){return N.apply(N,arguments)},R={},P={}.propertyIsEnumerable,F=Object.getOwnPropertyDescriptor,M=F&&!P.call({1:2},1);R.f=M?function(e){var t=F(this,e);return!!t&&t.enumerable}:P;var L,B,z=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},U=o,q=x,V=Object,W=y("".split),H=U((function(){return!V("z").propertyIsEnumerable(0)}))?function(e){return"String"===q(e)?W(e,""):V(e)}:V,G=function(e){return null==e},$=G,X=TypeError,K=function(e){if($(e))throw new X("Can't call method on "+e);return e},Y=H,J=K,Q=function(e){return Y(J(e))},Z=E,ee=S.all,te=S.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Z(e)||e===ee}:function(e){return"object"==typeof e?null!==e:Z(e)},ie={},re=ie,ne=s,se=E,oe=function(e){return se(e)?e:void 0},ae=function(e,t){return arguments.length<2?oe(re[e])||oe(ne[e]):re[e]&&re[e][t]||ne[e]&&ne[e][t]},le=y({}.isPrototypeOf),ce="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ue=s,de=ce,he=ue.process,pe=ue.Deno,fe=he&&he.versions||pe&&pe.version,me=fe&&fe.v8;me&&(B=(L=me.split("."))[0]>0&&L[0]<4?1:+(L[0]+L[1])),!B&&de&&(!(L=de.match(/Edge\/(\d+)/))||L[1]>=74)&&(L=de.match(/Chrome\/(\d+)/))&&(B=+L[1]);var ge=B,ye=ge,be=o,ve=s.String,we=!!Object.getOwnPropertySymbols&&!be((function(){var e=Symbol("symbol detection");return!ve(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ye&&ye<41})),xe=we&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,_e=ae,je=E,Ce=le,ke=Object,Se=xe?function(e){return"symbol"==typeof e}:function(e){var t=_e("Symbol");return je(t)&&Ce(t.prototype,ke(e))},Te=String,Ee=function(e){try{return Te(e)}catch(e){return"Object"}},Oe=E,De=Ee,Ae=TypeError,Ne=function(e){if(Oe(e))return e;throw new Ae(De(e)+" is not a function")},Ie=Ne,Re=G,Pe=function(e,t){var i=e[t];return Re(i)?void 0:Ie(i)},Fe=I,Me=E,Le=te,Be=TypeError,ze={exports:{}},Ue=s,qe=Object.defineProperty,Ve=function(e,t){try{qe(Ue,e,{value:t,configurable:!0,writable:!0})}catch(r){Ue[e]=t}return t},We="__core-js_shared__",He=s[We]||Ve(We,{}),Ge=He;(ze.exports=function(e,t){return Ge[e]||(Ge[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var $e=ze.exports,Xe=K,Ke=Object,Ye=function(e){return Ke(Xe(e))},Je=Ye,Qe=y({}.hasOwnProperty),Ze=Object.hasOwn||function(e,t){return Qe(Je(e),t)},et=y,tt=0,it=Math.random(),rt=et(1..toString),nt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+rt(++tt+it,36)},st=$e,ot=Ze,at=nt,lt=we,ct=xe,ut=s.Symbol,dt=st("wks"),ht=ct?ut.for||ut:ut&&ut.withoutSetter||at,pt=function(e){return ot(dt,e)||(dt[e]=lt&&ot(ut,e)?ut[e]:ht("Symbol."+e)),dt[e]},ft=I,mt=te,gt=Se,yt=Pe,bt=function(e,t){var i,r;if("string"===t&&Me(i=e.toString)&&!Le(r=Fe(i,e)))return r;if(Me(i=e.valueOf)&&!Le(r=Fe(i,e)))return r;if("string"!==t&&Me(i=e.toString)&&!Le(r=Fe(i,e)))return r;throw new Be("Can't convert object to primitive value")},vt=TypeError,wt=pt("toPrimitive"),xt=function(e,t){if(!mt(e)||gt(e))return e;var i,r=yt(e,wt);if(r){if(void 0===t&&(t="default"),i=ft(r,e,t),!mt(i)||gt(i))return i;throw new vt("Can't convert object to primitive value")}return void 0===t&&(t="number"),bt(e,t)},_t=Se,jt=function(e){var t=xt(e,"string");return _t(t)?t:t+""},Ct=te,kt=s.document,St=Ct(kt)&&Ct(kt.createElement),Tt=function(e){return St?kt.createElement(e):{}},Et=Tt,Ot=!D&&!o((function(){return 7!==Object.defineProperty(Et("div"),"a",{get:function(){return 7}}).a})),Dt=D,At=I,Nt=R,It=z,Rt=Q,Pt=jt,Ft=Ze,Mt=Ot,Lt=Object.getOwnPropertyDescriptor;O.f=Dt?Lt:function(e,t){if(e=Rt(e),t=Pt(t),Mt)try{return Lt(e,t)}catch(e){}if(Ft(e,t))return It(!At(Nt.f,e,t),e[t])};var Bt=o,zt=E,Ut=/#|\.prototype\./,qt=function(e,t){var i=Wt[Vt(e)];return i===Gt||i!==Ht&&(zt(t)?Bt(t):!!t)},Vt=qt.normalize=function(e){return String(e).replace(Ut,".").toLowerCase()},Wt=qt.data={},Ht=qt.NATIVE="N",Gt=qt.POLYFILL="P",$t=qt,Xt=Ne,Kt=a,Yt=C(C.bind),Jt=function(e,t){return Xt(e),void 0===t?e:Kt?Yt(e,t):function(){return e.apply(t,arguments)}},Qt={},Zt=D&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),ei=te,ti=String,ii=TypeError,ri=function(e){if(ei(e))return e;throw new ii(ti(e)+" is not an object")},ni=D,si=Ot,oi=Zt,ai=ri,li=jt,ci=TypeError,ui=Object.defineProperty,di=Object.getOwnPropertyDescriptor,hi="enumerable",pi="configurable",fi="writable";Qt.f=ni?oi?function(e,t,i){if(ai(e),t=li(t),ai(i),"function"==typeof e&&"prototype"===t&&"value"in i&&fi in i&&!i[fi]){var r=di(e,t);r&&r[fi]&&(e[t]=i.value,i={configurable:pi in i?i[pi]:r[pi],enumerable:hi in i?i[hi]:r[hi],writable:!1})}return ui(e,t,i)}:ui:function(e,t,i){if(ai(e),t=li(t),ai(i),si)try{return ui(e,t,i)}catch(e){}if("get"in i||"set"in i)throw new ci("Accessors not supported");return"value"in i&&(e[t]=i.value),e};var mi=Qt,gi=z,yi=D?function(e,t,i){return mi.f(e,t,gi(1,i))}:function(e,t,i){return e[t]=i,e},bi=s,vi=h,wi=C,xi=E,_i=O.f,ji=$t,Ci=ie,ki=Jt,Si=yi,Ti=Ze,Ei=function(e){var t=function(i,r,n){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(i);case 2:return new e(i,r)}return new e(i,r,n)}return vi(e,this,arguments)};return t.prototype=e.prototype,t},Oi=function(e,t){var i,r,n,s,o,a,l,c,u,d=e.target,h=e.global,p=e.stat,f=e.proto,m=h?bi:p?bi[d]:(bi[d]||{}).prototype,g=h?Ci:Ci[d]||Si(Ci,d,{})[d],y=g.prototype;for(s in t)r=!(i=ji(h?s:d+(p?".":"#")+s,e.forced))&&m&&Ti(m,s),a=g[s],r&&(l=e.dontCallGetSet?(u=_i(m,s))&&u.value:m[s]),o=r&&l?l:t[s],r&&typeof a==typeof o||(c=e.bind&&r?ki(o,bi):e.wrap&&r?Ei(o):f&&xi(o)?wi(o):o,(e.sham||o&&o.sham||a&&a.sham)&&Si(c,"sham",!0),Si(g,s,c),f&&(Ti(Ci,n=d+"Prototype")||Si(Ci,n,{}),Si(Ci[n],s,o),e.real&&y&&(i||!y[s])&&Si(y,s,o)))},Di=Math.ceil,Ai=Math.floor,Ni=Math.trunc||function(e){var t=+e;return(t>0?Ai:Di)(t)},Ii=function(e){var t=+e;return t!=t||0===t?0:Ni(t)},Ri=Ii,Pi=Math.max,Fi=Math.min,Mi=function(e,t){var i=Ri(e);return i<0?Pi(i+t,0):Fi(i,t)},Li=Ii,Bi=Math.min,zi=function(e){return e>0?Bi(Li(e),9007199254740991):0},Ui=function(e){return zi(e.length)},qi=Q,Vi=Mi,Wi=Ui,Hi=function(e){return function(t,i,r){var n,s=qi(t),o=Wi(s),a=Vi(r,o);if(e&&i!=i){for(;o>a;)if((n=s[a++])!=n)return!0}else for(;o>a;a++)if((e||a in s)&&s[a]===i)return e||a||0;return!e&&-1}},Gi={includes:Hi(!0),indexOf:Hi(!1)},$i={},Xi=Ze,Ki=Q,Yi=Gi.indexOf,Ji=$i,Qi=y([].push),Zi=function(e,t){var i,r=Ki(e),n=0,s=[];for(i in r)!Xi(Ji,i)&&Xi(r,i)&&Qi(s,i);for(;t.length>n;)Xi(r,i=t[n++])&&(~Yi(s,i)||Qi(s,i));return s},er=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tr=Zi,ir=er,rr=Object.keys||function(e){return tr(e,ir)},nr={};nr.f=Object.getOwnPropertySymbols;var sr=D,or=y,ar=I,lr=o,cr=rr,ur=nr,dr=R,hr=Ye,pr=H,fr=Object.assign,mr=Object.defineProperty,gr=or([].concat),yr=!fr||lr((function(){if(sr&&1!==fr({b:1},fr(mr({},"a",{enumerable:!0,get:function(){mr(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},i=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[i]=7,r.split("").forEach((function(e){t[e]=e})),7!==fr({},e)[i]||cr(fr({},t)).join("")!==r}))?function(e,t){for(var i=hr(e),r=arguments.length,n=1,s=ur.f,o=dr.f;r>n;)for(var a,l=pr(arguments[n++]),c=s?gr(cr(l),s(l)):cr(l),u=c.length,d=0;u>d;)a=c[d++],sr&&!ar(o,l,a)||(i[a]=l[a]);return i}:fr,br=yr;Oi({target:"Object",stat:!0,arity:2,forced:Object.assign!==br},{assign:br});var vr=r(ie.Object.assign),wr=y([].slice),xr=y,_r=Ne,jr=te,Cr=Ze,kr=wr,Sr=a,Tr=Function,Er=xr([].concat),Or=xr([].join),Dr={},Ar=Sr?Tr.bind:function(e){var t=_r(this),i=t.prototype,r=kr(arguments,1),n=function(){var i=Er(r,kr(arguments));return this instanceof n?function(e,t,i){if(!Cr(Dr,t)){for(var r=[],n=0;n=.1;)f=+s[d++%o],f>u&&(f=u),p=Math.sqrt(f*f/(1+c*c)),p=a<0?-p:p,t+=p,i+=c*p,!0===h?e.lineTo(t,i):e.moveTo(t,i),u-=f,h=!h}const Gr={circle:Ur,dashedLine:Hr,database:Wr,diamond:function(e,t,i,r){e.beginPath(),e.lineTo(t,i+r),e.lineTo(t+r,i),e.lineTo(t,i-r),e.lineTo(t-r,i),e.closePath()},ellipse:Vr,ellipse_vis:Vr,hexagon:function(e,t,i,r){e.beginPath();const n=2*Math.PI/6;e.moveTo(t+r,i);for(let s=1;s<6;s++)e.lineTo(t+r*Math.cos(n*s),i+r*Math.sin(n*s));e.closePath()},roundRect:qr,square:function(e,t,i,r){e.beginPath(),e.rect(t-r,i-r,2*r,2*r),e.closePath()},star:function(e,t,i,r){e.beginPath(),i+=.1*(r*=.82);for(let n=0;n<10;n++){const s=n%2==0?1.3*r:.5*r;e.lineTo(t+s*Math.sin(2*n*Math.PI/10),i-s*Math.cos(2*n*Math.PI/10))}e.closePath()},triangle:function(e,t,i,r){e.beginPath(),i+=.275*(r*=1.15);const n=2*r,s=n/2,o=Math.sqrt(3)/6*n,a=Math.sqrt(n*n-s*s);e.moveTo(t,i-(a-o)),e.lineTo(t+s,i+o),e.lineTo(t-s,i+o),e.lineTo(t,i-(a-o)),e.closePath()},triangleDown:function(e,t,i,r){e.beginPath(),i-=.275*(r*=1.15);const n=2*r,s=n/2,o=Math.sqrt(3)/6*n,a=Math.sqrt(n*n-s*s);e.moveTo(t,i+(a-o)),e.lineTo(t+s,i-o),e.lineTo(t-s,i-o),e.lineTo(t,i+(a-o)),e.closePath()}};var $r={exports:{}};!function(e){function t(e){if(e)return function(e){for(var i in t.prototype)e[i]=t.prototype[i];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function i(){this.off(e,i),t.apply(this,arguments)}return i.fn=t,this.on(e,i),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var n=0;n9007199254740991)throw Jr("Maximum allowed index exceeded");return e},Zr=jt,en=Qt,tn=z,rn=function(e,t,i){var r=Zr(t);r in e?en.f(e,r,tn(0,i)):e[r]=i},nn={};nn[pt("toStringTag")]="z";var sn="[object z]"===String(nn),on=sn,an=E,ln=x,cn=pt("toStringTag"),un=Object,dn="Arguments"===ln(function(){return arguments}()),hn=on?ln:function(e){var t,i,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=function(e,t){try{return e[t]}catch(e){}}(t=un(e),cn))?i:dn?ln(t):"Object"===(r=ln(t))&&an(t.callee)?"Arguments":r},pn=E,fn=He,mn=y(Function.toString);pn(fn.inspectSource)||(fn.inspectSource=function(e){return mn(e)});var gn=fn.inspectSource,yn=y,bn=o,vn=E,wn=hn,xn=gn,_n=function(){},jn=[],Cn=ae("Reflect","construct"),kn=/^\s*(?:class|function)\b/,Sn=yn(kn.exec),Tn=!kn.test(_n),En=function(e){if(!vn(e))return!1;try{return Cn(_n,jn,e),!0}catch(e){return!1}},On=function(e){if(!vn(e))return!1;switch(wn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Tn||!!Sn(kn,xn(e))}catch(e){return!0}};On.sham=!0;var Dn=!Cn||bn((function(){var e;return En(En.call)||!En(Object)||!En((function(){e=!0}))||e}))?On:En,An=Yr,Nn=Dn,In=te,Rn=pt("species"),Pn=Array,Fn=function(e){var t;return An(e)&&(t=e.constructor,(Nn(t)&&(t===Pn||An(t.prototype))||In(t)&&null===(t=t[Rn]))&&(t=void 0)),void 0===t?Pn:t},Mn=function(e,t){return new(Fn(e))(0===t?0:t)},Ln=o,Bn=ge,zn=pt("species"),Un=function(e){return Bn>=51||!Ln((function(){var t=[];return(t.constructor={})[zn]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},qn=Oi,Vn=o,Wn=Yr,Hn=te,Gn=Ye,$n=Ui,Xn=Qr,Kn=rn,Yn=Mn,Jn=Un,Qn=ge,Zn=pt("isConcatSpreadable"),es=Qn>=51||!Vn((function(){var e=[];return e[Zn]=!1,e.concat()[0]!==e})),ts=function(e){if(!Hn(e))return!1;var t=e[Zn];return void 0!==t?!!t:Wn(e)};qn({target:"Array",proto:!0,arity:1,forced:!es||!Jn("concat")},{concat:function(e){var t,i,r,n,s,o=Gn(this),a=Yn(o,0),l=0;for(t=-1,r=arguments.length;to;)ls.f(e,i=n[o++],r[i]);return e};var hs,ps=ae("document","documentElement"),fs=nt,ms=$e("keys"),gs=function(e){return ms[e]||(ms[e]=fs(e))},ys=ri,bs=ss,vs=er,ws=$i,xs=ps,_s=Tt,js="prototype",Cs="script",ks=gs("IE_PROTO"),Ss=function(){},Ts=function(e){return"<"+Cs+">"+e+""},Es=function(e){e.write(Ts("")),e.close();var t=e.parentWindow.Object;return e=null,t},Os=function(){try{hs=new ActiveXObject("htmlfile")}catch(e){}var e,t,i;Os="undefined"!=typeof document?document.domain&&hs?Es(hs):(t=_s("iframe"),i="java"+Cs+":",t.style.display="none",xs.appendChild(t),t.src=String(i),(e=t.contentWindow.document).open(),e.write(Ts("document.F=Object")),e.close(),e.F):Es(hs);for(var r=vs.length;r--;)delete Os[js][vs[r]];return Os()};ws[ks]=!0;var Ds=Object.create||function(e,t){var i;return null!==e?(Ss[js]=ys(e),i=new Ss,Ss[js]=null,i[ks]=e):i=Os(),void 0===t?i:bs.f(i,t)},As={},Ns=Zi,Is=er.concat("length","prototype");As.f=Object.getOwnPropertyNames||function(e){return Ns(e,Is)};var Rs={},Ps=Mi,Fs=Ui,Ms=rn,Ls=Array,Bs=Math.max,zs=function(e,t,i){for(var r=Fs(e),n=Ps(t,r),s=Ps(void 0===i?r:i,r),o=Ls(Bs(s-n,0)),a=0;nb;b++)if((a||b in m)&&(p=g(h=m[b],b,f),e))if(t)w[b]=p;else if(p)switch(e){case 3:return!0;case 5:return h;case 6:return b;case 2:Vo(w,h)}else switch(e){case 4:return!1;case 7:Vo(w,h)}return s?-1:r||n?n:w}},Ho={forEach:Wo(0),map:Wo(1),filter:Wo(2),some:Wo(3),every:Wo(4),find:Wo(5),findIndex:Wo(6),filterReject:Wo(7)},Go=Oi,$o=s,Xo=I,Ko=y,Yo=D,Jo=we,Qo=o,Zo=Ze,ea=le,ta=ri,ia=Q,ra=jt,na=ns,sa=z,oa=Ds,aa=rr,la=As,ca=Rs,ua=nr,da=O,ha=Qt,pa=ss,fa=R,ma=$s,ga=Ks,ya=$e,ba=$i,va=nt,wa=pt,xa=Ys,_a=so,ja=uo,Ca=wo,ka=Mo,Sa=Ho.forEach,Ta=gs("hidden"),Ea="Symbol",Oa="prototype",Da=ka.set,Aa=ka.getterFor(Ea),Na=Object[Oa],Ia=$o.Symbol,Ra=Ia&&Ia[Oa],Pa=$o.RangeError,Fa=$o.TypeError,Ma=$o.QObject,La=da.f,Ba=ha.f,za=ca.f,Ua=fa.f,qa=Ko([].push),Va=ya("symbols"),Wa=ya("op-symbols"),Ha=ya("wks"),Ga=!Ma||!Ma[Oa]||!Ma[Oa].findChild,$a=function(e,t,i){var r=La(Na,t);r&&delete Na[t],Ba(e,t,i),r&&e!==Na&&Ba(Na,t,r)},Xa=Yo&&Qo((function(){return 7!==oa(Ba({},"a",{get:function(){return Ba(this,"a",{value:7}).a}})).a}))?$a:Ba,Ka=function(e,t){var i=Va[e]=oa(Ra);return Da(i,{type:Ea,tag:e,description:t}),Yo||(i.description=t),i},Ya=function(e,t,i){e===Na&&Ya(Wa,t,i),ta(e);var r=ra(t);return ta(i),Zo(Va,r)?(i.enumerable?(Zo(e,Ta)&&e[Ta][r]&&(e[Ta][r]=!1),i=oa(i,{enumerable:sa(0,!1)})):(Zo(e,Ta)||Ba(e,Ta,sa(1,{})),e[Ta][r]=!0),Xa(e,r,i)):Ba(e,r,i)},Ja=function(e,t){ta(e);var i=ia(t),r=aa(i).concat(tl(i));return Sa(r,(function(t){Yo&&!Xo(Qa,i,t)||Ya(e,t,i[t])})),e},Qa=function(e){var t=ra(e),i=Xo(Ua,this,t);return!(this===Na&&Zo(Va,t)&&!Zo(Wa,t))&&(!(i||!Zo(this,t)||!Zo(Va,t)||Zo(this,Ta)&&this[Ta][t])||i)},Za=function(e,t){var i=ia(e),r=ra(t);if(i!==Na||!Zo(Va,r)||Zo(Wa,r)){var n=La(i,r);return!n||!Zo(Va,r)||Zo(i,Ta)&&i[Ta][r]||(n.enumerable=!0),n}},el=function(e){var t=za(ia(e)),i=[];return Sa(t,(function(e){Zo(Va,e)||Zo(ba,e)||qa(i,e)})),i},tl=function(e){var t=e===Na,i=za(t?Wa:ia(e)),r=[];return Sa(i,(function(e){!Zo(Va,e)||t&&!Zo(Na,e)||qa(r,Va[e])})),r};Jo||(Ia=function(){if(ea(Ra,this))throw new Fa("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?na(arguments[0]):void 0,t=va(e),i=function(e){this===Na&&Xo(i,Wa,e),Zo(this,Ta)&&Zo(this[Ta],t)&&(this[Ta][t]=!1);var r=sa(1,e);try{Xa(this,t,r)}catch(e){if(!(e instanceof Pa))throw e;$a(this,t,r)}};return Yo&&Ga&&Xa(Na,t,{configurable:!0,set:i}),Ka(t,e)},ma(Ra=Ia[Oa],"toString",(function(){return Aa(this).tag})),ma(Ia,"withoutSetter",(function(e){return Ka(va(e),e)})),fa.f=Qa,ha.f=Ya,pa.f=Ja,da.f=Za,la.f=ca.f=el,ua.f=tl,xa.f=function(e){return Ka(wa(e),e)},Yo&&ga(Ra,"description",{configurable:!0,get:function(){return Aa(this).description}})),Go({global:!0,constructor:!0,wrap:!0,forced:!Jo,sham:!Jo},{Symbol:Ia}),Sa(aa(Ha),(function(e){_a(e)})),Go({target:Ea,stat:!0,forced:!Jo},{useSetter:function(){Ga=!0},useSimple:function(){Ga=!1}}),Go({target:"Object",stat:!0,forced:!Jo,sham:!Yo},{create:function(e,t){return void 0===t?oa(e):Ja(oa(e),t)},defineProperty:Ya,defineProperties:Ja,getOwnPropertyDescriptor:Za}),Go({target:"Object",stat:!0,forced:!Jo},{getOwnPropertyNames:el}),ja(),Ca(Ia,Ea),ba[Ta]=!0;var il=we&&!!Symbol.for&&!!Symbol.keyFor,rl=Oi,nl=ae,sl=Ze,ol=ns,al=$e,ll=il,cl=al("string-to-symbol-registry"),ul=al("symbol-to-string-registry");rl({target:"Symbol",stat:!0,forced:!ll},{for:function(e){var t=ol(e);if(sl(cl,t))return cl[t];var i=nl("Symbol")(t);return cl[t]=i,ul[i]=t,i}});var dl=Oi,hl=Ze,pl=Se,fl=Ee,ml=il,gl=$e("symbol-to-string-registry");dl({target:"Symbol",stat:!0,forced:!ml},{keyFor:function(e){if(!pl(e))throw new TypeError(fl(e)+" is not a symbol");if(hl(gl,e))return gl[e]}});var yl=Yr,bl=E,vl=x,wl=ns,xl=y([].push),_l=Oi,jl=ae,Cl=h,kl=I,Sl=y,Tl=o,El=E,Ol=Se,Dl=wr,Al=function(e){if(bl(e))return e;if(yl(e)){for(var t=e.length,i=[],r=0;r=t.length)return e.target=void 0,iu(void 0,!0);switch(i){case"keys":return iu(r,!1);case"values":return iu(t[r],!1)}return iu([r,t[r]],!1)}),"values"),Zc.Arguments=Zc.Array;var ou={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},au=s,lu=hn,cu=yi,uu=ic,du=pt("toStringTag");for(var hu in ou){var pu=au[hu],fu=pu&&pu.prototype;fu&&lu(fu)!==du&&cu(fu,du,hu),uu[hu]=uu.Array}var mu=tc,gu=r(mu),yu=Oi,bu=Yr,vu=Dn,wu=te,xu=Mi,_u=Ui,ju=Q,Cu=rn,ku=pt,Su=wr,Tu=Un("slice"),Eu=ku("species"),Ou=Array,Du=Math.max;yu({target:"Array",proto:!0,forced:!Tu},{slice:function(e,t){var i,r,n,s=ju(this),o=_u(s),a=xu(e,o),l=xu(void 0===t?o:t,o);if(bu(s)&&(i=s.constructor,(vu(i)&&(i===Ou||bu(i.prototype))||wu(i)&&null===(i=i[Eu]))&&(i=void 0),i===Ou||void 0===i))return Su(s,a,l);for(r=new(void 0===i?Ou:i)(Du(l-a,0)),n=0;a1?arguments[1]:void 0)}});var Gu=Rr("Array").map,$u=le,Xu=Gu,Ku=Array.prototype,Yu=function(e){var t=e.map;return e===Ku||$u(Ku,e)&&t===Ku.map?Xu:t},Ju=r(Yu),Qu=Ye,Zu=rr;Oi({target:"Object",stat:!0,forced:o((function(){Zu(1)}))},{keys:function(e){return Zu(Qu(e))}});var ed=r(ie.Object.keys),td=Oi,id=Date,rd=y(id.prototype.getTime);td({target:"Date",stat:!0},{now:function(){return rd(new id)}});var nd=r(ie.Date.now),sd=o,od=function(e,t){var i=[][e];return!!i&&sd((function(){i.call(null,t||function(){return 1},1)}))},ad=Ho.forEach,ld=od("forEach")?[].forEach:function(e){return ad(this,e,arguments.length>1?arguments[1]:void 0)};Oi({target:"Array",proto:!0,forced:[].forEach!==ld},{forEach:ld});var cd=Rr("Array").forEach,ud=hn,dd=Ze,hd=le,pd=cd,fd=Array.prototype,md={DOMTokenList:!0,NodeList:!0},gd=function(e){var t=e.forEach;return e===fd||hd(fd,e)&&t===fd.forEach||dd(md,ud(e))?pd:t},yd=r(gd),bd=Oi,vd=Yr,wd=y([].reverse),xd=[1,2];bd({target:"Array",proto:!0,forced:String(xd)===String(xd.reverse())},{reverse:function(){return vd(this)&&(this.length=this.length),wd(this)}});var _d=Rr("Array").reverse,jd=le,Cd=_d,kd=Array.prototype,Sd=function(e){var t=e.reverse;return e===kd||jd(kd,e)&&t===kd.reverse?Cd:t},Td=r(Sd),Ed=D,Od=Yr,Dd=TypeError,Ad=Object.getOwnPropertyDescriptor,Nd=Ed&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),Id=Ee,Rd=TypeError,Pd=function(e,t){if(!delete e[t])throw new Rd("Cannot delete property "+Id(t)+" of "+Id(e))},Fd=Oi,Md=Ye,Ld=Mi,Bd=Ii,zd=Ui,Ud=Nd?function(e,t){if(Od(e)&&!Ad(e,"length").writable)throw new Dd("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},qd=Qr,Vd=Mn,Wd=rn,Hd=Pd,Gd=Un("splice"),$d=Math.max,Xd=Math.min;Fd({target:"Array",proto:!0,forced:!Gd},{splice:function(e,t){var i,r,n,s,o,a,l=Md(this),c=zd(l),u=Ld(e,c),d=arguments.length;for(0===d?i=r=0:1===d?(i=0,r=c-u):(i=d-2,r=Xd($d(Bd(t),0),c-u)),qd(c+i-r),n=Vd(l,r),s=0;sc-r+i;s--)Hd(l,s-1)}else if(i>r)for(s=c-r;s>u;s--)a=s+i-1,(o=s+r-1)in l?l[a]=l[o]:Hd(l,a);for(s=0;s1?arguments[1]:void 0)}});var ih=Rr("Array").includes,rh=te,nh=x,sh=pt("match"),oh=function(e){var t;return rh(e)&&(void 0!==(t=e[sh])?!!t:"RegExp"===nh(e))},ah=TypeError,lh=pt("match"),ch=Oi,uh=function(e){if(oh(e))throw new ah("The method doesn't accept regular expressions");return e},dh=K,hh=ns,ph=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[lh]=!1,"/./"[e](t)}catch(e){}}return!1},fh=y("".indexOf);ch({target:"String",proto:!0,forced:!ph("includes")},{includes:function(e){return!!~fh(hh(dh(this)),hh(uh(e)),arguments.length>1?arguments[1]:void 0)}});var mh=Rr("String").includes,gh=le,yh=ih,bh=mh,vh=Array.prototype,wh=String.prototype,xh=function(e){var t=e.includes;return e===vh||gh(vh,e)&&t===vh.includes?yh:"string"==typeof e||e===wh||gh(wh,e)&&t===wh.includes?bh:t},_h=r(xh),jh=Ye,Ch=yc,kh=cc;Oi({target:"Object",stat:!0,forced:o((function(){Ch(1)})),sham:!kh},{getPrototypeOf:function(e){return Ch(jh(e))}});var Sh=r(ie.Object.getPrototypeOf),Th=Rr("Array").concat,Eh=le,Oh=Th,Dh=Array.prototype,Ah=function(e){var t=e.concat;return e===Dh||Eh(Dh,e)&&t===Dh.concat?Oh:t},Nh=r(Ah),Ih=Ho.filter;Oi({target:"Array",proto:!0,forced:!Un("filter")},{filter:function(e){return Ih(this,e,arguments.length>1?arguments[1]:void 0)}});var Rh=Rr("Array").filter,Ph=le,Fh=Rh,Mh=Array.prototype,Lh=function(e){var t=e.filter;return e===Mh||Ph(Mh,e)&&t===Mh.filter?Fh:t},Bh=r(Lh),zh=D,Uh=o,qh=y,Vh=yc,Wh=rr,Hh=Q,Gh=qh(R.f),$h=qh([].push),Xh=zh&&Uh((function(){var e=Object.create(null);return e[2]=2,!Gh(e,2)})),Kh=function(e){return function(t){for(var i,r=Hh(t),n=Wh(r),s=Xh&&null===Vh(r),o=n.length,a=0,l=[];o>a;)i=n[a++],zh&&!(s?i in r:Gh(r,i))||$h(l,e?[i,r[i]]:r[i]);return l}},Yh={entries:Kh(!0),values:Kh(!1)},Jh=Yh.values;Oi({target:"Object",stat:!0},{values:function(e){return Jh(e)}});var Qh=r(ie.Object.values),Zh="\t\n\v\f\r                 \u2028\u2029\ufeff",ep=K,tp=ns,ip=Zh,rp=y("".replace),np=RegExp("^["+ip+"]+"),sp=RegExp("(^|[^"+ip+"])["+ip+"]+$"),op=function(e){return function(t){var i=tp(ep(t));return 1&e&&(i=rp(i,np,"")),2&e&&(i=rp(i,sp,"$1")),i}},ap={start:op(1),end:op(2),trim:op(3)},lp=s,cp=o,up=y,dp=ns,hp=ap.trim,pp=Zh,fp=lp.parseInt,mp=lp.Symbol,gp=mp&&mp.iterator,yp=/^[+-]?0x/i,bp=up(yp.exec),vp=8!==fp(pp+"08")||22!==fp(pp+"0x16")||gp&&!cp((function(){fp(Object(gp))}))?function(e,t){var i=hp(dp(e));return fp(i,t>>>0||(bp(yp,i)?16:10))}:fp;Oi({global:!0,forced:parseInt!==vp},{parseInt:vp});var wp=r(ie.parseInt),xp=Oi,_p=Gi.indexOf,jp=od,Cp=C([].indexOf),kp=!!Cp&&1/Cp([1],1,-0)<0;xp({target:"Array",proto:!0,forced:kp||!jp("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return kp?Cp(this,e,t)||0:_p(this,e,t)}});var Sp=Rr("Array").indexOf,Tp=le,Ep=Sp,Op=Array.prototype,Dp=function(e){var t=e.indexOf;return e===Op||Tp(Op,e)&&t===Op.indexOf?Ep:t},Ap=r(Dp),Np=Yh.entries;Oi({target:"Object",stat:!0},{entries:function(e){return Np(e)}});var Ip=r(ie.Object.entries);Oi({target:"Object",stat:!0,sham:!D},{create:Ds});var Rp=ie.Object,Pp=r((function(e,t){return Rp.create(e,t)})),Fp=ie,Mp=h;Fp.JSON||(Fp.JSON={stringify:JSON.stringify});var Lp=function(e,t,i){return Mp(Fp.JSON.stringify,null,arguments)},Bp=r(Lp),zp="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,Up=TypeError,qp=s,Vp=h,Wp=E,Hp=zp,Gp=ce,$p=wr,Xp=function(e,t){if(ei,o=Wp(r)?r:Kp(r),a=s?$p(arguments,i):[],l=s?function(){Vp(o,this,a)}:o;return t?e(l,n):e(l)}:e},Qp=Oi,Zp=s,ef=Jp(Zp.setInterval,!0);Qp({global:!0,bind:!0,forced:Zp.setInterval!==ef},{setInterval:ef});var tf=Oi,rf=s,nf=Jp(rf.setTimeout,!0);tf({global:!0,bind:!0,forced:rf.setTimeout!==nf},{setTimeout:nf});var sf=r(ie.setTimeout),of=Ye,af=Mi,lf=Ui,cf=function(e){for(var t=of(this),i=lf(t),r=arguments.length,n=af(r>1?arguments[1]:void 0,i),s=r>2?arguments[2]:void 0,o=void 0===s?i:af(s,i);o>n;)t[n++]=e;return t};Oi({target:"Array",proto:!0},{fill:cf});var uf,df=Rr("Array").fill,hf=le,pf=df,ff=Array.prototype,mf=function(e){var t=e.fill;return e===ff||hf(ff,e)&&t===ff.fill?pf:t},gf=r(mf);function yf(){return yf=Object.assign||function(e){for(var t=1;t-1}var sm=function(){function e(e,t){this.manager=e,this.set(t)}var t=e.prototype;return t.set=function(e){e===Df&&(e=this.compute()),Of&&this.manager.element.style&&Ff[e]&&(this.manager.element.style[Ef]=e),this.actions=e.toLowerCase().trim()},t.update=function(){this.set(this.manager.options.touchAction)},t.compute=function(){var e=[];return im(this.manager.recognizers,(function(t){rm(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(nm(e,If))return If;var t=nm(e,Rf),i=nm(e,Pf);return t&&i?If:t||i?t?Rf:Pf:nm(e,Nf)?Nf:Af}(e.join(" "))},t.preventDefaults=function(e){var t=e.srcEvent,i=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,n=nm(r,If)&&!Ff[If],s=nm(r,Pf)&&!Ff[Pf],o=nm(r,Rf)&&!Ff[Rf];if(n){var a=1===e.pointers.length,l=e.distance<2,c=e.deltaTime<250;if(a&&l&&c)return}if(!o||!s)return n||s&&i&Jf||o&&i&Qf?this.preventSrc(t):void 0}},t.preventSrc=function(e){this.manager.session.prevented=!0,e.preventDefault()},e}();function om(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function am(e){var t=e.length;if(1===t)return{x:Cf(e[0].clientX),y:Cf(e[0].clientY)};for(var i=0,r=0,n=0;n=kf(t)?e<0?$f:Xf:t<0?Kf:Yf}function hm(e,t,i){return{x:t/e||0,y:i/e||0}}function pm(e,t){var i=e.session,r=t.pointers,n=r.length;i.firstInput||(i.firstInput=lm(t)),n>1&&!i.firstMultiple?i.firstMultiple=lm(t):1===n&&(i.firstMultiple=!1);var s=i.firstInput,o=i.firstMultiple,a=o?o.center:s.center,l=t.center=am(r);t.timeStamp=Sf(),t.deltaTime=t.timeStamp-s.timeStamp,t.angle=um(a,l),t.distance=cm(a,l),function(e,t){var i=t.center,r=e.offsetDelta||{},n=e.prevDelta||{},s=e.prevInput||{};t.eventType!==Vf&&s.eventType!==Wf||(n=e.prevDelta={x:s.deltaX||0,y:s.deltaY||0},r=e.offsetDelta={x:i.x,y:i.y}),t.deltaX=n.x+(i.x-r.x),t.deltaY=n.y+(i.y-r.y)}(i,t),t.offsetDirection=dm(t.deltaX,t.deltaY);var c,u,d=hm(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=d.x,t.overallVelocityY=d.y,t.overallVelocity=kf(d.x)>kf(d.y)?d.x:d.y,t.scale=o?(c=o.pointers,cm((u=r)[0],u[1],tm)/cm(c[0],c[1],tm)):1,t.rotation=o?function(e,t){return um(t[1],t[0],tm)+um(e[1],e[0],tm)}(o.pointers,r):0,t.maxPointers=i.prevInput?t.pointers.length>i.prevInput.maxPointers?t.pointers.length:i.prevInput.maxPointers:t.pointers.length,function(e,t){var i,r,n,s,o=e.lastInterval||t,a=t.timeStamp-o.timeStamp;if(t.eventType!==Hf&&(a>qf||void 0===o.velocity)){var l=t.deltaX-o.deltaX,c=t.deltaY-o.deltaY,u=hm(a,l,c);r=u.x,n=u.y,i=kf(u.x)>kf(u.y)?u.x:u.y,s=dm(l,c),e.lastInterval=t}else i=o.velocity,r=o.velocityX,n=o.velocityY,s=o.direction;t.velocity=i,t.velocityX=r,t.velocityY=n,t.direction=s}(i,t);var h,p=e.element,f=t.srcEvent;om(h=f.composedPath?f.composedPath()[0]:f.path?f.path[0]:f.target,p)&&(p=h),t.target=p}function fm(e,t,i){var r=i.pointers.length,n=i.changedPointers.length,s=t&Vf&&r-n==0,o=t&(Wf|Hf)&&r-n==0;i.isFirst=!!s,i.isFinal=!!o,s&&(e.session={}),i.eventType=t,pm(e,i),e.emit("hammer.input",i),e.recognize(i),e.session.prevInput=i}function mm(e){return e.trim().split(/\s+/g)}function gm(e,t,i){im(mm(t),(function(t){e.addEventListener(t,i,!1)}))}function ym(e,t,i){im(mm(t),(function(t){e.removeEventListener(t,i,!1)}))}function bm(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||window}var vm=function(){function e(e,t){var i=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){rm(e.options.enable,[e])&&i.handler(t)},this.init()}var t=e.prototype;return t.handler=function(){},t.init=function(){this.evEl&&gm(this.element,this.evEl,this.domHandler),this.evTarget&&gm(this.target,this.evTarget,this.domHandler),this.evWin&&gm(bm(this.element),this.evWin,this.domHandler)},t.destroy=function(){this.evEl&&ym(this.element,this.evEl,this.domHandler),this.evTarget&&ym(this.target,this.evTarget,this.domHandler),this.evWin&&ym(bm(this.element),this.evWin,this.domHandler)},e}();function wm(e,t,i){if(e.indexOf&&!i)return e.indexOf(t);for(var r=0;ri[t]})):r.sort()),r}var Em={touchstart:Vf,touchmove:2,touchend:Wf,touchcancel:Hf},Om=function(e){function t(){var i;return t.prototype.evTarget="touchstart touchmove touchend touchcancel",(i=e.apply(this,arguments)||this).targetIds={},i}return bf(t,e),t.prototype.handler=function(e){var t=Em[e.type],i=Dm.call(this,e,t);i&&this.callback(this.manager,t,{pointers:i[0],changedPointers:i[1],pointerType:zf,srcEvent:e})},t}(vm);function Dm(e,t){var i,r,n=Sm(e.touches),s=this.targetIds;if(t&(2|Vf)&&1===n.length)return s[n[0].identifier]=!0,[n,n];var o=Sm(e.changedTouches),a=[],l=this.target;if(r=n.filter((function(e){return om(e.target,l)})),t===Vf)for(i=0;i-1&&r.splice(e,1)}),Im)}}function Pm(e,t){e&Vf?(this.primaryTouch=t.changedPointers[0].identifier,Rm.call(this,t)):e&(Wf|Hf)&&Rm.call(this,t)}function Fm(e){for(var t=e.srcEvent.clientX,i=e.srcEvent.clientY,r=0;r-1&&this.requireFail.splice(t,1),this},t.hasRequireFailures=function(){return this.requireFail.length>0},t.canRecognizeWith=function(e){return!!this.simultaneous[e.id]},t.emit=function(e){var t=this,i=this.state;function r(i){t.manager.emit(i,e)}i<8&&r(t.options.event+qm(i)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),i>=8&&r(t.options.event+qm(i))},t.tryEmit=function(e){if(this.canEmit())return this.emit(e);this.state=Bm},t.canEmit=function(){for(var e=0;et.threshold&&n&t.direction},i.attrTest=function(e){return Hm.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},i.emit=function(t){this.pX=t.deltaX,this.pY=t.deltaY;var i=Gm(t.direction);i&&(t.additionalEvent=this.options.event+i),e.prototype.emit.call(this,t)},t}(Hm),Xm=function(e){function t(t){return void 0===t&&(t={}),e.call(this,yf({event:"swipe",threshold:10,velocity:.3,direction:Jf|Qf,pointers:1},t))||this}bf(t,e);var i=t.prototype;return i.getTouchAction=function(){return $m.prototype.getTouchAction.call(this)},i.attrTest=function(t){var i,r=this.options.direction;return r&(Jf|Qf)?i=t.overallVelocity:r&Jf?i=t.overallVelocityX:r&Qf&&(i=t.overallVelocityY),e.prototype.attrTest.call(this,t)&&r&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers===this.options.pointers&&kf(i)>this.options.velocity&&t.eventType&Wf},i.emit=function(e){var t=Gm(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)},t}(Hm),Km=function(e){function t(t){return void 0===t&&(t={}),e.call(this,yf({event:"pinch",threshold:0,pointers:2},t))||this}bf(t,e);var i=t.prototype;return i.getTouchAction=function(){return[If]},i.attrTest=function(t){return e.prototype.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},i.emit=function(t){if(1!==t.scale){var i=t.scale<1?"in":"out";t.additionalEvent=this.options.event+i}e.prototype.emit.call(this,t)},t}(Hm),Ym=function(e){function t(t){return void 0===t&&(t={}),e.call(this,yf({event:"rotate",threshold:0,pointers:2},t))||this}bf(t,e);var i=t.prototype;return i.getTouchAction=function(){return[If]},i.attrTest=function(t){return e.prototype.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)},t}(Hm),Jm=function(e){function t(t){var i;return void 0===t&&(t={}),(i=e.call(this,yf({event:"press",pointers:1,time:251,threshold:9},t))||this)._timer=null,i._input=null,i}bf(t,e);var i=t.prototype;return i.getTouchAction=function(){return[Af]},i.process=function(e){var t=this,i=this.options,r=e.pointers.length===i.pointers,n=e.distancei.time;if(this._input=e,!n||!r||e.eventType&(Wf|Hf)&&!s)this.reset();else if(e.eventType&Vf)this.reset(),this._timer=setTimeout((function(){t.state=8,t.tryEmit()}),i.time);else if(e.eventType&Wf)return 8;return Bm},i.reset=function(){clearTimeout(this._timer)},i.emit=function(e){8===this.state&&(e&&e.eventType&Wf?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=Sf(),this.manager.emit(this.options.event,this._input)))},t}(Vm),Qm={domEvents:!1,touchAction:Df,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Zm=[[Ym,{enable:!1}],[Km,{enable:!1},["rotate"]],[Xm,{direction:Jf}],[$m,{direction:Jf},["swipe"]],[Wm],[Wm,{event:"doubletap",taps:2},["tap"]],[Jm]];function eg(e,t){var i,r=e.element;r.style&&(im(e.options.cssProps,(function(n,s){i=Tf(r.style,s),t?(e.oldCssProps[i]=r.style[i],r.style[i]=n):r.style[i]=e.oldCssProps[i]||""})),t||(e.oldCssProps={}))}var tg=function(){function e(e,t){var i,r=this;this.options=xf({},Qm,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((i=this).options.inputClass||(Lf?km:Bf?Om:Mf?Mm:Nm))(i,fm),this.touchAction=new sm(this,this.options.touchAction),eg(this,!0),im(this.options.recognizers,(function(e){var t=r.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}var t=e.prototype;return t.set=function(e){return xf(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},t.stop=function(e){this.session.stopped=e?2:1},t.recognize=function(e){var t=this.session;if(!t.stopped){var i;this.touchAction.preventDefaults(e);var r=this.recognizers,n=t.curRecognizer;(!n||n&&8&n.state)&&(t.curRecognizer=null,n=null);for(var s=0;s\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",n=window.console&&(window.console.warn||window.console.log);return n&&n.call(window.console,r,i),e.apply(this,arguments)}}var og=sg((function(e,t,i){for(var r=Object.keys(t),n=0;n1?t-1:0),r=1;r2)return mg(fg(t[0],t[1]),...Fu(t).call(t,2));const r=t[0],n=t[1];if(r instanceof Date&&n instanceof Date)return r.setTime(n.getTime()),r;for(const s of Vu(n))Object.prototype.propertyIsEnumerable.call(n,s)&&(n[s]===hg?delete r[s]:null===r[s]||null===n[s]||"object"!=typeof r[s]||"object"!=typeof n[s]||Wu(r[s])||Wu(n[s])?r[s]=gg(n[s]):r[s]=mg(r[s],n[s]));return r}function gg(e){return Wu(e)?Ju(e).call(e,e=>gg(e)):"object"==typeof e&&null!==e?e instanceof Date?new Date(e.getTime()):mg({},e):e}function yg(e){for(const t of ed(e))e[t]===hg?delete e[t]:"object"==typeof e[t]&&null!==e[t]&&yg(e[t])}function bg(){for(var e=arguments.length,t=new Array(e),i=0;i>>0,t-=e,t*=e,e=t>>>0,t-=e,e+=4294967296*t}return 2.3283064365386963e-10*(e>>>0)}}();let t=e(" "),i=e(" "),r=e(" ");for(let n=0;n{const e=2091639*t+2.3283064365386963e-10*n;return t=i,i=r,r=e-(n=0|e)};return s.uint32=()=>4294967296*s(),s.fract53=()=>s()+11102230246251565e-32*(2097152*s()|0),s.algorithm="Alea",s.seed=e,s.version="0.9",s}(t.length?t:[nd()])}const vg="undefined"!=typeof window?window.Hammer||dg:function(){return function(){const e=()=>{};return{on:e,off:e,destroy:e,emit:e,get:()=>({set:e})}}()};function wg(e){var t;this._cleanupQueue=[],this.active=!1,this._dom={container:e,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(()=>{this._dom.overlay.parentNode.removeChild(this._dom.overlay)});const i=vg(this._dom.overlay);i.on("tap",zr(t=this._onTapOverlay).call(t,this)),this._cleanupQueue.push(()=>{i.destroy()});const r=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];yd(r).call(r,e=>{i.on(e,e=>{e.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=t=>{(function(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1})(t.target,e)||this.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(()=>{document.body.removeEventListener("click",this._onClick)})),this._escListener=e=>{("key"in e?"Escape"===e.key:27===e.keyCode)&&this.deactivate()}}Xr(wg.prototype),wg.current=null,wg.prototype.destroy=function(){this.deactivate();for(const i of Td(e=eh(t=this._cleanupQueue).call(t,0)).call(e)){var e,t;i()}},wg.prototype.activate=function(){wg.current&&wg.current.deactivate(),wg.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)},wg.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")},wg.prototype._onTapOverlay=function(e){this.activate(),e.srcEvent.stopPropagation()};const xg=/^\/?Date\((-?\d+)/i,_g=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,jg=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Cg=/^rgb\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *\)$/i,kg=/^rgba\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *([01]|0?\.\d+) *\)$/i;function Sg(e){return e instanceof Number||"number"==typeof e}function Tg(e){if(e)for(;!0===e.hasChildNodes();){const t=e.firstChild;t&&(Tg(t),e.removeChild(t))}}function Eg(e){return e instanceof String||"string"==typeof e}function Og(e){return"object"==typeof e&&null!==e}function Dg(e,t,i,r){let n=!1;!0===r&&(n=null===t[i]&&void 0!==e[i]),n?delete e[i]:e[i]=t[i]}function Ag(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(const r in e)if(void 0!==t[r])if(null===t[r]||"object"!=typeof t[r])Dg(e,t,r,i);else{const n=e[r],s=t[r];Og(n)&&Og(s)&&Ag(n,s,i)}}const Ng=vr;function Ig(e,t,i){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Wu(i))throw new TypeError("Arrays are not supported by deepExtend");for(let n=0;n3&&void 0!==arguments[3]&&arguments[3];if(Wu(i))throw new TypeError("Arrays are not supported by deepExtend");for(const n in i)if(Object.prototype.hasOwnProperty.call(i,n)&&!_h(e).call(e,n))if(i[n]&&i[n].constructor===Object)void 0===t[n]&&(t[n]={}),t[n].constructor===Object?Pg(t[n],i[n]):Dg(t,i,n,r);else if(Wu(i[n])){t[n]=[];for(let e=0;e2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)||!0===i)if("object"==typeof t[s]&&null!==t[s]&&Sh(t[s])===Object.prototype)void 0===e[s]?e[s]=Pg({},t[s],i):"object"==typeof e[s]&&null!==e[s]&&Sh(e[s])===Object.prototype?Pg(e[s],t[s],i):Dg(e,t,s,r);else if(Wu(t[s])){var n;e[s]=Fu(n=t[s]).call(n)}else Dg(e,t,s,r);return e}function Fg(e,t){return[...e,t]}function Mg(e){return Fu(e).call(e)}function Lg(e){return e.getBoundingClientRect().left}function Bg(e){return e.getBoundingClientRect().top}function zg(e,t){if(Wu(e)){const i=e.length;for(let r=0;r("function"==typeof e&&(e=e()),null!=e?0!=e:t||null),asNumber:(e,t)=>("function"==typeof e&&(e=e()),null!=e?Number(e)||t||null:t||null),asString:(e,t)=>("function"==typeof e&&(e=e()),null!=e?String(e):t||null),asSize:(e,t)=>("function"==typeof e&&(e=e()),Eg(e)?e:Sg(e)?e+"px":t||null),asElement:(e,t)=>("function"==typeof e&&(e=e()),e||t||null)};function Vg(e){let t;switch(e.length){case 3:case 4:return t=jg.exec(e),t?{r:wp(t[1]+t[1],16),g:wp(t[2]+t[2],16),b:wp(t[3]+t[3],16)}:null;case 6:case 7:return t=_g.exec(e),t?{r:wp(t[1],16),g:wp(t[2],16),b:wp(t[3],16)}:null;default:return null}}function Wg(e,t){if(_h(e).call(e,"rgba"))return e;if(_h(e).call(e,"rgb")){const i=e.substr(Ap(e).call(e,"(")+1).replace(")","").split(",");return"rgba("+i[0]+","+i[1]+","+i[2]+","+t+")"}{const i=Vg(e);return null==i?e:"rgba("+i.r+","+i.g+","+i.b+","+t+")"}}function Hg(e,t,i){var r;return"#"+Fu(r=((1<<24)+(e<<16)+(t<<8)+i).toString(16)).call(r,1)}function Gg(e,t){if(Eg(e)){let t=e;if(Zg(t)){var i;const e=Ju(i=t.substr(4).substr(0,t.length-5).split(",")).call(i,(function(e){return wp(e)}));t=Hg(e[0],e[1],e[2])}if(!0===Qg(t)){const e=Jg(t),i={h:e.h,s:.8*e.s,v:Math.min(1,1.02*e.v)},r={h:e.h,s:Math.min(1,1.25*e.s),v:.8*e.v},n=Yg(r.h,r.s,r.v),s=Yg(i.h,i.s,i.v);return{background:t,border:n,highlight:{background:s,border:n},hover:{background:s,border:n}}}return{background:t,border:t,highlight:{background:t,border:t},hover:{background:t,border:t}}}return t?{background:e.background||t.background,border:e.border||t.border,highlight:Eg(e.highlight)?{border:e.highlight,background:e.highlight}:{background:e.highlight&&e.highlight.background||t.highlight.background,border:e.highlight&&e.highlight.border||t.highlight.border},hover:Eg(e.hover)?{border:e.hover,background:e.hover}:{border:e.hover&&e.hover.border||t.hover.border,background:e.hover&&e.hover.background||t.hover.background}}:{background:e.background||void 0,border:e.border||void 0,highlight:Eg(e.highlight)?{border:e.highlight,background:e.highlight}:{background:e.highlight&&e.highlight.background||void 0,border:e.highlight&&e.highlight.border||void 0},hover:Eg(e.hover)?{border:e.hover,background:e.hover}:{border:e.hover&&e.hover.border||void 0,background:e.hover&&e.hover.background||void 0}}}function $g(e,t,i){e/=255,t/=255,i/=255;const r=Math.min(e,Math.min(t,i)),n=Math.max(e,Math.max(t,i));return r===n?{h:0,s:0,v:r}:{h:60*((e===r?3:i===r?1:5)-(e===r?t-i:i===r?e-t:i-e)/(n-r))/360,s:(n-r)/n,v:n}}function Xg(e){const t=document.createElement("div"),i={};t.style.cssText=e;for(let r=0;r3&&void 0!==arguments[3]?arguments[3]:{};const n=function(e){return null!=e},s=function(e){return null!==e&&"object"==typeof e};if(!s(e))throw new Error("Parameter mergeTarget must be an object");if(!s(t))throw new Error("Parameter options must be an object");if(!n(i))throw new Error("Parameter option must have a value");if(!s(r))throw new Error("Parameter globalOptions must be an object");const o=t[i],a=s(r)&&!function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}(r)?r[i]:void 0,l=a?a.enabled:void 0;if(void 0===o)return;if("boolean"==typeof o)return s(e[i])||(e[i]={}),void(e[i].enabled=o);if(null===o&&!s(e[i])){if(!n(a))return;e[i]=Pp(a)}if(!s(o))return;let c=!0;void 0!==o.enabled?c=o.enabled:void 0!==l&&(c=a.enabled),function(e,t,i){s(e[i])||(e[i]={});const r=t[i],n=e[i];for(const s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}(e,t,i),e[i].enabled=c}const ry={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e*e:(4-2*e)*e-1,easeInCubic:e=>e*e*e,easeOutCubic:e=>--e*e*e+1,easeInOutCubic:e=>e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1- --e*e*e*e,easeInOutQuart:e=>e<.5?8*e*e*e*e:1-8*--e*e*e*e,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1+--e*e*e*e*e,easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e};function ny(e,t){let i;Wu(t)||(t=[t]);for(const r of e)if(r){i=r[t[0]];for(let e=1;e0&&void 0!==arguments[0]?arguments[0]:1;this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=()=>{},this.closeCallback=()=>{},this._create()}insertTo(e){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=e,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}setUpdateCallback(e){if("function"!=typeof e)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=e}setCloseCallback(e){if("function"!=typeof e)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=e}_isColorString(e){if("string"==typeof e)return sy[e]}setColor(e){let t,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"===e)return;const r=this._isColorString(e);if(void 0!==r&&(e=r),!0===Eg(e)){if(!0===Zg(e)){const i=e.substr(4).substr(0,e.length-5).split(",");t={r:i[0],g:i[1],b:i[2],a:1}}else if(!0===ey(e)){const i=e.substr(5).substr(0,e.length-6).split(",");t={r:i[0],g:i[1],b:i[2],a:i[3]}}else if(!0===Qg(e)){const i=Vg(e);t={r:i.r,g:i.g,b:i.b,a:1}}}else if(e instanceof Object&&void 0!==e.r&&void 0!==e.g&&void 0!==e.b){const i=void 0!==e.a?e.a:"1.0";t={r:e.r,g:e.g,b:e.b,a:i}}if(void 0===t)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+Bp(e));this._setColor(t,i)}show(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}_hide(){!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.previousColor=vr({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",sf(()=>{void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0)},0)}_save(){this.updateCallback(this.color),this.applied=!1,this._hide()}_apply(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}_loadLast(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}_setColor(e){!0===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(this.initialColor=vr({},e)),this.color=e;const t=$g(e.r,e.g,e.b),i=2*Math.PI,r=this.r*t.s,n=this.centerCoordinates.x+r*Math.sin(i*t.h),s=this.centerCoordinates.y+r*Math.cos(i*t.h);this.colorPickerSelector.style.left=n-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=s-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(e)}_setOpacity(e){this.color.a=e/100,this._updatePicker(this.color)}_setBrightness(e){const t=$g(this.color.r,this.color.g,this.color.b);t.v=e/100;const i=Kg(t.h,t.s,t.v);i.a=this.color.a,this.color=i,this._updatePicker()}_updatePicker(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color;const t=$g(e.r,e.g,e.b),i=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1)),i.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);const r=this.colorPickerCanvas.clientWidth,n=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,r,n),i.putImageData(this.hueCircle,0,0),i.fillStyle="rgba(0,0,0,"+(1-t.v)+")",i.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),gf(i).call(i),this.brightnessRange.value=100*t.v,this.opacityRange.value=100*e.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}_setSize(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}_create(){var e,t,i,r;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){const e=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{const e=document.createElement("DIV");e.style.color="red",e.style.fontWeight="bold",e.style.padding="10px",e.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(e)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(e){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(e){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);const n=this;this.opacityRange.onchange=function(){n._setOpacity(this.value)},this.opacityRange.oninput=function(){n._setOpacity(this.value)},this.brightnessRange.onchange=function(){n._setBrightness(this.value)},this.brightnessRange.oninput=function(){n._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=zr(e=this._hide).call(e,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=zr(t=this._apply).call(t,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=zr(i=this._save).call(i,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=zr(r=this._loadLast).call(r,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}_bindHammer(){this.drag={},this.pinch={},this.hammer=new vg(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",e=>{e.isFirst&&this._moveSelector(e)}),this.hammer.on("tap",e=>{this._moveSelector(e)}),this.hammer.on("panstart",e=>{this._moveSelector(e)}),this.hammer.on("panmove",e=>{this._moveSelector(e)}),this.hammer.on("panend",e=>{this._moveSelector(e)})}_generateHueCircle(){if(!1===this.generated){const e=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)),e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);const t=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;let r,n,s,o;e.clearRect(0,0,t,i),this.centerCoordinates={x:.5*t,y:.5*i},this.r=.49*t;const a=2*Math.PI/360,l=1/360,c=1/this.r;let u;for(s=0;s<360;s++)for(o=0;o3&&void 0!==arguments[3]?arguments[3]:1,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>!1;this.parent=e,this.changedOptions=[],this.container=t,this.allowCreation=!1,this.hideOption=n,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},vr(this.options,this.defaultOptions),this.configureOptions=i,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new oy(r),this.wrapper=void 0}setOptions(e){if(void 0!==e){this.popupHistory={},this._removePopup();let t=!0;if("string"==typeof e)this.options.filter=e;else if(Wu(e))this.options.filter=e.join();else if("object"==typeof e){if(null==e)throw new TypeError("options cannot be null");void 0!==e.container&&(this.options.container=e.container),void 0!==Bh(e)&&(this.options.filter=Bh(e)),void 0!==e.showButton&&(this.options.showButton=e.showButton),void 0!==e.enabled&&(t=e.enabled)}else"boolean"==typeof e?(this.options.filter=!0,t=e):"function"==typeof e&&(this.options.filter=e,t=!0);!1===Bh(this.options)&&(t=!1),this.options.enabled=t}this._clean()}setModuleOptions(e){this.moduleOptions=e,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}_create(){this._clean(),this.changedOptions=[];const e=Bh(this.options);let t=0,i=!1;for(const r in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,r)&&(this.allowCreation=!1,i=!1,"function"==typeof e?(i=e(r,[]),i=i||this._handleObject(this.configureOptions[r],[r],!0)):!0!==e&&-1===Ap(e).call(e,r)||(i=!0),!1!==i&&(this.allowCreation=!0,t>0&&this._makeItem([]),this._makeHeader(r),this._handleObject(this.configureOptions[r],[r])),t++);this._makeButton(),this._push()}_push(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(let e=0;e1?t-1:0),r=1;r{n.appendChild(e)}),this.domElements.push(n),this.domElements.length}return 0}_makeHeader(e){const t=document.createElement("div");t.className="vis-configuration vis-config-header",t.innerText=e,this._makeItem([],t)}_makeLabel(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=document.createElement("div");if(r.className="vis-configuration vis-config-label vis-config-s"+t.length,!0===i){for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(ay("i","b",e))}else r.innerText=e+":";return r}_makeDropdown(e,t,i){const r=document.createElement("select");r.className="vis-configuration vis-config-select";let n=0;void 0!==t&&-1!==Ap(e).call(e,t)&&(n=Ap(e).call(e,t));for(let a=0;as&&1!==s&&(a.max=Math.ceil(t*e),c=a.max,l="range increased"),a.value=t}else a.value=r;const u=document.createElement("input");u.className="vis-configuration vis-config-rangeinput",u.value=a.value;const d=this;a.onchange=function(){u.value=this.value,d._update(Number(this.value),i)},a.oninput=function(){u.value=this.value};const h=this._makeLabel(i[i.length-1],i),p=this._makeItem(i,h,a,u);""!==l&&this.popupHistory[p]!==c&&(this.popupHistory[p]=c,this._setupPopup(l,p))}_makeButton(){if(!0===this.options.showButton){const e=document.createElement("div");e.className="vis-configuration vis-config-button",e.innerText="generate options",e.onclick=()=>{this._printOptions()},e.onmouseover=()=>{e.className="vis-configuration vis-config-button hover"},e.onmouseout=()=>{e.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(e)}}_setupPopup(e,t){if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter{this._removePopup()},this.popupCounter+=1,this.popupDiv={html:i,index:t}}}_removePopup(){void 0!==this.popupDiv.html&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}_showPopupIfNeeded(){if(void 0!==this.popupDiv.html){const e=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=e.left+"px",this.popupDiv.html.style.top=e.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=sf(()=>{this.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=sf(()=>{this._removePopup()},1800)}}_makeCheckbox(e,t,i){const r=document.createElement("input");r.type="checkbox",r.className="vis-configuration vis-config-checkbox",r.checked=e,void 0!==t&&(r.checked=t,t!==e&&("object"==typeof e?t!==e.enabled&&this.changedOptions.push({path:i,value:t}):this.changedOptions.push({path:i,value:t})));const n=this;r.onchange=function(){n._update(this.checked,i)};const s=this._makeLabel(i[i.length-1],i);this._makeItem(i,s,r)}_makeTextInput(e,t,i){const r=document.createElement("input");r.type="text",r.className="vis-configuration vis-config-text",r.value=t,t!==e&&this.changedOptions.push({path:i,value:t});const n=this;r.onchange=function(){n._update(this.value,i)};const s=this._makeLabel(i[i.length-1],i);this._makeItem(i,s,r)}_makeColorField(e,t,i){const r=e[1],n=document.createElement("div");"none"!==(t=void 0===t?r:t)?(n.className="vis-configuration vis-config-colorBlock",n.style.backgroundColor=t):n.className="vis-configuration vis-config-colorBlock none",t=void 0===t?r:t,n.onclick=()=>{this._showColorPicker(t,n,i)};const s=this._makeLabel(i[i.length-1],i);this._makeItem(i,s,n)}_showColorPicker(e,t,i){t.onclick=function(){},this.colorPicker.insertTo(t),this.colorPicker.show(),this.colorPicker.setColor(e),this.colorPicker.setUpdateCallback(e=>{const r="rgba("+e.r+","+e.g+","+e.b+","+e.a+")";t.style.backgroundColor=r,this._update(r,i)}),this.colorPicker.setCloseCallback(()=>{t.onclick=()=>{this._showColorPicker(e,t,i)}})}_handleObject(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!1;const n=Bh(this.options);let s=!1;for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){r=!0;const a=e[o],l=Fg(t,o);if("function"==typeof n&&(r=n(o,t),!1===r&&!Wu(a)&&"string"!=typeof a&&"boolean"!=typeof a&&a instanceof Object&&(this.allowCreation=!1,r=this._handleObject(a,l,!0),this.allowCreation=!1===i)),!1!==r){s=!0;const e=this._getValue(l);if(Wu(a))this._handleArray(a,e,l);else if("string"==typeof a)this._makeTextInput(a,e,l);else if("boolean"==typeof a)this._makeCheckbox(a,e,l);else if(a instanceof Object){if(!this.hideOption(t,o,this.moduleOptions))if(void 0!==a.enabled){const e=Fg(l,"enabled"),t=this._getValue(e);if(!0===t){const e=this._makeLabel(o,l,!0);this._makeItem(l,e),s=this._handleObject(a,l)||s}else this._makeCheckbox(a,t,l)}else{const e=this._makeLabel(o,l,!0);this._makeItem(l,e),s=this._handleObject(a,l)||s}}else console.error("dont know how to handle",a,o,l)}}return s}_handleArray(e,t,i){"string"==typeof e[0]&&"color"===e[0]?(this._makeColorField(e,t,i),e[1]!==t&&this.changedOptions.push({path:i,value:t})):"string"==typeof e[0]?(this._makeDropdown(e,t,i),e[0]!==t&&this.changedOptions.push({path:i,value:t})):"number"==typeof e[0]&&(this._makeRange(e,t,i),e[0]!==t&&this.changedOptions.push({path:i,value:Number(t)}))}_update(e,t){const i=this._constructOptions(e,t);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",i),this.initialized=!0,this.parent.setOptions(i)}_constructOptions(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i;e="false"!==(e="true"===e||e)&&e;for(let n=0;nr-this.padding&&(i=!0),n=i?this.x-t:this.x,s=o?this.y-e:this.y}else s=this.y-e,s+e+this.padding>i&&(s=i-e-this.padding),sr&&(n=r-t-this.padding),ns.distance?" in "+e.printLocation(n.path,t,"")+"Perhaps it was misplaced? Matching option found at: "+e.printLocation(s.path,s.closestMatch,""):n.distance<=8?'. Did you mean "'+n.closestMatch+'"?'+e.printLocation(n.path,t):". Did you mean one of these: "+e.print(ed(i))+e.printLocation(r,t),console.error('%cUnknown option detected: "'+t+'"'+o,uy),cy=!0}static findInOptions(t,i,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=1e9,o="",a=[];const l=t.toLowerCase();let c;for(const d in i){let h;if(void 0!==i[d].__type__&&!0===n){const n=e.findInOptions(t,i[d],Fg(r,d));s>n.distance&&(o=n.closestMatch,a=n.path,s=n.distance,c=n.indexMatch)}else{var u;-1!==Ap(u=d.toLowerCase()).call(u,l)&&(c=d),h=e.levenshteinDistance(t,d),s>h&&(o=d,a=Mg(r),s=h)}}return{closestMatch:o,path:a,distance:s,indexMatch:c}}static printLocation(e,t){let i="\n\n"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n")+"options = {\n";for(let r=0;r0)return"before"==r?Math.max(0,l-1):l;if(n(o,t)<0&&n(a,t)>0)return"before"==r?l:Math.min(e.length-1,l+1);n(o,t)<0?u=l+1:d=l-1,c++}return-1},bridgeObject:ty,copyAndExtendArray:Fg,copyArray:Mg,deepExtend:Pg,deepObjectAssign:fg,easingFunctions:ry,equalArray:function(e,t){if(e.length!==t.length)return!1;for(let i=0,r=e.length;i0&&void 0!==arguments[0]?arguments[0]:window.event,t=null;return e&&(e.target?t=e.target:e.srcElement&&(t=e.srcElement)),t instanceof Element&&(null==t.nodeType||3!=t.nodeType||(t=t.parentNode,t instanceof Element))?t:null},getType:function(e){const t=typeof e;return"object"===t?null===e?"null":e instanceof Boolean?"Boolean":e instanceof Number?"Number":e instanceof String?"String":Wu(e)?"Array":e instanceof Date?"Date":"Object":"number"===t?"Number":"boolean"===t?"Boolean":"string"===t?"String":void 0===t?"undefined":t},hasParent:function(e,t){let i=e;for(;i;){if(i===t)return!0;if(!i.parentNode)return!1;i=i.parentNode}return!1},hexToHSV:Jg,hexToRGB:Vg,insertSort:function(e,t){for(let i=0;i0&&t(r,e[n-1])<0;n--)e[n]=e[n-1];e[n]=r}return e},isDate:function(e){if(e instanceof Date)return!0;if(Eg(e)){if(xg.exec(e))return!0;if(!isNaN(Date.parse(e)))return!0}return!1},isNumber:Sg,isObject:Og,isString:Eg,isValidHex:Qg,isValidRGB:Zg,isValidRGBA:ey,mergeOptions:iy,option:qg,overrideOpacity:Wg,parseColor:Gg,preventDefault:function(e){e||(e=window.event),e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},pureDeepObjectAssign:pg,recursiveDOMDelete:Tg,removeClassName:function(e,t){let i=e.className.split(" ");const r=t.split(" ");i=Bh(i).call(i,(function(e){return!_h(r).call(r,e)})),e.className=i.join(" ")},removeCssText:function(e,t){const i=Xg(t);for(const r of ed(i))e.style.removeProperty(r)},selectiveBridgeObject:function(e,t){if(null!==t&&"object"==typeof t){const i=Pp(t);for(let r=0;r2?i-2:0),n=2;n{t||(t=!0,requestAnimationFrame(()=>{t=!1,e()}))}},toArray:Ug,topMost:ny,updateProperty:function(e,t,i){return e[t]!==i&&(e[t]=i,!0)}});function vy(e){return Cy=e,function(){var e={};if(ky=0,Sy=Cy.charAt(0),My(),"strict"===Ty&&(e.strict=!0,My()),"graph"!==Ty&&"digraph"!==Ty||(e.type=Ty,My()),Ey===_y.IDENTIFIER&&(e.id=Ty,My()),"{"!=Ty)throw Vy("Angle bracket { expected");if(My(),Ly(e),"}"!=Ty)throw Vy("Angle bracket } expected");if(My(),""!==Ty)throw Vy("End of file expected");return My(),delete e.node,delete e.edge,delete e.graph,e}()}var wy={fontsize:"font.size",fontcolor:"font.color",labelfontcolor:"font.color",fontname:"font.face",color:["color.border","color.background"],fillcolor:"color.background",tooltip:"title",labeltooltip:"title"},xy=Pp(wy);xy.color="color.color",xy.style="dashes";var _y={NULL:0,DELIMITER:1,IDENTIFIER:2,UNKNOWN:3},jy={"{":!0,"}":!0,"[":!0,"]":!0,";":!0,"=":!0,",":!0,"->":!0,"--":!0},Cy="",ky=0,Sy="",Ty="",Ey=_y.NULL;function Oy(){ky++,Sy=Cy.charAt(ky)}function Dy(){return Cy.charAt(ky+1)}function Ay(e){var t=e.charCodeAt(0);return t<47?35===t||46===t:t<59?t>47:t<91?t>64:t<96?95===t:t<123&&t>96}function Ny(e,t){if(e||(e={}),t)for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function Iy(e,t,i){for(var r=t.split("."),n=e;r.length;){var s=r.shift();r.length?(n[s]||(n[s]={}),n=n[s]):n[s]=i}}function Ry(e,t){for(var i,r,n=null,s=[e],o=e;o.parent;)s.push(o.parent),o=o.parent;if(o.nodes)for(i=0,r=o.nodes.length;i=0;i--){var a,l=s[i];l.nodes||(l.nodes=[]),-1===Ap(a=l.nodes).call(a,n)&&l.nodes.push(n)}t.attr&&(n.attr=Ny(n.attr,t.attr))}function Py(e,t){if(e.edges||(e.edges=[]),e.edges.push(t),e.edge){var i=Ny({},e.edge);t.attr=Ny(i,t.attr)}}function Fy(e,t,i,r,n){var s={from:t,to:i,type:r};return e.edge&&(s.attr=Ny({},e.edge)),s.attr=Ny(s.attr||{},n),null!=n&&n.hasOwnProperty("arrows")&&null!=n.arrows&&(s.arrows={to:{enabled:!0,type:n.arrows.type}},n.arrows=null),s}function My(){for(Ey=_y.NULL,Ty="";" "===Sy||"\t"===Sy||"\n"===Sy||"\r"===Sy;)Oy();do{var e=!1;if("#"===Sy){for(var t=ky-1;" "===Cy.charAt(t)||"\t"===Cy.charAt(t);)t--;if("\n"===Cy.charAt(t)||""===Cy.charAt(t)){for(;""!=Sy&&"\n"!=Sy;)Oy();e=!0}}if("/"===Sy&&"/"===Dy()){for(;""!=Sy&&"\n"!=Sy;)Oy();e=!0}if("/"===Sy&&"*"===Dy()){for(;""!=Sy;){if("*"===Sy&&"/"===Dy()){Oy(),Oy();break}Oy()}e=!0}for(;" "===Sy||"\t"===Sy||"\n"===Sy||"\r"===Sy;)Oy()}while(e);if(""!==Sy){var i=Sy+Dy();if(jy[i])return Ey=_y.DELIMITER,Ty=i,Oy(),void Oy();if(jy[Sy])return Ey=_y.DELIMITER,Ty=Sy,void Oy();if(Ay(Sy)||"-"===Sy){for(Ty+=Sy,Oy();Ay(Sy);)Ty+=Sy,Oy();return"false"===Ty?Ty=!1:"true"===Ty?Ty=!0:isNaN(Number(Ty))||(Ty=Number(Ty)),void(Ey=_y.IDENTIFIER)}if('"'===Sy){for(Oy();""!=Sy&&('"'!=Sy||'"'===Sy&&'"'===Dy());)'"'===Sy?(Ty+=Sy,Oy()):"\\"===Sy&&"n"===Dy()?(Ty+="\n",Oy()):Ty+=Sy,Oy();if('"'!=Sy)throw Vy('End of string " expected');return Oy(),void(Ey=_y.IDENTIFIER)}for(Ey=_y.UNKNOWN;""!=Sy;)Ty+=Sy,Oy();throw new SyntaxError('Syntax error in part "'+Wy(Ty,30)+'"')}Ey=_y.DELIMITER}function Ly(e){for(;""!==Ty&&"}"!=Ty;)By(e),";"===Ty&&My()}function By(e){var t=zy(e);if(t)Uy(e,t);else{var i=function(e){return"node"===Ty?(My(),e.node=qy(),"node"):"edge"===Ty?(My(),e.edge=qy(),"edge"):"graph"===Ty?(My(),e.graph=qy(),"graph"):null}(e);if(!i){if(Ey!=_y.IDENTIFIER)throw Vy("Identifier expected");var r=Ty;if(My(),"="===Ty){if(My(),Ey!=_y.IDENTIFIER)throw Vy("Identifier expected");e[r]=Ty,My()}else!function(e,t){var i={id:t},r=qy();r&&(i.attr=r),Ry(e,i),Uy(e,t)}(e,r)}}}function zy(e){var t=null;if("subgraph"===Ty&&((t={}).type="subgraph",My(),Ey===_y.IDENTIFIER&&(t.id=Ty,My())),"{"===Ty){if(My(),t||(t={}),t.parent=e,t.node=e.node,t.edge=e.edge,t.graph=e.graph,Ly(t),"}"!=Ty)throw Vy("Angle bracket } expected");My(),delete t.node,delete t.edge,delete t.graph,delete t.parent,e.subgraphs||(e.subgraphs=[]),e.subgraphs.push(t)}return t}function Uy(e,t){for(;"->"===Ty||"--"===Ty;){var i,r=Ty;My();var n=zy(e);if(n)i=n;else{if(Ey!=_y.IDENTIFIER)throw Vy("Identifier or subgraph expected");Ry(e,{id:i=Ty}),My()}Py(e,Fy(e,t,i,r,qy())),t=i}}function qy(){for(var e,t,i=null,r={dashed:!0,solid:!1,dotted:[1,5]},n={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},s=new Array,o=new Array;"["===Ty;){for(My(),i={};""!==Ty&&"]"!=Ty;){if(Ey!=_y.IDENTIFIER)throw Vy("Attribute name expected");var a=Ty;if(My(),"="!=Ty)throw Vy("Equal sign = expected");if(My(),Ey!=_y.IDENTIFIER)throw Vy("Attribute value expected");var l=Ty;"style"===a&&(l=r[l]),"arrowhead"===a&&(a="arrows",l={to:{enabled:!0,type:n[l]}}),"arrowtail"===a&&(a="arrows",l={from:{enabled:!0,type:n[l]}}),s.push({attr:i,name:a,value:l}),o.push(a),My(),","==Ty&&My()}if("]"!=Ty)throw Vy("Bracket ] expected");My()}if(_h(o).call(o,"dir")){var c={arrows:{}};for(e=0;e"===e.type&&(t.arrows="to"),t};yd(n=i.edges).call(n,(function(e){var t,i,n,o,a,l,c;t=e.from instanceof Object?e.from.nodes:{id:e.from},i=e.to instanceof Object?e.to.nodes:{id:e.to},e.from instanceof Object&&e.from.edges&&yd(n=e.from.edges).call(n,(function(e){var t=s(e);r.edges.push(t)})),a=i,l=function(t,i){var n=Fy(r,t.id,i.id,e.type,e.attr),o=s(n);r.edges.push(o)},Wu(o=t)?yd(o).call(o,(function(e){Wu(a)?yd(a).call(a,(function(t){l(e,t)})):l(e,a)})):Wu(a)?yd(a).call(a,(function(e){l(o,e)})):l(o,a),e.to instanceof Object&&e.to.edges&&yd(c=e.to.edges).call(c,(function(e){var t=s(e);r.edges.push(t)}))}))}return i.attr&&(r.options=i.attr),r}var Xy=Object.freeze({__proto__:null,DOTToGraph:$y,parseDOT:vy});function Ky(e,t){var i;const r={edges:{inheritColor:!1},nodes:{fixed:!1,parseColor:!1}};null!=t&&(null!=t.fixed&&(r.nodes.fixed=t.fixed),null!=t.parseColor&&(r.nodes.parseColor=t.parseColor),null!=t.inheritColor&&(r.edges.inheritColor=t.inheritColor));const n=e.edges,s=Ju(n).call(n,e=>{const t={from:e.source,id:e.id,to:e.target};return null!=e.attributes&&(t.attributes=e.attributes),null!=e.label&&(t.label=e.label),null!=e.attributes&&null!=e.attributes.title&&(t.title=e.attributes.title),"Directed"===e.type&&(t.arrows="to"),e.color&&!1===r.edges.inheritColor&&(t.color=e.color),t});return{nodes:Ju(i=e.nodes).call(i,e=>{const t={id:e.id,fixed:r.nodes.fixed&&null!=e.x&&null!=e.y};return null!=e.attributes&&(t.attributes=e.attributes),null!=e.label&&(t.label=e.label),null!=e.size&&(t.size=e.size),null!=e.attributes&&null!=e.attributes.title&&(t.title=e.attributes.title),null!=e.title&&(t.title=e.title),null!=e.x&&(t.x=e.x),null!=e.y&&(t.y=e.y),null!=e.color&&(!0===r.nodes.parseColor?t.color=e.color:t.color={background:e.color,border:e.color,highlight:{background:e.color,border:e.color},hover:{background:e.color,border:e.color}}),t}),edges:s}}var Yy=Object.freeze({__proto__:null,parseGephi:Ky}),Jy=Object.freeze({__proto__:null,cn:{addDescription:"单击空白处放置新节点。",addEdge:"添加连接线",addNode:"添加节点",back:"返回",close:"關閉",createEdgeError:"无法将连接线连接到群集。",del:"删除选定",deleteClusterError:"无法删除群集。",edgeDescription:"单击某个节点并将该连接线拖动到另一个节点以连接它们。",edit:"编辑",editClusterError:"无法编辑群集。",editEdge:"编辑连接线",editEdgeDescription:"单击控制节点并将它们拖到节点上连接。",editNode:"编辑节点"},cs:{addDescription:"Kluknutím do prázdného prostoru můžete přidat nový vrchol.",addEdge:"Přidat hranu",addNode:"Přidat vrchol",back:"Zpět",close:"Zavřít",createEdgeError:"Nelze připojit hranu ke shluku.",del:"Smazat výběr",deleteClusterError:"Nelze mazat shluky.",edgeDescription:"Přetažením z jednoho vrcholu do druhého můžete spojit tyto vrcholy novou hranou.",edit:"Upravit",editClusterError:"Nelze upravovat shluky.",editEdge:"Upravit hranu",editEdgeDescription:"Přetažením kontrolního vrcholu hrany ji můžete připojit k jinému vrcholu.",editNode:"Upravit vrchol"},de:{addDescription:"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.",addEdge:"Kante hinzufügen",addNode:"Knoten hinzufügen",back:"Zurück",close:"Schließen",createEdgeError:"Es ist nicht möglich, Kanten mit Clustern zu verbinden.",del:"Lösche Auswahl",deleteClusterError:"Cluster können nicht gelöscht werden.",edgeDescription:"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.",edit:"Editieren",editClusterError:"Cluster können nicht editiert werden.",editEdge:"Kante editieren",editEdgeDescription:"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.",editNode:"Knoten editieren"},en:{addDescription:"Click in an empty space to place a new node.",addEdge:"Add Edge",addNode:"Add Node",back:"Back",close:"Close",createEdgeError:"Cannot link edges to a cluster.",del:"Delete selected",deleteClusterError:"Clusters cannot be deleted.",edgeDescription:"Click on a node and drag the edge to another node to connect them.",edit:"Edit",editClusterError:"Clusters cannot be edited.",editEdge:"Edit Edge",editEdgeDescription:"Click on the control points and drag them to a node to connect to it.",editNode:"Edit Node"},es:{addDescription:"Haga clic en un lugar vacío para colocar un nuevo nodo.",addEdge:"Añadir arista",addNode:"Añadir nodo",back:"Atrás",close:"Cerrar",createEdgeError:"No se puede conectar una arista a un grupo.",del:"Eliminar selección",deleteClusterError:"No es posible eliminar grupos.",edgeDescription:"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.",edit:"Editar",editClusterError:"No es posible editar grupos.",editEdge:"Editar arista",editEdgeDescription:"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.",editNode:"Editar nodo"},fr:{addDescription:"Cliquez dans un endroit vide pour placer un nœud.",addEdge:"Ajouter un lien",addNode:"Ajouter un nœud",back:"Retour",close:"Fermer",createEdgeError:"Impossible de créer un lien vers un cluster.",del:"Effacer la sélection",deleteClusterError:"Les clusters ne peuvent pas être effacés.",edgeDescription:"Cliquez sur un nœud et glissez le lien vers un autre nœud pour les connecter.",edit:"Éditer",editClusterError:"Les clusters ne peuvent pas être édités.",editEdge:"Éditer le lien",editEdgeDescription:"Cliquez sur les points de contrôle et glissez-les pour connecter un nœud.",editNode:"Éditer le nœud"},it:{addDescription:"Clicca per aggiungere un nuovo nodo",addEdge:"Aggiungi un vertice",addNode:"Aggiungi un nodo",back:"Indietro",close:"Chiudere",createEdgeError:"Non si possono collegare vertici ad un cluster",del:"Cancella la selezione",deleteClusterError:"I cluster non possono essere cancellati",edgeDescription:"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.",edit:"Modifica",editClusterError:"I clusters non possono essere modificati.",editEdge:"Modifica il vertice",editEdgeDescription:"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.",editNode:"Modifica il nodo"},nl:{addDescription:"Klik op een leeg gebied om een nieuwe node te maken.",addEdge:"Link toevoegen",addNode:"Node toevoegen",back:"Terug",close:"Sluiten",createEdgeError:"Kan geen link maken naar een cluster.",del:"Selectie verwijderen",deleteClusterError:"Clusters kunnen niet worden verwijderd.",edgeDescription:"Klik op een node en sleep de link naar een andere node om ze te verbinden.",edit:"Wijzigen",editClusterError:"Clusters kunnen niet worden aangepast.",editEdge:"Link wijzigen",editEdgeDescription:"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.",editNode:"Node wijzigen"},pt:{addDescription:"Clique em um espaço em branco para adicionar um novo nó",addEdge:"Adicionar aresta",addNode:"Adicionar nó",back:"Voltar",close:"Fechar",createEdgeError:"Não foi possível linkar arestas a um cluster.",del:"Remover selecionado",deleteClusterError:"Clusters não puderam ser removidos.",edgeDescription:"Clique em um nó e arraste a aresta até outro nó para conectá-los",edit:"Editar",editClusterError:"Clusters não puderam ser editados.",editEdge:"Editar aresta",editEdgeDescription:"Clique nos pontos de controle e os arraste para um nó para conectá-los",editNode:"Editar nó"},ru:{addDescription:"Кликните в свободное место, чтобы добавить новый узел.",addEdge:"Добавить ребро",addNode:"Добавить узел",back:"Назад",close:"Закрывать",createEdgeError:"Невозможно соединить ребра в кластер.",del:"Удалить выбранное",deleteClusterError:"Кластеры не могут быть удалены",edgeDescription:"Кликните на узел и протяните ребро к другому узлу, чтобы соединить их.",edit:"Редактировать",editClusterError:"Кластеры недоступны для редактирования.",editEdge:"Редактировать ребро",editEdgeDescription:"Кликните на контрольные точки и перетащите их в узел, чтобы подключиться к нему.",editNode:"Редактировать узел"},uk:{addDescription:"Kлікніть на вільне місце, щоб додати новий вузол.",addEdge:"Додати край",addNode:"Додати вузол",back:"Назад",close:"Закрити",createEdgeError:"Не можливо об'єднати краї в групу.",del:"Видалити обране",deleteClusterError:"Групи не можуть бути видалені.",edgeDescription:"Клікніть на вузол і перетягніть край до іншого вузла, щоб їх з'єднати.",edit:"Редагувати",editClusterError:"Групи недоступні для редагування.",editEdge:"Редагувати край",editEdgeDescription:"Клікніть на контрольні точки і перетягніть їх у вузол, щоб підключитися до нього.",editNode:"Редагувати вузол"}});class Qy{constructor(){this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement("canvas")}init(){if(this.initialized())return;this.src=this.image.src;const e=this.image.width,t=this.image.height;this.width=e,this.height=t;const i=Math.floor(t/2),r=Math.floor(t/4),n=Math.floor(t/8),s=Math.floor(t/16),o=Math.floor(e/2),a=Math.floor(e/4),l=Math.floor(e/8),c=Math.floor(e/16);this.canvas.width=3*a,this.canvas.height=i,this.coordinates=[[0,0,o,i],[o,0,a,r],[o,r,l,n],[5*l,r,c,s]],this._fillMipMap()}initialized(){return void 0!==this.coordinates}_fillMipMap(){const e=this.canvas.getContext("2d"),t=this.coordinates[0];e.drawImage(this.image,t[0],t[1],t[2],t[3]);for(let i=1;i2){t*=.5;let o=0;for(;t>2&&o=this.NUM_ITERATIONS&&(o=this.NUM_ITERATIONS-1);const a=this.coordinates[o];e.drawImage(this.canvas,a[0],a[1],a[2],a[3],i,r,n,s)}else e.drawImage(this.image,i,r,n,s)}}class Zy{constructor(e){this.images={},this.imageBroken={},this.callback=e}_tryloadBrokenUrl(e,t,i){void 0!==e&&void 0!==i&&(void 0!==t?(i.image.onerror=()=>{console.error("Could not load brokenImage:",t)},i.image.src=t):console.warn("No broken url image defined"))}_redrawWithImage(e){this.callback&&this.callback(e)}load(e,t){const i=this.images[e];if(i)return i;const r=new Qy;return this.images[e]=r,r.image.onload=()=>{this._fixImageCoordinates(r.image),r.init(),this._redrawWithImage(r)},r.image.onerror=()=>{console.error("Could not load image:",e),this._tryloadBrokenUrl(e,t,r)},r.image.src=e,r}_fixImageCoordinates(e){0===e.width&&(document.body.appendChild(e),e.width=e.offsetWidth,e.height=e.offsetHeight,document.body.removeChild(e))}}var eb={exports:{}},tb=o((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),ib=o,rb=te,nb=x,sb=tb,ob=Object.isExtensible,ab=ib((function(){ob(1)}))||sb?function(e){return!!rb(e)&&(!sb||"ArrayBuffer"!==nb(e))&&(!ob||ob(e))}:ob,lb=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),cb=Oi,ub=y,db=$i,hb=te,pb=Ze,fb=Qt.f,mb=As,gb=Rs,yb=ab,bb=lb,vb=!1,wb=nt("meta"),xb=0,_b=function(e){fb(e,wb,{value:{objectID:"O"+xb++,weakData:{}}})},jb=eb.exports={enable:function(){jb.enable=function(){},vb=!0;var e=mb.f,t=ub([].splice),i={};i[wb]=1,e(i).length&&(mb.f=function(i){for(var r=e(i),n=0,s=r.length;ns;s++)if((a=y(e[s]))&&Yb(iv,a))return a;return new tv(!1)}r=Jb(e,n)}for(l=h?e.next:r.next;!(c=Hb(l,r)).done;){try{a=y(c.value)}catch(e){Zb(r,"throw",e)}if("object"==typeof a&&a&&Yb(iv,a))return a}return new tv(!1)},nv=le,sv=TypeError,ov=function(e,t){if(nv(t,e))return e;throw new sv("Incorrect invocation")},av=Oi,lv=s,cv=Cb,uv=o,dv=yi,hv=rv,pv=ov,fv=E,mv=te,gv=G,yv=wo,bv=Qt.f,vv=Ho.forEach,wv=D,xv=Mo.set,_v=Mo.getterFor,jv=function(e,t,i){var r,n=-1!==e.indexOf("Map"),s=-1!==e.indexOf("Weak"),o=n?"set":"add",a=lv[e],l=a&&a.prototype,c={};if(wv&&fv(a)&&(s||l.forEach&&!uv((function(){(new a).entries().next()})))){var u=(r=t((function(t,i){xv(pv(t,u),{type:e,collection:new a}),gv(i)||hv(i,t[o],{that:t,AS_ENTRIES:n})}))).prototype,d=_v(e);vv(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"===e||"set"===e;!(e in l)||s&&"clear"===e||dv(u,e,(function(i,r){var n=d(this).collection;if(!t&&s&&!mv(i))return"get"===e&&void 0;var o=n[e](0===i?0:i,r);return t?this:o}))})),s||bv(u,"size",{configurable:!0,get:function(){return d(this).collection.size}})}else r=i.getConstructor(t,e,n,o),cv.enable();return yv(r,e,!1,!0),c[e]=r,av({global:!0,forced:!0},c),s||i.setStrong(r,e,n),r},Cv=$s,kv=function(e,t,i){for(var r in t)i&&i.unsafe&&e[r]?e[r]=t[r]:Cv(e,r,t[r],i);return e},Sv=ae,Tv=Ks,Ev=D,Ov=pt("species"),Dv=Ds,Av=Ks,Nv=kv,Iv=Jt,Rv=ov,Pv=G,Fv=rv,Mv=Yc,Lv=Jc,Bv=function(e){var t=Sv(e);Ev&&t&&!t[Ov]&&Tv(t,Ov,{configurable:!0,get:function(){return this}})},zv=D,Uv=Cb.fastKey,qv=Mo.set,Vv=Mo.getterFor,Wv={getConstructor:function(e,t,i,r){var n=e((function(e,n){Rv(e,s),qv(e,{type:t,index:Dv(null),first:void 0,last:void 0,size:0}),zv||(e.size=0),Pv(n)||Fv(n,e[r],{that:e,AS_ENTRIES:i})})),s=n.prototype,o=Vv(t),a=function(e,t,i){var r,n,s=o(e),a=l(e,t);return a?a.value=i:(s.last=a={index:n=Uv(t,!0),key:t,value:i,previous:r=s.last,next:void 0,removed:!1},s.first||(s.first=a),r&&(r.next=a),zv?s.size++:e.size++,"F"!==n&&(s.index[n]=a)),e},l=function(e,t){var i,r=o(e),n=Uv(t);if("F"!==n)return r.index[n];for(i=r.first;i;i=i.next)if(i.key===t)return i};return Nv(s,{clear:function(){for(var e=o(this),t=e.index,i=e.first;i;)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete t[i.index],i=i.next;e.first=e.last=void 0,zv?e.size=0:this.size=0},delete:function(e){var t=this,i=o(t),r=l(t,e);if(r){var n=r.next,s=r.previous;delete i.index[r.index],r.removed=!0,s&&(s.next=n),n&&(n.previous=s),i.first===r&&(i.first=n),i.last===r&&(i.last=s),zv?i.size--:t.size--}return!!r},forEach:function(e){for(var t,i=o(this),r=Iv(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:i.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!l(this,e)}}),Nv(s,i?{get:function(e){var t=l(this,e);return t&&t.value},set:function(e,t){return a(this,0===e?0:e,t)}}:{add:function(e){return a(this,e=0===e?0:e,e)}}),zv&&Av(s,"size",{configurable:!0,get:function(){return o(this).size}}),n},setStrong:function(e,t,i){var r=t+" Iterator",n=Vv(t),s=Vv(r);Mv(e,t,(function(e,t){qv(this,{type:r,target:e,state:n(e),kind:t,last:void 0})}),(function(){for(var e=s(this),t=e.kind,i=e.last;i&&i.removed;)i=i.previous;return e.target&&(e.last=i=i?i.next:e.state.first)?Lv("keys"===t?i.key:"values"===t?i.value:[i.key,i.value],!1):(e.target=void 0,Lv(void 0,!0))}),i?"entries":"values",!i,!0),Bv(t)}};jv("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Wv);var Hv=y,Gv=Ii,$v=ns,Xv=K,Kv=Hv("".charAt),Yv=Hv("".charCodeAt),Jv=Hv("".slice),Qv=function(e){return function(t,i){var r,n,s=$v(Xv(t)),o=Gv(i),a=s.length;return o<0||o>=a?e?"":void 0:(r=Yv(s,o))<55296||r>56319||o+1===a||(n=Yv(s,o+1))<56320||n>57343?e?Kv(s,o):r:e?Jv(s,o,o+2):n-56320+(r-55296<<10)+65536}},Zv={codeAt:Qv(!1),charAt:Qv(!0)}.charAt,ew=ns,tw=Mo,iw=Yc,rw=Jc,nw="String Iterator",sw=tw.set,ow=tw.getterFor(nw);iw(String,"String",(function(e){sw(this,{type:nw,string:ew(e),index:0})}),(function(){var e,t=ow(this),i=t.string,r=t.index;return r>=i.length?rw(void 0,!0):(e=Zv(i,r),t.index+=e.length,rw(e,!1))}));var aw=r(ie.Map);class lw{constructor(){this.clear(),this._defaultIndex=0,this._groupIndex=0,this._defaultGroups=[{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},{border:"#FFA500",background:"#FFFF00",highlight:{border:"#FFA500",background:"#FFFFA3"},hover:{border:"#FFA500",background:"#FFFFA3"}},{border:"#FA0A10",background:"#FB7E81",highlight:{border:"#FA0A10",background:"#FFAFB1"},hover:{border:"#FA0A10",background:"#FFAFB1"}},{border:"#41A906",background:"#7BE141",highlight:{border:"#41A906",background:"#A1EC76"},hover:{border:"#41A906",background:"#A1EC76"}},{border:"#E129F0",background:"#EB7DF4",highlight:{border:"#E129F0",background:"#F0B3F5"},hover:{border:"#E129F0",background:"#F0B3F5"}},{border:"#7C29F0",background:"#AD85E4",highlight:{border:"#7C29F0",background:"#D3BDF0"},hover:{border:"#7C29F0",background:"#D3BDF0"}},{border:"#C37F00",background:"#FFA807",highlight:{border:"#C37F00",background:"#FFCA66"},hover:{border:"#C37F00",background:"#FFCA66"}},{border:"#4220FB",background:"#6E6EFD",highlight:{border:"#4220FB",background:"#9B9BFD"},hover:{border:"#4220FB",background:"#9B9BFD"}},{border:"#FD5A77",background:"#FFC0CB",highlight:{border:"#FD5A77",background:"#FFD1D9"},hover:{border:"#FD5A77",background:"#FFD1D9"}},{border:"#4AD63A",background:"#C2FABC",highlight:{border:"#4AD63A",background:"#E6FFE3"},hover:{border:"#4AD63A",background:"#E6FFE3"}},{border:"#990000",background:"#EE0000",highlight:{border:"#BB0000",background:"#FF3333"},hover:{border:"#BB0000",background:"#FF3333"}},{border:"#FF6000",background:"#FF6000",highlight:{border:"#FF6000",background:"#FF6000"},hover:{border:"#FF6000",background:"#FF6000"}},{border:"#97C2FC",background:"#2B7CE9",highlight:{border:"#D2E5FF",background:"#2B7CE9"},hover:{border:"#D2E5FF",background:"#2B7CE9"}},{border:"#399605",background:"#255C03",highlight:{border:"#399605",background:"#255C03"},hover:{border:"#399605",background:"#255C03"}},{border:"#B70054",background:"#FF007E",highlight:{border:"#B70054",background:"#FF007E"},hover:{border:"#B70054",background:"#FF007E"}},{border:"#AD85E4",background:"#7C29F0",highlight:{border:"#D3BDF0",background:"#7C29F0"},hover:{border:"#D3BDF0",background:"#7C29F0"}},{border:"#4557FA",background:"#000EA1",highlight:{border:"#6E6EFD",background:"#000EA1"},hover:{border:"#6E6EFD",background:"#000EA1"}},{border:"#FFC0CB",background:"#FD5A77",highlight:{border:"#FFD1D9",background:"#FD5A77"},hover:{border:"#FFD1D9",background:"#FD5A77"}},{border:"#C2FABC",background:"#74D66A",highlight:{border:"#E6FFE3",background:"#74D66A"},hover:{border:"#E6FFE3",background:"#74D66A"}},{border:"#EE0000",background:"#990000",highlight:{border:"#FF3333",background:"#BB0000"},hover:{border:"#FF3333",background:"#BB0000"}}],this.options={},this.defaultOptions={useDefaultGroups:!0},vr(this.options,this.defaultOptions)}setOptions(e){const t=["useDefaultGroups"];if(void 0!==e)for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&-1===Ap(t).call(t,i)){const t=e[i];this.add(i,t)}}clear(){this._groups=new aw,this._groupNames=[]}get(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this._groups.get(e);if(void 0===i&&t)if(!1===this.options.useDefaultGroups&&this._groupNames.length>0){const t=this._groupIndex%this._groupNames.length;++this._groupIndex,i={},i.color=this._groups.get(this._groupNames[t]),this._groups.set(e,i)}else{const t=this._defaultIndex%this._defaultGroups.length;this._defaultIndex++,i={},i.color=this._defaultGroups[t],this._groups.set(e,i)}return i}add(e,t){return this._groups.has(e)||this._groupNames.push(e),this._groups.set(e,t),t}}Oi({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var cw=r(ie.Number.isNaN),uw=s.isFinite,dw=Number.isFinite||function(e){return"number"==typeof e&&uw(e)};Oi({target:"Number",stat:!0},{isFinite:dw});var hw=r(ie.Number.isFinite),pw=Ho.some;Oi({target:"Array",proto:!0,forced:!od("some")},{some:function(e){return pw(this,e,arguments.length>1?arguments[1]:void 0)}});var fw=Rr("Array").some,mw=le,gw=fw,yw=Array.prototype,bw=function(e){var t=e.some;return e===yw||mw(yw,e)&&t===yw.some?gw:t},vw=r(bw),ww=r(ie.Object.getOwnPropertySymbols),xw={exports:{}},_w=Oi,jw=o,Cw=Q,kw=O.f,Sw=D;_w({target:"Object",stat:!0,forced:!Sw||jw((function(){kw(1)})),sham:!Sw},{getOwnPropertyDescriptor:function(e,t){return kw(Cw(e),t)}});var Tw=ie.Object,Ew=xw.exports=function(e,t){return Tw.getOwnPropertyDescriptor(e,t)};Tw.getOwnPropertyDescriptor.sham&&(Ew.sham=!0);var Ow=r(xw.exports),Dw=qu,Aw=Q,Nw=O,Iw=rn;Oi({target:"Object",stat:!0,sham:!D},{getOwnPropertyDescriptors:function(e){for(var t,i,r=Aw(e),n=Nw.f,s=Dw(r),o={},a=0;s.length>a;)void 0!==(i=n(r,t=s[a++]))&&Iw(o,t,i);return o}});var Rw=r(ie.Object.getOwnPropertyDescriptors),Pw={exports:{}},Fw=Oi,Mw=D,Lw=ss.f;Fw({target:"Object",stat:!0,forced:Object.defineProperties!==Lw,sham:!Mw},{defineProperties:Lw});var Bw=ie.Object,zw=Pw.exports=function(e,t){return Bw.defineProperties(e,t)};Bw.defineProperties.sham&&(zw.sham=!0);var Uw=r(Pw.exports),qw={exports:{}},Vw=Oi,Ww=D,Hw=Qt.f;Vw({target:"Object",stat:!0,forced:Object.defineProperty!==Hw,sham:!Ww},{defineProperty:Hw});var Gw=ie.Object,$w=qw.exports=function(e,t,i){return Gw.defineProperty(e,t,i)};Gw.defineProperty.sham&&($w.sham=!0);var Xw=qw.exports,Kw=r(Xw),Yw=pt,Jw=Qt.f,Qw=Yw("metadata"),Zw=Function.prototype;void 0===Zw[Qw]&&Jw(Zw,Qw,{value:null}),so("asyncDispose"),so("dispose"),so("metadata");var ex=mu,tx=y,ix=ae("Symbol"),rx=ix.keyFor,nx=tx(ix.prototype.valueOf),sx=ix.isRegisteredSymbol||function(e){try{return void 0!==rx(nx(e))}catch(e){return!1}};Oi({target:"Symbol",stat:!0},{isRegisteredSymbol:sx});for(var ox=$e,ax=ae,lx=y,cx=Se,ux=pt,dx=ax("Symbol"),hx=dx.isWellKnownSymbol,px=ax("Object","getOwnPropertyNames"),fx=lx(dx.prototype.valueOf),mx=ox("wks"),gx=0,yx=px(dx),bx=yx.length;gx=0:a>l;l+=c)l in o&&(n=i(n,o[l],l,s));return n}},Rx={left:Ix(!1),right:Ix(!0)},Px="process"===x(s.process),Fx=Rx.left;Oi({target:"Array",proto:!0,forced:!Px&&ge>79&&ge<83||!od("reduce")},{reduce:function(e){var t=arguments.length;return Fx(this,e,t,t>1?arguments[1]:void 0)}});var Mx=Rr("Array").reduce,Lx=le,Bx=Mx,zx=Array.prototype,Ux=function(e){var t=e.reduce;return e===zx||Lx(zx,e)&&t===zx.reduce?Bx:t},qx=r(Ux),Vx=Yr,Wx=Ui,Hx=Qr,Gx=Jt,$x=function(e,t,i,r,n,s,o,a){for(var l,c,u=n,d=0,h=!!o&&Gx(o,a);d0&&Vx(l)?(c=Wx(l),u=$x(e,t,l,c,u,s-1)-1):(Hx(u+1),e[u]=l),u++),d++;return u},Xx=$x,Kx=Ne,Yx=Ye,Jx=Ui,Qx=Mn;Oi({target:"Array",proto:!0},{flatMap:function(e){var t,i=Yx(this),r=Jx(i);return Kx(e),(t=Qx(i,0)).length=Xx(t,i,i,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}});var Zx=Rr("Array").flatMap,e_=le,t_=Zx,i_=Array.prototype,r_=function(e){var t=e.flatMap;return e===i_||e_(i_,e)&&t===i_.flatMap?t_:t},n_=r(r_),s_=r(_x);jv("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Wv);var o_=r(ie.Set),a_=r(zb),l_=zs,c_=Math.floor,u_=function(e,t){var i=e.length,r=c_(i/2);return i<8?d_(e,t):h_(e,u_(l_(e,0,r),t),u_(l_(e,r),t),t)},d_=function(e,t){for(var i,r,n=e.length,s=1;s0;)e[r]=e[--r];r!==s++&&(e[r]=i)}return e},h_=function(e,t,i,r){for(var n=t.length,s=i.length,o=0,a=0;o3)){if(D_)return!0;if(N_)return N_<603;var e,t,i,r,n="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:i=3;break;case 68:case 71:i=4;break;default:i=2}for(r=0;r<47;r++)I_.push({k:t+r,v:i})}for(I_.sort((function(e,t){return t.v-e.v})),r=0;rk_(i)?1:-1}}(e)),i=j_(n),r=0;rt(e),e)}_add(e,t){null!=t&&this._target.add(this._transformItems(this._source.get(t.items)))}_update(e,t){null!=t&&this._target.update(this._transformItems(this._source.get(t.items)))}_remove(e,t){null!=t&&this._target.remove(this._transformItems(t.oldData))}}class Oj{constructor(e){Tx(this,"_source",void 0),Tx(this,"_transformers",[]),this._source=e}filter(e){return this._transformers.push(t=>Bh(t).call(t,e)),this}map(e){return this._transformers.push(t=>Ju(t).call(t,e)),this}flatMap(e){return this._transformers.push(t=>n_(t).call(t,e)),this}to(e){return new Ej(this._source,this._transformers,e)}}function Dj(e){return"string"==typeof e||"number"==typeof e}class Aj{constructor(e){Tx(this,"delay",void 0),Tx(this,"max",void 0),Tx(this,"_queue",[]),Tx(this,"_timeout",null),Tx(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(e)}setOptions(e){e&&void 0!==e.delay&&(this.delay=e.delay),e&&void 0!==e.max&&(this.max=e.max),this._flushIfNeeded()}static extend(e,t){const i=new Aj(t);if(void 0!==e.flush)throw new Error("Target object already has a property flush");e.flush=()=>{i.flush()};const r=[{name:"flush",original:void 0}];if(t&&t.replace)for(let n=0;nthis.max&&this.flush(),null!=this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&"number"==typeof this.delay&&(this._timeout=sf(()=>{this.flush()},this.delay))}flush(){var e,t;yd(e=eh(t=this._queue).call(t,0)).call(e,e=>{e.fn.apply(e.context||e.fn,e.args||[])})}}class Nj{constructor(){Tx(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),Tx(this,"subscribe",Nj.prototype.on),Tx(this,"unsubscribe",Nj.prototype.off)}_trigger(e,t,i){var r;if("*"===e)throw new Error("Cannot trigger event *");yd(r=[...this._subscribers[e],...this._subscribers["*"]]).call(r,r=>{r(e,t,null!=i?i:null)})}on(e,t){"function"==typeof t&&this._subscribers[e].push(t)}off(e,t){var i;this._subscribers[e]=Bh(i=this._subscribers[e]).call(i,e=>e!==t)}}class Ij{constructor(e){Tx(this,"_pairs",void 0),this._pairs=e}*[s_](){for(const[e,t]of this._pairs)yield[e,t]}*entries(){for(const[e,t]of this._pairs)yield[e,t]}*keys(){for(const[e]of this._pairs)yield e}*values(){for(const[,e]of this._pairs)yield e}toIdArray(){var e;return Ju(e=[...this._pairs]).call(e,e=>e[0])}toItemArray(){var e;return Ju(e=[...this._pairs]).call(e,e=>e[1])}toEntryArray(){return[...this._pairs]}toObjectMap(){const e=Pp(null);for(const[t,i]of this._pairs)e[t]=i;return e}toMap(){return new aw(this._pairs)}toIdSet(){return new o_(this.toIdArray())}toItemSet(){return new o_(this.toItemArray())}cache(){return new Ij([...this._pairs])}distinct(e){const t=new o_;for(const[i,r]of this._pairs)t.add(e(r,i));return t}filter(e){const t=this._pairs;return new Ij({*[s_](){for(const[i,r]of t)e(r,i)&&(yield[i,r])}})}forEach(e){for(const[t,i]of this._pairs)e(i,t)}map(e){const t=this._pairs;return new Ij({*[s_](){for(const[i,r]of t)yield[i,e(r,i)]}})}max(e){const t=a_(this._pairs);let i=t.next();if(i.done)return null;let r=i.value[1],n=e(i.value[1],i.value[0]);for(;!(i=t.next()).done;){const[t,s]=i.value,o=e(s,t);o>n&&(n=o,r=s)}return r}min(e){const t=a_(this._pairs);let i=t.next();if(i.done)return null;let r=i.value[1],n=e(i.value[1],i.value[0]);for(;!(i=t.next()).done;){const[t,s]=i.value,o=e(s,t);o{var t;return a_(H_(t=[...this._pairs]).call(t,(t,i)=>{let[r,n]=t,[s,o]=i;return e(n,o,r,s)}))}})}}class Rj extends Nj{get idProp(){return this._idProp}constructor(e,t){super(),Tx(this,"flush",void 0),Tx(this,"length",void 0),Tx(this,"_options",void 0),Tx(this,"_data",void 0),Tx(this,"_idProp",void 0),Tx(this,"_queue",null),e&&!Wu(e)&&(t=e,e=[]),this._options=t||{},this._data=new aw,this.length=0,this._idProp=this._options.fieldId||"id",e&&e.length&&this.add(e),this.setOptions(t)}setOptions(e){e&&void 0!==e.queue&&(!1===e.queue?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=Aj.extend(this,{replace:["add","update","remove"]})),e.queue&&"object"==typeof e.queue&&this._queue.setOptions(e.queue)))}add(e,t){const i=[];let r;if(Wu(e)){const t=Ju(e).call(e,e=>e[this._idProp]);if(vw(t).call(t,e=>this._data.has(e)))throw new Error("A duplicate id was found in the parameter array.");for(let n=0,s=e.length;n{const t=e[o];if(null!=t&&this._data.has(t)){const i=e,o=vr({},this._data.get(t)),a=this._updateItem(i);r.push(a),s.push(i),n.push(o)}else{const t=this._addItem(e);i.push(t)}};if(Wu(e))for(let l=0,c=e.length;l{const t=this._data.get(e[this._idProp]);if(null==t)throw new Error("Updating non-existent items is not allowed.");return{oldData:t,update:e}})).call(i,e=>{let{oldData:t,update:i}=e;const r=t[this._idProp],n=pg(t,i);return this._data.set(r,n),{id:r,oldData:t,updatedData:n}});if(r.length){const e={items:Ju(r).call(r,e=>e.id),oldData:Ju(r).call(r,e=>e.oldData),data:Ju(r).call(r,e=>e.updatedData)};return this._trigger("update",e,t),e.items}return[]}get(e,t){let i,r,n;Dj(e)?(i=e,n=t):Wu(e)?(r=e,n=t):n=e;const s=n&&"Object"===n.returnType?"Object":"Array",o=n&&Bh(n),a=[];let l,c,u;if(null!=i)l=this._data.get(i),l&&o&&!o(l)&&(l=void 0);else if(null!=r)for(let p=0,f=r.length;p(t[i]=e[i],t),{}):e}_sort(e,t){if("string"==typeof t){const i=t;H_(e).call(e,(e,t)=>{const r=e[i],n=t[i];return r>n?1:ri)&&(t=n,i=s)}return t||null}min(e){let t=null,i=null;for(const n of cj(r=this._data).call(r)){var r;const s=n[e];"number"==typeof s&&(null==i||ss(e)&&o(e)),null==r?this._data.get(n):this._data.get(r,n)}getIds(e){if(this._data.length){const t=Bh(this._options),i=null!=e?Bh(e):null;let r;return r=i?t?e=>t(e)&&i(e):i:t,this._data.getIds({filter:r,order:e&&e.order})}return[]}forEach(e,t){if(this._data){var i;const r=Bh(this._options),n=t&&Bh(t);let s;s=n?r?function(e){return r(e)&&n(e)}:n:r,yd(i=this._data).call(i,e,{filter:s,order:t&&t.order})}}map(e,t){if(this._data){var i;const r=Bh(this._options),n=t&&Bh(t);let s;return s=n?r?e=>r(e)&&n(e):n:r,Ju(i=this._data).call(i,e,{filter:s,order:t&&t.order})}return[]}getDataSet(){return this._data.getDataSet()}stream(e){var t;return this._data.stream(e||{[s_]:zr(t=ej(this._ids)).call(t,this._ids)})}dispose(){var e;null!==(e=this._data)&&void 0!==e&&e.off&&this._data.off("*",this._listener);const t="This data view has already been disposed of.",i={get:()=>{throw new Error(t)},set:()=>{throw new Error(t)},configurable:!1};for(const r of Vu(Pj.prototype))vj(this,r,i)}_onEvent(e,t,i){if(!t||!t.items||!this._data)return;const r=t.items,n=[],s=[],o=[],a=[],l=[],c=[];switch(e){case"add":for(let e=0,t=r.length;et.x&&e.topt.y}function nC(e){return"string"==typeof e&&""!==e}function sC(e,t,i,r){let n=r.x,s=r.y;if("function"==typeof r.distanceToBorder){const i=r.distanceToBorder(e,t),o=Math.sin(t)*i,a=Math.cos(t)*i;a===i?(n+=i,s=r.y):o===i?(n=r.x,s-=i):(n+=a,s-=o)}else r.shape.width>r.shape.height?(n=r.x+.5*r.shape.width,s=r.y-i):(n=r.x+i,s=r.y-.5*r.shape.height);return{x:n,y:s}}class oC{constructor(e){this.measureText=e,this.current=0,this.width=0,this.height=0,this.lines=[]}_add(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal";void 0===this.lines[e]&&(this.lines[e]={width:0,height:0,blocks:[]});let r=t;void 0!==t&&""!==t||(r=" ");const n=this.measureText(r,i),s=vr({},cj(n));s.text=t,s.width=n.width,s.mod=i,void 0!==t&&""!==t||(s.width=0),this.lines[e].blocks.push(s),this.lines[e].width+=s.width}curWidth(){const e=this.lines[this.current];return void 0===e?0:e.width}append(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";this._add(this.current,e,t)}newLine(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";this._add(this.current,e,t),this.current++}determineLineHeights(){for(let e=0;ee&&(e=r.width),t+=r.height}this.width=e,this.height=t}removeEmptyBlocks(){const e=[];for(let t=0;t"://,""://,""://,"":/<\/b>/,"":/<\/i>/,"":/<\/code>/,"*":/\*/,_:/_/,"`":/`/,afterBold:/[^*]/,afterItal:/[^_]/,afterMono:/[^`]/};class lC{constructor(e){this.text=e,this.bold=!1,this.ital=!1,this.mono=!1,this.spacing=!1,this.position=0,this.buffer="",this.modStack=[],this.blocks=[]}mod(){return 0===this.modStack.length?"normal":this.modStack[0]}modName(){return 0===this.modStack.length?"normal":"mono"===this.modStack[0]?"mono":this.bold&&this.ital?"boldital":this.bold?"bold":this.ital?"ital":void 0}emitBlock(){this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(this.blocks.push({text:this.buffer,mod:this.modName()}),this.buffer="")}add(e){" "===e&&(this.spacing=!0),this.spacing&&(this.buffer+=" ",this.spacing=!1)," "!=e&&(this.buffer+=e)}parseWS(e){return!!/[ \t]/.test(e)&&(this.mono?this.add(e):this.spacing=!0,!0)}setTag(e){this.emitBlock(),this[e]=!0,this.modStack.unshift(e)}unsetTag(e){this.emitBlock(),this[e]=!1,this.modStack.shift()}parseStartTag(e,t){return!(this.mono||this[e]||!this.match(t))&&(this.setTag(e),!0)}match(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const[i,r]=this.prepareRegExp(e),n=i.test(this.text.substr(this.position,r));return n&&t&&(this.position+=r-1),n}parseEndTag(e,t,i){let r=this.mod()===e;return r="mono"===e?r&&this.mono:r&&!this.mono,!(!r||!this.match(t))&&(void 0!==i?(this.position===this.text.length-1||this.match(i,!1))&&this.unsetTag(e):this.unsetTag(e),!0)}replace(e,t){return!!this.match(e)&&(this.add(t),this.position+=length-1,!0)}prepareRegExp(e){let t,i;if(e instanceof RegExp)i=e,t=1;else{const r=aC[e];i=void 0!==r?r:new RegExp(e),t=e.length}return[i,t]}}class cC{constructor(e,t,i,r){this.ctx=e,this.parent=t,this.selected=i,this.hover=r,this.lines=new oC((t,n)=>{if(void 0===t)return 0;const s=this.parent.getFormattingValues(e,i,r,n);let o=0;return""!==t&&(o=this.ctx.measureText(t).width),{width:o,values:s}})}process(e){if(!nC(e))return this.lines.finalize();const t=this.parent.fontOptions;e=(e=e.replace(/\r\n/g,"\n")).replace(/\r/g,"\n");const i=String(e).split("\n"),r=i.length;if(t.multi)for(let n=0;n0)for(let t=0;t0)for(let n=0;n!!/&/.test(e)&&(t.replace(t.text,"<","<")||t.replace(t.text,"&","&")||t.add("&"),!0);for(;t.position")||t.parseStartTag("ital","")||t.parseStartTag("mono","")||t.parseEndTag("bold","")||t.parseEndTag("ital","")||t.parseEndTag("mono",""))||i(e)||t.add(e),t.position++}return t.emitBlock(),t.blocks}splitMarkdownBlocks(e){const t=new lC(e);let i=!0;const r=e=>!!/\\/.test(e)&&(t.positionthis.parent.fontOptions.maxWdt}getLongestFit(e){let t="",i=0;for(;i1&&void 0!==arguments[1]?arguments[1]:"normal",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.parent.getFormattingValues(this.ctx,this.selected,this.hover,t);let r=(e=(e=e.replace(/^( +)/g,"$1\r")).replace(/([^\r][^ ]*)( +)/g,"$1\r$2\r")).split("\r");for(;r.length>0;){let e=this.getLongestFit(r);if(0===e){const e=r[0],i=this.getLongestFitWord(e);this.lines.newLine(Fu(e).call(e,0,i),t),r[0]=Fu(e).call(e,i)}else{let n=e;" "===r[e-1]?e--:" "===r[n]&&n++;const s=Fu(r).call(r,0,e).join("");e==r.length&&i?this.lines.append(s,t):this.lines.newLine(s,t),r=Fu(r).call(r,n)}}}}const uC=["bold","ital","boldital","mono"];class dC{constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.body=e,this.pointToSelf=!1,this.baseSize=void 0,this.fontOptions={},this.setOptions(t),this.size={top:0,left:0,width:0,height:0,yLine:0},this.isEdgeLabel=i}setOptions(e){if(this.elementOptions=e,this.initFontOptions(e.font),nC(e.label)?this.labelDirty=!0:e.label=void 0,void 0!==e.font&&null!==e.font)if("string"==typeof e.font)this.baseSize=this.fontOptions.size;else if("object"==typeof e.font){const t=e.font.size;void 0!==t&&(this.baseSize=t)}}initFontOptions(e){zg(uC,e=>{this.fontOptions[e]={}}),dC.parseFontString(this.fontOptions,e)?this.fontOptions.vadjust=0:zg(e,(e,t)=>{null!=e&&"object"!=typeof e&&(this.fontOptions[t]=e)})}static parseFontString(e,t){if(!t||"string"!=typeof t)return!1;const i=t.split(" ");return e.size=+i[0].replace("px",""),e.face=i[1],e.color=i[2],!0}constrain(e){const t={constrainWidth:!1,maxWdt:-1,minWdt:-1,constrainHeight:!1,minHgt:-1,valign:"middle"},i=ny(e,"widthConstraint");if("number"==typeof i)t.maxWdt=Number(i),t.minWdt=Number(i);else if("object"==typeof i){const i=ny(e,["widthConstraint","maximum"]);"number"==typeof i&&(t.maxWdt=Number(i));const r=ny(e,["widthConstraint","minimum"]);"number"==typeof r&&(t.minWdt=Number(r))}const r=ny(e,"heightConstraint");if("number"==typeof r)t.minHgt=Number(r);else if("object"==typeof r){const i=ny(e,["heightConstraint","minimum"]);"number"==typeof i&&(t.minHgt=Number(i));const r=ny(e,["heightConstraint","valign"]);"string"==typeof r&&("top"!==r&&"bottom"!==r||(t.valign=r))}return t}update(e,t){this.setOptions(e,!0),this.propagateFonts(t),Pg(this.fontOptions,this.constrain(t)),this.fontOptions.chooser=iC("label",t)}adjustSizes(e){const t=e?e.right+e.left:0;this.fontOptions.constrainWidth&&(this.fontOptions.maxWdt-=t,this.fontOptions.minWdt-=t);const i=e?e.top+e.bottom:0;this.fontOptions.constrainHeight&&(this.fontOptions.minHgt-=i)}addFontOptionsToPile(e,t){for(let i=0;i{void 0!==e&&(Object.prototype.hasOwnProperty.call(t,i)||(-1!==Ap(uC).call(uC,i)?t[i]={}:t[i]=e))})}return t}getFontOption(e,t,i){let r;for(let n=0;n{r[t]=e}),r.size=Number(r.size),r.vadjust=Number(r.vadjust)}}draw(e,t,i,r,n){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"middle";if(void 0===this.elementOptions.label)return;let o=this.fontOptions.size*this.body.view.scale;this.elementOptions.label&&o=this.elementOptions.scaling.label.maxVisible&&(o=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale),this.calculateLabelSize(e,r,n,t,i,s),this._drawBackground(e),this._drawText(e,t,this.size.yLine,s,o))}_drawBackground(e){if(void 0!==this.fontOptions.background&&"none"!==this.fontOptions.background){e.fillStyle=this.fontOptions.background;const t=this.getSize();e.fillRect(t.left,t.top,t.width,t.height)}}_drawText(e,t,i){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"middle",n=arguments.length>4?arguments[4]:void 0;[t,i]=this._setAlignment(e,t,i,r),e.textAlign="left",t-=this.size.width/2,this.fontOptions.valign&&this.size.height>this.size.labelHeight&&("top"===this.fontOptions.valign&&(i-=(this.size.height-this.size.labelHeight)/2),"bottom"===this.fontOptions.valign&&(i+=(this.size.height-this.size.labelHeight)/2));for(let s=0;s0&&(e.lineWidth=a.strokeWidth,e.strokeStyle=c,e.lineJoin="round"),e.fillStyle=l,a.strokeWidth>0&&e.strokeText(a.text,t+s,i+a.vadjust),e.fillText(a.text,t+s,i+a.vadjust),s+=a.width}i+=r.height}}}_setAlignment(e,t,i,r){if(this.isEdgeLabel&&"horizontal"!==this.fontOptions.align&&!1===this.pointToSelf){t=0,i=0;const r=2;"top"===this.fontOptions.align?(e.textBaseline="alphabetic",i-=2*r):"bottom"===this.fontOptions.align?(e.textBaseline="hanging",i+=2*r):e.textBaseline="middle"}else e.textBaseline=r;return[t,i]}_getColor(e,t,i){let r=e||"#000000",n=i||"#ffffff";if(t<=this.elementOptions.scaling.label.drawThreshold){const e=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-t)));r=Wg(r,e),n=Wg(n,e)}return[r,n]}getTextSize(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this._processLabel(e,t,i),{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}getSize(){let e=this.size.left,t=this.size.top-1;if(this.isEdgeLabel){const i=.5*-this.size.width;switch(this.fontOptions.align){case"middle":e=i,t=.5*-this.size.height;break;case"top":e=i,t=-(this.size.height+2);break;case"bottom":e=i,t=2}}return{left:e,top:t,width:this.size.width,height:this.size.height}}calculateLabelSize(e,t,i){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"middle";this._processLabel(e,t,i),this.size.left=r-.5*this.size.width,this.size.top=n-.5*this.size.height,this.size.yLine=n+.5*(1-this.lineCount)*this.fontOptions.size,"hanging"===s&&(this.size.top+=.5*this.fontOptions.size,this.size.top+=4,this.size.yLine+=4)}getFormattingValues(e,t,i,r){const n=function(e,t,i){return"normal"===t?"mod"===i?"":e[i]:void 0!==e[t][i]?e[t][i]:e[i]},s={color:n(this.fontOptions,r,"color"),size:n(this.fontOptions,r,"size"),face:n(this.fontOptions,r,"face"),mod:n(this.fontOptions,r,"mod"),vadjust:n(this.fontOptions,r,"vadjust"),strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};(t||i)&&("normal"===r&&!0===this.fontOptions.chooser&&this.elementOptions.labelHighlightBold?s.mod="bold":"function"==typeof this.fontOptions.chooser&&this.fontOptions.chooser(s,this.elementOptions.id,t,i));let o="";return void 0!==s.mod&&""!==s.mod&&(o+=s.mod+" "),o+=s.size+"px "+s.face,e.font=o.replace(/"/g,""),s.font=e.font,s.height=s.size,s}differentState(e,t){return e!==this.selectedState||t!==this.hoverState}_processLabelText(e,t,i,r){return new cC(e,this,t,i).process(r)}_processLabel(e,t,i){if(!1===this.labelDirty&&!this.differentState(t,i))return;const r=this._processLabelText(e,t,i,this.elementOptions.label);this.fontOptions.minWdt>0&&r.width0&&r.height0&&(this.enableBorderDashes(e,t),e.stroke(),this.disableBorderDashes(e,t)),e.restore()}performFill(e,t){e.save(),e.fillStyle=t.color,this.enableShadow(e,t),gf(e).call(e),this.disableShadow(e,t),e.restore(),this.performStroke(e,t)}_addBoundingBoxMargin(e){this.boundingBox.left-=e,this.boundingBox.top-=e,this.boundingBox.bottom+=e,this.boundingBox.right+=e}_updateBoundingBox(e,t,i,r,n){void 0!==i&&this.resize(i,r,n),this.left=e-this.width/2,this.top=t-this.height/2,this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width}updateBoundingBox(e,t,i,r,n){this._updateBoundingBox(e,t,i,r,n)}getDimensionsFromLabel(e,t,i){this.textSize=this.labelModule.getTextSize(e,t,i);let r=this.textSize.width,n=this.textSize.height;return 0===r&&(r=14,n=14),{width:r,height:n}}}let pC=class extends hC{constructor(e,t,i){super(e,t,i),this._setMargins(i)}resize(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(t,i)){const r=this.getDimensionsFromLabel(e,t,i);this.width=r.width+this.margin.right+this.margin.left,this.height=r.height+this.margin.top+this.margin.bottom,this.radius=this.width/2}}draw(e,t,i,r,n,s){this.resize(e,r,n),this.left=t-this.width/2,this.top=i-this.height/2,this.initContextForDraw(e,s),qr(e,this.left,this.top,this.width,this.height,s.borderRadius),this.performFill(e,s),this.updateBoundingBox(t,i,e,r,n),this.labelModule.draw(e,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,r,n)}updateBoundingBox(e,t,i,r,n){this._updateBoundingBox(e,t,i,r,n);const s=this.options.shapeProperties.borderRadius;this._addBoundingBoxMargin(s)}distanceToBorder(e,t){e&&this.resize(e);const i=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(t)),Math.abs(this.height/2/Math.sin(t)))+i}};class fC extends hC{constructor(e,t,i){super(e,t,i),this.labelOffset=0,this.selected=!1}setOptions(e,t,i){this.options=e,void 0===t&&void 0===i||this.setImages(t,i)}setImages(e,t){t&&this.selected?(this.imageObj=t,this.imageObjAlt=e):(this.imageObj=e,this.imageObjAlt=t)}switchImages(e){const t=e&&!this.selected||!e&&this.selected;if(this.selected=e,void 0!==this.imageObjAlt&&t){const e=this.imageObj;this.imageObj=this.imageObjAlt,this.imageObjAlt=e}}_getImagePadding(){const e={top:0,right:0,bottom:0,left:0};if(this.options.imagePadding){const t=this.options.imagePadding;"object"==typeof t?(e.top=t.top,e.right=t.right,e.bottom=t.bottom,e.left=t.left):(e.top=t,e.right=t,e.bottom=t,e.left=t)}return e}_resizeImage(){let e,t;if(!1===this.options.shapeProperties.useImageSize){let i=1,r=1;this.imageObj.width&&this.imageObj.height&&(this.imageObj.width>this.imageObj.height?i=this.imageObj.width/this.imageObj.height:r=this.imageObj.height/this.imageObj.width),e=2*this.options.size*i,t=2*this.options.size*r}else{const i=this._getImagePadding();e=this.imageObj.width+i.left+i.right,t=this.imageObj.height+i.top+i.bottom}this.width=e,this.height=t,this.radius=.5*this.width}_drawRawCircle(e,t,i,r){this.initContextForDraw(e,r),Ur(e,t,i,r.size),this.performFill(e,r)}_drawImageAtPosition(e,t){if(0!=this.imageObj.width){e.globalAlpha=void 0!==t.opacity?t.opacity:1,this.enableShadow(e,t);let i=1;!0===this.options.shapeProperties.interpolation&&(i=this.imageObj.width/this.width/this.body.view.scale);const r=this._getImagePadding(),n=this.left+r.left,s=this.top+r.top,o=this.width-r.left-r.right,a=this.height-r.top-r.bottom;this.imageObj.drawImageAtPosition(e,i,n,s,o,a),this.disableShadow(e,t)}}_drawImageLabel(e,t,i,r,n){let s=0;if(void 0!==this.height){s=.5*this.height;const t=this.labelModule.getTextSize(e,r,n);t.lineCount>=1&&(s+=t.height/2)}const o=i+s;this.options.label&&(this.labelOffset=s),this.labelModule.draw(e,t,o,r,n,"hanging")}}let mC=class extends fC{constructor(e,t,i){super(e,t,i),this._setMargins(i)}resize(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(t,i)){const r=this.getDimensionsFromLabel(e,t,i),n=Math.max(r.width+this.margin.right+this.margin.left,r.height+this.margin.top+this.margin.bottom);this.options.size=n/2,this.width=n,this.height=n,this.radius=this.width/2}}draw(e,t,i,r,n,s){this.resize(e,r,n),this.left=t-this.width/2,this.top=i-this.height/2,this._drawRawCircle(e,t,i,s),this.updateBoundingBox(t,i),this.labelModule.draw(e,this.left+this.textSize.width/2+this.margin.left,i,r,n)}updateBoundingBox(e,t){this.boundingBox.top=t-this.options.size,this.boundingBox.left=e-this.options.size,this.boundingBox.right=e+this.options.size,this.boundingBox.bottom=t+this.options.size}distanceToBorder(e){return e&&this.resize(e),.5*this.width}};class gC extends fC{constructor(e,t,i,r,n){super(e,t,i),this.setImages(r,n)}resize(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(void 0===this.imageObj.src||void 0===this.imageObj.width||void 0===this.imageObj.height){const e=2*this.options.size;return this.width=e,this.height=e,void(this.radius=.5*this.width)}this.needsRefresh(t,i)&&this._resizeImage()}draw(e,t,i,r,n,s){this.switchImages(r),this.resize();let o=t,a=i;"top-left"===this.options.shapeProperties.coordinateOrigin?(this.left=t,this.top=i,o+=this.width/2,a+=this.height/2):(this.left=t-this.width/2,this.top=i-this.height/2),this._drawRawCircle(e,o,a,s),e.save(),e.clip(),this._drawImageAtPosition(e,s),e.restore(),this._drawImageLabel(e,o,a,r,n),this.updateBoundingBox(t,i)}updateBoundingBox(e,t){"top-left"===this.options.shapeProperties.coordinateOrigin?(this.boundingBox.top=t,this.boundingBox.left=e,this.boundingBox.right=e+2*this.options.size,this.boundingBox.bottom=t+2*this.options.size):(this.boundingBox.top=t-this.options.size,this.boundingBox.left=e-this.options.size,this.boundingBox.right=e+this.options.size,this.boundingBox.bottom=t+this.options.size),this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}distanceToBorder(e){return e&&this.resize(e),.5*this.width}}class yC extends hC{constructor(e,t,i){super(e,t,i)}resize(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{size:this.options.size};if(this.needsRefresh(t,i)){var n,s;this.labelModule.getTextSize(e,t,i);const o=2*r.size;this.width=null!==(n=this.customSizeWidth)&&void 0!==n?n:o,this.height=null!==(s=this.customSizeHeight)&&void 0!==s?s:o,this.radius=.5*this.width}}_drawShape(e,t,i,r,n,s,o,a){var l;return this.resize(e,s,o,a),this.left=r-this.width/2,this.top=n-this.height/2,this.initContextForDraw(e,a),(l=t,Object.prototype.hasOwnProperty.call(Gr,l)?Gr[l]:function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r{if(void 0!==this.options.label){this.labelModule.calculateLabelSize(e,s,o,r,n,"hanging");const t=n+.5*this.height+.5*this.labelModule.size.height;this.labelModule.draw(e,r,t,s,o,"hanging")}this.updateBoundingBox(r,n)}}}updateBoundingBox(e,t){this.boundingBox.top=t-this.options.size,this.boundingBox.left=e-this.options.size,this.boundingBox.right=e+this.options.size,this.boundingBox.bottom=t+this.options.size,void 0!==this.options.label&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height))}}function bC(e,t){var i=ed(e);if(ww){var r=ww(e);t&&(r=Bh(r).call(r,(function(t){return Ow(e,t).enumerable}))),i.push.apply(i,r)}return i}function vC(e){for(var t=1;t{e.save(),t(),e.restore()}}return o.nodeDimensions&&(this.customSizeWidth=o.nodeDimensions.width,this.customSizeHeight=o.nodeDimensions.height),o}distanceToBorder(e,t){return this._distanceToBorder(e,t)}}class xC extends hC{constructor(e,t,i){super(e,t,i),this._setMargins(i)}resize(e,t,i){if(this.needsRefresh(t,i)){const r=this.getDimensionsFromLabel(e,t,i).width+this.margin.right+this.margin.left;this.width=r,this.height=r,this.radius=this.width/2}}draw(e,t,i,r,n,s){this.resize(e,r,n),this.left=t-this.width/2,this.top=i-this.height/2,this.initContextForDraw(e,s),Wr(e,t-this.width/2,i-this.height/2,this.width,this.height),this.performFill(e,s),this.updateBoundingBox(t,i,e,r,n),this.labelModule.draw(e,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,r,n)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}}let _C=class extends yC{constructor(e,t,i){super(e,t,i)}draw(e,t,i,r,n,s){return this._drawShape(e,"diamond",4,t,i,r,n,s)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}};class jC extends yC{constructor(e,t,i){super(e,t,i)}draw(e,t,i,r,n,s){return this._drawShape(e,"circle",2,t,i,r,n,s)}distanceToBorder(e){return e&&this.resize(e),this.options.size}}class CC extends hC{constructor(e,t,i){super(e,t,i)}resize(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(t,i)){const r=this.getDimensionsFromLabel(e,t,i);this.height=2*r.height,this.width=r.width+r.height,this.radius=.5*this.width}}draw(e,t,i,r,n,s){this.resize(e,r,n),this.left=t-.5*this.width,this.top=i-.5*this.height,this.initContextForDraw(e,s),Vr(e,this.left,this.top,this.width,this.height),this.performFill(e,s),this.updateBoundingBox(t,i,e,r,n),this.labelModule.draw(e,t,i,r,n)}distanceToBorder(e,t){e&&this.resize(e);const i=.5*this.width,r=.5*this.height,n=Math.sin(t)*i,s=Math.cos(t)*r;return i*r/Math.sqrt(n*n+s*s)}}class kC extends hC{constructor(e,t,i){super(e,t,i),this._setMargins(i)}resize(e,t,i){this.needsRefresh(t,i)&&(this.iconSize={width:Number(this.options.icon.size),height:Number(this.options.icon.size)},this.width=this.iconSize.width+this.margin.right+this.margin.left,this.height=this.iconSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}draw(e,t,i,r,n,s){return this.resize(e,r,n),this.options.icon.size=this.options.icon.size||50,this.left=t-this.width/2,this.top=i-this.height/2,this._icon(e,t,i,r,n,s),{drawExternalLabel:()=>{if(void 0!==this.options.label){const t=5;this.labelModule.draw(e,this.left+this.iconSize.width/2+this.margin.left,i+this.height/2+t,r)}this.updateBoundingBox(t,i)}}}updateBoundingBox(e,t){if(this.boundingBox.top=t-.5*this.options.icon.size,this.boundingBox.left=e-.5*this.options.icon.size,this.boundingBox.right=e+.5*this.options.icon.size,this.boundingBox.bottom=t+.5*this.options.icon.size,void 0!==this.options.label&&this.labelModule.size.width>0){const e=5;this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+e)}}_icon(e,t,i,r,n,s){const o=Number(this.options.icon.size);void 0!==this.options.icon.code?(e.font=[null!=this.options.icon.weight?this.options.icon.weight:r?"bold":"",(null!=this.options.icon.weight&&r?5:0)+o+"px",this.options.icon.face].join(" "),e.fillStyle=this.options.icon.color||"black",e.textAlign="center",e.textBaseline="middle",this.enableShadow(e,s),e.fillText(this.options.icon.code,t,i),this.disableShadow(e,s)):console.error("When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.")}distanceToBorder(e,t){return this._distanceToBorder(e,t)}}let SC=class extends fC{constructor(e,t,i,r,n){super(e,t,i),this.setImages(r,n)}resize(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(void 0===this.imageObj.src||void 0===this.imageObj.width||void 0===this.imageObj.height){const e=2*this.options.size;return this.width=e,void(this.height=e)}this.needsRefresh(t,i)&&this._resizeImage()}draw(e,t,i,r,n,s){e.save(),this.switchImages(r),this.resize();let o=t,a=i;if("top-left"===this.options.shapeProperties.coordinateOrigin?(this.left=t,this.top=i,o+=this.width/2,a+=this.height/2):(this.left=t-this.width/2,this.top=i-this.height/2),!0===this.options.shapeProperties.useBorderWithImage){const t=this.options.borderWidth,i=this.options.borderWidthSelected||2*this.options.borderWidth,o=(r?i:t)/this.body.view.scale;e.lineWidth=Math.min(this.width,o),e.beginPath();let a=r?this.options.color.highlight.border:n?this.options.color.hover.border:this.options.color.border,l=r?this.options.color.highlight.background:n?this.options.color.hover.background:this.options.color.background;void 0!==s.opacity&&(a=Wg(a,s.opacity),l=Wg(l,s.opacity)),e.strokeStyle=a,e.fillStyle=l,e.rect(this.left-.5*e.lineWidth,this.top-.5*e.lineWidth,this.width+e.lineWidth,this.height+e.lineWidth),gf(e).call(e),this.performStroke(e,s),e.closePath()}this._drawImageAtPosition(e,s),this._drawImageLabel(e,o,a,r,n),this.updateBoundingBox(t,i),e.restore()}updateBoundingBox(e,t){this.resize(),"top-left"===this.options.shapeProperties.coordinateOrigin?(this.left=e,this.top=t):(this.left=e-this.width/2,this.top=t-this.height/2),this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width,void 0!==this.options.label&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset))}distanceToBorder(e,t){return this._distanceToBorder(e,t)}};class TC extends yC{constructor(e,t,i){super(e,t,i)}draw(e,t,i,r,n,s){return this._drawShape(e,"square",2,t,i,r,n,s)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}}class EC extends yC{constructor(e,t,i){super(e,t,i)}draw(e,t,i,r,n,s){return this._drawShape(e,"hexagon",4,t,i,r,n,s)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}}class OC extends yC{constructor(e,t,i){super(e,t,i)}draw(e,t,i,r,n,s){return this._drawShape(e,"star",4,t,i,r,n,s)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}}class DC extends hC{constructor(e,t,i){super(e,t,i),this._setMargins(i)}resize(e,t,i){this.needsRefresh(t,i)&&(this.textSize=this.labelModule.getTextSize(e,t,i),this.width=this.textSize.width+this.margin.right+this.margin.left,this.height=this.textSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}draw(e,t,i,r,n,s){this.resize(e,r,n),this.left=t-this.width/2,this.top=i-this.height/2,this.enableShadow(e,s),this.labelModule.draw(e,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,r,n),this.disableShadow(e,s),this.updateBoundingBox(t,i,e,r,n)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}}let AC=class extends yC{constructor(e,t,i){super(e,t,i)}draw(e,t,i,r,n,s){return this._drawShape(e,"triangle",3,t,i,r,n,s)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}};class NC extends yC{constructor(e,t,i){super(e,t,i)}draw(e,t,i,r,n,s){return this._drawShape(e,"triangleDown",3,t,i,r,n,s)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}}function IC(e,t){var i=ed(e);if(ww){var r=ww(e);t&&(r=Bh(r).call(r,(function(t){return Ow(e,t).enumerable}))),i.push.apply(i,r)}return i}function RC(e){for(var t=1;tnull!=t[e]);o.push("font"),Rg(o,e,s),e.color=Gg(e.color)}static parseOptions(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=arguments.length>4?arguments[4]:void 0;if(Rg(["color","fixed","shadow"],e,t,i),PC.checkMass(t),void 0!==e.opacity&&(PC.checkOpacity(e.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity),e.opacity=void 0)),void 0!==t.opacity&&(PC.checkOpacity(t.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+t.opacity),t.opacity=void 0)),t.shapeProperties&&!PC.checkCoordinateOrigin(t.shapeProperties.coordinateOrigin)&&console.error("Invalid option for node coordinateOrigin, found: "+t.shapeProperties.coordinateOrigin),iy(e,t,"shadow",r),void 0!==t.color&&null!==t.color){const i=Gg(t.color);Ag(e.color,i)}else!0===i&&null===t.color&&(e.color=ty(r.color));void 0!==t.fixed&&null!==t.fixed&&("boolean"==typeof t.fixed?(e.fixed.x=t.fixed,e.fixed.y=t.fixed):(void 0!==t.fixed.x&&"boolean"==typeof t.fixed.x&&(e.fixed.x=t.fixed.x),void 0!==t.fixed.y&&"boolean"==typeof t.fixed.y&&(e.fixed.y=t.fixed.y))),!0===i&&null===t.font&&(e.font=ty(r.font)),PC.updateGroupOptions(e,t,n),void 0!==t.scaling&&iy(e.scaling,t.scaling,"label",r.scaling)}getFormattingValues(){const e={color:this.options.color.background,opacity:this.options.opacity,borderWidth:this.options.borderWidth,borderColor:this.options.color.border,size:this.options.size,borderDashes:this.options.shapeProperties.borderDashes,borderRadius:this.options.shapeProperties.borderRadius,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y};if(this.selected||this.hover?!0===this.chooser?this.selected?(null!=this.options.borderWidthSelected?e.borderWidth=this.options.borderWidthSelected:e.borderWidth*=2,e.color=this.options.color.highlight.background,e.borderColor=this.options.color.highlight.border,e.shadow=this.options.shadow.enabled):this.hover&&(e.color=this.options.color.hover.background,e.borderColor=this.options.color.hover.border,e.shadow=this.options.shadow.enabled):"function"==typeof this.chooser&&(this.chooser(e,this.options.id,this.selected,this.hover),!1===e.shadow&&(e.shadowColor===this.options.shadow.color&&e.shadowSize===this.options.shadow.size&&e.shadowX===this.options.shadow.x&&e.shadowY===this.options.shadow.y||(e.shadow=!0))):e.shadow=this.options.shadow.enabled,void 0!==this.options.opacity){const t=this.options.opacity;e.borderColor=Wg(e.borderColor,t),e.color=Wg(e.color,t),e.shadowColor=Wg(e.shadowColor,t)}return e}updateLabelModule(e){void 0!==this.options.label&&null!==this.options.label||(this.options.label=""),PC.updateGroupOptions(this.options,RC(RC({},e),{},{color:e&&e.color||this._localColor||void 0}),this.grouplist);const t=this.grouplist.get(this.options.group,!1),i=[e,this.options,t,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,i),void 0!==this.labelModule.baseSize&&(this.baseFontSize=this.labelModule.baseSize)}updateShape(e){if(e===this.options.shape&&this.shape)this.shape.setOptions(this.options,this.imageObj,this.imageObjAlt);else switch(this.options.shape){case"box":this.shape=new pC(this.options,this.body,this.labelModule);break;case"circle":this.shape=new mC(this.options,this.body,this.labelModule);break;case"circularImage":this.shape=new gC(this.options,this.body,this.labelModule,this.imageObj,this.imageObjAlt);break;case"custom":this.shape=new wC(this.options,this.body,this.labelModule,this.options.ctxRenderer);break;case"database":this.shape=new xC(this.options,this.body,this.labelModule);break;case"diamond":this.shape=new _C(this.options,this.body,this.labelModule);break;case"dot":this.shape=new jC(this.options,this.body,this.labelModule);break;case"ellipse":default:this.shape=new CC(this.options,this.body,this.labelModule);break;case"icon":this.shape=new kC(this.options,this.body,this.labelModule);break;case"image":this.shape=new SC(this.options,this.body,this.labelModule,this.imageObj,this.imageObjAlt);break;case"square":this.shape=new TC(this.options,this.body,this.labelModule);break;case"hexagon":this.shape=new EC(this.options,this.body,this.labelModule);break;case"star":this.shape=new OC(this.options,this.body,this.labelModule);break;case"text":this.shape=new DC(this.options,this.body,this.labelModule);break;case"triangle":this.shape=new AC(this.options,this.body,this.labelModule);break;case"triangleDown":this.shape=new NC(this.options,this.body,this.labelModule)}this.needsRefresh()}select(){this.selected=!0,this.needsRefresh()}unselect(){this.selected=!1,this.needsRefresh()}needsRefresh(){this.shape.refreshNeeded=!0}getTitle(){return this.options.title}distanceToBorder(e,t){return this.shape.distanceToBorder(e,t)}isFixed(){return this.options.fixed.x&&this.options.fixed.y}isSelected(){return this.selected}getValue(){return this.options.value}getLabelSize(){return this.labelModule.size()}setValueRange(e,t,i){if(void 0!==this.options.value){const r=this.options.scaling.customScalingFunction(e,t,i,this.options.value),n=this.options.scaling.max-this.options.scaling.min;if(!0===this.options.scaling.label.enabled){const e=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+r*e}this.options.size=this.options.scaling.min+r*n}else this.options.size=this.baseSize,this.options.font.size=this.baseFontSize;this.updateLabelModule()}draw(e){const t=this.getFormattingValues();return this.shape.draw(e,this.x,this.y,this.selected,this.hover,t)||{}}updateBoundingBox(e){this.shape.updateBoundingBox(this.x,this.y,e)}resize(e){const t=this.getFormattingValues();this.shape.resize(e,this.selected,this.hover,t)}getItemsOnPoint(e){const t=[];return this.labelModule.visible()&&rC(this.labelModule.getSize(),e)&&t.push({nodeId:this.id,labelId:0}),rC(this.shape.boundingBox,e)&&t.push({nodeId:this.id}),t}isOverlappingWith(e){return this.shape.lefte.left&&this.shape.tope.top}isBoundingBoxOverlappingWith(e){return this.shape.boundingBox.lefte.left&&this.shape.boundingBox.tope.top}static checkMass(e,t){if(void 0!==e.mass&&e.mass<=0){let i="";void 0!==t&&(i=" in node id: "+t),console.error("%cNegative or zero mass disallowed"+i+", setting mass to 1.",gy),e.mass=1}}}class FC{constructor(e,t,i,r){var n;if(this.body=e,this.images=t,this.groups=i,this.layoutEngine=r,this.body.functions.createNode=zr(n=this.create).call(n,this),this.nodesListeners={add:(e,t)=>{this.add(t.items)},update:(e,t)=>{this.update(t.items,t.data,t.oldData)},remove:(e,t)=>{this.remove(t.items)}},this.defaultOptions={borderWidth:1,borderWidthSelected:void 0,brokenImage:void 0,color:{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},opacity:void 0,fixed:{x:!1,y:!1},font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:0,strokeColor:"#ffffff",align:"center",vadjust:0,multi:!1,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"monospace",vadjust:2}},group:void 0,hidden:!1,icon:{face:"FontAwesome",code:void 0,size:50,color:"#2B7CE9"},image:void 0,imagePadding:{top:0,right:0,bottom:0,left:0},label:void 0,labelHighlightBold:!0,level:void 0,margin:{top:5,right:5,bottom:5,left:5},mass:1,physics:!0,scaling:{min:10,max:30,label:{enabled:!1,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(e,t,i,r){if(t===e)return.5;{const i=1/(t-e);return Math.max(0,(r-e)*i)}}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},shape:"ellipse",shapeProperties:{borderDashes:!1,borderRadius:6,interpolation:!0,useImageSize:!1,useBorderWithImage:!1,coordinateOrigin:"center"},size:25,title:void 0,value:void 0,x:void 0,y:void 0},this.defaultOptions.mass<=0)throw"Internal error: mass in defaultOptions of NodesHandler may not be zero or negative";this.options=ty(this.defaultOptions),this.bindEventListeners()}bindEventListeners(){var e,t;this.body.emitter.on("refreshNodes",zr(e=this.refresh).call(e,this)),this.body.emitter.on("refresh",zr(t=this.refresh).call(t,this)),this.body.emitter.on("destroy",()=>{zg(this.nodesListeners,(e,t)=>{this.body.data.nodes&&this.body.data.nodes.off(t,e)}),delete this.body.functions.createNode,delete this.nodesListeners.add,delete this.nodesListeners.update,delete this.nodesListeners.remove,delete this.nodesListeners})}setOptions(e){if(void 0!==e){if(PC.parseOptions(this.options,e),void 0!==e.opacity&&(cw(e.opacity)||!hw(e.opacity)||e.opacity<0||e.opacity>1?console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity):this.options.opacity=e.opacity),void 0!==e.shape)for(const e in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,e)&&this.body.nodes[e].updateShape();if(void 0!==e.font||void 0!==e.widthConstraint||void 0!==e.heightConstraint)for(const e of ed(this.body.nodes))this.body.nodes[e].updateLabelModule(),this.body.nodes[e].needsRefresh();if(void 0!==e.size)for(const e in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,e)&&this.body.nodes[e].needsRefresh();void 0===e.hidden&&void 0===e.physics||this.body.emitter.emit("_dataChanged")}}setData(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=this.body.data.nodes;if(Mj("id",e))this.body.data.nodes=e;else if(Wu(e))this.body.data.nodes=new Rj,this.body.data.nodes.add(e);else{if(e)throw new TypeError("Array or DataSet expected");this.body.data.nodes=new Rj}if(i&&zg(this.nodesListeners,(function(e,t){i.off(t,e)})),this.body.nodes={},this.body.data.nodes){const e=this;zg(this.nodesListeners,(function(t,i){e.body.data.nodes.on(i,t)}));const t=this.body.data.nodes.getIds();this.add(t,!0)}!1===t&&this.body.emitter.emit("_dataChanged")}add(e){let t,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=[];for(let n=0;n1&&void 0!==arguments[1]?arguments[1]:PC)(e,this.body,this.images,this.groups,this.options,this.defaultOptions)}refresh(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];zg(this.body.nodes,(t,i)=>{const r=this.body.data.nodes.get(i);void 0!==r&&(!0===e&&t.setOptions({x:null,y:null}),t.setOptions({fixed:!1}),t.setOptions(r))})}getPositions(e){const t={};if(void 0!==e){if(!0===Wu(e)){for(let i=0;i{this.body.emitter.emit("startSimulation")},0)):console.error("Node id supplied to moveNode does not exist. Provided: ",e)}}var MC=Oi,LC=Math.hypot,BC=Math.abs,zC=Math.sqrt;MC({target:"Math",stat:!0,arity:2,forced:!!LC&&LC(1/0,NaN)!==1/0},{hypot:function(e,t){for(var i,r,n=0,s=0,o=arguments.length,a=0;s0?(r=i/a)*r:i;return a===1/0?1/0:a*zC(n)}});var UC=r(ie.Math.hypot);class qC{static transform(e,t){Wu(e)||(e=[e]);const i=t.point.x,r=t.point.y,n=t.angle,s=t.length;for(let o=0;o4&&void 0!==arguments[4]?arguments[4]:this.getViaNode();e.strokeStyle=this.getColor(e,t),e.lineWidth=t.width,!1!==t.dashes?this._drawDashedLine(e,t,n):this._drawLine(e,t,n)}_drawLine(e,t,i,r,n){if(this.from!=this.to)this._line(e,t,i,r,n);else{const[i,r,n]=this._getCircleData(e);this._circle(e,t,i,r,n)}}_drawDashedLine(e,t,i,r,n){e.lineCap="round";const s=Wu(t.dashes)?t.dashes:[5,5];if(void 0!==e.setLineDash){if(e.save(),e.setLineDash(s),e.lineDashOffset=0,this.from!=this.to)this._line(e,t,i);else{const[i,r,n]=this._getCircleData(e);this._circle(e,t,i,r,n)}e.setLineDash([0]),e.lineDashOffset=0,e.restore()}else{if(this.from!=this.to)Hr(e,this.from.x,this.from.y,this.to.x,this.to.y,s);else{const[i,r,n]=this._getCircleData(e);this._circle(e,t,i,r,n)}this.enableShadow(e,t),e.stroke(),this.disableShadow(e,t)}}findBorderPosition(e,t,i){return this.from!=this.to?this._findBorderPosition(e,t,i):this._findBorderPositionCircle(e,t,i)}findBorderPositions(e){if(this.from!=this.to)return{from:this._findBorderPosition(this.from,e),to:this._findBorderPosition(this.to,e)};{var t;const[i,r]=Fu(t=this._getCircleData(e)).call(t,0,2);return{from:this._findBorderPositionCircle(this.from,e,{x:i,y:r,low:.25,high:.6,direction:-1}),to:this._findBorderPositionCircle(this.from,e,{x:i,y:r,low:.6,high:.8,direction:1})}}}_getCircleData(e){const t=this.options.selfReference.size;void 0!==e&&void 0===this.from.shape.width&&this.from.shape.resize(e);const i=sC(e,this.options.selfReference.angle,t,this.from);return[i.x,i.y,t]}_pointOnCircle(e,t,i,r){const n=2*r*Math.PI;return{x:e+i*Math.cos(n),y:t-i*Math.sin(n)}}_findBorderPositionCircle(e,t,i){const r=i.x,n=i.y;let s=i.low,o=i.high;const a=i.direction,l=this.options.selfReference.size;let c,u=.5*(s+o),d=0;!0===this.options.arrowStrikethrough&&(-1===a?d=this.options.endPointOffset.from:1===a&&(d=this.options.endPointOffset.to));let h=0;do{u=.5*(s+o),c=this._pointOnCircle(r,n,l,u);const i=Math.atan2(e.y-c.y,e.x-c.x),p=e.distanceToBorder(t,i)+d-Math.sqrt(Math.pow(c.x-e.x,2)+Math.pow(c.y-e.y,2));if(Math.abs(p)<.05)break;p>0?a>0?s=u:o=u:a>0?o=u:s=u,++h}while(s<=o&&h<10);return rk(rk({},c),{},{t:u})}getLineWidth(e,t){return!0===e?Math.max(this.selectionWidth,.3/this._body.view.scale):!0===t?Math.max(this.hoverWidth,.3/this._body.view.scale):Math.max(this.options.width,.3/this._body.view.scale)}getColor(e,t){if(!1!==t.inheritsColor){if("both"===t.inheritsColor&&this.from.id!==this.to.id){const i=e.createLinearGradient(this.from.x,this.from.y,this.to.x,this.to.y);let r=this.from.options.color.highlight.border,n=this.to.options.color.highlight.border;return!1===this.from.selected&&!1===this.to.selected?(r=Wg(this.from.options.color.border,t.opacity),n=Wg(this.to.options.color.border,t.opacity)):!0===this.from.selected&&!1===this.to.selected?n=this.to.options.color.border:!1===this.from.selected&&!0===this.to.selected&&(r=this.from.options.color.border),i.addColorStop(0,r),i.addColorStop(1,n),i}return"to"===t.inheritsColor?Wg(this.to.options.color.border,t.opacity):Wg(this.from.options.color.border,t.opacity)}return Wg(t.color,t.opacity)}_circle(e,t,i,r,n){this.enableShadow(e,t);let s=0,o=2*Math.PI;if(!this.options.selfReference.renderBehindTheNode){const t=this.options.selfReference.angle,n=this.options.selfReference.angle+Math.PI,a=this._findBorderPositionCircle(this.from,e,{x:i,y:r,low:t,high:n,direction:-1}),l=this._findBorderPositionCircle(this.from,e,{x:i,y:r,low:t,high:n,direction:1});s=Math.atan2(a.y-r,a.x-i),o=Math.atan2(l.y-r,l.x-i)}e.beginPath(),e.arc(i,r,n,s,o,!1),e.stroke(),this.disableShadow(e,t)}getDistanceToEdge(e,t,i,r,n,s){if(this.from!=this.to)return this._getDistanceToEdge(e,t,i,r,n,s);{const[e,t,i]=this._getCircleData(void 0),r=e-n,o=t-s;return Math.abs(Math.sqrt(r*r+o*o)-i)}}_getDistanceToLine(e,t,i,r,n,s){const o=i-e,a=r-t;let l=((n-e)*o+(s-t)*a)/(o*o+a*a);l>1?l=1:l<0&&(l=0);const c=e+l*o-n,u=t+l*a-s;return Math.sqrt(c*c+u*u)}getArrowData(e,t,i,r,n,s){let o,a,l,c,u,d,h;const p=s.width;"from"===t?(l=this.from,c=this.to,u=s.fromArrowScale<0,d=Math.abs(s.fromArrowScale),h=s.fromArrowType):"to"===t?(l=this.to,c=this.from,u=s.toArrowScale<0,d=Math.abs(s.toArrowScale),h=s.toArrowType):(l=this.to,c=this.from,u=s.middleArrowScale<0,d=Math.abs(s.middleArrowScale),h=s.middleArrowType);const f=15*d+3*p;if(l!=c){const r=f/UC(l.x-c.x,l.y-c.y);if("middle"!==t)if(!0===this.options.smooth.enabled){const n=this._findBorderPosition(l,e,{via:i}),s=this.getPoint(n.t+r*("from"===t?1:-1),i);o=Math.atan2(n.y-s.y,n.x-s.x),a=n}else o=Math.atan2(l.y-c.y,l.x-c.x),a=this._findBorderPosition(l,e);else{const e=(u?-r:r)/2,t=this.getPoint(.5+e,i),n=this.getPoint(.5-e,i);o=Math.atan2(t.y-n.y,t.x-n.x),a=this.getPoint(.5,i)}}else{const[i,r,n]=this._getCircleData(e);if("from"===t){const t=this.options.selfReference.angle,n=this.options.selfReference.angle+Math.PI,s=this._findBorderPositionCircle(this.from,e,{x:i,y:r,low:t,high:n,direction:-1});o=-2*s.t*Math.PI+1.5*Math.PI+.1*Math.PI,a=s}else if("to"===t){const t=this.options.selfReference.angle,n=this.options.selfReference.angle+Math.PI,s=this._findBorderPositionCircle(this.from,e,{x:i,y:r,low:t,high:n,direction:1});o=-2*s.t*Math.PI+1.5*Math.PI-1.1*Math.PI,a=s}else{const e=this.options.selfReference.angle/(2*Math.PI);a=this._pointOnCircle(i,r,n,e),o=-2*e*Math.PI+1.5*Math.PI+.1*Math.PI}}return{point:a,core:{x:a.x-.9*f*Math.cos(o),y:a.y-.9*f*Math.sin(o)},angle:o,length:f,type:h}}drawArrowHead(e,t,i,r,n){e.strokeStyle=this.getColor(e,t),e.fillStyle=e.strokeStyle,e.lineWidth=t.width,tk.draw(e,n)&&(this.enableShadow(e,t),gf(e).call(e),this.disableShadow(e,t))}enableShadow(e,t){!0===t.shadow&&(e.shadowColor=t.shadowColor,e.shadowBlur=t.shadowSize,e.shadowOffsetX=t.shadowX,e.shadowOffsetY=t.shadowY)}disableShadow(e,t){!0===t.shadow&&(e.shadowColor="rgba(0,0,0,0)",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0)}drawBackground(e,t){if(!1!==t.background){const i={strokeStyle:e.strokeStyle,lineWidth:e.lineWidth,dashes:e.dashes};e.strokeStyle=t.backgroundColor,e.lineWidth=t.backgroundSize,this.setStrokeDashed(e,t.backgroundDashes),e.stroke(),e.strokeStyle=i.strokeStyle,e.lineWidth=i.lineWidth,e.dashes=i.dashes,this.setStrokeDashed(e,t.dashes)}}setStrokeDashed(e,t){if(!1!==t)if(void 0!==e.setLineDash){const i=Wu(t)?t:[5,5];e.setLineDash(i)}else console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.");else void 0!==e.setLineDash?e.setLineDash([]):console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.")}}function sk(e,t){var i=ed(e);if(ww){var r=ww(e);t&&(r=Bh(r).call(r,(function(t){return Ow(e,t).enumerable}))),i.push.apply(i,r)}return i}function ok(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:this._getViaCoordinates(),s=!1,o=1,a=0,l=this.to,c=this.options.endPointOffset?this.options.endPointOffset.to:0;e.id===this.from.id&&(l=this.from,s=!0,c=this.options.endPointOffset?this.options.endPointOffset.from:0),!1===this.options.arrowStrikethrough&&(c=0);let u=0;do{r=.5*(a+o),i=this.getPoint(r,n);const e=Math.atan2(l.y-i.y,l.x-i.x),d=l.distanceToBorder(t,e)+c-Math.sqrt(Math.pow(i.x-l.x,2)+Math.pow(i.y-l.y,2));if(Math.abs(d)<.2)break;d<0?!1===s?a=r:o=r:!1===s?o=r:a=r,++u}while(a<=o&&u<10);return ok(ok({},i),{},{t:r})}_getDistanceToBezierEdge(e,t,i,r,n,s,o){let a,l,c,u,d,h=1e9,p=e,f=t;for(l=1;l<10;l++)c=.1*l,u=Math.pow(1-c,2)*e+2*c*(1-c)*o.x+Math.pow(c,2)*i,d=Math.pow(1-c,2)*t+2*c*(1-c)*o.y+Math.pow(c,2)*r,l>0&&(a=this._getDistanceToLine(p,f,u,d,n,s),h=a{this.positionBezierNode()},this._body.emitter.on("_repositionBezierNodes",this._boundFunction)}setOptions(e){super.setOptions(e);let t=!1;this.options.physics!==e.physics&&(t=!0),this.options=e,this.id=this.options.id,this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.setupSupportNode(),this.connect(),!0===t&&(this.via.setOptions({physics:this.options.physics}),this.positionBezierNode())}connect(){this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],void 0===this.from||void 0===this.to||!1===this.options.physics||this.from.id===this.to.id?this.via.setOptions({physics:!1}):this.via.setOptions({physics:!0})}cleanup(){return this._body.emitter.off("_repositionBezierNodes",this._boundFunction),void 0!==this.via&&(delete this._body.nodes[this.via.id],this.via=void 0,!0)}setupSupportNode(){if(void 0===this.via){const e="edgeId:"+this.id,t=this._body.functions.createNode({id:e,shape:"circle",physics:!0,hidden:!0});this._body.nodes[e]=t,this.via=t,this.via.parentEdgeId=this.id,this.positionBezierNode()}}positionBezierNode(){void 0!==this.via&&void 0!==this.from&&void 0!==this.to?(this.via.x=.5*(this.from.x+this.to.x),this.via.y=.5*(this.from.y+this.to.y)):void 0!==this.via&&(this.via.x=0,this.via.y=0)}_line(e,t,i){this._bezierCurve(e,t,i)}_getViaCoordinates(){return this.via}getViaNode(){return this.via}getPoint(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.via;if(this.from===this.to){const[t,i,r]=this._getCircleData(),n=2*Math.PI*(1-e);return{x:t+r*Math.sin(n),y:i+r-r*(1-Math.cos(n))}}return{x:Math.pow(1-e,2)*this.fromPoint.x+2*e*(1-e)*t.x+Math.pow(e,2)*this.toPoint.x,y:Math.pow(1-e,2)*this.fromPoint.y+2*e*(1-e)*t.y+Math.pow(e,2)*this.toPoint.y}}_findBorderPosition(e,t){return this._findBorderPositionBezier(e,t,this.via)}_getDistanceToEdge(e,t,i,r,n,s){return this._getDistanceToBezierEdge(e,t,i,r,n,s,this.via)}}class ck extends ak{constructor(e,t,i){super(e,t,i)}_line(e,t,i){this._bezierCurve(e,t,i)}getViaNode(){return this._getViaCoordinates()}_getViaCoordinates(){const e=this.options.smooth.roundness,t=this.options.smooth.type;let i=Math.abs(this.from.x-this.to.x),r=Math.abs(this.from.y-this.to.y);if("discrete"===t||"diagonalCross"===t){let n,s;n=s=i<=r?e*r:e*i,this.from.x>this.to.x&&(n=-n),this.from.y>=this.to.y&&(s=-s);let o=this.from.x+n,a=this.from.y+s;return"discrete"===t&&(i<=r?o=ithis.to.x&&(t=-t),this.from.y>=this.to.y&&(n=-n);let s=this.from.x+t,o=this.from.y+n;return i<=r?s=this.from.x<=this.to.x?this.to.xs?this.to.x:s:o=this.from.y>=this.to.y?this.to.y>o?this.to.y:o:this.to.y2&&void 0!==arguments[2]?arguments[2]:{};return this._findBorderPositionBezier(e,t,i.via)}_getDistanceToEdge(e,t,i,r,n,s){let o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(e,t,i,r,n,s,o)}getPoint(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._getViaCoordinates();const i=e;return{x:Math.pow(1-i,2)*this.fromPoint.x+2*i*(1-i)*t.x+Math.pow(i,2)*this.toPoint.x,y:Math.pow(1-i,2)*this.fromPoint.y+2*i*(1-i)*t.y+Math.pow(i,2)*this.toPoint.y}}}class uk extends ak{constructor(e,t,i){super(e,t,i)}_getDistanceToBezierEdge2(e,t,i,r,n,s,o,a){let l=1e9,c=e,u=t;const d=[0,0,0,0];for(let h=1;h<10;h++){const p=.1*h;d[0]=Math.pow(1-p,3),d[1]=3*p*Math.pow(1-p,2),d[2]=3*Math.pow(p,2)*(1-p),d[3]=Math.pow(p,3);const f=d[0]*e+d[1]*o.x+d[2]*a.x+d[3]*i,m=d[0]*t+d[1]*o.y+d[2]*a.y+d[3]*r;if(h>0){const e=this._getDistanceToLine(c,u,f,m,n,s);l=eMath.abs(t)||!0===this.options.smooth.forceDirection||"horizontal"===this.options.smooth.forceDirection)&&"vertical"!==this.options.smooth.forceDirection?(r=this.from.y,s=this.to.y,i=this.from.x-o*e,n=this.to.x+o*e):(r=this.from.y-o*t,s=this.to.y+o*t,i=this.from.x,n=this.to.x),[{x:i,y:r},{x:n,y:s}]}getViaNode(){return this._getViaCoordinates()}_findBorderPosition(e,t){return this._findBorderPositionBezier(e,t)}_getDistanceToEdge(e,t,i,r,n,s){let[o,a]=arguments.length>6&&void 0!==arguments[6]?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge2(e,t,i,r,n,s,o,a)}getPoint(e){let[t,i]=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._getViaCoordinates();const r=e,n=[Math.pow(1-r,3),3*r*Math.pow(1-r,2),3*Math.pow(r,2)*(1-r),Math.pow(r,3)];return{x:n[0]*this.fromPoint.x+n[1]*t.x+n[2]*i.x+n[3]*this.toPoint.x,y:n[0]*this.fromPoint.y+n[1]*t.y+n[2]*i.y+n[3]*this.toPoint.y}}}class hk extends nk{constructor(e,t,i){super(e,t,i)}_line(e,t){e.beginPath(),e.moveTo(this.fromPoint.x,this.fromPoint.y),e.lineTo(this.toPoint.x,this.toPoint.y),this.enableShadow(e,t),e.stroke(),this.disableShadow(e,t)}getViaNode(){}getPoint(e){return{x:(1-e)*this.fromPoint.x+e*this.toPoint.x,y:(1-e)*this.fromPoint.y+e*this.toPoint.y}}_findBorderPosition(e,t){let i=this.to,r=this.from;e.id===this.from.id&&(i=this.from,r=this.to);const n=Math.atan2(i.y-r.y,i.x-r.x),s=i.x-r.x,o=i.y-r.y,a=Math.sqrt(s*s+o*o),l=(a-e.distanceToBorder(t,n))/a;return{x:(1-l)*r.x+l*i.x,y:(1-l)*r.y+l*i.y,t:0}}_getDistanceToEdge(e,t,i,r,n,s){return this._getDistanceToLine(e,t,i,r,n,s)}}class pk{constructor(e,t,i,r,n){if(void 0===t)throw new Error("No body provided");this.options=ty(r),this.globalOptions=r,this.defaultOptions=n,this.body=t,this.imagelist=i,this.id=void 0,this.fromId=void 0,this.toId=void 0,this.selected=!1,this.hover=!1,this.labelDirty=!0,this.baseWidth=this.options.width,this.baseFontSize=this.options.font.size,this.from=void 0,this.to=void 0,this.edgeType=void 0,this.connected=!1,this.labelModule=new dC(this.body,this.options,!0),this.setOptions(e)}setOptions(e){if(!e)return;let t=void 0!==e.physics&&this.options.physics!==e.physics||void 0!==e.hidden&&(this.options.hidden||!1)!==(e.hidden||!1)||void 0!==e.from&&this.options.from!==e.from||void 0!==e.to&&this.options.to!==e.to;pk.parseOptions(this.options,e,!0,this.globalOptions),void 0!==e.id&&(this.id=e.id),void 0!==e.from&&(this.fromId=e.from),void 0!==e.to&&(this.toId=e.to),void 0!==e.title&&(this.title=e.title),void 0!==e.value&&(e.value=Kj(e.value));const i=[e,this.options,this.defaultOptions];return this.chooser=iC("edge",i),this.updateLabelModule(e),t=this.updateEdgeType()||t,this._setInteractionWidths(),this.connect(),t}static parseOptions(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(Ig(["endPointOffset","arrowStrikethrough","id","from","hidden","hoverWidth","labelHighlightBold","length","line","opacity","physics","scaling","selectionWidth","selfReferenceSize","selfReference","to","title","value","width","font","chosen","widthConstraint"],e,t,i),void 0!==t.endPointOffset&&void 0!==t.endPointOffset.from&&(hw(t.endPointOffset.from)?e.endPointOffset.from=t.endPointOffset.from:(e.endPointOffset.from=void 0!==r.endPointOffset.from?r.endPointOffset.from:0,console.error("endPointOffset.from is not a valid number"))),void 0!==t.endPointOffset&&void 0!==t.endPointOffset.to&&(hw(t.endPointOffset.to)?e.endPointOffset.to=t.endPointOffset.to:(e.endPointOffset.to=void 0!==r.endPointOffset.to?r.endPointOffset.to:0,console.error("endPointOffset.to is not a valid number"))),nC(t.label)?e.label=t.label:nC(e.label)||(e.label=void 0),iy(e,t,"smooth",r),iy(e,t,"shadow",r),iy(e,t,"background",r),void 0!==t.dashes&&null!==t.dashes?e.dashes=t.dashes:!0===i&&null===t.dashes&&(e.dashes=Pp(r.dashes)),void 0!==t.scaling&&null!==t.scaling?(void 0!==t.scaling.min&&(e.scaling.min=t.scaling.min),void 0!==t.scaling.max&&(e.scaling.max=t.scaling.max),iy(e.scaling,t.scaling,"label",r.scaling)):!0===i&&null===t.scaling&&(e.scaling=Pp(r.scaling)),void 0!==t.arrows&&null!==t.arrows)if("string"==typeof t.arrows){const i=t.arrows.toLowerCase();e.arrows.to.enabled=-1!=Ap(i).call(i,"to"),e.arrows.middle.enabled=-1!=Ap(i).call(i,"middle"),e.arrows.from.enabled=-1!=Ap(i).call(i,"from")}else{if("object"!=typeof t.arrows)throw new Error("The arrow newOptions can only be an object or a string. Refer to the documentation. You used:"+Bp(t.arrows));iy(e.arrows,t.arrows,"to",r.arrows),iy(e.arrows,t.arrows,"middle",r.arrows),iy(e.arrows,t.arrows,"from",r.arrows)}else!0===i&&null===t.arrows&&(e.arrows=Pp(r.arrows));if(void 0!==t.color&&null!==t.color){const s=Eg(t.color)?{color:t.color,highlight:t.color,hover:t.color,inherit:!1,opacity:1}:t.color,o=e.color;if(n)Pg(o,r.color,!1,i);else for(const e in o)Object.prototype.hasOwnProperty.call(o,e)&&delete o[e];if(Eg(o))o.color=o,o.highlight=o,o.hover=o,o.inherit=!1,void 0===s.opacity&&(o.opacity=1);else{let e=!1;void 0!==s.color&&(o.color=s.color,e=!0),void 0!==s.highlight&&(o.highlight=s.highlight,e=!0),void 0!==s.hover&&(o.hover=s.hover,e=!0),void 0!==s.inherit&&(o.inherit=s.inherit),void 0!==s.opacity&&(o.opacity=Math.min(1,Math.max(0,s.opacity))),!0===e?o.inherit=!1:void 0===o.inherit&&(o.inherit="from")}}else!0===i&&null===t.color&&(e.color=ty(r.color));!0===i&&null===t.font&&(e.font=ty(r.font)),Object.prototype.hasOwnProperty.call(t,"selfReferenceSize")&&(console.warn("The selfReferenceSize property has been deprecated. Please use selfReference property instead. The selfReference can be set like thise selfReference:{size:30, angle:Math.PI / 4}"),e.selfReference.size=t.selfReferenceSize)}getFormattingValues(){const e=!0===this.options.arrows.to||!0===this.options.arrows.to.enabled,t=!0===this.options.arrows.from||!0===this.options.arrows.from.enabled,i=!0===this.options.arrows.middle||!0===this.options.arrows.middle.enabled,r=this.options.color.inherit,n={toArrow:e,toArrowScale:this.options.arrows.to.scaleFactor,toArrowType:this.options.arrows.to.type,toArrowSrc:this.options.arrows.to.src,toArrowImageWidth:this.options.arrows.to.imageWidth,toArrowImageHeight:this.options.arrows.to.imageHeight,middleArrow:i,middleArrowScale:this.options.arrows.middle.scaleFactor,middleArrowType:this.options.arrows.middle.type,middleArrowSrc:this.options.arrows.middle.src,middleArrowImageWidth:this.options.arrows.middle.imageWidth,middleArrowImageHeight:this.options.arrows.middle.imageHeight,fromArrow:t,fromArrowScale:this.options.arrows.from.scaleFactor,fromArrowType:this.options.arrows.from.type,fromArrowSrc:this.options.arrows.from.src,fromArrowImageWidth:this.options.arrows.from.imageWidth,fromArrowImageHeight:this.options.arrows.from.imageHeight,arrowStrikethrough:this.options.arrowStrikethrough,color:r?void 0:this.options.color.color,inheritsColor:r,opacity:this.options.color.opacity,hidden:this.options.hidden,length:this.options.length,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y,dashes:this.options.dashes,width:this.options.width,background:this.options.background.enabled,backgroundColor:this.options.background.color,backgroundSize:this.options.background.size,backgroundDashes:this.options.background.dashes};if(this.selected||this.hover)if(!0===this.chooser){if(this.selected){const e=this.options.selectionWidth;"function"==typeof e?n.width=e(n.width):"number"==typeof e&&(n.width+=e),n.width=Math.max(n.width,.3/this.body.view.scale),n.color=this.options.color.highlight,n.shadow=this.options.shadow.enabled}else if(this.hover){const e=this.options.hoverWidth;"function"==typeof e?n.width=e(n.width):"number"==typeof e&&(n.width+=e),n.width=Math.max(n.width,.3/this.body.view.scale),n.color=this.options.color.hover,n.shadow=this.options.shadow.enabled}}else"function"==typeof this.chooser&&(this.chooser(n,this.options.id,this.selected,this.hover),void 0!==n.color&&(n.inheritsColor=!1),!1===n.shadow&&(n.shadowColor===this.options.shadow.color&&n.shadowSize===this.options.shadow.size&&n.shadowX===this.options.shadow.x&&n.shadowY===this.options.shadow.y||(n.shadow=!0)));else n.shadow=this.options.shadow.enabled,n.width=Math.max(n.width,.3/this.body.view.scale);return n}updateLabelModule(e){const t=[e,this.options,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,t),void 0!==this.labelModule.baseSize&&(this.baseFontSize=this.labelModule.baseSize)}updateEdgeType(){const e=this.options.smooth;let t=!1,i=!0;return void 0!==this.edgeType&&((this.edgeType instanceof lk&&!0===e.enabled&&"dynamic"===e.type||this.edgeType instanceof dk&&!0===e.enabled&&"cubicBezier"===e.type||this.edgeType instanceof ck&&!0===e.enabled&&"dynamic"!==e.type&&"cubicBezier"!==e.type||this.edgeType instanceof hk&&!1===e.type.enabled)&&(i=!1),!0===i&&(t=this.cleanup())),!0===i?!0===e.enabled?"dynamic"===e.type?(t=!0,this.edgeType=new lk(this.options,this.body,this.labelModule)):"cubicBezier"===e.type?this.edgeType=new dk(this.options,this.body,this.labelModule):this.edgeType=new ck(this.options,this.body,this.labelModule):this.edgeType=new hk(this.options,this.body,this.labelModule):this.edgeType.setOptions(this.options),t}connect(){this.disconnect(),this.from=this.body.nodes[this.fromId]||void 0,this.to=this.body.nodes[this.toId]||void 0,this.connected=void 0!==this.from&&void 0!==this.to,!0===this.connected?(this.from.attachEdge(this),this.to.attachEdge(this)):(this.from&&this.from.detachEdge(this),this.to&&this.to.detachEdge(this)),this.edgeType.connect()}disconnect(){this.from&&(this.from.detachEdge(this),this.from=void 0),this.to&&(this.to.detachEdge(this),this.to=void 0),this.connected=!1}getTitle(){return this.title}isSelected(){return this.selected}getValue(){return this.options.value}setValueRange(e,t,i){if(void 0!==this.options.value){const r=this.options.scaling.customScalingFunction(e,t,i,this.options.value),n=this.options.scaling.max-this.options.scaling.min;if(!0===this.options.scaling.label.enabled){const e=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+r*e}this.options.width=this.options.scaling.min+r*n}else this.options.width=this.baseWidth,this.options.font.size=this.baseFontSize;this._setInteractionWidths(),this.updateLabelModule()}_setInteractionWidths(){"function"==typeof this.options.hoverWidth?this.edgeType.hoverWidth=this.options.hoverWidth(this.options.width):this.edgeType.hoverWidth=this.options.hoverWidth+this.options.width,"function"==typeof this.options.selectionWidth?this.edgeType.selectionWidth=this.options.selectionWidth(this.options.width):this.edgeType.selectionWidth=this.options.selectionWidth+this.options.width}draw(e){const t=this.getFormattingValues();if(t.hidden)return;const i=this.edgeType.getViaNode();this.edgeType.drawLine(e,t,this.selected,this.hover,i),this.drawLabel(e,i)}drawArrows(e){const t=this.getFormattingValues();if(t.hidden)return;const i=this.edgeType.getViaNode(),r={};this.edgeType.fromPoint=this.edgeType.from,this.edgeType.toPoint=this.edgeType.to,t.fromArrow&&(r.from=this.edgeType.getArrowData(e,"from",i,this.selected,this.hover,t),!1===t.arrowStrikethrough&&(this.edgeType.fromPoint=r.from.core),t.fromArrowSrc&&(r.from.image=this.imagelist.load(t.fromArrowSrc)),t.fromArrowImageWidth&&(r.from.imageWidth=t.fromArrowImageWidth),t.fromArrowImageHeight&&(r.from.imageHeight=t.fromArrowImageHeight)),t.toArrow&&(r.to=this.edgeType.getArrowData(e,"to",i,this.selected,this.hover,t),!1===t.arrowStrikethrough&&(this.edgeType.toPoint=r.to.core),t.toArrowSrc&&(r.to.image=this.imagelist.load(t.toArrowSrc)),t.toArrowImageWidth&&(r.to.imageWidth=t.toArrowImageWidth),t.toArrowImageHeight&&(r.to.imageHeight=t.toArrowImageHeight)),t.middleArrow&&(r.middle=this.edgeType.getArrowData(e,"middle",i,this.selected,this.hover,t),t.middleArrowSrc&&(r.middle.image=this.imagelist.load(t.middleArrowSrc)),t.middleArrowImageWidth&&(r.middle.imageWidth=t.middleArrowImageWidth),t.middleArrowImageHeight&&(r.middle.imageHeight=t.middleArrowImageHeight)),t.fromArrow&&this.edgeType.drawArrowHead(e,t,this.selected,this.hover,r.from),t.middleArrow&&this.edgeType.drawArrowHead(e,t,this.selected,this.hover,r.middle),t.toArrow&&this.edgeType.drawArrowHead(e,t,this.selected,this.hover,r.to)}drawLabel(e,t){if(void 0!==this.options.label){const i=this.from,r=this.to;let n;if(this.labelModule.differentState(this.selected,this.hover)&&this.labelModule.getTextSize(e,this.selected,this.hover),i.id!=r.id){this.labelModule.pointToSelf=!1,n=this.edgeType.getPoint(.5,t),e.save();const i=this._getRotation(e);0!=i.angle&&(e.translate(i.x,i.y),e.rotate(i.angle)),this.labelModule.draw(e,n.x,n.y,this.selected,this.hover),e.restore()}else{this.labelModule.pointToSelf=!0;const t=sC(e,this.options.selfReference.angle,this.options.selfReference.size,i);n=this._pointOnCircle(t.x,t.y,this.options.selfReference.size,this.options.selfReference.angle),this.labelModule.draw(e,n.x,n.y,this.selected,this.hover)}}}getItemsOnPoint(e){const t=[];if(this.labelModule.visible()){const i=this._getRotation();rC(this.labelModule.getSize(),e,i)&&t.push({edgeId:this.id,labelId:0})}const i={left:e.x,top:e.y};return this.isOverlappingWith(i)&&t.push({edgeId:this.id}),t}isOverlappingWith(e){if(this.connected){const t=10,i=this.from.x,r=this.from.y,n=this.to.x,s=this.to.y,o=e.left,a=e.top;return this.edgeType.getDistanceToEdge(i,r,n,s,o,a)0&&s<0)&&(o+=Math.PI),r.angle=o,r}_pointOnCircle(e,t,i,r){return{x:e+i*Math.cos(r),y:t-i*Math.sin(r)}}select(){this.selected=!0}unselect(){this.selected=!1}cleanup(){return this.edgeType.cleanup()}remove(){this.cleanup(),this.disconnect(),delete this.body.edges[this.id]}endPointsValid(){return void 0!==this.body.nodes[this.fromId]&&void 0!==this.body.nodes[this.toId]}}class fk{constructor(e,t,i){var r;this.body=e,this.images=t,this.groups=i,this.body.functions.createEdge=zr(r=this.create).call(r,this),this.edgesListeners={add:(e,t)=>{this.add(t.items)},update:(e,t)=>{this.update(t.items)},remove:(e,t)=>{this.remove(t.items)}},this.options={},this.defaultOptions={arrows:{to:{enabled:!1,scaleFactor:1,type:"arrow"},middle:{enabled:!1,scaleFactor:1,type:"arrow"},from:{enabled:!1,scaleFactor:1,type:"arrow"}},endPointOffset:{from:0,to:0},arrowStrikethrough:!0,color:{color:"#848484",highlight:"#848484",hover:"#848484",inherit:"from",opacity:1},dashes:!1,font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:2,strokeColor:"#ffffff",align:"horizontal",multi:!1,vadjust:0,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"courier new",vadjust:2}},hidden:!1,hoverWidth:1.5,label:void 0,labelHighlightBold:!0,length:void 0,physics:!0,scaling:{min:1,max:15,label:{enabled:!0,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(e,t,i,r){if(t===e)return.5;{const i=1/(t-e);return Math.max(0,(r-e)*i)}}},selectionWidth:1.5,selfReference:{size:20,angle:Math.PI/4,renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},background:{enabled:!1,color:"rgba(111,111,111,1)",size:10,dashes:!1},smooth:{enabled:!0,type:"dynamic",forceDirection:"none",roundness:.5},title:void 0,width:1,value:void 0},Pg(this.options,this.defaultOptions),this.bindEventListeners()}bindEventListeners(){var e,t,i=this;this.body.emitter.on("_forceDisableDynamicCurves",(function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];"dynamic"===e&&(e="continuous");let r=!1;for(const n in i.body.edges)if(Object.prototype.hasOwnProperty.call(i.body.edges,n)){const t=i.body.edges[n],s=i.body.data.edges.get(n);if(null!=s){const i=s.smooth;void 0!==i&&!0===i.enabled&&"dynamic"===i.type&&(void 0===e?t.setOptions({smooth:!1}):t.setOptions({smooth:{type:e}}),r=!0)}}!0===t&&!0===r&&i.body.emitter.emit("_dataChanged")})),this.body.emitter.on("_dataUpdated",()=>{this.reconnectEdges()}),this.body.emitter.on("refreshEdges",zr(e=this.refresh).call(e,this)),this.body.emitter.on("refresh",zr(t=this.refresh).call(t,this)),this.body.emitter.on("destroy",()=>{zg(this.edgesListeners,(e,t)=>{this.body.data.edges&&this.body.data.edges.off(t,e)}),delete this.body.functions.createEdge,delete this.edgesListeners.add,delete this.edgesListeners.update,delete this.edgesListeners.remove,delete this.edgesListeners})}setOptions(e){if(void 0!==e){pk.parseOptions(this.options,e,!0,this.defaultOptions,!0);let t=!1;if(void 0!==e.smooth)for(const e in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,e)&&(t=this.body.edges[e].updateEdgeType()||t);if(void 0!==e.font)for(const e in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,e)&&this.body.edges[e].updateLabelModule();void 0===e.hidden&&void 0===e.physics&&!0!==t||this.body.emitter.emit("_dataChanged")}}setData(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=this.body.data.edges;if(Mj("id",e))this.body.data.edges=e;else if(Wu(e))this.body.data.edges=new Rj,this.body.data.edges.add(e);else{if(e)throw new TypeError("Array or DataSet expected");this.body.data.edges=new Rj}if(i&&zg(this.edgesListeners,(e,t)=>{i.off(t,e)}),this.body.edges={},this.body.data.edges){zg(this.edgesListeners,(e,t)=>{this.body.data.edges.on(t,e)});const e=this.body.data.edges.getIds();this.add(e,!0)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),!1===t&&this.body.emitter.emit("_dataChanged")}add(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=this.body.edges,r=this.body.data.edges;for(let n=0;n1&&void 0!==arguments[1])||arguments[1];if(0===e.length)return;const i=this.body.edges;zg(e,e=>{const t=i[e];void 0!==t&&t.remove()}),t&&this.body.emitter.emit("_dataChanged")}refresh(){zg(this.body.edges,(e,t)=>{const i=this.body.data.edges.get(t);void 0!==i&&e.setOptions(i)})}create(e){return new pk(e,this.body,this.images,this.options,this.defaultOptions)}reconnectEdges(){let e;const t=this.body.nodes,i=this.body.edges;for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&(t[e].edges=[]);for(e in i)if(Object.prototype.hasOwnProperty.call(i,e)){const t=i[e];t.from=null,t.to=null,t.connect()}}getConnectedNodes(e){const t=[];if(void 0!==this.body.edges[e]){const i=this.body.edges[e];void 0!==i.fromId&&t.push(i.fromId),void 0!==i.toId&&t.push(i.toId)}return t}_updateState(){this._addMissingEdges(),this._removeInvalidEdges()}_removeInvalidEdges(){const e=[];zg(this.body.edges,(t,i)=>{const r=this.body.nodes[t.toId],n=this.body.nodes[t.fromId];void 0!==r&&!0===r.isCluster||void 0!==n&&!0===n.isCluster||void 0!==r&&void 0!==n||e.push(i)}),this.remove(e,!1)}_addMissingEdges(){const e=this.body.data.edges;if(null==e)return;const t=this.body.edges,i=[];yd(e).call(e,(e,r)=>{void 0===t[r]&&i.push(r)}),this.add(i,!0)}}class mk{constructor(e,t,i){this.body=e,this.physicsBody=t,this.barnesHutTree,this.setOptions(i),this._rng=bg("BARNES HUT SOLVER")}setOptions(e){this.options=e,this.thetaInversed=1/this.options.theta,this.overlapAvoidanceFactor=1-Math.max(0,Math.min(1,this.options.avoidOverlap))}solve(){if(0!==this.options.gravitationalConstant&&this.physicsBody.physicsNodeIndices.length>0){let e;const t=this.body.nodes,i=this.physicsBody.physicsNodeIndices,r=i.length,n=this._formBarnesHutTree(t,i);this.barnesHutTree=n;for(let s=0;s0&&this._getForceContributions(n.root,e)}}_getForceContributions(e,t){this._getForceContribution(e.children.NW,t),this._getForceContribution(e.children.NE,t),this._getForceContribution(e.children.SW,t),this._getForceContribution(e.children.SE,t)}_getForceContribution(e,t){if(e.childrenCount>0){const i=e.centerOfMass.x-t.x,r=e.centerOfMass.y-t.y,n=Math.sqrt(i*i+r*r);n*e.calcSize>this.thetaInversed?this._calculateForces(n,i,r,t,e):4===e.childrenCount?this._getForceContributions(e,t):e.children.data.id!=t.id&&this._calculateForces(n,i,r,t,e)}}_calculateForces(e,t,i,r,n){0===e&&(t=e=.1),this.overlapAvoidanceFactor<1&&r.shape.radius&&(e=Math.max(.1+this.overlapAvoidanceFactor*r.shape.radius,e-r.shape.radius));const s=this.options.gravitationalConstant*n.mass*r.options.mass/Math.pow(e,3),o=t*s,a=i*s;this.physicsBody.forces[r.id].x+=o,this.physicsBody.forces[r.id].y+=a}_formBarnesHutTree(e,t){let i;const r=t.length;let n=e[t[0]].x,s=e[t[0]].y,o=e[t[0]].x,a=e[t[0]].y;for(let f=1;f0&&(ro&&(o=r),la&&(a=l))}const l=Math.abs(o-n)-Math.abs(a-s);l>0?(s-=.5*l,a+=.5*l):(n+=.5*l,o-=.5*l);const c=Math.max(1e-5,Math.abs(o-n)),u=.5*c,d=.5*(n+o),h=.5*(s+a),p={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:d-u,maxX:d+u,minY:h-u,maxY:h+u},size:c,calcSize:1/c,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(p.root);for(let f=0;f0&&this._placeInTree(p.root,i);return p}_updateBranchMass(e,t){const i=e.centerOfMass,r=e.mass+t.options.mass,n=1/r;i.x=i.x*e.mass+t.x*t.options.mass,i.x*=n,i.y=i.y*e.mass+t.y*t.options.mass,i.y*=n,e.mass=r;const s=Math.max(Math.max(t.height,t.radius),t.width);e.maxWidth=e.maxWidtht.x?r.maxY>t.y?"NW":"SW":r.maxY>t.y?"NE":"SE",this._placeInRegion(e,t,n)}_placeInRegion(e,t,i){const r=e.children[i];switch(r.childrenCount){case 0:r.children.data=t,r.childrenCount=1,this._updateBranchMass(r,t);break;case 1:r.children.data.x===t.x&&r.children.data.y===t.y?(t.x+=this._rng(),t.y+=this._rng()):(this._splitBranch(r),this._placeInTree(r,t));break;case 4:this._placeInTree(r,t)}}_splitBranch(e){let t=null;1===e.childrenCount&&(t=e.children.data,e.mass=0,e.centerOfMass.x=0,e.centerOfMass.y=0),e.childrenCount=4,e.children.data=null,this._insertRegion(e,"NW"),this._insertRegion(e,"NE"),this._insertRegion(e,"SW"),this._insertRegion(e,"SE"),null!=t&&this._placeInTree(e,t)}_insertRegion(e,t){let i,r,n,s;const o=.5*e.size;switch(t){case"NW":i=e.range.minX,r=e.range.minX+o,n=e.range.minY,s=e.range.minY+o;break;case"NE":i=e.range.minX+o,r=e.range.maxX,n=e.range.minY,s=e.range.minY+o;break;case"SW":i=e.range.minX,r=e.range.minX+o,n=e.range.minY+o,s=e.range.maxY;break;case"SE":i=e.range.minX+o,r=e.range.maxX,n=e.range.minY+o,s=e.range.maxY}e.children[t]={centerOfMass:{x:0,y:0},mass:0,range:{minX:i,maxX:r,minY:n,maxY:s},size:.5*e.size,calcSize:2*e.calcSize,children:{data:null},maxWidth:0,level:e.level+1,childrenCount:0}}_debug(e,t){void 0!==this.barnesHutTree&&(e.lineWidth=1,this._drawBranch(this.barnesHutTree.root,e,t))}_drawBranch(e,t,i){void 0===i&&(i="#FF0000"),4===e.childrenCount&&(this._drawBranch(e.children.NW,t),this._drawBranch(e.children.NE,t),this._drawBranch(e.children.SE,t),this._drawBranch(e.children.SW,t)),t.strokeStyle=i,t.beginPath(),t.moveTo(e.range.minX,e.range.minY),t.lineTo(e.range.maxX,e.range.minY),t.stroke(),t.beginPath(),t.moveTo(e.range.maxX,e.range.minY),t.lineTo(e.range.maxX,e.range.maxY),t.stroke(),t.beginPath(),t.moveTo(e.range.maxX,e.range.maxY),t.lineTo(e.range.minX,e.range.maxY),t.stroke(),t.beginPath(),t.moveTo(e.range.minX,e.range.maxY),t.lineTo(e.range.minX,e.range.minY),t.stroke()}}class gk{constructor(e,t,i){this._rng=bg("REPULSION SOLVER"),this.body=e,this.physicsBody=t,this.setOptions(i)}setOptions(e){this.options=e}solve(){let e,t,i,r,n,s,o,a;const l=this.body.nodes,c=this.physicsBody.physicsNodeIndices,u=this.physicsBody.forces,d=this.options.nodeDistance,h=-2/3/d;for(let p=0;p0){const e=n.edges.length+1,s=this.options.centralGravity*e*n.options.mass;r[n.id].x=t*s,r[n.id].y=i*s}}}class jk{constructor(e){this.body=e,this.physicsBody={physicsNodeIndices:[],physicsEdgeIndices:[],forces:{},velocities:{}},this.physicsEnabled=!0,this.simulationInterval=1e3/60,this.requiresTimeout=!0,this.previousStates={},this.referenceState={},this.freezeCache={},this.renderTimer=void 0,this.adaptiveTimestep=!1,this.adaptiveTimestepEnabled=!1,this.adaptiveCounter=0,this.adaptiveInterval=3,this.stabilized=!1,this.startedStabilization=!1,this.stabilizationIterations=0,this.ready=!1,this.options={},this.defaultOptions={enabled:!0,barnesHut:{theta:.5,gravitationalConstant:-2e3,centralGravity:.3,springLength:95,springConstant:.04,damping:.09,avoidOverlap:0},forceAtlas2Based:{theta:.5,gravitationalConstant:-50,centralGravity:.01,springConstant:.08,springLength:100,damping:.4,avoidOverlap:0},repulsion:{centralGravity:.2,springLength:200,springConstant:.05,nodeDistance:100,damping:.09,avoidOverlap:0},hierarchicalRepulsion:{centralGravity:0,springLength:100,springConstant:.01,nodeDistance:120,damping:.09},maxVelocity:50,minVelocity:.75,solver:"barnesHut",stabilization:{enabled:!0,iterations:1e3,updateInterval:50,onlyDynamicEdges:!1,fit:!0},timestep:.5,adaptiveTimestep:!0,wind:{x:0,y:0}},vr(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}bindEventListeners(){this.body.emitter.on("initPhysics",()=>{this.initPhysics()}),this.body.emitter.on("_layoutFailed",()=>{this.layoutFailed=!0}),this.body.emitter.on("resetPhysics",()=>{this.stopSimulation(),this.ready=!1}),this.body.emitter.on("disablePhysics",()=>{this.physicsEnabled=!1,this.stopSimulation()}),this.body.emitter.on("restorePhysics",()=>{this.setOptions(this.options),!0===this.ready&&this.startSimulation()}),this.body.emitter.on("startSimulation",()=>{!0===this.ready&&this.startSimulation()}),this.body.emitter.on("stopSimulation",()=>{this.stopSimulation()}),this.body.emitter.on("destroy",()=>{this.stopSimulation(!1),this.body.emitter.off()}),this.body.emitter.on("_dataChanged",()=>{this.updatePhysicsData()})}setOptions(e){if(void 0!==e)if(!1===e)this.options.enabled=!1,this.physicsEnabled=!1,this.stopSimulation();else if(!0===e)this.options.enabled=!0,this.physicsEnabled=!0,this.startSimulation();else{this.physicsEnabled=!0,Rg(["stabilization"],this.options,e),iy(this.options,e,"stabilization"),void 0===e.enabled&&(this.options.enabled=!0),!1===this.options.enabled&&(this.physicsEnabled=!1,this.stopSimulation());const t=this.options.wind;t&&(("number"!=typeof t.x||cw(t.x))&&(t.x=0),("number"!=typeof t.y||cw(t.y))&&(t.y=0)),this.timestep=this.options.timestep}this.init()}init(){let e;"forceAtlas2Based"===this.options.solver?(e=this.options.forceAtlas2Based,this.nodesSolver=new xk(this.body,this.physicsBody,e),this.edgesSolver=new bk(this.body,this.physicsBody,e),this.gravitySolver=new _k(this.body,this.physicsBody,e)):"repulsion"===this.options.solver?(e=this.options.repulsion,this.nodesSolver=new gk(this.body,this.physicsBody,e),this.edgesSolver=new bk(this.body,this.physicsBody,e),this.gravitySolver=new wk(this.body,this.physicsBody,e)):"hierarchicalRepulsion"===this.options.solver?(e=this.options.hierarchicalRepulsion,this.nodesSolver=new yk(this.body,this.physicsBody,e),this.edgesSolver=new vk(this.body,this.physicsBody,e),this.gravitySolver=new wk(this.body,this.physicsBody,e)):(e=this.options.barnesHut,this.nodesSolver=new mk(this.body,this.physicsBody,e),this.edgesSolver=new bk(this.body,this.physicsBody,e),this.gravitySolver=new wk(this.body,this.physicsBody,e)),this.modelOptions=e}initPhysics(){!0===this.physicsEnabled&&!0===this.options.enabled?!0===this.options.stabilization.enabled?this.stabilize():(this.stabilized=!1,this.ready=!0,this.body.emitter.emit("fit",{},this.layoutFailed),this.startSimulation()):(this.ready=!0,this.body.emitter.emit("fit"))}startSimulation(){var e;!0===this.physicsEnabled&&!0===this.options.enabled?(this.stabilized=!1,this.adaptiveTimestep=!1,this.body.emitter.emit("_resizeNodes"),void 0===this.viewFunction&&(this.viewFunction=zr(e=this.simulationStep).call(e,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering"))):this.body.emitter.emit("_redraw")}stopSimulation(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.stabilized=!0,!0===e&&this._emitStabilized(),void 0!==this.viewFunction&&(this.body.emitter.off("initRedraw",this.viewFunction),this.viewFunction=void 0,!0===e&&this.body.emitter.emit("_stopRendering"))}simulationStep(){const e=nd();this.physicsTick(),(nd()-e<.4*this.simulationInterval||!0===this.runDoubleSpeed)&&!1===this.stabilized&&(this.physicsTick(),this.runDoubleSpeed=!0),!0===this.stabilized&&this.stopSimulation()}_emitStabilized(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.stabilizationIterations;(this.stabilizationIterations>1||!0===this.startedStabilization)&&sf(()=>{this.body.emitter.emit("stabilized",{iterations:e}),this.startedStabilization=!1,this.stabilizationIterations=0},0)}physicsStep(){this.gravitySolver.solve(),this.nodesSolver.solve(),this.edgesSolver.solve(),this.moveNodes()}adjustTimeStep(){!0===this._evaluateStepQuality()?this.timestep=1.2*this.timestep:this.timestep/1.2.3))return!1;return!0}moveNodes(){const e=this.physicsBody.physicsNodeIndices;let t=0,i=0;for(let r=0;rr&&(e=e>0?r:-r),e}_performStep(e){const t=this.body.nodes[e],i=this.physicsBody.forces[e];this.options.wind&&(i.x+=this.options.wind.x,i.y+=this.options.wind.y);const r=this.physicsBody.velocities[e];return this.previousStates[e]={x:t.x,y:t.y,vx:r.x,vy:r.y},!1===t.options.fixed.x?(r.x=this.calculateComponentVelocity(r.x,i.x,t.options.mass),t.x+=r.x*this.timestep):(i.x=0,r.x=0),!1===t.options.fixed.y?(r.y=this.calculateComponentVelocity(r.y,i.y,t.options.mass),t.y+=r.y*this.timestep):(i.y=0,r.y=0),Math.sqrt(Math.pow(r.x,2)+Math.pow(r.y,2))}_freezeNodes(){const e=this.body.nodes;for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t].x&&e[t].y){const i=e[t].options.fixed;this.freezeCache[t]={x:i.x,y:i.y},i.x=!0,i.y=!0}}_restoreFrozenNodes(){const e=this.body.nodes;for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&void 0!==this.freezeCache[t]&&(e[t].options.fixed.x=this.freezeCache[t].x,e[t].options.fixed.y=this.freezeCache[t].y);this.freezeCache={}}stabilize(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.stabilization.iterations;"number"!=typeof e&&(e=this.options.stabilization.iterations,console.error("The stabilize method needs a numeric amount of iterations. Switching to default: ",e)),0!==this.physicsBody.physicsNodeIndices.length?(this.adaptiveTimestep=this.options.adaptiveTimestep,this.body.emitter.emit("_resizeNodes"),this.stopSimulation(),this.stabilized=!1,this.body.emitter.emit("_blockRedraw"),this.targetIterations=e,!0===this.options.stabilization.onlyDynamicEdges&&this._freezeNodes(),this.stabilizationIterations=0,sf(()=>this._stabilizationBatch(),0)):this.ready=!0}_startStabilizing(){return!0!==this.startedStabilization&&(this.body.emitter.emit("startStabilizing"),this.startedStabilization=!0,!0)}_stabilizationBatch(){const e=()=>!1===this.stabilized&&this.stabilizationIterations{this.body.emitter.emit("stabilizationProgress",{iterations:this.stabilizationIterations,total:this.targetIterations})};this._startStabilizing()&&t();let i=0;for(;e()&&i1&&void 0!==arguments[1]?arguments[1]:[],r=1e9,n=-1e9,s=1e9,o=-1e9;if(i.length>0)for(let a=0;at.shape.boundingBox.left&&(s=t.shape.boundingBox.left),ot.shape.boundingBox.top&&(r=t.shape.boundingBox.top),n1&&void 0!==arguments[1]?arguments[1]:[],r=1e9,n=-1e9,s=1e9,o=-1e9;if(i.length>0)for(let a=0;at.x&&(s=t.x),ot.y&&(r=t.y),n{delete this.containedEdges[e.id]}),zg(t.containedNodes,(e,t)=>{this.containedNodes[t]=e}),t.containedNodes={},zg(t.containedEdges,(e,t)=>{this.containedEdges[t]=e}),t.containedEdges={},zg(t.edges,e=>{zg(this.edges,t=>{var i,r;const n=Ap(i=t.clusteringEdgeReplacingIds).call(i,e.id);-1!==n&&(zg(e.clusteringEdgeReplacingIds,e=>{t.clusteringEdgeReplacingIds.push(e),this.body.edges[e].edgeReplacedById=t.id}),eh(r=t.clusteringEdgeReplacingIds).call(r,n,1))})}),t.edges=[]}}class Sk{constructor(e){this.body=e,this.clusteredNodes={},this.clusteredEdges={},this.options={},this.defaultOptions={},vr(this.options,this.defaultOptions),this.body.emitter.on("_resetData",()=>{this.clusteredNodes={},this.clusteredEdges={}})}clusterByHubsize(e,t){void 0===e?e=this._getHubSize():"object"==typeof e&&(t=this._checkOptions(e),e=this._getHubSize());const i=[];for(let r=0;r=e&&i.push(t.id)}for(let r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(void 0===e.joinCondition)throw new Error("Cannot call clusterByNodeData without a joinCondition function in the options.");e=this._checkOptions(e);const i={},r={};zg(this.body.nodes,(t,n)=>{t.options&&!0===e.joinCondition(t.options)&&(i[n]=t,zg(t.edges,e=>{void 0===this.clusteredEdges[e.id]&&(r[e.id]=e)}))}),this._cluster(i,r,e,t)}clusterByEdgeCount(e,t){let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];t=this._checkOptions(t);const r=[],n={};let s,o,a;for(let l=0;l0&&ed(c).length>0&&!0===a){const e=function(){for(let e=0;e1&&void 0!==arguments[1])||arguments[1];this.clusterByEdgeCount(1,e,t)}clusterBridges(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.clusterByEdgeCount(2,e,t)}clusterByConnection(e,t){var i;let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0===e)throw new Error("No nodeId supplied to clusterByConnection!");if(void 0===this.body.nodes[e])throw new Error("The nodeId given to clusterByConnection does not exist!");const n=this.body.nodes[e];void 0===(t=this._checkOptions(t,n)).clusterNodeProperties.x&&(t.clusterNodeProperties.x=n.x),void 0===t.clusterNodeProperties.y&&(t.clusterNodeProperties.y=n.y),void 0===t.clusterNodeProperties.fixed&&(t.clusterNodeProperties.fixed={},t.clusterNodeProperties.fixed.x=n.options.fixed.x,t.clusterNodeProperties.fixed.y=n.options.fixed.y);const s={},o={},a=n.id,l=Ck.cloneOptions(n);s[a]=n;for(let u=0;u-1&&(o[i.id]=i)}}this._cluster(s,o,t,r)}_createClusterEdges(e,t,i,r){let n,s,o,a,l,c;const u=ed(e),d=[];for(let f=0;f0&&void 0!==arguments[0]?arguments[0]:{};return void 0===e.clusterEdgeProperties&&(e.clusterEdgeProperties={}),void 0===e.clusterNodeProperties&&(e.clusterNodeProperties={}),e}_cluster(e,t,i){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const n=[];for(const c in e)Object.prototype.hasOwnProperty.call(e,c)&&void 0!==this.clusteredNodes[c]&&n.push(c);for(let c=0;cn?i.x:n,s=i.yo?i.y:o;return{x:.5*(r+n),y:.5*(s+o)}}openCluster(e,t){let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0===e)throw new Error("No clusterNodeId supplied to openCluster.");const r=this.body.nodes[e];if(void 0===r)throw new Error("The clusterNodeId supplied to openCluster does not exist.");if(!0!==r.isCluster||void 0===r.containedNodes||void 0===r.containedEdges)throw new Error("The node:"+e+" is not a valid cluster.");const n=this.findNode(e),s=Ap(n).call(n,e)-1;if(s>=0){const t=n[s];return this.body.nodes[t]._openChildCluster(e),delete this.body.nodes[e],void(!0===i&&this.body.emitter.emit("_dataChanged"))}const o=r.containedNodes,a=r.containedEdges;if(void 0!==t&&void 0!==t.releaseFunction&&"function"==typeof t.releaseFunction){const e={},i={x:r.x,y:r.y};for(const t in o)if(Object.prototype.hasOwnProperty.call(o,t)){const i=this.body.nodes[t];e[t]={x:i.x,y:i.y}}const n=t.releaseFunction(i,e);for(const t in o)if(Object.prototype.hasOwnProperty.call(o,t)){const e=this.body.nodes[t];void 0!==n[t]&&(e.x=void 0===n[t].x?r.x:n[t].x,e.y=void 0===n[t].y?r.y:n[t].y)}}else zg(o,(function(e){!1===e.options.fixed.x&&(e.x=r.x),!1===e.options.fixed.y&&(e.y=r.y)}));for(const c in o)if(Object.prototype.hasOwnProperty.call(o,c)){const e=this.body.nodes[c];e.vx=r.vx,e.vy=r.vy,e.setOptions({physics:!0}),delete this.clusteredNodes[c]}const l=[];for(let c=0;c0&&n<100;){const e=t.pop();if(void 0===e)continue;const s=this.body.edges[e];if(void 0===s)continue;n++;const o=s.clusteringEdgeReplacingIds;if(void 0===o)r.push(e);else for(let r=0;rr&&(r=n.edges.length),e+=n.edges.length,t+=Math.pow(n.edges.length,2),i+=1}e/=i,t/=i;const n=t-Math.pow(e,2),s=Math.sqrt(n);let o=Math.floor(e+2*s);return o>r&&(o=r),o}_createClusteredEdge(e,t,i,r,n){const s=Ck.cloneOptions(i,"edge");Pg(s,r),s.from=e,s.to=t,s.id="clusterEdge:"+kj(),void 0!==n&&Pg(s,n);const o=this.body.functions.createEdge(s);return o.clusteringEdgeReplacingIds=[i.id],o.connect(),this.body.edges[o.id]=o,o}_clusterEdges(e,t,i,r){if(t instanceof pk){const e=t,i={};i[e.id]=e,t=i}if(e instanceof PC){const t=e,i={};i[t.id]=t,e=i}if(null==i)throw new Error("_clusterEdges: parameter clusterNode required");void 0===r&&(r=i.clusterEdgeProperties),this._createClusterEdges(e,t,i,r);for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&void 0!==this.body.edges[n]){const e=this.body.edges[n];this._backupEdgeOptions(e),e.setOptions({physics:!1})}for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(this.clusteredNodes[n]={clusterId:i.id,node:this.body.nodes[n]},this.body.nodes[n].setOptions({physics:!1}))}_getClusterNodeForNode(e){if(void 0===e)return;const t=this.clusteredNodes[e];if(void 0===t)return;const i=t.clusterId;return void 0!==i?this.body.nodes[i]:void 0}_filter(e,t){const i=[];return zg(e,e=>{t(e)&&i.push(e)}),i}_updateState(){let e;const t=[],i={},r=e=>{zg(this.body.nodes,t=>{!0===t.isCluster&&e(t)})};for(e in this.clusteredNodes)Object.prototype.hasOwnProperty.call(this.clusteredNodes,e)&&void 0===this.body.nodes[e]&&t.push(e);r((function(e){for(let i=0;i{const t=this.body.edges[e];void 0!==t&&t.endPointsValid()||(i[e]=e)}),r((function(e){zg(e.containedEdges,(e,t)=>{e.endPointsValid()||i[t]||(i[t]=t)})})),zg(this.body.edges,(e,t)=>{let r=!0;const n=e.clusteringEdgeReplacingIds;if(void 0!==n){let e=0;zg(n,t=>{const i=this.body.edges[t];void 0!==i&&i.endPointsValid()&&(e+=1)}),r=e>0}e.endPointsValid()&&r||(i[t]=t)}),r(e=>{zg(i,t=>{delete e.containedEdges[t],zg(e.edges,(r,n)=>{r.id!==t?r.clusteringEdgeReplacingIds=this._filter(r.clusteringEdgeReplacingIds,(function(e){return!i[e]})):e.edges[n]=null}),e.edges=this._filter(e.edges,(function(e){return null!==e}))})}),zg(i,e=>{delete this.clusteredEdges[e]}),zg(i,e=>{delete this.body.edges[e]}),zg(ed(this.body.edges),e=>{const t=this.body.edges[e],i=this._isClusteredNode(t.fromId)||this._isClusteredNode(t.toId);if(i!==this._isClusteredEdge(t.id))if(i){const e=this._getClusterNodeForNode(t.fromId);void 0!==e&&this._clusterEdges(this.body.nodes[t.fromId],t,e);const i=this._getClusterNodeForNode(t.toId);void 0!==i&&this._clusterEdges(this.body.nodes[t.toId],t,i)}else delete this._clusterEdges[e],this._restoreEdge(t)});let n=!1,s=!0;for(;s;){const e=[];r((function(t){const i=ed(t.containedNodes).length,r=!0===t.options.allowSingleNodeCluster;(r&&i<1||!r&&i<2)&&e.push(t.id)}));for(let t=0;t0,n=n||s}n&&this._updateState()}_isClusteredNode(e){return void 0!==this.clusteredNodes[e]}_isClusteredEdge(e){return void 0!==this.clusteredEdges[e]}}class Tk{constructor(e,t){this.body=e,this.canvas=t,this.redrawRequested=!1,this.requestAnimationFrameRequestId=void 0,this.renderingActive=!1,this.renderRequests=0,this.allowRedraw=!0,this.dragging=!1,this.zooming=!1,this.options={},this.defaultOptions={hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1},vr(this.options,this.defaultOptions),this.bindEventListeners()}bindEventListeners(){var e;this.body.emitter.on("dragStart",()=>{this.dragging=!0}),this.body.emitter.on("dragEnd",()=>{this.dragging=!1}),this.body.emitter.on("zoom",()=>{this.zooming=!0,window.clearTimeout(this.zoomTimeoutId),this.zoomTimeoutId=sf(()=>{var e;this.zooming=!1,zr(e=this._requestRedraw).call(e,this)()},250)}),this.body.emitter.on("_resizeNodes",()=>{this._resizeNodes()}),this.body.emitter.on("_redraw",()=>{!1===this.renderingActive&&this._redraw()}),this.body.emitter.on("_blockRedraw",()=>{this.allowRedraw=!1}),this.body.emitter.on("_allowRedraw",()=>{this.allowRedraw=!0,this.redrawRequested=!1}),this.body.emitter.on("_requestRedraw",zr(e=this._requestRedraw).call(e,this)),this.body.emitter.on("_startRendering",()=>{this.renderRequests+=1,this.renderingActive=!0,this._startRendering()}),this.body.emitter.on("_stopRendering",()=>{this.renderRequests-=1,this.renderingActive=this.renderRequests>0,this.requestAnimationFrameRequestId=void 0}),this.body.emitter.on("destroy",()=>{this.renderRequests=0,this.allowRedraw=!1,this.renderingActive=!1,window.cancelAnimationFrame(this.requestAnimationFrameRequestId),this.body.emitter.off()})}setOptions(e){void 0!==e&&Ig(["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag"],this.options,e)}_startRendering(){var e;!0===this.renderingActive&&void 0===this.requestAnimationFrameRequestId&&(this.requestAnimationFrameRequestId=window.requestAnimationFrame(zr(e=this._renderStep).call(e,this),this.simulationInterval))}_renderStep(){!0===this.renderingActive&&(this.requestAnimationFrameRequestId=void 0,this._startRendering(),this._redraw())}redraw(){this.body.emitter.emit("setSize"),this._redraw()}_requestRedraw(){!0!==this.redrawRequested&&!1===this.renderingActive&&!0===this.allowRedraw&&(this.redrawRequested=!0,window.requestAnimationFrame(()=>{this._redraw(!1)}))}_redraw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!0===this.allowRedraw){this.body.emitter.emit("initRedraw"),this.redrawRequested=!1;const t={drawExternalLabels:null};0!==this.canvas.frame.canvas.width&&0!==this.canvas.frame.canvas.height||this.canvas.setSize(),this.canvas.setTransform();const i=this.canvas.getContext(),r=this.canvas.frame.canvas.clientWidth,n=this.canvas.frame.canvas.clientHeight;if(i.clearRect(0,0,r,n),0===this.canvas.frame.clientWidth)return;if(i.save(),i.translate(this.body.view.translation.x,this.body.view.translation.y),i.scale(this.body.view.scale,this.body.view.scale),i.beginPath(),this.body.emitter.emit("beforeDrawing",i),i.closePath(),!1===e&&(!1===this.dragging||!0===this.dragging&&!1===this.options.hideEdgesOnDrag)&&(!1===this.zooming||!0===this.zooming&&!1===this.options.hideEdgesOnZoom)&&this._drawEdges(i),!1===this.dragging||!0===this.dragging&&!1===this.options.hideNodesOnDrag){const{drawExternalLabels:r}=this._drawNodes(i,e);t.drawExternalLabels=r}!1===e&&(!1===this.dragging||!0===this.dragging&&!1===this.options.hideEdgesOnDrag)&&(!1===this.zooming||!0===this.zooming&&!1===this.options.hideEdgesOnZoom)&&this._drawArrows(i),null!=t.drawExternalLabels&&t.drawExternalLabels(),!1===e&&this._drawSelectionBox(i),i.beginPath(),this.body.emitter.emit("afterDrawing",i),i.closePath(),i.restore(),!0===e&&i.clearRect(0,0,r,n)}}_resizeNodes(){this.canvas.setTransform();const e=this.canvas.getContext();e.save(),e.translate(this.body.view.translation.x,this.body.view.translation.y),e.scale(this.body.view.scale,this.body.view.scale);const t=this.body.nodes;let i;for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i=t[r],i.resize(e),i.updateBoundingBox(e,i.selected));e.restore()}_drawNodes(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=this.body.nodes,r=this.body.nodeIndices;let n;const s=[],o=[],a=this.canvas.DOMtoCanvas({x:-20,y:-20}),l=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+20,y:this.canvas.frame.canvas.clientHeight+20}),c={top:a.y,left:a.x,bottom:l.y,right:l.x},u=[];for(let f=0;f{for(const e of u)e()}}}_drawEdges(e){const t=this.body.edges,i=this.body.edgeIndices;for(let r=0;r{0!==e.width&&(this.body.view.translation.x=.5*e.width),0!==e.height&&(this.body.view.translation.y=.5*e.height)}),this.body.emitter.on("setSize",zr(e=this.setSize).call(e,this)),this.body.emitter.on("destroy",()=>{this.hammerFrame.destroy(),this.hammer.destroy(),this._cleanUp()})}setOptions(e){if(void 0!==e&&Ig(["width","height","autoResize"],this.options,e),this._cleanUp(),!0===this.options.autoResize){var t;if(window.ResizeObserver){const e=new ResizeObserver(()=>{!0===this.setSize()&&this.body.emitter.emit("_requestRedraw")}),{frame:t}=this;e.observe(t),this._cleanupCallbacks.push(()=>{e.unobserve(t)})}else{const e=Ek(()=>{!0===this.setSize()&&this.body.emitter.emit("_requestRedraw")},1e3);this._cleanupCallbacks.push(()=>{clearInterval(e)})}const e=zr(t=this._onResize).call(t,this);window.addEventListener("resize",e),this._cleanupCallbacks.push(()=>{window.removeEventListener("resize",e)})}}_cleanUp(){var e,t,i;yd(e=Td(t=eh(i=this._cleanupCallbacks).call(i,0)).call(t)).call(e,e=>{try{e()}catch(e){console.error(e)}})}_onResize(){this.setSize(),this.body.emitter.emit("_redraw")}_getCameraState(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pixelRatio;!0===this.initialized&&(this.cameraState.previousWidth=this.frame.canvas.width/e,this.cameraState.previousHeight=this.frame.canvas.height/e,this.cameraState.scale=this.body.view.scale,this.cameraState.position=this.DOMtoCanvas({x:.5*this.frame.canvas.width/e,y:.5*this.frame.canvas.height/e}))}_setCameraState(){if(void 0!==this.cameraState.scale&&0!==this.frame.canvas.clientWidth&&0!==this.frame.canvas.clientHeight&&0!==this.pixelRatio&&this.cameraState.previousWidth>0&&this.cameraState.previousHeight>0){const e=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth,t=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight;let i=this.cameraState.scale;1!=e&&1!=t?i=.5*this.cameraState.scale*(e+t):1!=e?i=this.cameraState.scale*e:1!=t&&(i=this.cameraState.scale*t),this.body.view.scale=i;const r=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight}),n={x:r.x-this.cameraState.position.x,y:r.y-this.cameraState.position.y};this.body.view.translation.x+=n.x*this.body.view.scale,this.body.view.translation.y+=n.y*this.body.view.scale}}_prepareValue(e){if("number"==typeof e)return e+"px";if("string"==typeof e){if(-1!==Ap(e).call(e,"%")||-1!==Ap(e).call(e,"px"))return e;if(-1===Ap(e).call(e,"%"))return e+"px"}throw new Error("Could not use the value supplied for width or height:"+e)}_create(){for(;this.body.container.hasChildNodes();)this.body.container.removeChild(this.body.container.firstChild);if(this.frame=document.createElement("div"),this.frame.className="vis-network",this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.tabIndex=0,this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas),this.frame.canvas.getContext)this._setPixelRatio(),this.setTransform();else{const e=document.createElement("DIV");e.style.color="red",e.style.fontWeight="bold",e.style.padding="10px",e.innerText="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(e)}this.body.container.appendChild(this.frame),this.body.view.scale=1,this.body.view.translation={x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight},this._bindHammer()}_bindHammer(){void 0!==this.hammer&&this.hammer.destroy(),this.drag={},this.pinch={},this.hammer=new fy(this.frame.canvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.get("pan").set({threshold:5,direction:fy.DIRECTION_ALL}),Ok(this.hammer,e=>{this.body.eventListeners.onTouch(e)}),this.hammer.on("tap",e=>{this.body.eventListeners.onTap(e)}),this.hammer.on("doubletap",e=>{this.body.eventListeners.onDoubleTap(e)}),this.hammer.on("press",e=>{this.body.eventListeners.onHold(e)}),this.hammer.on("panstart",e=>{this.body.eventListeners.onDragStart(e)}),this.hammer.on("panmove",e=>{this.body.eventListeners.onDrag(e)}),this.hammer.on("panend",e=>{this.body.eventListeners.onDragEnd(e)}),this.hammer.on("pinch",e=>{this.body.eventListeners.onPinch(e)}),this.frame.canvas.addEventListener("wheel",e=>{this.body.eventListeners.onMouseWheel(e)}),this.frame.canvas.addEventListener("mousemove",e=>{this.body.eventListeners.onMouseMove(e)}),this.frame.canvas.addEventListener("contextmenu",e=>{this.body.eventListeners.onContext(e)}),this.hammerFrame=new fy(this.frame),Dk(this.hammerFrame,e=>{this.body.eventListeners.onRelease(e)})}setSize(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.width,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.height;e=this._prepareValue(e),t=this._prepareValue(t);let i=!1;const r=this.frame.canvas.width,n=this.frame.canvas.height,s=this.pixelRatio;if(this._setPixelRatio(),e!=this.options.width||t!=this.options.height||this.frame.style.width!=e||this.frame.style.height!=t)this._getCameraState(s),this.frame.style.width=e,this.frame.style.height=t,this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio),this.options.width=e,this.options.height=t,this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight},i=!0;else{const e=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),t=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);this.frame.canvas.width===e&&this.frame.canvas.height===t||this._getCameraState(s),this.frame.canvas.width!==e&&(this.frame.canvas.width=e,i=!0),this.frame.canvas.height!==t&&(this.frame.canvas.height=t,i=!0)}return!0===i&&(this.body.emitter.emit("resize",{width:Math.round(this.frame.canvas.width/this.pixelRatio),height:Math.round(this.frame.canvas.height/this.pixelRatio),oldWidth:Math.round(r/this.pixelRatio),oldHeight:Math.round(n/this.pixelRatio)}),this._setCameraState()),this.initialized=!0,i}getContext(){return this.frame.canvas.getContext("2d")}_determinePixelRatio(){const e=this.getContext();if(void 0===e)throw new Error("Could not get canvax context");let t=1;return"undefined"!=typeof window&&(t=window.devicePixelRatio||1),t/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)}_setPixelRatio(){this.pixelRatio=this._determinePixelRatio()}setTransform(){const e=this.getContext();if(void 0===e)throw new Error("Could not get canvax context");e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}_XconvertDOMtoCanvas(e){return(e-this.body.view.translation.x)/this.body.view.scale}_XconvertCanvasToDOM(e){return e*this.body.view.scale+this.body.view.translation.x}_YconvertDOMtoCanvas(e){return(e-this.body.view.translation.y)/this.body.view.scale}_YconvertCanvasToDOM(e){return e*this.body.view.scale+this.body.view.translation.y}canvasToDOM(e){return{x:this._XconvertCanvasToDOM(e.x),y:this._YconvertCanvasToDOM(e.y)}}DOMtoCanvas(e){return{x:this._XconvertDOMtoCanvas(e.x),y:this._YconvertDOMtoCanvas(e.y)}}}class Nk{constructor(e,t){var i,r;this.body=e,this.canvas=t,this.animationSpeed=1/this.renderRefreshRate,this.animationEasingFunction="easeInOutQuint",this.easingTime=0,this.sourceScale=0,this.targetScale=0,this.sourceTranslation=0,this.targetTranslation=0,this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0,this.touchTime=0,this.viewFunction=void 0,this.body.emitter.on("fit",zr(i=this.fit).call(i,this)),this.body.emitter.on("animationFinished",()=>{this.body.emitter.emit("_stopRendering")}),this.body.emitter.on("unlockNode",zr(r=this.releaseNode).call(r,this))}setOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=e}fit(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=function(e,t){const i=vr({nodes:t,minZoomLevel:Number.MIN_VALUE,maxZoomLevel:1},null!=e?e:{});if(!Wu(i.nodes))throw new TypeError("Nodes has to be an array of ids.");if(0===i.nodes.length&&(i.nodes=t),!("number"==typeof i.minZoomLevel&&i.minZoomLevel>0))throw new TypeError("Min zoom level has to be a number higher than zero.");if(!("number"==typeof i.maxZoomLevel&&i.minZoomLevel<=i.maxZoomLevel))throw new TypeError("Max zoom level has to be a number higher than min zoom level.");return i}(e,this.body.nodeIndices);const i=this.canvas.frame.canvas.clientWidth,r=this.canvas.frame.canvas.clientHeight;let n,s;if(0===i||0===r)s=1,n=Ck.getRange(this.body.nodes,e.nodes);else if(!0===t){let t=0;for(const e in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,e)&&!0===this.body.nodes[e].predefinedPosition&&(t+=1);if(t>.5*this.body.nodeIndices.length)return void this.fit(e,!1);n=Ck.getRange(this.body.nodes,e.nodes),s=12.662/(this.body.nodeIndices.length+7.4147)+.0964822,s*=Math.min(i/600,r/600)}else{this.body.emitter.emit("_resizeNodes"),n=Ck.getRange(this.body.nodes,e.nodes);const t=i/(1.1*Math.abs(n.maxX-n.minX)),o=r/(1.1*Math.abs(n.maxY-n.minY));s=t<=o?t:o}s>e.maxZoomLevel?s=e.maxZoomLevel:s1&&void 0!==arguments[1]?arguments[1]:{};if(void 0!==this.body.nodes[e]){const i={x:this.body.nodes[e].x,y:this.body.nodes[e].y};t.position=i,t.lockedOnNode=e,this.moveTo(t)}else console.error("Node: "+e+" cannot be found.")}moveTo(e){if(void 0!==e){if(null!=e.offset){if(null!=e.offset.x){if(e.offset.x=+e.offset.x,!hw(e.offset.x))throw new TypeError('The option "offset.x" has to be a finite number.')}else e.offset.x=0;if(null!=e.offset.y){if(e.offset.y=+e.offset.y,!hw(e.offset.y))throw new TypeError('The option "offset.y" has to be a finite number.')}else e.offset.x=0}else e.offset={x:0,y:0};if(null!=e.position){if(null!=e.position.x){if(e.position.x=+e.position.x,!hw(e.position.x))throw new TypeError('The option "position.x" has to be a finite number.')}else e.position.x=0;if(null!=e.position.y){if(e.position.y=+e.position.y,!hw(e.position.y))throw new TypeError('The option "position.y" has to be a finite number.')}else e.position.x=0}else e.position=this.getViewPosition();if(null!=e.scale){if(e.scale=+e.scale,!(e.scale>0))throw new TypeError('The option "scale" has to be a number greater than zero.')}else e.scale=this.body.view.scale;void 0===e.animation&&(e.animation={duration:0}),!1===e.animation&&(e.animation={duration:0}),!0===e.animation&&(e.animation={}),void 0===e.animation.duration&&(e.animation.duration=1e3),void 0===e.animation.easingFunction&&(e.animation.easingFunction="easeInOutQuad"),this.animateView(e)}else e={}}animateView(e){if(void 0===e)return;this.animationEasingFunction=e.animation.easingFunction,this.releaseNode(),!0===e.locked&&(this.lockedOnNodeId=e.lockedOnNode,this.lockedOnNodeOffset=e.offset),0!=this.easingTime&&this._transitionRedraw(!0),this.sourceScale=this.body.view.scale,this.sourceTranslation=this.body.view.translation,this.targetScale=e.scale,this.body.view.scale=this.targetScale;const t=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),i=t.x-e.position.x,r=t.y-e.position.y;var n,s;this.targetTranslation={x:this.sourceTranslation.x+i*this.targetScale+e.offset.x,y:this.sourceTranslation.y+r*this.targetScale+e.offset.y},0===e.animation.duration?null!=this.lockedOnNodeId?(this.viewFunction=zr(n=this._lockedRedraw).call(n,this),this.body.emitter.on("initRedraw",this.viewFunction)):(this.body.view.scale=this.targetScale,this.body.view.translation=this.targetTranslation,this.body.emitter.emit("_requestRedraw")):(this.animationSpeed=1/(60*e.animation.duration*.001)||1/60,this.animationEasingFunction=e.animation.easingFunction,this.viewFunction=zr(s=this._transitionRedraw).call(s,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering"))}_lockedRedraw(){const e=this.body.nodes[this.lockedOnNodeId].x,t=this.body.nodes[this.lockedOnNodeId].y,i=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),r=i.x-e,n=i.y-t,s=this.body.view.translation,o={x:s.x+r*this.body.view.scale+this.lockedOnNodeOffset.x,y:s.y+n*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=o}releaseNode(){void 0!==this.lockedOnNodeId&&void 0!==this.viewFunction&&(this.body.emitter.off("initRedraw",this.viewFunction),this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0)}_transitionRedraw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.easingTime+=this.animationSpeed,this.easingTime=!0===e?1:this.easingTime;const t=ry[this.animationEasingFunction](this.easingTime);var i;(this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*t,this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*t,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*t},this.easingTime>=1)&&(this.body.emitter.off("initRedraw",this.viewFunction),this.easingTime=0,null!=this.lockedOnNodeId&&(this.viewFunction=zr(i=this._lockedRedraw).call(i,this),this.body.emitter.on("initRedraw",this.viewFunction)),this.body.emitter.emit("animationFinished"))}getScale(){return this.body.view.scale}getViewPosition(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}}function Ik(e){var t,i=e&&e.preventDefault||!1,r=e&&e.container||window,n={},s={keydown:{},keyup:{}},o={};for(t=97;t<=122;t++)o[String.fromCharCode(t)]={code:t-97+65,shift:!1};for(t=65;t<=90;t++)o[String.fromCharCode(t)]={code:t,shift:!0};for(t=0;t<=9;t++)o[""+t]={code:48+t,shift:!1};for(t=1;t<=12;t++)o["F"+t]={code:111+t,shift:!1};for(t=0;t<=9;t++)o["num"+t]={code:96+t,shift:!1};o["num*"]={code:106,shift:!1},o["num+"]={code:107,shift:!1},o["num-"]={code:109,shift:!1},o["num/"]={code:111,shift:!1},o["num."]={code:110,shift:!1},o.left={code:37,shift:!1},o.up={code:38,shift:!1},o.right={code:39,shift:!1},o.down={code:40,shift:!1},o.space={code:32,shift:!1},o.enter={code:13,shift:!1},o.shift={code:16,shift:void 0},o.esc={code:27,shift:!1},o.backspace={code:8,shift:!1},o.tab={code:9,shift:!1},o.ctrl={code:17,shift:!1},o.alt={code:18,shift:!1},o.delete={code:46,shift:!1},o.pageup={code:33,shift:!1},o.pagedown={code:34,shift:!1},o["="]={code:187,shift:!1},o["-"]={code:189,shift:!1},o["]"]={code:221,shift:!1},o["["]={code:219,shift:!1};var a=function(e){c(e,"keydown")},l=function(e){c(e,"keyup")},c=function(e,t){if(void 0!==s[t][e.keyCode]){for(var r=s[t][e.keyCode],n=0;n{this.activated=!0,this.configureKeyboardBindings()}),this.body.emitter.on("deactivate",()=>{this.activated=!1,this.configureKeyboardBindings()}),this.body.emitter.on("destroy",()=>{void 0!==this.keycharm&&this.keycharm.destroy()}),this.options={}}setOptions(e){void 0!==e&&(this.options=e,this.create())}create(){!0===this.options.navigationButtons?!1===this.iconsCreated&&this.loadNavigationElements():!0===this.iconsCreated&&this.cleanNavigation(),this.configureKeyboardBindings()}cleanNavigation(){if(0!=this.navigationHammers.length){for(let e=0;e{this._stopMovement()}),this.navigationHammers.push(n),this.iconsCreated=!0}bindToRedraw(e){var t;void 0===this.boundFunctions[e]&&(this.boundFunctions[e]=zr(t=this[e]).call(t,this),this.body.emitter.on("initRedraw",this.boundFunctions[e]),this.body.emitter.emit("_startRendering"))}unbindFromRedraw(e){void 0!==this.boundFunctions[e]&&(this.body.emitter.off("initRedraw",this.boundFunctions[e]),this.body.emitter.emit("_stopRendering"),delete this.boundFunctions[e])}_fit(){(new Date).valueOf()-this.touchTime>700&&(this.body.emitter.emit("fit",{duration:700}),this.touchTime=(new Date).valueOf())}_stopMovement(){for(const e in this.boundFunctions)Object.prototype.hasOwnProperty.call(this.boundFunctions,e)&&(this.body.emitter.off("initRedraw",this.boundFunctions[e]),this.body.emitter.emit("_stopRendering"));this.boundFunctions={}}_moveUp(){this.body.view.translation.y+=this.options.keyboard.speed.y}_moveDown(){this.body.view.translation.y-=this.options.keyboard.speed.y}_moveLeft(){this.body.view.translation.x+=this.options.keyboard.speed.x}_moveRight(){this.body.view.translation.x-=this.options.keyboard.speed.x}_zoomIn(){const e=this.body.view.scale,t=this.body.view.scale*(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,r=t/e,n=(1-r)*this.canvas.canvasViewCenter.x+i.x*r,s=(1-r)*this.canvas.canvasViewCenter.y+i.y*r;this.body.view.scale=t,this.body.view.translation={x:n,y:s},this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:null})}_zoomOut(){const e=this.body.view.scale,t=this.body.view.scale/(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,r=t/e,n=(1-r)*this.canvas.canvasViewCenter.x+i.x*r,s=(1-r)*this.canvas.canvasViewCenter.y+i.y*r;this.body.view.scale=t,this.body.view.translation={x:n,y:s},this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:null})}configureKeyboardBindings(){var e,t,i,r,n,s,o,a,l,c,u,d,h,p,f,m,g,y,b,v,w,x,_,j;void 0!==this.keycharm&&this.keycharm.destroy(),!0===this.options.keyboard.enabled&&(!0===this.options.keyboard.bindToWindow?this.keycharm=Ik({container:window,preventDefault:!0}):this.keycharm=Ik({container:this.canvas.frame,preventDefault:!0}),this.keycharm.reset(),!0===this.activated&&(zr(e=this.keycharm).call(e,"up",()=>{this.bindToRedraw("_moveUp")},"keydown"),zr(t=this.keycharm).call(t,"down",()=>{this.bindToRedraw("_moveDown")},"keydown"),zr(i=this.keycharm).call(i,"left",()=>{this.bindToRedraw("_moveLeft")},"keydown"),zr(r=this.keycharm).call(r,"right",()=>{this.bindToRedraw("_moveRight")},"keydown"),zr(n=this.keycharm).call(n,"=",()=>{this.bindToRedraw("_zoomIn")},"keydown"),zr(s=this.keycharm).call(s,"num+",()=>{this.bindToRedraw("_zoomIn")},"keydown"),zr(o=this.keycharm).call(o,"num-",()=>{this.bindToRedraw("_zoomOut")},"keydown"),zr(a=this.keycharm).call(a,"-",()=>{this.bindToRedraw("_zoomOut")},"keydown"),zr(l=this.keycharm).call(l,"[",()=>{this.bindToRedraw("_zoomOut")},"keydown"),zr(c=this.keycharm).call(c,"]",()=>{this.bindToRedraw("_zoomIn")},"keydown"),zr(u=this.keycharm).call(u,"pageup",()=>{this.bindToRedraw("_zoomIn")},"keydown"),zr(d=this.keycharm).call(d,"pagedown",()=>{this.bindToRedraw("_zoomOut")},"keydown"),zr(h=this.keycharm).call(h,"up",()=>{this.unbindFromRedraw("_moveUp")},"keyup"),zr(p=this.keycharm).call(p,"down",()=>{this.unbindFromRedraw("_moveDown")},"keyup"),zr(f=this.keycharm).call(f,"left",()=>{this.unbindFromRedraw("_moveLeft")},"keyup"),zr(m=this.keycharm).call(m,"right",()=>{this.unbindFromRedraw("_moveRight")},"keyup"),zr(g=this.keycharm).call(g,"=",()=>{this.unbindFromRedraw("_zoomIn")},"keyup"),zr(y=this.keycharm).call(y,"num+",()=>{this.unbindFromRedraw("_zoomIn")},"keyup"),zr(b=this.keycharm).call(b,"num-",()=>{this.unbindFromRedraw("_zoomOut")},"keyup"),zr(v=this.keycharm).call(v,"-",()=>{this.unbindFromRedraw("_zoomOut")},"keyup"),zr(w=this.keycharm).call(w,"[",()=>{this.unbindFromRedraw("_zoomOut")},"keyup"),zr(x=this.keycharm).call(x,"]",()=>{this.unbindFromRedraw("_zoomIn")},"keyup"),zr(_=this.keycharm).call(_,"pageup",()=>{this.unbindFromRedraw("_zoomIn")},"keyup"),zr(j=this.keycharm).call(j,"pagedown",()=>{this.unbindFromRedraw("_zoomOut")},"keyup")))}}class Fk{constructor(e,t,i){var r,n,s,o,a,l,c,u,d,h,p,f,m;this.body=e,this.canvas=t,this.selectionHandler=i,this.navigationHandler=new Pk(e,t),this.body.eventListeners.onTap=zr(r=this.onTap).call(r,this),this.body.eventListeners.onTouch=zr(n=this.onTouch).call(n,this),this.body.eventListeners.onDoubleTap=zr(s=this.onDoubleTap).call(s,this),this.body.eventListeners.onHold=zr(o=this.onHold).call(o,this),this.body.eventListeners.onDragStart=zr(a=this.onDragStart).call(a,this),this.body.eventListeners.onDrag=zr(l=this.onDrag).call(l,this),this.body.eventListeners.onDragEnd=zr(c=this.onDragEnd).call(c,this),this.body.eventListeners.onMouseWheel=zr(u=this.onMouseWheel).call(u,this),this.body.eventListeners.onPinch=zr(d=this.onPinch).call(d,this),this.body.eventListeners.onMouseMove=zr(h=this.onMouseMove).call(h,this),this.body.eventListeners.onRelease=zr(p=this.onRelease).call(p,this),this.body.eventListeners.onContext=zr(f=this.onContext).call(f,this),this.touchTime=0,this.drag={},this.pinch={},this.popup=void 0,this.popupObj=void 0,this.popupTimer=void 0,this.body.functions.getPointer=zr(m=this.getPointer).call(m,this),this.options={},this.defaultOptions={dragNodes:!0,dragView:!0,hover:!1,keyboard:{enabled:!1,speed:{x:10,y:10,zoom:.02},bindToWindow:!0,autoFocus:!0},navigationButtons:!1,tooltipDelay:300,zoomView:!0,zoomSpeed:1},vr(this.options,this.defaultOptions),this.bindEventListeners()}bindEventListeners(){this.body.emitter.on("destroy",()=>{clearTimeout(this.popupTimer),delete this.body.functions.getPointer})}setOptions(e){void 0!==e&&(Rg(["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag","keyboard","multiselect","selectable","selectConnectedEdges"],this.options,e),iy(this.options,e,"keyboard"),e.tooltip&&(vr(this.options.tooltip,e.tooltip),e.tooltip.color&&(this.options.tooltip.color=Gg(e.tooltip.color)))),this.navigationHandler.setOptions(this.options)}getPointer(e){return{x:e.x-Lg(this.canvas.frame.canvas),y:e.y-Bg(this.canvas.frame.canvas)}}onTouch(e){(new Date).valueOf()-this.touchTime>50&&(this.drag.pointer=this.getPointer(e.center),this.drag.pinched=!1,this.pinch.scale=this.body.view.scale,this.touchTime=(new Date).valueOf())}onTap(e){const t=this.getPointer(e.center),i=this.selectionHandler.options.multiselect&&(e.changedPointers[0].ctrlKey||e.changedPointers[0].metaKey);this.checkSelectionChanges(t,i),this.selectionHandler.commitAndEmit(t,e),this.selectionHandler.generateClickEvent("click",e,t)}onDoubleTap(e){const t=this.getPointer(e.center);this.selectionHandler.generateClickEvent("doubleClick",e,t)}onHold(e){const t=this.getPointer(e.center),i=this.selectionHandler.options.multiselect;this.checkSelectionChanges(t,i),this.selectionHandler.commitAndEmit(t,e),this.selectionHandler.generateClickEvent("click",e,t),this.selectionHandler.generateClickEvent("hold",e,t)}onRelease(e){if((new Date).valueOf()-this.touchTime>10){const t=this.getPointer(e.center);this.selectionHandler.generateClickEvent("release",e,t),this.touchTime=(new Date).valueOf()}}onContext(e){const t=this.getPointer({x:e.clientX,y:e.clientY});this.selectionHandler.generateClickEvent("oncontext",e,t)}checkSelectionChanges(e){!0===(arguments.length>1&&void 0!==arguments[1]&&arguments[1])?this.selectionHandler.selectAdditionalOnPoint(e):this.selectionHandler.selectOnPoint(e)}_determineDifference(e,t){const i=function(e,t){const i=[];for(let r=0;r{const t=e.node;!1===e.xFixed&&(t.x=this.canvas._XconvertDOMtoCanvas(this.canvas._XconvertCanvasToDOM(e.x)+r)),!1===e.yFixed&&(t.y=this.canvas._YconvertDOMtoCanvas(this.canvas._YconvertCanvasToDOM(e.y)+n))}),this.body.emitter.emit("startSimulation")}else{if(e.srcEvent.shiftKey){if(this.selectionHandler.generateClickEvent("dragging",e,t,void 0,!0),void 0===this.drag.pointer)return void this.onDragStart(e);this.body.selectionBox.position.end={x:this.canvas._XconvertDOMtoCanvas(t.x),y:this.canvas._YconvertDOMtoCanvas(t.y)},this.body.emitter.emit("_requestRedraw")}if(!0===this.options.dragView&&!e.srcEvent.shiftKey){if(this.selectionHandler.generateClickEvent("dragging",e,t,void 0,!0),void 0===this.drag.pointer)return void this.onDragStart(e);const i=t.x-this.drag.pointer.x,r=t.y-this.drag.pointer.y;this.body.view.translation={x:this.drag.translation.x+i,y:this.drag.translation.y+r},this.body.emitter.emit("_requestRedraw")}}}onDragEnd(e){if(this.drag.dragging=!1,this.body.selectionBox.show){var t;this.body.selectionBox.show=!1;const i=this.body.selectionBox.position,r={minX:Math.min(i.start.x,i.end.x),minY:Math.min(i.start.y,i.end.y),maxX:Math.max(i.start.x,i.end.x),maxY:Math.max(i.start.y,i.end.y)},n=Bh(t=this.body.nodeIndices).call(t,e=>{const t=this.body.nodes[e];return t.x>=r.minX&&t.x<=r.maxX&&t.y>=r.minY&&t.y<=r.maxY});yd(n).call(n,e=>this.selectionHandler.selectObject(this.body.nodes[e]));const s=this.getPointer(e.center);this.selectionHandler.commitAndEmit(s,e),this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center),void 0,!0),this.body.emitter.emit("_requestRedraw")}else{const t=this.drag.selection;t&&t.length?(yd(t).call(t,(function(e){e.node.options.fixed.x=e.xFixed,e.node.options.fixed.y=e.yFixed})),this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center)),this.body.emitter.emit("startSimulation")):(this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center),void 0,!0),this.body.emitter.emit("_requestRedraw"))}}onPinch(e){const t=this.getPointer(e.center);this.drag.pinched=!0,void 0===this.pinch.scale&&(this.pinch.scale=1);const i=this.pinch.scale*e.scale;this.zoom(i,t)}zoom(e,t){if(!0===this.options.zoomView){const i=this.body.view.scale;let r;e<1e-5&&(e=1e-5),e>10&&(e=10),void 0!==this.drag&&!0===this.drag.dragging&&(r=this.canvas.DOMtoCanvas(this.drag.pointer));const n=this.body.view.translation,s=e/i,o=(1-s)*t.x+n.x*s,a=(1-s)*t.y+n.y*s;if(this.body.view.scale=e,this.body.view.translation={x:o,y:a},null!=r){const e=this.canvas.canvasToDOM(r);this.drag.pointer.x=e.x,this.drag.pointer.y=e.y}this.body.emitter.emit("_requestRedraw"),ithis._checkShowPopup(t),this.options.tooltipDelay))),!0===this.options.hover&&this.selectionHandler.hoverObject(e,t)}_checkShowPopup(e){const t=this.canvas._XconvertDOMtoCanvas(e.x),i=this.canvas._YconvertDOMtoCanvas(e.y),r={left:t,top:i,right:t,bottom:i},n=void 0===this.popupObj?void 0:this.popupObj.id;let s=!1,o="node";if(void 0===this.popupObj){const e=this.body.nodeIndices,t=this.body.nodes;let i;const n=[];for(let o=0;o0&&(this.popupObj=t[n[n.length-1]],s=!0)}if(void 0===this.popupObj&&!1===s){const e=this.body.edgeIndices,t=this.body.edges;let i;const n=[];for(let s=0;s0&&(this.popupObj=t[n[n.length-1]],o="edge")}void 0!==this.popupObj?this.popupObj.id!==n&&(void 0===this.popup&&(this.popup=new my(this.canvas.frame)),this.popup.popupTargetType=o,this.popup.popupTargetId=this.popupObj.id,this.popup.setPosition(e.x+3,e.y-5),this.popup.setText(this.popupObj.getTitle()),this.popup.show(),this.body.emitter.emit("showPopup",this.popupObj.id)):void 0!==this.popup&&(this.popup.hide(),this.body.emitter.emit("hidePopup"))}_checkHidePopup(e){const t=this.selectionHandler._pointerToPositionObject(e);let i=!1;if("node"===this.popup.popupTargetType){if(void 0!==this.body.nodes[this.popup.popupTargetId]&&(i=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(t),!0===i)){const t=this.selectionHandler.getNodeAt(e);i=void 0!==t&&t.id===this.popup.popupTargetId}}else void 0===this.selectionHandler.getNodeAt(e)&&void 0!==this.body.edges[this.popup.popupTargetId]&&(i=this.body.edges[this.popup.popupTargetId].isOverlappingWith(t));!1===i&&(this.popupObj=void 0,this.popup.hide(),this.body.emitter.emit("hidePopup"))}}var Mk=y,Lk=kv,Bk=Cb.getWeakData,zk=ov,Uk=ri,qk=G,Vk=te,Wk=rv,Hk=Ze,Gk=Mo.set,$k=Mo.getterFor,Xk=Ho.find,Kk=Ho.findIndex,Yk=Mk([].splice),Jk=0,Qk=function(e){return e.frozen||(e.frozen=new Zk)},Zk=function(){this.entries=[]},eS=function(e,t){return Xk(e.entries,(function(e){return e[0]===t}))};Zk.prototype={get:function(e){var t=eS(this,e);if(t)return t[1]},has:function(e){return!!eS(this,e)},set:function(e,t){var i=eS(this,e);i?i[1]=t:this.entries.push([e,t])},delete:function(e){var t=Kk(this.entries,(function(t){return t[0]===e}));return~t&&Yk(this.entries,t,1),!!~t}};var tS,iS={getConstructor:function(e,t,i,r){var n=e((function(e,n){zk(e,s),Gk(e,{type:t,id:Jk++,frozen:void 0}),qk(n)||Wk(n,e[r],{that:e,AS_ENTRIES:i})})),s=n.prototype,o=$k(t),a=function(e,t,i){var r=o(e),n=Bk(Uk(t),!0);return!0===n?Qk(r).set(t,i):n[r.id]=i,e};return Lk(s,{delete:function(e){var t=o(this);if(!Vk(e))return!1;var i=Bk(e);return!0===i?Qk(t).delete(e):i&&Hk(i,t.id)&&delete i[t.id]},has:function(e){var t=o(this);if(!Vk(e))return!1;var i=Bk(e);return!0===i?Qk(t).has(e):i&&Hk(i,t.id)}}),Lk(s,i?{get:function(e){var t=o(this);if(Vk(e)){var i=Bk(e);return!0===i?Qk(t).get(e):i?i[t.id]:void 0}},set:function(e,t){return a(this,e,t)}}:{add:function(e){return a(this,e,!0)}}),n}},rS=lb,nS=s,sS=y,oS=kv,aS=Cb,lS=jv,cS=iS,uS=te,dS=Mo.enforce,hS=o,pS=jo,fS=Object,mS=Array.isArray,gS=fS.isExtensible,yS=fS.isFrozen,bS=fS.isSealed,vS=fS.freeze,wS=fS.seal,xS={},_S={},jS=!nS.ActiveXObject&&"ActiveXObject"in nS,CS=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},kS=lS("WeakMap",CS,cS),SS=kS.prototype,TS=sS(SS.set);if(pS)if(jS){tS=cS.getConstructor(CS,"WeakMap",!0),aS.enable();var ES=sS(SS.delete),OS=sS(SS.has),DS=sS(SS.get);oS(SS,{delete:function(e){if(uS(e)&&!gS(e)){var t=dS(this);return t.frozen||(t.frozen=new tS),ES(this,e)||t.frozen.delete(e)}return ES(this,e)},has:function(e){if(uS(e)&&!gS(e)){var t=dS(this);return t.frozen||(t.frozen=new tS),OS(this,e)||t.frozen.has(e)}return OS(this,e)},get:function(e){if(uS(e)&&!gS(e)){var t=dS(this);return t.frozen||(t.frozen=new tS),OS(this,e)?DS(this,e):t.frozen.get(e)}return DS(this,e)},set:function(e,t){if(uS(e)&&!gS(e)){var i=dS(this);i.frozen||(i.frozen=new tS),OS(this,e)?TS(this,e,t):i.frozen.set(e,t)}else TS(this,e,t);return this}})}else rS&&hS((function(){var e=vS([]);return TS(new kS,e,1),!yS(e)}))&&oS(SS,{set:function(e,t){var i;return mS(e)&&(yS(e)?i=xS:bS(e)&&(i=_S)),TS(this,e,t),i===xS&&vS(e),i===_S&&wS(e),this}});var AS,NS,IS,RS,PS,FS=r(ie.WeakMap);function MS(e,t,i,r){if("a"===i&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(e):r?r.value:t.get(e)}function LS(e,t,i,r,n){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!n)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?n.call(e,i):n?n.value=i:t.set(e,i),i}function BS(e,t){const i=new o_;for(const r of t)e.has(r)||i.add(r);return i}"function"==typeof SuppressedError&&SuppressedError;class zS{constructor(){AS.set(this,new o_),NS.set(this,new o_)}get size(){return MS(this,NS,"f").size}add(){for(var e=arguments.length,t=new Array(e),i=0;i0&&void 0!==arguments[0]?arguments[0]:()=>{};IS.set(this,new zS),RS.set(this,new zS),PS.set(this,void 0),LS(this,PS,e,"f")}get sizeNodes(){return MS(this,IS,"f").size}get sizeEdges(){return MS(this,RS,"f").size}getNodes(){return MS(this,IS,"f").getSelection()}getEdges(){return MS(this,RS,"f").getSelection()}addNodes(){MS(this,IS,"f").add(...arguments)}addEdges(){MS(this,RS,"f").add(...arguments)}deleteNodes(e){MS(this,IS,"f").delete(e)}deleteEdges(e){MS(this,RS,"f").delete(e)}clear(){MS(this,IS,"f").clear(),MS(this,RS,"f").clear()}commit(){const e={nodes:MS(this,IS,"f").commit(),edges:MS(this,RS,"f").commit()};for(var t=arguments.length,i=new Array(t),r=0;r{this.updateSelection()})}setOptions(e){void 0!==e&&Ig(["multiselect","hoverConnectedEdges","selectable","selectConnectedEdges"],this.options,e)}selectOnPoint(e){let t=!1;if(!0===this.options.selectable){const i=this.getNodeAt(e)||this.getEdgeAt(e);this.unselectAll(),void 0!==i&&(t=this.selectObject(i)),this.body.emitter.emit("_requestRedraw")}return t}selectAdditionalOnPoint(e){let t=!1;if(!0===this.options.selectable){const i=this.getNodeAt(e)||this.getEdgeAt(e);void 0!==i&&(t=!0,!0===i.isSelected()?this.deselectObject(i):this.selectObject(i),this.body.emitter.emit("_requestRedraw"))}return t}_initBaseEvent(e,t){const i={};return i.pointer={DOM:{x:t.x,y:t.y},canvas:this.canvas.DOMtoCanvas(t)},i.event=e,i}generateClickEvent(e,t,i,r){let n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const s=this._initBaseEvent(t,i);if(!0===n)s.nodes=[],s.edges=[];else{const e=this.getSelection();s.nodes=e.nodes,s.edges=e.edges}void 0!==r&&(s.previousSelection=r),"click"==e&&(s.items=this.getClickedItems(i)),void 0!==t.controlEdge&&(s.controlEdge=t.controlEdge),this.body.emitter.emit(e,s)}selectObject(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.selectConnectedEdges;return void 0!==e&&(e instanceof PC?(!0===t&&this._selectionAccumulator.addEdges(...e.edges),this._selectionAccumulator.addNodes(e)):this._selectionAccumulator.addEdges(e),!0)}deselectObject(e){!0===e.isSelected()&&(e.selected=!1,this._removeFromSelection(e))}_getAllNodesOverlappingWith(e){const t=[],i=this.body.nodes;for(let r=0;r1&&void 0!==arguments[1])||arguments[1];const i=this._pointerToPositionObject(e),r=this._getAllNodesOverlappingWith(i);return r.length>0?!0===t?this.body.nodes[r[r.length-1]]:r[r.length-1]:void 0}_getEdgesOverlappingWith(e,t){const i=this.body.edges;for(let r=0;r1&&void 0!==arguments[1])||arguments[1];const i=this.canvas.DOMtoCanvas(e);let r=10,n=null;const s=this.body.edges;for(let o=0;o0&&(this.generateClickEvent("deselectEdge",t,e,n),i=!0),r.nodes.deleted.length>0&&(this.generateClickEvent("deselectNode",t,e,n),i=!0),r.nodes.added.length>0&&(this.generateClickEvent("selectNode",t,e),i=!0),r.edges.added.length>0&&(this.generateClickEvent("selectEdge",t,e),i=!0),!0===i&&this.generateClickEvent("select",t,e)}getSelection(){return{nodes:this.getSelectedNodeIds(),edges:this.getSelectedEdgeIds()}}getSelectedNodes(){return this._selectionAccumulator.getNodes()}getSelectedEdges(){return this._selectionAccumulator.getEdges()}getSelectedNodeIds(){var e;return Ju(e=this._selectionAccumulator.getNodes()).call(e,e=>e.id)}getSelectedEdgeIds(){var e;return Ju(e=this._selectionAccumulator.getEdges()).call(e,e=>e.id)}setSelection(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!e.nodes&&!e.edges)throw new TypeError("Selection must be an object with nodes and/or edges properties");if((t.unselectAll||void 0===t.unselectAll)&&this.unselectAll(),e.nodes)for(const i of e.nodes){const e=this.body.nodes[i];if(!e)throw new RangeError('Node with id "'+i+'" not found');this.selectObject(e,t.highlightEdges)}if(e.edges)for(const i of e.edges){const e=this.body.edges[i];if(!e)throw new RangeError('Edge with id "'+i+'" not found');this.selectObject(e)}this.body.emitter.emit("_requestRedraw"),this._selectionAccumulator.commit()}selectNodes(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!e||void 0===e.length)throw"Selection must be an array with ids";this.setSelection({nodes:e},{highlightEdges:t})}selectEdges(e){if(!e||void 0===e.length)throw"Selection must be an array with ids";this.setSelection({edges:e})}updateSelection(){for(const e in this._selectionAccumulator.getNodes())Object.prototype.hasOwnProperty.call(this.body.nodes,e.id)||this._selectionAccumulator.deleteNodes(e);for(const e in this._selectionAccumulator.getEdges())Object.prototype.hasOwnProperty.call(this.body.edges,e.id)||this._selectionAccumulator.deleteEdges(e)}getClickedItems(e){const t=this.canvas.DOMtoCanvas(e),i=[],r=this.body.nodeIndices,n=this.body.nodes;for(let a=r.length-1;a>=0;a--){const e=n[r[a]].getItemsOnPoint(t);i.push.apply(i,e)}const s=this.body.edgeIndices,o=this.body.edges;for(let a=s.length-1;a>=0;a--){const e=o[s[a]].getItemsOnPoint(t);i.push.apply(i,e)}return i}}class VS{abstract(){throw new Error("Can't instantiate abstract class!")}fake_use(){}curveType(){return this.abstract()}getPosition(e){return this.fake_use(e),this.abstract()}setPosition(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;this.fake_use(e,t,i),this.abstract()}getTreeSize(e){return this.fake_use(e),this.abstract()}sort(e){this.fake_use(e),this.abstract()}fix(e,t){this.fake_use(e,t),this.abstract()}shift(e,t){this.fake_use(e,t),this.abstract()}}class WS extends VS{constructor(e){super(),this.layout=e}curveType(){return"horizontal"}getPosition(e){return e.x}setPosition(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;void 0!==i&&this.layout.hierarchical.addToOrdering(e,i),e.x=t}getTreeSize(e){const t=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,e);return{min:t.min_x,max:t.max_x}}sort(e){H_(e).call(e,(function(e,t){return e.x-t.x}))}fix(e,t){e.y=this.layout.options.hierarchical.levelSeparation*t,e.options.fixed.y=!0}shift(e,t){this.layout.body.nodes[e].x+=t}}class HS extends VS{constructor(e){super(),this.layout=e}curveType(){return"vertical"}getPosition(e){return e.y}setPosition(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;void 0!==i&&this.layout.hierarchical.addToOrdering(e,i),e.y=t}getTreeSize(e){const t=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,e);return{min:t.min_y,max:t.max_y}}sort(e){H_(e).call(e,(function(e,t){return e.y-t.y}))}fix(e,t){e.x=this.layout.options.hierarchical.levelSeparation*t,e.options.fixed.x=!0}shift(e,t){this.layout.body.nodes[e].y+=t}}var GS=Ho.every;Oi({target:"Array",proto:!0,forced:!od("every")},{every:function(e){return GS(this,e,arguments.length>1?arguments[1]:void 0)}});var $S=Rr("Array").every,XS=le,KS=$S,YS=Array.prototype,JS=function(e){var t=e.every;return e===YS||XS(YS,e)&&t===YS.every?KS:t},QS=r(JS);function ZS(e,t){const i=new o_;return yd(e).call(e,e=>{var t;yd(t=e.edges).call(t,e=>{e.connected&&i.add(e)})}),yd(i).call(i,e=>{const i=e.from.id,r=e.to.id;null==t[i]&&(t[i]=0),(null==t[r]||t[i]>=t[r])&&(t[r]=t[i]+1)}),t}function eT(e,t,i,r){var n;const s=Pp(null),o=qx(n=[...cj(r).call(r)]).call(n,(e,t)=>e+1+t.edges.length,0),a=i+"Id",l="to"===i?1:-1;for(const[d,h]of r){if(!r.has(d)||!e(h))continue;s[d]=0;const n=[h];let p,f=0;for(;p=n.pop();){var c,u;if(!r.has(d))continue;const e=s[p.id]+l;if(yd(c=Bh(u=p.edges).call(u,e=>e.connected&&e.to!==e.from&&e[i]!==p&&r.has(e.toId)&&r.has(e.fromId))).call(c,r=>{const o=r[a],l=s[o];(null==l||t(e,l))&&(s[o]=e,n.push(r[i]))}),f>o)return ZS(r,s);++f}}return s}class tT{constructor(){this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}addRelation(e,t){void 0===this.childrenReference[e]&&(this.childrenReference[e]=[]),this.childrenReference[e].push(t),void 0===this.parentReference[t]&&(this.parentReference[t]=[]),this.parentReference[t].push(e)}checkIfTree(){for(const e in this.parentReference)if(this.parentReference[e].length>1)return void(this.isTree=!1);this.isTree=!0}numTrees(){return this.treeIndex+1}setTreeIndex(e,t){void 0!==t&&void 0===this.trees[e.id]&&(this.trees[e.id]=t,this.treeIndex=Math.max(t,this.treeIndex))}ensureLevel(e){void 0===this.levels[e]&&(this.levels[e]=0)}getMaxLevel(e){const t={},i=e=>{if(void 0!==t[e])return t[e];let r=this.levels[e];if(this.childrenReference[e]){const t=this.childrenReference[e];if(t.length>0)for(let e=0;ee-t);for(const n of r)t.set(n,i++);for(const n in this.levels)Object.prototype.hasOwnProperty.call(this.levels,n)&&(this.levels[n]=t.get(this.levels[n]))}getTreeSize(e,t){let i=1e9,r=-1e9,n=1e9,s=-1e9;for(const o in this.trees)if(Object.prototype.hasOwnProperty.call(this.trees,o)&&this.trees[o]===t){const t=e[o];i=Math.min(t.x,i),r=Math.max(t.x,r),n=Math.min(t.y,n),s=Math.max(t.y,s)}return{min_x:i,max_x:r,min_y:n,max_y:s}}hasSameParent(e,t){const i=this.parentReference[e.id],r=this.parentReference[t.id];if(void 0===i||void 0===r)return!1;for(let n=0;n{this.setupHierarchicalLayout()}),this.body.emitter.on("_dataLoaded",()=>{this.layoutNetwork()}),this.body.emitter.on("_resetHierarchicalLayout",()=>{this.setupHierarchicalLayout()}),this.body.emitter.on("_adjustEdgesForHierarchicalLayout",()=>{if(!0!==this.options.hierarchical.enabled)return;const e=this.direction.curveType();this.body.emitter.emit("_forceDisableDynamicCurves",e,!1)})}setOptions(e,t){if(void 0!==e){const i=this.options.hierarchical,r=i.enabled;if(Ig(["randomSeed","improvedLayout","clusterThreshold"],this.options,e),iy(this.options,e,"hierarchical"),void 0!==e.randomSeed&&this._resetRNG(e.randomSeed),!0===i.enabled)return!0===r&&this.body.emitter.emit("refresh",!0),"RL"===i.direction||"DU"===i.direction?i.levelSeparation>0&&(i.levelSeparation*=-1):i.levelSeparation<0&&(i.levelSeparation*=-1),this.setDirectionStrategy(),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(t);if(!0===r)return this.body.emitter.emit("refresh"),Pg(t,this.optionsBackup)}return t}_resetRNG(e){this.initialRandomSeed=e,this._rng=bg(this.initialRandomSeed)}adaptAllOptionsForHierarchicalLayout(e){if(!0===this.options.hierarchical.enabled){const t=this.optionsBackup.physics;void 0===e.physics||!0===e.physics?(e.physics={enabled:void 0===t.enabled||t.enabled,solver:"hierarchicalRepulsion"},t.enabled=void 0===t.enabled||t.enabled,t.solver=t.solver||"barnesHut"):"object"==typeof e.physics?(t.enabled=void 0===e.physics.enabled||e.physics.enabled,t.solver=e.physics.solver||"barnesHut",e.physics.solver="hierarchicalRepulsion"):!1!==e.physics&&(t.solver="barnesHut",e.physics={solver:"hierarchicalRepulsion"});let i=this.direction.curveType();if(void 0===e.edges)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges={smooth:!1};else if(void 0===e.edges.smooth)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges.smooth=!1;else if("boolean"==typeof e.edges.smooth)this.optionsBackup.edges={smooth:e.edges.smooth},e.edges.smooth={enabled:e.edges.smooth,type:i};else{const t=e.edges.smooth;void 0!==t.type&&"dynamic"!==t.type&&(i=t.type),this.optionsBackup.edges={smooth:{enabled:void 0===t.enabled||t.enabled,type:void 0===t.type?"dynamic":t.type,roundness:void 0===t.roundness?.5:t.roundness,forceDirection:void 0!==t.forceDirection&&t.forceDirection}},e.edges.smooth={enabled:void 0===t.enabled||t.enabled,type:i,roundness:void 0===t.roundness?.5:t.roundness,forceDirection:void 0!==t.forceDirection&&t.forceDirection}}this.body.emitter.emit("_forceDisableDynamicCurves",i)}return e}positionInitially(e){if(!0!==this.options.hierarchical.enabled){this._resetRNG(this.initialRandomSeed);const t=e.length+50;for(let i=0;ir){const s=e.length;for(;e.length>r&&i<=t;){i+=1;const t=e.length;if(i%3==0?this.body.modules.clustering.clusterBridges(n):this.body.modules.clustering.clusterOutliers(n),t==e.length&&i%3!=0)return this._declusterAll(),this.body.emitter.emit("_layoutFailed"),void console.info("This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.")}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*s)})}i>t&&console.info("The clustering didn't succeed within the amount of interations allowed, progressing with partial result."),this.body.modules.kamadaKawai.solve(e,this.body.edgeIndices,!0),this._shiftToCenter();const s=70;for(let o=0;o0){let e,t,i=!1,r=!1;for(t in this.lastNodeOnLevel={},this.hierarchical=new tT,this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,t)&&(e=this.body.nodes[t],void 0!==e.options.level?(i=!0,this.hierarchical.levels[t]=e.options.level):r=!0);if(!0===r&&!0===i)throw new Error("To use the hierarchical layout, nodes require either no predefined levels or levels have to be defined for all nodes.");{if(!0===r){const e=this.options.hierarchical.sortMethod;"hubsize"===e?this._determineLevelsByHubsize():"directed"===e?this._determineLevelsDirected():"custom"===e&&this._determineLevelsCustomCallback()}for(const t in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,t)&&this.hierarchical.ensureLevel(t);const e=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(e),this._condenseHierarchy(),this._shiftToCenter()}}}_condenseHierarchy(){var e=this;let t=!1;const i={},r=(e,t)=>{const i=this.hierarchical.trees;for(const r in i)Object.prototype.hasOwnProperty.call(i,r)&&i[r]===e&&this.direction.shift(r,t)},n=()=>{const e=[];for(let t=0;t{if(!t[e.id]&&(t[e.id]=!0,this.hierarchical.childrenReference[e.id])){const i=this.hierarchical.childrenReference[e.id];if(i.length>0)for(let e=0;e1&&void 0!==arguments[1]?arguments[1]:1e9,r=1e9,n=1e9,s=1e9,o=-1e9;for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)){const l=e.body.nodes[a],c=e.hierarchical.levels[l.id],u=e.direction.getPosition(l),[d,h]=e._getSpaceAroundNode(l,t);r=Math.min(d,r),n=Math.min(h,n),c<=i&&(s=Math.min(u,s),o=Math.max(u,o))}return[s,o,r,n]},a=(e,t)=>{const i=this.hierarchical.getMaxLevel(e.id),r=this.hierarchical.getMaxLevel(t.id);return Math.min(i,r)},l=(e,t,i)=>{const r=this.hierarchical;for(let n=0;n1)for(let t=0;t2&&void 0!==arguments[2]&&arguments[2];const l=e.direction.getPosition(i),c=e.direction.getPosition(r),u=Math.abs(c-l),d=e.options.hierarchical.nodeSpacing;if(u>d){const l={},c={};s(i,l),s(r,c);const u=a(i,r),h=o(l,u),p=o(c,u),f=h[1],m=p[0],g=p[2];if(Math.abs(f-m)>d){let i=f-m+d;i<-g+d&&(i=-g+d),i<0&&(e._shiftBlock(r.id,i),t=!0,!0===n&&e._centerParent(r))}}},u=(e,r)=>{const n=r.id,a=r.edges,l=this.hierarchical.levels[r.id],c=this.options.hierarchical.levelSeparation*this.options.hierarchical.levelSeparation,u={},d=[];for(let t=0;t{let i=0;for(let r=0;r{let i=0;for(let r=0;r{let i=this.direction.getPosition(r);const n={};for(let r=0;r{const n=this.direction.getPosition(r);if(void 0===i[r.id]){const e={};s(r,e),i[r.id]=e}const a=o(i[r.id]),l=a[2],c=a[3],u=e-n;let d=0;u>0?d=Math.min(u,c-this.options.hierarchical.nodeSpacing):u<0&&(d=-Math.min(-u,l-this.options.hierarchical.nodeSpacing)),0!=d&&(this._shiftBlock(r.id,d),t=!0)})(m),m=f(e,a),(e=>{const i=this.direction.getPosition(r),[n,s]=this._getSpaceAroundNode(r),o=e-i;let a=i;o>0?a=Math.min(i+(s-this.options.hierarchical.nodeSpacing),e):o<0&&(a=Math.max(i-(n-this.options.hierarchical.nodeSpacing),e)),a!==i&&(this.direction.setPosition(r,a),t=!0)})(m)},d=e=>{let i=this.hierarchical.getLevels();i=Td(i).call(i);for(let r=0;r{let i=this.hierarchical.getLevels();i=Td(i).call(i);for(let r=0;r{for(const e in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,e)&&this._centerParent(this.body.nodes[e])},f=()=>{let e=this.hierarchical.getLevels();e=Td(e).call(e);for(let t=0;t{const e=n();let t=0;for(let i=0;i0&&Math.abs(o)0&&(o=this.direction.getPosition(r[e-1])+s),this.direction.setPosition(t,o,i),this._validatePositionAndContinue(t,i,o),n++}}}}_placeBranchNodes(e,t){var i;const r=this.hierarchical.childrenReference[e];if(void 0===r)return;const n=[];for(let o=0;ot&&void 0===this.positionedNodes[i.id]))return;{const t=this.options.hierarchical.nodeSpacing;let s;s=0===o?this.direction.getPosition(this.body.nodes[e]):this.direction.getPosition(n[o-1])+t,this.direction.setPosition(i,s,r),this._validatePositionAndContinue(i,r,s)}}const s=this._getCenterPosition(n);this.direction.setPosition(this.body.nodes[e],s,t)}_validatePositionAndContinue(e,t,i){if(this.hierarchical.isTree){if(void 0!==this.lastNodeOnLevel[t]){const r=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[t]]);if(i-r{var i;-1!==Ap(i=this.body.edgeIndices).call(i,e.id)&&t.push(e)}),t}_getHubSizes(){const e={};zg(this.body.nodeIndices,t=>{const i=this.body.nodes[t],r=this._getActiveEdges(i).length;e[r]=!0});const t=[];return zg(e,e=>{t.push(Number(e))}),H_(t).call(t,(function(e,t){return t-e})),t}_determineLevelsByHubsize(){const e=(e,t)=>{this.hierarchical.levelDownstream(e,t)},t=this._getHubSizes();for(let i=0;i{const i=this.body.nodes[t];r===this._getActiveEdges(i).length&&this._crawlNetwork(e,t)})}}_determineLevelsCustomCallback(){this._crawlNetwork((e,t,i)=>{let r=this.hierarchical.levels[e.id];void 0===r&&(r=this.hierarchical.levels[e.id]=1e5);const n=(Ck.cloneOptions(e,"node"),Ck.cloneOptions(t,"node"),void Ck.cloneOptions(i,"edge"));this.hierarchical.levels[t.id]=r+n}),this.hierarchical.setMinLevelToZero()}_determineLevelsDirected(){var e;const t=qx(e=this.body.nodeIndices).call(e,(e,t)=>(e.set(t,this.body.nodes[t]),e),new aw);"roots"===this.options.hierarchical.shakeTowards?this.hierarchical.levels=function(e){return eT(t=>{var i,r;return QS(i=Bh(r=t.edges).call(r,t=>e.has(t.toId))).call(i,e=>e.from===t)},(e,t)=>t{var i,r;return QS(i=Bh(r=t.edges).call(r,t=>e.has(t.toId))).call(i,e=>e.to===t)},(e,t)=>t>e,"from",e)}(t),this.hierarchical.setMinLevelToZero()}_generateMap(){this._crawlNetwork((e,t)=>{this.hierarchical.levels[t.id]>this.hierarchical.levels[e.id]&&this.hierarchical.addRelation(e.id,t.id)}),this.hierarchical.checkIfTree()}_crawlNetwork(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1?arguments[1]:void 0;const i={},r=(t,n)=>{if(void 0===i[t.id]){let s;this.hierarchical.setTreeIndex(t,n),i[t.id]=!0;const o=this._getActiveEdges(t);for(let i=0;i{if(i[e])return;i[e]=!0,this.direction.shift(e,t);const n=this.hierarchical.childrenReference[e];if(void 0!==n)for(let t=0;t{const i=this.hierarchical.parentReference[t];if(void 0!==i)for(let n=0;n{const i=this.hierarchical.parentReference[t];if(void 0!==i)for(let r=0;r{this._clean()}),this.body.emitter.on("_dataChanged",zr(n=this._restore).call(n,this)),this.body.emitter.on("_resetData",zr(s=this._restore).call(s,this))}_restore(){!1!==this.inMode&&(!0===this.options.initiallyActive?this.enableEditMode():this.disableEditMode())}setOptions(e,t,i){void 0!==t&&(void 0!==t.locale?this.options.locale=t.locale:this.options.locale=i.locale,void 0!==t.locales?this.options.locales=t.locales:this.options.locales=i.locales),void 0!==e&&("boolean"==typeof e?this.options.enabled=e:(this.options.enabled=!0,Pg(this.options,e)),!0===this.options.initiallyActive&&(this.editMode=!0),this._setup())}toggleEditMode(){!0===this.editMode?this.disableEditMode():this.enableEditMode()}enableEditMode(){this.editMode=!0,this._clean(),!0===this.guiEnabled&&(this.manipulationDiv.style.display="block",this.closeDiv.style.display="block",this.editModeDiv.style.display="none",this.showManipulatorToolbar())}disableEditMode(){this.editMode=!1,this._clean(),!0===this.guiEnabled&&(this.manipulationDiv.style.display="none",this.closeDiv.style.display="none",this.editModeDiv.style.display="block",this._createEditButton())}showManipulatorToolbar(){if(this._clean(),this.manipulationDOM={},!0===this.guiEnabled){var e,t;this.editMode=!0,this.manipulationDiv.style.display="block",this.closeDiv.style.display="block";const i=this.selectionHandler.getSelectedNodeCount(),r=this.selectionHandler.getSelectedEdgeCount(),n=i+r,s=this.options.locales[this.options.locale];let o=!1;!1!==this.options.addNode&&(this._createAddNodeButton(s),o=!0),!1!==this.options.addEdge&&(!0===o?this._createSeperator(1):o=!0,this._createAddEdgeButton(s)),1===i&&"function"==typeof this.options.editNode?(!0===o?this._createSeperator(2):o=!0,this._createEditNodeButton(s)):1===r&&0===i&&!1!==this.options.editEdge&&(!0===o?this._createSeperator(3):o=!0,this._createEditEdgeButton(s)),0!==n&&(i>0&&!1!==this.options.deleteNode||0===i&&!1!==this.options.deleteEdge)&&(!0===o&&this._createSeperator(4),this._createDeleteButton(s)),this._bindElementEvents(this.closeDiv,zr(e=this.toggleEditMode).call(e,this)),this._temporaryBindEvent("select",zr(t=this.showManipulatorToolbar).call(t,this))}this.body.emitter.emit("_redraw")}addNodeMode(){var e;if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="addNode",!0===this.guiEnabled){var t;const e=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(e),this._createSeperator(),this._createDescription(e.addDescription||this.options.locales.en.addDescription),this._bindElementEvents(this.closeDiv,zr(t=this.toggleEditMode).call(t,this))}this._temporaryBindEvent("click",zr(e=this._performAddNode).call(e,this))}editNode(){!0!==this.editMode&&this.enableEditMode(),this._clean();const e=this.selectionHandler.getSelectedNodes()[0];if(void 0!==e){if(this.inMode="editNode","function"!=typeof this.options.editNode)throw new Error("No function has been configured to handle the editing of nodes.");if(!0!==e.isCluster){const t=Pg({},e.options,!1);if(t.x=e.x,t.y=e.y,2!==this.options.editNode.length)throw new Error("The function for edit does not support two arguments (data, callback)");this.options.editNode(t,e=>{null!=e&&"editNode"===this.inMode&&this.body.data.nodes.getDataSet().update(e),this.showManipulatorToolbar()})}else alert(this.options.locales[this.options.locale].editClusterError||this.options.locales.en.editClusterError)}else this.showManipulatorToolbar()}addEdgeMode(){var e,t,i,r,n;if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="addEdge",!0===this.guiEnabled){var s;const e=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(e),this._createSeperator(),this._createDescription(e.edgeDescription||this.options.locales.en.edgeDescription),this._bindElementEvents(this.closeDiv,zr(s=this.toggleEditMode).call(s,this))}this._temporaryBindUI("onTouch",zr(e=this._handleConnect).call(e,this)),this._temporaryBindUI("onDragEnd",zr(t=this._finishConnect).call(t,this)),this._temporaryBindUI("onDrag",zr(i=this._dragControlNode).call(i,this)),this._temporaryBindUI("onRelease",zr(r=this._finishConnect).call(r,this)),this._temporaryBindUI("onDragStart",zr(n=this._dragStartEdge).call(n,this)),this._temporaryBindUI("onHold",()=>{})}editEdgeMode(){if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="editEdge","object"!=typeof this.options.editEdge||"function"!=typeof this.options.editEdge.editWithoutDrag||(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],void 0===this.edgeBeingEditedId)){if(!0===this.guiEnabled){var e;const t=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(t),this._createSeperator(),this._createDescription(t.editEdgeDescription||this.options.locales.en.editEdgeDescription),this._bindElementEvents(this.closeDiv,zr(e=this.toggleEditMode).call(e,this))}if(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],void 0!==this.edgeBeingEditedId){var t,i,r,n;const e=this.body.edges[this.edgeBeingEditedId],s=this._getNewTargetNode(e.from.x,e.from.y),o=this._getNewTargetNode(e.to.x,e.to.y);this.temporaryIds.nodes.push(s.id),this.temporaryIds.nodes.push(o.id),this.body.nodes[s.id]=s,this.body.nodeIndices.push(s.id),this.body.nodes[o.id]=o,this.body.nodeIndices.push(o.id),this._temporaryBindUI("onTouch",zr(t=this._controlNodeTouch).call(t,this)),this._temporaryBindUI("onTap",()=>{}),this._temporaryBindUI("onHold",()=>{}),this._temporaryBindUI("onDragStart",zr(i=this._controlNodeDragStart).call(i,this)),this._temporaryBindUI("onDrag",zr(r=this._controlNodeDrag).call(r,this)),this._temporaryBindUI("onDragEnd",zr(n=this._controlNodeDragEnd).call(n,this)),this._temporaryBindUI("onMouseMove",()=>{}),this._temporaryBindEvent("beforeDrawing",t=>{const i=e.edgeType.findBorderPositions(t);!1===s.selected&&(s.x=i.from.x,s.y=i.from.y),!1===o.selected&&(o.x=i.to.x,o.y=i.to.y)}),this.body.emitter.emit("_redraw")}else this.showManipulatorToolbar()}else{const e=this.body.edges[this.edgeBeingEditedId];this._performEditEdge(e.from.id,e.to.id)}}deleteSelected(){!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="delete";const e=this.selectionHandler.getSelectedNodeIds(),t=this.selectionHandler.getSelectedEdgeIds();let i;if(e.length>0){for(let t=0;t0&&"function"==typeof this.options.deleteEdge&&(i=this.options.deleteEdge);if("function"==typeof i){const r={nodes:e,edges:t};if(2!==i.length)throw new Error("The function for delete does not support two arguments (data, callback)");i(r,e=>{null!=e&&"delete"===this.inMode?(this.body.data.edges.getDataSet().remove(e.edges),this.body.data.nodes.getDataSet().remove(e.nodes),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()):(this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar())})}else this.body.data.edges.getDataSet().remove(t),this.body.data.nodes.getDataSet().remove(e),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()}_setup(){!0===this.options.enabled?(this.guiEnabled=!0,this._createWrappers(),!1===this.editMode?this._createEditButton():this.showManipulatorToolbar()):(this._removeManipulationDOM(),this.guiEnabled=!1)}_createWrappers(){var e,t;void 0===this.manipulationDiv&&(this.manipulationDiv=document.createElement("div"),this.manipulationDiv.className="vis-manipulation",!0===this.editMode?this.manipulationDiv.style.display="block":this.manipulationDiv.style.display="none",this.canvas.frame.appendChild(this.manipulationDiv)),void 0===this.editModeDiv&&(this.editModeDiv=document.createElement("div"),this.editModeDiv.className="vis-edit-mode",!0===this.editMode?this.editModeDiv.style.display="none":this.editModeDiv.style.display="block",this.canvas.frame.appendChild(this.editModeDiv)),void 0===this.closeDiv&&(this.closeDiv=document.createElement("button"),this.closeDiv.className="vis-close",this.closeDiv.setAttribute("aria-label",null!==(e=null===(t=this.options.locales[this.options.locale])||void 0===t?void 0:t.close)&&void 0!==e?e:this.options.locales.en.close),this.closeDiv.style.display=this.manipulationDiv.style.display,this.canvas.frame.appendChild(this.closeDiv))}_getNewTargetNode(e,t){const i=Pg({},this.options.controlNodeStyle);i.id="targetNode"+kj(),i.hidden=!1,i.physics=!1,i.x=e,i.y=t;const r=this.body.functions.createNode(i);return r.shape.boundingBox={left:e,right:e,top:t,bottom:t},r}_createEditButton(){var e;this._clean(),this.manipulationDOM={},Tg(this.editModeDiv);const t=this.options.locales[this.options.locale],i=this._createButton("editMode","vis-edit vis-edit-mode",t.edit||this.options.locales.en.edit);this.editModeDiv.appendChild(i),this._bindElementEvents(i,zr(e=this.toggleEditMode).call(e,this))}_clean(){this.inMode=!1,!0===this.guiEnabled&&(Tg(this.editModeDiv),Tg(this.manipulationDiv),this._cleanupDOMEventListeners()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}_cleanupDOMEventListeners(){for(const t of eh(e=this._domEventListenerCleanupQueue).call(e,0)){var e;t()}}_removeManipulationDOM(){this._clean(),Tg(this.manipulationDiv),Tg(this.editModeDiv),Tg(this.closeDiv),this.manipulationDiv&&this.canvas.frame.removeChild(this.manipulationDiv),this.editModeDiv&&this.canvas.frame.removeChild(this.editModeDiv),this.closeDiv&&this.canvas.frame.removeChild(this.closeDiv),this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0}_createSeperator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.manipulationDOM["seperatorLineDiv"+e]=document.createElement("div"),this.manipulationDOM["seperatorLineDiv"+e].className="vis-separator-line",this.manipulationDiv.appendChild(this.manipulationDOM["seperatorLineDiv"+e])}_createAddNodeButton(e){var t;const i=this._createButton("addNode","vis-add",e.addNode||this.options.locales.en.addNode);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,zr(t=this.addNodeMode).call(t,this))}_createAddEdgeButton(e){var t;const i=this._createButton("addEdge","vis-connect",e.addEdge||this.options.locales.en.addEdge);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,zr(t=this.addEdgeMode).call(t,this))}_createEditNodeButton(e){var t;const i=this._createButton("editNode","vis-edit",e.editNode||this.options.locales.en.editNode);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,zr(t=this.editNode).call(t,this))}_createEditEdgeButton(e){var t;const i=this._createButton("editEdge","vis-edit",e.editEdge||this.options.locales.en.editEdge);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,zr(t=this.editEdgeMode).call(t,this))}_createDeleteButton(e){var t;let i;i=this.options.rtl?"vis-delete-rtl":"vis-delete";const r=this._createButton("delete",i,e.del||this.options.locales.en.del);this.manipulationDiv.appendChild(r),this._bindElementEvents(r,zr(t=this.deleteSelected).call(t,this))}_createBackButton(e){var t;const i=this._createButton("back","vis-back",e.back||this.options.locales.en.back);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,zr(t=this.showManipulatorToolbar).call(t,this))}_createButton(e,t,i){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"vis-label";return this.manipulationDOM[e+"Div"]=document.createElement("button"),this.manipulationDOM[e+"Div"].className="vis-button "+t,this.manipulationDOM[e+"Label"]=document.createElement("div"),this.manipulationDOM[e+"Label"].className=r,this.manipulationDOM[e+"Label"].innerText=i,this.manipulationDOM[e+"Div"].appendChild(this.manipulationDOM[e+"Label"]),this.manipulationDOM[e+"Div"]}_createDescription(e){this.manipulationDOM.descriptionLabel=document.createElement("div"),this.manipulationDOM.descriptionLabel.className="vis-none",this.manipulationDOM.descriptionLabel.innerText=e,this.manipulationDiv.appendChild(this.manipulationDOM.descriptionLabel)}_temporaryBindEvent(e,t){this.temporaryEventFunctions.push({event:e,boundFunction:t}),this.body.emitter.on(e,t)}_temporaryBindUI(e,t){if(void 0===this.body.eventListeners[e])throw new Error("This UI function does not exist. Typo? You tried: "+e+" possible are: "+Bp(ed(this.body.eventListeners)));this.temporaryUIFunctions[e]=this.body.eventListeners[e],this.body.eventListeners[e]=t}_unbindTemporaryUIs(){for(const e in this.temporaryUIFunctions)Object.prototype.hasOwnProperty.call(this.temporaryUIFunctions,e)&&(this.body.eventListeners[e]=this.temporaryUIFunctions[e],delete this.temporaryUIFunctions[e]);this.temporaryUIFunctions={}}_unbindTemporaryEvents(){for(let e=0;e{i.destroy()});const r=e=>{let{keyCode:i,key:r}=e;"Enter"!==r&&" "!==r&&13!==i&&32!==i||t()};e.addEventListener("keyup",r,!1),this._domEventListenerCleanupQueue.push(()=>{e.removeEventListener("keyup",r,!1)})}_cleanupTemporaryNodesAndEdges(){for(let n=0;n=0;o--)if(n[o]!==this.selectedControlNode.id){s=this.body.nodes[n[o]];break}if(void 0!==s&&void 0!==this.selectedControlNode)if(!0===s.isCluster)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{const e=this.body.nodes[this.temporaryIds.nodes[0]];this.selectedControlNode.id===e.id?this._performEditEdge(s.id,r.to.id):this._performEditEdge(r.from.id,s.id)}else r.updateEdgeType(),this.body.emitter.emit("restorePhysics");this.body.emitter.emit("_redraw")}_handleConnect(e){if((new Date).valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(e.center),this.lastTouch.translation=vr({},this.body.view.translation),this.interactionHandler.drag.pointer=this.lastTouch,this.interactionHandler.drag.translation=this.lastTouch.translation;const t=this.lastTouch,i=this.selectionHandler.getNodeAt(t);if(void 0!==i)if(!0===i.isCluster)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{const e=this._getNewTargetNode(i.x,i.y);this.body.nodes[e.id]=e,this.body.nodeIndices.push(e.id);const t=this.body.functions.createEdge({id:"connectionEdge"+kj(),from:i.id,to:e.id,physics:!1,smooth:{enabled:!0,type:"continuous",roundness:.5}});this.body.edges[t.id]=t,this.body.edgeIndices.push(t.id),this.temporaryIds.nodes.push(e.id),this.temporaryIds.edges.push(t.id)}this.touchTime=(new Date).valueOf()}}_dragControlNode(e){const t=this.body.functions.getPointer(e.center),i=this.selectionHandler._pointerToPositionObject(t);let r;void 0!==this.temporaryIds.edges[0]&&(r=this.body.edges[this.temporaryIds.edges[0]].fromId);const n=this.selectionHandler._getAllNodesOverlappingWith(i);let s;for(let a=n.length-1;a>=0;a--){var o;if(-1===Ap(o=this.temporaryIds.nodes).call(o,n[a])){s=this.body.nodes[n[a]];break}}if(e.controlEdge={from:r,to:s?s.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragging",e,t),void 0!==this.temporaryIds.nodes[0]){const e=this.body.nodes[this.temporaryIds.nodes[0]];e.x=this.canvas._XconvertDOMtoCanvas(t.x),e.y=this.canvas._YconvertDOMtoCanvas(t.y),this.body.emitter.emit("_redraw")}else this.interactionHandler.onDrag(e)}_finishConnect(e){const t=this.body.functions.getPointer(e.center),i=this.selectionHandler._pointerToPositionObject(t);let r;void 0!==this.temporaryIds.edges[0]&&(r=this.body.edges[this.temporaryIds.edges[0]].fromId);const n=this.selectionHandler._getAllNodesOverlappingWith(i);let s;for(let a=n.length-1;a>=0;a--){var o;if(-1===Ap(o=this.temporaryIds.nodes).call(o,n[a])){s=this.body.nodes[n[a]];break}}this._cleanupTemporaryNodesAndEdges(),void 0!==s&&(!0===s.isCluster?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):void 0!==this.body.nodes[r]&&void 0!==this.body.nodes[s.id]&&this._performAddEdge(r,s.id)),e.controlEdge={from:r,to:s?s.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragEnd",e,t),this.body.emitter.emit("_redraw")}_dragStartEdge(e){const t=this.lastTouch;this.selectionHandler.generateClickEvent("dragStart",e,t,void 0,!0)}_performAddNode(e){const t={id:kj(),x:e.pointer.canvas.x,y:e.pointer.canvas.y,label:"new"};if("function"==typeof this.options.addNode){if(2!==this.options.addNode.length)throw this.showManipulatorToolbar(),new Error("The function for add does not support two arguments (data,callback)");this.options.addNode(t,e=>{null!=e&&"addNode"===this.inMode&&this.body.data.nodes.getDataSet().add(e),this.showManipulatorToolbar()})}else this.body.data.nodes.getDataSet().add(t),this.showManipulatorToolbar()}_performAddEdge(e,t){const i={from:e,to:t};if("function"==typeof this.options.addEdge){if(2!==this.options.addEdge.length)throw new Error("The function for connect does not support two arguments (data,callback)");this.options.addEdge(i,e=>{null!=e&&"addEdge"===this.inMode&&(this.body.data.edges.getDataSet().add(e),this.selectionHandler.unselectAll(),this.showManipulatorToolbar())})}else this.body.data.edges.getDataSet().add(i),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}_performEditEdge(e,t){const i={id:this.edgeBeingEditedId,from:e,to:t,label:this.body.data.edges.get(this.edgeBeingEditedId).label};let r=this.options.editEdge;if("object"==typeof r&&(r=r.editWithoutDrag),"function"==typeof r){if(2!==r.length)throw new Error("The function for edit does not support two arguments (data, callback)");r(i,e=>{null==e||"editEdge"!==this.inMode?(this.body.edges[i.id].updateEdgeType(),this.body.emitter.emit("_redraw"),this.showManipulatorToolbar()):(this.body.data.edges.getDataSet().update(e),this.selectionHandler.unselectAll(),this.showManipulatorToolbar())})}else this.body.data.edges.getDataSet().update(i),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}}const nT="string",sT="boolean",oT="number",aT="array",lT="object",cT=["arrow","bar","box","circle","crow","curve","diamond","image","inv_curve","inv_triangle","triangle","vee"],uT={borderWidth:{number:oT},borderWidthSelected:{number:oT,undefined:"undefined"},brokenImage:{string:nT,undefined:"undefined"},chosen:{label:{boolean:sT,function:"function"},node:{boolean:sT,function:"function"},__type__:{object:lT,boolean:sT}},color:{border:{string:nT},background:{string:nT},highlight:{border:{string:nT},background:{string:nT},__type__:{object:lT,string:nT}},hover:{border:{string:nT},background:{string:nT},__type__:{object:lT,string:nT}},__type__:{object:lT,string:nT}},opacity:{number:oT,undefined:"undefined"},fixed:{x:{boolean:sT},y:{boolean:sT},__type__:{object:lT,boolean:sT}},font:{align:{string:nT},color:{string:nT},size:{number:oT},face:{string:nT},background:{string:nT},strokeWidth:{number:oT},strokeColor:{string:nT},vadjust:{number:oT},multi:{boolean:sT,string:nT},bold:{color:{string:nT},size:{number:oT},face:{string:nT},mod:{string:nT},vadjust:{number:oT},__type__:{object:lT,string:nT}},boldital:{color:{string:nT},size:{number:oT},face:{string:nT},mod:{string:nT},vadjust:{number:oT},__type__:{object:lT,string:nT}},ital:{color:{string:nT},size:{number:oT},face:{string:nT},mod:{string:nT},vadjust:{number:oT},__type__:{object:lT,string:nT}},mono:{color:{string:nT},size:{number:oT},face:{string:nT},mod:{string:nT},vadjust:{number:oT},__type__:{object:lT,string:nT}},__type__:{object:lT,string:nT}},group:{string:nT,number:oT,undefined:"undefined"},heightConstraint:{minimum:{number:oT},valign:{string:nT},__type__:{object:lT,boolean:sT,number:oT}},hidden:{boolean:sT},icon:{face:{string:nT},code:{string:nT},size:{number:oT},color:{string:nT},weight:{string:nT,number:oT},__type__:{object:lT}},id:{string:nT,number:oT},image:{selected:{string:nT,undefined:"undefined"},unselected:{string:nT,undefined:"undefined"},__type__:{object:lT,string:nT}},imagePadding:{top:{number:oT},right:{number:oT},bottom:{number:oT},left:{number:oT},__type__:{object:lT,number:oT}},label:{string:nT,undefined:"undefined"},labelHighlightBold:{boolean:sT},level:{number:oT,undefined:"undefined"},margin:{top:{number:oT},right:{number:oT},bottom:{number:oT},left:{number:oT},__type__:{object:lT,number:oT}},mass:{number:oT},physics:{boolean:sT},scaling:{min:{number:oT},max:{number:oT},label:{enabled:{boolean:sT},min:{number:oT},max:{number:oT},maxVisible:{number:oT},drawThreshold:{number:oT},__type__:{object:lT,boolean:sT}},customScalingFunction:{function:"function"},__type__:{object:lT}},shadow:{enabled:{boolean:sT},color:{string:nT},size:{number:oT},x:{number:oT},y:{number:oT},__type__:{object:lT,boolean:sT}},shape:{string:["custom","ellipse","circle","database","box","text","image","circularImage","diamond","dot","star","triangle","triangleDown","square","icon","hexagon"]},ctxRenderer:{function:"function"},shapeProperties:{borderDashes:{boolean:sT,array:aT},borderRadius:{number:oT},interpolation:{boolean:sT},useImageSize:{boolean:sT},useBorderWithImage:{boolean:sT},coordinateOrigin:{string:["center","top-left"]},__type__:{object:lT}},size:{number:oT},title:{string:nT,dom:"dom",undefined:"undefined"},value:{number:oT,undefined:"undefined"},widthConstraint:{minimum:{number:oT},maximum:{number:oT},__type__:{object:lT,boolean:sT,number:oT}},x:{number:oT},y:{number:oT},__type__:{object:lT}},dT={configure:{enabled:{boolean:sT},filter:{boolean:sT,string:nT,array:aT,function:"function"},container:{dom:"dom"},showButton:{boolean:sT},__type__:{object:lT,boolean:sT,string:nT,array:aT,function:"function"}},edges:{arrows:{to:{enabled:{boolean:sT},scaleFactor:{number:oT},type:{string:cT},imageHeight:{number:oT},imageWidth:{number:oT},src:{string:nT},__type__:{object:lT,boolean:sT}},middle:{enabled:{boolean:sT},scaleFactor:{number:oT},type:{string:cT},imageWidth:{number:oT},imageHeight:{number:oT},src:{string:nT},__type__:{object:lT,boolean:sT}},from:{enabled:{boolean:sT},scaleFactor:{number:oT},type:{string:cT},imageWidth:{number:oT},imageHeight:{number:oT},src:{string:nT},__type__:{object:lT,boolean:sT}},__type__:{string:["from","to","middle"],object:lT}},endPointOffset:{from:{number:oT},to:{number:oT},__type__:{object:lT,number:oT}},arrowStrikethrough:{boolean:sT},background:{enabled:{boolean:sT},color:{string:nT},size:{number:oT},dashes:{boolean:sT,array:aT},__type__:{object:lT,boolean:sT}},chosen:{label:{boolean:sT,function:"function"},edge:{boolean:sT,function:"function"},__type__:{object:lT,boolean:sT}},color:{color:{string:nT},highlight:{string:nT},hover:{string:nT},inherit:{string:["from","to","both"],boolean:sT},opacity:{number:oT},__type__:{object:lT,string:nT}},dashes:{boolean:sT,array:aT},font:{color:{string:nT},size:{number:oT},face:{string:nT},background:{string:nT},strokeWidth:{number:oT},strokeColor:{string:nT},align:{string:["horizontal","top","middle","bottom"]},vadjust:{number:oT},multi:{boolean:sT,string:nT},bold:{color:{string:nT},size:{number:oT},face:{string:nT},mod:{string:nT},vadjust:{number:oT},__type__:{object:lT,string:nT}},boldital:{color:{string:nT},size:{number:oT},face:{string:nT},mod:{string:nT},vadjust:{number:oT},__type__:{object:lT,string:nT}},ital:{color:{string:nT},size:{number:oT},face:{string:nT},mod:{string:nT},vadjust:{number:oT},__type__:{object:lT,string:nT}},mono:{color:{string:nT},size:{number:oT},face:{string:nT},mod:{string:nT},vadjust:{number:oT},__type__:{object:lT,string:nT}},__type__:{object:lT,string:nT}},hidden:{boolean:sT},hoverWidth:{function:"function",number:oT},label:{string:nT,undefined:"undefined"},labelHighlightBold:{boolean:sT},length:{number:oT,undefined:"undefined"},physics:{boolean:sT},scaling:{min:{number:oT},max:{number:oT},label:{enabled:{boolean:sT},min:{number:oT},max:{number:oT},maxVisible:{number:oT},drawThreshold:{number:oT},__type__:{object:lT,boolean:sT}},customScalingFunction:{function:"function"},__type__:{object:lT}},selectionWidth:{function:"function",number:oT},selfReferenceSize:{number:oT},selfReference:{size:{number:oT},angle:{number:oT},renderBehindTheNode:{boolean:sT},__type__:{object:lT}},shadow:{enabled:{boolean:sT},color:{string:nT},size:{number:oT},x:{number:oT},y:{number:oT},__type__:{object:lT,boolean:sT}},smooth:{enabled:{boolean:sT},type:{string:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"]},roundness:{number:oT},forceDirection:{string:["horizontal","vertical","none"],boolean:sT},__type__:{object:lT,boolean:sT}},title:{string:nT,undefined:"undefined"},width:{number:oT},widthConstraint:{maximum:{number:oT},__type__:{object:lT,boolean:sT,number:oT}},value:{number:oT,undefined:"undefined"},__type__:{object:lT}},groups:{useDefaultGroups:{boolean:sT},__any__:uT,__type__:{object:lT}},interaction:{dragNodes:{boolean:sT},dragView:{boolean:sT},hideEdgesOnDrag:{boolean:sT},hideEdgesOnZoom:{boolean:sT},hideNodesOnDrag:{boolean:sT},hover:{boolean:sT},keyboard:{enabled:{boolean:sT},speed:{x:{number:oT},y:{number:oT},zoom:{number:oT},__type__:{object:lT}},bindToWindow:{boolean:sT},autoFocus:{boolean:sT},__type__:{object:lT,boolean:sT}},multiselect:{boolean:sT},navigationButtons:{boolean:sT},selectable:{boolean:sT},selectConnectedEdges:{boolean:sT},hoverConnectedEdges:{boolean:sT},tooltipDelay:{number:oT},zoomView:{boolean:sT},zoomSpeed:{number:oT},__type__:{object:lT}},layout:{randomSeed:{undefined:"undefined",number:oT,string:nT},improvedLayout:{boolean:sT},clusterThreshold:{number:oT},hierarchical:{enabled:{boolean:sT},levelSeparation:{number:oT},nodeSpacing:{number:oT},treeSpacing:{number:oT},blockShifting:{boolean:sT},edgeMinimization:{boolean:sT},parentCentralization:{boolean:sT},direction:{string:["UD","DU","LR","RL"]},sortMethod:{string:["hubsize","directed"]},shakeTowards:{string:["leaves","roots"]},__type__:{object:lT,boolean:sT}},__type__:{object:lT}},manipulation:{enabled:{boolean:sT},initiallyActive:{boolean:sT},addNode:{boolean:sT,function:"function"},addEdge:{boolean:sT,function:"function"},editNode:{function:"function"},editEdge:{editWithoutDrag:{function:"function"},__type__:{object:lT,boolean:sT,function:"function"}},deleteNode:{boolean:sT,function:"function"},deleteEdge:{boolean:sT,function:"function"},controlNodeStyle:uT,__type__:{object:lT,boolean:sT}},nodes:uT,physics:{enabled:{boolean:sT},barnesHut:{theta:{number:oT},gravitationalConstant:{number:oT},centralGravity:{number:oT},springLength:{number:oT},springConstant:{number:oT},damping:{number:oT},avoidOverlap:{number:oT},__type__:{object:lT}},forceAtlas2Based:{theta:{number:oT},gravitationalConstant:{number:oT},centralGravity:{number:oT},springLength:{number:oT},springConstant:{number:oT},damping:{number:oT},avoidOverlap:{number:oT},__type__:{object:lT}},repulsion:{centralGravity:{number:oT},springLength:{number:oT},springConstant:{number:oT},nodeDistance:{number:oT},damping:{number:oT},__type__:{object:lT}},hierarchicalRepulsion:{centralGravity:{number:oT},springLength:{number:oT},springConstant:{number:oT},nodeDistance:{number:oT},damping:{number:oT},avoidOverlap:{number:oT},__type__:{object:lT}},maxVelocity:{number:oT},minVelocity:{number:oT},solver:{string:["barnesHut","repulsion","hierarchicalRepulsion","forceAtlas2Based"]},stabilization:{enabled:{boolean:sT},iterations:{number:oT},updateInterval:{number:oT},onlyDynamicEdges:{boolean:sT},fit:{boolean:sT},__type__:{object:lT,boolean:sT}},timestep:{number:oT},adaptiveTimestep:{boolean:sT},wind:{x:{number:oT},y:{number:oT},__type__:{object:lT}},__type__:{object:lT,boolean:sT}},autoResize:{boolean:sT},clickToUse:{boolean:sT},locale:{string:nT},locales:{__any__:{any:"any"},__type__:{object:lT}},height:{string:nT},width:{string:nT},__type__:{object:lT}},hT={nodes:{borderWidth:[1,0,10,1],borderWidthSelected:[2,0,10,1],color:{border:["color","#2B7CE9"],background:["color","#97C2FC"],highlight:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]},hover:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]}},opacity:[0,0,1,.1],fixed:{x:!1,y:!1},font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[0,0,50,1],strokeColor:["color","#ffffff"]},hidden:!1,labelHighlightBold:!0,physics:!0,scaling:{min:[10,0,200,1],max:[30,0,200,1],label:{enabled:!1,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},shape:["ellipse","box","circle","database","diamond","dot","square","star","text","triangle","triangleDown","hexagon"],shapeProperties:{borderDashes:!1,borderRadius:[6,0,20,1],interpolation:!0,useImageSize:!1},size:[25,0,200,1]},edges:{arrows:{to:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},middle:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},from:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"}},endPointOffset:{from:[0,-10,10,1],to:[0,-10,10,1]},arrowStrikethrough:!0,color:{color:["color","#848484"],highlight:["color","#848484"],hover:["color","#848484"],inherit:["from","to","both",!0,!1],opacity:[1,0,1,.05]},dashes:!1,font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[2,0,50,1],strokeColor:["color","#ffffff"],align:["horizontal","top","middle","bottom"]},hidden:!1,hoverWidth:[1.5,0,5,.1],labelHighlightBold:!0,physics:!0,scaling:{min:[1,0,100,1],max:[15,0,100,1],label:{enabled:!0,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},selectionWidth:[1.5,0,5,.1],selfReferenceSize:[20,0,200,1],selfReference:{size:[20,0,200,1],angle:[Math.PI/2,-6*Math.PI,6*Math.PI,Math.PI/8],renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},smooth:{enabled:!0,type:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"],forceDirection:["horizontal","vertical","none"],roundness:[.5,0,1,.05]},width:[1,0,30,1]},layout:{hierarchical:{enabled:!1,levelSeparation:[150,20,500,5],nodeSpacing:[100,20,500,5],treeSpacing:[200,20,500,5],blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:["UD","DU","LR","RL"],sortMethod:["hubsize","directed"],shakeTowards:["leaves","roots"]}},interaction:{dragNodes:!0,dragView:!0,hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1,hover:!1,keyboard:{enabled:!1,speed:{x:[10,0,40,1],y:[10,0,40,1],zoom:[.02,0,.1,.005]},bindToWindow:!0,autoFocus:!0},multiselect:!1,navigationButtons:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0,tooltipDelay:[300,0,1e3,25],zoomView:!0,zoomSpeed:[1,.1,2,.1]},manipulation:{enabled:!1,initiallyActive:!1},physics:{enabled:!0,barnesHut:{theta:[.5,.1,1,.05],gravitationalConstant:[-2e3,-3e4,0,50],centralGravity:[.3,0,10,.05],springLength:[95,0,500,5],springConstant:[.04,0,1.2,.005],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},forceAtlas2Based:{theta:[.5,.1,1,.05],gravitationalConstant:[-50,-500,0,1],centralGravity:[.01,0,1,.005],springLength:[95,0,500,5],springConstant:[.08,0,1.2,.005],damping:[.4,0,1,.01],avoidOverlap:[0,0,1,.01]},repulsion:{centralGravity:[.2,0,10,.05],springLength:[200,0,500,5],springConstant:[.05,0,1.2,.005],nodeDistance:[100,0,500,5],damping:[.09,0,1,.01]},hierarchicalRepulsion:{centralGravity:[.2,0,10,.05],springLength:[100,0,500,5],springConstant:[.01,0,1.2,.005],nodeDistance:[120,0,500,5],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},maxVelocity:[50,0,150,1],minVelocity:[.1,.01,.5,.01],solver:["barnesHut","forceAtlas2Based","repulsion","hierarchicalRepulsion"],timestep:[.5,.01,1,.01],wind:{x:[0,-10,10,.1],y:[0,-10,10,.1]}}},pT=(e,t,i)=>{var r;return!(!_h(e).call(e,"physics")||!_h(r=hT.physics.solver).call(r,t)||i.physics.solver===t||"wind"===t)};var fT=Object.freeze({__proto__:null,allOptions:dT,configuratorHideOption:pT,configureOptions:hT});class mT{constructor(){}getDistances(e,t,i){const r={},n=e.edges;for(let o=0;o2&&void 0!==arguments[2]&&arguments[2];const r=this.distanceSolver.getDistances(this.body,e,t);this._createL_matrix(r),this._createK_matrix(r),this._createE_matrix();let n=0;const s=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3));let o=1e9,a=0,l=0,c=0,u=0,d=0;for(;o>.01&&n1&&d<5;)d+=1,this._moveNode(a,l,c),[u,l,c]=this._getEnergy(a)}_getHighestEnergyNode(e){const t=this.body.nodeIndices,i=this.body.nodes;let r=0,n=t[0],s=0,o=0;for(let a=0;athis.body.emitter.emit("_requestRedraw")),this.groups=new lw,this.canvas=new Ak(this.body),this.selectionHandler=new qS(this.body,this.canvas),this.interactionHandler=new Fk(this.body,this.canvas,this.selectionHandler),this.view=new Nk(this.body,this.canvas),this.renderer=new Tk(this.body,this.canvas),this.physics=new jk(this.body),this.layoutEngine=new iT(this.body),this.clustering=new Sk(this.body),this.manipulation=new rT(this.body,this.canvas,this.selectionHandler,this.interactionHandler),this.nodesHandler=new FC(this.body,this.images,this.groups,this.layoutEngine),this.edgesHandler=new fk(this.body,this.images,this.groups),this.body.modules.kamadaKawai=new gT(this.body,150,.05),this.body.modules.clustering=this.clustering,this.canvas._create(),this.setOptions(i),this.setData(t)}function bT(e){for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(e[t].redundant=e[t].used,e[t].used=[])}function vT(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t].redundant){for(let i=0;i0?(r=t[e].redundant[0],t[e].redundant.shift()):(r=document.createElementNS("http://www.w3.org/2000/svg",e),i.appendChild(r)):(r=document.createElementNS("http://www.w3.org/2000/svg",e),t[e]={used:[],redundant:[]},i.appendChild(r)),t[e].used.push(r),r}Xr(yT.prototype),yT.prototype.setOptions=function(e){if(null===e&&(e=void 0),void 0!==e){if(!0===yy.validate(e,dT)&&console.error("%cErrors have been found in the supplied options object.",gy),Ig(["locale","locales","clickToUse"],this.options,e),void 0!==e.locale&&(e.locale=function(e,t){try{const[r,n]=t.split(/[-_ /]/,2),s=null!=r?r.toLowerCase():null,o=null!=n?n.toUpperCase():null;if(s&&o){const t=s+"-"+o;if(Object.prototype.hasOwnProperty.call(e,t))return t;var i;console.warn(Nh(i="Unknown variant ".concat(o," of language ")).call(i,s,"."))}if(s){const t=s;if(Object.prototype.hasOwnProperty.call(e,t))return t;console.warn("Unknown language ".concat(s))}return console.warn("Unknown locale ".concat(t,", falling back to English.")),"en"}catch(e){return console.error(e),console.warn("Unexpected error while normalizing locale ".concat(t,", falling back to English.")),"en"}}(e.locales||this.options.locales,e.locale)),e=this.layoutEngine.setOptions(e.layout,e),this.canvas.setOptions(e),this.groups.setOptions(e.groups),this.nodesHandler.setOptions(e.nodes),this.edgesHandler.setOptions(e.edges),this.physics.setOptions(e.physics),this.manipulation.setOptions(e.manipulation,e,this.options),this.interactionHandler.setOptions(e.interaction),this.renderer.setOptions(e.interaction),this.selectionHandler.setOptions(e.interaction),void 0!==e.groups&&this.body.emitter.emit("refreshNodes"),"configure"in e&&(this.configurator||(this.configurator=new py(this,this.body.container,hT,this.canvas.pixelRatio,pT)),this.configurator.setOptions(e.configure)),this.configurator&&!0===this.configurator.options.enabled){const e={nodes:{},edges:{},layout:{},interaction:{},manipulation:{},physics:{},global:{}};Pg(e.nodes,this.nodesHandler.options),Pg(e.edges,this.edgesHandler.options),Pg(e.layout,this.layoutEngine.options),Pg(e.interaction,this.selectionHandler.options),Pg(e.interaction,this.renderer.options),Pg(e.interaction,this.interactionHandler.options),Pg(e.manipulation,this.manipulation.options),Pg(e.physics,this.physics.options),Pg(e.global,this.canvas.options),Pg(e.global,this.options),this.configurator.setModuleOptions(e)}void 0!==e.clickToUse?!0===e.clickToUse?void 0===this.activator&&(this.activator=new dy(this.canvas.frame),this.activator.on("change",()=>{this.body.emitter.emit("activate")})):(void 0!==this.activator&&(this.activator.destroy(),delete this.activator),this.body.emitter.emit("activate")):this.body.emitter.emit("activate"),this.canvas.setSize(),this.body.emitter.emit("startSimulation")}},yT.prototype._updateVisibleIndices=function(){const e=this.body.nodes,t=this.body.edges;this.body.nodeIndices=[],this.body.edgeIndices=[];for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(this.clustering._isClusteredNode(i)||!1!==e[i].options.hidden||this.body.nodeIndices.push(e[i].id));for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)){const r=t[i],n=e[r.fromId],s=e[r.toId],o=void 0!==n&&void 0!==s;!this.clustering._isClusteredEdge(i)&&!1===r.options.hidden&&o&&!1===n.options.hidden&&!1===s.options.hidden&&this.body.edgeIndices.push(r.id)}},yT.prototype.bindEventListeners=function(){this.body.emitter.on("_dataChanged",()=>{this.edgesHandler._updateState(),this.body.emitter.emit("_dataUpdated")}),this.body.emitter.on("_dataUpdated",()=>{this.clustering._updateState(),this._updateVisibleIndices(),this._updateValueRange(this.body.nodes),this._updateValueRange(this.body.edges),this.body.emitter.emit("startSimulation"),this.body.emitter.emit("_requestRedraw")})},yT.prototype.setData=function(e){if(this.body.emitter.emit("resetPhysics"),this.body.emitter.emit("_resetData"),this.selectionHandler.unselectAll(),e&&e.dot&&(e.nodes||e.edges))throw new SyntaxError('Data must contain either parameter "dot" or parameter pair "nodes" and "edges", but not both.');if(this.setOptions(e&&e.options),e&&e.dot){console.warn("The dot property has been deprecated. Please use the static convertDot method to convert DOT into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertDot(dotString);");const t=$y(e.dot);this.setData(t)}else if(e&&e.gephi){console.warn("The gephi property has been deprecated. Please use the static convertGephi method to convert gephi into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertGephi(gephiJson);");const t=Ky(e.gephi);this.setData(t)}else this.nodesHandler.setData(e&&e.nodes,!0),this.edgesHandler.setData(e&&e.edges,!0),this.body.emitter.emit("_dataChanged"),this.body.emitter.emit("_dataLoaded"),this.body.emitter.emit("initPhysics")},yT.prototype.destroy=function(){this.body.emitter.emit("destroy"),this.body.emitter.off(),this.off(),delete this.groups,delete this.canvas,delete this.selectionHandler,delete this.interactionHandler,delete this.view,delete this.renderer,delete this.physics,delete this.layoutEngine,delete this.clustering,delete this.manipulation,delete this.nodesHandler,delete this.edgesHandler,delete this.configurator,delete this.images;for(const e in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,e)&&delete this.body.nodes[e];for(const e in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,e)&&delete this.body.edges[e];Tg(this.body.container)},yT.prototype._updateValueRange=function(e){let t,i,r,n=0;for(t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const s=e[t].getValue();void 0!==s&&(i=void 0===i?s:Math.min(s,i),r=void 0===r?s:Math.max(s,r),n+=s)}if(void 0!==i&&void 0!==r)for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&e[t].setValueRange(i,r,n)},yT.prototype.isActive=function(){return!this.activator||this.activator.active},yT.prototype.setSize=function(){return this.canvas.setSize.apply(this.canvas,arguments)},yT.prototype.canvasToDOM=function(){return this.canvas.canvasToDOM.apply(this.canvas,arguments)},yT.prototype.DOMtoCanvas=function(){return this.canvas.DOMtoCanvas.apply(this.canvas,arguments)},yT.prototype.findNode=function(){return this.clustering.findNode.apply(this.clustering,arguments)},yT.prototype.isCluster=function(){return this.clustering.isCluster.apply(this.clustering,arguments)},yT.prototype.openCluster=function(){return this.clustering.openCluster.apply(this.clustering,arguments)},yT.prototype.cluster=function(){return this.clustering.cluster.apply(this.clustering,arguments)},yT.prototype.getNodesInCluster=function(){return this.clustering.getNodesInCluster.apply(this.clustering,arguments)},yT.prototype.clusterByConnection=function(){return this.clustering.clusterByConnection.apply(this.clustering,arguments)},yT.prototype.clusterByHubsize=function(){return this.clustering.clusterByHubsize.apply(this.clustering,arguments)},yT.prototype.updateClusteredNode=function(){return this.clustering.updateClusteredNode.apply(this.clustering,arguments)},yT.prototype.getClusteredEdges=function(){return this.clustering.getClusteredEdges.apply(this.clustering,arguments)},yT.prototype.getBaseEdge=function(){return this.clustering.getBaseEdge.apply(this.clustering,arguments)},yT.prototype.getBaseEdges=function(){return this.clustering.getBaseEdges.apply(this.clustering,arguments)},yT.prototype.updateEdge=function(){return this.clustering.updateEdge.apply(this.clustering,arguments)},yT.prototype.clusterOutliers=function(){return this.clustering.clusterOutliers.apply(this.clustering,arguments)},yT.prototype.getSeed=function(){return this.layoutEngine.getSeed.apply(this.layoutEngine,arguments)},yT.prototype.enableEditMode=function(){return this.manipulation.enableEditMode.apply(this.manipulation,arguments)},yT.prototype.disableEditMode=function(){return this.manipulation.disableEditMode.apply(this.manipulation,arguments)},yT.prototype.addNodeMode=function(){return this.manipulation.addNodeMode.apply(this.manipulation,arguments)},yT.prototype.editNode=function(){return this.manipulation.editNode.apply(this.manipulation,arguments)},yT.prototype.editNodeMode=function(){return console.warn("Deprecated: Please use editNode instead of editNodeMode."),this.manipulation.editNode.apply(this.manipulation,arguments)},yT.prototype.addEdgeMode=function(){return this.manipulation.addEdgeMode.apply(this.manipulation,arguments)},yT.prototype.editEdgeMode=function(){return this.manipulation.editEdgeMode.apply(this.manipulation,arguments)},yT.prototype.deleteSelected=function(){return this.manipulation.deleteSelected.apply(this.manipulation,arguments)},yT.prototype.getPositions=function(){return this.nodesHandler.getPositions.apply(this.nodesHandler,arguments)},yT.prototype.getPosition=function(){return this.nodesHandler.getPosition.apply(this.nodesHandler,arguments)},yT.prototype.storePositions=function(){return this.nodesHandler.storePositions.apply(this.nodesHandler,arguments)},yT.prototype.moveNode=function(){return this.nodesHandler.moveNode.apply(this.nodesHandler,arguments)},yT.prototype.getBoundingBox=function(){return this.nodesHandler.getBoundingBox.apply(this.nodesHandler,arguments)},yT.prototype.getConnectedNodes=function(e){return void 0!==this.body.nodes[e]?this.nodesHandler.getConnectedNodes.apply(this.nodesHandler,arguments):this.edgesHandler.getConnectedNodes.apply(this.edgesHandler,arguments)},yT.prototype.getConnectedEdges=function(){return this.nodesHandler.getConnectedEdges.apply(this.nodesHandler,arguments)},yT.prototype.startSimulation=function(){return this.physics.startSimulation.apply(this.physics,arguments)},yT.prototype.stopSimulation=function(){return this.physics.stopSimulation.apply(this.physics,arguments)},yT.prototype.stabilize=function(){return this.physics.stabilize.apply(this.physics,arguments)},yT.prototype.getSelection=function(){return this.selectionHandler.getSelection.apply(this.selectionHandler,arguments)},yT.prototype.setSelection=function(){return this.selectionHandler.setSelection.apply(this.selectionHandler,arguments)},yT.prototype.getSelectedNodes=function(){return this.selectionHandler.getSelectedNodeIds.apply(this.selectionHandler,arguments)},yT.prototype.getSelectedEdges=function(){return this.selectionHandler.getSelectedEdgeIds.apply(this.selectionHandler,arguments)},yT.prototype.getNodeAt=function(){const e=this.selectionHandler.getNodeAt.apply(this.selectionHandler,arguments);return void 0!==e&&void 0!==e.id?e.id:e},yT.prototype.getEdgeAt=function(){const e=this.selectionHandler.getEdgeAt.apply(this.selectionHandler,arguments);return void 0!==e&&void 0!==e.id?e.id:e},yT.prototype.selectNodes=function(){return this.selectionHandler.selectNodes.apply(this.selectionHandler,arguments)},yT.prototype.selectEdges=function(){return this.selectionHandler.selectEdges.apply(this.selectionHandler,arguments)},yT.prototype.unselectAll=function(){this.selectionHandler.unselectAll.apply(this.selectionHandler,arguments),this.selectionHandler.commitWithoutEmitting.apply(this.selectionHandler),this.redraw()},yT.prototype.redraw=function(){return this.renderer.redraw.apply(this.renderer,arguments)},yT.prototype.getScale=function(){return this.view.getScale.apply(this.view,arguments)},yT.prototype.getViewPosition=function(){return this.view.getViewPosition.apply(this.view,arguments)},yT.prototype.fit=function(){return this.view.fit.apply(this.view,arguments)},yT.prototype.moveTo=function(){return this.view.moveTo.apply(this.view,arguments)},yT.prototype.focus=function(){return this.view.focus.apply(this.view,arguments)},yT.prototype.releaseNode=function(){return this.view.releaseNode.apply(this.view,arguments)},yT.prototype.getOptionsFromConfigurator=function(){let e={};return this.configurator&&(e=this.configurator.getOptions.apply(this.configurator)),e};var xT=Object.freeze({__proto__:null,cleanupElements:vT,drawBar:function(e,t,i,r,n,s,o,a){if(0!=r){r<0&&(t-=r*=-1);const l=wT("rect",s,o);l.setAttributeNS(null,"x",e-.5*i),l.setAttributeNS(null,"y",t),l.setAttributeNS(null,"width",i),l.setAttributeNS(null,"height",r),l.setAttributeNS(null,"class",n),a&&l.setAttributeNS(null,"style",a)}},drawPoint:function(e,t,i,r,n,s){let o;if("circle"==i.style?(o=wT("circle",r,n),o.setAttributeNS(null,"cx",e),o.setAttributeNS(null,"cy",t),o.setAttributeNS(null,"r",.5*i.size)):(o=wT("rect",r,n),o.setAttributeNS(null,"x",e-.5*i.size),o.setAttributeNS(null,"y",t-.5*i.size),o.setAttributeNS(null,"width",i.size),o.setAttributeNS(null,"height",i.size)),void 0!==i.styles&&o.setAttributeNS(null,"style",i.styles),o.setAttributeNS(null,"class",i.className+" vis-point"),s){const i=wT("text",r,n);s.xOffset&&(e+=s.xOffset),s.yOffset&&(t+=s.yOffset),s.content&&(i.textContent=s.content),s.className&&i.setAttributeNS(null,"class",s.className+" vis-label"),i.setAttributeNS(null,"x",e),i.setAttributeNS(null,"y",t)}return o},getDOMElement:function(e,t,i,r){let n;return Object.prototype.hasOwnProperty.call(t,e)?t[e].redundant.length>0?(n=t[e].redundant[0],t[e].redundant.shift()):(n=document.createElement(e),void 0!==r?i.insertBefore(n,r):i.appendChild(n)):(n=document.createElement(e),t[e]={used:[],redundant:[]},void 0!==r?i.insertBefore(n,r):i.appendChild(n)),t[e].used.push(n),n},getSVGElement:wT,prepareElements:bT,resetElements:function(e){bT(e),vT(e),bT(e)}});const _T={Images:Zy,dotparser:Xy,gephiParser:Yy,allOptions:fT,convertDot:$y,convertGephi:Ky};var jT=Object.freeze({__proto__:null,DOMutil:xT,DataSet:Rj,DataView:Pj,Hammer:fy,Network:yT,Queue:Aj,data:Lj,keycharm:Rk,network:_T,util:by});t.DOMutil=xT,t.DataSet=Rj,t.DataView=Pj,t.Hammer=fy,t.Network=yT,t.Queue=Aj,t.data=Lj,t.default=jT,t.keycharm=Rk,t.network=_T,t.util=by,Object.defineProperty(t,"__esModule",{value:!0})}))}).call(this,i("a282"))},ffe5:function(e,t,i){"use strict";var r=i("b7d7"),n=i("7794"),s=i("8a19"),o=i("62e3"),a=i("f65b"),l=i("8fce"),c=i("3f2a"),u=i("289f"),d=i("5270"),h=TypeError,p=d((function(){[].keys().reduce((function(){}),void 0)})),f=!p&&c("reduce",h);r({target:"Iterator",proto:!0,real:!0,forced:p||f},{reduce:function(e){o(this);try{s(e)}catch(d){l(this,"throw",d)}var t=arguments.length<2,i=t?void 0:arguments[1];if(f)return u(f,this,t?[e]:[e,i]);var r=a(this),c=0;if(n(r,(function(r){t?(t=!1,i=r):i=e(i,r,c),c++}),{IS_RECORD:!0}),t)throw new h("Reduce of empty iterator with no initial value");return i}})}}]); //# sourceMappingURL=chunk-1ae86eb6.1a6de5854cd1d99ba42c.js.map