diff --git a/GDH5/pages/invoice/edit.vue b/GDH5/pages/invoice/edit.vue
index 7f72601..a2962b1 100644
--- a/GDH5/pages/invoice/edit.vue
+++ b/GDH5/pages/invoice/edit.vue
@@ -70,7 +70,7 @@
tel: '',
price: 0,
receive_address: '',
- link_order_num:''
+ link_order_num: ''
})
const UnitTypeClick = (id) => {
FormData.value.unit_type = id
@@ -114,17 +114,23 @@
}
//获取上次填写的历史
const getHistory = () => {
- InvoiceGetHistory().then(res => {
- if (res.status && res.data != null) {
- FormData.value.unit_type = res.data.unit_type
- FormData.value.unit_name = res.data.unit_name
- FormData.value.unit_num = res.data.unit_num
- FormData.value.receive_address = res.data.receive_address
- FormData.value.tel = res.data.tel
+ InvoiceGetHistory({ordernum:FormData.value.link_order_num}).then(res => {
+ if(res.status && res.data.invoiceinfo != null){
+ uni.reLaunch({
+ url: '/pages/invoice/detail?id=' + res.data.invoiceinfo.id
+ })
+ }
+ if (res.status && res.data.hisinfo != null) {
+ FormData.value.unit_type = res.data.hisinfo.unit_type
+ FormData.value.unit_name = res.data.hisinfo.unit_name
+ FormData.value.unit_num = res.data.hisinfo.unit_num
+ FormData.value.receive_address = res.data.hisinfo.receive_address
+ FormData.value.tel = res.data.hisinfo.tel
}
})
}
-
+
+
onLoad((e) => {
if (e.ordernum != undefined) {
FormData.value.link_order_num = e.ordernum
@@ -134,6 +140,7 @@
}
})
onMounted(() => {
+
getHistory()
})
diff --git a/GDH5/pages/invoice/list.vue b/GDH5/pages/invoice/list.vue
index 77a5da6..090d873 100644
--- a/GDH5/pages/invoice/list.vue
+++ b/GDH5/pages/invoice/list.vue
@@ -4,8 +4,9 @@
{{item.name}}
-
+
+
+
{{item.shenqing_time.substring(0,10)}} 申请发票
@@ -18,15 +19,20 @@
申请金额:¥{{item.price}}
拒绝原因:{{item.refuse_content}}
- 暂无内容
+
+ 暂无内容
+
@@ -128,7 +136,8 @@
.jujueyuanyin {
color: #2a8abd
}
- .zanwu{
+
+ .zanwu {
color: #ccc;
text-align: center;
margin-top: 80rpx;
diff --git a/GDH5/unpackage/dist/build/h5/assets/edit-a79274d3.css b/GDH5/unpackage/dist/build/h5/assets/edit-7228feff.css
similarity index 76%
rename from GDH5/unpackage/dist/build/h5/assets/edit-a79274d3.css
rename to GDH5/unpackage/dist/build/h5/assets/edit-7228feff.css
index 0b201d0..074a322 100644
--- a/GDH5/unpackage/dist/build/h5/assets/edit-a79274d3.css
+++ b/GDH5/unpackage/dist/build/h5/assets/edit-7228feff.css
@@ -1 +1 @@
-.uni-forms-item[data-v-540b8126]{position:relative;display:flex;margin-bottom:22px;flex-direction:row}.uni-forms-item__label[data-v-540b8126]{display:flex;flex-direction:row;align-items:center;text-align:left;font-size:14px;color:#606266;height:36px;padding:0 12px 0 0;vertical-align:middle;flex-shrink:0;box-sizing:border-box}.uni-forms-item__label.no-label[data-v-540b8126]{padding:0}.uni-forms-item__content[data-v-540b8126]{position:relative;font-size:14px;flex:1;box-sizing:border-box;flex-direction:row}.uni-forms-item .uni-forms-item__nuve-content[data-v-540b8126]{display:flex;flex-direction:column;flex:1}.uni-forms-item__error[data-v-540b8126]{color:#f56c6c;font-size:12px;line-height:1;padding-top:4px;position:absolute;top:100%;left:0;transition:transform .3s;transform:translateY(-100%);opacity:0}.uni-forms-item__error .error-text[data-v-540b8126]{color:#f56c6c;font-size:12px}.uni-forms-item__error.msg--active[data-v-540b8126]{opacity:1;transform:translateY(0)}.uni-forms-item.is-direction-left[data-v-540b8126]{flex-direction:row}.uni-forms-item.is-direction-top[data-v-540b8126]{flex-direction:column}.uni-forms-item.is-direction-top .uni-forms-item__label[data-v-540b8126]{padding:0 0 8px;line-height:1.5715;text-align:left;white-space:initial}.uni-forms-item .is-required[data-v-540b8126]{color:#dd524d;font-weight:700}.uni-forms-item--border[data-v-540b8126]{margin-bottom:0;padding:10px 0;border-top:1px #eee solid}.uni-forms-item--border .uni-forms-item__content[data-v-540b8126]{flex-direction:column;justify-content:flex-start;align-items:flex-start}.uni-forms-item--border .uni-forms-item__content .uni-forms-item__error[data-v-540b8126]{position:relative;top:5px;left:0;padding-top:0}.is-first-border[data-v-540b8126]{border:none}.invoice_edit[data-v-08a70a76]{padding:.625rem}.top[data-v-08a70a76]{text-align:center;background-color:#fff;padding:.625rem .625rem 1.25rem;border-radius:.625rem}.top_1[data-v-08a70a76]{margin-top:.625rem}.content[data-v-08a70a76]{margin-top:.625rem;background-color:#fff;padding:.625rem;border-radius:.625rem}.form_wenzi[data-v-08a70a76]{margin-top:.53125rem}.leixing_select[data-v-08a70a76]{display:flex}.leixing_select_item[data-v-08a70a76]{border:1px solid #ccc;padding:.25rem .9375rem;font-size:.6875rem;color:#a6a6a6}.active[data-v-08a70a76]{background-color:#18bc37;border:1px solid #13a42e;color:#fff}.addbutton[data-v-08a70a76]{margin-top:2.5rem;background-color:coral;height:2.5rem;line-height:2.5rem;color:#fff}
+.uni-forms-item[data-v-540b8126]{position:relative;display:flex;margin-bottom:22px;flex-direction:row}.uni-forms-item__label[data-v-540b8126]{display:flex;flex-direction:row;align-items:center;text-align:left;font-size:14px;color:#606266;height:36px;padding:0 12px 0 0;vertical-align:middle;flex-shrink:0;box-sizing:border-box}.uni-forms-item__label.no-label[data-v-540b8126]{padding:0}.uni-forms-item__content[data-v-540b8126]{position:relative;font-size:14px;flex:1;box-sizing:border-box;flex-direction:row}.uni-forms-item .uni-forms-item__nuve-content[data-v-540b8126]{display:flex;flex-direction:column;flex:1}.uni-forms-item__error[data-v-540b8126]{color:#f56c6c;font-size:12px;line-height:1;padding-top:4px;position:absolute;top:100%;left:0;transition:transform .3s;transform:translateY(-100%);opacity:0}.uni-forms-item__error .error-text[data-v-540b8126]{color:#f56c6c;font-size:12px}.uni-forms-item__error.msg--active[data-v-540b8126]{opacity:1;transform:translateY(0)}.uni-forms-item.is-direction-left[data-v-540b8126]{flex-direction:row}.uni-forms-item.is-direction-top[data-v-540b8126]{flex-direction:column}.uni-forms-item.is-direction-top .uni-forms-item__label[data-v-540b8126]{padding:0 0 8px;line-height:1.5715;text-align:left;white-space:initial}.uni-forms-item .is-required[data-v-540b8126]{color:#dd524d;font-weight:700}.uni-forms-item--border[data-v-540b8126]{margin-bottom:0;padding:10px 0;border-top:1px #eee solid}.uni-forms-item--border .uni-forms-item__content[data-v-540b8126]{flex-direction:column;justify-content:flex-start;align-items:flex-start}.uni-forms-item--border .uni-forms-item__content .uni-forms-item__error[data-v-540b8126]{position:relative;top:5px;left:0;padding-top:0}.is-first-border[data-v-540b8126]{border:none}.invoice_edit[data-v-2ec60d27]{padding:.625rem}.top[data-v-2ec60d27]{text-align:center;background-color:#fff;padding:.625rem .625rem 1.25rem;border-radius:.625rem}.top_1[data-v-2ec60d27]{margin-top:.625rem}.content[data-v-2ec60d27]{margin-top:.625rem;background-color:#fff;padding:.625rem;border-radius:.625rem}.form_wenzi[data-v-2ec60d27]{margin-top:.53125rem}.leixing_select[data-v-2ec60d27]{display:flex}.leixing_select_item[data-v-2ec60d27]{border:1px solid #ccc;padding:.25rem .9375rem;font-size:.6875rem;color:#a6a6a6}.active[data-v-2ec60d27]{background-color:#18bc37;border:1px solid #13a42e;color:#fff}.addbutton[data-v-2ec60d27]{margin-top:2.5rem;background-color:coral;height:2.5rem;line-height:2.5rem;color:#fff}
diff --git a/GDH5/unpackage/dist/build/h5/assets/index-52f0fde8.js b/GDH5/unpackage/dist/build/h5/assets/index-d9c03bf0.js
similarity index 99%
rename from GDH5/unpackage/dist/build/h5/assets/index-52f0fde8.js
rename to GDH5/unpackage/dist/build/h5/assets/index-d9c03bf0.js
index d87c96f..5346198 100644
--- a/GDH5/unpackage/dist/build/h5/assets/index-52f0fde8.js
+++ b/GDH5/unpackage/dist/build/h5/assets/index-d9c03bf0.js
@@ -3,4 +3,4 @@
* vue-router v4.1.6
* (c) 2022 Eduardo San Martin Morote
* @license MIT
- */const La="undefined"!=typeof window;const Ba=Object.assign;function Na(e,t){const n={};for(const o in t){const r=t[o];n[o]=Ra(r)?r.map(e):e(r)}return n}const Ia=()=>{},Ra=Array.isArray,ja=/\/$/;function Fa(e,t,n="/"){let o,r={},i="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(o=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),r=e(i)),s>-1&&(o=o||t.slice(0,s),a=t.slice(s,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/");let r,i,a=n.length-1;for(r=0;r1&&a--}return n.slice(0,a).join("/")+"/"+o.slice(r-(r===o.length?1:0)).join("/")}(null!=o?o:t,n),{fullPath:o+(i&&"?")+i+a,path:o,query:r,hash:a}}function Da(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function Va(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ha(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!za(e[n],t[n]))return!1;return!0}function za(e,t){return Ra(e)?qa(e,t):Ra(t)?qa(t,e):e===t}function qa(e,t){return Ra(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var Wa,Ua,Xa,Ya;function Ka(e){if(!e)if(La){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(ja,"")}(Ua=Wa||(Wa={})).pop="pop",Ua.push="push",(Ya=Xa||(Xa={})).back="back",Ya.forward="forward",Ya.unknown="";const Ga=/^[^#]+#/;function Za(e,t){return e.replace(Ga,"#")+t}const Ja=()=>({left:window.pageXOffset,top:window.pageYOffset});function Qa(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}function es(e,t){return(history.state?history.state.position-t:-1)+e}const ts=new Map;function ns(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let t=r.includes(e.slice(i))?e.slice(i).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),Da(n,"")}return Da(n,e)+o+r}function os(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?Ja():null}}function rs(e){const{history:t,location:n}=window,o={value:ns(e,n)},r={value:t.state};function i(o,i,a){const s=e.indexOf("#"),l=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+o:location.protocol+"//"+location.host+e+o;try{t[a?"replaceState":"pushState"](i,"",l),r.value=i}catch(c){console.error(c),n[a?"replace":"assign"](l)}}return r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:r,push:function(e,n){const a=Ba({},r.value,t.state,{forward:e,scroll:Ja()});i(a.current,a,!0),i(e,Ba({},os(o.value,e,null),{position:a.position+1},n),!1),o.value=e},replace:function(e,n){i(e,Ba({},t.state,os(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),o.value=e}}}function is(e){const t=rs(e=Ka(e)),n=function(e,t,n,o){let r=[],i=[],a=null;const s=({state:i})=>{const s=ns(e,location),l=n.value,c=t.value;let u=0;if(i){if(n.value=s,t.value=i,a&&a===l)return void(a=null);u=c?i.position-c.position:0}else o(s);r.forEach((e=>{e(n.value,l,{delta:u,type:Wa.pop,direction:u?u>0?Xa.forward:Xa.back:Xa.unknown})}))};function l(){const{history:e}=window;e.state&&e.replaceState(Ba({},e.state,{scroll:Ja()}),"")}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",l),{pauseListeners:function(){a=n.value},listen:function(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return i.push(t),t},destroy:function(){for(const e of i)e();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace);const o=Ba({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:Za.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function as(e){return"string"==typeof e||"symbol"==typeof e}const ss={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ls=Symbol("");var cs,us;function ds(e,t){return Ba(new Error,{type:e,[ls]:!0},t)}function fs(e,t){return e instanceof Error&&ls in e&&(null==t||!!(e.type&t))}(us=cs||(cs={}))[us.aborted=4]="aborted",us[us.cancelled=8]="cancelled",us[us.duplicated=16]="duplicated";const ps={sensitive:!1,strict:!1,start:!0,end:!0},hs=/[.+*?^${}()[\]/\\]/g;function ms(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function gs(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const ys={type:0,value:""},bs=/[a-zA-Z0-9_]/;function _s(e,t,n){const o=function(e,t){const n=Ba({},ps,t),o=[];let r=n.start?"^":"";const i=[];for(const l of e){const e=l.length?[]:[90];n.strict&&!l.length&&(r+="/");for(let t=0;t1&&("*"===s||"+"===s)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),c="")}function f(){c+=s}for(;l{i(f)}:Ia}function i(e){if(as(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(i),t.alias.forEach(i))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))}}function a(e){let t=0;for(;t=0&&(e.record.path!==n[t].record.path||!Es(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!Cs(e)&&o.set(e.record.name,e)}return t=ks({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,i,a,s={};if("name"in e&&e.name){if(r=o.get(e.name),!r)throw ds(1,{location:e});a=r.record.name,s=Ba(xs(t.params,r.keys.filter((e=>!e.optional)).map((e=>e.name))),e.params&&xs(e.params,r.keys.map((e=>e.name)))),i=r.stringify(s)}else if("path"in e)i=e.path,r=n.find((e=>e.re.test(i))),r&&(s=r.parse(i),a=r.record.name);else{if(r=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw ds(1,{location:e,currentLocation:t});a=r.record.name,s=Ba({},t.params,e.params),i=r.stringify(s)}const l=[];let c=r;for(;c;)l.unshift(c.record),c=c.parent;return{name:a,path:i,params:s,matched:l,meta:Ts(l)}},removeRoute:i,getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}function xs(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function Ss(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]="boolean"==typeof n?n:n[o];return t}function Cs(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ts(e){return e.reduce(((e,t)=>Ba(e,t.meta)),{})}function ks(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function Es(e,t){return t.children.some((t=>t===e||Es(e,t)))}const Os=/#/g,$s=/&/g,Ps=/\//g,As=/=/g,Ms=/\?/g,Ls=/\+/g,Bs=/%5B/g,Ns=/%5D/g,Is=/%5E/g,Rs=/%60/g,js=/%7B/g,Fs=/%7C/g,Ds=/%7D/g,Vs=/%20/g;function Hs(e){return encodeURI(""+e).replace(Fs,"|").replace(Bs,"[").replace(Ns,"]")}function zs(e){return Hs(e).replace(Ls,"%2B").replace(Vs,"+").replace(Os,"%23").replace($s,"%26").replace(Rs,"`").replace(js,"{").replace(Ds,"}").replace(Is,"^")}function qs(e){return null==e?"":function(e){return Hs(e).replace(Os,"%23").replace(Ms,"%3F")}(e).replace(Ps,"%2F")}function Ws(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function Us(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let o=0;oe&&zs(e))):[o&&zs(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function Ys(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=Ra(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const Ks=Symbol(""),Gs=Symbol(""),Zs=Symbol(""),Js=Symbol(""),Qs=Symbol("");function el(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e,reset:function(){e=[]}}}function tl(e,t,n,o,r){const i=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((a,s)=>{const l=e=>{var l;!1===e?s(ds(4,{from:n,to:t})):e instanceof Error?s(e):"string"==typeof(l=e)||l&&"object"==typeof l?s(ds(2,{from:t,to:e})):(i&&o.enterCallbacks[r]===i&&"function"==typeof e&&i.push(e),a())},c=e.call(o&&o.instances[r],t,n,l);let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch((e=>s(e)))}))}function nl(e,t,n,o){const r=[];for(const a of e)for(const e in a.components){let s=a.components[e];if("beforeRouteEnter"===t||a.instances[e])if("object"==typeof(i=s)||"displayName"in i||"props"in i||"__vccOpts"in i){const i=(s.__vccOpts||s)[t];i&&r.push(tl(i,n,o,a,e))}else{let i=s();r.push((()=>i.then((r=>{if(!r)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${a.path}"`));const i=(s=r).__esModule||"Module"===s[Symbol.toStringTag]?r.default:r;var s;a.components[e]=i;const l=(i.__vccOpts||i)[t];return l&&tl(l,n,o,a,e)()}))))}}var i;return r}function ol(e){const t=Wn(Zs),n=Wn(Js),o=gi((()=>t.resolve(an(e.to)))),r=gi((()=>{const{matched:e}=o.value,{length:t}=e,r=e[t-1],i=n.matched;if(!r||!i.length)return-1;const a=i.findIndex(Va.bind(null,r));if(a>-1)return a;const s=il(e[t-2]);return t>1&&il(r)===s&&i[i.length-1].path!==s?i.findIndex(Va.bind(null,e[t-2])):a})),i=gi((()=>r.value>-1&&function(e,t){for(const n in t){const o=t[n],r=e[n];if("string"==typeof o){if(o!==r)return!1}else if(!Ra(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}(n.params,o.value.params))),a=gi((()=>r.value>-1&&r.value===n.matched.length-1&&Ha(n.params,o.value.params)));return{route:o,href:gi((()=>o.value.href)),isActive:i,isExactActive:a,navigate:function(n={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)?t[an(e.replace)?"replace":"push"](an(e.to)).catch(Ia):Promise.resolve()}}}const rl=lo({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:ol,setup(e,{slots:t}){const n=Vt(ol(e)),{options:o}=Wn(Zs),r=gi((()=>({[al(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[al(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:vi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}});function il(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const al=(e,t,n)=>null!=e?e:null!=t?t:n;function sl(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const ll=lo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=Wn(Qs),r=gi((()=>e.route||o.value)),i=Wn(Gs,0),a=gi((()=>{let e=an(i);const{matched:t}=r.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),s=gi((()=>r.value.matched[a.value]));qn(Gs,gi((()=>a.value+1))),qn(Ks,s),qn(Qs,r);const l=tn();return Yn((()=>[l.value,s.value,e.name]),(([e,t,n],[o,r,i])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&Va(t,r)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=r.value,i=e.name,a=s.value,c=a&&a.components[i];if(!c)return sl(n.default,{Component:c,route:o});const u=a.props[i],d=u?!0===u?o.params:"function"==typeof u?u(o):u:null,f=vi(c,Ba({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[i]=null)},ref:l}));return sl(n.default,{Component:f,route:o})||f}}});function cl(e){const t=ws(e.routes,e),n=e.parseQuery||Us,o=e.stringifyQuery||Xs,r=e.history,i=el(),a=el(),s=el(),l=nn(ss);let c=ss;La&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Na.bind(null,(e=>""+e)),d=Na.bind(null,qs),f=Na.bind(null,Ws);function p(e,i){if(i=Ba({},i||l.value),"string"==typeof e){const o=Fa(n,e,i.path),a=t.resolve({path:o.path},i),s=r.createHref(o.fullPath);return Ba(o,a,{params:f(a.params),hash:Ws(o.hash),redirectedFrom:void 0,href:s})}let a;if("path"in e)a=Ba({},e,{path:Fa(n,e.path,i.path).path});else{const t=Ba({},e.params);for(const e in t)null==t[e]&&delete t[e];a=Ba({},e,{params:d(e.params)}),i.params=d(i.params)}const s=t.resolve(a,i),c=e.hash||"";s.params=u(f(s.params));const p=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,Ba({},e,{hash:(h=c,Hs(h).replace(js,"{").replace(Ds,"}").replace(Is,"^")),path:s.path}));var h;const m=r.createHref(p);return Ba({fullPath:p,hash:c,query:o===Xs?Ys(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function h(e){return"string"==typeof e?Fa(n,e,l.value.path):Ba({},e)}function m(e,t){if(c!==e)return ds(8,{from:t,to:e})}function g(e){return y(e)}function v(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=h(o):{path:o},o.params={}),Ba({query:e.query,hash:e.hash,params:"path"in o?{}:e.params},o)}}function y(e,t){const n=c=p(e),r=l.value,i=e.state,a=e.force,s=!0===e.replace,u=v(n);if(u)return y(Ba(h(u),{state:"object"==typeof u?Ba({},i,u.state):i,force:a,replace:s}),t||n);const d=n;let f;return d.redirectedFrom=t,!a&&function(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&Va(t.matched[o],n.matched[r])&&Ha(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,r,n)&&(f=ds(16,{to:d,from:r}),P(r,r,!0,!1)),(f?Promise.resolve(f):_(d,r)).catch((e=>fs(e)?fs(e,2)?e:$(e):O(e,d,r))).then((e=>{if(e){if(fs(e,2))return y(Ba({replace:s},h(e.to),{state:"object"==typeof e.to?Ba({},i,e.to.state):i,force:a}),t||d)}else e=x(d,r,!0,s,i);return w(d,r,e),e}))}function b(e,t){const n=m(e,t);return n?Promise.reject(n):Promise.resolve()}function _(e,t){let n;const[o,r,s]=function(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;aVa(e,i)))?o.push(i):n.push(i));const s=e.matched[a];s&&(t.matched.find((e=>Va(e,s)))||r.push(s))}return[n,o,r]}(e,t);n=nl(o.reverse(),"beforeRouteLeave",e,t);for(const i of o)i.leaveGuards.forEach((o=>{n.push(tl(o,e,t))}));const l=b.bind(null,e,t);return n.push(l),ul(n).then((()=>{n=[];for(const o of i.list())n.push(tl(o,e,t));return n.push(l),ul(n)})).then((()=>{n=nl(r,"beforeRouteUpdate",e,t);for(const o of r)o.updateGuards.forEach((o=>{n.push(tl(o,e,t))}));return n.push(l),ul(n)})).then((()=>{n=[];for(const o of e.matched)if(o.beforeEnter&&!t.matched.includes(o))if(Ra(o.beforeEnter))for(const r of o.beforeEnter)n.push(tl(r,e,t));else n.push(tl(o.beforeEnter,e,t));return n.push(l),ul(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=nl(s,"beforeRouteEnter",e,t),n.push(l),ul(n)))).then((()=>{n=[];for(const o of a.list())n.push(tl(o,e,t));return n.push(l),ul(n)})).catch((e=>fs(e,8)?e:Promise.reject(e)))}function w(e,t,n){for(const o of s.list())o(e,t,n)}function x(e,t,n,o,i){const a=m(e,t);if(a)return a;const s=t===ss,c=La?history.state:{};n&&(o||s?r.replace(e.fullPath,Ba({scroll:s&&c&&c.scroll},i)):r.push(e.fullPath,i)),l.value=e,P(e,t,n,s),$()}let S;function C(){S||(S=r.listen(((e,t,n)=>{if(!B.listening)return;const o=p(e),i=v(o);if(i)return void y(Ba(i,{replace:!0}),o).catch(Ia);c=o;const a=l.value;var s,u;La&&(s=es(a.fullPath,n.delta),u=Ja(),ts.set(s,u)),_(o,a).catch((e=>fs(e,12)?e:fs(e,2)?(y(e.to,o).then((e=>{fs(e,20)&&!n.delta&&n.type===Wa.pop&&r.go(-1,!1)})).catch(Ia),Promise.reject()):(n.delta&&r.go(-n.delta,!1),O(e,o,a)))).then((e=>{(e=e||x(o,a,!1))&&(n.delta&&!fs(e,8)?r.go(-n.delta,!1):n.type===Wa.pop&&fs(e,20)&&r.go(-1,!1)),w(o,a,e)})).catch(Ia)})))}let T,k=el(),E=el();function O(e,t,n){$(e);const o=E.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function $(e){return T||(T=!e,C(),k.list().forEach((([t,n])=>e?n(e):t())),k.reset()),e}function P(t,n,o,r){const{scrollBehavior:i}=e;if(!La||!i)return Promise.resolve();const a=!o&&function(e){const t=ts.get(e);return ts.delete(e),t}(es(t.fullPath,0))||(r||!o)&&history.state&&history.state.scroll||null;return Sn().then((()=>i(t,n,a))).then((e=>e&&Qa(e))).catch((e=>O(e,t,n)))}const A=e=>r.go(e);let M;const L=new Set,B={currentRoute:l,listening:!0,addRoute:function(e,n){let o,r;return as(e)?(o=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:p,options:e,push:g,replace:function(e){return g(Ba(h(e),{replace:!0}))},go:A,back:()=>A(-1),forward:()=>A(1),beforeEach:i.add,beforeResolve:a.add,afterEach:s.add,onError:E.add,isReady:function(){return T&&l.value!==ss?Promise.resolve():new Promise(((e,t)=>{k.add([e,t])}))},install(e){e.component("RouterLink",rl),e.component("RouterView",ll),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>an(l)}),La&&!M&&l.value===ss&&(M=!0,g(r.location).catch((e=>{})));const t={};for(const o in ss)t[o]=gi((()=>l.value[o]));e.provide(Zs,this),e.provide(Js,Vt(t)),e.provide(Qs,l);const n=e.unmount;L.add(e),e.unmount=function(){L.delete(e),L.size<1&&(c=ss,S&&S(),S=null,l.value=ss,M=!1,T=!1),n()}}};return B}function ul(e){return e.reduce(((e,t)=>e.then((()=>t()))),Promise.resolve())}function dl(){return Wn(Zs)}function fl(){return Wn(Js)}const pl=de((()=>"undefined"!=typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length));let hl;function ml(){if(!hl){let e;if(e=navigator.cookieEnabled&&window.localStorage&&localStorage.UNI_LOCALE||__uniConfig.locale||navigator.language,hl=Ma(e),pl()){const t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach((e=>hl.add(e,__uniConfig.locales[e]))),hl.setLocale(e)}}return hl}function gl(e,t,n){return t.reduce(((t,o,r)=>(t[e+o]=n[r],t)),{})}const vl=de((()=>{const e="uni.async.",t=["error"];ml().add("en",gl(e,t,["The connection timed out, click the screen to try again."]),!1),ml().add("es",gl(e,t,["Se agotó el tiempo de conexión, haga clic en la pantalla para volver a intentarlo."]),!1),ml().add("fr",gl(e,t,["La connexion a expiré, cliquez sur l'écran pour réessayer."]),!1),ml().add("zh-Hans",gl(e,t,["连接服务器超时,点击屏幕重试"]),!1),ml().add("zh-Hant",gl(e,t,["連接服務器超時,點擊屏幕重試"]),!1)})),yl=de((()=>{const e="uni.showToast.",t=["unpaired"];ml().add("en",gl(e,t,["Please note showToast must be paired with hideToast"]),!1),ml().add("es",gl(e,t,["Tenga en cuenta que showToast debe estar emparejado con hideToast"]),!1),ml().add("fr",gl(e,t,["Veuillez noter que showToast doit être associé à hideToast"]),!1),ml().add("zh-Hans",gl(e,t,["请注意 showToast 与 hideToast 必须配对使用"]),!1),ml().add("zh-Hant",gl(e,t,["請注意 showToast 與 hideToast 必須配對使用"]),!1)})),bl=de((()=>{const e="uni.showLoading.",t=["unpaired"];ml().add("en",gl(e,t,["Please note showLoading must be paired with hideLoading"]),!1),ml().add("es",gl(e,t,["Tenga en cuenta que showLoading debe estar emparejado con hideLoading"]),!1),ml().add("fr",gl(e,t,["Veuillez noter que showLoading doit être associé à hideLoading"]),!1),ml().add("zh-Hans",gl(e,t,["请注意 showLoading 与 hideLoading 必须配对使用"]),!1),ml().add("zh-Hant",gl(e,t,["請注意 showLoading 與 hideLoading 必須配對使用"]),!1)})),_l=de((()=>{const e="uni.showModal.",t=["cancel","confirm"];ml().add("en",gl(e,t,["Cancel","OK"]),!1),ml().add("es",gl(e,t,["Cancelar","OK"]),!1),ml().add("fr",gl(e,t,["Annuler","OK"]),!1),ml().add("zh-Hans",gl(e,t,["取消","确定"]),!1),ml().add("zh-Hant",gl(e,t,["取消","確定"]),!1)})),wl=de((()=>{const e="uni.chooseFile.",t=["notUserActivation"];ml().add("en",gl(e,t,["File chooser dialog can only be shown with a user activation"]),!1),ml().add("es",gl(e,t,["El cuadro de diálogo del selector de archivos solo se puede mostrar con la activación del usuario"]),!1),ml().add("fr",gl(e,t,["La boîte de dialogue du sélecteur de fichier ne peut être affichée qu'avec une activation par l'utilisateur"]),!1),ml().add("zh-Hans",gl(e,t,["文件选择器对话框只能在由用户激活时显示"]),!1),ml().add("zh-Hant",gl(e,t,["文件選擇器對話框只能在由用戶激活時顯示"]),!1)}));function xl(e){const t=new Pe;return{on:(e,n)=>t.on(e,n),once:(e,n)=>t.once(e,n),off:(e,n)=>t.off(e,n),emit:(e,...n)=>t.emit(e,...n),subscribe(n,o,r=!1){t[r?"once":"on"](`${e}.${n}`,o)},unsubscribe(n,o){t.off(`${e}.${n}`,o)},subscribeHandler(n,o,r){t.emit(`${e}.${n}`,o,r)}}}let Sl=1;const Cl=Object.create(null);function Tl(e,t){return e+"."+t}function kl({id:e,name:t,args:n},o){t=Tl(o,t);const r=t=>{e&&Ym.publishHandler("invokeViewApi."+e,t)},i=Cl[t];i?i(n,r):r({})}const El=c(xl("service"),{invokeServiceMethod:(e,t,n)=>{const{subscribe:o,publishHandler:r}=Ym,i=n?Sl++:0;n&&o("invokeServiceApi."+i,n,!0),r("invokeServiceApi",{id:i,name:e,args:t})}}),Ol=ge(!0);let $l;function Pl(){$l&&(clearTimeout($l),$l=null)}let Al=0,Ml=0;function Ll(e){if(Pl(),1!==e.touches.length)return;const{pageX:t,pageY:n}=e.touches[0];Al=t,Ml=n,$l=setTimeout((function(){const t=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});t.touches=e.touches,t.changedTouches=e.changedTouches,e.target.dispatchEvent(t)}),350)}function Bl(e){if(!$l)return;if(1!==e.touches.length)return Pl();const{pageX:t,pageY:n}=e.touches[0];return Math.abs(t-Al)>10||Math.abs(n-Ml)>10?Pl():void 0}function Nl(e,t){const n=Number(e);return isNaN(n)?t:n}function Il(){const e=__uniConfig.globalStyle||{},t=Nl(e.rpxCalcMaxDeviceWidth,960),n=Nl(e.rpxCalcBaseDeviceWidth,375);function o(){let e=function(){const e=/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation,t=e&&90===Math.abs(window.orientation);var n=e?Math[t?"max":"min"](screen.width,screen.height):screen.width;return Math.min(window.innerWidth,document.documentElement.clientWidth,n)||n}();e=e<=t?e:n,document.documentElement.style.fontSize=e/23.4375+"px"}o(),document.addEventListener("DOMContentLoaded",o),window.addEventListener("load",o),window.addEventListener("resize",o)}function Rl(){Il(),pe(),window.addEventListener("touchstart",Ll,Ol),window.addEventListener("touchmove",Bl,Ol),window.addEventListener("touchend",Pl,Ol),window.addEventListener("touchcancel",Pl,Ol)}function jl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fl,Dl,Vl=["top","left","right","bottom"],Hl={};function zl(){return Dl="CSS"in window&&"function"==typeof CSS.supports?CSS.supports("top: env(safe-area-inset-top)")?"env":CSS.supports("top: constant(safe-area-inset-top)")?"constant":"":""}function ql(){if(Dl="string"==typeof Dl?Dl:zl()){var e=[],t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("test",null,n)}catch(s){}var o=document.createElement("div");r(o,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),Vl.forEach((function(e){a(o,e)})),document.body.appendChild(o),i(),Fl=!0}else Vl.forEach((function(e){Hl[e]=0}));function r(e,t){var n=e.style;Object.keys(t).forEach((function(e){var o=t[e];n[e]=o}))}function i(t){t?e.push(t):e.forEach((function(e){e()}))}function a(e,n){var o=document.createElement("div"),a=document.createElement("div"),s=document.createElement("div"),l=document.createElement("div"),c={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:Dl+"(safe-area-inset-"+n+")"};r(o,c),r(a,c),r(s,{transition:"0s",animation:"none",width:"400px",height:"400px"}),r(l,{transition:"0s",animation:"none",width:"250%",height:"250%"}),o.appendChild(s),a.appendChild(l),e.appendChild(o),e.appendChild(a),i((function(){o.scrollTop=a.scrollTop=1e4;var e=o.scrollTop,r=a.scrollTop;function i(){this.scrollTop!==(this===o?e:r)&&(o.scrollTop=a.scrollTop=1e4,e=o.scrollTop,r=a.scrollTop,function(e){Ul.length||setTimeout((function(){var e={};Ul.forEach((function(t){e[t]=Hl[t]})),Ul.length=0,Xl.forEach((function(t){t(e)}))}),0);Ul.push(e)}(n))}o.addEventListener("scroll",i,t),a.addEventListener("scroll",i,t)}));var u=getComputedStyle(o);Object.defineProperty(Hl,n,{configurable:!0,get:function(){return parseFloat(u.paddingBottom)}})}}function Wl(e){return Fl||ql(),Hl[e]}var Ul=[];var Xl=[];const Yl=jl({get support(){return 0!=("string"==typeof Dl?Dl:zl()).length},get top(){return Wl("top")},get left(){return Wl("left")},get right(){return Wl("right")},get bottom(){return Wl("bottom")},onChange:function(e){zl()&&(Fl||ql(),"function"==typeof e&&Xl.push(e))},offChange:function(e){var t=Xl.indexOf(e);t>=0&&Xl.splice(t,1)}}),Kl=ya((()=>{}),["prevent"]),Gl=ya((e=>{}),["stop"]);function Zl(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function Jl(){const e=Zl(document.documentElement.style,"--window-top");return e?e+Yl.top:0}function Ql(e){const t=document.documentElement.style;Object.keys(e).forEach((n=>{t.setProperty(n,e[n])}))}function ec(e){return Symbol(e)}function tc(e){return-1!==(e+="").indexOf("rpx")||-1!==e.indexOf("upx")}function nc(e,t=!1){if(t)return function(e){if(!tc(e))return e;return e.replace(/(\d+(\.\d+)?)[ru]px/g,((e,t)=>rd(parseFloat(t))+"px"))}(e);if(y(e)){const t=parseInt(e)||0;return tc(e)?rd(t):t}return e}const oc="M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z",rc="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z",ic="M21.781 7.844l-9.063 8.594 9.063 8.594q0.25 0.25 0.25 0.609t-0.25 0.578q-0.25 0.25-0.578 0.25t-0.578-0.25l-9.625-9.125q-0.156-0.125-0.203-0.297t-0.047-0.359q0-0.156 0.047-0.328t0.203-0.297l9.625-9.125q0.25-0.25 0.578-0.25t0.578 0.25q0.25 0.219 0.25 0.578t-0.25 0.578z";function ac(e,t="#000",n=27){return Kr("svg",{width:n,height:n,viewBox:"0 0 32 32"},[Kr("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function sc(){{const{$pageInstance:e}=si();return e&&e.proxy.$page.id}}function lc(){const e=Vp(),t=e.length;if(t)return e[t-1]}function cc(){const e=lc();if(e)return e.$page.meta}function uc(){const e=cc();return e?e.id:-1}function dc(){const e=lc();if(e)return e.$vm}const fc=["navigationBar","pullToRefresh"];function pc(e,t){const n=JSON.parse(JSON.stringify(__uniConfig.globalStyle||{})),o=c({id:t},n,e);fc.forEach((t=>{o[t]=c({},n[t],e[t])}));const{navigationBar:r}=o;return r.titleText&&r.titleImage&&(r.titleText=""),o}function hc(e,t,n){if(y(e))n=t,t=e,e=dc();else if("number"==typeof e){const t=Vp().find((t=>t.$page.id===e));e=t?t.$vm:dc()}if(!e)return;const o=e.$[t];return o&&((e,t)=>{let n;for(let o=0;o{function a(){if((()=>{const{scrollHeight:e}=document.documentElement,t=window.innerHeight,o=window.scrollY,i=o>0&&e>t&&o+t+n>=e,a=Math.abs(e-vc)>n;return!i||r&&!a?(!i&&r&&(r=!1),!1):(vc=e,r=!0,!0)})())return t&&t(),i=!1,setTimeout((function(){i=!0}),350),!0}e&&e(window.pageYOffset),t&&i&&(a()||(gc=setTimeout(a,300))),o=!1};return function(){clearTimeout(gc),o||requestAnimationFrame(a),o=!0}}function bc(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return bc(e,t.slice(2));const n=t.split("/"),o=n.length;let r=0;for(;r0?e.split("/"):[];return i.splice(i.length-r-1,r+1),ue(i.concat(n).join("/"))}function _c(e,t=!1){return t?__uniRoutes.find((t=>t.path===e||t.alias===e)):__uniRoutes.find((t=>t.path===e))}class wc{constructor(e){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=e,this.$el=function(e,t=!1){const{vnode:n}=e;if(ae(n.el))return t?n.el?[n.el]:[]:n.el;const{subTree:o}=e;if(16&o.shapeFlag){const e=o.children.filter((e=>e.el&&ae(e.el)));if(e.length>0)return t?e.map((e=>e.el)):e[0].el}return t?n.el?[n.el]:[]:n.el}(e.$),this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(e){if(!this.$el||!e)return;const t=Tc(this.$el.querySelector(e));return t?xc(t,!1):void 0}selectAllComponents(e){if(!this.$el||!e)return[];const t=[],n=this.$el.querySelectorAll(e);for(let o=0;o-1&&t.splice(n,1)}const n=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return-1===n.indexOf(e)&&(n.push(e),this.forceUpdate("class")),this}hasClass(e){return this.$el&&this.$el.classList.contains(e)}getDataset(){return this.$el&&this.$el.dataset}callMethod(e,t={}){const n=this.$vm[e];v(n)?n(JSON.parse(JSON.stringify(t))):this.$vm.ownerId&&Ym.publishHandler("onWxsInvokeCallMethod",{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:e,args:t})}requestAnimationFrame(e){return window.requestAnimationFrame(e)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(e,t={}){return this.$vm.$emit(e,t),this}getComputedStyle(e){if(this.$el){const t=window.getComputedStyle(this.$el);return e&&e.length?e.reduce(((e,n)=>(e[n]=t[n],e)),{}):t}return{}}setTimeout(e,t){return window.setTimeout(e,t)}clearTimeout(e){return window.clearTimeout(e)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function xc(e,t=!0){if(t&&e&&(e=ie(e.$)),e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new wc(e)),e.$el.__wxsComponentDescriptor}function Sc(e,t){return xc(e,t)}function Cc(e,t,n,o=!0){if(t){e.__instance||(e.__instance=!0,Object.defineProperty(e,"instance",{get:()=>Sc(n.proxy,!1)}));const r=function(e,t,n=!0){if(!t)return!1;if(n&&e.length<2)return!1;const o=ie(t);if(!o)return!1;const r=o.$.type;return!(!r.$wxs&&!r.$renderjs)&&o}(t,n,o);if(r)return[e,Sc(r,!1)]}}function Tc(e){if(e)return e.__vueParentComponent&&e.__vueParentComponent.proxy}function kc(e,t=!1){const{type:n,timeStamp:o,target:r,currentTarget:i}=e;let a,s;a=ve(t?r:function(e){for(;e&&0!==e.tagName.indexOf("UNI-");)e=e.parentElement;return e}(r)),s=ve(i);const l={type:n,timeStamp:o,target:a,detail:{},currentTarget:s};return e._stopped&&(l._stopped=!0),e.type.startsWith("touch")&&(l.touches=e.touches,l.changedTouches=e.changedTouches),function(e,t){c(e,{preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()})}(l,e),l}function Ec(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function Oc(e,t){const n=[];for(let o=0;o0===e.type.indexOf("mouse")||["contextmenu"].includes(e.type))(e))!function(e,t){const n=Jl();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[Ec(t,n)]}(i,e);else if((e=>"undefined"!=typeof TouchEvent&&e instanceof TouchEvent||0===e.type.indexOf("touch")||["longpress"].indexOf(e.type)>=0)(e)){const t=Jl();i.touches=Oc(e.touches,t),i.changedTouches=Oc(e.changedTouches,t)}else if((e=>!e.type.indexOf("key")&&e instanceof KeyboardEvent)(e)){["key","code"].forEach((t=>{Object.defineProperty(i,t,{get:()=>e[t]})}))}return Cc(i,t,n)||[i]},createNativeEvent:kc},Symbol.toStringTag,{value:"Module"});function Pc(e){!function(e){const t=e.globalProperties;c(t,$c),t.$gcd=Sc}(e._context.config)}let Ac=1;function Mc(e){return(e||uc())+".invokeViewApi"}const Lc=c(xl("view"),{invokeOnCallback:(e,t)=>Km.emit("api."+e,t),invokeViewMethod:(e,t,n,o)=>{const{subscribe:r,publishHandler:i}=Km,a=o?Ac++:0;o&&r("invokeViewApi."+a,o,!0),i(Mc(n),{id:a,name:e,args:t},n)},invokeViewMethodKeepAlive:(e,t,n,o)=>{const{subscribe:r,unsubscribe:i,publishHandler:a}=Km,s=Ac++,l="invokeViewApi."+s;return r(l,n),a(Mc(o),{id:s,name:e,args:t},o),()=>{i(l)}}});function Bc(e){hc(lc(),"onResize",e),Km.invokeOnCallback("onWindowResize",e)}function Nc(e){const t=lc();hc(dh(),"onShow",e),hc(t,"onShow")}function Ic(){hc(dh(),"onHide"),hc(lc(),"onHide")}const Rc=["onPageScroll","onReachBottom"];function jc(){Rc.forEach((e=>Km.subscribe(e,function(e){return(t,n)=>{hc(parseInt(n),e,t)}}(e))))}function Fc(){!function(){const{on:e}=Km;e("onResize",Bc),e("onAppEnterForeground",Nc),e("onAppEnterBackground",Ic)}(),jc()}function Dc(){if(this.$route){const e=this.$route.meta;return e.eventChannel||(e.eventChannel=new Se(this.$page.id)),e.eventChannel}}function Vc(e){e._context.config.globalProperties.getOpenerEventChannel=Dc}function Hc(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}function zc(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,((e,t)=>`${rd(parseFloat(t))}px`)):/^-?[\d\.]+$/.test(e)?`${e}px`:e||""}function qc(e){const t=e.animation;if(!t||!t.actions||!t.actions.length)return;let n=0;const o=t.actions,r=t.actions.length;function i(){const t=o[n],a=t.option.transition,s=function(e){const t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],n=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],o=["opacity","background-color"],r=["width","height","left","right","top","bottom"],i=e.animates,a=e.option,s=a.transition,l={},c=[];return i.forEach((e=>{let i=e.type,a=[...e.args];if(t.concat(n).includes(i))i.startsWith("rotate")||i.startsWith("skew")?a=a.map((e=>parseFloat(e)+"deg")):i.startsWith("translate")&&(a=a.map(zc)),n.indexOf(i)>=0&&(a.length=1),c.push(`${i}(${a.join(",")})`);else if(o.concat(r).includes(a[0])){i=a[0];const e=a[1];l[i]=r.includes(i)?zc(e):e}})),l.transform=l.webkitTransform=c.join(" "),l.transition=l.webkitTransition=Object.keys(l).map((e=>`${function(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`)).replace("webkit","-webkit")}(e)} ${s.duration}ms ${s.timingFunction} ${s.delay}ms`)).join(","),l.transformOrigin=l.webkitTransformOrigin=a.transformOrigin,l}(t);Object.keys(s).forEach((t=>{e.$el.style[t]=s[t]})),n+=1,n{i()}),0)}const Wc={props:["animation"],watch:{animation:{deep:!0,handler(){qc(this)}}},mounted(){qc(this)}},Uc=e=>{e.__reserved=!0;const{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(Wc),Xc(e)},Xc=e=>(e.__reserved=!0,e.compatConfig={MODE:3},lo(e));function Yc(e){return e.__wwe=!0,e}function Kc(e,t){return(n,o,r)=>{e.value&&t(n,function(e,t,n,o){let r;return r=ve(n),{type:o.type||e,timeStamp:t.timeStamp||0,target:r,currentTarget:r,detail:o}}(n,o,e.value,r||{}))}}const Gc={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function Zc(e){const t=tn(!1);let n,o,r=!1;function i(){requestAnimationFrame((()=>{clearTimeout(o),o=setTimeout((()=>{t.value=!1}),parseInt(e.hoverStayTime))}))}function a(o){o._hoverPropagationStopped||e.hoverClass&&"none"!==e.hoverClass&&!e.disabled&&(e.hoverStopPropagation&&(o._hoverPropagationStopped=!0),r=!0,n=setTimeout((()=>{t.value=!0,r||i()}),parseInt(e.hoverStartTime)))}function s(){r=!1,t.value&&i()}function l(){s(),window.removeEventListener("mouseup",l)}return{hovering:t,binding:{onTouchstartPassive:Yc((function(e){e.touches.length>1||a(e)})),onMousedown:Yc((function(e){r||(a(e),window.addEventListener("mouseup",l))})),onTouchend:Yc((function(){s()})),onMouseup:Yc((function(){r&&l()})),onTouchcancel:Yc((function(){r=!1,t.value=!1,clearTimeout(n)}))}}}function Jc(e,t){return y(t)&&(t=[t]),t.reduce(((t,n)=>(e[n]&&(t[n]=!0),t)),Object.create(null))}const Qc=ec("uf"),eu=Uc({name:"Form",emits:["submit","reset"],setup(e,{slots:t,emit:n}){const o=tn(null);return function(e){const t=[];qn(Qc,{addField(e){t.push(e)},removeField(e){t.splice(t.indexOf(e),1)},submit(n){e("submit",n,{value:t.reduce(((e,t)=>{if(t.submit){const[n,o]=t.submit();n&&(e[n]=o)}return e}),Object.create(null))})},reset(n){t.forEach((e=>e.reset&&e.reset())),e("reset",n)}})}(Kc(o,n)),()=>Kr("uni-form",{ref:o},[Kr("span",null,[t.default&&t.default()])],512)}});const tu=ec("ul");function nu(e,t){ou(e.id,t),Yn((()=>e.id),((e,n)=>{ru(n,t,!0),ou(e,t,!0)})),Bo((()=>{ru(e.id,t)}))}function ou(e,t,n){const o=sc();n&&!e||C(t)&&Object.keys(t).forEach((r=>{n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&Ym.on(`uni-${r}-${o}-${e}`,t[r]):0===r.indexOf("uni-")?Ym.on(r,t[r]):e&&Ym.on(`uni-${r}-${o}-${e}`,t[r])}))}function ru(e,t,n){const o=sc();n&&!e||C(t)&&Object.keys(t).forEach((r=>{n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&Ym.off(`uni-${r}-${o}-${e}`,t[r]):0===r.indexOf("uni-")?Ym.off(r,t[r]):e&&Ym.off(`uni-${r}-${o}-${e}`,t[r])}))}const iu=Uc({name:"Button",props:{id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1},plain:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=tn(null),o=Wn(Qc,!1),{hovering:r,binding:i}=Zc(e);ml();const a=Yc(((t,r)=>{if(e.disabled)return t.stopImmediatePropagation();r&&n.value.click();const i=e.formType;if(i){if(!o)return;"submit"===i?o.submit(t):"reset"===i&&o.reset(t)}else;})),s=Wn(tu,!1);return s&&(s.addHandler(a),Lo((()=>{s.removeHandler(a)}))),nu(e,{"label-click":a}),()=>{const o=e.hoverClass,s=Jc(e,"disabled"),l=Jc(e,"loading"),c=Jc(e,"plain"),u=o&&"none"!==o;return Kr("uni-button",ni({ref:n,onClick:a,id:e.id,class:u&&r.value?o:""},u&&i,s,l,c),[t.default&&t.default()],16,["onClick","id"])}}});function au(e){const{base:t}=__uniConfig.router;return 0===ue(e).indexOf(t)?ue(e):t+e}function su(e){const{base:t,assets:n}=__uniConfig.router;if("./"===t&&(0===e.indexOf("./static/")||n&&0===e.indexOf("./"+n+"/"))&&(e=e.slice(1)),0===e.indexOf("/")){if(0!==e.indexOf("//"))return au(e.slice(1));e="https:"+e}if(ne.test(e)||oe.test(e)||0===e.indexOf("blob:"))return e;const o=Vp();return o.length?au(bc(o[o.length-1].$page.route,e).slice(1)):e}const lu=navigator.userAgent,cu=/android/i.test(lu),uu=/iphone|ipad|ipod/i.test(lu),du=lu.match(/Windows NT ([\d|\d.\d]*)/i),fu=/Macintosh|Mac/i.test(lu),pu=/Linux|X11/i.test(lu),hu=fu&&navigator.maxTouchPoints>0;function mu(){return/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation}function gu(e){return e&&90===Math.abs(window.orientation)}function vu(e,t){return e?Math[t?"max":"min"](screen.width,screen.height):screen.width}function yu(e){return Math.min(window.innerWidth,document.documentElement.clientWidth,e)||e}const bu=["original","compressed"],_u=["album","camera"],wu=["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"];function xu(e,t){return e&&-1!==t.indexOf(e)?e:t[0]}function Su(e,t){return!p(e)||0===e.length||e.find((e=>-1===t.indexOf(e)))?t:e}function Cu(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}let Tu=1;const ku={};function Eu(e,t,n){if("number"==typeof e){const o=ku[e];if(o)return o.keepAlive||delete ku[e],o.callback(t,n)}return t}const Ou="success",$u="fail",Pu="complete";function Au(e,t={},{beforeAll:n,beforeSuccess:o}={}){C(t)||(t={});const{success:r,fail:i,complete:a}=function(e){const t={};for(const n in e){const o=e[n];v(o)&&(t[n]=Cu(o),delete e[n])}return t}(t),s=v(r),l=v(i),c=v(a),u=Tu++;return function(e,t,n,o=!1){ku[e]={name:t,keepAlive:o,callback:n}}(u,e,(u=>{(u=u||{}).errMsg=function(e,t){return e&&-1!==e.indexOf(":fail")?t+e.substring(e.indexOf(":fail")):t+":ok"}(u.errMsg,e),v(n)&&n(u),u.errMsg===e+":ok"?(v(o)&&o(u,t),s&&r(u)):l&&i(u),c&&a(u)})),u}const Mu="success",Lu="fail",Bu="complete",Nu={},Iu={};function Ru(e,t){return function(n){return e(n,t)||n}}function ju(e,t,n){let o=!1;for(let r=0;re(t),catch(){}}}function Fu(e,t={}){return[Mu,Lu,Bu].forEach((n=>{const o=e[n];if(!p(o))return;const r=t[n];t[n]=function(e){ju(o,e,t).then((e=>v(r)&&r(e)||e))}})),t}function Du(e,t){const n=[];p(Nu.returnValue)&&n.push(...Nu.returnValue);const o=Iu[e];return o&&p(o.returnValue)&&n.push(...o.returnValue),n.forEach((e=>{t=e(t)||t})),t}function Vu(e){const t=Object.create(null);Object.keys(Nu).forEach((e=>{"returnValue"!==e&&(t[e]=Nu[e].slice())}));const n=Iu[e];return n&&Object.keys(n).forEach((e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function Hu(e,t,n,o){const r=Vu(e);if(r&&Object.keys(r).length){if(p(r.invoke)){return ju(r.invoke,n).then((n=>t(Fu(Vu(e),n),...o)))}return t(Fu(r,n),...o)}return t(n,...o)}function zu(e,t){return(n={},...o)=>function(e){return!(!C(e)||![Ou,$u,Pu].find((t=>v(e[t]))))}(n)?Du(e,Hu(e,t,n,o)):Du(e,new Promise(((r,i)=>{Hu(e,t,c(n,{success:r,fail:i}),o)})))}function qu(e,t,n,o={}){const r=t+":fail"+(n?" "+n:"");return delete o.errCode,Eu(e,"undefined"!=typeof UniError?void 0!==o.errCode?new UniError(t,o.errCode,r):new UniError(r,o):c({errMsg:r},o))}function Wu(e,t,n,o){if(o&&o.beforeInvoke){const e=o.beforeInvoke(t);if(y(e))return e}const r=function(e,t){const n=e[0];if(!t||!C(t.formatArgs)&&C(n))return;const o=t.formatArgs,r=Object.keys(o);for(let i=0;i{const r=Au(e,n,o),i=Wu(0,[n],0,o);return i?qu(r,e,i):t(n,{resolve:t=>function(e,t,n){return Eu(e,c(n||{},{errMsg:t+":ok"}))}(r,e,t),reject:(t,n)=>qu(r,e,function(e){return!e||y(e)?e:e.stack?(console.error(e.message+"\n"+e.stack),e.message):e}(t),n)})}}function Xu(e,t,n,o){return zu(e,Uu(e,t,0,o))}function Yu(e,t,n,o){return function(e,t,n,o){return(...e)=>{const n=Wu(0,e,0,o);if(n)throw new Error(n);return t.apply(null,e)}}(0,t,0,o)}function Ku(e,t,n,o){return zu(e,function(e,t,n,o){return Uu(e,t,0,o)}(e,t,0,o))}let Gu=!1,Zu=0,Ju=0,Qu=960,ed=375,td=750;function nd(){const{platform:e,pixelRatio:t,windowWidth:n}=function(){const e=mu(),t=yu(vu(e,gu(e)));return{platform:uu?"ios":"other",pixelRatio:window.devicePixelRatio,windowWidth:t}}();Zu=n,Ju=t,Gu="ios"===e}function od(e,t){const n=Number(e);return isNaN(n)?t:n}const rd=Yu(0,((e,t)=>{if(0===Zu&&(nd(),function(){const e=__uniConfig.globalStyle||{};Qu=od(e.rpxCalcMaxDeviceWidth,960),ed=od(e.rpxCalcBaseDeviceWidth,375),td=od(e.rpxCalcBaseDeviceWidth,750)}()),0===(e=Number(e)))return 0;let n=t||Zu;n=e===td||n<=Qu?n:ed;let o=e/750*n;return o<0&&(o=-o),o=Math.floor(o+1e-4),0===o&&(o=1!==Ju&&Gu?.5:1),e<0?-o:o}));function id(e,t){Object.keys(t).forEach((n=>{v(t[n])&&(e[n]=function(e,t){const n=t?e?e.concat(t):p(t)?t:[t]:e;return n?function(e){const t=[];for(let n=0;n{y(e)&&C(t)?id(Iu[e]||(Iu[e]={}),t):C(e)&&id(Nu,e)})),sd={formatArgs:{}},ld={duration:400,timingFunction:"linear",delay:0,transformOrigin:"50% 50% 0"};class cd{constructor(e){this.actions=[],this.currentTransform={},this.currentStepAnimates=[],this.option=c({},ld,e)}_getOption(e){const t={transition:c({},this.option,e),transformOrigin:""};return t.transformOrigin=t.transition.transformOrigin,delete t.transition.transformOrigin,t}_pushAnimates(e,t){this.currentStepAnimates.push({type:e,args:t})}_converType(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}_getValue(e){return"number"==typeof e?`${e}px`:e}export(){const e=this.actions;return this.actions=[],{actions:e}}step(e){return this.currentStepAnimates.forEach((e=>{"style"!==e.type?this.currentTransform[e.type]=e:this.currentTransform[`${e.type}.${e.args[0]}`]=e})),this.actions.push({animates:Object.values(this.currentTransform),option:this._getOption(e)}),this.currentStepAnimates=[],this}}const ud=de((()=>{const e=["opacity","backgroundColor"],t=["width","height","left","right","top","bottom"];["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"].concat(e,t).forEach((n=>{cd.prototype[n]=function(...o){return e.concat(t).includes(n)?this._pushAnimates("style",[this._converType(n),t.includes(n)?this._getValue(o[0]):o[0]]):this._pushAnimates(n,o),this}}))})),dd=Yu(0,(e=>(ud(),new cd(e))),0,sd),fd=Yu(0,(()=>{const e=dh();return e&&e.$vm?e.$vm.$locale:ml().getLocale()})),pd={onUnhandledRejection:[],onPageNotFound:[],onError:[],onShow:[],onHide:[]};const hd=Yu(0,(()=>c({},Qd)));let md,gd,vd;const yd=[];const bd=Ku("getPushClientId",((e,{resolve:t,reject:n})=>{Promise.resolve().then((()=>{var e,o;void 0===vd&&(vd=!1,md="",gd="uniPush is not enabled"),yd.push(((e,o)=>{e?t({cid:e}):n(o)})),void 0!==md&&(e=md,o=gd,yd.forEach((t=>{t(e,o)})),yd.length=0)}))})),_d=e=>{},wd=e=>{},xd={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=9)},sizeType(e,t){t.sizeType=Su(e,bu)},sourceType(e,t){t.sourceType=Su(e,_u)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}},Sd={formatArgs:{sourceType(e,t){t.sourceType=Su(e,_u)},compressed:!0,maxDuration:60,camera:"back",extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}},Cd=(Boolean,["all","image","video"]),Td={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=100)},sourceType(e,t){t.sourceType=Su(e,_u)},type(e,t){t.type=xu(e,Cd)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=[""])}}},kd={formatArgs:{src(e,t){t.src=su(e)}}},Ed={formatArgs:{urls(e,t){t.urls=e.map((e=>y(e)&&e?su(e):""))},current(e,t){"number"==typeof e?t.current=e>0&&ee)),a={};i.forEach((e=>{const t=e.split("=");a[t[0]]=t[1]}));for(const s in t)if(f(t,s)){let e=t[s];null==e?e="":C(e)&&(e=JSON.stringify(e)),a[Pd(s)]=Pd(e)}return r=Object.keys(a).map((e=>`${e}=${a[e]}`)).join("&"),e+(r?"?"+r:"")+(o?"#"+o:"")}(e,t.data))},header(e,t){const n=t.header=e||{};t.method!==wu[0]&&(Object.keys(n).find((e=>"content-type"===e.toLowerCase()))||(n["Content-Type"]="application/json"))},dataType(e,t){t.dataType=(e||Od).toLowerCase()},responseType(e,t){t.responseType=(e||"").toLowerCase(),-1===$d.indexOf(t.responseType)&&(t.responseType="text")}}},Md={formatArgs:{filePath(e,t){e&&(t.filePath=su(e))},header(e,t){t.header=e||{}},formData(e,t){t.formData=e||{}}}};const Ld={url:{type:String,required:!0}},Bd=(Fd(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"]),Fd(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"]),Hd("navigateTo")),Nd=Hd("redirectTo"),Id=Hd("reLaunch"),Rd=Hd("switchTab"),jd={formatArgs:{delta(e,t){e=parseInt(e+"")||1,t.delta=Math.min(Vp().length-1,e)}}};function Fd(e){return{animationType:{type:String,validator(t){if(t&&-1===e.indexOf(t))return"`"+t+"` is not supported for `animationType` (supported values are: `"+e.join("`|`")+"`)"}},animationDuration:{type:Number}}}let Dd;function Vd(){Dd=""}function Hd(e){return{formatArgs:{url:zd(e)},beforeAll:Vd}}function zd(e){return function(t,n){if(!t)return'Missing required args: "url"';const o=(t=function(e){if(0===e.indexOf("/"))return e;let t="";const n=Vp();return n.length&&(t=n[n.length-1].$page.route),bc(t,e)}(t)).split("?")[0],r=_c(o,!0);if(!r)return"page `"+t+"` is not found";if("navigateTo"===e||"redirectTo"===e){if(r.meta.isTabBar)return`can not ${e} a tabbar page`}else if("switchTab"===e&&!r.meta.isTabBar)return"can not switch to no-tabBar page";if("switchTab"!==e&&"preloadPage"!==e||!r.meta.isTabBar||"appLaunch"===n.openType||(t=o),r.meta.isEntry&&(t=t.replace(r.alias,"/")),n.url=function(e){if(!y(e))return e;const t=e.indexOf("?");if(-1===t)return e;const n=e.slice(t+1).trim().replace(/^(\?|#|&)/,"");if(!n)return e;e=e.slice(0,t);const o=[];return n.split("&").forEach((e=>{const t=e.replace(/\+/g," ").split("="),n=t.shift(),r=t.length>0?t.join("="):"";o.push(n+"="+encodeURIComponent(r))})),o.length?e+"?"+o.join("&"):e}(t),"unPreloadPage"!==e)if("preloadPage"!==e){if(Dd===t&&"appLaunch"!==n.openType)return`${Dd} locked`;__uniConfig.ready&&(Dd=t)}else if(r.meta.isTabBar){const e=Vp(),t=r.path.slice(1);if(e.find((e=>e.route===t)))return"tabBar page `"+t+"` already exists"}}}Boolean;const qd={formatArgs:{title:"",mask:!1}},Wd=(Boolean,{beforeInvoke(){_l()},formatArgs:{title:"",content:"",placeholderText:"",showCancel:!0,editable:!1,cancelText(e,t){if(!f(t,"cancelText")){const{t:e}=ml();t.cancelText=e("uni.showModal.cancel")}},cancelColor:"#000",confirmText(e,t){if(!f(t,"confirmText")){const{t:e}=ml();t.confirmText=e("uni.showModal.confirm")}},confirmColor:"#007aff"}}),Ud=["success","loading","none","error"],Xd=(Boolean,{formatArgs:{title:"",icon(e,t){t.icon=xu(e,Ud)},image(e,t){t.image=e?su(e):""},duration:1500,mask:!1}}),Yd={};function Kd(e,t){const n=Yd[e];return n?Promise.resolve(n):/^data:[a-z-]+\/[a-z-]+;base64,/.test(e)?Promise.resolve(function(e){const t=e.split(","),n=t[0].match(/:(.*?);/),o=n?n[1]:"",r=atob(t[1]);let i=r.length;const a=new Uint8Array(i);for(;i--;)a[i]=r.charCodeAt(i);return Gd(a,o)}(e)):t?Promise.reject(new Error("not find")):new Promise(((t,n)=>{const o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType="blob",o.onload=function(){t(this.response)},o.onerror=n,o.send()}))}function Gd(e,t){let n;if(e instanceof File)n=e;else{t=t||e.type||"";const r=`${Date.now()}${function(e){const t=e.split("/")[1];return t?`.${t}`:""}(t)}`;try{n=new File([e],r,{type:t})}catch(o){n=e=e instanceof Blob?e:new Blob([e],{type:t}),n.name=n.name||r}}return n}function Zd(e){for(const n in Yd)if(f(Yd,n)){if(Yd[n]===e)return n}var t=(window.URL||window.webkitURL).createObjectURL(e);return Yd[t]=e,t}function Jd(e){(window.URL||window.webkitURL).revokeObjectURL(e),delete Yd[e]}const Qd=Hc(),ef=Hc();const tf=Uc({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,{emit:t}){const n=tn(null),o=function(e){return()=>{const{firstElementChild:t,lastElementChild:n}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5}}(n),r=function(e,t,n){const o=Vt({width:-1,height:-1});return Yn((()=>c({},o)),(e=>t("resize",e))),()=>{const t=e.value;o.width=t.offsetWidth,o.height=t.offsetHeight,n()}}(n,t,o);return function(e,t,n,o){yo(o),Po((()=>{t.initial&&Sn(n);const r=e.value;r.offsetParent!==r.parentElement&&(r.parentElement.style.position="relative"),"AnimationEvent"in window||o()}))}(n,e,r,o),()=>Kr("uni-resize-sensor",{ref:n,onAnimationstartOnce:r},[Kr("div",{onScroll:r},[Kr("div",null,null)],40,["onScroll"]),Kr("div",{onScroll:r},[Kr("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});function nf(){}const of={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}};function rf(e,t,n){function o(e){const t=gi((()=>0===String(navigator.vendor).indexOf("Apple")));e.addEventListener("focus",(()=>{clearTimeout(undefined),document.addEventListener("click",nf,!1)}));e.addEventListener("blur",(()=>{t.value&&e.blur(),document.removeEventListener("click",nf,!1),t.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)}))}Yn((()=>t.value),(e=>e&&o(e)))}const af={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},sf={widthFix:["offsetWidth","height",(e,t)=>e/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},lf={aspectFit:["center center","contain"],aspectFill:["center center","cover"],widthFix:[,"100% 100%"],heightFix:[,"100% 100%"],top:["center top"],bottom:["center bottom"],center:["center center"],left:["left center"],right:["right center"],"top left":["left top"],"top right":["right top"],"bottom left":["left bottom"],"bottom right":["right bottom"]},cf=Uc({name:"Image",props:af,setup(e,{emit:t}){const n=tn(null),o=function(e,t){const n=tn(""),o=gi((()=>{let e="auto",o="";const r=lf[t.mode];return r?(r[0]&&(o=r[0]),r[1]&&(e=r[1])):(o="0% 0%",e="100% 100%"),`background-image:${n.value?'url("'+n.value+'")':"none"};background-position:${o};background-size:${e};`})),r=Vt({rootEl:e,src:gi((()=>t.src?su(t.src):"")),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:o,imgSrc:n});return Po((()=>{const t=e.value.style;r.origWidth=Number(t.width)||0,r.origHeight=Number(t.height)||0})),r}(n,e),r=Kc(n,t),{fixSize:i}=function(e,t,n){const o=()=>{const{mode:o}=t,r=sf[o];if(!r)return;const{origWidth:i,origHeight:a}=n,s=i&&a?i/a:0;if(!s)return;const l=e.value,c=l[r[0]];c&&(l.style[r[1]]=function(e){uf&&e>10&&(e=2*Math.round(e/2));return e}(r[2](c,s))+"px")},r=()=>{const{style:t}=e.value,{origStyle:{width:o,height:r}}=n;t.width=o,t.height=r};return Yn((()=>t.mode),((e,t)=>{sf[t]&&r(),sf[e]&&o()})),{fixSize:o,resetSize:r}}(n,e,o);return function(e,t,n,o,r){let i,a;const s=(t=0,n=0,o="")=>{e.origWidth=t,e.origHeight=n,e.imgSrc=o},l=l=>{if(!l)return c(),void s();i=i||new Image,i.onload=e=>{const{width:u,height:d}=i;s(u,d,l),o(),i.draggable=t.draggable,a&&a.remove(),a=i,n.value.appendChild(i),c(),r("load",e,{width:u,height:d})},i.onerror=t=>{s(),c(),r("error",t,{errMsg:`GET ${e.src} 404 (Not Found)`})},i.src=l},c=()=>{i&&(i.onload=null,i.onerror=null,i=null)};Yn((()=>e.src),(e=>l(e))),Yn((()=>e.imgSrc),(e=>{!e&&a&&(a.remove(),a=null)})),Po((()=>l(e.src))),Lo((()=>c()))}(o,e,n,i,r),()=>Kr("uni-image",{ref:n},[Kr("div",{style:o.modeStyle},null,4),sf[e.mode]?Kr(tf,{onResize:i},null,8,["onResize"]):Kr("span",null,null)],512)}});const uf="Google Inc."===navigator.vendor;const df=ge(!0),ff=[];let pf,hf=0;const mf=e=>ff.forEach((t=>t.userAction=e));function gf(e={userAction:!1}){if(!pf){["touchstart","touchmove","touchend","mousedown","mouseup"].forEach((e=>{document.addEventListener(e,(function(){!hf&&mf(!0),hf++,setTimeout((()=>{!--hf&&mf(!1)}),0)}),df)})),pf=!0}ff.push(e)}const vf=()=>!!hf;function yf(){const e=Vt({userAction:!1});return Po((()=>{gf(e)})),Lo((()=>{!function(e){const t=ff.indexOf(e);t>=0&&ff.splice(t,1)}(e)})),{state:e}}function bf(e,t){const n=document.activeElement;if(!n)return t({});const o={};["input","textarea"].includes(n.tagName.toLowerCase())&&(o.start=n.selectionStart,o.end=n.selectionEnd),t(o)}const _f=function(){var e,t,n;e=uc(),n=bf,t=Tl(e,t="getSelectedTextRange"),Cl[t]||(Cl[t]=n)};function wf(e,t){return"number"===t&&isNaN(Number(e))&&(e=""),null===e?"":String(e)}const xf=["none","text","decimal","numeric","tel","search","email","url"],Sf=c({},{name:{type:String,default:""},modelValue:{type:[String,Number],default:""},value:{type:[String,Number],default:""},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},confirmHold:{type:Boolean,default:!1},ignoreCompositionEvent:{type:Boolean,default:!0},step:{type:String,default:"0.000000000000000001"},inputmode:{type:String,default:void 0,validator:e=>!!~xf.indexOf(e)},cursorColor:{type:String,default:""}},of),Cf=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend","keyboardheightchange"];function Tf(e,t,n,o){const r=xe((n=>{t.value=wf(n,e.type)}),100,{setTimeout:setTimeout,clearTimeout:clearTimeout});Yn((()=>e.modelValue),r),Yn((()=>e.value),r);const i=function(e,t){let n,o,r=0;const i=function(...i){const a=Date.now();clearTimeout(n),o=()=>{o=null,r=a,e.apply(this,i)},a-r{r.cancel(),n("update:modelValue",t.value),n("update:value",t.value),o("input",e,t)}),100);return $o((()=>{r.cancel(),i.cancel()})),{trigger:o,triggerInput:(e,t,n)=>{r.cancel(),i(e,t),n&&i.flush()}}}function kf(e,t){yf();const n=gi((()=>e.autoFocus||e.focus));function o(){if(!n.value)return;const e=t.value;e?e.focus():setTimeout(o,100)}Yn((()=>e.focus),(e=>{e?o():function(){const e=t.value;e&&e.blur()}()})),Po((()=>{n.value&&Sn(o)}))}function Ef(e,t,n,o){_f();const{fieldRef:r,state:i,trigger:a}=function(e,t,n){const o=tn(null),r=Kc(t,n),i=gi((()=>{const t=Number(e.selectionStart);return isNaN(t)?-1:t})),a=gi((()=>{const t=Number(e.selectionEnd);return isNaN(t)?-1:t})),s=gi((()=>{const t=Number(e.cursor);return isNaN(t)?-1:t})),l=gi((()=>{var t=Number(e.maxlength);return isNaN(t)?140:t})),c=wf(e.modelValue,e.type)||wf(e.value,e.type),u=Vt({value:c,valueOrigin:c,maxlength:l,focus:e.focus,composing:!1,selectionStart:i,selectionEnd:a,cursor:s});return Yn((()=>u.focus),(e=>n("update:focus",e))),Yn((()=>u.maxlength),(e=>u.value=u.value.slice(0,e))),{fieldRef:o,state:u,trigger:r}}(e,t,n),{triggerInput:s}=Tf(e,i,n,a);kf(e,r),rf(0,r);const{state:l}=function(){const e=Vt({attrs:{}});return Po((()=>{let t=si();for(;t;){const n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&"page"===t.proxy.$mpType?null:t.parent}})),{state:e}}();!function(e,t){const n=Wn(Qc,!1);if(!n)return;const o=si(),r={submit(){const n=o.proxy;return[n[e],y(t)?n[t]:t.value]},reset(){y(t)?o.proxy[t]="":t.value=""}};n.addField(r),Lo((()=>{n.removeField(r)}))}("name",i),function(e,t,n,o,r,i){function a(){const n=e.value;n&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&"number"!==n.type&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd)}function s(){const n=e.value;n&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&"number"!==n.type&&(n.selectionEnd=n.selectionStart=t.cursor)}function l(e){return"number"===e.type?null:e.selectionEnd}Yn([()=>t.selectionStart,()=>t.selectionEnd],a),Yn((()=>t.cursor),s),Yn((()=>e.value),(function(){const c=e.value;if(!c)return;const u=function(e,o){e.stopPropagation(),v(i)&&!1===i(e,t)||(t.value=c.value,t.composing&&n.ignoreCompositionEvent||r(e,{value:c.value,cursor:l(c)},o))};function d(e){n.ignoreCompositionEvent||o(e.type,e,{value:e.data})}c.addEventListener("change",(e=>e.stopPropagation())),c.addEventListener("focus",(function(e){t.focus=!0,o("focus",e,{value:t.value}),a(),s()})),c.addEventListener("blur",(function(e){t.composing&&(t.composing=!1,u(e,!0)),t.focus=!1,o("blur",e,{value:t.value,cursor:l(e.target)})})),c.addEventListener("input",u),c.addEventListener("compositionstart",(e=>{e.stopPropagation(),t.composing=!0,d(e)})),c.addEventListener("compositionend",(e=>{e.stopPropagation(),t.composing&&(t.composing=!1,u(e)),d(e)})),c.addEventListener("compositionupdate",d)}))}(r,i,e,a,s,o);return{fieldRef:r,state:i,scopedAttrsState:l,fixDisabledColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image"),trigger:a}}const Of=Uc({name:"Input",props:c({},Sf,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),emits:["confirm",...Cf],setup(e,{emit:t,expose:n}){const o=["text","number","idcard","digit","password","tel"],r=["off","one-time-code"],i=gi((()=>{let t="";switch(e.type){case"text":"search"===e.confirmType&&(t="search");break;case"idcard":t="text";break;case"digit":t="number";break;default:t=~o.includes(e.type)?e.type:"text"}return e.password?"password":t})),a=gi((()=>{const t=r.indexOf(e.textContentType),n=r.indexOf(A(e.textContentType));return r[-1!==t?t:-1!==n?n:0]}));let s,l=tn("");const c=tn(null),{fieldRef:u,state:d,scopedAttrsState:f,fixDisabledColor:p,trigger:h}=Ef(e,c,t,((e,t)=>{const n=e.target;if("number"===i.value){if(s&&(n.removeEventListener("blur",s),s=null),n.validity&&!n.validity.valid){if((!l.value||!n.value)&&"-"===e.data||"-"===l.value[0]&&"deleteContentBackward"===e.inputType)return l.value="-",t.value="",s=()=>{l.value=n.value=""},n.addEventListener("blur",s),!1;if(l.value)if(-1!==l.value.indexOf(".")){if("."!==e.data&&"deleteContentBackward"===e.inputType){const e=l.value.indexOf(".");return l.value=n.value=t.value=l.value.slice(0,e),!0}}else if("."===e.data)return l.value+=".",s=()=>{l.value=n.value=l.value.slice(0,-1)},n.addEventListener("blur",s),!1;return l.value=t.value=n.value="-"===l.value?"":l.value,!1}l.value=n.value;const o=t.maxlength;if(o>0&&n.value.length>o)return n.value=n.value.slice(0,o),t.value=n.value,!1}}));Yn((()=>d.value),(t=>{"number"!==e.type||"-"===l.value&&""===t||(l.value=t)}));const m=["number","digit"],g=gi((()=>m.includes(e.type)?e.step:""));function v(t){if("Enter"!==t.key)return;const n=t.target;t.stopPropagation(),h("confirm",t,{value:n.value}),!e.confirmHold&&n.blur()}return n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),d.value=e.value}}),()=>{let t=e.disabled&&p?Kr("input",{key:"disabled-input",ref:u,value:d.value,tabindex:"-1",readonly:!!e.disabled,type:i.value,maxlength:d.maxlength,step:g.value,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},onFocus:e=>e.target.blur()},null,44,["value","readonly","type","maxlength","step","onFocus"]):Fo(Kr("input",{key:"input",ref:u,"onUpdate:modelValue":e=>d.value=e,disabled:!!e.disabled,type:i.value,maxlength:d.maxlength,step:g.value,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":void 0,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},autocomplete:a.value,onKeyup:v,inputmode:e.inputmode},null,44,["onUpdate:modelValue","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup","inputmode"]),[[ha,d.value]]);return Kr("uni-input",{ref:c},[Kr("div",{class:"uni-input-wrapper"},[Fo(Kr("div",ni(f.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[ba,!(d.value.length||"-"===l.value)]]),"search"===e.confirmType?Kr("form",{action:"",onSubmit:e=>e.preventDefault(),class:"uni-input-form"},[t],40,["onSubmit"]):t])],512)}}});const $f=["class","style"],Pf=/^on[A-Z]+/,Af=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n=[]}=e,o=si(),r=nn({}),i=nn({}),a=nn({}),s=n.concat($f);return o.attrs=Vt(o.attrs),Un((()=>{const e=(n=o.attrs,Object.keys(n).map((e=>[e,n[e]]))).reduce(((e,[n,o])=>(s.includes(n)?e.exclude[n]=o:Pf.test(n)?(t||(e.attrs[n]=o),e.listeners[n]=o):e.attrs[n]=o,e)),{exclude:{},attrs:{},listeners:{}});var n;r.value=e.attrs,i.value=e.listeners,a.value=e.exclude})),{$attrs:r,$listeners:i,$excludeAttrs:a}};function Mf(e){const t=[];return p(e)&&e.forEach((e=>{zr(e)?e.type===Ar?t.push(...Mf(e.children)):t.push(e):p(e)&&t.push(...Mf(e))})),t}const Lf=Uc({inheritAttrs:!1,name:"MovableArea",props:{scaleArea:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=tn(null),o=tn(!1);let{setContexts:r,events:i}=function(e,t){const n=tn(0),o=tn(0),r=Vt({x:null,y:null}),i=tn(null);let a=null,s=[];function l(t){t&&1!==t&&(e.scaleArea?s.forEach((function(e){e._setScale(t)})):a&&a._setScale(t))}function c(e,n=s){let o=t.value;function r(e){for(let t=0;t{let n=t.touches;if(n&&n.length>1){let t={x:n[1].pageX-n[0].pageX,y:n[1].pageY-n[0].pageY};if(i.value=Bf(t),r.x=t.x,r.y=t.y,!e.scaleArea){let e=c(n[0].target),t=c(n[1].target);a=e&&e===t?e:null}}})),d=Yc((e=>{let t=e.touches;if(t&&t.length>1){e.preventDefault();let n={x:t[1].pageX-t[0].pageX,y:t[1].pageY-t[0].pageY};if(null!==r.x&&i.value&&i.value>0){l(Bf(n)/i.value)}r.x=n.x,r.y=n.y}})),f=Yc((t=>{let n=t.touches;n&&n.length||t.changedTouches&&(r.x=0,r.y=0,i.value=null,e.scaleArea?s.forEach((function(e){e._endScale()})):a&&a._endScale())}));function p(){h(),s.forEach((function(e,t){e.setParent()}))}function h(){let e=window.getComputedStyle(t.value),r=t.value.getBoundingClientRect();n.value=r.width-["Left","Right"].reduce((function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])}),0),o.value=r.height-["Top","Bottom"].reduce((function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])}),0)}return qn("movableAreaWidth",n),qn("movableAreaHeight",o),{setContexts(e){s=e},events:{_onTouchstart:u,_onTouchmove:d,_onTouchend:f,_resize:p}}}(e,n);const{$listeners:a,$attrs:s,$excludeAttrs:l}=Af(),c=a.value;["onTouchstart","onTouchmove","onTouchend"].forEach((e=>{let t=c[e],n=i[`_${e}`];c[e]=t?[].concat(t,n):n})),Po((()=>{i._resize(),o.value=!0}));let u=[];const d=[];function f(){const e=[];for(let t=0;tn===e.rootRef.value));o&&e.push(Kt(o))}r(e)}return qn("_isMounted",o),qn("movableAreaRootRef",n),qn("addMovableViewContext",(e=>{d.push(e),f()})),qn("removeMovableViewContext",(e=>{const t=d.indexOf(e);t>=0&&(d.splice(t,1),f())})),()=>{const e=t.default&&t.default();return u=Mf(e),Kr("uni-movable-area",ni({ref:n},s.value,l.value,c),[Kr(tf,{onResize:i._resize},null,8,["onResize"]),u],16)}}});function Bf(e){return Math.sqrt(e.x*e.x+e.y*e.y)}const Nf=function(e,t,n,o){e.addEventListener(t,(e=>{v(n)&&!1===n(e)&&((void 0===e.cancelable||e.cancelable)&&e.preventDefault(),e.stopPropagation())}),{passive:!1})};let If,Rf;function jf(e,t,n){Lo((()=>{document.removeEventListener("mousemove",If),document.removeEventListener("mouseup",Rf)}));let o=0,r=0,i=0,a=0;const s=function(e,n,s,l){if(!1===t({cancelable:e.cancelable,target:e.target,currentTarget:e.currentTarget,preventDefault:e.preventDefault.bind(e),stopPropagation:e.stopPropagation.bind(e),touches:e.touches,changedTouches:e.changedTouches,detail:{state:n,x:s,y:l,dx:s-o,dy:l-r,ddx:s-i,ddy:l-a,timeStamp:e.timeStamp}}))return!1};let l,c,u=null;Nf(e,"touchstart",(function(e){if(l=!0,1===e.touches.length&&!u)return u=e,o=i=e.touches[0].pageX,r=a=e.touches[0].pageY,s(e,"start",o,r)})),Nf(e,"mousedown",(function(e){if(c=!0,!l&&!u)return u=e,o=i=e.pageX,r=a=e.pageY,s(e,"start",o,r)})),Nf(e,"touchmove",(function(e){if(1===e.touches.length&&u){const t=s(e,"move",e.touches[0].pageX,e.touches[0].pageY);return i=e.touches[0].pageX,a=e.touches[0].pageY,t}}));const d=If=function(e){if(!l&&c&&u){const t=s(e,"move",e.pageX,e.pageY);return i=e.pageX,a=e.pageY,t}};document.addEventListener("mousemove",d),Nf(e,"touchend",(function(e){if(0===e.touches.length&&u)return l=!1,u=null,s(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)}));const f=Rf=function(e){if(c=!1,!l&&u)return u=null,s(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",f),Nf(e,"touchcancel",(function(e){if(u){l=!1;const t=u;return u=null,s(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}}))}function Ff(e,t,n){return e>t-n&ðis._t&&(e=this._t,this._lastDt=e);let t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,n=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&tthis._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&nthis._endPositionY)&&(n=this._endPositionY),{x:t,y:n}},Hf.prototype.ds=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t),{dx:this._x_v+this._x_a*e,dy:this._y_v+this._y_a*e}},Hf.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},Hf.prototype.dt=function(){return-this._x_v/this._x_a},Hf.prototype.done=function(){const e=Ff(this.s().x,this._endPositionX)||Ff(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},Hf.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},Hf.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},zf.prototype._solve=function(e,t){const n=this._c,o=this._m,r=this._k,i=n*n-4*o*r;if(0===i){const r=-n/(2*o),i=e,a=t/(r*e);return{x:function(e){return(i+a*e)*Math.pow(Math.E,r*e)},dx:function(e){const t=Math.pow(Math.E,r*e);return r*(i+a*e)*t+a*t}}}if(i>0){const r=(-n-Math.sqrt(i))/(2*o),a=(-n+Math.sqrt(i))/(2*o),s=(t-r*e)/(a-r),l=e-s;return{x:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,r*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),l*t+s*n},dx:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,r*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),l*r*t+s*a*n}}}const a=Math.sqrt(4*o*r-n*n)/(2*o),s=-n/2*o,l=e,c=(t-s*e)/a;return{x:function(e){return Math.pow(Math.E,s*e)*(l*Math.cos(a*e)+c*Math.sin(a*e))},dx:function(e){const t=Math.pow(Math.E,s*e),n=Math.cos(a*e),o=Math.sin(a*e);return t*(c*a*n-l*a*o)+s*t*(c*o+l*n)}}},zf.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},zf.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},zf.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!Df(t,.1)){t=t||0;let o=this._endPosition;this._solution&&(Df(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),Df(t,.1)&&(t=0),Df(o,.1)&&(o=0),o+=this._endPosition),this._solution&&Df(o-e,.1)&&Df(t,.1)||(this._endPosition=e,this._solution=this._solve(o-this._endPosition,t),this._startTime=n)}},zf.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},zf.prototype.done=function(e){return e||(e=(new Date).getTime()),Ff(this.x(),this._endPosition,.1)&&Df(this.dx(),.1)},zf.prototype.reconfigure=function(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},zf.prototype.springConstant=function(){return this._k},zf.prototype.damping=function(){return this._c},zf.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]},qf.prototype.setEnd=function(e,t,n,o){const r=(new Date).getTime();this._springX.setEnd(e,o,r),this._springY.setEnd(t,o,r),this._springScale.setEnd(n,o,r),this._startTime=r},qf.prototype.x=function(){const e=((new Date).getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},qf.prototype.done=function(){const e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},qf.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)};function Wf(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}const Uf=Uc({name:"MovableView",props:{direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.5},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},emits:["change","scale"],setup(e,{slots:t,emit:n}){const o=tn(null),r=Kc(o,n),{setParent:i}=function(e,t,n){const o=Wn("_isMounted",tn(!1)),r=Wn("addMovableViewContext",(()=>{})),i=Wn("removeMovableViewContext",(()=>{}));let a,s,l=tn(1),c=tn(1),u=tn(!1),d=tn(0),f=tn(0),p=null,h=null,m=!1,g=null,v=null;const y=new Vf,b=new Vf,_={historyX:[0,0],historyY:[0,0],historyT:[0,0]},w=gi((()=>{let t=Number(e.friction);return isNaN(t)||t<=0?2:t})),x=new Hf(1,w.value);Yn((()=>e.disabled),(()=>{W()}));const{_updateOldScale:S,_endScale:C,_setScale:T,scaleValueSync:k,_updateBoundary:E,_updateOffset:O,_updateWH:$,_scaleOffset:P,minX:A,minY:M,maxX:L,maxY:B,FAandSFACancel:N,_getLimitXY:I,_setTransform:R,_revise:j,dampingNumber:F,xMove:D,yMove:V,xSync:H,ySync:z,_STD:q}=function(e,t,n,o,r,i,a,s,l,c){const u=gi((()=>{let t=Number(e.scaleMin);return isNaN(t)?.5:t})),d=gi((()=>{let t=Number(e.scaleMax);return isNaN(t)?10:t})),f=tn(Number(e.scaleValue)||1);Yn(f,(e=>{R(e)})),Yn(u,(()=>{I()})),Yn(d,(()=>{I()})),Yn((()=>e.scaleValue),(e=>{f.value=Number(e)||0}));const{_updateBoundary:p,_updateOffset:h,_updateWH:m,_scaleOffset:g,minX:v,minY:y,maxX:b,maxY:_}=function(e,t,n){const o=Wn("movableAreaWidth",tn(0)),r=Wn("movableAreaHeight",tn(0)),i=Wn("movableAreaRootRef"),a={x:0,y:0},s={x:0,y:0},l=tn(0),c=tn(0),u=tn(0),d=tn(0),f=tn(0),p=tn(0);function h(){let e=0-a.x+s.x,t=o.value-l.value-a.x-s.x;u.value=Math.min(e,t),f.value=Math.max(e,t);let n=0-a.y+s.y,i=r.value-c.value-a.y-s.y;d.value=Math.min(n,i),p.value=Math.max(n,i)}function m(){a.x=Kf(e.value,i.value),a.y=Gf(e.value,i.value)}function g(o){o=o||t.value,o=n(o);let r=e.value.getBoundingClientRect();c.value=r.height/t.value,l.value=r.width/t.value;let i=c.value*o,a=l.value*o;s.x=(a-l.value)/2,s.y=(i-c.value)/2}return{_updateBoundary:h,_updateOffset:m,_updateWH:g,_scaleOffset:s,minX:u,minY:d,maxX:f,maxY:p}}(t,o,N),{FAandSFACancel:w,_getLimitXY:x,_animationTo:S,_setTransform:C,_revise:T,dampingNumber:k,xMove:E,yMove:O,xSync:$,ySync:P,_STD:A}=function(e,t,n,o,r,i,a,s,l,c,u,d,f,p){const h=gi((()=>{let e=Number(t.damping);return isNaN(e)?20:e})),m=gi((()=>"all"===t.direction||"horizontal"===t.direction)),g=gi((()=>"all"===t.direction||"vertical"===t.direction)),v=tn(Jf(t.x)),y=tn(Jf(t.y));Yn((()=>t.x),(e=>{v.value=Jf(e)})),Yn((()=>t.y),(e=>{y.value=Jf(e)})),Yn(v,(e=>{T(e)})),Yn(y,(e=>{k(e)}));const b=new qf(1,9*Math.pow(h.value,2)/40,h.value);function _(e,t){let n=!1;return e>r.value?(e=r.value,n=!0):ei.value?(t=i.value,n=!0):t1?"htouchmove":"vtouchmove"),D.value&&(n=t.detail.dx+a,_.historyX.shift(),_.historyX.push(n),V.value||null!==g||(g=Math.abs(t.detail.dx/t.detail.dy)<1)),V.value&&(o=t.detail.dy+s,_.historyY.shift(),_.historyY.push(o),D.value||null!==g||(g=Math.abs(t.detail.dy/t.detail.dx)<1)),_.historyT.shift(),_.historyT.push(t.detail.timeStamp),!g){t.preventDefault();let r="touch";nL.value&&(e.outOfBounds?(r="touch-out-of-bounds",n=L.value+y.x(n-L.value)):n=L.value),oB.value&&(e.outOfBounds?(r="touch-out-of-bounds",o=B.value+b.x(o-B.value)):o=B.value),Yf((function(){R(n,o,l.value,r)}))}}}function X(){if(!u.value&&!e.disabled&&m&&(n.value.style.willChange="auto",m=!1,!g&&!j("out-of-bounds")&&e.inertia)){const e=1e3*(_.historyX[1]-_.historyX[0])/(_.historyT[1]-_.historyT[0]),t=1e3*(_.historyY[1]-_.historyY[0])/(_.historyT[1]-_.historyT[0]),n=d.value,o=f.value;x.setV(e,t),x.setS(n,o);const r=x.delta().x,i=x.delta().y;let a=r+n,s=i+o;aL.value&&(a=L.value,s=o+(L.value-n)*i/r),sB.value&&(s=B.value,a=n+(B.value-o)*r/i),x.setEnd(a,s),h=Zf(x,(function(){let e=x.s(),t=e.x,n=e.y;R(t,n,l.value,"friction")}),(function(){h.cancel()}))}e.outOfBounds||e.inertia||N()}function Y(){if(!o.value)return;N();let t=e.scale?k.value:1;O(),$(t),E();let n=I(H.value+P.x,z.value+P.y),r=n.x,i=n.y;R(r,i,t,"",!0),S(t)}return Po((()=>{jf(n.value,(e=>{switch(e.detail.state){case"start":W();break;case"move":U(e);break;case"end":X()}})),Y(),x.reconfigure(1,w.value),q.reconfigure(1,9*Math.pow(F.value,2)/40,F.value),n.value.style.transformOrigin="center";const e={rootRef:n,setParent:Y,_endScale:C,_setScale:T};r(e),Bo((()=>{i(e)}))})),Bo((()=>{N()})),{setParent:Y}}(e,r,o);return()=>Kr("uni-movable-view",{ref:o},[Kr(tf,{onResize:i},null,8,["onResize"]),t.default&&t.default()],512)}});let Xf=!1;function Yf(e){Xf||(Xf=!0,requestAnimationFrame((function(){e(),Xf=!1})))}function Kf(e,t){if(e===t)return 0;let n=e.offsetLeft;return e.offsetParent?n+=Kf(e.offsetParent,t):0}function Gf(e,t){if(e===t)return 0;let n=e.offsetTop;return e.offsetParent?n+=Gf(e.offsetParent,t):0}function Zf(e,t,n){let o={id:0,cancelled:!1};return function e(t,n,o,r){if(!t||!t.cancelled){o(n);let i=n.done();i||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,r))),i&&r&&r(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}function Jf(e){return/\d+[ur]px$/i.test(e)?rd(parseFloat(e)):Number(e)||0}const Qf=["navigate","redirect","switchTab","reLaunch","navigateBack"],ep=["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"],tp=["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"],np={hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator:e=>Boolean(~Qf.indexOf(e))},delta:{type:Number,default:1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:600},exists:{type:String,default:""},hoverStopPropagation:{type:Boolean,default:!1},animationType:{type:String,default:"",validator:e=>!e||ep.concat(tp).includes(e)},animationDuration:{type:[String,Number],default:300}};c({},np,{renderLink:{type:Boolean,default:!0}});const op="#007aff",rp="backwards",ip=Uc({name:"Progress",props:{percent:{type:[Number,String],default:0,validator:e=>!isNaN(parseFloat(e))},fontSize:{type:[String,Number],default:16},showInfo:{type:[Boolean,String],default:!1},strokeWidth:{type:[Number,String],default:6,validator:e=>!isNaN(parseFloat(e))},color:{type:String,default:op},activeColor:{type:String,default:op},backgroundColor:{type:String,default:"#EBEBEB"},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:rp},duration:{type:[Number,String],default:30,validator:e=>!isNaN(parseFloat(e))},borderRadius:{type:[Number,String],default:0}},setup(e){const t=tn(null),n=function(e){const t=tn(0),n=gi((()=>`background-color: ${e.backgroundColor}; height: ${e.strokeWidth}px;`)),o=gi((()=>{const n=e.color!==op&&e.activeColor===op?e.color:e.activeColor;return`width: ${t.value}%;background-color: ${n}`})),r=gi((()=>{let t=parseFloat(e.percent);return t<0&&(t=0),t>100&&(t=100),t}));return Vt({outerBarStyle:n,innerBarStyle:o,realPercent:r,currentPercent:t,strokeTimer:0,lastPercent:0})}(e);return ap(n,e),Yn((()=>n.realPercent),((t,o)=>{n.strokeTimer&&clearInterval(n.strokeTimer),n.lastPercent=o||0,ap(n,e)})),()=>{const{showInfo:o}=e,{outerBarStyle:r,innerBarStyle:i,currentPercent:a}=n;return Kr("uni-progress",{class:"uni-progress",ref:t},[Kr("div",{style:r,class:"uni-progress-bar"},[Kr("div",{style:i,class:"uni-progress-inner-bar"},null,4)],4),o?Kr("p",{class:"uni-progress-info"},[a+"%"]):""],512)}}});function ap(e,t){t.active?(e.currentPercent=t.activeMode===rp?0:e.lastPercent,e.strokeTimer=setInterval((()=>{e.currentPercent+1>e.realPercent?(e.currentPercent=e.realPercent,e.strokeTimer&&clearInterval(e.strokeTimer)):e.currentPercent+=1}),parseFloat(t.duration))):e.currentPercent=e.realPercent}function sp(e,t,n,o,r,i){function a(){c&&(clearTimeout(c),c=null)}let s,l,c=null,u=!0,d=0,f=1,p=null,h=!1,m=0,g="";const v=gi((()=>n.value.length>t.displayMultipleItems)),y=gi((()=>e.circular&&v.value));function b(r){Math.floor(2*d)===Math.floor(2*r)&&Math.ceil(2*d)===Math.ceil(2*r)||y.value&&function(o){if(!u)for(let r=n.value,i=r.length,a=o+t.displayMultipleItems,s=0;s=c.length&&(r-=c.length),r=s%1>.5||s<0?r-1:r,i("transition",{},{dx:e.vertical?0:r*l.offsetWidth,dy:e.vertical?r*l.offsetHeight:0})}function _(e){const o=n.value.length;if(!o)return-1;const r=(Math.round(e)%o+o)%o;if(y.value){if(o<=t.displayMultipleItems)return 0}else if(r>o-t.displayMultipleItems)return o-t.displayMultipleItems;return r}function w(){p=null}function x(){if(!p)return void(h=!1);const e=p,o=e.toPos,r=e.acc,a=e.endTime,c=e.source,u=a-Date.now();if(u<=0){b(o),p=null,h=!1,s=null;const e=n.value[t.current];if(e){const n=e.getItemId();i("animationfinish",{},{current:t.current,currentItemId:n,source:c})}return}b(o+r*u*u/2),l=requestAnimationFrame(x)}function S(e,o,r){w();const i=t.duration,a=n.value.length;let s=d;if(y.value)if(r<0){for(;se;)s-=a}else if(r>0){for(;s>e;)s-=a;for(;s+ae;)s-=a;s+a-ee.current,()=>e.currentItemId,()=>[...n.value]],(()=>{let o=-1;if(e.currentItemId)for(let t=0,r=n.value;te.vertical,()=>y.value,()=>t.displayMultipleItems,()=>[...n.value]],(function(){a(),p&&(b(p.toPos),p=null);const r=n.value;for(let t=0;t0&&f<1||(f=1)}const s=d;d=-2;const l=t.current;l>=0?(u=!1,t.userTracking?(b(s+l-m),m=l):(b(l),e.autoplay&&C())):(u=!0,b(-t.displayMultipleItems-1))})),Yn((()=>t.interval),(()=>{c&&(a(),C())})),Yn((()=>t.current),((e,o)=>{!function(e,o){const r=g;g="";const a=n.value;if(!r){const t=a.length;S(e,"",y.value&&o+(t-e)%t>t/2?1:0)}const s=a[e];if(s){const e=t.currentItemId=s.getItemId();i("change",{},{current:t.current,currentItemId:e,source:r})}}(e,o),r("update:current",e)})),Yn((()=>t.currentItemId),(e=>{r("update:currentItemId",e)})),Yn((()=>e.autoplay&&!t.userTracking),T),T(e.autoplay&&!t.userTracking),Po((()=>{let r=!1,i=0,s=0;function l(e){t.userTracking=!1;const n=i/Math.abs(i);let o=0;!e&&Math.abs(i)>.2&&(o=.5*n);const r=_(d+o);e?b(m):(g="touch",t.current=r,S(r,"touch",0!==o?o:0===r&&y.value&&d>=1?1:0))}jf(o.value,(c=>{if(!e.disableTouch&&!u){if("start"===c.detail.state)return t.userTracking=!0,r=!1,a(),m=d,i=0,s=Date.now(),void w();if("end"===c.detail.state)return l(!1);if("cancel"===c.detail.state)return l(!0);if(t.userTracking){if(!r){r=!0;const n=Math.abs(c.detail.dx),o=Math.abs(c.detail.dy);if((n>=o&&e.vertical||n<=o&&!e.vertical)&&(t.userTracking=!1),!t.userTracking)return void(e.autoplay&&C())}return function(r){const a=s;s=Date.now();const l=n.value.length-t.displayMultipleItems;function c(e){return.5-.25/(e+.5)}function u(e,t){let n=m+e;i=.6*i+.4*t,y.value||(n<0||n>l)&&(n<0?n=-c(-n):n>l&&(n=l+c(n-l)),i=0),b(n)}const d=s-a||1,f=o.value;e.vertical?u(-r.dy/f.offsetHeight,-r.ddy/d):u(-r.dx/f.offsetWidth,-r.ddx/d)}(c.detail),!1}}}))})),Bo((()=>{a(),cancelAnimationFrame(l)})),{onSwiperDotClick:function(e){S(t.current=e,g="click",y.value?1:0)},circularEnabled:y,swiperEnabled:v}}const lp=Uc({name:"Swiper",props:{indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1},navigation:{type:[Boolean,String],default:!1},navigationColor:{type:String,default:"#fff"},navigationActiveColor:{type:String,default:"rgba(53, 53, 53, 0.6)"}},emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,{slots:t,emit:n}){const o=tn(null),r=Kc(o,n),i=tn(null),a=tn(null),s=function(e){return Vt({interval:gi((()=>{const t=Number(e.interval);return isNaN(t)?5e3:t})),duration:gi((()=>{const t=Number(e.duration);return isNaN(t)?500:t})),displayMultipleItems:gi((()=>{const t=Math.round(e.displayMultipleItems);return isNaN(t)?1:t})),current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1})}(e),l=gi((()=>{let t={};return(e.nextMargin||e.previousMargin)&&(t=e.vertical?{left:0,right:0,top:nc(e.previousMargin,!0),bottom:nc(e.nextMargin,!0)}:{top:0,bottom:0,left:nc(e.previousMargin,!0),right:nc(e.nextMargin,!0)}),t})),c=gi((()=>{const t=Math.abs(100/s.displayMultipleItems)+"%";return{width:e.vertical?"100%":t,height:e.vertical?t:"100%"}}));let u=[];const d=[],f=tn([]);function p(){const e=[];for(let t=0;tn===e.rootRef.value));o&&e.push(Kt(o))}f.value=e}qn("addSwiperContext",(function(e){d.push(e),p()}));qn("removeSwiperContext",(function(e){const t=d.indexOf(e);t>=0&&(d.splice(t,1),p())}));const{onSwiperDotClick:h,circularEnabled:m,swiperEnabled:g}=sp(e,s,f,a,n,r);let v=()=>null;return v=cp(o,e,s,h,f,m,g),()=>{const n=t.default&&t.default();return u=Mf(n),Kr("uni-swiper",{ref:o},[Kr("div",{ref:i,class:"uni-swiper-wrapper"},[Kr("div",{class:"uni-swiper-slides",style:l.value},[Kr("div",{ref:a,class:"uni-swiper-slide-frame",style:c.value},[n],4)],4),e.indicatorDots&&Kr("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[f.value.map(((t,n,o)=>Kr("div",{onClick:()=>h(n),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":n=s.current||n{let s=!1,l=!1,u=!1,d=tn(!1);function f(e,n){const o=e.currentTarget;o&&(o.style.backgroundColor="over"===n?t.navigationActiveColor:"")}Un((()=>{s="auto"===t.navigation,d.value=!0!==t.navigation||s,b()})),Un((()=>{const e=r.value.length,t=!i.value;l=0===n.current&&t,u=n.current===e-1&&t||t&&n.current+n.displayMultipleItems>=e,a.value||(l=!0,u=!0,s&&(d.value=!0))}));const p={onMouseover:e=>f(e,"over"),onMouseout:e=>f(e,"out")};function h(e,t,a){if(e.stopPropagation(),a)return;const s=r.value.length;let l=n.current;switch(t){case"prev":l--,l<0&&i.value&&(l=s-1);break;case"next":l++,l>=s&&i.value&&(l=0)}o(l)}const m=()=>ac(ic,t.navigationColor,26);let g;const v=n=>{clearTimeout(g);const{clientX:o,clientY:r}=n,{left:i,right:a,top:s,bottom:l,width:c,height:u}=e.value.getBoundingClientRect();let f=!1;if(f=t.vertical?!(r-s{d.value=f}),300);d.value=f},y=()=>{d.value=!0};function b(){e.value&&(e.value.removeEventListener("mousemove",v),e.value.removeEventListener("mouseleave",y),s&&(e.value.addEventListener("mousemove",v),e.value.addEventListener("mouseleave",y)))}return Po(b),function(){const e={"uni-swiper-navigation-hide":d.value,"uni-swiper-navigation-vertical":t.vertical};return t.navigation?Kr(Ar,null,[Kr("div",ni({class:["uni-swiper-navigation uni-swiper-navigation-prev",c({"uni-swiper-navigation-disabled":l},e)],onClick:e=>h(e,"prev",l)},p),[m()],16,["onClick"]),Kr("div",ni({class:["uni-swiper-navigation uni-swiper-navigation-next",c({"uni-swiper-navigation-disabled":u},e)],onClick:e=>h(e,"next",u)},p),[m()],16,["onClick"])]):null}},up=Uc({name:"SwiperItem",props:{itemId:{type:String,default:""}},setup(e,{slots:t}){const n=tn(null),o={rootRef:n,getItemId:()=>e.itemId,getBoundingClientRect:()=>n.value.getBoundingClientRect(),updatePosition(e,t){const o=t?"0":100*e+"%",r=t?100*e+"%":"0",i=n.value,a=`translate(${o},${r}) translateZ(0)`;i&&(i.style.webkitTransform=a,i.style.transform=a)}};return Po((()=>{const e=Wn("addSwiperContext");e&&e(o)})),Bo((()=>{const e=Wn("removeSwiperContext");e&&e(o)})),()=>Kr("uni-swiper-item",{ref:n,style:{position:"absolute",width:"100%",height:"100%"}},[t.default&&t.default()],512)}}),dp=Uc({name:"Switch",props:{name:{type:String,default:""},checked:{type:[Boolean,String],default:!1},type:{type:String,default:"switch"},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:""}},emits:["change"],setup(e,{emit:t}){const n=tn(null),o=tn(e.checked),r=function(e,t){const n=Wn(Qc,!1),o=Wn(tu,!1),r={submit:()=>{const n=["",null];return e.name&&(n[0]=e.name,n[1]=t.value),n},reset:()=>{t.value=!1}};n&&(n.addField(r),Bo((()=>{n.removeField(r)})));return o}(e,o),i=Kc(n,t);Yn((()=>e.checked),(e=>{o.value=e}));const a=t=>{e.disabled||(o.value=!o.value,i("change",t,{value:o.value}))};return r&&(r.addHandler(a),Lo((()=>{r.removeHandler(a)}))),nu(e,{"label-click":a}),()=>{const{color:t,type:r}=e,i=Jc(e,"disabled"),s={};let l;return t&&o.value&&(s.backgroundColor=t,s.borderColor=t),l=o.value,Kr("uni-switch",ni({id:e.id,ref:n},i,{onClick:a}),[Kr("div",{class:"uni-switch-wrapper"},[Fo(Kr("div",{class:["uni-switch-input",[o.value?"uni-switch-input-checked":""]],style:s},null,6),[[ba,"switch"===r]]),Fo(Kr("div",{class:"uni-checkbox-input"},[l?ac(oc,e.color,22):""],512),[[ba,"checkbox"===r]])])],16,["id","onClick"])}}});const fp={ensp:" ",emsp:" ",nbsp:" "};function pp(e,t){return function(e,{space:t,decode:n}){let o="",r=!1;for(let i of e)t&&fp[t]&&" "===i&&(i=fp[t]),r?(o+="n"===i?"\n":"\\"===i?"\\":"\\"+i,r=!1):"\\"===i?r=!0:o+=i;return n?o.replace(/ /g,fp.nbsp).replace(/ /g,fp.ensp).replace(/ /g,fp.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"):o}(e,t).split("\n")}const hp=Uc({name:"Text",props:{selectable:{type:[Boolean,String],default:!1},space:{type:String,default:""},decode:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=tn(null);return()=>{const o=[];return t.default&&t.default().forEach((t=>{if(8&t.shapeFlag&&t.type!==Lr){const n=pp(t.children,{space:e.space,decode:e.decode}),r=n.length-1;n.forEach(((e,t)=>{(0!==t||e)&&o.push(Zr(e)),t!==r&&o.push(Kr("br"))}))}else o.push(t)})),Kr("uni-text",{ref:n,selectable:!!e.selectable||null},[Kr("span",null,o)],8,["selectable"])}}}),mp=c({},Sf,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator:e=>vp.concat("return").includes(e)}});let gp=!1;const vp=["done","go","next","search","send"];const yp=Uc({name:"Textarea",props:mp,emits:["confirm","linechange",...Cf],setup(e,{emit:t,expose:n}){const o=tn(null),r=tn(null),{fieldRef:i,state:a,scopedAttrsState:s,fixDisabledColor:l,trigger:c}=Ef(e,o,t),u=gi((()=>a.value.split("\n"))),d=gi((()=>vp.includes(e.confirmType))),f=tn(0),p=tn(null);function h({height:e}){f.value=e}function m(e){"Enter"===e.key&&d.value&&e.preventDefault()}function g(t){if("Enter"===t.key&&d.value){!function(e){c("confirm",e,{value:a.value})}(t);const n=t.target;!e.confirmHold&&n.blur()}}return Yn((()=>f.value),(t=>{const n=o.value,i=p.value,a=r.value;let s=parseFloat(getComputedStyle(n).lineHeight);isNaN(s)&&(s=i.offsetHeight);var l=Math.round(t/s);c("linechange",{},{height:t,heightRpx:750/window.innerWidth*t,lineCount:l}),e.autoHeight&&(n.style.height="auto",a.style.height=t+"px")})),function(){const e="(prefers-color-scheme: dark)";gp=0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")&&window.matchMedia(e).media!==e}(),n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),a.value=e.value}}),()=>{let t=e.disabled&&l?Kr("textarea",{key:"disabled-textarea",ref:i,value:a.value,tabindex:"-1",readonly:!!e.disabled,maxlength:a.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":gp},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onFocus:e=>e.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):Kr("textarea",{key:"textarea",ref:i,value:a.value,disabled:!!e.disabled,maxlength:a.maxlength,enterkeyhint:e.confirmType,inputmode:e.inputmode,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":gp},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onKeydown:m,onKeyup:g},null,46,["value","disabled","maxlength","enterkeyhint","inputmode","onKeydown","onKeyup"]);return Kr("uni-textarea",{ref:o},[Kr("div",{ref:r,class:"uni-textarea-wrapper"},[Fo(Kr("div",ni(s.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[ba,!a.value.length]]),Kr("div",{ref:p,class:"uni-textarea-line"},[" "],512),Kr("div",{class:"uni-textarea-compute"},[u.value.map((e=>Kr("div",null,[e.trim()?e:"."]))),Kr(tf,{initial:!0,onResize:h},null,8,["initial","onResize"])]),"search"===e.confirmType?Kr("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[t],40,["onSubmit"]):t],512)],512)}}}),bp=Uc({name:"View",props:c({},Gc),setup(e,{slots:t}){const n=tn(null),{hovering:o,binding:r}=Zc(e);return()=>{const i=e.hoverClass;return i&&"none"!==i?Kr("uni-view",ni({class:o.value?i:"",ref:n},r),[t.default&&t.default()],16):Kr("uni-view",{ref:n},[t.default&&t.default()],512)}}});function _p(e,t,n,o){v(t)&&Eo(e,t.bind(n),o)}function wp(e,t,n){var o;const r=e.mpType||n.$mpType;if(r&&"component"!==r&&(Object.keys(e).forEach((o=>{if(function(e,t,n=!0){return!(n&&!v(t))&&(ke.indexOf(e)>-1||0===e.indexOf("on"))}(o,e[o],!1)){const r=e[o];p(r)?r.forEach((e=>_p(o,e,n,t))):_p(o,r,n,t)}})),"page"===r)){t.__isVisible=!0;try{hc(n,"onLoad",t.attrs.__pageQuery),delete t.attrs.__pageQuery,"preloadPage"!==(null==(o=n.$page)?void 0:o.openType)&&hc(n,"onShow")}catch(i){console.error(i.message+"\n"+i.stack)}}}function xp(e,t,n){wp(e,t,n)}function Sp(e,t,n){return e[t]=n}function Cp(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function Tp(e){return function(t,n,o){if(!n)throw t;const r=e._instance;if(!r||!r.proxy)throw t;hc(r.proxy,"onError",t)}}function kp(e,t){return e?[...new Set([].concat(e,t))]:t}function Ep(e){const t=e._context.config;var n;t.errorHandler=Oe(e,Tp),n=t.optionMergeStrategies,ke.forEach((e=>{n[e]=kp}));const o=t.globalProperties;o.$set=Sp,o.$applyOptions=xp,o.$callMethod=Cp,function(e){Ee.forEach((t=>t(e)))}(e)}const Op=ec("upm");function $p(){return Wn(Op)}function Pp(e){const t=function(e){return Vt(function(e){{const{navigationBar:t}=e,{titleSize:n,titleColor:o,backgroundColor:r}=t;t.titleText=t.titleText||"",t.type=t.type||"default",t.titleSize=n||"16px",t.titleColor=o||"#000000",t.backgroundColor=r||"#F8F8F8"}if(history.state){const t=history.state.__type__;"redirectTo"!==t&&"reLaunch"!==t||0!==Vp().length||(e.isEntry=!0,e.isQuit=!0)}return e}(JSON.parse(JSON.stringify(pc(fl().meta,e)))))}(e);return qn(Op,t),t}function Ap(){return fl()}function Mp(){return history.state&&history.state.__id__||1}const Lp=window.CSS&&window.CSS.supports;function Bp(e){return Lp&&(Lp(e)||Lp.apply(window.CSS,e.split(":")))}const Np=Bp("top:env(a)"),Ip=Bp("top:constant(a)"),Rp=(()=>Np?"env":Ip?"constant":"")();function jp(e){let t=0;var n,o;"custom"!==e.navigationBar.style&&["default","float"].indexOf(e.navigationBar.type)>-1&&(t=44),Ql({"--window-top":(o=t,Rp?`calc(${o}px + ${Rp}(safe-area-inset-top))`:`${o}px`),"--window-bottom":(n=0,Rp?`calc(${n}px + ${Rp}(safe-area-inset-bottom))`:`${n}px`)})}const Fp=new Map;function Dp(){return Fp}function Vp(){const e=[],t=Fp.values();for(const n of t)n.$.__isTabBar?n.$.__isActive&&e.push(n):e.push(n);return e}function Hp(e,t=!0){const n=Fp.get(e);n.$.__isUnload=!0,hc(n,"onUnload"),Fp.delete(e),t&&function(e){const t=Xp.get(e);t&&(Xp.delete(e),Yp.pruneCacheEntry(t))}(e)}let zp=Mp();function qp(e){const t=$p();let n=e.fullPath;return e.meta.isEntry&&-1===n.indexOf(e.meta.route)&&(n="/"+e.meta.route+n.replace("/","")),function(e,t,n,o,r,i){const{id:a,route:s}=o,l=Me(o.navigationBar,__uniConfig.themeConfig,i).titleColor;return{id:a,path:ue(s),route:s,fullPath:t,options:n,meta:o,openType:e,eventChannel:r,statusBarStyle:"#ffffff"===l?"light":"dark"}}("navigateTo",n,{},t)}function Wp(e){const t=qp(e.$route);!function(e,t){e.route=t.route,e.$vm=e,e.$page=t,e.$mpType="page",t.meta.isTabBar&&(e.$.__isTabBar=!0,e.$.__isActive=!0)}(e,t),Fp.set(Up(t.path,t.id),e)}function Up(e,t){return e+"$$"+t}const Xp=new Map,Yp={get:e=>Xp.get(e),set(e,t){!function(e){const t=parseInt(e.split("$$")[1]);if(!t)return;Yp.forEach(((e,n)=>{const o=parseInt(n.split("$$")[1]);o&&o>t&&(Yp.delete(n),Yp.pruneCacheEntry(e),Sn((()=>{Fp.forEach(((e,t)=>{e.$.isUnmounted&&Fp.delete(t)}))})))}))}(e),Xp.set(e,t)},delete(e){Xp.get(e)&&Xp.delete(e)},forEach(e){Xp.forEach(e)}};function Kp(e,t){!function(e){const t=Zp(e),{body:n}=document;Jp&&n.removeAttribute(Jp),t&&n.setAttribute(t,""),Jp=t}(e),jp(t),function(e){{const t="nvue-dir-"+__uniConfig.nvue["flex-direction"];e.isNVue?(document.body.setAttribute("nvue",""),document.body.setAttribute(t,"")):(document.body.removeAttribute("nvue"),document.body.removeAttribute(t))}}(t),function(e,t){document.removeEventListener("touchmove",mc),Qp&&document.removeEventListener("scroll",Qp);if(t.disableScroll)return document.addEventListener("touchmove",mc);const{onPageScroll:n,onReachBottom:o}=e,r="transparent"===t.navigationBar.type;if(!n&&!o&&!r)return;const i={},a=e.proxy.$page.id;(n||r)&&(i.onPageScroll=function(e,t,n){return o=>{t&&Ym.publishHandler("onPageScroll",{scrollTop:o},e),n&&Ym.emit(e+".onPageScroll",{scrollTop:o})}}(a,n,r));o&&(i.onReachBottomDistance=t.onReachBottomDistance||50,i.onReachBottom=()=>Ym.publishHandler("onReachBottom",{},a));Qp=yc(i),requestAnimationFrame((()=>document.addEventListener("scroll",Qp)))}(e,t)}function Gp(e){const t=Zp(e);t&&function(e){const t=document.querySelector("uni-page-body");t&&t.setAttribute(e,"")}(t)}function Zp(e){return e.type.__scopeId}let Jp,Qp;function eh(e){const t=cl({history:nh(),strict:!!__uniConfig.router.strict,routes:__uniRoutes,scrollBehavior:th});e.router=t,e.use(t)}const th=(e,t,n)=>{if(n)return n};function nh(){let{routerBase:e}=__uniConfig.router;"/"===e&&(e="");const t=(n=e,(n=location.host?n||location.pathname+location.search:"").includes("#")||(n+="#"),is(n));var n;return t.listen(((e,t,n)=>{"back"===n.direction&&function(e=1){const t=Vp(),n=t.length-1,o=n-e;for(let r=n;r>o;r--){const e=t[r].$page;Hp(Up(e.path,e.id),!1)}}(Math.abs(n.delta))})),t}const oh={install(e){Ep(e),Pc(e),Vc(e),e.config.warnHandler||(e.config.warnHandler=rh),eh(e)}};function rh(e,t,n){if(t){if("PageMetaHead"===t.$.type.name)return;const e=t.$.parent;if(e&&"PageMeta"===e.type.name)return}const o=[`[Vue warn]: ${e}`];n.length&&o.push("\n",n),console.warn(...o)}const ih={class:"uni-async-loading"},ah=Kr("i",{class:"uni-loading"},null,-1),sh=Xc({name:"AsyncLoading",render:()=>(Rr(),Hr("div",ih,[ah]))});function lh(){window.location.reload()}const ch=Xc({name:"AsyncError",setup(){vl();const{t:e}=ml();return()=>Kr("div",{class:"uni-async-error",onClick:lh},[e("uni.async.error")],8,["onClick"])}});let uh;function dh(){return uh}function fh(e){uh=e,Object.defineProperty(uh.$.ctx,"$children",{get:()=>Vp().map((e=>e.$vm))});const t=uh.$.appContext.app;t.component(sh.name)||t.component(sh.name,sh),t.component(ch.name)||t.component(ch.name,ch),function(e){e.$vm=e,e.$mpType="app";const t=tn(ml().getLocale());Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}(uh),function(e,t){const n=e.$options||{};n.globalData=c(n.globalData||{},t),Object.defineProperty(e,"globalData",{get:()=>n.globalData,set(e){n.globalData=e}})}(uh),Fc(),Rl()}function ph(e,{clone:t,init:n,setup:o,before:r}){t&&(e=c({},e)),r&&r(e);const i=e.setup;return e.setup=(e,t)=>{const r=si();n(r.proxy);const a=o(r);if(i)return i(a||e,t)},e}function hh(e,t){return e&&(e.__esModule||"Module"===e[Symbol.toStringTag])?ph(e.default,t):ph(e,t)}function mh(e){return hh(e,{clone:!0,init:Wp,setup(e){e.$pageInstance=e;const t=Ap(),n=be(t.query);e.attrs.__pageQuery=n,e.proxy.$page.options=n,e.proxy.options=n;const o=$p();var r,i,a;return $o((()=>{Kp(e,o)})),Po((()=>{Gp(e);const{onReady:n}=e;n&&N(n),bh(t)})),_o((()=>{if(!e.__isVisible){Kp(e,o),e.__isVisible=!0;const{onShow:n}=e;n&&N(n),Sn((()=>{bh(t)}))}}),"ba",r),function(e,t){_o(e,"bda",t)}((()=>{if(e.__isVisible&&!e.__isUnload){e.__isVisible=!1;const{onHide:t}=e;t&&N(t)}})),i=o.id,Ym.subscribe(Tl(i,"invokeViewApi"),a?a(kl):kl),Lo((()=>{!function(e){Ym.unsubscribe(Tl(e,"invokeViewApi")),Object.keys(Cl).forEach((t=>{0===t.indexOf(e+".")&&delete Cl[t]}))}(o.id)})),n}})}function gh(){const{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}=Mh(),r=90===Math.abs(Number(window.orientation))?"landscape":"portrait";Km.emit("onResize",{deviceOrientation:r,size:{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}})}function vh(e){C(e.data)&&"WEB_INVOKE_APPSERVICE"===e.data.type&&Km.emit("onWebInvokeAppService",e.data.data,e.data.pageId)}function yh(){const{emit:e}=Km;"visible"===document.visibilityState?e("onAppEnterForeground",c({},ef)):e("onAppEnterBackground")}function bh(e){const{tabBarText:t,tabBarIndex:n,route:o}=e.meta;t&&hc("onTabItemTap",{index:n,text:t,pagePath:o})}const _h=Ku("makePhoneCall",(({phoneNumber:e},{resolve:t})=>(window.location.href=`tel:${e}`,t()))),wh=navigator.cookieEnabled&&(window.localStorage||window.sessionStorage)||{};let xh;function Sh(){if(xh=xh||wh.__DC_STAT_UUID,!xh){xh=Date.now()+""+Math.floor(1e7*Math.random());try{wh.__DC_STAT_UUID=xh}catch(e){}}return xh}function Ch(){if(!0!==__uniConfig.darkmode)return y(__uniConfig.darkmode)?__uniConfig.darkmode:"light";try{return window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}catch(e){return"light"}}function Th(){let e,t="0",n="",o="phone";const r=navigator.language;if(uu){e="iOS";const o=lu.match(/OS\s([\w_]+)\slike/);o&&(t=o[1].replace(/_/g,"."));const r=lu.match(/\(([a-zA-Z]+);/);r&&(n=r[1])}else if(cu){e="Android";const o=lu.match(/Android[\s/]([\w\.]+)[;\s]/);o&&(t=o[1]);const r=lu.match(/\((.+?)\)/),i=r?r[1].split(";"):lu.split(" "),a=[/\bAndroid\b/i,/\bLinux\b/i,/\bU\b/i,/^\s?[a-z][a-z]$/i,/^\s?[a-z][a-z]-[a-z][a-z]$/i,/\bwv\b/i,/\/[\d\.,]+$/,/^\s?[\d\.,]+$/,/\bBrowser\b/i,/\bMobile\b/i];for(let e=0;e0){n=t.split("Build")[0].trim();break}let o;for(let e=0;e-1&&e.indexOf("MSIE")>-1,n=e.indexOf("Edge")>-1&&!t,o=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1;if(t){new RegExp("MSIE (\\d+\\.\\d+);").test(e);const t=parseFloat(RegExp.$1);return t>6?t:6}return n?-1:o?11:-1}());if("-1"!==l)s="IE";else{const e=["Version","Firefox","Chrome","Edge{0,1}"],t=["Safari","Firefox","Chrome","Edge"];for(let n=0;n{const e=window.devicePixelRatio,t=mu(),n=gu(t),o=vu(t,n),r=function(e,t){return e?Math[t?"min":"max"](screen.height,screen.width):screen.height}(t,n),i=yu(o);let a=window.innerHeight;const s=Yl.top,l={left:Yl.left,right:i-Yl.right,top:Yl.top,bottom:a-Yl.bottom,width:i-Yl.left-Yl.right,height:a-Yl.top-Yl.bottom},{top:c,bottom:u}=function(){const e=document.documentElement.style,t=Jl(),n=Zl(e,"--window-bottom"),o=Zl(e,"--window-left"),r=Zl(e,"--window-right"),i=Zl(e,"--top-window-height");return{top:t,bottom:n?n+Yl.bottom:0,left:o?o+Yl.left:0,right:r?r+Yl.right:0,topWindowHeight:i||0}}();return a-=c,a-=u,{windowTop:c,windowBottom:u,windowWidth:i,windowHeight:a,pixelRatio:e,screenWidth:o,screenHeight:r,statusBarHeight:s,safeArea:l,safeAreaInsets:{top:Yl.top,right:Yl.right,bottom:Yl.bottom,left:Yl.left},screenTop:r-a}}));let Eh,Oh=!0;function $h(){Oh&&(Eh=Th())}const Ph=Yu(0,(()=>{$h();const{deviceBrand:e,deviceModel:t,brand:n,model:o,platform:r,system:i,deviceOrientation:a,deviceType:s}=Eh;return{brand:n,deviceBrand:e,deviceModel:t,devicePixelRatio:window.devicePixelRatio,deviceId:Sh(),deviceOrientation:a,deviceType:s,model:o,platform:r,system:i}})),Ah=Yu(0,(()=>{$h();const{theme:e,language:t,browserName:n,browserVersion:o}=Eh;return{appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:fd?fd():t,enableDebug:!1,hostSDKVersion:void 0,hostPackageName:void 0,hostFontSizeSetting:void 0,hostName:n,hostVersion:o,hostTheme:e,hostLanguage:t,language:t,SDKVersion:"",theme:e,version:""}})),Mh=Yu(0,(()=>{Oh=!0,$h(),Oh=!1;const e=kh(),t=Ph(),n=Ah();Oh=!0;const{ua:o,browserName:r,browserVersion:i,osname:a,osversion:s}=Eh,l=c(e,t,n,{ua:o,browserName:r,browserVersion:i,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion,fontSizeSetting:void 0,osName:a.toLocaleLowerCase(),osVersion:s,osLanguage:void 0,osTheme:void 0});return delete l.screenTop,delete l.enableDebug,__uniConfig.darkmode||delete l.theme,function(e){let t={};return C(e)&&Object.keys(e).sort().forEach((n=>{const o=n;t[o]=e[o]})),Object.keys(t)?t:e}(l)})),Lh=Ku("getSystemInfo",((e,{resolve:t})=>t(Mh())));const Bh=Yu(0,((e,t)=>{const n=typeof t,o="string"===n?t:JSON.stringify({type:n,data:t});localStorage.setItem(e,o)}));function Nh(e){const t=localStorage&&localStorage.getItem(e);if(!y(t))throw new Error("data not found");let n=t;try{const e=function(e){const t=["object","string","number","boolean","undefined"];try{const n=y(e)?JSON.parse(e):e,o=n.type;if(t.indexOf(o)>=0){const e=Object.keys(n);if(2===e.length&&"data"in n){if(typeof n.data===o)return n.data;if("object"===o&&/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d{3}Z$/.test(n.data))return new Date(n.data)}else if(1===e.length)return""}}catch(n){}}(JSON.parse(t));void 0!==e&&(n=e)}catch(o){}return n}const Ih=Yu(0,(e=>{try{return Nh(e)}catch(t){return""}})),Rh=Yu(0,(e=>{localStorage&&localStorage.removeItem(e)})),jh=Yu(0,(()=>{localStorage&&localStorage.clear()}));const Fh=Ku("getImageInfo",(({src:e},{resolve:t,reject:n})=>{const o=new Image;o.onload=function(){t({width:o.naturalWidth,height:o.naturalHeight,path:0===e.indexOf("/")?window.location.protocol+"//"+window.location.host+e:e})},o.onerror=function(){n()},o.src=e}),0,kd),Dh={image:{jpg:"jpeg",jpe:"jpeg",pbm:"x-portable-bitmap",pgm:"x-portable-graymap",pnm:"x-portable-anymap",ppm:"x-portable-pixmap",psd:"vnd.adobe.photoshop",pic:"x-pict",rgb:"x-rgb",svg:"svg+xml",svgz:"svg+xml",tif:"tiff",xif:"vnd.xiff",wbmp:"vnd.wap.wbmp",wdp:"vnd.ms-photo",xbm:"x-xbitmap",ico:"x-icon"},video:{"3g2":"3gpp2","3gp":"3gpp",avi:"x-msvideo",f4v:"x-f4v",flv:"x-flv",jpgm:"jpm",jpgv:"jpeg",m1v:"mpeg",m2v:"mpeg",mpe:"mpeg",mpg:"mpeg",mpg4:"mpeg",m4v:"x-m4v",mkv:"x-matroska",mov:"quicktime",qt:"quicktime",movie:"x-sgi-movie",mp4v:"mp4",ogv:"ogg",smv:"x-smv",wm:"x-ms-wm",wmv:"x-ms-wmv",wmx:"x-ms-wmx",wvx:"x-ms-wvx"}};function Vh({count:e,sourceType:t,type:n,extension:o}){const r=document.createElement("input");return r.type="file",function(e,t){for(const n in t)e.style[n]=t[n]}(r,{position:"absolute",visibility:"hidden",zIndex:"-999",width:"0",height:"0",top:"0",left:"0"}),r.accept=o.map((e=>{if("all"!==n){const t=e.replace(".","");return`${n}/${Dh[n][t]||t}`}return function(){const e=window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i);return!(!e||"micromessenger"!==e[0])}()?".":0===e.indexOf(".")?e:`.${e}`})).join(","),e&&e>1&&(r.multiple=!0),"all"!==n&&t instanceof Array&&1===t.length&&"camera"===t[0]&&r.setAttribute("capture","camera"),r}gf();let Hh=null;const zh=Ku("chooseFile",(({count:e,sourceType:t,type:n,extension:o},{resolve:r,reject:i})=>{wl();const{t:a}=ml();Hh&&(document.body.removeChild(Hh),Hh=null),Hh=Vh({count:e,sourceType:t,type:n,extension:o}),document.body.appendChild(Hh),Hh.addEventListener("change",(function(t){const n=t.target,o=[];if(n&&n.files){const t=n.files.length;for(let r=0;r(i=i||Zd(t),i)}),re))},tempFiles:o})})),Hh.click(),vf()||console.warn(a("uni.chooseFile.notUserActivation"))}),0,Td);let qh=null;const Wh=Ku("chooseImage",(({count:e,sourceType:t,extension:n},{resolve:o,reject:r})=>{wl();const{t:i}=ml();qh&&(document.body.removeChild(qh),qh=null),qh=Vh({count:e,sourceType:t,extension:n,type:"image"}),document.body.appendChild(qh),qh.addEventListener("change",(function(t){const n=t.target,r=[];if(n&&n.files){const t=n.files.length;for(let o=0;o(i=i||Zd(t),i)}),oe))},tempFiles:r})})),qh.click(),vf()||console.warn(i("uni.chooseFile.notUserActivation"))}),0,xd),Uh={esc:["Esc","Escape"],enter:["Enter"]},Xh=Object.keys(Uh);const Yh=Kr("div",{class:"uni-mask"},null,-1);function Kh(e,t,n){return t.onClose=(...e)=>(t.visible=!1,n.apply(null,e)),Sa(lo({setup:()=>()=>(Rr(),Hr(e,t,null,16))}))}function Gh(e){let t=document.getElementById(e);return t||(t=document.createElement("div"),t.id=e,document.body.append(t)),t}function Zh(e,{onEsc:t,onEnter:n}){const o=tn(e.visible),{key:r,disable:i}=function(){const e=tn(""),t=tn(!1),n=n=>{if(t.value)return;const o=Xh.find((e=>-1!==Uh[e].indexOf(n.key)));o&&(e.value=o),Sn((()=>e.value=""))};return Po((()=>{document.addEventListener("keyup",n)})),Lo((()=>{document.removeEventListener("keyup",n)})),{key:e,disable:t}}();return Yn((()=>e.visible),(e=>o.value=e)),Yn((()=>o.value),(e=>i.value=!e)),Un((()=>{const{value:e}=r;"esc"===e?t&&t():"enter"===e&&n&&n()})),o}let Jh=0,Qh="";function em(e){let t=Jh;Jh+=e?1:-1,Jh=Math.max(0,Jh),Jh>0?0===t&&(Qh=document.body.style.overflow,document.body.style.overflow="hidden"):(document.body.style.overflow=Qh,Qh="")}const tm=Xc({name:"ImageView",props:{src:{type:String,default:""}},setup(e){const t=Vt({direction:"none"});let n=1,o=0,r=0,i=0,a=0;function s({detail:e}){n=e.scale}function l(e){const t=e.target.getBoundingClientRect();o=t.width,r=t.height}function c(e){const t=e.target.getBoundingClientRect();i=t.width,a=t.height,d(e)}function u(e){const s=n*o>i,l=n*r>a;t.direction=s&&l?"all":s?"horizontal":l?"vertical":"none",d(e)}function d(e){"all"!==t.direction&&"horizontal"!==t.direction||e.stopPropagation()}return()=>{const n={position:"absolute",left:"0",top:"0",width:"100%",height:"100%"};return Kr(Lf,{style:n,onTouchstart:Yc(c),onTouchmove:Yc(d),onTouchend:Yc(u)},{default:()=>[Kr(Uf,{style:n,direction:t.direction,inertia:!0,scale:!0,"scale-min":"1","scale-max":"4",onScale:s},{default:()=>[Kr("img",{src:e.src,style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",maxHeight:"100%",maxWidth:"100%"},onLoad:l},null,40,["src","onLoad"])]},8,["style","direction","inertia","scale","onScale"])]},8,["style","onTouchstart","onTouchmove","onTouchend"])}}});function nm(e){let t="number"==typeof e.current?e.current:e.urls.indexOf(e.current);return t=t<0?0:t,t}const om=Xc({name:"ImagePreview",props:{urls:{type:Array,default:()=>[]},current:{type:[Number,String],default:0}},emits:["close"],setup(e,{emit:t}){Po((()=>em(!0))),Bo((()=>em(!1)));const n=tn(null),o=tn(nm(e));let r;function i(){r||Sn((()=>{t("close")}))}function a(e){o.value=e.detail.current}Yn((()=>e.current),(()=>o.value=nm(e))),Po((()=>{const e=n.value;let t=0,o=0;e.addEventListener("mousedown",(e=>{r=!1,t=e.clientX,o=e.clientY})),e.addEventListener("mouseup",(e=>{(Math.abs(e.clientX-t)>20||Math.abs(e.clientY-o)>20)&&(r=!0)}))}));const s={position:"absolute","box-sizing":"border-box",top:"0",right:"0",width:"60px",height:"44px",padding:"6px","line-height":"32px","font-size":"26px",color:"white","text-align":"center",cursor:"pointer"};return()=>{let t;return Kr("div",{ref:n,style:{display:"block",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",zIndex:999,background:"rgba(0,0,0,0.8)"},onClick:i},[Kr(lp,{navigation:"auto",current:o.value,onChange:a,"indicator-dots":!1,autoplay:!1,style:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%"}},(r=t=e.urls.map((e=>Kr(up,null,{default:()=>[Kr(tm,{src:e},null,8,["src"])]}))),"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!zr(r)?t:{default:()=>[t],_:1}),8,["current","onChange"]),Kr("div",{style:s},[ac("M17.25 16.156l7.375-7.313q0.281-0.281 0.281-0.641t-0.281-0.641q-0.25-0.25-0.625-0.25t-0.625 0.25l-7.375 7.344-7.313-7.344q-0.25-0.25-0.625-0.25t-0.625 0.25q-0.281 0.25-0.281 0.625t0.281 0.625l7.313 7.344-7.375 7.344q-0.281 0.25-0.281 0.625t0.281 0.625q0.125 0.125 0.281 0.188t0.344 0.063q0.156 0 0.328-0.063t0.297-0.188l7.375-7.344 7.375 7.406q0.125 0.156 0.297 0.219t0.328 0.063q0.188 0 0.344-0.078t0.281-0.203q0.281-0.25 0.281-0.609t-0.281-0.641l-7.375-7.406z","#ffffff",26)],4)],8,["onClick"]);var r}}});let rm,im=null;const am=()=>{im=null,Sn((()=>{null==rm||rm.unmount(),rm=null}))},sm=Ku("previewImage",((e,{resolve:t})=>{im?c(im,e):(im=Vt(e),Sn((()=>{rm=Kh(om,im,am),rm.mount(Gh("u-a-p"))}))),t()}),0,Ed);let lm=null;const cm=Ku("chooseVideo",(({sourceType:e,extension:t},{resolve:n,reject:o})=>{wl();const{t:r}=ml();lm&&(document.body.removeChild(lm),lm=null),lm=Vh({sourceType:e,extension:t,type:"video"}),document.body.appendChild(lm),lm.addEventListener("change",(function(e){const t=e.target.files[0];let o="";const r={tempFilePath:o,tempFile:t,size:t.size,duration:0,width:0,height:0,name:t.name};Object.defineProperty(r,"tempFilePath",{get(){return o=o||Zd(this.tempFile),o}});const i=document.createElement("video");if(void 0!==i.onloadedmetadata){const e=Zd(t);i.onloadedmetadata=function(){Jd(e),n(c(r,{duration:i.duration||0,width:i.videoWidth||0,height:i.videoHeight||0}))},setTimeout((()=>{i.onloadedmetadata=null,Jd(e),n(r)}),300),i.src=e}else n(r)})),lm.click(),vf()||console.warn(r("uni.chooseFile.notUserActivation"))}),0,Sd),um=Xu("request",(({url:e,data:t,header:n={},method:o,dataType:r,responseType:i,withCredentials:a,timeout:s=__uniConfig.networkTimeout.request},{resolve:l,reject:c})=>{let u=null;const d=function(e){const t=Object.keys(e).find((e=>"content-type"===e.toLowerCase()));if(!t)return;const n=e[t];if(0===n.indexOf("application/json"))return"json";if(0===n.indexOf("application/x-www-form-urlencoded"))return"urlencoded";return"string"}(n);if("GET"!==o)if(y(t)||t instanceof ArrayBuffer)u=t;else if("json"===d)try{u=JSON.stringify(t)}catch(g){u=t.toString()}else if("urlencoded"===d){const e=[];for(const n in t)f(t,n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));u=e.join("&")}else u=t.toString();const p=new XMLHttpRequest,h=new dm(p);p.open(o,e);for(const v in n)f(n,v)&&p.setRequestHeader(v,n[v]);const m=setTimeout((function(){p.onload=p.onabort=p.onerror=null,h.abort(),c("timeout",{errCode:5})}),s);return p.responseType=i,p.onload=function(){clearTimeout(m);const e=p.status;let t="text"===i?p.responseText:p.response;if("text"===i&&"json"===r)try{t=JSON.parse(t)}catch(g){}l({data:t,statusCode:e,header:fm(p.getAllResponseHeaders()),cookies:[]})},p.onabort=function(){clearTimeout(m),c("abort",{errCode:600003})},p.onerror=function(){clearTimeout(m),c(void 0,{errCode:5})},p.withCredentials=a,p.send(u),h}),0,Ad);class dm{constructor(e){this._xhr=e}abort(){this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(e){throw new Error("Method not implemented.")}offHeadersReceived(e){throw new Error("Method not implemented.")}}function fm(e){const t={};return e.split("\n").forEach((e=>{const n=e.match(/(\S+\s*):\s*(.*)/);n&&3===n.length&&(t[n[1]]=n[2])})),t}class pm{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){v(e)&&this._callbacks.push(e)}offProgressUpdate(e){const t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}abort(){this._isAbort=!0,this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(e){throw new Error("Method not implemented.")}offHeadersReceived(e){throw new Error("Method not implemented.")}}const hm=Xu("uploadFile",(({url:e,file:t,filePath:n,name:o,files:r,header:i={},formData:a={},timeout:s=__uniConfig.networkTimeout.uploadFile},{resolve:l,reject:c})=>{var u=new pm;return p(r)&&r.length||(r=[{name:o,file:t,uri:n}]),Promise.all(r.map((({file:e,uri:t})=>e instanceof Blob?Promise.resolve(Gd(e)):Kd(t)))).then((function(t){var n,o=new XMLHttpRequest,d=new FormData;Object.keys(a).forEach((e=>{d.append(e,a[e])})),Object.values(r).forEach((({name:e},n)=>{const o=t[n];d.append(e||"file",o,o.name||`file-${Date.now()}`)})),o.open("POST",e),Object.keys(i).forEach((e=>{o.setRequestHeader(e,i[e])})),o.upload.onprogress=function(e){u._callbacks.forEach((t=>{var n=e.loaded,o=e.total;t({progress:Math.round(n/o*100),totalBytesSent:n,totalBytesExpectedToSend:o})}))},o.onerror=function(){clearTimeout(n),c("",{errCode:602001})},o.onabort=function(){clearTimeout(n),c("abort",{errCode:600003})},o.onload=function(){clearTimeout(n);const e=o.status;l({statusCode:e,data:o.responseText||o.response})},u._isAbort?c("abort",{errCode:600003}):(n=setTimeout((function(){o.upload.onprogress=o.onload=o.onabort=o.onerror=null,u.abort(),c("timeout",{errCode:5})}),s),o.send(d),u._xhr=o)})).catch((()=>{setTimeout((()=>{c("file error")}),0)})),u}),0,Md),mm=Ku("navigateBack",((e,{resolve:t,reject:n})=>{let o=!0;return!0===hc("onBackPress",{from:e.from||"navigateBack"})&&(o=!1),o?(dh().$router.go(-e.delta),t()):n("onBackPress")}),0,jd);function gm({type:e,url:t,tabBarText:n,events:o,isAutomatedTesting:r},i){const a=dh().$router,{path:s,query:l}=function(e){const[t,n]=e.split("?",2);return{path:t,query:we(n||"")}}(t);return new Promise(((t,c)=>{const u=function(e,t){return{__id__:t||++zp,__type__:e}}(e,i);a["navigateTo"===e?"push":"replace"]({path:s,query:l,state:u,force:!0}).then((i=>{if(fs(i))return c(i.message);if("switchTab"===e&&(a.currentRoute.value.meta.tabBarText=n),"navigateTo"===e){const e=a.currentRoute.value.meta;return e.eventChannel?o&&(Object.keys(o).forEach((t=>{e.eventChannel._addListener(t,"on",o[t])})),e.eventChannel._clearCache()):e.eventChannel=new Se(u.__id__,o),t(r?{__id__:u.__id__}:{eventChannel:e.eventChannel})}return r?t({__id__:u.__id__}):t()}))}))}const vm=Ku("navigateTo",(({url:e,events:t,isAutomatedTesting:n},{resolve:o,reject:r})=>gm({type:"navigateTo",url:e,events:t,isAutomatedTesting:n}).then(o).catch(r)),0,Bd);const ym=Ku("redirectTo",(({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>(function(){const e=lc();if(!e)return;const t=e.$page;Hp(Up(t.path,t.id))}(),gm({type:"redirectTo",url:e,isAutomatedTesting:t}).then(n).catch(o))),0,Nd);const bm=Ku("reLaunch",(({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>(function(){const e=Dp().keys();for(const t of e)Hp(t)}(),gm({type:"reLaunch",url:e,isAutomatedTesting:t}).then(n).catch(o))),0,Id);function _m(e,t){return e===t.fullPath||"/"===e&&t.meta.isEntry}const wm=Ku("switchTab",(({url:e,tabBarText:t,isAutomatedTesting:n},{resolve:o,reject:r})=>(function(){const e=dc();if(!e)return;const t=Dp(),n=t.keys();for(const o of n){const e=t.get(o);e.$.__isTabBar?e.$.__isActive=!1:Hp(o)}e.$.__isTabBar&&(e.$.__isVisible=!1,hc(e,"onHide"))}(),gm({type:"switchTab",url:e,tabBarText:t,isAutomatedTesting:n},function(e){const t=Dp().values();for(const n of t){const t=n.$page;if(_m(e,t))return n.$.__isActive=!0,t.id}}(e)).then(o).catch(r))),0,Rd);function xm(e){__uniConfig.darkmode&&Km.on("onThemeChange",e)}function Sm(e){Km.off("onThemeChange",e)}function Cm(e){let t={};return __uniConfig.darkmode&&(t=Me(e,__uniConfig.themeConfig,Ch())),__uniConfig.darkmode?t:e}const Tm={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}},km=lo({props:{title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"Cancel"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"OK"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean},editable:{type:Boolean,default:!1},placeholderText:{type:String,default:""}},setup(e,{emit:t}){const n=tn(""),o=()=>a.value=!1,r=()=>(o(),t("close","cancel")),i=()=>(o(),t("close","confirm",n.value)),a=Zh(e,{onEsc:r,onEnter:()=>{!e.editable&&i()}}),s=function(e){const t=tn(e.cancelColor),n=({theme:e})=>{((e,t)=>{t.value=Tm[e].cancelColor})(e,t)};return Un((()=>{e.visible?(t.value=e.cancelColor,"#000"===e.cancelColor&&("dark"===Ch()&&n({theme:"dark"}),xm(n))):Sm(n)})),t}(e);return()=>{const{title:t,content:o,showCancel:l,confirmText:c,confirmColor:u,editable:d,placeholderText:f}=e;return n.value=o,Kr(Wi,{name:"uni-fade"},{default:()=>[Fo(Kr("uni-modal",{onTouchmove:Kl},[Yh,Kr("div",{class:"uni-modal"},[t&&Kr("div",{class:"uni-modal__hd"},[Kr("strong",{class:"uni-modal__title",textContent:t},null,8,["textContent"])]),d?Kr("textarea",{class:"uni-modal__textarea",rows:"1",placeholder:f,value:o,onInput:e=>n.value=e.target.value},null,40,["placeholder","value","onInput"]):Kr("div",{class:"uni-modal__bd",onTouchmovePassive:Gl,textContent:o},null,40,["onTouchmovePassive","textContent"]),Kr("div",{class:"uni-modal__ft"},[l&&Kr("div",{style:{color:s.value},class:"uni-modal__btn uni-modal__btn_default",onClick:r},[e.cancelText],12,["onClick"]),Kr("div",{style:{color:u},class:"uni-modal__btn uni-modal__btn_primary",onClick:i},[c],12,["onClick"])])])],40,["onTouchmove"]),[[ba,a.value]])]})}}});let Em;const Om=de((()=>{Km.on("onHidePopup",(()=>Em.visible=!1))}));let $m;function Pm(e,t){const n="confirm"===e,o={confirm:n,cancel:"cancel"===e};n&&Em.editable&&(o.content=t),$m&&$m(o)}const Am=Ku("showModal",((e,{resolve:t})=>{Om(),$m=t,Em?(c(Em,e),Em.visible=!0):(Em=Vt(e),Sn((()=>(Kh(km,Em,Pm).mount(Gh("u-a-m")),Sn((()=>Em.visible=!0))))))}),0,Wd),Mm={title:{type:String,default:""},icon:{default:"success",validator:e=>-1!==Ud.indexOf(e)},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean}},Lm={light:"#fff",dark:"rgba(255,255,255,0.9)"},Bm=e=>Lm[e],Nm=lo({name:"Toast",props:Mm,setup(e){yl(),bl();const{Icon:t}=function(e){const t=tn(Bm(Ch())),n=({theme:e})=>t.value=Bm(e);Un((()=>{e.visible?xm(n):Sm(n)}));return{Icon:gi((()=>{switch(e.icon){case"success":return Kr(ac(oc,t.value,38),{class:"uni-toast__icon"});case"error":return Kr(ac(rc,t.value,38),{class:"uni-toast__icon"});case"loading":return Kr("i",{class:["uni-toast__icon","uni-loading"]},null,2);default:return null}}))}}(e),n=Zh(e,{});return()=>{const{mask:o,duration:r,title:i,image:a}=e;return Kr(Wi,{name:"uni-fade"},{default:()=>[Fo(Kr("uni-toast",{"data-duration":r},[o?Kr("div",{class:"uni-mask",style:"background: transparent;",onTouchmove:Kl},null,40,["onTouchmove"]):"",a||t.value?Kr("div",{class:"uni-toast"},[a?Kr("img",{src:a,class:"uni-toast__icon"},null,10,["src"]):t.value,Kr("p",{class:"uni-toast__content"},[i])]):Kr("div",{class:"uni-sample-toast"},[Kr("p",{class:"uni-simple-toast__text"},[i])])],8,["data-duration"]),[[ba,n.value]])]})}}});let Im,Rm,jm="";const Fm=Ne();function Dm(e){Im?c(Im,e):(Im=Vt(c(e,{visible:!1})),Sn((()=>{Fm.run((()=>{Yn([()=>Im.visible,()=>Im.duration],(([e,t])=>{if(e){if(Rm&&clearTimeout(Rm),"onShowLoading"===jm)return;Rm=setTimeout((()=>{Wm("onHideToast")}),t)}else Rm&&clearTimeout(Rm)}))})),Km.on("onHidePopup",(()=>Wm("onHidePopup"))),Kh(Nm,Im,(()=>{})).mount(Gh("u-a-t"))}))),setTimeout((()=>{Im.visible=!0}),10)}const Vm=Ku("showToast",((e,{resolve:t,reject:n})=>{Dm(e),jm="onShowToast",t()}),0,Xd),Hm={icon:"loading",duration:1e8,image:""},zm=Ku("showLoading",((e,{resolve:t,reject:n})=>{c(e,Hm),Dm(e),jm="onShowLoading",t()}),0,qd),qm=Ku("hideLoading",((e,{resolve:t,reject:n})=>{Wm("onHideLoading"),t()}));function Wm(e){const{t:t}=ml();if(!jm)return;let n="";if("onHideToast"===e&&"onShowToast"!==jm?n=t("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==jm&&(n=t("uni.showLoading.unpaired")),n)return console.warn(n);jm="",setTimeout((()=>{Im.visible=!1}),10)}function Um(e){function t(){var t;t=e.navigationBar.titleText,document.title=t,Km.emit("onNavigationBarChange",{titleText:t})}Un(t),yo(t)}const Xm=Xc({name:"Layout",setup(e,{emit:t}){const n=tn(null);Ql({"--status-bar-height":"0px","--top-window-height":"0px","--window-left":"0px","--window-right":"0px","--window-margin":"0px","--tab-bar-height":"0px"});const o=function(){const e=fl();return{routeKey:gi((()=>Up("/"+e.meta.route,Mp()))),isTabBar:gi((()=>e.meta.isTabBar)),routeCache:Yp}}(),{layoutState:r,windowState:i}=function(){Ap();{const e=Vt({marginWidth:0,leftWindowWidth:0,rightWindowWidth:0});return Yn((()=>e.marginWidth),(e=>Ql({"--window-margin":e+"px"}))),Yn((()=>e.leftWindowWidth+e.marginWidth),(e=>{Ql({"--window-left":e+"px"})})),Yn((()=>e.rightWindowWidth+e.marginWidth),(e=>{Ql({"--window-right":e+"px"})})),{layoutState:e,windowState:gi((()=>({})))}}}();!function(e,t){const n=Ap();function o(){const o=document.body.clientWidth,r=Vp();let i={};if(r.length>0){i=r[r.length-1].$page.meta}else{const e=_c(n.path,!0);e&&(i=e.meta)}const a=parseInt(String((f(i,"maxWidth")?i.maxWidth:__uniConfig.globalStyle.maxWidth)||Number.MAX_SAFE_INTEGER));let s=!1;s=o>a,s&&a?(e.marginWidth=(o-a)/2,Sn((()=>{const e=t.value;e&&e.setAttribute("style","max-width:"+a+"px;margin:0 auto;")}))):(e.marginWidth=0,Sn((()=>{const e=t.value;e&&e.removeAttribute("style")})))}Yn([()=>n.path],o),Po((()=>{o(),window.addEventListener("resize",o)}))}(r,n);const a=function(e){const t=tn(!1);return gi((()=>({"uni-app--showtabbar":e&&e.value,"uni-app--maxwidth":t.value})))}(!1);return()=>{const e=function(e,t,n,o,r,i){return function({routeKey:e,isTabBar:t,routeCache:n}){return Kr(ll,null,{default:jn((({Component:o})=>[(Rr(),Hr(go,{matchBy:"key",cache:n},[(Rr(),Hr(zo(o),{type:t.value?"tabBar":"",key:e.value}))],1032,["cache"]))])),_:1})}(e)}(o);return Kr("uni-app",{ref:n,class:a.value},[e,!1],2)}}});const Ym=c(El,{publishHandler(e,t,n){Km.subscribeHandler(e,t,n)}}),Km=c(Lc,{publishHandler(e,t,n){Ym.subscribeHandler(e,t,n)}}),Gm=Xc({name:"PageHead",setup(){const e=tn(null),t=$p(),n=function(e,t){const n=qt(e),o=n?Vt(Cm(e)):Cm(e);return __uniConfig.darkmode&&n&&Yn(e,(e=>{const t=Cm(e);for(const n in t)o[n]=t[n]})),t&&xm(t),o}(t.navigationBar,(()=>{const e=Cm(t.navigationBar);n.backgroundColor=e.backgroundColor,n.titleColor=e.titleColor})),{clazz:o,style:r}=function(e){const t=gi((()=>{const{type:t,titlePenetrate:n,shadowColorType:o}=e,r={"uni-page-head":!0,"uni-page-head-transparent":"transparent"===t,"uni-page-head-titlePenetrate":"YES"===n,"uni-page-head-shadow":!!o};return o&&(r[`uni-page-head-shadow-${o}`]=!0),r})),n=gi((()=>({backgroundColor:e.backgroundColor,color:e.titleColor,transitionDuration:e.duration,transitionTimingFunction:e.timingFunc})));return{clazz:t,style:n}}(n);return()=>{const i=function(e,t){if(!t)return Kr("div",{class:"uni-page-head-btn",onClick:Jm},[ac(ic,"transparent"===e.type?"#fff":e.titleColor,26)],8,["onClick"])}(n,t.isQuit),a=n.type||"default",s="transparent"!==a&&"float"!==a&&Kr("div",{class:{"uni-placeholder":!0,"uni-placeholder-titlePenetrate":n.titlePenetrate}},null,2);return Kr("uni-page-head",{"uni-page-head-type":a},[Kr("div",{ref:e,class:o.value,style:r.value},[Kr("div",{class:"uni-page-head-hd"},[i]),Zm(n),Kr("div",{class:"uni-page-head-ft"},[])],6),s],8,["uni-page-head-type"])}}});function Zm(e,t){return function({type:e,loading:t,titleSize:n,titleText:o,titleImage:r}){return Kr("div",{class:"uni-page-head-bd"},[Kr("div",{style:{fontSize:n,opacity:"transparent"===e?0:1},class:"uni-page-head__title"},[t?Kr("i",{class:"uni-loading"},null):r?Kr("img",{src:r,class:"uni-page-head__title_image"},null,8,["src"]):o],4)])}(e)}function Jm(){1===Vp().length?bm({url:"/"}):mm({from:"backbutton",success(){}})}const Qm=Xc({name:"PageBody",setup:(e,t)=>()=>Kr(Ar,null,[!1,Kr("uni-page-wrapper",null,[Kr("uni-page-body",null,[Xo(t.slots,"default")])],16)])}),eg=Xc({name:"Page",setup(e,t){const n=Pp(Mp()),o=n.navigationBar;return Um(n),()=>Kr("uni-page",{"data-page":n.route},"custom"!==o.style?[Kr(Gm),tg(t)]:[tg(t)])}});function tg(e){return Rr(),Hr(Qm,{key:0},{default:jn((()=>[Xo(e.slots,"page")])),_:3})}const ng={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0};window.uni={},window.wx={},window.rpx2px=rd;const og=Object.assign({}),rg=Object.assign;window.__uniConfig=rg({globalStyle:{backgroundColor:"#F8F8F8",background:"#efeff4",navigationBar:{backgroundColor:"#F8F8F8",titleText:"体检平台",type:"default",titleColor:"#000000"},isNVue:!1},compilerVersion:"4.08"},{appId:"__UNI__BD068F8",appName:"GDH5",appVersion:"1.0.0",appVersionCode:"100",async:ng,debug:!1,networkTimeout:{request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},sdkConfigs:{},qqMapKey:void 0,bMapKey:void 0,googleMapKey:void 0,aMapKey:void 0,aMapSecurityJsCode:void 0,aMapServiceHost:void 0,nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:Object.keys(og).reduce(((e,t)=>{const n=t.replace(/\.\/locale\/(uni-app.)?(.*).json/,"$2");return rg(e[n]||(e[n]={}),og[t].default),e}),{}),router:{mode:"hash",base:"/h5/",assets:"assets",routerBase:"/h5/"},darkmode:!1,themeConfig:{}}),window.__uniLayout=window.__uniLayout||{};const ig={delay:ng.delay,timeout:ng.timeout,suspensible:ng.suspensible};ng.loading&&(ig.loadingComponent={name:"SystemAsyncLoading",render:()=>Kr(Vo(ng.loading))}),ng.error&&(ig.errorComponent={name:"SystemAsyncError",render:()=>Kr(Vo(ng.error))});const ag=()=>t((()=>import("./pages-index-index.b7638b51.js")),["assets/pages-index-index.b7638b51.js","assets/_plugin-vue_export-helper.1b428a4d.js","assets/uni-app.es.add45db9.js","assets/index-1738ec12.css"]).then((e=>mh(e.default||e))),sg=uo(rg({loader:ag},ig)),lg=()=>t((()=>import("./pages-login-login.82a73753.js")),["assets/pages-login-login.82a73753.js","assets/index.86ec3509.js","assets/uni-app.es.add45db9.js"]).then((e=>mh(e.default||e))),cg=uo(rg({loader:lg},ig)),ug=()=>t((()=>import("./pages-invoice-list.86253efd.js")),["assets/pages-invoice-list.86253efd.js","assets/uni-tag.065469d1.js","assets/_plugin-vue_export-helper.1b428a4d.js","assets/uni-tag-0d6e247b.css","assets/uni-app.es.add45db9.js","assets/uni-icons.67b3e996.js","assets/uni-icons-e43d34a6.css","assets/index.86ec3509.js","assets/list-8c943cac.css"]).then((e=>mh(e.default||e))),dg=uo(rg({loader:ug},ig)),fg=()=>t((()=>import("./pages-invoice-detail.bc4528b4.js")),["assets/pages-invoice-detail.bc4528b4.js","assets/uni-icons.67b3e996.js","assets/_plugin-vue_export-helper.1b428a4d.js","assets/uni-icons-e43d34a6.css","assets/uni-app.es.add45db9.js","assets/index.86ec3509.js","assets/detail-7d84777d.css"]).then((e=>mh(e.default||e))),pg=uo(rg({loader:fg},ig)),hg=()=>t((()=>import("./pages-chat-list.3653a76b.js")),["assets/pages-chat-list.3653a76b.js","assets/uni-easyinput.59fbafce.js","assets/uni-icons.67b3e996.js","assets/_plugin-vue_export-helper.1b428a4d.js","assets/uni-icons-e43d34a6.css","assets/uni-app.es.add45db9.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-popup.9b735bd6.js","assets/uni-popup-0c5683ca.css","assets/uni-tag.065469d1.js","assets/uni-tag-0d6e247b.css","assets/index.86ec3509.js","assets/list-f18273e1.css"]).then((e=>mh(e.default||e))),mg=uo(rg({loader:hg},ig)),gg=()=>t((()=>import("./pages-chat-detail.95dd27f4.js")),["assets/pages-chat-detail.95dd27f4.js","assets/uni-popup.9b735bd6.js","assets/_plugin-vue_export-helper.1b428a4d.js","assets/uni-app.es.add45db9.js","assets/uni-popup-0c5683ca.css","assets/uni-easyinput.59fbafce.js","assets/uni-icons.67b3e996.js","assets/uni-icons-e43d34a6.css","assets/uni-easyinput-cfd2af8c.css","assets/index.86ec3509.js","assets/detail-493d7d51.css"]).then((e=>mh(e.default||e))),vg=uo(rg({loader:gg},ig)),yg=()=>t((()=>import("./pages-invoice-edit.7663a547.js")),["assets/pages-invoice-edit.7663a547.js","assets/uni-tag.065469d1.js","assets/_plugin-vue_export-helper.1b428a4d.js","assets/uni-tag-0d6e247b.css","assets/uni-app.es.add45db9.js","assets/uni-easyinput.59fbafce.js","assets/uni-icons.67b3e996.js","assets/uni-icons-e43d34a6.css","assets/uni-easyinput-cfd2af8c.css","assets/index.86ec3509.js","assets/edit-a79274d3.css"]).then((e=>mh(e.default||e))),bg=uo(rg({loader:yg},ig));function _g(e,t){return Rr(),Hr(eg,null,{page:jn((()=>[Kr(e,rg({},t,{ref:"page"}),null,512)])),_:1})}window.__uniRoutes=[{path:"/",alias:"/pages/index/index",component:{setup(){const e=dh(),t=e&&e.$route&&e.$route.query||{};return()=>_g(sg,t)}},loader:ag,meta:{isQuit:!0,isEntry:!0,navigationBar:{titleText:"uni-app",type:"default"},isNVue:!1}},{path:"/pages/login/login",component:{setup(){const e=dh(),t=e&&e.$route&&e.$route.query||{};return()=>_g(cg,t)}},loader:lg,meta:{enablePullDownRefresh:!1,navigationBar:{style:"custom",type:"default"},isNVue:!1}},{path:"/pages/invoice/list",component:{setup(){const e=dh(),t=e&&e.$route&&e.$route.query||{};return()=>_g(dg,t)}},loader:ug,meta:{enablePullDownRefresh:!1,navigationBar:{style:"custom",type:"default"},isNVue:!1}},{path:"/pages/invoice/detail",component:{setup(){const e=dh(),t=e&&e.$route&&e.$route.query||{};return()=>_g(pg,t)}},loader:fg,meta:{enablePullDownRefresh:!1,navigationBar:{style:"custom",type:"default"},isNVue:!1}},{path:"/pages/chat/list",component:{setup(){const e=dh(),t=e&&e.$route&&e.$route.query||{};return()=>_g(mg,t)}},loader:hg,meta:{enablePullDownRefresh:!1,navigationBar:{style:"custom",type:"default"},isNVue:!1}},{path:"/pages/chat/detail",component:{setup(){const e=dh(),t=e&&e.$route&&e.$route.query||{};return()=>_g(vg,t)}},loader:gg,meta:{enablePullDownRefresh:!1,navigationBar:{style:"custom",type:"default"},isNVue:!1}},{path:"/pages/invoice/edit",component:{setup(){const e=dh(),t=e&&e.$route&&e.$route.query||{};return()=>_g(bg,t)}},loader:yg,meta:{enablePullDownRefresh:!1,navigationBar:{style:"custom",type:"default"},isNVue:!1}}].map((e=>(e.meta.route=(e.alias||e.path).slice(1),e)));const wg={onLaunch:function(){console.warn("当前组件仅支持 uni_modules 目录结构 ,请升级 HBuilderX 到 3.1.0 版本以上!"),console.log("App Launch")},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")}};hh(wg,{init:fh,setup(e){const t=Ap(),n=()=>{var n;n=e,Object.keys(pd).forEach((e=>{pd[e].forEach((t=>{Eo(e,t,n)}))}));const{onLaunch:o,onShow:r,onPageNotFound:i,onError:a}=e,s=function({path:e,query:t}){return c(Qd,{path:e,query:t}),c(ef,Qd),c({},Qd)}({path:t.path.slice(1)||__uniRoutes[0].meta.route,query:be(t.query)});if(o&&N(o,s),r&&N(r,s),!t.matched.length){const e={notFound:!0,openType:"appLaunch",path:t.path,query:{},scene:1001};i&&N(i,e)}a&&(e.appContext.config.errorHandler=e=>{N(a,e)})};return dl().isReady().then(n),Po((()=>{window.addEventListener("resize",xe(gh,50,{setTimeout:setTimeout,clearTimeout:clearTimeout})),window.addEventListener("message",vh),document.addEventListener("visibilitychange",yh),function(){let e=null;try{e=window.matchMedia("(prefers-color-scheme: dark)")}catch(t){}if(e){let t=e=>{Km.emit("onThemeChange",{theme:e.matches?"dark":"light"})};e.addEventListener?e.addEventListener("change",t):e.addListener(t)}}()})),t.query},before(e){e.mpType="app";const{setup:t}=e,n=()=>(Rr(),Hr(Xm));e.setup=(e,o)=>{const r=t&&t(e,o);return v(r)?n:r},e.render=n}}),Sa(wg).use(oh).mount("#app");export{bd as $,cf as A,dp as B,dl as C,Yn as D,en as E,Ar as F,zm as G,hm as H,Ma as I,Of as J,Sn as K,Wh as L,cm as M,Vp as N,ad as O,zh as P,qm as Q,Am as R,_d as S,wd as T,um as U,Bh as V,Ih as W,Rh as X,jh as Y,Mh as Z,Lh as _,Zr as a,fd as a0,hd as a1,Fh as a2,sm as a3,ya as a4,ip as a5,Vo as a6,dd as a7,Fo as a8,ba as a9,dh as aa,eu as ab,yp as ac,Eo as ad,si as ae,re as af,di as ag,se as b,Vr as c,Hr as d,bp as e,Kr as f,zo as g,bm as h,hp as i,tn as j,Po as k,Uo as l,_h as m,le as n,Rr as o,Jr as p,vm as q,Xo as r,Vm as s,K as t,an as u,iu as v,jn as w,Yr as x,wm as y,ym as z};
+ */const La="undefined"!=typeof window;const Ba=Object.assign;function Na(e,t){const n={};for(const o in t){const r=t[o];n[o]=Ra(r)?r.map(e):e(r)}return n}const Ia=()=>{},Ra=Array.isArray,ja=/\/$/;function Fa(e,t,n="/"){let o,r={},i="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(o=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),r=e(i)),s>-1&&(o=o||t.slice(0,s),a=t.slice(s,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/");let r,i,a=n.length-1;for(r=0;r1&&a--}return n.slice(0,a).join("/")+"/"+o.slice(r-(r===o.length?1:0)).join("/")}(null!=o?o:t,n),{fullPath:o+(i&&"?")+i+a,path:o,query:r,hash:a}}function Da(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function Va(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ha(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!za(e[n],t[n]))return!1;return!0}function za(e,t){return Ra(e)?qa(e,t):Ra(t)?qa(t,e):e===t}function qa(e,t){return Ra(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var Wa,Ua,Xa,Ya;function Ka(e){if(!e)if(La){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(ja,"")}(Ua=Wa||(Wa={})).pop="pop",Ua.push="push",(Ya=Xa||(Xa={})).back="back",Ya.forward="forward",Ya.unknown="";const Ga=/^[^#]+#/;function Za(e,t){return e.replace(Ga,"#")+t}const Ja=()=>({left:window.pageXOffset,top:window.pageYOffset});function Qa(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}function es(e,t){return(history.state?history.state.position-t:-1)+e}const ts=new Map;function ns(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let t=r.includes(e.slice(i))?e.slice(i).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),Da(n,"")}return Da(n,e)+o+r}function os(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?Ja():null}}function rs(e){const{history:t,location:n}=window,o={value:ns(e,n)},r={value:t.state};function i(o,i,a){const s=e.indexOf("#"),l=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+o:location.protocol+"//"+location.host+e+o;try{t[a?"replaceState":"pushState"](i,"",l),r.value=i}catch(c){console.error(c),n[a?"replace":"assign"](l)}}return r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:r,push:function(e,n){const a=Ba({},r.value,t.state,{forward:e,scroll:Ja()});i(a.current,a,!0),i(e,Ba({},os(o.value,e,null),{position:a.position+1},n),!1),o.value=e},replace:function(e,n){i(e,Ba({},t.state,os(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),o.value=e}}}function is(e){const t=rs(e=Ka(e)),n=function(e,t,n,o){let r=[],i=[],a=null;const s=({state:i})=>{const s=ns(e,location),l=n.value,c=t.value;let u=0;if(i){if(n.value=s,t.value=i,a&&a===l)return void(a=null);u=c?i.position-c.position:0}else o(s);r.forEach((e=>{e(n.value,l,{delta:u,type:Wa.pop,direction:u?u>0?Xa.forward:Xa.back:Xa.unknown})}))};function l(){const{history:e}=window;e.state&&e.replaceState(Ba({},e.state,{scroll:Ja()}),"")}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",l),{pauseListeners:function(){a=n.value},listen:function(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return i.push(t),t},destroy:function(){for(const e of i)e();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace);const o=Ba({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:Za.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function as(e){return"string"==typeof e||"symbol"==typeof e}const ss={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ls=Symbol("");var cs,us;function ds(e,t){return Ba(new Error,{type:e,[ls]:!0},t)}function fs(e,t){return e instanceof Error&&ls in e&&(null==t||!!(e.type&t))}(us=cs||(cs={}))[us.aborted=4]="aborted",us[us.cancelled=8]="cancelled",us[us.duplicated=16]="duplicated";const ps={sensitive:!1,strict:!1,start:!0,end:!0},hs=/[.+*?^${}()[\]/\\]/g;function ms(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function gs(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const ys={type:0,value:""},bs=/[a-zA-Z0-9_]/;function _s(e,t,n){const o=function(e,t){const n=Ba({},ps,t),o=[];let r=n.start?"^":"";const i=[];for(const l of e){const e=l.length?[]:[90];n.strict&&!l.length&&(r+="/");for(let t=0;t1&&("*"===s||"+"===s)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),c="")}function f(){c+=s}for(;l{i(f)}:Ia}function i(e){if(as(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(i),t.alias.forEach(i))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))}}function a(e){let t=0;for(;t=0&&(e.record.path!==n[t].record.path||!Es(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!Cs(e)&&o.set(e.record.name,e)}return t=ks({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,i,a,s={};if("name"in e&&e.name){if(r=o.get(e.name),!r)throw ds(1,{location:e});a=r.record.name,s=Ba(xs(t.params,r.keys.filter((e=>!e.optional)).map((e=>e.name))),e.params&&xs(e.params,r.keys.map((e=>e.name)))),i=r.stringify(s)}else if("path"in e)i=e.path,r=n.find((e=>e.re.test(i))),r&&(s=r.parse(i),a=r.record.name);else{if(r=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw ds(1,{location:e,currentLocation:t});a=r.record.name,s=Ba({},t.params,e.params),i=r.stringify(s)}const l=[];let c=r;for(;c;)l.unshift(c.record),c=c.parent;return{name:a,path:i,params:s,matched:l,meta:Ts(l)}},removeRoute:i,getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}function xs(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function Ss(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]="boolean"==typeof n?n:n[o];return t}function Cs(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ts(e){return e.reduce(((e,t)=>Ba(e,t.meta)),{})}function ks(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function Es(e,t){return t.children.some((t=>t===e||Es(e,t)))}const Os=/#/g,$s=/&/g,Ps=/\//g,As=/=/g,Ms=/\?/g,Ls=/\+/g,Bs=/%5B/g,Ns=/%5D/g,Is=/%5E/g,Rs=/%60/g,js=/%7B/g,Fs=/%7C/g,Ds=/%7D/g,Vs=/%20/g;function Hs(e){return encodeURI(""+e).replace(Fs,"|").replace(Bs,"[").replace(Ns,"]")}function zs(e){return Hs(e).replace(Ls,"%2B").replace(Vs,"+").replace(Os,"%23").replace($s,"%26").replace(Rs,"`").replace(js,"{").replace(Ds,"}").replace(Is,"^")}function qs(e){return null==e?"":function(e){return Hs(e).replace(Os,"%23").replace(Ms,"%3F")}(e).replace(Ps,"%2F")}function Ws(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function Us(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let o=0;oe&&zs(e))):[o&&zs(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function Ys(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=Ra(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const Ks=Symbol(""),Gs=Symbol(""),Zs=Symbol(""),Js=Symbol(""),Qs=Symbol("");function el(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e,reset:function(){e=[]}}}function tl(e,t,n,o,r){const i=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((a,s)=>{const l=e=>{var l;!1===e?s(ds(4,{from:n,to:t})):e instanceof Error?s(e):"string"==typeof(l=e)||l&&"object"==typeof l?s(ds(2,{from:t,to:e})):(i&&o.enterCallbacks[r]===i&&"function"==typeof e&&i.push(e),a())},c=e.call(o&&o.instances[r],t,n,l);let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch((e=>s(e)))}))}function nl(e,t,n,o){const r=[];for(const a of e)for(const e in a.components){let s=a.components[e];if("beforeRouteEnter"===t||a.instances[e])if("object"==typeof(i=s)||"displayName"in i||"props"in i||"__vccOpts"in i){const i=(s.__vccOpts||s)[t];i&&r.push(tl(i,n,o,a,e))}else{let i=s();r.push((()=>i.then((r=>{if(!r)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${a.path}"`));const i=(s=r).__esModule||"Module"===s[Symbol.toStringTag]?r.default:r;var s;a.components[e]=i;const l=(i.__vccOpts||i)[t];return l&&tl(l,n,o,a,e)()}))))}}var i;return r}function ol(e){const t=Wn(Zs),n=Wn(Js),o=gi((()=>t.resolve(an(e.to)))),r=gi((()=>{const{matched:e}=o.value,{length:t}=e,r=e[t-1],i=n.matched;if(!r||!i.length)return-1;const a=i.findIndex(Va.bind(null,r));if(a>-1)return a;const s=il(e[t-2]);return t>1&&il(r)===s&&i[i.length-1].path!==s?i.findIndex(Va.bind(null,e[t-2])):a})),i=gi((()=>r.value>-1&&function(e,t){for(const n in t){const o=t[n],r=e[n];if("string"==typeof o){if(o!==r)return!1}else if(!Ra(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}(n.params,o.value.params))),a=gi((()=>r.value>-1&&r.value===n.matched.length-1&&Ha(n.params,o.value.params)));return{route:o,href:gi((()=>o.value.href)),isActive:i,isExactActive:a,navigate:function(n={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)?t[an(e.replace)?"replace":"push"](an(e.to)).catch(Ia):Promise.resolve()}}}const rl=lo({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:ol,setup(e,{slots:t}){const n=Vt(ol(e)),{options:o}=Wn(Zs),r=gi((()=>({[al(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[al(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:vi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}});function il(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const al=(e,t,n)=>null!=e?e:null!=t?t:n;function sl(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const ll=lo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=Wn(Qs),r=gi((()=>e.route||o.value)),i=Wn(Gs,0),a=gi((()=>{let e=an(i);const{matched:t}=r.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),s=gi((()=>r.value.matched[a.value]));qn(Gs,gi((()=>a.value+1))),qn(Ks,s),qn(Qs,r);const l=tn();return Yn((()=>[l.value,s.value,e.name]),(([e,t,n],[o,r,i])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&Va(t,r)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=r.value,i=e.name,a=s.value,c=a&&a.components[i];if(!c)return sl(n.default,{Component:c,route:o});const u=a.props[i],d=u?!0===u?o.params:"function"==typeof u?u(o):u:null,f=vi(c,Ba({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[i]=null)},ref:l}));return sl(n.default,{Component:f,route:o})||f}}});function cl(e){const t=ws(e.routes,e),n=e.parseQuery||Us,o=e.stringifyQuery||Xs,r=e.history,i=el(),a=el(),s=el(),l=nn(ss);let c=ss;La&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Na.bind(null,(e=>""+e)),d=Na.bind(null,qs),f=Na.bind(null,Ws);function p(e,i){if(i=Ba({},i||l.value),"string"==typeof e){const o=Fa(n,e,i.path),a=t.resolve({path:o.path},i),s=r.createHref(o.fullPath);return Ba(o,a,{params:f(a.params),hash:Ws(o.hash),redirectedFrom:void 0,href:s})}let a;if("path"in e)a=Ba({},e,{path:Fa(n,e.path,i.path).path});else{const t=Ba({},e.params);for(const e in t)null==t[e]&&delete t[e];a=Ba({},e,{params:d(e.params)}),i.params=d(i.params)}const s=t.resolve(a,i),c=e.hash||"";s.params=u(f(s.params));const p=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,Ba({},e,{hash:(h=c,Hs(h).replace(js,"{").replace(Ds,"}").replace(Is,"^")),path:s.path}));var h;const m=r.createHref(p);return Ba({fullPath:p,hash:c,query:o===Xs?Ys(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function h(e){return"string"==typeof e?Fa(n,e,l.value.path):Ba({},e)}function m(e,t){if(c!==e)return ds(8,{from:t,to:e})}function g(e){return y(e)}function v(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=h(o):{path:o},o.params={}),Ba({query:e.query,hash:e.hash,params:"path"in o?{}:e.params},o)}}function y(e,t){const n=c=p(e),r=l.value,i=e.state,a=e.force,s=!0===e.replace,u=v(n);if(u)return y(Ba(h(u),{state:"object"==typeof u?Ba({},i,u.state):i,force:a,replace:s}),t||n);const d=n;let f;return d.redirectedFrom=t,!a&&function(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&Va(t.matched[o],n.matched[r])&&Ha(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,r,n)&&(f=ds(16,{to:d,from:r}),P(r,r,!0,!1)),(f?Promise.resolve(f):_(d,r)).catch((e=>fs(e)?fs(e,2)?e:$(e):O(e,d,r))).then((e=>{if(e){if(fs(e,2))return y(Ba({replace:s},h(e.to),{state:"object"==typeof e.to?Ba({},i,e.to.state):i,force:a}),t||d)}else e=x(d,r,!0,s,i);return w(d,r,e),e}))}function b(e,t){const n=m(e,t);return n?Promise.reject(n):Promise.resolve()}function _(e,t){let n;const[o,r,s]=function(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;aVa(e,i)))?o.push(i):n.push(i));const s=e.matched[a];s&&(t.matched.find((e=>Va(e,s)))||r.push(s))}return[n,o,r]}(e,t);n=nl(o.reverse(),"beforeRouteLeave",e,t);for(const i of o)i.leaveGuards.forEach((o=>{n.push(tl(o,e,t))}));const l=b.bind(null,e,t);return n.push(l),ul(n).then((()=>{n=[];for(const o of i.list())n.push(tl(o,e,t));return n.push(l),ul(n)})).then((()=>{n=nl(r,"beforeRouteUpdate",e,t);for(const o of r)o.updateGuards.forEach((o=>{n.push(tl(o,e,t))}));return n.push(l),ul(n)})).then((()=>{n=[];for(const o of e.matched)if(o.beforeEnter&&!t.matched.includes(o))if(Ra(o.beforeEnter))for(const r of o.beforeEnter)n.push(tl(r,e,t));else n.push(tl(o.beforeEnter,e,t));return n.push(l),ul(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=nl(s,"beforeRouteEnter",e,t),n.push(l),ul(n)))).then((()=>{n=[];for(const o of a.list())n.push(tl(o,e,t));return n.push(l),ul(n)})).catch((e=>fs(e,8)?e:Promise.reject(e)))}function w(e,t,n){for(const o of s.list())o(e,t,n)}function x(e,t,n,o,i){const a=m(e,t);if(a)return a;const s=t===ss,c=La?history.state:{};n&&(o||s?r.replace(e.fullPath,Ba({scroll:s&&c&&c.scroll},i)):r.push(e.fullPath,i)),l.value=e,P(e,t,n,s),$()}let S;function C(){S||(S=r.listen(((e,t,n)=>{if(!B.listening)return;const o=p(e),i=v(o);if(i)return void y(Ba(i,{replace:!0}),o).catch(Ia);c=o;const a=l.value;var s,u;La&&(s=es(a.fullPath,n.delta),u=Ja(),ts.set(s,u)),_(o,a).catch((e=>fs(e,12)?e:fs(e,2)?(y(e.to,o).then((e=>{fs(e,20)&&!n.delta&&n.type===Wa.pop&&r.go(-1,!1)})).catch(Ia),Promise.reject()):(n.delta&&r.go(-n.delta,!1),O(e,o,a)))).then((e=>{(e=e||x(o,a,!1))&&(n.delta&&!fs(e,8)?r.go(-n.delta,!1):n.type===Wa.pop&&fs(e,20)&&r.go(-1,!1)),w(o,a,e)})).catch(Ia)})))}let T,k=el(),E=el();function O(e,t,n){$(e);const o=E.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function $(e){return T||(T=!e,C(),k.list().forEach((([t,n])=>e?n(e):t())),k.reset()),e}function P(t,n,o,r){const{scrollBehavior:i}=e;if(!La||!i)return Promise.resolve();const a=!o&&function(e){const t=ts.get(e);return ts.delete(e),t}(es(t.fullPath,0))||(r||!o)&&history.state&&history.state.scroll||null;return Sn().then((()=>i(t,n,a))).then((e=>e&&Qa(e))).catch((e=>O(e,t,n)))}const A=e=>r.go(e);let M;const L=new Set,B={currentRoute:l,listening:!0,addRoute:function(e,n){let o,r;return as(e)?(o=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:p,options:e,push:g,replace:function(e){return g(Ba(h(e),{replace:!0}))},go:A,back:()=>A(-1),forward:()=>A(1),beforeEach:i.add,beforeResolve:a.add,afterEach:s.add,onError:E.add,isReady:function(){return T&&l.value!==ss?Promise.resolve():new Promise(((e,t)=>{k.add([e,t])}))},install(e){e.component("RouterLink",rl),e.component("RouterView",ll),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>an(l)}),La&&!M&&l.value===ss&&(M=!0,g(r.location).catch((e=>{})));const t={};for(const o in ss)t[o]=gi((()=>l.value[o]));e.provide(Zs,this),e.provide(Js,Vt(t)),e.provide(Qs,l);const n=e.unmount;L.add(e),e.unmount=function(){L.delete(e),L.size<1&&(c=ss,S&&S(),S=null,l.value=ss,M=!1,T=!1),n()}}};return B}function ul(e){return e.reduce(((e,t)=>e.then((()=>t()))),Promise.resolve())}function dl(){return Wn(Zs)}function fl(){return Wn(Js)}const pl=de((()=>"undefined"!=typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length));let hl;function ml(){if(!hl){let e;if(e=navigator.cookieEnabled&&window.localStorage&&localStorage.UNI_LOCALE||__uniConfig.locale||navigator.language,hl=Ma(e),pl()){const t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach((e=>hl.add(e,__uniConfig.locales[e]))),hl.setLocale(e)}}return hl}function gl(e,t,n){return t.reduce(((t,o,r)=>(t[e+o]=n[r],t)),{})}const vl=de((()=>{const e="uni.async.",t=["error"];ml().add("en",gl(e,t,["The connection timed out, click the screen to try again."]),!1),ml().add("es",gl(e,t,["Se agotó el tiempo de conexión, haga clic en la pantalla para volver a intentarlo."]),!1),ml().add("fr",gl(e,t,["La connexion a expiré, cliquez sur l'écran pour réessayer."]),!1),ml().add("zh-Hans",gl(e,t,["连接服务器超时,点击屏幕重试"]),!1),ml().add("zh-Hant",gl(e,t,["連接服務器超時,點擊屏幕重試"]),!1)})),yl=de((()=>{const e="uni.showToast.",t=["unpaired"];ml().add("en",gl(e,t,["Please note showToast must be paired with hideToast"]),!1),ml().add("es",gl(e,t,["Tenga en cuenta que showToast debe estar emparejado con hideToast"]),!1),ml().add("fr",gl(e,t,["Veuillez noter que showToast doit être associé à hideToast"]),!1),ml().add("zh-Hans",gl(e,t,["请注意 showToast 与 hideToast 必须配对使用"]),!1),ml().add("zh-Hant",gl(e,t,["請注意 showToast 與 hideToast 必須配對使用"]),!1)})),bl=de((()=>{const e="uni.showLoading.",t=["unpaired"];ml().add("en",gl(e,t,["Please note showLoading must be paired with hideLoading"]),!1),ml().add("es",gl(e,t,["Tenga en cuenta que showLoading debe estar emparejado con hideLoading"]),!1),ml().add("fr",gl(e,t,["Veuillez noter que showLoading doit être associé à hideLoading"]),!1),ml().add("zh-Hans",gl(e,t,["请注意 showLoading 与 hideLoading 必须配对使用"]),!1),ml().add("zh-Hant",gl(e,t,["請注意 showLoading 與 hideLoading 必須配對使用"]),!1)})),_l=de((()=>{const e="uni.showModal.",t=["cancel","confirm"];ml().add("en",gl(e,t,["Cancel","OK"]),!1),ml().add("es",gl(e,t,["Cancelar","OK"]),!1),ml().add("fr",gl(e,t,["Annuler","OK"]),!1),ml().add("zh-Hans",gl(e,t,["取消","确定"]),!1),ml().add("zh-Hant",gl(e,t,["取消","確定"]),!1)})),wl=de((()=>{const e="uni.chooseFile.",t=["notUserActivation"];ml().add("en",gl(e,t,["File chooser dialog can only be shown with a user activation"]),!1),ml().add("es",gl(e,t,["El cuadro de diálogo del selector de archivos solo se puede mostrar con la activación del usuario"]),!1),ml().add("fr",gl(e,t,["La boîte de dialogue du sélecteur de fichier ne peut être affichée qu'avec une activation par l'utilisateur"]),!1),ml().add("zh-Hans",gl(e,t,["文件选择器对话框只能在由用户激活时显示"]),!1),ml().add("zh-Hant",gl(e,t,["文件選擇器對話框只能在由用戶激活時顯示"]),!1)}));function xl(e){const t=new Pe;return{on:(e,n)=>t.on(e,n),once:(e,n)=>t.once(e,n),off:(e,n)=>t.off(e,n),emit:(e,...n)=>t.emit(e,...n),subscribe(n,o,r=!1){t[r?"once":"on"](`${e}.${n}`,o)},unsubscribe(n,o){t.off(`${e}.${n}`,o)},subscribeHandler(n,o,r){t.emit(`${e}.${n}`,o,r)}}}let Sl=1;const Cl=Object.create(null);function Tl(e,t){return e+"."+t}function kl({id:e,name:t,args:n},o){t=Tl(o,t);const r=t=>{e&&Ym.publishHandler("invokeViewApi."+e,t)},i=Cl[t];i?i(n,r):r({})}const El=c(xl("service"),{invokeServiceMethod:(e,t,n)=>{const{subscribe:o,publishHandler:r}=Ym,i=n?Sl++:0;n&&o("invokeServiceApi."+i,n,!0),r("invokeServiceApi",{id:i,name:e,args:t})}}),Ol=ge(!0);let $l;function Pl(){$l&&(clearTimeout($l),$l=null)}let Al=0,Ml=0;function Ll(e){if(Pl(),1!==e.touches.length)return;const{pageX:t,pageY:n}=e.touches[0];Al=t,Ml=n,$l=setTimeout((function(){const t=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});t.touches=e.touches,t.changedTouches=e.changedTouches,e.target.dispatchEvent(t)}),350)}function Bl(e){if(!$l)return;if(1!==e.touches.length)return Pl();const{pageX:t,pageY:n}=e.touches[0];return Math.abs(t-Al)>10||Math.abs(n-Ml)>10?Pl():void 0}function Nl(e,t){const n=Number(e);return isNaN(n)?t:n}function Il(){const e=__uniConfig.globalStyle||{},t=Nl(e.rpxCalcMaxDeviceWidth,960),n=Nl(e.rpxCalcBaseDeviceWidth,375);function o(){let e=function(){const e=/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation,t=e&&90===Math.abs(window.orientation);var n=e?Math[t?"max":"min"](screen.width,screen.height):screen.width;return Math.min(window.innerWidth,document.documentElement.clientWidth,n)||n}();e=e<=t?e:n,document.documentElement.style.fontSize=e/23.4375+"px"}o(),document.addEventListener("DOMContentLoaded",o),window.addEventListener("load",o),window.addEventListener("resize",o)}function Rl(){Il(),pe(),window.addEventListener("touchstart",Ll,Ol),window.addEventListener("touchmove",Bl,Ol),window.addEventListener("touchend",Pl,Ol),window.addEventListener("touchcancel",Pl,Ol)}function jl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fl,Dl,Vl=["top","left","right","bottom"],Hl={};function zl(){return Dl="CSS"in window&&"function"==typeof CSS.supports?CSS.supports("top: env(safe-area-inset-top)")?"env":CSS.supports("top: constant(safe-area-inset-top)")?"constant":"":""}function ql(){if(Dl="string"==typeof Dl?Dl:zl()){var e=[],t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("test",null,n)}catch(s){}var o=document.createElement("div");r(o,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),Vl.forEach((function(e){a(o,e)})),document.body.appendChild(o),i(),Fl=!0}else Vl.forEach((function(e){Hl[e]=0}));function r(e,t){var n=e.style;Object.keys(t).forEach((function(e){var o=t[e];n[e]=o}))}function i(t){t?e.push(t):e.forEach((function(e){e()}))}function a(e,n){var o=document.createElement("div"),a=document.createElement("div"),s=document.createElement("div"),l=document.createElement("div"),c={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:Dl+"(safe-area-inset-"+n+")"};r(o,c),r(a,c),r(s,{transition:"0s",animation:"none",width:"400px",height:"400px"}),r(l,{transition:"0s",animation:"none",width:"250%",height:"250%"}),o.appendChild(s),a.appendChild(l),e.appendChild(o),e.appendChild(a),i((function(){o.scrollTop=a.scrollTop=1e4;var e=o.scrollTop,r=a.scrollTop;function i(){this.scrollTop!==(this===o?e:r)&&(o.scrollTop=a.scrollTop=1e4,e=o.scrollTop,r=a.scrollTop,function(e){Ul.length||setTimeout((function(){var e={};Ul.forEach((function(t){e[t]=Hl[t]})),Ul.length=0,Xl.forEach((function(t){t(e)}))}),0);Ul.push(e)}(n))}o.addEventListener("scroll",i,t),a.addEventListener("scroll",i,t)}));var u=getComputedStyle(o);Object.defineProperty(Hl,n,{configurable:!0,get:function(){return parseFloat(u.paddingBottom)}})}}function Wl(e){return Fl||ql(),Hl[e]}var Ul=[];var Xl=[];const Yl=jl({get support(){return 0!=("string"==typeof Dl?Dl:zl()).length},get top(){return Wl("top")},get left(){return Wl("left")},get right(){return Wl("right")},get bottom(){return Wl("bottom")},onChange:function(e){zl()&&(Fl||ql(),"function"==typeof e&&Xl.push(e))},offChange:function(e){var t=Xl.indexOf(e);t>=0&&Xl.splice(t,1)}}),Kl=ya((()=>{}),["prevent"]),Gl=ya((e=>{}),["stop"]);function Zl(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function Jl(){const e=Zl(document.documentElement.style,"--window-top");return e?e+Yl.top:0}function Ql(e){const t=document.documentElement.style;Object.keys(e).forEach((n=>{t.setProperty(n,e[n])}))}function ec(e){return Symbol(e)}function tc(e){return-1!==(e+="").indexOf("rpx")||-1!==e.indexOf("upx")}function nc(e,t=!1){if(t)return function(e){if(!tc(e))return e;return e.replace(/(\d+(\.\d+)?)[ru]px/g,((e,t)=>rd(parseFloat(t))+"px"))}(e);if(y(e)){const t=parseInt(e)||0;return tc(e)?rd(t):t}return e}const oc="M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z",rc="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z",ic="M21.781 7.844l-9.063 8.594 9.063 8.594q0.25 0.25 0.25 0.609t-0.25 0.578q-0.25 0.25-0.578 0.25t-0.578-0.25l-9.625-9.125q-0.156-0.125-0.203-0.297t-0.047-0.359q0-0.156 0.047-0.328t0.203-0.297l9.625-9.125q0.25-0.25 0.578-0.25t0.578 0.25q0.25 0.219 0.25 0.578t-0.25 0.578z";function ac(e,t="#000",n=27){return Kr("svg",{width:n,height:n,viewBox:"0 0 32 32"},[Kr("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function sc(){{const{$pageInstance:e}=si();return e&&e.proxy.$page.id}}function lc(){const e=Vp(),t=e.length;if(t)return e[t-1]}function cc(){const e=lc();if(e)return e.$page.meta}function uc(){const e=cc();return e?e.id:-1}function dc(){const e=lc();if(e)return e.$vm}const fc=["navigationBar","pullToRefresh"];function pc(e,t){const n=JSON.parse(JSON.stringify(__uniConfig.globalStyle||{})),o=c({id:t},n,e);fc.forEach((t=>{o[t]=c({},n[t],e[t])}));const{navigationBar:r}=o;return r.titleText&&r.titleImage&&(r.titleText=""),o}function hc(e,t,n){if(y(e))n=t,t=e,e=dc();else if("number"==typeof e){const t=Vp().find((t=>t.$page.id===e));e=t?t.$vm:dc()}if(!e)return;const o=e.$[t];return o&&((e,t)=>{let n;for(let o=0;o{function a(){if((()=>{const{scrollHeight:e}=document.documentElement,t=window.innerHeight,o=window.scrollY,i=o>0&&e>t&&o+t+n>=e,a=Math.abs(e-vc)>n;return!i||r&&!a?(!i&&r&&(r=!1),!1):(vc=e,r=!0,!0)})())return t&&t(),i=!1,setTimeout((function(){i=!0}),350),!0}e&&e(window.pageYOffset),t&&i&&(a()||(gc=setTimeout(a,300))),o=!1};return function(){clearTimeout(gc),o||requestAnimationFrame(a),o=!0}}function bc(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return bc(e,t.slice(2));const n=t.split("/"),o=n.length;let r=0;for(;r0?e.split("/"):[];return i.splice(i.length-r-1,r+1),ue(i.concat(n).join("/"))}function _c(e,t=!1){return t?__uniRoutes.find((t=>t.path===e||t.alias===e)):__uniRoutes.find((t=>t.path===e))}class wc{constructor(e){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=e,this.$el=function(e,t=!1){const{vnode:n}=e;if(ae(n.el))return t?n.el?[n.el]:[]:n.el;const{subTree:o}=e;if(16&o.shapeFlag){const e=o.children.filter((e=>e.el&&ae(e.el)));if(e.length>0)return t?e.map((e=>e.el)):e[0].el}return t?n.el?[n.el]:[]:n.el}(e.$),this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(e){if(!this.$el||!e)return;const t=Tc(this.$el.querySelector(e));return t?xc(t,!1):void 0}selectAllComponents(e){if(!this.$el||!e)return[];const t=[],n=this.$el.querySelectorAll(e);for(let o=0;o-1&&t.splice(n,1)}const n=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return-1===n.indexOf(e)&&(n.push(e),this.forceUpdate("class")),this}hasClass(e){return this.$el&&this.$el.classList.contains(e)}getDataset(){return this.$el&&this.$el.dataset}callMethod(e,t={}){const n=this.$vm[e];v(n)?n(JSON.parse(JSON.stringify(t))):this.$vm.ownerId&&Ym.publishHandler("onWxsInvokeCallMethod",{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:e,args:t})}requestAnimationFrame(e){return window.requestAnimationFrame(e)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(e,t={}){return this.$vm.$emit(e,t),this}getComputedStyle(e){if(this.$el){const t=window.getComputedStyle(this.$el);return e&&e.length?e.reduce(((e,n)=>(e[n]=t[n],e)),{}):t}return{}}setTimeout(e,t){return window.setTimeout(e,t)}clearTimeout(e){return window.clearTimeout(e)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function xc(e,t=!0){if(t&&e&&(e=ie(e.$)),e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new wc(e)),e.$el.__wxsComponentDescriptor}function Sc(e,t){return xc(e,t)}function Cc(e,t,n,o=!0){if(t){e.__instance||(e.__instance=!0,Object.defineProperty(e,"instance",{get:()=>Sc(n.proxy,!1)}));const r=function(e,t,n=!0){if(!t)return!1;if(n&&e.length<2)return!1;const o=ie(t);if(!o)return!1;const r=o.$.type;return!(!r.$wxs&&!r.$renderjs)&&o}(t,n,o);if(r)return[e,Sc(r,!1)]}}function Tc(e){if(e)return e.__vueParentComponent&&e.__vueParentComponent.proxy}function kc(e,t=!1){const{type:n,timeStamp:o,target:r,currentTarget:i}=e;let a,s;a=ve(t?r:function(e){for(;e&&0!==e.tagName.indexOf("UNI-");)e=e.parentElement;return e}(r)),s=ve(i);const l={type:n,timeStamp:o,target:a,detail:{},currentTarget:s};return e._stopped&&(l._stopped=!0),e.type.startsWith("touch")&&(l.touches=e.touches,l.changedTouches=e.changedTouches),function(e,t){c(e,{preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()})}(l,e),l}function Ec(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function Oc(e,t){const n=[];for(let o=0;o0===e.type.indexOf("mouse")||["contextmenu"].includes(e.type))(e))!function(e,t){const n=Jl();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[Ec(t,n)]}(i,e);else if((e=>"undefined"!=typeof TouchEvent&&e instanceof TouchEvent||0===e.type.indexOf("touch")||["longpress"].indexOf(e.type)>=0)(e)){const t=Jl();i.touches=Oc(e.touches,t),i.changedTouches=Oc(e.changedTouches,t)}else if((e=>!e.type.indexOf("key")&&e instanceof KeyboardEvent)(e)){["key","code"].forEach((t=>{Object.defineProperty(i,t,{get:()=>e[t]})}))}return Cc(i,t,n)||[i]},createNativeEvent:kc},Symbol.toStringTag,{value:"Module"});function Pc(e){!function(e){const t=e.globalProperties;c(t,$c),t.$gcd=Sc}(e._context.config)}let Ac=1;function Mc(e){return(e||uc())+".invokeViewApi"}const Lc=c(xl("view"),{invokeOnCallback:(e,t)=>Km.emit("api."+e,t),invokeViewMethod:(e,t,n,o)=>{const{subscribe:r,publishHandler:i}=Km,a=o?Ac++:0;o&&r("invokeViewApi."+a,o,!0),i(Mc(n),{id:a,name:e,args:t},n)},invokeViewMethodKeepAlive:(e,t,n,o)=>{const{subscribe:r,unsubscribe:i,publishHandler:a}=Km,s=Ac++,l="invokeViewApi."+s;return r(l,n),a(Mc(o),{id:s,name:e,args:t},o),()=>{i(l)}}});function Bc(e){hc(lc(),"onResize",e),Km.invokeOnCallback("onWindowResize",e)}function Nc(e){const t=lc();hc(dh(),"onShow",e),hc(t,"onShow")}function Ic(){hc(dh(),"onHide"),hc(lc(),"onHide")}const Rc=["onPageScroll","onReachBottom"];function jc(){Rc.forEach((e=>Km.subscribe(e,function(e){return(t,n)=>{hc(parseInt(n),e,t)}}(e))))}function Fc(){!function(){const{on:e}=Km;e("onResize",Bc),e("onAppEnterForeground",Nc),e("onAppEnterBackground",Ic)}(),jc()}function Dc(){if(this.$route){const e=this.$route.meta;return e.eventChannel||(e.eventChannel=new Se(this.$page.id)),e.eventChannel}}function Vc(e){e._context.config.globalProperties.getOpenerEventChannel=Dc}function Hc(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}function zc(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,((e,t)=>`${rd(parseFloat(t))}px`)):/^-?[\d\.]+$/.test(e)?`${e}px`:e||""}function qc(e){const t=e.animation;if(!t||!t.actions||!t.actions.length)return;let n=0;const o=t.actions,r=t.actions.length;function i(){const t=o[n],a=t.option.transition,s=function(e){const t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],n=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],o=["opacity","background-color"],r=["width","height","left","right","top","bottom"],i=e.animates,a=e.option,s=a.transition,l={},c=[];return i.forEach((e=>{let i=e.type,a=[...e.args];if(t.concat(n).includes(i))i.startsWith("rotate")||i.startsWith("skew")?a=a.map((e=>parseFloat(e)+"deg")):i.startsWith("translate")&&(a=a.map(zc)),n.indexOf(i)>=0&&(a.length=1),c.push(`${i}(${a.join(",")})`);else if(o.concat(r).includes(a[0])){i=a[0];const e=a[1];l[i]=r.includes(i)?zc(e):e}})),l.transform=l.webkitTransform=c.join(" "),l.transition=l.webkitTransition=Object.keys(l).map((e=>`${function(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`)).replace("webkit","-webkit")}(e)} ${s.duration}ms ${s.timingFunction} ${s.delay}ms`)).join(","),l.transformOrigin=l.webkitTransformOrigin=a.transformOrigin,l}(t);Object.keys(s).forEach((t=>{e.$el.style[t]=s[t]})),n+=1,n{i()}),0)}const Wc={props:["animation"],watch:{animation:{deep:!0,handler(){qc(this)}}},mounted(){qc(this)}},Uc=e=>{e.__reserved=!0;const{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(Wc),Xc(e)},Xc=e=>(e.__reserved=!0,e.compatConfig={MODE:3},lo(e));function Yc(e){return e.__wwe=!0,e}function Kc(e,t){return(n,o,r)=>{e.value&&t(n,function(e,t,n,o){let r;return r=ve(n),{type:o.type||e,timeStamp:t.timeStamp||0,target:r,currentTarget:r,detail:o}}(n,o,e.value,r||{}))}}const Gc={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function Zc(e){const t=tn(!1);let n,o,r=!1;function i(){requestAnimationFrame((()=>{clearTimeout(o),o=setTimeout((()=>{t.value=!1}),parseInt(e.hoverStayTime))}))}function a(o){o._hoverPropagationStopped||e.hoverClass&&"none"!==e.hoverClass&&!e.disabled&&(e.hoverStopPropagation&&(o._hoverPropagationStopped=!0),r=!0,n=setTimeout((()=>{t.value=!0,r||i()}),parseInt(e.hoverStartTime)))}function s(){r=!1,t.value&&i()}function l(){s(),window.removeEventListener("mouseup",l)}return{hovering:t,binding:{onTouchstartPassive:Yc((function(e){e.touches.length>1||a(e)})),onMousedown:Yc((function(e){r||(a(e),window.addEventListener("mouseup",l))})),onTouchend:Yc((function(){s()})),onMouseup:Yc((function(){r&&l()})),onTouchcancel:Yc((function(){r=!1,t.value=!1,clearTimeout(n)}))}}}function Jc(e,t){return y(t)&&(t=[t]),t.reduce(((t,n)=>(e[n]&&(t[n]=!0),t)),Object.create(null))}const Qc=ec("uf"),eu=Uc({name:"Form",emits:["submit","reset"],setup(e,{slots:t,emit:n}){const o=tn(null);return function(e){const t=[];qn(Qc,{addField(e){t.push(e)},removeField(e){t.splice(t.indexOf(e),1)},submit(n){e("submit",n,{value:t.reduce(((e,t)=>{if(t.submit){const[n,o]=t.submit();n&&(e[n]=o)}return e}),Object.create(null))})},reset(n){t.forEach((e=>e.reset&&e.reset())),e("reset",n)}})}(Kc(o,n)),()=>Kr("uni-form",{ref:o},[Kr("span",null,[t.default&&t.default()])],512)}});const tu=ec("ul");function nu(e,t){ou(e.id,t),Yn((()=>e.id),((e,n)=>{ru(n,t,!0),ou(e,t,!0)})),Bo((()=>{ru(e.id,t)}))}function ou(e,t,n){const o=sc();n&&!e||C(t)&&Object.keys(t).forEach((r=>{n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&Ym.on(`uni-${r}-${o}-${e}`,t[r]):0===r.indexOf("uni-")?Ym.on(r,t[r]):e&&Ym.on(`uni-${r}-${o}-${e}`,t[r])}))}function ru(e,t,n){const o=sc();n&&!e||C(t)&&Object.keys(t).forEach((r=>{n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&Ym.off(`uni-${r}-${o}-${e}`,t[r]):0===r.indexOf("uni-")?Ym.off(r,t[r]):e&&Ym.off(`uni-${r}-${o}-${e}`,t[r])}))}const iu=Uc({name:"Button",props:{id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1},plain:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=tn(null),o=Wn(Qc,!1),{hovering:r,binding:i}=Zc(e);ml();const a=Yc(((t,r)=>{if(e.disabled)return t.stopImmediatePropagation();r&&n.value.click();const i=e.formType;if(i){if(!o)return;"submit"===i?o.submit(t):"reset"===i&&o.reset(t)}else;})),s=Wn(tu,!1);return s&&(s.addHandler(a),Lo((()=>{s.removeHandler(a)}))),nu(e,{"label-click":a}),()=>{const o=e.hoverClass,s=Jc(e,"disabled"),l=Jc(e,"loading"),c=Jc(e,"plain"),u=o&&"none"!==o;return Kr("uni-button",ni({ref:n,onClick:a,id:e.id,class:u&&r.value?o:""},u&&i,s,l,c),[t.default&&t.default()],16,["onClick","id"])}}});function au(e){const{base:t}=__uniConfig.router;return 0===ue(e).indexOf(t)?ue(e):t+e}function su(e){const{base:t,assets:n}=__uniConfig.router;if("./"===t&&(0===e.indexOf("./static/")||n&&0===e.indexOf("./"+n+"/"))&&(e=e.slice(1)),0===e.indexOf("/")){if(0!==e.indexOf("//"))return au(e.slice(1));e="https:"+e}if(ne.test(e)||oe.test(e)||0===e.indexOf("blob:"))return e;const o=Vp();return o.length?au(bc(o[o.length-1].$page.route,e).slice(1)):e}const lu=navigator.userAgent,cu=/android/i.test(lu),uu=/iphone|ipad|ipod/i.test(lu),du=lu.match(/Windows NT ([\d|\d.\d]*)/i),fu=/Macintosh|Mac/i.test(lu),pu=/Linux|X11/i.test(lu),hu=fu&&navigator.maxTouchPoints>0;function mu(){return/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation}function gu(e){return e&&90===Math.abs(window.orientation)}function vu(e,t){return e?Math[t?"max":"min"](screen.width,screen.height):screen.width}function yu(e){return Math.min(window.innerWidth,document.documentElement.clientWidth,e)||e}const bu=["original","compressed"],_u=["album","camera"],wu=["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"];function xu(e,t){return e&&-1!==t.indexOf(e)?e:t[0]}function Su(e,t){return!p(e)||0===e.length||e.find((e=>-1===t.indexOf(e)))?t:e}function Cu(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}let Tu=1;const ku={};function Eu(e,t,n){if("number"==typeof e){const o=ku[e];if(o)return o.keepAlive||delete ku[e],o.callback(t,n)}return t}const Ou="success",$u="fail",Pu="complete";function Au(e,t={},{beforeAll:n,beforeSuccess:o}={}){C(t)||(t={});const{success:r,fail:i,complete:a}=function(e){const t={};for(const n in e){const o=e[n];v(o)&&(t[n]=Cu(o),delete e[n])}return t}(t),s=v(r),l=v(i),c=v(a),u=Tu++;return function(e,t,n,o=!1){ku[e]={name:t,keepAlive:o,callback:n}}(u,e,(u=>{(u=u||{}).errMsg=function(e,t){return e&&-1!==e.indexOf(":fail")?t+e.substring(e.indexOf(":fail")):t+":ok"}(u.errMsg,e),v(n)&&n(u),u.errMsg===e+":ok"?(v(o)&&o(u,t),s&&r(u)):l&&i(u),c&&a(u)})),u}const Mu="success",Lu="fail",Bu="complete",Nu={},Iu={};function Ru(e,t){return function(n){return e(n,t)||n}}function ju(e,t,n){let o=!1;for(let r=0;re(t),catch(){}}}function Fu(e,t={}){return[Mu,Lu,Bu].forEach((n=>{const o=e[n];if(!p(o))return;const r=t[n];t[n]=function(e){ju(o,e,t).then((e=>v(r)&&r(e)||e))}})),t}function Du(e,t){const n=[];p(Nu.returnValue)&&n.push(...Nu.returnValue);const o=Iu[e];return o&&p(o.returnValue)&&n.push(...o.returnValue),n.forEach((e=>{t=e(t)||t})),t}function Vu(e){const t=Object.create(null);Object.keys(Nu).forEach((e=>{"returnValue"!==e&&(t[e]=Nu[e].slice())}));const n=Iu[e];return n&&Object.keys(n).forEach((e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function Hu(e,t,n,o){const r=Vu(e);if(r&&Object.keys(r).length){if(p(r.invoke)){return ju(r.invoke,n).then((n=>t(Fu(Vu(e),n),...o)))}return t(Fu(r,n),...o)}return t(n,...o)}function zu(e,t){return(n={},...o)=>function(e){return!(!C(e)||![Ou,$u,Pu].find((t=>v(e[t]))))}(n)?Du(e,Hu(e,t,n,o)):Du(e,new Promise(((r,i)=>{Hu(e,t,c(n,{success:r,fail:i}),o)})))}function qu(e,t,n,o={}){const r=t+":fail"+(n?" "+n:"");return delete o.errCode,Eu(e,"undefined"!=typeof UniError?void 0!==o.errCode?new UniError(t,o.errCode,r):new UniError(r,o):c({errMsg:r},o))}function Wu(e,t,n,o){if(o&&o.beforeInvoke){const e=o.beforeInvoke(t);if(y(e))return e}const r=function(e,t){const n=e[0];if(!t||!C(t.formatArgs)&&C(n))return;const o=t.formatArgs,r=Object.keys(o);for(let i=0;i{const r=Au(e,n,o),i=Wu(0,[n],0,o);return i?qu(r,e,i):t(n,{resolve:t=>function(e,t,n){return Eu(e,c(n||{},{errMsg:t+":ok"}))}(r,e,t),reject:(t,n)=>qu(r,e,function(e){return!e||y(e)?e:e.stack?(console.error(e.message+"\n"+e.stack),e.message):e}(t),n)})}}function Xu(e,t,n,o){return zu(e,Uu(e,t,0,o))}function Yu(e,t,n,o){return function(e,t,n,o){return(...e)=>{const n=Wu(0,e,0,o);if(n)throw new Error(n);return t.apply(null,e)}}(0,t,0,o)}function Ku(e,t,n,o){return zu(e,function(e,t,n,o){return Uu(e,t,0,o)}(e,t,0,o))}let Gu=!1,Zu=0,Ju=0,Qu=960,ed=375,td=750;function nd(){const{platform:e,pixelRatio:t,windowWidth:n}=function(){const e=mu(),t=yu(vu(e,gu(e)));return{platform:uu?"ios":"other",pixelRatio:window.devicePixelRatio,windowWidth:t}}();Zu=n,Ju=t,Gu="ios"===e}function od(e,t){const n=Number(e);return isNaN(n)?t:n}const rd=Yu(0,((e,t)=>{if(0===Zu&&(nd(),function(){const e=__uniConfig.globalStyle||{};Qu=od(e.rpxCalcMaxDeviceWidth,960),ed=od(e.rpxCalcBaseDeviceWidth,375),td=od(e.rpxCalcBaseDeviceWidth,750)}()),0===(e=Number(e)))return 0;let n=t||Zu;n=e===td||n<=Qu?n:ed;let o=e/750*n;return o<0&&(o=-o),o=Math.floor(o+1e-4),0===o&&(o=1!==Ju&&Gu?.5:1),e<0?-o:o}));function id(e,t){Object.keys(t).forEach((n=>{v(t[n])&&(e[n]=function(e,t){const n=t?e?e.concat(t):p(t)?t:[t]:e;return n?function(e){const t=[];for(let n=0;n{y(e)&&C(t)?id(Iu[e]||(Iu[e]={}),t):C(e)&&id(Nu,e)})),sd={formatArgs:{}},ld={duration:400,timingFunction:"linear",delay:0,transformOrigin:"50% 50% 0"};class cd{constructor(e){this.actions=[],this.currentTransform={},this.currentStepAnimates=[],this.option=c({},ld,e)}_getOption(e){const t={transition:c({},this.option,e),transformOrigin:""};return t.transformOrigin=t.transition.transformOrigin,delete t.transition.transformOrigin,t}_pushAnimates(e,t){this.currentStepAnimates.push({type:e,args:t})}_converType(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}_getValue(e){return"number"==typeof e?`${e}px`:e}export(){const e=this.actions;return this.actions=[],{actions:e}}step(e){return this.currentStepAnimates.forEach((e=>{"style"!==e.type?this.currentTransform[e.type]=e:this.currentTransform[`${e.type}.${e.args[0]}`]=e})),this.actions.push({animates:Object.values(this.currentTransform),option:this._getOption(e)}),this.currentStepAnimates=[],this}}const ud=de((()=>{const e=["opacity","backgroundColor"],t=["width","height","left","right","top","bottom"];["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"].concat(e,t).forEach((n=>{cd.prototype[n]=function(...o){return e.concat(t).includes(n)?this._pushAnimates("style",[this._converType(n),t.includes(n)?this._getValue(o[0]):o[0]]):this._pushAnimates(n,o),this}}))})),dd=Yu(0,(e=>(ud(),new cd(e))),0,sd),fd=Yu(0,(()=>{const e=dh();return e&&e.$vm?e.$vm.$locale:ml().getLocale()})),pd={onUnhandledRejection:[],onPageNotFound:[],onError:[],onShow:[],onHide:[]};const hd=Yu(0,(()=>c({},Qd)));let md,gd,vd;const yd=[];const bd=Ku("getPushClientId",((e,{resolve:t,reject:n})=>{Promise.resolve().then((()=>{var e,o;void 0===vd&&(vd=!1,md="",gd="uniPush is not enabled"),yd.push(((e,o)=>{e?t({cid:e}):n(o)})),void 0!==md&&(e=md,o=gd,yd.forEach((t=>{t(e,o)})),yd.length=0)}))})),_d=e=>{},wd=e=>{},xd={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=9)},sizeType(e,t){t.sizeType=Su(e,bu)},sourceType(e,t){t.sourceType=Su(e,_u)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}},Sd={formatArgs:{sourceType(e,t){t.sourceType=Su(e,_u)},compressed:!0,maxDuration:60,camera:"back",extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}},Cd=(Boolean,["all","image","video"]),Td={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=100)},sourceType(e,t){t.sourceType=Su(e,_u)},type(e,t){t.type=xu(e,Cd)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=[""])}}},kd={formatArgs:{src(e,t){t.src=su(e)}}},Ed={formatArgs:{urls(e,t){t.urls=e.map((e=>y(e)&&e?su(e):""))},current(e,t){"number"==typeof e?t.current=e>0&&ee)),a={};i.forEach((e=>{const t=e.split("=");a[t[0]]=t[1]}));for(const s in t)if(f(t,s)){let e=t[s];null==e?e="":C(e)&&(e=JSON.stringify(e)),a[Pd(s)]=Pd(e)}return r=Object.keys(a).map((e=>`${e}=${a[e]}`)).join("&"),e+(r?"?"+r:"")+(o?"#"+o:"")}(e,t.data))},header(e,t){const n=t.header=e||{};t.method!==wu[0]&&(Object.keys(n).find((e=>"content-type"===e.toLowerCase()))||(n["Content-Type"]="application/json"))},dataType(e,t){t.dataType=(e||Od).toLowerCase()},responseType(e,t){t.responseType=(e||"").toLowerCase(),-1===$d.indexOf(t.responseType)&&(t.responseType="text")}}},Md={formatArgs:{filePath(e,t){e&&(t.filePath=su(e))},header(e,t){t.header=e||{}},formData(e,t){t.formData=e||{}}}};const Ld={url:{type:String,required:!0}},Bd=(Fd(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"]),Fd(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"]),Hd("navigateTo")),Nd=Hd("redirectTo"),Id=Hd("reLaunch"),Rd=Hd("switchTab"),jd={formatArgs:{delta(e,t){e=parseInt(e+"")||1,t.delta=Math.min(Vp().length-1,e)}}};function Fd(e){return{animationType:{type:String,validator(t){if(t&&-1===e.indexOf(t))return"`"+t+"` is not supported for `animationType` (supported values are: `"+e.join("`|`")+"`)"}},animationDuration:{type:Number}}}let Dd;function Vd(){Dd=""}function Hd(e){return{formatArgs:{url:zd(e)},beforeAll:Vd}}function zd(e){return function(t,n){if(!t)return'Missing required args: "url"';const o=(t=function(e){if(0===e.indexOf("/"))return e;let t="";const n=Vp();return n.length&&(t=n[n.length-1].$page.route),bc(t,e)}(t)).split("?")[0],r=_c(o,!0);if(!r)return"page `"+t+"` is not found";if("navigateTo"===e||"redirectTo"===e){if(r.meta.isTabBar)return`can not ${e} a tabbar page`}else if("switchTab"===e&&!r.meta.isTabBar)return"can not switch to no-tabBar page";if("switchTab"!==e&&"preloadPage"!==e||!r.meta.isTabBar||"appLaunch"===n.openType||(t=o),r.meta.isEntry&&(t=t.replace(r.alias,"/")),n.url=function(e){if(!y(e))return e;const t=e.indexOf("?");if(-1===t)return e;const n=e.slice(t+1).trim().replace(/^(\?|#|&)/,"");if(!n)return e;e=e.slice(0,t);const o=[];return n.split("&").forEach((e=>{const t=e.replace(/\+/g," ").split("="),n=t.shift(),r=t.length>0?t.join("="):"";o.push(n+"="+encodeURIComponent(r))})),o.length?e+"?"+o.join("&"):e}(t),"unPreloadPage"!==e)if("preloadPage"!==e){if(Dd===t&&"appLaunch"!==n.openType)return`${Dd} locked`;__uniConfig.ready&&(Dd=t)}else if(r.meta.isTabBar){const e=Vp(),t=r.path.slice(1);if(e.find((e=>e.route===t)))return"tabBar page `"+t+"` already exists"}}}Boolean;const qd={formatArgs:{title:"",mask:!1}},Wd=(Boolean,{beforeInvoke(){_l()},formatArgs:{title:"",content:"",placeholderText:"",showCancel:!0,editable:!1,cancelText(e,t){if(!f(t,"cancelText")){const{t:e}=ml();t.cancelText=e("uni.showModal.cancel")}},cancelColor:"#000",confirmText(e,t){if(!f(t,"confirmText")){const{t:e}=ml();t.confirmText=e("uni.showModal.confirm")}},confirmColor:"#007aff"}}),Ud=["success","loading","none","error"],Xd=(Boolean,{formatArgs:{title:"",icon(e,t){t.icon=xu(e,Ud)},image(e,t){t.image=e?su(e):""},duration:1500,mask:!1}}),Yd={};function Kd(e,t){const n=Yd[e];return n?Promise.resolve(n):/^data:[a-z-]+\/[a-z-]+;base64,/.test(e)?Promise.resolve(function(e){const t=e.split(","),n=t[0].match(/:(.*?);/),o=n?n[1]:"",r=atob(t[1]);let i=r.length;const a=new Uint8Array(i);for(;i--;)a[i]=r.charCodeAt(i);return Gd(a,o)}(e)):t?Promise.reject(new Error("not find")):new Promise(((t,n)=>{const o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType="blob",o.onload=function(){t(this.response)},o.onerror=n,o.send()}))}function Gd(e,t){let n;if(e instanceof File)n=e;else{t=t||e.type||"";const r=`${Date.now()}${function(e){const t=e.split("/")[1];return t?`.${t}`:""}(t)}`;try{n=new File([e],r,{type:t})}catch(o){n=e=e instanceof Blob?e:new Blob([e],{type:t}),n.name=n.name||r}}return n}function Zd(e){for(const n in Yd)if(f(Yd,n)){if(Yd[n]===e)return n}var t=(window.URL||window.webkitURL).createObjectURL(e);return Yd[t]=e,t}function Jd(e){(window.URL||window.webkitURL).revokeObjectURL(e),delete Yd[e]}const Qd=Hc(),ef=Hc();const tf=Uc({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,{emit:t}){const n=tn(null),o=function(e){return()=>{const{firstElementChild:t,lastElementChild:n}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5}}(n),r=function(e,t,n){const o=Vt({width:-1,height:-1});return Yn((()=>c({},o)),(e=>t("resize",e))),()=>{const t=e.value;o.width=t.offsetWidth,o.height=t.offsetHeight,n()}}(n,t,o);return function(e,t,n,o){yo(o),Po((()=>{t.initial&&Sn(n);const r=e.value;r.offsetParent!==r.parentElement&&(r.parentElement.style.position="relative"),"AnimationEvent"in window||o()}))}(n,e,r,o),()=>Kr("uni-resize-sensor",{ref:n,onAnimationstartOnce:r},[Kr("div",{onScroll:r},[Kr("div",null,null)],40,["onScroll"]),Kr("div",{onScroll:r},[Kr("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});function nf(){}const of={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}};function rf(e,t,n){function o(e){const t=gi((()=>0===String(navigator.vendor).indexOf("Apple")));e.addEventListener("focus",(()=>{clearTimeout(undefined),document.addEventListener("click",nf,!1)}));e.addEventListener("blur",(()=>{t.value&&e.blur(),document.removeEventListener("click",nf,!1),t.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)}))}Yn((()=>t.value),(e=>e&&o(e)))}const af={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},sf={widthFix:["offsetWidth","height",(e,t)=>e/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},lf={aspectFit:["center center","contain"],aspectFill:["center center","cover"],widthFix:[,"100% 100%"],heightFix:[,"100% 100%"],top:["center top"],bottom:["center bottom"],center:["center center"],left:["left center"],right:["right center"],"top left":["left top"],"top right":["right top"],"bottom left":["left bottom"],"bottom right":["right bottom"]},cf=Uc({name:"Image",props:af,setup(e,{emit:t}){const n=tn(null),o=function(e,t){const n=tn(""),o=gi((()=>{let e="auto",o="";const r=lf[t.mode];return r?(r[0]&&(o=r[0]),r[1]&&(e=r[1])):(o="0% 0%",e="100% 100%"),`background-image:${n.value?'url("'+n.value+'")':"none"};background-position:${o};background-size:${e};`})),r=Vt({rootEl:e,src:gi((()=>t.src?su(t.src):"")),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:o,imgSrc:n});return Po((()=>{const t=e.value.style;r.origWidth=Number(t.width)||0,r.origHeight=Number(t.height)||0})),r}(n,e),r=Kc(n,t),{fixSize:i}=function(e,t,n){const o=()=>{const{mode:o}=t,r=sf[o];if(!r)return;const{origWidth:i,origHeight:a}=n,s=i&&a?i/a:0;if(!s)return;const l=e.value,c=l[r[0]];c&&(l.style[r[1]]=function(e){uf&&e>10&&(e=2*Math.round(e/2));return e}(r[2](c,s))+"px")},r=()=>{const{style:t}=e.value,{origStyle:{width:o,height:r}}=n;t.width=o,t.height=r};return Yn((()=>t.mode),((e,t)=>{sf[t]&&r(),sf[e]&&o()})),{fixSize:o,resetSize:r}}(n,e,o);return function(e,t,n,o,r){let i,a;const s=(t=0,n=0,o="")=>{e.origWidth=t,e.origHeight=n,e.imgSrc=o},l=l=>{if(!l)return c(),void s();i=i||new Image,i.onload=e=>{const{width:u,height:d}=i;s(u,d,l),o(),i.draggable=t.draggable,a&&a.remove(),a=i,n.value.appendChild(i),c(),r("load",e,{width:u,height:d})},i.onerror=t=>{s(),c(),r("error",t,{errMsg:`GET ${e.src} 404 (Not Found)`})},i.src=l},c=()=>{i&&(i.onload=null,i.onerror=null,i=null)};Yn((()=>e.src),(e=>l(e))),Yn((()=>e.imgSrc),(e=>{!e&&a&&(a.remove(),a=null)})),Po((()=>l(e.src))),Lo((()=>c()))}(o,e,n,i,r),()=>Kr("uni-image",{ref:n},[Kr("div",{style:o.modeStyle},null,4),sf[e.mode]?Kr(tf,{onResize:i},null,8,["onResize"]):Kr("span",null,null)],512)}});const uf="Google Inc."===navigator.vendor;const df=ge(!0),ff=[];let pf,hf=0;const mf=e=>ff.forEach((t=>t.userAction=e));function gf(e={userAction:!1}){if(!pf){["touchstart","touchmove","touchend","mousedown","mouseup"].forEach((e=>{document.addEventListener(e,(function(){!hf&&mf(!0),hf++,setTimeout((()=>{!--hf&&mf(!1)}),0)}),df)})),pf=!0}ff.push(e)}const vf=()=>!!hf;function yf(){const e=Vt({userAction:!1});return Po((()=>{gf(e)})),Lo((()=>{!function(e){const t=ff.indexOf(e);t>=0&&ff.splice(t,1)}(e)})),{state:e}}function bf(e,t){const n=document.activeElement;if(!n)return t({});const o={};["input","textarea"].includes(n.tagName.toLowerCase())&&(o.start=n.selectionStart,o.end=n.selectionEnd),t(o)}const _f=function(){var e,t,n;e=uc(),n=bf,t=Tl(e,t="getSelectedTextRange"),Cl[t]||(Cl[t]=n)};function wf(e,t){return"number"===t&&isNaN(Number(e))&&(e=""),null===e?"":String(e)}const xf=["none","text","decimal","numeric","tel","search","email","url"],Sf=c({},{name:{type:String,default:""},modelValue:{type:[String,Number],default:""},value:{type:[String,Number],default:""},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},confirmHold:{type:Boolean,default:!1},ignoreCompositionEvent:{type:Boolean,default:!0},step:{type:String,default:"0.000000000000000001"},inputmode:{type:String,default:void 0,validator:e=>!!~xf.indexOf(e)},cursorColor:{type:String,default:""}},of),Cf=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend","keyboardheightchange"];function Tf(e,t,n,o){const r=xe((n=>{t.value=wf(n,e.type)}),100,{setTimeout:setTimeout,clearTimeout:clearTimeout});Yn((()=>e.modelValue),r),Yn((()=>e.value),r);const i=function(e,t){let n,o,r=0;const i=function(...i){const a=Date.now();clearTimeout(n),o=()=>{o=null,r=a,e.apply(this,i)},a-r{r.cancel(),n("update:modelValue",t.value),n("update:value",t.value),o("input",e,t)}),100);return $o((()=>{r.cancel(),i.cancel()})),{trigger:o,triggerInput:(e,t,n)=>{r.cancel(),i(e,t),n&&i.flush()}}}function kf(e,t){yf();const n=gi((()=>e.autoFocus||e.focus));function o(){if(!n.value)return;const e=t.value;e?e.focus():setTimeout(o,100)}Yn((()=>e.focus),(e=>{e?o():function(){const e=t.value;e&&e.blur()}()})),Po((()=>{n.value&&Sn(o)}))}function Ef(e,t,n,o){_f();const{fieldRef:r,state:i,trigger:a}=function(e,t,n){const o=tn(null),r=Kc(t,n),i=gi((()=>{const t=Number(e.selectionStart);return isNaN(t)?-1:t})),a=gi((()=>{const t=Number(e.selectionEnd);return isNaN(t)?-1:t})),s=gi((()=>{const t=Number(e.cursor);return isNaN(t)?-1:t})),l=gi((()=>{var t=Number(e.maxlength);return isNaN(t)?140:t})),c=wf(e.modelValue,e.type)||wf(e.value,e.type),u=Vt({value:c,valueOrigin:c,maxlength:l,focus:e.focus,composing:!1,selectionStart:i,selectionEnd:a,cursor:s});return Yn((()=>u.focus),(e=>n("update:focus",e))),Yn((()=>u.maxlength),(e=>u.value=u.value.slice(0,e))),{fieldRef:o,state:u,trigger:r}}(e,t,n),{triggerInput:s}=Tf(e,i,n,a);kf(e,r),rf(0,r);const{state:l}=function(){const e=Vt({attrs:{}});return Po((()=>{let t=si();for(;t;){const n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&"page"===t.proxy.$mpType?null:t.parent}})),{state:e}}();!function(e,t){const n=Wn(Qc,!1);if(!n)return;const o=si(),r={submit(){const n=o.proxy;return[n[e],y(t)?n[t]:t.value]},reset(){y(t)?o.proxy[t]="":t.value=""}};n.addField(r),Lo((()=>{n.removeField(r)}))}("name",i),function(e,t,n,o,r,i){function a(){const n=e.value;n&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&"number"!==n.type&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd)}function s(){const n=e.value;n&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&"number"!==n.type&&(n.selectionEnd=n.selectionStart=t.cursor)}function l(e){return"number"===e.type?null:e.selectionEnd}Yn([()=>t.selectionStart,()=>t.selectionEnd],a),Yn((()=>t.cursor),s),Yn((()=>e.value),(function(){const c=e.value;if(!c)return;const u=function(e,o){e.stopPropagation(),v(i)&&!1===i(e,t)||(t.value=c.value,t.composing&&n.ignoreCompositionEvent||r(e,{value:c.value,cursor:l(c)},o))};function d(e){n.ignoreCompositionEvent||o(e.type,e,{value:e.data})}c.addEventListener("change",(e=>e.stopPropagation())),c.addEventListener("focus",(function(e){t.focus=!0,o("focus",e,{value:t.value}),a(),s()})),c.addEventListener("blur",(function(e){t.composing&&(t.composing=!1,u(e,!0)),t.focus=!1,o("blur",e,{value:t.value,cursor:l(e.target)})})),c.addEventListener("input",u),c.addEventListener("compositionstart",(e=>{e.stopPropagation(),t.composing=!0,d(e)})),c.addEventListener("compositionend",(e=>{e.stopPropagation(),t.composing&&(t.composing=!1,u(e)),d(e)})),c.addEventListener("compositionupdate",d)}))}(r,i,e,a,s,o);return{fieldRef:r,state:i,scopedAttrsState:l,fixDisabledColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image"),trigger:a}}const Of=Uc({name:"Input",props:c({},Sf,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),emits:["confirm",...Cf],setup(e,{emit:t,expose:n}){const o=["text","number","idcard","digit","password","tel"],r=["off","one-time-code"],i=gi((()=>{let t="";switch(e.type){case"text":"search"===e.confirmType&&(t="search");break;case"idcard":t="text";break;case"digit":t="number";break;default:t=~o.includes(e.type)?e.type:"text"}return e.password?"password":t})),a=gi((()=>{const t=r.indexOf(e.textContentType),n=r.indexOf(A(e.textContentType));return r[-1!==t?t:-1!==n?n:0]}));let s,l=tn("");const c=tn(null),{fieldRef:u,state:d,scopedAttrsState:f,fixDisabledColor:p,trigger:h}=Ef(e,c,t,((e,t)=>{const n=e.target;if("number"===i.value){if(s&&(n.removeEventListener("blur",s),s=null),n.validity&&!n.validity.valid){if((!l.value||!n.value)&&"-"===e.data||"-"===l.value[0]&&"deleteContentBackward"===e.inputType)return l.value="-",t.value="",s=()=>{l.value=n.value=""},n.addEventListener("blur",s),!1;if(l.value)if(-1!==l.value.indexOf(".")){if("."!==e.data&&"deleteContentBackward"===e.inputType){const e=l.value.indexOf(".");return l.value=n.value=t.value=l.value.slice(0,e),!0}}else if("."===e.data)return l.value+=".",s=()=>{l.value=n.value=l.value.slice(0,-1)},n.addEventListener("blur",s),!1;return l.value=t.value=n.value="-"===l.value?"":l.value,!1}l.value=n.value;const o=t.maxlength;if(o>0&&n.value.length>o)return n.value=n.value.slice(0,o),t.value=n.value,!1}}));Yn((()=>d.value),(t=>{"number"!==e.type||"-"===l.value&&""===t||(l.value=t)}));const m=["number","digit"],g=gi((()=>m.includes(e.type)?e.step:""));function v(t){if("Enter"!==t.key)return;const n=t.target;t.stopPropagation(),h("confirm",t,{value:n.value}),!e.confirmHold&&n.blur()}return n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),d.value=e.value}}),()=>{let t=e.disabled&&p?Kr("input",{key:"disabled-input",ref:u,value:d.value,tabindex:"-1",readonly:!!e.disabled,type:i.value,maxlength:d.maxlength,step:g.value,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},onFocus:e=>e.target.blur()},null,44,["value","readonly","type","maxlength","step","onFocus"]):Fo(Kr("input",{key:"input",ref:u,"onUpdate:modelValue":e=>d.value=e,disabled:!!e.disabled,type:i.value,maxlength:d.maxlength,step:g.value,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":void 0,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},autocomplete:a.value,onKeyup:v,inputmode:e.inputmode},null,44,["onUpdate:modelValue","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup","inputmode"]),[[ha,d.value]]);return Kr("uni-input",{ref:c},[Kr("div",{class:"uni-input-wrapper"},[Fo(Kr("div",ni(f.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[ba,!(d.value.length||"-"===l.value)]]),"search"===e.confirmType?Kr("form",{action:"",onSubmit:e=>e.preventDefault(),class:"uni-input-form"},[t],40,["onSubmit"]):t])],512)}}});const $f=["class","style"],Pf=/^on[A-Z]+/,Af=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n=[]}=e,o=si(),r=nn({}),i=nn({}),a=nn({}),s=n.concat($f);return o.attrs=Vt(o.attrs),Un((()=>{const e=(n=o.attrs,Object.keys(n).map((e=>[e,n[e]]))).reduce(((e,[n,o])=>(s.includes(n)?e.exclude[n]=o:Pf.test(n)?(t||(e.attrs[n]=o),e.listeners[n]=o):e.attrs[n]=o,e)),{exclude:{},attrs:{},listeners:{}});var n;r.value=e.attrs,i.value=e.listeners,a.value=e.exclude})),{$attrs:r,$listeners:i,$excludeAttrs:a}};function Mf(e){const t=[];return p(e)&&e.forEach((e=>{zr(e)?e.type===Ar?t.push(...Mf(e.children)):t.push(e):p(e)&&t.push(...Mf(e))})),t}const Lf=Uc({inheritAttrs:!1,name:"MovableArea",props:{scaleArea:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=tn(null),o=tn(!1);let{setContexts:r,events:i}=function(e,t){const n=tn(0),o=tn(0),r=Vt({x:null,y:null}),i=tn(null);let a=null,s=[];function l(t){t&&1!==t&&(e.scaleArea?s.forEach((function(e){e._setScale(t)})):a&&a._setScale(t))}function c(e,n=s){let o=t.value;function r(e){for(let t=0;t{let n=t.touches;if(n&&n.length>1){let t={x:n[1].pageX-n[0].pageX,y:n[1].pageY-n[0].pageY};if(i.value=Bf(t),r.x=t.x,r.y=t.y,!e.scaleArea){let e=c(n[0].target),t=c(n[1].target);a=e&&e===t?e:null}}})),d=Yc((e=>{let t=e.touches;if(t&&t.length>1){e.preventDefault();let n={x:t[1].pageX-t[0].pageX,y:t[1].pageY-t[0].pageY};if(null!==r.x&&i.value&&i.value>0){l(Bf(n)/i.value)}r.x=n.x,r.y=n.y}})),f=Yc((t=>{let n=t.touches;n&&n.length||t.changedTouches&&(r.x=0,r.y=0,i.value=null,e.scaleArea?s.forEach((function(e){e._endScale()})):a&&a._endScale())}));function p(){h(),s.forEach((function(e,t){e.setParent()}))}function h(){let e=window.getComputedStyle(t.value),r=t.value.getBoundingClientRect();n.value=r.width-["Left","Right"].reduce((function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])}),0),o.value=r.height-["Top","Bottom"].reduce((function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])}),0)}return qn("movableAreaWidth",n),qn("movableAreaHeight",o),{setContexts(e){s=e},events:{_onTouchstart:u,_onTouchmove:d,_onTouchend:f,_resize:p}}}(e,n);const{$listeners:a,$attrs:s,$excludeAttrs:l}=Af(),c=a.value;["onTouchstart","onTouchmove","onTouchend"].forEach((e=>{let t=c[e],n=i[`_${e}`];c[e]=t?[].concat(t,n):n})),Po((()=>{i._resize(),o.value=!0}));let u=[];const d=[];function f(){const e=[];for(let t=0;tn===e.rootRef.value));o&&e.push(Kt(o))}r(e)}return qn("_isMounted",o),qn("movableAreaRootRef",n),qn("addMovableViewContext",(e=>{d.push(e),f()})),qn("removeMovableViewContext",(e=>{const t=d.indexOf(e);t>=0&&(d.splice(t,1),f())})),()=>{const e=t.default&&t.default();return u=Mf(e),Kr("uni-movable-area",ni({ref:n},s.value,l.value,c),[Kr(tf,{onResize:i._resize},null,8,["onResize"]),u],16)}}});function Bf(e){return Math.sqrt(e.x*e.x+e.y*e.y)}const Nf=function(e,t,n,o){e.addEventListener(t,(e=>{v(n)&&!1===n(e)&&((void 0===e.cancelable||e.cancelable)&&e.preventDefault(),e.stopPropagation())}),{passive:!1})};let If,Rf;function jf(e,t,n){Lo((()=>{document.removeEventListener("mousemove",If),document.removeEventListener("mouseup",Rf)}));let o=0,r=0,i=0,a=0;const s=function(e,n,s,l){if(!1===t({cancelable:e.cancelable,target:e.target,currentTarget:e.currentTarget,preventDefault:e.preventDefault.bind(e),stopPropagation:e.stopPropagation.bind(e),touches:e.touches,changedTouches:e.changedTouches,detail:{state:n,x:s,y:l,dx:s-o,dy:l-r,ddx:s-i,ddy:l-a,timeStamp:e.timeStamp}}))return!1};let l,c,u=null;Nf(e,"touchstart",(function(e){if(l=!0,1===e.touches.length&&!u)return u=e,o=i=e.touches[0].pageX,r=a=e.touches[0].pageY,s(e,"start",o,r)})),Nf(e,"mousedown",(function(e){if(c=!0,!l&&!u)return u=e,o=i=e.pageX,r=a=e.pageY,s(e,"start",o,r)})),Nf(e,"touchmove",(function(e){if(1===e.touches.length&&u){const t=s(e,"move",e.touches[0].pageX,e.touches[0].pageY);return i=e.touches[0].pageX,a=e.touches[0].pageY,t}}));const d=If=function(e){if(!l&&c&&u){const t=s(e,"move",e.pageX,e.pageY);return i=e.pageX,a=e.pageY,t}};document.addEventListener("mousemove",d),Nf(e,"touchend",(function(e){if(0===e.touches.length&&u)return l=!1,u=null,s(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)}));const f=Rf=function(e){if(c=!1,!l&&u)return u=null,s(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",f),Nf(e,"touchcancel",(function(e){if(u){l=!1;const t=u;return u=null,s(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}}))}function Ff(e,t,n){return e>t-n&ðis._t&&(e=this._t,this._lastDt=e);let t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,n=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&tthis._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&nthis._endPositionY)&&(n=this._endPositionY),{x:t,y:n}},Hf.prototype.ds=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t),{dx:this._x_v+this._x_a*e,dy:this._y_v+this._y_a*e}},Hf.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},Hf.prototype.dt=function(){return-this._x_v/this._x_a},Hf.prototype.done=function(){const e=Ff(this.s().x,this._endPositionX)||Ff(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},Hf.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},Hf.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},zf.prototype._solve=function(e,t){const n=this._c,o=this._m,r=this._k,i=n*n-4*o*r;if(0===i){const r=-n/(2*o),i=e,a=t/(r*e);return{x:function(e){return(i+a*e)*Math.pow(Math.E,r*e)},dx:function(e){const t=Math.pow(Math.E,r*e);return r*(i+a*e)*t+a*t}}}if(i>0){const r=(-n-Math.sqrt(i))/(2*o),a=(-n+Math.sqrt(i))/(2*o),s=(t-r*e)/(a-r),l=e-s;return{x:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,r*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),l*t+s*n},dx:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,r*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),l*r*t+s*a*n}}}const a=Math.sqrt(4*o*r-n*n)/(2*o),s=-n/2*o,l=e,c=(t-s*e)/a;return{x:function(e){return Math.pow(Math.E,s*e)*(l*Math.cos(a*e)+c*Math.sin(a*e))},dx:function(e){const t=Math.pow(Math.E,s*e),n=Math.cos(a*e),o=Math.sin(a*e);return t*(c*a*n-l*a*o)+s*t*(c*o+l*n)}}},zf.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},zf.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},zf.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!Df(t,.1)){t=t||0;let o=this._endPosition;this._solution&&(Df(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),Df(t,.1)&&(t=0),Df(o,.1)&&(o=0),o+=this._endPosition),this._solution&&Df(o-e,.1)&&Df(t,.1)||(this._endPosition=e,this._solution=this._solve(o-this._endPosition,t),this._startTime=n)}},zf.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},zf.prototype.done=function(e){return e||(e=(new Date).getTime()),Ff(this.x(),this._endPosition,.1)&&Df(this.dx(),.1)},zf.prototype.reconfigure=function(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},zf.prototype.springConstant=function(){return this._k},zf.prototype.damping=function(){return this._c},zf.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]},qf.prototype.setEnd=function(e,t,n,o){const r=(new Date).getTime();this._springX.setEnd(e,o,r),this._springY.setEnd(t,o,r),this._springScale.setEnd(n,o,r),this._startTime=r},qf.prototype.x=function(){const e=((new Date).getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},qf.prototype.done=function(){const e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},qf.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)};function Wf(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}const Uf=Uc({name:"MovableView",props:{direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.5},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},emits:["change","scale"],setup(e,{slots:t,emit:n}){const o=tn(null),r=Kc(o,n),{setParent:i}=function(e,t,n){const o=Wn("_isMounted",tn(!1)),r=Wn("addMovableViewContext",(()=>{})),i=Wn("removeMovableViewContext",(()=>{}));let a,s,l=tn(1),c=tn(1),u=tn(!1),d=tn(0),f=tn(0),p=null,h=null,m=!1,g=null,v=null;const y=new Vf,b=new Vf,_={historyX:[0,0],historyY:[0,0],historyT:[0,0]},w=gi((()=>{let t=Number(e.friction);return isNaN(t)||t<=0?2:t})),x=new Hf(1,w.value);Yn((()=>e.disabled),(()=>{W()}));const{_updateOldScale:S,_endScale:C,_setScale:T,scaleValueSync:k,_updateBoundary:E,_updateOffset:O,_updateWH:$,_scaleOffset:P,minX:A,minY:M,maxX:L,maxY:B,FAandSFACancel:N,_getLimitXY:I,_setTransform:R,_revise:j,dampingNumber:F,xMove:D,yMove:V,xSync:H,ySync:z,_STD:q}=function(e,t,n,o,r,i,a,s,l,c){const u=gi((()=>{let t=Number(e.scaleMin);return isNaN(t)?.5:t})),d=gi((()=>{let t=Number(e.scaleMax);return isNaN(t)?10:t})),f=tn(Number(e.scaleValue)||1);Yn(f,(e=>{R(e)})),Yn(u,(()=>{I()})),Yn(d,(()=>{I()})),Yn((()=>e.scaleValue),(e=>{f.value=Number(e)||0}));const{_updateBoundary:p,_updateOffset:h,_updateWH:m,_scaleOffset:g,minX:v,minY:y,maxX:b,maxY:_}=function(e,t,n){const o=Wn("movableAreaWidth",tn(0)),r=Wn("movableAreaHeight",tn(0)),i=Wn("movableAreaRootRef"),a={x:0,y:0},s={x:0,y:0},l=tn(0),c=tn(0),u=tn(0),d=tn(0),f=tn(0),p=tn(0);function h(){let e=0-a.x+s.x,t=o.value-l.value-a.x-s.x;u.value=Math.min(e,t),f.value=Math.max(e,t);let n=0-a.y+s.y,i=r.value-c.value-a.y-s.y;d.value=Math.min(n,i),p.value=Math.max(n,i)}function m(){a.x=Kf(e.value,i.value),a.y=Gf(e.value,i.value)}function g(o){o=o||t.value,o=n(o);let r=e.value.getBoundingClientRect();c.value=r.height/t.value,l.value=r.width/t.value;let i=c.value*o,a=l.value*o;s.x=(a-l.value)/2,s.y=(i-c.value)/2}return{_updateBoundary:h,_updateOffset:m,_updateWH:g,_scaleOffset:s,minX:u,minY:d,maxX:f,maxY:p}}(t,o,N),{FAandSFACancel:w,_getLimitXY:x,_animationTo:S,_setTransform:C,_revise:T,dampingNumber:k,xMove:E,yMove:O,xSync:$,ySync:P,_STD:A}=function(e,t,n,o,r,i,a,s,l,c,u,d,f,p){const h=gi((()=>{let e=Number(t.damping);return isNaN(e)?20:e})),m=gi((()=>"all"===t.direction||"horizontal"===t.direction)),g=gi((()=>"all"===t.direction||"vertical"===t.direction)),v=tn(Jf(t.x)),y=tn(Jf(t.y));Yn((()=>t.x),(e=>{v.value=Jf(e)})),Yn((()=>t.y),(e=>{y.value=Jf(e)})),Yn(v,(e=>{T(e)})),Yn(y,(e=>{k(e)}));const b=new qf(1,9*Math.pow(h.value,2)/40,h.value);function _(e,t){let n=!1;return e>r.value?(e=r.value,n=!0):ei.value?(t=i.value,n=!0):t1?"htouchmove":"vtouchmove"),D.value&&(n=t.detail.dx+a,_.historyX.shift(),_.historyX.push(n),V.value||null!==g||(g=Math.abs(t.detail.dx/t.detail.dy)<1)),V.value&&(o=t.detail.dy+s,_.historyY.shift(),_.historyY.push(o),D.value||null!==g||(g=Math.abs(t.detail.dy/t.detail.dx)<1)),_.historyT.shift(),_.historyT.push(t.detail.timeStamp),!g){t.preventDefault();let r="touch";nL.value&&(e.outOfBounds?(r="touch-out-of-bounds",n=L.value+y.x(n-L.value)):n=L.value),oB.value&&(e.outOfBounds?(r="touch-out-of-bounds",o=B.value+b.x(o-B.value)):o=B.value),Yf((function(){R(n,o,l.value,r)}))}}}function X(){if(!u.value&&!e.disabled&&m&&(n.value.style.willChange="auto",m=!1,!g&&!j("out-of-bounds")&&e.inertia)){const e=1e3*(_.historyX[1]-_.historyX[0])/(_.historyT[1]-_.historyT[0]),t=1e3*(_.historyY[1]-_.historyY[0])/(_.historyT[1]-_.historyT[0]),n=d.value,o=f.value;x.setV(e,t),x.setS(n,o);const r=x.delta().x,i=x.delta().y;let a=r+n,s=i+o;aL.value&&(a=L.value,s=o+(L.value-n)*i/r),sB.value&&(s=B.value,a=n+(B.value-o)*r/i),x.setEnd(a,s),h=Zf(x,(function(){let e=x.s(),t=e.x,n=e.y;R(t,n,l.value,"friction")}),(function(){h.cancel()}))}e.outOfBounds||e.inertia||N()}function Y(){if(!o.value)return;N();let t=e.scale?k.value:1;O(),$(t),E();let n=I(H.value+P.x,z.value+P.y),r=n.x,i=n.y;R(r,i,t,"",!0),S(t)}return Po((()=>{jf(n.value,(e=>{switch(e.detail.state){case"start":W();break;case"move":U(e);break;case"end":X()}})),Y(),x.reconfigure(1,w.value),q.reconfigure(1,9*Math.pow(F.value,2)/40,F.value),n.value.style.transformOrigin="center";const e={rootRef:n,setParent:Y,_endScale:C,_setScale:T};r(e),Bo((()=>{i(e)}))})),Bo((()=>{N()})),{setParent:Y}}(e,r,o);return()=>Kr("uni-movable-view",{ref:o},[Kr(tf,{onResize:i},null,8,["onResize"]),t.default&&t.default()],512)}});let Xf=!1;function Yf(e){Xf||(Xf=!0,requestAnimationFrame((function(){e(),Xf=!1})))}function Kf(e,t){if(e===t)return 0;let n=e.offsetLeft;return e.offsetParent?n+=Kf(e.offsetParent,t):0}function Gf(e,t){if(e===t)return 0;let n=e.offsetTop;return e.offsetParent?n+=Gf(e.offsetParent,t):0}function Zf(e,t,n){let o={id:0,cancelled:!1};return function e(t,n,o,r){if(!t||!t.cancelled){o(n);let i=n.done();i||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,r))),i&&r&&r(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}function Jf(e){return/\d+[ur]px$/i.test(e)?rd(parseFloat(e)):Number(e)||0}const Qf=["navigate","redirect","switchTab","reLaunch","navigateBack"],ep=["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"],tp=["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"],np={hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator:e=>Boolean(~Qf.indexOf(e))},delta:{type:Number,default:1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:600},exists:{type:String,default:""},hoverStopPropagation:{type:Boolean,default:!1},animationType:{type:String,default:"",validator:e=>!e||ep.concat(tp).includes(e)},animationDuration:{type:[String,Number],default:300}};c({},np,{renderLink:{type:Boolean,default:!0}});const op="#007aff",rp="backwards",ip=Uc({name:"Progress",props:{percent:{type:[Number,String],default:0,validator:e=>!isNaN(parseFloat(e))},fontSize:{type:[String,Number],default:16},showInfo:{type:[Boolean,String],default:!1},strokeWidth:{type:[Number,String],default:6,validator:e=>!isNaN(parseFloat(e))},color:{type:String,default:op},activeColor:{type:String,default:op},backgroundColor:{type:String,default:"#EBEBEB"},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:rp},duration:{type:[Number,String],default:30,validator:e=>!isNaN(parseFloat(e))},borderRadius:{type:[Number,String],default:0}},setup(e){const t=tn(null),n=function(e){const t=tn(0),n=gi((()=>`background-color: ${e.backgroundColor}; height: ${e.strokeWidth}px;`)),o=gi((()=>{const n=e.color!==op&&e.activeColor===op?e.color:e.activeColor;return`width: ${t.value}%;background-color: ${n}`})),r=gi((()=>{let t=parseFloat(e.percent);return t<0&&(t=0),t>100&&(t=100),t}));return Vt({outerBarStyle:n,innerBarStyle:o,realPercent:r,currentPercent:t,strokeTimer:0,lastPercent:0})}(e);return ap(n,e),Yn((()=>n.realPercent),((t,o)=>{n.strokeTimer&&clearInterval(n.strokeTimer),n.lastPercent=o||0,ap(n,e)})),()=>{const{showInfo:o}=e,{outerBarStyle:r,innerBarStyle:i,currentPercent:a}=n;return Kr("uni-progress",{class:"uni-progress",ref:t},[Kr("div",{style:r,class:"uni-progress-bar"},[Kr("div",{style:i,class:"uni-progress-inner-bar"},null,4)],4),o?Kr("p",{class:"uni-progress-info"},[a+"%"]):""],512)}}});function ap(e,t){t.active?(e.currentPercent=t.activeMode===rp?0:e.lastPercent,e.strokeTimer=setInterval((()=>{e.currentPercent+1>e.realPercent?(e.currentPercent=e.realPercent,e.strokeTimer&&clearInterval(e.strokeTimer)):e.currentPercent+=1}),parseFloat(t.duration))):e.currentPercent=e.realPercent}function sp(e,t,n,o,r,i){function a(){c&&(clearTimeout(c),c=null)}let s,l,c=null,u=!0,d=0,f=1,p=null,h=!1,m=0,g="";const v=gi((()=>n.value.length>t.displayMultipleItems)),y=gi((()=>e.circular&&v.value));function b(r){Math.floor(2*d)===Math.floor(2*r)&&Math.ceil(2*d)===Math.ceil(2*r)||y.value&&function(o){if(!u)for(let r=n.value,i=r.length,a=o+t.displayMultipleItems,s=0;s=c.length&&(r-=c.length),r=s%1>.5||s<0?r-1:r,i("transition",{},{dx:e.vertical?0:r*l.offsetWidth,dy:e.vertical?r*l.offsetHeight:0})}function _(e){const o=n.value.length;if(!o)return-1;const r=(Math.round(e)%o+o)%o;if(y.value){if(o<=t.displayMultipleItems)return 0}else if(r>o-t.displayMultipleItems)return o-t.displayMultipleItems;return r}function w(){p=null}function x(){if(!p)return void(h=!1);const e=p,o=e.toPos,r=e.acc,a=e.endTime,c=e.source,u=a-Date.now();if(u<=0){b(o),p=null,h=!1,s=null;const e=n.value[t.current];if(e){const n=e.getItemId();i("animationfinish",{},{current:t.current,currentItemId:n,source:c})}return}b(o+r*u*u/2),l=requestAnimationFrame(x)}function S(e,o,r){w();const i=t.duration,a=n.value.length;let s=d;if(y.value)if(r<0){for(;se;)s-=a}else if(r>0){for(;s>e;)s-=a;for(;s+ae;)s-=a;s+a-ee.current,()=>e.currentItemId,()=>[...n.value]],(()=>{let o=-1;if(e.currentItemId)for(let t=0,r=n.value;te.vertical,()=>y.value,()=>t.displayMultipleItems,()=>[...n.value]],(function(){a(),p&&(b(p.toPos),p=null);const r=n.value;for(let t=0;t0&&f<1||(f=1)}const s=d;d=-2;const l=t.current;l>=0?(u=!1,t.userTracking?(b(s+l-m),m=l):(b(l),e.autoplay&&C())):(u=!0,b(-t.displayMultipleItems-1))})),Yn((()=>t.interval),(()=>{c&&(a(),C())})),Yn((()=>t.current),((e,o)=>{!function(e,o){const r=g;g="";const a=n.value;if(!r){const t=a.length;S(e,"",y.value&&o+(t-e)%t>t/2?1:0)}const s=a[e];if(s){const e=t.currentItemId=s.getItemId();i("change",{},{current:t.current,currentItemId:e,source:r})}}(e,o),r("update:current",e)})),Yn((()=>t.currentItemId),(e=>{r("update:currentItemId",e)})),Yn((()=>e.autoplay&&!t.userTracking),T),T(e.autoplay&&!t.userTracking),Po((()=>{let r=!1,i=0,s=0;function l(e){t.userTracking=!1;const n=i/Math.abs(i);let o=0;!e&&Math.abs(i)>.2&&(o=.5*n);const r=_(d+o);e?b(m):(g="touch",t.current=r,S(r,"touch",0!==o?o:0===r&&y.value&&d>=1?1:0))}jf(o.value,(c=>{if(!e.disableTouch&&!u){if("start"===c.detail.state)return t.userTracking=!0,r=!1,a(),m=d,i=0,s=Date.now(),void w();if("end"===c.detail.state)return l(!1);if("cancel"===c.detail.state)return l(!0);if(t.userTracking){if(!r){r=!0;const n=Math.abs(c.detail.dx),o=Math.abs(c.detail.dy);if((n>=o&&e.vertical||n<=o&&!e.vertical)&&(t.userTracking=!1),!t.userTracking)return void(e.autoplay&&C())}return function(r){const a=s;s=Date.now();const l=n.value.length-t.displayMultipleItems;function c(e){return.5-.25/(e+.5)}function u(e,t){let n=m+e;i=.6*i+.4*t,y.value||(n<0||n>l)&&(n<0?n=-c(-n):n>l&&(n=l+c(n-l)),i=0),b(n)}const d=s-a||1,f=o.value;e.vertical?u(-r.dy/f.offsetHeight,-r.ddy/d):u(-r.dx/f.offsetWidth,-r.ddx/d)}(c.detail),!1}}}))})),Bo((()=>{a(),cancelAnimationFrame(l)})),{onSwiperDotClick:function(e){S(t.current=e,g="click",y.value?1:0)},circularEnabled:y,swiperEnabled:v}}const lp=Uc({name:"Swiper",props:{indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1},navigation:{type:[Boolean,String],default:!1},navigationColor:{type:String,default:"#fff"},navigationActiveColor:{type:String,default:"rgba(53, 53, 53, 0.6)"}},emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,{slots:t,emit:n}){const o=tn(null),r=Kc(o,n),i=tn(null),a=tn(null),s=function(e){return Vt({interval:gi((()=>{const t=Number(e.interval);return isNaN(t)?5e3:t})),duration:gi((()=>{const t=Number(e.duration);return isNaN(t)?500:t})),displayMultipleItems:gi((()=>{const t=Math.round(e.displayMultipleItems);return isNaN(t)?1:t})),current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1})}(e),l=gi((()=>{let t={};return(e.nextMargin||e.previousMargin)&&(t=e.vertical?{left:0,right:0,top:nc(e.previousMargin,!0),bottom:nc(e.nextMargin,!0)}:{top:0,bottom:0,left:nc(e.previousMargin,!0),right:nc(e.nextMargin,!0)}),t})),c=gi((()=>{const t=Math.abs(100/s.displayMultipleItems)+"%";return{width:e.vertical?"100%":t,height:e.vertical?t:"100%"}}));let u=[];const d=[],f=tn([]);function p(){const e=[];for(let t=0;tn===e.rootRef.value));o&&e.push(Kt(o))}f.value=e}qn("addSwiperContext",(function(e){d.push(e),p()}));qn("removeSwiperContext",(function(e){const t=d.indexOf(e);t>=0&&(d.splice(t,1),p())}));const{onSwiperDotClick:h,circularEnabled:m,swiperEnabled:g}=sp(e,s,f,a,n,r);let v=()=>null;return v=cp(o,e,s,h,f,m,g),()=>{const n=t.default&&t.default();return u=Mf(n),Kr("uni-swiper",{ref:o},[Kr("div",{ref:i,class:"uni-swiper-wrapper"},[Kr("div",{class:"uni-swiper-slides",style:l.value},[Kr("div",{ref:a,class:"uni-swiper-slide-frame",style:c.value},[n],4)],4),e.indicatorDots&&Kr("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[f.value.map(((t,n,o)=>Kr("div",{onClick:()=>h(n),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":n=s.current||n{let s=!1,l=!1,u=!1,d=tn(!1);function f(e,n){const o=e.currentTarget;o&&(o.style.backgroundColor="over"===n?t.navigationActiveColor:"")}Un((()=>{s="auto"===t.navigation,d.value=!0!==t.navigation||s,b()})),Un((()=>{const e=r.value.length,t=!i.value;l=0===n.current&&t,u=n.current===e-1&&t||t&&n.current+n.displayMultipleItems>=e,a.value||(l=!0,u=!0,s&&(d.value=!0))}));const p={onMouseover:e=>f(e,"over"),onMouseout:e=>f(e,"out")};function h(e,t,a){if(e.stopPropagation(),a)return;const s=r.value.length;let l=n.current;switch(t){case"prev":l--,l<0&&i.value&&(l=s-1);break;case"next":l++,l>=s&&i.value&&(l=0)}o(l)}const m=()=>ac(ic,t.navigationColor,26);let g;const v=n=>{clearTimeout(g);const{clientX:o,clientY:r}=n,{left:i,right:a,top:s,bottom:l,width:c,height:u}=e.value.getBoundingClientRect();let f=!1;if(f=t.vertical?!(r-s{d.value=f}),300);d.value=f},y=()=>{d.value=!0};function b(){e.value&&(e.value.removeEventListener("mousemove",v),e.value.removeEventListener("mouseleave",y),s&&(e.value.addEventListener("mousemove",v),e.value.addEventListener("mouseleave",y)))}return Po(b),function(){const e={"uni-swiper-navigation-hide":d.value,"uni-swiper-navigation-vertical":t.vertical};return t.navigation?Kr(Ar,null,[Kr("div",ni({class:["uni-swiper-navigation uni-swiper-navigation-prev",c({"uni-swiper-navigation-disabled":l},e)],onClick:e=>h(e,"prev",l)},p),[m()],16,["onClick"]),Kr("div",ni({class:["uni-swiper-navigation uni-swiper-navigation-next",c({"uni-swiper-navigation-disabled":u},e)],onClick:e=>h(e,"next",u)},p),[m()],16,["onClick"])]):null}},up=Uc({name:"SwiperItem",props:{itemId:{type:String,default:""}},setup(e,{slots:t}){const n=tn(null),o={rootRef:n,getItemId:()=>e.itemId,getBoundingClientRect:()=>n.value.getBoundingClientRect(),updatePosition(e,t){const o=t?"0":100*e+"%",r=t?100*e+"%":"0",i=n.value,a=`translate(${o},${r}) translateZ(0)`;i&&(i.style.webkitTransform=a,i.style.transform=a)}};return Po((()=>{const e=Wn("addSwiperContext");e&&e(o)})),Bo((()=>{const e=Wn("removeSwiperContext");e&&e(o)})),()=>Kr("uni-swiper-item",{ref:n,style:{position:"absolute",width:"100%",height:"100%"}},[t.default&&t.default()],512)}}),dp=Uc({name:"Switch",props:{name:{type:String,default:""},checked:{type:[Boolean,String],default:!1},type:{type:String,default:"switch"},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:""}},emits:["change"],setup(e,{emit:t}){const n=tn(null),o=tn(e.checked),r=function(e,t){const n=Wn(Qc,!1),o=Wn(tu,!1),r={submit:()=>{const n=["",null];return e.name&&(n[0]=e.name,n[1]=t.value),n},reset:()=>{t.value=!1}};n&&(n.addField(r),Bo((()=>{n.removeField(r)})));return o}(e,o),i=Kc(n,t);Yn((()=>e.checked),(e=>{o.value=e}));const a=t=>{e.disabled||(o.value=!o.value,i("change",t,{value:o.value}))};return r&&(r.addHandler(a),Lo((()=>{r.removeHandler(a)}))),nu(e,{"label-click":a}),()=>{const{color:t,type:r}=e,i=Jc(e,"disabled"),s={};let l;return t&&o.value&&(s.backgroundColor=t,s.borderColor=t),l=o.value,Kr("uni-switch",ni({id:e.id,ref:n},i,{onClick:a}),[Kr("div",{class:"uni-switch-wrapper"},[Fo(Kr("div",{class:["uni-switch-input",[o.value?"uni-switch-input-checked":""]],style:s},null,6),[[ba,"switch"===r]]),Fo(Kr("div",{class:"uni-checkbox-input"},[l?ac(oc,e.color,22):""],512),[[ba,"checkbox"===r]])])],16,["id","onClick"])}}});const fp={ensp:" ",emsp:" ",nbsp:" "};function pp(e,t){return function(e,{space:t,decode:n}){let o="",r=!1;for(let i of e)t&&fp[t]&&" "===i&&(i=fp[t]),r?(o+="n"===i?"\n":"\\"===i?"\\":"\\"+i,r=!1):"\\"===i?r=!0:o+=i;return n?o.replace(/ /g,fp.nbsp).replace(/ /g,fp.ensp).replace(/ /g,fp.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"):o}(e,t).split("\n")}const hp=Uc({name:"Text",props:{selectable:{type:[Boolean,String],default:!1},space:{type:String,default:""},decode:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=tn(null);return()=>{const o=[];return t.default&&t.default().forEach((t=>{if(8&t.shapeFlag&&t.type!==Lr){const n=pp(t.children,{space:e.space,decode:e.decode}),r=n.length-1;n.forEach(((e,t)=>{(0!==t||e)&&o.push(Zr(e)),t!==r&&o.push(Kr("br"))}))}else o.push(t)})),Kr("uni-text",{ref:n,selectable:!!e.selectable||null},[Kr("span",null,o)],8,["selectable"])}}}),mp=c({},Sf,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator:e=>vp.concat("return").includes(e)}});let gp=!1;const vp=["done","go","next","search","send"];const yp=Uc({name:"Textarea",props:mp,emits:["confirm","linechange",...Cf],setup(e,{emit:t,expose:n}){const o=tn(null),r=tn(null),{fieldRef:i,state:a,scopedAttrsState:s,fixDisabledColor:l,trigger:c}=Ef(e,o,t),u=gi((()=>a.value.split("\n"))),d=gi((()=>vp.includes(e.confirmType))),f=tn(0),p=tn(null);function h({height:e}){f.value=e}function m(e){"Enter"===e.key&&d.value&&e.preventDefault()}function g(t){if("Enter"===t.key&&d.value){!function(e){c("confirm",e,{value:a.value})}(t);const n=t.target;!e.confirmHold&&n.blur()}}return Yn((()=>f.value),(t=>{const n=o.value,i=p.value,a=r.value;let s=parseFloat(getComputedStyle(n).lineHeight);isNaN(s)&&(s=i.offsetHeight);var l=Math.round(t/s);c("linechange",{},{height:t,heightRpx:750/window.innerWidth*t,lineCount:l}),e.autoHeight&&(n.style.height="auto",a.style.height=t+"px")})),function(){const e="(prefers-color-scheme: dark)";gp=0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")&&window.matchMedia(e).media!==e}(),n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),a.value=e.value}}),()=>{let t=e.disabled&&l?Kr("textarea",{key:"disabled-textarea",ref:i,value:a.value,tabindex:"-1",readonly:!!e.disabled,maxlength:a.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":gp},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onFocus:e=>e.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):Kr("textarea",{key:"textarea",ref:i,value:a.value,disabled:!!e.disabled,maxlength:a.maxlength,enterkeyhint:e.confirmType,inputmode:e.inputmode,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":gp},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onKeydown:m,onKeyup:g},null,46,["value","disabled","maxlength","enterkeyhint","inputmode","onKeydown","onKeyup"]);return Kr("uni-textarea",{ref:o},[Kr("div",{ref:r,class:"uni-textarea-wrapper"},[Fo(Kr("div",ni(s.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[ba,!a.value.length]]),Kr("div",{ref:p,class:"uni-textarea-line"},[" "],512),Kr("div",{class:"uni-textarea-compute"},[u.value.map((e=>Kr("div",null,[e.trim()?e:"."]))),Kr(tf,{initial:!0,onResize:h},null,8,["initial","onResize"])]),"search"===e.confirmType?Kr("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[t],40,["onSubmit"]):t],512)],512)}}}),bp=Uc({name:"View",props:c({},Gc),setup(e,{slots:t}){const n=tn(null),{hovering:o,binding:r}=Zc(e);return()=>{const i=e.hoverClass;return i&&"none"!==i?Kr("uni-view",ni({class:o.value?i:"",ref:n},r),[t.default&&t.default()],16):Kr("uni-view",{ref:n},[t.default&&t.default()],512)}}});function _p(e,t,n,o){v(t)&&Eo(e,t.bind(n),o)}function wp(e,t,n){var o;const r=e.mpType||n.$mpType;if(r&&"component"!==r&&(Object.keys(e).forEach((o=>{if(function(e,t,n=!0){return!(n&&!v(t))&&(ke.indexOf(e)>-1||0===e.indexOf("on"))}(o,e[o],!1)){const r=e[o];p(r)?r.forEach((e=>_p(o,e,n,t))):_p(o,r,n,t)}})),"page"===r)){t.__isVisible=!0;try{hc(n,"onLoad",t.attrs.__pageQuery),delete t.attrs.__pageQuery,"preloadPage"!==(null==(o=n.$page)?void 0:o.openType)&&hc(n,"onShow")}catch(i){console.error(i.message+"\n"+i.stack)}}}function xp(e,t,n){wp(e,t,n)}function Sp(e,t,n){return e[t]=n}function Cp(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function Tp(e){return function(t,n,o){if(!n)throw t;const r=e._instance;if(!r||!r.proxy)throw t;hc(r.proxy,"onError",t)}}function kp(e,t){return e?[...new Set([].concat(e,t))]:t}function Ep(e){const t=e._context.config;var n;t.errorHandler=Oe(e,Tp),n=t.optionMergeStrategies,ke.forEach((e=>{n[e]=kp}));const o=t.globalProperties;o.$set=Sp,o.$applyOptions=xp,o.$callMethod=Cp,function(e){Ee.forEach((t=>t(e)))}(e)}const Op=ec("upm");function $p(){return Wn(Op)}function Pp(e){const t=function(e){return Vt(function(e){{const{navigationBar:t}=e,{titleSize:n,titleColor:o,backgroundColor:r}=t;t.titleText=t.titleText||"",t.type=t.type||"default",t.titleSize=n||"16px",t.titleColor=o||"#000000",t.backgroundColor=r||"#F8F8F8"}if(history.state){const t=history.state.__type__;"redirectTo"!==t&&"reLaunch"!==t||0!==Vp().length||(e.isEntry=!0,e.isQuit=!0)}return e}(JSON.parse(JSON.stringify(pc(fl().meta,e)))))}(e);return qn(Op,t),t}function Ap(){return fl()}function Mp(){return history.state&&history.state.__id__||1}const Lp=window.CSS&&window.CSS.supports;function Bp(e){return Lp&&(Lp(e)||Lp.apply(window.CSS,e.split(":")))}const Np=Bp("top:env(a)"),Ip=Bp("top:constant(a)"),Rp=(()=>Np?"env":Ip?"constant":"")();function jp(e){let t=0;var n,o;"custom"!==e.navigationBar.style&&["default","float"].indexOf(e.navigationBar.type)>-1&&(t=44),Ql({"--window-top":(o=t,Rp?`calc(${o}px + ${Rp}(safe-area-inset-top))`:`${o}px`),"--window-bottom":(n=0,Rp?`calc(${n}px + ${Rp}(safe-area-inset-bottom))`:`${n}px`)})}const Fp=new Map;function Dp(){return Fp}function Vp(){const e=[],t=Fp.values();for(const n of t)n.$.__isTabBar?n.$.__isActive&&e.push(n):e.push(n);return e}function Hp(e,t=!0){const n=Fp.get(e);n.$.__isUnload=!0,hc(n,"onUnload"),Fp.delete(e),t&&function(e){const t=Xp.get(e);t&&(Xp.delete(e),Yp.pruneCacheEntry(t))}(e)}let zp=Mp();function qp(e){const t=$p();let n=e.fullPath;return e.meta.isEntry&&-1===n.indexOf(e.meta.route)&&(n="/"+e.meta.route+n.replace("/","")),function(e,t,n,o,r,i){const{id:a,route:s}=o,l=Me(o.navigationBar,__uniConfig.themeConfig,i).titleColor;return{id:a,path:ue(s),route:s,fullPath:t,options:n,meta:o,openType:e,eventChannel:r,statusBarStyle:"#ffffff"===l?"light":"dark"}}("navigateTo",n,{},t)}function Wp(e){const t=qp(e.$route);!function(e,t){e.route=t.route,e.$vm=e,e.$page=t,e.$mpType="page",t.meta.isTabBar&&(e.$.__isTabBar=!0,e.$.__isActive=!0)}(e,t),Fp.set(Up(t.path,t.id),e)}function Up(e,t){return e+"$$"+t}const Xp=new Map,Yp={get:e=>Xp.get(e),set(e,t){!function(e){const t=parseInt(e.split("$$")[1]);if(!t)return;Yp.forEach(((e,n)=>{const o=parseInt(n.split("$$")[1]);o&&o>t&&(Yp.delete(n),Yp.pruneCacheEntry(e),Sn((()=>{Fp.forEach(((e,t)=>{e.$.isUnmounted&&Fp.delete(t)}))})))}))}(e),Xp.set(e,t)},delete(e){Xp.get(e)&&Xp.delete(e)},forEach(e){Xp.forEach(e)}};function Kp(e,t){!function(e){const t=Zp(e),{body:n}=document;Jp&&n.removeAttribute(Jp),t&&n.setAttribute(t,""),Jp=t}(e),jp(t),function(e){{const t="nvue-dir-"+__uniConfig.nvue["flex-direction"];e.isNVue?(document.body.setAttribute("nvue",""),document.body.setAttribute(t,"")):(document.body.removeAttribute("nvue"),document.body.removeAttribute(t))}}(t),function(e,t){document.removeEventListener("touchmove",mc),Qp&&document.removeEventListener("scroll",Qp);if(t.disableScroll)return document.addEventListener("touchmove",mc);const{onPageScroll:n,onReachBottom:o}=e,r="transparent"===t.navigationBar.type;if(!n&&!o&&!r)return;const i={},a=e.proxy.$page.id;(n||r)&&(i.onPageScroll=function(e,t,n){return o=>{t&&Ym.publishHandler("onPageScroll",{scrollTop:o},e),n&&Ym.emit(e+".onPageScroll",{scrollTop:o})}}(a,n,r));o&&(i.onReachBottomDistance=t.onReachBottomDistance||50,i.onReachBottom=()=>Ym.publishHandler("onReachBottom",{},a));Qp=yc(i),requestAnimationFrame((()=>document.addEventListener("scroll",Qp)))}(e,t)}function Gp(e){const t=Zp(e);t&&function(e){const t=document.querySelector("uni-page-body");t&&t.setAttribute(e,"")}(t)}function Zp(e){return e.type.__scopeId}let Jp,Qp;function eh(e){const t=cl({history:nh(),strict:!!__uniConfig.router.strict,routes:__uniRoutes,scrollBehavior:th});e.router=t,e.use(t)}const th=(e,t,n)=>{if(n)return n};function nh(){let{routerBase:e}=__uniConfig.router;"/"===e&&(e="");const t=(n=e,(n=location.host?n||location.pathname+location.search:"").includes("#")||(n+="#"),is(n));var n;return t.listen(((e,t,n)=>{"back"===n.direction&&function(e=1){const t=Vp(),n=t.length-1,o=n-e;for(let r=n;r>o;r--){const e=t[r].$page;Hp(Up(e.path,e.id),!1)}}(Math.abs(n.delta))})),t}const oh={install(e){Ep(e),Pc(e),Vc(e),e.config.warnHandler||(e.config.warnHandler=rh),eh(e)}};function rh(e,t,n){if(t){if("PageMetaHead"===t.$.type.name)return;const e=t.$.parent;if(e&&"PageMeta"===e.type.name)return}const o=[`[Vue warn]: ${e}`];n.length&&o.push("\n",n),console.warn(...o)}const ih={class:"uni-async-loading"},ah=Kr("i",{class:"uni-loading"},null,-1),sh=Xc({name:"AsyncLoading",render:()=>(Rr(),Hr("div",ih,[ah]))});function lh(){window.location.reload()}const ch=Xc({name:"AsyncError",setup(){vl();const{t:e}=ml();return()=>Kr("div",{class:"uni-async-error",onClick:lh},[e("uni.async.error")],8,["onClick"])}});let uh;function dh(){return uh}function fh(e){uh=e,Object.defineProperty(uh.$.ctx,"$children",{get:()=>Vp().map((e=>e.$vm))});const t=uh.$.appContext.app;t.component(sh.name)||t.component(sh.name,sh),t.component(ch.name)||t.component(ch.name,ch),function(e){e.$vm=e,e.$mpType="app";const t=tn(ml().getLocale());Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}(uh),function(e,t){const n=e.$options||{};n.globalData=c(n.globalData||{},t),Object.defineProperty(e,"globalData",{get:()=>n.globalData,set(e){n.globalData=e}})}(uh),Fc(),Rl()}function ph(e,{clone:t,init:n,setup:o,before:r}){t&&(e=c({},e)),r&&r(e);const i=e.setup;return e.setup=(e,t)=>{const r=si();n(r.proxy);const a=o(r);if(i)return i(a||e,t)},e}function hh(e,t){return e&&(e.__esModule||"Module"===e[Symbol.toStringTag])?ph(e.default,t):ph(e,t)}function mh(e){return hh(e,{clone:!0,init:Wp,setup(e){e.$pageInstance=e;const t=Ap(),n=be(t.query);e.attrs.__pageQuery=n,e.proxy.$page.options=n,e.proxy.options=n;const o=$p();var r,i,a;return $o((()=>{Kp(e,o)})),Po((()=>{Gp(e);const{onReady:n}=e;n&&N(n),bh(t)})),_o((()=>{if(!e.__isVisible){Kp(e,o),e.__isVisible=!0;const{onShow:n}=e;n&&N(n),Sn((()=>{bh(t)}))}}),"ba",r),function(e,t){_o(e,"bda",t)}((()=>{if(e.__isVisible&&!e.__isUnload){e.__isVisible=!1;const{onHide:t}=e;t&&N(t)}})),i=o.id,Ym.subscribe(Tl(i,"invokeViewApi"),a?a(kl):kl),Lo((()=>{!function(e){Ym.unsubscribe(Tl(e,"invokeViewApi")),Object.keys(Cl).forEach((t=>{0===t.indexOf(e+".")&&delete Cl[t]}))}(o.id)})),n}})}function gh(){const{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}=Mh(),r=90===Math.abs(Number(window.orientation))?"landscape":"portrait";Km.emit("onResize",{deviceOrientation:r,size:{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}})}function vh(e){C(e.data)&&"WEB_INVOKE_APPSERVICE"===e.data.type&&Km.emit("onWebInvokeAppService",e.data.data,e.data.pageId)}function yh(){const{emit:e}=Km;"visible"===document.visibilityState?e("onAppEnterForeground",c({},ef)):e("onAppEnterBackground")}function bh(e){const{tabBarText:t,tabBarIndex:n,route:o}=e.meta;t&&hc("onTabItemTap",{index:n,text:t,pagePath:o})}const _h=Ku("makePhoneCall",(({phoneNumber:e},{resolve:t})=>(window.location.href=`tel:${e}`,t()))),wh=navigator.cookieEnabled&&(window.localStorage||window.sessionStorage)||{};let xh;function Sh(){if(xh=xh||wh.__DC_STAT_UUID,!xh){xh=Date.now()+""+Math.floor(1e7*Math.random());try{wh.__DC_STAT_UUID=xh}catch(e){}}return xh}function Ch(){if(!0!==__uniConfig.darkmode)return y(__uniConfig.darkmode)?__uniConfig.darkmode:"light";try{return window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}catch(e){return"light"}}function Th(){let e,t="0",n="",o="phone";const r=navigator.language;if(uu){e="iOS";const o=lu.match(/OS\s([\w_]+)\slike/);o&&(t=o[1].replace(/_/g,"."));const r=lu.match(/\(([a-zA-Z]+);/);r&&(n=r[1])}else if(cu){e="Android";const o=lu.match(/Android[\s/]([\w\.]+)[;\s]/);o&&(t=o[1]);const r=lu.match(/\((.+?)\)/),i=r?r[1].split(";"):lu.split(" "),a=[/\bAndroid\b/i,/\bLinux\b/i,/\bU\b/i,/^\s?[a-z][a-z]$/i,/^\s?[a-z][a-z]-[a-z][a-z]$/i,/\bwv\b/i,/\/[\d\.,]+$/,/^\s?[\d\.,]+$/,/\bBrowser\b/i,/\bMobile\b/i];for(let e=0;e0){n=t.split("Build")[0].trim();break}let o;for(let e=0;e-1&&e.indexOf("MSIE")>-1,n=e.indexOf("Edge")>-1&&!t,o=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1;if(t){new RegExp("MSIE (\\d+\\.\\d+);").test(e);const t=parseFloat(RegExp.$1);return t>6?t:6}return n?-1:o?11:-1}());if("-1"!==l)s="IE";else{const e=["Version","Firefox","Chrome","Edge{0,1}"],t=["Safari","Firefox","Chrome","Edge"];for(let n=0;n{const e=window.devicePixelRatio,t=mu(),n=gu(t),o=vu(t,n),r=function(e,t){return e?Math[t?"min":"max"](screen.height,screen.width):screen.height}(t,n),i=yu(o);let a=window.innerHeight;const s=Yl.top,l={left:Yl.left,right:i-Yl.right,top:Yl.top,bottom:a-Yl.bottom,width:i-Yl.left-Yl.right,height:a-Yl.top-Yl.bottom},{top:c,bottom:u}=function(){const e=document.documentElement.style,t=Jl(),n=Zl(e,"--window-bottom"),o=Zl(e,"--window-left"),r=Zl(e,"--window-right"),i=Zl(e,"--top-window-height");return{top:t,bottom:n?n+Yl.bottom:0,left:o?o+Yl.left:0,right:r?r+Yl.right:0,topWindowHeight:i||0}}();return a-=c,a-=u,{windowTop:c,windowBottom:u,windowWidth:i,windowHeight:a,pixelRatio:e,screenWidth:o,screenHeight:r,statusBarHeight:s,safeArea:l,safeAreaInsets:{top:Yl.top,right:Yl.right,bottom:Yl.bottom,left:Yl.left},screenTop:r-a}}));let Eh,Oh=!0;function $h(){Oh&&(Eh=Th())}const Ph=Yu(0,(()=>{$h();const{deviceBrand:e,deviceModel:t,brand:n,model:o,platform:r,system:i,deviceOrientation:a,deviceType:s}=Eh;return{brand:n,deviceBrand:e,deviceModel:t,devicePixelRatio:window.devicePixelRatio,deviceId:Sh(),deviceOrientation:a,deviceType:s,model:o,platform:r,system:i}})),Ah=Yu(0,(()=>{$h();const{theme:e,language:t,browserName:n,browserVersion:o}=Eh;return{appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:fd?fd():t,enableDebug:!1,hostSDKVersion:void 0,hostPackageName:void 0,hostFontSizeSetting:void 0,hostName:n,hostVersion:o,hostTheme:e,hostLanguage:t,language:t,SDKVersion:"",theme:e,version:""}})),Mh=Yu(0,(()=>{Oh=!0,$h(),Oh=!1;const e=kh(),t=Ph(),n=Ah();Oh=!0;const{ua:o,browserName:r,browserVersion:i,osname:a,osversion:s}=Eh,l=c(e,t,n,{ua:o,browserName:r,browserVersion:i,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion,fontSizeSetting:void 0,osName:a.toLocaleLowerCase(),osVersion:s,osLanguage:void 0,osTheme:void 0});return delete l.screenTop,delete l.enableDebug,__uniConfig.darkmode||delete l.theme,function(e){let t={};return C(e)&&Object.keys(e).sort().forEach((n=>{const o=n;t[o]=e[o]})),Object.keys(t)?t:e}(l)})),Lh=Ku("getSystemInfo",((e,{resolve:t})=>t(Mh())));const Bh=Yu(0,((e,t)=>{const n=typeof t,o="string"===n?t:JSON.stringify({type:n,data:t});localStorage.setItem(e,o)}));function Nh(e){const t=localStorage&&localStorage.getItem(e);if(!y(t))throw new Error("data not found");let n=t;try{const e=function(e){const t=["object","string","number","boolean","undefined"];try{const n=y(e)?JSON.parse(e):e,o=n.type;if(t.indexOf(o)>=0){const e=Object.keys(n);if(2===e.length&&"data"in n){if(typeof n.data===o)return n.data;if("object"===o&&/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d{3}Z$/.test(n.data))return new Date(n.data)}else if(1===e.length)return""}}catch(n){}}(JSON.parse(t));void 0!==e&&(n=e)}catch(o){}return n}const Ih=Yu(0,(e=>{try{return Nh(e)}catch(t){return""}})),Rh=Yu(0,(e=>{localStorage&&localStorage.removeItem(e)})),jh=Yu(0,(()=>{localStorage&&localStorage.clear()}));const Fh=Ku("getImageInfo",(({src:e},{resolve:t,reject:n})=>{const o=new Image;o.onload=function(){t({width:o.naturalWidth,height:o.naturalHeight,path:0===e.indexOf("/")?window.location.protocol+"//"+window.location.host+e:e})},o.onerror=function(){n()},o.src=e}),0,kd),Dh={image:{jpg:"jpeg",jpe:"jpeg",pbm:"x-portable-bitmap",pgm:"x-portable-graymap",pnm:"x-portable-anymap",ppm:"x-portable-pixmap",psd:"vnd.adobe.photoshop",pic:"x-pict",rgb:"x-rgb",svg:"svg+xml",svgz:"svg+xml",tif:"tiff",xif:"vnd.xiff",wbmp:"vnd.wap.wbmp",wdp:"vnd.ms-photo",xbm:"x-xbitmap",ico:"x-icon"},video:{"3g2":"3gpp2","3gp":"3gpp",avi:"x-msvideo",f4v:"x-f4v",flv:"x-flv",jpgm:"jpm",jpgv:"jpeg",m1v:"mpeg",m2v:"mpeg",mpe:"mpeg",mpg:"mpeg",mpg4:"mpeg",m4v:"x-m4v",mkv:"x-matroska",mov:"quicktime",qt:"quicktime",movie:"x-sgi-movie",mp4v:"mp4",ogv:"ogg",smv:"x-smv",wm:"x-ms-wm",wmv:"x-ms-wmv",wmx:"x-ms-wmx",wvx:"x-ms-wvx"}};function Vh({count:e,sourceType:t,type:n,extension:o}){const r=document.createElement("input");return r.type="file",function(e,t){for(const n in t)e.style[n]=t[n]}(r,{position:"absolute",visibility:"hidden",zIndex:"-999",width:"0",height:"0",top:"0",left:"0"}),r.accept=o.map((e=>{if("all"!==n){const t=e.replace(".","");return`${n}/${Dh[n][t]||t}`}return function(){const e=window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i);return!(!e||"micromessenger"!==e[0])}()?".":0===e.indexOf(".")?e:`.${e}`})).join(","),e&&e>1&&(r.multiple=!0),"all"!==n&&t instanceof Array&&1===t.length&&"camera"===t[0]&&r.setAttribute("capture","camera"),r}gf();let Hh=null;const zh=Ku("chooseFile",(({count:e,sourceType:t,type:n,extension:o},{resolve:r,reject:i})=>{wl();const{t:a}=ml();Hh&&(document.body.removeChild(Hh),Hh=null),Hh=Vh({count:e,sourceType:t,type:n,extension:o}),document.body.appendChild(Hh),Hh.addEventListener("change",(function(t){const n=t.target,o=[];if(n&&n.files){const t=n.files.length;for(let r=0;r(i=i||Zd(t),i)}),re))},tempFiles:o})})),Hh.click(),vf()||console.warn(a("uni.chooseFile.notUserActivation"))}),0,Td);let qh=null;const Wh=Ku("chooseImage",(({count:e,sourceType:t,extension:n},{resolve:o,reject:r})=>{wl();const{t:i}=ml();qh&&(document.body.removeChild(qh),qh=null),qh=Vh({count:e,sourceType:t,extension:n,type:"image"}),document.body.appendChild(qh),qh.addEventListener("change",(function(t){const n=t.target,r=[];if(n&&n.files){const t=n.files.length;for(let o=0;o(i=i||Zd(t),i)}),oe))},tempFiles:r})})),qh.click(),vf()||console.warn(i("uni.chooseFile.notUserActivation"))}),0,xd),Uh={esc:["Esc","Escape"],enter:["Enter"]},Xh=Object.keys(Uh);const Yh=Kr("div",{class:"uni-mask"},null,-1);function Kh(e,t,n){return t.onClose=(...e)=>(t.visible=!1,n.apply(null,e)),Sa(lo({setup:()=>()=>(Rr(),Hr(e,t,null,16))}))}function Gh(e){let t=document.getElementById(e);return t||(t=document.createElement("div"),t.id=e,document.body.append(t)),t}function Zh(e,{onEsc:t,onEnter:n}){const o=tn(e.visible),{key:r,disable:i}=function(){const e=tn(""),t=tn(!1),n=n=>{if(t.value)return;const o=Xh.find((e=>-1!==Uh[e].indexOf(n.key)));o&&(e.value=o),Sn((()=>e.value=""))};return Po((()=>{document.addEventListener("keyup",n)})),Lo((()=>{document.removeEventListener("keyup",n)})),{key:e,disable:t}}();return Yn((()=>e.visible),(e=>o.value=e)),Yn((()=>o.value),(e=>i.value=!e)),Un((()=>{const{value:e}=r;"esc"===e?t&&t():"enter"===e&&n&&n()})),o}let Jh=0,Qh="";function em(e){let t=Jh;Jh+=e?1:-1,Jh=Math.max(0,Jh),Jh>0?0===t&&(Qh=document.body.style.overflow,document.body.style.overflow="hidden"):(document.body.style.overflow=Qh,Qh="")}const tm=Xc({name:"ImageView",props:{src:{type:String,default:""}},setup(e){const t=Vt({direction:"none"});let n=1,o=0,r=0,i=0,a=0;function s({detail:e}){n=e.scale}function l(e){const t=e.target.getBoundingClientRect();o=t.width,r=t.height}function c(e){const t=e.target.getBoundingClientRect();i=t.width,a=t.height,d(e)}function u(e){const s=n*o>i,l=n*r>a;t.direction=s&&l?"all":s?"horizontal":l?"vertical":"none",d(e)}function d(e){"all"!==t.direction&&"horizontal"!==t.direction||e.stopPropagation()}return()=>{const n={position:"absolute",left:"0",top:"0",width:"100%",height:"100%"};return Kr(Lf,{style:n,onTouchstart:Yc(c),onTouchmove:Yc(d),onTouchend:Yc(u)},{default:()=>[Kr(Uf,{style:n,direction:t.direction,inertia:!0,scale:!0,"scale-min":"1","scale-max":"4",onScale:s},{default:()=>[Kr("img",{src:e.src,style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",maxHeight:"100%",maxWidth:"100%"},onLoad:l},null,40,["src","onLoad"])]},8,["style","direction","inertia","scale","onScale"])]},8,["style","onTouchstart","onTouchmove","onTouchend"])}}});function nm(e){let t="number"==typeof e.current?e.current:e.urls.indexOf(e.current);return t=t<0?0:t,t}const om=Xc({name:"ImagePreview",props:{urls:{type:Array,default:()=>[]},current:{type:[Number,String],default:0}},emits:["close"],setup(e,{emit:t}){Po((()=>em(!0))),Bo((()=>em(!1)));const n=tn(null),o=tn(nm(e));let r;function i(){r||Sn((()=>{t("close")}))}function a(e){o.value=e.detail.current}Yn((()=>e.current),(()=>o.value=nm(e))),Po((()=>{const e=n.value;let t=0,o=0;e.addEventListener("mousedown",(e=>{r=!1,t=e.clientX,o=e.clientY})),e.addEventListener("mouseup",(e=>{(Math.abs(e.clientX-t)>20||Math.abs(e.clientY-o)>20)&&(r=!0)}))}));const s={position:"absolute","box-sizing":"border-box",top:"0",right:"0",width:"60px",height:"44px",padding:"6px","line-height":"32px","font-size":"26px",color:"white","text-align":"center",cursor:"pointer"};return()=>{let t;return Kr("div",{ref:n,style:{display:"block",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",zIndex:999,background:"rgba(0,0,0,0.8)"},onClick:i},[Kr(lp,{navigation:"auto",current:o.value,onChange:a,"indicator-dots":!1,autoplay:!1,style:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%"}},(r=t=e.urls.map((e=>Kr(up,null,{default:()=>[Kr(tm,{src:e},null,8,["src"])]}))),"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!zr(r)?t:{default:()=>[t],_:1}),8,["current","onChange"]),Kr("div",{style:s},[ac("M17.25 16.156l7.375-7.313q0.281-0.281 0.281-0.641t-0.281-0.641q-0.25-0.25-0.625-0.25t-0.625 0.25l-7.375 7.344-7.313-7.344q-0.25-0.25-0.625-0.25t-0.625 0.25q-0.281 0.25-0.281 0.625t0.281 0.625l7.313 7.344-7.375 7.344q-0.281 0.25-0.281 0.625t0.281 0.625q0.125 0.125 0.281 0.188t0.344 0.063q0.156 0 0.328-0.063t0.297-0.188l7.375-7.344 7.375 7.406q0.125 0.156 0.297 0.219t0.328 0.063q0.188 0 0.344-0.078t0.281-0.203q0.281-0.25 0.281-0.609t-0.281-0.641l-7.375-7.406z","#ffffff",26)],4)],8,["onClick"]);var r}}});let rm,im=null;const am=()=>{im=null,Sn((()=>{null==rm||rm.unmount(),rm=null}))},sm=Ku("previewImage",((e,{resolve:t})=>{im?c(im,e):(im=Vt(e),Sn((()=>{rm=Kh(om,im,am),rm.mount(Gh("u-a-p"))}))),t()}),0,Ed);let lm=null;const cm=Ku("chooseVideo",(({sourceType:e,extension:t},{resolve:n,reject:o})=>{wl();const{t:r}=ml();lm&&(document.body.removeChild(lm),lm=null),lm=Vh({sourceType:e,extension:t,type:"video"}),document.body.appendChild(lm),lm.addEventListener("change",(function(e){const t=e.target.files[0];let o="";const r={tempFilePath:o,tempFile:t,size:t.size,duration:0,width:0,height:0,name:t.name};Object.defineProperty(r,"tempFilePath",{get(){return o=o||Zd(this.tempFile),o}});const i=document.createElement("video");if(void 0!==i.onloadedmetadata){const e=Zd(t);i.onloadedmetadata=function(){Jd(e),n(c(r,{duration:i.duration||0,width:i.videoWidth||0,height:i.videoHeight||0}))},setTimeout((()=>{i.onloadedmetadata=null,Jd(e),n(r)}),300),i.src=e}else n(r)})),lm.click(),vf()||console.warn(r("uni.chooseFile.notUserActivation"))}),0,Sd),um=Xu("request",(({url:e,data:t,header:n={},method:o,dataType:r,responseType:i,withCredentials:a,timeout:s=__uniConfig.networkTimeout.request},{resolve:l,reject:c})=>{let u=null;const d=function(e){const t=Object.keys(e).find((e=>"content-type"===e.toLowerCase()));if(!t)return;const n=e[t];if(0===n.indexOf("application/json"))return"json";if(0===n.indexOf("application/x-www-form-urlencoded"))return"urlencoded";return"string"}(n);if("GET"!==o)if(y(t)||t instanceof ArrayBuffer)u=t;else if("json"===d)try{u=JSON.stringify(t)}catch(g){u=t.toString()}else if("urlencoded"===d){const e=[];for(const n in t)f(t,n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));u=e.join("&")}else u=t.toString();const p=new XMLHttpRequest,h=new dm(p);p.open(o,e);for(const v in n)f(n,v)&&p.setRequestHeader(v,n[v]);const m=setTimeout((function(){p.onload=p.onabort=p.onerror=null,h.abort(),c("timeout",{errCode:5})}),s);return p.responseType=i,p.onload=function(){clearTimeout(m);const e=p.status;let t="text"===i?p.responseText:p.response;if("text"===i&&"json"===r)try{t=JSON.parse(t)}catch(g){}l({data:t,statusCode:e,header:fm(p.getAllResponseHeaders()),cookies:[]})},p.onabort=function(){clearTimeout(m),c("abort",{errCode:600003})},p.onerror=function(){clearTimeout(m),c(void 0,{errCode:5})},p.withCredentials=a,p.send(u),h}),0,Ad);class dm{constructor(e){this._xhr=e}abort(){this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(e){throw new Error("Method not implemented.")}offHeadersReceived(e){throw new Error("Method not implemented.")}}function fm(e){const t={};return e.split("\n").forEach((e=>{const n=e.match(/(\S+\s*):\s*(.*)/);n&&3===n.length&&(t[n[1]]=n[2])})),t}class pm{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){v(e)&&this._callbacks.push(e)}offProgressUpdate(e){const t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}abort(){this._isAbort=!0,this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(e){throw new Error("Method not implemented.")}offHeadersReceived(e){throw new Error("Method not implemented.")}}const hm=Xu("uploadFile",(({url:e,file:t,filePath:n,name:o,files:r,header:i={},formData:a={},timeout:s=__uniConfig.networkTimeout.uploadFile},{resolve:l,reject:c})=>{var u=new pm;return p(r)&&r.length||(r=[{name:o,file:t,uri:n}]),Promise.all(r.map((({file:e,uri:t})=>e instanceof Blob?Promise.resolve(Gd(e)):Kd(t)))).then((function(t){var n,o=new XMLHttpRequest,d=new FormData;Object.keys(a).forEach((e=>{d.append(e,a[e])})),Object.values(r).forEach((({name:e},n)=>{const o=t[n];d.append(e||"file",o,o.name||`file-${Date.now()}`)})),o.open("POST",e),Object.keys(i).forEach((e=>{o.setRequestHeader(e,i[e])})),o.upload.onprogress=function(e){u._callbacks.forEach((t=>{var n=e.loaded,o=e.total;t({progress:Math.round(n/o*100),totalBytesSent:n,totalBytesExpectedToSend:o})}))},o.onerror=function(){clearTimeout(n),c("",{errCode:602001})},o.onabort=function(){clearTimeout(n),c("abort",{errCode:600003})},o.onload=function(){clearTimeout(n);const e=o.status;l({statusCode:e,data:o.responseText||o.response})},u._isAbort?c("abort",{errCode:600003}):(n=setTimeout((function(){o.upload.onprogress=o.onload=o.onabort=o.onerror=null,u.abort(),c("timeout",{errCode:5})}),s),o.send(d),u._xhr=o)})).catch((()=>{setTimeout((()=>{c("file error")}),0)})),u}),0,Md),mm=Ku("navigateBack",((e,{resolve:t,reject:n})=>{let o=!0;return!0===hc("onBackPress",{from:e.from||"navigateBack"})&&(o=!1),o?(dh().$router.go(-e.delta),t()):n("onBackPress")}),0,jd);function gm({type:e,url:t,tabBarText:n,events:o,isAutomatedTesting:r},i){const a=dh().$router,{path:s,query:l}=function(e){const[t,n]=e.split("?",2);return{path:t,query:we(n||"")}}(t);return new Promise(((t,c)=>{const u=function(e,t){return{__id__:t||++zp,__type__:e}}(e,i);a["navigateTo"===e?"push":"replace"]({path:s,query:l,state:u,force:!0}).then((i=>{if(fs(i))return c(i.message);if("switchTab"===e&&(a.currentRoute.value.meta.tabBarText=n),"navigateTo"===e){const e=a.currentRoute.value.meta;return e.eventChannel?o&&(Object.keys(o).forEach((t=>{e.eventChannel._addListener(t,"on",o[t])})),e.eventChannel._clearCache()):e.eventChannel=new Se(u.__id__,o),t(r?{__id__:u.__id__}:{eventChannel:e.eventChannel})}return r?t({__id__:u.__id__}):t()}))}))}const vm=Ku("navigateTo",(({url:e,events:t,isAutomatedTesting:n},{resolve:o,reject:r})=>gm({type:"navigateTo",url:e,events:t,isAutomatedTesting:n}).then(o).catch(r)),0,Bd);const ym=Ku("redirectTo",(({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>(function(){const e=lc();if(!e)return;const t=e.$page;Hp(Up(t.path,t.id))}(),gm({type:"redirectTo",url:e,isAutomatedTesting:t}).then(n).catch(o))),0,Nd);const bm=Ku("reLaunch",(({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>(function(){const e=Dp().keys();for(const t of e)Hp(t)}(),gm({type:"reLaunch",url:e,isAutomatedTesting:t}).then(n).catch(o))),0,Id);function _m(e,t){return e===t.fullPath||"/"===e&&t.meta.isEntry}const wm=Ku("switchTab",(({url:e,tabBarText:t,isAutomatedTesting:n},{resolve:o,reject:r})=>(function(){const e=dc();if(!e)return;const t=Dp(),n=t.keys();for(const o of n){const e=t.get(o);e.$.__isTabBar?e.$.__isActive=!1:Hp(o)}e.$.__isTabBar&&(e.$.__isVisible=!1,hc(e,"onHide"))}(),gm({type:"switchTab",url:e,tabBarText:t,isAutomatedTesting:n},function(e){const t=Dp().values();for(const n of t){const t=n.$page;if(_m(e,t))return n.$.__isActive=!0,t.id}}(e)).then(o).catch(r))),0,Rd);function xm(e){__uniConfig.darkmode&&Km.on("onThemeChange",e)}function Sm(e){Km.off("onThemeChange",e)}function Cm(e){let t={};return __uniConfig.darkmode&&(t=Me(e,__uniConfig.themeConfig,Ch())),__uniConfig.darkmode?t:e}const Tm={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}},km=lo({props:{title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"Cancel"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"OK"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean},editable:{type:Boolean,default:!1},placeholderText:{type:String,default:""}},setup(e,{emit:t}){const n=tn(""),o=()=>a.value=!1,r=()=>(o(),t("close","cancel")),i=()=>(o(),t("close","confirm",n.value)),a=Zh(e,{onEsc:r,onEnter:()=>{!e.editable&&i()}}),s=function(e){const t=tn(e.cancelColor),n=({theme:e})=>{((e,t)=>{t.value=Tm[e].cancelColor})(e,t)};return Un((()=>{e.visible?(t.value=e.cancelColor,"#000"===e.cancelColor&&("dark"===Ch()&&n({theme:"dark"}),xm(n))):Sm(n)})),t}(e);return()=>{const{title:t,content:o,showCancel:l,confirmText:c,confirmColor:u,editable:d,placeholderText:f}=e;return n.value=o,Kr(Wi,{name:"uni-fade"},{default:()=>[Fo(Kr("uni-modal",{onTouchmove:Kl},[Yh,Kr("div",{class:"uni-modal"},[t&&Kr("div",{class:"uni-modal__hd"},[Kr("strong",{class:"uni-modal__title",textContent:t},null,8,["textContent"])]),d?Kr("textarea",{class:"uni-modal__textarea",rows:"1",placeholder:f,value:o,onInput:e=>n.value=e.target.value},null,40,["placeholder","value","onInput"]):Kr("div",{class:"uni-modal__bd",onTouchmovePassive:Gl,textContent:o},null,40,["onTouchmovePassive","textContent"]),Kr("div",{class:"uni-modal__ft"},[l&&Kr("div",{style:{color:s.value},class:"uni-modal__btn uni-modal__btn_default",onClick:r},[e.cancelText],12,["onClick"]),Kr("div",{style:{color:u},class:"uni-modal__btn uni-modal__btn_primary",onClick:i},[c],12,["onClick"])])])],40,["onTouchmove"]),[[ba,a.value]])]})}}});let Em;const Om=de((()=>{Km.on("onHidePopup",(()=>Em.visible=!1))}));let $m;function Pm(e,t){const n="confirm"===e,o={confirm:n,cancel:"cancel"===e};n&&Em.editable&&(o.content=t),$m&&$m(o)}const Am=Ku("showModal",((e,{resolve:t})=>{Om(),$m=t,Em?(c(Em,e),Em.visible=!0):(Em=Vt(e),Sn((()=>(Kh(km,Em,Pm).mount(Gh("u-a-m")),Sn((()=>Em.visible=!0))))))}),0,Wd),Mm={title:{type:String,default:""},icon:{default:"success",validator:e=>-1!==Ud.indexOf(e)},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean}},Lm={light:"#fff",dark:"rgba(255,255,255,0.9)"},Bm=e=>Lm[e],Nm=lo({name:"Toast",props:Mm,setup(e){yl(),bl();const{Icon:t}=function(e){const t=tn(Bm(Ch())),n=({theme:e})=>t.value=Bm(e);Un((()=>{e.visible?xm(n):Sm(n)}));return{Icon:gi((()=>{switch(e.icon){case"success":return Kr(ac(oc,t.value,38),{class:"uni-toast__icon"});case"error":return Kr(ac(rc,t.value,38),{class:"uni-toast__icon"});case"loading":return Kr("i",{class:["uni-toast__icon","uni-loading"]},null,2);default:return null}}))}}(e),n=Zh(e,{});return()=>{const{mask:o,duration:r,title:i,image:a}=e;return Kr(Wi,{name:"uni-fade"},{default:()=>[Fo(Kr("uni-toast",{"data-duration":r},[o?Kr("div",{class:"uni-mask",style:"background: transparent;",onTouchmove:Kl},null,40,["onTouchmove"]):"",a||t.value?Kr("div",{class:"uni-toast"},[a?Kr("img",{src:a,class:"uni-toast__icon"},null,10,["src"]):t.value,Kr("p",{class:"uni-toast__content"},[i])]):Kr("div",{class:"uni-sample-toast"},[Kr("p",{class:"uni-simple-toast__text"},[i])])],8,["data-duration"]),[[ba,n.value]])]})}}});let Im,Rm,jm="";const Fm=Ne();function Dm(e){Im?c(Im,e):(Im=Vt(c(e,{visible:!1})),Sn((()=>{Fm.run((()=>{Yn([()=>Im.visible,()=>Im.duration],(([e,t])=>{if(e){if(Rm&&clearTimeout(Rm),"onShowLoading"===jm)return;Rm=setTimeout((()=>{Wm("onHideToast")}),t)}else Rm&&clearTimeout(Rm)}))})),Km.on("onHidePopup",(()=>Wm("onHidePopup"))),Kh(Nm,Im,(()=>{})).mount(Gh("u-a-t"))}))),setTimeout((()=>{Im.visible=!0}),10)}const Vm=Ku("showToast",((e,{resolve:t,reject:n})=>{Dm(e),jm="onShowToast",t()}),0,Xd),Hm={icon:"loading",duration:1e8,image:""},zm=Ku("showLoading",((e,{resolve:t,reject:n})=>{c(e,Hm),Dm(e),jm="onShowLoading",t()}),0,qd),qm=Ku("hideLoading",((e,{resolve:t,reject:n})=>{Wm("onHideLoading"),t()}));function Wm(e){const{t:t}=ml();if(!jm)return;let n="";if("onHideToast"===e&&"onShowToast"!==jm?n=t("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==jm&&(n=t("uni.showLoading.unpaired")),n)return console.warn(n);jm="",setTimeout((()=>{Im.visible=!1}),10)}function Um(e){function t(){var t;t=e.navigationBar.titleText,document.title=t,Km.emit("onNavigationBarChange",{titleText:t})}Un(t),yo(t)}const Xm=Xc({name:"Layout",setup(e,{emit:t}){const n=tn(null);Ql({"--status-bar-height":"0px","--top-window-height":"0px","--window-left":"0px","--window-right":"0px","--window-margin":"0px","--tab-bar-height":"0px"});const o=function(){const e=fl();return{routeKey:gi((()=>Up("/"+e.meta.route,Mp()))),isTabBar:gi((()=>e.meta.isTabBar)),routeCache:Yp}}(),{layoutState:r,windowState:i}=function(){Ap();{const e=Vt({marginWidth:0,leftWindowWidth:0,rightWindowWidth:0});return Yn((()=>e.marginWidth),(e=>Ql({"--window-margin":e+"px"}))),Yn((()=>e.leftWindowWidth+e.marginWidth),(e=>{Ql({"--window-left":e+"px"})})),Yn((()=>e.rightWindowWidth+e.marginWidth),(e=>{Ql({"--window-right":e+"px"})})),{layoutState:e,windowState:gi((()=>({})))}}}();!function(e,t){const n=Ap();function o(){const o=document.body.clientWidth,r=Vp();let i={};if(r.length>0){i=r[r.length-1].$page.meta}else{const e=_c(n.path,!0);e&&(i=e.meta)}const a=parseInt(String((f(i,"maxWidth")?i.maxWidth:__uniConfig.globalStyle.maxWidth)||Number.MAX_SAFE_INTEGER));let s=!1;s=o>a,s&&a?(e.marginWidth=(o-a)/2,Sn((()=>{const e=t.value;e&&e.setAttribute("style","max-width:"+a+"px;margin:0 auto;")}))):(e.marginWidth=0,Sn((()=>{const e=t.value;e&&e.removeAttribute("style")})))}Yn([()=>n.path],o),Po((()=>{o(),window.addEventListener("resize",o)}))}(r,n);const a=function(e){const t=tn(!1);return gi((()=>({"uni-app--showtabbar":e&&e.value,"uni-app--maxwidth":t.value})))}(!1);return()=>{const e=function(e,t,n,o,r,i){return function({routeKey:e,isTabBar:t,routeCache:n}){return Kr(ll,null,{default:jn((({Component:o})=>[(Rr(),Hr(go,{matchBy:"key",cache:n},[(Rr(),Hr(zo(o),{type:t.value?"tabBar":"",key:e.value}))],1032,["cache"]))])),_:1})}(e)}(o);return Kr("uni-app",{ref:n,class:a.value},[e,!1],2)}}});const Ym=c(El,{publishHandler(e,t,n){Km.subscribeHandler(e,t,n)}}),Km=c(Lc,{publishHandler(e,t,n){Ym.subscribeHandler(e,t,n)}}),Gm=Xc({name:"PageHead",setup(){const e=tn(null),t=$p(),n=function(e,t){const n=qt(e),o=n?Vt(Cm(e)):Cm(e);return __uniConfig.darkmode&&n&&Yn(e,(e=>{const t=Cm(e);for(const n in t)o[n]=t[n]})),t&&xm(t),o}(t.navigationBar,(()=>{const e=Cm(t.navigationBar);n.backgroundColor=e.backgroundColor,n.titleColor=e.titleColor})),{clazz:o,style:r}=function(e){const t=gi((()=>{const{type:t,titlePenetrate:n,shadowColorType:o}=e,r={"uni-page-head":!0,"uni-page-head-transparent":"transparent"===t,"uni-page-head-titlePenetrate":"YES"===n,"uni-page-head-shadow":!!o};return o&&(r[`uni-page-head-shadow-${o}`]=!0),r})),n=gi((()=>({backgroundColor:e.backgroundColor,color:e.titleColor,transitionDuration:e.duration,transitionTimingFunction:e.timingFunc})));return{clazz:t,style:n}}(n);return()=>{const i=function(e,t){if(!t)return Kr("div",{class:"uni-page-head-btn",onClick:Jm},[ac(ic,"transparent"===e.type?"#fff":e.titleColor,26)],8,["onClick"])}(n,t.isQuit),a=n.type||"default",s="transparent"!==a&&"float"!==a&&Kr("div",{class:{"uni-placeholder":!0,"uni-placeholder-titlePenetrate":n.titlePenetrate}},null,2);return Kr("uni-page-head",{"uni-page-head-type":a},[Kr("div",{ref:e,class:o.value,style:r.value},[Kr("div",{class:"uni-page-head-hd"},[i]),Zm(n),Kr("div",{class:"uni-page-head-ft"},[])],6),s],8,["uni-page-head-type"])}}});function Zm(e,t){return function({type:e,loading:t,titleSize:n,titleText:o,titleImage:r}){return Kr("div",{class:"uni-page-head-bd"},[Kr("div",{style:{fontSize:n,opacity:"transparent"===e?0:1},class:"uni-page-head__title"},[t?Kr("i",{class:"uni-loading"},null):r?Kr("img",{src:r,class:"uni-page-head__title_image"},null,8,["src"]):o],4)])}(e)}function Jm(){1===Vp().length?bm({url:"/"}):mm({from:"backbutton",success(){}})}const Qm=Xc({name:"PageBody",setup:(e,t)=>()=>Kr(Ar,null,[!1,Kr("uni-page-wrapper",null,[Kr("uni-page-body",null,[Xo(t.slots,"default")])],16)])}),eg=Xc({name:"Page",setup(e,t){const n=Pp(Mp()),o=n.navigationBar;return Um(n),()=>Kr("uni-page",{"data-page":n.route},"custom"!==o.style?[Kr(Gm),tg(t)]:[tg(t)])}});function tg(e){return Rr(),Hr(Qm,{key:0},{default:jn((()=>[Xo(e.slots,"page")])),_:3})}const ng={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0};window.uni={},window.wx={},window.rpx2px=rd;const og=Object.assign({}),rg=Object.assign;window.__uniConfig=rg({globalStyle:{backgroundColor:"#F8F8F8",background:"#efeff4",navigationBar:{backgroundColor:"#F8F8F8",titleText:"体检平台",type:"default",titleColor:"#000000"},isNVue:!1},compilerVersion:"4.08"},{appId:"__UNI__BD068F8",appName:"GDH5",appVersion:"1.0.0",appVersionCode:"100",async:ng,debug:!1,networkTimeout:{request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},sdkConfigs:{},qqMapKey:void 0,bMapKey:void 0,googleMapKey:void 0,aMapKey:void 0,aMapSecurityJsCode:void 0,aMapServiceHost:void 0,nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:Object.keys(og).reduce(((e,t)=>{const n=t.replace(/\.\/locale\/(uni-app.)?(.*).json/,"$2");return rg(e[n]||(e[n]={}),og[t].default),e}),{}),router:{mode:"hash",base:"/h5/",assets:"assets",routerBase:"/h5/"},darkmode:!1,themeConfig:{}}),window.__uniLayout=window.__uniLayout||{};const ig={delay:ng.delay,timeout:ng.timeout,suspensible:ng.suspensible};ng.loading&&(ig.loadingComponent={name:"SystemAsyncLoading",render:()=>Kr(Vo(ng.loading))}),ng.error&&(ig.errorComponent={name:"SystemAsyncError",render:()=>Kr(Vo(ng.error))});const ag=()=>t((()=>import("./pages-index-index.a9c568ea.js")),["assets/pages-index-index.a9c568ea.js","assets/_plugin-vue_export-helper.1b428a4d.js","assets/uni-app.es.33963b28.js","assets/index-1738ec12.css"]).then((e=>mh(e.default||e))),sg=uo(rg({loader:ag},ig)),lg=()=>t((()=>import("./pages-login-login.9992224a.js")),["assets/pages-login-login.9992224a.js","assets/index.b7bf8824.js","assets/uni-app.es.33963b28.js"]).then((e=>mh(e.default||e))),cg=uo(rg({loader:lg},ig)),ug=()=>t((()=>import("./pages-invoice-list.bef87e79.js")),["assets/pages-invoice-list.bef87e79.js","assets/uni-tag.15315537.js","assets/_plugin-vue_export-helper.1b428a4d.js","assets/uni-tag-0d6e247b.css","assets/uni-app.es.33963b28.js","assets/uni-icons.e39857b3.js","assets/uni-icons-e43d34a6.css","assets/index.b7bf8824.js","assets/list-ffb9c9c4.css"]).then((e=>mh(e.default||e))),dg=uo(rg({loader:ug},ig)),fg=()=>t((()=>import("./pages-invoice-detail.5b86731c.js")),["assets/pages-invoice-detail.5b86731c.js","assets/uni-icons.e39857b3.js","assets/_plugin-vue_export-helper.1b428a4d.js","assets/uni-icons-e43d34a6.css","assets/uni-app.es.33963b28.js","assets/index.b7bf8824.js","assets/detail-7d84777d.css"]).then((e=>mh(e.default||e))),pg=uo(rg({loader:fg},ig)),hg=()=>t((()=>import("./pages-chat-list.82edea1c.js")),["assets/pages-chat-list.82edea1c.js","assets/uni-easyinput.ade6c276.js","assets/uni-icons.e39857b3.js","assets/_plugin-vue_export-helper.1b428a4d.js","assets/uni-icons-e43d34a6.css","assets/uni-app.es.33963b28.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-popup.be52e098.js","assets/uni-popup-0c5683ca.css","assets/uni-tag.15315537.js","assets/uni-tag-0d6e247b.css","assets/index.b7bf8824.js","assets/list-f18273e1.css"]).then((e=>mh(e.default||e))),mg=uo(rg({loader:hg},ig)),gg=()=>t((()=>import("./pages-chat-detail.dc45ebbc.js")),["assets/pages-chat-detail.dc45ebbc.js","assets/uni-popup.be52e098.js","assets/_plugin-vue_export-helper.1b428a4d.js","assets/uni-app.es.33963b28.js","assets/uni-popup-0c5683ca.css","assets/uni-easyinput.ade6c276.js","assets/uni-icons.e39857b3.js","assets/uni-icons-e43d34a6.css","assets/uni-easyinput-cfd2af8c.css","assets/index.b7bf8824.js","assets/detail-493d7d51.css"]).then((e=>mh(e.default||e))),vg=uo(rg({loader:gg},ig)),yg=()=>t((()=>import("./pages-invoice-edit.d952e547.js")),["assets/pages-invoice-edit.d952e547.js","assets/uni-tag.15315537.js","assets/_plugin-vue_export-helper.1b428a4d.js","assets/uni-tag-0d6e247b.css","assets/uni-app.es.33963b28.js","assets/uni-easyinput.ade6c276.js","assets/uni-icons.e39857b3.js","assets/uni-icons-e43d34a6.css","assets/uni-easyinput-cfd2af8c.css","assets/index.b7bf8824.js","assets/edit-7228feff.css"]).then((e=>mh(e.default||e))),bg=uo(rg({loader:yg},ig));function _g(e,t){return Rr(),Hr(eg,null,{page:jn((()=>[Kr(e,rg({},t,{ref:"page"}),null,512)])),_:1})}window.__uniRoutes=[{path:"/",alias:"/pages/index/index",component:{setup(){const e=dh(),t=e&&e.$route&&e.$route.query||{};return()=>_g(sg,t)}},loader:ag,meta:{isQuit:!0,isEntry:!0,navigationBar:{titleText:"uni-app",type:"default"},isNVue:!1}},{path:"/pages/login/login",component:{setup(){const e=dh(),t=e&&e.$route&&e.$route.query||{};return()=>_g(cg,t)}},loader:lg,meta:{enablePullDownRefresh:!1,navigationBar:{style:"custom",type:"default"},isNVue:!1}},{path:"/pages/invoice/list",component:{setup(){const e=dh(),t=e&&e.$route&&e.$route.query||{};return()=>_g(dg,t)}},loader:ug,meta:{enablePullDownRefresh:!1,navigationBar:{style:"custom",type:"default"},isNVue:!1}},{path:"/pages/invoice/detail",component:{setup(){const e=dh(),t=e&&e.$route&&e.$route.query||{};return()=>_g(pg,t)}},loader:fg,meta:{enablePullDownRefresh:!1,navigationBar:{style:"custom",type:"default"},isNVue:!1}},{path:"/pages/chat/list",component:{setup(){const e=dh(),t=e&&e.$route&&e.$route.query||{};return()=>_g(mg,t)}},loader:hg,meta:{enablePullDownRefresh:!1,navigationBar:{style:"custom",type:"default"},isNVue:!1}},{path:"/pages/chat/detail",component:{setup(){const e=dh(),t=e&&e.$route&&e.$route.query||{};return()=>_g(vg,t)}},loader:gg,meta:{enablePullDownRefresh:!1,navigationBar:{style:"custom",type:"default"},isNVue:!1}},{path:"/pages/invoice/edit",component:{setup(){const e=dh(),t=e&&e.$route&&e.$route.query||{};return()=>_g(bg,t)}},loader:yg,meta:{enablePullDownRefresh:!1,navigationBar:{style:"custom",type:"default"},isNVue:!1}}].map((e=>(e.meta.route=(e.alias||e.path).slice(1),e)));const wg={onLaunch:function(){console.warn("当前组件仅支持 uni_modules 目录结构 ,请升级 HBuilderX 到 3.1.0 版本以上!"),console.log("App Launch")},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")}};hh(wg,{init:fh,setup(e){const t=Ap(),n=()=>{var n;n=e,Object.keys(pd).forEach((e=>{pd[e].forEach((t=>{Eo(e,t,n)}))}));const{onLaunch:o,onShow:r,onPageNotFound:i,onError:a}=e,s=function({path:e,query:t}){return c(Qd,{path:e,query:t}),c(ef,Qd),c({},Qd)}({path:t.path.slice(1)||__uniRoutes[0].meta.route,query:be(t.query)});if(o&&N(o,s),r&&N(r,s),!t.matched.length){const e={notFound:!0,openType:"appLaunch",path:t.path,query:{},scene:1001};i&&N(i,e)}a&&(e.appContext.config.errorHandler=e=>{N(a,e)})};return dl().isReady().then(n),Po((()=>{window.addEventListener("resize",xe(gh,50,{setTimeout:setTimeout,clearTimeout:clearTimeout})),window.addEventListener("message",vh),document.addEventListener("visibilitychange",yh),function(){let e=null;try{e=window.matchMedia("(prefers-color-scheme: dark)")}catch(t){}if(e){let t=e=>{Km.emit("onThemeChange",{theme:e.matches?"dark":"light"})};e.addEventListener?e.addEventListener("change",t):e.addListener(t)}}()})),t.query},before(e){e.mpType="app";const{setup:t}=e,n=()=>(Rr(),Hr(Xm));e.setup=(e,o)=>{const r=t&&t(e,o);return v(r)?n:r},e.render=n}}),Sa(wg).use(oh).mount("#app");export{bd as $,cf as A,dp as B,dl as C,Yn as D,en as E,Ar as F,zm as G,hm as H,Ma as I,Of as J,Sn as K,Wh as L,cm as M,Vp as N,ad as O,zh as P,qm as Q,Am as R,_d as S,wd as T,um as U,Bh as V,Ih as W,Rh as X,jh as Y,Mh as Z,Lh as _,Zr as a,fd as a0,hd as a1,Fh as a2,sm as a3,ya as a4,ip as a5,Vo as a6,dd as a7,Fo as a8,ba as a9,dh as aa,eu as ab,yp as ac,Eo as ad,si as ae,re as af,di as ag,se as b,Vr as c,Hr as d,bp as e,Kr as f,zo as g,bm as h,hp as i,tn as j,Po as k,Uo as l,_h as m,le as n,Rr as o,Jr as p,vm as q,Xo as r,Vm as s,K as t,an as u,Yr as v,jn as w,iu as x,wm as y,ym as z};
diff --git a/GDH5/unpackage/dist/build/h5/assets/index.86ec3509.js b/GDH5/unpackage/dist/build/h5/assets/index.b7bf8824.js
similarity index 95%
rename from GDH5/unpackage/dist/build/h5/assets/index.86ec3509.js
rename to GDH5/unpackage/dist/build/h5/assets/index.b7bf8824.js
index d73f3d0..d9f79e8 100644
--- a/GDH5/unpackage/dist/build/h5/assets/index.86ec3509.js
+++ b/GDH5/unpackage/dist/build/h5/assets/index.b7bf8824.js
@@ -1 +1 @@
-import{j as e,G as t,U as a,Q as s,s as o}from"./index-52f0fde8.js";const{isLoading:r,sendRequest:n}=function(){const r=e(!1);return{isLoading:r,sendRequest:function(e){let n=function(e){return e.header={Authorization:"Bearer "+sessionStorage.getItem("access_token"),"Content-Type":"application/json"},e}(e);return r.value=!0,t({title:"加载中"}),new Promise(((e,t)=>{a({...n,success:t=>{let a=200===(n=t).statusCode?(0==n.data.status&&o({title:n.data.msg,icon:"none"}),n.data):(o({title:"请求失败,请稍后重试",icon:"none"}),Promise.reject(n.data));var n;r.value=!1,s(),e(a)},fail:e=>{r.value=!1,s(),t(e)}})}))}}}();let i="https://service-platform.sixinyun.com",d=i+"/api/";const l=()=>i,u=e=>n({url:d+"H5/MianMiLogin",method:"POST",data:e}),v=e=>n({url:d+"v1/H5/InvoiceSave",method:"POST",data:e}),c=e=>n({url:d+"v1/H5/InvoiceGetList",method:"POST",data:e}),m=e=>n({url:d+"v1/H5/InvoiceGetDetail",method:"POST",data:e}),h=e=>n({url:d+"v1/H5/InvoiceGetHistory",method:"POST",data:e}),O=e=>n({url:d+"v1/H5/WorkOrderList",method:"POST",data:e}),S=e=>n({url:d+"v1/H5/WorkOrderSave",method:"POST",data:e}),P=e=>n({url:d+"v1/H5/GetSelfMsgList",method:"POST",data:e}),H=e=>n({url:d+"v1/H5/GetWorkOrderInfo",method:"POST",data:e}),T=e=>n({url:d+"v1/H5/InsertMsg",method:"POST",data:e}),g=e=>n({url:d+"v1/H5/UserChangeWorkOrder",method:"POST",data:e}),f=()=>d+"v1/UpFile";export{l as B,P as G,c as I,f as U,O as W,m as a,S as b,H as c,g as d,T as e,h as f,v as g,u as l};
+import{j as e,G as t,U as a,Q as s,s as o}from"./index-d9c03bf0.js";const{isLoading:r,sendRequest:n}=function(){const r=e(!1);return{isLoading:r,sendRequest:function(e){let n=function(e){return e.header={Authorization:"Bearer "+sessionStorage.getItem("access_token"),"Content-Type":"application/json"},e}(e);return r.value=!0,t({title:"加载中"}),new Promise(((e,t)=>{a({...n,success:t=>{let a=200===(n=t).statusCode?(0==n.data.status&&o({title:n.data.msg,icon:"none"}),n.data):(o({title:"请求失败,请稍后重试",icon:"none"}),Promise.reject(n.data));var n;r.value=!1,s(),e(a)},fail:e=>{r.value=!1,s(),t(e)}})}))}}}();let i="https://service-platform.sixinyun.com",d=i+"/api/";const l=()=>i,u=e=>n({url:d+"H5/MianMiLogin",method:"POST",data:e}),v=e=>n({url:d+"v1/H5/InvoiceSave",method:"POST",data:e}),c=e=>n({url:d+"v1/H5/InvoiceGetList",method:"POST",data:e}),m=e=>n({url:d+"v1/H5/InvoiceGetDetail",method:"POST",data:e}),h=e=>n({url:d+"v1/H5/InvoiceGetHistory",method:"POST",data:e}),O=e=>n({url:d+"v1/H5/WorkOrderList",method:"POST",data:e}),S=e=>n({url:d+"v1/H5/WorkOrderSave",method:"POST",data:e}),P=e=>n({url:d+"v1/H5/GetSelfMsgList",method:"POST",data:e}),H=e=>n({url:d+"v1/H5/GetWorkOrderInfo",method:"POST",data:e}),T=e=>n({url:d+"v1/H5/InsertMsg",method:"POST",data:e}),g=e=>n({url:d+"v1/H5/UserChangeWorkOrder",method:"POST",data:e}),f=()=>d+"v1/UpFile";export{l as B,P as G,c as I,f as U,O as W,m as a,S as b,H as c,g as d,T as e,h as f,v as g,u as l};
diff --git a/GDH5/unpackage/dist/build/h5/assets/list-8c943cac.css b/GDH5/unpackage/dist/build/h5/assets/list-8c943cac.css
deleted file mode 100644
index 247b7ed..0000000
--- a/GDH5/unpackage/dist/build/h5/assets/list-8c943cac.css
+++ /dev/null
@@ -1 +0,0 @@
-.invoice_list[data-v-25275b56]{padding:.625rem}.bar_list[data-v-25275b56]{display:flex;justify-content:space-between;border-bottom:1px solid #f0f0f0;background-color:#fff;border-radius:.625rem}.bar[data-v-25275b56]{padding:.46875rem .625rem;width:100%;text-align:center;border-radius:.625rem;color:#999;font-weight:700;font-size:.78125rem}.active_bar[data-v-25275b56]{background-color:#c1e5ff;color:#0083c5}.button_row[data-v-25275b56]{width:100%;text-align:right;margin-top:.3125rem}.litem[data-v-25275b56]{font-size:.78125rem;color:#676767;padding:.625rem;background-color:#fff;margin-bottom:.625rem;border-radius:.3125rem}.litem_row1[data-v-25275b56]{display:flex;justify-content:space-between;margin-bottom:.3125rem}.litem_row2[data-v-25275b56]{margin-bottom:.3125rem;width:100%}.jujueyuanyin[data-v-25275b56]{color:#2a8abd}.zanwu[data-v-25275b56]{color:#ccc;text-align:center;margin-top:2.5rem;font-size:.875rem}
diff --git a/GDH5/unpackage/dist/build/h5/assets/list-ffb9c9c4.css b/GDH5/unpackage/dist/build/h5/assets/list-ffb9c9c4.css
new file mode 100644
index 0000000..44e0971
--- /dev/null
+++ b/GDH5/unpackage/dist/build/h5/assets/list-ffb9c9c4.css
@@ -0,0 +1 @@
+.invoice_list[data-v-1ccd8b20]{padding:.625rem}.bar_list[data-v-1ccd8b20]{display:flex;justify-content:space-between;border-bottom:1px solid #f0f0f0;background-color:#fff;border-radius:.625rem}.bar[data-v-1ccd8b20]{padding:.46875rem .625rem;width:100%;text-align:center;border-radius:.625rem;color:#999;font-weight:700;font-size:.78125rem}.active_bar[data-v-1ccd8b20]{background-color:#c1e5ff;color:#0083c5}.button_row[data-v-1ccd8b20]{width:100%;text-align:right;margin-top:.3125rem}.litem[data-v-1ccd8b20]{font-size:.78125rem;color:#676767;padding:.625rem;background-color:#fff;margin-bottom:.625rem;border-radius:.3125rem}.litem_row1[data-v-1ccd8b20]{display:flex;justify-content:space-between;margin-bottom:.3125rem}.litem_row2[data-v-1ccd8b20]{margin-bottom:.3125rem;width:100%}.jujueyuanyin[data-v-1ccd8b20]{color:#2a8abd}.zanwu[data-v-1ccd8b20]{color:#ccc;text-align:center;margin-top:2.5rem;font-size:.875rem}
diff --git a/GDH5/unpackage/dist/build/h5/assets/pages-chat-detail.95dd27f4.js b/GDH5/unpackage/dist/build/h5/assets/pages-chat-detail.dc45ebbc.js
similarity index 95%
rename from GDH5/unpackage/dist/build/h5/assets/pages-chat-detail.95dd27f4.js
rename to GDH5/unpackage/dist/build/h5/assets/pages-chat-detail.dc45ebbc.js
index 99f86ca..f62dbde 100644
--- a/GDH5/unpackage/dist/build/h5/assets/pages-chat-detail.95dd27f4.js
+++ b/GDH5/unpackage/dist/build/h5/assets/pages-chat-detail.dc45ebbc.js
@@ -1 +1 @@
-import{I as e,o as t,d as s,w as a,f as l,n as i,a as u,t as n,r as o,i as p,e as r,J as c,j as d,k as f,K as _,u as g,c as m,l as h,F as y,p as k,E as v,s as x,H as b,A as T,g as j,B as M,v as S}from"./index-52f0fde8.js";import{_ as C,a as $}from"./uni-popup.9b735bd6.js";import{o as I,r as O}from"./uni-app.es.add45db9.js";import{_ as P}from"./uni-easyinput.59fbafce.js";import{_ as V}from"./_plugin-vue_export-helper.1b428a4d.js";import{B as w,G as z,c as B,d as D,e as H,U as W}from"./index.86ec3509.js";import"./uni-icons.67b3e996.js";const F={data:()=>({}),created(){this.popup=this.getParent()},methods:{getParent(e="uniPopup"){let t=this.$parent,s=t.$options.name;for(;s!==e;){if(t=t.$parent,!t)return!1;s=t.$options.name}return t}}},N={en:{"uni-popup.cancel":"cancel","uni-popup.ok":"ok","uni-popup.placeholder":"pleace enter","uni-popup.title":"Hint","uni-popup.shareTitle":"Share to"},"zh-Hans":{"uni-popup.cancel":"取消","uni-popup.ok":"确定","uni-popup.placeholder":"请输入","uni-popup.title":"提示","uni-popup.shareTitle":"分享到"},"zh-Hant":{"uni-popup.cancel":"取消","uni-popup.ok":"確定","uni-popup.placeholder":"請輸入","uni-popup.title":"提示","uni-popup.shareTitle":"分享到"}},{t:U}=e(N);const A=V({name:"uniPopupDialog",mixins:[F],emits:["confirm","close"],props:{inputType:{type:String,default:"text"},value:{type:[String,Number],default:""},placeholder:{type:[String,Number],default:""},type:{type:String,default:"error"},mode:{type:String,default:"base"},title:{type:String,default:""},content:{type:String,default:""},beforeClose:{type:Boolean,default:!1},cancelText:{type:String,default:""},confirmText:{type:String,default:""}},data:()=>({dialogType:"error",focus:!1,val:""}),computed:{okText(){return this.confirmText||U("uni-popup.ok")},closeText(){return this.cancelText||U("uni-popup.cancel")},placeholderText(){return this.placeholder||U("uni-popup.placeholder")},titleText(){return this.title||U("uni-popup.title")}},watch:{type(e){this.dialogType=e},mode(e){"input"===e&&(this.dialogType="info")},value(e){this.val=e}},created(){this.popup.disableMask(),"input"===this.mode?(this.dialogType="info",this.val=this.value):this.dialogType=this.type},mounted(){this.focus=!0},methods:{onOk(){"input"===this.mode?this.$emit("confirm",this.val):this.$emit("confirm"),this.beforeClose||this.popup.close()},closeDialog(){this.$emit("close"),this.beforeClose||this.popup.close()},close(){this.popup.close()}}},[["render",function(e,d,f,_,g,m){const h=p,y=r,k=c;return t(),s(y,{class:"uni-popup-dialog"},{default:a((()=>[l(y,{class:"uni-dialog-title"},{default:a((()=>[l(h,{class:i(["uni-dialog-title-text",["uni-popup__"+g.dialogType]])},{default:a((()=>[u(n(m.titleText),1)])),_:1},8,["class"])])),_:1}),"base"===f.mode?(t(),s(y,{key:0,class:"uni-dialog-content"},{default:a((()=>[o(e.$slots,"default",{},(()=>[l(h,{class:"uni-dialog-content-text"},{default:a((()=>[u(n(f.content),1)])),_:1})]),!0)])),_:3})):(t(),s(y,{key:1,class:"uni-dialog-content"},{default:a((()=>[o(e.$slots,"default",{},(()=>[l(k,{class:"uni-dialog-input",modelValue:g.val,"onUpdate:modelValue":d[0]||(d[0]=e=>g.val=e),type:f.inputType,placeholder:m.placeholderText,focus:g.focus},null,8,["modelValue","type","placeholder","focus"])]),!0)])),_:3})),l(y,{class:"uni-dialog-button-group"},{default:a((()=>[l(y,{class:"uni-dialog-button",onClick:m.closeDialog},{default:a((()=>[l(h,{class:"uni-dialog-button-text"},{default:a((()=>[u(n(m.closeText),1)])),_:1})])),_:1},8,["onClick"]),l(y,{class:"uni-dialog-button uni-border-left",onClick:m.onOk},{default:a((()=>[l(h,{class:"uni-dialog-button-text uni-button-color"},{default:a((()=>[u(n(m.okText),1)])),_:1})])),_:1},8,["onClick"])])),_:1})])),_:3})}],["__scopeId","data-v-b888b3dc"]]),E=V({__name:"detail",setup(e){let i={width:50,height:50,border:{color:"#ccc",width:1,style:"dashed",radius:"2px"}},o=d(null),p=d(!0),c=d(null);const V=()=>{p.value=!0},F=e=>{0==e.detail.value&&(c.value.open(),p.value=!1)};let N=d("");I((e=>{N.value=e.id}));const U=async()=>{let e={WorkOrder:N.value};D(e).then((e=>{e.status&&(x({title:"工单成功关闭",duration:2e3,icon:"none"}),Q())}))};let E=d(""),J=d(0),G=d([]),K=d("");const q=async()=>{if(""==E.value)return;let e={MsgInfo:{WorkOrder:N.value,Content:E.value,MsgType:J.value}};E.value="",J.value=0,H(e).then((e=>{e.status&&Q()}))};let L=d(1);const Q=async()=>{let e={Page:L.value,WorkOrder:N.value};z(e).then((e=>{e.status&&(G.value=e.data.list.reverse(),K.value=e.data.workorder_status,X())}))},R=d(null),X=()=>{_((()=>{document.getElementById("container").scrollIntoView(!1)}))};let Y=d("");const Z=e=>{console.log(e),b({url:W(),filePath:e.tempFilePaths[0],name:"file",header:{Authorization:"Bearer "+sessionStorage.getItem("access_token")},success:e=>{let t=JSON.parse(e.data);o.value.clearFiles(),E.value=t.data,J.value=1,q()},fail:e=>{console.log(e)}})};let ee=d("");return f((()=>{ee.value=w(),console.log(ee.value),B({WorkOrder:N.value}).then((e=>{e.status&&(Y.value=e.data)})),Q()})),(e,d)=>{const f=r,_=T,x=O(j("uni-file-picker"),C),b=M,I=O(j("uni-easyinput"),P),w=S,z=O(j("uni-popup-dialog"),A),B=O(j("uni-popup"),$);return t(),s(f,{class:"chatk"},{default:a((()=>[l(f,{class:"msg_list",ref_key:"scrollContainer",ref:R,id:"container"},{default:a((()=>[""!=g(Y)?(t(),s(f,{key:0,class:"sendMsg"},{default:a((()=>[l(f,{class:"sendMsg_left"},{default:a((()=>[l(f,{class:"sendMsg_left_time"},{default:a((()=>[u(n(g(Y).created_at.substring(5,19)),1)])),_:1}),l(f,{class:"sendMsg_left_msg"},{default:a((()=>[l(f,{class:"jianjie_k"},{default:a((()=>[l(f,null,{default:a((()=>[u(n(g(Y).title),1)])),_:1}),l(f,{class:"jianjie_img_k"},{default:a((()=>[(t(!0),m(y,null,h(g(Y).imgs,((e,a)=>(t(),s(_,{key:a,class:"jianjie_img",src:g(ee)+e},null,8,["src"])))),128))])),_:1})])),_:1})])),_:1})])),_:1}),l(f,{class:"sendMsg_right"},{default:a((()=>[l(_,{class:"user_img",src:"/h5/assets/user-b56d736a.png"})])),_:1})])),_:1})):k("",!0),(t(!0),m(y,null,h(g(G),((e,i)=>(t(),s(f,null,{default:a((()=>[0==e.user_type?(t(),s(f,{key:0,class:"sendMsg"},{default:a((()=>[l(f,{class:"sendMsg_left"},{default:a((()=>[l(f,{class:"sendMsg_left_time"},{default:a((()=>[u(n(e.created_at.substring(5,19)),1)])),_:2},1024),l(f,{class:"sendMsg_left_msg"},{default:a((()=>[0==e.msg_type?(t(),m("span",{key:0},n(e.content),1)):k("",!0),1==e.msg_type?(t(),m("span",{key:1},[l(_,{class:"jianjie_img",src:g(ee)+e.content},null,8,["src"])])):k("",!0)])),_:2},1024)])),_:2},1024),l(f,{class:"sendMsg_right"},{default:a((()=>[l(_,{class:"user_img",src:"/h5/assets/user-b56d736a.png"})])),_:1})])),_:2},1024)):k("",!0),1==e.user_type?(t(),s(f,{key:1,class:"receiveMsg"},{default:a((()=>[l(f,{class:"receiveMsg_left"},{default:a((()=>[l(_,{class:"user_img",src:"/h5/assets/kefu-54da46bf.png"}),l(f,{class:"username"},{default:a((()=>[u("客服")])),_:1})])),_:1}),l(f,{class:"receiveMsg_right"},{default:a((()=>[l(f,{class:"receiveMsg_right_time"},{default:a((()=>[u(n(e.created_at.substring(5,19)),1)])),_:2},1024),l(f,{class:"receiveMsg_right_msg"},{default:a((()=>[0==e.msg_type?(t(),m("span",{key:0},n(e.content),1)):k("",!0),1==e.msg_type?(t(),m("span",{key:1},[l(_,{class:"jianjie_img",src:g(ee)+e.content},null,8,["src"])])):k("",!0)])),_:2},1024)])),_:2},1024)])),_:2},1024)):k("",!0)])),_:2},1024)))),256)),0==g(G).length?(t(),s(f,{key:1,class:"tishi"},{default:a((()=>[u("欢迎留言")])),_:1})):k("",!0),3==g(K).status?(t(),s(f,{key:2,class:"tishi"},{default:a((()=>[u("工单已关闭,如遇到问题请重新提交工单")])),_:1})):k("",!0),l(f,{class:"ding"})])),_:1},512),l(f,{class:"end"},{default:a((()=>[1==g(K).status||2==g(K).status?(t(),s(f,{key:0,style:{display:"flex"}},{default:a((()=>[l(f,{style:{"margin-bottom":"10rpx","font-size":"20rpx",color:"#999999"}},{default:a((()=>[u(" 发送图片 "),l(x,{ref_key:"files",ref:o,class:"file111",onSelect:Z,imageStyles:g(i),"auto-upload":!1,limit:"1"},null,8,["imageStyles"])])),_:1}),l(f,{style:{display:"flex","align-items":"center","margin-left":"20rpx"}},{default:a((()=>[l(b,{checked:g(p),color:"#ff7c2e",onChange:F,style:{transform:"scale(0.7)","margin-bottom":"10rpx"}},null,8,["checked"]),l(f,{style:{color:"#808080","font-size":"22rpx","margin-top":"-10rpx","margin-left":"-10rpx"}},{default:a((()=>[u("关闭此工单")])),_:1})])),_:1})])),_:1})):k("",!0),l(f,{class:"msg_k"},{default:a((()=>[l(f,{class:"msg_k_left"},{default:a((()=>[l(I,{disabled:3==g(K).status,type:"textarea",modelValue:g(E),"onUpdate:modelValue":d[0]||(d[0]=e=>v(E)?E.value=e:E=e),placeholder:"请输入留言信息"},null,8,["disabled","modelValue"])])),_:1}),l(f,{class:"msg_k_right"},{default:a((()=>[l(w,{type:"primary",size:"mini",plain:"true",onClick:q},{default:a((()=>[u("发送")])),_:1})])),_:1})])),_:1})])),_:1}),l(f,null,{default:a((()=>[l(B,{ref_key:"alertDialog",ref:c,type:"dialog"},{default:a((()=>[l(z,{cancelText:"取消",confirmText:"确定",title:"提示",content:"确定关闭此工单吗?",onConfirm:U,onClose:V})])),_:1},512)])),_:1})])),_:1})}}},[["__scopeId","data-v-bb0b567a"]]);export{E as default};
+import{I as e,o as t,d as s,w as a,f as l,n as i,a as u,t as n,r as o,i as p,e as r,J as c,j as d,k as f,K as _,u as g,c as m,l as h,F as y,p as k,E as v,s as x,H as b,A as T,g as j,B as M,x as S}from"./index-d9c03bf0.js";import{_ as C,a as $}from"./uni-popup.be52e098.js";import{o as I,r as O}from"./uni-app.es.33963b28.js";import{_ as P}from"./uni-easyinput.ade6c276.js";import{_ as V}from"./_plugin-vue_export-helper.1b428a4d.js";import{B as w,G as z,c as B,d as D,e as H,U as W}from"./index.b7bf8824.js";import"./uni-icons.e39857b3.js";const F={data:()=>({}),created(){this.popup=this.getParent()},methods:{getParent(e="uniPopup"){let t=this.$parent,s=t.$options.name;for(;s!==e;){if(t=t.$parent,!t)return!1;s=t.$options.name}return t}}},N={en:{"uni-popup.cancel":"cancel","uni-popup.ok":"ok","uni-popup.placeholder":"pleace enter","uni-popup.title":"Hint","uni-popup.shareTitle":"Share to"},"zh-Hans":{"uni-popup.cancel":"取消","uni-popup.ok":"确定","uni-popup.placeholder":"请输入","uni-popup.title":"提示","uni-popup.shareTitle":"分享到"},"zh-Hant":{"uni-popup.cancel":"取消","uni-popup.ok":"確定","uni-popup.placeholder":"請輸入","uni-popup.title":"提示","uni-popup.shareTitle":"分享到"}},{t:U}=e(N);const A=V({name:"uniPopupDialog",mixins:[F],emits:["confirm","close"],props:{inputType:{type:String,default:"text"},value:{type:[String,Number],default:""},placeholder:{type:[String,Number],default:""},type:{type:String,default:"error"},mode:{type:String,default:"base"},title:{type:String,default:""},content:{type:String,default:""},beforeClose:{type:Boolean,default:!1},cancelText:{type:String,default:""},confirmText:{type:String,default:""}},data:()=>({dialogType:"error",focus:!1,val:""}),computed:{okText(){return this.confirmText||U("uni-popup.ok")},closeText(){return this.cancelText||U("uni-popup.cancel")},placeholderText(){return this.placeholder||U("uni-popup.placeholder")},titleText(){return this.title||U("uni-popup.title")}},watch:{type(e){this.dialogType=e},mode(e){"input"===e&&(this.dialogType="info")},value(e){this.val=e}},created(){this.popup.disableMask(),"input"===this.mode?(this.dialogType="info",this.val=this.value):this.dialogType=this.type},mounted(){this.focus=!0},methods:{onOk(){"input"===this.mode?this.$emit("confirm",this.val):this.$emit("confirm"),this.beforeClose||this.popup.close()},closeDialog(){this.$emit("close"),this.beforeClose||this.popup.close()},close(){this.popup.close()}}},[["render",function(e,d,f,_,g,m){const h=p,y=r,k=c;return t(),s(y,{class:"uni-popup-dialog"},{default:a((()=>[l(y,{class:"uni-dialog-title"},{default:a((()=>[l(h,{class:i(["uni-dialog-title-text",["uni-popup__"+g.dialogType]])},{default:a((()=>[u(n(m.titleText),1)])),_:1},8,["class"])])),_:1}),"base"===f.mode?(t(),s(y,{key:0,class:"uni-dialog-content"},{default:a((()=>[o(e.$slots,"default",{},(()=>[l(h,{class:"uni-dialog-content-text"},{default:a((()=>[u(n(f.content),1)])),_:1})]),!0)])),_:3})):(t(),s(y,{key:1,class:"uni-dialog-content"},{default:a((()=>[o(e.$slots,"default",{},(()=>[l(k,{class:"uni-dialog-input",modelValue:g.val,"onUpdate:modelValue":d[0]||(d[0]=e=>g.val=e),type:f.inputType,placeholder:m.placeholderText,focus:g.focus},null,8,["modelValue","type","placeholder","focus"])]),!0)])),_:3})),l(y,{class:"uni-dialog-button-group"},{default:a((()=>[l(y,{class:"uni-dialog-button",onClick:m.closeDialog},{default:a((()=>[l(h,{class:"uni-dialog-button-text"},{default:a((()=>[u(n(m.closeText),1)])),_:1})])),_:1},8,["onClick"]),l(y,{class:"uni-dialog-button uni-border-left",onClick:m.onOk},{default:a((()=>[l(h,{class:"uni-dialog-button-text uni-button-color"},{default:a((()=>[u(n(m.okText),1)])),_:1})])),_:1},8,["onClick"])])),_:1})])),_:3})}],["__scopeId","data-v-b888b3dc"]]),E=V({__name:"detail",setup(e){let i={width:50,height:50,border:{color:"#ccc",width:1,style:"dashed",radius:"2px"}},o=d(null),p=d(!0),c=d(null);const V=()=>{p.value=!0},F=e=>{0==e.detail.value&&(c.value.open(),p.value=!1)};let N=d("");I((e=>{N.value=e.id}));const U=async()=>{let e={WorkOrder:N.value};D(e).then((e=>{e.status&&(x({title:"工单成功关闭",duration:2e3,icon:"none"}),Q())}))};let E=d(""),J=d(0),G=d([]),K=d("");const q=async()=>{if(""==E.value)return;let e={MsgInfo:{WorkOrder:N.value,Content:E.value,MsgType:J.value}};E.value="",J.value=0,H(e).then((e=>{e.status&&Q()}))};let L=d(1);const Q=async()=>{let e={Page:L.value,WorkOrder:N.value};z(e).then((e=>{e.status&&(G.value=e.data.list.reverse(),K.value=e.data.workorder_status,X())}))},R=d(null),X=()=>{_((()=>{document.getElementById("container").scrollIntoView(!1)}))};let Y=d("");const Z=e=>{console.log(e),b({url:W(),filePath:e.tempFilePaths[0],name:"file",header:{Authorization:"Bearer "+sessionStorage.getItem("access_token")},success:e=>{let t=JSON.parse(e.data);o.value.clearFiles(),E.value=t.data,J.value=1,q()},fail:e=>{console.log(e)}})};let ee=d("");return f((()=>{ee.value=w(),console.log(ee.value),B({WorkOrder:N.value}).then((e=>{e.status&&(Y.value=e.data)})),Q()})),(e,d)=>{const f=r,_=T,x=O(j("uni-file-picker"),C),b=M,I=O(j("uni-easyinput"),P),w=S,z=O(j("uni-popup-dialog"),A),B=O(j("uni-popup"),$);return t(),s(f,{class:"chatk"},{default:a((()=>[l(f,{class:"msg_list",ref_key:"scrollContainer",ref:R,id:"container"},{default:a((()=>[""!=g(Y)?(t(),s(f,{key:0,class:"sendMsg"},{default:a((()=>[l(f,{class:"sendMsg_left"},{default:a((()=>[l(f,{class:"sendMsg_left_time"},{default:a((()=>[u(n(g(Y).created_at.substring(5,19)),1)])),_:1}),l(f,{class:"sendMsg_left_msg"},{default:a((()=>[l(f,{class:"jianjie_k"},{default:a((()=>[l(f,null,{default:a((()=>[u(n(g(Y).title),1)])),_:1}),l(f,{class:"jianjie_img_k"},{default:a((()=>[(t(!0),m(y,null,h(g(Y).imgs,((e,a)=>(t(),s(_,{key:a,class:"jianjie_img",src:g(ee)+e},null,8,["src"])))),128))])),_:1})])),_:1})])),_:1})])),_:1}),l(f,{class:"sendMsg_right"},{default:a((()=>[l(_,{class:"user_img",src:"/h5/assets/user-b56d736a.png"})])),_:1})])),_:1})):k("",!0),(t(!0),m(y,null,h(g(G),((e,i)=>(t(),s(f,null,{default:a((()=>[0==e.user_type?(t(),s(f,{key:0,class:"sendMsg"},{default:a((()=>[l(f,{class:"sendMsg_left"},{default:a((()=>[l(f,{class:"sendMsg_left_time"},{default:a((()=>[u(n(e.created_at.substring(5,19)),1)])),_:2},1024),l(f,{class:"sendMsg_left_msg"},{default:a((()=>[0==e.msg_type?(t(),m("span",{key:0},n(e.content),1)):k("",!0),1==e.msg_type?(t(),m("span",{key:1},[l(_,{class:"jianjie_img",src:g(ee)+e.content},null,8,["src"])])):k("",!0)])),_:2},1024)])),_:2},1024),l(f,{class:"sendMsg_right"},{default:a((()=>[l(_,{class:"user_img",src:"/h5/assets/user-b56d736a.png"})])),_:1})])),_:2},1024)):k("",!0),1==e.user_type?(t(),s(f,{key:1,class:"receiveMsg"},{default:a((()=>[l(f,{class:"receiveMsg_left"},{default:a((()=>[l(_,{class:"user_img",src:"/h5/assets/kefu-54da46bf.png"}),l(f,{class:"username"},{default:a((()=>[u("客服")])),_:1})])),_:1}),l(f,{class:"receiveMsg_right"},{default:a((()=>[l(f,{class:"receiveMsg_right_time"},{default:a((()=>[u(n(e.created_at.substring(5,19)),1)])),_:2},1024),l(f,{class:"receiveMsg_right_msg"},{default:a((()=>[0==e.msg_type?(t(),m("span",{key:0},n(e.content),1)):k("",!0),1==e.msg_type?(t(),m("span",{key:1},[l(_,{class:"jianjie_img",src:g(ee)+e.content},null,8,["src"])])):k("",!0)])),_:2},1024)])),_:2},1024)])),_:2},1024)):k("",!0)])),_:2},1024)))),256)),0==g(G).length?(t(),s(f,{key:1,class:"tishi"},{default:a((()=>[u("欢迎留言")])),_:1})):k("",!0),3==g(K).status?(t(),s(f,{key:2,class:"tishi"},{default:a((()=>[u("工单已关闭,如遇到问题请重新提交工单")])),_:1})):k("",!0),l(f,{class:"ding"})])),_:1},512),l(f,{class:"end"},{default:a((()=>[1==g(K).status||2==g(K).status?(t(),s(f,{key:0,style:{display:"flex"}},{default:a((()=>[l(f,{style:{"margin-bottom":"10rpx","font-size":"20rpx",color:"#999999"}},{default:a((()=>[u(" 发送图片 "),l(x,{ref_key:"files",ref:o,class:"file111",onSelect:Z,imageStyles:g(i),"auto-upload":!1,limit:"1"},null,8,["imageStyles"])])),_:1}),l(f,{style:{display:"flex","align-items":"center","margin-left":"20rpx"}},{default:a((()=>[l(b,{checked:g(p),color:"#ff7c2e",onChange:F,style:{transform:"scale(0.7)","margin-bottom":"10rpx"}},null,8,["checked"]),l(f,{style:{color:"#808080","font-size":"22rpx","margin-top":"-10rpx","margin-left":"-10rpx"}},{default:a((()=>[u("关闭此工单")])),_:1})])),_:1})])),_:1})):k("",!0),l(f,{class:"msg_k"},{default:a((()=>[l(f,{class:"msg_k_left"},{default:a((()=>[l(I,{disabled:3==g(K).status,type:"textarea",modelValue:g(E),"onUpdate:modelValue":d[0]||(d[0]=e=>v(E)?E.value=e:E=e),placeholder:"请输入留言信息"},null,8,["disabled","modelValue"])])),_:1}),l(f,{class:"msg_k_right"},{default:a((()=>[l(w,{type:"primary",size:"mini",plain:"true",onClick:q},{default:a((()=>[u("发送")])),_:1})])),_:1})])),_:1})])),_:1}),l(f,null,{default:a((()=>[l(B,{ref_key:"alertDialog",ref:c,type:"dialog"},{default:a((()=>[l(z,{cancelText:"取消",confirmText:"确定",title:"提示",content:"确定关闭此工单吗?",onConfirm:U,onClose:V})])),_:1},512)])),_:1})])),_:1})}}},[["__scopeId","data-v-bb0b567a"]]);export{E as default};
diff --git a/GDH5/unpackage/dist/build/h5/assets/pages-chat-list.3653a76b.js b/GDH5/unpackage/dist/build/h5/assets/pages-chat-list.82edea1c.js
similarity index 96%
rename from GDH5/unpackage/dist/build/h5/assets/pages-chat-list.3653a76b.js
rename to GDH5/unpackage/dist/build/h5/assets/pages-chat-list.82edea1c.js
index 1e85a54..f280e6f 100644
--- a/GDH5/unpackage/dist/build/h5/assets/pages-chat-list.3653a76b.js
+++ b/GDH5/unpackage/dist/build/h5/assets/pages-chat-list.82edea1c.js
@@ -1 +1 @@
-import{o as t,d as e,w as i,f as l,n as s,r as a,b as o,a as n,t as d,p as r,e as u,i as c,q as p,y as h,h as f,z as g,g as y,A as m,B as b,C as _,j as k,D as S,k as x,u as v,E as w,c as C,l as B,F as T,s as $,G as F,H as z,v as I}from"./index-52f0fde8.js";import{_ as j}from"./uni-easyinput.59fbafce.js";import{r as A}from"./uni-app.es.add45db9.js";import{_ as P,a as N}from"./uni-popup.9b735bd6.js";import{_ as D}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as O}from"./uni-tag.065469d1.js";import{_ as E}from"./uni-icons.67b3e996.js";import{W as L,b as U,U as V}from"./index.86ec3509.js";const R=D({name:"UniSection",emits:["click"],props:{type:{type:String,default:""},title:{type:String,required:!0,default:""},titleFontSize:{type:String,default:"14px"},titleColor:{type:String,default:"#333"},subTitle:{type:String,default:""},subTitleFontSize:{type:String,default:"12px"},subTitleColor:{type:String,default:"#999"},padding:{type:[Boolean,String],default:!1}},computed:{_padding(){return"string"==typeof this.padding?this.padding:this.padding?"10px":""}},watch:{title(t){uni.report&&""!==t&&uni.report("title",t)}},methods:{onClick(){this.$emit("click")}}},[["render",function(p,h,f,g,y,m){const b=u,_=c;return t(),e(b,{class:"uni-section"},{default:i((()=>[l(b,{class:"uni-section-header",onClick:m.onClick},{default:i((()=>[f.type?(t(),e(b,{key:0,class:s(["uni-section-header__decoration",f.type])},null,8,["class"])):a(p.$slots,"decoration",{key:1},void 0,!0),l(b,{class:"uni-section-header__content"},{default:i((()=>[l(_,{style:o({"font-size":f.titleFontSize,color:f.titleColor}),class:s(["uni-section__content-title",{distraction:!f.subTitle}])},{default:i((()=>[n(d(f.title),1)])),_:1},8,["style","class"]),f.subTitle?(t(),e(_,{key:0,style:o({"font-size":f.subTitleFontSize,color:f.subTitleColor}),class:"uni-section-header__content-sub"},{default:i((()=>[n(d(f.subTitle),1)])),_:1},8,["style"])):r("",!0)])),_:1}),l(b,{class:"uni-section-header__slot-right"},{default:i((()=>[a(p.$slots,"right",{},void 0,!0)])),_:3})])),_:3},8,["onClick"]),l(b,{class:"uni-section-content",style:o({padding:m._padding})},{default:i((()=>[a(p.$slots,"default",{},void 0,!0)])),_:3},8,["style"])])),_:3})}],["__scopeId","data-v-0a8818d5"]]);const q=D({name:"UniBadge",emits:["click"],props:{type:{type:String,default:"error"},inverted:{type:Boolean,default:!1},isDot:{type:Boolean,default:!1},maxNum:{type:Number,default:99},absolute:{type:String,default:""},offset:{type:Array,default:()=>[0,0]},text:{type:[String,Number],default:""},size:{type:String,default:"small"},customStyle:{type:Object,default:()=>({})}},data:()=>({}),computed:{width(){return 8*String(this.text).length+12},classNames(){const{inverted:t,type:e,size:i,absolute:l}=this;return[t?"uni-badge--"+e+"-inverted":"","uni-badge--"+e,"uni-badge--"+i,l?"uni-badge--absolute":""].join(" ")},positionStyle(){if(!this.absolute)return{};let t=this.width/2,e=10;this.isDot&&(t=5,e=5);const i=`${-t+this.offset[0]}px`,l=`${-e+this.offset[1]}px`,s={rightTop:{right:i,top:l},rightBottom:{right:i,bottom:l},leftBottom:{left:i,bottom:l},leftTop:{left:i,top:l}},a=s[this.absolute];return a||s.rightTop},dotStyle(){return this.isDot?{width:"10px",minWidth:"0",height:"10px",padding:"0",borderRadius:"10px"}:{}},displayValue(){const{isDot:t,text:e,maxNum:i}=this;return t?"":Number(e)>i?`${i}+`:e}},methods:{onClick(){this.$emit("click")}}},[["render",function(l,p,h,f,g,y){const m=c,b=u;return t(),e(b,{class:"uni-badge--x"},{default:i((()=>[a(l.$slots,"default",{},void 0,!0),h.text?(t(),e(m,{key:0,class:s([y.classNames,"uni-badge"]),style:o([y.positionStyle,h.customStyle,y.dotStyle]),onClick:p[0]||(p[0]=t=>y.onClick())},{default:i((()=>[n(d(y.displayValue),1)])),_:1},8,["class","style"])):r("",!0)])),_:3})}],["__scopeId","data-v-414d462c"]]);const W=D({name:"UniListItem",emits:["click","switchChange"],props:{direction:{type:String,default:"row"},title:{type:String,default:""},note:{type:String,default:""},ellipsis:{type:[Number,String],default:0},disabled:{type:[Boolean,String],default:!1},clickable:{type:Boolean,default:!1},showArrow:{type:[Boolean,String],default:!1},link:{type:[Boolean,String],default:!1},to:{type:String,default:""},showBadge:{type:[Boolean,String],default:!1},showSwitch:{type:[Boolean,String],default:!1},switchChecked:{type:[Boolean,String],default:!1},badgeText:{type:String,default:""},badgeType:{type:String,default:"success"},badgeStyle:{type:Object,default:()=>({})},rightText:{type:String,default:""},thumb:{type:String,default:""},thumbSize:{type:String,default:"base"},showExtraIcon:{type:[Boolean,String],default:!1},extraIcon:{type:Object,default:()=>({type:"",color:"#000000",size:20,customPrefix:""})},border:{type:Boolean,default:!0},customStyle:{type:Object,default:()=>({padding:"",backgroundColor:"#FFFFFF"})},keepScrollPosition:{type:Boolean,default:!1}},watch:{"customStyle.padding":{handler(t){"number"==typeof t&&(t+="");let e=t.split(" ");if(1===e.length){const t=e[0];this.padding={top:t,right:t,bottom:t,left:t}}else if(2===e.length){const[t,i]=e;this.padding={top:t,right:i,bottom:t,left:i}}else if(4===e.length){const[t,i,l,s]=e;this.padding={top:t,right:i,bottom:l,left:s}}},immediate:!0}},data:()=>({isFirstChild:!1,padding:{top:"",right:"",bottom:"",left:""}}),mounted(){this.list=this.getForm(),this.list&&(this.list.firstChildAppend||(this.list.firstChildAppend=!0,this.isFirstChild=!0))},methods:{getForm(t="uniList"){let e=this.$parent,i=e.$options.name;for(;i!==t;){if(e=e.$parent,!e)return!1;i=e.$options.name}return e},onClick(){""===this.to?(this.clickable||this.link)&&this.$emit("click",{data:{}}):this.openPage()},onSwitchChange(t){this.$emit("switchChange",t.detail)},openPage(){-1!==["navigateTo","redirectTo","reLaunch","switchTab"].indexOf(this.link)?this.pageApi(this.link):this.pageApi("navigateTo")},pageApi(t){let e={url:this.to,success:t=>{this.$emit("click",{data:t})},fail:t=>{this.$emit("click",{data:t})}};switch(t){case"navigateTo":default:p(e);break;case"redirectTo":g(e);break;case"reLaunch":f(e);break;case"switchTab":h(e)}}}},[["render",function(p,h,f,g,_,k){const S=u,x=m,v=A(y("uni-icons"),E),w=c,C=A(y("uni-badge"),q),B=b;return t(),e(S,{class:s([{"uni-list-item--disabled":f.disabled},"uni-list-item"]),style:o({"background-color":f.customStyle.backgroundColor}),"hover-class":!f.clickable&&!f.link||f.disabled||f.showSwitch?"":"uni-list-item--hover",onClick:k.onClick},{default:i((()=>[_.isFirstChild?r("",!0):(t(),e(S,{key:0,class:s(["border--left",{"uni-list--border":f.border}])},null,8,["class"])),l(S,{class:s(["uni-list-item__container",{"container--right":f.showArrow||f.link,"flex--direction":"column"===f.direction}]),style:o({paddingTop:_.padding.top,paddingLeft:_.padding.left,paddingRight:_.padding.right,paddingBottom:_.padding.bottom})},{default:i((()=>[a(p.$slots,"header",{},(()=>[l(S,{class:"uni-list-item__header"},{default:i((()=>[f.thumb?(t(),e(S,{key:0,class:"uni-list-item__icon"},{default:i((()=>[l(x,{src:f.thumb,class:s(["uni-list-item__icon-img",["uni-list--"+f.thumbSize]])},null,8,["src","class"])])),_:1})):f.showExtraIcon?(t(),e(S,{key:1,class:"uni-list-item__icon"},{default:i((()=>[l(v,{customPrefix:f.extraIcon.customPrefix,color:f.extraIcon.color,size:f.extraIcon.size,type:f.extraIcon.type},null,8,["customPrefix","color","size","type"])])),_:1})):r("",!0)])),_:1})]),!0),a(p.$slots,"body",{},(()=>[l(S,{class:s(["uni-list-item__content",{"uni-list-item__content--center":f.thumb||f.showExtraIcon||f.showBadge||f.showSwitch}])},{default:i((()=>[f.title?(t(),e(w,{key:0,class:s(["uni-list-item__content-title",[0!==f.ellipsis&&f.ellipsis<=2?"uni-ellipsis-"+f.ellipsis:""]])},{default:i((()=>[n(d(f.title),1)])),_:1},8,["class"])):r("",!0),f.note?(t(),e(w,{key:1,class:"uni-list-item__content-note"},{default:i((()=>[n(d(f.note),1)])),_:1})):r("",!0)])),_:1},8,["class"])]),!0),a(p.$slots,"footer",{},(()=>[f.rightText||f.showBadge||f.showSwitch?(t(),e(S,{key:0,class:s(["uni-list-item__extra",{"flex--justify":"column"===f.direction}])},{default:i((()=>[f.rightText?(t(),e(w,{key:0,class:"uni-list-item__extra-text"},{default:i((()=>[n(d(f.rightText),1)])),_:1})):r("",!0),f.showBadge?(t(),e(C,{key:1,type:f.badgeType,text:f.badgeText,"custom-style":f.badgeStyle},null,8,["type","text","custom-style"])):r("",!0),f.showSwitch?(t(),e(B,{key:2,disabled:f.disabled,checked:f.switchChecked,onChange:k.onSwitchChange},null,8,["disabled","checked","onChange"])):r("",!0)])),_:1},8,["class"])):r("",!0)]),!0)])),_:3},8,["class","style"]),f.showArrow||f.link?(t(),e(v,{key:1,size:16,class:"uni-icon-wrapper",color:"#bbb",type:"arrowright"})):r("",!0)])),_:3},8,["class","style","hover-class","onClick"])}],["__scopeId","data-v-77963a5a"]]);const G=D({name:"uniList","mp-weixin":{options:{multipleSlots:!1}},props:{stackFromEnd:{type:Boolean,default:!1},enableBackToTop:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},border:{type:Boolean,default:!0},renderReverse:{type:Boolean,default:!1}},created(){this.firstChildAppend=!1},methods:{loadMore(t){this.$emit("scrolltolower")},scroll(t){this.$emit("scroll",t)}}},[["render",function(l,s,o,n,d,c){const p=u;return t(),e(p,{class:"uni-list uni-border-top-bottom"},{default:i((()=>[o.border?(t(),e(p,{key:0,class:"uni-list--border-top"})):r("",!0),a(l.$slots,"default",{},void 0,!0),o.border?(t(),e(p,{key:1,class:"uni-list--border-bottom"})):r("",!0)])),_:3})}],["__scopeId","data-v-c1d7c358"]]),H=D({__name:"list",setup(s){const a=_();let o=k(!1),c=k(0);S((()=>a.currentRoute.value),((t,e)=>{f()}));let h=k([]);const f=()=>{L().then((t=>{t.status&&(h.value=t.data.list,c.value=t.data.incompleteCount)}))};let g=k(""),m=k(null);let b=k(null);const D=()=>{U({title:g.value,imgs:q.value}).then((t=>{t.status&&(m.value.close(),p({url:"/pages/chat/detail?id="+t.data}))}))};let E=k([]),q=k([]);const H=t=>{E.value.push(t.tempFilePaths[0]),console.log(E.value)},J=t=>{console.log(t);const e=E.value.indexOf(t.tempFilePath);-1!==e&&E.value.splice(e,1)},M=t=>{z({url:V(),filePath:t,name:"file",header:{Authorization:"Bearer "+sessionStorage.getItem("access_token")},success:t=>{let e=JSON.parse(t.data);console.log(e),q.value.push(e.data),console.log("-----",q.value),q.value.length==E.value.length&&D()},fail:t=>{console.log(t)}})};return x((()=>{f()})),(s,a)=>{const p=A(y("uni-easyinput"),j),f=A(y("uni-file-picker"),P),_=u,k=I,S=A(y("uni-section"),R),x=A(y("uni-popup"),N),z=A(y("uni-tag"),O),L=A(y("uni-list-item"),W),U=A(y("uni-list"),G);return t(),e(_,{class:"workorderlist"},{default:i((()=>[l(x,{ref_key:"titleInputDialog",ref:m,type:"dialog"},{default:i((()=>[l(S,{title:"",subTitle:"请简短描述您遇到的问题",type:"line",padding:""},{default:i((()=>[l(p,{maxlength:"100",type:"textarea",style:{width:"600rpx"},modelValue:v(g),"onUpdate:modelValue":a[0]||(a[0]=t=>w(g)?g.value=t:g=t),placeholder:"请简单描述您遇到的问题(100字以内)"},null,8,["modelValue"]),l(_,{class:"example-body"},{default:i((()=>[l(f,{ref_key:"files",ref:b,onSelect:H,onDelete:J,"auto-upload":!1,limit:"3",title:"最多选择3张图片"},null,512)])),_:1}),l(k,{class:"nextButton",onClick:a[1]||(a[1]=t=>(async()=>{if(""==g.value)return $({title:"请简短描述需求",duration:1500,icon:"none"}),!1;o.value=!0,F({title:"加载中"}),E.value.length>0?E.value.forEach(((t,e)=>{M(t)})):D()})()),disabled:v(o)},{default:i((()=>[n("提交工单")])),_:1},8,["disabled"])])),_:1})])),_:1},512),l(_,{class:"top"},{default:i((()=>[l(k,{size:"mini",plain:"true",class:"addbutton",onClick:a[2]||(a[2]=t=>(()=>{if(o.value=!1,E.value=[],q.value=[],0!=c.value)return $({title:"存在未关闭工单,请先关闭,再创建新工单",duration:2e3,icon:"none"}),!1;g.value="",m.value.open()})())},{default:i((()=>[n("创建工单")])),_:1})])),_:1}),v(h).length>0?(t(),e(U,{key:0,id:"container"},{default:i((()=>[(t(!0),C(T,null,B(v(h),((s,a)=>(t(),e(L,{key:a,link:"",to:`/pages/chat/detail?id=${s.id}`,title:s.title,note:null!=s.msg?s.msg.content:"未留言"},{footer:i((()=>[l(_,{class:"right"},{default:i((()=>[l(_,{style:{"text-align":"center"}},{default:i((()=>[1==s.status?(t(),e(z,{key:0,text:"未处理",type:"primary",inverted:""})):r("",!0),2==s.status?(t(),e(z,{key:1,text:"处理中",type:"warning",inverted:""})):r("",!0),3==s.status?(t(),e(z,{key:2,text:"完结",type:"default",inverted:""})):r("",!0)])),_:2},1024),l(_,{class:"time"},{default:i((()=>[n(d(s.created_at),1)])),_:2},1024)])),_:2},1024)])),_:2},1032,["to","title","note"])))),128))])),_:1})):(t(),e(_,{key:1,class:"tishi",style:{"padding-top":"40rpx"}},{default:i((()=>[n(" 欢迎使用工单 ")])),_:1}))])),_:1})}}},[["__scopeId","data-v-059ffa31"]]);export{H as default};
+import{o as t,d as e,w as i,f as l,n as s,r as a,b as o,a as n,t as d,p as r,e as u,i as c,q as p,y as h,h as f,z as g,g as y,A as m,B as b,C as _,j as k,D as S,k as x,u as v,E as w,c as C,l as B,F as T,s as $,G as F,H as z,x as I}from"./index-d9c03bf0.js";import{_ as j}from"./uni-easyinput.ade6c276.js";import{r as A}from"./uni-app.es.33963b28.js";import{_ as P,a as N}from"./uni-popup.be52e098.js";import{_ as D}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as O}from"./uni-tag.15315537.js";import{_ as E}from"./uni-icons.e39857b3.js";import{W as L,b as U,U as V}from"./index.b7bf8824.js";const R=D({name:"UniSection",emits:["click"],props:{type:{type:String,default:""},title:{type:String,required:!0,default:""},titleFontSize:{type:String,default:"14px"},titleColor:{type:String,default:"#333"},subTitle:{type:String,default:""},subTitleFontSize:{type:String,default:"12px"},subTitleColor:{type:String,default:"#999"},padding:{type:[Boolean,String],default:!1}},computed:{_padding(){return"string"==typeof this.padding?this.padding:this.padding?"10px":""}},watch:{title(t){uni.report&&""!==t&&uni.report("title",t)}},methods:{onClick(){this.$emit("click")}}},[["render",function(p,h,f,g,y,m){const b=u,_=c;return t(),e(b,{class:"uni-section"},{default:i((()=>[l(b,{class:"uni-section-header",onClick:m.onClick},{default:i((()=>[f.type?(t(),e(b,{key:0,class:s(["uni-section-header__decoration",f.type])},null,8,["class"])):a(p.$slots,"decoration",{key:1},void 0,!0),l(b,{class:"uni-section-header__content"},{default:i((()=>[l(_,{style:o({"font-size":f.titleFontSize,color:f.titleColor}),class:s(["uni-section__content-title",{distraction:!f.subTitle}])},{default:i((()=>[n(d(f.title),1)])),_:1},8,["style","class"]),f.subTitle?(t(),e(_,{key:0,style:o({"font-size":f.subTitleFontSize,color:f.subTitleColor}),class:"uni-section-header__content-sub"},{default:i((()=>[n(d(f.subTitle),1)])),_:1},8,["style"])):r("",!0)])),_:1}),l(b,{class:"uni-section-header__slot-right"},{default:i((()=>[a(p.$slots,"right",{},void 0,!0)])),_:3})])),_:3},8,["onClick"]),l(b,{class:"uni-section-content",style:o({padding:m._padding})},{default:i((()=>[a(p.$slots,"default",{},void 0,!0)])),_:3},8,["style"])])),_:3})}],["__scopeId","data-v-0a8818d5"]]);const q=D({name:"UniBadge",emits:["click"],props:{type:{type:String,default:"error"},inverted:{type:Boolean,default:!1},isDot:{type:Boolean,default:!1},maxNum:{type:Number,default:99},absolute:{type:String,default:""},offset:{type:Array,default:()=>[0,0]},text:{type:[String,Number],default:""},size:{type:String,default:"small"},customStyle:{type:Object,default:()=>({})}},data:()=>({}),computed:{width(){return 8*String(this.text).length+12},classNames(){const{inverted:t,type:e,size:i,absolute:l}=this;return[t?"uni-badge--"+e+"-inverted":"","uni-badge--"+e,"uni-badge--"+i,l?"uni-badge--absolute":""].join(" ")},positionStyle(){if(!this.absolute)return{};let t=this.width/2,e=10;this.isDot&&(t=5,e=5);const i=`${-t+this.offset[0]}px`,l=`${-e+this.offset[1]}px`,s={rightTop:{right:i,top:l},rightBottom:{right:i,bottom:l},leftBottom:{left:i,bottom:l},leftTop:{left:i,top:l}},a=s[this.absolute];return a||s.rightTop},dotStyle(){return this.isDot?{width:"10px",minWidth:"0",height:"10px",padding:"0",borderRadius:"10px"}:{}},displayValue(){const{isDot:t,text:e,maxNum:i}=this;return t?"":Number(e)>i?`${i}+`:e}},methods:{onClick(){this.$emit("click")}}},[["render",function(l,p,h,f,g,y){const m=c,b=u;return t(),e(b,{class:"uni-badge--x"},{default:i((()=>[a(l.$slots,"default",{},void 0,!0),h.text?(t(),e(m,{key:0,class:s([y.classNames,"uni-badge"]),style:o([y.positionStyle,h.customStyle,y.dotStyle]),onClick:p[0]||(p[0]=t=>y.onClick())},{default:i((()=>[n(d(y.displayValue),1)])),_:1},8,["class","style"])):r("",!0)])),_:3})}],["__scopeId","data-v-414d462c"]]);const W=D({name:"UniListItem",emits:["click","switchChange"],props:{direction:{type:String,default:"row"},title:{type:String,default:""},note:{type:String,default:""},ellipsis:{type:[Number,String],default:0},disabled:{type:[Boolean,String],default:!1},clickable:{type:Boolean,default:!1},showArrow:{type:[Boolean,String],default:!1},link:{type:[Boolean,String],default:!1},to:{type:String,default:""},showBadge:{type:[Boolean,String],default:!1},showSwitch:{type:[Boolean,String],default:!1},switchChecked:{type:[Boolean,String],default:!1},badgeText:{type:String,default:""},badgeType:{type:String,default:"success"},badgeStyle:{type:Object,default:()=>({})},rightText:{type:String,default:""},thumb:{type:String,default:""},thumbSize:{type:String,default:"base"},showExtraIcon:{type:[Boolean,String],default:!1},extraIcon:{type:Object,default:()=>({type:"",color:"#000000",size:20,customPrefix:""})},border:{type:Boolean,default:!0},customStyle:{type:Object,default:()=>({padding:"",backgroundColor:"#FFFFFF"})},keepScrollPosition:{type:Boolean,default:!1}},watch:{"customStyle.padding":{handler(t){"number"==typeof t&&(t+="");let e=t.split(" ");if(1===e.length){const t=e[0];this.padding={top:t,right:t,bottom:t,left:t}}else if(2===e.length){const[t,i]=e;this.padding={top:t,right:i,bottom:t,left:i}}else if(4===e.length){const[t,i,l,s]=e;this.padding={top:t,right:i,bottom:l,left:s}}},immediate:!0}},data:()=>({isFirstChild:!1,padding:{top:"",right:"",bottom:"",left:""}}),mounted(){this.list=this.getForm(),this.list&&(this.list.firstChildAppend||(this.list.firstChildAppend=!0,this.isFirstChild=!0))},methods:{getForm(t="uniList"){let e=this.$parent,i=e.$options.name;for(;i!==t;){if(e=e.$parent,!e)return!1;i=e.$options.name}return e},onClick(){""===this.to?(this.clickable||this.link)&&this.$emit("click",{data:{}}):this.openPage()},onSwitchChange(t){this.$emit("switchChange",t.detail)},openPage(){-1!==["navigateTo","redirectTo","reLaunch","switchTab"].indexOf(this.link)?this.pageApi(this.link):this.pageApi("navigateTo")},pageApi(t){let e={url:this.to,success:t=>{this.$emit("click",{data:t})},fail:t=>{this.$emit("click",{data:t})}};switch(t){case"navigateTo":default:p(e);break;case"redirectTo":g(e);break;case"reLaunch":f(e);break;case"switchTab":h(e)}}}},[["render",function(p,h,f,g,_,k){const S=u,x=m,v=A(y("uni-icons"),E),w=c,C=A(y("uni-badge"),q),B=b;return t(),e(S,{class:s([{"uni-list-item--disabled":f.disabled},"uni-list-item"]),style:o({"background-color":f.customStyle.backgroundColor}),"hover-class":!f.clickable&&!f.link||f.disabled||f.showSwitch?"":"uni-list-item--hover",onClick:k.onClick},{default:i((()=>[_.isFirstChild?r("",!0):(t(),e(S,{key:0,class:s(["border--left",{"uni-list--border":f.border}])},null,8,["class"])),l(S,{class:s(["uni-list-item__container",{"container--right":f.showArrow||f.link,"flex--direction":"column"===f.direction}]),style:o({paddingTop:_.padding.top,paddingLeft:_.padding.left,paddingRight:_.padding.right,paddingBottom:_.padding.bottom})},{default:i((()=>[a(p.$slots,"header",{},(()=>[l(S,{class:"uni-list-item__header"},{default:i((()=>[f.thumb?(t(),e(S,{key:0,class:"uni-list-item__icon"},{default:i((()=>[l(x,{src:f.thumb,class:s(["uni-list-item__icon-img",["uni-list--"+f.thumbSize]])},null,8,["src","class"])])),_:1})):f.showExtraIcon?(t(),e(S,{key:1,class:"uni-list-item__icon"},{default:i((()=>[l(v,{customPrefix:f.extraIcon.customPrefix,color:f.extraIcon.color,size:f.extraIcon.size,type:f.extraIcon.type},null,8,["customPrefix","color","size","type"])])),_:1})):r("",!0)])),_:1})]),!0),a(p.$slots,"body",{},(()=>[l(S,{class:s(["uni-list-item__content",{"uni-list-item__content--center":f.thumb||f.showExtraIcon||f.showBadge||f.showSwitch}])},{default:i((()=>[f.title?(t(),e(w,{key:0,class:s(["uni-list-item__content-title",[0!==f.ellipsis&&f.ellipsis<=2?"uni-ellipsis-"+f.ellipsis:""]])},{default:i((()=>[n(d(f.title),1)])),_:1},8,["class"])):r("",!0),f.note?(t(),e(w,{key:1,class:"uni-list-item__content-note"},{default:i((()=>[n(d(f.note),1)])),_:1})):r("",!0)])),_:1},8,["class"])]),!0),a(p.$slots,"footer",{},(()=>[f.rightText||f.showBadge||f.showSwitch?(t(),e(S,{key:0,class:s(["uni-list-item__extra",{"flex--justify":"column"===f.direction}])},{default:i((()=>[f.rightText?(t(),e(w,{key:0,class:"uni-list-item__extra-text"},{default:i((()=>[n(d(f.rightText),1)])),_:1})):r("",!0),f.showBadge?(t(),e(C,{key:1,type:f.badgeType,text:f.badgeText,"custom-style":f.badgeStyle},null,8,["type","text","custom-style"])):r("",!0),f.showSwitch?(t(),e(B,{key:2,disabled:f.disabled,checked:f.switchChecked,onChange:k.onSwitchChange},null,8,["disabled","checked","onChange"])):r("",!0)])),_:1},8,["class"])):r("",!0)]),!0)])),_:3},8,["class","style"]),f.showArrow||f.link?(t(),e(v,{key:1,size:16,class:"uni-icon-wrapper",color:"#bbb",type:"arrowright"})):r("",!0)])),_:3},8,["class","style","hover-class","onClick"])}],["__scopeId","data-v-77963a5a"]]);const G=D({name:"uniList","mp-weixin":{options:{multipleSlots:!1}},props:{stackFromEnd:{type:Boolean,default:!1},enableBackToTop:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},border:{type:Boolean,default:!0},renderReverse:{type:Boolean,default:!1}},created(){this.firstChildAppend=!1},methods:{loadMore(t){this.$emit("scrolltolower")},scroll(t){this.$emit("scroll",t)}}},[["render",function(l,s,o,n,d,c){const p=u;return t(),e(p,{class:"uni-list uni-border-top-bottom"},{default:i((()=>[o.border?(t(),e(p,{key:0,class:"uni-list--border-top"})):r("",!0),a(l.$slots,"default",{},void 0,!0),o.border?(t(),e(p,{key:1,class:"uni-list--border-bottom"})):r("",!0)])),_:3})}],["__scopeId","data-v-c1d7c358"]]),H=D({__name:"list",setup(s){const a=_();let o=k(!1),c=k(0);S((()=>a.currentRoute.value),((t,e)=>{f()}));let h=k([]);const f=()=>{L().then((t=>{t.status&&(h.value=t.data.list,c.value=t.data.incompleteCount)}))};let g=k(""),m=k(null);let b=k(null);const D=()=>{U({title:g.value,imgs:q.value}).then((t=>{t.status&&(m.value.close(),p({url:"/pages/chat/detail?id="+t.data}))}))};let E=k([]),q=k([]);const H=t=>{E.value.push(t.tempFilePaths[0]),console.log(E.value)},J=t=>{console.log(t);const e=E.value.indexOf(t.tempFilePath);-1!==e&&E.value.splice(e,1)},M=t=>{z({url:V(),filePath:t,name:"file",header:{Authorization:"Bearer "+sessionStorage.getItem("access_token")},success:t=>{let e=JSON.parse(t.data);console.log(e),q.value.push(e.data),console.log("-----",q.value),q.value.length==E.value.length&&D()},fail:t=>{console.log(t)}})};return x((()=>{f()})),(s,a)=>{const p=A(y("uni-easyinput"),j),f=A(y("uni-file-picker"),P),_=u,k=I,S=A(y("uni-section"),R),x=A(y("uni-popup"),N),z=A(y("uni-tag"),O),L=A(y("uni-list-item"),W),U=A(y("uni-list"),G);return t(),e(_,{class:"workorderlist"},{default:i((()=>[l(x,{ref_key:"titleInputDialog",ref:m,type:"dialog"},{default:i((()=>[l(S,{title:"",subTitle:"请简短描述您遇到的问题",type:"line",padding:""},{default:i((()=>[l(p,{maxlength:"100",type:"textarea",style:{width:"600rpx"},modelValue:v(g),"onUpdate:modelValue":a[0]||(a[0]=t=>w(g)?g.value=t:g=t),placeholder:"请简单描述您遇到的问题(100字以内)"},null,8,["modelValue"]),l(_,{class:"example-body"},{default:i((()=>[l(f,{ref_key:"files",ref:b,onSelect:H,onDelete:J,"auto-upload":!1,limit:"3",title:"最多选择3张图片"},null,512)])),_:1}),l(k,{class:"nextButton",onClick:a[1]||(a[1]=t=>(async()=>{if(""==g.value)return $({title:"请简短描述需求",duration:1500,icon:"none"}),!1;o.value=!0,F({title:"加载中"}),E.value.length>0?E.value.forEach(((t,e)=>{M(t)})):D()})()),disabled:v(o)},{default:i((()=>[n("提交工单")])),_:1},8,["disabled"])])),_:1})])),_:1},512),l(_,{class:"top"},{default:i((()=>[l(k,{size:"mini",plain:"true",class:"addbutton",onClick:a[2]||(a[2]=t=>(()=>{if(o.value=!1,E.value=[],q.value=[],0!=c.value)return $({title:"存在未关闭工单,请先关闭,再创建新工单",duration:2e3,icon:"none"}),!1;g.value="",m.value.open()})())},{default:i((()=>[n("创建工单")])),_:1})])),_:1}),v(h).length>0?(t(),e(U,{key:0,id:"container"},{default:i((()=>[(t(!0),C(T,null,B(v(h),((s,a)=>(t(),e(L,{key:a,link:"",to:`/pages/chat/detail?id=${s.id}`,title:s.title,note:null!=s.msg?s.msg.content:"未留言"},{footer:i((()=>[l(_,{class:"right"},{default:i((()=>[l(_,{style:{"text-align":"center"}},{default:i((()=>[1==s.status?(t(),e(z,{key:0,text:"未处理",type:"primary",inverted:""})):r("",!0),2==s.status?(t(),e(z,{key:1,text:"处理中",type:"warning",inverted:""})):r("",!0),3==s.status?(t(),e(z,{key:2,text:"完结",type:"default",inverted:""})):r("",!0)])),_:2},1024),l(_,{class:"time"},{default:i((()=>[n(d(s.created_at),1)])),_:2},1024)])),_:2},1024)])),_:2},1032,["to","title","note"])))),128))])),_:1})):(t(),e(_,{key:1,class:"tishi",style:{"padding-top":"40rpx"}},{default:i((()=>[n(" 欢迎使用工单 ")])),_:1}))])),_:1})}}},[["__scopeId","data-v-059ffa31"]]);export{H as default};
diff --git a/GDH5/unpackage/dist/build/h5/assets/pages-index-index.b7638b51.js b/GDH5/unpackage/dist/build/h5/assets/pages-index-index.a9c568ea.js
similarity index 94%
rename from GDH5/unpackage/dist/build/h5/assets/pages-index-index.b7638b51.js
rename to GDH5/unpackage/dist/build/h5/assets/pages-index-index.a9c568ea.js
index e1cf5dc..fbdf173 100644
--- a/GDH5/unpackage/dist/build/h5/assets/pages-index-index.b7638b51.js
+++ b/GDH5/unpackage/dist/build/h5/assets/pages-index-index.a9c568ea.js
@@ -1 +1 @@
-import{m as e,o as t,c as n,r as i,a as s,t as o,n as r,b as a,d as l,w as d,i as u,e as f,f as h,g as p}from"./index-52f0fde8.js";import{_ as c}from"./_plugin-vue_export-helper.1b428a4d.js";import{r as m}from"./uni-app.es.add45db9.js";const w=c({name:"uniLink",props:{href:{type:String,default:""},text:{type:String,default:""},download:{type:String,default:""},showUnderLine:{type:[Boolean,String],default:!0},copyTips:{type:String,default:"已自动复制网址,请在手机浏览器里粘贴该网址"},color:{type:String,default:"#999999"},fontSize:{type:[Number,String],default:14}},computed:{isShowA(){return this._isH5=!0,!(!this.isMail()&&!this.isTel()||!0!==this._isH5)}},created(){this._isH5=null},methods:{isMail(){return this.href.startsWith("mailto:")},isTel(){return this.href.startsWith("tel:")},openURL(){window.open(this.href)},makePhoneCall(t){e({phoneNumber:t})}}},[["render",function(e,f,h,p,c,m){const w=u;return m.isShowA?(t(),n("a",{key:0,class:r(["uni-link",{"uni-link--withline":!0===h.showUnderLine||"true"===h.showUnderLine}]),href:h.href,style:a({color:h.color,fontSize:h.fontSize+"px"}),download:h.download},[i(e.$slots,"default",{},(()=>[s(o(h.text),1)]),!0)],14,["href","download"])):(t(),l(w,{key:1,class:r(["uni-link",{"uni-link--withline":!0===h.showUnderLine||"true"===h.showUnderLine}]),style:a({color:h.color,fontSize:h.fontSize+"px"}),onClick:m.openURL},{default:d((()=>[i(e.$slots,"default",{},(()=>[s(o(h.text),1)]),!0)])),_:3},8,["class","style","onClick"]))}],["__scopeId","data-v-45d57582"]]);const S=c({data:()=>({href:"https://uniapp.dcloud.io/component/README?id=uniui"}),methods:{}},[["render",function(e,n,i,o,r,a){const c=f,S=u,_=m(p("uni-link"),w);return t(),l(c,{class:"container"},{default:d((()=>[h(c,{class:"intro"},{default:d((()=>[s("本项目已包含uni ui组件,无需import和注册,可直接使用。在代码区键入字母u,即可通过代码助手列出所有可用组件。光标置于组件名称处按F1,即可查看组件文档。")])),_:1}),h(S,{class:"intro"},{default:d((()=>[s("详见:")])),_:1}),h(_,{href:r.href,text:r.href},null,8,["href","text"])])),_:1})}],["__scopeId","data-v-a60c8e9c"]]);export{S as default};
+import{m as e,o as t,c as n,r as i,a as s,t as o,n as r,b as a,d as l,w as d,i as u,e as f,f as h,g as p}from"./index-d9c03bf0.js";import{_ as c}from"./_plugin-vue_export-helper.1b428a4d.js";import{r as m}from"./uni-app.es.33963b28.js";const w=c({name:"uniLink",props:{href:{type:String,default:""},text:{type:String,default:""},download:{type:String,default:""},showUnderLine:{type:[Boolean,String],default:!0},copyTips:{type:String,default:"已自动复制网址,请在手机浏览器里粘贴该网址"},color:{type:String,default:"#999999"},fontSize:{type:[Number,String],default:14}},computed:{isShowA(){return this._isH5=!0,!(!this.isMail()&&!this.isTel()||!0!==this._isH5)}},created(){this._isH5=null},methods:{isMail(){return this.href.startsWith("mailto:")},isTel(){return this.href.startsWith("tel:")},openURL(){window.open(this.href)},makePhoneCall(t){e({phoneNumber:t})}}},[["render",function(e,f,h,p,c,m){const w=u;return m.isShowA?(t(),n("a",{key:0,class:r(["uni-link",{"uni-link--withline":!0===h.showUnderLine||"true"===h.showUnderLine}]),href:h.href,style:a({color:h.color,fontSize:h.fontSize+"px"}),download:h.download},[i(e.$slots,"default",{},(()=>[s(o(h.text),1)]),!0)],14,["href","download"])):(t(),l(w,{key:1,class:r(["uni-link",{"uni-link--withline":!0===h.showUnderLine||"true"===h.showUnderLine}]),style:a({color:h.color,fontSize:h.fontSize+"px"}),onClick:m.openURL},{default:d((()=>[i(e.$slots,"default",{},(()=>[s(o(h.text),1)]),!0)])),_:3},8,["class","style","onClick"]))}],["__scopeId","data-v-45d57582"]]);const S=c({data:()=>({href:"https://uniapp.dcloud.io/component/README?id=uniui"}),methods:{}},[["render",function(e,n,i,o,r,a){const c=f,S=u,_=m(p("uni-link"),w);return t(),l(c,{class:"container"},{default:d((()=>[h(c,{class:"intro"},{default:d((()=>[s("本项目已包含uni ui组件,无需import和注册,可直接使用。在代码区键入字母u,即可通过代码助手列出所有可用组件。光标置于组件名称处按F1,即可查看组件文档。")])),_:1}),h(S,{class:"intro"},{default:d((()=>[s("详见:")])),_:1}),h(_,{href:r.href,text:r.href},null,8,["href","text"])])),_:1})}],["__scopeId","data-v-a60c8e9c"]]);export{S as default};
diff --git a/GDH5/unpackage/dist/build/h5/assets/pages-invoice-detail.bc4528b4.js b/GDH5/unpackage/dist/build/h5/assets/pages-invoice-detail.5b86731c.js
similarity index 94%
rename from GDH5/unpackage/dist/build/h5/assets/pages-invoice-detail.bc4528b4.js
rename to GDH5/unpackage/dist/build/h5/assets/pages-invoice-detail.5b86731c.js
index 4889795..9263e6d 100644
--- a/GDH5/unpackage/dist/build/h5/assets/pages-invoice-detail.bc4528b4.js
+++ b/GDH5/unpackage/dist/build/h5/assets/pages-invoice-detail.5b86731c.js
@@ -1 +1 @@
-import{j as a,k as e,o as s,d as t,w as l,q as o,e as f,f as r,u as _,c,p as u,a as n,x as i,t as d,g as p,v as w}from"./index-52f0fde8.js";import{_ as y}from"./uni-icons.67b3e996.js";import{o as m,r as g}from"./uni-app.es.add45db9.js";import{a as h}from"./index.86ec3509.js";import{_ as v}from"./_plugin-vue_export-helper.1b428a4d.js";const k=v({__name:"detail",setup(v){let k=a(0),z=a(""),j=a("");return m((a=>{k.value=a.id,null!=a.ordernum&&(z.value=a.ordernum)})),e((()=>{h({id:k.value,ordernum:z.value}).then((a=>{a.status?j.value=a.data:o({url:"/pages/invoice/list"})}))})),(a,e)=>{const m=f,h=g(p("uni-icons"),y),v=w;return s(),t(m,{class:"invoice_detail"},{default:l((()=>[r(m,{class:"top"},{default:l((()=>[r(m,{class:"top_1"},{default:l((()=>[2==_(j).status?(s(),c("span",{key:0,style:{color:"#18bc37"}},"已开票")):u("",!0),0==_(j).status||1==_(j).status?(s(),c("span",{key:1,style:{color:"#666"}},"未开票")):u("",!0)])),_:1}),r(m,{class:"top_1"},{default:l((()=>[n("发票金额:"),i("span",{style:{color:"#ff5500"}},"¥"+d(_(j).price),1)])),_:1})])),_:1}),r(m,{class:"content"},{default:l((()=>[r(m,{class:"content_row"},{default:l((()=>[r(h,{type:"flag",color:"#afafaf",size:"20"}),r(m,{class:"row_left"},{default:l((()=>[n("发票类型")])),_:1}),r(m,{class:"row_right"},{default:l((()=>[0==_(j).type?(s(),c("span",{key:0},"纸质发票")):u("",!0),1==_(j).type?(s(),c("span",{key:1},"电子发票")):u("",!0)])),_:1})])),_:1}),r(m,{class:"content_row"},{default:l((()=>[r(h,{type:"compose",color:"#afafaf",size:"20"}),r(m,{class:"row_left"},{default:l((()=>[n("发票内容")])),_:1}),r(m,{class:"row_right"},{default:l((()=>[n(d(_(j).content),1)])),_:1})])),_:1}),r(m,{class:"content_row"},{default:l((()=>[r(h,{type:"vip",color:"#afafaf",size:"20"}),r(m,{class:"row_left"},{default:l((()=>[n("发票类型")])),_:1}),r(m,{class:"row_right"},{default:l((()=>[0==_(j).unit_type?(s(),c("span",{key:0},"个人")):u("",!0),1==_(j).unit_type?(s(),c("span",{key:1},"单位")):u("",!0)])),_:1})])),_:1}),r(m,{class:"content_row"},{default:l((()=>[r(h,{type:"person",color:"#afafaf",size:"20"}),r(m,{class:"row_left"},{default:l((()=>[n("抬头名称")])),_:1}),r(m,{class:"row_right"},{default:l((()=>[n(d(_(j).unit_name),1)])),_:1})])),_:1}),r(m,{class:"content_row"},{default:l((()=>[r(h,{type:"fire",color:"#afafaf",size:"20"}),r(m,{class:"row_left"},{default:l((()=>[n("公司税号")])),_:1}),r(m,{class:"row_right"},{default:l((()=>[n(d(_(j).unit_num),1)])),_:1})])),_:1}),r(m,{class:"content_row"},{default:l((()=>[r(h,{type:"star",color:"#afafaf",size:"20"}),r(m,{class:"row_left"},{default:l((()=>[n("开票金额")])),_:1}),r(m,{class:"row_right"},{default:l((()=>[n(d(_(j).price),1)])),_:1})])),_:1}),2==_(j).status?(s(),t(m,{key:0,class:"content_row"},{default:l((()=>[r(h,{type:"calendar",color:"#afafaf",size:"20"}),r(m,{class:"row_left"},{default:l((()=>[n("开票时间")])),_:1}),r(m,{class:"row_right"},{default:l((()=>[n(d(_(j).kaipiao_time),1)])),_:1})])),_:1})):u("",!0),r(m,{class:"content_row"},{default:l((()=>[r(h,{type:"calendar",color:"#afafaf",size:"20"}),r(m,{class:"row_left"},{default:l((()=>[n("申请时间")])),_:1}),r(m,{class:"row_right"},{default:l((()=>[n(d(_(j).shenqing_time),1)])),_:1})])),_:1}),r(m,{class:"content_row"},{default:l((()=>[r(h,{type:"map-pin",color:"#afafaf",size:"20"}),r(m,{class:"row_left"},{default:l((()=>[n("收票方式")])),_:1}),r(m,{class:"row_right"},{default:l((()=>[0==_(j).receive_type?(s(),c("span",{key:0},"邮寄")):u("",!0),1==_(j).receive_type?(s(),c("span",{key:1},"其他")):u("",!0)])),_:1})])),_:1}),r(m,{class:"content_row"},{default:l((()=>[r(h,{type:"phone",color:"#afafaf",size:"20"}),r(m,{class:"row_left"},{default:l((()=>[n("电话")])),_:1}),r(m,{class:"row_right"},{default:l((()=>[n(d(_(j).tel),1)])),_:1})])),_:1}),r(m,{class:"content_row"},{default:l((()=>[r(h,{type:"map-pin-ellipse",color:"#afafaf",size:"20"}),r(m,{class:"row_left"},{default:l((()=>[n("收票地址")])),_:1}),r(m,{class:"row_right"},{default:l((()=>[n(d(_(j).receive_address),1)])),_:1})])),_:1}),0==_(j).status?(s(),t(m,{key:1,class:"content_row"},{default:l((()=>[r(h,{type:"closeempty",color:"#ff5500",size:"20"}),r(m,{class:"row_left",style:{color:"#ff5500"}},{default:l((()=>[n("拒绝原因")])),_:1}),r(m,{class:"row_right"},{default:l((()=>[n(d(_(j).refuse_content),1)])),_:1})])),_:1})):u("",!0),0==_(j).status?(s(),t(v,{key:2,onClick:e[0]||(e[0]=a=>{o({url:"/pages/invoice/edit"})}),class:"addbutton"},{default:l((()=>[n("重新申请")])),_:1})):u("",!0)])),_:1})])),_:1})}}},[["__scopeId","data-v-48fb38d4"]]);export{k as default};
+import{j as a,k as e,o as s,d as t,w as l,q as o,e as f,f as r,u as _,c,p as u,a as n,v as i,t as d,g as p,x as w}from"./index-d9c03bf0.js";import{_ as y}from"./uni-icons.e39857b3.js";import{o as m,r as g}from"./uni-app.es.33963b28.js";import{a as h}from"./index.b7bf8824.js";import{_ as v}from"./_plugin-vue_export-helper.1b428a4d.js";const k=v({__name:"detail",setup(v){let k=a(0),z=a(""),j=a("");return m((a=>{k.value=a.id,null!=a.ordernum&&(z.value=a.ordernum)})),e((()=>{h({id:k.value,ordernum:z.value}).then((a=>{a.status?j.value=a.data:o({url:"/pages/invoice/list"})}))})),(a,e)=>{const m=f,h=g(p("uni-icons"),y),v=w;return s(),t(m,{class:"invoice_detail"},{default:l((()=>[r(m,{class:"top"},{default:l((()=>[r(m,{class:"top_1"},{default:l((()=>[2==_(j).status?(s(),c("span",{key:0,style:{color:"#18bc37"}},"已开票")):u("",!0),0==_(j).status||1==_(j).status?(s(),c("span",{key:1,style:{color:"#666"}},"未开票")):u("",!0)])),_:1}),r(m,{class:"top_1"},{default:l((()=>[n("发票金额:"),i("span",{style:{color:"#ff5500"}},"¥"+d(_(j).price),1)])),_:1})])),_:1}),r(m,{class:"content"},{default:l((()=>[r(m,{class:"content_row"},{default:l((()=>[r(h,{type:"flag",color:"#afafaf",size:"20"}),r(m,{class:"row_left"},{default:l((()=>[n("发票类型")])),_:1}),r(m,{class:"row_right"},{default:l((()=>[0==_(j).type?(s(),c("span",{key:0},"纸质发票")):u("",!0),1==_(j).type?(s(),c("span",{key:1},"电子发票")):u("",!0)])),_:1})])),_:1}),r(m,{class:"content_row"},{default:l((()=>[r(h,{type:"compose",color:"#afafaf",size:"20"}),r(m,{class:"row_left"},{default:l((()=>[n("发票内容")])),_:1}),r(m,{class:"row_right"},{default:l((()=>[n(d(_(j).content),1)])),_:1})])),_:1}),r(m,{class:"content_row"},{default:l((()=>[r(h,{type:"vip",color:"#afafaf",size:"20"}),r(m,{class:"row_left"},{default:l((()=>[n("发票类型")])),_:1}),r(m,{class:"row_right"},{default:l((()=>[0==_(j).unit_type?(s(),c("span",{key:0},"个人")):u("",!0),1==_(j).unit_type?(s(),c("span",{key:1},"单位")):u("",!0)])),_:1})])),_:1}),r(m,{class:"content_row"},{default:l((()=>[r(h,{type:"person",color:"#afafaf",size:"20"}),r(m,{class:"row_left"},{default:l((()=>[n("抬头名称")])),_:1}),r(m,{class:"row_right"},{default:l((()=>[n(d(_(j).unit_name),1)])),_:1})])),_:1}),r(m,{class:"content_row"},{default:l((()=>[r(h,{type:"fire",color:"#afafaf",size:"20"}),r(m,{class:"row_left"},{default:l((()=>[n("公司税号")])),_:1}),r(m,{class:"row_right"},{default:l((()=>[n(d(_(j).unit_num),1)])),_:1})])),_:1}),r(m,{class:"content_row"},{default:l((()=>[r(h,{type:"star",color:"#afafaf",size:"20"}),r(m,{class:"row_left"},{default:l((()=>[n("开票金额")])),_:1}),r(m,{class:"row_right"},{default:l((()=>[n(d(_(j).price),1)])),_:1})])),_:1}),2==_(j).status?(s(),t(m,{key:0,class:"content_row"},{default:l((()=>[r(h,{type:"calendar",color:"#afafaf",size:"20"}),r(m,{class:"row_left"},{default:l((()=>[n("开票时间")])),_:1}),r(m,{class:"row_right"},{default:l((()=>[n(d(_(j).kaipiao_time),1)])),_:1})])),_:1})):u("",!0),r(m,{class:"content_row"},{default:l((()=>[r(h,{type:"calendar",color:"#afafaf",size:"20"}),r(m,{class:"row_left"},{default:l((()=>[n("申请时间")])),_:1}),r(m,{class:"row_right"},{default:l((()=>[n(d(_(j).shenqing_time),1)])),_:1})])),_:1}),r(m,{class:"content_row"},{default:l((()=>[r(h,{type:"map-pin",color:"#afafaf",size:"20"}),r(m,{class:"row_left"},{default:l((()=>[n("收票方式")])),_:1}),r(m,{class:"row_right"},{default:l((()=>[0==_(j).receive_type?(s(),c("span",{key:0},"邮寄")):u("",!0),1==_(j).receive_type?(s(),c("span",{key:1},"其他")):u("",!0)])),_:1})])),_:1}),r(m,{class:"content_row"},{default:l((()=>[r(h,{type:"phone",color:"#afafaf",size:"20"}),r(m,{class:"row_left"},{default:l((()=>[n("电话")])),_:1}),r(m,{class:"row_right"},{default:l((()=>[n(d(_(j).tel),1)])),_:1})])),_:1}),r(m,{class:"content_row"},{default:l((()=>[r(h,{type:"map-pin-ellipse",color:"#afafaf",size:"20"}),r(m,{class:"row_left"},{default:l((()=>[n("收票地址")])),_:1}),r(m,{class:"row_right"},{default:l((()=>[n(d(_(j).receive_address),1)])),_:1})])),_:1}),0==_(j).status?(s(),t(m,{key:1,class:"content_row"},{default:l((()=>[r(h,{type:"closeempty",color:"#ff5500",size:"20"}),r(m,{class:"row_left",style:{color:"#ff5500"}},{default:l((()=>[n("拒绝原因")])),_:1}),r(m,{class:"row_right"},{default:l((()=>[n(d(_(j).refuse_content),1)])),_:1})])),_:1})):u("",!0),0==_(j).status?(s(),t(v,{key:2,onClick:e[0]||(e[0]=a=>{o({url:"/pages/invoice/edit"})}),class:"addbutton"},{default:l((()=>[n("重新申请")])),_:1})):u("",!0)])),_:1})])),_:1})}}},[["__scopeId","data-v-48fb38d4"]]);export{k as default};
diff --git a/GDH5/unpackage/dist/build/h5/assets/pages-invoice-edit.7663a547.js b/GDH5/unpackage/dist/build/h5/assets/pages-invoice-edit.7663a547.js
deleted file mode 100644
index 5c854f8..0000000
--- a/GDH5/unpackage/dist/build/h5/assets/pages-invoice-edit.7663a547.js
+++ /dev/null
@@ -1 +0,0 @@
-import{s as e,R as t,o as a,d as r,w as l,r as i,f as s,n,b as o,a as u,p as d,t as m,i as f,e as c,aa as h,ab as g,j as p,k as b,x as _,u as v,g as y,v as x,q as V}from"./index-52f0fde8.js";import{_ as S}from"./uni-tag.065469d1.js";import{o as M,r as j}from"./uni-app.es.add45db9.js";import{_ as w}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as k}from"./uni-easyinput.59fbafce.js";import{f as A,g as F}from"./index.86ec3509.js";import"./uni-icons.67b3e996.js";const R=w({name:"uniFormsItem",options:{virtualHost:!0},provide(){return{uniFormItem:this}},inject:{form:{from:"uniForm",default:null}},props:{rules:{type:Array,default:()=>null},name:{type:[String,Array],default:""},required:{type:Boolean,default:!1},label:{type:String,default:""},labelWidth:{type:[String,Number],default:""},labelAlign:{type:String,default:""},errorMessage:{type:[String,Boolean],default:""},leftIcon:String,iconColor:{type:String,default:"#606266"}},data:()=>({errMsg:"",userRules:null,localLabelAlign:"left",localLabelWidth:"65px",localLabelPos:"left",border:!1,isFirstBorder:!1}),computed:{msg(){return this.errorMessage||this.errMsg}},watch:{"form.formRules"(e){this.init()},"form.labelWidth"(e){this.localLabelWidth=this._labelWidthUnit(e)},"form.labelPosition"(e){this.localLabelPos=this._labelPosition()},"form.labelAlign"(e){}},created(){this.init(!0),this.name&&this.form&&this.$watch((()=>this.form._getDataValue(this.name,this.form.localData)),((e,t)=>{if(!this.form._isEqual(e,t)){const t=this.itemSetValue(e);this.onFieldChange(t,!1)}}),{immediate:!1})},unmounted(){this.__isUnmounted=!0,this.unInit()},methods:{setRules(e=null){this.userRules=e,this.init(!1)},setValue(){},async onFieldChange(a,r=!0){const{formData:l,localData:i,errShowType:s,validateCheck:n,validateTrigger:o,_isRequiredField:u,_realName:d}=this.form,m=d(this.name);a||(a=this.form.formData[m]);const f=this.itemRules.rules&&this.itemRules.rules.length;if(!this.validator||!f||0===f)return;const c=u(this.itemRules.rules||[]);let h=null;return"bind"===o||r?(h=await this.validator.validateUpdate({[m]:a},l),c||void 0!==a&&""!==a||(h=null),h&&h.errorMessage?("undertext"===s&&(this.errMsg=h?h.errorMessage:""),"toast"===s&&e({title:h.errorMessage||"校验错误",icon:"none"}),"modal"===s&&t({title:"提示",content:h.errorMessage||"校验错误"})):this.errMsg="",n(h||null)):this.errMsg="",h||null},init(e=!1){const{validator:t,formRules:a,childrens:r,formData:l,localData:i,_realName:s,labelWidth:n,_getDataValue:o,_setDataValue:u}=this.form||{};if(this.localLabelAlign=this._justifyContent(),this.localLabelWidth=this._labelWidthUnit(n),this.localLabelPos=this._labelPosition(),this.form&&e&&r.push(this),!t||!a)return;this.form.isFirstBorder||(this.form.isFirstBorder=!0,this.isFirstBorder=!0),this.group&&(this.group.isFirstBorder||(this.group.isFirstBorder=!0,this.isFirstBorder=!0)),this.border=this.form.border;const d=s(this.name),m=this.userRules||this.rules;"object"==typeof a&&m&&(a[d]={rules:m},t.updateSchema(a));const f=a[d]||{};this.itemRules=f,this.validator=t,this.itemSetValue(o(this.name,i))},unInit(){if(this.form){const{childrens:e,formData:t,_realName:a}=this.form;e.forEach(((e,r)=>{e===this&&(this.form.childrens.splice(r,1),delete t[a(e.name)])}))}},itemSetValue(e){const t=this.form._realName(this.name),a=this.itemRules.rules||[],r=this.form._getValue(t,e,a);return this.form._setDataValue(t,this.form.formData,r),r},clearValidate(){this.errMsg=""},_isRequired(){return this.required},_justifyContent(){if(this.form){const{labelAlign:e}=this.form;let t=this.labelAlign?this.labelAlign:e;if("left"===t)return"flex-start";if("center"===t)return"center";if("right"===t)return"flex-end"}return"flex-start"},_labelWidthUnit(e){return this.num2px(this.labelWidth?this.labelWidth:e||(this.label?65:"auto"))},_labelPosition(){return this.form&&this.form.labelPosition||"left"},isTrigger:(e,t,a)=>"submit"!==e&&e?"bind":void 0===e?"bind"!==t?t?"submit":""===a?"bind":"submit":"bind":"submit",num2px:e=>"number"==typeof e?`${e}px`:e}},[["render",function(e,t,h,g,p,b){const _=f,v=c;return a(),r(v,{class:n(["uni-forms-item",["is-direction-"+p.localLabelPos,p.border?"uni-forms-item--border":"",p.border&&p.isFirstBorder?"is-first-border":""]])},{default:l((()=>[i(e.$slots,"label",{},(()=>[s(v,{class:n(["uni-forms-item__label",{"no-label":!h.label&&!h.required}]),style:o({width:p.localLabelWidth,justifyContent:p.localLabelAlign})},{default:l((()=>[h.required?(a(),r(_,{key:0,class:"is-required"},{default:l((()=>[u("*")])),_:1})):d("",!0),s(_,null,{default:l((()=>[u(m(h.label),1)])),_:1})])),_:1},8,["class","style"])]),!0),s(v,{class:"uni-forms-item__content"},{default:l((()=>[i(e.$slots,"default",{},void 0,!0),s(v,{class:n(["uni-forms-item__error",{"msg--active":b.msg}])},{default:l((()=>[s(_,null,{default:l((()=>[u(m(b.msg),1)])),_:1})])),_:1},8,["class"])])),_:3})])),_:3},8,["class"])}],["__scopeId","data-v-540b8126"]]);var N={email:/^\S+?@\S+?\.\S+?$/,idcard:/^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i")};const O={int:"integer",bool:"boolean",double:"number",long:"number",password:"string"};function D(e,t=""){["label"].forEach((t=>{void 0===e[t]&&(e[t]="")}));let a=t;for(let r in e){let t=new RegExp("{"+r+"}");a=a.replace(t,e[r])}return a}const L={integer:e=>L.number(e)&&parseInt(e,10)===e,string:e=>"string"==typeof e,number:e=>!isNaN(e)&&"number"==typeof e,boolean:function(e){return"boolean"==typeof e},float:function(e){return L.number(e)&&!L.integer(e)},array:e=>Array.isArray(e),object:e=>"object"==typeof e&&!L.array(e),date:e=>e instanceof Date,timestamp(e){return!(!this.integer(e)||Math.abs(e).toString().length>16)},file:e=>"string"==typeof e.url,email:e=>"string"==typeof e&&!!e.match(N.email)&&e.length<255,url:e=>"string"==typeof e&&!!e.match(N.url),pattern(e,t){try{return new RegExp(e).test(t)}catch(a){return!1}},method:e=>"function"==typeof e,idcard:e=>"string"==typeof e&&!!e.match(N.idcard),"url-https"(e){return this.url(e)&&e.startsWith("https://")},"url-scheme":e=>e.startsWith("://"),"url-web":e=>!1};const $={required:(e,t,a)=>e.required&&function(e,t){return null==e||"string"==typeof e&&!e||!(!Array.isArray(e)||e.length)||"object"===t&&!Object.keys(e).length}(t,e.format||typeof t)?D(e,e.errorMessage||a.required):null,range(e,t,a){const{range:r,errorMessage:l}=e;let i=new Array(r.length);for(let n=0;n-1&&(s=!0),s?null:D(e,l||a.enum)},rangeNumber(e,t,a){if(!L.number(t))return D(e,e.errorMessage||a.pattern.mismatch);let{minimum:r,maximum:l,exclusiveMinimum:i,exclusiveMaximum:s}=e,n=i?t<=r:t=l:t>l;return void 0!==r&&n?D(e,e.errorMessage||a.number[i?"exclusiveMinimum":"minimum"]):void 0!==l&&o?D(e,e.errorMessage||a.number[s?"exclusiveMaximum":"maximum"]):void 0!==r&&void 0!==l&&(n||o)?D(e,e.errorMessage||a.number.range):null},rangeLength(e,t,a){if(!L.string(t)&&!L.array(t))return D(e,e.errorMessage||a.pattern.mismatch);let r=e.minLength,l=e.maxLength,i=t.length;return void 0!==r&&il?D(e,e.errorMessage||a.length.maxLength):void 0!==r&&void 0!==l&&(il)?D(e,e.errorMessage||a.length.range):null},pattern:(e,t,a)=>L.pattern(e.pattern,t)?null:D(e,e.errorMessage||a.pattern.mismatch),format(e,t,a){var r=Object.keys(L),l=O[e.format]?O[e.format]:e.format||e.arrayType;return r.indexOf(l)>-1&&!L[l](t)?D(e,e.errorMessage||a.typeError):null},arrayTypeFormat(e,t,a){if(!Array.isArray(t))return D(e,e.errorMessage||a.typeError);for(let r=0;re.required))<0){if(null==a)return i;if("string"==typeof a&&!a.length)return i}var n=this._message;if(void 0===s)return n.default;for(var o=0;o{s=e}));(s||"string"==typeof n&&n||!1===n)&&(i=this._getMessage(e,s||n,l))}catch(s){i=this._getMessage(e,s.message,l)}return i}_getMessage(e,t,a){return D(e,t||e.errorMessage||this._message[a]||t.default)}_getValidateType(e){var t="";return e.required?t="required":e.format?t="format":e.arrayType?t="arrayTypeFormat":e.range?t="range":void 0!==e.maximum||void 0!==e.minimum?t="rangeNumber":void 0!==e.maxLength||void 0!==e.minLength?t="rangeLength":e.pattern?t="pattern":e.validateFunction&&(t="validateFunction"),t}}{constructor(e,t){super(q.message),this._schema=e,this._options=t||null}updateSchema(e){this._schema=e}async validate(e,t){let a=this._checkFieldInSchema(e);return a||(a=await this.invokeValidate(e,!1,t)),a.length?a[0]:null}async validateAll(e,t){let a=this._checkFieldInSchema(e);return a||(a=await this.invokeValidate(e,!0,t)),a}async validateUpdate(e,t){let a=this._checkFieldInSchema(e);return a||(a=await this.invokeValidateUpdate(e,!1,t)),a.length?a[0]:null}async invokeValidate(e,t,a){let r=[],l=this._schema;for(let i in l){let s=l[i],n=await this.validateRule(i,s,e[i],e,a);if(null!=n&&(r.push({key:i,errorMessage:n}),!t))break}return r}async invokeValidateUpdate(e,t,a){let r=[];for(let l in e){let i=await this.validateRule(l,this._schema[l],e[l],e,a);if(null!=i&&(r.push({key:l,errorMessage:i}),!t))break}return r}_checkFieldInSchema(e){var t=Object.keys(e),a=Object.keys(this._schema);if(new Set(t.concat(a)).size===a.length)return"";var r=t.filter((e=>a.indexOf(e)<0));return[{key:"invalid",errorMessage:D({field:JSON.stringify(r)},q.message.TAG+q.message.defaultInvalid)}]}}q.message=new function(){return{TAG:"",default:"验证错误",defaultInvalid:"提交的字段{field}在数据库中并不存在",validateFunction:"验证无效",required:"{label}必填",enum:"{label}超出范围",timestamp:"{label}格式无效",whitespace:"{label}不能为空",typeError:"{label}类型无效",date:{format:"{label}日期{value}格式无效",parse:"{label}日期无法解析,{value}无效",invalid:"{label}日期{value}无效"},length:{minLength:"{label}长度不能少于{minLength}",maxLength:"{label}长度不能超过{maxLength}",range:"{label}必须介于{minLength}和{maxLength}之间"},number:{minimum:"{label}不能小于{minimum}",maximum:"{label}不能大于{maximum}",exclusiveMinimum:"{label}不能小于等于{minimum}",exclusiveMaximum:"{label}不能大于等于{maximum}",range:"{label}必须介于{minimum}and{maximum}之间"},pattern:{mismatch:"{label}格式不匹配"}}};const T=(e,t,a)=>{const r=a.find((e=>{return e.format&&("int"===(t=e.format)||"double"===t||"number"===t||"timestamp"===t);var t})),l=a.find((e=>e.format&&"boolean"===e.format||"bool"===e.format));return r&&(t=t||0===t?B(Number(t))?Number(t):t:null),l&&(t=!!z(t)&&t),t},I=(e,t)=>U(t,e),C=(e,t={})=>{const a=W(e);if("object"==typeof a&&Array.isArray(a)&&a.length>1){return a.reduce(((e,t)=>e+`#${t}`),"_formdata_")}return a[0]||e},E=e=>{let t=e.replace("_formdata_#","");return t=t.split("#").map((e=>B(e)?Number(e):e)),t},P=(e,t,a)=>("object"!=typeof e||W(t).reduce(((e,t,r,l)=>r===l.length-1?(e[t]=a,null):(t in e||(e[t]=/^[0-9]{1,}$/.test(l[r+1])?[]:{}),e[t])),e),e);function W(e){return Array.isArray(e)?e:e.replace(/\[/g,".").replace(/\]/g,"").split(".")}const U=(e,t,a="undefined")=>{let r=W(t).reduce(((e,t)=>(e||{})[t]),e);return r&&void 0===r?a:r},B=e=>!isNaN(Number(e)),z=e=>"boolean"==typeof e;const J=w({name:"uniForms",emits:["validate","submit"],options:{virtualHost:!0},props:{value:{type:Object,default:()=>null},modelValue:{type:Object,default:()=>null},model:{type:Object,default:()=>null},rules:{type:Object,default:()=>({})},errShowType:{type:String,default:"undertext"},validateTrigger:{type:String,default:"submit"},labelPosition:{type:String,default:"left"},labelWidth:{type:[String,Number],default:""},labelAlign:{type:String,default:"left"},border:{type:Boolean,default:!1}},provide(){return{uniForm:this}},data:()=>({formData:{},formRules:{}}),computed:{localData(){const e=this.model||this.modelValue||this.value;return e?(t=e,JSON.parse(JSON.stringify(t))):{};var t}},watch:{rules:{handler:function(e,t){this.setRules(e)},deep:!0,immediate:!0}},created(){h().$vm.$.appContext.config.globalProperties.binddata||(h().$vm.$.appContext.config.globalProperties.binddata=function(e,t,a){if(a)this.$refs[a].setValue(e,t);else{let a;for(let e in this.$refs){const t=this.$refs[e];if(t&&t.$options&&"uniForms"===t.$options.name){a=t;break}}if(!a)return console.error("当前 uni-froms 组件缺少 ref 属性");a.setValue(e,t)}}),this.childrens=[],this.inputChildrens=[],this.setRules(this.rules)},methods:{setRules(e){this.formRules=Object.assign({},this.formRules,e),this.validator=new q(e)},setValue(e,t){let a=this.childrens.find((t=>t.name===e));return a?(this.formData[e]=T(0,t,this.formRules[e]&&this.formRules[e].rules||[]),a.onFieldChange(this.formData[e])):null},validate(e,t){return this.checkAll(this.formData,e,t)},validateField(e=[],t){e=[].concat(e);let a={};return this.childrens.forEach((t=>{const r=C(t.name);-1!==e.indexOf(r)&&(a=Object.assign({},a,{[r]:this.formData[r]}))})),this.checkAll(a,[],t)},clearValidate(e=[]){e=[].concat(e),this.childrens.forEach((t=>{if(0===e.length)t.errMsg="";else{const a=C(t.name);-1!==e.indexOf(a)&&(t.errMsg="")}}))},submit(e,t,a){for(let r in this.dataValue){this.childrens.find((e=>e.name===r))&&void 0===this.formData[r]&&(this.formData[r]=this._getValue(r,this.dataValue[r]))}return a||console.warn("submit 方法即将废弃,请使用validate方法代替!"),this.checkAll(this.formData,e,t,"submit")},async checkAll(e,t,a,r){if(!this.validator)return;let l,i=[];for(let u in e){const e=this.childrens.find((e=>C(e.name)===u));e&&i.push(e)}a||"function"!=typeof t||(a=t),!a&&"function"!=typeof a&&Promise&&(l=new Promise(((e,t)=>{a=function(a,r){a?t(a):e(r)}})));let s=[],n=JSON.parse(JSON.stringify(e));for(let u in i){const e=i[u];let t=C(e.name);const a=await e.onFieldChange(n[t]);if(a&&(s.push(a),"toast"===this.errShowType||"modal"===this.errShowType))break}Array.isArray(s)&&0===s.length&&(s=null),Array.isArray(t)&&t.forEach((e=>{let t=C(e),a=I(e,this.localData);void 0!==a&&(n[t]=a)})),"submit"===r?this.$emit("submit",{detail:{value:n,errors:s}}):this.$emit("validate",s);let o={};return o=((e={},t)=>{let a=JSON.parse(JSON.stringify(e)),r={};for(let l in a){let e=E(l);P(r,e,a[l])}return r})(n,this.name),a&&"function"==typeof a&&a(s,o),l&&a?l:null},validateCheck(e){this.$emit("validate",e)},_getValue:T,_isRequiredField:e=>{let t=!1;for(let a=0;a(t[e]=a,a||""),_getDataValue:I,_realName:C,_isRealName:e=>/^_formdata_#*/.test(e),_isEqual:(e,t)=>{if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return e===t;var a=toString.call(e);if(a!==toString.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t}if("[object Object]"==a){var r=Object.getOwnPropertyNames(e),l=Object.getOwnPropertyNames(t);if(r.length!=l.length)return!1;for(var i=0;i[s(m,null,{default:l((()=>[i(e.$slots,"default",{},void 0,!0)])),_:3})])),_:3})}],["__scopeId","data-v-7b66846a"]]),G=w({__name:"edit",setup(i){let o=p({type:0,content:"体检服务费",unit_type:1,unit_name:"",unit_num:"",user_note:"",tel:"",price:0,receive_address:"",link_order_num:""});const d=e=>{o.value.unit_type=e},f=()=>{if(0==o.value.price)return e({title:"请填写金额",icon:"none"}),!1;t({title:"提示",content:"确定申请开票吗?金额¥"+o.value.price,cancelText:"取消",confirmText:"确定",success:function(t){t.confirm?F({invoiceInfo:o.value}).then((t=>{t.status&&(e({title:"操作成功",duration:1e3}),V({url:"/pages/invoice/list"}))})):t.cancel&&console.log("用户点击取消")}})};return M((e=>{null!=e.ordernum&&(o.value.link_order_num=e.ordernum),null!=e.price&&e.price>0&&(o.value.price=e.price)})),b((()=>{A().then((e=>{e.status&&null!=e.data&&(o.value.unit_type=e.data.unit_type,o.value.unit_name=e.data.unit_name,o.value.unit_num=e.data.unit_num,o.value.receive_address=e.data.receive_address,o.value.tel=e.data.tel)}))})),(e,t)=>{const i=c,h=j(y("uni-tag"),S),g=j(y("uni-forms-item"),R),p=j(y("uni-easyinput"),k),b=j(y("uni-forms"),J),V=x;return a(),r(i,{class:"invoice_edit"},{default:l((()=>[s(i,{class:"top"},{default:l((()=>[s(i,{class:"top_1"},{default:l((()=>[u("发票金额:"),_("span",{style:{color:"#ff5500"}},"¥"+m(v(o).price),1)])),_:1})])),_:1}),s(i,{class:"content"},{default:l((()=>[s(b,{ref:"baseForm","label-width":80,modelValue:v(o)},{default:l((()=>[s(g,{label:"发票类型"},{default:l((()=>[s(i,{class:"form_wenzi"},{default:l((()=>[s(h,{text:"纸质发票",type:"success"})])),_:1})])),_:1}),s(g,{label:"发票内容"},{default:l((()=>[s(i,{class:"form_wenzi"},{default:l((()=>[u(m(v(o).content),1)])),_:1})])),_:1}),s(g,{label:"发票类型"},{default:l((()=>[s(i,{class:"leixing_select form_wenzi"},{default:l((()=>[s(i,{class:n(["leixing_select_item",0==v(o).unit_type?"active":""]),onClick:t[0]||(t[0]=e=>d(0))},{default:l((()=>[u("个人")])),_:1},8,["class"]),s(i,{class:n(["leixing_select_item",1==v(o).unit_type?"active":""]),onClick:t[1]||(t[1]=e=>d(1))},{default:l((()=>[u("公司")])),_:1},8,["class"])])),_:1})])),_:1}),s(g,{label:"抬头名称",required:""},{default:l((()=>[s(p,{modelValue:v(o).unit_name,"onUpdate:modelValue":t[2]||(t[2]=e=>v(o).unit_name=e),placeholder:"请输入名称"},null,8,["modelValue"])])),_:1}),s(g,{label:"公司税号",required:""},{default:l((()=>[s(p,{modelValue:v(o).unit_num,"onUpdate:modelValue":t[3]||(t[3]=e=>v(o).unit_num=e),placeholder:"请输入税号"},null,8,["modelValue"])])),_:1}),s(g,{label:"备注说明"},{default:l((()=>[s(p,{modelValue:v(o).user_note,"onUpdate:modelValue":t[4]||(t[4]=e=>v(o).user_note=e)},null,8,["modelValue"])])),_:1}),s(g,{label:"开票金额"},{default:l((()=>[s(p,{modelValue:v(o).price,"onUpdate:modelValue":t[5]||(t[5]=e=>v(o).price=e),disabled:""},null,8,["modelValue"])])),_:1}),s(g,{label:"电话"},{default:l((()=>[s(p,{modelValue:v(o).tel,"onUpdate:modelValue":t[6]||(t[6]=e=>v(o).tel=e)},null,8,["modelValue"])])),_:1}),s(g,{label:"收票地址",required:""},{default:l((()=>[s(p,{modelValue:v(o).receive_address,"onUpdate:modelValue":t[7]||(t[7]=e=>v(o).receive_address=e),placeholder:"请填写收票地址"},null,8,["modelValue"])])),_:1})])),_:1},8,["modelValue"]),s(V,{onClick:t[8]||(t[8]=e=>f()),class:"addbutton"},{default:l((()=>[u("申请开票")])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-08a70a76"]]);export{G as default};
diff --git a/GDH5/unpackage/dist/build/h5/assets/pages-invoice-edit.d952e547.js b/GDH5/unpackage/dist/build/h5/assets/pages-invoice-edit.d952e547.js
new file mode 100644
index 0000000..34942f4
--- /dev/null
+++ b/GDH5/unpackage/dist/build/h5/assets/pages-invoice-edit.d952e547.js
@@ -0,0 +1 @@
+import{s as e,R as t,o as a,d as r,w as i,r as l,f as s,n,b as o,a as u,p as d,t as m,i as f,e as c,aa as h,ab as g,j as p,k as b,h as _,v,u as y,g as x,x as V,q as S}from"./index-d9c03bf0.js";import{_ as M}from"./uni-tag.15315537.js";import{o as j,r as w}from"./uni-app.es.33963b28.js";import{_ as k}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as A}from"./uni-easyinput.ade6c276.js";import{f as F,g as R}from"./index.b7bf8824.js";import"./uni-icons.e39857b3.js";const N=k({name:"uniFormsItem",options:{virtualHost:!0},provide(){return{uniFormItem:this}},inject:{form:{from:"uniForm",default:null}},props:{rules:{type:Array,default:()=>null},name:{type:[String,Array],default:""},required:{type:Boolean,default:!1},label:{type:String,default:""},labelWidth:{type:[String,Number],default:""},labelAlign:{type:String,default:""},errorMessage:{type:[String,Boolean],default:""},leftIcon:String,iconColor:{type:String,default:"#606266"}},data:()=>({errMsg:"",userRules:null,localLabelAlign:"left",localLabelWidth:"65px",localLabelPos:"left",border:!1,isFirstBorder:!1}),computed:{msg(){return this.errorMessage||this.errMsg}},watch:{"form.formRules"(e){this.init()},"form.labelWidth"(e){this.localLabelWidth=this._labelWidthUnit(e)},"form.labelPosition"(e){this.localLabelPos=this._labelPosition()},"form.labelAlign"(e){}},created(){this.init(!0),this.name&&this.form&&this.$watch((()=>this.form._getDataValue(this.name,this.form.localData)),((e,t)=>{if(!this.form._isEqual(e,t)){const t=this.itemSetValue(e);this.onFieldChange(t,!1)}}),{immediate:!1})},unmounted(){this.__isUnmounted=!0,this.unInit()},methods:{setRules(e=null){this.userRules=e,this.init(!1)},setValue(){},async onFieldChange(a,r=!0){const{formData:i,localData:l,errShowType:s,validateCheck:n,validateTrigger:o,_isRequiredField:u,_realName:d}=this.form,m=d(this.name);a||(a=this.form.formData[m]);const f=this.itemRules.rules&&this.itemRules.rules.length;if(!this.validator||!f||0===f)return;const c=u(this.itemRules.rules||[]);let h=null;return"bind"===o||r?(h=await this.validator.validateUpdate({[m]:a},i),c||void 0!==a&&""!==a||(h=null),h&&h.errorMessage?("undertext"===s&&(this.errMsg=h?h.errorMessage:""),"toast"===s&&e({title:h.errorMessage||"校验错误",icon:"none"}),"modal"===s&&t({title:"提示",content:h.errorMessage||"校验错误"})):this.errMsg="",n(h||null)):this.errMsg="",h||null},init(e=!1){const{validator:t,formRules:a,childrens:r,formData:i,localData:l,_realName:s,labelWidth:n,_getDataValue:o,_setDataValue:u}=this.form||{};if(this.localLabelAlign=this._justifyContent(),this.localLabelWidth=this._labelWidthUnit(n),this.localLabelPos=this._labelPosition(),this.form&&e&&r.push(this),!t||!a)return;this.form.isFirstBorder||(this.form.isFirstBorder=!0,this.isFirstBorder=!0),this.group&&(this.group.isFirstBorder||(this.group.isFirstBorder=!0,this.isFirstBorder=!0)),this.border=this.form.border;const d=s(this.name),m=this.userRules||this.rules;"object"==typeof a&&m&&(a[d]={rules:m},t.updateSchema(a));const f=a[d]||{};this.itemRules=f,this.validator=t,this.itemSetValue(o(this.name,l))},unInit(){if(this.form){const{childrens:e,formData:t,_realName:a}=this.form;e.forEach(((e,r)=>{e===this&&(this.form.childrens.splice(r,1),delete t[a(e.name)])}))}},itemSetValue(e){const t=this.form._realName(this.name),a=this.itemRules.rules||[],r=this.form._getValue(t,e,a);return this.form._setDataValue(t,this.form.formData,r),r},clearValidate(){this.errMsg=""},_isRequired(){return this.required},_justifyContent(){if(this.form){const{labelAlign:e}=this.form;let t=this.labelAlign?this.labelAlign:e;if("left"===t)return"flex-start";if("center"===t)return"center";if("right"===t)return"flex-end"}return"flex-start"},_labelWidthUnit(e){return this.num2px(this.labelWidth?this.labelWidth:e||(this.label?65:"auto"))},_labelPosition(){return this.form&&this.form.labelPosition||"left"},isTrigger:(e,t,a)=>"submit"!==e&&e?"bind":void 0===e?"bind"!==t?t?"submit":""===a?"bind":"submit":"bind":"submit",num2px:e=>"number"==typeof e?`${e}px`:e}},[["render",function(e,t,h,g,p,b){const _=f,v=c;return a(),r(v,{class:n(["uni-forms-item",["is-direction-"+p.localLabelPos,p.border?"uni-forms-item--border":"",p.border&&p.isFirstBorder?"is-first-border":""]])},{default:i((()=>[l(e.$slots,"label",{},(()=>[s(v,{class:n(["uni-forms-item__label",{"no-label":!h.label&&!h.required}]),style:o({width:p.localLabelWidth,justifyContent:p.localLabelAlign})},{default:i((()=>[h.required?(a(),r(_,{key:0,class:"is-required"},{default:i((()=>[u("*")])),_:1})):d("",!0),s(_,null,{default:i((()=>[u(m(h.label),1)])),_:1})])),_:1},8,["class","style"])]),!0),s(v,{class:"uni-forms-item__content"},{default:i((()=>[l(e.$slots,"default",{},void 0,!0),s(v,{class:n(["uni-forms-item__error",{"msg--active":b.msg}])},{default:i((()=>[s(_,null,{default:i((()=>[u(m(b.msg),1)])),_:1})])),_:1},8,["class"])])),_:3})])),_:3},8,["class"])}],["__scopeId","data-v-540b8126"]]);var O={email:/^\S+?@\S+?\.\S+?$/,idcard:/^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i")};const D={int:"integer",bool:"boolean",double:"number",long:"number",password:"string"};function L(e,t=""){["label"].forEach((t=>{void 0===e[t]&&(e[t]="")}));let a=t;for(let r in e){let t=new RegExp("{"+r+"}");a=a.replace(t,e[r])}return a}const $={integer:e=>$.number(e)&&parseInt(e,10)===e,string:e=>"string"==typeof e,number:e=>!isNaN(e)&&"number"==typeof e,boolean:function(e){return"boolean"==typeof e},float:function(e){return $.number(e)&&!$.integer(e)},array:e=>Array.isArray(e),object:e=>"object"==typeof e&&!$.array(e),date:e=>e instanceof Date,timestamp(e){return!(!this.integer(e)||Math.abs(e).toString().length>16)},file:e=>"string"==typeof e.url,email:e=>"string"==typeof e&&!!e.match(O.email)&&e.length<255,url:e=>"string"==typeof e&&!!e.match(O.url),pattern(e,t){try{return new RegExp(e).test(t)}catch(a){return!1}},method:e=>"function"==typeof e,idcard:e=>"string"==typeof e&&!!e.match(O.idcard),"url-https"(e){return this.url(e)&&e.startsWith("https://")},"url-scheme":e=>e.startsWith("://"),"url-web":e=>!1};const q={required:(e,t,a)=>e.required&&function(e,t){return null==e||"string"==typeof e&&!e||!(!Array.isArray(e)||e.length)||"object"===t&&!Object.keys(e).length}(t,e.format||typeof t)?L(e,e.errorMessage||a.required):null,range(e,t,a){const{range:r,errorMessage:i}=e;let l=new Array(r.length);for(let n=0;n-1&&(s=!0),s?null:L(e,i||a.enum)},rangeNumber(e,t,a){if(!$.number(t))return L(e,e.errorMessage||a.pattern.mismatch);let{minimum:r,maximum:i,exclusiveMinimum:l,exclusiveMaximum:s}=e,n=l?t<=r:t=i:t>i;return void 0!==r&&n?L(e,e.errorMessage||a.number[l?"exclusiveMinimum":"minimum"]):void 0!==i&&o?L(e,e.errorMessage||a.number[s?"exclusiveMaximum":"maximum"]):void 0!==r&&void 0!==i&&(n||o)?L(e,e.errorMessage||a.number.range):null},rangeLength(e,t,a){if(!$.string(t)&&!$.array(t))return L(e,e.errorMessage||a.pattern.mismatch);let r=e.minLength,i=e.maxLength,l=t.length;return void 0!==r&&li?L(e,e.errorMessage||a.length.maxLength):void 0!==r&&void 0!==i&&(li)?L(e,e.errorMessage||a.length.range):null},pattern:(e,t,a)=>$.pattern(e.pattern,t)?null:L(e,e.errorMessage||a.pattern.mismatch),format(e,t,a){var r=Object.keys($),i=D[e.format]?D[e.format]:e.format||e.arrayType;return r.indexOf(i)>-1&&!$[i](t)?L(e,e.errorMessage||a.typeError):null},arrayTypeFormat(e,t,a){if(!Array.isArray(t))return L(e,e.errorMessage||a.typeError);for(let r=0;re.required))<0){if(null==a)return l;if("string"==typeof a&&!a.length)return l}var n=this._message;if(void 0===s)return n.default;for(var o=0;o{s=e}));(s||"string"==typeof n&&n||!1===n)&&(l=this._getMessage(e,s||n,i))}catch(s){l=this._getMessage(e,s.message,i)}return l}_getMessage(e,t,a){return L(e,t||e.errorMessage||this._message[a]||t.default)}_getValidateType(e){var t="";return e.required?t="required":e.format?t="format":e.arrayType?t="arrayTypeFormat":e.range?t="range":void 0!==e.maximum||void 0!==e.minimum?t="rangeNumber":void 0!==e.maxLength||void 0!==e.minLength?t="rangeLength":e.pattern?t="pattern":e.validateFunction&&(t="validateFunction"),t}}{constructor(e,t){super(T.message),this._schema=e,this._options=t||null}updateSchema(e){this._schema=e}async validate(e,t){let a=this._checkFieldInSchema(e);return a||(a=await this.invokeValidate(e,!1,t)),a.length?a[0]:null}async validateAll(e,t){let a=this._checkFieldInSchema(e);return a||(a=await this.invokeValidate(e,!0,t)),a}async validateUpdate(e,t){let a=this._checkFieldInSchema(e);return a||(a=await this.invokeValidateUpdate(e,!1,t)),a.length?a[0]:null}async invokeValidate(e,t,a){let r=[],i=this._schema;for(let l in i){let s=i[l],n=await this.validateRule(l,s,e[l],e,a);if(null!=n&&(r.push({key:l,errorMessage:n}),!t))break}return r}async invokeValidateUpdate(e,t,a){let r=[];for(let i in e){let l=await this.validateRule(i,this._schema[i],e[i],e,a);if(null!=l&&(r.push({key:i,errorMessage:l}),!t))break}return r}_checkFieldInSchema(e){var t=Object.keys(e),a=Object.keys(this._schema);if(new Set(t.concat(a)).size===a.length)return"";var r=t.filter((e=>a.indexOf(e)<0));return[{key:"invalid",errorMessage:L({field:JSON.stringify(r)},T.message.TAG+T.message.defaultInvalid)}]}}T.message=new function(){return{TAG:"",default:"验证错误",defaultInvalid:"提交的字段{field}在数据库中并不存在",validateFunction:"验证无效",required:"{label}必填",enum:"{label}超出范围",timestamp:"{label}格式无效",whitespace:"{label}不能为空",typeError:"{label}类型无效",date:{format:"{label}日期{value}格式无效",parse:"{label}日期无法解析,{value}无效",invalid:"{label}日期{value}无效"},length:{minLength:"{label}长度不能少于{minLength}",maxLength:"{label}长度不能超过{maxLength}",range:"{label}必须介于{minLength}和{maxLength}之间"},number:{minimum:"{label}不能小于{minimum}",maximum:"{label}不能大于{maximum}",exclusiveMinimum:"{label}不能小于等于{minimum}",exclusiveMaximum:"{label}不能大于等于{maximum}",range:"{label}必须介于{minimum}and{maximum}之间"},pattern:{mismatch:"{label}格式不匹配"}}};const I=(e,t,a)=>{const r=a.find((e=>{return e.format&&("int"===(t=e.format)||"double"===t||"number"===t||"timestamp"===t);var t})),i=a.find((e=>e.format&&"boolean"===e.format||"bool"===e.format));return r&&(t=t||0===t?z(Number(t))?Number(t):t:null),i&&(t=!!J(t)&&t),t},C=(e,t)=>B(t,e),E=(e,t={})=>{const a=U(e);if("object"==typeof a&&Array.isArray(a)&&a.length>1){return a.reduce(((e,t)=>e+`#${t}`),"_formdata_")}return a[0]||e},P=e=>{let t=e.replace("_formdata_#","");return t=t.split("#").map((e=>z(e)?Number(e):e)),t},W=(e,t,a)=>("object"!=typeof e||U(t).reduce(((e,t,r,i)=>r===i.length-1?(e[t]=a,null):(t in e||(e[t]=/^[0-9]{1,}$/.test(i[r+1])?[]:{}),e[t])),e),e);function U(e){return Array.isArray(e)?e:e.replace(/\[/g,".").replace(/\]/g,"").split(".")}const B=(e,t,a="undefined")=>{let r=U(t).reduce(((e,t)=>(e||{})[t]),e);return r&&void 0===r?a:r},z=e=>!isNaN(Number(e)),J=e=>"boolean"==typeof e;const G=k({name:"uniForms",emits:["validate","submit"],options:{virtualHost:!0},props:{value:{type:Object,default:()=>null},modelValue:{type:Object,default:()=>null},model:{type:Object,default:()=>null},rules:{type:Object,default:()=>({})},errShowType:{type:String,default:"undertext"},validateTrigger:{type:String,default:"submit"},labelPosition:{type:String,default:"left"},labelWidth:{type:[String,Number],default:""},labelAlign:{type:String,default:"left"},border:{type:Boolean,default:!1}},provide(){return{uniForm:this}},data:()=>({formData:{},formRules:{}}),computed:{localData(){const e=this.model||this.modelValue||this.value;return e?(t=e,JSON.parse(JSON.stringify(t))):{};var t}},watch:{rules:{handler:function(e,t){this.setRules(e)},deep:!0,immediate:!0}},created(){h().$vm.$.appContext.config.globalProperties.binddata||(h().$vm.$.appContext.config.globalProperties.binddata=function(e,t,a){if(a)this.$refs[a].setValue(e,t);else{let a;for(let e in this.$refs){const t=this.$refs[e];if(t&&t.$options&&"uniForms"===t.$options.name){a=t;break}}if(!a)return console.error("当前 uni-froms 组件缺少 ref 属性");a.setValue(e,t)}}),this.childrens=[],this.inputChildrens=[],this.setRules(this.rules)},methods:{setRules(e){this.formRules=Object.assign({},this.formRules,e),this.validator=new T(e)},setValue(e,t){let a=this.childrens.find((t=>t.name===e));return a?(this.formData[e]=I(0,t,this.formRules[e]&&this.formRules[e].rules||[]),a.onFieldChange(this.formData[e])):null},validate(e,t){return this.checkAll(this.formData,e,t)},validateField(e=[],t){e=[].concat(e);let a={};return this.childrens.forEach((t=>{const r=E(t.name);-1!==e.indexOf(r)&&(a=Object.assign({},a,{[r]:this.formData[r]}))})),this.checkAll(a,[],t)},clearValidate(e=[]){e=[].concat(e),this.childrens.forEach((t=>{if(0===e.length)t.errMsg="";else{const a=E(t.name);-1!==e.indexOf(a)&&(t.errMsg="")}}))},submit(e,t,a){for(let r in this.dataValue){this.childrens.find((e=>e.name===r))&&void 0===this.formData[r]&&(this.formData[r]=this._getValue(r,this.dataValue[r]))}return a||console.warn("submit 方法即将废弃,请使用validate方法代替!"),this.checkAll(this.formData,e,t,"submit")},async checkAll(e,t,a,r){if(!this.validator)return;let i,l=[];for(let u in e){const e=this.childrens.find((e=>E(e.name)===u));e&&l.push(e)}a||"function"!=typeof t||(a=t),!a&&"function"!=typeof a&&Promise&&(i=new Promise(((e,t)=>{a=function(a,r){a?t(a):e(r)}})));let s=[],n=JSON.parse(JSON.stringify(e));for(let u in l){const e=l[u];let t=E(e.name);const a=await e.onFieldChange(n[t]);if(a&&(s.push(a),"toast"===this.errShowType||"modal"===this.errShowType))break}Array.isArray(s)&&0===s.length&&(s=null),Array.isArray(t)&&t.forEach((e=>{let t=E(e),a=C(e,this.localData);void 0!==a&&(n[t]=a)})),"submit"===r?this.$emit("submit",{detail:{value:n,errors:s}}):this.$emit("validate",s);let o={};return o=((e={},t)=>{let a=JSON.parse(JSON.stringify(e)),r={};for(let i in a){let e=P(i);W(r,e,a[i])}return r})(n,this.name),a&&"function"==typeof a&&a(s,o),i&&a?i:null},validateCheck(e){this.$emit("validate",e)},_getValue:I,_isRequiredField:e=>{let t=!1;for(let a=0;a(t[e]=a,a||""),_getDataValue:C,_realName:E,_isRealName:e=>/^_formdata_#*/.test(e),_isEqual:(e,t)=>{if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return e===t;var a=toString.call(e);if(a!==toString.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t}if("[object Object]"==a){var r=Object.getOwnPropertyNames(e),i=Object.getOwnPropertyNames(t);if(r.length!=i.length)return!1;for(var l=0;l[s(m,null,{default:i((()=>[l(e.$slots,"default",{},void 0,!0)])),_:3})])),_:3})}],["__scopeId","data-v-7b66846a"]]),H=k({__name:"edit",setup(l){let o=p({type:0,content:"体检服务费",unit_type:1,unit_name:"",unit_num:"",user_note:"",tel:"",price:0,receive_address:"",link_order_num:""});const d=e=>{o.value.unit_type=e},f=()=>{if(0==o.value.price)return e({title:"请填写金额",icon:"none"}),!1;t({title:"提示",content:"确定申请开票吗?金额¥"+o.value.price,cancelText:"取消",confirmText:"确定",success:function(t){t.confirm?R({invoiceInfo:o.value}).then((t=>{t.status&&(e({title:"操作成功",duration:1e3}),S({url:"/pages/invoice/list"}))})):t.cancel&&console.log("用户点击取消")}})};return j((e=>{null!=e.ordernum&&(o.value.link_order_num=e.ordernum),null!=e.price&&e.price>0&&(o.value.price=e.price)})),b((()=>{F({ordernum:o.value.link_order_num}).then((e=>{e.status&&null!=e.data.invoiceinfo&&_({url:"/pages/invoice/detail?id="+e.data.invoiceinfo.id}),e.status&&null!=e.data.hisinfo&&(o.value.unit_type=e.data.hisinfo.unit_type,o.value.unit_name=e.data.hisinfo.unit_name,o.value.unit_num=e.data.hisinfo.unit_num,o.value.receive_address=e.data.hisinfo.receive_address,o.value.tel=e.data.hisinfo.tel)}))})),(e,t)=>{const l=c,h=w(x("uni-tag"),M),g=w(x("uni-forms-item"),N),p=w(x("uni-easyinput"),A),b=w(x("uni-forms"),G),_=V;return a(),r(l,{class:"invoice_edit"},{default:i((()=>[s(l,{class:"top"},{default:i((()=>[s(l,{class:"top_1"},{default:i((()=>[u("发票金额:"),v("span",{style:{color:"#ff5500"}},"¥"+m(y(o).price),1)])),_:1})])),_:1}),s(l,{class:"content"},{default:i((()=>[s(b,{ref:"baseForm","label-width":80,modelValue:y(o)},{default:i((()=>[s(g,{label:"发票类型"},{default:i((()=>[s(l,{class:"form_wenzi"},{default:i((()=>[s(h,{text:"纸质发票",type:"success"})])),_:1})])),_:1}),s(g,{label:"发票内容"},{default:i((()=>[s(l,{class:"form_wenzi"},{default:i((()=>[u(m(y(o).content),1)])),_:1})])),_:1}),s(g,{label:"发票类型"},{default:i((()=>[s(l,{class:"leixing_select form_wenzi"},{default:i((()=>[s(l,{class:n(["leixing_select_item",0==y(o).unit_type?"active":""]),onClick:t[0]||(t[0]=e=>d(0))},{default:i((()=>[u("个人")])),_:1},8,["class"]),s(l,{class:n(["leixing_select_item",1==y(o).unit_type?"active":""]),onClick:t[1]||(t[1]=e=>d(1))},{default:i((()=>[u("公司")])),_:1},8,["class"])])),_:1})])),_:1}),s(g,{label:"抬头名称",required:""},{default:i((()=>[s(p,{modelValue:y(o).unit_name,"onUpdate:modelValue":t[2]||(t[2]=e=>y(o).unit_name=e),placeholder:"请输入名称"},null,8,["modelValue"])])),_:1}),s(g,{label:"公司税号",required:""},{default:i((()=>[s(p,{modelValue:y(o).unit_num,"onUpdate:modelValue":t[3]||(t[3]=e=>y(o).unit_num=e),placeholder:"请输入税号"},null,8,["modelValue"])])),_:1}),s(g,{label:"备注说明"},{default:i((()=>[s(p,{modelValue:y(o).user_note,"onUpdate:modelValue":t[4]||(t[4]=e=>y(o).user_note=e)},null,8,["modelValue"])])),_:1}),s(g,{label:"开票金额"},{default:i((()=>[s(p,{modelValue:y(o).price,"onUpdate:modelValue":t[5]||(t[5]=e=>y(o).price=e),disabled:""},null,8,["modelValue"])])),_:1}),s(g,{label:"电话"},{default:i((()=>[s(p,{modelValue:y(o).tel,"onUpdate:modelValue":t[6]||(t[6]=e=>y(o).tel=e)},null,8,["modelValue"])])),_:1}),s(g,{label:"收票地址",required:""},{default:i((()=>[s(p,{modelValue:y(o).receive_address,"onUpdate:modelValue":t[7]||(t[7]=e=>y(o).receive_address=e),placeholder:"请填写收票地址"},null,8,["modelValue"])])),_:1})])),_:1},8,["modelValue"]),s(_,{onClick:t[8]||(t[8]=e=>f()),class:"addbutton"},{default:i((()=>[u("申请开票")])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-2ec60d27"]]);export{H as default};
diff --git a/GDH5/unpackage/dist/build/h5/assets/pages-invoice-list.86253efd.js b/GDH5/unpackage/dist/build/h5/assets/pages-invoice-list.86253efd.js
deleted file mode 100644
index f093ee5..0000000
--- a/GDH5/unpackage/dist/build/h5/assets/pages-invoice-list.86253efd.js
+++ /dev/null
@@ -1 +0,0 @@
-import{j as a,k as s,o as e,d as t,w as l,e as u,f as n,c as i,l as o,u as r,F as c,a as _,p as d,q as f,v as m,g as p,n as v,t as k}from"./index-52f0fde8.js";import{_ as y}from"./uni-tag.065469d1.js";import{r as g}from"./uni-app.es.add45db9.js";import{_ as b}from"./uni-icons.67b3e996.js";import{I as j}from"./index.86ec3509.js";import{_ as x}from"./_plugin-vue_export-helper.1b428a4d.js";const w=x({__name:"list",setup(x){let w=[{name:"全部",value:9},{name:"待处理",value:1},{name:"已开票",value:2},{name:"被拒绝",value:0}],C=a(9);let h=a([]);const z=()=>{j({status:C.value}).then((a=>{a.status&&(h.value=a.data)}))};return s((()=>{z()})),(a,s)=>{const j=u,x=m,q=g(p("uni-tag"),y),I=g(p("uni-icons"),b);return e(),t(j,{class:"invoice_list"},{default:l((()=>[n(j,{class:"bar_list"},{default:l((()=>[(e(!0),i(c,null,o(r(w),((a,s)=>(e(),t(j,{key:s,onClick:s=>{return e=a.value,C.value=e,void z();var e},class:v(["bar",a.value===r(C)?"active_bar":""])},{default:l((()=>[_(k(a.name),1)])),_:2},1032,["onClick","class"])))),128))])),_:1}),n(j,{class:"button_row"},{default:l((()=>[n(x,{onClick:s[0]||(s[0]=a=>{f({url:"/pages/invoice/edit"})}),class:"mini-btn",style:{"background-color":"#99dcff",color:"#006597"},size:"mini"},{default:l((()=>[_("申请开票")])),_:1})])),_:1}),(e(!0),i(c,null,o(r(h),((a,s)=>(e(),t(j,{class:"litem",key:s,onClick:s=>{return e=a.id,void f({url:"/pages/invoice/detail?id="+e});var e}},{default:l((()=>[n(j,{class:"litem_row1"},{default:l((()=>[n(j,null,{default:l((()=>[_(k(a.shenqing_time.substring(0,10))+" 申请发票",1)])),_:2},1024),n(j,null,{default:l((()=>[2==a.status?(e(),t(q,{key:0,text:"已开票",type:"success"})):d("",!0),1==a.status?(e(),t(q,{key:1,text:"待处理",type:"warning"})):d("",!0),0==a.status?(e(),t(q,{key:2,text:"已拒绝",type:"error"})):d("",!0)])),_:2},1024)])),_:2},1024),n(j,{class:"litem_row2"},{default:l((()=>[_("申请金额:¥"+k(a.price),1)])),_:2},1024),0==a.status?(e(),t(j,{key:0,class:"jujueyuanyin"},{default:l((()=>[_("拒绝原因:"+k(a.refuse_content),1)])),_:2},1024)):d("",!0)])),_:2},1032,["onClick"])))),128)),0==r(h).length?(e(),t(j,{key:0,class:"zanwu"},{default:l((()=>[n(I,{color:"#ccc",type:"close",size:"30"}),n(j,null,{default:l((()=>[_("暂无内容")])),_:1})])),_:1})):d("",!0)])),_:1})}}},[["__scopeId","data-v-25275b56"]]);export{w as default};
diff --git a/GDH5/unpackage/dist/build/h5/assets/pages-invoice-list.bef87e79.js b/GDH5/unpackage/dist/build/h5/assets/pages-invoice-list.bef87e79.js
new file mode 100644
index 0000000..9b82812
--- /dev/null
+++ b/GDH5/unpackage/dist/build/h5/assets/pages-invoice-list.bef87e79.js
@@ -0,0 +1 @@
+import{j as a,k as s,o as e,d as t,w as l,e as u,f as n,c as i,l as r,u as o,F as c,a as _,p as d,g as m,n as p,t as f,q as v}from"./index-d9c03bf0.js";import{_ as y}from"./uni-tag.15315537.js";import{r as k}from"./uni-app.es.33963b28.js";import{_ as g}from"./uni-icons.e39857b3.js";import{I as j}from"./index.b7bf8824.js";import{_ as b}from"./_plugin-vue_export-helper.1b428a4d.js";const x=b({__name:"list",setup(b){let x=[{name:"全部",value:9},{name:"待处理",value:1},{name:"已开票",value:2},{name:"被拒绝",value:0}],w=a(9);let h=a([]);const C=()=>{j({status:w.value}).then((a=>{a.status&&(h.value=a.data)}))};return s((()=>{C()})),(a,s)=>{const j=u,b=k(m("uni-tag"),y),q=k(m("uni-icons"),g);return e(),t(j,{class:"invoice_list"},{default:l((()=>[n(j,{class:"bar_list"},{default:l((()=>[(e(!0),i(c,null,r(o(x),((a,s)=>(e(),t(j,{key:s,onClick:s=>{return e=a.value,w.value=e,void C();var e},class:p(["bar",a.value===o(w)?"active_bar":""])},{default:l((()=>[_(f(a.name),1)])),_:2},1032,["onClick","class"])))),128))])),_:1}),n(j,{class:"button_row"}),(e(!0),i(c,null,r(o(h),((a,s)=>(e(),t(j,{class:"litem",key:s,onClick:s=>{return e=a.id,void v({url:"/pages/invoice/detail?id="+e});var e}},{default:l((()=>[n(j,{class:"litem_row1"},{default:l((()=>[n(j,null,{default:l((()=>[_(f(a.shenqing_time.substring(0,10))+" 申请发票",1)])),_:2},1024),n(j,null,{default:l((()=>[2==a.status?(e(),t(b,{key:0,text:"已开票",type:"success"})):d("",!0),1==a.status?(e(),t(b,{key:1,text:"待处理",type:"warning"})):d("",!0),0==a.status?(e(),t(b,{key:2,text:"已拒绝",type:"error"})):d("",!0)])),_:2},1024)])),_:2},1024),n(j,{class:"litem_row2"},{default:l((()=>[_("申请金额:¥"+f(a.price),1)])),_:2},1024),0==a.status?(e(),t(j,{key:0,class:"jujueyuanyin"},{default:l((()=>[_("拒绝原因:"+f(a.refuse_content),1)])),_:2},1024)):d("",!0)])),_:2},1032,["onClick"])))),128)),0==o(h).length?(e(),t(j,{key:0,class:"zanwu"},{default:l((()=>[n(q,{color:"#ccc",type:"close",size:"30"}),n(j,null,{default:l((()=>[_("暂无内容")])),_:1})])),_:1})):d("",!0)])),_:1})}}},[["__scopeId","data-v-1ccd8b20"]]);export{x as default};
diff --git a/GDH5/unpackage/dist/build/h5/assets/pages-login-login.82a73753.js b/GDH5/unpackage/dist/build/h5/assets/pages-login-login.9992224a.js
similarity index 83%
rename from GDH5/unpackage/dist/build/h5/assets/pages-login-login.82a73753.js
rename to GDH5/unpackage/dist/build/h5/assets/pages-login-login.9992224a.js
index 864aea1..f807be1 100644
--- a/GDH5/unpackage/dist/build/h5/assets/pages-login-login.82a73753.js
+++ b/GDH5/unpackage/dist/build/h5/assets/pages-login-login.9992224a.js
@@ -1 +1 @@
-import{s as e,o as s,d as o,w as t,h as a,e as n,a as r}from"./index-52f0fde8.js";import{l as i}from"./index.86ec3509.js";import{o as p}from"./uni-app.es.add45db9.js";const d={__name:"login",setup:d=>(p((s=>{console.log(s),s.userid&&s.appid?((s,o)=>{i(s).then((s=>{console.log(s),s.status?(sessionStorage.setItem("access_token",s.data.token),sessionStorage.setItem("refresh_token",s.data.refresh_token),o.objtype&&o.page?a({url:"/pages/"+o.objtype+"/"+o.page+"?ordernum="+o.ordernum+"&price="+o.price}):e({title:"缺失跳转路径",icon:"none"})):e({title:s.msg,icon:"none"})}))})({appid:s.appid,openid:s.userid},s):e({title:"缺失应用用户信息",icon:"none"})})),(e,a)=>{const i=n;return s(),o(i,null,{default:t((()=>[r(" 登陆中... ")])),_:1})})};export{d as default};
+import{s as e,o as s,d as o,w as t,h as a,e as n,a as r}from"./index-d9c03bf0.js";import{l as i}from"./index.b7bf8824.js";import{o as p}from"./uni-app.es.33963b28.js";const d={__name:"login",setup:d=>(p((s=>{console.log(s),s.userid&&s.appid?((s,o)=>{i(s).then((s=>{console.log(s),s.status?(sessionStorage.setItem("access_token",s.data.token),sessionStorage.setItem("refresh_token",s.data.refresh_token),o.objtype&&o.page?a({url:"/pages/"+o.objtype+"/"+o.page+"?ordernum="+o.ordernum+"&price="+o.price}):e({title:"缺失跳转路径",icon:"none"})):e({title:s.msg,icon:"none"})}))})({appid:s.appid,openid:s.userid},s):e({title:"缺失应用用户信息",icon:"none"})})),(e,a)=>{const i=n;return s(),o(i,null,{default:t((()=>[r(" 登陆中... ")])),_:1})})};export{d as default};
diff --git a/GDH5/unpackage/dist/build/h5/assets/uni-app.es.add45db9.js b/GDH5/unpackage/dist/build/h5/assets/uni-app.es.33963b28.js
similarity index 63%
rename from GDH5/unpackage/dist/build/h5/assets/uni-app.es.add45db9.js
rename to GDH5/unpackage/dist/build/h5/assets/uni-app.es.33963b28.js
index f6fe2b4..f9a95cb 100644
--- a/GDH5/unpackage/dist/build/h5/assets/uni-app.es.add45db9.js
+++ b/GDH5/unpackage/dist/build/h5/assets/uni-app.es.33963b28.js
@@ -1 +1 @@
-import{ad as a,ae as s,af as o,ag as r}from"./index-52f0fde8.js";function t(a,s){return"string"==typeof a?s:a}const n=(o=>(t,n=s())=>{!r&&a(o,t,n)})(o);export{n as o,t as r};
+import{ad as a,ae as s,af as o,ag as r}from"./index-d9c03bf0.js";function t(a,s){return"string"==typeof a?s:a}const n=(o=>(t,n=s())=>{!r&&a(o,t,n)})(o);export{n as o,t as r};
diff --git a/GDH5/unpackage/dist/build/h5/assets/uni-easyinput.59fbafce.js b/GDH5/unpackage/dist/build/h5/assets/uni-easyinput.ade6c276.js
similarity index 97%
rename from GDH5/unpackage/dist/build/h5/assets/uni-easyinput.59fbafce.js
rename to GDH5/unpackage/dist/build/h5/assets/uni-easyinput.ade6c276.js
index cef9c61..a68909b 100644
--- a/GDH5/unpackage/dist/build/h5/assets/uni-easyinput.59fbafce.js
+++ b/GDH5/unpackage/dist/build/h5/assets/uni-easyinput.ade6c276.js
@@ -1 +1 @@
-import{_ as e}from"./uni-icons.67b3e996.js";import{g as t,o,d as s,w as i,f as l,n as r,b as a,p as n,c,F as u,r as h,ac as d,J as p,e as f}from"./index-52f0fde8.js";import{r as m}from"./uni-app.es.add45db9.js";import{_ as y}from"./_plugin-vue_export-helper.1b428a4d.js";function g(e){let t="";for(let o in e){t+=`${o}:${e[o]};`}return t}const b=y({name:"uni-easyinput",emits:["click","iconClick","update:modelValue","input","focus","blur","confirm","clear","eyes","change","keyboardheightchange"],model:{prop:"modelValue",event:"update:modelValue"},options:{virtualHost:!0},inject:{form:{from:"uniForm",default:null},formItem:{from:"uniFormItem",default:null}},props:{name:String,value:[Number,String],modelValue:[Number,String],type:{type:String,default:"text"},clearable:{type:Boolean,default:!0},autoHeight:{type:Boolean,default:!1},placeholder:{type:String,default:" "},placeholderStyle:String,focus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},clearSize:{type:[Number,String],default:24},inputBorder:{type:Boolean,default:!0},prefixIcon:{type:String,default:""},suffixIcon:{type:String,default:""},trim:{type:[Boolean,String],default:!1},cursorSpacing:{type:Number,default:0},passwordIcon:{type:Boolean,default:!0},primaryColor:{type:String,default:"#2979ff"},styles:{type:Object,default:()=>({color:"#333",backgroundColor:"#fff",disableColor:"#F7F6F6",borderColor:"#e5e5e5"})},errorMessage:{type:[String,Boolean],default:""}},data:()=>({focused:!1,val:"",showMsg:"",border:!1,isFirstBorder:!1,showClearIcon:!1,showPassword:!1,focusShow:!1,localMsg:"",isEnter:!1}),computed:{isVal(){const e=this.val;return!(!e&&0!==e)},msg(){return this.localMsg||this.errorMessage},inputMaxlength(){return Number(this.maxlength)},boxStyle(){return`color:${this.inputBorder&&this.msg?"#e43d33":this.styles.color};`},inputContentClass(){return function(e){let t="";for(let o in e)e[o]&&(t+=`${o} `);return t}({"is-input-border":this.inputBorder,"is-input-error-border":this.inputBorder&&this.msg,"is-textarea":"textarea"===this.type,"is-disabled":this.disabled,"is-focused":this.focusShow})},inputContentStyle(){const e=this.focusShow?this.primaryColor:this.styles.borderColor;return g({"border-color":(this.inputBorder&&this.msg?"#dd524d":e)||"#e5e5e5","background-color":this.disabled?this.styles.disableColor:this.styles.backgroundColor})},inputStyle(){return g({"padding-right":"password"===this.type||this.clearable||this.prefixIcon?"":"10px","padding-left":this.prefixIcon?"":"10px"})}},watch:{value(e){this.val=e},modelValue(e){this.val=e},focus(e){this.$nextTick((()=>{this.focused=this.focus,this.focusShow=this.focus}))}},created(){this.init(),this.form&&this.formItem&&this.$watch("formItem.errMsg",(e=>{this.localMsg=e}))},mounted(){this.$nextTick((()=>{this.focused=this.focus,this.focusShow=this.focus}))},methods:{init(){this.value||0===this.value?this.val=this.value:this.modelValue||0===this.modelValue||""===this.modelValue?this.val=this.modelValue:this.val=null},onClickIcon(e){this.$emit("iconClick",e)},onEyes(){this.showPassword=!this.showPassword,this.$emit("eyes",this.showPassword)},onInput(e){let t=e.detail.value;this.trim&&("boolean"==typeof this.trim&&this.trim&&(t=this.trimStr(t)),"string"==typeof this.trim&&(t=this.trimStr(t,this.trim))),this.errMsg&&(this.errMsg=""),this.val=t,this.$emit("input",t),this.$emit("update:modelValue",t)},onFocus(){this.$nextTick((()=>{this.focused=!0})),this.$emit("focus",null)},_Focus(e){this.focusShow=!0,this.$emit("focus",e)},onBlur(){this.focused=!1,this.$emit("focus",null)},_Blur(e){if(e.detail.value,this.focusShow=!1,this.$emit("blur",e),!1===this.isEnter&&this.$emit("change",this.val),this.form&&this.formItem){const{validateTrigger:e}=this.form;"blur"===e&&this.formItem.onFieldChange()}},onConfirm(e){this.$emit("confirm",this.val),this.isEnter=!0,this.$emit("change",this.val),this.$nextTick((()=>{this.isEnter=!1}))},onClear(e){this.val="",this.$emit("input",""),this.$emit("update:modelValue",""),this.$emit("clear")},onkeyboardheightchange(e){this.$emit("keyboardheightchange",e)},trimStr:(e,t="both")=>"both"===t?e.trim():"left"===t?e.trimLeft():"right"===t?e.trimRight():"start"===t?e.trimStart():"end"===t?e.trimEnd():"all"===t?e.replace(/\s+/g,""):e}},[["render",function(y,g,b,S,x,C){const w=m(t("uni-icons"),e),k=d,v=p,I=f;return o(),s(I,{class:r(["uni-easyinput",{"uni-easyinput-error":C.msg}]),style:a(C.boxStyle)},{default:i((()=>[l(I,{class:r(["uni-easyinput__content",C.inputContentClass]),style:a(C.inputContentStyle)},{default:i((()=>[b.prefixIcon?(o(),s(w,{key:0,class:"content-clear-icon",type:b.prefixIcon,color:"#c0c4cc",onClick:g[0]||(g[0]=e=>C.onClickIcon("prefix")),size:"22"},null,8,["type"])):n("",!0),"textarea"===b.type?(o(),s(k,{key:1,class:r(["uni-easyinput__content-textarea",{"input-padding":b.inputBorder}]),name:b.name,value:x.val,placeholder:b.placeholder,placeholderStyle:b.placeholderStyle,disabled:b.disabled,"placeholder-class":"uni-easyinput__placeholder-class",maxlength:C.inputMaxlength,focus:x.focused,autoHeight:b.autoHeight,"cursor-spacing":b.cursorSpacing,onInput:C.onInput,onBlur:C._Blur,onFocus:C._Focus,onConfirm:C.onConfirm,onKeyboardheightchange:C.onkeyboardheightchange},null,8,["class","name","value","placeholder","placeholderStyle","disabled","maxlength","focus","autoHeight","cursor-spacing","onInput","onBlur","onFocus","onConfirm","onKeyboardheightchange"])):(o(),s(v,{key:2,type:"password"===b.type?"text":b.type,class:"uni-easyinput__content-input",style:a(C.inputStyle),name:b.name,value:x.val,password:!x.showPassword&&"password"===b.type,placeholder:b.placeholder,placeholderStyle:b.placeholderStyle,"placeholder-class":"uni-easyinput__placeholder-class",disabled:b.disabled,maxlength:C.inputMaxlength,focus:x.focused,confirmType:b.confirmType,"cursor-spacing":b.cursorSpacing,onFocus:C._Focus,onBlur:C._Blur,onInput:C.onInput,onConfirm:C.onConfirm,onKeyboardheightchange:C.onkeyboardheightchange},null,8,["type","style","name","value","password","placeholder","placeholderStyle","disabled","maxlength","focus","confirmType","cursor-spacing","onFocus","onBlur","onInput","onConfirm","onKeyboardheightchange"])),"password"===b.type&&b.passwordIcon?(o(),c(u,{key:3},[C.isVal?(o(),s(w,{key:0,class:r(["content-clear-icon",{"is-textarea-icon":"textarea"===b.type}]),type:x.showPassword?"eye-slash-filled":"eye-filled",size:22,color:x.focusShow?b.primaryColor:"#c0c4cc",onClick:C.onEyes},null,8,["class","type","color","onClick"])):n("",!0)],64)):b.suffixIcon?(o(),c(u,{key:4},[b.suffixIcon?(o(),s(w,{key:0,class:"content-clear-icon",type:b.suffixIcon,color:"#c0c4cc",onClick:g[1]||(g[1]=e=>C.onClickIcon("suffix")),size:"22"},null,8,["type"])):n("",!0)],64)):(o(),c(u,{key:5},[b.clearable&&C.isVal&&!b.disabled&&"textarea"!==b.type?(o(),s(w,{key:0,class:r(["content-clear-icon",{"is-textarea-icon":"textarea"===b.type}]),type:"clear",size:b.clearSize,color:C.msg?"#dd524d":x.focusShow?b.primaryColor:"#c0c4cc",onClick:C.onClear},null,8,["class","size","color","onClick"])):n("",!0)],64)),h(y.$slots,"right",{},void 0,!0)])),_:3},8,["class","style"])])),_:3},8,["class","style"])}],["__scopeId","data-v-a08716d2"]]);export{b as _};
+import{_ as e}from"./uni-icons.e39857b3.js";import{g as t,o,d as s,w as i,f as l,n as r,b as a,p as n,c,F as u,r as h,ac as d,J as p,e as f}from"./index-d9c03bf0.js";import{r as m}from"./uni-app.es.33963b28.js";import{_ as y}from"./_plugin-vue_export-helper.1b428a4d.js";function g(e){let t="";for(let o in e){t+=`${o}:${e[o]};`}return t}const b=y({name:"uni-easyinput",emits:["click","iconClick","update:modelValue","input","focus","blur","confirm","clear","eyes","change","keyboardheightchange"],model:{prop:"modelValue",event:"update:modelValue"},options:{virtualHost:!0},inject:{form:{from:"uniForm",default:null},formItem:{from:"uniFormItem",default:null}},props:{name:String,value:[Number,String],modelValue:[Number,String],type:{type:String,default:"text"},clearable:{type:Boolean,default:!0},autoHeight:{type:Boolean,default:!1},placeholder:{type:String,default:" "},placeholderStyle:String,focus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},clearSize:{type:[Number,String],default:24},inputBorder:{type:Boolean,default:!0},prefixIcon:{type:String,default:""},suffixIcon:{type:String,default:""},trim:{type:[Boolean,String],default:!1},cursorSpacing:{type:Number,default:0},passwordIcon:{type:Boolean,default:!0},primaryColor:{type:String,default:"#2979ff"},styles:{type:Object,default:()=>({color:"#333",backgroundColor:"#fff",disableColor:"#F7F6F6",borderColor:"#e5e5e5"})},errorMessage:{type:[String,Boolean],default:""}},data:()=>({focused:!1,val:"",showMsg:"",border:!1,isFirstBorder:!1,showClearIcon:!1,showPassword:!1,focusShow:!1,localMsg:"",isEnter:!1}),computed:{isVal(){const e=this.val;return!(!e&&0!==e)},msg(){return this.localMsg||this.errorMessage},inputMaxlength(){return Number(this.maxlength)},boxStyle(){return`color:${this.inputBorder&&this.msg?"#e43d33":this.styles.color};`},inputContentClass(){return function(e){let t="";for(let o in e)e[o]&&(t+=`${o} `);return t}({"is-input-border":this.inputBorder,"is-input-error-border":this.inputBorder&&this.msg,"is-textarea":"textarea"===this.type,"is-disabled":this.disabled,"is-focused":this.focusShow})},inputContentStyle(){const e=this.focusShow?this.primaryColor:this.styles.borderColor;return g({"border-color":(this.inputBorder&&this.msg?"#dd524d":e)||"#e5e5e5","background-color":this.disabled?this.styles.disableColor:this.styles.backgroundColor})},inputStyle(){return g({"padding-right":"password"===this.type||this.clearable||this.prefixIcon?"":"10px","padding-left":this.prefixIcon?"":"10px"})}},watch:{value(e){this.val=e},modelValue(e){this.val=e},focus(e){this.$nextTick((()=>{this.focused=this.focus,this.focusShow=this.focus}))}},created(){this.init(),this.form&&this.formItem&&this.$watch("formItem.errMsg",(e=>{this.localMsg=e}))},mounted(){this.$nextTick((()=>{this.focused=this.focus,this.focusShow=this.focus}))},methods:{init(){this.value||0===this.value?this.val=this.value:this.modelValue||0===this.modelValue||""===this.modelValue?this.val=this.modelValue:this.val=null},onClickIcon(e){this.$emit("iconClick",e)},onEyes(){this.showPassword=!this.showPassword,this.$emit("eyes",this.showPassword)},onInput(e){let t=e.detail.value;this.trim&&("boolean"==typeof this.trim&&this.trim&&(t=this.trimStr(t)),"string"==typeof this.trim&&(t=this.trimStr(t,this.trim))),this.errMsg&&(this.errMsg=""),this.val=t,this.$emit("input",t),this.$emit("update:modelValue",t)},onFocus(){this.$nextTick((()=>{this.focused=!0})),this.$emit("focus",null)},_Focus(e){this.focusShow=!0,this.$emit("focus",e)},onBlur(){this.focused=!1,this.$emit("focus",null)},_Blur(e){if(e.detail.value,this.focusShow=!1,this.$emit("blur",e),!1===this.isEnter&&this.$emit("change",this.val),this.form&&this.formItem){const{validateTrigger:e}=this.form;"blur"===e&&this.formItem.onFieldChange()}},onConfirm(e){this.$emit("confirm",this.val),this.isEnter=!0,this.$emit("change",this.val),this.$nextTick((()=>{this.isEnter=!1}))},onClear(e){this.val="",this.$emit("input",""),this.$emit("update:modelValue",""),this.$emit("clear")},onkeyboardheightchange(e){this.$emit("keyboardheightchange",e)},trimStr:(e,t="both")=>"both"===t?e.trim():"left"===t?e.trimLeft():"right"===t?e.trimRight():"start"===t?e.trimStart():"end"===t?e.trimEnd():"all"===t?e.replace(/\s+/g,""):e}},[["render",function(y,g,b,S,x,C){const w=m(t("uni-icons"),e),k=d,v=p,I=f;return o(),s(I,{class:r(["uni-easyinput",{"uni-easyinput-error":C.msg}]),style:a(C.boxStyle)},{default:i((()=>[l(I,{class:r(["uni-easyinput__content",C.inputContentClass]),style:a(C.inputContentStyle)},{default:i((()=>[b.prefixIcon?(o(),s(w,{key:0,class:"content-clear-icon",type:b.prefixIcon,color:"#c0c4cc",onClick:g[0]||(g[0]=e=>C.onClickIcon("prefix")),size:"22"},null,8,["type"])):n("",!0),"textarea"===b.type?(o(),s(k,{key:1,class:r(["uni-easyinput__content-textarea",{"input-padding":b.inputBorder}]),name:b.name,value:x.val,placeholder:b.placeholder,placeholderStyle:b.placeholderStyle,disabled:b.disabled,"placeholder-class":"uni-easyinput__placeholder-class",maxlength:C.inputMaxlength,focus:x.focused,autoHeight:b.autoHeight,"cursor-spacing":b.cursorSpacing,onInput:C.onInput,onBlur:C._Blur,onFocus:C._Focus,onConfirm:C.onConfirm,onKeyboardheightchange:C.onkeyboardheightchange},null,8,["class","name","value","placeholder","placeholderStyle","disabled","maxlength","focus","autoHeight","cursor-spacing","onInput","onBlur","onFocus","onConfirm","onKeyboardheightchange"])):(o(),s(v,{key:2,type:"password"===b.type?"text":b.type,class:"uni-easyinput__content-input",style:a(C.inputStyle),name:b.name,value:x.val,password:!x.showPassword&&"password"===b.type,placeholder:b.placeholder,placeholderStyle:b.placeholderStyle,"placeholder-class":"uni-easyinput__placeholder-class",disabled:b.disabled,maxlength:C.inputMaxlength,focus:x.focused,confirmType:b.confirmType,"cursor-spacing":b.cursorSpacing,onFocus:C._Focus,onBlur:C._Blur,onInput:C.onInput,onConfirm:C.onConfirm,onKeyboardheightchange:C.onkeyboardheightchange},null,8,["type","style","name","value","password","placeholder","placeholderStyle","disabled","maxlength","focus","confirmType","cursor-spacing","onFocus","onBlur","onInput","onConfirm","onKeyboardheightchange"])),"password"===b.type&&b.passwordIcon?(o(),c(u,{key:3},[C.isVal?(o(),s(w,{key:0,class:r(["content-clear-icon",{"is-textarea-icon":"textarea"===b.type}]),type:x.showPassword?"eye-slash-filled":"eye-filled",size:22,color:x.focusShow?b.primaryColor:"#c0c4cc",onClick:C.onEyes},null,8,["class","type","color","onClick"])):n("",!0)],64)):b.suffixIcon?(o(),c(u,{key:4},[b.suffixIcon?(o(),s(w,{key:0,class:"content-clear-icon",type:b.suffixIcon,color:"#c0c4cc",onClick:g[1]||(g[1]=e=>C.onClickIcon("suffix")),size:"22"},null,8,["type"])):n("",!0)],64)):(o(),c(u,{key:5},[b.clearable&&C.isVal&&!b.disabled&&"textarea"!==b.type?(o(),s(w,{key:0,class:r(["content-clear-icon",{"is-textarea-icon":"textarea"===b.type}]),type:"clear",size:b.clearSize,color:C.msg?"#dd524d":x.focusShow?b.primaryColor:"#c0c4cc",onClick:C.onClear},null,8,["class","size","color","onClick"])):n("",!0)],64)),h(y.$slots,"right",{},void 0,!0)])),_:3},8,["class","style"])])),_:3},8,["class","style"])}],["__scopeId","data-v-a08716d2"]]);export{b as _};
diff --git a/GDH5/unpackage/dist/build/h5/assets/uni-icons.67b3e996.js b/GDH5/unpackage/dist/build/h5/assets/uni-icons.e39857b3.js
similarity index 99%
rename from GDH5/unpackage/dist/build/h5/assets/uni-icons.67b3e996.js
rename to GDH5/unpackage/dist/build/h5/assets/uni-icons.e39857b3.js
index 42bed58..10ceb46 100644
--- a/GDH5/unpackage/dist/build/h5/assets/uni-icons.67b3e996.js
+++ b/GDH5/unpackage/dist/build/h5/assets/uni-icons.e39857b3.js
@@ -1 +1 @@
-import{o as e,d as i,b as n,n as c,i as d}from"./index-52f0fde8.js";import{_ as o}from"./_plugin-vue_export-helper.1b428a4d.js";const a={id:"2852637",name:"uniui图标库",font_family:"uniicons",css_prefix_text:"uniui-",description:"",glyphs:[{icon_id:"25027049",name:"yanse",font_class:"color",unicode:"e6cf",unicode_decimal:59087},{icon_id:"25027048",name:"wallet",font_class:"wallet",unicode:"e6b1",unicode_decimal:59057},{icon_id:"25015720",name:"settings-filled",font_class:"settings-filled",unicode:"e6ce",unicode_decimal:59086},{icon_id:"25015434",name:"shimingrenzheng-filled",font_class:"auth-filled",unicode:"e6cc",unicode_decimal:59084},{icon_id:"24934246",name:"shop-filled",font_class:"shop-filled",unicode:"e6cd",unicode_decimal:59085},{icon_id:"24934159",name:"staff-filled-01",font_class:"staff-filled",unicode:"e6cb",unicode_decimal:59083},{icon_id:"24932461",name:"VIP-filled",font_class:"vip-filled",unicode:"e6c6",unicode_decimal:59078},{icon_id:"24932462",name:"plus_circle_fill",font_class:"plus-filled",unicode:"e6c7",unicode_decimal:59079},{icon_id:"24932463",name:"folder_add-filled",font_class:"folder-add-filled",unicode:"e6c8",unicode_decimal:59080},{icon_id:"24932464",name:"yanse-filled",font_class:"color-filled",unicode:"e6c9",unicode_decimal:59081},{icon_id:"24932465",name:"tune-filled",font_class:"tune-filled",unicode:"e6ca",unicode_decimal:59082},{icon_id:"24932455",name:"a-rilidaka-filled",font_class:"calendar-filled",unicode:"e6c0",unicode_decimal:59072},{icon_id:"24932456",name:"notification-filled",font_class:"notification-filled",unicode:"e6c1",unicode_decimal:59073},{icon_id:"24932457",name:"wallet-filled",font_class:"wallet-filled",unicode:"e6c2",unicode_decimal:59074},{icon_id:"24932458",name:"paihangbang-filled",font_class:"medal-filled",unicode:"e6c3",unicode_decimal:59075},{icon_id:"24932459",name:"gift-filled",font_class:"gift-filled",unicode:"e6c4",unicode_decimal:59076},{icon_id:"24932460",name:"fire-filled",font_class:"fire-filled",unicode:"e6c5",unicode_decimal:59077},{icon_id:"24928001",name:"refreshempty",font_class:"refreshempty",unicode:"e6bf",unicode_decimal:59071},{icon_id:"24926853",name:"location-ellipse",font_class:"location-filled",unicode:"e6af",unicode_decimal:59055},{icon_id:"24926735",name:"person-filled",font_class:"person-filled",unicode:"e69d",unicode_decimal:59037},{icon_id:"24926703",name:"personadd-filled",font_class:"personadd-filled",unicode:"e698",unicode_decimal:59032},{icon_id:"24923351",name:"back",font_class:"back",unicode:"e6b9",unicode_decimal:59065},{icon_id:"24923352",name:"forward",font_class:"forward",unicode:"e6ba",unicode_decimal:59066},{icon_id:"24923353",name:"arrowthinright",font_class:"arrow-right",unicode:"e6bb",unicode_decimal:59067},{icon_id:"24923353",name:"arrowthinright",font_class:"arrowthinright",unicode:"e6bb",unicode_decimal:59067},{icon_id:"24923354",name:"arrowthinleft",font_class:"arrow-left",unicode:"e6bc",unicode_decimal:59068},{icon_id:"24923354",name:"arrowthinleft",font_class:"arrowthinleft",unicode:"e6bc",unicode_decimal:59068},{icon_id:"24923355",name:"arrowthinup",font_class:"arrow-up",unicode:"e6bd",unicode_decimal:59069},{icon_id:"24923355",name:"arrowthinup",font_class:"arrowthinup",unicode:"e6bd",unicode_decimal:59069},{icon_id:"24923356",name:"arrowthindown",font_class:"arrow-down",unicode:"e6be",unicode_decimal:59070},{icon_id:"24923356",name:"arrowthindown",font_class:"arrowthindown",unicode:"e6be",unicode_decimal:59070},{icon_id:"24923349",name:"arrowdown",font_class:"bottom",unicode:"e6b8",unicode_decimal:59064},{icon_id:"24923349",name:"arrowdown",font_class:"arrowdown",unicode:"e6b8",unicode_decimal:59064},{icon_id:"24923346",name:"arrowright",font_class:"right",unicode:"e6b5",unicode_decimal:59061},{icon_id:"24923346",name:"arrowright",font_class:"arrowright",unicode:"e6b5",unicode_decimal:59061},{icon_id:"24923347",name:"arrowup",font_class:"top",unicode:"e6b6",unicode_decimal:59062},{icon_id:"24923347",name:"arrowup",font_class:"arrowup",unicode:"e6b6",unicode_decimal:59062},{icon_id:"24923348",name:"arrowleft",font_class:"left",unicode:"e6b7",unicode_decimal:59063},{icon_id:"24923348",name:"arrowleft",font_class:"arrowleft",unicode:"e6b7",unicode_decimal:59063},{icon_id:"24923334",name:"eye",font_class:"eye",unicode:"e651",unicode_decimal:58961},{icon_id:"24923335",name:"eye-filled",font_class:"eye-filled",unicode:"e66a",unicode_decimal:58986},{icon_id:"24923336",name:"eye-slash",font_class:"eye-slash",unicode:"e6b3",unicode_decimal:59059},{icon_id:"24923337",name:"eye-slash-filled",font_class:"eye-slash-filled",unicode:"e6b4",unicode_decimal:59060},{icon_id:"24923305",name:"info-filled",font_class:"info-filled",unicode:"e649",unicode_decimal:58953},{icon_id:"24923299",name:"reload-01",font_class:"reload",unicode:"e6b2",unicode_decimal:59058},{icon_id:"24923195",name:"mic_slash_fill",font_class:"micoff-filled",unicode:"e6b0",unicode_decimal:59056},{icon_id:"24923165",name:"map-pin-ellipse",font_class:"map-pin-ellipse",unicode:"e6ac",unicode_decimal:59052},{icon_id:"24923166",name:"map-pin",font_class:"map-pin",unicode:"e6ad",unicode_decimal:59053},{icon_id:"24923167",name:"location",font_class:"location",unicode:"e6ae",unicode_decimal:59054},{icon_id:"24923064",name:"starhalf",font_class:"starhalf",unicode:"e683",unicode_decimal:59011},{icon_id:"24923065",name:"star",font_class:"star",unicode:"e688",unicode_decimal:59016},{icon_id:"24923066",name:"star-filled",font_class:"star-filled",unicode:"e68f",unicode_decimal:59023},{icon_id:"24899646",name:"a-rilidaka",font_class:"calendar",unicode:"e6a0",unicode_decimal:59040},{icon_id:"24899647",name:"fire",font_class:"fire",unicode:"e6a1",unicode_decimal:59041},{icon_id:"24899648",name:"paihangbang",font_class:"medal",unicode:"e6a2",unicode_decimal:59042},{icon_id:"24899649",name:"font",font_class:"font",unicode:"e6a3",unicode_decimal:59043},{icon_id:"24899650",name:"gift",font_class:"gift",unicode:"e6a4",unicode_decimal:59044},{icon_id:"24899651",name:"link",font_class:"link",unicode:"e6a5",unicode_decimal:59045},{icon_id:"24899652",name:"notification",font_class:"notification",unicode:"e6a6",unicode_decimal:59046},{icon_id:"24899653",name:"staff",font_class:"staff",unicode:"e6a7",unicode_decimal:59047},{icon_id:"24899654",name:"VIP",font_class:"vip",unicode:"e6a8",unicode_decimal:59048},{icon_id:"24899655",name:"folder_add",font_class:"folder-add",unicode:"e6a9",unicode_decimal:59049},{icon_id:"24899656",name:"tune",font_class:"tune",unicode:"e6aa",unicode_decimal:59050},{icon_id:"24899657",name:"shimingrenzheng",font_class:"auth",unicode:"e6ab",unicode_decimal:59051},{icon_id:"24899565",name:"person",font_class:"person",unicode:"e699",unicode_decimal:59033},{icon_id:"24899566",name:"email-filled",font_class:"email-filled",unicode:"e69a",unicode_decimal:59034},{icon_id:"24899567",name:"phone-filled",font_class:"phone-filled",unicode:"e69b",unicode_decimal:59035},{icon_id:"24899568",name:"phone",font_class:"phone",unicode:"e69c",unicode_decimal:59036},{icon_id:"24899570",name:"email",font_class:"email",unicode:"e69e",unicode_decimal:59038},{icon_id:"24899571",name:"personadd",font_class:"personadd",unicode:"e69f",unicode_decimal:59039},{icon_id:"24899558",name:"chatboxes-filled",font_class:"chatboxes-filled",unicode:"e692",unicode_decimal:59026},{icon_id:"24899559",name:"contact",font_class:"contact",unicode:"e693",unicode_decimal:59027},{icon_id:"24899560",name:"chatbubble-filled",font_class:"chatbubble-filled",unicode:"e694",unicode_decimal:59028},{icon_id:"24899561",name:"contact-filled",font_class:"contact-filled",unicode:"e695",unicode_decimal:59029},{icon_id:"24899562",name:"chatboxes",font_class:"chatboxes",unicode:"e696",unicode_decimal:59030},{icon_id:"24899563",name:"chatbubble",font_class:"chatbubble",unicode:"e697",unicode_decimal:59031},{icon_id:"24881290",name:"upload-filled",font_class:"upload-filled",unicode:"e68e",unicode_decimal:59022},{icon_id:"24881292",name:"upload",font_class:"upload",unicode:"e690",unicode_decimal:59024},{icon_id:"24881293",name:"weixin",font_class:"weixin",unicode:"e691",unicode_decimal:59025},{icon_id:"24881274",name:"compose",font_class:"compose",unicode:"e67f",unicode_decimal:59007},{icon_id:"24881275",name:"qq",font_class:"qq",unicode:"e680",unicode_decimal:59008},{icon_id:"24881276",name:"download-filled",font_class:"download-filled",unicode:"e681",unicode_decimal:59009},{icon_id:"24881277",name:"pengyouquan",font_class:"pyq",unicode:"e682",unicode_decimal:59010},{icon_id:"24881279",name:"sound",font_class:"sound",unicode:"e684",unicode_decimal:59012},{icon_id:"24881280",name:"trash-filled",font_class:"trash-filled",unicode:"e685",unicode_decimal:59013},{icon_id:"24881281",name:"sound-filled",font_class:"sound-filled",unicode:"e686",unicode_decimal:59014},{icon_id:"24881282",name:"trash",font_class:"trash",unicode:"e687",unicode_decimal:59015},{icon_id:"24881284",name:"videocam-filled",font_class:"videocam-filled",unicode:"e689",unicode_decimal:59017},{icon_id:"24881285",name:"spinner-cycle",font_class:"spinner-cycle",unicode:"e68a",unicode_decimal:59018},{icon_id:"24881286",name:"weibo",font_class:"weibo",unicode:"e68b",unicode_decimal:59019},{icon_id:"24881288",name:"videocam",font_class:"videocam",unicode:"e68c",unicode_decimal:59020},{icon_id:"24881289",name:"download",font_class:"download",unicode:"e68d",unicode_decimal:59021},{icon_id:"24879601",name:"help",font_class:"help",unicode:"e679",unicode_decimal:59001},{icon_id:"24879602",name:"navigate-filled",font_class:"navigate-filled",unicode:"e67a",unicode_decimal:59002},{icon_id:"24879603",name:"plusempty",font_class:"plusempty",unicode:"e67b",unicode_decimal:59003},{icon_id:"24879604",name:"smallcircle",font_class:"smallcircle",unicode:"e67c",unicode_decimal:59004},{icon_id:"24879605",name:"minus-filled",font_class:"minus-filled",unicode:"e67d",unicode_decimal:59005},{icon_id:"24879606",name:"micoff",font_class:"micoff",unicode:"e67e",unicode_decimal:59006},{icon_id:"24879588",name:"closeempty",font_class:"closeempty",unicode:"e66c",unicode_decimal:58988},{icon_id:"24879589",name:"clear",font_class:"clear",unicode:"e66d",unicode_decimal:58989},{icon_id:"24879590",name:"navigate",font_class:"navigate",unicode:"e66e",unicode_decimal:58990},{icon_id:"24879591",name:"minus",font_class:"minus",unicode:"e66f",unicode_decimal:58991},{icon_id:"24879592",name:"image",font_class:"image",unicode:"e670",unicode_decimal:58992},{icon_id:"24879593",name:"mic",font_class:"mic",unicode:"e671",unicode_decimal:58993},{icon_id:"24879594",name:"paperplane",font_class:"paperplane",unicode:"e672",unicode_decimal:58994},{icon_id:"24879595",name:"close",font_class:"close",unicode:"e673",unicode_decimal:58995},{icon_id:"24879596",name:"help-filled",font_class:"help-filled",unicode:"e674",unicode_decimal:58996},{icon_id:"24879597",name:"plus-filled",font_class:"paperplane-filled",unicode:"e675",unicode_decimal:58997},{icon_id:"24879598",name:"plus",font_class:"plus",unicode:"e676",unicode_decimal:58998},{icon_id:"24879599",name:"mic-filled",font_class:"mic-filled",unicode:"e677",unicode_decimal:58999},{icon_id:"24879600",name:"image-filled",font_class:"image-filled",unicode:"e678",unicode_decimal:59e3},{icon_id:"24855900",name:"locked-filled",font_class:"locked-filled",unicode:"e668",unicode_decimal:58984},{icon_id:"24855901",name:"info",font_class:"info",unicode:"e669",unicode_decimal:58985},{icon_id:"24855903",name:"locked",font_class:"locked",unicode:"e66b",unicode_decimal:58987},{icon_id:"24855884",name:"camera-filled",font_class:"camera-filled",unicode:"e658",unicode_decimal:58968},{icon_id:"24855885",name:"chat-filled",font_class:"chat-filled",unicode:"e659",unicode_decimal:58969},{icon_id:"24855886",name:"camera",font_class:"camera",unicode:"e65a",unicode_decimal:58970},{icon_id:"24855887",name:"circle",font_class:"circle",unicode:"e65b",unicode_decimal:58971},{icon_id:"24855888",name:"checkmarkempty",font_class:"checkmarkempty",unicode:"e65c",unicode_decimal:58972},{icon_id:"24855889",name:"chat",font_class:"chat",unicode:"e65d",unicode_decimal:58973},{icon_id:"24855890",name:"circle-filled",font_class:"circle-filled",unicode:"e65e",unicode_decimal:58974},{icon_id:"24855891",name:"flag",font_class:"flag",unicode:"e65f",unicode_decimal:58975},{icon_id:"24855892",name:"flag-filled",font_class:"flag-filled",unicode:"e660",unicode_decimal:58976},{icon_id:"24855893",name:"gear-filled",font_class:"gear-filled",unicode:"e661",unicode_decimal:58977},{icon_id:"24855894",name:"home",font_class:"home",unicode:"e662",unicode_decimal:58978},{icon_id:"24855895",name:"home-filled",font_class:"home-filled",unicode:"e663",unicode_decimal:58979},{icon_id:"24855896",name:"gear",font_class:"gear",unicode:"e664",unicode_decimal:58980},{icon_id:"24855897",name:"smallcircle-filled",font_class:"smallcircle-filled",unicode:"e665",unicode_decimal:58981},{icon_id:"24855898",name:"map-filled",font_class:"map-filled",unicode:"e666",unicode_decimal:58982},{icon_id:"24855899",name:"map",font_class:"map",unicode:"e667",unicode_decimal:58983},{icon_id:"24855825",name:"refresh-filled",font_class:"refresh-filled",unicode:"e656",unicode_decimal:58966},{icon_id:"24855826",name:"refresh",font_class:"refresh",unicode:"e657",unicode_decimal:58967},{icon_id:"24855808",name:"cloud-upload",font_class:"cloud-upload",unicode:"e645",unicode_decimal:58949},{icon_id:"24855809",name:"cloud-download-filled",font_class:"cloud-download-filled",unicode:"e646",unicode_decimal:58950},{icon_id:"24855810",name:"cloud-download",font_class:"cloud-download",unicode:"e647",unicode_decimal:58951},{icon_id:"24855811",name:"cloud-upload-filled",font_class:"cloud-upload-filled",unicode:"e648",unicode_decimal:58952},{icon_id:"24855813",name:"redo",font_class:"redo",unicode:"e64a",unicode_decimal:58954},{icon_id:"24855814",name:"images-filled",font_class:"images-filled",unicode:"e64b",unicode_decimal:58955},{icon_id:"24855815",name:"undo-filled",font_class:"undo-filled",unicode:"e64c",unicode_decimal:58956},{icon_id:"24855816",name:"more",font_class:"more",unicode:"e64d",unicode_decimal:58957},{icon_id:"24855817",name:"more-filled",font_class:"more-filled",unicode:"e64e",unicode_decimal:58958},{icon_id:"24855818",name:"undo",font_class:"undo",unicode:"e64f",unicode_decimal:58959},{icon_id:"24855819",name:"images",font_class:"images",unicode:"e650",unicode_decimal:58960},{icon_id:"24855821",name:"paperclip",font_class:"paperclip",unicode:"e652",unicode_decimal:58962},{icon_id:"24855822",name:"settings",font_class:"settings",unicode:"e653",unicode_decimal:58963},{icon_id:"24855823",name:"search",font_class:"search",unicode:"e654",unicode_decimal:58964},{icon_id:"24855824",name:"redo-filled",font_class:"redo-filled",unicode:"e655",unicode_decimal:58965},{icon_id:"24841702",name:"list",font_class:"list",unicode:"e644",unicode_decimal:58948},{icon_id:"24841489",name:"mail-open-filled",font_class:"mail-open-filled",unicode:"e63a",unicode_decimal:58938},{icon_id:"24841491",name:"hand-thumbsdown-filled",font_class:"hand-down-filled",unicode:"e63c",unicode_decimal:58940},{icon_id:"24841492",name:"hand-thumbsdown",font_class:"hand-down",unicode:"e63d",unicode_decimal:58941},{icon_id:"24841493",name:"hand-thumbsup-filled",font_class:"hand-up-filled",unicode:"e63e",unicode_decimal:58942},{icon_id:"24841494",name:"hand-thumbsup",font_class:"hand-up",unicode:"e63f",unicode_decimal:58943},{icon_id:"24841496",name:"heart-filled",font_class:"heart-filled",unicode:"e641",unicode_decimal:58945},{icon_id:"24841498",name:"mail-open",font_class:"mail-open",unicode:"e643",unicode_decimal:58947},{icon_id:"24841488",name:"heart",font_class:"heart",unicode:"e639",unicode_decimal:58937},{icon_id:"24839963",name:"loop",font_class:"loop",unicode:"e633",unicode_decimal:58931},{icon_id:"24839866",name:"pulldown",font_class:"pulldown",unicode:"e632",unicode_decimal:58930},{icon_id:"24813798",name:"scan",font_class:"scan",unicode:"e62a",unicode_decimal:58922},{icon_id:"24813786",name:"bars",font_class:"bars",unicode:"e627",unicode_decimal:58919},{icon_id:"24813788",name:"cart-filled",font_class:"cart-filled",unicode:"e629",unicode_decimal:58921},{icon_id:"24813790",name:"checkbox",font_class:"checkbox",unicode:"e62b",unicode_decimal:58923},{icon_id:"24813791",name:"checkbox-filled",font_class:"checkbox-filled",unicode:"e62c",unicode_decimal:58924},{icon_id:"24813794",name:"shop",font_class:"shop",unicode:"e62f",unicode_decimal:58927},{icon_id:"24813795",name:"headphones",font_class:"headphones",unicode:"e630",unicode_decimal:58928},{icon_id:"24813796",name:"cart",font_class:"cart",unicode:"e631",unicode_decimal:58929}]};const l=o({name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customPrefix:{type:String,default:""}},data:()=>({icons:a.glyphs}),computed:{unicode(){let e=this.icons.find((e=>e.font_class===this.type));return e?unescape(`%u${e.unicode}`):""},iconSize(){return"number"==typeof(e=this.size)||/^[0-9]*$/g.test(e)?e+"px":e;var e}},methods:{_onClick(){this.$emit("click")}}},[["render",function(o,a,l,_,s,m){const u=d;return e(),i(u,{style:n({color:l.color,"font-size":m.iconSize}),class:c(["uni-icons",["uniui-"+l.type,l.customPrefix,l.customPrefix?l.type:""]]),onClick:m._onClick},null,8,["style","class","onClick"])}],["__scopeId","data-v-7c2f6cb0"]]);export{l as _};
+import{o as e,d as i,b as n,n as c,i as d}from"./index-d9c03bf0.js";import{_ as o}from"./_plugin-vue_export-helper.1b428a4d.js";const a={id:"2852637",name:"uniui图标库",font_family:"uniicons",css_prefix_text:"uniui-",description:"",glyphs:[{icon_id:"25027049",name:"yanse",font_class:"color",unicode:"e6cf",unicode_decimal:59087},{icon_id:"25027048",name:"wallet",font_class:"wallet",unicode:"e6b1",unicode_decimal:59057},{icon_id:"25015720",name:"settings-filled",font_class:"settings-filled",unicode:"e6ce",unicode_decimal:59086},{icon_id:"25015434",name:"shimingrenzheng-filled",font_class:"auth-filled",unicode:"e6cc",unicode_decimal:59084},{icon_id:"24934246",name:"shop-filled",font_class:"shop-filled",unicode:"e6cd",unicode_decimal:59085},{icon_id:"24934159",name:"staff-filled-01",font_class:"staff-filled",unicode:"e6cb",unicode_decimal:59083},{icon_id:"24932461",name:"VIP-filled",font_class:"vip-filled",unicode:"e6c6",unicode_decimal:59078},{icon_id:"24932462",name:"plus_circle_fill",font_class:"plus-filled",unicode:"e6c7",unicode_decimal:59079},{icon_id:"24932463",name:"folder_add-filled",font_class:"folder-add-filled",unicode:"e6c8",unicode_decimal:59080},{icon_id:"24932464",name:"yanse-filled",font_class:"color-filled",unicode:"e6c9",unicode_decimal:59081},{icon_id:"24932465",name:"tune-filled",font_class:"tune-filled",unicode:"e6ca",unicode_decimal:59082},{icon_id:"24932455",name:"a-rilidaka-filled",font_class:"calendar-filled",unicode:"e6c0",unicode_decimal:59072},{icon_id:"24932456",name:"notification-filled",font_class:"notification-filled",unicode:"e6c1",unicode_decimal:59073},{icon_id:"24932457",name:"wallet-filled",font_class:"wallet-filled",unicode:"e6c2",unicode_decimal:59074},{icon_id:"24932458",name:"paihangbang-filled",font_class:"medal-filled",unicode:"e6c3",unicode_decimal:59075},{icon_id:"24932459",name:"gift-filled",font_class:"gift-filled",unicode:"e6c4",unicode_decimal:59076},{icon_id:"24932460",name:"fire-filled",font_class:"fire-filled",unicode:"e6c5",unicode_decimal:59077},{icon_id:"24928001",name:"refreshempty",font_class:"refreshempty",unicode:"e6bf",unicode_decimal:59071},{icon_id:"24926853",name:"location-ellipse",font_class:"location-filled",unicode:"e6af",unicode_decimal:59055},{icon_id:"24926735",name:"person-filled",font_class:"person-filled",unicode:"e69d",unicode_decimal:59037},{icon_id:"24926703",name:"personadd-filled",font_class:"personadd-filled",unicode:"e698",unicode_decimal:59032},{icon_id:"24923351",name:"back",font_class:"back",unicode:"e6b9",unicode_decimal:59065},{icon_id:"24923352",name:"forward",font_class:"forward",unicode:"e6ba",unicode_decimal:59066},{icon_id:"24923353",name:"arrowthinright",font_class:"arrow-right",unicode:"e6bb",unicode_decimal:59067},{icon_id:"24923353",name:"arrowthinright",font_class:"arrowthinright",unicode:"e6bb",unicode_decimal:59067},{icon_id:"24923354",name:"arrowthinleft",font_class:"arrow-left",unicode:"e6bc",unicode_decimal:59068},{icon_id:"24923354",name:"arrowthinleft",font_class:"arrowthinleft",unicode:"e6bc",unicode_decimal:59068},{icon_id:"24923355",name:"arrowthinup",font_class:"arrow-up",unicode:"e6bd",unicode_decimal:59069},{icon_id:"24923355",name:"arrowthinup",font_class:"arrowthinup",unicode:"e6bd",unicode_decimal:59069},{icon_id:"24923356",name:"arrowthindown",font_class:"arrow-down",unicode:"e6be",unicode_decimal:59070},{icon_id:"24923356",name:"arrowthindown",font_class:"arrowthindown",unicode:"e6be",unicode_decimal:59070},{icon_id:"24923349",name:"arrowdown",font_class:"bottom",unicode:"e6b8",unicode_decimal:59064},{icon_id:"24923349",name:"arrowdown",font_class:"arrowdown",unicode:"e6b8",unicode_decimal:59064},{icon_id:"24923346",name:"arrowright",font_class:"right",unicode:"e6b5",unicode_decimal:59061},{icon_id:"24923346",name:"arrowright",font_class:"arrowright",unicode:"e6b5",unicode_decimal:59061},{icon_id:"24923347",name:"arrowup",font_class:"top",unicode:"e6b6",unicode_decimal:59062},{icon_id:"24923347",name:"arrowup",font_class:"arrowup",unicode:"e6b6",unicode_decimal:59062},{icon_id:"24923348",name:"arrowleft",font_class:"left",unicode:"e6b7",unicode_decimal:59063},{icon_id:"24923348",name:"arrowleft",font_class:"arrowleft",unicode:"e6b7",unicode_decimal:59063},{icon_id:"24923334",name:"eye",font_class:"eye",unicode:"e651",unicode_decimal:58961},{icon_id:"24923335",name:"eye-filled",font_class:"eye-filled",unicode:"e66a",unicode_decimal:58986},{icon_id:"24923336",name:"eye-slash",font_class:"eye-slash",unicode:"e6b3",unicode_decimal:59059},{icon_id:"24923337",name:"eye-slash-filled",font_class:"eye-slash-filled",unicode:"e6b4",unicode_decimal:59060},{icon_id:"24923305",name:"info-filled",font_class:"info-filled",unicode:"e649",unicode_decimal:58953},{icon_id:"24923299",name:"reload-01",font_class:"reload",unicode:"e6b2",unicode_decimal:59058},{icon_id:"24923195",name:"mic_slash_fill",font_class:"micoff-filled",unicode:"e6b0",unicode_decimal:59056},{icon_id:"24923165",name:"map-pin-ellipse",font_class:"map-pin-ellipse",unicode:"e6ac",unicode_decimal:59052},{icon_id:"24923166",name:"map-pin",font_class:"map-pin",unicode:"e6ad",unicode_decimal:59053},{icon_id:"24923167",name:"location",font_class:"location",unicode:"e6ae",unicode_decimal:59054},{icon_id:"24923064",name:"starhalf",font_class:"starhalf",unicode:"e683",unicode_decimal:59011},{icon_id:"24923065",name:"star",font_class:"star",unicode:"e688",unicode_decimal:59016},{icon_id:"24923066",name:"star-filled",font_class:"star-filled",unicode:"e68f",unicode_decimal:59023},{icon_id:"24899646",name:"a-rilidaka",font_class:"calendar",unicode:"e6a0",unicode_decimal:59040},{icon_id:"24899647",name:"fire",font_class:"fire",unicode:"e6a1",unicode_decimal:59041},{icon_id:"24899648",name:"paihangbang",font_class:"medal",unicode:"e6a2",unicode_decimal:59042},{icon_id:"24899649",name:"font",font_class:"font",unicode:"e6a3",unicode_decimal:59043},{icon_id:"24899650",name:"gift",font_class:"gift",unicode:"e6a4",unicode_decimal:59044},{icon_id:"24899651",name:"link",font_class:"link",unicode:"e6a5",unicode_decimal:59045},{icon_id:"24899652",name:"notification",font_class:"notification",unicode:"e6a6",unicode_decimal:59046},{icon_id:"24899653",name:"staff",font_class:"staff",unicode:"e6a7",unicode_decimal:59047},{icon_id:"24899654",name:"VIP",font_class:"vip",unicode:"e6a8",unicode_decimal:59048},{icon_id:"24899655",name:"folder_add",font_class:"folder-add",unicode:"e6a9",unicode_decimal:59049},{icon_id:"24899656",name:"tune",font_class:"tune",unicode:"e6aa",unicode_decimal:59050},{icon_id:"24899657",name:"shimingrenzheng",font_class:"auth",unicode:"e6ab",unicode_decimal:59051},{icon_id:"24899565",name:"person",font_class:"person",unicode:"e699",unicode_decimal:59033},{icon_id:"24899566",name:"email-filled",font_class:"email-filled",unicode:"e69a",unicode_decimal:59034},{icon_id:"24899567",name:"phone-filled",font_class:"phone-filled",unicode:"e69b",unicode_decimal:59035},{icon_id:"24899568",name:"phone",font_class:"phone",unicode:"e69c",unicode_decimal:59036},{icon_id:"24899570",name:"email",font_class:"email",unicode:"e69e",unicode_decimal:59038},{icon_id:"24899571",name:"personadd",font_class:"personadd",unicode:"e69f",unicode_decimal:59039},{icon_id:"24899558",name:"chatboxes-filled",font_class:"chatboxes-filled",unicode:"e692",unicode_decimal:59026},{icon_id:"24899559",name:"contact",font_class:"contact",unicode:"e693",unicode_decimal:59027},{icon_id:"24899560",name:"chatbubble-filled",font_class:"chatbubble-filled",unicode:"e694",unicode_decimal:59028},{icon_id:"24899561",name:"contact-filled",font_class:"contact-filled",unicode:"e695",unicode_decimal:59029},{icon_id:"24899562",name:"chatboxes",font_class:"chatboxes",unicode:"e696",unicode_decimal:59030},{icon_id:"24899563",name:"chatbubble",font_class:"chatbubble",unicode:"e697",unicode_decimal:59031},{icon_id:"24881290",name:"upload-filled",font_class:"upload-filled",unicode:"e68e",unicode_decimal:59022},{icon_id:"24881292",name:"upload",font_class:"upload",unicode:"e690",unicode_decimal:59024},{icon_id:"24881293",name:"weixin",font_class:"weixin",unicode:"e691",unicode_decimal:59025},{icon_id:"24881274",name:"compose",font_class:"compose",unicode:"e67f",unicode_decimal:59007},{icon_id:"24881275",name:"qq",font_class:"qq",unicode:"e680",unicode_decimal:59008},{icon_id:"24881276",name:"download-filled",font_class:"download-filled",unicode:"e681",unicode_decimal:59009},{icon_id:"24881277",name:"pengyouquan",font_class:"pyq",unicode:"e682",unicode_decimal:59010},{icon_id:"24881279",name:"sound",font_class:"sound",unicode:"e684",unicode_decimal:59012},{icon_id:"24881280",name:"trash-filled",font_class:"trash-filled",unicode:"e685",unicode_decimal:59013},{icon_id:"24881281",name:"sound-filled",font_class:"sound-filled",unicode:"e686",unicode_decimal:59014},{icon_id:"24881282",name:"trash",font_class:"trash",unicode:"e687",unicode_decimal:59015},{icon_id:"24881284",name:"videocam-filled",font_class:"videocam-filled",unicode:"e689",unicode_decimal:59017},{icon_id:"24881285",name:"spinner-cycle",font_class:"spinner-cycle",unicode:"e68a",unicode_decimal:59018},{icon_id:"24881286",name:"weibo",font_class:"weibo",unicode:"e68b",unicode_decimal:59019},{icon_id:"24881288",name:"videocam",font_class:"videocam",unicode:"e68c",unicode_decimal:59020},{icon_id:"24881289",name:"download",font_class:"download",unicode:"e68d",unicode_decimal:59021},{icon_id:"24879601",name:"help",font_class:"help",unicode:"e679",unicode_decimal:59001},{icon_id:"24879602",name:"navigate-filled",font_class:"navigate-filled",unicode:"e67a",unicode_decimal:59002},{icon_id:"24879603",name:"plusempty",font_class:"plusempty",unicode:"e67b",unicode_decimal:59003},{icon_id:"24879604",name:"smallcircle",font_class:"smallcircle",unicode:"e67c",unicode_decimal:59004},{icon_id:"24879605",name:"minus-filled",font_class:"minus-filled",unicode:"e67d",unicode_decimal:59005},{icon_id:"24879606",name:"micoff",font_class:"micoff",unicode:"e67e",unicode_decimal:59006},{icon_id:"24879588",name:"closeempty",font_class:"closeempty",unicode:"e66c",unicode_decimal:58988},{icon_id:"24879589",name:"clear",font_class:"clear",unicode:"e66d",unicode_decimal:58989},{icon_id:"24879590",name:"navigate",font_class:"navigate",unicode:"e66e",unicode_decimal:58990},{icon_id:"24879591",name:"minus",font_class:"minus",unicode:"e66f",unicode_decimal:58991},{icon_id:"24879592",name:"image",font_class:"image",unicode:"e670",unicode_decimal:58992},{icon_id:"24879593",name:"mic",font_class:"mic",unicode:"e671",unicode_decimal:58993},{icon_id:"24879594",name:"paperplane",font_class:"paperplane",unicode:"e672",unicode_decimal:58994},{icon_id:"24879595",name:"close",font_class:"close",unicode:"e673",unicode_decimal:58995},{icon_id:"24879596",name:"help-filled",font_class:"help-filled",unicode:"e674",unicode_decimal:58996},{icon_id:"24879597",name:"plus-filled",font_class:"paperplane-filled",unicode:"e675",unicode_decimal:58997},{icon_id:"24879598",name:"plus",font_class:"plus",unicode:"e676",unicode_decimal:58998},{icon_id:"24879599",name:"mic-filled",font_class:"mic-filled",unicode:"e677",unicode_decimal:58999},{icon_id:"24879600",name:"image-filled",font_class:"image-filled",unicode:"e678",unicode_decimal:59e3},{icon_id:"24855900",name:"locked-filled",font_class:"locked-filled",unicode:"e668",unicode_decimal:58984},{icon_id:"24855901",name:"info",font_class:"info",unicode:"e669",unicode_decimal:58985},{icon_id:"24855903",name:"locked",font_class:"locked",unicode:"e66b",unicode_decimal:58987},{icon_id:"24855884",name:"camera-filled",font_class:"camera-filled",unicode:"e658",unicode_decimal:58968},{icon_id:"24855885",name:"chat-filled",font_class:"chat-filled",unicode:"e659",unicode_decimal:58969},{icon_id:"24855886",name:"camera",font_class:"camera",unicode:"e65a",unicode_decimal:58970},{icon_id:"24855887",name:"circle",font_class:"circle",unicode:"e65b",unicode_decimal:58971},{icon_id:"24855888",name:"checkmarkempty",font_class:"checkmarkempty",unicode:"e65c",unicode_decimal:58972},{icon_id:"24855889",name:"chat",font_class:"chat",unicode:"e65d",unicode_decimal:58973},{icon_id:"24855890",name:"circle-filled",font_class:"circle-filled",unicode:"e65e",unicode_decimal:58974},{icon_id:"24855891",name:"flag",font_class:"flag",unicode:"e65f",unicode_decimal:58975},{icon_id:"24855892",name:"flag-filled",font_class:"flag-filled",unicode:"e660",unicode_decimal:58976},{icon_id:"24855893",name:"gear-filled",font_class:"gear-filled",unicode:"e661",unicode_decimal:58977},{icon_id:"24855894",name:"home",font_class:"home",unicode:"e662",unicode_decimal:58978},{icon_id:"24855895",name:"home-filled",font_class:"home-filled",unicode:"e663",unicode_decimal:58979},{icon_id:"24855896",name:"gear",font_class:"gear",unicode:"e664",unicode_decimal:58980},{icon_id:"24855897",name:"smallcircle-filled",font_class:"smallcircle-filled",unicode:"e665",unicode_decimal:58981},{icon_id:"24855898",name:"map-filled",font_class:"map-filled",unicode:"e666",unicode_decimal:58982},{icon_id:"24855899",name:"map",font_class:"map",unicode:"e667",unicode_decimal:58983},{icon_id:"24855825",name:"refresh-filled",font_class:"refresh-filled",unicode:"e656",unicode_decimal:58966},{icon_id:"24855826",name:"refresh",font_class:"refresh",unicode:"e657",unicode_decimal:58967},{icon_id:"24855808",name:"cloud-upload",font_class:"cloud-upload",unicode:"e645",unicode_decimal:58949},{icon_id:"24855809",name:"cloud-download-filled",font_class:"cloud-download-filled",unicode:"e646",unicode_decimal:58950},{icon_id:"24855810",name:"cloud-download",font_class:"cloud-download",unicode:"e647",unicode_decimal:58951},{icon_id:"24855811",name:"cloud-upload-filled",font_class:"cloud-upload-filled",unicode:"e648",unicode_decimal:58952},{icon_id:"24855813",name:"redo",font_class:"redo",unicode:"e64a",unicode_decimal:58954},{icon_id:"24855814",name:"images-filled",font_class:"images-filled",unicode:"e64b",unicode_decimal:58955},{icon_id:"24855815",name:"undo-filled",font_class:"undo-filled",unicode:"e64c",unicode_decimal:58956},{icon_id:"24855816",name:"more",font_class:"more",unicode:"e64d",unicode_decimal:58957},{icon_id:"24855817",name:"more-filled",font_class:"more-filled",unicode:"e64e",unicode_decimal:58958},{icon_id:"24855818",name:"undo",font_class:"undo",unicode:"e64f",unicode_decimal:58959},{icon_id:"24855819",name:"images",font_class:"images",unicode:"e650",unicode_decimal:58960},{icon_id:"24855821",name:"paperclip",font_class:"paperclip",unicode:"e652",unicode_decimal:58962},{icon_id:"24855822",name:"settings",font_class:"settings",unicode:"e653",unicode_decimal:58963},{icon_id:"24855823",name:"search",font_class:"search",unicode:"e654",unicode_decimal:58964},{icon_id:"24855824",name:"redo-filled",font_class:"redo-filled",unicode:"e655",unicode_decimal:58965},{icon_id:"24841702",name:"list",font_class:"list",unicode:"e644",unicode_decimal:58948},{icon_id:"24841489",name:"mail-open-filled",font_class:"mail-open-filled",unicode:"e63a",unicode_decimal:58938},{icon_id:"24841491",name:"hand-thumbsdown-filled",font_class:"hand-down-filled",unicode:"e63c",unicode_decimal:58940},{icon_id:"24841492",name:"hand-thumbsdown",font_class:"hand-down",unicode:"e63d",unicode_decimal:58941},{icon_id:"24841493",name:"hand-thumbsup-filled",font_class:"hand-up-filled",unicode:"e63e",unicode_decimal:58942},{icon_id:"24841494",name:"hand-thumbsup",font_class:"hand-up",unicode:"e63f",unicode_decimal:58943},{icon_id:"24841496",name:"heart-filled",font_class:"heart-filled",unicode:"e641",unicode_decimal:58945},{icon_id:"24841498",name:"mail-open",font_class:"mail-open",unicode:"e643",unicode_decimal:58947},{icon_id:"24841488",name:"heart",font_class:"heart",unicode:"e639",unicode_decimal:58937},{icon_id:"24839963",name:"loop",font_class:"loop",unicode:"e633",unicode_decimal:58931},{icon_id:"24839866",name:"pulldown",font_class:"pulldown",unicode:"e632",unicode_decimal:58930},{icon_id:"24813798",name:"scan",font_class:"scan",unicode:"e62a",unicode_decimal:58922},{icon_id:"24813786",name:"bars",font_class:"bars",unicode:"e627",unicode_decimal:58919},{icon_id:"24813788",name:"cart-filled",font_class:"cart-filled",unicode:"e629",unicode_decimal:58921},{icon_id:"24813790",name:"checkbox",font_class:"checkbox",unicode:"e62b",unicode_decimal:58923},{icon_id:"24813791",name:"checkbox-filled",font_class:"checkbox-filled",unicode:"e62c",unicode_decimal:58924},{icon_id:"24813794",name:"shop",font_class:"shop",unicode:"e62f",unicode_decimal:58927},{icon_id:"24813795",name:"headphones",font_class:"headphones",unicode:"e630",unicode_decimal:58928},{icon_id:"24813796",name:"cart",font_class:"cart",unicode:"e631",unicode_decimal:58929}]};const l=o({name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customPrefix:{type:String,default:""}},data:()=>({icons:a.glyphs}),computed:{unicode(){let e=this.icons.find((e=>e.font_class===this.type));return e?unescape(`%u${e.unicode}`):""},iconSize(){return"number"==typeof(e=this.size)||/^[0-9]*$/g.test(e)?e+"px":e;var e}},methods:{_onClick(){this.$emit("click")}}},[["render",function(o,a,l,_,s,m){const u=d;return e(),i(u,{style:n({color:l.color,"font-size":m.iconSize}),class:c(["uni-icons",["uniui-"+l.type,l.customPrefix,l.customPrefix?l.type:""]]),onClick:m._onClick},null,8,["style","class","onClick"])}],["__scopeId","data-v-7c2f6cb0"]]);export{l as _};
diff --git a/GDH5/unpackage/dist/build/h5/assets/uni-popup.9b735bd6.js b/GDH5/unpackage/dist/build/h5/assets/uni-popup.be52e098.js
similarity index 99%
rename from GDH5/unpackage/dist/build/h5/assets/uni-popup.9b735bd6.js
rename to GDH5/unpackage/dist/build/h5/assets/uni-popup.be52e098.js
index c46587c..bd3495c 100644
--- a/GDH5/unpackage/dist/build/h5/assets/uni-popup.9b735bd6.js
+++ b/GDH5/unpackage/dist/build/h5/assets/uni-popup.be52e098.js
@@ -1 +1 @@
-import{L as e,M as t,N as s,O as n,P as i,G as o,Q as r,s as a,R as c,S as l,T as u,U as h,H as d,V as p,W as f,X as g,Y as m,Z as y,q as _,z as w,y as k,h as b,_ as v,$ as S,a0 as T,a1 as I,a2 as P,a3 as x,o as A,d as C,w as O,c as L,F as E,l as F,b as U,f as D,a4 as R,p as M,a as N,r as $,A as j,e as q,a5 as B,n as K,t as H,a6 as z,i as W,v as J,a7 as V,a8 as Y,a9 as Q,g as X}from"./index-52f0fde8.js";import{_ as G}from"./_plugin-vue_export-helper.1b428a4d.js";import{r as Z}from"./uni-app.es.add45db9.js";const ee={pages:[{path:"pages/index/index",style:{navigationBarTitleText:"uni-app"}},{path:"pages/login/login",style:{enablePullDownRefresh:!1,navigationStyle:"custom"}},{path:"pages/invoice/list",style:{enablePullDownRefresh:!1,navigationStyle:"custom"}},{path:"pages/invoice/detail",style:{enablePullDownRefresh:!1,navigationStyle:"custom"}},{path:"pages/chat/list",style:{enablePullDownRefresh:!1,navigationStyle:"custom"}},{path:"pages/chat/detail",style:{enablePullDownRefresh:!1,navigationStyle:"custom"}},{path:"pages/invoice/edit",style:{enablePullDownRefresh:!1,navigationStyle:"custom"}}],globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"体检平台",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8","app-plus":{background:"#efeff4"}}};function te(e,t,s){return e(s={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&s.path)}},s.exports),s.exports}var se=te((function(e,t){var s;e.exports=(s=s||function(e,t){var s=Object.create||function(){function e(){}return function(t){var s;return e.prototype=t,s=new e,e.prototype=null,s}}(),n={},i=n.lib={},o=i.Base={extend:function(e){var t=s(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)}},r=i.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,s=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[n+o>>>2]|=r<<24-(n+o)%4*8}else for(o=0;o>>2]=s[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,s=this.sigBytes;t[s>>>2]&=4294967295<<32-s%4*8,t.length=e.ceil(s/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var s,n=[],i=function(t){var s=987654321,n=4294967295;return function(){var i=((s=36969*(65535&s)+(s>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,s=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new r.init(s,t/2)}},l=a.Latin1={stringify:function(e){for(var t=e.words,s=e.sigBytes,n=[],i=0;i>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,s=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new r.init(s,t)}},u=a.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},h=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new r.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var s=this._data,n=s.words,i=s.sigBytes,o=this.blockSize,a=i/(4*o),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*o,l=e.min(4*c,i);if(c){for(var u=0;u>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,r=e[t+0],c=e[t+1],p=e[t+2],f=e[t+3],g=e[t+4],m=e[t+5],y=e[t+6],_=e[t+7],w=e[t+8],k=e[t+9],b=e[t+10],v=e[t+11],S=e[t+12],T=e[t+13],I=e[t+14],P=e[t+15],x=o[0],A=o[1],C=o[2],O=o[3];x=l(x,A,C,O,r,7,a[0]),O=l(O,x,A,C,c,12,a[1]),C=l(C,O,x,A,p,17,a[2]),A=l(A,C,O,x,f,22,a[3]),x=l(x,A,C,O,g,7,a[4]),O=l(O,x,A,C,m,12,a[5]),C=l(C,O,x,A,y,17,a[6]),A=l(A,C,O,x,_,22,a[7]),x=l(x,A,C,O,w,7,a[8]),O=l(O,x,A,C,k,12,a[9]),C=l(C,O,x,A,b,17,a[10]),A=l(A,C,O,x,v,22,a[11]),x=l(x,A,C,O,S,7,a[12]),O=l(O,x,A,C,T,12,a[13]),C=l(C,O,x,A,I,17,a[14]),x=u(x,A=l(A,C,O,x,P,22,a[15]),C,O,c,5,a[16]),O=u(O,x,A,C,y,9,a[17]),C=u(C,O,x,A,v,14,a[18]),A=u(A,C,O,x,r,20,a[19]),x=u(x,A,C,O,m,5,a[20]),O=u(O,x,A,C,b,9,a[21]),C=u(C,O,x,A,P,14,a[22]),A=u(A,C,O,x,g,20,a[23]),x=u(x,A,C,O,k,5,a[24]),O=u(O,x,A,C,I,9,a[25]),C=u(C,O,x,A,f,14,a[26]),A=u(A,C,O,x,w,20,a[27]),x=u(x,A,C,O,T,5,a[28]),O=u(O,x,A,C,p,9,a[29]),C=u(C,O,x,A,_,14,a[30]),x=h(x,A=u(A,C,O,x,S,20,a[31]),C,O,m,4,a[32]),O=h(O,x,A,C,w,11,a[33]),C=h(C,O,x,A,v,16,a[34]),A=h(A,C,O,x,I,23,a[35]),x=h(x,A,C,O,c,4,a[36]),O=h(O,x,A,C,g,11,a[37]),C=h(C,O,x,A,_,16,a[38]),A=h(A,C,O,x,b,23,a[39]),x=h(x,A,C,O,T,4,a[40]),O=h(O,x,A,C,r,11,a[41]),C=h(C,O,x,A,f,16,a[42]),A=h(A,C,O,x,y,23,a[43]),x=h(x,A,C,O,k,4,a[44]),O=h(O,x,A,C,S,11,a[45]),C=h(C,O,x,A,P,16,a[46]),x=d(x,A=h(A,C,O,x,p,23,a[47]),C,O,r,6,a[48]),O=d(O,x,A,C,_,10,a[49]),C=d(C,O,x,A,I,15,a[50]),A=d(A,C,O,x,m,21,a[51]),x=d(x,A,C,O,S,6,a[52]),O=d(O,x,A,C,f,10,a[53]),C=d(C,O,x,A,b,15,a[54]),A=d(A,C,O,x,c,21,a[55]),x=d(x,A,C,O,w,6,a[56]),O=d(O,x,A,C,P,10,a[57]),C=d(C,O,x,A,y,15,a[58]),A=d(A,C,O,x,T,21,a[59]),x=d(x,A,C,O,g,6,a[60]),O=d(O,x,A,C,v,10,a[61]),C=d(C,O,x,A,p,15,a[62]),A=d(A,C,O,x,k,21,a[63]),o[0]=o[0]+x|0,o[1]=o[1]+A|0,o[2]=o[2]+C|0,o[3]=o[3]+O|0},_doFinalize:function(){var t=this._data,s=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;s[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296),r=n;s[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),s[14+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(s.length+1),this._process();for(var a=this._hash,c=a.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return a},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,s,n,i,o,r){var a=e+(t&s|~t&n)+i+r;return(a<>>32-o)+t}function u(e,t,s,n,i,o,r){var a=e+(t&n|s&~n)+i+r;return(a<>>32-o)+t}function h(e,t,s,n,i,o,r){var a=e+(t^s^n)+i+r;return(a<>>32-o)+t}function d(e,t,s,n,i,o,r){var a=e+(s^(t|~n))+i+r;return(a<>>32-o)+t}t.MD5=o._createHelper(c),t.HmacMD5=o._createHmacHelper(c)}(Math),s.MD5)})),te((function(e,t){var s,n,i;e.exports=(n=(s=ne).lib.Base,i=s.enc.Utf8,void(s.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var s=e.blockSize,n=4*s;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),r=this._iKey=t.clone(),a=o.words,c=r.words,l=0;l>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a>>6*(3-a)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t=e.length,s=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var o=0;o>>6-r%4*2;n[o>>>2]|=(a|c)<<24-o%4*8,o++}return i.create(n,o)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},s.enc.Base64)}));const ae="FUNCTION",ce="pending",le="rejected";function ue(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function he(e){return"object"===ue(e)}function de(e){return"function"==typeof e}function pe(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}const fe="REJECTED",ge="NOT_PENDING";class me{constructor({createPromise:e,retryRule:t=fe}={}){this.createPromise=e,this.status=null,this.promise=null,this.retryRule=t}get needRetry(){if(!this.status)return!0;switch(this.retryRule){case fe:return this.status===le;case ge:return this.status!==ce}}exec(){return this.needRetry?(this.status=ce,this.promise=this.createPromise().then((e=>(this.status="fulfilled",Promise.resolve(e))),(e=>(this.status=le,Promise.reject(e)))),this.promise):this.promise}}function ye(e){return e&&"string"==typeof e?JSON.parse(e):e}const _e=ye([]);ye("");const we=ye("[]")||[];let ke="";try{ke="__UNI__BD068F8"}catch(ct){}let be={};function ve(e,t={}){var s,n;return s=be,n=e,Object.prototype.hasOwnProperty.call(s,n)||(be[e]=t),be[e]}const Se=["invoke","success","fail","complete"],Te=ve("_globalUniCloudInterceptor");function Ie(e,t){Te[e]||(Te[e]={}),he(t)&&Object.keys(t).forEach((s=>{Se.indexOf(s)>-1&&function(e,t,s){let n=Te[e][t];n||(n=Te[e][t]=[]),-1===n.indexOf(s)&&de(s)&&n.push(s)}(e,s,t[s])}))}function Pe(e,t){Te[e]||(Te[e]={}),he(t)?Object.keys(t).forEach((s=>{Se.indexOf(s)>-1&&function(e,t,s){const n=Te[e][t];if(!n)return;const i=n.indexOf(s);i>-1&&n.splice(i,1)}(e,s,t[s])})):delete Te[e]}function xe(e,t){return e&&0!==e.length?e.reduce(((e,s)=>e.then((()=>s(t)))),Promise.resolve()):Promise.resolve()}function Ae(e,t){return Te[e]&&Te[e][t]||[]}function Ce(e){Ie("callObject",e)}const Oe=ve("_globalUniCloudListener"),Le="response",Ee="needLogin",Fe="refreshToken",Ue="clientdb",De="cloudfunction",Re="cloudobject";function Me(e){return Oe[e]||(Oe[e]=[]),Oe[e]}function Ne(e,t){const s=Me(e);s.includes(t)||s.push(t)}function $e(e,t){const s=Me(e),n=s.indexOf(t);-1!==n&&s.splice(n,1)}function je(e,t){const s=Me(e);for(let n=0;n{Be&&e(),function t(){if("function"==typeof s){const t=s();t&&t[0]&&(Be=!0,e())}Be||setTimeout((()=>{t()}),30)}()})),qe)}function He(e){const t={};for(const s in e){const n=e[s];de(n)&&(t[s]=pe(n))}return t}class ze extends Error{constructor(e){super(e.message),this.errMsg=e.message||e.errMsg||"unknown system error",this.code=this.errCode=e.code||e.errCode||"SYSTEM_ERROR",this.errSubject=this.subject=e.subject||e.errSubject,this.cause=e.cause,this.requestId=e.requestId}toJson(e=0){if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}var We={request:e=>h(e),uploadFile:e=>d(e),setStorageSync:(e,t)=>p(e,t),getStorageSync:e=>f(e),removeStorageSync:e=>g(e),clearStorageSync:()=>m()};function Je(e){return e&&Je(e.__v_raw)||e}function Ve(){return{token:We.getStorageSync("uni_id_token")||We.getStorageSync("uniIdToken"),tokenExpired:We.getStorageSync("uni_id_token_expired")}}function Ye({token:e,tokenExpired:t}={}){e&&We.setStorageSync("uni_id_token",e),t&&We.setStorageSync("uni_id_token_expired",t)}let Qe,Xe;function Ge(){return Qe||(Qe=y()),Qe}function Ze(){let e,t;try{if(I){if(I.toString().indexOf("not yet implemented")>-1)return;const{scene:s,channel:n}=I();e=n,t=s}}catch(s){}return{channel:e,scene:t}}function et(){const e=T&&T()||"en";if(Xe)return{...Xe,locale:e,LOCALE:e};const t=Ge(),{deviceId:s,osName:n,uniPlatform:i,appId:o}=t,r=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"];for(let a=0;a{t(Object.assign(e,{complete(e){e||(e={});const 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 n(new ze({code:"SYS_ERR",message:e.errMsg||"request:fail",requestId:t}));const i=e.data;if(i.error)return n(new ze({code:i.error.code,message:i.error.message,requestId:t}));i.result=i.data,i.requestId=t,delete i.data,s(i)}}))}))},nt=function(e){return re.stringify(oe.parse(e))},it=class{constructor(e){["spaceId","clientSecret"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),this.config=Object.assign({},{endpoint:0===e.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},e),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=We,this._getAccessTokenPromiseHub=new me({createPromise:()=>this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((e=>{if(!e.result||!e.result.accessToken)throw new ze({code:"AUTH_FAILED",message:"获取accessToken失败"});this.setAccessToken(e.result.accessToken)})),retryRule:ge})}get hasAccessToken(){return!!this.accessToken}setAccessToken(e){this.accessToken=e}requestWrapped(e){return st(e,this.adapter.request)}requestAuth(e){return this.requestWrapped(e)}request(e,t){return Promise.resolve().then((()=>this.hasAccessToken?t?this.requestWrapped(e):this.requestWrapped(e).catch((t=>new Promise(((e,s)=>{!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?s(t):e()})).then((()=>this.getAccessToken())).then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)})))):this.getAccessToken().then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)}))))}rebuildRequest(e){const t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=tt(t.data,this.config.clientSecret),t}setupRequest(e,t){const s=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};return"auth"!==t&&(s.token=this.accessToken,n["x-basement-token"]=this.accessToken),n["x-serverless-sign"]=tt(s,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:s,dataType:"json",header:n}}getAccessToken(){return this._getAccessTokenPromiseHub.exec()}async authorize(){await this.getAccessToken()}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(this.setupRequest(t))}getOSSUploadOptionsFromPath(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFileToOSS({url:e,formData:t,name:s,filePath:n,fileType:i,onUploadProgress:o}){return new Promise(((r,a)=>{const c=this.adapter.uploadFile({url:e,formData:t,name:s,filePath:n,fileType:i,header:{"X-OSS-server-side-encrpytion":"AES256"},success(e){e&&e.statusCode<400?r(e):a(new ze({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){a(new ze({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof o&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((e=>{o({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}reportOSSUpload(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}async uploadFile({filePath:e,cloudPath:t,fileType:s="image",cloudPathAsRealPath:n=!1,onUploadProgress:i,config:o}){if("string"!==ue(t))throw new ze({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new ze({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new ze({code:"INVALID_PARAM",message:"cloudPath不合法"});const r=o&&o.envType||this.config.envType;if(n&&("/"!==t[0]&&(t="/"+t),t.indexOf("\\")>-1))throw new ze({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});const a=(await this.getOSSUploadOptionsFromPath({env:r,filename:n?t.split("/").pop():t,fileId:n?t:void 0})).result,c="https://"+a.cdnDomain+"/"+a.ossPath,{securityToken:l,accessKeyId:u,signature:h,host:d,ossPath:p,id:f,policy:g,ossCallbackUrl:m}=a,y={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:u,Signature:h,host:d,id:f,key:p,policy:g,success_action_status:200};if(l&&(y["x-oss-security-token"]=l),m){const e=JSON.stringify({callbackUrl:m,callbackBody:JSON.stringify({fileId:f,spaceId:this.config.spaceId}),callbackBodyType:"application/json"});y.callback=nt(e)}const _={url:"https://"+a.host,formData:y,fileName:"file",name:"file",filePath:e,fileType:s};if(await this.uploadFileToOSS(Object.assign({},_,{onUploadProgress:i})),m)return{success:!0,filePath:e,fileID:c};if((await this.reportOSSUpload({id:f})).success)return{success:!0,filePath:e,fileID:c};throw new ze({code:"UPLOAD_FAILED",message:"文件上传失败"})}getTempFileURL({fileList:e}={}){return new Promise(((t,s)=>{Array.isArray(e)&&0!==e.length||s(new ze({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),t({fileList:e.map((e=>({fileID:e,tempFileURL:e})))})}))}async getFileInfo({fileList:e}={}){if(!Array.isArray(e)||0===e.length)throw new ze({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const t={method:"serverless.file.resource.info",params:JSON.stringify({id:e.map((e=>e.split("?")[0])).join(",")})};return{fileList:(await this.request(this.setupRequest(t))).result}}},ot={init(e){const t=new it(e),s={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return s},t.customAuth=t.auth,t}};const rt="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";var at,ct;(ct=at||(at={})).local="local",ct.none="none",ct.session="session";var lt=function(){},ut=te((function(e,t){var s;e.exports=(s=ne,function(e){var t=s,n=t.lib,i=n.WordArray,o=n.Hasher,r=t.algo,a=[],c=[];!function(){function t(t){for(var s=e.sqrt(t),n=2;n<=s;n++)if(!(t%n))return!1;return!0}function s(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)t(n)&&(i<8&&(a[i]=s(e.pow(n,.5))),c[i]=s(e.pow(n,1/3)),i++),n++}();var l=[],u=r.SHA256=o.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(e,t){for(var s=this._hash.words,n=s[0],i=s[1],o=s[2],r=s[3],a=s[4],u=s[5],h=s[6],d=s[7],p=0;p<64;p++){if(p<16)l[p]=0|e[t+p];else{var f=l[p-15],g=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,m=l[p-2],y=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;l[p]=g+l[p-7]+y+l[p-16]}var _=n&i^n&o^i&o,w=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),k=d+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&u^~a&h)+c[p]+l[p];d=h,h=u,u=a,a=r+k|0,r=o,o=i,i=n,n=k+(w+_)|0}s[0]=s[0]+n|0,s[1]=s[1]+i|0,s[2]=s[2]+o|0,s[3]=s[3]+r|0,s[4]=s[4]+a|0,s[5]=s[5]+u|0,s[6]=s[6]+h|0,s[7]=s[7]+d|0},_doFinalize:function(){var t=this._data,s=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return s[i>>>5]|=128<<24-i%32,s[14+(i+64>>>9<<4)]=e.floor(n/4294967296),s[15+(i+64>>>9<<4)]=n,t.sigBytes=4*s.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(u),t.HmacSHA256=o._createHmacHelper(u)}(Math),s.SHA256)})),ht=ut,dt=te((function(e,t){e.exports=ne.HmacSHA256}));const pt=()=>{let e;if(!Promise){e=()=>{},e.promise={};const t=()=>{throw new ze({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}const t=new Promise(((t,s)=>{e=(e,n)=>e?s(e):t(n)}));return e.promise=t,e};function ft(e){return void 0===e}function gt(e){return"[object Null]"===Object.prototype.toString.call(e)}var mt;!function(e){e.WEB="web",e.WX_MP="wx_mp"}(mt||(mt={}));const yt={adapter:null,runtime:void 0},_t=["anonymousUuidKey"];class wt extends lt{constructor(){super(),yt.adapter.root.tcbObject||(yt.adapter.root.tcbObject={})}setItem(e,t){yt.adapter.root.tcbObject[e]=t}getItem(e){return yt.adapter.root.tcbObject[e]}removeItem(e){delete yt.adapter.root.tcbObject[e]}clear(){delete yt.adapter.root.tcbObject}}function kt(e,t){switch(e){case"local":return t.localStorage||new wt;case"none":return new wt;default:return t.sessionStorage||new wt}}class bt{constructor(e){if(!this._storage){this._persistence=yt.adapter.primaryStorage||e.persistence,this._storage=kt(this._persistence,yt.adapter);const t=`access_token_${e.env}`,s=`access_token_expire_${e.env}`,n=`refresh_token_${e.env}`,i=`anonymous_uuid_${e.env}`,o=`login_type_${e.env}`,r=`user_info_${e.env}`;this.keys={accessTokenKey:t,accessTokenExpireKey:s,refreshTokenKey:n,anonymousUuidKey:i,loginTypeKey:o,userInfoKey:r}}}updatePersistence(e){if(e===this._persistence)return;const t="local"===this._persistence;this._persistence=e;const s=kt(e,yt.adapter);for(const n in this.keys){const e=this.keys[n];if(t&&_t.includes(n))continue;const i=this._storage.getItem(e);ft(i)||gt(i)||(s.setItem(e,i),this._storage.removeItem(e))}this._storage=s}setStore(e,t,s){if(!this._storage)return;const n={version:s||"localCachev1",content:t},i=JSON.stringify(n);try{this._storage.setItem(e,i)}catch(o){throw o}}getStore(e,t){try{if(!this._storage)return}catch(n){return""}t=t||"localCachev1";const s=this._storage.getItem(e);return s&&s.indexOf(t)>=0?JSON.parse(s).content:""}removeStore(e){this._storage.removeItem(e)}}const vt={},St={};function Tt(e){return vt[e]}class It{constructor(e,t){this.data=t||null,this.name=e}}class Pt extends It{constructor(e,t){super("error",{error:e,data:t}),this.error=e}}const xt=new class{constructor(){this._listeners={}}on(e,t){return s=e,n=t,(i=this._listeners)[s]=i[s]||[],i[s].push(n),this;var s,n,i}off(e,t){return function(e,t,s){if(s&&s[e]){const n=s[e].indexOf(t);-1!==n&&s[e].splice(n,1)}}(e,t,this._listeners),this}fire(e,t){if(e instanceof Pt)return console.error(e.error),this;const s="string"==typeof e?new It(e,t||{}):e,n=s.name;if(this._listens(n)){s.target=this;const e=this._listeners[n]?[...this._listeners[n]]:[];for(const t of e)t.call(this,s)}return this}_listens(e){return this._listeners[e]&&this._listeners[e].length>0}};function At(e,t){xt.on(e,t)}function Ct(e,t={}){xt.fire(e,t)}function Ot(e,t){xt.off(e,t)}const Lt="loginStateChanged",Et="loginStateExpire",Ft="loginTypeChanged",Ut="anonymousConverted",Dt="refreshAccessToken";var Rt;!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"}(Rt||(Rt={}));const Mt=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],Nt={"X-SDK-Version":"1.3.5"};function $t(e,t,s){const n=e[t];e[t]=function(t){const i={},o={};s.forEach((s=>{const{data:n,headers:r}=s.call(e,t);Object.assign(i,n),Object.assign(o,r)}));const r=t.data;return r&&(()=>{var e;if(e=r,"[object FormData]"!==Object.prototype.toString.call(e))t.data={...r,...i};else for(const t in i)r.append(t,i[t])})(),t.headers={...t.headers||{},...o},n.call(e,t)}}function jt(){const e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:{...Nt,"x-seqid":e}}}class qt{constructor(e={}){var t;this.config=e,this._reqClass=new yt.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`请求在${this.config.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]}),this._cache=Tt(this.config.env),this._localCache=(t=this.config.env,St[t]),$t(this._reqClass,"post",[jt]),$t(this._reqClass,"upload",[jt]),$t(this._reqClass,"download",[jt])}async post(e){return await this._reqClass.post(e)}async upload(e){return await this._reqClass.upload(e)}async download(e){return await this._reqClass.download(e)}async refreshAccessToken(){let e,t;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{e=await this._refreshAccessTokenPromise}catch(s){t=s}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,t)throw t;return e}async _refreshAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:s,loginTypeKey:n,anonymousUuidKey:i}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(t);let o=this._cache.getStore(s);if(!o)throw new ze({message:"未登录CloudBase"});const r={refresh_token:o},a=await this.request("auth.fetchAccessTokenWithRefreshToken",r);if(a.data.code){const{code:e}=a.data;if("SIGN_PARAM_INVALID"===e||"REFRESH_TOKEN_EXPIRED"===e||"INVALID_REFRESH_TOKEN"===e){if(this._cache.getStore(n)===Rt.ANONYMOUS&&"INVALID_REFRESH_TOKEN"===e){const e=this._cache.getStore(i),t=this._cache.getStore(s),n=await this.send("auth.signInAnonymously",{anonymous_uuid:e,refresh_token:t});return this.setRefreshToken(n.refresh_token),this._refreshAccessToken()}Ct(Et),this._cache.removeStore(s)}throw new ze({code:a.data.code,message:`刷新access token失败:${a.data.code}`})}if(a.data.access_token)return Ct(Dt),this._cache.setStore(e,a.data.access_token),this._cache.setStore(t,a.data.access_token_expire+Date.now()),{accessToken:a.data.access_token,accessTokenExpire:a.data.access_token_expire};a.data.refresh_token&&(this._cache.removeStore(s),this._cache.setStore(s,a.data.refresh_token),this._refreshAccessToken())}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:s}=this._cache.keys;if(!this._cache.getStore(s))throw new ze({message:"refresh token不存在,登录状态异常"});let n=this._cache.getStore(e),i=this._cache.getStore(t),o=!0;return this._shouldRefreshAccessTokenHook&&!(await this._shouldRefreshAccessTokenHook(n,i))&&(o=!1),(!n||!i||i{e.wxOpenId&&e.wxPublicId&&(t=!0)})),{users:s,hasPrimaryUid:t}}setPrimaryUid(e){return this._request.send("auth.setPrimaryUid",{uid:e})}unlink(e){return this._request.send("auth.unlink",{platform:e})}async update(e){const{nickName:t,gender:s,avatarUrl:n,province:i,country:o,city:r}=e,{data:a}=await this._request.send("auth.updateUserInfo",{nickName:t,gender:s,avatarUrl:n,province:i,country:o,city:r});this.setLocalUserInfo(a)}async refresh(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setUserInfo(){const{userInfoKey:e}=this._cache.keys,t=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((e=>{this[e]=t[e]})),this.location={country:t.country,province:t.province,city:t.city}}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e),this.setUserInfo()}}class Wt{constructor(e){if(!e)throw new ze({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=Tt(e);const{refreshTokenKey:t,accessTokenKey:s,accessTokenExpireKey:n}=this._cache.keys,i=this._cache.getStore(t),o=this._cache.getStore(s),r=this._cache.getStore(n);this.credential={refreshToken:i,accessToken:o,accessTokenExpire:r},this.user=new zt(e)}get isAnonymousAuth(){return this.loginType===Rt.ANONYMOUS}get isCustomAuth(){return this.loginType===Rt.CUSTOM}get isWeixinAuth(){return this.loginType===Rt.WECHAT||this.loginType===Rt.WECHAT_OPEN||this.loginType===Rt.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}class Jt extends Ht{async signIn(){this._cache.updatePersistence("local");const{anonymousUuidKey:e,refreshTokenKey:t}=this._cache.keys,s=this._cache.getStore(e)||void 0,n=this._cache.getStore(t)||void 0,i=await this._request.send("auth.signInAnonymously",{anonymous_uuid:s,refresh_token:n});if(i.uuid&&i.refresh_token){this._setAnonymousUUID(i.uuid),this.setRefreshToken(i.refresh_token),await this._request.refreshAccessToken(),Ct(Lt),Ct(Ft,{env:this.config.env,loginType:Rt.ANONYMOUS,persistence:"local"});const e=new Wt(this.config.env);return await e.user.refresh(),e}throw new ze({message:"匿名登录失败"})}async linkAndRetrieveDataWithTicket(e){const{anonymousUuidKey:t,refreshTokenKey:s}=this._cache.keys,n=this._cache.getStore(t),i=this._cache.getStore(s),o=await this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:n,refresh_token:i,ticket:e});if(o.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(o.refresh_token),await this._request.refreshAccessToken(),Ct(Ut,{env:this.config.env}),Ct(Ft,{loginType:Rt.CUSTOM,persistence:"local"}),{credential:{refreshToken:o.refresh_token}};throw new ze({message:"匿名转化失败"})}_setAnonymousUUID(e){const{anonymousUuidKey:t,loginTypeKey:s}=this._cache.keys;this._cache.removeStore(t),this._cache.setStore(t,e),this._cache.setStore(s,Rt.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}class Vt extends Ht{async signIn(e){if("string"!=typeof e)throw new ze({code:"PARAM_ERROR",message:"ticket must be a string"});const{refreshTokenKey:t}=this._cache.keys,s=await this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(t)||""});if(s.refresh_token)return this.setRefreshToken(s.refresh_token),await this._request.refreshAccessToken(),Ct(Lt),Ct(Ft,{env:this.config.env,loginType:Rt.CUSTOM,persistence:this.config.persistence}),await this.refreshUserInfo(),new Wt(this.config.env);throw new ze({message:"自定义登录失败"})}}class Yt extends Ht{async signIn(e,t){if("string"!=typeof e)throw new ze({code:"PARAM_ERROR",message:"email must be a string"});const{refreshTokenKey:s}=this._cache.keys,n=await this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:t,refresh_token:this._cache.getStore(s)||""}),{refresh_token:i,access_token:o,access_token_expire:r}=n;if(i)return this.setRefreshToken(i),o&&r?this.setAccessToken(o,r):await this._request.refreshAccessToken(),await this.refreshUserInfo(),Ct(Lt),Ct(Ft,{env:this.config.env,loginType:Rt.EMAIL,persistence:this.config.persistence}),new Wt(this.config.env);throw n.code?new ze({code:n.code,message:`邮箱登录失败: ${n.message}`}):new ze({message:"邮箱登录失败"})}async activate(e){return this._request.send("auth.activateEndUserMail",{token:e})}async resetPasswordWithToken(e,t){return this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:t})}}class Qt extends Ht{async signIn(e,t){if("string"!=typeof e)throw new ze({code:"PARAM_ERROR",message:"username must be a string"});"string"!=typeof t&&(t="",console.warn("password is empty"));const{refreshTokenKey:s}=this._cache.keys,n=await this._request.send("auth.signIn",{loginType:Rt.USERNAME,username:e,password:t,refresh_token:this._cache.getStore(s)||""}),{refresh_token:i,access_token_expire:o,access_token:r}=n;if(i)return this.setRefreshToken(i),r&&o?this.setAccessToken(r,o):await this._request.refreshAccessToken(),await this.refreshUserInfo(),Ct(Lt),Ct(Ft,{env:this.config.env,loginType:Rt.USERNAME,persistence:this.config.persistence}),new Wt(this.config.env);throw n.code?new ze({code:n.code,message:`用户名密码登录失败: ${n.message}`}):new ze({message:"用户名密码登录失败"})}}class Xt{constructor(e){this.config=e,this._cache=Tt(e.env),this._request=Kt(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),At(Ft,this._onLoginTypeChanged)}get currentUser(){const e=this.hasLoginState();return e&&e.user||null}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}anonymousAuthProvider(){return new Jt(this.config)}customAuthProvider(){return new Vt(this.config)}emailAuthProvider(){return new Yt(this.config)}usernameAuthProvider(){return new Qt(this.config)}async signInAnonymously(){return new Jt(this.config).signIn()}async signInWithEmailAndPassword(e,t){return new Yt(this.config).signIn(e,t)}signInWithUsernameAndPassword(e,t){return new Qt(this.config).signIn(e,t)}async linkAndRetrieveDataWithTicket(e){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new Jt(this.config)),At(Ut,this._onAnonymousConverted),await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)}async signOut(){if(this.loginType===Rt.ANONYMOUS)throw new ze({message:"匿名用户不支持登出操作"});const{refreshTokenKey:e,accessTokenKey:t,accessTokenExpireKey:s}=this._cache.keys,n=this._cache.getStore(e);if(!n)return;const i=await this._request.send("auth.logout",{refresh_token:n});return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.removeStore(s),Ct(Lt),Ct(Ft,{env:this.config.env,loginType:Rt.NULL,persistence:this.config.persistence}),i}async signUpWithEmailAndPassword(e,t){return this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:t})}async sendPasswordResetEmail(e){return this._request.send("auth.sendPasswordResetEmail",{email:e})}onLoginStateChanged(e){At(Lt,(()=>{const t=this.hasLoginState();e.call(this,t)}));const t=this.hasLoginState();e.call(this,t)}onLoginStateExpired(e){At(Et,e.bind(this))}onAccessTokenRefreshed(e){At(Dt,e.bind(this))}onAnonymousConverted(e){At(Ut,e.bind(this))}onLoginTypeChanged(e){At(Ft,(()=>{const t=this.hasLoginState();e.call(this,t)}))}async getAccessToken(){return{accessToken:(await this._request.getAccessToken()).accessToken,env:this.config.env}}hasLoginState(){const{refreshTokenKey:e}=this._cache.keys;return this._cache.getStore(e)?new Wt(this.config.env):null}async isUsernameRegistered(e){if("string"!=typeof e)throw new ze({code:"PARAM_ERROR",message:"username must be a string"});const{data:t}=await this._request.send("auth.isUsernameRegistered",{username:e});return t&&t.isRegistered}getLoginState(){return Promise.resolve(this.hasLoginState())}async signInWithTicket(e){return new Vt(this.config).signIn(e)}shouldRefreshAccessToken(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then((e=>e.code?e:{...e.data,requestId:e.seqId}))}getAuthHeader(){const{refreshTokenKey:e,accessTokenKey:t}=this._cache.keys,s=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(t)+"/@@/"+s}}_onAnonymousConverted(e){const{env:t}=e.data;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(e){const{loginType:t,persistence:s,env:n}=e.data;n===this.config.env&&(this._cache.updatePersistence(s),this._cache.setStore(this._cache.keys.loginTypeKey,t))}}const Gt=function(e,t){t=t||pt();const s=Kt(this.config.env),{cloudPath:n,filePath:i,onUploadProgress:o,fileType:r="image"}=e;return s.send("storage.getUploadMetadata",{path:n}).then((e=>{const{data:{url:a,authorization:c,token:l,fileId:u,cosFileId:h},requestId:d}=e,p={key:n,signature:c,"x-cos-meta-fileid":h,success_action_status:"201","x-cos-security-token":l};s.upload({url:a,data:p,file:i,name:n,fileType:r,onUploadProgress:o}).then((e=>{201===e.statusCode?t(null,{fileID:u,requestId:d}):t(new ze({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${e.data}`}))})).catch((e=>{t(e)}))})).catch((e=>{t(e)})),t.promise},Zt=function(e,t){t=t||pt();const s=Kt(this.config.env),{cloudPath:n}=e;return s.send("storage.getUploadMetadata",{path:n}).then((e=>{t(null,e)})).catch((e=>{t(e)})),t.promise},es=function({fileList:e},t){if(t=t||pt(),!e||!Array.isArray(e))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};for(let n of e)if(!n||"string"!=typeof n)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"};const s={fileid_list:e};return Kt(this.config.env).send("storage.batchDeleteFile",s).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},ts=function({fileList:e},t){t=t||pt(),e&&Array.isArray(e)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});let s=[];for(let i of e)"object"==typeof i?(i.hasOwnProperty("fileID")&&i.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),s.push({fileid:i.fileID,max_age:i.maxAge})):"string"==typeof i?s.push({fileid:i}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"});const n={file_list:s};return Kt(this.config.env).send("storage.batchGetDownloadUrl",n).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},ss=async function({fileID:e},t){const s=(await ts.call(this,{fileList:[{fileID:e,maxAge:600}]})).fileList[0];if("SUCCESS"!==s.code)return t?t(s):new Promise((e=>{e(s)}));const n=Kt(this.config.env);let i=s.download_url;if(i=encodeURI(i),!t)return n.download({url:i});t(await n.download({url:i}))},ns=function({name:e,data:t,query:s,parse:n,search:i},o){const r=o||pt();let a;try{a=t?JSON.stringify(t):""}catch(l){return Promise.reject(l)}if(!e)return Promise.reject(new ze({code:"PARAM_ERROR",message:"函数名不能为空"}));const c={inQuery:s,parse:n,search:i,function_name:e,request_data:a};return Kt(this.config.env).send("functions.invokeFunction",c).then((e=>{if(e.code)r(null,e);else{let s=e.data.response_data;if(n)r(null,{result:s,requestId:e.requestId});else try{s=JSON.parse(e.data.response_data),r(null,{result:s,requestId:e.requestId})}catch(t){r(new ze({message:"response data must be json"}))}}return r.promise})).catch((e=>{r(e)})),r.promise},is={timeout:15e3,persistence:"session"},os={};class rs{constructor(e){this.config=e||this.config,this.authObj=void 0}init(e){switch(yt.adapter||(this.requestClient=new yt.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:`请求在${(e.timeout||5e3)/1e3}s内未完成,已中断`})),this.config={...is,...e},!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 rs(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;const t=e||yt.adapter.primaryStorage||is.persistence;var s;return t!==this.config.persistence&&(this.config.persistence=t),function(e){const{env:t}=e;vt[t]=new bt(e),St[t]=new bt({...e,persistence:"local"})}(this.config),s=this.config,Bt[s.env]=new qt(s),this.authObj=new Xt(this.config),this.authObj}on(e,t){return At.apply(this,[e,t])}off(e,t){return Ot.apply(this,[e,t])}callFunction(e,t){return ns.apply(this,[e,t])}deleteFile(e,t){return es.apply(this,[e,t])}getTempFileURL(e,t){return ts.apply(this,[e,t])}downloadFile(e,t){return ss.apply(this,[e,t])}uploadFile(e,t){return Gt.apply(this,[e,t])}getUploadMetadata(e,t){return Zt.apply(this,[e,t])}registerExtension(e){os[e.name]=e}async invokeExtension(e,t){const s=os[e];if(!s)throw new ze({message:`扩展${e} 必须先注册`});return await s.invoke(t,this)}useAdapters(e){const{adapter:t,runtime:s}=function(e){const t=(s=e,"[object Array]"===Object.prototype.toString.call(s)?e:[e]);var s;for(const n of t){const{isMatch:e,genAdapter:t,runtime:s}=n;if(e())return{adapter:t(),runtime:s}}}(e)||{};t&&(yt.adapter=t),s&&(yt.runtime=s)}}var as=new rs;function cs(e,t,s){void 0===s&&(s={});var n=/\?/.test(t),i="";for(var o in s)""===i?!n&&(t+="?"):i+="&",i+=o+"="+encodeURIComponent(s[o]);return/^http(s)?:\/\//.test(t+=i)?t:""+e+t}class ls{post(e){const{url:t,data:s,headers:n}=e;return new Promise(((e,i)=>{We.request({url:cs("https:",t),data:s,method:"POST",header:n,success(t){e(t)},fail(e){i(e)}})}))}upload(e){return new Promise(((t,s)=>{const{url:n,file:i,data:o,headers:r,fileType:a}=e,c=We.uploadFile({url:cs("https:",n),name:"file",formData:Object.assign({},o),filePath:i,fileType:a,header:r,success(e){const s={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&o.success_action_status&&(s.statusCode=parseInt(o.success_action_status,10)),t(s)},fail(e){s(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((t=>{e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}const us={setItem(e,t){We.setStorageSync(e,t)},getItem:e=>We.getStorageSync(e),removeItem(e){We.removeStorageSync(e)},clear(){We.clearStorageSync()}};var hs={genAdapter:function(){return{root:{},reqClass:ls,localStorage:us,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};as.useAdapters(hs);const ds=as,ps=ds.init;ds.init=function(e){e.env=e.spaceId;const t=ps.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;const s=t.auth;return t.auth=function(e){const t=s.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((e=>{var s;t[e]=(s=t[e],function(e){e=e||{};const{success:t,fail:n,complete:i}=He(e);if(!(t||n||i))return s.call(this,e);s.call(this,e).then((e=>{t&&t(e),i&&i(e)}),(e=>{n&&n(e),i&&i(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var fs=ds,gs=class extends it{getAccessToken(){return new Promise(((e,t)=>{const s="Anonymous_Access_token";this.setAccessToken(s),e(s)}))}setupRequest(e,t){const s=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};"auth"!==t&&(s.token=this.accessToken,n["x-basement-token"]=this.accessToken),n["x-serverless-sign"]=tt(s,this.config.clientSecret);const i=et();n["x-client-info"]=encodeURIComponent(JSON.stringify(i));const{token:o}=Ve();return n["x-client-token"]=o,{url:this.config.requestUrl,method:"POST",data:s,dataType:"json",header:JSON.parse(JSON.stringify(n))}}uploadFileToOSS({url:e,formData:t,name:s,filePath:n,fileType:i,onUploadProgress:o}){return new Promise(((r,a)=>{const c=this.adapter.uploadFile({url:e,formData:t,name:s,filePath:n,fileType:i,success(e){e&&e.statusCode<400?r(e):a(new ze({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){a(new ze({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof o&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((e=>{o({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}uploadFile({filePath:e,cloudPath:t,fileType:s="image",onUploadProgress:n}){if(!t)throw new ze({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});let i;return this.getOSSUploadOptionsFromPath({cloudPath:t}).then((t=>{const{url:o,formData:r,name:a}=t.result;i=t.result.fileUrl;const c={url:o,formData:r,name:a,filePath:e,fileType:s};return this.uploadFileToOSS(Object.assign({},c,{onUploadProgress:n}))})).then((()=>this.reportOSSUpload({cloudPath:t}))).then((t=>new Promise(((s,n)=>{t.success?s({success:!0,filePath:e,fileID:i}):n(new ze({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(t)).then((e=>{if(e.success)return e.result;throw new ze({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}getTempFileURL({fileList:e,maxAge:t}={}){if(!Array.isArray(e)||0===e.length)throw new ze({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const s={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e,maxAge:t})};return this.request(this.setupRequest(s)).then((e=>{if(e.success)return{fileList:e.result.fileList.map((e=>({fileID:e.fileID,tempFileURL:e.tempFileURL})))};throw new ze({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}},ms={init(e){const t=new gs(e),s={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return s},t.customAuth=t.auth,t}},ys=te((function(e,t){e.exports=ne.enc.Hex}));function _s(e="",t={}){const{data:s,functionName:n,method:i,headers:o,signHeaderKeys:r=[],config:a}=t,c=Date.now(),l="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),u=Object.assign({},o,{"x-from-app-id":a.spaceAppId,"x-from-env-id":a.spaceId,"x-to-env-id":a.spaceId,"x-from-instance-id":c,"x-from-function-name":n,"x-client-timestamp":c,"x-alipay-source":"client","x-request-id":l,"x-alipay-callid":l,"x-trace-id":l}),h=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(r),[d="",p=""]=e.split("?")||[],f=function(e){const t=e.signedHeaders.join(";"),s=e.signedHeaders.map((t=>`${t.toLowerCase()}:${e.headers[t]}\n`)).join(""),n=ht(e.body).toString(ys),i=`${e.method.toUpperCase()}\n${e.path}\n${e.query}\n${s}\n${t}\n${n}\n`,o=ht(i).toString(ys),r=`HMAC-SHA256\n${e.timestamp}\n${o}\n`,a=dt(r,e.secretKey).toString(ys);return`HMAC-SHA256 Credential=${e.secretId}, SignedHeaders=${t}, Signature=${a}`}({path:d,query:p,method:i,headers:u,timestamp:c,body:JSON.stringify(s),secretId:a.accessKey,secretKey:a.secretKey,signedHeaders:h.sort()});return{url:`${a.endpoint}${e}`,headers:Object.assign({},u,{Authorization:f})}}function ws({url:e,data:t,method:s="POST",headers:n={}}){return new Promise(((i,o)=>{We.request({url:e,method:s,data:t,header:n,dataType:"json",complete:(e={})=>{const t=n["x-trace-id"]||"";if(!e.statusCode||e.statusCode>=400){const{message:s,errMsg:n,trace_id:i}=e.data||{};return o(new ze({code:"SYS_ERR",message:s||n||"request:fail",requestId:i||t}))}i({status:e.statusCode,data:e.data,headers:e.header,requestId:t})}})}))}function ks(e,t){const{path:s,data:n,method:i="GET"}=e,{url:o,headers:r}=_s(s,{functionName:"",data:n,method:i,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t});return ws({url:o,data:n,method:i,headers:r}).then((e=>{const t=e.data||{};if(!t.success)throw new ze({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((e=>{throw new ze({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function bs(e=""){const t=e.trim().replace(/^cloud:\/\//,""),s=t.indexOf("/");if(s<=0)throw new ze({code:"INVALID_PARAM",message:"fileID不合法"});const n=t.substring(0,s),i=t.substring(s+1);return n!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),i}function vs(e=""){return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}var Ss={init:e=>{e.provider="alipay";const t=new class{constructor(e){if(["spaceId","spaceAppId","accessKey","secretKey"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),e.endpoint){if("string"!=typeof e.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(e.endpoint))throw new Error("endpoint must start with https://");e.endpoint=e.endpoint.replace(/\/$/,"")}this.config=Object.assign({},e,{endpoint:e.endpoint||`https://${e.spaceId}.api-hz.cloudbasefunction.cn`})}callFunction(e){return function(e,t){const{name:s,data:n}=e,i="POST",{url:o,headers:r}=_s("/functions/invokeFunction",{functionName:s,data:n,method:i,headers:{"x-to-function-name":s},signHeaderKeys:["x-to-function-name"],config:t});return ws({url:o,data:n,method:i,headers:r}).then((e=>({errCode:0,success:!0,requestId:e.requestId,result:e.data}))).catch((e=>{throw new ze({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}uploadFileToOSS({url:e,filePath:t,fileType:s,formData:n,onUploadProgress:i}){return new Promise(((o,r)=>{const a=We.uploadFile({url:e,filePath:t,fileType:s,formData:n,name:"file",success(e){e&&e.statusCode<400?o(e):r(new ze({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){r(new ze({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof i&&a&&"function"==typeof a.onProgressUpdate&&a.onProgressUpdate((e=>{i({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}async uploadFile({filePath:e,cloudPath:t="",fileType:s="image",onUploadProgress:n}){if("string"!==ue(t))throw new ze({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new ze({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new ze({code:"INVALID_PARAM",message:"cloudPath不合法"});const i=await ks({path:"/".concat(t.replace(/^\//,""),"?post_url")},this.config),{file_id:o,upload_url:r,form_data:a}=i,c=a&&a.reduce(((e,t)=>(e[t.key]=t.value,e)),{});return this.uploadFileToOSS({url:r,filePath:e,fileType:s,formData:c,onUploadProgress:n}).then((()=>({fileID:o})))}async getTempFileURL({fileList:e}){return new Promise(((t,s)=>{(!e||e.length<0)&&s(new ze({errCode:"INVALID_PARAM",errMsg:"fileList不能为空数组"})),e.length>50&&s(new ze({errCode:"INVALID_PARAM",errMsg:"fileList数组长度不能超过50"}));const n=[];for(const i of e){"string"!==ue(i)&&s(new ze({errCode:"INVALID_PARAM",errMsg:"fileList的元素必须是非空的字符串"}));const e=bs.call(this,i);n.push({file_id:e,expire:600})}ks({path:"/?download_url",data:{file_list:n},method:"POST"},this.config).then((e=>{const{file_list:s=[]}=e;t({fileList:s.map((e=>({fileID:vs.call(this,e.file_id),tempFileURL:e.download_url})))})})).catch((e=>s(e)))}))}}(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function Ts({data:e}){let t;t=et();const s=JSON.parse(JSON.stringify(e||{}));if(Object.assign(s,{clientInfo:t}),!s.uniIdToken){const{token:e}=Ve();e&&(s.uniIdToken=e)}return s}const Is=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}];var Ps=/[\\^$.*+?()[\]{}|]/g,xs=RegExp(Ps.source);function As(e,t,s){return e.replace(new RegExp((n=t)&&xs.test(n)?n.replace(Ps,"\\$&"):n,"g"),s);var n}const Cs=2e4,Os={code:20101,message:"Invalid client"};function Ls(e){const{errSubject:t,subject:s,errCode:n,errMsg:i,code:o,message:r,cause:a}=e||{};return new ze({subject:t||s||"uni-secure-network",code:n||o||Cs,message:i||r,cause:a})}let Es;function Fs({secretType:e}={}){return"request"===e||"response"===e||"both"===e}function Us({functionName:e,result:t,logPvd:s}){}function Ds(e){const t=e.callFunction,s=function(s){const n=s.name;s.data=Ts.call(e,{data:s.data});const i={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay"}[this.config.provider],o=Fs(s)||false;return t.call(this,s).then((e=>(e.errCode=0,!o&&Us.call(this,{functionName:n,result:e,logPvd:i}),Promise.resolve(e))),(e=>(!o&&Us.call(this,{functionName:n,result:e,logPvd:i}),e&&e.message&&(e.message=function({message:e="",extraInfo:t={},formatter:s=[]}={}){for(let n=0;ns.provider===e&&s.spaceId===t));return n&&n.config}({provider:e,spaceId:t});if(!a||!a.accessControl||!a.accessControl.enable)return!1;const c=a.accessControl.function||{},l=Object.keys(c);if(0===l.length)return!0;const u=function(e,t){let s,n,i;for(let o=0;oe.trim())).indexOf(t)>-1&&(n=r):i=r:s=r}return s||n||i}(l,s);if(!u)return!1;if((c[u]||[]).find(((e={})=>e.appId===n&&(e.platform||"").toLowerCase()===r.toLowerCase())))return!0;throw console.error(`此应用[appId: ${n}, platform: ${r}]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client`),Ls(Os)}({provider:n,spaceId:i,functionName:o})?new Es({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(s.bind(e))(t):r(t),Object.defineProperty(a,"result",{get:()=>(console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),a.then((e=>("undefined"!=typeof UTSJSONObject&&(e.result=new UTSJSONObject(e.result)),e)))}}Es=class{constructor(){throw Ls({message:"Platform web is not supported by secure network"})}};const Rs=Symbol("CLIENT_DB_INTERNAL");function Ms(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=Rs,e.inspect=null,e.__v_raw=void 0,new Proxy(e,{get(e,s,n){if("_uniClient"===s)return null;if("symbol"==typeof s)return e[s];if(s in e||"string"!=typeof s){const t=e[s];return"function"==typeof t?t.bind(e):t}return t.get(e,s,n)}})}function Ns(e){return{on:(t,s)=>{e[t]=e[t]||[],e[t].indexOf(s)>-1||e[t].push(s)},off:(t,s)=>{e[t]=e[t]||[];const n=e[t].indexOf(s);-1!==n&&e[t].splice(n,1)}}}const $s=["db.Geo","db.command","command.aggregate"];function js(e,t){return $s.indexOf(`${e}.${t}`)>-1}function qs(e){switch(ue(e=Je(e))){case"array":return e.map((e=>qs(e)));case"object":return e._internalType===Rs||Object.keys(e).forEach((t=>{e[t]=qs(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function Bs(e){return e&&e.content&&e.content.$method}class Ks{constructor(e,t,s){this.content=e,this.prevStage=t||null,this.udb=null,this._database=s}toJSON(){let e=this;const t=[e.content];for(;e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((e=>({$method:e.$method,$param:qs(e.$param)})))}}toString(){return JSON.stringify(this.toJSON())}getAction(){const e=this.toJSON().$db.find((e=>"action"===e.$method));return e&&e.$param&&e.$param[0]}getCommand(){return{$db:this.toJSON().$db.filter((e=>"action"!==e.$method))}}get isAggregate(){let e=this;for(;e;){const t=Bs(e),s=Bs(e.prevStage);if("aggregate"===t&&"collection"===s||"pipeline"===t)return!0;e=e.prevStage}return!1}get isCommand(){let e=this;for(;e;){if("command"===Bs(e))return!0;e=e.prevStage}return!1}get isAggregateCommand(){let e=this;for(;e;){const t=Bs(e),s=Bs(e.prevStage);if("aggregate"===t&&"command"===s)return!0;e=e.prevStage}return!1}getNextStageFn(e){const t=this;return function(){return Hs({$method:e,$param:qs(Array.from(arguments))},t,t._database)}}get count(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}get remove(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}get(){return this._send("get",Array.from(arguments))}get add(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}update(){return this._send("update",Array.from(arguments))}end(){return this._send("end",Array.from(arguments))}get set(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}_send(e,t){const s=this.getAction(),n=this.getCommand();return n.$db.push({$method:e,$param:qs(t)}),this._database._callCloudFunction({action:s,command:n})}}function Hs(e,t,s){return Ms(new Ks(e,t,s),{get(e,t){let n="db";return e&&e.content&&(n=e.content.$method),js(n,t)?Hs({$method:t},e,s):function(){return Hs({$method:t,$param:qs(Array.from(arguments))},e,s)}}})}function zs({path:e,method:t}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...e.map((e=>({$method:e}))),{$method:t,$param:this.param}]}}toString(){return JSON.stringify(this.toJSON())}}}function Ws(e,t={}){return Ms(new e(t),{get:(e,t)=>js("db",t)?Hs({$method:t},null,e):function(){return Hs({$method:t,$param:qs(Array.from(arguments))},null,e)}})}class Js extends class{constructor({uniClient:e={},isJQL:t=!1}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e._isDefault&&(this._dbCallBacks=ve("_globalUniCloudDatabaseCallback")),t||(this.auth=Ns(this._authCallBacks)),this._isJQL=t,Object.assign(this,Ns(this._dbCallBacks)),this.env=Ms({},{get:(e,t)=>({$env:t})}),this.Geo=Ms({},{get:(e,t)=>zs({path:["Geo"],method:t})}),this.serverDate=zs({path:[],method:"serverDate"}),this.RegExp=zs({path:[],method:"RegExp"})}getCloudEnv(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}_callback(e,t){const s=this._dbCallBacks;s[e]&&s[e].forEach((e=>{e(...t)}))}_callbackAuth(e,t){const s=this._authCallBacks;s[e]&&s[e].forEach((e=>{e(...t)}))}multiSend(){const e=Array.from(arguments),t=e.map((e=>{const t=e.getAction(),s=e.getCommand();if("getTemp"!==s.$db[s.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:s}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}{_parseResult(e){return this._isJQL?e.result:e}_callCloudFunction({action:e,command:t,multiCommand:s,queryList:n}){function i(e,t){if(s&&n)for(let s=0;sxe(Ae(r,"complete"),e))).then((()=>(i(null,e),je(Le,{type:Ue,content:e}),Promise.reject(e))))}const c=xe(Ae(r,"invoke")),l=this._uniClient;return c.then((()=>l.callFunction({name:"DCloud-clientDB",type:"CLIENT_DB",data:{action:e,command:t,multiCommand:s}}))).then((e=>{const{code:t,message:s,token:n,tokenExpired:c,systemInfo:l=[]}=e.result;if(l)for(let i=0;i(console.warn(s),n)})}}return h=e,xe(Ae(r,"success"),h).then((()=>xe(Ae(r,"complete"),h))).then((()=>{i(h,null);const e=o._parseResult(h);return je(Le,{type:Ue,content:e}),Promise.resolve(e)}));var h}),(e=>(/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),a(new ze({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId})))))}}const Vs="token无效,跳转登录页面",Ys="token过期,跳转登录页面",Qs={TOKEN_INVALID_TOKEN_EXPIRED:Ys,TOKEN_INVALID_INVALID_CLIENTID:Vs,TOKEN_INVALID:Vs,TOKEN_INVALID_WRONG_TOKEN:Vs,TOKEN_INVALID_ANONYMOUS_USER:Vs},Xs={"uni-id-token-expired":Ys,"uni-id-check-token-failed":Vs,"uni-id-token-not-exist":Vs,"uni-id-check-device-feature-failed":Vs};function Gs(e,t){let s="";return s=e?`${e}/${t}`:t,s.replace(/^\//,"")}function Zs(e=[],t=""){const s=[],n=[];return e.forEach((e=>{!0===e.needLogin?s.push(Gs(t,e.path)):!1===e.needLogin&&n.push(Gs(t,e.path))})),{needLoginPage:s,notNeedLoginPage:n}}function en(e){return e.split("?")[0].replace(/^\//,"")}function tn(){return function(e){let t=e&&e.$page&&e.$page.fullPath||"";return t?("/"!==t.charAt(0)&&(t="/"+t),t):t}(function(){const e=s();return e[e.length-1]}())}function sn(){return en(tn())}function nn(e="",t={}){if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;const s=t.list,n=en(e);return s.some((e=>e.pagePath===n))}const on=!!ee.uniIdRouter,{loginPage:rn,routerNeedLogin:an,resToLogin:cn,needLoginPage:ln,notNeedLoginPage:un,loginPageInTabBar:hn}=function({pages:e=[],subPackages:t=[],uniIdRouter:s={},tabBar:n={}}=ee){const{loginPage:i,needLogin:o=[],resToLogin:r=!0}=s,{needLoginPage:a,notNeedLoginPage:c}=Zs(e),{needLoginPage:l,notNeedLoginPage:u}=function(e=[]){const t=[],s=[];return e.forEach((e=>{const{root:n,pages:i=[]}=e,{needLoginPage:o,notNeedLoginPage:r}=Zs(i,n);t.push(...o),s.push(...r)})),{needLoginPage:t,notNeedLoginPage:s}}(t);return{loginPage:i,routerNeedLogin:o,resToLogin:r,needLoginPage:[...a,...l],notNeedLoginPage:[...c,...u],loginPageInTabBar:nn(i,n)}}();if(ln.indexOf(rn)>-1)throw new Error(`Login page [${rn}] should not be "needLogin", please check your pages.json`);function dn(e){const t=sn();if("/"===e.charAt(0))return e;const[s,n]=e.split("?"),i=s.replace(/^\//,"").split("/"),o=t.split("/");o.pop();for(let r=0;r-1?n+`&uniIdRedirectUrl=${encodeURIComponent(i)}`:n+`?uniIdRedirectUrl=${encodeURIComponent(i)}`:n);var n,i;hn?"navigateTo"!==e&&"redirectTo"!==e||(e="switchTab"):"switchTab"===e&&(e="navigateTo");const o={navigateTo:_,redirectTo:w,switchTab:k,reLaunch:b};setTimeout((()=>{o[e]({url:s})}))}function gn({url:e}={}){const t={abortLoginPageJump:!1,autoToLoginPage:!1},s=function(){const{token:e,tokenExpired:t}=Ve();let s;if(e){if(t-1)&&(ln.indexOf(t)>-1||an.some((t=>{return s=e,new RegExp(t).test(s);var s})))}(e)&&s){if(s.uniIdRedirectUrl=e,Me(Ee).length>0)return setTimeout((()=>{je(Ee,s)}),0),t.abortLoginPageJump=!0,t;t.autoToLoginPage=!0}return t}function mn(){!function(){const e=tn(),{abortLoginPageJump:t,autoToLoginPage:s}=gn({url:e});t||s&&fn({api:"redirectTo",redirect:e})}();const e=["navigateTo","redirectTo","reLaunch","switchTab"];for(let t=0;t{const{type:t,content:s}=e;let n=!1;switch(t){case"cloudobject":n=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in Xs}(s);break;case"clientdb":n=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in Qs}(s)}n&&function(e={}){const t=Me(Ee);Ke().then((()=>{const s=tn();if(s&&pn({redirect:s}))return t.length>0?je(Ee,Object.assign({uniIdRedirectUrl:s},e)):void(rn&&fn({api:"navigateTo",redirect:s}))}))}(s)}))}function _n(e){var t;(t=e).onResponse=function(e){Ne(Le,e)},t.offResponse=function(e){$e(Le,e)},function(e){e.onNeedLogin=function(e){Ne(Ee,e)},e.offNeedLogin=function(e){$e(Ee,e)},on&&(ve("_globalUniCloudStatus").needLoginInit||(ve("_globalUniCloudStatus").needLoginInit=!0,Ke().then((()=>{mn.call(e)})),cn&&yn.call(e)))}(e),function(e){e.onRefreshToken=function(e){Ne(Fe,e)},e.offRefreshToken=function(e){$e(Fe,e)}}(e)}let wn;const kn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bn=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function vn(){const e=Ve().token||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let s;try{s=JSON.parse((n=t[1],decodeURIComponent(wn(n).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(i){throw new Error("获取当前用户信息出错,详细错误信息为:"+i.message)}var n;return s.tokenExpired=1e3*s.exp,delete s.exp,delete s.iat,s}wn="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 s,n,i="",o=0;o>16&255):64===n?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}:atob;var Sn=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(te((function(s,n){Object.defineProperty(n,"__esModule",{value:!0});const o="chooseAndUploadFile:ok",r="chooseAndUploadFile:fail";function a(e,t){return e.tempFiles.forEach(((e,s)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+s+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function c(e,t,{onChooseFile:s,onUploadProgress:n}){return t.then((e=>{if(s){const t=s(e);if(void 0!==t)return Promise.resolve(t).then((t=>void 0===t?e:t))}return e})).then((t=>!1===t?{errMsg:o,tempFilePaths:[],tempFiles:[]}:function(e,t,s=5,n){(t=Object.assign({},t)).errMsg=o;const i=t.tempFiles,r=i.length;let a=0;return new Promise((o=>{for(;a=r)return void(!i.find((e=>!e.url&&!e.errMsg))&&o(t));const l=i[s];e.uploadFile({provider:l.provider,filePath:l.path,cloudPath:l.cloudPath,fileType:l.fileType,cloudPathAsRealPath:l.cloudPathAsRealPath,onUploadProgress(e){e.index=s,e.tempFile=l,e.tempFilePath=l.path,n&&n(e)}}).then((e=>{l.url=e.fileID,s{l.errMsg=e.errMsg||e.message,s{e({count:s,sizeType:n,sourceType:i,extension:o,success(e){t(a(e,"image"))},fail(e){c({errMsg:e.errMsg.replace("chooseImage:fail",r)})}})}))}(n),n):"video"===n.type?c(s,function(e){const{camera:s,compressed:n,maxDuration:i,sourceType:o=["album","camera"],extension:c}=e;return new Promise(((e,l)=>{t({camera:s,compressed:n,maxDuration:i,sourceType:o,extension:c,success(t){const{tempFilePath:s,duration:n,size:i,height:o,width:r}=t;e(a({errMsg:"chooseVideo:ok",tempFilePaths:[s],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:s,size:i,type:t.tempFile&&t.tempFile.type||"",width:r,height:o,duration:n,fileType:"video",cloudPath:""}]},"video"))},fail(e){l({errMsg:e.errMsg.replace("chooseVideo:fail",r)})}})}))}(n),n):c(s,function(e){const{count:t,extension:s}=e;return new Promise(((e,n)=>{let o=i;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(o=wx.chooseMessageFile),"function"!=typeof o)return n({errMsg:r+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});o({type:"all",count:t,extension:s,success(t){e(a(t))},fail(e){n({errMsg:e.errMsg.replace("chooseFile:fail",r)})}})}))}(n),n)}}})));function Tn(e){return{props:{localdata:{type:Array,default:()=>[]},options:{type:[Object,Array],default:()=>({})},spaceInfo:{type:Object,default:()=>({})},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:()=>({mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}),created(){this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((()=>{var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{if("manual"===this.loadtime)return;let s=!1;const n=[];for(let i=2;i{this.mixinDatacomLoading=!1;const{data:n,count:i}=s.result;this.getcount&&(this.mixinDatacomPage.count=i),this.mixinDatacomHasMore=n.length{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=e,this.mixinDatacomError=e,s&&s(e)})))},mixinDatacomGet(t={}){let s;t=t||{},s="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);const n=t.action||this.action;n&&(s=s.action(n));const i=t.collection||this.collection;s=Array.isArray(i)?s.collection(...i):s.collection(i);const o=t.where||this.where;o&&Object.keys(o).length&&(s=s.where(o));const r=t.field||this.field;r&&(s=s.field(r));const a=t.foreignKey||this.foreignKey;a&&(s=s.foreignKey(a));const c=t.groupby||this.groupby;c&&(s=s.groupBy(c));const l=t.groupField||this.groupField;l&&(s=s.groupField(l)),!0===(void 0!==t.distinct?t.distinct:this.distinct)&&(s=s.distinct());const u=t.orderby||this.orderby;u&&(s=s.orderBy(u));const h=void 0!==t.pageCurrent?t.pageCurrent:this.mixinDatacomPage.current,d=void 0!==t.pageSize?t.pageSize:this.mixinDatacomPage.size,p=void 0!==t.getcount?t.getcount:this.getcount,f=void 0!==t.gettree?t.gettree:this.gettree,g=void 0!==t.gettreepath?t.gettreepath:this.gettreepath,m={getCount:p},y={limitLevel:void 0!==t.limitlevel?t.limitlevel:this.limitlevel,startWith:void 0!==t.startwith?t.startwith:this.startwith};return f&&(m.getTree=y),g&&(m.getTreePath=y),s=s.skip(d*(h-1)).limit(d).get(m),s}}}}function In(e){return ve("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}async function Pn({openid:e,callLoginByWeixin:t=!1}={}){throw In(this),new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `web`")}async function xn(e){const t=In(this);return t.initPromise||(t.initPromise=Pn.call(this,e).then((e=>e)).catch((e=>{throw delete t.initPromise,e}))),t.initPromise}function An(e){const t={getSystemInfo:v,getPushClientId:S};return function(s){return new Promise(((n,i)=>{t[e]({...s,success(e){n(e)},fail(e){i(e)}})}))}}class Cn extends class{constructor(){this._callback={}}addListener(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}on(e,t){return this.addListener(e,t)}removeListener(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');const s=this._callback[e];if(!s)return;const n=function(e,t){for(let s=e.length-1;s>=0;s--)if(e[s]===t)return s;return-1}(s,t);s.splice(n,1)}off(e,t){return this.removeListener(e,t)}removeAllListener(e){delete this._callback[e]}emit(e,...t){const s=this._callback[e];if(s)for(let n=0;n{if(!e)throw new Error("Invalid appId, please check the manifest.json file");if(!t)throw new Error("Invalid push client id");this._appId=e,this._pushClientId=t,this._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),this.emit("open"),this._initMessageListener()}),(e=>{throw this.emit("error",e),this.close(),e}))}async open(){return this.init()}_isUniCloudSSE(e){if("receive"!==e.type)return!1;const t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}_receivePushMessage(e){if(!this._isUniCloudSSE(e))return;const t=e&&e.data&&e.data.payload,{action:s,messageId:n,message:i}=t;this._payloadQueue.push({action:s,messageId:n,message:i}),this._consumMessage()}_consumMessage(){for(;;){const e=this._payloadQueue.find((e=>e.messageId===this._currentMessageId+1));if(!e)break;this._currentMessageId++,this._parseMessagePayload(e)}}_parseMessagePayload(e){const{action:t,messageId:s,message:n}=e;"end"===t?this._end({messageId:s,message:n}):"message"===t&&this._appendMessage({messageId:s,message:n})}_appendMessage({messageId:e,message:t}={}){this.emit("message",t)}_end({messageId:e,message:t}={}){this.emit("end",t),this.close()}_initMessageListener(){l(this._uniPushMessageCallback)}_destroy(){u(this._uniPushMessageCallback)}toJSON(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}close(){this._destroy(),this.emit("close")}}const On={tcb:fs,tencent:fs,aliyun:ot,private:ms,alipay:Ss};let Ln=new class{init(e){let t={};const s=On[e.provider];if(!s)throw new Error("未提供正确的provider参数");var n;return t=s.init(e),function(e){e._initPromiseHub||(e._initPromiseHub=new me({createPromise:function(){let t=Promise.resolve();t=new Promise((e=>{setTimeout((()=>{e()}),1)}));const s=e.auth();return t.then((()=>s.getLoginState())).then((e=>e?Promise.resolve():s.signInAnonymously()))}}))}(t),Ds(t),function(e){const t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),(n=t).database=function(e){if(e&&Object.keys(e).length>0)return n.init(e).database();if(this._database)return this._database;const t=Ws(Js,{uniClient:n});return this._database=t,t},n.databaseForJQL=function(e){if(e&&Object.keys(e).length>0)return n.init(e).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;const t=Ws(Js,{uniClient:n,isJQL:!0});return this._databaseForJQL=t,t},function(e){e.getCurrentUserInfo=vn,e.chooseAndUploadFile=Sn.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return Tn(e)}}),e.SSEChannel=Cn,e.initSecureNetworkByWeixin=function(e){return function({openid:t,callLoginByWeixin:s=!1}={}){return xn.call(e,{openid:t,callLoginByWeixin:s})}}(e),e.importObject=function(t){return function(s,n={}){n=function(e,t={}){return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==typeof t.secretMethods&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);const{customUI:i,loadingOptions:l,errorOptions:u,parseSystemError:h}=n,d=!i;return new Proxy({},{get(i,p){switch(p){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function({fn:e,interceptorName:t,getCallbackArgs:s}={}){return async function(...n){const i=s?s({params:n}):{};let o,r;try{return await xe(Ae(t,"invoke"),{...i}),o=await e(...n),await xe(Ae(t,"success"),{...i,result:o}),o}catch(a){throw r=a,await xe(Ae(t,"fail"),{...i,error:r}),r}finally{await xe(Ae(t,"complete"),r?{...i,error:r}:{...i,result:o})}}}({fn:async function i(...f){let g;d&&o({title:l.title,mask:l.mask});const m={name:s,type:"OBJECT",data:{method:p,params:f}};"object"==typeof n.secretMethods&&function(e,t){const s=t.data.method,n=e.secretMethods||{},i=n[s]||n["*"];i&&(t.secretType=i)}(n,m);let y=!1;try{g=await t.callFunction(m)}catch(e){y=!0,g={result:new ze(e)}}const{errSubject:_,errCode:w,errMsg:k,newToken:b}=g.result||{};if(d&&r(),b&&b.token&&b.tokenExpired&&(Ye(b),je(Fe,{...b})),w){let e=k;if(y&&h&&(e=(await h({objectName:s,methodName:p,params:f,errSubject:_,errCode:w,errMsg:k})).errMsg||k),d)if("toast"===u.type)a({title:e,icon:"none"});else{if("modal"!==u.type)throw new Error(`Invalid errorOptions.type: ${u.type}`);{const{confirm:t}=await async function({title:e,content:t,showCancel:s,cancelText:n,confirmText:i}={}){return new Promise(((o,r)=>{c({title:e,content:t,showCancel:s,cancelText:n,confirmText:i,success(e){o(e)},fail(){o({confirm:!1,cancel:!0})}})}))}({title:"提示",content:e,showCancel:u.retry,cancelText:"取消",confirmText:u.retry?"重试":"确定"});if(u.retry&&t)return i(...f)}}const t=new ze({subject:_,code:w,message:k,requestId:g.requestId});throw t.detail=g.result,je(Le,{type:Re,content:t}),t}return je(Le,{type:Re,content:g.result}),g.result},interceptorName:"callObject",getCallbackArgs:function({params:e}={}){return{objectName:s,methodName:p,params:e}}})}})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((e=>{if(!t[e])return;const s=t[e];var n,i;t[e]=function(){return s.apply(t,Array.from(arguments))},t[e]=(n=t[e],i=e,function(e){let t=!1;if("callFunction"===i){const s=e&&e.type||ae;t=s!==ae}const s="callFunction"===i&&!t,o=this._initPromiseHub.exec();e=e||{};const{success:r,fail:a,complete:c}=He(e),l=o.then((()=>t?Promise.resolve():xe(Ae(i,"invoke"),e))).then((()=>n.call(this,e))).then((e=>t?Promise.resolve(e):xe(Ae(i,"success"),e).then((()=>xe(Ae(i,"complete"),e))).then((()=>(s&&je(Le,{type:De,content:e}),Promise.resolve(e))))),(e=>t?Promise.reject(e):xe(Ae(i,"fail"),e).then((()=>xe(Ae(i,"complete"),e))).then((()=>(je(Le,{type:De,content:e}),Promise.reject(e))))));if(!(r||a||c))return l;l.then((e=>{r&&r(e),c&&c(e),s&&je(Le,{type:De,content:e})}),(e=>{a&&a(e),c&&c(e),s&&je(Le,{type:De,content:e})}))}).bind(t)})),t.init=this.init,t}};(()=>{const e=we;let t={};if(e&&1===e.length)t=e[0],Ln=Ln.init(t),Ln._isDefault=!0;else{const t=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"];let s;s=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",t.forEach((e=>{Ln[e]=function(){return console.error(s),Promise.reject(new ze({code:"SYS_ERR",message:s}))}}))}Object.assign(Ln,{get mixinDatacom(){return Tn(Ln)}}),_n(Ln),Ln.addInterceptor=Ie,Ln.removeInterceptor=Pe,Ln.interceptObject=Ce})();var En=Ln;const Fn="chooseAndUploadFile:fail";function Un(e,t){return e.tempFiles.forEach(((e,s)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+s+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function Dn(e,t=5,s){const n=(e=JSON.parse(JSON.stringify(e))).length;let i=0,o=this;return new Promise((r=>{for(;i=n)return void(!e.find((e=>!e.url&&!e.errMsg))&&r(e));const c=e[t],l=o.files.findIndex((e=>e.uuid===c.uuid));c.url="",delete c.errMsg,En.uploadFile({filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,onUploadProgress:e=>{e.index=l,s&&s(e)}}).then((e=>{c.url=e.fileID,c.index=l,t{c.errMsg=e.errMsg||e.message,c.index=l,t{if(t){const s=t(e);if(void 0!==s)return Promise.resolve(s).then((t=>void 0===t?e:t))}return e})).then((e=>!1===e?{errMsg:"chooseAndUploadFile:ok",tempFilePaths:[],tempFiles:[]}:e))}function Mn(s={type:"all"}){return"image"===s.type?Rn(function(t){const{count:s,sizeType:n=["original","compressed"],sourceType:i,extension:o}=t;return new Promise(((t,r)=>{e({count:s,sizeType:n,sourceType:i,extension:o,success(e){t(Un(e,"image"))},fail(e){r({errMsg:e.errMsg.replace("chooseImage:fail",Fn)})}})}))}(s),s):"video"===s.type?Rn(function(e){const{camera:s,compressed:n,maxDuration:i,sourceType:o,extension:r}=e;return new Promise(((e,a)=>{t({camera:s,compressed:n,maxDuration:i,sourceType:o,extension:r,success(t){const{tempFilePath:s,duration:n,size:i,height:o,width:r}=t;e(Un({errMsg:"chooseVideo:ok",tempFilePaths:[s],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:s,size:i,type:t.tempFile&&t.tempFile.type||"",width:r,height:o,duration:n,fileType:"video",cloudPath:""}]},"video"))},fail(e){a({errMsg:e.errMsg.replace("chooseVideo:fail",Fn)})}})}))}(s),s):Rn(function(e){const{count:t,extension:s}=e;return new Promise(((e,n)=>{let o=i;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(o=wx.chooseMessageFile),"function"!=typeof o)return n({errMsg:Fn+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});o({type:"all",count:t,extension:s,success(t){e(Un(t))},fail(e){n({errMsg:e.errMsg.replace("chooseFile:fail",Fn)})}})}))}(s),s)}const Nn=e=>{const t=e.lastIndexOf("."),s=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,s)}},$n=e=>{if(Array.isArray(e))return e;return e.replace(/(\[|\])/g,"").split(",")},jn=async(e,t="image")=>{const s=Nn(e.name).ext.toLowerCase();let n={name:e.name,uuid:e.uuid,extname:s||"",cloudPath:e.cloudPath,fileType:e.fileType,url:e.path||e.path,size:e.size,image:{},path:e.path,video:{}};if("image"===t){const t=await(i=e.path,new Promise(((e,t)=>{P({src:i,success(t){e(t)},fail(e){t(e)}})})));delete n.video,n.image.width=t.width,n.image.height=t.height,n.image.location=t.path}else delete n.image;var i;return n};const qn=G({name:"uniFilePicker",components:{uploadImage:G({name:"uploadImage",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},limit:{type:[Number,String],default:9},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto",border:{}})},delIcon:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1}},computed:{styles(){return Object.assign({width:"auto",height:"auto",border:{}},this.imageStyles)},boxStyle(){const{width:e="auto",height:t="auto"}=this.styles;let s={};"auto"===t?"auto"!==e?(s.height=this.value2px(e),s["padding-top"]=0):s.height=0:(s.height=this.value2px(t),s["padding-top"]=0),s.width="auto"===e?"auto"!==t?this.value2px(t):"33.3%":this.value2px(e);let n="";for(let i in s)n+=`${i}:${s[i]};`;return n},borderStyle(){let{border:e}=this.styles,t={};if("boolean"==typeof e)t.border=e?"1px #eee solid":"none";else{let s=e&&e.width||1;s=this.value2px(s);let n=e&&e.radius||3;n=this.value2px(n),t={"border-width":s,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":n}}let s="";for(let n in t)s+=`${n}:${t[n]};`;return s}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",e)},choose(){this.$emit("choose")},delFile(e){this.$emit("delFile",e)},prviewImage(e,t){let s=[];1===Number(this.limit)&&this.disablePreview&&!this.disabled&&this.$emit("choose"),this.disablePreview||(this.filesList.forEach((e=>{s.push(e.url)})),x({urls:s,current:t}))},value2px:e=>("number"==typeof e?e+="px":-1===e.indexOf("%")&&(e=-1!==e.indexOf("px")?e:e+"px"),e)}},[["render",function(e,t,s,n,i,o){const r=j,a=q,c=B;return A(),C(a,{class:"uni-file-picker__container"},{default:O((()=>[(A(!0),L(E,null,F(s.filesList,((e,t)=>(A(),C(a,{class:"file-picker__box",key:t,style:U(o.boxStyle)},{default:O((()=>[D(a,{class:"file-picker__box-content",style:U(o.borderStyle)},{default:O((()=>[D(r,{class:"file-image",src:e.url,mode:"aspectFill",onClick:R((s=>o.prviewImage(e,t)),["stop"])},null,8,["src","onClick"]),s.delIcon&&!s.readonly?(A(),C(a,{key:0,class:"icon-del-box",onClick:R((e=>o.delFile(t)),["stop"])},{default:O((()=>[D(a,{class:"icon-del"}),D(a,{class:"icon-del rotate"})])),_:2},1032,["onClick"])):M("",!0),e.progress&&100!==e.progress||0===e.progress?(A(),C(a,{key:1,class:"file-picker__progress"},{default:O((()=>[D(c,{class:"file-picker__progress-item",percent:-1===e.progress?0:e.progress,"stroke-width":"4",backgroundColor:e.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])])),_:2},1024)):M("",!0),e.errMsg?(A(),C(a,{key:2,class:"file-picker__mask",onClick:R((s=>o.uploadFiles(e,t)),["stop"])},{default:O((()=>[N(" 点击重试 ")])),_:2},1032,["onClick"])):M("",!0)])),_:2},1032,["style"])])),_:2},1032,["style"])))),128)),s.filesList.length[D(a,{class:"file-picker__box-content is-add",style:U(o.borderStyle),onClick:o.choose},{default:O((()=>[$(e.$slots,"default",{},(()=>[D(a,{class:"icon-add"}),D(a,{class:"icon-add rotate"})]),!0)])),_:3},8,["style","onClick"])])),_:3},8,["style"])):M("",!0)])),_:3})}],["__scopeId","data-v-86b162f5"]]),uploadFile:G({name:"uploadFile",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},delIcon:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},showType:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},readonly:{type:Boolean,default:!1}},computed:{list(){let e=[];return this.filesList.forEach((t=>{e.push(t)})),e},styles(){return Object.assign({border:!0,dividline:!0,"border-style":{}},this.listStyles)},borderStyle(){let{borderStyle:e,border:t}=this.styles,s={};if(t){let t=e&&e.width||1;t=this.value2px(t);let n=e&&e.radius||5;n=this.value2px(n),s={"border-width":t,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":n}}else s.border="none";let n="";for(let i in s)n+=`${i}:${s[i]};`;return n},borderLineStyle(){let e={},{borderStyle:t}=this.styles;if(t&&t.color&&(e["border-color"]=t.color),t&&t.width){let s=t&&t.width||1,n=t&&t.style||0;"number"==typeof s?s+="px":s=s.indexOf("px")?s:s+"px",e["border-width"]=s,"number"==typeof n?n+="px":n=n.indexOf("px")?n:n+"px",e["border-top-style"]=n}let s="";for(let n in e)s+=`${n}:${e[n]};`;return s}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",{item:e,index:t})},choose(){this.$emit("choose")},delFile(e){this.$emit("delFile",e)},value2px:e=>("number"==typeof e?e+="px":e=-1!==e.indexOf("px")?e:e+"px",e)}},[["render",function(e,t,s,n,i,o){const r=q,a=B;return A(),C(r,{class:"uni-file-picker__files"},{default:O((()=>[s.readonly?M("",!0):(A(),C(r,{key:0,class:"files-button",onClick:o.choose},{default:O((()=>[$(e.$slots,"default",{},void 0,!0)])),_:3},8,["onClick"])),o.list.length>0?(A(),C(r,{key:1,class:"uni-file-picker__lists is-text-box",style:U(o.borderStyle)},{default:O((()=>[(A(!0),L(E,null,F(o.list,((e,t)=>(A(),C(r,{class:K(["uni-file-picker__lists-box",{"files-border":0!==t&&o.styles.dividline}]),key:t,style:U(0!==t&&o.styles.dividline&&o.borderLineStyle)},{default:O((()=>[D(r,{class:"uni-file-picker__item"},{default:O((()=>[D(r,{class:"files__name"},{default:O((()=>[N(H(e.name),1)])),_:2},1024),s.delIcon&&!s.readonly?(A(),C(r,{key:0,class:"icon-del-box icon-files",onClick:e=>o.delFile(t)},{default:O((()=>[D(r,{class:"icon-del icon-files"}),D(r,{class:"icon-del rotate"})])),_:2},1032,["onClick"])):M("",!0)])),_:2},1024),e.progress&&100!==e.progress||0===e.progress?(A(),C(r,{key:0,class:"file-picker__progress"},{default:O((()=>[D(a,{class:"file-picker__progress-item",percent:-1===e.progress?0:e.progress,"stroke-width":"4",backgroundColor:e.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])])),_:2},1024)):M("",!0),"error"===e.status?(A(),C(r,{key:1,class:"file-picker__mask",onClick:R((s=>o.uploadFiles(e,t)),["stop"])},{default:O((()=>[N(" 点击重试 ")])),_:2},1032,["onClick"])):M("",!0)])),_:2},1032,["class","style"])))),128))])),_:1},8,["style"])):M("",!0)])),_:3})}],["__scopeId","data-v-5d376bd5"]])},options:{virtualHost:!0},emits:["select","success","fail","progress","delete","update:modelValue","input"],props:{modelValue:{type:[Array,Object],default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},delIcon:{type:Boolean,default:!0},autoUpload:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},mode:{type:String,default:"grid"},fileMediatype:{type:String,default:"image"},fileExtname:{type:[Array,String],default:()=>[]},title:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto"})},readonly:{type:Boolean,default:!1},returnType:{type:String,default:"array"},sizeType:{type:Array,default:()=>["original","compressed"]},sourceType:{type:Array,default:()=>["album","camera"]}},data:()=>({files:[],localValue:[]}),watch:{modelValue:{handler(e,t){this.setValue(e,t)},immediate:!0}},computed:{filesList(){let e=[];return this.files.forEach((t=>{e.push(t)})),e},showType(){return"image"===this.fileMediatype?this.mode:"list"},limitLength(){return"object"===this.returnType?1:this.limit?this.limit>=9?9:this.limit:1}},created(){En.config&&En.config.provider||(this.noSpace=!0,En.chooseAndUploadFile=Mn),this.form=this.getForm("uniForms"),this.formItem=this.getForm("uniFormsItem"),this.form&&this.formItem&&this.formItem.name&&(this.rename=this.formItem.name,this.form.inputChildrens.push(this))},methods:{clearFiles(e){0===e||e?this.files.splice(e,1):(this.files=[],this.$nextTick((()=>{this.setEmit()}))),this.$nextTick((()=>{this.setEmit()}))},upload(){let e=[];return this.files.forEach(((t,s)=>{"ready"!==t.status&&"error"!==t.status||e.push(Object.assign({},t))})),this.uploadFiles(e)},async setValue(e,t){const s=async e=>{let t="";return t=e.fileID?e.fileID:e.url,/cloud:\/\/([\w.]+\/?)\S*/.test(t)&&(e.fileID=t,e.url=await this.getTempFileURL(t)),e.url&&(e.path=e.url),e};if("object"===this.returnType)e?await s(e):e={};else{e||(e=[]);for(let t=0;t0?e:[];this.files=[].concat(n)},choose(){this.disabled||(this.files.length>=Number(this.limitLength)&&"grid"!==this.showType&&"array"===this.returnType?a({title:`您最多选择 ${this.limitLength} 个文件`,icon:"none"}):this.chooseFiles())},chooseFiles(){const e=$n(this.fileExtname);En.chooseAndUploadFile({type:this.fileMediatype,compressed:!1,sizeType:this.sizeType,sourceType:this.sourceType,extension:e.length>0?e:void 0,count:this.limitLength-this.files.length,onChooseFile:this.chooseFileCallback,onUploadProgress:e=>{this.setProgress(e,e.index)}}).then((e=>{this.setSuccessAndError(e.tempFiles)})).catch((e=>{console.log("选择失败",e)}))},async chooseFileCallback(e){const t=$n(this.fileExtname);(1===Number(this.limitLength)&&this.disablePreview&&!this.disabled||"object"===this.returnType)&&(this.files=[]);let{filePaths:s,files:n}=((e,t)=>{let s=[],n=[];return t&&0!==t.length?(e.tempFiles.forEach((e=>{const i=Nn(e.name).ext.toLowerCase();-1!==t.indexOf(i)&&(n.push(e),s.push(e.path))})),n.length!==e.tempFiles.length&&a({title:`当前选择了${e.tempFiles.length}个文件 ,${e.tempFiles.length-n.length} 个文件格式不正确`,icon:"none",duration:5e3}),{filePaths:s,files:n}):{filePaths:s,files:n}})(e,t);t&&t.length>0||(s=e.tempFilePaths,n=e.tempFiles);let i=[];for(let o=0;o{this.setProgress(e,e.index,!0)})).then((e=>(this.setSuccessAndError(e),e))).catch((e=>{console.log(e)}))},async setSuccessAndError(e,t){let s=[],n=[],i=[],o=[];for(let r=0;re.uuid===t.uuid)):t.index;if(-1===a||!this.files)break;if("request:fail"===t.errMsg)this.files[a].url=t.path,this.files[a].status="error",this.files[a].errMsg=t.errMsg,n.push(this.files[a]),o.push(this.files[a].url);else{this.files[a].errMsg="",this.files[a].fileID=t.url;/cloud:\/\/([\w.]+\/?)\S*/.test(t.url)?this.files[a].url=await this.getTempFileURL(t.url):this.files[a].url=t.url,this.files[a].status="success",this.files[a].progress+=1,s.push(this.files[a]),i.push(this.files[a].fileID)}}s.length>0&&(this.setEmit(),this.$emit("success",{tempFiles:this.backObject(s),tempFilePaths:i})),n.length>0&&this.$emit("fail",{tempFiles:this.backObject(n),tempFilePaths:o})},setProgress(e,t,s){this.files.length;const n=Math.round(100*e.loaded/e.total);let i=t;s||(i=this.files.findIndex((t=>t.uuid===e.tempFile.uuid))),-1!==i&&this.files[i]&&(this.files[i].progress=n-1,this.$emit("progress",{index:i,progress:parseInt(n),tempFile:this.files[i]}))},delFile(e){this.$emit("delete",{tempFile:this.files[e],tempFilePath:this.files[e].url}),this.files.splice(e,1),this.$nextTick((()=>{this.setEmit()}))},getFileExt(e){const t=e.lastIndexOf("."),s=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,s)}},setEmit(){let e=[];"object"===this.returnType?(e=this.backObject(this.files)[0],this.localValue=e||null):(e=this.backObject(this.files),this.localValue||(this.localValue=[]),this.localValue=[...e]),this.$emit("update:modelValue",this.localValue)},backObject(e){let t=[];return e.forEach((e=>{t.push({extname:e.extname,fileType:e.fileType,image:e.image,name:e.name,path:e.path,size:e.size,fileID:e.fileID,url:e.url,uuid:e.uuid,status:e.status,cloudPath:e.cloudPath})})),t},async getTempFileURL(e){e={fileList:[].concat(e)};return(await En.getTempFileURL(e)).fileList[0].tempFileURL||""},getForm(e="uniForms"){let t=this.$parent,s=t.$options.name;for(;s!==e;){if(t=t.$parent,!t)return!1;s=t.$options.name}return t}}},[["render",function(e,t,s,n,i,o){const r=W,a=q,c=z("upload-image"),l=J,u=z("upload-file");return A(),C(a,{class:"uni-file-picker"},{default:O((()=>[s.title?(A(),C(a,{key:0,class:"uni-file-picker__header"},{default:O((()=>[D(r,{class:"file-title"},{default:O((()=>[N(H(s.title),1)])),_:1}),D(r,{class:"file-count"},{default:O((()=>[N(H(o.filesList.length)+"/"+H(o.limitLength),1)])),_:1})])),_:1})):M("",!0),"image"===s.fileMediatype&&"grid"===o.showType?(A(),C(c,{key:1,readonly:s.readonly,"image-styles":s.imageStyles,"files-list":o.filesList,limit:o.limitLength,disablePreview:s.disablePreview,delIcon:s.delIcon,onUploadFiles:o.uploadFiles,onChoose:o.choose,onDelFile:o.delFile},{default:O((()=>[$(e.$slots,"default",{},(()=>[D(a,{class:"is-add"},{default:O((()=>[D(a,{class:"icon-add"}),D(a,{class:"icon-add rotate"})])),_:1})]),!0)])),_:3},8,["readonly","image-styles","files-list","limit","disablePreview","delIcon","onUploadFiles","onChoose","onDelFile"])):M("",!0),"image"!==s.fileMediatype||"grid"!==o.showType?(A(),C(u,{key:2,readonly:s.readonly,"list-styles":s.listStyles,"files-list":o.filesList,showType:o.showType,delIcon:s.delIcon,onUploadFiles:o.uploadFiles,onChoose:o.choose,onDelFile:o.delFile},{default:O((()=>[$(e.$slots,"default",{},(()=>[D(l,{type:"primary",size:"mini"},{default:O((()=>[N("选择文件")])),_:1})]),!0)])),_:3},8,["readonly","list-styles","files-list","showType","delIcon","onUploadFiles","onChoose","onDelFile"])):M("",!0)])),_:3})}],["__scopeId","data-v-ae18bd15"]]);class Bn{constructor(e,t){this.options=e,this.animation=V({...e}),this.currentStepAnimates={},this.next=0,this.$=t}_nvuePushAnimates(e,t){let s=this.currentStepAnimates[this.next],n={};if(n=s||{styles:{},config:{}},Kn.includes(e)){n.styles.transform||(n.styles.transform="");let s="";"rotate"===e&&(s="deg"),n.styles.transform+=`${e}(${t+s}) `}else n.styles[e]=`${t}`;this.currentStepAnimates[this.next]=n}_animateRun(e={},t={}){let s=this.$.$refs.ani.ref;if(s)return new Promise(((n,i)=>{nvueAnimation.transition(s,{styles:e,...t},(e=>{n()}))}))}_nvueNextAnimate(e,t=0,s){let n=e[t];if(n){let{styles:i,config:o}=n;this._animateRun(i,o).then((()=>{t+=1,this._nvueNextAnimate(e,t,s)}))}else this.currentStepAnimates={},"function"==typeof s&&s(),this.isEnd=!0}step(e={}){return this.animation.step(e),this}run(e){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((()=>{"function"==typeof e&&e()}),this.$.durationTime)}}const Kn=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"];function Hn(e,t){if(t)return clearTimeout(t.timer),new Bn(e,t)}Kn.concat(["opacity","backgroundColor"],["width","height","left","right","top","bottom"]).forEach((e=>{Bn.prototype[e]=function(...t){return this.animation[e](...t),this}}));const zn=G({name:"uniTransition",emits:["click","change"],props:{show:{type:Boolean,default:!1},modeClass:{type:[Array,String],default:()=>"fade"},duration:{type:Number,default:300},styles:{type:Object,default:()=>({})},customClass:{type:String,default:""},onceRender:{type:Boolean,default:!1}},data:()=>({isShow:!1,transform:"",opacity:1,animationData:{},durationTime:300,config:{}}),watch:{show:{handler(e){e?this.open():this.isShow&&this.close()},immediate:!0}},computed:{stylesObject(){let e={...this.styles,"transition-duration":this.duration/1e3+"s"},t="";for(let s in e){t+=this.toLine(s)+":"+e[s]+";"}return t},transformStyles(){return"transform:"+this.transform+";opacity:"+this.opacity+";"+this.stylesObject}},created(){this.config={duration:this.duration,timingFunction:"ease",transformOrigin:"50% 50%",delay:0},this.durationTime=this.duration},methods:{init(e={}){e.duration&&(this.durationTime=e.duration),this.animation=Hn(Object.assign(this.config,e),this)},onClick(){this.$emit("click",{detail:this.isShow})},step(e,t={}){if(this.animation){for(let t in e)try{"object"==typeof e[t]?this.animation[t](...e[t]):this.animation[t](e[t])}catch(ct){console.error(`方法 ${t} 不存在`)}return this.animation.step(t),this}},run(e){this.animation&&this.animation.run(e)},open(){clearTimeout(this.timer),this.transform="",this.isShow=!0;let{opacity:e,transform:t}=this.styleInit(!1);void 0!==e&&(this.opacity=e),this.transform=t,this.$nextTick((()=>{this.timer=setTimeout((()=>{this.animation=Hn(this.config,this),this.tranfromInit(!1).step(),this.animation.run(),this.$emit("change",{detail:this.isShow})}),20)}))},close(e){this.animation&&this.tranfromInit(!0).step().run((()=>{this.isShow=!1,this.animationData=null,this.animation=null;let{opacity:e,transform:t}=this.styleInit(!1);this.opacity=e||1,this.transform=t,this.$emit("change",{detail:this.isShow})}))},styleInit(e){let t={transform:""},s=(e,s)=>{"fade"===s?t.opacity=this.animationType(e)[s]:t.transform+=this.animationType(e)[s]+" "};return"string"==typeof this.modeClass?s(e,this.modeClass):this.modeClass.forEach((t=>{s(e,t)})),t},tranfromInit(e){let t=(e,t)=>{let s=null;"fade"===t?s=e?0:1:(s=e?"-100%":"0","zoom-in"===t&&(s=e?.8:1),"zoom-out"===t&&(s=e?1.2:1),"slide-right"===t&&(s=e?"100%":"0"),"slide-bottom"===t&&(s=e?"100%":"0")),this.animation[this.animationMode()[t]](s)};return"string"==typeof this.modeClass?t(e,this.modeClass):this.modeClass.forEach((s=>{t(e,s)})),this.animation},animationType:e=>({fade:e?1:0,"slide-top":`translateY(${e?"0":"-100%"})`,"slide-right":`translateX(${e?"0":"100%"})`,"slide-bottom":`translateY(${e?"0":"100%"})`,"slide-left":`translateX(${e?"0":"-100%"})`,"zoom-in":`scaleX(${e?1:.8}) scaleY(${e?1:.8})`,"zoom-out":`scaleX(${e?1:1.2}) scaleY(${e?1:1.2})`}),animationMode:()=>({fade:"opacity","slide-top":"translateY","slide-right":"translateX","slide-bottom":"translateY","slide-left":"translateX","zoom-in":"scale","zoom-out":"scale"}),toLine:e=>e.replace(/([A-Z])/g,"-$1").toLowerCase()}},[["render",function(e,t,s,n,i,o){const r=q;return i.isShow||s.onceRender?Y((A(),C(r,{key:0,ref:"ani",animation:i.animationData,class:K(s.customClass),style:U(o.transformStyles),onClick:o.onClick},{default:O((()=>[$(e.$slots,"default")])),_:3},8,["animation","class","style","onClick"])),[[Q,i.isShow]]):M("",!0)}]]),Wn={name:"uniPopup",components:{keypress:{name:"Keypress",props:{disable:{type:Boolean,default:!1}},mounted(){const e={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]};document.addEventListener("keyup",(t=>{if(this.disable)return;const s=Object.keys(e).find((s=>{const n=t.key,i=e[s];return i===n||Array.isArray(i)&&i.includes(n)}));s&&setTimeout((()=>{this.$emit(s,{})}),0)}))},render:()=>{}}},emits:["change","maskClick"],props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},isMaskClick:{type:Boolean,default:null},maskClick:{type:Boolean,default:null},backgroundColor:{type:String,default:"none"},safeArea:{type:Boolean,default:!0},maskBackgroundColor:{type:String,default:"rgba(0, 0, 0, 0.4)"}},watch:{type:{handler:function(e){this.config[e]&&this[this.config[e]](!0)},immediate:!0},isDesktop:{handler:function(e){this.config[e]&&this[this.config[this.type]](!0)},immediate:!0},maskClick:{handler:function(e){this.mkclick=e},immediate:!0},isMaskClick:{handler:function(e){this.mkclick=e},immediate:!0},showPopup(e){document.getElementsByTagName("body")[0].style.overflow=e?"hidden":"visible"}},data(){return{duration:300,ani:[],showPopup:!1,showTrans:!1,popupWidth:0,popupHeight:0,config:{top:"top",bottom:"bottom",center:"center",left:"left",right:"right",message:"top",dialog:"center",share:"bottom"},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:this.isDesktop?"fixforpc-top":"top"}},computed:{isDesktop(){return this.popupWidth>=500&&this.popupHeight>=500},bg(){return""===this.backgroundColor||"none"===this.backgroundColor?"transparent":this.backgroundColor}},mounted(){(()=>{const{windowWidth:e,windowHeight:t,windowTop:s,safeArea:n,screenHeight:i,safeAreaInsets:o}=y();this.popupWidth=e,this.popupHeight=t+(s||0),n&&this.safeArea?this.safeAreaInsets=o.bottom:this.safeAreaInsets=0})()},unmounted(){this.setH5Visible()},created(){null===this.isMaskClick&&null===this.maskClick?this.mkclick=!0:this.mkclick=null!==this.isMaskClick?this.isMaskClick:this.maskClick,this.animation?this.duration=300:this.duration=0,this.messageChild=null,this.clearPropagation=!1,this.maskClass.backgroundColor=this.maskBackgroundColor},methods:{setH5Visible(){document.getElementsByTagName("body")[0].style.overflow="visible"},closeMask(){this.maskShow=!1},disableMask(){this.mkclick=!1},clear(e){e.stopPropagation(),this.clearPropagation=!0},open(e){if(this.showPopup)return;e&&-1!==["top","center","bottom","left","right","message","dialog","share"].indexOf(e)||(e=this.type),this.config[e]?(this[this.config[e]](),this.$emit("change",{show:!0,type:e})):console.error("缺少类型:",e)},close(e){this.showTrans=!1,this.$emit("change",{show:!1,type:this.type}),clearTimeout(this.timer),this.timer=setTimeout((()=>{this.showPopup=!1}),300)},touchstart(){this.clearPropagation=!1},onTap(){this.clearPropagation?this.clearPropagation=!1:(this.$emit("maskClick"),this.mkclick&&this.close())},top(e){this.popupstyle=this.isDesktop?"fixforpc-top":"top",this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0,backgroundColor:this.bg},e||(this.showPopup=!0,this.showTrans=!0,this.$nextTick((()=>{this.messageChild&&"message"===this.type&&this.messageChild.timerClose()})))},bottom(e){this.popupstyle="bottom",this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0,paddingBottom:this.safeAreaInsets+"px",backgroundColor:this.bg},e||(this.showPopup=!0,this.showTrans=!0)},center(e){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"},e||(this.showPopup=!0,this.showTrans=!0)},left(e){this.popupstyle="left",this.ani=["slide-left"],this.transClass={position:"fixed",left:0,bottom:0,top:0,backgroundColor:this.bg,display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)},right(e){this.popupstyle="right",this.ani=["slide-right"],this.transClass={position:"fixed",bottom:0,right:0,top:0,backgroundColor:this.bg,display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)}}};const Jn=G(Wn,[["render",function(e,t,s,n,i,o){const r=Z(X("uni-transition"),zn),a=q,c=z("keypress");return i.showPopup?(A(),C(a,{key:0,class:K(["uni-popup",[i.popupstyle,o.isDesktop?"fixforpc-z-index":""]])},{default:O((()=>[D(a,{onTouchstart:o.touchstart},{default:O((()=>[i.maskShow?(A(),C(r,{key:"1",name:"mask","mode-class":"fade",styles:i.maskClass,duration:i.duration,show:i.showTrans,onClick:o.onTap},null,8,["styles","duration","show","onClick"])):M("",!0),D(r,{key:"2","mode-class":i.ani,name:"content",styles:i.transClass,duration:i.duration,show:i.showTrans,onClick:o.onTap},{default:O((()=>[D(a,{class:K(["uni-popup__wrapper",[i.popupstyle]]),style:U({backgroundColor:o.bg}),onClick:o.clear},{default:O((()=>[$(e.$slots,"default",{},void 0,!0)])),_:3},8,["style","class","onClick"])])),_:3},8,["mode-class","styles","duration","show","onClick"])])),_:3},8,["onTouchstart"]),i.maskShow?(A(),C(c,{key:0,onEsc:o.onTap},null,8,["onEsc"])):M("",!0)])),_:3},8,["class"])):M("",!0)}],["__scopeId","data-v-a1518068"]]);export{qn as _,Jn as a};
+import{L as e,M as t,N as s,O as n,P as i,G as o,Q as r,s as a,R as c,S as l,T as u,U as h,H as d,V as p,W as f,X as g,Y as m,Z as y,q as _,z as w,y as k,h as b,_ as v,$ as S,a0 as T,a1 as I,a2 as P,a3 as x,o as A,d as C,w as O,c as L,F as E,l as F,b as U,f as D,a4 as R,p as M,a as N,r as $,A as j,e as q,a5 as B,n as K,t as H,a6 as z,i as W,x as J,a7 as V,a8 as Y,a9 as Q,g as X}from"./index-d9c03bf0.js";import{_ as G}from"./_plugin-vue_export-helper.1b428a4d.js";import{r as Z}from"./uni-app.es.33963b28.js";const ee={pages:[{path:"pages/index/index",style:{navigationBarTitleText:"uni-app"}},{path:"pages/login/login",style:{enablePullDownRefresh:!1,navigationStyle:"custom"}},{path:"pages/invoice/list",style:{enablePullDownRefresh:!1,navigationStyle:"custom"}},{path:"pages/invoice/detail",style:{enablePullDownRefresh:!1,navigationStyle:"custom"}},{path:"pages/chat/list",style:{enablePullDownRefresh:!1,navigationStyle:"custom"}},{path:"pages/chat/detail",style:{enablePullDownRefresh:!1,navigationStyle:"custom"}},{path:"pages/invoice/edit",style:{enablePullDownRefresh:!1,navigationStyle:"custom"}}],globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"体检平台",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8","app-plus":{background:"#efeff4"}}};function te(e,t,s){return e(s={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&s.path)}},s.exports),s.exports}var se=te((function(e,t){var s;e.exports=(s=s||function(e,t){var s=Object.create||function(){function e(){}return function(t){var s;return e.prototype=t,s=new e,e.prototype=null,s}}(),n={},i=n.lib={},o=i.Base={extend:function(e){var t=s(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)}},r=i.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,s=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[n+o>>>2]|=r<<24-(n+o)%4*8}else for(o=0;o>>2]=s[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,s=this.sigBytes;t[s>>>2]&=4294967295<<32-s%4*8,t.length=e.ceil(s/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var s,n=[],i=function(t){var s=987654321,n=4294967295;return function(){var i=((s=36969*(65535&s)+(s>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,s=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new r.init(s,t/2)}},l=a.Latin1={stringify:function(e){for(var t=e.words,s=e.sigBytes,n=[],i=0;i>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,s=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new r.init(s,t)}},u=a.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},h=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new r.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var s=this._data,n=s.words,i=s.sigBytes,o=this.blockSize,a=i/(4*o),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*o,l=e.min(4*c,i);if(c){for(var u=0;u>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,r=e[t+0],c=e[t+1],p=e[t+2],f=e[t+3],g=e[t+4],m=e[t+5],y=e[t+6],_=e[t+7],w=e[t+8],k=e[t+9],b=e[t+10],v=e[t+11],S=e[t+12],T=e[t+13],I=e[t+14],P=e[t+15],x=o[0],A=o[1],C=o[2],O=o[3];x=l(x,A,C,O,r,7,a[0]),O=l(O,x,A,C,c,12,a[1]),C=l(C,O,x,A,p,17,a[2]),A=l(A,C,O,x,f,22,a[3]),x=l(x,A,C,O,g,7,a[4]),O=l(O,x,A,C,m,12,a[5]),C=l(C,O,x,A,y,17,a[6]),A=l(A,C,O,x,_,22,a[7]),x=l(x,A,C,O,w,7,a[8]),O=l(O,x,A,C,k,12,a[9]),C=l(C,O,x,A,b,17,a[10]),A=l(A,C,O,x,v,22,a[11]),x=l(x,A,C,O,S,7,a[12]),O=l(O,x,A,C,T,12,a[13]),C=l(C,O,x,A,I,17,a[14]),x=u(x,A=l(A,C,O,x,P,22,a[15]),C,O,c,5,a[16]),O=u(O,x,A,C,y,9,a[17]),C=u(C,O,x,A,v,14,a[18]),A=u(A,C,O,x,r,20,a[19]),x=u(x,A,C,O,m,5,a[20]),O=u(O,x,A,C,b,9,a[21]),C=u(C,O,x,A,P,14,a[22]),A=u(A,C,O,x,g,20,a[23]),x=u(x,A,C,O,k,5,a[24]),O=u(O,x,A,C,I,9,a[25]),C=u(C,O,x,A,f,14,a[26]),A=u(A,C,O,x,w,20,a[27]),x=u(x,A,C,O,T,5,a[28]),O=u(O,x,A,C,p,9,a[29]),C=u(C,O,x,A,_,14,a[30]),x=h(x,A=u(A,C,O,x,S,20,a[31]),C,O,m,4,a[32]),O=h(O,x,A,C,w,11,a[33]),C=h(C,O,x,A,v,16,a[34]),A=h(A,C,O,x,I,23,a[35]),x=h(x,A,C,O,c,4,a[36]),O=h(O,x,A,C,g,11,a[37]),C=h(C,O,x,A,_,16,a[38]),A=h(A,C,O,x,b,23,a[39]),x=h(x,A,C,O,T,4,a[40]),O=h(O,x,A,C,r,11,a[41]),C=h(C,O,x,A,f,16,a[42]),A=h(A,C,O,x,y,23,a[43]),x=h(x,A,C,O,k,4,a[44]),O=h(O,x,A,C,S,11,a[45]),C=h(C,O,x,A,P,16,a[46]),x=d(x,A=h(A,C,O,x,p,23,a[47]),C,O,r,6,a[48]),O=d(O,x,A,C,_,10,a[49]),C=d(C,O,x,A,I,15,a[50]),A=d(A,C,O,x,m,21,a[51]),x=d(x,A,C,O,S,6,a[52]),O=d(O,x,A,C,f,10,a[53]),C=d(C,O,x,A,b,15,a[54]),A=d(A,C,O,x,c,21,a[55]),x=d(x,A,C,O,w,6,a[56]),O=d(O,x,A,C,P,10,a[57]),C=d(C,O,x,A,y,15,a[58]),A=d(A,C,O,x,T,21,a[59]),x=d(x,A,C,O,g,6,a[60]),O=d(O,x,A,C,v,10,a[61]),C=d(C,O,x,A,p,15,a[62]),A=d(A,C,O,x,k,21,a[63]),o[0]=o[0]+x|0,o[1]=o[1]+A|0,o[2]=o[2]+C|0,o[3]=o[3]+O|0},_doFinalize:function(){var t=this._data,s=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;s[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296),r=n;s[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),s[14+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(s.length+1),this._process();for(var a=this._hash,c=a.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return a},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,s,n,i,o,r){var a=e+(t&s|~t&n)+i+r;return(a<>>32-o)+t}function u(e,t,s,n,i,o,r){var a=e+(t&n|s&~n)+i+r;return(a<>>32-o)+t}function h(e,t,s,n,i,o,r){var a=e+(t^s^n)+i+r;return(a<>>32-o)+t}function d(e,t,s,n,i,o,r){var a=e+(s^(t|~n))+i+r;return(a<>>32-o)+t}t.MD5=o._createHelper(c),t.HmacMD5=o._createHmacHelper(c)}(Math),s.MD5)})),te((function(e,t){var s,n,i;e.exports=(n=(s=ne).lib.Base,i=s.enc.Utf8,void(s.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var s=e.blockSize,n=4*s;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),r=this._iKey=t.clone(),a=o.words,c=r.words,l=0;l>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a>>6*(3-a)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t=e.length,s=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var o=0;o>>6-r%4*2;n[o>>>2]|=(a|c)<<24-o%4*8,o++}return i.create(n,o)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},s.enc.Base64)}));const ae="FUNCTION",ce="pending",le="rejected";function ue(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function he(e){return"object"===ue(e)}function de(e){return"function"==typeof e}function pe(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}const fe="REJECTED",ge="NOT_PENDING";class me{constructor({createPromise:e,retryRule:t=fe}={}){this.createPromise=e,this.status=null,this.promise=null,this.retryRule=t}get needRetry(){if(!this.status)return!0;switch(this.retryRule){case fe:return this.status===le;case ge:return this.status!==ce}}exec(){return this.needRetry?(this.status=ce,this.promise=this.createPromise().then((e=>(this.status="fulfilled",Promise.resolve(e))),(e=>(this.status=le,Promise.reject(e)))),this.promise):this.promise}}function ye(e){return e&&"string"==typeof e?JSON.parse(e):e}const _e=ye([]);ye("");const we=ye("[]")||[];let ke="";try{ke="__UNI__BD068F8"}catch(ct){}let be={};function ve(e,t={}){var s,n;return s=be,n=e,Object.prototype.hasOwnProperty.call(s,n)||(be[e]=t),be[e]}const Se=["invoke","success","fail","complete"],Te=ve("_globalUniCloudInterceptor");function Ie(e,t){Te[e]||(Te[e]={}),he(t)&&Object.keys(t).forEach((s=>{Se.indexOf(s)>-1&&function(e,t,s){let n=Te[e][t];n||(n=Te[e][t]=[]),-1===n.indexOf(s)&&de(s)&&n.push(s)}(e,s,t[s])}))}function Pe(e,t){Te[e]||(Te[e]={}),he(t)?Object.keys(t).forEach((s=>{Se.indexOf(s)>-1&&function(e,t,s){const n=Te[e][t];if(!n)return;const i=n.indexOf(s);i>-1&&n.splice(i,1)}(e,s,t[s])})):delete Te[e]}function xe(e,t){return e&&0!==e.length?e.reduce(((e,s)=>e.then((()=>s(t)))),Promise.resolve()):Promise.resolve()}function Ae(e,t){return Te[e]&&Te[e][t]||[]}function Ce(e){Ie("callObject",e)}const Oe=ve("_globalUniCloudListener"),Le="response",Ee="needLogin",Fe="refreshToken",Ue="clientdb",De="cloudfunction",Re="cloudobject";function Me(e){return Oe[e]||(Oe[e]=[]),Oe[e]}function Ne(e,t){const s=Me(e);s.includes(t)||s.push(t)}function $e(e,t){const s=Me(e),n=s.indexOf(t);-1!==n&&s.splice(n,1)}function je(e,t){const s=Me(e);for(let n=0;n{Be&&e(),function t(){if("function"==typeof s){const t=s();t&&t[0]&&(Be=!0,e())}Be||setTimeout((()=>{t()}),30)}()})),qe)}function He(e){const t={};for(const s in e){const n=e[s];de(n)&&(t[s]=pe(n))}return t}class ze extends Error{constructor(e){super(e.message),this.errMsg=e.message||e.errMsg||"unknown system error",this.code=this.errCode=e.code||e.errCode||"SYSTEM_ERROR",this.errSubject=this.subject=e.subject||e.errSubject,this.cause=e.cause,this.requestId=e.requestId}toJson(e=0){if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}var We={request:e=>h(e),uploadFile:e=>d(e),setStorageSync:(e,t)=>p(e,t),getStorageSync:e=>f(e),removeStorageSync:e=>g(e),clearStorageSync:()=>m()};function Je(e){return e&&Je(e.__v_raw)||e}function Ve(){return{token:We.getStorageSync("uni_id_token")||We.getStorageSync("uniIdToken"),tokenExpired:We.getStorageSync("uni_id_token_expired")}}function Ye({token:e,tokenExpired:t}={}){e&&We.setStorageSync("uni_id_token",e),t&&We.setStorageSync("uni_id_token_expired",t)}let Qe,Xe;function Ge(){return Qe||(Qe=y()),Qe}function Ze(){let e,t;try{if(I){if(I.toString().indexOf("not yet implemented")>-1)return;const{scene:s,channel:n}=I();e=n,t=s}}catch(s){}return{channel:e,scene:t}}function et(){const e=T&&T()||"en";if(Xe)return{...Xe,locale:e,LOCALE:e};const t=Ge(),{deviceId:s,osName:n,uniPlatform:i,appId:o}=t,r=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"];for(let a=0;a{t(Object.assign(e,{complete(e){e||(e={});const 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 n(new ze({code:"SYS_ERR",message:e.errMsg||"request:fail",requestId:t}));const i=e.data;if(i.error)return n(new ze({code:i.error.code,message:i.error.message,requestId:t}));i.result=i.data,i.requestId=t,delete i.data,s(i)}}))}))},nt=function(e){return re.stringify(oe.parse(e))},it=class{constructor(e){["spaceId","clientSecret"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),this.config=Object.assign({},{endpoint:0===e.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},e),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=We,this._getAccessTokenPromiseHub=new me({createPromise:()=>this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((e=>{if(!e.result||!e.result.accessToken)throw new ze({code:"AUTH_FAILED",message:"获取accessToken失败"});this.setAccessToken(e.result.accessToken)})),retryRule:ge})}get hasAccessToken(){return!!this.accessToken}setAccessToken(e){this.accessToken=e}requestWrapped(e){return st(e,this.adapter.request)}requestAuth(e){return this.requestWrapped(e)}request(e,t){return Promise.resolve().then((()=>this.hasAccessToken?t?this.requestWrapped(e):this.requestWrapped(e).catch((t=>new Promise(((e,s)=>{!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?s(t):e()})).then((()=>this.getAccessToken())).then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)})))):this.getAccessToken().then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)}))))}rebuildRequest(e){const t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=tt(t.data,this.config.clientSecret),t}setupRequest(e,t){const s=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};return"auth"!==t&&(s.token=this.accessToken,n["x-basement-token"]=this.accessToken),n["x-serverless-sign"]=tt(s,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:s,dataType:"json",header:n}}getAccessToken(){return this._getAccessTokenPromiseHub.exec()}async authorize(){await this.getAccessToken()}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(this.setupRequest(t))}getOSSUploadOptionsFromPath(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFileToOSS({url:e,formData:t,name:s,filePath:n,fileType:i,onUploadProgress:o}){return new Promise(((r,a)=>{const c=this.adapter.uploadFile({url:e,formData:t,name:s,filePath:n,fileType:i,header:{"X-OSS-server-side-encrpytion":"AES256"},success(e){e&&e.statusCode<400?r(e):a(new ze({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){a(new ze({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof o&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((e=>{o({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}reportOSSUpload(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}async uploadFile({filePath:e,cloudPath:t,fileType:s="image",cloudPathAsRealPath:n=!1,onUploadProgress:i,config:o}){if("string"!==ue(t))throw new ze({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new ze({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new ze({code:"INVALID_PARAM",message:"cloudPath不合法"});const r=o&&o.envType||this.config.envType;if(n&&("/"!==t[0]&&(t="/"+t),t.indexOf("\\")>-1))throw new ze({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});const a=(await this.getOSSUploadOptionsFromPath({env:r,filename:n?t.split("/").pop():t,fileId:n?t:void 0})).result,c="https://"+a.cdnDomain+"/"+a.ossPath,{securityToken:l,accessKeyId:u,signature:h,host:d,ossPath:p,id:f,policy:g,ossCallbackUrl:m}=a,y={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:u,Signature:h,host:d,id:f,key:p,policy:g,success_action_status:200};if(l&&(y["x-oss-security-token"]=l),m){const e=JSON.stringify({callbackUrl:m,callbackBody:JSON.stringify({fileId:f,spaceId:this.config.spaceId}),callbackBodyType:"application/json"});y.callback=nt(e)}const _={url:"https://"+a.host,formData:y,fileName:"file",name:"file",filePath:e,fileType:s};if(await this.uploadFileToOSS(Object.assign({},_,{onUploadProgress:i})),m)return{success:!0,filePath:e,fileID:c};if((await this.reportOSSUpload({id:f})).success)return{success:!0,filePath:e,fileID:c};throw new ze({code:"UPLOAD_FAILED",message:"文件上传失败"})}getTempFileURL({fileList:e}={}){return new Promise(((t,s)=>{Array.isArray(e)&&0!==e.length||s(new ze({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),t({fileList:e.map((e=>({fileID:e,tempFileURL:e})))})}))}async getFileInfo({fileList:e}={}){if(!Array.isArray(e)||0===e.length)throw new ze({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const t={method:"serverless.file.resource.info",params:JSON.stringify({id:e.map((e=>e.split("?")[0])).join(",")})};return{fileList:(await this.request(this.setupRequest(t))).result}}},ot={init(e){const t=new it(e),s={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return s},t.customAuth=t.auth,t}};const rt="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";var at,ct;(ct=at||(at={})).local="local",ct.none="none",ct.session="session";var lt=function(){},ut=te((function(e,t){var s;e.exports=(s=ne,function(e){var t=s,n=t.lib,i=n.WordArray,o=n.Hasher,r=t.algo,a=[],c=[];!function(){function t(t){for(var s=e.sqrt(t),n=2;n<=s;n++)if(!(t%n))return!1;return!0}function s(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)t(n)&&(i<8&&(a[i]=s(e.pow(n,.5))),c[i]=s(e.pow(n,1/3)),i++),n++}();var l=[],u=r.SHA256=o.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(e,t){for(var s=this._hash.words,n=s[0],i=s[1],o=s[2],r=s[3],a=s[4],u=s[5],h=s[6],d=s[7],p=0;p<64;p++){if(p<16)l[p]=0|e[t+p];else{var f=l[p-15],g=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,m=l[p-2],y=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;l[p]=g+l[p-7]+y+l[p-16]}var _=n&i^n&o^i&o,w=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),k=d+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&u^~a&h)+c[p]+l[p];d=h,h=u,u=a,a=r+k|0,r=o,o=i,i=n,n=k+(w+_)|0}s[0]=s[0]+n|0,s[1]=s[1]+i|0,s[2]=s[2]+o|0,s[3]=s[3]+r|0,s[4]=s[4]+a|0,s[5]=s[5]+u|0,s[6]=s[6]+h|0,s[7]=s[7]+d|0},_doFinalize:function(){var t=this._data,s=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return s[i>>>5]|=128<<24-i%32,s[14+(i+64>>>9<<4)]=e.floor(n/4294967296),s[15+(i+64>>>9<<4)]=n,t.sigBytes=4*s.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(u),t.HmacSHA256=o._createHmacHelper(u)}(Math),s.SHA256)})),ht=ut,dt=te((function(e,t){e.exports=ne.HmacSHA256}));const pt=()=>{let e;if(!Promise){e=()=>{},e.promise={};const t=()=>{throw new ze({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}const t=new Promise(((t,s)=>{e=(e,n)=>e?s(e):t(n)}));return e.promise=t,e};function ft(e){return void 0===e}function gt(e){return"[object Null]"===Object.prototype.toString.call(e)}var mt;!function(e){e.WEB="web",e.WX_MP="wx_mp"}(mt||(mt={}));const yt={adapter:null,runtime:void 0},_t=["anonymousUuidKey"];class wt extends lt{constructor(){super(),yt.adapter.root.tcbObject||(yt.adapter.root.tcbObject={})}setItem(e,t){yt.adapter.root.tcbObject[e]=t}getItem(e){return yt.adapter.root.tcbObject[e]}removeItem(e){delete yt.adapter.root.tcbObject[e]}clear(){delete yt.adapter.root.tcbObject}}function kt(e,t){switch(e){case"local":return t.localStorage||new wt;case"none":return new wt;default:return t.sessionStorage||new wt}}class bt{constructor(e){if(!this._storage){this._persistence=yt.adapter.primaryStorage||e.persistence,this._storage=kt(this._persistence,yt.adapter);const t=`access_token_${e.env}`,s=`access_token_expire_${e.env}`,n=`refresh_token_${e.env}`,i=`anonymous_uuid_${e.env}`,o=`login_type_${e.env}`,r=`user_info_${e.env}`;this.keys={accessTokenKey:t,accessTokenExpireKey:s,refreshTokenKey:n,anonymousUuidKey:i,loginTypeKey:o,userInfoKey:r}}}updatePersistence(e){if(e===this._persistence)return;const t="local"===this._persistence;this._persistence=e;const s=kt(e,yt.adapter);for(const n in this.keys){const e=this.keys[n];if(t&&_t.includes(n))continue;const i=this._storage.getItem(e);ft(i)||gt(i)||(s.setItem(e,i),this._storage.removeItem(e))}this._storage=s}setStore(e,t,s){if(!this._storage)return;const n={version:s||"localCachev1",content:t},i=JSON.stringify(n);try{this._storage.setItem(e,i)}catch(o){throw o}}getStore(e,t){try{if(!this._storage)return}catch(n){return""}t=t||"localCachev1";const s=this._storage.getItem(e);return s&&s.indexOf(t)>=0?JSON.parse(s).content:""}removeStore(e){this._storage.removeItem(e)}}const vt={},St={};function Tt(e){return vt[e]}class It{constructor(e,t){this.data=t||null,this.name=e}}class Pt extends It{constructor(e,t){super("error",{error:e,data:t}),this.error=e}}const xt=new class{constructor(){this._listeners={}}on(e,t){return s=e,n=t,(i=this._listeners)[s]=i[s]||[],i[s].push(n),this;var s,n,i}off(e,t){return function(e,t,s){if(s&&s[e]){const n=s[e].indexOf(t);-1!==n&&s[e].splice(n,1)}}(e,t,this._listeners),this}fire(e,t){if(e instanceof Pt)return console.error(e.error),this;const s="string"==typeof e?new It(e,t||{}):e,n=s.name;if(this._listens(n)){s.target=this;const e=this._listeners[n]?[...this._listeners[n]]:[];for(const t of e)t.call(this,s)}return this}_listens(e){return this._listeners[e]&&this._listeners[e].length>0}};function At(e,t){xt.on(e,t)}function Ct(e,t={}){xt.fire(e,t)}function Ot(e,t){xt.off(e,t)}const Lt="loginStateChanged",Et="loginStateExpire",Ft="loginTypeChanged",Ut="anonymousConverted",Dt="refreshAccessToken";var Rt;!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"}(Rt||(Rt={}));const Mt=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],Nt={"X-SDK-Version":"1.3.5"};function $t(e,t,s){const n=e[t];e[t]=function(t){const i={},o={};s.forEach((s=>{const{data:n,headers:r}=s.call(e,t);Object.assign(i,n),Object.assign(o,r)}));const r=t.data;return r&&(()=>{var e;if(e=r,"[object FormData]"!==Object.prototype.toString.call(e))t.data={...r,...i};else for(const t in i)r.append(t,i[t])})(),t.headers={...t.headers||{},...o},n.call(e,t)}}function jt(){const e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:{...Nt,"x-seqid":e}}}class qt{constructor(e={}){var t;this.config=e,this._reqClass=new yt.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`请求在${this.config.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]}),this._cache=Tt(this.config.env),this._localCache=(t=this.config.env,St[t]),$t(this._reqClass,"post",[jt]),$t(this._reqClass,"upload",[jt]),$t(this._reqClass,"download",[jt])}async post(e){return await this._reqClass.post(e)}async upload(e){return await this._reqClass.upload(e)}async download(e){return await this._reqClass.download(e)}async refreshAccessToken(){let e,t;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{e=await this._refreshAccessTokenPromise}catch(s){t=s}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,t)throw t;return e}async _refreshAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:s,loginTypeKey:n,anonymousUuidKey:i}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(t);let o=this._cache.getStore(s);if(!o)throw new ze({message:"未登录CloudBase"});const r={refresh_token:o},a=await this.request("auth.fetchAccessTokenWithRefreshToken",r);if(a.data.code){const{code:e}=a.data;if("SIGN_PARAM_INVALID"===e||"REFRESH_TOKEN_EXPIRED"===e||"INVALID_REFRESH_TOKEN"===e){if(this._cache.getStore(n)===Rt.ANONYMOUS&&"INVALID_REFRESH_TOKEN"===e){const e=this._cache.getStore(i),t=this._cache.getStore(s),n=await this.send("auth.signInAnonymously",{anonymous_uuid:e,refresh_token:t});return this.setRefreshToken(n.refresh_token),this._refreshAccessToken()}Ct(Et),this._cache.removeStore(s)}throw new ze({code:a.data.code,message:`刷新access token失败:${a.data.code}`})}if(a.data.access_token)return Ct(Dt),this._cache.setStore(e,a.data.access_token),this._cache.setStore(t,a.data.access_token_expire+Date.now()),{accessToken:a.data.access_token,accessTokenExpire:a.data.access_token_expire};a.data.refresh_token&&(this._cache.removeStore(s),this._cache.setStore(s,a.data.refresh_token),this._refreshAccessToken())}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:s}=this._cache.keys;if(!this._cache.getStore(s))throw new ze({message:"refresh token不存在,登录状态异常"});let n=this._cache.getStore(e),i=this._cache.getStore(t),o=!0;return this._shouldRefreshAccessTokenHook&&!(await this._shouldRefreshAccessTokenHook(n,i))&&(o=!1),(!n||!i||i{e.wxOpenId&&e.wxPublicId&&(t=!0)})),{users:s,hasPrimaryUid:t}}setPrimaryUid(e){return this._request.send("auth.setPrimaryUid",{uid:e})}unlink(e){return this._request.send("auth.unlink",{platform:e})}async update(e){const{nickName:t,gender:s,avatarUrl:n,province:i,country:o,city:r}=e,{data:a}=await this._request.send("auth.updateUserInfo",{nickName:t,gender:s,avatarUrl:n,province:i,country:o,city:r});this.setLocalUserInfo(a)}async refresh(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setUserInfo(){const{userInfoKey:e}=this._cache.keys,t=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((e=>{this[e]=t[e]})),this.location={country:t.country,province:t.province,city:t.city}}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e),this.setUserInfo()}}class Wt{constructor(e){if(!e)throw new ze({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=Tt(e);const{refreshTokenKey:t,accessTokenKey:s,accessTokenExpireKey:n}=this._cache.keys,i=this._cache.getStore(t),o=this._cache.getStore(s),r=this._cache.getStore(n);this.credential={refreshToken:i,accessToken:o,accessTokenExpire:r},this.user=new zt(e)}get isAnonymousAuth(){return this.loginType===Rt.ANONYMOUS}get isCustomAuth(){return this.loginType===Rt.CUSTOM}get isWeixinAuth(){return this.loginType===Rt.WECHAT||this.loginType===Rt.WECHAT_OPEN||this.loginType===Rt.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}class Jt extends Ht{async signIn(){this._cache.updatePersistence("local");const{anonymousUuidKey:e,refreshTokenKey:t}=this._cache.keys,s=this._cache.getStore(e)||void 0,n=this._cache.getStore(t)||void 0,i=await this._request.send("auth.signInAnonymously",{anonymous_uuid:s,refresh_token:n});if(i.uuid&&i.refresh_token){this._setAnonymousUUID(i.uuid),this.setRefreshToken(i.refresh_token),await this._request.refreshAccessToken(),Ct(Lt),Ct(Ft,{env:this.config.env,loginType:Rt.ANONYMOUS,persistence:"local"});const e=new Wt(this.config.env);return await e.user.refresh(),e}throw new ze({message:"匿名登录失败"})}async linkAndRetrieveDataWithTicket(e){const{anonymousUuidKey:t,refreshTokenKey:s}=this._cache.keys,n=this._cache.getStore(t),i=this._cache.getStore(s),o=await this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:n,refresh_token:i,ticket:e});if(o.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(o.refresh_token),await this._request.refreshAccessToken(),Ct(Ut,{env:this.config.env}),Ct(Ft,{loginType:Rt.CUSTOM,persistence:"local"}),{credential:{refreshToken:o.refresh_token}};throw new ze({message:"匿名转化失败"})}_setAnonymousUUID(e){const{anonymousUuidKey:t,loginTypeKey:s}=this._cache.keys;this._cache.removeStore(t),this._cache.setStore(t,e),this._cache.setStore(s,Rt.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}class Vt extends Ht{async signIn(e){if("string"!=typeof e)throw new ze({code:"PARAM_ERROR",message:"ticket must be a string"});const{refreshTokenKey:t}=this._cache.keys,s=await this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(t)||""});if(s.refresh_token)return this.setRefreshToken(s.refresh_token),await this._request.refreshAccessToken(),Ct(Lt),Ct(Ft,{env:this.config.env,loginType:Rt.CUSTOM,persistence:this.config.persistence}),await this.refreshUserInfo(),new Wt(this.config.env);throw new ze({message:"自定义登录失败"})}}class Yt extends Ht{async signIn(e,t){if("string"!=typeof e)throw new ze({code:"PARAM_ERROR",message:"email must be a string"});const{refreshTokenKey:s}=this._cache.keys,n=await this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:t,refresh_token:this._cache.getStore(s)||""}),{refresh_token:i,access_token:o,access_token_expire:r}=n;if(i)return this.setRefreshToken(i),o&&r?this.setAccessToken(o,r):await this._request.refreshAccessToken(),await this.refreshUserInfo(),Ct(Lt),Ct(Ft,{env:this.config.env,loginType:Rt.EMAIL,persistence:this.config.persistence}),new Wt(this.config.env);throw n.code?new ze({code:n.code,message:`邮箱登录失败: ${n.message}`}):new ze({message:"邮箱登录失败"})}async activate(e){return this._request.send("auth.activateEndUserMail",{token:e})}async resetPasswordWithToken(e,t){return this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:t})}}class Qt extends Ht{async signIn(e,t){if("string"!=typeof e)throw new ze({code:"PARAM_ERROR",message:"username must be a string"});"string"!=typeof t&&(t="",console.warn("password is empty"));const{refreshTokenKey:s}=this._cache.keys,n=await this._request.send("auth.signIn",{loginType:Rt.USERNAME,username:e,password:t,refresh_token:this._cache.getStore(s)||""}),{refresh_token:i,access_token_expire:o,access_token:r}=n;if(i)return this.setRefreshToken(i),r&&o?this.setAccessToken(r,o):await this._request.refreshAccessToken(),await this.refreshUserInfo(),Ct(Lt),Ct(Ft,{env:this.config.env,loginType:Rt.USERNAME,persistence:this.config.persistence}),new Wt(this.config.env);throw n.code?new ze({code:n.code,message:`用户名密码登录失败: ${n.message}`}):new ze({message:"用户名密码登录失败"})}}class Xt{constructor(e){this.config=e,this._cache=Tt(e.env),this._request=Kt(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),At(Ft,this._onLoginTypeChanged)}get currentUser(){const e=this.hasLoginState();return e&&e.user||null}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}anonymousAuthProvider(){return new Jt(this.config)}customAuthProvider(){return new Vt(this.config)}emailAuthProvider(){return new Yt(this.config)}usernameAuthProvider(){return new Qt(this.config)}async signInAnonymously(){return new Jt(this.config).signIn()}async signInWithEmailAndPassword(e,t){return new Yt(this.config).signIn(e,t)}signInWithUsernameAndPassword(e,t){return new Qt(this.config).signIn(e,t)}async linkAndRetrieveDataWithTicket(e){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new Jt(this.config)),At(Ut,this._onAnonymousConverted),await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)}async signOut(){if(this.loginType===Rt.ANONYMOUS)throw new ze({message:"匿名用户不支持登出操作"});const{refreshTokenKey:e,accessTokenKey:t,accessTokenExpireKey:s}=this._cache.keys,n=this._cache.getStore(e);if(!n)return;const i=await this._request.send("auth.logout",{refresh_token:n});return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.removeStore(s),Ct(Lt),Ct(Ft,{env:this.config.env,loginType:Rt.NULL,persistence:this.config.persistence}),i}async signUpWithEmailAndPassword(e,t){return this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:t})}async sendPasswordResetEmail(e){return this._request.send("auth.sendPasswordResetEmail",{email:e})}onLoginStateChanged(e){At(Lt,(()=>{const t=this.hasLoginState();e.call(this,t)}));const t=this.hasLoginState();e.call(this,t)}onLoginStateExpired(e){At(Et,e.bind(this))}onAccessTokenRefreshed(e){At(Dt,e.bind(this))}onAnonymousConverted(e){At(Ut,e.bind(this))}onLoginTypeChanged(e){At(Ft,(()=>{const t=this.hasLoginState();e.call(this,t)}))}async getAccessToken(){return{accessToken:(await this._request.getAccessToken()).accessToken,env:this.config.env}}hasLoginState(){const{refreshTokenKey:e}=this._cache.keys;return this._cache.getStore(e)?new Wt(this.config.env):null}async isUsernameRegistered(e){if("string"!=typeof e)throw new ze({code:"PARAM_ERROR",message:"username must be a string"});const{data:t}=await this._request.send("auth.isUsernameRegistered",{username:e});return t&&t.isRegistered}getLoginState(){return Promise.resolve(this.hasLoginState())}async signInWithTicket(e){return new Vt(this.config).signIn(e)}shouldRefreshAccessToken(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then((e=>e.code?e:{...e.data,requestId:e.seqId}))}getAuthHeader(){const{refreshTokenKey:e,accessTokenKey:t}=this._cache.keys,s=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(t)+"/@@/"+s}}_onAnonymousConverted(e){const{env:t}=e.data;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(e){const{loginType:t,persistence:s,env:n}=e.data;n===this.config.env&&(this._cache.updatePersistence(s),this._cache.setStore(this._cache.keys.loginTypeKey,t))}}const Gt=function(e,t){t=t||pt();const s=Kt(this.config.env),{cloudPath:n,filePath:i,onUploadProgress:o,fileType:r="image"}=e;return s.send("storage.getUploadMetadata",{path:n}).then((e=>{const{data:{url:a,authorization:c,token:l,fileId:u,cosFileId:h},requestId:d}=e,p={key:n,signature:c,"x-cos-meta-fileid":h,success_action_status:"201","x-cos-security-token":l};s.upload({url:a,data:p,file:i,name:n,fileType:r,onUploadProgress:o}).then((e=>{201===e.statusCode?t(null,{fileID:u,requestId:d}):t(new ze({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${e.data}`}))})).catch((e=>{t(e)}))})).catch((e=>{t(e)})),t.promise},Zt=function(e,t){t=t||pt();const s=Kt(this.config.env),{cloudPath:n}=e;return s.send("storage.getUploadMetadata",{path:n}).then((e=>{t(null,e)})).catch((e=>{t(e)})),t.promise},es=function({fileList:e},t){if(t=t||pt(),!e||!Array.isArray(e))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};for(let n of e)if(!n||"string"!=typeof n)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"};const s={fileid_list:e};return Kt(this.config.env).send("storage.batchDeleteFile",s).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},ts=function({fileList:e},t){t=t||pt(),e&&Array.isArray(e)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});let s=[];for(let i of e)"object"==typeof i?(i.hasOwnProperty("fileID")&&i.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),s.push({fileid:i.fileID,max_age:i.maxAge})):"string"==typeof i?s.push({fileid:i}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"});const n={file_list:s};return Kt(this.config.env).send("storage.batchGetDownloadUrl",n).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},ss=async function({fileID:e},t){const s=(await ts.call(this,{fileList:[{fileID:e,maxAge:600}]})).fileList[0];if("SUCCESS"!==s.code)return t?t(s):new Promise((e=>{e(s)}));const n=Kt(this.config.env);let i=s.download_url;if(i=encodeURI(i),!t)return n.download({url:i});t(await n.download({url:i}))},ns=function({name:e,data:t,query:s,parse:n,search:i},o){const r=o||pt();let a;try{a=t?JSON.stringify(t):""}catch(l){return Promise.reject(l)}if(!e)return Promise.reject(new ze({code:"PARAM_ERROR",message:"函数名不能为空"}));const c={inQuery:s,parse:n,search:i,function_name:e,request_data:a};return Kt(this.config.env).send("functions.invokeFunction",c).then((e=>{if(e.code)r(null,e);else{let s=e.data.response_data;if(n)r(null,{result:s,requestId:e.requestId});else try{s=JSON.parse(e.data.response_data),r(null,{result:s,requestId:e.requestId})}catch(t){r(new ze({message:"response data must be json"}))}}return r.promise})).catch((e=>{r(e)})),r.promise},is={timeout:15e3,persistence:"session"},os={};class rs{constructor(e){this.config=e||this.config,this.authObj=void 0}init(e){switch(yt.adapter||(this.requestClient=new yt.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:`请求在${(e.timeout||5e3)/1e3}s内未完成,已中断`})),this.config={...is,...e},!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 rs(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;const t=e||yt.adapter.primaryStorage||is.persistence;var s;return t!==this.config.persistence&&(this.config.persistence=t),function(e){const{env:t}=e;vt[t]=new bt(e),St[t]=new bt({...e,persistence:"local"})}(this.config),s=this.config,Bt[s.env]=new qt(s),this.authObj=new Xt(this.config),this.authObj}on(e,t){return At.apply(this,[e,t])}off(e,t){return Ot.apply(this,[e,t])}callFunction(e,t){return ns.apply(this,[e,t])}deleteFile(e,t){return es.apply(this,[e,t])}getTempFileURL(e,t){return ts.apply(this,[e,t])}downloadFile(e,t){return ss.apply(this,[e,t])}uploadFile(e,t){return Gt.apply(this,[e,t])}getUploadMetadata(e,t){return Zt.apply(this,[e,t])}registerExtension(e){os[e.name]=e}async invokeExtension(e,t){const s=os[e];if(!s)throw new ze({message:`扩展${e} 必须先注册`});return await s.invoke(t,this)}useAdapters(e){const{adapter:t,runtime:s}=function(e){const t=(s=e,"[object Array]"===Object.prototype.toString.call(s)?e:[e]);var s;for(const n of t){const{isMatch:e,genAdapter:t,runtime:s}=n;if(e())return{adapter:t(),runtime:s}}}(e)||{};t&&(yt.adapter=t),s&&(yt.runtime=s)}}var as=new rs;function cs(e,t,s){void 0===s&&(s={});var n=/\?/.test(t),i="";for(var o in s)""===i?!n&&(t+="?"):i+="&",i+=o+"="+encodeURIComponent(s[o]);return/^http(s)?:\/\//.test(t+=i)?t:""+e+t}class ls{post(e){const{url:t,data:s,headers:n}=e;return new Promise(((e,i)=>{We.request({url:cs("https:",t),data:s,method:"POST",header:n,success(t){e(t)},fail(e){i(e)}})}))}upload(e){return new Promise(((t,s)=>{const{url:n,file:i,data:o,headers:r,fileType:a}=e,c=We.uploadFile({url:cs("https:",n),name:"file",formData:Object.assign({},o),filePath:i,fileType:a,header:r,success(e){const s={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&o.success_action_status&&(s.statusCode=parseInt(o.success_action_status,10)),t(s)},fail(e){s(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((t=>{e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}const us={setItem(e,t){We.setStorageSync(e,t)},getItem:e=>We.getStorageSync(e),removeItem(e){We.removeStorageSync(e)},clear(){We.clearStorageSync()}};var hs={genAdapter:function(){return{root:{},reqClass:ls,localStorage:us,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};as.useAdapters(hs);const ds=as,ps=ds.init;ds.init=function(e){e.env=e.spaceId;const t=ps.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;const s=t.auth;return t.auth=function(e){const t=s.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((e=>{var s;t[e]=(s=t[e],function(e){e=e||{};const{success:t,fail:n,complete:i}=He(e);if(!(t||n||i))return s.call(this,e);s.call(this,e).then((e=>{t&&t(e),i&&i(e)}),(e=>{n&&n(e),i&&i(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var fs=ds,gs=class extends it{getAccessToken(){return new Promise(((e,t)=>{const s="Anonymous_Access_token";this.setAccessToken(s),e(s)}))}setupRequest(e,t){const s=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};"auth"!==t&&(s.token=this.accessToken,n["x-basement-token"]=this.accessToken),n["x-serverless-sign"]=tt(s,this.config.clientSecret);const i=et();n["x-client-info"]=encodeURIComponent(JSON.stringify(i));const{token:o}=Ve();return n["x-client-token"]=o,{url:this.config.requestUrl,method:"POST",data:s,dataType:"json",header:JSON.parse(JSON.stringify(n))}}uploadFileToOSS({url:e,formData:t,name:s,filePath:n,fileType:i,onUploadProgress:o}){return new Promise(((r,a)=>{const c=this.adapter.uploadFile({url:e,formData:t,name:s,filePath:n,fileType:i,success(e){e&&e.statusCode<400?r(e):a(new ze({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){a(new ze({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof o&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((e=>{o({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}uploadFile({filePath:e,cloudPath:t,fileType:s="image",onUploadProgress:n}){if(!t)throw new ze({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});let i;return this.getOSSUploadOptionsFromPath({cloudPath:t}).then((t=>{const{url:o,formData:r,name:a}=t.result;i=t.result.fileUrl;const c={url:o,formData:r,name:a,filePath:e,fileType:s};return this.uploadFileToOSS(Object.assign({},c,{onUploadProgress:n}))})).then((()=>this.reportOSSUpload({cloudPath:t}))).then((t=>new Promise(((s,n)=>{t.success?s({success:!0,filePath:e,fileID:i}):n(new ze({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(t)).then((e=>{if(e.success)return e.result;throw new ze({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}getTempFileURL({fileList:e,maxAge:t}={}){if(!Array.isArray(e)||0===e.length)throw new ze({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const s={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e,maxAge:t})};return this.request(this.setupRequest(s)).then((e=>{if(e.success)return{fileList:e.result.fileList.map((e=>({fileID:e.fileID,tempFileURL:e.tempFileURL})))};throw new ze({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}},ms={init(e){const t=new gs(e),s={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return s},t.customAuth=t.auth,t}},ys=te((function(e,t){e.exports=ne.enc.Hex}));function _s(e="",t={}){const{data:s,functionName:n,method:i,headers:o,signHeaderKeys:r=[],config:a}=t,c=Date.now(),l="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),u=Object.assign({},o,{"x-from-app-id":a.spaceAppId,"x-from-env-id":a.spaceId,"x-to-env-id":a.spaceId,"x-from-instance-id":c,"x-from-function-name":n,"x-client-timestamp":c,"x-alipay-source":"client","x-request-id":l,"x-alipay-callid":l,"x-trace-id":l}),h=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(r),[d="",p=""]=e.split("?")||[],f=function(e){const t=e.signedHeaders.join(";"),s=e.signedHeaders.map((t=>`${t.toLowerCase()}:${e.headers[t]}\n`)).join(""),n=ht(e.body).toString(ys),i=`${e.method.toUpperCase()}\n${e.path}\n${e.query}\n${s}\n${t}\n${n}\n`,o=ht(i).toString(ys),r=`HMAC-SHA256\n${e.timestamp}\n${o}\n`,a=dt(r,e.secretKey).toString(ys);return`HMAC-SHA256 Credential=${e.secretId}, SignedHeaders=${t}, Signature=${a}`}({path:d,query:p,method:i,headers:u,timestamp:c,body:JSON.stringify(s),secretId:a.accessKey,secretKey:a.secretKey,signedHeaders:h.sort()});return{url:`${a.endpoint}${e}`,headers:Object.assign({},u,{Authorization:f})}}function ws({url:e,data:t,method:s="POST",headers:n={}}){return new Promise(((i,o)=>{We.request({url:e,method:s,data:t,header:n,dataType:"json",complete:(e={})=>{const t=n["x-trace-id"]||"";if(!e.statusCode||e.statusCode>=400){const{message:s,errMsg:n,trace_id:i}=e.data||{};return o(new ze({code:"SYS_ERR",message:s||n||"request:fail",requestId:i||t}))}i({status:e.statusCode,data:e.data,headers:e.header,requestId:t})}})}))}function ks(e,t){const{path:s,data:n,method:i="GET"}=e,{url:o,headers:r}=_s(s,{functionName:"",data:n,method:i,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t});return ws({url:o,data:n,method:i,headers:r}).then((e=>{const t=e.data||{};if(!t.success)throw new ze({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((e=>{throw new ze({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function bs(e=""){const t=e.trim().replace(/^cloud:\/\//,""),s=t.indexOf("/");if(s<=0)throw new ze({code:"INVALID_PARAM",message:"fileID不合法"});const n=t.substring(0,s),i=t.substring(s+1);return n!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),i}function vs(e=""){return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}var Ss={init:e=>{e.provider="alipay";const t=new class{constructor(e){if(["spaceId","spaceAppId","accessKey","secretKey"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),e.endpoint){if("string"!=typeof e.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(e.endpoint))throw new Error("endpoint must start with https://");e.endpoint=e.endpoint.replace(/\/$/,"")}this.config=Object.assign({},e,{endpoint:e.endpoint||`https://${e.spaceId}.api-hz.cloudbasefunction.cn`})}callFunction(e){return function(e,t){const{name:s,data:n}=e,i="POST",{url:o,headers:r}=_s("/functions/invokeFunction",{functionName:s,data:n,method:i,headers:{"x-to-function-name":s},signHeaderKeys:["x-to-function-name"],config:t});return ws({url:o,data:n,method:i,headers:r}).then((e=>({errCode:0,success:!0,requestId:e.requestId,result:e.data}))).catch((e=>{throw new ze({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}uploadFileToOSS({url:e,filePath:t,fileType:s,formData:n,onUploadProgress:i}){return new Promise(((o,r)=>{const a=We.uploadFile({url:e,filePath:t,fileType:s,formData:n,name:"file",success(e){e&&e.statusCode<400?o(e):r(new ze({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){r(new ze({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof i&&a&&"function"==typeof a.onProgressUpdate&&a.onProgressUpdate((e=>{i({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}async uploadFile({filePath:e,cloudPath:t="",fileType:s="image",onUploadProgress:n}){if("string"!==ue(t))throw new ze({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new ze({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new ze({code:"INVALID_PARAM",message:"cloudPath不合法"});const i=await ks({path:"/".concat(t.replace(/^\//,""),"?post_url")},this.config),{file_id:o,upload_url:r,form_data:a}=i,c=a&&a.reduce(((e,t)=>(e[t.key]=t.value,e)),{});return this.uploadFileToOSS({url:r,filePath:e,fileType:s,formData:c,onUploadProgress:n}).then((()=>({fileID:o})))}async getTempFileURL({fileList:e}){return new Promise(((t,s)=>{(!e||e.length<0)&&s(new ze({errCode:"INVALID_PARAM",errMsg:"fileList不能为空数组"})),e.length>50&&s(new ze({errCode:"INVALID_PARAM",errMsg:"fileList数组长度不能超过50"}));const n=[];for(const i of e){"string"!==ue(i)&&s(new ze({errCode:"INVALID_PARAM",errMsg:"fileList的元素必须是非空的字符串"}));const e=bs.call(this,i);n.push({file_id:e,expire:600})}ks({path:"/?download_url",data:{file_list:n},method:"POST"},this.config).then((e=>{const{file_list:s=[]}=e;t({fileList:s.map((e=>({fileID:vs.call(this,e.file_id),tempFileURL:e.download_url})))})})).catch((e=>s(e)))}))}}(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function Ts({data:e}){let t;t=et();const s=JSON.parse(JSON.stringify(e||{}));if(Object.assign(s,{clientInfo:t}),!s.uniIdToken){const{token:e}=Ve();e&&(s.uniIdToken=e)}return s}const Is=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}];var Ps=/[\\^$.*+?()[\]{}|]/g,xs=RegExp(Ps.source);function As(e,t,s){return e.replace(new RegExp((n=t)&&xs.test(n)?n.replace(Ps,"\\$&"):n,"g"),s);var n}const Cs=2e4,Os={code:20101,message:"Invalid client"};function Ls(e){const{errSubject:t,subject:s,errCode:n,errMsg:i,code:o,message:r,cause:a}=e||{};return new ze({subject:t||s||"uni-secure-network",code:n||o||Cs,message:i||r,cause:a})}let Es;function Fs({secretType:e}={}){return"request"===e||"response"===e||"both"===e}function Us({functionName:e,result:t,logPvd:s}){}function Ds(e){const t=e.callFunction,s=function(s){const n=s.name;s.data=Ts.call(e,{data:s.data});const i={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay"}[this.config.provider],o=Fs(s)||false;return t.call(this,s).then((e=>(e.errCode=0,!o&&Us.call(this,{functionName:n,result:e,logPvd:i}),Promise.resolve(e))),(e=>(!o&&Us.call(this,{functionName:n,result:e,logPvd:i}),e&&e.message&&(e.message=function({message:e="",extraInfo:t={},formatter:s=[]}={}){for(let n=0;ns.provider===e&&s.spaceId===t));return n&&n.config}({provider:e,spaceId:t});if(!a||!a.accessControl||!a.accessControl.enable)return!1;const c=a.accessControl.function||{},l=Object.keys(c);if(0===l.length)return!0;const u=function(e,t){let s,n,i;for(let o=0;oe.trim())).indexOf(t)>-1&&(n=r):i=r:s=r}return s||n||i}(l,s);if(!u)return!1;if((c[u]||[]).find(((e={})=>e.appId===n&&(e.platform||"").toLowerCase()===r.toLowerCase())))return!0;throw console.error(`此应用[appId: ${n}, platform: ${r}]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client`),Ls(Os)}({provider:n,spaceId:i,functionName:o})?new Es({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(s.bind(e))(t):r(t),Object.defineProperty(a,"result",{get:()=>(console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),a.then((e=>("undefined"!=typeof UTSJSONObject&&(e.result=new UTSJSONObject(e.result)),e)))}}Es=class{constructor(){throw Ls({message:"Platform web is not supported by secure network"})}};const Rs=Symbol("CLIENT_DB_INTERNAL");function Ms(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=Rs,e.inspect=null,e.__v_raw=void 0,new Proxy(e,{get(e,s,n){if("_uniClient"===s)return null;if("symbol"==typeof s)return e[s];if(s in e||"string"!=typeof s){const t=e[s];return"function"==typeof t?t.bind(e):t}return t.get(e,s,n)}})}function Ns(e){return{on:(t,s)=>{e[t]=e[t]||[],e[t].indexOf(s)>-1||e[t].push(s)},off:(t,s)=>{e[t]=e[t]||[];const n=e[t].indexOf(s);-1!==n&&e[t].splice(n,1)}}}const $s=["db.Geo","db.command","command.aggregate"];function js(e,t){return $s.indexOf(`${e}.${t}`)>-1}function qs(e){switch(ue(e=Je(e))){case"array":return e.map((e=>qs(e)));case"object":return e._internalType===Rs||Object.keys(e).forEach((t=>{e[t]=qs(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function Bs(e){return e&&e.content&&e.content.$method}class Ks{constructor(e,t,s){this.content=e,this.prevStage=t||null,this.udb=null,this._database=s}toJSON(){let e=this;const t=[e.content];for(;e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((e=>({$method:e.$method,$param:qs(e.$param)})))}}toString(){return JSON.stringify(this.toJSON())}getAction(){const e=this.toJSON().$db.find((e=>"action"===e.$method));return e&&e.$param&&e.$param[0]}getCommand(){return{$db:this.toJSON().$db.filter((e=>"action"!==e.$method))}}get isAggregate(){let e=this;for(;e;){const t=Bs(e),s=Bs(e.prevStage);if("aggregate"===t&&"collection"===s||"pipeline"===t)return!0;e=e.prevStage}return!1}get isCommand(){let e=this;for(;e;){if("command"===Bs(e))return!0;e=e.prevStage}return!1}get isAggregateCommand(){let e=this;for(;e;){const t=Bs(e),s=Bs(e.prevStage);if("aggregate"===t&&"command"===s)return!0;e=e.prevStage}return!1}getNextStageFn(e){const t=this;return function(){return Hs({$method:e,$param:qs(Array.from(arguments))},t,t._database)}}get count(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}get remove(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}get(){return this._send("get",Array.from(arguments))}get add(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}update(){return this._send("update",Array.from(arguments))}end(){return this._send("end",Array.from(arguments))}get set(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}_send(e,t){const s=this.getAction(),n=this.getCommand();return n.$db.push({$method:e,$param:qs(t)}),this._database._callCloudFunction({action:s,command:n})}}function Hs(e,t,s){return Ms(new Ks(e,t,s),{get(e,t){let n="db";return e&&e.content&&(n=e.content.$method),js(n,t)?Hs({$method:t},e,s):function(){return Hs({$method:t,$param:qs(Array.from(arguments))},e,s)}}})}function zs({path:e,method:t}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...e.map((e=>({$method:e}))),{$method:t,$param:this.param}]}}toString(){return JSON.stringify(this.toJSON())}}}function Ws(e,t={}){return Ms(new e(t),{get:(e,t)=>js("db",t)?Hs({$method:t},null,e):function(){return Hs({$method:t,$param:qs(Array.from(arguments))},null,e)}})}class Js extends class{constructor({uniClient:e={},isJQL:t=!1}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e._isDefault&&(this._dbCallBacks=ve("_globalUniCloudDatabaseCallback")),t||(this.auth=Ns(this._authCallBacks)),this._isJQL=t,Object.assign(this,Ns(this._dbCallBacks)),this.env=Ms({},{get:(e,t)=>({$env:t})}),this.Geo=Ms({},{get:(e,t)=>zs({path:["Geo"],method:t})}),this.serverDate=zs({path:[],method:"serverDate"}),this.RegExp=zs({path:[],method:"RegExp"})}getCloudEnv(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}_callback(e,t){const s=this._dbCallBacks;s[e]&&s[e].forEach((e=>{e(...t)}))}_callbackAuth(e,t){const s=this._authCallBacks;s[e]&&s[e].forEach((e=>{e(...t)}))}multiSend(){const e=Array.from(arguments),t=e.map((e=>{const t=e.getAction(),s=e.getCommand();if("getTemp"!==s.$db[s.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:s}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}{_parseResult(e){return this._isJQL?e.result:e}_callCloudFunction({action:e,command:t,multiCommand:s,queryList:n}){function i(e,t){if(s&&n)for(let s=0;sxe(Ae(r,"complete"),e))).then((()=>(i(null,e),je(Le,{type:Ue,content:e}),Promise.reject(e))))}const c=xe(Ae(r,"invoke")),l=this._uniClient;return c.then((()=>l.callFunction({name:"DCloud-clientDB",type:"CLIENT_DB",data:{action:e,command:t,multiCommand:s}}))).then((e=>{const{code:t,message:s,token:n,tokenExpired:c,systemInfo:l=[]}=e.result;if(l)for(let i=0;i(console.warn(s),n)})}}return h=e,xe(Ae(r,"success"),h).then((()=>xe(Ae(r,"complete"),h))).then((()=>{i(h,null);const e=o._parseResult(h);return je(Le,{type:Ue,content:e}),Promise.resolve(e)}));var h}),(e=>(/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),a(new ze({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId})))))}}const Vs="token无效,跳转登录页面",Ys="token过期,跳转登录页面",Qs={TOKEN_INVALID_TOKEN_EXPIRED:Ys,TOKEN_INVALID_INVALID_CLIENTID:Vs,TOKEN_INVALID:Vs,TOKEN_INVALID_WRONG_TOKEN:Vs,TOKEN_INVALID_ANONYMOUS_USER:Vs},Xs={"uni-id-token-expired":Ys,"uni-id-check-token-failed":Vs,"uni-id-token-not-exist":Vs,"uni-id-check-device-feature-failed":Vs};function Gs(e,t){let s="";return s=e?`${e}/${t}`:t,s.replace(/^\//,"")}function Zs(e=[],t=""){const s=[],n=[];return e.forEach((e=>{!0===e.needLogin?s.push(Gs(t,e.path)):!1===e.needLogin&&n.push(Gs(t,e.path))})),{needLoginPage:s,notNeedLoginPage:n}}function en(e){return e.split("?")[0].replace(/^\//,"")}function tn(){return function(e){let t=e&&e.$page&&e.$page.fullPath||"";return t?("/"!==t.charAt(0)&&(t="/"+t),t):t}(function(){const e=s();return e[e.length-1]}())}function sn(){return en(tn())}function nn(e="",t={}){if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;const s=t.list,n=en(e);return s.some((e=>e.pagePath===n))}const on=!!ee.uniIdRouter,{loginPage:rn,routerNeedLogin:an,resToLogin:cn,needLoginPage:ln,notNeedLoginPage:un,loginPageInTabBar:hn}=function({pages:e=[],subPackages:t=[],uniIdRouter:s={},tabBar:n={}}=ee){const{loginPage:i,needLogin:o=[],resToLogin:r=!0}=s,{needLoginPage:a,notNeedLoginPage:c}=Zs(e),{needLoginPage:l,notNeedLoginPage:u}=function(e=[]){const t=[],s=[];return e.forEach((e=>{const{root:n,pages:i=[]}=e,{needLoginPage:o,notNeedLoginPage:r}=Zs(i,n);t.push(...o),s.push(...r)})),{needLoginPage:t,notNeedLoginPage:s}}(t);return{loginPage:i,routerNeedLogin:o,resToLogin:r,needLoginPage:[...a,...l],notNeedLoginPage:[...c,...u],loginPageInTabBar:nn(i,n)}}();if(ln.indexOf(rn)>-1)throw new Error(`Login page [${rn}] should not be "needLogin", please check your pages.json`);function dn(e){const t=sn();if("/"===e.charAt(0))return e;const[s,n]=e.split("?"),i=s.replace(/^\//,"").split("/"),o=t.split("/");o.pop();for(let r=0;r-1?n+`&uniIdRedirectUrl=${encodeURIComponent(i)}`:n+`?uniIdRedirectUrl=${encodeURIComponent(i)}`:n);var n,i;hn?"navigateTo"!==e&&"redirectTo"!==e||(e="switchTab"):"switchTab"===e&&(e="navigateTo");const o={navigateTo:_,redirectTo:w,switchTab:k,reLaunch:b};setTimeout((()=>{o[e]({url:s})}))}function gn({url:e}={}){const t={abortLoginPageJump:!1,autoToLoginPage:!1},s=function(){const{token:e,tokenExpired:t}=Ve();let s;if(e){if(t-1)&&(ln.indexOf(t)>-1||an.some((t=>{return s=e,new RegExp(t).test(s);var s})))}(e)&&s){if(s.uniIdRedirectUrl=e,Me(Ee).length>0)return setTimeout((()=>{je(Ee,s)}),0),t.abortLoginPageJump=!0,t;t.autoToLoginPage=!0}return t}function mn(){!function(){const e=tn(),{abortLoginPageJump:t,autoToLoginPage:s}=gn({url:e});t||s&&fn({api:"redirectTo",redirect:e})}();const e=["navigateTo","redirectTo","reLaunch","switchTab"];for(let t=0;t{const{type:t,content:s}=e;let n=!1;switch(t){case"cloudobject":n=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in Xs}(s);break;case"clientdb":n=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in Qs}(s)}n&&function(e={}){const t=Me(Ee);Ke().then((()=>{const s=tn();if(s&&pn({redirect:s}))return t.length>0?je(Ee,Object.assign({uniIdRedirectUrl:s},e)):void(rn&&fn({api:"navigateTo",redirect:s}))}))}(s)}))}function _n(e){var t;(t=e).onResponse=function(e){Ne(Le,e)},t.offResponse=function(e){$e(Le,e)},function(e){e.onNeedLogin=function(e){Ne(Ee,e)},e.offNeedLogin=function(e){$e(Ee,e)},on&&(ve("_globalUniCloudStatus").needLoginInit||(ve("_globalUniCloudStatus").needLoginInit=!0,Ke().then((()=>{mn.call(e)})),cn&&yn.call(e)))}(e),function(e){e.onRefreshToken=function(e){Ne(Fe,e)},e.offRefreshToken=function(e){$e(Fe,e)}}(e)}let wn;const kn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bn=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function vn(){const e=Ve().token||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let s;try{s=JSON.parse((n=t[1],decodeURIComponent(wn(n).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(i){throw new Error("获取当前用户信息出错,详细错误信息为:"+i.message)}var n;return s.tokenExpired=1e3*s.exp,delete s.exp,delete s.iat,s}wn="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 s,n,i="",o=0;o>16&255):64===n?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}:atob;var Sn=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(te((function(s,n){Object.defineProperty(n,"__esModule",{value:!0});const o="chooseAndUploadFile:ok",r="chooseAndUploadFile:fail";function a(e,t){return e.tempFiles.forEach(((e,s)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+s+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function c(e,t,{onChooseFile:s,onUploadProgress:n}){return t.then((e=>{if(s){const t=s(e);if(void 0!==t)return Promise.resolve(t).then((t=>void 0===t?e:t))}return e})).then((t=>!1===t?{errMsg:o,tempFilePaths:[],tempFiles:[]}:function(e,t,s=5,n){(t=Object.assign({},t)).errMsg=o;const i=t.tempFiles,r=i.length;let a=0;return new Promise((o=>{for(;a=r)return void(!i.find((e=>!e.url&&!e.errMsg))&&o(t));const l=i[s];e.uploadFile({provider:l.provider,filePath:l.path,cloudPath:l.cloudPath,fileType:l.fileType,cloudPathAsRealPath:l.cloudPathAsRealPath,onUploadProgress(e){e.index=s,e.tempFile=l,e.tempFilePath=l.path,n&&n(e)}}).then((e=>{l.url=e.fileID,s{l.errMsg=e.errMsg||e.message,s{e({count:s,sizeType:n,sourceType:i,extension:o,success(e){t(a(e,"image"))},fail(e){c({errMsg:e.errMsg.replace("chooseImage:fail",r)})}})}))}(n),n):"video"===n.type?c(s,function(e){const{camera:s,compressed:n,maxDuration:i,sourceType:o=["album","camera"],extension:c}=e;return new Promise(((e,l)=>{t({camera:s,compressed:n,maxDuration:i,sourceType:o,extension:c,success(t){const{tempFilePath:s,duration:n,size:i,height:o,width:r}=t;e(a({errMsg:"chooseVideo:ok",tempFilePaths:[s],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:s,size:i,type:t.tempFile&&t.tempFile.type||"",width:r,height:o,duration:n,fileType:"video",cloudPath:""}]},"video"))},fail(e){l({errMsg:e.errMsg.replace("chooseVideo:fail",r)})}})}))}(n),n):c(s,function(e){const{count:t,extension:s}=e;return new Promise(((e,n)=>{let o=i;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(o=wx.chooseMessageFile),"function"!=typeof o)return n({errMsg:r+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});o({type:"all",count:t,extension:s,success(t){e(a(t))},fail(e){n({errMsg:e.errMsg.replace("chooseFile:fail",r)})}})}))}(n),n)}}})));function Tn(e){return{props:{localdata:{type:Array,default:()=>[]},options:{type:[Object,Array],default:()=>({})},spaceInfo:{type:Object,default:()=>({})},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:()=>({mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}),created(){this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((()=>{var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{if("manual"===this.loadtime)return;let s=!1;const n=[];for(let i=2;i{this.mixinDatacomLoading=!1;const{data:n,count:i}=s.result;this.getcount&&(this.mixinDatacomPage.count=i),this.mixinDatacomHasMore=n.length{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=e,this.mixinDatacomError=e,s&&s(e)})))},mixinDatacomGet(t={}){let s;t=t||{},s="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);const n=t.action||this.action;n&&(s=s.action(n));const i=t.collection||this.collection;s=Array.isArray(i)?s.collection(...i):s.collection(i);const o=t.where||this.where;o&&Object.keys(o).length&&(s=s.where(o));const r=t.field||this.field;r&&(s=s.field(r));const a=t.foreignKey||this.foreignKey;a&&(s=s.foreignKey(a));const c=t.groupby||this.groupby;c&&(s=s.groupBy(c));const l=t.groupField||this.groupField;l&&(s=s.groupField(l)),!0===(void 0!==t.distinct?t.distinct:this.distinct)&&(s=s.distinct());const u=t.orderby||this.orderby;u&&(s=s.orderBy(u));const h=void 0!==t.pageCurrent?t.pageCurrent:this.mixinDatacomPage.current,d=void 0!==t.pageSize?t.pageSize:this.mixinDatacomPage.size,p=void 0!==t.getcount?t.getcount:this.getcount,f=void 0!==t.gettree?t.gettree:this.gettree,g=void 0!==t.gettreepath?t.gettreepath:this.gettreepath,m={getCount:p},y={limitLevel:void 0!==t.limitlevel?t.limitlevel:this.limitlevel,startWith:void 0!==t.startwith?t.startwith:this.startwith};return f&&(m.getTree=y),g&&(m.getTreePath=y),s=s.skip(d*(h-1)).limit(d).get(m),s}}}}function In(e){return ve("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}async function Pn({openid:e,callLoginByWeixin:t=!1}={}){throw In(this),new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `web`")}async function xn(e){const t=In(this);return t.initPromise||(t.initPromise=Pn.call(this,e).then((e=>e)).catch((e=>{throw delete t.initPromise,e}))),t.initPromise}function An(e){const t={getSystemInfo:v,getPushClientId:S};return function(s){return new Promise(((n,i)=>{t[e]({...s,success(e){n(e)},fail(e){i(e)}})}))}}class Cn extends class{constructor(){this._callback={}}addListener(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}on(e,t){return this.addListener(e,t)}removeListener(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');const s=this._callback[e];if(!s)return;const n=function(e,t){for(let s=e.length-1;s>=0;s--)if(e[s]===t)return s;return-1}(s,t);s.splice(n,1)}off(e,t){return this.removeListener(e,t)}removeAllListener(e){delete this._callback[e]}emit(e,...t){const s=this._callback[e];if(s)for(let n=0;n{if(!e)throw new Error("Invalid appId, please check the manifest.json file");if(!t)throw new Error("Invalid push client id");this._appId=e,this._pushClientId=t,this._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),this.emit("open"),this._initMessageListener()}),(e=>{throw this.emit("error",e),this.close(),e}))}async open(){return this.init()}_isUniCloudSSE(e){if("receive"!==e.type)return!1;const t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}_receivePushMessage(e){if(!this._isUniCloudSSE(e))return;const t=e&&e.data&&e.data.payload,{action:s,messageId:n,message:i}=t;this._payloadQueue.push({action:s,messageId:n,message:i}),this._consumMessage()}_consumMessage(){for(;;){const e=this._payloadQueue.find((e=>e.messageId===this._currentMessageId+1));if(!e)break;this._currentMessageId++,this._parseMessagePayload(e)}}_parseMessagePayload(e){const{action:t,messageId:s,message:n}=e;"end"===t?this._end({messageId:s,message:n}):"message"===t&&this._appendMessage({messageId:s,message:n})}_appendMessage({messageId:e,message:t}={}){this.emit("message",t)}_end({messageId:e,message:t}={}){this.emit("end",t),this.close()}_initMessageListener(){l(this._uniPushMessageCallback)}_destroy(){u(this._uniPushMessageCallback)}toJSON(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}close(){this._destroy(),this.emit("close")}}const On={tcb:fs,tencent:fs,aliyun:ot,private:ms,alipay:Ss};let Ln=new class{init(e){let t={};const s=On[e.provider];if(!s)throw new Error("未提供正确的provider参数");var n;return t=s.init(e),function(e){e._initPromiseHub||(e._initPromiseHub=new me({createPromise:function(){let t=Promise.resolve();t=new Promise((e=>{setTimeout((()=>{e()}),1)}));const s=e.auth();return t.then((()=>s.getLoginState())).then((e=>e?Promise.resolve():s.signInAnonymously()))}}))}(t),Ds(t),function(e){const t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),(n=t).database=function(e){if(e&&Object.keys(e).length>0)return n.init(e).database();if(this._database)return this._database;const t=Ws(Js,{uniClient:n});return this._database=t,t},n.databaseForJQL=function(e){if(e&&Object.keys(e).length>0)return n.init(e).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;const t=Ws(Js,{uniClient:n,isJQL:!0});return this._databaseForJQL=t,t},function(e){e.getCurrentUserInfo=vn,e.chooseAndUploadFile=Sn.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return Tn(e)}}),e.SSEChannel=Cn,e.initSecureNetworkByWeixin=function(e){return function({openid:t,callLoginByWeixin:s=!1}={}){return xn.call(e,{openid:t,callLoginByWeixin:s})}}(e),e.importObject=function(t){return function(s,n={}){n=function(e,t={}){return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==typeof t.secretMethods&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);const{customUI:i,loadingOptions:l,errorOptions:u,parseSystemError:h}=n,d=!i;return new Proxy({},{get(i,p){switch(p){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function({fn:e,interceptorName:t,getCallbackArgs:s}={}){return async function(...n){const i=s?s({params:n}):{};let o,r;try{return await xe(Ae(t,"invoke"),{...i}),o=await e(...n),await xe(Ae(t,"success"),{...i,result:o}),o}catch(a){throw r=a,await xe(Ae(t,"fail"),{...i,error:r}),r}finally{await xe(Ae(t,"complete"),r?{...i,error:r}:{...i,result:o})}}}({fn:async function i(...f){let g;d&&o({title:l.title,mask:l.mask});const m={name:s,type:"OBJECT",data:{method:p,params:f}};"object"==typeof n.secretMethods&&function(e,t){const s=t.data.method,n=e.secretMethods||{},i=n[s]||n["*"];i&&(t.secretType=i)}(n,m);let y=!1;try{g=await t.callFunction(m)}catch(e){y=!0,g={result:new ze(e)}}const{errSubject:_,errCode:w,errMsg:k,newToken:b}=g.result||{};if(d&&r(),b&&b.token&&b.tokenExpired&&(Ye(b),je(Fe,{...b})),w){let e=k;if(y&&h&&(e=(await h({objectName:s,methodName:p,params:f,errSubject:_,errCode:w,errMsg:k})).errMsg||k),d)if("toast"===u.type)a({title:e,icon:"none"});else{if("modal"!==u.type)throw new Error(`Invalid errorOptions.type: ${u.type}`);{const{confirm:t}=await async function({title:e,content:t,showCancel:s,cancelText:n,confirmText:i}={}){return new Promise(((o,r)=>{c({title:e,content:t,showCancel:s,cancelText:n,confirmText:i,success(e){o(e)},fail(){o({confirm:!1,cancel:!0})}})}))}({title:"提示",content:e,showCancel:u.retry,cancelText:"取消",confirmText:u.retry?"重试":"确定"});if(u.retry&&t)return i(...f)}}const t=new ze({subject:_,code:w,message:k,requestId:g.requestId});throw t.detail=g.result,je(Le,{type:Re,content:t}),t}return je(Le,{type:Re,content:g.result}),g.result},interceptorName:"callObject",getCallbackArgs:function({params:e}={}){return{objectName:s,methodName:p,params:e}}})}})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((e=>{if(!t[e])return;const s=t[e];var n,i;t[e]=function(){return s.apply(t,Array.from(arguments))},t[e]=(n=t[e],i=e,function(e){let t=!1;if("callFunction"===i){const s=e&&e.type||ae;t=s!==ae}const s="callFunction"===i&&!t,o=this._initPromiseHub.exec();e=e||{};const{success:r,fail:a,complete:c}=He(e),l=o.then((()=>t?Promise.resolve():xe(Ae(i,"invoke"),e))).then((()=>n.call(this,e))).then((e=>t?Promise.resolve(e):xe(Ae(i,"success"),e).then((()=>xe(Ae(i,"complete"),e))).then((()=>(s&&je(Le,{type:De,content:e}),Promise.resolve(e))))),(e=>t?Promise.reject(e):xe(Ae(i,"fail"),e).then((()=>xe(Ae(i,"complete"),e))).then((()=>(je(Le,{type:De,content:e}),Promise.reject(e))))));if(!(r||a||c))return l;l.then((e=>{r&&r(e),c&&c(e),s&&je(Le,{type:De,content:e})}),(e=>{a&&a(e),c&&c(e),s&&je(Le,{type:De,content:e})}))}).bind(t)})),t.init=this.init,t}};(()=>{const e=we;let t={};if(e&&1===e.length)t=e[0],Ln=Ln.init(t),Ln._isDefault=!0;else{const t=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"];let s;s=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",t.forEach((e=>{Ln[e]=function(){return console.error(s),Promise.reject(new ze({code:"SYS_ERR",message:s}))}}))}Object.assign(Ln,{get mixinDatacom(){return Tn(Ln)}}),_n(Ln),Ln.addInterceptor=Ie,Ln.removeInterceptor=Pe,Ln.interceptObject=Ce})();var En=Ln;const Fn="chooseAndUploadFile:fail";function Un(e,t){return e.tempFiles.forEach(((e,s)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+s+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function Dn(e,t=5,s){const n=(e=JSON.parse(JSON.stringify(e))).length;let i=0,o=this;return new Promise((r=>{for(;i=n)return void(!e.find((e=>!e.url&&!e.errMsg))&&r(e));const c=e[t],l=o.files.findIndex((e=>e.uuid===c.uuid));c.url="",delete c.errMsg,En.uploadFile({filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,onUploadProgress:e=>{e.index=l,s&&s(e)}}).then((e=>{c.url=e.fileID,c.index=l,t{c.errMsg=e.errMsg||e.message,c.index=l,t{if(t){const s=t(e);if(void 0!==s)return Promise.resolve(s).then((t=>void 0===t?e:t))}return e})).then((e=>!1===e?{errMsg:"chooseAndUploadFile:ok",tempFilePaths:[],tempFiles:[]}:e))}function Mn(s={type:"all"}){return"image"===s.type?Rn(function(t){const{count:s,sizeType:n=["original","compressed"],sourceType:i,extension:o}=t;return new Promise(((t,r)=>{e({count:s,sizeType:n,sourceType:i,extension:o,success(e){t(Un(e,"image"))},fail(e){r({errMsg:e.errMsg.replace("chooseImage:fail",Fn)})}})}))}(s),s):"video"===s.type?Rn(function(e){const{camera:s,compressed:n,maxDuration:i,sourceType:o,extension:r}=e;return new Promise(((e,a)=>{t({camera:s,compressed:n,maxDuration:i,sourceType:o,extension:r,success(t){const{tempFilePath:s,duration:n,size:i,height:o,width:r}=t;e(Un({errMsg:"chooseVideo:ok",tempFilePaths:[s],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:s,size:i,type:t.tempFile&&t.tempFile.type||"",width:r,height:o,duration:n,fileType:"video",cloudPath:""}]},"video"))},fail(e){a({errMsg:e.errMsg.replace("chooseVideo:fail",Fn)})}})}))}(s),s):Rn(function(e){const{count:t,extension:s}=e;return new Promise(((e,n)=>{let o=i;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(o=wx.chooseMessageFile),"function"!=typeof o)return n({errMsg:Fn+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});o({type:"all",count:t,extension:s,success(t){e(Un(t))},fail(e){n({errMsg:e.errMsg.replace("chooseFile:fail",Fn)})}})}))}(s),s)}const Nn=e=>{const t=e.lastIndexOf("."),s=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,s)}},$n=e=>{if(Array.isArray(e))return e;return e.replace(/(\[|\])/g,"").split(",")},jn=async(e,t="image")=>{const s=Nn(e.name).ext.toLowerCase();let n={name:e.name,uuid:e.uuid,extname:s||"",cloudPath:e.cloudPath,fileType:e.fileType,url:e.path||e.path,size:e.size,image:{},path:e.path,video:{}};if("image"===t){const t=await(i=e.path,new Promise(((e,t)=>{P({src:i,success(t){e(t)},fail(e){t(e)}})})));delete n.video,n.image.width=t.width,n.image.height=t.height,n.image.location=t.path}else delete n.image;var i;return n};const qn=G({name:"uniFilePicker",components:{uploadImage:G({name:"uploadImage",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},limit:{type:[Number,String],default:9},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto",border:{}})},delIcon:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1}},computed:{styles(){return Object.assign({width:"auto",height:"auto",border:{}},this.imageStyles)},boxStyle(){const{width:e="auto",height:t="auto"}=this.styles;let s={};"auto"===t?"auto"!==e?(s.height=this.value2px(e),s["padding-top"]=0):s.height=0:(s.height=this.value2px(t),s["padding-top"]=0),s.width="auto"===e?"auto"!==t?this.value2px(t):"33.3%":this.value2px(e);let n="";for(let i in s)n+=`${i}:${s[i]};`;return n},borderStyle(){let{border:e}=this.styles,t={};if("boolean"==typeof e)t.border=e?"1px #eee solid":"none";else{let s=e&&e.width||1;s=this.value2px(s);let n=e&&e.radius||3;n=this.value2px(n),t={"border-width":s,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":n}}let s="";for(let n in t)s+=`${n}:${t[n]};`;return s}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",e)},choose(){this.$emit("choose")},delFile(e){this.$emit("delFile",e)},prviewImage(e,t){let s=[];1===Number(this.limit)&&this.disablePreview&&!this.disabled&&this.$emit("choose"),this.disablePreview||(this.filesList.forEach((e=>{s.push(e.url)})),x({urls:s,current:t}))},value2px:e=>("number"==typeof e?e+="px":-1===e.indexOf("%")&&(e=-1!==e.indexOf("px")?e:e+"px"),e)}},[["render",function(e,t,s,n,i,o){const r=j,a=q,c=B;return A(),C(a,{class:"uni-file-picker__container"},{default:O((()=>[(A(!0),L(E,null,F(s.filesList,((e,t)=>(A(),C(a,{class:"file-picker__box",key:t,style:U(o.boxStyle)},{default:O((()=>[D(a,{class:"file-picker__box-content",style:U(o.borderStyle)},{default:O((()=>[D(r,{class:"file-image",src:e.url,mode:"aspectFill",onClick:R((s=>o.prviewImage(e,t)),["stop"])},null,8,["src","onClick"]),s.delIcon&&!s.readonly?(A(),C(a,{key:0,class:"icon-del-box",onClick:R((e=>o.delFile(t)),["stop"])},{default:O((()=>[D(a,{class:"icon-del"}),D(a,{class:"icon-del rotate"})])),_:2},1032,["onClick"])):M("",!0),e.progress&&100!==e.progress||0===e.progress?(A(),C(a,{key:1,class:"file-picker__progress"},{default:O((()=>[D(c,{class:"file-picker__progress-item",percent:-1===e.progress?0:e.progress,"stroke-width":"4",backgroundColor:e.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])])),_:2},1024)):M("",!0),e.errMsg?(A(),C(a,{key:2,class:"file-picker__mask",onClick:R((s=>o.uploadFiles(e,t)),["stop"])},{default:O((()=>[N(" 点击重试 ")])),_:2},1032,["onClick"])):M("",!0)])),_:2},1032,["style"])])),_:2},1032,["style"])))),128)),s.filesList.length[D(a,{class:"file-picker__box-content is-add",style:U(o.borderStyle),onClick:o.choose},{default:O((()=>[$(e.$slots,"default",{},(()=>[D(a,{class:"icon-add"}),D(a,{class:"icon-add rotate"})]),!0)])),_:3},8,["style","onClick"])])),_:3},8,["style"])):M("",!0)])),_:3})}],["__scopeId","data-v-86b162f5"]]),uploadFile:G({name:"uploadFile",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},delIcon:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},showType:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},readonly:{type:Boolean,default:!1}},computed:{list(){let e=[];return this.filesList.forEach((t=>{e.push(t)})),e},styles(){return Object.assign({border:!0,dividline:!0,"border-style":{}},this.listStyles)},borderStyle(){let{borderStyle:e,border:t}=this.styles,s={};if(t){let t=e&&e.width||1;t=this.value2px(t);let n=e&&e.radius||5;n=this.value2px(n),s={"border-width":t,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":n}}else s.border="none";let n="";for(let i in s)n+=`${i}:${s[i]};`;return n},borderLineStyle(){let e={},{borderStyle:t}=this.styles;if(t&&t.color&&(e["border-color"]=t.color),t&&t.width){let s=t&&t.width||1,n=t&&t.style||0;"number"==typeof s?s+="px":s=s.indexOf("px")?s:s+"px",e["border-width"]=s,"number"==typeof n?n+="px":n=n.indexOf("px")?n:n+"px",e["border-top-style"]=n}let s="";for(let n in e)s+=`${n}:${e[n]};`;return s}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",{item:e,index:t})},choose(){this.$emit("choose")},delFile(e){this.$emit("delFile",e)},value2px:e=>("number"==typeof e?e+="px":e=-1!==e.indexOf("px")?e:e+"px",e)}},[["render",function(e,t,s,n,i,o){const r=q,a=B;return A(),C(r,{class:"uni-file-picker__files"},{default:O((()=>[s.readonly?M("",!0):(A(),C(r,{key:0,class:"files-button",onClick:o.choose},{default:O((()=>[$(e.$slots,"default",{},void 0,!0)])),_:3},8,["onClick"])),o.list.length>0?(A(),C(r,{key:1,class:"uni-file-picker__lists is-text-box",style:U(o.borderStyle)},{default:O((()=>[(A(!0),L(E,null,F(o.list,((e,t)=>(A(),C(r,{class:K(["uni-file-picker__lists-box",{"files-border":0!==t&&o.styles.dividline}]),key:t,style:U(0!==t&&o.styles.dividline&&o.borderLineStyle)},{default:O((()=>[D(r,{class:"uni-file-picker__item"},{default:O((()=>[D(r,{class:"files__name"},{default:O((()=>[N(H(e.name),1)])),_:2},1024),s.delIcon&&!s.readonly?(A(),C(r,{key:0,class:"icon-del-box icon-files",onClick:e=>o.delFile(t)},{default:O((()=>[D(r,{class:"icon-del icon-files"}),D(r,{class:"icon-del rotate"})])),_:2},1032,["onClick"])):M("",!0)])),_:2},1024),e.progress&&100!==e.progress||0===e.progress?(A(),C(r,{key:0,class:"file-picker__progress"},{default:O((()=>[D(a,{class:"file-picker__progress-item",percent:-1===e.progress?0:e.progress,"stroke-width":"4",backgroundColor:e.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])])),_:2},1024)):M("",!0),"error"===e.status?(A(),C(r,{key:1,class:"file-picker__mask",onClick:R((s=>o.uploadFiles(e,t)),["stop"])},{default:O((()=>[N(" 点击重试 ")])),_:2},1032,["onClick"])):M("",!0)])),_:2},1032,["class","style"])))),128))])),_:1},8,["style"])):M("",!0)])),_:3})}],["__scopeId","data-v-5d376bd5"]])},options:{virtualHost:!0},emits:["select","success","fail","progress","delete","update:modelValue","input"],props:{modelValue:{type:[Array,Object],default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},delIcon:{type:Boolean,default:!0},autoUpload:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},mode:{type:String,default:"grid"},fileMediatype:{type:String,default:"image"},fileExtname:{type:[Array,String],default:()=>[]},title:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto"})},readonly:{type:Boolean,default:!1},returnType:{type:String,default:"array"},sizeType:{type:Array,default:()=>["original","compressed"]},sourceType:{type:Array,default:()=>["album","camera"]}},data:()=>({files:[],localValue:[]}),watch:{modelValue:{handler(e,t){this.setValue(e,t)},immediate:!0}},computed:{filesList(){let e=[];return this.files.forEach((t=>{e.push(t)})),e},showType(){return"image"===this.fileMediatype?this.mode:"list"},limitLength(){return"object"===this.returnType?1:this.limit?this.limit>=9?9:this.limit:1}},created(){En.config&&En.config.provider||(this.noSpace=!0,En.chooseAndUploadFile=Mn),this.form=this.getForm("uniForms"),this.formItem=this.getForm("uniFormsItem"),this.form&&this.formItem&&this.formItem.name&&(this.rename=this.formItem.name,this.form.inputChildrens.push(this))},methods:{clearFiles(e){0===e||e?this.files.splice(e,1):(this.files=[],this.$nextTick((()=>{this.setEmit()}))),this.$nextTick((()=>{this.setEmit()}))},upload(){let e=[];return this.files.forEach(((t,s)=>{"ready"!==t.status&&"error"!==t.status||e.push(Object.assign({},t))})),this.uploadFiles(e)},async setValue(e,t){const s=async e=>{let t="";return t=e.fileID?e.fileID:e.url,/cloud:\/\/([\w.]+\/?)\S*/.test(t)&&(e.fileID=t,e.url=await this.getTempFileURL(t)),e.url&&(e.path=e.url),e};if("object"===this.returnType)e?await s(e):e={};else{e||(e=[]);for(let t=0;t0?e:[];this.files=[].concat(n)},choose(){this.disabled||(this.files.length>=Number(this.limitLength)&&"grid"!==this.showType&&"array"===this.returnType?a({title:`您最多选择 ${this.limitLength} 个文件`,icon:"none"}):this.chooseFiles())},chooseFiles(){const e=$n(this.fileExtname);En.chooseAndUploadFile({type:this.fileMediatype,compressed:!1,sizeType:this.sizeType,sourceType:this.sourceType,extension:e.length>0?e:void 0,count:this.limitLength-this.files.length,onChooseFile:this.chooseFileCallback,onUploadProgress:e=>{this.setProgress(e,e.index)}}).then((e=>{this.setSuccessAndError(e.tempFiles)})).catch((e=>{console.log("选择失败",e)}))},async chooseFileCallback(e){const t=$n(this.fileExtname);(1===Number(this.limitLength)&&this.disablePreview&&!this.disabled||"object"===this.returnType)&&(this.files=[]);let{filePaths:s,files:n}=((e,t)=>{let s=[],n=[];return t&&0!==t.length?(e.tempFiles.forEach((e=>{const i=Nn(e.name).ext.toLowerCase();-1!==t.indexOf(i)&&(n.push(e),s.push(e.path))})),n.length!==e.tempFiles.length&&a({title:`当前选择了${e.tempFiles.length}个文件 ,${e.tempFiles.length-n.length} 个文件格式不正确`,icon:"none",duration:5e3}),{filePaths:s,files:n}):{filePaths:s,files:n}})(e,t);t&&t.length>0||(s=e.tempFilePaths,n=e.tempFiles);let i=[];for(let o=0;o{this.setProgress(e,e.index,!0)})).then((e=>(this.setSuccessAndError(e),e))).catch((e=>{console.log(e)}))},async setSuccessAndError(e,t){let s=[],n=[],i=[],o=[];for(let r=0;re.uuid===t.uuid)):t.index;if(-1===a||!this.files)break;if("request:fail"===t.errMsg)this.files[a].url=t.path,this.files[a].status="error",this.files[a].errMsg=t.errMsg,n.push(this.files[a]),o.push(this.files[a].url);else{this.files[a].errMsg="",this.files[a].fileID=t.url;/cloud:\/\/([\w.]+\/?)\S*/.test(t.url)?this.files[a].url=await this.getTempFileURL(t.url):this.files[a].url=t.url,this.files[a].status="success",this.files[a].progress+=1,s.push(this.files[a]),i.push(this.files[a].fileID)}}s.length>0&&(this.setEmit(),this.$emit("success",{tempFiles:this.backObject(s),tempFilePaths:i})),n.length>0&&this.$emit("fail",{tempFiles:this.backObject(n),tempFilePaths:o})},setProgress(e,t,s){this.files.length;const n=Math.round(100*e.loaded/e.total);let i=t;s||(i=this.files.findIndex((t=>t.uuid===e.tempFile.uuid))),-1!==i&&this.files[i]&&(this.files[i].progress=n-1,this.$emit("progress",{index:i,progress:parseInt(n),tempFile:this.files[i]}))},delFile(e){this.$emit("delete",{tempFile:this.files[e],tempFilePath:this.files[e].url}),this.files.splice(e,1),this.$nextTick((()=>{this.setEmit()}))},getFileExt(e){const t=e.lastIndexOf("."),s=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,s)}},setEmit(){let e=[];"object"===this.returnType?(e=this.backObject(this.files)[0],this.localValue=e||null):(e=this.backObject(this.files),this.localValue||(this.localValue=[]),this.localValue=[...e]),this.$emit("update:modelValue",this.localValue)},backObject(e){let t=[];return e.forEach((e=>{t.push({extname:e.extname,fileType:e.fileType,image:e.image,name:e.name,path:e.path,size:e.size,fileID:e.fileID,url:e.url,uuid:e.uuid,status:e.status,cloudPath:e.cloudPath})})),t},async getTempFileURL(e){e={fileList:[].concat(e)};return(await En.getTempFileURL(e)).fileList[0].tempFileURL||""},getForm(e="uniForms"){let t=this.$parent,s=t.$options.name;for(;s!==e;){if(t=t.$parent,!t)return!1;s=t.$options.name}return t}}},[["render",function(e,t,s,n,i,o){const r=W,a=q,c=z("upload-image"),l=J,u=z("upload-file");return A(),C(a,{class:"uni-file-picker"},{default:O((()=>[s.title?(A(),C(a,{key:0,class:"uni-file-picker__header"},{default:O((()=>[D(r,{class:"file-title"},{default:O((()=>[N(H(s.title),1)])),_:1}),D(r,{class:"file-count"},{default:O((()=>[N(H(o.filesList.length)+"/"+H(o.limitLength),1)])),_:1})])),_:1})):M("",!0),"image"===s.fileMediatype&&"grid"===o.showType?(A(),C(c,{key:1,readonly:s.readonly,"image-styles":s.imageStyles,"files-list":o.filesList,limit:o.limitLength,disablePreview:s.disablePreview,delIcon:s.delIcon,onUploadFiles:o.uploadFiles,onChoose:o.choose,onDelFile:o.delFile},{default:O((()=>[$(e.$slots,"default",{},(()=>[D(a,{class:"is-add"},{default:O((()=>[D(a,{class:"icon-add"}),D(a,{class:"icon-add rotate"})])),_:1})]),!0)])),_:3},8,["readonly","image-styles","files-list","limit","disablePreview","delIcon","onUploadFiles","onChoose","onDelFile"])):M("",!0),"image"!==s.fileMediatype||"grid"!==o.showType?(A(),C(u,{key:2,readonly:s.readonly,"list-styles":s.listStyles,"files-list":o.filesList,showType:o.showType,delIcon:s.delIcon,onUploadFiles:o.uploadFiles,onChoose:o.choose,onDelFile:o.delFile},{default:O((()=>[$(e.$slots,"default",{},(()=>[D(l,{type:"primary",size:"mini"},{default:O((()=>[N("选择文件")])),_:1})]),!0)])),_:3},8,["readonly","list-styles","files-list","showType","delIcon","onUploadFiles","onChoose","onDelFile"])):M("",!0)])),_:3})}],["__scopeId","data-v-ae18bd15"]]);class Bn{constructor(e,t){this.options=e,this.animation=V({...e}),this.currentStepAnimates={},this.next=0,this.$=t}_nvuePushAnimates(e,t){let s=this.currentStepAnimates[this.next],n={};if(n=s||{styles:{},config:{}},Kn.includes(e)){n.styles.transform||(n.styles.transform="");let s="";"rotate"===e&&(s="deg"),n.styles.transform+=`${e}(${t+s}) `}else n.styles[e]=`${t}`;this.currentStepAnimates[this.next]=n}_animateRun(e={},t={}){let s=this.$.$refs.ani.ref;if(s)return new Promise(((n,i)=>{nvueAnimation.transition(s,{styles:e,...t},(e=>{n()}))}))}_nvueNextAnimate(e,t=0,s){let n=e[t];if(n){let{styles:i,config:o}=n;this._animateRun(i,o).then((()=>{t+=1,this._nvueNextAnimate(e,t,s)}))}else this.currentStepAnimates={},"function"==typeof s&&s(),this.isEnd=!0}step(e={}){return this.animation.step(e),this}run(e){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((()=>{"function"==typeof e&&e()}),this.$.durationTime)}}const Kn=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"];function Hn(e,t){if(t)return clearTimeout(t.timer),new Bn(e,t)}Kn.concat(["opacity","backgroundColor"],["width","height","left","right","top","bottom"]).forEach((e=>{Bn.prototype[e]=function(...t){return this.animation[e](...t),this}}));const zn=G({name:"uniTransition",emits:["click","change"],props:{show:{type:Boolean,default:!1},modeClass:{type:[Array,String],default:()=>"fade"},duration:{type:Number,default:300},styles:{type:Object,default:()=>({})},customClass:{type:String,default:""},onceRender:{type:Boolean,default:!1}},data:()=>({isShow:!1,transform:"",opacity:1,animationData:{},durationTime:300,config:{}}),watch:{show:{handler(e){e?this.open():this.isShow&&this.close()},immediate:!0}},computed:{stylesObject(){let e={...this.styles,"transition-duration":this.duration/1e3+"s"},t="";for(let s in e){t+=this.toLine(s)+":"+e[s]+";"}return t},transformStyles(){return"transform:"+this.transform+";opacity:"+this.opacity+";"+this.stylesObject}},created(){this.config={duration:this.duration,timingFunction:"ease",transformOrigin:"50% 50%",delay:0},this.durationTime=this.duration},methods:{init(e={}){e.duration&&(this.durationTime=e.duration),this.animation=Hn(Object.assign(this.config,e),this)},onClick(){this.$emit("click",{detail:this.isShow})},step(e,t={}){if(this.animation){for(let t in e)try{"object"==typeof e[t]?this.animation[t](...e[t]):this.animation[t](e[t])}catch(ct){console.error(`方法 ${t} 不存在`)}return this.animation.step(t),this}},run(e){this.animation&&this.animation.run(e)},open(){clearTimeout(this.timer),this.transform="",this.isShow=!0;let{opacity:e,transform:t}=this.styleInit(!1);void 0!==e&&(this.opacity=e),this.transform=t,this.$nextTick((()=>{this.timer=setTimeout((()=>{this.animation=Hn(this.config,this),this.tranfromInit(!1).step(),this.animation.run(),this.$emit("change",{detail:this.isShow})}),20)}))},close(e){this.animation&&this.tranfromInit(!0).step().run((()=>{this.isShow=!1,this.animationData=null,this.animation=null;let{opacity:e,transform:t}=this.styleInit(!1);this.opacity=e||1,this.transform=t,this.$emit("change",{detail:this.isShow})}))},styleInit(e){let t={transform:""},s=(e,s)=>{"fade"===s?t.opacity=this.animationType(e)[s]:t.transform+=this.animationType(e)[s]+" "};return"string"==typeof this.modeClass?s(e,this.modeClass):this.modeClass.forEach((t=>{s(e,t)})),t},tranfromInit(e){let t=(e,t)=>{let s=null;"fade"===t?s=e?0:1:(s=e?"-100%":"0","zoom-in"===t&&(s=e?.8:1),"zoom-out"===t&&(s=e?1.2:1),"slide-right"===t&&(s=e?"100%":"0"),"slide-bottom"===t&&(s=e?"100%":"0")),this.animation[this.animationMode()[t]](s)};return"string"==typeof this.modeClass?t(e,this.modeClass):this.modeClass.forEach((s=>{t(e,s)})),this.animation},animationType:e=>({fade:e?1:0,"slide-top":`translateY(${e?"0":"-100%"})`,"slide-right":`translateX(${e?"0":"100%"})`,"slide-bottom":`translateY(${e?"0":"100%"})`,"slide-left":`translateX(${e?"0":"-100%"})`,"zoom-in":`scaleX(${e?1:.8}) scaleY(${e?1:.8})`,"zoom-out":`scaleX(${e?1:1.2}) scaleY(${e?1:1.2})`}),animationMode:()=>({fade:"opacity","slide-top":"translateY","slide-right":"translateX","slide-bottom":"translateY","slide-left":"translateX","zoom-in":"scale","zoom-out":"scale"}),toLine:e=>e.replace(/([A-Z])/g,"-$1").toLowerCase()}},[["render",function(e,t,s,n,i,o){const r=q;return i.isShow||s.onceRender?Y((A(),C(r,{key:0,ref:"ani",animation:i.animationData,class:K(s.customClass),style:U(o.transformStyles),onClick:o.onClick},{default:O((()=>[$(e.$slots,"default")])),_:3},8,["animation","class","style","onClick"])),[[Q,i.isShow]]):M("",!0)}]]),Wn={name:"uniPopup",components:{keypress:{name:"Keypress",props:{disable:{type:Boolean,default:!1}},mounted(){const e={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]};document.addEventListener("keyup",(t=>{if(this.disable)return;const s=Object.keys(e).find((s=>{const n=t.key,i=e[s];return i===n||Array.isArray(i)&&i.includes(n)}));s&&setTimeout((()=>{this.$emit(s,{})}),0)}))},render:()=>{}}},emits:["change","maskClick"],props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},isMaskClick:{type:Boolean,default:null},maskClick:{type:Boolean,default:null},backgroundColor:{type:String,default:"none"},safeArea:{type:Boolean,default:!0},maskBackgroundColor:{type:String,default:"rgba(0, 0, 0, 0.4)"}},watch:{type:{handler:function(e){this.config[e]&&this[this.config[e]](!0)},immediate:!0},isDesktop:{handler:function(e){this.config[e]&&this[this.config[this.type]](!0)},immediate:!0},maskClick:{handler:function(e){this.mkclick=e},immediate:!0},isMaskClick:{handler:function(e){this.mkclick=e},immediate:!0},showPopup(e){document.getElementsByTagName("body")[0].style.overflow=e?"hidden":"visible"}},data(){return{duration:300,ani:[],showPopup:!1,showTrans:!1,popupWidth:0,popupHeight:0,config:{top:"top",bottom:"bottom",center:"center",left:"left",right:"right",message:"top",dialog:"center",share:"bottom"},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:this.isDesktop?"fixforpc-top":"top"}},computed:{isDesktop(){return this.popupWidth>=500&&this.popupHeight>=500},bg(){return""===this.backgroundColor||"none"===this.backgroundColor?"transparent":this.backgroundColor}},mounted(){(()=>{const{windowWidth:e,windowHeight:t,windowTop:s,safeArea:n,screenHeight:i,safeAreaInsets:o}=y();this.popupWidth=e,this.popupHeight=t+(s||0),n&&this.safeArea?this.safeAreaInsets=o.bottom:this.safeAreaInsets=0})()},unmounted(){this.setH5Visible()},created(){null===this.isMaskClick&&null===this.maskClick?this.mkclick=!0:this.mkclick=null!==this.isMaskClick?this.isMaskClick:this.maskClick,this.animation?this.duration=300:this.duration=0,this.messageChild=null,this.clearPropagation=!1,this.maskClass.backgroundColor=this.maskBackgroundColor},methods:{setH5Visible(){document.getElementsByTagName("body")[0].style.overflow="visible"},closeMask(){this.maskShow=!1},disableMask(){this.mkclick=!1},clear(e){e.stopPropagation(),this.clearPropagation=!0},open(e){if(this.showPopup)return;e&&-1!==["top","center","bottom","left","right","message","dialog","share"].indexOf(e)||(e=this.type),this.config[e]?(this[this.config[e]](),this.$emit("change",{show:!0,type:e})):console.error("缺少类型:",e)},close(e){this.showTrans=!1,this.$emit("change",{show:!1,type:this.type}),clearTimeout(this.timer),this.timer=setTimeout((()=>{this.showPopup=!1}),300)},touchstart(){this.clearPropagation=!1},onTap(){this.clearPropagation?this.clearPropagation=!1:(this.$emit("maskClick"),this.mkclick&&this.close())},top(e){this.popupstyle=this.isDesktop?"fixforpc-top":"top",this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0,backgroundColor:this.bg},e||(this.showPopup=!0,this.showTrans=!0,this.$nextTick((()=>{this.messageChild&&"message"===this.type&&this.messageChild.timerClose()})))},bottom(e){this.popupstyle="bottom",this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0,paddingBottom:this.safeAreaInsets+"px",backgroundColor:this.bg},e||(this.showPopup=!0,this.showTrans=!0)},center(e){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"},e||(this.showPopup=!0,this.showTrans=!0)},left(e){this.popupstyle="left",this.ani=["slide-left"],this.transClass={position:"fixed",left:0,bottom:0,top:0,backgroundColor:this.bg,display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)},right(e){this.popupstyle="right",this.ani=["slide-right"],this.transClass={position:"fixed",bottom:0,right:0,top:0,backgroundColor:this.bg,display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)}}};const Jn=G(Wn,[["render",function(e,t,s,n,i,o){const r=Z(X("uni-transition"),zn),a=q,c=z("keypress");return i.showPopup?(A(),C(a,{key:0,class:K(["uni-popup",[i.popupstyle,o.isDesktop?"fixforpc-z-index":""]])},{default:O((()=>[D(a,{onTouchstart:o.touchstart},{default:O((()=>[i.maskShow?(A(),C(r,{key:"1",name:"mask","mode-class":"fade",styles:i.maskClass,duration:i.duration,show:i.showTrans,onClick:o.onTap},null,8,["styles","duration","show","onClick"])):M("",!0),D(r,{key:"2","mode-class":i.ani,name:"content",styles:i.transClass,duration:i.duration,show:i.showTrans,onClick:o.onTap},{default:O((()=>[D(a,{class:K(["uni-popup__wrapper",[i.popupstyle]]),style:U({backgroundColor:o.bg}),onClick:o.clear},{default:O((()=>[$(e.$slots,"default",{},void 0,!0)])),_:3},8,["style","class","onClick"])])),_:3},8,["mode-class","styles","duration","show","onClick"])])),_:3},8,["onTouchstart"]),i.maskShow?(A(),C(c,{key:0,onEsc:o.onTap},null,8,["onEsc"])):M("",!0)])),_:3},8,["class"])):M("",!0)}],["__scopeId","data-v-a1518068"]]);export{qn as _,Jn as a};
diff --git a/GDH5/unpackage/dist/build/h5/assets/uni-tag.065469d1.js b/GDH5/unpackage/dist/build/h5/assets/uni-tag.15315537.js
similarity index 94%
rename from GDH5/unpackage/dist/build/h5/assets/uni-tag.065469d1.js
rename to GDH5/unpackage/dist/build/h5/assets/uni-tag.15315537.js
index c3e5cf4..a02196f 100644
--- a/GDH5/unpackage/dist/build/h5/assets/uni-tag.065469d1.js
+++ b/GDH5/unpackage/dist/build/h5/assets/uni-tag.15315537.js
@@ -1 +1 @@
-import{o as t,d as e,w as a,a as i,t as s,n,b as l,p as r,i as u}from"./index-52f0fde8.js";import{_ as o}from"./_plugin-vue_export-helper.1b428a4d.js";const d=o({name:"UniTag",emits:["click"],props:{type:{type:String,default:"default"},size:{type:String,default:"normal"},text:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},inverted:{type:[Boolean,String],default:!1},circle:{type:[Boolean,String],default:!1},mark:{type:[Boolean,String],default:!1},customStyle:{type:String,default:""}},computed:{classes(){const{type:t,disabled:e,inverted:a,circle:i,mark:s,size:n,isTrue:l}=this;return["uni-tag--"+t,"uni-tag--"+n,l(e)?"uni-tag--disabled":"",l(a)?"uni-tag--"+t+"--inverted":"",l(i)?"uni-tag--circle":"",l(s)?"uni-tag--mark":"",l(a)?"uni-tag--inverted uni-tag-text--"+t:"","small"===n?"uni-tag-text--small":""].join(" ")}},methods:{isTrue:t=>!0===t||"true"===t,onClick(){this.isTrue(this.disabled)||this.$emit("click")}}},[["render",function(o,d,c,p,g,m){const y=u;return c.text?(t(),e(y,{key:0,class:n(["uni-tag",m.classes]),style:l(c.customStyle),onClick:m.onClick},{default:a((()=>[i(s(c.text),1)])),_:1},8,["class","style","onClick"])):r("",!0)}],["__scopeId","data-v-f9b60738"]]);export{d as _};
+import{o as t,d as e,w as a,a as i,t as s,n,b as l,p as r,i as u}from"./index-d9c03bf0.js";import{_ as o}from"./_plugin-vue_export-helper.1b428a4d.js";const d=o({name:"UniTag",emits:["click"],props:{type:{type:String,default:"default"},size:{type:String,default:"normal"},text:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},inverted:{type:[Boolean,String],default:!1},circle:{type:[Boolean,String],default:!1},mark:{type:[Boolean,String],default:!1},customStyle:{type:String,default:""}},computed:{classes(){const{type:t,disabled:e,inverted:a,circle:i,mark:s,size:n,isTrue:l}=this;return["uni-tag--"+t,"uni-tag--"+n,l(e)?"uni-tag--disabled":"",l(a)?"uni-tag--"+t+"--inverted":"",l(i)?"uni-tag--circle":"",l(s)?"uni-tag--mark":"",l(a)?"uni-tag--inverted uni-tag-text--"+t:"","small"===n?"uni-tag-text--small":""].join(" ")}},methods:{isTrue:t=>!0===t||"true"===t,onClick(){this.isTrue(this.disabled)||this.$emit("click")}}},[["render",function(o,d,c,p,g,m){const y=u;return c.text?(t(),e(y,{key:0,class:n(["uni-tag",m.classes]),style:l(c.customStyle),onClick:m.onClick},{default:a((()=>[i(s(c.text),1)])),_:1},8,["class","style","onClick"])):r("",!0)}],["__scopeId","data-v-f9b60738"]]);export{d as _};
diff --git a/GDH5/unpackage/dist/build/h5/index.html b/GDH5/unpackage/dist/build/h5/index.html
index f83dbd7..e583d32 100644
--- a/GDH5/unpackage/dist/build/h5/index.html
+++ b/GDH5/unpackage/dist/build/h5/index.html
@@ -14,7 +14,7 @@
GDH5
-
+
diff --git a/Laravel/app/Http/Controllers/API/H5/InvoiceController.php b/Laravel/app/Http/Controllers/API/H5/InvoiceController.php
index ff75683..df17507 100644
--- a/Laravel/app/Http/Controllers/API/H5/InvoiceController.php
+++ b/Laravel/app/Http/Controllers/API/H5/InvoiceController.php
@@ -82,8 +82,14 @@ class InvoiceController extends Controller
//获取上次填写的历史信息
public function GetHistory(Request $request)
{
+ $ordernum =request('ordernum');
$userid = $request->get('userid');//中间件产生的参数
- $list=DB::table('y_invoice')->where(['userid'=>$userid])->orderBy('id','desc')->first();
- return \Yz::Return(true,'',$list);
+ $appid = $request->get('role');//中间件产生的参数
+ $info=null;
+ if(isset($ordernum)){
+ $info=DB::table('y_invoice')->where(['userid'=>$userid,'link_order_num'=>$ordernum,'appid'=>$appid,'is_del'=>0])->first();
+ }
+ $hisinfo=DB::table('y_invoice')->where(['userid'=>$userid])->orderBy('id','desc')->first();
+ return \Yz::Return(true,'',['hisinfo'=>$hisinfo,'invoiceinfo'=>$info]);
}
}