"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 si=Object.create;var Qe=Object.defineProperty,ri=Object.defineProperties,ci=Object.getOwnPropertyDescriptor,li=Object.getOwnPropertyDescriptors,di=Object.getOwnPropertyNames,Ut=Object.getOwnPropertySymbols,ui=Object.getPrototypeOf,jt=Object.prototype.hasOwnProperty,hi=Object.prototype.propertyIsEnumerable;var Mt=(t,e,n)=>e in t?Qe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,E=(t,e)=>{for(var n in e||(e={}))jt.call(e,n)&&Mt(t,n,e[n]);if(Ut)for(var n of Ut(e))hi.call(e,n)&&Mt(t,n,e[n]);return t},j=(t,e)=>ri(t,li(e));var fi=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var pi=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of di(e))!jt.call(t,o)&&o!==n&&Qe(t,o,{get:()=>e[o],enumerable:!(i=ci(e,o))||i.enumerable});return t};var re=(t,e,n)=>(n=t!=null?si(ui(t)):{},pi(e||!t||!t.__esModule?Qe(n,"default",{value:t,enumerable:!0}):n,t));var C=(t,e,n)=>new Promise((i,o)=>{var a=l=>{try{r(n.next(l))}catch(c){o(c)}},s=l=>{try{r(n.throw(l))}catch(c){o(c)}},r=l=>l.done?i(l.value):Promise.resolve(l.value).then(a,s);r((n=n.apply(t,e)).next())});var ee=fi((ja,qt)=>{qt.exports=Vue});var qa=re(ee());function we(t,e,...n){uni.__log__?uni.__log__(t,e,...n):console[t].apply(console,[...n,e])}function ce(t,e){return typeof t=="string"?e:t}var B=re(ee());var J=(t,e)=>{let n=t.__vccOpts||t;for(let[i,o]of e)n[i]=o;return n};var gi={"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}}},mi={name:"UniCard",emits:["click"],props:{title:{type:String,default:""},subTitle:{type:String,default:""},padding:{type:String,default:"10px"},margin:{type:String,default:"15px"},spacing:{type:String,default:"0 10px"},extra:{type:String,default:""},cover:{type:String,default:""},thumbnail:{type:String,default:""},isFull:{type:Boolean,default:!1},isShadow:{type:Boolean,default:!0},shadow:{type:String,default:"0px 0px 3px 1px rgba(0, 0, 0, 0.08)"},border:{type:Boolean,default:!0}},methods:{onClick(t){this.$emit("click",t)}}};function _i(t,e,n,i,o,a){return(0,B.openBlock)(),(0,B.createElementBlock)("view",{class:(0,B.normalizeClass)(["uni-card",{"uni-card--full":n.isFull,"uni-card--shadow":n.isShadow,"uni-card--border":n.border}]),style:(0,B.normalizeStyle)({margin:n.isFull?0:n.margin,padding:n.spacing,"box-shadow":n.isShadow?n.shadow:""}),renderWhole:!0},[(0,B.renderSlot)(t.$slots,"cover",{},()=>[n.cover?((0,B.openBlock)(),(0,B.createElementBlock)("view",{key:0,class:"uni-card__cover"},[(0,B.createElementVNode)("u-image",{class:"uni-card__cover-image",mode:"widthFix",onClick:e[0]||(e[0]=s=>a.onClick("cover")),src:n.cover},null,8,["src"])])):(0,B.createCommentVNode)("",!0)]),(0,B.renderSlot)(t.$slots,"title",{},()=>[n.title||n.extra?((0,B.openBlock)(),(0,B.createElementBlock)("view",{key:0,class:"uni-card__header"},[(0,B.createElementVNode)("view",{class:"uni-card__header-box",onClick:e[1]||(e[1]=s=>a.onClick("title"))},[n.thumbnail?((0,B.openBlock)(),(0,B.createElementBlock)("view",{key:0,class:"uni-card__header-avatar"},[(0,B.createElementVNode)("u-image",{class:"uni-card__header-avatar-image",src:n.thumbnail,mode:"aspectFit"},null,8,["src"])])):(0,B.createCommentVNode)("",!0),(0,B.createElementVNode)("view",{class:"uni-card__header-content"},[(0,B.createElementVNode)("u-text",{class:"uni-card__header-content-title uni-ellipsis"},(0,B.toDisplayString)(n.title),1),n.title&&n.subTitle?((0,B.openBlock)(),(0,B.createElementBlock)("u-text",{key:0,class:"uni-card__header-content-subtitle uni-ellipsis"},(0,B.toDisplayString)(n.subTitle),1)):(0,B.createCommentVNode)("",!0)])]),(0,B.createElementVNode)("view",{class:"uni-card__header-extra",onClick:e[2]||(e[2]=s=>a.onClick("extra"))},[(0,B.createElementVNode)("u-text",{class:"uni-card__header-extra-text"},(0,B.toDisplayString)(n.extra),1)])])):(0,B.createCommentVNode)("",!0)]),(0,B.createElementVNode)("view",{class:"uni-card__content",style:(0,B.normalizeStyle)({padding:n.padding}),onClick:e[3]||(e[3]=s=>a.onClick("content"))},[(0,B.renderSlot)(t.$slots,"default")],4),(0,B.createElementVNode)("view",{class:"uni-card__actions",onClick:e[4]||(e[4]=s=>a.onClick("actions"))},[(0,B.renderSlot)(t.$slots,"actions")])],6)}var Vt=J(mi,[["render",_i],["styles",[gi]]]);var f=re(ee());var yi=t=>t!==null&&typeof t=="object",vi=["{","}"],Xe=class{constructor(){this._caches=Object.create(null)}interpolate(e,n,i=vi){if(!n)return[e];let o=this._caches[e];return o||(o=bi(e,i),this._caches[e]=o),xi(o,n)}},wi=/^(?:\d)+/,Ti=/^(?:\w)+/;function bi(t,[e,n]){let i=[],o=0,a="";for(;o<t.length;){let s=t[o++];if(s===e){a&&i.push({type:"text",value:a}),a="";let r="";for(s=t[o++];s!==void 0&&s!==n;)r+=s,s=t[o++];let l=s===n,c=wi.test(r)?"list":l&&Ti.test(r)?"named":"unknown";i.push({value:r,type:c})}else a+=s}return a&&i.push({type:"text",value:a}),i}function xi(t,e){let n=[],i=0,o=Array.isArray(e)?"list":yi(e)?"named":"unknown";if(o==="unknown")return n;for(;i<t.length;){let a=t[i];switch(a.type){case"text":n.push(a.value);break;case"list":n.push(e[parseInt(a.value,10)]);break;case"named":o==="named"&&n.push(e[a.value]);break}i++}return n}var Ze="zh-Hans",zt="zh-Hant",fe="en",ki="fr",Si="es",Ii=Object.prototype.hasOwnProperty,Wt=(t,e)=>Ii.call(t,e),Ai=new Xe;function Pi(t,e){return!!e.find(n=>t.indexOf(n)!==-1)}function Ci(t,e){return e.find(n=>t.indexOf(n)===0)}function Ht(t,e){if(!t)return;if(t=t.trim().replace(/_/g,"-"),e&&e[t])return t;if(t=t.toLowerCase(),t==="chinese")return Ze;if(t.indexOf("zh")===0)return t.indexOf("-hans")>-1?Ze:t.indexOf("-hant")>-1||Pi(t,["-tw","-hk","-mo","-cht"])?zt:Ze;let n=[fe,ki,Si];e&&Object.keys(e).length>0&&(n=Object.keys(e));let i=Ci(t,n);if(i)return i}var et=class{constructor({locale:e,fallbackLocale:n,messages:i,watcher:o,formater:a}){this.locale=fe,this.fallbackLocale=fe,this.message={},this.messages={},this.watchers=[],n&&(this.fallbackLocale=n),this.formater=a||Ai,this.messages=i||{},this.setLocale(e||fe),o&&this.watchLocale(o)}setLocale(e){let n=this.locale;this.locale=Ht(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],n!==this.locale&&this.watchers.forEach(i=>{i(this.locale,n)})}getLocale(){return this.locale}watchLocale(e){let n=this.watchers.push(e)-1;return()=>{this.watchers.splice(n,1)}}add(e,n,i=!0){let o=this.messages[e];o?i?Object.assign(o,n):Object.keys(n).forEach(a=>{Wt(o,a)||(o[a]=n[a])}):this.messages[e]=n}f(e,n,i){return this.formater.interpolate(e,n,i).join("")}t(e,n,i){let o=this.message;return typeof n=="string"?(n=Ht(n,this.messages),n&&(o=this.messages[n])):i=n,Wt(o,e)?this.formater.interpolate(o[e],i).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}};function Bi(t,e){t.$watchLocale?t.$watchLocale(n=>{e.setLocale(n)}):t.$watch(()=>t.$locale,n=>{e.setLocale(n)})}function Li(){return typeof uni!="undefined"&&uni.getLocale?uni.getLocale():typeof global!="undefined"&&global.getLocale?global.getLocale():fe}function Jt(t,e={},n,i){if(typeof t!="string"){let s=[e,t];t=s[0],e=s[1]}typeof t!="string"&&(t=Li()),typeof n!="string"&&(n=typeof __uniConfig!="undefined"&&__uniConfig.fallbackLocale||fe);let o=new et({locale:t,fallbackLocale:n,messages:e,watcher:i}),a=(s,r)=>{if(typeof getApp!="function")a=function(l,c){return o.t(l,c)};else{let l=!1;a=function(c,p){let u=getApp().$vm;return u&&(u.$locale,l||(l=!0,Bi(u,o))),o.t(c,p)}}return a(s,r)};return{i18n:o,f(s,r,l){return o.f(s,r,l)},t(s,r){return a(s,r)},add(s,r,l=!0){return o.add(s,r,l)},watch(s){return o.watchLocale(s)},getLocale(){return o.getLocale()},setLocale(s){return o.setLocale(s)}}}var U=re(ee());var Di={"uni-load-more.contentdown":"Pull up to show more","uni-load-more.contentrefresh":"loading...","uni-load-more.contentnomore":"No more data"},Ei={"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"},Oi={"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"},Ri={en:Di,"zh-Hans":Ei,"zh-Hant":Oi},Ni={"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)"}}},Kt;setTimeout(()=>{Kt=uni.getSystemInfoSync().platform},16);var{t:tt}=Jt(Ri),Fi={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:Kt,imgBase64:"data:image/png;base64, "}},computed:{iconSnowWidth(){return(Math.floor(this.iconSize/24)||1)*2},contentdownText(){return this.contentText.contentdown||tt("uni-load-more.contentdown")},contentrefreshText(){return this.contentText.contentrefresh||tt("uni-load-more.contentrefresh")},contentnomoreText(){return this.contentText.contentnomore||tt("uni-load-more.contentnomore")}},mounted(){var t=getCurrentPages(),e=t[t.length-1],n=e.$getAppWebview();n.addEventListener("hide",()=>{this.webviewHide=!0}),n.addEventListener("show",()=>{this.webviewHide=!1})},methods:{onClick(){this.$emit("clickLoadMore",{detail:{status:this.status}})}}};function Ui(t,e,n,i,o,a){return(0,U.openBlock)(),(0,U.createElementBlock)("view",{class:"uni-load-more",onClick:e[0]||(e[0]=(...s)=>a.onClick&&a.onClick(...s)),renderWhole:!0},[!o.webviewHide&&n.status==="loading"&&n.showIcon?((0,U.openBlock)(),(0,U.createElementBlock)("loading-indicator",{key:0,style:(0,U.normalizeStyle)({color:n.color,width:n.iconSize+"px",height:n.iconSize+"px"}),animating:!0,class:"uni-load-more__img uni-load-more__img--nvue"},null,4)):(0,U.createCommentVNode)("",!0),n.showText?((0,U.openBlock)(),(0,U.createElementBlock)("u-text",{key:1,class:"uni-load-more__text",style:(0,U.normalizeStyle)({color:n.color})},(0,U.toDisplayString)(n.status==="more"?a.contentdownText:n.status==="loading"?a.contentrefreshText:a.contentnomoreText),5)):(0,U.createCommentVNode)("",!0)])}var nt=J(Fi,[["render",Ui],["styles",[Ni]]]);var te=re(ee());var Mi={id:"2852637",name:"uniui\u56FE\u6807\u5E93",font_family:"uniicons",css_prefix_text:"uniui-",description:"",glyphs:[{icon_id:"25027049",name:"yanse",font_class:"color",unicode:"e6cf",unicode_decimal:59087},{icon_id:"25027048",name:"wallet",font_class:"wallet",unicode:"e6b1",unicode_decimal:59057},{icon_id:"25015720",name:"settings-filled",font_class:"settings-filled",unicode:"e6ce",unicode_decimal:59086},{icon_id:"25015434",name:"shimingrenzheng-filled",font_class:"auth-filled",unicode:"e6cc",unicode_decimal:59084},{icon_id:"24934246",name:"shop-filled",font_class:"shop-filled",unicode:"e6cd",unicode_decimal:59085},{icon_id:"24934159",name:"staff-filled-01",font_class:"staff-filled",unicode:"e6cb",unicode_decimal:59083},{icon_id:"24932461",name:"VIP-filled",font_class:"vip-filled",unicode:"e6c6",unicode_decimal:59078},{icon_id:"24932462",name:"plus_circle_fill",font_class:"plus-filled",unicode:"e6c7",unicode_decimal:59079},{icon_id:"24932463",name:"folder_add-filled",font_class:"folder-add-filled",unicode:"e6c8",unicode_decimal:59080},{icon_id:"24932464",name:"yanse-filled",font_class:"color-filled",unicode:"e6c9",unicode_decimal:59081},{icon_id:"24932465",name:"tune-filled",font_class:"tune-filled",unicode:"e6ca",unicode_decimal:59082},{icon_id:"24932455",name:"a-rilidaka-filled",font_class:"calendar-filled",unicode:"e6c0",unicode_decimal:59072},{icon_id:"24932456",name:"notification-filled",font_class:"notification-filled",unicode:"e6c1",unicode_decimal:59073},{icon_id:"24932457",name:"wallet-filled",font_class:"wallet-filled",unicode:"e6c2",unicode_decimal:59074},{icon_id:"24932458",name:"paihangbang-filled",font_class:"medal-filled",unicode:"e6c3",unicode_decimal:59075},{icon_id:"24932459",name:"gift-filled",font_class:"gift-filled",unicode:"e6c4",unicode_decimal:59076},{icon_id:"24932460",name:"fire-filled",font_class:"fire-filled",unicode:"e6c5",unicode_decimal:59077},{icon_id:"24928001",name:"refreshempty",font_class:"refreshempty",unicode:"e6bf",unicode_decimal:59071},{icon_id:"24926853",name:"location-ellipse",font_class:"location-filled",unicode:"e6af",unicode_decimal:59055},{icon_id:"24926735",name:"person-filled",font_class:"person-filled",unicode:"e69d",unicode_decimal:59037},{icon_id:"24926703",name:"personadd-filled",font_class:"personadd-filled",unicode:"e698",unicode_decimal:59032},{icon_id:"24923351",name:"back",font_class:"back",unicode:"e6b9",unicode_decimal:59065},{icon_id:"24923352",name:"forward",font_class:"forward",unicode:"e6ba",unicode_decimal:59066},{icon_id:"24923353",name:"arrowthinright",font_class:"arrow-right",unicode:"e6bb",unicode_decimal:59067},{icon_id:"24923353",name:"arrowthinright",font_class:"arrowthinright",unicode:"e6bb",unicode_decimal:59067},{icon_id:"24923354",name:"arrowthinleft",font_class:"arrow-left",unicode:"e6bc",unicode_decimal:59068},{icon_id:"24923354",name:"arrowthinleft",font_class:"arrowthinleft",unicode:"e6bc",unicode_decimal:59068},{icon_id:"24923355",name:"arrowthinup",font_class:"arrow-up",unicode:"e6bd",unicode_decimal:59069},{icon_id:"24923355",name:"arrowthinup",font_class:"arrowthinup",unicode:"e6bd",unicode_decimal:59069},{icon_id:"24923356",name:"arrowthindown",font_class:"arrow-down",unicode:"e6be",unicode_decimal:59070},{icon_id:"24923356",name:"arrowthindown",font_class:"arrowthindown",unicode:"e6be",unicode_decimal:59070},{icon_id:"24923349",name:"arrowdown",font_class:"bottom",unicode:"e6b8",unicode_decimal:59064},{icon_id:"24923349",name:"arrowdown",font_class:"arrowdown",unicode:"e6b8",unicode_decimal:59064},{icon_id:"24923346",name:"arrowright",font_class:"right",unicode:"e6b5",unicode_decimal:59061},{icon_id:"24923346",name:"arrowright",font_class:"arrowright",unicode:"e6b5",unicode_decimal:59061},{icon_id:"24923347",name:"arrowup",font_class:"top",unicode:"e6b6",unicode_decimal:59062},{icon_id:"24923347",name:"arrowup",font_class:"arrowup",unicode:"e6b6",unicode_decimal:59062},{icon_id:"24923348",name:"arrowleft",font_class:"left",unicode:"e6b7",unicode_decimal:59063},{icon_id:"24923348",name:"arrowleft",font_class:"arrowleft",unicode:"e6b7",unicode_decimal:59063},{icon_id:"24923334",name:"eye",font_class:"eye",unicode:"e651",unicode_decimal:58961},{icon_id:"24923335",name:"eye-filled",font_class:"eye-filled",unicode:"e66a",unicode_decimal:58986},{icon_id:"24923336",name:"eye-slash",font_class:"eye-slash",unicode:"e6b3",unicode_decimal:59059},{icon_id:"24923337",name:"eye-slash-filled",font_class:"eye-slash-filled",unicode:"e6b4",unicode_decimal:59060},{icon_id:"24923305",name:"info-filled",font_class:"info-filled",unicode:"e649",unicode_decimal:58953},{icon_id:"24923299",name:"reload-01",font_class:"reload",unicode:"e6b2",unicode_decimal:59058},{icon_id:"24923195",name:"mic_slash_fill",font_class:"micoff-filled",unicode:"e6b0",unicode_decimal:59056},{icon_id:"24923165",name:"map-pin-ellipse",font_class:"map-pin-ellipse",unicode:"e6ac",unicode_decimal:59052},{icon_id:"24923166",name:"map-pin",font_class:"map-pin",unicode:"e6ad",unicode_decimal:59053},{icon_id:"24923167",name:"location",font_class:"location",unicode:"e6ae",unicode_decimal:59054},{icon_id:"24923064",name:"starhalf",font_class:"starhalf",unicode:"e683",unicode_decimal:59011},{icon_id:"24923065",name:"star",font_class:"star",unicode:"e688",unicode_decimal:59016},{icon_id:"24923066",name:"star-filled",font_class:"star-filled",unicode:"e68f",unicode_decimal:59023},{icon_id:"24899646",name:"a-rilidaka",font_class:"calendar",unicode:"e6a0",unicode_decimal:59040},{icon_id:"24899647",name:"fire",font_class:"fire",unicode:"e6a1",unicode_decimal:59041},{icon_id:"24899648",name:"paihangbang",font_class:"medal",unicode:"e6a2",unicode_decimal:59042},{icon_id:"24899649",name:"font",font_class:"font",unicode:"e6a3",unicode_decimal:59043},{icon_id:"24899650",name:"gift",font_class:"gift",unicode:"e6a4",unicode_decimal:59044},{icon_id:"24899651",name:"link",font_class:"link",unicode:"e6a5",unicode_decimal:59045},{icon_id:"24899652",name:"notification",font_class:"notification",unicode:"e6a6",unicode_decimal:59046},{icon_id:"24899653",name:"staff",font_class:"staff",unicode:"e6a7",unicode_decimal:59047},{icon_id:"24899654",name:"VIP",font_class:"vip",unicode:"e6a8",unicode_decimal:59048},{icon_id:"24899655",name:"folder_add",font_class:"folder-add",unicode:"e6a9",unicode_decimal:59049},{icon_id:"24899656",name:"tune",font_class:"tune",unicode:"e6aa",unicode_decimal:59050},{icon_id:"24899657",name:"shimingrenzheng",font_class:"auth",unicode:"e6ab",unicode_decimal:59051},{icon_id:"24899565",name:"person",font_class:"person",unicode:"e699",unicode_decimal:59033},{icon_id:"24899566",name:"email-filled",font_class:"email-filled",unicode:"e69a",unicode_decimal:59034},{icon_id:"24899567",name:"phone-filled",font_class:"phone-filled",unicode:"e69b",unicode_decimal:59035},{icon_id:"24899568",name:"phone",font_class:"phone",unicode:"e69c",unicode_decimal:59036},{icon_id:"24899570",name:"email",font_class:"email",unicode:"e69e",unicode_decimal:59038},{icon_id:"24899571",name:"personadd",font_class:"personadd",unicode:"e69f",unicode_decimal:59039},{icon_id:"24899558",name:"chatboxes-filled",font_class:"chatboxes-filled",unicode:"e692",unicode_decimal:59026},{icon_id:"24899559",name:"contact",font_class:"contact",unicode:"e693",unicode_decimal:59027},{icon_id:"24899560",name:"chatbubble-filled",font_class:"chatbubble-filled",unicode:"e694",unicode_decimal:59028},{icon_id:"24899561",name:"contact-filled",font_class:"contact-filled",unicode:"e695",unicode_decimal:59029},{icon_id:"24899562",name:"chatboxes",font_class:"chatboxes",unicode:"e696",unicode_decimal:59030},{icon_id:"24899563",name:"chatbubble",font_class:"chatbubble",unicode:"e697",unicode_decimal:59031},{icon_id:"24881290",name:"upload-filled",font_class:"upload-filled",unicode:"e68e",unicode_decimal:59022},{icon_id:"24881292",name:"upload",font_class:"upload",unicode:"e690",unicode_decimal:59024},{icon_id:"24881293",name:"weixin",font_class:"weixin",unicode:"e691",unicode_decimal:59025},{icon_id:"24881274",name:"compose",font_class:"compose",unicode:"e67f",unicode_decimal:59007},{icon_id:"24881275",name:"qq",font_class:"qq",unicode:"e680",unicode_decimal:59008},{icon_id:"24881276",name:"download-filled",font_class:"download-filled",unicode:"e681",unicode_decimal:59009},{icon_id:"24881277",name:"pengyouquan",font_class:"pyq",unicode:"e682",unicode_decimal:59010},{icon_id:"24881279",name:"sound",font_class:"sound",unicode:"e684",unicode_decimal:59012},{icon_id:"24881280",name:"trash-filled",font_class:"trash-filled",unicode:"e685",unicode_decimal:59013},{icon_id:"24881281",name:"sound-filled",font_class:"sound-filled",unicode:"e686",unicode_decimal:59014},{icon_id:"24881282",name:"trash",font_class:"trash",unicode:"e687",unicode_decimal:59015},{icon_id:"24881284",name:"videocam-filled",font_class:"videocam-filled",unicode:"e689",unicode_decimal:59017},{icon_id:"24881285",name:"spinner-cycle",font_class:"spinner-cycle",unicode:"e68a",unicode_decimal:59018},{icon_id:"24881286",name:"weibo",font_class:"weibo",unicode:"e68b",unicode_decimal:59019},{icon_id:"24881288",name:"videocam",font_class:"videocam",unicode:"e68c",unicode_decimal:59020},{icon_id:"24881289",name:"download",font_class:"download",unicode:"e68d",unicode_decimal:59021},{icon_id:"24879601",name:"help",font_class:"help",unicode:"e679",unicode_decimal:59001},{icon_id:"24879602",name:"navigate-filled",font_class:"navigate-filled",unicode:"e67a",unicode_decimal:59002},{icon_id:"24879603",name:"plusempty",font_class:"plusempty",unicode:"e67b",unicode_decimal:59003},{icon_id:"24879604",name:"smallcircle",font_class:"smallcircle",unicode:"e67c",unicode_decimal:59004},{icon_id:"24879605",name:"minus-filled",font_class:"minus-filled",unicode:"e67d",unicode_decimal:59005},{icon_id:"24879606",name:"micoff",font_class:"micoff",unicode:"e67e",unicode_decimal:59006},{icon_id:"24879588",name:"closeempty",font_class:"closeempty",unicode:"e66c",unicode_decimal:58988},{icon_id:"24879589",name:"clear",font_class:"clear",unicode:"e66d",unicode_decimal:58989},{icon_id:"24879590",name:"navigate",font_class:"navigate",unicode:"e66e",unicode_decimal:58990},{icon_id:"24879591",name:"minus",font_class:"minus",unicode:"e66f",unicode_decimal:58991},{icon_id:"24879592",name:"image",font_class:"image",unicode:"e670",unicode_decimal:58992},{icon_id:"24879593",name:"mic",font_class:"mic",unicode:"e671",unicode_decimal:58993},{icon_id:"24879594",name:"paperplane",font_class:"paperplane",unicode:"e672",unicode_decimal:58994},{icon_id:"24879595",name:"close",font_class:"close",unicode:"e673",unicode_decimal:58995},{icon_id:"24879596",name:"help-filled",font_class:"help-filled",unicode:"e674",unicode_decimal:58996},{icon_id:"24879597",name:"plus-filled",font_class:"paperplane-filled",unicode:"e675",unicode_decimal:58997},{icon_id:"24879598",name:"plus",font_class:"plus",unicode:"e676",unicode_decimal:58998},{icon_id:"24879599",name:"mic-filled",font_class:"mic-filled",unicode:"e677",unicode_decimal:58999},{icon_id:"24879600",name:"image-filled",font_class:"image-filled",unicode:"e678",unicode_decimal:59e3},{icon_id:"24855900",name:"locked-filled",font_class:"locked-filled",unicode:"e668",unicode_decimal:58984},{icon_id:"24855901",name:"info",font_class:"info",unicode:"e669",unicode_decimal:58985},{icon_id:"24855903",name:"locked",font_class:"locked",unicode:"e66b",unicode_decimal:58987},{icon_id:"24855884",name:"camera-filled",font_class:"camera-filled",unicode:"e658",unicode_decimal:58968},{icon_id:"24855885",name:"chat-filled",font_class:"chat-filled",unicode:"e659",unicode_decimal:58969},{icon_id:"24855886",name:"camera",font_class:"camera",unicode:"e65a",unicode_decimal:58970},{icon_id:"24855887",name:"circle",font_class:"circle",unicode:"e65b",unicode_decimal:58971},{icon_id:"24855888",name:"checkmarkempty",font_class:"checkmarkempty",unicode:"e65c",unicode_decimal:58972},{icon_id:"24855889",name:"chat",font_class:"chat",unicode:"e65d",unicode_decimal:58973},{icon_id:"24855890",name:"circle-filled",font_class:"circle-filled",unicode:"e65e",unicode_decimal:58974},{icon_id:"24855891",name:"flag",font_class:"flag",unicode:"e65f",unicode_decimal:58975},{icon_id:"24855892",name:"flag-filled",font_class:"flag-filled",unicode:"e660",unicode_decimal:58976},{icon_id:"24855893",name:"gear-filled",font_class:"gear-filled",unicode:"e661",unicode_decimal:58977},{icon_id:"24855894",name:"home",font_class:"home",unicode:"e662",unicode_decimal:58978},{icon_id:"24855895",name:"home-filled",font_class:"home-filled",unicode:"e663",unicode_decimal:58979},{icon_id:"24855896",name:"gear",font_class:"gear",unicode:"e664",unicode_decimal:58980},{icon_id:"24855897",name:"smallcircle-filled",font_class:"smallcircle-filled",unicode:"e665",unicode_decimal:58981},{icon_id:"24855898",name:"map-filled",font_class:"map-filled",unicode:"e666",unicode_decimal:58982},{icon_id:"24855899",name:"map",font_class:"map",unicode:"e667",unicode_decimal:58983},{icon_id:"24855825",name:"refresh-filled",font_class:"refresh-filled",unicode:"e656",unicode_decimal:58966},{icon_id:"24855826",name:"refresh",font_class:"refresh",unicode:"e657",unicode_decimal:58967},{icon_id:"24855808",name:"cloud-upload",font_class:"cloud-upload",unicode:"e645",unicode_decimal:58949},{icon_id:"24855809",name:"cloud-download-filled",font_class:"cloud-download-filled",unicode:"e646",unicode_decimal:58950},{icon_id:"24855810",name:"cloud-download",font_class:"cloud-download",unicode:"e647",unicode_decimal:58951},{icon_id:"24855811",name:"cloud-upload-filled",font_class:"cloud-upload-filled",unicode:"e648",unicode_decimal:58952},{icon_id:"24855813",name:"redo",font_class:"redo",unicode:"e64a",unicode_decimal:58954},{icon_id:"24855814",name:"images-filled",font_class:"images-filled",unicode:"e64b",unicode_decimal:58955},{icon_id:"24855815",name:"undo-filled",font_class:"undo-filled",unicode:"e64c",unicode_decimal:58956},{icon_id:"24855816",name:"more",font_class:"more",unicode:"e64d",unicode_decimal:58957},{icon_id:"24855817",name:"more-filled",font_class:"more-filled",unicode:"e64e",unicode_decimal:58958},{icon_id:"24855818",name:"undo",font_class:"undo",unicode:"e64f",unicode_decimal:58959},{icon_id:"24855819",name:"images",font_class:"images",unicode:"e650",unicode_decimal:58960},{icon_id:"24855821",name:"paperclip",font_class:"paperclip",unicode:"e652",unicode_decimal:58962},{icon_id:"24855822",name:"settings",font_class:"settings",unicode:"e653",unicode_decimal:58963},{icon_id:"24855823",name:"search",font_class:"search",unicode:"e654",unicode_decimal:58964},{icon_id:"24855824",name:"redo-filled",font_class:"redo-filled",unicode:"e655",unicode_decimal:58965},{icon_id:"24841702",name:"list",font_class:"list",unicode:"e644",unicode_decimal:58948},{icon_id:"24841489",name:"mail-open-filled",font_class:"mail-open-filled",unicode:"e63a",unicode_decimal:58938},{icon_id:"24841491",name:"hand-thumbsdown-filled",font_class:"hand-down-filled",unicode:"e63c",unicode_decimal:58940},{icon_id:"24841492",name:"hand-thumbsdown",font_class:"hand-down",unicode:"e63d",unicode_decimal:58941},{icon_id:"24841493",name:"hand-thumbsup-filled",font_class:"hand-up-filled",unicode:"e63e",unicode_decimal:58942},{icon_id:"24841494",name:"hand-thumbsup",font_class:"hand-up",unicode:"e63f",unicode_decimal:58943},{icon_id:"24841496",name:"heart-filled",font_class:"heart-filled",unicode:"e641",unicode_decimal:58945},{icon_id:"24841498",name:"mail-open",font_class:"mail-open",unicode:"e643",unicode_decimal:58947},{icon_id:"24841488",name:"heart",font_class:"heart",unicode:"e639",unicode_decimal:58937},{icon_id:"24839963",name:"loop",font_class:"loop",unicode:"e633",unicode_decimal:58931},{icon_id:"24839866",name:"pulldown",font_class:"pulldown",unicode:"e632",unicode_decimal:58930},{icon_id:"24813798",name:"scan",font_class:"scan",unicode:"e62a",unicode_decimal:58922},{icon_id:"24813786",name:"bars",font_class:"bars",unicode:"e627",unicode_decimal:58919},{icon_id:"24813788",name:"cart-filled",font_class:"cart-filled",unicode:"e629",unicode_decimal:58921},{icon_id:"24813790",name:"checkbox",font_class:"checkbox",unicode:"e62b",unicode_decimal:58923},{icon_id:"24813791",name:"checkbox-filled",font_class:"checkbox-filled",unicode:"e62c",unicode_decimal:58924},{icon_id:"24813794",name:"shop",font_class:"shop",unicode:"e62f",unicode_decimal:58927},{icon_id:"24813795",name:"headphones",font_class:"headphones",unicode:"e630",unicode_decimal:58928},{icon_id:"24813796",name:"cart",font_class:"cart",unicode:"e631",unicode_decimal:58929}]},ji="/assets/uniicons.89ed7d6d.ttf",qi={"uni-icons":{"":{fontFamily:"uniicons",textDecoration:"none",textAlign:"center"}}},Vi=t=>typeof t=="number"||/^[0-9]*$/g.test(t)?t+"px":t,zi=weex.requireModule("dom");zi.addRule("fontFace",{fontFamily:"uniicons",src:"url('"+ji+"')"});var Wi={name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customPrefix:{type:String,default:""}},data(){return{icons:Mi.glyphs}},computed:{unicode(){let t=this.icons.find(e=>e.font_class===this.type);return t?unescape(`%u${t.unicode}`):""},iconSize(){return Vi(this.size)}},methods:{_onClick(){this.$emit("click")}}};function Hi(t,e,n,i,o,a){return(0,te.openBlock)(),(0,te.createElementBlock)("u-text",{style:(0,te.normalizeStyle)({color:n.color,"font-size":a.iconSize}),class:"uni-icons",onClick:e[0]||(e[0]=(...s)=>a._onClick&&a._onClick(...s))},(0,te.toDisplayString)(a.unicode),5)}var Gt=J(Wi,[["render",Hi],["styles",[qi]]]);var Za=re(ee());var Ji={path:"windows/left-window.vue",style:{width:"350px"}},Ki={path:"windows/top-window.vue",style:{height:"60px"}},Gi=[{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:"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}}],$i=[{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://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/b3e4cbd0-517d-11eb-a16f-5b3e54966275.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:"global/global",style:{navigationBarTitleText:"GlobalData\u548Cvuex"}}]}],Yi={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"}},Qi={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"}]},xn={leftWindow:Ji,topWindow:Ki,pages:Gi,subPackages:$i,globalStyle:Yi,tabBar:Qi},Zi=[];function Xi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Y(t,e,n){return t(n={path:e,exports:{},require:function(i,o){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(o==null&&n.path)}},n.exports),n.exports}var eo=Y(function(t,e){var n;t.exports=(n=n||function(i,o){var a=Object.create||function(){function d(){}return function(g){var y;return d.prototype=g,y=new d,d.prototype=null,y}}(),s={},r=s.lib={},l=r.Base={extend:function(d){var g=a(this);return d&&g.mixIn(d),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 d=this.extend();return d.init.apply(d,arguments),d},init:function(){},mixIn:function(d){for(var g in d)d.hasOwnProperty(g)&&(this[g]=d[g]);d.hasOwnProperty("toString")&&(this.toString=d.toString)},clone:function(){return this.init.prototype.extend(this)}},c=r.WordArray=l.extend({init:function(d,g){d=this.words=d||[],this.sigBytes=g!=o?g:4*d.length},toString:function(d){return(d||u).stringify(this)},concat:function(d){var g=this.words,y=d.words,v=this.sigBytes,T=d.sigBytes;if(this.clamp(),v%4)for(var I=0;I<T;I++){var P=y[I>>>2]>>>24-I%4*8&255;g[v+I>>>2]|=P<<24-(v+I)%4*8}else for(I=0;I<T;I+=4)g[v+I>>>2]=y[I>>>2];return this.sigBytes+=T,this},clamp:function(){var d=this.words,g=this.sigBytes;d[g>>>2]&=4294967295<<32-g%4*8,d.length=i.ceil(g/4)},clone:function(){var d=l.clone.call(this);return d.words=this.words.slice(0),d},random:function(d){for(var g,y=[],v=function(P){P=P;var L=987654321,D=4294967295;return function(){var F=((L=36969*(65535&L)+(L>>16)&D)<<16)+(P=18e3*(65535&P)+(P>>16)&D)&D;return F/=4294967296,(F+=.5)*(i.random()>.5?1:-1)}},T=0;T<d;T+=4){var I=v(4294967296*(g||i.random()));g=987654071*I(),y.push(4294967296*I()|0)}return new c.init(y,d)}}),p=s.enc={},u=p.Hex={stringify:function(d){for(var g=d.words,y=d.sigBytes,v=[],T=0;T<y;T++){var I=g[T>>>2]>>>24-T%4*8&255;v.push((I>>>4).toString(16)),v.push((15&I).toString(16))}return v.join("")},parse:function(d){for(var g=d.length,y=[],v=0;v<g;v+=2)y[v>>>3]|=parseInt(d.substr(v,2),16)<<24-v%8*4;return new c.init(y,g/2)}},m=p.Latin1={stringify:function(d){for(var g=d.words,y=d.sigBytes,v=[],T=0;T<y;T++){var I=g[T>>>2]>>>24-T%4*8&255;v.push(String.fromCharCode(I))}return v.join("")},parse:function(d){for(var g=d.length,y=[],v=0;v<g;v++)y[v>>>2]|=(255&d.charCodeAt(v))<<24-v%4*8;return new c.init(y,g)}},_=p.Utf8={stringify:function(d){try{return decodeURIComponent(escape(m.stringify(d)))}catch(g){throw new Error("Malformed UTF-8 data")}},parse:function(d){return m.parse(unescape(encodeURIComponent(d)))}},w=r.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(d){typeof d=="string"&&(d=_.parse(d)),this._data.concat(d),this._nDataBytes+=d.sigBytes},_process:function(d){var g=this._data,y=g.words,v=g.sigBytes,T=this.blockSize,I=v/(4*T),P=(I=d?i.ceil(I):i.max((0|I)-this._minBufferSize,0))*T,L=i.min(4*P,v);if(P){for(var D=0;D<P;D+=T)this._doProcessBlock(y,D);var F=y.splice(0,P);g.sigBytes-=L}return new c.init(F,L)},clone:function(){var d=l.clone.call(this);return d._data=this._data.clone(),d},_minBufferSize:0});r.Hasher=w.extend({cfg:l.extend(),init:function(d){this.cfg=this.cfg.extend(d),this.reset()},reset:function(){w.reset.call(this),this._doReset()},update:function(d){return this._append(d),this._process(),this},finalize:function(d){return d&&this._append(d),this._doFinalize()},blockSize:16,_createHelper:function(d){return function(g,y){return new d.init(y).finalize(g)}},_createHmacHelper:function(d){return function(g,y){return new h.HMAC.init(d,y).finalize(g)}}});var h=s.algo={};return s}(Math),n)}),ie=eo,to=(Y(function(t,e){var n;t.exports=(n=ie,function(i){var o=n,a=o.lib,s=a.WordArray,r=a.Hasher,l=o.algo,c=[];(function(){for(var h=0;h<64;h++)c[h]=4294967296*i.abs(i.sin(h+1))|0})();var p=l.MD5=r.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,d){for(var g=0;g<16;g++){var y=d+g,v=h[y];h[y]=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8)}var T=this._hash.words,I=h[d+0],P=h[d+1],L=h[d+2],D=h[d+3],F=h[d+4],Z=h[d+5],W=h[d+6],ae=h[d+7],X=h[d+8],he=h[d+9],se=h[d+10],De=h[d+11],Ee=h[d+12],Oe=h[d+13],Re=h[d+14],Ne=h[d+15],b=T[0],S=T[1],x=T[2],k=T[3];b=u(b,S,x,k,I,7,c[0]),k=u(k,b,S,x,P,12,c[1]),x=u(x,k,b,S,L,17,c[2]),S=u(S,x,k,b,D,22,c[3]),b=u(b,S,x,k,F,7,c[4]),k=u(k,b,S,x,Z,12,c[5]),x=u(x,k,b,S,W,17,c[6]),S=u(S,x,k,b,ae,22,c[7]),b=u(b,S,x,k,X,7,c[8]),k=u(k,b,S,x,he,12,c[9]),x=u(x,k,b,S,se,17,c[10]),S=u(S,x,k,b,De,22,c[11]),b=u(b,S,x,k,Ee,7,c[12]),k=u(k,b,S,x,Oe,12,c[13]),x=u(x,k,b,S,Re,17,c[14]),b=m(b,S=u(S,x,k,b,Ne,22,c[15]),x,k,P,5,c[16]),k=m(k,b,S,x,W,9,c[17]),x=m(x,k,b,S,De,14,c[18]),S=m(S,x,k,b,I,20,c[19]),b=m(b,S,x,k,Z,5,c[20]),k=m(k,b,S,x,se,9,c[21]),x=m(x,k,b,S,Ne,14,c[22]),S=m(S,x,k,b,F,20,c[23]),b=m(b,S,x,k,he,5,c[24]),k=m(k,b,S,x,Re,9,c[25]),x=m(x,k,b,S,D,14,c[26]),S=m(S,x,k,b,X,20,c[27]),b=m(b,S,x,k,Oe,5,c[28]),k=m(k,b,S,x,L,9,c[29]),x=m(x,k,b,S,ae,14,c[30]),b=_(b,S=m(S,x,k,b,Ee,20,c[31]),x,k,Z,4,c[32]),k=_(k,b,S,x,X,11,c[33]),x=_(x,k,b,S,De,16,c[34]),S=_(S,x,k,b,Re,23,c[35]),b=_(b,S,x,k,P,4,c[36]),k=_(k,b,S,x,F,11,c[37]),x=_(x,k,b,S,ae,16,c[38]),S=_(S,x,k,b,se,23,c[39]),b=_(b,S,x,k,Oe,4,c[40]),k=_(k,b,S,x,I,11,c[41]),x=_(x,k,b,S,D,16,c[42]),S=_(S,x,k,b,W,23,c[43]),b=_(b,S,x,k,he,4,c[44]),k=_(k,b,S,x,Ee,11,c[45]),x=_(x,k,b,S,Ne,16,c[46]),b=w(b,S=_(S,x,k,b,L,23,c[47]),x,k,I,6,c[48]),k=w(k,b,S,x,ae,10,c[49]),x=w(x,k,b,S,Re,15,c[50]),S=w(S,x,k,b,Z,21,c[51]),b=w(b,S,x,k,Ee,6,c[52]),k=w(k,b,S,x,D,10,c[53]),x=w(x,k,b,S,se,15,c[54]),S=w(S,x,k,b,P,21,c[55]),b=w(b,S,x,k,X,6,c[56]),k=w(k,b,S,x,Ne,10,c[57]),x=w(x,k,b,S,W,15,c[58]),S=w(S,x,k,b,Oe,21,c[59]),b=w(b,S,x,k,F,6,c[60]),k=w(k,b,S,x,De,10,c[61]),x=w(x,k,b,S,L,15,c[62]),S=w(S,x,k,b,he,21,c[63]),T[0]=T[0]+b|0,T[1]=T[1]+S|0,T[2]=T[2]+x|0,T[3]=T[3]+k|0},_doFinalize:function(){var h=this._data,d=h.words,g=8*this._nDataBytes,y=8*h.sigBytes;d[y>>>5]|=128<<24-y%32;var v=i.floor(g/4294967296),T=g;d[15+(y+64>>>9<<4)]=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8),d[14+(y+64>>>9<<4)]=16711935&(T<<8|T>>>24)|4278255360&(T<<24|T>>>8),h.sigBytes=4*(d.length+1),this._process();for(var I=this._hash,P=I.words,L=0;L<4;L++){var D=P[L];P[L]=16711935&(D<<8|D>>>24)|4278255360&(D<<24|D>>>8)}return I},clone:function(){var h=r.clone.call(this);return h._hash=this._hash.clone(),h}});function u(h,d,g,y,v,T,I){var P=h+(d&g|~d&y)+v+I;return(P<<T|P>>>32-T)+d}function m(h,d,g,y,v,T,I){var P=h+(d&y|g&~y)+v+I;return(P<<T|P>>>32-T)+d}function _(h,d,g,y,v,T,I){var P=h+(d^g^y)+v+I;return(P<<T|P>>>32-T)+d}function w(h,d,g,y,v,T,I){var P=h+(g^(d|~y))+v+I;return(P<<T|P>>>32-T)+d}o.MD5=r._createHelper(p),o.HmacMD5=r._createHmacHelper(p)}(Math),n.MD5)}),Y(function(t,e){var n;t.exports=(n=ie,void function(){var i=n,o=i.lib.Base,a=i.enc.Utf8;i.algo.HMAC=o.extend({init:function(s,r){s=this._hasher=new s.init,typeof r=="string"&&(r=a.parse(r));var l=s.blockSize,c=4*l;r.sigBytes>c&&(r=s.finalize(r)),r.clamp();for(var p=this._oKey=r.clone(),u=this._iKey=r.clone(),m=p.words,_=u.words,w=0;w<l;w++)m[w]^=1549556828,_[w]^=909522486;p.sigBytes=u.sigBytes=c,this.reset()},reset:function(){var s=this._hasher;s.reset(),s.update(this._iKey)},update:function(s){return this._hasher.update(s),this},finalize:function(s){var r=this._hasher,l=r.finalize(s);return r.reset(),r.finalize(this._oKey.clone().concat(l))}})}())}),Y(function(t,e){t.exports=ie.HmacMD5})),no=Y(function(t,e){t.exports=ie.enc.Utf8}),io=Y(function(t,e){var n;t.exports=(n=ie,function(){var i=n,o=i.lib.WordArray;function a(s,r,l){for(var c=[],p=0,u=0;u<r;u++)if(u%4){var m=l[s.charCodeAt(u-1)]<<u%4*2,_=l[s.charCodeAt(u)]>>>6-u%4*2;c[p>>>2]|=(m|_)<<24-p%4*8,p++}return o.create(c,p)}i.enc.Base64={stringify:function(s){var r=s.words,l=s.sigBytes,c=this._map;s.clamp();for(var p=[],u=0;u<l;u+=3)for(var m=(r[u>>>2]>>>24-u%4*8&255)<<16|(r[u+1>>>2]>>>24-(u+1)%4*8&255)<<8|r[u+2>>>2]>>>24-(u+2)%4*8&255,_=0;_<4&&u+.75*_<l;_++)p.push(c.charAt(m>>>6*(3-_)&63));var w=c.charAt(64);if(w)for(;p.length%4;)p.push(w);return p.join("")},parse:function(s){var r=s.length,l=this._map,c=this._reverseMap;if(!c){c=this._reverseMap=[];for(var p=0;p<l.length;p++)c[l.charCodeAt(p)]=p}var u=l.charAt(64);if(u){var m=s.indexOf(u);m!==-1&&(r=m)}return a(s,r,c)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),n.enc.Base64)}),$t="FUNCTION",oo="OBJECT",ao="CLIENT_DB",Yt="pending",so="fulfilled",Qt="rejected";function Se(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}function kn(t){return Se(t)==="object"}function Sn(t){return typeof t=="function"}function ro(t){return function(){try{return t.apply(t,arguments)}catch(e){console.error(e)}}}var Zt="REJECTED",In="NOT_PENDING",qe=class{constructor({createPromise:e,retryRule:n=Zt}={}){this.createPromise=e,this.status=null,this.promise=null,this.retryRule=n}get needRetry(){if(!this.status)return!0;switch(this.retryRule){case Zt:return this.status===Qt;case In:return this.status!==Yt}}exec(){return this.needRetry?(this.status=Yt,this.promise=this.createPromise().then(e=>(this.status=so,Promise.resolve(e)),e=>(this.status=Qt,Promise.reject(e))),this.promise):this.promise}};function Dt(t){return t&&typeof t=="string"?JSON.parse(t):t}var co=!1,lo="app",uo=Dt(Zi),Et=lo;Dt("");var ho=Dt("[]")||[],fo="";try{fo="__UNI__F743940"}catch(t){}var it,je={};function ge(t,e={}){var n,i;return n=je,i=t,Object.prototype.hasOwnProperty.call(n,i)||(je[t]=e),je[t]}function po(){return it||(it=function(){if(typeof globalThis!="undefined")return globalThis;if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;function t(){return this}return t()!==void 0?t():new Function("return this")()}(),it)}je=uni._globalUniCloudObj?uni._globalUniCloudObj:uni._globalUniCloudObj={};var An=["invoke","success","fail","complete"],G=ge("_globalUniCloudInterceptor");function Pn(t,e){G[t]||(G[t]={}),kn(e)&&Object.keys(e).forEach(n=>{An.indexOf(n)>-1&&function(i,o,a){let s=G[i][o];s||(s=G[i][o]=[]),s.indexOf(a)===-1&&Sn(a)&&s.push(a)}(t,n,e[n])})}function go(t,e){G[t]||(G[t]={}),kn(e)?Object.keys(e).forEach(n=>{An.indexOf(n)>-1&&function(i,o,a){let s=G[i][o];if(!s)return;let r=s.indexOf(a);r>-1&&s.splice(r,1)}(t,n,e[n])}):delete G[t]}function q(t,e){return t&&t.length!==0?t.reduce((n,i)=>n.then(()=>i(e)),Promise.resolve()):Promise.resolve()}function V(t,e){return G[t]&&G[t][e]||[]}function mo(t){Pn("callObject",t)}var ot=ge("_globalUniCloudListener"),$="response",me="needLogin",Ve="refreshToken",Xt="clientdb",Fe="cloudfunction",en="cloudobject";function Be(t){return ot[t]||(ot[t]=[]),ot[t]}function at(t,e){let n=Be(t);n.includes(e)||n.push(e)}function st(t,e){let n=Be(t),i=n.indexOf(e);i!==-1&&n.splice(i,1)}function K(t,e){let n=Be(t);for(let i=0;i<n.length;i++)(0,n[i])(e)}var rt,ct=!1;function Cn(){return rt||(rt=new Promise(t=>{ct&&t(),function e(){if(typeof getCurrentPages=="function"){let n=getCurrentPages();n&&n[0]&&(ct=!0,t())}ct||setTimeout(()=>{e()},30)}()}),rt)}function Bn(t){let e={};for(let n in t){let i=t[n];Sn(i)&&(e[n]=ro(i))}return e}var A=class extends Error{constructor(e){super(e.message),this.errMsg=e.message||e.errMsg||"unknown system error",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}}},N={request:t=>uni.request(t),uploadFile:t=>uni.uploadFile(t),setStorageSync:(t,e)=>uni.setStorageSync(t,e),getStorageSync:t=>uni.getStorageSync(t),removeStorageSync:t=>uni.removeStorageSync(t),clearStorageSync:()=>uni.clearStorageSync(),connectSocket:t=>uni.connectSocket(t)};function Ln(t){return t&&Ln(t.__v_raw)||t}function Ie(){return{token:N.getStorageSync("uni_id_token")||N.getStorageSync("uniIdToken"),tokenExpired:N.getStorageSync("uni_id_token_expired")}}function Dn({token:t,tokenExpired:e}={}){t&&N.setStorageSync("uni_id_token",t),e&&N.setStorageSync("uni_id_token_expired",e)}var lt,Ue;function En(){return lt||(lt=uni.getSystemInfoSync()),lt}function _o(){let t,e;try{if(uni.getLaunchOptionsSync){if(uni.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;let{scene:n,channel:i}=uni.getLaunchOptionsSync();t=i,e=n}}catch(n){}return{channel:t,scene:e}}var pt={};function gt(){let t=uni.getLocale&&uni.getLocale()||"en";if(Ue)return j(E(E({},pt),Ue),{locale:t,LOCALE:t});let e=En(),{deviceId:n,osName:i,uniPlatform:o,appId:a}=e,s=["appId","appLanguage","appName","appVersion","appVersionCode","appWgtVersion","browserName","browserVersion","deviceBrand","deviceId","deviceModel","deviceType","osName","osVersion","romName","romVersion","ua","hostName","hostVersion","uniPlatform","uniRuntimeVersion","uniRuntimeVersionCode","uniCompilerVersion","uniCompilerVersionCode"];for(let r in e)Object.hasOwnProperty.call(e,r)&&s.indexOf(r)===-1&&delete e[r];return Ue=E(E({PLATFORM:o,OS:i,APPID:a,DEVICEID:n},_o()),e),j(E(E({},pt),Ue),{locale:t,LOCALE:t})}var pe={sign:function(t,e){let n="";return Object.keys(t).sort().forEach(function(i){t[i]&&(n=n+"&"+i+"="+t[i])}),n=n.slice(1),to(n,e).toString()},wrappedRequest:function(t,e){return new Promise((n,i)=>{e(Object.assign(t,{complete(o){o||(o={});let a=o.data&&o.data.header&&o.data.header["x-serverless-request-id"]||o.header&&o.header["request-id"];if(!o.statusCode||o.statusCode>=400){let r=o.data&&o.data.error&&o.data.error.code||"SYS_ERR",l=o.data&&o.data.error&&o.data.error.message||o.errMsg||"request:fail";return i(new A({code:r,message:l,requestId:a}))}let s=o.data;if(s.error)return i(new A({code:s.error.code,message:s.error.message,requestId:a}));s.result=s.data,s.requestId=a,delete s.data,n(s)}}))})},toBase64:function(t){return io.stringify(no.parse(t))}},yo=class{constructor(t){["spaceId","clientSecret"].forEach(e=>{if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error(`${e} required`)}),this.config=Object.assign({},{endpoint:t.spaceId.indexOf("mp-")===0?"https://api.next.bspapp.com":"https://api.bspapp.com"},t),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=N,this._getAccessTokenPromiseHub=new qe({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:In})}get hasAccessToken(){return!!this.accessToken}setAccessToken(t){this.accessToken=t}requestWrapped(t){return pe.wrappedRequest(t,this.adapter.request)}requestAuth(t){return this.requestWrapped(t)}request(t,e){return Promise.resolve().then(()=>this.hasAccessToken?e?this.requestWrapped(t):this.requestWrapped(t).catch(n=>new Promise((i,o)=>{!n||n.code!=="GATEWAY_INVALID_TOKEN"&&n.code!=="InvalidParameter.InvalidToken"?o(n):i()}).then(()=>this.getAccessToken()).then(()=>{let i=this.rebuildRequest(t);return this.request(i,!0)})):this.getAccessToken().then(()=>{let n=this.rebuildRequest(t);return this.request(n,!0)}))}rebuildRequest(t){let e=Object.assign({},t);return e.data.token=this.accessToken,e.header["x-basement-token"]=this.accessToken,e.header["x-serverless-sign"]=pe.sign(e.data,this.config.clientSecret),e}setupRequest(t,e){let n=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now()}),i={"Content-Type":"application/json"};return e!=="auth"&&(n.token=this.accessToken,i["x-basement-token"]=this.accessToken),i["x-serverless-sign"]=pe.sign(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:i}}getAccessToken(){return this._getAccessTokenPromiseHub.exec()}authorize(){return C(this,null,function*(){yield this.getAccessToken()})}callFunction(t){let e={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:t.name,functionArgs:t.data||{}})};return this.request(j(E({},this.setupRequest(e)),{timeout:t.timeout}))}getOSSUploadOptionsFromPath(t){let e={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(t)};return this.request(this.setupRequest(e))}uploadFileToOSS({url:t,formData:e,name:n,filePath:i,fileType:o,onUploadProgress:a}){return new Promise((s,r)=>{let l=this.adapter.uploadFile({url:t,formData:e,name:n,filePath:i,fileType:o,header:{"X-OSS-server-side-encrpytion":"AES256"},success(c){c&&c.statusCode<400?s(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 a=="function"&&l&&typeof l.onProgressUpdate=="function"&&l.onProgressUpdate(c=>{a({loaded:c.totalBytesSent,total:c.totalBytesExpectedToSend})})})}reportOSSUpload(t){let e={method:"serverless.file.resource.report",params:JSON.stringify(t)};return this.request(this.setupRequest(e))}uploadFile(s){return C(this,arguments,function*({filePath:t,cloudPath:e,fileType:n="image",cloudPathAsRealPath:i=!1,onUploadProgress:o,config:a}){if(Se(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=a&&a.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:p,accessKeyId:u,signature:m,host:_,ossPath:w,id:h,policy:d,ossCallbackUrl:g}=l,y={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:u,Signature:m,host:_,id:h,key:w,policy:d,success_action_status:200};if(p&&(y["x-oss-security-token"]=p),g){let T=JSON.stringify({callbackUrl:g,callbackBody:JSON.stringify({fileId:h,spaceId:this.config.spaceId}),callbackBodyType:"application/json"});y.callback=pe.toBase64(T)}let v={url:"https://"+l.host,formData:y,fileName:"file",name:"file",filePath:t,fileType:n};if(yield this.uploadFileToOSS(Object.assign({},v,{onUploadProgress:o})),g)return{success:!0,filePath:t,fileID:c};if((yield this.reportOSSUpload({id:h})).success)return{success:!0,filePath:t,fileID:c};throw new A({code:"UPLOAD_FAILED",message:"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"})})}getTempFileURL({fileList:t}={}){return new Promise((e,n)=>{Array.isArray(t)&&t.length!==0||n(new A({code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7D20\u5FC5\u987B\u662F\u975E\u7A7A\u7684\u5B57\u7B26\u4E32"})),e({fileList:t.map(i=>({fileID:i,tempFileURL:i}))})})}getFileInfo(){return C(this,arguments,function*({fileList:t}={}){if(!Array.isArray(t)||t.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:t.map(n=>n.split("?")[0]).join(",")})};return{fileList:(yield this.request(this.setupRequest(e))).result}})}},vo={init(t){let e=new yo(t),n={signInAnonymously:function(){return e.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return e.auth=function(){return n},e.customAuth=e.auth,e}},wo=typeof location!="undefined"&&location.protocol==="http:"?"http:":"https:",tn;(function(t){t.local="local",t.none="none",t.session="session"})(tn||(tn={}));var To=function(){},bo=Y(function(t,e){var n;t.exports=(n=ie,function(i){var o=n,a=o.lib,s=a.WordArray,r=a.Hasher,l=o.algo,c=[],p=[];(function(){function _(g){for(var y=i.sqrt(g),v=2;v<=y;v++)if(!(g%v))return!1;return!0}function w(g){return 4294967296*(g-(0|g))|0}for(var h=2,d=0;d<64;)_(h)&&(d<8&&(c[d]=w(i.pow(h,.5))),p[d]=w(i.pow(h,1/3)),d++),h++})();var u=[],m=l.SHA256=r.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(_,w){for(var h=this._hash.words,d=h[0],g=h[1],y=h[2],v=h[3],T=h[4],I=h[5],P=h[6],L=h[7],D=0;D<64;D++){if(D<16)u[D]=0|_[w+D];else{var F=u[D-15],Z=(F<<25|F>>>7)^(F<<14|F>>>18)^F>>>3,W=u[D-2],ae=(W<<15|W>>>17)^(W<<13|W>>>19)^W>>>10;u[D]=Z+u[D-7]+ae+u[D-16]}var X=d&g^d&y^g&y,he=(d<<30|d>>>2)^(d<<19|d>>>13)^(d<<10|d>>>22),se=L+((T<<26|T>>>6)^(T<<21|T>>>11)^(T<<7|T>>>25))+(T&I^~T&P)+p[D]+u[D];L=P,P=I,I=T,T=v+se|0,v=y,y=g,g=d,d=se+(he+X)|0}h[0]=h[0]+d|0,h[1]=h[1]+g|0,h[2]=h[2]+y|0,h[3]=h[3]+v|0,h[4]=h[4]+T|0,h[5]=h[5]+I|0,h[6]=h[6]+P|0,h[7]=h[7]+L|0},_doFinalize:function(){var _=this._data,w=_.words,h=8*this._nDataBytes,d=8*_.sigBytes;return w[d>>>5]|=128<<24-d%32,w[14+(d+64>>>9<<4)]=i.floor(h/4294967296),w[15+(d+64>>>9<<4)]=h,_.sigBytes=4*w.length,this._process(),this._hash},clone:function(){var _=r.clone.call(this);return _._hash=this._hash.clone(),_}});o.SHA256=r._createHelper(m),o.HmacSHA256=r._createHmacHelper(m)}(Math),n.SHA256)}),mt=bo,On=Y(function(t,e){t.exports=ie.HmacSHA256}),Le=()=>{let t;if(!Promise){t=()=>{},t.promise={};let n=()=>{throw new A({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(t.promise,"then",{get:n}),Object.defineProperty(t.promise,"catch",{get:n}),t}let e=new Promise((n,i)=>{t=(o,a)=>o?i(o):n(a)});return t.promise=e,t};function xo(t){return t===void 0}function ko(t){return Object.prototype.toString.call(t)==="[object Null]"}function nn(t=""){return t.replace(/([\s\S]+)\s+(请前往云开发AI小助手查看问题：.*)/,"$1")}function on(t=32){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=e.length,i="";for(let o=0;o<t;o++)i+=e.charAt(Math.floor(Math.random()*n));return i}var an;function So(t){let e=(n=t,Object.prototype.toString.call(n)==="[object Array]"?t:[t]);var n;for(let i of e){let{isMatch:o,genAdapter:a,runtime:s}=i;if(o())return{adapter:a(),runtime:s}}}(function(t){t.WEB="web",t.WX_MP="wx_mp"})(an||(an={}));var M={adapter:null,runtime:void 0},Io=["anonymousUuidKey"],be=class extends To{constructor(){super(),M.adapter.root.tcbObject||(M.adapter.root.tcbObject={})}setItem(e,n){M.adapter.root.tcbObject[e]=n}getItem(e){return M.adapter.root.tcbObject[e]}removeItem(e){delete M.adapter.root.tcbObject[e]}clear(){delete M.adapter.root.tcbObject}};function sn(t,e){switch(t){case"local":return e.localStorage||new be;case"none":return new be;default:return e.sessionStorage||new be}}var ze=class{constructor(e){if(!this._storage){this._persistence=M.adapter.primaryStorage||e.persistence,this._storage=sn(this._persistence,M.adapter);let n=`access_token_${e.env}`,i=`access_token_expire_${e.env}`,o=`refresh_token_${e.env}`,a=`anonymous_uuid_${e.env}`,s=`login_type_${e.env}`,r="device_id",l=`token_type_${e.env}`,c=`user_info_${e.env}`;this.keys={accessTokenKey:n,accessTokenExpireKey:i,refreshTokenKey:o,anonymousUuidKey:a,loginTypeKey:s,userInfoKey:c,deviceIdKey:r,tokenTypeKey:l}}}updatePersistence(e){if(e===this._persistence)return;let n=this._persistence==="local";this._persistence=e;let i=sn(e,M.adapter);for(let o in this.keys){let a=this.keys[o];if(n&&Io.includes(o))continue;let s=this._storage.getItem(a);xo(s)||ko(s)||(i.setItem(a,s),this._storage.removeItem(a))}this._storage=i}setStore(e,n,i){if(!this._storage)return;let o={version:i||"localCachev1",content:n},a=JSON.stringify(o);try{this._storage.setItem(e,a)}catch(s){throw s}}getStore(e,n){try{if(!this._storage)return}catch(o){return""}n=n||"localCachev1";let i=this._storage.getItem(e);return i&&i.indexOf(n)>=0?JSON.parse(i).content:""}removeStore(e){this._storage.removeItem(e)}},Rn={},Nn={};function ve(t){return Rn[t]}var We=class{constructor(e,n){this.data=n||null,this.name=e}},_t=class extends We{constructor(e,n){super("error",{error:e,data:n}),this.error=e}},Ot=new class{constructor(){this._listeners={}}on(t,e){return function(n,i,o){o[n]=o[n]||[],o[n].push(i)}(t,e,this._listeners),this}off(t,e){return function(n,i,o){if(o&&o[n]){let a=o[n].indexOf(i);a!==-1&&o[n].splice(a,1)}}(t,e,this._listeners),this}fire(t,e){if(t instanceof _t)return console.error(t.error),this;let n=typeof t=="string"?new We(t,e||{}):t,i=n.name;if(this._listens(i)){n.target=this;let o=this._listeners[i]?[...this._listeners[i]]:[];for(let a of o)a.call(this,n)}return this}_listens(t){return this._listeners[t]&&this._listeners[t].length>0}};function ne(t,e){Ot.on(t,e)}function z(t,e={}){Ot.fire(t,e)}function Ao(t,e){Ot.off(t,e)}var _e="loginStateChanged",Fn="loginStateExpire",oe="loginTypeChanged",yt="anonymousConverted",Un="refreshAccessToken",R;(function(t){t.ANONYMOUS="ANONYMOUS",t.WECHAT="WECHAT",t.WECHAT_PUBLIC="WECHAT-PUBLIC",t.WECHAT_OPEN="WECHAT-OPEN",t.CUSTOM="CUSTOM",t.EMAIL="EMAIL",t.USERNAME="USERNAME",t.NULL="NULL"})(R||(R={}));var vt=class{constructor(){this._fnPromiseMap=new Map}run(e,n){return C(this,null,function*(){let i=this._fnPromiseMap.get(e);return i||(i=new Promise((o,a)=>C(this,null,function*(){try{yield this._runIdlePromise();let s=n();o(yield s)}catch(s){a(s)}finally{this._fnPromiseMap.delete(e)}})),this._fnPromiseMap.set(e,i)),i})}_runIdlePromise(){return Promise.resolve()}},wt=class{constructor(e){this._singlePromise=new vt,this._cache=ve(e.env),this._baseURL=`https://${e.env}.ap-shanghai.tcb-api.tencentcloudapi.com`,this._reqClass=new M.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,n=this._cache.getStore(e);return typeof n=="string"&&n.length>=16&&n.length<=48||(n=on(),this._cache.setStore(e,n)),this._deviceID=n,n}_request(o,a){return C(this,arguments,function*(e,n,i={}){let s={"x-request-id":on(),"x-device-id":this._getDeviceId()};if(i.withAccessToken){let{tokenTypeKey:r}=this._cache.keys,l=yield this.getAccessToken(),c=this._cache.getStore(r);s.authorization=`${c} ${l}`}return this._reqClass[i.method==="get"?"get":"post"]({url:`${this._baseURL}${e}`,data:n,headers:s})})}_fetchAccessToken(){return C(this,null,function*(){let{loginTypeKey:e,accessTokenKey:n,accessTokenExpireKey:i,tokenTypeKey:o}=this._cache.keys,a=this._cache.getStore(e);if(a&&a!==R.ANONYMOUS)throw new A({code:"INVALID_OPERATION",message:"\u975E\u533F\u540D\u767B\u5F55\u4E0D\u652F\u6301\u5237\u65B0 access token"});let s=yield this._singlePromise.run("fetchAccessToken",()=>C(this,null,function*(){return(yield this._request("/auth/v1/signin/anonymously",{},{method:"post"})).data})),{access_token:r,expires_in:l,token_type:c}=s;return this._cache.setStore(o,c),this._cache.setStore(n,r),this._cache.setStore(i,Date.now()+1e3*l),r})}isAccessTokenExpired(e,n){let i=!0;return e&&n&&(i=n<Date.now()),i}getAccessToken(){return C(this,null,function*(){let{accessTokenKey:e,accessTokenExpireKey:n}=this._cache.keys,i=this._cache.getStore(e),o=this._cache.getStore(n);return this.isAccessTokenExpired(i,o)?this._fetchAccessToken():i})}refreshAccessToken(){return C(this,null,function*(){let{accessTokenKey:e,accessTokenExpireKey:n,loginTypeKey:i}=this._cache.keys;return this._cache.removeStore(e),this._cache.removeStore(n),this._cache.setStore(i,R.ANONYMOUS),this.getAccessToken()})}getUserInfo(){return C(this,null,function*(){return this._singlePromise.run("getUserInfo",()=>C(this,null,function*(){return(yield this._request("/auth/v1/user/me",{},{withAccessToken:!0,method:"get"})).data}))})}},rn=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],Po={"X-SDK-Version":"1.3.5"};function dt(t,e,n){let i=t[e];t[e]=function(o){let a={},s={};n.forEach(l=>{let{data:c,headers:p}=l.call(t,o);Object.assign(a,c),Object.assign(s,p)});let r=o.data;return r&&(()=>{var l;if(l=r,Object.prototype.toString.call(l)!=="[object FormData]")o.data=E(E({},r),a);else for(let c in a)r.append(c,a[c])})(),o.headers=E(E({},o.headers||{}),s),i.call(t,o)}}function ut(){let t=Math.random().toString(16).slice(2);return{data:{seqId:t},headers:j(E({},Po),{"x-seqid":t})}}var Tt=class{constructor(e={}){var n;this.config=e,this._reqClass=new M.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=(n=this.config.env,Nn[n]),this.oauth=new wt(this.config),dt(this._reqClass,"post",[ut]),dt(this._reqClass,"upload",[ut]),dt(this._reqClass,"download",[ut])}post(e){return C(this,null,function*(){return yield this._reqClass.post(e)})}upload(e){return C(this,null,function*(){return yield this._reqClass.upload(e)})}download(e){return C(this,null,function*(){return yield this._reqClass.download(e)})}refreshAccessToken(){return C(this,null,function*(){let e,n;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{e=yield this._refreshAccessTokenPromise}catch(i){n=i}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,n)throw n;return e})}_refreshAccessToken(){return C(this,null,function*(){let{accessTokenKey:e,accessTokenExpireKey:n,refreshTokenKey:i,loginTypeKey:o,anonymousUuidKey:a}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(n);let s=this._cache.getStore(i);if(!s)throw new A({message:"\u672A\u767B\u5F55CloudBase"});let r={refresh_token:s},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(o)===R.ANONYMOUS&&c==="INVALID_REFRESH_TOKEN"){let p=this._cache.getStore(a),u=this._cache.getStore(i),m=yield this.send("auth.signInAnonymously",{anonymous_uuid:p,refresh_token:u});return this.setRefreshToken(m.refresh_token),this._refreshAccessToken()}z(Fn),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 z(Un),this._cache.setStore(e,l.data.access_token),this._cache.setStore(n,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 C(this,null,function*(){let{accessTokenKey:e,accessTokenExpireKey:n,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 o=this._cache.getStore(e),a=this._cache.getStore(n),s=!0;return this._shouldRefreshAccessTokenHook&&!(yield this._shouldRefreshAccessTokenHook(o,a))&&(s=!1),(!o||!a||a<Date.now())&&s?this.refreshAccessToken():{accessToken:o,accessTokenExpire:a}})}request(e,n,i){return C(this,null,function*(){let o=`x-tcb-trace_${this.config.env}`,a="application/x-www-form-urlencoded",s=E({action:e,env:this.config.env,dataVersion:"2019-08-16"},n),r;if(rn.indexOf(e)===-1&&(this._cache.keys,s.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,s[g]);a="multipart/form-data"}else{a="application/json",r={};for(let g in s)s[g]!==void 0&&(r[g]=s[g])}let l={headers:{"content-type":a}};i&&i.timeout&&(l.timeout=i.timeout),i&&i.onUploadProgress&&(l.onUploadProgress=i.onUploadProgress);let c=this._localCache.getStore(o);c&&(l.headers["X-TCB-Trace"]=c);let{parse:p,inQuery:u,search:m}=n,_={env:this.config.env};p&&(_.parse=!0),u&&(_=E(E({},u),_));let w=function(g,y,v={}){let T=/\?/.test(y),I="";for(let P in v)I===""?!T&&(y+="?"):I+="&",I+=`${P}=${encodeURIComponent(v[P])}`;return/^http(s)?\:\/\//.test(y+=I)?y:`${g}${y}`}(wo,"//tcb-api.tencentcloudapi.com/web",_);m&&(w+=m);let h=yield this.post(E({url:w,data:r},l)),d=h.header&&h.header["x-tcb-trace"];if(d&&this._localCache.setStore(o,d),Number(h.status)!==200&&Number(h.statusCode)!==200||!h.data)throw new A({code:"NETWORK_ERROR",message:"network request error"});return h})}send(o){return C(this,arguments,function*(e,n={},i={}){let a=yield this.request(e,n,j(E({},i),{onUploadProgress:n.onUploadProgress}));if((a.data.code==="ACCESS_TOKEN_DISABLED"||a.data.code==="ACCESS_TOKEN_EXPIRED")&&rn.indexOf(e)===-1){yield this.oauth.refreshAccessToken();let s=yield this.request(e,n,j(E({},i),{onUploadProgress:n.onUploadProgress}));if(s.data.code)throw new A({code:s.data.code,message:nn(s.data.message)});return s.data}if(a.data.code)throw new A({code:a.data.code,message:nn(a.data.message)});return a.data})}setRefreshToken(e){let{accessTokenKey:n,accessTokenExpireKey:i,refreshTokenKey:o}=this._cache.keys;this._cache.removeStore(n),this._cache.removeStore(i),this._cache.setStore(o,e)}},Mn={};function Q(t){return Mn[t]}var ye=class{constructor(e){this.config=e,this._cache=ve(e.env),this._request=Q(e.env)}setRefreshToken(e){let{accessTokenKey:n,accessTokenExpireKey:i,refreshTokenKey:o}=this._cache.keys;this._cache.removeStore(n),this._cache.removeStore(i),this._cache.setStore(o,e)}setAccessToken(e,n){let{accessTokenKey:i,accessTokenExpireKey:o}=this._cache.keys;this._cache.setStore(i,e),this._cache.setStore(o,n)}refreshUserInfo(){return C(this,null,function*(){let{data:e}=yield this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e})}setLocalUserInfo(e){let{userInfoKey:n}=this._cache.keys;this._cache.setStore(n,e)}},bt=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=Q(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,n){return this._request.send("auth.updatePassword",{oldPassword:n,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 C(this,null,function*(){let{data:e}=yield this._request.send("auth.getLinkedUidList",{}),n=!1,{users:i}=e;return i.forEach(o=>{o.wxOpenId&&o.wxPublicId&&(n=!0)}),{users:i,hasPrimaryUid:n}})}setPrimaryUid(e){return this._request.send("auth.setPrimaryUid",{uid:e})}unlink(e){return this._request.send("auth.unlink",{platform:e})}update(e){return C(this,null,function*(){let{nickName:n,gender:i,avatarUrl:o,province:a,country:s,city:r}=e,{data:l}=yield this._request.send("auth.updateUserInfo",{nickName:n,gender:i,avatarUrl:o,province:a,country:s,city:r});this.setLocalUserInfo(l)})}refresh(){return C(this,null,function*(){let e=yield this._request.oauth.getUserInfo();return this.setLocalUserInfo(e),e})}setUserInfo(){let{userInfoKey:e}=this._cache.keys,n=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach(i=>{this[i]=n[i]}),this.location={country:n.country,province:n.province,city:n.city}}setLocalUserInfo(e){let{userInfoKey:n}=this._cache.keys;this._cache.setStore(n,e),this.setUserInfo()}},ue=class{constructor(e){if(!e)throw new A({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=ve(e);let{refreshTokenKey:n,accessTokenKey:i,accessTokenExpireKey:o}=this._cache.keys,a=this._cache.getStore(n),s=this._cache.getStore(i),r=this._cache.getStore(o);this.credential={refreshToken:a,accessToken:s,accessTokenExpire:r},this.user=new bt(e)}get isAnonymousAuth(){return this.loginType===R.ANONYMOUS}get isCustomAuth(){return this.loginType===R.CUSTOM}get isWeixinAuth(){return this.loginType===R.WECHAT||this.loginType===R.WECHAT_OPEN||this.loginType===R.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}},xe=class extends ye{signIn(){return C(this,null,function*(){this._cache.updatePersistence("local"),yield this._request.oauth.getAccessToken(),z(_e),z(oe,{env:this.config.env,loginType:R.ANONYMOUS,persistence:"local"});let e=new ue(this.config.env);return yield e.user.refresh(),e})}linkAndRetrieveDataWithTicket(e){return C(this,null,function*(){let{anonymousUuidKey:n,refreshTokenKey:i}=this._cache.keys,o=this._cache.getStore(n),a=this._cache.getStore(i),s=yield this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:o,refresh_token:a,ticket:e});if(s.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(s.refresh_token),yield this._request.refreshAccessToken(),z(yt,{env:this.config.env}),z(oe,{loginType:R.CUSTOM,persistence:"local"}),{credential:{refreshToken:s.refresh_token}};throw new A({message:"\u533F\u540D\u8F6C\u5316\u5931\u8D25"})})}_setAnonymousUUID(e){let{anonymousUuidKey:n,loginTypeKey:i}=this._cache.keys;this._cache.removeStore(n),this._cache.setStore(n,e),this._cache.setStore(i,R.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}},He=class extends ye{signIn(e){return C(this,null,function*(){if(typeof e!="string")throw new A({code:"PARAM_ERROR",message:"ticket must be a string"});let{refreshTokenKey:n}=this._cache.keys,i=yield this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(n)||""});if(i.refresh_token)return this.setRefreshToken(i.refresh_token),yield this._request.refreshAccessToken(),z(_e),z(oe,{env:this.config.env,loginType:R.CUSTOM,persistence:this.config.persistence}),yield this.refreshUserInfo(),new ue(this.config.env);throw new A({message:"\u81EA\u5B9A\u4E49\u767B\u5F55\u5931\u8D25"})})}},Je=class extends ye{signIn(e,n){return C(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,o=yield this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:n,refresh_token:this._cache.getStore(i)||""}),{refresh_token:a,access_token:s,access_token_expire:r}=o;if(a)return this.setRefreshToken(a),s&&r?this.setAccessToken(s,r):yield this._request.refreshAccessToken(),yield this.refreshUserInfo(),z(_e),z(oe,{env:this.config.env,loginType:R.EMAIL,persistence:this.config.persistence}),new ue(this.config.env);throw o.code?new A({code:o.code,message:`\u90AE\u7BB1\u767B\u5F55\u5931\u8D25: ${o.message}`}):new A({message:"\u90AE\u7BB1\u767B\u5F55\u5931\u8D25"})})}activate(e){return C(this,null,function*(){return this._request.send("auth.activateEndUserMail",{token:e})})}resetPasswordWithToken(e,n){return C(this,null,function*(){return this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:n})})}},Ke=class extends ye{signIn(e,n){return C(this,null,function*(){if(typeof e!="string")throw new A({code:"PARAM_ERROR",message:"username must be a string"});typeof n!="string"&&(n="",console.warn("password is empty"));let{refreshTokenKey:i}=this._cache.keys,o=yield this._request.send("auth.signIn",{loginType:R.USERNAME,username:e,password:n,refresh_token:this._cache.getStore(i)||""}),{refresh_token:a,access_token_expire:s,access_token:r}=o;if(a)return this.setRefreshToken(a),r&&s?this.setAccessToken(r,s):yield this._request.refreshAccessToken(),yield this.refreshUserInfo(),z(_e),z(oe,{env:this.config.env,loginType:R.USERNAME,persistence:this.config.persistence}),new ue(this.config.env);throw o.code?new A({code:o.code,message:`\u7528\u6237\u540D\u5BC6\u7801\u767B\u5F55\u5931\u8D25: ${o.message}`}):new A({message:"\u7528\u6237\u540D\u5BC6\u7801\u767B\u5F55\u5931\u8D25"})})}},xt=class{constructor(e){this.config=e,this._cache=ve(e.env),this._request=Q(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 xe(this.config)}customAuthProvider(){return new He(this.config)}emailAuthProvider(){return new Je(this.config)}usernameAuthProvider(){return new Ke(this.config)}signInAnonymously(){return C(this,null,function*(){return new xe(this.config).signIn()})}signInWithEmailAndPassword(e,n){return C(this,null,function*(){return new Je(this.config).signIn(e,n)})}signInWithUsernameAndPassword(e,n){return new Ke(this.config).signIn(e,n)}linkAndRetrieveDataWithTicket(e){return C(this,null,function*(){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new xe(this.config)),ne(yt,this._onAnonymousConverted),yield this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)})}signOut(){return C(this,null,function*(){if(this.loginType===R.ANONYMOUS)throw new A({message:"\u533F\u540D\u7528\u6237\u4E0D\u652F\u6301\u767B\u51FA\u64CD\u4F5C"});let{refreshTokenKey:e,accessTokenKey:n,accessTokenExpireKey:i}=this._cache.keys,o=this._cache.getStore(e);if(!o)return;let a=yield this._request.send("auth.logout",{refresh_token:o});return this._cache.removeStore(e),this._cache.removeStore(n),this._cache.removeStore(i),z(_e),z(oe,{env:this.config.env,loginType:R.NULL,persistence:this.config.persistence}),a})}signUpWithEmailAndPassword(e,n){return C(this,null,function*(){return this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:n})})}sendPasswordResetEmail(e){return C(this,null,function*(){return this._request.send("auth.sendPasswordResetEmail",{email:e})})}onLoginStateChanged(e){ne(_e,()=>{let i=this.hasLoginState();e.call(this,i)});let n=this.hasLoginState();e.call(this,n)}onLoginStateExpired(e){ne(Fn,e.bind(this))}onAccessTokenRefreshed(e){ne(Un,e.bind(this))}onAnonymousConverted(e){ne(yt,e.bind(this))}onLoginTypeChanged(e){ne(oe,()=>{let n=this.hasLoginState();e.call(this,n)})}getAccessToken(){return C(this,null,function*(){return{accessToken:(yield this._request.getAccessToken()).accessToken,env:this.config.env}})}hasLoginState(){let{accessTokenKey:e,accessTokenExpireKey:n}=this._cache.keys,i=this._cache.getStore(e),o=this._cache.getStore(n);return this._request.oauth.isAccessTokenExpired(i,o)?null:new ue(this.config.env)}isUsernameRegistered(e){return C(this,null,function*(){if(typeof e!="string")throw new A({code:"PARAM_ERROR",message:"username must be a string"});let{data:n}=yield this._request.send("auth.isUsernameRegistered",{username:e});return n&&n.isRegistered})}getLoginState(){return Promise.resolve(this.hasLoginState())}signInWithTicket(e){return C(this,null,function*(){return new He(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(E({},e.data),{requestId:e.seqId}))}getAuthHeader(){let{refreshTokenKey:e,accessTokenKey:n}=this._cache.keys,i=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(n)+"/@@/"+i}}_onAnonymousConverted(e){let{env:n}=e.data;n===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(e){let{loginType:n,persistence:i,env:o}=e.data;o===this.config.env&&(this._cache.updatePersistence(i),this._cache.setStore(this._cache.keys.loginTypeKey,n))}},Co=function(t,e){e=e||Le();let n=Q(this.config.env),{cloudPath:i,filePath:o,onUploadProgress:a,fileType:s="image"}=t;return n.send("storage.getUploadMetadata",{path:i}).then(r=>{let{data:{url:l,authorization:c,token:p,fileId:u,cosFileId:m},requestId:_}=r,w={key:i,signature:c,"x-cos-meta-fileid":m,success_action_status:"201","x-cos-security-token":p};n.upload({url:l,data:w,file:o,name:i,fileType:s,onUploadProgress:a}).then(h=>{h.statusCode===201?e(null,{fileID:u,requestId:_}):e(new A({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${h.data}`}))}).catch(h=>{e(h)})}).catch(r=>{e(r)}),e.promise},Bo=function(t,e){e=e||Le();let n=Q(this.config.env),{cloudPath:i}=t;return n.send("storage.getUploadMetadata",{path:i}).then(o=>{e(null,o)}).catch(o=>{e(o)}),e.promise},Lo=function({fileList:t},e){if(e=e||Le(),!t||!Array.isArray(t))return{code:"INVALID_PARAM",message:"fileList\u5FC5\u987B\u662F\u975E\u7A7A\u7684\u6570\u7EC4"};for(let i of t)if(!i||typeof i!="string")return{code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7D20\u5FC5\u987B\u662F\u975E\u7A7A\u7684\u5B57\u7B26\u4E32"};let n={fileid_list:t};return Q(this.config.env).send("storage.batchDeleteFile",n).then(i=>{i.code?e(null,i):e(null,{fileList:i.data.delete_list,requestId:i.requestId})}).catch(i=>{e(i)}),e.promise},jn=function({fileList:t},e){e=e||Le(),t&&Array.isArray(t)||e(null,{code:"INVALID_PARAM",message:"fileList\u5FC5\u987B\u662F\u975E\u7A7A\u7684\u6570\u7EC4"});let n=[];for(let o of t)typeof o=="object"?(o.hasOwnProperty("fileID")&&o.hasOwnProperty("maxAge")||e(null,{code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7D20\u5FC5\u987B\u662F\u5305\u542BfileID\u548CmaxAge\u7684\u5BF9\u8C61"}),n.push({fileid:o.fileID,max_age:o.maxAge})):typeof o=="string"?n.push({fileid:o}):e(null,{code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7D20\u5FC5\u987B\u662F\u5B57\u7B26\u4E32"});let i={file_list:n};return Q(this.config.env).send("storage.batchGetDownloadUrl",i).then(o=>{o.code?e(null,o):e(null,{fileList:o.data.download_list,requestId:o.requestId})}).catch(o=>{e(o)}),e.promise},Do=function(n,i){return C(this,arguments,function*({fileID:t},e){let o=(yield jn.call(this,{fileList:[{fileID:t,maxAge:600}]})).fileList[0];if(o.code!=="SUCCESS")return e?e(o):new Promise(r=>{r(o)});let a=Q(this.config.env),s=o.download_url;if(s=encodeURI(s),!e)return a.download({url:s});e(yield a.download({url:s}))})},Eo=function({name:t,data:e,query:n,parse:i,search:o,timeout:a},s){let r=s||Le(),l;try{l=e?JSON.stringify(e):""}catch(p){return Promise.reject(p)}if(!t)return Promise.reject(new A({code:"PARAM_ERROR",message:"\u51FD\u6570\u540D\u4E0D\u80FD\u4E3A\u7A7A"}));let c={inQuery:n,parse:i,search:o,function_name:t,request_data:l};return Q(this.config.env).send("functions.invokeFunction",c,{timeout:a}).then(p=>{if(p.code)r(null,p);else{let u=p.data.response_data;if(i)r(null,{result:u,requestId:p.requestId});else try{u=JSON.parse(p.data.response_data),r(null,{result:u,requestId:p.requestId})}catch(m){r(new A({message:"response data must be json"}))}}return r.promise}).catch(p=>{r(p)}),r.promise},cn={timeout:15e3,persistence:"session"},ln={},kt=class t{constructor(e){this.config=e||this.config,this.authObj=void 0}init(e){switch(M.adapter||(this.requestClient=new M.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=E(E({},cn),e),!0){case this.config.timeout>6e5: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=6e5;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 t(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;let n=e||M.adapter.primaryStorage||cn.persistence;var i;return n!==this.config.persistence&&(this.config.persistence=n),function(o){let{env:a}=o;Rn[a]=new ze(o),Nn[a]=new ze(j(E({},o),{persistence:"local"}))}(this.config),i=this.config,Mn[i.env]=new Tt(i),this.authObj=new xt(this.config),this.authObj}on(e,n){return ne.apply(this,[e,n])}off(e,n){return Ao.apply(this,[e,n])}callFunction(e,n){return Eo.apply(this,[e,n])}deleteFile(e,n){return Lo.apply(this,[e,n])}getTempFileURL(e,n){return jn.apply(this,[e,n])}downloadFile(e,n){return Do.apply(this,[e,n])}uploadFile(e,n){return Co.apply(this,[e,n])}getUploadMetadata(e,n){return Bo.apply(this,[e,n])}registerExtension(e){ln[e.name]=e}invokeExtension(e,n){return C(this,null,function*(){let i=ln[e];if(!i)throw new A({message:`\u6269\u5C55${e} \u5FC5\u987B\u5148\u6CE8\u518C`});return yield i.invoke(n,this)})}useAdapters(e){let{adapter:n,runtime:i}=So(e)||{};n&&(M.adapter=n),i&&(M.runtime=i)}},qn=new kt;function ht(t,e,n){n===void 0&&(n={});var i=/\?/.test(e),o="";for(var a in n)o===""?!i&&(e+="?"):o+="&",o+=a+"="+encodeURIComponent(n[a]);return/^http(s)?:\/\//.test(e+=o)?e:""+t+e}var St=class{get(e){let{url:n,data:i,headers:o,timeout:a}=e;return new Promise((s,r)=>{N.request({url:ht("https:",n),data:i,method:"GET",header:o,timeout:a,success(l){s(l)},fail(l){r(l)}})})}post(e){let{url:n,data:i,headers:o,timeout:a}=e;return new Promise((s,r)=>{N.request({url:ht("https:",n),data:i,method:"POST",header:o,timeout:a,success(l){s(l)},fail(l){r(l)}})})}upload(e){return new Promise((n,i)=>{let{url:o,file:a,data:s,headers:r,fileType:l}=e,c=N.uploadFile({url:ht("https:",o),name:"file",formData:Object.assign({},s),filePath:a,fileType:l,header:r,success(p){let u={statusCode:p.statusCode,data:p.data||{}};p.statusCode===200&&s.success_action_status&&(u.statusCode=parseInt(s.success_action_status,10)),n(u)},fail(p){i(new Error(p.errMsg||"uploadFile:fail"))}});typeof e.onUploadProgress=="function"&&c&&typeof c.onProgressUpdate=="function"&&c.onProgressUpdate(p=>{e.onUploadProgress({loaded:p.totalBytesSent,total:p.totalBytesExpectedToSend})})})}},Oo={setItem(t,e){N.setStorageSync(t,e)},getItem:t=>N.getStorageSync(t),removeItem(t){N.removeStorageSync(t)},clear(){N.clearStorageSync()}},Ro={genAdapter:function(){return{root:{},reqClass:St,localStorage:Oo,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};qn.useAdapters(Ro);var Rt=qn,No=Rt.init;Rt.init=function(t){t.env=t.spaceId;let e=No.call(this,t);e.config.provider="tencent",e.config.spaceId=t.spaceId;let n=e.auth;return e.auth=function(i){let o=n.call(this,i);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach(a=>{var s;o[a]=(s=o[a],function(r){r=r||{};let{success:l,fail:c,complete:p}=Bn(r);if(!(l||c||p))return s.call(this,r);s.call(this,r).then(u=>{l&&l(u),p&&p(u)},u=>{c&&c(u),p&&p(u)})}).bind(o)}),o},e.customAuth=e.auth,e};var dn=Rt;function Fo(t,e){return C(this,null,function*(){let n=`http://${t}:${e}/system/ping`;try{let o=yield(i={url:n,timeout:500},new Promise((a,s)=>{N.request(j(E({},i),{success(r){a(r)},fail(r){s(r)}}))}));return!(!o.data||o.data.code!==0)}catch(o){return!1}var i})}function Uo(t,e){return C(this,null,function*(){let n;for(let i=0;i<t.length;i++){let o=t[i];if(yield Fo(o,e)){n=o;break}}return{address:n,port:e}})}var Mo={"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"},jo=class{constructor(t){if(["spaceId","clientSecret"].forEach(e=>{if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error(`${e} required`)}),!t.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({},t),this.config.provider="dcloud",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.adapter=N}request(t,e=!0){return C(this,null,function*(){return t=this.setupRequest(t),Promise.resolve().then(()=>pe.wrappedRequest(t,this.adapter.request))})}requestLocal(t){return new Promise((e,n)=>{this.adapter.request(Object.assign(t,{complete(i){if(i||(i={}),!i.statusCode||i.statusCode>=400){let o=i.data&&i.data.code||"SYS_ERR",a=i.data&&i.data.message||"request:fail";return n(new A({code:o,message:a}))}e({success:!0,result:i.data})}}))})}setupRequest(t){let e=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};n["x-serverless-sign"]=pe.sign(e,this.config.clientSecret);let i=gt();n["x-client-info"]=encodeURIComponent(JSON.stringify(i));let{token:o}=Ie();return n["x-client-token"]=o,{url:this.config.requestUrl,method:"POST",data:e,dataType:"json",header:JSON.parse(JSON.stringify(n))}}setupLocalRequest(t){return C(this,null,function*(){let e=gt(),{token:n}=Ie(),i=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now(),clientInfo:e,token:n}),{address:o,servePort:a}=this.__dev__&&this.__dev__.debugInfo||{},{address:s}=yield Uo(o,a);return{url:`http://${s}:${a}/${Mo[t.method]}`,method:"POST",data:i,dataType:"json",header:JSON.parse(JSON.stringify({"Content-Type":"application/json"}))}})}callFunction(t){let e={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:t.name,functionArgs:t.data||{}})};return this.request(e,!1)}getUploadFileOptions(t){let e={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(t)};return this.request(e)}reportUploadFile(t){let e={method:"serverless.file.resource.report",params:JSON.stringify(t)};return this.request(e)}uploadFile({filePath:t,cloudPath:e,fileType:n="image",onUploadProgress:i}){if(!e)throw new A({code:"CLOUDPATH_REQUIRED",message:"cloudPath\u4E0D\u53EF\u4E3A\u7A7A"});let o;return this.getUploadFileOptions({cloudPath:e}).then(a=>{let{url:s,formData:r,name:l}=a.result;return o=a.result.fileUrl,new Promise((c,p)=>{let u=this.adapter.uploadFile({url:s,formData:r,name:l,filePath:t,fileType:n,success(m){m&&m.statusCode<400?c(m):p(new A({code:"UPLOAD_FAILED",message:"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"}))},fail(m){p(new A({code:m.code||"UPLOAD_FAILED",message:m.message||m.errMsg||"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"}))}});typeof i=="function"&&u&&typeof u.onProgressUpdate=="function"&&u.onProgressUpdate(m=>{i({loaded:m.totalBytesSent,total:m.totalBytesExpectedToSend})})})}).then(()=>this.reportUploadFile({cloudPath:e})).then(a=>new Promise((s,r)=>{a.success?s({success:!0,filePath:t,fileID:o}):r(new A({code:"UPLOAD_FAILED",message:"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"}))}))}deleteFile({fileList:t}){let e={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:t})};return this.request(e).then(n=>{if(n.success)return n.result;throw new A({code:"DELETE_FILE_FAILED",message:"\u5220\u9664\u6587\u4EF6\u5931\u8D25"})})}getTempFileURL({fileList:t,maxAge:e}={}){if(!Array.isArray(t)||t.length===0)throw new A({code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7D20\u5FC5\u987B\u662F\u975E\u7A7A\u7684\u5B57\u7B26\u4E32"});let n={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:t,maxAge:e})};return this.request(n).then(i=>{if(i.success)return{fileList:i.result.fileList.map(o=>({fileID:o.fileID,tempFileURL:o.tempFileURL}))};throw new A({code:"GET_TEMP_FILE_URL_FAILED",message:"\u83B7\u53D6\u4E34\u65F6\u6587\u4EF6\u94FE\u63A5\u5931\u8D25"})})}},un={init(t){let e=new jo(t),n={signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!1)}};return e.auth=function(){return n},e.customAuth=e.auth,e}},ke=Y(function(t,e){t.exports=ie.enc.Hex});function Vn(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return(t==="x"?e:3&e|8).toString(16)})}function zn(t="",e={}){let{data:n,functionName:i,method:o,headers:a,signHeaderKeys:s=[],config:r}=e,l=String(Date.now()),c=Vn(),p=Object.assign({},a,{"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}),u=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(s),[m="",_=""]=t.split("?")||[],w=function(h){let d=h.signedHeaders.join(";"),g=h.signedHeaders.map(L=>`${L.toLowerCase()}:${h.headers[L]}
`).join(""),y=mt(h.body).toString(ke),v=`${h.method.toUpperCase()}
${h.path}
${h.query}
${g}
${d}
${y}
`,T=mt(v).toString(ke),I=`HMAC-SHA256
${h.timestamp}
${T}
`,P=On(I,h.secretKey).toString(ke);return`HMAC-SHA256 Credential=${h.secretId}, SignedHeaders=${d}, Signature=${P}`}({path:m,query:_,method:o,headers:p,timestamp:l,body:JSON.stringify(n),secretId:r.accessKey,secretKey:r.secretKey,signedHeaders:u.sort()});return{url:`${r.endpoint}${t}`,headers:Object.assign({},p,{Authorization:w})}}function Wn({url:t,data:e,method:n="POST",headers:i={},timeout:o}){return new Promise((a,s)=>{N.request({url:t,method:n,data:typeof e=="object"?JSON.stringify(e):e,header:i,dataType:"json",timeout:o,complete:(r={})=>{let l=i["x-trace-id"]||"";if(!r.statusCode||r.statusCode>=400){let{message:c,errMsg:p,trace_id:u}=r.data||{};return s(new A({code:"SYS_ERR",message:c||p||"request:fail",requestId:u||l}))}a({status:r.statusCode,data:r.data,headers:r.header,requestId:l})}})})}function hn(t,e){let{path:n,data:i,method:o="GET"}=t,{url:a,headers:s}=zn(n,{functionName:"",data:i,method:o,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 Wn({url:a,data:i,method:o,headers:s}).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 qo(t=""){let e=t.trim().replace(/^cloud:\/\//,""),n=e.indexOf("/");if(n<=0)throw new A({code:"INVALID_PARAM",message:"fileID\u4E0D\u5408\u6CD5"});let i=e.substring(0,n),o=e.substring(n+1);return i!==this.config.spaceId&&console.warn("file ".concat(t," does not belong to env ").concat(this.config.spaceId)),o}function Vo(t=""){return"cloud://".concat(this.config.spaceId,"/").concat(t.replace(/^\/+/,""))}var It=class{constructor(e){this.config=e}signedURL(e,n={}){let i=`/ws/function/${e}`,o=this.config.wsEndpoint.replace(/^ws(s)?:\/\//,""),a=Object.assign({},n,{accessKeyId:this.config.accessKey,signatureNonce:Vn(),timestamp:""+Date.now()}),s=[i,["accessKeyId","authorization","signatureNonce","timestamp"].sort().map(function(p){return a[p]?"".concat(p,"=").concat(a[p]):null}).filter(Boolean).join("&"),`host:${o}`].join(`
`),r=["HMAC-SHA256",mt(s).toString(ke)].join(`
`),l=On(r,this.config.secretKey).toString(ke),c=Object.keys(a).map(p=>`${p}=${encodeURIComponent(a[p])}`).join("&");return`${this.config.wsEndpoint}${i}?${c}&signature=${l}`}},zo=class{constructor(t){if(["spaceId","spaceAppId","accessKey","secretKey"].forEach(e=>{if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error(`${e} required`)}),t.endpoint){if(typeof t.endpoint!="string")throw new Error("endpoint must be string");if(!/^https:\/\//.test(t.endpoint))throw new Error("endpoint must start with https://");t.endpoint=t.endpoint.replace(/\/$/,"")}this.config=Object.assign({},t,{endpoint:t.endpoint||`https://${t.spaceId}.api-hz.cloudbasefunction.cn`,wsEndpoint:t.wsEndpoint||`wss://${t.spaceId}.api-hz.cloudbasefunction.cn`}),this._websocket=new It(this.config)}callFunction(t){return function(e,n){let{name:i,data:o,async:a=!1,timeout:s}=e,r="POST",l={"x-to-function-name":i};a&&(l["x-function-invoke-type"]="async");let{url:c,headers:p}=zn("/functions/invokeFunction",{functionName:i,data:o,method:r,headers:l,signHeaderKeys:["x-to-function-name"],config:n});return Wn({url:c,data:o,method:r,headers:p,timeout:s}).then(u=>{let m=0;if(a){let _=u.data||{};m=_.errCode==="200"?0:_.errCode,u.data=_.data||{},u.errMsg=_.errMsg}if(m!==0)throw new A({code:m,message:u.errMsg,requestId:u.requestId});return{errCode:m,success:m===0,requestId:u.requestId,result:u.data}}).catch(u=>{throw new A({code:u.errCode,message:u.errMsg,requestId:u.requestId})})}(t,this.config)}uploadFileToOSS({url:t,filePath:e,fileType:n,formData:i,onUploadProgress:o}){return new Promise((a,s)=>{let r=N.uploadFile({url:t,filePath:e,fileType:n,formData:i,name:"file",success(l){l&&l.statusCode<400?a(l):s(new A({code:"UPLOAD_FAILED",message:"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"}))},fail(l){s(new A({code:l.code||"UPLOAD_FAILED",message:l.message||l.errMsg||"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"}))}});typeof o=="function"&&r&&typeof r.onProgressUpdate=="function"&&r.onProgressUpdate(l=>{o({loaded:l.totalBytesSent,total:l.totalBytesExpectedToSend})})})}uploadFile(o){return C(this,arguments,function*({filePath:t,cloudPath:e="",fileType:n="image",onUploadProgress:i}){if(Se(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 a=yield hn({path:"/".concat(e.replace(/^\//,""),"?post_url")},this.config),{file_id:s,upload_url:r,form_data:l}=a,c=l&&l.reduce((p,u)=>(p[u.key]=u.value,p),{});return this.uploadFileToOSS({url:r,filePath:t,fileType:n,formData:c,onUploadProgress:i}).then(()=>({fileID:s}))})}getTempFileURL(e){return C(this,arguments,function*({fileList:t}){return new Promise((n,i)=>{(!t||t.length<0)&&n({code:"INVALID_PARAM",message:"fileList\u4E0D\u80FD\u4E3A\u7A7A\u6570\u7EC4"}),t.length>50&&n({code:"INVALID_PARAM",message:"fileList\u6570\u7EC4\u957F\u5EA6\u4E0D\u80FD\u8D85\u8FC750"});let o=[];for(let a of t){let s;Se(a)!=="string"&&n({code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7D20\u5FC5\u987B\u662F\u975E\u7A7A\u7684\u5B57\u7B26\u4E32"});try{s=qo.call(this,a)}catch(r){console.warn(r.errCode,r.errMsg),s=a}o.push({file_id:s,expire:600})}hn({path:"/?download_url",data:{file_list:o},method:"POST"},this.config).then(a=>{let{file_list:s=[]}=a;n({fileList:s.map(r=>({fileID:Vo.call(this,r.file_id),tempFileURL:r.download_url}))})}).catch(a=>i(a))})})}connectWebSocket(t){return C(this,null,function*(){let{name:e,query:n}=t;return N.connectSocket({url:this._websocket.signedURL(e,n),complete:()=>{}})})}},Wo={init:t=>{t.provider="alipay";let e=new zo(t);return e.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},e}};function Ho({data:t}){let e;e=gt();let n=JSON.parse(JSON.stringify(t||{}));if(Object.assign(n,{clientInfo:e}),!n.uniIdToken){let{token:i}=Ie();i&&(n.uniIdToken=i)}return n}var Jo=[{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"}],Hn=/[\\^$.*+?()[\]{}|]/g,Ko=RegExp(Hn.source);function fn(t,e,n){return t.replace(new RegExp((i=e)&&Ko.test(i)?i.replace(Hn,"\\$&"):i,"g"),n);var i}var Go="request",$o="response",Yo="both",Qo={code:2e4,message:"System error"},Zo={code:20101,message:"Invalid client"};function Jn(t){let{errSubject:e,subject:n,errCode:i,errMsg:o,code:a,message:s,cause:r}=t||{};return new A({subject:e||n||"uni-secure-network",code:i||a||Qo.code,message:o||s,cause:r})}var At;function pn({secretType:t}={}){return t===Go||t===$o||t===Yo}function gn({name:t,data:e={}}={}){return t==="DCloud-clientDB"&&e.redirectTo==="encryption"&&e.action==="getAppClientKey"}function Xo({provider:t,spaceId:e,functionName:n}={}){let{appId:i,uniPlatform:o,osName:a}=En(),s=o;o==="app"&&(s=a);let r=function({provider:u,spaceId:m}={}){let _=uo;if(!_)return{};u=function(h){return h==="tencent"?"tcb":h}(u);let w=_.find(h=>h.provider===u&&h.spaceId===m);return w&&w.config}({provider:t,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 p=function(u,m){let _,w,h;for(let d=0;d<u.length;d++){let g=u[d];g!==m?g!=="*"?g.split(",").map(y=>y.trim()).indexOf(m)>-1&&(w=g):h=g:_=g}return _||w||h}(c,n);if(!p)return!1;if((l[p]||[]).find((u={})=>u.appId===i&&(u.platform||"").toLowerCase()===s.toLowerCase()))return!0;throw console.error(`\u6B64\u5E94\u7528[appId: ${i}, platform: ${s}]\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`),Jn(Zo)}function mn({functionName:t,result:e,logPvd:n}){}function ea(t){let e=t.callFunction,n=function(i){let o=i.name;i.data=Ho.call(t,{data:i.data});let a={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay",dcloud:"dcloud"}[this.config.provider],s=pn(i),r=gn(i),l=s||r;return e.call(this,i).then(c=>(c.errCode=0,!l&&mn.call(this,{functionName:o,result:c,logPvd:a}),Promise.resolve(c)),c=>(!l&&mn.call(this,{functionName:o,result:c,logPvd:a}),c&&c.message&&(c.message=function({message:p="",extraInfo:u={},formatter:m=[]}={}){for(let _=0;_<m.length;_++){let{rule:w,content:h,mode:d}=m[_],g=p.match(w);if(!g)continue;let y=h;for(let v=1;v<g.length;v++)y=fn(y,`{$${v}}`,g[v]);for(let v in u)y=fn(y,`{${v}}`,u[v]);return d==="replace"?y:p+y}return p}({message:`[${i.name}]: ${c.message}`,formatter:Jo,extraInfo:{functionName:o}})),Promise.reject(c)))};t.callFunction=function(i){let{provider:o,spaceId:a}=t.config,s=i.name,r,l;return i.data=i.data||{},r=n,r=r.bind(t),gn(i)?l=n.call(t,i):pn(i)?l=new At({secretType:i.secretType,uniCloudIns:t}).wrapEncryptDataCallFunction(n.bind(t))(i):Xo({provider:o,spaceId:a,functionName:s})?l=new At({secretType:i.secretType,uniCloudIns:t}).wrapVerifyClientCallFunction(n.bind(t))(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=>(typeof UTSJSONObject!="undefined"&&typeof UTS!="undefined"&&(c.result=UTS.JSON.parse(JSON.stringify(c.result))),c))}}At=class{constructor(){throw Jn({message:`Platform ${Et} is not enabled, please check whether secure network module is enabled in your manifest.json`})}};var Kn=Symbol("CLIENT_DB_INTERNAL");function Ge(t,e){return t.then="DoNotReturnProxyWithAFunctionNamedThen",t._internalType=Kn,t.inspect=null,t.__v_raw=void 0,new Proxy(t,{get(n,i,o){if(i==="_uniClient")return null;if(typeof i=="symbol")return n[i];if(i in n||typeof i!="string"){let a=n[i];return typeof a=="function"?a.bind(n):a}return e.get(n,i,o)}})}function _n(t){return{on:(e,n)=>{t[e]=t[e]||[],t[e].indexOf(n)>-1||t[e].push(n)},off:(e,n)=>{t[e]=t[e]||[];let i=t[e].indexOf(n);i!==-1&&t[e].splice(i,1)}}}var ta=["db.Geo","db.command","command.aggregate"];function Gn(t,e){return ta.indexOf(`${t}.${e}`)>-1}function de(t){switch(Se(t=Ln(t))){case"array":return t.map(e=>de(e));case"object":return t._internalType===Kn||Object.keys(t).forEach(e=>{t[e]=de(t[e])}),t;case"regexp":return{$regexp:{source:t.source,flags:t.flags}};case"date":return{$date:t.toISOString()};default:return t}}function Te(t){return t&&t.content&&t.content.$method}var Pt=class{constructor(e,n,i){this.content=e,this.prevStage=n||null,this.udb=null,this._database=i}toJSON(){let e=this,n=[e.content];for(;e.prevStage;)e=e.prevStage,n.push(e.content);return{$db:n.reverse().map(i=>({$method:i.$method,$param:de(i.$param)}))}}toString(){return JSON.stringify(this.toJSON())}getAction(){let e=this.toJSON().$db.find(n=>n.$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 n=Te(e),i=Te(e.prevStage);if(n==="aggregate"&&i==="collection"||n==="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 n=Te(e),i=Te(e.prevStage);if(n==="aggregate"&&i==="command")return!0;e=e.prevStage}return!1}getNextStageFn(e){let n=this;return function(){return Ae({$method:e,$param:de(Array.from(arguments))},n,n._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,n){let i=this.getAction(),o=this.getCommand();return o.$db.push({$method:e,$param:de(n)}),this._database._callCloudFunction({action:i,command:o})}};function Ae(t,e,n){return Ge(new Pt(t,e,n),{get(i,o){let a="db";return i&&i.content&&(a=i.content.$method),Gn(a,o)?Ae({$method:o},i,n):function(){return Ae({$method:o,$param:de(Array.from(arguments))},i,n)}}})}function ft({path:t,method:e}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...t.map(n=>({$method:n})),{$method:e,$param:this.param}]}}toString(){return JSON.stringify(this.toJSON())}}}function yn(t,e={}){return Ge(new t(e),{get:(n,i)=>Gn("db",i)?Ae({$method:i},null,n):function(){return Ae({$method:i,$param:de(Array.from(arguments))},null,n)}})}var $e=class extends class{constructor({uniClient:e={},isJQL:n=!1}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e._isDefault&&(this._dbCallBacks=ge("_globalUniCloudDatabaseCallback")),n||(this.auth=_n(this._authCallBacks)),this._isJQL=n,Object.assign(this,_n(this._dbCallBacks)),this.env=Ge({},{get:(i,o)=>({$env:o})}),this.Geo=Ge({},{get:(i,o)=>ft({path:["Geo"],method:o})}),this.serverDate=ft({path:[],method:"serverDate"}),this.RegExp=ft({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,n){let i=this._dbCallBacks;i[e]&&i[e].forEach(o=>{o(...n)})}_callbackAuth(e,n){let i=this._authCallBacks;i[e]&&i[e].forEach(o=>{o(...n)})}multiSend(){let e=Array.from(arguments),n=e.map(i=>{let o=i.getAction(),a=i.getCommand();if(a.$db[a.$db.length-1].$method!=="getTemp")throw new Error("multiSend\u53EA\u652F\u6301\u5B50\u547D\u4EE4\u5185\u4F7F\u7528getTemp");return{action:o,command:a}});return this._callCloudFunction({multiCommand:n,queryList:e})}}{_parseResult(e){return this._isJQL?e.result:e}_callCloudFunction({action:e,command:n,multiCommand:i,queryList:o}){function a(u,m){if(i&&o)for(let _=0;_<o.length;_++){let w=o[_];w.udb&&typeof w.udb.setResult=="function"&&(m?w.udb.setResult(m):w.udb.setResult(u.result.dataList[_]))}}let s=this,r=this._isJQL?"databaseForJQL":"database";function l(u){return s._callback("error",[u]),q(V(r,"fail"),u).then(()=>q(V(r,"complete"),u)).then(()=>(a(null,u),K($,{type:Xt,content:u}),Promise.reject(u)))}let c=q(V(r,"invoke")),p=this._uniClient;return c.then(()=>p.callFunction({name:"DCloud-clientDB",type:ao,data:{action:e,command:n,multiCommand:i}})).then(u=>{let{code:m,message:_,token:w,tokenExpired:h,systemInfo:d=[]}=u.result;if(d)for(let y=0;y<d.length;y++){let{level:v,message:T,detail:I}=d[y],P=console[v==="warn"?"error":v]||console.log,L="[System Info]"+T;I&&(L=`${L}
\u8BE6\u7EC6\u4FE1\u606F\uFF1A${I}`),P(L)}if(m)return l(new A({code:m,message:_,requestId:u.requestId}));u.result.errCode=u.result.errCode||u.result.code,u.result.errMsg=u.result.errMsg||u.result.message,w&&h&&(Dn({token:w,tokenExpired:h}),this._callbackAuth("refreshToken",[{token:w,tokenExpired:h}]),this._callback("refreshToken",[{token:w,tokenExpired:h}]),K(Ve,{token:w,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:T}=g[y];if(v in u.result){let I=u.result[v];Object.defineProperty(u.result,v,{get:()=>(console.warn(T),I)})}}return function(y){return q(V(r,"success"),y).then(()=>q(V(r,"complete"),y)).then(()=>{a(y,null);let v=s._parseResult(y);return K($,{type:Xt,content:v}),Promise.resolve(v)})}(u)},u=>(/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(u.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:u.code||"SYSTEM_ERROR",message:u.message,requestId:u.requestId}))))}},le="token\u65E0\u6548\uFF0C\u8DF3\u8F6C\u767B\u5F55\u9875\u9762",$n="token\u8FC7\u671F\uFF0C\u8DF3\u8F6C\u767B\u5F55\u9875\u9762",na={TOKEN_INVALID_TOKEN_EXPIRED:$n,TOKEN_INVALID_INVALID_CLIENTID:le,TOKEN_INVALID:le,TOKEN_INVALID_WRONG_TOKEN:le,TOKEN_INVALID_ANONYMOUS_USER:le},Ct={"uni-id-token-expired":$n,"uni-id-check-token-failed":le,"uni-id-token-not-exist":le,"uni-id-check-device-feature-failed":le};function vn(t,e){let n="";return n=t?`${t}/${e}`:e,n.replace(/^\//,"")}function wn(t=[],e=""){let n=[],i=[];return t.forEach(o=>{o.needLogin===!0?n.push(vn(e,o.path)):o.needLogin===!1&&i.push(vn(e,o.path))}),{needLoginPage:n,notNeedLoginPage:i}}function Pe(t){return t.split("?")[0].replace(/^\//,"")}function Nt(){return function(t){let e=t&&t.$page&&t.$page.fullPath||"";return e&&(e.charAt(0)!=="/"&&(e="/"+e),e)}(function(){let t=getCurrentPages();return t[t.length-1]}())}function Yn(){return Pe(Nt())}function ia(t="",e={}){if(!t||!(e&&e.list&&e.list.length))return!1;let n=e.list,i=Pe(t);return n.some(o=>o.pagePath===i)}var oa=!!xn.uniIdRouter,{loginPage:Ce,routerNeedLogin:aa,resToLogin:sa,needLoginPage:Qn,notNeedLoginPage:ra,loginPageInTabBar:ca}=function({pages:t=[],subPackages:e=[],uniIdRouter:n={},tabBar:i={}}=xn){let{loginPage:o,needLogin:a=[],resToLogin:s=!0}=n,{needLoginPage:r,notNeedLoginPage:l}=wn(t),{needLoginPage:c,notNeedLoginPage:p}=function(u=[]){let m=[],_=[];return u.forEach(w=>{let{root:h,pages:d=[]}=w,{needLoginPage:g,notNeedLoginPage:y}=wn(d,h);m.push(...g),_.push(...y)}),{needLoginPage:m,notNeedLoginPage:_}}(e);return{loginPage:o,routerNeedLogin:a,resToLogin:s,needLoginPage:[...r,...c],notNeedLoginPage:[...l,...p],loginPageInTabBar:ia(o,i)}}();if(Qn.indexOf(Ce)>-1)throw new Error(`Login page [${Ce}] should not be "needLogin", please check your pages.json`);function Zn(t){let e=Yn();if(t.charAt(0)==="/")return t;let[n,i]=t.split("?"),o=n.replace(/^\//,"").split("/"),a=e.split("/");a.pop();for(let s=0;s<o.length;s++){let r=o[s];r===".."?a.pop():r!=="."&&a.push(r)}return a[0]===""&&a.shift(),"/"+a.join("/")+(i?"?"+i:"")}function la(t){let e=Pe(Zn(t));return!(ra.indexOf(e)>-1)&&(Qn.indexOf(e)>-1||aa.some(n=>function(i,o){return new RegExp(o).test(i)}(t,n)))}function Xn({redirect:t}){let e=Pe(t),n=Pe(Ce);return Yn()!==n&&e!==n}function Bt({api:t,redirect:e}={}){if(!e||!Xn({redirect:e}))return;let n=function(o,a){return o.charAt(0)!=="/"&&(o="/"+o),a?o.indexOf("?")>-1?o+`&uniIdRedirectUrl=${encodeURIComponent(a)}`:o+`?uniIdRedirectUrl=${encodeURIComponent(a)}`:o}(Ce,e);ca?t!=="navigateTo"&&t!=="redirectTo"||(t="switchTab"):t==="switchTab"&&(t="navigateTo");let i={navigateTo:uni.navigateTo,redirectTo:uni.redirectTo,switchTab:uni.switchTab,reLaunch:uni.reLaunch};setTimeout(()=>{i[t]({url:n})},0)}function Tn({url:t}={}){let e={abortLoginPageJump:!1,autoToLoginPage:!1},n=function(){let{token:i,tokenExpired:o}=Ie(),a;if(i){if(o<Date.now()){let s="uni-id-token-expired";a={errCode:s,errMsg:Ct[s]}}}else{let s="uni-id-check-token-failed";a={errCode:s,errMsg:Ct[s]}}return a}();if(la(t)&&n){if(n.uniIdRedirectUrl=t,Be(me).length>0)return setTimeout(()=>{K(me,n)},0),e.abortLoginPageJump=!0,e;e.autoToLoginPage=!0}return e}function da(){(function(){let e=Nt(),{abortLoginPageJump:n,autoToLoginPage:i}=Tn({url:e});n||i&&Bt({api:"redirectTo",redirect:e})})();let t=["navigateTo","redirectTo","reLaunch","switchTab"];for(let e=0;e<t.length;e++){let n=t[e];uni.addInterceptor(n,{invoke(i){let{abortLoginPageJump:o,autoToLoginPage:a}=Tn({url:i.url});return o?i:a?(Bt({api:n,redirect:Zn(i.url)}),!1):i}})}}function ua(){this.onResponse(t=>{let{type:e,content:n}=t,i=!1;switch(e){case"cloudobject":i=function(o){if(typeof o!="object")return!1;let{errCode:a}=o||{};return a in Ct}(n);break;case"clientdb":i=function(o){if(typeof o!="object")return!1;let{errCode:a}=o||{};return a in na}(n)}i&&function(o={}){let a=Be(me);Cn().then(()=>{let s=Nt();if(s&&Xn({redirect:s}))return a.length>0?K(me,Object.assign({uniIdRedirectUrl:s},o)):void(Ce&&Bt({api:"navigateTo",redirect:s}))})}(n)})}function ha(t){(function(e){e.onResponse=function(n){at($,n)},e.offResponse=function(n){st($,n)}})(t),function(e){e.onNeedLogin=function(n){at(me,n)},e.offNeedLogin=function(n){st(me,n)},oa&&(ge("_globalUniCloudStatus").needLoginInit||(ge("_globalUniCloudStatus").needLoginInit=!0,Cn().then(()=>{da.call(e)}),sa&&ua.call(e)))}(t),function(e){e.onRefreshToken=function(n){at(Ve,n)},e.offRefreshToken=function(n){st(Ve,n)}}(t)}var ei,Me="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",fa=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function pa(){let t=Ie().token||"",e=t.split(".");if(!t||e.length!==3)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((i=e[1],decodeURIComponent(ei(i).split("").map(function(o){return"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)}).join(""))))}catch(o){throw new Error("\u83B7\u53D6\u5F53\u524D\u7528\u6237\u4FE1\u606F\u51FA\u9519\uFF0C\u8BE6\u7EC6\u9519\u8BEF\u4FE1\u606F\u4E3A\uFF1A"+o.message)}var i;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}ei=typeof atob!="function"?function(t){if(t=String(t).replace(/[\t\n\f\r ]+/g,""),!fa.test(t))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var e;t+="==".slice(2-(3&t.length));for(var n,i,o="",a=0;a<t.length;)e=Me.indexOf(t.charAt(a++))<<18|Me.indexOf(t.charAt(a++))<<12|(n=Me.indexOf(t.charAt(a++)))<<6|(i=Me.indexOf(t.charAt(a++))),o+=n===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 o}:atob;var ga=Y(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});let n="chooseAndUploadFile:ok",i="chooseAndUploadFile:fail";function o(s,r){return s.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("."))}),s.tempFilePaths||(s.tempFilePaths=s.tempFiles.map(l=>l.path)),s}function a(s,r,{onChooseFile:l,onUploadProgress:c}){return r.then(p=>{if(l){let u=l(p);if(u!==void 0)return Promise.resolve(u).then(m=>m===void 0?p:m)}return p}).then(p=>p===!1?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(u,m,_=5,w){(m=Object.assign({},m)).errMsg=n;let h=m.tempFiles,d=h.length,g=0;return new Promise(y=>{for(;g<_;)v();function v(){let T=g++;if(T>=d)return void(!h.find(P=>!P.url&&!P.errMsg)&&y(m));let I=h[T];u.uploadFile({provider:I.provider,filePath:I.path,cloudPath:I.cloudPath,fileType:I.fileType,cloudPathAsRealPath:I.cloudPathAsRealPath,onUploadProgress(P){P.index=T,P.tempFile=I,P.tempFilePath=I.path,w&&w(P)}}).then(P=>{I.url=P.fileID,T<d&&v()}).catch(P=>{I.errMsg=P.errMsg||P.message,T<d&&v()})}})}(s,p,5,c))}e.initChooseAndUploadFile=function(s){return function(r={type:"all"}){return r.type==="image"?a(s,function(l){let{count:c,sizeType:p,sourceType:u=["album","camera"],extension:m}=l;return new Promise((_,w)=>{uni.chooseImage({count:c,sizeType:p,sourceType:u,extension:m,success(h){_(o(h,"image"))},fail(h){w({errMsg:h.errMsg.replace("chooseImage:fail",i)})}})})}(r),r):r.type==="video"?a(s,function(l){let{camera:c,compressed:p,maxDuration:u,sourceType:m=["album","camera"],extension:_}=l;return new Promise((w,h)=>{uni.chooseVideo({camera:c,compressed:p,maxDuration:u,sourceType:m,extension:_,success(d){let{tempFilePath:g,duration:y,size:v,height:T,width:I}=d;w(o({errMsg:"chooseVideo:ok",tempFilePaths:[g],tempFiles:[{name:d.tempFile&&d.tempFile.name||"",path:g,size:v,type:d.tempFile&&d.tempFile.type||"",width:I,height:T,duration:y,fileType:"video",cloudPath:""}]},"video"))},fail(d){h({errMsg:d.errMsg.replace("chooseVideo:fail",i)})}})})}(r),r):a(s,function(l){let{count:c,extension:p}=l;return new Promise((u,m)=>{let _=uni.chooseFile;if(typeof wx!="undefined"&&typeof wx.chooseMessageFile=="function"&&(_=wx.chooseMessageFile),typeof _!="function")return m({errMsg:i+" \u8BF7\u6307\u5B9A type \u7C7B\u578B\uFF0C\u8BE5\u5E73\u53F0\u4EC5\u652F\u6301\u9009\u62E9 image \u6216 video\u3002"});_({type:"all",count:c,extension:p,success(w){u(o(w))},fail(w){m({errMsg:w.errMsg.replace("chooseFile:fail",i)})}})})}(r),r)}}}),ma=Xi(ga),_a="manual";function ti(t){return{props:{localdata:{type:Array,default:()=>[]},options:{type:[Object,Array],default:()=>({})},spaceInfo:{type:Object,default:()=>({})},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:()=>({mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}),created(){this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch(()=>{var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach(n=>{e.push(this[n])}),e},(e,n)=>{if(this.loadtime===_a)return;let i=!1,o=[];for(let a=2;a<e.length;a++)e[a]!==n[a]&&(o.push(e[a]),i=!0);e[0]!==n[0]&&(this.mixinDatacomPage.current=this.pageCurrent),this.mixinDatacomPage.size=this.pageSize,this.onMixinDatacomPropsChange(i,o)})},methods:{onMixinDatacomPropsChange(e,n){},mixinDatacomEasyGet({getone:e=!1,success:n,fail:i}={}){this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomError=null,this.mixinDatacomGet().then(o=>{this.mixinDatacomLoading=!1;let{data:a,count:s}=o.result;this.getcount&&(this.mixinDatacomPage.count=s),this.mixinDatacomHasMore=a.length<this.pageSize;let r=e?a.length?a[0]:void 0:a;this.mixinDatacomResData=r,n&&n(r)}).catch(o=>{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=o,this.mixinDatacomError=o,i&&i(o)}))},mixinDatacomGet(e={}){let n;e=e||{},n=typeof __uniX!="undefined"&&__uniX?t.databaseForJQL(this.spaceInfo):t.database(this.spaceInfo);let i=e.action||this.action;i&&(n=n.action(i));let o=e.collection||this.collection;n=Array.isArray(o)?n.collection(...o):n.collection(o);let a=e.where||this.where;a&&Object.keys(a).length&&(n=n.where(a));let s=e.field||this.field;s&&(n=n.field(s));let r=e.foreignKey||this.foreignKey;r&&(n=n.foreignKey(r));let l=e.groupby||this.groupby;l&&(n=n.groupBy(l));let c=e.groupField||this.groupField;c&&(n=n.groupField(c)),(e.distinct!==void 0?e.distinct:this.distinct)===!0&&(n=n.distinct());let p=e.orderby||this.orderby;p&&(n=n.orderBy(p));let u=e.pageCurrent!==void 0?e.pageCurrent:this.mixinDatacomPage.current,m=e.pageSize!==void 0?e.pageSize:this.mixinDatacomPage.size,_=e.getcount!==void 0?e.getcount:this.getcount,w=e.gettree!==void 0?e.gettree:this.gettree,h=e.gettreepath!==void 0?e.gettreepath:this.gettreepath,d={getCount:_},g={limitLevel:e.limitlevel!==void 0?e.limitlevel:this.limitlevel,startWith:e.startwith!==void 0?e.startwith:this.startwith};return w&&(d.getTree=g),h&&(d.getTreePath=g),n=n.skip(m*(u-1)).limit(m).get(d),n}}}}function ya(t){return function(e,n={}){n=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}},n);let{customUI:i,loadingOptions:o,errorOptions:a,parseSystemError:s}=n,r=!i;return new Proxy({},{get(l,c){switch(c){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function({fn:p,interceptorName:u,getCallbackArgs:m}={}){return function(..._){return C(this,null,function*(){let w=m?m({params:_}):{},h,d;try{return yield q(V(u,"invoke"),E({},w)),h=yield p(..._),yield q(V(u,"success"),j(E({},w),{result:h})),h}catch(g){throw d=g,yield q(V(u,"fail"),j(E({},w),{error:d})),d}finally{yield q(V(u,"complete"),d?j(E({},w),{error:d}):j(E({},w),{result:h}))}})}}({fn:function p(...u){return C(this,null,function*(){let m;r&&uni.showLoading({title:o.title,mask:o.mask});let _={name:e,type:oo,data:{method:c,params:u}};typeof n.secretMethods=="object"&&function(v,T){let I=T.data.method,P=v.secretMethods||{},L=P[I]||P["*"];L&&(T.secretType=L)}(n,_);let w=!1;try{m=yield t.callFunction(_)}catch(v){w=!0,m={result:new A(v)}}let{errSubject:h,errCode:d,errMsg:g,newToken:y}=m.result||{};if(r&&uni.hideLoading(),y&&y.token&&y.tokenExpired&&(Dn(y),K(Ve,E({},y))),d){let v=g;if(w&&s&&(v=(yield s({objectName:e,methodName:c,params:u,errSubject:h,errCode:d,errMsg:g})).errMsg||g),r)if(a.type==="toast")uni.showToast({title:v,icon:"none"});else{if(a.type!=="modal")throw new Error(`Invalid errorOptions.type: ${a.type}`);{let{confirm:I}=yield function(){return C(this,arguments,function*({title:P,content:L,showCancel:D,cancelText:F,confirmText:Z}={}){return new Promise((W,ae)=>{uni.showModal({title:P,content:L,showCancel:D,cancelText:F,confirmText:Z,success(X){W(X)},fail(){W({confirm:!1,cancel:!0})}})})})}({title:"\u63D0\u793A",content:v,showCancel:a.retry,cancelText:"\u53D6\u6D88",confirmText:a.retry?"\u91CD\u8BD5":"\u786E\u5B9A"});if(a.retry&&I)return p(...u)}}let T=new A({subject:h,code:d,message:g,requestId:m.requestId});throw T.detail=m.result,K($,{type:en,content:T}),T}return K($,{type:en,content:m.result}),m.result})},interceptorName:"callObject",getCallbackArgs:function({params:p}={}){return{objectName:e,methodName:c,params:p}}})}})}}function ni(t){return ge("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",t.config.spaceId))}function va(){return C(this,arguments,function*({openid:t,callLoginByWeixin:e=!1}={}){throw ni(this),new Error(`[SecureNetwork] API \`initSecureNetworkByWeixin\` is not supported on platform \`${Et}\``)})}function wa(t){return C(this,null,function*(){let e=ni(this);return e.initPromise||(e.initPromise=va.call(this,t).then(n=>n).catch(n=>{throw delete e.initPromise,n})),e.initPromise})}function Ta(t){return function({openid:e,callLoginByWeixin:n=!1}={}){return wa.call(t,{openid:e,callLoginByWeixin:n})}}function ba(t){(function(e){pt=e})(t)}function bn(t){let e={getSystemInfo:uni.getSystemInfo,getPushClientId:uni.getPushClientId};return function(n){return new Promise((i,o)=>{e[t](j(E({},n),{success(a){i(a)},fail(a){o(a)}}))})}}var Lt=class extends class{constructor(){this._callback={}}addListener(e,n){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(n)}on(e,n){return this.addListener(e,n)}removeListener(e,n){if(!n)throw new Error('The "listener" argument must be of type function. Received undefined');let i=this._callback[e];if(!i)return;let o=function(a,s){for(let r=a.length-1;r>=0;r--)if(a[r]===s)return r;return-1}(i,n);i.splice(o,1)}off(e,n){return this.removeListener(e,n)}removeAllListener(e){delete this._callback[e]}emit(e,...n){let i=this._callback[e];if(i)for(let o=0;o<i.length;o++)i[o](...n)}}{constructor(){super(),this._uniPushMessageCallback=this._receivePushMessage.bind(this),this._currentMessageId=-1,this._payloadQueue=[]}init(){return Promise.all([bn("getSystemInfo")(),bn("getPushClientId")()]).then(([{appId:e}={},{cid:n}={}]=[])=>{if(!e)throw new Error("Invalid appId, please check the manifest.json file");if(!n)throw new Error("Invalid push client id");this._appId=e,this._pushClientId=n,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 C(this,null,function*(){return this.init()})}_isUniCloudSSE(e){if(e.type!=="receive")return!1;let n=e&&e.data&&e.data.payload;return!(!n||n.channel!=="UNI_CLOUD_SSE"||n.seqId!==this._seqId)}_receivePushMessage(e){if(!this._isUniCloudSSE(e))return;let n=e&&e.data&&e.data.payload,{action:i,messageId:o,message:a}=n;this._payloadQueue.push({action:i,messageId:o,message:a}),this._consumMessage()}_consumMessage(){for(;;){let e=this._payloadQueue.find(n=>n.messageId===this._currentMessageId+1);if(!e)break;this._currentMessageId++,this._parseMessagePayload(e)}}_parseMessagePayload(e){let{action:n,messageId:i,message:o}=e;n==="end"?this._end({messageId:i,message:o}):n==="message"&&this._appendMessage({messageId:i,message:o})}_appendMessage({messageId:e,message:n}={}){this.emit("message",n)}_end({messageId:e,message:n}={}){this.emit("end",n),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 xa(t){t._initPromiseHub||(t._initPromiseHub=new qe({createPromise:function(){let e=Promise.resolve();var n;n=1,e=new Promise(o=>{setTimeout(()=>{o()},n)});let i=t.auth();return e.then(()=>i.getLoginState()).then(o=>o?Promise.resolve():i.signInAnonymously())}}))}var ka={tcb:dn,tencent:dn,aliyun:vo,private:un,dcloud:un,alipay:Wo},H=new class{init(t){let e={},n=ka[t.provider];if(!n)throw new Error("\u672A\u63D0\u4F9B\u6B63\u786E\u7684provider\u53C2\u6570");return e=n.init(t),xa(e),ea(e),function(i){let o=i.uploadFile;i.uploadFile=function(a){return o.call(this,a)}}(e),function(i){i.database=function(o){if(o&&Object.keys(o).length>0)return i.init(o).database();if(this._database)return this._database;let a=yn($e,{uniClient:i});return this._database=a,a},i.databaseForJQL=function(o){if(o&&Object.keys(o).length>0)return i.init(o).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;let a=yn($e,{uniClient:i,isJQL:!0});return this._databaseForJQL=a,a}}(e),function(i){i.getCurrentUserInfo=pa,i.chooseAndUploadFile=ma.initChooseAndUploadFile(i),Object.assign(i,{get mixinDatacom(){return ti(i)}}),i.SSEChannel=Lt,i.initSecureNetworkByWeixin=Ta(i),i.setCustomClientInfo=ba,i.importObject=ya(i)}(e),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach(i=>{if(!e[i])return;let o=e[i];e[i]=function(){return o.apply(e,Array.from(arguments))},e[i]=function(a,s){return function(r){let l=!1;s==="callFunction"&&(l=(r&&r.type||$t)!==$t);let c=s==="callFunction"&&!l,p=this._initPromiseHub.exec();r=r||{};let{success:u,fail:m,complete:_}=Bn(r),w=p.then(()=>l?Promise.resolve():q(V(s,"invoke"),r)).then(()=>a.call(this,r)).then(h=>l?Promise.resolve(h):q(V(s,"success"),h).then(()=>q(V(s,"complete"),h)).then(()=>(c&&K($,{type:Fe,content:h}),Promise.resolve(h))),h=>l?Promise.reject(h):q(V(s,"fail"),h).then(()=>q(V(s,"complete"),h)).then(()=>(K($,{type:Fe,content:h}),Promise.reject(h))));if(!(u||m||_))return w;w.then(h=>{u&&u(h),_&&_(h),c&&K($,{type:Fe,content:h})},h=>{m&&m(h),_&&_(h),c&&K($,{type:Fe,content:h})})}}(e[i],i).bind(e)}),e.init=this.init,e}};(()=>{let t=ho,e={};if(t&&t.length===1)e=t[0],H=H.init(e),H._isDefault=!0;else{let n=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"],i;i=t&&t.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",n.forEach(o=>{H[o]=function(){return console.error(i),Promise.reject(new A({code:"SYS_ERR",message:i}))}})}if(Object.assign(H,{get mixinDatacom(){return ti(H)}}),ha(H),H.addInterceptor=Pn,H.removeInterceptor=go,H.interceptObject=mo,uni.__uniCloud=H,Et==="app"){let n=po();n.uniCloud=H,n.UniCloudError=A}})();var ii=H;var O=re(ee());var Sa={"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}}},Ia={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(t){uni.report&&t!==""&&uni.report("title",t)}},methods:{onClick(){this.$emit("click")}}};function Aa(t,e,n,i,o,a){return(0,O.openBlock)(),(0,O.createElementBlock)("view",{class:"uni-section",renderWhole:!0},[(0,O.createElementVNode)("view",{class:"uni-section-header",onClick:e[0]||(e[0]=(...s)=>a.onClick&&a.onClick(...s))},[n.type?((0,O.openBlock)(),(0,O.createElementBlock)("view",{key:0,class:(0,O.normalizeClass)(["uni-section-header__decoration",n.type])},null,2)):(0,O.renderSlot)(t.$slots,"decoration",{key:1}),(0,O.createElementVNode)("view",{class:"uni-section-header__content"},[(0,O.createElementVNode)("u-text",{style:(0,O.normalizeStyle)({"font-size":n.titleFontSize,color:n.titleColor}),class:(0,O.normalizeClass)(["uni-section__content-title",{distraction:!n.subTitle}])},(0,O.toDisplayString)(n.title),7),n.subTitle?((0,O.openBlock)(),(0,O.createElementBlock)("u-text",{key:0,style:(0,O.normalizeStyle)({"font-size":n.subTitleFontSize,color:n.subTitleColor}),class:"uni-section-header__content-sub"},(0,O.toDisplayString)(n.subTitle),5)):(0,O.createCommentVNode)("",!0)]),(0,O.createElementVNode)("view",{class:"uni-section-header__slot-right"},[(0,O.renderSlot)(t.$slots,"right")])]),(0,O.createElementVNode)("view",{class:"uni-section-content",style:(0,O.normalizeStyle)({padding:a._padding})},[(0,O.renderSlot)(t.$slots,"default")],4)])}var oi=J(Ia,[["render",Aa],["styles",[Sa]]]);var ai={props:{localdata:{type:[Array,Object],default(){return[]}},spaceInfo:{type:Object,default(){return{}}},collection:{type:String,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},getone:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},manual:{type:Boolean,default:!1},value:{type:[Array,String,Number],default(){return[]}},modelValue:{type:[Array,String,Number],default(){return[]}},preload:{type:Boolean,default:!1},stepSearh:{type:Boolean,default:!0},selfField:{type:String,default:""},parentField:{type:String,default:""},multiple:{type:Boolean,default:!1},map:{type:Object,default(){return{text:"text",value:"value"}}}},data(){return{loading:!1,errorMessage:"",loadMore:{contentdown:"",contentrefresh:"",contentnomore:""},dataList:[],selected:[],selectedIndex:0,page:{current:this.pageCurrent,size:this.pageSize,count:0}}},computed:{isLocaldata(){return!this.collection.length},postField(){let t=[this.field];return this.parentField&&t.push(`${this.parentField} as parent_value`),t.join(",")},dataValue(){return(Array.isArray(this.modelValue)?this.modelValue.length>0:this.modelValue!==null||this.modelValue!==void 0)?this.modelValue:this.value},hasValue(){return typeof this.dataValue=="number"?!0:this.dataValue!=null&&this.dataValue.length>0}},created(){this.$watch(()=>{var t=[];return["pageCurrent","pageSize","spaceInfo","value","modelValue","localdata","collection","action","field","orderby","where","getont","getcount","gettree"].forEach(e=>{t.push(this[e])}),t},(t,e)=>{for(let n=2;n<t.length&&t[n]==e[n];n++);t[0]!=e[0]&&(this.page.current=this.pageCurrent),this.page.size=this.pageSize,this.onPropsChange()}),this._treeData=[]},methods:{onPropsChange(){this._treeData=[]},getCommand(t={}){let e=ii.database(this.spaceInfo),n=t.action||this.action;n&&(e=e.action(n));let i=t.collection||this.collection;e=e.collection(i);let o=t.where||this.where;!o||!Object.keys(o).length||(e=e.where(o));let a=t.field||this.field;a&&(e=e.field(a));let s=t.orderby||this.orderby;s&&(e=e.orderBy(s));let r=t.pageCurrent!==void 0?t.pageCurrent:this.page.current,l=t.pageSize!==void 0?t.pageSize:this.page.size,c=t.getcount!==void 0?t.getcount:this.getcount,p=t.gettree!==void 0?t.gettree:this.gettree,u={getCount:c,getTree:p};return t.getTreePath&&(u.getTreePath=t.getTreePath),e=e.skip(l*(r-1)).limit(l).get(u),e},getNodeData(t){this.loading||(this.loading=!0,this.getCommand({field:this.postField,where:this._pathWhere()}).then(e=>{this.loading=!1,this.selected=e.result.data,t&&t()}).catch(e=>{this.loading=!1,this.errorMessage=e}))},getTreePath(t){this.loading||(this.loading=!0,this.getCommand({field:this.postField,getTreePath:{startWith:`${this.selfField}=='${this.dataValue}'`}}).then(e=>{this.loading=!1;let n=[];this._extractTreePath(e.result.data,n),this.selected=n,t&&t()}).catch(e=>{this.loading=!1,this.errorMessage=e}))},loadData(){if(this.isLocaldata){this._processLocalData();return}if(this.dataValue!=null){this._loadNodeData(t=>{this._treeData=t,this._updateBindData(),this._updateSelected()});return}this.stepSearh?this._loadNodeData(t=>{this._treeData=t,this._updateBindData()}):this._loadAllData(t=>{this._treeData=[],this._extractTree(t,this._treeData,null),this._updateBindData()})},_loadAllData(t){this.loading||(this.loading=!0,this.getCommand({field:this.postField,gettree:!0,startwith:`${this.selfField}=='${this.dataValue}'`}).then(e=>{this.loading=!1,t(e.result.data),this.onDataChange()}).catch(e=>{this.loading=!1,this.errorMessage=e}))},_loadNodeData(t,e){this.loading||(this.loading=!0,this.getCommand({field:this.postField,where:e||this._postWhere(),pageSize:500}).then(n=>{this.loading=!1,t(n.result.data),this.onDataChange()}).catch(n=>{this.loading=!1,this.errorMessage=n}))},_pathWhere(){let t=[],e=this._getParentNameByField();return e&&t.push(`${e} == '${this.dataValue}'`),this.where?`(${this.where}) && (${t.join(" || ")})`:t.join(" || ")},_postWhere(){let t=[],e=this.selected,n=this.parentField;if(n&&t.push(`${n} == null || ${n} == ""`),e.length)for(var i=0;i<e.length-1;i++)t.push(`${n} == '${e[i].value}'`);let o=[];return this.where&&o.push(`(${this.where})`),t.length&&o.push(`(${t.join(" || ")})`),o.join(" && ")},_nodeWhere(){let t=[],e=this.selected;return e.length&&t.push(`${this.parentField} == '${e[e.length-1].value}'`),this.where?`(${this.where}) && (${t.join(" || ")})`:t.join(" || ")},_getParentNameByField(){let t=this.field.split(","),e=null;for(let n=0;n<t.length;n++){let i=t[n].split("as");if(!(i.length<2)&&i[1].trim()==="value"){e=i[0].trim();break}}return e},_isTreeView(){return this.parentField&&this.selfField},_updateSelected(){var t=this.dataList,e=this.selected;let n=this.map.text,i=this.map.value;for(var o=0;o<e.length;o++)for(var a=e[o].value,s=t[o],r=0;r<s.length;r++){var l=s[r];if(l[i]===a){e[o].text=l[n];break}}},_updateBindData(t){let{dataList:e,hasNodes:n}=this._filterData(this._treeData,this.selected),i=this._stepSearh===!1&&!n;return t&&(t.isleaf=i),this.dataList=e,this.selectedIndex=e.length-1,!i&&this.selected.length<e.length&&this.selected.push({value:null,text:"\u8BF7\u9009\u62E9"}),{isleaf:i,hasNodes:n}},_filterData(t,e){let n=[],i=!0;n.push(t.filter(s=>s.parent_value===null||s.parent_value===void 0||s.parent_value===""));for(let s=0;s<e.length;s++){var o=e[s].value,a=t.filter(r=>r.parent_value===o);a.length?n.push(a):i=!1}return{dataList:n,hasNodes:i}},_extractTree(t,e,n){let i=this.map.value;for(let o=0;o<t.length;o++){let a=t[o],s={};for(let l in a)l!=="children"&&(s[l]=a[l]);n!=null&&n!==""&&(s.parent_value=n),e.push(s);let r=a.children;r&&this._extractTree(r,e,a[i])}},_extractTreePath(t,e){for(let n=0;n<t.length;n++){let i=t[n],o={};for(let s in i)s!=="children"&&(o[s]=i[s]);e.push(o);let a=i.children;a&&this._extractTreePath(a,e)}},_findNodePath(t,e,n=[]){let i=this.map.text,o=this.map.value;for(let a=0;a<e.length;a++){let s=e[a],r=s.children,l=s[i],c=s[o];if(n.push({value:c,text:l}),c===t)return n;if(r){let p=this._findNodePath(t,r,n);if(p.length)return p}n.pop()}return[]},_processLocalData(){this._treeData=[],this._extractTree(this.localdata,this._treeData);var t=this.dataValue;t!==void 0&&(Array.isArray(t)&&(t=t[t.length-1],typeof t=="object"&&t[this.map.value]&&(t=t[this.map.value])),this.selected=this._findNodePath(t,this.localdata))}}},Pa={"uni-data-pickerview":{"":{flex:1,flexDirection:"column",overflow:"hidden",height:100}},"error-text":{"":{color:"#DD524D"}},"loading-cover":{"":{position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"rgba(255,255,255,0.5)",flexDirection:"column",alignItems:"center",zIndex:1001}},"error-message":{"":{backgroundColor:"#ffffff",position:"absolute",left:0,top:0,right:0,bottom:0,paddingTop:15,paddingRight:15,paddingBottom:15,paddingLeft:15,opacity:.9,zIndex:102}},"selected-area":{"":{width:"750rpx"}},"selected-list":{"":{flexDirection:"row",flexWrap:"nowrap",paddingTop:0,paddingRight:5,paddingBottom:0,paddingLeft:5,borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"#f8f8f8"}},"selected-item":{"":{marginLeft:10,marginRight:10,paddingTop:12,paddingRight:0,paddingBottom:12,paddingLeft:0,textAlign:"center"}},"selected-item-text-overflow":{"":{width:168,overflow:"hidden"}},"selected-item-active":{"":{borderBottomWidth:2,borderBottomStyle:"solid",borderBottomColor:"#007aff"}},"selected-item-text":{"":{color:"#007aff"}},"tab-c":{"":{position:"relative",flex:1,flexDirection:"row",overflow:"hidden"}},list:{"":{flex:1}},item:{"":{paddingTop:12,paddingRight:15,paddingBottom:12,paddingLeft:15,flexDirection:"row",justifyContent:"space-between"}},"is-disabled":{"":{opacity:.5}},"item-text":{"":{color:"#333333"}},"item-text-overflow":{"":{width:280,overflow:"hidden"}},check:{"":{marginRight:5,borderWidth:2,borderStyle:"solid",borderColor:"#007aff",borderLeftWidth:0,borderLeftStyle:"solid",borderLeftColor:"#000000",borderTopWidth:0,borderTopStyle:"solid",borderTopColor:"#000000",height:12,width:6,transformOrigin:"center",transform:"rotate(45deg)"}}},Ca={name:"UniDataPickerView",emits:["nodeclick","change","datachange","update:modelValue"],mixins:[ai],props:{managedMode:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0}},data(){return{}},created(){this.managedMode||this.$nextTick(()=>{this.load()})},methods:{onPropsChange(){this._treeData=[],this.selectedIndex=0,this.load()},load(){this.isLocaldata?this.loadData():this.dataValue.length&&this.getTreePath(t=>{this.loadData()})},handleSelect(t){this.selectedIndex=t},handleNodeClick(t,e,n){if(t.disable)return;let i=this.dataList[e][n],o=i[this.map.text],a=i[this.map.value];if(e<this.selected.length-1?(this.selected.splice(e,this.selected.length-e),this.selected.push({text:o,value:a})):e===this.selected.length-1&&this.selected.splice(e,1,{text:o,value:a}),i.isleaf){this.onSelectedChange(i,i.isleaf);return}let{isleaf:s,hasNodes:r}=this._updateBindData();if(!this._isTreeView()&&!r){this.onSelectedChange(i,!0);return}if(this.isLocaldata&&(!r||s)){this.onSelectedChange(i,!0);return}if(!s&&!r){this._loadNodeData(l=>{l.length?(this._treeData.push(...l),this._updateBindData(i)):i.isleaf=!0,this.onSelectedChange(i,i.isleaf)},this._nodeWhere());return}this.onSelectedChange(i,!1)},updateData(t){this._treeData=t.treeData,this.selected=t.selected,this._treeData.length?this._updateBindData():this.loadData()},onDataChange(){this.$emit("datachange")},onSelectedChange(t,e){e&&this._dispatchEvent(),t&&this.$emit("nodeclick",t)},_dispatchEvent(){this.$emit("change",this.selected.slice(0))}}};function Ba(t,e,n,i,o,a){let s=ce((0,f.resolveDynamicComponent)("uni-load-more"),nt);return(0,f.openBlock)(),(0,f.createElementBlock)("view",{class:"uni-data-pickerview",renderWhole:!0},[(0,f.createElementVNode)("scroll-view",{class:"selected-area",scrollX:"true",scrollY:"false",showScrollbar:!1},[(0,f.createElementVNode)("view",{class:"selected-list"},[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(t.selected,(r,l)=>((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,null,[r.text?((0,f.openBlock)(),(0,f.createElementBlock)("view",{key:0,class:(0,f.normalizeClass)(["selected-item",{"selected-item-active":l==t.selectedIndex,"selected-item-text-overflow":n.ellipsis}]),onClick:c=>a.handleSelect(l)},[(0,f.createElementVNode)("u-text",{class:""},(0,f.toDisplayString)(r.text),1)],10,["onClick"])):(0,f.createCommentVNode)("",!0)],64))),256))])]),(0,f.createElementVNode)("view",{class:"tab-c"},[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(t.dataList,(r,l)=>((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,null,[l==t.selectedIndex?((0,f.openBlock)(),(0,f.createElementBlock)("scroll-view",{class:"list",key:l,scrollY:!0},[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(r,(c,p)=>((0,f.openBlock)(),(0,f.createElementBlock)("view",{class:(0,f.normalizeClass)(["item",{"is-disabled":!!c.disable}]),onClick:u=>a.handleNodeClick(c,l,p)},[(0,f.createElementVNode)("u-text",{class:"item-text item-text-overflow"},(0,f.toDisplayString)(c[t.map.text]),1),t.selected.length>l&&c[t.map.value]==t.selected[l].value?((0,f.openBlock)(),(0,f.createElementBlock)("view",{key:0,class:"check"})):(0,f.createCommentVNode)("",!0)],10,["onClick"]))),256))])):(0,f.createCommentVNode)("",!0)],64))),256)),t.loading?((0,f.openBlock)(),(0,f.createElementBlock)("view",{key:0,class:"loading-cover"},[(0,f.createVNode)(s,{class:"load-more",contentText:t.loadMore,status:"loading"},null,8,["contentText"])])):(0,f.createCommentVNode)("",!0),t.errorMessage?((0,f.openBlock)(),(0,f.createElementBlock)("view",{key:1,class:"error-message"},[(0,f.createElementVNode)("u-text",{class:"error-text"},(0,f.toDisplayString)(t.errorMessage),1)])):(0,f.createCommentVNode)("",!0)])])}var La=J(Ca,[["render",Ba],["styles",[Pa]]]),Da={"uni-data-tree":{"":{flex:1,position:"relative",fontSize:14}},"error-text":{"":{color:"#DD524D"}},"input-value":{"":{flexDirection:"row",alignItems:"center",flexWrap:"nowrap",fontSize:14,paddingTop:0,paddingRight:5,paddingBottom:0,paddingLeft:10,overflow:"hidden",height:35}},"input-value-border":{"":{borderWidth:1,borderStyle:"solid",borderColor:"#e5e5e5",borderRadius:5}},"selected-area":{"":{flex:1,overflow:"hidden",flexDirection:"row"}},"load-more":{"":{width:40}},"selected-list":{"":{flexDirection:"row",flexWrap:"nowrap"}},"selected-item":{"":{flexDirection:"row"}},"text-color":{"":{color:"#333333"}},placeholder:{"":{color:"#808080",fontSize:12}},"input-split-line":{"":{opacity:.5}},"arrow-area":{"":{position:"relative",width:20,justifyContent:"center",transform:"rotate(-45deg)",transformOrigin:"center"}},"input-arrow":{"":{width:7,height:7,borderLeftWidth:1,borderLeftStyle:"solid",borderLeftColor:"#999999",borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"#999999"}},"uni-data-tree-cover":{"":{position:"fixed",left:0,top:0,right:0,bottom:0,backgroundColor:"rgba(0,0,0,0.4)",flexDirection:"column",zIndex:100}},"uni-data-tree-dialog":{"":{position:"fixed",left:0,top:20,right:0,bottom:0,backgroundColor:"#FFFFFF",borderTopLeftRadius:10,borderTopRightRadius:10,flexDirection:"column",zIndex:102,overflow:"hidden",width:"750rpx"}},"dialog-caption":{"":{position:"relative",flexDirection:"row"}},"title-area":{"":{alignItems:"center",paddingTop:0,paddingRight:10,paddingBottom:0,paddingLeft:10}},"dialog-title":{"":{lineHeight:44}},"dialog-close":{"":{position:"absolute",top:0,right:0,bottom:0,flexDirection:"row",alignItems:"center",paddingTop:0,paddingRight:15,paddingBottom:0,paddingLeft:15}},"dialog-close-plus":{"":{width:16,height:2,backgroundColor:"#666666",borderRadius:2,transform:"rotate(45deg)"}},"dialog-close-rotate":{"":{position:"absolute",transform:"rotate(-45deg)"}},"picker-view":{"":{flex:1,overflow:"hidden"}},"icon-clear":{"":{display:"flex",alignItems:"center"}}},Ea={name:"UniDataPicker",emits:["popupopened","popupclosed","nodeclick","input","change","update:modelValue"],mixins:[ai],components:{DataPickerView:La},props:{options:{type:[Object,Array],default(){return{}}},popupTitle:{type:String,default:"\u8BF7\u9009\u62E9"},placeholder:{type:String,default:"\u8BF7\u9009\u62E9"},heightMobile:{type:String,default:""},readonly:{type:Boolean,default:!1},clearIcon:{type:Boolean,default:!0},border:{type:Boolean,default:!0},split:{type:String,default:"/"},ellipsis:{type:Boolean,default:!0}},data(){return{isOpened:!1,inputSelected:[]}},created(){this.form=this.getForm("uniForms"),this.formItem=this.getForm("uniFormsItem"),this.formItem&&this.formItem.name&&(this.rename=this.formItem.name,this.form.inputChildrens.push(this)),this.$nextTick(()=>{this.load()})},methods:{clear(){this.inputSelected.splice(0),this._dispatchEvent([])},onPropsChange(){this._treeData=[],this.selectedIndex=0,this.load()},load(){if(this.readonly){this._processReadonly(this.localdata,this.dataValue);return}this.isLocaldata?(this.loadData(),this.inputSelected=this.selected.slice(0)):!this.parentField&&!this.selfField&&this.hasValue?this.getNodeData(()=>{this.inputSelected=this.selected.slice(0)}):this.hasValue&&this.getTreePath(()=>{this.inputSelected=this.selected.slice(0)})},getForm(t="uniForms"){let e=this.$parent,n=e.$options.name;for(;n!==t;){if(e=e.$parent,!e)return!1;n=e.$options.name}return e},show(){this.isOpened=!0,setTimeout(()=>{this.$refs.pickerView.updateData({treeData:this._treeData,selected:this.selected,selectedIndex:this.selectedIndex})},200),this.$emit("popupopened")},hide(){this.isOpened=!1,this.$emit("popupclosed")},handleInput(){this.readonly||this.show()},handleClose(t){this.hide()},onnodeclick(t){this.$emit("nodeclick",t)},ondatachange(t){this._treeData=this.$refs.pickerView._treeData},onchange(t){this.hide(),this.$nextTick(()=>{this.inputSelected=t}),this._dispatchEvent(t)},_processReadonly(t,e){var n=t.findIndex(s=>s.children);if(n>-1){let s;Array.isArray(e)?(s=e[e.length-1],typeof s=="object"&&s.value&&(s=s.value)):s=e,this.inputSelected=this._findNodePath(s,this.localdata);return}if(!this.hasValue){this.inputSelected=[];return}let i=[];for(let s=0;s<e.length;s++){var o=e[s],a=t.find(r=>r.value==o);a&&i.push(a)}i.length&&(this.inputSelected=i)},_filterForArray(t,e){var n=[];for(let a=0;a<e.length;a++){var i=e[a],o=t.find(s=>s.value==i);o&&n.push(o)}return n},_dispatchEvent(t){let e={};if(t.length){for(var n=new Array(t.length),i=0;i<t.length;i++)n[i]=t[i].value;e=t[t.length-1]}else e.value="";this.formItem&&this.formItem.setValue(e.value),this.$emit("input",e.value),this.$emit("update:modelValue",e.value),this.$emit("change",{detail:{value:t}})}}};function Oa(t,e,n,i,o,a){let s=ce((0,f.resolveDynamicComponent)("uni-load-more"),nt),r=ce((0,f.resolveDynamicComponent)("uni-icons"),Gt),l=(0,f.resolveComponent)("data-picker-view");return(0,f.openBlock)(),(0,f.createElementBlock)("view",{class:"uni-data-tree",renderWhole:!0},[(0,f.createElementVNode)("view",{class:"uni-data-tree-input",onClick:e[1]||(e[1]=(...c)=>a.handleInput&&a.handleInput(...c))},[(0,f.renderSlot)(t.$slots,"default",{options:n.options,data:o.inputSelected,error:t.errorMessage},()=>[(0,f.createElementVNode)("view",{class:(0,f.normalizeClass)(["input-value",{"input-value-border":n.border}])},[t.errorMessage?((0,f.openBlock)(),(0,f.createElementBlock)("u-text",{key:0,class:"selected-area error-text"},(0,f.toDisplayString)(t.errorMessage),1)):t.loading&&!o.isOpened?((0,f.openBlock)(),(0,f.createElementBlock)("view",{key:1,class:"selected-area"},[(0,f.createVNode)(s,{class:"load-more",contentText:t.loadMore,status:"loading"},null,8,["contentText"])])):o.inputSelected.length?((0,f.openBlock)(),(0,f.createElementBlock)("scroll-view",{key:2,class:"selected-area",scrollX:"true"},[(0,f.createElementVNode)("view",{class:"selected-list"},[((0,f.openBlock)(!0),(0,f.createElementBlock)(f.Fragment,null,(0,f.renderList)(o.inputSelected,(c,p)=>((0,f.openBlock)(),(0,f.createElementBlock)("view",{class:"selected-item",key:p},[(0,f.createElementVNode)("u-text",{class:"text-color"},(0,f.toDisplayString)(c.text),1),p<o.inputSelected.length-1?((0,f.openBlock)(),(0,f.createElementBlock)("u-text",{key:0,class:"input-split-line"},(0,f.toDisplayString)(n.split),1)):(0,f.createCommentVNode)("",!0)]))),128))])])):((0,f.openBlock)(),(0,f.createElementBlock)("u-text",{key:3,class:"selected-area placeholder"},(0,f.toDisplayString)(n.placeholder),1)),n.clearIcon&&!n.readonly&&o.inputSelected.length?((0,f.openBlock)(),(0,f.createElementBlock)("view",{key:4,class:"icon-clear",onClick:e[0]||(e[0]=(0,f.withModifiers)((...c)=>a.clear&&a.clear(...c),["stop"]))},[(0,f.createVNode)(r,{type:"clear",color:"#c0c4cc",size:"24"})])):(0,f.createCommentVNode)("",!0),(!n.clearIcon||!o.inputSelected.length)&&!n.readonly?((0,f.openBlock)(),(0,f.createElementBlock)("view",{key:5,class:"arrow-area"},[(0,f.createElementVNode)("view",{class:"input-arrow"})])):(0,f.createCommentVNode)("",!0)],2)])]),o.isOpened?((0,f.openBlock)(),(0,f.createElementBlock)("view",{key:0,class:"uni-data-tree-cover",onClick:e[2]||(e[2]=(...c)=>a.handleClose&&a.handleClose(...c))})):(0,f.createCommentVNode)("",!0),o.isOpened?((0,f.openBlock)(),(0,f.createElementBlock)("view",{key:1,class:"uni-data-tree-dialog"},[(0,f.createElementVNode)("view",{class:"uni-popper__arrow"}),(0,f.createElementVNode)("view",{class:"dialog-caption"},[(0,f.createElementVNode)("view",{class:"title-area"},[(0,f.createElementVNode)("u-text",{class:"dialog-title"},(0,f.toDisplayString)(n.popupTitle),1)]),(0,f.createElementVNode)("view",{class:"dialog-close",onClick:e[3]||(e[3]=(...c)=>a.handleClose&&a.handleClose(...c))},[(0,f.createElementVNode)("view",{class:"dialog-close-plus","data-id":"close"}),(0,f.createElementVNode)("view",{class:"dialog-close-plus dialog-close-rotate","data-id":"close"})])]),(0,f.createVNode)(l,{class:"picker-view",ref:"pickerView",modelValue:t.dataValue,"onUpdate:modelValue":e[4]||(e[4]=c=>t.dataValue=c),localdata:t.localdata,preload:t.preload,collection:t.collection,field:t.field,orderby:t.orderby,where:t.where,"step-searh":t.stepSearh,"self-field":t.selfField,"parent-field":t.parentField,"managed-mode":!0,map:t.map,ellipsis:n.ellipsis,onChange:a.onchange,onDatachange:a.ondatachange,onNodeclick:a.onnodeclick},null,8,["modelValue","localdata","preload","collection","field","orderby","where","step-searh","self-field","parent-field","map","ellipsis","onChange","onDatachange","onNodeclick"])])):(0,f.createCommentVNode)("",!0)])}var Ra=J(Ea,[["render",Oa],["styles",[Da]]]),Na={title:{"":{fontSize:14,fontWeight:"bold",marginTop:20,marginRight:0,marginBottom:5,marginLeft:0}},"data-pickerview":{"":{height:400,borderWidth:1,borderStyle:"solid",borderColor:"#e5e5e5"}},popper__arrow:{"":{top:-6,left:50,marginRight:3,borderTopWidth:0,borderBottomColor:"#EBEEF5"}}},Fa={data(){return{classes:"1-2",dataTree:[{text:"\u4E00\u5E74\u7EA7",value:"1-0",children:[{text:"1.1\u73ED",value:"1-1"},{text:"1.2\u73ED",value:"1-2"}]},{text:"\u4E8C\u5E74\u7EA7",value:"2-0",children:[{text:"2.1\u73ED",value:"2-1"},{text:"2.2\u73ED",value:"2-2"}]},{text:"\u4E09\u5E74\u7EA7",value:"3-0",disable:!0}]}},methods:{onnodeclick(t){we("log","at pages/extUI/data-picker/data-picker.nvue:71",t)},onpopupopened(t){we("log","at pages/extUI/data-picker/data-picker.nvue:74","popupopened")},onpopupclosed(t){we("log","at pages/extUI/data-picker/data-picker.nvue:77","popupclosed")},onchange(t){we("log","at pages/extUI/data-picker/data-picker.nvue:80","---------onchange:",t)}}};function Ua(t,e,n,i,o,a){let s=ce((0,f.resolveDynamicComponent)("uni-card"),Vt),r=ce((0,f.resolveDynamicComponent)("uni-data-picker"),Ra),l=ce((0,f.resolveDynamicComponent)("uni-section"),oi);return(0,f.openBlock)(),(0,f.createElementBlock)("scroll-view",{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true",style:{flexDirection:"column"}},[(0,f.createElementVNode)("view",{class:"container"},[(0,f.createVNode)(s,{"is-full":"","is-shadow":!1},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)("u-text",{class:"uni-h6"},"\u6807\u7B7E\u7EC4\u4EF6\u591A\u7528\u4E8E\u5546\u54C1\u5206\u7C7B\u3001\u91CD\u70B9\u5185\u5BB9\u663E\u793A\u7B49\u573A\u666F\u3002")]),_:1}),(0,f.createVNode)(l,{title:"\u672C\u5730\u6570\u636E",type:"line",padding:"",style:{height:"calc(100vh - 100px)"}},{default:(0,f.withCtx)(()=>[(0,f.createVNode)(r,{placeholder:"\u8BF7\u9009\u62E9\u73ED\u7EA7","popup-title":"\u8BF7\u9009\u62E9\u6240\u5728\u5730\u533A",localdata:o.dataTree,modelValue:o.classes,"onUpdate:modelValue":e[0]||(e[0]=c=>o.classes=c),onChange:a.onchange,onNodeclick:a.onnodeclick,onPopupopened:a.onpopupopened,onPopupclosed:a.onpopupclosed},null,8,["localdata","modelValue","onChange","onNodeclick","onPopupopened","onPopupclosed"])]),_:1})])])}var Ye=J(Fa,[["render",Ua],["styles",[Na]]]);var Ft=plus.webview.currentWebview();if(Ft){let t=parseInt(Ft.id),e="pages/extUI/data-picker/data-picker",n={};try{n=JSON.parse(Ft.__query__)}catch(o){}Ye.mpType="page";let i=Vue.createPageApp(Ye,{$store:getApp({allowDefault:!0}).$store,__pageId:t,__pagePath:e,__pageQuery:n});i.provide("__globalStyles",Vue.useCssStyles([...__uniConfig.styles,...Ye.styles||[]])),i.mount("#root")}})();
