You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
204 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["inspect-inspect"],{"02a4":function(e,t,n){"use strict";var r=n("ffb8"),i=n.n(r);i.a},"05b5":function(e,t,n){"use strict";var r=n("a1de"),i=n.n(r);i.a},"07ec":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,".uni-transition[data-v-52b9b862]{transition-timing-function:ease;transition-duration:.3s;transition-property:opacity,-webkit-transform;transition-property:transform,opacity;transition-property:transform,opacity,-webkit-transform}.fade-in[data-v-52b9b862]{opacity:0}.fade-active[data-v-52b9b862]{opacity:1}.slide-top-in[data-v-52b9b862]{\n\t/* transition-property: transform, opacity; */-webkit-transform:translateY(-100%);transform:translateY(-100%)}.slide-top-active[data-v-52b9b862]{-webkit-transform:translateY(0);transform:translateY(0)\n\t/* opacity: 1; */}.slide-right-in[data-v-52b9b862]{-webkit-transform:translateX(100%);transform:translateX(100%)}.slide-right-active[data-v-52b9b862]{-webkit-transform:translateX(0);transform:translateX(0)}.slide-bottom-in[data-v-52b9b862]{-webkit-transform:translateY(100%);transform:translateY(100%)}.slide-bottom-active[data-v-52b9b862]{-webkit-transform:translateY(0);transform:translateY(0)}.slide-left-in[data-v-52b9b862]{-webkit-transform:translateX(-100%);transform:translateX(-100%)}.slide-left-active[data-v-52b9b862]{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}.zoom-in-in[data-v-52b9b862]{-webkit-transform:scale(.8);transform:scale(.8)}.zoom-out-active[data-v-52b9b862]{-webkit-transform:scale(1);transform:scale(1)}.zoom-out-in[data-v-52b9b862]{-webkit-transform:scale(1.2);transform:scale(1.2)}",""]),e.exports=t},"08c9":function(e,t,n){"use strict";var r=n("b0ec"),i=n.n(r);i.a},"08e4":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/* uni.scss */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.u-input[data-v-54ca0272]{position:relative;flex:1;display:flex;flex-direction:row}.u-input__input[data-v-54ca0272]{font-size:%?28?%;color:#303133;flex:1}.u-input__textarea[data-v-54ca0272]{width:auto;font-size:%?28?%;color:#303133;padding:%?10?% 0;line-height:normal;flex:1}.u-input--border[data-v-54ca0272]{border-radius:%?6?%;border-radius:4px;border:1px solid #dcdfe6}.u-input--error[data-v-54ca0272]{border-color:#fa3534!important}.u-input__right-icon__item[data-v-54ca0272]{margin-left:%?10?%}.u-input__right-icon--select[data-v-54ca0272]{transition:-webkit-transform .4s;transition:transform .4s;transition:transform .4s,-webkit-transform .4s}.u-input__right-icon--select--reverse[data-v-54ca0272]{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}',""]),e.exports=t},"09ac":function(e,t,n){var r=n("0d40");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("b86f0b02",r,!0,{sourceMap:!1,shadowMode:!1})},"0d40":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/* uni.scss */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.uni-popup[data-v-c9e94af0]{position:fixed;z-index:99}.uni-popup__mask[data-v-c9e94af0]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.4);opacity:0}.mask-ani[data-v-c9e94af0]{transition-property:opacity;transition-duration:.2s}.uni-top-mask[data-v-c9e94af0]{opacity:1}.uni-bottom-mask[data-v-c9e94af0]{opacity:1}.uni-center-mask[data-v-c9e94af0]{opacity:1}.uni-popup__wrapper[data-v-c9e94af0]{display:block;position:absolute}.top[data-v-c9e94af0]{top:var(--window-top)}.bottom[data-v-c9e94af0]{bottom:0}.uni-popup__wrapper-box[data-v-c9e94af0]{display:block;position:relative;\n /* iphonex 等安全区设置,底部安全区适配 */padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.content-ani[data-v-c9e94af0]{transition-property:opacity,-webkit-transform;transition-property:transform,opacity;transition-property:transform,opacity,-webkit-transform;transition-duration:.2s}.uni-top-content[data-v-c9e94af0]{-webkit-transform:translateY(0);transform:translateY(0)}.uni-bottom-content[data-v-c9e94af0]{-webkit-transform:translateY(0);transform:translateY(0)}.uni-center-content[data-v-c9e94af0]{-webkit-transform:scale(1);transform:scale(1);opacity:1}',""]),e.exports=t},"0dfd":function(e,t,n){"use strict";n.r(t);var r=n("4fb3"),i=n("d6c1");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("6dc4");var o,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"c9e94af0",null,!1,r["a"],o);t["default"]=u.exports},"1a1e":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var r={uForm:n("9310").default,uFormItem:n("abb4").default,uInput:n("eede").default,uSelect:n("cc37").default,uButton:n("2f7a").default,zhilinCascader:n("a5ab").default,htzImageUpload:n("f61f").default},i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"content"},[n("u-form",{ref:"uForm",attrs:{model:e.form,"label-width":120}},[n("u-form-item",{attrs:{label:"片区",prop:"area_id"}},[n("u-input",{attrs:{placeholder:"请选择片区","label-position":"top",type:"select",border:!1},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.areaShow=!0}},model:{value:e.areaName,callback:function(t){e.areaName=t},expression:"areaName"}}),n("u-select",{attrs:{mode:"single-column","value-name":"id","label-name":"value",list:e.areaList},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.confirmArea.apply(void 0,arguments)}},model:{value:e.areaShow,callback:function(t){e.areaShow=t},expression:"areaShow"}})],1),n("u-form-item",{attrs:{label:"河道",prop:"river_id"}},[n("u-input",{attrs:{placeholder:"请选择河道","label-position":"top",type:"select",border:!1},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.riverShow=!0}},model:{value:e.riverName,callback:function(t){e.riverName=t},expression:"riverName"}}),n("u-select",{attrs:{mode:"single-column","value-name":"id","label-name":"name",list:e.riverList},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.confirmRiver.apply(void 0,arguments)}},model:{value:e.riverShow,callback:function(t){e.riverShow=t},expression:"riverShow"}})],1),n("u-form-item",{attrs:{label:"所在位置","label-position":"top",required:!0}},[n("u-input",{attrs:{disabled:!0,type:"text"},model:{value:e.form.address,callback:function(t){e.$set(e.form,"address",t)},expression:"form.address"}}),n("u-button",{attrs:{slot:"right",shape:"square",size:"mini",type:"info"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.chooseLocation.apply(void 0,arguments)}},slot:"right"},[e._v("重新获取")])],1),n("u-form-item",{attrs:{label:"问题类型",prop:"ask_type_id"}},[n("u-input",{attrs:{placeholder:"请选择问题类型","label-position":"top",type:"select",border:!1},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.askShow=!0}},model:{value:e.askName,callback:function(t){e.askName=t},expression:"askName"}}),n("zhilin-cascader",{attrs:{options:e.askList,fieldNames:e.fieldNames,isFullValue:!0},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.confirmAsk.apply(void 0,arguments)}},model:{value:e.askShow,callback:function(t){e.askShow=t},expression:"askShow"}})],1),n("u-form-item",{attrs:{label:"扣分条款",prop:"dec_score"}},[n("u-input",{attrs:{placeholder:"请选择河道","label-position":"top",type:"select",border:!1},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.decShow=!0}},model:{value:e.decName,callback:function(t){e.decName=t},expression:"decName"}}),n("u-select",{attrs:{mode:"single-column","value-name":"id","label-name":"name",list:e.decList},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.confirmDec.apply(void 0,arguments)}},model:{value:e.decShow,callback:function(t){e.decShow=t},expression:"decShow"}})],1),n("u-form-item",{attrs:{label:"问题影像",prop:"picFileList"}},[n("htz-image-upload",{attrs:{max:9,mediaType:"image",chooseNum:9,sourceType:["album","camera"],compress:!1,quality:80,formData:e.otherData,remove:!0,dataType:1,action:e.action},on:{uploadSuccess:function(t){arguments[0]=t=e.$handleEvent(t),function(t){return e.uploadSuccess(t,"pic")}.apply(void 0,arguments)},imgDelete:function(t){arguments[0]=t=e.$handleEvent(t),function(t){return e.imgDelete(t,"pic")}.apply(void 0,arguments)},uploadFail:function(t){arguments[0]=t=e.$handleEvent(t),e.uploadFail.apply(void 0,arguments)}},model:{value:e.picFileList,callback:function(t){e.picFileList=t},expression:"picFileList"}})],1),n("u-form-item",{attrs:{label:"问题视频",prop:"videoFileList"}},[n("htz-image-upload",{attrs:{max:9,mediaType:"video",chooseNum:9,sourceType:["album","camera"],compress:!1,quality:80,formData:e.otherData,remove:!0,dataType:1,action:e.action},on:{uploadSuccess:function(t){arguments[0]=t=e.$handleEvent(t),function(t){return e.uploadSuccess(t,"video")}.apply(void 0,arguments)},imgDelete:function(t){arguments[0]=t=e.$handleEvent(t),function(t){return e.imgDelete(t,"video")}.apply(void 0,arguments)},uploadFail:function(t){arguments[0]=t=e.$handleEvent(t),e.uploadFail.apply(void 0,arguments)}},model:{value:e.videoFileList,callback:function(t){e.videoFileList=t},expression:"videoFileList"}})],1),n("u-form-item",{attrs:{label:"问题语音",prop:"audioFileList"}},[n("htz-image-upload",{attrs:{max:9,mediaType:"video",chooseNum:9,sourceType:["album","camera"],compress:!1,quality:80,formData:e.otherData,remove:!0,dataType:1,action:e.action},on:{uploadSuccess:function(t){arguments[0]=t=e.$handleEvent(t),function(t){return e.uploadSuccess(t,"audio")}.apply(void 0,arguments)},imgDelete:function(t){arguments[0]=t=e.$handleEvent(t),function(t){return e.imgDelete(t,"audio")}.apply(void 0,arguments)},uploadFail:function(t){arguments[0]=t=e.$handleEvent(t),e.uploadFail.apply(void 0,arguments)}},model:{value:e.audioFileList,callback:function(t){e.audioFileList=t},expression:"audioFileList"}})],1),n("u-form-item",{attrs:{label:"备注",prop:"ask_content"}},[n("u-input",{attrs:{type:"textarea",placeholder:"请输入备注","label-position":"top"},model:{value:e.form.ask_content,callback:function(t){e.$set(e.form,"ask_content",t)},expression:"form.ask_content"}})],1)],1),n("u-button",{attrs:{type:"primary"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.submit.apply(void 0,arguments)}}},[e._v("提交")])],1)},a=[]},"1a71":function(e,t,n){var r=n("08e4");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("0729ab4b",r,!0,{sourceMap:!1,shadowMode:!1})},"1d4f":function(e,t,n){"use strict";(function(e){function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n("99af"),n("a623"),n("4160"),n("c975"),n("d81d"),n("fb6a"),n("a434"),n("a9e3"),n("b64b"),n("d3b7"),n("e25e"),n("4d63"),n("ac1f"),n("25f0"),n("466d"),n("5319"),n("159b"),n("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=/%[sdj%]/g,a=function(){};function o(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,a=t[0],o=t.length;if("function"===typeof a)return a.apply(null,t.slice(1));if("string"===typeof a){for(var s=String(a).replace(i,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(n){return"[Circular]"}break;default:return e}})),u=t[r];r<o;u=t[++r])s+=" "+u;return s}return a}function u(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}function c(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!u(t)||"string"!==typeof e||e))}function l(e,t,n){var r=[],i=0,a=e.length;function o(e){r.push.apply(r,e),i++,i===a&&n(r)}e.forEach((function(e){t(e,o)}))}function f(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length)n(o);else{var s=r;r+=1,s<i?t(e[s],a):n([])}}a([])}function d(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}function h(e,t,n,r){if(t.first){var i=new Promise((function(t,i){var a=function(e){return r(e),e.length?i({errors:e,fields:o(e)}):t()},s=d(e);f(s,n,a)}));return i["catch"]((function(e){return e})),i}var a=t.firstFields||[];!0===a&&(a=Object.keys(e));var s=Object.keys(e),u=s.length,c=0,h=[],p=new Promise((function(t,i){var d=function(e){if(h.push.apply(h,e),c++,c===u)return r(h),h.length?i({errors:h,fields:o(h)}):t()};s.length||(r(h),t()),s.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?f(r,n,d):l(r,n,d)}))}));return p["catch"]((function(e){return e})),p}function p(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:"function"===typeof t?t():t,field:t.field||e.fullField}}}function v(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];"object"===typeof i&&"object"===typeof e[n]?e[n]=r({},e[n],{},i):e[n]=i}return e}function m(e,t,n,r,i,a){!e.required||n.hasOwnProperty(e.field)&&!c(t,a||e.type)||r.push(s(i.messages.required,e.fullField))}function g(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(s(i.messages.whitespace,e.fullField))}"undefined"!==typeof e&&Object({NODE_ENV:"production",VUE_APP_NAME:"patrol-gamble-mobile",VUE_APP_PLATFORM:"h5",VUE_APP_INDEX_CSS_HASH:"b0707a6a",BASE_URL:"/mobile/"});var y={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,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"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},b={integer:function(e){return b.number(e)&&parseInt(e,10)===e},float:function(e){return b.number(e)&&!b.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof+e},object:function(e){return"object"===typeof e&&!b.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(y.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(y.url)},hex:function(e){return"string"===typeof e&&!!e.match(y.hex)}};function _(e,t,n,r,i){if(e.required&&void 0===t)m(e,t,n,r,i);else{var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;a.indexOf(o)>-1?b[o](t)||r.push(s(i.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(s(i.messages.types[o],e.fullField,e.type))}}function w(e,t,n,r,i){var a="number"===typeof e.len,o="number"===typeof e.min,u="number"===typeof e.max,c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,f=null,d="number"===typeof t,h="string"===typeof t,p=Array.isArray(t);if(d?f="number":h?f="string":p&&(f="array"),!f)return!1;p&&(l=t.length),h&&(l=t.replace(c,"_").length),a?l!==e.len&&r.push(s(i.messages[f].len,e.fullField,e.len)):o&&!u&&l<e.min?r.push(s(i.messages[f].min,e.fullField,e.min)):u&&!o&&l>e.max?r.push(s(i.messages[f].max,e.fullField,e.max)):o&&u&&(l<e.min||l>e.max)&&r.push(s(i.messages[f].range,e.fullField,e.min,e.max))}var k="enum";function x(e,t,n,r,i){e[k]=Array.isArray(e[k])?e[k]:[],-1===e[k].indexOf(t)&&r.push(s(i.messages[k],e.fullField,e[k].join(", ")))}function S(e,t,n,r,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(s(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var a=new RegExp(e.pattern);a.test(t)||r.push(s(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}var T={required:m,whitespace:g,type:_,range:w,enum:x,pattern:S};function P(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(c(t,"string")&&!e.required)return n();T.required(e,t,r,a,i,"string"),c(t,"string")||(T.type(e,t,r,a,i),T.range(e,t,r,a,i),T.pattern(e,t,r,a,i),!0===e.whitespace&&T.whitespace(e,t,r,a,i))}n(a)}function A(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return n();T.required(e,t,r,a,i),void 0!==t&&T.type(e,t,r,a,i)}n(a)}function C(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(""===t&&(t=void 0),c(t)&&!e.required)return n();T.required(e,t,r,a,i),void 0!==t&&(T.type(e,t,r,a,i),T.range(e,t,r,a,i))}n(a)}function O(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return n();T.required(e,t,r,a,i),void 0!==t&&T.type(e,t,r,a,i)}n(a)}function I(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return n();T.required(e,t,r,a,i),c(t)||T.type(e,t,r,a,i)}n(a)}function E(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return n();T.required(e,t,r,a,i),void 0!==t&&(T.type(e,t,r,a,i),T.range(e,t,r,a,i))}n(a)}function R(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return n();T.required(e,t,r,a,i),void 0!==t&&(T.type(e,t,r,a,i),T.range(e,t,r,a,i))}n(a)}function L(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(c(t,"array")&&!e.required)return n();T.required(e,t,r,a,i,"array"),c(t,"array")||(T.type(e,t,r,a,i),T.range(e,t,r,a,i))}n(a)}function F(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return n();T.required(e,t,r,a,i),void 0!==t&&T.type(e,t,r,a,i)}n(a)}var N="enum";function D(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return n();T.required(e,t,r,a,i),void 0!==t&&T[N](e,t,r,a,i)}n(a)}function q(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(c(t,"string")&&!e.required)return n();T.required(e,t,r,a,i),c(t,"string")||T.pattern(e,t,r,a,i)}n(a)}function U(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return n();var s;if(T.required(e,t,r,a,i),!c(t))s="number"===typeof t?new Date(t):t,T.type(e,s,r,a,i),s&&T.range(e,s.getTime(),r,a,i)}n(a)}function M(e,t,n,r,i){var a=[],o=Array.isArray(t)?"array":typeof t;T.required(e,t,r,a,i,o),n(a)}function j(e,t,n,r,i){var a=e.type,o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(c(t,a)&&!e.required)return n();T.required(e,t,r,o,i,a),c(t,a)||T.type(e,t,r,o,i)}n(o)}function $(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return n();T.required(e,t,r,a,i)}n(a)}var z={string:P,method:A,number:C,boolean:O,regexp:I,integer:E,float:R,array:L,object:F,enum:D,pattern:q,date:U,url:j,hex:j,email:j,required:M,any:$};function B(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var V=B();function K(e){this.rules=null,this._messages=V,this.define(e)}K.prototype={messages:function(e){return e&&(this._messages=v(B(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==typeof e||Array.isArray(e))throw new Error("Rules must be an object");var t,n;for(t in this.rules={},e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e,t,n){var i=this;void 0===t&&(t={}),void 0===n&&(n=function(){});var a,u,c=e,l=t,f=n;if("function"===typeof l&&(f=l,l={}),!this.rules||0===Object.keys(this.rules).length)return f&&f(),Promise.resolve();function d(e){var t,n=[],r={};function i(e){var t;Array.isArray(e)?n=(t=n).concat.apply(t,e):n.push(e)}for(t=0;t<e.length;t++)i(e[t]);n.length?r=o(n):(n=null,r=null),f(n,r)}if(l.messages){var m=this.messages();m===V&&(m=B()),v(m,l.messages),l.messages=m}else l.messages=this.messages();var g={},y=l.keys||Object.keys(this.rules);y.forEach((function(t){a=i.rules[t],u=c[t],a.forEach((function(n){var a=n;"function"===typeof a.transform&&(c===e&&(c=r({},c)),u=c[t]=a.transform(u)),a="function"===typeof a?{validator:a}:r({},a),a.validator=i.getValidationMethod(a),a.field=t,a.fullField=a.fullField||t,a.type=i.getType(a),a.validator&&(g[t]=g[t]||[],g[t].push({rule:a,value:u,source:c,field:t}))}))}));var b={};return h(g,l,(function(e,t){var n,i=e.rule,a=("object"===i.type||"array"===i.type)&&("object"===typeof i.fields||"object"===typeof i.defaultField);function o(e,t){return r({},t,{fullField:i.fullField+"."+e})}function u(n){void 0===n&&(n=[]);var u=n;if(Array.isArray(u)||(u=[u]),!l.suppressWarning&&u.length&&K.warning("async-validator:",u),u.length&&i.message&&(u=[].concat(i.message)),u=u.map(p(i)),l.first&&u.length)return b[i.field]=1,t(u);if(a){if(i.required&&!e.value)return u=i.message?[].concat(i.message).map(p(i)):l.error?[l.error(i,s(l.messages.required,i.field))]:[],t(u);var c={};if(i.defaultField)for(var f in e.value)e.value.hasOwnProperty(f)&&(c[f]=i.defaultField);for(var d in c=r({},c,{},e.rule.fields),c)if(c.hasOwnProperty(d)){var h=Array.isArray(c[d])?c[d]:[c[d]];c[d]=h.map(o.bind(null,d))}var v=new K(c);v.messages(l.messages),e.rule.options&&(e.rule.options.messages=l.messages,e.rule.options.error=l.error),v.validate(e.value,e.rule.options||l,(function(e){var n=[];u&&u.length&&n.push.apply(n,u),e&&e.length&&n.push.apply(n,e),t(n.length?n:null)}))}else t(u)}a=a&&(i.required||!i.required&&e.value),i.field=e.field,i.asyncValidator?n=i.asyncValidator(i,e.value,u,e.source,l):i.validator&&(n=i.validator(i,e.value,u,e.source,l),!0===n?u():!1===n?u(i.message||i.field+" fails"):n instanceof Array?u(n):n instanceof Error&&u(n.message)),n&&n.then&&n.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){d(e)}))},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!z.hasOwnProperty(e.type))throw new Error(s("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?z.required:z[this.getType(e)]||!1}},K.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");z[e]=t},K.warning=a,K.messages=V;var W=K;t.default=W}).call(this,n("4362"))},"255a":function(e,t,n){"use strict";var r=n("4ea4");n("99af"),n("4de4"),n("c975"),n("d81d"),n("a434"),n("a9e3"),n("b64b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("ade3")),a=r(n("b775")),o=r(n("1d4f"));o.default.warning=function(){};var s={name:"u-form-item",mixins:[a.default],inject:{uForm:{default:function(){return null}}},props:{label:{type:String,default:""},prop:{type:String,default:""},borderBottom:{type:[String,Boolean],default:""},labelPosition:{type:String,default:""},labelWidth:{type:[String,Number],default:""},labelStyle:{type:Object,default:function(){return{}}},labelAlign:{type:String,default:""},rightIcon:{type:String,default:""},leftIcon:{type:String,default:""},leftIconStyle:{type:Object,default:function(){return{}}},rightIconStyle:{type:Object,default:function(){return{}}},required:{type:Boolean,default:!1}},data:function(){return{initialValue:"",validateState:"",validateMessage:"",errorType:["message"],fieldValue:"",parentData:{borderBottom:!0,labelWidth:90,labelPosition:"left",labelStyle:{},labelAlign:"left"}}},watch:{validateState:function(e){this.broadcastInputError()},"uForm.errorType":function(e){this.errorType=e,this.broadcastInputError()}},computed:{uLabelWidth:function(){return"left"==this.elLabelPosition?"true"===this.label||""===this.label?"auto":this.$u.addUnit(this.elLabelWidth):"100%"},showError:function(){var e=this;return function(t){return!(e.errorType.indexOf("none")>=0)&&e.errorType.indexOf(t)>=0}},elLabelWidth:function(){return 0!=this.labelWidth||""!=this.labelWidth?this.labelWidth:this.parentData.labelWidth?this.parentData.labelWidth:90},elLabelStyle:function(){return Object.keys(this.labelStyle).length?this.labelStyle:this.parentData.labelStyle?this.parentData.labelStyle:{}},elLabelPosition:function(){return this.labelPosition?this.labelPosition:this.parentData.labelPosition?this.parentData.labelPosition:"left"},elLabelAlign:function(){return this.labelAlign?this.labelAlign:this.parentData.labelAlign?this.parentData.labelAlign:"left"},elBorderBottom:function(){return""!==this.borderBottom?this.borderBottom:!this.parentData.borderBottom||this.parentData.borderBottom}},methods:{broadcastInputError:function(){this.broadcast("u-input","on-form-item-error","error"===this.validateState&&this.showError("border"))},setRules:function(){var e=this;this.$on("on-form-blur",e.onFieldBlur),this.$on("on-form-change",e.onFieldChange)},getRules:function(){var e=this.parent.rules;return e=e?e[this.prop]:[],[].concat(e||[])},onFieldBlur:function(){this.validation("blur")},onFieldChange:function(){this.validation("change")},getFilteredRule:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.getRules();return e?t.filter((function(t){return t.trigger&&-1!==t.trigger.indexOf(e)})):t},validation:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};this.fieldValue=this.parent.model[this.prop];var r=this.getFilteredRule(e);if(!r||0===r.length)return n("");this.validateState="validating";var a=new o.default((0,i.default)({},this.prop,r));a.validate((0,i.default)({},this.prop,this.fieldValue),{firstFields:!0},(function(e,r){t.validateState=e?"error":"success",t.validateMessage=e?e[0].message:"",n(t.validateMessage)}))},resetField:function(){this.parent.model[this.prop]=this.initialValue,this.validateState="success"}},mounted:function(){var e=this;this.parent=this.$u.$parent.call(this,"u-form"),this.parent&&(Object.keys(this.parentData).map((function(t){e.parentData[t]=e.parent[t]})),this.prop&&(this.parent.fields.push(this),this.errorType=this.parent.errorType,this.initialValue=this.fieldValue,this.$nextTick((function(){e.setRules()}))))},beforeDestroy:function(){var e=this;this.parent&&this.prop&&this.parent.fields.map((function(t,n){t===e&&e.parent.fields.splice(n,1)}))}};t.default=s},"257e":function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},"262e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=i(n("b380"));function i(e){return e&&e.__esModule?e:{default:e}}function a(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}}),t&&(0,r.default)(e,t)}},2909:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var r=s(n("6005")),i=s(n("db90")),a=s(n("06c5")),o=s(n("3427"));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return(0,r.default)(e)||(0,i.default)(e)||(0,a.default)(e)||(0,o.default)()}},"2bc6":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-popup",{ref:"popup",attrs:{type:"top"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.popupChange.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"zhilin-cascader",style:{height:e.height||e.wrapperHeight}},[n("v-uni-view",{staticClass:"filterTitle"},[e._v(e._s(e.titles))]),n("v-uni-view",{staticClass:"filterView"},e._l(e.wrapContent,(function(t,r){return n("v-uni-view",{staticClass:"group",style:e.groupStyle},[n("v-uni-scroll-view",{staticClass:"filter-content-scroll",attrs:{"scroll-y":!0,enhanced:!0,"show-scrollbar":!0}},e._l(t,(function(t,i){return n("v-uni-view",{key:i,staticClass:"cell",class:{active:t[e.valueKey]===e.values[r]},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.itemClick(r,i)}}},[n("v-uni-text",[e._v(e._s(t[e.labelKey]))])],1)})),1)],1)})),1),n("v-uni-view",{staticClass:"filterBtns"},[n("v-uni-button",{staticClass:"reset",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.reset.apply(void 0,arguments)}}},[e._v("重置")]),n("v-uni-button",{staticClass:"confirm",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.confirm.apply(void 0,arguments)}}},[e._v("确定")])],1)],1)],1)},a=[]},"2c14":function(e,t,n){var r=n("8456");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("2e451a81",r,!0,{sourceMap:!1,shadowMode:!1})},"2c6d":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"htz-image-upload-list"},[e._l(e.uploadLists,(function(t,r){return n("v-uni-view",{key:r,staticClass:"htz-image-upload-Item"},[e.isVideo(t)?n("v-uni-view",{staticClass:"htz-image-upload-Item-video"},[n("v-uni-video",{attrs:{disabled:!1,controls:!1,src:e.getFileUrl(t)}},[n("v-uni-cover-view",{staticClass:"htz-image-upload-Item-video-fixed",on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.previewVideo(e.getFileUrl(t))}}}),e.remove&&""==e.previewVideoSrc?n("v-uni-cover-view",{staticClass:"htz-image-upload-Item-del-cover",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.imgDel(r)}}},[e._v("×")]):e._e()],1)],1):n("v-uni-image",{attrs:{src:e.getFileUrl(t)},on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.imgPreview(e.getFileUrl(t))}}}),e.remove?n("v-uni-view",{staticClass:"htz-image-upload-Item-del",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.imgDel(r)}}},[e._v("×")]):e._e()],1)})),e.uploadLists.length<e.max&&e.add?n("v-uni-view",{staticClass:"htz-image-upload-Item htz-image-upload-Item-add",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.chooseFile.apply(void 0,arguments)}}},[e._v("+")]):e._e(),""!=e.previewVideoSrc?n("v-uni-view",{staticClass:"preview-full"},[n("v-uni-video",{attrs:{autoplay:!0,src:e.previewVideoSrc,"show-fullscreen-btn":!1}},[n("v-uni-cover-view",{staticClass:"preview-full-close",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.previewVideoClose.apply(void 0,arguments)}}},[e._v("×")])],1)],1):e._e()],2)},a=[]},"2caf":function(e,t,n){"use strict";n("4ae1"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=o(n("7e84")),i=o(n("d967")),a=o(n("99de"));function o(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=(0,i.default)();return function(){var n,i=(0,r.default)(e);if(t){var o=(0,r.default)(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return(0,a.default)(this,n)}}},"2dd3":function(e,t,n){"use strict";n.r(t);var r=n("ee3e"),i=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"2f7a":function(e,t,n){"use strict";n.r(t);var r=n("8f60"),i=n("2dd3");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("8117");var o,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"4ed92bb2",null,!1,r["a"],o);t["default"]=u.exports},3400:function(e,t,n){"use strict";n("cb29"),n("d81d"),n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{list:{type:Array,default:function(){return[]}},border:{type:Boolean,default:!0},value:{type:Boolean,default:!1},cancelColor:{type:String,default:"#606266"},confirmColor:{type:String,default:"#2979ff"},zIndex:{type:[String,Number],default:0},safeAreaInsetBottom:{type:Boolean,default:!1},maskCloseAble:{type:Boolean,default:!0},defaultValue:{type:Array,default:function(){return[0]}},mode:{type:String,default:"single-column"},valueName:{type:String,default:"value"},labelName:{type:String,default:"label"},childName:{type:String,default:"children"},title:{type:String,default:""},cancelText:{type:String,default:"取消"},confirmText:{type:String,default:"确认"}},data:function(){return{defaultSelector:[0],columnData:[],selectValue:[],lastSelectIndex:[],columnNum:0,moving:!1}},watch:{value:{immediate:!0,handler:function(e){var t=this;e&&setTimeout((function(){return t.init()}),10)}}},computed:{uZIndex:function(){return this.zIndex?this.zIndex:this.$u.zIndex.popup}},methods:{pickstart:function(){},pickend:function(){},init:function(){this.setColumnNum(),this.setDefaultSelector(),this.setColumnData(),this.setSelectValue()},setDefaultSelector:function(){this.defaultSelector=this.defaultValue.length==this.columnNum?this.defaultValue:Array(this.columnNum).fill(0),this.lastSelectIndex=this.$u.deepClone(this.defaultSelector)},setColumnNum:function(){if("single-column"==this.mode)this.columnNum=1;else if("mutil-column"==this.mode)this.columnNum=this.list.length;else if("mutil-column-auto"==this.mode){var e=1,t=this.list;while(t[0][this.childName])t=t[0]?t[0][this.childName]:{},e++;this.columnNum=e}},setColumnData:function(){var e=[];if(this.selectValue=[],"mutil-column-auto"==this.mode)for(var t=this.list[this.defaultSelector.length?this.defaultSelector[0]:0],n=0;n<this.columnNum;n++)0==n?(e[n]=this.list,t=t[this.childName]):(e[n]=t,t=t[this.defaultSelector[n]][this.childName]);else"single-column"==this.mode?e[0]=this.list:e=this.list;this.columnData=e},setSelectValue:function(){for(var e=null,t=0;t<this.columnNum;t++){e=this.columnData[t][this.defaultSelector[t]];var n={value:e?e[this.valueName]:null,label:e?e[this.labelName]:null};e&&e.extra&&(n.extra=e.extra),this.selectValue.push(n)}},columnChange:function(e){var t=this,n=null,r=e.detail.value;if(this.selectValue=[],"mutil-column-auto"==this.mode){this.lastSelectIndex.map((function(e,t){e!=r[t]&&(n=t)})),this.defaultSelector=r;for(var i=n+1;i<this.columnNum;i++)this.columnData[i]=this.columnData[i-1][i-1==n?r[n]:0][this.childName],this.defaultSelector[i]=0;r.map((function(e,n){var i=t.columnData[n][r[n]],a={value:i?i[t.valueName]:null,label:i?i[t.labelName]:null};i&&void 0!==i.extra&&(a.extra=i.extra),t.selectValue.push(a)})),this.lastSelectIndex=r}else if("single-column"==this.mode){var a=this.columnData[0][r[0]],o={value:a?a[this.valueName]:null,label:a?a[this.labelName]:null};a&&void 0!==a.extra&&(o.extra=a.extra),this.selectValue.push(o)}else"mutil-column"==this.mode&&r.map((function(e,n){var i=t.columnData[n][r[n]],a={value:i?i[t.valueName]:null,label:i?i[t.labelName]:null};i&&void 0!==i.extra&&(a.extra=i.extra),t.selectValue.push(a)}))},close:function(){this.$emit("input",!1)},getResult:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&this.$emit(e,this.selectValue),this.close()},selectHandler:function(){this.$emit("click")}}};t.default=r},3427:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},4478:function(e,t,n){"use strict";n("4ae1"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=a(n("b380")),i=a(n("d967"));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,n,a){return(0,i.default)()?t.default=o=Reflect.construct:t.default=o=function(e,t,n){var i=[null];i.push.apply(i,t);var a=Function.bind.apply(e,i),o=new a;return n&&(0,r.default)(o,n.prototype),o},o.apply(null,arguments)}},"447b":function(e,t,n){"use strict";var r=n("b6af"),i=n.n(r);i.a},"4e1b":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/* uni.scss */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.u-select__action[data-v-1c93e157]{position:relative;line-height:%?70?%;height:%?70?%}.u-select__action__icon[data-v-1c93e157]{position:absolute;right:%?20?%;top:50%;transition:-webkit-transform .4s;transition:transform .4s;transition:transform .4s,-webkit-transform .4s;-webkit-transform:translateY(-50%);transform:translateY(-50%);z-index:1}.u-select__action__icon--reverse[data-v-1c93e157]{-webkit-transform:rotate(-180deg) translateY(50%);transform:rotate(-180deg) translateY(50%)}.u-select__hader__title[data-v-1c93e157]{color:#606266}.u-select--border[data-v-1c93e157]{border-radius:%?6?%;border-radius:4px;border:1px solid #dcdfe6}.u-select__header[data-v-1c93e157]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;height:%?80?%;padding:0 %?40?%}.u-select__body[data-v-1c93e157]{width:100%;height:%?500?%;overflow:hidden;background-color:#fff}.u-select__body__picker-view[data-v-1c93e157]{height:100%;box-sizing:border-box}.u-select__body__picker-view__item[data-v-1c93e157]{display:flex;flex-direction:row;align-items:center;justify-content:center;font-size:%?32?%;color:#303133;padding:0 %?8?%}',""]),e.exports=t},"4ec9":function(e,t,n){"use strict";var r=n("6d61"),i=n("6566");e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},"4fb3":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.showPopup?n("v-uni-view",{staticClass:"uni-popup",class:[e.popupstyle],on:{touchmove:function(t){t.stopPropagation(),t.preventDefault(),arguments[0]=t=e.$handleEvent(t),e.clear.apply(void 0,arguments)}}},[e.maskShow?n("uni-transition",{attrs:{"mode-class":["fade"],styles:e.maskClass,duration:e.duration,show:e.showTrans},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onTap.apply(void 0,arguments)}}}):e._e(),n("uni-transition",{attrs:{"mode-class":e.ani,styles:e.transClass,duration:e.duration,show:e.showTrans},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onTap.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"uni-popup__wrapper-box",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.clear.apply(void 0,arguments)}}},[e._t("default")],2)],1)],1):e._e()},a=[]},5001:function(e,t,n){"use strict";var r=n("2c14"),i=n.n(r);i.a},5377:function(e,t,n){var r=n("83ab"),i=n("9bf2"),a=n("ad6d"),o=n("9f7f").UNSUPPORTED_Y;r&&("g"!=/./g.flags||o)&&i.f(RegExp.prototype,"flags",{configurable:!0,get:a})},"53ca":function(e,t,n){"use strict";function r(e){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?t.default=r=function(e){return typeof e}:t.default=r=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},"5b6c":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,".preview-full[data-v-2406b974]{position:fixed;top:0;left:0;bottom:0;width:100%;height:100%;z-index:1002}.preview-full uni-video[data-v-2406b974]{width:100%;height:100%;z-index:1002}.preview-full-close[data-v-2406b974]{position:fixed;right:%?32?%;top:%?25?%;width:%?80?%;height:%?80?%;line-height:%?60?%;text-align:center;z-index:1003;\n\t/* \tbackground-color: #808080; */color:#fff;font-size:%?65?%;font-weight:700;text-shadow:1px 2px 5px rgb(0 0 0)}\n\n/* .preview-full-close-before,\n.preview-full-close-after {\n\tposition: absolute;\n\ttop: 50%;\n\tleft: 50%;\n\tcontent: '';\n\theight: 60rpx;\n\tmargin-top: -30rpx;\n\twidth: 6rpx;\n\tmargin-left: -3rpx;\n\tbackground-color: #FFFFFF;\n\tz-index: 20000;\n}\n\n.preview-full-close-before {\n\ttransform: rotate(45deg);\n\n}\n\n.preview-full-close-after {\n\ttransform: rotate(-45deg);\n\n} */.htz-image-upload-list[data-v-2406b974]{display:flex;flex-wrap:wrap}.htz-image-upload-Item[data-v-2406b974]{width:%?200?%;height:%?200?%;line-height:%?170?%;margin:%?13?%;border-radius:%?10?%;position:relative;overflow:hidden;margin:5px;background:#f4f5f6;position:relative;border-radius:5px}.htz-image-upload-Item uni-image[data-v-2406b974]{width:100%;height:100%;border-radius:%?10?%}.htz-image-upload-Item-video[data-v-2406b974]{width:100%;height:100%;border-radius:%?10?%;position:relative}.htz-image-upload-Item-video-fixed[data-v-2406b974]{position:absolute;top:0;left:0;bottom:0;width:100%;height:100%;border-radius:%?10?%;z-index:996}.htz-image-upload-Item uni-video[data-v-2406b974]{width:100%;height:100%;border-radius:%?10?%}.htz-image-upload-Item-add[data-v-2406b974]{font-size:%?105?%;\n\t/* line-height: 160rpx; */text-align:center;\n\t/* border: 1px dashed #d9d9d9; */color:#d9d9d9}.htz-image-upload-Item-del[data-v-2406b974]{background-color:#f5222d;font-size:%?24?%;position:absolute;width:%?35?%;height:%?35?%;line-height:%?35?%;text-align:center;top:0;right:0;z-index:997;color:#fff}.htz-image-upload-Item-del-cover[data-v-2406b974]{background-color:#f5222d;font-size:%?24?%;position:absolute;width:%?35?%;height:%?35?%;text-align:center;top:0;right:0;color:#fff;\n\n\nline-height:%?35?%;\nz-index:997}.htz-image-upload-Item-video-app-poster[data-v-2406b974]{width:100%;height:100%}",""]),e.exports=t},6005:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=i(n("6b75"));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){if(Array.isArray(e))return(0,r.default)(e)}},"624c":function(e,t,n){"use strict";var r=n("ea0d"),i=n.n(r);i.a},"62c6":function(e,t,n){"use strict";var r=n("4ea4");n("4160"),n("caad"),n("fb6a"),n("d3b7"),n("2532"),n("159b"),n("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("2909")),a=r(n("0dfd")),o={label:"label",value:"value",children:"children"},s={name:"zhilin-cascader",components:{UniPopup:a.default},props:{value:{type:Boolean,required:!0},options:{type:Array,required:!0},fieldNames:{type:Object,default:function(){return o}},isFullValue:{type:Boolean,default:!1},defaultSelected:{type:Array},title:{type:String,default:"请选择"},height:{type:String}},data:function(){return{wrapContent:[this.options],values:[],valuesCopy:[],titles:this.title,wrapperHeight:0}},watch:{options:function(e){this.wrapContent=[e]},value:{handler:function(e){var t=this;this.$nextTick((function(){return e?t.$refs.popup.open():t.$refs.popup.close()}))},immediate:!0}},computed:{groupStyle:function(){return"width:"+100/this.wrapContent.length+"%;"},labelKey:function(){return this.fieldNames.label||o.label},valueKey:function(){return this.fieldNames.value||o.value},childrenKey:function(){return this.fieldNames.children||o.children}},created:function(){var e=uni.getSystemInfoSync();this.wrapperHeight=e.windowHeight-e.statusBarHeight-100+"px"},mounted:function(){this.initDefaultSelected()},methods:{initDefaultSelected:function(){var e,t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;(null===(e=this.defaultSelected)||void 0===e?void 0:e.length)&&(this.wrapContent[n].forEach((function(e,r){var i;t.defaultSelected.includes(e.value)&&(null===(i=e.children)||void 0===i?void 0:i.length)&&(t.wrapContent[++n]=e.children,t.initDefaultSelected(n))})),this.values=(0,i.default)(this.defaultSelected))},itemClick:function(e,t,n){var r=this;this.valuesCopy[e]=this.wrapContent[e][t][this.labelKey],this.values[e]=this.wrapContent[e][t][this.valueKey],this.values=this.values.slice(0,e+1),this.valuesCopy=this.valuesCopy.slice(0,e+1);var i=this.wrapContent[e][t][this.childrenKey];(null===i||void 0===i?void 0:i.length)?(this.wrapContent[++e]=i,this.wrapContent=this.wrapContent.slice(0,e+1),this.isFullValue&&this.$nextTick((function(){r.itemClick(e,0)}))):(this.titles="",this.wrapContent=this.wrapContent.slice(0,e+1),this.titles=this.valuesCopy.join("/")),this.$nextTick((function(){this.$emit("change",this.values,this.valuesCopy)}))},confirm:function(){if(this.isFullValue&&this.values.length&&this.values.length!=this.wrapContent.length)return console.log("未选择完整");this.$emit("input",!1),this.$emit("confirm",this.values,this.valuesCopy)},reset:function(){this.titles="请选择",this.wrapContent.length&&(this.values=[],this.valuesCopy=[],this.wrapContent=[this.wrapContent[0]])},popupChange:function(e){this.$emit("input",e.show)}}};t.default=s},"63d4":function(e,t,n){"use strict";n.r(t);var r=n("9f6c"),i=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"647a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={easycom:{"^u-(.*)":"uview-ui/components/u-$1/u-$1.vue"},pages:[{path:"pages/login/login",style:{navigationBarTitleText:"河道保洁",enablePullDownRefresh:!1}},{path:"pages/index/index",style:{navigationBarTitleText:"河道保洁"}},{path:"inspect/inspect",style:{navigationBarTitleText:"问题上报"}},{path:"inspect/list",style:{navigationBarTitleText:"已提交问题",enablePullDownRefresh:!1}},{path:"inspect/info",style:{navigationBarTitleText:"问题详情"}},{path:"solve/index",style:{navigationBarTitleText:"问题处理"}}],globalStyle:{navigationBarTextStyle:"white",navigationBarTitleText:"河道保洁",navigationBarBackgroundColor:"#0385e5",backgroundColor:"#F8F8F8"}};t.default=r},6566:function(e,t,n){"use strict";var r=n("9bf2").f,i=n("7c73"),a=n("e2cc"),o=n("0366"),s=n("19aa"),u=n("2266"),c=n("7dd0"),l=n("2626"),f=n("83ab"),d=n("f183").fastKey,h=n("69f3"),p=h.set,v=h.getterFor;e.exports={getConstructor:function(e,t,n,c){var l=e((function(e,r){s(e,l,t),p(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),f||(e.size=0),void 0!=r&&u(r,e[c],e,n)})),h=v(t),m=function(e,t,n){var r,i,a=h(e),o=g(e,t);return o?o.value=n:(a.last=o={index:i=d(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=o),r&&(r.next=o),f?a.size++:e.size++,"F"!==i&&(a.index[i]=o)),e},g=function(e,t){var n,r=h(e),i=d(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return a(l.prototype,{clear:function(){var e=this,t=h(e),n=t.index,r=t.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;t.first=t.last=void 0,f?t.size=0:e.size=0},delete:function(e){var t=this,n=h(t),r=g(t,e);if(r){var i=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=i),i&&(i.previous=a),n.first==r&&(n.first=i),n.last==r&&(n.last=a),f?n.size--:t.size--}return!!r},forEach:function(e){var t,n=h(this),r=o(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:n.first){r(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!g(this,e)}}),a(l.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),f&&r(l.prototype,"size",{get:function(){return h(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",i=v(t),a=v(r);c(e,t,(function(e,t){p(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){var e=a(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)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(t)}}},"682a":function(e,t,n){"use strict";n.r(t);var r=n("62c6"),i=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"6a25":function(e,t,n){"use strict";(function(e){var r=n("4ea4");n("4160"),n("c975"),n("a434"),n("a9e3"),n("d3b7"),n("ac1f"),n("25f0"),n("3ca3"),n("5319"),n("159b"),n("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("5530")),a={name:"htz-image-upload",props:{max:{type:Number,default:1},chooseNum:{type:Number,default:9},name:{type:String,default:"file"},dataType:{type:Number,default:0},remove:{type:Boolean,default:!0},add:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},sourceType:{type:Array,default:function(){return["album","camera"]}},action:{type:String,default:""},headers:{type:Object,default:function(){}},formData:{type:Object,default:function(){}},compress:{type:Boolean,default:!0},quality:{type:Number,default:80},value:{type:Array,default:function(){return[]}},uploadSuccess:{default:function(e){return{success:!1,url:""}}},mediaType:{type:String,default:"image"},maxDuration:{type:Number,default:60},camera:{type:String,default:"back"},appVideoPoster:{type:String,default:"/static/htz-image-upload/play.png"}},data:function(){return{uploadLists:[],mediaTypeData:["image","video","all"],previewVideoSrc:""}},mounted:function(){this.$nextTick((function(){this.uploadLists=this.value,-1==this.mediaTypeData.indexOf(this.mediaType)&&uni.showModal({title:"提示",content:"mediaType参数不正确",showCancel:!1,success:function(e){e.confirm||e.cancel}})}))},watch:{value:function(e,t){this.uploadLists=e}},methods:{isVideo:function(e){var t=!1;return(!/.(gif|jpg|jpeg|png|gif|jpg|png)$/i.test(e)&&0==this.dataType||1==this.dataType&&1==e.type)&&(t=!0),t},getFileUrl:function(e){var t=e;return 1==this.dataType&&(t=e.url),t},previewVideo:function(e){this.previewVideoSrc=e},previewVideoClose:function(){this.previewVideoSrc=""},imgDel:function(e){var t=this;uni.showModal({title:"提示",content:"您确定要删除么?",success:function(n){if(n.confirm){var r=t.uploadLists[e];t.uploadLists.splice(e,1),t.$emit("input",t.uploadLists),t.$emit("imgDelete",{del:r,tempFilePaths:t.uploadLists})}else n.cancel}})},imgPreview:function(e){var t=this,n=[];this.uploadLists.forEach((function(e){t.isVideo(e)||n.push(t.getFileUrl(e))})),uni.previewImage({urls:n,current:e,loop:!0})},chooseFile:function(){var e=this;if(this.disabled)return!1;switch(this.mediaTypeData.indexOf(this.mediaType)){case 1:this.videoAdd();break;case 2:uni.showActionSheet({itemList:["相册","视频"],success:function(t){1==t.tapIndex?e.videoAdd():0==t.tapIndex&&e.imgAdd()},fail:function(e){console.log(e.errMsg)}});break;default:this.imgAdd();break}},videoAdd:function(){var e=this,t=Math.abs(this.uploadLists.length-this.max);this.chooseNum>t||this.chooseNum;uni.chooseVideo({compressed:this.compress,sourceType:this.sourceType,camera:this.camera,maxDuration:this.maxDuration,success:function(t){e.chooseSuccessMethod([t.tempFilePath],1)}})},imgAdd:function(){var e=this,t=Math.abs(this.uploadLists.length-this.max),n=this.chooseNum>t?t:this.chooseNum;uni.chooseImage({count:n,sizeType:["original","compressed"],sourceType:this.sourceType,success:function(t){e.chooseSuccessMethod(t.tempFilePaths,0)}})},appCamera:function(){var e=this,t=plus.camera.getCamera(),n=t.supportedImageResolutions[0],r=t.supportedImageFormats[0];t.captureImage((function(t){e.chooseSuccessMethod([t],0)}),(function(e){console.log("Capture image failed: "+e.message)}),{resolution:n,format:r})},appGallery:function(e){var t=this;plus.gallery.pick((function(e){t.chooseSuccessMethod(e.files,0)}),(function(e){}),{filter:"image",multiple:!0,maximum:e})},chooseSuccessMethod:function(e,t){""==this.action?this.$emit("chooseSuccess",e,t):1==t?this.imgUpload(e,t):this.compress?this.imgCompress(e,t):this.imgUpload(e,t)},imgCompress:function(e,t){var n=this;uni.showLoading({title:"压缩中..."});var r=[],i=[];e.forEach((function(e,t){r.push(new Promise((function(t,r){n.canvasDataURL(e,{quality:n.quality/100},(function(e){i.push(e),t(e)}))})))})),Promise.all(r).then((function(e){uni.hideLoading(),n.imgUpload(e,t)})).catch((function(e,t){uni.hideLoading()}))},imgUpload:function(e,t){var n=this;if("uniCloud"!=this.action){uni.showLoading({title:"上传中"});var r=[];e.forEach((function(e,a){r.push(new Promise((function(r,a){uni.uploadFile({url:n.action,filePath:e,name:n.name,fileType:"image",formData:n.formData,header:n.headers,success:function(e){if(e.fileType=t,"function"==typeof n.uploadSuccess){var a=n.uploadSuccess(e);if(a.success){var o="";o="value",0==n.dataType?n[o].push(a.url):n[o].push((0,i.default)({type:t,url:a.url},a)),n.$emit("input",n.uploadLists)}}r(e),n.$emit("uploadSuccess",e)},fail:function(e){console.log(e),a(e),n.$emit("uploadFail",e)},complete:function(){}})})))})),Promise.all(r).then((function(e){uni.hideLoading()})).catch((function(e,t){uni.hideLoading(),n.$emit("uploadFail",e)}))}else this.uniCloudUpload(e,t)},uniCloudUpload:function(t,n){var r=this;uni.showLoading({title:"上传中"}),console.log("uniCloudUpload",t);var i=[];t.forEach((function(t,a){i.push(new Promise((function(i,a){e.uploadFile({filePath:t,cloudPath:r.guid()+"."+r.getFileType(t,n),success:function(e){e.success&&i(e.fileID)},fail:function(e){console.log(e),a(e)},complete:function(){}})})))})),Promise.all(i).then((function(t){uni.hideLoading(),e.getTempFileURL({fileList:t,success:function(e){e.fileList.forEach((function(e){r.value.push(e.tempFileURL)}))},fail:function(){},complete:function(){}})})).catch((function(e,t){uni.hideLoading()}))},getFileType:function(e,t){var n=0==t?"jpg":"mp4";return n},guid:function(){return"xxxxxxxx-date-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0,n="x"==e?t:3&t|8;return n.toString(16)})).replace(/date/g,(function(e){return Date.parse(new Date)}))},canvasDataURL:function(e,t,n){var r=new Image;r.src=e,r.onload=function(){var e=this,r=e.width,i=e.height,a=r/i;r=t.width||r,i=t.height||r/a;var o=.8,s=document.createElement("canvas"),u=s.getContext("2d"),c=document.createAttribute("width");c.nodeValue=r;var l=document.createAttribute("height");l.nodeValue=i,s.setAttributeNode(c),s.setAttributeNode(l),u.drawImage(e,0,0,r,i),t.quality&&t.quality<=1&&t.quality>0&&(o=t.quality);var f=s.toDataURL("image/jpeg",o);n(f)}}}};t.default=a}).call(this,n("a9ff")["default"])},"6c57":function(e,t,n){var r=n("23e7"),i=n("da84");r({global:!0},{globalThis:i})},"6d44":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("7392")),a={top:"top",bottom:"bottom",center:"center",message:"top",dialog:"center",share:"bottom"},o={data:function(){return{config:a}},mixins:[i.default]};t.default=o},"6d61":function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),a=n("94ca"),o=n("6eeb"),s=n("f183"),u=n("2266"),c=n("19aa"),l=n("861d"),f=n("d039"),d=n("1c7e"),h=n("d44e"),p=n("7156");e.exports=function(e,t,n){var v=-1!==e.indexOf("Map"),m=-1!==e.indexOf("Weak"),g=v?"set":"add",y=i[e],b=y&&y.prototype,_=y,w={},k=function(e){var t=b[e];o(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(m&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!l(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(a(e,"function"!=typeof y||!(m||b.forEach&&!f((function(){(new y).entries().next()})))))_=n.getConstructor(t,e,v,g),s.REQUIRED=!0;else if(a(e,!0)){var x=new _,S=x[g](m?{}:-0,1)!=x,T=f((function(){x.has(1)})),P=d((function(e){new y(e)})),A=!m&&f((function(){var e=new y,t=5;while(t--)e[g](t,t);return!e.has(-0)}));P||(_=t((function(t,n){c(t,_,e);var r=p(new y,t,_);return void 0!=n&&u(n,r[g],r,v),r})),_.prototype=b,b.constructor=_),(T||A)&&(k("delete"),k("has"),v&&k("get")),(A||S)&&k(g),m&&b.clear&&delete b.clear}return w[e]=_,r({global:!0,forced:_!=y},w),h(_,e),m||n.setStrong(_,e,v),_}},"6dc4":function(e,t,n){"use strict";var r=n("09ac"),i=n.n(r);i.a},7392:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={created:function(){"message"===this.type&&(this.maskShow=!1,this.childrenMsg=null)},methods:{customOpen:function(){this.childrenMsg&&this.childrenMsg.open()},customClose:function(){this.childrenMsg&&this.childrenMsg.close()}}};t.default=r},"74e1":function(e,t,n){"use strict";var r=n("4ea4");n("a434"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("b85c")),a=(r(n("a5ab")),r(n("f61f")),{data:function(){return{areaShow:!1,areaName:"",areaList:[],riverShow:!1,riverName:"",riverList:[],decShow:!1,decName:"",decList:[],askShow:!1,askName:"",askList:[],fieldNames:{label:"name",value:"id",children:"children"},action:"",otherData:{token:""},picFileList:[],videoFileList:[],audioFileList:[],form:{area_id:"",river_id:"",address:"",lat:"",lng:"",ask_type_id:"",ask_content:"",deal_examine_id:"",dec_score:"",inspection_file_list:[]}}},onReady:function(){var e=this;e.util.initAddress((function(t){console.log(t),e.form.lat=t.latitude,e.form.lng=t.longitude,e.form.address=t.address}))},onLoad:function(){this.loadArea(),this.loadRiver(),this.loadAsk(),this.loadDec(),this.action=this.util.HOST+"/api/mobile/upload-file",this.otherData.token=uni.getStorageSync("userInfo_token").access_token},methods:{loadArea:function(){var e=this;e.util.request({api:"/api/admin/parameter/show",method:"get",data:{number:"area"},utilSuccess:function(t){e.areaList=t.detail},utilFail:function(t){e.util.alert(t)}})},confirmArea:function(e){console.log(e),this.areaName=e[0].label,this.form.area_id=e[0].value},loadRiver:function(){var e=this;e.util.request({api:"/api/mobile/get-rivers",method:"get",data:{page:1,page_size:999},utilSuccess:function(t){e.riverList=t.data},utilFail:function(t){e.util.alert(t)}})},confirmRiver:function(e){console.log(e),this.riverName=e[0].label,this.form.river_id=e[0].value},chooseLocation:function(e){var t=this,n=t.gcoord.transformFromWGSToGCJ(t.form.lat,t.form.lng);uni.chooseLocation({longitude:n.longitude,latitude:n.latitude,success:function(e){t.form.address=e.name,t.form.lng=e.longitude,t.form.lat=e.latitude}})},loadAsk:function(){var e=this;e.util.request({api:"/api/mobile/get-ask_type",method:"get",data:{},utilSuccess:function(t){e.askList=t},utilFail:function(t){e.util.alert(t)}})},confirmAsk:function(e,t){this.form.ask_type_id_top_pid=e[0],this.form.ask_type_id=e[e.length-1],this.askName=t.join("/"),console.log(this.form.ask_type_id,this.askName)},loadDec:function(){var e=this;e.util.request({api:"/api/mobile/get-examine",method:"get",data:{page:1,page_size:999},utilSuccess:function(t){var n,r=(0,i.default)(t.data);try{for(r.s();!(n=r.n()).done;){var a=n.value;a.extra=a.score}}catch(o){r.e(o)}finally{r.f()}e.decList=t.data},utilFail:function(t){e.util.alert(t)}})},confirmDec:function(e){console.log("dec",e),this.decName=e[0].extra,this.form.dec_score=e[0].extra,this.form.deal_examine_id=e[0].value},onprogress:function(e){uni.showLoading({title:"上传中"})},tosuccess:function(){uni.showLoading({title:"上传成功"})},toremove:function(e,t,n,r){"picFileList"==r&&this.picFileList.splice(e,1),"dealFilesList"==r&&this.dealFilesList.splice(e,1)},toupload:function(e,t,n){var r=this;"picFileList"==n&&(r.picFileList=e),"dealFilesList"==n&&(r.dealFilesList=e)},submit:function(){var e=this,t=[],n={pics:{arr:this.picFileList,type:1},videos:{arr:this.videoFileList,type:2},audios:{arr:this.audioFileList,type:3}};for(var r in n){var a,o=(0,i.default)(n[r]["arr"]);try{for(o.s();!(a=o.n()).done;){var s=a.value;t.push({id:s.id,type:n[r]["type"]})}}catch(u){o.e(u)}finally{o.f()}}this.form.inspection_file_list=t,this.$refs.uForm.validate((function(t){t?e.util.request({api:"/api/mobile/inspection/store",method:"POST",data:e.form,utilSuccess:function(t){uni.showToast({icon:"none",title:"提交成功",complete:function(){e.afterSubmit(t)},duration:2e3})},utilFail:function(t){e.util.alert(t)}}):console.log("验证失败")}))},afterSubmit:function(){uni.redirectTo({url:"../inspect/list"})},uploadSuccess:function(e,t){console.log(t),uni.showLoading({title:"上传成功"});var n={},r=JSON.parse(e.data);switch(n.id=r.id,n.url=r.url,t){case"video":this.videoFileList.push(n);break;case"audio":this.audioFileList.push(n);break;case"pic":this.picFileList.push(n);break;default:break}},imgDelete:function(e,t){console.log("imgDelete",e);var n=[];switch(n=e.tempFilePaths,t){case"video":this.videoFileList=n;break;case"audio":this.audioFileList=n;break;case"pic":this.picFileList=n;break;default:break}},uploadFail:function(e){console.log("uploadFail",e)}}});t.default=a},"7a49":function(e,t,n){var r=n("c286");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("7e3225f3",r,!0,{sourceMap:!1,shadowMode:!1})},"7e84":function(e,t,n){"use strict";function r(e){return t.default=r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n("3410"),n("131a"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},8117:function(e,t,n){"use strict";var r=n("8a52"),i=n.n(r);i.a},"815e":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var r={uPopup:n("7a1a").default},i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"u-select"},[n("u-popup",{attrs:{maskCloseAble:e.maskCloseAble,mode:"bottom",popup:!1,length:"auto",safeAreaInsetBottom:e.safeAreaInsetBottom,"z-index":e.uZIndex},on:{close:function(t){arguments[0]=t=e.$handleEvent(t),e.close.apply(void 0,arguments)}},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},[n("v-uni-view",{staticClass:"u-select"},[n("v-uni-view",{staticClass:"u-select__header",on:{touchmove:function(t){t.stopPropagation(),t.preventDefault(),arguments[0]=t=e.$handleEvent(t)}}},[n("v-uni-view",{staticClass:"u-select__header__cancel u-select__header__btn",style:{color:e.cancelColor},attrs:{"hover-class":"u-hover-class","hover-stay-time":150},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.getResult("cancel")}}},[e._v(e._s(e.cancelText))]),n("v-uni-view",{staticClass:"u-select__header__title"},[e._v(e._s(e.title))]),n("v-uni-view",{staticClass:"u-select__header__confirm u-select__header__btn",style:{color:e.moving?e.cancelColor:e.confirmColor},attrs:{"hover-class":"u-hover-class","hover-stay-time":150},on:{touchmove:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t)},click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.getResult("confirm")}}},[e._v(e._s(e.confirmText))])],1),n("v-uni-view",{staticClass:"u-select__body"},[n("v-uni-picker-view",{staticClass:"u-select__body__picker-view",attrs:{value:e.defaultSelector},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.columnChange.apply(void 0,arguments)},pickstart:function(t){arguments[0]=t=e.$handleEvent(t),e.pickstart.apply(void 0,arguments)},pickend:function(t){arguments[0]=t=e.$handleEvent(t),e.pickend.apply(void 0,arguments)}}},e._l(e.columnData,(function(t,r){return n("v-uni-picker-view-column",{key:r},e._l(t,(function(t,r){return n("v-uni-view",{key:r,staticClass:"u-select__body__picker-view__item"},[n("v-uni-view",{staticClass:"u-line-1"},[e._v(e._s(t[e.labelName]))])],1)})),1)})),1)],1)],1)],1)],1)},a=[]},"82de":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/* uni.scss */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.u-btn[data-v-4ed92bb2]::after{border:none}.u-btn[data-v-4ed92bb2]{position:relative;border:0;display:inline-flex;overflow:visible;line-height:1;display:flex;flex-direction:row;align-items:center;justify-content:center;cursor:pointer;padding:0 %?40?%;z-index:1;box-sizing:border-box;transition:all .15s}.u-btn--bold-border[data-v-4ed92bb2]{border:1px solid #fff}.u-btn--default[data-v-4ed92bb2]{color:#606266;border-color:#c0c4cc;background-color:#fff}.u-btn--primary[data-v-4ed92bb2]{color:#fff;border-color:#2979ff;background-color:#2979ff}.u-btn--success[data-v-4ed92bb2]{color:#fff;border-color:#19be6b;background-color:#19be6b}.u-btn--error[data-v-4ed92bb2]{color:#fff;border-color:#fa3534;background-color:#fa3534}.u-btn--warning[data-v-4ed92bb2]{color:#fff;border-color:#f90;background-color:#f90}.u-btn--default--disabled[data-v-4ed92bb2]{color:#fff;border-color:#e4e7ed;background-color:#fff}.u-btn--primary--disabled[data-v-4ed92bb2]{color:#fff!important;border-color:#a0cfff!important;background-color:#a0cfff!important}.u-btn--success--disabled[data-v-4ed92bb2]{color:#fff!important;border-color:#71d5a1!important;background-color:#71d5a1!important}.u-btn--error--disabled[data-v-4ed92bb2]{color:#fff!important;border-color:#fab6b6!important;background-color:#fab6b6!important}.u-btn--warning--disabled[data-v-4ed92bb2]{color:#fff!important;border-color:#fcbd71!important;background-color:#fcbd71!important}.u-btn--primary--plain[data-v-4ed92bb2]{color:#2979ff!important;border-color:#a0cfff!important;background-color:#ecf5ff!important}.u-btn--success--plain[data-v-4ed92bb2]{color:#19be6b!important;border-color:#71d5a1!important;background-color:#dbf1e1!important}.u-btn--error--plain[data-v-4ed92bb2]{color:#fa3534!important;border-color:#fab6b6!important;background-color:#fef0f0!important}.u-btn--warning--plain[data-v-4ed92bb2]{color:#f90!important;border-color:#fcbd71!important;background-color:#fdf6ec!important}.u-hairline-border[data-v-4ed92bb2]:after{content:" ";position:absolute;pointer-events:none;box-sizing:border-box;-webkit-transform-origin:0 0;transform-origin:0 0;left:0;top:0;width:199.8%;height:199.7%;-webkit-transform:scale(.5);transform:scale(.5);border:1px solid currentColor;z-index:1}.u-wave-ripple[data-v-4ed92bb2]{z-index:0;position:absolute;border-radius:100%;background-clip:padding-box;pointer-events:none;-webkit-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1;-webkit-transform-origin:center;transform-origin:center}.u-wave-ripple.u-wave-active[data-v-4ed92bb2]{opacity:0;-webkit-transform:scale(2);transform:scale(2);transition:opacity 1s linear,-webkit-transform .4s linear;transition:opacity 1s linear,transform .4s linear;transition:opacity 1s linear,transform .4s linear,-webkit-transform .4s linear}.u-round-circle[data-v-4ed92bb2]{border-radius:%?100?%}.u-round-circle[data-v-4ed92bb2]::after{border-radius:%?100?%}.u-loading[data-v-4ed92bb2]::after{background-color:hsla(0,0%,100%,.35)}.u-size-default[data-v-4ed92bb2]{font-size:%?30?%;height:%?80?%;line-height:%?80?%}.u-size-medium[data-v-4ed92bb2]{display:inline-flex;width:auto;font-size:%?26?%;height:%?70?%;line-height:%?70?%;padding:0 %?80?%}.u-size-mini[data-v-4ed92bb2]{display:inline-flex;width:auto;font-size:%?22?%;padding-top:1px;height:%?50?%;line-height:%?50?%;padding:0 %?20?%}.u-primary-plain-hover[data-v-4ed92bb2]{color:#fff!important;background:#2b85e4!important}.u-default-plain-hover[data-v-4ed92bb2]{color:#2b85e4!important;background:#ecf5ff!important}.u-success-plain-hover[data-v-4ed92bb2]{color:#fff!important;background:#18b566!important}.u-warning-plain-hover[data-v-4ed92bb2]{color:#fff!important;background:#f29100!important}.u-error-plain-hover[data-v-4ed92bb2]{color:#fff!important;background:#dd6161!important}.u-info-plain-hover[data-v-4ed92bb2]{color:#fff!important;background:#82848a!important}.u-default-hover[data-v-4ed92bb2]{color:#2b85e4!important;border-color:#2b85e4!important;background-color:#ecf5ff!important}.u-primary-hover[data-v-4ed92bb2]{background:#2b85e4!important;color:#fff}.u-success-hover[data-v-4ed92bb2]{background:#18b566!important;color:#fff}.u-info-hover[data-v-4ed92bb2]{background:#82848a!important;color:#fff}.u-warning-hover[data-v-4ed92bb2]{background:#f29100!important;color:#fff}.u-error-hover[data-v-4ed92bb2]{background:#dd6161!important;color:#fff}',""]),e.exports=t},8456:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/* uni.scss */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */',""]),e.exports=t},"8a52":function(e,t,n){var r=n("82de");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("5e08a0d9",r,!0,{sourceMap:!1,shadowMode:!1})},"8bf3":function(e,t,n){"use strict";n.r(t);var r=n("6a25"),i=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"8ed1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={appid:"__UNI__64046D4"};t.default=r},"8f60":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-button",{staticClass:"u-btn u-line-1 u-fix-ios-appearance",class:["u-size-"+e.size,e.plain?"u-btn--"+e.type+"--plain":"",e.loading?"u-loading":"","circle"==e.shape?"u-round-circle":"",e.hairLine?e.showHairLineBorder:"u-btn--bold-border","u-btn--"+e.type,e.disabled?"u-btn--"+e.type+"--disabled":""],style:[e.customStyle,{overflow:e.ripple?"hidden":"visible"}],attrs:{id:"u-wave-btn","hover-start-time":Number(e.hoverStartTime),"hover-stay-time":Number(e.hoverStayTime),disabled:e.disabled,"form-type":e.formType,"open-type":e.openType,"app-parameter":e.appParameter,"hover-stop-propagation":e.hoverStopPropagation,"send-message-title":e.sendMessageTitle,"send-message-path":"sendMessagePath",lang:e.lang,"data-name":e.dataName,"session-from":e.sessionFrom,"send-message-img":e.sendMessageImg,"show-message-card":e.showMessageCard,"hover-class":e.getHoverClass,loading:e.loading},on:{getphonenumber:function(t){arguments[0]=t=e.$handleEvent(t),e.getphonenumber.apply(void 0,arguments)},getuserinfo:function(t){arguments[0]=t=e.$handleEvent(t),e.getuserinfo.apply(void 0,arguments)},error:function(t){arguments[0]=t=e.$handleEvent(t),e.error.apply(void 0,arguments)},opensetting:function(t){arguments[0]=t=e.$handleEvent(t),e.opensetting.apply(void 0,arguments)},launchapp:function(t){arguments[0]=t=e.$handleEvent(t),e.launchapp.apply(void 0,arguments)},click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.click(t)}}},[e._t("default"),e.ripple?n("v-uni-view",{staticClass:"u-wave-ripple",class:[e.waveActive?"u-wave-active":""],style:{top:e.rippleTop+"px",left:e.rippleLeft+"px",width:e.fields.targetWidth+"px",height:e.fields.targetWidth+"px","background-color":e.rippleBgColor||"rgba(0, 0, 0, 0.15)"}}):e._e()],2)},a=[]},9072:function(e,t,n){"use strict";n("4ec9"),n("d3b7"),n("3ca3"),n("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var r=s(n("7e84")),i=s(n("b380")),a=s(n("fa95")),o=s(n("4478"));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){var n="function"===typeof Map?new Map:void 0;return t.default=u=function(e){if(null===e||!(0,a.default)(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return(0,o.default)(e,arguments,(0,r.default)(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),(0,i.default)(t,e)},u(e)}},9190:function(e,t,n){"use strict";n.r(t);var r=n("74e1"),i=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},9310:function(e,t,n){"use strict";n.r(t);var r=n("dd6b"),i=n("9f6e");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("5001");var o,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"f9c51590",null,!1,r["a"],o);t["default"]=u.exports},"97bc":function(e,t,n){"use strict";n.r(t);var r=n("a2ef"),i=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"99de":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=a(n("53ca")),i=a(n("257e"));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){return!t||"object"!==(0,r.default)(t)&&"function"!==typeof t?(0,i.default)(e):t}},"9e5a":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,".ceshi[data-v-2406b974]{width:100%;height:100%;position:relative;top:0;left:0;bottom:0;right:0;background-color:#fff;color:#2c405a;opacity:.5;z-index:100}",""]),e.exports=t},"9e9d":function(e,t,n){"use strict";n.r(t);var r=n("3400"),i=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"9f6c":function(e,t,n){"use strict";var r=n("4ea4");n("a9e3"),n("498a"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("b775")),a={name:"u-input",mixins:[i.default],props:{value:{type:[String,Number],default:""},type:{type:String,default:"text"},inputAlign:{type:String,default:"left"},placeholder:{type:String,default:"请输入内容"},disabled:{type:Boolean,default:!1},maxlength:{type:[Number,String],default:140},placeholderStyle:{type:String,default:"color: #c0c4cc;"},confirmType:{type:String,default:"done"},customStyle:{type:Object,default:function(){return{}}},fixed:{type:Boolean,default:!1},focus:{type:Boolean,default:!1},passwordIcon:{type:Boolean,default:!0},border:{type:Boolean,default:!1},borderColor:{type:String,default:"#dcdfe6"},autoHeight:{type:Boolean,default:!0},selectOpen:{type:Boolean,default:!1},height:{type:[Number,String],default:""},clearable:{type:Boolean,default:!0},cursorSpacing:{type:[Number,String],default:0},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},trim:{type:Boolean,default:!0},showConfirmbar:{type:Boolean,default:!0}},data:function(){return{defaultValue:this.value,inputHeight:70,textareaHeight:100,validateState:!1,focused:!1,showPassword:!1,lastValue:""}},watch:{value:function(e,t){this.defaultValue=e,e!=t&&"select"==this.type&&this.handleInput({detail:{value:e}})}},computed:{inputMaxlength:function(){return Number(this.maxlength)},getStyle:function(){var e={};return e.minHeight=this.height?this.height+"rpx":"textarea"==this.type?this.textareaHeight+"rpx":this.inputHeight+"rpx",e=Object.assign(e,this.customStyle),e},getCursorSpacing:function(){return Number(this.cursorSpacing)},uSelectionStart:function(){return String(this.selectionStart)},uSelectionEnd:function(){return String(this.selectionEnd)}},created:function(){this.$on("on-form-item-error",this.onFormItemError)},methods:{handleInput:function(e){var t=this,n=e.detail.value;this.trim&&(n=this.$u.trim(n)),this.$emit("input",n),this.defaultValue=n,setTimeout((function(){t.dispatch("u-form-item","on-form-change",n)}),40)},handleBlur:function(e){var t=this;setTimeout((function(){t.focused=!1}),100),this.$emit("blur",e.detail.value),setTimeout((function(){t.dispatch("u-form-item","on-form-blur",e.detail.value)}),40)},onFormItemError:function(e){this.validateState=e},onFocus:function(e){this.focused=!0,this.$emit("focus")},onConfirm:function(e){this.$emit("confirm",e.detail.value)},onClear:function(e){this.$emit("input","")},inputClick:function(){this.$emit("click")}}};t.default=a},"9f6e":function(e,t,n){"use strict";n.r(t);var r=n("f98d"),i=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},a1de:function(e,t,n){var r=n("5b6c");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("e7f47e44",r,!0,{sourceMap:!1,shadowMode:!1})},a2ef:function(e,t,n){"use strict";var r=n("4ea4");n("4160"),n("a9e3"),n("ac1f"),n("5319"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("5530")),a={name:"uniTransition",props:{show:{type:Boolean,default:!1},modeClass:{type:Array,default:function(){return[]}},duration:{type:Number,default:300},styles:{type:Object,default:function(){return{}}}},data:function(){return{isShow:!1,transform:"",ani:{in:"",active:""}}},watch:{show:{handler:function(e){e?this.open():this.close()},immediate:!0}},computed:{stylesObject:function(){var e=(0,i.default)((0,i.default)({},this.styles),{},{"transition-duration":this.duration/1e3+"s"}),t="";for(var n in e){var r=this.toLine(n);t+=r+":"+e[n]+";"}return t}},created:function(){},methods:{change:function(){this.$emit("click",{detail:this.isShow})},open:function(){var e=this;for(var t in clearTimeout(this.timer),this.isShow=!0,this.transform="",this.ani.in="",this.getTranfrom(!1))"opacity"===t?this.ani.in="fade-in":this.transform+="".concat(this.getTranfrom(!1)[t]," ");this.$nextTick((function(){setTimeout((function(){e._animation(!0)}),50)}))},close:function(e){clearTimeout(this.timer),this._animation(!1)},_animation:function(e){var t=this,n=this.getTranfrom(e);for(var r in this.transform="",n)"opacity"===r?this.ani.in="fade-".concat(e?"out":"in"):this.transform+="".concat(n[r]," ");this.timer=setTimeout((function(){e||(t.isShow=!1),t.$emit("change",{detail:t.isShow})}),this.duration)},getTranfrom:function(e){var t={transform:""};return this.modeClass.forEach((function(n){switch(n){case"fade":t.opacity=e?1:0;break;case"slide-top":t.transform+="translateY(".concat(e?"0":"-100%",") ");break;case"slide-right":t.transform+="translateX(".concat(e?"0":"100%",") ");break;case"slide-bottom":t.transform+="translateY(".concat(e?"0":"100%",") ");break;case"slide-left":t.transform+="translateX(".concat(e?"0":"-100%",") ");break;case"zoom-in":t.transform+="scale(".concat(e?1:.8,") ");break;case"zoom-out":t.transform+="scale(".concat(e?1:1.2,") ");break}})),t},_modeClassArr:function(e){var t=this.modeClass;if("string"!==typeof t){var n="";return t.forEach((function(t){n+=t+"-"+e+","})),n.substr(0,n.length-1)}return t+"-"+e},toLine:function(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}}};t.default=a},a5ab:function(e,t,n){"use strict";n.r(t);var r=n("2bc6"),i=n("682a");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("08c9");var o,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"1225fad1",null,!1,r["a"],o);t["default"]=u.exports},a623:function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").every,a=n("a640"),o=n("ae40"),s=a("every"),u=o("every");r({target:"Array",proto:!0,forced:!s||!u},{every:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},a727:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/* uni.scss */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.zhilin-cascader[data-v-1225fad1]{overflow:hidden;display:flex;flex-direction:column;background-color:#fff}.zhilin-cascader .filterTitle[data-v-1225fad1]{text-align:center;padding:%?20?%}.zhilin-cascader .filterView[data-v-1225fad1]{height:calc(100% - %?162?%);display:flex}.zhilin-cascader .filterView .group[data-v-1225fad1]{border-left:1px solid #eee}.zhilin-cascader .filterView .group .filter-content-scroll[data-v-1225fad1]{height:100%}.zhilin-cascader .filterView .group .cell[data-v-1225fad1]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:%?20?% %?28?%;box-sizing:border-box;position:relative}.zhilin-cascader .filterView .group .cell.active[data-v-1225fad1]{background-color:rgba(0,122,255,.05)}.zhilin-cascader .filterView .group .cell.active[data-v-1225fad1]::before{content:"";position:absolute;left:0;top:%?2?%;width:%?6?%;height:100%;background-color:#007aff}.zhilin-cascader .filterBtns[data-v-1225fad1]{display:flex;justify-content:space-between;padding:%?40?%;border-top:1px solid #eff0f1}.zhilin-cascader .filterBtns uni-button[data-v-1225fad1]{font-size:%?32?%;height:%?80?%;margin:0}.zhilin-cascader .filterBtns uni-button.cancel[data-v-1225fad1]{width:calc((100% - %?40?%) / 3);background-color:#eff0f1;border-color:#eff0f1}.zhilin-cascader .filterBtns uni-button.confirm[data-v-1225fad1]{background-color:#007aff;color:#fff;width:calc((100% - %?40?%) * 2 / 3 + %?20?%)}.zhilin-cascader .filterBtns uni-button.reset[data-v-1225fad1]{margin-right:%?30?%;flex:1}',""]),e.exports=t},a9ff:function(e,t,n){"use strict";(function(e){var r=n("4ea4");n("a4d3"),n("e01a"),n("99af"),n("4de4"),n("7db0"),n("4160"),n("a630"),n("caad"),n("c975"),n("baa5"),n("d81d"),n("13d5"),n("26e9"),n("fb6a"),n("45fc"),n("4e82"),n("a434"),n("f4b3"),n("6c57"),n("a9e3"),n("b64b"),n("d3b7"),n("e25e"),n("4d63"),n("ac1f"),n("5377"),n("25f0"),n("2532"),n("3ca3"),n("466d"),n("5319"),n("841c"),n("1276"),n("498a"),n("159b"),n("ddb0"),n("bf19"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("96cf");var i=r(n("1da1")),a=r(n("2909")),o=r(n("b85c")),s=r(n("bee2")),u=r(n("5530")),c=r(n("d4ec")),l=r(n("262e")),f=r(n("2caf")),d=r(n("9072")),h=n("37dc"),p=r(n("647a"));function v(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function m(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 g=m((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}}(),r={},i=r.lib={},a=i.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=i.WordArray=a.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var a=0;a<i;a++){var o=n[a>>>2]>>>24-a%4*8&255;t[r+a>>>2]|=o<<24-(r+a)%4*8}else for(a=0;a<i;a+=4)t[r+a>>>2]=n[a>>>2];return this.sigBytes+=i,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=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],i=function(t){t=t;var n=987654321,r=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},a=0;a<t;a+=4){var s=i(4294967296*(n||e.random()));n=987654071*s(),r.push(4294967296*s()|0)}return new o.init(r,t)}}),s=r.enc={},u=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var a=t[i>>>2]>>>24-i%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new o.init(n,t/2)}},c=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var a=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new o.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},f=i.BufferedBlockAlgorithm=a.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,r=n.words,i=n.sigBytes,a=this.blockSize,s=i/(4*a),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,c=e.min(4*u,i);if(u){for(var l=0;l<u;l+=a)this._doProcessBlock(r,l);var f=r.splice(0,u);n.sigBytes-=c}return new o.init(f,c)},clone:function(){var e=a.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});i.Hasher=f.extend({cfg:a.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new d.HMAC.init(e,n).finalize(t)}}});var d=r.algo={};return r}(Math),n)})),y=(m((function(e,t){var n;e.exports=(n=g,function(e){var t=n,r=t.lib,i=r.WordArray,a=r.Hasher,o=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var u=o.MD5=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var a=this._hash.words,o=e[t+0],u=e[t+1],h=e[t+2],p=e[t+3],v=e[t+4],m=e[t+5],g=e[t+6],y=e[t+7],b=e[t+8],_=e[t+9],w=e[t+10],k=e[t+11],x=e[t+12],S=e[t+13],T=e[t+14],P=e[t+15],A=a[0],C=a[1],O=a[2],I=a[3];A=c(A,C,O,I,o,7,s[0]),I=c(I,A,C,O,u,12,s[1]),O=c(O,I,A,C,h,17,s[2]),C=c(C,O,I,A,p,22,s[3]),A=c(A,C,O,I,v,7,s[4]),I=c(I,A,C,O,m,12,s[5]),O=c(O,I,A,C,g,17,s[6]),C=c(C,O,I,A,y,22,s[7]),A=c(A,C,O,I,b,7,s[8]),I=c(I,A,C,O,_,12,s[9]),O=c(O,I,A,C,w,17,s[10]),C=c(C,O,I,A,k,22,s[11]),A=c(A,C,O,I,x,7,s[12]),I=c(I,A,C,O,S,12,s[13]),O=c(O,I,A,C,T,17,s[14]),A=l(A,C=c(C,O,I,A,P,22,s[15]),O,I,u,5,s[16]),I=l(I,A,C,O,g,9,s[17]),O=l(O,I,A,C,k,14,s[18]),C=l(C,O,I,A,o,20,s[19]),A=l(A,C,O,I,m,5,s[20]),I=l(I,A,C,O,w,9,s[21]),O=l(O,I,A,C,P,14,s[22]),C=l(C,O,I,A,v,20,s[23]),A=l(A,C,O,I,_,5,s[24]),I=l(I,A,C,O,T,9,s[25]),O=l(O,I,A,C,p,14,s[26]),C=l(C,O,I,A,b,20,s[27]),A=l(A,C,O,I,S,5,s[28]),I=l(I,A,C,O,h,9,s[29]),O=l(O,I,A,C,y,14,s[30]),A=f(A,C=l(C,O,I,A,x,20,s[31]),O,I,m,4,s[32]),I=f(I,A,C,O,b,11,s[33]),O=f(O,I,A,C,k,16,s[34]),C=f(C,O,I,A,T,23,s[35]),A=f(A,C,O,I,u,4,s[36]),I=f(I,A,C,O,v,11,s[37]),O=f(O,I,A,C,y,16,s[38]),C=f(C,O,I,A,w,23,s[39]),A=f(A,C,O,I,S,4,s[40]),I=f(I,A,C,O,o,11,s[41]),O=f(O,I,A,C,p,16,s[42]),C=f(C,O,I,A,g,23,s[43]),A=f(A,C,O,I,_,4,s[44]),I=f(I,A,C,O,x,11,s[45]),O=f(O,I,A,C,P,16,s[46]),A=d(A,C=f(C,O,I,A,h,23,s[47]),O,I,o,6,s[48]),I=d(I,A,C,O,y,10,s[49]),O=d(O,I,A,C,T,15,s[50]),C=d(C,O,I,A,m,21,s[51]),A=d(A,C,O,I,x,6,s[52]),I=d(I,A,C,O,p,10,s[53]),O=d(O,I,A,C,w,15,s[54]),C=d(C,O,I,A,u,21,s[55]),A=d(A,C,O,I,b,6,s[56]),I=d(I,A,C,O,P,10,s[57]),O=d(O,I,A,C,g,15,s[58]),C=d(C,O,I,A,S,21,s[59]),A=d(A,C,O,I,v,6,s[60]),I=d(I,A,C,O,k,10,s[61]),O=d(O,I,A,C,h,15,s[62]),C=d(C,O,I,A,_,21,s[63]),a[0]=a[0]+A|0,a[1]=a[1]+C|0,a[2]=a[2]+O|0,a[3]=a[3]+I|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var a=e.floor(r/4294967296),o=r;n[15+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,u=s.words,c=0;c<4;c++){var l=u[c];u[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,r,i,a,o){var s=e+(t&n|~t&r)+i+o;return(s<<a|s>>>32-a)+t}function l(e,t,n,r,i,a,o){var s=e+(t&r|n&~r)+i+o;return(s<<a|s>>>32-a)+t}function f(e,t,n,r,i,a,o){var s=e+(t^n^r)+i+o;return(s<<a|s>>>32-a)+t}function d(e,t,n,r,i,a,o){var s=e+(n^(t|~r))+i+o;return(s<<a|s>>>32-a)+t}t.MD5=a._createHelper(u),t.HmacMD5=a._createHmacHelper(u)}(Math),n.MD5)})),m((function(e,t){var n,r,i;e.exports=(r=(n=g).lib.Base,i=n.enc.Utf8,void(n.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),o=this._iKey=t.clone(),s=a.words,u=o.words,c=0;c<n;c++)s[c]^=1549556828,u[c]^=909522486;a.sigBytes=o.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))})),m((function(e,t){e.exports=g.HmacMD5}))),b="FUNCTION",_="OBJECT",w="CLIENT_DB";function k(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function x(e){return"object"===k(e)}function S(e){return e&&"string"==typeof e?JSON.parse(e):e}var T,P=!1,A="h5";switch(A){case"h5":T="web";break;case"app-plus":T="app";break;default:T=A}var C=S(void 0),O=S([])||[],I=!0,E="";try{var R=n("8ed1").default||n("8ed1");E=R.appid}catch(Rn){}var L={};function F(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=L,n=e,Object.prototype.hasOwnProperty.call(t,n)||(L[e]=r),L[e]}"app"===T&&(L=uni._globalUniCloudObj?uni._globalUniCloudObj:uni._globalUniCloudObj={});var N=["invoke","success","fail","complete"],D=F("_globalUniCloudInterceptor");function q(e,t){D[e]||(D[e]={}),x(t)&&Object.keys(t).forEach((function(n){N.indexOf(n)>-1&&function(e,t,n){var r=D[e][t];r||(r=D[e][t]=[]),-1===r.indexOf(n)&&"function"==typeof n&&r.push(n)}(e,n,t[n])}))}function U(e,t){D[e]||(D[e]={}),x(t)?Object.keys(t).forEach((function(n){N.indexOf(n)>-1&&function(e,t,n){var r=D[e][t];if(r){var i=r.indexOf(n);i>-1&&r.splice(i,1)}}(e,n,t[n])})):delete D[e]}function M(e,t){return e&&0!==e.length?e.reduce((function(e,n){return e.then((function(){return n(t)}))}),Promise.resolve()):Promise.resolve()}function j(e,t){return D[e]&&D[e][t]||[]}function $(e){q("callObject",e)}var z=F("_globalUniCloudListener"),B="response",V="needLogin",K="refreshToken",W="clientdb",H="cloudfunction",Y="cloudobject";function J(e){return z[e]||(z[e]=[]),z[e]}function X(e,t){var n=J(e);n.includes(t)||n.push(t)}function Q(e,t){var n=J(e),r=n.indexOf(t);-1!==r&&n.splice(r,1)}function G(e,t){for(var n=J(e),r=0;r<n.length;r++)(0,n[r])(t)}var Z=!1,ee=new Promise((function(e){Z&&e(),function t(){if("function"==typeof getCurrentPages){var n=getCurrentPages();n&&n[0]&&(Z=!0,e())}Z||setTimeout((function(){t()}),30)}()}));function te(){return ee}function ne(e,t){return t?function(n){var r=this,i=!1;if("callFunction"===t){var a=n&&n.type||b;i=a!==b}var o,s="callFunction"===t&&!i;o=this.isReady?Promise.resolve():this.initUniCloud,n=n||{};var u=o.then((function(){return i?Promise.resolve():M(j(t,"invoke"),n)})).then((function(){return e.call(r,n)})).then((function(e){return i?Promise.resolve(e):M(j(t,"success"),e).then((function(){return M(j(t,"complete"),e)})).then((function(){return s&&G(B,{type:H,content:e}),Promise.resolve(e)}))}),(function(e){return i?Promise.reject(e):M(j(t,"fail"),e).then((function(){return M(j(t,"complete"),e)})).then((function(){return G(B,{type:H,content:e}),Promise.reject(e)}))}));if(!(n.success||n.fail||n.complete))return u;u.then((function(e){n.success&&n.success(e),n.complete&&n.complete(e),s&&G(B,{type:H,content:e})}),(function(e){n.fail&&n.fail(e),n.complete&&n.complete(e),s&&G(B,{type:H,content:e})}))}:function(t){if(!((t=t||{}).success||t.fail||t.complete))return e.call(this,t);e.call(this,t).then((function(e){t.success&&t.success(e),t.complete&&t.complete(e)}),(function(e){t.fail&&t.fail(e),t.complete&&t.complete(e)}))}}var re,ie=function(e){(0,l.default)(n,e);var t=(0,f.default)(n);function n(e){var r;return(0,c.default)(this,n),r=t.call(this,e.message),r.errMsg=e.message||"",r.errCode=r.code=e.code||"SYSTEM_ERROR",r.requestId=e.requestId,r}return n}((0,d.default)(Error));function ae(){var e,t;try{if(uni.getLaunchOptionsSync){if(uni.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;var n=uni.getLaunchOptionsSync(),r=n.scene,i=n.channel;e=i,t=r}}catch(e){}return{channel:e,scene:t}}function oe(){var e=uni.getLocale&&uni.getLocale()||"en";if(re)return(0,u.default)((0,u.default)({},re),{},{locale:e,LOCALE:e});for(var t=uni.getSystemInfoSync(),n=t.deviceId,r=t.osName,i=t.uniPlatform,a=t.appId,o=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"],s=0;s<o.length;s++)delete t[o[s]];return re=(0,u.default)((0,u.default)({PLATFORM:i,OS:r,APPID:a,DEVICEID:n},ae()),t),(0,u.default)((0,u.default)({},re),{},{locale:e,LOCALE:e})}var se,ue={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),y(n,t).toString()},wrappedRequest:function(e,t){return new Promise((function(n,r){t(Object.assign(e,{complete:function(e){e||(e={}),P&&"web"===T&&e.errMsg&&0===e.errMsg.indexOf("request:fail")&&console.warn("发布H5需要在uniCloud后台操作绑定安全域名否则会因为跨域问题而无法访问。教程参考https://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5");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 r(new ie({code:"SYS_ERR",message:e.errMsg||"request:fail",requestId:t}));var i=e.data;if(i.error)return r(new ie({code:i.error.code,message:i.error.message,requestId:t}));i.result=i.data,i.requestId=t,delete i.data,n(i)}}))}))}},ce={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()}},le={"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},fe=(0,h.initVueI18n)({"zh-Hans":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},"zh-Hant":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},en:le,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:le},"zh-Hans"),de=fe.t,he=function(){function e(t){(0,c.default)(this,e),["spaceId","clientSecret"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error(de("uniCloud.init.paramRequired",{param:e}))})),this.config=Object.assign({},{endpoint:"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=ce,this._getAccessTokenPromise=null,this._getAccessTokenPromiseStatus=null}return(0,s.default)(e,[{key:"setAccessToken",value:function(e){this.accessToken=e}},{key:"requestWrapped",value:function(e){return ue.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"]=ue.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()}),r={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,r["x-basement-token"]=this.accessToken),r["x-serverless-sign"]=ue.sign(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:r}}},{key:"getAccessToken",value:function(){var e=this;return"pending"===this._getAccessTokenPromiseStatus||(this._getAccessTokenPromiseStatus="pending",this._getAccessTokenPromise=this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((function(t){return new Promise((function(n,r){t.result&&t.result.accessToken?(e.setAccessToken(t.result.accessToken),e._getAccessTokenPromiseStatus="fulfilled",n(e.accessToken)):(e._getAccessTokenPromiseStatus="rejected",r(new ie({code:"AUTH_FAILED",message:"获取accessToken失败"})))}))}),(function(t){return e._getAccessTokenPromiseStatus="rejected",Promise.reject(t)}))),this._getAccessTokenPromise}},{key:"authorize",value:function(){this.getAccessToken()}},{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,r=e.formData,i=e.name,a=e.filePath,o=e.fileType,s=e.onUploadProgress;return new Promise((function(e,u){var c=t.adapter.uploadFile({url:n,formData:r,name:i,filePath:a,fileType:o,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(t){t&&t.statusCode<400?e(t):u(new ie({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){u(new ie({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(e){s({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(e){var t=this,n=e.filePath,r=e.cloudPath,i=e.fileType,a=void 0===i?"image":i,o=e.onUploadProgress,s=e.config;if("string"!==k(r))throw new ie({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(r=r.trim()))throw new ie({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});if(/:\/\//.test(r))throw new ie({code:"INVALID_PARAM",message:"cloudPath不合法"});var u,c,l=s&&s.envType||this.config.envType;return this.getOSSUploadOptionsFromPath({env:l,filename:r}).then((function(e){var r=e.result;u=r.id,c="https://"+r.cdnDomain+"/"+r.ossPath;var i={url:"https://"+r.host,formData:{"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:r.accessKeyId,Signature:r.signature,host:r.host,id:u,key:r.ossPath,policy:r.policy,success_action_status:200},fileName:"file",name:"file",filePath:n,fileType:a};return t.uploadFileToOSS(Object.assign({},i,{onUploadProgress:o}))})).then((function(){return t.reportOSSUpload({id:u})})).then((function(e){return new Promise((function(t,r){e.success?t({success:!0,filePath:n,fileID:c}):r(new ie({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}))}},{key:"deleteFile",value:function(e){var t=e.fileList,n={method:"serverless.file.resource.delete",params:JSON.stringify({id:t[0]})};return this.request(this.setupRequest(n))}},{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 ie({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),e({fileList:t.map((function(e){return{fileID:e,tempFileURL:e}}))})}))}},{key:"hasAccessToken",get:function(){return!!this.accessToken}}]),e}(),pe={init:function(e){var t=new he(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},ve="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";!function(e){e.local="local",e.none="none",e.session="session"}(se||(se={}));var me,ge=function(){},ye=function(){var e;if(!Promise){e=function(){},e.promise={};var t=function(){throw new ie({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,r){return e?n(e):t(r)}}));return e.promise=n,e};function be(e){return void 0===e}function _e(e){return"[object Null]"===Object.prototype.toString.call(e)}function we(e){var t,n,r=(t=e,"[object Array]"===Object.prototype.toString.call(t)?e:[e]),i=(0,o.default)(r);try{for(i.s();!(n=i.n()).done;){var a=n.value,s=a.isMatch,u=a.genAdapter,c=a.runtime;if(s())return{adapter:u(),runtime:c}}}catch(l){i.e(l)}finally{i.f()}}!function(e){e.WEB="web",e.WX_MP="wx_mp"}(me||(me={}));var ke={adapter:null,runtime:void 0},xe=["anonymousUuidKey"],Se=function(e){(0,l.default)(n,e);var t=(0,f.default)(n);function n(){var e;return(0,c.default)(this,n),e=t.call(this),ke.adapter.root.tcbObject||(ke.adapter.root.tcbObject={}),e}return(0,s.default)(n,[{key:"setItem",value:function(e,t){ke.adapter.root.tcbObject[e]=t}},{key:"getItem",value:function(e){return ke.adapter.root.tcbObject[e]}},{key:"removeItem",value:function(e){delete ke.adapter.root.tcbObject[e]}},{key:"clear",value:function(){delete ke.adapter.root.tcbObject}}]),n}(ge);function Te(e,t){switch(e){case"local":return t.localStorage||new Se;case"none":return new Se;default:return t.sessionStorage||new Se}}var Pe=function(){function e(t){if((0,c.default)(this,e),!this._storage){this._persistence=ke.adapter.primaryStorage||t.persistence,this._storage=Te(this._persistence,ke.adapter);var n="access_token_".concat(t.env),r="access_token_expire_".concat(t.env),i="refresh_token_".concat(t.env),a="anonymous_uuid_".concat(t.env),o="login_type_".concat(t.env),s="user_info_".concat(t.env);this.keys={accessTokenKey:n,accessTokenExpireKey:r,refreshTokenKey:i,anonymousUuidKey:a,loginTypeKey:o,userInfoKey:s}}}return(0,s.default)(e,[{key:"updatePersistence",value:function(e){if(e!==this._persistence){var t="local"===this._persistence;this._persistence=e;var n=Te(e,ke.adapter);for(var r in this.keys){var i=this.keys[r];if(!t||!xe.includes(r)){var a=this._storage.getItem(i);be(a)||_e(a)||(n.setItem(i,a),this._storage.removeItem(i))}}this._storage=n}}},{key:"setStore",value:function(e,t,n){if(this._storage){var r={version:n||"localCachev1",content:t},i=JSON.stringify(r);try{this._storage.setItem(e,i)}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}(),Ae={},Ce={};function Oe(e){return Ae[e]}var Ie=function e(t,n){(0,c.default)(this,e),this.data=n||null,this.name=t},Ee=function(e){(0,l.default)(n,e);var t=(0,f.default)(n);function n(e,r){var i;return(0,c.default)(this,n),i=t.call(this,"error",{error:e,data:r}),i.error=e,i}return n}(Ie),Re=new(function(){function e(){(0,c.default)(this,e),this._listeners={}}return(0,s.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 r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}(e,t,this._listeners),this}},{key:"fire",value:function(e,t){if(e instanceof Ee)return console.error(e.error),this;var n="string"==typeof e?new Ie(e,t||{}):e,r=n.name;if(this._listens(r)){n.target=this;var i,s=this._listeners[r]?(0,a.default)(this._listeners[r]):[],u=(0,o.default)(s);try{for(u.s();!(i=u.n()).done;){var c=i.value;c.call(this,n)}}catch(l){u.e(l)}finally{u.f()}}return this}},{key:"_listens",value:function(e){return this._listeners[e]&&this._listeners[e].length>0}}]),e}());function Le(e,t){Re.on(e,t)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Re.fire(e,t)}function Ne(e,t){Re.off(e,t)}var De,qe="loginStateChanged",Ue="loginStateExpire",Me="loginTypeChanged",je="anonymousConverted",$e="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"}(De||(De={}));var ze=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],Be={"X-SDK-Version":"1.3.5"};function Ve(e,t,n){var r=e[t];e[t]=function(t){var i={},a={};n.forEach((function(n){var r=n.call(e,t),o=r.data,s=r.headers;Object.assign(i,o),Object.assign(a,s)}));var o=t.data;return o&&function(){var e;if(e=o,"[object FormData]"!==Object.prototype.toString.call(e))t.data=(0,u.default)((0,u.default)({},o),i);else for(var n in i)o.append(n,i[n])}(),t.headers=(0,u.default)((0,u.default)({},t.headers||{}),a),r.call(e,t)}}function Ke(){var e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:(0,u.default)((0,u.default)({},Be),{},{"x-seqid":e})}}var We=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,c.default)(this,e),this.config=n,this._reqClass=new ke.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"请求在".concat(this.config.timeout/1e3,"s内未完成已中断"),restrictedMethods:["post"]}),this._cache=Oe(this.config.env),this._localCache=(t=this.config.env,Ce[t]),Ve(this._reqClass,"post",[Ke]),Ve(this._reqClass,"upload",[Ke]),Ve(this._reqClass,"download",[Ke])}return(0,s.default)(e,[{key:"post",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.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)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"upload",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.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)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"download",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.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)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"refreshAccessToken",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.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]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"_refreshAccessToken",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(){var t,n,r,i,a,o,s,u,c,l,f,d,h;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey,a=t.loginTypeKey,o=t.anonymousUuidKey,this._cache.removeStore(n),this._cache.removeStore(r),s=this._cache.getStore(i),s){e.next=5;break}throw new ie({message:"未登录CloudBase"});case 5:return u={refresh_token:s},e.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",u);case 8:if(c=e.sent,!c.data.code){e.next=21;break}if(l=c.data.code,"SIGN_PARAM_INVALID"!==l&&"REFRESH_TOKEN_EXPIRED"!==l&&"INVALID_REFRESH_TOKEN"!==l){e.next=20;break}if(this._cache.getStore(a)!==De.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==l){e.next=19;break}return f=this._cache.getStore(o),d=this._cache.getStore(i),e.next=17,this.send("auth.signInAnonymously",{anonymous_uuid:f,refresh_token:d});case 17:return h=e.sent,e.abrupt("return",(this.setRefreshToken(h.refresh_token),this._refreshAccessToken()));case 19:Fe(Ue),this._cache.removeStore(i);case 20:throw new ie({code:c.data.code,message:"刷新access token失败".concat(c.data.code)});case 21:if(!c.data.access_token){e.next=23;break}return e.abrupt("return",(Fe($e),this._cache.setStore(n,c.data.access_token),this._cache.setStore(r,c.data.access_token_expire+Date.now()),{accessToken:c.data.access_token,accessTokenExpire:c.data.access_token_expire}));case 23:c.data.refresh_token&&(this._cache.removeStore(i),this._cache.setStore(i,c.data.refresh_token),this._refreshAccessToken());case 24:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getAccessToken",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(){var t,n,r,i,a,o,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey,this._cache.getStore(i)){e.next=3;break}throw new ie({message:"refresh token不存在登录状态异常"});case 3:if(a=this._cache.getStore(n),o=this._cache.getStore(r),s=!0,e.t0=this._shouldRefreshAccessTokenHook,!e.t0){e.next=9;break}return e.next=8,this._shouldRefreshAccessTokenHook(a,o);case 8:e.t0=!e.sent;case 9:if(e.t1=e.t0,!e.t1){e.next=12;break}s=!1;case 12:return e.abrupt("return",(!a||!o||o<Date.now())&&s?this.refreshAccessToken():{accessToken:a,accessTokenExpire:o});case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"request",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(t,n,r){var i,a,o,s,c,l,f,d,h,p,v,m,g,y,b,_;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i="x-tcb-trace_".concat(this.config.env),a="application/x-www-form-urlencoded",o=(0,u.default)({action:t,env:this.config.env,dataVersion:"2019-08-16"},n),-1!==ze.indexOf(t)){e.next=10;break}if(s=this._cache.keys.refreshTokenKey,e.t0=this._cache.getStore(s),!e.t0){e.next=10;break}return e.next=9,this.getAccessToken();case 9:o.access_token=e.sent.accessToken;case 10:if("storage.uploadFile"===t){for(l in c=new FormData,c)c.hasOwnProperty(l)&&void 0!==c[l]&&c.append(l,o[l]);a="multipart/form-data"}else for(f in a="application/json",c={},o)void 0!==o[f]&&(c[f]=o[f]);return d={headers:{"content-type":a}},r&&r.onUploadProgress&&(d.onUploadProgress=r.onUploadProgress),h=this._localCache.getStore(i),h&&(d.headers["X-TCB-Trace"]=h),p=n.parse,v=n.inQuery,m=n.search,g={env:this.config.env},p&&(g.parse=!0),v&&(g=(0,u.default)((0,u.default)({},v),g)),y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=/\?/.test(t),i="";for(var a in n)""===i?!r&&(t+="?"):i+="&",i+="".concat(a,"=").concat(encodeURIComponent(n[a]));return/^http(s)?\:\/\//.test(t+=i)?t:"".concat(e).concat(t)}(ve,"//tcb-api.tencentcloudapi.com/web",g),m&&(y+=m),e.next=22,this.post((0,u.default)({url:y,data:c},d));case 22:if(b=e.sent,_=b.header&&b.header["x-tcb-trace"],_&&this._localCache.setStore(i,_),(200===Number(b.status)||200===Number(b.statusCode))&&b.data){e.next=26;break}throw new ie({code:"NETWORK_ERROR",message:"network request error"});case 26:return e.abrupt("return",b);case 27:case"end":return e.stop()}}),e,this)})));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"send",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(t){var n,r,i,a=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},e.next=3,this.request(t,n,{onUploadProgress:n.onUploadProgress});case 3:if(r=e.sent,"ACCESS_TOKEN_EXPIRED"!==r.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(i=e.sent,!i.data.code){e.next=12;break}throw new ie({code:i.data.code,message:i.data.message});case 12:return e.abrupt("return",i.data);case 13:if(!r.data.code){e.next=15;break}throw new ie({code:r.data.code,message:r.data.message});case 15:return e.abrupt("return",r.data);case 16:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(i,e)}}]),e}(),He={};function Ye(e){return He[e]}var Je=function(){function e(t){(0,c.default)(this,e),this.config=t,this._cache=Oe(t.env),this._request=Ye(t.env)}return(0,s.default)(e,[{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(i,e)}},{key:"setAccessToken",value:function(e,t){var n=this._cache.keys,r=n.accessTokenKey,i=n.accessTokenExpireKey;this._cache.setStore(r,e),this._cache.setStore(i,t)}},{key:"refreshUserInfo",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.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)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e)}}]),e}(),Xe=function(){function e(t){if((0,c.default)(this,e),!t)throw new ie({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=t,this._cache=Oe(this._envId),this._request=Ye(this._envId),this.setUserInfo()}return(0,s.default)(e,[{key:"linkWithTicket",value:function(e){if("string"!=typeof e)throw new ie({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 ie({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}},{key:"getLinkedUidList",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(){var t,n,r,i;return regeneratorRuntime.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,r=!1,i=n.users,e.abrupt("return",(i.forEach((function(e){e.wxOpenId&&e.wxPublicId&&(r=!0)})),{users:i,hasPrimaryUid:r}));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{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,i.default)(regeneratorRuntime.mark((function e(t){var n,r,i,a,o,s,u,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.nickName,r=t.gender,i=t.avatarUrl,a=t.province,o=t.country,s=t.city,e.next=8,this._request.send("auth.updateUserInfo",{nickName:n,gender:r,avatarUrl:i,province:a,country:o,city:s});case 8:u=e.sent,c=u.data,this.setLocalUserInfo(c);case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"refresh",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.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)})));function t(){return e.apply(this,arguments)}return t}()},{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}(),Qe=function(){function e(t){if((0,c.default)(this,e),!t)throw new ie({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=Oe(t);var n=this._cache.keys,r=n.refreshTokenKey,i=n.accessTokenKey,a=n.accessTokenExpireKey,o=this._cache.getStore(r),s=this._cache.getStore(i),u=this._cache.getStore(a);this.credential={refreshToken:o,accessToken:s,accessTokenExpire:u},this.user=new Xe(t)}return(0,s.default)(e,[{key:"isAnonymousAuth",get:function(){return this.loginType===De.ANONYMOUS}},{key:"isCustomAuth",get:function(){return this.loginType===De.CUSTOM}},{key:"isWeixinAuth",get:function(){return this.loginType===De.WECHAT||this.loginType===De.WECHAT_OPEN||this.loginType===De.WECHAT_PUBLIC}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),e}(),Ge=function(e){(0,l.default)(n,e);var t=(0,f.default)(n);function n(){return(0,c.default)(this,n),t.apply(this,arguments)}return(0,s.default)(n,[{key:"signIn",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(){var t,n,r,i,a,o,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._cache.updatePersistence("local"),t=this._cache.keys,n=t.anonymousUuidKey,r=t.refreshTokenKey,i=this._cache.getStore(n)||void 0,a=this._cache.getStore(r)||void 0,e.next=8,this._request.send("auth.signInAnonymously",{anonymous_uuid:i,refresh_token:a});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 Fe(qe),Fe(Me,{env:this.config.env,loginType:De.ANONYMOUS,persistence:"local"}),s=new Qe(this.config.env),e.next=19,s.user.refresh();case 19:return e.abrupt("return",s);case 20:throw new ie({message:"匿名登录失败"});case 21:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(t){var n,r,i,a,o,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=this._cache.keys,r=n.anonymousUuidKey,i=n.refreshTokenKey,a=this._cache.getStore(r),o=this._cache.getStore(i),e.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:a,refresh_token:o,ticket:t});case 7:if(s=e.sent,!s.refresh_token){e.next=16;break}return this._clearAnonymousUUID(),this.setRefreshToken(s.refresh_token),e.next=13,this._request.refreshAccessToken();case 13:return Fe(je,{env:this.config.env}),Fe(Me,{loginType:De.CUSTOM,persistence:"local"}),e.abrupt("return",{credential:{refreshToken:s.refresh_token}});case 16:throw new ie({message:"匿名转化失败"});case 17:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_setAnonymousUUID",value:function(e){var t=this._cache.keys,n=t.anonymousUuidKey,r=t.loginTypeKey;this._cache.removeStore(n),this._cache.setStore(n,e),this._cache.setStore(r,De.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),n}(Je),Ze=function(e){(0,l.default)(n,e);var t=(0,f.default)(n);function n(){return(0,c.default)(this,n),t.apply(this,arguments)}return(0,s.default)(n,[{key:"signIn",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new ie({param:"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(r=e.sent,!r.refresh_token){e.next=15;break}return this.setRefreshToken(r.refresh_token),e.next=10,this._request.refreshAccessToken();case 10:return Fe(qe),Fe(Me,{env:this.config.env,loginType:De.CUSTOM,persistence:this.config.persistence}),e.next=14,this.refreshUserInfo();case 14:return e.abrupt("return",new Qe(this.config.env));case 15:throw new ie({message:"自定义登录失败"});case 16:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),n}(Je),et=function(e){(0,l.default)(n,e);var t=(0,f.default)(n);function n(){return(0,c.default)(this,n),t.apply(this,arguments)}return(0,s.default)(n,[{key:"signIn",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(t,n){var r,i,a,o,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new ie({code:"PARAM_ERROR",message:"email must be a string"});case 2:return r=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signIn",{loginType:"EMAIL",email:t,password:n,refresh_token:this._cache.getStore(r)||""});case 5:if(i=e.sent,a=i.refresh_token,o=i.access_token,s=i.access_token_expire,!a){e.next=22;break}if(this.setRefreshToken(a),!o||!s){e.next=15;break}this.setAccessToken(o,s),e.next=17;break;case 15:return e.next=17,this._request.refreshAccessToken();case 17:return e.next=19,this.refreshUserInfo();case 19:return Fe(qe),Fe(Me,{env:this.config.env,loginType:De.EMAIL,persistence:this.config.persistence}),e.abrupt("return",new Qe(this.config.env));case 22:throw i.code?new ie({code:i.code,message:"邮箱登录失败: ".concat(i.message)}):new ie({message:"邮箱登录失败"});case 23:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"activate",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.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)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"resetPasswordWithToken",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.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)})));function t(t,n){return e.apply(this,arguments)}return t}()}]),n}(Je),tt=function(e){(0,l.default)(n,e);var t=(0,f.default)(n);function n(){return(0,c.default)(this,n),t.apply(this,arguments)}return(0,s.default)(n,[{key:"signIn",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(t,n){var r,i,a,o,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new ie({code:"PARAM_ERROR",message:"username must be a string"});case 2:return"string"!=typeof n&&(n="",console.warn("password is empty")),r=this._cache.keys.refreshTokenKey,e.next=6,this._request.send("auth.signIn",{loginType:De.USERNAME,username:t,password:n,refresh_token:this._cache.getStore(r)||""});case 6:if(i=e.sent,a=i.refresh_token,o=i.access_token_expire,s=i.access_token,!a){e.next=23;break}if(this.setRefreshToken(a),!s||!o){e.next=16;break}this.setAccessToken(s,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 Fe(qe),Fe(Me,{env:this.config.env,loginType:De.USERNAME,persistence:this.config.persistence}),e.abrupt("return",new Qe(this.config.env));case 23:throw i.code?new ie({code:i.code,message:"用户名密码登录失败: ".concat(i.message)}):new ie({message:"用户名密码登录失败"});case 24:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()}]),n}(Je),nt=function(){function e(t){(0,c.default)(this,e),this.config=t,this._cache=Oe(t.env),this._request=Ye(t.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Le(Me,this._onLoginTypeChanged)}return(0,s.default)(e,[{key:"anonymousAuthProvider",value:function(){return new Ge(this.config)}},{key:"customAuthProvider",value:function(){return new Ze(this.config)}},{key:"emailAuthProvider",value:function(){return new et(this.config)}},{key:"usernameAuthProvider",value:function(){return new tt(this.config)}},{key:"signInAnonymously",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Ge(this.config).signIn());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"signInWithEmailAndPassword",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new et(this.config).signIn(t,n));case 1:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"signInWithUsernameAndPassword",value:function(e,t){return new tt(this.config).signIn(e,t)}},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new Ge(this.config)),Le(je,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)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"signOut",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(){var t,n,r,i,a,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.loginType!==De.ANONYMOUS){e.next=2;break}throw new ie({message:"匿名用户不支持登出操作"});case 2:if(t=this._cache.keys,n=t.refreshTokenKey,r=t.accessTokenKey,i=t.accessTokenExpireKey,a=this._cache.getStore(n),a){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,this._request.send("auth.logout",{refresh_token:a});case 7:return o=e.sent,e.abrupt("return",(this._cache.removeStore(n),this._cache.removeStore(r),this._cache.removeStore(i),Fe(qe),Fe(Me,{env:this.config.env,loginType:De.NULL,persistence:this.config.persistence}),o));case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"signUpWithEmailAndPassword",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.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)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"sendPasswordResetEmail",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.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)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onLoginStateChanged",value:function(e){var t=this;Le(qe,(function(){var n=t.hasLoginState();e.call(t,n)}));var n=this.hasLoginState();e.call(this,n)}},{key:"onLoginStateExpired",value:function(e){Le(Ue,e.bind(this))}},{key:"onAccessTokenRefreshed",value:function(e){Le($e,e.bind(this))}},{key:"onAnonymousConverted",value:function(e){Le(je,e.bind(this))}},{key:"onLoginTypeChanged",value:function(e){var t=this;Le(Me,(function(){var n=t.hasLoginState();e.call(t,n)}))}},{key:"getAccessToken",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.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)})));function t(){return e.apply(this,arguments)}return t}()},{key:"hasLoginState",value:function(){var e=this._cache.keys.refreshTokenKey;return this._cache.getStore(e)?new Qe(this.config.env):null}},{key:"isUsernameRegistered",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new ie({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,r=n.data,e.abrupt("return",r&&r.isRegistered);case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getLoginState",value:function(){return Promise.resolve(this.hasLoginState())}},{key:"signInWithTicket",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Ze(this.config).signIn(t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{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,u.default)((0,u.default)({},e.data),{},{requestId:e.seqId})}))}},{key:"getAuthHeader",value:function(){var e=this._cache.keys,t=e.refreshTokenKey,n=e.accessTokenKey,r=this._cache.getStore(t);return{"x-cloudbase-credentials":this._cache.getStore(n)+"/@@/"+r}}},{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,r=t.persistence,i=t.env;i===this.config.env&&(this._cache.updatePersistence(r),this._cache.setStore(this._cache.keys.loginTypeKey,n))}},{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)}}]),e}(),rt=function(e,t){t=t||ye();var n=Ye(this.config.env),r=e.cloudPath,i=e.filePath,a=e.onUploadProgress,o=e.fileType,s=void 0===o?"image":o;return n.send("storage.getUploadMetadata",{path:r}).then((function(e){var o=e.data,u=o.url,c=o.authorization,l=o.token,f=o.fileId,d=o.cosFileId,h=e.requestId,p={key:r,signature:c,"x-cos-meta-fileid":d,success_action_status:"201","x-cos-security-token":l};n.upload({url:u,data:p,file:i,name:r,fileType:s,onUploadProgress:a}).then((function(e){201===e.statusCode?t(null,{fileID:f,requestId:h}):t(new ie({code:"STORAGE_REQUEST_FAIL",message:"STORAGE_REQUEST_FAIL: ".concat(e.data)}))})).catch((function(e){t(e)}))})).catch((function(e){t(e)})),t.promise},it=function(e,t){t=t||ye();var n=Ye(this.config.env),r=e.cloudPath;return n.send("storage.getUploadMetadata",{path:r}).then((function(e){t(null,e)})).catch((function(e){t(e)})),t.promise},at=function(e,t){var n=e.fileList;if(t=t||ye(),!n||!Array.isArray(n))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};var r,i=(0,o.default)(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(!a||"string"!=typeof a)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"}}}catch(u){i.e(u)}finally{i.f()}var s={fileid_list:n};return Ye(this.config.env).send("storage.batchDeleteFile",s).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},ot=function(e,t){var n=e.fileList;t=t||ye(),n&&Array.isArray(n)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});var r,i=[],a=(0,o.default)(n);try{for(a.s();!(r=a.n()).done;){var s=r.value;"object"==typeof s?(s.hasOwnProperty("fileID")&&s.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),i.push({fileid:s.fileID,max_age:s.maxAge})):"string"==typeof s?i.push({fileid:s}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"})}}catch(c){a.e(c)}finally{a.f()}var u={file_list:i};return Ye(this.config.env).send("storage.batchGetDownloadUrl",u).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},st=function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(t,n){var r,i,a,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.fileID,e.next=3,ot.call(this,{fileList:[{fileID:r,maxAge:600}]});case 3:if(i=e.sent.fileList[0],"SUCCESS"===i.code){e.next=6;break}return e.abrupt("return",n?n(i):new Promise((function(e){e(i)})));case 6:if(a=Ye(this.config.env),o=i.download_url,o=encodeURI(o),n){e.next=10;break}return e.abrupt("return",a.download({url:o}));case 10:return e.t0=n,e.next=13,a.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)}}(),ut=function(e,t){var n,r=e.name,i=e.data,a=e.query,o=e.parse,s=e.search,u=t||ye();try{n=i?JSON.stringify(i):""}catch(r){return Promise.reject(r)}if(!r)return Promise.reject(new ie({code:"PARAM_ERROR",message:"函数名不能为空"}));var c={inQuery:a,parse:o,search:s,function_name:r,request_data:n};return Ye(this.config.env).send("functions.invokeFunction",c).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 ie({message:"response data must be json"}))}}return u.promise})).catch((function(e){u(e)})),u.promise},ct={timeout:15e3,persistence:"session"},lt={},ft=function(){function e(t){(0,c.default)(this,e),this.config=t||this.config,this.authObj=void 0}return(0,s.default)(e,[{key:"init",value:function(t){switch(ke.adapter||(this.requestClient=new ke.adapter.reqClass({timeout:t.timeout||5e3,timeoutMsg:"请求在".concat((t.timeout||5e3)/1e3,"s内未完成已中断")})),this.config=(0,u.default)((0,u.default)({},ct),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,r=t||ke.adapter.primaryStorage||ct.persistence;return r!==this.config.persistence&&(this.config.persistence=r),function(e){var t=e.env;Ae[t]=new Pe(e),Ce[t]=new Pe((0,u.default)((0,u.default)({},e),{},{persistence:"local"}))}(this.config),n=this.config,He[n.env]=new We(n),this.authObj=new nt(this.config),this.authObj}},{key:"on",value:function(e,t){return Le.apply(this,[e,t])}},{key:"off",value:function(e,t){return Ne.apply(this,[e,t])}},{key:"callFunction",value:function(e,t){return ut.apply(this,[e,t])}},{key:"deleteFile",value:function(e,t){return at.apply(this,[e,t])}},{key:"getTempFileURL",value:function(e,t){return ot.apply(this,[e,t])}},{key:"downloadFile",value:function(e,t){return st.apply(this,[e,t])}},{key:"uploadFile",value:function(e,t){return rt.apply(this,[e,t])}},{key:"getUploadMetadata",value:function(e,t){return it.apply(this,[e,t])}},{key:"registerExtension",value:function(e){lt[e.name]=e}},{key:"invokeExtension",value:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=lt[t],r){e.next=3;break}throw new ie({message:"扩展".concat(t," 必须先注册")});case 3:return e.next=5,r.invoke(n,this);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"useAdapters",value:function(e){var t=we(e)||{},n=t.adapter,r=t.runtime;n&&(ke.adapter=n),r&&(ke.runtime=r)}}]),e}(),dt=new ft;function ht(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),i="";for(var a in n)""===i?!r&&(t+="?"):i+="&",i+=a+"="+encodeURIComponent(n[a]);return/^http(s)?:\/\//.test(t+=i)?t:""+e+t}var pt=function(){function e(){(0,c.default)(this,e)}return(0,s.default)(e,[{key:"post",value:function(e){var t=e.url,n=e.data,r=e.headers;return new Promise((function(e,i){ce.request({url:ht("https:",t),data:n,method:"POST",header:r,success:function(t){e(t)},fail:function(e){i(e)}})}))}},{key:"upload",value:function(e){return new Promise((function(t,n){var r=e.url,i=e.file,a=e.data,o=e.headers,s=e.fileType,u=ce.uploadFile({url:ht("https:",r),name:"file",formData:Object.assign({},a),filePath:i,fileType:s,header:o,success:function(e){var n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&a.success_action_status&&(n.statusCode=parseInt(a.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}(),vt={setItem:function(e,t){ce.setStorageSync(e,t)},getItem:function(e){return ce.getStorageSync(e)},removeItem:function(e){ce.removeStorageSync(e)},clear:function(){ce.clearStorageSync()}},mt={genAdapter:function(){return{root:{},reqClass:pt,localStorage:vt,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};dt.useAdapters(mt);var gt=dt,yt=gt.init;gt.init=function(e){e.env=e.spaceId;var t=yt.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){t[e]=ne(t[e]).bind(t)})),t},t.customAuth=t.auth,t};var bt=gt;function _t(){return{token:ce.getStorageSync("uni_id_token")||ce.getStorageSync("uniIdToken"),tokenExpired:ce.getStorageSync("uni_id_token_expired")}}function wt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.token,n=e.tokenExpired;t&&ce.setStorageSync("uni_id_token",t),n&&ce.setStorageSync("uni_id_token_expired",n)}function kt(){P&&"web"===T&&uni.getStorageSync("__LAST_DCLOUD_APPID")!==E&&(uni.setStorageSync("__LAST_DCLOUD_APPID",E),console.warn("检测到当前项目与上次运行到此端口的项目不一致自动清理uni-id保存的token信息仅开发调试时生效"),ce.removeStorageSync("uni_id_token"),ce.removeStorageSync("uniIdToken"),ce.removeStorageSync("uni_id_token_expired"))}var xt=function(e){(0,l.default)(n,e);var t=(0,f.default)(n);function n(){return(0,c.default)(this,n),t.apply(this,arguments)}return(0,s.default)(n,[{key:"getAccessToken",value:function(){var e=this;return new Promise((function(t,n){var r="Anonymous_Access_token";e.setAccessToken(r),t(r)}))}},{key:"setupRequest",value:function(e,t){var n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),r={"Content-Type":"application/json"};"auth"!==t&&(n.token=this.accessToken,r["x-basement-token"]=this.accessToken),r["x-serverless-sign"]=ue.sign(n,this.config.clientSecret);var i=oe();r["x-client-info"]=encodeURIComponent(JSON.stringify(i));var a=_t(),o=a.token;return r["x-client-token"]=o,{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:JSON.parse(JSON.stringify(r))}}},{key:"uploadFileToOSS",value:function(e){var t=this,n=e.url,r=e.formData,i=e.name,a=e.filePath,o=e.fileType,s=e.onUploadProgress;return new Promise((function(e,u){var c=t.adapter.uploadFile({url:n,formData:r,name:i,filePath:a,fileType:o,success:function(t){t&&t.statusCode<400?e(t):u(new ie({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){u(new ie({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(e){var t,n=this,r=e.filePath,i=e.cloudPath,a=e.fileType,o=void 0===a?"image":a,s=e.onUploadProgress;if(!i)throw new ie({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});return this.getOSSUploadOptionsFromPath({cloudPath:i}).then((function(e){var i=e.result,a=i.url,u=i.formData,c=i.name;t=e.result.fileUrl;var l={url:a,formData:u,name:c,filePath:r,fileType:o};return n.uploadFileToOSS(Object.assign({},l,{onUploadProgress:s}))})).then((function(){return n.reportOSSUpload({cloudPath:i})})).then((function(e){return new Promise((function(n,i){e.success?n({success:!0,filePath:r,fileID:t}):i(new ie({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))}},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList,n={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:t})};return this.request(this.setupRequest(n))}}]),n}(he),St={init:function(e){var t=new xt(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 Tt(e){var t,n=e.data;t=oe();var r=JSON.parse(JSON.stringify(n||{}));if(Object.assign(r,{clientInfo:t}),!r.uniIdToken){var i=_t(),a=i.token;a&&(r.uniIdToken=a)}return r}function Pt(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.name,r=t.data,i=this.__dev__,a=i.localAddress,o=i.localPort,s={aliyun:"aliyun",tencent:"tcb"}[this.config.provider],u=this.config.spaceId,c="http://".concat(a,":").concat(o,"/system/check-function"),l="http://".concat(a,":").concat(o,"/cloudfunctions/").concat(n);return new Promise((function(e,t){ce.request({method:"POST",url:c,data:{name:n,platform:T,provider:s,spaceId:u},timeout:3e3,success:function(t){e(t)},fail:function(){e({data:{code:"NETWORK_ERROR",message:"连接本地调试服务失败,请检查客户端是否和主机在同一局域网下,自动切换为已部署的云函数。"}})}})})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=t||{},r=n.code,i=n.message;return{code:0===r?0:r||"SYS_ERR",message:i||"SYS_ERR"}})).then((function(t){var i=t.code,a=t.message;if(0!==i){switch(i){case"MODULE_ENCRYPTED":console.error("此云函数(".concat(n,")依赖加密公共模块不可本地调试,自动切换为云端已部署的云函数"));break;case"FUNCTION_ENCRYPTED":console.error("此云函数(".concat(n,")已加密不可本地调试,自动切换为云端已部署的云函数"));break;case"ACTION_ENCRYPTED":console.error(a||"需要访问加密的uni-clientDB-action自动切换为云端环境");break;case"NETWORK_ERROR":var o="连接本地调试服务失败,请检查客户端是否和主机在同一局域网下";throw console.error(o),new Error(o);case"SWITCH_TO_CLOUD":break;default:var u="检测本地调试服务出现错误:".concat(a,",请检查网络环境或重启客户端再试");throw console.error(u),new Error(u)}return e._callCloudFunction({name:n,data:r})}return new Promise((function(t,n){var i=Tt.call(e,{data:r});ce.request({method:"POST",url:l,data:{provider:s,platform:T,param:i},success:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.statusCode,i=e.data;return!r||r>=400?n(new ie({code:i.code||"SYS_ERR",message:i.message||"request:fail"})):t({result:i})},fail:function(e){n(new ie({code:e.code||e.errCode||"SYS_ERR",message:e.message||e.errMsg||"request:fail"}))}})}))}))}var At=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}],Ct=/[\\^$.*+?()[\]{}|]/g,Ot=RegExp(Ct.source);function It(e,t,n){return e.replace(new RegExp((r=t)&&Ot.test(r)?r.replace(Ct,"\\$&"):r,"g"),n);var r}function Et(e){var t=e.functionName,n=e.result,r=e.logPvd;if(this.__dev__.debugLog&&n&&n.requestId){var i=JSON.stringify({spaceId:this.config.spaceId,functionName:t,requestId:n.requestId});console.log("[".concat(r,"-request]").concat(i,"[/").concat(r,"-request]"))}}function Rt(e){var t=e.callFunction,n=function(n){var r=this,i=n.name;n.data=Tt.call(e,{data:n.data});var a={aliyun:"aliyun",tencent:"tcb",tcb:"tcb"}[this.config.provider];return t.call(this,n).then((function(e){return e.errCode=0,Et.call(r,{functionName:i,result:e,logPvd:a}),Promise.resolve(e)}),(function(e){return Et.call(r,{functionName:i,result:e,logPvd:a}),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,r=e.extraInfo,i=void 0===r?{}:r,a=e.formatter,o=void 0===a?[]:a,s=0;s<o.length;s++){var u=o[s],c=u.rule,l=u.content,f=u.mode,d=n.match(c);if(d){for(var h=l,p=1;p<d.length;p++)h=It(h,"{$".concat(p,"}"),d[p]);for(var v in i)h=It(h,"{".concat(v,"}"),i[v]);return"replace"===f?h:n+h}}return n}({message:"[".concat(n.name,"]: ").concat(e.message),formatter:At,extraInfo:{functionName:i}})),Promise.reject(e)}))};e.callFunction=function(t){var r;P&&e.__dev__.debugInfo&&!e.__dev__.debugInfo.forceRemote&&O?(e._callCloudFunction||(e._callCloudFunction=n,e._callLocalFunction=Pt),r=Pt):r=n;var i=r.call(this,t);return Object.defineProperty(i,"result",{get:function(){return console.warn("当前返回结果为Promise类型不可直接访问其result属性详情请参考https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{}}}),i}}var Lt=Symbol("CLIENT_DB_INTERNAL");function Ft(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=Lt,e.__ob__=void 0,new Proxy(e,{get:function(e,n,r){if("_uniClient"===n)return null;if(n in e||"string"!=typeof n){var i=e[n];return"function"==typeof i?i.bind(e):i}return t.get(e,n,r)}})}function Nt(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 r=e[t].indexOf(n);-1!==r&&e[t].splice(r,1)}}}var Dt=["db.Geo","db.command","command.aggregate"];function qt(e,t){return Dt.indexOf("".concat(e,".").concat(t))>-1}function Ut(e){switch(k(e)){case"array":return e.map((function(e){return Ut(e)}));case"object":return e._internalType===Lt||Object.keys(e).forEach((function(t){e[t]=Ut(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function Mt(e){return e&&e.content&&e.content.$method}var jt=function(){function e(t,n,r){(0,c.default)(this,e),this.content=t,this.prevStage=n||null,this.udb=null,this._database=r}return(0,s.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:Ut(e.$param)}}))}}},{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:"get",value:function(){return this._send("get",Array.from(arguments))}},{key:"add",value: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:"_send",value:function(e,t){var n=this.getAction(),r=this.getCommand();if(r.$db.push({$method:e,$param:Ut(t)}),P){var i=r.$db.find((function(e){return"collection"===e.$method})),a=i&&i.$param;a&&1===a.length&&"string"==typeof i.$param[0]&&i.$param[0].indexOf(",")>-1&&console.warn("检测到使用JQL语法联表查询时未使用getTemp先过滤主表数据在主表数据量大的情况下可能会查询缓慢。\n- 如何优化请参考此文档https://uniapp.dcloud.net.cn/uniCloud/jql?id=lookup-with-temp \n- 如果主表数据量很小请忽略此信息,项目发行时不会出现此提示。")}return this._database._callCloudFunction({action:n,command:r})}},{key:"isAggregate",get:function(){for(var e=this;e;){var t=Mt(e),n=Mt(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"===Mt(e))return!0;e=e.prevStage}return!1}},{key:"isAggregateCommand",get:function(){for(var e=this;e;){var t=Mt(e),n=Mt(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}},{key:"count",get:function(){if(!this.isAggregate)return function(){return this._send("count",Array.from(arguments))};var e=this;return function(){return $t({$method:"count",$param:Ut(Array.from(arguments))},e,this._database)}}},{key:"remove",get:function(){if(!this.isCommand)return function(){return this._send("remove",Array.from(arguments))};var e=this;return function(){return $t({$method:"remove",$param:Ut(Array.from(arguments))},e,this._database)}}},{key:"set",get:function(){if(!this.isCommand)return function(){throw new Error("JQL禁止使用set方法")};var e=this;return function(){return $t({$method:"set",$param:Ut(Array.from(arguments))},e,this._database)}}}]),e}();function $t(e,t,n){return Ft(new jt(e,t,n),{get:function(e,t){var r="db";return e&&e.content&&(r=e.content.$method),qt(r,t)?$t({$method:t},e,n):function(){return $t({$method:t,$param:Ut(Array.from(arguments))},e,n)}}})}function zt(e){var t=e.path,n=e.method;return function(){function e(){(0,c.default)(this,e),this.param=Array.from(arguments)}return(0,s.default)(e,[{key:"toJSON",value:function(){return{$newDb:[].concat((0,a.default)(t.map((function(e){return{$method:e}}))),[{$method:n,$param:this.param}])}}}]),e}()}var Bt=function(e){(0,l.default)(n,e);var t=(0,f.default)(n);function n(){return(0,c.default)(this,n),t.apply(this,arguments)}return(0,s.default)(n,[{key:"_callCloudFunction",value:function(e){var t=this,n=e.action,r=e.command,i=e.multiCommand,a=e.queryList;function o(e,t){if(i&&a)for(var n=0;n<a.length;n++){var r=a[n];r.udb&&"function"==typeof r.udb.setResult&&(t?r.udb.setResult(t):r.udb.setResult(e.result.dataList[n]))}}var s=this;function u(e){return s._callback("error",[e]),M(j("database","fail"),e).then((function(){return M(j("database","complete"),e)})).then((function(){return o(null,e),G(B,{type:W,content:e}),Promise.reject(e)}))}var c=M(j("database","invoke")),l=this._uniClient;return c.then((function(){return l.callFunction({name:"DCloud-clientDB",type:w,data:{action:n,command:r,multiCommand:i}})})).then((function(e){var n=e.result,r=n.code,i=n.message,a=n.token,s=n.tokenExpired,c=n.systemInfo,l=void 0===c?[]:c;if(l)for(var f=0;f<l.length;f++){var d=l[f],h=d.level,p=d.message,v=d.detail,m=console["app"===T&&"warn"===h?"error":h]||console.log,g="[System Info]"+p;v&&(g="".concat(g,"\n详细信息").concat(v)),m(g)}if(r)return u(new ie({code:r,message:i,requestId:e.requestId}));e.result.errCode=e.result.code,e.result.errMsg=e.result.message,a&&s&&(wt({token:a,tokenExpired:s}),t._callbackAuth("refreshToken",[{token:a,tokenExpired:s}]),t._callback("refreshToken",[{token:a,tokenExpired:s}]),G(K,{token:a,tokenExpired:s}));for(var y=[{prop:"affectedDocs",tips:"affectedDocs不再推荐使用请使用inserted/deleted/updated/data.length替代"},{prop:"code",tips:"code不再推荐使用请使用errCode替代"},{prop:"message",tips:"message不再推荐使用请使用errMsg替代"}],b=function(t){var n=y[t],r=n.prop,i=n.tips;if(r in e.result){var a=e.result[r];Object.defineProperty(e.result,r,{get:function(){return console.warn(i),a}})}},_=0;_<y.length;_++)b(_);return function(e){return M(j("database","success"),e).then((function(){return M(j("database","complete"),e)})).then((function(){return o(e,null),G(B,{type:W,content:e}),Promise.resolve(e)}))}(e)}),(function(e){return/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化请在web控制台保存一次schema以开启clientDB"),u(new ie({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId}))}))}}]),n}(function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.uniClient,r=void 0===n?{}:n;(0,c.default)(this,e),this._uniClient=r,this._authCallBacks={},this._dbCallBacks={},r.isDefault&&(this._dbCallBacks=F("_globalUniCloudDatabaseCallback")),this.auth=Nt(this._authCallBacks),Object.assign(this,Nt(this._dbCallBacks)),this.env=Ft({},{get:function(e,t){return{$env:t}}}),this.Geo=Ft({},{get:function(e,t){return zt({path:["Geo"],method:t})}}),this.serverDate=zt({path:[],method:"serverDate"}),this.RegExp=zt({path:[],method:"RegExp"})}return(0,s.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,a.default)(t))}))}},{key:"_callbackAuth",value:function(e,t){var n=this._authCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,(0,a.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}());function Vt(e){e.database=function(t){if(t&&Object.keys(t).length>0)return e.init(t).database();if(this._database)return this._database;var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ft(new e(t),{get:function(e,t){return qt("db",t)?$t({$method:t},null,e):function(){return $t({$method:t,$param:Ut(Array.from(arguments))},null,e)}}})}(Bt,{uniClient:e});return this._database=n,n}}var Kt="token无效跳转登录页面",Wt="token过期跳转登录页面",Ht={TOKEN_INVALID_TOKEN_EXPIRED:Wt,TOKEN_INVALID_INVALID_CLIENTID:Kt,TOKEN_INVALID:Kt,TOKEN_INVALID_WRONG_TOKEN:Kt,TOKEN_INVALID_ANONYMOUS_USER:Kt},Yt={"uni-id-token-expired":Wt,"uni-id-check-token-failed":Kt,"uni-id-token-not-exist":Kt,"uni-id-check-device-feature-failed":Kt};function Jt(e,t){var n="";return n=e?"".concat(e,"/").concat(t):t,n.replace(/^\//,"")}function Xt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],r=[];return e.forEach((function(e){!0===e.needLogin?n.push(Jt(t,e.path)):!1===e.needLogin&&r.push(Jt(t,e.path))})),{needLoginPage:n,notNeedLoginPage:r}}function Qt(e){return e.split("?")[0].replace(/^\//,"")}function Gt(){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 Zt(){return Qt(Gt())}function en(){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,r=Qt(e);return n.some((function(e){return e.pagePath===r}))}var tn,nn=!!p.default.uniIdRouter,rn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p.default,t=e.pages,n=void 0===t?[]:t,r=e.subPackages,i=void 0===r?[]:r,o=e.uniIdRouter,s=void 0===o?{}:o,u=e.tabBar,c=void 0===u?{}:u,l=s.loginPage,f=s.needLogin,d=void 0===f?[]:f,h=s.resToLogin,v=void 0===h||h,m=Xt(n),g=m.needLoginPage,y=m.notNeedLoginPage,b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=[];return e.forEach((function(e){var r=e.root,i=e.pages,o=void 0===i?[]:i,s=Xt(o,r),u=s.needLoginPage,c=s.notNeedLoginPage;t.push.apply(t,(0,a.default)(u)),n.push.apply(n,(0,a.default)(c))})),{needLoginPage:t,notNeedLoginPage:n}}(i),_=b.needLoginPage,w=b.notNeedLoginPage;return{loginPage:l,routerNeedLogin:d,resToLogin:v,needLoginPage:[].concat((0,a.default)(g),(0,a.default)(_)),notNeedLoginPage:[].concat((0,a.default)(y),(0,a.default)(w)),loginPageInTabBar:en(l,c)}}(),an=rn.loginPage,on=rn.routerNeedLogin,sn=rn.resToLogin,un=rn.needLoginPage,cn=rn.notNeedLoginPage,ln=rn.loginPageInTabBar;if(un.indexOf(an)>-1)throw new Error("Login page [".concat(an,'] should not be "needLogin", please check your pages.json'));function fn(e){var t=Qt(function(e){var t=Zt(),n=e.charAt(0),r=e.split("?")[0];if("/"===n)return r;var i=r.replace(/^\//,"").split("/"),a=t.split("/");a.pop();for(var o=0;o<i.length;o++){var s=i[o];".."===s?a.pop():"."!==s&&a.push(s)}return""===a[0]&&a.shift(),a.join("/")}(e));return!(cn.indexOf(t)>-1)&&(un.indexOf(t)>-1||on.some((function(t){return function(e,t){return new RegExp(t).test(e)}(e,t)})))}function dn(e){var t=e.redirect,n=Qt(t),r=Qt(an);return Zt()!==r&&n!==r}function hn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.api,n=e.redirect;if(n&&dn({redirect:n})){var r=function(e,t){return"/"!==e.charAt(0)&&(e="/"+e),t?e.indexOf("?")>-1?e+"&uniIdRedirectUrl=".concat(encodeURIComponent(t)):e+"?uniIdRedirectUrl=".concat(encodeURIComponent(t)):e}(an,n);ln?"navigateTo"!==t&&"redirectTo"!==t||(t="switchTab"):"switchTab"===t&&(t="navigateTo"),setTimeout((function(){uni[t]({url:r})}))}}function pn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n={abortLoginPageJump:!1,autoToLoginPage:!1},r=function(){var e,t=_t(),n=t.token,r=t.tokenExpired;if(n){if(r<Date.now()){var i="uni-id-token-expired";e={errCode:i,errMsg:Yt[i]}}}else{var a="uni-id-check-token-failed";e={errCode:a,errMsg:Yt[a]}}return e}();if(fn(t)&&r){if(r.uniIdRedirectUrl=t,J(V).length>0)return setTimeout((function(){G(V,r)}),0),n.abortLoginPageJump=!0,n;n.autoToLoginPage=!0}return n}function vn(){!function(){var e=Gt(),t=pn({url:e}),n=t.abortLoginPageJump,r=t.autoToLoginPage;n||r&&hn({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=pn({url:e.url}),r=t.abortLoginPageJump,i=t.autoToLoginPage;return r?e:i?(hn({api:n,redirect:e.url}),!1):e}})},n=0;n<e.length;n++)t(n)}function mn(){this.onResponse((function(e){var t=e.type,n=e.content,r=!1;switch(t){case"cloudobject":r=function(e){var t=e.errCode;return t in Yt}(n);break;case"clientdb":r=function(e){var t=e.errCode;return t in Ht}(n)}r&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=J(V);te().then((function(){var n=Gt();if(n&&dn({redirect:n}))return t.length>0?G(V,Object.assign({uniIdRedirectUrl:n},e)):void(an&&hn({api:"navigateTo",redirect:n}))}))}(n)}))}function gn(e){!function(e){e.onResponse=function(e){X(B,e)},e.offResponse=function(e){Q(B,e)}}(e),function(e){e.onNeedLogin=function(e){X(V,e)},e.offNeedLogin=function(e){Q(V,e)},nn&&(F("uni-cloud-status").needLoginInit||(F("uni-cloud-status").needLoginInit=!0,te().then((function(){vn.call(e)})),sn&&mn.call(e)))}(e),function(e){e.onRefreshToken=function(e){X(K,e)},e.offRefreshToken=function(e){Q(K,e)}}(e)}var yn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bn=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function _n(){var e,t,n=_t().token||"",r=n.split(".");if(!n||3!==r.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse((t=r[1],decodeURIComponent(tn(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}tn="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!bn.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,r,i="",a=0;a<e.length;)t=yn.indexOf(e.charAt(a++))<<18|yn.indexOf(e.charAt(a++))<<12|(n=yn.indexOf(e.charAt(a++)))<<6|(r=yn.indexOf(e.charAt(a++))),i+=64===n?String.fromCharCode(t>>16&255):64===r?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}:atob;var wn=m((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="chooseAndUploadFile:ok",r="chooseAndUploadFile:fail";function i(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 a(e,t,r){var i=r.onChooseFile,a=r.onUploadProgress;return t.then((function(e){if(i){var t=i(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 r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,i=arguments.length>3?arguments[3]:void 0;(t=Object.assign({},t)).errMsg=n;var a=t.tempFiles,o=a.length,s=0;return new Promise((function(n){for(;s<r;)u();function u(){var r=s++;if(r>=o)!a.find((function(e){return!e.url&&!e.errMsg}))&&n(t);else{var c=a[r];e.uploadFile({filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,onUploadProgress:function(e){e.index=r,e.tempFile=c,e.tempFilePath=c.path,i&&i(e)}}).then((function(e){c.url=e.fileID,r<o&&u()})).catch((function(e){c.errMsg=e.errMsg||e.message,r<o&&u()}))}}}))}(e,t,5,a)}))}t.initChooseAndUploadFile=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"all"};return"image"===t.type?a(e,function(e){var t=e.count,n=e.sizeType,a=e.sourceType,o=void 0===a?["album","camera"]:a,s=e.extension;return new Promise((function(e,a){uni.chooseImage({count:t,sizeType:n,sourceType:o,extension:s,success:function(t){e(i(t,"image"))},fail:function(e){a({errMsg:e.errMsg.replace("chooseImage:fail",r)})}})}))}(t),t):"video"===t.type?a(e,function(e){var t=e.camera,n=e.compressed,a=e.maxDuration,o=e.sourceType,s=void 0===o?["album","camera"]:o,u=e.extension;return new Promise((function(e,o){uni.chooseVideo({camera:t,compressed:n,maxDuration:a,sourceType:s,extension:u,success:function(t){var n=t.tempFilePath,r=t.duration,a=t.size,o=t.height,s=t.width;e(i({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:a,type:t.tempFile&&t.tempFile.type||"",width:s,height:o,duration:r,fileType:"video",cloudPath:""}]},"video"))},fail:function(e){o({errMsg:e.errMsg.replace("chooseVideo:fail",r)})}})}))}(t),t):a(e,function(e){var t=e.count,n=e.extension;return new Promise((function(e,a){var o=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(o=wx.chooseMessageFile),"function"!=typeof o)return a({errMsg:r+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});o({type:"all",count:t,extension:n,success:function(t){e(i(t))},fail:function(e){a({errMsg:e.errMsg.replace("chooseFile:fail",r)})}})}))}(t),t)}}})),kn=v(wn),xn="manual";function Sn(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(e.loadtime!==xn){for(var r=!1,i=[],a=2;a<t.length;a++)t[a]!==n[a]&&(i.push(t[a]),r=!0);t[0]!==n[0]&&(e.mixinDatacomPage.current=e.pageCurrent),e.mixinDatacomPage.size=e.pageSize,e.onMixinDatacomPropsChange(r,i)}}))},methods:{onMixinDatacomPropsChange:function(e,t){},mixinDatacomEasyGet:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getone,r=void 0!==n&&n,i=t.success,a=t.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomGet().then((function(t){e.mixinDatacomLoading=!1;var n=t.result,a=n.data,o=n.count;e.getcount&&(e.mixinDatacomPage.count=o),e.mixinDatacomHasMore=a.length<e.pageSize;var s=r?a.length?a[0]:void 0:a;e.mixinDatacomResData=s,i&&i(s)})).catch((function(t){e.mixinDatacomLoading=!1,e.mixinDatacomErrorMessage=t,a&&a(t)})))},mixinDatacomGet:function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.database(this.spaceInfo),i=n.action||this.action;i&&(r=r.action(i));var o=n.collection||this.collection;r=Array.isArray(o)?(t=r).collection.apply(t,(0,a.default)(o)):r.collection(o);var s=n.where||this.where;s&&Object.keys(s).length&&(r=r.where(s));var u=n.field||this.field;u&&(r=r.field(u));var c=n.foreignKey||this.foreignKey;c&&(r=r.foreignKey(c));var l=n.groupby||this.groupby;l&&(r=r.groupBy(l));var f=n.groupField||this.groupField;f&&(r=r.groupField(f)),!0===(void 0!==n.distinct?n.distinct:this.distinct)&&(r=r.distinct());var d=n.orderby||this.orderby;d&&(r=r.orderBy(d));var h=void 0!==n.pageCurrent?n.pageCurrent:this.mixinDatacomPage.current,p=void 0!==n.pageSize?n.pageSize:this.mixinDatacomPage.size,v=void 0!==n.getcount?n.getcount:this.getcount,m=void 0!==n.gettree?n.gettree:this.gettree,g=void 0!==n.gettreepath?n.gettreepath:this.gettreepath,y={getCount:v},b={limitLevel:void 0!==n.limitlevel?n.limitlevel:this.limitlevel,startWith:void 0!==n.startwith?n.startwith:this.startwith};return m&&(y.getTree=b),g&&(y.getTreePath=b),r=r.skip(p*(h-1)).limit(p).get(y),r}}}}function Tn(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,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==typeof t.secretMethods&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);var r=n,a=r.customUI,o=r.loadingOptions,s=r.errorOptions,c=!a;return new Proxy({},{get:function(r,a){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fn,n=e.interceptorName,r=e.getCallbackArgs;return(0,i.default)(regeneratorRuntime.mark((function e(){var i,a,o,s,c,l,f=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(i=f.length,a=new Array(i),o=0;o<i;o++)a[o]=f[o];return s=r?r({params:a}):{},e.prev=2,e.next=5,M(j(n,"invoke"),(0,u.default)({},s));case 5:return e.next=7,t.apply(void 0,a);case 7:return c=e.sent,e.next=10,M(j(n,"success"),(0,u.default)((0,u.default)({},s),{},{result:c}));case 10:return e.abrupt("return",c);case 13:return e.prev=13,e.t0=e["catch"](2),l=e.t0,e.next=18,M(j(n,"fail"),(0,u.default)((0,u.default)({},s),{},{error:l}));case 18:throw l;case 19:return e.prev=19,e.next=22,M(j(n,"complete"),l?(0,u.default)((0,u.default)({},s),{},{error:l}):(0,u.default)((0,u.default)({},s),{},{result:c}));case 22:return e.finish(19);case 23:case"end":return e.stop()}}),e,null,[[2,13,19,23]])})))}({fn:function(){var r=(0,i.default)(regeneratorRuntime.mark((function r(){var f,d,h,p,v,m,g,y,b,w,k,x,S=arguments;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:for(c&&uni.showLoading({title:o.title,mask:o.mask}),d=S.length,h=new Array(d),p=0;p<d;p++)h[p]=S[p];return v={name:t,type:_,data:{method:a,params:h}},"object"==typeof n.secretMethods&&function(e,t){var n=t.data.method,r=e.secretMethods[n];r&&(t.secret=r)}(n,v),r.prev=4,r.next=7,e.callFunction(v);case 7:f=r.sent,r.next=13;break;case 10:r.prev=10,r.t0=r["catch"](4),f={result:r.t0};case 13:if(m=f.result||{},g=m.errCode,y=m.errMsg,b=m.newToken,c&&uni.hideLoading(),b&&b.token&&b.tokenExpired&&(wt(b),G(K,(0,u.default)({},b))),!g){r.next=30;break}if(!c){r.next=28;break}if("toast"!==s.type){r.next=20;break}uni.showToast({title:y,icon:"none"}),r.next=28;break;case 20:if("modal"===s.type){r.next=22;break}throw new Error("Invalid errorOptions.type: ".concat(s.type));case 22:return r.next=24,(0,i.default)(regeneratorRuntime.mark((function e(){var t,n,r,i,a,o,s=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:{},n=t.title,r=t.content,i=t.showCancel,a=t.cancelText,o=t.confirmText,e.abrupt("return",new Promise((function(e,t){uni.showModal({title:n,content:r,showCancel:i,cancelText:a,confirmText:o,success:function(t){e(t)},fail:function(){e({confirm:!1,cancel:!0})}})})));case 2:case"end":return e.stop()}}),e)})))({title:"提示",content:y,showCancel:s.retry,cancelText:"取消",confirmText:s.retry?"重试":"确定"});case 24:if(w=r.sent,k=w.confirm,!s.retry||!k){r.next=28;break}return r.abrupt("return",l.apply(void 0,h));case 28:throw x=new ie({code:g,message:y,requestId:f.requestId}),x.detail=f.result,G(B,{type:Y,content:x}),x;case 30:return r.abrupt("return",(G(B,{type:Y,content:f.result}),f.result));case 31:case"end":return r.stop()}}),r,null,[[4,10]])})));function l(){return r.apply(this,arguments)}return l}(),interceptorName:"callObject",getCallbackArgs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params;return{objectName:t,methodName:a,params:n}}})}})}}function Pn(e,t){return An.apply(this,arguments)}function An(){return An=(0,i.default)(regeneratorRuntime.mark((function e(t,n){var r,i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r="http://".concat(t,":").concat(n,"/system/ping"),e.prev=1,e.next=4,a={url:r,timeout:500},new Promise((function(e,t){ce.request((0,u.default)((0,u.default)({},a),{},{success:function(t){e(t)},fail:function(e){t(e)}}))}));case 4:return i=e.sent,e.abrupt("return",!(!i.data||0!==i.data.code));case 8:return e.prev=8,e.t0=e["catch"](1),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),An.apply(this,arguments)}function Cn(e){if(!e.initUniCloudStatus||"rejected"===e.initUniCloudStatus){var t,n=Promise.resolve();t=1,n=new Promise((function(e,n){setTimeout((function(){e()}),t)})),e.isReady=!1,e.isDefault=!1;var r=e.auth();e.initUniCloudStatus="pending",e.initUniCloud=n.then((function(){return r.getLoginState()})).then((function(e){return e?Promise.resolve():r.signInAnonymously()})).then((function(){if(!P)return Promise.resolve();if("app"===T){var t=uni.getSystemInfoSync(),n=t.osName,r=t.osVersion;"ios"===n&&function(e){if(!e||"string"!=typeof e)return 0;var t=e.match(/^(\d+)./);return t&&t[1]?parseInt(t[1]):0}(r)>=14&&console.warn("iOS 14及以上版本连接uniCloud本地调试服务需要允许客户端查找并连接到本地网络上的设备仅开发模式生效发行模式会连接uniCloud云端服务")}if(P&&e.__dev__.debugInfo){var a=e.__dev__.debugInfo,o=a.address,s=a.servePort;return function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(t,n){var r,i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=0;case 1:if(!(i<t.length)){e.next=11;break}return a=t[i],e.next=5,Pn(a,n);case 5:if(!e.sent){e.next=8;break}return r=a,e.abrupt("break",11);case 8:i++,e.next=1;break;case 11:return e.abrupt("return",{address:r,port:n});case 12:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()(o,s)}})).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.address,r=t.port;if(!P)return Promise.resolve();var i=console["app"===T?"error":"warn"];if(n)e.__dev__.localAddress=n,e.__dev__.localPort=r;else if(e.__dev__.debugInfo){var a="";"remote"===e.__dev__.debugInfo.initialLaunchType?(e.__dev__.debugInfo.forceRemote=!0,a="当前客户端和HBuilderX不在同一局域网下或其他网络原因无法连接HBuilderXuniCloud本地调试服务不对当前客户端生效。\n- 如果不使用uniCloud本地调试服务请直接忽略此信息。\n- 如需使用uniCloud本地调试服务请将客户端与主机连接到同一局域网下并重新运行到客户端。\n- 如果在HBuilderX开启的状态下切换过网络环境请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs"):a="无法连接uniCloud本地调试服务请检查当前客户端是否与主机在同一局域网下。\n- 如需使用uniCloud本地调试服务请将客户端与主机连接到同一局域网下并重新运行到客户端。\n- 如果在HBuilderX开启的状态下切换过网络环境请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs","web"===T&&(a+="\n- 部分浏览器开启节流模式之后访问本地地址受限,请检查是否启用了节流模式"),0===T.indexOf("mp-")&&(a+="\n- 小程序中如何使用uniCloud请参考https://uniapp.dcloud.net.cn/uniCloud/publish.html#useinmp"),i(a)}})).then((function(){kt(),e.isReady=!0,e.initUniCloudStatus="fulfilled"})).catch((function(t){console.error(t),e.initUniCloudStatus="rejected"}))}}var On={tcb:bt,tencent:bt,aliyun:pe,private:St},In=new(function(){function e(){(0,c.default)(this,e)}return(0,s.default)(e,[{key:"init",value:function(e){var t={},n=On[e.provider];if(!n)throw new Error("未提供正确的provider参数");t=n.init(e),t.__dev__={},t.__dev__.debugLog=P&&("web"===T&&navigator.userAgent.indexOf("HBuilderX")>0||"app"===T);var r=C;return P&&r&&!r.code&&(t.__dev__.debugInfo=r),Cn(t),t.reInit=function(){Cn(this)},Rt(t),function(e){var t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),Vt(t),function(e){e.getCurrentUserInfo=_n,e.chooseAndUploadFile=kn.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return Sn(e)}}),e.importObject=Tn(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((function(e){if(t[e]){var n=t[e];t[e]=function(){return t.reInit(),n.apply(t,Array.from(arguments))},t[e]=ne(t[e],e).bind(t)}})),t.init=this.init,t}}]),e}());(function(){var e=O,t={};if(e&&1===e.length)t=e[0],In=In.init(t),In.isDefault=!0;else{var n,r=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"];n=e&&e.length>0?"应用有多个服务空间请通过uniCloud.init方法指定要使用的服务空间":I?"应用未关联服务空间请在uniCloud目录右键关联服务空间":"uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目且需要在uniCloud目录关联服务空间",r.forEach((function(e){In[e]=function(){return console.error(n),Promise.reject(new ie({code:"SYS_ERR",message:n}))}}))}Object.assign(In,{get mixinDatacom(){return Sn(In)}}),gn(In),In.addInterceptor=q,In.removeInterceptor=U,In.interceptObject=$,P&&"web"===T&&(window.uniCloud=In)})();var En=In;t.default=En}).call(this,n("c8ba"))},abb4:function(e,t,n){"use strict";n.r(t);var r=n("d019"),i=n("ea85");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("f0a3");var o,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"7e53c8f5",null,!1,r["a"],o);t["default"]=u.exports},b0ec:function(e,t,n){var r=n("a727");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("2d4b6886",r,!0,{sourceMap:!1,shadowMode:!1})},b24f:function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isShow?n("v-uni-view",{ref:"ani",staticClass:"uni-transition",class:[e.ani.in],style:"transform:"+e.transform+";"+e.stylesObject,on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.change.apply(void 0,arguments)}}},[e._t("default")],2):e._e()},a=[]},b380:function(e,t,n){"use strict";function r(e,n){return t.default=r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,n)}n("131a"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},b6af:function(e,t,n){var r=n("9e5a");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("136999bf",r,!0,{sourceMap:!1,shadowMode:!1})},b775:function(e,t,n){"use strict";function r(e,t,n){this.$children.map((function(i){e===i.$options.name?i.$emit.apply(i,[t].concat(n)):r.apply(i,[e,t].concat(n))}))}n("99af"),n("d81d"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={methods:{dispatch:function(e,t,n){var r=this.$parent||this.$root,i=r.$options.name;while(r&&(!i||i!==e))r=r.$parent,r&&(i=r.$options.name);r&&r.$emit.apply(r,[t].concat(n))},broadcast:function(e,t,n){r.call(this,e,t,n)}}};t.default=i},b85c:function(e,t,n){"use strict";n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=i(n("06c5"));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=(0,r.default)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}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,s=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(u)throw o}}}}},baa5:function(e,t,n){var r=n("23e7"),i=n("e58c");r({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},bb2f:function(e,t,n){var r=n("d039");e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bf19:function(e,t,n){"use strict";var r=n("23e7");r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},c286:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,".content[data-v-84c6c484]{padding:%?20?%}",""]),e.exports=t},c728:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/* uni.scss */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.u-form-item[data-v-7e53c8f5]{display:flex;flex-direction:row;padding:%?20?% 0;font-size:%?28?%;color:#303133;box-sizing:border-box;line-height:%?70?%;flex-direction:column}.u-form-item__border-bottom--error[data-v-7e53c8f5]:after{border-color:#fa3534}.u-form-item__body[data-v-7e53c8f5]{display:flex;flex-direction:row}.u-form-item--left[data-v-7e53c8f5]{display:flex;flex-direction:row;align-items:center}.u-form-item--left__content[data-v-7e53c8f5]{position:relative;display:flex;flex-direction:row;align-items:center;padding-right:%?10?%;flex:1}.u-form-item--left__content__icon[data-v-7e53c8f5]{margin-right:%?8?%}.u-form-item--left__content--required[data-v-7e53c8f5]{position:absolute;left:%?-16?%;vertical-align:middle;color:#fa3534;padding-top:%?6?%}.u-form-item--left__content__label[data-v-7e53c8f5]{display:flex;flex-direction:row;align-items:center;flex:1}.u-form-item--right[data-v-7e53c8f5]{flex:1}.u-form-item--right__content[data-v-7e53c8f5]{display:flex;flex-direction:row;align-items:center;flex:1}.u-form-item--right__content__slot[data-v-7e53c8f5]{flex:1;display:flex;flex-direction:row;align-items:center}.u-form-item--right__content__icon[data-v-7e53c8f5]{margin-left:%?10?%;color:#c0c4cc;font-size:%?30?%}.u-form-item__message[data-v-7e53c8f5]{font-size:%?24?%;line-height:%?24?%;color:#fa3534;margin-top:%?12?%}',""]),e.exports=t},cb29:function(e,t,n){var r=n("23e7"),i=n("81d5"),a=n("44d2");r({target:"Array",proto:!0},{fill:i}),a("fill")},cc37:function(e,t,n){"use strict";n.r(t);var r=n("815e"),i=n("9e9d");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("02a4");var o,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"1c93e157",null,!1,r["a"],o);t["default"]=u.exports},d019:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var r={uIcon:n("4265").default},i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"u-form-item",class:{"u-border-bottom":e.elBorderBottom,"u-form-item__border-bottom--error":"error"===e.validateState&&e.showError("border-bottom")}},[n("v-uni-view",{staticClass:"u-form-item__body",style:{flexDirection:"left"==e.elLabelPosition?"row":"column"}},[n("v-uni-view",{staticClass:"u-form-item--left",style:{width:e.uLabelWidth,flex:"0 0 "+e.uLabelWidth,marginBottom:"left"==e.elLabelPosition?0:"10rpx"}},[e.required||e.leftIcon||e.label?n("v-uni-view",{staticClass:"u-form-item--left__content"},[e.required?n("v-uni-text",{staticClass:"u-form-item--left__content--required"},[e._v("*")]):e._e(),e.leftIcon?n("v-uni-view",{staticClass:"u-form-item--left__content__icon"},[n("u-icon",{attrs:{name:e.leftIcon,"custom-style":e.leftIconStyle}})],1):e._e(),n("v-uni-view",{staticClass:"u-form-item--left__content__label",style:[e.elLabelStyle,{"justify-content":"left"==e.elLabelAlign?"flex-start":"center"==e.elLabelAlign?"center":"flex-end"}]},[e._v(e._s(e.label))])],1):e._e()],1),n("v-uni-view",{staticClass:"u-form-item--right u-flex"},[n("v-uni-view",{staticClass:"u-form-item--right__content"},[n("v-uni-view",{staticClass:"u-form-item--right__content__slot "},[e._t("default")],2),e.$slots.right||e.rightIcon?n("v-uni-view",{staticClass:"u-form-item--right__content__icon u-flex"},[e.rightIcon?n("u-icon",{attrs:{"custom-style":e.rightIconStyle,name:e.rightIcon}}):e._e(),e._t("right")],2):e._e()],1)],1)],1),"error"===e.validateState&&e.showError("message")?n("v-uni-view",{staticClass:"u-form-item__message",style:{paddingLeft:"left"==e.elLabelPosition?e.$u.addUnit(e.elLabelWidth):"0"}},[e._v(e._s(e.validateMessage))]):e._e()],1)},a=[]},d6c1:function(e,t,n){"use strict";n.r(t);var r=n("f1fa"),i=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},d967:function(e,t,n){"use strict";function r(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}n("d3b7"),n("4ae1"),n("25f0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},db90:function(e,t,n){"use strict";function r(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n("a4d3"),n("e01a"),n("d28b"),n("a630"),n("d3b7"),n("3ca3"),n("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},dd6b:function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"u-form"},[e._t("default")],2)},a=[]},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,a=arguments.length-1;a>=-1&&!r;a--){var o=a>=0?arguments[a]:e.cwd();if("string"!==typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,r="/"===o.charAt(0))}return t=n(i(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),o="/"===a(e,-1);return e=n(i(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&o&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),a=r(n.split("/")),o=Math.min(i.length,a.length),s=o,u=0;u<o;u++)if(i[u]!==a[u]){s=u;break}var c=[];for(u=s;u<i.length;u++)c.push("..");return c=c.concat(a.slice(s)),c.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,a=e.length-1;a>=1;--a)if(t=e.charCodeAt(a),47===t){if(!i){r=a;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,a=0,o=e.length-1;o>=0;--o){var s=e.charCodeAt(o);if(47!==s)-1===r&&(i=!1,r=o+1),46===s?-1===t?t=o:1!==a&&(a=1):-1!==t&&(a=-1);else if(!i){n=o+1;break}}return-1===t||-1===r||0===a||1===a&&t===r-1&&t===n+1?"":e.slice(t,r)};var a="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},e2be:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var r={uIcon:n("4265").default},i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"u-input",class:{"u-input--border":e.border,"u-input--error":e.validateState},style:{padding:"0 "+(e.border?20:0)+"rpx",borderColor:e.borderColor,textAlign:e.inputAlign},on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.inputClick.apply(void 0,arguments)}}},["textarea"==e.type?n("v-uni-textarea",{staticClass:"u-input__input u-input__textarea",style:[e.getStyle],attrs:{value:e.defaultValue,placeholder:e.placeholder,placeholderStyle:e.placeholderStyle,disabled:e.disabled,maxlength:e.inputMaxlength,fixed:e.fixed,focus:e.focus,autoHeight:e.autoHeight,"selection-end":e.uSelectionEnd,"selection-start":e.uSelectionStart,"cursor-spacing":e.getCursorSpacing,"show-confirm-bar":e.showConfirmbar},on:{input:function(t){arguments[0]=t=e.$handleEvent(t),e.handleInput.apply(void 0,arguments)},blur:function(t){arguments[0]=t=e.$handleEvent(t),e.handleBlur.apply(void 0,arguments)},focus:function(t){arguments[0]=t=e.$handleEvent(t),e.onFocus.apply(void 0,arguments)},confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.onConfirm.apply(void 0,arguments)}}}):n("v-uni-input",{staticClass:"u-input__input",style:[e.getStyle],attrs:{type:"password"==e.type?"text":e.type,value:e.defaultValue,password:"password"==e.type&&!e.showPassword,placeholder:e.placeholder,placeholderStyle:e.placeholderStyle,disabled:e.disabled||"select"===e.type,maxlength:e.inputMaxlength,focus:e.focus,confirmType:e.confirmType,"cursor-spacing":e.getCursorSpacing,"selection-end":e.uSelectionEnd,"selection-start":e.uSelectionStart,"show-confirm-bar":e.showConfirmbar},on:{focus:function(t){arguments[0]=t=e.$handleEvent(t),e.onFocus.apply(void 0,arguments)},blur:function(t){arguments[0]=t=e.$handleEvent(t),e.handleBlur.apply(void 0,arguments)},input:function(t){arguments[0]=t=e.$handleEvent(t),e.handleInput.apply(void 0,arguments)},confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.onConfirm.apply(void 0,arguments)}}}),n("v-uni-view",{staticClass:"u-input__right-icon u-flex"},[e.clearable&&""!=e.value&&e.focused?n("v-uni-view",{staticClass:"u-input__right-icon__clear u-input__right-icon__item",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onClear.apply(void 0,arguments)}}},[n("u-icon",{attrs:{size:"32",name:"close-circle-fill",color:"#c0c4cc"}})],1):e._e(),e.passwordIcon&&"password"==e.type?n("v-uni-view",{staticClass:"u-input__right-icon__clear u-input__right-icon__item"},[n("u-icon",{attrs:{size:"32",name:e.showPassword?"eye-fill":"eye",color:"#c0c4cc"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.showPassword=!e.showPassword}}})],1):e._e(),"select"==e.type?n("v-uni-view",{staticClass:"u-input__right-icon--select u-input__right-icon__item",class:{"u-input__right-icon--select--reverse":e.selectOpen}},[n("u-icon",{attrs:{name:"arrow-down-fill",size:"26",color:"#c0c4cc"}})],1):e._e()],1)],1)},a=[]},ea0d:function(e,t,n){var r=n("07ec");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("0a97d840",r,!0,{sourceMap:!1,shadowMode:!1})},ea85:function(e,t,n){"use strict";n.r(t);var r=n("255a"),i=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},eb56:function(e,t,n){var r=n("c728");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("6cf07ad3",r,!0,{sourceMap:!1,shadowMode:!1})},ee3e:function(e,t,n){"use strict";n("c975"),n("a9e3"),n("d3b7"),n("ac1f"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={name:"u-button",props:{hairLine:{type:Boolean,default:!0},type:{type:String,default:"default"},size:{type:String,default:"default"},shape:{type:String,default:"square"},plain:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},openType:{type:String,default:""},formType:{type:String,default:""},appParameter:{type:String,default:""},hoverStopPropagation:{type:Boolean,default:!1},lang:{type:String,default:"en"},sessionFrom:{type:String,default:""},sendMessageTitle:{type:String,default:""},sendMessagePath:{type:String,default:""},sendMessageImg:{type:String,default:""},showMessageCard:{type:Boolean,default:!1},hoverBgColor:{type:String,default:""},rippleBgColor:{type:String,default:""},ripple:{type:Boolean,default:!1},hoverClass:{type:String,default:""},customStyle:{type:Object,default:function(){return{}}},dataName:{type:String,default:""},throttleTime:{type:[String,Number],default:1e3},hoverStartTime:{type:[String,Number],default:20},hoverStayTime:{type:[String,Number],default:150}},computed:{getHoverClass:function(){if(this.loading||this.disabled||this.ripple||this.hoverClass)return"";var e="";return e=this.plain?"u-"+this.type+"-plain-hover":"u-"+this.type+"-hover",e},showHairLineBorder:function(){return["primary","success","error","warning"].indexOf(this.type)>=0&&!this.plain?"":"u-hairline-border"}},data:function(){return{rippleTop:0,rippleLeft:0,fields:{},waveActive:!1}},methods:{click:function(e){var t=this;this.$u.throttle((function(){!0!==t.loading&&!0!==t.disabled&&(t.ripple&&(t.waveActive=!1,t.$nextTick((function(){this.getWaveQuery(e)}))),t.$emit("click",e))}),this.throttleTime)},getWaveQuery:function(e){var t=this;this.getElQuery().then((function(n){var r=n[0];if(r.width&&r.width&&(r.targetWidth=r.height>r.width?r.height:r.width,r.targetWidth)){t.fields=r;var i="",a="";i=e.touches[0].clientX,a=e.touches[0].clientY,t.rippleTop=a-r.top-r.targetWidth/2,t.rippleLeft=i-r.left-r.targetWidth/2,t.$nextTick((function(){t.waveActive=!0}))}}))},getElQuery:function(){var e=this;return new Promise((function(t){var n="";n=uni.createSelectorQuery().in(e),n.select(".u-btn").boundingClientRect(),n.exec((function(e){t(e)}))}))},getphonenumber:function(e){this.$emit("getphonenumber",e)},getuserinfo:function(e){this.$emit("getuserinfo",e)},error:function(e){this.$emit("error",e)},opensetting:function(e){this.$emit("opensetting",e)},launchapp:function(e){this.$emit("launchapp",e)}}};t.default=r},eede:function(e,t,n){"use strict";n.r(t);var r=n("e2be"),i=n("63d4");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("f31c");var o,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"54ca0272",null,!1,r["a"],o);t["default"]=u.exports},f0a3:function(e,t,n){"use strict";var r=n("eb56"),i=n.n(r);i.a},f183:function(e,t,n){var r=n("d012"),i=n("861d"),a=n("5135"),o=n("9bf2").f,s=n("90e3"),u=n("bb2f"),c=s("meta"),l=0,f=Object.isExtensible||function(){return!0},d=function(e){o(e,c,{value:{objectID:"O"+ ++l,weakData:{}}})},h=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,c)){if(!f(e))return"F";if(!t)return"E";d(e)}return e[c].objectID},p=function(e,t){if(!a(e,c)){if(!f(e))return!0;if(!t)return!1;d(e)}return e[c].weakData},v=function(e){return u&&m.REQUIRED&&f(e)&&!a(e,c)&&d(e),e},m=e.exports={REQUIRED:!1,fastKey:h,getWeakData:p,onFreeze:v};r[c]=!0},f1fa:function(e,t,n){"use strict";var r=n("4ea4");n("d3b7"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("ff5c")),a=r(n("6d44")),o={name:"UniPopup",components:{uniTransition:i.default},props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},maskClick:{type:Boolean,default:!0}},provide:function(){return{popup:this}},mixins:[a.default],watch:{type:{handler:function(e){this[this.config[e]]()},immediate:!0},maskClick:function(e){this.mkclick=e}},data:function(){return{duration:300,ani:[],showPopup:!1,showTrans:!1,maskClass:{position:"fixed",bottom:0,top:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.4)"},transClass:{position:"fixed",left:0,right:0},maskShow:!0,mkclick:!0,popupstyle:"top"}},created:function(){this.mkclick=this.maskClick,this.animation?this.duration=300:this.duration=0},methods:{clear:function(e){e.stopPropagation()},open:function(){var e=this;this.showPopup=!0,this.$nextTick((function(){new Promise((function(t){clearTimeout(e.timer),e.timer=setTimeout((function(){e.showTrans=!0,e.$nextTick((function(){t()}))}),50)})).then((function(t){clearTimeout(e.msgtimer),e.msgtimer=setTimeout((function(){e.customOpen&&e.customOpen()}),100),e.$emit("change",{show:!0,type:e.type})}))}))},close:function(e){var t=this;this.showTrans=!1,this.$nextTick((function(){t.$emit("change",{show:!1,type:t.type}),clearTimeout(t.timer),t.customOpen&&t.customClose(),t.timer=setTimeout((function(){t.showPopup=!1}),300)}))},onTap:function(){this.mkclick&&this.close()},top:function(){this.popupstyle="top",this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0}},bottom:function(){this.popupstyle="bottom",this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0}},center:function(){this.popupstyle="center",this.ani=["zoom-out","fade"],this.transClass={position:"fixed",display:"flex",flexDirection:"column",bottom:0,left:0,right:0,top:0,justifyContent:"center",alignItems:"center"}}}};t.default=o},f28a:function(e,t,n){"use strict";var r=n("7a49"),i=n.n(r);i.a},f31c:function(e,t,n){"use strict";var r=n("1a71"),i=n.n(r);i.a},f4b3:function(e,t,n){"use strict";var r=n("23e7"),i=n("d039"),a=n("7b0b"),o=n("c04e"),s=i((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}));r({target:"Date",proto:!0,forced:s},{toJSON:function(e){var t=a(this),n=o(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},f61f:function(e,t,n){"use strict";n.r(t);var r=n("2c6d"),i=n("8bf3");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("447b"),n("05b5");var o,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"2406b974",null,!1,r["a"],o);t["default"]=u.exports},f98d:function(e,t,n){"use strict";n("c975"),n("d81d"),n("a9e3"),n("d3b7"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={name:"u-form",props:{model:{type:Object,default:function(){return{}}},errorType:{type:Array,default:function(){return["message","toast"]}},borderBottom:{type:Boolean,default:!0},labelPosition:{type:String,default:"left"},labelWidth:{type:[String,Number],default:90},labelAlign:{type:String,default:"left"},labelStyle:{type:Object,default:function(){return{}}}},provide:function(){return{uForm:this}},data:function(){return{rules:{}}},created:function(){this.fields=[]},methods:{setRules:function(e){this.rules=e},resetFields:function(){this.fields.map((function(e){e.resetField()}))},validate:function(e){var t=this;return new Promise((function(n){var r=!0,i=0,a=[];t.fields.map((function(o){o.validation("",(function(o){o&&(r=!1,a.push(o)),++i===t.fields.length&&(n(r),-1===t.errorType.indexOf("none")&&t.errorType.indexOf("toast")>=0&&a.length&&t.$u.toast(a[0]),"function"==typeof e&&e(r))}))}))}))}}};t.default=r},fa95:function(e,t,n){"use strict";function r(e){return-1!==Function.toString.call(e).indexOf("[native code]")}n("c975"),n("d3b7"),n("25f0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},fcec:function(e,t,n){"use strict";n.r(t);var r=n("1a1e"),i=n("9190");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("f28a");var o,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"84c6c484",null,!1,r["a"],o);t["default"]=u.exports},ff5c:function(e,t,n){"use strict";n.r(t);var r=n("b24f"),i=n("97bc");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("624c");var o,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"52b9b862",null,!1,r["a"],o);t["default"]=u.exports},ffb8:function(e,t,n){var r=n("4e1b");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("7a568ac3",r,!0,{sourceMap:!1,shadowMode:!1})}}]);