"use weex:vue";

if (typeof Promise !== 'undefined' && !Promise.prototype.finally) {
  Promise.prototype.finally = function(callback) {
    const promise = this.constructor
    return this.then(
      value => promise.resolve(callback()).then(() => value),
      reason => promise.resolve(callback()).then(() => {
        throw reason
      })
    )
  }
};

if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
  const global = uni.requireGlobal()
  ArrayBuffer = global.ArrayBuffer
  Int8Array = global.Int8Array
  Uint8Array = global.Uint8Array
  Uint8ClampedArray = global.Uint8ClampedArray
  Int16Array = global.Int16Array
  Uint16Array = global.Uint16Array
  Int32Array = global.Int32Array
  Uint32Array = global.Uint32Array
  Float32Array = global.Float32Array
  Float64Array = global.Float64Array
  BigInt64Array = global.BigInt64Array
  BigUint64Array = global.BigUint64Array
};


(()=>{var li=Object.create;var Ye=Object.defineProperty,ui=Object.defineProperties,di=Object.getOwnPropertyDescriptor,hi=Object.getOwnPropertyDescriptors,pi=Object.getOwnPropertyNames,Ut=Object.getOwnPropertySymbols,gi=Object.getPrototypeOf,jt=Object.prototype.hasOwnProperty,fi=Object.prototype.propertyIsEnumerable;var Mt=(n,e,t)=>e in n?Ye(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,B=(n,e)=>{for(var t in e||(e={}))jt.call(e,t)&&Mt(n,t,e[t]);if(Ut)for(var t of Ut(e))fi.call(e,t)&&Mt(n,t,e[t]);return n},j=(n,e)=>ui(n,hi(e));var mi=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var yi=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of pi(e))!jt.call(n,s)&&s!==t&&Ye(n,s,{get:()=>e[s],enumerable:!(i=di(e,s))||i.enumerable});return n};var ce=(n,e,t)=>(t=n!=null?li(gi(n)):{},yi(e||!n||!n.__esModule?Ye(t,"default",{value:n,enumerable:!0}):t,n));var E=(n,e,t)=>new Promise((i,s)=>{var o=l=>{try{r(t.next(l))}catch(c){s(c)}},a=l=>{try{r(t.throw(l))}catch(c){s(c)}},r=l=>l.done?i(l.value):Promise.resolve(l.value).then(o,a);r((t=t.apply(n,e)).next())});var te=mi((Ao,qt)=>{qt.exports=Vue});var L=ce(te());var Y=(n,e)=>{let t=n.__vccOpts||n;for(let[i,s]of e)t[i]=s;return t};var vi={"uni-card":{"":{marginTop:10,marginRight:10,marginBottom:10,marginLeft:10,paddingTop:0,paddingRight:8,paddingBottom:0,paddingLeft:8,borderRadius:4,overflow:"hidden",fontFamily:"Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif",backgroundColor:"#ffffff",flex:1}},"uni-card__cover":{".uni-card ":{position:"relative",marginTop:10,flexDirection:"row",overflow:"hidden",borderRadius:4}},"uni-card__cover-image":{".uni-card .uni-card__cover ":{flex:1}},"uni-card__header":{".uni-card ":{display:"flex",borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"#EBEEF5",flexDirection:"row",alignItems:"center",paddingTop:10,paddingRight:10,paddingBottom:10,paddingLeft:10,overflow:"hidden"}},"uni-card__header-box":{".uni-card .uni-card__header ":{flex:1,flexDirection:"row",alignItems:"center",overflow:"hidden"}},"uni-card__header-avatar":{".uni-card .uni-card__header ":{width:40,height:40,overflow:"hidden",borderRadius:5,marginRight:10}},"uni-card__header-avatar-image":{".uni-card .uni-card__header .uni-card__header-avatar ":{flex:1,width:40,height:40}},"uni-card__header-content":{".uni-card .uni-card__header ":{flexDirection:"column",justifyContent:"center",flex:1,overflow:"hidden"}},"uni-card__header-content-title":{".uni-card .uni-card__header .uni-card__header-content ":{fontSize:15,color:"#3a3a3a"}},"uni-card__header-content-subtitle":{".uni-card .uni-card__header .uni-card__header-content ":{fontSize:12,marginTop:5,color:"#909399"}},"uni-card__header-extra":{".uni-card .uni-card__header ":{lineHeight:12}},"uni-card__header-extra-text":{".uni-card .uni-card__header .uni-card__header-extra ":{fontSize:12,color:"#909399"}},"uni-card__content":{".uni-card ":{paddingTop:10,paddingRight:10,paddingBottom:10,paddingLeft:10,fontSize:14,color:"#6a6a6a",lineHeight:22}},"uni-card__actions":{".uni-card ":{fontSize:12}},"uni-card--border":{"":{borderWidth:1,borderStyle:"solid",borderColor:"#EBEEF5"}},"uni-card--shadow":{"":{position:"relative"}},"uni-card--full":{"":{marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,borderLeftWidth:0,borderRadius:0}},"uni-ellipsis":{"":{lines:1}}},_i={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(n){this.$emit("click",n)}}};function Ti(n,e,t,i,s,o){return(0,L.openBlock)(),(0,L.createElementBlock)("view",{class:(0,L.normalizeClass)(["uni-card",{"uni-card--full":t.isFull,"uni-card--shadow":t.isShadow,"uni-card--border":t.border}]),style:(0,L.normalizeStyle)({margin:t.isFull?0:t.margin,padding:t.spacing,"box-shadow":t.isShadow?t.shadow:""}),renderWhole:!0},[(0,L.renderSlot)(n.$slots,"cover",{},()=>[t.cover?((0,L.openBlock)(),(0,L.createElementBlock)("view",{key:0,class:"uni-card__cover"},[(0,L.createElementVNode)("u-image",{class:"uni-card__cover-image",mode:"widthFix",onClick:e[0]||(e[0]=a=>o.onClick("cover")),src:t.cover},null,8,["src"])])):(0,L.createCommentVNode)("",!0)]),(0,L.renderSlot)(n.$slots,"title",{},()=>[t.title||t.extra?((0,L.openBlock)(),(0,L.createElementBlock)("view",{key:0,class:"uni-card__header"},[(0,L.createElementVNode)("view",{class:"uni-card__header-box",onClick:e[1]||(e[1]=a=>o.onClick("title"))},[t.thumbnail?((0,L.openBlock)(),(0,L.createElementBlock)("view",{key:0,class:"uni-card__header-avatar"},[(0,L.createElementVNode)("u-image",{class:"uni-card__header-avatar-image",src:t.thumbnail,mode:"aspectFit"},null,8,["src"])])):(0,L.createCommentVNode)("",!0),(0,L.createElementVNode)("view",{class:"uni-card__header-content"},[(0,L.createElementVNode)("u-text",{class:"uni-card__header-content-title uni-ellipsis"},(0,L.toDisplayString)(t.title),1),t.title&&t.subTitle?((0,L.openBlock)(),(0,L.createElementBlock)("u-text",{key:0,class:"uni-card__header-content-subtitle uni-ellipsis"},(0,L.toDisplayString)(t.subTitle),1)):(0,L.createCommentVNode)("",!0)])]),(0,L.createElementVNode)("view",{class:"uni-card__header-extra",onClick:e[2]||(e[2]=a=>o.onClick("extra"))},[(0,L.createElementVNode)("u-text",{class:"uni-card__header-extra-text"},(0,L.toDisplayString)(t.extra),1)])])):(0,L.createCommentVNode)("",!0)]),(0,L.createElementVNode)("view",{class:"uni-card__content",style:(0,L.normalizeStyle)({padding:t.padding}),onClick:e[3]||(e[3]=a=>o.onClick("content"))},[(0,L.renderSlot)(n.$slots,"default")],4),(0,L.createElementVNode)("view",{class:"uni-card__actions",onClick:e[4]||(e[4]=a=>o.onClick("actions"))},[(0,L.renderSlot)(n.$slots,"actions")])],6)}var Vt=Y(_i,[["render",Ti],["styles",[vi]]]);var P=ce(te());var Lo=ce(te());function pe(n,e){return typeof n=="string"?e:n}var Bo=ce(te());var bi={path:"windows/left-window.vue",style:{width:"350px"}},wi={path:"windows/top-window.vue",style:{height:"60px"}},xi=[{path:"pages/tabBar/component/component",style:{navigationBarTitleText:"\u5185\u7F6E\u7EC4\u4EF6","app-plus":{bounce:"vertical",titleNView:{buttons:[{text:"\uE534",fontSrc:"/static/uni.ttf",fontSize:"22px",color:"#FFFFFF"}]}}}},{path:"pages/tabBar/API/API",style:{navigationBarTitleText:"\u63A5\u53E3","app-plus":{titleNView:{buttons:[{text:"\uE534",fontSrc:"/static/uni.ttf",fontSize:"22px",color:"#FFFFFF"}]}}}},{path:"pages/tabBar/template/template",style:{navigationBarTitleText:"\u6A21\u7248","app-plus":{titleNView:{buttons:[{text:"\uE534",fontSrc:"/static/uni.ttf",fontSize:"22px",color:"#FFFFFF"}]}}}},{path:"pages/tabBar/extUI/extUI",style:{navigationBarTitleText:"\u6269\u5C55\u7EC4\u4EF6","app-plus":{titleNView:{buttons:[{text:"\uE534",fontSrc:"/static/uni.ttf",fontSize:"22px",color:"#FFFFFF"}]}}}},{path:"pages/component/view/view",style:{navigationBarTitleText:"view"}},{path:"pages/component/scroll-view/scroll-view",style:{navigationBarTitleText:"scroll-view"}},{path:"pages/component/swiper/swiper",style:{navigationBarTitleText:"swiper"}},{path:"pages/component/cover-view/cover-view",style:{navigationBarTitleText:"cover-view"}},{path:"pages/component/movable-view/movable-view",style:{navigationBarTitleText:"movable-view"}},{path:"pages/component/text/text",style:{navigationBarTitleText:"text"}},{path:"pages/component/rich-text/rich-text",style:{navigationBarTitleText:"rich-text"}},{path:"pages/component/progress/progress",style:{navigationBarTitleText:"progress"}},{path:"pages/component/button/button",style:{navigationBarTitleText:"button"}},{path:"pages/component/checkbox/checkbox",style:{navigationBarTitleText:"checkbox"}},{path:"pages/component/form/form",style:{navigationBarTitleText:"form"}},{path:"pages/component/input/input",style:{navigationBarTitleText:"input","app-plus":{softinputNavBar:"none"}}},{path:"pages/component/label/label",style:{navigationBarTitleText:"label"}},{path:"pages/component/picker/picker",style:{navigationBarTitleText:"picker"}},{path:"pages/component/picker-view/picker-view",style:{navigationBarTitleText:"picker-view"}},{path:"pages/component/radio/radio",style:{navigationBarTitleText:"radio"}},{path:"pages/component/slider/slider",style:{navigationBarTitleText:"slider"}},{path:"pages/component/switch/switch",style:{navigationBarTitleText:"switch"}},{path:"pages/component/textarea/textarea",style:{navigationBarTitleText:"textarea"}},{path:"pages/component/editor/editor",style:{navigationBarTitleText:"editor","app-plus":{softinputMode:"adjustResize"}}},{path:"pages/component/navigator/navigator",style:{navigationBarTitleText:"navigator"}},{path:"pages/component/navigator/navigate/navigate",style:{navigationBarTitleText:"navigatePage"}},{path:"pages/component/navigator/redirect/redirect",style:{navigationBarTitleText:"redirectPage"}},{path:"pages/component/image/image",style:{navigationBarTitleText:"image"}},{path:"pages/component/video/video",style:{navigationBarTitleText:"video"}},{path:"pages/component/map/map",style:{navigationBarTitleText:"map"}},{path:"pages/component/canvas/canvas",style:{navigationBarTitleText:"canvas"}},{path:"pages/component/web-view/web-view",style:{navigationBarTitleText:"web-view"}},{path:"pages/component/ad/ad",style:{navigationBarTitleText:"AD"}},{path:"pages/component/web-view-local/web-view-local",style:{}},{path:"pages/component/web-view-local/issue-17581",style:{navigationBarTitleText:"issue-17581"}},{path:"platforms/app-plus/speech/speech",style:{navigationBarTitleText:"\u8BED\u97F3\u8BC6\u522B"}},{path:"platforms/app-plus/orientation/orientation",style:{navigationBarTitleText:"\u65B9\u5411\u4F20\u611F\u5668"}},{path:"platforms/app-plus/proximity/proximity",style:{navigationBarTitleText:"\u8DDD\u79BB\u4F20\u611F\u5668"}},{path:"platforms/app-plus/push/push",style:{navigationBarTitleText:"\u63A8\u9001"}},{path:"platforms/app-plus/shake/shake",style:{navigationBarTitleText:"\u6447\u4E00\u6447"}},{path:"pages/about/about",style:{navigationBarTitleText:"\u5173\u4E8E"}},{path:"platforms/app-plus/feedback/feedback",style:{navigationBarTitleText:"\u95EE\u9898\u53CD\u9988"}},{path:"uni_modules/uni-upgrade-center-app/pages/upgrade-popup",style:{"app-plus":{animationDuration:200,animationType:"fade-in",background:"transparent",backgroundColorTop:"transparent",popGesture:"none",scrollIndicator:!1,titleNView:!1},disableScroll:!0}}],ki=[{root:"pages/API",pages:[{path:"login/login",style:{navigationBarTitleText:"\u6388\u6743\u767B\u5F55"}},{path:"subnvue/subnvue",style:{navigationBarTitleText:"\u539F\u751F\u5B50\u7A97\u4F53","app-plus":{subNVues:[{id:"drawer",path:"subnvue/subnvue/drawer",type:"popup",style:{width:"50%"}},{id:"popup",path:"subnvue/subnvue/popup",type:"popup",style:{margin:"auto",width:"80%",height:"600rpx"}},{id:"video_mask",path:"subnvue/subnvue/video-mask",style:{position:"absolute",bottom:"30px",left:"0",width:"230px",height:"110px",background:"transparent"}}]}}},{path:"get-user-info/get-user-info",style:{navigationBarTitleText:"\u83B7\u53D6\u7528\u6237\u4FE1\u606F"}},{path:"request-payment/request-payment",style:{navigationBarTitleText:"\u53D1\u8D77\u652F\u4ED8"}},{path:"share/share",style:{navigationBarTitleText:"\u5206\u4EAB"}},{path:"set-navigation-bar-title/set-navigation-bar-title",style:{navigationBarTitleText:"\u8BBE\u7F6E\u754C\u9762\u6807\u9898"}},{path:"show-loading/show-loading",style:{navigationBarTitleText:"\u52A0\u8F7D\u63D0\u793A\u6846"}},{path:"navigator/navigator",style:{navigationBarTitleText:"\u9875\u9762\u8DF3\u8F6C"}},{path:"navigator/new-page/new-vue-page-1",style:{navigationBarTitleText:"\u65B0VUE\u9875\u97621"}},{path:"navigator/new-page/new-vue-page-2",style:{navigationBarTitleText:"\u65B0VUE\u9875\u97622"}},{path:"pull-down-refresh/pull-down-refresh",style:{navigationBarTitleText:"\u4E0B\u62C9\u5237\u65B0",enablePullDownRefresh:!0}},{path:"animation/animation",style:{navigationBarTitleText:"\u521B\u5EFA\u52A8\u753B"}},{path:"get-node-info/get-node-info",style:{navigationBarTitleText:"\u8282\u70B9\u4FE1\u606F"}},{path:"intersection-observer/intersection-observer",style:{navigationBarTitleText:"\u8282\u70B9\u5E03\u5C40\u76F8\u4EA4\u72B6\u6001"}},{path:"canvas/canvas",style:{navigationBarTitleText:"\u521B\u5EFA\u7ED8\u753B"}},{path:"action-sheet/action-sheet",style:{navigationBarTitleText:"\u64CD\u4F5C\u83DC\u5355"}},{path:"modal/modal",style:{navigationBarTitleText:"\u6A21\u6001\u5F39\u7A97"}},{path:"toast/toast",style:{navigationBarTitleText:"\u6D88\u606F\u63D0\u793A\u6846"}},{path:"get-network-type/get-network-type",style:{navigationBarTitleText:"\u83B7\u53D6\u8BBE\u5907\u7F51\u7EDC\u72B6\u6001"}},{path:"get-system-info/get-system-info",style:{navigationBarTitleText:"\u83B7\u53D6\u8BBE\u5907\u7CFB\u7EDF\u4FE1\u606F"}},{path:"add-phone-contact/add-phone-contact",style:{navigationBarTitleText:"\u6DFB\u52A0\u624B\u673A\u8054\u7CFB\u4EBA"}},{path:"on-accelerometer-change/on-accelerometer-change",style:{navigationBarTitleText:"\u76D1\u542C\u52A0\u901F\u5EA6\u8BA1\u6570\u636E"}},{path:"on-compass-change/on-compass-change",style:{navigationBarTitleText:"\u76D1\u542C\u7F57\u76D8\u6570\u636E"}},{path:"make-phone-call/make-phone-call",style:{navigationBarTitleText:"\u6253\u7535\u8BDD"}},{path:"scan-code/scan-code",style:{navigationBarTitleText:"\u626B\u7801"}},{path:"clipboard/clipboard",style:{navigationBarTitleText:"\u526A\u8D34\u677F"}},{path:"request/request",style:{navigationBarTitleText:"\u7F51\u7EDC\u8BF7\u6C42"}},{path:"upload-file/upload-file",style:{navigationBarTitleText:"\u4E0A\u4F20\u6587\u4EF6"}},{path:"download-file/download-file",style:{navigationBarTitleText:"\u4E0B\u8F7D\u6587\u4EF6"}},{path:"image/image",style:{navigationBarTitleText:"\u56FE\u7247"}},{path:"voice/voice",style:{navigationBarTitleText:"\u5F55\u97F3"}},{path:"inner-audio/inner-audio",style:{navigationBarTitleText:"\u97F3\u9891"}},{path:"background-audio/background-audio",style:{navigationBarTitleText:"\u80CC\u666F\u97F3\u9891"}},{path:"video/video",style:{navigationBarTitleText:"\u89C6\u9891"}},{path:"file/file",style:{navigationBarTitleText:"\u6587\u4EF6"}},{path:"map/map",style:{navigationBarTitleText:"map"}},{path:"map-search/map-search",style:{navigationBarTitleText:"map search"}},{path:"get-location/get-location",style:{navigationBarTitleText:"\u83B7\u53D6\u4F4D\u7F6E"}},{path:"open-location/open-location",style:{navigationBarTitleText:"\u67E5\u770B\u4F4D\u7F6E"}},{path:"choose-location/choose-location",style:{navigationBarTitleText:"\u4F7F\u7528\u5730\u56FE\u9009\u62E9\u4F4D\u7F6E"}},{path:"storage/storage",style:{navigationBarTitleText:"\u6570\u636E\u5B58\u50A8"}},{path:"sqlite/sqlite",style:{navigationBarTitleText:"SQLite"}},{path:"rewarded-video-ad/rewarded-video-ad",style:{navigationBarTitleText:"\u6FC0\u52B1\u89C6\u9891\u5E7F\u544A"}},{path:"full-screen-video-ad/full-screen-video-ad",style:{navigationBarTitleText:"\u5168\u5C4F\u89C6\u9891\u5E7F\u544A"}},{path:"brightness/brightness",style:{navigationBarTitleText:"\u5C4F\u5E55\u4EAE\u5EA6"}},{path:"save-media/save-media",style:{navigationBarTitleText:"\u4FDD\u5B58\u5A92\u4F53\u5230\u672C\u5730"}},{path:"bluetooth/bluetooth",style:{navigationBarTitleText:"\u84DD\u7259"}},{path:"soter/soter",style:{navigationBarTitleText:"\u751F\u7269\u8BA4\u8BC1"}},{path:"ibeacon/ibeacon",style:{navigationBarTitleText:"iBeacon"}},{path:"vibrate/vibrate",style:{navigationBarTitleText:"\u9707\u52A8"}},{path:"websocket-socketTask/websocket-socketTask",style:{navigationBarTitleText:"websocket-socketTask"}},{path:"websocket-global/websocket-global",style:{navigationBarTitleText:"websocket-global"}}]},{root:"pages/extUI",pages:[{path:"forms/forms",style:{navigationBarTitleText:"Form \u8868\u5355"}},{path:"group/group",style:{navigationBarTitleText:"Group \u5206\u7EC4"}},{path:"badge/badge",style:{navigationBarTitleText:"Badge \u6570\u5B57\u89D2\u6807"}},{path:"breadcrumb/breadcrumb",style:{navigationBarTitleText:"Breadcrumb \u9762\u5305\u5C51"}},{path:"countdown/countdown",style:{navigationBarTitleText:"Countdown \u5012\u8BA1\u65F6"}},{path:"drawer/drawer",style:{navigationBarTitleText:"Drawer \u62BD\u5C49"}},{path:"icons/icons",style:{navigationBarTitleText:"Icons \u56FE\u6807"}},{path:"load-more/load-more",style:{navigationBarTitleText:"LoadMore \u52A0\u8F7D\u66F4\u591A"}},{path:"nav-bar/nav-bar",style:{navigationBarTitleText:"NavBar \u5BFC\u822A\u680F",navigationStyle:"custom",enablePullDownRefresh:!0,"app-plus":{titleNView:!1,bounce:"none",pullToRefresh:{style:"circle",offset:"70px"}}}},{path:"number-box/number-box",style:{navigationBarTitleText:"NumberBox \u6570\u5B57\u8F93\u5165\u6846"}},{path:"popup/popup",style:{navigationBarTitleText:"Popup \u5F39\u51FA\u5C42","app-plus":{softinputMode:"adjustResize"}}},{path:"segmented-control/segmented-control",style:{navigationBarTitleText:"SegmentedControl \u5206\u6BB5\u5668"}},{path:"tag/tag",style:{navigationBarTitleText:"Tag \u6807\u7B7E"}},{path:"list/list",style:{navigationBarTitleText:"List \u5217\u8868"}},{path:"card/card",style:{navigationBarTitleText:"Card \u5361\u7247"}},{path:"collapse/collapse",style:{navigationBarTitleText:"Collapse \u6298\u53E0\u9762\u677F"}},{path:"pagination/pagination",style:{navigationBarTitleText:"Pagination \u5206\u9875\u5668"}},{path:"swiper-dot/swiper-dot",style:{navigationBarTitleText:"SwiperDot \u8F6E\u64AD\u56FE\u6307\u793A\u70B9","mp-baidu":{disableSwipeBack:!0}}},{path:"grid/grid",style:{navigationBarTitleText:"Grid \u5BAB\u683C"}},{path:"rate/rate",style:{navigationBarTitleText:"Rate \u8BC4\u5206"}},{path:"steps/steps",style:{navigationBarTitleText:"Steps \u6B65\u9AA4\u6761"}},{path:"notice-bar/notice-bar",style:{navigationBarTitleText:"NoticeBar \u901A\u544A\u680F"}},{path:"swipe-action/swipe-action",style:{navigationBarTitleText:"SwipeAction \u6ED1\u52A8\u64CD\u4F5C","app-plus":{bounce:"none"}}},{path:"search-bar/search-bar",style:{navigationBarTitleText:"SearchBar \u641C\u7D22\u680F"}},{path:"calendar/calendar",style:{navigationBarTitleText:"Calendar \u65E5\u5386"}},{path:"indexed-list/indexed-list",style:{navigationBarTitleText:"IndexedList \u7D22\u5F15\u5217\u8868","mp-weixin":{disableScroll:!0},"app-plus":{bounce:"none"},"mp-alipay":{allowsBounceVertical:"NO"},"mp-baidu":{disableScroll:!0}}},{path:"fab/fab",style:{navigationBarTitleText:"Fab \u60AC\u6D6E\u6309\u94AE"}},{path:"fav/fav",style:{navigationBarTitleText:"Fav \u6536\u85CF\u6309\u94AE"}},{path:"goods-nav/goods-nav",style:{navigationBarTitleText:"GoodsNav \u5546\u54C1\u5BFC\u822A"}},{path:"section/section",style:{navigationBarTitleText:"Section \u6807\u9898\u680F"}},{path:"transition/transition",style:{navigationBarTitleText:"Transition \u8FC7\u6E21\u52A8\u753B"}},{path:"title/title",style:{navigationBarTitleText:"Title \u7AE0\u8282\u6807\u9898"}},{path:"tooltip/tooltip",style:{navigationBarTitleText:"Tooltip \u6587\u5B57\u63D0\u793A"}},{path:"link/link",style:{navigationBarTitleText:"Link \u94FE\u63A5"}},{path:"combox/combox",style:{navigationBarTitleText:"Combox \u7EC4\u5408\u6846"}},{path:"list/chat",style:{}},{path:"table/table",style:{navigationBarTitleText:"",enablePullDownRefresh:!1}},{path:"dateformat/dateformat",style:{navigationBarTitleText:"Dateformat \u65E5\u671F\u683C\u5F0F\u5316",enablePullDownRefresh:!1}},{path:"data-checkbox/data-checkbox",style:{navigationBarTitleText:"DataCheckbox \u5355\u9009\u590D\u9009\u6846",enablePullDownRefresh:!1}},{path:"easyinput/easyinput",style:{navigationBarTitleText:"Easyinput \u589E\u5F3A\u8F93\u5165\u6846",enablePullDownRefresh:!1}},{path:"data-picker/data-picker",style:{navigationBarTitleText:"DataPicker \u7EA7\u8054\u9009\u62E9",enablePullDownRefresh:!1}},{path:"data-select/data-select",style:{navigationBarTitleText:"DataSelect \u4E0B\u62C9\u6846",enablePullDownRefresh:!1}},{path:"datetime-picker/datetime-picker",style:{navigationBarTitleText:"DatetimePicker \u65E5\u671F\u65F6\u95F4",enablePullDownRefresh:!1}},{path:"row/row",style:{navigationBarTitleText:"Layout \u5E03\u5C40",enablePullDownRefresh:!1}},{path:"file-picker/file-picker",style:{navigationBarTitleText:"FilePicker \u6587\u4EF6\u9009\u62E9\u4E0A\u4F20",enablePullDownRefresh:!1}},{path:"space/space",style:{navigationBarTitleText:"\u95F4\u8DDD",enablePullDownRefresh:!1}},{path:"font/font",style:{navigationBarTitleText:"\u5B57\u4F53",enablePullDownRefresh:!1}},{path:"color/color",style:{navigationBarTitleText:"\u989C\u8272",enablePullDownRefresh:!1}},{path:"radius/radius",style:{navigationBarTitleText:"\u5706\u89D2",enablePullDownRefresh:!1}},{path:"button/button",style:{navigationBarTitleText:"",enablePullDownRefresh:!1}}]},{root:"pages/template",pages:[{path:"nav-default/nav-default",style:{navigationBarTitleText:"\u9ED8\u8BA4\u5BFC\u822A\u680F"}},{path:"component-communication/component-communication",style:{navigationBarTitleText:"\u7EC4\u4EF6\u901A\u8BAF"}},{path:"nav-transparent/nav-transparent",style:{navigationBarTitleText:"\u900F\u660E\u6E10\u53D8\u5BFC\u822A\u680F",transparentTitle:"auto"}},{path:"nav-button/nav-button",style:{navigationBarTitleText:"\u5BFC\u822A\u680F\u5E26\u81EA\u5B9A\u4E49\u6309\u94AE","app-plus":{titleNView:{buttons:[{type:"share"},{type:"favorite"}]}}}},{path:"nav-image/nav-image",style:{navigationBarBackgroundColor:"#FFFFFF",navigationBarTextStyle:"black",titleImage:"https://web-assets.dcloud.net.cn/unidoc/zh/logo1@2x.png"}},{path:"nav-city-dropdown/nav-city-dropdown",style:{navigationBarTitleText:"\u5BFC\u822A\u680F\u5E26\u57CE\u5E02\u9009\u62E9","app-plus":{titleNView:{buttons:[{text:"\u5317\u4EAC\u5E02",fontSize:"14",select:!0,width:"auto"}]}}}},{path:"nav-dot/nav-dot",style:{navigationBarTitleText:"\u5BFC\u822A\u680F\u5E26\u7EA2\u70B9\u548C\u89D2\u6807","app-plus":{titleNView:{buttons:[{text:"\u6D88\u606F",fontSize:"14",redDot:!0},{text:"\u5173\u6CE8",fontSize:"14",badgeText:"12"}]}}}},{path:"nav-search-input/nav-search-input",style:{navigationBarTitleText:"\u5BFC\u822A\u680F\u5E26\u641C\u7D22\u6846","app-plus":{titleNView:{type:"transparent",titleColor:"#fff",backgroundColor:"#007AFF",buttons:[{fontSrc:"/static/uni.ttf",text:"\uE537",width:"40px",fontSize:"28px",color:"#fff",background:"rgba(0,0,0,0)"}],searchInput:{backgroundColor:"#fff",borderRadius:"6px",placeholder:"\u8BF7\u8F93\u5165\u5730\u5740 \u5982\uFF1A\u5927\u949F\u5BFA",disabled:!0}}}}},{path:"nav-search-input/detail/detail",style:{navigationBarTitleText:"\u641C\u7D22","app-plus":{titleNView:{titleColor:"#fff",backgroundColor:"#007AFF",buttons:[{fontSrc:"/static/uni.ttf",text:"\uE537",width:"auto",fontSize:"28px",color:"#fff"}],searchInput:{backgroundColor:"#fff",borderRadius:"6px",placeholder:"\u8BF7\u8F93\u5165\u5730\u5740 \u5982\uFF1A\u5927\u949F\u5BFA",autoFocus:!0}}}}},{path:"list2detail-list/list2detail-list",style:{navigationBarTitleText:"\u5217\u8868\u5230\u8BE6\u60C5\u793A\u4F8B",enablePullDownRefresh:!0}},{path:"list2detail-detail/list2detail-detail",style:{navigationBarTitleText:"\u8BE6\u60C5","app-plus":{titleNView:{type:"transparent",buttons:[{type:"share"}]}},h5:{titleNView:{type:"transparent",buttons:[]}}}},{path:"tabbar/tabbar",style:{navigationBarTitleText:"\u53EF\u62D6\u52A8\u9876\u90E8\u9009\u9879\u5361"}},{path:"tabbar/detail/detail",style:{navigationBarTitleText:"\u8BE6\u60C5\u9875\u9762"}},{path:"swiper-vertical/swiper-vertical",style:{navigationBarTitleText:"\u4E0A\u4E0B\u6ED1\u52A8\u5207\u6362\u89C6\u9891","app-plus":{titleNView:!1}}},{path:"swiper-list/swiper-list",style:{navigationBarTitleText:"swiper-list"}},{path:"swiper-list-nvue/swiper-list-nvue",style:{navigationBarTitleText:"swiper-list"}},{path:"scheme/scheme",style:{navigationBarTitleText:"\u6253\u5F00\u5916\u90E8\u5E94\u7528"}},{path:"renderjs/renderjs",style:{navigationBarTitleText:"renderjs"}},{path:"global/global",style:{navigationBarTitleText:"GlobalData\u548Cvuex"}},{path:"pinia/pinia",style:{navigationBarTitleText:"pinia"}},{path:"vuex-nvue/vuex-nvue",style:{navigationBarTitleText:"vuex-nvue"}},{path:"vuex-vue/vuex-vue",style:{navigationBarTitleText:"vuex-vue"}},{path:"crypto-api/crypto-api",style:{navigationBarTitleText:"crypto"}}]}],Si={pageOrientation:"portrait",navigationBarTitleText:"Hello uniapp",navigationBarTextStyle:"white",navigationBarBackgroundColor:"#007AFF",backgroundColor:"#F8F8F8",backgroundColorTop:"#F4F5F6",backgroundColorBottom:"#F4F5F6","mp-360":{navigationStyle:"custom"},h5:{maxWidth:1190,navigationBarTextStyle:"black",navigationBarBackgroundColor:"#F1F1F1"}},Ii={color:"#7A7E83",selectedColor:"#007AFF",borderStyle:"black",backgroundColor:"#F8F8F8",list:[{pagePath:"pages/tabBar/component/component",iconPath:"static/component.png",selectedIconPath:"static/componentHL.png",text:"\u5185\u7F6E\u7EC4\u4EF6"},{pagePath:"pages/tabBar/API/API",iconPath:"static/api.png",selectedIconPath:"static/apiHL.png",text:"\u63A5\u53E3"},{pagePath:"pages/tabBar/extUI/extUI",iconPath:"static/extui.png",selectedIconPath:"static/extuiHL.png",text:"\u6269\u5C55\u7EC4\u4EF6"},{pagePath:"pages/tabBar/template/template",iconPath:"static/template.png",selectedIconPath:"static/templateHL.png",text:"\u6A21\u677F"}]},mn={leftWindow:bi,topWindow:wi,pages:xi,subPackages:ki,globalStyle:Si,tabBar:Ii},Ai=[];function Ci(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Z(n,e,t){return n(t={path:e,exports:{},require:function(i,s){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(s==null&&t.path)}},t.exports),t.exports}var Ei=Z(function(n,e){var t;n.exports=(t=t||function(i,s){var o=Object.create||function(){function u(){}return function(g){var y;return u.prototype=g,y=new u,u.prototype=null,y}}(),a={},r=a.lib={},l=r.Base={extend:function(u){var g=o(this);return u&&g.mixIn(u),g.hasOwnProperty("init")&&this.init!==g.init||(g.init=function(){g.$super.init.apply(this,arguments)}),g.init.prototype=g,g.$super=this,g},create:function(){var u=this.extend();return u.init.apply(u,arguments),u},init:function(){},mixIn:function(u){for(var g in u)u.hasOwnProperty(g)&&(this[g]=u[g]);u.hasOwnProperty("toString")&&(this.toString=u.toString)},clone:function(){return this.init.prototype.extend(this)}},c=r.WordArray=l.extend({init:function(u,g){u=this.words=u||[],this.sigBytes=g!=s?g:4*u.length},toString:function(u){return(u||d).stringify(this)},concat:function(u){var g=this.words,y=u.words,v=this.sigBytes,b=u.sigBytes;if(this.clamp(),v%4)for(var I=0;I<b;I++){var C=y[I>>>2]>>>24-I%4*8&255;g[v+I>>>2]|=C<<24-(v+I)%4*8}else for(I=0;I<b;I+=4)g[v+I>>>2]=y[I>>>2];return this.sigBytes+=b,this},clamp:function(){var u=this.words,g=this.sigBytes;u[g>>>2]&=4294967295<<32-g%4*8,u.length=i.ceil(g/4)},clone:function(){var u=l.clone.call(this);return u.words=this.words.slice(0),u},random:function(u){for(var g,y=[],v=function(C){var R=987654321,O=4294967295;return function(){var M=((R=36969*(65535&R)+(R>>16)&O)<<16)+(C=18e3*(65535&C)+(C>>16)&O)&O;return M/=4294967296,(M+=.5)*(i.random()>.5?1:-1)}},b=0;b<u;b+=4){var I=v(4294967296*(g||i.random()));g=987654071*I(),y.push(4294967296*I()|0)}return new c.init(y,u)}}),f=a.enc={},d=f.Hex={stringify:function(u){for(var g=u.words,y=u.sigBytes,v=[],b=0;b<y;b++){var I=g[b>>>2]>>>24-b%4*8&255;v.push((I>>>4).toString(16)),v.push((15&I).toString(16))}return v.join("")},parse:function(u){for(var g=u.length,y=[],v=0;v<g;v+=2)y[v>>>3]|=parseInt(u.substr(v,2),16)<<24-v%8*4;return new c.init(y,g/2)}},p=f.Latin1={stringify:function(u){for(var g=u.words,y=u.sigBytes,v=[],b=0;b<y;b++){var I=g[b>>>2]>>>24-b%4*8&255;v.push(String.fromCharCode(I))}return v.join("")},parse:function(u){for(var g=u.length,y=[],v=0;v<g;v++)y[v>>>2]|=(255&u.charCodeAt(v))<<24-v%4*8;return new c.init(y,g)}},m=f.Utf8={stringify:function(u){try{return decodeURIComponent(escape(p.stringify(u)))}catch(g){throw new Error("Malformed UTF-8 data")}},parse:function(u){return p.parse(unescape(encodeURIComponent(u)))}},_=r.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(u){typeof u=="string"&&(u=m.parse(u)),this._data.concat(u),this._nDataBytes+=u.sigBytes},_process:function(u){var g=this._data,y=g.words,v=g.sigBytes,b=this.blockSize,I=v/(4*b),C=(I=u?i.ceil(I):i.max((0|I)-this._minBufferSize,0))*b,R=i.min(4*C,v);if(C){for(var O=0;O<C;O+=b)this._doProcessBlock(y,O);var M=y.splice(0,C);g.sigBytes-=R}return new c.init(M,R)},clone:function(){var u=l.clone.call(this);return u._data=this._data.clone(),u},_minBufferSize:0});r.Hasher=_.extend({cfg:l.extend(),init:function(u){this.cfg=this.cfg.extend(u),this.reset()},reset:function(){_.reset.call(this),this._doReset()},update:function(u){return this._append(u),this._process(),this},finalize:function(u){return u&&this._append(u),this._doFinalize()},blockSize:16,_createHelper:function(u){return function(g,y){return new u.init(y).finalize(g)}},_createHmacHelper:function(u){return function(g,y){return new h.HMAC.init(u,y).finalize(g)}}});var h=a.algo={};return a}(Math),t)}),se=Ei,Pi=(Z(function(n,e){var t;n.exports=(t=se,function(i){var s=t,o=s.lib,a=o.WordArray,r=o.Hasher,l=s.algo,c=[];(function(){for(var h=0;h<64;h++)c[h]=4294967296*i.abs(i.sin(h+1))|0})();var f=l.MD5=r.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,u){for(var g=0;g<16;g++){var y=u+g,v=h[y];h[y]=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8)}var b=this._hash.words,I=h[u+0],C=h[u+1],R=h[u+2],O=h[u+3],M=h[u+4],$=h[u+5],W=h[u+6],ae=h[u+7],ee=h[u+8],he=h[u+9],re=h[u+10],Le=h[u+11],Oe=h[u+12],Be=h[u+13],De=h[u+14],Re=h[u+15],w=b[0],S=b[1],x=b[2],k=b[3];w=d(w,S,x,k,I,7,c[0]),k=d(k,w,S,x,C,12,c[1]),x=d(x,k,w,S,R,17,c[2]),S=d(S,x,k,w,O,22,c[3]),w=d(w,S,x,k,M,7,c[4]),k=d(k,w,S,x,$,12,c[5]),x=d(x,k,w,S,W,17,c[6]),S=d(S,x,k,w,ae,22,c[7]),w=d(w,S,x,k,ee,7,c[8]),k=d(k,w,S,x,he,12,c[9]),x=d(x,k,w,S,re,17,c[10]),S=d(S,x,k,w,Le,22,c[11]),w=d(w,S,x,k,Oe,7,c[12]),k=d(k,w,S,x,Be,12,c[13]),x=d(x,k,w,S,De,17,c[14]),w=p(w,S=d(S,x,k,w,Re,22,c[15]),x,k,C,5,c[16]),k=p(k,w,S,x,W,9,c[17]),x=p(x,k,w,S,Le,14,c[18]),S=p(S,x,k,w,I,20,c[19]),w=p(w,S,x,k,$,5,c[20]),k=p(k,w,S,x,re,9,c[21]),x=p(x,k,w,S,Re,14,c[22]),S=p(S,x,k,w,M,20,c[23]),w=p(w,S,x,k,he,5,c[24]),k=p(k,w,S,x,De,9,c[25]),x=p(x,k,w,S,O,14,c[26]),S=p(S,x,k,w,ee,20,c[27]),w=p(w,S,x,k,Be,5,c[28]),k=p(k,w,S,x,R,9,c[29]),x=p(x,k,w,S,ae,14,c[30]),w=m(w,S=p(S,x,k,w,Oe,20,c[31]),x,k,$,4,c[32]),k=m(k,w,S,x,ee,11,c[33]),x=m(x,k,w,S,Le,16,c[34]),S=m(S,x,k,w,De,23,c[35]),w=m(w,S,x,k,C,4,c[36]),k=m(k,w,S,x,M,11,c[37]),x=m(x,k,w,S,ae,16,c[38]),S=m(S,x,k,w,re,23,c[39]),w=m(w,S,x,k,Be,4,c[40]),k=m(k,w,S,x,I,11,c[41]),x=m(x,k,w,S,O,16,c[42]),S=m(S,x,k,w,W,23,c[43]),w=m(w,S,x,k,he,4,c[44]),k=m(k,w,S,x,Oe,11,c[45]),x=m(x,k,w,S,Re,16,c[46]),w=_(w,S=m(S,x,k,w,R,23,c[47]),x,k,I,6,c[48]),k=_(k,w,S,x,ae,10,c[49]),x=_(x,k,w,S,De,15,c[50]),S=_(S,x,k,w,$,21,c[51]),w=_(w,S,x,k,Oe,6,c[52]),k=_(k,w,S,x,O,10,c[53]),x=_(x,k,w,S,re,15,c[54]),S=_(S,x,k,w,C,21,c[55]),w=_(w,S,x,k,ee,6,c[56]),k=_(k,w,S,x,Re,10,c[57]),x=_(x,k,w,S,W,15,c[58]),S=_(S,x,k,w,Be,21,c[59]),w=_(w,S,x,k,M,6,c[60]),k=_(k,w,S,x,Le,10,c[61]),x=_(x,k,w,S,R,15,c[62]),S=_(S,x,k,w,he,21,c[63]),b[0]=b[0]+w|0,b[1]=b[1]+S|0,b[2]=b[2]+x|0,b[3]=b[3]+k|0},_doFinalize:function(){var h=this._data,u=h.words,g=8*this._nDataBytes,y=8*h.sigBytes;u[y>>>5]|=128<<24-y%32;var v=i.floor(g/4294967296),b=g;u[15+(y+64>>>9<<4)]=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8),u[14+(y+64>>>9<<4)]=16711935&(b<<8|b>>>24)|4278255360&(b<<24|b>>>8),h.sigBytes=4*(u.length+1),this._process();for(var I=this._hash,C=I.words,R=0;R<4;R++){var O=C[R];C[R]=16711935&(O<<8|O>>>24)|4278255360&(O<<24|O>>>8)}return I},clone:function(){var h=r.clone.call(this);return h._hash=this._hash.clone(),h}});function d(h,u,g,y,v,b,I){var C=h+(u&g|~u&y)+v+I;return(C<<b|C>>>32-b)+u}function p(h,u,g,y,v,b,I){var C=h+(u&y|g&~y)+v+I;return(C<<b|C>>>32-b)+u}function m(h,u,g,y,v,b,I){var C=h+(u^g^y)+v+I;return(C<<b|C>>>32-b)+u}function _(h,u,g,y,v,b,I){var C=h+(g^(u|~y))+v+I;return(C<<b|C>>>32-b)+u}s.MD5=r._createHelper(f),s.HmacMD5=r._createHmacHelper(f)}(Math),t.MD5)}),Z(function(n,e){var t;n.exports=(t=se,void function(){var i=t,s=i.lib.Base,o=i.enc.Utf8;i.algo.HMAC=s.extend({init:function(a,r){a=this._hasher=new a.init,typeof r=="string"&&(r=o.parse(r));var l=a.blockSize,c=4*l;r.sigBytes>c&&(r=a.finalize(r)),r.clamp();for(var f=this._oKey=r.clone(),d=this._iKey=r.clone(),p=f.words,m=d.words,_=0;_<l;_++)p[_]^=1549556828,m[_]^=909522486;f.sigBytes=d.sigBytes=c,this.reset()},reset:function(){var a=this._hasher;a.reset(),a.update(this._iKey)},update:function(a){return this._hasher.update(a),this},finalize:function(a){var r=this._hasher,l=r.finalize(a);return r.reset(),r.finalize(this._oKey.clone().concat(l))}})}())}),Z(function(n,e){n.exports=se.HmacMD5})),Li=Z(function(n,e){n.exports=se.enc.Utf8}),Oi=Z(function(n,e){var t;n.exports=(t=se,function(){var i=t,s=i.lib.WordArray;function o(a,r,l){for(var c=[],f=0,d=0;d<r;d++)if(d%4){var p=l[a.charCodeAt(d-1)]<<d%4*2,m=l[a.charCodeAt(d)]>>>6-d%4*2;c[f>>>2]|=(p|m)<<24-f%4*8,f++}return s.create(c,f)}i.enc.Base64={stringify:function(a){var r=a.words,l=a.sigBytes,c=this._map;a.clamp();for(var f=[],d=0;d<l;d+=3)for(var p=(r[d>>>2]>>>24-d%4*8&255)<<16|(r[d+1>>>2]>>>24-(d+1)%4*8&255)<<8|r[d+2>>>2]>>>24-(d+2)%4*8&255,m=0;m<4&&d+.75*m<l;m++)f.push(c.charAt(p>>>6*(3-m)&63));var _=c.charAt(64);if(_)for(;f.length%4;)f.push(_);return f.join("")},parse:function(a){var r=a.length,l=this._map,c=this._reverseMap;if(!c){c=this._reverseMap=[];for(var f=0;f<l.length;f++)c[l.charCodeAt(f)]=f}var d=l.charAt(64);if(d){var p=a.indexOf(d);p!==-1&&(r=p)}return o(a,r,c)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),t.enc.Base64)}),yn="uni_id_token",vn="uni_id_token_expired",Bi="uniIdToken",Me={DEFAULT:"FUNCTION",FUNCTION:"FUNCTION",OBJECT:"OBJECT",CLIENT_DB:"CLIENT_DB"},zt="pending",Di="fulfilled",Jt="rejected";function ke(n){return Object.prototype.toString.call(n).slice(8,-1).toLowerCase()}function _n(n){return ke(n)==="object"}function Tn(n){return typeof n=="function"}function Ri(n){return function(){try{return n.apply(n,arguments)}catch(e){console.error(e)}}}var Ht="REJECTED",bn="NOT_PENDING",je=class{constructor({createPromise:e,retryRule:t=Ht}={}){this.createPromise=e,this.status=null,this.promise=null,this.retryRule=t}get needRetry(){if(!this.status)return!0;switch(this.retryRule){case Ht:return this.status===Jt;case bn:return this.status!==zt}}exec(){return this.needRetry?(this.status=zt,this.promise=this.createPromise().then(e=>(this.status=Di,Promise.resolve(e)),e=>(this.status=Jt,Promise.reject(e))),this.promise):this.promise}},ct=class{constructor(){this._callback={}}addListener(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}on(e,t){return this.addListener(e,t)}removeListener(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');let i=this._callback[e];if(!i)return;let s=function(o,a){for(let r=o.length-1;r>=0;r--)if(o[r]===a)return r;return-1}(i,t);i.splice(s,1)}off(e,t){return this.removeListener(e,t)}removeAllListener(e){delete this._callback[e]}emit(e,...t){let i=this._callback[e];if(i)for(let s=0;s<i.length;s++)i[s](...t)}};function Ct(n){return n&&typeof n=="string"?JSON.parse(n):n}var Ni=!1,Fi="app",Ui=Ct(Ai),Et=Fi;Ct("");var Mi=Ct("[]")||[],ji="";try{ji="__UNI__3BC70CE"}catch(n){}var Qe,Ue={};function fe(n,e={}){var t,i;return t=Ue,i=n,Object.prototype.hasOwnProperty.call(t,i)||(Ue[n]=e),Ue[n]}function qi(){return Qe||(Qe=function(){if(typeof globalThis!="undefined")return globalThis;if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;function n(){return this}return n()!==void 0?n():new Function("return this")()}(),Qe)}Ue=uni._globalUniCloudObj?uni._globalUniCloudObj:uni._globalUniCloudObj={};var wn=["invoke","success","fail","complete"],Q=fe("_globalUniCloudInterceptor");function xn(n,e){Q[n]||(Q[n]={}),_n(e)&&Object.keys(e).forEach(t=>{wn.indexOf(t)>-1&&function(i,s,o){let a=Q[i][s];a||(a=Q[i][s]=[]),a.indexOf(o)===-1&&Tn(o)&&a.push(o)}(n,t,e[t])})}function Vi(n,e){Q[n]||(Q[n]={}),_n(e)?Object.keys(e).forEach(t=>{wn.indexOf(t)>-1&&function(i,s,o){let a=Q[i][s];if(!a)return;let r=a.indexOf(o);r>-1&&a.splice(r,1)}(n,t,e[t])}):delete Q[n]}function z(n,e){return n&&n.length!==0?n.reduce((t,i)=>t.then(()=>i(e)),Promise.resolve()):Promise.resolve()}function J(n,e){return Q[n]&&Q[n][e]||[]}function zi(n){xn("callObject",n)}var Ze=fe("_globalUniCloudListener"),N={RESPONSE:"response",NEED_LOGIN:"needLogin",REFRESH_TOKEN:"refreshToken"},ie={CLIENT_DB:"clientdb",CLOUD_FUNCTION:"cloudfunction",CLOUD_OBJECT:"cloudobject"};function Ee(n){return Ze[n]||(Ze[n]=[]),Ze[n]}function Xe(n,e){let t=Ee(n);t.includes(e)||t.push(e)}function $e(n,e){let t=Ee(n),i=t.indexOf(e);i!==-1&&t.splice(i,1)}function G(n,e){let t=Ee(n);for(let i=0;i<t.length;i++)(0,t[i])(e)}var et,tt=!1;function kn(){return et||(et=new Promise(n=>{tt&&n(),function e(){if(typeof getCurrentPages=="function"){let t=getCurrentPages();t&&t[0]&&(tt=!0,n())}tt||setTimeout(()=>{e()},30)}()}),et)}function Sn(n){let e={};for(let t in n){let i=n[t];Tn(i)&&(e[t]=Ri(i))}return e}var A=class extends Error{constructor(e){let t=e.message||e.errMsg||"unknown system error";super(t),this.errMsg=t,this.code=this.errCode=e.code||e.errCode||"SYSTEM_ERROR",this.errSubject=this.subject=e.subject||e.errSubject,this.cause=e.cause,this.requestId=e.requestId}toJson(e=0){if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}},U={request:n=>uni.request(n),uploadFile:n=>uni.uploadFile(n),setStorageSync:(n,e)=>uni.setStorageSync(n,e),getStorageSync:n=>uni.getStorageSync(n),removeStorageSync:n=>uni.removeStorageSync(n),clearStorageSync:()=>uni.clearStorageSync(),connectSocket:n=>uni.connectSocket(n)};function In(n){return n&&In(n.__v_raw)||n}function Se(){return{token:U.getStorageSync(yn)||U.getStorageSync(Bi),tokenExpired:U.getStorageSync(vn)}}function An({token:n,tokenExpired:e}={}){n&&U.setStorageSync(yn,n),e&&U.setStorageSync(vn,e)}var nt,Ne;function Cn(){return nt||(nt=uni.getSystemInfoSync()),nt}function Ji(){let n,e;try{if(uni.getLaunchOptionsSync){if(uni.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;let{scene:t,channel:i}=uni.getLaunchOptionsSync();n=i,e=t}}catch(t){}return{channel:n,scene:e}}var lt={};function ut(){let n=uni.getLocale&&uni.getLocale()||"en";if(Ne)return j(B(B({},lt),Ne),{locale:n,LOCALE:n});let e=Cn(),{deviceId:t,osName:i,uniPlatform:s,appId:o}=e,a=["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(let r in e)Object.hasOwnProperty.call(e,r)&&a.indexOf(r)===-1&&delete e[r];return Ne=B(B({PLATFORM:s,OS:i,APPID:o,DEVICEID:t},Ji()),e),j(B(B({},lt),Ne),{locale:n,LOCALE:n})}var ge={sign:function(n,e){let t="";return Object.keys(n).sort().forEach(function(i){n[i]&&(t=t+"&"+i+"="+n[i])}),t=t.slice(1),Pi(t,e).toString()},wrappedRequest:function(n,e){return new Promise((t,i)=>{e(Object.assign(n,{complete(s){s||(s={});let o=s.data&&s.data.header&&s.data.header["x-serverless-request-id"]||s.header&&s.header["request-id"];if(!s.statusCode||s.statusCode>=400){let r=s.data&&s.data.error&&s.data.error.code||"SYS_ERR",l=s.data&&s.data.error&&s.data.error.message||s.errMsg||"request:fail";return i(new A({code:r,message:l,requestId:o}))}let a=s.data;if(a.error)return i(new A({code:a.error.code,message:a.error.message,requestId:o}));a.result=a.data,a.requestId=o,delete a.data,t(a)}}))})},toBase64:function(n){return Oi.stringify(Li.parse(n))}},Hi=class{constructor(n){["spaceId","clientSecret"].forEach(e=>{if(!Object.prototype.hasOwnProperty.call(n,e))throw new Error(`${e} required`)}),this.config=Object.assign({},{endpoint:n.spaceId.indexOf("mp-")===0?"https://api.next.bspapp.com":"https://api.bspapp.com"},n),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=U,this._getAccessTokenPromiseHub=new je({createPromise:()=>this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then(e=>{if(!e.result||!e.result.accessToken)throw new A({code:"AUTH_FAILED",message:"\u83B7\u53D6accessToken\u5931\u8D25"});this.setAccessToken(e.result.accessToken)}),retryRule:bn})}get hasAccessToken(){return!!this.accessToken}setAccessToken(n){this.accessToken=n}requestWrapped(n){return ge.wrappedRequest(n,this.adapter.request)}requestAuth(n){return this.requestWrapped(n)}request(n,e){return Promise.resolve().then(()=>this.hasAccessToken?e?this.requestWrapped(n):this.requestWrapped(n).catch(t=>new Promise((i,s)=>{!t||t.code!=="GATEWAY_INVALID_TOKEN"&&t.code!=="InvalidParameter.InvalidToken"?s(t):i()}).then(()=>this.getAccessToken()).then(()=>{let i=this.rebuildRequest(n);return this.request(i,!0)})):this.getAccessToken().then(()=>{let t=this.rebuildRequest(n);return this.request(t,!0)}))}rebuildRequest(n){let e=Object.assign({},n);return e.data.token=this.accessToken,e.header["x-basement-token"]=this.accessToken,e.header["x-serverless-sign"]=ge.sign(e.data,this.config.clientSecret),e}setupRequest(n,e){let t=Object.assign({},n,{spaceId:this.config.spaceId,timestamp:Date.now()}),i={"Content-Type":"application/json"};return e!=="auth"&&(t.token=this.accessToken,i["x-basement-token"]=this.accessToken),i["x-serverless-sign"]=ge.sign(t,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:t,dataType:"json",header:i}}getAccessToken(){return this._getAccessTokenPromiseHub.exec()}authorize(){return E(this,null,function*(){yield this.getAccessToken()})}callFunction(n){let e={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:n.name,functionArgs:n.data||{}})};return this.request(j(B({},this.setupRequest(e)),{timeout:n.timeout}))}getOSSUploadOptionsFromPath(n){let e={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(n)};return this.request(this.setupRequest(e))}uploadFileToOSS({url:n,formData:e,name:t,filePath:i,fileType:s,onUploadProgress:o}){return new Promise((a,r)=>{let l=this.adapter.uploadFile({url:n,formData:e,name:t,filePath:i,fileType:s,header:{"X-OSS-server-side-encrpytion":"AES256"},success(c){c&&c.statusCode<400?a(c):r(new A({code:"UPLOAD_FAILED",message:"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"}))},fail(c){r(new A({code:c.code||"UPLOAD_FAILED",message:c.message||c.errMsg||"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"}))}});typeof o=="function"&&l&&typeof l.onProgressUpdate=="function"&&l.onProgressUpdate(c=>{o({loaded:c.totalBytesSent,total:c.totalBytesExpectedToSend})})})}reportOSSUpload(n){let e={method:"serverless.file.resource.report",params:JSON.stringify(n)};return this.request(this.setupRequest(e))}uploadFile(a){return E(this,arguments,function*({filePath:n,cloudPath:e,fileType:t="image",cloudPathAsRealPath:i=!1,onUploadProgress:s,config:o}){if(ke(e)!=="string")throw new A({code:"INVALID_PARAM",message:"cloudPath\u5FC5\u987B\u4E3A\u5B57\u7B26\u4E32\u7C7B\u578B"});if(!(e=e.trim()))throw new A({code:"INVALID_PARAM",message:"cloudPath\u4E0D\u53EF\u4E3A\u7A7A"});if(/:\/\//.test(e))throw new A({code:"INVALID_PARAM",message:"cloudPath\u4E0D\u5408\u6CD5"});let r=o&&o.envType||this.config.envType;if(i&&(e[0]!=="/"&&(e="/"+e),e.indexOf("\\")>-1))throw new A({code:"INVALID_PARAM",message:"\u4F7F\u7528cloudPath\u4F5C\u4E3A\u8DEF\u5F84\u65F6\uFF0CcloudPath\u4E0D\u53EF\u5305\u542B\u201C\\\u201D"});let l=(yield this.getOSSUploadOptionsFromPath({env:r,filename:i?e.split("/").pop():e,fileId:i?e:void 0})).result,c="https://"+l.cdnDomain+"/"+l.ossPath,{securityToken:f,accessKeyId:d,signature:p,host:m,ossPath:_,id:h,policy:u,ossCallbackUrl:g}=l,y={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:d,Signature:p,host:m,id:h,key:_,policy:u,success_action_status:200};if(f&&(y["x-oss-security-token"]=f),g){let b=JSON.stringify({callbackUrl:g,callbackBody:JSON.stringify({fileId:h,spaceId:this.config.spaceId}),callbackBodyType:"application/json"});y.callback=ge.toBase64(b)}let v={url:"https://"+l.host,formData:y,fileName:"file",name:"file",filePath:n,fileType:t};if(yield this.uploadFileToOSS(Object.assign({},v,{onUploadProgress:s})),g)return{success:!0,filePath:n,fileID:c};if((yield this.reportOSSUpload({id:h})).success)return{success:!0,filePath:n,fileID:c};throw new A({code:"UPLOAD_FAILED",message:"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"})})}getTempFileURL({fileList:n}={}){return new Promise((e,t)=>{Array.isArray(n)&&n.length!==0||t(new A({code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7D20\u5FC5\u987B\u662F\u975E\u7A7A\u7684\u5B57\u7B26\u4E32"})),this.getFileInfo({fileList:n}).then(i=>{e({fileList:n.map((s,o)=>{let a=i.fileList[o];return{fileID:s,tempFileURL:a&&a.url||s}})})})})}getFileInfo(){return E(this,arguments,function*({fileList:n}={}){if(!Array.isArray(n)||n.length===0)throw new A({code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7D20\u5FC5\u987B\u662F\u975E\u7A7A\u7684\u5B57\u7B26\u4E32"});let e={method:"serverless.file.resource.info",params:JSON.stringify({id:n.map(t=>t.split("?")[0]).join(",")})};return{fileList:(yield this.request(this.setupRequest(e))).result}})}},Wi={init(n){let e=new Hi(n),t={signInAnonymously:function(){return e.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return e.auth=function(){return t},e.customAuth=e.auth,e}},Ki=typeof location!="undefined"&&location.protocol==="http:"?"http:":"https:",Wt;(function(n){n.local="local",n.none="none",n.session="session"})(Wt||(Wt={}));var Gi=function(){},Yi=Z(function(n,e){var t;n.exports=(t=se,function(i){var s=t,o=s.lib,a=o.WordArray,r=o.Hasher,l=s.algo,c=[],f=[];(function(){function m(g){for(var y=i.sqrt(g),v=2;v<=y;v++)if(!(g%v))return!1;return!0}function _(g){return 4294967296*(g-(0|g))|0}for(var h=2,u=0;u<64;)m(h)&&(u<8&&(c[u]=_(i.pow(h,.5))),f[u]=_(i.pow(h,1/3)),u++),h++})();var d=[],p=l.SHA256=r.extend({_doReset:function(){this._hash=new a.init(c.slice(0))},_doProcessBlock:function(m,_){for(var h=this._hash.words,u=h[0],g=h[1],y=h[2],v=h[3],b=h[4],I=h[5],C=h[6],R=h[7],O=0;O<64;O++){if(O<16)d[O]=0|m[_+O];else{var M=d[O-15],$=(M<<25|M>>>7)^(M<<14|M>>>18)^M>>>3,W=d[O-2],ae=(W<<15|W>>>17)^(W<<13|W>>>19)^W>>>10;d[O]=$+d[O-7]+ae+d[O-16]}var ee=u&g^u&y^g&y,he=(u<<30|u>>>2)^(u<<19|u>>>13)^(u<<10|u>>>22),re=R+((b<<26|b>>>6)^(b<<21|b>>>11)^(b<<7|b>>>25))+(b&I^~b&C)+f[O]+d[O];R=C,C=I,I=b,b=v+re|0,v=y,y=g,g=u,u=re+(he+ee)|0}h[0]=h[0]+u|0,h[1]=h[1]+g|0,h[2]=h[2]+y|0,h[3]=h[3]+v|0,h[4]=h[4]+b|0,h[5]=h[5]+I|0,h[6]=h[6]+C|0,h[7]=h[7]+R|0},_doFinalize:function(){var m=this._data,_=m.words,h=8*this._nDataBytes,u=8*m.sigBytes;return _[u>>>5]|=128<<24-u%32,_[14+(u+64>>>9<<4)]=i.floor(h/4294967296),_[15+(u+64>>>9<<4)]=h,m.sigBytes=4*_.length,this._process(),this._hash},clone:function(){var m=r.clone.call(this);return m._hash=this._hash.clone(),m}});s.SHA256=r._createHelper(p),s.HmacSHA256=r._createHmacHelper(p)}(Math),t.SHA256)}),dt=Yi,En=Z(function(n,e){n.exports=se.HmacSHA256}),Pe=()=>{let n;if(!Promise){n=()=>{},n.promise={};let t=()=>{throw new A({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(n.promise,"then",{get:t}),Object.defineProperty(n.promise,"catch",{get:t}),n}let e=new Promise((t,i)=>{n=(s,o)=>s?i(s):t(o)});return n.promise=e,n};function Qi(n){return n===void 0}function Zi(n){return Object.prototype.toString.call(n)==="[object Null]"}function Kt(n=""){return n.replace(/([\s\S]+)\s+(请前往云开发AI小助手查看问题：.*)/,"$1")}function Gt(n=32){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t="";for(let i=0;i<n;i++)t+=e.charAt(Math.floor(62*Math.random()));return t}var Yt;function Xi(n){let e=(t=n,Object.prototype.toString.call(t)==="[object Array]"?n:[n]);var t;for(let i of e){let{isMatch:s,genAdapter:o,runtime:a}=i;if(s())return{adapter:o(),runtime:a}}}(function(n){n.WEB="web",n.WX_MP="wx_mp"})(Yt||(Yt={}));var q={adapter:null,runtime:void 0},$i=["anonymousUuidKey"],be=class extends Gi{constructor(){super(),q.adapter.root.tcbObject||(q.adapter.root.tcbObject={})}setItem(e,t){q.adapter.root.tcbObject[e]=t}getItem(e){return q.adapter.root.tcbObject[e]}removeItem(e){delete q.adapter.root.tcbObject[e]}clear(){delete q.adapter.root.tcbObject}};function Qt(n,e){switch(n){case"local":return e.localStorage||new be;case"none":return new be;default:return e.sessionStorage||new be}}var qe=class{constructor(e){if(!this._storage){this._persistence=q.adapter.primaryStorage||e.persistence,this._storage=Qt(this._persistence,q.adapter);let t=`access_token_${e.env}`,i=`access_token_expire_${e.env}`,s=`refresh_token_${e.env}`,o=`anonymous_uuid_${e.env}`,a=`login_type_${e.env}`,r="device_id",l=`token_type_${e.env}`,c=`user_info_${e.env}`;this.keys={accessTokenKey:t,accessTokenExpireKey:i,refreshTokenKey:s,anonymousUuidKey:o,loginTypeKey:a,userInfoKey:c,deviceIdKey:r,tokenTypeKey:l}}}updatePersistence(e){if(e===this._persistence)return;let t=this._persistence==="local";this._persistence=e;let i=Qt(e,q.adapter);for(let s in this.keys){let o=this.keys[s];if(t&&$i.includes(s))continue;let a=this._storage.getItem(o);Qi(a)||Zi(a)||(i.setItem(o,a),this._storage.removeItem(o))}this._storage=i}setStore(e,t,i){if(!this._storage)return;let s={version:i||"localCachev1",content:t},o=JSON.stringify(s);try{this._storage.setItem(e,o)}catch(a){throw a}}getStore(e,t){try{if(!this._storage)return}catch(s){return""}t=t||"localCachev1";let i=this._storage.getItem(e);return i&&i.indexOf(t)>=0?JSON.parse(i).content:""}removeStore(e){this._storage.removeItem(e)}},Pn={},Ln={};function ve(n){return Pn[n]}var Ve=class{constructor(e,t){this.data=t||null,this.name=e}},ht=class extends Ve{constructor(e,t){super("error",{error:e,data:t}),this.error=e}},Pt=new class{constructor(){this._listeners={}}on(n,e){return function(t,i,s){s[t]=s[t]||[],s[t].push(i)}(n,e,this._listeners),this}off(n,e){return function(t,i,s){if(s&&s[t]){let o=s[t].indexOf(i);o!==-1&&s[t].splice(o,1)}}(n,e,this._listeners),this}fire(n,e){if(n instanceof ht)return console.error(n.error),this;let t=typeof n=="string"?new Ve(n,e||{}):n,i=t.name;if(this._listens(i)){t.target=this;let s=this._listeners[i]?[...this._listeners[i]]:[];for(let o of s)o.call(this,t)}return this}_listens(n){return this._listeners[n]&&this._listeners[n].length>0}};function ne(n,e){Pt.on(n,e)}function H(n,e={}){Pt.fire(n,e)}function es(n,e){Pt.off(n,e)}var me="loginStateChanged",On="loginStateExpire",oe="loginTypeChanged",pt="anonymousConverted",Bn="refreshAccessToken",F;(function(n){n.ANONYMOUS="ANONYMOUS",n.WECHAT="WECHAT",n.WECHAT_PUBLIC="WECHAT-PUBLIC",n.WECHAT_OPEN="WECHAT-OPEN",n.CUSTOM="CUSTOM",n.EMAIL="EMAIL",n.USERNAME="USERNAME",n.NULL="NULL"})(F||(F={}));var gt=class{constructor(){this._fnPromiseMap=new Map}run(e,t){return E(this,null,function*(){let i=this._fnPromiseMap.get(e);return i||(i=new Promise((s,o)=>E(this,null,function*(){try{yield this._runIdlePromise();let a=t();s(yield a)}catch(a){o(a)}finally{this._fnPromiseMap.delete(e)}})),this._fnPromiseMap.set(e,i)),i})}_runIdlePromise(){return Promise.resolve()}},ft=class{constructor(e){this._singlePromise=new gt,this._cache=ve(e.env),this._baseURL=`https://${e.env}.ap-shanghai.tcb-api.tencentcloudapi.com`,this._reqClass=new q.adapter.reqClass({timeout:e.timeout,timeoutMsg:`\u8BF7\u6C42\u5728${e.timeout/1e3}s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD`,restrictedMethods:["post"]})}_getDeviceId(){if(this._deviceID)return this._deviceID;let{deviceIdKey:e}=this._cache.keys,t=this._cache.getStore(e);return typeof t=="string"&&t.length>=16&&t.length<=48||(t=Gt(),this._cache.setStore(e,t)),this._deviceID=t,t}_request(s,o){return E(this,arguments,function*(e,t,i={}){let a={"x-request-id":Gt(),"x-device-id":this._getDeviceId()};if(i.withAccessToken){let{tokenTypeKey:r}=this._cache.keys,l=yield this.getAccessToken(),c=this._cache.getStore(r);a.authorization=`${c} ${l}`}return this._reqClass[i.method==="get"?"get":"post"]({url:`${this._baseURL}${e}`,data:t,headers:a})})}_fetchAccessToken(){return E(this,null,function*(){let{loginTypeKey:e,accessTokenKey:t,accessTokenExpireKey:i,tokenTypeKey:s}=this._cache.keys,o=this._cache.getStore(e);if(o&&o!==F.ANONYMOUS)throw new A({code:"INVALID_OPERATION",message:"\u975E\u533F\u540D\u767B\u5F55\u4E0D\u652F\u6301\u5237\u65B0 access token"});let a=yield this._singlePromise.run("fetchAccessToken",()=>E(this,null,function*(){return(yield this._request("/auth/v1/signin/anonymously",{},{method:"post"})).data})),{access_token:r,expires_in:l,token_type:c}=a;return this._cache.setStore(s,c),this._cache.setStore(t,r),this._cache.setStore(i,Date.now()+1e3*l),r})}isAccessTokenExpired(e,t){let i=!0;return e&&t&&(i=t<Date.now()),i}getAccessToken(){return E(this,null,function*(){let{accessTokenKey:e,accessTokenExpireKey:t}=this._cache.keys,i=this._cache.getStore(e),s=this._cache.getStore(t);return this.isAccessTokenExpired(i,s)?this._fetchAccessToken():i})}refreshAccessToken(){return E(this,null,function*(){let{accessTokenKey:e,accessTokenExpireKey:t,loginTypeKey:i}=this._cache.keys;return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.setStore(i,F.ANONYMOUS),this.getAccessToken()})}getUserInfo(){return E(this,null,function*(){return this._singlePromise.run("getUserInfo",()=>E(this,null,function*(){return(yield this._request("/auth/v1/user/me",{},{withAccessToken:!0,method:"get"})).data}))})}},Zt=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],ts={"X-SDK-Version":"1.3.5"};function it(n,e,t){let i=n[e];n[e]=function(s){let o={},a={};t.forEach(l=>{let{data:c,headers:f}=l.call(n,s);Object.assign(o,c),Object.assign(a,f)});let r=s.data;return r&&(()=>{var l;if(l=r,Object.prototype.toString.call(l)!=="[object FormData]")s.data=B(B({},r),o);else for(let c in o)r.append(c,o[c])})(),s.headers=B(B({},s.headers||{}),a),i.call(n,s)}}function st(){let n=Math.random().toString(16).slice(2);return{data:{seqId:n},headers:j(B({},ts),{"x-seqid":n})}}var mt=class{constructor(e={}){var t;this.config=e,this._reqClass=new q.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`\u8BF7\u6C42\u5728${this.config.timeout/1e3}s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD`,restrictedMethods:["post"]}),this._cache=ve(this.config.env),this._localCache=(t=this.config.env,Ln[t]),this.oauth=new ft(this.config),it(this._reqClass,"post",[st]),it(this._reqClass,"upload",[st]),it(this._reqClass,"download",[st])}post(e){return E(this,null,function*(){return yield this._reqClass.post(e)})}upload(e){return E(this,null,function*(){return yield this._reqClass.upload(e)})}download(e){return E(this,null,function*(){return yield this._reqClass.download(e)})}refreshAccessToken(){return E(this,null,function*(){let e,t;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{e=yield this._refreshAccessTokenPromise}catch(i){t=i}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,t)throw t;return e})}_refreshAccessToken(){return E(this,null,function*(){let{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:i,loginTypeKey:s,anonymousUuidKey:o}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(t);let a=this._cache.getStore(i);if(!a)throw new A({message:"\u672A\u767B\u5F55CloudBase"});let r={refresh_token:a},l=yield this.request("auth.fetchAccessTokenWithRefreshToken",r);if(l.data.code){let{code:c}=l.data;if(c==="SIGN_PARAM_INVALID"||c==="REFRESH_TOKEN_EXPIRED"||c==="INVALID_REFRESH_TOKEN"){if(this._cache.getStore(s)===F.ANONYMOUS&&c==="INVALID_REFRESH_TOKEN"){let f=this._cache.getStore(o),d=this._cache.getStore(i),p=yield this.send("auth.signInAnonymously",{anonymous_uuid:f,refresh_token:d});return this.setRefreshToken(p.refresh_token),this._refreshAccessToken()}H(On),this._cache.removeStore(i)}throw new A({code:l.data.code,message:`\u5237\u65B0access token\u5931\u8D25\uFF1A${l.data.code}`})}if(l.data.access_token)return H(Bn),this._cache.setStore(e,l.data.access_token),this._cache.setStore(t,l.data.access_token_expire+Date.now()),{accessToken:l.data.access_token,accessTokenExpire:l.data.access_token_expire};l.data.refresh_token&&(this._cache.removeStore(i),this._cache.setStore(i,l.data.refresh_token),this._refreshAccessToken())})}getAccessToken(){return E(this,null,function*(){let{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:i}=this._cache.keys;if(!this._cache.getStore(i))throw new A({message:"refresh token\u4E0D\u5B58\u5728\uFF0C\u767B\u5F55\u72B6\u6001\u5F02\u5E38"});let s=this._cache.getStore(e),o=this._cache.getStore(t),a=!0;return this._shouldRefreshAccessTokenHook&&!(yield this._shouldRefreshAccessTokenHook(s,o))&&(a=!1),(!s||!o||o<Date.now())&&a?this.refreshAccessToken():{accessToken:s,accessTokenExpire:o}})}request(e,t,i){return E(this,null,function*(){let s=`x-tcb-trace_${this.config.env}`,o="application/x-www-form-urlencoded",a=B({action:e,env:this.config.env,dataVersion:"2019-08-16"},t),r;if(Zt.indexOf(e)===-1&&(this._cache.keys,a.access_token=yield this.oauth.getAccessToken()),e==="storage.uploadFile"){r=new FormData;for(let g in r)r.hasOwnProperty(g)&&r[g]!==void 0&&r.append(g,a[g]);o="multipart/form-data"}else{o="application/json",r={};for(let g in a)a[g]!==void 0&&(r[g]=a[g])}let l={headers:{"content-type":o}};i&&i.timeout&&(l.timeout=i.timeout),i&&i.onUploadProgress&&(l.onUploadProgress=i.onUploadProgress);let c=this._localCache.getStore(s);c&&(l.headers["X-TCB-Trace"]=c);let{parse:f,inQuery:d,search:p}=t,m={env:this.config.env};f&&(m.parse=!0),d&&(m=B(B({},d),m));let _=function(g,y,v={}){let b=/\?/.test(y),I="";for(let C in v)I===""?!b&&(y+="?"):I+="&",I+=`${C}=${encodeURIComponent(v[C])}`;return/^http(s)?\:\/\//.test(y+=I)?y:`${g}${y}`}(Ki,"//tcb-api.tencentcloudapi.com/web",m);p&&(_+=p);let h=yield this.post(B({url:_,data:r},l)),u=h.header&&h.header["x-tcb-trace"];if(u&&this._localCache.setStore(s,u),Number(h.status)!==200&&Number(h.statusCode)!==200||!h.data)throw new A({code:"NETWORK_ERROR",message:"network request error"});return h})}send(s){return E(this,arguments,function*(e,t={},i={}){let o=yield this.request(e,t,j(B({},i),{onUploadProgress:t.onUploadProgress}));if((o.data.code==="ACCESS_TOKEN_DISABLED"||o.data.code==="ACCESS_TOKEN_EXPIRED")&&Zt.indexOf(e)===-1){yield this.oauth.refreshAccessToken();let a=yield this.request(e,t,j(B({},i),{onUploadProgress:t.onUploadProgress}));if(a.data.code)throw new A({code:a.data.code,message:Kt(a.data.message)});return a.data}if(o.data.code)throw new A({code:o.data.code,message:Kt(o.data.message)});return o.data})}setRefreshToken(e){let{accessTokenKey:t,accessTokenExpireKey:i,refreshTokenKey:s}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(i),this._cache.setStore(s,e)}},Dn={};function X(n){return Dn[n]}var ye=class{constructor(e){this.config=e,this._cache=ve(e.env),this._request=X(e.env)}setRefreshToken(e){let{accessTokenKey:t,accessTokenExpireKey:i,refreshTokenKey:s}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(i),this._cache.setStore(s,e)}setAccessToken(e,t){let{accessTokenKey:i,accessTokenExpireKey:s}=this._cache.keys;this._cache.setStore(i,e),this._cache.setStore(s,t)}refreshUserInfo(){return E(this,null,function*(){let{data:e}=yield this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e})}setLocalUserInfo(e){let{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e)}},yt=class{constructor(e){if(!e)throw new A({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=e,this._cache=ve(this._envId),this._request=X(this._envId),this.setUserInfo()}linkWithTicket(e){if(typeof e!="string")throw new A({code:"PARAM_ERROR",message:"ticket must be string"});return this._request.send("auth.linkWithTicket",{ticket:e})}linkWithRedirect(e){e.signInWithRedirect()}updatePassword(e,t){return this._request.send("auth.updatePassword",{oldPassword:t,newPassword:e})}updateEmail(e){return this._request.send("auth.updateEmail",{newEmail:e})}updateUsername(e){if(typeof e!="string")throw new A({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}getLinkedUidList(){return E(this,null,function*(){let{data:e}=yield this._request.send("auth.getLinkedUidList",{}),t=!1,{users:i}=e;return i.forEach(s=>{s.wxOpenId&&s.wxPublicId&&(t=!0)}),{users:i,hasPrimaryUid:t}})}setPrimaryUid(e){return this._request.send("auth.setPrimaryUid",{uid:e})}unlink(e){return this._request.send("auth.unlink",{platform:e})}update(e){return E(this,null,function*(){let{nickName:t,gender:i,avatarUrl:s,province:o,country:a,city:r}=e,{data:l}=yield this._request.send("auth.updateUserInfo",{nickName:t,gender:i,avatarUrl:s,province:o,country:a,city:r});this.setLocalUserInfo(l)})}refresh(){return E(this,null,function*(){let e=yield this._request.oauth.getUserInfo();return this.setLocalUserInfo(e),e})}setUserInfo(){let{userInfoKey:e}=this._cache.keys,t=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach(i=>{this[i]=t[i]}),this.location={country:t.country,province:t.province,city:t.city}}setLocalUserInfo(e){let{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e),this.setUserInfo()}},de=class{constructor(e){if(!e)throw new A({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=ve(e);let{refreshTokenKey:t,accessTokenKey:i,accessTokenExpireKey:s}=this._cache.keys,o=this._cache.getStore(t),a=this._cache.getStore(i),r=this._cache.getStore(s);this.credential={refreshToken:o,accessToken:a,accessTokenExpire:r},this.user=new yt(e)}get isAnonymousAuth(){return this.loginType===F.ANONYMOUS}get isCustomAuth(){return this.loginType===F.CUSTOM}get isWeixinAuth(){return this.loginType===F.WECHAT||this.loginType===F.WECHAT_OPEN||this.loginType===F.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}},we=class extends ye{signIn(){return E(this,null,function*(){this._cache.updatePersistence("local"),yield this._request.oauth.getAccessToken(),H(me),H(oe,{env:this.config.env,loginType:F.ANONYMOUS,persistence:"local"});let e=new de(this.config.env);return yield e.user.refresh(),e})}linkAndRetrieveDataWithTicket(e){return E(this,null,function*(){let{anonymousUuidKey:t,refreshTokenKey:i}=this._cache.keys,s=this._cache.getStore(t),o=this._cache.getStore(i),a=yield this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:s,refresh_token:o,ticket:e});if(a.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(a.refresh_token),yield this._request.refreshAccessToken(),H(pt,{env:this.config.env}),H(oe,{loginType:F.CUSTOM,persistence:"local"}),{credential:{refreshToken:a.refresh_token}};throw new A({message:"\u533F\u540D\u8F6C\u5316\u5931\u8D25"})})}_setAnonymousUUID(e){let{anonymousUuidKey:t,loginTypeKey:i}=this._cache.keys;this._cache.removeStore(t),this._cache.setStore(t,e),this._cache.setStore(i,F.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}},ze=class extends ye{signIn(e){return E(this,null,function*(){if(typeof e!="string")throw new A({code:"PARAM_ERROR",message:"ticket must be a string"});let{refreshTokenKey:t}=this._cache.keys,i=yield this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(t)||""});if(i.refresh_token)return this.setRefreshToken(i.refresh_token),yield this._request.refreshAccessToken(),H(me),H(oe,{env:this.config.env,loginType:F.CUSTOM,persistence:this.config.persistence}),yield this.refreshUserInfo(),new de(this.config.env);throw new A({message:"\u81EA\u5B9A\u4E49\u767B\u5F55\u5931\u8D25"})})}},Je=class extends ye{signIn(e,t){return E(this,null,function*(){if(typeof e!="string")throw new A({code:"PARAM_ERROR",message:"email must be a string"});let{refreshTokenKey:i}=this._cache.keys,s=yield this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:t,refresh_token:this._cache.getStore(i)||""}),{refresh_token:o,access_token:a,access_token_expire:r}=s;if(o)return this.setRefreshToken(o),a&&r?this.setAccessToken(a,r):yield this._request.refreshAccessToken(),yield this.refreshUserInfo(),H(me),H(oe,{env:this.config.env,loginType:F.EMAIL,persistence:this.config.persistence}),new de(this.config.env);throw s.code?new A({code:s.code,message:`\u90AE\u7BB1\u767B\u5F55\u5931\u8D25: ${s.message}`}):new A({message:"\u90AE\u7BB1\u767B\u5F55\u5931\u8D25"})})}activate(e){return E(this,null,function*(){return this._request.send("auth.activateEndUserMail",{token:e})})}resetPasswordWithToken(e,t){return E(this,null,function*(){return this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:t})})}},He=class extends ye{signIn(e,t){return E(this,null,function*(){if(typeof e!="string")throw new A({code:"PARAM_ERROR",message:"username must be a string"});typeof t!="string"&&(t="",console.warn("password is empty"));let{refreshTokenKey:i}=this._cache.keys,s=yield this._request.send("auth.signIn",{loginType:F.USERNAME,username:e,password:t,refresh_token:this._cache.getStore(i)||""}),{refresh_token:o,access_token_expire:a,access_token:r}=s;if(o)return this.setRefreshToken(o),r&&a?this.setAccessToken(r,a):yield this._request.refreshAccessToken(),yield this.refreshUserInfo(),H(me),H(oe,{env:this.config.env,loginType:F.USERNAME,persistence:this.config.persistence}),new de(this.config.env);throw s.code?new A({code:s.code,message:`\u7528\u6237\u540D\u5BC6\u7801\u767B\u5F55\u5931\u8D25: ${s.message}`}):new A({message:"\u7528\u6237\u540D\u5BC6\u7801\u767B\u5F55\u5931\u8D25"})})}},vt=class{constructor(e){this.config=e,this._cache=ve(e.env),this._request=X(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),ne(oe,this._onLoginTypeChanged)}get currentUser(){let e=this.hasLoginState();return e&&e.user||null}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}anonymousAuthProvider(){return new we(this.config)}customAuthProvider(){return new ze(this.config)}emailAuthProvider(){return new Je(this.config)}usernameAuthProvider(){return new He(this.config)}signInAnonymously(){return E(this,null,function*(){return new we(this.config).signIn()})}signInWithEmailAndPassword(e,t){return E(this,null,function*(){return new Je(this.config).signIn(e,t)})}signInWithUsernameAndPassword(e,t){return new He(this.config).signIn(e,t)}linkAndRetrieveDataWithTicket(e){return E(this,null,function*(){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new we(this.config)),ne(pt,this._onAnonymousConverted),yield this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)})}signOut(){return E(this,null,function*(){if(this.loginType===F.ANONYMOUS)throw new A({message:"\u533F\u540D\u7528\u6237\u4E0D\u652F\u6301\u767B\u51FA\u64CD\u4F5C"});let{refreshTokenKey:e,accessTokenKey:t,accessTokenExpireKey:i}=this._cache.keys,s=this._cache.getStore(e);if(!s)return;let o=yield this._request.send("auth.logout",{refresh_token:s});return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.removeStore(i),H(me),H(oe,{env:this.config.env,loginType:F.NULL,persistence:this.config.persistence}),o})}signUpWithEmailAndPassword(e,t){return E(this,null,function*(){return this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:t})})}sendPasswordResetEmail(e){return E(this,null,function*(){return this._request.send("auth.sendPasswordResetEmail",{email:e})})}onLoginStateChanged(e){ne(me,()=>{let i=this.hasLoginState();e.call(this,i)});let t=this.hasLoginState();e.call(this,t)}onLoginStateExpired(e){ne(On,e.bind(this))}onAccessTokenRefreshed(e){ne(Bn,e.bind(this))}onAnonymousConverted(e){ne(pt,e.bind(this))}onLoginTypeChanged(e){ne(oe,()=>{let t=this.hasLoginState();e.call(this,t)})}getAccessToken(){return E(this,null,function*(){return{accessToken:(yield this._request.getAccessToken()).accessToken,env:this.config.env}})}hasLoginState(){let{accessTokenKey:e,accessTokenExpireKey:t}=this._cache.keys,i=this._cache.getStore(e),s=this._cache.getStore(t);return this._request.oauth.isAccessTokenExpired(i,s)?null:new de(this.config.env)}isUsernameRegistered(e){return E(this,null,function*(){if(typeof e!="string")throw new A({code:"PARAM_ERROR",message:"username must be a string"});let{data:t}=yield this._request.send("auth.isUsernameRegistered",{username:e});return t&&t.isRegistered})}getLoginState(){return Promise.resolve(this.hasLoginState())}signInWithTicket(e){return E(this,null,function*(){return new ze(this.config).signIn(e)})}shouldRefreshAccessToken(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then(e=>e.code?e:j(B({},e.data),{requestId:e.seqId}))}getAuthHeader(){let{refreshTokenKey:e,accessTokenKey:t}=this._cache.keys,i=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(t)+"/@@/"+i}}_onAnonymousConverted(e){let{env:t}=e.data;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(e){let{loginType:t,persistence:i,env:s}=e.data;s===this.config.env&&(this._cache.updatePersistence(i),this._cache.setStore(this._cache.keys.loginTypeKey,t))}},ns=function(n,e){e=e||Pe();let t=X(this.config.env),{cloudPath:i,filePath:s,onUploadProgress:o,fileType:a="image"}=n;return t.send("storage.getUploadMetadata",{path:i}).then(r=>{let{data:{url:l,authorization:c,token:f,fileId:d,cosFileId:p},requestId:m}=r,_={key:i,signature:c,"x-cos-meta-fileid":p,success_action_status:"201","x-cos-security-token":f};t.upload({url:l,data:_,file:s,name:i,fileType:a,onUploadProgress:o}).then(h=>{h.statusCode===201?e(null,{fileID:d,requestId:m}):e(new A({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${h.data}`}))}).catch(h=>{e(h)})}).catch(r=>{e(r)}),e.promise},is=function(n,e){e=e||Pe();let t=X(this.config.env),{cloudPath:i}=n;return t.send("storage.getUploadMetadata",{path:i}).then(s=>{e(null,s)}).catch(s=>{e(s)}),e.promise},ss=function({fileList:n},e){if(e=e||Pe(),!n||!Array.isArray(n))return{code:"INVALID_PARAM",message:"fileList\u5FC5\u987B\u662F\u975E\u7A7A\u7684\u6570\u7EC4"};for(let i of n)if(!i||typeof i!="string")return{code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7D20\u5FC5\u987B\u662F\u975E\u7A7A\u7684\u5B57\u7B26\u4E32"};let t={fileid_list:n};return X(this.config.env).send("storage.batchDeleteFile",t).then(i=>{i.code?e(null,i):e(null,{fileList:i.data.delete_list,requestId:i.requestId})}).catch(i=>{e(i)}),e.promise},Rn=function({fileList:n},e){e=e||Pe(),n&&Array.isArray(n)||e(null,{code:"INVALID_PARAM",message:"fileList\u5FC5\u987B\u662F\u975E\u7A7A\u7684\u6570\u7EC4"});let t=[];for(let s of n)typeof s=="object"?(s.hasOwnProperty("fileID")&&s.hasOwnProperty("maxAge")||e(null,{code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7D20\u5FC5\u987B\u662F\u5305\u542BfileID\u548CmaxAge\u7684\u5BF9\u8C61"}),t.push({fileid:s.fileID,max_age:s.maxAge})):typeof s=="string"?t.push({fileid:s}):e(null,{code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7D20\u5FC5\u987B\u662F\u5B57\u7B26\u4E32"});let i={file_list:t};return X(this.config.env).send("storage.batchGetDownloadUrl",i).then(s=>{s.code?e(null,s):e(null,{fileList:s.data.download_list,requestId:s.requestId})}).catch(s=>{e(s)}),e.promise},os=function(t,i){return E(this,arguments,function*({fileID:n},e){let s=(yield Rn.call(this,{fileList:[{fileID:n,maxAge:600}]})).fileList[0];if(s.code!=="SUCCESS")return e?e(s):new Promise(r=>{r(s)});let o=X(this.config.env),a=s.download_url;if(a=encodeURI(a),!e)return o.download({url:a});e(yield o.download({url:a}))})},as=function({name:n,data:e,query:t,parse:i,search:s,timeout:o},a){let r=a||Pe(),l;try{l=e?JSON.stringify(e):""}catch(f){return Promise.reject(f)}if(!n)return Promise.reject(new A({code:"PARAM_ERROR",message:"\u51FD\u6570\u540D\u4E0D\u80FD\u4E3A\u7A7A"}));let c={inQuery:t,parse:i,search:s,function_name:n,request_data:l};return X(this.config.env).send("functions.invokeFunction",c,{timeout:o}).then(f=>{if(f.code)r(null,f);else{let d=f.data.response_data;if(i)r(null,{result:d,requestId:f.requestId});else try{d=JSON.parse(f.data.response_data),r(null,{result:d,requestId:f.requestId})}catch(p){r(new A({message:"response data must be json"}))}}return r.promise}).catch(f=>{r(f)}),r.promise},Xt={timeout:15e3,persistence:"session"},$t=6e5,en={},_t=class n{constructor(e){this.config=e||this.config,this.authObj=void 0}init(e){switch(q.adapter||(this.requestClient=new q.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:`\u8BF7\u6C42\u5728${(e.timeout||5e3)/1e3}s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD`})),this.config=B(B({},Xt),e),!0){case this.config.timeout>$t:console.warn("timeout\u5927\u4E8E\u53EF\u914D\u7F6E\u4E0A\u9650[10\u5206\u949F]\uFF0C\u5DF2\u91CD\u7F6E\u4E3A\u4E0A\u9650\u6570\u503C"),this.config.timeout=$t;break;case this.config.timeout<100:console.warn("timeout\u5C0F\u4E8E\u53EF\u914D\u7F6E\u4E0B\u9650[100ms]\uFF0C\u5DF2\u91CD\u7F6E\u4E3A\u4E0B\u9650\u6570\u503C"),this.config.timeout=100}return new n(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;let t=e||q.adapter.primaryStorage||Xt.persistence;var i;return t!==this.config.persistence&&(this.config.persistence=t),function(s){let{env:o}=s;Pn[o]=new qe(s),Ln[o]=new qe(j(B({},s),{persistence:"local"}))}(this.config),i=this.config,Dn[i.env]=new mt(i),this.authObj=new vt(this.config),this.authObj}on(e,t){return ne.apply(this,[e,t])}off(e,t){return es.apply(this,[e,t])}callFunction(e,t){return as.apply(this,[e,t])}deleteFile(e,t){return ss.apply(this,[e,t])}getTempFileURL(e,t){return Rn.apply(this,[e,t])}downloadFile(e,t){return os.apply(this,[e,t])}uploadFile(e,t){return ns.apply(this,[e,t])}getUploadMetadata(e,t){return is.apply(this,[e,t])}registerExtension(e){en[e.name]=e}invokeExtension(e,t){return E(this,null,function*(){let i=en[e];if(!i)throw new A({message:`\u6269\u5C55${e} \u5FC5\u987B\u5148\u6CE8\u518C`});return yield i.invoke(t,this)})}useAdapters(e){let{adapter:t,runtime:i}=Xi(e)||{};t&&(q.adapter=t),i&&(q.runtime=i)}},Nn=new _t;function ot(n,e,t){t===void 0&&(t={});var i=/\?/.test(e),s="";for(var o in t)s===""?!i&&(e+="?"):s+="&",s+=o+"="+encodeURIComponent(t[o]);return/^http(s)?:\/\//.test(e+=s)?e:""+n+e}var Tt=class{get(e){let{url:t,data:i,headers:s,timeout:o}=e;return new Promise((a,r)=>{U.request({url:ot("https:",t),data:i,method:"GET",header:s,timeout:o,success(l){a(l)},fail(l){r(l)}})})}post(e){let{url:t,data:i,headers:s,timeout:o}=e;return new Promise((a,r)=>{U.request({url:ot("https:",t),data:i,method:"POST",header:s,timeout:o,success(l){a(l)},fail(l){r(l)}})})}upload(e){return new Promise((t,i)=>{let{url:s,file:o,data:a,headers:r,fileType:l}=e,c=U.uploadFile({url:ot("https:",s),name:"file",formData:Object.assign({},a),filePath:o,fileType:l,header:r,success(f){let d={statusCode:f.statusCode,data:f.data||{}};f.statusCode===200&&a.success_action_status&&(d.statusCode=parseInt(a.success_action_status,10)),t(d)},fail(f){i(new Error(f.errMsg||"uploadFile:fail"))}});typeof e.onUploadProgress=="function"&&c&&typeof c.onProgressUpdate=="function"&&c.onProgressUpdate(f=>{e.onUploadProgress({loaded:f.totalBytesSent,total:f.totalBytesExpectedToSend})})})}},rs={setItem(n,e){U.setStorageSync(n,e)},getItem:n=>U.getStorageSync(n),removeItem(n){U.removeStorageSync(n)},clear(){U.clearStorageSync()}},cs={genAdapter:function(){return{root:{},reqClass:Tt,localStorage:rs,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Nn.useAdapters(cs);var Lt=Nn,ls=Lt.init;Lt.init=function(n){n.env=n.spaceId;let e=ls.call(this,n);e.config.provider="tencent",e.config.spaceId=n.spaceId;let t=e.auth;return e.auth=function(i){let s=t.call(this,i);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach(o=>{var a;s[o]=(a=s[o],function(r){r=r||{};let{success:l,fail:c,complete:f}=Sn(r);if(!(l||c||f))return a.call(this,r);a.call(this,r).then(d=>{l&&l(d),f&&f(d)},d=>{c&&c(d),f&&f(d)})}).bind(s)}),s},e.customAuth=e.auth,e};var tn=Lt;function us(n,e){return E(this,null,function*(){let t=`http://${n}:${e}/system/ping`;try{let s=yield(i={url:t,timeout:500},new Promise((o,a)=>{U.request(j(B({},i),{success(r){o(r)},fail(r){a(r)}}))}));return!(!s.data||s.data.code!==0)}catch(s){return!1}var i})}function ds(n,e){return E(this,null,function*(){let t;for(let i=0;i<n.length;i++){let s=n[i];if(yield us(s,e)){t=s;break}}return{address:t,port:e}})}var hs={"serverless.file.resource.generateProximalSign":"storage/generate-proximal-sign","serverless.file.resource.report":"storage/report","serverless.file.resource.delete":"storage/delete","serverless.file.resource.getTempFileURL":"storage/get-temp-file-url"},ps=class{constructor(n){if(["spaceId","clientSecret"].forEach(e=>{if(!Object.prototype.hasOwnProperty.call(n,e))throw new Error(`${e} required`)}),!n.endpoint)throw new Error("\u96C6\u7FA4\u7A7A\u95F4\u672A\u914D\u7F6EApiEndpoint\uFF0C\u914D\u7F6E\u540E\u9700\u8981\u91CD\u65B0\u5173\u8054\u670D\u52A1\u7A7A\u95F4\u540E\u751F\u6548");this.config=Object.assign({},n),this.config.provider="dcloud",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.adapter=U}request(n,e=!0){return E(this,null,function*(){return n=this.setupRequest(n),Promise.resolve().then(()=>ge.wrappedRequest(n,this.adapter.request))})}requestLocal(n){return new Promise((e,t)=>{this.adapter.request(Object.assign(n,{complete(i){if(i||(i={}),!i.statusCode||i.statusCode>=400){let s=i.data&&i.data.code||"SYS_ERR",o=i.data&&i.data.message||"request:fail";return t(new A({code:s,message:o}))}e({success:!0,result:i.data})}}))})}setupRequest(n){let e=Object.assign({},n,{spaceId:this.config.spaceId,timestamp:Date.now()}),t={"Content-Type":"application/json"};t["x-serverless-sign"]=ge.sign(e,this.config.clientSecret);let i=ut();t["x-client-info"]=encodeURIComponent(JSON.stringify(i));let{token:s}=Se();return t["x-client-token"]=s,{url:this.config.requestUrl,method:"POST",data:e,dataType:"json",header:JSON.parse(JSON.stringify(t))}}setupLocalRequest(n){return E(this,null,function*(){let e=ut(),{token:t}=Se(),i=Object.assign({},n,{spaceId:this.config.spaceId,timestamp:Date.now(),clientInfo:e,token:t}),{address:s,servePort:o}=this.__dev__&&this.__dev__.debugInfo||{},{address:a}=yield ds(s,o);return{url:`http://${a}:${o}/${hs[n.method]}`,method:"POST",data:i,dataType:"json",header:JSON.parse(JSON.stringify({"Content-Type":"application/json"}))}})}callFunction(n){let e={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:n.name,functionArgs:n.data||{}})};return this.request(e,!1)}getUploadFileOptions(n){let e={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(n)};return this.request(e)}reportUploadFile(n){let e={method:"serverless.file.resource.report",params:JSON.stringify(n)};return this.request(e)}uploadFile({filePath:n,cloudPath:e,fileType:t="image",onUploadProgress:i}){if(!e)throw new A({code:"CLOUDPATH_REQUIRED",message:"cloudPath\u4E0D\u53EF\u4E3A\u7A7A"});let s;return this.getUploadFileOptions({cloudPath:e}).then(o=>{let{url:a,formData:r,name:l}=o.result;return s=o.result.fileUrl,new Promise((c,f)=>{let d=this.adapter.uploadFile({url:a,formData:r,name:l,filePath:n,fileType:t,success(p){p&&p.statusCode<400?c(p):f(new A({code:"UPLOAD_FAILED",message:"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"}))},fail(p){f(new A({code:p.code||"UPLOAD_FAILED",message:p.message||p.errMsg||"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"}))}});typeof i=="function"&&d&&typeof d.onProgressUpdate=="function"&&d.onProgressUpdate(p=>{i({loaded:p.totalBytesSent,total:p.totalBytesExpectedToSend})})})}).then(()=>this.reportUploadFile({cloudPath:e})).then(o=>new Promise((a,r)=>{o.success?a({success:!0,filePath:n,fileID:s}):r(new A({code:"UPLOAD_FAILED",message:"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"}))}))}deleteFile({fileList:n}){let e={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:n})};return this.request(e).then(t=>{if(t.success)return t.result;throw new A({code:"DELETE_FILE_FAILED",message:"\u5220\u9664\u6587\u4EF6\u5931\u8D25"})})}getTempFileURL({fileList:n,maxAge:e}={}){if(!Array.isArray(n)||n.length===0)throw new A({code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7D20\u5FC5\u987B\u662F\u975E\u7A7A\u7684\u5B57\u7B26\u4E32"});let t={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:n,maxAge:e})};return this.request(t).then(i=>{if(i.success)return{fileList:i.result.fileList.map(s=>({fileID:s.fileID,tempFileURL:s.tempFileURL}))};throw new A({code:"GET_TEMP_FILE_URL_FAILED",message:"\u83B7\u53D6\u4E34\u65F6\u6587\u4EF6\u94FE\u63A5\u5931\u8D25"})})}},nn={init(n){let e=new ps(n),t={signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!1)}};return e.auth=function(){return t},e.customAuth=e.auth,e}},xe=Z(function(n,e){n.exports=se.enc.Hex});function Fn(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var e=16*Math.random()|0;return(n==="x"?e:3&e|8).toString(16)})}function Un(n="",e={}){let{data:t,functionName:i,method:s,headers:o,signHeaderKeys:a=[],config:r}=e,l=String(Date.now()),c=Fn(),f=Object.assign({},o,{"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":i,"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(a),[p="",m=""]=n.split("?")||[],_=function(h){let u="HMAC-SHA256",g=h.signedHeaders.join(";"),y=h.signedHeaders.map(O=>`${O.toLowerCase()}:${h.headers[O]}
`).join(""),v=dt(h.body).toString(xe),b=`${h.method.toUpperCase()}
${h.path}
${h.query}
${y}
${g}
${v}
`,I=dt(b).toString(xe),C=`${u}
${h.timestamp}
${I}
`,R=En(C,h.secretKey).toString(xe);return`${u} Credential=${h.secretId}, SignedHeaders=${g}, Signature=${R}`}({path:p,query:m,method:s,headers:f,timestamp:l,body:JSON.stringify(t),secretId:r.accessKey,secretKey:r.secretKey,signedHeaders:d.sort()});return{url:`${r.endpoint}${n}`,headers:Object.assign({},f,{Authorization:_})}}function Mn({url:n,data:e,method:t="POST",headers:i={},timeout:s}){return new Promise((o,a)=>{U.request({url:n,method:t,data:typeof e=="object"?JSON.stringify(e):e,header:i,dataType:"json",timeout:s,complete:(r={})=>{let l=i["x-trace-id"]||"";if(!r.statusCode||r.statusCode>=400){let{message:c,errMsg:f,trace_id:d}=r.data||{};return a(new A({code:"SYS_ERR",message:c||f||"request:fail",requestId:d||l}))}o({status:r.statusCode,data:r.data,headers:r.header,requestId:l})}})})}function sn(n,e){let{path:t,data:i,method:s="GET"}=n,{url:o,headers:a}=Un(t,{functionName:"",data:i,method:s,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 Mn({url:o,data:i,method:s,headers:a}).then(r=>{let l=r.data||{};if(!l.success)throw new A({code:r.errCode,message:r.errMsg,requestId:r.requestId});return l.data||{}}).catch(r=>{throw new A({code:r.errCode,message:r.errMsg,requestId:r.requestId})})}function gs(n=""){let e=n.trim().replace(/^cloud:\/\//,""),t=e.indexOf("/");if(t<=0)throw new A({code:"INVALID_PARAM",message:"fileID\u4E0D\u5408\u6CD5"});let i=e.substring(0,t),s=e.substring(t+1);return i!==this.config.spaceId&&console.warn("file ".concat(n," does not belong to env ").concat(this.config.spaceId)),s}function fs(n=""){return"cloud://".concat(this.config.spaceId,"/").concat(n.replace(/^\/+/,""))}var bt=class{constructor(e){this.config=e}signedURL(e,t={}){let i=`/ws/function/${e}`,s=this.config.wsEndpoint.replace(/^ws(s)?:\/\//,""),o=Object.assign({},t,{accessKeyId:this.config.accessKey,signatureNonce:Fn(),timestamp:""+Date.now()}),a=[i,["accessKeyId","authorization","signatureNonce","timestamp"].sort().map(function(f){return o[f]?"".concat(f,"=").concat(o[f]):null}).filter(Boolean).join("&"),`host:${s}`].join(`
`),r=["HMAC-SHA256",dt(a).toString(xe)].join(`
`),l=En(r,this.config.secretKey).toString(xe),c=Object.keys(o).map(f=>`${f}=${encodeURIComponent(o[f])}`).join("&");return`${this.config.wsEndpoint}${i}?${c}&signature=${l}`}},ms=class{constructor(n){if(["spaceId","spaceAppId","accessKey","secretKey"].forEach(e=>{if(!Object.prototype.hasOwnProperty.call(n,e))throw new Error(`${e} required`)}),n.endpoint){if(typeof n.endpoint!="string")throw new Error("endpoint must be string");if(!/^https:\/\//.test(n.endpoint))throw new Error("endpoint must start with https://");n.endpoint=n.endpoint.replace(/\/$/,"")}this.config=Object.assign({},n,{endpoint:n.endpoint||`https://${n.spaceId}.api-hz.cloudbasefunction.cn`,wsEndpoint:n.wsEndpoint||`wss://${n.spaceId}.api-hz.cloudbasefunction.cn`}),this._websocket=new bt(this.config)}callFunction(n){return function(e,t){let{name:i,data:s,async:o=!1,timeout:a}=e,r="POST",l={"x-to-function-name":i};o&&(l["x-function-invoke-type"]="async");let{url:c,headers:f}=Un("/functions/invokeFunction",{functionName:i,data:s,method:r,headers:l,signHeaderKeys:["x-to-function-name"],config:t});return Mn({url:c,data:s,method:r,headers:f,timeout:a}).then(d=>{let p=0;if(o){let m=d.data||{};p=m.errCode==="200"?0:m.errCode,d.data=m.data||{},d.errMsg=m.errMsg}if(p!==0)throw new A({code:p,message:d.errMsg,requestId:d.requestId});return{errCode:p,success:p===0,requestId:d.requestId,result:d.data}}).catch(d=>{throw new A({code:d.errCode,message:d.errMsg,requestId:d.requestId})})}(n,this.config)}uploadFileToOSS({url:n,filePath:e,fileType:t,formData:i,onUploadProgress:s}){return new Promise((o,a)=>{let r=U.uploadFile({url:n,filePath:e,fileType:t,formData:i,name:"file",success(l){l&&l.statusCode<400?o(l):a(new A({code:"UPLOAD_FAILED",message:"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"}))},fail(l){a(new A({code:l.code||"UPLOAD_FAILED",message:l.message||l.errMsg||"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"}))}});typeof s=="function"&&r&&typeof r.onProgressUpdate=="function"&&r.onProgressUpdate(l=>{s({loaded:l.totalBytesSent,total:l.totalBytesExpectedToSend})})})}uploadFile(s){return E(this,arguments,function*({filePath:n,cloudPath:e="",fileType:t="image",onUploadProgress:i}){if(ke(e)!=="string")throw new A({code:"INVALID_PARAM",message:"cloudPath\u5FC5\u987B\u4E3A\u5B57\u7B26\u4E32\u7C7B\u578B"});if(!(e=e.trim()))throw new A({code:"INVALID_PARAM",message:"cloudPath\u4E0D\u53EF\u4E3A\u7A7A"});if(/:\/\//.test(e))throw new A({code:"INVALID_PARAM",message:"cloudPath\u4E0D\u5408\u6CD5"});let o=yield sn({path:"/".concat(e.replace(/^\//,""),"?post_url")},this.config),{file_id:a,upload_url:r,form_data:l}=o,c=l&&l.reduce((f,d)=>(f[d.key]=d.value,f),{});return this.uploadFileToOSS({url:r,filePath:n,fileType:t,formData:c,onUploadProgress:i}).then(()=>({fileID:a}))})}getTempFileURL(e){return E(this,arguments,function*({fileList:n}){return new Promise((t,i)=>{(!n||n.length<0)&&t({code:"INVALID_PARAM",message:"fileList\u4E0D\u80FD\u4E3A\u7A7A\u6570\u7EC4"}),n.length>50&&t({code:"INVALID_PARAM",message:"fileList\u6570\u7EC4\u957F\u5EA6\u4E0D\u80FD\u8D85\u8FC750"});let s=[];for(let o of n){let a;ke(o)!=="string"&&t({code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7D20\u5FC5\u987B\u662F\u975E\u7A7A\u7684\u5B57\u7B26\u4E32"});try{a=gs.call(this,o)}catch(r){console.warn(r.errCode,r.errMsg),a=o}s.push({file_id:a,expire:600})}sn({path:"/?download_url",data:{file_list:s},method:"POST"},this.config).then(o=>{let{file_list:a=[]}=o;t({fileList:a.map(r=>({fileID:fs.call(this,r.file_id),tempFileURL:r.download_url}))})}).catch(o=>i(o))})})}connectWebSocket(n){return E(this,null,function*(){let{name:e,query:t}=n;return U.connectSocket({url:this._websocket.signedURL(e,t),complete:()=>{}})})}},ys={init:n=>{n.provider="alipay";let e=new ms(n);return e.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},e}};function vs({data:n}){let e;e=ut();let t=JSON.parse(JSON.stringify(n||{}));if(Object.assign(t,{clientInfo:e}),!t.uniIdToken){let{token:i}=Se();i&&(t.uniIdToken=i)}return t}var _s=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:"\uFF0C\u4E91\u51FD\u6570[{functionName}]\u5728\u4E91\u7AEF\u4E0D\u5B58\u5728\uFF0C\u8BF7\u68C0\u67E5\u6B64\u4E91\u51FD\u6570\u540D\u79F0\u662F\u5426\u6B63\u786E\u4EE5\u53CA\u8BE5\u4E91\u51FD\u6570\u662F\u5426\u5DF2\u4E0A\u4F20\u5230\u670D\u52A1\u7A7A\u95F4",mode:"append"}],jn=/[\\^$.*+?()[\]{}|]/g,Ts=RegExp(jn.source);function on(n,e,t){return n.replace(new RegExp((i=e)&&Ts.test(i)?i.replace(jn,"\\$&"):i,"g"),t);var i}var at={NONE:"none",REQUEST:"request",RESPONSE:"response",BOTH:"both"},an="_globalUniCloudStatus",bs="_globalUniCloudSecureNetworkCache__{spaceId}",ws="uni-secure-network",qn={SYSTEM_ERROR:{code:2e4,message:"System error"},APP_INFO_INVALID:{code:20101,message:"Invalid client"},GET_ENCRYPT_KEY_FAILED:{code:20102,message:"Get encrypt key failed"}};function Vn(n){let{errSubject:e,subject:t,errCode:i,errMsg:s,code:o,message:a,cause:r}=n||{};return new A({subject:e||t||ws,code:i||o||qn.SYSTEM_ERROR.code,message:s||a,cause:r})}var wt;function rn({secretType:n}={}){return n===at.REQUEST||n===at.RESPONSE||n===at.BOTH}function cn({name:n,data:e={}}={}){return n==="DCloud-clientDB"&&e.redirectTo==="encryption"&&e.action==="getAppClientKey"}function xs({provider:n,spaceId:e,functionName:t}={}){let{appId:i,uniPlatform:s,osName:o}=Cn(),a=s;s==="app"&&(a=o);let r=function({provider:d,spaceId:p}={}){let m=Ui;if(!m)return{};d=function(h){return h==="tencent"?"tcb":h}(d);let _=m.find(h=>h.provider===d&&h.spaceId===p);return _&&_.config}({provider:n,spaceId:e});if(!r||!r.accessControl||!r.accessControl.enable)return!1;let l=r.accessControl.function||{},c=Object.keys(l);if(c.length===0)return!0;let f=function(d,p){let m,_,h;for(let u=0;u<d.length;u++){let g=d[u];g!==p?g!=="*"?g.split(",").map(y=>y.trim()).indexOf(p)>-1&&(_=g):h=g:m=g}return m||_||h}(c,t);if(!f)return!1;if((l[f]||[]).find((d={})=>d.appId===i&&(d.platform||"").toLowerCase()===a.toLowerCase()))return!0;throw console.error(`\u6B64\u5E94\u7528[appId: ${i}, platform: ${a}]\u4E0D\u5728\u4E91\u7AEF\u914D\u7F6E\u7684\u5141\u8BB8\u8BBF\u95EE\u7684\u5E94\u7528\u5217\u8868\u5185\uFF0C\u53C2\u8003\uFF1Ahttps://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client`),Vn(qn.APP_INFO_INVALID)}function ln({functionName:n,result:e,logPvd:t}){}function ks(n){let e=n.callFunction,t=function(i){let s=i.name;i.data=vs.call(n,{data:i.data});let o={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay",dcloud:"dcloud"}[this.config.provider],a=rn(i),r=cn(i),l=a||r;return e.call(this,i).then(c=>(c.errCode=0,!l&&ln.call(this,{functionName:s,result:c,logPvd:o}),Promise.resolve(c)),c=>(!l&&ln.call(this,{functionName:s,result:c,logPvd:o}),c&&c.message&&(c.message=function({message:f="",extraInfo:d={},formatter:p=[]}={}){for(let m=0;m<p.length;m++){let{rule:_,content:h,mode:u}=p[m],g=f.match(_);if(!g)continue;let y=h;for(let v=1;v<g.length;v++)y=on(y,`{$${v}}`,g[v]);for(let v in d)y=on(y,`{${v}}`,d[v]);return u==="replace"?y:f+y}return f}({message:`[${i.name}]: ${c.message}`,formatter:_s,extraInfo:{functionName:s}})),Promise.reject(c)))};n.callFunction=function(i){let{provider:s,spaceId:o}=n.config,a=i.name,r,l;return i.data=i.data||{},r=t,r=r.bind(n),cn(i)?l=t.call(n,i):rn(i)?l=new wt({secretType:i.secretType,uniCloudIns:n}).wrapEncryptDataCallFunction(t.bind(n))(i):xs({provider:s,spaceId:o,functionName:a})?l=new wt({secretType:i.secretType,uniCloudIns:n}).wrapVerifyClientCallFunction(t.bind(n))(i):l=r(i),Object.defineProperty(l,"result",{get:()=>(console.warn("\u5F53\u524D\u8FD4\u56DE\u7ED3\u679C\u4E3APromise\u7C7B\u578B\uFF0C\u4E0D\u53EF\u76F4\u63A5\u8BBF\u95EE\u5176result\u5C5E\u6027\uFF0C\u8BE6\u60C5\u8BF7\u53C2\u8003\uFF1Ahttps://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),l.then(c=>c)}}wt=class{constructor(){throw Vn({message:`Platform ${Et} is not enabled, please check whether secure network module is enabled in your manifest.json`})}};var zn=Symbol("CLIENT_DB_INTERNAL");function We(n,e){return n.then="DoNotReturnProxyWithAFunctionNamedThen",n._internalType=zn,n.inspect=null,n.__v_raw=void 0,new Proxy(n,{get(t,i,s){if(i==="_uniClient")return null;if(typeof i=="symbol")return t[i];if(i in t||typeof i!="string"){let o=t[i];return typeof o=="function"?o.bind(t):o}return e.get(t,i,s)}})}function un(n){return{on:(e,t)=>{n[e]=n[e]||[],n[e].indexOf(t)>-1||n[e].push(t)},off:(e,t)=>{n[e]=n[e]||[];let i=n[e].indexOf(t);i!==-1&&n[e].splice(i,1)}}}var Ss=["db.Geo","db.command","command.aggregate"];function Jn(n,e){return Ss.indexOf(`${n}.${e}`)>-1}function ue(n){switch(ke(n=In(n))){case"array":return n.map(e=>ue(e));case"object":return n._internalType===zn||Object.keys(n).forEach(e=>{n[e]=ue(n[e])}),n;case"regexp":return{$regexp:{source:n.source,flags:n.flags}};case"date":return{$date:n.toISOString()};default:return n}}function Te(n){return n&&n.content&&n.content.$method}var xt=class{constructor(e,t,i){this.content=e,this.prevStage=t||null,this.udb=null,this._database=i}toJSON(){let e=this,t=[e.content];for(;e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map(i=>({$method:i.$method,$param:ue(i.$param)}))}}toString(){return JSON.stringify(this.toJSON())}getAction(){let e=this.toJSON().$db.find(t=>t.$method==="action");return e&&e.$param&&e.$param[0]}getCommand(){return{$db:this.toJSON().$db.filter(e=>e.$method!=="action")}}get isAggregate(){let e=this;for(;e;){let t=Te(e),i=Te(e.prevStage);if(t==="aggregate"&&i==="collection"||t==="pipeline")return!0;e=e.prevStage}return!1}get isCommand(){let e=this;for(;e;){if(Te(e)==="command")return!0;e=e.prevStage}return!1}get isAggregateCommand(){let e=this;for(;e;){let t=Te(e),i=Te(e.prevStage);if(t==="aggregate"&&i==="command")return!0;e=e.prevStage}return!1}getNextStageFn(e){let t=this;return function(){return Ie({$method:e,$param:ue(Array.from(arguments))},t,t._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\u7981\u6B62\u4F7F\u7528set\u65B9\u6CD5")}}_send(e,t){let i=this.getAction(),s=this.getCommand();return s.$db.push({$method:e,$param:ue(t)}),this._database._callCloudFunction({action:i,command:s})}};function Ie(n,e,t){return We(new xt(n,e,t),{get(i,s){let o="db";return i&&i.content&&(o=i.content.$method),Jn(o,s)?Ie({$method:s},i,t):function(){return Ie({$method:s,$param:ue(Array.from(arguments))},i,t)}}})}function rt({path:n,method:e}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...n.map(t=>({$method:t})),{$method:e,$param:this.param}]}}toString(){return JSON.stringify(this.toJSON())}}}var kt=class{constructor({uniClient:e={},isJQL:t=!1}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e._isDefault&&(this._dbCallBacks=fe("_globalUniCloudDatabaseCallback")),t||(this.auth=un(this._authCallBacks)),this._isJQL=t,Object.assign(this,un(this._dbCallBacks)),this.env=We({},{get:(i,s)=>({$env:s})}),this.Geo=We({},{get:(i,s)=>rt({path:["Geo"],method:s})}),this.serverDate=rt({path:[],method:"serverDate"}),this.RegExp=rt({path:[],method:"RegExp"})}getCloudEnv(e){if(typeof e!="string"||!e.trim())throw new Error("getCloudEnv\u53C2\u6570\u9519\u8BEF");return{$env:e.replace("$cloudEnv_","")}}_callback(e,t){let i=this._dbCallBacks;i[e]&&i[e].forEach(s=>{s(...t)})}_callbackAuth(e,t){let i=this._authCallBacks;i[e]&&i[e].forEach(s=>{s(...t)})}multiSend(){let e=Array.from(arguments),t=e.map(i=>{let s=i.getAction(),o=i.getCommand();if(o.$db[o.$db.length-1].$method!=="getTemp")throw new Error("multiSend\u53EA\u652F\u6301\u5B50\u547D\u4EE4\u5185\u4F7F\u7528getTemp");return{action:s,command:o}});return this._callCloudFunction({multiCommand:t,queryList:e})}};function dn(n,e={}){return We(new n(e),{get:(t,i)=>Jn("db",i)?Ie({$method:i},null,t):function(){return Ie({$method:i,$param:ue(Array.from(arguments))},null,t)}})}var Ke=class extends kt{_parseResult(e){return this._isJQL?e.result:e}_callCloudFunction({action:e,command:t,multiCommand:i,queryList:s}){function o(d,p){if(i&&s)for(let m=0;m<s.length;m++){let _=s[m];_.udb&&typeof _.udb.setResult=="function"&&(p?_.udb.setResult(p):_.udb.setResult(d.result.dataList[m]))}}let a=this,r=this._isJQL?"databaseForJQL":"database";function l(d){return a._callback("error",[d]),z(J(r,"fail"),d).then(()=>z(J(r,"complete"),d)).then(()=>(o(null,d),G(N.RESPONSE,{type:ie.CLIENT_DB,content:d}),Promise.reject(d)))}let c=z(J(r,"invoke")),f=this._uniClient;return c.then(()=>f.callFunction({name:"DCloud-clientDB",type:Me.CLIENT_DB,data:{action:e,command:t,multiCommand:i}})).then(d=>{let{code:p,message:m,token:_,tokenExpired:h,systemInfo:u=[]}=d.result;if(u)for(let y=0;y<u.length;y++){let{level:v,message:b,detail:I}=u[y],C="[System Info]"+b;I&&(C=`${C}
\u8BE6\u7EC6\u4FE1\u606F\uFF1A${I}`),(console[v==="warn"?"error":v]||console.log)(C)}if(p)return l(new A({code:p,message:m,requestId:d.requestId}));d.result.errCode=d.result.errCode||d.result.code,d.result.errMsg=d.result.errMsg||d.result.message,_&&h&&(An({token:_,tokenExpired:h}),this._callbackAuth("refreshToken",[{token:_,tokenExpired:h}]),this._callback("refreshToken",[{token:_,tokenExpired:h}]),G(N.REFRESH_TOKEN,{token:_,tokenExpired:h}));let g=[{prop:"affectedDocs",tips:"affectedDocs\u4E0D\u518D\u63A8\u8350\u4F7F\u7528\uFF0C\u8BF7\u4F7F\u7528inserted/deleted/updated/data.length\u66FF\u4EE3"},{prop:"code",tips:"code\u4E0D\u518D\u63A8\u8350\u4F7F\u7528\uFF0C\u8BF7\u4F7F\u7528errCode\u66FF\u4EE3"},{prop:"message",tips:"message\u4E0D\u518D\u63A8\u8350\u4F7F\u7528\uFF0C\u8BF7\u4F7F\u7528errMsg\u66FF\u4EE3"}];for(let y=0;y<g.length;y++){let{prop:v,tips:b}=g[y];if(v in d.result){let I=d.result[v];Object.defineProperty(d.result,v,{get:()=>(console.warn(b),I)})}}return function(y){return z(J(r,"success"),y).then(()=>z(J(r,"complete"),y)).then(()=>{o(y,null);let v=a._parseResult(y);return G(N.RESPONSE,{type:ie.CLIENT_DB,content:v}),Promise.resolve(v)})}(d)},d=>(/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(d.message)&&console.warn("clientDB\u672A\u521D\u59CB\u5316\uFF0C\u8BF7\u5728web\u63A7\u5236\u53F0\u4FDD\u5B58\u4E00\u6B21schema\u4EE5\u5F00\u542FclientDB"),l(new A({code:d.code||"SYSTEM_ERROR",message:d.message,requestId:d.requestId}))))}},le="token\u65E0\u6548\uFF0C\u8DF3\u8F6C\u767B\u5F55\u9875\u9762",Hn="token\u8FC7\u671F\uFF0C\u8DF3\u8F6C\u767B\u5F55\u9875\u9762",Wn={TOKEN_INVALID_TOKEN_EXPIRED:Hn,TOKEN_INVALID_INVALID_CLIENTID:le,TOKEN_INVALID:le,TOKEN_INVALID_WRONG_TOKEN:le,TOKEN_INVALID_ANONYMOUS_USER:le},Is={"uni-id-token-expired":Hn,"uni-id-check-token-failed":le,"uni-id-token-not-exist":le,"uni-id-check-device-feature-failed":le},St=j(B(B({},Wn),Is),{default:"\u7528\u6237\u672A\u767B\u5F55\u6216\u767B\u5F55\u72B6\u6001\u8FC7\u671F\uFF0C\u81EA\u52A8\u8DF3\u8F6C\u767B\u5F55\u9875\u9762"});function hn(n,e){let t="";return t=n?`${n}/${e}`:e,t.replace(/^\//,"")}function pn(n=[],e=""){let t=[],i=[];return n.forEach(s=>{s.needLogin===!0?t.push(hn(e,s.path)):s.needLogin===!1&&i.push(hn(e,s.path))}),{needLoginPage:t,notNeedLoginPage:i}}function Ae(n){return n.split("?")[0].replace(/^\//,"")}function Ot(){return function(n){let e=n&&n.$page&&n.$page.fullPath;return e?(e.charAt(0)!=="/"&&(e="/"+e),e):""}(function(){let n=getCurrentPages();return n[n.length-1]}())}function Kn(){return Ae(Ot())}function As(n="",e={}){if(!n||!(e&&e.list&&e.list.length))return!1;let t=e.list,i=Ae(n);return t.some(s=>s.pagePath===i)}var Cs=!!mn.uniIdRouter,{loginPage:Ce,routerNeedLogin:Es,resToLogin:Ps,needLoginPage:Gn,notNeedLoginPage:Ls,loginPageInTabBar:Os}=function({pages:n=[],subPackages:e=[],uniIdRouter:t={},tabBar:i={}}=mn){let{loginPage:s,needLogin:o=[],resToLogin:a=!0}=t,{needLoginPage:r,notNeedLoginPage:l}=pn(n),{needLoginPage:c,notNeedLoginPage:f}=function(d=[]){let p=[],m=[];return d.forEach(_=>{let{root:h,pages:u=[]}=_,{needLoginPage:g,notNeedLoginPage:y}=pn(u,h);p.push(...g),m.push(...y)}),{needLoginPage:p,notNeedLoginPage:m}}(e);return{loginPage:s,routerNeedLogin:o,resToLogin:a,needLoginPage:[...r,...c],notNeedLoginPage:[...l,...f],loginPageInTabBar:As(s,i)}}();if(Gn.indexOf(Ce)>-1)throw new Error(`Login page [${Ce}] should not be "needLogin", please check your pages.json`);function Yn(n){let e=Kn();if(n.charAt(0)==="/")return n;let[t,i]=n.split("?"),s=t.replace(/^\//,"").split("/"),o=e.split("/");o.pop();for(let a=0;a<s.length;a++){let r=s[a];r===".."?o.pop():r!=="."&&o.push(r)}return o[0]===""&&o.shift(),"/"+o.join("/")+(i?"?"+i:"")}function Bs(n){let e=Ae(Yn(n));return!(Ls.indexOf(e)>-1)&&(Gn.indexOf(e)>-1||Es.some(t=>function(i,s){return new RegExp(s).test(i)}(n,t)))}function Qn({redirect:n}){let e=Ae(n),t=Ae(Ce);return Kn()!==t&&e!==t}function It({api:n,redirect:e}={}){if(!e||!Qn({redirect:e}))return;let t=function(s,o){return s.charAt(0)!=="/"&&(s="/"+s),o?s.indexOf("?")>-1?s+`&uniIdRedirectUrl=${encodeURIComponent(o)}`:s+`?uniIdRedirectUrl=${encodeURIComponent(o)}`:s}(Ce,e);Os?n!=="navigateTo"&&n!=="redirectTo"||(n="switchTab"):n==="switchTab"&&(n="navigateTo");let i={navigateTo:uni.navigateTo,redirectTo:uni.redirectTo,switchTab:uni.switchTab,reLaunch:uni.reLaunch};setTimeout(()=>{i[n]({url:t})},0)}function gn({url:n}={}){let e={abortLoginPageJump:!1,autoToLoginPage:!1},t=function(){let{token:i,tokenExpired:s}=Se(),o;if(i){if(s<Date.now()){let a="uni-id-token-expired";o={errCode:a,errMsg:St[a]}}}else{let a="uni-id-check-token-failed";o={errCode:a,errMsg:St[a]}}return o}();if(Bs(n)&&t){if(t.uniIdRedirectUrl=n,Ee(N.NEED_LOGIN).length>0)return setTimeout(()=>{G(N.NEED_LOGIN,t)},0),e.abortLoginPageJump=!0,e;e.autoToLoginPage=!0}return e}function Ds(){(function(){let e=Ot(),{abortLoginPageJump:t,autoToLoginPage:i}=gn({url:e});t||i&&It({api:"redirectTo",redirect:e})})();let n=["navigateTo","redirectTo","reLaunch","switchTab"];for(let e=0;e<n.length;e++){let t=n[e];uni.addInterceptor(t,{invoke(i){let{abortLoginPageJump:s,autoToLoginPage:o}=gn({url:i.url});return s?i:o?(It({api:t,redirect:Yn(i.url)}),!1):i}})}}function Rs(){this.onResponse(n=>{let{type:e,content:t}=n,i=!1;switch(e){case"cloudobject":i=function(s){if(typeof s!="object")return!1;let{errCode:o}=s||{};return o in St}(t);break;case"clientdb":i=function(s){if(typeof s!="object")return!1;let{errCode:o}=s||{};return o in Wn}(t)}i&&function(s={}){let o=Ee(N.NEED_LOGIN);kn().then(()=>{let a=Ot();if(a&&Qn({redirect:a}))return o.length>0?G(N.NEED_LOGIN,Object.assign({uniIdRedirectUrl:a},s)):void(Ce&&It({api:"navigateTo",redirect:a}))})}(t)})}function Ns(n){(function(e){e.onResponse=function(t){Xe(N.RESPONSE,t)},e.offResponse=function(t){$e(N.RESPONSE,t)}})(n),function(e){e.onNeedLogin=function(t){Xe(N.NEED_LOGIN,t)},e.offNeedLogin=function(t){$e(N.NEED_LOGIN,t)},Cs&&(fe(an).needLoginInit||(fe(an).needLoginInit=!0,kn().then(()=>{Ds.call(e)}),Ps&&Rs.call(e)))}(n),function(e){e.onRefreshToken=function(t){Xe(N.REFRESH_TOKEN,t)},e.offRefreshToken=function(t){$e(N.REFRESH_TOKEN,t)}}(n)}var Zn,Fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Fs=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Us(){let n=Se().token||"",e=n.split(".");if(!n||e.length!==3)return{uid:null,role:[],permission:[],tokenExpired:0};let t;try{t=JSON.parse((i=e[1],decodeURIComponent(Zn(i).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join(""))))}catch(s){throw new Error("\u83B7\u53D6\u5F53\u524D\u7528\u6237\u4FE1\u606F\u51FA\u9519\uFF0C\u8BE6\u7EC6\u9519\u8BEF\u4FE1\u606F\u4E3A\uFF1A"+s.message)}var i;return t.tokenExpired=1e3*t.exp,delete t.exp,delete t.iat,t}Zn=typeof atob!="function"?function(n){if(n=String(n).replace(/[\t\n\f\r ]+/g,""),!Fs.test(n))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var e;n+="==".slice(2-(3&n.length));for(var t,i,s="",o=0;o<n.length;)e=Fe.indexOf(n.charAt(o++))<<18|Fe.indexOf(n.charAt(o++))<<12|(t=Fe.indexOf(n.charAt(o++)))<<6|(i=Fe.indexOf(n.charAt(o++))),s+=t===64?String.fromCharCode(e>>16&255):i===64?String.fromCharCode(e>>16&255,e>>8&255):String.fromCharCode(e>>16&255,e>>8&255,255&e);return s}:atob;var Ms=Z(function(n,e){Object.defineProperty(e,"__esModule",{value:!0});let t="chooseAndUploadFile:ok",i="chooseAndUploadFile:fail";function s(a,r){return a.tempFiles.forEach((l,c)=>{l.name||(l.name=l.path.substring(l.path.lastIndexOf("/")+1)),r&&(l.fileType=r),l.cloudPath=Date.now()+"_"+c+l.name.substring(l.name.lastIndexOf("."))}),a.tempFilePaths||(a.tempFilePaths=a.tempFiles.map(l=>l.path)),a}function o(a,r,{onChooseFile:l,onUploadProgress:c}){return r.then(f=>{if(l){let d=l(f);if(d!==void 0)return Promise.resolve(d).then(p=>p===void 0?f:p)}return f}).then(f=>f===!1?{errMsg:t,tempFilePaths:[],tempFiles:[]}:function(d,p,m=5,_){(p=Object.assign({},p)).errMsg=t;let h=p.tempFiles,u=h.length,g=0;return new Promise(y=>{for(;g<m;)v();function v(){let b=g++;if(b>=u)return void(!h.find(C=>!C.url&&!C.errMsg)&&y(p));let I=h[b];d.uploadFile({provider:I.provider,filePath:I.path,cloudPath:I.cloudPath,fileType:I.fileType,cloudPathAsRealPath:I.cloudPathAsRealPath,onUploadProgress(C){C.index=b,C.tempFile=I,C.tempFilePath=I.path,_&&_(C)}}).then(C=>{I.url=C.fileID,b<u&&v()}).catch(C=>{I.errMsg=C.errMsg||C.message,b<u&&v()})}})}(a,f,5,c))}e.initChooseAndUploadFile=function(a){return function(r={type:"all"}){return r.type==="image"?o(a,function(l){let{count:c,sizeType:f,sourceType:d=["album","camera"],extension:p}=l;return new Promise((m,_)=>{uni.chooseImage({count:c,sizeType:f,sourceType:d,extension:p,success(h){m(s(h,"image"))},fail(h){_({errMsg:h.errMsg.replace("chooseImage:fail",i)})}})})}(r),r):r.type==="video"?o(a,function(l){let{camera:c,compressed:f,maxDuration:d,sourceType:p=["album","camera"],extension:m}=l;return new Promise((_,h)=>{uni.chooseVideo({camera:c,compressed:f,maxDuration:d,sourceType:p,extension:m,success(u){let{tempFilePath:g,duration:y,size:v,height:b,width:I}=u;_(s({errMsg:"chooseVideo:ok",tempFilePaths:[g],tempFiles:[{name:u.tempFile&&u.tempFile.name||"",path:g,size:v,type:u.tempFile&&u.tempFile.type||"",width:I,height:b,duration:y,fileType:"video",cloudPath:""}]},"video"))},fail(u){h({errMsg:u.errMsg.replace("chooseVideo:fail",i)})}})})}(r),r):o(a,function(l){let{count:c,extension:f}=l;return new Promise((d,p)=>{let m=uni.chooseFile;if(typeof wx!="undefined"&&typeof wx.chooseMessageFile=="function"&&(m=wx.chooseMessageFile),typeof m!="function")return p({errMsg:i+" \u8BF7\u6307\u5B9A type \u7C7B\u578B\uFF0C\u8BE5\u5E73\u53F0\u4EC5\u652F\u6301\u9009\u62E9 image \u6216 video\u3002"});m({type:"all",count:c,extension:f,success(_){d(s(_))},fail(_){p({errMsg:_.errMsg.replace("chooseFile:fail",i)})}})})}(r),r)}}}),js=Ci(Ms),qs={auto:"auto",onready:"onready",manual:"manual"};function Xn(n){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 e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach(t=>{e.push(this[t])}),e},(e,t)=>{if(this.loadtime===qs.manual)return;let i=!1,s=[];for(let o=2;o<e.length;o++)e[o]!==t[o]&&(s.push(e[o]),i=!0);e[0]!==t[0]&&(this.mixinDatacomPage.current=this.pageCurrent),this.mixinDatacomPage.size=this.pageSize,this.onMixinDatacomPropsChange(i,s)})},methods:{onMixinDatacomPropsChange(e,t){},mixinDatacomEasyGet({getone:e=!1,success:t,fail:i}={}){this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomError=null,this.mixinDatacomGet().then(s=>{this.mixinDatacomLoading=!1;let{data:o,count:a}=s.result;this.getcount&&(this.mixinDatacomPage.count=a),this.mixinDatacomHasMore=o.length<this.pageSize;let r=e?o.length?o[0]:void 0:o;this.mixinDatacomResData=r,t&&t(r)}).catch(s=>{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=s,this.mixinDatacomError=s,i&&i(s)}))},mixinDatacomGet(e={}){let t;e=e||{},t=typeof __uniX!="undefined"&&__uniX?n.databaseForJQL(this.spaceInfo):n.database(this.spaceInfo);let i=e.action||this.action;i&&(t=t.action(i));let s=e.collection||this.collection;t=Array.isArray(s)?t.collection(...s):t.collection(s);let o=e.where||this.where;o&&Object.keys(o).length&&(t=t.where(o));let a=e.field||this.field;a&&(t=t.field(a));let r=e.foreignKey||this.foreignKey;r&&(t=t.foreignKey(r));let l=e.groupby||this.groupby;l&&(t=t.groupBy(l));let c=e.groupField||this.groupField;c&&(t=t.groupField(c)),(e.distinct!==void 0?e.distinct:this.distinct)===!0&&(t=t.distinct());let f=e.orderby||this.orderby;f&&(t=t.orderBy(f));let d=e.pageCurrent!==void 0?e.pageCurrent:this.mixinDatacomPage.current,p=e.pageSize!==void 0?e.pageSize:this.mixinDatacomPage.size,m=e.getcount!==void 0?e.getcount:this.getcount,_=e.gettree!==void 0?e.gettree:this.gettree,h=e.gettreepath!==void 0?e.gettreepath:this.gettreepath,u={getCount:m},g={limitLevel:e.limitlevel!==void 0?e.limitlevel:this.limitlevel,startWith:e.startwith!==void 0?e.startwith:this.startwith};return _&&(u.getTree=g),h&&(u.getTreePath=g),t=t.skip(p*(d-1)).limit(p).get(u),t}}}}function Vs(n){return function(e,t={}){t=function(l,c={}){return l.customUI=c.customUI||l.customUI,l.parseSystemError=c.parseSystemError||l.parseSystemError,Object.assign(l.loadingOptions,c.loadingOptions),Object.assign(l.errorOptions,c.errorOptions),typeof c.secretMethods=="object"&&(l.secretMethods=c.secretMethods),l}({customUI:!1,loadingOptions:{title:"\u52A0\u8F7D\u4E2D...",mask:!0},errorOptions:{type:"modal",retry:!1}},t);let{customUI:i,loadingOptions:s,errorOptions:o,parseSystemError:a}=t,r=!i;return new Proxy({},{get(l,c){switch(c){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function({fn:f,interceptorName:d,getCallbackArgs:p}={}){return function(...m){return E(this,null,function*(){let _=p?p({params:m}):{},h,u;try{return yield z(J(d,"invoke"),B({},_)),h=yield f(...m),yield z(J(d,"success"),j(B({},_),{result:h})),h}catch(g){throw u=g,yield z(J(d,"fail"),j(B({},_),{error:u})),u}finally{yield z(J(d,"complete"),u?j(B({},_),{error:u}):j(B({},_),{result:h}))}})}}({fn:function f(...d){return E(this,null,function*(){let p;r&&uni.showLoading({title:s.title,mask:s.mask});let m={name:e,type:Me.OBJECT,data:{method:c,params:d}};typeof t.secretMethods=="object"&&function(v,b){let I=b.data.method,C=v.secretMethods||{},R=C[I]||C["*"];R&&(b.secretType=R)}(t,m);let _=!1;try{p=yield n.callFunction(m)}catch(v){_=!0,p={result:new A(v)}}let{errSubject:h,errCode:u,errMsg:g,newToken:y}=p.result||{};if(r&&uni.hideLoading(),y&&y.token&&y.tokenExpired&&(An(y),G(N.REFRESH_TOKEN,B({},y))),u){let v=g;if(_&&a&&(v=(yield a({objectName:e,methodName:c,params:d,errSubject:h,errCode:u,errMsg:g})).errMsg||g),r)if(o.type==="toast")uni.showToast({title:v,icon:"none"});else{if(o.type!=="modal")throw new Error(`Invalid errorOptions.type: ${o.type}`);{let{confirm:I}=yield function(){return E(this,arguments,function*({title:C,content:R,showCancel:O,cancelText:M,confirmText:$}={}){return new Promise((W,ae)=>{uni.showModal({title:C,content:R,showCancel:O,cancelText:M,confirmText:$,success(ee){W(ee)},fail(){W({confirm:!1,cancel:!0})}})})})}({title:"\u63D0\u793A",content:v,showCancel:o.retry,cancelText:"\u53D6\u6D88",confirmText:o.retry?"\u91CD\u8BD5":"\u786E\u5B9A"});if(o.retry&&I)return f(...d)}}let b=new A({subject:h,code:u,message:g,requestId:p.requestId});throw b.detail=p.result,G(N.RESPONSE,{type:ie.CLOUD_OBJECT,content:b}),b}return G(N.RESPONSE,{type:ie.CLOUD_OBJECT,content:p.result}),p.result})},interceptorName:"callObject",getCallbackArgs:function({params:f}={}){return{objectName:e,methodName:c,params:f}}})}})}}function $n(n){return fe(bs.replace("{spaceId}",n.config.spaceId))}function zs(){return E(this,arguments,function*({openid:n,callLoginByWeixin:e=!1}={}){throw $n(this),new Error(`[SecureNetwork] API \`initSecureNetworkByWeixin\` is not supported on platform \`${Et}\``)})}function Js(n){return E(this,null,function*(){let e=$n(this);return e.initPromise||(e.initPromise=zs.call(this,n).then(t=>t).catch(t=>{throw delete e.initPromise,t})),e.initPromise})}function Hs(n){return function({openid:e,callLoginByWeixin:t=!1}={}){return Js.call(n,{openid:e,callLoginByWeixin:t})}}function Ws(n){(function(e){lt=e})(n)}function fn(n){let e={getAppBaseInfo:uni.getSystemInfo,getPushClientId:uni.getPushClientId};return function(t){return new Promise((i,s)=>{e[n](j(B({},t),{success(o){i(o)},fail(o){s(o)}}))})}}var At=class extends ct{constructor(){super(),this._uniPushMessageCallback=this._receivePushMessage.bind(this),this._currentMessageId=-1,this._payloadQueue=[]}init(){return Promise.all([fn("getAppBaseInfo")(),fn("getPushClientId")()]).then(([{appId:e}={},{cid:t}={}]=[])=>{if(!e)throw new Error("Invalid appId, please check the manifest.json file");if(!t)throw new Error("Invalid push client id");this._appId=e,this._pushClientId=t,this._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),this.emit("open"),this._initMessageListener()},e=>{throw this.emit("error",e),this.close(),e})}open(){return E(this,null,function*(){return this.init()})}_isUniCloudSSE(e){if(e.type!=="receive")return!1;let t=e&&e.data&&e.data.payload;return!(!t||t.channel!=="UNI_CLOUD_SSE"||t.seqId!==this._seqId)}_receivePushMessage(e){if(!this._isUniCloudSSE(e))return;let t=e&&e.data&&e.data.payload,{action:i,messageId:s,message:o}=t;this._payloadQueue.push({action:i,messageId:s,message:o}),this._consumMessage()}_consumMessage(){for(;;){let e=this._payloadQueue.find(t=>t.messageId===this._currentMessageId+1);if(!e)break;this._currentMessageId++,this._parseMessagePayload(e)}}_parseMessagePayload(e){let{action:t,messageId:i,message:s}=e;t==="end"?this._end({messageId:i,message:s}):t==="message"&&this._appendMessage({messageId:i,message:s})}_appendMessage({messageId:e,message:t}={}){this.emit("message",t)}_end({messageId:e,message:t}={}){this.emit("end",t),this.close()}_initMessageListener(){uni.onPushMessage(this._uniPushMessageCallback)}_destroy(){uni.offPushMessage(this._uniPushMessageCallback)}toJSON(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}close(){this._destroy(),this.emit("close")}};function Ks(n){n._initPromiseHub||(n._initPromiseHub=new je({createPromise:function(){let e=Promise.resolve();var t;t=1,e=new Promise(s=>{setTimeout(()=>{s()},t)});let i=n.auth();return e.then(()=>i.getLoginState()).then(s=>s?Promise.resolve():i.signInAnonymously())}}))}var Gs={tcb:tn,tencent:tn,aliyun:Wi,private:nn,dcloud:nn,alipay:ys},K=new class{init(n){let e={},t=Gs[n.provider];if(!t)throw new Error("\u672A\u63D0\u4F9B\u6B63\u786E\u7684provider\u53C2\u6570");return e=t.init(n),Ks(e),ks(e),function(i){let s=i.uploadFile;i.uploadFile=function(o){return s.call(this,o)}}(e),function(i){i.database=function(s){if(s&&Object.keys(s).length>0)return i.init(s).database();if(this._database)return this._database;let o=dn(Ke,{uniClient:i});return this._database=o,o},i.databaseForJQL=function(s){if(s&&Object.keys(s).length>0)return i.init(s).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;let o=dn(Ke,{uniClient:i,isJQL:!0});return this._databaseForJQL=o,o}}(e),function(i){i.getCurrentUserInfo=Us,i.chooseAndUploadFile=js.initChooseAndUploadFile(i),Object.assign(i,{get mixinDatacom(){return Xn(i)}}),i.SSEChannel=At,i.initSecureNetworkByWeixin=Hs(i),i.setCustomClientInfo=Ws,i.importObject=Vs(i)}(e),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach(i=>{if(!e[i])return;let s=e[i];e[i]=function(){return s.apply(e,Array.from(arguments))},e[i]=function(o,a){return function(r){let l=!1;a==="callFunction"&&(l=(r&&r.type||Me.DEFAULT)!==Me.DEFAULT);let c=a==="callFunction"&&!l,f=this._initPromiseHub.exec();r=r||{};let{success:d,fail:p,complete:m}=Sn(r),_=f.then(()=>l?Promise.resolve():z(J(a,"invoke"),r)).then(()=>o.call(this,r)).then(h=>l?Promise.resolve(h):z(J(a,"success"),h).then(()=>z(J(a,"complete"),h)).then(()=>(c&&G(N.RESPONSE,{type:ie.CLOUD_FUNCTION,content:h}),Promise.resolve(h))),h=>l?Promise.reject(h):z(J(a,"fail"),h).then(()=>z(J(a,"complete"),h)).then(()=>(G(N.RESPONSE,{type:ie.CLOUD_FUNCTION,content:h}),Promise.reject(h))));if(!(d||p||m))return _;_.then(h=>{d&&d(h),m&&m(h),c&&G(N.RESPONSE,{type:ie.CLOUD_FUNCTION,content:h})},h=>{p&&p(h),m&&m(h),c&&G(N.RESPONSE,{type:ie.CLOUD_FUNCTION,content:h})})}}(e[i],i).bind(e)}),e.init=this.init,e}};(()=>{let n=Mi,e={};if(n&&n.length===1)e=n[0],K=K.init(e),K._isDefault=!0;else{let t=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile"],i=["database","getCurrentUserInfo","importObject"],s;s=n&&n.length>0?"\u5E94\u7528\u6709\u591A\u4E2A\u670D\u52A1\u7A7A\u95F4\uFF0C\u8BF7\u901A\u8FC7uniCloud.init\u65B9\u6CD5\u6307\u5B9A\u8981\u4F7F\u7528\u7684\u670D\u52A1\u7A7A\u95F4":"\u5E94\u7528\u672A\u5173\u8054\u670D\u52A1\u7A7A\u95F4\uFF0C\u8BF7\u5728uniCloud\u76EE\u5F55\u53F3\u952E\u5173\u8054\u670D\u52A1\u7A7A\u95F4",[...t,...i].forEach(o=>{K[o]=function(){if(console.error(s),i.indexOf(o)===-1)return Promise.reject(new A({code:"SYS_ERR",message:s}));console.error(s)}})}if(Object.assign(K,{get mixinDatacom(){return Xn(K)}}),Ns(K),K.addInterceptor=xn,K.removeInterceptor=Vi,K.interceptObject=zi,uni.__uniCloud=K,Et==="app"){let t=qi();t.uniCloud=K,t.UniCloudError=A}})();var ei=K;var Ys=n=>n!==null&&typeof n=="object",Qs=["{","}"],Dt=class{constructor(){this._caches=Object.create(null)}interpolate(e,t,i=Qs){if(!t)return[e];let s=this._caches[e];return s||(s=$s(e,i),this._caches[e]=s),eo(s,t)}},Zs=/^(?:\d)+/,Xs=/^(?:\w)+/;function $s(n,[e,t]){let i=[],s=0,o="";for(;s<n.length;){let a=n[s++];if(a===e){o&&i.push({type:"text",value:o}),o="";let r="";for(a=n[s++];a!==void 0&&a!==t;)r+=a,a=n[s++];let l=a===t,c=Zs.test(r)?"list":l&&Xs.test(r)?"named":"unknown";i.push({value:r,type:c})}else o+=a}return o&&i.push({type:"text",value:o}),i}function eo(n,e){let t=[],i=0,s=Array.isArray(e)?"list":Ys(e)?"named":"unknown";if(s==="unknown")return t;for(;i<n.length;){let o=n[i];switch(o.type){case"text":t.push(o.value);break;case"list":t.push(e[parseInt(o.value,10)]);break;case"named":s==="named"&&t.push(e[o.value]);break}i++}return t}var Bt="zh-Hans",ti="zh-Hant",_e="en",to="fr",no="es",io=Object.prototype.hasOwnProperty,ni=(n,e)=>io.call(n,e),so=new Dt;function oo(n,e){return!!e.find(t=>n.indexOf(t)!==-1)}function ao(n,e){return e.find(t=>n.indexOf(t)===0)}function ii(n,e){if(!n)return;if(n=n.trim().replace(/_/g,"-"),e&&e[n])return n;if(n=n.toLowerCase(),n==="chinese")return Bt;if(n.indexOf("zh")===0)return n.indexOf("-hans")>-1?Bt:n.indexOf("-hant")>-1||oo(n,["-tw","-hk","-mo","-cht"])?ti:Bt;let t=[_e,to,no];e&&Object.keys(e).length>0&&(t=Object.keys(e));let i=ao(n,t);if(i)return i}var Rt=class{constructor({locale:e,fallbackLocale:t,messages:i,watcher:s,formater:o}){this.locale=_e,this.fallbackLocale=_e,this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=o||so,this.messages=i||{},this.setLocale(e||_e),s&&this.watchLocale(s)}setLocale(e){let t=this.locale;this.locale=ii(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach(i=>{i(this.locale,t)})}getLocale(){return this.locale}watchLocale(e){let t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,i=!0){let s=this.messages[e];s?i?Object.assign(s,t):Object.keys(t).forEach(o=>{ni(s,o)||(s[o]=t[o])}):this.messages[e]=t}f(e,t,i){return this.formater.interpolate(e,t,i).join("")}t(e,t,i){let s=this.message;return typeof t=="string"?(t=ii(t,this.messages),t&&(s=this.messages[t])):i=t,ni(s,e)?this.formater.interpolate(s[e],i).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}};function ro(n,e){n.$watchLocale?n.$watchLocale(t=>{e.setLocale(t)}):n.$watch(()=>n.$locale,t=>{e.setLocale(t)})}function co(){return typeof uni!="undefined"&&uni.getLocale?uni.getLocale():typeof global!="undefined"&&global.getLocale?global.getLocale():_e}function si(n,e={},t,i){if(typeof n!="string"){let a=[e,n];n=a[0],e=a[1]}typeof n!="string"&&(n=co()),typeof t!="string"&&(t=typeof __uniConfig!="undefined"&&__uniConfig.fallbackLocale||_e);let s=new Rt({locale:n,fallbackLocale:t,messages:e,watcher:i}),o=(a,r)=>{if(typeof getApp!="function")o=function(l,c){return s.t(l,c)};else{let l=!1;o=function(c,f){let d=getApp().$vm;return d&&(d.$locale,l||(l=!0,ro(d,s))),s.t(c,f)}}return o(a,r)};return{i18n:s,f(a,r,l){return s.f(a,r,l)},t(a,r){return o(a,r)},add(a,r,l=!0){return s.add(a,r,l)},watch(a){return s.watchLocale(a)},getLocale(){return s.getLocale()},setLocale(a){return s.setLocale(a)}}}var V=ce(te());var lo={"uni-load-more.contentdown":"Pull up to show more","uni-load-more.contentrefresh":"loading...","uni-load-more.contentnomore":"No more data"},uo={"uni-load-more.contentdown":"\u4E0A\u62C9\u663E\u793A\u66F4\u591A","uni-load-more.contentrefresh":"\u6B63\u5728\u52A0\u8F7D...","uni-load-more.contentnomore":"\u6CA1\u6709\u66F4\u591A\u6570\u636E\u4E86"},ho={"uni-load-more.contentdown":"\u4E0A\u62C9\u986F\u793A\u66F4\u591A","uni-load-more.contentrefresh":"\u6B63\u5728\u52A0\u8F09...","uni-load-more.contentnomore":"\u6C92\u6709\u66F4\u591A\u6578\u64DA\u4E86"},po={en:lo,"zh-Hans":uo,"zh-Hant":ho},go={"uni-load-more":{"":{flexDirection:"row",height:40,alignItems:"center",justifyContent:"center"}},"uni-load-more__text":{"":{fontSize:14,marginLeft:8}},"uni-load-more__img":{"":{width:24,height:24}},"uni-load-more__img--nvue":{"":{color:"#666666"}},"uni-load-more__img--android":{"":{width:24,height:24,transform:"rotate(0deg)"}},"uni-load-more__img--ios":{"":{width:24,height:24,transform:"rotate(0deg)"}}},oi;setTimeout(()=>{oi=uni.getSystemInfoSync().platform},16);var{t:Nt}=si(po),fo={name:"UniLoadMore",emits:["clickLoadMore"],props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},iconType:{type:String,default:"auto"},iconSize:{type:Number,default:24},color:{type:String,default:"#777777"},contentText:{type:Object,default(){return{contentdown:"",contentrefresh:"",contentnomore:""}}},showText:{type:Boolean,default:!0}},data(){return{webviewHide:!1,platform:oi,imgBase64:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QzlBMzU3OTlEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QzlBMzU3OUFEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpDOUEzNTc5N0Q5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDOUEzNTc5OEQ5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pt+ALSwAAA6CSURBVHja1FsLkFZVHb98LM+F5bHL8khA1iSeiyQBCRM+YGqKUnnJTDLGI0BGZlKDIU2MMglUiDApEZvSsZnQtBRJtKwQNKQMFYeRDR10WOLd8ljYXdh+v8v5fR3Od+797t1dnOnO/Ofce77z+J//+b/P+ZqtXbs2sJ9MJhNUV1cHJ06cCJo3bx7EPc2aNcvpy7pWrVoF+/fvDyoqKoI2bdoE9fX1F7TjN8a+EXBn/fkfvw942Tf+wYMHg9mzZwfjxo0LDhw4EPa1x2MbFw/fOGfPng1qa2tzcCkILsLDydq2bRsunpOTMM7TD/W/tZDZhPdeKD+yGxHhdu3aBV27dg3OnDlzMVANMheLAO3btw8KCwuDmpoaX5OxbgUIMEq7K8IcPnw4KCsrC/r37x8cP378/4cAXAB3vqSkJMuiDhTkw+XcuXNhOWbMmKBly5YhUT8xArhyFvP0BfwRsAuwxJZJsm/nzp2DTp06he/OU+cZ64K6o0ePBkOHDg2GDx8e6gEbJ5Q/NHNuAJQ1hgBeHUDlR7nVTkY8rQAvAi4z34vR/mPs1FoRsaCgIJThI0eOBC1atEiFGGV+5MiRoS45efJkqFjJFXV1dQuA012m2WcwTw98fy6CqBdsaiIO4CScrGPHjvk4odhavPquRtFWXEC25VgkREKOCh/qDSq+vn37htzD/mZTOmOc5U7zKzBPEedygWshcDyWvs30igAbU+6oyMgJBCFhwQE0fccxN60Ay9iebbjoDh06hMowjQxT4fXq1SskArmHZpkArvixp/kWzHdMeArExSJEaiXIjjRjRJ4DaAGWpibLzXN3Fm1vA5teBgh3j1Rv3bp1YgKwPdmf2p9zcyNYYgPKMfY0T5f5nNYdw158nJ8QawW4CLKwiOBSEgO/hok2eBydR+3dYH+PLxA5J8Vv0KBBwenTp0P2JWAx6+yFEBfs8lMY+y0SWMBNI9E4ThKi58VKTg3FQZS1RQF1cz27eC0QHMu+3E0SkUowjhVt5VdaWhp07949ZHv2Qd1EjDXM2cla1M0nl3GxAs3J9yREzyTdFVKVFOaE9qRA8GM0WebRuo9JGZKA7Mv2SeS/Z8+eoQ9BArMfFrLGo6jvxbhHbJZnKX2Rzz1O7QhJJ9Cs2ZMaWIyq/zhdeqPNfIoHd58clIQD+JSXl4dKlyIAuBdVXZwFVWKspSSoxE++h8x4k3uCnEhE4I5KwRiFWGOU0QWKiCYLbdoRMRKAu2kQ9vkfLU6dOhX06NEjlH+yMRZSinnuyWnYosVcji8CEA/6Cg2JF+IIUBqnGKUTCNwtwBN4f89RiK1R96DEgO2o0NDmtEdvVFdVVYV+P3UAPUEs6GFwV3PHmXkD4vh74iDFJysVI/MlaQhwKeBNTLYX5VuA8T4/gZxA4MRGFxDB6R7OmYPfyykGRJbyie+XnGYnQIC/coH9+vULiYrxrkL9ZA9+0ykaHIfEpM7ge8TiJ2CsHYwyMfafAF1yCGBHYIbCVDjDjKt7BeB51D+LgQa6OkG7IDYEEtvQ7lnXLKLtLdLuJBpE4gPUXcW2+PkZwOex+4cGDhwYDBkyRL7/HFcEwUGPo/8uWRUpYnfxGHco8HkewLHLyYmAawAPuIFZxhOpDfJQ8gbUv41yORAptMWBNr6oqMhWird5+u+iHmBb2nhjDV7HWBNQTgK8y11l5NetWzc5ULscAtSj7nbNI0skhWeUZCc0W4nyH/jO4Vz0u1IeYhbk4AiwM6tjxIWByHsoZ9qcIBPJd/y+DwPfBESOmCa/QF3WiZHucLlEDpNxcNhmheEOPgdQNx6/VZFQzFZ5TN08AHXQt2Ii3EdyFuUsPtTcGPhW5iMiCNELvz+Gdn9huG4HUJaW/w3g0wxV0XaG7arG2WeKiUWYM4Y7GO5ezshTARbbWGw/DvXkpp/ivVvE0JVoMxN4rpGzJMhE5Pl+xlATsDIqikP9F9D2z3h9nOksEUFhK+qO4rcPkoalMQ/HqJLIyb3F3JdjrCcw1yZ8joyJLR5gCo54etlag7qIoeNh1N1BRYj3DTFJ0elotxPlVzkGuYAmL0VSJVGAJA41c4Z6A3BzTLfn0HYwYKEI6CUAMzZEWvLsIcQOo1AmmyyM72nHJCfYsogflGV6jEk9vyQZXSuq6w4c16NsGcGZbwOPr+H1RkOk2LEzjNepxQkihHSCQ4ynAYNRx2zMKV92CQMWqj8J0BRE8EShxRFN6YrfCRhC0x3r/Zm4IbQCcmJoV0kMamllccR6FjHqUC5F2R/wS2dcymOlfAKOS4KmzQb5cpNC2MC7JhVn5wjXoJ44rYhLh8n0eXOCorJxa7POjbSlCGVczr34/RsAmrcvo9s+wGp3tzVhntxiXiJ4nvEYb4FJkf0O8HocAePmLvCxnL0AORraVekJk6TYjDabRVXfRE2lCN1h6ZQRN1+InUbsCpKwoBZHh0dODN9JBCUffItXxEavTQkUtnfTVAplCWL3JISz29h4NjotnuSsQKJCk8dF+kJR6RARjrqFVmfPnj3ZbK8cIJ0msd6jgHPGtfVTQ8VLmlvh4mct9sobRmPic0DyDQQnx/NlfYUgyz59+oScsH379pAwXABD32nTpoUHIToESeI5mnbE/UqDdyLcafEBf2MCqgC7NwxIbMREJQ0g4D4sfJwnD+AmRrII05cfMWJE+L1169bQr+fip06dGp4oJ83lmYd5wj/EmMa4TaHivo4EeCguYZBnkB5g2aWA69OIEnUHOaGysjIYMGBAMGnSpODYsWPZwCpFmm4lNq+4gSLQA7jcX8DwtjEyRC8wjabnXEx9kfWnTJkSJkAo90xpJVV+FmcVNeYAF5zWngS4C4O91MBxmAv8blLEpbjI5sz9MTdAhcgkCT1RO8mZkAjfiYpTEvStAS53Uw1vAiUGgZ3GpuQEYvoiBqlIan7kSDHnTwJQFNiPu0+5VxCVYhcZIjNrdXUDdp+Eq5AZ3Gkg8QAyVZRZIk4Tl4QAbF9cXJxNYZMAtAokgs4BrNxEpCtteXg7DDTMDKYNSuQdKsnJBek7HxewvxaosWxLYXtw+cJp18217wql4aKCfBNoEu0O5VU+PhctJ0YeXD4C6JQpyrlpSLTojpGGGN5YwNziChdIZLk4lvLcFJ9jMX3QdiImY9bmGQU+TRUL5CHITTRlgF8D9ouD1MfmLoEPl5xokIumZ2cfgMpHt47IW9N64Hsh7wQYYjyIugWuF5fCqYncXRd5vPMWyizzvhi/32+nvG0dZc9vR6fZOu0md5e+uC408FvKSIOZwXlGvxPv95izA2Vtvg1xKFWARI+vMX66HUhpQQb643uW1bSjuTWyw2SBvDrBvjFic1eGGlz5esq3ko9uSIlBRqPuFcCv8F4WIcN12nVaBd0SaYwI6PDDImR11JkqgHcPmQssjxIn6bUshygDFJUTxPMpHk+jfjPgupgdnYV2R/g7xSjtpah8RJBewhwf0gGK6XI92u4wXFEU40afJ4DN4h5LcAd+40HI3JgJecuT0c062W0i2hQJUTcxan3/CMW1PF2K6bbA+Daz4xRs1D3Br1Cm0OihKCqizW78/nXAF/G5TXrEcVzaNMH6CyMswqsAHqDyDLEyou8lwOXnKF8DjI6KjV3KzMBiXkDH8ij/H214J5A596ekrZ3F0zXlWeL7+P5eUrNo3/QwC15uxthuzidy7DzKRwEDaAViiDgKbTbz7CJnzo0bN7pIfIiid8SuPwn25o3QCmpnyjlZkyxPP8EomCJzrGb7GJMx7tNsq4MT2xMUYaiErZOluTzKsnz3gwCeCZyVRZJfYplNEokEjwrPtxlxjeYAk+F1F74VAzPxQRNYYdtpOUvWs8J1sGhBJMNsb7igN8plJs1eSmLIhLKE4rvaCX27gOhLpLOsIzJ7qn/i+wZzcvSOZ23/du8TZjwV8zHIXoP4R3ifBxiFz1dcVpa3aPntPE+c6TmIWE9EtcMmAcPdWAhYhAXxcLOQi9L1WhD1Sc8p1d2oL7XGiRKp8F4A2i8K/nfI+y/gsTDJ/YC/8+AD5Uh04KHiGl+cIFPnBDDrPMjwRGkLXyxO4VGbfQWnDH2v0bVWE3C9QOXlepbgjEfIJQI6XDG3z5ahD9cw2pS78ipB85wyScNTvsVzlzzhL8/jRrnmVjfFJK/m3m4nj9vbgQTguT8XZTjsm672R5uJKEaQmBI/c58gyus8ZDagLpEVSJBIyHp4jn++xqPV71OgQgJYEWOtZ/haxRtKmWOBu8xdBLftWltsY84zE6WIEy/eIOWL+BaayMx+KHtL7EAkqdNDLiEXmEMUHniedtJqg9HmZtfvt26vNi0BdG3Ft3g8ZOf7PAu59TxtzivLNIekyi+wD1i8CuUiD9FXAa8C+/xS3JPmZnomyc7H+fb4/Se0bk41Fel621r4cgVxbq91V4jVqwB7HTe2M7jgB+QWHavZkDRPmZcASoZEmBx6i75bGjPcMdL4/VKGFAGWZkGzPG0XAbdL9A81G5LOmUnC9hHKJeO7dcUMjblSl12867ElFTtaGl20xvvLGPdVz/8TVuU7y0x1PG7vtNg24oz9Uo/Z412++VFWI7Fcog9tu9Lm6gvRmIPv9x1xmQAu6RDkXtbOtlGEmpgD5Nvnyc0dcv0EE6cfdi1HmhMf9wDF3k3gtRvEedhxjpgfqPb9PU9iEJHnyOUA7bQUXh6kq/D7l2iTjWv7XOD530BDr8jIrus+srXjt4MzumJMHuTsBa63YKE1+RR5lBjEikCCnWKWiHdzOgKO+nRIBAF88za/IFmJ3eMZov4CYxGBabcpGL8EYx+SeMXJeRwHNsV/h+vdxeuhEpN3ZyNY78Gm2fknJxVGhyjixPiQvVkNzT1elD9Py/aTAL64Hb9vcYmC9zfdXdT/C1LeGbg4rnBaAihDFJH12W5ulfNCNe/xTsP3bp8ikzJs5BF+5PNfAQYAPaseTdsEcaYAAAAASUVORK5CYII="}},computed:{iconSnowWidth(){return(Math.floor(this.iconSize/24)||1)*2},contentdownText(){return this.contentText.contentdown||Nt("uni-load-more.contentdown")},contentrefreshText(){return this.contentText.contentrefresh||Nt("uni-load-more.contentrefresh")},contentnomoreText(){return this.contentText.contentnomore||Nt("uni-load-more.contentnomore")}},mounted(){var n=getCurrentPages(),e=n[n.length-1],t=e.$getAppWebview();t.addEventListener("hide",()=>{this.webviewHide=!0}),t.addEventListener("show",()=>{this.webviewHide=!1})},methods:{onClick(){this.$emit("clickLoadMore",{detail:{status:this.status}})}}};function mo(n,e,t,i,s,o){return(0,V.openBlock)(),(0,V.createElementBlock)("view",{class:"uni-load-more",onClick:e[0]||(e[0]=(...a)=>o.onClick&&o.onClick(...a)),renderWhole:!0},[!s.webviewHide&&t.status==="loading"&&t.showIcon?((0,V.openBlock)(),(0,V.createElementBlock)("loading-indicator",{key:0,style:(0,V.normalizeStyle)({color:t.color,width:t.iconSize+"px",height:t.iconSize+"px"}),animating:!0,class:"uni-load-more__img uni-load-more__img--nvue"},null,4)):(0,V.createCommentVNode)("",!0),t.showText?((0,V.openBlock)(),(0,V.createElementBlock)("u-text",{key:1,class:"uni-load-more__text",style:(0,V.normalizeStyle)({color:t.color})},(0,V.toDisplayString)(t.status==="more"?o.contentdownText:t.status==="loading"?o.contentrefreshText:o.contentnomoreText),5)):(0,V.createCommentVNode)("",!0)])}var ai=Y(fo,[["render",mo],["styles",[go]]]);var T=ce(te());var yo={"uni-data-loading":{"":{flexDirection:"row",justifyContent:"center",alignItems:"center",height:36,paddingLeft:10,color:"#999999"}},"uni-data-checklist":{"":{position:"relative",zIndex:0,flex:1}},"checklist-group":{".uni-data-checklist ":{flexDirection:"row",flexWrap:"wrap"},".uni-data-checklist .is-list":{flexDirection:"column"}},"checklist-box":{".uni-data-checklist .checklist-group ":{flexDirection:"row",alignItems:"center",position:"relative",marginTop:5,marginRight:25,marginBottom:5,marginLeft:0},".uni-data-checklist .checklist-group .is--button":{marginRight:10,paddingTop:5,paddingRight:10,paddingBottom:5,paddingLeft:10,borderWidth:1,borderStyle:"solid",borderColor:"#DCDFE6",borderRadius:3,transitionProperty:"borderColor",transitionDuration:200},".uni-data-checklist .checklist-group .is--button.is-disable":{borderWidth:1,borderStyle:"solid",borderColor:"#eeeeee",opacity:.4},".uni-data-checklist .checklist-group .is--button.is-checked":{borderColor:"#2979ff"},".uni-data-checklist .checklist-group .is--button.is-checked.is-disable":{opacity:.4},".uni-data-checklist .checklist-group .is--tag":{marginRight:10,paddingTop:5,paddingRight:10,paddingBottom:5,paddingLeft:10,borderWidth:1,borderStyle:"solid",borderColor:"#DCDFE6",borderRadius:3,backgroundColor:"#f5f5f5"},".uni-data-checklist .checklist-group .is--tag.is-disable":{opacity:.4},".uni-data-checklist .checklist-group .is--tag.is-checked":{backgroundColor:"#2979ff",borderColor:"#2979ff"},".uni-data-checklist .checklist-group .is--list":{paddingTop:10,paddingRight:15,paddingBottom:10,paddingLeft:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0},".uni-data-checklist .checklist-group .is--list.is-list-border":{borderTopWidth:1,borderTopStyle:"solid",borderTopColor:"#eeeeee"}},hidden:{".uni-data-checklist .checklist-group .checklist-box ":{position:"absolute",opacity:0}},"checklist-content":{".uni-data-checklist .checklist-group .checklist-box ":{flex:1,flexDirection:"row",alignItems:"center",justifyContent:"space-between"}},"checklist-text":{".uni-data-checklist .checklist-group .checklist-box .checklist-content ":{fontSize:14,color:"#666666",marginLeft:5,lineHeight:14},".uni-data-checklist .checklist-group .checklist-box.is--default.is-disable ":{color:"#999999"},".uni-data-checklist .checklist-group .checklist-box.is--default.is-checked ":{color:"#2979ff"},".uni-data-checklist .checklist-group .checklist-box.is--default.is-checked.is-disable ":{opacity:.4},".uni-data-checklist .checklist-group .checklist-box.is--button.is-disable ":{color:"#999999"},".uni-data-checklist .checklist-group .checklist-box.is--button.is-checked ":{color:"#2979ff"},".uni-data-checklist .checklist-group .checklist-box.is--tag ":{marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,color:"#666666"},".uni-data-checklist .checklist-group .checklist-box.is--tag.is-checked ":{color:"#ffffff"},".uni-data-checklist .checklist-group .checklist-box.is--list.is-disable ":{color:"#999999"},".uni-data-checklist .checklist-group .checklist-box.is--list.is-checked ":{color:"#2979ff"},".uni-data-checklist .checklist-group .checklist-box.is--list.is-checked.is-disable ":{opacity:.4}},checkobx__list:{".uni-data-checklist .checklist-group .checklist-box .checklist-content ":{borderRightWidth:1,borderRightColor:"#007aff",borderRightStyle:"solid",borderBottomWidth:1,borderBottomColor:"#007aff",borderBottomStyle:"solid",height:12,width:6,left:-5,transformOrigin:"center",transform:"rotate(45deg)",opacity:0},".uni-data-checklist .checklist-group .checklist-box.is--list.is-checked .checklist-content ":{opacity:1,borderColor:"#2979ff"}},checkbox__inner:{".uni-data-checklist .checklist-group .checklist-box ":{position:"relative",width:16,height:16,borderWidth:1,borderStyle:"solid",borderColor:"#DCDFE6",borderRadius:4,backgroundColor:"#ffffff",zIndex:1},".uni-data-checklist .checklist-group .checklist-box.is--default.is-disable ":{backgroundColor:"#F2F6FC",borderColor:"#DCDFE6"},".uni-data-checklist .checklist-group .checklist-box.is--default.is-checked ":{borderColor:"#2979ff",backgroundColor:"#2979ff"},".uni-data-checklist .checklist-group .checklist-box.is--default.is-checked.is-disable ":{opacity:.4},".uni-data-checklist .checklist-group .checklist-box.is--button.is-disable ":{backgroundColor:"#F2F6FC",borderColor:"#DCDFE6"},".uni-data-checklist .checklist-group .checklist-box.is--button.is-checked ":{borderColor:"#2979ff",backgroundColor:"#2979ff"},".uni-data-checklist .checklist-group .checklist-box.is--list.is-disable ":{backgroundColor:"#F2F6FC",borderColor:"#DCDFE6"},".uni-data-checklist .checklist-group .checklist-box.is--list.is-checked ":{borderColor:"#2979ff",backgroundColor:"#2979ff"},".uni-data-checklist .checklist-group .checklist-box.is--list.is-checked.is-disable ":{opacity:.4}},"checkbox__inner-icon":{".uni-data-checklist .checklist-group .checklist-box .checkbox__inner ":{position:"absolute",top:2,left:5,height:8,width:4,borderRightWidth:1,borderRightColor:"#ffffff",borderRightStyle:"solid",borderBottomWidth:1,borderBottomColor:"#ffffff",borderBottomStyle:"solid",opacity:0,transformOrigin:"center",transform:"rotate(40deg)"},".uni-data-checklist .checklist-group .checklist-box.is--default.is-checked .checkbox__inner ":{opacity:1,transform:"rotate(45deg)"},".uni-data-checklist .checklist-group .checklist-box.is--button.is-checked .checkbox__inner ":{opacity:1,transform:"rotate(45deg)"},".uni-data-checklist .checklist-group .checklist-box.is--list.is-checked .checkbox__inner ":{opacity:1,transform:"rotate(45deg)"}},radio__inner:{".uni-data-checklist .checklist-group .checklist-box ":{justifyContent:"center",alignItems:"center",position:"relative",width:16,height:16,borderWidth:1,borderStyle:"solid",borderColor:"#DCDFE6",borderRadius:16,backgroundColor:"#ffffff",zIndex:1},".uni-data-checklist .checklist-group .checklist-box.is--default.is-disable ":{backgroundColor:"#F2F6FC",borderColor:"#DCDFE6"},".uni-data-checklist .checklist-group .checklist-box.is--default.is-checked ":{borderColor:"#2979ff"},".uni-data-checklist .checklist-group .checklist-box.is--default.is-checked.is-disable ":{opacity:.4},".uni-data-checklist .checklist-group .checklist-box.is--button.is-disable ":{backgroundColor:"#F2F6FC",borderColor:"#DCDFE6"},".uni-data-checklist .checklist-group .checklist-box.is--button.is-checked ":{borderColor:"#2979ff"},".uni-data-checklist .checklist-group .checklist-box.is--list.is-checked ":{borderColor:"#2979ff"}},"radio__inner-icon":{".uni-data-checklist .checklist-group .checklist-box .radio__inner ":{width:8,height:8,borderRadius:10,opacity:0},".uni-data-checklist .checklist-group .checklist-box.is--default.is-checked .radio__inner ":{opacity:1,backgroundColor:"#2979ff"},".uni-data-checklist .checklist-group .checklist-box.is--button.is-checked .radio__inner ":{opacity:1,backgroundColor:"#2979ff"},".uni-data-checklist .checklist-group .checklist-box.is--list.is-checked .radio__inner ":{opacity:1,backgroundColor:"#2979ff"}},"@TRANSITION":{"checklist-box":{property:"borderColor",duration:200}}},vo={name:"uniDataChecklist",mixins:[ei.mixinDatacom||{}],emits:["input","update:modelValue","change"],props:{mode:{type:String,default:"default"},multiple:{type:Boolean,default:!1},value:{type:[Array,String,Number],default(){return""}},modelValue:{type:[Array,String,Number],default(){return""}},localdata:{type:Array,default(){return[]}},min:{type:[Number,String],default:""},max:{type:[Number,String],default:""},wrap:{type:Boolean,default:!1},icon:{type:String,default:"left"},selectedColor:{type:String,default:""},selectedTextColor:{type:String,default:""},emptyText:{type:String,default:"\u6682\u65E0\u6570\u636E"},disabled:{type:Boolean,default:!1},map:{type:Object,default(){return{text:"text",value:"value"}}}},watch:{localdata:{handler(n){this.range=n,this.dataList=this.getDataList(this.getSelectedValue(n))},deep:!0},mixinDatacomResData(n){this.range=n,this.dataList=this.getDataList(this.getSelectedValue(n))},value(n){this.dataList=this.getDataList(n)},modelValue(n){this.dataList=this.getDataList(n)}},data(){return{dataList:[],range:[],contentText:{contentdown:"\u67E5\u770B\u66F4\u591A",contentrefresh:"\u52A0\u8F7D\u4E2D",contentnomore:"\u6CA1\u6709\u66F4\u591A"},isLocal:!0,styles:{selectedColor:"#2979ff",selectedTextColor:"#666"},isTop:0}},computed:{dataValue(){return this.value===""?this.modelValue:this.modelValue===""?this.value:this.value}},created(){this.localdata&&this.localdata.length!==0?(this.isLocal=!0,this.range=this.localdata,this.dataList=this.getDataList(this.getSelectedValue(this.range))):this.collection&&(this.isLocal=!1,this.loadData())},methods:{loadData(){this.mixinDatacomGet().then(n=>{this.mixinDatacomResData=n.result.data,this.mixinDatacomResData.length===0?(this.isLocal=!1,this.mixinDatacomErrorMessage=this.emptyText):this.isLocal=!0}).catch(n=>{this.mixinDatacomErrorMessage=n.message})},getForm(n="uniForms"){let e=this.$parent,t=e.$options.name;for(;t!==n;){if(e=e.$parent,!e)return!1;t=e.$options.name}return e},change(n){let e=n.detail.value,t={value:[],data:[]};if(this.multiple)this.range.forEach(i=>{e.includes(i[this.map.value]+"")&&(t.value.push(i[this.map.value]),t.data.push(i))});else{let i=this.range.find(s=>s[this.map.value]+""===e);i&&(t={value:i[this.map.value],data:i})}this.$emit("input",t.value),this.$emit("update:modelValue",t.value),this.$emit("change",{detail:t}),this.multiple?this.dataList=this.getDataList(t.value,!0):this.dataList=this.getDataList(t.value)},getDataList(n){let e=JSON.parse(JSON.stringify(this.range)),t=[];return this.multiple?Array.isArray(n)||(n=[]):Array.isArray(n)&&n.length&&(n=n[0]),e.forEach((i,s)=>{if(i.disabled=i.disable||i.disabled||!1,this.multiple)if(n.length>0){let o=n.find(a=>a===i[this.map.value]);i.selected=o!==void 0}else i.selected=!1;else i.selected=n===i[this.map.value];t.push(i)}),this.setRange(t)},setRange(n){let e=n.filter(s=>s.selected),t=Number(this.min)||0,i=Number(this.max)||"";return n.forEach((s,o)=>{this.multiple&&(e.length<=t&&e.find(r=>r[this.map.value]===s[this.map.value])!==void 0&&(s.disabled=!0),e.length>=i&&i!==""&&e.find(r=>r[this.map.value]===s[this.map.value])===void 0&&(s.disabled=!0)),this.setStyles(s,o),n[o]=s}),n},setStyles(n,e){n.styleBackgroud=this.setStyleBackgroud(n),n.styleIcon=this.setStyleIcon(n),n.styleIconText=this.setStyleIconText(n),n.styleRightIcon=this.setStyleRightIcon(n)},getSelectedValue(n){if(!this.multiple)return this.dataValue;let e=[];return n.forEach(t=>{t.selected&&e.push(t[this.map.value])}),this.dataValue.length>0?this.dataValue:e},setStyleBackgroud(n){let e={},t=this.selectedColor?this.selectedColor:"#2979ff";this.selectedColor&&(this.mode!=="list"&&(e["border-color"]=n.selected?t:"#DCDFE6"),this.mode==="tag"&&(e["background-color"]=n.selected?t:"#f5f5f5"));let i="";for(let s in e)i+=`${s}:${e[s]};`;return i},setStyleIcon(n){let e={},t="";if(this.selectedColor){let i=this.selectedColor?this.selectedColor:"#2979ff";e["background-color"]=n.selected?i:"#fff",e["border-color"]=n.selected?i:"#DCDFE6",!n.selected&&n.disabled&&(e["background-color"]="#F2F6FC",e["border-color"]=n.selected?i:"#DCDFE6")}for(let i in e)t+=`${i}:${e[i]};`;return t},setStyleIconText(n){let e={},t="";if(this.selectedColor){let i=this.selectedColor?this.selectedColor:"#2979ff";this.mode==="tag"?e.color=n.selected?this.selectedTextColor?this.selectedTextColor:"#fff":"#666":e.color=n.selected?this.selectedTextColor?this.selectedTextColor:i:"#666",!n.selected&&n.disabled&&(e.color="#999")}for(let i in e)t+=`${i}:${e[i]};`;return t},setStyleRightIcon(n){let e={},t="";this.mode==="list"&&(e["border-color"]=n.selected?this.styles.selectedColor:"#DCDFE6");for(let i in e)t+=`${i}:${e[i]};`;return t}}};function _o(n,e,t,i,s,o){let a=pe((0,T.resolveDynamicComponent)("uni-load-more"),ai),r=(0,T.resolveComponent)("checkbox"),l=(0,T.resolveComponent)("label"),c=(0,T.resolveComponent)("checkbox-group"),f=(0,T.resolveComponent)("radio"),d=(0,T.resolveComponent)("radio-group");return(0,T.openBlock)(),(0,T.createElementBlock)("view",{class:"uni-data-checklist",style:(0,T.normalizeStyle)({"margin-top":s.isTop+"px"}),renderWhole:!0},[s.isLocal?((0,T.openBlock)(),(0,T.createElementBlock)(T.Fragment,{key:1},[t.multiple?((0,T.openBlock)(),(0,T.createBlock)(c,{key:0,class:(0,T.normalizeClass)(["checklist-group",{"is-list":t.mode==="list"||t.wrap}]),onChange:o.change},{default:(0,T.withCtx)(()=>[((0,T.openBlock)(!0),(0,T.createElementBlock)(T.Fragment,null,(0,T.renderList)(s.dataList,(p,m)=>((0,T.openBlock)(),(0,T.createBlock)(l,{class:(0,T.normalizeClass)(["checklist-box",["is--"+t.mode,p.selected?"is-checked":"",t.disabled||p.disabled?"is-disable":"",m!==0&&t.mode==="list"?"is-list-border":""]]),style:(0,T.normalizeStyle)(p.styleBackgroud),key:m},{default:(0,T.withCtx)(()=>[(0,T.createVNode)(r,{class:"hidden",hidden:"",disabled:t.disabled||!!p.disabled,value:p[t.map.value]+"",checked:p.selected},null,8,["disabled","value","checked"]),t.mode!=="tag"&&t.mode!=="list"||t.mode==="list"&&t.icon==="left"?((0,T.openBlock)(),(0,T.createElementBlock)("view",{key:0,class:"checkbox__inner",style:(0,T.normalizeStyle)(p.styleIcon)},[(0,T.createElementVNode)("view",{class:"checkbox__inner-icon"})],4)):(0,T.createCommentVNode)("",!0),(0,T.createElementVNode)("view",{class:(0,T.normalizeClass)(["checklist-content",{"list-content":t.mode==="list"&&t.icon==="left"}])},[(0,T.createElementVNode)("u-text",{class:"checklist-text",style:(0,T.normalizeStyle)(p.styleIconText)},(0,T.toDisplayString)(p[t.map.text]),5),t.mode==="list"&&t.icon==="right"?((0,T.openBlock)(),(0,T.createElementBlock)("view",{key:0,class:"checkobx__list",style:(0,T.normalizeStyle)(p.styleBackgroud)},null,4)):(0,T.createCommentVNode)("",!0)],2)]),_:2},1032,["class","style"]))),128))]),_:1},8,["class","onChange"])):((0,T.openBlock)(),(0,T.createBlock)(d,{key:1,class:(0,T.normalizeClass)(["checklist-group",{"is-list":t.mode==="list","is-wrap":t.wrap}]),onChange:o.change},{default:(0,T.withCtx)(()=>[((0,T.openBlock)(!0),(0,T.createElementBlock)(T.Fragment,null,(0,T.renderList)(s.dataList,(p,m)=>((0,T.openBlock)(),(0,T.createBlock)(l,{class:(0,T.normalizeClass)(["checklist-box",["is--"+t.mode,p.selected?"is-checked":"",t.disabled||p.disabled?"is-disable":"",m!==0&&t.mode==="list"?"is-list-border":""]]),style:(0,T.normalizeStyle)(p.styleBackgroud),key:m},{default:(0,T.withCtx)(()=>[(0,T.createVNode)(f,{class:"hidden",hidden:"",disabled:t.disabled||p.disabled,value:p[t.map.value]+"",checked:p.selected},null,8,["disabled","value","checked"]),t.mode!=="tag"&&t.mode!=="list"||t.mode==="list"&&t.icon==="left"?((0,T.openBlock)(),(0,T.createElementBlock)("view",{key:0,class:"radio__inner",style:(0,T.normalizeStyle)(p.styleBackgroud)},[(0,T.createElementVNode)("view",{class:"radio__inner-icon",style:(0,T.normalizeStyle)(p.styleIcon)},null,4)],4)):(0,T.createCommentVNode)("",!0),(0,T.createElementVNode)("view",{class:(0,T.normalizeClass)(["checklist-content",{"list-content":t.mode==="list"&&t.icon==="left"}])},[(0,T.createElementVNode)("u-text",{class:"checklist-text",style:(0,T.normalizeStyle)(p.styleIconText)},(0,T.toDisplayString)(p[t.map.text]),5),t.mode==="list"&&t.icon==="right"?((0,T.openBlock)(),(0,T.createElementBlock)("view",{key:0,style:(0,T.normalizeStyle)(p.styleRightIcon),class:"checkobx__list"},null,4)):(0,T.createCommentVNode)("",!0)],2)]),_:2},1032,["class","style"]))),128))]),_:1},8,["class","onChange"]))],64)):((0,T.openBlock)(),(0,T.createElementBlock)("view",{key:0,class:"uni-data-loading"},[n.mixinDatacomErrorMessage?((0,T.openBlock)(),(0,T.createElementBlock)("u-text",{key:1},(0,T.toDisplayString)(n.mixinDatacomErrorMessage),1)):((0,T.openBlock)(),(0,T.createBlock)(a,{key:0,status:"loading",iconType:"snow",iconSize:18,"content-text":s.contentText},null,8,["content-text"]))]))],4)}var ri=Y(vo,[["render",_o],["styles",[yo]]]);var D=ce(te());var To={"uni-section":{"":{backgroundColor:"#ffffff"}},"uni-section-header":{".uni-section ":{position:"relative",flexDirection:"row",alignItems:"center",paddingTop:12,paddingRight:10,paddingBottom:12,paddingLeft:10,fontWeight:"normal"}},"uni-section-header__decoration":{".uni-section ":{marginRight:6,backgroundColor:"#2979ff"},".uni-section .line":{width:4,height:12,borderRadius:10},".uni-section .circle":{width:8,height:8,borderTopRightRadius:50,borderTopLeftRadius:50,borderBottomLeftRadius:50,borderBottomRightRadius:50},".uni-section .square":{width:8,height:8}},"uni-section-header__content":{".uni-section ":{flexDirection:"column",flex:1,color:"#333333"}},distraction:{".uni-section .uni-section-header__content ":{flexDirection:"row",alignItems:"center"}},"uni-section-header__content-sub":{".uni-section ":{marginTop:2}},"uni-section-header__slot-right":{".uni-section ":{fontSize:14}},"uni-section-content":{".uni-section ":{fontSize:14}}},bo={name:"UniSection",emits:["click"],props:{type:{type:String,default:""},title:{type:String,required:!0,default:""},titleFontSize:{type:String,default:"14px"},titleColor:{type:String,default:"#333"},subTitle:{type:String,default:""},subTitleFontSize:{type:String,default:"12px"},subTitleColor:{type:String,default:"#999"},padding:{type:[Boolean,String],default:!1}},computed:{_padding(){return typeof this.padding=="string"?this.padding:this.padding?"10px":""}},watch:{title(n){uni.report&&n!==""&&uni.report("title",n)}},methods:{onClick(){this.$emit("click")}}};function wo(n,e,t,i,s,o){return(0,D.openBlock)(),(0,D.createElementBlock)("view",{class:"uni-section",renderWhole:!0},[(0,D.createElementVNode)("view",{class:"uni-section-header",onClick:e[0]||(e[0]=(...a)=>o.onClick&&o.onClick(...a))},[t.type?((0,D.openBlock)(),(0,D.createElementBlock)("view",{key:0,class:(0,D.normalizeClass)(["uni-section-header__decoration",t.type])},null,2)):(0,D.renderSlot)(n.$slots,"decoration",{key:1}),(0,D.createElementVNode)("view",{class:"uni-section-header__content"},[(0,D.createElementVNode)("u-text",{style:(0,D.normalizeStyle)({"font-size":t.titleFontSize,color:t.titleColor}),class:(0,D.normalizeClass)(["uni-section__content-title",{distraction:!t.subTitle}])},(0,D.toDisplayString)(t.title),7),t.subTitle?((0,D.openBlock)(),(0,D.createElementBlock)("u-text",{key:0,style:(0,D.normalizeStyle)({"font-size":t.subTitleFontSize,color:t.subTitleColor}),class:"uni-section-header__content-sub"},(0,D.toDisplayString)(t.subTitle),5)):(0,D.createCommentVNode)("",!0)]),(0,D.createElementVNode)("view",{class:"uni-section-header__slot-right"},[(0,D.renderSlot)(n.$slots,"right")])]),(0,D.createElementVNode)("view",{class:"uni-section-content",style:(0,D.normalizeStyle)({padding:o._padding})},[(0,D.renderSlot)(n.$slots,"default")],4)])}var ci=Y(bo,[["render",wo],["styles",[To]]]);var xo={header:{"":{display:"flex",flexDirection:"row",flexWrap:"wrap"}},margin:{"":{display:"flex",height:200,marginTop:10,marginRight:10,marginBottom:10,marginLeft:10,overflow:"hidden",borderRadius:5,borderWidth:1,borderStyle:"solid",borderColor:"#eeeeee"}},"margin-item":{"":{display:"flex",flex:1}},box:{"":{display:"flex",alignItems:"center",justifyContent:"center",flex:1}},actions:{"":{display:"flex",flexDirection:"row",alignItems:"center"}},"action-label":{"":{width:50,marginLeft:10,marginRight:10,fontSize:12}}},ko={data(){return{radiusClass:"uni-radius-lg",formData:{direction:["t","b"],size:"lg"},directionData:[{value:"t",text:"\u5DE6\u4E0A+\u53F3\u4E0A"},{value:"r",text:"\u53F3\u4E0A+\u53F3\u4E0B"},{value:"b",text:"\u5DE6\u4E0B+\u53F3\u4E0B"},{value:"l",text:"\u53F3\u4E0A+\u5DE6\u4E0B"},{value:"tl",text:"\u5DE6\u4E0A"},{value:"tr",text:"\u53F3\u4E0A"},{value:"bl",text:"\u5DE6\u4E0B"},{value:"br",text:"\u53F3\u4E0B"}],sizeData:[{value:"0",text:"\u65E0"},{value:"sm",text:"\u5C0F"},{value:"lg",text:"\u5E38\u89C4"},{value:"xl",text:"\u5927"},{value:"circle",text:"\u5706"},{value:"pill",text:"\u6700\u5927\u5316"}]}},onLoad(){},methods:{change(n,e){let{direction:t,size:i}=this.formData;this.radiusClass="",t.forEach(s=>{this.radiusClass+=`uni-radius-${s}-${i} `})}}};function So(n,e,t,i,s,o){let a=pe((0,P.resolveDynamicComponent)("uni-card"),Vt),r=pe((0,P.resolveDynamicComponent)("uni-data-checkbox"),ri),l=pe((0,P.resolveDynamicComponent)("uni-section"),ci);return(0,P.openBlock)(),(0,P.createElementBlock)("scroll-view",{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true",style:{flexDirection:"column"}},[(0,P.createElementVNode)("view",{class:"container"},[(0,P.createVNode)(a,{"is-shadow":!1,"is-full":""},{default:(0,P.withCtx)(()=>[(0,P.createElementVNode)("view",{class:"header"},[(0,P.createElementVNode)("u-text",{class:"uni-h6"},"\u4F7F\u7528\u8FB9\u6846\u534A\u5F84\u8F85\u52A9\u6837\u5F0F\u5BF9\u5143\u7D20\u5FEB\u901F\u5E94\u7528"),(0,P.createElementVNode)("u-text",null," "),(0,P.createElementVNode)("u-text",{class:"uni-primary uni-px-3 uni-h6"},"border-radius"),(0,P.createElementVNode)("u-text",null," "),(0,P.createElementVNode)("u-text",{class:"uni-h6"},"\u6837\u5F0F\u3002")]),(0,P.createElementVNode)("view",{class:"uni-mt-5 header"},[(0,P.createElementVNode)("u-text",{class:"uni-h6"},"\u89C4\u5219\u4E3A"),(0,P.createElementVNode)("u-text",null," "),(0,P.createElementVNode)("u-text",{class:"uni-primary uni-pl-3 uni-h6"},"uni-radius-${direction}-${size}")]),(0,P.createElementVNode)("view",{class:"uni-mt-5 header"},[(0,P.createElementVNode)("u-text",{class:"uni-h6"},"\u5982\u679C\u9700\u8981\u56DB\u8FB9\uFF0C\u5219\u4E0D\u9700\u8981\u6307\u5B9A"),(0,P.createElementVNode)("u-text",null," "),(0,P.createElementVNode)("u-text",{class:"uni-primary uni-pl-3 uni-h6"},"direction")]),(0,P.createElementVNode)("view",{class:"uni-mt-5"},[(0,P.createElementVNode)("u-text",{class:"uni-h6"},"\u5404\u503C\u7684\u542B\u4E49\u8BF7\u53C2\u8003\u6587\u6863")])]),_:1}),(0,P.createVNode)(l,{title:"\u6548\u679C\u5C55\u793A",type:"line"},{default:(0,P.withCtx)(()=>[(0,P.createElementVNode)("view",{class:"margin"},[(0,P.createElementVNode)("view",{class:(0,P.normalizeClass)(["box uni-primary-bg uni-ma-5",[s.radiusClass]])},[(0,P.createElementVNode)("u-text",{class:"uni-white"},"\u901A\u8FC7\u4E0B\u9762\u7684\u9009\u9879\u63A7\u5236\u5706\u89D2")],2)]),(0,P.createElementVNode)("view",{class:"actions uni-mt-10"},[(0,P.createElementVNode)("u-text",{class:"action-label"},"\u4F4D\u7F6E"),(0,P.createVNode)(r,{modelValue:s.formData.direction,"onUpdate:modelValue":e[0]||(e[0]=c=>s.formData.direction=c),multiple:"",localdata:s.directionData,onChange:e[1]||(e[1]=c=>o.change(c,1))},null,8,["modelValue","localdata"])]),(0,P.createElementVNode)("view",{class:"actions uni-mt-3 uni-mb-10"},[(0,P.createElementVNode)("u-text",{class:"action-label"},"\u5927\u5C0F"),(0,P.createVNode)(r,{modelValue:s.formData.size,"onUpdate:modelValue":e[2]||(e[2]=c=>s.formData.size=c),localdata:s.sizeData,onChange:e[3]||(e[3]=c=>o.change(c,2))},null,8,["modelValue","localdata"])])]),_:1})])])}var Ge=Y(ko,[["render",So],["styles",[xo]]]);var Ft=plus.webview.currentWebview();if(Ft){let n=parseInt(Ft.id),e="pages/extUI/radius/radius",t={};try{t=JSON.parse(Ft.__query__)}catch(s){}Ge.mpType="page";let i=Vue.createPageApp(Ge,{$store:getApp({allowDefault:!0}).$store,__pageId:n,__pagePath:e,__pageQuery:t});i.provide("__globalStyles",Vue.useCssStyles([...__uniConfig.styles,...Ge.styles||[]])),i.mount("#root")}})();
