import{o as t,d as e,w as i,_ as o,e as a,x as n,f as s,t as r,L as l,H as c,a0 as h,i as d,h as p,F as u,v as f,a1 as g,I as y,N as m,M as x,a2 as b,K as w,J as S,Z as v,a3 as T,a4 as C,a5 as A,a6 as k,a7 as D,a8 as _,a9 as P,z as L,l as I,c as M,aa as F,ab as O,ac as E,a as R,ad as N,B as z,g as B,ae as U,af as j,ag as W,ah as H,r as J,s as q,A as K,E as V,ai as G,aj as X,ak as Y,G as Q,al as Z,am as $,an as tt,ao as et,ap as it,Q as ot,R as at,aq as nt,ar as st,as as rt,X as lt,at as ct,au as ht,av as dt,aw as pt,ax as ut,ay as ft}from"./index-Bg-cyXiH.js";import{_ as gt}from"./u-tabs.9ViAL-Wf.js";import{r as yt}from"./uni-app.es.CIL9UnT_.js";import{_ as mt}from"./_plugin-vue_export-helper.BCo6x5W8.js";import{_ as xt}from"./u-line.CrUvk0n9.js";import{r as bt}from"./resources.DipqUmnN.js";import{_ as wt}from"./u-image.D4wi5Rtn.js";import{_ as St}from"./u-icon.Dx5TB4KU.js";import{b as vt,c as Tt}from"./portal.BE8MhCWv.js";import{_ as Ct}from"./u-swipe-action.CNU4KaO4.js";import{L as At}from"./schedule.C2xp0sd2.js";import{_ as kt}from"./mp-html.DJfyC5vT.js";import{_ as Dt}from"./u-badge.BKfueaOb.js";import{g as _t}from"./flowEngine.CRx1JShP.js";import{g as Pt}from"./apply.BjPo65lp.js";const Lt=mt({name:"UniCard",emits:["click"],props:{title:{type:String,default:""},subTitle:{type:String,default:""},padding:{type:String,default:"10px"},margin:{type:String,default:"15px"},spacing:{type:String,default:"0 10px"},extra:{type:String,default:""},cover:{type:String,default:""},thumbnail:{type:String,default:""},isFull:{type:Boolean,default:!1},isShadow:{type:Boolean,default:!0},shadow:{type:String,default:"0px 0px 3px 1px rgba(0, 0, 0, 0.08)"},border:{type:Boolean,default:!0}},methods:{onClick(t){this.$emit("click",t)}}},[["render",function(u,f,g,y,m,x){const b=h,w=d,S=p;return t(),e(w,{class:c(["uni-card",{"uni-card--full":g.isFull,"uni-card--shadow":g.isShadow,"uni-card--border":g.border}]),style:l({margin:g.isFull?0:g.margin,padding:g.spacing,"box-shadow":g.isShadow?g.shadow:""})},{default:i((()=>[o(u.$slots,"cover",{},(()=>[g.cover?(t(),e(w,{key:0,class:"uni-card__cover"},{default:i((()=>[a(b,{class:"uni-card__cover-image",mode:"widthFix",onClick:f[0]||(f[0]=t=>x.onClick("cover")),src:g.cover},null,8,["src"])])),_:1})):n("",!0)]),!0),o(u.$slots,"title",{},(()=>[g.title||g.extra?(t(),e(w,{key:0,class:"uni-card__header"},{default:i((()=>[a(w,{class:"uni-card__header-box",onClick:f[1]||(f[1]=t=>x.onClick("title"))},{default:i((()=>[g.thumbnail?(t(),e(w,{key:0,class:"uni-card__header-avatar"},{default:i((()=>[a(b,{class:"uni-card__header-avatar-image",src:g.thumbnail,mode:"aspectFit"},null,8,["src"])])),_:1})):n("",!0),a(w,{class:"uni-card__header-content"},{default:i((()=>[a(S,{class:"uni-card__header-content-title uni-ellipsis"},{default:i((()=>[s(r(g.title),1)])),_:1}),g.title&&g.subTitle?(t(),e(S,{key:0,class:"uni-card__header-content-subtitle uni-ellipsis"},{default:i((()=>[s(r(g.subTitle),1)])),_:1})):n("",!0)])),_:1})])),_:1}),a(w,{class:"uni-card__header-extra",onClick:f[2]||(f[2]=t=>x.onClick("extra"))},{default:i((()=>[a(S,{class:"uni-card__header-extra-text"},{default:i((()=>[s(r(g.extra),1)])),_:1})])),_:1})])),_:1})):n("",!0)]),!0),a(w,{class:"uni-card__content",style:l({padding:g.padding}),onClick:f[3]||(f[3]=t=>x.onClick("content"))},{default:i((()=>[o(u.$slots,"default",{},void 0,!0)])),_:3},8,["style"]),a(w,{class:"uni-card__actions",onClick:f[4]||(f[4]=t=>x.onClick("actions"))},{default:i((()=>[o(u.$slots,"actions",{},void 0,!0)])),_:3})])),_:3},8,["class","style"])}],["__scopeId","data-v-b4135a35"]]);const It=mt({props:{cardData:{type:Object,default:()=>({title:"",viceTitle:"",card:{titleBgColor:"#fff",cardIcon:"",titleFontColor:"#6a6a6a",viceTitleFontColor:"#606266",titleFontSize:14,viceTitleFontSize:12,titleFontWeight:!1,cardRightBtn:"",titleLeft:"left"}})}},methods:{jump(){if("mp"===this.cardData.platform)return;let t;if(this.cardData.card.appLinkType)if(1!=this.cardData.card.appLinkType||8!=this.cardData.card.appType){if(1==this.cardData.card.appLinkType){let e={id:this.cardData.card.appModuleId,moduleId:this.cardData.card.appModuleId,urlAddress:this.cardData.card.appUrlAddress,...JSON.parse(this.cardData.card.appPropertyJson)};t=3==this.cardData.card.appType?"/pages/apply/dynamicModel/index?config="+this.jnpf.base64.encode(JSON.stringify(e)):2==this.cardData.card.appType?this.cardData.card.appUrlAddress+"?menuId="+this.cardData.card.appModuleId:"/pages/apply/externalLink/index?url="+encodeURIComponent(this.cardData.card.appUrlAddress)}else t="/pages/apply/externalLink/index?url="+encodeURIComponent(this.cardData.card.appUrlAddress);u({url:t,fail:t=>{this.$u.toast("暂无此页面")}})}else{let t=JSON.parse(this.cardData.card.appPropertyJson);u({url:"/pages/portal/scanPortal/index?id="+t.moduleId+"&protalType=1&fullName="+this.cardData.card.cardRightBtn||"",fail:t=>{}})}}}},[["render",function(h,p,u,m,x,b){const w=d,S=yt(f("uni-card"),Lt);return t(),e(w,{class:"card-v"},{default:i((()=>[a(S,{padding:"0px",margin:"0px",spacing:"0px",border:!1},g({default:i((()=>[a(w,{class:"card-actions"},{default:i((()=>[o(h.$slots,"content",{},void 0,!0)])),_:3})])),_:2},[u.cardData.title?{name:"title",fn:i((()=>[a(w,{class:"u-flex card-content",style:l({"background-color":u.cardData.card.titleBgColor})},{default:i((()=>[a(w,{class:"u-flex left",style:l({"justify-content":"left"===u.cardData.card.titleLeft?"flex-start":"right"===u.cardData.card.titleLeft?"flex-end":"center"})},{default:i((()=>[a(w,{class:"u-flex"},{default:i((()=>[a(w,{class:c(u.cardData.card.cardIcon?u.cardData.card.cardIcon:"icon"),style:l({color:u.cardData.card.cardIconColor})},null,8,["class","style"]),a(w,{class:"txt u-line-1",style:l({color:u.cardData.card.titleFontColor,"font-size":2*u.cardData.card.titleFontSize+"rpx","font-weight":u.cardData.card.titleFontWeight?700:400})},{default:i((()=>[s(r(u.cardData.title),1)])),_:1},8,["style"]),u.cardData.viceTitle?(t(),y("span",{key:0,class:"u-m-l-10",style:l({color:u.cardData.card.viceTitleFontColor,"font-size":2*u.cardData.card.viceTitleFontSize+"rpx"})},r(u.cardData.viceTitle),5)):n("",!0)])),_:1})])),_:1},8,["style"]),a(w,{class:"link",onClick:b.jump},{default:i((()=>[a(w,{class:"u-line-1",style:{color:"#2979ff"}},{default:i((()=>[s(r(u.cardData.card.cardRightBtn),1)])),_:1})])),_:1},8,["onClick"])])),_:1},8,["style"])])),key:"0"}:void 0]),1024)])),_:3})}],["__scopeId","data-v-158c2760"]]);const Mt=mt({props:{config:{type:Object,default:()=>{}}},data:()=>({option:{},propsApi:"",key:+new Date}),created(){this.init(),m("proRefresh"),x("proRefresh",(()=>{this.initData()}))},methods:{init(){this.initData(),!this.config.allRefresh.autoRefresh&&this.config.refresh.autoRefresh&&setInterval(this.initData,6e4*this.config.refresh.autoRefreshTime)},initData(){let t;if(this.option=JSON.parse(JSON.stringify(this.config.option)),t={width:"238rpx"},2==this.option.appStyleType&&(t.width=100/this.option.appRowNumber+"%",this.option.appShowBorder&&(t["border-right"]="2rpx solid #f0f2f6",t["border-bottom"]="2rpx solid #f0f2f6")),this.option.style=t,this.option.appDefaultValue=this.option.appDefaultValue.filter((t=>!t.noShow)),"dynamic"==this.config.dataType){for(let e=0;e{for(let e=0;e{}})}if(!t.urlAddress)return;e="/pages/apply/externalLink/index?url="+encodeURIComponent(t.urlAddress)+"&fullName= "+t.fullName}u({url:e,fail:t=>{}})}}},[["render",function(o,n,h,u,f,g){const m=d,x=p;return t(),e(m,{class:"HTodo-v",key:f.key},{default:i((()=>[a(m,{class:"HTodo-box u-flex"},{default:i((()=>[a(m,{class:"HTodo-list u-flex",style:l({"flex-wrap":1==f.option.appStyleType?"nowrap":"wrap"})},{default:i((()=>[(t(!0),y(w,null,S(f.option.appDefaultValue,((o,n)=>(t(),e(m,{class:"u-flex-col HTodo-list-item",key:n,onClick:t=>g.jump(o),style:l(f.option.style)},{default:i((()=>[a(m,{class:"u-m-b-8"},{default:i((()=>[a(m,{class:c([o.icon,"icon"]),style:l({"background-color":o.iconColor||o.iconBgColor||"#008cff"})},null,8,["class","style"])])),_:2},1024),a(m,{class:"u-line-1 title",style:l({"font-size":f.option.labelFontSize,color:f.option.labelFontColor,"font-weight":f.option.labelFontWeight?700:400})},{default:i((()=>[s(r(o.fullName),1)])),_:2},1032,["style"]),a(m,{class:"u-line-1 title",style:l({"font-size":f.option.valueFontSize,color:f.option.valueFontColor,"font-weight":f.option.valueFontWeight?700:400})},{default:i((()=>[s(r(o.num+" ")+" ",1),a(x,{style:l({"font-size":f.option.unitFontSize,color:f.option.unitFontColor,"font-weight":f.option.unitFontWeight?700:400})},{default:i((()=>[s(r(o.unit),1)])),_:2},1032,["style"])])),_:2},1032,["style"])])),_:2},1032,["onClick","style"])))),128))])),_:1},8,["style"])])),_:1})])),_:1})}],["__scopeId","data-v-86b3623a"]]);const Ft=mt({props:{config:{type:Object,required:!0}},data:()=>({icon:bt.message.nodata,option:{},propsApi:""}),created(){this.init()},methods:{jump(t){this.jnpf.solveAddressParam(t,this.config),this.jnpf.jumpLink(t.urlAddress)},init(){this.initData(),this.config.refresh.autoRefresh&&setInterval(this.initData,6e4*this.config.refresh.autoRefreshTime)},initData(){if("dynamic"===this.config.dataType){if(!this.config.propsApi)return;const t={paramList:this.config.templateJson};b(this.config.propsApi,t).then((t=>{this.config.option.defaultValue=t.data||[],this.handleAttrs()}))}else this.handleAttrs()},handleAttrs(){this.option=this.config.option,this.option.defaultValue=this.option.defaultValue.slice(0,this.option.appCount||50)}}},[["render",function(o,c,u,g,m,x){const b=p,C=yt(f("u-line"),xt),A=T,k=h,D=d;return t(),e(D,{class:"tabs-v"},{default:i((()=>[m.option.defaultValue&&m.option.defaultValue.length?(t(),e(A,{key:0,"scroll-y":"true",style:l(m.option.defaultValue<5?"":"height: 620rpx")},{default:i((()=>[(t(!0),y(w,null,S(m.option.defaultValue,((o,c)=>(t(),y("div",{key:c},[v("div",{class:"app-title"},[(t(!0),y(w,null,S(m.option.appColumnList,((c,h)=>(t(),y("div",{class:"name",key:h,style:{},onClick:t=>x.jump(o)},[m.option.showName?(t(),e(b,{key:0,style:l({"font-weight":m.option.nameFontWeight?"bolder":"normal","font-size":m.option.nameFontSize+"px",color:m.option.nameFontColor})},{default:i((()=>[s(r(c.fullName)+":",1)])),_:2},1032,["style"])):n("",!0),a(b,{style:l({"font-weight":m.option.dataFontWeight?"bolder":"normal","font-size":m.option.dataFontSize+"px",color:m.option.dataFontColor})},{default:i((()=>[s(r(o[c.filedName]),1)])),_:2},1032,["style"])],8,["onClick"])))),128)),c[a(D,{class:"u-flex-col notData-inner"},{default:i((()=>[a(k,{src:m.icon,mode:"",class:"iconImg"},null,8,["src"]),a(b,{class:"notData-inner-text"},{default:i((()=>[s("暂无数据")])),_:1})])),_:1})])),_:1}))])),_:1})}],["__scopeId","data-v-abd28845"]]);const Ot=mt({components:{},props:{config:{type:Object,default:()=>{}}},data:()=>({list:[],typeList:[],icon:bt.message.nodata,gg:"/app/assets/gg-CuhGXEF6.png",tz:"/app/assets/tz-1tVcM39H.png"}),created(){this.init(),m("proRefresh"),x("proRefresh",(()=>{this.initData()}))},methods:{init(){this.option=JSON.parse(JSON.stringify(this.config.option)),this.initData(),!this.config.allRefresh.autoRefresh&&this.config.refresh.autoRefresh&&setInterval(this.getData,6e4*this.config.refresh.autoRefreshTime)},readInfo(t){"mp"!==this.config.platform&&u({url:"/pages/message/messageDetail/index?id="+t.id,fail:t=>{this.$u.toast("暂无此页面")}})},initData(){this.getData()},getData(){this.option.appColumnList.forEach(((t,e)=>{t.classify&&t.classify.length&&(this.typeList=t.classify)})),function(t){return C({url:"/api/visualdev/Dashboard/Notice",method:"post",data:t,options:{load:!1}})}({typeList:this.typeList}).then((t=>{let e=JSON.parse(JSON.stringify(t.data.list))||[];this.list=e.slice(0,this.option.appCount||50)}))}}},[["render",function(o,c,u,g,m,x){const b=yt(f("u-image"),wt),v=d,T=p,C=h;return t(),e(v,{class:"notice-v"},{default:i((()=>[m.list.length?(t(!0),y(w,{key:0},S(m.list,((c,h)=>(t(),e(v,{class:"item-box u-p-l-20 u-p-r-20",key:h},{default:i((()=>[1==o.option.appStyleType?(t(),e(v,{key:0,class:"u-flex item u-m-t-20 u-p-b-20",onClick:t=>x.readInfo(c),style:l({"border-bottom":h==m.list.length-1?"none":"2rpx solid #f0f2f6"})},{default:i((()=>[a(v,{class:"img-box"},{default:i((()=>["公告"==c.category?(t(),e(b,{key:0,width:"90rpx",height:"90rpx",shape:"circle",src:c.coverImage?o.define.baseURL+c.coverImage:m.gg},null,8,["src"])):(t(),e(b,{key:1,width:"90rpx",height:"90rpx",shape:"circle",src:c.coverImage?o.define.baseURL+c.coverImage:m.tz},null,8,["src"]))])),_:2},1024),a(v,{class:"u-p-l-20 item-right"},{default:i((()=>[a(v,{class:"u-flex u-m-b-20"},{default:i((()=>[o.option.appColumnList[0].show?(t(),e(T,{key:0,class:"notice-type u-p-l-10 u-p-r-10 u-font-24",style:l({color:"公告"==c.category?"#9a00f3":"#1448f4","background-color":"公告"==c.category?"#ebe6ff":"#e5ebfe"})},{default:i((()=>[s(r(c.category),1)])),_:2},1032,["style"])):n("",!0),o.option.appColumnList[1].show?(t(),e(v,{key:1,class:"u-line-1 u-p-l-10 u-p-r-10 name",style:l({"font-size":2*o.option.appColumnList[1].fontSize+"rpx","font-weight":o.option.appColumnList[1].fontWeight?"700":"400",color:o.option.appColumnList[1].fontColor})},{default:i((()=>[s(r(c.fullName),1)])),_:2},1032,["style"])):n("",!0),o.option.appColumnList[3].show&&1==o.option.appColumnList[3].timeClassify?(t(),e(T,{key:2,class:"time",style:l({"font-size":2*o.option.appColumnList[3].fontSize+"rpx","font-weight":o.option.appColumnList[3].fontWeight?"700":"400",color:o.option.appColumnList[3].fontColor})},{default:i((()=>[s(r(o.$u.timeFormat(c.creatorTime,"mm-dd hh:MM")),1)])),_:2},1032,["style"])):n("",!0),o.option.appColumnList[3].show&&2==o.option.appColumnList[3].timeClassify?(t(),e(T,{key:3,class:"time",style:l({"font-size":2*o.option.appColumnList[3].fontSize+"rpx","font-weight":o.option.appColumnList[3].fontWeight?"700":"400",color:o.option.appColumnList[3].fontColor})},{default:i((()=>[s(r(o.$u.timeFormat(c.releaseTime,"mm-dd hh:MM")),1)])),_:2},1032,["style"])):n("",!0)])),_:2},1024),o.option.appColumnList[2].show?(t(),e(v,{key:0,class:"u-line-1 u-p-r-10 content2 u-m-t-20",style:l({"font-size":2*o.option.appColumnList[2].fontSize+"rpx","font-weight":o.option.appColumnList[1].fontWeight?"700":"400",color:o.option.appColumnList[2].fontColor})},{default:i((()=>[s(r(c.excerpt),1)])),_:2},1032,["style"])):n("",!0)])),_:2},1024)])),_:2},1032,["onClick","style"])):n("",!0),2==o.option.appStyleType?(t(),e(v,{key:1,class:"u-flex item u-m-t-20 u-p-b-20",onClick:t=>x.readInfo(c),style:l({"border-bottom":h==m.list.length-1?"none":"2rpx solid #f0f2f6"})},{default:i((()=>[a(v,{class:"img-box"},{default:i((()=>["公告"==c.category?(t(),e(b,{key:0,width:"90rpx",height:"90rpx",shape:"circle",src:c.coverImage?o.define.baseURL+c.coverImage:m.gg},null,8,["src"])):(t(),e(b,{key:1,width:"90rpx",height:"90rpx",shape:"circle",src:c.coverImage?o.define.baseURL+c.coverImage:m.tz},null,8,["src"]))])),_:2},1024),a(v,{class:"u-p-l-20 u-flex-col",style:{flex:"1"}},{default:i((()=>[a(v,{class:"u-flex u-m-b-10",style:{width:"100%",height:"100%"}},{default:i((()=>[o.option.appColumnList[0].show?(t(),e(v,{key:0,class:"notice-type u-p-l-10 u-p-r-10 u-font-24",style:l({color:"公告"==c.category?"#9a00f3":"#1448f4","background-color":"公告"==c.category?"#ebe6ff":"#e5ebfe"})},{default:i((()=>[s(r("公告"==c.category?"公告":"通知"),1)])),_:2},1032,["style"])):n("",!0),o.option.appColumnList[1].show?(t(),e(v,{key:1,class:"u-line-1 u-p-l-10 u-p-r-10 name",style:l({"font-size":2*o.option.appColumnList[1].fontSize+"rpx","font-weight":o.option.appColumnList[1].fontWeight?"700":"400",color:o.option.appColumnList[1].fontColor})},{default:i((()=>[s(r(c.fullName),1)])),_:2},1032,["style"])):n("",!0)])),_:2},1024),o.option.appColumnList[2].show?(t(),e(v,{key:0,class:"u-line-1 u-p-r-10 content2",style:l({"font-size":2*o.option.appColumnList[2].fontSize+"rpx","font-weight":o.option.appColumnList[1].fontWeight?"700":"400",color:o.option.appColumnList[2].fontColor})},{default:i((()=>[s(r(c.excerpt),1)])),_:2},1032,["style"])):n("",!0),a(v,{class:""},{default:i((()=>[a(T,{style:l({"font-size":2*o.option.appColumnList[4].fontSize+"rpx","font-weight":o.option.appColumnList[4].fontWeight?"700":"400",color:o.option.appColumnList[4].fontColor})},{default:i((()=>[s(r(2==o.option.appColumnList[4].userClassify?c.releaseUser:c.creatorUser),1)])),_:2},1032,["style"]),o.option.appColumnList[3].show&&1==o.option.appColumnList[3].timeClassify?(t(),e(T,{key:0,class:"time",style:l({"font-size":2*o.option.appColumnList[3].fontSize+"rpx","font-weight":o.option.appColumnList[3].fontWeight?"700":"400",color:o.option.appColumnList[3].fontColor})},{default:i((()=>[s(r(o.$u.timeFormat(c.creatorTime,"mm-dd hh:MM")),1)])),_:2},1032,["style"])):n("",!0),o.option.appColumnList[3].show&&2==o.option.appColumnList[3].timeClassify?(t(),e(T,{key:1,class:"time",style:l({"font-size":2*o.option.appColumnList[3].fontSize+"rpx","font-weight":o.option.appColumnList[3].fontWeight?"700":"400",color:o.option.appColumnList[3].fontColor})},{default:i((()=>[s(r(o.$u.timeFormat(c.releaseTime,"mm-dd hh:MM")),1)])),_:2},1032,["style"])):n("",!0)])),_:2},1024)])),_:2},1024)])),_:2},1032,["onClick","style"])):n("",!0),3==o.option.appStyleType?(t(),e(v,{key:2,class:"u-flex item u-m-t-20 u-p-b-20",onClick:t=>x.readInfo(c),style:l({"border-bottom":h==m.list.length-1?"none":"2rpx solid #f0f2f6"})},{default:i((()=>[o.option.appColumnList[0].show?(t(),e(T,{key:0,class:"notice-type u-p-l-10 u-p-r-10 u-font-24",style:l({color:"公告"==c.category?"#9a00f3":"#1448f4","background-color":"公告"==c.category?"#ebe6ff":"#e5ebfe"})},{default:i((()=>[s(r("公告"==c.category?"公告":"通知"),1)])),_:2},1032,["style"])):n("",!0),o.option.appColumnList[1].show?(t(),e(T,{key:1,class:"u-line-1 u-p-l-20 u-p-r-10 content",style:l({"font-size":2*o.option.appColumnList[1].fontSize+"rpx","font-weight":o.option.appColumnList[1].fontWeight?"700":"400",color:o.option.appColumnList[1].fontColor})},{default:i((()=>[s(r(c.fullName),1)])),_:2},1032,["style"])):n("",!0),o.option.appColumnList[3].show?(t(),e(v,{key:2},{default:i((()=>[1==o.option.appColumnList[3].timeClassify?(t(),e(T,{key:0,class:"time",style:l({"font-size":2*o.option.appColumnList[3].fontSize+"rpx","font-weight":o.option.appColumnList[3].fontWeight?"700":"400",color:o.option.appColumnList[3].fontColor})},{default:i((()=>[s(r(o.$u.timeFormat(c.creatorTime,"mm-dd hh:MM")),1)])),_:2},1032,["style"])):(t(),e(T,{key:1,class:"time",style:l({"font-size":2*o.option.appColumnList[3].fontSize+"rpx","font-weight":o.option.appColumnList[3].fontWeight?"700":"400",color:o.option.appColumnList[3].fontColor})},{default:i((()=>[s(r(o.$u.timeFormat(c.releaseTime,"mm-dd hh:MM")),1)])),_:2},1032,["style"]))])),_:2},1024)):n("",!0)])),_:2},1032,["onClick","style"])):n("",!0)])),_:2},1024)))),128)):(t(),e(v,{key:1,class:"notData-box u-flex-col"},{default:i((()=>[a(v,{class:"u-flex-col notData-inner"},{default:i((()=>[a(C,{src:m.icon,mode:"",class:"iconImg"},null,8,["src"]),a(T,{class:"notData-inner-text"},{default:i((()=>[s("暂无数据")])),_:1})])),_:1})])),_:1}))])),_:1})}],["__scopeId","data-v-42e9d7ac"]]);const Et=mt({props:{config:{type:Object,default:()=>{}}},data:()=>({list:[],icon:bt.message.nodata}),created(){this.getData()},methods:{getData(){C({url:"/api/visualdev/Dashboard/Email",method:"get",options:{load:!1}}).then((t=>{this.list=t.data.list.slice(0,7)}))}}},[["render",function(o,n,l,c,u,f){const g=h,m=p,x=d;return t(),e(x,{class:"portal-todoList-box-body"},{default:i((()=>[u.list.length?(t(!0),y(w,{key:0},S(u.list,((e,i)=>(t(),y("a",{class:"item com-hover",key:i},[v("span",{class:"name"},r(e.fullName),1),v("span",{class:"time"},r(e.creatorTime|o.date("yyyy-mm-dd")),1)])))),128)):(t(),e(x,{key:1,class:"notData-box u-flex-col"},{default:i((()=>[a(x,{class:"u-flex-col notData-inner"},{default:i((()=>[a(g,{src:u.icon,mode:"",class:"iconImg"},null,8,["src"]),a(m,{class:"notData-inner-text"},{default:i((()=>[s("暂无数据")])),_:1})])),_:1})])),_:1}))])),_:1})}],["__scopeId","data-v-3c5f1c59"]]);const Rt=mt({components:{},props:{config:{type:Object,default:()=>{}}},data:()=>({list:[],icon:bt.message.nodata}),created(){this.getData()},methods:{getData(){C({url:"/api/visualdev/Dashboard/FlowTodo",method:"get",options:{load:!1}}).then((t=>{this.list=t.data.list.slice(0,7)}))},goDetail(t){if("mp"===this.config.platform)return;let e={creatorTime:t.creatorTime,enCode:t.enCode,flowId:t.flowId,formType:t.formType,fullName:t.fullName,id:t.processId,processId:t.processId,status:t.status,taskNodeId:t.taskNodeId,taskId:t.taskOperatorId,type:t.type,opType:1};u({url:"/pages/workFlow/flowBefore/index?config="+this.jnpf.base64.encode(JSON.stringify(e))})}}},[["render",function(o,n,l,c,u,f){const g=h,m=p,x=d;return t(),y("div",{class:"portal-todoList-box-body"},[u.list.length?(t(!0),y(w,{key:0},S(u.list,((e,i)=>(t(),y("a",{class:"item com-hover",onClick:t=>f.goDetail(e),key:i},[v("span",{class:"name"},r(e.fullName),1),v("span",{class:"time"},r(o.$u.timeFormat(e.creatorTime)),1)],8,["onClick"])))),128)):(t(),e(x,{key:1,class:"notData-box u-flex-col"},{default:i((()=>[a(x,{class:"u-flex-col notData-inner"},{default:i((()=>[a(g,{src:u.icon,mode:"",class:"iconImg"},null,8,["src"]),a(m,{class:"notData-inner-text"},{default:i((()=>[s("暂无数据")])),_:1})])),_:1})])),_:1}))])}],["__scopeId","data-v-f2d62505"]]),Nt={easycom:{autoscan:!0,custom:{"^Jnpf(.*)":"@/components/Jnpf/$1/index.vue","^jnpf-(.*)":"@/components/Jnpf/$1/index.vue"}},pages:[{path:"pages/launch/index",style:{"app-plus":{titleNView:!1,bounce:"none"}}},{path:"pages/login/index",style:{navigationStyle:"custom","app-plus":{titleNView:!1,bounce:"none"}}},{path:"pages/login/qywxLogin",style:{navigationStyle:"custom","app-plus":{titleNView:!1,bounce:"none"}}},{path:"pages/login/sso-redirect",style:{navigationStyle:"custom",navigationBarTextStyle:"black"}},{path:"pages/login/scanLogin",style:{navigationBarTitleText:"扫码登录"}},{path:"pages/login/otherLogin",style:{navigationBarTitleText:""}},{path:"pages/index/index",style:{navigationStyle:"custom",navigationBarTextStyle:"black"}},{path:"pages/index/message",style:{navigationBarTitleText:"智慧党建"}},{path:"pages/index/workFlow",style:{navigationBarTitleText:"智慧党建"}},{path:"pages/index/apply",style:{navigationStyle:"custom",navigationBarTextStyle:"black"}},{path:"pages/portal/schedule/detail",style:{navigationStyle:"custom",navigationBarTitleText:"详情","app-plus":{titleNView:!1,bounce:"none"}}},{path:"pages/portal/scanPortal/index",style:{navigationBarTitleText:""}},{path:"pages/portal/mpPortal/index",style:{navigationStyle:"custom",navigationBarTextStyle:"black"}},{path:"pages/portal/applyPortal/index",style:{navigationStyle:"custom",navigationBarTextStyle:"black",navigationBarTitleText:""}},{path:"pages/portal/schedule/index",style:{navigationBarTitleText:"","app-plus":{titleNView:!1,bounce:"none"}}},{path:"pages/formShortLink/index",style:{navigationBarTitleText:"表单外链","app-plus":{titleNView:!1,bounce:"none"}}},{path:"pages/formShortLink/detail",style:{navigationBarTitleText:"详情","app-plus":{titleNView:!1,bounce:"none"}}},{path:"pages/index/my",style:{navigationBarTitleText:"智慧党建","app-plus":{bounce:"none"}}}],subPackages:[{root:"pages/message",pages:[{path:"contacts/index",style:{navigationBarTitleText:"智慧党建"}},{path:"userDetail/index",style:{navigationBarTitleText:"",navigationBarTextStyle:"black",navigationBarBackgroundColor:"#f0f2f6"}},{path:"message/index",style:{navigationBarTitleText:"站内消息",navigationStyle:"custom",navigationBarTextStyle:"white"}},{path:"messageDetail/index",style:{navigationBarTitleText:"详情"}},{path:"im/index",style:{navigationBarTitleText:""}}]},{root:"pages/workFlow",pages:[{path:"flowBefore/index",style:{navigationBarTitleText:""}},{path:"flowBefore/subFlowForm",style:{navigationBarTitleText:""}},{path:"flowLaunch/index",style:{navigationBarTitleText:"我发起的"}},{path:"flowTodo/index",style:{navigationBarTitleText:"待办事宜"}},{path:"flowDone/index",style:{navigationBarTitleText:"已办事宜"}},{path:"flowCopy/index",style:{navigationBarTitleText:"抄送我的"}},{path:"entrust/index",style:{navigationBarTitleText:"流程委托"}},{path:"entrust/form",style:{navigationBarTitleText:""}},{path:"entrust/flow",style:{navigationBarTitleText:"发起流程"}},{path:"operate/index",style:{navigationBarTitleText:""}},{path:"scanForm/index",style:{navigationBarTitleText:"预览页面"}},{path:"comment/index",style:{navigationBarTitleText:"填写评论"}},{path:"allApp/index",style:{navigationBarTitleText:"更多流程"}},{path:"candiDateUserSelect/index",style:{navigationBarTitleText:"审批候选人",enablePullDownRefresh:!1,"app-plus":{bounce:"none"}}}]},{root:"pages/apply",pages:[{path:"reportLog/index",style:{navigationBarTitleText:"汇报日志"}},{path:"reportLog/form",style:{navigationBarTitleText:""}},{path:"interPage/signInvokeList",style:{navigationBarTitleText:"个人签名"}},{path:"order/index",style:{navigationBarTitleText:"订单示例"}},{path:"popSelect/index",style:{navigationBarTitleText:"选择数据",enablePullDownRefresh:!1}},{path:"dynamicModel/index",style:{navigationBarTitleText:""}},{path:"dynamicModel/form",style:{navigationBarTitleText:""}},{path:"dynamicModel/detail",style:{navigationBarTitleText:"详情"}},{path:"dynamicModel/scanForm",style:{navigationBarTitleText:""}},{path:"tableLinkage/index",style:{navigationBarTitleText:"选择数据",enablePullDownRefresh:!1}},{path:"location/index",style:{navigationBarTitleText:"选择位置",enablePullDownRefresh:!1}},{path:"customBtn/index",style:{navigationBarTitleText:"自定义操作"}},{path:"externalLink/index",style:{navigationBarTitleText:""}}]},{root:"pages/my",pages:[{path:"settings/index",style:{navigationBarTitleText:"设置","app-plus":{bounce:"none"}}},{path:"scanResult/index",style:{navigationBarTitleText:"扫描结果","app-plus":{bounce:"none"}}},{path:"modifyPsd/index",style:{navigationBarTitleText:"修改密码","app-plus":{bounce:"none"}}},{path:"contactUs/index",style:{navigationBarTitleText:"联系我们","app-plus":{bounce:"none"}}},{path:"abouts/index",style:{navigationBarTitleText:"关于平台"}},{path:"accountSecurity/index",style:{navigationBarTitleText:"账号安全","app-plus":{bounce:"none"}}},{path:"cancellation/index",style:{navigationBarTitleText:"注销账号","app-plus":{bounce:"none"}}},{path:"personalData/index",style:{navigationBarTitleText:"个人信息","app-plus":{bounce:"none"}}},{path:"business/index",style:{navigationBarTitleText:"企业组织","app-plus":{bounce:"none"}}},{path:"subordinate/index",style:{navigationBarTitleText:"我的下属",enablePullDownRefresh:!1}}]}],preloadRule:{"pages/index/message":{network:"all",packages:["pages/message"]},"pages/index/workFlow":{network:"all",packages:["pages/workFlow"]},"pages/index/apply":{network:"all",packages:["pages/apply"]},"pages/index/my":{network:"all",packages:["pages/my"]}},tabBar:{color:"#ffffff",selectedColor:"#ffaa00",backgroundColor:"#c5101b",list:[{pagePath:"pages/index/index",text:"首页",iconPath:"static/image/tabbar/home.png",selectedIconPath:"static/image/tabbar/homeHL.png"},{pagePath:"pages/index/workFlow",text:"协同",iconPath:"static/image/tabbar/workFlow.png",selectedIconPath:"static/image/tabbar/workFlowHL.png"},{pagePath:"pages/index/apply",text:"工作台",iconPath:"static/image/tabbar/apply.png",selectedIconPath:"static/image/tabbar/applyHL.png"},{pagePath:"pages/index/message",text:"消息",iconPath:"static/image/tabbar/message.png",selectedIconPath:"static/image/tabbar/messageHL.png"},{pagePath:"pages/index/my",text:"我的",iconPath:"static/image/tabbar/my.png",selectedIconPath:"static/image/tabbar/myHL.png"}]},globalStyle:{navigationBarTitleText:"智慧党建",navigationBarTextStyle:"black",navigationBarBackgroundColor:"#ffffff",backgroundColor:"#f0f2f6",usingComponents:{"ly-tree-node":"/components/ly-tree/ly-tree-node"}},uniIdRouter:{}};function zt(t,e,i){return t(i={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&i.path)}},i.exports),i.exports}var Bt=zt((function(t,e){var i;t.exports=(i=i||function(t,e){var i=Object.create||function(){function t(){}return function(e){var i;return t.prototype=e,i=new t,t.prototype=null,i}}(),o={},a=o.lib={},n=a.Base={extend:function(t){var e=i(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},s=a.WordArray=n.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||l).stringify(this)},concat:function(t){var e=this.words,i=t.words,o=this.sigBytes,a=t.sigBytes;if(this.clamp(),o%4)for(var n=0;n>>2]>>>24-n%4*8&255;e[o+n>>>2]|=s<<24-(o+n)%4*8}else for(n=0;n>>2]=i[n>>>2];return this.sigBytes+=a,this},clamp:function(){var e=this.words,i=this.sigBytes;e[i>>>2]&=4294967295<<32-i%4*8,e.length=t.ceil(i/4)},clone:function(){var t=n.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var i,o=[],a=function(e){var i=987654321,o=4294967295;return function(){var a=((i=36969*(65535&i)+(i>>16)&o)<<16)+(e=18e3*(65535&e)+(e>>16)&o)&o;return a/=4294967296,(a+=.5)*(t.random()>.5?1:-1)}},n=0;n>>2]>>>24-a%4*8&255;o.push((n>>>4).toString(16)),o.push((15&n).toString(16))}return o.join("")},parse:function(t){for(var e=t.length,i=[],o=0;o>>3]|=parseInt(t.substr(o,2),16)<<24-o%8*4;return new s.init(i,e/2)}},c=r.Latin1={stringify:function(t){for(var e=t.words,i=t.sigBytes,o=[],a=0;a>>2]>>>24-a%4*8&255;o.push(String.fromCharCode(n))}return o.join("")},parse:function(t){for(var e=t.length,i=[],o=0;o>>2]|=(255&t.charCodeAt(o))<<24-o%4*8;return new s.init(i,e)}},h=r.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},d=a.BufferedBlockAlgorithm=n.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=h.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var i=this._data,o=i.words,a=i.sigBytes,n=this.blockSize,r=a/(4*n),l=(r=e?t.ceil(r):t.max((0|r)-this._minBufferSize,0))*n,c=t.min(4*l,a);if(l){for(var h=0;h>>24)|4278255360&(a<<24|a>>>8)}var n=this._hash.words,s=t[e+0],l=t[e+1],u=t[e+2],f=t[e+3],g=t[e+4],y=t[e+5],m=t[e+6],x=t[e+7],b=t[e+8],w=t[e+9],S=t[e+10],v=t[e+11],T=t[e+12],C=t[e+13],A=t[e+14],k=t[e+15],D=n[0],_=n[1],P=n[2],L=n[3];D=c(D,_,P,L,s,7,r[0]),L=c(L,D,_,P,l,12,r[1]),P=c(P,L,D,_,u,17,r[2]),_=c(_,P,L,D,f,22,r[3]),D=c(D,_,P,L,g,7,r[4]),L=c(L,D,_,P,y,12,r[5]),P=c(P,L,D,_,m,17,r[6]),_=c(_,P,L,D,x,22,r[7]),D=c(D,_,P,L,b,7,r[8]),L=c(L,D,_,P,w,12,r[9]),P=c(P,L,D,_,S,17,r[10]),_=c(_,P,L,D,v,22,r[11]),D=c(D,_,P,L,T,7,r[12]),L=c(L,D,_,P,C,12,r[13]),P=c(P,L,D,_,A,17,r[14]),D=h(D,_=c(_,P,L,D,k,22,r[15]),P,L,l,5,r[16]),L=h(L,D,_,P,m,9,r[17]),P=h(P,L,D,_,v,14,r[18]),_=h(_,P,L,D,s,20,r[19]),D=h(D,_,P,L,y,5,r[20]),L=h(L,D,_,P,S,9,r[21]),P=h(P,L,D,_,k,14,r[22]),_=h(_,P,L,D,g,20,r[23]),D=h(D,_,P,L,w,5,r[24]),L=h(L,D,_,P,A,9,r[25]),P=h(P,L,D,_,f,14,r[26]),_=h(_,P,L,D,b,20,r[27]),D=h(D,_,P,L,C,5,r[28]),L=h(L,D,_,P,u,9,r[29]),P=h(P,L,D,_,x,14,r[30]),D=d(D,_=h(_,P,L,D,T,20,r[31]),P,L,y,4,r[32]),L=d(L,D,_,P,b,11,r[33]),P=d(P,L,D,_,v,16,r[34]),_=d(_,P,L,D,A,23,r[35]),D=d(D,_,P,L,l,4,r[36]),L=d(L,D,_,P,g,11,r[37]),P=d(P,L,D,_,x,16,r[38]),_=d(_,P,L,D,S,23,r[39]),D=d(D,_,P,L,C,4,r[40]),L=d(L,D,_,P,s,11,r[41]),P=d(P,L,D,_,f,16,r[42]),_=d(_,P,L,D,m,23,r[43]),D=d(D,_,P,L,w,4,r[44]),L=d(L,D,_,P,T,11,r[45]),P=d(P,L,D,_,k,16,r[46]),D=p(D,_=d(_,P,L,D,u,23,r[47]),P,L,s,6,r[48]),L=p(L,D,_,P,x,10,r[49]),P=p(P,L,D,_,A,15,r[50]),_=p(_,P,L,D,y,21,r[51]),D=p(D,_,P,L,T,6,r[52]),L=p(L,D,_,P,f,10,r[53]),P=p(P,L,D,_,S,15,r[54]),_=p(_,P,L,D,l,21,r[55]),D=p(D,_,P,L,b,6,r[56]),L=p(L,D,_,P,k,10,r[57]),P=p(P,L,D,_,m,15,r[58]),_=p(_,P,L,D,C,21,r[59]),D=p(D,_,P,L,g,6,r[60]),L=p(L,D,_,P,v,10,r[61]),P=p(P,L,D,_,u,15,r[62]),_=p(_,P,L,D,w,21,r[63]),n[0]=n[0]+D|0,n[1]=n[1]+_|0,n[2]=n[2]+P|0,n[3]=n[3]+L|0},_doFinalize:function(){var e=this._data,i=e.words,o=8*this._nDataBytes,a=8*e.sigBytes;i[a>>>5]|=128<<24-a%32;var n=t.floor(o/4294967296),s=o;i[15+(a+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),i[14+(a+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),e.sigBytes=4*(i.length+1),this._process();for(var r=this._hash,l=r.words,c=0;c<4;c++){var h=l[c];l[c]=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8)}return r},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}});function c(t,e,i,o,a,n,s){var r=t+(e&i|~e&o)+a+s;return(r<>>32-n)+e}function h(t,e,i,o,a,n,s){var r=t+(e&o|i&~o)+a+s;return(r<>>32-n)+e}function d(t,e,i,o,a,n,s){var r=t+(e^i^o)+a+s;return(r<>>32-n)+e}function p(t,e,i,o,a,n,s){var r=t+(i^(e|~o))+a+s;return(r<>>32-n)+e}e.MD5=n._createHelper(l),e.HmacMD5=n._createHmacHelper(l)}(Math),i.MD5)})),zt((function(t,e){var i,o,a;t.exports=(o=(i=Ut).lib.Base,a=i.enc.Utf8,void(i.algo.HMAC=o.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=a.parse(e));var i=t.blockSize,o=4*i;e.sigBytes>o&&(e=t.finalize(e)),e.clamp();for(var n=this._oKey=e.clone(),s=this._iKey=e.clone(),r=n.words,l=s.words,c=0;c>>2]>>>24-n%4*8&255)<<16|(e[n+1>>>2]>>>24-(n+1)%4*8&255)<<8|e[n+2>>>2]>>>24-(n+2)%4*8&255,r=0;r<4&&n+.75*r>>6*(3-r)&63));var l=o.charAt(64);if(l)for(;a.length%4;)a.push(l);return a.join("")},parse:function(t){var e=t.length,i=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var n=0;n>>6-s%4*2;o[n>>>2]|=(r|l)<<24-n%4*8,n++}return a.create(o,n)}(t,e,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},i.enc.Base64)}));const Jt="FUNCTION",qt="pending",Kt="rejected";function Vt(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}function Gt(t){return"object"===Vt(t)}function Xt(t){return"function"==typeof t}function Yt(t){return function(){try{return t.apply(t,arguments)}catch(e){console.error(e)}}}const Qt="REJECTED",Zt="NOT_PENDING";class $t{constructor({createPromise:t,retryRule:e=Qt}={}){this.createPromise=t,this.status=null,this.promise=null,this.retryRule=e}get needRetry(){if(!this.status)return!0;switch(this.retryRule){case Qt:return this.status===Kt;case Zt:return this.status!==qt}}exec(){return this.needRetry?(this.status=qt,this.promise=this.createPromise().then((t=>(this.status="fulfilled",Promise.resolve(t))),(t=>(this.status=Kt,Promise.reject(t)))),this.promise):this.promise}}function te(t){return t&&"string"==typeof t?JSON.parse(t):t}const ee=te([]);te("");const ie=te("[]")||[];let oe="";try{oe="__UNI__A9F937C"}catch(Ke){}let ae={};function ne(t,e={}){var i,o;return i=ae,o=t,Object.prototype.hasOwnProperty.call(i,o)||(ae[t]=e),ae[t]}const se=["invoke","success","fail","complete"],re=ne("_globalUniCloudInterceptor");function le(t,e){re[t]||(re[t]={}),Gt(e)&&Object.keys(e).forEach((i=>{se.indexOf(i)>-1&&function(t,e,i){let o=re[t][e];o||(o=re[t][e]=[]),-1===o.indexOf(i)&&Xt(i)&&o.push(i)}(t,i,e[i])}))}function ce(t,e){re[t]||(re[t]={}),Gt(e)?Object.keys(e).forEach((i=>{se.indexOf(i)>-1&&function(t,e,i){const o=re[t][e];if(!o)return;const a=o.indexOf(i);a>-1&&o.splice(a,1)}(t,i,e[i])})):delete re[t]}function he(t,e){return t&&0!==t.length?t.reduce(((t,i)=>t.then((()=>i(e)))),Promise.resolve()):Promise.resolve()}function de(t,e){return re[t]&&re[t][e]||[]}function pe(t){le("callObject",t)}const ue=ne("_globalUniCloudListener"),fe="response",ge="needLogin",ye="refreshToken",me="clientdb",xe="cloudfunction",be="cloudobject";function we(t){return ue[t]||(ue[t]=[]),ue[t]}function Se(t,e){const i=we(t);i.includes(e)||i.push(e)}function ve(t,e){const i=we(t),o=i.indexOf(e);-1!==o&&i.splice(o,1)}function Te(t,e){const i=we(t);for(let o=0;o{Ae&&t(),function e(){if("function"==typeof D){const e=D();e&&e[0]&&(Ae=!0,t())}Ae||setTimeout((()=>{e()}),30)}()})),Ce)}function De(t){const e={};for(const i in t){const o=t[i];Xt(o)&&(e[i]=Yt(o))}return e}class _e extends Error{constructor(t){super(t.message),this.errMsg=t.message||t.errMsg||"unknown system error",this.code=this.errCode=t.code||t.errCode||"SYSTEM_ERROR",this.errSubject=this.subject=t.subject||t.errSubject,this.cause=t.cause,this.requestId=t.requestId}toJson(t=0){if(!(t>=10))return t++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(t):this.cause}}}var Pe={request:t=>R(t),uploadFile:t=>N(t),setStorageSync:(t,e)=>z(t,e),getStorageSync:t=>B(t),removeStorageSync:t=>U(t),clearStorageSync:()=>j(),connectSocket:t=>W(t)};function Le(t){return t&&Le(t.__v_raw)||t}function Ie(){return{token:Pe.getStorageSync("uni_id_token")||Pe.getStorageSync("uniIdToken"),tokenExpired:Pe.getStorageSync("uni_id_token_expired")}}function Me({token:t,tokenExpired:e}={}){t&&Pe.setStorageSync("uni_id_token",t),e&&Pe.setStorageSync("uni_id_token_expired",e)}let Fe,Oe;function Ee(){return Fe||(Fe=H()),Fe}function Re(){let t,e;try{if(Y){if(Y.toString().indexOf("not yet implemented")>-1)return;const{scene:i,channel:o}=Y();t=o,e=i}}catch(i){}return{channel:t,scene:e}}let Ne={};function ze(){const t=X&&X()||"en";if(Oe)return{...Ne,...Oe,locale:t,LOCALE:t};const e=Ee(),{deviceId:i,osName:o,uniPlatform:a,appId:n}=e,s=["appId","appLanguage","appName","appVersion","appVersionCode","appWgtVersion","browserName","browserVersion","deviceBrand","deviceId","deviceModel","deviceType","osName","osVersion","romName","romVersion","ua","hostName","hostVersion","uniPlatform","uniRuntimeVersion","uniRuntimeVersionCode","uniCompilerVersion","uniCompilerVersionCode"];for(const r in e)Object.hasOwnProperty.call(e,r)&&-1===s.indexOf(r)&&delete e[r];return Oe={PLATFORM:a,OS:o,APPID:n,DEVICEID:i,...Re(),...e},{...Ne,...Oe,locale:t,LOCALE:t}}var Be=function(t,e){let i="";return Object.keys(t).sort().forEach((function(e){t[e]&&(i=i+"&"+e+"="+t[e])})),i=i.slice(1),jt(i,e).toString()},Ue=function(t,e){return new Promise(((i,o)=>{e(Object.assign(t,{complete(t){t||(t={});const e=t.data&&t.data.header&&t.data.header["x-serverless-request-id"]||t.header&&t.header["request-id"];if(!t.statusCode||t.statusCode>=400){const i=t.data&&t.data.error&&t.data.error.code||"SYS_ERR",a=t.data&&t.data.error&&t.data.error.message||t.errMsg||"request:fail";return o(new _e({code:i,message:a,requestId:e}))}const a=t.data;if(a.error)return o(new _e({code:a.error.code,message:a.error.message,requestId:e}));a.result=a.data,a.requestId=e,delete a.data,i(a)}}))}))},je=function(t){return Ht.stringify(Wt.parse(t))},We=class{constructor(t){["spaceId","clientSecret"].forEach((e=>{if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error(`${e} required`)})),this.config=Object.assign({},{endpoint:0===t.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},t),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=Pe,this._getAccessTokenPromiseHub=new $t({createPromise:()=>this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((t=>{if(!t.result||!t.result.accessToken)throw new _e({code:"AUTH_FAILED",message:"获取accessToken失败"});this.setAccessToken(t.result.accessToken)})),retryRule:Zt})}get hasAccessToken(){return!!this.accessToken}setAccessToken(t){this.accessToken=t}requestWrapped(t){return Ue(t,this.adapter.request)}requestAuth(t){return this.requestWrapped(t)}request(t,e){return Promise.resolve().then((()=>this.hasAccessToken?e?this.requestWrapped(t):this.requestWrapped(t).catch((e=>new Promise(((t,i)=>{!e||"GATEWAY_INVALID_TOKEN"!==e.code&&"InvalidParameter.InvalidToken"!==e.code?i(e):t()})).then((()=>this.getAccessToken())).then((()=>{const e=this.rebuildRequest(t);return this.request(e,!0)})))):this.getAccessToken().then((()=>{const e=this.rebuildRequest(t);return this.request(e,!0)}))))}rebuildRequest(t){const e=Object.assign({},t);return e.data.token=this.accessToken,e.header["x-basement-token"]=this.accessToken,e.header["x-serverless-sign"]=Be(e.data,this.config.clientSecret),e}setupRequest(t,e){const i=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now()}),o={"Content-Type":"application/json"};return"auth"!==e&&(i.token=this.accessToken,o["x-basement-token"]=this.accessToken),o["x-serverless-sign"]=Be(i,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:i,dataType:"json",header:o}}getAccessToken(){return this._getAccessTokenPromiseHub.exec()}async authorize(){await this.getAccessToken()}callFunction(t){const e={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:t.name,functionArgs:t.data||{}})};return this.request(this.setupRequest(e))}getOSSUploadOptionsFromPath(t){const e={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(t)};return this.request(this.setupRequest(e))}uploadFileToOSS({url:t,formData:e,name:i,filePath:o,fileType:a,onUploadProgress:n}){return new Promise(((s,r)=>{const l=this.adapter.uploadFile({url:t,formData:e,name:i,filePath:o,fileType:a,header:{"X-OSS-server-side-encrpytion":"AES256"},success(t){t&&t.statusCode<400?s(t):r(new _e({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(t){r(new _e({code:t.code||"UPLOAD_FAILED",message:t.message||t.errMsg||"文件上传失败"}))}});"function"==typeof n&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((t=>{n({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}reportOSSUpload(t){const e={method:"serverless.file.resource.report",params:JSON.stringify(t)};return this.request(this.setupRequest(e))}async uploadFile({filePath:t,cloudPath:e,fileType:i="image",cloudPathAsRealPath:o=!1,onUploadProgress:a,config:n}){if("string"!==Vt(e))throw new _e({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(e=e.trim()))throw new _e({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(e))throw new _e({code:"INVALID_PARAM",message:"cloudPath不合法"});const s=n&&n.envType||this.config.envType;if(o&&("/"!==e[0]&&(e="/"+e),e.indexOf("\\")>-1))throw new _e({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});const r=(await this.getOSSUploadOptionsFromPath({env:s,filename:o?e.split("/").pop():e,fileId:o?e:void 0})).result,l="https://"+r.cdnDomain+"/"+r.ossPath,{securityToken:c,accessKeyId:h,signature:d,host:p,ossPath:u,id:f,policy:g,ossCallbackUrl:y}=r,m={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:h,Signature:d,host:p,id:f,key:u,policy:g,success_action_status:200};if(c&&(m["x-oss-security-token"]=c),y){const t=JSON.stringify({callbackUrl:y,callbackBody:JSON.stringify({fileId:f,spaceId:this.config.spaceId}),callbackBodyType:"application/json"});m.callback=je(t)}const x={url:"https://"+r.host,formData:m,fileName:"file",name:"file",filePath:t,fileType:i};if(await this.uploadFileToOSS(Object.assign({},x,{onUploadProgress:a})),y)return{success:!0,filePath:t,fileID:l};if((await this.reportOSSUpload({id:f})).success)return{success:!0,filePath:t,fileID:l};throw new _e({code:"UPLOAD_FAILED",message:"文件上传失败"})}getTempFileURL({fileList:t}={}){return new Promise(((e,i)=>{Array.isArray(t)&&0!==t.length||i(new _e({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),e({fileList:t.map((t=>({fileID:t,tempFileURL:t})))})}))}async getFileInfo({fileList:t}={}){if(!Array.isArray(t)||0===t.length)throw new _e({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const e={method:"serverless.file.resource.info",params:JSON.stringify({id:t.map((t=>t.split("?")[0])).join(",")})};return{fileList:(await this.request(this.setupRequest(e))).result}}},He={init(t){const e=new We(t),i={signInAnonymously:function(){return e.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return e.auth=function(){return i},e.customAuth=e.auth,e}};const Je="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";var qe,Ke;(Ke=qe||(qe={})).local="local",Ke.none="none",Ke.session="session";var Ve=function(){},Ge=zt((function(t,e){var i;t.exports=(i=Ut,function(t){var e=i,o=e.lib,a=o.WordArray,n=o.Hasher,s=e.algo,r=[],l=[];!function(){function e(e){for(var i=t.sqrt(e),o=2;o<=i;o++)if(!(e%o))return!1;return!0}function i(t){return 4294967296*(t-(0|t))|0}for(var o=2,a=0;a<64;)e(o)&&(a<8&&(r[a]=i(t.pow(o,.5))),l[a]=i(t.pow(o,1/3)),a++),o++}();var c=[],h=s.SHA256=n.extend({_doReset:function(){this._hash=new a.init(r.slice(0))},_doProcessBlock:function(t,e){for(var i=this._hash.words,o=i[0],a=i[1],n=i[2],s=i[3],r=i[4],h=i[5],d=i[6],p=i[7],u=0;u<64;u++){if(u<16)c[u]=0|t[e+u];else{var f=c[u-15],g=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,y=c[u-2],m=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;c[u]=g+c[u-7]+m+c[u-16]}var x=o&a^o&n^a&n,b=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),w=p+((r<<26|r>>>6)^(r<<21|r>>>11)^(r<<7|r>>>25))+(r&h^~r&d)+l[u]+c[u];p=d,d=h,h=r,r=s+w|0,s=n,n=a,a=o,o=w+(b+x)|0}i[0]=i[0]+o|0,i[1]=i[1]+a|0,i[2]=i[2]+n|0,i[3]=i[3]+s|0,i[4]=i[4]+r|0,i[5]=i[5]+h|0,i[6]=i[6]+d|0,i[7]=i[7]+p|0},_doFinalize:function(){var e=this._data,i=e.words,o=8*this._nDataBytes,a=8*e.sigBytes;return i[a>>>5]|=128<<24-a%32,i[14+(a+64>>>9<<4)]=t.floor(o/4294967296),i[15+(a+64>>>9<<4)]=o,e.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=n._createHelper(h),e.HmacSHA256=n._createHmacHelper(h)}(Math),i.SHA256)})),Xe=Ge,Ye=zt((function(t,e){t.exports=Ut.HmacSHA256}));const Qe=()=>{let t;if(!Promise){t=()=>{},t.promise={};const e=()=>{throw new _e({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(t.promise,"then",{get:e}),Object.defineProperty(t.promise,"catch",{get:e}),t}const e=new Promise(((e,i)=>{t=(t,o)=>t?i(t):e(o)}));return t.promise=e,t};function Ze(t){return void 0===t}function $e(t){return"[object Null]"===Object.prototype.toString.call(t)}var ti;!function(t){t.WEB="web",t.WX_MP="wx_mp"}(ti||(ti={}));const ei={adapter:null,runtime:void 0},ii=["anonymousUuidKey"];class oi extends Ve{constructor(){super(),ei.adapter.root.tcbObject||(ei.adapter.root.tcbObject={})}setItem(t,e){ei.adapter.root.tcbObject[t]=e}getItem(t){return ei.adapter.root.tcbObject[t]}removeItem(t){delete ei.adapter.root.tcbObject[t]}clear(){delete ei.adapter.root.tcbObject}}function ai(t,e){switch(t){case"local":return e.localStorage||new oi;case"none":return new oi;default:return e.sessionStorage||new oi}}class ni{constructor(t){if(!this._storage){this._persistence=ei.adapter.primaryStorage||t.persistence,this._storage=ai(this._persistence,ei.adapter);const e=`access_token_${t.env}`,i=`access_token_expire_${t.env}`,o=`refresh_token_${t.env}`,a=`anonymous_uuid_${t.env}`,n=`login_type_${t.env}`,s=`user_info_${t.env}`;this.keys={accessTokenKey:e,accessTokenExpireKey:i,refreshTokenKey:o,anonymousUuidKey:a,loginTypeKey:n,userInfoKey:s}}}updatePersistence(t){if(t===this._persistence)return;const e="local"===this._persistence;this._persistence=t;const i=ai(t,ei.adapter);for(const o in this.keys){const t=this.keys[o];if(e&&ii.includes(o))continue;const a=this._storage.getItem(t);Ze(a)||$e(a)||(i.setItem(t,a),this._storage.removeItem(t))}this._storage=i}setStore(t,e,i){if(!this._storage)return;const o={version:i||"localCachev1",content:e},a=JSON.stringify(o);try{this._storage.setItem(t,a)}catch(n){throw n}}getStore(t,e){try{if(!this._storage)return}catch(o){return""}e=e||"localCachev1";const i=this._storage.getItem(t);return i&&i.indexOf(e)>=0?JSON.parse(i).content:""}removeStore(t){this._storage.removeItem(t)}}const si={},ri={};function li(t){return si[t]}class ci{constructor(t,e){this.data=e||null,this.name=t}}class hi extends ci{constructor(t,e){super("error",{error:t,data:e}),this.error=t}}const di=new class{constructor(){this._listeners={}}on(t,e){return i=t,o=e,(a=this._listeners)[i]=a[i]||[],a[i].push(o),this;var i,o,a}off(t,e){return function(t,e,i){if(i&&i[t]){const o=i[t].indexOf(e);-1!==o&&i[t].splice(o,1)}}(t,e,this._listeners),this}fire(t,e){if(t instanceof hi)return console.error(t.error),this;const i="string"==typeof t?new ci(t,e||{}):t,o=i.name;if(this._listens(o)){i.target=this;const t=this._listeners[o]?[...this._listeners[o]]:[];for(const e of t)e.call(this,i)}return this}_listens(t){return this._listeners[t]&&this._listeners[t].length>0}};function pi(t,e){di.on(t,e)}function ui(t,e={}){di.fire(t,e)}function fi(t,e){di.off(t,e)}const gi="loginStateChanged",yi="loginStateExpire",mi="loginTypeChanged",xi="anonymousConverted",bi="refreshAccessToken";var wi;!function(t){t.ANONYMOUS="ANONYMOUS",t.WECHAT="WECHAT",t.WECHAT_PUBLIC="WECHAT-PUBLIC",t.WECHAT_OPEN="WECHAT-OPEN",t.CUSTOM="CUSTOM",t.EMAIL="EMAIL",t.USERNAME="USERNAME",t.NULL="NULL"}(wi||(wi={}));const Si=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],vi={"X-SDK-Version":"1.3.5"};function Ti(t,e,i){const o=t[e];t[e]=function(e){const a={},n={};i.forEach((i=>{const{data:o,headers:s}=i.call(t,e);Object.assign(a,o),Object.assign(n,s)}));const s=e.data;return s&&(()=>{var t;if(t=s,"[object FormData]"!==Object.prototype.toString.call(t))e.data={...s,...a};else for(const e in a)s.append(e,a[e])})(),e.headers={...e.headers||{},...n},o.call(t,e)}}function Ci(){const t=Math.random().toString(16).slice(2);return{data:{seqId:t},headers:{...vi,"x-seqid":t}}}class Ai{constructor(t={}){var e;this.config=t,this._reqClass=new ei.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`请求在${this.config.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]}),this._cache=li(this.config.env),this._localCache=(e=this.config.env,ri[e]),Ti(this._reqClass,"post",[Ci]),Ti(this._reqClass,"upload",[Ci]),Ti(this._reqClass,"download",[Ci])}async post(t){return await this._reqClass.post(t)}async upload(t){return await this._reqClass.upload(t)}async download(t){return await this._reqClass.download(t)}async refreshAccessToken(){let t,e;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{t=await this._refreshAccessTokenPromise}catch(i){e=i}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,e)throw e;return t}async _refreshAccessToken(){const{accessTokenKey:t,accessTokenExpireKey:e,refreshTokenKey:i,loginTypeKey:o,anonymousUuidKey:a}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(e);let n=this._cache.getStore(i);if(!n)throw new _e({message:"未登录CloudBase"});const s={refresh_token:n},r=await this.request("auth.fetchAccessTokenWithRefreshToken",s);if(r.data.code){const{code:t}=r.data;if("SIGN_PARAM_INVALID"===t||"REFRESH_TOKEN_EXPIRED"===t||"INVALID_REFRESH_TOKEN"===t){if(this._cache.getStore(o)===wi.ANONYMOUS&&"INVALID_REFRESH_TOKEN"===t){const t=this._cache.getStore(a),e=this._cache.getStore(i),o=await this.send("auth.signInAnonymously",{anonymous_uuid:t,refresh_token:e});return this.setRefreshToken(o.refresh_token),this._refreshAccessToken()}ui(yi),this._cache.removeStore(i)}throw new _e({code:r.data.code,message:`刷新access token失败:${r.data.code}`})}if(r.data.access_token)return ui(bi),this._cache.setStore(t,r.data.access_token),this._cache.setStore(e,r.data.access_token_expire+Date.now()),{accessToken:r.data.access_token,accessTokenExpire:r.data.access_token_expire};r.data.refresh_token&&(this._cache.removeStore(i),this._cache.setStore(i,r.data.refresh_token),this._refreshAccessToken())}async getAccessToken(){const{accessTokenKey:t,accessTokenExpireKey:e,refreshTokenKey:i}=this._cache.keys;if(!this._cache.getStore(i))throw new _e({message:"refresh token不存在,登录状态异常"});let o=this._cache.getStore(t),a=this._cache.getStore(e),n=!0;return this._shouldRefreshAccessTokenHook&&!(await this._shouldRefreshAccessTokenHook(o,a))&&(n=!1),(!o||!a||a{t.wxOpenId&&t.wxPublicId&&(e=!0)})),{users:i,hasPrimaryUid:e}}setPrimaryUid(t){return this._request.send("auth.setPrimaryUid",{uid:t})}unlink(t){return this._request.send("auth.unlink",{platform:t})}async update(t){const{nickName:e,gender:i,avatarUrl:o,province:a,country:n,city:s}=t,{data:r}=await this._request.send("auth.updateUserInfo",{nickName:e,gender:i,avatarUrl:o,province:a,country:n,city:s});this.setLocalUserInfo(r)}async refresh(){const{data:t}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(t),t}setUserInfo(){const{userInfoKey:t}=this._cache.keys,e=this._cache.getStore(t);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((t=>{this[t]=e[t]})),this.location={country:e.country,province:e.province,city:e.city}}setLocalUserInfo(t){const{userInfoKey:e}=this._cache.keys;this._cache.setStore(e,t),this.setUserInfo()}}class Li{constructor(t){if(!t)throw new _e({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=li(t);const{refreshTokenKey:e,accessTokenKey:i,accessTokenExpireKey:o}=this._cache.keys,a=this._cache.getStore(e),n=this._cache.getStore(i),s=this._cache.getStore(o);this.credential={refreshToken:a,accessToken:n,accessTokenExpire:s},this.user=new Pi(t)}get isAnonymousAuth(){return this.loginType===wi.ANONYMOUS}get isCustomAuth(){return this.loginType===wi.CUSTOM}get isWeixinAuth(){return this.loginType===wi.WECHAT||this.loginType===wi.WECHAT_OPEN||this.loginType===wi.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}class Ii extends _i{async signIn(){this._cache.updatePersistence("local");const{anonymousUuidKey:t,refreshTokenKey:e}=this._cache.keys,i=this._cache.getStore(t)||void 0,o=this._cache.getStore(e)||void 0,a=await this._request.send("auth.signInAnonymously",{anonymous_uuid:i,refresh_token:o});if(a.uuid&&a.refresh_token){this._setAnonymousUUID(a.uuid),this.setRefreshToken(a.refresh_token),await this._request.refreshAccessToken(),ui(gi),ui(mi,{env:this.config.env,loginType:wi.ANONYMOUS,persistence:"local"});const t=new Li(this.config.env);return await t.user.refresh(),t}throw new _e({message:"匿名登录失败"})}async linkAndRetrieveDataWithTicket(t){const{anonymousUuidKey:e,refreshTokenKey:i}=this._cache.keys,o=this._cache.getStore(e),a=this._cache.getStore(i),n=await this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:o,refresh_token:a,ticket:t});if(n.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(n.refresh_token),await this._request.refreshAccessToken(),ui(xi,{env:this.config.env}),ui(mi,{loginType:wi.CUSTOM,persistence:"local"}),{credential:{refreshToken:n.refresh_token}};throw new _e({message:"匿名转化失败"})}_setAnonymousUUID(t){const{anonymousUuidKey:e,loginTypeKey:i}=this._cache.keys;this._cache.removeStore(e),this._cache.setStore(e,t),this._cache.setStore(i,wi.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}class Mi extends _i{async signIn(t){if("string"!=typeof t)throw new _e({code:"PARAM_ERROR",message:"ticket must be a string"});const{refreshTokenKey:e}=this._cache.keys,i=await this._request.send("auth.signInWithTicket",{ticket:t,refresh_token:this._cache.getStore(e)||""});if(i.refresh_token)return this.setRefreshToken(i.refresh_token),await this._request.refreshAccessToken(),ui(gi),ui(mi,{env:this.config.env,loginType:wi.CUSTOM,persistence:this.config.persistence}),await this.refreshUserInfo(),new Li(this.config.env);throw new _e({message:"自定义登录失败"})}}class Fi extends _i{async signIn(t,e){if("string"!=typeof t)throw new _e({code:"PARAM_ERROR",message:"email must be a string"});const{refreshTokenKey:i}=this._cache.keys,o=await this._request.send("auth.signIn",{loginType:"EMAIL",email:t,password:e,refresh_token:this._cache.getStore(i)||""}),{refresh_token:a,access_token:n,access_token_expire:s}=o;if(a)return this.setRefreshToken(a),n&&s?this.setAccessToken(n,s):await this._request.refreshAccessToken(),await this.refreshUserInfo(),ui(gi),ui(mi,{env:this.config.env,loginType:wi.EMAIL,persistence:this.config.persistence}),new Li(this.config.env);throw o.code?new _e({code:o.code,message:`邮箱登录失败: ${o.message}`}):new _e({message:"邮箱登录失败"})}async activate(t){return this._request.send("auth.activateEndUserMail",{token:t})}async resetPasswordWithToken(t,e){return this._request.send("auth.resetPasswordWithToken",{token:t,newPassword:e})}}class Oi extends _i{async signIn(t,e){if("string"!=typeof t)throw new _e({code:"PARAM_ERROR",message:"username must be a string"});"string"!=typeof e&&(e="",console.warn("password is empty"));const{refreshTokenKey:i}=this._cache.keys,o=await this._request.send("auth.signIn",{loginType:wi.USERNAME,username:t,password:e,refresh_token:this._cache.getStore(i)||""}),{refresh_token:a,access_token_expire:n,access_token:s}=o;if(a)return this.setRefreshToken(a),s&&n?this.setAccessToken(s,n):await this._request.refreshAccessToken(),await this.refreshUserInfo(),ui(gi),ui(mi,{env:this.config.env,loginType:wi.USERNAME,persistence:this.config.persistence}),new Li(this.config.env);throw o.code?new _e({code:o.code,message:`用户名密码登录失败: ${o.message}`}):new _e({message:"用户名密码登录失败"})}}class Ei{constructor(t){this.config=t,this._cache=li(t.env),this._request=Di(t.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),pi(mi,this._onLoginTypeChanged)}get currentUser(){const t=this.hasLoginState();return t&&t.user||null}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}anonymousAuthProvider(){return new Ii(this.config)}customAuthProvider(){return new Mi(this.config)}emailAuthProvider(){return new Fi(this.config)}usernameAuthProvider(){return new Oi(this.config)}async signInAnonymously(){return new Ii(this.config).signIn()}async signInWithEmailAndPassword(t,e){return new Fi(this.config).signIn(t,e)}signInWithUsernameAndPassword(t,e){return new Oi(this.config).signIn(t,e)}async linkAndRetrieveDataWithTicket(t){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new Ii(this.config)),pi(xi,this._onAnonymousConverted),await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(t)}async signOut(){if(this.loginType===wi.ANONYMOUS)throw new _e({message:"匿名用户不支持登出操作"});const{refreshTokenKey:t,accessTokenKey:e,accessTokenExpireKey:i}=this._cache.keys,o=this._cache.getStore(t);if(!o)return;const a=await this._request.send("auth.logout",{refresh_token:o});return this._cache.removeStore(t),this._cache.removeStore(e),this._cache.removeStore(i),ui(gi),ui(mi,{env:this.config.env,loginType:wi.NULL,persistence:this.config.persistence}),a}async signUpWithEmailAndPassword(t,e){return this._request.send("auth.signUpWithEmailAndPassword",{email:t,password:e})}async sendPasswordResetEmail(t){return this._request.send("auth.sendPasswordResetEmail",{email:t})}onLoginStateChanged(t){pi(gi,(()=>{const e=this.hasLoginState();t.call(this,e)}));const e=this.hasLoginState();t.call(this,e)}onLoginStateExpired(t){pi(yi,t.bind(this))}onAccessTokenRefreshed(t){pi(bi,t.bind(this))}onAnonymousConverted(t){pi(xi,t.bind(this))}onLoginTypeChanged(t){pi(mi,(()=>{const e=this.hasLoginState();t.call(this,e)}))}async getAccessToken(){return{accessToken:(await this._request.getAccessToken()).accessToken,env:this.config.env}}hasLoginState(){const{refreshTokenKey:t}=this._cache.keys;return this._cache.getStore(t)?new Li(this.config.env):null}async isUsernameRegistered(t){if("string"!=typeof t)throw new _e({code:"PARAM_ERROR",message:"username must be a string"});const{data:e}=await this._request.send("auth.isUsernameRegistered",{username:t});return e&&e.isRegistered}getLoginState(){return Promise.resolve(this.hasLoginState())}async signInWithTicket(t){return new Mi(this.config).signIn(t)}shouldRefreshAccessToken(t){this._request._shouldRefreshAccessTokenHook=t.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then((t=>t.code?t:{...t.data,requestId:t.seqId}))}getAuthHeader(){const{refreshTokenKey:t,accessTokenKey:e}=this._cache.keys,i=this._cache.getStore(t);return{"x-cloudbase-credentials":this._cache.getStore(e)+"/@@/"+i}}_onAnonymousConverted(t){const{env:e}=t.data;e===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(t){const{loginType:e,persistence:i,env:o}=t.data;o===this.config.env&&(this._cache.updatePersistence(i),this._cache.setStore(this._cache.keys.loginTypeKey,e))}}const Ri=function(t,e){e=e||Qe();const i=Di(this.config.env),{cloudPath:o,filePath:a,onUploadProgress:n,fileType:s="image"}=t;return i.send("storage.getUploadMetadata",{path:o}).then((t=>{const{data:{url:r,authorization:l,token:c,fileId:h,cosFileId:d},requestId:p}=t,u={key:o,signature:l,"x-cos-meta-fileid":d,success_action_status:"201","x-cos-security-token":c};i.upload({url:r,data:u,file:a,name:o,fileType:s,onUploadProgress:n}).then((t=>{201===t.statusCode?e(null,{fileID:h,requestId:p}):e(new _e({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${t.data}`}))})).catch((t=>{e(t)}))})).catch((t=>{e(t)})),e.promise},Ni=function(t,e){e=e||Qe();const i=Di(this.config.env),{cloudPath:o}=t;return i.send("storage.getUploadMetadata",{path:o}).then((t=>{e(null,t)})).catch((t=>{e(t)})),e.promise},zi=function({fileList:t},e){if(e=e||Qe(),!t||!Array.isArray(t))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};for(let o of t)if(!o||"string"!=typeof o)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"};const i={fileid_list:t};return Di(this.config.env).send("storage.batchDeleteFile",i).then((t=>{t.code?e(null,t):e(null,{fileList:t.data.delete_list,requestId:t.requestId})})).catch((t=>{e(t)})),e.promise},Bi=function({fileList:t},e){e=e||Qe(),t&&Array.isArray(t)||e(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});let i=[];for(let a of t)"object"==typeof a?(a.hasOwnProperty("fileID")&&a.hasOwnProperty("maxAge")||e(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),i.push({fileid:a.fileID,max_age:a.maxAge})):"string"==typeof a?i.push({fileid:a}):e(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"});const o={file_list:i};return Di(this.config.env).send("storage.batchGetDownloadUrl",o).then((t=>{t.code?e(null,t):e(null,{fileList:t.data.download_list,requestId:t.requestId})})).catch((t=>{e(t)})),e.promise},Ui=async function({fileID:t},e){const i=(await Bi.call(this,{fileList:[{fileID:t,maxAge:600}]})).fileList[0];if("SUCCESS"!==i.code)return e?e(i):new Promise((t=>{t(i)}));const o=Di(this.config.env);let a=i.download_url;if(a=encodeURI(a),!e)return o.download({url:a});e(await o.download({url:a}))},ji=function({name:t,data:e,query:i,parse:o,search:a},n){const s=n||Qe();let r;try{r=e?JSON.stringify(e):""}catch(c){return Promise.reject(c)}if(!t)return Promise.reject(new _e({code:"PARAM_ERROR",message:"函数名不能为空"}));const l={inQuery:i,parse:o,search:a,function_name:t,request_data:r};return Di(this.config.env).send("functions.invokeFunction",l).then((t=>{if(t.code)s(null,t);else{let i=t.data.response_data;if(o)s(null,{result:i,requestId:t.requestId});else try{i=JSON.parse(t.data.response_data),s(null,{result:i,requestId:t.requestId})}catch(e){s(new _e({message:"response data must be json"}))}}return s.promise})).catch((t=>{s(t)})),s.promise},Wi={timeout:15e3,persistence:"session"},Hi={};class Ji{constructor(t){this.config=t||this.config,this.authObj=void 0}init(t){switch(ei.adapter||(this.requestClient=new ei.adapter.reqClass({timeout:t.timeout||5e3,timeoutMsg:`请求在${(t.timeout||5e3)/1e3}s内未完成,已中断`})),this.config={...Wi,...t},!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new Ji(this.config)}auth({persistence:t}={}){if(this.authObj)return this.authObj;const e=t||ei.adapter.primaryStorage||Wi.persistence;var i;return e!==this.config.persistence&&(this.config.persistence=e),function(t){const{env:e}=t;si[e]=new ni(t),ri[e]=new ni({...t,persistence:"local"})}(this.config),i=this.config,ki[i.env]=new Ai(i),this.authObj=new Ei(this.config),this.authObj}on(t,e){return pi.apply(this,[t,e])}off(t,e){return fi.apply(this,[t,e])}callFunction(t,e){return ji.apply(this,[t,e])}deleteFile(t,e){return zi.apply(this,[t,e])}getTempFileURL(t,e){return Bi.apply(this,[t,e])}downloadFile(t,e){return Ui.apply(this,[t,e])}uploadFile(t,e){return Ri.apply(this,[t,e])}getUploadMetadata(t,e){return Ni.apply(this,[t,e])}registerExtension(t){Hi[t.name]=t}async invokeExtension(t,e){const i=Hi[t];if(!i)throw new _e({message:`扩展${t} 必须先注册`});return await i.invoke(e,this)}useAdapters(t){const{adapter:e,runtime:i}=function(t){const e=(i=t,"[object Array]"===Object.prototype.toString.call(i)?t:[t]);var i;for(const o of e){const{isMatch:t,genAdapter:e,runtime:i}=o;if(t())return{adapter:e(),runtime:i}}}(t)||{};e&&(ei.adapter=e),i&&(ei.runtime=i)}}var qi=new Ji;function Ki(t,e,i){void 0===i&&(i={});var o=/\?/.test(e),a="";for(var n in i)""===a?!o&&(e+="?"):a+="&",a+=n+"="+encodeURIComponent(i[n]);return/^http(s)?:\/\//.test(e+=a)?e:""+t+e}class Vi{post(t){const{url:e,data:i,headers:o}=t;return new Promise(((t,a)=>{Pe.request({url:Ki("https:",e),data:i,method:"POST",header:o,success(e){t(e)},fail(t){a(t)}})}))}upload(t){return new Promise(((e,i)=>{const{url:o,file:a,data:n,headers:s,fileType:r}=t,l=Pe.uploadFile({url:Ki("https:",o),name:"file",formData:Object.assign({},n),filePath:a,fileType:r,header:s,success(t){const i={statusCode:t.statusCode,data:t.data||{}};200===t.statusCode&&n.success_action_status&&(i.statusCode=parseInt(n.success_action_status,10)),e(i)},fail(t){i(new Error(t.errMsg||"uploadFile:fail"))}});"function"==typeof t.onUploadProgress&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((e=>{t.onUploadProgress({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}}const Gi={setItem(t,e){Pe.setStorageSync(t,e)},getItem:t=>Pe.getStorageSync(t),removeItem(t){Pe.removeStorageSync(t)},clear(){Pe.clearStorageSync()}};var Xi={genAdapter:function(){return{root:{},reqClass:Vi,localStorage:Gi,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};qi.useAdapters(Xi);const Yi=qi,Qi=Yi.init;Yi.init=function(t){t.env=t.spaceId;const e=Qi.call(this,t);e.config.provider="tencent",e.config.spaceId=t.spaceId;const i=e.auth;return e.auth=function(t){const e=i.call(this,t);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((t=>{var i;e[t]=(i=e[t],function(t){t=t||{};const{success:e,fail:o,complete:a}=De(t);if(!(e||o||a))return i.call(this,t);i.call(this,t).then((t=>{e&&e(t),a&&a(t)}),(t=>{o&&o(t),a&&a(t)}))}).bind(e)})),e},e.customAuth=e.auth,e};var Zi=Yi,$i=class extends We{getAccessToken(){return new Promise(((t,e)=>{const i="Anonymous_Access_token";this.setAccessToken(i),t(i)}))}setupRequest(t,e){const i=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now()}),o={"Content-Type":"application/json"};"auth"!==e&&(i.token=this.accessToken,o["x-basement-token"]=this.accessToken),o["x-serverless-sign"]=Be(i,this.config.clientSecret);const a=ze();o["x-client-info"]=encodeURIComponent(JSON.stringify(a));const{token:n}=Ie();return o["x-client-token"]=n,{url:this.config.requestUrl,method:"POST",data:i,dataType:"json",header:JSON.parse(JSON.stringify(o))}}uploadFileToOSS({url:t,formData:e,name:i,filePath:o,fileType:a,onUploadProgress:n}){return new Promise(((s,r)=>{const l=this.adapter.uploadFile({url:t,formData:e,name:i,filePath:o,fileType:a,success(t){t&&t.statusCode<400?s(t):r(new _e({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(t){r(new _e({code:t.code||"UPLOAD_FAILED",message:t.message||t.errMsg||"文件上传失败"}))}});"function"==typeof n&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((t=>{n({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}uploadFile({filePath:t,cloudPath:e,fileType:i="image",onUploadProgress:o}){if(!e)throw new _e({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});let a;return this.getOSSUploadOptionsFromPath({cloudPath:e}).then((e=>{const{url:n,formData:s,name:r}=e.result;a=e.result.fileUrl;const l={url:n,formData:s,name:r,filePath:t,fileType:i};return this.uploadFileToOSS(Object.assign({},l,{onUploadProgress:o}))})).then((()=>this.reportOSSUpload({cloudPath:e}))).then((e=>new Promise(((i,o)=>{e.success?i({success:!0,filePath:t,fileID:a}):o(new _e({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))))}deleteFile({fileList:t}){const e={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:t})};return this.request(this.setupRequest(e)).then((t=>{if(t.success)return t.result;throw new _e({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}getTempFileURL({fileList:t,maxAge:e}={}){if(!Array.isArray(t)||0===t.length)throw new _e({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const i={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:t,maxAge:e})};return this.request(this.setupRequest(i)).then((t=>{if(t.success)return{fileList:t.result.fileList.map((t=>({fileID:t.fileID,tempFileURL:t.tempFileURL})))};throw new _e({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}},to={init(t){const e=new $i(t),i={signInAnonymously:function(){return e.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return e.auth=function(){return i},e.customAuth=e.auth,e}},eo=zt((function(t,e){t.exports=Ut.enc.Hex}));function io(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}function oo(t="",e={}){const{data:i,functionName:o,method:a,headers:n,signHeaderKeys:s=[],config:r}=e,l=Date.now(),c=io(),h=Object.assign({},n,{"x-from-app-id":r.spaceAppId,"x-from-env-id":r.spaceId,"x-to-env-id":r.spaceId,"x-from-instance-id":l,"x-from-function-name":o,"x-client-timestamp":l,"x-alipay-source":"client","x-request-id":c,"x-alipay-callid":c,"x-trace-id":c}),d=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(s),[p="",u=""]=t.split("?")||[],f=function(t){const e=t.signedHeaders.join(";"),i=t.signedHeaders.map((e=>`${e.toLowerCase()}:${t.headers[e]}\n`)).join(""),o=Xe(t.body).toString(eo),a=`${t.method.toUpperCase()}\n${t.path}\n${t.query}\n${i}\n${e}\n${o}\n`,n=Xe(a).toString(eo),s=`HMAC-SHA256\n${t.timestamp}\n${n}\n`,r=Ye(s,t.secretKey).toString(eo);return`HMAC-SHA256 Credential=${t.secretId}, SignedHeaders=${e}, Signature=${r}`}({path:p,query:u,method:a,headers:h,timestamp:l,body:JSON.stringify(i),secretId:r.accessKey,secretKey:r.secretKey,signedHeaders:d.sort()});return{url:`${r.endpoint}${t}`,headers:Object.assign({},h,{Authorization:f})}}function ao({url:t,data:e,method:i="POST",headers:o={}}){return new Promise(((a,n)=>{Pe.request({url:t,method:i,data:"object"==typeof e?JSON.stringify(e):e,header:o,dataType:"json",complete:(t={})=>{const e=o["x-trace-id"]||"";if(!t.statusCode||t.statusCode>=400){const{message:i,errMsg:o,trace_id:a}=t.data||{};return n(new _e({code:"SYS_ERR",message:i||o||"request:fail",requestId:a||e}))}a({status:t.statusCode,data:t.data,headers:t.header,requestId:e})}})}))}function no(t,e){const{path:i,data:o,method:a="GET"}=t,{url:n,headers:s}=oo(i,{functionName:"",data:o,method:a,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:e});return ao({url:n,data:o,method:a,headers:s}).then((t=>{const e=t.data||{};if(!e.success)throw new _e({code:t.errCode,message:t.errMsg,requestId:t.requestId});return e.data||{}})).catch((t=>{throw new _e({code:t.errCode,message:t.errMsg,requestId:t.requestId})}))}function so(t=""){const e=t.trim().replace(/^cloud:\/\//,""),i=e.indexOf("/");if(i<=0)throw new _e({code:"INVALID_PARAM",message:"fileID不合法"});const o=e.substring(0,i),a=e.substring(i+1);return o!==this.config.spaceId&&console.warn("file ".concat(t," does not belong to env ").concat(this.config.spaceId)),a}function ro(t=""){return"cloud://".concat(this.config.spaceId,"/").concat(t.replace(/^\/+/,""))}class lo{constructor(t){this.config=t}signedURL(t,e={}){const i=`/ws/function/${t}`,o=this.config.wsEndpoint.replace(/^ws(s)?:\/\//,""),a=Object.assign({},e,{accessKeyId:this.config.accessKey,signatureNonce:io(),timestamp:""+Date.now()}),n=[i,["accessKeyId","authorization","signatureNonce","timestamp"].sort().map((function(t){return a[t]?"".concat(t,"=").concat(a[t]):null})).filter(Boolean).join("&"),`host:${o}`].join("\n"),s=["HMAC-SHA256",Xe(n).toString(eo)].join("\n"),r=Ye(s,this.config.secretKey).toString(eo),l=Object.keys(a).map((t=>`${t}=${encodeURIComponent(a[t])}`)).join("&");return`${this.config.wsEndpoint}${i}?${l}&signature=${r}`}}var co={init:t=>{t.provider="alipay";const e=new class{constructor(t){if(["spaceId","spaceAppId","accessKey","secretKey"].forEach((e=>{if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error(`${e} required`)})),t.endpoint){if("string"!=typeof t.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(t.endpoint))throw new Error("endpoint must start with https://");t.endpoint=t.endpoint.replace(/\/$/,"")}this.config=Object.assign({},t,{endpoint:t.endpoint||`https://${t.spaceId}.api-hz.cloudbasefunction.cn`,wsEndpoint:t.wsEndpoint||`wss://${t.spaceId}.api-hz.cloudbasefunction.cn`}),this._websocket=new lo(this.config)}callFunction(t){return function(t,e){const{name:i,data:o,async:a=!1}=t,n="POST",s={"x-to-function-name":i};a&&(s["x-function-invoke-type"]="async");const{url:r,headers:l}=oo("/functions/invokeFunction",{functionName:i,data:o,method:n,headers:s,signHeaderKeys:["x-to-function-name"],config:e});return ao({url:r,data:o,method:n,headers:l}).then((t=>{let e=0;if(a){const i=t.data||{};e="200"===i.errCode?0:i.errCode,t.data=i.data||{},t.errMsg=i.errMsg}if(0!==e)throw new _e({code:e,message:t.errMsg,requestId:t.requestId});return{errCode:e,success:0===e,requestId:t.requestId,result:t.data}})).catch((t=>{throw new _e({code:t.errCode,message:t.errMsg,requestId:t.requestId})}))}(t,this.config)}uploadFileToOSS({url:t,filePath:e,fileType:i,formData:o,onUploadProgress:a}){return new Promise(((n,s)=>{const r=Pe.uploadFile({url:t,filePath:e,fileType:i,formData:o,name:"file",success(t){t&&t.statusCode<400?n(t):s(new _e({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(t){s(new _e({code:t.code||"UPLOAD_FAILED",message:t.message||t.errMsg||"文件上传失败"}))}});"function"==typeof a&&r&&"function"==typeof r.onProgressUpdate&&r.onProgressUpdate((t=>{a({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}async uploadFile({filePath:t,cloudPath:e="",fileType:i="image",onUploadProgress:o}){if("string"!==Vt(e))throw new _e({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(e=e.trim()))throw new _e({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(e))throw new _e({code:"INVALID_PARAM",message:"cloudPath不合法"});const a=await no({path:"/".concat(e.replace(/^\//,""),"?post_url")},this.config),{file_id:n,upload_url:s,form_data:r}=a,l=r&&r.reduce(((t,e)=>(t[e.key]=e.value,t)),{});return this.uploadFileToOSS({url:s,filePath:t,fileType:i,formData:l,onUploadProgress:o}).then((()=>({fileID:n})))}async getTempFileURL({fileList:t}){return new Promise(((e,i)=>{(!t||t.length<0)&&i(new _e({errCode:"INVALID_PARAM",errMsg:"fileList不能为空数组"})),t.length>50&&i(new _e({errCode:"INVALID_PARAM",errMsg:"fileList数组长度不能超过50"}));const o=[];for(const a of t){"string"!==Vt(a)&&i(new _e({errCode:"INVALID_PARAM",errMsg:"fileList的元素必须是非空的字符串"}));const t=so.call(this,a);o.push({file_id:t,expire:600})}no({path:"/?download_url",data:{file_list:o},method:"POST"},this.config).then((t=>{const{file_list:i=[]}=t;e({fileList:i.map((t=>({fileID:ro.call(this,t.file_id),tempFileURL:t.download_url})))})})).catch((t=>i(t)))}))}async connectWebSocket(t){const{name:e,query:i}=t;return Pe.connectSocket({url:this._websocket.signedURL(e,i),complete:()=>{}})}}(t);return e.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},e}};function ho({data:t}){let e;e=ze();const i=JSON.parse(JSON.stringify(t||{}));if(Object.assign(i,{clientInfo:e}),!i.uniIdToken){const{token:t}=Ie();t&&(i.uniIdToken=t)}return i}const po=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}];var uo=/[\\^$.*+?()[\]{}|]/g,fo=RegExp(uo.source);function go(t,e,i){return t.replace(new RegExp((o=e)&&fo.test(o)?o.replace(uo,"\\$&"):o,"g"),i);var o}const yo=2e4,mo={code:20101,message:"Invalid client"};function xo(t){const{errSubject:e,subject:i,errCode:o,errMsg:a,code:n,message:s,cause:r}=t||{};return new _e({subject:e||i||"uni-secure-network",code:o||n||yo,message:a||s,cause:r})}let bo;function wo({secretType:t}={}){return"request"===t||"response"===t||"both"===t}function So({functionName:t,result:e,logPvd:i}){}function vo(t){const e=t.callFunction,i=function(i){const o=i.name;i.data=ho.call(t,{data:i.data});const a={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay"}[this.config.provider],n=wo(i)||false;return e.call(this,i).then((t=>(t.errCode=0,!n&&So.call(this,{functionName:o,result:t,logPvd:a}),Promise.resolve(t))),(t=>(!n&&So.call(this,{functionName:o,result:t,logPvd:a}),t&&t.message&&(t.message=function({message:t="",extraInfo:e={},formatter:i=[]}={}){for(let o=0;oi.provider===t&&i.spaceId===e));return o&&o.config}({provider:t,spaceId:e});if(!r||!r.accessControl||!r.accessControl.enable)return!1;const l=r.accessControl.function||{},c=Object.keys(l);if(0===c.length)return!0;const h=function(t,e){let i,o,a;for(let n=0;nt.trim())).indexOf(e)>-1&&(o=s):a=s:i=s}return i||o||a}(c,i);if(!h)return!1;if((l[h]||[]).find(((t={})=>t.appId===o&&(t.platform||"").toLowerCase()===s.toLowerCase())))return!0;throw console.error(`此应用[appId: ${o}, platform: ${s}]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client`),xo(mo)}({provider:o,spaceId:a,functionName:n})?new bo({secretType:e.secretType,uniCloudIns:t}).wrapVerifyClientCallFunction(i.bind(t))(e):s(e),Object.defineProperty(r,"result",{get:()=>(console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),r.then((t=>("undefined"!=typeof UTSJSONObject&&(t.result=new UTSJSONObject(t.result)),t)))}}bo=class{constructor(){throw xo({message:"Platform web is not supported by secure network"})}};const To=Symbol("CLIENT_DB_INTERNAL");function Co(t,e){return t.then="DoNotReturnProxyWithAFunctionNamedThen",t._internalType=To,t.inspect=null,t.__v_raw=void 0,new Proxy(t,{get(t,i,o){if("_uniClient"===i)return null;if("symbol"==typeof i)return t[i];if(i in t||"string"!=typeof i){const e=t[i];return"function"==typeof e?e.bind(t):e}return e.get(t,i,o)}})}function Ao(t){return{on:(e,i)=>{t[e]=t[e]||[],t[e].indexOf(i)>-1||t[e].push(i)},off:(e,i)=>{t[e]=t[e]||[];const o=t[e].indexOf(i);-1!==o&&t[e].splice(o,1)}}}const ko=["db.Geo","db.command","command.aggregate"];function Do(t,e){return ko.indexOf(`${t}.${e}`)>-1}function _o(t){switch(Vt(t=Le(t))){case"array":return t.map((t=>_o(t)));case"object":return t._internalType===To||Object.keys(t).forEach((e=>{t[e]=_o(t[e])})),t;case"regexp":return{$regexp:{source:t.source,flags:t.flags}};case"date":return{$date:t.toISOString()};default:return t}}function Po(t){return t&&t.content&&t.content.$method}class Lo{constructor(t,e,i){this.content=t,this.prevStage=e||null,this.udb=null,this._database=i}toJSON(){let t=this;const e=[t.content];for(;t.prevStage;)t=t.prevStage,e.push(t.content);return{$db:e.reverse().map((t=>({$method:t.$method,$param:_o(t.$param)})))}}toString(){return JSON.stringify(this.toJSON())}getAction(){const t=this.toJSON().$db.find((t=>"action"===t.$method));return t&&t.$param&&t.$param[0]}getCommand(){return{$db:this.toJSON().$db.filter((t=>"action"!==t.$method))}}get isAggregate(){let t=this;for(;t;){const e=Po(t),i=Po(t.prevStage);if("aggregate"===e&&"collection"===i||"pipeline"===e)return!0;t=t.prevStage}return!1}get isCommand(){let t=this;for(;t;){if("command"===Po(t))return!0;t=t.prevStage}return!1}get isAggregateCommand(){let t=this;for(;t;){const e=Po(t),i=Po(t.prevStage);if("aggregate"===e&&"command"===i)return!0;t=t.prevStage}return!1}getNextStageFn(t){const e=this;return function(){return Io({$method:t,$param:_o(Array.from(arguments))},e,e._database)}}get count(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}get remove(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}get(){return this._send("get",Array.from(arguments))}get add(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}update(){return this._send("update",Array.from(arguments))}end(){return this._send("end",Array.from(arguments))}get set(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}_send(t,e){const i=this.getAction(),o=this.getCommand();return o.$db.push({$method:t,$param:_o(e)}),this._database._callCloudFunction({action:i,command:o})}}function Io(t,e,i){return Co(new Lo(t,e,i),{get(t,e){let o="db";return t&&t.content&&(o=t.content.$method),Do(o,e)?Io({$method:e},t,i):function(){return Io({$method:e,$param:_o(Array.from(arguments))},t,i)}}})}function Mo({path:t,method:e}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...t.map((t=>({$method:t}))),{$method:e,$param:this.param}]}}toString(){return JSON.stringify(this.toJSON())}}}function Fo(t,e={}){return Co(new t(e),{get:(t,e)=>Do("db",e)?Io({$method:e},null,t):function(){return Io({$method:e,$param:_o(Array.from(arguments))},null,t)}})}class Oo extends class{constructor({uniClient:t={},isJQL:e=!1}={}){this._uniClient=t,this._authCallBacks={},this._dbCallBacks={},t._isDefault&&(this._dbCallBacks=ne("_globalUniCloudDatabaseCallback")),e||(this.auth=Ao(this._authCallBacks)),this._isJQL=e,Object.assign(this,Ao(this._dbCallBacks)),this.env=Co({},{get:(t,e)=>({$env:e})}),this.Geo=Co({},{get:(t,e)=>Mo({path:["Geo"],method:e})}),this.serverDate=Mo({path:[],method:"serverDate"}),this.RegExp=Mo({path:[],method:"RegExp"})}getCloudEnv(t){if("string"!=typeof t||!t.trim())throw new Error("getCloudEnv参数错误");return{$env:t.replace("$cloudEnv_","")}}_callback(t,e){const i=this._dbCallBacks;i[t]&&i[t].forEach((t=>{t(...e)}))}_callbackAuth(t,e){const i=this._authCallBacks;i[t]&&i[t].forEach((t=>{t(...e)}))}multiSend(){const t=Array.from(arguments),e=t.map((t=>{const e=t.getAction(),i=t.getCommand();if("getTemp"!==i.$db[i.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:e,command:i}}));return this._callCloudFunction({multiCommand:e,queryList:t})}}{_parseResult(t){return this._isJQL?t.result:t}_callCloudFunction({action:t,command:e,multiCommand:i,queryList:o}){function a(t,e){if(i&&o)for(let i=0;ihe(de(s,"complete"),t))).then((()=>(a(null,t),Te(fe,{type:me,content:t}),Promise.reject(t))))}const l=he(de(s,"invoke")),c=this._uniClient;return l.then((()=>c.callFunction({name:"DCloud-clientDB",type:"CLIENT_DB",data:{action:t,command:e,multiCommand:i}}))).then((t=>{const{code:e,message:i,token:o,tokenExpired:l,systemInfo:c=[]}=t.result;if(c)for(let a=0;a(console.warn(i),o)})}}return d=t,he(de(s,"success"),d).then((()=>he(de(s,"complete"),d))).then((()=>{a(d,null);const t=n._parseResult(d);return Te(fe,{type:me,content:t}),Promise.resolve(t)}));var d}),(t=>(/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(t.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),r(new _e({code:t.code||"SYSTEM_ERROR",message:t.message,requestId:t.requestId})))))}}const Eo="token无效,跳转登录页面",Ro="token过期,跳转登录页面",No={TOKEN_INVALID_TOKEN_EXPIRED:Ro,TOKEN_INVALID_INVALID_CLIENTID:Eo,TOKEN_INVALID:Eo,TOKEN_INVALID_WRONG_TOKEN:Eo,TOKEN_INVALID_ANONYMOUS_USER:Eo},zo={"uni-id-token-expired":Ro,"uni-id-check-token-failed":Eo,"uni-id-token-not-exist":Eo,"uni-id-check-device-feature-failed":Eo};function Bo(t,e){let i="";return i=t?`${t}/${e}`:e,i.replace(/^\//,"")}function Uo(t=[],e=""){const i=[],o=[];return t.forEach((t=>{!0===t.needLogin?i.push(Bo(e,t.path)):!1===t.needLogin&&o.push(Bo(e,t.path))})),{needLoginPage:i,notNeedLoginPage:o}}function jo(t){return t.split("?")[0].replace(/^\//,"")}function Wo(){return function(t){let e=t&&t.$page&&t.$page.fullPath||"";return e?("/"!==e.charAt(0)&&(e="/"+e),e):e}(function(){const t=D();return t[t.length-1]}())}function Ho(){return jo(Wo())}function Jo(t="",e={}){if(!t)return!1;if(!(e&&e.list&&e.list.length))return!1;const i=e.list,o=jo(t);return i.some((t=>t.pagePath===o))}const qo=!!Nt.uniIdRouter,{loginPage:Ko,routerNeedLogin:Vo,resToLogin:Go,needLoginPage:Xo,notNeedLoginPage:Yo,loginPageInTabBar:Qo}=function({pages:t=[],subPackages:e=[],uniIdRouter:i={},tabBar:o={}}=Nt){const{loginPage:a,needLogin:n=[],resToLogin:s=!0}=i,{needLoginPage:r,notNeedLoginPage:l}=Uo(t),{needLoginPage:c,notNeedLoginPage:h}=function(t=[]){const e=[],i=[];return t.forEach((t=>{const{root:o,pages:a=[]}=t,{needLoginPage:n,notNeedLoginPage:s}=Uo(a,o);e.push(...n),i.push(...s)})),{needLoginPage:e,notNeedLoginPage:i}}(e);return{loginPage:a,routerNeedLogin:n,resToLogin:s,needLoginPage:[...r,...c],notNeedLoginPage:[...l,...h],loginPageInTabBar:Jo(a,o)}}();if(Xo.indexOf(Ko)>-1)throw new Error(`Login page [${Ko}] should not be "needLogin", please check your pages.json`);function Zo(t){const e=Ho();if("/"===t.charAt(0))return t;const[i,o]=t.split("?"),a=i.replace(/^\//,"").split("/"),n=e.split("/");n.pop();for(let s=0;s-1?o+`&uniIdRedirectUrl=${encodeURIComponent(a)}`:o+`?uniIdRedirectUrl=${encodeURIComponent(a)}`:o);var o,a;Qo?"navigateTo"!==t&&"redirectTo"!==t||(t="switchTab"):"switchTab"===t&&(t="navigateTo");const n={navigateTo:u,redirectTo:J,switchTab:q,reLaunch:K};setTimeout((()=>{n[t]({url:i})}),0)}function ea({url:t}={}){const e={abortLoginPageJump:!1,autoToLoginPage:!1},i=function(){const{token:t,tokenExpired:e}=Ie();let i;if(t){if(e-1)&&(Xo.indexOf(e)>-1||Vo.some((e=>{return i=t,new RegExp(e).test(i);var i})))}(t)&&i){if(i.uniIdRedirectUrl=t,we(ge).length>0)return setTimeout((()=>{Te(ge,i)}),0),e.abortLoginPageJump=!0,e;e.autoToLoginPage=!0}return e}function ia(){!function(){const t=Wo(),{abortLoginPageJump:e,autoToLoginPage:i}=ea({url:t});e||i&&ta({api:"redirectTo",redirect:t})}();const t=["navigateTo","redirectTo","reLaunch","switchTab"];for(let e=0;e{const{type:e,content:i}=t;let o=!1;switch(e){case"cloudobject":o=function(t){if("object"!=typeof t)return!1;const{errCode:e}=t||{};return e in zo}(i);break;case"clientdb":o=function(t){if("object"!=typeof t)return!1;const{errCode:e}=t||{};return e in No}(i)}o&&function(t={}){const e=we(ge);ke().then((()=>{const i=Wo();if(i&&$o({redirect:i}))return e.length>0?Te(ge,Object.assign({uniIdRedirectUrl:i},t)):void(Ko&&ta({api:"navigateTo",redirect:i}))}))}(i)}))}function aa(t){var e;(e=t).onResponse=function(t){Se(fe,t)},e.offResponse=function(t){ve(fe,t)},function(t){t.onNeedLogin=function(t){Se(ge,t)},t.offNeedLogin=function(t){ve(ge,t)},qo&&(ne("_globalUniCloudStatus").needLoginInit||(ne("_globalUniCloudStatus").needLoginInit=!0,ke().then((()=>{ia.call(t)})),Go&&oa.call(t)))}(t),function(t){t.onRefreshToken=function(t){Se(ye,t)},t.offRefreshToken=function(t){ve(ye,t)}}(t)}let na;const sa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ra=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function la(){const t=Ie().token||"",e=t.split(".");if(!t||3!==e.length)return{uid:null,role:[],permission:[],tokenExpired:0};let i;try{i=JSON.parse((o=e[1],decodeURIComponent(na(o).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(a){throw new Error("获取当前用户信息出错,详细错误信息为:"+a.message)}var o;return i.tokenExpired=1e3*i.exp,delete i.exp,delete i.iat,i}na="function"!=typeof atob?function(t){if(t=String(t).replace(/[\t\n\f\r ]+/g,""),!ra.test(t))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var e;t+="==".slice(2-(3&t.length));for(var i,o,a="",n=0;n>16&255):64===o?String.fromCharCode(e>>16&255,e>>8&255):String.fromCharCode(e>>16&255,e>>8&255,255&e);return a}:atob;var ca=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(zt((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const i="chooseAndUploadFile:ok",o="chooseAndUploadFile:fail";function a(t,e){return t.tempFiles.forEach(((t,i)=>{t.name||(t.name=t.path.substring(t.path.lastIndexOf("/")+1)),e&&(t.fileType=e),t.cloudPath=Date.now()+"_"+i+t.name.substring(t.name.lastIndexOf("."))})),t.tempFilePaths||(t.tempFilePaths=t.tempFiles.map((t=>t.path))),t}function n(t,e,{onChooseFile:o,onUploadProgress:a}){return e.then((t=>{if(o){const e=o(t);if(void 0!==e)return Promise.resolve(e).then((e=>void 0===e?t:e))}return t})).then((e=>!1===e?{errMsg:i,tempFilePaths:[],tempFiles:[]}:function(t,e,o=5,a){(e=Object.assign({},e)).errMsg=i;const n=e.tempFiles,s=n.length;let r=0;return new Promise((i=>{for(;r=s)return void(!n.find((t=>!t.url&&!t.errMsg))&&i(e));const c=n[o];t.uploadFile({provider:c.provider,filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,cloudPathAsRealPath:c.cloudPathAsRealPath,onUploadProgress(t){t.index=o,t.tempFile=c,t.tempFilePath=c.path,a&&a(t)}}).then((t=>{c.url=t.fileID,o{c.errMsg=t.errMsg||t.message,o{A({count:e,sizeType:i,sourceType:n,extension:s,success(e){t(a(e,"image"))},fail(t){r({errMsg:t.errMsg.replace("chooseImage:fail",o)})}})}))}(e),e):"video"===e.type?n(t,function(t){const{camera:e,compressed:i,maxDuration:n,sourceType:s=["album","camera"],extension:r}=t;return new Promise(((t,l)=>{k({camera:e,compressed:i,maxDuration:n,sourceType:s,extension:r,success(e){const{tempFilePath:i,duration:o,size:n,height:s,width:r}=e;t(a({errMsg:"chooseVideo:ok",tempFilePaths:[i],tempFiles:[{name:e.tempFile&&e.tempFile.name||"",path:i,size:n,type:e.tempFile&&e.tempFile.type||"",width:r,height:s,duration:o,fileType:"video",cloudPath:""}]},"video"))},fail(t){l({errMsg:t.errMsg.replace("chooseVideo:fail",o)})}})}))}(e),e):n(t,function(t){const{count:e,extension:i}=t;return new Promise(((t,n)=>{let s=P;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(s=wx.chooseMessageFile),"function"!=typeof s)return n({errMsg:o+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});s({type:"all",count:e,extension:i,success(e){t(a(e))},fail(t){n({errMsg:t.errMsg.replace("chooseFile:fail",o)})}})}))}(e),e)}}})));function ha(t){return{props:{localdata:{type:Array,default:()=>[]},options:{type:[Object,Array],default:()=>({})},spaceInfo:{type:Object,default:()=>({})},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:()=>({mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}),created(){this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((()=>{var t=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((e=>{t.push(this[e])})),t}),((t,e)=>{if("manual"===this.loadtime)return;let i=!1;const o=[];for(let a=2;a{this.mixinDatacomLoading=!1;const{data:o,count:a}=i.result;this.getcount&&(this.mixinDatacomPage.count=a),this.mixinDatacomHasMore=o.length{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=t,this.mixinDatacomError=t,i&&i(t)})))},mixinDatacomGet(e={}){let i;e=e||{},i="undefined"!=typeof __uniX&&__uniX?t.databaseForJQL(this.spaceInfo):t.database(this.spaceInfo);const o=e.action||this.action;o&&(i=i.action(o));const a=e.collection||this.collection;i=Array.isArray(a)?i.collection(...a):i.collection(a);const n=e.where||this.where;n&&Object.keys(n).length&&(i=i.where(n));const s=e.field||this.field;s&&(i=i.field(s));const r=e.foreignKey||this.foreignKey;r&&(i=i.foreignKey(r));const l=e.groupby||this.groupby;l&&(i=i.groupBy(l));const c=e.groupField||this.groupField;c&&(i=i.groupField(c)),!0===(void 0!==e.distinct?e.distinct:this.distinct)&&(i=i.distinct());const h=e.orderby||this.orderby;h&&(i=i.orderBy(h));const d=void 0!==e.pageCurrent?e.pageCurrent:this.mixinDatacomPage.current,p=void 0!==e.pageSize?e.pageSize:this.mixinDatacomPage.size,u=void 0!==e.getcount?e.getcount:this.getcount,f=void 0!==e.gettree?e.gettree:this.gettree,g=void 0!==e.gettreepath?e.gettreepath:this.gettreepath,y={getCount:u},m={limitLevel:void 0!==e.limitlevel?e.limitlevel:this.limitlevel,startWith:void 0!==e.startwith?e.startwith:this.startwith};return f&&(y.getTree=m),g&&(y.getTreePath=m),i=i.skip(p*(d-1)).limit(p).get(y),i}}}}function da(t){return ne("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",t.config.spaceId))}async function pa({openid:t,callLoginByWeixin:e=!1}={}){throw da(this),new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `web`")}async function ua(t){const e=da(this);return e.initPromise||(e.initPromise=pa.call(this,t).then((t=>t)).catch((t=>{throw delete e.initPromise,t}))),e.initPromise}function fa(t){Ne=t}function ga(t){const e={getSystemInfo:V,getPushClientId:G};return function(i){return new Promise(((o,a)=>{e[t]({...i,success(t){o(t)},fail(t){a(t)}})}))}}class ya extends class{constructor(){this._callback={}}addListener(t,e){this._callback[t]||(this._callback[t]=[]),this._callback[t].push(e)}on(t,e){return this.addListener(t,e)}removeListener(t,e){if(!e)throw new Error('The "listener" argument must be of type function. Received undefined');const i=this._callback[t];if(!i)return;const o=function(t,e){for(let i=t.length-1;i>=0;i--)if(t[i]===e)return i;return-1}(i,e);i.splice(o,1)}off(t,e){return this.removeListener(t,e)}removeAllListener(t){delete this._callback[t]}emit(t,...e){const i=this._callback[t];if(i)for(let o=0;o{if(!t)throw new Error("Invalid appId, please check the manifest.json file");if(!e)throw new Error("Invalid push client id");this._appId=t,this._pushClientId=e,this._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),this.emit("open"),this._initMessageListener()}),(t=>{throw this.emit("error",t),this.close(),t}))}async open(){return this.init()}_isUniCloudSSE(t){if("receive"!==t.type)return!1;const e=t&&t.data&&t.data.payload;return!(!e||"UNI_CLOUD_SSE"!==e.channel||e.seqId!==this._seqId)}_receivePushMessage(t){if(!this._isUniCloudSSE(t))return;const e=t&&t.data&&t.data.payload,{action:i,messageId:o,message:a}=e;this._payloadQueue.push({action:i,messageId:o,message:a}),this._consumMessage()}_consumMessage(){for(;;){const t=this._payloadQueue.find((t=>t.messageId===this._currentMessageId+1));if(!t)break;this._currentMessageId++,this._parseMessagePayload(t)}}_parseMessagePayload(t){const{action:e,messageId:i,message:o}=t;"end"===e?this._end({messageId:i,message:o}):"message"===e&&this._appendMessage({messageId:i,message:o})}_appendMessage({messageId:t,message:e}={}){this.emit("message",e)}_end({messageId:t,message:e}={}){this.emit("end",e),this.close()}_initMessageListener(){O(this._uniPushMessageCallback)}_destroy(){E(this._uniPushMessageCallback)}toJSON(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}close(){this._destroy(),this.emit("close")}}const ma={tcb:Zi,tencent:Zi,aliyun:He,private:to,alipay:co};let xa=new class{init(t){let e={};const i=ma[t.provider];if(!i)throw new Error("未提供正确的provider参数");var o;return e=i.init(t),function(t){t._initPromiseHub||(t._initPromiseHub=new $t({createPromise:function(){let e=Promise.resolve();e=new Promise((t=>{setTimeout((()=>{t()}),1)}));const i=t.auth();return e.then((()=>i.getLoginState())).then((t=>t?Promise.resolve():i.signInAnonymously()))}}))}(e),vo(e),function(t){const e=t.uploadFile;t.uploadFile=function(t){return e.call(this,t)}}(e),(o=e).database=function(t){if(t&&Object.keys(t).length>0)return o.init(t).database();if(this._database)return this._database;const e=Fo(Oo,{uniClient:o});return this._database=e,e},o.databaseForJQL=function(t){if(t&&Object.keys(t).length>0)return o.init(t).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;const e=Fo(Oo,{uniClient:o,isJQL:!0});return this._databaseForJQL=e,e},function(t){t.getCurrentUserInfo=la,t.chooseAndUploadFile=ca.initChooseAndUploadFile(t),Object.assign(t,{get mixinDatacom(){return ha(t)}}),t.SSEChannel=ya,t.initSecureNetworkByWeixin=function(t){return function({openid:e,callLoginByWeixin:i=!1}={}){return ua.call(t,{openid:e,callLoginByWeixin:i})}}(t),t.setCustomClientInfo=fa,t.importObject=function(e){return function(i,o={}){o=function(t,e={}){return t.customUI=e.customUI||t.customUI,t.parseSystemError=e.parseSystemError||t.parseSystemError,Object.assign(t.loadingOptions,e.loadingOptions),Object.assign(t.errorOptions,e.errorOptions),"object"==typeof e.secretMethods&&(t.secretMethods=e.secretMethods),t}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},o);const{customUI:a,loadingOptions:n,errorOptions:s,parseSystemError:r}=o,l=!a;return new Proxy({},{get(a,c){switch(c){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function({fn:t,interceptorName:e,getCallbackArgs:i}={}){return async function(...o){const a=i?i({params:o}):{};let n,s;try{return await he(de(e,"invoke"),{...a}),n=await t(...o),await he(de(e,"success"),{...a,result:n}),n}catch(r){throw s=r,await he(de(e,"fail"),{...a,error:s}),s}finally{await he(de(e,"complete"),s?{...a,error:s}:{...a,result:n})}}}({fn:async function a(...h){let d;l&&L({title:n.title,mask:n.mask});const p={name:i,type:"OBJECT",data:{method:c,params:h}};"object"==typeof o.secretMethods&&function(t,e){const i=e.data.method,o=t.secretMethods||{},a=o[i]||o["*"];a&&(e.secretType=a)}(o,p);let u=!1;try{d=await e.callFunction(p)}catch(t){u=!0,d={result:new _e(t)}}const{errSubject:f,errCode:g,errMsg:y,newToken:m}=d.result||{};if(l&&I(),m&&m.token&&m.tokenExpired&&(Me(m),Te(ye,{...m})),g){let t=y;if(u&&r&&(t=(await r({objectName:i,methodName:c,params:h,errSubject:f,errCode:g,errMsg:y})).errMsg||y),l)if("toast"===s.type)M({title:t,icon:"none"});else{if("modal"!==s.type)throw new Error(`Invalid errorOptions.type: ${s.type}`);{const{confirm:e}=await async function({title:t,content:e,showCancel:i,cancelText:o,confirmText:a}={}){return new Promise(((n,s)=>{F({title:t,content:e,showCancel:i,cancelText:o,confirmText:a,success(t){n(t)},fail(){n({confirm:!1,cancel:!0})}})}))}({title:"提示",content:t,showCancel:s.retry,cancelText:"取消",confirmText:s.retry?"重试":"确定"});if(s.retry&&e)return a(...h)}}const e=new _e({subject:f,code:g,message:y,requestId:d.requestId});throw e.detail=d.result,Te(fe,{type:be,content:e}),e}return Te(fe,{type:be,content:d.result}),d.result},interceptorName:"callObject",getCallbackArgs:function({params:t}={}){return{objectName:i,methodName:c,params:t}}})}})}}(t)}(e),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((t=>{if(!e[t])return;const i=e[t];e[t]=function(){return i.apply(e,Array.from(arguments))},e[t]=function(t,e){return function(i){let o=!1;if("callFunction"===e){const t=i&&i.type||Jt;o=t!==Jt}const a="callFunction"===e&&!o,n=this._initPromiseHub.exec();i=i||{};const{success:s,fail:r,complete:l}=De(i),c=n.then((()=>o?Promise.resolve():he(de(e,"invoke"),i))).then((()=>t.call(this,i))).then((t=>o?Promise.resolve(t):he(de(e,"success"),t).then((()=>he(de(e,"complete"),t))).then((()=>(a&&Te(fe,{type:xe,content:t}),Promise.resolve(t))))),(t=>o?Promise.reject(t):he(de(e,"fail"),t).then((()=>he(de(e,"complete"),t))).then((()=>(Te(fe,{type:xe,content:t}),Promise.reject(t))))));if(!(s||r||l))return c;c.then((t=>{s&&s(t),l&&l(t),a&&Te(fe,{type:xe,content:t})}),(t=>{r&&r(t),l&&l(t),a&&Te(fe,{type:xe,content:t})}))}}(e[t],t).bind(e)})),e.init=this.init,e}};(()=>{const t=ie;let e={};if(t&&1===t.length)e=t[0],xa=xa.init(e),xa._isDefault=!0;else{const e=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"];let i;i=t&&t.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",e.forEach((t=>{xa[t]=function(){return console.error(i),Promise.reject(new _e({code:"SYS_ERR",message:i}))}}))}Object.assign(xa,{get mixinDatacom(){return ha(xa)}}),aa(xa),xa.addInterceptor=le,xa.removeInterceptor=ce,xa.interceptObject=pe})();var ba=xa;const wa=mt({components:{Loading1:mt({name:"loading1",data:()=>({})},[["render",function(o,n,s,r,l,c){const h=d;return t(),e(h,{class:"container loading1"},{default:i((()=>[a(h,{class:"shape shape1"}),a(h,{class:"shape shape2"}),a(h,{class:"shape shape3"}),a(h,{class:"shape shape4"})])),_:1})}],["__scopeId","data-v-a16ea79e"]]),Loading2:mt({name:"loading2",data:()=>({})},[["render",function(o,n,s,r,l,c){const h=d;return t(),e(h,{class:"container loading2"},{default:i((()=>[a(h,{class:"shape shape1"}),a(h,{class:"shape shape2"}),a(h,{class:"shape shape3"}),a(h,{class:"shape shape4"})])),_:1})}],["__scopeId","data-v-51d40d8b"]]),Loading3:mt({name:"loading3",data:()=>({})},[["render",function(o,n,s,r,l,c){const h=d;return t(),e(h,{class:"container loading3"},{default:i((()=>[a(h,{class:"shape shape1"}),a(h,{class:"shape shape2"}),a(h,{class:"shape shape3"}),a(h,{class:"shape shape4"})])),_:1})}],["__scopeId","data-v-47408335"]]),Loading4:mt({name:"loading5",data:()=>({})},[["render",function(o,n,s,r,l,c){const h=d;return t(),e(h,{class:"container loading5"},{default:i((()=>[a(h,{class:"shape shape1"}),a(h,{class:"shape shape2"}),a(h,{class:"shape shape3"}),a(h,{class:"shape shape4"})])),_:1})}],["__scopeId","data-v-49a6258a"]]),Loading5:mt({name:"loading6",data:()=>({})},[["render",function(o,n,s,r,l,c){const h=d;return t(),e(h,{class:"container loading6"},{default:i((()=>[a(h,{class:"shape shape1"}),a(h,{class:"shape shape2"}),a(h,{class:"shape shape3"}),a(h,{class:"shape shape4"})])),_:1})}],["__scopeId","data-v-08a06125"]])},name:"qiun-loading",props:{loadingType:{type:Number,default:2}},data:()=>({})},[["render",function(o,a,s,r,l,c){const h=Q("Loading1"),p=Q("Loading2"),u=Q("Loading3"),f=Q("Loading4"),g=Q("Loading5"),y=d;return t(),e(y,null,{default:i((()=>[1==s.loadingType?(t(),e(h,{key:0})):n("",!0),2==s.loadingType?(t(),e(p,{key:1})):n("",!0),3==s.loadingType?(t(),e(u,{key:2})):n("",!0),4==s.loadingType?(t(),e(f,{key:3})):n("",!0),5==s.loadingType?(t(),e(g,{key:4})):n("",!0)])),_:1})}]]);const Sa=mt({name:"qiun-error",props:{errorMessage:{type:String,default:null}},data:()=>({})},[["render",function(o,n,l,c,h,p){const u=d;return t(),e(u,{class:"chartsview"},{default:i((()=>[a(u,{class:"charts-error"}),a(u,{class:"charts-font"},{default:i((()=>[s(r(null==l.errorMessage?"请点击重试":l.errorMessage),1)])),_:1})])),_:1})}],["__scopeId","data-v-af32de60"]]);var va={version:"v2.5.0-20230101",yAxisWidth:15,xAxisHeight:22,padding:[10,10,10,10],rotate:!1,fontSize:13,fontColor:"#666666",dataPointShape:["circle","circle","circle","circle"],color:["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],linearColor:["#0EE2F8","#2BDCA8","#FA7D8D","#EB88E2","#2AE3A0","#0EE2F8","#EB88E2","#6773E3","#F78A85"],pieChartLinePadding:15,pieChartTextPadding:5,titleFontSize:20,subtitleFontSize:15,radarLabelTextMargin:13},Ta=function(t,...e){if(null==t)throw new TypeError("[uCharts] Cannot convert undefined or null to object");if(!e||e.length<=0)return t;function i(t,e){for(let o in e)t[o]=t[o]&&"[object Object]"===t[o].toString()?i(t[o],e[o]):t[o]=e[o];return t}return e.forEach((e=>{t=i(t,e)})),t},Ca={toFixed:function(t,e){return e=e||2,this.isFloat(t)&&(t=t.toFixed(e)),t},isFloat:function(t){return t%1!=0},approximatelyEqual:function(t,e){return Math.abs(t-e)<1e-10},isSameSign:function(t,e){return Math.abs(t)===t&&Math.abs(e)===e||Math.abs(t)!==t&&Math.abs(e)!==e},isSameXCoordinateArea:function(t,e){return this.isSameSign(t.x,e.x)},isCollision:function(t,e){return t.end={},t.end.x=t.start.x+t.width,t.end.y=t.start.y-t.height,e.end={},e.end.x=e.start.x+e.width,e.end.y=e.start.y-e.height,!(e.start.x>t.end.x||e.end.xt.start.y||e.start.y1&&(a.extra.mount.widthRatio>2&&(a.extra.mount.widthRatio=2),s+=(a.extra.mount.widthRatio-1)*i.eachSpacing);var r=e;return e>=0?(r=0,t.uevent.trigger("scrollLeft"),t.scrollOption.position="left",a.xAxis.scrollPosition="left"):Math.abs(e)>=s-n?(r=n-s,t.uevent.trigger("scrollRight"),t.scrollOption.position="right",a.xAxis.scrollPosition="right"):(t.scrollOption.position=e,a.xAxis.scrollPosition=e),r}function _a(t,e,i){function o(t){for(;t<0;)t+=2*Math.PI;for(;t>2*Math.PI;)t-=2*Math.PI;return t}return t=o(t),(e=o(e))>(i=o(i))&&(i+=2*Math.PI,t=e&&t<=i}function Pa(t,e){function i(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].y>=Math.max(t[e-1].y,t[e+1].y)||t[e].y<=Math.min(t[e-1].y,t[e+1].y))}function o(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].x>=Math.max(t[e-1].x,t[e+1].x)||t[e].x<=Math.min(t[e-1].x,t[e+1].x))}var a=.2,n=.2,s=null,r=null,l=null,c=null;if(e<1?(s=t[0].x+(t[1].x-t[0].x)*a,r=t[0].y+(t[1].y-t[0].y)*a):(s=t[e].x+(t[e+1].x-t[e-1].x)*a,r=t[e].y+(t[e+1].y-t[e-1].y)*a),e>t.length-3){var h=t.length-1;l=t[h].x-(t[h].x-t[h-1].x)*n,c=t[h].y-(t[h].y-t[h-1].y)*n}else l=t[e+1].x-(t[e+2].x-t[e].x)*n,c=t[e+1].y-(t[e+2].y-t[e].y)*n;return i(t,e+1)&&(c=t[e+1].y),i(t,e)&&(r=t[e].y),o(t,e+1)&&(l=t[e+1].x),o(t,e)&&(s=t[e].x),(r>=Math.max(t[e].y,t[e+1].y)||r<=Math.min(t[e].y,t[e+1].y))&&(r=t[e].y),(c>=Math.max(t[e].y,t[e+1].y)||c<=Math.min(t[e].y,t[e+1].y))&&(c=t[e+1].y),(s>=Math.max(t[e].x,t[e+1].x)||s<=Math.min(t[e].x,t[e+1].x))&&(s=t[e].x),(l>=Math.max(t[e].x,t[e+1].x)||l<=Math.min(t[e].x,t[e+1].x))&&(l=t[e+1].x),{ctrA:{x:s,y:r},ctrB:{x:l,y:c}}}function La(t,e,i){return{x:i.x+t,y:i.y-e}}function Ia(t,e){if(e)for(;Ca.isCollision(t,e);)t.start.x>0?t.start.y--:t.start.x<0||t.start.y>0?t.start.y++:t.start.y--;return t}function Ma(t,e,i){for(var o=0,a=0;a-1;if(n){let e=Ja(t);for(var s=0;s5&&void 0!==arguments[5]?arguments[5]:{},s=e.chartData.calPoints?e.chartData.calPoints:[];let r={};if(o.length>0){let t=[];for(let e=0;e0&&(o=a[i]),{text:n.formatter?n.formatter(t,o,i,e):t.name+": "+t.data,color:t.color,legendShape:"auto"==e.extra.tooltip.legendShape?t.legendShape:e.extra.tooltip.legendShape}})),c={x:Math.round(r.x),y:Math.round(r.y)};return{textList:l,offset:c}}function Wa(t,e,i,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},n=e.chartData.xAxisPoints[i]+e.chartData.eachSpacing/2,s=t.map((function(t){return{text:a.formatter?a.formatter(t,o[i],i,e):t.name+": "+t.data,color:t.color,disableLegend:!!t.disableLegend,legendShape:"auto"==e.extra.tooltip.legendShape?t.legendShape:e.extra.tooltip.legendShape}}));s=s.filter((function(t){if(!0!==t.disableLegend)return t}));var r={x:Math.round(n),y:0};return{textList:s,offset:r}}function Ha(t,e,i,o,a,n){var s=i.chartData.calPoints;let r=n.color.upFill,l=n.color.downFill,c=[r,r,l,r];var h=[];e.map((function(e){0==o?e.data[1]-e.data[0]<0?c[1]=l:c[1]=r:(e.data[0]t[o-1][1]&&(c[2]=r),e.data[3]=e.area[3]-10&&t.y>=e.area[0]&&t.y<=e.height-e.area[2]}function Ka(t,e,i){return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(i,2)}function Va(t,e){var i=[],o=[];return t.forEach((function(t,a){e.connectNulls?null!==t&&o.push(t):null!==t?o.push(t):(o.length&&i.push(o),o=[])})),o.length&&i.push(o),i}function Ga(t,e,i,o,a){var n={angle:0,xAxisHeight:e.xAxis.lineHeight*e.pix+e.xAxis.marginTop*e.pix},s=e.xAxis.fontSize*e.pix,r=t.map((function(t,i){var o=e.xAxis.formatter?e.xAxis.formatter(t,i,e):t;return Oa(String(o),s,a)})),l=Math.max.apply(this,r);if(1==e.xAxis.rotateLabel){n.angle=e.xAxis.rotateAngle*Math.PI/180;let t=e.xAxis.marginTop*e.pix*2+Math.abs(l*Math.sin(n.angle));t=t4&&void 0!==arguments[4]?arguments[4]:-1;a="stack"==o?Ra(t,e.categories.length):Ea(t);var s=[];(a=a.filter((function(t){return"object"==typeof t&&null!==t?t.constructor.toString().indexOf("Array")>-1?null!==t:null!==t.value:null!==t}))).map((function(t){"object"==typeof t?t.constructor.toString().indexOf("Array")>-1?"candle"==e.type?t.map((function(t){s.push(t)})):s.push(t[0]):s.push(t.value):s.push(t)}));var r=0,l=0;if(s.length>0&&(r=Math.min.apply(this,s),l=Math.max.apply(this,s)),n>-1?("number"==typeof e.xAxis.data[n].min&&(r=Math.min(e.xAxis.data[n].min,r)),"number"==typeof e.xAxis.data[n].max&&(l=Math.max(e.xAxis.data[n].max,l))):("number"==typeof e.xAxis.min&&(r=Math.min(e.xAxis.min,r)),"number"==typeof e.xAxis.max&&(l=Math.max(e.xAxis.max,l))),r===l){l+=l||10}for(var c=r,h=[],d=(l-c)/e.xAxis.splitNumber,p=0;p<=e.xAxis.splitNumber;p++)h.push(c+d*p);return h}(t,e,i,a.type),n.rangesFormat=n.ranges.map((function(t){return t=Ca.toFixed(t,2)}));var s=n.ranges.map((function(t){return t=Ca.toFixed(t,2)}));return(n=Object.assign(n,hn(s,e))).eachSpacing,s.map((function(t){return Oa(t,e.xAxis.fontSize*e.pix,o)})),!0===e.xAxis.disabled&&(n.xAxisHeight=0),n}function Ya(t,e,i,o,a){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,s=a.extra.radar||{};s.max=s.max||0;var r=Math.max(s.max,Math.max.apply(null,Ea(o))),l=[];for(let c=0;c2&&void 0!==arguments[2]?arguments[2]:1,o=0,a=0;for(let n=0;n4&&void 0!==arguments[4]?arguments[4]:1;for(let n=0;n4&&void 0!==arguments[4]?arguments[4]:1,n=0,s=0,r=[];for(let d=0;d2&&void 0!==arguments[2]?arguments[2]:1;1==i&&(i=.999999);for(let o=0;o=2&&(n._proportion_=n._proportion_%2)}return t}function en(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;1==i&&(i=.999999);for(let o=0;o=2&&(n._proportion_=n._proportion_%2)}return t}function on(t,e,i){let o;o=i=2&&(t[n]._endAngle_=t[n]._endAngle_%2),a=t[n]._endAngle_;return t}function an(t,e,i){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;for(let a=0;a=i.oldData?s._proportion_=(s._endAngle_-s._oldAngle_)*o+i.oldAngle:s._proportion_=s._oldAngle_-(s._oldAngle_-s._endAngle_)*o,s._proportion_>=2&&(s._proportion_=s._proportion_%2)}return t}function nn(t,e,i,o,a,n){return t.map((function(t){if(null===t)return null;var a=0,s=0;return"mix"==n.type?(a=n.extra.mix.column.seriesGap*n.pix||0,s=n.extra.mix.column.categoryGap*n.pix||0):(a=n.extra.column.seriesGap*n.pix||0,s=n.extra.column.categoryGap*n.pix||0),a=Math.min(a,e/i),s=Math.min(s,e/i),t.width=Math.ceil((e-2*s-a*(i-1))/i),n.extra.mix&&n.extra.mix.column.width&&+n.extra.mix.column.width>0&&(t.width=Math.min(t.width,+n.extra.mix.column.width*n.pix)),n.extra.column&&n.extra.column.width&&+n.extra.column.width>0&&(t.width=Math.min(t.width,+n.extra.column.width*n.pix)),t.width<=0&&(t.width=1),t.x+=(o+.5-i/2)*(t.width+a),t}))}function sn(t,e,i,o,a,n){return t.map((function(t){if(null===t)return null;var a=0,s=0;return a=n.extra.bar.seriesGap*n.pix||0,s=n.extra.bar.categoryGap*n.pix||0,a=Math.min(a,e/i),s=Math.min(s,e/i),t.width=Math.ceil((e-2*s-a*(i-1))/i),n.extra.bar&&n.extra.bar.width&&+n.extra.bar.width>0&&(t.width=Math.min(t.width,+n.extra.bar.width*n.pix)),t.width<=0&&(t.width=1),t.y+=(o+.5-i/2)*(t.width+a),t}))}function rn(t,e,i,o,a,n,s){var r=n.extra.column.categoryGap*n.pix||0;return t.map((function(t){return null===t?null:(t.width=e-2*r,n.extra.column&&n.extra.column.width&&+n.extra.column.width>0&&(t.width=Math.min(t.width,+n.extra.column.width*n.pix)),o>0&&(t.width-=s),t)}))}function ln(t,e,i,o,a,n,s){var r=n.extra.column.categoryGap*n.pix||0;return t.map((function(t,i){return null===t?null:(t.width=Math.ceil(e-2*r),n.extra.column&&n.extra.column.width&&+n.extra.column.width>0&&(t.width=Math.min(t.width,+n.extra.column.width*n.pix)),t.width<=0&&(t.width=1),t)}))}function cn(t,e,i,o,a,n,s){var r=n.extra.bar.categoryGap*n.pix||0;return t.map((function(t,i){return null===t?null:(t.width=Math.ceil(e-2*r),n.extra.bar&&n.extra.bar.width&&+n.extra.bar.width>0&&(t.width=Math.min(t.width,+n.extra.bar.width*n.pix)),t.width<=0&&(t.width=1),t)}))}function hn(t,e,i){var o=e.width-e.area[1]-e.area[3],a=e.enableScroll?Math.min(e.xAxis.itemCount,t.length):t.length;("line"==e.type||"area"==e.type||"scatter"==e.type||"bubble"==e.type||"bar"==e.type)&&a>1&&"justify"==e.xAxis.boundaryGap&&(a-=1);var n=0;"mount"==e.type&&e.extra&&e.extra.mount&&e.extra.mount.widthRatio&&e.extra.mount.widthRatio>1&&(e.extra.mount.widthRatio>2&&(e.extra.mount.widthRatio=2),a+=n=e.extra.mount.widthRatio-1);var s=o/a,r=[],l=e.area[3],c=e.width-e.area[1];return t.forEach((function(t,e){r.push(l+n/2*s+e*s)})),"justify"!==e.xAxis.boundaryGap&&(!0===e.enableScroll?r.push(l+n*s+t.length*s):r.push(c)),{xAxisPoints:r,startX:l,endX:c,eachSpacing:s}}function dn(t,e,i,o,a,n,s){var r=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l=[],c=n.height-n.area[0]-n.area[2];return t.forEach((function(t,s){if(null===t)l.push(null);else{var h=[];t.forEach((function(t,l){var d={};d.x=o[s]+Math.round(a/2);var p=t.value||t,u=c*(p-e)/(i-e);u*=r,d.y=n.height-Math.round(u)-n.area[2],h.push(d)})),l.push(h)}})),l}function pn(t,e,i,o,a,n,s){var r=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l="center";"line"!=n.type&&"area"!=n.type&&"scatter"!=n.type&&"bubble"!=n.type||(l=n.xAxis.boundaryGap);var c=[],h=n.height-n.area[0]-n.area[2],d=n.width-n.area[1]-n.area[3];return t.forEach((function(t,s){if(null===t)c.push(null);else{var p={};p.color=t.color,p.x=o[s];var u=t;if("object"==typeof t&&null!==t)if(t.constructor.toString().indexOf("Array")>-1){let e,i,o;e=[].concat(n.chartData.xAxisData.ranges),i=e.shift(),o=e.pop(),u=t[1],p.x=n.area[3]+d*(t[0]-i)/(o-i),"bubble"==n.type&&(p.r=t[2],p.t=t[3])}else u=t.value;"center"==l&&(p.x+=a/2);var f=h*(u-e)/(i-e);f*=r,p.y=n.height-f-n.area[2],c.push(p)}})),c}function un(t,e,i,o,a,n,s,r,l){l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1;var c=n.xAxis.boundaryGap,h=[],d=n.height-n.area[0]-n.area[2],p=n.width-n.area[1]-n.area[3];return t.forEach((function(t,s){if(null===t)h.push(null);else{var u={};if(u.color=t.color,"vertical"==r.animation){u.x=o[s];var f=t;if("object"==typeof t&&null!==t)if(t.constructor.toString().indexOf("Array")>-1){let e,i,o;e=[].concat(n.chartData.xAxisData.ranges),i=e.shift(),o=e.pop(),f=t[1],u.x=n.area[3]+p*(t[0]-i)/(o-i)}else f=t.value;"center"==c&&(u.x+=a/2);var g=d*(f-e)/(i-e);g*=l,u.y=n.height-g-n.area[2],h.push(u)}else{u.x=o[0]+a*s*l;f=t;"center"==c&&(u.x+=a/2);g=d*(f-e)/(i-e);u.y=n.height-g-n.area[2],h.push(u)}}})),h}function fn(t,e,i,o,a,n,s,r,l){l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1;var c=[],h=n.height-n.area[0]-n.area[2],d=n.width-n.area[1]-n.area[3];return t.forEach((function(t,s){if(null===t)c.push(null);else{var r={};r.color=t.color,r.x=o[s];var p=t;if("object"==typeof t&&null!==t)if(t.constructor.toString().indexOf("Array")>-1){let e,i,o;e=[].concat(n.chartData.xAxisData.ranges),i=e.shift(),o=e.pop(),p=t[1],r.x=n.area[3]+d*(t[0]-i)/(o-i)}else p=t.value;r.x+=a/2;var u=h*(p*l-e)/(i-e);r.y=n.height-u-n.area[2],c.push(r)}})),c}function gn(t,e,i,o,a,n,s,r){var l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1,c=[],h=n.height-n.area[0]-n.area[2];n.width,n.area[1],n.area[3];var d=a*s.widthRatio;return t.forEach((function(t,s){if(null===t)c.push(null);else{var r={};r.color=t.color,r.x=o[s],r.x+=a/2;var p=t.data,u=h*(p*l-e)/(i-e);r.y=n.height-u-n.area[2],r.value=p,r.width=d,c.push(r)}})),c}function yn(t,e,i,o,a,n,s){var r=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l=[];n.height,n.area[0],n.area[2];var c=n.width-n.area[1]-n.area[3];return t.forEach((function(t,a){if(null===t)l.push(null);else{var s={};s.color=t.color,s.y=o[a];var h=t;"object"==typeof t&&null!==t&&(h=t.value);var d=c*(h-e)/(i-e);d*=r,s.height=d,s.value=h,s.x=d+n.area[3],l.push(s)}})),l}function mn(t,e,i,o,a,n,s,r,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,h=[],d=n.height-n.area[0]-n.area[2];return t.forEach((function(t,s){if(null===t)h.push(null);else{var p={};if(p.color=t.color,p.x=o[s]+Math.round(a/2),r>0){var u=0;for(let t=0;t<=r;t++)u+=l[t].data[s];var f=d*(u-e)/(i-e),g=d*(u-t-e)/(i-e)}else{u=t;"object"==typeof t&&null!==t&&(u=t.value);f=d*(u-e)/(i-e),g=0}var y=g;f*=c,y*=c,p.y=n.height-Math.round(f)-n.area[2],p.y0=n.height-Math.round(y)-n.area[2],h.push(p)}})),h}function xn(t,e,i,o,a,n,s,r,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,h=[],d=n.width-n.area[1]-n.area[3];return t.forEach((function(t,a){if(null===t)h.push(null);else{var s={};if(s.color=t.color,s.y=o[a],r>0){var p=0;for(let t=0;t<=r;t++)p+=l[t].data[a];var u=d*(p-e)/(i-e),f=d*(p-t-e)/(i-e)}else{p=t;"object"==typeof t&&null!==t&&(p=t.value);u=d*(p-e)/(i-e),f=0}var g=f;u*=c,g*=c,s.height=u-g,s.x=n.area[3]+u,s.x0=n.area[3]+g,h.push(s)}})),h}function bn(t,e,i,o,a){var n;n="stack"==o?Ra(t,e.categories.length):Ea(t);var s=[];(n=n.filter((function(t){return"object"==typeof t&&null!==t?t.constructor.toString().indexOf("Array")>-1?null!==t:null!==t.value:null!==t}))).map((function(t){"object"==typeof t?t.constructor.toString().indexOf("Array")>-1?"candle"==e.type?t.map((function(t){s.push(t)})):s.push(t[1]):s.push(t.value):s.push(t)}));var r=a.min||0,l=a.max||0;s.length>0&&(r=Math.min.apply(this,s),l=Math.max.apply(this,s)),r===l&&(0==l?l=10:r=0);for(var c=function(t,e){var i=0,o=e-t;return{minRange:ka(t,"lower",i=o>=1e4?1e3:o>=1e3?100:o>=100?10:o>=10?5:o>=1?1:o>=.1?.1:o>=.01?.01:o>=.001?.001:o>=1e-4?1e-4:o>=1e-5?1e-5:1e-6),maxRange:ka(e,"upper",i)}}(r,l),h=void 0===a.min||null===a.min?c.minRange:a.min,d=((void 0===a.max||null===a.max?c.maxRange:a.max)-h)/e.yAxis.splitNumber,p=[],u=0;u<=e.yAxis.splitNumber;u++)p.push(h+d*u);return p.reverse()}function wn(t,e,i,o){var a=Ta({},{type:""},e.extra.column),n=e.yAxis.data.length,s=new Array(n);if(n>0){for(let e=0;et+(n.unit||"")),n.categories=n.categories||e.categories,r[t]=n.categories):(n.formatter||(n.formatter=(t,e,i)=>Ca.toFixed(t,n.tofix||0)+(n.unit||"")),r[t]=bn(s[t],e,0,a.type,n));let h=n.fontSize*e.pix||i.fontSize;c[t]={position:n.position?n.position:"left",width:0},l[t]=r[t].map((function(i,a){return i=n.formatter(i,a,e),c[t].width=Math.max(c[t].width,Oa(i,h,o)+5),i}));let d=n.calibration?4*e.pix:0;c[t].width+=d+3*e.pix,!0===n.disabled&&(c[t].width=0)}}else{r=new Array(1),l=new Array(1),c=new Array(1);"bar"===e.type?(r[0]=e.categories,e.yAxis.formatter||(e.yAxis.formatter=(t,e,i)=>t+(i.yAxis.unit||""))):(e.yAxis.formatter||(e.yAxis.formatter=(t,e,i)=>t.toFixed(i.yAxis.tofix)+(i.yAxis.unit||"")),r[0]=bn(t,e,0,a.type,{})),c[0]={position:"left",width:0};var h=e.yAxis.fontSize*e.pix||i.fontSize;l[0]=r[0].map((function(t,i){return t=e.yAxis.formatter(t,i,e),c[0].width=Math.max(c[0].width,Oa(t,h,o)+5),t})),c[0].width+=3*e.pix,!0===e.yAxis.disabled?(c[0]={position:"left",width:0},e.yAxis.data[0]={disabled:!0}):(e.yAxis.data[0]={disabled:!1,position:"left",max:e.yAxis.max,min:e.yAxis.min,formatter:e.yAxis.formatter},"bar"===e.type&&(e.yAxis.data[0].categories=e.categories,e.yAxis.data[0].type="categories"))}return{rangesFormat:l,ranges:r,yAxisWidth:c}}function Sn(t,e){!0!==e.rotateLock?(t.translate(e.height,0),t.rotate(90*Math.PI/180)):!0!==e._rotate_&&(t.translate(e.height,0),t.rotate(90*Math.PI/180),e._rotate_=!0)}function vn(t,e,i,o,a){if(o.beginPath(),"hollow"==a.dataPointShapeType?(o.setStrokeStyle(e),o.setFillStyle(a.background),o.setLineWidth(2*a.pix)):(o.setStrokeStyle("#ffffff"),o.setFillStyle(e),o.setLineWidth(1*a.pix)),"diamond"===i)t.forEach((function(t,e){null!==t&&(o.moveTo(t.x,t.y-4.5),o.lineTo(t.x-4.5,t.y),o.lineTo(t.x,t.y+4.5),o.lineTo(t.x+4.5,t.y),o.lineTo(t.x,t.y-4.5))}));else if("circle"===i)t.forEach((function(t,e){null!==t&&(o.moveTo(t.x+2.5*a.pix,t.y),o.arc(t.x,t.y,3*a.pix,0,2*Math.PI,!1))}));else if("square"===i)t.forEach((function(t,e){null!==t&&(o.moveTo(t.x-3.5,t.y-3.5),o.rect(t.x-3.5,t.y-3.5,7,7))}));else if("triangle"===i)t.forEach((function(t,e){null!==t&&(o.moveTo(t.x,t.y-4.5),o.lineTo(t.x-4.5,t.y+4.5),o.lineTo(t.x+4.5,t.y+4.5),o.lineTo(t.x,t.y-4.5))}));else if("none"===i)return;o.closePath(),o.fill(),o.stroke()}function Tn(t,e,i,o,a,n,s){if(a.tooltip&&!(a.tooltip.group.length>0&&0==a.tooltip.group.includes(s))){var r="number"==typeof a.tooltip.index?a.tooltip.index:a.tooltip.index[a.tooltip.group.indexOf(s)];if(o.beginPath(),"hollow"==n.activeType?(o.setStrokeStyle(e),o.setFillStyle(a.background),o.setLineWidth(2*a.pix)):(o.setStrokeStyle("#ffffff"),o.setFillStyle(e),o.setLineWidth(1*a.pix)),"diamond"===i)t.forEach((function(t,e){null!==t&&r==e&&(o.moveTo(t.x,t.y-4.5),o.lineTo(t.x-4.5,t.y),o.lineTo(t.x,t.y+4.5),o.lineTo(t.x+4.5,t.y),o.lineTo(t.x,t.y-4.5))}));else if("circle"===i)t.forEach((function(t,e){null!==t&&r==e&&(o.moveTo(t.x+2.5*a.pix,t.y),o.arc(t.x,t.y,3*a.pix,0,2*Math.PI,!1))}));else if("square"===i)t.forEach((function(t,e){null!==t&&r==e&&(o.moveTo(t.x-3.5,t.y-3.5),o.rect(t.x-3.5,t.y-3.5,7,7))}));else if("triangle"===i)t.forEach((function(t,e){null!==t&&r==e&&(o.moveTo(t.x,t.y-4.5),o.lineTo(t.x-4.5,t.y+4.5),o.lineTo(t.x+4.5,t.y+4.5),o.lineTo(t.x,t.y-4.5))}));else if("none"===i)return;o.closePath(),o.fill(),o.stroke()}}function Cn(t,e,i,o){var a=t.title.fontSize||e.titleFontSize,n=t.subtitle.fontSize||e.subtitleFontSize,s=t.title.name||"",r=t.subtitle.name||"",l=t.title.color||t.fontColor,c=t.subtitle.color||t.fontColor,h=s?a:0,d=r?n:0;if(r){var p=Oa(r,n*t.pix,i),u=o.x-p/2+(t.subtitle.offsetX||0)*t.pix,f=o.y+n*t.pix/2+(t.subtitle.offsetY||0)*t.pix;s&&(f+=(h*t.pix+5)/2),i.beginPath(),i.setFontSize(n*t.pix),i.setFillStyle(c),i.fillText(r,u,f),i.closePath(),i.stroke()}if(s){var g=Oa(s,a*t.pix,i),y=o.x-g/2+(t.title.offsetX||0),m=o.y+a*t.pix/2+(t.title.offsetY||0)*t.pix;r&&(m-=(d*t.pix+5)/2),i.beginPath(),i.setFontSize(a*t.pix),i.setFillStyle(l),i.fillText(s,y,m),i.closePath(),i.stroke()}}function An(t,e,i,o,a){var n=e.data,s=e.textOffset?e.textOffset:0;t.forEach((function(t,r){if(null!==t){o.beginPath();var l=e.textSize?e.textSize*a.pix:i.fontSize;o.setFontSize(l),o.setFillStyle(e.textColor||a.fontColor);var c=n[r];"object"==typeof n[r]&&null!==n[r]&&(c=n[r].constructor.toString().indexOf("Array")>-1?n[r][1]:n[r].value);var h=e.formatter?e.formatter(c,r,e,a):c;o.setTextAlign("center"),o.fillText(String(h),t.x,t.y-4+s*a.pix),o.closePath(),o.stroke(),o.setTextAlign("left")}}))}function kn(t,e,i,o,a){var n=e.data,s=e.textOffset?e.textOffset:0,r=a.extra.column.labelPosition;t.forEach((function(t,l){if(null!==t){o.beginPath();var c=e.textSize?e.textSize*a.pix:i.fontSize;o.setFontSize(c),o.setFillStyle(e.textColor||a.fontColor);var h=n[l];"object"==typeof n[l]&&null!==n[l]&&(h=n[l].constructor.toString().indexOf("Array")>-1?n[l][1]:n[l].value);var d=e.formatter?e.formatter(h,l,e,a):h;o.setTextAlign("center");var p=t.y-4*a.pix+s*a.pix;t.y>e.zeroPoints&&(p=t.y+s*a.pix+c),"insideTop"==r&&(p=t.y+c+s*a.pix,t.y>e.zeroPoints&&(p=t.y-s*a.pix-4*a.pix)),"center"==r&&(p=t.y+s*a.pix+(a.height-a.area[2]-t.y+c)/2,e.zeroPointse.zeroPoints&&(p=t.y-s*a.pix-(t.y-e.zeroPoints-c)/2),"stack"==a.extra.column.type&&(p=t.y+s*a.pix+(t.y0-t.y+c)/2)),"bottom"==r&&(p=a.height-a.area[2]+s*a.pix-4*a.pix,e.zeroPointse.zeroPoints&&(p=e.zeroPoints-s*a.pix+c+2*a.pix),"stack"==a.extra.column.type&&(p=t.y0+s*a.pix-4*a.pix)),o.fillText(String(d),t.x,p),o.closePath(),o.stroke(),o.setTextAlign("left")}}))}function Dn(t,e,i,o,a,n){e.data;var s=e.textOffset?e.textOffset:0;a.extra.mount.labelPosition,t.forEach((function(t,r){if(null!==t){o.beginPath();var l=e[r].textSize?e[r].textSize*a.pix:i.fontSize;o.setFontSize(l),o.setFillStyle(e[r].textColor||a.fontColor);var c=t.value,h=e[r].formatter?e[r].formatter(c,r,e,a):c;o.setTextAlign("center");var d=t.y-4*a.pix+s*a.pix;t.y>n&&(d=t.y+s*a.pix+l),o.fillText(String(h),t.x,d),o.closePath(),o.stroke(),o.setTextAlign("left")}}))}function _n(t,e,i,o,a){var n=e.data;e.textOffset&&e.textOffset,t.forEach((function(t,s){if(null!==t){o.beginPath();var r=e.textSize?e.textSize*a.pix:i.fontSize;o.setFontSize(r),o.setFillStyle(e.textColor||a.fontColor);var l=n[s];"object"==typeof n[s]&&null!==n[s]&&(l=n[s].value);var c=e.formatter?e.formatter(l,s,e,a):l;o.setTextAlign("left"),o.fillText(String(c),t.x+4*a.pix,t.y+r/2-3),o.closePath(),o.stroke()}}))}function Pn(t,e,i,o,a,n){let s;e=(e-=t.width/2+t.labelOffset*o.pix)<10?10:e,s=t.endAngle=2&&(c%=2),h+=l}}function Ln(t,e,i,o,a,n){var s=o.extra.radar||{};t.forEach((function(t,r){if(!0===s.labelPointShow&&""!==o.categories[r]){var l={x:e*Math.cos(t),y:e*Math.sin(t)},c=La(l.x,l.y,i);n.setFillStyle(s.labelPointColor),n.beginPath(),n.arc(c.x,c.y,s.labelPointRadius*o.pix,0,2*Math.PI,!1),n.closePath(),n.fill()}if(!0===s.labelShow){var h={x:(e+a.radarLabelTextMargin*o.pix)*Math.cos(t),y:(e+a.radarLabelTextMargin*o.pix)*Math.sin(t)},d=La(h.x,h.y,i),p=d.x,u=d.y;Ca.approximatelyEqual(h.x,0)?p-=Oa(o.categories[r]||"",a.fontSize,n)/2:h.x<0&&(p-=Oa(o.categories[r]||"",a.fontSize,n)),n.beginPath(),n.setFontSize(a.fontSize),n.setFillStyle(s.labelColor||o.fontColor),n.fillText(o.categories[r]||"",p,u+a.fontSize/2),n.closePath(),n.stroke()}}))}function In(t,e,i,o,a,n){var s=i.pieChartLinePadding,r=[],l=null,c=t.map((function(i,o){var a=i.formatter?i.formatter(i,o,t,e):Ca.toFixed(100*i._proportion_.toFixed(4))+"%";a=i.labelText?i.labelText:a;var n=2*Math.PI-(i._start_+2*Math.PI*i._proportion_/2);return i._rose_proportion_&&(n=2*Math.PI-(i._start_+2*Math.PI*i._rose_proportion_/2)),{arc:n,text:a,color:i.color,radius:i._radius_,textColor:i.textColor,textSize:i.textSize,labelShow:i.labelShow}}));for(let h=0;h=0?a+i.pieChartTextPadding:a-i.pieChartTextPadding,f=n,g=Oa(t.text,t.textSize*e.pix||i.fontSize,o),y=f;l&&Ca.isSameXCoordinateArea(l.start,{x:u})&&(y=u>0?Math.min(f,l.start.y):a<0||f>0?Math.max(f,l.start.y):Math.min(f,l.start.y)),u<0&&(u-=g),l=Ia({lineStart:{x:d,y:p},lineEnd:{x:a,y:n},start:{x:u,y:y},width:g,height:i.fontSize,text:t.text,color:t.color,textColor:t.textColor,textSize:t.textSize},l),r.push(l)}for(let h=0;ha?a:n.activeWidth;var s=e.area[0],r=e.height-e.area[2];o.beginPath(),o.setFillStyle(Aa(n.activeBgColor,n.activeBgOpacity)),o.rect(t-n.activeWidth/2,s,n.activeWidth,r-s),o.closePath(),o.fill(),o.setFillStyle("#FFFFFF")}function En(t,e,i,o,a){var n=Ta({},{activeBgColor:"#000000",activeBgOpacity:.08},e.extra.bar),s=e.area[3],r=e.width-e.area[1];o.beginPath(),o.setFillStyle(Aa(n.activeBgColor,n.activeBgOpacity)),o.rect(s,t-a/2,r-s,a),o.closePath(),o.fill(),o.setFillStyle("#FFFFFF")}function Rn(t,e,i,o,a,n,s){var r=Ta({},{showBox:!0,showArrow:!0,showCategory:!1,bgColor:"#000000",bgOpacity:.7,borderColor:"#000000",borderWidth:0,borderRadius:0,borderOpacity:.7,boxPadding:3,fontColor:"#FFFFFF",fontSize:13,lineHeight:20,legendShow:!0,legendShape:"auto",splitLine:!0},i.extra.tooltip);1==r.showCategory&&i.categories&&t.unshift({text:i.categories[i.tooltip.index],color:null});var l=r.fontSize*i.pix,c=r.lineHeight*i.pix,h=r.boxPadding*i.pix,d=l,p=5*i.pix;0==r.legendShow&&(d=0,p=0);var u=r.showArrow?8*i.pix:0,f=!1;"line"!=i.type&&"mount"!=i.type&&"area"!=i.type&&"candle"!=i.type&&"mix"!=i.type||1==r.splitLine&&function(t,e,i,o){var a=e.extra.tooltip||{};a.gridType=null==a.gridType?"solid":a.gridType,a.dashLength=null==a.dashLength?4:a.dashLength;var n=e.area[0],s=e.height-e.area[2];if("dash"==a.gridType&&o.setLineDash([a.dashLength,a.dashLength]),o.setStrokeStyle(a.gridColor||"#cccccc"),o.setLineWidth(1*e.pix),o.beginPath(),o.moveTo(t,n),o.lineTo(t,s),o.stroke(),o.setLineDash([]),a.xAxisLabel){let n=e.categories[e.tooltip.index];o.setFontSize(i.fontSize);let r=Oa(n,i.fontSize,o),l=t-.5*r,c=s+2*e.pix;o.beginPath(),o.setFillStyle(Aa(a.labelBgColor||i.toolTipBackground,a.labelBgOpacity||i.toolTipOpacity)),o.setStrokeStyle(a.labelBgColor||i.toolTipBackground),o.setLineWidth(1*e.pix),o.rect(l-a.boxPadding*e.pix,c,r+2*a.boxPadding*e.pix,i.fontSize+2*a.boxPadding*e.pix),o.closePath(),o.stroke(),o.fill(),o.beginPath(),o.setFontSize(i.fontSize),o.setFillStyle(a.labelFontColor||e.fontColor),o.fillText(String(n),l,c+a.boxPadding*e.pix+i.fontSize),o.closePath(),o.stroke()}}(i.tooltip.offset.x,i,o,a),(e=Ta({x:0,y:0},e)).y-=8*i.pix;var g=t.map((function(t){return Oa(t.text,l,a)})),y=d+p+4*h+Math.max.apply(null,g),m=2*h+t.length*c;if(0!=r.showBox){e.x-Math.abs(i._scrollDistance_||0)+u+y>i.width&&(f=!0),m+e.y>i.height&&(e.y=i.height-m),a.beginPath(),a.setFillStyle(Aa(r.bgColor,r.bgOpacity)),a.setLineWidth(r.borderWidth*i.pix),a.setStrokeStyle(Aa(r.borderColor,r.borderOpacity));var x=r.borderRadius;f?(y+u>i.width&&(e.x=i.width+Math.abs(i._scrollDistance_||0)+u+(y-i.width)),y>e.x&&(e.x=i.width+Math.abs(i._scrollDistance_||0)+u+(y-i.width)),r.showArrow&&(a.moveTo(e.x,e.y+10*i.pix),a.lineTo(e.x-u,e.y+10*i.pix+5*i.pix)),a.arc(e.x-u-x,e.y+m-x,x,0,Math.PI/2,!1),a.arc(e.x-u-Math.round(y)+x,e.y+m-x,x,Math.PI/2,Math.PI,!1),a.arc(e.x-u-Math.round(y)+x,e.y+x,x,-Math.PI,-Math.PI/2,!1),a.arc(e.x-u-x,e.y+x,x,-Math.PI/2,0,!1),r.showArrow&&(a.lineTo(e.x-u,e.y+10*i.pix-5*i.pix),a.lineTo(e.x,e.y+10*i.pix))):(r.showArrow&&(a.moveTo(e.x,e.y+10*i.pix),a.lineTo(e.x+u,e.y+10*i.pix-5*i.pix)),a.arc(e.x+u+x,e.y+x,x,-Math.PI,-Math.PI/2,!1),a.arc(e.x+u+Math.round(y)-x,e.y+x,x,-Math.PI/2,0,!1),a.arc(e.x+u+Math.round(y)-x,e.y+m-x,x,0,Math.PI/2,!1),a.arc(e.x+u+x,e.y+m-x,x,Math.PI/2,Math.PI,!1),r.showArrow&&(a.lineTo(e.x+u,e.y+10*i.pix+5*i.pix),a.lineTo(e.x,e.y+10*i.pix))),a.closePath(),a.fill(),r.borderWidth>0&&a.stroke(),r.legendShow&&t.forEach((function(t,o){if(null!==t.color){a.beginPath(),a.setFillStyle(t.color);var n=e.x+u+2*h,s=e.y+(c-l)/2+c*o+h+1;switch(f&&(n=e.x-y-u+2*h),t.legendShape){case"line":a.moveTo(n,s+.5*d-2*i.pix),a.fillRect(n,s+.5*d-2*i.pix,d,4*i.pix);break;case"triangle":a.moveTo(n+7.5*i.pix,s+.5*d-5*i.pix),a.lineTo(n+2.5*i.pix,s+.5*d+5*i.pix),a.lineTo(n+12.5*i.pix,s+.5*d+5*i.pix),a.lineTo(n+7.5*i.pix,s+.5*d-5*i.pix);break;case"diamond":a.moveTo(n+7.5*i.pix,s+.5*d-5*i.pix),a.lineTo(n+2.5*i.pix,s+.5*d),a.lineTo(n+7.5*i.pix,s+.5*d+5*i.pix),a.lineTo(n+12.5*i.pix,s+.5*d),a.lineTo(n+7.5*i.pix,s+.5*d-5*i.pix);break;case"circle":a.moveTo(n+7.5*i.pix,s+.5*d),a.arc(n+7.5*i.pix,s+.5*d,5*i.pix,0,2*Math.PI);break;case"rect":default:a.moveTo(n,s+.5*d-5*i.pix),a.fillRect(n,s+.5*d-5*i.pix,15*i.pix,10*i.pix);break;case"square":a.moveTo(n+2*i.pix,s+.5*d-5*i.pix),a.fillRect(n+2*i.pix,s+.5*d-5*i.pix,10*i.pix,10*i.pix)}a.closePath(),a.fill()}})),t.forEach((function(t,i){var o=e.x+u+2*h+d+p;f&&(o=e.x-y-u+2*h+d+p);var n=e.y+c*i+(c-l)/2-1+h+l;a.beginPath(),a.setFontSize(l),a.setTextBaseline("normal"),a.setFillStyle(r.fontColor),a.fillText(t.text,o,n),a.closePath(),a.stroke()}))}}function Nn(t,e,i,o,a,n){(t.extra.tooltip||{}).horizentalLine&&t.tooltip&&1===o&&("line"==t.type||"area"==t.type||"column"==t.type||"mount"==t.type||"candle"==t.type||"mix"==t.type)&&Fn(t,e,i),i.save(),t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&i.translate(t._scrollDistance_,0),t.tooltip&&t.tooltip.textList&&t.tooltip.textList.length&&1===o&&Rn(t.tooltip.textList,t.tooltip.offset,t,e,i),i.restore()}function zn(t,e,i,o){let a=e.chartData.xAxisData,n=a.xAxisPoints,s=a.startX,r=a.endX,l=a.eachSpacing;var c="center";"bar"!=e.type&&"line"!=e.type&&"area"!=e.type&&"scatter"!=e.type&&"bubble"!=e.type||(c=e.xAxis.boundaryGap);var h=e.height-e.area[2],d=e.area[0];if(e.enableScroll&&e.xAxis.scrollShow){var p=e.height-e.area[2]+i.xAxisHeight,u=r-s,f=l*(n.length-1);"mount"==e.type&&e.extra&&e.extra.mount&&e.extra.mount.widthRatio&&e.extra.mount.widthRatio>1&&(e.extra.mount.widthRatio>2&&(e.extra.mount.widthRatio=2),f+=(e.extra.mount.widthRatio-1)*l);var g=u*u/f,y=0;e._scrollDistance_&&(y=-e._scrollDistance_*u/f),o.beginPath(),o.setLineCap("round"),o.setLineWidth(6*e.pix),o.setStrokeStyle(e.xAxis.scrollBackgroundColor||"#EFEBEF"),o.moveTo(s,p),o.lineTo(r,p),o.stroke(),o.closePath(),o.beginPath(),o.setLineCap("round"),o.setLineWidth(6*e.pix),o.setStrokeStyle(e.xAxis.scrollColor||"#A6A6A6"),o.moveTo(s+y,p),o.lineTo(s+y+g,p),o.stroke(),o.closePath(),o.setLineCap("butt")}if(o.save(),e._scrollDistance_&&0!==e._scrollDistance_&&o.translate(e._scrollDistance_,0),!0===e.xAxis.calibration&&(o.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),o.setLineCap("butt"),o.setLineWidth(1*e.pix),n.forEach((function(t,i){i>0&&(o.beginPath(),o.moveTo(t-l/2,h),o.lineTo(t-l/2,h+3*e.pix),o.closePath(),o.stroke())}))),!0!==e.xAxis.disableGrid&&(o.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),o.setLineCap("butt"),o.setLineWidth(1*e.pix),"dash"==e.xAxis.gridType&&o.setLineDash([e.xAxis.dashLength*e.pix,e.xAxis.dashLength*e.pix]),e.xAxis.gridEval=e.xAxis.gridEval||1,n.forEach((function(t,i){i%e.xAxis.gridEval==0&&(o.beginPath(),o.moveTo(t,h),o.lineTo(t,d),o.stroke())})),o.setLineDash([])),!0!==e.xAxis.disabled){let a=t.length;e.xAxis.labelCount&&(a=e.xAxis.itemCount?Math.ceil(t.length/e.xAxis.itemCount*e.xAxis.labelCount):e.xAxis.labelCount,a-=1);let s=Math.ceil(t.length/a),r=[],d=t.length;for(let e=0;e=e.area[3]-1&&d-Math.abs(r)<=e.width-e.area[1]+1&&(o.beginPath(),o.setFontSize(m),o.setFillStyle(e.xAxis.fontColor||e.fontColor),o.fillText(String(a),n[i]+s,h+e.xAxis.marginTop*e.pix+(e.xAxis.lineHeight-e.xAxis.fontSize)*e.pix/2+e.xAxis.fontSize*e.pix),o.closePath(),o.stroke())})):r.forEach((function(t,a){var s=e.xAxis.formatter?e.xAxis.formatter(t):t,r=e._scrollDistance_||0,d="center"==c?n[a]+l/2:n[a];if(d-Math.abs(r)>=e.area[3]-1&&d-Math.abs(r)<=e.width-e.area[1]+1){o.save(),o.beginPath(),o.setFontSize(m),o.setFillStyle(e.xAxis.fontColor||e.fontColor);var p=Oa(String(s),m,o),u=n[a];"center"==c&&(u=n[a]+l/2),e.xAxis.scrollShow&&e.pix;var f=h+e.xAxis.marginTop*e.pix+m-m*Math.abs(Math.sin(i._xAxisTextAngle_));e.xAxis.rotateAngle<0?(u-=m/2,p=0):(u+=m/2,p=-p),o.translate(u,f),o.rotate(-1*i._xAxisTextAngle_),o.fillText(String(s),p,0),o.closePath(),o.stroke(),o.restore()}}))}o.restore(),e.xAxis.title&&(o.beginPath(),o.setFontSize(e.xAxis.titleFontSize*e.pix),o.setFillStyle(e.xAxis.titleFontColor),o.fillText(String(e.xAxis.title),e.width-e.area[1]+e.xAxis.titleOffsetX*e.pix,e.height-e.area[2]+e.xAxis.marginTop*e.pix+(e.xAxis.lineHeight-e.xAxis.titleFontSize)*e.pix/2+(e.xAxis.titleFontSize+e.xAxis.titleOffsetY)*e.pix),o.closePath(),o.stroke()),e.xAxis.axisLine&&(o.beginPath(),o.setStrokeStyle(e.xAxis.axisLineColor),o.setLineWidth(1*e.pix),o.moveTo(s,e.height-e.area[2]),o.lineTo(r,e.height-e.area[2]),o.stroke())}function Bn(t,e,i,o){if(!0===e.yAxis.disableGrid)return;let a=(e.height-e.area[0]-e.area[2])/e.yAxis.splitNumber,n=e.area[3],s=e.chartData.xAxisData.xAxisPoints,r=e.chartData.xAxisData.eachSpacing,l=r*(s.length-1);"mount"==e.type&&e.extra&&e.extra.mount&&e.extra.mount.widthRatio&&e.extra.mount.widthRatio>1&&(e.extra.mount.widthRatio>2&&(e.extra.mount.widthRatio=2),l+=(e.extra.mount.widthRatio-1)*r);let c=n+l,h=[],d=1;!1===e.xAxis.axisLine&&(d=0);for(let p=d;p4&&void 0!==arguments[4]?arguments[4]:1,n=Ta({},{activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,ringWidth:30,customRadius:0,border:!1,borderWidth:2,borderColor:"#FFFFFF",centerColor:"#FFFFFF",linearType:"none",customColor:[]},"pie"==e.type?e.extra.pie:e.extra.ring),s={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2};0==i.pieChartLinePadding&&(i.pieChartLinePadding=n.activeRadius*e.pix);var r=Math.min((e.width-e.area[1]-e.area[3])/2-i.pieChartLinePadding-i.pieChartTextPadding-i._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-i.pieChartLinePadding-i.pieChartTextPadding);r=r<10?10:r,n.customRadius>0&&(r=n.customRadius*e.pix),t=Qa(t,r,a);var l=n.activeRadius*e.pix;if(n.customColor=Fa(n.linearType,n.customColor,t,i),(t=t.map((function(t){return t._start_+=n.offsetAngle*Math.PI/180,t}))).forEach((function(t,i){e.tooltip&&e.tooltip.index==i&&(o.beginPath(),o.setFillStyle(Aa(t.color,n.activeOpacity||.5)),o.moveTo(s.x,s.y),o.arc(s.x,s.y,t._radius_+l,t._start_,t._start_+2*t._proportion_*Math.PI),o.closePath(),o.fill()),o.beginPath(),o.setLineWidth(n.borderWidth*e.pix),o.lineJoin="round",o.setStrokeStyle(n.borderColor);var a,r=t.color;"custom"==n.linearType&&((a=o.createCircularGradient?o.createCircularGradient(s.x,s.y,t._radius_):o.createRadialGradient(s.x,s.y,0,s.x,s.y,t._radius_)).addColorStop(0,Aa(n.customColor[t.linearIndex],1)),a.addColorStop(1,Aa(t.color,1)),r=a);o.setFillStyle(r),o.moveTo(s.x,s.y),o.arc(s.x,s.y,t._radius_,t._start_,t._start_+2*t._proportion_*Math.PI),o.closePath(),o.fill(),1==n.border&&o.stroke()})),"ring"===e.type){var c=.6*r;"number"==typeof n.ringWidth&&n.ringWidth>0&&(c=Math.max(0,r-n.ringWidth*e.pix)),o.beginPath(),o.setFillStyle(n.centerColor),o.moveTo(s.x,s.y),o.arc(s.x,s.y,c,0,2*Math.PI),o.closePath(),o.fill()}return!1!==e.dataLabel&&1===a&&In(t,e,i,o,0,s),1===a&&"ring"===e.type&&Cn(e,i,o,s),{center:s,radius:r,series:t}}function Hn(t,e){var i=Array(2),o=20037508.34*t/180,a=Math.log(Math.tan((90+e)*Math.PI/360))/(Math.PI/180);return a=20037508.34*a/180,i[0]=o,i[1]=a,i}function Jn(t,e,i,o,a,n){return{x:(e-i.xMin)*o+a,y:(i.yMax-t)*o+n}}function qn(t,e,i){if(e[1]==i[1])return!1;if(e[1]>t[1]&&i[1]>t[1])return!1;if(e[1]t[1])return!1;if(i[1]==t[1]&&e[1]>t[1])return!1;if(e[0]e[n].area[2]||t[1]>e[n].area[3]||t[2]i||t[3]>o){a=!0;break}a=!1}return a}function Xn(t,e,i){let o=t.series;switch(e){case"normal":for(let a=0;a.7};for(let a=0;a0&&t[0].data.constructor.toString().indexOf("Array")>-1){e._pieSeries_=t;let i=t[0].data;for(var a=0;ae.width-e.area[1]-e.area[3]?(i.push(u),p.push(o-e.legend.itemGap*e.pix),o=r,u=[s]):(o+=r,u.push(s))}if(u.length){i.push(u),p.push(o-e.legend.itemGap*e.pix),n.widthArr=p;let t=Math.max.apply(null,p);switch(e.legend.float){case"left":n.area.start.x=e.area[3],n.area.end.x=e.area[3]+t+2*s;break;case"right":n.area.start.x=e.width-e.area[1]-t-2*s,n.area.end.x=e.width-e.area[1];break;default:n.area.start.x=(e.width-t)/2-s,n.area.end.x=(e.width+t)/2+s}n.area.width=t+2*s,n.area.wholeWidth=t+2*s,n.area.height=i.length*d+2*s,n.area.wholeHeight=i.length*d+2*s+2*r,n.points=i}}else{let i=t.length,o=e.height-e.area[0]-e.area[2]-2*r-2*s,p=Math.min(Math.floor(o/d),i);switch(n.area.height=p*d+2*s,n.area.wholeHeight=p*d+2*s,e.legend.float){case"top":n.area.start.y=e.area[0]+r,n.area.end.y=e.area[0]+r+n.area.height;break;case"bottom":n.area.start.y=e.height-e.area[2]-r-n.area.height,n.area.end.y=e.height-e.area[2]-r;break;default:n.area.start.y=(e.height-n.area.height)/2,n.area.end.y=(e.height+n.area.height)/2}let u=i%p==0?i/p:Math.floor(i/p+1),f=[];for(let e=0;eo&&(o=n)}n.widthArr.push(o),n.heightArr.push(t.length*d+2*s)}let t=0;for(let e=0;e0?u[i].width+e.yAxis.padding*e.pix:u[i].width,a+=1):"right"==u[i].position&&(e.area[1]+=t>0?u[i].width+e.yAxis.padding*e.pix:u[i].width,t+=1)}else i.yAxisWidth=u;if(e.chartData.yAxisData=p,e.categories&&e.categories.length&&"radar"!==e.type&&"gauge"!==e.type&&"bar"!==e.type){e.chartData.xAxisData=hn(e.categories,e);let t=Ga(e.categories,e,0,e.chartData.xAxisData.eachSpacing,o),a=t.xAxisHeight,n=t.angle;i.xAxisHeight=a,i._xAxisTextAngle_=n,e.area[2]+=a,e.chartData.categoriesData=t}else if("line"===e.type||"area"===e.type||"scatter"===e.type||"bubble"===e.type||"bar"===e.type){e.chartData.xAxisData=Xa(n,e,i,o);let t=Ga(s=e.chartData.xAxisData.rangesFormat,e,0,e.chartData.xAxisData.eachSpacing,o),a=t.xAxisHeight,r=t.angle;i.xAxisHeight=a,i._xAxisTextAngle_=r,e.area[2]+=a,e.chartData.categoriesData=t}else e.chartData.xAxisData={xAxisPoints:[]};if(e.enableScroll&&"right"==e.xAxis.scrollAlign&&void 0===e._scrollDistance_){let t=0,i=e.chartData.xAxisData.xAxisPoints,o=e.chartData.xAxisData.startX;t=e.chartData.xAxisData.endX-o-e.chartData.xAxisData.eachSpacing*(i.length-1),a.scrollOption.currentOffset=t,a.scrollOption.startTouchX=t,a.scrollOption.distance=0,a.scrollOption.lastMoveTime=0,e._scrollDistance_=t}switch("pie"!==t&&"ring"!==t&&"rose"!==t||(i._pieTextMaxLength_=!1===e.dataLabel?0:function(t,e,i,o){t=Qa(t);let a=0;for(let n=0;n4&&void 0!==arguments[4]?arguments[4]:1,n=Ta({},{type:"normal",autoColors:!0},e.extra.word);e.chartData.wordCloudData||(e.chartData.wordCloudData=Xn(e,n.type,o)),o.beginPath(),o.setFillStyle(e.background),o.rect(0,0,e.width,e.height),o.fill(),o.save();let s=e.chartData.wordCloudData;o.translate(e.width/2,e.height/2);for(let r=0;r0&&(e.tooltip&&e.tooltip.index==r?o.strokeText(t,(s[r].areav[0]+5-e.width/2)*a-n*(1-a)/2,(s[r].areav[1]+5+i-e.height/2)*a):o.fillText(t,(s[r].areav[0]+5-e.width/2)*a-n*(1-a)/2,(s[r].areav[1]+5+i-e.height/2)*a)):s[r].area[0]>0&&(e.tooltip&&e.tooltip.index==r?o.strokeText(t,(s[r].area[0]+5-e.width/2)*a-n*(1-a)/2,(s[r].area[1]+5+i-e.height/2)*a):o.fillText(t,(s[r].area[0]+5-e.width/2)*a-n*(1-a)/2,(s[r].area[1]+5+i-e.height/2)*a)),o.stroke(),o.restore()}o.restore()}(n,e,i,o,t),Zn(0,o)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"map":o.clearRect(0,0,e.width,e.height),function(t,e,i,o){var a,n,s=Ta({},{border:!0,mercator:!1,borderWidth:1,active:!0,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#f04864",activeFillColor:"#facc14",activeFillOpacity:1},e.extra.map),r=t,l=function(t){for(var e,i={xMin:180,xMax:0,yMin:90,yMax:0},o=0;or.x?i.xMax:r.x,i.yMin=i.yMinr.y?i.yMax:r.y}}return i}(r);if(s.mercator){var c=Hn(l.xMax,l.yMax),h=Hn(l.xMin,l.yMin);l.xMax=c[0],l.yMax=c[1],l.xMin=h[0],l.yMin=h[1]}for(var d=e.width/Math.abs(l.xMax-l.xMin),p=e.height/Math.abs(l.yMax-l.yMin),u=d{this.uevent.trigger("renderComplete")}),50);break;case"funnel":this.animationInstance=new ts({timing:e.timing,duration:r,onProcess:function(t){o.clearRect(0,0,e.width,e.height),e.rotate&&Sn(o,e),e.chartData.funnelData=function(t,e,i,o){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=Ta({},{type:"funnel",activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,minSize:0,labelAlign:"right",linearType:"none",customColor:[]},e.extra.funnel),s=(e.height-e.area[0]-e.area[2])/t.length,r={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.height-e.area[2]},l=n.activeWidth*e.pix,c=Math.min((e.width-e.area[1]-e.area[3])/2-l,(e.height-e.area[0]-e.area[2])/2-l),h=Za(t,c,n,s,a);if(o.save(),o.translate(r.x,r.y),n.customColor=Fa(n.linearType,n.customColor,t,i),"pyramid"==n.type)for(let u=0;u4&&void 0!==arguments[4]?arguments[4]:1,n=Ta({},{type:"straight",width:2,activeType:"none",linearType:"none",onShadow:!1,animation:"vertical"},e.extra.line);n.width*=e.pix;let s=e.chartData.xAxisData,r=s.xAxisPoints,l=s.eachSpacing;var c=[];o.save();let h=0,d=e.width+l;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(o.translate(e._scrollDistance_,0),h=-e._scrollDistance_-2*l+e.area[3],d=h+(e.xAxis.itemCount+4)*l),t.forEach((function(t,s){let p,u,f;o.beginPath(),o.setStrokeStyle(t.color),o.moveTo(-1e4,-1e4),o.lineTo(-10001,-10001),o.stroke(),p=[].concat(e.chartData.yAxisData.ranges[t.index]),u=p.pop(),f=p.shift();var g=un(t.data,u,f,r,l,e,i,n,a);c.push(g);var y=Va(g,t);if("dash"==t.lineType){let i=t.dashLength?t.dashLength:8;i*=e.pix,o.setLineDash([i,i])}o.beginPath();var m=t.color;if("none"!==n.linearType&&t.linearColor&&t.linearColor.length>0){for(var x=o.createLinearGradient(e.chartData.xAxisData.startX,e.height/2,e.chartData.xAxisData.endX,e.height/2),b=0;b0?o.setShadow(t.setShadow[0],t.setShadow[1],t.setShadow[2],t.setShadow[3]):o.setShadow(0,0,0,"rgba(0,0,0,0)"),o.setLineWidth(n.width),y.forEach((function(t,e){if(1===t.length)o.moveTo(t[0].x,t[0].y);else{o.moveTo(t[0].x,t[0].y);let e=0;if("curve"===n.type)for(let a=0;ah&&(o.moveTo(n.x,n.y),e=1),a>0&&n.x>h&&n.xh&&(o.moveTo(a.x,a.y),e=1),i>0&&a.x>h&&a.xh&&(o.moveTo(a.x,a.y),e=1),i>0&&a.x>h&&a.x4&&void 0!==arguments[4]?arguments[4]:1;Ta({},{type:"circle"},e.extra.scatter);let n=e.chartData.xAxisData,s=n.xAxisPoints,r=n.eachSpacing;var l=[];o.save();let c=0;return e.width,e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(o.translate(e._scrollDistance_,0),c=-e._scrollDistance_-2*r+e.area[3],e.xAxis.itemCount),t.forEach((function(t,n){let l,c,h;l=[].concat(e.chartData.yAxisData.ranges[t.index]),c=l.pop(),h=l.shift();var d=pn(t.data,c,h,s,r,e,i,a);o.beginPath(),o.setStrokeStyle(t.color),o.setFillStyle(t.color),o.setLineWidth(1*e.pix);var p=t.pointShape;if("diamond"===p)d.forEach((function(t,e){null!==t&&(o.moveTo(t.x,t.y-4.5),o.lineTo(t.x-4.5,t.y),o.lineTo(t.x,t.y+4.5),o.lineTo(t.x+4.5,t.y),o.lineTo(t.x,t.y-4.5))}));else if("circle"===p)d.forEach((function(t,i){null!==t&&(o.moveTo(t.x+2.5*e.pix,t.y),o.arc(t.x,t.y,3*e.pix,0,2*Math.PI,!1))}));else if("square"===p)d.forEach((function(t,e){null!==t&&(o.moveTo(t.x-3.5,t.y-3.5),o.rect(t.x-3.5,t.y-3.5,7,7))}));else if("triangle"===p)d.forEach((function(t,e){null!==t&&(o.moveTo(t.x,t.y-4.5),o.lineTo(t.x-4.5,t.y+4.5),o.lineTo(t.x+4.5,t.y+4.5),o.lineTo(t.x,t.y-4.5))}));else if("triangle"===p)return;o.closePath(),o.fill(),o.stroke()})),!1!==e.dataLabel&&1===a&&t.forEach((function(t,n){let l,c,h;l=[].concat(e.chartData.yAxisData.ranges[t.index]),c=l.pop(),h=l.shift(),An(pn(t.data,c,h,s,r,e,i,a),t,i,o,e)})),o.restore(),{xAxisPoints:s,calPoints:l,eachSpacing:r}}(n,e,i,o,t),r=a.xAxisPoints,l=a.calPoints,c=a.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Un(0,e,i,o),!1!==e.enableMarkLine&&1===t&&Mn(e,0,o),jn(e.series,e,i,o,e.chartData),Nn(e,i,o,t),Zn(0,o)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"bubble":this.animationInstance=new ts({timing:e.timing,duration:r,onProcess:function(t){o.clearRect(0,0,e.width,e.height),e.rotate&&Sn(o,e),Bn(0,e,0,o),zn(s,e,i,o);var a=function(t,e,i,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=Ta({},{opacity:1,border:2},e.extra.bubble);let s=e.chartData.xAxisData,r=s.xAxisPoints,l=s.eachSpacing;var c=[];o.save();let h=0;return e.width,e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(o.translate(e._scrollDistance_,0),h=-e._scrollDistance_-2*l+e.area[3],e.xAxis.itemCount),t.forEach((function(t,s){let c,h,d;c=[].concat(e.chartData.yAxisData.ranges[t.index]),h=c.pop(),d=c.shift();var p=pn(t.data,h,d,r,l,e,i,a);o.beginPath(),o.setStrokeStyle(t.color),o.setLineWidth(n.border*e.pix),o.setFillStyle(Aa(t.color,n.opacity)),p.forEach((function(t,i){o.moveTo(t.x+t.r,t.y),o.arc(t.x,t.y,t.r*e.pix,0,2*Math.PI,!1)})),o.closePath(),o.fill(),o.stroke(),!1!==e.dataLabel&&1===a&&p.forEach((function(a,n){o.beginPath();var s=t.textSize*e.pix||i.fontSize;o.setFontSize(s),o.setFillStyle(t.textColor||"#FFFFFF"),o.setTextAlign("center"),o.fillText(String(a.t),a.x,a.y+s/2),o.closePath(),o.stroke(),o.setTextAlign("left")}))})),o.restore(),{xAxisPoints:r,calPoints:c,eachSpacing:l}}(n,e,i,o,t),r=a.xAxisPoints,l=a.calPoints,c=a.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Un(0,e,i,o),!1!==e.enableMarkLine&&1===t&&Mn(e,0,o),jn(e.series,e,i,o,e.chartData),Nn(e,i,o,t),Zn(0,o)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"mix":this.animationInstance=new ts({timing:e.timing,duration:r,onProcess:function(t){o.clearRect(0,0,e.width,e.height),e.rotate&&Sn(o,e),Bn(0,e,0,o),zn(s,e,i,o);var a=function(t,e,i,o){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=e.chartData.xAxisData,s=n.xAxisPoints,r=n.eachSpacing,l=Ta({},{width:r/2,barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},e.extra.mix.column),c=Ta({},{opacity:.2,gradient:!1},e.extra.mix.area),h=Ta({},{width:2},e.extra.mix.line),d=e.height-e.area[2],p=[];var u=0,f=0;t.forEach((function(t,e){"column"==t.type&&(f+=1)})),o.save();let g=-2,y=s.length+2,m=0,x=e.width+r;e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(o.translate(e._scrollDistance_,0),g=Math.floor(-e._scrollDistance_/r)-2,y=g+e.xAxis.itemCount+4,m=-e._scrollDistance_-2*r+e.area[3],x=m+(e.xAxis.itemCount+4)*r),l.customColor=Fa(l.linearType,l.customColor,t,i),t.forEach((function(t,n){let b,w,S;b=[].concat(e.chartData.yAxisData.ranges[t.index]),w=b.pop(),S=b.shift();var v=pn(t.data,w,S,s,r,e,i,a);if(p.push(v),"column"==t.type){v=nn(v,r,f,u,0,e);for(let i=0;ig&&ip?p:r,c=c>p?p:c,h=h>p?p:h,d=d>p?p:d,r=r<0?0:r,c=c<0?0:c,h=h<0?0:h,d=d<0?0:d,o.arc(t+r,i+r,r,-Math.PI,-Math.PI/2),o.arc(t+n-c,i+c,c,-Math.PI/2,0),o.arc(t+n-h,i+s-h,h,0,Math.PI/2),o.arc(t+d,i+s-d,d,Math.PI/2,Math.PI)}else o.moveTo(T,a.y),o.lineTo(T+a.width,a.y),o.lineTo(T+a.width,e.height-e.area[2]),o.lineTo(T,e.height-e.area[2]),o.lineTo(T,a.y),o.setLineWidth(1),o.setStrokeStyle(A);o.setFillStyle(C),o.closePath(),o.fill()}}u+=1}if("area"==t.type){let i=Va(v,t);for(let a=0;a1){var D=n[0];let e=n[n.length-1];o.moveTo(D.x,D.y);let i=0;if("curve"===t.style)for(let t=0;tm&&(o.moveTo(e.x,e.y),i=1),t>0&&e.x>m&&e.xm&&(o.moveTo(e.x,e.y),i=1),t>0&&e.x>m&&e.xm&&(o.moveTo(a.x,a.y),e=1),t>0&&a.x>m&&a.xm&&(o.moveTo(a.x,a.y),e=1),t>0&&a.x>m&&a.x4&&void 0!==arguments[4]?arguments[4]:1,n=e.chartData.xAxisData,s=n.xAxisPoints,r=n.eachSpacing,l=Ta({},{type:"group",width:r/2,meterBorder:4,meterFillColor:"#FFFFFF",barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0,labelPosition:"outside"},e.extra.column),c=[];o.save();let h=-2,d=s.length+2;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(o.translate(e._scrollDistance_,0),h=Math.floor(-e._scrollDistance_/r)-2,d=h+e.xAxis.itemCount+4),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===a&&On(e.tooltip.offset.x,e,0,o,r),l.customColor=Fa(l.linearType,l.customColor,t,i),t.forEach((function(n,p){let u,f,g;u=[].concat(e.chartData.yAxisData.ranges[n.index]),f=u.pop(),g=u.shift();let y=(e.height-e.area[0]-e.area[2])*(0-f)/(g-f),m=e.height-Math.round(y)-e.area[2];n.zeroPoints=m;var x=n.data;switch(l.type){case"group":var b=fn(x,f,g,s,r,e,i,m,a),w=mn(x,f,g,s,r,e,i,p,t,a);c.push(w),b=nn(b,r,t.length,p,0,e);for(let t=0;th&&tm?m:i.y,a=i.width,n=Math.abs(m-i.y);l.barBorderCircle&&(l.barBorderRadius=[a/2,a/2,0,0]),i.y>m&&(l.barBorderRadius=[0,0,a/2,a/2]);let[s,r,c,h]=l.barBorderRadius,d=Math.min(a/2,n/2);s=s>d?d:s,r=r>d?d:r,c=c>d?d:c,h=h>d?d:h,s=s<0?0:s,r=r<0?0:r,c=c<0?0:c,h=h<0?0:h,o.arc(t+s,e+s,s,-Math.PI,-Math.PI/2),o.arc(t+a-r,e+r,r,-Math.PI/2,0),o.arc(t+a-c,e+n-c,c,0,Math.PI/2),o.arc(t+h,e+n-h,h,Math.PI/2,Math.PI)}else o.moveTo(S,i.y),o.lineTo(S+i.width,i.y),o.lineTo(S+i.width,m),o.lineTo(S,m),o.lineTo(S,i.y),o.setLineWidth(1),o.setStrokeStyle(C);o.setFillStyle(T),o.closePath(),o.fill()}}break;case"stack":b=mn(x,f,g,s,r,e,i,p,t,a),c.push(b),b=ln(b,r,t.length,0,0,e);for(let t=0;th&&t0&&(v-=k),o.setFillStyle(T),o.moveTo(S,i.y),o.fillRect(S,i.y,i.width,v),o.closePath(),o.fill()}}break;case"meter":b=pn(x,f,g,s,r,e,i,a),c.push(b),b=rn(b,r,t.length,p,0,e,l.meterBorder);for(let t=0;th&&t0&&(o.setStrokeStyle(n.color),o.setLineWidth(l.meterBorder*e.pix)),0==p?o.setFillStyle(l.meterFillColor):o.setFillStyle(i.color||n.color),S=i.x-i.width/2,v=e.height-i.y-e.area[2],l.barBorderRadius&&4===l.barBorderRadius.length||!0===l.barBorderCircle){const t=S,e=i.y,a=i.width,n=m-i.y;l.barBorderCircle&&(l.barBorderRadius=[a/2,a/2,0,0]);let[s,r,c,h]=l.barBorderRadius,d=Math.min(a/2,n/2);s=s>d?d:s,r=r>d?d:r,c=c>d?d:c,h=h>d?d:h,s=s<0?0:s,r=r<0?0:r,c=c<0?0:c,h=h<0?0:h,o.arc(t+s,e+s,s,-Math.PI,-Math.PI/2),o.arc(t+a-r,e+r,r,-Math.PI/2,0),o.arc(t+a-c,e+n-c,c,0,Math.PI/2),o.arc(t+h,e+n-h,h,Math.PI/2,Math.PI),o.fill()}else o.moveTo(S,i.y),o.lineTo(S+i.width,i.y),o.lineTo(S+i.width,m),o.lineTo(S,m),o.lineTo(S,i.y),o.fill();0==p&&l.meterBorder>0&&(o.closePath(),o.stroke())}}}})),!1!==e.dataLabel&&1===a&&t.forEach((function(n,c){let h,d,p;h=[].concat(e.chartData.yAxisData.ranges[n.index]),d=h.pop(),p=h.shift();var u=n.data;switch(l.type){case"group":kn(nn(fn(u,d,p,s,r,e,i,a),r,t.length,c,0,e),n,i,o,e);break;case"stack":kn(mn(u,d,p,s,r,e,i,c,t,a),n,i,o,e);break;case"meter":kn(pn(u,d,p,s,r,e,i,a),n,i,o,e)}})),o.restore(),{xAxisPoints:s,calPoints:c,eachSpacing:r}}(n,e,i,o,t),r=a.xAxisPoints,l=a.calPoints,c=a.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Un(0,e,i,o),!1!==e.enableMarkLine&&1===t&&Mn(e,0,o),jn(e.series,e,i,o,e.chartData),Nn(e,i,o,t),Zn(0,o)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"mount":this.animationInstance=new ts({timing:e.timing,duration:r,onProcess:function(t){o.clearRect(0,0,e.width,e.height),e.rotate&&Sn(o,e),Bn(0,e,0,o),zn(s,e,i,o);var a=function(t,e,i,o){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=e.chartData.xAxisData,s=n.xAxisPoints,r=n.eachSpacing,l=Ta({},{type:"mount",widthRatio:1,borderWidth:1,barBorderCircle:!1,barBorderRadius:[],linearType:"none",linearOpacity:1,customColor:[],colorStop:0},e.extra.mount);l.widthRatio=l.widthRatio<=0?0:l.widthRatio,l.widthRatio=l.widthRatio>=2?2:l.widthRatio,o.save();let c,h,d,p=-2,u=s.length+2;e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(o.translate(e._scrollDistance_,0),p=Math.floor(-e._scrollDistance_/r)-2,u=p+e.xAxis.itemCount+4),l.customColor=Fa(l.linearType,l.customColor,t,i),c=[].concat(e.chartData.yAxisData.ranges[0]),h=c.pop(),d=c.shift();let f=(e.height-e.area[0]-e.area[2])*(0-h)/(d-h),g=e.height-Math.round(f)-e.area[2];var y=gn(t,h,d,s,r,e,l,g,a);switch(l.type){case"bar":for(let i=0;ip&&ig?g:a.y,i=a.width,n=Math.abs(g-a.y);l.barBorderCircle&&(l.barBorderRadius=[i/2,i/2,0,0]),a.y>g&&(l.barBorderRadius=[0,0,i/2,i/2]);let[s,r,c,h]=l.barBorderRadius,d=Math.min(i/2,n/2);s=s>d?d:s,r=r>d?d:r,c=c>d?d:c,h=h>d?d:h,s=s<0?0:s,r=r<0?0:r,c=c<0?0:c,h=h<0?0:h,o.arc(t+s,e+s,s,-Math.PI,-Math.PI/2),o.arc(t+i-r,e+r,r,-Math.PI/2,0),o.arc(t+i-c,e+n-c,c,0,Math.PI/2),o.arc(t+h,e+n-h,h,Math.PI/2,Math.PI)}else o.moveTo(m,a.y),o.lineTo(m+a.width,a.y),o.lineTo(m+a.width,g),o.lineTo(m,g),o.lineTo(m,a.y);o.setStrokeStyle(w),o.setFillStyle(b),l.borderWidth>0&&(o.setLineWidth(l.borderWidth*e.pix),o.closePath(),o.stroke()),o.fill()}}break;case"triangle":for(let i=0;ip&&i0&&(o.setLineWidth(l.borderWidth*e.pix),o.stroke()),o.fill())}break;case"mount":for(let i=0;ip&&i0&&(o.setLineWidth(l.borderWidth*e.pix),o.stroke()),o.fill())}break;case"sharp":for(let i=0;ip&&i0&&(o.setLineWidth(l.borderWidth*e.pix),o.stroke()),o.fill())}}if(!1!==e.dataLabel&&1===a){let n,c,h;n=[].concat(e.chartData.yAxisData.ranges[0]),c=n.pop(),h=n.shift(),Dn(y=gn(t,c,h,s,r,e,l,g,a),t,i,o,e,g)}return o.restore(),{xAxisPoints:s,calPoints:y,eachSpacing:r}}(n,e,i,o,t),r=a.xAxisPoints,l=a.calPoints,c=a.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Un(0,e,i,o),!1!==e.enableMarkLine&&1===t&&Mn(e,0,o),jn(e.series,e,i,o,e.chartData),Nn(e,i,o,t),Zn(0,o)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"bar":this.animationInstance=new ts({timing:e.timing,duration:r,onProcess:function(t){o.clearRect(0,0,e.width,e.height),e.rotate&&Sn(o,e),zn(s,e,i,o);var a=function(t,e,i,o){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=[],s=(e.height-e.area[0]-e.area[2])/e.categories.length;for(let d=0;dc&&td?d:s,l=l>d?d:l,c=c>d?d:c,h=h>d?d:h,s=s<0?0:s,l=l<0?0:l,c=c<0?0:c,h=h<0?0:h,o.arc(t+h,a+h,h,-Math.PI,-Math.PI/2),o.arc(i.x-s,a+s,s,-Math.PI/2,0),o.arc(i.x-l,a+e-l,l,0,Math.PI/2),o.arc(t+c,a+e-c,c,Math.PI/2,Math.PI)}else o.moveTo(b,w),o.lineTo(i.x,w),o.lineTo(i.x,w+i.width),o.lineTo(b,w+i.width),o.lineTo(b,w),o.setLineWidth(1),o.setStrokeStyle(v);o.setFillStyle(S),o.closePath(),o.fill()}}break;case"stack":m=xn(y,f,g,n,s,e,i,p,t,a),l.push(m),m=cn(m,s,t.length,0,0,e);for(let t=0;tc&&t4&&void 0!==arguments[4]?arguments[4]:1,n=Ta({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1,activeType:"none"},e.extra.area);let s=e.chartData.xAxisData,r=s.xAxisPoints,l=s.eachSpacing,c=e.height-e.area[2],h=[];o.save();let d=0,p=e.width+l;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(o.translate(e._scrollDistance_,0),d=-e._scrollDistance_-2*l+e.area[3],p=d+(e.xAxis.itemCount+4)*l),t.forEach((function(t,s){let u,f,g;u=[].concat(e.chartData.yAxisData.ranges[t.index]),f=u.pop(),g=u.shift();let y=pn(t.data,f,g,r,l,e,i,a);h.push(y);let m=Va(y,t);for(let i=0;i1){let t=a[0],e=a[a.length-1];o.moveTo(t.x,t.y);let i=0;if("curve"===n.type)for(let n=0;nd&&(o.moveTo(t.x,t.y),i=1),n>0&&t.x>d&&t.xd&&(o.moveTo(t.x,t.y),i=1),n>0&&t.x>d&&t.xd&&(o.moveTo(t.x,t.y),i=1),n>0&&t.x>d&&t.xd&&(o.moveTo(i.x,i.y),t=1),e>0&&i.x>d&&i.xd&&(o.moveTo(i.x,i.y),t=1),e>0&&i.x>d&&i.xd&&(o.moveTo(i.x,i.y),t=1),e>0&&i.x>d&&i.x4&&void 0!==arguments[4]?arguments[4]:1,n=Ta({},{type:"area",activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF",linearType:"none",customColor:[]},e.extra.rose);0==i.pieChartLinePadding&&(i.pieChartLinePadding=n.activeRadius*e.pix);var s={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},r=Math.min((e.width-e.area[1]-e.area[3])/2-i.pieChartLinePadding-i.pieChartTextPadding-i._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-i.pieChartLinePadding-i.pieChartTextPadding);r=r<10?10:r;var l=n.minRadius||.5*r;r4&&void 0!==arguments[4]?arguments[4]:1,n=Ta({},{gridColor:"#cccccc",gridType:"radar",gridEval:1,axisLabel:!1,axisLabelTofix:0,labelShow:!0,labelColor:"#666666",labelPointShow:!1,labelPointRadius:3,labelPointColor:"#cccccc",opacity:.2,gridCount:3,border:!1,borderWidth:2,linearType:"none",customColor:[]},e.extra.radar),s=Ua(e.categories.length),r={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},l=(e.width-e.area[1]-e.area[3])/2,c=(e.height-e.area[0]-e.area[2])/2,h=Math.min(l-(Ba(e.categories,i.fontSize,o)+i.radarLabelTextMargin),c-i.radarLabelTextMargin);h=(h-=i.radarLabelTextMargin*e.pix)<10?10:h,h=n.radius?n.radius:h,o.beginPath(),o.setLineWidth(1*e.pix),o.setStrokeStyle(n.gridColor),s.forEach((function(t,e){var i=La(h*Math.cos(t),h*Math.sin(t),r);o.moveTo(r.x,r.y),e%n.gridEval==0&&o.lineTo(i.x,i.y)})),o.stroke(),o.closePath();for(var d=function(t){var i={};if(o.beginPath(),o.setLineWidth(1*e.pix),o.setStrokeStyle(n.gridColor),"radar"==n.gridType)s.forEach((function(e,a){var s=La(h/n.gridCount*t*Math.cos(e),h/n.gridCount*t*Math.sin(e),r);0===a?(i=s,o.moveTo(s.x,s.y)):o.lineTo(s.x,s.y)})),o.lineTo(i.x,i.y);else{var a=La(h/n.gridCount*t*Math.cos(1.5),h/n.gridCount*t*Math.sin(1.5),r);o.arc(r.x,r.y,r.y-a.y,0,2*Math.PI,!1)}o.stroke(),o.closePath()},p=1;p<=n.gridCount;p++)d(p);n.customColor=Fa(n.linearType,n.customColor,t,i);var u=Ya(s,r,h,t,e,a);if(u.forEach((function(i,a){o.beginPath(),o.setLineWidth(n.borderWidth*e.pix),o.setStrokeStyle(i.color);var s,l=Aa(i.color,n.opacity);"custom"==n.linearType&&((s=o.createCircularGradient?o.createCircularGradient(r.x,r.y,h):o.createRadialGradient(r.x,r.y,0,r.x,r.y,h)).addColorStop(0,Aa(n.customColor[t[a].linearIndex],n.opacity)),s.addColorStop(1,Aa(i.color,n.opacity)),l=s),o.setFillStyle(l),i.data.forEach((function(t,e){0===e?o.moveTo(t.position.x,t.position.y):o.lineTo(t.position.x,t.position.y)})),o.closePath(),o.fill(),!0===n.border&&o.stroke(),o.closePath(),!1!==e.dataPointShape&&vn(i.data.map((function(t){return t.position})),i.color,i.pointShape,o,e)})),!0===n.axisLabel){const i=Math.max(n.max,Math.max.apply(null,Ea(t))),a=h/n.gridCount,s=e.fontSize*e.pix;for(o.setFontSize(s),o.setFillStyle(e.fontColor),o.setTextAlign("left"),p=0;p4&&void 0!==arguments[4]?arguments[4]:1,r=Ta({},{startAngle:.75,endAngle:.25,type:"default",direction:"cw",lineCap:"round",width:12,gap:2,linearType:"none",customColor:[]},e.extra.arcbar);t=tn(t,r,s),a=r.centerX||r.centerY?{x:r.centerX?r.centerX:e.width/2,y:r.centerY?r.centerY:e.height/2}:{x:e.width/2,y:e.height/2},r.radius?n=r.radius:(n=Math.min(a.x,a.y),n-=5*e.pix,n-=r.width/2),n=n<10?10:n,r.customColor=Fa(r.linearType,r.customColor,t,i);for(let h=0;h5&&void 0!==arguments[5]?arguments[5]:1,s=Ta({},{type:"default",startAngle:.75,endAngle:.25,width:15,labelOffset:13,splitLine:{fixRadius:0,splitNumber:10,width:15,color:"#FFFFFF",childNumber:5,childWidth:5},pointer:{width:15,color:"auto"}},i.extra.gauge);null==s.oldAngle&&(s.oldAngle=s.startAngle),null==s.oldData&&(s.oldData=0),t=on(t,s.startAngle,s.endAngle);var r={x:i.width/2,y:i.height/2},l=Math.min(r.x,r.y);l-=5*i.pix;var c=(l=(l-=s.width/2)<10?10:l)-s.width,h=0;if("progress"==s.type){var d=l-3*s.width;a.beginPath();let t=a.createLinearGradient(r.x,r.y-d,r.x,r.y+d);t.addColorStop("0",Aa(e[0].color,.3)),t.addColorStop("1.0",Aa("#FFFFFF",.1)),a.setFillStyle(t),a.arc(r.x,r.y,d,0,2*Math.PI,!1),a.fill(),a.setLineWidth(s.width),a.setStrokeStyle(Aa(e[0].color,.3)),a.setLineCap("round"),a.beginPath(),a.arc(r.x,r.y,c,s.startAngle*Math.PI,s.endAngle*Math.PI,!1),a.stroke(),h=s.endAnglen/f?a.setStrokeStyle(Aa(e[0].color,1)):a.setStrokeStyle(Aa(e[0].color,.3)),a.setLineWidth(3*i.pix),a.moveTo(p,0),a.lineTo(u,0),a.stroke(),a.rotate(o*Math.PI);a.restore(),e=en(e,s,n),a.setLineWidth(s.width),a.setStrokeStyle(e[0].color),a.setLineCap("round"),a.beginPath(),a.arc(r.x,r.y,c,s.startAngle*Math.PI,e[0]._proportion_*Math.PI,!1),a.stroke();let y=l-2.5*s.width;a.save(),a.translate(r.x,r.y),a.rotate((e[0]._proportion_-1)*Math.PI),a.beginPath(),a.setLineWidth(s.width/3);let m=a.createLinearGradient(0,.6*-y,0,.6*y);m.addColorStop("0",Aa("#FFFFFF",0)),m.addColorStop("0.5",Aa(e[0].color,1)),m.addColorStop("1.0",Aa("#FFFFFF",0)),a.setStrokeStyle(m),a.arc(0,0,y,.85*Math.PI,1.15*Math.PI,!1),a.stroke(),a.beginPath(),a.setLineWidth(1),a.setStrokeStyle(e[0].color),a.setFillStyle(e[0].color),a.moveTo(-y-s.width/3/2,-4),a.lineTo(-y-s.width/3/2-4,0),a.lineTo(-y-s.width/3/2,4),a.lineTo(-y-s.width/3/2,-4),a.stroke(),a.fill(),a.restore()}else{a.setLineWidth(s.width),a.setLineCap("butt");for(let e=0;e5&&void 0!==arguments[5]?arguments[5]:1,s=Ta({},{color:{},average:{}},i.extra.candle);s.color=Ta({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},s.color),s.average=Ta({},{show:!1,name:[],day:[],color:o.color},s.average),i.extra.candle=s;let r=i.chartData.xAxisData,l=r.xAxisPoints,c=r.eachSpacing,h=[];a.save();let d=-2,p=l.length+2,u=0,f=i.width+c;return i._scrollDistance_&&0!==i._scrollDistance_&&!0===i.enableScroll&&(a.translate(i._scrollDistance_,0),d=Math.floor(-i._scrollDistance_/c)-2,p=d+i.xAxis.itemCount+4,u=-i._scrollDistance_-2*c+i.area[3],f=u+(i.xAxis.itemCount+4)*c),(s.average.show||e)&&e.forEach((function(t,e){let s,r,h;s=[].concat(i.chartData.yAxisData.ranges[t.index]),r=s.pop(),h=s.shift();var d=Va(pn(t.data,r,h,l,c,i,o,n),t);for(let i=0;iu&&(a.moveTo(o.x,o.y),t=1),i>0&&o.x>u&&o.xd&&o0?(a.setStrokeStyle(s.color.upLine),a.setFillStyle(s.color.upFill),a.setLineWidth(1*i.pix),a.moveTo(t[3].x,t[3].y),a.lineTo(t[1].x,t[1].y),a.lineTo(t[1].x-c/4,t[1].y),a.lineTo(t[0].x-c/4,t[0].y),a.lineTo(t[0].x,t[0].y),a.lineTo(t[2].x,t[2].y),a.lineTo(t[0].x,t[0].y),a.lineTo(t[0].x+c/4,t[0].y),a.lineTo(t[1].x+c/4,t[1].y),a.lineTo(t[1].x,t[1].y),a.moveTo(t[3].x,t[3].y)):(a.setStrokeStyle(s.color.downLine),a.setFillStyle(s.color.downFill),a.setLineWidth(1*i.pix),a.moveTo(t[3].x,t[3].y),a.lineTo(t[0].x,t[0].y),a.lineTo(t[0].x-c/4,t[0].y),a.lineTo(t[1].x-c/4,t[1].y),a.lineTo(t[1].x,t[1].y),a.lineTo(t[2].x,t[2].y),a.lineTo(t[1].x,t[1].y),a.lineTo(t[1].x+c/4,t[1].y),a.lineTo(t[0].x+c/4,t[0].y),a.lineTo(t[0].x,t[0].y),a.moveTo(t[3].x,t[3].y)),a.closePath(),a.fill(),a.stroke()}})),a.restore(),{xAxisPoints:l,calPoints:h,eachSpacing:c}}(n,l,e,i,o,t),r=a.xAxisPoints,c=a.calPoints,h=a.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=c,e.chartData.eachSpacing=h,Un(0,e,i,o),!1!==e.enableMarkLine&&1===t&&Mn(e,0,o),jn(l?0:e.series,e,i,o,e.chartData),Nn(e,i,o,t),Zn(0,o)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}})}}function is(){this.events={}}ts.prototype.stop=function(){this.isStop=!0},is.prototype.addEventListener=function(t,e){this.events[t]=this.events[t]||[],this.events[t].push(e)},is.prototype.delEventListener=function(t){this.events[t]=[]},is.prototype.trigger=function(){for(var t=arguments.length,e=Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:{};this.opts=Ta({},this.opts,t),this.opts.updateData=!0;let e=t.scrollPosition||"current";switch(e){case"current":this.opts._scrollDistance_=this.scrollOption.currentOffset;break;case"left":this.opts._scrollDistance_=0,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0};break;case"right":let t=wn(this.opts.series,this.opts,this.config,this.context).yAxisWidth;this.config.yAxisWidth=t;let e=0,i=hn(this.opts.categories,this.opts,this.config),o=i.xAxisPoints,a=i.startX;e=i.endX-a-i.eachSpacing*(o.length-1),this.scrollOption={currentOffset:e,startTouchX:e,distance:0,lastMoveTime:0},this.opts._scrollDistance_=e}es.call(this,this.opts.type,this.opts,this.config,this.context)},os.prototype.zoom=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0!==this.opts.enableScroll)return void console.log("[uCharts] 请启用滚动条后使用");let e=Math.round(Math.abs(this.scrollOption.currentOffset)/this.opts.chartData.eachSpacing)+Math.round(this.opts.xAxis.itemCount/2);this.opts.animation=!1,this.opts.xAxis.itemCount=t.itemCount;let i=wn(this.opts.series,this.opts,this.config,this.context),o=i.yAxisWidth;this.config.yAxisWidth=o;let a=0,n=hn(this.opts.categories,this.opts,this.config),s=n.xAxisPoints,r=n.startX,l=n.endX,c=n.eachSpacing,h=c*e,d=l-r,p=d-c*(s.length-1);a=d/2-h,a>0&&(a=0),a=this.opts.categories.length?this.opts.categories.length:s,this.opts.animation=!1,this.opts.xAxis.itemCount=s;let r=0,l=hn(this.opts.categories,this.opts,this.config),c=l.xAxisPoints,h=l.startX,d=l.endX,p=l.eachSpacing,u=p*this.scrollOption.moveCurrent1,f=d-h-p*(c.length-1);r=-u+Math.min(o[0].x,o[1].x)-this.opts.area[3]-p,r>0&&(r=0),r2*Math.PI&&(t-=2*Math.PI),t},s=Math.atan2(e.center.y-t.y,t.x-e.center.x);(s*=-1)<0&&(s+=2*Math.PI),e.angleList.map((function(t){return n(-1*t)})).forEach((function(t,e){var i=n(t-o/2),r=n(t+o/2);r=i&&s<=r||s+2*Math.PI>=i&&s+2*Math.PI<=r)&&(a=e)}))}return a}({x:i.x,y:i.y},this.opts.chartData.radarData,this.opts.categories.length):"funnel"===this.opts.type?function(t,e){for(var i=-1,o=0,a=e.series.length;on.funnelArea[0]&&t.xn.funnelArea[1]&&t.yn.area[0]&&t.xn.area[1]&&t.y4&&void 0!==arguments[4]?arguments[4]:0,n={index:-1,group:[]},s=i.chartData.eachSpacing/2;let r=i.chartData.yAxisPoints;return e&&e.length>0&&qa(t,i)&&r.forEach((function(e,i){t.y+a+s>e&&(n.index=i)})),n}({x:i.x,y:i.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset)):function(t,e,i,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,n={index:-1,group:[]},s=i.chartData.eachSpacing/2;let r=[];if(e&&e.length>0){if(i.categories){for(let t=1;te&&(n.index=i)}));else{let i=Array(e.length);for(let n=0;ne.start.x&&t.xe.start.y&&t.yi[0]-0&&t.xi[1]-0&&t.y1&&void 0!==arguments[1]?arguments[1]:{},i=null;if(i=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0]){Na(i,this.opts,t);var o=this.getLegendDataIndex(t);o>=0&&("candle"==this.opts.type?this.opts.seriesMA[o].show=!this.opts.seriesMA[o].show:this.opts.series[o].show=!this.opts.series[o].show,this.opts.animation=!!e.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,es.call(this,this.opts.type,this.opts,this.config,this.context))}},os.prototype.showToolTip=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null;(i=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0])||console.log("[uCharts] 未获取到event坐标信息");var o=Na(i,this.opts,t),a=this.scrollOption.currentOffset,n=Ta({},this.opts,{_scrollDistance_:a,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type||"scatter"===this.opts.type||"bubble"===this.opts.type){var s=this.getCurrentDataIndex(t);if((p=null==e.index?s.index:e.index)>-1||p.length>0)if(0!==(l=za(this.opts.series,p,s.group)).length){var r=(d=ja(l,this.opts,p,s.group,this.opts.categories,e)).textList;(c=d.offset).y=o.y,n.tooltip={textList:void 0!==e.textList?e.textList:r,offset:void 0!==e.offset?e.offset:c,option:e,index:p,group:s.group}}es.call(this,n.type,n,this.config,this.context)}if("mount"===this.opts.type){if((p=null==e.index?this.getCurrentDataIndex(t).index:e.index)>-1){n=Ta({},this.opts,{animation:!1});var l=Ta({},n._series_[p]),c=(r=[{text:e.formatter?e.formatter(l,void 0,p,n):l.name+": "+l.data,color:l.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?l.legendShape:this.opts.extra.tooltip.legendShape}],{x:n.chartData.calPoints[p].x,y:o.y});n.tooltip={textList:e.textList?e.textList:r,offset:void 0!==e.offset?e.offset:c,option:e,index:p}}es.call(this,n.type,n,this.config,this.context)}if("bar"===this.opts.type){s=this.getCurrentDataIndex(t);if((p=null==e.index?s.index:e.index)>-1||p.length>0)if(0!==(l=za(this.opts.series,p,s.group)).length){r=(d=ja(l,this.opts,p,s.group,this.opts.categories,e)).textList;(c=d.offset).x=o.x,n.tooltip={textList:void 0!==e.textList?e.textList:r,offset:void 0!==e.offset?e.offset:c,option:e,index:p}}es.call(this,n.type,n,this.config,this.context)}if("mix"===this.opts.type){s=this.getCurrentDataIndex(t);if((p=null==e.index?s.index:e.index)>-1){a=this.scrollOption.currentOffset,n=Ta({},this.opts,{_scrollDistance_:a,animation:!1});if(0!==(l=za(this.opts.series,p)).length){var h=Wa(l,this.opts,p,this.opts.categories,e);r=h.textList;(c=h.offset).y=o.y,n.tooltip={textList:e.textList?e.textList:r,offset:void 0!==e.offset?e.offset:c,option:e,index:p}}}es.call(this,n.type,n,this.config,this.context)}if("candle"===this.opts.type){s=this.getCurrentDataIndex(t);if((p=null==e.index?s.index:e.index)>-1){a=this.scrollOption.currentOffset,n=Ta({},this.opts,{_scrollDistance_:a,animation:!1});if(0!==(l=za(this.opts.series,p)).length){var d;r=(d=Ha(this.opts.series[0].data,l,this.opts,p,this.opts.categories,this.opts.extra.candle)).textList;(c=d.offset).y=o.y,n.tooltip={textList:e.textList?e.textList:r,offset:void 0!==e.offset?e.offset:c,option:e,index:p}}}es.call(this,n.type,n,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){if((p=null==e.index?this.getCurrentDataIndex(t):e.index)>-1){n=Ta({},this.opts,{animation:!1}),l=Ta({},n._series_[p]),r=[{text:e.formatter?e.formatter(l,void 0,p,n):l.name+": "+l.data,color:l.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?l.legendShape:this.opts.extra.tooltip.legendShape}],c={x:o.x,y:o.y};n.tooltip={textList:e.textList?e.textList:r,offset:void 0!==e.offset?e.offset:c,option:e,index:p}}es.call(this,n.type,n,this.config,this.context)}if("map"===this.opts.type){if((p=null==e.index?this.getCurrentDataIndex(t):e.index)>-1){n=Ta({},this.opts,{animation:!1});(l=Ta({},this.opts.series[p])).name=l.properties.name;r=[{text:e.formatter?e.formatter(l,void 0,p,this.opts):l.name,color:l.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?l.legendShape:this.opts.extra.tooltip.legendShape}],c={x:o.x,y:o.y};n.tooltip={textList:e.textList?e.textList:r,offset:void 0!==e.offset?e.offset:c,option:e,index:p}}n.updateData=!1,es.call(this,n.type,n,this.config,this.context)}if("word"===this.opts.type){if((p=null==e.index?this.getCurrentDataIndex(t):e.index)>-1){n=Ta({},this.opts,{animation:!1}),l=Ta({},this.opts.series[p]),r=[{text:e.formatter?e.formatter(l,void 0,p,this.opts):l.name,color:l.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?l.legendShape:this.opts.extra.tooltip.legendShape}],c={x:o.x,y:o.y};n.tooltip={textList:e.textList?e.textList:r,offset:void 0!==e.offset?e.offset:c,option:e,index:p}}n.updateData=!1,es.call(this,n.type,n,this.config,this.context)}if("radar"===this.opts.type){var p;if((p=null==e.index?this.getCurrentDataIndex(t):e.index)>-1){n=Ta({},this.opts,{animation:!1});if(0!==(l=za(this.opts.series,p)).length){r=l.map((t=>({text:e.formatter?e.formatter(t,this.opts.categories[p],p,this.opts):t.name+": "+t.data,color:t.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?t.legendShape:this.opts.extra.tooltip.legendShape}))),c={x:o.x,y:o.y};n.tooltip={textList:e.textList?e.textList:r,offset:void 0!==e.offset?e.offset:c,option:e,index:p}}}es.call(this,n.type,n,this.config,this.context)}},os.prototype.translate=function(t){this.scrollOption={currentOffset:t,startTouchX:t,distance:0,lastMoveTime:0};let e=Ta({},this.opts,{_scrollDistance_:t,animation:!1});es.call(this,this.opts.type,e,this.config,this.context)},os.prototype.scrollStart=function(t){var e=null,i=Na(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],this.opts,t);e&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=i.x)},os.prototype.scroll=function(t){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());let e=this.opts.touchMoveLimit||60,i=Date.now();if(!(i-this.scrollOption.lastMoveTime{var i=new Date;i.setTime(1e3*t);var o=i.getFullYear(),a=i.getMonth()+1;a=a<10?"0"+a:a;var n=i.getDate();n=n<10?"0"+n:n;var s=i.getHours();s=s<10?"0"+s:s;var r=i.getMinutes(),l=i.getSeconds();return r=r<10?"0"+r:r,l=l<10?"0"+l:l,"full"==e?o+"-"+a+"-"+n+" "+s+":"+r+":"+l:"y-m-d"==e?o+"-"+a+"-"+n:"h:m"==e?s+":"+r:"h:m:s"==e?s+":"+r+":"+l:[o,a,n,s,r,l]})(t,"h:m")},seriesDemo1:function(t,e,i,o){return t+"元"},tooltipDemo1:function(t,e,i,o){return 0==i?"随便用"+t.data+"年":"其他我没改"+t.data+"天"},pieDemo:function(t,e,i,o){if(void 0!==e)return i[e].name+":"+i[e].data+"元"}},demotype:{type:"line",color:as,padding:[15,10,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{line:{type:"curve",width:2}}},pie:{type:"pie",color:as,padding:[5,5,5,5],extra:{pie:{activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!0,borderWidth:3,borderColor:"#FFFFFF"}}},ring:{type:"ring",color:as,padding:[5,5,5,5],rotate:!1,dataLabel:!0,legend:{show:!0,position:"right",lineHeight:25},title:{name:"收益率",fontSize:15,color:"#666666"},subtitle:{name:"70%",fontSize:25,color:"#7cb5ec"},extra:{ring:{ringWidth:30,activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!0,borderWidth:3,borderColor:"#FFFFFF"}}},rose:{type:"rose",color:as,padding:[5,5,5,5],legend:{show:!0,position:"left",lineHeight:25},extra:{rose:{type:"area",minRadius:50,activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF"}}},word:{type:"word",color:as,extra:{word:{type:"normal",autoColors:!1}}},funnel:{type:"funnel",color:as,padding:[15,15,0,15],extra:{funnel:{activeOpacity:.3,activeWidth:10,border:!0,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right"}}},map:{type:"map",color:as,padding:[0,0,0,0],dataLabel:!0,extra:{map:{border:!0,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#F04864",activeFillColor:"#FACC14",activeFillOpacity:1}}},arcbar:{type:"arcbar",color:as,title:{name:"百分比",fontSize:25,color:"#00FF00"},subtitle:{name:"默认标题",fontSize:15,color:"#666666"},extra:{arcbar:{type:"default",width:12,backgroundColor:"#E9E9E9",startAngle:.75,endAngle:.25,gap:2}}},line:{type:"line",color:as,padding:[15,10,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{line:{type:"straight",width:2,activeType:"hollow"}}},tline:{type:"line",color:as,padding:[15,10,0,15],xAxis:{disableGrid:!1,boundaryGap:"justify"},yAxis:{gridType:"dash",dashLength:2,data:[{min:0,max:80}]},legend:{},extra:{line:{type:"curve",width:2,activeType:"hollow"}}},tarea:{type:"area",color:as,padding:[15,10,0,15],xAxis:{disableGrid:!0,boundaryGap:"justify"},yAxis:{gridType:"dash",dashLength:2,data:[{min:0,max:80}]},legend:{},extra:{area:{type:"curve",opacity:.2,addLine:!0,width:2,gradient:!0,activeType:"hollow"}}},column:{type:"column",color:as,padding:[15,15,0,5],xAxis:{disableGrid:!0},yAxis:{data:[{min:0}]},legend:{},extra:{column:{type:"group",width:30,activeBgColor:"#000000",activeBgOpacity:.08}}},mount:{type:"mount",color:as,padding:[15,15,0,5],xAxis:{disableGrid:!0},yAxis:{data:[{min:0}]},legend:{},extra:{mount:{type:"mount",widthRatio:1.5}}},bar:{type:"bar",color:as,padding:[15,30,0,5],xAxis:{boundaryGap:"justify",disableGrid:!1,min:0,axisLine:!1},yAxis:{},legend:{},extra:{bar:{type:"group",width:30,meterBorde:1,meterFillColor:"#FFFFFF",activeBgColor:"#000000",activeBgOpacity:.08}}},area:{type:"area",color:as,padding:[15,15,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{area:{type:"straight",opacity:.2,addLine:!0,width:2,gradient:!1,activeType:"hollow"}}},radar:{type:"radar",color:as,padding:[5,5,5,5],dataLabel:!1,legend:{show:!0,position:"right",lineHeight:25},extra:{radar:{gridType:"radar",gridColor:"#CCCCCC",gridCount:3,opacity:.2,max:200,labelShow:!0}}},gauge:{type:"gauge",color:as,title:{name:"66Km/H",fontSize:25,color:"#2fc25b",offsetY:50},subtitle:{name:"实时速度",fontSize:15,color:"#1890ff",offsetY:-50},extra:{gauge:{type:"default",width:30,labelColor:"#666666",startAngle:.75,endAngle:.25,startNumber:0,endNumber:100,labelFormat:"",splitLine:{fixRadius:0,splitNumber:10,width:30,color:"#FFFFFF",childNumber:5,childWidth:12},pointer:{width:24,color:"auto"}}}},candle:{type:"candle",color:as,padding:[15,15,0,15],enableScroll:!0,enableMarkLine:!0,dataLabel:!1,xAxis:{labelCount:4,itemCount:40,disableGrid:!0,gridColor:"#CCCCCC",gridType:"solid",dashLength:4,scrollShow:!0,scrollAlign:"left",scrollColor:"#A6A6A6",scrollBackgroundColor:"#EFEBEF"},yAxis:{},legend:{},extra:{candle:{color:{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},average:{show:!0,name:["MA5","MA10","MA30"],day:[5,10,20],color:["#1890ff","#2fc25b","#facc14"]}},markLine:{type:"dash",dashLength:5,data:[{value:2150,lineColor:"#f04864",showLabel:!0},{value:2350,lineColor:"#f04864",showLabel:!0}]}}},mix:{type:"mix",color:as,padding:[15,15,0,15],xAxis:{disableGrid:!0},yAxis:{disabled:!1,disableGrid:!1,splitNumber:5,gridType:"dash",dashLength:4,gridColor:"#CCCCCC",padding:10,showTitle:!0,data:[]},legend:{},extra:{mix:{column:{width:20}}}},scatter:{type:"scatter",color:as,padding:[15,15,0,15],dataLabel:!1,xAxis:{disableGrid:!1,gridType:"dash",splitNumber:5,boundaryGap:"justify",min:0},yAxis:{disableGrid:!1,gridType:"dash"},legend:{},extra:{scatter:{}}},bubble:{type:"bubble",color:as,padding:[15,15,0,15],xAxis:{disableGrid:!1,gridType:"dash",splitNumber:5,boundaryGap:"justify",min:0,max:250},yAxis:{disableGrid:!1,gridType:"dash",data:[{min:0,max:150}]},legend:{},extra:{bubble:{border:2,opacity:.5}}}},ss=["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],rs={type:["pie","ring","rose","funnel","line","column","area","radar","gauge","candle","demotype"],categories:["line","column","area","radar","gauge","candle","demotype"],instance:{},option:{},formatter:{tooltipDemo1:function(t){let e="";for(let i in t){0==i&&(e+=t[i].axisValueLabel+"年销售额");let o="--";null!==t[i].data&&(o=t[i].data),e+="\n"+t[i].seriesName+":"+o+" 万元"}return e},legendFormat:function(t){return"自定义图例+"+t},yAxisFormatDemo:function(t,e){return t+"元"},seriesFormatDemo:function(t){return t.name+"年"+t.value+"元"}},demotype:{color:ss},column:{color:ss,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{bottom:"left"},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!0,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"bar",data:[],barwidth:20,label:{show:!0,color:"#666666",position:"top"}}},line:{color:ss,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{bottom:"left"},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!0,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"line",data:[],barwidth:20,label:{show:!0,color:"#666666",position:"top"}}},area:{color:ss,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{bottom:"left"},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!0,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"line",data:[],areaStyle:{},label:{show:!0,color:"#666666",position:"top"}}},pie:{color:ss,title:{text:""},tooltip:{trigger:"item"},grid:{top:40,bottom:30,right:15,left:15},legend:{bottom:"left"},seriesTemplate:{name:"",type:"pie",data:[],radius:"50%",label:{show:!0,color:"#666666",position:"top"}}},ring:{color:ss,title:{text:""},tooltip:{trigger:"item"},grid:{top:40,bottom:30,right:15,left:15},legend:{bottom:"left"},seriesTemplate:{name:"",type:"pie",data:[],radius:["40%","70%"],avoidLabelOverlap:!1,label:{show:!0,color:"#666666",position:"top"},labelLine:{show:!0}}},rose:{color:ss,title:{text:""},tooltip:{trigger:"item"},legend:{top:"bottom"},seriesTemplate:{name:"",type:"pie",data:[],radius:"55%",center:["50%","50%"],roseType:"area"}},funnel:{color:ss,title:{text:""},tooltip:{trigger:"item",formatter:"{b} : {c}%"},legend:{top:"bottom"},seriesTemplate:{name:"",type:"funnel",left:"10%",top:60,bottom:60,width:"80%",min:0,max:100,minSize:"0%",maxSize:"100%",sort:"descending",gap:2,label:{show:!0,position:"inside"},labelLine:{length:10,lineStyle:{width:1,type:"solid"}},itemStyle:{bordercolor:"#fff",borderwidth:1},emphasis:{label:{fontSize:20}},data:[]}},gauge:{color:ss,tooltip:{formatter:"{a}
{b} : {c}%"},seriesTemplate:{name:"业务指标",type:"gauge",detail:{formatter:"{value}%"},data:[{value:50,name:"完成率"}]}},candle:{xAxis:{data:[]},yAxis:{},color:ss,title:{text:""},dataZoom:[{type:"inside",xAxisIndex:[0,1],start:10,end:100},{show:!0,xAxisIndex:[0,1],type:"slider",bottom:10,start:10,end:100}],seriesTemplate:{name:"",type:"k",data:[]}}};var ls={},cs=null;function hs(t={},...e){for(let i in e)for(let o in e[i])e[i].hasOwnProperty(o)&&(t[o]=e[i][o]&&"object"==typeof e[i][o]?hs(Array.isArray(e[i][o])?[]:{},t[o],e[i][o]):e[i][o]);return t}function ds(t,e){for(let i in t)t.hasOwnProperty(i)&&null!==t[i]&&"object"==typeof t[i]?ds(t[i],e):"format"===i&&"string"==typeof t[i]&&(t.formatter=e[t[i]]?e[t[i]]:void 0);return t}const ps={data:()=>({rid:null}),mounted(){cs={top:0,left:0};let t=document.querySelectorAll("uni-main")[0];void 0===t&&(t=document.querySelectorAll("uni-page-wrapper")[0]),cs={top:t.offsetTop,left:t.offsetLeft},setTimeout((()=>{null===this.rid&&this.$ownerInstance&&this.$ownerInstance.callMethod("getRenderType")}),200)},destroyed(){delete ns.option[this.rid],delete ns.instance[this.rid],delete rs.option[this.rid],delete rs.instance[this.rid]},methods:{ecinit(t,e,i,o){let a=JSON.stringify(t.id);this.rid=a,ls[a]=this.$ownerInstance||o;let n=JSON.parse(JSON.stringify(t)),s=n.type;s&&rs.type.includes(s)?rs.option[a]=hs({},rs[s],n):rs.option[a]=hs({},n);let r=n.chartData;if(r){rs.option[a].xAxis&&rs.option[a].xAxis.type&&"category"===rs.option[a].xAxis.type&&(rs.option[a].xAxis.data=r.categories),rs.option[a].yAxis&&rs.option[a].yAxis.type&&"category"===rs.option[a].yAxis.type&&(rs.option[a].yAxis.data=r.categories),rs.option[a].series=[];for(var l=0;l{let i=JSON.parse(JSON.stringify({x:e.event.offsetX,y:e.event.offsetY}));ls[t].callMethod("emitMsg",{name:"getIndex",params:{type:"getIndex",event:i,currentIndex:e.dataIndex,value:e.data,seriesName:e.seriesName,id:t}})})),rs.instance[t].on("highlight",(e=>{ls[t].callMethod("emitMsg",{name:"getHighlight",params:{type:"highlight",res:e,id:t}})}))),this.updataEChart(t,rs.option[t])):this.updataEChart(t,rs.option[t])},updataEChart(t,e){if((e=ds(e,rs.formatter)).tooltip&&(e.tooltip.show=!!e.tooltipShow,e.tooltip.position=this.tooltipPosition(),"string"==typeof e.tooltipFormat&&rs.formatter[e.tooltipFormat]&&(e.tooltip.formatter=e.tooltip.formatter?e.tooltip.formatter:rs.formatter[e.tooltipFormat])),e.series)for(let i in e.series){let t=e.series[i].linearGradient;t&&(e.series[i].color=new echarts.graphic.LinearGradient(t[0],t[1],t[2],t[3],t[4]))}rs.instance[t].setOption(e,e.notMerge),rs.instance[t].on("finished",(function(){ls[t].callMethod("emitMsg",{name:"complete",params:{type:"complete",complete:!0,id:t}}),rs.instance[t]&&rs.instance[t].off("finished")})),void 0!==ls[t].$el.children[0].clientWidth&&(Math.abs(ls[t].$el.children[0].clientWidth-rs.instance[t].getWidth())>3||Math.abs(ls[t].$el.children[0].clientHeight-rs.instance[t].getHeight())>3)&&this.ecresize()},tooltipPosition:()=>(t,e,i,o,a)=>{let n=t[0],s=t[1],r=a.viewSize[0],l=a.viewSize[1],c=a.contentSize[0],h=a.contentSize[1],d=n+30,p=s+30;return d+c>r&&(d=n-c-30),p+h>l&&(p=s-h-30),[d,p]},ucinit(t,e,i,o){if(JSON.stringify(t)==JSON.stringify(e))return;if(!t.canvasId)return;let a=JSON.parse(JSON.stringify(t.canvasId));this.rid=a,ls[a]=this.$ownerInstance||o,ns.option[a]=JSON.parse(JSON.stringify(t)),ns.option[a]=ds(ns.option[a],ns.formatter);let n=document.getElementById(a);n&&n.children[0]&&(ns.option[a].context=n.children[0].getContext("2d"),ns.instance[a]&&ns.option[a]&&!0===ns.option[a].update?this.updataUChart():setTimeout((()=>{ns.option[a].context.restore(),ns.option[a].context.save(),this.newUChart()}),100))},newUChart(){let t=this.rid;ns.instance[t]=new os(ns.option[t]),ns.instance[t].addEventListener("renderComplete",(()=>{ls[t].callMethod("emitMsg",{name:"complete",params:{type:"complete",complete:!0,id:t,opts:ns.instance[t].opts}}),ns.instance[t].delEventListener("renderComplete")})),ns.instance[t].addEventListener("scrollLeft",(()=>{ls[t].callMethod("emitMsg",{name:"scrollLeft",params:{type:"scrollLeft",scrollLeft:!0,id:t,opts:ns.instance[t].opts}})})),ns.instance[t].addEventListener("scrollRight",(()=>{ls[t].callMethod("emitMsg",{name:"scrollRight",params:{type:"scrollRight",scrollRight:!0,id:t,opts:ns.instance[t].opts}})}))},updataUChart(){let t=this.rid;ns.instance[t].updateData(ns.option[t])},tooltipDefault(t,e,i,o){if(e){let i=t.data;return"object"==typeof t.data&&(i=t.data.value),e+" "+t.name+":"+i}return t.properties&&t.properties.name?t.properties.name:t.name+":"+t.data},showTooltip(t,e){let i=ns.option[e].tooltipCustom;if(i&&null!=i){let o;i.x>=0&&i.y>=0&&(o={x:i.x,y:i.y+10}),ns.instance[e].showToolTip(t,{index:i.index,offset:o,textList:i.textList,formatter:(t,i,o,a)=>"string"==typeof ns.option[e].tooltipFormat&&ns.formatter[ns.option[e].tooltipFormat]?ns.formatter[ns.option[e].tooltipFormat](t,i,o,a):this.tooltipDefault(t,i,o,a)})}else ns.instance[e].showToolTip(t,{formatter:(t,i,o,a)=>"string"==typeof ns.option[e].tooltipFormat&&ns.formatter[ns.option[e].tooltipFormat]?ns.formatter[ns.option[e].tooltipFormat](t,i,o,a):this.tooltipDefault(t,i,o,a)})},tap(t){let e=this.rid,i=ns.option[e].ontap,o=ns.option[e].tooltipShow,a=ns.option[e].tapLegend;if(0==i)return;let n=null,s=null,r=document.getElementById("UC"+e).getBoundingClientRect(),l={};l=t.detail.x?{x:t.detail.x-r.left,y:t.detail.y-r.top+cs.top}:{x:t.clientX-r.left,y:t.clientY-r.top+cs.top},t.changedTouches=[],t.changedTouches.unshift(l),n=ns.instance[e].getCurrentDataIndex(t),s=ns.instance[e].getLegendDataIndex(t),!0===a&&ns.instance[e].touchLegend(t),1==o&&this.showTooltip(t,e),ls[e].callMethod("emitMsg",{name:"getIndex",params:{type:"getIndex",event:l,currentIndex:n,legendIndex:s,id:e,opts:ns.instance[e].opts}})},touchStart(t){let e=this.rid;0!=ns.option[e].ontouch&&(!0===ns.option[e].enableScroll&&1==t.touches.length&&ns.instance[e].scrollStart(t),ls[e].callMethod("emitMsg",{name:"getTouchStart",params:{type:"touchStart",event:t.changedTouches[0],id:e,opts:ns.instance[e].opts}}))},touchMove(t){let e=this.rid,i=ns.option[e].ontouch;if(0!=i){if(!0===ns.option[e].enableScroll&&1==t.changedTouches.length&&ns.instance[e].scroll(t),!0===ns.option[e].ontap&&!1===ns.option[e].enableScroll&&!0===ns.option[e].onmovetip){let i=document.getElementById("UC"+e).getBoundingClientRect(),o={x:t.changedTouches[0].clientX-i.left,y:t.changedTouches[0].clientY-i.top+cs.top};t.changedTouches.unshift(o),!0===ns.option[e].tooltipShow&&this.showTooltip(t,e)}!0===i&&!0===ns.option[e].enableScroll&&!0===ns.option[e].onzoom&&2==t.changedTouches.length&&ns.instance[e].dobuleZoom(t),ls[e].callMethod("emitMsg",{name:"getTouchMove",params:{type:"touchMove",event:t.changedTouches[0],id:e,opts:ns.instance[e].opts}})}},touchEnd(t){let e=this.rid;0!=ns.option[e].ontouch&&(!0===ns.option[e].enableScroll&&0==t.touches.length&&ns.instance[e].scrollEnd(t),ls[e].callMethod("emitMsg",{name:"getTouchEnd",params:{type:"touchEnd",event:t.changedTouches[0],id:e,opts:ns.instance[e].opts}}))},mouseDown(t){let e=this.rid;if(0==ns.option[e].onmouse)return;let i=document.getElementById("UC"+e).getBoundingClientRect(),o={};o={x:t.clientX-i.left,y:t.clientY-i.top+cs.top},t.changedTouches=[],t.changedTouches.unshift(o),ns.instance[e].scrollStart(t),ns.option[e].mousedown=!0,ls[e].callMethod("emitMsg",{name:"getTouchStart",params:{type:"mouseDown",event:o,id:e,opts:ns.instance[e].opts}})},mouseMove(t){let e=this.rid,i=ns.option[e].onmouse,o=ns.option[e].tooltipShow;if(0==i)return;let a=document.getElementById("UC"+e).getBoundingClientRect(),n={};n={x:t.clientX-a.left,y:t.clientY-a.top+cs.top},t.changedTouches=[],t.changedTouches.unshift(n),ns.option[e].mousedown?(ns.instance[e].scroll(t),ls[e].callMethod("emitMsg",{name:"getTouchMove",params:{type:"mouseMove",event:n,id:e,opts:ns.instance[e].opts}})):ns.instance[e]&&1==o&&this.showTooltip(t,e)},mouseUp(t){let e=this.rid;if(0==ns.option[e].onmouse)return;let i=document.getElementById("UC"+e).getBoundingClientRect(),o={};o={x:t.clientX-i.left,y:t.clientY-i.top+cs.top},t.changedTouches=[],t.changedTouches.unshift(o),ns.instance[e].scrollEnd(t),ns.option[e].mousedown=!1,ls[e].callMethod("emitMsg",{name:"getTouchEnd",params:{type:"mouseUp",event:o,id:e,opts:ns.instance[e].opts}})}}},us=t=>{t.$renderjs||(t.$renderjs=[]),t.$renderjs.push("rdcharts"),t.mixins||(t.mixins=[]),t.mixins.push({beforeCreate(){this.rdcharts=this},mounted(){this.$ownerInstance=this.$gcd(this,!0)}}),t.mixins.push(ps)};function fs(t={},...e){for(let i in e)for(let o in e[i])e[i].hasOwnProperty(o)&&(t[o]=e[i][o]&&"object"==typeof e[i][o]?fs(Array.isArray(e[i][o])?[]:{},t[o],e[i][o]):e[i][o]);return t}function gs(t,e){for(let i in t)t.hasOwnProperty(i)&&null!==t[i]&&"object"==typeof t[i]?gs(t[i],e):"format"===i&&"string"==typeof t[i]&&(t.formatter=e[t[i]]?e[t[i]]:void 0);return t}const ys={name:"qiun-data-charts",mixins:[ba.mixinDatacom],props:{type:{type:String,default:null},canvasId:{type:String,default:"uchartsid"},canvas2d:{type:Boolean,default:!1},background:{type:String,default:"rgba(0,0,0,0)"},animation:{type:Boolean,default:!0},chartData:{type:Object,default:()=>({categories:[],series:[]})},opts:{type:Object,default:()=>({})},eopts:{type:Object,default:()=>({})},loadingType:{type:Number,default:2},errorShow:{type:Boolean,default:!0},errorReload:{type:Boolean,default:!0},errorMessage:{type:String,default:null},inScrollView:{type:Boolean,default:!1},reshow:{type:Boolean,default:!1},reload:{type:Boolean,default:!1},disableScroll:{type:Boolean,default:!1},optsWatch:{type:Boolean,default:!0},onzoom:{type:Boolean,default:!1},ontap:{type:Boolean,default:!0},ontouch:{type:Boolean,default:!1},onmouse:{type:Boolean,default:!0},onmovetip:{type:Boolean,default:!1},echartsH5:{type:Boolean,default:!1},echartsApp:{type:Boolean,default:!1},tooltipShow:{type:Boolean,default:!0},tooltipFormat:{type:String,default:void 0},tooltipCustom:{type:Object,default:void 0},startDate:{type:String,default:void 0},endDate:{type:String,default:void 0},textEnum:{type:Array,default:()=>[]},groupEnum:{type:Array,default:()=>[]},pageScrollTop:{type:Number,default:0},directory:{type:String,default:"/"},tapLegend:{type:Boolean,default:!0},menus:{type:Array,default:()=>[]}},data:()=>({cid:"uchartsid",inWx:!1,inAli:!1,inTt:!1,inBd:!1,inH5:!1,inApp:!1,inWin:!1,type2d:!0,disScroll:!1,openmouse:!1,pixel:1,cWidth:375,cHeight:250,showchart:!1,echarts:!1,echartsResize:{state:!1},uchartsOpts:{},echartsOpts:{},drawData:{},lastDrawTime:null}),created(){if(this.cid=this.canvasId,"uchartsid"==this.canvasId||""==this.canvasId){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",e=t.length,i="";for(let o=0;o<32;o++)i+=t.charAt(Math.floor(Math.random()*e));this.cid=i}const t=H();"windows"!==t.platform&&"mac"!==t.platform||(this.inWin=!0),this.type2d=!1,this.disScroll=this.disableScroll},mounted(){this.inH5=!0,!0===this.inWin&&(this.openmouse=this.onmouse),!0===this.echartsH5&&(this.echarts=!0),this.$nextTick((()=>{this.beforeInit()}));const t=this.inH5?500:200,e=this;Z(function(t,e){let i=!1;return function(){clearTimeout(i),i&&clearTimeout(i),i=setTimeout((()=>{i=!1,t.apply(this,arguments)}),e)}}((function(t){if(1==e.mixinDatacomLoading)return;let i=e.mixinDatacomErrorMessage;null!==i&&"null"!==i&&""!==i||(e.echarts?e.echartsResize.state=!e.echartsResize.state:e.resizeHandler())}),t))},destroyed(){!0===this.echarts?(delete rs.option[this.cid],delete rs.instance[this.cid]):(delete ns.option[this.cid],delete ns.instance[this.cid]),$((()=>{}))},watch:{chartDataProps:{handler(t,e){"object"==typeof t?JSON.stringify(t)!==JSON.stringify(e)&&(this._clearChart(),t.series&&t.series.length>0?this.beforeInit():(this.mixinDatacomLoading=!0,this.showchart=!1,this.mixinDatacomErrorMessage=null)):(this.mixinDatacomLoading=!1,this._clearChart(),this.showchart=!1,this.mixinDatacomErrorMessage="参数错误:chartData数据类型错误")},immediate:!1,deep:!0},localdata:{handler(t,e){JSON.stringify(t)!==JSON.stringify(e)&&(t.length>0?this.beforeInit():(this.mixinDatacomLoading=!0,this._clearChart(),this.showchart=!1,this.mixinDatacomErrorMessage=null))},immediate:!1,deep:!0},optsProps:{handler(t,e){"object"==typeof t?JSON.stringify(t)!==JSON.stringify(e)&&!1===this.echarts&&1==this.optsWatch&&this.checkData(this.drawData):(this.mixinDatacomLoading=!1,this._clearChart(),this.showchart=!1,this.mixinDatacomErrorMessage="参数错误:opts数据类型错误")},immediate:!1,deep:!0},eoptsProps:{handler(t,e){"object"==typeof t?JSON.stringify(t)!==JSON.stringify(e)&&!0===this.echarts&&this.checkData(this.drawData):(this.mixinDatacomLoading=!1,this.showchart=!1,this.mixinDatacomErrorMessage="参数错误:eopts数据类型错误")},immediate:!1,deep:!0},reshow(t,e){!0===t&&!1===this.mixinDatacomLoading&&setTimeout((()=>{this.mixinDatacomErrorMessage=null,this.echartsResize.state=!this.echartsResize.state,this.checkData(this.drawData)}),200)},reload(t,e){!0===t&&(this.showchart=!1,this.mixinDatacomErrorMessage=null,this.reloading())},mixinDatacomErrorMessage(t,e){t&&(this.emitMsg({name:"error",params:{type:"error",errorShow:this.errorShow,msg:t,id:this.cid}}),this.errorShow&&console.log("[秋云图表组件]"+t))},errorMessage(t,e){t&&this.errorShow&&null!==t&&"null"!==t&&""!==t?(this.showchart=!1,this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=t):(this.showchart=!1,this.mixinDatacomErrorMessage=null,this.reloading())}},computed:{optsProps(){return JSON.parse(JSON.stringify(this.opts))},eoptsProps(){return JSON.parse(JSON.stringify(this.eopts))},chartDataProps(){return JSON.parse(JSON.stringify(this.chartData))}},methods:{beforeInit(){this.mixinDatacomErrorMessage=null,"object"==typeof this.chartData&&null!=this.chartData&&void 0!==this.chartData.series&&this.chartData.series.length>0?(this.drawData=fs({},this.chartData),this.mixinDatacomLoading=!1,this.showchart=!0,this.checkData(this.chartData)):this.localdata.length>0?(this.mixinDatacomLoading=!1,this.showchart=!0,this.localdataInit(this.localdata)):""!==this.collection?(this.mixinDatacomLoading=!1,this.getCloudData()):this.mixinDatacomLoading=!0},localdataInit(t){if(this.groupEnum.length>0)for(let h=0;h0)for(let h=0;h0)o=this.chartData.categories;else if(this.startDate&&this.endDate){let t=new Date(this.startDate),e=new Date(this.endDate);for(;t<=e;)o.push((s=void 0,r=void 0,l=void 0,s=(n=t).getFullYear(),r=n.getMonth()+1,l=n.getDate(),r>=1&&r<=9&&(r="0"+r),l>=0&&l<=9&&(l="0"+l),s+"-"+r+"-"+l)),t=t.setDate(t.getDate()+1),t=new Date(t)}else{let e={};t.map((function(t,i){null==t.text||e[t.text]||(o.push(t.text),e[t.text]=!0)}))}i.categories=o}var n,s,r,l;let c={};if(t.map((function(t,e){null==t.group||c[t.group]||(a.push({name:t.group,data:[]}),c[t.group]=!0)})),0==a.length)if(a=[{name:"默认分组",data:[]}],!0===e)for(let h=0;h0)for(let e=0;e0&&(this.mixinDatacomErrorMessage=null,!0===this.echarts?(rs.option[e].chartData=i,this.$nextTick((()=>{this.init()}))):(ns.option[e].categories=i.categories,ns.option[e].series=i.series,this.$nextTick((()=>{this.init()}))))},resizeHandler(){let t=Date.now();t-(this.lastDrawTime?this.lastDrawTime:t-3e3)<1e3||tt().in(this).select("#ChartBoxId"+this.cid).boundingClientRect((t=>{this.showchart=!0,t.width>0&&t.height>0&&(t.width===this.cWidth&&t.height===this.cHeight||this.checkData(this.drawData))})).exec()},getCloudData(){1!=this.mixinDatacomLoading&&(this.mixinDatacomLoading=!0,this.mixinDatacomGet().then((t=>{this.mixinDatacomResData=t.result.data,this.localdataInit(this.mixinDatacomResData)})).catch((t=>{this.mixinDatacomLoading=!1,this.showchart=!1,this.mixinDatacomErrorMessage="请求错误:"+t})))},onMixinDatacomPropsChange(t,e){1==t&&""!==this.collection&&(this.showchart=!1,this.mixinDatacomErrorMessage=null,this._clearChart(),this.getCloudData())},_clearChart(){let t=this.cid;if(!0!==this.echarts&&ns.option[t]&&ns.option[t].context){const e=ns.option[t].context;"object"!=typeof e||ns.option[t].update||(e.clearRect(0,0,this.cWidth*this.pixel,this.cHeight*this.pixel),e.draw())}},init(){let t=this.cid;tt().in(this).select("#ChartBoxId"+t).boundingClientRect((e=>{e.width>0&&e.height>0?(this.mixinDatacomLoading=!1,this.showchart=!0,this.lastDrawTime=Date.now(),this.cWidth=e.width,this.cHeight=e.height,!0!==this.echarts&&(ns.option[t].background="rgba(0,0,0,0)"==this.background?"#FFFFFF":this.background,ns.option[t].canvas2d=this.type2d,ns.option[t].pixelRatio=this.pixel,ns.option[t].animation=this.animation,ns.option[t].width=e.width*this.pixel,ns.option[t].height=e.height*this.pixel,ns.option[t].onzoom=this.onzoom,ns.option[t].ontap=this.ontap,ns.option[t].ontouch=this.ontouch,ns.option[t].onmouse=this.openmouse,ns.option[t].onmovetip=this.onmovetip,ns.option[t].tooltipShow=this.tooltipShow,ns.option[t].tooltipFormat=this.tooltipFormat,ns.option[t].tooltipCustom=this.tooltipCustom,ns.option[t].inScrollView=this.inScrollView,ns.option[t].lastDrawTime=this.lastDrawTime,ns.option[t].tapLegend=this.tapLegend),this.inH5||this.inApp?1==this.echarts?(rs.option[t].ontap=this.ontap,rs.option[t].onmouse=this.openmouse,rs.option[t].tooltipShow=this.tooltipShow,rs.option[t].tooltipFormat=this.tooltipFormat,rs.option[t].tooltipCustom=this.tooltipCustom,rs.option[t].lastDrawTime=this.lastDrawTime,this.echartsOpts=fs({},rs.option[t])):(ns.option[t].rotateLock=ns.option[t].rotate,this.uchartsOpts=fs({},ns.option[t])):(ns.option[t]=gs(ns.option[t],ns.formatter),this.mixinDatacomErrorMessage=null,this.mixinDatacomLoading=!1,this.showchart=!0,this.$nextTick((()=>{if(!0===this.type2d){tt().in(this).select("#"+t).fields({node:!0,size:!0}).exec((i=>{if(i[0]){const o=i[0].node,a=o.getContext("2d");ns.option[t].context=a,ns.option[t].rotateLock=ns.option[t].rotate,ns.instance[t]&&ns.option[t]&&!0===ns.option[t].update?this._updataUChart(t):(o.width=e.width*this.pixel,o.height=e.height*this.pixel,o._width=e.width*this.pixel,o._height=e.height*this.pixel,setTimeout((()=>{ns.option[t].context.restore(),ns.option[t].context.save(),this._newChart(t)}),100))}else this.showchart=!1,this.mixinDatacomErrorMessage="参数错误:开启2d模式后,未获取到dom节点,canvas-id:"+t}))}else this.inAli&&(ns.option[t].rotateLock=ns.option[t].rotate),ns.option[t].context=et(t,this),ns.instance[t]&&ns.option[t]&&!0===ns.option[t].update?this._updataUChart(t):setTimeout((()=>{ns.option[t].context.restore(),ns.option[t].context.save(),this._newChart(t)}),100)})))):(this.mixinDatacomLoading=!1,this.showchart=!1,1==this.reshow&&(this.mixinDatacomErrorMessage="布局错误:未获取到父元素宽高尺寸!canvas-id:"+t))})).exec()},saveImage(){it({canvasId:this.cid,success:t=>{var e=document.createElement("a");e.href=t.tempFilePath,e.download=this.cid,e.target="_blank",e.click()}},this)},getImage(){if(0==this.type2d)it({canvasId:this.cid,success:t=>{this.emitMsg({name:"getImage",params:{type:"getImage",base64:t.tempFilePath}})}},this);else{tt().in(this).select("#"+this.cid).fields({node:!0,size:!0}).exec((t=>{if(t[0]){const e=t[0].node;this.emitMsg({name:"getImage",params:{type:"getImage",base64:e.toDataURL("image/png")}})}}))}},_error(t){this.mixinDatacomErrorMessage=t.detail.errMsg},emitMsg(t){this.$emit(t.name,t.params)},getRenderType(){!0===this.echarts&&!1===this.mixinDatacomLoading&&this.beforeInit()},toJSON(){return this}}};us(ys);const ms=mt(ys,[["render",function(o,s,r,c,h,p){const u=yt(f("qiun-loading"),wa),g=d,y=yt(f("qiun-error"),Sa),m=nt;return t(),e(g,{class:"chartsview",id:"ChartBoxId"+h.cid},{default:i((()=>[o.mixinDatacomLoading?(t(),e(g,{key:0},{default:i((()=>[a(u,{loadingType:r.loadingType},null,8,["loadingType"])])),_:1})):n("",!0),o.mixinDatacomErrorMessage&&r.errorShow?(t(),e(g,{key:1,onClick:p.reloading},{default:i((()=>[a(y,{errorMessage:r.errorMessage},null,8,["errorMessage"])])),_:1},8,["onClick"])):n("",!0),h.echarts?ot((t(),e(g,{key:2,style:l([{background:r.background},{width:"100%",height:"100%"}]),"data-directory":r.directory,id:"EC"+h.cid,prop:h.echartsOpts,"change:prop":o.rdcharts.ecinit,resize:h.echartsResize,"change:resize":o.rdcharts.ecresize},null,8,["style","data-directory","id","prop","change:prop","resize","change:resize"])),[[at,h.showchart]]):(t(),e(g,{key:3,onClick:o.rdcharts.tap,onMousemove:o.rdcharts.mouseMove,onMousedown:o.rdcharts.mouseDown,onMouseup:o.rdcharts.mouseUp,onTouchstart:o.rdcharts.touchStart,onTouchmove:o.rdcharts.touchMove,onTouchend:o.rdcharts.touchEnd,id:"UC"+h.cid,prop:h.uchartsOpts,"change:prop":o.rdcharts.ucinit},{default:i((()=>[ot(a(m,{id:h.cid,canvasId:h.cid,style:l({width:h.cWidth+"px",height:h.cHeight+"px",background:r.background}),"disable-scroll":r.disableScroll,onError:p._error},null,8,["id","canvasId","style","disable-scroll","onError"]),[[at,h.showchart]])])),_:1},8,["onClick","onMousemove","onMousedown","onMouseup","onTouchstart","onTouchmove","onTouchend","id","prop","change:prop"]))])),_:1},8,["id"])}],["__scopeId","data-v-d3533eac"]]),xs={props:{loading:{type:Boolean,default:!1},config:{type:Object,default:()=>{}},markPoints:{type:Array,default:()=>[]},regionStep:{type:Array,default:()=>[]}},data:()=>({key:+new Date}),methods:{complete(t){this.$emit("complete",t)},getIndex(t){return this.$emit("getIndex",t)},regionStepClick(t,e){if(e({show:!1,mapData:[],mapList:[],mapType:"",markPoints:[],pointLoading:!1,opts:{update:!0,fontSize:10,padding:[40,15,30,15],extra:{map:{mercator:!0}}},regionStep:[],stepMapList:[],option:{}}),created(){this.init(),"dynamic"===this.config.dataType&&(m("proRefresh"),x("proRefresh",(()=>{this.handelChart()})))},methods:{init(){bs&&clearInterval(bs),this.handelChart(),!this.config.allRefresh.autoRefresh&&this.config.refresh.autoRefresh&&(bs=setInterval(this.handelChart,6e4*this.config.refresh.autoRefreshTime))},async handelChart(){if(this.customEchartsKey(),"dynamic"===this.config.dataType){if(!this.config.propsApi)return;const t={paramList:this.config.templateJson};b(this.config.propsApi,t).then((t=>{this.config.option.defaultValue=this.handleMappingConfig(t.data,this.config),this.handleAttrs()}))}else this.handleAttrs()},customEchartsKey(){this.config.option={...this.config.option,...this.config.appOption},["customEcharts"].includes(this.config.jnpfKey)&&(this.config.dataType=this.config.appDataType,this.config.propsApi=this.config.appPropsApi,this.config.propsName=this.config.appPropsName,this.config.templateJson=this.config.appTemplateJson,this.config.refresh=this.config.appRefresh?this.config.appRefresh:{}),this.config.option.urlAddress=this.config.option.appUrlAddress},handleMappingConfig(t,e){["rankList","barChart","pieChart","tableList"].includes(this.config.jnpfKey)&&this.config.option.defaultValue;let i=e.mappingConfig,o=[];return t.forEach((t=>{let e={};for(let o of i)"系列"===o.field&&(e.type=o.value?t[o.value]:t.type),"维度"===o.field&&(e.name=o.value?t[o.value]:t.name),"数值"===o.field&&(e.value=o.value?t[o.value]:t.value),"最大值"===o.field&&(e.max=o.value?t[o.value]:t.max),"时间戳"===o.field&&(e.timestamp=o.value?t[o.value]:t.timestamp),"经度"===o.field&&(e.long=o.value?t[o.value]:t.long),"纬度"===o.field&&(e.lat=o.value?t[o.value]:t.lat);o.push(e)})),o},handleParam(t){let e=this.config.jnpfKey;if("customEcharts"==e)return;let i={},o=t.opts.series&&t.opts.series[0],a=t.currentIndex.index,n="",s="",r="";if("barChart"===e&&(n=t.opts.categories[a],r=o.data[a],s=o.name),"pieChart"===e){n=o.name,r=o.data,s=(this.option.chartData.series&&this.option.chartData.series[0]).name}"lineChart"===e&&(n=t.opts.categories[a],r=o.data[a],s=o.name),"radarChart"===e&&(a=t.currentIndex,n=t.opts.categories[a],r=o.data[a],s=o.name),"mapChart"===e&&0==o.properties.childrenNum&&(n=o.properties.name,i.long=o.properties.center[0],i.lat=o.properties.center[1]),a<0&&"mapChart"!==e||"mapChart"===e&&0!=o.properties.childrenNum||(i.name=n,i.value=r,i.type=s,i.urlAddress=this.config.option.urlAddress,this.jnpf.solveAddressParam(i,this.config),this.jnpf.jumpLink(i.urlAddress))},handleAttrs(){let t={titleText:this.config.option.titleText,titleTextStyleColor:this.config.option.titleTextStyleColor,titleTextStyleFontSize:2*this.config.option.titleTextStyleFontSize+"rpx",titleTextStyleFontWeight:this.config.option.titleTextStyleFontWeight?700:0,titleLeft:"left"===this.config.option.titleLeft?"flex-start":"right"===this.config.option.titleLeft?"flex-end":"center",titleBgColor:this.config.option.titleBgColor,titleSubtext:this.config.option.titleSubtext,titleSubtextStyleColor:this.config.option.titleSubtextStyleColor,titleSubtextStyleFontSize:2*this.config.option.titleSubtextStyleFontSize+"rpx",titleSubtextStyleFontWeight:this.config.option.titleSubtextStyleFontWeight?700:0};if(["customEcharts"].includes(this.config.jnpfKey))return void this.$nextTick((()=>{this.show=!0,this.key=+new Date}));let e=this.config.option.defaultValue,i=JSON.parse(JSON.stringify(e))||[],o=Array.from(new Set(i.map((t=>t.type)))),a=Array.from(new Set(i.map((t=>t.name)))),n=[],s=[],r="",l=[],c=[],h="",d={},p={};["mapChart","customEcharts"].includes(this.config.jnpfKey)||(o.forEach(((t,e)=>{const o=this.getType(t,this.config);let a={name:t,type:o};this.config.option.seriesLabelShow&&(a.textSize=this.config.option.seriesLabelFontSize/2<12?12:this.config.option.seriesLabelFontSize/2,a.textColor=this.config.option.seriesLabelColor);let s=i.filter((e=>t===e.type));"barChart"===this.config.jnpfKey||"lineChart"===this.config.jnpfKey||"radarChart"==this.config.jnpfKey?a.data=s.map((t=>t.value)):(a.data=s.map((t=>({value:t.value,name:t.name}))),this.config.option.showZero&&(a.data=a.data.filter((t=>0!=t.value))),this.key=+new Date),l.push(Math.min(...a.data)),c.push(Math.max(...a.data)),n.push(a)})),p={disabled:!this.config.option.xAxisShow,axisLine:this.config.option.xAxisShow,axisLineColor:this.config.option.xAxisShow?this.config.option.xAxisAxisLineLineStyleColor:"#fff",title:"",titleFontSize:this.config.option.xAxisNameTextStyleFontSize,titleFontColor:this.config.option.xAxisNameTextStyleColor,titleOffsetY:-20,titleOffsetX:-300,fontSize:this.config.option.xAxisAxisLabelTextStyleFontSize/2<14?14:this.config.option.xAxisAxisLabelTextStyleFontSize/2,fontColor:this.config.option.xAxisAxisLabelTextStyleColor,rotateAngle:this.config.option.xAxisAxisLabelRotate,rotateLabel:this.config.option.xAxisAxisLabelRotate>0,gridColor:this.config.option.xAxisSplitLineLineStyleColor,splitNumber:4,disableGrid:this.config.option.xAxisShow?!this.config.option.xAxisSplitLineShow:!this.config.option.xAxisShow,scrollShow:a.length>5,scrollAlign:"left",scrollColor:"#A6A6A6",scrollBackgroundColor:"#EFEBEF",itemCount:a.length>5?6:5},d={data:[{position:"left",title:"",min:6==this.config.option.styleType?-st.toRound(Math.abs(Math.min(...l).toString().length>2?Math.min(...l)-200:Math.min(...l)-50)):0,max:st.toRound(Math.max(...c)),axisLine:!0,axisLineColor:this.config.option.yAxisAxisLineLineStyleColor,disabled:!this.config.option.yAxisShow,fontColor:this.config.option.yAxisAxisLabelTextStyleColor,fontSize:this.config.option.yAxisAxisLabelTextStyleFontSize/2<12?12:this.config.option.yAxisAxisLabelTextStyleFontSize/2}],padding:10,gridSet:"number",disableGrid:!this.config.option.yAxisSplitLineShow,splitNumber:4,gridType:"solid",gridColor:this.config.option.yAxisSplitLineLineStyleColor},this.config.option.colorList.forEach(((t,e)=>{t.color1&&s.push(t.color1)})));let u={color:s,padding:[15,15,0,15],enableScroll:a.length>5,dataLabel:this.config.option.seriesLabelShow,legend:{fontColor:"pieChart"===this.config.jnpfKey?"#666666":"",show:this.config.option.legendShow,position:"top",float:"right",fontSize:this.config.option.legendTextStyleFontSize/2<14?14:this.config.option.legendTextStyleFontSize/2},extra:{tooltip:{showBox:this.config.option.tooltipShow,fontSize:this.config.option.tooltipTextStyleFontSize/2<14?14:this.config.option.tooltipTextStyleFontSize/2,fontColor:this.config.option.tooltipTextStyleColor,bgColor:this.config.option.tooltipBgColor||"#000000"},mix:{column:{}},column:{type:"group",width:this.config.option.seriesBarWidth,activeBgColor:"#000000",activeBgOpacity:.08,linearType:"none",barBorderRadius:[this.config.option.seriesItemStyleBarBorderRadius,this.config.option.seriesItemStyleBarBorderRadius,this.config.option.seriesItemStyleBarBorderRadius,this.config.option.seriesItemStyleBarBorderRadius],seriesGap:5,customColor:s,barBorderCircle:!1}}};if("barChart"===this.config.jnpfKey)5==this.config.option.styleType||1==this.config.option.styleType||4==this.config.option.styleType||6==this.config.option.styleType?(h="group",6==this.config.option.styleType&&(u.extra.column.barBorderRadius=[])):(h="stack",u.extra.mix.column={width:this.config.option.seriesBarWidth,barBorderCircle:!1,barBorderRadius:[this.config.option.seriesItemStyleBarBorderRadius,this.config.option.seriesItemStyleBarBorderRadius,this.config.option.seriesItemStyleBarBorderRadius,this.config.option.seriesItemStyleBarBorderRadius]}),r=7==this.config.option.styleType?"mix":"column",u.xAxis={...p},u.yAxis={...d},u.extra.column.type=h;else if("pieChart"===this.config.jnpfKey){r="pie",u.fontColor=this.config.option.seriesLabelColor,u.fontSize=this.config.option.seriesLabelFontSize/2<14?14:this.config.option.seriesLabelFontSize/2;let t={borderColor:"#FFFFFF",borderWidth:3,activeOpacity:.5,offsetAngle:-90,labelWidth:15,border:!1},e={offsetX:0,offsetY:0,name:""};1==this.config.option.styleType?(this.config.option.roseType&&(r="rose"),u.extra[r]={...t}):(r="ring",u.title={fontSize:15,color:"#666666",...e},u.subtitle={fontSize:25,color:"#7cb5ec",...e},u.extra[r]={ringWidth:60,activeRadius:10,...t})}else if("lineChart"===this.config.jnpfKey){r=this.config.option.areaStyle?"area":"line",h=2==this.config.option.styleType?"curve":3==this.config.option.styleType?"step":"straight";let t={type:h,width:this.config.option.seriesLineStyleWidth};u.extra[r]={...t},u.xAxis={...p},u.yAxis={...d}}else"radarChart"===this.config.jnpfKey?(r="radar",h=1==this.config.option.styleType?r:"circle",u.fontSize=this.config.option.radarAxisNameFontSize/2<14?14:this.config.option.radarAxisNameFontSize/2,u.fontColor=this.config.option.seriesLabelColor,u.extra[r]={gridType:h,gridColor:"#CCCCCC",gridCount:5,opacity:.2,max:200,labelShow:!0,border:!0,max:100,labelColor:this.config.option.radarAxisNameColor}):(this.getAtlas(),r="map",this.config.option.markPoints=[],u={update:!0,fontSize:this.config.option.geoLabelFontSize,padding:[15,15,30,15],dataLabel:this.config.option.geoLabelShow,fontColor:this.config.option.geoLabelColor,extra:{tooltip:{showBox:this.config.option.tooltipShow,fontColor:this.config.option.tooltipTextStyleColor||"#000",bgColor:this.config.option.tooltipBgColor||"#fff",bgOpacity:1},map:{mercator:!1,border:!0,borderWidth:this.config.option.geoBorderWidth/2,borderColor:this.config.option.geoBorderColor,activeBorderColor:"#F04864",activeFillColor:"#FACC14",activeFillOpacity:1,active:!0,activeTextColor:"#FFFFFF",fillOpacity:1}}},this.config.option.defaultValue.forEach((t=>{this.config.option.markPoints.push({latitude:t.lat,longitude:t.long,name:t.name,value:t.value})})));let f={categories:a,series:n,opts:u,type:r};"map"!=r&&(f.opts.legend.padding=t.titleText&&t.titleSubtext?50:t.titleText&&!t.titleSubtext?30:5),this.config.option.chartData=f,this.config.option.chartTitle=t,this.option=this.config.option,this.$nextTick((()=>{this.show=!0,this.key=+new Date}))},getAtlas(){vt().then((t=>{this.mapList=st.treeToArray(t.data),this.regionStep=[],this.drawChina()}))},drawChina(t){Array.isArray(this.option.mapType)&&!t&&(this.mapType=this.option.mapType[this.option.mapType.length-1]),Tt(this.mapType).then((e=>{let i=JSON.parse(JSON.stringify(e.data.features))||[];for(var o=0;ot.enCode==this.option.mapType[this.option.mapType.length-1]));if(!this.config.option.drillDown)return;let i=this.mapData[t.currentIndex]?this.mapData[t.currentIndex]:[];this.mapType=i.properties.adcode,i.properties.acroutes;let o=i.properties.name,a=i.properties.adcode;this.regionStep.unshift({name:e[0].fullName,adcode:e[0].enCode}),this.regionStep.push({name:o,adcode:a}),this.regionStep=this.regionStep.filter(((t,e,i)=>i.findIndex((e=>e.name===t.name))===e)),this.pointLoading=!1,this.drawChina(1)},getType(t){if("barChart"==this.config.jnpfKey){if(7==this.config.option.styleType){const e=this.config.option.barType.find((e=>t==e.title));if(e&&e.type)return"bar"==e.type?"column":e.type}return"column"}return"lineChart"==this.config.jnpfKey?"line":"pieChart"==this.config.jnpfKey?"pie":"radar"},setPoints(t){const e=t.opts.chartData.mapData;this.option.markPoints=this.option.markPoints.slice(0,this.option.appShowNumber);for(var i=0;i[u.config.option.chartTitle.titleText||u.config.option.chartTitle.titleSubtext?(t(),e(b,{key:0,class:"qiun-title-bar u-flex",style:l({"justify-content":u.config.option.chartTitle.titleLeft})},{default:i((()=>[a(b,{class:"u-flex-col titleBox",style:l({"background-color":u.config.option.chartTitle.titleBgColor})},{default:i((()=>[a(b,{class:"tit",style:l({"margin-bottom":u.config.option.chartTitle.titleSubtext?"8rpx":0,"font-size":u.config.option.chartTitle.titleTextStyleFontSize,"font-weight":u.config.option.chartTitle.titleTextStyleFontWeight,color:u.config.option.chartTitle.titleTextStyleColor})},{default:i((()=>[s(r(u.config.option.chartTitle.titleText),1)])),_:1},8,["style"]),a(b,{class:"tit2",style:l({"font-size":u.config.option.chartTitle.titleSubtextStyleFontSize,"font-weight":u.config.option.chartTitle.titleSubtextStyleFontWeight,color:u.config.option.chartTitle.titleSubtextStyleColor})},{default:i((()=>[s(r(u.config.option.chartTitle.titleSubtext),1)])),_:1},8,["style"])])),_:1},8,["style"])])),_:1},8,["style"])):n("",!0),u.regionStep.length>1?(t(),e(b,{key:1,class:"regionStep"},{default:i((()=>[(t(!0),y(w,null,S(u.regionStep,((o,a)=>(t(),e(T,{onClick:t=>x.regionStepClick(o,a),key:a,style:l({"font-size":2*u.config.option.drillDownFontSize+"rpx",color:u.config.option.drillDownColor,"font-weight":u.config.option.drillDownFontWeight?700:400})},{default:i((()=>[s(r(o.name)+" ",1),a!=u.regionStep.length-1?(t(),e(v,{key:0,name:"arrow-right",class:"icon"})):n("",!0)])),_:2},1032,["onClick","style"])))),128))])),_:1})):n("",!0),a(b,{class:"charts-box"},{default:i((()=>[u.config.option.chartData.series.length?(t(),e(C,{key:0,type:u.config.option.chartData.type,chartData:u.config.option.chartData,ontouch:!0,opts:u.config.option.chartData.opts,onComplete:x.complete,onGetIndex:x.getIndex,style:l({"background-color":u.config.option.bgColor}),connectNulls:!0},null,8,["type","chartData","opts","onComplete","onGetIndex","style"])):n("",!0),"mapChart"===u.config.jnpfKey&&u.config.option.chartData.series.length>0&&u.loading?(t(),e(b,{class:"",key:m.key},{default:i((()=>[(t(!0),y(w,null,S(u.config.option.markPoints,((i,o)=>(t(),e(b,{key:o,class:c(2==u.config.option.styleType?"points-box2":"points-box"),style:l({top:i.y-5+"px",left:i.x-5+"px"})},null,8,["class","style"])))),128))])),_:1})):n("",!0)])),_:1})])),_:1})}],["__scopeId","data-v-f312dfd8"]])},props:{config:{type:Object,default:()=>{}}},data:()=>({key:+new Date}),methods:{complete(t){"mapChart"===this.config.jnpfKey&&this.setPoints(t)}}};const vs=mt(Ss,[["render",function(o,a,s,r,l,c){const h=Q("charts"),p=d;return o.show?(t(),e(p,{key:0,class:"charts"},{default:i((()=>[(t(),e(h,{config:s.config,key:l.key,onGetIndex:o.getIndex,onComplete:c.complete,markPoints:o.markPoints,regionStep:o.regionStep,onRegionStepClick:o.regionStepClick,ref:"charts",loading:o.pointLoading},null,8,["config","onGetIndex","onComplete","markPoints","regionStep","onRegionStepClick","loading"]))])),_:1})):n("",!0)}],["__scopeId","data-v-795dfd47"]]),Ts={props:{config:{type:Object,default:()=>{}}},data:()=>({}),methods:{complete(t){this.$emit("complete",t)},getIndex(t){return this.$emit("getIndex",t)}}};const Cs=mt({mixins:[ws],components:{charts:mt(Ts,[["render",function(o,n,s,r,c,h){const p=yt(f("qiun-data-charts"),ms),u=d;return t(),e(u,{class:"charts-v"},{default:i((()=>[a(u,{class:"charts-box"},{default:i((()=>[a(p,{type:s.config.option.type,chartData:s.config.option.chartData,ontouch:!0,opts:s.config.option.opts,style:l({"background-color":s.config.option.bgColor?s.config.option.bgColor:""}),connectNulls:!0},null,8,["type","chartData","opts","style"])])),_:1})])),_:1})}],["__scopeId","data-v-885278da"]])},props:{config:{type:Object,default:()=>{}}},data:()=>({key:+new Date}),methods:{}},[["render",function(o,a,s,r,l,c){const h=Q("charts"),p=d;return o.show?(t(),e(p,{key:0,class:"charts"},{default:i((()=>[(t(),e(h,{config:s.config,key:l.key,ref:"charts"},null,8,["config"]))])),_:1})):n("",!0)}],["__scopeId","data-v-b493e2b7"]]);const As=mt({components:{platform:mt({props:{option:{type:Object,default:()=>{}},props:{type:Object,default:()=>({label:"label",value:"value"})}},data:()=>({platformData:{},show:!1,key:+new Date,imgList:[{url:"/app/assets/runnerUp-BHNmD4xO.png"},{url:"/app/assets/champion-Bcym5jA5.png"},{url:"/app/assets/thirdPlace-D8aCwI3Z.png"}],imgList2:[{url:"/app/assets/runnerUp2-DWxJ4yiq.png"},{url:"/app/assets/champion2-BG25jYOX.png"},{url:"/app/assets/thirdPlace3-B-zffa1Z.png"}]}),computed:{frontValue(){return this.platformData.frontValue||[]}},created(){this.platformData=JSON.parse(JSON.stringify(this.option))||{},this.show=!0,this.key=+new Date}},[["render",function(o,l,u,f,g,m){const x=h,b=d,v=p;return g.show?(t(),e(b,{class:"stage",key:g.key},{default:i((()=>[3==g.platformData.styleType?(t(),e(b,{key:0,class:"cup-top-box"},{default:i((()=>[(t(!0),y(w,null,S(m.frontValue,((o,n)=>(t(),e(b,{class:"cup1-box cup-box",key:n},{default:i((()=>[a(b,{class:"img"},{default:i((()=>[a(x,{src:g.imgList[n].url},null,8,["src"])])),_:2},1024),a(b,{class:"top-bg"}),a(b,{class:c(["cup-box-content","cup-box-content"+n])},{default:i((()=>[a(v,{class:"txt"},{default:i((()=>[s(r(o[u.props.label]),1)])),_:2},1024),a(v,{class:"txt"},{default:i((()=>[s(r(o[u.props.value]),1)])),_:2},1024)])),_:2},1032,["class"])])),_:2},1024)))),128))])),_:1})):n("",!0),4==g.platformData.styleType?(t(),e(b,{key:1,class:"medal-v"},{default:i((()=>[a(b,{class:"medal-box u-flex"},{default:i((()=>[(t(!0),y(w,null,S(m.frontValue,((o,n)=>(t(),e(b,{class:c(["medal-box-inner","medal-box-inner"+n]),key:n},{default:i((()=>[a(b,{class:"img"},{default:i((()=>[a(x,{src:g.imgList2[n].url},null,8,["src"])])),_:2},1024),a(b,{class:"u-flex-col txt-box"},{default:i((()=>[a(v,{class:"txt"},{default:i((()=>[s(r(o[u.props.label]),1)])),_:2},1024),a(v,{class:"txt"},{default:i((()=>[s(r(o[u.props.value]),1)])),_:2},1024)])),_:2},1024)])),_:2},1032,["class"])))),128))])),_:1})])),_:1})):n("",!0)])),_:1})):n("",!0)}],["__scopeId","data-v-cbc547f1"]])},props:{config:{type:Object,required:!0}},data:()=>({orderSty:{background:"rgba(24, 144, 255, 0.39)","border-radius":"50%",opacity:.3,color:"#fff"},option:{},props:{},ordinary0:"data:image/png;base64,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",ordinary1:"data:image/png;base64,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",ordinary2:"data:image/png;base64,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",medal0:"/app/assets/medal0-CArIO1aU.png",medal1:"/app/assets/medal1-CA2YEdta.png",medal2:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAADj5JREFUaEPtWQtwVFWa/s69t2/ffqbT6STdeZKXJDGEACIQRUQWZvAJChOcqll56eowU7qzozs7u44MWroqOAwgW2s5IKMUqMsKPnZlGGdFEIi8DCQQEpIAwbxfnXSnX7fv2Tr3djfpJDxWYaemak5V16177znn/t//f/93/nOa4C+8kb9w+/FXAH/uCN6wCFBKJUKI/0YDvC4AKKUcgEQAFgAediWENN1o49n83xlAxPiS8MCFnxGCuZQOWqF0cpA7OSXkEcDpFcJLYQT8QSXIdVGZ/EHvKnyWmMe1Xw+A3wnAxXV/N942c8pvpayyck5y6SAkAsogaOAc5L7jUAY74mwkggFENIHoLIo8ELzor2/a4K888nrayo8Gvy2YOACvPjG9FIOhQp3OtPepNz+7ooe81e88LyTqnwICZs50M3hzPghnBFX8CHvOQO4+ACoPXNYuBoY3JClhv1RDm7rmGmc98c2VQFS/+fNFBFznzctf+WxovzgAz08Xfb2eoMQ6iKIwaLY7ToiJSQdFo/PloYD8TTu/4PSe2ylHCBQFIA7wtlJwOhsUfxvCnrOQ3ScBJXRVxxKdAZw+dVCRDUuNOfPejQ6o/t3TK3RccH5wwDsONJwiB8IwJxkQoJaHS5av3h7tFwPw6uIpi3qrK7c19Md/U8cBFj038G9VinWg/r1kQcQxXk8zwGz3uxH29YI3pIOT0kD0iaDBHlC5B0qgG0QngoZlgCqg4RBoyAuqKGwoKI1koHrlIJhdIcWrf81YWPGLr15a/GzIM7jKPxCMM8aaYoLZlfpW0bLXlowEsGzKootHK7e1jc7GXe/WYZ7v/Af1nD6YD1CEPR1QAl5VBohgBW+woaryT2g6tB9njl9Ar9unGQmAJ0B6hh15t9+Mkskz4XLZQUO+EdHhLWkyL1uX7vvNFh4Em4d3kCwiHHmpR8YuXT95BIBXKgo3N9fWLu4YOS8IxZJNn7w/n0j++zmdDnJ/CxQ5oEoYb3Fh36fbUL9rL7p6/fCFR2cN01mB/QQgqywP0yt+hNRUK2goEBvAogOS5B5o9s6s/XTfseEzCSIPZ3Fa7dil64tGBVBXXbt4YBTavrh61QpHpn4dp1P4UJ8XnJ4HbzTCGxLxxb+vQdHsv0fetHuvynfP+Wq4+934eP0z8Pb3YvKi7+G2u76PsMeNkMeLULfGXzElt+br9/Z3AZgxfNKMCZm1Y5eMAuBfKwo3152sXeyVR9hR9ca7Gy2Ed+cGunoR7OkHxxLDnoDf/Xod+t1eLFz+OLJtgRi3oxxnERpK9ejMfGo5tq19DhdbW1A+bypuLZsG2XMp9DqTpHRdkHe1nbo4/5oBMArVjgKg4s6yUzMfXVDMknCwWVNWxaLHjnVbUNPchwQJqFj6OLJsgfjEvEo8GqpO49O9h+AJE8x5qBzjCych7A9qSysF9Emu1uqPjru+M4BVv1ra6iwpcA00fAMqyxCsZuz/cCd27z8LhdUPEjD77vuRrPOBgAOll1SGEO1eMkmwOhxxEQr6Ati+9X20egmMOopHnlkCk4+LhYzTCbTlVDfxdMcnZUZZ5mVy4JFbVjQcPbKhb4hy6XngtTeek5WwLPhaulVneAwBbFy1Gb4I1SwiYGTZGWnMgYxChCMqIHYvcMADP3gQCRZznEO3vrUV3QERHAljbH4K7vnBQgT7PCrtWPMHFbRUxa/ml82BNcumzTp35OAfh6rQ9JwULHzmUYT6vQh5/NDbzdj7wQfYU9mgfoCtY+pVNZZo90S7EvUdB0J4ZCWIWPj8JoSrd8XlxMc7PkT7IAdCw9BxQSxc8TCMfl6znoVXL6Dp4MUYaKZCKUXZo68DrNfTE0EvsFoy0hZOK8GUeXMQGtAWB1NmMtb98hV0+WTVQPaLGssAOIxcBAQPntOD5wTwPAeRhLHs95W4uGNlbO6WxkbU13+D3gCvLnQh2YOJs25CYWYxlKAWXqITcO5wa2yM0SbBkp35k5Jlr74+NOKxDv9yZ+KJ+pbecdEHS2ZPQf6kUo0TlMKb4MXvX96BIL3k8SgQ1iXLAsxfuR2W9Jw4qoiSGYPfnEHXgW1qosvBII5WHkKQWhAMUfAcB0WRkZwuYOpdt8Hf5VFBsRW647wXQY+m7TaXGaLDOX7co6tPjACwdvn00mD72Y96WlqzZAo0e4AVD86EM2dMRAyB1v4L2LXjK43jhFMZTjgmHCwSHHJsetzzz2+i88B2NTo0uhSr7tSmEdNzsfeD7ciwp6CtO6COYxRkICAO4I655RhsdavGMwHo6wxDbxRhtOkBSeejIevPix97ZWMMwJq/nVoR6GhaKfe2F7IE7g8B0RLkJw/Pg8NhYmSHziji/MU67NldrX6UGcSuKtM5AlEwIStJxJ0/fRXte9+JeVBTpag6cdA50yC5JuDwrk1I0kvodwdV4xlgmetH+b1lcDf0AQqFLxCGt5dDOBiGaBDUYo7RiBPFnpAs/aZ4+ZoXyKopoCxxewJAOJr+EXhTx5ZgfFE2UpxG6CwiOrrbsGf3iVjCRukj8CKsJjuSLDLy5z6Cts/fj6OQ3iDBaDZDkSl63QEMsOVeFCAIA7DwyWpkOI5DSPBi3G1ZcDf2obvbj9a2QSRbbeD5SGJHZmVAkjIs8JGEReTFe9IOV9W33BL3xcjN9NKJsBvMkAw8MtJNMGYbsHPrl1oCR1SH0SnB7ICkk5CZYUD/gAeEZ7UYYleO51FbexoOey5CIcZtjU5+pQ/j80oh+2Wtvz2EZKceNYc74fHK0OtFpFhsEUWLtzAlzwZTcpqTrFk+teL0oUPbh1Wuau+CjCwUODNAQVWDyyY7ceDgKXg9/pgKCbyAFFuaSgNGJY3TnHavqhQHySSiubcRztL7cPpPH8YKDFnx4I4JkxAYCKp5xYLR1tSF9h6tLLFaLHCYrKP5FmklGXuKHtswRxXyX0xP+Lqp3T1+eM/0VCeKXJmxhMx2GqHoJNSdbdS4Tzg4HYlwJDu1iPC8ZnQk5BxLdraQ6XnUtbcjfdID2L91QyQAzC0+zJ02DSFPEApRYEw2oPLwWQRDiioA+WNyIYTZghDf1FxIyxk/7tEXT6gAWBRqDhzaPryQY1SZOWEywkFNxhLMAgoL83D4aJVqMHuf6kpE0u0Pw1VQOqqnog8TXdnYvfF51H65J6ZqohjG/eVTER6Uwdn16G1rxfGGXq2cAFCaW6BugIa3tOLM/yh6fP3CqLip7/9xhn3vudaeO4Z3zkx1IdPuUPWbhXVCXiJgcuDsmXr1Ptlpw8VwIhq/ZvIalc5LdSjzZKw6VZcTdq/1G5Nhwl2FZWAbDiHJhn37jqDLE1Lf52ZmwSYaRhifkGry2HOy83N/+KJaWca2lGufnJV66vO9x9w+OW34qJKcfEiCTn1s1XOYMX0yzjaeR3dnF1LT7ajzGFF//FDMcyNL6PgnzBms/vnhfVPhkE2wFuTh+Jf7cKypV40OR3hMLixWpXRoY6VEQk7aQ2Ur1v9n9Hncpv7ZBaXTz1Wf/Dio0LjMMRuNyE52QuB41XMFyRImlN+Or48dQWKyBV+dG0DT6WooYNWkFirV03H7gQgISiEKCu6fPQkl9jQYUl0433AGnx9tgDdE1XETbiqCWacf4X17XvpLE558/ZdDX4w4F/pxecKcvm737uFrQqo9CXYTO3jT2vhUPcpmzEEo6EZbWws4gSAUCqLL3QfCE9Q3tSIYyZ1YHlhNyB/jQp7LBXNQD2tOARqqK/HflfXwBBUVfJojBYXpWSOMtzgsO2791dsLhr8Y9WDr6btz771wtvEdlrdDB+RmZIKEFTWBeY4ixybirr+ZhcQkF7rqatWTB02dtFGCkY/ILVuYKRS/tmE2OzOgsztQ9cV/4Y8nm+FVNYIi2WbHxLyxkSOLS1++nPFxOTAc2cIClHEEnw8HwZKaqMqgEcRp5jElLw2F0+6ESTLB192Jwe5ODYxJAI1Im85ogTHFCcFsQUdzHT759DOc65chR0KdYk/CrQVFsTyK2iMYxKdnvPze6hEhiTy44tHivDGwiTrsJCR+c31Tdg76+/tj6sJzQKqBg9NmxO3lU9kKiYTSYvjCVeg51wsbzUOwtwMNJ47haF0jOgYV9Ac0J6hq5ErDpNyxlFJ6yR4KN8dj3sy1O5kTL9uu6Wy0YiyeAgUr5mOUysvKRsAfgM/nU1fqaHvojixMe2wBeJ0B3vZadFSeAbGIaG/sw/t/aESIJXmkOxs3a/I0OAwmbbG/5NUthMNTM9fu7LuS8Vek0PCBLBqSiLUUeCT6zulIlovzC4QjJ6qQZZPw2AvzkOC6GTSsnfV42+rQ+dUZrTvPIWwRcOiTszjQ0I3i/AKUF49XfP0D7MhIbQRkb1ihK2dvuLLXh9p2TREYOmBRIcZAwWIQLKYU2az++fULi8KZE8t5GhqynWP759Yz6Kysi/MFMQogyem0+0QgGPAoqlZSYAvl8Nbsq9BltGj8nwEMnWTbk7MqZi24ZZPBajAqg0F1AxLd9DKm9DQ14MLxkf9zSBIHMcmsQEj7sL/Rs+RaqPKtkvhq/GPvT/7T/HtBsFFn1WWKNj30iRJ4Savf204143TNhUvTRNYyAqKYjMYtonXwp99bfcJ7Ld+5YQDYxEdW3mckXv45cPgZpRAScxMgOQzoqGtGzckLcf8DSaJ4yiwaf/T9N0aefX4bIN+JQsM/eOgfHiimhLxNCJmYWupA97lW1NScj+Qw5zEZTSvnvXngNVbTfRtjr3sOjDYhXbmS299X9YTOLLzEiT5LTfV5KumlT/TQLXvw7QPxp1TXAcV1jcBQe/7nx3c7A3r81t3Xu6li88Hd18HWUae4YQBulMHD5/0rgP8vT99QGf1zgvhfl1eRzrWjtb4AAAAASUVORK5CYII=",key:+new Date}),created(){this.init(),m("proRefresh"),x("proRefresh",(()=>{this.initData()}))},methods:{jump(t){this.jnpf.solveAddressParam(t,this.config),this.jnpf.jumpLink(t.urlAddress)},init(){this.initData(),!this.config.allRefresh.autoRefresh&&this.config.refresh.autoRefresh&&setInterval(this.initData,6e4*this.config.refresh.autoRefreshTime)},initData(){if(this.props={label:this.config.option.columnOptions[0].value,value:this.config.option.columnOptions[1].value},this.option=JSON.parse(JSON.stringify(this.config.option)),this.option.columnOptions.unshift({label:"排名",value:"pm"}),"dynamic"===this.config.dataType){if(!this.config.propsApi)return;const t={paramList:this.config.templateJson};b(this.config.propsApi,t).then((t=>{this.option.defaultValue=t.data||[],this.handleAttrs()}))}else this.handleAttrs()},handleAttrs(){if(Array.isArray(this.option.defaultValue)){if(this.option.defaultValue.forEach(((t,e)=>{t.index=e+1,e<=2&&(t.imgUrl=1==this.option.styleType||3==this.option.styleType?this[`ordinary${e}`]:this[`medal${e}`])})),3==this.option.styleType||4==this.option.styleType){this.option.frontValue=this.option.defaultValue.slice(0,3),this.option.defaultValue.length<=3&&(this.option.columnOptions=[]);let t=this.option.defaultValue.slice(3,this.option.defaultValue.length);this.option.defaultValue=t}this.key=+new Date}}}},[["render",function(o,c,h,u,g,m){const x=Q("platform"),b=d,v=yt(f("u-image"),wt),T=p;return t(),e(b,{class:"rankList-v"},{default:i((()=>[3==g.option.styleType||4==g.option.styleType?(t(),e(x,{styleType:g.option.styleType,option:g.option,key:g.key,props:g.props},null,8,["styleType","option","props"])):n("",!0),a(b,{class:"rankList-list"},{default:i((()=>[a(b,{class:"rankList-list-box"},{default:i((()=>[a(b,{class:"table-tr u-flex table-title"},{default:i((()=>[(t(!0),y(w,null,S(g.option.columnOptions,((o,n)=>(t(),e(b,{class:"table-th u-flex",key:n,style:l({width:g.option.columnOptions.length>1&&g.option.columnOptions.length<=3?100/g.option.columnOptions.length+"%":"208rpx"})},{default:i((()=>[a(b,{class:"commin-padding u-line-1"},{default:i((()=>[s(r(o.label),1)])),_:2},1024)])),_:2},1032,["style"])))),128))])),_:1}),(t(!0),y(w,null,S(g.option.defaultValue,((o,n)=>(t(),e(b,{class:"table-tr u-flex",key:n,onClick:t=>m.jump(o)},{default:i((()=>[(t(!0),y(w,null,S(g.option.columnOptions,((c,h)=>(t(),e(b,{class:"table-td",key:h,style:l({width:g.option.columnOptions.length>1&&g.option.columnOptions.length<=3?100/g.option.columnOptions.length+"%":"208rpx"})},{default:i((()=>["pm"===c.value&&n+1>0&&n+1<4&&3!==g.option.styleType&&4!==g.option.styleType?(t(),e(b,{key:0,class:"commin-padding"},{default:i((()=>[a(b,{class:"image-box"},{default:i((()=>[a(v,{src:o.imgUrl,width:"60rpx",height:"60rpx"},null,8,["src"])])),_:2},1024)])),_:2},1024)):(t(),e(b,{key:1,class:"commin-padding"},{default:i((()=>["pm"===c.value?(t(),e(b,{key:0,class:"order",style:l(1==g.option.styleType?g.orderSty:"")},{default:i((()=>[a(T,null,{default:i((()=>[s(r(o.index),1)])),_:2},1024)])),_:2},1032,["style"])):(t(),e(b,{key:1,class:"u-line-1",style:l({color:1==o.index?"rgb(206, 124, 31)":2==o.index?"rgb(111, 137, 172)":3==o.index?"rgb(141, 65, 18)":"#606266"})},{default:i((()=>[s(r(o[c.value]),1)])),_:2},1032,["style"]))])),_:2},1024))])),_:2},1032,["style"])))),128))])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-48cd3ab2"]]);var ks={lunarInfo:[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42416,83315,21168,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46752,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,23232,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19195,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448,84835,37744,18936,18800,25776,92326,59984,27424,108228,43744,41696,53987,51552,54615,54432,55888,23893,22176,42704,21972,21200,43448,43344,46240,46758,44368,21920,43940,42416,21168,45683,26928,29495,27296,44368,84821,19296,42352,21732,53600,59752,54560,55968,92838,22224,19168,43476,41680,53584,62034,54560],solarMonth:[31,28,31,30,31,30,31,31,30,31,30,31],Gan:["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"],Zhi:["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"],Animals:["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"],solarTerm:["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"],sTermInfo:["9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","9778397bd19801ec9210c965cc920e","97b6b97bd19801ec95f8c965cc920f","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd197c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bcf97c3598082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd19801ec9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bd07f1487f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b97bd197c36c9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b70c9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","977837f0e37f149b0723b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0723b06bd","7f07e7f0e37f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f595b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e37f14998083b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14898082b0723b02d5","7f07e7f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66aa89801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e26665b66a449801e9808297c35","665f67f0e37f1489801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722"],nStr1:["日","一","二","三","四","五","六","七","八","九","十"],nStr2:["初","十","廿","卅"],nStr3:["正","二","三","四","五","六","七","八","九","十","冬","腊"],lYearDays:function(t){var e,i=348;for(e=32768;e>8;e>>=1)i+=this.lunarInfo[t-1900]&e?1:0;return i+this.leapDays(t)},leapMonth:function(t){return 15&this.lunarInfo[t-1900]},leapDays:function(t){return this.leapMonth(t)?65536&this.lunarInfo[t-1900]?30:29:0},monthDays:function(t,e){return e>12||e<1?-1:this.lunarInfo[t-1900]&65536>>e?30:29},solarDays:function(t,e){if(e>12||e<1)return-1;var i=e-1;return 1==i?t%4==0&&t%100!=0||t%400==0?29:28:this.solarMonth[i]},toGanZhiYear:function(t){var e=(t-3)%10,i=(t-3)%12;return 0==e&&(e=10),0==i&&(i=12),this.Gan[e-1]+this.Zhi[i-1]},toAstro:function(t,e){return"魔羯水瓶双鱼白羊金牛双子巨蟹狮子处女天秤天蝎射手魔羯".substr(2*t-(e<[20,19,21,21,21,22,23,23,23,23,22,22][t-1]?2:0),2)+"座"},toGanZhi:function(t){return this.Gan[t%10]+this.Zhi[t%12]},getTerm:function(t,e){if(t<1900||t>2100)return-1;if(e<1||e>24)return-1;var i=this.sTermInfo[t-1900],o=[parseInt("0x"+i.substr(0,5)).toString(),parseInt("0x"+i.substr(5,5)).toString(),parseInt("0x"+i.substr(10,5)).toString(),parseInt("0x"+i.substr(15,5)).toString(),parseInt("0x"+i.substr(20,5)).toString(),parseInt("0x"+i.substr(25,5)).toString()],a=[o[0].substr(0,1),o[0].substr(1,2),o[0].substr(3,1),o[0].substr(4,2),o[1].substr(0,1),o[1].substr(1,2),o[1].substr(3,1),o[1].substr(4,2),o[2].substr(0,1),o[2].substr(1,2),o[2].substr(3,1),o[2].substr(4,2),o[3].substr(0,1),o[3].substr(1,2),o[3].substr(3,1),o[3].substr(4,2),o[4].substr(0,1),o[4].substr(1,2),o[4].substr(3,1),o[4].substr(4,2),o[5].substr(0,1),o[5].substr(1,2),o[5].substr(3,1),o[5].substr(4,2)];return parseInt(a[e-1])},toChinaMonth:function(t){if(t>12||t<1)return-1;var e=this.nStr3[t-1];return e+="月"},toChinaDay:function(t){var e;switch(t){case 10:e="初十";break;case 20:e="二十";break;case 30:e="三十";break;default:e=this.nStr2[Math.floor(t/10)],e+=this.nStr1[t%10]}return e},getAnimal:function(t){return this.Animals[(t-4)%12]},solar2lunar:function(t,e,i){if(t<1900||t>2100)return-1;if(1900==t&&1==e&&i<31)return-1;if(t)o=new Date(t,parseInt(e)-1,i);else var o=new Date;var a,n=0,s=(t=o.getFullYear(),e=o.getMonth()+1,i=o.getDate(),(Date.UTC(o.getFullYear(),o.getMonth(),o.getDate())-Date.UTC(1900,0,31))/864e5);for(a=1900;a<2101&&s>0;a++)s-=n=this.lYearDays(a);s<0&&(s+=n,a--);var r=new Date,l=!1;r.getFullYear()==t&&r.getMonth()+1==e&&r.getDate()==i&&(l=!0);var c=o.getDay(),h=this.nStr1[c];0==c&&(c=7);var d=a,p=this.leapMonth(a),u=!1;for(a=1;a<13&&s>0;a++)p>0&&a==p+1&&0==u?(--a,u=!0,n=this.leapDays(d)):n=this.monthDays(d,a),1==u&&a==p+1&&(u=!1),s-=n;0==s&&p>0&&a==p+1&&(u?u=!1:(u=!0,--a)),s<0&&(s+=n,--a);var f=a,g=s+1,y=e-1,m=this.toGanZhiYear(d),x=this.getTerm(t,2*e-1),b=this.getTerm(t,2*e),w=this.toGanZhi(12*(t-1900)+e+11);i>=x&&(w=this.toGanZhi(12*(t-1900)+e+12));var S=!1,v=null;x==i&&(S=!0,v=this.solarTerm[2*e-2]),b==i&&(S=!0,v=this.solarTerm[2*e-1]);var T=Date.UTC(t,y,1,0,0,0,0)/864e5+25567+10,C=this.toGanZhi(T+i-1),A=this.toAstro(e,i);return{lYear:d,lMonth:f,lDay:g,Animal:this.getAnimal(d),IMonthCn:(u?"闰":"")+this.toChinaMonth(f),IDayCn:this.toChinaDay(g),cYear:t,cMonth:e,cDay:i,gzYear:m,gzMonth:w,gzDay:C,isToday:l,isLeap:u,nWeek:c,ncWeek:"星期"+h,isTerm:S,Term:v,astro:A}},lunar2solar:function(t,e,i,o){o=!!o;var a=this.leapMonth(t);if(this.leapDays(t),o&&a!=e)return-1;if(2100==t&&12==e&&i>1||1900==t&&1==e&&i<31)return-1;var n=this.monthDays(t,e),s=n;if(o&&(s=this.leapDays(t,e)),t<1900||t>2100||i>s)return-1;for(var r=0,l=1900;l0&&(r+=this.leapDays(t),h=!0),r+=this.monthDays(t,l);o&&(r+=n);var d=Date.UTC(1900,1,30,0,0,0),p=new Date(864e5*(r+i-31)+d),u=p.getUTCFullYear(),f=p.getUTCMonth()+1,g=p.getUTCDate();return this.solar2lunar(u,f,g)}};class Ds{constructor({date:t,selected:e,startDate:i,endDate:o,range:a}={}){this.date=this.getDate(new Date),this.selected=e||[],this.startDate=i,this.endDate=o,this.range=a,this.cleanMultipleStatus(),this.weeks={}}setDate(t){this.selectDate=this.getDate(t),this._getWeek(this.selectDate.fullDate)}cleanMultipleStatus(){this.multipleStatus={before:"",after:"",data:[]}}resetSatrtDate(t){this.startDate=t}resetEndDate(t){this.endDate=t}getDate(t,e=0,i="day"){t||(t=new Date),"object"!=typeof t&&(t=t.replace(/-/g,"/"));const o=new Date(t);switch(i){case"day":o.setDate(o.getDate()+e);break;case"month":if(31===o.getDate()&&e>0)o.setDate(o.getDate()+e);else{const t=o.getMonth();o.setMonth(t+e);const i=o.getMonth();e<0&&0!==t&&i-t>e&&o.setMonth(i+(i-t+e)),e>0&&i-t>e&&o.setMonth(i-(i-t-e))}break;case"year":o.setFullYear(o.getFullYear()+e)}const a=o.getFullYear(),n=o.getMonth()+1<10?"0"+(o.getMonth()+1):o.getMonth()+1,s=o.getDate()<10?"0"+o.getDate():o.getDate();return{fullDate:a+"-"+n+"-"+s,year:a,month:n,date:s,day:o.getDay()}}_getLastMonthDays(t,e){let i=[];for(let o=t;o>0;o--){const t=new Date(e.year,e.month-1,1-o).getDate();i.push({date:t,month:e.month-1,lunar:this.getlunar(e.year,e.month-1,t),disable:!0})}for(let o=0;o{if(this.dateEqual(t,e.date))return e}));a&&(i[o].extraInfo=a)}return i}_currentMonthDys(t,e){let i=[],o=this.date.fullDate;for(let a=1;a<=t;a++){let t=e.year+"-"+(e.month,e.month+"-")+(a<10?"0"+a:a),n=o===t,s=this.selected&&this.selected.find((e=>{if(this.dateEqual(t,e.date))return e})),r=!0,l=!0;this.startDate&&(r=this.dateCompare(this.startDate,t)),this.endDate&&(l=this.dateCompare(t,this.endDate));let c=this.multipleStatus.data,h=!1,d=-1;this.range&&(c&&(d=c.findIndex((e=>this.dateEqual(e,t)))),-1!==d&&(h=!0));let p={fullDate:t,year:e.year,date:a,multiple:!!this.range&&h,beforeMultiple:this.dateEqual(this.multipleStatus.before,t),afterMultiple:this.dateEqual(this.multipleStatus.after,t),month:e.month,lunar:this.getlunar(e.year,e.month,a),disable:!(r&&l),isDay:n};s&&(p.extraInfo=s),i.push(p)}return i}_getNextMonthDays(t,e){let i=[];for(let o=1;o{if(this.dateEqual(t,e.date))return e}));a&&(i[o].extraInfo=a)}return i}getInfo(t){t||(t=new Date);return this.canlender.find((e=>e.fullDate===this.getDate(t).fullDate))}dateCompare(t,e){return(t=new Date(t.replace("-","/").replace("-","/")))<=(e=new Date(e.replace("-","/").replace("-","/")))}dateEqual(t,e){return t=new Date(t.replace("-","/").replace("-","/")),e=new Date(e.replace("-","/").replace("-","/")),t.getTime()-e.getTime()==0}geDateAll(t,e){var i=[],o=t.split("-"),a=e.split("-"),n=new Date;n.setFullYear(o[0],o[1]-1,o[2]);var s=new Date;s.setFullYear(a[0],a[1]-1,a[2]);for(var r=n.getTime()-864e5,l=s.getTime()-864e5,c=r;c<=l;)c+=864e5,i.push(this.getDate(new Date(parseInt(c))).fullDate);return i}getlunar(t,e,i){return ks.solar2lunar(t,e,i)}setSelectInfo(t,e){this.selected=e,this._getWeek(t)}setMultiple(t){let{before:e,after:i}=this.multipleStatus;this.range&&(e&&i?(this.multipleStatus.before="",this.multipleStatus.after="",this.multipleStatus.data=[]):e?(this.multipleStatus.after=t,this.dateCompare(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before)):this.multipleStatus.before=t,this._getWeek(t))}_getWeek(t){const{year:e,month:i}=this.getDate(t);let o=new Date(e,i-1,1).getDay(),a=new Date(e,i,0).getDate(),n={lastMonthDays:this._getLastMonthDays(o,this.getDate(t)),currentMonthDys:this._currentMonthDys(a,this.getDate(t)),nextMonthDays:[],weeks:[]},s=[];const r=42-(n.lastMonthDays.length+n.currentMonthDys.length);n.nextMonthDays=this._getNextMonthDays(r,this.getDate(t)),s=s.concat(n.lastMonthDays,n.currentMonthDys,n.nextMonthDays);let l={};for(let c=0;c({})},calendar:{type:Object,default:()=>({})},selected:{type:Array,default:()=>[]},lunar:{type:Boolean,default:!1}},computed:{todayText:()=>Ps("uni-calender.today")},methods:{choiceDate(t){this.$emit("change",t)}}},[["render",function(o,l,h,u,f,g){const y=p,m=d;return t(),e(m,{class:c(["uni-calendar-item__weeks-box",{"uni-calendar-item--disable":h.weeks.disable,"uni-calendar-item--isDay":h.calendar.fullDate===h.weeks.fullDate&&h.weeks.isDay,"uni-calendar-item--checked":h.calendar.fullDate===h.weeks.fullDate&&!h.weeks.isDay,"uni-calendar-item--before-checked":h.weeks.beforeMultiple,"uni-calendar-item--multiple":h.weeks.multiple,"uni-calendar-item--after-checked":h.weeks.afterMultiple}]),onClick:l[0]||(l[0]=t=>g.choiceDate(h.weeks))},{default:i((()=>[a(m,{class:"uni-calendar-item__weeks-box-item"},{default:i((()=>[h.selected&&h.weeks.extraInfo?(t(),e(y,{key:0,class:"uni-calendar-item__weeks-box-circle"})):n("",!0),a(y,{class:c(["uni-calendar-item__weeks-box-text",{"uni-calendar-item--isDay-text":h.weeks.isDay,"uni-calendar-item--isDay":h.calendar.fullDate===h.weeks.fullDate&&h.weeks.isDay,"uni-calendar-item--checked":h.calendar.fullDate===h.weeks.fullDate&&!h.weeks.isDay,"uni-calendar-item--before-checked":h.weeks.beforeMultiple,"uni-calendar-item--multiple":h.weeks.multiple,"uni-calendar-item--after-checked":h.weeks.afterMultiple,"uni-calendar-item--disable":h.weeks.disable}])},{default:i((()=>[s(r(h.weeks.date),1)])),_:1},8,["class"]),h.lunar||h.weeks.extraInfo||!h.weeks.isDay?n("",!0):(t(),e(y,{key:1,class:c(["uni-calendar-item__weeks-lunar-text",{"uni-calendar-item--isDay-text":h.weeks.isDay,"uni-calendar-item--isDay":h.calendar.fullDate===h.weeks.fullDate&&h.weeks.isDay,"uni-calendar-item--checked":h.calendar.fullDate===h.weeks.fullDate&&!h.weeks.isDay,"uni-calendar-item--before-checked":h.weeks.beforeMultiple,"uni-calendar-item--multiple":h.weeks.multiple,"uni-calendar-item--after-checked":h.weeks.afterMultiple}])},{default:i((()=>[s(r(g.todayText),1)])),_:1},8,["class"])),h.lunar?(t(),e(y,{key:2,class:c(["uni-calendar-item__weeks-lunar-text",{"uni-calendar-item--isDay-text":h.weeks.isDay,"uni-calendar-item--isDay":h.calendar.fullDate===h.weeks.fullDate&&h.weeks.isDay,"uni-calendar-item--checked":h.calendar.fullDate===h.weeks.fullDate&&!h.weeks.isDay,"uni-calendar-item--before-checked":h.weeks.beforeMultiple,"uni-calendar-item--multiple":h.weeks.multiple,"uni-calendar-item--after-checked":h.weeks.afterMultiple,"uni-calendar-item--disable":h.weeks.disable}])},{default:i((()=>[s(r(h.weeks.isDay?g.todayText:"初一"===h.weeks.lunar.IDayCn?h.weeks.lunar.IMonthCn:h.weeks.lunar.IDayCn),1)])),_:1},8,["class"])):n("",!0),h.weeks.extraInfo&&h.weeks.extraInfo.info?(t(),e(y,{key:3,class:c(["uni-calendar-item__weeks-lunar-text",{"uni-calendar-item--extra":h.weeks.extraInfo.info,"uni-calendar-item--isDay-text":h.weeks.isDay,"uni-calendar-item--isDay":h.calendar.fullDate===h.weeks.fullDate&&h.weeks.isDay,"uni-calendar-item--checked":h.calendar.fullDate===h.weeks.fullDate&&!h.weeks.isDay,"uni-calendar-item--before-checked":h.weeks.beforeMultiple,"uni-calendar-item--multiple":h.weeks.multiple,"uni-calendar-item--after-checked":h.weeks.afterMultiple,"uni-calendar-item--disable":h.weeks.disable}])},{default:i((()=>[s(r(h.weeks.extraInfo.info),1)])),_:1},8,["class"])):n("",!0)])),_:1})])),_:1},8,["class"])}],["__scopeId","data-v-d9cfbb5b"]]),{t:Is}=rt(_s),Ms={components:{CalendarItem:Ls},emits:["close","confirm","change","monthSwitch","initdate"],props:{date:{type:String,default:""},selected:{type:Array,default:()=>[]},lunar:{type:Boolean,default:!1},startDate:{type:String,default:""},endDate:{type:String,default:""},range:{type:Boolean,default:!1},insert:{type:Boolean,default:!0},showMonth:{type:Boolean,default:!0},clearDate:{type:Boolean,default:!0}},data:()=>({show:!1,weeks:[],calendar:{},nowDate:"",aniMaskShow:!1}),computed:{okText:()=>Is("uni-calender.ok"),cancelText:()=>Is("uni-calender.cancel"),todayText:()=>Is("uni-calender.today"),monText:()=>Is("uni-calender.MON"),TUEText:()=>Is("uni-calender.TUE"),WEDText:()=>Is("uni-calender.WED"),THUText:()=>Is("uni-calender.THU"),FRIText:()=>Is("uni-calender.FRI"),SATText:()=>Is("uni-calender.SAT"),SUNText:()=>Is("uni-calender.SUN")},watch:{date(t){this.init(t)},startDate(t){this.cale.resetSatrtDate(t),this.cale.setDate(this.nowDate.fullDate),this.weeks=this.cale.weeks},endDate(t){this.cale.resetEndDate(t),this.cale.setDate(this.nowDate.fullDate),this.weeks=this.cale.weeks},selected(t){this.cale.setSelectInfo(this.nowDate.fullDate,t),this.weeks=this.cale.weeks}},created(){this.cale=new Ds({selected:this.selected,startDate:this.startDate,endDate:this.endDate,range:this.range}),this.init(this.date)},methods:{clean(){},bindDateChange(t){const e=t.detail.value+"-1";this.setDate(e);const{year:i,month:o}=this.cale.getDate(e);this.$emit("monthSwitch",{year:i,month:o})},init(t){this.cale.setDate(t),this.weeks=this.cale.weeks,this.nowDate=this.calendar=this.cale.getInfo(t),this.$emit("initdate",this.cale,this.nowDate)},open(){this.clearDate&&!this.insert&&(this.cale.cleanMultipleStatus(),this.init(this.date)),this.show=!0,this.$nextTick((()=>{setTimeout((()=>{this.aniMaskShow=!0}),50)}))},close(){this.aniMaskShow=!1,this.$nextTick((()=>{setTimeout((()=>{this.show=!1,this.$emit("close")}),300)}))},confirm(){this.setEmit("confirm"),this.close()},change(){this.insert&&this.setEmit("change")},monthSwitch(){let{year:t,month:e}=this.nowDate;this.$emit("monthSwitch",{year:t,month:Number(e)}),this.$emit("initdate",this.cale,this.cale.date)},setEmit(t){let{year:e,month:i,date:o,fullDate:a,lunar:n,extraInfo:s}=this.calendar;this.$emit(t,{range:this.cale.multipleStatus,year:e,month:i,date:o,fulldate:a,lunar:n,extraInfo:s||{},cale:this.cale})},choiceDate(t){t.disable||(this.calendar=t,this.cale.setMultiple(this.calendar.fullDate),this.weeks=this.cale.weeks,this.change())},backToday(){this.nowDate.year,this.nowDate.month;const t=this.cale.getDate(new Date);t.year,t.month,this.init(t.fullDate)},pre(){const t=this.cale.getDate(this.nowDate.fullDate,-1,"month").fullDate;this.setDate(t),this.monthSwitch()},next(){const t=this.cale.getDate(this.nowDate.fullDate,1,"month").fullDate;this.setDate(t),this.monthSwitch()},setDate(t){this.cale.setDate(t),this.weeks=this.cale.weeks,this.nowDate=this.cale.getInfo(t)}}};const Fs={components:{direction:"col",calendar:mt(Ms,[["render",function(o,l,h,u,f,g){const m=d,x=p,b=ct,v=Q("calendar-item");return t(),e(m,{class:"uni-calendar"},{default:i((()=>[!h.insert&&f.show?(t(),e(m,{key:0,class:c(["uni-calendar__mask",{"uni-calendar--mask-show":f.aniMaskShow}]),onClick:g.clean},null,8,["class","onClick"])):n("",!0),h.insert||f.show?(t(),e(m,{key:1,class:c(["uni-calendar__content",{"uni-calendar--fixed":!h.insert,"uni-calendar--ani-show":f.aniMaskShow}])},{default:i((()=>[h.insert?n("",!0):(t(),e(m,{key:0,class:"uni-calendar__header uni-calendar--fixed-top"},{default:i((()=>[a(m,{class:"uni-calendar__header-btn-box",onClick:g.close},{default:i((()=>[a(x,{class:"uni-calendar__header-text uni-calendar--fixed-width"},{default:i((()=>[s(r(g.cancelText),1)])),_:1})])),_:1},8,["onClick"]),a(m,{class:"uni-calendar__header-btn-box",onClick:g.confirm},{default:i((()=>[a(x,{class:"uni-calendar__header-text uni-calendar--fixed-width"},{default:i((()=>[s(r(g.okText),1)])),_:1})])),_:1},8,["onClick"])])),_:1})),a(m,{class:"uni-calendar__header"},{default:i((()=>[a(m,{class:"uni-calendar__header-btn-box",onClick:lt(g.pre,["stop"])},{default:i((()=>[a(m,{class:"uni-calendar__header-btn uni-calendar--left"})])),_:1},8,["onClick"]),a(b,{mode:"date",value:h.date,fields:"month",onChange:g.bindDateChange},{default:i((()=>[a(x,{class:"uni-calendar__header-text"},{default:i((()=>[s(r((f.nowDate.year||"")+"年"+(f.nowDate.month||"")+"月"),1)])),_:1})])),_:1},8,["value","onChange"]),a(m,{class:"uni-calendar__header-btn-box",onClick:lt(g.next,["stop"])},{default:i((()=>[a(m,{class:"uni-calendar__header-btn uni-calendar--right"})])),_:1},8,["onClick"]),a(x,{class:"uni-calendar__backtoday",onClick:g.backToday},{default:i((()=>[s("回到今天")])),_:1},8,["onClick"])])),_:1}),a(m,{class:"uni-calendar__box"},{default:i((()=>[h.showMonth?(t(),e(m,{key:0,class:"uni-calendar__box-bg"},{default:i((()=>[a(x,{class:"uni-calendar__box-bg-text"},{default:i((()=>[s(r(f.nowDate.month),1)])),_:1})])),_:1})):n("",!0),a(m,{class:"uni-calendar__weeks"},{default:i((()=>[a(m,{class:"uni-calendar__weeks-day"},{default:i((()=>[a(x,{class:"uni-calendar__weeks-day-text"},{default:i((()=>[s(r(g.SUNText),1)])),_:1})])),_:1}),a(m,{class:"uni-calendar__weeks-day"},{default:i((()=>[a(x,{class:"uni-calendar__weeks-day-text"},{default:i((()=>[s(r(g.monText),1)])),_:1})])),_:1}),a(m,{class:"uni-calendar__weeks-day"},{default:i((()=>[a(x,{class:"uni-calendar__weeks-day-text"},{default:i((()=>[s(r(g.TUEText),1)])),_:1})])),_:1}),a(m,{class:"uni-calendar__weeks-day"},{default:i((()=>[a(x,{class:"uni-calendar__weeks-day-text"},{default:i((()=>[s(r(g.WEDText),1)])),_:1})])),_:1}),a(m,{class:"uni-calendar__weeks-day"},{default:i((()=>[a(x,{class:"uni-calendar__weeks-day-text"},{default:i((()=>[s(r(g.THUText),1)])),_:1})])),_:1}),a(m,{class:"uni-calendar__weeks-day"},{default:i((()=>[a(x,{class:"uni-calendar__weeks-day-text"},{default:i((()=>[s(r(g.FRIText),1)])),_:1})])),_:1}),a(m,{class:"uni-calendar__weeks-day"},{default:i((()=>[a(x,{class:"uni-calendar__weeks-day-text"},{default:i((()=>[s(r(g.SATText),1)])),_:1})])),_:1})])),_:1}),(t(!0),y(w,null,S(f.weeks,((o,n)=>(t(),e(m,{class:"uni-calendar__weeks",key:n},{default:i((()=>[(t(!0),y(w,null,S(o,((o,n)=>(t(),e(m,{class:"uni-calendar__weeks-item",key:n},{default:i((()=>[a(v,{class:"uni-calendar-item--hook",weeks:o,calendar:f.calendar,selected:h.selected,lunar:h.lunar,onChange:g.choiceDate},null,8,["weeks","calendar","selected","lunar","onChange"])])),_:2},1024)))),128))])),_:2},1024)))),128))])),_:1})])),_:1},8,["class"])):n("",!0)])),_:1})}],["__scopeId","data-v-6158a28d"]])},props:{config:{type:Object,default:()=>{}}},data:()=>({selected:[],showForm:!1,horizontal:"right",vertical:"bottom",direction:"horizontal",pattern:{color:"#7A7E83",backgroundColor:"#fff",selectedColor:"#007AFF",buttonColor:"#007AFF"},changedate:"",scheduleList:[],exhibitionList:[],startDate:"",endDate:"",dateDay:"",query:{},options:[{text:"删除",style:{backgroundColor:"#dd524d"}}],startTime:"",formVisible:!1,userInfo:{},key:+new Date,toDay:""}),created(){this.userInfo=B("userInfo")||{}},methods:{initdate(t,e){let i=t.canlender,o=t.weeks;for(let n=0;n{this.key=+new Date}),6e4*this.config.refresh.autoRefreshTime)},handleScheduleList(t){let e=t.canlender,i={startTime:this.startDate=e[0].lunar.cYear+"-"+e[0].lunar.cMonth+"-"+e[0].lunar.cDay,endTime:this.endDate=e[e.length-1].lunar.cYear+"-"+e[e.length-1].lunar.cMonth+"-"+e[e.length-1].lunar.cDay,dateTime:t.fulldate||this.toDay};At(i).then((t=>{let e=t.data.signList;t.data.todayList&&(this.scheduleList=t.data.todayList.map((t=>({...t,show:!1}))));let i=[];for(let[o,a]of Object.entries(e)){let t=o.slice(0,4)+"-"+o.slice(4,6)+"-"+o.slice(6,8);a&&0!=a&&i.push({date:t,info:""})}this.selected=i}))},change(t){let e=t.cale.weeks,i=t.cale.canlender,o=t.lunar;o.cMonth=o.cMonth<10?"0"+Number(o.cMonth):o.cMonth,o.cDay=o.cDay<10?"0"+Number(o.cDay):o.cDay,o.lYear,o.cMonth,o.cDay;let a=this.time(t.fulldate),n=this.toChinaDay(o.nWeek);this.startTime=new Date(t.fulldate).getTime(),this.dateDay=o.cMonth+"月"+o.cDay+"日 周"+n+a,this.changedate="",this.config.showLunarCalendar&&(this.changedate="农历 "+o.IMonthCn+o.IDayCn);let s={weeks:e,canlender:i,lunar:o,fulldate:t.fulldate};this.handleScheduleList(s)},goDetail(t="",e){if("mp"===this.config.platform)return;let i=this.userInfo.userId==e,o=t?`/pages/portal/schedule/detail?id=${t}&type=${i}`:`/pages/portal/schedule/index?id=${t}&startTime=${this.startTime}&duration=${this.config.duration}`;u({url:o})},open(t){this.scheduleList[t].show=!0,this.scheduleList.map(((e,i)=>{t!=i&&(this.scheduleList[i].show=!1)}))},toChinaDay:t=>1==t?"一":2==t?"二":3==t?"三":4==t?"四":5==t?"五":6==t?"六":7==t?"日":void 0,time(t){let e=new Date;if(new Date(t).getFullYear()==e.getFullYear()&&new Date(t).getMonth()==e.getMonth()){let e="";return new Date(t).getDate()===(new Date).getDate()?e=" (今天)":new Date(t).getDate()===(new Date).getDate()-1?e=" (昨天)":new Date(t).getDate()===(new Date).getDate()+1?e=" (明天)":new Date(t).getDate()<(new Date).getDate()&&(e=""),e}return""}}};const Os=mt(Fs,[["render",function(o,n,h,u,g,m){const x=Q("calendar"),b=d,C=yt(f("u-line"),xt),A=p,k=yt(f("u-swipe-action"),Ct),D=T;return t(),e(b,{class:"calendar-v",key:g.key},{default:i((()=>[a(x,{lunar:h.config.showLunarCalendar,selected:g.selected,showMonth:!0,onChange:m.change,onInitdate:m.initdate},null,8,["lunar","selected","onChange","onInitdate"]),a(b,{class:"calendar-b"},{default:i((()=>[a(b,{class:"lunar jnpf-card u-m-t-20"},{default:i((()=>[s(r(g.dateDay)+" ",1),v("div",null,r(g.changedate),1)])),_:1}),a(C),a(b,{class:""},{default:i((()=>[a(D,{"scroll-y":"true",style:l(g.scheduleList.length<3?"":"height: 390rpx;")},{default:i((()=>[(t(!0),y(w,null,S(g.scheduleList,((o,n)=>(t(),e(b,{key:n,class:"schedule-item"},{default:i((()=>[a(k,{index:n,show:o.show,onOpen:m.open,onContentClick:t=>m.goDetail(o.id,o.creatorUserId)},{default:i((()=>[a(b,{class:"calendar-listBox startTime u-m-b-15 u-font-24 u-flex",style:l({background:o.color})},{default:i((()=>[a(A,{class:"time-left"},{default:i((()=>[s(r(o.allDay?"全天":o.startTime),1)])),_:2},1024),a(b,{class:"time-right u-flex-col"},{default:i((()=>[a(b,{class:c(o.content?"time-top":"time-title")},{default:i((()=>[s(r(o.title),1)])),_:2},1032,["class"]),a(b,{class:"time-middle"},{default:i((()=>[s(r(o.content),1)])),_:2},1024)])),_:2},1024)])),_:2},1032,["style"]),a(C)])),_:2},1032,["index","show","onOpen","onContentClick"])])),_:2},1024)))),128))])),_:1},8,["style"]),a(b,{class:c(g.scheduleList.length<3?"lunar1":"addlunar")},{default:i((()=>[a(b,{onClick:n[0]||(n[0]=t=>m.goDetail()),class:"add-title"},{default:i((()=>[s("+添加日程内容")])),_:1})])),_:1},8,["class"])])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-f0eb1945"]]);const Es=mt({props:{config:{type:Object,default:()=>{}}},data:()=>({option:{},imgUrl:""}),created(){this.init(),m("proRefresh"),x("proRefresh",(()=>{this.initData()}))},methods:{init(){this.option=JSON.parse(JSON.stringify(this.config.option)),this.option.imageFillStyle="fill"===this.option.imageFillStyle?"scaleToFill":"cover"===this.option.imageFillStyle?" aspectFill":"aspectFit",this.option.textFontSize=2*this.option.textFontSize+"rpx",this.initData(),!this.config.allRefresh.autoRefresh&&this.config.refresh.autoRefresh&&setInterval(this.initData,6e4*this.config.refresh.autoRefreshTime)},initData(){if(1==this.option.styleType&&(this.imgUrl=this.define.baseURL+this.option.defaultValue),2==this.option.styleType&&(this.imgUrl=this.option.defaultValue),"dynamic"===this.config.dataType){if(!this.config.propsApi)return;const t={paramList:this.config.templateJson};b(this.config.propsApi,t).then((t=>{this.imgUrl="[object String]"===toString.call(t.data)?t.data:""}))}},jump(){if("mp"===this.config.platform)return;let t="";if(1==this.config.option.appLinkType&&3==this.config.option.appType){let e={id:this.config.option.appModuleId,moduleId:this.config.option.appModuleId,urlAddress:this.config.option.appUrlAddress,...JSON.parse(this.config.option.propertyJson)};t="/pages/apply/dynamicModel/index?config="+this.jnpf.base64.encode(JSON.stringify(e))}else if(1==this.config.option.appLinkType&&2==this.config.option.appType)t=this.config.option.appUrlAddress;else{if(1==this.config.option.appLinkType&&8==this.config.option.appType){let t=JSON.parse(this.config.option.appPropertyJson);return void u({url:"/pages/portal/scanPortal/index?id="+t.moduleId+"&protalType=1&fullName="+this.config.option.textDefaultValue||"",fail:t=>{}})}if(!this.config.option.appUrlAddress)return;t="/pages/apply/externalLink/index?url="+encodeURIComponent(this.config.option.appUrlAddress)+"&fullName= "+this.config.option.fullName}u({url:t,fail:t=>{}})}}},[["render",function(o,n,c,u,f,g){const y=h,m=p,x=d;return t(),e(x,{class:"image-v"},{default:i((()=>[a(x,{class:"custom-cover",onClick:n[0]||(n[0]=t=>g.jump())},{default:i((()=>[a(y,{class:"cover-image",mode:f.option.imageFillStyle,src:f.imgUrl},null,8,["mode","src"]),a(x,{class:"cover-content",style:l({"justify-content":f.option.textLeft,"background-color":f.option.textBgColor})},{default:i((()=>[a(m,{class:"uni-subtitle uni-white",style:l({"text-decoration":f.option.textUnderLine,color:f.option.textFontColor,"font-weight":f.option.textFontWeight?700:0,"font-size":f.option.textFontSize})},{default:i((()=>[s(r(f.option.textDefaultValue),1)])),_:1},8,["style"])])),_:1},8,["style"])])),_:1})])),_:1})}],["__scopeId","data-v-82a13a9b"]]),Rs={name:"u-swiper",emits:["click","change"],props:{list:{type:Array,default:()=>[]},title:{type:Boolean,default:!1},indicator:{type:Object,default:()=>({})},borderRadius:{type:[Number,String],default:8},interval:{type:[String,Number],default:3e3},mode:{type:String,default:"round"},height:{type:[Number,String],default:250},indicatorPos:{type:String,default:"bottomCenter"},effect3d:{type:Boolean,default:!1},effect3dPreviousMargin:{type:[Number,String],default:50},autoplay:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},circular:{type:Boolean,default:!0},imgMode:{type:String,default:"aspectFill"},name:{type:String,default:"image"},bgColor:{type:String,default:"#f3f4f6"},current:{type:[Number,String],default:0},titleStyle:{type:Object,default:()=>({})}},watch:{list(t,e){t.length!==e.length&&(this.uCurrent=0)},current(t){this.uCurrent=t}},data(){return{uCurrent:this.current}},computed:{justifyContent(){return"topLeft"==this.indicatorPos||"bottomLeft"==this.indicatorPos?"flex-start":"topCenter"==this.indicatorPos||"bottomCenter"==this.indicatorPos?"center":"topRight"==this.indicatorPos||"bottomRight"==this.indicatorPos?"flex-end":void 0},titlePaddingBottom(){let t=0;return"none"==this.mode?"12rpx":(t=["bottomLeft","bottomCenter","bottomRight"].indexOf(this.indicatorPos)>=0&&"number"==this.mode?"60rpx":["bottomLeft","bottomCenter","bottomRight"].indexOf(this.indicatorPos)>=0&&"number"!=this.mode?"40rpx":"12rpx",t)},elCurrent(){return Number(this.current)}},methods:{listClick(t){this.$emit("click",t)},change(t){let e=t.detail.current;this.uCurrent=e,this.$emit("change",e)},animationfinish(t){}}};const Ns=mt(Rs,[["render",function(o,p,u,f,g,m){const x=h,b=d,v=ht,T=dt;return t(),e(b,{class:"u-swiper-wrap",style:l({borderRadius:`${u.borderRadius}rpx`})},{default:i((()=>[a(T,{current:m.elCurrent,onChange:m.change,onAnimationfinish:m.animationfinish,interval:u.interval,circular:u.circular,duration:u.duration,autoplay:u.autoplay,"previous-margin":u.effect3d?u.effect3dPreviousMargin+"rpx":"0","next-margin":u.effect3d?u.effect3dPreviousMargin+"rpx":"0",style:l({height:u.height+"rpx",backgroundColor:u.bgColor})},{default:i((()=>[(t(!0),y(w,null,S(u.list,((o,h)=>(t(),e(v,{class:"u-swiper-item",key:h},{default:i((()=>[a(b,{class:c(["u-list-image-wrap",[g.uCurrent!=h?"u-list-scale":""]]),onClick:lt((t=>m.listClick(h)),["stop","prevent"]),style:l({borderRadius:`${u.borderRadius}rpx`,transform:u.effect3d&&g.uCurrent!=h?"scaleY(0.9)":"scaleY(1)",margin:u.effect3d&&g.uCurrent!=h?"0 20rpx":0})},{default:i((()=>[a(x,{class:"u-swiper-image",src:o[u.name]||o,mode:u.imgMode},null,8,["src","mode"]),u.title&&o.title?(t(),e(b,{key:0,class:"u-swiper-title u-line-1",style:l([{"padding-bottom":m.titlePaddingBottom},u.titleStyle])},{default:i((()=>[s(r(o.title),1)])),_:2},1032,["style"])):n("",!0)])),_:2},1032,["onClick","class","style"])])),_:2},1024)))),128))])),_:1},8,["current","onChange","onAnimationfinish","interval","circular","duration","autoplay","previous-margin","next-margin","style"]),a(b,{class:"u-swiper-indicator",style:l({top:"topLeft"==u.indicatorPos||"topCenter"==u.indicatorPos||"topRight"==u.indicatorPos?"12rpx":"auto",bottom:"bottomLeft"==u.indicatorPos||"bottomCenter"==u.indicatorPos||"bottomRight"==u.indicatorPos?"12rpx":"auto",justifyContent:m.justifyContent,padding:"0 "+(u.effect3d?"74rpx":"24rpx")})},{default:i((()=>["rect"==u.mode?(t(!0),y(w,{key:0},S(u.list,((i,o)=>(t(),e(b,{class:c(["u-indicator-item-rect",{"u-indicator-item-rect-active":o==g.uCurrent}]),key:o},null,8,["class"])))),128)):n("",!0),"dot"==u.mode?(t(!0),y(w,{key:1},S(u.list,((i,o)=>(t(),e(b,{class:c(["u-indicator-item-dot",{"u-indicator-item-dot-active":o==g.uCurrent}]),key:o},null,8,["class"])))),128)):n("",!0),"round"==u.mode?(t(!0),y(w,{key:2},S(u.list,((i,o)=>(t(),e(b,{class:c(["u-indicator-item-round",{"u-indicator-item-round-active":o==g.uCurrent}]),key:o},null,8,["class"])))),128)):n("",!0),"number"==u.mode?(t(),e(b,{key:3,class:"u-indicator-item-number"},{default:i((()=>[s(r(g.uCurrent+1)+"/"+r(u.list.length),1)])),_:1})):n("",!0)])),_:1},8,["style"])])),_:1},8,["style"])}],["__scopeId","data-v-7611b3dc"]]),zs={props:{config:{type:Object,default:()=>{}}},data:()=>({option:{},propsApi:"",list:[]}),created(){this.init(),m("proRefresh"),x("proRefresh",(()=>{this.initData()}))},methods:{init(){this.option=JSON.parse(JSON.stringify(this.config.option)),this.option.titleStyle={"text-align":this.option.textLeft,"font-size":2*this.option.textFontSize+"rpx","font-weight":this.option.textFontWeight?700:400,color:this.option.textFontColor,"background-color":this.option.textBgColor},this.option.carouselIndicatorPosition="bottomRight"===this.option.carouselIndicatorPosition?"bottomCenter":"topLeft"===this.option.carouselIndicatorPosition?"topCenter":"none",this.initData(),!this.config.allRefresh.autoRefresh&&this.config.refresh.autoRefresh&&setInterval(this.initData,6e4*this.config.refresh.autoRefreshTime)},async initData(){let t=JSON.parse(JSON.stringify(this.option.appDefaultValue));for(let e=0;e{this.$u.toast("暂无此页面")}})}else{let t=JSON.parse(e.propertyJson);u({url:"/pages/portal/scanPortal/index?id="+t.moduleId+"&protalType=1&fullName="+e.textDefaultValue||"",fail:t=>{}})}}}};const Bs=mt(zs,[["render",function(o,n,s,r,l,c){const h=yt(f("u-swiper"),Ns),p=d;return t(),e(p,{class:"dataBoard-v"},{default:i((()=>[a(p,{class:"dataBoard-box"},{default:i((()=>[a(h,{list:l.list,height:"300",mode:"rect","indicator-pos":l.option.carouselIndicatorPosition,autoplay:l.option.carouselAutoplay,interval:l.option.carouselInterval,"img-mode":l.option.imageFillStyle,title:!0,"title-style":l.option.titleStyle,onClick:c.swiperC,name:"imageUrl",effect3d:l.option.carouselType},null,8,["list","indicator-pos","autoplay","interval","img-mode","title-style","onClick","effect3d"])])),_:1})])),_:1})}],["__scopeId","data-v-627fc626"]]);const Us=mt({emits:["close","getMore"],props:{list:{type:Array,default:()=>[]},type:{type:String,default:"warning"},volumeIcon:{type:Boolean,default:!0},moreIcon:{type:Boolean,default:!1},closeIcon:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!0},color:{type:String,default:""},bgColor:{type:String,default:""},show:{type:Boolean,default:!0},fontSize:{type:[Number,String],default:26},volumeSize:{type:[Number,String],default:34},speed:{type:[Number,String],default:160},playState:{type:String,default:"play"},padding:{type:[Number,String],default:"18rpx 24rpx"}},data:()=>({textWidth:0,boxWidth:0,animationDuration:"10s",animationPlayState:"paused",showText:""}),watch:{list:{immediate:!0,handler(t){this.showText=t.join(","),this.$nextTick((()=>{this.initSize()}))}},playState(t){this.animationPlayState="play"==t?"running":"paused"},speed(t){this.initSize()}},computed:{computeColor(){return this.color?this.color:"none"==this.type?"#606266":this.type},textStyle(){let t={};return this.color?t.color=this.color:"none"==this.type&&(t.color="#606266"),t.fontSize=this.fontSize+"rpx",t},computeBgColor(){return this.bgColor?this.bgColor:"none"==this.type?"transparent":void 0}},mounted(){this.$nextTick((()=>{this.initSize()}))},methods:{initSize(){let t=[],e=new Promise(((t,e)=>{tt().in(this).select("#u-notice-content").boundingClientRect().exec((e=>{this.textWidth=e[0].width,t()}))}));t.push(e),Promise.all(t).then((()=>{this.animationDuration=this.textWidth/pt(this.speed)+"s",this.animationPlayState="paused",setTimeout((()=>{"play"==this.playState&&this.autoplay&&(this.animationPlayState="running")}),10)}))},click(t){this.$emit("click")},close(){this.$emit("close")},getMore(){this.$emit("getMore")}}},[["render",function(o,h,u,g,y,m){const x=yt(f("u-icon"),St),b=d,w=p;return u.show?(t(),e(b,{key:0,class:c(["u-notice-bar",[u.type?`u-type-${u.type}-light-bg`:""]]),style:l({background:m.computeBgColor,padding:u.padding})},{default:i((()=>[a(b,{class:"u-direction-row"},{default:i((()=>[a(b,{class:"u-icon-wrap"},{default:i((()=>[u.volumeIcon?(t(),e(x,{key:0,class:"u-left-icon",name:"volume-fill",size:u.volumeSize,color:m.computeColor},null,8,["size","color"])):n("",!0)])),_:1}),a(b,{class:"u-notice-box",id:"u-notice-box"},{default:i((()=>[a(b,{class:"u-notice-content",id:"u-notice-content",style:l({animationDuration:y.animationDuration,animationPlayState:y.animationPlayState})},{default:i((()=>[a(w,{class:c(["u-notice-text",["u-type-"+u.type]]),onClick:m.click,style:l([m.textStyle])},{default:i((()=>[s(r(y.showText),1)])),_:1},8,["onClick","style","class"])])),_:1},8,["style"])])),_:1}),a(b,{class:"u-icon-wrap"},{default:i((()=>[u.moreIcon?(t(),e(x,{key:0,onClick:m.getMore,class:"u-right-icon",name:"arrow-right",size:26,color:m.computeColor},null,8,["onClick","color"])):n("",!0),u.closeIcon?(t(),e(x,{key:1,onClick:m.close,class:"u-right-icon",name:"close",size:24,color:m.computeColor},null,8,["onClick","color"])):n("",!0)])),_:1})])),_:1})])),_:1},8,["style","class"])):n("",!0)}],["__scopeId","data-v-834500a9"]]),js={emits:["close","getMore","end"],props:{list:{type:Array,default:()=>[]},type:{type:String,default:"warning"},volumeIcon:{type:Boolean,default:!0},moreIcon:{type:Boolean,default:!1},closeIcon:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!0},color:{type:String,default:""},bgColor:{type:String,default:""},direction:{type:String,default:"row"},show:{type:Boolean,default:!0},fontSize:{type:[Number,String],default:26},duration:{type:[Number,String],default:2e3},volumeSize:{type:[Number,String],default:34},speed:{type:Number,default:160},isCircular:{type:Boolean,default:!0},mode:{type:String,default:"horizontal"},playState:{type:String,default:"play"},disableTouch:{type:Boolean,default:!0},padding:{type:[Number,String],default:"18rpx 24rpx"}},computed:{computeColor(){return this.color?this.color:"none"==this.type?"#606266":this.type},textStyle(){let t={};return this.color?t.color=this.color:"none"==this.type&&(t.color="#606266"),t.fontSize=this.fontSize+"rpx",t},vertical(){return"horizontal"!=this.mode},computeBgColor(){return this.bgColor?this.bgColor:"none"==this.type?"transparent":void 0}},data:()=>({}),methods:{click(t){this.$emit("click",t)},close(){this.$emit("close")},getMore(){this.$emit("getMore")},change(t){t.detail.current==this.list.length-1&&this.$emit("end")}}};const Ws=mt(js,[["render",function(o,h,p,u,g,m){const x=yt(f("u-icon"),St),b=d,v=ht,T=dt;return t(),e(b,{class:c(["u-notice-bar",[p.type?`u-type-${p.type}-light-bg`:""]]),style:l({background:m.computeBgColor,padding:p.padding})},{default:i((()=>[a(b,{class:"u-icon-wrap"},{default:i((()=>[p.volumeIcon?(t(),e(x,{key:0,class:"u-left-icon",name:"volume-fill",size:p.volumeSize,color:m.computeColor},null,8,["size","color"])):n("",!0)])),_:1}),a(T,{"disable-touch":p.disableTouch,onChange:m.change,autoplay:p.autoplay&&"play"==p.playState,vertical:m.vertical,circular:"",interval:p.duration,class:"u-swiper"},{default:i((()=>[(t(!0),y(w,null,S(p.list,((o,n)=>(t(),e(v,{key:n,class:"u-swiper-item"},{default:i((()=>[a(b,{class:c(["u-news-item u-line-1",["u-type-"+p.type]]),style:l([m.textStyle]),onClick:t=>m.click(n)},{default:i((()=>[s(r(o),1)])),_:2},1032,["style","onClick","class"])])),_:2},1024)))),128))])),_:1},8,["disable-touch","onChange","autoplay","vertical","interval"]),a(b,{class:"u-icon-wrap"},{default:i((()=>[p.moreIcon?(t(),e(x,{key:0,onClick:m.getMore,class:"u-right-icon",name:"arrow-right",size:26,color:m.computeColor},null,8,["onClick","color"])):n("",!0),p.closeIcon?(t(),e(x,{key:1,onClick:m.close,class:"u-right-icon",name:"close",size:24,color:m.computeColor},null,8,["onClick","color"])):n("",!0)])),_:1})])),_:1},8,["style","class"])}],["__scopeId","data-v-d897bbfb"]]);const Hs=mt({name:"u-notice-bar",emits:["click","close","getMore","end"],props:{list:{type:Array,default:()=>[]},type:{type:String,default:"warning"},volumeIcon:{type:Boolean,default:!0},volumeSize:{type:[Number,String],default:34},moreIcon:{type:Boolean,default:!1},closeIcon:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!0},color:{type:String,default:""},bgColor:{type:String,default:""},mode:{type:String,default:"horizontal"},show:{type:Boolean,default:!0},fontSize:{type:[Number,String],default:28},duration:{type:[Number,String],default:2e3},speed:{type:[Number,String],default:160},isCircular:{type:Boolean,default:!0},playState:{type:String,default:"play"},disableTouch:{type:Boolean,default:!0},borderRadius:{type:[Number,String],default:0},padding:{type:[Number,String],default:"18rpx 24rpx"},noListHidden:{type:Boolean,default:!0}},computed:{isShow(){return 0!=this.show&&(1!=this.noListHidden||0!=this.list.length)}},methods:{click(t){this.$emit("click",t)},close(){this.$emit("close")},getMore(){this.$emit("getMore")},end(){this.$emit("end")}}},[["render",function(o,a,s,r,c,h){const p=yt(f("u-row-notice"),Us),u=yt(f("u-column-notice"),Ws),g=d;return h.isShow?(t(),e(g,{key:0,class:"u-notice-bar-wrap",style:l({borderRadius:s.borderRadius+"rpx"})},{default:i((()=>["horizontal"==s.mode&&s.isCircular?(t(),e(p,{key:0,type:s.type,color:s.color,bgColor:s.bgColor,list:s.list,volumeIcon:s.volumeIcon,moreIcon:s.moreIcon,volumeSize:s.volumeSize,closeIcon:s.closeIcon,mode:s.mode,fontSize:s.fontSize,speed:s.speed,playState:s.playState,padding:s.padding,onGetMore:h.getMore,onClose:h.close,onClick:h.click},null,8,["type","color","bgColor","list","volumeIcon","moreIcon","volumeSize","closeIcon","mode","fontSize","speed","playState","padding","onGetMore","onClose","onClick"])):n("",!0),"vertical"==s.mode||"horizontal"==s.mode&&!s.isCircular?(t(),e(u,{key:1,type:s.type,color:s.color,bgColor:s.bgColor,list:s.list,volumeIcon:s.volumeIcon,moreIcon:s.moreIcon,closeIcon:s.closeIcon,mode:s.mode,volumeSize:s.volumeSize,"disable-touch":s.disableTouch,fontSize:s.fontSize,duration:s.duration,playState:s.playState,padding:s.padding,onGetMore:h.getMore,onClose:h.close,onClick:h.click,onEnd:h.end},null,8,["type","color","bgColor","list","volumeIcon","moreIcon","closeIcon","mode","volumeSize","disable-touch","fontSize","duration","playState","padding","onGetMore","onClose","onClick","onEnd"])):n("",!0)])),_:1},8,["style"])):n("",!0)}],["__scopeId","data-v-7d93799d"]]);const Js=mt({props:{config:{type:Object,default:()=>{}}},data:()=>({option:{},key:+new Date}),created(){this.init(),m("proRefresh"),x("proRefresh",(()=>{this.initData()}))},methods:{init(){this.option=JSON.parse(JSON.stringify(this.config.option)),this.initData(),!this.config.allRefresh.autoRefresh&&this.config.refresh.autoRefresh&&setInterval(this.initData,6e4*this.config.refresh.autoRefreshTime)},jump(){let t,e={urlAddress:this.option.appUrlAddress,value:this.option.defaultValue};if(this.jnpf.solveAddressParam(e,this.config),this.option.appUrlAddress=e.urlAddress,"mp"!==this.config.platform&&this.option.appLinkType)if(1!=this.option.appLinkType||8!=this.option.appType){if(1==this.option.appLinkType){let e={id:this.option.appModuleId,moduleId:this.option.appModuleId,urlAddress:this.option.appUrlAddress,...JSON.parse(this.option.appPropertyJson)};t=3==this.option.appType?"/pages/apply/dynamicModel/index?config="+this.jnpf.base64.encode(JSON.stringify(e)):2==this.option.appType?this.option.appUrlAddress+"?menuId="+this.option.appModuleId:"/pages/apply/externalLink/index?url="+encodeURIComponent(this.option.appUrlAddress)}else t="/pages/apply/externalLink/index?url="+encodeURIComponent(this.option.appUrlAddress);u({url:t,fail:t=>{this.$u.toast("暂无此页面")}})}else{let t=JSON.parse(this.option.appPropertyJson);u({url:"/pages/portal/scanPortal/index?id="+t.moduleId+"&protalType=1&fullName="+this.option.defaultValue||"",fail:t=>{}})}},initData(){if("dynamic"===this.config.dataType){if(!this.config.propsApi)return;const t={paramList:this.config.templateJson};b(this.config.propsApi,t).then((t=>{this.option.defaultValue=t.data,2==this.option.styleType&&"string"!=typeof t&&(this.option.defaultValue=JSON.stringify(t)),this.handleAttrs()}))}else this.handleAttrs()},handleAttrs(){this.option.textAutoplay&&(this.option.defaultValue=[this.option.defaultValue]),this.key=+new Date}}},[["render",function(o,c,h,u,g,y){const m=yt(f("u-notice-bar"),Hs),x=d,b=p,w=yt(f("mp-html"),kt);return t(),e(x,{class:"text-v"},{default:i((()=>[1==g.option.styleType?(t(),e(x,{key:0,class:""},{default:i((()=>[g.option.textAutoplay?(t(),e(x,{key:0,onClick:y.jump,style:l({"font-weight":g.option.textFontWeight?700:400,"font-style":g.option.textFontStyle?"italic":"normal","text-decoration":g.option.textUnderLine,color:g.option.textFontColor})},{default:i((()=>[a(m,{"volume-icon":!1,list:g.option.defaultValue,"bg-color":g.option.textBgColor||"#fff",color:g.option.textFontColor,"font-size":2*g.option.textFontSize,speed:g.option.textAutoplaySpeed,autoplay:g.option.textAutoplay},null,8,["list","bg-color","color","font-size","speed","autoplay"])])),_:1},8,["onClick","style"])):n("",!0),g.option.textAutoplay?n("",!0):(t(),e(x,{key:1,class:"txtSty",onClick:y.jump,style:l({color:g.option.textFontColor,"font-size":2*g.option.textFontSize+"rpx","background-color":g.option.textBgColor,"font-weight":g.option.textFontWeight?700:400,"text-decoration":g.option.textUnderLine,"font-style":g.option.textFontStyle?"italic":"normal","text-align":g.option.textLeft})},{default:i((()=>[a(b,null,{default:i((()=>[s(r(g.option.defaultValue),1)])),_:1})])),_:1},8,["onClick","style"]))])),_:1})):n("",!0),2==g.option.styleType?(t(),e(x,{key:1,class:"u-p-20 parse"},{default:i((()=>[(t(),e(w,{class:"editor-box",content:g.option.defaultValue,key:g.key},null,8,["content"]))])),_:1})):n("",!0)])),_:1})}],["__scopeId","data-v-51a7455a"]]);const qs=mt({props:{config:{type:Object,default:()=>{}}},data:()=>({title:"video",src:"",danmuValue:"",showVideo:!0,autoplay:!0,option:{},key:+new Date,nodata:"/app/assets/portal-nodata-BRENCJKO.png"}),onReady:function(t){this.videoContext=ut("myVideo")},created(){this.init(),m("proRefresh"),x("proRefresh",(()=>{this.initData()}))},computed:{baseURL(){return this.define.baseURL}},methods:{init(){this.config.option.playNumber=1!=this.config.option.playNumber,this.initData(),!this.config.allRefresh.autoRefresh&&this.config.refresh.autoRefresh&&setInterval(this.initData,6e4*this.config.refresh.autoRefreshTime)},initData(){if(this.option=this.config.option,"dynamic"===this.config.dataType){if(!this.config.propsApi)return;const t={paramList:this.config.templateJson};b(this.config.propsApi,t).then((t=>{this.config.option.defaultValue=t.data,this.option=this.config.option}))}else 1==this.config.option.styleType&&(this.option.defaultValue=this.baseURL+this.config.option.defaultValue.url)}}},[["render",function(o,n,r,l,c,h){const u=ft,g=d,y=yt(f("u-image"),wt),m=p;return t(),e(g,{class:"video-v"},{default:i((()=>[a(g,{class:"uni-padding-wrap uni-common-mt"},{default:i((()=>[c.option.defaultValue&&!Array.isArray(c.option.defaultValue)?(t(),e(g,{key:0,style:{width:"366px",height:"225px"}},{default:i((()=>[ot((t(),e(u,{id:"myVideo",src:c.option.defaultValue,"object-fit":"fill",loop:c.option.playNumber,autoplay:c.option.videoAutoplay,muted:c.option.mutePlay,key:c.key},null,8,["src","loop","autoplay","muted"])),[[at,c.showVideo]])])),_:1})):(t(),e(g,{key:1,class:"nodata"},{default:i((()=>[a(y,{width:"100px",height:"100px",src:c.nodata,class:"img"},null,8,["src"]),a(m,null,{default:i((()=>[s("暂无视频")])),_:1})])),_:1}))])),_:1})])),_:1})}],["__scopeId","data-v-51993685"]]);const Ks=mt({props:{config:{type:Object,default:()=>{}}},data:()=>({offset:["-8","-14"],option:{},propsApi:"",key:+new Date,flowDone:[],toBeReviewed:[],flowCirculateType:[]}),created(){this.init(),m("proRefresh"),x("proRefresh",(()=>{this.initData()}))},methods:{getFlowTodoCount(){for(let e=0;e{let e=t.data;this.option.defaultValue.forEach((t=>{t.num=e[t.id]})),this.key=+new Date}))},init(){this.initData(),!this.config.allRefresh.autoRefresh&&this.config.refresh.autoRefresh&&setInterval(this.initData,6e4*this.config.refresh.autoRefreshTime)},initData(){let t;this.option=JSON.parse(JSON.stringify(this.config.option)),t={width:"240rpx"},2==this.option.styleType&&(t={width:100/this.option.appRowNumber+"%"},this.option.appShowBorder&&(t["border-right"]="2rpx solid #f0f2f6",t["border-bottom"]="2rpx solid #f0f2f6")),this.option.style=t,this.option.defaultValue=this.option.defaultValue.filter((t=>!t.noShow)),this.getFlowTodoCount(),this.option.labelFontSize=2*this.option.labelFontSize+"rpx",this.key=+new Date},jump(t){if("mp"===this.config.platform)return;let e="toBeReviewed"===t.id?"/workFlow/flowTodo":"flowDone"===t.id?"/workFlow/flowDone":"flowCirculate"===t.id?"/workFlow/flowCopy":"/workFlow/entrust";u({url:`/pages${e}/index?category=${t.category}`}),u({url:e,fail:t=>{}})}}},[["render",function(o,n,h,p,u,g){const m=d,x=yt(f("u-badge"),Dt);return t(),e(m,{class:"HTodo-v",key:u.key},{default:i((()=>[a(m,{class:"HTodo-box"},{default:i((()=>[a(m,{class:"HTodo-list u-flex",style:l({"flex-wrap":1==u.option.styleType?"nowrap":"wrap"})},{default:i((()=>[(t(!0),y(w,null,S(u.option.defaultValue,((o,n)=>(t(),e(m,{class:"u-flex-col HTodo-list-item",key:n,onClick:t=>g.jump(o),style:l(u.option.style)},{default:i((()=>[a(m,{class:"u-m-b-8",style:{position:"relative"}},{default:i((()=>[a(m,{class:c([o.icon,"icon"]),style:l({"background-color":o.iconColor||o.iconBgColor||"#008cff"})},null,8,["class","style"]),a(x,{type:"error",offset:u.offset,count:o.num,"show-zero":"",bgColor:u.option.valueFontBgColor,style:l({color:u.option.valueFontColor,"font-weight":u.option.valueFontWeight?700:400})},null,8,["offset","count","bgColor","style"])])),_:2},1024),a(m,{class:"u-line-1 title",style:l({"font-size":u.option.labelFontSize,color:u.option.labelFontColor,"font-weight":u.option.labelFontWeight?700:400})},{default:i((()=>[s(r(o.fullName),1)])),_:2},1032,["style"])])),_:2},1032,["onClick","style"])))),128))])),_:1},8,["style"])])),_:1})])),_:1})}],["__scopeId","data-v-707aba10"]]);const Vs=mt({props:{config:{type:Object,default:()=>{}}},data:()=>({option:{},key:+new Date}),created(){this.initData()},methods:{getUsualList(){Pt(2).then((t=>{this.option.appDefaultValue=t.data.list.map((t=>{const e=t.objectData?JSON.parse(t.objectData):{};return{...t,...e}})),console.log(this.option.appDefaultValue,"usualList")}))},initData(){let t;this.option=JSON.parse(JSON.stringify(this.config.option)),t={width:"240rpx"},2==this.option.appStyleType&&(t={width:this.option.appDefaultValue.lenght<2?"":100/this.option.appRowNumber+"%"},this.option.appShowBorder&&(t["border-right"]="2rpx solid #f0f2f6",t["border-bottom"]="2rpx solid #f0f2f6")),this.option.style=t,this.option.labelFontSize=2*this.option.labelFontSize+"rpx",this.getUsualList(),this.key=+new Date},jump(t){if(3==t.type){if(!t.moduleId)return void this.$u.toast("暂无此页面");u({url:"/pages/apply/dynamicModel/index?config="+this.jnpf.base64.encode(JSON.stringify(t)),fail:t=>{this.$u.toast("暂无此页面")}})}}}},[["render",function(o,n,h,p,u,f){const g=d;return t(),e(g,{class:"HTodo-v",key:u.key},{default:i((()=>[a(g,{class:"HTodo-box u-flex"},{default:i((()=>[a(g,{class:"HTodo-list u-flex",style:l({"flex-wrap":1==u.option.appStyleType?"nowrap":"wrap"})},{default:i((()=>[(t(!0),y(w,null,S(u.option.appDefaultValue,((o,n)=>(t(),e(g,{class:"u-flex-col HTodo-list-item",key:n,onClick:t=>f.jump(o),style:l(u.option.style)},{default:i((()=>[a(g,{class:"",style:{position:"relative","margin-bottom":"8rpx"}},{default:i((()=>[a(g,{class:c([o.icon,"icon"]),style:l({"background-color":o.iconColor||o.iconBgColor||"#008cff"})},null,8,["class","style"])])),_:2},1024),a(g,{class:"u-line-1 title",style:l({"font-size":u.option.labelFontSize,color:u.option.labelFontColor,"font-weight":u.option.labelFontWeight?700:400})},{default:i((()=>[s(r(o.fullName),1)])),_:2},1032,["style"])])),_:2},1032,["onClick","style"])))),128))])),_:1},8,["style"])])),_:1})])),_:1})}],["__scopeId","data-v-ce1b3dd9"]]);const Gs=mt({name:"u-time-line-item",props:{bgColor:{type:String,default:"#ffffff"},nodeTop:{type:[String,Number],default:""}},data:()=>({}),computed:{nodeStyle(){let t={backgroundColor:this.bgColor};return""!=this.nodeTop&&(t.top=this.nodeTop+"rpx"),t}}},[["render",function(n,s,r,c,h,p){const u=d;return t(),e(u,{class:"u-time-axis-item"},{default:i((()=>[o(n.$slots,"content",{},void 0,!0),a(u,{class:"u-time-axis-node",style:l([p.nodeStyle])},{default:i((()=>[o(n.$slots,"node",{},(()=>[a(u,{class:"u-dot"})]),!0)])),_:3},8,["style"])])),_:3})}],["__scopeId","data-v-ae27b15d"]]);const Xs=mt({name:"u-time-line",data:()=>({})},[["render",function(a,n,s,r,l,c){const h=d;return t(),e(h,{class:"u-time-axis"},{default:i((()=>[o(a.$slots,"default",{},void 0,!0)])),_:3})}],["__scopeId","data-v-34b9677a"]]),Ys={props:{list:{type:Array,default:()=>[]},isCrad:{type:Boolean,default:()=>!1},isUpper:{type:Boolean,default:()=>!0}},data:()=>({upperStyle:{"padding-top":"40rpx","border-top":"2rpx solid #DEDEDE"},upperDotStyle:{top:"-54rpx"},lowerStyle:{"padding-bottom":"40rpx","border-bottom":"2rpx solid #DEDEDE"},lowerDotStyle:{bottom:"-52rpx"}}),methods:{jump(t){this.jnpf.solveAddressParam(t,this.config),this.jnpf.jumpLink(t.urlAddress)}}};const Qs=mt({name:"Item",props:{item:{type:Object,default:()=>({})}},components:{HCard:It,HDataBoard:Mt,HTable:Ft,HNotice:Ot,HEmail:Et,HTodoList:Rt,HCharts:vs,HRankList:As,HSchedule:Os,HImage:Es,HCarousel:Bs,HCustomeCharts:Cs,HText:Js,HVideo:qs,HTodo:Ks,HCommonFunc:Vs,HTimeAxis:mt({props:{config:{type:Object,default:()=>{}}},components:{timeLineRow:mt(Ys,[["render",function(o,h,u,f,g,m){const x=p,b=d;return t(),e(b,{class:"steps-v"},{default:i((()=>[a(b,{class:"steps-box"},{default:i((()=>[(t(!0),y(w,null,S(u.list,((o,h)=>(t(),e(b,{class:"steps-line",style:l(u.isUpper?g.lowerStyle:g.upperStyle),key:h,onClick:t=>m.jump(o)},{default:i((()=>[a(b,{class:"steps-item"},{default:i((()=>[a(b,{class:"steps-content",style:l({width:u.isCrad?"270rpx":"250rpx"})},{default:i((()=>[u.isCrad?(t(),e(b,{key:0,class:"u-font-24 steps-content-hd"},{default:i((()=>[a(x,null,{default:i((()=>[s(r(o.title),1)])),_:2},1024)])),_:2},1024)):n("",!0),a(b,{class:c(["u-font-24",u.isCrad?"steps-title":"steps-title2"])},{default:i((()=>[a(x,{class:"name u-line-2"},{default:i((()=>[s(r(o.content),1)])),_:2},1024),a(x,{class:"time"},{default:i((()=>[s(r(o.timestamp),1)])),_:2},1024)])),_:2},1032,["class"])])),_:2},1032,["style"]),a(b,{class:"steps-node",style:l(u.isUpper?g.lowerDotStyle:g.upperDotStyle)},{default:i((()=>[0==h?(t(),e(b,{key:0,class:"steps-node-dot",style:l({background:"rgba(62, 213, 56, 0.39)"})},null,8,["style"])):h==u.list.length-1?(t(),e(b,{key:1,class:"steps-node-dot",style:l({background:"rgba(228, 231, 237, 0.39)"})},null,8,["style"])):(t(),e(b,{key:2,class:"steps-node-dot",style:l({background:"rgba(25, 144, 250, 0.39)"})},null,8,["style"]))])),_:2},1032,["style"])])),_:2},1024)])),_:2},1032,["style","onClick"])))),128))])),_:1})])),_:1})}],["__scopeId","data-v-61455834"]])},data:()=>({option:{},key:+new Date}),created(){this.init(),m("proRefresh"),x("proRefresh",(()=>{this.initData()}))},methods:{jump(t){this.jnpf.solveAddressParam(t,this.config),this.jnpf.jumpLink(t.urlAddress)},init(){this.initData(),!this.config.allRefresh.autoRefresh&&this.config.refresh.autoRefresh&&setInterval(this.initData,6e4*this.config.refresh.autoRefreshTime)},initData(){if("dynamic"===this.config.dataType){if(!this.config.propsApi)return;const t={paramList:this.config.templateJson};b(this.config.propsApi,t).then((t=>{this.config.option.defaultValue=t.data||[],this.handleAttrs()}))}else this.handleAttrs()},handleAttrs(){2==this.config.option.sortable&&(this.config.option.defaultValue=this.config.option.defaultValue.reverse()),this.config.option.isCrad=2==this.config.option.styleType,this.config.option.isLeft=!1,this.config.option.isVertical=!1,this.config.option.isUpper=!1,1!=this.config.option.layout&&2!=this.config.option.layout&&3!=this.config.option.layout&&4!=this.config.option.layout||(this.config.option.isVertical=!0,3==this.config.option.layout&&(this.config.option.isLeft=!0)),this.config.option.isVertical||5!=this.config.option.layout&&6!=this.config.option.layout&&7!=this.config.option.layout||(this.config.option.isUpper=!0),this.config.option.appShowNumber=this.config.option.appShowNumber||50,this.config.option.appShowNumber&&Array.isArray(this.config.option.defaultValue)&&(this.config.option.defaultValue=this.config.option.defaultValue.slice(0,this.config.option.appShowNumber)),this.option=this.config.option,this.key=+new Date}}},[["render",function(o,h,u,g,m,x){const b=d,v=p,T=yt(f("u-time-line-item"),Gs),C=yt(f("u-time-line"),Xs),A=Q("timeLine-row");return t(),e(b,{class:"timeLine-v"},{default:i((()=>[(t(),e(b,{class:"timeLine",key:m.key},{default:i((()=>[m.option.isVertical?(t(),e(C,{key:0,class:c(m.option.isLeft?"timeLine-right":"")},{default:i((()=>[(t(!0),y(w,null,S(m.option.defaultValue,((o,h)=>(t(),e(T,{key:h},{node:i((()=>[0==h?(t(),e(b,{key:0,class:"timeLine-dot",style:l({background:"rgba(62, 213, 56, 0.39)"})},null,8,["style"])):h==m.option.defaultValue.length-1?(t(),e(b,{key:1,class:"timeLine-dot",style:l({background:"rgba(228, 231, 237, 0.39)"})},null,8,["style"])):(t(),e(b,{key:2,class:"timeLine-dot",style:l({background:"rgba(25, 144, 250, 0.39)"})},null,8,["style"]))])),content:i((()=>[a(b,{class:"timeLine-content",style:l({"text-align":m.option.isLeft?"right":"left"}),onClick:t=>x.jump(o)},{default:i((()=>[m.option.isCrad?(t(),e(b,{key:0,class:"u-font-24"},{default:i((()=>[s(r(o.title),1)])),_:2},1024)):n("",!0),a(b,{class:c(["u-flex-col",m.option.isCrad?"timeLine-title2":"timeLine-title"])},{default:i((()=>[a(v,{class:"name u-font-28"},{default:i((()=>[s(r(o.content),1)])),_:2},1024),a(v,{class:"time u-font-28"},{default:i((()=>[s(r(o.timestamp),1)])),_:2},1024)])),_:2},1032,["class"])])),_:2},1032,["style","onClick"])])),_:2},1024)))),128))])),_:1},8,["class"])):n("",!0),m.option.isVertical?n("",!0):(t(),e(A,{key:1,list:m.option.defaultValue,isCrad:m.option.isCrad,isUpper:m.option.isUpper},null,8,["list","isCrad","isUpper"]))])),_:1}))])),_:1})}],["__scopeId","data-v-fcae9202"]])},data:()=>({cardData:{},current:0,tabCurrent:0,key:+new Date,tabsClass:"",activeItemStyle:{"background-color":"#fff"}}),created(){if("tab"===this.item.jnpfKey){const t=this.item.children;for(let e=0;e[r.item.show&&"card"===r.item.jnpfKey?(t(),e(g,{key:0,class:"u-m-b-20"},{default:i((()=>[a(m,{cardData:r.item},{content:i((()=>[a(g,{class:"card-inner u-p-l-8 u-p-r-8 u-p-t-8"},{default:i((()=>[(t(!0),y(w,null,S(r.item.children,((i,o)=>(t(),e(u,{item:i,key:o},null,8,["item"])))),128))])),_:1})])),_:1},8,["cardData"])])),_:1})):n("",!0),r.item.show&&"rankList"===r.item.jnpfKey?(t(),e(g,{key:1,class:"u-m-b-20"},{default:i((()=>[a(m,{cardData:r.item},{content:i((()=>[a(x,{config:r.item},null,8,["config"])])),_:1},8,["cardData"])])),_:1})):n("",!0),r.item.show&&"text"===r.item.jnpfKey?(t(),e(g,{key:2,class:"u-m-b-20"},{default:i((()=>[a(m,{cardData:r.item},{content:i((()=>[a(b,{config:r.item},null,8,["config"])])),_:1},8,["cardData"])])),_:1})):n("",!0),r.item.show&&"image"===r.item.jnpfKey?(t(),e(g,{key:3,class:"u-m-b-20"},{default:i((()=>[a(m,{cardData:r.item},{content:i((()=>[a(v,{config:r.item},null,8,["config"])])),_:1},8,["cardData"])])),_:1})):n("",!0),r.item.show&&"carousel"===r.item.jnpfKey?(t(),e(g,{key:4,class:"u-m-b-20"},{default:i((()=>[a(m,{cardData:r.item},{content:i((()=>[a(T,{config:r.item},null,8,["config"])])),_:1},8,["cardData"])])),_:1})):n("",!0),r.item.show&&"video"===r.item.jnpfKey?(t(),e(g,{key:5,class:"u-m-b-20"},{default:i((()=>[a(m,{cardData:r.item},{content:i((()=>[a(C,{config:r.item},null,8,["config"])])),_:1},8,["cardData"])])),_:1})):n("",!0),!r.item.show||"barChart"!==r.item.jnpfKey&&"lineChart"!==r.item.jnpfKey&&"pieChart"!==r.item.jnpfKey&&"radarChart"!=r.item.jnpfKey&&"mapChart"!==r.item.jnpfKey?n("",!0):(t(),e(g,{key:6,class:"u-m-b-20"},{default:i((()=>[a(m,{cardData:r.item},{content:i((()=>[(t(),e(A,{config:r.item,key:h.key},null,8,["config"]))])),_:1},8,["cardData"])])),_:1})),r.item.show&&"customEcharts"===r.item.jnpfKey?(t(),e(g,{key:7,class:"u-m-b-20"},{default:i((()=>[a(m,{cardData:r.item},{content:i((()=>[(t(),e(k,{config:r.item,key:h.key},null,8,["config"]))])),_:1},8,["cardData"])])),_:1})):n("",!0),r.item.show&&"todo"===r.item.jnpfKey?(t(),e(g,{key:8,class:"u-m-b-20"},{default:i((()=>[a(m,{cardData:r.item},{content:i((()=>[(t(),e(D,{config:r.item,key:h.key},null,8,["config"]))])),_:1},8,["cardData"])])),_:1})):n("",!0),r.item.show&&"dataBoard"===r.item.jnpfKey?(t(),e(g,{key:9,class:"u-m-b-20"},{default:i((()=>[a(m,{cardData:r.item},{content:i((()=>[(t(),e(_,{config:r.item,key:h.key},null,8,["config"]))])),_:1},8,["cardData"])])),_:1})):n("",!0),r.item.show&&"commonFunc"===r.item.jnpfKey?(t(),e(g,{key:10,class:"u-m-b-20"},{default:i((()=>[a(m,{cardData:r.item},{content:i((()=>[(t(),e(P,{config:r.item,key:h.key},null,8,["config"]))])),_:1},8,["cardData"])])),_:1})):n("",!0),r.item.show&&"timeAxis"===r.item.jnpfKey?(t(),e(g,{key:11,class:"u-m-b-20"},{default:i((()=>[a(m,{cardData:r.item},{content:i((()=>[a(L,{config:r.item},null,8,["config"])])),_:1},8,["cardData"])])),_:1})):n("",!0),r.item.show&&"tableList"===r.item.jnpfKey?(t(),e(g,{key:12,class:"u-m-b-20"},{default:i((()=>[a(m,{cardData:r.item},{content:i((()=>[a(I,{config:r.item},null,8,["config"])])),_:1},8,["cardData"])])),_:1})):n("",!0),r.item.show&&"schedule"===r.item.jnpfKey?(t(),e(g,{key:13,class:"u-m-b-20"},{default:i((()=>[a(m,{cardData:r.item},{content:i((()=>[a(M,{config:r.item},null,8,["config"])])),_:1},8,["cardData"])])),_:1})):n("",!0),r.item.show&&"todoList"===r.item.jnpfKey?(t(),e(g,{key:14,class:"u-m-b-20"},{default:i((()=>[a(m,{cardData:r.item},{content:i((()=>[a(F,{config:r.item},null,8,["config"])])),_:1},8,["cardData"])])),_:1})):n("",!0),r.item.show&&"email"===r.item.jnpfKey?(t(),e(g,{key:15,class:"u-m-b-20"},{default:i((()=>[a(m,{cardData:r.item},{content:i((()=>[a(O,{config:r.item},null,8,["config"])])),_:1},8,["cardData"])])),_:1})):n("",!0),r.item.show&&"notice"===r.item.jnpfKey?(t(),e(g,{key:16,class:"u-m-b-20"},{default:i((()=>[a(m,{cardData:r.item},{content:i((()=>[a(E,{config:r.item},null,8,["config"])])),_:1},8,["cardData"])])),_:1})):n("",!0),r.item.show&&"tab"===r.item.jnpfKey?(t(),e(g,{key:17,class:"u-m-b-20",style:{"background-color":"#ffffff"}},{default:i((()=>[a(R,{list:r.item.children,name:"title","is-scroll":r.item.children.length>3,current:h.tabCurrent,onChange:p.onTabChange,"show-bar":!r.item.type,class:c(h.tabsClass),"inactive-color":"border-card"===r.item.type?" #9ea1a6":"#303133","active-item-style":h.activeItemStyle,"bg-color":"border-card"===r.item.type?"#f5f7fa":"#fff"},null,8,["list","is-scroll","current","onChange","show-bar","class","inactive-color","active-item-style","bg-color"]),(t(!0),y(w,null,S(r.item.children,((o,n)=>(t(),e(g,{key:n,class:"tab-inner u-p-l-8 u-p-r-8 u-p-b-8 u-p-t-8"},{default:i((()=>[ot(a(g,null,{default:i((()=>[(t(!0),y(w,null,S(o.children,((i,o)=>(t(),e(u,{item:i,key:o},null,8,["item"])))),128))])),_:2},1536),[[at,n==h.tabCurrent]])])),_:2},1024)))),128))])),_:1})):n("",!0)])),_:1})}]]);export{It as H,ms as _,Qs as p};