(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-forms-forms"],{"0022":function(e,t,n){var a=n("5b25");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=n("4f06").default;r("57ed3866",a,!0,{sourceMap:!1,shadowMode:!1})},"00ce":function(e,t,n){"use strict";var a=SyntaxError,r=Function,i=TypeError,o=function(e){try{return r('"use strict"; return ('+e+").constructor;")()}catch(t){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(P){c=null}var u=function(){throw new i},s=c?function(){try{return u}catch(e){try{return c(arguments,"callee").get}catch(t){return u}}}():u,l=n("5156")(),d=Object.getPrototypeOf||function(e){return e.__proto__},f={},p="undefined"===typeof Uint8Array?void 0:d(Uint8Array),h={"%AggregateError%":"undefined"===typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":l?d([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"===typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"===typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":r,"%GeneratorFunction%":f,"%Int8Array%":"undefined"===typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?d(d([][Symbol.iterator]())):void 0,"%JSON%":"object"===typeof JSON?JSON:void 0,"%Map%":"undefined"===typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&l?d((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?void 0:Promise,"%Proxy%":"undefined"===typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&l?d((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?d(""[Symbol.iterator]()):void 0,"%Symbol%":l?Symbol:void 0,"%SyntaxError%":a,"%ThrowTypeError%":s,"%TypedArray%":p,"%TypeError%":i,"%Uint8Array%":"undefined"===typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?void 0:WeakSet},m={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=n("0f7c"),g=n("a0d3"),y=v.call(Function.call,Array.prototype.concat),b=v.call(Function.apply,Array.prototype.splice),_=v.call(Function.call,String.prototype.replace),w=v.call(Function.call,String.prototype.slice),x=v.call(Function.call,RegExp.prototype.exec),k=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S=/\\(\\)?/g,O=function(e){var t=w(e,0,1),n=w(e,-1);if("%"===t&&"%"!==n)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var r=[];return _(e,k,(function(e,t,n,a){r[r.length]=n?_(a,S,"$1"):t||e})),r},A=function(e,t){var n,r=e;if(g(m,r)&&(n=m[r],r="%"+n[0]+"%"),g(h,r)){var c=h[r];if(c===f&&(c=function e(t){var n;if("%AsyncFunction%"===t)n=o("async function () {}");else if("%GeneratorFunction%"===t)n=o("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=o("async function* () {}");else if("%AsyncGenerator%"===t){var a=e("%AsyncGeneratorFunction%");a&&(n=a.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&(n=d(r.prototype))}return h[t]=n,n}(r)),"undefined"===typeof c&&!t)throw new i("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:c}}throw new a("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new i('"allowMissing" argument must be a boolean');if(null===x(/^%?[^%]*%?$/,e))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=O(e),r=n.length>0?n[0]:"",o=A("%"+r+"%",t),u=o.name,s=o.value,l=!1,d=o.alias;d&&(r=d[0],b(n,y([0,1],d)));for(var f=1,p=!0;f=n.length){var k=c(s,m);p=!!k,s=p&&"get"in k&&!("originalValue"in k.get)?k.get:s[m]}else p=g(s,m),s=s[m];p&&!l&&(h[u]=s)}}return s}},"01a2":function(e,t,n){var a=n("15c7");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=n("4f06").default;r("349889fd",a,!0,{sourceMap:!1,shadowMode:!1})},"02ec":function(e,t,n){var a=n("23e7"),r=n("67b6");a({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==r},{trimLeft:r})},"076c":function(e,t,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n("8b18")),i={data:function(){return{baseFormData:{customerName:"",telephone:"",duties:"",company:"",cowTypeId:"",region:"",address:"",cowCount:"",demandId:"",remark:""},animalType:[],demandList:[],show:!1,isShow:!0,rules:{customerName:{rules:[{required:!0,errorMessage:"请输入姓名"}]},company:{rules:[{required:!0,errorMessage:"请输入公司/牧场名称"}]},region:{rules:[{required:!0,errorMessage:"请选择所在地区"}]},cowTypeId:{rules:[{required:!0,errorMessage:"请选择畜牧类别"}]},demandId:{rules:[{required:!0,errorMessage:"请选择需求"}]},telephone:{rules:[{required:!0,errorMessage:"请填写能联系到您的电话"},{pattern:"(^1([358][0-9]|4[579]|66|7[0135678]|9[89])[0-9]{8}$)",errorMessage:"请输入正确的手机号"}]}}}},onLoad:function(){this.get_animalTypeList()},onReady:function(){},methods:{heidden:function(){var e=setInterval((function(){uni.hideKeyboard(),console.log("刷新")}),60);setTimeout((function(){clearInterval(e),console.log("停止刷新")}),2e3)},get_animalTypeList:function(){var e=this;r.default.postJson("GetDataByNameOther",r.default.combineFromParamForNull({name:"getDictListSelect",parammaps:{pid:73}})).then((function(t){if(null!==t.data.list){e.animalType=t.data.list;for(var n=0;n uni-text[data-v-7af536f1]{display:inline-block;word-spacing:%?4?%;letter-spacing:%?4?%}.cc_area_view_btn_cancle[data-v-7af536f1]{color:#939393;padding-right:%?20?%;padding-left:%?25?%}.cc_area_view_btn_sure[data-v-7af536f1]{float:right;padding-left:%?20?%;padding-right:%?25?%}.cc_area_mask[data-v-7af536f1]{width:100%;height:100vh;background-color:rgba(28,28,28,.6);position:absolute;top:%?0?%;left:%?0?%;z-index:20}',""]),e.exports=t},"086f":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",[1==e.show?n("v-uni-view",{staticClass:"cc_area_mask"}):e._e(),n("v-uni-view",{class:"cc_area_view "+(e.show?"show":"hide")},[n("v-uni-view",{staticClass:"cc_area_view_btns"},[n("v-uni-text",{staticClass:"cc_area_view_btn_cancle",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.handleNYZAreaCancle.apply(void 0,arguments)}}},[e._v("取消")]),n("v-uni-text",{staticClass:"cc_area_view_btn_sure",attrs:{"data-province":e.province,"data-city":e.city,"data-area":e.area},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.handleNYZAreaSelect.apply(void 0,arguments)}}},[e._v("确定")])],1),n("v-uni-picker-view",{staticClass:"cc_area_pick_view",attrs:{"indicator-style":"height: 35px;",value:e.value},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.handleNYZAreaChange.apply(void 0,arguments)}}},[n("v-uni-picker-view-column",e._l(e.provinces,(function(t,a){return n("v-uni-view",{key:a,staticClass:"cc_area_colum_view"},[e._v(e._s(t))])})),1),n("v-uni-picker-view-column",e._l(e.citys,(function(t,a){return n("v-uni-view",{key:a,staticClass:"cc_area_colum_view"},[e._v(e._s(t))])})),1),n("v-uni-picker-view-column",e._l(e.areas,(function(t,a){return n("v-uni-view",{key:a,staticClass:"cc_area_colum_view"},[e._v(e._s(t))])})),1)],1)],1)],1)},r=[]},"0f7c":function(e,t,n){"use strict";var a=n("688e");e.exports=Function.prototype.bind||a},1:function(e,t){},"107b":function(e,t,n){"use strict";n.r(t);var a=n("22de"),r=n("6ac4");for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n("b9da");var o=n("f0c5"),c=Object(o["a"])(r["default"],a["b"],a["c"],!1,null,"d3d14bf0",null,!1,a["a"],void 0);t["default"]=c.exports},1431:function(e,t,n){"use strict";n.r(t);var a=n("1548"),r=n("d3d2");for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n("fe2f");var o=n("f0c5"),c=Object(o["a"])(r["default"],a["b"],a["c"],!1,null,"16602132",null,!1,a["a"],void 0);t["default"]=c.exports},1548:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}));var a={uniIcons:n("b6e1").default},r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"uni-easyinput",class:{"uni-easyinput-error":e.msg},style:e.boxStyle},[n("v-uni-view",{staticClass:"uni-easyinput__content",class:e.inputContentClass,style:e.inputContentStyle},[e.prefixIcon?n("uni-icons",{staticClass:"content-clear-icon",attrs:{type:e.prefixIcon,color:"#c0c4cc",size:"22"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onClickIcon("prefix")}}}):e._e(),"textarea"===e.type?n("v-uni-textarea",{staticClass:"uni-easyinput__content-textarea",class:{"input-padding":e.inputBorder},attrs:{name:e.name,value:e.val,placeholder:e.placeholder,placeholderStyle:e.placeholderStyle,disabled:e.disabled,"placeholder-class":"uni-easyinput__placeholder-class",maxlength:e.inputMaxlength,focus:e.focused,autoHeight:e.autoHeight},on:{input:function(t){arguments[0]=t=e.$handleEvent(t),e.onInput.apply(void 0,arguments)},blur:function(t){arguments[0]=t=e.$handleEvent(t),e._Blur.apply(void 0,arguments)},focus:function(t){arguments[0]=t=e.$handleEvent(t),e._Focus.apply(void 0,arguments)},confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.onConfirm.apply(void 0,arguments)}}}):n("v-uni-input",{staticClass:"uni-easyinput__content-input",style:e.inputStyle,attrs:{type:"password"===e.type?"text":e.type,name:e.name,value:e.val,password:!e.showPassword&&"password"===e.type,placeholder:e.placeholder,placeholderStyle:e.placeholderStyle,"placeholder-class":"uni-easyinput__placeholder-class",disabled:e.disabled,maxlength:e.inputMaxlength,focus:e.focused,confirmType:e.confirmType},on:{focus:function(t){arguments[0]=t=e.$handleEvent(t),e._Focus.apply(void 0,arguments)},blur:function(t){arguments[0]=t=e.$handleEvent(t),e._Blur.apply(void 0,arguments)},input:function(t){arguments[0]=t=e.$handleEvent(t),e.onInput.apply(void 0,arguments)},confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.onConfirm.apply(void 0,arguments)}}}),"password"===e.type&&e.passwordIcon?[e.isVal?n("uni-icons",{staticClass:"content-clear-icon",class:{"is-textarea-icon":"textarea"===e.type},attrs:{type:e.showPassword?"eye-slash-filled":"eye-filled",size:22,color:e.focusShow?"#2979ff":"#c0c4cc"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onEyes.apply(void 0,arguments)}}}):e._e()]:e.suffixIcon?[e.suffixIcon?n("uni-icons",{staticClass:"content-clear-icon",attrs:{type:e.suffixIcon,color:"#c0c4cc",size:"22"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onClickIcon("suffix")}}}):e._e()]:[e.clearable&&e.isVal&&!e.disabled&&"textarea"!==e.type?n("uni-icons",{staticClass:"content-clear-icon",class:{"is-textarea-icon":"textarea"===e.type},attrs:{type:"clear",size:e.clearSize,color:e.msg?"#dd524d":e.focusShow?"#2979ff":"#c0c4cc"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onClear.apply(void 0,arguments)}}}):e._e()],e._t("right")],2)],1)},i=[]},"15c7":function(e,t,n){var a=n("24fb"),r=n("1de5"),i=n("962b");t=a(!1);var o=r(i);t.push([e.i,'@charset "UTF-8";\n/* 水平间距 */\n/* 水平间距 */.top[data-v-15518d3b]{height:%?300?%;background:url('+o+") no-repeat;background-size:auto 100%}.form[data-v-15518d3b]{background:#fff}.uni-forms-item[data-v-15518d3b]{border-bottom:1px solid #ccc;padding-left:%?20?%;margin-bottom:0}[data-v-15518d3b] .uni-select{border:none!important}.tip[data-v-15518d3b]{text-align:center;padding-top:%?40?%}.btn[data-v-15518d3b]{margin-top:%?30?%;padding-bottom:%?30?%;width:90%;margin-left:5%}[data-v-15518d3b] .uni-easyinput__content-input{height:%?90?%;font-size:%?32?%}[data-v-15518d3b] .uni-forms-item__label{height:%?90?%;font-size:%?32?%}[data-v-15518d3b] .uni-easyinput__placeholder-class{font-size:%?32?%}[data-v-15518d3b] .uni-select__input-placeholder{font-size:%?32?%}[data-v-15518d3b] .uni-select{height:%?90?%;font-size:%?32?%}[data-v-15518d3b] .uni-forms-item__error.msg--active{opacity:0}.uni-select__input-placeholder[data-v-15518d3b]{padding-left:%?30?%}[data-v-15518d3b] .uni-textarea-placeholder{padding-left:%?24?%}[data-v-15518d3b] .uni-textarea-textarea{padding-left:%?24?%;font-size:%?32?%}",""]),e.exports=t},1696:function(e,t,n){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var r=Object.getOwnPropertyDescriptor(e,t);if(42!==r.value||!0!==r.enumerable)return!1}return!0}},"1c59":function(e,t,n){"use strict";var a=n("6d61"),r=n("6566");a("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r)},"1da1":function(e,t,n){"use strict";function a(e,t,n,a,r,i,o){try{var c=e[i](o),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(a,r)}n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function c(e){a(o,r,i,c,u,"next",e)}function u(e){a(o,r,i,c,u,"throw",e)}c(void 0)}))}},n("d3b7")},"1de5":function(e,t,n){"use strict";e.exports=function(e,t){return t||(t={}),e=e&&e.__esModule?e.default:e,"string"!==typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},"1e25":function(e,t,n){n("cad8");var a=n("23e7"),r=n("cb4c");a({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==r},{trimEnd:r})},"20b4":function(e,t,n){var a=n("f657");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=n("4f06").default;r("a634cfa6",a,!0,{sourceMap:!1,shadowMode:!1})},"22de":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){}));var a=function(){var e=this.$createElement,t=this._self._c||e;return t("v-uni-view",{staticClass:"uni-forms"},[t("v-uni-form",[this._t("default")],2)],1)},r=[]},"257e":function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},n("d9e2"),n("d401")},"262e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,a.default)(e,t)},n("d9e2"),n("d401"),n("7a82");var a=function(e){return e&&e.__esModule?e:{default:e}}(n("b380"))},"26a5":function(e,t,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n("262e")),i=a(n("2caf")),o=a(n("c7eb")),c=a(n("1da1")),u=a(n("d4ec")),s=a(n("bee2")),l=a(n("53ca"));n("4d63"),n("c607"),n("ac1f"),n("2c3e"),n("25f0"),n("d3b7"),n("5319"),n("b64b"),n("e25e"),n("d401"),n("466d"),n("00b4"),n("2ca0"),n("c740"),n("6062"),n("3ca3"),n("ddb0"),n("99af"),n("c975"),n("14d9"),n("4de4"),n("e9c4");var d={email:/^\S+?@\S+?\.\S+?$/,idcard:/^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i")},f={int:"integer",bool:"boolean",double:"number",long:"number",password:"string"};function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=["label"];n.forEach((function(t){void 0===e[t]&&(e[t]="")}));var a=t;for(var r in e){var i=new RegExp("{"+r+"}");a=a.replace(i,e[r])}return a}var h={integer:function(e){return h.number(e)&&parseInt(e,10)===e},string:function(e){return"string"===typeof e},number:function(e){return!isNaN(e)&&"number"===typeof e},boolean:function(e){return"boolean"===typeof e},float:function(e){return h.number(e)&&!h.integer(e)},array:function(e){return Array.isArray(e)},object:function(e){return"object"===(0,l.default)(e)&&!h.array(e)},date:function(e){return e instanceof Date},timestamp:function(e){return!(!this.integer(e)||Math.abs(e).toString().length>16)},file:function(e){return"string"===typeof e.url},email:function(e){return"string"===typeof e&&!!e.match(d.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(d.url)},pattern:function(e,t){try{return new RegExp(e).test(t)}catch(n){return!1}},method:function(e){return"function"===typeof e},idcard:function(e){return"string"===typeof e&&!!e.match(d.idcard)},"url-https":function(e){return this.url(e)&&e.startsWith("https://")},"url-scheme":function(e){return e.startsWith("://")},"url-web":function(e){return!1}},m=function(){function e(t){(0,u.default)(this,e),this._message=t}return(0,s.default)(e,[{key:"validateRule",value:function(){var e=(0,c.default)((0,o.default)().mark((function e(t,n,a,r,i){var c,u,s,l,d,f,p,h,m;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(c=null,u=n.rules,s=u.findIndex((function(e){return e.required})),!(s<0)){e.next=8;break}if(null!==a&&void 0!==a){e.next=6;break}return e.abrupt("return",c);case 6:if("string"!==typeof a||a.length){e.next=8;break}return e.abrupt("return",c);case 8:if(l=this._message,void 0!==u){e.next=11;break}return e.abrupt("return",l["default"]);case 11:d=0;case 12:if(!(d-1&&(u=!0),u?null:p(e,r||n["enum"])},rangeNumber:function(e,t,n){if(!h.number(t))return p(e,e.errorMessage||n.pattern.mismatch);var a=e.minimum,r=e.maximum,i=e.exclusiveMinimum,o=e.exclusiveMaximum,c=i?t<=a:t=r:t>r;return void 0!==a&&c?p(e,e.errorMessage||n["number"][i?"exclusiveMinimum":"minimum"]):void 0!==r&&u?p(e,e.errorMessage||n["number"][o?"exclusiveMaximum":"maximum"]):void 0!==a&&void 0!==r&&(c||u)?p(e,e.errorMessage||n["number"].range):null},rangeLength:function(e,t,n){if(!h.string(t)&&!h.array(t))return p(e,e.errorMessage||n.pattern.mismatch);var a=e.minLength,r=e.maxLength,i=t.length;return void 0!==a&&ir?p(e,e.errorMessage||n["length"].maxLength):void 0!==a&&void 0!==r&&(ir)?p(e,e.errorMessage||n["length"].range):null},pattern:function(e,t,n){return h["pattern"](e.pattern,t)?null:p(e,e.errorMessage||n.pattern.mismatch)},format:function(e,t,n){var a=Object.keys(h),r=f[e.format]?f[e.format]:e.format||e.arrayType;return a.indexOf(r)>-1&&!h[r](t)?p(e,e.errorMessage||n.typeError):null},arrayTypeFormat:function(e,t,n){if(!Array.isArray(t))return p(e,e.errorMessage||n.typeError);for(var a=0;a0&&this.defItem0?"".concat(t,"(").concat(n,")"):t||"未命名".concat(a)}}};t.default=a}).call(this,n("a9ff")["default"])},"26cb":function(e,t,n){"use strict";(function(t){var n="undefined"!==typeof window?window:"undefined"!==typeof t?t:{},a=n.__VUE_DEVTOOLS_GLOBAL_HOOK__;function r(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=function(e,t){return e.filter(t)[0]}(t,(function(t){return t.original===e}));if(n)return n.copy;var a=Array.isArray(e)?[]:{};return t.push({original:e,copy:a}),Object.keys(e).forEach((function(n){a[n]=r(e[n],t)})),a}function i(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function o(e){return null!==e&&"object"===typeof e}var c=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},u={namespaced:{configurable:!0}};u.namespaced.get=function(){return!!this._rawModule.namespaced},c.prototype.addChild=function(e,t){this._children[e]=t},c.prototype.removeChild=function(e){delete this._children[e]},c.prototype.getChild=function(e){return this._children[e]},c.prototype.hasChild=function(e){return e in this._children},c.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},c.prototype.forEachChild=function(e){i(this._children,e)},c.prototype.forEachGetter=function(e){this._rawModule.getters&&i(this._rawModule.getters,e)},c.prototype.forEachAction=function(e){this._rawModule.actions&&i(this._rawModule.actions,e)},c.prototype.forEachMutation=function(e){this._rawModule.mutations&&i(this._rawModule.mutations,e)},Object.defineProperties(c.prototype,u);var s=function(e){this.register([],e,!1)};s.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},s.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},s.prototype.update=function(e){(function e(t,n,a){0;if(n.update(a),a.modules)for(var r in a.modules){if(!n.getChild(r))return void 0;e(t.concat(r),n.getChild(r),a.modules[r])}})([],this.root,e)},s.prototype.register=function(e,t,n){var a=this;void 0===n&&(n=!0);var r=new c(t,n);if(0===e.length)this.root=r;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],r)}t.modules&&i(t.modules,(function(t,r){a.register(e.concat(r),t,n)}))},s.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],a=t.getChild(n);a&&a.runtime&&t.removeChild(n)},s.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var l;var d=function(e){var t=this;void 0===e&&(e={}),!l&&"undefined"!==typeof window&&window.Vue&&b(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new s(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new l,this._makeLocalGettersCache=Object.create(null);var i=this,o=this.dispatch,c=this.commit;this.dispatch=function(e,t){return o.call(i,e,t)},this.commit=function(e,t,n){return c.call(i,e,t,n)},this.strict=r;var u=this._modules.root.state;v(this,u,[],this._modules.root),m(this,u),n.forEach((function(e){return e(t)}));var d=void 0!==e.devtools?e.devtools:l.config.devtools;d&&function(e){a&&(e._devtoolHook=a,a.emit("vuex:init",e),a.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){a.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){a.emit("vuex:action",e,t)}),{prepend:!0}))}(this)},f={state:{configurable:!0}};function p(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function h(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;v(e,n,[],e._modules.root,!0),m(e,n,t)}function m(e,t,n){var a=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,o={};i(r,(function(t,n){o[n]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var c=l.config.silent;l.config.silent=!0,e._vm=new l({data:{$$state:t},computed:o}),l.config.silent=c,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(e),a&&(n&&e._withCommit((function(){a._data.$$state=null})),l.nextTick((function(){return a.$destroy()})))}function v(e,t,n,a,r){var i=!n.length,o=e._modules.getNamespace(n);if(a.namespaced&&(e._modulesNamespaceMap[o],e._modulesNamespaceMap[o]=a),!i&&!r){var c=g(t,n.slice(0,-1)),u=n[n.length-1];e._withCommit((function(){l.set(c,u,a.state)}))}var s=a.context=function(e,t,n){var a=""===t,r={dispatch:a?e.dispatch:function(n,a,r){var i=y(n,a,r),o=i.payload,c=i.options,u=i.type;return c&&c.root||(u=t+u),e.dispatch(u,o)},commit:a?e.commit:function(n,a,r){var i=y(n,a,r),o=i.payload,c=i.options,u=i.type;c&&c.root||(u=t+u),e.commit(u,o,c)}};return Object.defineProperties(r,{getters:{get:a?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var n={},a=t.length;Object.keys(e.getters).forEach((function(r){if(r.slice(0,a)===t){var i=r.slice(a);Object.defineProperty(n,i,{get:function(){return e.getters[r]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return g(e.state,n)}}}),r}(e,o,n);a.forEachMutation((function(t,n){var a=o+n;(function(e,t,n,a){var r=e._mutations[t]||(e._mutations[t]=[]);r.push((function(t){n.call(e,a.state,t)}))})(e,a,t,s)})),a.forEachAction((function(t,n){var a=t.root?n:o+n,r=t.handler||t;(function(e,t,n,a){var r=e._actions[t]||(e._actions[t]=[]);r.push((function(t){var r=n.call(e,{dispatch:a.dispatch,commit:a.commit,getters:a.getters,state:a.state,rootGetters:e.getters,rootState:e.state},t);return function(e){return e&&"function"===typeof e.then}(r)||(r=Promise.resolve(r)),e._devtoolHook?r.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):r}))})(e,a,r,s)})),a.forEachGetter((function(t,n){var a=o+n;(function(e,t,n,a){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return n(a.state,a.getters,e.state,e.getters)}})(e,a,t,s)})),a.forEachChild((function(a,i){v(e,t,n.concat(i),a,r)}))}function g(e,t){return t.reduce((function(e,t){return e[t]}),e)}function y(e,t,n){return o(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function b(e){l&&e===l||(l=e, /*! * vuex v3.6.2 * (c) 2021 Evan You * @license MIT */ function(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:a});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[a].concat(e.init):a,n.call(this,e)}}function a(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(l))}f.state.get=function(){return this._vm._data.$$state},f.state.set=function(e){0},d.prototype.commit=function(e,t,n){var a=this,r=y(e,t,n),i=r.type,o=r.payload,c=(r.options,{type:i,payload:o}),u=this._mutations[i];u&&(this._withCommit((function(){u.forEach((function(e){e(o)}))})),this._subscribers.slice().forEach((function(e){return e(c,a.state)})))},d.prototype.dispatch=function(e,t){var n=this,a=y(e,t),r=a.type,i=a.payload,o={type:r,payload:i},c=this._actions[r];if(c){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(o,n.state)}))}catch(s){0}var u=c.length>1?Promise.all(c.map((function(e){return e(i)}))):c[0](i);return new Promise((function(e,t){u.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(o,n.state)}))}catch(s){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(o,n.state,e)}))}catch(s){0}t(e)}))}))}},d.prototype.subscribe=function(e,t){return p(e,this._subscribers,t)},d.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return p(n,this._actionSubscribers,t)},d.prototype.watch=function(e,t,n){var a=this;return this._watcherVM.$watch((function(){return e(a.state,a.getters)}),t,n)},d.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},d.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),v(this,this.state,e,this._modules.get(e),n.preserveState),m(this,this.state)},d.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=g(t.state,e.slice(0,-1));l.delete(n,e[e.length-1])})),h(this)},d.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},d.prototype[[104,111,116,85,112,100,97,116,101].map((function(e){return String.fromCharCode(e)})).join("")]=function(e){this._modules.update(e),h(this,!0)},d.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(d.prototype,f);var _=O((function(e,t){var n={};return S(t).forEach((function(t){var a=t.key,r=t.val;n[a]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var a=A(this.$store,"mapState",e);if(!a)return;t=a.context.state,n=a.context.getters}return"function"===typeof r?r.call(this,t,n):t[r]},n[a].vuex=!0})),n})),w=O((function(e,t){var n={};return S(t).forEach((function(t){var a=t.key,r=t.val;n[a]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var a=this.$store.commit;if(e){var i=A(this.$store,"mapMutations",e);if(!i)return;a=i.context.commit}return"function"===typeof r?r.apply(this,[a].concat(t)):a.apply(this.$store,[r].concat(t))}})),n})),x=O((function(e,t){var n={};return S(t).forEach((function(t){var a=t.key,r=t.val;r=e+r,n[a]=function(){if(!e||A(this.$store,"mapGetters",e))return this.$store.getters[r]},n[a].vuex=!0})),n})),k=O((function(e,t){var n={};return S(t).forEach((function(t){var a=t.key,r=t.val;n[a]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var a=this.$store.dispatch;if(e){var i=A(this.$store,"mapActions",e);if(!i)return;a=i.context.dispatch}return"function"===typeof r?r.apply(this,[a].concat(t)):a.apply(this.$store,[r].concat(t))}})),n}));function S(e){return function(e){return Array.isArray(e)||o(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function O(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function A(e,t,n){var a=e._modulesNamespaceMap[n];return a}function P(e,t,n){var a=n?e.groupCollapsed:e.group;try{a.call(e,t)}catch(r){e.log(t)}}function I(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function T(){var e=new Date;return" @ "+C(e.getHours(),2)+":"+C(e.getMinutes(),2)+":"+C(e.getSeconds(),2)+"."+C(e.getMilliseconds(),3)}function C(e,t){return function(e,t){return new Array(t+1).join(e)}("0",t-e.toString().length)+e}var E={Store:d,install:b,version:"3.6.2",mapState:_,mapMutations:w,mapGetters:x,mapActions:k,createNamespacedHelpers:function(e){return{mapState:_.bind(null,e),mapGetters:x.bind(null,e),mapMutations:w.bind(null,e),mapActions:k.bind(null,e)}},createLogger:function(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var a=e.transformer;void 0===a&&(a=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var c=e.actionTransformer;void 0===c&&(c=function(e){return e});var u=e.logMutations;void 0===u&&(u=!0);var s=e.logActions;void 0===s&&(s=!0);var l=e.logger;return void 0===l&&(l=console),function(e){var d=r(e.state);"undefined"!==typeof l&&(u&&e.subscribe((function(e,o){var c=r(o);if(n(e,d,c)){var u=T(),s=i(e),f="mutation "+e.type+u;P(l,f,t),l.log("%c prev state","color: #9E9E9E; font-weight: bold",a(d)),l.log("%c mutation","color: #03A9F4; font-weight: bold",s),l.log("%c next state","color: #4CAF50; font-weight: bold",a(c)),I(l)}d=c})),s&&e.subscribeAction((function(e,n){if(o(e,n)){var a=T(),r=c(e),i="action "+e.type+a;P(l,i,t),l.log("%c action","color: #03A9F4; font-weight: bold",r),I(l)}})))}}};e.exports=E}).call(this,n("c8ba"))},2714:function(e,t,n){var a="function"===typeof Map&&Map.prototype,r=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=a&&r&&"function"===typeof r.get?r.get:null,o=a&&Map.prototype.forEach,c="function"===typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,s=c&&u&&"function"===typeof u.get?u.get:null,l=c&&Set.prototype.forEach,d="function"===typeof WeakMap&&WeakMap.prototype,f=d?WeakMap.prototype.has:null,p="function"===typeof WeakSet&&WeakSet.prototype,h=p?WeakSet.prototype.has:null,m="function"===typeof WeakRef&&WeakRef.prototype,v=m?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,y=Object.prototype.toString,b=Function.prototype.toString,_=String.prototype.match,w=String.prototype.slice,x=String.prototype.replace,k=String.prototype.toUpperCase,S=String.prototype.toLowerCase,O=RegExp.prototype.test,A=Array.prototype.concat,P=Array.prototype.join,I=Array.prototype.slice,T=Math.floor,C="function"===typeof BigInt?BigInt.prototype.valueOf:null,E=Object.getOwnPropertySymbols,j="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,M="function"===typeof Symbol&&"object"===typeof Symbol.iterator,F="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===M||"symbol")?Symbol.toStringTag:null,L=Object.prototype.propertyIsEnumerable,R=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function D(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||O.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var a=e<0?-T(-e):T(e);if(a!==e){var r=String(a),i=w.call(t,r.length+1);return x.call(r,n,"$&_")+"."+x.call(x.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return x.call(t,n,"$&_")}var N=n(1),U=N.custom,q=V(U)?U:null;function $(e,t,n){var a="double"===(n.quoteStyle||t)?'"':"'";return a+e+a}function B(e){return x.call(String(e),/"/g,""")}function z(e){return"[object Array]"===K(e)&&(!F||!("object"===typeof e&&F in e))}function W(e){return"[object RegExp]"===K(e)&&(!F||!("object"===typeof e&&F in e))}function V(e){if(M)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!j)return!1;try{return j.call(e),!0}catch(t){}return!1}e.exports=function e(t,n,a,r){var c=n||{};if(H(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(c,"maxStringLength")&&("number"===typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!H(c,"customInspect")||c.customInspect;if("boolean"!==typeof u&&"symbol"!==u)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(c,"numericSeparator")&&"boolean"!==typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=c.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return function e(t,n){if(t.length>n.maxStringLength){var a=t.length-n.maxStringLength,r="... "+a+" more character"+(a>1?"s":"");return e(w.call(t,0,n.maxStringLength),n)+r}var i=x.call(x.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Q);return $(i,"single",n)}(t,c);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var p=String(t);return d?D(t,p):p}if("bigint"===typeof t){var m=String(t)+"n";return d?D(t,m):m}var y="undefined"===typeof c.depth?5:c.depth;if("undefined"===typeof a&&(a=0),a>=y&&y>0&&"object"===typeof t)return z(t)?"[Array]":"[Object]";var k=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=P.call(Array(e.indent+1)," ")}return{base:n,prev:P.call(Array(t+1),n)}}(c,a);if("undefined"===typeof r)r=[];else if(G(r,t)>=0)return"[Circular]";function O(t,n,i){if(n&&(r=I.call(r),r.push(n)),i){var o={depth:c.depth};return H(c,"quoteStyle")&&(o.quoteStyle=c.quoteStyle),e(t,o,a+1,r)}return e(t,c,a+1,r)}if("function"===typeof t&&!W(t)){var T=function(e){if(e.name)return e.name;var t=_.call(b.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),E=te(t,O);return"[Function"+(T?": "+T:" (anonymous)")+"]"+(E.length>0?" { "+P.call(E,", ")+" }":"")}if(V(t)){var U=M?x.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):j.call(t);return"object"!==typeof t||M?U:Y(U)}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var J="<"+S.call(String(t.nodeName)),ne=t.attributes||[],ae=0;ae",J}if(z(t)){if(0===t.length)return"[]";var re=te(t,O);return k&&!function(e){for(var t=0;t=0)return!1;return!0}(re)?"["+ee(re,k)+"]":"[ "+P.call(re,", ")+" ]"}if(function(e){return"[object Error]"===K(e)&&(!F||!("object"===typeof e&&F in e))}(t)){var ie=te(t,O);return"cause"in Error.prototype||!("cause"in t)||L.call(t,"cause")?0===ie.length?"["+String(t)+"]":"{ ["+String(t)+"] "+P.call(ie,", ")+" }":"{ ["+String(t)+"] "+P.call(A.call("[cause]: "+O(t.cause),ie),", ")+" }"}if("object"===typeof t&&u){if(q&&"function"===typeof t[q]&&N)return N(t,{depth:y-a});if("symbol"!==u&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!==typeof e)return!1;try{i.call(e);try{s.call(e)}catch(J){return!0}return e instanceof Map}catch(t){}return!1}(t)){var oe=[];return o.call(t,(function(e,n){oe.push(O(n,t,!0)+" => "+O(e,t))})),Z("Map",i.call(t),oe,k)}if(function(e){if(!s||!e||"object"!==typeof e)return!1;try{s.call(e);try{i.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var ce=[];return l.call(t,(function(e){ce.push(O(e,t))})),Z("Set",s.call(t),ce,k)}if(function(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{h.call(e,h)}catch(J){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return X("WeakMap");if(function(e){if(!h||!e||"object"!==typeof e)return!1;try{h.call(e,h);try{f.call(e,f)}catch(J){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return X("WeakSet");if(function(e){if(!v||!e||"object"!==typeof e)return!1;try{return v.call(e),!0}catch(t){}return!1}(t))return X("WeakRef");if(function(e){return"[object Number]"===K(e)&&(!F||!("object"===typeof e&&F in e))}(t))return Y(O(Number(t)));if(function(e){if(!e||"object"!==typeof e||!C)return!1;try{return C.call(e),!0}catch(t){}return!1}(t))return Y(O(C.call(t)));if(function(e){return"[object Boolean]"===K(e)&&(!F||!("object"===typeof e&&F in e))}(t))return Y(g.call(t));if(function(e){return"[object String]"===K(e)&&(!F||!("object"===typeof e&&F in e))}(t))return Y(O(String(t)));if(!function(e){return"[object Date]"===K(e)&&(!F||!("object"===typeof e&&F in e))}(t)&&!W(t)){var ue=te(t,O),se=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,le=t instanceof Object?"":"null prototype",de=!se&&F&&Object(t)===t&&F in t?w.call(K(t),8,-1):le?"Object":"",fe=se||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"",pe=fe+(de||le?"["+P.call(A.call([],de||[],le||[]),": ")+"] ":"");return 0===ue.length?pe+"{}":k?pe+"{"+ee(ue,k)+"}":pe+"{ "+P.call(ue,", ")+" }"}return String(t)};var J=Object.prototype.hasOwnProperty||function(e){return e in this};function H(e,t){return J.call(e,t)}function K(e){return y.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,a=e.length;n0?S.join(",")||null:void 0}];else if(u(p))M=p;else{var L=Object.keys(S);M=v?L.sort(v):L}for(var R=o&&u(S)&&1===S.length?n+"[]":n,D=0;D0?x+w:""}},4328:function(e,t,n){"use strict";var a=n("4127"),r=n("9e6a"),i=n("b313");e.exports={formats:i,parse:r,stringify:a}},4478:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=o,n("4ae1"),n("d3b7"),n("f8c9"),n("14d9");var a=i(n("b380")),r=i(n("d967"));function i(e){return e&&e.__esModule?e:{default:e}}function o(e,n,i){return(0,r.default)()?t.default=o=Reflect.construct.bind():t.default=o=function(e,t,n){var r=[null];r.push.apply(r,t);var i=Function.bind.apply(e,r),o=new i;return n&&(0,a.default)(o,n.prototype),o},o.apply(null,arguments)}},"4bb9":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}));var a={uniIcons:n("b6e1").default},r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"uni-stat__select"},[e.label?n("span",{staticClass:"uni-label-text hide-on-phone"},[e._v(e._s(e.label+":"))]):e._e(),n("v-uni-view",{staticClass:"uni-stat-box",class:{"uni-stat__actived":e.current}},[n("v-uni-view",{staticClass:"uni-select",class:{"uni-select--disabled":e.disabled}},[n("v-uni-view",{staticClass:"uni-select__input-box",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toggleSelector.apply(void 0,arguments)}}},[e.current?n("v-uni-view",{staticClass:"uni-select__input-text"},[e._v(e._s(e.current))]):n("v-uni-view",{staticClass:"uni-select__input-text uni-select__input-placeholder"},[e._v(e._s(e.typePlaceholder))]),e.current&&e.clear?n("uni-icons",{attrs:{type:"clear",color:"#c0c4cc",size:"24"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.clearVal.apply(void 0,arguments)}}}):n("uni-icons",{attrs:{type:e.showSelector?"top":"bottom",size:"14",color:"#999"}})],1),e.showSelector?n("v-uni-view",{staticClass:"uni-select--mask",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toggleSelector.apply(void 0,arguments)}}}):e._e(),e.showSelector?n("v-uni-view",{staticClass:"uni-select__selector"},[n("v-uni-view",{staticClass:"uni-popper__arrow"}),n("v-uni-scroll-view",{staticClass:"uni-select__selector-scroll",attrs:{"scroll-y":"true"}},[0===e.mixinDatacomResData.length?n("v-uni-view",{staticClass:"uni-select__selector-empty"},[n("v-uni-text",[e._v(e._s(e.emptyTips))])],1):e._l(e.mixinDatacomResData,(function(t,a){return n("v-uni-view",{key:a,staticClass:"uni-select__selector-item",on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.change(t)}}},[n("v-uni-text",{class:{"uni-select__selector__disabled":t.disable}},[e._v(e._s(e.formatItemName(t)))])],1)}))],2)],1):e._e()],1)],1)],1)},i=[]},"4dbe":function(e,t,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n("53ca")),i=a(n("c7eb")),o=a(n("ade3")),c=a(n("1da1"));n("a9e3"),n("14d9"),n("d3b7"),n("159b"),n("a434");var u={name:"uniFormsItem",options:{virtualHost:!0},provide:function(){return{uniFormItem:this}},inject:{form:{from:"uniForm",default:null}},props:{rules:{type:Array,default:function(){return null}},name:{type:[String,Array],default:""},required:{type:Boolean,default:!1},label:{type:String,default:""},labelWidth:{type:[String,Number],default:""},labelAlign:{type:String,default:""},errorMessage:{type:[String,Boolean],default:""},leftIcon:String,iconColor:{type:String,default:"#606266"}},data:function(){return{errMsg:"",isRequired:!1,userRules:null,localLabelAlign:"left",localLabelWidth:"65px",localLabelPos:"left",border:!1,isFirstBorder:!1}},computed:{msg:function(){return this.errorMessage||this.errMsg}},watch:{"form.formRules":function(e){this.init()},"form.labelWidth":function(e){this.localLabelWidth=this._labelWidthUnit(e)},"form.labelPosition":function(e){this.localLabelPos=this._labelPosition()},"form.labelAlign":function(e){}},created:function(){var e=this;this.init(!0),this.name&&this.form&&this.$watch((function(){var t=e.form._getDataValue(e.name,e.form.localData);return t}),(function(t,n){var a=e.form._isEqual(t,n);if(!a){var r=e.itemSetValue(t);e.onFieldChange(r,!1)}}),{immediate:!1})},destroyed:function(){this.__isUnmounted||this.unInit()},methods:{setRules:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.userRules=e,this.init(!1)},setValue:function(){},onFieldChange:function(e){var t=arguments,n=this;return(0,c.default)((0,i.default)().mark((function a(){var r,c,u,s,l,d,f,p,h,m,v,g;return(0,i.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(r=!(t.length>1&&void 0!==t[1])||t[1],c=n.form,u=c.formData,c.localData,s=c.errShowType,l=c.validateCheck,d=c.validateTrigger,f=c._isRequiredField,p=c._realName,h=p(n.name),e||(e=n.form.formData[h]),m=n.itemRules.rules&&n.itemRules.rules.length,n.validator&&m&&0!==m){a.next=7;break}return a.abrupt("return");case 7:if(v=f(n.itemRules.rules||[]),g=null,"bind"!==d&&!r){a.next=18;break}return a.next=12,n.validator.validateUpdate((0,o.default)({},h,e),u);case 12:g=a.sent,v||void 0!==e&&""!==e||(g=null),g&&g.errorMessage?("undertext"===s&&(n.errMsg=g?g.errorMessage:""),"toast"===s&&uni.showToast({title:g.errorMessage||"校验错误",icon:"none"}),"modal"===s&&uni.showModal({title:"提示",content:g.errorMessage||"校验错误"})):n.errMsg="",l(g||null),a.next=19;break;case 18:n.errMsg="";case 19:return a.abrupt("return",g||null);case 20:case"end":return a.stop()}}),a)})))()},init:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.form||{},n=t.validator,a=t.formRules,i=t.childrens,o=(t.formData,t.localData),c=t._realName,u=t.labelWidth,s=t._getDataValue;t._setDataValue;if(this.localLabelAlign=this._justifyContent(),this.localLabelWidth=this._labelWidthUnit(u),this.localLabelPos=this._labelPosition(),this.isRequired=this.required,this.form&&e&&i.push(this),n&&a){this.form.isFirstBorder||(this.form.isFirstBorder=!0,this.isFirstBorder=!0),this.group&&(this.group.isFirstBorder||(this.group.isFirstBorder=!0,this.isFirstBorder=!0)),this.border=this.form.border;var l=c(this.name),d=this.userRules||this.rules;"object"===(0,r.default)(a)&&d&&(a[l]={rules:d},n.updateSchema(a));var f=a[l]||{};this.itemRules=f,this.validator=n,this.itemSetValue(s(this.name,o)),this.isRequired=this._isRequired()}},unInit:function(){var e=this;if(this.form){var t=this.form,n=t.childrens,a=t.formData,r=t._realName;n.forEach((function(t,n){t===e&&(e.form.childrens.splice(n,1),delete a[r(t.name)])}))}},itemSetValue:function(e){var t=this.form._realName(this.name),n=this.itemRules.rules||[],a=this.form._getValue(t,e,n);return this.form._setDataValue(t,this.form.formData,a),a},clearValidate:function(){this.errMsg=""},_isRequired:function(){return this.required},_justifyContent:function(){if(this.form){var e=this.form.labelAlign,t=this.labelAlign?this.labelAlign:e;if("left"===t)return"flex-start";if("center"===t)return"center";if("right"===t)return"flex-end"}return"flex-start"},_labelWidthUnit:function(e){return this.num2px(this.labelWidth?this.labelWidth:e||(this.label?65:"auto"))},_labelPosition:function(){return this.form&&this.form.labelPosition||"left"},isTrigger:function(e,t,n){return"submit"!==e&&e?"bind":void 0===e?"bind"!==t?t?"submit":""===n?"bind":"submit":"bind":"submit"},num2px:function(e){return"number"===typeof e?"".concat(e,"px"):e}}};t.default=u},"4ec9":function(e,t,n){n("6f48")},"4fad":function(e,t,n){var a=n("d039"),r=n("861d"),i=n("c6b6"),o=n("d86b"),c=Object.isExtensible,u=a((function(){c(1)}));e.exports=u||o?function(e){return!!r(e)&&((!o||"ArrayBuffer"!=i(e))&&(!c||c(e)))}:c},5156:function(e,t,n){"use strict";var a="undefined"!==typeof Symbol&&Symbol,r=n("1696");e.exports=function(){return"function"===typeof a&&("function"===typeof Symbol&&("symbol"===typeof a("foo")&&("symbol"===typeof Symbol("bar")&&r())))}},5377:function(e,t,n){var a=n("da84"),r=n("83ab"),i=n("edd0"),o=n("ad6d"),c=n("d039"),u=a.RegExp,s=u.prototype,l=r&&c((function(){var e=!0;try{u(".","d")}catch(l){e=!1}var t={},n="",a=e?"dgimsy":"gimsy",r=function(e,a){Object.defineProperty(t,e,{get:function(){return n+=a,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in e&&(i.hasIndices="d"),i)r(o,i[o]);var c=Object.getOwnPropertyDescriptor(s,"flags").get.call(t);return c!==a||n!==a}));l&&i(s,"flags",{configurable:!0,get:o})},5402:function(e,t,n){"use strict";var a=n("00ce"),r=n("545e"),i=n("2714"),o=a("%TypeError%"),c=a("%WeakMap%",!0),u=a("%Map%",!0),s=r("WeakMap.prototype.get",!0),l=r("WeakMap.prototype.set",!0),d=r("WeakMap.prototype.has",!0),f=r("Map.prototype.get",!0),p=r("Map.prototype.set",!0),h=r("Map.prototype.has",!0),m=function(e,t){for(var n,a=e;null!==(n=a.next);a=n)if(n.key===t)return a.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,a={assert:function(e){if(!a.has(e))throw new o("Side channel does not contain "+i(e))},get:function(a){if(c&&a&&("object"===typeof a||"function"===typeof a)){if(e)return s(e,a)}else if(u){if(t)return f(t,a)}else if(n)return function(e,t){var n=m(e,t);return n&&n.value}(n,a)},has:function(a){if(c&&a&&("object"===typeof a||"function"===typeof a)){if(e)return d(e,a)}else if(u){if(t)return h(t,a)}else if(n)return function(e,t){return!!m(e,t)}(n,a);return!1},set:function(a,r){c&&a&&("object"===typeof a||"function"===typeof a)?(e||(e=new c),l(e,a,r)):u?(t||(t=new u),p(t,a,r)):(n||(n={key:{},next:null}),function(e,t,n){var a=m(e,t);a?a.value=n:e.next={key:t,next:e.next,value:n}}(n,a,r))}};return a}},"545e":function(e,t,n){"use strict";var a=n("00ce"),r=n("3eb1"),i=r(a("String.prototype.indexOf"));e.exports=function(e,t){var n=a(e,!!t);return"function"===typeof n&&i(e,".prototype.")>-1?r(n):n}},"5b25":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,'@charset "UTF-8";\n/* 水平间距 */\n/* 水平间距 */.uni-easyinput[data-v-16602132]{width:100%;flex:1;position:relative;text-align:left;color:#333;font-size:14px}.uni-easyinput__content[data-v-16602132]{flex:1;width:100%;display:flex;box-sizing:border-box;flex-direction:row;align-items:center;border-color:#fff;transition-property:border-color;transition-duration:.3s}.uni-easyinput__content-input[data-v-16602132]{width:auto;position:relative;overflow:hidden;flex:1;line-height:1;font-size:14px;height:35px}.uni-easyinput__placeholder-class[data-v-16602132]{color:#999;font-size:12px}.is-textarea[data-v-16602132]{align-items:flex-start}.is-textarea-icon[data-v-16602132]{margin-top:5px}.uni-easyinput__content-textarea[data-v-16602132]{position:relative;overflow:hidden;flex:1;line-height:1.5;font-size:14px;margin:6px;margin-left:0;height:80px;min-height:80px;min-height:80px;width:auto}.input-padding[data-v-16602132]{padding-left:10px}.content-clear-icon[data-v-16602132]{padding:0 5px}.label-icon[data-v-16602132]{margin-right:5px;margin-top:-1px}.is-input-border[data-v-16602132]{display:flex;box-sizing:border-box;flex-direction:row;align-items:center;border:1px solid #f0f0f0;border-radius:4px}.uni-error-message[data-v-16602132]{position:absolute;bottom:-17px;left:0;line-height:12px;color:#e43d33;font-size:12px;text-align:left}.uni-error-msg--boeder[data-v-16602132]{position:relative;bottom:0;line-height:22px}.is-input-error-border[data-v-16602132]{border-color:#e43d33}.is-input-error-border .uni-easyinput__placeholder-class[data-v-16602132]{color:#f29e99}.uni-easyinput--border[data-v-16602132]{margin-bottom:0;padding:10px 15px;border-top:1px #eee solid}.uni-easyinput-error[data-v-16602132]{padding-bottom:0}.is-first-border[data-v-16602132]{border:none}.is-disabled[data-v-16602132]{background-color:#f7f6f6;color:#d5d5d5}.is-disabled .uni-easyinput__placeholder-class[data-v-16602132]{color:#d5d5d5;font-size:12px}',""]),e.exports=t},6005:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(Array.isArray(e))return(0,a.default)(e)};var a=function(e){return e&&e.__esModule?e:{default:e}}(n("6b75"))},6062:function(e,t,n){n("1c59")},6566:function(e,t,n){"use strict";var a=n("9bf2").f,r=n("7c73"),i=n("6964"),o=n("0366"),c=n("19aa"),u=n("7234"),s=n("2266"),l=n("c6d2"),d=n("4754"),f=n("2626"),p=n("83ab"),h=n("f183").fastKey,m=n("69f3"),v=m.set,g=m.getterFor;e.exports={getConstructor:function(e,t,n,l){var d=e((function(e,a){c(e,f),v(e,{type:t,index:r(null),first:void 0,last:void 0,size:0}),p||(e.size=0),u(a)||s(a,e[l],{that:e,AS_ENTRIES:n})})),f=d.prototype,m=g(t),y=function(e,t,n){var a,r,i=m(e),o=b(e,t);return o?o.value=n:(i.last=o={index:r=h(t,!0),key:t,value:n,previous:a=i.last,next:void 0,removed:!1},i.first||(i.first=o),a&&(a.next=o),p?i.size++:e.size++,"F"!==r&&(i.index[r]=o)),e},b=function(e,t){var n,a=m(e),r=h(t);if("F"!==r)return a.index[r];for(n=a.first;n;n=n.next)if(n.key==t)return n};return i(f,{clear:function(){var e=m(this),t=e.index,n=e.first;while(n)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,p?e.size=0:this.size=0},delete:function(e){var t=m(this),n=b(this,e);if(n){var a=n.next,r=n.previous;delete t.index[n.index],n.removed=!0,r&&(r.next=a),a&&(a.previous=r),t.first==n&&(t.first=a),t.last==n&&(t.last=r),p?t.size--:this.size--}return!!n},forEach:function(e){var t,n=m(this),a=o(e,arguments.length>1?arguments[1]:void 0);while(t=t?t.next:n.first){a(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!b(this,e)}}),i(f,n?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),p&&a(f,"size",{get:function(){return m(this).size}}),d},setStrong:function(e,t,n){var a=t+" Iterator",r=g(t),i=g(a);l(e,t,(function(e,t){v(this,{type:a,target:e,state:r(e),kind:t,last:void 0})}),(function(){var e=i(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?d("keys"==t?n.key:"values"==t?n.value:[n.key,n.value],!1):(e.target=void 0,d(void 0,!0))}),n?"entries":"values",!n,!0),f(t)}}},"66e6":function(e,t,n){e.exports=n.p+"static/fonts/uniicons.b6d3756e.ttf"},"67b6":function(e,t,n){"use strict";var a=n("58a8").start,r=n("c8d2");e.exports=r("trimStart")?function(){return a(this)}:"".trimStart},6888:function(e,t,n){"use strict";n.r(t);var a=n("26c9"),r=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(i);t["default"]=r.a},"688e":function(e,t,n){"use strict";var a="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,i=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!==typeof t||"[object Function]"!==i.call(t))throw new TypeError(a+t);for(var n,o=r.call(arguments,1),c=function(){if(this instanceof n){var a=t.apply(this,o.concat(r.call(arguments)));return Object(a)===a?a:this}return t.apply(e,o.concat(r.call(arguments)))},u=Math.max(0,t.length-o.length),s=[],l=0;l/gi,'

').replace(/",uni.getStorageSync("h5_address"));var n=uni.getStorageSync("h5_address")+"/getwxcode.html?appid=wx63ae87efa44fc305&scope=snsapi_userinfo&state=hello-world&redirect_uri="+encodeURI(window.location.href);window.location.replace(n)}},payorder:function(e,t){var n=this,a=e;n.isWeiXin()?n.postJson(a.url,n.combineFromParamForNull(a.parms)).then((function(e){uni.hideLoading(),1==e.status?(uni.showLoading({title:"正在支付",mask:!0}),"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",n.onBridgeReady(e.data,t),!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",n.onBridgeReady(e.data,t)),document.attachEvent("onWeixinJSBridgeReady",n.onBridgeReady(e.data,t))):n.onBridgeReady(e.data,t)):uni.showModal({title:"",content:"付款失败",showCancel:!1})}),(function(e){uni.hideLoading(),uni.showToast({title:"付款失败",icon:"none"})})):utils.isAlipay()?(parms.payType=2,utils.postJson(url,utils.combineFromParamForNull(parms),{}).then((function(e){uni.hideLoading(),"0"==e.status?("string"===typeof e.data?n.tradeNO=JSON.parse(e.data).tradeNO:n.tradeNO=e.data.tradeNo,e.data.code_url||(uni.showLoading({title:"正在跳转支付宝支付",mask:!0}),window.AlipayJSBridge?n.onAliBridgeReady&&n.onAliBridgeReady():document.addEventListener("AlipayJSBridgeReady",n.onAliBridgeReady,!1))):(n.$api.msg(e.msg),uni.showModal({title:"",content:"付款失败",showCancel:!1}))}),(function(e){uni.hideLoading(),n.$api.msg(e)}))):alert("请在支付宝或者微信中扫码")},onAliBridgeReady:function(){AlipayJSBridge.call("tradePay",{tradeNO:this.tradeNO},(function(e){9e3==e.resultCode?uni.redirectTo({url:"/pages/shopSuccess/shopSuccess"}):uni.showModal({title:"",content:"付款失败",showCancel:!1})}))},appendParams:function(e,t){if(t){var n=e.split("#")[0],a=e.split("#")[1];for(var r in t){var i=t[r];if(void 0!==i){var o=r+"="+i;if(n.indexOf("?")>0){var c=new RegExp("^"+r+"=[-%.!~*'()\\w]*","g");c.test(n)?n=n.replace(c,o):n+="&"+o}else n+="?"+o}}e=a?n+"#"+a:n}return e},onBridgeReady:function(e,t){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:e.appId,nonceStr:e.nonceStr,package:e.package,paySign:e.paySign,signType:e.signType,timeStamp:e.timeStamp},(function(e){alert(JSON.stringify(e)),uni.hideLoading(),"get_brand_wcpay_request:ok"==e.err_msg?t():("get_brand_wcpay_request:cancel"==e.err_msg||e.err_msg,uni.showModal({title:"",content:"付款失败",showCancel:!1}))}))},checkphone:function(e){return!(!e||!/^(((14[0-9]{1})|(16[0-9]{1})|(17[0-9]{1})|(13[0-9]{1})|(19[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/.test(e))},checkNumber:function(e){return!(!e||!/(^[1-9]\d*$)/.test(e))},checkMoney:function(e){return!(!e||!/(^[1-9]{1}[0-9]*$)|(^[0-9]*\.[0-9]{1,2}$)/.test(e))},checkstr:function(e){return!(!e||!/\S/.test(e))},checkPwd:function(e){return!(!e||!/^(?![0-9]+$)(?![a-z]+$)(?![A-Z]+$)(?![,\!@$.#%\'\+\*\-:;^_`]+$)[,\!@$.#%\'\+\*\-:;^_`0-9A-Za-z]{6,16}$/.test(e))},Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";this.encode=function(n){var a,r,i,o,c,u,s,l="",d=0;n=t(n);while(d>2,c=(3&a)<<4|r>>4,u=(15&r)<<2|i>>6,s=63&i,isNaN(r)?u=s=64:isNaN(i)&&(s=64),l=l+e.charAt(o)+e.charAt(c)+e.charAt(u)+e.charAt(s);return l},this.decode=function(t){var a,r,i,o,c,u,s,l="",d=0;if(void 0!=t&&null!=t){t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(d>4,r=(15&c)<<4|u>>2,i=(3&u)<<6|s,l+=String.fromCharCode(a),64!=u&&(l+=String.fromCharCode(r)),64!=s&&(l+=String.fromCharCode(i));return l=n(l),l}};var t=function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n127&&a<2048?(t+=String.fromCharCode(a>>6|192),t+=String.fromCharCode(63&a|128)):(t+=String.fromCharCode(a>>12|224),t+=String.fromCharCode(a>>6&63|128),t+=String.fromCharCode(63&a|128))}return t},n=function(e){var t="",n=0,a=r=0,r=0,i=0;while(n191&&a<224?(r=e.charCodeAt(n+1),t+=String.fromCharCode((31&a)<<6|63&r),n+=2):(r=e.charCodeAt(n+1),i=e.charCodeAt(n+2),t+=String.fromCharCode((15&a)<<12|(63&r)<<6|63&i),n+=3);return t}},promisify:function(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i-1?e.split(","):e},s=function(e,t,n,a){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,c=n.depth>0&&/(\[[^[\]]*])/.exec(i),s=c?i.slice(0,c.index):i,l=[];if(s){if(!n.plainObjects&&r.call(Object.prototype,s)&&!n.allowPrototypes)return;l.push(s)}var d=0;while(n.depth>0&&null!==(c=o.exec(i))&&d=0;--i){var o,c=e[i];if("[]"===c&&n.parseArrays)o=[].concat(r);else{o=n.plainObjects?Object.create(null):{};var s="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,l=parseInt(s,10);n.parseArrays||""!==s?!isNaN(l)&&c!==s&&String(l)===s&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(o=[],o[l]=r):"__proto__"!==s&&(o[s]=r):o={0:r}}r=o}return r}(l,t,n,a)}};e.exports=function(e,t){var n=function(e){if(!e)return o;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?o.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?o.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:o.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:o.comma,decoder:"function"===typeof e.decoder?e.decoder:o.decoder,delimiter:"string"===typeof e.delimiter||a.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:o.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:o.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling}}(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var l="string"===typeof e?function(e,t){var n,s={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=l.split(t.delimiter,d),p=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(v=i(v)?[v]:v),r.call(s,m)?s[m]=a.combine(s[m],v):s[m]=v}return s}(e,n):e,d=n.plainObjects?Object.create(null):{},f=Object.keys(l),p=0;p1&&void 0!==arguments[1]?arguments[1]:"both";return"both"===t?e.trim():"left"===t?e.trimLeft():"right"===t?e.trimRight():"start"===t?e.trimStart():"end"===t?e.trimEnd():"all"===t?e.replace(/\s+/g,""):e}}};t.default=r},a45e:function(e,t,n){"use strict";n.r(t);var a=n("3df3"),r=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(i);t["default"]=r.a},a9ff:function(e,t,n){"use strict";(function(e){var a=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n("257e")),i=a(n("3835")),o=a(n("53ca")),c=a(n("2909")),u=a(n("b85c")),s=a(n("c7eb")),l=a(n("1da1")),d=a(n("262e")),f=a(n("2caf")),p=a(n("9072")),h=a(n("5530")),m=a(n("d4ec")),v=a(n("bee2"));n("6c57"),n("d9e2"),n("d401"),n("d3b7"),n("25f0"),n("fb6a"),n("14d9"),n("e25e"),n("99af"),n("a434"),n("c975"),n("159b"),n("b64b"),n("13d5"),n("caad"),n("2532"),n("4e82"),n("ac1f"),n("e9c4"),n("498a"),n("00b4"),n("d81d"),n("7a82"),n("ddb0"),n("841c"),n("a9e3"),n("4d63"),n("c607"),n("2c3e"),n("5319"),n("ace4"),n("5cc6"),n("907a"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("986a"),n("1d02"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("b39a"),n("72f7"),n("a4d3"),n("e01a"),n("aff5"),n("7db0"),n("466d"),n("5377"),n("26e9"),n("f4b3"),n("bf19"),n("4de4"),n("a630"),n("3ca3"),n("81b2"),n("0eb6"),n("b7ef"),n("8bd4"),n("baa5");var g=n("37dc"),y=a(n("3fc9"));function b(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e||"undefined"!=typeof self&&self;var _=b((function(e,t){var n;e.exports=(n=n||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),a={},r=a.lib={},i=r.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},o=r.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,a=this.sigBytes,r=e.sigBytes;if(this.clamp(),a%4)for(var i=0;i>>2]>>>24-i%4*8&255;t[a+i>>>2]|=o<<24-(a+i)%4*8}else for(i=0;i>>2]=n[i>>>2];return this.sigBytes+=r,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=i.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,a=[],r=function(t){t=t;var n=987654321,a=4294967295;return function(){var r=((n=36969*(65535&n)+(n>>16)&a)<<16)+(t=18e3*(65535&t)+(t>>16)&a)&a;return r/=4294967296,(r+=.5)*(e.random()>.5?1:-1)}},i=0;i>>2]>>>24-r%4*8&255;a.push((i>>>4).toString(16)),a.push((15&i).toString(16))}return a.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a>>3]|=parseInt(e.substr(a,2),16)<<24-a%8*4;return new o.init(n,t/2)}},s=c.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,a=[],r=0;r>>2]>>>24-r%4*8&255;a.push(String.fromCharCode(i))}return a.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a>>2]|=(255&e.charCodeAt(a))<<24-a%4*8;return new o.init(n,t)}},l=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(s.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return s.parse(unescape(encodeURIComponent(e)))}},d=r.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,a=n.words,r=n.sigBytes,i=this.blockSize,c=r/(4*i),u=(c=t?e.ceil(c):e.max((0|c)-this._minBufferSize,0))*i,s=e.min(4*u,r);if(u){for(var l=0;l>>24)|4278255360&(r<<24|r>>>8)}var i=this._hash.words,o=e[t+0],u=e[t+1],p=e[t+2],h=e[t+3],m=e[t+4],v=e[t+5],g=e[t+6],y=e[t+7],b=e[t+8],_=e[t+9],w=e[t+10],x=e[t+11],k=e[t+12],S=e[t+13],O=e[t+14],A=e[t+15],P=i[0],I=i[1],T=i[2],C=i[3];P=s(P,I,T,C,o,7,c[0]),C=s(C,P,I,T,u,12,c[1]),T=s(T,C,P,I,p,17,c[2]),I=s(I,T,C,P,h,22,c[3]),P=s(P,I,T,C,m,7,c[4]),C=s(C,P,I,T,v,12,c[5]),T=s(T,C,P,I,g,17,c[6]),I=s(I,T,C,P,y,22,c[7]),P=s(P,I,T,C,b,7,c[8]),C=s(C,P,I,T,_,12,c[9]),T=s(T,C,P,I,w,17,c[10]),I=s(I,T,C,P,x,22,c[11]),P=s(P,I,T,C,k,7,c[12]),C=s(C,P,I,T,S,12,c[13]),T=s(T,C,P,I,O,17,c[14]),P=l(P,I=s(I,T,C,P,A,22,c[15]),T,C,u,5,c[16]),C=l(C,P,I,T,g,9,c[17]),T=l(T,C,P,I,x,14,c[18]),I=l(I,T,C,P,o,20,c[19]),P=l(P,I,T,C,v,5,c[20]),C=l(C,P,I,T,w,9,c[21]),T=l(T,C,P,I,A,14,c[22]),I=l(I,T,C,P,m,20,c[23]),P=l(P,I,T,C,_,5,c[24]),C=l(C,P,I,T,O,9,c[25]),T=l(T,C,P,I,h,14,c[26]),I=l(I,T,C,P,b,20,c[27]),P=l(P,I,T,C,S,5,c[28]),C=l(C,P,I,T,p,9,c[29]),T=l(T,C,P,I,y,14,c[30]),P=d(P,I=l(I,T,C,P,k,20,c[31]),T,C,v,4,c[32]),C=d(C,P,I,T,b,11,c[33]),T=d(T,C,P,I,x,16,c[34]),I=d(I,T,C,P,O,23,c[35]),P=d(P,I,T,C,u,4,c[36]),C=d(C,P,I,T,m,11,c[37]),T=d(T,C,P,I,y,16,c[38]),I=d(I,T,C,P,w,23,c[39]),P=d(P,I,T,C,S,4,c[40]),C=d(C,P,I,T,o,11,c[41]),T=d(T,C,P,I,h,16,c[42]),I=d(I,T,C,P,g,23,c[43]),P=d(P,I,T,C,_,4,c[44]),C=d(C,P,I,T,k,11,c[45]),T=d(T,C,P,I,A,16,c[46]),P=f(P,I=d(I,T,C,P,p,23,c[47]),T,C,o,6,c[48]),C=f(C,P,I,T,y,10,c[49]),T=f(T,C,P,I,O,15,c[50]),I=f(I,T,C,P,v,21,c[51]),P=f(P,I,T,C,k,6,c[52]),C=f(C,P,I,T,h,10,c[53]),T=f(T,C,P,I,w,15,c[54]),I=f(I,T,C,P,u,21,c[55]),P=f(P,I,T,C,b,6,c[56]),C=f(C,P,I,T,A,10,c[57]),T=f(T,C,P,I,g,15,c[58]),I=f(I,T,C,P,S,21,c[59]),P=f(P,I,T,C,m,6,c[60]),C=f(C,P,I,T,x,10,c[61]),T=f(T,C,P,I,p,15,c[62]),I=f(I,T,C,P,_,21,c[63]),i[0]=i[0]+P|0,i[1]=i[1]+I|0,i[2]=i[2]+T|0,i[3]=i[3]+C|0},_doFinalize:function(){var t=this._data,n=t.words,a=8*this._nDataBytes,r=8*t.sigBytes;n[r>>>5]|=128<<24-r%32;var i=e.floor(a/4294967296),o=a;n[15+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t.sigBytes=4*(n.length+1),this._process();for(var c=this._hash,u=c.words,s=0;s<4;s++){var l=u[s];u[s]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return c},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function s(e,t,n,a,r,i,o){var c=e+(t&n|~t&a)+r+o;return(c<>>32-i)+t}function l(e,t,n,a,r,i,o){var c=e+(t&a|n&~a)+r+o;return(c<>>32-i)+t}function d(e,t,n,a,r,i,o){var c=e+(t^n^a)+r+o;return(c<>>32-i)+t}function f(e,t,n,a,r,i,o){var c=e+(n^(t|~a))+r+o;return(c<>>32-i)+t}t.MD5=i._createHelper(u),t.HmacMD5=i._createHmacHelper(u)}(Math),n.MD5)})),b((function(e,t){var n;e.exports=(n=w,void function(){var e=n,t=e.lib.Base,a=e.enc.Utf8;e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=a.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),o=this._iKey=t.clone(),c=i.words,u=o.words,s=0;s>>6-o%4*2;r[i>>>2]|=(c|u)<<24-i%4*8,i++}return t.create(r,i)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,a=this._map;e.clamp();for(var r=[],i=0;i>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,c=0;c<4&&i+.75*c>>6*(3-c)&63));var u=a.charAt(64);if(u)for(;r.length%4;)r.push(u);return r.join("")},parse:function(e){var t=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=t.createPromise,a=t.retryRule,r=void 0===a?F:a;(0,m.default)(this,e),this.createPromise=n,this.status=null,this.promise=null,this.retryRule=r}return(0,v.default)(e,[{key:"needRetry",get:function(){if(!this.status)return!0;switch(this.retryRule){case F:return this.status===T;case L:return this.status!==P}}},{key:"exec",value:function(){var e=this;return this.needRetry?(this.status=P,this.promise=this.createPromise().then((function(t){return e.status=I,Promise.resolve(t)}),(function(t){return e.status=T,Promise.reject(t)})),this.promise):this.promise}}]),e}();function D(e){return function(t){return new Promise((function(n,a){uni[e]((0,h.default)((0,h.default)({},t),{},{success:function(e){n(e)},fail:function(e){a(e)}}))}))}}function N(e){return e&&"string"==typeof e?JSON.parse(e):e}var U=N([]),q="web",$=(N(void 0),N([])||[]);try{(n("e891").default||n("e891")).appid}catch(Qn){}var B={};function z(e){var t,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=B,n=e,Object.prototype.hasOwnProperty.call(t,n)||(B[e]=a),B[e]}"app"===q&&(B=uni._globalUniCloudObj?uni._globalUniCloudObj:uni._globalUniCloudObj={});var W=["invoke","success","fail","complete"],V=z("_globalUniCloudInterceptor");function J(e,t){V[e]||(V[e]={}),E(t)&&Object.keys(t).forEach((function(n){W.indexOf(n)>-1&&function(e,t,n){var a=V[e][t];a||(a=V[e][t]=[]),-1===a.indexOf(n)&&j(n)&&a.push(n)}(e,n,t[n])}))}function H(e,t){V[e]||(V[e]={}),E(t)?Object.keys(t).forEach((function(n){W.indexOf(n)>-1&&function(e,t,n){var a=V[e][t];if(a){var r=a.indexOf(n);r>-1&&a.splice(r,1)}}(e,n,t[n])})):delete V[e]}function K(e,t){return e&&0!==e.length?e.reduce((function(e,n){return e.then((function(){return n(t)}))}),Promise.resolve()):Promise.resolve()}function G(e,t){return V[e]&&V[e][t]||[]}function Q(e){J("callObject",e)}var Y=z("_globalUniCloudListener"),X="response",Z="needLogin",ee="refreshToken",te="clientdb",ne="cloudfunction",ae="cloudobject";function re(e){return Y[e]||(Y[e]=[]),Y[e]}function ie(e,t){var n=re(e);n.includes(t)||n.push(t)}function oe(e,t){var n=re(e),a=n.indexOf(t);-1!==a&&n.splice(a,1)}function ce(e,t){for(var n=re(e),a=0;a0&&void 0!==arguments[0]?arguments[0]: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}((0,p.default)(Error)),me={request:function(e){return uni.request(e)},uploadFile:function(e){return uni.uploadFile(e)},setStorageSync:function(e,t){return uni.setStorageSync(e,t)},getStorageSync:function(e){return uni.getStorageSync(e)},removeStorageSync:function(e){return uni.removeStorageSync(e)},clearStorageSync:function(){return uni.clearStorageSync()}};function ve(){return{token:me.getStorageSync("uni_id_token")||me.getStorageSync("uniIdToken"),tokenExpired:me.getStorageSync("uni_id_token_expired")}}function ge(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.token,n=e.tokenExpired;t&&me.setStorageSync("uni_id_token",t),n&&me.setStorageSync("uni_id_token_expired",n)}function ye(){return fe||(fe=uni.getSystemInfoSync()),fe}function be(){var e=uni.getLocale&&uni.getLocale()||"en";if(pe)return(0,h.default)((0,h.default)({},pe),{},{locale:e,LOCALE:e});for(var t=ye(),n=t.deviceId,a=t.osName,r=t.uniPlatform,i=t.appId,o=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"],c=0;c-1)return;var n=uni.getLaunchOptionsSync(),a=n.scene,r=n.channel;e=r,t=a}}catch(e){}return{channel:e,scene:t}}()),t),(0,h.default)((0,h.default)({},pe),{},{locale:e,LOCALE:e})}var _e,we={sign:function(e,t){var n="";return Object.keys(e).sort().forEach((function(t){e[t]&&(n=n+"&"+t+"="+e[t])})),n=n.slice(1),x(n,t).toString()},wrappedRequest:function(e,t){return new Promise((function(n,a){t(Object.assign(e,{complete:function(e){e||(e={});var t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400)return a(new he({code:"SYS_ERR",message:e.errMsg||"request:fail",requestId:t}));var r=e.data;if(r.error)return a(new he({code:r.error.code,message:r.error.message,requestId:t}));r.result=r.data,r.requestId=t,delete r.data,n(r)}}))}))},toBase64:function(e){return S.stringify(k.parse(e))}},xe={"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},ke=(0,g.initVueI18n)({"zh-Hans":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},"zh-Hant":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},en:xe,fr:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},es:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},ja:xe},"zh-Hans"),Se=ke.t,Oe=function(){function e(t){var n=this;(0,m.default)(this,e),["spaceId","clientSecret"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error(Se("uniCloud.init.paramRequired",{param:e}))})),this.config=Object.assign({},{endpoint:0===t.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},t),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=me,this._getAccessTokenPromiseHub=new R({createPromise:function(){return n.requestAuth(n.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((function(e){if(!e.result||!e.result.accessToken)throw new he({code:"AUTH_FAILED",message:"获取accessToken失败"});n.setAccessToken(e.result.accessToken)}))},retryRule:L})}return(0,v.default)(e,[{key:"hasAccessToken",get:function(){return!!this.accessToken}},{key:"setAccessToken",value:function(e){this.accessToken=e}},{key:"requestWrapped",value:function(e){return we.wrappedRequest(e,this.adapter.request)}},{key:"requestAuth",value:function(e){return this.requestWrapped(e)}},{key:"request",value:function(e,t){var n=this;return Promise.resolve().then((function(){return n.hasAccessToken?t?n.requestWrapped(e):n.requestWrapped(e).catch((function(t){return new Promise((function(e,n){!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((function(){return n.getAccessToken()})).then((function(){var t=n.rebuildRequest(e);return n.request(t,!0)}))})):n.getAccessToken().then((function(){var t=n.rebuildRequest(e);return n.request(t,!0)}))}))}},{key:"rebuildRequest",value:function(e){var t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=we.sign(t.data,this.config.clientSecret),t}},{key:"setupRequest",value:function(e,t){var n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),a={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,a["x-basement-token"]=this.accessToken),a["x-serverless-sign"]=we.sign(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:a}}},{key:"getAccessToken",value:function(){return this._getAccessTokenPromiseHub.exec()}},{key:"authorize",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(){return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getAccessToken();case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"callFunction",value:function(e){var t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(this.setupRequest(t))}},{key:"getOSSUploadOptionsFromPath",value:function(e){var t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFileToOSS",value:function(e){var t=this,n=e.url,a=e.formData,r=e.name,i=e.filePath,o=e.fileType,c=e.onUploadProgress;return new Promise((function(e,u){var s=t.adapter.uploadFile({url:n,formData:a,name:r,filePath:i,fileType:o,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(t){t&&t.statusCode<400?e(t):u(new he({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){u(new he({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof c&&s&&"function"==typeof s.onProgressUpdate&&s.onProgressUpdate((function(e){c({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"reportOSSUpload",value:function(e){var t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFile",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(t){var n,a,r,i,o,c,u,l,d,f,p,h,m,v,g,y,b,_,w,x;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.filePath,a=t.cloudPath,r=t.fileType,i=void 0===r?"image":r,o=t.onUploadProgress,c=t.config,"string"===C(a)){e.next=3;break}throw new he({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(a=a.trim()){e.next=5;break}throw new he({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(a)){e.next=7;break}throw new he({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:return u=c&&c.envType||this.config.envType,e.next=10,this.getOSSUploadOptionsFromPath({env:u,filename:a});case 10:return l=e.sent.result,d="https://"+l.cdnDomain+"/"+l.ossPath,f=l.securityToken,p=l.accessKeyId,h=l.signature,m=l.host,v=l.ossPath,g=l.id,y=l.policy,b=l.ossCallbackUrl,_={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:p,Signature:h,host:m,id:g,key:v,policy:y,success_action_status:200},f&&(_["x-oss-security-token"]=f),b&&(w=JSON.stringify({callbackUrl:b,callbackBody:JSON.stringify({fileId:g,spaceId:this.config.spaceId}),callbackBodyType:"application/json"}),_.callback=we.toBase64(w)),x={url:"https://"+l.host,formData:_,fileName:"file",name:"file",filePath:n,fileType:i},e.next=25,this.uploadFileToOSS(Object.assign({},x,{onUploadProgress:o}));case 25:if(!b){e.next=27;break}return e.abrupt("return",{success:!0,filePath:n,fileID:d});case 27:return e.next=29,this.reportOSSUpload({id:g});case 29:if(!e.sent.success){e.next=31;break}return e.abrupt("return",{success:!0,filePath:n,fileID:d});case 31:throw new he({code:"UPLOAD_FAILED",message:"文件上传失败"});case 32:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList;return new Promise((function(e,n){Array.isArray(t)&&0!==t.length||n(new he({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),e({fileList:t.map((function(e){return{fileID:e,tempFileURL:e}}))})}))}},{key:"getFileInfo",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(){var t,n,a,r=arguments;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=r.length>0&&void 0!==r[0]?r[0]:{},n=t.fileList,Array.isArray(n)&&0!==n.length){e.next=3;break}throw new he({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});case 3:return a={method:"serverless.file.resource.info",params:JSON.stringify({id:n.map((function(e){return e.split("?")[0]})).join(",")})},e.next=6,this.request(this.setupRequest(a));case 6:return e.t0=e.sent.result,e.abrupt("return",{fileList:e.t0});case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),Ae={init:function(e){var t=new Oe(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},Pe="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";!function(e){e.local="local",e.none="none",e.session="session"}(_e||(_e={}));var Ie,Te=function(){},Ce=function(){var e;if(!Promise){e=function(){},e.promise={};var t=function(){throw new he({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}var n=new Promise((function(t,n){e=function(e,a){return e?n(e):t(a)}}));return e.promise=n,e};function Ee(e){return void 0===e}function je(e){return"[object Null]"===Object.prototype.toString.call(e)}!function(e){e.WEB="web",e.WX_MP="wx_mp"}(Ie||(Ie={}));var Me={adapter:null,runtime:void 0},Fe=["anonymousUuidKey"],Le=function(e){(0,d.default)(n,e);var t=(0,f.default)(n);function n(){var e;return(0,m.default)(this,n),e=t.call(this),Me.adapter.root.tcbObject||(Me.adapter.root.tcbObject={}),e}return(0,v.default)(n,[{key:"setItem",value:function(e,t){Me.adapter.root.tcbObject[e]=t}},{key:"getItem",value:function(e){return Me.adapter.root.tcbObject[e]}},{key:"removeItem",value:function(e){delete Me.adapter.root.tcbObject[e]}},{key:"clear",value:function(){delete Me.adapter.root.tcbObject}}]),n}(Te);function Re(e,t){switch(e){case"local":return t.localStorage||new Le;case"none":return new Le;default:return t.sessionStorage||new Le}}var De=function(){function e(t){if((0,m.default)(this,e),!this._storage){this._persistence=Me.adapter.primaryStorage||t.persistence,this._storage=Re(this._persistence,Me.adapter);var n="access_token_".concat(t.env),a="access_token_expire_".concat(t.env),r="refresh_token_".concat(t.env),i="anonymous_uuid_".concat(t.env),o="login_type_".concat(t.env),c="user_info_".concat(t.env);this.keys={accessTokenKey:n,accessTokenExpireKey:a,refreshTokenKey:r,anonymousUuidKey:i,loginTypeKey:o,userInfoKey:c}}}return(0,v.default)(e,[{key:"updatePersistence",value:function(e){if(e!==this._persistence){var t="local"===this._persistence;this._persistence=e;var n=Re(e,Me.adapter);for(var a in this.keys){var r=this.keys[a];if(!t||!Fe.includes(a)){var i=this._storage.getItem(r);Ee(i)||je(i)||(n.setItem(r,i),this._storage.removeItem(r))}}this._storage=n}}},{key:"setStore",value:function(e,t,n){if(this._storage){var a={version:n||"localCachev1",content:t},r=JSON.stringify(a);try{this._storage.setItem(e,r)}catch(e){throw e}}}},{key:"getStore",value:function(e,t){try{if(!this._storage)return}catch(e){return""}t=t||"localCachev1";var n=this._storage.getItem(e);return n&&n.indexOf(t)>=0?JSON.parse(n).content:""}},{key:"removeStore",value:function(e){this._storage.removeItem(e)}}]),e}(),Ne={},Ue={};function qe(e){return Ne[e]}var $e=(0,v.default)((function e(t,n){(0,m.default)(this,e),this.data=n||null,this.name=t})),Be=function(e){(0,d.default)(n,e);var t=(0,f.default)(n);function n(e,a){var r;return(0,m.default)(this,n),r=t.call(this,"error",{error:e,data:a}),r.error=e,r}return(0,v.default)(n)}($e),ze=new(function(){function e(){(0,m.default)(this,e),this._listeners={}}return(0,v.default)(e,[{key:"on",value:function(e,t){return function(e,t,n){n[e]=n[e]||[],n[e].push(t)}(e,t,this._listeners),this}},{key:"off",value:function(e,t){return function(e,t,n){if(n&&n[e]){var a=n[e].indexOf(t);-1!==a&&n[e].splice(a,1)}}(e,t,this._listeners),this}},{key:"fire",value:function(e,t){if(e instanceof Be)return console.error(e.error),this;var n="string"==typeof e?new $e(e,t||{}):e,a=n.name;if(this._listens(a)){n.target=this;var r,i=this._listeners[a]?(0,c.default)(this._listeners[a]):[],o=(0,u.default)(i);try{for(o.s();!(r=o.n()).done;){var s=r.value;s.call(this,n)}}catch(l){o.e(l)}finally{o.f()}}return this}},{key:"_listens",value:function(e){return this._listeners[e]&&this._listeners[e].length>0}}]),e}());function We(e,t){ze.on(e,t)}function Ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ze.fire(e,t)}function Je(e,t){ze.off(e,t)}var He,Ke="loginStateChanged",Ge="loginStateExpire",Qe="loginTypeChanged",Ye="anonymousConverted",Xe="refreshAccessToken";!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(He||(He={}));var Ze=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],et={"X-SDK-Version":"1.3.5"};function tt(e,t,n){var a=e[t];e[t]=function(t){var r={},i={};n.forEach((function(n){var a=n.call(e,t),o=a.data,c=a.headers;Object.assign(r,o),Object.assign(i,c)}));var o=t.data;return o&&function(){var e;if(e=o,"[object FormData]"!==Object.prototype.toString.call(e))t.data=(0,h.default)((0,h.default)({},o),r);else for(var n in r)o.append(n,r[n])}(),t.headers=(0,h.default)((0,h.default)({},t.headers||{}),i),a.call(e,t)}}function nt(){var e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:(0,h.default)((0,h.default)({},et),{},{"x-seqid":e})}}var at=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,m.default)(this,e),this.config=n,this._reqClass=new Me.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"请求在".concat(this.config.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]}),this._cache=qe(this.config.env),this._localCache=(t=this.config.env,Ue[t]),tt(this._reqClass,"post",[nt]),tt(this._reqClass,"upload",[nt]),tt(this._reqClass,"download",[nt])}return(0,v.default)(e,[{key:"post",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(t){return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.post(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"upload",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(t){return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.upload(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"download",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(t){return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.download(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"refreshAccessToken",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(){var t,n;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken()),e.prev=1,e.next=4,this._refreshAccessTokenPromise;case 4:t=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](1),n=e.t0;case 10:if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,!n){e.next=12;break}throw n;case 12:return e.abrupt("return",t);case 13:case"end":return e.stop()}}),e,this,[[1,7]])})));return function(){return e.apply(this,arguments)}}()},{key:"_refreshAccessToken",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(){var t,n,a,r,i,o,c,u,l,d,f,p,h;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,a=t.accessTokenExpireKey,r=t.refreshTokenKey,i=t.loginTypeKey,o=t.anonymousUuidKey,this._cache.removeStore(n),this._cache.removeStore(a),c=this._cache.getStore(r),c){e.next=5;break}throw new he({message:"未登录CloudBase"});case 5:return u={refresh_token:c},e.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",u);case 8:if(l=e.sent,!l.data.code){e.next=21;break}if(d=l.data.code,"SIGN_PARAM_INVALID"!==d&&"REFRESH_TOKEN_EXPIRED"!==d&&"INVALID_REFRESH_TOKEN"!==d){e.next=20;break}if(this._cache.getStore(i)!==He.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==d){e.next=19;break}return f=this._cache.getStore(o),p=this._cache.getStore(r),e.next=17,this.send("auth.signInAnonymously",{anonymous_uuid:f,refresh_token:p});case 17:return h=e.sent,e.abrupt("return",(this.setRefreshToken(h.refresh_token),this._refreshAccessToken()));case 19:Ve(Ge),this._cache.removeStore(r);case 20:throw new he({code:l.data.code,message:"刷新access token失败:".concat(l.data.code)});case 21:if(!l.data.access_token){e.next=23;break}return e.abrupt("return",(Ve(Xe),this._cache.setStore(n,l.data.access_token),this._cache.setStore(a,l.data.access_token_expire+Date.now()),{accessToken:l.data.access_token,accessTokenExpire:l.data.access_token_expire}));case 23:l.data.refresh_token&&(this._cache.removeStore(r),this._cache.setStore(r,l.data.refresh_token),this._refreshAccessToken());case 24:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getAccessToken",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(){var t,n,a,r,i,o,c;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,a=t.accessTokenExpireKey,r=t.refreshTokenKey,this._cache.getStore(r)){e.next=3;break}throw new he({message:"refresh token不存在,登录状态异常"});case 3:if(i=this._cache.getStore(n),o=this._cache.getStore(a),c=!0,e.t0=this._shouldRefreshAccessTokenHook,!e.t0){e.next=9;break}return e.next=8,this._shouldRefreshAccessTokenHook(i,o);case 8:e.t0=!e.sent;case 9:if(e.t1=e.t0,!e.t1){e.next=12;break}c=!1;case 12:return e.abrupt("return",(!i||!o||o2&&void 0!==arguments[2]?arguments[2]:{},a=/\?/.test(t),r="";for(var i in n)""===r?!a&&(t+="?"):r+="&",r+="".concat(i,"=").concat(encodeURIComponent(n[i]));return/^http(s)?\:\/\//.test(t+=r)?t:"".concat(e).concat(t)}(Pe,"//tcb-api.tencentcloudapi.com/web",y),g&&(b+=g),e.next=22,this.post((0,h.default)({url:b,data:u},f));case 22:if(_=e.sent,w=_.header&&_.header["x-tcb-trace"],w&&this._localCache.setStore(r,w),(200===Number(_.status)||200===Number(_.statusCode))&&_.data){e.next=26;break}throw new he({code:"NETWORK_ERROR",message:"network request error"});case 26:return e.abrupt("return",_);case 27:case"end":return e.stop()}}),e,this)})));return function(t,n,a){return e.apply(this,arguments)}}()},{key:"send",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(t){var n,a,r,i=arguments;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:{},e.next=3,this.request(t,n,{onUploadProgress:n.onUploadProgress});case 3:if(a=e.sent,"ACCESS_TOKEN_EXPIRED"!==a.data.code||-1!==Ze.indexOf(t)){e.next=13;break}return e.next=7,this.refreshAccessToken();case 7:return e.next=9,this.request(t,n,{onUploadProgress:n.onUploadProgress});case 9:if(r=e.sent,!r.data.code){e.next=12;break}throw new he({code:r.data.code,message:r.data.message});case 12:return e.abrupt("return",r.data);case 13:if(!a.data.code){e.next=15;break}throw new he({code:a.data.code,message:a.data.message});case 15:return e.abrupt("return",a.data);case 16:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,a=t.accessTokenExpireKey,r=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(a),this._cache.setStore(r,e)}}]),e}(),rt={};function it(e){return rt[e]}var ot=function(){function e(t){(0,m.default)(this,e),this.config=t,this._cache=qe(t.env),this._request=it(t.env)}return(0,v.default)(e,[{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,a=t.accessTokenExpireKey,r=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(a),this._cache.setStore(r,e)}},{key:"setAccessToken",value:function(e,t){var n=this._cache.keys,a=n.accessTokenKey,r=n.accessTokenExpireKey;this._cache.setStore(a,e),this._cache.setStore(r,t)}},{key:"refreshUserInfo",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(){var t,n;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,n=t.data,e.abrupt("return",(this.setLocalUserInfo(n),n));case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e)}}]),e}(),ct=function(){function e(t){if((0,m.default)(this,e),!t)throw new he({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=t,this._cache=qe(this._envId),this._request=it(this._envId),this.setUserInfo()}return(0,v.default)(e,[{key:"linkWithTicket",value:function(e){if("string"!=typeof e)throw new he({code:"PARAM_ERROR",message:"ticket must be string"});return this._request.send("auth.linkWithTicket",{ticket:e})}},{key:"linkWithRedirect",value:function(e){e.signInWithRedirect()}},{key:"updatePassword",value:function(e,t){return this._request.send("auth.updatePassword",{oldPassword:t,newPassword:e})}},{key:"updateEmail",value:function(e){return this._request.send("auth.updateEmail",{newEmail:e})}},{key:"updateUsername",value:function(e){if("string"!=typeof e)throw new he({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}},{key:"getLinkedUidList",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(){var t,n,a,r;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getLinkedUidList",{});case 2:return t=e.sent,n=t.data,a=!1,r=n.users,e.abrupt("return",(r.forEach((function(e){e.wxOpenId&&e.wxPublicId&&(a=!0)})),{users:r,hasPrimaryUid:a}));case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setPrimaryUid",value:function(e){return this._request.send("auth.setPrimaryUid",{uid:e})}},{key:"unlink",value:function(e){return this._request.send("auth.unlink",{platform:e})}},{key:"update",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(t){var n,a,r,i,o,c,u,l;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.nickName,a=t.gender,r=t.avatarUrl,i=t.province,o=t.country,c=t.city,e.next=8,this._request.send("auth.updateUserInfo",{nickName:n,gender:a,avatarUrl:r,province:i,country:o,city:c});case 8:u=e.sent,l=u.data,this.setLocalUserInfo(l);case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"refresh",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(){var t,n;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,n=t.data,e.abrupt("return",(this.setLocalUserInfo(n),n));case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setUserInfo",value:function(){var e=this,t=this._cache.keys.userInfoKey,n=this._cache.getStore(t);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((function(t){e[t]=n[t]})),this.location={country:n.country,province:n.province,city:n.city}}},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e),this.setUserInfo()}}]),e}(),ut=function(){function e(t){if((0,m.default)(this,e),!t)throw new he({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=qe(t);var n=this._cache.keys,a=n.refreshTokenKey,r=n.accessTokenKey,i=n.accessTokenExpireKey,o=this._cache.getStore(a),c=this._cache.getStore(r),u=this._cache.getStore(i);this.credential={refreshToken:o,accessToken:c,accessTokenExpire:u},this.user=new ct(t)}return(0,v.default)(e,[{key:"isAnonymousAuth",get:function(){return this.loginType===He.ANONYMOUS}},{key:"isCustomAuth",get:function(){return this.loginType===He.CUSTOM}},{key:"isWeixinAuth",get:function(){return this.loginType===He.WECHAT||this.loginType===He.WECHAT_OPEN||this.loginType===He.WECHAT_PUBLIC}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),e}(),st=function(e){(0,d.default)(n,e);var t=(0,f.default)(n);function n(){return(0,m.default)(this,n),t.apply(this,arguments)}return(0,v.default)(n,[{key:"signIn",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(){var t,n,a,r,i,o,c;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._cache.updatePersistence("local"),t=this._cache.keys,n=t.anonymousUuidKey,a=t.refreshTokenKey,r=this._cache.getStore(n)||void 0,i=this._cache.getStore(a)||void 0,e.next=8,this._request.send("auth.signInAnonymously",{anonymous_uuid:r,refresh_token:i});case 8:if(o=e.sent,!o.uuid||!o.refresh_token){e.next=20;break}return this._setAnonymousUUID(o.uuid),this.setRefreshToken(o.refresh_token),e.next=14,this._request.refreshAccessToken();case 14:return Ve(Ke),Ve(Qe,{env:this.config.env,loginType:He.ANONYMOUS,persistence:"local"}),c=new ut(this.config.env),e.next=19,c.user.refresh();case 19:return e.abrupt("return",c);case 20:throw new he({message:"匿名登录失败"});case 21:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(t){var n,a,r,i,o,c;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=this._cache.keys,a=n.anonymousUuidKey,r=n.refreshTokenKey,i=this._cache.getStore(a),o=this._cache.getStore(r),e.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:i,refresh_token:o,ticket:t});case 7:if(c=e.sent,!c.refresh_token){e.next=16;break}return this._clearAnonymousUUID(),this.setRefreshToken(c.refresh_token),e.next=13,this._request.refreshAccessToken();case 13:return Ve(Ye,{env:this.config.env}),Ve(Qe,{loginType:He.CUSTOM,persistence:"local"}),e.abrupt("return",{credential:{refreshToken:c.refresh_token}});case 16:throw new he({message:"匿名转化失败"});case 17:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_setAnonymousUUID",value:function(e){var t=this._cache.keys,n=t.anonymousUuidKey,a=t.loginTypeKey;this._cache.removeStore(n),this._cache.setStore(n,e),this._cache.setStore(a,He.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),n}(ot),lt=function(e){(0,d.default)(n,e);var t=(0,f.default)(n);function n(){return(0,m.default)(this,n),t.apply(this,arguments)}return(0,v.default)(n,[{key:"signIn",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(t){var n,a;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new he({code:"PARAM_ERROR",message:"ticket must be a string"});case 2:return n=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signInWithTicket",{ticket:t,refresh_token:this._cache.getStore(n)||""});case 5:if(a=e.sent,!a.refresh_token){e.next=15;break}return this.setRefreshToken(a.refresh_token),e.next=10,this._request.refreshAccessToken();case 10:return Ve(Ke),Ve(Qe,{env:this.config.env,loginType:He.CUSTOM,persistence:this.config.persistence}),e.next=14,this.refreshUserInfo();case 14:return e.abrupt("return",new ut(this.config.env));case 15:throw new he({message:"自定义登录失败"});case 16:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),n}(ot),dt=function(e){(0,d.default)(n,e);var t=(0,f.default)(n);function n(){return(0,m.default)(this,n),t.apply(this,arguments)}return(0,v.default)(n,[{key:"signIn",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(t,n){var a,r,i,o,c;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new he({code:"PARAM_ERROR",message:"email must be a string"});case 2:return a=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signIn",{loginType:"EMAIL",email:t,password:n,refresh_token:this._cache.getStore(a)||""});case 5:if(r=e.sent,i=r.refresh_token,o=r.access_token,c=r.access_token_expire,!i){e.next=22;break}if(this.setRefreshToken(i),!o||!c){e.next=15;break}this.setAccessToken(o,c),e.next=17;break;case 15:return e.next=17,this._request.refreshAccessToken();case 17:return e.next=19,this.refreshUserInfo();case 19:return Ve(Ke),Ve(Qe,{env:this.config.env,loginType:He.EMAIL,persistence:this.config.persistence}),e.abrupt("return",new ut(this.config.env));case 22:throw r.code?new he({code:r.code,message:"邮箱登录失败: ".concat(r.message)}):new he({message:"邮箱登录失败"});case 23:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"activate",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(t){return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.activateEndUserMail",{token:t}));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"resetPasswordWithToken",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(t,n){return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.resetPasswordWithToken",{token:t,newPassword:n}));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),n}(ot),ft=function(e){(0,d.default)(n,e);var t=(0,f.default)(n);function n(){return(0,m.default)(this,n),t.apply(this,arguments)}return(0,v.default)(n,[{key:"signIn",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(t,n){var a,r,i,o,c;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new he({code:"PARAM_ERROR",message:"username must be a string"});case 2:return"string"!=typeof n&&(n="",console.warn("password is empty")),a=this._cache.keys.refreshTokenKey,e.next=6,this._request.send("auth.signIn",{loginType:He.USERNAME,username:t,password:n,refresh_token:this._cache.getStore(a)||""});case 6:if(r=e.sent,i=r.refresh_token,o=r.access_token_expire,c=r.access_token,!i){e.next=23;break}if(this.setRefreshToken(i),!c||!o){e.next=16;break}this.setAccessToken(c,o),e.next=18;break;case 16:return e.next=18,this._request.refreshAccessToken();case 18:return e.next=20,this.refreshUserInfo();case 20:return Ve(Ke),Ve(Qe,{env:this.config.env,loginType:He.USERNAME,persistence:this.config.persistence}),e.abrupt("return",new ut(this.config.env));case 23:throw r.code?new he({code:r.code,message:"用户名密码登录失败: ".concat(r.message)}):new he({message:"用户名密码登录失败"});case 24:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),n}(ot),pt=function(){function e(t){(0,m.default)(this,e),this.config=t,this._cache=qe(t.env),this._request=it(t.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),We(Qe,this._onLoginTypeChanged)}return(0,v.default)(e,[{key:"currentUser",get:function(){var e=this.hasLoginState();return e&&e.user||null}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}},{key:"anonymousAuthProvider",value:function(){return new st(this.config)}},{key:"customAuthProvider",value:function(){return new lt(this.config)}},{key:"emailAuthProvider",value:function(){return new dt(this.config)}},{key:"usernameAuthProvider",value:function(){return new ft(this.config)}},{key:"signInAnonymously",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(){return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new st(this.config).signIn());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signInWithEmailAndPassword",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(t,n){return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new dt(this.config).signIn(t,n));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"signInWithUsernameAndPassword",value:function(e,t){return new ft(this.config).signIn(e,t)}},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(t){return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new st(this.config)),We(Ye,this._onAnonymousConverted),e.next=3,this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"signOut",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(){var t,n,a,r,i,o;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.loginType!==He.ANONYMOUS){e.next=2;break}throw new he({message:"匿名用户不支持登出操作"});case 2:if(t=this._cache.keys,n=t.refreshTokenKey,a=t.accessTokenKey,r=t.accessTokenExpireKey,i=this._cache.getStore(n),i){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,this._request.send("auth.logout",{refresh_token:i});case 7:return o=e.sent,e.abrupt("return",(this._cache.removeStore(n),this._cache.removeStore(a),this._cache.removeStore(r),Ve(Ke),Ve(Qe,{env:this.config.env,loginType:He.NULL,persistence:this.config.persistence}),o));case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signUpWithEmailAndPassword",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(t,n){return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.signUpWithEmailAndPassword",{email:t,password:n}));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"sendPasswordResetEmail",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(t){return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.sendPasswordResetEmail",{email:t}));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"onLoginStateChanged",value:function(e){var t=this;We(Ke,(function(){var n=t.hasLoginState();e.call(t,n)}));var n=this.hasLoginState();e.call(this,n)}},{key:"onLoginStateExpired",value:function(e){We(Ge,e.bind(this))}},{key:"onAccessTokenRefreshed",value:function(e){We(Xe,e.bind(this))}},{key:"onAnonymousConverted",value:function(e){We(Ye,e.bind(this))}},{key:"onLoginTypeChanged",value:function(e){var t=this;We(Qe,(function(){var n=t.hasLoginState();e.call(t,n)}))}},{key:"getAccessToken",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(){return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.getAccessToken();case 2:return e.t0=e.sent.accessToken,e.t1=this.config.env,e.abrupt("return",{accessToken:e.t0,env:e.t1});case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"hasLoginState",value:function(){var e=this._cache.keys.refreshTokenKey;return this._cache.getStore(e)?new ut(this.config.env):null}},{key:"isUsernameRegistered",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(t){var n,a;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new he({code:"PARAM_ERROR",message:"username must be a string"});case 2:return e.next=4,this._request.send("auth.isUsernameRegistered",{username:t});case 4:return n=e.sent,a=n.data,e.abrupt("return",a&&a.isRegistered);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getLoginState",value:function(){return Promise.resolve(this.hasLoginState())}},{key:"signInWithTicket",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(t){return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new lt(this.config).signIn(t));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"shouldRefreshAccessToken",value:function(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}},{key:"getUserInfo",value:function(){return this._request.send("auth.getUserInfo",{}).then((function(e){return e.code?e:(0,h.default)((0,h.default)({},e.data),{},{requestId:e.seqId})}))}},{key:"getAuthHeader",value:function(){var e=this._cache.keys,t=e.refreshTokenKey,n=e.accessTokenKey,a=this._cache.getStore(t);return{"x-cloudbase-credentials":this._cache.getStore(n)+"/@@/"+a}}},{key:"_onAnonymousConverted",value:function(e){var t=e.data.env;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}},{key:"_onLoginTypeChanged",value:function(e){var t=e.data,n=t.loginType,a=t.persistence,r=t.env;r===this.config.env&&(this._cache.updatePersistence(a),this._cache.setStore(this._cache.keys.loginTypeKey,n))}}]),e}(),ht=function(e,t){t=t||Ce();var n=it(this.config.env),a=e.cloudPath,r=e.filePath,i=e.onUploadProgress,o=e.fileType,c=void 0===o?"image":o;return n.send("storage.getUploadMetadata",{path:a}).then((function(e){var o=e.data,u=o.url,s=o.authorization,l=o.token,d=o.fileId,f=o.cosFileId,p=e.requestId,h={key:a,signature:s,"x-cos-meta-fileid":f,success_action_status:"201","x-cos-security-token":l};n.upload({url:u,data:h,file:r,name:a,fileType:c,onUploadProgress:i}).then((function(e){201===e.statusCode?t(null,{fileID:d,requestId:p}):t(new he({code:"STORAGE_REQUEST_FAIL",message:"STORAGE_REQUEST_FAIL: ".concat(e.data)}))})).catch((function(e){t(e)}))})).catch((function(e){t(e)})),t.promise},mt=function(e,t){t=t||Ce();var n=it(this.config.env),a=e.cloudPath;return n.send("storage.getUploadMetadata",{path:a}).then((function(e){t(null,e)})).catch((function(e){t(e)})),t.promise},vt=function(e,t){var n=e.fileList;if(t=t||Ce(),!n||!Array.isArray(n))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};var a,r=(0,u.default)(n);try{for(r.s();!(a=r.n()).done;){var i=a.value;if(!i||"string"!=typeof i)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"}}}catch(c){r.e(c)}finally{r.f()}var o={fileid_list:n};return it(this.config.env).send("storage.batchDeleteFile",o).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},gt=function(e,t){var n=e.fileList;t=t||Ce(),n&&Array.isArray(n)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});var a,r=[],i=(0,u.default)(n);try{for(i.s();!(a=i.n()).done;){var c=a.value;"object"==(0,o.default)(c)?(c.hasOwnProperty("fileID")&&c.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),r.push({fileid:c.fileID,max_age:c.maxAge})):"string"==typeof c?r.push({fileid:c}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"})}}catch(l){i.e(l)}finally{i.f()}var s={file_list:r};return it(this.config.env).send("storage.batchGetDownloadUrl",s).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},yt=function(){var e=(0,l.default)((0,s.default)().mark((function e(t,n){var a,r,i,o;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.fileID,e.next=3,gt.call(this,{fileList:[{fileID:a,maxAge:600}]});case 3:if(r=e.sent.fileList[0],"SUCCESS"===r.code){e.next=6;break}return e.abrupt("return",n?n(r):new Promise((function(e){e(r)})));case 6:if(i=it(this.config.env),o=r.download_url,o=encodeURI(o),n){e.next=10;break}return e.abrupt("return",i.download({url:o}));case 10:return e.t0=n,e.next=13,i.download({url:o});case 13:e.t1=e.sent,(0,e.t0)(e.t1);case 15:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),bt=function(e,t){var n,a=e.name,r=e.data,i=e.query,o=e.parse,c=e.search,u=t||Ce();try{n=r?JSON.stringify(r):""}catch(a){return Promise.reject(a)}if(!a)return Promise.reject(new he({code:"PARAM_ERROR",message:"函数名不能为空"}));var s={inQuery:i,parse:o,search:c,function_name:a,request_data:n};return it(this.config.env).send("functions.invokeFunction",s).then((function(e){if(e.code)u(null,e);else{var t=e.data.response_data;if(o)u(null,{result:t,requestId:e.requestId});else try{t=JSON.parse(e.data.response_data),u(null,{result:t,requestId:e.requestId})}catch(e){u(new he({message:"response data must be json"}))}}return u.promise})).catch((function(e){u(e)})),u.promise},_t={timeout:15e3,persistence:"session"},wt={},xt=function(){function e(t){(0,m.default)(this,e),this.config=t||this.config,this.authObj=void 0}return(0,v.default)(e,[{key:"init",value:function(t){switch(Me.adapter||(this.requestClient=new Me.adapter.reqClass({timeout:t.timeout||5e3,timeoutMsg:"请求在".concat((t.timeout||5e3)/1e3,"s内未完成,已中断")})),this.config=(0,h.default)((0,h.default)({},_t),t),!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new e(this.config)}},{key:"auth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.persistence;if(this.authObj)return this.authObj;var n,a=t||Me.adapter.primaryStorage||_t.persistence;return a!==this.config.persistence&&(this.config.persistence=a),function(e){var t=e.env;Ne[t]=new De(e),Ue[t]=new De((0,h.default)((0,h.default)({},e),{},{persistence:"local"}))}(this.config),n=this.config,rt[n.env]=new at(n),this.authObj=new pt(this.config),this.authObj}},{key:"on",value:function(e,t){return We.apply(this,[e,t])}},{key:"off",value:function(e,t){return Je.apply(this,[e,t])}},{key:"callFunction",value:function(e,t){return bt.apply(this,[e,t])}},{key:"deleteFile",value:function(e,t){return vt.apply(this,[e,t])}},{key:"getTempFileURL",value:function(e,t){return gt.apply(this,[e,t])}},{key:"downloadFile",value:function(e,t){return yt.apply(this,[e,t])}},{key:"uploadFile",value:function(e,t){return ht.apply(this,[e,t])}},{key:"getUploadMetadata",value:function(e,t){return mt.apply(this,[e,t])}},{key:"registerExtension",value:function(e){wt[e.name]=e}},{key:"invokeExtension",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(t,n){var a;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=wt[t],a){e.next=3;break}throw new he({message:"扩展".concat(t," 必须先注册")});case 3:return e.next=5,a.invoke(n,this);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"useAdapters",value:function(e){var t=function(e){var t,n,a=(t=e,"[object Array]"===Object.prototype.toString.call(t)?e:[e]),r=(0,u.default)(a);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.isMatch,c=i.genAdapter,s=i.runtime;if(o())return{adapter:c(),runtime:s}}}catch(l){r.e(l)}finally{r.f()}}(e)||{},n=t.adapter,a=t.runtime;n&&(Me.adapter=n),a&&(Me.runtime=a)}}]),e}(),kt=new xt;function St(e,t,n){void 0===n&&(n={});var a=/\?/.test(t),r="";for(var i in n)""===r?!a&&(t+="?"):r+="&",r+=i+"="+encodeURIComponent(n[i]);return/^http(s)?:\/\//.test(t+=r)?t:""+e+t}var Ot=function(){function e(){(0,m.default)(this,e)}return(0,v.default)(e,[{key:"post",value:function(e){var t=e.url,n=e.data,a=e.headers;return new Promise((function(e,r){me.request({url:St("https:",t),data:n,method:"POST",header:a,success:function(t){e(t)},fail:function(e){r(e)}})}))}},{key:"upload",value:function(e){return new Promise((function(t,n){var a=e.url,r=e.file,i=e.data,o=e.headers,c=e.fileType,u=me.uploadFile({url:St("https:",a),name:"file",formData:Object.assign({},i),filePath:r,fileType:c,header:o,success:function(e){var n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&i.success_action_status&&(n.statusCode=parseInt(i.success_action_status,10)),t(n)},fail:function(e){n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&u&&"function"==typeof u.onProgressUpdate&&u.onProgressUpdate((function(t){e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}]),e}(),At={setItem:function(e,t){me.setStorageSync(e,t)},getItem:function(e){return me.getStorageSync(e)},removeItem:function(e){me.removeStorageSync(e)},clear:function(){me.clearStorageSync()}},Pt={genAdapter:function(){return{root:{},reqClass:Ot,localStorage:At,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};kt.useAdapters(Pt);var It=kt,Tt=It.init;It.init=function(e){e.env=e.spaceId;var t=Tt.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;var n=t.auth;return t.auth=function(e){var t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((function(e){var n;t[e]=(n=t[e],function(e){e=e||{};var t=de(e),a=t.success,r=t.fail,i=t.complete;if(!(a||r||i))return n.call(this,e);n.call(this,e).then((function(e){a&&a(e),i&&i(e)}),(function(e){r&&r(e),i&&i(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var Ct=It,Et=function(e){(0,d.default)(n,e);var t=(0,f.default)(n);function n(){return(0,m.default)(this,n),t.apply(this,arguments)}return(0,v.default)(n,[{key:"getAccessToken",value:function(){var e=this;return new Promise((function(t,n){var a="Anonymous_Access_token";e.setAccessToken(a),t(a)}))}},{key:"setupRequest",value:function(e,t){var n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),a={"Content-Type":"application/json"};"auth"!==t&&(n.token=this.accessToken,a["x-basement-token"]=this.accessToken),a["x-serverless-sign"]=we.sign(n,this.config.clientSecret);var r=be();a["x-client-info"]=encodeURIComponent(JSON.stringify(r));var i=ve(),o=i.token;return a["x-client-token"]=o,{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:JSON.parse(JSON.stringify(a))}}},{key:"uploadFileToOSS",value:function(e){var t=this,n=e.url,a=e.formData,r=e.name,i=e.filePath,o=e.fileType,c=e.onUploadProgress;return new Promise((function(e,u){var s=t.adapter.uploadFile({url:n,formData:a,name:r,filePath:i,fileType:o,success:function(t){t&&t.statusCode<400?e(t):u(new he({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){u(new he({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof c&&s&&"function"==typeof s.onProgressUpdate&&s.onProgressUpdate((function(e){c({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(e){var t,n=this,a=e.filePath,r=e.cloudPath,i=e.fileType,o=void 0===i?"image":i,c=e.onUploadProgress;if(!r)throw new he({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});return this.getOSSUploadOptionsFromPath({cloudPath:r}).then((function(e){var r=e.result,i=r.url,u=r.formData,s=r.name;t=e.result.fileUrl;var l={url:i,formData:u,name:s,filePath:a,fileType:o};return n.uploadFileToOSS(Object.assign({},l,{onUploadProgress:c}))})).then((function(){return n.reportOSSUpload({cloudPath:r})})).then((function(e){return new Promise((function(n,r){e.success?n({success:!0,filePath:a,fileID:t}):r(new he({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}))}},{key:"deleteFile",value:function(e){var t=e.fileList,n={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:t})};return this.request(this.setupRequest(n)).then((function(e){if(e.success)return e.result;throw new he({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList;if(!Array.isArray(t)||0===t.length)throw new he({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});var n={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:t})};return this.request(this.setupRequest(n)).then((function(e){if(e.success)return{fileList:e.result.fileList.map((function(e){return{fileID:e.fileID,tempFileURL:e.tempFileURL}}))};throw new he({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}}]),n}(Oe),jt={init:function(e){var t=new Et(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}};function Mt(e){var t,n=e.data;t=be();var a=JSON.parse(JSON.stringify(n||{}));if(Object.assign(a,{clientInfo:t}),!a.uniIdToken){var r=ve(),i=r.token;i&&(a.uniIdToken=i)}return a}var Ft=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}],Lt=/[\\^$.*+?()[\]{}|]/g,Rt=RegExp(Lt.source);function Dt(e,t,n){return e.replace(new RegExp((a=t)&&Rt.test(a)?a.replace(Lt,"\\$&"):a,"g"),n);var a}var Nt="request",Ut="response";var qt;qt="0123456789abcdef";var $t={code:2e4,message:"System error"},Bt={code:20101,message:"Invalid client"};function zt(e){var t=e||{},n=t.errSubject,a=t.subject,r=t.errCode,i=t.errMsg,o=t.code,c=t.message,u=t.cause;return new he({subject:n||a||"uni-secure-network",code:r||o||$t.code,message:i||c,cause:u})}var Wt;function Vt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.secretType;return t===Nt||t===Ut||"both"===t}function Jt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.data,a=void 0===n?{}:n;return"app"===q&&"DCloud-clientDB"===t&&"encryption"===a.redirectTo&&"getAppClientKey"===a.action}function Ht(e){e.functionName,e.result,e.logPvd}function Kt(e){var t=e.callFunction,n=function(n){var a=this,r=n.name;n.data=Mt.call(e,{data:n.data});var i={aliyun:"aliyun",tencent:"tcb",tcb:"tcb"}[this.config.provider],o=Vt(n),c=Jt(n),u=o||c;return t.call(this,n).then((function(e){return e.errCode=0,!u&&Ht.call(a,{functionName:r,result:e,logPvd:i}),Promise.resolve(e)}),(function(e){return!u&&Ht.call(a,{functionName:r,result:e,logPvd:i}),e&&e.message&&(e.message=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.message,n=void 0===t?"":t,a=e.extraInfo,r=void 0===a?{}:a,i=e.formatter,o=void 0===i?[]:i,c=0;c0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,a=e.functionName,r=ye(),i=r.appId,o=r.uniPlatform,c=r.osName,u=o;"app"===o&&(u=c);var s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,a=U;if(!a)return{};t=function(e){return"tencent"===e?"tcb":e}(t);var r=a.find((function(e){return e.provider===t&&e.spaceId===n}));return r&&r.config}({provider:t,spaceId:n});if(!s||!s.accessControl||!s.accessControl.enable)return!1;var l=s.accessControl.function||{},d=Object.keys(l);if(0===d.length)return!0;var f=function(e,t){for(var n,a,r,i=0;i-1&&(a=o):r=o:n=o}return n||a||r}(d,a);if(!f)return!1;if((l[f]||[]).find((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.appId===i&&(e.platform||"").toLowerCase()===u.toLowerCase()})))return!0;throw console.error("此应用[appId: ".concat(i,", platform: ").concat(u,"]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client")),zt(Bt)}({provider:o,spaceId:c,functionName:u})?new Wt({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(t):a(t),Object.defineProperty(r,"result",{get:function(){return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{}}}),r}}Wt="mp-weixin"!==q&&"app"!==q?function(){return(0,v.default)((function e(){throw(0,m.default)(this,e),zt({message:"Platform ".concat(q," is not supported by secure network")})}))}():function(){return(0,v.default)((function e(){throw(0,m.default)(this,e),zt({message:"Platform ".concat(q," is not enabled, please check whether secure network module is enabled in your manifest.json")})}))}();var Gt=Symbol("CLIENT_DB_INTERNAL");function Qt(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=Gt,e.inspect=null,e.__ob__=void 0,new Proxy(e,{get:function(e,n,a){if("_uniClient"===n)return null;if("symbol"==(0,o.default)(n))return e[n];if(n in e||"string"!=typeof n){var r=e[n];return"function"==typeof r?r.bind(e):r}return t.get(e,n,a)}})}function Yt(e){return{on:function(t,n){e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:function(t,n){e[t]=e[t]||[];var a=e[t].indexOf(n);-1!==a&&e[t].splice(a,1)}}}var Xt=["db.Geo","db.command","command.aggregate"];function Zt(e,t){return Xt.indexOf("".concat(e,".").concat(t))>-1}function en(e){switch(C(e)){case"array":return e.map((function(e){return en(e)}));case"object":return e._internalType===Gt||Object.keys(e).forEach((function(t){e[t]=en(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function tn(e){return e&&e.content&&e.content.$method}var nn=function(){function e(t,n,a){(0,m.default)(this,e),this.content=t,this.prevStage=n||null,this.udb=null,this._database=a}return(0,v.default)(e,[{key:"toJSON",value:function(){for(var e=this,t=[e.content];e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((function(e){return{$method:e.$method,$param:en(e.$param)}}))}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}},{key:"getAction",value:function(){var e=this.toJSON().$db.find((function(e){return"action"===e.$method}));return e&&e.$param&&e.$param[0]}},{key:"getCommand",value:function(){return{$db:this.toJSON().$db.filter((function(e){return"action"!==e.$method}))}}},{key:"isAggregate",get:function(){for(var e=this;e;){var t=tn(e),n=tn(e.prevStage);if("aggregate"===t&&"collection"===n||"pipeline"===t)return!0;e=e.prevStage}return!1}},{key:"isCommand",get:function(){for(var e=this;e;){if("command"===tn(e))return!0;e=e.prevStage}return!1}},{key:"isAggregateCommand",get:function(){for(var e=this;e;){var t=tn(e),n=tn(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}},{key:"getNextStageFn",value:function(e){var t=this;return function(){return an({$method:e,$param:en(Array.from(arguments))},t,t._database)}}},{key:"count",get:function(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}},{key:"remove",get:function(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}},{key:"get",value:function(){return this._send("get",Array.from(arguments))}},{key:"add",get:function(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}},{key:"update",value:function(){return this._send("update",Array.from(arguments))}},{key:"end",value:function(){return this._send("end",Array.from(arguments))}},{key:"set",get:function(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}},{key:"_send",value:function(e,t){var n=this.getAction(),a=this.getCommand();return a.$db.push({$method:e,$param:en(t)}),this._database._callCloudFunction({action:n,command:a})}}]),e}();function an(e,t,n){return Qt(new nn(e,t,n),{get:function(e,t){var a="db";return e&&e.content&&(a=e.content.$method),Zt(a,t)?an({$method:t},e,n):function(){return an({$method:t,$param:en(Array.from(arguments))},e,n)}}})}function rn(e){var t=e.path,n=e.method;return function(){function e(){(0,m.default)(this,e),this.param=Array.from(arguments)}return(0,v.default)(e,[{key:"toJSON",value:function(){return{$newDb:[].concat((0,c.default)(t.map((function(e){return{$method:e}}))),[{$method:n,$param:this.param}])}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}}]),e}()}function on(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Qt(new e(t),{get:function(e,t){return Zt("db",t)?an({$method:t},null,e):function(){return an({$method:t,$param:en(Array.from(arguments))},null,e)}}})}var cn=function(e){(0,d.default)(n,e);var t=(0,f.default)(n);function n(){return(0,m.default)(this,n),t.apply(this,arguments)}return(0,v.default)(n,[{key:"_parseResult",value:function(e){return this._isJQL?e.result:e}},{key:"_callCloudFunction",value:function(e){var t=this,n=e.action,a=e.command,r=e.multiCommand,i=e.queryList;function o(e,t){if(r&&i)for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.uniClient,a=void 0===n?{}:n,r=t.isJQL,i=void 0!==r&&r;(0,m.default)(this,e),this._uniClient=a,this._authCallBacks={},this._dbCallBacks={},a._isDefault&&(this._dbCallBacks=z("_globalUniCloudDatabaseCallback")),i||(this.auth=Yt(this._authCallBacks)),this._isJQL=i,Object.assign(this,Yt(this._dbCallBacks)),this.env=Qt({},{get:function(e,t){return{$env:t}}}),this.Geo=Qt({},{get:function(e,t){return rn({path:["Geo"],method:t})}}),this.serverDate=rn({path:[],method:"serverDate"}),this.RegExp=rn({path:[],method:"RegExp"})}return(0,v.default)(e,[{key:"getCloudEnv",value:function(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}},{key:"_callback",value:function(e,t){var n=this._dbCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,(0,c.default)(t))}))}},{key:"_callbackAuth",value:function(e,t){var n=this._authCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,(0,c.default)(t))}))}},{key:"multiSend",value:function(){var e=Array.from(arguments),t=e.map((function(e){var t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}]),e}()),un="token无效,跳转登录页面",sn="token过期,跳转登录页面",ln={TOKEN_INVALID_TOKEN_EXPIRED:sn,TOKEN_INVALID_INVALID_CLIENTID:un,TOKEN_INVALID:un,TOKEN_INVALID_WRONG_TOKEN:un,TOKEN_INVALID_ANONYMOUS_USER:un},dn={"uni-id-token-expired":sn,"uni-id-check-token-failed":un,"uni-id-token-not-exist":un,"uni-id-check-device-feature-failed":un};function fn(e,t){var n="";return n=e?"".concat(e,"/").concat(t):t,n.replace(/^\//,"")}function pn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],a=[];return e.forEach((function(e){!0===e.needLogin?n.push(fn(t,e.path)):!1===e.needLogin&&a.push(fn(t,e.path))})),{needLoginPage:n,notNeedLoginPage:a}}function hn(e){return e.split("?")[0].replace(/^\//,"")}function mn(){return function(e){var t=e&&e.$page&&e.$page.fullPath||"";return t?("/"!==t.charAt(0)&&(t="/"+t),t):t}(function(){var e=getCurrentPages();return e[e.length-1]}())}function vn(){return hn(mn())}function gn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;var n=t.list,a=hn(e);return n.some((function(e){return e.pagePath===a}))}var yn,bn=!!y.default.uniIdRouter,_n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y.default,t=e.pages,n=void 0===t?[]:t,a=e.subPackages,r=void 0===a?[]:a,i=e.uniIdRouter,o=void 0===i?{}:i,u=e.tabBar,s=void 0===u?{}:u,l=o.loginPage,d=o.needLogin,f=void 0===d?[]:d,p=o.resToLogin,h=void 0===p||p,m=pn(n),v=m.needLoginPage,g=m.notNeedLoginPage,b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=[];return e.forEach((function(e){var a=e.root,r=e.pages,i=void 0===r?[]:r,o=pn(i,a),u=o.needLoginPage,s=o.notNeedLoginPage;t.push.apply(t,(0,c.default)(u)),n.push.apply(n,(0,c.default)(s))})),{needLoginPage:t,notNeedLoginPage:n}}(r),_=b.needLoginPage,w=b.notNeedLoginPage;return{loginPage:l,routerNeedLogin:f,resToLogin:h,needLoginPage:[].concat((0,c.default)(v),(0,c.default)(_)),notNeedLoginPage:[].concat((0,c.default)(g),(0,c.default)(w)),loginPageInTabBar:gn(l,s)}}(),wn=_n.loginPage,xn=_n.routerNeedLogin,kn=_n.resToLogin,Sn=_n.needLoginPage,On=_n.notNeedLoginPage,An=_n.loginPageInTabBar;if(Sn.indexOf(wn)>-1)throw new Error("Login page [".concat(wn,'] should not be "needLogin", please check your pages.json'));function Pn(e){var t=vn();if("/"===e.charAt(0))return e;var n=e.split("?"),a=(0,i.default)(n,2),r=a[0],o=a[1],c=r.replace(/^\//,"").split("/"),u=t.split("/");u.pop();for(var s=0;s-1)&&(Sn.indexOf(t)>-1||xn.some((function(t){return function(e,t){return new RegExp(t).test(e)}(e,t)})))}function Tn(e){var t=e.redirect,n=hn(t),a=hn(wn);return vn()!==a&&n!==a}function Cn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.api,n=e.redirect;if(n&&Tn({redirect:n})){var a=function(e,t){return"/"!==e.charAt(0)&&(e="/"+e),t?e.indexOf("?")>-1?e+"&uniIdRedirectUrl=".concat(encodeURIComponent(t)):e+"?uniIdRedirectUrl=".concat(encodeURIComponent(t)):e}(wn,n);An?"navigateTo"!==t&&"redirectTo"!==t||(t="switchTab"):"switchTab"===t&&(t="navigateTo");var r={navigateTo:uni.navigateTo,redirectTo:uni.redirectTo,switchTab:uni.switchTab,reLaunch:uni.reLaunch};setTimeout((function(){r[t]({url:a})}))}}function En(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n={abortLoginPageJump:!1,autoToLoginPage:!1},a=function(){var e,t=ve(),n=t.token,a=t.tokenExpired;if(n){if(a0)return setTimeout((function(){ce(Z,a)}),0),n.abortLoginPageJump=!0,n;n.autoToLoginPage=!0}return n}function jn(){!function(){var e=mn(),t=En({url:e}),n=t.abortLoginPageJump,a=t.autoToLoginPage;n||a&&Cn({api:"redirectTo",redirect:e})}();for(var e=["navigateTo","redirectTo","reLaunch","switchTab"],t=function(t){var n=e[t];uni.addInterceptor(n,{invoke:function(e){var t=En({url:e.url}),a=t.abortLoginPageJump,r=t.autoToLoginPage;return a?e:r?(Cn({api:n,redirect:Pn(e.url)}),!1):e}})},n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=re(Z);le().then((function(){var n=mn();if(n&&Tn({redirect:n}))return t.length>0?ce(Z,Object.assign({uniIdRedirectUrl:n},e)):void(wn&&Cn({api:"navigateTo",redirect:n}))}))}(n)}))}function Fn(e){!function(e){e.onResponse=function(e){ie(X,e)},e.offResponse=function(e){oe(X,e)}}(e),function(e){e.onNeedLogin=function(e){ie(Z,e)},e.offNeedLogin=function(e){oe(Z,e)},bn&&(z("_globalUniCloudStatus").needLoginInit||(z("_globalUniCloudStatus").needLoginInit=!0,le().then((function(){jn.call(e)})),kn&&Mn.call(e)))}(e),function(e){e.onRefreshToken=function(e){ie(ee,e)},e.offRefreshToken=function(e){oe(ee,e)}}(e)}var Ln="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Rn=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Dn(){var e,t,n=ve().token||"",a=n.split(".");if(!n||3!==a.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse((t=a[1],decodeURIComponent(yn(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(n){throw new Error("获取当前用户信息出错,详细错误信息为:"+n.message)}return e.tokenExpired=1e3*e.exp,delete e.exp,delete e.iat,e}yn="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Rn.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,a,r="",i=0;i>16&255):64===a?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return r}:atob;var Nn=b((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="chooseAndUploadFile:ok",a="chooseAndUploadFile:fail";function r(e,t){return e.tempFiles.forEach((function(e,n){e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((function(e){return e.path}))),e}function i(e,t,a){var r=a.onChooseFile,i=a.onUploadProgress;return t.then((function(e){if(r){var t=r(e);if(void 0!==t)return Promise.resolve(t).then((function(t){return void 0===t?e:t}))}return e})).then((function(t){return!1===t?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=arguments.length>3?arguments[3]:void 0;(t=Object.assign({},t)).errMsg=n;var i=t.tempFiles,o=i.length,c=0;return new Promise((function(n){for(;c=o)!i.find((function(e){return!e.url&&!e.errMsg}))&&n(t);else{var s=i[a];e.uploadFile({filePath:s.path,cloudPath:s.cloudPath,fileType:s.fileType,onUploadProgress:function(e){e.index=a,e.tempFile=s,e.tempFilePath=s.path,r&&r(e)}}).then((function(e){s.url=e.fileID,a0&&void 0!==arguments[0]?arguments[0]:{type:"all"};return"image"===t.type?i(e,function(e){var t=e.count,n=e.sizeType,i=e.sourceType,o=void 0===i?["album","camera"]:i,c=e.extension;return new Promise((function(e,i){uni.chooseImage({count:t,sizeType:n,sourceType:o,extension:c,success:function(t){e(r(t,"image"))},fail:function(e){i({errMsg:e.errMsg.replace("chooseImage:fail",a)})}})}))}(t),t):"video"===t.type?i(e,function(e){var t=e.camera,n=e.compressed,i=e.maxDuration,o=e.sourceType,c=void 0===o?["album","camera"]:o,u=e.extension;return new Promise((function(e,o){uni.chooseVideo({camera:t,compressed:n,maxDuration:i,sourceType:c,extension:u,success:function(t){var n=t.tempFilePath,a=t.duration,i=t.size,o=t.height,c=t.width;e(r({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:i,type:t.tempFile&&t.tempFile.type||"",width:c,height:o,duration:a,fileType:"video",cloudPath:""}]},"video"))},fail:function(e){o({errMsg:e.errMsg.replace("chooseVideo:fail",a)})}})}))}(t),t):i(e,function(e){var t=e.count,n=e.extension;return new Promise((function(e,i){var o=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(o=wx.chooseMessageFile),"function"!=typeof o)return i({errMsg:a+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});o({type:"all",count:t,extension:n,success:function(t){e(r(t))},fail:function(e){i({errMsg:e.errMsg.replace("chooseFile:fail",a)})}})}))}(t),t)}}})),Un=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Nn);function qn(e){return{props:{localdata:{type:Array,default:function(){return[]}},options:{type:[Object,Array],default:function(){return{}}},spaceInfo:{type:Object,default:function(){return{}}},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:function(){return{mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{}}},created:function(){var e=this;this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((function(){var t=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((function(n){t.push(e[n])})),t}),(function(t,n){if("manual"!==e.loadtime){for(var a=!1,r=[],i=2;i0&&void 0!==arguments[0]?arguments[0]:{},n=t.getone,a=void 0!==n&&n,r=t.success,i=t.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomGet().then((function(t){e.mixinDatacomLoading=!1;var n=t.result,i=n.data,o=n.count;e.getcount&&(e.mixinDatacomPage.count=o),e.mixinDatacomHasMore=i.length0&&void 0!==arguments[0]?arguments[0]:{},a=e.database(this.spaceInfo),r=n.action||this.action;r&&(a=a.action(r));var i=n.collection||this.collection;a=Array.isArray(i)?(t=a).collection.apply(t,(0,c.default)(i)):a.collection(i);var o=n.where||this.where;o&&Object.keys(o).length&&(a=a.where(o));var u=n.field||this.field;u&&(a=a.field(u));var s=n.foreignKey||this.foreignKey;s&&(a=a.foreignKey(s));var l=n.groupby||this.groupby;l&&(a=a.groupBy(l));var d=n.groupField||this.groupField;d&&(a=a.groupField(d)),!0===(void 0!==n.distinct?n.distinct:this.distinct)&&(a=a.distinct());var f=n.orderby||this.orderby;f&&(a=a.orderBy(f));var p=void 0!==n.pageCurrent?n.pageCurrent:this.mixinDatacomPage.current,h=void 0!==n.pageSize?n.pageSize:this.mixinDatacomPage.size,m=void 0!==n.getcount?n.getcount:this.getcount,v=void 0!==n.gettree?n.gettree:this.gettree,g=void 0!==n.gettreepath?n.gettreepath:this.gettreepath,y={getCount:m},b={limitLevel:void 0!==n.limitlevel?n.limitlevel:this.limitlevel,startWith:void 0!==n.startwith?n.startwith:this.startwith};return v&&(y.getTree=b),g&&(y.getTreePath=b),a=a.skip(h*(p-1)).limit(h).get(y),a}}}}function $n(e){return z("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}function Bn(){return zn.apply(this,arguments)}function zn(){return zn=(0,l.default)((0,s.default)().mark((function e(){var t,n,a,r,i,o,c,u=arguments;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=u.length>0&&void 0!==u[0]?u[0]:{},n=t.openid,a=t.callLoginByWeixin,r=void 0!==a&&a,i=$n(this),"mp-weixin"===q){e.next=4;break}throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(q,"`"));case 4:if(!n||!r){e.next=6;break}throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");case 6:if(!n){e.next=8;break}return e.abrupt("return",(i.mpWeixinOpenid=n,{}));case 8:return e.next=10,new Promise((function(e,t){uni.login({success:function(t){e(t.code)},fail:function(e){t(new Error(e.errMsg))}})}));case 10:return o=e.sent,c=this.importObject("uni-id-co",{customUI:!0}),e.next=14,c.secureNetworkHandshakeByWeixin({code:o,callLoginByWeixin:r});case 14:return i.mpWeixinCode=o,e.abrupt("return",{code:o});case 16:case"end":return e.stop()}}),e,this)}))),zn.apply(this,arguments)}function Wn(e){return Vn.apply(this,arguments)}function Vn(){return Vn=(0,l.default)((0,s.default)().mark((function e(t){var n;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=$n(this),e.abrupt("return",(n.initPromise||(n.initPromise=Bn.call(this,t)),n.initPromise));case 2:case"end":return e.stop()}}),e,this)}))),Vn.apply(this,arguments)}var Jn=function(e){(0,d.default)(n,e);var t=(0,f.default)(n);function n(){var e;return(0,m.default)(this,n),e=t.call(this),e._uniPushMessageCallback=e._receivePushMessage.bind((0,r.default)(e)),e._currentMessageId=-1,e._payloadQueue=[],e}return(0,v.default)(n,[{key:"init",value:function(){var e=this;return Promise.all([D("getSystemInfo")(),D("getPushClientId")()]).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=(0,i.default)(t,2),a=n[0];a=void 0===a?{}:a;var r=a.appId,o=n[1];o=void 0===o?{}:o;var c=o.cid;if(!r)throw new Error("Invalid appId, please check the manifest.json file");if(!c)throw new Error("Invalid push client id");e._appId=r,e._pushClientId=c,e._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),e.emit("open"),e._initMessageListener()}),(function(t){throw e.emit("error",t),e.close(),t}))}},{key:"open",value:function(){var e=(0,l.default)((0,s.default)().mark((function e(){return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.init());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_isUniCloudSSE",value:function(e){if("receive"!==e.type)return!1;var t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}},{key:"_receivePushMessage",value:function(e){if(this._isUniCloudSSE(e)){var t=e&&e.data&&e.data.payload,n=t.action,a=t.messageId,r=t.message;this._payloadQueue.push({action:n,messageId:a,message:r}),this._consumMessage()}}},{key:"_consumMessage",value:function(){for(var e=this;;){var t=this._payloadQueue.find((function(t){return t.messageId===e._currentMessageId+1}));if(!t)break;this._currentMessageId++,this._parseMessagePayload(t)}}},{key:"_parseMessagePayload",value:function(e){var t=e.action,n=e.messageId,a=e.message;"end"===t?this._end({messageId:n,message:a}):"message"===t&&this._appendMessage({messageId:n,message:a})}},{key:"_appendMessage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.messageId,e.message);this.emit("message",t)}},{key:"_end",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.messageId,e.message);this.emit("end",t),this.close()}},{key:"_initMessageListener",value:function(){uni.onPushMessage(this._uniPushMessageCallback)}},{key:"_destroy",value:function(){uni.offPushMessage(this._uniPushMessageCallback)}},{key:"toJSON",value:function(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}},{key:"close",value:function(){this._destroy(),this.emit("close")}}]),n}(function(){function e(){(0,m.default)(this,e),this._callback={}}return(0,v.default)(e,[{key:"addListener",value:function(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}},{key:"on",value:function(e,t){return this.addListener(e,t)}},{key:"removeListener",value:function(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');var n=this._callback[e];if(n){var a=function(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return n;return-1}(n,t);n.splice(a,1)}}},{key:"off",value:function(e,t){return this.removeListener(e,t)}},{key:"removeAllListener",value:function(e){delete this._callback[e]}},{key:"emit",value:function(e){for(var t=this._callback[e],n=arguments.length,a=new Array(n>1?n-1:0),r=1;r0)return e.init(t).database();if(this._database)return this._database;var n=on(cn,{uniClient:e});return this._database=n,n},e.databaseForJQL=function(t){if(t&&Object.keys(t).length>0)return e.init(t).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;var n=on(cn,{uniClient:e,isJQL:!0});return this._databaseForJQL=n,n}}(t),function(e){e.getCurrentUserInfo=Dn,e.chooseAndUploadFile=Un.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return qn(e)}}),e.SSEChannel=Jn,e.initSecureNetworkByWeixin=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.openid,a=t.callLoginByWeixin,r=void 0!==a&&a;return Wn.call(e,{openid:n,callLoginByWeixin:r})}}(e),e.importObject=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==(0,o.default)(t.secretMethods)&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);var a=n,r=a.customUI,i=a.loadingOptions,c=a.errorOptions,u=a.parseSystemError,d=!r;return new Proxy({},{get:function(a,r){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fn,n=e.interceptorName,a=e.getCallbackArgs;return(0,l.default)((0,s.default)().mark((function e(){var r,i,o,c,u,l,d=arguments;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(r=d.length,i=new Array(r),o=0;o0&&void 0!==c[0]?c[0]:{},n=t.title,a=t.content,r=t.showCancel,i=t.cancelText,o=t.confirmText,e.abrupt("return",new Promise((function(e,t){uni.showModal({title:n,content:a,showCancel:r,cancelText:i,confirmText:o,success:function(t){e(t)},fail:function(){e({confirm:!1,cancel:!0})}})})));case 2:case"end":return e.stop()}}),e)})))({title:"提示",content:O,showCancel:c.retry,cancelText:"取消",confirmText:c.retry?"重试":"确定"});case 33:if(P=a.sent,I=P.confirm,!c.retry||!I){a.next=37;break}return a.abrupt("return",f.apply(void 0,v));case 37:throw T=new he({subject:w,code:x,message:k,requestId:p.requestId}),T.detail=p.result,ce(X,{type:ae,content:T}),T;case 39:return a.abrupt("return",(ce(X,{type:ae,content:p.result}),p.result));case 40:case"end":return a.stop()}}),a,null,[[5,11]])})));function f(){return a.apply(this,arguments)}return f}(),interceptorName:"callObject",getCallbackArgs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params;return{objectName:t,methodName:r,params:n}}})}})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((function(e){if(t[e]){var n=t[e];t[e]=function(){return n.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(n){var a=this,r=!1;if("callFunction"===t){var i=n&&n.type||O;r=i!==O}var o="callFunction"===t&&!r,c=this._initPromiseHub.exec();n=n||{};var u=de(n),s=u.success,l=u.fail,d=u.complete,f=c.then((function(){return r?Promise.resolve():K(G(t,"invoke"),n)})).then((function(){return e.call(a,n)})).then((function(e){return r?Promise.resolve(e):K(G(t,"success"),e).then((function(){return K(G(t,"complete"),e)})).then((function(){return o&&ce(X,{type:ne,content:e}),Promise.resolve(e)}))}),(function(e){return r?Promise.reject(e):K(G(t,"fail"),e).then((function(){return K(G(t,"complete"),e)})).then((function(){return ce(X,{type:ne,content:e}),Promise.reject(e)}))}));if(!(s||l||d))return f;f.then((function(e){s&&s(e),d&&d(e),o&&ce(X,{type:ne,content:e})}),(function(e){l&&l(e),d&&d(e),o&&ce(X,{type:ne,content:e})}))}}(t[e],e).bind(t)}})),t.init=this.init,t}}]),e}());(function(){var e=$,t={};if(e&&1===e.length)t=e[0],Kn=Kn.init(t),Kn._isDefault=!0;else{var n;n=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"].forEach((function(e){Kn[e]=function(){return console.error(n),Promise.reject(new he({code:"SYS_ERR",message:n}))}}))}Object.assign(Kn,{get mixinDatacom(){return qn(Kn)}}),Fn(Kn),Kn.addInterceptor=J,Kn.removeInterceptor=H,Kn.interceptObject=Q})();var Gn=Kn;t.default=Gn}).call(this,n("c8ba"))},aada:function(e,t,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("ac1f"),n("00b4"),n("a9e3"),n("7db0"),n("d3b7");var r=a(n("2b2f")),i={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:function(){return{icons:r.default.glyphs}},computed:{unicode:function(){var e=this,t=this.icons.find((function(t){return t.font_class===e.type}));return t?unescape("%u".concat(t.unicode)):""},iconSize:function(){return function(e){return"number"===typeof e||/^[0-9]*$/g.test(e)?e+"px":e}(this.size)}},methods:{_onClick:function(){this.$emit("click")}}};t.default=i},ac53:function(e,t,n){"use strict";n.r(t);var a=n("959d"),r=n("98ad");for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n("da6c");var o=n("f0c5"),c=Object(o["a"])(r["default"],a["b"],a["c"],!1,null,"15518d3b",null,!1,a["a"],void 0);t["default"]=c.exports},aff5:function(e,t,n){var a=n("23e7");a({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},b21a:function(e,t,n){"use strict";n.r(t);var a=n("78ca"),r=n("a45e");for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n("28f6");var o=n("f0c5"),c=Object(o["a"])(r["default"],a["b"],a["c"],!1,null,"44c0d81e",null,!1,a["a"],void 0);t["default"]=c.exports},b313:function(e,t,n){"use strict";var a=String.prototype.replace,r=/%20/g,i={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return a.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}},b380:function(e,t,n){"use strict";function a(e,n){return t.default=a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,n)}n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=a,n("131a")},b636:function(e,t,n){var a=n("e065");a("asyncIterator")},b67d:function(e,t,n){var a=n("89c0");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=n("4f06").default;r("3fe00ece",a,!0,{sourceMap:!1,shadowMode:!1})},b6e1:function(e,t,n){"use strict";n.r(t);var a=n("d3cf"),r=n("e5c9");for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n("2dd4");var o=n("f0c5"),c=Object(o["a"])(r["default"],a["b"],a["c"],!1,null,"0a75b799",null,!1,a["a"],void 0);t["default"]=c.exports},b85c:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,a.default)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){u=!0,o=e},f:function(){try{c||null==n["return"]||n["return"]()}finally{if(u)throw o}}}},n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("d9e2"),n("d401");var a=function(e){return e&&e.__esModule?e:{default:e}}(n("06c5"))},b9da:function(e,t,n){"use strict";var a=n("f611"),r=n.n(a);r.a},baa5:function(e,t,n){var a=n("23e7"),r=n("e58c");a({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},bac7:function(e,t,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n("c7eb")),i=a(n("1da1")),o=a(n("ade3"));n("a9e3"),n("7db0"),n("d3b7"),n("99af"),n("159b"),n("c975"),n("e9c4"),n("14d9"),n("ddb0");var c=a(n("26a5")),u=n("de9f"),s=a(n("e143"));s.default.prototype.binddata=function(e,t,n){if(n)this.$refs[n].setValue(e,t);else{var a;for(var r in this.$refs){var i=this.$refs[r];if(i&&i.$options&&"uniForms"===i.$options.name){a=i;break}}if(!a)return console.error("当前 uni-froms 组件缺少 ref 属性");a.setValue(e,t)}};var l={name:"uniForms",emits:["validate","submit"],options:{virtualHost:!0},props:{value:{type:Object,default:function(){return null}},modelValue:{type:Object,default:function(){return null}},model:{type:Object,default:function(){return null}},rules:{type:Object,default:function(){return{}}},errShowType:{type:String,default:"undertext"},validateTrigger:{type:String,default:"submit"},labelPosition:{type:String,default:"left"},labelWidth:{type:[String,Number],default:""},labelAlign:{type:String,default:"left"},border:{type:Boolean,default:!1}},provide:function(){return{uniForm:this}},data:function(){return{formData:{},formRules:{}}},computed:{localData:function(){var e=this.model||this.modelValue||this.value;return e?(0,u.deepCopy)(e):{}}},watch:{rules:{handler:function(e,t){this.setRules(e)},deep:!0,immediate:!0}},created:function(){this.childrens=[],this.inputChildrens=[],this.setRules(this.rules)},methods:{setRules:function(e){this.formRules=Object.assign({},this.formRules,e),this.validator=new c.default(e)},setValue:function(e,t){var n=this.childrens.find((function(t){return t.name===e}));return n?(this.formData[e]=(0,u.getValue)(e,t,this.formRules[e]&&this.formRules[e].rules||[]),n.onFieldChange(this.formData[e])):null},validate:function(e,t){return this.checkAll(this.formData,e,t)},validateField:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;t=[].concat(t);var a={};return this.childrens.forEach((function(n){var r=(0,u.realName)(n.name);-1!==t.indexOf(r)&&(a=Object.assign({},a,(0,o.default)({},r,e.formData[r])))})),this.checkAll(a,[],n)},clearValidate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e=[].concat(e),this.childrens.forEach((function(t){if(0===e.length)t.errMsg="";else{var n=(0,u.realName)(t.name);-1!==e.indexOf(n)&&(t.errMsg="")}}))},submit:function(e,t,n){var a=this,r=function(e){var t=a.childrens.find((function(t){return t.name===e}));t&&void 0===a.formData[e]&&(a.formData[e]=a._getValue(e,a.dataValue[e]))};for(var i in this.dataValue)r(i);return n||console.warn("submit 方法即将废弃,请使用validate方法代替!"),this.checkAll(this.formData,e,t,"submit")},checkAll:function(e,t,n,a){var o=this;return(0,i.default)((0,r.default)().mark((function i(){var c,s,l,d,f,p,h,m,v,g,y;return(0,r.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(o.validator){i.next=2;break}return i.abrupt("return");case 2:for(l in c=[],s=function(e){var t=o.childrens.find((function(t){return(0,u.realName)(t.name)===e}));t&&c.push(t)},e)s(l);n||"function"!==typeof t||(n=t),!n&&"function"!==typeof n&&Promise&&(d=new Promise((function(e,t){n=function(n,a){n?t(n):e(a)}}))),f=[],p=JSON.parse(JSON.stringify(e)),i.t0=(0,r.default)().keys(c);case 10:if((i.t1=i.t0()).done){i.next=23;break}return h=i.t1.value,m=c[h],v=(0,u.realName)(m.name),i.next=16,m.onFieldChange(p[v]);case 16:if(g=i.sent,!g){i.next=21;break}if(f.push(g),"toast"!==o.errShowType&&"modal"!==o.errShowType){i.next=21;break}return i.abrupt("break",23);case 21:i.next=10;break;case 23:if(Array.isArray(f)&&0===f.length&&(f=null),Array.isArray(t)&&t.forEach((function(e){var t=(0,u.realName)(e),n=(0,u.getDataValue)(e,o.localData);void 0!==n&&(p[t]=n)})),"submit"===a?o.$emit("submit",{detail:{value:p,errors:f}}):o.$emit("validate",f),{},y=(0,u.rawData)(p,o.name),n&&"function"===typeof n&&n(f,y),!d||!n){i.next=33;break}return i.abrupt("return",d);case 33:return i.abrupt("return",null);case 34:case"end":return i.stop()}}),i)})))()},validateCheck:function(e){this.$emit("validate",e)},_getValue:u.getValue,_isRequiredField:u.isRequiredField,_setDataValue:u.setDataValue,_getDataValue:u.getDataValue,_realName:u.realName,_isRealName:u.isRealName,_isEqual:u.isEqual}};t.default=l},bb2f:function(e,t,n){var a=n("d039");e.exports=!a((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bc87:function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,'@charset "UTF-8";\n/* 水平间距 */\n/* 水平间距 */',""]),e.exports=t},bf19:function(e,t,n){"use strict";var a=n("23e7"),r=n("c65b");a({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return r(URL.prototype.toString,this)}})},bfdd:function(e,t,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("7db0"),n("d3b7"),n("14d9"),n("a434"),n("c740");var r=a(n("e143")),i=a(n("26cb"));r.default.use(i.default);var o=new i.default.Store({state:{picTitle:"",hasLogin:!1,userInfo:{},myConfList:[],leavelist:[],vest:{},bagNote:"",alreadysublist:[],allwords:[],seleImage:[],config:[]},mutations:{setconfig:function(e,t){e.picTitle=t.find((function(e){return"DNS_URl"==e.confAlias})).confNum,uni.setStorageSync("h5_address",t.find((function(e){return"H5_URL"==e.confAlias})).confNum),e.config=t},clearImage:function(e,t){e.seleImage=[]},changseleImage:function(e,t){"add"==t.key?e.seleImage.push(t.item):e.seleImage.splice(t.item,1)},setallwords:function(e,t){e.allwords=t},deletesublist:function(e,t){var n=e.alreadysublist.findIndex((function(e){return e.id==t.id}));e.alreadysublist.splice(n,1)},setsublist:function(e,t){if(t){var n=e.alreadysublist.findIndex((function(e){return e.id==t.id}));-1!=n?e.alreadysublist[n]=t:e.alreadysublist.push(t)}else e.alreadysublist=[]},deleteSublist:function(e,t){e.alreadysublist.splice(t,1)},setbagNote:function(e,t){e.bagNote=t},setleavelist:function(e,t){e.leavelist=t},setmyConfList:function(e,t){e.myConfList=t},login:function(e,t){""!=t&&t?(e.hasLogin=!0,e.userInfo=t,uni.setStorage({key:"userInfo",data:t})):e.hasLogin=!1},acylogin:function(e,t){""!=t&&t?(e.hasLogin=!0,e.userInfo=t,uni.setStorageSync("userInfo",t)):e.hasLogin=!1},logout:function(e){e.hasLogin=!1,e.userInfo={},uni.removeStorageSync("userInfo")},setVest:function(e,t){e.vest=t}},actions:{}}),c=o;t.default=c},c35d:function(e,t,n){"use strict";n.r(t);var a=n("4dbe"),r=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(i);t["default"]=r.a},c4d7:function(e,t,n){var a=n("3a38");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=n("4f06").default;r("48d897c4",a,!0,{sourceMap:!1,shadowMode:!1})},c7eb:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ t.default=function(){return e};var e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function d(e,t,n,a){var r=t&&t.prototype instanceof h?t:h,o=Object.create(r.prototype),c=new P(a||[]);return i(o,"_invoke",{value:k(e,n,c)}),o}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=d;var p={};function h(){}function m(){}function v(){}var g={};l(g,c,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(I([])));b&&b!==n&&r.call(b,c)&&(g=b);var _=v.prototype=h.prototype=Object.create(g);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){var n;i(this,"_invoke",{value:function(i,o){function c(){return new t((function(n,c){(function n(i,o,c,u){var s=f(e[i],e,o);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==(0,a.default)(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,c,u)}),(function(e){n("throw",e,c,u)})):t.resolve(d).then((function(e){l.value=e,c(l)}),(function(e){return n("throw",e,c,u)}))}u(s.arg)})(i,o,n,c)}))}return n=n?n.then(c,c):c()}})}function k(e,t,n){var a="suspendedStart";return function(r,i){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===r)throw i;return T()}for(n.method=r,n.arg=i;;){var o=n.delegate;if(o){var c=S(o,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===a)throw a="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a="executing";var u=f(e,t,n);if("normal"===u.type){if(a=n.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a="completed",n.method="throw",n.arg=u.arg)}}}function S(e,t){var n=t.method,a=e.iterator[n];if(void 0===a)return t.delegate=null,"throw"===n&&e.iterator["return"]&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var r=f(a,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function I(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){for(;++n=0;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;A(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:I(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e},n("7a82"),n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("b636"),n("944a"),n("0c47"),n("23dc"),n("3410"),n("d9e2"),n("d401"),n("14d9"),n("159b"),n("131a"),n("26e9"),n("fb6a");var a=function(e){return e&&e.__esModule?e:{default:e}}(n("53ca"))},cad8:function(e,t,n){var a=n("23e7"),r=n("cb4c");a({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==r},{trimRight:r})},cb4c:function(e,t,n){"use strict";var a=n("58a8").end,r=n("c8d2");e.exports=r("trimEnd")?function(){return a(this)}:"".trimEnd},cc16:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"uni-forms-item",class:["is-direction-"+e.localLabelPos,e.border?"uni-forms-item--border":"",e.border&&e.isFirstBorder?"is-first-border":""]},[e._t("label",[n("v-uni-view",{staticClass:"uni-forms-item__label",class:{"no-label":!e.label&&!e.isRequired},style:{width:e.localLabelWidth,justifyContent:e.localLabelAlign}},[e.isRequired?n("v-uni-text",{staticClass:"is-required"},[e._v("*")]):e._e(),n("v-uni-text",[e._v(e._s(e.label))])],1)]),n("v-uni-view",{staticClass:"uni-forms-item__content"},[e._t("default"),n("v-uni-view",{staticClass:"uni-forms-item__error",class:{"msg--active":e.msg}},[n("v-uni-text",[e._v(e._s(e.msg))])],1)],2)],2)},r=[]},d233:function(e,t,n){"use strict";var a=n("b313"),r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),c=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},a=0;a1){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var a=[],r=0;r=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===a.RFC1738&&(40===l||41===l)?u+=c.charAt(s):l<128?u+=o[l]:l<2048?u+=o[192|l>>6]+o[128|63&l]:l<55296||l>=57344?u+=o[224|l>>12]+o[128|l>>6&63]+o[128|63&l]:(s+=1,l=65536+((1023&l)<<10|1023&c.charCodeAt(s)),u+=o[240|l>>18]+o[128|l>>12&63]+o[128|l>>6&63]+o[128|63&l])}return u},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],a=0;a1){var n=t.reduce((function(e,t){return e+"#".concat(t)}),"_formdata_");return n}return t[0]||e};t.isRealName=function(e){return/^_formdata_#*/.test(e)};t.rawData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=JSON.parse(JSON.stringify(e)),n={};for(var a in t){var r=c(a);u(n,r,t[a])}return n};var c=function(e){var t=e.replace("_formdata_#","");return t=t.split("#").map((function(e){return d(e)?Number(e):e})),t};t.name2arr=c;var u=function(e,t,n){return"object"!==(0,r.default)(e)||s(t).reduce((function(e,t,a,r){return a===r.length-1?(e[t]=n,null):(t in e||(e[t]=/^[0-9]{1,}$/.test(r[a+1])?[]:{}),e[t])}),e),e};function s(e){return Array.isArray(e)?e:e.replace(/\[/g,".").replace(/\]/g,"").split(".")}t.objSet=u;var l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"undefined",a=s(t),r=a.reduce((function(e,t){return(e||{})[t]}),e);return r&&void 0===r?n:r};t.objGet=l;var d=function(e){return!isNaN(Number(e))};t.isNumber=d;var f=function(e){return"boolean"===typeof e};t.isBoolean=f;t.isRequiredField=function(e){for(var t=!1,n=0;n