@vtj/pro 0.17.8 → 0.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +3 -3
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +3 -3
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +5 -5
- package/dist/@vtj/materials/deps/uni-app/index.umd.js +1 -1
- package/dist/@vtj/materials/deps/uni-h5/index.umd.js +8 -8
- package/dist/@vtj/materials/deps/uni-h5/style.css +1 -1
- package/dist/@vtj/materials/deps/uni-h5-vue/index.umd.js +3 -3
- package/dist/@vtj/materials/deps/uni-h5-vue/uni-h5-vue.js +237 -35
- package/dist/@vtj/materials/deps/uni-h5-vue/uni-h5-vue.prod.js +3 -3
- package/dist/@vtj/materials/deps/uni-ui/index.umd.js +1 -1
- package/dist/@vtj/materials/deps/uni-ui/style.css +1 -1
- package/dist/@vtj/materials/deps/vue/vue.global.js +35 -12
- package/dist/@vtj/materials/deps/vue/vue.global.prod.js +5 -5
- package/dist/assets/{@element-plus-icons-vue-CXRJnQYo.js → @element-plus-icons-vue-DA02k83P.js} +1 -1
- package/dist/assets/{@vueuse-w7qmHU3H.js → @vueuse-SvwMwBjL.js} +1 -1
- package/dist/assets/Editor-Cp4OJwRP-BArfNxqi.js +437 -0
- package/dist/assets/{Editor-CPtl6CLF-NMmAvvAr.css → Editor-Cp4OJwRP-C4uXNc6V.css} +1 -1
- package/dist/assets/auth-DOpi_Pep.js +1 -0
- package/dist/assets/axios-Cc-15rbk.js +9 -0
- package/dist/assets/{element-plus-Bgelixwu.js → element-plus-_gYoEp33.js} +1 -1
- package/dist/assets/index-C14303GT.js +1 -0
- package/dist/assets/index-_h8C4pLC.js +2 -0
- package/dist/assets/{mockjs-C_1w07tn.js → mockjs-Cu-wxkKz.js} +5 -5
- package/dist/assets/page-Biw6vpZo.js +2 -0
- package/dist/assets/preview-DO5IPc9_.js +2 -0
- package/dist/assets/{uni-page-BrivKbVY.js → uni-page--udw_bNq.js} +1 -1
- package/dist/assets/utils-BDATXCnf.js +1 -0
- package/dist/assets/vue-fMktb-5o.js +35 -0
- package/dist/assets/{vue-router-B2eGcVGj.js → vue-router-CDqTjrgM.js} +1 -1
- package/dist/assets/{vxe-C7ZzhQxY.js → vxe-BulginLS.js} +1 -1
- package/dist/index.html +8 -8
- package/dist/uni/assets/@dcloudio-uni-h5-vue-DC2wuYrq.js +5 -0
- package/dist/uni/assets/@dcloudio-uni-shared-BN07FyFa.js +1 -0
- package/dist/uni/assets/axios-Cc-15rbk.js +9 -0
- package/dist/uni/assets/index-kFtL2kyW.js +89 -0
- package/dist/uni/assets/{vue-router-BuyipnGj.js → vue-router-Br7a6pVO.js} +1 -1
- package/dist/uni/index.html +5 -4
- package/package.json +16 -14
- package/src/.vtj/files/2kychh4s.json +25 -0
- package/src/.vtj/files/bkz0vptc.json +42 -0
- package/src/.vtj/histories/bkz0vptc/1kz1e16d.json +35 -0
- package/src/.vtj/histories/bkz0vptc/1kz1mo20.json +35 -0
- package/src/.vtj/histories/bkz0vptc/1kz1t7kp.json +35 -0
- package/src/.vtj/histories/bkz0vptc/2kz1evp1.json +35 -0
- package/src/.vtj/histories/bkz0vptc/2kz1tzul.json +35 -0
- package/src/.vtj/histories/bkz0vptc/2l41me17.json +47 -0
- package/src/.vtj/histories/bkz0vptc/3l41mi91.json +47 -0
- package/src/.vtj/histories/bkz0vptc/4l41ml44.json +47 -0
- package/src/.vtj/histories/bkz0vptc/ckz0wst3.json +35 -0
- package/src/.vtj/histories/bkz0vptc.json +50 -0
- package/src/.vtj/materials/@vtj/pro.json +2 -2
- package/src/.vtj/projects/@vtj/pro.json +53 -15
- package/src/App.vue +1 -7
- package/src/manifest.json +1 -1
- package/src/pages/2kychh4s.vue +12 -0
- package/src/pages/bkz0vptc.vue +20 -0
- package/src/pages.json +10 -1
- package/dist/assets/Editor-CPtl6CLF-CZK-iRjd.js +0 -546
- package/dist/assets/auth-DPcwTwML.js +0 -1
- package/dist/assets/index-B4KQg9YW.js +0 -1
- package/dist/assets/index-DoeCvv0h.js +0 -2
- package/dist/assets/page-DC0UpU2I.js +0 -2
- package/dist/assets/preview-BPqKBjpN.js +0 -2
- package/dist/assets/utils-BjOPfXIU.js +0 -1
- package/dist/assets/vue-BaPf1eHv.js +0 -35
- package/dist/uni/assets/@dcloudio-uni-h5-vue-CKVTfNUF.js +0 -5
- package/dist/uni/assets/@dcloudio-uni-shared-bWpOwtAM.js +0 -1
- package/dist/uni/assets/index-n3NvAQNA.js +0 -91
- package/src/.vtj/files/1kv36oys.json +0 -114
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
`,Ta=44,Eg=50,kg=768,Ca="UNI_LOCALE",mi=["%","%"],on="#007aff",Ig=/^([a-z-]+:)?\/\//i,Ng=/^data:.*,.*/,xg="WEB_INVOKE_APPSERVICE",dt="onShow",ft="onHide",Mg="onLaunch",ht="onError",Xe="onThemeChange",Pg="offThemeChange",Gn="onPageNotFound",jn="onUnhandledRejection",Og="onExit",Va="onLoad",Rg="onReady",Aa="onUnload",Lg="onInit",Bg="onSaveExitState",Yn="onResize",vi="onBackPress",Xn="onPageScroll",Dg="onTabItemTap",_i="onReachBottom",Ea="onPullDownRefresh",Ug="onShareTimeline",Fg="onShareChat",$g="onAddToFavorites",zg="onShareAppMessage",ka="onNavigationBarButtonTap",Ia="onNavigationBarChange",Na="onNavigationBarSearchInputClicked",xa="onNavigationBarSearchInputChanged",Ma="onNavigationBarSearchInputConfirmed",yi="onNavigationBarSearchInputFocusChanged",Pa="onAppEnterForeground",Oa="onAppEnterBackground",Ra="onWebInvokeAppService",Hg="onWxsInvokeCallMethod";function Wg(e=""){return(""+e).replace(/[^\x00-\xff]/g,"**").length}function La(e){return e.indexOf("/")===0}function qe(e){return La(e)?e:"/"+e}function Ba(e){return La(e)?e.slice(1):e}const qg=(e,t)=>{let n;for(let o=0;o<e.length;o++)n=e[o](t);return n};function bi(e,t){for(const n in t)e.style[n]=t[n]}function ne(e,t=null){let n;return((...o)=>(e&&(n=e.apply(t,o),e=null),n))}const Jn=e=>e>9?e:"0"+e;function Da({date:e=new Date,mode:t="date"}){return t==="time"?Jn(e.getHours())+":"+Jn(e.getMinutes()):e.getFullYear()+"-"+Jn(e.getMonth()+1)+"-"+Jn(e.getDate())}function ye(e,t){e=e||{},J(t)&&(t={errMsg:t}),/:ok$/.test(t.errMsg)?G(e.success)&&e.success(t):G(e.fail)&&e.fail(t),G(e.complete)&&e.complete(t)}function Gg(e){let t={};return se(e)&&Object.keys(e).sort().forEach(n=>{const o=n;t[o]=e[o]}),Object.keys(t)?t:e}function jg(e){return!!e.appContext}function rn(e){return e&&(jg(e)?e.proxy:e)}function Ua(e){if(!e)return;let t=e.type.name;for(;t&&Ag(At(t));)e=e.parent,t=e.type.name;return e.proxy}function Fa(e){return e.nodeType===1}function Kn(e,t=!1){const{vnode:n}=e;if(Fa(n.el))return t?n.el?[n.el]:[]:n.el;const{subTree:o}=e;if(o.shapeFlag&16){const i=o.children.filter(r=>r.el&&Fa(r.el));if(i.length>0)return t?i.map(r=>r.el):i[0].el}return t?n.el?[n.el]:[]:n.el}function $a(e){return Sa(e.substring(5))}const Yg=ne(e=>{e=e||(i=>i.tagName.startsWith("UNI-"));const t=HTMLElement.prototype,n=t.setAttribute;t.setAttribute=function(i,r){if(i.startsWith("data-")&&e(this)){const a=this.__uniDataset||(this.__uniDataset={});a[$a(i)]=r}n.call(this,i,r)};const o=t.removeAttribute;t.removeAttribute=function(i){this.__uniDataset&&i.startsWith("data-")&&e(this)&&delete this.__uniDataset[$a(i)],o.call(this,i)}});function wi(e){return L({},e.dataset,e.__uniDataset)}function It(e){return{passive:e}}function Si(e){const{id:t,offsetTop:n,offsetLeft:o}=e;return{id:t,dataset:wi(e),offsetTop:n,offsetLeft:o}}function Xg(e,t,n){const o=document.fonts;if(o){const i=new FontFace(e,t,n);return i.load().then(()=>{o.add&&o.add(i)})}return new Promise(i=>{const r=document.createElement("style"),a=[];if(n){const{style:s,weight:l,stretch:c,unicodeRange:u,variant:d,featureSettings:f}=n;s&&a.push(`font-style:${s}`),l&&a.push(`font-weight:${l}`),c&&a.push(`font-stretch:${c}`),u&&a.push(`unicode-range:${u}`),d&&a.push(`font-variant:${d}`),f&&a.push(`font-feature-settings:${f}`)}r.innerText=`@font-face{font-family:"${e}";src:${t};${a.join(";")}}`,document.head.appendChild(r),i()})}function Jg(e,t,n){if(J(e)){const s=document.querySelector(e);if(s){const{top:l}=s.getBoundingClientRect();e=l+window.pageYOffset;const c=document.querySelector("uni-page-head");c&&(e-=c.offsetHeight)}}e<0&&(e=0);const o=document.documentElement,{clientHeight:i,scrollHeight:r}=o;if(e=Math.min(e,r-i),t===0){o.scrollTop=document.body.scrollTop=e;return}if(window.scrollY===e)return;const a=s=>{if(s<=0){window.scrollTo(0,e);return}const l=e-window.scrollY;requestAnimationFrame(function(){window.scrollTo(0,window.scrollY+l/s*10),a(s-10)})};a(t)}function Ti(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function za(e={}){const t={};return Object.keys(e).forEach(n=>{try{t[n]=Ti(e[n])}catch(o){t[n]=e[n]}}),t}const Kg=/\+/g;function Ha(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<o.length;++i){const r=o[i].replace(Kg," ");let a=r.indexOf("="),s=Ti(a<0?r:r.slice(0,a)),l=a<0?null:Ti(r.slice(a+1));if(s in t){let c=t[s];K(c)||(c=t[s]=[c]),c.push(l)}else t[s]=l}return t}function Qg(e){const[t,n]=e.split("?",2);return{path:t,query:Ha(n||"")}}function Ci(e,t,{clearTimeout:n,setTimeout:o}){let i;const r=function(){n(i),i=o(()=>e.apply(this,arguments),t)};return r.cancel=function(){n(i)},r}class Wa{constructor(t,n){this.id=t,this.listener={},this.emitCache=[],n&&Object.keys(n).forEach(o=>{this.on(o,n[o])})}emit(t,...n){const o=this.listener[t];if(!o)return this.emitCache.push({eventName:t,args:n});o.forEach(i=>{i.fn.apply(i.fn,n)}),this.listener[t]=o.filter(i=>i.type!=="once")}on(t,n){this._addListener(t,"on",n),this._clearCache(t)}once(t,n){this._addListener(t,"once",n),this._clearCache(t)}off(t,n){const o=this.listener[t];if(o)if(n)for(let i=0;i<o.length;)o[i].fn===n&&(o.splice(i,1),i--),i++;else delete this.listener[t]}_clearCache(t){for(let n=0;n<this.emitCache.length;n++){const o=this.emitCache[n],i=t?o.eventName===t?t:null:o.eventName;if(!i)continue;if(typeof this.emit.apply(this,[i,...o.args])=="number"){this.emitCache.pop();continue}this.emitCache.splice(n,1),n--}}_addListener(t,n,o){(this.listener[t]||(this.listener[t]=[])).push({fn:o,type:n})}}const qa=[dt,ft,Mg,ht,Xe,Gn,jn,Og,Lg,Va,Rg,Aa,Yn,vi,Xn,Dg,_i,Ea,Ug,$g,zg,Fg,Bg,ka,Na,xa,Ma,yi];function Zg(e,t,n=!0){return n&&!G(t)?!1:qa.indexOf(e)>-1?!0:e.indexOf("on")===0}let Vi;const Ga=[];function ja(e){if(Vi)return e(Vi);Ga.push(e)}function ep(e){Vi=e,Ga.forEach(t=>t(e))}const tp=ne((e,t)=>t(e)),Ya=function(){};Ya.prototype={_id:1,on:function(e,t,n){var o=this.e||(this.e={});return(o[e]||(o[e]=[])).push({fn:t,ctx:n,_id:this._id}),this._id++},once:function(e,t,n){var o=this;function i(){o.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),o=0,i=n.length;for(o;o<i;o++)n[o].fn.apply(n[o].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),o=n[e],i=[];if(o&&t){for(var r=o.length-1;r>=0;r--)if(o[r].fn===t||o[r].fn._===t||o[r]._id===t){o.splice(r,1);break}i=o}return i.length?n[e]=i:delete n[e],this}};var Ai=Ya;const Xa={black:"rgba(0,0,0,0.4)",white:"rgba(255,255,255,0.4)"};function np(e){return e&&e in Xa?Xa[e]:e}function op(e){return e==="black"?"#000000":"#ffffff"}function Ja(e,t,n){if(J(t)&&t.startsWith("@")){const o=t.replace("@","");let i=e[o]||t;switch(n){case"titleColor":i=op(i);break;case"borderStyle":i=np(i);break}return i}return t}function Qn(e,t={},n="light"){const o=t[n],i={};return typeof o=="undefined"||!e?e:(Object.keys(e).forEach(r=>{const a=e[r],s=()=>se(a)?Qn(a,t,n):K(a)?a.map(l=>se(l)?Qn(l,t,n):Ja(o,l)):Ja(o,a,r);i[r]=s()}),i)}const ip=e=>e!==null&&typeof e=="object",rp=["{","}"];class ap{constructor(){this._caches=Object.create(null)}interpolate(t,n,o=rp){if(!n)return[t];let i=this._caches[t];return i||(i=cp(t,o),this._caches[t]=i),up(i,n)}}const sp=/^(?:\d)+/,lp=/^(?:\w)+/;function cp(e,[t,n]){const o=[];let i=0,r="";for(;i<e.length;){let a=e[i++];if(a===t){r&&o.push({type:"text",value:r}),r="";let s="";for(a=e[i++];a!==void 0&&a!==n;)s+=a,a=e[i++];const l=a===n,c=sp.test(s)?"list":l&&lp.test(s)?"named":"unknown";o.push({value:s,type:c})}else r+=a}return r&&o.push({type:"text",value:r}),o}function up(e,t){const n=[];let o=0;const i=Array.isArray(t)?"list":ip(t)?"named":"unknown";if(i==="unknown")return n;for(;o<e.length;){const r=e[o];switch(r.type){case"text":n.push(r.value);break;case"list":n.push(t[parseInt(r.value,10)]);break;case"named":i==="named"&&n.push(t[r.value]);break}o++}return n}const Te="zh-Hans",Ve="zh-Hant",_e="en",Pe="fr",Oe="es",dp=Object.prototype.hasOwnProperty,Ka=(e,t)=>dp.call(e,t),fp=new ap;function hp(e,t){return!!t.find(n=>e.indexOf(n)!==-1)}function gp(e,t){return t.find(n=>e.indexOf(n)===0)}function Qa(e,t){if(!e)return;if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),e==="chinese")return Te;if(e.indexOf("zh")===0)return e.indexOf("-hans")>-1?Te:e.indexOf("-hant")>-1||hp(e,["-tw","-hk","-mo","-cht"])?Ve:Te;let n=[_e,Pe,Oe];t&&Object.keys(t).length>0&&(n=Object.keys(t));const o=gp(e,n);if(o)return o}class pp{constructor({locale:t,fallbackLocale:n,messages:o,watcher:i,formater:r}){this.locale=_e,this.fallbackLocale=_e,this.message={},this.messages={},this.watchers=[],n&&(this.fallbackLocale=n),this.formater=r||fp,this.messages=o||{},this.setLocale(t||_e),i&&this.watchLocale(i)}setLocale(t){const n=this.locale;this.locale=Qa(t,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],n!==this.locale&&this.watchers.forEach(o=>{o(this.locale,n)})}getLocale(){return this.locale}watchLocale(t){const n=this.watchers.push(t)-1;return()=>{this.watchers.splice(n,1)}}add(t,n,o=!0){const i=this.messages[t];i?o?Object.assign(i,n):Object.keys(n).forEach(r=>{Ka(i,r)||(i[r]=n[r])}):this.messages[t]=n}f(t,n,o){return this.formater.interpolate(t,n,o).join("")}t(t,n,o){let i=this.message;return typeof n=="string"?(n=Qa(n,this.messages),n&&(i=this.messages[n])):o=n,Ka(i,t)?this.formater.interpolate(i[t],o).join(""):(console.warn(`Cannot translate the value of keypath ${t}. Use the value of keypath as default.`),t)}}function mp(e,t){e.$watchLocale?e.$watchLocale(n=>{t.setLocale(n)}):e.$watch(()=>e.$locale,n=>{t.setLocale(n)})}function vp(){return typeof uni!="undefined"&&uni.getLocale?uni.getLocale():typeof global!="undefined"&&global.getLocale?global.getLocale():_e}function _p(e,t={},n,o){if(typeof e!="string"){const a=[t,e];e=a[0],t=a[1]}typeof e!="string"&&(e=vp()),typeof n!="string"&&(n=typeof __uniConfig!="undefined"&&__uniConfig.fallbackLocale||_e);const i=new pp({locale:e,fallbackLocale:n,messages:t,watcher:o});let r=(a,s)=>{if(typeof getApp!="function")r=function(l,c){return i.t(l,c)};else{let l=!1;r=function(c,u){const d=getApp().$vm;return d&&(d.$locale,l||(l=!0,mp(d,i))),i.t(c,u)}}return r(a,s)};return{i18n:i,f(a,s,l){return i.f(a,s,l)},t(a,s){return r(a,s)},add(a,s,l=!0){return i.add(a,s,l)},watch(a){return i.watchLocale(a)},getLocale(){return i.getLocale()},setLocale(a){return i.setLocale(a)}}}function Za(e,t){return e.indexOf(t[0])>-1}const Ei=ne(()=>typeof __uniConfig!="undefined"&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length);let an;function yp(){const e=uni.getLocale(),t=__uniConfig.locales;return t[e]||t[__uniConfig.fallbackLocale]||t.en||{}}function bp(e){return Za(e,mi)?U().f(e,yp(),mi):e}function es(e,t){if(t.length===1){if(e){const o=s=>J(s)&&Za(s,mi),i=t[0];let r=[];if(K(e)&&(r=e.filter(s=>o(s[i]))).length)return r;const a=e[t[0]];if(o(a))return e}return}const n=t.shift();return es(e&&e[n],t)}function wp(e,t){return t.map(n=>ki(e,n))}function ki(e,t){const n=es(e,t);if(!n)return!1;const o=t[t.length-1];if(K(n))n.forEach(i=>ki(i,[o]));else{let i=n[o];Object.defineProperty(n,o,{get(){return bp(i)},set(r){i=r}})}return!0}function U(){if(!an){let e;if(e=navigator.cookieEnabled&&window.localStorage&&localStorage[Ca]||__uniConfig.locale||navigator.language,an=_p(e),Ei()){const t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach(n=>an.add(n,__uniConfig.locales[n])),an.setLocale(e)}}return an}function H(e,t,n){return t.reduce((o,i,r)=>(o[e+i]=n[r],o),{})}const Sp=ne(()=>{const e="uni.async.",t=["error"];__UNI_FEATURE_I18N_EN__&&U().add(_e,H(e,t,["The connection timed out, click the screen to try again."]),!1),__UNI_FEATURE_I18N_ES__&&U().add(Oe,H(e,t,["Se agotó el tiempo de conexión, haga clic en la pantalla para volver a intentarlo."]),!1),__UNI_FEATURE_I18N_FR__&&U().add(Pe,H(e,t,["La connexion a expiré, cliquez sur l'écran pour réessayer."]),!1),__UNI_FEATURE_I18N_ZH_HANS__&&U().add(Te,H(e,t,["连接服务器超时,点击屏幕重试"]),!1),__UNI_FEATURE_I18N_ZH_HANT__&&U().add(Ve,H(e,t,["連接服務器超時,點擊屏幕重試"]),!1)}),Tp=ne(()=>{const e="uni.showActionSheet.",t=["cancel"];__UNI_FEATURE_I18N_EN__&&U().add(_e,H(e,t,["Cancel"]),!1),__UNI_FEATURE_I18N_ES__&&U().add(Oe,H(e,t,["Cancelar"]),!1),__UNI_FEATURE_I18N_FR__&&U().add(Pe,H(e,t,["Annuler"]),!1),__UNI_FEATURE_I18N_ZH_HANS__&&U().add(Te,H(e,t,["取消"]),!1),__UNI_FEATURE_I18N_ZH_HANT__&&U().add(Ve,H(e,t,["取消"]),!1)}),Cp=ne(()=>{const e="uni.showToast.",t=["unpaired"];__UNI_FEATURE_I18N_EN__&&U().add(_e,H(e,t,["Please note showToast must be paired with hideToast"]),!1),__UNI_FEATURE_I18N_ES__&&U().add(Oe,H(e,t,["Tenga en cuenta que showToast debe estar emparejado con hideToast"]),!1),__UNI_FEATURE_I18N_FR__&&U().add(Pe,H(e,t,["Veuillez noter que showToast doit être associé à hideToast"]),!1),__UNI_FEATURE_I18N_ZH_HANS__&&U().add(Te,H(e,t,["请注意 showToast 与 hideToast 必须配对使用"]),!1),__UNI_FEATURE_I18N_ZH_HANT__&&U().add(Ve,H(e,t,["請注意 showToast 與 hideToast 必須配對使用"]),!1)}),Vp=ne(()=>{const e="uni.showLoading.",t=["unpaired"];__UNI_FEATURE_I18N_EN__&&U().add(_e,H(e,t,["Please note showLoading must be paired with hideLoading"]),!1),__UNI_FEATURE_I18N_ES__&&U().add(Oe,H(e,t,["Tenga en cuenta que showLoading debe estar emparejado con hideLoading"]),!1),__UNI_FEATURE_I18N_FR__&&U().add(Pe,H(e,t,["Veuillez noter que showLoading doit être associé à hideLoading"]),!1),__UNI_FEATURE_I18N_ZH_HANS__&&U().add(Te,H(e,t,["请注意 showLoading 与 hideLoading 必须配对使用"]),!1),__UNI_FEATURE_I18N_ZH_HANT__&&U().add(Ve,H(e,t,["請注意 showLoading 與 hideLoading 必須配對使用"]),!1)}),Ap=ne(()=>{const e="uni.showModal.",t=["cancel","confirm"];__UNI_FEATURE_I18N_EN__&&U().add(_e,H(e,t,["Cancel","OK"]),!1),__UNI_FEATURE_I18N_ES__&&U().add(Oe,H(e,t,["Cancelar","OK"]),!1),__UNI_FEATURE_I18N_FR__&&U().add(Pe,H(e,t,["Annuler","OK"]),!1),__UNI_FEATURE_I18N_ZH_HANS__&&U().add(Te,H(e,t,["取消","确定"]),!1),__UNI_FEATURE_I18N_ZH_HANT__&&U().add(Ve,H(e,t,["取消","確定"]),!1)}),Ii=ne(()=>{const e="uni.chooseFile.",t=["notUserActivation"];__UNI_FEATURE_I18N_EN__&&U().add(_e,H(e,t,["File chooser dialog can only be shown with a user activation"]),!1),__UNI_FEATURE_I18N_ES__&&U().add(Oe,H(e,t,["El cuadro de diálogo del selector de archivos solo se puede mostrar con la activación del usuario"]),!1),__UNI_FEATURE_I18N_FR__&&U().add(Pe,H(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),__UNI_FEATURE_I18N_ZH_HANS__&&U().add(Te,H(e,t,["文件选择器对话框只能在由用户激活时显示"]),!1),__UNI_FEATURE_I18N_ZH_HANT__&&U().add(Ve,H(e,t,["文件選擇器對話框只能在由用戶激活時顯示"]),!1)}),Ep=ne(()=>{const e="uni.setClipboardData.",t=["success","fail"];__UNI_FEATURE_I18N_EN__&&U().add(_e,H(e,t,["Content copied","Copy failed, please copy manually"]),!1),__UNI_FEATURE_I18N_ES__&&U().add(Oe,H(e,t,["Contenido copiado","Error al copiar, copie manualmente"]),!1),__UNI_FEATURE_I18N_FR__&&U().add(Pe,H(e,t,["Contenu copié","Échec de la copie, copiez manuellement"]),!1),__UNI_FEATURE_I18N_ZH_HANS__&&U().add(Te,H(e,t,["内容已复制","复制失败,请手动复制"]),!1),__UNI_FEATURE_I18N_ZH_HANT__&&U().add(Ve,H(e,t,["內容已復制","復制失敗,請手動復製"]),!1)}),kp=ne(()=>{const e="uni.getClipboardData.",t=["fail"];__UNI_FEATURE_I18N_EN__&&U().add(_e,H(e,t,["Reading failed, please paste manually"]),!1),__UNI_FEATURE_I18N_ES__&&U().add(Oe,H(e,t,["Error de lectura, pegue manualmente"]),!1),__UNI_FEATURE_I18N_FR__&&U().add(Pe,H(e,t,["Échec de la lecture, veuillez coller manuellement"]),!1),__UNI_FEATURE_I18N_ZH_HANS__&&U().add(Te,H(e,t,["读取失败,请手动粘贴"]),!1),__UNI_FEATURE_I18N_ZH_HANT__&&U().add(Ve,H(e,t,["讀取失敗,請手動粘貼"]),!1)}),Ip=ne(()=>{const e="uni.picker.",t=["done","cancel"];__UNI_FEATURE_I18N_EN__&&U().add(_e,H(e,t,["Done","Cancel"]),!1),__UNI_FEATURE_I18N_ES__&&U().add(Oe,H(e,t,["OK","Cancelar"]),!1),__UNI_FEATURE_I18N_FR__&&U().add(Pe,H(e,t,["OK","Annuler"]),!1),__UNI_FEATURE_I18N_ZH_HANS__&&U().add(Te,H(e,t,["完成","取消"]),!1),__UNI_FEATURE_I18N_ZH_HANT__&&U().add(Ve,H(e,t,["完成","取消"]),!1)}),Np=ne(()=>{const e="uni.video.",t=["danmu","volume"];__UNI_FEATURE_I18N_EN__&&U().add(_e,H(e,t,["Danmu","Volume"]),!1),__UNI_FEATURE_I18N_ES__&&U().add(Oe,H(e,t,["Danmu","Volumen"]),!1),__UNI_FEATURE_I18N_FR__&&U().add(Pe,H(e,t,["Danmu","Le Volume"]),!1),__UNI_FEATURE_I18N_ZH_HANS__&&U().add(Te,H(e,t,["弹幕","音量"]),!1),__UNI_FEATURE_I18N_ZH_HANT__&&U().add(Ve,H(e,t,["彈幕","音量"]),!1)}),xp=ne(()=>{const e="uni.chooseLocation.",t=["search","cancel"];__UNI_FEATURE_I18N_EN__&&U().add(_e,H(e,t,["Find Place","Cancel"]),!1),__UNI_FEATURE_I18N_ES__&&U().add(Oe,H(e,t,["Encontrar","Cancelar"]),!1),__UNI_FEATURE_I18N_FR__&&U().add(Pe,H(e,t,["Trouve","Annuler"]),!1),__UNI_FEATURE_I18N_ZH_HANS__&&U().add(Te,H(e,t,["搜索地点","取消"]),!1),__UNI_FEATURE_I18N_ZH_HANT__&&U().add(Ve,H(e,t,["搜索地點","取消"]),!1)});function Mp(e){if(Ei())return wp(e,[["titleText"],["searchInput","placeholder"],["buttons","text"]])}function Pp(e){return Ei()&&e.list&&e.list.forEach(t=>{ki(t,["text"])}),e}function ts(e){const t=new Ai;return{on(n,o){return t.on(n,o)},once(n,o){return t.once(n,o)},off(n,o){return t.off(n,o)},emit(n,...o){return t.emit(n,...o)},subscribe(n,o,i=!1){t[i?"once":"on"](`${e}.${n}`,o)},unsubscribe(n,o){t.off(`${e}.${n}`,o)},subscribeHandler(n,o,i){t.emit(`${e}.${n}`,o,i)}}}const Nt="invokeViewApi",ns="invokeServiceApi";let Op=1;const Rp=(e,t,n)=>{const{subscribe:o,publishHandler:i}=UniViewJSBridge,r=n?Op++:0;n&&o(ns+"."+r,n,!0),i(ns,{id:r,name:e,args:t})},xt=Object.create(null);function sn(e,t){return e+"."+t}function Lp(e,t){UniViewJSBridge.subscribe(sn(e,Nt),Up)}function Bp(e){UniViewJSBridge.unsubscribe(sn(e,Nt)),Object.keys(xt).forEach(t=>{t.indexOf(e+".")===0&&delete xt[t]})}function os(e,t,n){t=sn(e,t),xt[t]||(xt[t]=n)}function Dp(e,t){t=sn(e,t),delete xt[t]}function Up({id:e,name:t,args:n},o){t=sn(o,t);const i=a=>{e&&UniViewJSBridge.publishHandler(Nt+"."+e,a)},r=xt[t];r?r(n,i):i({})}const Fp=L(ts("service"),{invokeServiceMethod:Rp}),$p=350,is=10,Zn=It(!0);let ln;function cn(){ln&&(clearTimeout(ln),ln=null)}let rs=0,as=0;function zp(e){if(cn(),e.touches.length!==1)return;const{pageX:t,pageY:n}=e.touches[0];rs=t,as=n,ln=setTimeout(function(){const o=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});o.touches=e.touches,o.changedTouches=e.changedTouches,e.target.dispatchEvent(o)},$p)}function Hp(e){if(!ln)return;if(e.touches.length!==1)return cn();const{pageX:t,pageY:n}=e.touches[0];if(Math.abs(t-rs)>is||Math.abs(n-as)>is)return cn()}function Wp(){window.addEventListener("touchstart",zp,Zn),window.addEventListener("touchmove",Hp,Zn),window.addEventListener("touchend",cn,Zn),window.addEventListener("touchcancel",cn,Zn)}function ss(e,t){const n=Number(e);return isNaN(n)?t:n}function qp(){const e=/^Apple/.test(navigator.vendor)&&typeof window.orientation=="number",t=e&&Math.abs(window.orientation)===90;var n=e?Math[t?"max":"min"](screen.width,screen.height):screen.width,o=Math.min(window.innerWidth,document.documentElement.clientWidth,n)||n;return o}function Gp(){const e=__uniConfig.globalStyle||{},t=ss(e.rpxCalcMaxDeviceWidth,960),n=ss(e.rpxCalcBaseDeviceWidth,375);function o(){let i=qp();i=i<=t?i:n,document.documentElement.style.fontSize=i/23.4375+"px"}o(),document.addEventListener("DOMContentLoaded",o),window.addEventListener("load",o),window.addEventListener("resize",o)}function jp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ls=["top","left","right","bottom"],Ni,eo={},Re;function xi(){return!("CSS"in window)||typeof CSS.supports!="function"?Re="":CSS.supports("top: env(safe-area-inset-top)")?Re="env":CSS.supports("top: constant(safe-area-inset-top)")?Re="constant":Re="",Re}function cs(){if(Re=typeof Re=="string"?Re:xi(),!Re){ls.forEach(function(s){eo[s]=0});return}function e(s,l){var c=s.style;Object.keys(l).forEach(function(u){var d=l[u];c[u]=d})}var t=[];function n(s){s?t.push(s):t.forEach(function(l){l()})}var o=!1;try{var i=Object.defineProperty({},"passive",{get:function(){o={passive:!0}}});window.addEventListener("test",null,i)}catch(s){}function r(s,l){var c=document.createElement("div"),u=document.createElement("div"),d=document.createElement("div"),f=document.createElement("div"),g=100,_=1e4,m={position:"absolute",width:g+"px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:Re+"(safe-area-inset-"+l+")"};e(c,m),e(u,m),e(d,{transition:"0s",animation:"none",width:"400px",height:"400px"}),e(f,{transition:"0s",animation:"none",width:"250%",height:"250%"}),c.appendChild(d),u.appendChild(f),s.appendChild(c),s.appendChild(u),n(function(){c.scrollTop=u.scrollTop=_;var S=c.scrollTop,y=u.scrollTop;function h(){this.scrollTop!==(this===c?S:y)&&(c.scrollTop=u.scrollTop=_,S=c.scrollTop,y=u.scrollTop,Yp(l))}c.addEventListener("scroll",h,o),u.addEventListener("scroll",h,o)});var v=getComputedStyle(c);Object.defineProperty(eo,l,{configurable:!0,get:function(){return parseFloat(v.paddingBottom)}})}var a=document.createElement("div");e(a,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),ls.forEach(function(s){r(a,s)}),document.body.appendChild(a),n(),Ni=!0}function to(e){return Ni||cs(),eo[e]}var no=[];function Yp(e){no.length||setTimeout(function(){var t={};no.forEach(function(n){t[n]=eo[n]}),no.length=0,oo.forEach(function(n){n(t)})},0),no.push(e)}var oo=[];function Xp(e){xi()&&(Ni||cs(),typeof e=="function"&&oo.push(e))}function Jp(e){var t=oo.indexOf(e);t>=0&&oo.splice(t,1)}var Kp={get support(){return(typeof Re=="string"?Re:xi()).length!=0},get top(){return to("top")},get left(){return to("left")},get right(){return to("right")},get bottom(){return to("bottom")},onChange:Xp,offChange:Jp},Qp=Kp;const he=jp(Qp),Je=Vue.withModifiers(()=>{},["prevent"]),un=Vue.withModifiers(e=>{},["stop"]);function dn(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function io(){const e=document.documentElement.style,t=dn(e,"--window-top");return t?t+he.top:0}function us(){const e=document.documentElement.style,t=io(),n=dn(e,"--window-bottom"),o=dn(e,"--window-left"),i=dn(e,"--window-right"),r=dn(e,"--top-window-height");return{top:t,bottom:n?n+he.bottom:0,left:o?o+he.left:0,right:i?i+he.right:0,topWindowHeight:r||0}}function Ue(e){const t=document.documentElement.style;Object.keys(e).forEach(n=>{t.setProperty(n,e[n])})}function ds(e){return Ue(e)}const ro=new Map;function Zp(e,t){let n=ro.get(e);n&&!(n instanceof HTMLStyleElement)&&(em(e),n=void 0),n?n.innerHTML=t:(n=document.createElement("style"),n.setAttribute("type","text/css"),n.innerHTML=t,document.head.appendChild(n)),ro.set(e,n)}function em(e){let t=ro.get(e);t&&(t instanceof CSSStyleSheet?document.adoptedStyleSheets=document.adoptedStyleSheets.filter(n=>n!==t):document.head.removeChild(t),ro.delete(e))}function fn(e){return Symbol(e)}function fs(e){return e=e+"",e.indexOf("rpx")!==-1||e.indexOf("upx")!==-1}function Ge(e,t=!1){if(t)return tm(e);if(J(e)){const n=parseInt(e)||0;return fs(e)?uni.upx2px(n):n}return e}function tm(e){return fs(e)?e.replace(/(\d+(\.\d+)?)[ru]px/g,(t,n)=>uni.upx2px(parseFloat(n))+"px"):e}function hs(e){return e.$page}function Mi(e){return e.tagName.indexOf("UNI-")===0}const nm="M20.928 10.176l-4.928 4.928-4.928-4.928-0.896 0.896 4.928 4.928-4.928 4.928 0.896 0.896 4.928-4.928 4.928 4.928 0.896-0.896-4.928-4.928 4.928-4.928-0.896-0.896zM16 2.080q-3.776 0-7.040 1.888-3.136 1.856-4.992 4.992-1.888 3.264-1.888 7.040t1.888 7.040q1.856 3.136 4.992 4.992 3.264 1.888 7.040 1.888t7.040-1.888q3.136-1.856 4.992-4.992 1.888-3.264 1.888-7.040t-1.888-7.040q-1.856-3.136-4.992-4.992-3.264-1.888-7.040-1.888zM16 28.64q-3.424 0-6.4-1.728-2.848-1.664-4.512-4.512-1.728-2.976-1.728-6.4t1.728-6.4q1.664-2.848 4.512-4.512 2.976-1.728 6.4-1.728t6.4 1.728q2.848 1.664 4.512 4.512 1.728 2.976 1.728 6.4t-1.728 6.4q-1.664 2.848-4.512 4.512-2.976 1.728-6.4 1.728z",om="M16 0q-4.352 0-8.064 2.176-3.616 2.144-5.76 5.76-2.176 3.712-2.176 8.064t2.176 8.064q2.144 3.616 5.76 5.76 3.712 2.176 8.064 2.176t8.064-2.176q3.616-2.144 5.76-5.76 2.176-3.712 2.176-8.064t-2.176-8.064q-2.144-3.616-5.76-5.76-3.712-2.176-8.064-2.176zM22.688 21.408q0.32 0.32 0.304 0.752t-0.336 0.736-0.752 0.304-0.752-0.32l-5.184-5.376-5.376 5.184q-0.32 0.32-0.752 0.304t-0.736-0.336-0.304-0.752 0.32-0.752l5.376-5.184-5.184-5.376q-0.32-0.32-0.304-0.752t0.336-0.752 0.752-0.304 0.752 0.336l5.184 5.376 5.376-5.184q0.32-0.32 0.752-0.304t0.752 0.336 0.304 0.752-0.336 0.752l-5.376 5.184 5.184 5.376z",im="M15.808 1.696q-3.776 0-7.072 1.984-3.2 1.888-5.088 5.152-1.952 3.392-1.952 7.36 0 3.776 1.952 7.072 1.888 3.2 5.088 5.088 3.296 1.952 7.072 1.952 3.968 0 7.36-1.952 3.264-1.888 5.152-5.088 1.984-3.296 1.984-7.072 0-4-1.984-7.36-1.888-3.264-5.152-5.152-3.36-1.984-7.36-1.984zM20.864 18.592l-3.776 4.928q-0.448 0.576-1.088 0.576t-1.088-0.576l-3.776-4.928q-0.448-0.576-0.24-0.992t0.944-0.416h2.976v-8.928q0-0.256 0.176-0.432t0.4-0.176h1.216q0.224 0 0.4 0.176t0.176 0.432v8.928h2.976q0.736 0 0.944 0.416t-0.24 0.992z",rm="M15.808 0.128q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.176 3.776-2.176 8.16 0 4.224 2.176 7.872 2.080 3.552 5.632 5.632 3.648 2.176 7.872 2.176 4.384 0 8.16-2.176 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.416-2.176-8.16-2.112-3.616-5.728-5.728-3.744-2.176-8.16-2.176zM16.864 23.776q0 0.064-0.064 0.064h-1.568q-0.096 0-0.096-0.064l-0.256-11.328q0-0.064 0.064-0.064h2.112q0.096 0 0.064 0.064l-0.256 11.328zM16 10.88q-0.576 0-0.976-0.4t-0.4-0.96 0.4-0.96 0.976-0.4 0.976 0.4 0.4 0.96-0.4 0.96-0.976 0.4z",gs="M20.928 22.688q-1.696 1.376-3.744 2.112-2.112 0.768-4.384 0.768-3.488 0-6.464-1.728-2.88-1.696-4.576-4.608-1.76-2.976-1.76-6.464t1.76-6.464q1.696-2.88 4.576-4.576 2.976-1.76 6.464-1.76t6.464 1.76q2.912 1.696 4.608 4.576 1.728 2.976 1.728 6.464 0 2.272-0.768 4.384-0.736 2.048-2.112 3.744l9.312 9.28-1.824 1.824-9.28-9.312zM12.8 23.008q2.784 0 5.184-1.376 2.304-1.376 3.68-3.68 1.376-2.4 1.376-5.184t-1.376-5.152q-1.376-2.336-3.68-3.68-2.4-1.408-5.184-1.408t-5.152 1.408q-2.336 1.344-3.68 3.68-1.408 2.368-1.408 5.152t1.408 5.184q1.344 2.304 3.68 3.68 2.368 1.376 5.152 1.376zM12.8 23.008v0z",hn="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",am="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.176zM24.832 11.328l-11.264 11.104q-0.032 0.032-0.112 0.032t-0.112-0.032l-5.216-5.376q-0.096-0.128 0-0.288l0.704-0.96q0.032-0.064 0.112-0.064t0.112 0.032l4.256 3.264q0.064 0.032 0.144 0.032t0.112-0.032l10.336-8.608q0.064-0.064 0.144-0.064t0.112 0.064l0.672 0.672q0.128 0.128 0 0.224z",sm="M15.84 0.096q-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.176zM23.008 21.92l-0.512 0.896q-0.096 0.128-0.224 0.064l-8-3.808q-0.096-0.064-0.16-0.128-0.128-0.096-0.128-0.288l0.512-12.096q0-0.064 0.048-0.112t0.112-0.048h1.376q0.064 0 0.112 0.048t0.048 0.112l0.448 10.848 6.304 4.256q0.064 0.064 0.080 0.128t-0.016 0.128z",ps="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",gn="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",Pi="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",ms="M31.562 4.9966666659375q0.435 0.399 0.435 0.87 0.036 0.58-0.399 0.98l-18.61 19.917q-0.145 0.145-0.327 0.217-0.073 0.037-0.145 0.11-0.254 0.035-0.472 0.035-0.29 0-0.544-0.036l-0.145-0.072q-0.109-0.073-0.217-0.182l-0.11-0.072L0.363 16.2786666659375q-0.327-0.399-0.363-0.907 0-0.544 0.363-1.016 0.435-0.326 0.961-0.362 0.527-0.036 0.962 0.362l9.722 9.542L29.712 5.0326666659375q0.399-0.363 0.943-0.363 0.544-0.036 0.907 0.327z";function ce(e,t="#000",n=27){return Vue.createVNode("svg",{width:n,height:n,viewBox:"0 0 32 32"},[Vue.createVNode("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function ao(){{const{$pageInstance:e}=Vue.getCurrentInstance();return e&&so(e.proxy)}}function Ae(e){const t=rn(e);if(t.$page)return so(t);if(!t.$)return;{const{$pageInstance:o}=t.$;if(o)return so(o.proxy)}const n=t.$.root.proxy;if(n&&n.$page)return so(n)}function gt(){const e=getCurrentPages(),t=e.length;if(t)return e[t-1]}function Mt(){var e;const t=(e=gt())==null?void 0:e.$page;if(t)return t.meta}function pt(){const e=Mt();return e?e.id:-1}function Ee(){const e=gt();if(e)return e.$vm}const lm=["navigationBar","pullToRefresh"];function cm(){return JSON.parse(JSON.stringify(__uniConfig.globalStyle||{}))}function vs(e,t){const n=cm(),o=L({id:t},n,e);lm.forEach(r=>{o[r]=L({},n[r],e[r])});const{navigationBar:i}=o;return i.titleText&&i.titleImage&&(i.titleText=""),o}function um(e){return e.offset&&(e.offset=Ge(e.offset)),e.height&&(e.height=Ge(e.height)),e.range&&(e.range=Ge(e.range)),e}function _s(e,t,n,o,i,r){const{id:a,route:s}=o,l=Qn(o.navigationBar,__uniConfig.themeConfig,r).titleColor;return{id:a,path:qe(s),route:s,fullPath:t,options:n,meta:o,openType:e,eventChannel:i,statusBarStyle:l==="#ffffff"?"light":"dark"}}function so(e){var t,n;return((t=e.$page)==null?void 0:t.id)||((n=e.$basePage)==null?void 0:n.id)}function dm(e,t,n){const o=e.$[t];K(o)&&n.__weh&&Se(o,n.__weh)}function re(e,t,n){if(J(e))n=t,t=e,e=Ee();else if(typeof e=="number"){const i=getCurrentPages().find(r=>hs(r).id===e);i?e=i.$vm:e=Ee()}if(!e)return;const o=e.$[t];return o&&qg(o,n)}function ys(e){e.preventDefault()}let bs,ws=0;function fm({onPageScroll:e,onReachBottom:t,onReachBottomDistance:n}){let o=!1,i=!1,r=!0;const a=()=>{const{scrollHeight:l}=document.documentElement,c=window.innerHeight,u=window.scrollY,d=u>0&&l>c&&u+c+n>=l,f=Math.abs(l-ws)>n;return d&&(!i||f)?(ws=l,i=!0,!0):(!d&&i&&(i=!1),!1)},s=()=>{e&&e(window.pageYOffset);function l(){if(a())return t&&t(),r=!1,setTimeout(function(){r=!0},350),!0}t&&r&&(l()||(bs=setTimeout(l,300))),o=!1};return function(){clearTimeout(bs),o||requestAnimationFrame(s),o=!0}}function hm(e){if(e.indexOf("/")===0||e.indexOf("uni:")===0)return e;let t="";const n=getCurrentPages();return n.length&&(t=hs(n[n.length-1]).route),Oi(t,e)}function Oi(e,t){if(t.indexOf("/")===0)return t;if(t.indexOf("./")===0)return Oi(e,t.slice(2));const n=t.split("/"),o=n.length;let i=0;for(;i<o&&n[i]==="..";i++);n.splice(0,i),t=n.join("/");const r=e.length>0?e.split("/"):[];return r.splice(r.length-i-1,i+1),qe(r.concat(n).join("/"))}function pn(e,t=!1){return t?__uniRoutes.find(n=>n.path===e||n.alias===e):__uniRoutes.find(n=>n.path===e)}function gm(e,t,n){const o=pn(qe(t));if(o){const{meta:r}=o;delete r.tabBarIndex,r.isQuit=r.isTabBar=!1}const i=pn(qe(n));if(i){const{meta:r}=i;r.tabBarIndex=e,r.isQuit=r.isTabBar=!0;const a=__uniConfig.tabBar;a&&a.list&&a.list[e]&&(a.list[e].pagePath=Ba(n))}}function pm(){Gp(),Yg(Mi),__UNI_FEATURE_LONGPRESS__&&Wp()}class mm{constructor(t){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=t,this.$el=Kn(t.$),this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(t){if(!this.$el||!t)return;const n=Ts(this.$el.querySelector(t));if(n)return Ri(n,!1)}selectAllComponents(t){if(!this.$el||!t)return[];const n=[],o=this.$el.querySelectorAll(t);for(let i=0;i<o.length;i++){const r=Ts(o[i]);r&&n.push(Ri(r,!1))}return n}forceUpdate(t){t==="class"?this.$bindClass?(this.$el.__wxsClassChanged=!0,this.$vm.$forceUpdate()):this.updateWxsClass():t==="style"&&(this.$bindStyle?(this.$el.__wxsStyleChanged=!0,this.$vm.$forceUpdate()):this.updateWxsStyle())}updateWxsClass(){const{__wxsAddClass:t}=this.$el;t.length&&(this.$el.className=t.join(" "))}updateWxsStyle(){const{__wxsStyle:t}=this.$el;t&&this.$el.setAttribute("style",Sg(t))}setStyle(t){return!this.$el||!t?this:(J(t)&&(t=wg(t)),se(t)&&(this.$el.__wxsStyle=t,this.forceUpdate("style")),this)}addClass(t){if(!this.$el||!t)return this;const n=this.$el.__wxsAddClass||(this.$el.__wxsAddClass=[]);return n.indexOf(t)===-1&&(n.push(t),this.forceUpdate("class")),this}removeClass(t){if(!this.$el||!t)return this;const{__wxsAddClass:n}=this.$el;if(n){const i=n.indexOf(t);i>-1&&n.splice(i,1)}const o=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return o.indexOf(t)===-1&&(o.push(t),this.forceUpdate("class")),this}hasClass(t){return this.$el&&this.$el.classList.contains(t)}getDataset(){return this.$el&&this.$el.dataset}callMethod(t,n={}){const o=this.$vm[t];G(o)?o(JSON.parse(JSON.stringify(n))):this.$vm.ownerId&&UniViewJSBridge.publishHandler(Hg,{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:t,args:n})}requestAnimationFrame(t){return window.requestAnimationFrame(t)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(t,n={}){return this.$vm.$emit(t,n),this}getComputedStyle(t){if(this.$el){const n=window.getComputedStyle(this.$el);return t&&t.length?t.reduce((o,i)=>(o[i]=n[i],o),{}):n}return{}}setTimeout(t,n){return window.setTimeout(t,n)}clearTimeout(t){return window.clearTimeout(t)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function Ri(e,t=!0){if(t&&e&&(e=Ua(e.$)),e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new mm(e)),e.$el.__wxsComponentDescriptor}function Li(e,t){return Ri(e,t)}function vm(e,t,n=!0){if(!t||n&&e.length<2)return!1;const o=Ua(t);if(!o)return!1;const i=o.$.type;return!i.$wxs&&!i.$renderjs?!1:o}function Ss(e,t,n,o=!0){if(t){e.__instance||(e.__instance=!0,Object.defineProperty(e,"instance",{get(){return Li(n.proxy,!1)}}));const i=vm(t,n,o);if(i)return[e,Li(i,!1)]}}function Ts(e){if(e)return e.__vueParentComponent&&e.__vueParentComponent.proxy}const _m=e=>!e.type.indexOf("key")&&e instanceof KeyboardEvent,ym=e=>e.type==="click",bm=e=>e.type.indexOf("mouse")===0||["contextmenu"].includes(e.type),wm=e=>typeof TouchEvent!="undefined"&&e instanceof TouchEvent||e.type.indexOf("touch")===0||["longpress"].indexOf(e.type)>=0;function Sm(e,t,n){const{currentTarget:o}=e;if(!(e instanceof Event)||!(o instanceof HTMLElement))return[e];const i=!Mi(o);if(i)return Ss(e,t,n,!1)||[e];const r=Bi(e,i);if(ym(e))Vm(r,e);else if(bm(e))Am(r,e);else if(wm(e)){const a=io();r.touches=Vs(e.touches,a),r.changedTouches=Vs(e.changedTouches,a)}else _m(e)&&["key","code"].forEach(s=>{Object.defineProperty(r,s,{get(){return e[s]}})});return Ss(r,t,n)||[r]}function Tm(e){for(;!Mi(e);)e=e.parentElement;return e}function Bi(e,t=!1){const{type:n,timeStamp:o,target:i,currentTarget:r}=e;let a,s;a=Si(t?i:Tm(i)),s=Si(r);const l={type:n,timeStamp:o,target:a,detail:{},currentTarget:s};return e instanceof CustomEvent&&se(e.detail)&&(l.detail=e.detail),e._stopped&&(l._stopped=!0),e.type.startsWith("touch")&&(l.touches=e.touches,l.changedTouches=e.changedTouches),Cm(l,e),l}function Cm(e,t){L(e,{preventDefault(){return t.preventDefault()},stopPropagation(){return t.stopPropagation()}})}function Vm(e,t){const{x:n,y:o}=t,i=io();e.detail={x:n,y:o-i},e.touches=e.changedTouches=[Cs(t,i)]}function Am(e,t){const n=io();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[Cs(t,n)]}function Cs(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function Vs(e,t){const n=[];for(let o=0;o<e.length;o++){const{identifier:i,pageX:r,pageY:a,clientX:s,clientY:l,force:c}=e[o];n.push({identifier:i,pageX:r,pageY:a-t,clientX:s,clientY:l-t,force:c||0})}return n}const Em=Object.defineProperty({__proto__:null,$nne:Sm,createNativeEvent:Bi},Symbol.toStringTag,{value:"Module"});function km(e){const t=e.globalProperties;L(t,Em),__UNI_FEATURE_WXS__&&(t.$gcd=Li)}function Im(e){km(e._context.config)}const Nm=(e,t)=>UniServiceJSBridge.emit("api."+e,t);let As=1;function Es(e){return(e||pt())+"."+Nt}const xm=L(ts("view"),{invokeOnCallback:Nm,invokeViewMethod:(e,t,n,o)=>{const{subscribe:i,publishHandler:r}=UniServiceJSBridge,a=o?As++:0;o&&i(Nt+"."+a,o,!0),r(Es(n),{id:a,name:e,args:t},n)},invokeViewMethodKeepAlive:(e,t,n,o)=>{const{subscribe:i,unsubscribe:r,publishHandler:a}=UniServiceJSBridge,s=As++,l=Nt+"."+s;return i(l,n),a(Es(o),{id:s,name:e,args:t},o),()=>{r(l)}}});function Mm(){const{on:e}=UniServiceJSBridge;e(Yn,Pm),e(Pa,Om),e(Oa,Rm)}function Pm(e){const t=gt();re(t,Yn,e),UniServiceJSBridge.invokeOnCallback("onWindowResize",e)}function Om(e){const t=gt();re(getApp(),dt,e),re(t,dt)}function Rm(){re(getApp(),ft),re(gt(),ft)}const Lm=[Xn,_i];function Bm(){Lm.forEach(e=>UniServiceJSBridge.subscribe(e,Dm(e)))}function Dm(e){return(t,n)=>{re(parseInt(n),e,t)}}function Um(){Mm(),Bm()}function Fm(e){e.$vm=e,e.$mpType="app";const t=Vue.ref(U().getLocale());Object.defineProperty(e,"$locale",{get(){return t.value},set(n){t.value=n}})}function $m(e,t){e.route=t.route,e.$vm=e,e.$page=t,e.$mpType="page",e.$fontFamilySet=new Set,t.meta.isTabBar&&(e.$.__isTabBar=!0,e.$.__isActive=!0)}function zm(e,t){const n=e.$el.querySelector(t);return n&&n.__vue__}function Hm(e,t){const n=e.$el.querySelectorAll(t);return n?[...n].map(o=>o.__vue__).filter(Boolean):[]}function Wm(){return uni.createSelectorQuery().in(this)}function qm(){return uni.createMediaQueryObserver(this)}function Gm(e){return uni.createIntersectionObserver(this,e)}function jm(e){return zm(this,e)}function Ym(e){return Hm(this,e)}const Xm=Object.defineProperty({__proto__:null,createIntersectionObserver:Gm,createMediaQueryObserver:qm,createSelectorQuery:Wm,selectAllComponents:Ym,selectComponent:jm},Symbol.toStringTag,{value:"Module"});function Jm(){if(this.$route){const e=this.$route.meta;return e.eventChannel||(e.eventChannel=new Wa(this.$page.id)),e.eventChannel}}function Km(e){const t=e.globalProperties;t.getOpenerEventChannel=Jm,__UNI_FEATURE_WX__&&L(t,Xm)}function Qm(e){Km(e._context.config)}function ks(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}function Zm(e,t){const n=e.$options||{};n.globalData=L(n.globalData||{},t),Object.defineProperty(e,"globalData",{get(){return n.globalData},set(o){n.globalData=o}})}function Is(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,(t,n)=>`${uni.upx2px(parseFloat(n))}px`):/^-?[\d\.]+$/.test(e)?`${e}px`:e||""}function e0(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`).replace("webkit","-webkit")}function t0(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"],i=["width","height","left","right","top","bottom"],r=e.animates,a=e.option,s=a.transition,l={},c=[];return r.forEach(u=>{let d=u.type,f=[...u.args];if(t.concat(n).includes(d))d.startsWith("rotate")||d.startsWith("skew")?f=f.map(g=>parseFloat(g)+"deg"):d.startsWith("translate")&&(f=f.map(Is)),n.indexOf(d)>=0&&(f.length=1),c.push(`${d}(${f.join(",")})`);else if(o.concat(i).includes(f[0])){d=f[0];const g=f[1];l[d]=i.includes(d)?Is(g):g}}),l.transform=l.webkitTransform=c.join(" "),l.transition=l.webkitTransition=Object.keys(l).map(u=>`${e0(u)} ${s.duration}ms ${s.timingFunction} ${s.delay}ms`).join(","),l.transformOrigin=l.webkitTransformOrigin=a.transformOrigin,l}function Ns(e){const t=e.animation;if(!t||!t.actions||!t.actions.length)return;let n=0;const o=t.actions,i=t.actions.length;function r(){const a=o[n],s=a.option.transition,l=t0(a);Object.keys(l).forEach(c=>{e.$el.style[c]=l[c]}),n+=1,n<i&&setTimeout(r,s.duration+s.delay)}setTimeout(()=>{r()},0)}const n0={props:["animation"],watch:{animation:{deep:!0,handler(){Ns(this)}}},mounted(){Ns(this)}},X=e=>{e.__reserved=!0;const{props:t,mixins:n}=e;return(!t||!t.animation)&&(n||(e.mixins=[])).push(n0),ge(e)},ge=e=>(e.__reserved=!0,e.compatConfig={MODE:3},Vue.defineComponent(e)),Pt=e=>X({name:pi(Sa(e)),setup(){return()=>(Vue.openBlock(),Vue.createElementBlock("uni-"+e,null,e+" is unsupported"))}});function oe(e){return e.__wwe=!0,e}function pe(e,t){return(n,o,i)=>{e.value&&t(n,i0(n,o,e.value,i||{}))}}function o0(e){return(t,n)=>{e(t,Bi(n))}}function i0(e,t,n,o){let i;return i=Si(n),{type:t.__evName||o.type||e,timeStamp:t.timeStamp||0,target:i,currentTarget:i,detail:o}}const r0={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function Di(e){const t=Vue.ref(!1);let n=!1,o,i;function r(){requestAnimationFrame(()=>{clearTimeout(i),i=setTimeout(()=>{t.value=!1},parseInt(e.hoverStayTime))})}function a(_){_.touches.length>1||l(_)}function s(_){n||(l(_),window.addEventListener("mouseup",f))}function l(_){_._hoverPropagationStopped||!e.hoverClass||e.hoverClass==="none"||e.disabled||(e.hoverStopPropagation&&(_._hoverPropagationStopped=!0),n=!0,o=setTimeout(()=>{t.value=!0,n||r()},parseInt(e.hoverStartTime)))}function c(){d()}function u(){n&&f()}function d(){n=!1,t.value&&r()}function f(){d(),window.removeEventListener("mouseup",f)}function g(){n=!1,t.value=!1,clearTimeout(o)}return{hovering:t,binding:{onTouchstartPassive:oe(a),onMousedown:oe(s),onTouchend:oe(c),onMouseup:oe(u),onTouchcancel:oe(g)}}}function mt(e,t){return J(t)&&(t=[t]),t.reduce((n,o)=>(e[o]&&(n[o]=!0),n),Object.create(null))}const Fe=fn("uf"),a0=X({name:"Form",emits:["submit","reset"],setup(e,{slots:t,emit:n}){const o=Vue.ref(null);return s0(pe(o,n)),()=>Vue.createVNode("uni-form",{ref:o},[Vue.createVNode("span",null,[t.default&&t.default()])],512)}});function s0(e){const t=[];return Vue.provide(Fe,{addField(n){t.push(n)},removeField(n){t.splice(t.indexOf(n),1)},submit(n){e("submit",n,{value:t.reduce((o,i)=>{if(i.submit){const[r,a]=i.submit();r&&(o[r]=a)}return o},Object.create(null))})},reset(n){t.forEach(o=>o.reset&&o.reset()),e("reset",n)}}),t}const l0={for:{type:String,default:""}},mn=fn("ul");function c0(){const e=[];return Vue.provide(mn,{addHandler(t){e.push(t)},removeHandler(t){e.splice(e.indexOf(t),1)}}),e}const u0=X({name:"Label",props:l0,setup(e,{slots:t}){const n=Vue.ref(null),o=ao(),i=c0(),r=Vue.computed(()=>e.for||t.default&&t.default.length),a=oe(s=>{const l=s.target;let c=/^uni-(checkbox|radio|switch)-/.test(l.className);c||(c=/^uni-(checkbox|radio|switch|button)$|^(svg|path)$/i.test(l.tagName)),!c&&(e.for?UniViewJSBridge.emit("uni-label-click-"+o+"-"+e.for,s,!0):i.length&&i[0](s,!0))});return()=>Vue.createVNode("uni-label",{ref:n,class:{"uni-label-pointer":r},onClick:a},[t.default&&t.default()],10,["onClick"])}});function lo(e,t){xs(e.id,t),Vue.watch(()=>e.id,(n,o)=>{Ms(o,t,!0),xs(n,t,!0)}),Vue.onUnmounted(()=>{Ms(e.id,t)})}function xs(e,t,n){const o=ao();n&&!e||se(t)&&Object.keys(t).forEach(i=>{n?i.indexOf("@")!==0&&i.indexOf("uni-")!==0&&UniViewJSBridge.on(`uni-${i}-${o}-${e}`,t[i]):i.indexOf("uni-")===0?UniViewJSBridge.on(i,t[i]):e&&UniViewJSBridge.on(`uni-${i}-${o}-${e}`,t[i])})}function Ms(e,t,n){const o=ao();n&&!e||se(t)&&Object.keys(t).forEach(i=>{n?i.indexOf("@")!==0&&i.indexOf("uni-")!==0&&UniViewJSBridge.off(`uni-${i}-${o}-${e}`,t[i]):i.indexOf("uni-")===0?UniViewJSBridge.off(i,t[i]):e&&UniViewJSBridge.off(`uni-${i}-${o}-${e}`,t[i])})}const d0=X({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=Vue.ref(null),o=Vue.inject(Fe,!1),{hovering:i,binding:r}=Di(e),a=oe((l,c)=>{if(e.disabled)return l.stopImmediatePropagation();c&&n.value.click();const u=e.formType;if(u){if(!o)return;u==="submit"?o.submit(l):u==="reset"&&o.reset(l);return}}),s=Vue.inject(mn,!1);return s&&(s.addHandler(a),Vue.onBeforeUnmount(()=>{s.removeHandler(a)})),lo(e,{"label-click":a}),()=>{const l=e.hoverClass,c=mt(e,"disabled"),u=mt(e,"loading"),d=mt(e,"plain"),f=l&&l!=="none";return Vue.createVNode("uni-button",Vue.mergeProps({ref:n,onClick:a,id:e.id,class:f&&i.value?l:""},f&&r,c,u,d),[t.default&&t.default()],16,["onClick","id"])}}}),f0="",Ps=fn("upm");function Ot(){return Vue.inject(Ps)}function h0(e){const t=g0(e);return Vue.provide(Ps,t),t}function vn(){if(__UNI_FEATURE_PAGES__)return VueRouter.useRoute();const e=location.href,t=e.indexOf("?"),n=e.indexOf("#",t>-1?t:0);let o={};t>-1&&(o=Ha(e.slice(t+1,n>-1?n:e.length)));const{meta:i}=__uniRoutes[0],r=qe(i.route);return{meta:i,query:o,path:r,matched:[{path:r}]}}function g0(e){return __UNI_FEATURE_PAGES__?Vue.reactive(Os(JSON.parse(JSON.stringify(vs(VueRouter.useRoute().meta,e))))):Vue.reactive(Os(JSON.parse(JSON.stringify(vs(__uniRoutes[0].meta,e)))))}function Os(e){if(__UNI_FEATURE_PULL_DOWN_REFRESH__){const{enablePullDownRefresh:t,navigationBar:n}=e;if(t){const o=um(L({support:!0,color:"#2BD009",style:"circle",height:70,range:150,offset:0},e.pullToRefresh)),{type:i,style:r}=n;r!=="custom"&&i!=="transparent"&&(o.offset+=Ta+he.top),e.pullToRefresh=o}}if(__UNI_FEATURE_NAVIGATIONBAR__||__UNI_FEATURE_I18N_LOCALE__){const{navigationBar:t}=e,{titleSize:n,titleColor:o,backgroundColor:i}=t;t.titleText=t.titleText||"",t.type=t.type||"default",t.titleSize=n||"16px",t.titleColor=o||"#000000",t.backgroundColor=i||"#F8F8F8",__UNI_FEATURE_I18N_LOCALE__&&Mp(t)}if(__UNI_FEATURE_PAGES__&&history.state){const t=history.state.__type__;(t==="redirectTo"||t==="reLaunch")&&getCurrentPages().length===0&&(e.isEntry=!0,e.isQuit=!0)}return e}function p0(e){const t=window.screen,n=document.documentElement,o=[window.outerWidth,window.outerHeight,t.width,t.height,n.clientWidth,n.clientHeight];return Math.max.apply(null,o)>e}function Ui(){return history.state&&history.state.__id__||1}var Rt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",co=(function(){const e=new Uint8Array(256);for(var t=0;t<Rt.length;t++)e[Rt.charCodeAt(t)]=t;return e})();function m0(e){var t=new Uint8Array(e),n,o=t.length,i="";for(n=0;n<o;n+=3)i+=Rt[t[n]>>2],i+=Rt[(t[n]&3)<<4|t[n+1]>>4],i+=Rt[(t[n+1]&15)<<2|t[n+2]>>6],i+=Rt[t[n+2]&63];return o%3===2?i=i.substring(0,i.length-1)+"=":o%3===1&&(i=i.substring(0,i.length-2)+"=="),i}function v0(e){var t=e.length*.75,n=e.length,o,i=0,r,a,s,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var c=new ArrayBuffer(t),u=new Uint8Array(c);for(o=0;o<n;o+=4)r=co[e.charCodeAt(o)],a=co[e.charCodeAt(o+1)],s=co[e.charCodeAt(o+2)],l=co[e.charCodeAt(o+3)],u[i++]=r<<2|a>>4,u[i++]=(a&15)<<4|s>>2,u[i++]=(s&3)<<6|l&63;return c}const _0=["original","compressed"],Fi=["album","camera"],uo=["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"];function fo(e,t){return!e||t.indexOf(e)===-1?t[0]:e}function ho(e,t){return!K(e)||e.length===0||e.find(n=>t.indexOf(n)===-1)?t:e}function y0(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}let Rs=1;const $e={};function Ls(e,t,n,o=!1){return $e[e]={name:t,keepAlive:o,callback:n},e}function Bs(e,t,n){if(typeof e=="number"){const o=$e[e];if(o)return o.keepAlive||delete $e[e],o.callback(t,n)}return t}function Ds(e){for(const t in $e)if($e[t].name===e)return!0;return!1}function b0(e,t){for(const n in $e){const o=$e[n];o.callback===t&&o.name===e&&delete $e[n]}}function w0(e){UniServiceJSBridge.off("api."+e)}function S0(e){UniServiceJSBridge.on("api."+e,t=>{for(const n in $e){const o=$e[n];o.name===e&&o.callback(t)}})}function T0(e,t){return Ls(Rs++,e,t,!0)}const C0="success",V0="fail",A0="complete";function E0(e){const t={};for(const n in e){const o=e[n];G(o)&&(t[n]=y0(o),delete e[n])}return t}function k0(e,t){return!e||e.indexOf(":fail")===-1?t+":ok":t+e.substring(e.indexOf(":fail"))}function I0(e,t={},{beforeAll:n,beforeSuccess:o}={}){se(t)||(t={});const{success:i,fail:r,complete:a}=E0(t),s=G(i),l=G(r),c=G(a),u=Rs++;return Ls(u,e,d=>{d=d||{},d.errMsg=k0(d.errMsg,e),G(n)&&n(d),d.errMsg===e+":ok"?(G(o)&&o(d,t),s&&i(d)):l&&r(d),c&&a(d)}),u}const N0="success",x0="fail",M0="complete",Lt={},Bt={};function P0(e,t){return function(n){return e(n,t)||n}}function Us(e,t,n){let o=!1;for(let i=0;i<e.length;i++){const r=e[i];if(o)o=Promise.resolve(P0(r,n));else{const a=r(t,n);if(hg(a)&&(o=Promise.resolve(a)),a===!1)return{then(){},catch(){}}}}return o||{then(i){return i(t)},catch(){}}}function Fs(e,t={}){return[N0,x0,M0].forEach(n=>{const o=e[n];if(!K(o))return;const i=t[n];t[n]=function(a){Us(o,a,t).then(s=>G(i)&&i(s)||s)}}),t}function $s(e,t){const n=[];K(Lt.returnValue)&&n.push(...Lt.returnValue);const o=Bt[e];return o&&K(o.returnValue)&&n.push(...o.returnValue),n.forEach(i=>{t=i(t)||t}),t}function zs(e){const t=Object.create(null);Object.keys(Lt).forEach(o=>{o!=="returnValue"&&(t[o]=Lt[o].slice())});const n=Bt[e];return n&&Object.keys(n).forEach(o=>{o!=="returnValue"&&(t[o]=(t[o]||[]).concat(n[o]))}),t}function Hs(e,t,n,o){const i=zs(e);return i&&Object.keys(i).length?K(i.invoke)?Us(i.invoke,n).then(a=>t(Fs(zs(e),a),...o)):t(Fs(i,n),...o):t(n,...o)}function O0(e){return!!(se(e)&&[C0,V0,A0].find(t=>G(e[t])))}function ZV(e){return e}function Ws(e,t){return(n={},...o)=>O0(n)?$s(e,Hs(e,t,L({},n),o)):$s(e,new Promise((i,r)=>{Hs(e,t,L({},n,{success:i,fail:r}),o)}))}function R0(e,t){const n=e[0];if(!t||!t.formatArgs||!se(t.formatArgs)&&se(n))return;const o=t.formatArgs,i=Object.keys(o);for(let r=0;r<i.length;r++){const a=i[r],s=o[a];if(G(s)){const l=s(e[0][a],n);if(J(l))return l}else ae(n,a)||(n[a]=s)}}function L0(e,t,n){const o={errMsg:t+":ok"};return Bs(e,L(n||{},o))}function qs(e,t,n,o={}){const i=t+":fail";let r="";n?n.indexOf(i)===0?r=n:r=i+" "+n:r=i,delete o.errCode;let a=L({errMsg:r},o);return Bs(e,a)}function go(e,t,n,o){if(o&&o.beforeInvoke){const r=o.beforeInvoke(t);if(J(r))return r}const i=R0(t,o);if(i)return i}function Gs(e){if(!G(e))throw new Error('Invalid args: type check failed for args "callback". Expected Function')}function B0(e,t,n){return o=>{Gs(o);const i=go(e,[o],void 0,n);if(i)throw new Error(i);const r=!Ds(e);T0(e,o),r&&(S0(e),t())}}function D0(e,t,n){return o=>{Gs(o);const i=go(e,[o],void 0,n);if(i)throw new Error(i);e=e.replace("off","on"),b0(e,o),Ds(e)||(w0(e),t())}}function U0(e){return!e||J(e)?e:e.stack?((typeof globalThis=="undefined"||!globalThis.harmonyChannel)&&console.error(e.message+`
|
|
3
|
-
`+e.stack),e.message):e}function js(e,t,n,o){return i=>{const r=I0(e,i,o),a=go(e,[i],n,o);return a?qs(r,e,a):t(i,{resolve:s=>L0(r,e,s),reject:(s,l)=>qs(r,e,U0(s),l)})}}function F0(e,t,n,o){return(...i)=>{const r=go(e,i,n,o);if(r)throw new Error(r);return t.apply(null,i)}}function $0(e,t,n,o){return js(e,t,n,o)}function ke(e,t,n){return B0(e,t,n)}function vt(e,t,n){return D0(e,t,n)}function po(e,t,n,o){return Ws(e,js(e,t,void 0,o))}function j(e,t,n,o){return F0(e,t,void 0,o)}function R(e,t,n,o){return Ws(e,$0(e,t,void 0,o))}function Ys(e){return`method 'uni.${e}' not supported`}function mo(e){return()=>{console.error(Ys(e))}}const $i=mo;function be(e){return(t,{reject:n})=>n(Ys(e))}const z0="base64ToArrayBuffer",H0="arrayBufferToBase64",Xs=j(z0,e=>v0(e)),Js=j(H0,e=>m0(e)),W0="upx2px",q0=1e-4,G0=750;let Ks=!1,zi=0,Qs=0,Zs=960,el=375,tl=750;function j0(){let e,t,n;{const{windowWidth:o,pixelRatio:i,platform:r}=Fc();e=o,t=i,n=r}zi=e,Qs=t,Ks=n==="ios"}function Hi(e,t){const n=Number(e);return isNaN(n)?t:n}function Y0(){const e=__uniConfig.globalStyle||{};Zs=Hi(e.rpxCalcMaxDeviceWidth,960),el=Hi(e.rpxCalcBaseDeviceWidth,375),tl=Hi(e.rpxCalcBaseDeviceWidth,750)}const vo=j(W0,(e,t)=>{if(zi===0&&(j0(),Y0()),e=Number(e),e===0)return 0;let n=t||zi;n=e===tl||n<=Zs?n:el;let o=e/G0*n;return o<0&&(o=-o),o=Math.floor(o+q0),o===0&&(Qs===1||!Ks?o=1:o=.5),e<0?-o:o}),X0="addInterceptor",J0="removeInterceptor";function nl(e,t){Object.keys(t).forEach(n=>{G(t[n])&&(e[n]=K0(e[n],t[n]))})}function ol(e,t){!e||!t||Object.keys(t).forEach(n=>{const o=e[n],i=t[n];K(o)&&G(i)&&Se(o,i)})}function K0(e,t){const n=t?e?e.concat(t):K(t)?t:[t]:e;return n&&Q0(n)}function Q0(e){const t=[];for(let n=0;n<e.length;n++)t.indexOf(e[n])===-1&&t.push(e[n]);return t}const il=j(X0,(e,t)=>{J(e)&&se(t)?nl(Bt[e]||(Bt[e]={}),t):se(e)&&nl(Lt,e)}),rl=j(J0,(e,t)=>{J(e)?se(t)?ol(Bt[e],t):delete Bt[e]:se(e)&&ol(Lt,e)}),al={},Z0="$on",ev="$once",tv="$off",nv="$emit";class ov{constructor(){this.$emitter=new Ai}on(t,n){return this.$emitter.on(t,n)}once(t,n){return this.$emitter.once(t,n)}off(t,n){if(!t){this.$emitter.e={};return}this.$emitter.off(t,n)}emit(t,...n){this.$emitter.emit(t,...n)}}const Dt=new ov,sl=j(Z0,(e,t)=>(Dt.on(e,t),()=>Dt.off(e,t))),ll=j(ev,(e,t)=>(Dt.once(e,t),()=>Dt.off(e,t))),cl=j(tv,(e,t)=>{K(e)||(e=e?[e]:[]),e.forEach(n=>{Dt.off(n,t)})}),ul=j(nv,(e,...t)=>{Dt.emit(e,...t)});function dl(e,t,...n){t&&n.push(t),console[e].apply(console,n)}const iv="createVideoContext",rv="createMapContext",av="createCanvasContext",sv="createInnerAudioContext",lv=[.5,.8,1,1.25,1.5,2];class Wi{constructor(t,n){this.id=t,this.pageId=n}play(){ze(this.id,this.pageId,"play")}pause(){ze(this.id,this.pageId,"pause")}stop(){ze(this.id,this.pageId,"stop")}seek(t){ze(this.id,this.pageId,"seek",{position:t})}sendDanmu(t){ze(this.id,this.pageId,"sendDanmu",t)}playbackRate(t){~lv.indexOf(t)||(t=1),ze(this.id,this.pageId,"playbackRate",{rate:t})}requestFullScreen(t={}){ze(this.id,this.pageId,"requestFullScreen",t)}exitFullScreen(){ze(this.id,this.pageId,"exitFullScreen")}showStatusBar(){ze(this.id,this.pageId,"showStatusBar")}hideStatusBar(){ze(this.id,this.pageId,"hideStatusBar")}}const fl=j(iv,(e,t)=>t?new Wi(e,Ae(t)):new Wi(e,Ae(Ee()))),cv=(e,t)=>{const n=t.errMsg||"";new RegExp("\\:\\s*fail").test(n)?e.fail&&e.fail(t):e.success&&e.success(t),e.complete&&e.complete(t)},me=(e,t,n,o)=>{Pb(e,t,n,o,i=>{o&&cv(o,i)})};class qi{constructor(t,n){this.id=t,this.pageId=n}getCenterLocation(t){me(this.id,this.pageId,"getCenterLocation",t)}moveToLocation(t){me(this.id,this.pageId,"moveToLocation",t)}getScale(t){me(this.id,this.pageId,"getScale",t)}getRegion(t){me(this.id,this.pageId,"getRegion",t)}includePoints(t){me(this.id,this.pageId,"includePoints",t)}translateMarker(t){me(this.id,this.pageId,"translateMarker",t)}$getAppMap(){}addCustomLayer(t){me(this.id,this.pageId,"addCustomLayer",t)}removeCustomLayer(t){me(this.id,this.pageId,"removeCustomLayer",t)}addGroundOverlay(t){me(this.id,this.pageId,"addGroundOverlay",t)}removeGroundOverlay(t){me(this.id,this.pageId,"removeGroundOverlay",t)}updateGroundOverlay(t){me(this.id,this.pageId,"updateGroundOverlay",t)}initMarkerCluster(t){me(this.id,this.pageId,"initMarkerCluster",t)}addMarkers(t){me(this.id,this.pageId,"addMarkers",t)}removeMarkers(t){me(this.id,this.pageId,"removeMarkers",t)}moveAlong(t){me(this.id,this.pageId,"moveAlong",t)}setLocMarkerIcon(t){me(this.id,this.pageId,"setLocMarkerIcon",t)}openMapApp(t){me(this.id,this.pageId,"openMapApp",t)}on(t,n){me(this.id,this.pageId,"on",{name:t,callback:n})}}const hl=j(rv,(e,t)=>t?new qi(e,Ae(t)):new qi(e,Ae(Ee())));function Ke(e,t){return function(n,o){n?o[e]=Math.round(n):typeof t!="undefined"&&(o[e]=t)}}const gl=Ke("width"),pl=Ke("height"),uv="canvasGetImageData",ml={formatArgs:{x:Ke("x"),y:Ke("y"),width:gl,height:pl}},vl={canvasId:{type:String,required:!0},x:{type:Number,required:!0},y:{type:Number,required:!0},width:{type:Number,required:!0},height:{type:Number,required:!0}},dv="canvasPutImageData",fv=ml,hv=L({data:{type:Uint8ClampedArray,required:!0}},vl,{height:{type:Number}}),_l={PNG:"png",JPG:"jpg",JPEG:"jpg"},gv="canvasToTempFilePath",pv={formatArgs:{x:Ke("x",0),y:Ke("y",0),width:gl,height:pl,destWidth:Ke("destWidth"),destHeight:Ke("destHeight"),fileType(e,t){e=(e||"").toUpperCase();let n=_l[e];n||(n=_l.PNG),t.fileType=n},quality(e,t){t.quality=e&&e>0&&e<1?e:1}}},mv={};function _o(e,t,n,o,i){UniServiceJSBridge.invokeViewMethod(`canvas.${e}`,{type:n,data:o},t,r=>{i&&i(r)})}var vv=["scale","rotate","translate","setTransform","transform"],_v=["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"],yv=["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"];function bv(e,t){const o=document.createElement("canvas").getContext("2d");return o.font=t,o.measureText(e).width||0}const yl={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",transparent:"#00000000"};function Gi(e){e=e||"#000000";let t=null;if((t=/^#([0-9|A-F|a-f]{6})$/.exec(e))!=null){const o=parseInt(t[1].slice(0,2),16),i=parseInt(t[1].slice(2,4),16),r=parseInt(t[1].slice(4),16);return[o,i,r,255]}if((t=/^#([0-9|A-F|a-f]{3})$/.exec(e))!=null){let o=t[1].slice(0,1),i=t[1].slice(1,2),r=t[1].slice(2,3);return o=parseInt(o+o,16),i=parseInt(i+i,16),r=parseInt(r+r,16),[o,i,r,255]}if((t=/^rgb\((.+)\)$/.exec(e))!=null)return t[1].split(",").map(function(o){return Math.min(255,parseInt(o.trim()))}).concat(255);if((t=/^rgba\((.+)\)$/.exec(e))!=null)return t[1].split(",").map(function(o,i){return i===3?Math.floor(255*parseFloat(o.trim())):Math.min(255,parseInt(o.trim()))});var n=e.toLowerCase();if(ae(yl,n)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(yl[n]);const o=parseInt(t[1].slice(0,2),16),i=parseInt(t[1].slice(2,4),16),r=parseInt(t[1].slice(4,6),16);let a=parseInt(t[1].slice(6,8),16);return a=a>=0?a:255,[o,i,r,a]}return console.error("unsupported color:"+e),[0,0,0,255]}class bl{constructor(t,n){this.type=t,this.data=n,this.colorStop=[]}addColorStop(t,n){this.colorStop.push([t,Gi(n)])}}class wv{constructor(t,n){this.type="pattern",this.data=t,this.colorStop=n}}class Sv{constructor(t){this.width=t}}const Tv=()=>f0;class _n{constructor(t,n){this.id=t,this.pageId=n,this.actions=[],this.path=[],this.subpath=[],this.drawingState=[],this.state={lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}setFillStyle(t){console.log("initCanvasContextProperty implemented.")}setStrokeStyle(t){console.log("initCanvasContextProperty implemented.")}setShadow(t,n,o,i){console.log("initCanvasContextProperty implemented.")}addColorStop(t,n){console.log("initCanvasContextProperty implemented.")}setLineWidth(t){console.log("initCanvasContextProperty implemented.")}setLineCap(t){console.log("initCanvasContextProperty implemented.")}setLineJoin(t){console.log("initCanvasContextProperty implemented.")}setLineDash(t,n){console.log("initCanvasContextProperty implemented.")}setMiterLimit(t){console.log("initCanvasContextProperty implemented.")}fillRect(t,n,o,i){console.log("initCanvasContextProperty implemented.")}strokeRect(t,n,o,i){console.log("initCanvasContextProperty implemented.")}clearRect(t,n,o,i){console.log("initCanvasContextProperty implemented.")}fill(){console.log("initCanvasContextProperty implemented.")}stroke(){console.log("initCanvasContextProperty implemented.")}scale(t,n){console.log("initCanvasContextProperty implemented.")}rotate(t){console.log("initCanvasContextProperty implemented.")}translate(t,n){console.log("initCanvasContextProperty implemented.")}setFontSize(t){console.log("initCanvasContextProperty implemented.")}fillText(t,n,o,i){console.log("initCanvasContextProperty implemented.")}setTextAlign(t){console.log("initCanvasContextProperty implemented.")}setTextBaseline(t){console.log("initCanvasContextProperty implemented.")}drawImage(t,n,o,i,r,a,s,l,c){console.log("initCanvasContextProperty implemented.")}setGlobalAlpha(t){console.log("initCanvasContextProperty implemented.")}strokeText(t,n,o,i){console.log("initCanvasContextProperty implemented.")}setTransform(t,n,o,i,r,a){console.log("initCanvasContextProperty implemented.")}draw(t=!1,n){var o=[...this.actions];this.actions=[],this.path=[],_o(this.id,this.pageId,"actionsChanged",{actions:o,reserve:t},n)}createLinearGradient(t,n,o,i){return new bl("linear",[t,n,o,i])}createCircularGradient(t,n,o){return new bl("radial",[t,n,o])}createPattern(t,n){if(n===void 0)console.error("Failed to execute 'createPattern' on 'CanvasContext': 2 arguments required, but only 1 present.");else if(["repeat","repeat-x","repeat-y","no-repeat"].indexOf(n)<0)console.error("Failed to execute 'createPattern' on 'CanvasContext': The provided type ('"+n+"') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.");else return new wv(t,n)}measureText(t,n){const o=this.state.font;let i=0;return i=bv(t,o),new Sv(i)}save(){this.actions.push({method:"save",data:[]}),this.drawingState.push(this.state)}restore(){this.actions.push({method:"restore",data:[]}),this.state=this.drawingState.pop()||{lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}beginPath(){this.path=[],this.subpath=[],this.path.push({method:"beginPath",data:[]})}moveTo(t,n){this.path.push({method:"moveTo",data:[t,n]}),this.subpath=[[t,n]]}lineTo(t,n){this.path.length===0&&this.subpath.length===0?this.path.push({method:"moveTo",data:[t,n]}):this.path.push({method:"lineTo",data:[t,n]}),this.subpath.push([t,n])}quadraticCurveTo(t,n,o,i){this.path.push({method:"quadraticCurveTo",data:[t,n,o,i]}),this.subpath.push([o,i])}bezierCurveTo(t,n,o,i,r,a){this.path.push({method:"bezierCurveTo",data:[t,n,o,i,r,a]}),this.subpath.push([r,a])}arc(t,n,o,i,r,a=!1){this.path.push({method:"arc",data:[t,n,o,i,r,a]}),this.subpath.push([t,n])}rect(t,n,o,i){this.path.push({method:"rect",data:[t,n,o,i]}),this.subpath=[[t,n]]}arcTo(t,n,o,i,r){this.path.push({method:"arcTo",data:[t,n,o,i,r]}),this.subpath.push([o,i])}clip(){this.actions.push({method:"clip",data:[...this.path]})}closePath(){this.path.push({method:"closePath",data:[]}),this.subpath.length&&(this.subpath=[this.subpath.shift()])}clearActions(){this.actions=[],this.path=[],this.subpath=[]}getActions(){var t=[...this.actions];return this.clearActions(),t}set lineDashOffset(t){this.actions.push({method:"setLineDashOffset",data:[t]})}set globalCompositeOperation(t){this.actions.push({method:"setGlobalCompositeOperation",data:[t]})}set shadowBlur(t){this.actions.push({method:"setShadowBlur",data:[t]})}set shadowColor(t){this.actions.push({method:"setShadowColor",data:[t]})}set shadowOffsetX(t){this.actions.push({method:"setShadowOffsetX",data:[t]})}set shadowOffsetY(t){this.actions.push({method:"setShadowOffsetY",data:[t]})}set font(t){var n=this;this.state.font=t;var o=t.match(/^(([\w\-]+\s)*)(\d+\.?\d*r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/);if(o){var i=o[1].trim().split(/\s/),r=parseFloat(o[3]),a=o[7],s=[];i.forEach(function(c,u){["italic","oblique","normal"].indexOf(c)>-1?(s.push({method:"setFontStyle",data:[c]}),n.state.fontStyle=c):["bold","normal","lighter","bolder"].indexOf(c)>-1||/^\d+$/.test(c)?(s.push({method:"setFontWeight",data:[c]}),n.state.fontWeight=c):u===0?(s.push({method:"setFontStyle",data:["normal"]}),n.state.fontStyle="normal"):u===1&&l()}),i.length===1&&l(),i=s.map(function(c){return c.data[0]}).join(" "),this.state.fontSize=r,this.state.fontFamily=a,this.actions.push({method:"setFont",data:[`${i} ${r}px ${a}`]})}else console.warn("Failed to set 'font' on 'CanvasContext': invalid format.");function l(){s.push({method:"setFontWeight",data:["normal"]}),n.state.fontWeight="normal"}}get font(){return this.state.font}set fillStyle(t){this.setFillStyle(t)}set strokeStyle(t){this.setStrokeStyle(t)}set globalAlpha(t){t=Math.floor(255*parseFloat(t)),this.actions.push({method:"setGlobalAlpha",data:[t]})}set textAlign(t){this.actions.push({method:"setTextAlign",data:[t]})}set lineCap(t){this.actions.push({method:"setLineCap",data:[t]})}set lineJoin(t){this.actions.push({method:"setLineJoin",data:[t]})}set lineWidth(t){this.actions.push({method:"setLineWidth",data:[t]})}set miterLimit(t){this.actions.push({method:"setMiterLimit",data:[t]})}set textBaseline(t){this.actions.push({method:"setTextBaseline",data:[t]})}}const Cv=ne(()=>{[...vv,..._v].forEach(function(e){function t(n){switch(n){case"fill":case"stroke":return function(){this.actions.push({method:n+"Path",data:[...this.path]})};case"fillRect":return function(o,i,r,a){this.actions.push({method:"fillPath",data:[{method:"rect",data:[o,i,r,a]}]})};case"strokeRect":return function(o,i,r,a){this.actions.push({method:"strokePath",data:[{method:"rect",data:[o,i,r,a]}]})};case"fillText":case"strokeText":return function(o,i,r,a){var s=[o.toString(),i,r];typeof a=="number"&&s.push(a),this.actions.push({method:n,data:s})};case"drawImage":return function(o,i,r,a,s,l,c,u,d){d===void 0&&(l=i,c=r,u=a,d=s,i=void 0,r=void 0,a=void 0,s=void 0);var f;function g(_){return typeof _=="number"}f=g(i)&&g(r)&&g(a)&&g(s)?[o,l,c,u,d,i,r,a,s]:g(u)&&g(d)?[o,l,c,u,d]:[o,l,c],this.actions.push({method:n,data:f})};default:return function(...o){this.actions.push({method:n,data:o})}}}_n.prototype[e]=t(e)}),yv.forEach(function(e){function t(n){switch(n){case"setFillStyle":case"setStrokeStyle":return function(o){typeof o!="object"?this.actions.push({method:n,data:["normal",Gi(o)]}):this.actions.push({method:n,data:[o.type,o.data,o.colorStop]})};case"setGlobalAlpha":return function(o){o=Math.floor(255*parseFloat(o)),this.actions.push({method:n,data:[o]})};case"setShadow":return function(o,i,r,a){a=Gi(a),this.actions.push({method:n,data:[o,i,r,a]}),this.state.shadowBlur=r,this.state.shadowColor=a,this.state.shadowOffsetX=o,this.state.shadowOffsetY=i};case"setLineDash":return function(o,i){o=o||[0,0],i=i||0,this.actions.push({method:n,data:[o,i]}),this.state.lineDash=o};case"setFontSize":return function(o){this.state.font=this.state.font.replace(/\d+\.?\d*px/,o+"px"),this.state.fontSize=o,this.actions.push({method:n,data:[o]})};default:return function(...o){this.actions.push({method:n,data:o})}}}_n.prototype[e]=t(e)})}),wl=j(av,(e,t)=>{if(Cv(),t)return new _n(e,Ae(t));const n=Ae(Ee());if(n)return new _n(e,n);UniServiceJSBridge.emit(ht,"createCanvasContext:fail")}),Sl=R(uv,({canvasId:e,x:t,y:n,width:o,height:i},{resolve:r,reject:a})=>{const s=Ae(Ee());if(!s){a();return}function l(c){if(c.errMsg&&c.errMsg.indexOf("fail")!==-1){a("",c);return}let u=c.data;u&&u.length&&(c.data=new Uint8ClampedArray(u)),delete c.compressed,r(c)}_o(e,s,"getImageData",{x:t,y:n,width:o,height:i},l)},vl,ml),Tl=R(dv,({canvasId:e,data:t,x:n,y:o,width:i,height:r},{resolve:a,reject:s})=>{var l=Ae(Ee());if(!l){s();return}let c;const u=()=>{_o(e,l,"putImageData",{data:t,x:n,y:o,width:i,height:r,compressed:c},d=>{if(d.errMsg&&d.errMsg.indexOf("fail")!==-1){s();return}a(d)})};t=Array.prototype.slice.call(t),u()},hv,fv),Cl=R(gv,({x:e=0,y:t=0,width:n,height:o,destWidth:i,destHeight:r,canvasId:a,fileType:s,quality:l},{resolve:c,reject:u})=>{var d=Ae(Ee());if(!d){u();return}let f=`${Tv()}/canvas`;_o(a,d,"toTempFilePath",{x:e,y:t,width:n,height:o,destWidth:i,destHeight:r,fileType:s,quality:l,dirname:f},g=>{if(g.errMsg&&g.errMsg.indexOf("fail")!==-1){u("",g);return}c(g)})},mv,pv),Vl=["onCanplay","onPlay","onPause","onStop","onEnded","onTimeUpdate","onError","onWaiting","onSeeking","onSeeked"],Vv=["offCanplay","offPlay","offPause","offStop","offEnded","offTimeUpdate","offError","offWaiting","offSeeking","offSeeked"],Av={thresholds:[0],initialRatio:0,observeAll:!1},Ev=["top","right","bottom","left"];let kv=1;function Al(e={}){return Ev.map(t=>`${Number(e[t])||0}px`).join(" ")}class El{constructor(t,n){this._pageId=Ae(t),this._component=t,this._options=L({},Av,n)}relativeTo(t,n){return this._options.relativeToSelector=t,this._options.rootMargin=Al(n),this}relativeToViewport(t){return this._options.relativeToSelector=void 0,this._options.rootMargin=Al(t),this}observe(t,n){G(n)&&(this._options.selector=t,this._reqId=kv++,Ub({reqId:this._reqId,component:this._component,options:this._options,callback:n},this._pageId))}disconnect(){this._reqId&&Fb({reqId:this._reqId,component:this._component},this._pageId)}}const kl=j("createIntersectionObserver",(e,t)=>(e=rn(e),e&&!Ae(e)&&(t=e,e=null),e?new El(e,t):new El(Ee(),t)));let Iv=1;class Il{constructor(t){this._pageId=(t==null?void 0:t.$page)&&t.$page.id,this._component=t}observe(t,n){G(n)&&(this._reqId=Iv++,zb({reqId:this._reqId,component:this._component,options:t,callback:n},this._pageId))}disconnect(){this._reqId&&Hb({reqId:this._reqId,component:this._component},this._pageId)}}const Nl=j("createMediaQueryObserver",e=>(e=rn(e),e&&!Ae(e)&&(e=null),e?new Il(e):new Il(Ee())));let Nv=0,ji={};function xv(e,t,n,o){const i={options:o},r=o&&("success"in o||"fail"in o||"complete"in o);if(r){const a=String(Nv++);i.callbackId=a,ji[a]=o}UniServiceJSBridge.invokeViewMethod(`editor.${e}`,{type:n,data:i},t,({callbackId:a,data:s})=>{r&&(ye(ji[a],s),delete ji[a])})}class Mv{constructor(t,n){this.id=t,this.pageId=n}format(t,n){this._exec("format",{name:t,value:n})}insertDivider(){this._exec("insertDivider")}insertImage(t){this._exec("insertImage",t)}insertText(t){this._exec("insertText",t)}setContents(t){this._exec("setContents",t)}getContents(t){this._exec("getContents",t)}clear(t){this._exec("clear",t)}removeFormat(t){this._exec("removeFormat",t)}undo(t){this._exec("undo",t)}redo(t){this._exec("redo",t)}blur(t){this._exec("blur",t)}getSelectionText(t){this._exec("getSelectionText",t)}scrollIntoView(t){this._exec("scrollIntoView",t)}_exec(t,n){xv(this.id,this.pageId,t,n)}}const Pv={canvas:_n,map:qi,video:Wi,editor:Mv};function xl(e){if(e&&e.contextInfo){const{id:t,type:n,page:o}=e.contextInfo,i=Pv[n];e.context=new i(t,o),delete e.contextInfo}}class Yi{constructor(t,n,o,i){this._selectorQuery=t,this._component=n,this._selector=o,this._single=i}boundingClientRect(t){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,rect:!0,size:!0},t),this._selectorQuery}fields(t,n){return this._selectorQuery._push(this._selector,this._component,this._single,t,n),this._selectorQuery}scrollOffset(t){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,scrollOffset:!0},t),this._selectorQuery}context(t){return this._selectorQuery._push(this._selector,this._component,this._single,{context:!0},t),this._selectorQuery}node(t){return this._selectorQuery._push(this._selector,this._component,this._single,{node:!0},t),this._selectorQuery}}class Ov{constructor(t){this._component=void 0,this._page=t,this._queue=[],this._queueCb=[]}exec(t){return Bb(this._page,this._queue,n=>{const o=this._queueCb;n.forEach((i,r)=>{K(i)?i.forEach(xl):xl(i);const a=o[r];G(a)&&a.call(this,i)}),G(t)&&t.call(this,n)}),this._nodesRef}in(t){return this._component=rn(t),this}select(t){return this._nodesRef=new Yi(this,this._component,t,!0)}selectAll(t){return this._nodesRef=new Yi(this,this._component,t,!1)}selectViewport(){return this._nodesRef=new Yi(this,null,"",!0)}_push(t,n,o,i,r){this._queue.push({component:n,selector:t,single:o,fields:i}),this._queueCb.push(r)}}const Ml=j("createSelectorQuery",e=>(e=rn(e),e&&!Ae(e)&&(e=null),new Ov(e||Ee()))),Rv="createAnimation",Lv={formatArgs:{}},Bv={},Dv={duration:400,timingFunction:"linear",delay:0,transformOrigin:"50% 50% 0"};class Pl{constructor(t){this.actions=[],this.currentTransform={},this.currentStepAnimates=[],this.option=L({},Dv,t)}_getOption(t){const n={transition:L({},this.option,t),transformOrigin:""};return n.transformOrigin=n.transition.transformOrigin,delete n.transition.transformOrigin,n}_pushAnimates(t,n){this.currentStepAnimates.push({type:t,args:n})}_converType(t){return t.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}_getValue(t){return typeof t=="number"?`${t}px`:t}export(){const t=this.actions;return this.actions=[],{actions:t}}step(t){return this.currentStepAnimates.forEach(n=>{n.type!=="style"?this.currentTransform[n.type]=n:this.currentTransform[`${n.type}.${n.args[0]}`]=n}),this.actions.push({animates:Object.values(this.currentTransform),option:this._getOption(t)}),this.currentStepAnimates=[],this}}const Uv=ne(()=>{const e=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"],t=["opacity","backgroundColor"],n=["width","height","left","right","top","bottom"];e.concat(t,n).forEach(o=>{Pl.prototype[o]=function(...i){return t.concat(n).includes(o)?this._pushAnimates("style",[this._converType(o),n.includes(o)?this._getValue(i[0]):i[0]]):this._pushAnimates(o,i),this}})}),Ol=j(Rv,e=>(Uv(),new Pl(e)),Bv,Lv),Rl="onTabBarMidButtonTap",Ll=ke(Rl,()=>{}),Fv="onWindowResize",$v="offWindowResize",Bl=ke(Fv,()=>{}),Dl=vt($v,()=>{}),zv="setLocale",Hv="getLocale",Ul="onLocaleChange",yo=j(Hv,()=>{const e=getApp({allowDefault:!0});return e&&e.$vm?e.$vm.$locale:U().getLocale()}),Fl=ke(Ul,()=>{}),$l=j(zv,e=>{const t=getApp();return t&&t.$vm.$locale!==e?(t.$vm.$locale=e,navigator.cookieEnabled&&window.localStorage&&(localStorage[Ca]=e),UniServiceJSBridge.invokeOnCallback(Ul,{locale:e}),!0):!1}),zl=R("setPageMeta",(e,{resolve:t})=>{t(Db(Ee(),e))}),Hl="getSelectedTextRange",Wl=R(Hl,(e,{resolve:t,reject:n})=>{UniServiceJSBridge.invokeViewMethod(Hl,{},pt(),o=>{typeof o.end=="undefined"&&typeof o.start=="undefined"?n("no focused"):t(o)})}),bo={[jn]:[],[Gn]:[],[ht]:[],[dt]:[],[ft]:[]};function yn(e,t){const n=getApp({allowDefault:!0});if(n&&n.$vm)return Vue.injectHook(e,t,n.$vm.$);bo[e].push(t)}function Wv(e){Object.keys(bo).forEach(t=>{bo[t].forEach(n=>{Vue.injectHook(t,n,e)})})}function bn(e,t){const n=getApp({allowDefault:!0});if(n&&n.$vm)return dm(n.$vm,e,t);Se(bo[e],t)}function ql(e){yn(jn,e)}function Gl(e){bn(jn,e)}function jl(e){yn(Gn,e)}function Yl(e){bn(Gn,e)}function Xl(e){yn(ht,e)}function Jl(e){bn(ht,e)}function Kl(e){yn(dt,e)}function Ql(e){bn(dt,e)}function Zl(e){yn(ft,e)}function ec(e){bn(ft,e)}const tc=j("getEnterOptionsSync",()=>Gc()),nc=j("getLaunchOptionsSync",()=>Xb());let wn,Xi,Ji;function oc(e){try{return JSON.parse(e)}catch(t){}return e}function ic(e){if(e.type==="enabled")Ji=!0;else if(e.type==="clientId")wn=e.cid,Xi=e.errMsg,rc(wn,e.errMsg);else if(e.type==="pushMsg"){const t={type:"receive",data:oc(e.message)};for(let n=0;n<Qe.length;n++){const o=Qe[n];if(o(t),t.stopped)break}}else e.type==="click"&&Qe.forEach(t=>{t({type:"click",data:oc(e.message)})})}const Ki=[];function rc(e,t){Ki.forEach(n=>{n(e,t)}),Ki.length=0}const ac=R("getPushClientId",(e,{resolve:t,reject:n})=>{Promise.resolve().then(()=>{typeof Ji=="undefined"&&(Ji=!1,wn="",Xi="uniPush is not enabled"),Ki.push((o,i)=>{o?t({cid:o}):n(i)}),typeof wn!="undefined"&&rc(wn,Xi)})}),Qe=[],sc=e=>{Qe.indexOf(e)===-1&&Qe.push(e)},lc=e=>{if(!e)Qe.length=0;else{const t=Qe.indexOf(e);t>-1&&Qe.splice(t,1)}},qv="canIUse",Gv="makePhoneCall",jv="getClipboardData",Yv="setClipboardData",Xv={formatArgs:{showToast:!0},beforeInvoke(){Ep()},beforeSuccess(e,t){if(!t.showToast)return;const{t:n}=U(),o=n("uni.setClipboardData.success");o&&uni.showToast({title:o,icon:"success",mask:!1})}},Jv={},cc="onAccelerometer",Kv="offAccelerometer",Qv="startAccelerometer",Zv="stopAccelerometer",uc="onCompass",e_="offCompass",t_="startCompass",n_="stopCompass",o_="vibrateShort",i_="vibrateLong",r_="getStorage",a_="getStorageSync",s_="setStorage",l_="setStorageSync",dc="removeStorage",c_="getFileInfo",u_={formatArgs:{filePath(e,t){t.filePath=Q(e)}}},d_={},f_="openDocument",h_={formatArgs:{filePath(e,t){t.filePath=Q(e)}}},g_={},p_="hideKeyboard",m_="chooseLocation",v_="getLocation",fc=["wgs84","gcj02"],__={formatArgs:{type(e,t){e=(e||"").toLowerCase(),fc.indexOf(e)===-1?t.type=fc[0]:t.type=e},altitude(e,t){t.altitude=e||!1}}},y_={},b_="openLocation",hc=(e,t)=>{if(t===void 0)return`${e} should not be empty.`;if(typeof t!="number"){let n=typeof t;return n=n[0].toUpperCase()+n.substring(1),`Expected Number, got ${n} with value ${JSON.stringify(t)}.`}},w_={formatArgs:{latitude(e,t){const n=hc("latitude",e);if(n)return n;t.latitude=e},longitude(e,t){const n=hc("longitude",e);if(n)return n;t.longitude=e},scale(e,t){e=Math.floor(e),t.scale=e>=5&&e<=18?e:18}}},S_={},T_="chooseImage",C_={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=9)},sizeType(e,t){t.sizeType=ho(e,_0)},sourceType(e,t){t.sourceType=ho(e,Fi)},extension(e,t){if(e instanceof Array&&e.length===0)return"param extension should not be empty.";e||(t.extension=["*"])}}},V_={},A_="chooseVideo",E_={formatArgs:{sourceType(e,t){t.sourceType=ho(e,Fi)},compressed:!0,maxDuration:60,camera:"back",extension(e,t){if(e instanceof Array&&e.length===0)return"param extension should not be empty.";e||(t.extension=["*"])}}},k_={},I_="chooseFile",N_=["all","image","video"],x_={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=100)},sourceType(e,t){t.sourceType=ho(e,Fi)},type(e,t){t.type=fo(e,N_)},extension(e,t){if(e instanceof Array&&e.length===0)return"param extension should not be empty.";e||(t.type==="all"||!t.type?t.extension=[""]:t.extension=["*"])}}},M_={},P_="getImageInfo",O_={formatArgs:{src(e,t){t.src=Q(e)}}},R_={},L_="previewImage",B_={formatArgs:{urls(e,t){t.urls=e.map(n=>J(n)&&n?Q(n):"")},current(e,t){typeof e=="number"?t.current=e>0&&e<t.urls.length?e:0:J(e)&&e&&(t.current=Q(e))}}},D_={},U_="closePreviewImage",F_="getVideoInfo",$_={formatArgs:{src(e,t){t.src=Q(e)}}},z_={},gc="saveImageToPhotosAlbum",pc="saveVideoToPhotosAlbum",H_="request",W_={JSON:"json"},q_=["text","arraybuffer"],G_="text",mc=encodeURIComponent;function j_(e,t){let n=e.split("#");const o=n[1]||"";n=n[0].split("?");let i=n[1]||"";e=n[0];const r=i.split("&").filter(s=>s),a={};r.forEach(s=>{const l=s.split("=");a[l[0]]=l[1]});for(const s in t)if(ae(t,s)){let l=t[s];typeof l=="undefined"||l===null?l="":se(l)&&(l=JSON.stringify(l)),a[mc(s)]=mc(l)}return i=Object.keys(a).map(s=>`${s}=${a[s]}`).join("&"),e+(i?"?"+i:"")+(o?"#"+o:"")}const Y_={},X_={formatArgs:{method(e,t){t.method=fo((e||"").toUpperCase(),uo)},data(e,t){t.data=e||""},url(e,t){t.method===uo[0]&&se(t.data)&&Object.keys(t.data).length&&(t.url=j_(e,t.data))},header(e,t){const n=t.header=e||{};t.method!==uo[0]&&(Object.keys(n).find(o=>o.toLowerCase()==="content-type")||(n["Content-Type"]="application/json"))},dataType(e,t){t.dataType=(e||W_.JSON).toLowerCase()},responseType(e,t){t.responseType=(e||"").toLowerCase(),q_.indexOf(t.responseType)===-1&&(t.responseType=G_)}}},J_="downloadFile",K_={formatArgs:{header(e,t){t.header=e||{}}}},Q_={},Z_="uploadFile",ey={formatArgs:{filePath(e,t){e&&(t.filePath=Q(e))},header(e,t){t.header=e||{}},formData(e,t){t.formData=e||{}}}},ty={},ny="connectSocket",oy={formatArgs:{header(e,t){t.header=e||{}},method(e,t){t.method=fo((e||"").toUpperCase(),uo)},protocols(e,t){J(e)&&(t.protocols=[e])}}},iy={},ry="sendSocketMessage",ay="closeSocket",sy="startLocationUpdate",vc="onLocationChange",ly="stopLocationUpdate",cy="offLocationChange",uy="offLocationChangeError",Qi="onLocationChangeError",_c=["wgs84","gcj02"],dy={},fy={formatArgs:{type(e,t){e=(e||"").toLowerCase(),_c.indexOf(e)===-1?t.type=_c[1]:t.type=e}}};function hy(e){if(!J(e))return e;const t=e.indexOf("?");if(t===-1)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(i=>{const r=i.replace(/\+/g," ").split("="),a=r.shift(),s=r.length>0?r.join("="):"";o.push(a+"="+encodeURIComponent(s))}),o.length?e+"?"+o.join("&"):e}const gy=["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"],py=["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"],wo={url:{type:String,required:!0}},Sn="navigateTo",Tn="redirectTo",So="reLaunch",Ut="switchTab",my="navigateBack",Zi="preloadPage",vy="unPreloadPage",_y=L({},wo,yc(gy)),yy=L({delta:{type:Number}},yc(py)),by=wo,wy=wo,Sy=wo,Ty=Co(Sn),Cy=Co(Tn),Vy=Co(So),Ay=Co(Ut),Ey={formatArgs:{delta(e,t){e=parseInt(e+"")||1,t.delta=Math.min(getCurrentPages().length-1,e)}}};function yc(e){return{animationType:{type:String,validator(t){if(t&&e.indexOf(t)===-1)return"`"+t+"` is not supported for `animationType` (supported values are: `"+e.join("`|`")+"`)"}},animationDuration:{type:Number}}}let To;function ky(){To=""}function Co(e){return{formatArgs:{url:Iy(e)},beforeAll:ky}}function Iy(e){return function(n,o){if(!n)return'Missing required args: "url"';n=hm(n);const i=n.split("?")[0],r=pn(i,!0);if(!r)return"page `"+n+"` is not found";if(e===Sn||e===Tn){if(r.meta.isTabBar)return`can not ${e} a tabbar page`}else if(e===Ut&&!r.meta.isTabBar)return"can not switch to no-tabBar page";if((e===Ut||e===Zi)&&r.meta.isTabBar&&o.openType!=="appLaunch"&&(n=i),r.meta.isEntry&&(n=n.replace(r.alias,"/")),o.url=hy(n),e!==vy){if(e===Zi){if(r.meta.isTabBar){const a=getCurrentPages(),s=r.path.slice(1);if(a.find(l=>l.route===s))return"tabBar page `"+s+"` already exists"}return}if(To===n&&o.openType!=="appLaunch")return`${To} locked`;__uniConfig.ready&&(To=n)}}}const Ny="hideLoading",xy="hideToast",My="loadFontFace",er="setNavigationBarColor",Py={formatArgs:{animation(e,t){e||(e={duration:0,timingFunc:"linear"}),t.animation={duration:e.duration||0,timingFunc:e.timingFunc||"linear"}}}},Oy={},tr="setNavigationBarTitle",nr="showNavigationBarLoading",or="hideNavigationBarLoading",Ry="pageScrollTo",Ly={},By={formatArgs:{duration:300}},Dy="showActionSheet",Uy={},Fy={formatArgs:{itemColor:"#000"}},$y="showLoading",zy={},Hy={formatArgs:{title:"",mask:!1}},Wy="showModal",qy={},Gy={beforeInvoke(){Ap()},formatArgs:{title:"",content:"",placeholderText:"",showCancel:!0,editable:!1,cancelText(e,t){if(!ae(t,"cancelText")){const{t:n}=U();t.cancelText=n("uni.showModal.cancel")}},cancelColor:"#000",confirmText(e,t){if(!ae(t,"confirmText")){const{t:n}=U();t.confirmText=n("uni.showModal.confirm")}},confirmColor:on}},jy="showToast",bc=["success","loading","none","error"],Yy={},Xy={formatArgs:{title:"",icon(e,t){t.icon=fo(e,bc)},image(e,t){e?t.image=Q(e):t.image=""},duration:1500,mask:!1}},ir="startPullDownRefresh",rr="stopPullDownRefresh",Cn={index:{type:Number,required:!0}},Ze={beforeInvoke(){const e=Mt();if(e&&!e.isTabBar)return"not TabBar page"},formatArgs:{index(e){if(!__uniConfig.tabBar.list[e])return"tabbar item not found"}}},ar="setTabBarItem",Jy=L({text:String,iconPath:String,selectedIconPath:String,pagePath:String},Cn),Ky={beforeInvoke:Ze.beforeInvoke,formatArgs:L({pagePath(e,t){e&&(t.pagePath=Ba(e))}},Ze.formatArgs)},sr="setTabBarStyle",Qy={},Zy=/^(linear|radial)-gradient\(.+?\);?$/,eb={beforeInvoke:Ze.beforeInvoke,formatArgs:{backgroundImage(e,t){e&&!Zy.test(e)&&(t.backgroundImage=Q(e))},borderStyle(e,t){e&&(t.borderStyle=e==="white"?"white":"black")}}},lr="hideTabBar",cr="showTabBar",ur="hideTabBarRedDot",tb=Cn,nb=Ze,dr="showTabBarRedDot",ob=Cn,ib=Ze,fr="removeTabBarBadge",rb=Cn,ab=Ze,hr="setTabBarBadge",sb=L({text:{type:String,required:!0}},Cn),lb={beforeInvoke:Ze.beforeInvoke,formatArgs:L({text(e,t){Wg(e)>=4&&(t.text="...")}},Ze.formatArgs)},cb=function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(h){try{return h.defaultView&&h.defaultView.frameElement||null}catch(p){return null}}var t=(function(h){for(var p=h,C=e(p);C;)p=C.ownerDocument,C=e(p);return p})(window.document),n=[],o=null,i=null;function r(h){this.time=h.time,this.target=h.target,this.rootBounds=_(h.rootBounds),this.boundingClientRect=_(h.boundingClientRect),this.intersectionRect=_(h.intersectionRect||g()),this.isIntersecting=!!h.intersectionRect;var p=this.boundingClientRect,C=p.width*p.height,T=this.intersectionRect,w=T.width*T.height;C?this.intersectionRatio=Number((w/C).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function a(h,p){var C=p||{};if(typeof h!="function")throw new Error("callback must be a function");if(C.root&&C.root.nodeType!=1&&C.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=l(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=h,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(C.rootMargin),this.thresholds=this._initThresholds(C.threshold),this.root=C.root||null,this.rootMargin=this._rootMarginValues.map(function(T){return T.value+T.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return o||(o=function(h,p){!h||!p?i=g():i=m(h,p),n.forEach(function(C){C._checkForIntersections()})}),o},a._resetCrossOriginUpdater=function(){o=null,i=null},a.prototype.observe=function(h){var p=this._observationTargets.some(function(C){return C.element==h});if(!p){if(!(h&&h.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:h,entry:null}),this._monitorIntersections(h.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(h){this._observationTargets=this._observationTargets.filter(function(p){return p.element!=h}),this._unmonitorIntersections(h.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var h=this._queuedEntries.slice();return this._queuedEntries=[],h},a.prototype._initThresholds=function(h){var p=h||[0];return Array.isArray(p)||(p=[p]),p.sort().filter(function(C,T,w){if(typeof C!="number"||isNaN(C)||C<0||C>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return C!==w[T-1]})},a.prototype._parseRootMargin=function(h){var p=h||"0px",C=p.split(/\s+/).map(function(T){var w=/^(-?\d*\.?\d+)(px|%)$/.exec(T);if(!w)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(w[1]),unit:w[2]}});return C[1]=C[1]||C[0],C[2]=C[2]||C[0],C[3]=C[3]||C[1],C},a.prototype._monitorIntersections=function(h){var p=h.defaultView;if(p&&this._monitoringDocuments.indexOf(h)==-1){var C=this._checkForIntersections,T=null,w=null;this.POLL_INTERVAL?T=p.setInterval(C,this.POLL_INTERVAL):(c(p,"resize",C,!0),c(h,"scroll",C,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in p&&(w=new p.MutationObserver(C),w.observe(h,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(h),this._monitoringUnsubscribes.push(function(){var E=h.defaultView;E&&(T&&E.clearInterval(T),u(E,"resize",C,!0)),u(h,"scroll",C,!0),w&&w.disconnect()});var A=this.root&&(this.root.ownerDocument||this.root)||t;if(h!=A){var N=e(h);N&&this._monitorIntersections(N.ownerDocument)}}},a.prototype._unmonitorIntersections=function(h){var p=this._monitoringDocuments.indexOf(h);if(p!=-1){var C=this.root&&(this.root.ownerDocument||this.root)||t,T=this._observationTargets.some(function(N){var E=N.element.ownerDocument;if(E==h)return!0;for(;E&&E!=C;){var V=e(E);if(E=V&&V.ownerDocument,E==h)return!0}return!1});if(!T){var w=this._monitoringUnsubscribes[p];if(this._monitoringDocuments.splice(p,1),this._monitoringUnsubscribes.splice(p,1),w(),h!=C){var A=e(h);A&&this._unmonitorIntersections(A.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var h=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var p=0;p<h.length;p++)h[p]()},a.prototype._checkForIntersections=function(){if(!(!this.root&&o&&!i)){var h=this._rootIsInDom(),p=h?this._getRootRect():g();this._observationTargets.forEach(function(C){var T=C.element,w=f(T),A=this._rootContainsTarget(T),N=C.entry,E=h&&A&&this._computeTargetAndRootIntersection(T,w,p),V=null;this._rootContainsTarget(T)?(!o||this.root)&&(V=p):V=g();var I=C.entry=new r({time:s(),target:T,boundingClientRect:w,rootBounds:V,intersectionRect:E});N?h&&A?this._hasCrossedThreshold(N,I)&&this._queuedEntries.push(I):N&&N.isIntersecting&&this._queuedEntries.push(I):this._queuedEntries.push(I)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},a.prototype._computeTargetAndRootIntersection=function(h,p,C){if(window.getComputedStyle(h).display!="none"){for(var T=p,w=S(h),A=!1;!A&&w;){var N=null,E=w.nodeType==1?window.getComputedStyle(w):{};if(E.display=="none")return null;if(w==this.root||w.nodeType==9)if(A=!0,w==this.root||w==t)o&&!this.root?!i||i.width==0&&i.height==0?(w=null,N=null,T=null):N=i:N=C;else{var V=S(w),I=V&&f(V),M=V&&this._computeTargetAndRootIntersection(V,I,C);I&&M?(w=V,N=m(I,M)):(w=null,T=null)}else{var F=w.ownerDocument;w!=F.body&&w!=F.documentElement&&E.overflow!="visible"&&(N=f(w))}if(N&&(T=d(N,T)),!T)break;w=w&&S(w)}return T}},a.prototype._getRootRect=function(){var h;if(this.root&&!y(this.root))h=f(this.root);else{var p=y(this.root)?this.root:t,C=p.documentElement,T=p.body;h={top:0,left:0,right:C.clientWidth||T.clientWidth,width:C.clientWidth||T.clientWidth,bottom:C.clientHeight||T.clientHeight,height:C.clientHeight||T.clientHeight}}return this._expandRectByRootMargin(h)},a.prototype._expandRectByRootMargin=function(h){var p=this._rootMarginValues.map(function(T,w){return T.unit=="px"?T.value:T.value*(w%2?h.width:h.height)/100}),C={top:h.top-p[0],right:h.right+p[1],bottom:h.bottom+p[2],left:h.left-p[3]};return C.width=C.right-C.left,C.height=C.bottom-C.top,C},a.prototype._hasCrossedThreshold=function(h,p){var C=h&&h.isIntersecting?h.intersectionRatio||0:-1,T=p.isIntersecting?p.intersectionRatio||0:-1;if(C!==T)for(var w=0;w<this.thresholds.length;w++){var A=this.thresholds[w];if(A==C||A==T||A<C!=A<T)return!0}},a.prototype._rootIsInDom=function(){return!this.root||v(t,this.root)},a.prototype._rootContainsTarget=function(h){var p=this.root&&(this.root.ownerDocument||this.root)||t;return v(p,h)&&(!this.root||p==h.ownerDocument)},a.prototype._registerInstance=function(){n.indexOf(this)<0&&n.push(this)},a.prototype._unregisterInstance=function(){var h=n.indexOf(this);h!=-1&&n.splice(h,1)};function s(){return window.performance&&performance.now&&performance.now()}function l(h,p){var C=null;return function(){C||(C=setTimeout(function(){h(),C=null},p))}}function c(h,p,C,T){typeof h.addEventListener=="function"?h.addEventListener(p,C,T):typeof h.attachEvent=="function"&&h.attachEvent("on"+p,C)}function u(h,p,C,T){typeof h.removeEventListener=="function"?h.removeEventListener(p,C,T):typeof h.detatchEvent=="function"&&h.detatchEvent("on"+p,C)}function d(h,p){var C=Math.max(h.top,p.top),T=Math.min(h.bottom,p.bottom),w=Math.max(h.left,p.left),A=Math.min(h.right,p.right),N=A-w,E=T-C;return N>=0&&E>=0&&{top:C,bottom:T,left:w,right:A,width:N,height:E}||null}function f(h){var p;try{p=h.getBoundingClientRect()}catch(C){}return p?(p.width&&p.height||(p={top:p.top,right:p.right,bottom:p.bottom,left:p.left,width:p.right-p.left,height:p.bottom-p.top}),p):g()}function g(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function _(h){return!h||"x"in h?h:{top:h.top,y:h.top,bottom:h.bottom,left:h.left,x:h.left,right:h.right,width:h.width,height:h.height}}function m(h,p){var C=p.top-h.top,T=p.left-h.left;return{top:C,left:T,height:p.height,width:p.width,bottom:C+p.height,right:T+p.width}}function v(h,p){for(var C=p;C;){if(C==h)return!0;C=S(C)}return!1}function S(h){var p=h.parentNode;return h.nodeType==9&&h!=t?e(h):(p&&p.assignedSlot&&(p=p.assignedSlot.parentNode),p&&p.nodeType==11&&p.host?p.host:p)}function y(h){return h&&h.nodeType===9}window.IntersectionObserver=a,window.IntersectionObserverEntry=r};function gr(e){const{bottom:t,height:n,left:o,right:i,top:r,width:a}=e||{};return{bottom:t,height:n,left:o,right:i,top:r,width:a}}function ub(e){const{intersectionRatio:t,boundingClientRect:{height:n,width:o},intersectionRect:{height:i,width:r}}=e;return t!==0?t:i===n?r/o:i/n}function db(e,t,n){cb();const o=t.relativeToSelector?e.querySelector(t.relativeToSelector):null,i=new IntersectionObserver(r=>{r.forEach(a=>{n({intersectionRatio:ub(a),intersectionRect:gr(a.intersectionRect),boundingClientRect:gr(a.boundingClientRect),relativeRect:gr(a.rootBounds),time:Date.now(),dataset:wi(a.target),id:a.target.id})})},{root:o,rootMargin:t.rootMargin,threshold:t.thresholds});if(t.observeAll){i.USE_MUTATION_OBSERVER=!0;const r=e.querySelectorAll(t.selector);for(let a=0;a<r.length;a++)i.observe(r[a])}else{i.USE_MUTATION_OBSERVER=!1;const r=e.matches(t.selector)?e:e.querySelector(t.selector);r?i.observe(r):console.warn(`Node ${t.selector} is not found. Intersection observer will not trigger.`)}return i}function Vo(){const e=Ee();if(!e)return;const t=Sr(),n=t.keys();for(const o of n){const i=t.get(o);i.$.__isTabBar?i.$.__isActive=!1:Oo(o)}e.$.__isTabBar&&(e.$.__isVisible=!1,re(e,ft))}function fb(e,t){return e===t.fullPath||e==="/"&&t.meta.isEntry}function Ao(e){const t=Sr().values();for(const n of t){const o=nt(n);if(fb(e,o))return n.$.__isActive=!0,o.id}}const wc=R(Ut,({url:e,tabBarText:t,isAutomatedTesting:n},{resolve:o,reject:i})=>{if(!Ft.handledBeforeEntryPageRoutes){yr.push({args:{type:Ut,url:e,tabBarText:t,isAutomatedTesting:n},resolve:o,reject:i});return}return Vo(),et({type:Ut,url:e,tabBarText:t,isAutomatedTesting:n},Ao(e)).then(o).catch(i)},Sy,Ay);function Eo(){const e=gt();if(!e)return;const t=nt(e);Oo(Ro(t.path,t.id))}const Sc=R(Tn,({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(!Ft.handledBeforeEntryPageRoutes){br.push({args:{type:Tn,url:e,isAutomatedTesting:t},resolve:n,reject:o});return}return Eo(),et({type:Tn,url:e,isAutomatedTesting:t}).then(n).catch(o)},by,Cy);function ko(){const e=Sr().keys();for(const t of e)Oo(t)}const Tc=R(So,({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(!Ft.handledBeforeEntryPageRoutes){wr.push({args:{type:So,url:e,isAutomatedTesting:t},resolve:n,reject:o});return}return ko(),et({type:So,url:e,isAutomatedTesting:t}).then(n).catch(o)},wy,Vy);function et({type:e,url:t,tabBarText:n,events:o,isAutomatedTesting:i},r){const a=getApp().$router,{path:s,query:l}=Qg(t);return new Promise((c,u)=>{const d=_b(e,r);a[e==="navigateTo"?"push":"replace"]({path:s,query:l,state:d,force:!0}).then(f=>{if(VueRouter.isNavigationFailure(f))return u(f.message);if(e==="switchTab"&&(a.currentRoute.value.meta.tabBarText=n),e==="navigateTo"){const g=a.currentRoute.value.meta;return g.eventChannel?o&&(Object.keys(o).forEach(_=>{g.eventChannel._addListener(_,"on",o[_])}),g.eventChannel._clearCache()):g.eventChannel=new Wa(d.__id__,o),c(i?{__id__:d.__id__}:{eventChannel:g.eventChannel})}return i?c({__id__:d.__id__}):c()})})}function Cc(){if(Ft.handledBeforeEntryPageRoutes)return;Ft.handledBeforeEntryPageRoutes=!0;const e=[..._r];_r.length=0,e.forEach(({args:i,resolve:r,reject:a})=>et(i).then(r).catch(a));const t=[...yr];yr.length=0,t.forEach(({args:i,resolve:r,reject:a})=>(Vo(),et(i,Ao(i.url)).then(r).catch(a)));const n=[...br];br.length=0,n.forEach(({args:i,resolve:r,reject:a})=>(Eo(),et(i).then(r).catch(a)));const o=[...wr];wr.length=0,o.forEach(({args:i,resolve:r,reject:a})=>(ko(),et(i).then(r).catch(a)))}let pr;function Vn(){return pr||(pr=__uniConfig.tabBar&&Vue.reactive(Pp(__uniConfig.tabBar))),pr}function Io(e){const t=window.CSS&&window.CSS.supports;return t&&(t(e)||t.apply(window.CSS,e.split(":")))}const mr=Io("--a:0"),No=Io("top:env(a)"),xo=Io("top:constant(a)"),Mo=Io("backdrop-filter:blur(10px)"),Vc={"css.var":mr,"css.env":No,"css.constant":xo,"css.backdrop-filter":Mo},Ac=j(qv,e=>ae(Vc,e)?Vc[e]:!!ae(uni,e)),Po=No?"env":xo?"constant":"";function Ec(e){let t=0,n=0;if(__UNI_FEATURE_NAVIGATIONBAR__&&e.navigationBar.style!=="custom"&&["default","float"].indexOf(e.navigationBar.type)>-1&&(t=Ta),__UNI_FEATURE_TABBAR__&&e.isTabBar){const o=Vn();o.shown&&(n=parseInt(o.height))}ds({"--window-top":hb(t),"--window-bottom":kc(n)})}function hb(e){return Po?`calc(${e}px + ${Po}(safe-area-inset-top))`:`${e}px`}function kc(e){return Po?`calc(${e}px + ${Po}(safe-area-inset-bottom))`:`${e}px`}const vr="$$",tt=new Map;function nt(e){return e.$page}const Ft={handledBeforeEntryPageRoutes:!1},_r=[],yr=[],br=[],wr=[];function gb(){tt.forEach((e,t)=>{e.$.isUnmounted&&tt.delete(t)})}function Sr(){return tt}function pb(){return $t()}function $t(){const e=[],t=tt.values();for(const n of t)n.$.__isTabBar?n.$.__isActive&&e.push(n):e.push(n);return e}function mb(e){const t=_t.get(e);t&&(_t.delete(e),An.pruneCacheEntry(t))}function Oo(e,t=!0){const n=tt.get(e);n.$.__isUnload=!0,re(n,Aa),tt.delete(e),t&&mb(e)}let vb=Ui();function _b(e,t){return{__id__:t||++vb,__type__:e}}function yb(e){const t=Ot();if(!__UNI_FEATURE_PAGES__)return _s("navigateTo",__uniRoutes[0].path,{},t);let n=e.fullPath;return e.meta.isEntry&&n.indexOf(e.meta.route)===-1&&(n="/"+e.meta.route+n.replace("/","")),_s("navigateTo",n,{},t)}function bb(e){const t=e.$route,n=yb(t);$m(e,n),tt.set(Ro(n.path,n.id),e),tt.size===1&&setTimeout(()=>{Cc()},0)}function Ro(e,t){return e+vr+t}function wb(){const e=VueRouter.useRoute(),t=Vue.computed(()=>Ro("/"+e.meta.route,Ui())),n=Vue.computed(()=>e.meta.isTabBar);return{routeKey:t,isTabBar:n,routeCache:An}}const _t=new Map,An={get(e){return _t.get(e)},set(e,t){Tb(e),_t.set(e,t)},delete(e){_t.get(e)&&_t.delete(e)},forEach(e){_t.forEach(e)}};function Sb(e){return e.props.type==="tabBar"}function Tb(e){const t=parseInt(e.split(vr)[1]);t&&An.forEach((n,o)=>{const i=parseInt(o.split(vr)[1]);if(i&&i>t){if(__UNI_FEATURE_TABBAR__&&Sb(n))return;An.delete(o),An.pruneCacheEntry(n),Vue.nextTick(()=>gb())}})}function Cb(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))}}function Ic(e,t){Eb(e),Ec(t),Cb(t),xc(e,t)}function Vb(e){const t=Nc(e);t&&Ab(t)}function Ab(e){const t=document.querySelector("uni-page-body");t&&t.setAttribute(e,"")}function Nc(e){return e.type.__scopeId}let Tr;function Eb(e){const t=Nc(e),{body:n}=document;Tr&&n.removeAttribute(Tr),t&&n.setAttribute(t,""),Tr=t}const kb=(()=>{let e=!1;try{const t={};Object.defineProperty(t,"passive",{get(){e=!0}}),window.addEventListener("test-passive",()=>{},t)}catch(t){}return e})()?{passive:!1}:!1;let Lo;function xc(e,t){if(document.removeEventListener("touchmove",ys),Lo&&document.removeEventListener("scroll",Lo),t.disableScroll)return document.addEventListener("touchmove",ys,kb);const{onPageScroll:n,onReachBottom:o}=e,i=t.navigationBar.type==="transparent";if(!(n!=null&&n.length)&&!(o!=null&&o.length)&&!i)return;const r={},a=nt(e.proxy).id;(n||i)&&(r.onPageScroll=Ib(a,n,i)),o!=null&&o.length&&(r.onReachBottomDistance=t.onReachBottomDistance||Eg,r.onReachBottom=()=>UniViewJSBridge.publishHandler(_i,{},a)),Lo=fm(r),requestAnimationFrame(()=>document.addEventListener("scroll",Lo))}function Ib(e,t,n){return o=>{t&&UniViewJSBridge.publishHandler(Xn,{scrollTop:o},e),n&&UniViewJSBridge.emit(e+"."+Xn,{scrollTop:o})}}function Mc(e){return e.$el}function Pc(e){const{base:t}=__uniConfig.router;return qe(e).indexOf(t)===0?qe(e):t+e}function Q(e){const{base:t,assets:n}=__uniConfig.router;if(t==="./"&&e.indexOf("./")===0&&(e.includes("/static/")||e.indexOf("./"+(n||"assets")+"/")===0)&&(e=e.slice(1)),e.indexOf("/")===0)if(e.indexOf("//")===0)e="https:"+e;else return Pc(e.slice(1));if(Ig.test(e)||Ng.test(e)||e.indexOf("blob:")===0)return e;const o=$t();return o.length?Pc(Oi(nt(o[o.length-1]).route,e).slice(1)):e}const we=navigator.userAgent,Nb=/android/i.test(we),Oc=/iphone|ipad|ipod/i.test(we),Cr=we.match(/Windows NT ([\d|\d.\d]*)/i),Vr=/Macintosh|Mac/i.test(we),Rc=/Linux|X11/i.test(we),xb=Vr&&navigator.maxTouchPoints>0;function Lc(){return/^Apple/.test(navigator.vendor)&&typeof window.orientation=="number"}function Bc(e){return e&&Math.abs(window.orientation)===90}function Dc(e,t){return e?Math[t?"max":"min"](screen.width,screen.height):screen.width}function Mb(e,t){return e?Math[t?"min":"max"](screen.height,screen.width):screen.height}function Uc(e){return Math.min(window.innerWidth,document.documentElement.clientWidth,e)||e}function Fc(){const e=Lc(),t=Uc(Dc(e,Bc(e)));return{platform:Oc?"ios":"other",pixelRatio:window.devicePixelRatio,windowWidth:t}}function ze(e,t,n,o){UniServiceJSBridge.invokeViewMethod("video."+e,{videoId:e,type:n,data:o},t)}function Pb(e,t,n,o,i){UniServiceJSBridge.invokeViewMethod("map."+e,{type:n,data:o},t,i)}function Ob(e){const t={};if(e.id&&(t.id=""),e.dataset&&(t.dataset={}),e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0),e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight),e.scrollOffset){const n=document.documentElement,o=document.body;t.scrollLeft=n.scrollLeft||o.scrollLeft||0,t.scrollTop=n.scrollTop||o.scrollTop||0,t.scrollHeight=n.scrollHeight||o.scrollHeight||0,t.scrollWidth=n.scrollWidth||o.scrollWidth||0}return t}function Ar(e,t){const n={},{top:o,topWindowHeight:i}=us();if(t.node){const r=e.tagName.split("-")[1]||e.tagName;r&&(n.node=e.querySelector(r))}if(t.id&&(n.id=e.id),t.dataset&&(n.dataset=wi(e)),t.rect||t.size){const r=e.getBoundingClientRect();t.rect&&(n.left=r.left,n.right=r.right,n.top=r.top-o-i,n.bottom=r.bottom-o-i),t.size&&(n.width=r.width,n.height=r.height)}if(K(t.properties)&&t.properties.forEach(r=>{r=r.replace(/-([a-z])/g,function(a,s){return s.toUpperCase()})}),t.scrollOffset)if(e.tagName==="UNI-SCROLL-VIEW"){const r=e.children[0].children[0];n.scrollLeft=r.scrollLeft,n.scrollTop=r.scrollTop,n.scrollHeight=r.scrollHeight,n.scrollWidth=r.scrollWidth}else n.scrollLeft=0,n.scrollTop=0,n.scrollHeight=0,n.scrollWidth=0;if(K(t.computedStyle)){const r=getComputedStyle(e);t.computedStyle.forEach(a=>{n[a]=r[a]})}return t.context&&(n.contextInfo=lT(e)),n}function Rb(e,t){return e?e.$el:t.$el}function $c(e,t){return(e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(o){const i=this.parentElement.querySelectorAll(o);let r=i.length;for(;--r>=0&&i.item(r)!==this;);return r>-1}).call(e,t)}function Lb(e,t,n,o,i){const r=Rb(t,e),a=r.parentElement;if(!a)return o?null:[];const{nodeType:s}=r,l=s===3||s===8;if(o){const c=l?a.querySelector(n):$c(r,n)?r:r.querySelector(n);return c?Ar(c,i):null}else{let c=[];const u=(l?a:r).querySelectorAll(n);return u&&u.length&&[].forEach.call(u,d=>{c.push(Ar(d,i))}),!l&&$c(r,n)&&c.unshift(Ar(r,i)),c}}function Bb(e,t,n){const o=[];t.forEach(({component:i,selector:r,single:a,fields:s})=>{i===null?o.push(Ob(s)):o.push(Lb(e,i,r,a,s))}),n(o)}function Db(e,{pageStyle:t,rootFontSize:n}){t&&(document.querySelector("uni-page-body")||document.body).setAttribute("style",t),n&&document.documentElement.style.fontSize!==n&&(document.documentElement.style.fontSize=n)}function Ub({reqId:e,component:t,options:n,callback:o},i){const r=Mc(t);(r.__io||(r.__io={}))[e]=db(r,n,o)}function Fb({reqId:e,component:t},n){const o=Mc(t),i=o.__io&&o.__io[e];i&&(i.disconnect(),delete o.__io[e])}let Er={},kr={};function $b(e){const t=[],n=["width","minWidth","maxWidth","height","minHeight","maxHeight","orientation"];for(const i of n)i!=="orientation"&&e[i]&&+(e[i]>=0)&&t.push(`(${zc(i)}: ${Number(e[i])}px)`),i==="orientation"&&e[i]&&t.push(`(${zc(i)}: ${e[i]})`);return t.join(" and ")}function zc(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function zb({reqId:e,component:t,options:n,callback:o},i){const r=Er[e]=window.matchMedia($b(n)),a=kr[e]=s=>o(s.matches);a(r),r.addListener(a)}function Hb({reqId:e,component:t},n){const o=kr[e],i=Er[e];i&&(i.removeListener(o),delete kr[e],delete Er[e])}function Wb(e,t,n){n(null,e)}const zt={};function Bo(e,t){const n=zt[e];return n?Promise.resolve(n):/^data:[a-z-]+\/[a-z-]+;base64,/.test(e)?Promise.resolve(qb(e)):t?Promise.reject(new Error("not find")):new Promise((o,i)=>{const r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="blob",r.onload=function(){o(this.response)},r.onerror=i,r.send()})}function qb(e){const t=e.split(","),n=t[0].match(/:(.*?);/),o=n?n[1]:"",i=atob(t[1]);let r=i.length;const a=new Uint8Array(r);for(;r--;)a[r]=i.charCodeAt(r);return Hc(a,o)}function Gb(e){const t=e.split("/")[1];return t?`.${t}`:""}function jb(e){e=e.split("#")[0].split("?")[0];const t=e.split("/");return t[t.length-1]}function Hc(e,t){let n;if(e instanceof File)n=e;else{t=t||e.type||"";const o=`${Date.now()}${Gb(t)}`;try{n=new File([e],o,{type:t})}catch(i){e=e instanceof Blob?e:new Blob([e],{type:t}),n=e,n.name=n.name||o}}return n}function Ht(e){for(const n in zt)if(ae(zt,n)&&zt[n]===e)return n;var t=(window.URL||window.webkitURL).createObjectURL(e);return zt[t]=e,t}function Yb(e){const t=document.createElement("a");return t.href=e,t.origin===location.origin?Promise.resolve(e):Bo(e).then(Ht)}function Wc(e){(window.URL||window.webkitURL).revokeObjectURL(e),delete zt[e]}const Do=ks(),qc=ks();function Gc(){return L({},qc)}function Xb(){return L({},Do)}function Jb({path:e,query:t}){return L(Do,{path:e,query:t}),L(qc,Do),L({},Do)}const je=X({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,{emit:t}){const n=Vue.ref(null),o=Qb(n),i=Kb(n,t,o);return Zb(n,e,i,o),()=>Vue.createVNode("uni-resize-sensor",{ref:n,onAnimationstartOnce:i},[Vue.createVNode("div",{onScroll:i},[Vue.createVNode("div",null,null)],40,["onScroll"]),Vue.createVNode("div",{onScroll:i},[Vue.createVNode("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});function Kb(e,t,n){const o=Vue.reactive({width:-1,height:-1});return Vue.watch(()=>L({},o),i=>t("resize",i)),()=>{const i=e.value;i&&(o.width=i.offsetWidth,o.height=i.offsetHeight,n())}}function Qb(e){return()=>{const{firstElementChild:t,lastElementChild:n}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5}}function Zb(e,t,n,o){Vue.onActivated(o),Vue.onMounted(()=>{t.initial&&Vue.nextTick(n);const i=e.value;i.offsetParent!==i.parentElement&&(i.parentElement.style.position="relative"),"AnimationEvent"in window||o()})}const Z=(function(){if(navigator.userAgent.includes("jsdom"))return 1;const e=document.createElement("canvas");e.height=e.width=0;const t=e.getContext("2d"),n=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/n})();function jc(e,t=!0){const n=t?Z:1;e.width=e.offsetWidth*n,e.height=e.offsetHeight*n,e.getContext("2d").__hidpi__=t}let Yc=!1;function ew(){if(Yc)return;Yc=!0;const e=function(o,i){for(const r in o)ae(o,r)&&i(o[r],r)},t={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",transform:[4,5],setTransform:[4,5]},n=CanvasRenderingContext2D.prototype;n.drawImageByCanvas=(function(o){return function(i,r,a,s,l,c,u,d,f,g){if(!this.__hidpi__)return o.apply(this,arguments);r*=Z,a*=Z,s*=Z,l*=Z,c*=Z,u*=Z,d=g?d*Z:d,f=g?f*Z:f,o.call(this,i,r,a,s,l,c,u,d,f)}})(n.drawImage),Z!==1&&(e(t,function(o,i){n[i]=(function(r){return function(){if(!this.__hidpi__)return r.apply(this,arguments);let a=Array.prototype.slice.call(arguments);if(o==="all")a=a.map(function(s){return s*Z});else if(Array.isArray(o))for(let s=0;s<o.length;s++)a[o[s]]*=Z;return r.apply(this,a)}})(n[i])}),n.stroke=(function(o){return function(){if(!this.__hidpi__)return o.apply(this,arguments);this.lineWidth*=Z,o.apply(this,arguments),this.lineWidth/=Z}})(n.stroke),n.fillText=(function(o){return function(){if(!this.__hidpi__)return o.apply(this,arguments);const i=Array.prototype.slice.call(arguments);i[1]*=Z,i[2]*=Z,i[3]&&typeof i[3]=="number"&&(i[3]*=Z);var r=this.__font__||this.font;this.font=r.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,function(a,s,l){return s*Z+l}),o.apply(this,i),this.font=r}})(n.fillText),n.strokeText=(function(o){return function(){if(!this.__hidpi__)return o.apply(this,arguments);var i=Array.prototype.slice.call(arguments);i[1]*=Z,i[2]*=Z,i[3]&&typeof i[3]=="number"&&(i[3]*=Z);var r=this.__font__||this.font;this.font=r.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,function(a,s,l){return s*Z+l}),o.apply(this,i),this.font=r}})(n.strokeText),n.drawImage=(function(o){return function(){if(!this.__hidpi__)return o.apply(this,arguments);this.scale(Z,Z),o.apply(this,arguments),this.scale(1/Z,1/Z)}})(n.drawImage))}const tw=ne(()=>ew());function Xc(e){return e&&Q(e)}function Uo(e){return e=e.slice(0),e[3]=e[3]/255,"rgba("+e.join(",")+")"}function Jc(e,t){Array.from(t).forEach(n=>{n.x=n.clientX-e.left,n.y=n.clientY-e.top})}let En;function Kc(e=0,t=0){return En||(En=document.createElement("canvas")),En.width=e,En.height=t,En}const nw=X({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:{canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1},hidpi:{type:Boolean,default:!0}},computed:{id(){return this.canvasId}},setup(e,{emit:t,slots:n}){tw();const o=Vue.ref(null),i=Vue.ref(null),r=Vue.ref(null),a=Vue.ref(!1),s=o0(t),{$attrs:l,$excludeAttrs:c,$listeners:u}=Wo({excludeListeners:!0}),{_listeners:d}=ow(e,u,s),{_handleSubscribe:f,_resize:g}=iw(e,i,a);return Gt(f,Yo(e.canvasId),!0),Vue.onMounted(()=>{g()}),()=>{const{canvasId:_,disableScroll:m}=e;return Vue.createVNode("uni-canvas",Vue.mergeProps({ref:o,"canvas-id":_,"disable-scroll":m},l.value,c.value,d.value),[Vue.createVNode("canvas",{ref:i,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),Vue.createVNode("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[n.default&&n.default()]),Vue.createVNode(je,{ref:r,onResize:g},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});function ow(e,t,n){return{_listeners:Vue.computed(()=>{let i=["onTouchstart","onTouchmove","onTouchend"],r=t.value,a=L({},(()=>{let s={};for(const l in r)if(ae(r,l)){const c=r[l];s[l]=c}return s})());return i.forEach(s=>{let l=a[s],c=[];l&&c.push(oe(u=>{const d=u.currentTarget.getBoundingClientRect();Jc(d,u.touches),Jc(d,u.changedTouches),n(s.replace("on","").toLocaleLowerCase(),u)})),e.disableScroll&&s==="onTouchmove"&&c.push(Je),a[s]=c}),a})}}function iw(e,t,n){let o=[],i={};const r=Vue.computed(()=>e.hidpi?Z:1);function a(m){let v=t.value;var S=!m||v.width!==Math.floor(m.width*r.value)||v.height!==Math.floor(m.height*r.value);if(S)if(v.width>0&&v.height>0){let y=v.getContext("2d"),h=y.getImageData(0,0,v.width,v.height);jc(v,e.hidpi),y.putImageData(h,0,0)}else jc(v,e.hidpi)}function s({actions:m,reserve:v},S){if(!m)return;if(n.value){o.push([m,v]);return}let y=t.value,h=y.getContext("2d");v||(h.fillStyle="#000000",h.strokeStyle="#000000",h.shadowColor="#000000",h.shadowBlur=0,h.shadowOffsetX=0,h.shadowOffsetY=0,h.setTransform(1,0,0,1,0,0),h.clearRect(0,0,y.width,y.height)),l(m);for(let p=0;p<m.length;p++){const C=m[p];let T=C.method;const w=C.data,A=w[0];if(/^set/.test(T)&&T!=="setTransform"){const N=T[3].toLowerCase()+T.slice(4);let E;if(N==="fillStyle"||N==="strokeStyle"){if(A==="normal")E=Uo(w[1]);else if(A==="linear"){const V=h.createLinearGradient(...w[1]);w[2].forEach(function(I){const M=I[0],F=Uo(I[1]);V.addColorStop(M,F)}),E=V}else if(A==="radial"){let V=w[1];const I=V[0],M=V[1],F=V[2],k=h.createRadialGradient(I,M,0,I,M,F);w[2].forEach(function(B){const z=B[0],x=Uo(B[1]);k.addColorStop(z,x)}),E=k}else if(A==="pattern"){if(!c(w[1],m.slice(p+1),S,function(I){I&&(h[N]=h.createPattern(I,w[2]))}))break;continue}h[N]=E}else if(N==="globalAlpha")h[N]=Number(A)/255;else if(N==="shadow"){let V=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"];w.forEach(function(I,M){h[V[M]]=V[M]==="shadowColor"?Uo(I):I})}else if(N==="fontSize"){const V=h.__font__||h.font;h.__font__=h.font=V.replace(/\d+\.?\d*px/,A+"px")}else N==="lineDash"?(h.setLineDash(A),h.lineDashOffset=w[1]||0):N==="textBaseline"?(A==="normal"&&(w[0]="alphabetic"),h[N]=A):N==="font"?h.__font__=h.font=A:h[N]=A}else if(T==="fillPath"||T==="strokePath")T=T.replace(/Path/,""),h.beginPath(),w.forEach(function(N){h[N.method].apply(h,N.data)}),h[T]();else if(T==="fillText")h.fillText.apply(h,w);else if(T==="drawImage"){if((function(){let E=[...w],V=E[0],I=E.slice(1);if(i=i||{},!c(V,m.slice(p+1),S,function(M){M&&h.drawImage.apply(h,[M].concat([...I.slice(4,8)],[...I.slice(0,4)]))}))return"break"})()==="break")break}else T==="clip"?(w.forEach(function(N){h[N.method].apply(h,N.data)}),h.clip()):h[T].apply(h,w)}n.value||S({errMsg:"drawCanvas:ok"})}function l(m){m.forEach(function(v){let S=v.method,y=v.data,h="";S==="drawImage"?(h=y[0],h=Xc(h),y[0]=h):S==="setFillStyle"&&y[0]==="pattern"&&(h=y[1],h=Xc(h),y[1]=h),h&&!i[h]&&p();function p(){const C=i[h]=new Image;C.onload=function(){C.ready=!0},Yb(h).then(T=>{C.src=T}).catch(()=>{C.src=h})}})}function c(m,v,S,y){let h=i[m];return h.ready?(y(h),!0):(o.unshift([v,!0]),n.value=!0,h.onload=function(){h.ready=!0,y(h),n.value=!1;let p=o.slice(0);o=[];for(let C=p.shift();C;)s({actions:C[0],reserve:C[1]},S),C=p.shift()},!1)}function u({x:m=0,y:v=0,width:S,height:y,destWidth:h,destHeight:p,hidpi:C=!0,dataType:T,quality:w=1,type:A="png"},N){const E=t.value;let V;const I=E.offsetWidth-m;S=S?Math.min(S,I):I;const M=E.offsetHeight-v;y=y?Math.min(y,M):M,C?(h=S,p=y):!h&&!p?(h=Math.round(S*r.value),p=Math.round(y*r.value)):h?p||(p=Math.round(y/S*h)):(p||(p=Math.round(y*r.value)),h=Math.round(S/y*p));const F=Kc(h,p),k=F.getContext("2d");(A==="jpeg"||A==="jpg")&&(A="jpeg",k.fillStyle="#fff",k.fillRect(0,0,h,p)),k.__hidpi__=!0,k.drawImageByCanvas(E,m,v,S,y,0,0,h,p,!1);let B;try{let z;if(T==="base64")V=F.toDataURL(`image/${A}`,w);else{const x=k.getImageData(0,0,h,p);V=Array.prototype.slice.call(x.data)}B={data:V,compressed:z,width:h,height:p}}catch(z){B={errMsg:`canvasGetImageData:fail ${z}`}}if(F.height=F.width=0,k.__hidpi__=!1,N)N(B);else return B}function d({data:m,x:v,y:S,width:y,height:h,compressed:p},C){try{h||(h=Math.round(m.length/4/y));const T=Kc(y,h);T.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(m),y,h),0,0),t.value.getContext("2d").drawImage(T,v,S,y,h),T.height=T.width=0}catch(T){C({errMsg:"canvasPutImageData:fail"});return}C({errMsg:"canvasPutImageData:ok"})}function f({x:m=0,y:v=0,width:S,height:y,destWidth:h,destHeight:p,fileType:C,quality:T,dirname:w},A){const N=u({x:m,y:v,width:S,height:y,destWidth:h,destHeight:p,hidpi:!1,dataType:"base64",type:C,quality:T});if(N.errMsg){A({errMsg:N.errMsg.replace("canvasPutImageData","toTempFilePath")});return}Wb(N.data,w,(E,V)=>{let I=`toTempFilePath:${E?"fail":"ok"}`;E&&(I+=` ${E.message}`),A({errMsg:I,tempFilePath:V})})}const g={actionsChanged:s,getImageData:u,putImageData:d,toTempFilePath:f};function _(m,v,S){let y=g[m];m.indexOf("_")!==0&&G(y)&&y(v,S)}return L(g,{_resize:a,_handleSubscribe:_})}const Qc=fn("ucg"),rw=X({name:"CheckboxGroup",props:{name:{type:String,default:""}},emits:["change"],setup(e,{emit:t,slots:n}){const o=Vue.ref(null),i=pe(o,t);return aw(e,i),()=>Vue.createVNode("uni-checkbox-group",{ref:o},[n.default&&n.default()],512)}});function aw(e,t){const n=[],o=()=>n.reduce((r,a)=>(a.value.checkboxChecked&&r.push(a.value.value),r),new Array);Vue.provide(Qc,{addField(r){n.push(r)},removeField(r){n.splice(n.indexOf(r),1)},checkboxChange(r){t("change",r,{value:o()})}});const i=Vue.inject(Fe,!1);return i&&i.addField({submit:()=>{let r=["",null];return e.name!==""&&(r[0]=e.name,r[1]=o()),r}}),o}const sw=X({name:"Checkbox",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},value:{type:String,default:""},color:{type:String,default:"#007aff"},backgroundColor:{type:String,default:""},borderColor:{type:String,default:""},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},iconColor:{type:String,default:""},foreColor:{type:String,default:""}},setup(e,{slots:t}){const n=Vue.ref(null),o=Vue.ref(e.checked),i=Vue.computed(()=>o.value==="true"||o.value===!0),r=Vue.ref(e.value);function a(f){if(e.disabled)return{backgroundColor:"#E1E1E1",borderColor:"#D1D1D1"};const g={};return f?(e.activeBorderColor&&(g.borderColor=e.activeBorderColor),e.activeBackgroundColor&&(g.backgroundColor=e.activeBackgroundColor)):(e.borderColor&&(g.borderColor=e.borderColor),e.backgroundColor&&(g.backgroundColor=e.backgroundColor)),g}const s=Vue.computed(()=>a(i.value));Vue.watch([()=>e.checked,()=>e.value],([f,g])=>{o.value=f,r.value=g});const l=()=>{o.value=!1},{uniCheckGroup:c,uniLabel:u}=lw(o,r,l),d=f=>{e.disabled||(o.value=!o.value,c&&c.checkboxChange(f),f.stopPropagation())};return u&&(u.addHandler(d),Vue.onBeforeUnmount(()=>{u.removeHandler(d)})),lo(e,{"label-click":d}),()=>{const f=mt(e,"disabled");let g;return g=o.value,Vue.createVNode("uni-checkbox",Vue.mergeProps(f,{id:e.id,onClick:d,ref:n}),[Vue.createVNode("div",{class:"uni-checkbox-wrapper",style:{"--HOVER-BD-COLOR":e.activeBorderColor}},[Vue.createVNode("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}],style:s.value},[g?ce(hn,e.disabled?"#ADADAD":e.foreColor||e.iconColor||e.color,22):""],6),t.default&&t.default()],4)],16,["id","onClick"])}}});function lw(e,t,n){const o=Vue.computed(()=>({checkboxChecked:!!e.value,value:t.value})),i={reset:n},r=Vue.inject(Qc,!1);r&&r.addField(o);const a=Vue.inject(Fe,!1);a&&a.addField(i);const s=Vue.inject(mn,!1);return Vue.onBeforeUnmount(()=>{r&&r.removeField(o),a&&a.removeField(i)}),{uniCheckGroup:r,uniForm:a,uniLabel:s}}let cw;function Zc(){}const eu={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}},tu=["keyboardheightchange"];function nu(e,t,n){function o(i){const r=Vue.computed(()=>String(navigator.vendor).indexOf("Apple")===0);i.addEventListener("focus",()=>{clearTimeout(cw),document.addEventListener("click",Zc,!1)});const a=()=>{document.removeEventListener("click",Zc,!1),r.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)};i.addEventListener("blur",()=>{r.value&&i.blur(),a()})}Vue.watch(()=>t.value,i=>i&&o(i))}var ou=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,iu=/^<\/([-A-Za-z0-9_]+)[^>]*>/,uw=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,dw=Wt("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),fw=Wt("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),hw=Wt("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),gw=Wt("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),pw=Wt("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),mw=Wt("script,style");function ru(e,t){var n,o,i,r=[],a=e;for(r.last=function(){return this[this.length-1]};e;){if(o=!0,!r.last()||!mw[r.last()]){if(e.indexOf("<!--")==0?(n=e.indexOf("-->"),n>=0&&(t.comment&&t.comment(e.substring(4,n)),e=e.substring(n+3),o=!1)):e.indexOf("</")==0?(i=e.match(iu),i&&(e=e.substring(i[0].length),i[0].replace(iu,c),o=!1)):e.indexOf("<")==0&&(i=e.match(ou),i&&(e=e.substring(i[0].length),i[0].replace(ou,l),o=!1)),o){n=e.indexOf("<");var s=n<0?e:e.substring(0,n);e=n<0?"":e.substring(n),t.chars&&t.chars(s)}}else e=e.replace(new RegExp("([\\s\\S]*?)</"+r.last()+"[^>]*>"),function(u,d){return d=d.replace(/<!--([\s\S]*?)-->|<!\[CDATA\[([\s\S]*?)]]>/g,"$1$2"),t.chars&&t.chars(d),""}),c("",r.last());if(e==a)throw"Parse Error: "+e;a=e}c();function l(u,d,f,g){if(d=d.toLowerCase(),fw[d])for(;r.last()&&hw[r.last()];)c("",r.last());if(gw[d]&&r.last()==d&&c("",d),g=dw[d]||!!g,g||r.push(d),t.start){var _=[];f.replace(uw,function(m,v){var S=arguments[2]?arguments[2]:arguments[3]?arguments[3]:arguments[4]?arguments[4]:pw[v]?v:"";_.push({name:v,value:S,escaped:S.replace(/(^|[^\\])"/g,'$1\\"')})}),t.start&&t.start(d,_,g)}}function c(u,d){if(d)for(var f=r.length-1;f>=0&&r[f]!=d;f--);else var f=0;if(f>=0){for(var g=r.length-1;g>=f;g--)t.end&&t.end(r[g]);r.length=f}}}function Wt(e){for(var t={},n=e.split(","),o=0;o<n.length;o++)t[n[o]]=!0;return t}const Ir={};function au(e,t,n){if(J(e)?window[e]:e){n();return}let i=Ir[t];if(!i){i=Ir[t]=[];const r=document.createElement("script");r.src=t,document.body.appendChild(r),r.onload=function(){i.forEach(a=>a()),delete Ir[t]}}i.push(n)}function vw(e){const t=e.import("blots/block/embed");class n extends t{}return n.blotName="divider",n.tagName="HR",{"formats/divider":n}}function _w(e){const t=e.import("blots/inline");class n extends t{}return n.blotName="ins",n.tagName="INS",{"formats/ins":n}}function yw(e){const{Scope:t,Attributor:n}=e.import("parchment"),o={scope:t.BLOCK,whitelist:["left","right","center","justify"]};return{"formats/align":new n.Style("align","text-align",o)}}function bw(e){const{Scope:t,Attributor:n}=e.import("parchment"),o={scope:t.BLOCK,whitelist:["rtl"]};return{"formats/direction":new n.Style("direction","direction",o)}}function ww(e){const t=e.import("parchment"),n=e.import("blots/container"),o=e.import("formats/list/item");class i extends n{static create(a){const s=a==="ordered"?"OL":"UL",l=super.create(s);return(a==="checked"||a==="unchecked")&&l.setAttribute("data-checked",a==="checked"),l}static formats(a){if(a.tagName==="OL")return"ordered";if(a.tagName==="UL")return a.hasAttribute("data-checked")?a.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}constructor(a){super(a);const s=l=>{if(l.target.parentNode!==a)return;const c=this.statics.formats(a),u=t.find(l.target);c==="checked"?u.format("list","unchecked"):c==="unchecked"&&u.format("list","checked")};a.addEventListener("click",s)}format(a,s){this.children.length>0&&this.children.tail.format(a,s)}formats(){return{[this.statics.blotName]:this.statics.formats(this.domNode)}}insertBefore(a,s){if(a instanceof o)super.insertBefore(a,s);else{const l=s==null?this.length():s.offset(this),c=this.split(l);c.parent.insertBefore(a,c)}}optimize(a){super.optimize(a);const s=this.next;s!=null&&s.prev===this&&s.statics.blotName===this.statics.blotName&&s.domNode.tagName===this.domNode.tagName&&s.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(s.moveChildren(this),s.remove())}replace(a){if(a.statics.blotName!==this.statics.blotName){const s=t.create(this.statics.defaultChild);a.moveChildren(s),this.appendChild(s)}super.replace(a)}}return i.blotName="list",i.scope=t.Scope.BLOCK_BLOT,i.tagName=["OL","UL"],i.defaultChild="list-item",i.allowedChildren=[o],{"formats/list":i}}function Sw(e){const{Scope:t}=e.import("parchment"),n=e.import("formats/background");return{"formats/backgroundColor":new n.constructor("backgroundColor","background-color",{scope:t.INLINE})}}function Tw(e){const{Scope:t,Attributor:n}=e.import("parchment"),o={scope:t.BLOCK},i=["margin","marginTop","marginBottom","marginLeft","marginRight"],r=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],a={};return i.concat(r).forEach(s=>{a[`formats/${s}`]=new n.Style(s,At(s),o)}),a}function Cw(e){const{Scope:t,Attributor:n}=e.import("parchment"),o={scope:t.INLINE},i=["font","fontSize","fontStyle","fontVariant","fontWeight","fontFamily"],r={};return i.forEach(a=>{r[`formats/${a}`]=new n.Style(a,At(a),o)}),r}function Vw(e){const{Scope:t,Attributor:n}=e.import("parchment"),o=[{name:"lineHeight",scope:t.BLOCK},{name:"letterSpacing",scope:t.INLINE},{name:"textDecoration",scope:t.INLINE},{name:"textIndent",scope:t.BLOCK}],i={};return o.forEach(({name:r,scope:a})=>{i[`formats/${r}`]=new n.Style(r,At(r),{scope:a})}),i}function Aw(e){const t=e.import("formats/image"),n=["alt","height","width","data-custom","class","data-local"];t.sanitize=i=>i&&Q(i),t.formats=function(r){return n.reduce(function(a,s){return r.hasAttribute(s)&&(a[s]=r.getAttribute(s)),a},{})};const o=t.prototype.format;t.prototype.format=function(i,r){n.indexOf(i)>-1?r?this.domNode.setAttribute(i,r):this.domNode.removeAttribute(i):o.call(this,i,r)}}function Ew(e){const t=e.import("formats/link");t.sanitize=n=>{const o=document.createElement("a");o.href=n;const i=o.href.slice(0,o.href.indexOf(":"));return t.PROTOCOL_WHITELIST.concat("file").indexOf(i)>-1?n:t.SANITIZED_URL}}function kw(e){const t={divider:vw,ins:_w,align:yw,direction:bw,list:ww,background:Sw,box:Tw,font:Cw,text:Vw,image:Aw,link:Ew},n={};Object.values(t).forEach(o=>L(n,o(e))),e.register(n,!0)}function Iw(e,t,n){let o,i,r;Vue.watch(()=>e.readOnly,_=>{o&&(r.enable(!_),_||r.blur())}),Vue.watch(()=>e.placeholder,_=>{o&&l(_)});function a(_){const m=["span","strong","b","ins","em","i","u","a","del","s","sub","sup","img","div","p","h1","h2","h3","h4","h5","h6","hr","ol","ul","li","br"];let v="",S;ru(_,{start:function(h,p,C){if(!m.includes(h)){S=!C;return}S=!1;const T=p.map(({name:A,value:N})=>`${A}="${N}"`).join(" "),w=`<${h} ${T} ${C?"/":""}>`;v+=w},end:function(h){S||(v+=`</${h}>`)},chars:function(h){S||(v+=h)}}),i=!0;const y=r.clipboard.convert(v);return i=!1,y}function s(){const _=r.root.innerHTML,m=r.getText(),v=r.getContents();return{html:_,text:m,delta:v}}function l(_){const m="data-placeholder",v=r.root;v.getAttribute(m)!==_&&v.setAttribute(m,_)}let c={};function u(_){const m=_?r.getFormat(_):{},v=Object.keys(m);(v.length!==Object.keys(c).length||v.find(S=>m[S]!==c[S]))&&(c=m,n("statuschange",{},m))}function d(){n("input",{},s())}function f(_){const m=window.Quill;kw(m);const v={toolbar:!1,readOnly:e.readOnly,placeholder:e.placeholder};_.length&&(m.register("modules/ImageResize",window.ImageResize.default),v.modules={ImageResize:{modules:_}});const S=t.value;r=new m(S,v);const y=r.root;["focus","blur","input"].forEach(p=>{y.addEventListener(p,C=>{const T=s();if(p==="input"){if(Fc().platform==="ios"){const w=(T.html.match(/<span [\s\S]*>([\s\S]*)<\/span>/)||[])[1],A=w&&w.replace(/\s/g,"")?"":e.placeholder;l(A)}C.stopPropagation()}else n(p,C,T)})}),r.on("text-change",d),r.on("selection-change",u),r.on("scroll-optimize",()=>{const p=r.selection.getRange()[0];u(p)}),r.clipboard.addMatcher(Node.ELEMENT_NODE,(p,C)=>(i||C.ops&&(C.ops=C.ops.filter(({insert:T})=>J(T)).map(({insert:T})=>({insert:T}))),C)),o=!0,n("ready",{},{})}const g=Yo();Gt((_,m,v)=>{const{options:S,callbackId:y}=m;let h,p,C;if(o){const T=window.Quill;switch(_){case"format":{let{name:w="",value:A=!1}=S;p=r.getSelection(!0);let N=r.getFormat(p)[w]||!1;if(["bold","italic","underline","strike","ins"].includes(w))A=!N;else if(w==="direction"){A=A==="rtl"&&N?!1:A;const E=r.getFormat(p).align;A==="rtl"&&!E?r.format("align","right","user"):!A&&E==="right"&&r.format("align",!1,"user")}else if(w==="indent"){const E=r.getFormat(p).direction==="rtl";A=A==="+1",E&&(A=!A),A=A?"+1":"-1"}else w==="list"&&(A=A==="check"?"unchecked":A,N=N==="checked"?"unchecked":N),A=N&&N!==(A||!1)||!N&&A?A:!N;r.format(w,A,"user")}break;case"insertDivider":p=r.getSelection(!0),r.insertText(p.index,kt,"user"),r.insertEmbed(p.index+1,"divider",!0,"user"),r.setSelection(p.index+2,0,"silent");break;case"insertImage":{p=r.getSelection(!0);const{src:w="",alt:A="",width:N="",height:E="",extClass:V="",data:I={}}=S,M=Q(w);r.insertEmbed(p.index,"image",M,"silent");const F=/^(file|blob):/.test(M)?M:!1;r.formatText(p.index,1,"data-local",F,"silent"),r.formatText(p.index,1,"alt",A,"silent"),r.formatText(p.index,1,"width",N,"silent"),r.formatText(p.index,1,"height",E,"silent"),r.formatText(p.index,1,"class",V,"silent"),r.formatText(p.index,1,"data-custom",Object.keys(I).map(k=>`${k}=${I[k]}`).join("&"),"silent"),r.setSelection(p.index+1,0,"silent"),r.scrollIntoView(),setTimeout(()=>{d()},1e3)}break;case"insertText":{p=r.getSelection(!0);const{text:w=""}=S;r.insertText(p.index,w,"user"),r.setSelection(p.index+w.length,0,"silent")}break;case"setContents":{const{delta:w,html:A}=S;typeof w=="object"?r.setContents(w,"silent"):J(A)?r.setContents(a(A),"silent"):C="contents is missing"}break;case"getContents":h=s();break;case"clear":r.setText("");break;case"removeFormat":{p=r.getSelection(!0);const w=T.import("parchment");p.length?r.removeFormat(p.index,p.length,"user"):Object.keys(r.getFormat(p)).forEach(A=>{w.query(A,w.Scope.INLINE)&&r.format(A,!1)})}break;case"undo":r.history.undo();break;case"redo":r.history.redo();break;case"blur":r.blur();break;case"getSelectionText":p=r.selection.savedRange,h={text:""},p&&p.length!==0&&(h.text=r.getText(p.index,p.length));break;case"scrollIntoView":r.scrollIntoView();break}u(p)}else C="not ready";y&&v({callbackId:y,data:L({},h,{errMsg:`${_}:${C?"fail "+C:"ok"}`})})},g,!0),Vue.onMounted(()=>{const _=[];e.showImgSize&&_.push("DisplaySize"),e.showImgToolbar&&_.push("Toolbar"),e.showImgResize&&_.push("Resize"),au(window.Quill,"https://unpkg.com/quill@1.3.7/dist/quill.min.js",()=>{_.length?au(window.ImageResize,"https://unpkg.com/quill-image-resize-mp@3.0.1/image-resize.min.js",()=>{f(_)}):f(_)})})}const Nw=X({name:"Editor",props:L({},eu,{id:{type:String,default:""},readOnly:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},showImgSize:{type:[Boolean,String],default:!1},showImgToolbar:{type:[Boolean,String],default:!1},showImgResize:{type:[Boolean,String],default:!1}}),emit:["ready","focus","blur","input","statuschange",...tu],setup(e,{emit:t}){const n=Vue.ref(null),o=pe(n,t);return Iw(e,n,o),nu(e,n),()=>Vue.createVNode("uni-editor",{ref:n,id:e.id,class:"ql-container"},null,8,["id"])}}),su="#10aeff",xw="#f76260",lu="#b2b2b2",Mw={success:{d:am,c:on},success_no_circle:{d:hn,c:on},info:{d:rm,c:su},warn:{d:ps,c:xw},waiting:{d:sm,c:su},cancel:{d:nm,c:"#f43530"},download:{d:im,c:on},search:{d:gs,c:lu},clear:{d:om,c:lu}},Pw=X({name:"Icon",props:{type:{type:String,required:!0,default:""},size:{type:[String,Number],default:23},color:{type:String,default:""}},setup(e){const t=Vue.ref(null),n=Vue.computed(()=>Mw[e.type]);return()=>{const{value:o}=n;return Vue.createVNode("uni-icon",{ref:t},[o&&o.d&&ce(o.d,e.color||o.c,Ge(e.size))],512)}}}),Ow={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},Fo={widthFix:["offsetWidth","height",(e,t)=>e/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},Rw={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"]},Lw=X({name:"Image",props:Ow,setup(e,{emit:t}){const n=Vue.ref(null),o=Bw(n,e),i=pe(n,t),{fixSize:r}=$w(n,e,o);return Dw(o,e,n,r,i),()=>Vue.createVNode("uni-image",{ref:n},[Vue.createVNode("div",{style:o.modeStyle},null,4),Fo[e.mode]?Vue.createVNode(je,{onResize:r},null,8,["onResize"]):Vue.createVNode("span",null,null)],512)}});function Bw(e,t){const n=Vue.ref(""),o=Vue.computed(()=>{let r="auto",a="";const s=Rw[t.mode];return s?(s[0]&&(a=s[0]),s[1]&&(r=s[1])):(a="0% 0%",r="100% 100%"),`background-image:${n.value?'url("'+n.value+'")':"none"};background-position:${a};background-size:${r};`}),i=Vue.reactive({rootEl:e,src:Vue.computed(()=>t.src?Q(t.src):""),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:o,imgSrc:n});return Vue.onMounted(()=>{const r=e.value;i.origWidth=r.clientWidth||0,i.origHeight=r.clientHeight||0}),i}function Dw(e,t,n,o,i){let r,a;const s=(u=0,d=0,f="")=>{e.origWidth=u,e.origHeight=d,e.imgSrc=f},l=u=>{if(!u){c(),s();return}r=r||new Image,r.onload=d=>{const{width:f,height:g}=r;s(f,g,u),Vue.nextTick(()=>{o()}),r.draggable=t.draggable,a&&a.remove(),a=r,n.value.appendChild(r),c(),i("load",d,{width:f,height:g})},r.onerror=d=>{s(),c(),i("error",d,{errMsg:`GET ${e.src} 404 (Not Found)`})},r.src=u},c=()=>{r&&(r.onload=null,r.onerror=null,r=null)};Vue.watch(()=>e.src,u=>l(u)),Vue.watch(()=>e.imgSrc,u=>{!u&&a&&(a.remove(),a=null)}),Vue.onMounted(()=>l(e.src)),Vue.onBeforeUnmount(()=>c())}const Uw=navigator.vendor==="Google Inc.";function Fw(e){return Uw&&e>10&&(e=Math.round(e/2)*2),e}function $w(e,t,n){const o=()=>{const{mode:r}=t,a=Fo[r];if(!a)return;const{origWidth:s,origHeight:l}=n,c=s&&l?s/l:0;if(!c)return;const u=e.value,d=u[a[0]];d&&(u.style[a[1]]=Fw(a[2](d,c))+"px")},i=()=>{const{style:r}=e.value,{origStyle:{width:a,height:s}}=n;r.width=a,r.height=s};return Vue.watch(()=>t.mode,(r,a)=>{Fo[a]&&i(),Fo[r]&&o()}),{fixSize:o,resetSize:i}}function zw(e,t){let n=0,o,i;const r=function(...a){const s=Date.now();if(clearTimeout(o),i=()=>{i=null,n=s,e.apply(this,a)},s-n<t){o=setTimeout(i,t-(s-n));return}i()};return r.cancel=function(){clearTimeout(o),i=null},r.flush=function(){clearTimeout(o),i&&i()},r}const Hw=It(!0),$o=[];let zo=0,cu=!1;const uu=e=>$o.forEach(t=>t.userAction=e);function du(e={userAction:!1}){cu||(["touchstart","touchmove","touchend","mousedown","mouseup"].forEach(n=>{document.addEventListener(n,function(){!zo&&uu(!0),zo++,setTimeout(()=>{!--zo&&uu(!1)},0)},Hw)}),cu=!0),$o.push(e)}function Ww(e){const t=$o.indexOf(e);t>=0&&$o.splice(t,1)}const Nr=()=>!!zo;function fu(){const e=Vue.reactive({userAction:!1});return Vue.onMounted(()=>{du(e)}),Vue.onBeforeUnmount(()=>{Ww(e)}),{state:e}}function hu(){const e=Vue.reactive({attrs:{}});return Vue.onMounted(()=>{let t=Vue.getCurrentInstance();for(;t;){const n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&t.proxy.$mpType==="page"?null:t.parent}}),{state:e}}function qw(e,t){const n=Vue.inject(Fe,!1);if(!n)return;const o=Vue.getCurrentInstance(),i={submit(){const r=o.proxy;return[r[e],J(t)?r[t]:t.value]},reset(){J(t)?o.proxy[t]="":t.value=""}};n.addField(i),Vue.onBeforeUnmount(()=>{n.removeField(i)})}function Gw(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 jw=function(){os(pt(),"getSelectedTextRange",Gw)};function xr(e,t,n){return t==="number"&&isNaN(Number(e))&&(e=""),e==null?"":String(e)}const Yw=["none","text","decimal","numeric","tel","search","email","url"],gu=L({},{name:{type:String,default:""},modelValue:{type:[String,Number]},value:{type:[String,Number]},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=>!!~Yw.indexOf(e)},cursorColor:{type:String,default:""}},eu),pu=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend",...tu];function Xw(e,t,n){const o=Vue.ref(null),i=pe(t,n),r=Vue.computed(()=>{const d=Number(e.selectionStart);return isNaN(d)?-1:d}),a=Vue.computed(()=>{const d=Number(e.selectionEnd);return isNaN(d)?-1:d}),s=Vue.computed(()=>{const d=Number(e.cursor);return isNaN(d)?-1:d}),l=Vue.computed(()=>{var d=Number(e.maxlength);return isNaN(d)?140:d});let c="";c=xr(e.modelValue,e.type)||xr(e.value,e.type);const u=Vue.reactive({value:c,valueOrigin:c,maxlength:l,focus:e.focus,composing:!1,selectionStart:r,selectionEnd:a,cursor:s});return Vue.watch(()=>u.focus,d=>n("update:focus",d)),Vue.watch(()=>u.maxlength,d=>u.value=u.value.slice(0,d),{immediate:!1}),{fieldRef:o,state:u,trigger:i}}function Jw(e,t,n,o){let i=null;i=Ci(s=>{t.value=xr(s,e.type)},100,{setTimeout,clearTimeout}),Vue.watch(()=>e.modelValue,i),Vue.watch(()=>e.value,i);const r=zw((s,l)=>{i.cancel(),n("update:modelValue",l.value),n("update:value",l.value),o("input",s,l)},100),a=(s,l,c)=>{i.cancel(),r(s,l),c&&r.flush()};return Vue.onBeforeMount(()=>{i.cancel(),r.cancel()}),{trigger:o,triggerInput:a}}function Kw(e,t){fu();const n=Vue.computed(()=>e.autoFocus||e.focus);function o(){if(!n.value)return;const r=t.value;if(!r){setTimeout(o,100);return}r.focus()}function i(){const r=t.value;r&&r.blur()}Vue.watch(()=>e.focus,r=>{r?o():i()}),Vue.onMounted(()=>{n.value&&Vue.nextTick(o)})}function Qw(e,t,n,o,i,r){function a(){const u=e.value;u&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&u.type!=="number"&&(u.selectionStart=t.selectionStart,u.selectionEnd=t.selectionEnd)}function s(){const u=e.value;u&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&u.type!=="number"&&(u.selectionEnd=u.selectionStart=t.cursor)}function l(u){return u.type==="number"?null:u.selectionEnd}function c(){const u=e.value;if(!u)return;const d=function(m){t.focus=!0,o("focus",m,{value:t.value}),a(),s()},f=function(m,v){m.stopPropagation(),!(G(r)&&r(m,t)===!1)&&(t.value=u.value,(!t.composing||!n.ignoreCompositionEvent)&&i(m,{value:u.value,cursor:l(u)},v))},g=function(m){t.composing&&(t.composing=!1,f(m,!0)),t.focus=!1,o("blur",m,{value:t.value,cursor:l(m.target)})};u.addEventListener("change",m=>m.stopPropagation()),u.addEventListener("focus",d),u.addEventListener("blur",g),u.addEventListener("input",f),u.addEventListener("compositionstart",m=>{m.stopPropagation(),t.composing=!0,_(m)}),u.addEventListener("compositionend",m=>{m.stopPropagation(),t.composing&&(t.composing=!1,f(m)),_(m)}),u.addEventListener("compositionupdate",_);function _(m){n.ignoreCompositionEvent||o(m.type,m,{value:m.data})}}Vue.watch([()=>t.selectionStart,()=>t.selectionEnd],a),Vue.watch(()=>t.cursor,s),Vue.watch(()=>e.value,c)}function mu(e,t,n,o){jw();const{fieldRef:i,state:r,trigger:a}=Xw(e,t,n),{triggerInput:s}=Jw(e,r,n,a);Kw(e,i),nu(e,i);const{state:l}=hu();qw("name",r),Qw(i,r,e,a,s,o);const c=String(navigator.vendor).indexOf("Apple")===0&&CSS.supports("image-orientation:from-image");return{fieldRef:i,state:r,scopedAttrsState:l,fixDisabledColor:c,trigger:a}}const Zw=L({},gu,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),eS=ne(()=>{{const e=navigator.userAgent;let t="";const n=e.match(/OS\s([\w_]+)\slike/);if(n)t=n[1].replace(/_/g,".");else if(/Macintosh|Mac/i.test(e)&&navigator.maxTouchPoints>0){const o=e.match(/Version\/(\S*)\b/);o&&(t=o[1])}return!!t&&parseInt(t)>=16&&parseFloat(t)<17.2}});function vu(e,t,n,o,i){if(t.value){if(e.data==="."){if(t.value.slice(-1)===".")return n.value=o.value=t.value=t.value.slice(0,-1),!1;if(t.value&&!t.value.includes("."))return t.value+=".",i&&(i.fn=()=>{n.value=o.value=t.value=t.value.slice(0,-1),o.removeEventListener("blur",i.fn)},o.addEventListener("blur",i.fn)),!1}else if(e.inputType==="deleteContentBackward"&&eS()&&t.value.slice(-2,-1)===".")return t.value=n.value=o.value=t.value.slice(0,-2),!0}}function tS(e,t){if(t.value==="number"){const n=typeof e.modelValue=="undefined"?e.value:e.modelValue,o=Vue.ref(typeof n!="undefined"&&n!==null?n.toLocaleString():"");return Vue.watch(()=>e.modelValue,i=>{o.value=typeof i!="undefined"&&i!==null?i.toLocaleString():""}),Vue.watch(()=>e.value,i=>{o.value=typeof i!="undefined"&&i!==null?i.toLocaleString():""}),o}else return Vue.ref("")}const Ho=X({name:"Input",props:Zw,emits:["confirm",...pu],setup(e,{emit:t,expose:n}){const o=["text","number","idcard","digit","password","tel"],i=["off","one-time-code"],r=Vue.computed(()=>{let y="";switch(e.type){case"text":y="text",e.confirmType==="search"&&(y="search");break;case"idcard":y="text";break;case"digit":y="number";break;default:y=o.includes(e.type)?e.type:"text";break}return e.password?"password":y}),a=Vue.computed(()=>{const y=i.indexOf(e.textContentType),h=i.indexOf(At(e.textContentType));return i[y!==-1?y:h!==-1?h:0]});let s=tS(e,r),l={fn:null};const c=Vue.ref(null),{fieldRef:u,state:d,scopedAttrsState:f,fixDisabledColor:g,trigger:_}=mu(e,c,t,(y,h)=>{const p=y.target;if(r.value==="number"){if(l.fn&&(p.removeEventListener("blur",l.fn),l.fn=null),p.validity&&!p.validity.valid){if((!s.value||!p.value)&&y.data==="-"||s.value[0]==="-"&&y.inputType==="deleteContentBackward")return s.value="-",h.value="",l.fn=()=>{s.value=p.value=""},p.addEventListener("blur",l.fn),!1;const T=vu(y,s,h,p,l);return typeof T=="boolean"?T:(s.value=h.value=p.value=s.value==="-"?"":s.value,!1)}else{const T=vu(y,s,h,p,l);if(typeof T=="boolean")return T;s.value=p.value}const C=h.maxlength;if(C>0&&p.value.length>C)return p.value=p.value.slice(0,C),h.value=p.value,(e.modelValue!==void 0&&e.modelValue!==null?e.modelValue.toString():"")!==p.value}});Vue.watch(()=>d.value,y=>{e.type==="number"&&!(s.value==="-"&&y==="")&&(s.value=y.toString())});const m=["number","digit"],v=Vue.computed(()=>m.includes(e.type)?e.step:"");function S(y){if(y.key!=="Enter")return;const h=y.target;y.stopPropagation(),_("confirm",y,{value:h.value}),!e.confirmHold&&h.blur()}return n({$triggerInput:y=>{t("update:modelValue",y.value),t("update:value",y.value),d.value=y.value}}),()=>{let y=e.disabled&&g?Vue.createVNode("input",{key:"disabled-input",ref:u,value:d.value,tabindex:"-1",readonly:!!e.disabled,type:r.value,maxlength:d.maxlength,step:v.value,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},onFocus:h=>h.target.blur()},null,44,["value","readonly","type","maxlength","step","onFocus"]):Vue.createVNode("input",{key:"input",ref:u,value:d.value,onInput:h=>{d.value=h.target.value.toString()},disabled:!!e.disabled,type:r.value,maxlength:d.maxlength,step:v.value,enterkeyhint:e.confirmType,pattern:e.type==="number"?"[0-9]*":void 0,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},autocomplete:a.value,onKeyup:S,inputmode:e.inputmode},null,44,["value","onInput","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup","inputmode"]);return Vue.createVNode("uni-input",{ref:c},[Vue.createVNode("div",{class:"uni-input-wrapper"},[Vue.withDirectives(Vue.createVNode("div",Vue.mergeProps(f.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Vue.vShow,!(d.value.length||s.value==="-"||s.value.includes("."))]]),e.confirmType==="search"?Vue.createVNode("form",{action:"",onSubmit:h=>h.preventDefault(),class:"uni-input-form"},[y],40,["onSubmit"]):y])],512)}}});function nS(e){return Object.keys(e).map(t=>[t,e[t]])}const oS=["class","style"],iS=/^on[A-Z]+/,Wo=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n=[]}=e,o=Vue.getCurrentInstance(),i=Vue.shallowRef({}),r=Vue.shallowRef({}),a=Vue.shallowRef({}),s=n.concat(oS);return o.attrs=Vue.reactive(o.attrs),Vue.watchEffect(()=>{const l=nS(o.attrs).reduce((c,[u,d])=>(s.includes(u)?c.exclude[u]=d:iS.test(u)?(t||(c.attrs[u]=d),c.listeners[u]=d):c.attrs[u]=d,c),{exclude:{},attrs:{},listeners:{}});i.value=l.attrs,r.value=l.listeners,a.value=l.exclude}),{$attrs:i,$listeners:r,$excludeAttrs:a}};function qt(e){const t=[];return K(e)&&e.forEach(n=>{Vue.isVNode(n)?n.type===Vue.Fragment?t.push(...qt(n.children)):t.push(n):K(n)&&t.push(...qt(n))}),t}const _u=X({inheritAttrs:!1,name:"MovableArea",props:{scaleArea:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=Vue.ref(null),o=Vue.ref(!1);let{setContexts:i,events:r}=rS(e,n);const{$listeners:a,$attrs:s,$excludeAttrs:l}=Wo(),c=a.value;["onTouchstart","onTouchmove","onTouchend"].forEach(v=>{let S=c[v],y=r[`_${v}`];c[v]=S?[].concat(S,y):y}),Vue.onMounted(()=>{r._resize(),o.value=!0});let d=[];const f=[];function g(){const v=[];for(let S=0;S<d.length;S++){let y=d[S];y=y.el;const h=f.find(p=>y===p.rootRef.value);h&&v.push(Vue.markRaw(h))}i(v)}const _=v=>{f.push(v),g()},m=v=>{const S=f.indexOf(v);S>=0&&(f.splice(S,1),g())};return Vue.provide("_isMounted",o),Vue.provide("movableAreaRootRef",n),Vue.provide("addMovableViewContext",_),Vue.provide("removeMovableViewContext",m),()=>{const v=t.default&&t.default();return d=qt(v),Vue.createVNode("uni-movable-area",Vue.mergeProps({ref:n},s.value,l.value,c),[Vue.createVNode(je,{onResize:r._resize},null,8,["onResize"]),d],16)}}});function yu(e){return Math.sqrt(e.x*e.x+e.y*e.y)}function rS(e,t){const n=Vue.ref(0),o=Vue.ref(0),i=Vue.reactive({x:null,y:null}),r=Vue.ref(null);let a=null,s=[];function l(m){m&&m!==1&&(e.scaleArea?s.forEach(function(v){v._setScale(m)}):a&&a._setScale(m))}function c(m,v=s){let S=t.value;function y(h){for(let p=0;p<v.length;p++){const C=v[p];if(h===C.rootRef.value)return C}return h===S||h===document.body||h===document?null:y(h.parentNode)}return y(m)}const u=oe(m=>{let v=m.touches;if(v&&v.length>1){let S={x:v[1].pageX-v[0].pageX,y:v[1].pageY-v[0].pageY};if(r.value=yu(S),i.x=S.x,i.y=S.y,!e.scaleArea){let y=c(v[0].target),h=c(v[1].target);a=y&&y===h?y:null}}}),d=oe(m=>{let v=m.touches;if(v&&v.length>1){m.preventDefault();let S={x:v[1].pageX-v[0].pageX,y:v[1].pageY-v[0].pageY};if(i.x!==null&&r.value&&r.value>0){let y=yu(S)/r.value;l(y)}i.x=S.x,i.y=S.y}}),f=oe(m=>{let v=m.touches;v&&v.length||m.changedTouches&&(i.x=0,i.y=0,r.value=null,e.scaleArea?s.forEach(function(S){S._endScale()}):a&&a._endScale())});function g(){_(),s.forEach(function(m,v){m.setParent()})}function _(){let m=window.getComputedStyle(t.value),v=t.value.getBoundingClientRect();n.value=v.width-["Left","Right"].reduce(function(S,y){const h="border"+y+"Width",p="padding"+y;return S+parseFloat(m[h])+parseFloat(m[p])},0),o.value=v.height-["Top","Bottom"].reduce(function(S,y){const h="border"+y+"Width",p="padding"+y;return S+parseFloat(m[h])+parseFloat(m[p])},0)}return Vue.provide("movableAreaWidth",n),Vue.provide("movableAreaHeight",o),{setContexts(m){s=m},events:{_onTouchstart:u,_onTouchmove:d,_onTouchend:f,_resize:g}}}const kn=function(e,t,n,o){e.addEventListener(t,i=>{G(n)&&n(i)===!1&&((typeof i.cancelable=="undefined"||i.cancelable)&&i.preventDefault(),i.stopPropagation())},{passive:!1})};let bu,wu;function In(e,t,n){Vue.onBeforeUnmount(()=>{document.removeEventListener("mousemove",bu),document.removeEventListener("mouseup",wu)});let o=0,i=0,r=0,a=0;const s=function(g,_,m,v){if(t({cancelable:g.cancelable,target:g.target,currentTarget:g.currentTarget,preventDefault:g.preventDefault.bind(g),stopPropagation:g.stopPropagation.bind(g),touches:g.touches,changedTouches:g.changedTouches,detail:{state:_,x:m,y:v,dx:m-o,dy:v-i,ddx:m-r,ddy:v-a,timeStamp:g.timeStamp}})===!1)return!1};let l=null,c,u;kn(e,"touchstart",function(g){if(c=!0,g.touches.length===1&&!l)return l=g,o=r=g.touches[0].pageX,i=a=g.touches[0].pageY,s(g,"start",o,i)}),kn(e,"mousedown",function(g){if(u=!0,!c&&!l)return l=g,o=r=g.pageX,i=a=g.pageY,s(g,"start",o,i)}),kn(e,"touchmove",function(g){if(g.touches.length===1&&l){const _=s(g,"move",g.touches[0].pageX,g.touches[0].pageY);return r=g.touches[0].pageX,a=g.touches[0].pageY,_}});const d=bu=function(g){if(!c&&u&&l){const _=s(g,"move",g.pageX,g.pageY);return r=g.pageX,a=g.pageY,_}};document.addEventListener("mousemove",d),kn(e,"touchend",function(g){if(g.touches.length===0&&l)return c=!1,l=null,s(g,"end",g.changedTouches[0].pageX,g.changedTouches[0].pageY)});const f=wu=function(g){if(u=!1,!c&&l)return l=null,s(g,"end",g.pageX,g.pageY)};document.addEventListener("mouseup",f),kn(e,"touchcancel",function(g){if(l){c=!1;const _=l;return l=null,s(g,n?"cancel":"end",_.touches[0].pageX,_.touches[0].pageY)}})}function qo(e,t,n){return e>t-n&&e<t+n}function yt(e,t){return qo(e,0,t)}function Mr(){}Mr.prototype.x=function(e){return Math.sqrt(e)};function He(e,t){this._m=e,this._f=1e3*t,this._startTime=0,this._v=0}He.prototype.setV=function(e,t){const n=Math.pow(Math.pow(e,2)+Math.pow(t,2),.5);this._x_v=e,this._y_v=t,this._x_a=-this._f*this._x_v/n,this._y_a=-this._f*this._y_v/n,this._t=Math.abs(e/this._x_a)||Math.abs(t/this._y_a),this._lastDt=null,this._startTime=new Date().getTime()},He.prototype.setS=function(e,t){this._x_s=e,this._y_s=t},He.prototype.s=function(e){e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),e>this._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&&t<this._endPositionX||this._x_a<0&&t>this._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&n<this._endPositionY||this._y_a<0&&n>this._endPositionY)&&(n=this._endPositionY),{x:t,y:n}},He.prototype.ds=function(e){return e===void 0&&(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}},He.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}},He.prototype.dt=function(){return-this._x_v/this._x_a},He.prototype.done=function(){const e=qo(this.s().x,this._endPositionX)||qo(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},He.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},He.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t};function Ie(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}Ie.prototype._solve=function(e,t){const n=this._c,o=this._m,i=this._k,r=n*n-4*o*i;if(r===0){const u=-n/(2*o),d=e,f=t/(u*e);return{x:function(g){return(d+f*g)*Math.pow(Math.E,u*g)},dx:function(g){const _=Math.pow(Math.E,u*g);return u*(d+f*g)*_+f*_}}}if(r>0){const u=(-n-Math.sqrt(r))/(2*o),d=(-n+Math.sqrt(r))/(2*o),f=(t-u*e)/(d-u),g=e-f;return{x:function(_){let m,v;return _===this._t&&(m=this._powER1T,v=this._powER2T),this._t=_,m||(m=this._powER1T=Math.pow(Math.E,u*_)),v||(v=this._powER2T=Math.pow(Math.E,d*_)),g*m+f*v},dx:function(_){let m,v;return _===this._t&&(m=this._powER1T,v=this._powER2T),this._t=_,m||(m=this._powER1T=Math.pow(Math.E,u*_)),v||(v=this._powER2T=Math.pow(Math.E,d*_)),g*u*m+f*d*v}}}const a=Math.sqrt(4*o*i-n*n)/(2*o),s=-n/2*o,l=e,c=(t-s*e)/a;return{x:function(u){return Math.pow(Math.E,s*u)*(l*Math.cos(a*u)+c*Math.sin(a*u))},dx:function(u){const d=Math.pow(Math.E,s*u),f=Math.cos(a*u),g=Math.sin(a*u);return d*(c*a*f-l*a*g)+s*d*(c*g+l*f)}}},Ie.prototype.x=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},Ie.prototype.dx=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},Ie.prototype.setEnd=function(e,t,n){if(n||(n=new Date().getTime()),e!==this._endPosition||!yt(t,.1)){t=t||0;let o=this._endPosition;this._solution&&(yt(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),yt(t,.1)&&(t=0),yt(o,.1)&&(o=0),o+=this._endPosition),this._solution&&yt(o-e,.1)&&yt(t,.1)||(this._endPosition=e,this._solution=this._solve(o-this._endPosition,t),this._startTime=n)}},Ie.prototype.snap=function(e){this._startTime=new Date().getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},Ie.prototype.done=function(e){return e||(e=new Date().getTime()),qo(this.x(),this._endPosition,.1)&&yt(this.dx(),.1)},Ie.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())},Ie.prototype.springConstant=function(){return this._k},Ie.prototype.damping=function(){return this._c},Ie.prototype.configuration=function(){function e(n,o){n.reconfigure(1,o,n.damping())}function t(n,o){n.reconfigure(1,n.springConstant(),o)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:e.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:t.bind(this,this),min:1,max:500}]};function Nn(e,t,n){this._springX=new Ie(e,t,n),this._springY=new Ie(e,t,n),this._springScale=new Ie(e,t,n),this._startTime=0}Nn.prototype.setEnd=function(e,t,n,o){const i=new Date().getTime();this._springX.setEnd(e,o,i),this._springY.setEnd(t,o,i),this._springScale.setEnd(n,o,i),this._startTime=i},Nn.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)}},Nn.prototype.done=function(){const e=new Date().getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},Nn.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)};const aS={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:.1},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}};function Su(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}const Tu=X({name:"MovableView",props:aS,emits:["change","scale"],setup(e,{slots:t,emit:n}){const o=Vue.ref(null),i=pe(o,n),{setParent:r}=uS(e,i,o);return()=>Vue.createVNode("uni-movable-view",{ref:o},[Vue.createVNode(je,{onResize:r},null,8,["onResize"]),t.default&&t.default()],512)}});let Pr=!1;function Cu(e){Pr||(Pr=!0,requestAnimationFrame(function(){e(),Pr=!1}))}function Vu(e,t){if(e===t)return 0;let n=e.offsetLeft;return e.offsetParent?n+=Vu(e.offsetParent,t):0}function Au(e,t){if(e===t)return 0;let n=e.offsetTop;return e.offsetParent?n+=Au(e.offsetParent,t):0}function Eu(e,t,n){let o={id:0,cancelled:!1},i=function(a){a&&a.id&&cancelAnimationFrame(a.id),a&&(a.cancelled=!0)};function r(a,s,l,c){if(!a||!a.cancelled){l(s);let u=s.done();u||a.cancelled||(a.id=requestAnimationFrame(r.bind(null,a,s,l,c))),u&&c&&c(s)}}return r(o,e,t,n),{cancel:i.bind(null,o),model:e}}function Go(e){return/\d+[ur]px$/i.test(e)?uni.upx2px(parseFloat(e)):Number(e)||0}function sS(e,t,n){const o=Vue.inject("movableAreaWidth",Vue.ref(0)),i=Vue.inject("movableAreaHeight",Vue.ref(0)),r=Vue.inject("movableAreaRootRef"),a={x:0,y:0},s={x:0,y:0},l=Vue.ref(0),c=Vue.ref(0),u=Vue.ref(0),d=Vue.ref(0),f=Vue.ref(0),g=Vue.ref(0);function _(){let S=0-a.x+s.x,y=o.value-l.value-a.x-s.x;u.value=Math.min(S,y),f.value=Math.max(S,y);let h=0-a.y+s.y,p=i.value-c.value-a.y-s.y;d.value=Math.min(h,p),g.value=Math.max(h,p)}function m(){a.x=Vu(e.value,r.value),a.y=Au(e.value,r.value)}function v(S){S=S||t.value,S=n(S);let y=e.value.getBoundingClientRect();c.value=y.height/t.value,l.value=y.width/t.value;let h=c.value*S,p=l.value*S;s.x=(p-l.value)/2,s.y=(h-c.value)/2}return{_updateBoundary:_,_updateOffset:m,_updateWH:v,_scaleOffset:s,minX:u,minY:d,maxX:f,maxY:g}}function lS(e,t,n,o,i,r,a,s,l,c,u,d,f,g){const _=Vue.computed(()=>{let V=Number(t.damping);return isNaN(V)?20:V}),m=Vue.computed(()=>t.direction==="all"||t.direction==="horizontal"),v=Vue.computed(()=>t.direction==="all"||t.direction==="vertical"),S=Vue.ref(Go(t.x)),y=Vue.ref(Go(t.y));Vue.watch(()=>t.x,V=>{S.value=Go(V)}),Vue.watch(()=>t.y,V=>{y.value=Go(V)}),Vue.watch(S,V=>{N(V)}),Vue.watch(y,V=>{E(V)});const h=new Nn(1,9*Math.pow(_.value,2)/40,_.value);function p(V,I){let M=!1;return V>i.value?(V=i.value,M=!0):V<a.value&&(V=a.value,M=!0),I>r.value?(I=r.value,M=!0):I<s.value&&(I=s.value,M=!0),{x:V,y:I,outOfBounds:M}}function C(){d&&d.cancel(),u&&u.cancel()}function T(V,I,M,F,k,B){C(),m.value||(V=l.value),v.value||(I=c.value),t.scale||(M=o.value);let z=p(V,I);if(V=z.x,I=z.y,!t.animation){w(V,I,M,F,k,B);return}h._springX._solution=null,h._springY._solution=null,h._springScale._solution=null,h._springX._endPosition=l.value,h._springY._endPosition=c.value,h._springScale._endPosition=o.value,h.setEnd(V,I,M,1),u=Eu(h,function(){let x=h.x(),P=x.x,O=x.y,D=x.scale;w(P,O,D,F,k,B)},function(){u.cancel()})}function w(V,I,M,F="",k,B){V!==null&&V.toString()!=="NaN"&&typeof V=="number"||(V=l.value||0),I!==null&&I.toString()!=="NaN"&&typeof I=="number"||(I=c.value||0),V=Number(V.toFixed(1)),I=Number(I.toFixed(1)),M=Number(M.toFixed(1)),l.value===V&&c.value===I||k||g("change",{},{x:Su(V,n.x),y:Su(I,n.y),source:F}),t.scale||(M=o.value),M=f(M),M=+M.toFixed(3),B&&M!==o.value&&g("scale",{},{x:V,y:I,scale:M});let z="translateX("+V+"px) translateY("+I+"px) translateZ(0px) scale("+M+")";e.value&&(e.value.style.transform=z,e.value.style.webkitTransform=z,l.value=V,c.value=I,o.value=M)}function A(V){let I=p(l.value,c.value),M=I.x,F=I.y,k=I.outOfBounds;return k&&T(M,F,o.value,V),k}function N(V){if(m.value){if(V+n.x===l.value)return l;u&&u.cancel(),T(V+n.x,y.value+n.y,o.value)}return V}function E(V){if(v.value){if(V+n.y===c.value)return c;u&&u.cancel(),T(S.value+n.x,V+n.y,o.value)}return V}return{FAandSFACancel:C,_getLimitXY:p,_animationTo:T,_setTransform:w,_revise:A,dampingNumber:_,xMove:m,yMove:v,xSync:S,ySync:y,_STD:h}}function cS(e,t,n,o,i,r,a,s,l,c){const u=Vue.computed(()=>{let $=Number(e.scaleMin);return isNaN($)?.1:$}),d=Vue.computed(()=>{let $=Number(e.scaleMax);return isNaN($)?10:$}),f=Vue.ref(Number(e.scaleValue)||1);Vue.watch(f,$=>{D($)}),Vue.watch(u,()=>{O()}),Vue.watch(d,()=>{O()}),Vue.watch(()=>e.scaleValue,$=>{f.value=Number($)||0});const{_updateBoundary:g,_updateOffset:_,_updateWH:m,_scaleOffset:v,minX:S,minY:y,maxX:h,maxY:p}=sS(t,o,P),{FAandSFACancel:C,_getLimitXY:T,_animationTo:w,_setTransform:A,_revise:N,dampingNumber:E,xMove:V,yMove:I,xSync:M,ySync:F,_STD:k}=lS(t,e,v,o,h,p,S,y,a,s,l,c,P,n);function B($,ee){if(e.scale){$=P($),m($),g();const de=T(a.value,s.value),Me=de.x,De=de.y;ee?w(Me,De,$,"",!0,!0):Cu(function(){A(Me,De,$,"",!0,!0)})}}function z(){r.value=!0}function x($){i.value=$}function P($){return $=Math.max(.1,u.value,$),$=Math.min(10,d.value,$),$}function O(){if(!e.scale)return!1;B(o.value,!0),x(o.value)}function D($){return e.scale?($=P($),B($,!0),x($),$):!1}function W(){r.value=!1,x(o.value)}function q($){$&&($=i.value*$,z(),B($))}return{_updateOldScale:x,_endScale:W,_setScale:q,scaleValueSync:f,_updateBoundary:g,_updateOffset:_,_updateWH:m,_scaleOffset:v,minX:S,minY:y,maxX:h,maxY:p,FAandSFACancel:C,_getLimitXY:T,_animationTo:w,_setTransform:A,_revise:N,dampingNumber:E,xMove:V,yMove:I,xSync:M,ySync:F,_STD:k}}function uS(e,t,n){const o=Vue.inject("_isMounted",Vue.ref(!1)),i=Vue.inject("addMovableViewContext",()=>{}),r=Vue.inject("removeMovableViewContext",()=>{});let a=Vue.ref(1),s=Vue.ref(1),l=Vue.ref(!1),c=Vue.ref(0),u=Vue.ref(0),d=null,f=null,g=!1,_,m,v=null,S=null;const y=new Mr,h=new Mr,p={historyX:[0,0],historyY:[0,0],historyT:[0,0]},C=Vue.computed(()=>{let te=Number(e.friction);return isNaN(te)||te<=0?2:te}),T=new He(1,C.value);Vue.watch(()=>e.disabled,()=>{ut()});const{_updateOldScale:w,_endScale:A,_setScale:N,scaleValueSync:E,_updateBoundary:V,_updateOffset:I,_updateWH:M,_scaleOffset:F,minX:k,minY:B,maxX:z,maxY:x,FAandSFACancel:P,_getLimitXY:O,_setTransform:D,_revise:W,dampingNumber:q,xMove:$,yMove:ee,xSync:de,ySync:Me,_STD:De}=cS(e,n,t,a,s,l,c,u,d,f);function ut(){l.value||e.disabled||(P(),p.historyX=[0,0],p.historyY=[0,0],p.historyT=[0,0],$.value&&(_=c.value),ee.value&&(m=u.value),n.value.style.willChange="transform",v=null,S=null,g=!0)}function Tt(te){if(!l.value&&!e.disabled&&g){let fe=c.value,le=u.value;if(S===null&&(S=Math.abs(te.detail.dx/te.detail.dy)>1?"htouchmove":"vtouchmove"),$.value&&(fe=te.detail.dx+_,p.historyX.shift(),p.historyX.push(fe),!ee.value&&v===null&&(v=Math.abs(te.detail.dx/te.detail.dy)<1)),ee.value&&(le=te.detail.dy+m,p.historyY.shift(),p.historyY.push(le),!$.value&&v===null&&(v=Math.abs(te.detail.dy/te.detail.dx)<1)),p.historyT.shift(),p.historyT.push(te.detail.timeStamp),!v){te.preventDefault();let Ce="touch";fe<k.value?e.outOfBounds?(Ce="touch-out-of-bounds",fe=k.value-y.x(k.value-fe)):fe=k.value:fe>z.value&&(e.outOfBounds?(Ce="touch-out-of-bounds",fe=z.value+y.x(fe-z.value)):fe=z.value),le<B.value?e.outOfBounds?(Ce="touch-out-of-bounds",le=B.value-h.x(B.value-le)):le=B.value:le>x.value&&(e.outOfBounds?(Ce="touch-out-of-bounds",le=x.value+h.x(le-x.value)):le=x.value),Cu(function(){D(fe,le,a.value,Ce)})}}}function ve(){if(!l.value&&!e.disabled&&g&&(n.value.style.willChange="auto",g=!1,!v&&!W("out-of-bounds")&&e.inertia)){const te=1e3*(p.historyX[1]-p.historyX[0])/(p.historyT[1]-p.historyT[0]),fe=1e3*(p.historyY[1]-p.historyY[0])/(p.historyT[1]-p.historyT[0]),le=c.value,Ce=u.value;T.setV(te,fe),T.setS(le,Ce);const Wn=T.delta().x,qn=T.delta().y;let Ct=Wn+le,Vt=qn+Ce;Ct<k.value?(Ct=k.value,Vt=Ce+(k.value-le)*qn/Wn):Ct>z.value&&(Ct=z.value,Vt=Ce+(z.value-le)*qn/Wn),Vt<B.value?(Vt=B.value,Ct=le+(B.value-Ce)*Wn/qn):Vt>x.value&&(Vt=x.value,Ct=le+(x.value-Ce)*Wn/qn),T.setEnd(Ct,Vt),f=Eu(T,function(){let lg=T.s(),WV=lg.x,qV=lg.y;D(WV,qV,a.value,"friction")},function(){f.cancel()})}!e.outOfBounds&&!e.inertia&&P()}function ba(){if(!o.value)return;P();let te=e.scale?E.value:1;I(),M(te),V();let fe=O(de.value+F.x,Me.value+F.y),le=fe.x,Ce=fe.y;D(le,Ce,te,"",!0),w(te)}return Vue.onMounted(()=>{In(n.value,fe=>{switch(fe.detail.state){case"start":ut();break;case"move":Tt(fe);break;case"end":ve()}}),ba(),T.reconfigure(1,C.value),De.reconfigure(1,9*Math.pow(q.value,2)/40,q.value),n.value.style.transformOrigin="center";const te={rootRef:n,setParent:ba,_endScale:A,_setScale:N};i(te),Vue.onUnmounted(()=>{r(te)})}),Vue.onUnmounted(()=>{P()}),{setParent:ba}}const dS=["navigate","redirect","switchTab","reLaunch","navigateBack"],fS=["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"],hS=["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"],gS={hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator(e){return!!~dS.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){return!e||fS.concat(hS).includes(e)}},animationDuration:{type:[String,Number],default:300}};function pS(e){return()=>{if(e.openType!=="navigateBack"&&!e.url){console.error("<navigator/> should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab");return}const t=parseInt(e.animationDuration);switch(e.openType){case"navigate":uni.navigateTo({url:e.url,animationType:e.animationType||"pop-in",animationDuration:t});break;case"redirect":uni.redirectTo({url:e.url,exists:e.exists});break;case"switchTab":uni.switchTab({url:e.url});break;case"reLaunch":uni.reLaunch({url:e.url});break;case"navigateBack":uni.navigateBack({delta:e.delta,animationType:e.animationType||"pop-out",animationDuration:t});break}}}const mS=X({name:"Navigator",inheritAttrs:!1,compatConfig:{MODE:3},props:L({},gS,{renderLink:{type:Boolean,default:!0}}),setup(e,{slots:t}){const n=Vue.ref(null),o=Vue.getCurrentInstance(),i=o&&o.vnode.scopeId||"",{hovering:r,binding:a}=Di(e),s=pS(e);return()=>{const{hoverClass:l,url:c}=e,u=e.hoverClass&&e.hoverClass!=="none",d=e.renderLink?Vue.createVNode("a",{class:"navigator-wrap",href:c,onClick:Je,onMousedown:Je},[t.default&&t.default()],40,["href","onClick","onMousedown"]):t.default&&t.default();return Vue.createVNode("uni-navigator",Vue.mergeProps({class:u&&r.value?l:"",ref:n},u&&a,o?o.attrs:{},{[i]:""},{onClick:s}),[d],16,["onClick"])}}}),vS={value:{type:Array,default(){return[]},validator:function(e){return K(e)&&e.filter(t=>typeof t=="number").length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}};function _S(e){const t=Vue.reactive([...e.value]),n=Vue.reactive({value:t,height:34});return Vue.watch(()=>e.value,(o,i)=>{n.value.length=o.length,o.forEach((r,a)=>{r!==n.value[a]&&n.value.splice(a,1,r)})}),n}const ku=X({name:"PickerView",props:vS,emits:["change","pickstart","pickend","update:value"],setup(e,{slots:t,emit:n}){const o=Vue.ref(null),i=Vue.ref(null),r=pe(o,n),a=_S(e),s=Vue.ref(null),l=()=>{const g=s.value;g&&(a.height=g.$el.offsetHeight)};Vue.onMounted(l);let c=Vue.ref([]),u=Vue.ref([]);function d(g){let _=u.value;_=_.filter(v=>v.type!==Vue.Comment);let m=_.indexOf(g);return m!==-1?m:c.value.indexOf(g)}const f=function(g){return Vue.computed({get(){const m=d(g.vnode);return a.value[m]||0},set(m){const v=d(g.vnode);if(v<0)return;if(a.value[v]!==m){a.value[v]=m;const y=a.value.map(h=>h);n("update:value",y),r("change",{},{value:y})}}})};return Vue.provide("getPickerViewColumn",f),Vue.provide("pickerViewProps",e),Vue.provide("pickerViewState",a),()=>{const g=t.default&&t.default();{const _=qt(g);c.value=_,Vue.nextTick(()=>{u.value=_})}return Vue.createVNode("uni-picker-view",{ref:o},[Vue.createVNode(je,{ref:s,onResize:({height:_})=>a.height=_},null,8,["onResize"]),Vue.createVNode("div",{ref:i,class:"uni-picker-view-wrapper"},[g],512)],512)}}});class Or{constructor(t){this._drag=t,this._dragLog=Math.log(t),this._x=0,this._v=0,this._startTime=0}set(t,n){this._x=t,this._v=n,this._startTime=new Date().getTime()}setVelocityByEnd(t){this._v=(t-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)}x(t){t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3);const n=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t);return this._dt=t,this._x+this._v*n/this._dragLog-this._v/this._dragLog}dx(t){t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3);const n=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t);return this._dt=t,this._v*n}done(){return Math.abs(this.dx())<3}reconfigure(t){const n=this.x(),o=this.dx();this._drag=t,this._dragLog=Math.log(t),this.set(n,o)}configuration(){const t=this;return[{label:"Friction",read:function(){return t._drag},write:function(n){t.reconfigure(n)},min:.001,max:.1,step:.001}]}}function Iu(e,t,n){return e>t-n&&e<t+n}function bt(e,t){return Iu(e,0,t)}class Rr{constructor(t,n,o){this._m=t,this._k=n,this._c=o,this._solution=null,this._endPosition=0,this._startTime=0}_solve(t,n){const o=this._c,i=this._m,r=this._k,a=o*o-4*i*r;if(a===0){const d=-o/(2*i),f=t,g=n/(d*t);return{x:function(_){return(f+g*_)*Math.pow(Math.E,d*_)},dx:function(_){const m=Math.pow(Math.E,d*_);return d*(f+g*_)*m+g*m}}}if(a>0){const d=(-o-Math.sqrt(a))/(2*i),f=(-o+Math.sqrt(a))/(2*i),g=(n-d*t)/(f-d),_=t-g;return{x:function(m){let v,S;return m===this._t&&(v=this._powER1T,S=this._powER2T),this._t=m,v||(v=this._powER1T=Math.pow(Math.E,d*m)),S||(S=this._powER2T=Math.pow(Math.E,f*m)),_*v+g*S},dx:function(m){let v,S;return m===this._t&&(v=this._powER1T,S=this._powER2T),this._t=m,v||(v=this._powER1T=Math.pow(Math.E,d*m)),S||(S=this._powER2T=Math.pow(Math.E,f*m)),_*d*v+g*f*S}}}const s=Math.sqrt(4*i*r-o*o)/(2*i),l=-o/2*i,c=t,u=(n-l*t)/s;return{x:function(d){return Math.pow(Math.E,l*d)*(c*Math.cos(s*d)+u*Math.sin(s*d))},dx:function(d){const f=Math.pow(Math.E,l*d),g=Math.cos(s*d),_=Math.sin(s*d);return f*(u*s*g-c*s*_)+l*f*(u*_+c*g)}}}x(t){return t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(t):0}dx(t){return t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3),this._solution?this._solution.dx(t):0}setEnd(t,n,o){if(o||(o=new Date().getTime()),t!==this._endPosition||!bt(n,.4)){n=n||0;let i=this._endPosition;this._solution&&(bt(n,.4)&&(n=this._solution.dx((o-this._startTime)/1e3)),i=this._solution.x((o-this._startTime)/1e3),bt(n,.4)&&(n=0),bt(i,.4)&&(i=0),i+=this._endPosition),this._solution&&bt(i-t,.4)&&bt(n,.4)||(this._endPosition=t,this._solution=this._solve(i-this._endPosition,n),this._startTime=o)}}snap(t){this._startTime=new Date().getTime(),this._endPosition=t,this._solution={x:function(){return 0},dx:function(){return 0}}}done(t){return t||(t=new Date().getTime()),Iu(this.x(),this._endPosition,.4)&&bt(this.dx(),.4)}reconfigure(t,n,o){this._m=t,this._k=n,this._c=o,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=new Date().getTime())}springConstant(){return this._k}damping(){return this._c}configuration(){function t(o,i){o.reconfigure(1,i,o.damping())}function n(o,i){o.reconfigure(1,o.springConstant(),i)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:t.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:n.bind(this,this),min:1,max:500}]}}class yS{constructor(t,n,o){this._extent=t,this._friction=n||new Or(.01),this._spring=o||new Rr(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}snap(t,n){this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(n)}set(t,n){this._friction.set(t,n),t>0&&n>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(0)):t<-this._extent&&n<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=new Date().getTime()}x(t){if(!this._startTime)return 0;if(t||(t=(new Date().getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;let n=this._friction.x(t),o=this.dx(t);return(n>0&&o>=0||n<-this._extent&&o<=0)&&(this._springing=!0,this._spring.setEnd(0,o),n<-this._extent?this._springOffset=-this._extent:this._springOffset=0,n=this._spring.x()+this._springOffset),n}dx(t){let n;return this._lastTime===t?n=this._lastDx:n=this._springing?this._spring.dx(t):this._friction.dx(t),this._lastTime=t,this._lastDx=n,n}done(){return this._springing?this._spring.done():this._friction.done()}setVelocityByEnd(t){this._friction.setVelocityByEnd(t)}configuration(){const t=this._friction.configuration();return t.push.apply(t,this._spring.configuration()),t}}function bS(e,t,n){const o={id:0,cancelled:!1};function i(a,s,l,c){if(!a||!a.cancelled){l(s);const u=s.done();u||a.cancelled||(a.id=requestAnimationFrame(i.bind(null,a,s,l,c))),u&&c&&c(s)}}function r(a){a&&a.id&&cancelAnimationFrame(a.id),a&&(a.cancelled=!0)}return i(o,e,t,n),{cancel:r.bind(null,o),model:e}}class wS{constructor(t,n){n=n||{},this._element=t,this._options=n,this._enableSnap=n.enableSnap||!1,this._itemSize=n.itemSize||0,this._enableX=n.enableX||!1,this._enableY=n.enableY||!1,this._shouldDispatchScrollEvent=!!n.onScroll,this._enableX?(this._extent=(n.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=n.scrollWidth):(this._extent=(n.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=n.scrollHeight),this._position=0,this._scroll=new yS(this._extent,n.friction,n.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}onTouchStart(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()}onTouchMove(t,n){let o=this._startPosition;this._enableX?o+=t:this._enableY&&(o+=n),o>0?o*=.5:o<-this._extent&&(o=.5*(o+this._extent)-this._extent),this._position=o,this.updatePosition(),this.dispatchScroll()}onTouchEnd(t,n,o){if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(n)<this._itemSize&&Math.abs(o.y)<300||Math.abs(o.y)<150)){this.snap();return}if(this._enableX&&(Math.abs(t)<this._itemSize&&Math.abs(o.x)<300||Math.abs(o.x)<150)){this.snap();return}}this._enableX?this._scroll.set(this._position,o.x):this._enableY&&this._scroll.set(this._position,o.y);let i;if(this._enableSnap){const r=this._scroll._friction.x(100),a=r%this._itemSize;i=Math.abs(a)>this._itemSize/2?r-(this._itemSize-Math.abs(a)):r-a,i<=0&&i>=-this._extent&&this._scroll.setVelocityByEnd(i)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=bS(this._scroll,()=>{const r=Date.now(),a=(r-this._scroll._startTime)/1e3,s=this._scroll.x(a);this._position=s,this.updatePosition();const l=this._scroll.dx(a);this._shouldDispatchScrollEvent&&r-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/l),this._lastTime=r)},()=>{this._enableSnap&&(i<=0&&i>=-this._extent&&(this._position=i,this.updatePosition()),G(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._shouldDispatchScrollEvent&&this.dispatchScroll(),this._scrolling=!1})}onTransitionEnd(){this._element.style.webkitTransition="",this._element.style.transition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()}snap(){const t=this._itemSize,n=this._position%t,o=Math.abs(n)>this._itemSize/2?this._position-(t-Math.abs(n)):this._position-n;this._position!==o&&(this._snapping=!0,this.scrollTo(-o),G(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))}scrollTo(t,n){this._animation&&(this._animation.cancel(),this._scrolling=!1),typeof t=="number"&&(this._position=-t),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0);const o="transform "+(n||.2)+"s ease-out";this._element.style.webkitTransition="-webkit-"+o,this._element.style.transition=o,this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd)}dispatchScroll(){if(G(this._options.onScroll)&&Math.round(Number(this._lastPos))!==Math.round(this._position)){this._lastPos=this._position;const t={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(t)}}update(t,n,o){let i=0;const r=this._position;this._enableX?(i=this._element.childNodes.length?(n||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=n):(i=this._element.childNodes.length?(n||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=n),typeof t=="number"&&(this._position=-t),this._position<-i?this._position=-i:this._position>0&&(this._position=0),this._itemSize=o||this._itemSize,this.updatePosition(),r!==this._position&&(this.dispatchScroll(),G(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=i,this._scroll._extent=i}updatePosition(){let t="";this._enableX?t="translateX("+this._position+"px) translateZ(0)":this._enableY&&(t="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=t,this._element.style.transform=t}isScrolling(){return this._scrolling||this._snapping}}function Nu(e,t){const n={trackingID:-1,maxDy:0,maxDx:0},o=new wS(e,t);function i(l){const c=l,u=l;return c.detail.state==="move"||c.detail.state==="end"?{x:c.detail.dx,y:c.detail.dy}:{x:u.screenX-n.x,y:u.screenY-n.y}}function r(l){const c=l,u=l;c.detail.state==="start"?(n.trackingID="touch",n.x=c.detail.x,n.y=c.detail.y):(n.trackingID="mouse",n.x=u.screenX,n.y=u.screenY),n.maxDx=0,n.maxDy=0,n.historyX=[0],n.historyY=[0],n.historyTime=[c.detail.timeStamp||u.timeStamp],n.listener=o,o.onTouchStart&&o.onTouchStart(),(typeof l.cancelable!="boolean"||l.cancelable)&&l.preventDefault()}function a(l){const c=l,u=l;if(n.trackingID!==-1){(typeof l.cancelable!="boolean"||l.cancelable)&&l.preventDefault();const d=i(l);if(d){for(n.maxDy=Math.max(n.maxDy,Math.abs(d.y)),n.maxDx=Math.max(n.maxDx,Math.abs(d.x)),n.historyX.push(d.x),n.historyY.push(d.y),n.historyTime.push(c.detail.timeStamp||u.timeStamp);n.historyTime.length>10;)n.historyTime.shift(),n.historyX.shift(),n.historyY.shift();n.listener&&n.listener.onTouchMove&&n.listener.onTouchMove(d.x,d.y)}}}function s(l){if(n.trackingID!==-1){l.preventDefault();const c=i(l);if(c){const u=n.listener;n.trackingID=-1,n.listener=null;const d=n.historyTime.length,f={x:0,y:0};if(d>2)for(let g=n.historyTime.length-1,_=n.historyTime[g],m=n.historyX[g],v=n.historyY[g];g>0;){g--;const S=n.historyTime[g],y=_-S;if(y>30&&y<50){f.x=(m-n.historyX[g])/(y/1e3),f.y=(v-n.historyY[g])/(y/1e3);break}}n.historyTime=[],n.historyX=[],n.historyY=[],u&&u.onTouchEnd&&u.onTouchEnd(c.x,c.y,f)}}}return{scroller:o,handleTouchStart:r,handleTouchMove:a,handleTouchEnd:s}}function SS(e){let n=0,o=0;e.addEventListener("touchstart",i=>{const r=i.changedTouches[0];n=r.clientX,o=r.clientY}),e.addEventListener("touchend",i=>{const r=i.changedTouches[0];if(Math.abs(r.clientX-n)<20&&Math.abs(r.clientY-o)<20){const a={bubbles:!0,cancelable:!0,target:i.target,currentTarget:i.currentTarget},s=new CustomEvent("click",a);["screenX","screenY","clientX","clientY","pageX","pageY"].forEach(c=>{s[c]=r[c]}),i.target.dispatchEvent(s)}})}const xu=X({name:"PickerViewColumn",setup(e,{slots:t,emit:n}){const o=Vue.ref(null),i=Vue.ref(null),r=Vue.inject("getPickerViewColumn"),a=Vue.getCurrentInstance(),s=r?r(a):Vue.ref(0),l=Vue.inject("pickerViewProps"),c=Vue.inject("pickerViewState"),u=Vue.ref(34),d=Vue.ref(null),f=()=>{const w=d.value;u.value=w.$el.offsetHeight};Vue.onMounted(f);const g=Vue.computed(()=>(c.height-u.value)/2),{state:_}=hu();let m;const v=Vue.reactive({current:s.value,length:0});let S;function y(){m&&!S&&(S=!0,Vue.nextTick(()=>{S=!1;let w=Math.min(v.current,v.length-1);w=Math.max(w,0),m.update(w*u.value,void 0,u.value)}))}Vue.watch(()=>s.value,w=>{w!==v.current&&(v.current=w,y())}),Vue.watch(()=>v.current,w=>s.value=w),Vue.watch([()=>u.value,()=>v.length,()=>c.height],y);let h=0;function p(w){const A=h+w.deltaY;if(Math.abs(A)>10){h=0;let N=Math.min(v.current+(A<0?-1:1),v.length-1);v.current=N=Math.max(N,0),m.scrollTo(N*u.value)}else h=A;w.preventDefault()}function C({clientY:w}){const A=o.value;if(!m.isScrolling()){const N=A.getBoundingClientRect(),E=w-N.top-c.height/2,V=u.value/2;if(!(Math.abs(E)<=V)){const I=Math.ceil((Math.abs(E)-V)/u.value),M=E<0?-I:I;let F=Math.min(v.current+M,v.length-1);v.current=F=Math.max(F,0),m.scrollTo(F*u.value)}}}const T=()=>{const w=o.value,A=i.value,{scroller:N,handleTouchStart:E,handleTouchMove:V,handleTouchEnd:I}=Nu(A,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:u.value,friction:new Or(1e-4),spring:new Rr(2,90,20),onSnap:M=>{!isNaN(M)&&M!==v.current&&(v.current=M)}});m=N,In(w,M=>{switch(M.detail.state){case"start":E(M);break;case"move":V(M),M.stopPropagation();break;case"end":case"cancel":I(M)}},!0),SS(w),y()};return Vue.onMounted(T),()=>{const w=t.default&&t.default();v.length=qt(w).length;const A=`${g.value}px 0`;return Vue.createVNode("uni-picker-view-column",{ref:o},[Vue.createVNode("div",{onWheel:p,onClick:C,class:"uni-picker-view-group"},[Vue.createVNode("div",Vue.mergeProps(_.attrs,{class:["uni-picker-view-mask",l.maskClass],style:`background-size: 100% ${g.value}px;${l.maskStyle}`}),null,16),Vue.createVNode("div",Vue.mergeProps(_.attrs,{class:["uni-picker-view-indicator",l.indicatorClass],style:l.indicatorStyle}),[Vue.createVNode(je,{ref:d,onResize:({height:N})=>u.value=N},null,8,["onResize"])],16),Vue.createVNode("div",{ref:i,class:["uni-picker-view-content"],style:{padding:A,"--picker-view-column-indicator-height":`${u.value}px`}},[w],4)],40,["onWheel","onClick"])],512)}}}),TS=16,wt={activeColor:on,backgroundColor:"#EBEBEB",activeMode:"backwards"},CS={percent:{type:[Number,String],default:0,validator(e){return!isNaN(parseFloat(e))}},fontSize:{type:[String,Number],default:TS},showInfo:{type:[Boolean,String],default:!1},strokeWidth:{type:[Number,String],default:6,validator(e){return!isNaN(parseFloat(e))}},color:{type:String,default:wt.activeColor},activeColor:{type:String,default:wt.activeColor},backgroundColor:{type:String,default:wt.backgroundColor},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:wt.activeMode},duration:{type:[Number,String],default:30,validator(e){return!isNaN(parseFloat(e))}},borderRadius:{type:[Number,String],default:0}},VS=X({name:"Progress",props:CS,setup(e){const t=Vue.ref(null),n=AS(e);return Mu(n,e),Vue.watch(()=>n.realPercent,(o,i)=>{n.strokeTimer&&clearInterval(n.strokeTimer),n.lastPercent=i||0,Mu(n,e)}),()=>{const{showInfo:o}=e,{outerBarStyle:i,innerBarStyle:r,currentPercent:a}=n;return Vue.createVNode("uni-progress",{class:"uni-progress",ref:t},[Vue.createVNode("div",{style:i,class:"uni-progress-bar"},[Vue.createVNode("div",{style:r,class:"uni-progress-inner-bar"},null,4)],4),o?Vue.createVNode("p",{class:"uni-progress-info"},[a+"%"]):""],512)}}});function AS(e){const t=Vue.ref(0),n=Vue.computed(()=>`background-color: ${e.backgroundColor}; height: ${Ge(e.strokeWidth)}px;`),o=Vue.computed(()=>{const a=e.color!==wt.activeColor&&e.activeColor===wt.activeColor?e.color:e.activeColor;return`width: ${t.value}%;background-color: ${a}`}),i=Vue.computed(()=>{if(typeof e.percent=="string"&&!/^-?\d*\.?\d*$/.test(e.percent))return 0;let a=parseFloat(e.percent);return Number.isNaN(a)||a<0?a=0:a>100&&(a=100),a});return Vue.reactive({outerBarStyle:n,innerBarStyle:o,realPercent:i,currentPercent:t,strokeTimer:0,lastPercent:0})}function Mu(e,t){t.active?(e.currentPercent=t.activeMode===wt.activeMode?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}const Pu=fn("ucg"),ES=X({name:"RadioGroup",props:{name:{type:String,default:""}},setup(e,{emit:t,slots:n}){const o=Vue.ref(null),i=pe(o,t);return kS(e,i),()=>Vue.createVNode("uni-radio-group",{ref:o},[n.default&&n.default()],512)}});function kS(e,t){const n=[];Vue.onMounted(()=>{s(n.length-1)});const o=()=>{var l;return(l=n.find(c=>c.value.radioChecked))==null?void 0:l.value.value};Vue.provide(Pu,{addField(l){n.push(l)},removeField(l){n.splice(n.indexOf(l),1)},radioChange(l,c){const u=n.indexOf(c);s(u,!0),t("change",l,{value:o()})}});const i=Vue.inject(Fe,!1),r={submit:()=>{let l=["",null];return e.name!==""&&(l[0]=e.name,l[1]=o()),l}};i&&(i.addField(r),Vue.onBeforeUnmount(()=>{i.removeField(r)}));function a(l,c){l.value={radioChecked:c,value:l.value.value}}function s(l,c){n.forEach((u,d)=>{d!==l&&(c?a(n[d],!1):n.forEach((f,g)=>{d>=g||n[g].value.radioChecked&&a(n[d],!1)}))})}return n}const IS=X({name:"Radio",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},value:{type:String,default:""},color:{type:String,default:"#007aff"},backgroundColor:{type:String,default:""},borderColor:{type:String,default:""},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},iconColor:{type:String,default:"#ffffff"}},setup(e,{slots:t}){const n=Vue.ref(null),o=Vue.ref(e.checked),i=Vue.ref(e.value);function r(f){if(e.disabled)return{backgroundColor:"#E1E1E1",borderColor:"#D1D1D1"};const g={};return o.value?(g.backgroundColor=e.activeBackgroundColor||e.color,g.borderColor=e.activeBorderColor||g.backgroundColor):(e.borderColor&&(g.borderColor=e.borderColor),e.backgroundColor&&(g.backgroundColor=e.backgroundColor)),g}const a=Vue.computed(()=>r(o.value));Vue.watch([()=>e.checked,()=>e.value],([f,g])=>{o.value=f,i.value=g});const s=()=>{o.value=!1},{uniCheckGroup:l,uniLabel:c,field:u}=NS(o,i,s),d=f=>{e.disabled||o.value||(o.value=!0,l&&l.radioChange(f,u),f.stopPropagation())};return c&&(c.addHandler(d),Vue.onBeforeUnmount(()=>{c.removeHandler(d)})),lo(e,{"label-click":d}),()=>{const f=mt(e,"disabled");let g;return g=o.value,Vue.createVNode("uni-radio",Vue.mergeProps(f,{id:e.id,onClick:d,ref:n}),[Vue.createVNode("div",{class:"uni-radio-wrapper",style:{"--HOVER-BD-COLOR":o.value?a.value.borderColor:e.activeBorderColor}},[Vue.createVNode("div",{class:["uni-radio-input",{"uni-radio-input-disabled":e.disabled}],style:a.value},[g?ce(hn,e.disabled?"#ADADAD":e.iconColor,18):""],6),t.default&&t.default()],4)],16,["id","onClick"])}}});function NS(e,t,n){const o=Vue.computed({get:()=>({radioChecked:!!e.value,value:t.value}),set:({radioChecked:l})=>{e.value=l}}),i={reset:n},r=Vue.inject(Pu,!1);r&&r.addField(o);const a=Vue.inject(Fe,!1);a&&a.addField(i);const s=Vue.inject(mn,!1);return Vue.onBeforeUnmount(()=>{r&&r.removeField(o),a&&a.removeField(i)}),{uniCheckGroup:r,uniForm:a,uniLabel:s,field:o}}const xS={a:"",abbr:"",address:"",article:"",aside:"",b:"",bdi:"",bdo:["dir"],big:"",blockquote:"",br:"",caption:"",center:"",cite:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",font:"",footer:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",header:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",mark:"",nav:"",ol:["start","type"],p:"",pre:"",q:"",rt:"",ruby:"",s:"",section:"",small:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","height","rowspan","width"],tfoot:"",th:["colspan","height","rowspan","width"],thead:"",tr:["colspan","height","rowspan","width"],tt:"",u:"",ul:""},Lr={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'",ldquo:"“",rdquo:"”",yen:"¥",radic:"√",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",hellip:"…"};function MS(e){return e.replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,function(t,n){return ae(Lr,n)&&Lr[n]?Lr[n]:/^#[0-9]{1,4}$/.test(n)?String.fromCharCode(n.slice(1)):/^#x[0-9a-f]{1,4}$/i.test(n)?String.fromCharCode(0+n.slice(1)):t})}function PS(e,t){if(["a","img"].includes(e.name)&&t)return{onClick:n=>{t(n,{node:e}),n.stopPropagation(),n.preventDefault(),n.returnValue=!1}}}function OS(e,t){if(se(t)){for(const n in t)if(ae(t,n)){const o=t[n];e==="img"&&n==="src"&&(t[n]=Q(o))}}}const Ou=(e,t,n)=>!n||K(n)&&!n.length?[]:n.map(o=>{var i;if(se(o)){if(!ae(o,"type")||o.type==="node"){let r={[e]:""};const a=(i=o.name)==null?void 0:i.toLowerCase();return ae(xS,a)?(OS(a,o.attrs),r=L(r,PS(o,t),o.attrs),Vue.h(o.name,r,Ou(e,t,o.children))):void 0}if(o.type==="text"&&J(o.text)&&o.text!=="")return Vue.createTextVNode(MS(o.text||""))}});function RS(e){return e.replace(/<\?xml.*\?>\n/,"").replace(/<!doctype.*>\n/,"").replace(/<!DOCTYPE.*>\n/,"")}function LS(e){return e.reduce(function(t,n){let o=n.value;const i=n.name;return o.match(/ /)&&["style","src"].indexOf(i)===-1&&(o=o.split(" ")),t[i]?Array.isArray(t[i])?t[i].push(o):t[i]=[t[i],o]:t[i]=o,t},{})}function BS(e){e=RS(e);const t=[],n={children:[]};return ru(e,{start:function(o,i,r){const a={name:o};if(i.length!==0&&(a.attrs=LS(i)),r){const s=t[0]||n;s.children||(s.children=[]),s.children.push(a)}else t.unshift(a)},end:function(o){const i=t.shift();if(i.name!==o&&console.error("invalid state: mismatch end tag"),t.length===0)n.children.push(i);else{const r=t[0];r.children||(r.children=[]),r.children.push(i)}},chars:function(o){const i={type:"text",text:o};if(t.length===0)n.children.push(i);else{const r=t[0];r.children||(r.children=[]),r.children.push(i)}},comment:function(o){const i={node:"comment",text:o},r=t[0];r&&(r.children||(r.children=[]),r.children.push(i))}}),n.children}const DS=X({name:"RichText",compatConfig:{MODE:3},props:{nodes:{type:[Array,String],default:function(){return[]}}},emits:["itemclick"],setup(e,{emit:t}){const n=Vue.getCurrentInstance(),o=n&&n.vnode.scopeId||"",i=Vue.ref(null),r=Vue.ref([]),a=pe(i,t);function s(c,u={}){a("itemclick",c,u)}function l(){let c=e.nodes;J(c)&&(c=BS(e.nodes)),r.value=Ou(o,s,c)}return Vue.watch(()=>e.nodes,l,{immediate:!0,deep:!0}),()=>Vue.h("uni-rich-text",{ref:i},Vue.h("div",{},r.value))}}),US=X({name:"Refresher",props:{refreshState:{type:String,default:""},refresherHeight:{type:Number,default:0},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"},refresherBackground:{type:String,default:"#fff"}},setup(e,{slots:t}){const n=Vue.ref(null),o=Vue.computed(()=>{const r={backgroundColor:e.refresherBackground};switch(e.refreshState){case"pulling":r.height=e.refresherHeight+"px";break;case"refreshing":r.height=e.refresherThreshold+"px",r.transition="height 0.3s";break;case"":case"refresherabort":case"restore":r.height="0px",r.transition="height 0.3s";break}return r}),i=Vue.computed(()=>{const r=e.refresherHeight/e.refresherThreshold;return(r>1?1:r)*360});return()=>{const{refreshState:r,refresherDefaultStyle:a,refresherThreshold:s}=e;return Vue.createVNode("div",{ref:n,style:o.value,class:"uni-scroll-view-refresher"},[a!=="none"?Vue.createVNode("div",{class:"uni-scroll-view-refresh"},[Vue.createVNode("div",{class:"uni-scroll-view-refresh-inner"},[r=="pulling"?Vue.createVNode("svg",{key:"refresh__icon",style:{transform:"rotate("+i.value+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[Vue.createVNode("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null),Vue.createVNode("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,r=="refreshing"?Vue.createVNode("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[Vue.createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,a==="none"?Vue.createVNode("div",{class:"uni-scroll-view-refresher-container",style:{height:`${s}px`}},[t.default&&t.default()]):null],4)}}}),Ru=It(!0),Lu=X({name:"ScrollView",compatConfig:{MODE:3},props:{direction:{type:[String],default:"vertical"},scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},showScrollbar:{type:[Boolean,String],default:!0},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,{emit:t,slots:n,expose:o}){const i=Vue.ref(null),r=Vue.ref(null),a=Vue.ref(null),s=Vue.ref(null),l=pe(i,t),{state:c,scrollTopNumber:u,scrollLeftNumber:d}=FS(e),{realScrollX:f,realScrollY:g}=$S(e,c,u,d,l,i,r,s,t),_=Vue.computed(()=>{let v="";return f.value?v+="overflow-x:auto;":v+="overflow-x:hidden;",g.value?v+="overflow-y:auto;":v+="overflow-y:hidden;",v}),m=Vue.computed(()=>{let v="uni-scroll-view";return e.showScrollbar===!1&&(v+=" uni-scroll-view-scrollbar-hidden"),v});return o({$getMain(){return r.value}}),()=>{const{refresherEnabled:v,refresherBackground:S,refresherDefaultStyle:y,refresherThreshold:h}=e,{refresherHeight:p,refreshState:C}=c;return Vue.createVNode("uni-scroll-view",{ref:i},[Vue.createVNode("div",{ref:a,class:"uni-scroll-view"},[Vue.createVNode("div",{ref:r,style:_.value,class:m.value},[v?Vue.createVNode(US,{refreshState:C,refresherHeight:p,refresherThreshold:h,refresherDefaultStyle:y,refresherBackground:S},{default:()=>[y=="none"?n.refresher&&n.refresher():null]},8,["refreshState","refresherHeight","refresherThreshold","refresherDefaultStyle","refresherBackground"]):null,Vue.createVNode("div",{ref:s,class:"uni-scroll-view-content"},[n.default&&n.default()],512)],6)],512)],512)}}});function FS(e){const t=Vue.computed(()=>Number(e.scrollTop)||0),n=Vue.computed(()=>Number(e.scrollLeft)||0);return{state:Vue.reactive({lastScrollTop:t.value,lastScrollLeft:n.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshState:""}),scrollTopNumber:t,scrollLeftNumber:n}}function $S(e,t,n,o,i,r,a,s,l){let c=!1,u=0,d=!1,f=()=>{};const g=Vue.computed(()=>e.scrollX),_=Vue.computed(()=>e.scrollY),m=Vue.computed(()=>{let E=Number(e.upperThreshold);return isNaN(E)?50:E}),v=Vue.computed(()=>{let E=Number(e.lowerThreshold);return isNaN(E)?50:E});function S(E,V){const I=a.value;let M=0,F="";if(E<0?E=0:V==="x"&&E>I.scrollWidth-I.offsetWidth?E=I.scrollWidth-I.offsetWidth:V==="y"&&E>I.scrollHeight-I.offsetHeight&&(E=I.scrollHeight-I.offsetHeight),V==="x"?M=I.scrollLeft-E:V==="y"&&(M=I.scrollTop-E),M===0)return;let k=s.value;k.style.transition="transform .3s ease-out",k.style.webkitTransition="-webkit-transform .3s ease-out",V==="x"?F="translateX("+M+"px) translateZ(0)":V==="y"&&(F="translateY("+M+"px) translateZ(0)"),k.removeEventListener("transitionend",f),k.removeEventListener("webkitTransitionEnd",f),f=()=>T(E,V),k.addEventListener("transitionend",f),k.addEventListener("webkitTransitionEnd",f),V==="x"?I.style.overflowX="hidden":V==="y"&&(I.style.overflowY="hidden"),k.style.transform=F,k.style.webkitTransform=F}function y(E){const V=E.target;i("scroll",E,{scrollLeft:V.scrollLeft,scrollTop:V.scrollTop,scrollHeight:V.scrollHeight,scrollWidth:V.scrollWidth,deltaX:t.lastScrollLeft-V.scrollLeft,deltaY:t.lastScrollTop-V.scrollTop}),_.value&&(V.scrollTop<=m.value&&t.lastScrollTop-V.scrollTop>0&&E.timeStamp-t.lastScrollToUpperTime>200&&(i("scrolltoupper",E,{direction:"top"}),t.lastScrollToUpperTime=E.timeStamp),V.scrollTop+V.offsetHeight+v.value>=V.scrollHeight&&t.lastScrollTop-V.scrollTop<0&&E.timeStamp-t.lastScrollToLowerTime>200&&(i("scrolltolower",E,{direction:"bottom"}),t.lastScrollToLowerTime=E.timeStamp)),g.value&&(V.scrollLeft<=m.value&&t.lastScrollLeft-V.scrollLeft>0&&E.timeStamp-t.lastScrollToUpperTime>200&&(i("scrolltoupper",E,{direction:"left"}),t.lastScrollToUpperTime=E.timeStamp),V.scrollLeft+V.offsetWidth+v.value>=V.scrollWidth&&t.lastScrollLeft-V.scrollLeft<0&&E.timeStamp-t.lastScrollToLowerTime>200&&(i("scrolltolower",E,{direction:"right"}),t.lastScrollToLowerTime=E.timeStamp)),t.lastScrollTop=V.scrollTop,t.lastScrollLeft=V.scrollLeft}function h(E){_.value&&(e.scrollWithAnimation?S(E,"y"):a.value.scrollTop=E)}function p(E){g.value&&(e.scrollWithAnimation?S(E,"x"):a.value.scrollLeft=E)}function C(E){if(E){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(E)){console.error(`id error: scroll-into-view=${E}`);return}let V=r.value.querySelector("#"+E);if(V){let I=a.value.getBoundingClientRect(),M=V.getBoundingClientRect();if(g.value){let F=M.left-I.left,B=a.value.scrollLeft+F;e.scrollWithAnimation?S(B,"x"):a.value.scrollLeft=B}if(_.value){let F=M.top-I.top,B=a.value.scrollTop+F;e.scrollWithAnimation?S(B,"y"):a.value.scrollTop=B}}}}function T(E,V){s.value.style.transition="",s.value.style.webkitTransition="",s.value.style.transform="",s.value.style.webkitTransform="";let I=a.value;V==="x"?(I.style.overflowX=g.value?"auto":"hidden",I.scrollLeft=E):V==="y"&&(I.style.overflowY=_.value?"auto":"hidden",I.scrollTop=E),s.value.removeEventListener("transitionend",f),s.value.removeEventListener("webkitTransitionEnd",f)}function w(E){if(e.refresherEnabled){switch(E){case"refreshing":t.refresherHeight=e.refresherThreshold,c||(c=!0,i("refresherpulling",{},{deltaY:t.refresherHeight,dy:t.refresherHeight}),i("refresherrefresh",{},{dy:N.y-A.y}),l("update:refresherTriggered",!0));break;case"restore":case"refresherabort":c=!1,t.refresherHeight=u=0,E==="restore"&&(d=!1,i("refresherrestore",{},{dy:N.y-A.y})),E==="refresherabort"&&d&&(d=!1,i("refresherabort",{},{dy:N.y-A.y}));break}t.refreshState=E}}let A={x:0,y:0},N={y:e.refresherThreshold};return Vue.onMounted(()=>{Vue.nextTick(()=>{h(n.value),p(o.value)}),C(e.scrollIntoView);let E=function(k){k.preventDefault(),k.stopPropagation(),y(k)},V=null,I=function(k){if(A===null)return;let B=k.touches[0].pageX,z=k.touches[0].pageY,x=a.value;if(Math.abs(B-A.x)>Math.abs(z-A.y))if(g.value){if(x.scrollLeft===0&&B>A.x){V=!1;return}else if(x.scrollWidth===x.offsetWidth+x.scrollLeft&&B<A.x){V=!1;return}V=!0}else V=!1;else if(_.value)if(x.scrollTop===0&&z>A.y)V=!1,e.refresherEnabled&&k.cancelable!==!1&&k.preventDefault();else if(x.scrollHeight===x.offsetHeight+x.scrollTop&&z<A.y){V=!1;return}else V=!0;else V=!1;if(V&&k.stopPropagation(),x.scrollTop===0&&k.touches.length===1&&w("pulling"),e.refresherEnabled&&t.refreshState==="pulling"){const P=z-A.y;u===0&&(u=z),c?(t.refresherHeight=P+e.refresherThreshold,d=!1):(t.refresherHeight=z-u,t.refresherHeight>0&&(d=!0,i("refresherpulling",k,{deltaY:P,dy:P})))}},M=function(k){k.touches.length===1&&(A={x:k.touches[0].pageX,y:k.touches[0].pageY})},F=function(k){N={x:k.changedTouches[0].pageX,y:k.changedTouches[0].pageY},t.refresherHeight>=e.refresherThreshold?w("refreshing"):w("refresherabort"),A={x:0,y:0},N={x:0,y:e.refresherThreshold}};a.value.addEventListener("touchstart",M,Ru),a.value.addEventListener("touchmove",I,It(!1)),a.value.addEventListener("scroll",E,It(!1)),a.value.addEventListener("touchend",F,Ru),Vue.onBeforeUnmount(()=>{a.value.removeEventListener("touchstart",M),a.value.removeEventListener("touchmove",I),a.value.removeEventListener("scroll",E),a.value.removeEventListener("touchend",F)})}),Vue.onActivated(()=>{_.value&&(a.value.scrollTop=t.lastScrollTop),g.value&&(a.value.scrollLeft=t.lastScrollLeft)}),Vue.watch(n,E=>{h(E)}),Vue.watch(o,E=>{p(E)}),Vue.watch(()=>e.scrollIntoView,E=>{C(E)}),Vue.watch(()=>e.refresherTriggered,E=>{E===!0?w("refreshing"):E===!1&&w("restore")}),{realScrollX:g,realScrollY:_,_scrollTopChanged:h,_scrollLeftChanged:p}}const zS=X({name:"Slider",props:{name:{type:String,default:""},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0},step:{type:[Number,String],default:1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#e9e9e9"},backgroundColor:{type:String,default:"#e9e9e9"},activeColor:{type:String,default:"#007aff"},selectedColor:{type:String,default:"#007aff"},blockColor:{type:String,default:"#ffffff"},blockSize:{type:[Number,String],default:28},showValue:{type:[Boolean,String],default:!1}},emits:["changing","change"],setup(e,{emit:t}){const n=Vue.ref(null),o=Vue.ref(null),i=Vue.ref(null),r=Vue.ref(Number(e.value));Vue.watch(()=>e.value,u=>{r.value=Number(u)});const a=pe(n,t),s=WS(e,r),{_onClick:l,_onTrack:c}=qS(e,r,n,o,a);return Vue.onMounted(()=>{In(i.value,c)}),()=>{const{setBgColor:u,setBlockBg:d,setActiveColor:f,setBlockStyle:g}=s;return Vue.createVNode("uni-slider",{ref:n,onClick:oe(l)},[Vue.createVNode("div",{class:"uni-slider-wrapper"},[Vue.createVNode("div",{class:"uni-slider-tap-area"},[Vue.createVNode("div",{style:u.value,class:"uni-slider-handle-wrapper"},[Vue.createVNode("div",{ref:i,style:d.value,class:"uni-slider-handle"},null,4),Vue.createVNode("div",{style:g.value,class:"uni-slider-thumb"},null,4),Vue.createVNode("div",{style:f.value,class:"uni-slider-track"},null,4)],4)]),Vue.withDirectives(Vue.createVNode("span",{ref:o,class:"uni-slider-value"},[r.value],512),[[Vue.vShow,e.showValue]])])],8,["onClick"])}}}),HS=(e,t,n)=>(n=Number(n),t=Number(t),100*(e-t)/(n-t)+"%");function WS(e,t){const n=()=>HS(t.value,e.min,e.max),o=()=>e.backgroundColor!=="#e9e9e9"?e.backgroundColor:e.color!=="#007aff"?e.color:"#007aff",i=()=>e.activeColor!=="#007aff"?e.activeColor:e.selectedColor!=="#e9e9e9"?e.selectedColor:"#e9e9e9";return{setBgColor:Vue.computed(()=>({backgroundColor:o()})),setBlockBg:Vue.computed(()=>({left:n()})),setActiveColor:Vue.computed(()=>({backgroundColor:i(),width:n()})),setBlockStyle:Vue.computed(()=>({width:e.blockSize+"px",height:e.blockSize+"px",marginLeft:-e.blockSize/2+"px",marginTop:-e.blockSize/2+"px",left:n(),backgroundColor:e.blockColor}))}}function qS(e,t,n,o,i){const r=u=>{e.disabled||(s(u),i("change",u,{value:t.value}))},a=u=>{const d=Number(e.max),f=Number(e.min),g=Number(e.step);return u<f?f:u>d?d:GS.mul.call(Math.round((u-f)/g),g)+f},s=u=>{const d=Number(e.max),f=Number(e.min),g=o.value,_=getComputedStyle(g,null).marginLeft;let m=g.offsetWidth;m=m+parseInt(_);const v=n.value,S=v.offsetWidth-(e.showValue?m:0),y=v.getBoundingClientRect().left,h=(u.x-y)*(d-f)/S+f;t.value=a(h)},l=u=>{if(!e.disabled)return u.detail.state==="move"?(s({x:u.detail.x}),i("changing",u,{value:t.value}),!1):u.detail.state==="end"&&i("change",u,{value:t.value})},c=Vue.inject(Fe,!1);if(c){const u={reset:()=>t.value=Number(e.min),submit:()=>{const d=["",null];return e.name!==""&&(d[0]=e.name,d[1]=t.value),d}};c.addField(u),Vue.onBeforeUnmount(()=>{c.removeField(u)})}return{_onClick:r,_onTrack:l}}var GS={mul:function(e){let t=0,n=this.toString(),o=e.toString();try{t+=n.split(".")[1].length}catch(i){}try{t+=o.split(".")[1].length}catch(i){}return Number(n.replace(".",""))*Number(o.replace(".",""))/Math.pow(10,t)}};const jS={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)"}};function YS(e){const t=Vue.computed(()=>{const r=Number(e.interval);return isNaN(r)?5e3:r}),n=Vue.computed(()=>{const r=Number(e.duration);return isNaN(r)?500:r}),o=Vue.computed(()=>{const r=Math.round(e.displayMultipleItems);return isNaN(r)?1:r});return Vue.reactive({interval:t,duration:n,displayMultipleItems:o,current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1})}function XS(e,t,n,o,i,r){function a(){s&&(clearTimeout(s),s=null)}let s=null,l=!0,c=0,u=1,d=null,f=!1,g=0,_,m="",v;const S=Vue.computed(()=>n.value.length>t.displayMultipleItems),y=Vue.computed(()=>e.circular&&S.value);function h(k){if(!l)for(let B=n.value,z=B.length,x=k+t.displayMultipleItems,P=0;P<z;P++){const O=B[P],D=Math.floor(k/z)*z+P,W=D+z,q=D-z,$=Math.max(k-(D+1),D-x,0),ee=Math.max(k-(W+1),W-x,0),de=Math.max(k-(q+1),q-x,0),Me=Math.min($,ee,de),De=[D,W,q][[$,ee,de].indexOf(Me)];O.updatePosition(De,e.vertical)}}function p(k){Math.floor(2*c)===Math.floor(2*k)&&Math.ceil(2*c)===Math.ceil(2*k)||y.value&&h(k);const B=e.vertical?"0":100*-k*u+"%",z=e.vertical?100*-k*u+"%":"0",x="translate("+B+", "+z+") translateZ(0)",P=o.value;if(P&&(P.style.webkitTransform=x,P.style.transform=x),c=k,!_){if(k%1===0)return;_=k}k-=Math.floor(_);const O=n.value;k<=-(O.length-1)?k+=O.length:k>=O.length&&(k-=O.length),k=_%1>.5||_<0?k-1:k,r("transition",{},{dx:e.vertical?0:k*P.offsetWidth,dy:e.vertical?k*P.offsetHeight:0})}function C(){d&&(p(d.toPos),d=null)}function T(k){const B=n.value.length;if(!B)return-1;const z=(Math.round(k)%B+B)%B;if(y.value){if(B<=t.displayMultipleItems)return 0}else if(z>B-t.displayMultipleItems)return B-t.displayMultipleItems;return z}function w(){d=null}function A(){if(!d){f=!1;return}const k=d,B=k.toPos,z=k.acc,x=k.endTime,P=k.source,O=x-Date.now();if(O<=0){p(B),d=null,f=!1,_=null;const q=n.value[t.current];if(q){const $=q.getItemId();r("animationfinish",{},{current:t.current,currentItemId:$,source:P})}return}const D=z*O*O/2,W=B+D;p(W),v=requestAnimationFrame(A)}function N(k,B,z){w();const x=t.duration,P=n.value.length;let O=c;if(y.value)if(z<0){for(;O<k;)O+=P;for(;O-P>k;)O-=P}else if(z>0){for(;O>k;)O-=P;for(;O+P<k;)O+=P;O+P-k<k-O&&(O+=P)}else{for(;O+P<k;)O+=P;for(;O-P>k;)O-=P;O+P-k<k-O&&(O+=P)}else B==="click"&&(k=k+t.displayMultipleItems-1<P?k:0);d={toPos:k,acc:2*(O-k)/(x*x),endTime:Date.now()+x,source:B},f||(f=!0,v=requestAnimationFrame(A))}function E(){a();const k=n.value,B=function(){s=null,m="autoplay",y.value?t.current=T(t.current+1):t.current=t.current+t.displayMultipleItems<k.length?t.current+1:0,N(t.current,"autoplay",y.value?1:0),s=setTimeout(B,t.interval)};l||k.length<=t.displayMultipleItems||(s=setTimeout(B,t.interval))}function V(){a(),C();const k=n.value;for(let P=0;P<k.length;P++)k[P].updatePosition(P,e.vertical);u=1;const B=o.value;if(t.displayMultipleItems===1&&k.length){const P=k[0].getBoundingClientRect(),O=B.getBoundingClientRect();u=P.width/O.width,u>0&&u<1||(u=1)}const z=c;c=-2;const x=t.current;x>=0?(l=!1,t.userTracking?(p(z+x-g),g=x):(p(x),e.autoplay&&E())):(l=!0,p(-t.displayMultipleItems-1))}Vue.watch([()=>e.current,()=>e.currentItemId,()=>[...n.value]],()=>{let k=-1;if(e.currentItemId){for(let B=0,z=n.value;B<z.length;B++)if(z[B].getItemId()===e.currentItemId){k=B;break}}k<0&&(k=Math.round(e.current)||0),k=k<0?0:k,t.current!==k&&(m="",t.current=k)}),Vue.watch([()=>e.vertical,()=>y.value,()=>t.displayMultipleItems,()=>[...n.value]],V),Vue.watch(()=>t.interval,()=>{s&&(a(),E())});function I(k,B){const z=m;m="";const x=n.value;if(!z){const O=x.length;N(k,"",y.value&&B+(O-k)%O>O/2?1:0)}const P=x[k];if(P){const O=t.currentItemId=P.getItemId();r("change",{},{current:t.current,currentItemId:O,source:z})}}Vue.watch(()=>t.current,(k,B)=>{I(k,B),i("update:current",k)}),Vue.watch(()=>t.currentItemId,k=>{i("update:currentItemId",k)});function M(k){k?E():a()}Vue.watch(()=>e.autoplay&&!t.userTracking,M),M(e.autoplay&&!t.userTracking),Vue.onMounted(()=>{let k=!1,B=0,z=0;function x(){a(),g=c,B=0,z=Date.now(),w()}function P(D){const W=z;z=Date.now();const $=n.value.length-t.displayMultipleItems;function ee(ut){return .5-.25/(ut+.5)}function de(ut,Tt){let ve=g+ut;B=.6*B+.4*Tt,y.value||(ve<0||ve>$)&&(ve<0?ve=-ee(-ve):ve>$&&(ve=$+ee(ve-$)),B=0),p(ve)}const Me=z-W||1,De=o.value;e.vertical?de(-D.dy/De.offsetHeight,-D.ddy/Me):de(-D.dx/De.offsetWidth,-D.ddx/Me)}function O(D){t.userTracking=!1;const W=B/Math.abs(B);let q=0;!D&&Math.abs(B)>.2&&(q=.5*W);const $=T(c+q);D?p(g):(m="touch",t.current=$,N($,"touch",q!==0?q:$===0&&y.value&&c>=1?1:0))}In(o.value,D=>{if(!e.disableTouch&&!l){if(D.detail.state==="start")return t.userTracking=!0,k=!1,x();if(D.detail.state==="end")return O(!1);if(D.detail.state==="cancel")return O(!0);if(t.userTracking){if(!k){k=!0;const W=Math.abs(D.detail.dx),q=Math.abs(D.detail.dy);if((W>=q&&e.vertical||W<=q&&!e.vertical)&&(t.userTracking=!1),!t.userTracking){e.autoplay&&E();return}}return P(D.detail),!1}}})}),Vue.onUnmounted(()=>{a(),cancelAnimationFrame(v)});function F(k){N(t.current=k,m="click",y.value?1:0)}return{onSwiperDotClick:F,circularEnabled:y,swiperEnabled:S}}const Bu=X({name:"Swiper",props:jS,emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,{slots:t,emit:n}){const o=Vue.ref(null),i=pe(o,n),r=Vue.ref(null),a=Vue.ref(null),s=YS(e),l=Vue.computed(()=>{let p={};return(e.nextMargin||e.previousMargin)&&(p=e.vertical?{left:0,right:0,top:Ge(e.previousMargin,!0),bottom:Ge(e.nextMargin,!0)}:{top:0,bottom:0,left:Ge(e.previousMargin,!0),right:Ge(e.nextMargin,!0)}),p}),c=Vue.computed(()=>{const p=Math.abs(100/s.displayMultipleItems)+"%";return{width:e.vertical?"100%":p,height:e.vertical?p:"100%"}});let u=[];const d=[],f=Vue.ref([]);function g(){const p=[];for(let C=0;C<u.length;C++){let T=u[C];T instanceof Element||(T=T.el);const w=d.find(A=>T===A.rootRef.value);w&&p.push(Vue.markRaw(w))}f.value=p}const _=function(p){d.push(p),g()};Vue.provide("addSwiperContext",_);const m=function(p){const C=d.indexOf(p);C>=0&&(d.splice(C,1),g())};Vue.provide("removeSwiperContext",m);const{onSwiperDotClick:v,circularEnabled:S,swiperEnabled:y}=XS(e,s,f,a,n,i);let h=()=>null;return h=JS(o,e,s,v,f,S,y),()=>{const p=t.default&&t.default();return u=qt(p),Vue.createVNode("uni-swiper",{ref:o},[Vue.createVNode("div",{ref:r,class:"uni-swiper-wrapper"},[Vue.createVNode("div",{class:"uni-swiper-slides",style:l.value},[Vue.createVNode("div",{ref:a,class:"uni-swiper-slide-frame",style:c.value},[p],4)],4),e.indicatorDots&&Vue.createVNode("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[f.value.map((C,T,w)=>Vue.createVNode("div",{onClick:()=>v(T),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":T<s.current+s.displayMultipleItems&&T>=s.current||T<s.current+s.displayMultipleItems-w.length},style:{background:T===s.current?e.indicatorActiveColor:e.indicatorColor}},null,14,["onClick"]))],2),h()],512)],512)}}}),JS=(e,t,n,o,i,r,a)=>{let s=!1,l=!1,c=!1,u=Vue.ref(!1);Vue.watchEffect(()=>{s=t.navigation==="auto",u.value=t.navigation!==!0||s,y()}),Vue.watchEffect(()=>{const p=i.value.length,C=!r.value;l=n.current===0&&C,c=n.current===p-1&&C||C&&n.current+n.displayMultipleItems>=p,a.value||(l=!0,c=!0,s&&(u.value=!0))});function d(p,C){const T=p.currentTarget;T&&(T.style.backgroundColor=C==="over"?t.navigationActiveColor:"")}const f={onMouseover:p=>d(p,"over"),onMouseout:p=>d(p,"out")};function g(p,C,T){if(p.stopPropagation(),T)return;const w=i.value.length;let A=n.current;switch(C){case"prev":A--,A<0&&r.value&&(A=w-1);break;case"next":A++,A>=w&&r.value&&(A=0);break}o(A)}const _=()=>ce(gn,t.navigationColor,26);let m;const v=p=>{clearTimeout(m);const{clientX:C,clientY:T}=p,{left:w,right:A,top:N,bottom:E,width:V,height:I}=e.value.getBoundingClientRect();let M=!1;if(t.vertical?M=!(T-N<I/3||E-T<I/3):M=!(C-w<V/3||A-C<V/3),M)return m=setTimeout(()=>{u.value=M},300);u.value=M},S=()=>{u.value=!0};function y(){e.value&&(e.value.removeEventListener("mousemove",v),e.value.removeEventListener("mouseleave",S),s&&(e.value.addEventListener("mousemove",v),e.value.addEventListener("mouseleave",S)))}Vue.onMounted(y);function h(){const p={"uni-swiper-navigation-hide":u.value,"uni-swiper-navigation-vertical":t.vertical};return t.navigation?Vue.createVNode(Vue.Fragment,null,[Vue.createVNode("div",Vue.mergeProps({class:["uni-swiper-navigation uni-swiper-navigation-prev",L({"uni-swiper-navigation-disabled":l},p)],onClick:C=>g(C,"prev",l)},f),[_()],16,["onClick"]),Vue.createVNode("div",Vue.mergeProps({class:["uni-swiper-navigation uni-swiper-navigation-next",L({"uni-swiper-navigation-disabled":c},p)],onClick:C=>g(C,"next",c)},f),[_()],16,["onClick"])]):null}return h},Du=X({name:"SwiperItem",props:{itemId:{type:String,default:""}},setup(e,{slots:t}){const n=Vue.ref(null),o={rootRef:n,getItemId(){return e.itemId},getBoundingClientRect(){return n.value.getBoundingClientRect()},updatePosition(i,r){const a=r?"0":100*i+"%",s=r?100*i+"%":"0",l=n.value,c=`translate(${a},${s}) translateZ(0)`;l&&(l.style.webkitTransform=c,l.style.transform=c)}};return Vue.onMounted(()=>{const i=Vue.inject("addSwiperContext");i&&i(o)}),Vue.onUnmounted(()=>{const i=Vue.inject("removeSwiperContext");i&&i(o)}),()=>Vue.createVNode("uni-swiper-item",{ref:n,style:{position:"absolute",width:"100%",height:"100%"}},[t.default&&t.default()],512)}}),KS=X({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=Vue.ref(null),o=Vue.ref(e.checked),i=QS(e,o),r=pe(n,t);Vue.watch(()=>e.checked,s=>{o.value=s});const a=s=>{e.disabled||(o.value=!o.value,r("change",s,{value:o.value}))};return i&&(i.addHandler(a),Vue.onBeforeUnmount(()=>{i.removeHandler(a)})),lo(e,{"label-click":a}),()=>{const{color:s,type:l}=e,c=mt(e,"disabled"),u={};s&&o.value&&(u.backgroundColor=s,u.borderColor=s);let d;return d=o.value,Vue.createVNode("uni-switch",Vue.mergeProps({id:e.id,ref:n},c,{onClick:a}),[Vue.createVNode("div",{class:"uni-switch-wrapper"},[Vue.withDirectives(Vue.createVNode("div",{class:["uni-switch-input",[o.value?"uni-switch-input-checked":""]],style:u},null,6),[[Vue.vShow,l==="switch"]]),Vue.withDirectives(Vue.createVNode("div",{class:"uni-checkbox-input"},[d?ce(hn,e.color,22):""],512),[[Vue.vShow,l==="checkbox"]])])],16,["id","onClick"])}}});function QS(e,t){const n=Vue.inject(Fe,!1),o=Vue.inject(mn,!1),i={submit:()=>{const r=["",null];return e.name&&(r[0]=e.name,r[1]=t.value),r},reset:()=>{t.value=!1}};return n&&(n.addField(i),Vue.onUnmounted(()=>{n.removeField(i)})),o}const xn={ensp:" ",emsp:" ",nbsp:" "};function ZS(e,{space:t,decode:n}){let o="",i=!1;for(let r of e)t&&xn[t]&&r===" "&&(r=xn[t]),i?(r==="n"?o+=kt:r==="\\"?o+="\\":o+="\\"+r,i=!1):r==="\\"?i=!0:o+=r;return n?o.replace(/ /g,xn.nbsp).replace(/ /g,xn.ensp).replace(/ /g,xn.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"):o}function eT(e,t){return ZS(e,t).split(kt)}const tT=X({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=Vue.ref(null);return()=>{const o=[];return t.default&&t.default().forEach(i=>{if(i.shapeFlag&8&&i.type!==Vue.Comment){const r=eT(i.children,{space:e.space,decode:e.decode}),a=r.length-1;r.forEach((s,l)=>{l===0&&!s||o.push(Vue.createTextVNode(s)),l!==a&&o.push(Vue.createVNode("br"))})}else o.push(i)}),Vue.createVNode("uni-text",{ref:n,selectable:e.selectable?!0:null},[Vue.createVNode("span",null,o)],8,["selectable"])}}}),nT=L({},gu,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator(e){return Uu.concat("return").includes(e)}}});let Br=!1;const Uu=["done","go","next","search","send"];function oT(){const e="(prefers-color-scheme: dark)";Br=String(navigator.platform).indexOf("iP")===0&&String(navigator.vendor).indexOf("Apple")===0&&window.matchMedia(e).media!==e}const iT=X({name:"Textarea",props:nT,emits:["confirm","linechange",...pu],setup(e,{emit:t,expose:n}){const o=Vue.ref(null),i=Vue.ref(null),{fieldRef:r,state:a,scopedAttrsState:s,fixDisabledColor:l,trigger:c}=mu(e,o,t),u=Vue.computed(()=>a.value.split(kt)),d=Vue.computed(()=>Uu.includes(e.confirmType)),f=Vue.ref(0),g=Vue.ref(null);Vue.watch(()=>f.value,y=>{const h=o.value,p=g.value,C=i.value;let T=parseFloat(getComputedStyle(h).lineHeight);isNaN(T)&&(T=p.offsetHeight);var w=Math.round(y/T);c("linechange",{},{height:y,heightRpx:750/window.innerWidth*y,lineCount:w}),e.autoHeight&&(C.style.height=y+"px")});function _({height:y}){f.value=y}function m(y){c("confirm",y,{value:a.value})}function v(y){y.key==="Enter"&&d.value&&y.preventDefault()}function S(y){if(y.key==="Enter"&&d.value){m(y);const h=y.target;!e.confirmHold&&h.blur()}}return oT(),n({$triggerInput:y=>{t("update:modelValue",y.value),t("update:value",y.value),a.value=y.value}}),()=>{let y=e.disabled&&l?Vue.createVNode("textarea",{key:"disabled-textarea",ref:r,value:a.value,tabindex:"-1",readonly:!!e.disabled,maxlength:a.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Br},style:wa({overflowY:e.autoHeight?"hidden":"auto"},e.cursorColor&&{caretColor:e.cursorColor}),onFocus:h=>h.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):Vue.createVNode("textarea",{key:"textarea",ref:r,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":Br},style:wa({overflowY:e.autoHeight?"hidden":"auto"},e.cursorColor&&{caretColor:e.cursorColor}),onKeydown:v,onKeyup:S},null,46,["value","disabled","maxlength","enterkeyhint","inputmode","onKeydown","onKeyup"]);return Vue.createVNode("uni-textarea",{ref:o,"auto-height":e.autoHeight},[Vue.createVNode("div",{ref:i,class:"uni-textarea-wrapper"},[Vue.withDirectives(Vue.createVNode("div",Vue.mergeProps(s.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Vue.vShow,!a.value.length]]),Vue.createVNode("div",{ref:g,class:"uni-textarea-line"},[" "],512),Vue.createVNode("div",{class:"uni-textarea-compute"},[u.value.map(h=>Vue.createVNode("div",null,[h.trim()?h:"."])),Vue.createVNode(je,{initial:!0,onResize:_},null,8,["initial","onResize"])]),e.confirmType==="search"?Vue.createVNode("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[y],40,["onSubmit"]):y],512)],8,["auto-height"])}}}),rT=X({name:"View",props:L({},r0),setup(e,{slots:t}){const n=Vue.ref(null),{hovering:o,binding:i}=Di(e);return()=>{const r=e.hoverClass;return r&&r!=="none"?Vue.createVNode("uni-view",Vue.mergeProps({class:o.value?r:"",ref:n},i),[Vue.renderSlot(t,"default")],16):Vue.createVNode("uni-view",{ref:n},[Vue.renderSlot(t,"default")],512)}}});function jo(e,t){if(t||(t=e.id),!!t)return e.$options.name.toLowerCase()+"."+t}function Fu(e,t,n){e&&os(n||pt(),e,({type:o,data:i},r)=>{t(o,i,r)})}function $u(e,t){e&&Dp(t||pt(),e)}function Gt(e,t,n,o){const r=Vue.getCurrentInstance().proxy;Vue.onMounted(()=>{Fu(t||jo(r),e,o),(n||!t)&&Vue.watch(()=>r.id,(a,s)=>{Fu(jo(r,a),e,o),$u(s&&jo(r,s))})}),Vue.onBeforeUnmount(()=>{$u(t||jo(r),o)})}function aT(e,t){Vue.onMounted(()=>UniViewJSBridge.on(e,t)),Vue.onBeforeUnmount(()=>UniViewJSBridge.off(e))}let sT=0;function Yo(e){const t=ao(),o=Vue.getCurrentInstance().proxy,i=o.$options.name.toLowerCase(),r=e||o.id||`context${sT++}`;return Vue.onMounted(()=>{const a=o.$el;a.__uniContextInfo={id:r,type:i,page:t}}),`${i}.${r}`}function lT(e){return e.__uniContextInfo}function zu(e,t,n,o){G(t)&&Vue.injectHook(e,t.bind(n),o)}function cT(e,t,n){const o=e.mpType||n.$mpType;if(!(!o||o==="component"||o==="page"&&t.renderer==="component")&&(Object.keys(e).forEach(i=>{if(Zg(i,e[i],!1)){const r=e[i];K(r)?r.forEach(a=>zu(i,a,n,t)):zu(i,r,n,t)}}),o==="page")){t.__isVisible=!0;try{let i=t.attrs.__pageQuery;re(n,Va,i),delete t.attrs.__pageQuery;const r=n.$page;(r==null?void 0:r.openType)!=="preloadPage"&&re(n,dt)}catch(i){console.error(i.message+kt+i.stack)}}}function uT(e,t,n){cT(e,t,n)}function dT(e,t,n){return e[t]=n}function fT(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function hT(e){const t=e.config.errorHandler;return function(o,i,r){t&&t(o,i,r);const a=e._instance;if(!a||!a.proxy)throw o;a[ht]?re(a.proxy,ht,o):Vue.logError(o,r,i?i.$.vnode:null,!1)}}function gT(e,t){return e?[...new Set([].concat(e,t))]:t}function pT(e){qa.forEach(t=>{e[t]=gT})}let Dr;const Xo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",mT=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;typeof atob!="function"?Dr=function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!mT.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");e+="==".slice(2-(e.length&3));for(var t,n="",o,i,r=0;r<e.length;)t=Xo.indexOf(e.charAt(r++))<<18|Xo.indexOf(e.charAt(r++))<<12|(o=Xo.indexOf(e.charAt(r++)))<<6|(i=Xo.indexOf(e.charAt(r++))),n+=o===64?String.fromCharCode(t>>16&255):i===64?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,t&255);return n}:Dr=atob;function vT(e){return decodeURIComponent(Dr(e).split("").map(function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function Ur(){const e=uni.getStorageSync("uni_id_token")||"",t=e.split(".");if(!e||t.length!==3)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse(vT(t[1]))}catch(o){throw new Error("获取当前用户信息出错,详细错误信息为:"+o.message)}return n.tokenExpired=n.exp*1e3,delete n.exp,delete n.iat,n}function _T(e){e.uniIDHasRole=function(t){const{role:n}=Ur();return n.indexOf(t)>-1},e.uniIDHasPermission=function(t){const{permission:n}=Ur();return this.uniIDHasRole("admin")||n.indexOf(t)>-1},e.uniIDTokenValid=function(){const{tokenExpired:t}=Ur();return t>Date.now()}}function yT(e){const t=e.config;t.errorHandler=tp(e,hT),pT(t.optionMergeStrategies);const n=t.globalProperties;__UNI_FEATURE_UNI_CLOUD__&&_T(n),n.$set=dT,n.$applyOptions=uT,n.$callMethod=fT,ep(e)}function bT(e){const t=VueRouter.createRouter(CT());t.beforeEach((n,o)=>{n&&o&&n.meta.isTabBar&&o.meta.isTabBar&&ST(o.meta.tabBarIndex)}),e.router=t,e.use(t)}let Hu=Object.create(null);function wT(e){return Hu[e]}function ST(e){typeof window!="undefined"&&(Hu[e]={left:window.pageXOffset,top:window.pageYOffset})}const TT=(e,t,n)=>{if(n)return n;if(e&&t&&e.meta.isTabBar&&t.meta.isTabBar){const o=wT(e.meta.tabBarIndex);if(o)return o}return{left:0,top:0}};function CT(){return{history:AT(),strict:!!__uniConfig.router.strict,routes:__uniRoutes,scrollBehavior:TT}}function VT(e=1){const t=$t(),n=t.length-1,o=n-e;for(let i=n;i>o;i--){const r=nt(t[i]);Oo(Ro(r.path,r.id),!1)}}function AT(){let{routerBase:e}=__uniConfig.router;e==="/"&&(e="");const t=__UNI_FEATURE_ROUTER_MODE__==="history"?VueRouter.createWebHistory(e):VueRouter.createWebHashHistory(e);return t.listen((n,o,i)=>{i.direction==="back"&&VT(Math.abs(i.delta))}),t}const Wu={install(e){yT(e),Im(e),Qm(e),e.config.warnHandler||(e.config.warnHandler=ET),__UNI_FEATURE_PAGES__&&bT(e)}};function ET(e,t,n){if(t){if(t.$.type.name==="PageMetaHead")return;const r=t.$.parent;if(r&&r.type.name==="PageMeta")return}const o=[`[Vue warn]: ${e}`];n.length&&o.push(`
|
|
4
|
-
`,n),console.warn(...o)}const kT={class:"uni-async-loading"},IT=Vue.createVNode("i",{class:"uni-loading"},null,-1),Jo=ge({name:"AsyncLoading",render(){return Vue.openBlock(),Vue.createBlock("div",kT,[IT])}});function NT(){window.location.reload()}const Ko=ge({name:"AsyncError",props:["error"],setup(){Sp();const{t:e}=U();return()=>Vue.createVNode("div",{class:"uni-async-error",onClick:NT},[e("uni.async.error")],8,["onClick"])}});let jt;function qu(){return jt}function xT(e){jt=e,Object.defineProperty(jt.$.ctx,"$children",{get(){return $t().map(n=>n.$vm)}});const t=jt.$.appContext.app;t.component(Jo.name)||t.component(Jo.name,Jo),t.component(Ko.name)||t.component(Ko.name,Ko),Fm(jt),Zm(jt),Um(),pm()}function Gu(e,{clone:t,init:n,setup:o,before:i}){t&&(e=L({},e)),i&&i(e);const r=e.setup;return e.setup=(a,s)=>{const l=Vue.getCurrentInstance();if(n(l.proxy),o(l),r)return r(a,s)},e}function Fr(e,t){return e&&(e.__esModule||e[Symbol.toStringTag]==="Module")?Gu(e.default,t):Gu(e,t)}function MT(e,t){return Fr(e,{init:n=>{n.$page={id:t}},setup(n){n.$pageInstance=n}})}function PT(e){return Fr(e,{clone:!0,init:bb,setup(t){t.$pageInstance=t;const n=vn(),o=za(n.query);t.attrs.__pageQuery=o,nt(t.proxy).options=o,t.proxy.options=o;const i=Ot();return Ec(i),t.onReachBottom=Vue.reactive([]),t.onPageScroll=Vue.reactive([]),Vue.watch([t.onReachBottom,t.onPageScroll],()=>{const r=gt();t.proxy===r&&xc(t,i)},{once:!0}),Vue.onBeforeMount(()=>{Ic(t,i)}),Vue.onMounted(()=>{Vb(t);const{onReady:r}=t;r&&Et(r),ju(n)}),Vue.onBeforeActivate(()=>{if(!t.__isVisible){Ic(t,i),t.__isVisible=!0;const{onShow:r}=t;r&&Et(r),Vue.nextTick(()=>{ju(n)})}}),Vue.onBeforeDeactivate(()=>{if(t.__isVisible&&!t.__isUnload){t.__isVisible=!1;{const{onHide:r}=t;r&&Et(r)}}}),Lp(i.id),Vue.onBeforeUnmount(()=>{Bp(i.id)}),o}})}function OT(e){return Fr(e,{init:xT,setup(t){const n=vn(),o=()=>{Wv(t);const{onLaunch:i,onShow:r,onPageNotFound:a}=t,s=n.path.slice(1),l=Jb({path:s||__uniRoutes[0].meta.route,query:za(n.query)});if(i&&Et(i,l),r&&Et(r,l),__UNI_FEATURE_PAGES__&&!n.matched.length){const c={notFound:!0,openType:"appLaunch",path:n.path,query:{},scene:1001};Cc(),a&&Et(a,c)}};return __UNI_FEATURE_PAGES__?VueRouter.useRouter().isReady().then(o):Vue.onBeforeMount(o),Vue.onMounted(()=>{window.addEventListener("resize",Ci(RT,50,{setTimeout,clearTimeout})),window.addEventListener("message",LT),document.addEventListener("visibilitychange",BT),DT()}),n.query},before(t){t.mpType="app";const{setup:n}=t,o=()=>(Vue.openBlock(),Vue.createBlock(Jf));t.setup=(i,r)=>{const a=n&&n(i,r);return G(a)?o:a},t.render=o}})}function RT(){const{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}=uni.getSystemInfoSync(),r=Math.abs(Number(window.orientation))===90?"landscape":"portrait";UniServiceJSBridge.emit(Yn,{deviceOrientation:r,size:{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}})}function LT(e){se(e.data)&&e.data.type===xg&&UniServiceJSBridge.emit(Ra,e.data.data,e.data.pageId)}function BT(){const{emit:e}=UniServiceJSBridge;document.visibilityState==="visible"?e(Pa,Gc()):e(Oa)}function DT(){let e=null;try{e=window.matchMedia("(prefers-color-scheme: dark)")}catch(t){}if(e){let t=n=>{UniServiceJSBridge.emit(Xe,{theme:n.matches?"dark":"light"})};e.addEventListener?e.addEventListener("change",t):e.addListener(t)}}function ju(e){const{tabBarText:t,tabBarIndex:n,route:o}=e.meta;t&&re("onTabItemTap",{index:n,text:t,pagePath:o})}function Qo(e){e=e>0&&e<1/0?e:0;const t=Math.floor(e/3600),n=Math.floor(e%3600/60),o=Math.floor(e%3600%60),i=(t<10?"0":"")+t,r=(n<10?"0":"")+n,a=(o<10?"0":"")+o;let s=r+":"+a;return i!=="00"&&(s=i+":"+s),s}function UT(e,t,n){const o=Vue.reactive({seeking:!1,gestureType:"none",volumeOld:0,volumeNew:0,currentTimeOld:0,currentTimeNew:0,toastThin:!1}),i={x:0,y:0};let r=null;const a=()=>{o.gestureType!=="none"&&r!=null||(r=setTimeout(()=>{o.toastThin=!0},500))};let s;function l(){s==null&&(s=setTimeout(()=>{o.toastThin=!1,s=void 0},1e3))}function c(){clearTimeout(s),s=void 0}function u(m){const v=m.targetTouches[0];i.x=v.pageX,i.y=v.pageY,o.gestureType="none",o.volumeOld=0}function d(m){function v(){m.stopPropagation(),m.preventDefault()}n.fullscreen&&v();const S=o.gestureType;if(S==="stop")return;const y=m.targetTouches[0],h=y.pageX,p=y.pageY,C=i,T=t.value;if(S==="progress"?(g(h-C.x),o.seeking=!0):S==="volume"&&_(p-C.y),S==="none")if(Math.abs(h-C.x)>Math.abs(p-C.y)){if(!e.enableProgressGesture){o.gestureType="stop";return}o.gestureType="progress",o.currentTimeOld=o.currentTimeNew=T.currentTime,n.fullscreen||v()}else{if(!e.pageGesture&&!e.vslideGesture){o.gestureType="stop";return}a(),o.gestureType="volume",o.volumeOld=T.volume,n.fullscreen||v()}}function f(m){const v=t.value;o.gestureType!=="none"&&o.gestureType!=="stop"&&(m.stopPropagation(),m.preventDefault()),o.gestureType==="progress"&&o.currentTimeOld!==o.currentTimeNew&&(v.currentTime=o.currentTimeNew),o.gestureType="none"}function g(m){const S=t.value.duration;let y=m/600*S+o.currentTimeOld;y<0?y=0:y>S&&(y=S),o.currentTimeNew=y}function _(m){const v=t.value,S=o.volumeOld;let y;typeof S=="number"&&(y=S-m/200,y<0?y=0:y>1&&(y=1),c(),l(),v.volume=y,o.volumeNew=y)}return{state:o,onTouchstart:u,onTouchmove:d,onTouchend:f}}function FT(e,t,n,o,i){const r=Vue.reactive({fullscreen:!1}),a=/^Apple/.test(navigator.vendor);function s(f,g){g&&document.fullscreenEnabled||l(!!(document.fullscreenElement||document.webkitFullscreenElement))}function l(f){r.fullscreen=f,e("fullscreenchange",{},{fullScreen:f,direction:"vertical"})}function c(f){const g=i.value,_=t.value,m=n.value;let v;f?(document.fullscreenEnabled||document.webkitFullscreenEnabled)&&(!a||o.userAction)?_[document.fullscreenEnabled?"requestFullscreen":"webkitRequestFullscreen"]():m.webkitEnterFullScreen?m.webkitEnterFullScreen():(v=!0,_.remove(),_.classList.add("uni-video-type-fullscreen"),document.body.appendChild(_)):document.fullscreenEnabled||document.webkitFullscreenEnabled?document.fullscreenElement?document.exitFullscreen():document.webkitFullscreenElement&&document.webkitExitFullscreen():m.webkitExitFullScreen?m.webkitExitFullScreen():(v=!0,_.remove(),_.classList.remove("uni-video-type-fullscreen"),g.appendChild(_)),v&&l(f)}function u(){c(!0)}function d(){c(!1)}return Vue.onBeforeUnmount(d),{state:r,onFullscreenChange:s,emitFullscreenChange:l,toggleFullscreen:c,requestFullScreen:u,exitFullScreen:d}}function $T(e,t,n){const o=Vue.ref(null),i=Vue.computed(()=>Q(e.src)),r=Vue.computed(()=>e.muted==="true"||e.muted===!0),a=Vue.reactive({start:!1,src:i,playing:!1,currentTime:0,duration:0,progress:0,buffered:0,muted:r,pauseUpdatingCurrentTime:!1});Vue.watch(()=>i.value,()=>{a.playing=!1,a.currentTime=0}),Vue.watch(()=>a.buffered,T=>{n("progress",{},{buffered:T})}),Vue.watch(()=>r.value,T=>{const w=o.value;w.muted=T});function s({target:T}){a.duration=T.duration}function l(T){const w=Number(e.initialTime)||0,A=T.target;w>0&&(A.currentTime=w),n("loadedmetadata",T,{width:A.videoWidth,height:A.videoHeight,duration:A.duration}),c(T)}function c(T){const w=T.target,A=w.buffered;A.length&&(a.buffered=A.end(A.length-1)/w.duration*100)}function u(T){n("waiting",T,{})}function d(T){a.playing=!1,n("error",T,{})}function f(T){a.start=!0,a.playing=!0,n("play",T,{})}function g(T){a.playing=!1,n("pause",T,{})}function _(T){a.playing=!1,n("ended",T,{})}function m(T){const w=T.target;a.pauseUpdatingCurrentTime||(a.currentTime=w.currentTime);const A=w.currentTime;n("timeupdate",T,{currentTime:A,duration:w.duration})}function v(){const T=o.value;a.playing?T.pause():T.play()}function S(){const T=o.value;a.start=!0,T.play()}function y(){o.value.pause()}function h(T){const w=o.value;T=Number(T),typeof T=="number"&&!isNaN(T)&&(w.currentTime=T)}function p(){h(0),y()}function C(T){const w=o.value;w.playbackRate=T}return{videoRef:o,state:a,play:S,pause:y,stop:p,seek:h,playbackRate:C,toggle:v,onDurationChange:s,onLoadedMetadata:l,onProgress:c,onWaiting:u,onVideoError:d,onPlay:f,onPause:g,onEnded:_,onTimeUpdate:m}}function zT(e,t,n,o){const i=Vue.ref(null),r=Vue.ref(null),a=Vue.computed(()=>e.showCenterPlayBtn&&!t.start),s=Vue.ref(!0),l=Vue.computed(()=>!a.value&&e.controls&&s.value),c=Vue.reactive({seeking:!1,touching:!1,controlsTouching:!1,centerPlayBtnShow:a,controlsShow:l,controlsVisible:s});function u(m){const v=i.value;let S=m.target,y=m.offsetX;for(;S&&S!==v;)y+=S.offsetLeft,S=S.parentNode;const h=v.offsetWidth;let p=0;y>=0&&y<=h&&(p=y/h,n(t.duration*p))}function d(){c.controlsVisible=!c.controlsVisible}let f;function g(){f=setTimeout(()=>{c.controlsVisible=!1},3e3)}function _(){f&&(clearTimeout(f),f=null)}return Vue.onBeforeUnmount(()=>{f&&clearTimeout(f)}),Vue.watch(()=>c.controlsShow&&t.playing&&!c.controlsTouching,m=>{m?g():_()}),Vue.onMounted(()=>{const m=It(!1);let v,S,y=!0,h;const p=r.value;function C(w){const A=w.targetTouches[0],N=A.pageX,E=A.pageY;if(y&&Math.abs(N-v)<Math.abs(E-S)){T(w);return}y=!1;const I=i.value.offsetWidth;let M=h+(N-v)/I*100;M<0?M=0:M>100&&(M=100),t.progress=M,o==null||o(t.duration*M/100),c.seeking=!0,w.preventDefault(),w.stopPropagation()}function T(w){c.controlsTouching=!1,c.touching&&(p.removeEventListener("touchmove",C,m),y||(w.preventDefault(),w.stopPropagation(),n(t.duration*t.progress/100)),c.touching=!1)}p.addEventListener("touchstart",w=>{c.controlsTouching=!0;const A=w.targetTouches[0];v=A.pageX,S=A.pageY,h=t.progress,y=!0,c.touching=!0,p.addEventListener("touchmove",C,m)}),p.addEventListener("touchend",T),p.addEventListener("touchcancel",T)}),{state:c,progressRef:i,ballRef:r,clickProgress:u,toggleControls:d,autoHideStart:g,autoHideEnd:_}}function HT(e,t){const n=Vue.ref(null),o=Vue.reactive({enable:!!e.enableDanmu});let i={time:0,index:-1};const r=K(e.danmuList)?JSON.parse(JSON.stringify(e.danmuList)):[];r.sort(function(u,d){return(u.time||0)-(d.time||0)});function a(){o.enable=!o.enable}function s(u){const f=u.target.currentTime,g=i,_={time:f,index:g.index};if(f>g.time)for(let m=g.index+1;m<r.length;m++){const v=r[m];if(f>=(v.time||0))_.index=m,t.playing&&o.enable&&l(v);else break}else if(f<g.time)for(let m=g.index-1;m>-1;m--){const v=r[m];if(f<=(v.time||0))_.index=m-1;else break}i=_}function l(u){const d=document.createElement("p");d.className="uni-video-danmu-item",d.innerText=u.text;let f=`bottom: ${Math.random()*100}%;color: ${u.color};`;d.setAttribute("style",f),n.value.appendChild(d),setTimeout(function(){f+="left: 0;-webkit-transform: translateX(-100%);transform: translateX(-100%);",d.setAttribute("style",f),setTimeout(function(){d.remove()},4e3)},17)}function c(u){r.splice(i.index+1,0,{text:String(u.text),color:u.color,time:t.currentTime||0})}return{state:o,danmuRef:n,updateDanmu:s,toggleDanmu:a,sendDanmu:c}}function WT(e,t,n,o,i,r,a,s){const l={play:e,stop:n,pause:t,seek:o,sendDanmu:i,playbackRate:r,requestFullScreen:a,exitFullScreen:s},c=Yo();Gt((u,d)=>{let f;switch(u){case"seek":f=d.position;break;case"sendDanmu":f=d;break;case"playbackRate":f=d.rate;break}u in l&&l[u](f)},c,!0)}function qT(e,t,n,o,i){const r=Vue.computed(()=>t.gestureType==="progress"||n.touching);return Vue.watch(r,a=>{e.pauseUpdatingCurrentTime=a,n.controlsTouching=a,t.gestureType==="progress"&&a&&(n.controlsVisible=a)}),Vue.watch([()=>e.currentTime,()=>{Yu.duration}],()=>{e.progress=e.currentTime/e.duration*100}),Vue.watch(()=>t.currentTimeNew,a=>{e.currentTime=a}),r}const Yu={id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default(){return[]}},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},vslideGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},showPlayBtn:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0}},GT=X({name:"Video",props:Yu,emits:["fullscreenchange","progress","loadedmetadata","waiting","error","play","pause","ended","timeupdate"],setup(e,{emit:t,attrs:n,slots:o}){const i=Vue.ref(null),r=Vue.ref(null),a=pe(i,t),{state:s}=fu(),{$attrs:l}=Wo({excludeListeners:!0});U(),Np();const{videoRef:c,state:u,play:d,pause:f,stop:g,seek:_,playbackRate:m,toggle:v,onDurationChange:S,onLoadedMetadata:y,onProgress:h,onWaiting:p,onVideoError:C,onPlay:T,onPause:w,onEnded:A,onTimeUpdate:N}=$T(e,n,a),{state:E,danmuRef:V,updateDanmu:I,toggleDanmu:M,sendDanmu:F}=HT(e,u),{state:k,onFullscreenChange:B,emitFullscreenChange:z,toggleFullscreen:x,requestFullScreen:P,exitFullScreen:O}=FT(a,r,c,s,i),{state:D,onTouchstart:W,onTouchend:q,onTouchmove:$}=UT(e,c,k),{state:ee,progressRef:de,ballRef:Me,clickProgress:De,toggleControls:ut}=zT(e,u,_,ve=>{D.currentTimeNew=ve});WT(d,f,g,_,F,m,P,O);const Tt=qT(u,D,ee);return()=>Vue.createVNode("uni-video",{ref:i,id:e.id,onClick:ut},[Vue.createVNode("div",{ref:r,class:"uni-video-container",onTouchstart:W,onTouchend:q,onTouchmove:$,onFullscreenchange:Vue.withModifiers(B,["stop"]),onWebkitfullscreenchange:Vue.withModifiers(ve=>B(ve,!0),["stop"])},[Vue.createVNode("video",Vue.mergeProps({ref:c,style:{"object-fit":e.objectFit},muted:!!e.muted,loop:!!e.loop,src:u.src,poster:e.poster,autoplay:!!e.autoplay},l.value,{class:"uni-video-video","webkit-playsinline":!0,playsinline:!0,onDurationchange:S,onLoadedmetadata:y,onProgress:h,onWaiting:p,onError:C,onPlay:T,onPause:w,onEnded:A,onTimeupdate:ve=>{N(ve),I(ve)},onWebkitbeginfullscreen:()=>z(!0),onX5videoenterfullscreen:()=>z(!0),onWebkitendfullscreen:()=>z(!1),onX5videoexitfullscreen:()=>z(!1)}),null,16,["muted","loop","src","poster","autoplay","webkit-playsinline","playsinline","onDurationchange","onLoadedmetadata","onProgress","onWaiting","onError","onPlay","onPause","onEnded","onTimeupdate","onWebkitbeginfullscreen","onX5videoenterfullscreen","onWebkitendfullscreen","onX5videoexitfullscreen"]),Vue.withDirectives(Vue.createVNode("div",{class:"uni-video-bar uni-video-bar-full",onClick:Vue.withModifiers(()=>{},["stop"])},[Vue.createVNode("div",{class:"uni-video-controls"},[Vue.withDirectives(Vue.createVNode("div",{class:{"uni-video-icon":!0,"uni-video-control-button":!0,"uni-video-control-button-play":!u.playing,"uni-video-control-button-pause":u.playing},onClick:Vue.withModifiers(v,["stop"])},null,10,["onClick"]),[[Vue.vShow,e.showPlayBtn]]),Vue.withDirectives(Vue.createVNode("div",{class:"uni-video-current-time"},[Qo(u.currentTime)],512),[[Vue.vShow,e.showProgress]]),Vue.withDirectives(Vue.createVNode("div",{ref:de,class:"uni-video-progress-container",onClick:Vue.withModifiers(De,["stop"])},[Vue.createVNode("div",{class:{"uni-video-progress":!0,"uni-video-progress-progressing":Tt.value}},[Vue.createVNode("div",{style:{width:u.buffered-u.progress+"%",left:u.progress+"%"},class:"uni-video-progress-buffered"},null,4),Vue.createVNode("div",{style:{width:u.progress+"%"},class:"uni-video-progress-played"},null,4),Vue.createVNode("div",{ref:Me,style:{left:u.progress+"%"},class:{"uni-video-ball":!0,"uni-video-ball-progressing":Tt.value}},[Vue.createVNode("div",{class:"uni-video-inner"},null)],6)],2)],8,["onClick"]),[[Vue.vShow,e.showProgress]]),Vue.withDirectives(Vue.createVNode("div",{class:"uni-video-duration"},[Qo(Number(e.duration)||u.duration)],512),[[Vue.vShow,e.showProgress]])]),Vue.withDirectives(Vue.createVNode("div",{class:{"uni-video-icon":!0,"uni-video-danmu-button":!0,"uni-video-danmu-button-active":E.enable},onClick:Vue.withModifiers(M,["stop"])},null,10,["onClick"]),[[Vue.vShow,e.danmuBtn]]),Vue.withDirectives(Vue.createVNode("div",{class:{"uni-video-icon":!0,"uni-video-fullscreen":!0,"uni-video-type-fullscreen":k.fullscreen},onClick:Vue.withModifiers(()=>x(!k.fullscreen),["stop"])},null,10,["onClick"]),[[Vue.vShow,e.showFullscreenBtn]])],8,["onClick"]),[[Vue.vShow,ee.controlsShow]]),Vue.withDirectives(Vue.createVNode("div",{ref:V,style:"z-index: 0;",class:"uni-video-danmu"},null,512),[[Vue.vShow,u.start&&E.enable]]),ee.centerPlayBtnShow&&Vue.createVNode("div",{class:"uni-video-cover",onClick:Vue.withModifiers(()=>{},["stop"])},[Vue.createVNode("div",{class:"uni-video-cover-play-button uni-video-icon",onClick:Vue.withModifiers(d,["stop"])},null,8,["onClick"])],8,["onClick"]),Vue.createVNode("div",{class:"uni-video-loading"},[D.gestureType==="volume"?Vue.createVNode("div",{class:{"uni-video-toast-container":!0,"uni-video-toast-container-thin":D.toastThin},style:{marginTop:"5px"}},[!D.toastThin&&D.volumeNew>0&&D.gestureType==="volume"?Vue.createVNode("text",{class:"uni-video-icon uni-video-toast-icon"},[""]):!D.toastThin&&Vue.createVNode("text",{class:"uni-video-icon uni-video-toast-icon"},[""]),Vue.createVNode("div",{class:"uni-video-toast-draw",style:{width:`${D.volumeNew*100}%`}},null)],2):null]),Vue.createVNode("div",{class:{"uni-video-toast":!0,"uni-video-toast-progress":Tt.value}},[Vue.createVNode("div",{class:"uni-video-toast-title"},[Vue.createVNode("span",{class:"uni-video-toast-title-current-time"},[Qo(D.currentTimeNew)])," / ",Number(e.duration)||Qo(u.duration)])],2),Vue.createVNode("div",{class:"uni-video-slots"},[o.default&&o.default()])],40,["onTouchstart","onTouchend","onTouchmove","onFullscreenchange","onWebkitfullscreenchange"])],8,["id","onClick"])}}),jT=({name:e,arg:t})=>{e==="postMessage"||uni[e](t)},YT=ne(()=>UniServiceJSBridge.on(Ra,jT)),XT=X({inheritAttrs:!1,name:"WebView",props:{src:{type:String,default:""},fullscreen:{type:Boolean,default:!0}},emits:["load"],setup(e,{emit:t}){YT();const n=Vue.ref(null),o=Vue.ref(null),{$attrs:i,$excludeAttrs:r,$listeners:a}=Wo({excludeListeners:!0}),s=pe(n,t);let l;return(()=>{const u=document.createElement("iframe");u.onload=function(d){s("load",d,{src:e.src})},Vue.watchEffect(()=>{for(const d in i.value)if(ae(i.value,d)){const f=i.value[d];u[d]=f}}),Vue.watchEffect(()=>{u.src=Q(e.src)}),o.value=u,l=JT(n,o,e.fullscreen),e.fullscreen&&document.body.appendChild(u)})(),Vue.onMounted(()=>{var u;l(),!e.fullscreen&&((u=n.value)==null||u.appendChild(o.value))}),Vue.onActivated(()=>{e.fullscreen&&(o.value.style.display="block")}),Vue.onDeactivated(()=>{e.fullscreen&&(o.value.style.display="none")}),Vue.onBeforeUnmount(()=>{e.fullscreen&&document.body.removeChild(o.value)}),()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode("uni-web-view",Vue.mergeProps({class:e.fullscreen?"uni-webview--fullscreen":""},a.value,r.value,{ref:n}),[Vue.createVNode(je,{onResize:l},null,8,["onResize"])],16)])}});function JT(e,t,n){return()=>{var i,r;if(n){const{top:a,left:s,width:l,height:c}=e.value.getBoundingClientRect();bi(t.value,{position:"absolute",display:"block",border:"0",top:a+"px",left:s+"px",width:l+"px",height:c+"px"})}else bi(t.value,{width:((i=e.value)==null?void 0:i.style.width)||"300px",height:((r=e.value)==null?void 0:r.style.height)||"150px"})}}let KT=0;function $r(e,t,n,o){var i=document.createElement("script"),r=t.callback||"callback",a="__uni_jsonp_callback_"+KT++,s=t.timeout||3e4,l;function c(){clearTimeout(l),delete window[a],i.remove()}window[a]=u=>{G(n)&&n(u),c()},i.onerror=()=>{G(o)&&o(),c()},l=setTimeout(function(){G(o)&&o(),c()},s),i.src=e+(e.indexOf("?")>=0?"&":"?")+r+"="+a,document.body.appendChild(i)}function Xu(e){function t(){const l=this.div;this.getPanes().floatPane.appendChild(l)}function n(){const l=this.div.parentNode;l&&l.removeChild(this.div)}function o(){const l=this.option;this.Text=new e.Text({text:l.content,anchor:"bottom-center",offset:new e.Pixel(0,l.offsetY-16),style:{padding:(l.padding||8)+"px","line-height":(l.fontSize||14)+"px","border-radius":(l.borderRadius||0)+"px","border-color":`${l.bgColor||"#fff"} transparent transparent`,"background-color":l.bgColor||"#fff","box-shadow":"0 2px 6px 0 rgba(114, 124, 245, .5)","text-align":"center","font-size":(l.fontSize||14)+"px",color:l.color||"#000"},position:l.position}),(e.event||e.Event).addListener(this.Text,"click",()=>{this.callback()}),this.Text.setMap(l.map)}function i(){}function r(){this.Text&&this.option.map.remove(this.Text)}function a(){this.Text&&this.option.map.remove(this.Text)}class s{constructor(c={},u){this.createAMapText=o,this.removeAMapText=r,this.createBMapText=i,this.removeBMapText=a,this.onAdd=t,this.construct=t,this.onRemove=n,this.destroy=n,this.option=c||{};const d=this.visible=this.alwaysVisible=c.display==="ALWAYS";if(ue())this.callback=u,this.visible&&this.createAMapText();else if(ie())this.visible&&this.createBMapText();else{const f=c.map;this.position=c.position,this.index=1;const g=this.div=document.createElement("div"),_=g.style;_.position="absolute",_.whiteSpace="nowrap",_.transform="translateX(-50%) translateY(-100%)",_.zIndex="1",_.boxShadow=c.boxShadow||"none",_.display=d?"block":"none";const m=this.triangle=document.createElement("div");m.setAttribute("style","position: absolute;white-space: nowrap;border-width: 4px;border-style: solid;border-color: #fff transparent transparent;border-image: initial;font-size: 12px;padding: 0px;background-color: transparent;width: 0px;height: 0px;transform: translate(-50%, 100%);left: 50%;bottom: 0;"),this.setStyle(c),g.appendChild(m),f&&this.setMap(f)}}set onclick(c){this.div.onclick=c}get onclick(){return this.div.onclick}setOption(c){this.option=c,c.display==="ALWAYS"?this.alwaysVisible=this.visible=!0:this.alwaysVisible=!1,ue()?this.visible&&this.createAMapText():ie()?this.visible&&this.createBMapText():(this.setPosition(c.position),this.setStyle(c))}setStyle(c){const u=this.div,d=u.style;u.innerText=c.content||"",d.lineHeight=(c.fontSize||14)+"px",d.fontSize=(c.fontSize||14)+"px",d.padding=(c.padding||8)+"px",d.color=c.color||"#000",d.borderRadius=(c.borderRadius||0)+"px",d.backgroundColor=c.bgColor||"#fff",d.marginTop="-"+((c.top||0)+5)+"px",this.triangle.style.borderColor=`${c.bgColor||"#fff"} transparent transparent`}setPosition(c){this.position=c,this.draw()}draw(){const c=this.getProjection();if(!this.position||!this.div||!c)return;const u=c.fromLatLngToDivPixel(this.position),d=this.div.style;d.left=u.x+"px",d.top=u.y+"px"}changed(){const c=this.div.style;c.display=this.visible?"block":"none"}}if(!ue()&&!ie()){const l=new(e.OverlayView||e.Overlay);s.prototype.setMap=l.setMap,s.prototype.getMap=l.getMap,s.prototype.getPanes=l.getPanes,s.prototype.getProjection=l.getProjection,s.prototype.map_changed=l.map_changed,s.prototype.set=l.set,s.prototype.get=l.get,s.prototype.setOptions=l.setValues,s.prototype.bindTo=l.bindTo,s.prototype.bindsTo=l.bindsTo,s.prototype.notify=l.notify,s.prototype.setValues=l.setValues,s.prototype.unbind=l.unbind,s.prototype.unbindAll=l.unbindAll,s.prototype.addListener=l.addListener}return s}let Be;const Ju={},QT="__map_callback__";function zr(e,t){const n=ot();if(!n.key){console.error("Map key not configured.");return}const o=Ju[n.type]=Ju[n.type]||[];if(Be)t(Be);else if(window[n.type]&&window[n.type].maps)Be=ue()||ie()?window[n.type]:window[n.type].maps,Be.Callout=Be.Callout||Xu(Be),t(Be);else if(o.length)o.push(t);else{o.push(t);const i=window,r=QT+n.type;i[r]=function(){delete i[r],Be=ue()||ie()?window[n.type]:window[n.type].maps,Be.Callout=Xu(Be),o.forEach(l=>l(Be)),o.length=0},ue()&&e1(n);const a=document.createElement("script");let s=ZT(n.type);n.type===Ne.QQ&&e.push("geometry"),e.length&&(s+=`libraries=${e.join("%2C")}&`),n.type===Ne.BMAP?a.src=`${s}ak=${n.key}&callback=${r}`:a.src=`${s}key=${n.key}&callback=${r}`,a.onerror=function(){console.error("Map load failed.")},document.body.appendChild(a)}}const ZT=e=>({qq:"https://map.qq.com/api/js?v=2.exp&",google:"https://maps.googleapis.com/maps/api/js?",AMap:"https://webapi.amap.com/maps?v=2.0&",BMapGL:"https://api.map.baidu.com/api?type=webgl&v=1.0&"})[e];function e1(e){window._AMapSecurityConfig={securityJsCode:e.securityJsCode||"",serviceHost:e.serviceHost||""}}const Ku="M13.3334375 16 q0.033125 1.1334375 0.783125 1.8834375 q0.75 0.75 1.8834375 0.75 q1.1334375 0 1.8834375 -0.75 q0.75 -0.75 0.75 -1.8834375 q0 -1.1334375 -0.75 -1.8834375 q-0.75 -0.75 -1.8834375 -0.75 q-1.1334375 0 -1.8834375 0.75 q-0.75 0.75 -0.783125 1.8834375 ZM30.9334375 14.9334375 l-1.1334375 0 q-0.5 -5.2 -4.0165625 -8.716875 q-3.516875 -3.5165625 -8.716875 -4.0165625 l0 -1.1334375 q0 -0.4665625 -0.3 -0.7665625 q-0.3 -0.3 -0.7665625 -0.3 q-0.4665625 0 -0.7665625 0.3 q-0.3 0.3 -0.3 0.7665625 l0 1.1334375 q-5.2 0.5 -8.716875 4.0165625 q-3.5165625 3.516875 -4.0165625 8.716875 l-1.1334375 0 q-0.4665625 0 -0.7665625 0.3 q-0.3 0.3 -0.3 0.7665625 q0 0.4665625 0.3 0.7665625 q0.3 0.3 0.7665625 0.3 l1.1334375 0 q0.5 5.2 4.0165625 8.716875 q3.516875 3.5165625 8.716875 4.0165625 l0 1.1334375 q0 0.4665625 0.3 0.7665625 q0.3 0.3 0.7665625 0.3 q0.4665625 0 0.7665625 -0.3 q0.3 -0.3 0.3 -0.7665625 l0 -1.1334375 q5.2 -0.5 8.716875 -4.0165625 q3.5165625 -3.516875 4.0165625 -8.716875 l1.1334375 0 q0.4665625 0 0.7665625 -0.3 q0.3 -0.3 0.3 -0.7665625 q0 -0.4665625 -0.3 -0.7665625 q-0.3 -0.3 -0.7665625 -0.3 ZM17.0665625 27.6665625 l0 -2.0665625 q0 -0.4665625 -0.3 -0.7665625 q-0.3 -0.3 -0.7665625 -0.3 q-0.4665625 0 -0.7665625 0.3 q-0.3 0.3 -0.3 0.7665625 l0 2.0665625 q-4.3 -0.4665625 -7.216875 -3.383125 q-2.916875 -2.916875 -3.3834375 -7.216875 l2.0665625 0 q0.4665625 0 0.7665625 -0.3 q0.3 -0.3 0.3 -0.7665625 q0 -0.4665625 -0.3 -0.7665625 q-0.3 -0.3 -0.7665625 -0.3 l-2.0665625 0 q0.4665625 -4.3 3.3834375 -7.216875 q2.9165625 -2.916875 7.216875 -3.3834375 l0 2.0665625 q0 0.4665625 0.3 0.7665625 q0.3 0.3 0.7665625 0.3 q0.4665625 0 0.7665625 -0.3 q0.3 -0.3 0.3 -0.7665625 l0 -2.0665625 q4.3 0.4665625 7.216875 3.3834375 q2.9165625 2.9165625 3.383125 7.216875 l-2.0665625 0 q-0.4665625 0 -0.7665625 0.3 q-0.3 0.3 -0.3 0.7665625 q0 0.4665625 0.3 0.7665625 q0.3 0.3 0.7665625 0.3 l2.0665625 0 q-0.4665625 4.3 -3.383125 7.216875 q-2.916875 2.9165625 -7.216875 3.383125 Z",Qu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAACECAMAAABmmnOVAAAC01BMVEUAAAAAef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef96quGStdqStdpbnujMzMzCyM7Gyc7Ky83MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMwAef8GfP0yjfNWnOp0qOKKsdyYt9mju9aZt9mMstx1qeJYnekyjvIIfP0qivVmouaWttnMzMyat9lppOUujPQKffxhoOfNzc3Y2Njh4eHp6enu7u7y8vL19fXv7+/i4uLZ2dnOzs6auNgOf/sKff15quHR0dHx8fH9/f3////j4+N6quFdn+iywdPb29vw8PD+/v7c3NyywtLa2tr29vbS0tLd3d38/Pzf39/o6Ojc7f+q0v+HwP9rsf9dqv9Hnv9Vpv/q6urj8P+Vx/9Am/8Pgf8Iff/z8/OAvP95uf/n5+c5l//V6f+52v+y1//7+/vt7e0rkP/09PTQ0NDq9P8Whf+cy//W1tbe3t7A3v/m5ubs7OxOov/r6+vk5OQiaPjKAAAAknRSTlMACBZ9oB71/jiqywJBZATT6hBukRXv+zDCAVrkDIf4JbQsTb7eVeJLbwfa8Rh4G/OlPS/6/kxQ9/xdmZudoJxNVhng7B6wtWdzAtQOipcF1329wS44doK/BAkyP1pvgZOsrbnGXArAg34G2IsD1eMRe7bi7k5YnqFT9V0csyPedQyYD3p/Fje+hDpskq/MwpRBC6yKp2MAAAQdSURBVHja7Zn1exMxGIAPHbrhDsPdneHuNtzd3d3dIbjLh93o2o4i7TpgG1Jk0g0mMNwd/gTa5rq129reHnK5e/bk/TFNk/dJ7r5894XjGAwGg8GgTZasCpDIll1+hxw5vXLJLpEboTx5ZXbIhyzkl9fB28cqUaCgrBKFkI3CcjoUKYolihWXUSI7EihRUjaHXF52CVRKLoe8eZIdUOkyMknkRw6UlcehYAFHiXK+skgURk6Ul8OhQjFnCVRRBolKqRxQ5SzUHaqgNGSj7VCmalqJnDkoS5RF6ZCbroNvufQkUD6qEuXTdUA+3hQdqiEXVKfnUKOmK4latalJ1EEuoZZ6162HJ9x/4OChw0eOHj12/MTJU6dxG7XUu751tjNnz4ET5y9ctLZTSr0beKFLl89bpuUDrqgC1RqNWqsKuqqzNFw7e51S6u3tc+OmZUJ9kCHY6ECwOkRvab51iUrqXej2HYDQsHBjWgx3Ae7dppB6N2wEcF9jdMGDUIDGTaR2aNoM9FqjG7QmaN5CWgc/gIePjG559BigpZQOrYB/4jBfRGRUtDkmJjY6KjLCofkpD62lc2gDfMpWPIuLdwyV8XEpHgaddBZ+wBuSFcwJqSN2ovmZ/dfnOvCTxqGtwzq8SEjv4EhISn48eWgnhUP7DvDSvgzxrs6vV6+FLiro2EkCic4QKkzwJsH1KYreCp0eQhfyDl1B/w4P/xa5JVJ4U03QjbRD9x7wXlgH5IE3wmMBHXoSlugFAcI6f/AkkSi8q6HQm6xDn77wEQ8djTwSj3tqAMguRTe4ikeOQyJ4YV+KfkQl+oNW5GbY4gWOWgbwJ+kwAD6Fi90MK2ZsrIeBBCUGwRXbqJ+/iJMQliIEBhOU6AJhtlG/IpHE2bqrYQg5h6HA4yQiRqwEfkGCdTCMmMRw+IbPDCQaHCsCYAQxiZHw3TbmD/ESOHgHwShiEqPhp/gggYkSztIxxCRawy/bmEniJaJtfwiEscQkxkFgRqJESqQwwHhiEuMBp3Vm8RK/cZoHEzKXhCK2QxEPpiJe0YlKCFaKCNv/cYBNUsBRPlkJSc0U+dM7E9H0ThGJbgZT/iR7yj+VqMS06Qr4+OFm2JdCxIa8lugzkJs5K6MfxAaYPUcBpYG5khZJEkUUSb7DPCnKRfPBXj6M8FwuegoLpCgXcQszVjhbJFUJUee2hBhLoYTIcYtB57KY+opSMdVqwatSlZVj05aV//CwJLMX2DluaUcwhXm4ali2XOoLjxUrPV26zFtF4f5p0Gp310+z13BUWNvbehEXona6iAtX/zVZmtfN4WixfsNky4S6gCCVVq3RPLdfSfpv3MRRZfPoLc6Xs/5bt3EyMGzE9h07/Xft2t15z6i9+zgGg8FgMBgMBoPBYDAYDAYj8/APG67Rie8pUDsAAAAASUVORK5CYII=",Zu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAACcCAMAAAC3Fl5oAAAB3VBMVEVMaXH/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/EhL/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/Dw//AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/GRn/NTX/Dw//Fhb/AAD/AAD/AAD/GRn/GRn/Y2P/AAD/AAD/ExP/Ghr/AAD/AAD/MzP/GRn/AAD/Hh7/AAD/RUX/AAD/AAD/AAD/AAD/AAD/AAD/Dg7/AAD/HR3/Dw//FRX/SUn/AAD/////kJD/DQ3/Zmb/+/v/wMD/mJj/6en/vb3/1NT//Pz/ODj/+fn/3Nz/nJz/j4//9/f/7e3/9vb/7Oz/2Nj/x8f/Ozv/+Pj/3d3/nZ3/2dn//f3/6Oj/2tr/v7//09P/vr7/mZn/l5cdSvP3AAAAe3RSTlMAAhLiZgTb/vztB/JMRhlp6lQW86g8mQ4KFPs3UCH5U8huwlesWtTYGI7RsdVeJGfTW5rxnutLsvXWF8vQNdo6qQbuz7D4hgVIx2xtw8GC1TtZaIw0i84P98tU0/fsj7PKaAgiZZxeVfo8Z52eg1P0nESrENnjXVPUgw/uuSmDAAADsUlEQVR42u3aZ3cTRxgF4GtbYleSLdnGcsENG2ODjbExEHrvhAQCIb1Bem+QdkeuuFMNBBJIfmuOckzZI8/srHYmH3Lm+QNXK632LTvQ03Tu/IWeU/tTGTKT2n+q58L5c00wpXJd47DHEt5w47pKxLbhdLdPKb/7dBYxVLxw1GcI/2h1BcpzKNFHLX2JQ4gumaiitqpEEhEdOMJI9h5AFC3feYzI+7IF2tpSLEOqDXpObPRYFm/jCWho/4Ble7MdoT7fzhhq9yHEz28wltU1UPrJZ0wd66HwicfYvEFIfePTAP8tSLTupBHvtGJFH9bSkNrNWEHzERrT34xSH9Ogr1CijkbVAUH1KRqVqkdQAw07iIAaGlcTqI+/0LjeJJ5J0IIEnkpXMdzs4sTtW9dnZq7fuj2xOMtwVWk88RHDjBYejYvnjD8qjOpfQsUqhvj7oSjxcJIhVj3pyKqpNjYvVjQ/RrXq5YABKi3MCYm5BSrtWO5v11DlmlC4RpU1WRS9SJU7QukOVbpQ9JLu549+Dd0AUOlTbkGEuk85vxLAK5QbuytC3R2j3HoAjZSbFxrmKTcCoJdSk0LLJKV6gSaPMqNTQsvUKGW8JrxKqUWhaZFSeWyh1LTQNE2pHF6mzOy40DQ+S5mLimJcENoKlOnBWsr8KbRNUGYt5LXgd6HtD3lNQIoyN4S2G5RJIUOZm0LbTcqsBqVmhLYZSlkPsP4VWf+Rrd+m1v9o9h8Vv5p42C1R5qL1x7WRglOgVN52yfwNOBu76P+lLPoYidu23KPciIHGa07ZeIW1jvcNtI7q5vexCPGYCmf+m/Y9a3sAwQ5bI9T7ukPgPcn9GToEao+xk1OixJT+GIsvNAbx6eAgPq0xiF+KtkpYKhRXCQ8eFFcJhSWGu3rZ8jJkCM8kz9K4TUnrC6mAgzTsB9tLwQ2W15qfosQ2GrQNpZr7aczbzVjBZsvLcaC1g0bsbIVEnU8DOr6H1KDH2LwtUBi0/JII6Dxm9zUXkH+XMWzfh1Dte1i2Pe3QkC77Zel7aehpO8wyHG6Dtt0NjKxhN6I4uSli/TqJiJJDUQ4NDCURXTrXRy1XcumyD24M+AzhD1RXIIZsl/LoyZmurJHDM7s8lvB2FQ/PmPJ6PseAXP5HGMYAAC7ABbgAF+ACXIALcAEuwAW4ABfgAlyAC3ABLsAFuID/d8Cx4NEt8/byOf0wLnis8zjMq9/Kp7bWw4JOj8u8TlhRl+G/Mp2wpOX48GffvvZ1CyL4B53LAS6zb08EAAAAAElFTkSuQmCC";var Ne=(e=>(e.QQ="qq",e.GOOGLE="google",e.AMAP="AMap",e.BMAP="BMapGL",e.UNKNOWN="",e))(Ne||{});function ot(){return __uniConfig.bMapKey?{type:"BMapGL",key:__uniConfig.bMapKey}:__uniConfig.qqMapKey?{type:"qq",key:__uniConfig.qqMapKey}:__uniConfig.googleMapKey?{type:"google",key:__uniConfig.googleMapKey}:__uniConfig.aMapKey?{type:"AMap",key:__uniConfig.aMapKey,securityJsCode:__uniConfig.aMapSecurityJsCode,serviceHost:__uniConfig.aMapServiceHost}:{type:"",key:""}}let ed=!1,td=!1;const ue=()=>td?ed:(td=!0,ed=ot().type==="AMap"),ie=()=>ot().type==="BMapGL";function nd(e,t,n){const o=ot(),i=["google"];return e&&e.toUpperCase()==="WGS84"||i.includes(o.type)||n?Promise.resolve(t):o.type==="qq"?new Promise(r=>{$r(`https://apis.map.qq.com/ws/coord/v1/translate?type=1&locations=${t.latitude},${t.longitude}&key=${o.key}&output=jsonp`,{callback:"callback"},a=>{if("locations"in a&&a.locations.length){const{lng:s,lat:l}=a.locations[0];r({longitude:s,latitude:l,altitude:t.altitude,accuracy:t.accuracy,altitudeAccuracy:t.altitudeAccuracy,heading:t.heading,speed:t.speed})}else r(t)},()=>r(t))}):o.type==="AMap"?new Promise(r=>{zr([],()=>{window.AMap.convertFrom([t.longitude,t.latitude],"gps",(a,s)=>{if(s.info==="ok"&&s.locations.length){const{lat:l,lng:c}=s.locations[0];r({longitude:c,latitude:l,altitude:t.altitude,accuracy:t.accuracy,altitudeAccuracy:t.altitudeAccuracy,heading:t.heading,speed:t.speed})}else r(t)})})}):Promise.reject(new Error("translate coordinate system faild, map provider not configured or not supported"))}const t1={id:{type:[Number,String],default:""},latitude:{type:[Number,String],require:!0},longitude:{type:[Number,String],require:!0},title:{type:String,default:""},iconPath:{type:String,require:!0},rotate:{type:[Number,String],default:0},alpha:{type:[Number,String],default:1},width:{type:[Number,String],default:""},height:{type:[Number,String],default:""},callout:{type:Object,default:null},label:{type:Object,default:null},anchor:{type:Object,default:null},clusterId:{type:[Number,String],default:""},customCallout:{type:Object,default:null},ariaLabel:{type:String,default:""}};function n1(e){const t="uni-map-marker-label-"+e,n=document.createElement("style");return n.id=t,document.head.appendChild(n),Vue.onUnmounted(()=>{n.remove()}),function(i){const r=Object.assign({},i,{position:"absolute",top:"70px",borderStyle:"solid"}),a=document.createElement("div");return Object.keys(r).forEach(s=>{a.style[s]=r[s]||""}),n.innerText=`.${t}{${a.getAttribute("style")}}`,t}}const od=ge({name:"MapMarker",props:t1,setup(e){const t=String(isNaN(Number(e.id))?"":e.id),n=Vue.inject("onMapReady"),o=n1(t);let i;function r(){i&&(i.label&&"setMap"in i.label&&i.label.setMap(null),i.callout&&a(i.callout),i.setMap(null))}function a(s){ue()?s.removeAMapText():s.setMap(null)}if(n((s,l,c)=>{function u(f){const g=f.title;let _;ue()?_=new l.LngLat(f.longitude,f.latitude):ie()?_=new l.Point(f.longitude,f.latitude):_=new l.LatLng(f.latitude,f.longitude);const m=new Image;let v=0;m.onload=()=>{const S=f.anchor||{};let y,h,p,C,T=typeof S.x=="number"?S.x:.5,w=typeof S.y=="number"?S.y:1;f.iconPath&&(f.width||f.height)?(h=f.width||m.width/m.height*f.height,p=f.height||m.height/m.width*f.width):(h=m.width/2,p=m.height/2),v=p,C=p-(p-w*p),"MarkerImage"in l?y=new l.MarkerImage(m.src,null,null,new l.Point(T*h,w*p),new l.Size(h,p)):"Icon"in l?y=new l.Icon({image:m.src,size:new l.Size(h,p),imageSize:new l.Size(h,p),imageOffset:new l.Pixel(T*h,w*p)}):y={url:m.src,anchor:new l.Point(T,w),size:new l.Size(h,p)},ie()?(i=new l.Marker(new l.Point(_.lng,_.lat)),s.addOverlay(i)):(i.setPosition(_),i.setIcon(y)),"setRotation"in i&&i.setRotation(f.rotate||0);const A=f.label||{};"label"in i&&(i.label.setMap(null),delete i.label);let N;if(A.content){const M={borderColor:A.borderColor,borderWidth:(Number(A.borderWidth)||0)+"px",padding:(Number(A.padding)||0)+"px",borderRadius:(Number(A.borderRadius)||0)+"px",backgroundColor:A.bgColor,color:A.color,fontSize:(A.fontSize||14)+"px",lineHeight:(A.fontSize||14)+"px",marginLeft:(Number(A.anchorX||A.x)||0)+"px",marginTop:(Number(A.anchorY||A.y)||0)+"px"};if("Label"in l)N=new l.Label({position:_,map:s,clickable:!1,content:A.content,style:M}),i.label=N;else if("setLabel"in i)if(ue()){const F=`<div style="
|
|
1
|
+
(function(y,L){typeof exports=="object"&&typeof module!="undefined"?L(exports):typeof define=="function"&&define.amd?define(["exports"],L):(y=typeof globalThis!="undefined"?globalThis:y||self,L(y.UniH5={}))})(this,(function(y){"use strict";var tA=Object.defineProperty;var hg=Object.getOwnPropertySymbols;var nA=Object.prototype.hasOwnProperty,oA=Object.prototype.propertyIsEnumerable;var gg=(y,L,Se)=>L in y?tA(y,L,{enumerable:!0,configurable:!0,writable:!0,value:Se}):y[L]=Se,Ta=(y,L)=>{for(var Se in L||(L={}))nA.call(L,Se)&&gg(y,Se,L[Se]);if(hg)for(var Se of hg(L))oA.call(L,Se)&&gg(y,Se,L[Se]);return y};const L=Object.assign,Se=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},pg=Object.prototype.hasOwnProperty,ae=(e,t)=>pg.call(e,t),K=Array.isArray,G=e=>typeof e=="function",J=e=>typeof e=="string",mg=e=>e!==null&&typeof e=="object",vg=e=>(mg(e)||G(e))&&G(e.then)&&G(e.catch),_g=Object.prototype.toString,yg=e=>_g.call(e),ce=e=>yg(e)==="[object Object]",_i=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},bg=/-(\w)/g,Ca=_i(e=>e.replace(bg,(t,n)=>n?n.toUpperCase():"")),wg=/\B([A-Z])/g,At=_i(e=>e.replace(wg,"-$1").toLowerCase()),yi=_i(e=>e.charAt(0).toUpperCase()+e.slice(1)),Et=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Sg=/;(?![^(]*\))/g,Tg=/:([^]+)/,Cg=/\/\*[^]*?\*\//g;function Vg(e){const t={};return e.replace(Cg,"").split(Sg).forEach(n=>{if(n){const o=n.split(Tg);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Ag(e){let t="";if(!e||J(e))return t;for(const n in e){const o=e[n],i=n.startsWith("--")?n:At(n);(J(o)||typeof o=="number")&&(t+=`${i}:${o};`)}return t}var Eg={};const Va=["ad","ad-content-page","ad-draw","audio","button","camera","canvas","checkbox","checkbox-group","cover-image","cover-view","editor","form","functional-page-navigator","icon","image","input","label","live-player","live-pusher","map","movable-area","movable-view","navigator","official-account","open-data","picker","picker-view","picker-view-column","progress","radio","radio-group","rich-text","scroll-view","slider","swiper","swiper-item","switch","text","textarea","video","view","web-view","location-picker","location-view"].map(e=>"uni-"+e),kg=["page-container","list-view","list-item","sticky-section","sticky-header","cloud-db-element","loading-element","loading"].map(e=>"uni-"+e),Ig=["list-item"].map(e=>"uni-"+e);function Ng(e){if(Ig.indexOf(e)!==-1)return!1;const t="uni-"+e.replace("v-uni-","");return Eg.UNI_APP_X!=="true"?Va.indexOf(t)!==-1:Va.indexOf(t)!==-1||kg.indexOf(t)!==-1}const kt=`
|
|
2
|
+
`,Aa=44,xg=50,Mg=768,Ea="UNI_LOCALE",bi=["%","%"],on="#007aff",Pg=/^([a-z-]+:)?\/\//i,Og=/^data:.*,.*/,Rg="WEB_INVOKE_APPSERVICE",dt="onShow",ft="onHide",Lg="onLaunch",ht="onError",Xe="onThemeChange",Bg="offThemeChange",Yn="onPageNotFound",Xn="onUnhandledRejection",Dg="onLastPageBackPress",Ug="onExit",ka="onLoad",Fg="onReady",Ia="onUnload",$g="onInit",zg="onSaveExitState",Hg="onUploadDouyinVideo",Wg="onLiveMount",qg="onTitleClick",Jn="onResize",Kn="onBackPress",Qn="onPageScroll",Gg="onTabItemTap",wi="onReachBottom",Na="onPullDownRefresh",jg="onShareTimeline",Yg="onShareChat",Xg="onCopyUrl",Jg="onAddToFavorites",Kg="onShareAppMessage",xa="onNavigationBarButtonTap",Ma="onNavigationBarChange",Pa="onNavigationBarSearchInputClicked",Oa="onNavigationBarSearchInputChanged",Ra="onNavigationBarSearchInputConfirmed",Si="onNavigationBarSearchInputFocusChanged",La="onAppEnterForeground",Ba="onAppEnterBackground",Da="onWebInvokeAppService",Qg="onWxsInvokeCallMethod";function Zg(e){return!!e.appContext}function rn(e){return e&&(Zg(e)?e.proxy:e)}function Ua(e){if(!e)return;let t=e.type.name;for(;t&&Ng(At(t));)e=e.parent,t=e.type.name;return e.proxy}function Fa(e){return e.nodeType===1}function Zn(e,t=!1){const{vnode:n}=e;if(Fa(n.el))return t?n.el?[n.el]:[]:n.el;const{subTree:o}=e;if(o.shapeFlag&16){const i=o.children.filter(r=>r.el&&Fa(r.el));if(i.length>0)return t?i.map(r=>r.el):i[0].el}return t?n.el?[n.el]:[]:n.el}function ep(e=""){return(""+e).replace(/[^\x00-\xff]/g,"**").length}function $a(e){return e.indexOf("/")===0}function qe(e){return $a(e)?e:"/"+e}function za(e){return $a(e)?e.slice(1):e}const tp=(e,t)=>{let n;for(let o=0;o<e.length;o++)n=e[o](t);return n},np=(e,t)=>e.map(n=>n(t));function Ti(e,t){for(const n in t)e.style[n]=t[n]}function ne(e,t=null){let n;return((...o)=>(e&&(n=e.apply(t,o),e=null),n))}const eo=e=>e>9?e:"0"+e;function Ha({date:e=new Date,mode:t="date"}){return t==="time"?eo(e.getHours())+":"+eo(e.getMinutes()):e.getFullYear()+"-"+eo(e.getMonth()+1)+"-"+eo(e.getDate())}function be(e,t){e=e||{},J(t)&&(t={errMsg:t}),/:ok$/.test(t.errMsg)?G(e.success)&&e.success(t):G(e.fail)&&e.fail(t),G(e.complete)&&e.complete(t)}function Wa(e){return Ca(e.substring(5))}const op=ne(e=>{e=e||(i=>i.tagName.startsWith("UNI-"));const t=HTMLElement.prototype,n=t.setAttribute;t.setAttribute=function(i,r){if(i.startsWith("data-")&&e(this)){const a=this.__uniDataset||(this.__uniDataset={});a[Wa(i)]=r}/^\d/.test(i)||n.call(this,i,r)};const o=t.removeAttribute;t.removeAttribute=function(i){this.__uniDataset&&i.startsWith("data-")&&e(this)&&delete this.__uniDataset[Wa(i)],o.call(this,i)}});function Ci(e){return L({},e.dataset,e.__uniDataset)}function It(e){return{passive:e}}function Vi(e){const{id:t,offsetTop:n,offsetLeft:o}=e;return{id:t,dataset:Ci(e),offsetTop:n,offsetLeft:o}}function ip(e,t,n){const o=document.fonts;if(o){const i=new FontFace(e,t,n);return i.load().then(()=>{o.add&&o.add(i)})}return new Promise(i=>{const r=document.createElement("style"),a=[];if(n){const{style:s,weight:c,stretch:l,unicodeRange:u,variant:d,featureSettings:h}=n;s&&a.push(`font-style:${s}`),c&&a.push(`font-weight:${c}`),l&&a.push(`font-stretch:${l}`),u&&a.push(`unicode-range:${u}`),d&&a.push(`font-variant:${d}`),h&&a.push(`font-feature-settings:${h}`)}r.innerText=`@font-face{font-family:"${e}";src:${t};${a.join(";")}}`,document.head.appendChild(r),i()})}function rp(e,t,n){if(J(e)){const s=document.querySelector(e);if(s){const{top:c}=s.getBoundingClientRect();e=c+window.pageYOffset;const l=document.querySelector("uni-page-head");l&&(e-=l.offsetHeight)}}e<0&&(e=0);const o=document.documentElement,{clientHeight:i,scrollHeight:r}=o;if(e=Math.min(e,r-i),t===0){o.scrollTop=document.body.scrollTop=e;return}if(window.scrollY===e)return;const a=s=>{if(s<=0){window.scrollTo(0,e);return}const c=e-window.scrollY;requestAnimationFrame(function(){window.scrollTo(0,window.scrollY+c/s*10),a(s-10)})};a(t)}function Ai(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function Ei(e={}){const t={};return Object.keys(e).forEach(n=>{try{t[n]=Ai(e[n])}catch(o){t[n]=e[n]}}),t}const ap=/\+/g;function qa(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<o.length;++i){const r=o[i].replace(ap," ");let a=r.indexOf("="),s=Ai(a<0?r:r.slice(0,a)),c=a<0?null:Ai(r.slice(a+1));if(s in t){let l=t[s];K(l)||(l=t[s]=[l]),l.push(c)}else t[s]=c}return t}function sp(e){const[t,n]=e.split("?",2);return{path:t,query:qa(n||"")}}function ki(e,t,{clearTimeout:n,setTimeout:o}){let i;const r=function(){n(i),i=o(()=>e.apply(this,arguments),t)};return r.cancel=function(){n(i)},r}class Ga{constructor(t,n){this.id=t,this.listener={},this.emitCache=[],n&&Object.keys(n).forEach(o=>{this.on(o,n[o])})}emit(t,...n){const o=this.listener[t];if(!o)return this.emitCache.push({eventName:t,args:n});o.forEach(i=>{i.fn.apply(i.fn,n)}),this.listener[t]=o.filter(i=>i.type!=="once")}on(t,n){this._addListener(t,"on",n),this._clearCache(t)}once(t,n){this._addListener(t,"once",n),this._clearCache(t)}off(t,n){const o=this.listener[t];if(o)if(n)for(let i=0;i<o.length;)o[i].fn===n&&(o.splice(i,1),i--),i++;else delete this.listener[t]}_clearCache(t){for(let n=0;n<this.emitCache.length;n++){const o=this.emitCache[n],i=t?o.eventName===t?t:null:o.eventName;if(!i)continue;if(typeof this.emit.apply(this,[i,...o.args])=="number"){this.emitCache.pop();continue}this.emitCache.splice(n,1),n--}}_addListener(t,n,o){(this.listener[t]||(this.listener[t]=[])).push({fn:o,type:n})}}const ja=[dt,ft,Lg,ht,Xe,Yn,Xn,Ug,$g,ka,Fg,Ia,Jn,Kn,Qn,Gg,wi,Na,jg,Jg,Kg,Yg,Xg,Hg,Wg,qg,zg,xa,Pa,Oa,Ra,Si,Dg];function cp(e,t,n=!0){return n&&!G(t)?!1:ja.indexOf(e)>-1?!0:e.indexOf("on")===0}let Ii;const Ya=[];function Xa(e){if(Ii)return e(Ii);Ya.push(e)}function lp(e){Ii=e,Ya.forEach(t=>t(e))}const up=ne((e,t)=>t(e)),Ja=function(){};Ja.prototype={_id:1,on:function(e,t,n){var o=this.e||(this.e={});return(o[e]||(o[e]=[])).push({fn:t,ctx:n,_id:this._id}),this._id++},once:function(e,t,n){var o=this;function i(){o.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),o=0,i=n.length;for(o;o<i;o++)n[o].fn.apply(n[o].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),o=n[e],i=[];if(o&&t){for(var r=o.length-1;r>=0;r--)if(o[r].fn===t||o[r].fn._===t||o[r]._id===t){o.splice(r,1);break}i=o}return i.length?n[e]=i:delete n[e],this}};var Ni=Ja;const Ka={black:"rgba(0,0,0,0.4)",white:"rgba(255,255,255,0.4)"};function dp(e){return e&&e in Ka?Ka[e]:e}function fp(e){return e==="black"?"#000000":"#ffffff"}function Qa(e,t,n){if(J(t)&&t.startsWith("@")){const o=t.replace("@","");let i=e[o]||t;switch(n){case"titleColor":i=fp(i);break;case"borderStyle":i=dp(i);break}return i}return t}function to(e,t={},n="light"){const o=t[n],i={};return typeof o=="undefined"||!e?e:(Object.keys(e).forEach(r=>{const a=e[r],s=()=>ce(a)?to(a,t,n):K(a)?a.map(c=>ce(c)?to(c,t,n):Qa(o,c)):Qa(o,a,r);i[r]=s()}),i)}const hp=e=>e!==null&&typeof e=="object",gp=["{","}"];class pp{constructor(){this._caches=Object.create(null)}interpolate(t,n,o=gp){if(!n)return[t];let i=this._caches[t];return i||(i=_p(t,o),this._caches[t]=i),yp(i,n)}}const mp=/^(?:\d)+/,vp=/^(?:\w)+/;function _p(e,[t,n]){const o=[];let i=0,r="";for(;i<e.length;){let a=e[i++];if(a===t){r&&o.push({type:"text",value:r}),r="";let s="";for(a=e[i++];a!==void 0&&a!==n;)s+=a,a=e[i++];const c=a===n,l=mp.test(s)?"list":c&&vp.test(s)?"named":"unknown";o.push({value:s,type:l})}else r+=a}return r&&o.push({type:"text",value:r}),o}function yp(e,t){const n=[];let o=0;const i=Array.isArray(t)?"list":hp(t)?"named":"unknown";if(i==="unknown")return n;for(;o<e.length;){const r=e[o];switch(r.type){case"text":n.push(r.value);break;case"list":n.push(t[parseInt(r.value,10)]);break;case"named":i==="named"&&n.push(t[r.value]);break}o++}return n}const Te="zh-Hans",Ve="zh-Hant",ye="en",Pe="fr",Oe="es",bp=Object.prototype.hasOwnProperty,Za=(e,t)=>bp.call(e,t),wp=new pp;function Sp(e,t){return!!t.find(n=>e.indexOf(n)!==-1)}function Tp(e,t){return t.find(n=>e.indexOf(n)===0)}function es(e,t){if(!e)return;if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),e==="chinese")return Te;if(e.indexOf("zh")===0)return e.indexOf("-hans")>-1?Te:e.indexOf("-hant")>-1||Sp(e,["-tw","-hk","-mo","-cht"])?Ve:Te;let n=[ye,Pe,Oe];t&&Object.keys(t).length>0&&(n=Object.keys(t));const o=Tp(e,n);if(o)return o}class Cp{constructor({locale:t,fallbackLocale:n,messages:o,watcher:i,formater:r}){this.locale=ye,this.fallbackLocale=ye,this.message={},this.messages={},this.watchers=[],n&&(this.fallbackLocale=n),this.formater=r||wp,this.messages=o||{},this.setLocale(t||ye),i&&this.watchLocale(i)}setLocale(t){const n=this.locale;this.locale=es(t,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],n!==this.locale&&this.watchers.forEach(o=>{o(this.locale,n)})}getLocale(){return this.locale}watchLocale(t){const n=this.watchers.push(t)-1;return()=>{this.watchers.splice(n,1)}}add(t,n,o=!0){const i=this.messages[t];i?o?Object.assign(i,n):Object.keys(n).forEach(r=>{Za(i,r)||(i[r]=n[r])}):this.messages[t]=n}f(t,n,o){return this.formater.interpolate(t,n,o).join("")}t(t,n,o){let i=this.message;return typeof n=="string"?(n=es(n,this.messages),n&&(i=this.messages[n])):o=n,Za(i,t)?this.formater.interpolate(i[t],o).join(""):(console.warn(`Cannot translate the value of keypath ${t}. Use the value of keypath as default.`),t)}}function Vp(e,t){e.$watchLocale?e.$watchLocale(n=>{t.setLocale(n)}):e.$watch(()=>e.$locale,n=>{t.setLocale(n)})}function Ap(){return typeof uni!="undefined"&&uni.getLocale?uni.getLocale():typeof global!="undefined"&&global.getLocale?global.getLocale():ye}function Ep(e,t={},n,o){if(typeof e!="string"){const a=[t,e];e=a[0],t=a[1]}typeof e!="string"&&(e=Ap()),typeof n!="string"&&(n=typeof __uniConfig!="undefined"&&__uniConfig.fallbackLocale||ye);const i=new Cp({locale:e,fallbackLocale:n,messages:t,watcher:o});let r=(a,s)=>{if(typeof getApp!="function")r=function(c,l){return i.t(c,l)};else{let c=!1;r=function(l,u){const d=getApp().$vm;return d&&(d.$locale,c||(c=!0,Vp(d,i))),i.t(l,u)}}return r(a,s)};return{i18n:i,f(a,s,c){return i.f(a,s,c)},t(a,s){return r(a,s)},add(a,s,c=!0){return i.add(a,s,c)},watch(a){return i.watchLocale(a)},getLocale(){return i.getLocale()},setLocale(a){return i.setLocale(a)}}}function ts(e,t){return e.indexOf(t[0])>-1}const no=ne(()=>typeof __uniConfig!="undefined"&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length);let an;function kp(){const e=uni.getLocale(),t=__uniConfig.locales;return t[e]||t[__uniConfig.fallbackLocale]||t.en||{}}function Ip(e){return ts(e,bi)?U().f(e,kp(),bi):e}function ns(e,t){if(t.length===1){if(e){const o=s=>J(s)&&ts(s,bi),i=t[0];let r=[];if(K(e)&&(r=e.filter(s=>o(s[i]))).length)return r;const a=e[t[0]];if(o(a))return e}return}const n=t.shift();return ns(e&&e[n],t)}function Np(e,t){return t.map(n=>oo(e,n))}function oo(e,t){const n=ns(e,t);if(!n)return!1;const o=t[t.length-1];if(K(n))n.forEach(i=>oo(i,[o]));else{let i=n[o];Object.defineProperty(n,o,{get(){return Ip(i)},set(r){i=r}})}return!0}function U(){if(!an){let e;if(e=navigator.cookieEnabled&&window.localStorage&&localStorage[Ea]||__uniConfig.locale||navigator.language,an=Ep(e),no()){const t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach(n=>an.add(n,__uniConfig.locales[n])),an.setLocale(e)}}return an}function H(e,t,n){return t.reduce((o,i,r)=>(o[e+i]=n[r],o),{})}const xp=ne(()=>{const e="uni.async.",t=["error"];__UNI_FEATURE_I18N_EN__&&U().add(ye,H(e,t,["The connection timed out, click the screen to try again."]),!1),__UNI_FEATURE_I18N_ES__&&U().add(Oe,H(e,t,["Se agotó el tiempo de conexión, haga clic en la pantalla para volver a intentarlo."]),!1),__UNI_FEATURE_I18N_FR__&&U().add(Pe,H(e,t,["La connexion a expiré, cliquez sur l'écran pour réessayer."]),!1),__UNI_FEATURE_I18N_ZH_HANS__&&U().add(Te,H(e,t,["连接服务器超时,点击屏幕重试"]),!1),__UNI_FEATURE_I18N_ZH_HANT__&&U().add(Ve,H(e,t,["連接服務器超時,點擊屏幕重試"]),!1)}),Mp=ne(()=>{const e="uni.showActionSheet.",t=["cancel"];__UNI_FEATURE_I18N_EN__&&U().add(ye,H(e,t,["Cancel"]),!1),__UNI_FEATURE_I18N_ES__&&U().add(Oe,H(e,t,["Cancelar"]),!1),__UNI_FEATURE_I18N_FR__&&U().add(Pe,H(e,t,["Annuler"]),!1),__UNI_FEATURE_I18N_ZH_HANS__&&U().add(Te,H(e,t,["取消"]),!1),__UNI_FEATURE_I18N_ZH_HANT__&&U().add(Ve,H(e,t,["取消"]),!1)}),Pp=ne(()=>{const e="uni.showToast.",t=["unpaired"];__UNI_FEATURE_I18N_EN__&&U().add(ye,H(e,t,["Please note showToast must be paired with hideToast"]),!1),__UNI_FEATURE_I18N_ES__&&U().add(Oe,H(e,t,["Tenga en cuenta que showToast debe estar emparejado con hideToast"]),!1),__UNI_FEATURE_I18N_FR__&&U().add(Pe,H(e,t,["Veuillez noter que showToast doit être associé à hideToast"]),!1),__UNI_FEATURE_I18N_ZH_HANS__&&U().add(Te,H(e,t,["请注意 showToast 与 hideToast 必须配对使用"]),!1),__UNI_FEATURE_I18N_ZH_HANT__&&U().add(Ve,H(e,t,["請注意 showToast 與 hideToast 必須配對使用"]),!1)}),Op=ne(()=>{const e="uni.showLoading.",t=["unpaired"];__UNI_FEATURE_I18N_EN__&&U().add(ye,H(e,t,["Please note showLoading must be paired with hideLoading"]),!1),__UNI_FEATURE_I18N_ES__&&U().add(Oe,H(e,t,["Tenga en cuenta que showLoading debe estar emparejado con hideLoading"]),!1),__UNI_FEATURE_I18N_FR__&&U().add(Pe,H(e,t,["Veuillez noter que showLoading doit être associé à hideLoading"]),!1),__UNI_FEATURE_I18N_ZH_HANS__&&U().add(Te,H(e,t,["请注意 showLoading 与 hideLoading 必须配对使用"]),!1),__UNI_FEATURE_I18N_ZH_HANT__&&U().add(Ve,H(e,t,["請注意 showLoading 與 hideLoading 必須配對使用"]),!1)}),Rp=ne(()=>{const e="uni.showModal.",t=["cancel","confirm"];__UNI_FEATURE_I18N_EN__&&U().add(ye,H(e,t,["Cancel","OK"]),!1),__UNI_FEATURE_I18N_ES__&&U().add(Oe,H(e,t,["Cancelar","OK"]),!1),__UNI_FEATURE_I18N_FR__&&U().add(Pe,H(e,t,["Annuler","OK"]),!1),__UNI_FEATURE_I18N_ZH_HANS__&&U().add(Te,H(e,t,["取消","确定"]),!1),__UNI_FEATURE_I18N_ZH_HANT__&&U().add(Ve,H(e,t,["取消","確定"]),!1)}),xi=ne(()=>{const e="uni.chooseFile.",t=["notUserActivation"];__UNI_FEATURE_I18N_EN__&&U().add(ye,H(e,t,["File chooser dialog can only be shown with a user activation"]),!1),__UNI_FEATURE_I18N_ES__&&U().add(Oe,H(e,t,["El cuadro de diálogo del selector de archivos solo se puede mostrar con la activación del usuario"]),!1),__UNI_FEATURE_I18N_FR__&&U().add(Pe,H(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),__UNI_FEATURE_I18N_ZH_HANS__&&U().add(Te,H(e,t,["文件选择器对话框只能在由用户激活时显示"]),!1),__UNI_FEATURE_I18N_ZH_HANT__&&U().add(Ve,H(e,t,["文件選擇器對話框只能在由用戶激活時顯示"]),!1)}),Lp=ne(()=>{const e="uni.setClipboardData.",t=["success","fail"];__UNI_FEATURE_I18N_EN__&&U().add(ye,H(e,t,["Content copied","Copy failed, please copy manually"]),!1),__UNI_FEATURE_I18N_ES__&&U().add(Oe,H(e,t,["Contenido copiado","Error al copiar, copie manualmente"]),!1),__UNI_FEATURE_I18N_FR__&&U().add(Pe,H(e,t,["Contenu copié","Échec de la copie, copiez manuellement"]),!1),__UNI_FEATURE_I18N_ZH_HANS__&&U().add(Te,H(e,t,["内容已复制","复制失败,请手动复制"]),!1),__UNI_FEATURE_I18N_ZH_HANT__&&U().add(Ve,H(e,t,["內容已復制","復制失敗,請手動復製"]),!1)}),Bp=ne(()=>{const e="uni.getClipboardData.",t=["fail"];__UNI_FEATURE_I18N_EN__&&U().add(ye,H(e,t,["Reading failed, please paste manually"]),!1),__UNI_FEATURE_I18N_ES__&&U().add(Oe,H(e,t,["Error de lectura, pegue manualmente"]),!1),__UNI_FEATURE_I18N_FR__&&U().add(Pe,H(e,t,["Échec de la lecture, veuillez coller manuellement"]),!1),__UNI_FEATURE_I18N_ZH_HANS__&&U().add(Te,H(e,t,["读取失败,请手动粘贴"]),!1),__UNI_FEATURE_I18N_ZH_HANT__&&U().add(Ve,H(e,t,["讀取失敗,請手動粘貼"]),!1)}),Dp=ne(()=>{const e="uni.picker.",t=["done","cancel"];__UNI_FEATURE_I18N_EN__&&U().add(ye,H(e,t,["Done","Cancel"]),!1),__UNI_FEATURE_I18N_ES__&&U().add(Oe,H(e,t,["OK","Cancelar"]),!1),__UNI_FEATURE_I18N_FR__&&U().add(Pe,H(e,t,["OK","Annuler"]),!1),__UNI_FEATURE_I18N_ZH_HANS__&&U().add(Te,H(e,t,["完成","取消"]),!1),__UNI_FEATURE_I18N_ZH_HANT__&&U().add(Ve,H(e,t,["完成","取消"]),!1)}),Up=ne(()=>{const e="uni.video.",t=["danmu","volume"];__UNI_FEATURE_I18N_EN__&&U().add(ye,H(e,t,["Danmu","Volume"]),!1),__UNI_FEATURE_I18N_ES__&&U().add(Oe,H(e,t,["Danmu","Volumen"]),!1),__UNI_FEATURE_I18N_FR__&&U().add(Pe,H(e,t,["Danmu","Le Volume"]),!1),__UNI_FEATURE_I18N_ZH_HANS__&&U().add(Te,H(e,t,["弹幕","音量"]),!1),__UNI_FEATURE_I18N_ZH_HANT__&&U().add(Ve,H(e,t,["彈幕","音量"]),!1)}),Fp=ne(()=>{const e="uni.chooseLocation.",t=["search","cancel"];__UNI_FEATURE_I18N_EN__&&U().add(ye,H(e,t,["Find Place","Cancel"]),!1),__UNI_FEATURE_I18N_ES__&&U().add(Oe,H(e,t,["Encontrar","Cancelar"]),!1),__UNI_FEATURE_I18N_FR__&&U().add(Pe,H(e,t,["Trouve","Annuler"]),!1),__UNI_FEATURE_I18N_ZH_HANS__&&U().add(Te,H(e,t,["搜索地点","取消"]),!1),__UNI_FEATURE_I18N_ZH_HANT__&&U().add(Ve,H(e,t,["搜索地點","取消"]),!1)});function $p(e){if(no())return Np(e,[["titleText"],["searchInput","placeholder"],["buttons","text"]])}function zp(e){return no()&&e.list&&e.list.forEach(t=>{oo(t,["text"])}),no()&&e.midButton&&oo(e.midButton,["text"]),e}function os(e){const t=new Ni;return{on(n,o){return t.on(n,o)},once(n,o){return t.once(n,o)},off(n,o){return t.off(n,o)},emit(n,...o){return t.emit(n,...o)},subscribe(n,o,i=!1){t[i?"once":"on"](`${e}.${n}`,o)},unsubscribe(n,o){t.off(`${e}.${n}`,o)},subscribeHandler(n,o,i){t.emit(`${e}.${n}`,o,i)}}}const Nt="invokeViewApi",is="invokeServiceApi";let Hp=1;const Wp=(e,t,n)=>{const{subscribe:o,publishHandler:i}=UniViewJSBridge,r=n?Hp++:0;n&&o(is+"."+r,n,!0),i(is,{id:r,name:e,args:t})},xt=Object.create(null);function sn(e,t){return e+"."+t}function qp(e,t){UniViewJSBridge.subscribe(sn(e,Nt),Yp)}function Gp(e){UniViewJSBridge.unsubscribe(sn(e,Nt)),Object.keys(xt).forEach(t=>{t.indexOf(e+".")===0&&delete xt[t]})}function rs(e,t,n){t=sn(e,t),xt[t]||(xt[t]=n)}function jp(e,t){t=sn(e,t),delete xt[t]}function Yp({id:e,name:t,args:n},o){t=sn(o,t);const i=a=>{e&&UniViewJSBridge.publishHandler(Nt+"."+e,a)},r=xt[t];r?r(n,i):i({})}const Xp=L(os("service"),{invokeServiceMethod:Wp}),Jp=350,as=10,io=It(!0);let cn;function ln(){cn&&(clearTimeout(cn),cn=null)}let ss=0,cs=0;function Kp(e){if(ln(),e.touches.length!==1)return;const{pageX:t,pageY:n}=e.touches[0];ss=t,cs=n,cn=setTimeout(function(){const o=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});o.touches=e.touches,o.changedTouches=e.changedTouches,e.target.dispatchEvent(o)},Jp)}function Qp(e){if(!cn)return;if(e.touches.length!==1)return ln();const{pageX:t,pageY:n}=e.touches[0];if(Math.abs(t-ss)>as||Math.abs(n-cs)>as)return ln()}function Zp(){window.addEventListener("touchstart",Kp,io),window.addEventListener("touchmove",Qp,io),window.addEventListener("touchend",ln,io),window.addEventListener("touchcancel",ln,io)}function ls(e,t){const n=Number(e);return isNaN(n)?t:n}const us=()=>/^Apple/.test(navigator.vendor);function em(){const e=us()&&typeof window.orientation=="number",t=e&&Math.abs(window.orientation)===90;var n=e?Math[t?"max":"min"](screen.width,screen.height):screen.width,o=e?Math.min(window.innerWidth,document.documentElement.clientWidth,n)||n:Math.min(window.innerWidth,document.documentElement.clientWidth);return o}function tm(){const e=__uniConfig.globalStyle||{},t=ls(e.rpxCalcMaxDeviceWidth,960),n=ls(e.rpxCalcBaseDeviceWidth,375);function o(){let i=em();i=i<=t?i:n,document.documentElement.style.fontSize=i/23.4375+"px"}o(),document.addEventListener("DOMContentLoaded",o),window.addEventListener("load",o),window.addEventListener("resize",o),us()&&window.addEventListener("orientationchange",()=>{o(),setTimeout(o,50)})}function nm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ds=["top","left","right","bottom"],Mi,ro={},Re;function Pi(){return!("CSS"in window)||typeof CSS.supports!="function"?Re="":CSS.supports("top: env(safe-area-inset-top)")?Re="env":CSS.supports("top: constant(safe-area-inset-top)")?Re="constant":Re="",Re}function fs(){if(Re=typeof Re=="string"?Re:Pi(),!Re){ds.forEach(function(s){ro[s]=0});return}function e(s,c){var l=s.style;Object.keys(c).forEach(function(u){var d=c[u];l[u]=d})}var t=[];function n(s){s?t.push(s):t.forEach(function(c){c()})}var o=!1;try{var i=Object.defineProperty({},"passive",{get:function(){o={passive:!0}}});window.addEventListener("test",null,i)}catch(s){}function r(s,c){var l=document.createElement("div"),u=document.createElement("div"),d=document.createElement("div"),h=document.createElement("div"),g=100,v=1e4,_={position:"absolute",width:g+"px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:Re+"(safe-area-inset-"+c+")"};e(l,_),e(u,_),e(d,{transition:"0s",animation:"none",width:"400px",height:"400px"}),e(h,{transition:"0s",animation:"none",width:"250%",height:"250%"}),l.appendChild(d),u.appendChild(h),s.appendChild(l),s.appendChild(u),n(function(){l.scrollTop=u.scrollTop=v;var w=l.scrollTop,C=u.scrollTop;function f(){this.scrollTop!==(this===l?w:C)&&(l.scrollTop=u.scrollTop=v,w=l.scrollTop,C=u.scrollTop,om(c))}l.addEventListener("scroll",f,o),u.addEventListener("scroll",f,o)});var m=getComputedStyle(l);Object.defineProperty(ro,c,{configurable:!0,get:function(){return parseFloat(m.paddingBottom)}})}var a=document.createElement("div");e(a,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),ds.forEach(function(s){r(a,s)}),document.body.appendChild(a),n(),Mi=!0}function ao(e){return Mi||fs(),ro[e]}var so=[];function om(e){so.length||setTimeout(function(){var t={};so.forEach(function(n){t[n]=ro[n]}),so.length=0,co.forEach(function(n){n(t)})},0),so.push(e)}var co=[];function im(e){Pi()&&(Mi||fs(),typeof e=="function"&&co.push(e))}function rm(e){var t=co.indexOf(e);t>=0&&co.splice(t,1)}var am={get support(){return(typeof Re=="string"?Re:Pi()).length!=0},get top(){return ao("top")},get left(){return ao("left")},get right(){return ao("right")},get bottom(){return ao("bottom")},onChange:im,offChange:rm},sm=am;const he=nm(sm),Je=Vue.withModifiers(()=>{},["prevent"]),un=Vue.withModifiers(e=>{},["stop"]);function dn(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function lo(){const e=document.documentElement.style,t=dn(e,"--window-top");return t?t+he.top:0}function hs(){const e=document.documentElement.style,t=lo(),n=dn(e,"--window-bottom"),o=dn(e,"--window-left"),i=dn(e,"--window-right"),r=dn(e,"--top-window-height");return{top:t,bottom:n?n+he.bottom:0,left:o?o+he.left:0,right:i?i+he.right:0,topWindowHeight:r||0}}function Ue(e){const t=document.documentElement.style;Object.keys(e).forEach(n=>{t.setProperty(n,e[n])})}function gs(e){return Ue(e)}const uo=new Map;function cm(e,t){let n=uo.get(e);n&&!(n instanceof HTMLStyleElement)&&(lm(e),n=void 0),n?n.innerHTML=t:(n=document.createElement("style"),n.setAttribute("type","text/css"),n.innerHTML=t,document.head.appendChild(n)),uo.set(e,n)}function lm(e){let t=uo.get(e);t&&(t instanceof CSSStyleSheet?document.adoptedStyleSheets=document.adoptedStyleSheets.filter(n=>n!==t):document.head.removeChild(t),uo.delete(e))}function fn(e){return Symbol(e)}function ps(e){return e=e+"",e.indexOf("rpx")!==-1||e.indexOf("upx")!==-1}function Ge(e,t=!1){if(t)return um(e);if(J(e)){const n=parseInt(e)||0;return ps(e)?uni.upx2px(n):n}return e}function um(e){return ps(e)?e.replace(/(\d+(\.\d+)?)[ru]px/g,(t,n)=>uni.upx2px(parseFloat(n))+"px"):e}function ms(e){return e.$page}function Oi(e){return e.tagName.indexOf("UNI-")===0}const dm="M20.928 10.176l-4.928 4.928-4.928-4.928-0.896 0.896 4.928 4.928-4.928 4.928 0.896 0.896 4.928-4.928 4.928 4.928 0.896-0.896-4.928-4.928 4.928-4.928-0.896-0.896zM16 2.080q-3.776 0-7.040 1.888-3.136 1.856-4.992 4.992-1.888 3.264-1.888 7.040t1.888 7.040q1.856 3.136 4.992 4.992 3.264 1.888 7.040 1.888t7.040-1.888q3.136-1.856 4.992-4.992 1.888-3.264 1.888-7.040t-1.888-7.040q-1.856-3.136-4.992-4.992-3.264-1.888-7.040-1.888zM16 28.64q-3.424 0-6.4-1.728-2.848-1.664-4.512-4.512-1.728-2.976-1.728-6.4t1.728-6.4q1.664-2.848 4.512-4.512 2.976-1.728 6.4-1.728t6.4 1.728q2.848 1.664 4.512 4.512 1.728 2.976 1.728 6.4t-1.728 6.4q-1.664 2.848-4.512 4.512-2.976 1.728-6.4 1.728z",fm="M16 0q-4.352 0-8.064 2.176-3.616 2.144-5.76 5.76-2.176 3.712-2.176 8.064t2.176 8.064q2.144 3.616 5.76 5.76 3.712 2.176 8.064 2.176t8.064-2.176q3.616-2.144 5.76-5.76 2.176-3.712 2.176-8.064t-2.176-8.064q-2.144-3.616-5.76-5.76-3.712-2.176-8.064-2.176zM22.688 21.408q0.32 0.32 0.304 0.752t-0.336 0.736-0.752 0.304-0.752-0.32l-5.184-5.376-5.376 5.184q-0.32 0.32-0.752 0.304t-0.736-0.336-0.304-0.752 0.32-0.752l5.376-5.184-5.184-5.376q-0.32-0.32-0.304-0.752t0.336-0.752 0.752-0.304 0.752 0.336l5.184 5.376 5.376-5.184q0.32-0.32 0.752-0.304t0.752 0.336 0.304 0.752-0.336 0.752l-5.376 5.184 5.184 5.376z",hm="M15.808 1.696q-3.776 0-7.072 1.984-3.2 1.888-5.088 5.152-1.952 3.392-1.952 7.36 0 3.776 1.952 7.072 1.888 3.2 5.088 5.088 3.296 1.952 7.072 1.952 3.968 0 7.36-1.952 3.264-1.888 5.152-5.088 1.984-3.296 1.984-7.072 0-4-1.984-7.36-1.888-3.264-5.152-5.152-3.36-1.984-7.36-1.984zM20.864 18.592l-3.776 4.928q-0.448 0.576-1.088 0.576t-1.088-0.576l-3.776-4.928q-0.448-0.576-0.24-0.992t0.944-0.416h2.976v-8.928q0-0.256 0.176-0.432t0.4-0.176h1.216q0.224 0 0.4 0.176t0.176 0.432v8.928h2.976q0.736 0 0.944 0.416t-0.24 0.992z",gm="M15.808 0.128q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.176 3.776-2.176 8.16 0 4.224 2.176 7.872 2.080 3.552 5.632 5.632 3.648 2.176 7.872 2.176 4.384 0 8.16-2.176 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.416-2.176-8.16-2.112-3.616-5.728-5.728-3.744-2.176-8.16-2.176zM16.864 23.776q0 0.064-0.064 0.064h-1.568q-0.096 0-0.096-0.064l-0.256-11.328q0-0.064 0.064-0.064h2.112q0.096 0 0.064 0.064l-0.256 11.328zM16 10.88q-0.576 0-0.976-0.4t-0.4-0.96 0.4-0.96 0.976-0.4 0.976 0.4 0.4 0.96-0.4 0.96-0.976 0.4z",vs="M20.928 22.688q-1.696 1.376-3.744 2.112-2.112 0.768-4.384 0.768-3.488 0-6.464-1.728-2.88-1.696-4.576-4.608-1.76-2.976-1.76-6.464t1.76-6.464q1.696-2.88 4.576-4.576 2.976-1.76 6.464-1.76t6.464 1.76q2.912 1.696 4.608 4.576 1.728 2.976 1.728 6.464 0 2.272-0.768 4.384-0.736 2.048-2.112 3.744l9.312 9.28-1.824 1.824-9.28-9.312zM12.8 23.008q2.784 0 5.184-1.376 2.304-1.376 3.68-3.68 1.376-2.4 1.376-5.184t-1.376-5.152q-1.376-2.336-3.68-3.68-2.4-1.408-5.184-1.408t-5.152 1.408q-2.336 1.344-3.68 3.68-1.408 2.368-1.408 5.152t1.408 5.184q1.344 2.304 3.68 3.68 2.368 1.376 5.152 1.376zM12.8 23.008v0z",hn="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",pm="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.176zM24.832 11.328l-11.264 11.104q-0.032 0.032-0.112 0.032t-0.112-0.032l-5.216-5.376q-0.096-0.128 0-0.288l0.704-0.96q0.032-0.064 0.112-0.064t0.112 0.032l4.256 3.264q0.064 0.032 0.144 0.032t0.112-0.032l10.336-8.608q0.064-0.064 0.144-0.064t0.112 0.064l0.672 0.672q0.128 0.128 0 0.224z",mm="M15.84 0.096q-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.176zM23.008 21.92l-0.512 0.896q-0.096 0.128-0.224 0.064l-8-3.808q-0.096-0.064-0.16-0.128-0.128-0.096-0.128-0.288l0.512-12.096q0-0.064 0.048-0.112t0.112-0.048h1.376q0.064 0 0.112 0.048t0.048 0.112l0.448 10.848 6.304 4.256q0.064 0.064 0.080 0.128t-0.016 0.128z",_s="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",gn="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",Ri="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",ys="M31.562 4.9966666659375q0.435 0.399 0.435 0.87 0.036 0.58-0.399 0.98l-18.61 19.917q-0.145 0.145-0.327 0.217-0.073 0.037-0.145 0.11-0.254 0.035-0.472 0.035-0.29 0-0.544-0.036l-0.145-0.072q-0.109-0.073-0.217-0.182l-0.11-0.072L0.363 16.2786666659375q-0.327-0.399-0.363-0.907 0-0.544 0.363-1.016 0.435-0.326 0.961-0.362 0.527-0.036 0.962 0.362l9.722 9.542L29.712 5.0326666659375q0.399-0.363 0.943-0.363 0.544-0.036 0.907 0.327z";function le(e,t="#000",n=27){return Vue.createVNode("svg",{width:n,height:n,viewBox:"0 0 32 32"},[Vue.createVNode("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function pn(){{const{$pageInstance:e}=Vue.getCurrentInstance();return e&&mn(e.proxy)}}function Ae(e){const t=rn(e);if(t.$page)return mn(t);if(!t.$)return;{const{$pageInstance:o}=t.$;if(o)return mn(o.proxy)}const n=t.$.root.proxy;if(n&&n.$page)return mn(n)}function gt(){const e=getCurrentPages(),t=e.length;if(t)return e[t-1]}function Mt(){var e;const t=(e=gt())==null?void 0:e.$page;if(t)return t.meta}function pt(){const e=Mt();return e?e.id:-1}function Ee(){const e=gt();if(e)return e.$vm}const vm=["navigationBar","pullToRefresh"];function _m(){return JSON.parse(JSON.stringify(__uniConfig.globalStyle||{}))}function bs(e,t){const n=_m(),o=L({id:t},n,e);vm.forEach(r=>{o[r]=L({},n[r],e[r])});const{navigationBar:i}=o;return i.titleText&&i.titleImage&&(i.titleText=""),o}function ym(e){return e.offset&&(e.offset=Ge(e.offset)),e.height&&(e.height=Ge(e.height)),e.range&&(e.range=Ge(e.range)),e}function ws(e,t,n,o,i,r){const{id:a,route:s}=o,c=to(o.navigationBar,__uniConfig.themeConfig,r).titleColor;return{id:a,path:qe(s),route:s,fullPath:t,options:n,meta:o,openType:e,eventChannel:i,statusBarStyle:c==="#ffffff"?"light":"dark"}}function mn(e){var t,n;return((t=e.$page)==null?void 0:t.id)||((n=e.$basePage)==null?void 0:n.id)}function bm(e,t,n){const o=e.$[t];K(o)&&n.__weh&&Se(o,n.__weh)}function re(e,t,n){if(J(e))n=t,t=e,e=Ee();else if(typeof e=="number"){const i=getCurrentPages().find(r=>ms(r).id===e);i?e=i.$vm:e=Ee()}if(!e)return;const o=e.$[t];return t===Kn?o&&np(o,n).some(i=>i===!0):o&&tp(o,n)}function Ss(e){e.preventDefault()}let Ts,Cs=0;function wm({onPageScroll:e,onReachBottom:t,onReachBottomDistance:n}){let o=!1,i=!1,r=!0;const a=()=>{const{scrollHeight:c}=document.documentElement,l=window.innerHeight,u=window.scrollY,d=u>0&&c>l&&u+l+n>=c,h=Math.abs(c-Cs)>n;return d&&(!i||h)?(Cs=c,i=!0,!0):(!d&&i&&(i=!1),!1)},s=()=>{e&&e(window.pageYOffset);function c(){if(a())return t&&t(),r=!1,setTimeout(function(){r=!0},350),!0}t&&r&&(c()||(Ts=setTimeout(c,300))),o=!1};return function(){clearTimeout(Ts),o||requestAnimationFrame(s),o=!0}}function Sm(e){if(e.indexOf("/")===0||e.indexOf("uni:")===0)return e;let t="";const n=getCurrentPages();return n.length&&(t=ms(n[n.length-1]).route),Li(t,e)}function Li(e,t){if(t.indexOf("/")===0)return t;if(t.indexOf("./")===0)return Li(e,t.slice(2));const n=t.split("/"),o=n.length;let i=0;for(;i<o&&n[i]==="..";i++);n.splice(0,i),t=n.join("/");const r=e.length>0?e.split("/"):[];return r.splice(r.length-i-1,i+1),qe(r.concat(n).join("/"))}function vn(e,t=!1){return t?__uniRoutes.find(n=>n.path===e||n.alias===e):__uniRoutes.find(n=>n.path===e)}function Tm(e,t,n){const o=vn(qe(t));if(o){const{meta:r}=o;delete r.tabBarIndex,r.isQuit=r.isTabBar=!1}const i=vn(qe(n));if(i){const{meta:r}=i;r.tabBarIndex=e,r.isQuit=r.isTabBar=!0;const a=__uniConfig.tabBar;a&&a.list&&a.list[e]&&(a.list[e].pagePath=za(n))}}function Cm(){tm(),op(Oi),__UNI_FEATURE_LONGPRESS__&&Zp()}class Vm{constructor(t){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=t,this.$el=Zn(t.$),this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(t){if(!this.$el||!t)return;const n=As(this.$el.querySelector(t));if(n)return Bi(n,!1)}selectAllComponents(t){if(!this.$el||!t)return[];const n=[],o=this.$el.querySelectorAll(t);for(let i=0;i<o.length;i++){const r=As(o[i]);r&&n.push(Bi(r,!1))}return n}forceUpdate(t){t==="class"?this.$bindClass?(this.$el.__wxsClassChanged=!0,this.$vm.$forceUpdate()):this.updateWxsClass():t==="style"&&(this.$bindStyle?(this.$el.__wxsStyleChanged=!0,this.$vm.$forceUpdate()):this.updateWxsStyle())}updateWxsClass(){const{__wxsAddClass:t}=this.$el;t.length&&(this.$el.className=t.join(" "))}updateWxsStyle(){const{__wxsStyle:t}=this.$el;t&&this.$el.setAttribute("style",Ag(t))}setStyle(t){return!this.$el||!t?this:(J(t)&&(t=Vg(t)),ce(t)&&(this.$el.__wxsStyle=t,this.forceUpdate("style")),this)}addClass(t){if(!this.$el||!t)return this;const n=this.$el.__wxsAddClass||(this.$el.__wxsAddClass=[]);return n.indexOf(t)===-1&&(n.push(t),this.forceUpdate("class")),this}removeClass(t){if(!this.$el||!t)return this;const{__wxsAddClass:n}=this.$el;if(n){const i=n.indexOf(t);i>-1&&n.splice(i,1)}const o=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return o.indexOf(t)===-1&&(o.push(t),this.forceUpdate("class")),this}hasClass(t){return this.$el&&this.$el.classList.contains(t)}getDataset(){return this.$el&&this.$el.dataset}callMethod(t,n={}){const o=this.$vm[t];G(o)?o(JSON.parse(JSON.stringify(n))):this.$vm.ownerId&&UniViewJSBridge.publishHandler(Qg,{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:t,args:n})}requestAnimationFrame(t){return window.requestAnimationFrame(t)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(t,n={}){return this.$vm.$emit(t,n),this}getComputedStyle(t){if(this.$el){const n=window.getComputedStyle(this.$el);return t&&t.length?t.reduce((o,i)=>(o[i]=n[i],o),{}):n}return{}}setTimeout(t,n){return window.setTimeout(t,n)}clearTimeout(t){return window.clearTimeout(t)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function Bi(e,t=!0){if(t&&e&&(e=Ua(e.$)),e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new Vm(e)),e.$el.__wxsComponentDescriptor}function Di(e,t){return Bi(e,t)}function Am(e,t,n=!0){if(!t||n&&e.length<2)return!1;const o=Ua(t);if(!o)return!1;const i=o.$.type;return!i.$wxs&&!i.$renderjs?!1:o}function Vs(e,t,n,o=!0){if(t){e.__instance||(e.__instance=!0,Object.defineProperty(e,"instance",{get(){return Di(n.proxy,!1)}}));const i=Am(t,n,o);if(i)return[e,Di(i,!1)]}}function As(e){if(e)return e.__vueParentComponent&&e.__vueParentComponent.proxy}const Em=e=>!e.type.indexOf("key")&&e instanceof KeyboardEvent,km=e=>e.type==="click",Im=e=>e.type.indexOf("mouse")===0||["contextmenu"].includes(e.type),Nm=e=>typeof TouchEvent!="undefined"&&e instanceof TouchEvent||e.type.indexOf("touch")===0||["longpress"].indexOf(e.type)>=0;function xm(e,t,n){const{currentTarget:o}=e;if(!(e instanceof Event)||!(o instanceof HTMLElement))return[e];const i=!Oi(o);if(i)return Vs(e,t,n,!1)||[e];const r=Ui(e,i);if(km(e))Om(r,e);else if(Im(e))Rm(r,e);else if(Nm(e)){const a=lo();r.touches=ks(e.touches,a),r.changedTouches=ks(e.changedTouches,a)}else Em(e)&&["key","code"].forEach(s=>{Object.defineProperty(r,s,{get(){return e[s]}})});return Vs(r,t,n)||[r]}function Mm(e){for(;!Oi(e);)e=e.parentElement;return e}function Ui(e,t=!1){const{type:n,timeStamp:o,target:i,currentTarget:r}=e;let a,s;a=Vi(t?i:Mm(i)),s=Vi(r);const c={type:n,timeStamp:o,target:a,detail:{},currentTarget:s};return e instanceof CustomEvent&&ce(e.detail)&&(c.detail=e.detail),e._stopped&&(c._stopped=!0),e.type.startsWith("touch")&&(c.touches=e.touches,c.changedTouches=e.changedTouches),Pm(c,e),c}function Pm(e,t){L(e,{preventDefault(){return t.preventDefault()},stopPropagation(){return t.stopPropagation()}})}function Om(e,t){const{x:n,y:o}=t,i=lo();e.detail={x:n,y:o-i},e.touches=e.changedTouches=[Es(t,i)]}function Rm(e,t){const n=lo();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[Es(t,n)]}function Es(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function ks(e,t){const n=[];for(let o=0;o<e.length;o++){const{identifier:i,pageX:r,pageY:a,clientX:s,clientY:c,force:l}=e[o];n.push({identifier:i,pageX:r,pageY:a-t,clientX:s,clientY:c-t,force:l||0})}return n}const Lm=Object.defineProperty({__proto__:null,$nne:xm,createNativeEvent:Ui},Symbol.toStringTag,{value:"Module"});function Bm(e){const t=e.globalProperties;L(t,Lm),__UNI_FEATURE_WXS__&&(t.$gcd=Di)}function Dm(e){Bm(e._context.config)}const Um=(e,t)=>UniServiceJSBridge.emit("api."+e,t);let Is=1;function Ns(e){return(e||pt())+"."+Nt}const Fm=L(os("view"),{invokeOnCallback:Um,invokeViewMethod:(e,t,n,o)=>{const{subscribe:i,publishHandler:r}=UniServiceJSBridge,a=o?Is++:0;o&&i(Nt+"."+a,o,!0),r(Ns(n),{id:a,name:e,args:t},n)},invokeViewMethodKeepAlive:(e,t,n,o)=>{const{subscribe:i,unsubscribe:r,publishHandler:a}=UniServiceJSBridge,s=Is++,c=Nt+"."+s;return i(c,n),a(Ns(o),{id:s,name:e,args:t},o),()=>{r(c)}}});function $m(){const{on:e}=UniServiceJSBridge;e(Jn,zm),e(La,Hm),e(Ba,Wm)}function zm(e){const t=gt();re(t,Jn,e),UniServiceJSBridge.invokeOnCallback("onWindowResize",e)}function Hm(e){const t=gt();re(getApp(),dt,e),re(t,dt)}function Wm(){re(getApp(),ft),re(gt(),ft)}const qm=[Qn,wi];function Gm(){qm.forEach(e=>UniServiceJSBridge.subscribe(e,jm(e)))}function jm(e){return(t,n)=>{re(parseInt(n),e,t)}}function Ym(){$m(),Gm()}function Xm(e){e.$vm=e,e.$mpType="app";const t=Vue.ref(U().getLocale());Object.defineProperty(e,"$locale",{get(){return t.value},set(n){t.value=n}})}function Jm(e,t){e.route=t.route,e.$vm=e,e.$page=t,e.$mpType="page",e.$fontFamilySet=new Set,t.meta.isTabBar&&(e.$.__isTabBar=!0,e.$.__isActive=!0)}function Km(e,t){const n=e.$el.querySelector(t);return n&&n.__vue__}function Qm(e,t){const n=e.$el.querySelectorAll(t);return n?[...n].map(o=>o.__vue__).filter(Boolean):[]}function Zm(){return uni.createSelectorQuery().in(this)}function e0(){return uni.createMediaQueryObserver(this)}function t0(e){return uni.createIntersectionObserver(this,e)}function n0(e){return Km(this,e)}function o0(e){return Qm(this,e)}const i0=Object.defineProperty({__proto__:null,createIntersectionObserver:t0,createMediaQueryObserver:e0,createSelectorQuery:Zm,selectAllComponents:o0,selectComponent:n0},Symbol.toStringTag,{value:"Module"});function r0(){if(this.$route){const e=this.$route.meta;return e.eventChannel||(e.eventChannel=new Ga(this.$page.id)),e.eventChannel}}function a0(e){const t=e.globalProperties;t.getOpenerEventChannel=r0,__UNI_FEATURE_WX__&&L(t,i0)}function s0(e){a0(e._context.config)}function xs(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}function c0(e,t){const n=e.$options||{};n.globalData=L(n.globalData||{},t),Object.defineProperty(e,"globalData",{get(){return n.globalData},set(o){n.globalData=o}})}function Ms(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,(t,n)=>`${uni.upx2px(parseFloat(n))}px`):/^-?[\d\.]+$/.test(e)?`${e}px`:e||""}function l0(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`).replace("webkit","-webkit")}function u0(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"],i=["width","height","left","right","top","bottom"],r=e.animates,a=e.option,s=a.transition,c={},l=[];return r.forEach(u=>{let d=u.type,h=[...u.args];if(t.concat(n).includes(d))d.startsWith("rotate")||d.startsWith("skew")?h=h.map(g=>parseFloat(g)+"deg"):d.startsWith("translate")&&(h=h.map(Ms)),n.indexOf(d)>=0&&(h.length=1),l.push(`${d}(${h.join(",")})`);else if(o.concat(i).includes(h[0])){d=h[0];const g=h[1];c[d]=i.includes(d)?Ms(g):g}}),c.transform=c.webkitTransform=l.join(" "),c.transition=c.webkitTransition=Object.keys(c).map(u=>`${l0(u)} ${s.duration}ms ${s.timingFunction} ${s.delay}ms`).join(","),c.transformOrigin=c.webkitTransformOrigin=a.transformOrigin,c}function Ps(e){const t=e.animation;if(!t||!t.actions||!t.actions.length)return;let n=0;const o=t.actions,i=t.actions.length;function r(){const a=o[n],s=a.option.transition,c=u0(a);Object.keys(c).forEach(l=>{e.$el.style[l]=c[l]}),n+=1,n<i&&setTimeout(r,s.duration+s.delay)}setTimeout(()=>{r()},0)}const d0={props:["animation"],watch:{animation:{deep:!0,handler(){Ps(this)}}},mounted(){Ps(this)}},X=e=>{e.__reserved=!0;const{props:t,mixins:n}=e;return(!t||!t.animation)&&(n||(e.mixins=[])).push(d0),ge(e)},ge=e=>(e.__reserved=!0,e.compatConfig={MODE:3},Vue.defineComponent(e)),Pt=e=>X({name:yi(Ca(e)),setup(){return()=>(Vue.openBlock(),Vue.createElementBlock("uni-"+e,null,e+" is unsupported"))}});function oe(e){return e.__wwe=!0,e}function pe(e,t){return(n,o,i)=>{e.value&&t(n,h0(n,o,e.value,i||{}))}}function f0(e){return(t,n)=>{e(t,Ui(n))}}function h0(e,t,n,o){let i;return i=Vi(n),{type:t.__evName||o.type||e,timeStamp:t.timeStamp||0,target:i,currentTarget:i,detail:o}}const g0={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function Fi(e){const t=Vue.ref(!1);let n=!1,o,i;function r(){requestAnimationFrame(()=>{clearTimeout(i),i=setTimeout(()=>{t.value=!1},parseInt(e.hoverStayTime))})}function a(v){v.touches.length>1||c(v)}function s(v){n||(c(v),window.addEventListener("mouseup",h))}function c(v){v._hoverPropagationStopped||!e.hoverClass||e.hoverClass==="none"||e.disabled||(e.hoverStopPropagation&&(v._hoverPropagationStopped=!0),n=!0,o=setTimeout(()=>{t.value=!0,n||r()},parseInt(e.hoverStartTime)))}function l(){d()}function u(){n&&h()}function d(){n=!1,t.value&&r()}function h(){d(),window.removeEventListener("mouseup",h)}function g(){n=!1,t.value=!1,clearTimeout(o)}return{hovering:t,binding:{onTouchstartPassive:oe(a),onMousedown:oe(s),onTouchend:oe(l),onMouseup:oe(u),onTouchcancel:oe(g)}}}function mt(e,t){return J(t)&&(t=[t]),t.reduce((n,o)=>(e[o]&&(n[o]=!0),n),Object.create(null))}const Fe=fn("uf"),p0=X({name:"Form",emits:["submit","reset"],setup(e,{slots:t,emit:n}){const o=Vue.ref(null);return m0(pe(o,n)),()=>Vue.createVNode("uni-form",{ref:o},[Vue.createVNode("span",null,[t.default&&t.default()])],512)}});function m0(e){const t=[];return Vue.provide(Fe,{addField(n){t.push(n)},removeField(n){t.splice(t.indexOf(n),1)},submit(n){e("submit",n,{value:t.reduce((o,i)=>{if(i.submit){const[r,a]=i.submit();r&&(o[r]=a)}return o},Object.create(null))})},reset(n){t.forEach(o=>o.reset&&o.reset()),e("reset",n)}}),t}const v0={for:{type:String,default:""}},_n=fn("ul");function _0(){const e=[];return Vue.provide(_n,{addHandler(t){e.push(t)},removeHandler(t){e.splice(e.indexOf(t),1)}}),e}const y0=X({name:"Label",props:v0,setup(e,{slots:t}){const n=Vue.ref(null),o=pn(),i=_0(),r=Vue.computed(()=>e.for||t.default&&t.default.length),a=oe(s=>{const c=s.target;let l=/^uni-(checkbox|radio|switch)-/.test(c.className);l||(l=/^uni-(checkbox|radio|switch|button)$|^(svg|path)$/i.test(c.tagName)),!l&&(e.for?UniViewJSBridge.emit("uni-label-click-"+o+"-"+e.for,s,!0):i.length&&i[0](s,!0))});return()=>Vue.createVNode("uni-label",{ref:n,class:{"uni-label-pointer":r},onClick:a},[t.default&&t.default()],10,["onClick"])}});function fo(e,t){Os(e.id,t),Vue.watch(()=>e.id,(n,o)=>{Rs(o,t,!0),Os(n,t,!0)}),Vue.onUnmounted(()=>{Rs(e.id,t)})}function Os(e,t,n){const o=pn();n&&!e||ce(t)&&Object.keys(t).forEach(i=>{n?i.indexOf("@")!==0&&i.indexOf("uni-")!==0&&UniViewJSBridge.on(`uni-${i}-${o}-${e}`,t[i]):i.indexOf("uni-")===0?UniViewJSBridge.on(i,t[i]):e&&UniViewJSBridge.on(`uni-${i}-${o}-${e}`,t[i])})}function Rs(e,t,n){const o=pn();n&&!e||ce(t)&&Object.keys(t).forEach(i=>{n?i.indexOf("@")!==0&&i.indexOf("uni-")!==0&&UniViewJSBridge.off(`uni-${i}-${o}-${e}`,t[i]):i.indexOf("uni-")===0?UniViewJSBridge.off(i,t[i]):e&&UniViewJSBridge.off(`uni-${i}-${o}-${e}`,t[i])})}const b0=X({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=Vue.ref(null),o=Vue.inject(Fe,!1),{hovering:i,binding:r}=Fi(e),a=oe((c,l)=>{if(e.disabled)return c.stopImmediatePropagation();l&&n.value.click();const u=e.formType;if(u){if(!o)return;u==="submit"?o.submit(c):u==="reset"&&o.reset(c);return}}),s=Vue.inject(_n,!1);return s&&(s.addHandler(a),Vue.onBeforeUnmount(()=>{s.removeHandler(a)})),fo(e,{"label-click":a}),()=>{const c=e.hoverClass,l=mt(e,"disabled"),u=mt(e,"loading"),d=mt(e,"plain"),h=c&&c!=="none";return Vue.createVNode("uni-button",Vue.mergeProps({ref:n,onClick:a,id:e.id,class:h&&i.value?c:""},h&&r,l,u,d),[t.default&&t.default()],16,["onClick","id"])}}}),w0="",Ls=fn("upm");function Ot(){return Vue.inject(Ls)}function S0(e){const t=T0(e);return Vue.provide(Ls,t),t}function yn(){if(__UNI_FEATURE_PAGES__)return VueRouter.useRoute();const e=location.href,t=e.indexOf("?"),n=e.indexOf("#",t>-1?t:0);let o={};t>-1&&(o=qa(e.slice(t+1,n>-1?n:e.length)));const{meta:i}=__uniRoutes[0],r=qe(i.route);return{meta:i,query:o,path:r,matched:[{path:r}]}}function T0(e){return __UNI_FEATURE_PAGES__?Vue.reactive(Bs(JSON.parse(JSON.stringify(bs(VueRouter.useRoute().meta,e))))):Vue.reactive(Bs(JSON.parse(JSON.stringify(bs(__uniRoutes[0].meta,e)))))}function Bs(e){if(__UNI_FEATURE_PULL_DOWN_REFRESH__){const{enablePullDownRefresh:t,navigationBar:n}=e;if(t){const o=ym(L({support:!0,color:"#2BD009",style:"circle",height:70,range:150,offset:0},e.pullToRefresh)),{type:i,style:r}=n;r!=="custom"&&i!=="transparent"&&(o.offset+=Aa+he.top),e.pullToRefresh=o}}if(__UNI_FEATURE_NAVIGATIONBAR__||__UNI_FEATURE_I18N_LOCALE__){const{navigationBar:t}=e,{titleSize:n,titleColor:o,backgroundColor:i}=t;t.titleText=t.titleText||"",t.type=t.type||"default",t.titleSize=n||"16px",t.titleColor=o||"#000000",t.backgroundColor=i||"#F8F8F8",__UNI_FEATURE_I18N_LOCALE__&&$p(t)}if(__UNI_FEATURE_PAGES__&&history.state){const t=history.state.__type__;(t==="redirectTo"||t==="reLaunch")&&getCurrentPages().length===0&&(e.isEntry=!0,e.isQuit=!0)}return e}function C0(e){const t=window.screen,n=document.documentElement,o=[window.outerWidth,window.outerHeight,t.width,t.height,n.clientWidth,n.clientHeight];return Math.max.apply(null,o)>e}function $i(){return history.state&&history.state.__id__||1}var Rt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ho=(function(){const e=new Uint8Array(256);for(var t=0;t<Rt.length;t++)e[Rt.charCodeAt(t)]=t;return e})();function V0(e){var t=new Uint8Array(e),n,o=t.length,i="";for(n=0;n<o;n+=3)i+=Rt[t[n]>>2],i+=Rt[(t[n]&3)<<4|t[n+1]>>4],i+=Rt[(t[n+1]&15)<<2|t[n+2]>>6],i+=Rt[t[n+2]&63];return o%3===2?i=i.substring(0,i.length-1)+"=":o%3===1&&(i=i.substring(0,i.length-2)+"=="),i}function A0(e){var t=e.length*.75,n=e.length,o,i=0,r,a,s,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var l=new ArrayBuffer(t),u=new Uint8Array(l);for(o=0;o<n;o+=4)r=ho[e.charCodeAt(o)],a=ho[e.charCodeAt(o+1)],s=ho[e.charCodeAt(o+2)],c=ho[e.charCodeAt(o+3)],u[i++]=r<<2|a>>4,u[i++]=(a&15)<<4|s>>2,u[i++]=(s&3)<<6|c&63;return l}const E0=["original","compressed"],zi=["album","camera"],go=["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"];function po(e,t){return!e||t.indexOf(e)===-1?t[0]:e}function mo(e,t){return!K(e)||e.length===0||e.find(n=>t.indexOf(n)===-1)?t:e}function k0(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}let Ds=1;const $e={};function Us(e,t,n,o=!1){return $e[e]={name:t,keepAlive:o,callback:n},e}function Fs(e,t,n){if(typeof e=="number"){const o=$e[e];if(o)return o.keepAlive||delete $e[e],o.callback(t,n)}return t}function $s(e){for(const t in $e)if($e[t].name===e)return!0;return!1}function I0(e,t){for(const n in $e){const o=$e[n];o.callback===t&&o.name===e&&delete $e[n]}}function N0(e){UniServiceJSBridge.off("api."+e)}function x0(e){UniServiceJSBridge.on("api."+e,t=>{for(const n in $e){const o=$e[n];o.name===e&&o.callback(t)}})}function M0(e,t){return Us(Ds++,e,t,!0)}const P0="success",O0="fail",R0="complete";function L0(e){const t={};for(const n in e){const o=e[n];G(o)&&(t[n]=k0(o),delete e[n])}return t}function B0(e,t){return!e||e.indexOf(":fail")===-1?t+":ok":t+e.substring(e.indexOf(":fail"))}function D0(e,t={},{beforeAll:n,beforeSuccess:o}={}){ce(t)||(t={});const{success:i,fail:r,complete:a}=L0(t),s=G(i),c=G(r),l=G(a),u=Ds++;return Us(u,e,d=>{d=d||{},d.errMsg=B0(d.errMsg,e),G(n)&&n(d),d.errMsg===e+":ok"?(G(o)&&o(d,t),s&&i(d)):c&&r(d),l&&a(d)}),u}const U0="success",F0="fail",$0="complete",Lt={},Bt={};function z0(e,t){return function(n){return e(n,t)||n}}function zs(e,t,n){let o=!1;for(let i=0;i<e.length;i++){const r=e[i];if(o)o=Promise.resolve(z0(r,n));else{const a=r(t,n);if(vg(a)&&(o=Promise.resolve(a)),a===!1)return{then(){},catch(){}}}}return o||{then(i){return i(t)},catch(){}}}function Hs(e,t={}){return[U0,F0,$0].forEach(n=>{const o=e[n];if(!K(o))return;const i=t[n];t[n]=function(a){zs(o,a,t).then(s=>G(i)&&i(s)||s)}}),t}function Ws(e,t){const n=[];K(Lt.returnValue)&&n.push(...Lt.returnValue);const o=Bt[e];return o&&K(o.returnValue)&&n.push(...o.returnValue),n.forEach(i=>{t=i(t)||t}),t}function qs(e){const t=Object.create(null);Object.keys(Lt).forEach(o=>{o!=="returnValue"&&(t[o]=Lt[o].slice())});const n=Bt[e];return n&&Object.keys(n).forEach(o=>{o!=="returnValue"&&(t[o]=(t[o]||[]).concat(n[o]))}),t}function Gs(e,t,n,o){const i=qs(e);return i&&Object.keys(i).length?K(i.invoke)?zs(i.invoke,n).then(a=>t(Hs(qs(e),a),...o)):t(Hs(i,n),...o):t(n,...o)}function H0(e){return!!(ce(e)&&[P0,O0,R0].find(t=>G(e[t])))}function cA(e){return e}function js(e,t){return(n={},...o)=>H0(n)?Ws(e,Gs(e,t,L({},n),o)):Ws(e,new Promise((i,r)=>{Gs(e,t,L({},n,{success:i,fail:r}),o)}))}function W0(e,t){const n=e[0];if(!t||!t.formatArgs||!ce(t.formatArgs)&&ce(n))return;const o=t.formatArgs,i=Object.keys(o);for(let r=0;r<i.length;r++){const a=i[r],s=o[a];if(G(s)){const c=s(e[0][a],n);if(J(c))return c}else ae(n,a)||(n[a]=s)}}function q0(e,t,n){const o={errMsg:t+":ok"};return Fs(e,L(n||{},o))}function Ys(e,t,n,o={}){const i=t+":fail";let r="";n?n.indexOf(i)===0?r=n:r=i+" "+n:r=i,delete o.errCode;let a=L({errMsg:r},o);return Fs(e,a)}function vo(e,t,n,o){if(o&&o.beforeInvoke){const r=o.beforeInvoke(t);if(J(r))return r}const i=W0(t,o);if(i)return i}function Xs(e){if(!G(e))throw new Error('Invalid args: type check failed for args "callback". Expected Function')}function G0(e,t,n){return o=>{Xs(o);const i=vo(e,[o],void 0,n);if(i)throw new Error(i);const r=!$s(e);M0(e,o),r&&(x0(e),t())}}function j0(e,t,n){return o=>{Xs(o);const i=vo(e,[o],void 0,n);if(i)throw new Error(i);e=e.replace("off","on"),I0(e,o),$s(e)||(N0(e),t())}}function Y0(e){return!e||J(e)?e:e.stack?((typeof globalThis=="undefined"||!globalThis.harmonyChannel)&&console.error(e.message+`
|
|
3
|
+
`+e.stack),e.message):e}function Js(e,t,n,o){return i=>{const r=D0(e,i,o),a=vo(e,[i],n,o);return a?Ys(r,e,a):t(i,{resolve:s=>q0(r,e,s),reject:(s,c)=>Ys(r,e,Y0(s),c)})}}function X0(e,t,n,o){return(...i)=>{const r=vo(e,i,n,o);if(r)throw new Error(r);return t.apply(null,i)}}function J0(e,t,n,o){return Js(e,t,n,o)}function ke(e,t,n){return G0(e,t,n)}function vt(e,t,n){return j0(e,t,n)}function _o(e,t,n,o){return js(e,Js(e,t,void 0,o))}function j(e,t,n,o){return X0(e,t,void 0,o)}function R(e,t,n,o){return js(e,J0(e,t,void 0,o))}function Ks(e){return`method 'uni.${e}' not supported`}function yo(e){return()=>{console.error(Ks(e))}}const Hi=yo;function we(e){return(t,{reject:n})=>n(Ks(e))}const K0="base64ToArrayBuffer",Q0="arrayBufferToBase64",Qs=j(K0,e=>A0(e)),Zs=j(Q0,e=>V0(e)),Z0="upx2px",ev=1e-4,tv=750;let ec=!1,Wi=0,tc=0,nc=960,oc=375,ic=750;function nv(){let e,t,n;{const{windowWidth:o,pixelRatio:i,platform:r}=Hl();e=o,t=i,n=r}Wi=e,tc=t,ec=n==="ios"}function qi(e,t){const n=Number(e);return isNaN(n)?t:n}function ov(){const e=__uniConfig.globalStyle||{};nc=qi(e.rpxCalcMaxDeviceWidth,960),oc=qi(e.rpxCalcBaseDeviceWidth,375),ic=qi(e.rpxCalcBaseDeviceWidth,750)}const bo=j(Z0,(e,t)=>{if(Wi===0&&(nv(),ov()),e=Number(e),e===0)return 0;let n=t||Wi;n=e===ic||n<=nc?n:oc;let o=e/tv*n;return o<0&&(o=-o),o=Math.floor(o+ev),o===0&&(tc===1||!ec?o=1:o=.5),e<0?-o:o}),iv="addInterceptor",rv="removeInterceptor";function rc(e,t){Object.keys(t).forEach(n=>{G(t[n])&&(e[n]=av(e[n],t[n]))})}function ac(e,t){!e||!t||Object.keys(t).forEach(n=>{const o=e[n],i=t[n];K(o)&&G(i)&&Se(o,i)})}function av(e,t){const n=t?e?e.concat(t):K(t)?t:[t]:e;return n&&sv(n)}function sv(e){const t=[];for(let n=0;n<e.length;n++)t.indexOf(e[n])===-1&&t.push(e[n]);return t}const sc=j(iv,(e,t)=>{J(e)&&ce(t)?rc(Bt[e]||(Bt[e]={}),t):ce(e)&&rc(Lt,e)}),cc=j(rv,(e,t)=>{J(e)?ce(t)?ac(Bt[e],t):delete Bt[e]:ce(e)&&ac(Lt,e)}),lc={},cv="$on",lv="$once",uv="$off",dv="$emit";class fv{constructor(){this.$emitter=new Ni}on(t,n){return this.$emitter.on(t,n)}once(t,n){return this.$emitter.once(t,n)}off(t,n){if(!t){this.$emitter.e={};return}this.$emitter.off(t,n)}emit(t,...n){this.$emitter.emit(t,...n)}}const Dt=new fv,uc=j(cv,(e,t)=>(Dt.on(e,t),()=>Dt.off(e,t))),dc=j(lv,(e,t)=>(Dt.once(e,t),()=>Dt.off(e,t))),fc=j(uv,(e,t)=>{K(e)||(e=e?[e]:[]),e.forEach(n=>{Dt.off(n,t)})}),hc=j(dv,(e,...t)=>{Dt.emit(e,...t)});function gc(e,t,...n){t&&n.push(t),console[e].apply(console,n)}const hv="createVideoContext",gv="createMapContext",pv="createCanvasContext",mv="createInnerAudioContext",vv=[.5,.8,1,1.25,1.5,2];class Gi{constructor(t,n){this.id=t,this.pageId=n}play(){ze(this.id,this.pageId,"play")}pause(){ze(this.id,this.pageId,"pause")}stop(){ze(this.id,this.pageId,"stop")}seek(t){ze(this.id,this.pageId,"seek",{position:t})}sendDanmu(t){ze(this.id,this.pageId,"sendDanmu",t)}playbackRate(t){~vv.indexOf(t)||(t=1),ze(this.id,this.pageId,"playbackRate",{rate:t})}requestFullScreen(t={}){ze(this.id,this.pageId,"requestFullScreen",t)}exitFullScreen(){ze(this.id,this.pageId,"exitFullScreen")}showStatusBar(){ze(this.id,this.pageId,"showStatusBar")}hideStatusBar(){ze(this.id,this.pageId,"hideStatusBar")}}const pc=j(hv,(e,t)=>t?new Gi(e,Ae(t)):new Gi(e,Ae(Ee()))),_v=(e,t)=>{const n=t.errMsg||"";new RegExp("\\:\\s*fail").test(n)?e.fail&&e.fail(t):e.success&&e.success(t),e.complete&&e.complete(t)},me=(e,t,n,o)=>{Hb(e,t,n,o,i=>{o&&_v(o,i)})};class ji{constructor(t,n){this.id=t,this.pageId=n}getCenterLocation(t){me(this.id,this.pageId,"getCenterLocation",t)}moveToLocation(t){me(this.id,this.pageId,"moveToLocation",t)}getScale(t){me(this.id,this.pageId,"getScale",t)}getRegion(t){me(this.id,this.pageId,"getRegion",t)}includePoints(t){me(this.id,this.pageId,"includePoints",t)}translateMarker(t){me(this.id,this.pageId,"translateMarker",t)}$getAppMap(){}addCustomLayer(t){me(this.id,this.pageId,"addCustomLayer",t)}removeCustomLayer(t){me(this.id,this.pageId,"removeCustomLayer",t)}addGroundOverlay(t){me(this.id,this.pageId,"addGroundOverlay",t)}removeGroundOverlay(t){me(this.id,this.pageId,"removeGroundOverlay",t)}updateGroundOverlay(t){me(this.id,this.pageId,"updateGroundOverlay",t)}initMarkerCluster(t){me(this.id,this.pageId,"initMarkerCluster",t)}addMarkers(t){me(this.id,this.pageId,"addMarkers",t)}removeMarkers(t){me(this.id,this.pageId,"removeMarkers",t)}moveAlong(t){me(this.id,this.pageId,"moveAlong",t)}setLocMarkerIcon(t){me(this.id,this.pageId,"setLocMarkerIcon",t)}openMapApp(t){me(this.id,this.pageId,"openMapApp",t)}on(t,n){me(this.id,this.pageId,"on",{name:t,callback:n})}}const mc=j(gv,(e,t)=>t?new ji(e,Ae(t)):new ji(e,Ae(Ee())));function Ke(e,t){return function(n,o){n?o[e]=Math.round(n):typeof t!="undefined"&&(o[e]=t)}}const vc=Ke("width"),_c=Ke("height"),yv="canvasGetImageData",yc={formatArgs:{x:Ke("x"),y:Ke("y"),width:vc,height:_c}},bc={canvasId:{type:String,required:!0},x:{type:Number,required:!0},y:{type:Number,required:!0},width:{type:Number,required:!0},height:{type:Number,required:!0}},bv="canvasPutImageData",wv=yc,Sv=L({data:{type:Uint8ClampedArray,required:!0}},bc,{height:{type:Number}}),wc={PNG:"png",JPG:"jpg",JPEG:"jpg"},Tv="canvasToTempFilePath",Cv={formatArgs:{x:Ke("x",0),y:Ke("y",0),width:vc,height:_c,destWidth:Ke("destWidth"),destHeight:Ke("destHeight"),fileType(e,t){e=(e||"").toUpperCase();let n=wc[e];n||(n=wc.PNG),t.fileType=n},quality(e,t){t.quality=e&&e>0&&e<1?e:1}}},Vv={};function wo(e,t,n,o,i){UniServiceJSBridge.invokeViewMethod(`canvas.${e}`,{type:n,data:o},t,r=>{i&&i(r)})}var Av=["scale","rotate","translate","setTransform","transform"],Ev=["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"],kv=["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"];function Iv(e,t){const o=document.createElement("canvas").getContext("2d");return o.font=t,o.measureText(e).width||0}const Sc={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",transparent:"#00000000"};function Yi(e){e=e||"#000000";let t=null;if((t=/^#([0-9|A-F|a-f]{6})$/.exec(e))!=null){const o=parseInt(t[1].slice(0,2),16),i=parseInt(t[1].slice(2,4),16),r=parseInt(t[1].slice(4),16);return[o,i,r,255]}if((t=/^#([0-9|A-F|a-f]{3})$/.exec(e))!=null){let o=t[1].slice(0,1),i=t[1].slice(1,2),r=t[1].slice(2,3);return o=parseInt(o+o,16),i=parseInt(i+i,16),r=parseInt(r+r,16),[o,i,r,255]}if((t=/^rgb\((.+)\)$/.exec(e))!=null)return t[1].split(",").map(function(o){return Math.min(255,parseInt(o.trim()))}).concat(255);if((t=/^rgba\((.+)\)$/.exec(e))!=null)return t[1].split(",").map(function(o,i){return i===3?Math.floor(255*parseFloat(o.trim())):Math.min(255,parseInt(o.trim()))});var n=e.toLowerCase();if(ae(Sc,n)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(Sc[n]);const o=parseInt(t[1].slice(0,2),16),i=parseInt(t[1].slice(2,4),16),r=parseInt(t[1].slice(4,6),16);let a=parseInt(t[1].slice(6,8),16);return a=a>=0?a:255,[o,i,r,a]}return console.error("unsupported color:"+e),[0,0,0,255]}class Tc{constructor(t,n){this.type=t,this.data=n,this.colorStop=[]}addColorStop(t,n){this.colorStop.push([t,Yi(n)])}}class Nv{constructor(t,n){this.type="pattern",this.data=t,this.colorStop=n}}class xv{constructor(t){this.width=t}}const Mv=()=>w0;class bn{constructor(t,n){this.id=t,this.pageId=n,this.actions=[],this.path=[],this.subpath=[],this.drawingState=[],this.state={lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}setFillStyle(t){console.log("initCanvasContextProperty implemented.")}setStrokeStyle(t){console.log("initCanvasContextProperty implemented.")}setShadow(t,n,o,i){console.log("initCanvasContextProperty implemented.")}addColorStop(t,n){console.log("initCanvasContextProperty implemented.")}setLineWidth(t){console.log("initCanvasContextProperty implemented.")}setLineCap(t){console.log("initCanvasContextProperty implemented.")}setLineJoin(t){console.log("initCanvasContextProperty implemented.")}setLineDash(t,n){console.log("initCanvasContextProperty implemented.")}setMiterLimit(t){console.log("initCanvasContextProperty implemented.")}fillRect(t,n,o,i){console.log("initCanvasContextProperty implemented.")}strokeRect(t,n,o,i){console.log("initCanvasContextProperty implemented.")}clearRect(t,n,o,i){console.log("initCanvasContextProperty implemented.")}fill(){console.log("initCanvasContextProperty implemented.")}stroke(){console.log("initCanvasContextProperty implemented.")}scale(t,n){console.log("initCanvasContextProperty implemented.")}rotate(t){console.log("initCanvasContextProperty implemented.")}translate(t,n){console.log("initCanvasContextProperty implemented.")}setFontSize(t){console.log("initCanvasContextProperty implemented.")}fillText(t,n,o,i){console.log("initCanvasContextProperty implemented.")}setTextAlign(t){console.log("initCanvasContextProperty implemented.")}setTextBaseline(t){console.log("initCanvasContextProperty implemented.")}drawImage(t,n,o,i,r,a,s,c,l){console.log("initCanvasContextProperty implemented.")}setGlobalAlpha(t){console.log("initCanvasContextProperty implemented.")}strokeText(t,n,o,i){console.log("initCanvasContextProperty implemented.")}setTransform(t,n,o,i,r,a){console.log("initCanvasContextProperty implemented.")}draw(t=!1,n){var o=[...this.actions];this.actions=[],this.path=[],wo(this.id,this.pageId,"actionsChanged",{actions:o,reserve:t},n)}createLinearGradient(t,n,o,i){return new Tc("linear",[t,n,o,i])}createCircularGradient(t,n,o){return new Tc("radial",[t,n,o])}createPattern(t,n){if(n===void 0)console.error("Failed to execute 'createPattern' on 'CanvasContext': 2 arguments required, but only 1 present.");else if(["repeat","repeat-x","repeat-y","no-repeat"].indexOf(n)<0)console.error("Failed to execute 'createPattern' on 'CanvasContext': The provided type ('"+n+"') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.");else return new Nv(t,n)}measureText(t,n){const o=this.state.font;let i=0;return i=Iv(t,o),new xv(i)}save(){this.actions.push({method:"save",data:[]}),this.drawingState.push(this.state)}restore(){this.actions.push({method:"restore",data:[]}),this.state=this.drawingState.pop()||{lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}beginPath(){this.path=[],this.subpath=[],this.path.push({method:"beginPath",data:[]})}moveTo(t,n){this.path.push({method:"moveTo",data:[t,n]}),this.subpath=[[t,n]]}lineTo(t,n){this.path.length===0&&this.subpath.length===0?this.path.push({method:"moveTo",data:[t,n]}):this.path.push({method:"lineTo",data:[t,n]}),this.subpath.push([t,n])}quadraticCurveTo(t,n,o,i){this.path.push({method:"quadraticCurveTo",data:[t,n,o,i]}),this.subpath.push([o,i])}bezierCurveTo(t,n,o,i,r,a){this.path.push({method:"bezierCurveTo",data:[t,n,o,i,r,a]}),this.subpath.push([r,a])}arc(t,n,o,i,r,a=!1){this.path.push({method:"arc",data:[t,n,o,i,r,a]}),this.subpath.push([t,n])}rect(t,n,o,i){this.path.push({method:"rect",data:[t,n,o,i]}),this.subpath=[[t,n]]}arcTo(t,n,o,i,r){this.path.push({method:"arcTo",data:[t,n,o,i,r]}),this.subpath.push([o,i])}clip(){this.actions.push({method:"clip",data:[...this.path]})}closePath(){this.path.push({method:"closePath",data:[]}),this.subpath.length&&(this.subpath=[this.subpath.shift()])}clearActions(){this.actions=[],this.path=[],this.subpath=[]}getActions(){var t=[...this.actions];return this.clearActions(),t}set lineDashOffset(t){this.actions.push({method:"setLineDashOffset",data:[t]})}set globalCompositeOperation(t){this.actions.push({method:"setGlobalCompositeOperation",data:[t]})}set shadowBlur(t){this.actions.push({method:"setShadowBlur",data:[t]})}set shadowColor(t){this.actions.push({method:"setShadowColor",data:[t]})}set shadowOffsetX(t){this.actions.push({method:"setShadowOffsetX",data:[t]})}set shadowOffsetY(t){this.actions.push({method:"setShadowOffsetY",data:[t]})}set font(t){var n=this;this.state.font=t;var o=t.match(/^(([\w\-]+\s)*)(\d+\.?\d*r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/);if(o){var i=o[1].trim().split(/\s/),r=parseFloat(o[3]),a=o[7],s=[];i.forEach(function(l,u){["italic","oblique","normal"].indexOf(l)>-1?(s.push({method:"setFontStyle",data:[l]}),n.state.fontStyle=l):["bold","normal","lighter","bolder"].indexOf(l)>-1||/^\d+$/.test(l)?(s.push({method:"setFontWeight",data:[l]}),n.state.fontWeight=l):u===0?(s.push({method:"setFontStyle",data:["normal"]}),n.state.fontStyle="normal"):u===1&&c()}),i.length===1&&c(),i=s.map(function(l){return l.data[0]}).join(" "),this.state.fontSize=r,this.state.fontFamily=a,this.actions.push({method:"setFont",data:[`${i} ${r}px ${a}`]})}else console.warn("Failed to set 'font' on 'CanvasContext': invalid format.");function c(){s.push({method:"setFontWeight",data:["normal"]}),n.state.fontWeight="normal"}}get font(){return this.state.font}set fillStyle(t){this.setFillStyle(t)}set strokeStyle(t){this.setStrokeStyle(t)}set globalAlpha(t){t=Math.floor(255*parseFloat(t)),this.actions.push({method:"setGlobalAlpha",data:[t]})}set textAlign(t){this.actions.push({method:"setTextAlign",data:[t]})}set lineCap(t){this.actions.push({method:"setLineCap",data:[t]})}set lineJoin(t){this.actions.push({method:"setLineJoin",data:[t]})}set lineWidth(t){this.actions.push({method:"setLineWidth",data:[t]})}set miterLimit(t){this.actions.push({method:"setMiterLimit",data:[t]})}set textBaseline(t){this.actions.push({method:"setTextBaseline",data:[t]})}}const Pv=ne(()=>{[...Av,...Ev].forEach(function(e){function t(n){switch(n){case"fill":case"stroke":return function(){this.actions.push({method:n+"Path",data:[...this.path]})};case"fillRect":return function(o,i,r,a){this.actions.push({method:"fillPath",data:[{method:"rect",data:[o,i,r,a]}]})};case"strokeRect":return function(o,i,r,a){this.actions.push({method:"strokePath",data:[{method:"rect",data:[o,i,r,a]}]})};case"fillText":case"strokeText":return function(o,i,r,a){var s=[o.toString(),i,r];typeof a=="number"&&s.push(a),this.actions.push({method:n,data:s})};case"drawImage":return function(o,i,r,a,s,c,l,u,d){d===void 0&&(c=i,l=r,u=a,d=s,i=void 0,r=void 0,a=void 0,s=void 0);var h;function g(v){return typeof v=="number"}h=g(i)&&g(r)&&g(a)&&g(s)?[o,c,l,u,d,i,r,a,s]:g(u)&&g(d)?[o,c,l,u,d]:[o,c,l],this.actions.push({method:n,data:h})};default:return function(...o){this.actions.push({method:n,data:o})}}}bn.prototype[e]=t(e)}),kv.forEach(function(e){function t(n){switch(n){case"setFillStyle":case"setStrokeStyle":return function(o){typeof o!="object"?this.actions.push({method:n,data:["normal",Yi(o)]}):this.actions.push({method:n,data:[o.type,o.data,o.colorStop]})};case"setGlobalAlpha":return function(o){o=Math.floor(255*parseFloat(o)),this.actions.push({method:n,data:[o]})};case"setShadow":return function(o,i,r,a){a=Yi(a),this.actions.push({method:n,data:[o,i,r,a]}),this.state.shadowBlur=r,this.state.shadowColor=a,this.state.shadowOffsetX=o,this.state.shadowOffsetY=i};case"setLineDash":return function(o,i){o=o||[0,0],i=i||0,this.actions.push({method:n,data:[o,i]}),this.state.lineDash=o};case"setFontSize":return function(o){this.state.font=this.state.font.replace(/\d+\.?\d*px/,o+"px"),this.state.fontSize=o,this.actions.push({method:n,data:[o]})};default:return function(...o){this.actions.push({method:n,data:o})}}}bn.prototype[e]=t(e)})}),Cc=j(pv,(e,t)=>{if(Pv(),t)return new bn(e,Ae(t));const n=Ae(Ee());if(n)return new bn(e,n);UniServiceJSBridge.emit(ht,"createCanvasContext:fail")}),Vc=R(yv,({canvasId:e,x:t,y:n,width:o,height:i},{resolve:r,reject:a})=>{const s=Ae(Ee());if(!s){a();return}function c(l){if(l.errMsg&&l.errMsg.indexOf("fail")!==-1){a("",l);return}let u=l.data;u&&u.length&&(l.data=new Uint8ClampedArray(u)),delete l.compressed,r(l)}wo(e,s,"getImageData",{x:t,y:n,width:o,height:i},c)},bc,yc),Ac=R(bv,({canvasId:e,data:t,x:n,y:o,width:i,height:r},{resolve:a,reject:s})=>{var c=Ae(Ee());if(!c){s();return}let l;const u=()=>{wo(e,c,"putImageData",{data:t,x:n,y:o,width:i,height:r,compressed:l},d=>{if(d.errMsg&&d.errMsg.indexOf("fail")!==-1){s();return}a(d)})};t=Array.prototype.slice.call(t),u()},Sv,wv),Ec=R(Tv,({x:e=0,y:t=0,width:n,height:o,destWidth:i,destHeight:r,canvasId:a,fileType:s,quality:c},{resolve:l,reject:u})=>{var d=Ae(Ee());if(!d){u();return}let h=`${Mv()}/canvas`;wo(a,d,"toTempFilePath",{x:e,y:t,width:n,height:o,destWidth:i,destHeight:r,fileType:s,quality:c,dirname:h},g=>{if(g.errMsg&&g.errMsg.indexOf("fail")!==-1){u("",g);return}l(g)})},Vv,Cv),kc=["onCanplay","onPlay","onPause","onStop","onEnded","onTimeUpdate","onError","onWaiting","onSeeking","onSeeked"],Ov=["offCanplay","offPlay","offPause","offStop","offEnded","offTimeUpdate","offError","offWaiting","offSeeking","offSeeked"],Rv={thresholds:[0],initialRatio:0,observeAll:!1},Lv=["top","right","bottom","left"];let Bv=1;function Ic(e={}){return Lv.map(t=>`${Number(e[t])||0}px`).join(" ")}class Nc{constructor(t,n){this._pageId=Ae(t),this._component=t,this._options=L({},Rv,n)}relativeTo(t,n){return this._options.relativeToSelector=t,this._options.rootMargin=Ic(n),this}relativeToViewport(t){return this._options.relativeToSelector=void 0,this._options.rootMargin=Ic(t),this}observe(t,n){G(n)&&(this._options.selector=t,this._reqId=Bv++,Xb({reqId:this._reqId,component:this._component,options:this._options,callback:n},this._pageId))}disconnect(){this._reqId&&Jb({reqId:this._reqId,component:this._component},this._pageId)}}const xc=j("createIntersectionObserver",(e,t)=>(e=rn(e),e&&!Ae(e)&&(t=e,e=null),e?new Nc(e,t):new Nc(Ee(),t)));let Dv=1;class Mc{constructor(t){this._pageId=(t==null?void 0:t.$page)&&t.$page.id,this._component=t}observe(t,n){G(n)&&(this._reqId=Dv++,Qb({reqId:this._reqId,component:this._component,options:t,callback:n},this._pageId))}disconnect(){this._reqId&&Zb({reqId:this._reqId,component:this._component},this._pageId)}}const Pc=j("createMediaQueryObserver",e=>(e=rn(e),e&&!Ae(e)&&(e=null),e?new Mc(e):new Mc(Ee())));let Uv=0,Xi={};function Fv(e,t,n,o){const i={options:o},r=o&&("success"in o||"fail"in o||"complete"in o);if(r){const a=String(Uv++);i.callbackId=a,Xi[a]=o}UniServiceJSBridge.invokeViewMethod(`editor.${e}`,{type:n,data:i},t,({callbackId:a,data:s})=>{r&&(be(Xi[a],s),delete Xi[a])})}class $v{constructor(t,n){this.id=t,this.pageId=n}format(t,n){this._exec("format",{name:t,value:n})}insertDivider(){this._exec("insertDivider")}insertImage(t){this._exec("insertImage",t)}insertText(t){this._exec("insertText",t)}setContents(t){this._exec("setContents",t)}getContents(t){this._exec("getContents",t)}clear(t){this._exec("clear",t)}removeFormat(t){this._exec("removeFormat",t)}undo(t){this._exec("undo",t)}redo(t){this._exec("redo",t)}blur(t){this._exec("blur",t)}getSelectionText(t){this._exec("getSelectionText",t)}scrollIntoView(t){this._exec("scrollIntoView",t)}_exec(t,n){Fv(this.id,this.pageId,t,n)}}const zv={canvas:bn,map:ji,video:Gi,editor:$v};function Oc(e){if(e&&e.contextInfo){const{id:t,type:n,page:o}=e.contextInfo,i=zv[n];e.context=new i(t,o),delete e.contextInfo}}class Ji{constructor(t,n,o,i){this._selectorQuery=t,this._component=n,this._selector=o,this._single=i}boundingClientRect(t){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,rect:!0,size:!0},t),this._selectorQuery}fields(t,n){return this._selectorQuery._push(this._selector,this._component,this._single,t,n),this._selectorQuery}scrollOffset(t){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,scrollOffset:!0},t),this._selectorQuery}context(t){return this._selectorQuery._push(this._selector,this._component,this._single,{context:!0},t),this._selectorQuery}node(t){return this._selectorQuery._push(this._selector,this._component,this._single,{node:!0},t),this._selectorQuery}}class Hv{constructor(t){this._component=void 0,this._page=t,this._queue=[],this._queueCb=[]}exec(t){return jb(this._page,this._queue,n=>{const o=this._queueCb;n.forEach((i,r)=>{K(i)?i.forEach(Oc):Oc(i);const a=o[r];G(a)&&a.call(this,i)}),G(t)&&t.call(this,n)}),this._nodesRef}in(t){return this._component=rn(t),this}select(t){return this._nodesRef=new Ji(this,this._component,t,!0)}selectAll(t){return this._nodesRef=new Ji(this,this._component,t,!1)}selectViewport(){return this._nodesRef=new Ji(this,null,"",!0)}_push(t,n,o,i,r){this._queue.push({component:n,selector:t,single:o,fields:i}),this._queueCb.push(r)}}const Rc=j("createSelectorQuery",e=>(e=rn(e),e&&!Ae(e)&&(e=null),new Hv(e||Ee()))),Wv="createAnimation",qv={formatArgs:{}},Gv={},jv={duration:400,timingFunction:"linear",delay:0,transformOrigin:"50% 50% 0"};class Lc{constructor(t){this.actions=[],this.currentTransform={},this.currentStepAnimates=[],this.option=L({},jv,t)}_getOption(t){const n={transition:L({},this.option,t),transformOrigin:""};return n.transformOrigin=n.transition.transformOrigin,delete n.transition.transformOrigin,n}_pushAnimates(t,n){this.currentStepAnimates.push({type:t,args:n})}_converType(t){return t.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}_getValue(t){return typeof t=="number"?`${t}px`:t}export(){const t=this.actions;return this.actions=[],{actions:t}}step(t){return this.currentStepAnimates.forEach(n=>{n.type!=="style"?this.currentTransform[n.type]=n:this.currentTransform[`${n.type}.${n.args[0]}`]=n}),this.actions.push({animates:Object.values(this.currentTransform),option:this._getOption(t)}),this.currentStepAnimates=[],this}}const Yv=ne(()=>{const e=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"],t=["opacity","backgroundColor"],n=["width","height","left","right","top","bottom"];e.concat(t,n).forEach(o=>{Lc.prototype[o]=function(...i){return t.concat(n).includes(o)?this._pushAnimates("style",[this._converType(o),n.includes(o)?this._getValue(i[0]):i[0]]):this._pushAnimates(o,i),this}})}),Bc=j(Wv,e=>(Yv(),new Lc(e)),Gv,qv),Dc="onTabBarMidButtonTap",Uc=ke(Dc,()=>{}),Xv="onWindowResize",Jv="offWindowResize",Fc=ke(Xv,()=>{}),$c=vt(Jv,()=>{}),Kv="setLocale",Qv="getLocale",zc="onLocaleChange",So=j(Qv,()=>{const e=getApp({allowDefault:!0});return e&&e.$vm?e.$vm.$locale:U().getLocale()}),Hc=ke(zc,()=>{}),Wc=j(Kv,e=>{const t=getApp();return t&&t.$vm.$locale!==e?(t.$vm.$locale=e,navigator.cookieEnabled&&window.localStorage&&(localStorage[Ea]=e),UniServiceJSBridge.invokeOnCallback(zc,{locale:e}),!0):!1}),qc=R("setPageMeta",(e,{resolve:t})=>{t(Yb(Ee(),e))}),Gc="getSelectedTextRange",jc=R(Gc,(e,{resolve:t,reject:n})=>{UniServiceJSBridge.invokeViewMethod(Gc,{},pt(),o=>{typeof o.end=="undefined"&&typeof o.start=="undefined"?n("no focused"):t(o)})}),To={[Xn]:[],[Yn]:[],[ht]:[],[dt]:[],[ft]:[]};function wn(e,t){const n=getApp({allowDefault:!0});if(n&&n.$vm)return Vue.injectHook(e,t,n.$vm.$);To[e].push(t)}function Zv(e){Object.keys(To).forEach(t=>{To[t].forEach(n=>{Vue.injectHook(t,n,e)})})}function Sn(e,t){const n=getApp({allowDefault:!0});if(n&&n.$vm)return bm(n.$vm,e,t);Se(To[e],t)}function Yc(e){wn(Xn,e)}function Xc(e){Sn(Xn,e)}function Jc(e){wn(Yn,e)}function Kc(e){Sn(Yn,e)}function Qc(e){wn(ht,e)}function Zc(e){Sn(ht,e)}function el(e){wn(dt,e)}function tl(e){Sn(dt,e)}function nl(e){wn(ft,e)}function ol(e){Sn(ft,e)}const il=j("getEnterOptionsSync",()=>Xl()),rl=j("getLaunchOptionsSync",()=>rw());let Tn,Ki,Qi;function al(e){try{return JSON.parse(e)}catch(t){}return e}function sl(e){if(e.type==="enabled")Qi=!0;else if(e.type==="clientId")Tn=e.cid,Ki=e.errMsg,cl(Tn,e.errMsg);else if(e.type==="pushMsg"){const t={type:"receive",data:al(e.message)};for(let n=0;n<Qe.length;n++){const o=Qe[n];if(o(t),t.stopped)break}}else e.type==="click"&&Qe.forEach(t=>{t({type:"click",data:al(e.message)})})}const Zi=[];function cl(e,t){Zi.forEach(n=>{n(e,t)}),Zi.length=0}const ll=R("getPushClientId",(e,{resolve:t,reject:n})=>{Promise.resolve().then(()=>{typeof Qi=="undefined"&&(Qi=!1,Tn="",Ki="uniPush is not enabled"),Zi.push((o,i)=>{o?t({cid:o}):n(i)}),typeof Tn!="undefined"&&cl(Tn,Ki)})}),Qe=[],ul=e=>{Qe.indexOf(e)===-1&&Qe.push(e)},dl=e=>{if(!e)Qe.length=0;else{const t=Qe.indexOf(e);t>-1&&Qe.splice(t,1)}},e_="canIUse",t_="makePhoneCall",n_="getClipboardData",o_="setClipboardData",i_={formatArgs:{showToast:!0},beforeInvoke(){Lp()},beforeSuccess(e,t){if(!t.showToast)return;const{t:n}=U(),o=n("uni.setClipboardData.success");o&&uni.showToast({title:o,icon:"success",mask:!1})}},r_={},fl="onAccelerometer",a_="offAccelerometer",s_="startAccelerometer",c_="stopAccelerometer",hl="onCompass",l_="offCompass",u_="startCompass",d_="stopCompass",f_="vibrateShort",h_="vibrateLong",g_="getStorage",p_="getStorageSync",m_="setStorage",v_="setStorageSync",gl="removeStorage",__="getFileInfo",y_={formatArgs:{filePath(e,t){t.filePath=Q(e)}}},b_={},w_="openDocument",S_={formatArgs:{filePath(e,t){t.filePath=Q(e)}}},T_={},C_="hideKeyboard",V_="chooseLocation",A_="getLocation",pl=["wgs84","gcj02"],E_={formatArgs:{type(e,t){e=(e||"").toLowerCase(),pl.indexOf(e)===-1?t.type=pl[0]:t.type=e},altitude(e,t){t.altitude=e||!1}}},k_={},I_="openLocation",ml=(e,t)=>{if(t===void 0)return`${e} should not be empty.`;if(typeof t!="number"){let n=typeof t;return n=n[0].toUpperCase()+n.substring(1),`Expected Number, got ${n} with value ${JSON.stringify(t)}.`}},N_={formatArgs:{latitude(e,t){const n=ml("latitude",e);if(n)return n;t.latitude=e},longitude(e,t){const n=ml("longitude",e);if(n)return n;t.longitude=e},scale(e,t){e=Math.floor(e),t.scale=e>=5&&e<=18?e:18}}},x_={},M_="chooseImage",P_={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=9)},sizeType(e,t){t.sizeType=mo(e,E0)},sourceType(e,t){t.sourceType=mo(e,zi)},extension(e,t){if(e instanceof Array&&e.length===0)return"param extension should not be empty.";e||(t.extension=["*"])}}},O_={},R_="chooseVideo",L_={formatArgs:{sourceType(e,t){t.sourceType=mo(e,zi)},compressed:!0,maxDuration:60,camera:"back",extension(e,t){if(e instanceof Array&&e.length===0)return"param extension should not be empty.";e||(t.extension=["*"])}}},B_={},D_="chooseFile",U_=["all","image","video"],F_={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=100)},sourceType(e,t){t.sourceType=mo(e,zi)},type(e,t){t.type=po(e,U_)},extension(e,t){if(e instanceof Array&&e.length===0)return"param extension should not be empty.";e||(t.type==="all"||!t.type?t.extension=[""]:t.extension=["*"])}}},$_={},z_="getImageInfo",H_={formatArgs:{src(e,t){t.src=Q(e)}}},W_={},q_="previewImage",G_={formatArgs:{urls(e,t){t.urls=e.map(n=>J(n)&&n?Q(n):"")},current(e,t){typeof e=="number"?t.current=e>0&&e<t.urls.length?e:0:J(e)&&e&&(t.current=Q(e))}}},j_={},Y_="closePreviewImage",X_="getVideoInfo",J_={formatArgs:{src(e,t){t.src=Q(e)}}},K_={},vl="saveImageToPhotosAlbum",_l="saveVideoToPhotosAlbum",Q_="request",Z_={JSON:"json"},ey=["text","arraybuffer"],ty="text",yl=encodeURIComponent;function ny(e,t){let n=e.split("#");const o=n[1]||"";n=n[0].split("?");let i=n[1]||"";e=n[0];const r=i.split("&").filter(s=>s),a={};r.forEach(s=>{const c=s.split("=");a[c[0]]=c[1]});for(const s in t)if(ae(t,s)){let c=t[s];typeof c=="undefined"||c===null?c="":ce(c)&&(c=JSON.stringify(c)),a[yl(s)]=yl(c)}return i=Object.keys(a).map(s=>`${s}=${a[s]}`).join("&"),e+(i?"?"+i:"")+(o?"#"+o:"")}const oy={},iy={formatArgs:{method(e,t){t.method=po((e||"").toUpperCase(),go)},data(e,t){t.data=e||""},url(e,t){t.method===go[0]&&ce(t.data)&&Object.keys(t.data).length&&(t.url=ny(e,t.data))},header(e,t){const n=t.header=e||{};t.method!==go[0]&&(Object.keys(n).find(o=>o.toLowerCase()==="content-type")||(n["Content-Type"]="application/json"))},dataType(e,t){t.dataType=(e||Z_.JSON).toLowerCase()},responseType(e,t){t.responseType=(e||"").toLowerCase(),ey.indexOf(t.responseType)===-1&&(t.responseType=ty)}}},ry="downloadFile",ay={formatArgs:{header(e,t){t.header=e||{}}}},sy={},cy="uploadFile",ly={formatArgs:{filePath(e,t){e&&(t.filePath=Q(e))},header(e,t){t.header=e||{}},formData(e,t){t.formData=e||{}}}},uy={},dy="connectSocket",fy={formatArgs:{header(e,t){t.header=e||{}},method(e,t){t.method=po((e||"").toUpperCase(),go)},protocols(e,t){J(e)&&(t.protocols=[e])}}},hy={},gy="sendSocketMessage",py="closeSocket",my="startLocationUpdate",bl="onLocationChange",vy="stopLocationUpdate",_y="offLocationChange",yy="offLocationChangeError",er="onLocationChangeError",wl=["wgs84","gcj02"],by={},wy={formatArgs:{type(e,t){e=(e||"").toLowerCase(),wl.indexOf(e)===-1?t.type=wl[1]:t.type=e}}};function Sy(e){if(!J(e))return e;const t=e.indexOf("?");if(t===-1)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(i=>{const r=i.replace(/\+/g," ").split("="),a=r.shift(),s=r.length>0?r.join("="):"";o.push(a+"="+encodeURIComponent(s))}),o.length?e+"?"+o.join("&"):e}const Ty=["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"],Cy=["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"],Co={url:{type:String,required:!0}},Cn="navigateTo",Vn="redirectTo",Vo="reLaunch",Ut="switchTab",Vy="navigateBack",tr="preloadPage",Ay="unPreloadPage",Ey=L({},Co,Sl(Ty)),ky=L({delta:{type:Number}},Sl(Cy)),Iy=Co,Ny=Co,xy=Co,My=Eo(Cn),Py=Eo(Vn),Oy=Eo(Vo),Ry=Eo(Ut),Ly={formatArgs:{delta(e,t){e=parseInt(e+"")||1,t.delta=Math.min(getCurrentPages().length-1,e)}}};function Sl(e){return{animationType:{type:String,validator(t){if(t&&e.indexOf(t)===-1)return"`"+t+"` is not supported for `animationType` (supported values are: `"+e.join("`|`")+"`)"}},animationDuration:{type:Number}}}let Ao;function By(){Ao=""}function Eo(e){return{formatArgs:{url:Dy(e)},beforeAll:By}}function Dy(e){return function(n,o){if(!n)return'Missing required args: "url"';n=Sm(n);const i=n.split("?")[0],r=vn(i,!0);if(!r)return"page `"+n+"` is not found";if(e===Cn||e===Vn){if(r.meta.isTabBar)return`can not ${e} a tabbar page`}else if(e===Ut&&!r.meta.isTabBar)return"can not switch to no-tabBar page";if((e===Ut||e===tr)&&r.meta.isTabBar&&o.openType!=="appLaunch"&&(n=i),r.meta.isEntry&&(n=n.replace(r.alias,"/")),o.url=Sy(n),e!==Ay){if(e===tr){if(r.meta.isTabBar){const a=getCurrentPages(),s=r.path.slice(1);if(a.find(c=>c.route===s))return"tabBar page `"+s+"` already exists"}return}if(Ao===n&&o.openType!=="appLaunch")return`${Ao} locked`;__uniConfig.ready&&(Ao=n)}}}const Uy="hideLoading",Fy="hideToast",$y="loadFontFace",nr="setNavigationBarColor",zy={formatArgs:{animation(e,t){e||(e={duration:0,timingFunc:"linear"}),t.animation={duration:e.duration||0,timingFunc:e.timingFunc||"linear"}}}},Hy={},or="setNavigationBarTitle",ir="showNavigationBarLoading",rr="hideNavigationBarLoading",Wy="pageScrollTo",qy={},Gy={formatArgs:{duration:300}},jy="showActionSheet",Yy={},Xy={formatArgs:{itemColor:"#000"}},Jy="showLoading",Ky={},Qy={formatArgs:{title:"",mask:!1}},Zy="showModal",eb={},tb={beforeInvoke(){Rp()},formatArgs:{title:"",content:"",placeholderText:"",showCancel:!0,editable:!1,cancelText(e,t){if(!ae(t,"cancelText")){const{t:n}=U();t.cancelText=n("uni.showModal.cancel")}},cancelColor:"#000",confirmText(e,t){if(!ae(t,"confirmText")){const{t:n}=U();t.confirmText=n("uni.showModal.confirm")}},confirmColor:on}},nb="showToast",Tl=["success","loading","none","error"],ob={},ib={formatArgs:{title:"",icon(e,t){t.icon=po(e,Tl)},image(e,t){e?t.image=Q(e):t.image=""},duration:1500,mask:!1}},ar="startPullDownRefresh",sr="stopPullDownRefresh",An={index:{type:Number,required:!0}},Ze={beforeInvoke(){const e=Mt();if(e&&!e.isTabBar)return"not TabBar page"},formatArgs:{index(e){if(!__uniConfig.tabBar.list[e])return"tabbar item not found"}}},cr="setTabBarItem",rb=L({text:String,iconPath:String,selectedIconPath:String,pagePath:String},An),ab={beforeInvoke:Ze.beforeInvoke,formatArgs:L({pagePath(e,t){e&&(t.pagePath=za(e))}},Ze.formatArgs)},lr="setTabBarStyle",sb={},cb=/^(linear|radial)-gradient\(.+?\);?$/,lb={beforeInvoke:Ze.beforeInvoke,formatArgs:{backgroundImage(e,t){e&&!cb.test(e)&&(t.backgroundImage=Q(e))},borderStyle(e,t){e&&(t.borderStyle=e==="white"?"white":"black")}}},ur="hideTabBar",dr="showTabBar",fr="hideTabBarRedDot",ub=An,db=Ze,hr="showTabBarRedDot",fb=An,hb=Ze,gr="removeTabBarBadge",gb=An,pb=Ze,pr="setTabBarBadge",mb=L({text:{type:String,required:!0}},An),vb={beforeInvoke:Ze.beforeInvoke,formatArgs:L({text(e,t){ep(e)>=4&&(t.text="...")}},Ze.formatArgs)},_b=function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(f){try{return f.defaultView&&f.defaultView.frameElement||null}catch(p){return null}}var t=(function(f){for(var p=f,S=e(p);S;)p=S.ownerDocument,S=e(p);return p})(window.document),n=[],o=null,i=null;function r(f){this.time=f.time,this.target=f.target,this.rootBounds=v(f.rootBounds),this.boundingClientRect=v(f.boundingClientRect),this.intersectionRect=v(f.intersectionRect||g()),this.isIntersecting=!!f.intersectionRect;var p=this.boundingClientRect,S=p.width*p.height,T=this.intersectionRect,b=T.width*T.height;S?this.intersectionRatio=Number((b/S).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function a(f,p){var S=p||{};if(typeof f!="function")throw new Error("callback must be a function");if(S.root&&S.root.nodeType!=1&&S.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=c(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=f,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(S.rootMargin),this.thresholds=this._initThresholds(S.threshold),this.root=S.root||null,this.rootMargin=this._rootMarginValues.map(function(T){return T.value+T.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return o||(o=function(f,p){!f||!p?i=g():i=_(f,p),n.forEach(function(S){S._checkForIntersections()})}),o},a._resetCrossOriginUpdater=function(){o=null,i=null},a.prototype.observe=function(f){var p=this._observationTargets.some(function(S){return S.element==f});if(!p){if(!(f&&f.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:f,entry:null}),this._monitorIntersections(f.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(f){this._observationTargets=this._observationTargets.filter(function(p){return p.element!=f}),this._unmonitorIntersections(f.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var f=this._queuedEntries.slice();return this._queuedEntries=[],f},a.prototype._initThresholds=function(f){var p=f||[0];return Array.isArray(p)||(p=[p]),p.sort().filter(function(S,T,b){if(typeof S!="number"||isNaN(S)||S<0||S>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return S!==b[T-1]})},a.prototype._parseRootMargin=function(f){var p=f||"0px",S=p.split(/\s+/).map(function(T){var b=/^(-?\d*\.?\d+)(px|%)$/.exec(T);if(!b)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(b[1]),unit:b[2]}});return S[1]=S[1]||S[0],S[2]=S[2]||S[0],S[3]=S[3]||S[1],S},a.prototype._monitorIntersections=function(f){var p=f.defaultView;if(p&&this._monitoringDocuments.indexOf(f)==-1){var S=this._checkForIntersections,T=null,b=null;this.POLL_INTERVAL?T=p.setInterval(S,this.POLL_INTERVAL):(l(p,"resize",S,!0),l(f,"scroll",S,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in p&&(b=new p.MutationObserver(S),b.observe(f,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(f),this._monitoringUnsubscribes.push(function(){var E=f.defaultView;E&&(T&&E.clearInterval(T),u(E,"resize",S,!0)),u(f,"scroll",S,!0),b&&b.disconnect()});var A=this.root&&(this.root.ownerDocument||this.root)||t;if(f!=A){var N=e(f);N&&this._monitorIntersections(N.ownerDocument)}}},a.prototype._unmonitorIntersections=function(f){var p=this._monitoringDocuments.indexOf(f);if(p!=-1){var S=this.root&&(this.root.ownerDocument||this.root)||t,T=this._observationTargets.some(function(N){var E=N.element.ownerDocument;if(E==f)return!0;for(;E&&E!=S;){var V=e(E);if(E=V&&V.ownerDocument,E==f)return!0}return!1});if(!T){var b=this._monitoringUnsubscribes[p];if(this._monitoringDocuments.splice(p,1),this._monitoringUnsubscribes.splice(p,1),b(),f!=S){var A=e(f);A&&this._unmonitorIntersections(A.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var f=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var p=0;p<f.length;p++)f[p]()},a.prototype._checkForIntersections=function(){if(!(!this.root&&o&&!i)){var f=this._rootIsInDom(),p=f?this._getRootRect():g();this._observationTargets.forEach(function(S){var T=S.element,b=h(T),A=this._rootContainsTarget(T),N=S.entry,E=f&&A&&this._computeTargetAndRootIntersection(T,b,p),V=null;this._rootContainsTarget(T)?(!o||this.root)&&(V=p):V=g();var I=S.entry=new r({time:s(),target:T,boundingClientRect:b,rootBounds:V,intersectionRect:E});N?f&&A?this._hasCrossedThreshold(N,I)&&this._queuedEntries.push(I):N&&N.isIntersecting&&this._queuedEntries.push(I):this._queuedEntries.push(I)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},a.prototype._computeTargetAndRootIntersection=function(f,p,S){if(window.getComputedStyle(f).display!="none"){for(var T=p,b=w(f),A=!1;!A&&b;){var N=null,E=b.nodeType==1?window.getComputedStyle(b):{};if(E.display=="none")return null;if(b==this.root||b.nodeType==9)if(A=!0,b==this.root||b==t)o&&!this.root?!i||i.width==0&&i.height==0?(b=null,N=null,T=null):N=i:N=S;else{var V=w(b),I=V&&h(V),M=V&&this._computeTargetAndRootIntersection(V,I,S);I&&M?(b=V,N=_(I,M)):(b=null,T=null)}else{var F=b.ownerDocument;b!=F.body&&b!=F.documentElement&&E.overflow!="visible"&&(N=h(b))}if(N&&(T=d(N,T)),!T)break;b=b&&w(b)}return T}},a.prototype._getRootRect=function(){var f;if(this.root&&!C(this.root))f=h(this.root);else{var p=C(this.root)?this.root:t,S=p.documentElement,T=p.body;f={top:0,left:0,right:S.clientWidth||T.clientWidth,width:S.clientWidth||T.clientWidth,bottom:S.clientHeight||T.clientHeight,height:S.clientHeight||T.clientHeight}}return this._expandRectByRootMargin(f)},a.prototype._expandRectByRootMargin=function(f){var p=this._rootMarginValues.map(function(T,b){return T.unit=="px"?T.value:T.value*(b%2?f.width:f.height)/100}),S={top:f.top-p[0],right:f.right+p[1],bottom:f.bottom+p[2],left:f.left-p[3]};return S.width=S.right-S.left,S.height=S.bottom-S.top,S},a.prototype._hasCrossedThreshold=function(f,p){var S=f&&f.isIntersecting?f.intersectionRatio||0:-1,T=p.isIntersecting?p.intersectionRatio||0:-1;if(S!==T)for(var b=0;b<this.thresholds.length;b++){var A=this.thresholds[b];if(A==S||A==T||A<S!=A<T)return!0}},a.prototype._rootIsInDom=function(){return!this.root||m(t,this.root)},a.prototype._rootContainsTarget=function(f){var p=this.root&&(this.root.ownerDocument||this.root)||t;return m(p,f)&&(!this.root||p==f.ownerDocument)},a.prototype._registerInstance=function(){n.indexOf(this)<0&&n.push(this)},a.prototype._unregisterInstance=function(){var f=n.indexOf(this);f!=-1&&n.splice(f,1)};function s(){return window.performance&&performance.now&&performance.now()}function c(f,p){var S=null;return function(){S||(S=setTimeout(function(){f(),S=null},p))}}function l(f,p,S,T){typeof f.addEventListener=="function"?f.addEventListener(p,S,T):typeof f.attachEvent=="function"&&f.attachEvent("on"+p,S)}function u(f,p,S,T){typeof f.removeEventListener=="function"?f.removeEventListener(p,S,T):typeof f.detatchEvent=="function"&&f.detatchEvent("on"+p,S)}function d(f,p){var S=Math.max(f.top,p.top),T=Math.min(f.bottom,p.bottom),b=Math.max(f.left,p.left),A=Math.min(f.right,p.right),N=A-b,E=T-S;return N>=0&&E>=0&&{top:S,bottom:T,left:b,right:A,width:N,height:E}||null}function h(f){var p;try{p=f.getBoundingClientRect()}catch(S){}return p?(p.width&&p.height||(p={top:p.top,right:p.right,bottom:p.bottom,left:p.left,width:p.right-p.left,height:p.bottom-p.top}),p):g()}function g(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function v(f){return!f||"x"in f?f:{top:f.top,y:f.top,bottom:f.bottom,left:f.left,x:f.left,right:f.right,width:f.width,height:f.height}}function _(f,p){var S=p.top-f.top,T=p.left-f.left;return{top:S,left:T,height:p.height,width:p.width,bottom:S+p.height,right:T+p.width}}function m(f,p){for(var S=p;S;){if(S==f)return!0;S=w(S)}return!1}function w(f){var p=f.parentNode;return f.nodeType==9&&f!=t?e(f):(p&&p.assignedSlot&&(p=p.assignedSlot.parentNode),p&&p.nodeType==11&&p.host?p.host:p)}function C(f){return f&&f.nodeType===9}window.IntersectionObserver=a,window.IntersectionObserverEntry=r};function mr(e){const{bottom:t,height:n,left:o,right:i,top:r,width:a}=e||{};return{bottom:t,height:n,left:o,right:i,top:r,width:a}}function yb(e){const{intersectionRatio:t,boundingClientRect:{height:n,width:o},intersectionRect:{height:i,width:r}}=e;return t!==0?t:i===n?r/o:i/n}function bb(e,t,n){_b();const o=t.relativeToSelector?e.querySelector(t.relativeToSelector):null,i=new IntersectionObserver(r=>{r.forEach(a=>{n({intersectionRatio:yb(a),intersectionRect:mr(a.intersectionRect),boundingClientRect:mr(a.boundingClientRect),relativeRect:mr(a.rootBounds),time:Date.now(),dataset:Ci(a.target),id:a.target.id})})},{root:o,rootMargin:t.rootMargin,threshold:t.thresholds});if(t.observeAll){i.USE_MUTATION_OBSERVER=!0;const r=e.querySelectorAll(t.selector);for(let a=0;a<r.length;a++)i.observe(r[a])}else{i.USE_MUTATION_OBSERVER=!1;const r=e.matches(t.selector)?e:e.querySelector(t.selector);r?i.observe(r):console.warn(`Node ${t.selector} is not found. Intersection observer will not trigger.`)}return i}function ko(){const e=Ee();if(!e)return;const t=Cr(),n=t.keys();for(const o of n){const i=t.get(o);i.$.__isTabBar?i.$.__isActive=!1:Bo(o)}e.$.__isTabBar&&(e.$.__isVisible=!1,re(e,ft))}function wb(e,t){return e===t.fullPath||e==="/"&&t.meta.isEntry}function Io(e){const t=Cr().values();for(const n of t){const o=nt(n);if(wb(e,o))return n.$.__isActive=!0,o.id}}const Cl=R(Ut,({url:e,tabBarText:t,isAutomatedTesting:n},{resolve:o,reject:i})=>{if(!Ft.handledBeforeEntryPageRoutes){wr.push({args:{type:Ut,url:e,tabBarText:t,isAutomatedTesting:n},resolve:o,reject:i});return}return ko(),et({type:Ut,url:e,tabBarText:t,isAutomatedTesting:n},Io(e)).then(o).catch(i)},xy,Ry);function No(){const e=gt();if(!e)return;const t=nt(e);Bo(Do(t.path,t.id))}const Vl=R(Vn,({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(!Ft.handledBeforeEntryPageRoutes){Sr.push({args:{type:Vn,url:e,isAutomatedTesting:t},resolve:n,reject:o});return}return No(),et({type:Vn,url:e,isAutomatedTesting:t}).then(n).catch(o)},Iy,Py);function xo(){const e=Cr().keys();for(const t of e)Bo(t)}const Al=R(Vo,({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(!Ft.handledBeforeEntryPageRoutes){Tr.push({args:{type:Vo,url:e,isAutomatedTesting:t},resolve:n,reject:o});return}return xo(),et({type:Vo,url:e,isAutomatedTesting:t}).then(n).catch(o)},Ny,Oy);function et({type:e,url:t,tabBarText:n,events:o,isAutomatedTesting:i},r){const a=getApp().$router,{path:s,query:c}=sp(t);return new Promise((l,u)=>{const d=Eb(e,r);a[e==="navigateTo"?"push":"replace"]({path:s,query:c,state:d,force:!0}).then(h=>{if(VueRouter.isNavigationFailure(h))return u(h.message);if(e==="switchTab"&&(a.currentRoute.value.meta.tabBarText=n),e==="navigateTo"){const g=a.currentRoute.value.meta;return g.eventChannel?o&&(Object.keys(o).forEach(v=>{g.eventChannel._addListener(v,"on",o[v])}),g.eventChannel._clearCache()):g.eventChannel=new Ga(d.__id__,o),l(i?{__id__:d.__id__}:{eventChannel:g.eventChannel})}return i?l({__id__:d.__id__}):l()})})}function El(){if(Ft.handledBeforeEntryPageRoutes)return;Ft.handledBeforeEntryPageRoutes=!0;const e=[...br];br.length=0,e.forEach(({args:i,resolve:r,reject:a})=>et(i).then(r).catch(a));const t=[...wr];wr.length=0,t.forEach(({args:i,resolve:r,reject:a})=>(ko(),et(i,Io(i.url)).then(r).catch(a)));const n=[...Sr];Sr.length=0,n.forEach(({args:i,resolve:r,reject:a})=>(No(),et(i).then(r).catch(a)));const o=[...Tr];Tr.length=0,o.forEach(({args:i,resolve:r,reject:a})=>(xo(),et(i).then(r).catch(a)))}let vr;function En(){return vr||(vr=__uniConfig.tabBar&&Vue.reactive(zp(__uniConfig.tabBar))),vr}function Mo(e){const t=window.CSS&&window.CSS.supports;return t&&(t(e)||t.apply(window.CSS,e.split(":")))}const _r=Mo("--a:0"),Po=Mo("top:env(a)"),Oo=Mo("top:constant(a)"),Ro=Mo("backdrop-filter:blur(10px)"),kl={"css.var":_r,"css.env":Po,"css.constant":Oo,"css.backdrop-filter":Ro},Il=j(e_,e=>ae(kl,e)?kl[e]:!!ae(uni,e)),Lo=Po?"env":Oo?"constant":"";function Nl(e){let t=0,n=0;if(__UNI_FEATURE_NAVIGATIONBAR__&&e.navigationBar.style!=="custom"&&["default","float"].indexOf(e.navigationBar.type)>-1&&(t=Aa),__UNI_FEATURE_TABBAR__&&e.isTabBar){const o=En();o.shown&&(n=parseInt(o.height))}gs({"--window-top":Sb(t),"--window-bottom":xl(n)})}function Sb(e){return Lo?`calc(${e}px + ${Lo}(safe-area-inset-top))`:`${e}px`}function xl(e){return Lo?`calc(${e}px + ${Lo}(safe-area-inset-bottom))`:`${e}px`}const yr="$$",tt=new Map;function nt(e){return e.$page}const Ft={handledBeforeEntryPageRoutes:!1},br=[],wr=[],Sr=[],Tr=[];function Tb(){tt.forEach((e,t)=>{e.$.isUnmounted&&tt.delete(t)})}function Cr(){return tt}function Cb(){return $t()}function $t(){const e=[],t=tt.values();for(const n of t)n.$.__isTabBar?n.$.__isActive&&e.push(n):e.push(n);return e}function Vb(e){const t=_t.get(e);t&&(_t.delete(e),kn.pruneCacheEntry(t))}function Bo(e,t=!0){const n=tt.get(e);n.$.__isUnload=!0,re(n,Ia),tt.delete(e),t&&Vb(e)}let Ab=$i();function Eb(e,t){return{__id__:t||++Ab,__type__:e}}function kb(e){const t=Ot();if(!__UNI_FEATURE_PAGES__)return ws("navigateTo",__uniRoutes[0].path,{},t);let n=e.fullPath;return e.meta.isEntry&&n.indexOf(e.meta.route)===-1&&(n="/"+e.meta.route+n.replace("/","")),ws("navigateTo",n,{},t)}function Ib(e){const t=e.$route,n=kb(t);Jm(e,n),tt.set(Do(n.path,n.id),e),tt.size===1&&setTimeout(()=>{El()},0)}function Do(e,t){return e+yr+t}function Nb(){const e=VueRouter.useRoute(),t=Vue.computed(()=>Do("/"+e.meta.route,$i())),n=Vue.computed(()=>e.meta.isTabBar);return{routeKey:t,isTabBar:n,routeCache:kn}}const _t=new Map,kn={get(e){return _t.get(e)},set(e,t){Mb(e),_t.set(e,t)},delete(e){_t.get(e)&&_t.delete(e)},forEach(e){_t.forEach(e)}};function xb(e){return e.props.type==="tabBar"}function Mb(e){const t=parseInt(e.split(yr)[1]);t&&kn.forEach((n,o)=>{const i=parseInt(o.split(yr)[1]);if(i&&i>t){if(__UNI_FEATURE_TABBAR__&&xb(n))return;kn.delete(o),kn.pruneCacheEntry(n),Vue.nextTick(()=>Tb())}})}function Pb(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))}}function Ml(e,t){Lb(e),Nl(t),Pb(t),Ol(e,t)}function Ob(e){const t=Pl(e);t&&Rb(t)}function Rb(e){const t=document.querySelector("uni-page-body");t&&t.setAttribute(e,"")}function Pl(e){return e.type.__scopeId}let Vr;function Lb(e){const t=Pl(e),{body:n}=document;Vr&&n.removeAttribute(Vr),t&&n.setAttribute(t,""),Vr=t}const Bb=(()=>{let e=!1;try{const t={};Object.defineProperty(t,"passive",{get(){e=!0}}),window.addEventListener("test-passive",()=>{},t)}catch(t){}return e})()?{passive:!1}:!1;let Uo;function Ol(e,t){if(document.removeEventListener("touchmove",Ss),Uo&&document.removeEventListener("scroll",Uo),t.disableScroll)return document.addEventListener("touchmove",Ss,Bb);const{onPageScroll:n,onReachBottom:o}=e,i=t.navigationBar.type==="transparent";if(!(n!=null&&n.length)&&!(o!=null&&o.length)&&!i)return;const r={},a=nt(e.proxy).id;(n||i)&&(r.onPageScroll=Db(a,n,i)),o!=null&&o.length&&(r.onReachBottomDistance=t.onReachBottomDistance||xg,r.onReachBottom=()=>UniViewJSBridge.publishHandler(wi,{},a)),Uo=wm(r),requestAnimationFrame(()=>document.addEventListener("scroll",Uo))}function Db(e,t,n){return o=>{t&&UniViewJSBridge.publishHandler(Qn,{scrollTop:o},e),n&&UniViewJSBridge.emit(e+"."+Qn,{scrollTop:o})}}function Rl(e){return e.$el}function Ll(e){const{base:t}=__uniConfig.router;return qe(e).indexOf(t)===0?qe(e):t+e}function Q(e){const{base:t,assets:n}=__uniConfig.router;if(t==="./"&&e.indexOf("./")===0&&(e.includes("/static/")||e.indexOf("./"+(n||"assets")+"/")===0)&&(e=e.slice(1)),e.indexOf("/")===0)if(e.indexOf("//")===0)e="https:"+e;else return Ll(e.slice(1));if(Pg.test(e)||Og.test(e)||e.indexOf("blob:")===0)return e;const o=$t();return o.length?Ll(Li(nt(o[o.length-1]).route,e).slice(1)):e}const ve=navigator.userAgent,Ub=/android/i.test(ve),Bl=/iphone|ipad|ipod/i.test(ve),Ar=ve.match(/Windows NT ([\d|\d.\d]*)/i),Er=/Macintosh|Mac/i.test(ve),Dl=/Linux|X11/i.test(ve),Fb=Er&&navigator.maxTouchPoints>0,$b=/OpenHarmony/i.test(ve);function Ul(){return/^Apple/.test(navigator.vendor)&&typeof window.orientation=="number"}function Fl(e){return e&&Math.abs(window.orientation)===90}function $l(e,t){return e?Math[t?"max":"min"](screen.width,screen.height):screen.width}function zb(e,t){return e?Math[t?"min":"max"](screen.height,screen.width):screen.height}function zl(){const e=Ul();if(e){const t=$l(e,Fl(e));return Math.min(window.innerWidth,document.documentElement.clientWidth,t)||t}else return Math.min(window.innerWidth,document.documentElement.clientWidth)}function Hl(){const e=zl();return{platform:Bl?"ios":"other",pixelRatio:window.devicePixelRatio,windowWidth:e}}function ze(e,t,n,o){UniServiceJSBridge.invokeViewMethod("video."+e,{videoId:e,type:n,data:o},t)}function Hb(e,t,n,o,i){UniServiceJSBridge.invokeViewMethod("map."+e,{type:n,data:o},t,i)}function Wb(e){const t={};if(e.id&&(t.id=""),e.dataset&&(t.dataset={}),e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0),e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight),e.scrollOffset){const n=document.documentElement,o=document.body;t.scrollLeft=n.scrollLeft||o.scrollLeft||0,t.scrollTop=n.scrollTop||o.scrollTop||0,t.scrollHeight=n.scrollHeight||o.scrollHeight||0,t.scrollWidth=n.scrollWidth||o.scrollWidth||0}return t}function kr(e,t){const n={},{top:o,topWindowHeight:i}=hs();if(t.node){const r=e.tagName.split("-")[1]||e.tagName;r&&(n.node=e.querySelector(r))}if(t.id&&(n.id=e.id),t.dataset&&(n.dataset=Ci(e)),t.rect||t.size){const r=e.getBoundingClientRect();t.rect&&(n.left=r.left,n.right=r.right,n.top=r.top-o-i,n.bottom=r.bottom-o-i),t.size&&(n.width=r.width,n.height=r.height)}if(K(t.properties)&&t.properties.forEach(r=>{r=r.replace(/-([a-z])/g,function(a,s){return s.toUpperCase()})}),t.scrollOffset)if(e.tagName==="UNI-SCROLL-VIEW"){const r=e.children[0].children[0];n.scrollLeft=r.scrollLeft,n.scrollTop=r.scrollTop,n.scrollHeight=r.scrollHeight,n.scrollWidth=r.scrollWidth}else n.scrollLeft=0,n.scrollTop=0,n.scrollHeight=0,n.scrollWidth=0;if(K(t.computedStyle)){const r=getComputedStyle(e);t.computedStyle.forEach(a=>{n[a]=r[a]})}return t.context&&(n.contextInfo=vT(e)),n}function qb(e,t){return e?e.$el:t.$el}function Wl(e,t){return(e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(o){const i=this.parentElement.querySelectorAll(o);let r=i.length;for(;--r>=0&&i.item(r)!==this;);return r>-1}).call(e,t)}function Gb(e,t,n,o,i){const r=qb(t,e),a=r.parentElement;if(!a)return o?null:[];const{nodeType:s}=r,c=s===3||s===8;if(o){const l=c?a.querySelector(n):Wl(r,n)?r:r.querySelector(n);return l?kr(l,i):null}else{let l=[];const u=(c?a:r).querySelectorAll(n);return u&&u.length&&[].forEach.call(u,d=>{l.push(kr(d,i))}),!c&&Wl(r,n)&&l.unshift(kr(r,i)),l}}function jb(e,t,n){const o=[];t.forEach(({component:i,selector:r,single:a,fields:s})=>{i===null?o.push(Wb(s)):o.push(Gb(e,i,r,a,s))}),n(o)}function Yb(e,{pageStyle:t,rootFontSize:n}){t&&(document.querySelector("uni-page-body")||document.body).setAttribute("style",t),n&&document.documentElement.style.fontSize!==n&&(document.documentElement.style.fontSize=n)}function Xb({reqId:e,component:t,options:n,callback:o},i){const r=Rl(t);(r.__io||(r.__io={}))[e]=bb(r,n,o)}function Jb({reqId:e,component:t},n){const o=Rl(t),i=o.__io&&o.__io[e];i&&(i.disconnect(),delete o.__io[e])}let Ir={},Nr={};function Kb(e){const t=[],n=["width","minWidth","maxWidth","height","minHeight","maxHeight","orientation"];for(const i of n)i!=="orientation"&&e[i]&&+(e[i]>=0)&&t.push(`(${ql(i)}: ${Number(e[i])}px)`),i==="orientation"&&e[i]&&t.push(`(${ql(i)}: ${e[i]})`);return t.join(" and ")}function ql(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function Qb({reqId:e,component:t,options:n,callback:o},i){const r=Ir[e]=window.matchMedia(Kb(n)),a=Nr[e]=s=>o(s.matches);a(r),r.addListener(a)}function Zb({reqId:e,component:t},n){const o=Nr[e],i=Ir[e];i&&(i.removeListener(o),delete Nr[e],delete Ir[e])}function ew(e,t,n){n(null,e)}const zt={};function Fo(e,t){const n=zt[e];return n?Promise.resolve(n):/^data:[a-z-]+\/[a-z-]+;base64,/.test(e)?Promise.resolve(tw(e)):t?Promise.reject(new Error("not find")):new Promise((o,i)=>{const r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="blob",r.onload=function(){o(this.response)},r.onerror=i,r.send()})}function tw(e){const t=e.split(","),n=t[0].match(/:(.*?);/),o=n?n[1]:"",i=atob(t[1]);let r=i.length;const a=new Uint8Array(r);for(;r--;)a[r]=i.charCodeAt(r);return Gl(a,o)}function nw(e){const t=e.split("/")[1];return t?`.${t}`:""}function ow(e){e=e.split("#")[0].split("?")[0];const t=e.split("/");return t[t.length-1]}function Gl(e,t){let n;if(e instanceof File)n=e;else{t=t||e.type||"";const o=`${Date.now()}${nw(t)}`;try{n=new File([e],o,{type:t})}catch(i){e=e instanceof Blob?e:new Blob([e],{type:t}),n=e,n.name=n.name||o}}return n}function Ht(e){for(const n in zt)if(ae(zt,n)&&zt[n]===e)return n;var t=(window.URL||window.webkitURL).createObjectURL(e);return zt[t]=e,t}function iw(e){const t=document.createElement("a");return t.href=e,t.origin===location.origin?Promise.resolve(e):Fo(e).then(Ht)}function jl(e){(window.URL||window.webkitURL).revokeObjectURL(e),delete zt[e]}const $o=xs(),Yl=xs();function Xl(){return L({},Yl)}function rw(){return L({},$o)}function aw({path:e,query:t}){return L($o,{path:e,query:t}),L(Yl,$o),L({},$o)}const je=X({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,{emit:t}){const n=Vue.ref(null),o=cw(n),i=sw(n,t,o);return lw(n,e,i,o),()=>Vue.createVNode("uni-resize-sensor",{ref:n,onAnimationstartOnce:i},[Vue.createVNode("div",{onScroll:i},[Vue.createVNode("div",null,null)],40,["onScroll"]),Vue.createVNode("div",{onScroll:i},[Vue.createVNode("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});function sw(e,t,n){const o=Vue.reactive({width:-1,height:-1});return Vue.watch(()=>L({},o),i=>t("resize",i)),()=>{const i=e.value;i&&(o.width=i.offsetWidth,o.height=i.offsetHeight,n())}}function cw(e){return()=>{const{firstElementChild:t,lastElementChild:n}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5}}function lw(e,t,n,o){Vue.onActivated(o),Vue.onMounted(()=>{t.initial&&Vue.nextTick(n);const i=e.value;i.offsetParent!==i.parentElement&&(i.parentElement.style.position="relative"),"AnimationEvent"in window||o()})}const Z=(function(){if(navigator.userAgent.includes("jsdom"))return 1;const e=document.createElement("canvas");e.height=e.width=0;const t=e.getContext("2d"),n=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/n})();function Jl(e,t=!0){const n=t?Z:1;e.width=e.offsetWidth*n,e.height=e.offsetHeight*n,e.getContext("2d").__hidpi__=t}let Kl=!1;function uw(){if(Kl)return;Kl=!0;const e=function(o,i){for(const r in o)ae(o,r)&&i(o[r],r)},t={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",transform:[4,5],setTransform:[4,5]},n=CanvasRenderingContext2D.prototype;n.drawImageByCanvas=(function(o){return function(i,r,a,s,c,l,u,d,h,g){if(!this.__hidpi__)return o.apply(this,arguments);r*=Z,a*=Z,s*=Z,c*=Z,l*=Z,u*=Z,d=g?d*Z:d,h=g?h*Z:h,o.call(this,i,r,a,s,c,l,u,d,h)}})(n.drawImage),Z!==1&&(e(t,function(o,i){n[i]=(function(r){return function(){if(!this.__hidpi__)return r.apply(this,arguments);let a=Array.prototype.slice.call(arguments);if(o==="all")a=a.map(function(s){return s*Z});else if(Array.isArray(o))for(let s=0;s<o.length;s++)a[o[s]]*=Z;return r.apply(this,a)}})(n[i])}),n.stroke=(function(o){return function(){if(!this.__hidpi__)return o.apply(this,arguments);this.lineWidth*=Z,o.apply(this,arguments),this.lineWidth/=Z}})(n.stroke),n.fillText=(function(o){return function(){if(!this.__hidpi__)return o.apply(this,arguments);const i=Array.prototype.slice.call(arguments);i[1]*=Z,i[2]*=Z,i[3]&&typeof i[3]=="number"&&(i[3]*=Z);var r=this.__font__||this.font;this.font=r.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,function(a,s,c){return s*Z+c}),o.apply(this,i),this.font=r}})(n.fillText),n.strokeText=(function(o){return function(){if(!this.__hidpi__)return o.apply(this,arguments);var i=Array.prototype.slice.call(arguments);i[1]*=Z,i[2]*=Z,i[3]&&typeof i[3]=="number"&&(i[3]*=Z);var r=this.__font__||this.font;this.font=r.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,function(a,s,c){return s*Z+c}),o.apply(this,i),this.font=r}})(n.strokeText),n.drawImage=(function(o){return function(){if(!this.__hidpi__)return o.apply(this,arguments);this.scale(Z,Z),o.apply(this,arguments),this.scale(1/Z,1/Z)}})(n.drawImage))}const dw=ne(()=>uw());function Ql(e){return e&&Q(e)}function zo(e){return e=e.slice(0),e[3]=e[3]/255,"rgba("+e.join(",")+")"}function Zl(e,t){Array.from(t).forEach(n=>{n.x=n.clientX-e.left,n.y=n.clientY-e.top})}let In;function eu(e=0,t=0){return In||(In=document.createElement("canvas")),In.width=e,In.height=t,In}const fw=X({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:{canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1},hidpi:{type:Boolean,default:!0}},computed:{id(){return this.canvasId}},setup(e,{emit:t,slots:n}){dw();const o=Vue.ref(null),i=Vue.ref(null),r=Vue.ref(null),a=Vue.ref(!1),s=f0(t),{$attrs:c,$excludeAttrs:l,$listeners:u}=jo({excludeListeners:!0}),{_listeners:d}=hw(e,u,s),{_handleSubscribe:h,_resize:g}=gw(e,i,a);return Gt(h,Ko(e.canvasId),!0),Vue.onMounted(()=>{g()}),()=>{const{canvasId:v,disableScroll:_}=e;return Vue.createVNode("uni-canvas",Vue.mergeProps({ref:o,"canvas-id":v,"disable-scroll":_},c.value,l.value,d.value),[Vue.createVNode("canvas",{ref:i,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),Vue.createVNode("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[n.default&&n.default()]),Vue.createVNode(je,{ref:r,onResize:g},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});function hw(e,t,n){return{_listeners:Vue.computed(()=>{let i=["onTouchstart","onTouchmove","onTouchend"],r=t.value,a=L({},(()=>{let s={};for(const c in r)if(ae(r,c)){const l=r[c];s[c]=l}return s})());return i.forEach(s=>{let c=a[s],l=[];c&&l.push(oe(u=>{const d=u.currentTarget.getBoundingClientRect();Zl(d,u.touches),Zl(d,u.changedTouches),n(s.replace("on","").toLocaleLowerCase(),u)})),e.disableScroll&&s==="onTouchmove"&&l.push(Je),a[s]=l}),a})}}function gw(e,t,n){let o=[],i={};const r=Vue.computed(()=>e.hidpi?Z:1);function a(_){let m=t.value;var w=!_||m.width!==Math.floor(_.width*r.value)||m.height!==Math.floor(_.height*r.value);if(w)if(m.width>0&&m.height>0){let C=m.getContext("2d"),f=C.getImageData(0,0,m.width,m.height);Jl(m,e.hidpi),C.putImageData(f,0,0)}else Jl(m,e.hidpi)}function s({actions:_,reserve:m},w){if(!_)return;if(n.value){o.push([_,m]);return}let C=t.value,f=C.getContext("2d");m||(f.fillStyle="#000000",f.strokeStyle="#000000",f.shadowColor="#000000",f.shadowBlur=0,f.shadowOffsetX=0,f.shadowOffsetY=0,f.setTransform(1,0,0,1,0,0),f.clearRect(0,0,C.width,C.height)),c(_);for(let p=0;p<_.length;p++){const S=_[p];let T=S.method;const b=S.data,A=b[0];if(/^set/.test(T)&&T!=="setTransform"){const N=T[3].toLowerCase()+T.slice(4);let E;if(N==="fillStyle"||N==="strokeStyle"){if(A==="normal")E=zo(b[1]);else if(A==="linear"){const V=f.createLinearGradient(...b[1]);b[2].forEach(function(I){const M=I[0],F=zo(I[1]);V.addColorStop(M,F)}),E=V}else if(A==="radial"){let V=b[1];const I=V[0],M=V[1],F=V[2],k=f.createRadialGradient(I,M,0,I,M,F);b[2].forEach(function(B){const z=B[0],x=zo(B[1]);k.addColorStop(z,x)}),E=k}else if(A==="pattern"){if(!l(b[1],_.slice(p+1),w,function(I){I&&(f[N]=f.createPattern(I,b[2]))}))break;continue}f[N]=E}else if(N==="globalAlpha")f[N]=Number(A)/255;else if(N==="shadow"){let V=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"];b.forEach(function(I,M){f[V[M]]=V[M]==="shadowColor"?zo(I):I})}else if(N==="fontSize"){const V=f.__font__||f.font;f.__font__=f.font=V.replace(/\d+\.?\d*px/,A+"px")}else N==="lineDash"?(f.setLineDash(A),f.lineDashOffset=b[1]||0):N==="textBaseline"?(A==="normal"&&(b[0]="alphabetic"),f[N]=A):N==="font"?f.__font__=f.font=A:f[N]=A}else if(T==="fillPath"||T==="strokePath")T=T.replace(/Path/,""),f.beginPath(),b.forEach(function(N){f[N.method].apply(f,N.data)}),f[T]();else if(T==="fillText")f.fillText.apply(f,b);else if(T==="drawImage"){if((function(){let E=[...b],V=E[0],I=E.slice(1);if(i=i||{},!l(V,_.slice(p+1),w,function(M){M&&f.drawImage.apply(f,[M].concat([...I.slice(4,8)],[...I.slice(0,4)]))}))return"break"})()==="break")break}else T==="clip"?(b.forEach(function(N){f[N.method].apply(f,N.data)}),f.clip()):f[T].apply(f,b)}n.value||w({errMsg:"drawCanvas:ok"})}function c(_){_.forEach(function(m){let w=m.method,C=m.data,f="";w==="drawImage"?(f=C[0],f=Ql(f),C[0]=f):w==="setFillStyle"&&C[0]==="pattern"&&(f=C[1],f=Ql(f),C[1]=f),f&&!i[f]&&p();function p(){const S=i[f]=new Image;S.onload=function(){S.ready=!0},iw(f).then(T=>{S.src=T}).catch(()=>{S.src=f})}})}function l(_,m,w,C){let f=i[_];return f.ready?(C(f),!0):(o.unshift([m,!0]),n.value=!0,f.onload=function(){f.ready=!0,C(f),n.value=!1;let p=o.slice(0);o=[];for(let S=p.shift();S;)s({actions:S[0],reserve:S[1]},w),S=p.shift()},!1)}function u({x:_=0,y:m=0,width:w,height:C,destWidth:f,destHeight:p,hidpi:S=!0,dataType:T,quality:b=1,type:A="png"},N){const E=t.value;let V;const I=E.offsetWidth-_;w=w?Math.min(w,I):I;const M=E.offsetHeight-m;C=C?Math.min(C,M):M,S?(f=w,p=C):!f&&!p?(f=Math.round(w*r.value),p=Math.round(C*r.value)):f?p||(p=Math.round(C/w*f)):(p||(p=Math.round(C*r.value)),f=Math.round(w/C*p));const F=eu(f,p),k=F.getContext("2d");(A==="jpeg"||A==="jpg")&&(A="jpeg",k.fillStyle="#fff",k.fillRect(0,0,f,p)),k.__hidpi__=!0,k.drawImageByCanvas(E,_,m,w,C,0,0,f,p,!1);let B;try{let z;if(T==="base64")V=F.toDataURL(`image/${A}`,b);else{const x=k.getImageData(0,0,f,p);V=Array.prototype.slice.call(x.data)}B={data:V,compressed:z,width:f,height:p}}catch(z){B={errMsg:`canvasGetImageData:fail ${z}`}}if(F.height=F.width=0,k.__hidpi__=!1,N)N(B);else return B}function d({data:_,x:m,y:w,width:C,height:f,compressed:p},S){try{f||(f=Math.round(_.length/4/C));const T=eu(C,f);T.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(_),C,f),0,0),t.value.getContext("2d").drawImage(T,m,w,C,f),T.height=T.width=0}catch(T){S({errMsg:"canvasPutImageData:fail"});return}S({errMsg:"canvasPutImageData:ok"})}function h({x:_=0,y:m=0,width:w,height:C,destWidth:f,destHeight:p,fileType:S,quality:T,dirname:b},A){const N=u({x:_,y:m,width:w,height:C,destWidth:f,destHeight:p,hidpi:!1,dataType:"base64",type:S,quality:T});if(N.errMsg){A({errMsg:N.errMsg.replace("canvasPutImageData","toTempFilePath")});return}ew(N.data,b,(E,V)=>{let I=`toTempFilePath:${E?"fail":"ok"}`;E&&(I+=` ${E.message}`),A({errMsg:I,tempFilePath:V})})}const g={actionsChanged:s,getImageData:u,putImageData:d,toTempFilePath:h};function v(_,m,w){let C=g[_];_.indexOf("_")!==0&&G(C)&&C(m,w)}return L(g,{_resize:a,_handleSubscribe:v})}const tu=fn("ucg"),pw=X({name:"CheckboxGroup",props:{name:{type:String,default:""}},emits:["change"],setup(e,{emit:t,slots:n}){const o=Vue.ref(null),i=pe(o,t);return mw(e,i),()=>Vue.createVNode("uni-checkbox-group",{ref:o},[n.default&&n.default()],512)}});function mw(e,t){const n=[],o=()=>n.reduce((r,a)=>(a.value.checkboxChecked&&r.push(a.value.value),r),new Array);Vue.provide(tu,{addField(r){n.push(r)},removeField(r){n.splice(n.indexOf(r),1)},checkboxChange(r){t("change",r,{value:o()})}});const i=Vue.inject(Fe,!1);return i&&i.addField({submit:()=>{let r=["",null];return e.name!==""&&(r[0]=e.name,r[1]=o()),r}}),o}const vw=X({name:"Checkbox",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},value:{type:String,default:""},color:{type:String,default:"#007aff"},backgroundColor:{type:String,default:""},borderColor:{type:String,default:""},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},iconColor:{type:String,default:""},foreColor:{type:String,default:""}},setup(e,{slots:t}){const n=Vue.ref(null),o=Vue.ref(e.checked),i=Vue.computed(()=>o.value==="true"||o.value===!0),r=Vue.ref(e.value);function a(h){if(e.disabled)return{backgroundColor:"#E1E1E1",borderColor:"#D1D1D1"};const g={};return h?(e.activeBorderColor&&(g.borderColor=e.activeBorderColor),e.activeBackgroundColor&&(g.backgroundColor=e.activeBackgroundColor)):(e.borderColor&&(g.borderColor=e.borderColor),e.backgroundColor&&(g.backgroundColor=e.backgroundColor)),g}const s=Vue.computed(()=>a(i.value));Vue.watch([()=>e.checked,()=>e.value],([h,g])=>{o.value=h,r.value=g});const c=()=>{o.value=!1},{uniCheckGroup:l,uniLabel:u}=_w(o,r,c),d=h=>{e.disabled||(o.value=!o.value,l&&l.checkboxChange(h),h.stopPropagation())};return u&&(u.addHandler(d),Vue.onBeforeUnmount(()=>{u.removeHandler(d)})),fo(e,{"label-click":d}),()=>{const h=mt(e,"disabled");let g;return g=o.value,Vue.createVNode("uni-checkbox",Vue.mergeProps(h,{id:e.id,onClick:d,ref:n}),[Vue.createVNode("div",{class:"uni-checkbox-wrapper",style:{"--HOVER-BD-COLOR":e.activeBorderColor}},[Vue.createVNode("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}],style:s.value},[g?le(hn,e.disabled?"#ADADAD":e.foreColor||e.iconColor||e.color,22):""],6),t.default&&t.default()],4)],16,["id","onClick"])}}});function _w(e,t,n){const o=Vue.computed(()=>({checkboxChecked:!!e.value,value:t.value})),i={reset:n},r=Vue.inject(tu,!1);r&&r.addField(o);const a=Vue.inject(Fe,!1);a&&a.addField(i);const s=Vue.inject(_n,!1);return Vue.onBeforeUnmount(()=>{r&&r.removeField(o),a&&a.removeField(i)}),{uniCheckGroup:r,uniForm:a,uniLabel:s}}let yw;function nu(){}const ou={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}},iu=["keyboardheightchange"];function ru(e,t,n){function o(i){const r=Vue.computed(()=>String(navigator.vendor).indexOf("Apple")===0);i.addEventListener("focus",()=>{clearTimeout(yw),document.addEventListener("click",nu,!1)});const a=()=>{document.removeEventListener("click",nu,!1),r.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)};i.addEventListener("blur",()=>{r.value&&i.blur(),a()})}Vue.watch(()=>t.value,i=>i&&o(i))}var au=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,su=/^<\/([-A-Za-z0-9_]+)[^>]*>/,bw=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,ww=Wt("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),Sw=Wt("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),Tw=Wt("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),Cw=Wt("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),Vw=Wt("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),Aw=Wt("script,style");function cu(e,t){var n,o,i,r=[],a=e;for(r.last=function(){return this[this.length-1]};e;){if(o=!0,!r.last()||!Aw[r.last()]){if(e.indexOf("<!--")==0?(n=e.indexOf("-->"),n>=0&&(t.comment&&t.comment(e.substring(4,n)),e=e.substring(n+3),o=!1)):e.indexOf("</")==0?(i=e.match(su),i&&(e=e.substring(i[0].length),i[0].replace(su,l),o=!1)):e.indexOf("<")==0&&(i=e.match(au),i&&(e=e.substring(i[0].length),i[0].replace(au,c),o=!1)),o){n=e.indexOf("<");var s=n<0?e:e.substring(0,n);e=n<0?"":e.substring(n),t.chars&&t.chars(s)}}else e=e.replace(new RegExp("([\\s\\S]*?)</"+r.last()+"[^>]*>"),function(u,d){return d=d.replace(/<!--([\s\S]*?)-->|<!\[CDATA\[([\s\S]*?)]]>/g,"$1$2"),t.chars&&t.chars(d),""}),l("",r.last());if(e==a)throw"Parse Error: "+e;a=e}l();function c(u,d,h,g){if(d=d.toLowerCase(),Sw[d])for(;r.last()&&Tw[r.last()];)l("",r.last());if(Cw[d]&&r.last()==d&&l("",d),g=ww[d]||!!g,g||r.push(d),t.start){var v=[];h.replace(bw,function(_,m){var w=arguments[2]?arguments[2]:arguments[3]?arguments[3]:arguments[4]?arguments[4]:Vw[m]?m:"";v.push({name:m,value:w,escaped:w.replace(/(^|[^\\])"/g,'$1\\"')})}),t.start&&t.start(d,v,g)}}function l(u,d){if(d)for(var h=r.length-1;h>=0&&r[h]!=d;h--);else var h=0;if(h>=0){for(var g=r.length-1;g>=h;g--)t.end&&t.end(r[g]);r.length=h}}}function Wt(e){for(var t={},n=e.split(","),o=0;o<n.length;o++)t[n[o]]=!0;return t}const xr={};function lu(e,t,n){if(J(e)?window[e]:e){n();return}let i=xr[t];if(!i){i=xr[t]=[];const r=document.createElement("script");r.src=t,document.body.appendChild(r),r.onload=function(){i.forEach(a=>a()),delete xr[t]}}i.push(n)}function Ew(e){const t=e.import("blots/block/embed");class n extends t{}return n.blotName="divider",n.tagName="HR",{"formats/divider":n}}function kw(e){const t=e.import("blots/inline");class n extends t{}return n.blotName="ins",n.tagName="INS",{"formats/ins":n}}function Iw(e){const{Scope:t,Attributor:n}=e.import("parchment"),o={scope:t.BLOCK,whitelist:["left","right","center","justify"]};return{"formats/align":new n.Style("align","text-align",o)}}function Nw(e){const{Scope:t,Attributor:n}=e.import("parchment"),o={scope:t.BLOCK,whitelist:["rtl"]};return{"formats/direction":new n.Style("direction","direction",o)}}function xw(e){const t=e.import("parchment"),n=e.import("blots/container"),o=e.import("formats/list/item");class i extends n{static create(a){const s=a==="ordered"?"OL":"UL",c=super.create(s);return(a==="checked"||a==="unchecked")&&c.setAttribute("data-checked",a==="checked"),c}static formats(a){if(a.tagName==="OL")return"ordered";if(a.tagName==="UL")return a.hasAttribute("data-checked")?a.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}constructor(a){super(a);const s=c=>{if(c.target.parentNode!==a)return;const l=this.statics.formats(a),u=t.find(c.target);l==="checked"?u.format("list","unchecked"):l==="unchecked"&&u.format("list","checked")};a.addEventListener("click",s)}format(a,s){this.children.length>0&&this.children.tail.format(a,s)}formats(){return{[this.statics.blotName]:this.statics.formats(this.domNode)}}insertBefore(a,s){if(a instanceof o)super.insertBefore(a,s);else{const c=s==null?this.length():s.offset(this),l=this.split(c);l.parent.insertBefore(a,l)}}optimize(a){super.optimize(a);const s=this.next;s!=null&&s.prev===this&&s.statics.blotName===this.statics.blotName&&s.domNode.tagName===this.domNode.tagName&&s.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(s.moveChildren(this),s.remove())}replace(a){if(a.statics.blotName!==this.statics.blotName){const s=t.create(this.statics.defaultChild);a.moveChildren(s),this.appendChild(s)}super.replace(a)}}return i.blotName="list",i.scope=t.Scope.BLOCK_BLOT,i.tagName=["OL","UL"],i.defaultChild="list-item",i.allowedChildren=[o],{"formats/list":i}}function Mw(e){const{Scope:t}=e.import("parchment"),n=e.import("formats/background");return{"formats/backgroundColor":new n.constructor("backgroundColor","background-color",{scope:t.INLINE})}}function Pw(e){const{Scope:t,Attributor:n}=e.import("parchment"),o={scope:t.BLOCK},i=["margin","marginTop","marginBottom","marginLeft","marginRight"],r=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],a={};return i.concat(r).forEach(s=>{a[`formats/${s}`]=new n.Style(s,At(s),o)}),a}function Ow(e){const{Scope:t,Attributor:n}=e.import("parchment"),o={scope:t.INLINE},i=["font","fontSize","fontStyle","fontVariant","fontWeight","fontFamily"],r={};return i.forEach(a=>{r[`formats/${a}`]=new n.Style(a,At(a),o)}),r}function Rw(e){const{Scope:t,Attributor:n}=e.import("parchment"),o=[{name:"lineHeight",scope:t.BLOCK},{name:"letterSpacing",scope:t.INLINE},{name:"textDecoration",scope:t.INLINE},{name:"textIndent",scope:t.BLOCK}],i={};return o.forEach(({name:r,scope:a})=>{i[`formats/${r}`]=new n.Style(r,At(r),{scope:a})}),i}function Lw(e){const t=e.import("formats/image"),n=["alt","height","width","data-custom","class","data-local"];t.sanitize=i=>i&&Q(i),t.formats=function(r){return n.reduce(function(a,s){return r.hasAttribute(s)&&(a[s]=r.getAttribute(s)),a},{})};const o=t.prototype.format;t.prototype.format=function(i,r){n.indexOf(i)>-1?r?this.domNode.setAttribute(i,r):this.domNode.removeAttribute(i):o.call(this,i,r)}}function Bw(e){const t=e.import("formats/link");t.sanitize=n=>{const o=document.createElement("a");o.href=n;const i=o.href.slice(0,o.href.indexOf(":"));return t.PROTOCOL_WHITELIST.concat("file").indexOf(i)>-1?n:t.SANITIZED_URL}}function Dw(e){const t={divider:Ew,ins:kw,align:Iw,direction:Nw,list:xw,background:Mw,box:Pw,font:Ow,text:Rw,image:Lw,link:Bw},n={};Object.values(t).forEach(o=>L(n,o(e))),e.register(n,!0)}function Uw(e,t,n){let o,i,r;Vue.watch(()=>e.readOnly,v=>{o&&(r.enable(!v),v||r.blur())}),Vue.watch(()=>e.placeholder,v=>{o&&c(v)});function a(v){const _=["span","strong","b","ins","em","i","u","a","del","s","sub","sup","img","div","p","h1","h2","h3","h4","h5","h6","hr","ol","ul","li","br"];let m="",w;cu(v,{start:function(f,p,S){if(!_.includes(f)){w=!S;return}w=!1;const T=p.map(({name:A,value:N})=>`${A}="${N}"`).join(" "),b=`<${f} ${T} ${S?"/":""}>`;m+=b},end:function(f){w||(m+=`</${f}>`)},chars:function(f){w||(m+=f)}}),i=!0;const C=r.clipboard.convert(m);return i=!1,C}function s(){const v=r.root.innerHTML,_=r.getText(),m=r.getContents();return{html:v,text:_,delta:m}}function c(v){const _="data-placeholder",m=r.root;m.getAttribute(_)!==v&&m.setAttribute(_,v)}let l={};function u(v){const _=v?r.getFormat(v):{},m=Object.keys(_);(m.length!==Object.keys(l).length||m.find(w=>_[w]!==l[w]))&&(l=_,n("statuschange",{},_))}function d(){n("input",{},s())}function h(v){const _=window.Quill;Dw(_);const m={toolbar:!1,readOnly:e.readOnly,placeholder:e.placeholder};v.length&&(_.register("modules/ImageResize",window.ImageResize.default),m.modules={ImageResize:{modules:v}});const w=t.value;r=new _(w,m);const C=r.root;["focus","blur","input"].forEach(p=>{C.addEventListener(p,S=>{const T=s();if(p==="input"){if(Hl().platform==="ios"){const b=(T.html.match(/<span [\s\S]*>([\s\S]*)<\/span>/)||[])[1],A=b&&b.replace(/\s/g,"")?"":e.placeholder;c(A)}S.stopPropagation()}else n(p,S,T)})}),r.on("text-change",d),r.on("selection-change",u),r.on("scroll-optimize",()=>{const p=r.selection.getRange()[0];u(p)}),r.clipboard.addMatcher(Node.ELEMENT_NODE,(p,S)=>(i||S.ops&&(S.ops=S.ops.filter(({insert:T})=>J(T)).map(({insert:T})=>({insert:T}))),S)),o=!0,n("ready",{},{})}const g=Ko();Gt((v,_,m)=>{const{options:w,callbackId:C}=_;let f,p,S;if(o){const T=window.Quill;switch(v){case"format":{let{name:b="",value:A=!1}=w;if(p=r.getSelection(!0),!b)break;let N=r.getFormat(p)[b]||!1;if(["bold","italic","underline","strike","ins"].includes(b))A=!N;else if(b==="direction"){A=A==="rtl"&&N?!1:A;const E=r.getFormat(p).align;A==="rtl"&&!E?r.format("align","right","user"):!A&&E==="right"&&r.format("align",!1,"user")}else if(b==="indent"){const E=r.getFormat(p).direction==="rtl";A=A==="+1",E&&(A=!A),A=A?"+1":"-1"}else b==="list"&&(A=A==="check"?"unchecked":A,N=N==="checked"?"unchecked":N),A=N&&N!==(A||!1)||!N&&A?A:!N;r.format(b,A,"user")}break;case"insertDivider":p=r.getSelection(!0),r.insertText(p.index,kt,"user"),r.insertEmbed(p.index+1,"divider",!0,"user"),r.setSelection(p.index+2,0,"silent");break;case"insertImage":{p=r.getSelection(!0);const{src:b="",alt:A="",width:N="",height:E="",extClass:V="",data:I={}}=w,M=Q(b);r.insertEmbed(p.index,"image",M,"silent");const F=/^(file|blob):/.test(M)?M:!1;r.formatText(p.index,1,"data-local",F,"silent"),r.formatText(p.index,1,"alt",A,"silent"),r.formatText(p.index,1,"width",N,"silent"),r.formatText(p.index,1,"height",E,"silent"),r.formatText(p.index,1,"class",V,"silent"),r.formatText(p.index,1,"data-custom",Object.keys(I).map(k=>`${k}=${I[k]}`).join("&"),"silent"),r.setSelection(p.index+1,0,"silent"),r.scrollIntoView(),setTimeout(()=>{d()},1e3)}break;case"insertText":{p=r.getSelection(!0);const{text:b=""}=w;r.insertText(p.index,b,"user"),r.setSelection(p.index+b.length,0,"silent")}break;case"setContents":{const{delta:b,html:A}=w;typeof b=="object"?r.setContents(b,"silent"):J(A)?r.setContents(a(A),"silent"):S="contents is missing"}break;case"getContents":f=s();break;case"clear":r.setText("");break;case"removeFormat":{p=r.getSelection(!0);const b=T.import("parchment");p.length?r.removeFormat(p.index,p.length,"user"):Object.keys(r.getFormat(p)).forEach(A=>{b.query(A,b.Scope.INLINE)&&r.format(A,!1)})}break;case"undo":r.history.undo();break;case"redo":r.history.redo();break;case"blur":r.blur();break;case"getSelectionText":p=r.selection.savedRange,f={text:""},p&&p.length!==0&&(f.text=r.getText(p.index,p.length));break;case"scrollIntoView":r.scrollIntoView();break}u(p)}else S="not ready";C&&m({callbackId:C,data:L({},f,{errMsg:`${v}:${S?"fail "+S:"ok"}`})})},g,!0),Vue.onMounted(()=>{const v=[];e.showImgSize&&v.push("DisplaySize"),e.showImgToolbar&&v.push("Toolbar"),e.showImgResize&&v.push("Resize"),lu(window.Quill,"https://unpkg.com/quill@1.3.7/dist/quill.min.js",()=>{v.length?lu(window.ImageResize,"https://unpkg.com/quill-image-resize-mp@3.0.1/image-resize.min.js",()=>{h(v)}):h(v)})})}const Fw=X({name:"Editor",props:L({},ou,{id:{type:String,default:""},readOnly:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},showImgSize:{type:[Boolean,String],default:!1},showImgToolbar:{type:[Boolean,String],default:!1},showImgResize:{type:[Boolean,String],default:!1}}),emit:["ready","focus","blur","input","statuschange",...iu],setup(e,{emit:t}){const n=Vue.ref(null),o=pe(n,t);return Uw(e,n,o),ru(e,n),()=>Vue.createVNode("uni-editor",{ref:n,id:e.id,class:"ql-container"},null,8,["id"])}}),uu="#10aeff",$w="#f76260",du="#b2b2b2",zw={success:{d:pm,c:on},success_no_circle:{d:hn,c:on},info:{d:gm,c:uu},warn:{d:_s,c:$w},waiting:{d:mm,c:uu},cancel:{d:dm,c:"#f43530"},download:{d:hm,c:on},search:{d:vs,c:du},clear:{d:fm,c:du}},Hw=X({name:"Icon",props:{type:{type:String,required:!0,default:""},size:{type:[String,Number],default:23},color:{type:String,default:""}},setup(e){const t=Vue.ref(null),n=Vue.computed(()=>zw[e.type]);return()=>{const{value:o}=n;return Vue.createVNode("uni-icon",{ref:t},[o&&o.d&&le(o.d,e.color||o.c,Ge(e.size))],512)}}}),Ww={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},Ho={widthFix:["offsetWidth","height",(e,t)=>e/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},qw={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"]},Gw=X({name:"Image",props:Ww,setup(e,{emit:t}){const n=Vue.ref(null),o=jw(n,e),i=pe(n,t),{fixSize:r}=Kw(n,e,o);return Yw(o,e,n,r,i),()=>Vue.createVNode("uni-image",{ref:n},[Vue.createVNode("div",{style:o.modeStyle},null,4),Ho[e.mode]?Vue.createVNode(je,{onResize:r},null,8,["onResize"]):Vue.createVNode("span",null,null)],512)}});function jw(e,t){const n=Vue.ref(""),o=Vue.computed(()=>{let r="auto",a="";const s=qw[t.mode];return s?(s[0]&&(a=s[0]),s[1]&&(r=s[1])):(a="0% 0%",r="100% 100%"),`background-image:${n.value?'url("'+n.value+'")':"none"};background-position:${a};background-size:${r};`}),i=Vue.reactive({rootEl:e,src:Vue.computed(()=>t.src?Q(t.src):""),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:o,imgSrc:n});return Vue.onMounted(()=>{const r=e.value;i.origWidth=r.clientWidth||0,i.origHeight=r.clientHeight||0}),i}function Yw(e,t,n,o,i){let r,a;const s=(u=0,d=0,h="")=>{e.origWidth=u,e.origHeight=d,e.imgSrc=h},c=u=>{if(!u){l(),s();return}r=r||new Image,r.onload=d=>{const{width:h,height:g}=r;s(h,g,u),Vue.nextTick(()=>{o()}),r.draggable=t.draggable,a&&a.remove(),a=r,n.value.appendChild(r),l(),i("load",d,{width:h,height:g})},r.onerror=d=>{s(),l(),i("error",d,{errMsg:`GET ${e.src} 404 (Not Found)`})},r.src=u},l=()=>{r&&(r.onload=null,r.onerror=null,r=null)};Vue.watch(()=>e.src,u=>c(u)),Vue.watch(()=>e.imgSrc,u=>{!u&&a&&(a.remove(),a=null)}),Vue.onMounted(()=>c(e.src)),Vue.onBeforeUnmount(()=>l())}const Xw=navigator.vendor==="Google Inc.";function Jw(e){return Xw&&e>10&&(e=Math.round(e/2)*2),e}function Kw(e,t,n){const o=()=>{const{mode:r}=t,a=Ho[r];if(!a)return;const{origWidth:s,origHeight:c}=n,l=s&&c?s/c:0;if(!l)return;const u=e.value,d=u[a[0]];d&&(u.style[a[1]]=Jw(a[2](d,l))+"px")},i=()=>{const{style:r}=e.value,{origStyle:{width:a,height:s}}=n;r.width=a,r.height=s};return Vue.watch(()=>t.mode,(r,a)=>{Ho[a]&&i(),Ho[r]&&o()}),{fixSize:o,resetSize:i}}function Qw(e,t){let n=0,o,i;const r=function(...a){const s=Date.now();if(clearTimeout(o),i=()=>{i=null,n=s,e.apply(this,a)},s-n<t){o=setTimeout(i,t-(s-n));return}i()};return r.cancel=function(){clearTimeout(o),i=null},r.flush=function(){clearTimeout(o),i&&i()},r}const Zw=It(!0),Wo=[];let qo=0,fu=!1;const hu=e=>Wo.forEach(t=>t.userAction=e);function gu(e={userAction:!1}){fu||(["touchstart","touchmove","touchend","mousedown","mouseup"].forEach(n=>{document.addEventListener(n,function(){!qo&&hu(!0),qo++,setTimeout(()=>{!--qo&&hu(!1)},0)},Zw)}),fu=!0),Wo.push(e)}function eS(e){const t=Wo.indexOf(e);t>=0&&Wo.splice(t,1)}const Mr=()=>!!qo;function pu(){const e=Vue.reactive({userAction:!1});return Vue.onMounted(()=>{gu(e)}),Vue.onBeforeUnmount(()=>{eS(e)}),{state:e}}function mu(){const e=Vue.reactive({attrs:{}});return Vue.onMounted(()=>{let t=Vue.getCurrentInstance();for(;t;){const n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&t.proxy.$mpType==="page"?null:t.parent}}),{state:e}}function tS(e,t){const n=Vue.inject(Fe,!1);if(!n)return;const o=Vue.getCurrentInstance(),i={submit(){const r=o.proxy;return[r[e],J(t)?r[t]:t.value]},reset(){J(t)?o.proxy[t]="":t.value=""}};n.addField(i),Vue.onBeforeUnmount(()=>{n.removeField(i)})}function nS(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 oS=function(){rs(pt(),"getSelectedTextRange",nS)};function Pr(e,t,n){return t==="number"&&isNaN(Number(e))&&(e=""),e==null?"":String(e)}const vu=["none","text","decimal","numeric","tel","search","email","url"],_u=L({},{name:{type:String,default:""},modelValue:{type:[String,Number]},value:{type:[String,Number]},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=>!!~vu.indexOf(e)},cursorColor:{type:String,default:""}},ou),yu=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend",...iu];function iS(e,t,n){const o=Vue.ref(null),i=pe(t,n),r=Vue.computed(()=>{const d=Number(e.selectionStart);return isNaN(d)?-1:d}),a=Vue.computed(()=>{const d=Number(e.selectionEnd);return isNaN(d)?-1:d}),s=Vue.computed(()=>{const d=Number(e.cursor);return isNaN(d)?-1:d}),c=Vue.computed(()=>{var d=Number(e.maxlength);return isNaN(d)?140:d});let l="";l=Pr(e.modelValue,e.type)||Pr(e.value,e.type);const u=Vue.reactive({value:l,valueOrigin:l,maxlength:c,focus:e.focus,composing:!1,selectionStart:r,selectionEnd:a,cursor:s});return Vue.watch(()=>u.focus,d=>n("update:focus",d)),Vue.watch(()=>u.maxlength,d=>u.value=u.value.slice(0,d),{immediate:!1}),{fieldRef:o,state:u,trigger:i}}function rS(e,t,n,o,i){let r=null,a=null;a=ki(l=>{const u=i.value,d=Pr(l,e.type);u&&document.activeElement===u&&d===r||(t.value=d)},100,{setTimeout,clearTimeout}),Vue.watch(()=>e.modelValue,a),Vue.watch(()=>e.value,a);const s=Qw((l,u)=>{a.cancel(),n("update:modelValue",u.value),n("update:value",u.value),o("input",l,u)},100),c=(l,u,d)=>{a.cancel(),r=u.value,s(l,u),d&&s.flush()};return Vue.onBeforeMount(()=>{a.cancel(),s.cancel()}),{trigger:o,triggerInput:c}}function aS(e,t){pu();const n=Vue.computed(()=>e.autoFocus||e.focus);function o(){if(!n.value)return;const r=t.value;if(!r){setTimeout(o,100);return}r.focus()}function i(){const r=t.value;r&&r.blur()}Vue.watch(()=>e.focus,r=>{r?o():i()}),Vue.onMounted(()=>{n.value&&Vue.nextTick(o)})}function sS(e,t,n,o,i,r){function a(){const u=e.value;u&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&u.type!=="number"&&(u.selectionStart=t.selectionStart,u.selectionEnd=t.selectionEnd)}function s(){const u=e.value;u&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&u.type!=="number"&&(u.selectionEnd=u.selectionStart=t.cursor)}function c(u){return u.type==="number"?null:u.selectionEnd}function l(){const u=e.value;if(!u)return;const d=function(_){t.focus=!0,o("focus",_,{value:t.value}),a(),s()},h=function(_,m){_.stopPropagation(),!(G(r)&&r(_,t)===!1)&&(t.value=u.value,(!t.composing||!n.ignoreCompositionEvent)&&i(_,{value:u.value,cursor:c(u)},m))},g=function(_){t.composing&&(t.composing=!1,h(_,!0)),t.focus=!1,o("blur",_,{value:t.value,cursor:c(_.target)})};u.addEventListener("change",_=>_.stopPropagation()),u.addEventListener("focus",d),u.addEventListener("blur",g),u.addEventListener("input",h),u.addEventListener("compositionstart",_=>{_.stopPropagation(),t.composing=!0,v(_)}),u.addEventListener("compositionend",_=>{_.stopPropagation(),t.composing&&(t.composing=!1,h(_)),v(_)}),u.addEventListener("compositionupdate",v);function v(_){n.ignoreCompositionEvent||o(_.type,_,{value:_.data})}}Vue.watch([()=>t.selectionStart,()=>t.selectionEnd],a),Vue.watch(()=>t.cursor,s),Vue.watch(()=>e.value,l)}function bu(e,t,n,o){oS();const{fieldRef:i,state:r,trigger:a}=iS(e,t,n),{triggerInput:s}=rS(e,r,n,a,i);aS(e,i),ru(e,i);const{state:c}=mu();tS("name",r),sS(i,r,e,a,s,o);const l=String(navigator.vendor).indexOf("Apple")===0&&CSS.supports("image-orientation:from-image");return{fieldRef:i,state:r,scopedAttrsState:c,fixDisabledColor:l,trigger:a}}const cS=ne(()=>{{const e=navigator.userAgent;let t="";const n=e.match(/OS\s([\w_]+)\slike/);if(n)t=n[1].replace(/_/g,".");else if(/Macintosh|Mac/i.test(e)&&navigator.maxTouchPoints>0){const o=e.match(/Version\/(\S*)\b/);o&&(t=o[1])}return!!t&&parseInt(t)>=16&&parseFloat(t)<17.2}});function wu(e,t,n,o,i){if(t.value){if(e.data==="."){if(t.value.slice(-1)===".")return n.value=o.value=t.value=t.value.slice(0,-1),!1;if(t.value&&!t.value.includes(".")&&t.value===o.value)return t.value+=".",i&&(i.fn=()=>{n.value=o.value=t.value=t.value.slice(0,-1),o.removeEventListener("blur",i.fn)},o.addEventListener("blur",i.fn)),!1}else if(e.inputType==="deleteContentBackward"&&cS()&&t.value.slice(-2,-1)===".")return t.value=n.value=o.value=t.value.slice(0,-2),!0}}const lS=L({},_u,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}});function Su(e){return e.inputType==="insertFromPaste"}function uS(e,t){if(t.value==="number"){const n=typeof e.modelValue=="undefined"?e.value:e.modelValue,o=Vue.ref(typeof n!="undefined"&&n!==null?n.toLocaleString():"");return Vue.watch(()=>e.modelValue,i=>{o.value=typeof i!="undefined"&&i!==null?i.toLocaleString():""}),Vue.watch(()=>e.value,i=>{o.value=typeof i!="undefined"&&i!==null?i.toLocaleString():""}),o}else return Vue.ref("")}const Go=X({name:"Input",props:lS,emits:["confirm",...yu],setup(e,{emit:t,expose:n}){const o=["text","number","idcard","digit","password","tel"],i=["off","one-time-code"],r=Vue.computed(()=>{let f="";switch(e.type){case"text":f="text",e.confirmType==="search"&&(f="search");break;case"idcard":f="text";break;case"digit":f="number";break;case"none":f="text";break;default:f=o.includes(e.type)?e.type:"text";break}return e.password?"password":f}),a=Vue.computed(()=>{const f=i.indexOf(e.textContentType),p=i.indexOf(At(e.textContentType));return i[f!==-1?f:p!==-1?p:0]}),s=Vue.computed(()=>e.inputmode!==void 0?e.inputmode:vu.includes(e.type)?e.type:{number:"numeric",digit:"decimal",idcard:"text"}[e.type]);let c=uS(e,r),l={fn:null};const u=Vue.ref(null),{fieldRef:d,state:h,scopedAttrsState:g,fixDisabledColor:v,trigger:_}=bu(e,u,t,(f,p)=>{const S=f.target;if(r.value==="number"){if(l.fn&&(S.removeEventListener("blur",l.fn),l.fn=null),S.validity&&!S.validity.valid){if((!c.value||!S.value)&&f.data==="-"||c.value[0]==="-"&&f.inputType==="deleteContentBackward")return c.value="-",p.value="",l.fn=()=>{c.value=S.value=""},S.addEventListener("blur",l.fn),!1;const T=wu(f,c,p,S,l);return typeof T=="boolean"?T:(c.value=p.value=S.value=c.value==="-"?"":c.value,!1)}else{const T=wu(f,c,p,S,l);if(typeof T=="boolean")return T;c.value=S.value}if(p.maxlength>0&&S.value.length>p.maxlength&&!Su(f))return S.value=c.value=p.value,!1}});Vue.watch(()=>h.value,f=>{e.type==="number"&&!(c.value==="-"&&f==="")&&(c.value=f.toString())}),Vue.watch(()=>e.maxlength,f=>{f=parseInt(f,10);const p=h.value.slice(0,f);p!==h.value&&(h.value=p)});const m=["number","digit"],w=Vue.computed(()=>m.includes(e.type)?e.step:"");function C(f){if(f.key!=="Enter")return;const p=f.target;f.stopPropagation(),_("confirm",f,{value:p.value}),!e.confirmHold&&p.blur()}return n({$triggerInput:f=>{t("update:modelValue",f.value),t("update:value",f.value),h.value=f.value}}),()=>{let f=e.disabled&&v?Vue.createVNode("input",{key:"disabled-input",ref:d,value:h.value,tabindex:"-1",readonly:!!e.disabled,type:r.value,maxlength:h.maxlength,step:w.value,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},inputmode:s.value,onFocus:p=>p.target.blur()},null,44,["value","readonly","type","maxlength","step","inputmode","onFocus"]):Vue.createVNode("input",{key:"input",ref:d,value:h.value,onInput:Vue.withModifiers(p=>{const S=p.target.value.toString();if(r.value==="number"&&h.maxlength>0&&S.length>h.maxlength){Su(p)&&(h.value=S.slice(0,h.maxlength));return}S.length===0&&p.inputType==="insertText"&&p.data==="."||(h.value=S)},["stop"]),disabled:!!e.disabled,type:r.value,maxlength:h.maxlength,step:w.value,enterkeyhint:e.confirmType,pattern:e.type==="number"?"[0-9]*":void 0,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},autocomplete:a.value,onKeyup:C,inputmode:s.value},null,44,["value","onInput","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup","inputmode"]);return Vue.createVNode("uni-input",{ref:u},[Vue.createVNode("div",{class:"uni-input-wrapper"},[Vue.withDirectives(Vue.createVNode("div",Vue.mergeProps(g.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Vue.vShow,!(h.value.length||c.value==="-"||c.value.includes("."))]]),e.confirmType==="search"?Vue.createVNode("form",{action:"",onSubmit:p=>p.preventDefault(),class:"uni-input-form"},[f],40,["onSubmit"]):f])],512)}}});function dS(e){return Object.keys(e).map(t=>[t,e[t]])}const fS=["class","style"],hS=/^on[A-Z]+/,jo=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n=[]}=e,o=Vue.getCurrentInstance(),i=Vue.shallowRef({}),r=Vue.shallowRef({}),a=Vue.shallowRef({}),s=n.concat(fS);return o.attrs=Vue.reactive(o.attrs),Vue.watchEffect(()=>{const c=dS(o.attrs).reduce((l,[u,d])=>(s.includes(u)?l.exclude[u]=d:hS.test(u)?(t||(l.attrs[u]=d),l.listeners[u]=d):l.attrs[u]=d,l),{exclude:{},attrs:{},listeners:{}});i.value=c.attrs,r.value=c.listeners,a.value=c.exclude}),{$attrs:i,$listeners:r,$excludeAttrs:a}};function qt(e){const t=[];return K(e)&&e.forEach(n=>{Vue.isVNode(n)?n.type===Vue.Fragment?t.push(...qt(n.children)):t.push(n):K(n)&&t.push(...qt(n))}),t}const Tu=X({inheritAttrs:!1,name:"MovableArea",props:{scaleArea:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=Vue.ref(null),o=Vue.ref(!1);let{setContexts:i,events:r}=gS(e,n);const{$listeners:a,$attrs:s,$excludeAttrs:c}=jo(),l=a.value;["onTouchstart","onTouchmove","onTouchend"].forEach(m=>{let w=l[m],C=r[`_${m}`];l[m]=w?[].concat(w,C):C}),Vue.onMounted(()=>{r._resize(),o.value=!0});let d=[];const h=[];function g(){const m=[];for(let w=0;w<d.length;w++){let C=d[w];C=C.el;const f=h.find(p=>C===p.rootRef.value);f&&m.push(Vue.markRaw(f))}i(m)}const v=m=>{h.push(m),g()},_=m=>{const w=h.indexOf(m);w>=0&&(h.splice(w,1),g())};return Vue.provide("_isMounted",o),Vue.provide("movableAreaRootRef",n),Vue.provide("addMovableViewContext",v),Vue.provide("removeMovableViewContext",_),()=>{const m=t.default&&t.default();return d=qt(m),Vue.createVNode("uni-movable-area",Vue.mergeProps({ref:n},s.value,c.value,l),[Vue.createVNode(je,{onResize:r._resize},null,8,["onResize"]),d],16)}}});function Cu(e){return Math.sqrt(e.x*e.x+e.y*e.y)}function gS(e,t){const n=Vue.ref(0),o=Vue.ref(0),i=Vue.reactive({x:null,y:null}),r=Vue.ref(null);let a=null,s=[];function c(_){_&&_!==1&&(e.scaleArea?s.forEach(function(m){m._setScale(_)}):a&&a._setScale(_))}function l(_,m=s){let w=t.value;function C(f){for(let p=0;p<m.length;p++){const S=m[p];if(f===S.rootRef.value)return S}return f===w||f===document.body||f===document?null:C(f.parentNode)}return C(_)}const u=oe(_=>{let m=_.touches;if(m&&m.length>1){let w={x:m[1].pageX-m[0].pageX,y:m[1].pageY-m[0].pageY};if(r.value=Cu(w),i.x=w.x,i.y=w.y,!e.scaleArea){let C=l(m[0].target),f=l(m[1].target);a=C&&C===f?C:null}}}),d=oe(_=>{let m=_.touches;if(m&&m.length>1){_.preventDefault();let w={x:m[1].pageX-m[0].pageX,y:m[1].pageY-m[0].pageY};if(i.x!==null&&r.value&&r.value>0){let C=Cu(w)/r.value;c(C)}i.x=w.x,i.y=w.y}}),h=oe(_=>{let m=_.touches;m&&m.length||_.changedTouches&&(i.x=0,i.y=0,r.value=null,e.scaleArea?s.forEach(function(w){w._endScale()}):a&&a._endScale())});function g(){v(),s.forEach(function(_,m){_.setParent()})}function v(){let _=window.getComputedStyle(t.value),m=t.value.getBoundingClientRect();n.value=m.width-["Left","Right"].reduce(function(w,C){const f="border"+C+"Width",p="padding"+C;return w+parseFloat(_[f])+parseFloat(_[p])},0),o.value=m.height-["Top","Bottom"].reduce(function(w,C){const f="border"+C+"Width",p="padding"+C;return w+parseFloat(_[f])+parseFloat(_[p])},0)}return Vue.provide("movableAreaWidth",n),Vue.provide("movableAreaHeight",o),{setContexts(_){s=_},events:{_onTouchstart:u,_onTouchmove:d,_onTouchend:h,_resize:g}}}const Nn=function(e,t,n,o){e.addEventListener(t,i=>{G(n)&&n(i)===!1&&((typeof i.cancelable=="undefined"||i.cancelable)&&i.preventDefault(),i.stopPropagation())},{passive:!1})};let Vu,Au;function xn(e,t,n){Vue.onBeforeUnmount(()=>{document.removeEventListener("mousemove",Vu),document.removeEventListener("mouseup",Au)});let o=0,i=0,r=0,a=0;const s=function(g,v,_,m){if(t({cancelable:g.cancelable,target:g.target,currentTarget:g.currentTarget,preventDefault:g.preventDefault.bind(g),stopPropagation:g.stopPropagation.bind(g),touches:g.touches,changedTouches:g.changedTouches,detail:{state:v,x:_,y:m,dx:_-o,dy:m-i,ddx:_-r,ddy:m-a,timeStamp:g.timeStamp}})===!1)return!1};let c=null,l,u;Nn(e,"touchstart",function(g){if(l=!0,g.touches.length===1&&!c)return c=g,o=r=g.touches[0].pageX,i=a=g.touches[0].pageY,s(g,"start",o,i)}),Nn(e,"mousedown",function(g){if(u=!0,!l&&!c)return c=g,o=r=g.pageX,i=a=g.pageY,s(g,"start",o,i)}),Nn(e,"touchmove",function(g){if(g.touches.length===1&&c){const v=s(g,"move",g.touches[0].pageX,g.touches[0].pageY);return r=g.touches[0].pageX,a=g.touches[0].pageY,v}});const d=Vu=function(g){if(!l&&u&&c){const v=s(g,"move",g.pageX,g.pageY);return r=g.pageX,a=g.pageY,v}};document.addEventListener("mousemove",d),Nn(e,"touchend",function(g){if(g.touches.length===0&&c)return l=!1,c=null,s(g,"end",g.changedTouches[0].pageX,g.changedTouches[0].pageY)});const h=Au=function(g){if(u=!1,!l&&c)return c=null,s(g,"end",g.pageX,g.pageY)};document.addEventListener("mouseup",h),Nn(e,"touchcancel",function(g){if(c){l=!1;const v=c;return c=null,s(g,n?"cancel":"end",v.touches[0].pageX,v.touches[0].pageY)}})}function Yo(e,t,n){return e>t-n&&e<t+n}function yt(e,t){return Yo(e,0,t)}function Or(){}Or.prototype.x=function(e){return Math.sqrt(e)};function He(e,t){this._m=e,this._f=1e3*t,this._startTime=0,this._v=0}He.prototype.setV=function(e,t){const n=Math.pow(Math.pow(e,2)+Math.pow(t,2),.5);this._x_v=e,this._y_v=t,this._x_a=-this._f*this._x_v/n,this._y_a=-this._f*this._y_v/n,this._t=Math.abs(e/this._x_a)||Math.abs(t/this._y_a),this._lastDt=null,this._startTime=new Date().getTime()},He.prototype.setS=function(e,t){this._x_s=e,this._y_s=t},He.prototype.s=function(e){e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),e>this._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&&t<this._endPositionX||this._x_a<0&&t>this._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&n<this._endPositionY||this._y_a<0&&n>this._endPositionY)&&(n=this._endPositionY),{x:t,y:n}},He.prototype.ds=function(e){return e===void 0&&(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}},He.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}},He.prototype.dt=function(){return-this._x_v/this._x_a},He.prototype.done=function(){const e=Yo(this.s().x,this._endPositionX)||Yo(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},He.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},He.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t};function Ie(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}Ie.prototype._solve=function(e,t){const n=this._c,o=this._m,i=this._k,r=n*n-4*o*i;if(r===0){const u=-n/(2*o),d=e,h=t/(u*e);return{x:function(g){return(d+h*g)*Math.pow(Math.E,u*g)},dx:function(g){const v=Math.pow(Math.E,u*g);return u*(d+h*g)*v+h*v}}}if(r>0){const u=(-n-Math.sqrt(r))/(2*o),d=(-n+Math.sqrt(r))/(2*o),h=(t-u*e)/(d-u),g=e-h;return{x:function(v){let _,m;return v===this._t&&(_=this._powER1T,m=this._powER2T),this._t=v,_||(_=this._powER1T=Math.pow(Math.E,u*v)),m||(m=this._powER2T=Math.pow(Math.E,d*v)),g*_+h*m},dx:function(v){let _,m;return v===this._t&&(_=this._powER1T,m=this._powER2T),this._t=v,_||(_=this._powER1T=Math.pow(Math.E,u*v)),m||(m=this._powER2T=Math.pow(Math.E,d*v)),g*u*_+h*d*m}}}const a=Math.sqrt(4*o*i-n*n)/(2*o),s=-n/2*o,c=e,l=(t-s*e)/a;return{x:function(u){return Math.pow(Math.E,s*u)*(c*Math.cos(a*u)+l*Math.sin(a*u))},dx:function(u){const d=Math.pow(Math.E,s*u),h=Math.cos(a*u),g=Math.sin(a*u);return d*(l*a*h-c*a*g)+s*d*(l*g+c*h)}}},Ie.prototype.x=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},Ie.prototype.dx=function(e){return e===void 0&&(e=(new Date().getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},Ie.prototype.setEnd=function(e,t,n){if(n||(n=new Date().getTime()),e!==this._endPosition||!yt(t,.1)){t=t||0;let o=this._endPosition;this._solution&&(yt(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),yt(t,.1)&&(t=0),yt(o,.1)&&(o=0),o+=this._endPosition),this._solution&&yt(o-e,.1)&&yt(t,.1)||(this._endPosition=e,this._solution=this._solve(o-this._endPosition,t),this._startTime=n)}},Ie.prototype.snap=function(e){this._startTime=new Date().getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},Ie.prototype.done=function(e){return e||(e=new Date().getTime()),Yo(this.x(),this._endPosition,.1)&&yt(this.dx(),.1)},Ie.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())},Ie.prototype.springConstant=function(){return this._k},Ie.prototype.damping=function(){return this._c},Ie.prototype.configuration=function(){function e(n,o){n.reconfigure(1,o,n.damping())}function t(n,o){n.reconfigure(1,n.springConstant(),o)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:e.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:t.bind(this,this),min:1,max:500}]};function Mn(e,t,n){this._springX=new Ie(e,t,n),this._springY=new Ie(e,t,n),this._springScale=new Ie(e,t,n),this._startTime=0}Mn.prototype.setEnd=function(e,t,n,o){const i=new Date().getTime();this._springX.setEnd(e,o,i),this._springY.setEnd(t,o,i),this._springScale.setEnd(n,o,i),this._startTime=i},Mn.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)}},Mn.prototype.done=function(){const e=new Date().getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},Mn.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)};const pS={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:.1},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}};function Eu(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}const ku=X({name:"MovableView",props:pS,emits:["change","scale"],setup(e,{slots:t,emit:n}){const o=Vue.ref(null),i=pe(o,n),{setParent:r}=yS(e,i,o);return()=>Vue.createVNode("uni-movable-view",{ref:o},[Vue.createVNode(je,{onResize:r},null,8,["onResize"]),t.default&&t.default()],512)}});let Rr=!1;function Iu(e){Rr||(Rr=!0,requestAnimationFrame(function(){e(),Rr=!1}))}function Nu(e,t){if(e===t)return 0;let n=e.offsetLeft;return e.offsetParent?n+=Nu(e.offsetParent,t):0}function xu(e,t){if(e===t)return 0;let n=e.offsetTop;return e.offsetParent?n+=xu(e.offsetParent,t):0}function Mu(e,t,n){let o={id:0,cancelled:!1},i=function(a){a&&a.id&&cancelAnimationFrame(a.id),a&&(a.cancelled=!0)};function r(a,s,c,l){if(!a||!a.cancelled){c(s);let u=s.done();u||a.cancelled||(a.id=requestAnimationFrame(r.bind(null,a,s,c,l))),u&&l&&l(s)}}return r(o,e,t,n),{cancel:i.bind(null,o),model:e}}function Xo(e){return/\d+[ur]px$/i.test(e)?uni.upx2px(parseFloat(e)):Number(e)||0}function mS(e,t,n){const o=Vue.inject("movableAreaWidth",Vue.ref(0)),i=Vue.inject("movableAreaHeight",Vue.ref(0)),r=Vue.inject("movableAreaRootRef"),a={x:0,y:0},s={x:0,y:0},c=Vue.ref(0),l=Vue.ref(0),u=Vue.ref(0),d=Vue.ref(0),h=Vue.ref(0),g=Vue.ref(0);function v(){let w=0-a.x+s.x,C=o.value-c.value-a.x-s.x;u.value=Math.min(w,C),h.value=Math.max(w,C);let f=0-a.y+s.y,p=i.value-l.value-a.y-s.y;d.value=Math.min(f,p),g.value=Math.max(f,p)}function _(){a.x=Nu(e.value,r.value),a.y=xu(e.value,r.value)}function m(w){w=w||t.value,w=n(w);let C=e.value.getBoundingClientRect();l.value=C.height/t.value,c.value=C.width/t.value;let f=l.value*w,p=c.value*w;s.x=(p-c.value)/2,s.y=(f-l.value)/2}return{_updateBoundary:v,_updateOffset:_,_updateWH:m,_scaleOffset:s,minX:u,minY:d,maxX:h,maxY:g}}function vS(e,t,n,o,i,r,a,s,c,l,u,d,h,g){const v=Vue.computed(()=>{let V=Number(t.damping);return isNaN(V)?20:V}),_=Vue.computed(()=>t.direction==="all"||t.direction==="horizontal"),m=Vue.computed(()=>t.direction==="all"||t.direction==="vertical"),w=Vue.ref(Xo(t.x)),C=Vue.ref(Xo(t.y));Vue.watch(()=>t.x,V=>{w.value=Xo(V)}),Vue.watch(()=>t.y,V=>{C.value=Xo(V)}),Vue.watch(w,V=>{N(V)}),Vue.watch(C,V=>{E(V)});const f=new Mn(1,9*Math.pow(v.value,2)/40,v.value);function p(V,I){let M=!1;return V>i.value?(V=i.value,M=!0):V<a.value&&(V=a.value,M=!0),I>r.value?(I=r.value,M=!0):I<s.value&&(I=s.value,M=!0),{x:V,y:I,outOfBounds:M}}function S(){d&&d.cancel(),u&&u.cancel()}function T(V,I,M,F,k,B){S(),_.value||(V=c.value),m.value||(I=l.value),t.scale||(M=o.value);let z=p(V,I);if(V=z.x,I=z.y,!t.animation){b(V,I,M,F,k,B);return}f._springX._solution=null,f._springY._solution=null,f._springScale._solution=null,f._springX._endPosition=c.value,f._springY._endPosition=l.value,f._springScale._endPosition=o.value,f.setEnd(V,I,M,1),u=Mu(f,function(){let x=f.x(),P=x.x,O=x.y,D=x.scale;b(P,O,D,F,k,B)},function(){u.cancel()})}function b(V,I,M,F="",k,B){V!==null&&V.toString()!=="NaN"&&typeof V=="number"||(V=c.value||0),I!==null&&I.toString()!=="NaN"&&typeof I=="number"||(I=l.value||0),V=Number(V.toFixed(1)),I=Number(I.toFixed(1)),M=Number(M.toFixed(1)),c.value===V&&l.value===I||k||g("change",{},{x:Eu(V,n.x),y:Eu(I,n.y),source:F}),t.scale||(M=o.value),M=h(M),M=+M.toFixed(3),B&&M!==o.value&&g("scale",{},{x:V,y:I,scale:M});let z="translateX("+V+"px) translateY("+I+"px) translateZ(0px) scale("+M+")";e.value&&(e.value.style.transform=z,e.value.style.webkitTransform=z,c.value=V,l.value=I,o.value=M)}function A(V){let I=p(c.value,l.value),M=I.x,F=I.y,k=I.outOfBounds;return k&&T(M,F,o.value,V),k}function N(V){if(_.value){if(V+n.x===c.value)return c;u&&u.cancel(),T(V+n.x,C.value+n.y,o.value)}return V}function E(V){if(m.value){if(V+n.y===l.value)return l;u&&u.cancel(),T(w.value+n.x,V+n.y,o.value)}return V}return{FAandSFACancel:S,_getLimitXY:p,_animationTo:T,_setTransform:b,_revise:A,dampingNumber:v,xMove:_,yMove:m,xSync:w,ySync:C,_STD:f}}function _S(e,t,n,o,i,r,a,s,c,l){const u=Vue.computed(()=>{let $=Number(e.scaleMin);return isNaN($)?.1:$}),d=Vue.computed(()=>{let $=Number(e.scaleMax);return isNaN($)?10:$}),h=Vue.ref(Number(e.scaleValue)||1);Vue.watch(h,$=>{D($)}),Vue.watch(u,()=>{O()}),Vue.watch(d,()=>{O()}),Vue.watch(()=>e.scaleValue,$=>{h.value=Number($)||0});const{_updateBoundary:g,_updateOffset:v,_updateWH:_,_scaleOffset:m,minX:w,minY:C,maxX:f,maxY:p}=mS(t,o,P),{FAandSFACancel:S,_getLimitXY:T,_animationTo:b,_setTransform:A,_revise:N,dampingNumber:E,xMove:V,yMove:I,xSync:M,ySync:F,_STD:k}=vS(t,e,m,o,f,p,w,C,a,s,c,l,P,n);function B($,ee){if(e.scale){$=P($),_($),g();const de=T(a.value,s.value),Me=de.x,De=de.y;ee?b(Me,De,$,"",!0,!0):Iu(function(){A(Me,De,$,"",!0,!0)})}}function z(){r.value=!0}function x($){i.value=$}function P($){return $=Math.max(.1,u.value,$),$=Math.min(10,d.value,$),$}function O(){if(!e.scale)return!1;B(o.value,!0),x(o.value)}function D($){return e.scale?($=P($),B($,!0),x($),$):!1}function W(){r.value=!1,x(o.value)}function q($){$&&($=i.value*$,z(),B($))}return{_updateOldScale:x,_endScale:W,_setScale:q,scaleValueSync:h,_updateBoundary:g,_updateOffset:v,_updateWH:_,_scaleOffset:m,minX:w,minY:C,maxX:f,maxY:p,FAandSFACancel:S,_getLimitXY:T,_animationTo:b,_setTransform:A,_revise:N,dampingNumber:E,xMove:V,yMove:I,xSync:M,ySync:F,_STD:k}}function yS(e,t,n){const o=Vue.inject("_isMounted",Vue.ref(!1)),i=Vue.inject("addMovableViewContext",()=>{}),r=Vue.inject("removeMovableViewContext",()=>{});let a=Vue.ref(1),s=Vue.ref(1),c=Vue.ref(!1),l=Vue.ref(0),u=Vue.ref(0),d=null,h=null,g=!1,v,_,m=null,w=null;const C=new Or,f=new Or,p={historyX:[0,0],historyY:[0,0],historyT:[0,0]},S=Vue.computed(()=>{let te=Number(e.friction);return isNaN(te)||te<=0?2:te}),T=new He(1,S.value);Vue.watch(()=>e.disabled,()=>{ut()});const{_updateOldScale:b,_endScale:A,_setScale:N,scaleValueSync:E,_updateBoundary:V,_updateOffset:I,_updateWH:M,_scaleOffset:F,minX:k,minY:B,maxX:z,maxY:x,FAandSFACancel:P,_getLimitXY:O,_setTransform:D,_revise:W,dampingNumber:q,xMove:$,yMove:ee,xSync:de,ySync:Me,_STD:De}=_S(e,n,t,a,s,c,l,u,d,h);function ut(){c.value||e.disabled||(P(),p.historyX=[0,0],p.historyY=[0,0],p.historyT=[0,0],$.value&&(v=l.value),ee.value&&(_=u.value),n.value.style.willChange="transform",m=null,w=null,g=!0)}function Tt(te){if(!c.value&&!e.disabled&&g){let fe=l.value,se=u.value;if(w===null&&(w=Math.abs(te.detail.dx/te.detail.dy)>1?"htouchmove":"vtouchmove"),$.value&&(fe=te.detail.dx+v,p.historyX.shift(),p.historyX.push(fe),!ee.value&&m===null&&(m=Math.abs(te.detail.dx/te.detail.dy)<1)),ee.value&&(se=te.detail.dy+_,p.historyY.shift(),p.historyY.push(se),!$.value&&m===null&&(m=Math.abs(te.detail.dy/te.detail.dx)<1)),p.historyT.shift(),p.historyT.push(te.detail.timeStamp),!m){te.preventDefault();let Ce="touch";fe<k.value?e.outOfBounds?(Ce="touch-out-of-bounds",fe=k.value-C.x(k.value-fe)):fe=k.value:fe>z.value&&(e.outOfBounds?(Ce="touch-out-of-bounds",fe=z.value+C.x(fe-z.value)):fe=z.value),se<B.value?e.outOfBounds?(Ce="touch-out-of-bounds",se=B.value-f.x(B.value-se)):se=B.value:se>x.value&&(e.outOfBounds?(Ce="touch-out-of-bounds",se=x.value+f.x(se-x.value)):se=x.value),Iu(function(){D(fe,se,a.value,Ce)})}}}function _e(){if(!c.value&&!e.disabled&&g&&(n.value.style.willChange="auto",g=!1,!m&&!W("out-of-bounds")&&e.inertia)){const te=1e3*(p.historyX[1]-p.historyX[0])/(p.historyT[1]-p.historyT[0]),fe=1e3*(p.historyY[1]-p.historyY[0])/(p.historyT[1]-p.historyT[0]),se=l.value,Ce=u.value;T.setV(te,fe),T.setS(se,Ce);const Gn=T.delta().x,jn=T.delta().y;let Ct=Gn+se,Vt=jn+Ce;Ct<k.value?(Ct=k.value,Vt=Ce+(k.value-se)*jn/Gn):Ct>z.value&&(Ct=z.value,Vt=Ce+(z.value-se)*jn/Gn),Vt<B.value?(Vt=B.value,Ct=se+(B.value-Ce)*Gn/jn):Vt>x.value&&(Vt=x.value,Ct=se+(x.value-Ce)*Gn/jn),T.setEnd(Ct,Vt),h=Mu(T,function(){let fg=T.s(),ZV=fg.x,eA=fg.y;D(ZV,eA,a.value,"friction")},function(){h.cancel()})}!e.outOfBounds&&!e.inertia&&P()}function Sa(){if(!o.value)return;P();let te=e.scale?E.value:1;I(),M(te),V();let fe=O(de.value+F.x,Me.value+F.y),se=fe.x,Ce=fe.y;D(se,Ce,te,"",!0),b(te)}return Vue.onMounted(()=>{xn(n.value,fe=>{switch(fe.detail.state){case"start":ut();break;case"move":Tt(fe);break;case"end":_e()}}),Sa(),T.reconfigure(1,S.value),De.reconfigure(1,9*Math.pow(q.value,2)/40,q.value),n.value.style.transformOrigin="center";const te={rootRef:n,setParent:Sa,_endScale:A,_setScale:N};i(te),Vue.onUnmounted(()=>{r(te)})}),Vue.onUnmounted(()=>{P()}),{setParent:Sa}}const bS=["navigate","redirect","switchTab","reLaunch","navigateBack"],wS=["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"],SS=["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"],TS={hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator(e){return!!~bS.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){return!e||wS.concat(SS).includes(e)}},animationDuration:{type:[String,Number],default:300}};function CS(e){return()=>{if(e.openType!=="navigateBack"&&!e.url){console.error("<navigator/> should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab");return}const t=parseInt(e.animationDuration);switch(e.openType){case"navigate":uni.navigateTo({url:e.url,animationType:e.animationType||"pop-in",animationDuration:t});break;case"redirect":uni.redirectTo({url:e.url,exists:e.exists});break;case"switchTab":uni.switchTab({url:e.url});break;case"reLaunch":uni.reLaunch({url:e.url});break;case"navigateBack":uni.navigateBack({delta:e.delta,animationType:e.animationType||"pop-out",animationDuration:t});break}}}const VS=X({name:"Navigator",inheritAttrs:!1,compatConfig:{MODE:3},props:L({},TS,{renderLink:{type:Boolean,default:!0}}),setup(e,{slots:t}){const n=Vue.ref(null),o=Vue.getCurrentInstance(),i=o&&o.vnode.scopeId||"",{hovering:r,binding:a}=Fi(e),s=CS(e);return()=>{const{hoverClass:c,url:l}=e,u=e.hoverClass&&e.hoverClass!=="none",d=e.renderLink?Vue.createVNode("a",{class:"navigator-wrap",href:l,onClick:Je,onMousedown:Je},[t.default&&t.default()],40,["href","onClick","onMousedown"]):t.default&&t.default();return Vue.createVNode("uni-navigator",Vue.mergeProps({class:u&&r.value?c:"",ref:n},u&&a,o?o.attrs:{},{[i]:""},{onClick:s}),[d],16,["onClick"])}}}),AS={value:{type:Array,default(){return[]},validator:function(e){return K(e)&&e.filter(t=>typeof t=="number").length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}};function ES(e){const t=Vue.reactive([...e.value]),n=Vue.reactive({value:t,height:34});return Vue.watch(()=>e.value,(o,i)=>{n.value.length=o.length,o.forEach((r,a)=>{r!==n.value[a]&&n.value.splice(a,1,r)})}),n}const Pu=X({name:"PickerView",props:AS,emits:["change","pickstart","pickend","update:value"],setup(e,{slots:t,emit:n}){const o=Vue.ref(null),i=Vue.ref(null),r=pe(o,n),a=ES(e),s=Vue.ref(null),c=()=>{const g=s.value;g&&(a.height=g.$el.offsetHeight)};Vue.onMounted(c);let l=Vue.ref([]),u=Vue.ref([]);function d(g){let v=u.value;v=v.filter(m=>m.type!==Vue.Comment);let _=v.indexOf(g);return _!==-1?_:l.value.indexOf(g)}const h=function(g){return Vue.computed({get(){const _=d(g.vnode);return a.value[_]||0},set(_){const m=d(g.vnode);if(m<0)return;if(a.value[m]!==_){a.value[m]=_;const C=a.value.map(f=>f);n("update:value",C),r("change",{},{value:C})}}})};return Vue.provide("getPickerViewColumn",h),Vue.provide("pickerViewProps",e),Vue.provide("pickerViewState",a),()=>{const g=t.default&&t.default();{const v=qt(g);l.value=v,Vue.nextTick(()=>{u.value=v})}return Vue.createVNode("uni-picker-view",{ref:o},[Vue.createVNode(je,{ref:s,onResize:({height:v})=>a.height=v},null,8,["onResize"]),Vue.createVNode("div",{ref:i,class:"uni-picker-view-wrapper"},[g],512)],512)}}});class Lr{constructor(t){this._drag=t,this._dragLog=Math.log(t),this._x=0,this._v=0,this._startTime=0}set(t,n){this._x=t,this._v=n,this._startTime=new Date().getTime()}setVelocityByEnd(t){this._v=(t-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)}x(t){t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3);const n=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t);return this._dt=t,this._x+this._v*n/this._dragLog-this._v/this._dragLog}dx(t){t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3);const n=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t);return this._dt=t,this._v*n}done(){return Math.abs(this.dx())<3}reconfigure(t){const n=this.x(),o=this.dx();this._drag=t,this._dragLog=Math.log(t),this.set(n,o)}configuration(){const t=this;return[{label:"Friction",read:function(){return t._drag},write:function(n){t.reconfigure(n)},min:.001,max:.1,step:.001}]}}function Ou(e,t,n){return e>t-n&&e<t+n}function bt(e,t){return Ou(e,0,t)}class Br{constructor(t,n,o){this._m=t,this._k=n,this._c=o,this._solution=null,this._endPosition=0,this._startTime=0}_solve(t,n){const o=this._c,i=this._m,r=this._k,a=o*o-4*i*r;if(a===0){const d=-o/(2*i),h=t,g=n/(d*t);return{x:function(v){return(h+g*v)*Math.pow(Math.E,d*v)},dx:function(v){const _=Math.pow(Math.E,d*v);return d*(h+g*v)*_+g*_}}}if(a>0){const d=(-o-Math.sqrt(a))/(2*i),h=(-o+Math.sqrt(a))/(2*i),g=(n-d*t)/(h-d),v=t-g;return{x:function(_){let m,w;return _===this._t&&(m=this._powER1T,w=this._powER2T),this._t=_,m||(m=this._powER1T=Math.pow(Math.E,d*_)),w||(w=this._powER2T=Math.pow(Math.E,h*_)),v*m+g*w},dx:function(_){let m,w;return _===this._t&&(m=this._powER1T,w=this._powER2T),this._t=_,m||(m=this._powER1T=Math.pow(Math.E,d*_)),w||(w=this._powER2T=Math.pow(Math.E,h*_)),v*d*m+g*h*w}}}const s=Math.sqrt(4*i*r-o*o)/(2*i),c=-o/2*i,l=t,u=(n-c*t)/s;return{x:function(d){return Math.pow(Math.E,c*d)*(l*Math.cos(s*d)+u*Math.sin(s*d))},dx:function(d){const h=Math.pow(Math.E,c*d),g=Math.cos(s*d),v=Math.sin(s*d);return h*(u*s*g-l*s*v)+c*h*(u*v+l*g)}}}x(t){return t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(t):0}dx(t){return t===void 0&&(t=(new Date().getTime()-this._startTime)/1e3),this._solution?this._solution.dx(t):0}setEnd(t,n,o){if(o||(o=new Date().getTime()),t!==this._endPosition||!bt(n,.4)){n=n||0;let i=this._endPosition;this._solution&&(bt(n,.4)&&(n=this._solution.dx((o-this._startTime)/1e3)),i=this._solution.x((o-this._startTime)/1e3),bt(n,.4)&&(n=0),bt(i,.4)&&(i=0),i+=this._endPosition),this._solution&&bt(i-t,.4)&&bt(n,.4)||(this._endPosition=t,this._solution=this._solve(i-this._endPosition,n),this._startTime=o)}}snap(t){this._startTime=new Date().getTime(),this._endPosition=t,this._solution={x:function(){return 0},dx:function(){return 0}}}done(t){return t||(t=new Date().getTime()),Ou(this.x(),this._endPosition,.4)&&bt(this.dx(),.4)}reconfigure(t,n,o){this._m=t,this._k=n,this._c=o,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=new Date().getTime())}springConstant(){return this._k}damping(){return this._c}configuration(){function t(o,i){o.reconfigure(1,i,o.damping())}function n(o,i){o.reconfigure(1,o.springConstant(),i)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:t.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:n.bind(this,this),min:1,max:500}]}}class kS{constructor(t,n,o){this._extent=t,this._friction=n||new Lr(.01),this._spring=o||new Br(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}snap(t,n){this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(n)}set(t,n){this._friction.set(t,n),t>0&&n>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(0)):t<-this._extent&&n<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=new Date().getTime()}x(t){if(!this._startTime)return 0;if(t||(t=(new Date().getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;let n=this._friction.x(t),o=this.dx(t);return(n>0&&o>=0||n<-this._extent&&o<=0)&&(this._springing=!0,this._spring.setEnd(0,o),n<-this._extent?this._springOffset=-this._extent:this._springOffset=0,n=this._spring.x()+this._springOffset),n}dx(t){let n;return this._lastTime===t?n=this._lastDx:n=this._springing?this._spring.dx(t):this._friction.dx(t),this._lastTime=t,this._lastDx=n,n}done(){return this._springing?this._spring.done():this._friction.done()}setVelocityByEnd(t){this._friction.setVelocityByEnd(t)}configuration(){const t=this._friction.configuration();return t.push.apply(t,this._spring.configuration()),t}}function IS(e,t,n){const o={id:0,cancelled:!1};function i(a,s,c,l){if(!a||!a.cancelled){c(s);const u=s.done();u||a.cancelled||(a.id=requestAnimationFrame(i.bind(null,a,s,c,l))),u&&l&&l(s)}}function r(a){a&&a.id&&cancelAnimationFrame(a.id),a&&(a.cancelled=!0)}return i(o,e,t,n),{cancel:r.bind(null,o),model:e}}class NS{constructor(t,n){n=n||{},this._element=t,this._options=n,this._enableSnap=n.enableSnap||!1,this._itemSize=n.itemSize||0,this._enableX=n.enableX||!1,this._enableY=n.enableY||!1,this._shouldDispatchScrollEvent=!!n.onScroll,this._enableX?(this._extent=(n.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=n.scrollWidth):(this._extent=(n.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=n.scrollHeight),this._position=0,this._scroll=new kS(this._extent,n.friction,n.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}onTouchStart(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()}onTouchMove(t,n){let o=this._startPosition;this._enableX?o+=t:this._enableY&&(o+=n),o>0?o*=.5:o<-this._extent&&(o=.5*(o+this._extent)-this._extent),this._position=o,this.updatePosition(),this.dispatchScroll()}onTouchEnd(t,n,o){if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(n)<this._itemSize&&Math.abs(o.y)<300||Math.abs(o.y)<150)){this.snap();return}if(this._enableX&&(Math.abs(t)<this._itemSize&&Math.abs(o.x)<300||Math.abs(o.x)<150)){this.snap();return}}this._enableX?this._scroll.set(this._position,o.x):this._enableY&&this._scroll.set(this._position,o.y);let i;if(this._enableSnap){const r=this._scroll._friction.x(100),a=r%this._itemSize;i=Math.abs(a)>this._itemSize/2?r-(this._itemSize-Math.abs(a)):r-a,i<=0&&i>=-this._extent&&this._scroll.setVelocityByEnd(i)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=IS(this._scroll,()=>{const r=Date.now(),a=(r-this._scroll._startTime)/1e3,s=this._scroll.x(a);this._position=s,this.updatePosition();const c=this._scroll.dx(a);this._shouldDispatchScrollEvent&&r-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/c),this._lastTime=r)},()=>{this._enableSnap&&(i<=0&&i>=-this._extent&&(this._position=i,this.updatePosition()),G(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._shouldDispatchScrollEvent&&this.dispatchScroll(),this._scrolling=!1})}onTransitionEnd(){this._element.style.webkitTransition="",this._element.style.transition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()}snap(){const t=this._itemSize,n=this._position%t,o=Math.abs(n)>this._itemSize/2?this._position-(t-Math.abs(n)):this._position-n;this._position!==o&&(this._snapping=!0,this.scrollTo(-o),G(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))}scrollTo(t,n){this._animation&&(this._animation.cancel(),this._scrolling=!1),typeof t=="number"&&(this._position=-t),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0);const o="transform "+(n||.2)+"s ease-out";this._element.style.webkitTransition="-webkit-"+o,this._element.style.transition=o,this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd)}dispatchScroll(){if(G(this._options.onScroll)&&Math.round(Number(this._lastPos))!==Math.round(this._position)){this._lastPos=this._position;const t={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(t)}}update(t,n,o){let i=0;const r=this._position;this._enableX?(i=this._element.childNodes.length?(n||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=n):(i=this._element.childNodes.length?(n||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=n),typeof t=="number"&&(this._position=-t),this._position<-i?this._position=-i:this._position>0&&(this._position=0),this._itemSize=o||this._itemSize,this.updatePosition(),r!==this._position&&(this.dispatchScroll(),G(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=i,this._scroll._extent=i}updatePosition(){let t="";this._enableX?t="translateX("+this._position+"px) translateZ(0)":this._enableY&&(t="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=t,this._element.style.transform=t}isScrolling(){return this._scrolling||this._snapping}}function Ru(e,t){const n={trackingID:-1,maxDy:0,maxDx:0},o=new NS(e,t);function i(c){const l=c,u=c;return l.detail.state==="move"||l.detail.state==="end"?{x:l.detail.dx,y:l.detail.dy}:{x:u.screenX-n.x,y:u.screenY-n.y}}function r(c){const l=c,u=c;l.detail.state==="start"?(n.trackingID="touch",n.x=l.detail.x,n.y=l.detail.y):(n.trackingID="mouse",n.x=u.screenX,n.y=u.screenY),n.maxDx=0,n.maxDy=0,n.historyX=[0],n.historyY=[0],n.historyTime=[l.detail.timeStamp||u.timeStamp],n.listener=o,o.onTouchStart&&o.onTouchStart(),(typeof c.cancelable!="boolean"||c.cancelable)&&c.preventDefault()}function a(c){const l=c,u=c;if(n.trackingID!==-1){(typeof c.cancelable!="boolean"||c.cancelable)&&c.preventDefault();const d=i(c);if(d){for(n.maxDy=Math.max(n.maxDy,Math.abs(d.y)),n.maxDx=Math.max(n.maxDx,Math.abs(d.x)),n.historyX.push(d.x),n.historyY.push(d.y),n.historyTime.push(l.detail.timeStamp||u.timeStamp);n.historyTime.length>10;)n.historyTime.shift(),n.historyX.shift(),n.historyY.shift();n.listener&&n.listener.onTouchMove&&n.listener.onTouchMove(d.x,d.y)}}}function s(c){if(n.trackingID!==-1){c.preventDefault();const l=i(c);if(l){const u=n.listener;n.trackingID=-1,n.listener=null;const d=n.historyTime.length,h={x:0,y:0};if(d>2)for(let g=n.historyTime.length-1,v=n.historyTime[g],_=n.historyX[g],m=n.historyY[g];g>0;){g--;const w=n.historyTime[g],C=v-w;if(C>30&&C<50){h.x=(_-n.historyX[g])/(C/1e3),h.y=(m-n.historyY[g])/(C/1e3);break}}n.historyTime=[],n.historyX=[],n.historyY=[],u&&u.onTouchEnd&&u.onTouchEnd(l.x,l.y,h)}}}return{scroller:o,handleTouchStart:r,handleTouchMove:a,handleTouchEnd:s}}function xS(e){let n=0,o=0;e.addEventListener("touchstart",i=>{const r=i.changedTouches[0];n=r.clientX,o=r.clientY}),e.addEventListener("touchend",i=>{const r=i.changedTouches[0];if(Math.abs(r.clientX-n)<20&&Math.abs(r.clientY-o)<20){const a={bubbles:!0,cancelable:!0,target:i.target,currentTarget:i.currentTarget},s=new CustomEvent("click",a);["screenX","screenY","clientX","clientY","pageX","pageY"].forEach(l=>{s[l]=r[l]}),i.target.dispatchEvent(s)}})}const Lu=X({name:"PickerViewColumn",setup(e,{slots:t,emit:n}){const o=Vue.ref(null),i=Vue.ref(null),r=Vue.inject("getPickerViewColumn"),a=Vue.getCurrentInstance(),s=r?r(a):Vue.ref(0),c=Vue.inject("pickerViewProps"),l=Vue.inject("pickerViewState"),u=Vue.ref(34),d=Vue.ref(null),h=()=>{const b=d.value;u.value=b.$el.offsetHeight};Vue.onMounted(h);const g=Vue.computed(()=>(l.height-u.value)/2),{state:v}=mu();let _;const m=Vue.reactive({current:s.value,length:0});let w;function C(){_&&!w&&(w=!0,Vue.nextTick(()=>{w=!1;let b=Math.min(m.current,m.length-1);b=Math.max(b,0),_.update(b*u.value,void 0,u.value)}))}Vue.watch(()=>s.value,b=>{b!==m.current&&(m.current=b,C())}),Vue.watch(()=>m.current,b=>s.value=b),Vue.watch([()=>u.value,()=>m.length,()=>l.height],C);let f=0;function p(b){const A=f+b.deltaY;if(Math.abs(A)>10){f=0;let N=Math.min(m.current+(A<0?-1:1),m.length-1);m.current=N=Math.max(N,0),_.scrollTo(N*u.value)}else f=A;b.preventDefault()}function S({clientY:b}){const A=o.value;if(!_.isScrolling()){const N=A.getBoundingClientRect(),E=b-N.top-l.height/2,V=u.value/2;if(!(Math.abs(E)<=V)){const I=Math.ceil((Math.abs(E)-V)/u.value),M=E<0?-I:I;let F=Math.min(m.current+M,m.length-1);m.current=F=Math.max(F,0),_.scrollTo(F*u.value)}}}const T=()=>{const b=o.value,A=i.value,{scroller:N,handleTouchStart:E,handleTouchMove:V,handleTouchEnd:I}=Ru(A,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:u.value,friction:new Lr(1e-4),spring:new Br(2,90,20),onSnap:M=>{!isNaN(M)&&M!==m.current&&(m.current=M)}});_=N,xn(b,M=>{switch(M.detail.state){case"start":E(M);break;case"move":V(M),M.stopPropagation();break;case"end":case"cancel":I(M)}},!0),xS(b),C()};return Vue.onMounted(T),()=>{const b=t.default&&t.default();m.length=qt(b).length;const A=`${g.value}px 0`;return Vue.createVNode("uni-picker-view-column",{ref:o},[Vue.createVNode("div",{onWheel:p,onClick:S,class:"uni-picker-view-group"},[Vue.createVNode("div",Vue.mergeProps(v.attrs,{class:["uni-picker-view-mask",c.maskClass],style:`background-size: 100% ${g.value}px;${c.maskStyle}`}),null,16),Vue.createVNode("div",Vue.mergeProps(v.attrs,{class:["uni-picker-view-indicator",c.indicatorClass],style:c.indicatorStyle}),[Vue.createVNode(je,{ref:d,onResize:({height:N})=>u.value=N},null,8,["onResize"])],16),Vue.createVNode("div",{ref:i,class:["uni-picker-view-content"],style:{padding:A,"--picker-view-column-indicator-height":`${u.value}px`}},[b],4)],40,["onWheel","onClick"])],512)}}}),MS=16,wt={activeColor:on,backgroundColor:"#EBEBEB",activeMode:"backwards"},PS={percent:{type:[Number,String],default:0,validator(e){return!isNaN(parseFloat(e))}},fontSize:{type:[String,Number],default:MS},showInfo:{type:[Boolean,String],default:!1},strokeWidth:{type:[Number,String],default:6,validator(e){return!isNaN(parseFloat(e))}},color:{type:String,default:wt.activeColor},activeColor:{type:String,default:wt.activeColor},backgroundColor:{type:String,default:wt.backgroundColor},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:wt.activeMode},duration:{type:[Number,String],default:30,validator(e){return!isNaN(parseFloat(e))}},borderRadius:{type:[Number,String],default:0}},OS=X({name:"Progress",props:PS,setup(e){const t=Vue.ref(null),n=RS(e);return Bu(n,e),Vue.watch(()=>n.realPercent,(o,i)=>{n.strokeTimer&&clearInterval(n.strokeTimer),n.lastPercent=i||0,Bu(n,e)}),()=>{const{showInfo:o}=e,{outerBarStyle:i,innerBarStyle:r,currentPercent:a}=n;return Vue.createVNode("uni-progress",{class:"uni-progress",ref:t},[Vue.createVNode("div",{style:i,class:"uni-progress-bar"},[Vue.createVNode("div",{style:r,class:"uni-progress-inner-bar"},null,4)],4),o?Vue.createVNode("p",{class:"uni-progress-info"},[a+"%"]):""],512)}}});function RS(e){const t=Vue.ref(0),n=Vue.computed(()=>`background-color: ${e.backgroundColor}; height: ${Ge(e.strokeWidth)}px;`),o=Vue.computed(()=>{const a=e.color!==wt.activeColor&&e.activeColor===wt.activeColor?e.color:e.activeColor;return`width: ${t.value}%;background-color: ${a}`}),i=Vue.computed(()=>{if(typeof e.percent=="string"&&!/^-?\d*\.?\d*$/.test(e.percent))return 0;let a=parseFloat(e.percent);return Number.isNaN(a)||a<0?a=0:a>100&&(a=100),a});return Vue.reactive({outerBarStyle:n,innerBarStyle:o,realPercent:i,currentPercent:t,strokeTimer:0,lastPercent:0})}function Bu(e,t){t.active?(e.currentPercent=t.activeMode===wt.activeMode?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}const Du=fn("ucg"),LS=X({name:"RadioGroup",props:{name:{type:String,default:""}},setup(e,{emit:t,slots:n}){const o=Vue.ref(null),i=pe(o,t);return BS(e,i),()=>Vue.createVNode("uni-radio-group",{ref:o},[n.default&&n.default()],512)}});function BS(e,t){const n=[];Vue.onMounted(()=>{s(n.length-1)});const o=()=>{var c;return(c=n.find(l=>l.value.radioChecked))==null?void 0:c.value.value};Vue.provide(Du,{addField(c){n.push(c)},removeField(c){n.splice(n.indexOf(c),1)},radioChange(c,l){const u=n.indexOf(l);s(u,!0),t("change",c,{value:o()})}});const i=Vue.inject(Fe,!1),r={submit:()=>{let c=["",null];return e.name!==""&&(c[0]=e.name,c[1]=o()),c}};i&&(i.addField(r),Vue.onBeforeUnmount(()=>{i.removeField(r)}));function a(c,l){c.value={radioChecked:l,value:c.value.value}}function s(c,l){n.forEach((u,d)=>{d!==c&&(l?a(n[d],!1):n.forEach((h,g)=>{d>=g||n[g].value.radioChecked&&a(n[d],!1)}))})}return n}const DS=X({name:"Radio",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},value:{type:String,default:""},color:{type:String,default:"#007aff"},backgroundColor:{type:String,default:""},borderColor:{type:String,default:""},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},iconColor:{type:String,default:"#ffffff"}},setup(e,{slots:t}){const n=Vue.ref(null),o=Vue.ref(e.checked),i=Vue.ref(e.value);function r(h){if(e.disabled)return{backgroundColor:"#E1E1E1",borderColor:"#D1D1D1"};const g={};return o.value?(g.backgroundColor=e.activeBackgroundColor||e.color,g.borderColor=e.activeBorderColor||g.backgroundColor):(e.borderColor&&(g.borderColor=e.borderColor),e.backgroundColor&&(g.backgroundColor=e.backgroundColor)),g}const a=Vue.computed(()=>r(o.value));Vue.watch([()=>e.checked,()=>e.value],([h,g])=>{o.value=h,i.value=g});const s=()=>{o.value=!1},{uniCheckGroup:c,uniLabel:l,field:u}=US(o,i,s),d=h=>{e.disabled||o.value||(o.value=!0,c&&c.radioChange(h,u),h.stopPropagation())};return l&&(l.addHandler(d),Vue.onBeforeUnmount(()=>{l.removeHandler(d)})),fo(e,{"label-click":d}),()=>{const h=mt(e,"disabled");let g;return g=o.value,Vue.createVNode("uni-radio",Vue.mergeProps(h,{id:e.id,onClick:d,ref:n}),[Vue.createVNode("div",{class:"uni-radio-wrapper",style:{"--HOVER-BD-COLOR":o.value?a.value.borderColor:e.activeBorderColor}},[Vue.createVNode("div",{class:["uni-radio-input",{"uni-radio-input-disabled":e.disabled}],style:a.value},[g?le(hn,e.disabled?"#ADADAD":e.iconColor,18):""],6),t.default&&t.default()],4)],16,["id","onClick"])}}});function US(e,t,n){const o=Vue.computed({get:()=>({radioChecked:!!e.value,value:t.value}),set:({radioChecked:c})=>{e.value=c}}),i={reset:n},r=Vue.inject(Du,!1);r&&r.addField(o);const a=Vue.inject(Fe,!1);a&&a.addField(i);const s=Vue.inject(_n,!1);return Vue.onBeforeUnmount(()=>{r&&r.removeField(o),a&&a.removeField(i)}),{uniCheckGroup:r,uniForm:a,uniLabel:s,field:o}}const FS={a:"",abbr:"",address:"",article:"",aside:"",b:"",bdi:"",bdo:["dir"],big:"",blockquote:"",br:"",caption:"",center:"",cite:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",font:"",footer:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",header:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",mark:"",nav:"",ol:["start","type"],p:"",pre:"",q:"",rt:"",ruby:"",s:"",section:"",small:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","height","rowspan","width"],tfoot:"",th:["colspan","height","rowspan","width"],thead:"",tr:["colspan","height","rowspan","width"],tt:"",u:"",ul:""},Dr={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'",ldquo:"“",rdquo:"”",yen:"¥",radic:"√",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",hellip:"…"};function $S(e){return e.replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,function(t,n){return ae(Dr,n)&&Dr[n]?Dr[n]:/^#[0-9]{1,4}$/.test(n)?String.fromCharCode(n.slice(1)):/^#x[0-9a-f]{1,4}$/i.test(n)?String.fromCharCode(0+n.slice(1)):t})}function zS(e,t){if(["a","img"].includes(e.name)&&t)return{onClickCapture:n=>{t(n,{node:e}),n.stopPropagation(),n.preventDefault(),n.returnValue=!1}}}function HS(e,t){if(ce(t)){for(const n in t)if(ae(t,n)){const o=t[n];e==="img"&&n==="src"&&(t[n]=Q(o))}}}const Uu=(e,t,n)=>!n||K(n)&&!n.length?[]:n.map(o=>{var i;if(ce(o)){if(!ae(o,"type")||o.type==="node"){let r={[e]:""};const a=(i=o.name)==null?void 0:i.toLowerCase();return ae(FS,a)?(HS(a,o.attrs),r=L(r,zS(o,t),o.attrs),Vue.h(o.name,r,Uu(e,t,o.children))):void 0}if(o.type==="text"&&J(o.text)&&o.text!=="")return Vue.createTextVNode($S(o.text||""))}});function WS(e){return e.replace(/<\?xml.*\?>\n/,"").replace(/<!doctype.*>\n/,"").replace(/<!DOCTYPE.*>\n/,"")}function qS(e){return e.reduce(function(t,n){let o=n.value;const i=n.name;return o.match(/ /)&&["style","src"].indexOf(i)===-1&&(o=o.split(" ")),t[i]?Array.isArray(t[i])?t[i].push(o):t[i]=[t[i],o]:t[i]=o,t},{})}function GS(e){e=WS(e);const t=[],n={children:[]};return cu(e,{start:function(o,i,r){const a={name:o};if(i.length!==0&&(a.attrs=qS(i)),r){const s=t[0]||n;s.children||(s.children=[]),s.children.push(a)}else t.unshift(a)},end:function(o){const i=t.shift();if(i.name!==o&&console.error("invalid state: mismatch end tag"),t.length===0)n.children.push(i);else{const r=t[0];r.children||(r.children=[]),r.children.push(i)}},chars:function(o){const i={type:"text",text:o};if(t.length===0)n.children.push(i);else{const r=t[0];r.children||(r.children=[]),r.children.push(i)}},comment:function(o){const i={node:"comment",text:o},r=t[0];r&&(r.children||(r.children=[]),r.children.push(i))}}),n.children}const jS=X({name:"RichText",compatConfig:{MODE:3},props:{nodes:{type:[Array,String],default:function(){return[]}}},emits:["itemclick"],setup(e,{emit:t}){const n=Vue.getCurrentInstance(),o=n&&n.vnode.scopeId||"",i=Vue.ref(null),r=Vue.ref([]),a=pe(i,t);function s(l,u={}){a("itemclick",l,u)}function c(){let l=e.nodes;J(l)&&(l=GS(e.nodes)),r.value=Uu(o,s,l)}return Vue.watch(()=>e.nodes,c,{immediate:!0,deep:!0}),()=>Vue.h("uni-rich-text",{ref:i},Vue.h("div",{},r.value))}}),YS=X({name:"Refresher",props:{refreshState:{type:String,default:""},refresherHeight:{type:Number,default:0},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"},refresherBackground:{type:String,default:"#fff"}},setup(e,{slots:t}){const n=Vue.ref(null),o=Vue.computed(()=>{const r={backgroundColor:e.refresherBackground};switch(e.refreshState){case"pulling":r.height=e.refresherHeight+"px";break;case"refreshing":r.height=e.refresherThreshold+"px",r.transition="height 0.3s";break;case"":case"refresherabort":case"restore":r.height="0px",r.transition="height 0.3s";break}return r}),i=Vue.computed(()=>{const r=e.refresherHeight/e.refresherThreshold;return(r>1?1:r)*360});return()=>{const{refreshState:r,refresherDefaultStyle:a,refresherThreshold:s}=e;return Vue.createVNode("div",{ref:n,style:o.value,class:"uni-scroll-view-refresher"},[a!=="none"?Vue.createVNode("div",{class:"uni-scroll-view-refresh"},[Vue.createVNode("div",{class:"uni-scroll-view-refresh-inner"},[r=="pulling"?Vue.createVNode("svg",{key:"refresh__icon",style:{transform:"rotate("+i.value+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[Vue.createVNode("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null),Vue.createVNode("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,r=="refreshing"?Vue.createVNode("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[Vue.createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,a==="none"?Vue.createVNode("div",{class:"uni-scroll-view-refresher-container",style:{height:`${s}px`}},[t.default&&t.default()]):null],4)}}}),Fu=It(!0),$u=X({name:"ScrollView",compatConfig:{MODE:3},props:{direction:{type:[String],default:"vertical"},scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},showScrollbar:{type:[Boolean,String],default:!0},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,{emit:t,slots:n,expose:o}){const i=Vue.ref(null),r=Vue.ref(null),a=Vue.ref(null),s=Vue.ref(null),c=pe(i,t),{state:l,scrollTopNumber:u,scrollLeftNumber:d}=XS(e),{realScrollX:h,realScrollY:g}=JS(e,l,u,d,c,i,r,s,t),v=Vue.computed(()=>{let m="";return h.value?m+="overflow-x:auto;":m+="overflow-x:hidden;",g.value?m+="overflow-y:auto;":m+="overflow-y:hidden;",m}),_=Vue.computed(()=>{let m="uni-scroll-view";return e.showScrollbar===!1&&(m+=" uni-scroll-view-scrollbar-hidden"),m});return o({$getMain(){return r.value}}),()=>{const{refresherEnabled:m,refresherBackground:w,refresherDefaultStyle:C,refresherThreshold:f}=e,{refresherHeight:p,refreshState:S}=l;return Vue.createVNode("uni-scroll-view",{ref:i},[Vue.createVNode("div",{ref:a,class:"uni-scroll-view"},[Vue.createVNode("div",{ref:r,style:v.value,class:_.value},[m?Vue.createVNode(YS,{refreshState:S,refresherHeight:p,refresherThreshold:f,refresherDefaultStyle:C,refresherBackground:w},{default:()=>[C=="none"?n.refresher&&n.refresher():null]},8,["refreshState","refresherHeight","refresherThreshold","refresherDefaultStyle","refresherBackground"]):null,Vue.createVNode("div",{ref:s,class:"uni-scroll-view-content"},[n.default&&n.default()],512)],6)],512)],512)}}});function XS(e){const t=Vue.computed(()=>Number(e.scrollTop)||0),n=Vue.computed(()=>Number(e.scrollLeft)||0);return{state:Vue.reactive({lastScrollTop:t.value,lastScrollLeft:n.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshState:""}),scrollTopNumber:t,scrollLeftNumber:n}}function JS(e,t,n,o,i,r,a,s,c){let l=!1,u=0,d=!1,h=()=>{};const g=Vue.computed(()=>e.scrollX),v=Vue.computed(()=>e.scrollY),_=Vue.computed(()=>{let E=Number(e.upperThreshold);return isNaN(E)?50:E}),m=Vue.computed(()=>{let E=Number(e.lowerThreshold);return isNaN(E)?50:E});function w(E,V){const I=a.value;let M=0,F="";if(E<0?E=0:V==="x"&&E>I.scrollWidth-I.offsetWidth?E=I.scrollWidth-I.offsetWidth:V==="y"&&E>I.scrollHeight-I.offsetHeight&&(E=I.scrollHeight-I.offsetHeight),V==="x"?M=I.scrollLeft-E:V==="y"&&(M=I.scrollTop-E),M===0)return;let k=s.value;k.style.transition="transform .3s ease-out",k.style.webkitTransition="-webkit-transform .3s ease-out",V==="x"?F="translateX("+M+"px) translateZ(0)":V==="y"&&(F="translateY("+M+"px) translateZ(0)"),k.removeEventListener("transitionend",h),k.removeEventListener("webkitTransitionEnd",h),h=()=>T(E,V),k.addEventListener("transitionend",h),k.addEventListener("webkitTransitionEnd",h),V==="x"?I.style.overflowX="hidden":V==="y"&&(I.style.overflowY="hidden"),k.style.transform=F,k.style.webkitTransform=F}function C(E){const V=E.target;i("scroll",E,{scrollLeft:V.scrollLeft,scrollTop:V.scrollTop,scrollHeight:V.scrollHeight,scrollWidth:V.scrollWidth,deltaX:t.lastScrollLeft-V.scrollLeft,deltaY:t.lastScrollTop-V.scrollTop}),v.value&&(V.scrollTop<=_.value&&t.lastScrollTop-V.scrollTop>0&&E.timeStamp-t.lastScrollToUpperTime>200&&(i("scrolltoupper",E,{direction:"top"}),t.lastScrollToUpperTime=E.timeStamp),V.scrollTop+V.offsetHeight+m.value>=V.scrollHeight&&t.lastScrollTop-V.scrollTop<0&&E.timeStamp-t.lastScrollToLowerTime>200&&(i("scrolltolower",E,{direction:"bottom"}),t.lastScrollToLowerTime=E.timeStamp)),g.value&&(V.scrollLeft<=_.value&&t.lastScrollLeft-V.scrollLeft>0&&E.timeStamp-t.lastScrollToUpperTime>200&&(i("scrolltoupper",E,{direction:"left"}),t.lastScrollToUpperTime=E.timeStamp),V.scrollLeft+V.offsetWidth+m.value>=V.scrollWidth&&t.lastScrollLeft-V.scrollLeft<0&&E.timeStamp-t.lastScrollToLowerTime>200&&(i("scrolltolower",E,{direction:"right"}),t.lastScrollToLowerTime=E.timeStamp)),t.lastScrollTop=V.scrollTop,t.lastScrollLeft=V.scrollLeft}function f(E){v.value&&(e.scrollWithAnimation?w(E,"y"):a.value.scrollTop=E)}function p(E){g.value&&(e.scrollWithAnimation?w(E,"x"):a.value.scrollLeft=E)}function S(E){if(E){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(E)){console.error(`id error: scroll-into-view=${E}`);return}let V=r.value.querySelector("#"+E);if(V){let I=a.value.getBoundingClientRect(),M=V.getBoundingClientRect();if(g.value){let F=M.left-I.left,B=a.value.scrollLeft+F;e.scrollWithAnimation?w(B,"x"):a.value.scrollLeft=B}if(v.value){let F=M.top-I.top,B=a.value.scrollTop+F;e.scrollWithAnimation?w(B,"y"):a.value.scrollTop=B}}}}function T(E,V){s.value.style.transition="",s.value.style.webkitTransition="",s.value.style.transform="",s.value.style.webkitTransform="";let I=a.value;V==="x"?(I.style.overflowX=g.value?"auto":"hidden",I.scrollLeft=E):V==="y"&&(I.style.overflowY=v.value?"auto":"hidden",I.scrollTop=E),s.value.removeEventListener("transitionend",h),s.value.removeEventListener("webkitTransitionEnd",h)}function b(E){if(e.refresherEnabled){switch(E){case"refreshing":t.refresherHeight=e.refresherThreshold,l||(l=!0,i("refresherpulling",{},{deltaY:t.refresherHeight,dy:t.refresherHeight}),i("refresherrefresh",{},{dy:N.y-A.y}),c("update:refresherTriggered",!0));break;case"restore":case"refresherabort":l=!1,t.refresherHeight=u=0,E==="restore"&&(d=!1,i("refresherrestore",{},{dy:N.y-A.y})),E==="refresherabort"&&d&&(d=!1,i("refresherabort",{},{dy:N.y-A.y}));break}t.refreshState=E}}let A={x:0,y:0},N={y:e.refresherThreshold};return Vue.onMounted(()=>{Vue.nextTick(()=>{f(n.value),p(o.value)}),S(e.scrollIntoView);let E=function(k){k.preventDefault(),k.stopPropagation(),C(k)},V=null,I=function(k){if(A===null)return;let B=k.touches[0].pageX,z=k.touches[0].pageY,x=a.value;if(Math.abs(B-A.x)>Math.abs(z-A.y))if(g.value){if(x.scrollLeft===0&&B>A.x){V=!1;return}else if(x.scrollWidth===x.offsetWidth+x.scrollLeft&&B<A.x){V=!1;return}V=!0}else V=!1;else if(v.value)if(x.scrollTop===0&&z>A.y)V=!1,e.refresherEnabled&&k.cancelable!==!1&&k.preventDefault();else if(x.scrollHeight===x.offsetHeight+x.scrollTop&&z<A.y){V=!1;return}else V=!0;else V=!1;if(V&&k.stopPropagation(),x.scrollTop===0&&k.touches.length===1&&b("pulling"),e.refresherEnabled&&t.refreshState==="pulling"){const P=z-A.y;u===0&&(u=z),l?(t.refresherHeight=P+e.refresherThreshold,d=!1):(t.refresherHeight=z-u,t.refresherHeight>0&&(d=!0,i("refresherpulling",k,{deltaY:P,dy:P})))}},M=function(k){k.touches.length===1&&(A={x:k.touches[0].pageX,y:k.touches[0].pageY})},F=function(k){N={x:k.changedTouches[0].pageX,y:k.changedTouches[0].pageY},t.refresherHeight>=e.refresherThreshold?b("refreshing"):b("refresherabort"),A={x:0,y:0},N={x:0,y:e.refresherThreshold}};a.value.addEventListener("touchstart",M,Fu),a.value.addEventListener("touchmove",I,It(!1)),a.value.addEventListener("scroll",E,It(!1)),a.value.addEventListener("touchend",F,Fu),Vue.onBeforeUnmount(()=>{a.value.removeEventListener("touchstart",M),a.value.removeEventListener("touchmove",I),a.value.removeEventListener("scroll",E),a.value.removeEventListener("touchend",F)})}),Vue.onActivated(()=>{v.value&&(a.value.scrollTop=t.lastScrollTop),g.value&&(a.value.scrollLeft=t.lastScrollLeft)}),Vue.watch(n,E=>{f(E)}),Vue.watch(o,E=>{p(E)}),Vue.watch(()=>e.scrollIntoView,E=>{S(E)}),Vue.watch(()=>e.refresherTriggered,E=>{E===!0?b("refreshing"):E===!1&&b("restore")}),{realScrollX:g,realScrollY:v,_scrollTopChanged:f,_scrollLeftChanged:p}}const KS=X({name:"Slider",props:{name:{type:String,default:""},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0},step:{type:[Number,String],default:1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#e9e9e9"},backgroundColor:{type:String,default:"#e9e9e9"},activeColor:{type:String,default:"#007aff"},selectedColor:{type:String,default:"#007aff"},blockColor:{type:String,default:"#ffffff"},blockSize:{type:[Number,String],default:28},showValue:{type:[Boolean,String],default:!1}},emits:["changing","change"],setup(e,{emit:t}){const n=Vue.ref(null),o=Vue.ref(null),i=Vue.ref(null),r=Vue.ref(Number(e.value));r.value<Number(e.min)&&(r.value=Number(e.min)),r.value>Number(e.max)&&(r.value=Number(e.max)),Vue.watch(()=>e.value,u=>{r.value=Number(u)});const a=pe(n,t),s=ZS(e,r),{_onClick:c,_onTrack:l}=eT(e,r,n,o,a);return Vue.onMounted(()=>{xn(i.value,l)}),()=>{const{setBgColor:u,setBlockBg:d,setActiveColor:h,setBlockStyle:g}=s;return Vue.createVNode("uni-slider",{ref:n,onClick:oe(c)},[Vue.createVNode("div",{class:"uni-slider-wrapper"},[Vue.createVNode("div",{class:"uni-slider-tap-area"},[Vue.createVNode("div",{style:u.value,class:"uni-slider-handle-wrapper"},[Vue.createVNode("div",{ref:i,style:d.value,class:"uni-slider-handle"},null,4),Vue.createVNode("div",{style:g.value,class:"uni-slider-thumb"},null,4),Vue.createVNode("div",{style:h.value,class:"uni-slider-track"},null,4)],4)]),Vue.withDirectives(Vue.createVNode("span",{ref:o,class:"uni-slider-value"},[r.value],512),[[Vue.vShow,e.showValue]])])],8,["onClick"])}}}),QS=(e,t,n)=>(n=Number(n),t=Number(t),100*(e-t)/(n-t)+"%");function ZS(e,t){const n=()=>QS(t.value,e.min,e.max),o=()=>e.backgroundColor!=="#e9e9e9"?e.backgroundColor:e.color!=="#007aff"?e.color:"#007aff",i=()=>e.activeColor!=="#007aff"?e.activeColor:e.selectedColor!=="#e9e9e9"?e.selectedColor:"#e9e9e9";return{setBgColor:Vue.computed(()=>({backgroundColor:o()})),setBlockBg:Vue.computed(()=>({left:n()})),setActiveColor:Vue.computed(()=>({backgroundColor:i(),width:n()})),setBlockStyle:Vue.computed(()=>({width:e.blockSize+"px",height:e.blockSize+"px",marginLeft:-e.blockSize/2+"px",marginTop:-e.blockSize/2+"px",left:n(),backgroundColor:e.blockColor}))}}function eT(e,t,n,o,i){const r=Vue.computed(()=>{const d=Number(e.step);return isNaN(d)?1:d}),a=d=>{e.disabled||(c(d),i("change",d,{value:t.value}))},s=(d,h,g)=>Math.round((g-d)/h)*h+d,c=d=>{const h=Number(e.max),g=Number(e.min),v=o.value,_=getComputedStyle(v,null).marginLeft;let m=v.offsetWidth;m=m+parseInt(_);const w=n.value,C=w.offsetWidth-(e.showValue?m:0),f=w.getBoundingClientRect().left,p=(d.x-f)/C,S=(r.value+"").split(".")[1];t.value=parseFloat(s(g,r.value,tT(g,h,p)).toFixed(S?S.length:0))},l=d=>{if(!e.disabled)return d.detail.state==="move"?(c({x:d.detail.x}),i("changing",d,{value:t.value}),!1):d.detail.state==="end"&&i("change",d,{value:t.value})},u=Vue.inject(Fe,!1);if(u){const d={reset:()=>t.value=Number(e.min),submit:()=>{const h=["",null];return e.name!==""&&(h[0]=e.name,h[1]=t.value),h}};u.addField(d),Vue.onBeforeUnmount(()=>{u.removeField(d)})}return{_onClick:a,_onTrack:l}}function tT(e,t,n){return n=Math.min(1,Math.max(0,n)),e*(1-n)+t*n}const nT={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)"}};function oT(e){const t=Vue.computed(()=>{const r=Number(e.interval);return isNaN(r)?5e3:r}),n=Vue.computed(()=>{const r=Number(e.duration);return isNaN(r)?500:r}),o=Vue.computed(()=>{const r=Math.round(e.displayMultipleItems);return isNaN(r)?1:r});return Vue.reactive({interval:t,duration:n,displayMultipleItems:o,current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1})}function iT(e,t,n,o,i,r){function a(){s&&(clearTimeout(s),s=null)}let s=null,c=!0,l=0,u=1,d=null,h=!1,g=0,v,_="",m;const w=Vue.computed(()=>n.value.length>t.displayMultipleItems),C=Vue.computed(()=>e.circular&&w.value);function f(k){if(!c)for(let B=n.value,z=B.length,x=k+t.displayMultipleItems,P=0;P<z;P++){const O=B[P],D=Math.floor(k/z)*z+P,W=D+z,q=D-z,$=Math.max(k-(D+1),D-x,0),ee=Math.max(k-(W+1),W-x,0),de=Math.max(k-(q+1),q-x,0),Me=Math.min($,ee,de),De=[D,W,q][[$,ee,de].indexOf(Me)];O.updatePosition(De,e.vertical)}}function p(k){Math.floor(2*l)===Math.floor(2*k)&&Math.ceil(2*l)===Math.ceil(2*k)||C.value&&f(k);const B=e.vertical?"0":100*-k*u+"%",z=e.vertical?100*-k*u+"%":"0",x="translate("+B+", "+z+") translateZ(0)",P=o.value;if(P&&(P.style.webkitTransform=x,P.style.transform=x),l=k,!v){if(k%1===0)return;v=k}k-=Math.floor(v);const O=n.value;k<=-(O.length-1)?k+=O.length:k>=O.length&&(k-=O.length),k=v%1>.5||v<0?k-1:k,r("transition",{},{dx:e.vertical?0:k*P.offsetWidth,dy:e.vertical?k*P.offsetHeight:0})}function S(){d&&(p(d.toPos),d=null)}function T(k){const B=n.value.length;if(!B)return-1;const z=(Math.round(k)%B+B)%B;if(C.value){if(B<=t.displayMultipleItems)return 0}else if(z>B-t.displayMultipleItems)return B-t.displayMultipleItems;return z}function b(){d=null}function A(){if(!d){h=!1;return}const k=d,B=k.toPos,z=k.acc,x=k.endTime,P=k.source,O=x-Date.now();if(O<=0){p(B),d=null,h=!1,v=null;const q=n.value[t.current];if(q){const $=q.getItemId();r("animationfinish",{},{current:t.current,currentItemId:$,source:P})}return}const D=z*O*O/2,W=B+D;p(W),m=requestAnimationFrame(A)}function N(k,B,z){b();const x=t.duration,P=n.value.length;let O=l;if(C.value)if(z<0){for(;O<k;)O+=P;for(;O-P>k;)O-=P}else if(z>0){for(;O>k;)O-=P;for(;O+P<k;)O+=P;O+P-k<k-O&&(O+=P)}else{for(;O+P<k;)O+=P;for(;O-P>k;)O-=P;O+P-k<k-O&&(O+=P)}else B==="click"&&(k=k+t.displayMultipleItems-1<P?k:0);d={toPos:k,acc:2*(O-k)/(x*x),endTime:Date.now()+x,source:B},h||(h=!0,m=requestAnimationFrame(A))}function E(){a();const k=n.value,B=function(){s=null,_="autoplay",C.value?t.current=T(t.current+1):t.current=t.current+t.displayMultipleItems<k.length?t.current+1:0,N(t.current,"autoplay",C.value?1:0),s=setTimeout(B,t.interval)};c||k.length<=t.displayMultipleItems||(s=setTimeout(B,t.interval))}function V(){a(),S();const k=n.value;for(let P=0;P<k.length;P++)k[P].updatePosition(P,e.vertical);u=1;const B=o.value;if(t.displayMultipleItems===1&&k.length){const P=k[0].getBoundingClientRect(),O=B.getBoundingClientRect();u=P.width/O.width,u>0&&u<1||(u=1)}const z=l;l=-2;const x=t.current;x>=0?(c=!1,t.userTracking?(p(z+x-g),g=x):(p(x),e.autoplay&&E())):(c=!0,p(-t.displayMultipleItems-1))}Vue.watch([()=>e.current,()=>e.currentItemId,()=>[...n.value]],()=>{let k=-1;if(e.currentItemId){for(let B=0,z=n.value;B<z.length;B++)if(z[B].getItemId()===e.currentItemId){k=B;break}}k<0&&(k=Math.round(e.current)||0),k=k<0?0:k,t.current!==k&&(_="",t.current=k)}),Vue.watch([()=>e.vertical,()=>C.value,()=>t.displayMultipleItems,()=>[...n.value]],V),Vue.watch(()=>t.interval,()=>{s&&(a(),E())});function I(k,B){const z=_;_="";const x=n.value;if(!z){const O=x.length;N(k,"",C.value&&B+(O-k)%O>O/2?1:0)}const P=x[k];if(P){const O=t.currentItemId=P.getItemId();r("change",{},{current:t.current,currentItemId:O,source:z})}}Vue.watch(()=>t.current,(k,B)=>{I(k,B),i("update:current",k)}),Vue.watch(()=>t.currentItemId,k=>{i("update:currentItemId",k)});function M(k){k?E():a()}Vue.watch(()=>e.autoplay&&!t.userTracking,M),M(e.autoplay&&!t.userTracking),Vue.onMounted(()=>{let k=!1,B=0,z=0;function x(){a(),g=l,B=0,z=Date.now(),b()}function P(D){const W=z;z=Date.now();const $=n.value.length-t.displayMultipleItems;function ee(ut){return .5-.25/(ut+.5)}function de(ut,Tt){let _e=g+ut;B=.6*B+.4*Tt,C.value||(_e<0||_e>$)&&(_e<0?_e=-ee(-_e):_e>$&&(_e=$+ee(_e-$)),B=0),p(_e)}const Me=z-W||1,De=o.value;e.vertical?de(-D.dy/De.offsetHeight,-D.ddy/Me):de(-D.dx/De.offsetWidth,-D.ddx/Me)}function O(D){t.userTracking=!1;const W=B/Math.abs(B);let q=0;!D&&Math.abs(B)>.2&&(q=.5*W);const $=T(l+q);D?N(t.current,"",0):(_="touch",t.current=$,N($,"touch",q!==0?q:$===0&&C.value&&l>=1?1:0))}xn(o.value,D=>{if(!e.disableTouch&&!c){if(D.detail.state==="start")return t.userTracking=!0,k=!1,x();if(D.detail.state==="end")return O(!1);if(D.detail.state==="cancel")return O(!0);if(t.userTracking){if(!k){k=!0;const W=Math.abs(D.detail.dx),q=Math.abs(D.detail.dy);if((W>=q&&e.vertical||W<=q&&!e.vertical)&&(t.userTracking=!1),!t.userTracking){e.autoplay&&E();return}}return P(D.detail),!1}}},!0)}),Vue.onUnmounted(()=>{a(),cancelAnimationFrame(m)});function F(k){N(t.current=k,_="click",C.value?1:0)}return{onSwiperDotClick:F,circularEnabled:C,swiperEnabled:w}}const zu=X({name:"Swiper",props:nT,emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,{slots:t,emit:n}){const o=Vue.ref(null),i=pe(o,n),r=Vue.ref(null),a=Vue.ref(null),s=oT(e),c=Vue.computed(()=>{let p={};return(e.nextMargin||e.previousMargin)&&(p=e.vertical?{left:0,right:0,top:Ge(e.previousMargin,!0),bottom:Ge(e.nextMargin,!0)}:{top:0,bottom:0,left:Ge(e.previousMargin,!0),right:Ge(e.nextMargin,!0)}),p}),l=Vue.computed(()=>{const p=Math.abs(100/s.displayMultipleItems)+"%";return{width:e.vertical?"100%":p,height:e.vertical?p:"100%"}});let u=[];const d=[],h=Vue.ref([]);function g(){const p=[];for(let S=0;S<u.length;S++){let T=u[S];T instanceof Element||(T=T.el);const b=d.find(A=>T===A.rootRef.value);b&&p.push(Vue.markRaw(b))}h.value=p}const v=function(p){d.push(p),g()};Vue.provide("addSwiperContext",v);const _=function(p){const S=d.indexOf(p);S>=0&&(d.splice(S,1),g())};Vue.provide("removeSwiperContext",_);const{onSwiperDotClick:m,circularEnabled:w,swiperEnabled:C}=iT(e,s,h,a,n,i);let f=()=>null;return f=rT(o,e,s,m,h,w,C),()=>{const p=t.default&&t.default();return u=qt(p),Vue.createVNode("uni-swiper",{ref:o},[Vue.createVNode("div",{ref:r,class:"uni-swiper-wrapper"},[Vue.createVNode("div",{class:"uni-swiper-slides",style:c.value},[Vue.createVNode("div",{ref:a,class:"uni-swiper-slide-frame",style:l.value},[p],4)],4),e.indicatorDots&&Vue.createVNode("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[h.value.map((S,T,b)=>Vue.createVNode("div",{onClick:()=>m(T),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":T<s.current+s.displayMultipleItems&&T>=s.current||T<s.current+s.displayMultipleItems-b.length},style:{background:T===s.current?e.indicatorActiveColor:e.indicatorColor}},null,14,["onClick"]))],2),f()],512)],512)}}}),rT=(e,t,n,o,i,r,a)=>{let s=!1,c=!1,l=!1,u=Vue.ref(!1);Vue.watchEffect(()=>{s=t.navigation==="auto",u.value=t.navigation!==!0||s,C()}),Vue.watchEffect(()=>{const p=i.value.length,S=!r.value;c=n.current===0&&S,l=n.current===p-1&&S||S&&n.current+n.displayMultipleItems>=p,a.value||(c=!0,l=!0,s&&(u.value=!0))});function d(p,S){const T=p.currentTarget;T&&(T.style.backgroundColor=S==="over"?t.navigationActiveColor:"")}const h={onMouseover:p=>d(p,"over"),onMouseout:p=>d(p,"out")};function g(p,S,T){if(p.stopPropagation(),T)return;const b=i.value.length;let A=n.current;switch(S){case"prev":A--,A<0&&r.value&&(A=b-1);break;case"next":A++,A>=b&&r.value&&(A=0);break}o(A)}const v=()=>le(gn,t.navigationColor,26);let _;const m=p=>{clearTimeout(_);const{clientX:S,clientY:T}=p,{left:b,right:A,top:N,bottom:E,width:V,height:I}=e.value.getBoundingClientRect();let M=!1;if(t.vertical?M=!(T-N<I/3||E-T<I/3):M=!(S-b<V/3||A-S<V/3),M)return _=setTimeout(()=>{u.value=M},300);u.value=M},w=()=>{u.value=!0};function C(){e.value&&(e.value.removeEventListener("mousemove",m),e.value.removeEventListener("mouseleave",w),s&&(e.value.addEventListener("mousemove",m),e.value.addEventListener("mouseleave",w)))}Vue.onMounted(C);function f(){const p={"uni-swiper-navigation-hide":u.value,"uni-swiper-navigation-vertical":t.vertical};return t.navigation?Vue.createVNode(Vue.Fragment,null,[Vue.createVNode("div",Vue.mergeProps({class:["uni-swiper-navigation uni-swiper-navigation-prev",L({"uni-swiper-navigation-disabled":c},p)],onClick:S=>g(S,"prev",c)},h),[v()],16,["onClick"]),Vue.createVNode("div",Vue.mergeProps({class:["uni-swiper-navigation uni-swiper-navigation-next",L({"uni-swiper-navigation-disabled":l},p)],onClick:S=>g(S,"next",l)},h),[v()],16,["onClick"])]):null}return f},Hu=X({name:"SwiperItem",props:{itemId:{type:String,default:""}},setup(e,{slots:t}){const n=Vue.ref(null),o={rootRef:n,getItemId(){return e.itemId},getBoundingClientRect(){return n.value.getBoundingClientRect()},updatePosition(i,r){const a=r?"0":100*i+"%",s=r?100*i+"%":"0",c=n.value,l=`translate(${a},${s}) translateZ(0)`;c&&(c.style.webkitTransform=l,c.style.transform=l)}};return Vue.onMounted(()=>{const i=Vue.inject("addSwiperContext");i&&i(o)}),Vue.onUnmounted(()=>{const i=Vue.inject("removeSwiperContext");i&&i(o)}),()=>Vue.createVNode("uni-swiper-item",{ref:n,style:{position:"absolute",width:"100%",height:"100%"}},[t.default&&t.default()],512)}}),aT=X({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=Vue.ref(null),o=Vue.ref(e.checked),i=sT(e,o),r=pe(n,t);Vue.watch(()=>e.checked,s=>{o.value=s});const a=s=>{e.disabled||(o.value=!o.value,r("change",s,{value:o.value}))};return i&&(i.addHandler(a),Vue.onBeforeUnmount(()=>{i.removeHandler(a)})),fo(e,{"label-click":a}),()=>{const{color:s,type:c}=e,l=mt(e,"disabled"),u={};s&&o.value&&(u.backgroundColor=s,u.borderColor=s);let d;return d=o.value,Vue.createVNode("uni-switch",Vue.mergeProps({id:e.id,ref:n},l,{onClick:a}),[Vue.createVNode("div",{class:"uni-switch-wrapper"},[Vue.withDirectives(Vue.createVNode("div",{class:["uni-switch-input",[o.value?"uni-switch-input-checked":""]],style:u},null,6),[[Vue.vShow,c==="switch"]]),Vue.withDirectives(Vue.createVNode("div",{class:"uni-checkbox-input"},[d?le(hn,e.color,22):""],512),[[Vue.vShow,c==="checkbox"]])])],16,["id","onClick"])}}});function sT(e,t){const n=Vue.inject(Fe,!1),o=Vue.inject(_n,!1),i={submit:()=>{const r=["",null];return e.name&&(r[0]=e.name,r[1]=t.value),r},reset:()=>{t.value=!1}};return n&&(n.addField(i),Vue.onUnmounted(()=>{n.removeField(i)})),o}const Pn={ensp:" ",emsp:" ",nbsp:" "};function cT(e,{space:t,decode:n}){let o="",i=!1;for(let r of e)t&&Pn[t]&&r===" "&&(r=Pn[t]),i?(r==="n"?o+=kt:r==="\\"?o+="\\":o+="\\"+r,i=!1):r==="\\"?i=!0:o+=r;return n?o.replace(/ /g,Pn.nbsp).replace(/ /g,Pn.ensp).replace(/ /g,Pn.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"):o}function lT(e,t){return cT(e,t).split(kt)}const uT=X({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=Vue.ref(null);return()=>{const o=[];return t.default&&t.default().forEach(i=>{if(i.shapeFlag&8&&i.type!==Vue.Comment){let r=[];r=lT(i.children,{space:e.space,decode:e.decode});const a=r.length-1;r.forEach((s,c)=>{c===0&&!s||o.push(Vue.createTextVNode(s)),c!==a&&o.push(Vue.createVNode("br"))})}else o.push(i)}),Vue.createVNode("uni-text",{ref:n,selectable:e.selectable?!0:null},[Vue.createVNode("span",null,o)],8,["selectable"])}}}),dT=L({},_u,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator(e){return Wu.concat("return").includes(e)}}});let Ur=!1;const Wu=["done","go","next","search","send"];function fT(){const e="(prefers-color-scheme: dark)";Ur=String(navigator.platform).indexOf("iP")===0&&String(navigator.vendor).indexOf("Apple")===0&&window.matchMedia(e).media!==e}const hT=X({name:"Textarea",props:dT,emits:["confirm","change","linechange",...yu],setup(e,{emit:t,expose:n}){const o=Vue.ref(null),i=Vue.ref(null),{fieldRef:r,state:a,scopedAttrsState:s,fixDisabledColor:c,trigger:l}=bu(e,o,t),u=Vue.computed(()=>a.value.split(kt)),d=Vue.computed(()=>Wu.includes(e.confirmType)),h=Vue.ref(0),g=Vue.ref(null);Vue.watch(()=>h.value,f=>{const p=o.value,S=g.value,T=i.value;let b=parseFloat(getComputedStyle(p).lineHeight);isNaN(b)&&(b=S.offsetHeight);var A=Math.round(f/b);l("linechange",{},{height:f,heightRpx:750/window.innerWidth*f,lineCount:A}),e.autoHeight&&(T.style.height=f+"px")});function v({height:f}){h.value=f}function _(f){}function m(f){l("confirm",f,{value:a.value})}function w(f){f.key==="Enter"&&d.value&&f.preventDefault()}function C(f){if(f.key==="Enter"&&d.value){m(f);const p=f.target;!e.confirmHold&&p.blur()}}return fT(),n({$triggerInput:f=>{t("update:modelValue",f.value),t("update:value",f.value),a.value=f.value}}),()=>{let f=e.disabled&&c?Vue.createVNode("textarea",{key:"disabled-textarea",ref:r,value:a.value,tabindex:"-1",readonly:!!e.disabled,maxlength:a.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Ur},style:Ta({overflowY:e.autoHeight?"hidden":"auto"},e.cursorColor&&{caretColor:e.cursorColor}),onFocus:p=>p.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):Vue.createVNode("textarea",{key:"textarea",ref:r,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":Ur},style:Ta({overflowY:e.autoHeight?"hidden":"auto"},e.cursorColor&&{caretColor:e.cursorColor}),onKeydown:w,onKeyup:C,onChange:_},null,46,["value","disabled","maxlength","enterkeyhint","inputmode","onKeydown","onKeyup","onChange"]);return Vue.createVNode("uni-textarea",{ref:o,"auto-height":e.autoHeight},[Vue.createVNode("div",{ref:i,class:"uni-textarea-wrapper"},[Vue.withDirectives(Vue.createVNode("div",Vue.mergeProps(s.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Vue.vShow,!a.value.length]]),Vue.createVNode("div",{ref:g,class:"uni-textarea-line"},[" "],512),Vue.createVNode("div",{class:{"uni-textarea-compute":!0,"uni-textarea-compute-auto-height":e.autoHeight}},[u.value.map(p=>Vue.createVNode("div",null,[p.trim()?p:"."])),Vue.createVNode(je,{initial:!0,onResize:v},null,8,["initial","onResize"])],2),e.confirmType==="search"?Vue.createVNode("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[f],40,["onSubmit"]):f],512)],8,["auto-height"])}}}),gT=X({name:"View",props:L({},g0),setup(e,{slots:t}){const n=Vue.ref(null),{hovering:o,binding:i}=Fi(e);return()=>{const r=e.hoverClass;return r&&r!=="none"?Vue.createVNode("uni-view",Vue.mergeProps({class:o.value?r:"",ref:n},i),[Vue.renderSlot(t,"default")],16):Vue.createVNode("uni-view",{ref:n},[Vue.renderSlot(t,"default")],512)}}});function Jo(e,t){if(t||(t=e.id),!!t)return e.$options.name.toLowerCase()+"."+t}function qu(e,t,n){e&&rs(n||pt(),e,({type:o,data:i},r)=>{t(o,i,r)})}function Gu(e,t){e&&jp(t||pt(),e)}function Gt(e,t,n,o){const r=Vue.getCurrentInstance().proxy;o=o==null?pn():o,Vue.onMounted(()=>{qu(t||Jo(r),e,o),(n||!t)&&Vue.watch(()=>r.id,(a,s)=>{qu(Jo(r,a),e,o),Gu(s&&Jo(r,s))})}),Vue.onBeforeUnmount(()=>{Gu(t||Jo(r),o)})}function pT(e,t){Vue.onMounted(()=>UniViewJSBridge.on(e,t)),Vue.onBeforeUnmount(()=>UniViewJSBridge.off(e))}let mT=0;function Ko(e){const t=pn(),o=Vue.getCurrentInstance().proxy,i=o.$options.name.toLowerCase(),r=e||o.id||`context${mT++}`;return Vue.onMounted(()=>{const a=o.$el;a.__uniContextInfo={id:r,type:i,page:t}}),`${i}.${r}`}function vT(e){return e.__uniContextInfo}function ju(e,t,n,o){G(t)&&Vue.injectHook(e,t.bind(n),o)}function _T(e,t,n){const o=e.mpType||n.$mpType;if(!(!o||o==="component"||o==="page"&&t.renderer==="component")&&(Object.keys(e).forEach(i=>{if(cp(i,e[i],!1)){const r=e[i];K(r)?r.forEach(a=>ju(i,a,n,t)):ju(i,r,n,t)}}),o==="page")){t.__isVisible=!0;try{let i=t.attrs.__pageQuery;re(n,ka,i),t.vapor||delete t.attrs.__pageQuery;const r=n.$page;(r==null?void 0:r.openType)!=="preloadPage"&&re(n,dt)}catch(i){console.error(i.message+kt+i.stack)}}}function yT(e,t,n){_T(e,t,n)}function bT(e,t,n){return e[t]=n}function wT(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function ST(e){const t=e.config.errorHandler;return function(o,i,r){t&&t(o,i,r);const a=e._instance;if(!a||!a.proxy)throw o;a[ht]?re(a.proxy,ht,o):Vue.logError(o,r,i?i.$.vnode:null,!1)}}function TT(e,t){return e?[...new Set([].concat(e,t))]:t}function CT(e){ja.forEach(t=>{e[t]=TT})}let Fr;const Qo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",VT=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;typeof atob!="function"?Fr=function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!VT.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");e+="==".slice(2-(e.length&3));for(var t,n="",o,i,r=0;r<e.length;)t=Qo.indexOf(e.charAt(r++))<<18|Qo.indexOf(e.charAt(r++))<<12|(o=Qo.indexOf(e.charAt(r++)))<<6|(i=Qo.indexOf(e.charAt(r++))),n+=o===64?String.fromCharCode(t>>16&255):i===64?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,t&255);return n}:Fr=atob;function AT(e){return decodeURIComponent(Fr(e).split("").map(function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function $r(){const e=uni.getStorageSync("uni_id_token")||"",t=e.split(".");if(!e||t.length!==3)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse(AT(t[1]))}catch(o){throw new Error("获取当前用户信息出错,详细错误信息为:"+o.message)}return n.tokenExpired=n.exp*1e3,delete n.exp,delete n.iat,n}function ET(e){e.uniIDHasRole=function(t){const{role:n}=$r();return n.indexOf(t)>-1},e.uniIDHasPermission=function(t){const{permission:n}=$r();return this.uniIDHasRole("admin")||n.indexOf(t)>-1},e.uniIDTokenValid=function(){const{tokenExpired:t}=$r();return t>Date.now()}}function kT(e){const t=e.config;t.errorHandler=up(e,ST),CT(t.optionMergeStrategies);const n=t.globalProperties;__UNI_FEATURE_UNI_CLOUD__&&ET(n),n.$set=bT,n.$applyOptions=yT,n.$callMethod=wT,lp(e)}function IT(e){const t=VueRouter.createRouter(PT());t.beforeEach((n,o)=>{n&&o&&n.meta.isTabBar&&o.meta.isTabBar&&xT(o.meta.tabBarIndex)}),e.router=t,e.use(t)}let Yu=Object.create(null);function NT(e){return Yu[e]}function xT(e){typeof window!="undefined"&&(Yu[e]={left:window.pageXOffset,top:window.pageYOffset})}const MT=(e,t,n)=>{if(n)return n;if(e&&t&&e.meta.isTabBar&&t.meta.isTabBar){const o=NT(e.meta.tabBarIndex);if(o)return o}return{left:0,top:0}};function PT(){return{history:RT(),strict:!!__uniConfig.router.strict,routes:__uniRoutes,scrollBehavior:MT}}function OT(e=1){const t=$t(),n=t.length-1,o=n-e;for(let i=n;i>o;i--){const r=nt(t[i]);Bo(Do(r.path,r.id),!1)}}function RT(){let{routerBase:e}=__uniConfig.router;e==="/"&&(e="");const t=__UNI_FEATURE_ROUTER_MODE__==="history"?VueRouter.createWebHistory(e):VueRouter.createWebHashHistory(e);return t.listen((n,o,i)=>{i.direction==="back"&&OT(Math.abs(i.delta))}),t}const Xu={install(e){kT(e),Dm(e),s0(e),e.config.warnHandler||(e.config.warnHandler=LT),__UNI_FEATURE_PAGES__&&IT(e)}};function LT(e,t,n){if(t){if(t.$.type.name==="PageMetaHead")return;const r=t.$.parent;if(r&&r.type.name==="PageMeta")return}const o=[`[Vue warn]: ${e}`];n.length&&o.push(`
|
|
4
|
+
`,n),console.warn(...o)}const BT={class:"uni-async-loading"},DT=Vue.createVNode("i",{class:"uni-loading"},null,-1),Zo=ge({name:"AsyncLoading",render(){return Vue.openBlock(),Vue.createBlock("div",BT,[DT])}});function UT(){window.location.reload()}const ei=ge({name:"AsyncError",props:["error"],setup(){xp();const{t:e}=U();return()=>Vue.createVNode("div",{class:"uni-async-error",onClick:UT},[e("uni.async.error")],8,["onClick"])}});let jt;function Ju(){return jt}function FT(e){jt=e,Object.defineProperty(jt.$.ctx,"$children",{get(){return $t().map(n=>n.$vm)}});const t=jt.$.appContext.app;t.component(Zo.name)||t.component(Zo.name,Zo),t.component(ei.name)||t.component(ei.name,ei),Xm(jt),c0(jt),Ym(),Cm()}function Ku(e,{type:t,clone:n,init:o,setup:i,before:r,options:a}){n&&(e=L({},e)),r&&r(e);const s=e.setup;return e.setup=(c,l)=>{const u=Vue.getCurrentInstance();if(o(u.proxy),i(u),s)return s(c,l)},e}function zr(e,t){return e&&(e.__esModule||e[Symbol.toStringTag]==="Module")?Ku(e.default,t):Ku(e,t)}function $T(e,t){return zr(e,{type:"window",init:n=>{n.$page={id:t}},setup(n){n.$pageInstance=n}})}function zT(e,t){return zr(e,{type:"page",clone:!0,init:Ib,setup(n){n.$pageInstance=n;const o=yn(),i=Ei(o.query);n.attrs.__pageQuery=i,nt(n.proxy).options=i,n.proxy.options=i;const r=Ot();Nl(r),n.onReachBottom=Vue.reactive([]),n.onPageScroll=Vue.reactive([]),Vue.watch([n.onReachBottom,n.onPageScroll],()=>{const s=gt();n.proxy===s&&Ol(n,r)},{once:!0}),Vue.onBeforeMount(()=>{Ml(n,r)}),Vue.onMounted(()=>{Ob(n);const{onReady:s}=n;s&&Et(s),Qu(o)}),Vue.onBeforeActivate(()=>{if(!n.__isVisible){Ml(n,r),n.__isVisible=!0;const{onShow:s}=n;s&&Et(s),Vue.nextTick(()=>{Qu(o)})}}),Vue.onBeforeDeactivate(()=>{if(n.__isVisible&&!n.__isUnload){n.__isVisible=!1;{const{onHide:s}=n;s&&Et(s)}}});const a=mn(n.proxy);return qp(a),Vue.onBeforeUnmount(()=>{Gp(a)}),i}})}function HT(e){return zr(e,{init:FT,setup(t){const n=yn(),o=()=>{Zv(t);const{onLaunch:i,onShow:r,onPageNotFound:a}=t,s=n.path.slice(1),c=aw({path:s||__uniRoutes[0].meta.route,query:Ei(n.query)});if(i&&Et(i,c),r&&Et(r,c),__UNI_FEATURE_PAGES__&&!n.matched.length){const l={notFound:!0,openType:"appLaunch",path:n.path,query:Ei(n.query),scene:1001};El(),a&&Et(a,l)}};return __UNI_FEATURE_PAGES__?VueRouter.useRouter().isReady().then(o):Vue.onBeforeMount(o),Vue.onMounted(()=>{window.addEventListener("resize",ki(WT,50,{setTimeout,clearTimeout})),window.addEventListener("message",qT),document.addEventListener("visibilitychange",GT),jT()}),n.query},before(t){t.mpType="app";const{setup:n}=t,o=()=>(Vue.openBlock(),Vue.createBlock(eh));t.setup=(i,r)=>{const a=n&&n(i,r);return G(a)?o:a},t.render=o}})}function WT(){const{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}=uni.getSystemInfoSync(),r=Math.abs(Number(window.orientation))===90?"landscape":"portrait";UniServiceJSBridge.emit(Jn,{deviceOrientation:r,size:{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}})}function qT(e){ce(e.data)&&e.data.type===Rg&&UniServiceJSBridge.emit(Da,e.data.data,e.data.pageId)}function GT(){const{emit:e}=UniServiceJSBridge;document.visibilityState==="visible"?e(La,Xl()):e(Ba)}function jT(){let e=null;try{e=window.matchMedia("(prefers-color-scheme: dark)")}catch(t){}if(e){let t=n=>{UniServiceJSBridge.emit(Xe,{theme:n.matches?"dark":"light"})};e.addEventListener?e.addEventListener("change",t):e.addListener(t)}}function Qu(e){const{tabBarText:t,tabBarIndex:n,route:o}=e.meta;t&&re("onTabItemTap",{index:n,text:t,pagePath:o})}function ti(e){e=e>0&&e<1/0?e:0;const t=Math.floor(e/3600),n=Math.floor(e%3600/60),o=Math.floor(e%3600%60),i=(t<10?"0":"")+t,r=(n<10?"0":"")+n,a=(o<10?"0":"")+o;let s=r+":"+a;return i!=="00"&&(s=i+":"+s),s}function YT(e,t,n,o){const i=Vue.reactive({seeking:!1,gestureType:"none",volumeOld:0,volumeNew:0,currentTimeOld:0,currentTimeNew:0,toastThin:!1}),r={x:0,y:0};let a=null;const s=()=>{i.gestureType!=="none"&&a!=null||(a=setTimeout(()=>{i.toastThin=!0},500))};let c;function l(){c==null&&(c=setTimeout(()=>{i.toastThin=!1,c=void 0},1e3))}function u(){clearTimeout(c),c=void 0}function d(m){const w=m.targetTouches[0];r.x=w.pageX,r.y=w.pageY,i.gestureType="none",i.volumeOld=0}function h(m){function w(){m.stopPropagation(),m.preventDefault()}o.fullscreen&&w();const C=i.gestureType;if(C==="stop")return;const f=m.targetTouches[0],p=f.pageX,S=f.pageY,T=r,b=n.value;if(C==="progress"?(v(p-T.x),i.seeking=!0):C==="volume"&&_(S-T.y),C==="none")if(Math.abs(p-T.x)>Math.abs(S-T.y)){if(!e.enableProgressGesture){i.gestureType="stop";return}i.gestureType="progress",i.currentTimeOld=i.currentTimeNew=b.currentTime,o.fullscreen||w()}else{if(!e.pageGesture&&!e.vslideGesture){i.gestureType="stop";return}s(),i.gestureType="volume",i.volumeOld=b.volume,o.fullscreen||w()}}function g(m){const w=n.value;i.gestureType!=="none"&&i.gestureType!=="stop"&&(m.stopPropagation(),m.preventDefault()),i.gestureType==="progress"&&i.currentTimeOld!==i.currentTimeNew&&(w.currentTime=i.currentTimeNew),i.gestureType="none"}function v(m){const w=t.currentDuration;let C=m/600*w+i.currentTimeOld;C<0?C=0:C>w&&(C=w),i.currentTimeNew=C}function _(m){const w=n.value,C=i.volumeOld;let f;typeof C=="number"&&(f=C-m/200,f<0?f=0:f>1&&(f=1),u(),l(),w.volume=f,i.volumeNew=f)}return{state:i,onTouchstart:d,onTouchmove:h,onTouchend:g}}function XT(e,t,n,o,i){const r=Vue.reactive({fullscreen:!1}),a=/^Apple/.test(navigator.vendor);function s(h,g){g&&document.fullscreenEnabled||c(!!(document.fullscreenElement||document.webkitFullscreenElement))}function c(h){r.fullscreen=h,e("fullscreenchange",{},{fullScreen:h,direction:"vertical"})}function l(h){const g=i.value,v=t.value,_=n.value;let m;h?(document.fullscreenEnabled||document.webkitFullscreenEnabled)&&(!a||o.userAction)?v[document.fullscreenEnabled?"requestFullscreen":"webkitRequestFullscreen"]():_.webkitEnterFullScreen?_.webkitEnterFullScreen():(m=!0,v.remove(),v.classList.add("uni-video-type-fullscreen"),document.body.appendChild(v)):document.fullscreenEnabled||document.webkitFullscreenEnabled?document.fullscreenElement?document.exitFullscreen():document.webkitFullscreenElement&&document.webkitExitFullscreen():_.webkitExitFullScreen?_.webkitExitFullScreen():(m=!0,v.remove(),v.classList.remove("uni-video-type-fullscreen"),g.appendChild(v)),m&&c(h)}function u(){l(!0)}function d(){l(!1)}return Vue.onBeforeUnmount(d),{state:r,onFullscreenChange:s,emitFullscreenChange:c,toggleFullscreen:l,requestFullScreen:u,exitFullScreen:d}}function JT(e,t,n){const o=Vue.ref(null),i=Vue.computed(()=>Q(e.src)),r=Vue.computed(()=>e.muted==="true"||e.muted===!0),a=Vue.reactive({start:!1,src:i,playing:!1,currentTime:0,duration:0,currentDuration:0,progress:0,buffered:0,muted:r,pauseUpdatingCurrentTime:!1});Vue.watch(()=>i.value,()=>{a.playing=!1,a.currentTime=0}),Vue.watch(()=>a.buffered,T=>{n("progress",{},{buffered:T})}),Vue.watch(()=>r.value,T=>{const b=o.value;b.muted=T}),Vue.watch([()=>a.duration,()=>e.duration],()=>{let T=Number(e.duration);isNaN(T)&&(T=0),a.currentDuration=T>0?T:a.duration});function s({target:T}){a.duration=T.duration}function c(T){const b=Number(e.initialTime)||0,A=T.target;b>0&&(A.currentTime=b),n("loadedmetadata",T,{width:A.videoWidth,height:A.videoHeight,duration:A.duration}),l(T)}function l(T){const b=T.target,A=b.buffered;A.length&&(a.buffered=A.end(A.length-1)/b.duration*100)}function u(T){n("waiting",T,{})}function d(T){a.playing=!1,n("error",T,{})}function h(T){a.start=!0,a.playing=!0,n("play",T,{})}function g(T){a.playing=!1,n("pause",T,{})}function v(T){a.playing=!1,n("ended",T,{})}function _(T){const b=T.target;a.pauseUpdatingCurrentTime||(a.currentTime=b.currentTime);const A=b.currentTime;n("timeupdate",T,{currentTime:A,duration:b.duration})}function m(){const T=o.value;a.playing?T.pause():T.play()}function w(){const T=o.value;a.start=!0,T.play()}function C(){o.value.pause()}function f(T){const b=o.value;T=Number(T),typeof T=="number"&&!isNaN(T)&&(b.currentTime=T)}function p(){f(0),C()}function S(T){const b=o.value;b.playbackRate=T}return{videoRef:o,state:a,play:w,pause:C,stop:p,seek:f,playbackRate:S,toggle:m,onDurationChange:s,onLoadedMetadata:c,onProgress:l,onWaiting:u,onVideoError:d,onPlay:h,onPause:g,onEnded:v,onTimeUpdate:_}}function KT(e,t,n,o){const i=Vue.ref(null),r=Vue.ref(null),a=Vue.computed(()=>e.showCenterPlayBtn&&!t.start),s=Vue.ref(!0),c=Vue.computed(()=>!a.value&&e.controls&&s.value),l=Vue.reactive({seeking:!1,touching:!1,controlsTouching:!1,centerPlayBtnShow:a,controlsShow:c,controlsVisible:s});function u(_){const m=i.value;let w=_.target,C=_.offsetX;for(;w&&w!==m;)C+=w.offsetLeft,w=w.parentNode;const f=m.offsetWidth;let p=0;C>=0&&C<=f&&(p=C/f,n(t.currentDuration*p))}function d(){l.controlsVisible=!l.controlsVisible}let h;function g(){h=setTimeout(()=>{l.controlsVisible=!1},3e3)}function v(){h&&(clearTimeout(h),h=null)}return Vue.onBeforeUnmount(()=>{h&&clearTimeout(h)}),Vue.watch(()=>l.controlsShow&&t.playing&&!l.controlsTouching,_=>{_?g():v()}),Vue.onMounted(()=>{const _=It(!1);let m,w,C=!0,f;const p=r.value;function S(b){const A=b.targetTouches[0],N=A.pageX,E=A.pageY;if(C&&Math.abs(N-m)<Math.abs(E-w)){T(b);return}C=!1;const I=i.value.offsetWidth;let M=f+(N-m)/I*100;M<0?M=0:M>100&&(M=100),t.progress=M,o==null||o(t.currentDuration*M/100),l.seeking=!0,b.preventDefault(),b.stopPropagation()}function T(b){l.controlsTouching=!1,l.touching&&(p.removeEventListener("touchmove",S,_),C||(b.preventDefault(),b.stopPropagation(),n(t.currentDuration*t.progress/100)),l.touching=!1)}p.addEventListener("touchstart",b=>{l.controlsTouching=!0;const A=b.targetTouches[0];m=A.pageX,w=A.pageY,f=t.progress,C=!0,l.touching=!0,p.addEventListener("touchmove",S,_)}),p.addEventListener("touchend",T),p.addEventListener("touchcancel",T)}),{state:l,progressRef:i,ballRef:r,clickProgress:u,toggleControls:d,autoHideStart:g,autoHideEnd:v}}function QT(e,t){const n=Vue.ref(null),o=Vue.reactive({enable:!!e.enableDanmu});let i={time:0,index:-1};const r=K(e.danmuList)?JSON.parse(JSON.stringify(e.danmuList)):[];r.sort(function(u,d){return(u.time||0)-(d.time||0)});function a(){o.enable=!o.enable}function s(u){const h=u.target.currentTime,g=i,v={time:h,index:g.index};if(h>g.time)for(let _=g.index+1;_<r.length;_++){const m=r[_];if(h>=(m.time||0))v.index=_,t.playing&&o.enable&&c(m);else break}else if(h<g.time)for(let _=g.index-1;_>-1;_--){const m=r[_];if(h<=(m.time||0))v.index=_-1;else break}i=v}function c(u){const d=document.createElement("p");d.className="uni-video-danmu-item",d.innerText=u.text;let h=`bottom: ${Math.random()*100}%;color: ${u.color};`;d.setAttribute("style",h),n.value.appendChild(d),setTimeout(function(){h+="left: 0;-webkit-transform: translateX(-100%);transform: translateX(-100%);",d.setAttribute("style",h),setTimeout(function(){d.remove()},4e3)},17)}function l(u){r.splice(i.index+1,0,{text:String(u.text),color:u.color,time:t.currentTime||0})}return{state:o,danmuRef:n,updateDanmu:s,toggleDanmu:a,sendDanmu:l}}function ZT(e,t,n,o,i,r,a,s){const c={play:e,stop:n,pause:t,seek:o,sendDanmu:i,playbackRate:r,requestFullScreen:a,exitFullScreen:s},l=Ko();Gt((u,d)=>{let h;switch(u){case"seek":h=d.position;break;case"sendDanmu":h=d;break;case"playbackRate":h=d.rate;break}u in c&&c[u](h)},l,!0)}function e1(e,t,n,o,i){const r=Vue.computed(()=>t.gestureType==="progress"||n.touching);return Vue.watch(r,a=>{e.pauseUpdatingCurrentTime=a,n.controlsTouching=a,t.gestureType==="progress"&&a&&(n.controlsVisible=a)}),Vue.watch([()=>e.currentTime,()=>e.currentDuration],()=>{e.currentDuration>0?e.progress=e.currentTime/e.currentDuration*100:e.progress=0,e.progress>100&&(e.progress=100)},{immediate:!0}),Vue.watch(()=>t.currentTimeNew,a=>{e.currentTime=a}),r}const t1=X({name:"Video",props:{id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default(){return[]}},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},vslideGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},showPlayBtn:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0}},emits:["fullscreenchange","progress","loadedmetadata","waiting","error","play","pause","ended","timeupdate"],setup(e,{emit:t,attrs:n,slots:o}){const i=Vue.ref(null),r=Vue.ref(null),a=pe(i,t),{state:s}=pu(),{$attrs:c}=jo({excludeListeners:!0});Up();const{videoRef:l,state:u,play:d,pause:h,stop:g,seek:v,playbackRate:_,toggle:m,onDurationChange:w,onLoadedMetadata:C,onProgress:f,onWaiting:p,onVideoError:S,onPlay:T,onPause:b,onEnded:A,onTimeUpdate:N}=JT(e,n,a),{state:E,danmuRef:V,updateDanmu:I,toggleDanmu:M,sendDanmu:F}=QT(e,u),{state:k,onFullscreenChange:B,emitFullscreenChange:z,toggleFullscreen:x,requestFullScreen:P,exitFullScreen:O}=XT(a,r,l,s,i),{state:D,onTouchstart:W,onTouchend:q,onTouchmove:$}=YT(e,u,l,k),{state:ee,progressRef:de,ballRef:Me,clickProgress:De,toggleControls:ut}=KT(e,u,v,_e=>{D.currentTimeNew=_e});ZT(d,h,g,v,F,_,P,O);const Tt=e1(u,D,ee);return()=>Vue.createVNode("uni-video",{ref:i,id:e.id,onClick:ut},[Vue.createVNode("div",{ref:r,class:"uni-video-container",onTouchstart:W,onTouchend:q,onTouchmove:$,onFullscreenchange:Vue.withModifiers(B,["stop"]),onWebkitfullscreenchange:Vue.withModifiers(_e=>B(_e,!0),["stop"])},[Vue.createVNode("video",Vue.mergeProps({ref:l,style:{"object-fit":e.objectFit},muted:!!e.muted,loop:!!e.loop,src:u.src,poster:e.poster,autoplay:!!e.autoplay},c.value,{class:{"uni-video-video":!0,"uni-video-video-fullscreen":k.fullscreen},"webkit-playsinline":!0,playsinline:!0,onDurationchange:w,onLoadedmetadata:C,onProgress:f,onWaiting:p,onError:S,onPlay:T,onPause:b,onEnded:A,onTimeupdate:_e=>{N(_e),I(_e)},onWebkitbeginfullscreen:()=>z(!0),onX5videoenterfullscreen:()=>z(!0),onWebkitendfullscreen:()=>z(!1),onX5videoexitfullscreen:()=>z(!1)}),null,16,["muted","loop","src","poster","autoplay","webkit-playsinline","playsinline","onDurationchange","onLoadedmetadata","onProgress","onWaiting","onError","onPlay","onPause","onEnded","onTimeupdate","onWebkitbeginfullscreen","onX5videoenterfullscreen","onWebkitendfullscreen","onX5videoexitfullscreen"]),Vue.withDirectives(Vue.createVNode("div",{class:"uni-video-bar uni-video-bar-full",onClick:Vue.withModifiers(()=>{},["stop"])},[Vue.createVNode("div",{class:"uni-video-controls"},[Vue.withDirectives(Vue.createVNode("div",{class:{"uni-video-icon":!0,"uni-video-control-button":!0,"uni-video-control-button-play":!u.playing,"uni-video-control-button-pause":u.playing},onClick:Vue.withModifiers(m,["stop"])},null,10,["onClick"]),[[Vue.vShow,e.showPlayBtn]]),Vue.withDirectives(Vue.createVNode("div",{class:"uni-video-current-time"},[ti(u.currentTime)],512),[[Vue.vShow,e.showProgress]]),Vue.withDirectives(Vue.createVNode("div",{ref:de,class:"uni-video-progress-container",onClick:Vue.withModifiers(De,["stop"])},[Vue.createVNode("div",{class:{"uni-video-progress":!0,"uni-video-progress-progressing":Tt.value}},[Vue.createVNode("div",{style:{width:u.buffered-u.progress+"%",left:u.progress+"%"},class:"uni-video-progress-buffered"},null,4),Vue.createVNode("div",{style:{width:u.progress+"%"},class:"uni-video-progress-played"},null,4),Vue.createVNode("div",{ref:Me,style:{left:u.progress+"%"},class:{"uni-video-ball":!0,"uni-video-ball-progressing":Tt.value}},[Vue.createVNode("div",{class:"uni-video-inner"},null)],6)],2)],8,["onClick"]),[[Vue.vShow,e.showProgress]]),Vue.withDirectives(Vue.createVNode("div",{class:"uni-video-duration"},[ti(u.currentDuration)],512),[[Vue.vShow,e.showProgress]])]),Vue.withDirectives(Vue.createVNode("div",{class:{"uni-video-icon":!0,"uni-video-danmu-button":!0,"uni-video-danmu-button-active":E.enable},onClick:Vue.withModifiers(M,["stop"])},null,10,["onClick"]),[[Vue.vShow,e.danmuBtn]]),Vue.withDirectives(Vue.createVNode("div",{class:{"uni-video-icon":!0,"uni-video-fullscreen":!0,"uni-video-type-fullscreen":k.fullscreen},onClick:Vue.withModifiers(()=>x(!k.fullscreen),["stop"])},null,10,["onClick"]),[[Vue.vShow,e.showFullscreenBtn]])],8,["onClick"]),[[Vue.vShow,ee.controlsShow]]),Vue.withDirectives(Vue.createVNode("div",{ref:V,style:"z-index: 0;",class:"uni-video-danmu"},null,512),[[Vue.vShow,u.start&&E.enable]]),ee.centerPlayBtnShow&&Vue.createVNode("div",{class:"uni-video-cover",onClick:Vue.withModifiers(()=>{},["stop"])},[Vue.createVNode("div",{class:"uni-video-cover-play-button uni-video-icon",onClick:Vue.withModifiers(d,["stop"])},null,8,["onClick"])],8,["onClick"]),Vue.createVNode("div",{class:"uni-video-loading"},[D.gestureType==="volume"?Vue.createVNode("div",{class:{"uni-video-toast-container":!0,"uni-video-toast-container-thin":D.toastThin},style:{marginTop:"5px"}},[!D.toastThin&&D.volumeNew>0&&D.gestureType==="volume"?Vue.createVNode("text",{class:"uni-video-icon uni-video-toast-icon"},[""]):!D.toastThin&&Vue.createVNode("text",{class:"uni-video-icon uni-video-toast-icon"},[""]),Vue.createVNode("div",{class:"uni-video-toast-draw",style:{width:`${D.volumeNew*100}%`}},null)],2):null]),Vue.createVNode("div",{class:{"uni-video-toast":!0,"uni-video-toast-progress":Tt.value}},[Vue.createVNode("div",{class:"uni-video-toast-title"},[Vue.createVNode("span",{class:"uni-video-toast-title-current-time"},[ti(D.currentTimeNew)])," / ",ti(u.currentDuration)])],2),Vue.createVNode("div",{class:"uni-video-slots"},[o.default&&o.default()])],40,["onTouchstart","onTouchend","onTouchmove","onFullscreenchange","onWebkitfullscreenchange"])],8,["id","onClick"])}}),n1=({name:e,arg:t})=>{if(e!=="postMessage")switch(e){case"navigateTo":uni.navigateTo(t);break;case"navigateBack":uni.navigateBack(t);break;case"switchTab":uni.switchTab(t);break;case"reLaunch":uni.reLaunch(t);break;case"redirectTo":uni.redirectTo(t);break}},o1=ne(()=>UniServiceJSBridge.on(Da,n1)),i1=X({inheritAttrs:!1,name:"WebView",props:{src:{type:String,default:""},fullscreen:{type:Boolean,default:!0}},emits:["load"],setup(e,{emit:t}){o1();const n=Vue.ref(null),o=Vue.ref(null),{$attrs:i,$excludeAttrs:r,$listeners:a}=jo({excludeListeners:!0}),s=pe(n,t);let c;return(()=>{const u=document.createElement("iframe");u.onload=function(d){s("load",d,{src:e.src})},Vue.watchEffect(()=>{for(const d in i.value)if(ae(i.value,d)){const h=i.value[d];u[d]=h}}),Vue.watchEffect(()=>{u.src=Q(e.src)}),o.value=u,c=r1(n,o,e.fullscreen),e.fullscreen&&document.body.appendChild(u)})(),Vue.onMounted(()=>{var u;c(),!e.fullscreen&&((u=n.value)==null||u.appendChild(o.value))}),Vue.onActivated(()=>{e.fullscreen&&(o.value.style.display="block")}),Vue.onDeactivated(()=>{e.fullscreen&&(o.value.style.display="none")}),Vue.onBeforeUnmount(()=>{e.fullscreen&&document.body.removeChild(o.value)}),()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode("uni-web-view",Vue.mergeProps({class:e.fullscreen?"uni-webview--fullscreen":""},a.value,r.value,{ref:n}),[Vue.createVNode(je,{onResize:c},null,8,["onResize"])],16)])}});function r1(e,t,n){return()=>{var i,r;if(n){const{top:a,left:s,width:c,height:l}=e.value.getBoundingClientRect();Ti(t.value,{position:"absolute",display:"block",border:"0",top:a+"px",left:s+"px",width:c+"px",height:l+"px"})}else Ti(t.value,{width:((i=e.value)==null?void 0:i.style.width)||"300px",height:((r=e.value)==null?void 0:r.style.height)||"150px"})}}let a1=0;function Hr(e,t,n,o){var i=document.createElement("script"),r=t.callback||"callback",a="__uni_jsonp_callback_"+a1++,s=t.timeout||3e4,c;function l(){clearTimeout(c),delete window[a],i.remove()}window[a]=u=>{G(n)&&n(u),l()},i.onerror=()=>{G(o)&&o(),l()},c=setTimeout(function(){G(o)&&o(),l()},s),i.src=e+(e.indexOf("?")>=0?"&":"?")+r+"="+a,document.body.appendChild(i)}function Zu(e){function t(){const c=this.div;this.getPanes().floatPane.appendChild(c)}function n(){const c=this.div.parentNode;c&&c.removeChild(this.div)}function o(){const c=this.option;this.Text=new e.Text({text:c.content,anchor:"bottom-center",offset:new e.Pixel(0,c.offsetY-16),style:{padding:(c.padding||8)+"px","line-height":(c.fontSize||14)+"px","border-radius":(c.borderRadius||0)+"px","border-color":`${c.bgColor||"#fff"} transparent transparent`,"background-color":c.bgColor||"#fff","box-shadow":"0 2px 6px 0 rgba(114, 124, 245, .5)","text-align":"center","font-size":(c.fontSize||14)+"px",color:c.color||"#000"},position:c.position}),(e.event||e.Event).addListener(this.Text,"click",()=>{this.callback()}),this.Text.setMap(c.map)}function i(){}function r(){this.Text&&this.option.map.remove(this.Text)}function a(){this.Text&&this.option.map.remove(this.Text)}class s{constructor(l={},u){this.createAMapText=o,this.removeAMapText=r,this.createBMapText=i,this.removeBMapText=a,this.onAdd=t,this.construct=t,this.onRemove=n,this.destroy=n,this.option=l||{};const d=this.visible=this.alwaysVisible=l.display==="ALWAYS";if(ue())this.callback=u,this.visible&&this.createAMapText();else if(ie())this.visible&&this.createBMapText();else{const h=l.map;this.position=l.position,this.index=1;const g=this.div=document.createElement("div"),v=g.style;v.position="absolute",v.whiteSpace="nowrap",v.transform="translateX(-50%) translateY(-100%)",v.zIndex="1",v.boxShadow=l.boxShadow||"none",v.display=d?"block":"none";const _=this.triangle=document.createElement("div");_.setAttribute("style","position: absolute;white-space: nowrap;border-width: 4px;border-style: solid;border-color: #fff transparent transparent;border-image: initial;font-size: 12px;padding: 0px;background-color: transparent;width: 0px;height: 0px;transform: translate(-50%, 100%);left: 50%;bottom: 0;"),this.setStyle(l),g.appendChild(_),h&&this.setMap(h)}}set onclick(l){this.div.onclick=l}get onclick(){return this.div.onclick}setOption(l){this.option=l,l.display==="ALWAYS"?this.alwaysVisible=this.visible=!0:this.alwaysVisible=!1,ue()?this.visible&&this.createAMapText():ie()?this.visible&&this.createBMapText():(this.setPosition(l.position),this.setStyle(l))}setStyle(l){const u=this.div,d=u.style;u.innerText=l.content||"",d.lineHeight=(l.fontSize||14)+"px",d.fontSize=(l.fontSize||14)+"px",d.padding=(l.padding||8)+"px",d.color=l.color||"#000",d.borderRadius=(l.borderRadius||0)+"px",d.backgroundColor=l.bgColor||"#fff",d.marginTop="-"+((l.top||0)+5)+"px",this.triangle.style.borderColor=`${l.bgColor||"#fff"} transparent transparent`}setPosition(l){this.position=l,this.draw()}draw(){const l=this.getProjection();if(!this.position||!this.div||!l)return;const u=l.fromLatLngToDivPixel(this.position),d=this.div.style;d.left=u.x+"px",d.top=u.y+"px"}changed(){const l=this.div.style;l.display=this.visible?"block":"none"}}if(!ue()&&!ie()){const c=new(e.OverlayView||e.Overlay);s.prototype.setMap=c.setMap,s.prototype.getMap=c.getMap,s.prototype.getPanes=c.getPanes,s.prototype.getProjection=c.getProjection,s.prototype.map_changed=c.map_changed,s.prototype.set=c.set,s.prototype.get=c.get,s.prototype.setOptions=c.setValues,s.prototype.bindTo=c.bindTo,s.prototype.bindsTo=c.bindsTo,s.prototype.notify=c.notify,s.prototype.setValues=c.setValues,s.prototype.unbind=c.unbind,s.prototype.unbindAll=c.unbindAll,s.prototype.addListener=c.addListener}return s}let Be;const ed={},s1="__map_callback__";function Wr(e,t){const n=ot();if(!n.key){console.error("Map key not configured.");return}const o=ed[n.type]=ed[n.type]||[];if(Be)t(Be);else if(window[n.type]&&window[n.type].maps)Be=ue()||ie()?window[n.type]:window[n.type].maps,Be.Callout=Be.Callout||Zu(Be),t(Be);else if(o.length)o.push(t);else{o.push(t);const i=window,r=s1+n.type;i[r]=function(){delete i[r],Be=ue()||ie()?window[n.type]:window[n.type].maps,Be.Callout=Zu(Be),o.forEach(c=>c(Be)),o.length=0},ue()&&l1(n);const a=document.createElement("script");let s=c1(n.type);n.type===Ne.QQ&&e.push("geometry"),e.length&&(s+=`libraries=${e.join("%2C")}&`),n.type===Ne.BMAP?a.src=`${s}ak=${n.key}&callback=${r}`:a.src=`${s}key=${n.key}&callback=${r}`,a.onerror=function(){console.error("Map load failed.")},document.body.appendChild(a)}}const c1=e=>({qq:"https://map.qq.com/api/js?v=2.exp&",google:"https://maps.googleapis.com/maps/api/js?",AMap:"https://webapi.amap.com/maps?v=2.0&",BMapGL:"https://api.map.baidu.com/api?type=webgl&v=1.0&"})[e];function l1(e){window._AMapSecurityConfig={securityJsCode:e.securityJsCode||"",serviceHost:e.serviceHost||""}}const td="M13.3334375 16 q0.033125 1.1334375 0.783125 1.8834375 q0.75 0.75 1.8834375 0.75 q1.1334375 0 1.8834375 -0.75 q0.75 -0.75 0.75 -1.8834375 q0 -1.1334375 -0.75 -1.8834375 q-0.75 -0.75 -1.8834375 -0.75 q-1.1334375 0 -1.8834375 0.75 q-0.75 0.75 -0.783125 1.8834375 ZM30.9334375 14.9334375 l-1.1334375 0 q-0.5 -5.2 -4.0165625 -8.716875 q-3.516875 -3.5165625 -8.716875 -4.0165625 l0 -1.1334375 q0 -0.4665625 -0.3 -0.7665625 q-0.3 -0.3 -0.7665625 -0.3 q-0.4665625 0 -0.7665625 0.3 q-0.3 0.3 -0.3 0.7665625 l0 1.1334375 q-5.2 0.5 -8.716875 4.0165625 q-3.5165625 3.516875 -4.0165625 8.716875 l-1.1334375 0 q-0.4665625 0 -0.7665625 0.3 q-0.3 0.3 -0.3 0.7665625 q0 0.4665625 0.3 0.7665625 q0.3 0.3 0.7665625 0.3 l1.1334375 0 q0.5 5.2 4.0165625 8.716875 q3.516875 3.5165625 8.716875 4.0165625 l0 1.1334375 q0 0.4665625 0.3 0.7665625 q0.3 0.3 0.7665625 0.3 q0.4665625 0 0.7665625 -0.3 q0.3 -0.3 0.3 -0.7665625 l0 -1.1334375 q5.2 -0.5 8.716875 -4.0165625 q3.5165625 -3.516875 4.0165625 -8.716875 l1.1334375 0 q0.4665625 0 0.7665625 -0.3 q0.3 -0.3 0.3 -0.7665625 q0 -0.4665625 -0.3 -0.7665625 q-0.3 -0.3 -0.7665625 -0.3 ZM17.0665625 27.6665625 l0 -2.0665625 q0 -0.4665625 -0.3 -0.7665625 q-0.3 -0.3 -0.7665625 -0.3 q-0.4665625 0 -0.7665625 0.3 q-0.3 0.3 -0.3 0.7665625 l0 2.0665625 q-4.3 -0.4665625 -7.216875 -3.383125 q-2.916875 -2.916875 -3.3834375 -7.216875 l2.0665625 0 q0.4665625 0 0.7665625 -0.3 q0.3 -0.3 0.3 -0.7665625 q0 -0.4665625 -0.3 -0.7665625 q-0.3 -0.3 -0.7665625 -0.3 l-2.0665625 0 q0.4665625 -4.3 3.3834375 -7.216875 q2.9165625 -2.916875 7.216875 -3.3834375 l0 2.0665625 q0 0.4665625 0.3 0.7665625 q0.3 0.3 0.7665625 0.3 q0.4665625 0 0.7665625 -0.3 q0.3 -0.3 0.3 -0.7665625 l0 -2.0665625 q4.3 0.4665625 7.216875 3.3834375 q2.9165625 2.9165625 3.383125 7.216875 l-2.0665625 0 q-0.4665625 0 -0.7665625 0.3 q-0.3 0.3 -0.3 0.7665625 q0 0.4665625 0.3 0.7665625 q0.3 0.3 0.7665625 0.3 l2.0665625 0 q-0.4665625 4.3 -3.383125 7.216875 q-2.916875 2.9165625 -7.216875 3.383125 Z",nd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAACECAMAAABmmnOVAAAC01BMVEUAAAAAef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef96quGStdqStdpbnujMzMzCyM7Gyc7Ky83MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMwAef8GfP0yjfNWnOp0qOKKsdyYt9mju9aZt9mMstx1qeJYnekyjvIIfP0qivVmouaWttnMzMyat9lppOUujPQKffxhoOfNzc3Y2Njh4eHp6enu7u7y8vL19fXv7+/i4uLZ2dnOzs6auNgOf/sKff15quHR0dHx8fH9/f3////j4+N6quFdn+iywdPb29vw8PD+/v7c3NyywtLa2tr29vbS0tLd3d38/Pzf39/o6Ojc7f+q0v+HwP9rsf9dqv9Hnv9Vpv/q6urj8P+Vx/9Am/8Pgf8Iff/z8/OAvP95uf/n5+c5l//V6f+52v+y1//7+/vt7e0rkP/09PTQ0NDq9P8Whf+cy//W1tbe3t7A3v/m5ubs7OxOov/r6+vk5OQiaPjKAAAAknRSTlMACBZ9oB71/jiqywJBZATT6hBukRXv+zDCAVrkDIf4JbQsTb7eVeJLbwfa8Rh4G/OlPS/6/kxQ9/xdmZudoJxNVhng7B6wtWdzAtQOipcF1329wS44doK/BAkyP1pvgZOsrbnGXArAg34G2IsD1eMRe7bi7k5YnqFT9V0csyPedQyYD3p/Fje+hDpskq/MwpRBC6yKp2MAAAQdSURBVHja7Zn1exMxGIAPHbrhDsPdneHuNtzd3d3dIbjLh93o2o4i7TpgG1Jk0g0mMNwd/gTa5rq129reHnK5e/bk/TFNk/dJ7r5894XjGAwGg8GgTZasCpDIll1+hxw5vXLJLpEboTx5ZXbIhyzkl9fB28cqUaCgrBKFkI3CcjoUKYolihWXUSI7EihRUjaHXF52CVRKLoe8eZIdUOkyMknkRw6UlcehYAFHiXK+skgURk6Ul8OhQjFnCVRRBolKqRxQ5SzUHaqgNGSj7VCmalqJnDkoS5RF6ZCbroNvufQkUD6qEuXTdUA+3hQdqiEXVKfnUKOmK4latalJ1EEuoZZ6162HJ9x/4OChw0eOHj12/MTJU6dxG7XUu751tjNnz4ET5y9ctLZTSr0beKFLl89bpuUDrqgC1RqNWqsKuqqzNFw7e51S6u3tc+OmZUJ9kCHY6ECwOkRvab51iUrqXej2HYDQsHBjWgx3Ae7dppB6N2wEcF9jdMGDUIDGTaR2aNoM9FqjG7QmaN5CWgc/gIePjG559BigpZQOrYB/4jBfRGRUtDkmJjY6KjLCofkpD62lc2gDfMpWPIuLdwyV8XEpHgaddBZ+wBuSFcwJqSN2ovmZ/dfnOvCTxqGtwzq8SEjv4EhISn48eWgnhUP7DvDSvgzxrs6vV6+FLiro2EkCic4QKkzwJsH1KYreCp0eQhfyDl1B/w4P/xa5JVJ4U03QjbRD9x7wXlgH5IE3wmMBHXoSlugFAcI6f/AkkSi8q6HQm6xDn77wEQ8djTwSj3tqAMguRTe4ikeOQyJ4YV+KfkQl+oNW5GbY4gWOWgbwJ+kwAD6Fi90MK2ZsrIeBBCUGwRXbqJ+/iJMQliIEBhOU6AJhtlG/IpHE2bqrYQg5h6HA4yQiRqwEfkGCdTCMmMRw+IbPDCQaHCsCYAQxiZHw3TbmD/ESOHgHwShiEqPhp/gggYkSztIxxCRawy/bmEniJaJtfwiEscQkxkFgRqJESqQwwHhiEuMBp3Vm8RK/cZoHEzKXhCK2QxEPpiJe0YlKCFaKCNv/cYBNUsBRPlkJSc0U+dM7E9H0ThGJbgZT/iR7yj+VqMS06Qr4+OFm2JdCxIa8lugzkJs5K6MfxAaYPUcBpYG5khZJEkUUSb7DPCnKRfPBXj6M8FwuegoLpCgXcQszVjhbJFUJUee2hBhLoYTIcYtB57KY+opSMdVqwatSlZVj05aV//CwJLMX2DluaUcwhXm4ali2XOoLjxUrPV26zFtF4f5p0Gp310+z13BUWNvbehEXona6iAtX/zVZmtfN4WixfsNky4S6gCCVVq3RPLdfSfpv3MRRZfPoLc6Xs/5bt3EyMGzE9h07/Xft2t15z6i9+zgGg8FgMBgMBoPBYDAYDAYj8/APG67Rie8pUDsAAAAASUVORK5CYII=",od="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAACcCAMAAAC3Fl5oAAAB3VBMVEVMaXH/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/EhL/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/Dw//AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/GRn/NTX/Dw//Fhb/AAD/AAD/AAD/GRn/GRn/Y2P/AAD/AAD/ExP/Ghr/AAD/AAD/MzP/GRn/AAD/Hh7/AAD/RUX/AAD/AAD/AAD/AAD/AAD/AAD/Dg7/AAD/HR3/Dw//FRX/SUn/AAD/////kJD/DQ3/Zmb/+/v/wMD/mJj/6en/vb3/1NT//Pz/ODj/+fn/3Nz/nJz/j4//9/f/7e3/9vb/7Oz/2Nj/x8f/Ozv/+Pj/3d3/nZ3/2dn//f3/6Oj/2tr/v7//09P/vr7/mZn/l5cdSvP3AAAAe3RSTlMAAhLiZgTb/vztB/JMRhlp6lQW86g8mQ4KFPs3UCH5U8huwlesWtTYGI7RsdVeJGfTW5rxnutLsvXWF8vQNdo6qQbuz7D4hgVIx2xtw8GC1TtZaIw0i84P98tU0/fsj7PKaAgiZZxeVfo8Z52eg1P0nESrENnjXVPUgw/uuSmDAAADsUlEQVR42u3aZ3cTRxgF4GtbYleSLdnGcsENG2ODjbExEHrvhAQCIb1Bem+QdkeuuFMNBBJIfmuOckzZI8/srHYmH3Lm+QNXK632LTvQ03Tu/IWeU/tTGTKT2n+q58L5c00wpXJd47DHEt5w47pKxLbhdLdPKb/7dBYxVLxw1GcI/2h1BcpzKNFHLX2JQ4gumaiitqpEEhEdOMJI9h5AFC3feYzI+7IF2tpSLEOqDXpObPRYFm/jCWho/4Ble7MdoT7fzhhq9yHEz28wltU1UPrJZ0wd66HwicfYvEFIfePTAP8tSLTupBHvtGJFH9bSkNrNWEHzERrT34xSH9Ogr1CijkbVAUH1KRqVqkdQAw07iIAaGlcTqI+/0LjeJJ5J0IIEnkpXMdzs4sTtW9dnZq7fuj2xOMtwVWk88RHDjBYejYvnjD8qjOpfQsUqhvj7oSjxcJIhVj3pyKqpNjYvVjQ/RrXq5YABKi3MCYm5BSrtWO5v11DlmlC4RpU1WRS9SJU7QukOVbpQ9JLu549+Dd0AUOlTbkGEuk85vxLAK5QbuytC3R2j3HoAjZSbFxrmKTcCoJdSk0LLJKV6gSaPMqNTQsvUKGW8JrxKqUWhaZFSeWyh1LTQNE2pHF6mzOy40DQ+S5mLimJcENoKlOnBWsr8KbRNUGYt5LXgd6HtD3lNQIoyN4S2G5RJIUOZm0LbTcqsBqVmhLYZSlkPsP4VWf+Rrd+m1v9o9h8Vv5p42C1R5qL1x7WRglOgVN52yfwNOBu76P+lLPoYidu23KPciIHGa07ZeIW1jvcNtI7q5vexCPGYCmf+m/Y9a3sAwQ5bI9T7ukPgPcn9GToEao+xk1OixJT+GIsvNAbx6eAgPq0xiF+KtkpYKhRXCQ8eFFcJhSWGu3rZ8jJkCM8kz9K4TUnrC6mAgzTsB9tLwQ2W15qfosQ2GrQNpZr7aczbzVjBZsvLcaC1g0bsbIVEnU8DOr6H1KDH2LwtUBi0/JII6Dxm9zUXkH+XMWzfh1Dte1i2Pe3QkC77Zel7aehpO8wyHG6Dtt0NjKxhN6I4uSli/TqJiJJDUQ4NDCURXTrXRy1XcumyD24M+AzhD1RXIIZsl/LoyZmurJHDM7s8lvB2FQ/PmPJ6PseAXP5HGMYAAC7ABbgAF+ACXIALcAEuwAW4ABfgAlyAC3ABLsAFuID/d8Cx4NEt8/byOf0wLnis8zjMq9/Kp7bWw4JOj8u8TlhRl+G/Mp2wpOX48GffvvZ1CyL4B53LAS6zb08EAAAAAElFTkSuQmCC";var Ne=(e=>(e.QQ="qq",e.GOOGLE="google",e.AMAP="AMap",e.BMAP="BMapGL",e.UNKNOWN="",e))(Ne||{});function ot(){return __uniConfig.bMapKey?{type:"BMapGL",key:__uniConfig.bMapKey}:__uniConfig.qqMapKey?{type:"qq",key:__uniConfig.qqMapKey}:__uniConfig.googleMapKey?{type:"google",key:__uniConfig.googleMapKey}:__uniConfig.aMapKey?{type:"AMap",key:__uniConfig.aMapKey,securityJsCode:__uniConfig.aMapSecurityJsCode,serviceHost:__uniConfig.aMapServiceHost}:{type:"",key:""}}let id=!1,rd=!1;const ue=()=>rd?id:(rd=!0,id=ot().type==="AMap"),ie=()=>ot().type==="BMapGL";function ad(e,t,n){const o=ot(),i=["google"];return e&&e.toUpperCase()==="WGS84"||i.includes(o.type)||n?Promise.resolve(t):o.type==="qq"?new Promise(r=>{Hr(`https://apis.map.qq.com/ws/coord/v1/translate?type=1&locations=${t.latitude},${t.longitude}&key=${o.key}&output=jsonp`,{callback:"callback"},a=>{if("locations"in a&&a.locations.length){const{lng:s,lat:c}=a.locations[0];r({longitude:s,latitude:c,altitude:t.altitude,accuracy:t.accuracy,altitudeAccuracy:t.altitudeAccuracy,heading:t.heading,speed:t.speed})}else r(t)},()=>r(t))}):o.type==="AMap"?new Promise(r=>{Wr([],()=>{window.AMap.convertFrom([t.longitude,t.latitude],"gps",(a,s)=>{if(s.info==="ok"&&s.locations.length){const{lat:c,lng:l}=s.locations[0];r({longitude:l,latitude:c,altitude:t.altitude,accuracy:t.accuracy,altitudeAccuracy:t.altitudeAccuracy,heading:t.heading,speed:t.speed})}else r(t)})})}):Promise.reject(new Error("translate coordinate system faild, map provider not configured or not supported"))}const u1={id:{type:[Number,String],default:""},latitude:{type:[Number,String],require:!0},longitude:{type:[Number,String],require:!0},title:{type:String,default:""},iconPath:{type:String,require:!0},rotate:{type:[Number,String],default:0},alpha:{type:[Number,String],default:1},width:{type:[Number,String],default:""},height:{type:[Number,String],default:""},callout:{type:Object,default:null},label:{type:Object,default:null},anchor:{type:Object,default:null},clusterId:{type:[Number,String],default:""},customCallout:{type:Object,default:null},ariaLabel:{type:String,default:""}};function d1(e){const t="uni-map-marker-label-"+e,n=document.createElement("style");return n.id=t,document.head.appendChild(n),Vue.onUnmounted(()=>{n.remove()}),function(i){const r=Object.assign({},i,{position:"absolute",top:"70px",borderStyle:"solid"}),a=document.createElement("div");return Object.keys(r).forEach(s=>{a.style[s]=r[s]||""}),n.innerText=`.${t}{${a.getAttribute("style")}}`,t}}const sd=ge({name:"MapMarker",props:u1,setup(e){const t=String(isNaN(Number(e.id))?"":e.id),n=Vue.inject("onMapReady"),o=d1(t);let i;function r(){i&&(i.label&&"setMap"in i.label&&i.label.setMap(null),i.callout&&a(i.callout),i.setMap(null))}function a(s){ue()?s.removeAMapText():s.setMap(null)}if(n((s,c,l)=>{function u(h){const g=h.title;let v;ue()?v=new c.LngLat(h.longitude,h.latitude):ie()?v=new c.Point(h.longitude,h.latitude):v=new c.LatLng(h.latitude,h.longitude);const _=new Image;let m=0;_.onload=()=>{const w=h.anchor||{};let C,f,p,S,T=typeof w.x=="number"?w.x:.5,b=typeof w.y=="number"?w.y:1;h.iconPath&&(h.width||h.height)?(f=h.width||_.width/_.height*h.height,p=h.height||_.height/_.width*h.width):(f=_.width/2,p=_.height/2),m=p,S=p-(p-b*p),"MarkerImage"in c?C=new c.MarkerImage(_.src,null,null,new c.Point(T*f,b*p),new c.Size(f,p)):"Icon"in c?C=new c.Icon({image:_.src,size:new c.Size(f,p),imageSize:new c.Size(f,p),imageOffset:new c.Pixel(T*f,b*p)}):C={url:_.src,anchor:new c.Point(T,b),size:new c.Size(f,p)},ie()?(i=new c.Marker(new c.Point(v.lng,v.lat)),s.addOverlay(i)):(i.setPosition(v),i.setIcon(C)),"setRotation"in i&&i.setRotation(h.rotate||0);const A=h.label||{};"label"in i&&(i.label.setMap(null),delete i.label);let N;if(A.content){const M={borderColor:A.borderColor,borderWidth:(Number(A.borderWidth)||0)+"px",padding:(Number(A.padding)||0)+"px",borderRadius:(Number(A.borderRadius)||0)+"px",backgroundColor:A.bgColor,color:A.color,fontSize:(A.fontSize||14)+"px",lineHeight:(A.fontSize||14)+"px",marginLeft:(Number(A.anchorX||A.x)||0)+"px",marginTop:(Number(A.anchorY||A.y)||0)+"px"};if("Label"in c)N=new c.Label({position:v,map:s,clickable:!1,content:A.content,style:M}),i.label=N;else if("setLabel"in i)if(ue()){const F=`<div style="
|
|
5
5
|
margin-left:${M.marginLeft};
|
|
6
6
|
margin-top:${M.marginTop};
|
|
7
7
|
padding:${M.padding};
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
">
|
|
15
15
|
${A.content}
|
|
16
|
-
<div>`;i.setLabel({content:F,direction:"bottom-right"})}else{const F=o(M);i.setLabel({text:A.content,color:M.color,fontSize:M.fontSize,className:F})}}const E=
|
|
17
|
-
`,"<br/>"));const M="0px 0px 3px 1px rgba(0,0,0,0.5)";let F=-v/2;if((f.width||f.height)&&(F+=14-v/2),I=E.content?{position:_,map:s,top:C,offsetY:F,content:E.content,color:E.color,fontSize:E.fontSize,borderRadius:E.borderRadius,bgColor:E.bgColor,padding:E.padding,boxShadow:E.boxShadow||M,display:E.display}:{position:_,map:s,top:C,offsetY:F,content:g,boxShadow:M},V)V.setOption(I);else if(ue()){const k=()=>{t!==""&&c("callouttap",{},{markerId:Number(t)})};V=i.callout=new l.Callout(I,k)}else V=i.callout=new l.Callout(I),V.div.onclick=function(k){t!==""&&c("callouttap",k,{markerId:Number(t)}),k.stopPropagation(),k.preventDefault()},ot().type===Ne.GOOGLE&&(V.div.ontouchstart=function(k){k.stopPropagation()},V.div.onpointerdown=function(k){k.stopPropagation()})}else V&&(a(V),delete i.callout)},f.iconPath?m.src=Q(f.iconPath):console.error("Marker.iconPath is required.")}function d(f){ie()||(i=new l.Marker({map:s,flat:!0,autoRotation:!1})),u(f);const g=l.event||l.Event;ie()||g.addListener(i,"click",()=>{const _=i.callout;if(_&&!_.alwaysVisible){if(ue())_.visible=!_.visible,_.visible?i.callout.createAMapText():i.callout.removeAMapText();else if(_.set("visible",!_.visible),_.visible){const m=_.div,v=m.parentNode;v.removeChild(m),v.appendChild(m)}}t&&c("markertap",{},{markerId:Number(t),latitude:f.latitude,longitude:f.longitude})})}d(e),Vue.watch(e,u)}),t){const s=Vue.inject("addMapChidlContext"),l=Vue.inject("removeMapChidlContext"),c={id:t,translate(u){n((d,f,g)=>{const _=u.destination,m=u.duration,v=!!u.autoRotate;let S=Number(u.rotate)||0,y=0;"getRotation"in i&&(y=i.getRotation());const h=i.getPosition(),p=new f.LatLng(_.latitude,_.longitude),C=f.geometry.spherical.computeDistanceBetween(h,p)/1e3,T=(typeof m=="number"?m:1e3)/(1e3*60*60),w=C/T,A=f.event||f.Event,N=A.addListener(i,"moving",I=>{const M=I.latLng,F=i.label;F&&F.setPosition(M);const k=i.callout;k&&k.setPosition(M)}),E=A.addListener(i,"moveend",()=>{E.remove(),N.remove(),i.lastPosition=h,i.setPosition(p);const I=i.label;I&&I.setPosition(p);const M=i.callout;M&&M.setPosition(p);const F=u.animationEnd;G(F)&&F()});let V=0;v&&(i.lastPosition&&(V=f.geometry.spherical.computeHeading(i.lastPosition,h)),S=f.geometry.spherical.computeHeading(h,p)-V),"setRotation"in i&&i.setRotation(y+S),"moveTo"in i?i.moveTo(p,w):(i.setPosition(p),A.trigger(i,"moveend",{}))})}};s(c),Vue.onUnmounted(()=>l(c))}return Vue.onUnmounted(r),()=>null}});function it(e){if(!e)return{r:0,g:0,b:0,a:0};let t=e.slice(1);const n=t.length;if(![3,4,6,8].includes(n))return{r:0,g:0,b:0,a:0};(n===3||n===4)&&(t=t.replace(/(\w{1})/g,"$1$1"));let[o,i,r,a]=t.match(/(\w{2})/g);const s=parseInt(o,16),l=parseInt(i,16),c=parseInt(r,16);return a?{r:s,g:l,b:c,a:(`0x100${a}`-65536)/255}:{r:s,g:l,b:c,a:1}}const o1=ge({name:"MapPolyline",props:{points:{type:Array,require:!0},color:{type:String,default:"#000000"},width:{type:[Number,String],default:""},dottedLine:{type:[Boolean,String],default:!1},arrowLine:{type:[Boolean,String],default:!1},arrowIconPath:{type:String,default:""},borderColor:{type:String,default:"#000000"},borderWidth:{type:[Number,String],default:""},colorList:{type:Array,default(){return[]}},level:{type:String,default:""}},setup(e){const t=Vue.inject("onMapReady");let n,o;function i(){n&&n.setMap(null),o&&o.setMap(null)}return t((r,a)=>{function s(c){i(),l(c)}function l(c){const u=[];c.points.forEach(w=>{let A;ue()?A=[w.longitude,w.latitude]:ie()?A=new a.Point(w.longitude,w.latitude):A=new a.LatLng(w.latitude,w.longitude),u.push(A)});const d=Number(c.width)||1,{r:f,g,b:_,a:m}=it(c.color),{r:v,g:S,b:y,a:h}=it(c.borderColor),p={map:r,clickable:!1,path:u,strokeWeight:d,strokeColor:c.color||void 0,strokeDashStyle:c.dottedLine?"dash":"solid"},C=Number(c.borderWidth)||0,T={map:r,clickable:!1,path:u,strokeWeight:d+C*2,strokeColor:c.borderColor||void 0,strokeDashStyle:c.dottedLine?"dash":"solid"};"Color"in a?(p.strokeColor=new a.Color(f,g,_,m),T.strokeColor=new a.Color(v,S,y,h)):(p.strokeColor=`rgb(${f}, ${g}, ${_})`,p.strokeOpacity=m,T.strokeColor=`rgb(${v}, ${S}, ${y})`,T.strokeOpacity=h),C&&(o=new a.Polyline(T)),ie()?(n=new a.Polyline(p.path,p),r.addOverlay(n)):n=new a.Polyline(p)}l(e),Vue.watch(e,s)}),Vue.onUnmounted(i),()=>null}}),i1=ge({name:"MapCircle",props:{latitude:{type:[Number,String],require:!0},longitude:{type:[Number,String],require:!0},color:{type:String,default:"#000000"},fillColor:{type:String,default:"#00000000"},radius:{type:[Number,String],require:!0},strokeWidth:{type:[Number,String],default:""},level:{type:String,default:""}},setup(e){const t=Vue.inject("onMapReady");let n;function o(){n&&n.setMap(null)}return t((i,r)=>{function a(l){o(),s(l)}function s(l){const c=ue()||ie()?[l.longitude,l.latitude]:new r.LatLng(l.latitude,l.longitude),u={map:i,center:c,clickable:!1,radius:l.radius,strokeWeight:Number(l.strokeWidth)||1,strokeDashStyle:"solid"};if(ie())u.strokeColor=l.color,u.fillColor=l.fillColor||"#000",u.fillOpacity=1;else{const{r:d,g:f,b:g,a:_}=it(l.fillColor),{r:m,g:v,b:S,a:y}=it(l.color);"Color"in r?(u.fillColor=new r.Color(d,f,g,_),u.strokeColor=new r.Color(m,v,S,y)):(u.fillColor=`rgb(${d}, ${f}, ${g})`,u.fillOpacity=_,u.strokeColor=`rgb(${m}, ${v}, ${S})`,u.strokeOpacity=y)}if(ie()){let d=new r.Point(u.center[0],u.center[1]);n=new r.Circle(d,u.radius,u),i.addOverlay(n)}else n=new r.Circle(u),ue()&&i.add(n)}s(e),Vue.watch(e,a)}),Vue.onUnmounted(o),()=>null}}),r1=ge({name:"MapControl",props:{id:{type:[Number,String],default:""},position:{type:Object,required:!0},iconPath:{type:String,required:!0},clickable:{type:[Boolean,String],default:""},trigger:{type:Function,required:!0}},setup(e){const t=Vue.computed(()=>Q(e.iconPath)),n=Vue.computed(()=>{let i=`top:${e.position.top||0}px;left:${e.position.left||0}px;`;return e.position.width&&(i+=`width:${e.position.width}px;`),e.position.height&&(i+=`height:${e.position.height}px;`),i}),o=i=>{e.clickable&&e.trigger("controltap",i,{controlId:e.id})};return()=>Vue.createVNode("div",{class:"uni-map-control"},[Vue.createVNode("img",{src:t.value,style:n.value,class:"uni-map-control-icon",onClick:o},null,12,["src","onClick"])])}}),a1=ne(()=>{Vl.forEach(e=>{Hr.prototype[e]=function(t){G(t)&&this._events[e].push(t)}}),Vv.forEach(e=>{Hr.prototype[e]=function(t){var n=this._events[e.replace("off","on")],o=n.indexOf(t);o>=0&&n.splice(o,1)}})});class Hr{constructor(){this._src="";var t=this._audio=new Audio;this._stoping=!1,["src","autoplay","loop","duration","currentTime","paused","volume"].forEach(r=>{Object.defineProperty(this,r,{set:r==="src"?a=>(t.src=Q(a),this._src=a,a):a=>(t[r]=a,a),get:r==="src"?()=>this._src:()=>t[r]})}),this.startTime=0,Object.defineProperty(this,"obeyMuteSwitch",{set:()=>!1,get:()=>!1}),Object.defineProperty(this,"buffered",{get(){var r=t.buffered;return r.length?r.end(r.length-1):0}}),this._events={},Vl.forEach(r=>{this._events[r]=[]}),t.addEventListener("loadedmetadata",()=>{var r=Number(this.startTime)||0;r>0&&(t.currentTime=r)});var o=["canplay","pause","seeking","seeked","timeUpdate"],i=o.concat(["play","ended","error","waiting"]);i.forEach(r=>{t.addEventListener(r.toLowerCase(),()=>{if(this._stoping&&o.indexOf(r)>=0)return;const a=`on${r.slice(0,1).toUpperCase()}${r.slice(1)}`;this._events[a].forEach(s=>{s()})},!1)}),a1()}play(){this._stoping=!1,this._audio.play()}pause(){this._audio.pause()}stop(){this._stoping=!0,this._audio.pause(),this._audio.currentTime=0,this._events.onStop.forEach(t=>{t()})}seek(t){this._stoping=!1,t=Number(t),typeof t=="number"&&!isNaN(t)&&(this._audio.currentTime=t)}destroy(){this.stop()}}const id=j(sv,()=>new Hr),rd=R(Gv,({phoneNumber:e},{resolve:t})=>(window.location.href=`tel:${e}`,t())),ad="__DC_STAT_UUID",sd=navigator.cookieEnabled&&(window.localStorage||window.sessionStorage)||{};let Yt;function s1(){if(Yt=Yt||sd[ad],!Yt){Yt=Date.now()+""+Math.floor(Math.random()*1e7);try{sd[ad]=Yt}catch(e){}}return Yt}function l1(){const e=navigator.userAgent,t=e.indexOf("compatible")>-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 r=parseFloat(RegExp.$1);return r>6?r:6}else return n?-1:o?11:-1}function Mn(){if(__uniConfig.darkmode!==!0)return J(__uniConfig.darkmode)?__uniConfig.darkmode:"light";try{return window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}catch(e){return"light"}}function c1(){let e,t="0",n="",o="phone";const i=navigator.language;if(Oc){e="iOS";const d=we.match(/OS\s([\w_]+)\slike/);d&&(t=d[1].replace(/_/g,"."));const f=we.match(/\(([a-zA-Z]+);/);f&&(n=f[1])}else if(Nb){e="Android";const d=we.match(/Android[\s/]([\w\.]+)[;\s]/);d&&(t=d[1]);const f=we.match(/\((.+?)\)/),g=f?f[1].split(";"):we.split(" "),_=[/\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 m=0;m<g.length;m++){const v=g[m];if(v.indexOf("Build")>0){n=v.split("Build")[0].trim();break}let S;for(let y=0;y<_.length;y++)if(_[y].test(v)){S=!0;break}if(!S){n=v.trim();break}}}else if(xb){if(n="iPad",e="iOS",o="pad",t=G(window.BigInt)?"14.0":"13.0",parseInt(t)===14){const d=we.match(/Version\/(\S*)\b/);d&&(t=d[1])}}else if(Cr||Vr||Rc){n="PC",e="PC",o="pc",t="0";let d=we.match(/\((.+?)\)/)[1];if(Cr){switch(e="Windows",Cr[1]){case"5.1":t="XP";break;case"6.0":t="Vista";break;case"6.1":t="7";break;case"6.2":t="8";break;case"6.3":t="8.1";break;case"10.0":t="10";break}const f=d&&d.match(/[Win|WOW]([\d]+)/);f&&(t+=` x${f[1]}`)}else if(Vr){e="macOS";const f=d&&d.match(/Mac OS X (.+)/)||"";t&&(t=f[1].replace(/_/g,"."),t.indexOf(";")!==-1&&(t=t.split(";")[0]))}else if(Rc){e="Linux";const f=d&&d.match(/Linux (.*)/)||"";f&&(t=f[1],t.indexOf(";")!==-1&&(t=t.split(";")[0]))}}else e="Other",t="0",o="unknown";const r=`${e} ${t}`,a=e.toLowerCase();let s="",l=String(l1());if(l!=="-1")s="IE";else{const d=["Version","Firefox","Chrome","Edge{0,1}"],f=["Safari","Firefox","Chrome","Edge"];for(let g=0;g<d.length;g++){const _=d[g],m=new RegExp(`(${_})/(\\S*)\\b`);m.test(we)&&(s=f[g],l=we.match(m)[2])}}let c="portrait";const u=typeof window.screen.orientation=="undefined"?window.orientation:window.screen.orientation.angle;return c=Math.abs(u)===90?"landscape":"portrait",{deviceBrand:void 0,brand:void 0,deviceModel:n,deviceOrientation:c,model:n,system:r,platform:a,browserName:s.toLowerCase(),browserVersion:l,language:i,deviceType:o,ua:we,osname:e,osversion:t,theme:Mn()}}const Wr=j("getWindowInfo",()=>{const e=window.devicePixelRatio,t=Lc(),n=Bc(t),o=Dc(t,n),i=Mb(t,n),r=Uc(o);let a=window.innerHeight;const s=he.top,l={left:he.left,right:r-he.right,top:he.top,bottom:a-he.bottom,width:r-he.left-he.right,height:a-he.top-he.bottom},{top:c,bottom:u}=us();return a-=c,a-=u,{windowTop:c,windowBottom:u,windowWidth:r,windowHeight:a,pixelRatio:e,screenWidth:o,screenHeight:i,statusBarHeight:s,safeArea:l,safeAreaInsets:{top:he.top,right:he.right,bottom:he.bottom,left:he.left},screenTop:i-a}});let Zo,ei=!0;function qr(){ei&&(Zo=c1())}const Gr=j("getDeviceInfo",()=>{qr();const{deviceBrand:e,deviceModel:t,brand:n,model:o,platform:i,system:r,deviceOrientation:a,deviceType:s,osname:l,osversion:c}=Zo;return L({brand:n,deviceBrand:e,deviceModel:t,devicePixelRatio:window.devicePixelRatio,deviceId:s1(),deviceOrientation:a,deviceType:s,model:o,platform:i,system:r,osName:l?l.toLowerCase():void 0,osVersion:c})}),jr=j("getAppBaseInfo",()=>{qr();const{theme:e,language:t,browserName:n,browserVersion:o}=Zo;return L({appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:yo?yo():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:"",uniPlatform:"web",isUniAppX:!1,uniCompileVersion:__uniConfig.compilerVersion,uniCompilerVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion},{})}),Yr=j("getSystemInfoSync",()=>{ei=!0,qr(),ei=!1;const e=Wr(),t=Gr(),n=jr();ei=!0;const{ua:o,browserName:i,browserVersion:r,osname:a,osversion:s}=Zo,l=L(e,t,n,{ua:o,browserName:i,browserVersion:r,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion,fontSizeSetting:void 0,osName:a.toLowerCase(),osVersion:s,osLanguage:void 0,osTheme:void 0});return delete l.screenTop,delete l.enableDebug,__uniConfig.darkmode||delete l.theme,Gg(l)}),ld=R("getSystemInfo",(e,{resolve:t})=>t(Yr())),cd="onNetworkStatusChange";function Xt(){Jr().then(({networkType:e})=>{UniServiceJSBridge.invokeOnCallback(cd,{isConnected:e!=="none",networkType:e})})}function Xr(){return navigator.connection||navigator.webkitConnection||navigator.mozConnection}const ud=ke(cd,()=>{const e=Xr();e?e.addEventListener("change",Xt):(window.addEventListener("offline",Xt),window.addEventListener("online",Xt))}),dd=vt("offNetworkStatusChange",()=>{const e=Xr();e?e.removeEventListener("change",Xt):(window.removeEventListener("offline",Xt),window.removeEventListener("online",Xt))}),Jr=R("getNetworkType",(e,{resolve:t})=>{const n=Xr();let o="unknown";return n?(o=n.type,o==="cellular"&&n.effectiveType?o=n.effectiveType.replace("slow-",""):!o&&n.effectiveType?o=n.effectiveType:["none","wifi"].includes(o)||(o="unknown")):navigator.onLine===!1&&(o="none"),t({networkType:o})});let Jt=null;const fd=ke(cc,()=>{Kr()}),hd=vt(Kv,()=>{Qr()}),Kr=R(Qv,(e,{resolve:t,reject:n})=>{if(!window.DeviceMotionEvent){n();return}function o(){Jt=function(i){const r=i.acceleration||i.accelerationIncludingGravity;UniServiceJSBridge.invokeOnCallback(cc,{x:r&&r.x||0,y:r&&r.y||0,z:r&&r.z||0})},window.addEventListener("devicemotion",Jt,!1)}if(!Jt){if(DeviceMotionEvent.requestPermission){DeviceMotionEvent.requestPermission().then(i=>{i==="granted"?(o(),t()):n(`${i}`)}).catch(i=>{n(`${i}`)});return}o()}t()}),Qr=R(Zv,(e,{resolve:t})=>{Jt&&(window.removeEventListener("devicemotion",Jt,!1),Jt=null),t()});let Kt=null;const Zr=ke(uc,()=>{ta()}),ea=vt(e_,()=>{na()}),ta=R(t_,(e,{resolve:t,reject:n})=>{if(!window.DeviceOrientationEvent){n();return}function o(){Kt=function(i){const r=360-(i.alpha!==null?i.alpha:360);UniServiceJSBridge.invokeOnCallback(uc,{direction:r})},window.addEventListener("deviceorientation",Kt,!1)}if(!Kt){if(DeviceOrientationEvent.requestPermission){DeviceOrientationEvent.requestPermission().then(i=>{i==="granted"?(o(),t()):n(`${i}`)}).catch(i=>{n(`${i}`)});return}o()}t()}),na=R(n_,(e,{resolve:t})=>{Kt&&(window.removeEventListener("deviceorientation",Kt,!1),Kt=null),t()}),gd=!!window.navigator.vibrate,pd=R(o_,(e,{resolve:t,reject:n})=>{gd&&window.navigator.vibrate(15)?t():n("vibrateLong:fail")}),md=R(i_,(e,{resolve:t,reject:n})=>{gd&&window.navigator.vibrate(400)?t():n("vibrateLong:fail")});var vd=(e,t,n)=>new Promise((o,i)=>{var r=l=>{try{s(n.next(l))}catch(c){i(c)}},a=l=>{try{s(n.throw(l))}catch(c){i(c)}},s=l=>l.done?o(l.value):Promise.resolve(l.value).then(r,a);s((n=n.apply(e,t)).next())});const _d=R(jv,(e,t)=>vd(void 0,[e,t],function*(n,{resolve:o,reject:i}){kp();const{t:r}=U();try{const a=yield navigator.clipboard.readText();o({data:a})}catch(a){u1(o,()=>{i(`${a} ${r("uni.getClipboardData.fail")}`)})}})),yd=R(Yv,(e,t)=>vd(void 0,[e,t],function*({data:n},{resolve:o,reject:i}){try{yield navigator.clipboard.writeText(n),o()}catch(r){d1(n,o,i)}}),Jv,Xv);function u1(e,t){const n=document.getElementById("#clipboard"),o=n?n.value:void 0;o?e({data:o}):t()}function d1(e,t,n){const o=document.getElementById("#clipboard");o&&o.remove();const i=document.createElement("textarea");i.setAttribute("inputmode","none"),i.id="#clipboard",i.style.position="fixed",i.style.top="-9999px",i.style.zIndex="-9999",document.body.appendChild(i),i.value=e,i.select(),i.setSelectionRange(0,i.value.length);const r=document.execCommand("Copy",!1);i.blur(),r?t():n()}const bd=e=>{UniServiceJSBridge.invokeOnCallback(Xe,e)},wd=ke(Xe,()=>{UniServiceJSBridge.on(Xe,bd)}),Sd=vt(Pg,()=>{UniServiceJSBridge.off(Xe,bd)}),f1="uni-storage-keys";function h1(e){const t=["object","string","number","boolean","undefined"];try{const n=J(e)?JSON.parse(e):e,o=n.type;if(t.indexOf(o)>=0){const i=Object.keys(n);if(i.length===2&&"data"in n){if(typeof n.data===o)return n.data;if(o==="object"&&/^\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(i.length===1)return""}}catch(n){}}const oa=j(l_,(e,t)=>{const n=typeof t,o=n==="string"?t:JSON.stringify({type:n,data:t});localStorage.setItem(e,o)}),Td=R(s_,({key:e,data:t},{resolve:n,reject:o})=>{try{oa(e,t),n()}catch(i){o(i.message)}});function Cd(e){const t=localStorage&&localStorage.getItem(e);if(!J(t))throw new Error("data not found");let n=t;try{const o=JSON.parse(t),i=h1(o);i!==void 0&&(n=i)}catch(o){}return n}const Vd=j(a_,e=>{try{return Cd(e)}catch(t){return""}}),Ad=R(r_,({key:e},{resolve:t,reject:n})=>{try{const o=Cd(e);t({data:o})}catch(o){n(o.message)}}),ia=j(dc,e=>{localStorage&&localStorage.removeItem(e)}),Ed=R(dc,({key:e},{resolve:t})=>{ia(e),t()}),ra=j("clearStorageSync",()=>{localStorage&&localStorage.clear()}),kd=R("clearStorage",(e,{resolve:t})=>{ra(),t()}),aa=j("getStorageInfoSync",()=>{const e=localStorage&&localStorage.length||0,t=[];let n=0;for(let o=0;o<e;o++){const i=localStorage.key(o),r=localStorage.getItem(i)||"";n+=i.length+r.length,i!==f1&&t.push(i)}return{keys:t,currentSize:Math.ceil(n*2/1024),limitSize:Number.MAX_VALUE}}),Id=R("getStorageInfo",(e,{resolve:t})=>{t(aa())}),Nd=R(c_,({filePath:e},{resolve:t,reject:n})=>{Bo(e).then(o=>{t({size:o.size})}).catch(o=>{n(String(o))})},d_,u_),xd=R(f_,({filePath:e},{resolve:t})=>(window.open(e),t()),g_,h_),Md=R(p_,(e,{resolve:t,reject:n})=>{const o=document.activeElement;o&&(o.tagName==="TEXTAREA"||o.tagName==="INPUT")&&(o.blur(),t())});function g1(){return window.location.protocol+"//"+window.location.host}const Pd=R(P_,({src:e},{resolve:t,reject:n})=>{const o=new Image;o.onload=function(){t({width:o.naturalWidth,height:o.naturalHeight,path:e.indexOf("/")===0?g1()+e:e})},o.onerror=function(){n()},o.src=e},R_,O_),Od=R(F_,({src:e},{resolve:t,reject:n})=>{Bo(e,!0).then(o=>o).catch(()=>null).then(o=>{const i=document.createElement("video");if(i.onloadedmetadata!==void 0){const r=setTimeout(()=>{i.onloadedmetadata=null,i.onerror=null,n()},e.startsWith("data:")||e.startsWith("blob:")?300:3e3);i.onloadedmetadata=function(){clearTimeout(r),i.onerror=null,t({size:Math.ceil((o?o.size:0)/1024),duration:i.duration||0,width:i.videoWidth||0,height:i.videoHeight||0})},i.onerror=function(){clearTimeout(r),i.onloadedmetadata=null,n()},i.src=e}else n()})},z_,$_),p1={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"}},Rd="all";function m1(){const t=window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i);return!!(t&&t[0]==="micromessenger")}function sa({count:e,sourceType:t,type:n,extension:o}){du();const i=document.createElement("input");return i.type="file",bi(i,{position:"absolute",visibility:"hidden",zIndex:"-999",width:"0",height:"0",top:"0",left:"0"}),i.accept=o.map(r=>{if(n!==Rd){const a=r.replace(".","");return`${n}/${p1[n][a]||a}`}else return m1()?".":r.indexOf(".")===0?r:`.${r}`}).join(","),e&&e>1&&(i.multiple=!0),n!==Rd&&t instanceof Array&&t.length===1&&t[0]==="camera"&&i.setAttribute("capture","camera"),i}let rt=null;const Ld=R(I_,({count:e,sourceType:t,type:n,extension:o},{resolve:i,reject:r})=>{Ii();const{t:a}=U();rt&&(document.body.removeChild(rt),rt=null),rt=sa({count:e,sourceType:t,type:n,extension:o}),document.body.appendChild(rt),rt.addEventListener("cancel",()=>{r("chooseFile:fail cancel")}),rt.addEventListener("change",function(s){const l=s.target,c=[];if(l&&l.files){const d=l.files.length;for(let f=0;f<d;f++){const g=l.files[f];let _;Object.defineProperty(g,"path",{get(){return _=_||Ht(g),_}}),f<e&&c.push(g)}}i({get tempFilePaths(){return c.map(({path:d})=>d)},tempFiles:c})}),rt.click(),Nr()||console.warn(a("uni.chooseFile.notUserActivation"))},M_,x_);let at=null;const Bd=R(T_,({count:e,sourceType:t,extension:n},{resolve:o,reject:i})=>{Ii();const{t:r}=U();at&&(document.body.removeChild(at),at=null),at=sa({count:e,sourceType:t,extension:n,type:"image"}),document.body.appendChild(at),at.addEventListener("cancel",()=>{i("chooseImage:fail cancel")}),at.addEventListener("change",function(a){const s=a.target,l=[];if(s&&s.files){const u=s.files.length;for(let d=0;d<u;d++){const f=s.files[d];let g;Object.defineProperty(f,"path",{get(){return g=g||Ht(f),g}}),d<e&&l.push(f)}}o({get tempFilePaths(){return l.map(({path:u})=>u)},tempFiles:l})}),at.click(),Nr()||console.warn(r("uni.chooseFile.notUserActivation"))},V_,C_),Dd={esc:["Esc","Escape"],enter:["Enter"]},v1=Object.keys(Dd);function ti(){const e=Vue.ref(""),t=Vue.ref(!1),n=o=>{if(t.value)return;const i=v1.find(r=>Dd[r].indexOf(o.key)!==-1);i&&(e.value=i),Vue.nextTick(()=>e.value="")};return Vue.onMounted(()=>{document.addEventListener("keyup",n)}),Vue.onBeforeUnmount(()=>{document.removeEventListener("keyup",n)}),{key:e,disable:t}}const _1=Vue.createVNode("div",{class:"uni-mask"},null,-1);function Qt(e,t,n){return t.onClose=(...o)=>(t.visible=!1,n.apply(null,o)),Vue.createApp(Vue.defineComponent({setup(){return()=>(Vue.openBlock(),Vue.createBlock(e,t,null,16))}}))}function Zt(e){let t=document.getElementById(e);return t||(t=document.createElement("div"),t.id=e,document.body.append(t)),t}function Ud(e,{onEsc:t,onEnter:n}){const o=Vue.ref(e.visible),{key:i,disable:r}=ti();return Vue.watch(()=>e.visible,a=>o.value=a),Vue.watch(()=>o.value,a=>r.value=!a),Vue.watchEffect(()=>{const{value:a}=i;a==="esc"?t&&t():a==="enter"&&n&&n()}),o}let Pn=0,la="";function Fd(e){let t=Pn;Pn+=e?1:-1,Pn=Math.max(0,Pn),Pn>0?t===0&&(la=document.body.style.overflow,document.body.style.overflow="hidden"):(document.body.style.overflow=la,la="")}function ca(){Vue.onMounted(()=>Fd(!0)),Vue.onUnmounted(()=>Fd(!1))}const y1=ge({name:"ImageView",props:{src:{type:String,default:""}},setup(e){const t=Vue.reactive({direction:"none"});let n=1,o=0,i=0,r=0,a=0;function s({detail:f}){n=f.scale}function l(f){const _=f.target.getBoundingClientRect();o=_.width,i=_.height}function c(f){const _=f.target.getBoundingClientRect();r=_.width,a=_.height,d(f)}function u(f){const g=n*o>r,_=n*i>a;g&&_?t.direction="all":g?t.direction="horizontal":_?t.direction="vertical":t.direction="none",d(f)}function d(f){(t.direction==="all"||t.direction==="horizontal")&&f.stopPropagation()}return()=>{const f={position:"absolute",left:"0",top:"0",width:"100%",height:"100%"};return Vue.createVNode(_u,{style:f,onTouchstart:oe(c),onTouchmove:oe(d),onTouchend:oe(u)},{default:()=>[Vue.createVNode(Tu,{style:f,direction:t.direction,inertia:!0,scale:!0,"scale-min":"1","scale-max":"4",onScale:s},{default:()=>[Vue.createVNode("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 b1(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const w1={urls:{type:Array,default(){return[]}},current:{type:[Number,String],default:0}};function $d(e){let t=typeof e.current=="number"?e.current:e.urls.indexOf(e.current);return t=t<0?0:t,t}const S1=ge({name:"ImagePreview",props:w1,emits:["close"],setup(e,{emit:t}){ca();const{key:n}=ti(),o=Vue.ref(null),i=Vue.ref($d(e));Vue.watch(()=>e.current,()=>i.value=$d(e)),Vue.watch(()=>n.value,c=>{c==="esc"&&a()});let r;Vue.onMounted(()=>{const c=o.value,u=20;let d=0,f=0;c.addEventListener("mousedown",g=>{r=!1,d=g.clientX,f=g.clientY}),c.addEventListener("mouseup",g=>{(Math.abs(g.clientX-d)>u||Math.abs(g.clientY-f)>u)&&(r=!0)})});function a(){r||Vue.nextTick(()=>{t("close")})}function s(c){i.value=c.detail.current}const l={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 c;return Vue.createVNode("div",{ref:o,style:{display:"block",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",zIndex:999,background:"rgba(0,0,0,0.8)"},onClick:a},[Vue.createVNode(Bu,{navigation:"auto",current:i.value,onChange:s,"indicator-dots":!1,autoplay:!1,style:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%"}},b1(c=e.urls.map(u=>Vue.createVNode(Du,null,{default:()=>[Vue.createVNode(y1,{src:u},null,8,["src"])]})))?c:{default:()=>[c],_:1},8,["current","onChange"]),Vue.createVNode("div",{style:l},[ce(Pi,"#ffffff",26)],4)],8,["onClick"])}}});let On=null,en;const zd=()=>{On=null,Vue.nextTick(()=>{en==null||en.unmount(),en=null})},Hd=R(L_,(e,{resolve:t})=>{On?L(On,e):(On=Vue.reactive(e),Vue.nextTick(()=>{en=Qt(S1,On,zd),en.mount(Zt("u-a-p"))})),t()},D_,B_),Wd=R(U_,(e,{resolve:t,reject:n})=>{en?(zd(),t()):n()});let st=null;const qd=R(A_,({sourceType:e,extension:t},{resolve:n,reject:o})=>{Ii();const{t:i}=U();st&&(document.body.removeChild(st),st=null),st=sa({sourceType:e,extension:t,type:"video"}),document.body.appendChild(st),st.addEventListener("cancel",()=>{o("chooseVideo:fail cancel")}),st.addEventListener("change",function(r){const s=r.target.files[0];let l="";const c={tempFilePath:l,tempFile:s,size:s.size,duration:0,width:0,height:0,name:s.name};Object.defineProperty(c,"tempFilePath",{get(){return l=l||Ht(this.tempFile),l}});const u=document.createElement("video");if(u.onloadedmetadata!==void 0){const d=Ht(s);u.onloadedmetadata=function(){Wc(d),n(L(c,{duration:u.duration||0,width:u.videoWidth||0,height:u.videoHeight||0}))},setTimeout(()=>{u.onloadedmetadata=null,Wc(d),n(c)},300),u.src=d}else n(c)}),st.click(),Nr()||console.warn(i("uni.chooseFile.notUserActivation"))},k_,E_),ua=po(H_,({url:e,data:t,header:n={},method:o,dataType:i,responseType:r,enableChunked:a,withCredentials:s,timeout:l=__uniConfig.networkTimeout.request},{resolve:c,reject:u})=>{let d=null;const f=V1(n);if(o!=="GET")if(J(t)||t instanceof ArrayBuffer)d=t;else if(f==="json")try{d=JSON.stringify(t)}catch(_){d=t.toString()}else if(f==="urlencoded"){const _=[];for(const m in t)ae(t,m)&&_.push(encodeURIComponent(m)+"="+encodeURIComponent(t[m]));d=_.join("&")}else d=t.toString();let g;if(a){if(typeof window.fetch===void 0||typeof window.AbortController===void 0)throw new Error("fetch or AbortController is not supported in this environment");const _=new AbortController,m=_.signal;g=new Gd(_);const v={method:o,headers:n,body:d,signal:m,credentials:s?"include":"same-origin"},S=setTimeout(function(){g.abort(),u("timeout",{errCode:5})},l);v.signal.addEventListener("abort",function(){clearTimeout(S),u("abort",{errCode:600003})}),window.fetch(e,v).then(y=>{const h=y.status,p=y.headers,C=y.body,T={};p.forEach((V,I)=>{T[I]=V});const w=T1(T);if(g._emitter.emit("headersReceived",{header:T,statusCode:h,cookies:w}),!C){c({data:"",statusCode:h,header:T,cookies:w});return}const A=C.getReader(),N=[],E=()=>{A.read().then(({done:V,value:I})=>{if(V){const F=C1(N);let k=r==="text"?new TextDecoder().decode(F):F;r==="text"&&(k=jd(k,r,i)),c({data:k,statusCode:h,header:T,cookies:w});return}const M=I;N.push(M),g._emitter.emit("chunkReceived",{data:M}),E()})};E()},y=>{u(y,{errCode:5})})}else{const _=new XMLHttpRequest;g=new Gd(_),_.open(o,e);for(const v in n)ae(n,v)&&_.setRequestHeader(v,n[v]);const m=setTimeout(function(){_.onload=_.onabort=_.onerror=null,g.abort(),u("timeout",{errCode:5})},l);_.responseType=r,_.onload=function(){clearTimeout(m);const v=_.status;let S=r==="text"?_.responseText:_.response;r==="text"&&(S=jd(S,r,i)),c({data:S,statusCode:v,header:A1(_.getAllResponseHeaders()),cookies:[]})},_.onabort=function(){clearTimeout(m),u("abort",{errCode:600003})},_.onerror=function(){clearTimeout(m),u(void 0,{errCode:5})},_.withCredentials=s,_.send(d)}return g},Y_,X_),T1=e=>{let t=e["Set-Cookie"]||e["set-cookie"],n=[];if(!t)return[];t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1));const o=t.split(";");for(let i=0;i<o.length;i++)o[i].indexOf("Expires=")!==-1||o[i].indexOf("expires=")!==-1?n.push(o[i].replace(",","")):n.push(o[i]);return n=n.join(";").split(","),n};function C1(e){const t=e.reduce((i,r)=>i+r.byteLength,0),n=new Uint8Array(t);let o=0;for(const i of e)n.set(new Uint8Array(i),o),o+=i.byteLength;return n.buffer}function V1(e){const t=Object.keys(e).find(o=>o.toLowerCase()==="content-type");if(!t)return;const n=e[t];return n.indexOf("application/json")===0?"json":n.indexOf("application/x-www-form-urlencoded")===0?"urlencoded":"string"}class Gd{constructor(t){this._requestOnChunkReceiveCallbackId=0,this._requestOnChunkReceiveCallbacks=new Map,this._requestOnHeadersReceiveCallbackId=0,this._requestOnHeadersReceiveCallbacks=new Map,this._emitter=new Ai,this._controller=t}abort(){this._controller&&(this._controller.abort(),delete this._controller)}onHeadersReceived(t){return this._emitter.on("headersReceived",t),this._requestOnHeadersReceiveCallbackId++,this._requestOnHeadersReceiveCallbacks.set(this._requestOnHeadersReceiveCallbackId,t),this._requestOnHeadersReceiveCallbackId}offHeadersReceived(t){if(t==null){this._emitter.off("headersReceived");return}if(typeof t=="function"){this._requestOnHeadersReceiveCallbacks.forEach((o,i)=>{o===t&&(this._requestOnHeadersReceiveCallbacks.delete(i),this._emitter.off("headersReceived",t))});return}const n=this._requestOnHeadersReceiveCallbacks.get(t);n&&(this._requestOnHeadersReceiveCallbacks.delete(t),this._emitter.off("headersReceived",n))}onChunkReceived(t){return this._emitter.on("chunkReceived",t),this._requestOnChunkReceiveCallbackId++,this._requestOnChunkReceiveCallbacks.set(this._requestOnChunkReceiveCallbackId,t),this._requestOnChunkReceiveCallbackId}offChunkReceived(t){if(t==null){this._emitter.off("chunkReceived");return}if(typeof t=="function"){this._requestOnChunkReceiveCallbacks.forEach((o,i)=>{o===t&&(this._requestOnChunkReceiveCallbacks.delete(i),this._emitter.off("chunkReceived",t))});return}const n=this._requestOnChunkReceiveCallbacks.get(t);n&&(this._requestOnChunkReceiveCallbacks.delete(t),this._emitter.off("chunkReceived",n))}}function A1(e){const t={};return e.split(kt).forEach(n=>{const o=n.match(/(\S+\s*):\s*(.*)/);!o||o.length!==3||(t[o[1]]=o[2])}),t}function jd(e,t,n){let o=e;if(t==="text"&&n==="json")try{o=JSON.parse(o)}catch(i){}return o}class E1{constructor(t){this._callbacks=[],this._xhr=t}onProgressUpdate(t){G(t)&&this._callbacks.push(t)}offProgressUpdate(t){const n=this._callbacks.indexOf(t);n>=0&&this._callbacks.splice(n,1)}abort(){this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(t){throw new Error("Method not implemented.")}offHeadersReceived(t){throw new Error("Method not implemented.")}}const Yd=po(J_,({url:e,header:t={},timeout:n=__uniConfig.networkTimeout.downloadFile},{resolve:o,reject:i})=>{var r,a=new XMLHttpRequest,s=new E1(a);return a.open("GET",e,!0),Object.keys(t).forEach(l=>{a.setRequestHeader(l,t[l])}),a.responseType="blob",a.onload=function(){clearTimeout(r);const l=a.status,c=this.response;let u;const d=a.getResponseHeader("content-disposition");if(d){const f=d.match(/filename="?(\S+)"?\b/);f&&(u=f[1])}c.name=u||jb(e),o({statusCode:l,tempFilePath:Ht(c)})},a.onabort=function(){clearTimeout(r),i("abort",{errCode:600003})},a.onerror=function(){clearTimeout(r),i("",{errCode:602001})},a.onprogress=function(l){s._callbacks.forEach(c=>{var u=l.loaded,d=l.total,f=Math.round(u/d*100);c({progress:f,totalBytesWritten:u,totalBytesExpectedToWrite:d})})},a.send(),r=setTimeout(function(){a.onprogress=a.onload=a.onabort=a.onerror=null,s.abort(),i("timeout",{errCode:5})},n),s},Q_,K_);class k1{constructor(t){this._callbacks=[],this._xhr=t}onProgressUpdate(t){G(t)&&this._callbacks.push(t)}offProgressUpdate(t){const n=this._callbacks.indexOf(t);n>=0&&this._callbacks.splice(n,1)}abort(){this._isAbort=!0,this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(t){throw new Error("Method not implemented.")}offHeadersReceived(t){throw new Error("Method not implemented.")}}const Xd=po(Z_,({url:e,file:t,filePath:n,name:o,files:i,header:r={},formData:a={},timeout:s=__uniConfig.networkTimeout.uploadFile},{resolve:l,reject:c})=>{var u=new k1;(!K(i)||!i.length)&&(i=[{name:o,file:t,uri:n}]);function d(f){var g=new XMLHttpRequest,_=new FormData,m;Object.keys(a).forEach(v=>{_.append(v,a[v])}),Object.values(i).forEach(({name:v},S)=>{const y=f[S];_.append(v||"file",y,y.name||`file-${Date.now()}`)}),g.open("POST",e),Object.keys(r).forEach(v=>{g.setRequestHeader(v,r[v])}),g.upload.onprogress=function(v){u._callbacks.forEach(S=>{var y=v.loaded,h=v.total,p=Math.round(y/h*100);S({progress:p,totalBytesSent:y,totalBytesExpectedToSend:h})})},g.onerror=function(){clearTimeout(m),c("",{errCode:602001})},g.onabort=function(){clearTimeout(m),c("abort",{errCode:600003})},g.onload=function(){clearTimeout(m);const v=g.status;l({statusCode:v,data:g.responseText||g.response})},u._isAbort?c("abort",{errCode:600003}):(m=setTimeout(function(){g.upload.onprogress=g.onload=g.onabort=g.onerror=null,u.abort(),c("timeout",{errCode:5})},s),g.send(_),u._xhr=g)}return Promise.all(i.map(({file:f,uri:g})=>f instanceof Blob?Promise.resolve(Hc(f)):Bo(g))).then(d).catch(()=>{setTimeout(()=>{c("file error")},0)}),u},ty,ey),tn=[],da={open:"",close:"",error:"",message:""};class I1{constructor(t,n,o){this._callbacks={open:[],close:[],error:[],message:[]};let i;try{const r=this._webSocket=new WebSocket(t,n);r.binaryType="arraybuffer",["open","close","error","message"].forEach(l=>{this._callbacks[l]=[],r.addEventListener(l,c=>{const{data:u,code:d,reason:f}=c,g=l==="message"?{data:u}:l==="close"?{code:d,reason:f}:{};if(this._callbacks[l].forEach(_=>{try{_(g)}catch(m){console.error(`thirdScriptError
|
|
18
|
-
${
|
|
19
|
-
`,m)}}),this===tn[0]&&da[l]&&UniServiceJSBridge.invokeOnCallback(da[l],g),l==="error"||l==="close"){const _=tn.indexOf(this);_>=0&&tn.splice(_,1)}})}),["CLOSED","CLOSING","CONNECTING","OPEN","readyState"].forEach(l=>{Object.defineProperty(this,l,{get(){return r[l]}})})}catch(r){i=r}o&&o(i,this)}send(t){const n=(t||{}).data,o=this._webSocket;try{if(o.readyState!==o.OPEN)throw ye(t,{errMsg:"sendSocketMessage:fail SocketTask.readyState is not OPEN",errCode:10002}),new Error("SocketTask.readyState is not OPEN");o.send(n),ye(t,"sendSocketMessage:ok")}catch(i){ye(t,{errMsg:`sendSocketMessage:fail ${i}`,errCode:602001})}}close(t={}){const n=this._webSocket;try{const o=t.code||1e3,i=t.reason;J(i)?n.close(o,i):n.close(o),ye(t,"closeSocket:ok")}catch(o){ye(t,`closeSocket:fail ${o}`)}}onOpen(t){this._callbacks.open.push(t)}onMessage(t){this._callbacks.message.push(t)}onError(t){this._callbacks.error.push(t)}onClose(t){this._callbacks.close.push(t)}}const Jd=po(ny,({url:e,protocols:t},{resolve:n,reject:o})=>new I1(e,t,(i,r)=>{if(i){o(i.toString(),{errCode:600009});return}tn.push(r),n()}),iy,oy);function Kd(e,t,n,o,i){const r=e[t];G(r)&&r.call(e,L({},n,{success(){o()},fail({errMsg:a}){i(a.replace("sendSocketMessage:fail ",""))},complete:void 0}))}const Qd=R(ry,(e,{resolve:t,reject:n})=>{const o=tn[0];o&&o.readyState===o.OPEN?Kd(o,"send",e,t,n):n("WebSocket is not connected")}),Zd=R(ay,(e,{resolve:t,reject:n})=>{const o=tn[0];o?Kd(o,"close",e,t,n):n("WebSocket is not connected")});function ni(e){const t=`onSocket${pi(e)}`;return ke(t,()=>{da[e]=t})}const ef=ni("open"),tf=ni("error"),nf=ni("message"),of=ni("close"),Rn=R(v_,({type:e,altitude:t,highAccuracyExpireTime:n,isHighAccuracy:o},{resolve:i,reject:r})=>{const a=ot();new Promise((s,l)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(c=>s({coords:c.coords}),l,{enableHighAccuracy:o||t,timeout:n||1e3*100}):l(new Error("device nonsupport geolocation"))}).catch(s=>new Promise((l,c)=>{a.type===Ne.QQ?$r(`https://apis.map.qq.com/ws/location/v1/ip?output=jsonp&key=${a.key}`,{callback:"callback"},u=>{if("result"in u&&u.result.location){const d=u.result.location;l({coords:{latitude:d.lat,longitude:d.lng},skip:!0})}else c(new Error(u.message||JSON.stringify(u)))},()=>c(new Error("network error"))):a.type===Ne.GOOGLE?ua({method:"POST",url:`https://www.googleapis.com/geolocation/v1/geolocate?key=${a.key}`,success(u){const d=u.data;"location"in d?l({coords:{latitude:d.location.lat,longitude:d.location.lng,accuracy:d.accuracy},skip:!0}):c(new Error(d.error&&d.error.message||JSON.stringify(u)))},fail(){c(new Error("network error"))}}):a.type===Ne.AMAP?zr([],()=>{window.AMap.plugin("AMap.Geolocation",()=>{new window.AMap.Geolocation({enableHighAccuracy:!0,timeout:1e4}).getCurrentPosition((d,f)=>{d==="complete"?l({coords:{latitude:f.position.lat,longitude:f.position.lng,accuracy:f.accuracy},skip:!0}):c(new Error(f.message))})})}):c(s)})).then(({coords:s,skip:l})=>{nd(e,s,l).then(c=>{i({latitude:c.latitude,longitude:c.longitude,accuracy:c.accuracy,speed:c.altitude||0,altitude:c.altitude||0,verticalAccuracy:c.altitudeAccuracy||0,horizontalAccuracy:c.accuracy||0})}).catch(c=>{r(c.message)})}).catch(s=>{r(s.message||JSON.stringify(s))})},y_,__),N1="M28 17c-6.49396875 0-12.13721875 2.57040625-15 6.34840625V5.4105l6.29859375 6.29859375c0.387875 0.387875 1.02259375 0.387875 1.4105 0 0.387875-0.387875 0.387875-1.02259375 0-1.4105L12.77853125 2.36803125a0.9978125 0.9978125 0 0 0-0.0694375-0.077125c-0.1944375-0.1944375-0.45090625-0.291375-0.70721875-0.290875l-0.00184375-0.0000625-0.00184375 0.0000625c-0.2563125-0.0005-0.51278125 0.09640625-0.70721875 0.290875a0.9978125 0.9978125 0 0 0-0.0694375 0.077125l-7.930625 7.9305625c-0.387875 0.387875-0.387875 1.02259375 0 1.4105 0.387875 0.387875 1.02259375 0.387875 1.4105 0L11 5.4105V29c0 0.55 0.45 1 1 1s1-0.45 1-1c0-5.52284375 6.71571875-10 15-10 0.55228125 0 1-0.44771875 1-1 0-0.55228125-0.44771875-1-1-1z",x1={latitude:{type:Number},longitude:{type:Number},scale:{type:Number,default:18},name:{type:String,default:""},address:{type:String,default:""}};function M1(e){const t=Vue.reactive({center:{latitude:0,longitude:0},marker:{id:1,latitude:0,longitude:0,iconPath:Zu,width:32,height:52},location:{id:2,latitude:0,longitude:0,iconPath:Qu,width:44,height:44}});function n(){e.latitude&&e.longitude&&(t.center.latitude=e.latitude,t.center.longitude=e.longitude,t.marker.latitude=e.latitude,t.marker.longitude=e.longitude)}return Vue.watch([()=>e.latitude,()=>e.longitude],n),n(),t}const P1=ge({name:"LocationView",props:x1,emits:["close"],setup(e,{emit:t}){const n=M1(e);ca(),Rn({type:"gcj02",success:({latitude:s,longitude:l})=>{n.location.latitude=s,n.location.longitude=l}});function o(s){const l=s.detail.centerLocation;l&&(n.center.latitude=l.latitude,n.center.longitude=l.longitude)}function i(){const s=ot();let l="";s.type===Ne.GOOGLE?l=`https://www.google.com/maps/dir/?api=1${n.location.latitude?`&origin=${n.location.latitude}%2C${n.location.longitude}`:""}&destination=${e.latitude}%2C${e.longitude}`:s.type===Ne.QQ?l=`https://apis.map.qq.com/uri/v1/routeplan?type=drive${n.location.latitude?`&fromcoord=${n.location.latitude}%2C${n.location.longitude}&from=${encodeURIComponent("我的位置")}`:""}&tocoord=${e.latitude}%2C${e.longitude}&to=${encodeURIComponent(e.name||"目的地")}&ref=${s.key}`:s.type===Ne.AMAP&&(l=`https://uri.amap.com/navigation?${n.location.latitude?`from=${n.location.longitude},${n.location.latitude},${encodeURIComponent("我的位置")}&`:""}to=${e.longitude},${e.latitude},${encodeURIComponent(e.name||"目的地")}`),window.open(l)}function r(){t("close")}function a({latitude:s,longitude:l}){n.center.latitude=s,n.center.longitude=l}return()=>Vue.createVNode("div",{class:"uni-system-open-location"},[Vue.createVNode(ya,{latitude:n.center.latitude,longitude:n.center.longitude,class:"map",markers:[n.marker,n.location],onRegionchange:o},{default:()=>[Vue.createVNode("div",{class:"map-move",onClick:()=>a(n.location)},[ce(Ku,"#000000",24)],8,["onClick"])]},8,["latitude","longitude","markers","onRegionchange"]),Vue.createVNode("div",{class:"info"},[Vue.createVNode("div",{class:"name",onClick:()=>a(n.marker)},[e.name],8,["onClick"]),Vue.createVNode("div",{class:"address",onClick:()=>a(n.marker)},[e.address],8,["onClick"]),Vue.createVNode("div",{class:"nav",onClick:i},[ce(N1,"#ffffff",26)],8,["onClick"])]),Vue.createVNode("div",{class:"nav-btn-back",onClick:r},[ce(gn,"#ffffff",26)],8,["onClick"])])}});let Ln=null;const rf=R(b_,(e,{resolve:t})=>{Ln?L(Ln,e):(Ln=Vue.reactive(e),Vue.nextTick(()=>{const n=Qt(P1,Ln,()=>{Ln=null,Vue.nextTick(()=>{n.unmount()})});n.mount(Zt("u-a-o"))})),t()},S_,w_);function O1(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const R1={latitude:{type:Number},longitude:{type:Number}};function L1(e){return e>100?`${e>1e3?(e/1e3).toFixed(1)+"k":e.toFixed(0)}m | `:e>0?"<100m | ":""}function B1(e){const t=Vue.reactive({latitude:0,longitude:0,keyword:"",searching:!1});function n(){e.latitude&&e.longitude&&(t.latitude=e.latitude,t.longitude=e.longitude)}return Vue.watch([()=>e.latitude,()=>e.longitude],n),n(),t}function D1(e){const t=__uniConfig.qqMapKey,n=Vue.reactive([]),o=Vue.ref(-1),i=Vue.computed(()=>n[o.value]),r=Vue.reactive({loading:!0,pageSize:20,pageIndex:1,hasNextPage:!0,nextPage:null,selectedIndex:o,selected:i}),a=Vue.ref(""),s=Vue.computed(()=>a.value?`region(${a.value},1,${e.latitude},${e.longitude})`:`nearby(${e.latitude},${e.longitude},5000)`);function l(f){f.forEach(g=>{n.push({name:g.title||g.name,address:g.address,distance:g._distance||g.distance,latitude:g.location.lat,longitude:g.location.lng})})}function c(){r.loading=!0;const f=ot();if(f.type===Ne.GOOGLE){if(r.pageIndex>1&&r.nextPage){r.nextPage();return}new google.maps.places.PlacesService(document.createElement("div"))[e.searching?"textSearch":"nearbySearch"]({location:{lat:e.latitude,lng:e.longitude},query:e.keyword,radius:5e3},(_,m,v)=>{r.loading=!1,_&&_.length&&_.forEach(S=>{n.push({name:S.name||"",address:S.vicinity||S.formatted_address||"",distance:0,latitude:S.geometry.location.lat(),longitude:S.geometry.location.lng()})}),v&&(v.hasNextPage?r.nextPage=()=>{v.nextPage()}:r.hasNextPage=!1)})}else if(f.type===Ne.QQ){const g=e.searching?`https://apis.map.qq.com/ws/place/v1/search?output=jsonp&key=${t}&boundary=${s.value}&keyword=${e.keyword}&page_size=${r.pageSize}&page_index=${r.pageIndex}`:`https://apis.map.qq.com/ws/geocoder/v1/?output=jsonp&key=${t}&location=${e.latitude},${e.longitude}&get_poi=1&poi_options=page_size=${r.pageSize};page_index=${r.pageIndex}`;$r(g,{callback:"callback"},_=>{if(r.loading=!1,e.searching&&"data"in _&&_.data.length)l(_.data);else if("result"in _){const m=_.result;a.value=m.ad_info?m.ad_info.adcode:"",m.pois&&l(m.pois)}n.length===r.pageSize*r.pageIndex&&(r.hasNextPage=!1)},()=>{r.loading=!1})}else f.type===Ne.AMAP&&window.AMap.plugin("AMap.PlaceSearch",function(){const g=new window.AMap.PlaceSearch({city:"全国",pageSize:10,pageIndex:r.pageIndex}),_=e.searching?e.keyword:"",m=e.searching?5e4:5e3;g.searchNearBy(_,[e.longitude,e.latitude],m,function(v,S){v==="error"?console.error(S):v==="no_data"?r.hasNextPage=!1:l(S.poiList.pois)}),r.loading=!1})}function u(){!r.loading&&r.hasNextPage&&(r.pageIndex++,c())}function d(){r.selectedIndex=-1,r.pageIndex=1,r.hasNextPage=!0,r.nextPage=null,n.splice(0,n.length)}return{listState:r,list:n,loadMore:u,reset:d,getList:c}}const U1=ge({name:"LoctaionPicker",props:R1,emits:["close"],setup(e,{emit:t}){ca(),xp();const{t:n}=U(),o=B1(e),{list:i,listState:r,loadMore:a,reset:s,getList:l}=D1(o),c=Ci(()=>{s(),o.keyword&&l()},1e3,{setTimeout,clearTimeout});Vue.watch(()=>o.searching,v=>{s(),v||l()});function u(v){o.keyword=v.detail.value,c()}function d(){t("close",L({},r.selected))}function f(){t("close")}function g(v){const S=v.detail.centerLocation;S&&m(S)}function _(){Rn({type:"gcj02",success:m,fail:()=>{}})}function m({latitude:v,longitude:S}){o.latitude=v,o.longitude=S,o.searching||(s(),l())}return(!o.latitude||!o.longitude)&&_(),()=>{const v=i.map((S,y)=>Vue.createVNode("div",{key:y,class:{"list-item":!0,selected:r.selectedIndex===y},onClick:()=>{r.selectedIndex=y,o.latitude=S.latitude,o.longitude=S.longitude}},[ce(ms,"#007aff",24),Vue.createVNode("div",{class:"list-item-title"},[S.name]),Vue.createVNode("div",{class:"list-item-detail"},[L1(S.distance),S.address])],10,["onClick"]));return r.loading&&v.unshift(Vue.createVNode("div",{class:"list-loading"},[Vue.createVNode("i",{class:"uni-loading"},null)])),Vue.createVNode("div",{class:"uni-system-choose-location"},[Vue.createVNode(ya,{latitude:o.latitude,longitude:o.longitude,class:"map","show-location":!0,libraries:["places"],onUpdated:l,onRegionchange:g},{default:()=>[Vue.createVNode("div",{class:"map-location",style:`background-image: url("${Zu}")`},null),Vue.createVNode("div",{class:"map-move",onClick:_},[ce(Ku,"#000000",24)],8,["onClick"])],_:1},8,["latitude","longitude","show-location","onUpdated","onRegionchange"]),Vue.createVNode("div",{class:"nav"},[Vue.createVNode("div",{class:"nav-btn back",onClick:f},[ce(Pi,"#ffffff",26)],8,["onClick"]),Vue.createVNode("div",{class:{"nav-btn":!0,confirm:!0,disable:!r.selected},onClick:d},[ce(ms,"#ffffff",26)],10,["onClick"])]),Vue.createVNode("div",{class:"menu"},[Vue.createVNode("div",{class:"search"},[Vue.createVNode(Ho,{value:o.keyword,class:"search-input",placeholder:n("uni.chooseLocation.search"),onFocus:()=>o.searching=!0,onInput:u},null,8,["value","placeholder","onFocus","onInput"]),o.searching&&Vue.createVNode("div",{class:"search-btn",onClick:()=>{o.searching=!1,o.keyword=""}},[n("uni.chooseLocation.cancel")],8,["onClick"])]),Vue.createVNode(Lu,{"scroll-y":!0,class:"list",onScrolltolower:a},O1(v)?v:{default:()=>[v],_:2},8,["scroll-y","onScrolltolower"])])])}}});let oi=null;const af=R(m_,(e,{resolve:t,reject:n})=>{oi?n("cancel"):(oi=Vue.reactive(e),Vue.nextTick(()=>{const o=Qt(U1,oi,i=>{oi=null,Vue.nextTick(()=>{o.unmount()}),i?t(i):n("cancel")});o.mount(Zt("u-a-c"))}))});let ii=!1,Bn=0;const sf=R(sy,(e,{resolve:t,reject:n})=>{if(!navigator.geolocation){n();return}Bn=Bn||navigator.geolocation.watchPosition(o=>{ii=!0,nd(e==null?void 0:e.type,o.coords).then(i=>{UniServiceJSBridge.invokeOnCallback(vc,i),t()}).catch(i=>{UniServiceJSBridge.invokeOnCallback(Qi,{errMsg:`onLocationChange:fail ${i.message}`})})},o=>{ii||(n(o.message),ii=!0),UniServiceJSBridge.invokeOnCallback(Qi,{errMsg:`onLocationChange:fail ${o.message}`})}),setTimeout(t,100)},dy,fy),lf=R(ly,(e,{resolve:t})=>{Bn&&(navigator.geolocation.clearWatch(Bn),ii=!1,Bn=0),t()}),cf=ke(vc,()=>{}),uf=vt(cy,()=>{}),df=ke(Qi,()=>{}),ff=vt(uy,()=>{}),hf=R(my,(e,{resolve:t,reject:n})=>{let o=!0;return re(vi,{from:e.from||"navigateBack"})===!0&&(o=!1),o?(getApp().$router.go(-e.delta),t()):n(vi)},yy,Ey),gf=R(Sn,({url:e,events:t,isAutomatedTesting:n},{resolve:o,reject:i})=>{if(!Ft.handledBeforeEntryPageRoutes){_r.push({args:{type:Sn,url:e,events:t,isAutomatedTesting:n},resolve:o,reject:i});return}return et({type:Sn,url:e,events:t,isAutomatedTesting:n}).then(o).catch(i)},_y,Ty),pf=R(Zi,({url:e},{resolve:t,reject:n})=>{const o=e.split("?")[0],i=pn(o);if(!i){n(`${e}}`);return}i.loader&&i.loader().then(()=>{t({url:e,errMsg:"preloadPage:ok"})}).catch(r=>{n(`${e} ${String(r)}`)})});function ri(e){__uniConfig.darkmode&&UniServiceJSBridge.on(Xe,e)}function fa(e){UniServiceJSBridge.off(Xe,e)}function Dn(e){let t={};return __uniConfig.darkmode&&(t=Qn(e,__uniConfig.themeConfig,Mn())),__uniConfig.darkmode?t:e}function mf(e,t){const n=Vue.isReactive(e),o=n?Vue.reactive(Dn(e)):Dn(e);return __uniConfig.darkmode&&n&&Vue.watch(e,i=>{const r=Dn(i);for(const a in r)o[a]=r[a]}),t&&ri(t),o}const F1={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}},$1=(e,t)=>t.value=F1[e].cancelColor,z1={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:""}},H1=Vue.defineComponent({props:z1,setup(e,{emit:t}){const n=Vue.ref(""),o=()=>a.value=!1,i=()=>(o(),t("close","cancel")),r=()=>(o(),t("close","confirm",n.value)),a=Ud(e,{onEsc:i,onEnter:()=>{!e.editable&&r()}}),s=W1(e);return()=>{const{title:l,content:c,showCancel:u,confirmText:d,confirmColor:f,editable:g,placeholderText:_}=e;return n.value=c,Vue.createVNode(Vue.Transition,{name:"uni-fade"},{default:()=>[Vue.withDirectives(Vue.createVNode("uni-modal",{onTouchmove:Je},[_1,Vue.createVNode("div",{class:"uni-modal"},[l?Vue.createVNode("div",{class:"uni-modal__hd"},[Vue.createVNode("strong",{class:"uni-modal__title",textContent:l||""},null,8,["textContent"])]):null,g?Vue.createVNode("textarea",{class:"uni-modal__textarea",rows:"1",placeholder:_,value:c,onInput:m=>n.value=m.target.value},null,40,["placeholder","value","onInput"]):Vue.createVNode("div",{class:"uni-modal__bd",onTouchmovePassive:un,textContent:c},null,40,["onTouchmovePassive","textContent"]),Vue.createVNode("div",{class:"uni-modal__ft"},[u&&Vue.createVNode("div",{style:{color:s.value},class:"uni-modal__btn uni-modal__btn_default",onClick:i},[e.cancelText],12,["onClick"]),Vue.createVNode("div",{style:{color:f},class:"uni-modal__btn uni-modal__btn_primary",onClick:r},[d],12,["onClick"])])])],40,["onTouchmove"]),[[Vue.vShow,a.value]])]})}}});function W1(e){const t=Vue.ref(e.cancelColor),n=({theme:o})=>{$1(o,t)};return Vue.watchEffect(()=>{e.visible?(t.value=e.cancelColor,e.cancelColor==="#000"&&(Mn()==="dark"&&n({theme:"dark"}),ri(n))):fa(n)}),t}let We;const q1=ne(()=>{UniServiceJSBridge.on("onHidePopup",()=>We.visible=!1)});let ha;function G1(e,t){const n=e==="confirm",o={confirm:n,cancel:e==="cancel"};n&&We.editable&&(o.content=t),ha&&ha(o)}const vf=()=>{We&&(We.visible=!1)},_f=R(Wy,(e,{resolve:t})=>{q1(),ha=t,We?(L(We,e),We.visible=!0):(We=Vue.reactive(e),Vue.nextTick(()=>(Qt(H1,We,G1).mount(Zt("u-a-m")),Vue.nextTick(()=>We.visible=!0))))},qy,Gy),j1={title:{type:String,default:""},icon:{default:"success",validator(e){return bc.indexOf(e)!==-1}},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean}},ai="uni-toast__icon",Y1={light:"#fff",dark:"rgba(255,255,255,0.9)"},yf=e=>Y1[e],X1=Vue.defineComponent({name:"Toast",props:j1,setup(e){Cp(),Vp();const{Icon:t}=J1(e),n=Ud(e,{});return()=>{const{mask:o,duration:i,title:r,image:a}=e;return Vue.createVNode(Vue.Transition,{name:"uni-fade"},{default:()=>[Vue.withDirectives(Vue.createVNode("uni-toast",{"data-duration":i},[o?Vue.createVNode("div",{class:"uni-mask",style:"background: transparent;",onTouchmove:Je},null,40,["onTouchmove"]):"",!a&&!t.value?Vue.createVNode("div",{class:"uni-sample-toast"},[Vue.createVNode("p",{class:"uni-simple-toast__text"},[r])]):Vue.createVNode("div",{class:"uni-toast"},[a?Vue.createVNode("img",{src:a,class:ai},null,10,["src"]):t.value,Vue.createVNode("p",{class:"uni-toast__content"},[r])])],8,["data-duration"]),[[Vue.vShow,n.value]])]})}}});function J1(e){const t=Vue.ref(yf(Mn())),n=({theme:i})=>t.value=yf(i);return Vue.watchEffect(()=>{e.visible?ri(n):fa(n)}),{Icon:Vue.computed(()=>{switch(e.icon){case"success":return Vue.createVNode(ce(hn,t.value,38),{class:ai});case"error":return Vue.createVNode(ce(ps,t.value,38),{class:ai});case"loading":return Vue.createVNode("i",{class:[ai,"uni-loading"]},null,2);default:return null}})}}let lt,St="",Un;const K1=Vue.effectScope();function Q1(){K1.run(()=>{Vue.watch([()=>lt.visible,()=>lt.duration],([e,t])=>{if(e){if(Un&&clearTimeout(Un),St==="onShowLoading")return;Un=setTimeout(()=>{si("onHideToast")},t)}else Un&&clearTimeout(Un)})})}function bf(e){lt?L(lt,e):(lt=Vue.reactive(L(e,{visible:!1})),Vue.nextTick(()=>{Q1(),UniServiceJSBridge.on("onHidePopup",()=>si("onHidePopup")),Qt(X1,lt,()=>{}).mount(Zt("u-a-t"))})),setTimeout(()=>{lt.visible=!0},10)}const wf=R(jy,(e,{resolve:t,reject:n})=>{bf(e),St="onShowToast",t()},Yy,Xy),Z1={icon:"loading",duration:1e8,image:""},Sf=R($y,(e,{resolve:t,reject:n})=>{L(e,Z1),bf(e),St="onShowLoading",t()},zy,Hy),Tf=R(xy,(e,{resolve:t,reject:n})=>{si("onHideToast"),t()}),Cf=R(Ny,(e,{resolve:t,reject:n})=>{si("onHideLoading"),t()});function si(e){const{t}=U();if(!St)return;let n="";if(e==="onHideToast"&&St!=="onShowToast"?n=t("uni.showToast.unpaired"):e==="onHideLoading"&&St!=="onShowLoading"&&(n=t("uni.showLoading.unpaired")),n)return console.warn(n);St="",setTimeout(()=>{lt.visible=!1},10)}function Vf(e){const t=Vue.ref(0),n=Vue.ref(0),o=Vue.computed(()=>t.value>=500&&n.value>=500),i=Vue.computed(()=>{const r={content:{transform:"",left:"",top:"",bottom:""},triangle:{left:"",top:"",bottom:"","border-width":"","border-color":""}},a=r.content,s=r.triangle,l=e.popover;function c(u){return Number(u)||0}if(o.value&&l){L(s,{position:"absolute",width:"0",height:"0","margin-left":"-6px","border-style":"solid"});const u=c(l.left),d=c(l.width?l.width:300),f=c(l.top),g=c(l.height),_=u+d/2;a.transform="none !important";const m=Math.max(0,_-d/2);a.left=`${m}px`,l.width&&(a.width=`${d}px`);let v=Math.max(12,_-m);v=Math.min(d-12,v),s.left=`${v}px`;const S=n.value/2;f+g-S>S-f?(a.top="auto",a.bottom=`${n.value-f+6}px`,s.bottom="-6px",s["border-width"]="6px 6px 0 6px",s["border-color"]="#fcfcfd transparent transparent transparent"):(a.top=`${f+g+6}px`,s.top="-6px",s["border-width"]="0 6px 6px 6px",s["border-color"]="transparent transparent #fcfcfd transparent")}return r});return Vue.onMounted(()=>{const r=()=>{const{windowWidth:a,windowHeight:s,windowTop:l}=uni.getSystemInfoSync();t.value=a,n.value=s+(l||0)};window.addEventListener("resize",r),r(),Vue.onUnmounted(()=>{window.removeEventListener("resize",r)})}),{isDesktop:o,popupStyle:i}}const eC={light:{listItemColor:"#000000",cancelItemColor:"#000000"},dark:{listItemColor:"rgba(255, 255, 255, 0.8)",cancelItemColor:"rgba(255, 255, 255)"}};function tC(e,t){["listItemColor","cancelItemColor"].forEach(o=>{t[o]=eC[e][o]})}const nC={title:{type:String,default:""},itemList:{type:Array,default(){return[]}},itemColor:{type:String,default:"#000000"},popover:{type:Object,default:null},visible:{type:Boolean,default:!1}},oC=Vue.defineComponent({name:"ActionSheet",props:nC,emits:["close"],setup(e,{emit:t}){Tp();const n=Vue.ref(260),o=Vue.ref(0),i=Vue.ref(0),r=Vue.ref(0),a=Vue.ref(0),s=Vue.ref(null),l=Vue.ref(null),{t:c}=U(),{_close:u}=iC(e,t),{popupStyle:d}=Vf(e);let f;Vue.onMounted(()=>{const{scroller:m,handleTouchStart:v,handleTouchMove:S,handleTouchEnd:y}=Nu(s.value,{enableY:!0,friction:new Or(1e-4),spring:new Rr(2,90,20),onScroll:h=>{a.value=h.target.scrollTop}});f=m,In(s.value,h=>{if(m)switch(h.detail.state){case"start":v(h);break;case"move":S(h);break;case"end":case"cancel":y(h)}},!0)});function g(m){const v=r.value+m.deltaY;Math.abs(v)>10?(a.value+=v/3,a.value=a.value>=o.value?o.value:a.value<=0?0:a.value,f.scrollTo(a.value)):r.value=v,m.preventDefault()}Vue.watch(()=>e.visible,()=>{Vue.nextTick(()=>{e.title&&(i.value=document.querySelector(".uni-actionsheet__title").offsetHeight),f.update(),s.value&&(o.value=s.value.clientHeight-n.value),document.querySelectorAll(".uni-actionsheet__cell").forEach(m=>{rC(m)})})});const _=aC(e);return()=>Vue.createVNode("uni-actionsheet",{onTouchmove:Je},[Vue.createVNode(Vue.Transition,{name:"uni-fade"},{default:()=>[Vue.withDirectives(Vue.createVNode("div",{class:"uni-mask uni-actionsheet__mask",onClick:()=>u(-1)},null,8,["onClick"]),[[Vue.vShow,e.visible]])]}),Vue.createVNode("div",{class:["uni-actionsheet",{"uni-actionsheet_toggle":e.visible}],style:d.value.content},[Vue.createVNode("div",{ref:l,class:"uni-actionsheet__menu",onWheel:g},[e.title?Vue.createVNode(Vue.Fragment,null,[Vue.createVNode("div",{class:"uni-actionsheet__cell",style:{height:`${i.value}px`}},null),Vue.createVNode("div",{class:"uni-actionsheet__title"},[e.title])]):"",Vue.createVNode("div",{style:{maxHeight:`${n.value}px`,overflow:"hidden"}},[Vue.createVNode("div",{ref:s},[e.itemList.map((m,v)=>Vue.createVNode("div",{key:v,style:{color:_.listItemColor},class:"uni-actionsheet__cell",onClick:()=>u(v)},[m],12,["onClick"]))],512)])],40,["onWheel"]),Vue.createVNode("div",{class:"uni-actionsheet__action"},[Vue.createVNode("div",{style:{color:_.cancelItemColor},class:"uni-actionsheet__cell",onClick:()=>u(-1)},[c("uni.showActionSheet.cancel")],12,["onClick"])]),Vue.createVNode("div",{style:d.value.triangle},null,4)],6)],40,["onTouchmove"])}});function iC(e,t){function n(r){t("close",r)}const{key:o,disable:i}=ti();return Vue.watch(()=>e.visible,r=>i.value=!r),Vue.watchEffect(()=>{const{value:r}=o;r==="esc"&&n&&n(-1)}),{_close:n}}function rC(e){let n=0,o=0;e.addEventListener("touchstart",i=>{const r=i.changedTouches[0];n=r.clientX,o=r.clientY}),e.addEventListener("touchend",i=>{const r=i.changedTouches[0];if(Math.abs(r.clientX-n)<20&&Math.abs(r.clientY-o)<20){const a=i.target,s=i.currentTarget,l=new CustomEvent("click",{bubbles:!0,cancelable:!0,target:a,currentTarget:s});["screenX","screenY","clientX","clientY","pageX","pageY"].forEach(c=>{l[c]=r[c]}),i.target.dispatchEvent(l)}})}function aC(e){const t=Vue.reactive({listItemColor:"#000",cancelItemColor:"#000"}),n=({theme:o})=>{tC(o,t)};return Vue.watchEffect(()=>{e.visible?(t.listItemColor=t.cancelItemColor=e.itemColor,e.itemColor==="#000"&&(n({theme:Mn()}),ri(n))):fa(n)}),t}let ga,pa,Ye;const sC=ne(()=>{UniServiceJSBridge.on("onHidePopup",()=>Ye.visible=!1)});function lC(e){e===-1?pa&&pa("cancel"):ga&&ga({tapIndex:e})}const Af=()=>{Ye&&(Ye.visible=!1)},Ef=R(Dy,(e,{resolve:t,reject:n})=>{sC(),ga=t,pa=n,Ye?(L(Ye,e),Ye.visible=!0):(Ye=Vue.reactive(e),Vue.nextTick(()=>(Qt(oC,Ye,lC).mount(Zt("u-s-a-s")),Vue.nextTick(()=>Ye.visible=!0))))},Uy,Fy),ma=R(My,({family:e,source:t,desc:n},{resolve:o,reject:i})=>{t.startsWith('url("')||t.startsWith("url('")?t=`url('${Q(t.substring(5,t.length-2))}')`:t.startsWith("url(")?t=`url('${Q(t.substring(4,t.length-1))}')`:t=Q(t),Xg(e,t,n).then(()=>{o()}).catch(r=>{i(`loadFontFace:fail ${r}`)})});function cC(e){document.title=e,UniServiceJSBridge.emit(Ia,{titleText:e})}function uC(e){function t(){cC(e.navigationBar.titleText)}Vue.watchEffect(t),Vue.onActivated(t)}function li(e,t,n,o,i){if(!e)return i("page not found");const{navigationBar:r}=e;switch(t){case er:const{frontColor:a,backgroundColor:s,animation:l}=n,{duration:c,timingFunc:u}=l;a&&(r.titleColor=a==="#000000"?"#000000":"#ffffff"),s&&(r.backgroundColor=s),r.duration=c+"ms",r.timingFunc=u;break;case nr:r.loading=!0;break;case or:r.loading=!1;break;case tr:const{title:d}=n;r.titleText=d;break}o()}const kf=R(er,(e,{resolve:t,reject:n})=>{li(Mt(),er,e,t,n)},Oy,Py),If=R(nr,(e,{resolve:t,reject:n})=>{li(Mt(),nr,e||{},t,n)}),Nf=R(or,(e,{resolve:t,reject:n})=>{li(Mt(),or,e||{},t,n)}),xf=R(tr,(e,{resolve:t,reject:n})=>{li(Mt(),tr,e,t,n)}),Mf=R(Ry,({scrollTop:e,selector:t,duration:n},{resolve:o})=>{Jg(t||e||0,n),o()},Ly,By),Pf=R(ir,(e,{resolve:t})=>{UniServiceJSBridge.invokeViewMethod(ir,{},pt()),t()}),Of=R(rr,(e,{resolve:t})=>{UniServiceJSBridge.invokeViewMethod(rr,{},pt()),t()}),dC=["text","iconPath","iconfont","selectedIconPath","visible"],fC=["color","selectedColor","backgroundColor","borderStyle","borderColor","midButton"],va=["badge","redDot"];function Fn(e,t,n){t.forEach(function(o){ae(n,o)&&(e[o]=n[o])})}function ct(e,t,n,o){var i;let r=!1;const a=$t();if(a.length&&nt(a[a.length-1]).meta.isTabBar&&(r=!0),!r)return o("not TabBar page");const{index:s}=t;if(typeof s=="number"){const c=(i=__uniConfig==null?void 0:__uniConfig.tabBar)==null?void 0:i.list.length;if(!c||s>=c)return o("tabbar item not found")}const l=Vn();switch(e){case cr:l.shown=!0;break;case lr:l.shown=!1;break;case ar:const c=l.list[s],u=c.pagePath;Fn(c,dC,t);const{pagePath:d}=t;if(d){const f=qe(d);f!==u&&gm(s,u,f)}break;case sr:Fn(l,fC,t);break;case dr:Fn(l.list[s],va,{badge:"",redDot:!0});break;case hr:Fn(l.list[s],va,{badge:t.text,redDot:!0});break;case ur:case fr:Fn(l.list[s],va,{badge:"",redDot:!1});break}n()}const Rf=R(ar,(e,{resolve:t,reject:n})=>{ct(ar,e,t,n)},Jy,Ky),Lf=R(sr,(e,{resolve:t,reject:n})=>{ct(sr,e,t,n)},Qy,eb),Bf=R(lr,(e,{resolve:t,reject:n})=>{ct(lr,e||{},t,n)}),Df=R(cr,(e,{resolve:t,reject:n})=>{ct(cr,e||{},t,n)}),Uf=R(ur,(e,{resolve:t,reject:n})=>{ct(ur,e,t,n)},tb,nb),Ff=R(dr,(e,{resolve:t,reject:n})=>{ct(dr,e,t,n)},ob,ib),$f=R(fr,(e,{resolve:t,reject:n})=>{ct(fr,e,t,n)},rb,ab),zf=R(hr,(e,{resolve:t,reject:n})=>{ct(hr,e,t,n)},sb,lb),hC="UniTabbarIconFont",gC={width:"50px",height:"50px",iconWidth:"24px"},pC=ge({name:"TabBar",setup(){const e=Vue.ref([]),t=Vn(),n=mf(t,()=>{const s=Dn(t);n.backgroundColor=s.backgroundColor,n.borderStyle=s.borderStyle,n.color=s.color,n.selectedColor=s.selectedColor,n.blurEffect=s.blurEffect,n.midButton=s.midButton,s.list&&s.list.length&&s.list.forEach((l,c)=>{n.list[c].iconPath=l.iconPath,n.list[c].selectedIconPath=l.selectedIconPath})});vC(n,e),mC(n);const o=_C(VueRouter.useRoute(),n,e),{style:i,borderStyle:r,placeholderStyle:a}=wC(n);return Vue.onMounted(()=>{n.iconfontSrc&&ma({family:hC,source:`url("${n.iconfontSrc}")`})}),()=>{const s=SC(n,o,e);return Vue.createVNode("uni-tabbar",{class:"uni-tabbar-"+n.position},[Vue.createVNode("div",{class:"uni-tabbar",style:i.value},[Vue.createVNode("div",{class:"uni-tabbar-border",style:r.value},null,4),s],4),Vue.createVNode("div",{class:"uni-placeholder",style:a.value},null,4)],2)}}});function mC(e){Vue.watch(()=>e.shown,t=>{ds({"--window-bottom":kc(t?parseInt(e.height):0)})})}function vC(e,t){const n=Vue.ref(L({type:"midButton"},e.midButton));function o(){let i=[];i=e.list.filter(r=>r.visible!==!1),__UNI_FEATURE_TABBAR_MIDBUTTON__&&e.midButton&&(n.value=L({},gC,n.value,e.midButton),i=i.filter(r=>!Gf(r)),i.length%2===0&&i.splice(Math.floor(i.length/2),0,n.value)),t.value=i}Vue.watchEffect(o)}function _C(e,t,n){return Vue.watchEffect(()=>{const o=e.meta;if(o.isTabBar){const i=o.route,r=n.value.findIndex(a=>a.pagePath===i);t.selectedIndex=r}}),(o,i)=>{const{type:r}=o;return()=>{if(__UNI_FEATURE_TABBAR_MIDBUTTON__&&r==="midButton")return UniServiceJSBridge.invokeOnCallback(Rl);const{pagePath:a,text:s}=o;let l=qe(a);l===__uniRoutes[0].alias&&(l="/"),e.path!==l?uni.switchTab({from:"tabBar",url:l,tabBarText:s}):re("onTabItemTap",{index:i,text:s,pagePath:a})}}}const yC="#f7f7fa",Hf="rgb(0, 0, 0, 0.8)",Wf="rgb(250, 250, 250, 0.8)",bC={dark:Hf,light:Wf,extralight:Wf},qf={white:"rgba(255, 255, 255, 0.33)",black:"rgba(0, 0, 0, 0.33)"};function wC(e){const t=Vue.computed(()=>{let i=e.backgroundColor;const r=e.blurEffect;return i||Mo&&r&&r!=="none"&&(i=bC[r]),{backgroundColor:i||yC,backdropFilter:r!=="none"?"blur(10px)":r}}),n=Vue.computed(()=>{const{borderStyle:i,borderColor:r}=e;return r&&J(r)?{backgroundColor:r}:{backgroundColor:qf[i]||qf.black}}),o=Vue.computed(()=>({height:e.height}));return{style:t,borderStyle:n,placeholderStyle:o}}function Gf(e){return e.type==="midButton"}function SC(e,t,n){const{selectedIndex:o,selectedColor:i,color:r}=e;return n.value.map((a,s)=>{const l=o===s,c=l?i:r,u=l&&a.selectedIconPath||a.iconPath||"",d=a.iconfont?l&&a.iconfont.selectedText||a.iconfont.text:void 0,f=a.iconfont?l&&a.iconfont.selectedColor||a.iconfont.color:void 0;return __UNI_FEATURE_TABBAR_MIDBUTTON__&&Gf(a)?EC(c,u,d,f,a,e,s,t):jf(c,u,d,f,a,e,s,t)})}function jf(e,t,n,o,i,r,a,s){return Vue.createVNode("div",{key:a,class:"uni-tabbar__item",onClick:s(i,a)},[Yf(e,t||"",n,o,i,r)],8,["onClick"])}function Yf(e,t,n,o,i,r){const{height:a}=r;return Vue.createVNode("div",{class:"uni-tabbar__bd",style:{height:a}},[n?CC(n,o||Hf,i,r):t&&TC(t,i,r),i.text&&VC(e,i,r),i.redDot&&AC(i.badge)],4)}function TC(e,t,n){const{type:o,text:i}=t,{iconWidth:r}=n,a="uni-tabbar__icon"+(i?" uni-tabbar__icon__diff":""),s={width:r,height:r};return Vue.createVNode("div",{class:a,style:s},[o!=="midButton"&&Vue.createVNode("img",{src:Q(e)},null,8,["src"])],6)}function CC(e,t,n,o){var i;const{type:r,text:a}=n,{iconWidth:s}=o,l="uni-tabbar__icon"+(a?" uni-tabbar__icon__diff":""),c={width:s,height:s},u={fontSize:((i=n.iconfont)==null?void 0:i.fontSize)||s,color:t};return Vue.createVNode("div",{class:l,style:c},[r!=="midButton"&&Vue.createVNode("div",{class:"uni-tabbar__iconfont",style:u},[e],4)],6)}function VC(e,t,n){const{iconPath:o,text:i}=t,{fontSize:r,spacing:a}=n,s={color:e,fontSize:r,lineHeight:o?"normal":1.8,marginTop:o?a:"inherit"};return Vue.createVNode("div",{class:"uni-tabbar__label",style:s},[i],4)}function AC(e){const t="uni-tabbar__reddot"+(e?" uni-tabbar__badge":"");return Vue.createVNode("div",{class:t},[e],2)}function EC(e,t,n,o,i,r,a,s){const{width:l,height:c,backgroundImage:u,iconWidth:d}=i;return Vue.createVNode("div",{key:"midButton",class:"uni-tabbar__item",style:{flex:"0 0 "+l,position:"relative"},onClick:s(i,a)},[Vue.createVNode("div",{class:"uni-tabbar__mid",style:{width:l,height:c,backgroundImage:u?"url('"+Q(u)+"')":"none"}},[t&&Vue.createVNode("img",{style:{width:d,height:d},src:Q(t)},null,12,["src"])],4),Yf(e,t,n,o,i,r)],12,["onClick"])}const nn="0px";let Xf;function Le(){return Xf}const Jf=ge({name:"Layout",setup(e,{emit:t}){const n=Vue.ref(null);IC();const o=__UNI_FEATURE_PAGES__&&wb(),{layoutState:i,windowState:r}=MC();xC(i,n);const a=__UNI_FEATURE_TOPWINDOW__&&DC(i),s=__UNI_FEATURE_LEFTWINDOW__&&UC(i),l=__UNI_FEATURE_RIGHTWINDOW__&&FC(i),c=__UNI_FEATURE_TABBAR__&&OC(),u=kC(c);return Xf=i,()=>{const d=PC(o,i,r,a,s,l),f=__UNI_FEATURE_TABBAR__&&RC(c);return Vue.createVNode("uni-app",{ref:n,class:u.value},[d,f],2)}}});function kC(e){const t=Vue.ref(!1);return Vue.computed(()=>({"uni-app--showtabbar":e&&e.value,"uni-app--maxwidth":t.value}))}function IC(){Ue({"--status-bar-height":nn,"--top-window-height":nn,"--window-left":nn,"--window-right":nn,"--window-margin":nn,"--tab-bar-height":nn})}function NC(e,t){const n=window.matchMedia("(min-width: "+e+"px)");return n.addEventListener?n.addEventListener("change",t):n.addListener(t),n.matches}function xC(e,t){const n=vn();function o(){const i=document.body.clientWidth,r=$t();let a={};if(r.length>0){const c=r[r.length-1];a=nt(c).meta}else{const c=pn(n.path,!0);c&&(a=c.meta)}const s=parseInt(String((ae(a,"maxWidth")?a.maxWidth:__uniConfig.globalStyle.maxWidth)||Number.MAX_SAFE_INTEGER));let l=!1;i>s?l=!0:l=!1,l&&s?(e.marginWidth=(i-s)/2,Vue.nextTick(()=>{const c=t.value;c&&c.setAttribute("style","max-width:"+s+"px;margin:0 auto;")})):(e.marginWidth=0,Vue.nextTick(()=>{const c=t.value;c&&c.removeAttribute("style")}))}Vue.watch([()=>n.path],o),Vue.onMounted(()=>{o(),window.addEventListener("resize",o)})}function MC(){const e=vn();if(!__UNI_FEATURE_RESPONSIVE__){const u=Vue.reactive({marginWidth:0,leftWindowWidth:0,rightWindowWidth:0});return Vue.watch(()=>u.marginWidth,d=>Ue({"--window-margin":d+"px"})),Vue.watch(()=>u.leftWindowWidth+u.marginWidth,d=>{Ue({"--window-left":d+"px"})}),Vue.watch(()=>u.rightWindowWidth+u.marginWidth,d=>{Ue({"--window-right":d+"px"})}),{layoutState:u,windowState:Vue.computed(()=>({}))}}const t=Vue.ref(!1),n=Vue.ref(!1),o=Vue.ref(!1),i=Vue.computed(()=>__UNI_FEATURE_TOPWINDOW__&&e.meta.topWindow!==!1&&t.value),r=Vue.computed(()=>__UNI_FEATURE_LEFTWINDOW__&&e.meta.leftWindow!==!1&&n.value),a=Vue.computed(()=>__UNI_FEATURE_RIGHTWINDOW__&&e.meta.rightWindow!==!1&&o.value),s=Vue.reactive({topWindowMediaQuery:t,showTopWindow:i,apiShowTopWindow:!1,leftWindowMediaQuery:n,showLeftWindow:r,apiShowLeftWindow:!1,rightWindowMediaQuery:o,showRightWindow:a,apiShowRightWindow:!1,topWindowHeight:0,marginWidth:0,leftWindowWidth:0,rightWindowWidth:0,navigationBarTitleText:"",topWindowStyle:{},leftWindowStyle:{},rightWindowStyle:{}});["topWindow","leftWindow","rightWindow"].forEach(u=>{var d;const f=(d=__uniConfig[u])==null?void 0:d.matchMedia;let g=kg;if(f&&ae(f,"minWidth")){const m=f.minWidth;g=p0(m)?m:g}const _=NC(g,m=>{s[`${u}MediaQuery`]=m.matches});s[`${u}MediaQuery`]=_}),Vue.watch(()=>s.topWindowHeight,u=>Ue({"--top-window-height":u+"px"})),Vue.watch(()=>s.marginWidth,u=>Ue({"--window-margin":u+"px"})),Vue.watch(()=>s.leftWindowWidth+s.marginWidth,u=>{Ue({"--window-left":u+"px"})}),Vue.watch(()=>s.rightWindowWidth+s.marginWidth,u=>{Ue({"--window-right":u+"px"})}),UniServiceJSBridge.on(Ia,u=>{s.navigationBarTitleText=u.titleText});const c=Vue.computed(()=>({matchTopWindow:s.topWindowMediaQuery,showTopWindow:s.showTopWindow||s.apiShowTopWindow,matchLeftWindow:s.leftWindowMediaQuery,showLeftWindow:s.showLeftWindow||s.apiShowLeftWindow,matchRightWindow:s.rightWindowMediaQuery,showRightWindow:s.showRightWindow||s.apiShowRightWindow}));return{layoutState:s,windowState:c}}function PC(e,t,n,o,i,r){const a=__UNI_FEATURE_PAGES__?BC(e):LC();if(!__UNI_FEATURE_RESPONSIVE__)return a;const s=__UNI_FEATURE_TOPWINDOW__?$C(o,t,n.value):null,l=__UNI_FEATURE_LEFTWINDOW__?zC(i,t,n.value):null,c=__UNI_FEATURE_RIGHTWINDOW__?HC(r,t,n.value):null;return Vue.createVNode("uni-layout",{class:{"uni-app--showtopwindow":__UNI_FEATURE_TOPWINDOW__&&t.showTopWindow,"uni-app--showleftwindow":__UNI_FEATURE_LEFTWINDOW__&&t.showLeftWindow,"uni-app--showrightwindow":__UNI_FEATURE_RIGHTWINDOW__&&t.showRightWindow}},[s,Vue.createVNode("uni-content",null,[Vue.createVNode("uni-main",null,[a]),l,c])],2)}function OC(e){const t=vn(),n=Vn(),o=Vue.computed(()=>t.meta.isTabBar&&n.shown);return Ue({"--tab-bar-height":n.height}),o}function RC(e){return Vue.withDirectives(Vue.createVNode(pC,null,null,512),[[Vue.vShow,e.value]])}function LC(){return Vue.createVNode(__uniRoutes[0].component)}function BC({routeKey:e,isTabBar:t,routeCache:n}){return Vue.createVNode(VueRouter.RouterView,null,{default:Vue.withCtx(({Component:o})=>[(Vue.openBlock(),Vue.createBlock(Vue.KeepAlive,{matchBy:"key",cache:n},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(o),{type:t.value?"tabBar":"",key:e.value}))],1032,["cache"]))]),_:1})}function DC(e){const{component:t,style:n}=__uniConfig.topWindow,o=Vue.ref(null);function i(){const r=o.value,s=Kn(r.$).getBoundingClientRect().height;e.topWindowHeight=s}return Vue.watch(()=>o.value,()=>{i()}),Vue.watch(()=>e.showTopWindow||e.apiShowTopWindow,()=>Vue.nextTick(i)),e.topWindowStyle=n,{component:t,windowRef:o}}function UC(e){const{component:t,style:n}=__uniConfig.leftWindow,o=Vue.ref(null);function i(){const r=o.value,s=Kn(r.$).getBoundingClientRect().width;e.leftWindowWidth=s}return Vue.watch(()=>o.value,()=>{i()}),Vue.watch(()=>e.showLeftWindow||e.apiShowLeftWindow,()=>Vue.nextTick(i)),e.leftWindowStyle=n,{component:t,windowRef:o}}function FC(e){const{component:t,style:n}=__uniConfig.rightWindow,o=Vue.ref(null);function i(){const r=o.value,s=Kn(r.$).getBoundingClientRect().width;e.rightWindowWidth=s}return Vue.watch(()=>o.value,()=>{i()}),Vue.watch(()=>e.showRightWindow||e.apiShowRightWindow,()=>Vue.nextTick(i)),e.rightWindowStyle=n,{component:t,windowRef:o}}function $C(e,t,n){if(e){const{component:o,windowRef:i}=e;return Vue.withDirectives(Vue.createVNode("uni-top-window",null,[Vue.createVNode("div",{class:"uni-top-window",style:t.topWindowStyle},[Vue.createVNode(o,Vue.mergeProps({ref:i,"navigation-bar-title-text":t.navigationBarTitleText},n),null,16,["navigation-bar-title-text"])],4),Vue.createVNode("div",{class:"uni-top-window--placeholder",style:{height:t.topWindowHeight+"px"}},null,4)],512),[[Vue.vShow,t.showTopWindow||t.apiShowTopWindow]])}}function zC(e,t,n){if(e){const{component:o,windowRef:i}=e;return Vue.withDirectives(Vue.createVNode("uni-left-window",{"data-show":t.apiShowLeftWindow||void 0,style:t.leftWindowStyle},[t.apiShowLeftWindow?Vue.createVNode("div",{class:"uni-mask",onClick:()=>t.apiShowLeftWindow=!1},null,8,["onClick"]):null,Vue.createVNode("div",{class:"uni-left-window"},[Vue.createVNode(o,Vue.mergeProps({ref:i},n),null,16)])],12,["data-show"]),[[Vue.vShow,t.showLeftWindow||t.apiShowLeftWindow]])}}function HC(e,t,n){if(e){const{component:o,windowRef:i}=e;return Vue.withDirectives(Vue.createVNode("uni-right-window",{"data-show":t.apiShowRightWindow||void 0,style:t.rightWindowStyle},[t.apiShowRightWindow?Vue.createVNode("div",{class:"uni-mask",onClick:()=>t.apiShowRightWindow=!1},null,8,["onClick"]):null,Vue.createVNode("div",{class:"uni-right-window"},[Vue.createVNode(o,Vue.mergeProps({ref:i},n),null,16)])],12,["data-show"]),[[Vue.vShow,t.showRightWindow||t.apiShowRightWindow]])}}const Kf=R("showTopWindow",(e,{resolve:t,reject:n})=>{const o=Le();if(!o){n();return}o.apiShowTopWindow=!0,Vue.nextTick(t)}),Qf=R("hideTopWindow",(e,{resolve:t,reject:n})=>{const o=Le();if(!o){n();return}o.apiShowTopWindow=!1,Vue.nextTick(t)}),Zf=R("showLeftWindow",(e,{resolve:t,reject:n})=>{const o=Le();if(!o){n();return}o.apiShowLeftWindow=!0,Vue.nextTick(t)}),eh=R("hideLeftWindow",(e,{resolve:t,reject:n})=>{const o=Le();if(!o){n();return}o.apiShowLeftWindow=!1,Vue.nextTick(t)}),th=R("showRightWindow",(e,{resolve:t,reject:n})=>{const o=Le();if(!o){n();return}o.apiShowRightWindow=!0,Vue.nextTick(t)}),nh=R("hideRightWindow",(e,{resolve:t,reject:n})=>{const o=Le();if(!o){n();return}o.apiShowRightWindow=!1,Vue.nextTick(t)}),oh=j("getTopWindowStyle",()=>{const e=Le();return L({},e&&e.topWindowStyle)}),ih=j("setTopWindowStyle",e=>{const t=Le();t&&(t.topWindowStyle=e)}),rh=j("getLeftWindowStyle",()=>{const e=Le();return L({},e&&e.leftWindowStyle)}),ah=j("setLeftWindowStyle",e=>{const t=Le();t&&(t.leftWindowStyle=e)}),sh=j("getRightWindowStyle",()=>{const e=Le();return L({},e&&e.rightWindowStyle)}),lh=j("setRightWindowStyle",e=>{const t=Le();t&&(t.rightWindowStyle=e)}),ch=j("getElementById",e=>{const t=document.querySelector("uni-page-body");return t?t.querySelector(`#${e}`):null}),uh=R(gc,be(gc)),dh="getRecorderManager",fh=j(dh,mo(dh)),hh=R(pc,be(pc)),gh="createCameraContext",ph=j(gh,mo(gh)),mh="createLivePlayerContext",vh=j(mh,mo(mh)),_h="saveFile",yh=R(_h,be(_h)),bh="getSavedFileList",wh=R(bh,be(bh)),Sh="getSavedFileInfo",Th=R(Sh,be(Sh)),Ch="removeSavedFile",Vh=R(Ch,be(Ch)),Ah="onMemoryWarning",Eh=ke(Ah,$i(Ah)),kh="onGyroscopeChange",Ih=ke(kh,$i(kh)),Nh="startGyroscope",xh=R(Nh,be(Nh)),Mh="stopGyroscope",Ph=R(Mh,be(Mh)),Oh="scanCode",Rh=R(Oh,be(Oh)),Lh="setScreenBrightness",Bh=R(Lh,be(Lh)),Dh="getScreenBrightness",Uh=R(Dh,be(Dh)),Fh="setKeepScreenOn",$h=R(Fh,be(Fh)),zh="onUserCaptureScreen",Hh=ke(zh,$i(zh)),Wh="addPhoneContact",qh=R(Wh,be(Wh)),Gh="login",jh=R(Gh,be(Gh)),Yh="getProvider",Xh=R(Yh,be(Yh)),WC=Object.defineProperty({__proto__:null,$emit:ul,$off:cl,$on:sl,$once:ll,__f__:dl,addInterceptor:il,addPhoneContact:qh,arrayBufferToBase64:Js,base64ToArrayBuffer:Xs,canIUse:Ac,canvasGetImageData:Sl,canvasPutImageData:Tl,canvasToTempFilePath:Cl,chooseFile:Ld,chooseImage:Bd,chooseLocation:af,chooseVideo:qd,clearStorage:kd,clearStorageSync:ra,closePreviewImage:Wd,closeSocket:Zd,connectSocket:Jd,createAnimation:Ol,createCameraContext:ph,createCanvasContext:wl,createInnerAudioContext:id,createIntersectionObserver:kl,createLivePlayerContext:vh,createMapContext:hl,createMediaQueryObserver:Nl,createSelectorQuery:Ml,createVideoContext:fl,cssBackdropFilter:Mo,cssConstant:xo,cssEnv:No,cssVar:mr,downloadFile:Yd,getAppBaseInfo:jr,getClipboardData:_d,getDeviceInfo:Gr,getElementById:ch,getEnterOptionsSync:tc,getFileInfo:Nd,getImageInfo:Pd,getLaunchOptionsSync:nc,getLeftWindowStyle:rh,getLocale:yo,getLocation:Rn,getNetworkType:Jr,getProvider:Xh,getPushClientId:ac,getRecorderManager:fh,getRightWindowStyle:sh,getSavedFileInfo:Th,getSavedFileList:wh,getScreenBrightness:Uh,getSelectedTextRange:Wl,getStorage:Ad,getStorageInfo:Id,getStorageInfoSync:aa,getStorageSync:Vd,getSystemInfo:ld,getSystemInfoSync:Yr,getTabBarPageId:Ao,getTopWindowStyle:oh,getVideoInfo:Od,getWindowInfo:Wr,hideActionSheet:Af,hideKeyboard:Md,hideLeftWindow:eh,hideLoading:Cf,hideModal:vf,hideNavigationBarLoading:Nf,hideRightWindow:nh,hideTabBar:Bf,hideTabBarRedDot:Uf,hideToast:Tf,hideTopWindow:Qf,interceptors:al,invokePushCallback:ic,loadFontFace:ma,login:jh,makePhoneCall:rd,navigateBack:hf,navigateTo:gf,offAccelerometerChange:hd,offAppHide:ec,offAppShow:Ql,offCompassChange:ea,offError:Jl,offLocationChange:uf,offLocationChangeError:ff,offNetworkStatusChange:dd,offPageNotFound:Yl,offPushMessage:lc,offThemeChange:Sd,offUnhandledRejection:Gl,offWindowResize:Dl,onAccelerometerChange:fd,onAppHide:Zl,onAppShow:Kl,onCompassChange:Zr,onCreateVueApp:ja,onError:Xl,onGyroscopeChange:Ih,onLocaleChange:Fl,onLocationChange:cf,onLocationChangeError:df,onMemoryWarning:Eh,onNetworkStatusChange:ud,onPageNotFound:jl,onPushMessage:sc,onSocketClose:of,onSocketError:tf,onSocketMessage:nf,onSocketOpen:ef,onTabBarMidButtonTap:Ll,onThemeChange:wd,onUnhandledRejection:ql,onUserCaptureScreen:Hh,onWindowResize:Bl,openDocument:xd,openLocation:rf,pageScrollTo:Mf,preloadPage:pf,previewImage:Hd,reLaunch:Tc,redirectTo:Sc,removeAllPages:ko,removeInterceptor:rl,removeLastPage:Eo,removeNonTabBarPages:Vo,removeSavedFile:Vh,removeStorage:Ed,removeStorageSync:ia,removeTabBarBadge:$f,request:ua,rpx2px:vo,saveFile:yh,saveImageToPhotosAlbum:uh,saveVideoToPhotosAlbum:hh,scanCode:Rh,sendSocketMessage:Qd,setClipboardData:yd,setKeepScreenOn:$h,setLeftWindowStyle:ah,setLocale:$l,setNavigationBarColor:kf,setNavigationBarTitle:xf,setPageMeta:zl,setRightWindowStyle:lh,setScreenBrightness:Bh,setStorage:Td,setStorageSync:oa,setTabBarBadge:zf,setTabBarItem:Rf,setTabBarStyle:Lf,setTopWindowStyle:ih,showActionSheet:Ef,showLeftWindow:Zf,showLoading:Sf,showModal:_f,showNavigationBarLoading:If,showRightWindow:th,showTabBar:Df,showTabBarRedDot:Ff,showToast:wf,showTopWindow:Kf,startAccelerometer:Kr,startCompass:ta,startGyroscope:xh,startLocationUpdate:sf,startPullDownRefresh:Pf,stopAccelerometer:Qr,stopCompass:na,stopGyroscope:Ph,stopLocationUpdate:lf,stopPullDownRefresh:Of,switchTab:wc,uploadFile:Xd,upx2px:vo,vibrateLong:md,vibrateShort:pd},Symbol.toStringTag,{value:"Module"}),Jh="MAP_LOCATION",qC=ge({name:"MapLocation",setup(){const e=Vue.reactive({latitude:0,longitude:0,rotate:0});{let t=function(c){e.rotate=c.direction},n=function(){Rn({type:"gcj02",success:c=>{e.latitude=c.latitude,e.longitude=c.longitude},complete:()=>{r=setTimeout(n,3e4)}})},o=function(){r&&clearTimeout(r),ea(t)};const i=Vue.inject("onMapReady");let r;Zr(t),i(n),Vue.onUnmounted(o);const a=Vue.inject("addMapChidlContext"),s=Vue.inject("removeMapChidlContext"),l={id:Jh,state:e};a(l),Vue.onUnmounted(()=>s(l))}return()=>e.latitude?Vue.createVNode(od,Vue.mergeProps({anchor:{x:.5,y:.5},width:"44",height:"44",iconPath:Qu},e),null,16,["iconPath"]):null}}),GC=ge({name:"MapPolygon",props:{dashArray:{type:Array,default:()=>[0,0]},points:{type:Array,required:!0},strokeWidth:{type:Number,default:1},strokeColor:{type:String,default:"#000000"},fillColor:{type:String,default:"#00000000"},zIndex:{type:Number,default:0}},setup(e){let t;return Vue.inject("onMapReady")((o,i,r)=>{function a(){const{points:s,strokeWidth:l,strokeColor:c,dashArray:u,fillColor:d,zIndex:f}=e,g=s.map(w=>{const{latitude:A,longitude:N}=w;return ue()?[N,A]:ie()?new i.Point(N,A):new i.LatLng(A,N)}),{r:_,g:m,b:v,a:S}=it(d),{r:y,g:h,b:p,a:C}=it(c),T={clickable:!0,cursor:"crosshair",editable:!1,map:o,fillColor:"",path:g,strokeColor:"",strokeDashStyle:u.some(w=>w>0)?"dash":"solid",strokeWeight:l,visible:!0,zIndex:f};if(i.Color?(T.fillColor=new i.Color(_,m,v,S),T.strokeColor=new i.Color(y,h,p,C)):(T.fillColor=`rgb(${_}, ${m}, ${v})`,T.fillOpacity=S,T.strokeColor=`rgb(${y}, ${h}, ${p})`,T.strokeOpacity=C),t){t.setOptions(T);return}ie()?(t=new i.Polygon(T.path,T),o.addOverlay(t)):t=new i.Polygon(T)}a(),Vue.watch(e,a)}),Vue.onUnmounted(()=>{t.setMap(null)}),()=>null}}),jC={id:{type:String,default:""},latitude:{type:[String,Number],default:0},longitude:{type:[String,Number],default:0},scale:{type:[String,Number],default:16},markers:{type:Array,default(){return[]}},includePoints:{type:Array,default(){return[]}},polyline:{type:Array,default(){return[]}},circles:{type:Array,default(){return[]}},controls:{type:Array,default(){return[]}},showLocation:{type:[Boolean,String],default:!1},libraries:{type:Array,default(){return[]}},polygons:{type:Array,default:()=>[]}};function _a(e){const t=[];return K(e)&&e.forEach(n=>{n&&n.latitude&&n.longitude&&t.push({latitude:n.latitude,longitude:n.longitude})}),t}function YC(e,t,n){return new e.LngLat(n,t)}function XC(e,t,n){return new e.Point(n,t)}function JC(e,t,n){return new e.LatLng(t,n)}function ci(e,t,n){return ie()?XC(e,t,n):ue()?YC(e,t,n):JC(e,t,n)}function $n(e){return"getLat"in e?e.getLat():ie()?e.lat:e.lat()}function zn(e){return"getLng"in e?e.getLng():ie()?e.lng:e.lng()}function KC(e,t,n){const o=pe(t,n),i=Vue.ref(null);let r,a;const s=Vue.reactive({latitude:Number(e.latitude),longitude:Number(e.longitude),includePoints:_a(e.includePoints)}),l=[];let c;function u(w){c?w(a,r,o):l.push(w)}function d(){c=!0,l.forEach(w=>w(a,r,o)),l.length=0}let f;const g=[];function _(w){f?w():l.push(w)}const m={};function v(w){m[w.id]=w}function S(w){delete m[w.id]}Vue.watch([()=>e.latitude,()=>e.longitude],([w,A])=>{const N=Number(w),E=Number(A);if((N!==s.latitude||E!==s.longitude)&&(s.latitude=N,s.longitude=E,a)){const V=ci(r,s.latitude,s.longitude);a.setCenter(V)}}),Vue.watch(()=>e.includePoints,w=>{s.includePoints=_a(w),f&&C()},{deep:!0});function y(){f=!0,g.forEach(w=>w()),g.length=0}function h(){const w=a.getCenter();return{scale:a.getZoom(),centerLocation:{latitude:$n(w),longitude:zn(w)}}}function p(){const w=ci(r,s.latitude,s.longitude);a.setCenter(w)}function C(){if(ue()){const w=[];s.includePoints.forEach(N=>{w.push([N.longitude,N.latitude])});const A=new r.Bounds(...w);a.setBounds(A)}else if(!ie()){const w=new r.LatLngBounds;s.includePoints.forEach(({latitude:A,longitude:N})=>{const E=new r.LatLng(A,N);w.extend(E)}),a.fitBounds(w)}}function T(){const w=i.value,A=ci(r,s.latitude,s.longitude),N=r.event||r.Event,E=new r.Map(w,{center:A,zoom:Number(e.scale),disableDoubleClickZoom:!0,mapTypeControl:!1,zoomControl:!1,scaleControl:!1,panControl:!1,fullscreenControl:!1,streetViewControl:!1,keyboardShortcuts:!1,minZoom:5,maxZoom:18,draggable:!0});if(ie()&&(E.centerAndZoom(A,Number(e.scale)),E.enableScrollWheelZoom(),E._printLog&&E._printLog("uniapp")),Vue.watch(()=>e.scale,V=>{E.setZoom(Number(V)||16)}),_(()=>{s.includePoints.length&&(C(),p())}),ie())E.addEventListener("click",()=>{o("tap",{},{}),o("click",{},{})}),E.addEventListener("dragstart",()=>{o("regionchange",{},{type:"begin",causedBy:"gesture"})}),E.addEventListener("dragend",()=>{o("regionchange",{},L({type:"end",causedBy:"drag"},h()))});else{const V=N.addListener(E,"bounds_changed",()=>{V.remove(),y()});N.addListener(E,"click",()=>{o("tap",{},{}),o("click",{},{})}),N.addListener(E,"dragstart",()=>{o("regionchange",{},{type:"begin",causedBy:"gesture"})}),N.addListener(E,"dragend",()=>{o("regionchange",{},L({type:"end",causedBy:"drag"},h()))});const I=()=>{n("update:scale",E.getZoom()),o("regionchange",{},L({type:"end",causedBy:"scale"},h()))};N.addListener(E,"zoom_changed",I),N.addListener(E,"zoomend",I),N.addListener(E,"center_changed",()=>{const M=E.getCenter(),F=$n(M),k=zn(M);n("update:latitude",F),n("update:longitude",k)})}return E}try{const w=Yo();Gt((A,N={})=>{switch(A){case"getCenterLocation":u(()=>{const E=a.getCenter();ye(N,{latitude:$n(E),longitude:zn(E),errMsg:`${A}:ok`})});break;case"moveToLocation":{let E=Number(N.latitude),V=Number(N.longitude);if(!E||!V){const I=m[Jh];I&&(E=I.state.latitude,V=I.state.longitude)}if(E&&V){if(s.latitude=E,s.longitude=V,a){const I=ci(r,E,V);a.setCenter(I)}u(()=>{ye(N,`${A}:ok`)})}else ye(N,`${A}:fail`)}break;case"translateMarker":u(()=>{const E=m[N.markerId];if(E){try{E.translate(N)}catch(V){ye(N,`${A}:fail ${V.message}`)}ye(N,`${A}:ok`)}else ye(N,`${A}:fail not found`)});break;case"includePoints":s.includePoints=_a(N.includePoints),(f||ue())&&C(),_(()=>{ye(N,`${A}:ok`)});break;case"getRegion":_(()=>{const E=a.getBounds(),V=E.getSouthWest(),I=E.getNorthEast();ye(N,{southwest:{latitude:$n(V),longitude:zn(V)},northeast:{latitude:$n(I),longitude:zn(I)},errMsg:`${A}:ok`})});break;case"getScale":u(()=>{ye(N,{scale:a.getZoom(),errMsg:`${A}:ok`})});break}},w,!0)}catch(w){}return Vue.onMounted(()=>{zr(e.libraries,w=>{r=w,a=T(),d(),o("updated",{},{})})}),Vue.provide("onMapReady",u),Vue.provide("addMapChidlContext",v),Vue.provide("removeMapChidlContext",S),{state:s,mapRef:i,trigger:o}}const ya=X({name:"Map",props:jC,emits:["markertap","labeltap","callouttap","controltap","regionchange","tap","click","updated","update:scale","update:latitude","update:longitude"],setup(e,{emit:t,slots:n}){const o=Vue.ref(null),{mapRef:i,trigger:r}=KC(e,o,t);return()=>Vue.createVNode("uni-map",{ref:o,id:e.id},[Vue.createVNode("div",{ref:i,style:"width: 100%; height: 100%; position: relative; overflow: hidden"},null,512),e.markers.map(a=>Vue.createVNode(od,Vue.mergeProps({key:a.id},a),null,16)),e.polyline.map(a=>Vue.createVNode(o1,a,null,16)),e.circles.map(a=>Vue.createVNode(i1,a,null,16)),e.controls.map(a=>Vue.createVNode(r1,Vue.mergeProps(a,{trigger:r}),null,16,["trigger"])),e.showLocation&&Vue.createVNode(qC,null,null),e.polygons.map(a=>Vue.createVNode(GC,a,null,16)),Vue.createVNode("div",{style:"position: absolute;top: 0;width: 100%;height: 100%;overflow: hidden;pointer-events: none;"},[n.default&&n.default()])],8,["id"])}}),QC=X({name:"CoverView",compatConfig:{MODE:3},props:{scrollTop:{type:[String,Number],default:0}},setup(e,{slots:t}){const n=Vue.ref(null),o=Vue.ref(null);Vue.watch(()=>e.scrollTop,a=>{i(a)});function i(a){let s=o.value;getComputedStyle(s).overflowY==="scroll"&&(s.scrollTop=r(a))}function r(a){let s=String(a);return/\d+[ur]px$/i.test(s)&&s.replace(/\d+[ur]px$/i,l=>String(uni.upx2px(parseFloat(l)))),parseFloat(s)||0}return Vue.onMounted(()=>{i(e.scrollTop)}),()=>Vue.createVNode("uni-cover-view",{"scroll-top":e.scrollTop,ref:n},[Vue.createVNode("div",{ref:o,class:"uni-cover-view"},[t.default&&t.default()],512)],8,["scroll-top"])}}),ZC=X({name:"CoverImage",compatConfig:{MODE:3},props:{src:{type:String,default:""}},emits:["load","error"],setup(e,{emit:t}){const n=Vue.ref(null),o=pe(n,t);function i(a){o("load",a)}function r(a){o("error",a)}return()=>{const{src:a}=e;return Vue.createVNode("uni-cover-image",{ref:n,src:a},[Vue.createVNode("div",{class:"uni-cover-image"},[a?Vue.createVNode("img",{src:Q(a),onLoad:i,onError:r},null,40,["src","onLoad","onError"]):null])],8,["src"])}}});function Kh(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}function Qh(e){if(e.mode===Y.TIME)return"00:00";if(e.mode===Y.DATE){const t=new Date().getFullYear()-150;switch(e.fields){case xe.YEAR:return t.toString();case xe.MONTH:return t+"-01";default:return t+"-01-01"}}return""}function Zh(e){if(e.mode===Y.TIME)return"23:59";if(e.mode===Y.DATE){const t=new Date().getFullYear()+150;switch(e.fields){case xe.YEAR:return t.toString();case xe.MONTH:return t+"-12";default:return t+"-12-31"}}return""}function Hn(e,t,n,o){const i=e.mode===Y.DATE?"-":":",r=e.mode===Y.DATE?t.dateArray:t.timeArray;let a;if(e.mode===Y.TIME)a=2;else switch(e.fields){case xe.YEAR:a=1;break;case xe.MONTH:a=2;break;default:a=3;break}const s=String(n).split(i);let l=[];for(let c=0;c<a;c++){const u=s[c];l.push(r[c].indexOf(u))}return l.indexOf(-1)>=0&&(l=o?Hn(e,t,o):l.map(()=>0)),l}const Y={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},xe={YEAR:"year",MONTH:"month",DAY:"day"},ui={PICKER:"picker",SELECT:"select"},eV={name:{type:String,default:""},range:{type:Array,default(){return[]}},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:Y.SELECTOR,validator(e){return Object.values(Y).includes(e)}},fields:{type:String,default:""},start:{type:String,default:e=>Qh(e)},end:{type:String,default:e=>Zh(e)},disabled:{type:[Boolean,String],default:!1},selectorType:{type:String,default:""}},tV=X({name:"Picker",compatConfig:{MODE:3},props:eV,emits:["change","cancel","columnchange"],setup(e,{emit:t,slots:n}){Ip();const{t:o}=U(),i=Vue.ref(null),r=Vue.ref(null),a=Vue.ref(null),s=Vue.ref(null),l=Vue.ref(!1),{state:c,rangeArray:u}=nV(e),d=pe(i,t),{system:f,selectorTypeComputed:g,_show:_,_l10nColumn:m,_l10nItem:v,_input:S,_fixInputPosition:y,_pickerViewChange:h,_cancel:p,_change:C,_resetFormData:T,_getFormData:w,_createTime:A,_createDate:N,_setValueSync:E}=sV(e,c,d,i,r,a,s);lV(c,p,C),cV(T,w),A(),N(),E();const V=Vf(c);return Vue.watchEffect(()=>{c.isDesktop=V.isDesktop.value,c.popupStyle=V.popupStyle.value}),Vue.onBeforeUnmount(()=>{r.value&&r.value.remove()}),Vue.onMounted(()=>{l.value=!0}),()=>{let I;const{visible:M,contentVisible:F,valueArray:k,popupStyle:B,valueSync:z}=c,{rangeKey:x,mode:P,start:O,end:D}=e,W=mt(e,"disabled");return Vue.createVNode("uni-picker",Vue.mergeProps({ref:i},W,{onClick:oe(_)}),[l.value?Vue.createVNode("div",{ref:r,class:["uni-picker-container",`uni-${P}-${g.value}`],onWheel:Je,onTouchmove:Je},[Vue.createVNode(Vue.Transition,{name:"uni-fade"},{default:()=>[Vue.withDirectives(Vue.createVNode("div",{class:"uni-mask uni-picker-mask",onClick:oe(p),onMousemove:y},null,40,["onClick","onMousemove"]),[[Vue.vShow,M]])]}),f.value?null:Vue.createVNode("div",{class:[{"uni-picker-toggle":M},"uni-picker-custom"],style:B.content},[Vue.createVNode("div",{class:"uni-picker-header",onClick:un},[Vue.createVNode("div",{class:"uni-picker-action uni-picker-action-cancel",onClick:oe(p)},[o("uni.picker.cancel")],8,["onClick"]),Vue.createVNode("div",{class:"uni-picker-action uni-picker-action-confirm",onClick:C},[o("uni.picker.done")],8,["onClick"])],8,["onClick"]),F?Vue.createVNode(ku,{value:m(k),class:"uni-picker-content",onChange:h},Kh(I=Vue.renderList(m(u.value),(q,$)=>{let ee;return Vue.createVNode(xu,{key:$},Kh(ee=Vue.renderList(q,(de,Me)=>Vue.createVNode("div",{key:Me,class:"uni-picker-item"},[typeof de=="object"?de[x]||"":v(de,$)])))?ee:{default:()=>[ee],_:1})}))?I:{default:()=>[I],_:1},8,["value","onChange"]):null,Vue.createVNode("div",{ref:a,class:"uni-picker-select",onWheel:un,onTouchmove:un},[Vue.renderList(u.value[0],(q,$)=>Vue.createVNode("div",{key:$,class:["uni-picker-item",{selected:k[0]===$}],onClick:()=>{k[0]=$,C()}},[typeof q=="object"?q[x]||"":q],10,["onClick"]))],40,["onWheel","onTouchmove"]),Vue.createVNode("div",{style:B.triangle},null,4)],6)],40,["onWheel","onTouchmove"]):null,Vue.createVNode("div",null,[n.default&&n.default()]),f.value?Vue.createVNode("div",{class:"uni-picker-system",onMousemove:oe(y)},[Vue.createVNode("input",{class:["uni-picker-system_input",f.value],ref:s,value:z,type:P,tabindex:"-1",min:O,max:D,onChange:q=>{S(q),un(q)}},null,42,["value","type","min","max","onChange"])],40,["onMousemove"]):null],16,["onClick"])}}});function nV(e){const t=Vue.reactive({valueSync:void 0,visible:!1,contentVisible:!1,popover:null,valueChangeSource:"",timeArray:[],dateArray:[],valueArray:[],oldValueArray:[],isDesktop:!1,popupStyle:{content:{},triangle:{}}}),n=Vue.computed(()=>{let o=e.range;switch(e.mode){case Y.SELECTOR:return[o];case Y.MULTISELECTOR:return o;case Y.TIME:return t.timeArray;case Y.DATE:{const i=t.dateArray;switch(e.fields){case xe.YEAR:return[i[0]];case xe.MONTH:return[i[0],i[1]];default:return[i[0],i[1],i[2]]}}}return[]});return{state:t,rangeArray:n}}const oV=()=>String(navigator.vendor).indexOf("Apple")===0&&navigator.maxTouchPoints>0;function iV(){const e=Vue.ref(!1);return e.value=oV(),e}const rV=()=>{if(/win|mac/i.test(navigator.platform)){if(navigator.vendor==="Google Inc.")return"chrome";if(/Firefox/.test(navigator.userAgent))return"firefox"}return""};function aV(){const e=Vue.ref("");return e.value=rV(),e}let eg;function sV(e,t,n,o,i,r,a){const s=iV(),l=aV(),c=Vue.computed(()=>{const x=e.selectorType;return Object.values(ui).includes(x)?x:s.value?ui.PICKER:ui.SELECT}),u=Vue.computed(()=>e.mode===Y.DATE&&!Object.values(xe).includes(e.fields)&&t.isDesktop?l.value:""),d=Vue.computed(()=>Hn(e,t,e.start,Qh(e))),f=Vue.computed(()=>Hn(e,t,e.end,Zh(e)));function g(x){if(e.disabled)return;t.valueChangeSource="";let P=i.value,O=x.currentTarget;P.remove(),(document.querySelector("uni-app")||document.body).appendChild(P),P.style.display="block";const D=O.getBoundingClientRect();t.popover={top:D.top,left:D.left,width:D.width,height:D.height},setTimeout(()=>{t.visible=!0},20)}function _(){return{value:t.valueSync,key:e.name}}function m(){switch(e.mode){case Y.SELECTOR:t.valueSync=0;break;case Y.MULTISELECTOR:t.valueSync=e.value.map(x=>0);break;case Y.DATE:case Y.TIME:t.valueSync="";break}}function v(){let x=[],P=[];for(let O=0;O<24;O++)x.push((O<10?"0":"")+O);for(let O=0;O<60;O++)P.push((O<10?"0":"")+O);t.timeArray.push(x,P)}function S(){let x=new Date().getFullYear(),P=x-150,O=x+150;if(e.start){const D=new Date(e.start).getFullYear();!isNaN(D)&&D<P&&(P=D)}if(e.end){const D=new Date(e.end).getFullYear();!isNaN(D)&&D>O&&(O=D)}return{start:P,end:O}}function y(){let x=[];const P=S();for(let W=P.start,q=P.end;W<=q;W++)x.push(String(W));let O=[];for(let W=1;W<=12;W++)O.push((W<10?"0":"")+W);let D=[];for(let W=1;W<=31;W++)D.push((W<10?"0":"")+W);t.dateArray.push(x,O,D)}function h(x){return x[0]*60+x[1]}function p(x){return x[0]*31*12+(x[1]||0)*31+(x[2]||0)}function C(x,P){for(let O=0;O<x.length&&O<P.length;O++)x[O]=P[O]}function T(){let x=e.value;switch(e.mode){case Y.MULTISELECTOR:{K(x)||(x=t.valueArray),K(t.valueSync)||(t.valueSync=[]);const P=t.valueSync.length=Math.max(x.length,e.range.length);for(let O=0;O<P;O++){const D=Number(x[O]),W=Number(t.valueSync[O]),q=isNaN(D)?isNaN(W)?0:W:D,$=e.range[O]?e.range[O].length-1:0;t.valueSync.splice(O,1,q<0||q>$?0:q)}}break;case Y.TIME:case Y.DATE:t.valueSync=String(x);break;default:{const P=Number(x);t.valueSync=P<0?0:P;break}}}function w(){let x=t.valueSync,P;switch(e.mode){case Y.MULTISELECTOR:P=[...x];break;case Y.TIME:P=Hn(e,t,x,Da({mode:Y.TIME}));break;case Y.DATE:P=Hn(e,t,x,Da({mode:Y.DATE}));break;default:P=[x];break}t.oldValueArray=[...P],t.valueArray=[...P]}function A(){let x=t.valueArray;switch(e.mode){case Y.SELECTOR:return x[0];case Y.MULTISELECTOR:return x.map(P=>P);case Y.TIME:return t.valueArray.map((P,O)=>t.timeArray[O][P]).join(":");case Y.DATE:return t.valueArray.map((P,O)=>t.dateArray[O][P]).join("-")}}function N(){V(),t.valueChangeSource="click";const x=A();t.valueSync=K(x)?x.map(P=>P):x,n("change",{},{value:x})}function E(x){if(u.value==="firefox"&&x){const{top:P,left:O,width:D,height:W}=t.popover,{pageX:q,pageY:$}=x;if(q>O&&q<O+D&&$>P&&$<P+W)return}V(),n("cancel",{},{})}function V(){t.visible=!1,setTimeout(()=>{let x=i.value;x.remove(),o.value.prepend(x),x.style.display="none"},260)}function I(){e.mode===Y.SELECTOR&&c.value===ui.SELECT&&(r.value.scrollTop=t.valueArray[0]*34)}function M(x){const P=x.target;t.valueSync=P.value,Vue.nextTick(()=>{N()})}function F(x){if(u.value==="chrome"){const P=o.value.getBoundingClientRect(),O=32;a.value.style.left=`${x.clientX-P.left-O*1.5}px`,a.value.style.top=`${x.clientY-P.top-O*.5}px`}}function k(x){t.valueArray=B(x.detail.value,!0)}function B(x,P){const{getLocale:O}=U();if(e.mode===Y.DATE){const D=O();if(!D.startsWith("zh"))switch(e.fields){case xe.YEAR:return x;case xe.MONTH:return[x[1],x[0]];default:switch(D){case"es":case"fr":return[x[2],x[1],x[0]];default:return P?[x[2],x[0],x[1]]:[x[1],x[2],x[0]]}}}return x}function z(x,P){const{getLocale:O}=U();if(e.mode===Y.DATE){const D=O();if(D.startsWith("zh"))return x+["年","月","日"][P];if(e.fields!==xe.YEAR&&P===(e.fields!==xe.MONTH&&(D==="es"||D==="fr")?1:0)){let W;switch(D){case"es":W=["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"];break;case"fr":W=["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"];break;default:W=["January","February","March","April","May","June","July","August","September","October","November","December"];break}return W[Number(x)-1]}}return x}return Vue.watch(()=>t.visible,x=>{x?(clearTimeout(eg),t.contentVisible=x,I()):eg=setTimeout(()=>{t.contentVisible=x},300)}),Vue.watch([()=>e.mode,()=>e.value,()=>e.range],T,{deep:!0}),Vue.watch(()=>t.valueSync,w,{deep:!0}),Vue.watch(()=>t.valueArray,x=>{if(e.mode===Y.TIME||e.mode===Y.DATE){const P=e.mode===Y.TIME?h:p,O=t.valueArray,D=d.value,W=f.value;if(e.mode===Y.DATE){const q=t.dateArray,$=q[2].length,ee=Number(q[2][O[2]])||1,de=new Date(`${q[0][O[0]]}/${q[1][O[1]]}/${ee}`).getDate();de<ee&&(O[2]-=de+$-ee)}P(O)<P(D)?C(O,D):P(O)>P(W)&&C(O,W)}x.forEach((P,O)=>{P!==t.oldValueArray[O]&&(t.oldValueArray[O]=P,e.mode===Y.MULTISELECTOR&&n("columnchange",{},{column:O,value:P}))})}),{selectorTypeComputed:c,system:u,_show:g,_cancel:E,_change:N,_l10nColumn:B,_l10nItem:z,_input:M,_resetFormData:m,_getFormData:_,_createTime:v,_createDate:y,_setValueSync:T,_fixInputPosition:F,_pickerViewChange:k}}function lV(e,t,n){const{key:o,disable:i}=ti();Vue.watchEffect(()=>{i.value=!e.visible}),Vue.watch(o,r=>{r==="esc"?t():r==="enter"&&n()})}function cV(e,t){const n=Vue.inject(Fe,!1);if(n){const o={reset:e,submit:()=>{const i=["",null],{key:r,value:a}=t();return r!==""&&(i[0]=r,i[1]=a),i}};n.addField(o),Vue.onBeforeUnmount(()=>{n.removeField(o)})}}const uV=Pt("ad"),dV=Pt("ad-content-page"),fV=Pt("ad-draw"),hV=Pt("camera"),gV=Pt("live-player"),pV=Pt("live-pusher"),mV=L(Fp,{publishHandler(e,t,n){UniServiceJSBridge.subscribeHandler(e,t,n)}}),tg=WC,vV=L(xm,{publishHandler(e,t,n){UniViewJSBridge.subscribeHandler(e,t,n)}});function _V(e){const{r:t,g:n,b:o}=it(e);return`rgba(${t},${n},${o},0)`}function yV(e,{id:t,navigationBar:{titleColor:n,coverage:o,backgroundColor:i}}){let r=0;const a=Vue.computed(()=>it(i)),s=parseInt(o);let l,c;const u=[],d=[],f=[];Vue.onMounted(()=>{const g=e.value;c=g.style,l=g.querySelector(".uni-page-head__title");const _=g.querySelectorAll(".uni-page-head-btn"),m=g.querySelectorAll("svg path");for(let v=0;v<m.length;v++)u.push(m[v]);for(let v=0;v<_.length;v++){const S=_[v];f.push(getComputedStyle(S).backgroundColor),d.push(S.style)}}),aT(t+".onPageScroll",({scrollTop:g})=>{const _=Math.min(g/s,1);if(_===1&&r===1)return;_>.5&&r<=.5?u.forEach(function(v){v.setAttribute("fill",n)}):_<=.5&&r>.5&&u.forEach(function(v){v.setAttribute("fill","#fff")}),r=_,l&&(l.style.opacity=_);const m=a.value;c.backgroundColor=`rgba(${m.r},${m.g},${m.b},${_})`,d.forEach(function(v,S){const h=f[S].match(/[\d+\.]+/g);h[3]=(1-_)*(h.length===4?h[3]:1),v.backgroundColor=`rgba(${h})`})})}const ng={none:"",forward:"M11 7.844q-0.25-0.219-0.25-0.578t0.25-0.578q0.219-0.25 0.563-0.25t0.563 0.25l9.656 9.125q0.125 0.125 0.188 0.297t0.063 0.328q0 0.188-0.063 0.359t-0.188 0.297l-9.656 9.125q-0.219 0.25-0.563 0.25t-0.563-0.25q-0.25-0.219-0.25-0.578t0.25-0.609l9.063-8.594-9.063-8.594z",back:gn,select:gn,share:"M26.563 24.844q0 0.125-0.109 0.234t-0.234 0.109h-17.938q-0.125 0-0.219-0.109t-0.094-0.234v-13.25q0-0.156 0.094-0.25t0.219-0.094h5.5v-1.531h-6q-0.531 0-0.906 0.391t-0.375 0.922v14.375q0 0.531 0.375 0.922t0.906 0.391h18.969q0.531 0 0.891-0.391t0.359-0.953v-5.156h-1.438v4.625zM29.813 10.969l-5.125-5.375-1.031 1.094 3.438 3.594-3.719 0.031q-2.313 0.188-4.344 1.125t-3.578 2.422-2.5 3.453-1.109 4.188l-0.031 0.25h1.469v-0.219q0.156-1.875 1-3.594t2.25-3.063 3.234-2.125 3.828-0.906l0.188-0.031 3.313-0.031-3.438 3.625 1.031 1.063 5.125-5.375-0.031-0.063 0.031-0.063z",favorite:"M27.594 13.375q-0.063-0.188-0.219-0.313t-0.344-0.156l-7.094-0.969-3.219-6.406q-0.094-0.188-0.25-0.281t-0.375-0.094q-0.188 0-0.344 0.094t-0.25 0.281l-3.125 6.438-7.094 1.094q-0.188 0.031-0.344 0.156t-0.219 0.313q-0.031 0.188 0.016 0.375t0.172 0.313l5.156 4.969-1.156 7.063q-0.031 0.188 0.047 0.375t0.234 0.313q0.094 0.063 0.188 0.094t0.219 0.031q0.063 0 0.141-0.031t0.172-0.063l6.313-3.375 6.375 3.313q0.063 0.031 0.141 0.047t0.172 0.016q0.188 0 0.344-0.094t0.25-0.281q0.063-0.094 0.078-0.234t-0.016-0.234q0-0.031 0-0.063l-1.25-6.938 5.094-5.031q0.156-0.156 0.203-0.344t-0.016-0.375zM11.469 19.063q0.031-0.188-0.016-0.344t-0.172-0.281l-4.406-4.25 6.063-0.906q0.156-0.031 0.297-0.125t0.203-0.25l2.688-5.531 2.75 5.5q0.063 0.156 0.203 0.25t0.297 0.125l6.094 0.844-4.375 4.281q-0.125 0.125-0.172 0.297t-0.016 0.328l1.063 6.031-5.438-2.813q-0.156-0.094-0.328-0.078t-0.297 0.078l-5.438 2.875 1-6.031z",home:"M23.719 16.5q-0.313 0-0.531 0.219t-0.219 0.5v7.063q0 0.219-0.172 0.391t-0.391 0.172h-12.344q-0.25 0-0.422-0.172t-0.172-0.391v-7.063q0-0.281-0.219-0.5t-0.531-0.219q-0.281 0-0.516 0.219t-0.234 0.5v7.063q0.031 0.844 0.625 1.453t1.438 0.609h12.375q0.844 0 1.453-0.609t0.609-1.453v-7.063q0-0.125-0.063-0.266t-0.156-0.234q-0.094-0.125-0.234-0.172t-0.297-0.047zM26.5 14.875l-8.813-8.813q-0.313-0.313-0.688-0.453t-0.781-0.141-0.781 0.141-0.656 0.422l-8.813 8.844q-0.188 0.219-0.188 0.516t0.219 0.484q0.094 0.125 0.234 0.172t0.297 0.047q0.125 0 0.25-0.047t0.25-0.141l8.781-8.781q0.156-0.156 0.406-0.156t0.406 0.156l8.813 8.781q0.219 0.188 0.516 0.188t0.516-0.219q0.188-0.188 0.203-0.484t-0.172-0.516z",menu:"M8.938 18.313q0.875 0 1.484-0.609t0.609-1.453-0.609-1.453-1.484-0.609q-0.844 0-1.453 0.609t-0.609 1.453 0.609 1.453 1.453 0.609zM16.188 18.313q0.875 0 1.484-0.609t0.609-1.453-0.609-1.453-1.484-0.609q-0.844 0-1.453 0.609t-0.609 1.453 0.609 1.453 1.453 0.609zM23.469 18.313q0.844 0 1.453-0.609t0.609-1.453-0.609-1.453-1.453-0.609q-0.875 0-1.484 0.609t-0.609 1.453 0.609 1.453 1.484 0.609z",close:Pi},bV=ge({name:"PageHead",setup(){const e=Vue.ref(null),t=Ot(),n=mf(t.navigationBar,()=>{const s=Dn(t.navigationBar);n.backgroundColor=s.backgroundColor,n.titleColor=s.titleColor}),{clazz:o,style:i}=AV(n),r=__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__&&EV(t),a=__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__&&n.searchInput&&IV(t);return __UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__&&n.type==="transparent"&&yV(e,t),()=>{const s=__UNI_FEATURE_PAGES__?wV(n,t.isQuit):null,l=__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__?og(r.left):[],c=__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__?og(r.right):[],u=n.type||"default",d=u!=="transparent"&&u!=="float"&&Vue.createVNode("div",{class:{"uni-placeholder":!0,"uni-placeholder-titlePenetrate":n.titlePenetrate}},null,2);return Vue.createVNode("uni-page-head",{"uni-page-head-type":u},[Vue.createVNode("div",{ref:e,class:o.value,style:i.value},[Vue.createVNode("div",{class:"uni-page-head-hd"},[s,...l]),SV(n,a),Vue.createVNode("div",{class:"uni-page-head-ft"},[...c])],6),d],8,["uni-page-head-type"])}}});function wV(e,t){if(!t)return Vue.createVNode("div",{class:"uni-page-head-btn",onClick:VV},[ce(gn,e.type==="transparent"?"#fff":e.titleColor,26)],8,["onClick"])}function og(e){return e.map(({onClick:t,btnClass:n,btnStyle:o,btnText:i,btnIconPath:r,badgeText:a,iconStyle:s,btnSelect:l},c)=>Vue.createVNode("div",{key:c,class:n,style:o,onClick:t,"badge-text":a},[r?ce(r,s.color,s.fontSize):l?Vue.createVNode("span",{style:s},[Vue.createVNode("i",{class:"uni-btn-icon",innerHTML:i},null,8,["innerHTML"]),ce(ng.select,"#000",14)],4):Vue.createVNode("i",{class:"uni-btn-icon",style:s,innerHTML:i},null,12,["innerHTML"])],14,["onClick","badge-text"]))}function SV(e,t){return!__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__||!e.searchInput?TV(e):CV(e,t)}function TV({type:e,loading:t,titleSize:n,titleText:o,titleImage:i}){return Vue.createVNode("div",{class:"uni-page-head-bd"},[Vue.createVNode("div",{style:{fontSize:n,opacity:e==="transparent"?0:1},class:"uni-page-head__title"},[t?Vue.createVNode("i",{class:"uni-loading"},null):i?Vue.createVNode("img",{src:i,class:"uni-page-head__title_image"},null,8,["src"]):o],4)])}function CV(e,{text:t,focus:n,composing:o,onBlur:i,onFocus:r,onInput:a,onConfirm:s,onClick:l}){const{color:c,align:u,autoFocus:d,disabled:f,borderRadius:g,backgroundColor:_,placeholder:m,placeholderColor:v}=e.searchInput,S={borderRadius:g,backgroundColor:_},y=["uni-page-head-search-placeholder",`uni-page-head-search-placeholder-${n.value||t.value?"left":u}`];return Vue.createVNode("div",{class:"uni-page-head-search",style:S},[Vue.createVNode("div",{style:{color:v},class:y},[Vue.createVNode("div",{class:"uni-page-head-search-icon"},[ce(gs,v,20)]),t.value||o.value?"":m],6),f?Vue.createVNode(Ho,{disabled:!0,style:{color:c},"placeholder-style":"color: "+v,class:"uni-page-head-search-input","confirm-type":"search",onClick:l},null,8,["style","placeholder-style","onClick"]):Vue.createVNode(Ho,{focus:d,style:{color:c},"placeholder-style":"color: "+v,class:"uni-page-head-search-input","confirm-type":"search",onFocus:r,onBlur:i,onInput:a,onConfirm:s},null,8,["focus","style","placeholder-style","onFocus","onBlur","onInput","onConfirm"])],4)}function VV(){getCurrentPages().length===1?uni.reLaunch({url:"/"}):uni.navigateBack({from:"backbutton",success(){}})}function AV(e){const t=Vue.computed(()=>{const{type:o,titlePenetrate:i,shadowColorType:r}=e,a={"uni-page-head":!0,"uni-page-head-transparent":o==="transparent","uni-page-head-titlePenetrate":i==="YES","uni-page-head-shadow":!!r};return r&&(a[`uni-page-head-shadow-${r}`]=!0),a}),n=Vue.computed(()=>({backgroundColor:__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__&&e.type==="transparent"?_V(e.backgroundColor):e.backgroundColor,color:e.titleColor,transitionDuration:e.duration,transitionTimingFunction:e.timingFunc}));return{clazz:t,style:n}}function EV({id:e,navigationBar:t}){const n=[],o=[],{buttons:i}=t;if(K(i)){const{type:r}=t,a=r==="transparent",s=Object.create(null);i.forEach((l,c)=>{if(l.fontSrc&&!l.fontFamily){const d=Q(l.fontSrc);let f=s[d];f||(f=`font${Date.now()}`,s[d]=f,Vue.onBeforeMount(()=>Zp("uni-btn-"+f,`@font-face{font-family: "${f}";src: url("${d}") format("truetype")}`))),l.fontFamily=f}const u=kV(e,c,l,a);l.float==="left"?n.push(u):o.push(u)})}return{left:n,right:o}}function kV(e,t,n,o){const i={color:n.color,fontSize:n.fontSize,fontWeight:n.fontWeight};return n.fontFamily&&(i.fontFamily=n.fontFamily),new Proxy({btnClass:{"uni-page-head-btn":!0,"uni-page-head-btn-red-dot":!!(n.redDot||n.badgeText),"uni-page-head-btn-select":!!n.select},btnStyle:{backgroundColor:o?n.background:"transparent",width:n.width},btnText:"",btnIconPath:ng[n.type],badgeText:n.badgeText,iconStyle:i,onClick(){re(e,ka,L({index:t},n))},btnSelect:n.select},{get(r,a,s){return["btnText"].includes(a)?n.fontSrc&&n.fontFamily?n.text.replace("\\u","&#x"):n.text:Reflect.get(r,a,s)}})}function IV({id:e,navigationBar:{searchInput:t}}){const n=Vue.ref(!1),o=Vue.ref(""),i=Vue.ref(!1),{disabled:r}=t;return r?{focus:n,text:o,composing:i,onClick:()=>{re(e,Na)}}:{focus:n,text:o,composing:i,onFocus:()=>{n.value=!0,re(e,yi,{focus:!0})},onBlur:()=>{n.value=!1,re(e,yi,{focus:!1})},onInput:u=>{o.value=u.detail.value,re(e,xa,{text:o.value})},onConfirm:u=>{re(e,Ma,{text:o.value})}}}const NV={name:"PageRefresh",setup(){const{pullToRefresh:e}=Ot();return{offset:e.offset,color:e.color}}},xV=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},MV={class:"uni-page-refresh-inner"},PV=["fill"],OV=[Vue.createElementVNode("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null,-1),Vue.createElementVNode("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1)],RV={class:"uni-page-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},LV=["stroke"];function BV(e,t,n,o,i,r){return Vue.openBlock(),Vue.createElementBlock("uni-page-refresh",null,[Vue.createElementVNode("div",{style:Vue.normalizeStyle({"margin-top":o.offset+"px"}),class:"uni-page-refresh"},[Vue.createElementVNode("div",MV,[(Vue.openBlock(),Vue.createElementBlock("svg",{fill:o.color,class:"uni-page-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},OV,8,PV)),(Vue.openBlock(),Vue.createElementBlock("svg",RV,[Vue.createElementVNode("circle",{stroke:o.color,class:"uni-page-refresh__path",cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"},null,8,LV)]))])],4)])}const DV=xV(NV,[["render",BV]]);function ig(e,t,n){const o=Array.prototype.slice.call(e.changedTouches).filter(i=>i.identifier===t)[0];return o?(e.deltaY=o.pageY-n,!0):!1}const di="pulling",fi="reached",rg="aborting",hi="refreshing",ag="restoring";function UV(e){const t=Ot(),{id:n,pullToRefresh:o}=t,{range:i,height:r}=o;let a,s,l,c;Gt(()=>{t.enablePullDownRefresh&&(_||(_=hi,y(),setTimeout(()=>{N()},50)))},ir,!1,n),Gt(()=>{t.enablePullDownRefresh&&_===hi&&(h(),_=ag,y(),E(()=>{h(),_=m=v=null}))},rr,!1,n);function u(){a=e.value.$el,s=a.querySelector(".uni-page-refresh"),l=s.style,c=s.querySelector(".uni-page-refresh-inner").style}Vue.onMounted(()=>{u()});let d,f,g,_,m=null,v=null;function S(V){_&&a&&a.classList[V]("uni-page-refresh--"+_)}function y(){S("add")}function h(){S("remove")}function p(V){if(!s)return;let I=V/i;I>1?I=1:I=I*I*I;const M=Math.round(V/(i/r))||0;c.transform="rotate("+360*I+"deg)",l.clip="rect("+(45-M)+"px,45px,45px,-5px)",l.transform="translate3d(-50%, "+M+"px, 0)"}const C=oe(V=>{if(!t.enablePullDownRefresh)return;const I=V.changedTouches[0];d=I.identifier,f=I.pageY,[rg,hi,ag].indexOf(_)>=0?g=!1:g=!0}),T=oe(V=>{if(!t.enablePullDownRefresh||!g||!ig(V,d,f))return;let{deltaY:I}=V;if((document.documentElement.scrollTop||document.body.scrollTop)!==0){d=null;return}if(I<0&&!_)return;V.cancelable&&V.preventDefault(),m===null&&(v=I,_=di,y()),I=I-v,I<0&&(I=0),m=I;const M=I>=i&&_!==fi,F=I<i&&_!==di;(M||F)&&(h(),_=_===fi?di:fi,y()),p(I)}),w=oe(V=>{t.enablePullDownRefresh&&ig(V,d,f)&&_!==null&&(_===di?(h(),_=rg,y(),A(()=>{h(),_=m=v=null})):_===fi&&(h(),_=hi,y(),N()))});function A(V){if(s)if(l.transform){l.transition="-webkit-transform 0.3s",l.transform="translate3d(-50%, 0, 0)";const I=function(){M&&clearTimeout(M),s.removeEventListener("webkitTransitionEnd",I),l.transition="",V()};s.addEventListener("webkitTransitionEnd",I);const M=setTimeout(I,350)}else V()}function N(){s&&(l.transition="-webkit-transform 0.2s",l.transform="translate3d(-50%, "+r+"px, 0)",re(n,Ea))}function E(V){if(!s)return;l.transition="-webkit-transform 0.3s",l.transform+=" scale(0.01)";const I=function(){M&&clearTimeout(M),s.removeEventListener("webkitTransitionEnd",I),l.transition="",l.transform="translate3d(-50%, 0, 0)",V()};s.addEventListener("webkitTransitionEnd",I);const M=setTimeout(I,350)}return{onTouchstartPassive:C,onTouchmove:T,onTouchend:w,onTouchcancel:w}}const FV=ge({name:"PageBody",setup(e,t){const n=__UNI_FEATURE_PULL_DOWN_REFRESH__&&Ot(),o=__UNI_FEATURE_PULL_DOWN_REFRESH__&&Vue.ref(null),i=Vue.ref(null),r=__UNI_FEATURE_PULL_DOWN_REFRESH__&&n.enablePullDownRefresh?UV(o):null,a=Vue.ref(null);return Vue.watch(()=>n.enablePullDownRefresh,()=>{a.value=n.enablePullDownRefresh?r:null},{immediate:!0}),()=>{const s=__UNI_FEATURE_PULL_DOWN_REFRESH__&&$V(o,n);return Vue.createVNode(Vue.Fragment,null,[s,Vue.createVNode("uni-page-wrapper",Vue.mergeProps({ref:i},a.value),[Vue.createVNode("uni-page-body",null,[Vue.renderSlot(t.slots,"default")]),null],16)])}}});function $V(e,t){return!__UNI_FEATURE_PULL_DOWN_REFRESH__||!t.enablePullDownRefresh?null:Vue.createVNode(DV,{ref:e},null,512)}const zV=ge({name:"Page",setup(e,t){let n=h0(Ui());const o=n.navigationBar,i={};return uC(n),Vue.getCurrentInstance(),()=>Vue.createVNode("uni-page",{"data-page":n.route,style:i},__UNI_FEATURE_NAVIGATIONBAR__&&o.style!=="custom"?[Vue.createVNode(bV),sg(t),null]:[sg(t),null])}});function sg(e){return Vue.openBlock(),Vue.createBlock(FV,{key:0},{default:Vue.withCtx(()=>[Vue.renderSlot(e.slots,"page")]),_:3})}function HV(e){e.use(Wu);const t=window.top||window;t.uni=window.uni=tg,t.getApp=window.getApp=qu}b.$emit=ul,b.$off=cl,b.$on=sl,b.$once=ll,b.Ad=uV,b.AdContentPage=dV,b.AdDraw=fV,b.AsyncErrorComponent=Ko,b.AsyncLoadingComponent=Jo,b.Button=d0,b.Camera=hV,b.Canvas=nw,b.Checkbox=sw,b.CheckboxGroup=rw,b.CoverImage=ZC,b.CoverView=QC,b.Editor=Nw,b.Form=a0,b.Icon=Pw,b.Image=Lw,b.Input=Ho,b.Label=u0,b.LayoutComponent=Jf,b.LivePlayer=gV,b.LivePusher=pV,b.Map=ya,b.MovableArea=_u,b.MovableView=Tu,b.Navigator=mS,b.PageComponent=zV,b.Picker=tV,b.PickerView=ku,b.PickerViewColumn=xu,b.Progress=VS,b.Radio=IS,b.RadioGroup=ES,b.ResizeSensor=je,b.RichText=DS,b.ScrollView=Lu,b.Slider=zS,b.Swiper=Bu,b.SwiperItem=Du,b.Switch=KS,b.Text=tT,b.Textarea=iT,b.UniServiceJSBridge=vV,b.UniViewJSBridge=mV,b.Video=GT,b.View=rT,b.WebView=XT,b.__f__=dl,b.addInterceptor=il,b.addPhoneContact=qh,b.arrayBufferToBase64=Js,b.base64ToArrayBuffer=Xs,b.canIUse=Ac,b.canvasGetImageData=Sl,b.canvasPutImageData=Tl,b.canvasToTempFilePath=Cl,b.chooseFile=Ld,b.chooseImage=Bd,b.chooseLocation=af,b.chooseVideo=qd,b.clearStorage=kd,b.clearStorageSync=ra,b.closePreviewImage=Wd,b.closeSocket=Zd,b.connectSocket=Jd,b.createAnimation=Ol,b.createCameraContext=ph,b.createCanvasContext=wl,b.createInnerAudioContext=id,b.createIntersectionObserver=kl,b.createLivePlayerContext=vh,b.createMapContext=hl,b.createMediaQueryObserver=Nl,b.createSelectorQuery=Ml,b.createVideoContext=fl,b.cssBackdropFilter=Mo,b.cssConstant=xo,b.cssEnv=No,b.cssVar=mr,b.downloadFile=Yd,b.getApp=qu,b.getAppBaseInfo=jr,b.getClipboardData=_d,b.getCurrentPages=pb,b.getDeviceInfo=Gr,b.getElementById=ch,b.getEnterOptionsSync=tc,b.getFileInfo=Nd,b.getImageInfo=Pd,b.getLaunchOptionsSync=nc,b.getLeftWindowStyle=rh,b.getLocale=yo,b.getLocation=Rn,b.getNetworkType=Jr,b.getProvider=Xh,b.getPushClientId=ac,b.getRealPath=Q,b.getRecorderManager=fh,b.getRightWindowStyle=sh,b.getSavedFileInfo=Th,b.getSavedFileList=wh,b.getScreenBrightness=Uh,b.getSelectedTextRange=Wl,b.getStorage=Ad,b.getStorageInfo=Id,b.getStorageInfoSync=aa,b.getStorageSync=Vd,b.getSystemInfo=ld,b.getSystemInfoSync=Yr,b.getTabBarPageId=Ao,b.getTopWindowStyle=oh,b.getVideoInfo=Od,b.getWindowInfo=Wr,b.hideActionSheet=Af,b.hideKeyboard=Md,b.hideLeftWindow=eh,b.hideLoading=Cf,b.hideModal=vf,b.hideNavigationBarLoading=Nf,b.hideRightWindow=nh,b.hideTabBar=Bf,b.hideTabBarRedDot=Uf,b.hideToast=Tf,b.hideTopWindow=Qf,b.install=HV,b.interceptors=al,b.invokePushCallback=ic,b.loadFontFace=ma,b.login=jh,b.makePhoneCall=rd,b.navigateBack=hf,b.navigateTo=gf,b.offAccelerometerChange=hd,b.offAppHide=ec,b.offAppShow=Ql,b.offCompassChange=ea,b.offError=Jl,b.offLocationChange=uf,b.offLocationChangeError=ff,b.offNetworkStatusChange=dd,b.offPageNotFound=Yl,b.offPushMessage=lc,b.offThemeChange=Sd,b.offUnhandledRejection=Gl,b.offWindowResize=Dl,b.onAccelerometerChange=fd,b.onAppHide=Zl,b.onAppShow=Kl,b.onCompassChange=Zr,b.onCreateVueApp=ja,b.onError=Xl,b.onGyroscopeChange=Ih,b.onLocaleChange=Fl,b.onLocationChange=cf,b.onLocationChangeError=df,b.onMemoryWarning=Eh,b.onNetworkStatusChange=ud,b.onPageNotFound=jl,b.onPushMessage=sc,b.onSocketClose=of,b.onSocketError=tf,b.onSocketMessage=nf,b.onSocketOpen=ef,b.onTabBarMidButtonTap=Ll,b.onThemeChange=wd,b.onUnhandledRejection=ql,b.onUserCaptureScreen=Hh,b.onWindowResize=Bl,b.openDocument=xd,b.openLocation=rf,b.pageScrollTo=Mf,b.plugin=Wu,b.preloadPage=pf,b.previewImage=Hd,b.reLaunch=Tc,b.redirectTo=Sc,b.removeAllPages=ko,b.removeInterceptor=rl,b.removeLastPage=Eo,b.removeNonTabBarPages=Vo,b.removeSavedFile=Vh,b.removeStorage=Ed,b.removeStorageSync=ia,b.removeTabBarBadge=$f,b.request=ua,b.rpx2px=vo,b.saveFile=yh,b.saveImageToPhotosAlbum=uh,b.saveVideoToPhotosAlbum=hh,b.scanCode=Rh,b.sendSocketMessage=Qd,b.setClipboardData=yd,b.setKeepScreenOn=$h,b.setLeftWindowStyle=ah,b.setLocale=$l,b.setNavigationBarColor=kf,b.setNavigationBarTitle=xf,b.setPageMeta=zl,b.setRightWindowStyle=lh,b.setScreenBrightness=Bh,b.setStorage=Td,b.setStorageSync=oa,b.setTabBarBadge=zf,b.setTabBarItem=Rf,b.setTabBarStyle=Lf,b.setTopWindowStyle=ih,b.setupApp=OT,b.setupPage=PT,b.setupWindow=MT,b.showActionSheet=Ef,b.showLeftWindow=Zf,b.showLoading=Sf,b.showModal=_f,b.showNavigationBarLoading=If,b.showRightWindow=th,b.showTabBar=Df,b.showTabBarRedDot=Ff,b.showToast=wf,b.showTopWindow=Kf,b.startAccelerometer=Kr,b.startCompass=ta,b.startGyroscope=xh,b.startLocationUpdate=sf,b.startPullDownRefresh=Pf,b.stopAccelerometer=Qr,b.stopCompass=na,b.stopGyroscope=Ph,b.stopLocationUpdate=lf,b.stopPullDownRefresh=Of,b.switchTab=wc,b.uni=tg,b.uploadFile=Xd,b.upx2px=vo,b.useI18n=U,b.useTabBar=Vn,b.vibrateLong=md,b.vibrateShort=pd,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})}));
|
|
16
|
+
<div>`;i.setLabel({content:F,direction:"bottom-right"})}else{const F=o(M);i.setLabel({text:A.content,color:M.color,fontSize:M.fontSize,className:F})}}const E=h.callout||{};let V=i.callout,I;if(E.content||g){ue()&&E.content&&(E.content=E.content.replaceAll(`
|
|
17
|
+
`,"<br/>"));const M="0px 0px 3px 1px rgba(0,0,0,0.5)";let F=-m/2;if((h.width||h.height)&&(F+=14-m/2),I=E.content?{position:v,map:s,top:S,offsetY:F,content:E.content,color:E.color,fontSize:E.fontSize,borderRadius:E.borderRadius,bgColor:E.bgColor,padding:E.padding,boxShadow:E.boxShadow||M,display:E.display}:{position:v,map:s,top:S,offsetY:F,content:g,boxShadow:M},V)V.setOption(I);else if(ue()){const k=()=>{t!==""&&l("callouttap",{},{markerId:Number(t)})};V=i.callout=new c.Callout(I,k)}else V=i.callout=new c.Callout(I),V.div.onclick=function(k){t!==""&&l("callouttap",k,{markerId:Number(t)}),k.stopPropagation(),k.preventDefault()},ot().type===Ne.GOOGLE&&(V.div.ontouchstart=function(k){k.stopPropagation()},V.div.onpointerdown=function(k){k.stopPropagation()})}else V&&(a(V),delete i.callout)},h.iconPath?_.src=Q(h.iconPath):console.error("Marker.iconPath is required.")}function d(h){ie()||(i=new c.Marker({map:s,flat:!0,autoRotation:!1})),u(h);const g=c.event||c.Event;ie()||g.addListener(i,"click",()=>{const v=i.callout;if(v&&!v.alwaysVisible){if(ue())v.visible=!v.visible,v.visible?i.callout.createAMapText():i.callout.removeAMapText();else if(v.set("visible",!v.visible),v.visible){const _=v.div,m=_.parentNode;m.removeChild(_),m.appendChild(_)}}t&&l("markertap",{},{markerId:Number(t),latitude:h.latitude,longitude:h.longitude})})}d(e),Vue.watch(e,u)}),t){const s=Vue.inject("addMapChidlContext"),c=Vue.inject("removeMapChidlContext"),l={id:t,translate(u){n((d,h,g)=>{const v=u.destination,_=u.duration,m=!!u.autoRotate;let w=Number(u.rotate)||0,C=0;"getRotation"in i&&(C=i.getRotation());const f=i.getPosition(),p=new h.LatLng(v.latitude,v.longitude),S=h.geometry.spherical.computeDistanceBetween(f,p)/1e3,T=(typeof _=="number"?_:1e3)/(1e3*60*60),b=S/T,A=h.event||h.Event,N=A.addListener(i,"moving",I=>{const M=I.latLng,F=i.label;F&&F.setPosition(M);const k=i.callout;k&&k.setPosition(M)}),E=A.addListener(i,"moveend",()=>{E.remove(),N.remove(),i.lastPosition=f,i.setPosition(p);const I=i.label;I&&I.setPosition(p);const M=i.callout;M&&M.setPosition(p);const F=u.animationEnd;G(F)&&F()});let V=0;m&&(i.lastPosition&&(V=h.geometry.spherical.computeHeading(i.lastPosition,f)),w=h.geometry.spherical.computeHeading(f,p)-V),"setRotation"in i&&i.setRotation(C+w),"moveTo"in i?i.moveTo(p,b):(i.setPosition(p),A.trigger(i,"moveend",{}))})}};s(l),Vue.onUnmounted(()=>c(l))}return Vue.onUnmounted(r),()=>null}});function it(e){if(!e)return{r:0,g:0,b:0,a:0};let t=e.slice(1);const n=t.length;if(![3,4,6,8].includes(n))return{r:0,g:0,b:0,a:0};(n===3||n===4)&&(t=t.replace(/(\w{1})/g,"$1$1"));let[o,i,r,a]=t.match(/(\w{2})/g);const s=parseInt(o,16),c=parseInt(i,16),l=parseInt(r,16);return a?{r:s,g:c,b:l,a:(`0x100${a}`-65536)/255}:{r:s,g:c,b:l,a:1}}const f1=ge({name:"MapPolyline",props:{points:{type:Array,require:!0},color:{type:String,default:"#000000"},width:{type:[Number,String],default:""},dottedLine:{type:[Boolean,String],default:!1},arrowLine:{type:[Boolean,String],default:!1},arrowIconPath:{type:String,default:""},borderColor:{type:String,default:"#000000"},borderWidth:{type:[Number,String],default:""},colorList:{type:Array,default(){return[]}},level:{type:String,default:""}},setup(e){const t=Vue.inject("onMapReady");let n,o;function i(){n&&n.setMap(null),o&&o.setMap(null)}return t((r,a)=>{function s(l){i(),c(l)}function c(l){const u=[];l.points.forEach(b=>{let A;ue()?A=[b.longitude,b.latitude]:ie()?A=new a.Point(b.longitude,b.latitude):A=new a.LatLng(b.latitude,b.longitude),u.push(A)});const d=Number(l.width)||1,{r:h,g,b:v,a:_}=it(l.color),{r:m,g:w,b:C,a:f}=it(l.borderColor),p={map:r,clickable:!1,path:u,strokeWeight:d,strokeColor:l.color||void 0,strokeDashStyle:l.dottedLine?"dash":"solid"},S=Number(l.borderWidth)||0,T={map:r,clickable:!1,path:u,strokeWeight:d+S*2,strokeColor:l.borderColor||void 0,strokeDashStyle:l.dottedLine?"dash":"solid"};"Color"in a?(p.strokeColor=new a.Color(h,g,v,_),T.strokeColor=new a.Color(m,w,C,f)):(p.strokeColor=`rgb(${h}, ${g}, ${v})`,p.strokeOpacity=_,T.strokeColor=`rgb(${m}, ${w}, ${C})`,T.strokeOpacity=f),S&&(o=new a.Polyline(T)),ie()?(n=new a.Polyline(p.path,p),r.addOverlay(n)):n=new a.Polyline(p)}c(e),Vue.watch(e,s)}),Vue.onUnmounted(i),()=>null}}),h1=ge({name:"MapCircle",props:{latitude:{type:[Number,String],require:!0},longitude:{type:[Number,String],require:!0},color:{type:String,default:"#000000"},fillColor:{type:String,default:"#00000000"},radius:{type:[Number,String],require:!0},strokeWidth:{type:[Number,String],default:""},level:{type:String,default:""}},setup(e){const t=Vue.inject("onMapReady");let n;function o(){n&&n.setMap(null)}return t((i,r)=>{function a(c){o(),s(c)}function s(c){const l=ue()||ie()?[c.longitude,c.latitude]:new r.LatLng(c.latitude,c.longitude),u={map:i,center:l,clickable:!1,radius:c.radius,strokeWeight:Number(c.strokeWidth)||1,strokeDashStyle:"solid"};if(ie())u.strokeColor=c.color,u.fillColor=c.fillColor||"#000",u.fillOpacity=1;else{const{r:d,g:h,b:g,a:v}=it(c.fillColor),{r:_,g:m,b:w,a:C}=it(c.color);"Color"in r?(u.fillColor=new r.Color(d,h,g,v),u.strokeColor=new r.Color(_,m,w,C)):(u.fillColor=`rgb(${d}, ${h}, ${g})`,u.fillOpacity=v,u.strokeColor=`rgb(${_}, ${m}, ${w})`,u.strokeOpacity=C)}if(ie()){let d=new r.Point(u.center[0],u.center[1]);n=new r.Circle(d,u.radius,u),i.addOverlay(n)}else n=new r.Circle(u),ue()&&i.add(n)}s(e),Vue.watch(e,a)}),Vue.onUnmounted(o),()=>null}}),g1=ge({name:"MapControl",props:{id:{type:[Number,String],default:""},position:{type:Object,required:!0},iconPath:{type:String,required:!0},clickable:{type:[Boolean,String],default:""},trigger:{type:Function,required:!0}},setup(e){const t=Vue.computed(()=>Q(e.iconPath)),n=Vue.computed(()=>{let i=`top:${e.position.top||0}px;left:${e.position.left||0}px;`;return e.position.width&&(i+=`width:${e.position.width}px;`),e.position.height&&(i+=`height:${e.position.height}px;`),i}),o=i=>{e.clickable&&e.trigger("controltap",i,{controlId:e.id})};return()=>Vue.createVNode("div",{class:"uni-map-control"},[Vue.createVNode("img",{src:t.value,style:n.value,class:"uni-map-control-icon",onClick:o},null,12,["src","onClick"])])}}),p1=ne(()=>{kc.forEach(e=>{qr.prototype[e]=function(t){G(t)&&this._events[e].push(t)}}),Ov.forEach(e=>{qr.prototype[e]=function(t){var n=this._events[e.replace("off","on")],o=n.indexOf(t);o>=0&&n.splice(o,1)}})});class qr{constructor(){this._src="";var t=this._audio=new Audio;this._stoping=!1,["src","autoplay","loop","duration","currentTime","paused","volume"].forEach(r=>{Object.defineProperty(this,r,{set:r==="src"?a=>(t.src=Q(a),this._src=a,a):a=>(t[r]=a,a),get:r==="src"?()=>this._src:()=>t[r]})}),this.startTime=0,Object.defineProperty(this,"obeyMuteSwitch",{set:()=>!1,get:()=>!1}),Object.defineProperty(this,"buffered",{get(){var r=t.buffered;return r.length?r.end(r.length-1):0}}),this._events={},kc.forEach(r=>{this._events[r]=[]}),t.addEventListener("loadedmetadata",()=>{var r=Number(this.startTime)||0;r>0&&(t.currentTime=r)});var o=["canplay","pause","seeking","seeked","timeUpdate"],i=o.concat(["play","ended","error","waiting"]);i.forEach(r=>{t.addEventListener(r.toLowerCase(),()=>{if(this._stoping&&o.indexOf(r)>=0)return;const a=`on${r.slice(0,1).toUpperCase()}${r.slice(1)}`;this._events[a].forEach(s=>{s()})},!1)}),p1()}play(){this._stoping=!1,this._audio.play()}pause(){this._audio.pause()}stop(){this._stoping=!0,this._audio.pause(),this._audio.currentTime=0,this._events.onStop.forEach(t=>{t()})}seek(t){this._stoping=!1,t=Number(t),typeof t=="number"&&!isNaN(t)&&(this._audio.currentTime=t)}destroy(){this.stop()}}const cd=j(mv,()=>new qr),ld=R(t_,({phoneNumber:e},{resolve:t})=>(window.location.href=`tel:${e}`,t())),ud="__DC_STAT_UUID",dd=navigator.cookieEnabled&&(window.localStorage||window.sessionStorage)||{};let Yt;function m1(){if(Yt=Yt||dd[ud],!Yt){Yt=Date.now()+""+Math.floor(Math.random()*1e7);try{dd[ud]=Yt}catch(e){}}return Yt}function v1(){const e=navigator.userAgent,t=e.indexOf("compatible")>-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 r=parseFloat(RegExp.$1);return r>6?r:6}else return n?-1:o?11:-1}function On(){if(__uniConfig.darkmode!==!0)return J(__uniConfig.darkmode)?__uniConfig.darkmode:"light";try{return window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}catch(e){return"light"}}function _1(){let e,t="0",n="",o="phone";const i=navigator.language;if(Bl){e="iOS";const d=ve.match(/OS\s([\w_]+)\slike/);d&&(t=d[1].replace(/_/g,"."));const h=t.split(".")[0];if(Number(h)>=18){const v=ve.match(/Version\/([\d\.]+)/);v&&(t=v[1])}const g=ve.match(/\(([a-zA-Z]+);/);g&&(n=g[1])}else if(Ub){e="Android";const d=ve.match(/Android[\s/]([\w\.]+)[;\s]/);d&&(t=d[1]);const h=ve.match(/\((.+?)\)/),g=h?h[1].split(";"):ve.split(" "),v=[/\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 _=0;_<g.length;_++){const m=g[_];if(m.indexOf("Build")>0){n=m.split("Build")[0].trim();break}let w;for(let C=0;C<v.length;C++)if(v[C].test(m)){w=!0;break}if(!w){n=m.trim();break}}}else if(Fb){if(n="iPad",e="iOS",o="pad",t=G(window.BigInt)?"14.0":"13.0",parseInt(t)===14){const d=ve.match(/Version\/(\S*)\b/);d&&(t=d[1])}}else if(Ar||Er||Dl){n="PC",e="PC",o="pc",t="0";let d=ve.match(/\((.+?)\)/)[1];if(Ar){switch(e="Windows",Ar[1]){case"5.1":t="XP";break;case"6.0":t="Vista";break;case"6.1":t="7";break;case"6.2":t="8";break;case"6.3":t="8.1";break;case"10.0":t="10";break}const h=d&&d.match(/[Win|WOW]([\d]+)/);h&&(t+=` x${h[1]}`)}else if(Er){e="macOS";const h=d&&d.match(/Mac OS X (.+)/)||"";t&&(t=h[1].replace(/_/g,"."),t.indexOf(";")!==-1&&(t=t.split(";")[0]))}else if(Dl){e="Linux";const h=d&&d.match(/Linux (.*)/)||"";h&&(t=h[1],t.indexOf(";")!==-1&&(t=t.split(";")[0]))}}else if($b){e="Harmony",o="phone";const d=ve.match(/OpenHarmony\s([\d\.]+)/);d&&(t=d[1]),n=""}else e="Other",t="0",o="unknown";const r=`${e} ${t}`,a=e.toLowerCase();let s="",c=String(v1());if(c!=="-1")s="IE";else{const d=["Version","Firefox","Chrome","Edge{0,1}"],h=["Safari","Firefox","Chrome","Edge"];for(let g=0;g<d.length;g++){const v=d[g],_=new RegExp(`(${v})/(\\S*)\\b`);_.test(ve)&&(s=h[g],c=ve.match(_)[2])}}let l="portrait";const u=typeof window.screen.orientation=="undefined"?window.orientation:window.screen.orientation.angle;return l=Math.abs(u)===90?"landscape":"portrait",{deviceBrand:void 0,brand:void 0,deviceModel:n,deviceOrientation:l,model:n,system:r,platform:a,browserName:s.toLowerCase(),browserVersion:c,language:i,deviceType:o,ua:ve,osname:e,osversion:t,theme:On()}}const Gr=j("getWindowInfo",()=>{const e=window.devicePixelRatio,t=Ul(),n=Fl(t),o=$l(t,n),i=zb(t,n),r=zl();let a=window.innerHeight;const s=he.top,c={left:he.left,right:r-he.right,top:he.top,bottom:a-he.bottom,width:r-he.left-he.right,height:a-he.top-he.bottom},{top:l,bottom:u}=hs();return a-=l,a-=u,{windowTop:l,windowBottom:u,windowWidth:r,windowHeight:a,pixelRatio:e,screenWidth:o,screenHeight:i,statusBarHeight:s,safeArea:c,safeAreaInsets:{top:he.top,right:he.right,bottom:he.bottom,left:he.left},screenTop:i-a}});let ni,oi=!0;function jr(){oi&&(ni=_1())}const Yr=j("getDeviceInfo",()=>{jr();const{deviceBrand:e,deviceModel:t,brand:n,model:o,platform:i,system:r,deviceOrientation:a,deviceType:s,osname:c,osversion:l}=ni;return L({brand:n,deviceBrand:e,deviceModel:t,devicePixelRatio:window.devicePixelRatio,deviceId:m1(),deviceOrientation:a,deviceType:s,model:o,osName:c?c.toLowerCase():void 0,osVersion:l,platform:i,system:r})}),Xr=j("getAppBaseInfo",()=>{jr();const{theme:e,language:t,browserName:n,browserVersion:o}=ni;return L({appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:So?So():t,enableDebug:!1,hostSDKVersion:void 0,hostPackageName:void 0,hostFontSizeSetting:void 0,hostName:n,hostVersion:o,hostTheme:e,hostLanguage:t,isUniAppX:!1,language:t,SDKVersion:"",theme:e,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniCompilerVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion,version:""},{})}),Jr=j("getSystemInfoSync",()=>{oi=!0,jr(),oi=!1;const e=Gr(),t=Yr(),n=Xr();oi=!0;const{ua:o,browserName:i,browserVersion:r,osname:a,osversion:s}=ni,c=L(e,t,n,{browserName:i,browserVersion:r,fontSizeSetting:void 0,osName:a.toLowerCase(),osVersion:s,osLanguage:void 0,osTheme:void 0,ua:o,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion});return delete c.screenTop,delete c.enableDebug,__uniConfig.darkmode||delete c.theme,c}),fd=R("getSystemInfo",(e,{resolve:t})=>t(Jr())),hd="onNetworkStatusChange",ii="none";function Xt(){Qr().then(({networkType:e})=>{UniServiceJSBridge.invokeOnCallback(hd,{isConnected:e!==ii,networkType:e})})}function Kr(){return navigator.connection||navigator.webkitConnection||navigator.mozConnection}const gd=ke(hd,()=>{const e=Kr();e?e.addEventListener("change",Xt):(window.addEventListener("offline",Xt),window.addEventListener("online",Xt))}),pd=vt("offNetworkStatusChange",()=>{const e=Kr();e?e.removeEventListener("change",Xt):(window.removeEventListener("offline",Xt),window.removeEventListener("online",Xt))}),Qr=R("getNetworkType",(e,{resolve:t})=>{const n=Kr();let o="unknown";if(n){const i=n.effectiveType;o=n.type,o==="cellular"&&i?o=i.replace("slow-",""):(!o||o===ii)&&i?o=i:[ii,"wifi"].includes(o)||(o="unknown")}else navigator.onLine===!1&&(o=ii);return t({networkType:o})});let Jt=null;const md=ke(fl,()=>{Zr()}),vd=vt(a_,()=>{ea()}),Zr=R(s_,(e,{resolve:t,reject:n})=>{if(!window.DeviceMotionEvent){n();return}function o(){Jt=function(i){const r=i.acceleration||i.accelerationIncludingGravity;UniServiceJSBridge.invokeOnCallback(fl,{x:r&&r.x||0,y:r&&r.y||0,z:r&&r.z||0})},window.addEventListener("devicemotion",Jt,!1)}if(!Jt){if(DeviceMotionEvent.requestPermission){DeviceMotionEvent.requestPermission().then(i=>{i==="granted"?(o(),t()):n(`${i}`)}).catch(i=>{n(`${i}`)});return}o()}t()}),ea=R(c_,(e,{resolve:t})=>{Jt&&(window.removeEventListener("devicemotion",Jt,!1),Jt=null),t()});let Kt=null;const ta=ke(hl,()=>{oa()}),na=vt(l_,()=>{ia()}),oa=R(u_,(e,{resolve:t,reject:n})=>{if(!window.DeviceOrientationEvent){n();return}function o(){Kt=function(i){const r=360-(i.alpha!==null?i.alpha:360);UniServiceJSBridge.invokeOnCallback(hl,{direction:r})},window.addEventListener("deviceorientation",Kt,!1)}if(!Kt){if(DeviceOrientationEvent.requestPermission){DeviceOrientationEvent.requestPermission().then(i=>{i==="granted"?(o(),t()):n(`${i}`)}).catch(i=>{n(`${i}`)});return}o()}t()}),ia=R(d_,(e,{resolve:t})=>{Kt&&(window.removeEventListener("deviceorientation",Kt,!1),Kt=null),t()}),_d=!!window.navigator.vibrate,yd=R(f_,(e,{resolve:t,reject:n})=>{_d&&window.navigator.vibrate(15)?t():n("vibrateShort:fail")}),bd=R(h_,(e,{resolve:t,reject:n})=>{_d&&window.navigator.vibrate(400)?t():n("vibrateLong:fail")});var wd=(e,t,n)=>new Promise((o,i)=>{var r=c=>{try{s(n.next(c))}catch(l){i(l)}},a=c=>{try{s(n.throw(c))}catch(l){i(l)}},s=c=>c.done?o(c.value):Promise.resolve(c.value).then(r,a);s((n=n.apply(e,t)).next())});const Sd=R(n_,(e,t)=>wd(void 0,[e,t],function*(n,{resolve:o,reject:i}){Bp();const{t:r}=U();try{const a=yield navigator.clipboard.readText();o({data:a})}catch(a){y1(o,()=>{i(`${a} ${r("uni.getClipboardData.fail")}`)})}})),Td=R(o_,(e,t)=>wd(void 0,[e,t],function*({data:n},{resolve:o,reject:i}){try{yield navigator.clipboard.writeText(n),o()}catch(r){b1(n,o,i)}}),r_,i_);function y1(e,t){const n=document.getElementById("#clipboard"),o=n?n.value:void 0;o?e({data:o}):t()}function b1(e,t,n){const o=document.getElementById("#clipboard");o&&o.remove();const i=document.createElement("textarea");i.setAttribute("inputmode","none"),i.id="#clipboard",i.style.position="fixed",i.style.top="-9999px",i.style.zIndex="-9999",document.body.appendChild(i),i.value=e,i.select(),i.setSelectionRange(0,i.value.length);const r=document.execCommand("Copy",!1);i.blur(),r?t():n()}const Cd=e=>{UniServiceJSBridge.invokeOnCallback(Xe,e)},Vd=ke(Xe,()=>{UniServiceJSBridge.on(Xe,Cd)}),Ad=vt(Bg,()=>{UniServiceJSBridge.off(Xe,Cd)}),w1="uni-storage-keys";function S1(e){const t=["object","string","number","boolean","undefined"];try{const n=J(e)?JSON.parse(e):e,o=n.type;if(t.indexOf(o)>=0){const i=Object.keys(n);if(i.length===2&&"data"in n){if(typeof n.data===o)return n.data;if(o==="object"&&/^\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(i.length===1)return""}}catch(n){}}const ra=j(v_,(e,t)=>{const n=typeof t,o=n==="string"?t:JSON.stringify({type:n,data:t});localStorage.setItem(e,o)}),Ed=R(m_,({key:e,data:t},{resolve:n,reject:o})=>{try{ra(e,t),n()}catch(i){o(i.message)}});function kd(e){const t=localStorage&&localStorage.getItem(e);if(!J(t))throw new Error("data not found");let n=t;try{const o=JSON.parse(t),i=S1(o);i!==void 0&&(n=i)}catch(o){}return n}const Id=j(p_,e=>{try{return kd(e)}catch(t){return""}}),Nd=R(g_,({key:e},{resolve:t,reject:n})=>{try{const o=kd(e);t({data:o})}catch(o){n(o.message)}}),aa=j(gl,e=>{localStorage&&localStorage.removeItem(e)}),xd=R(gl,({key:e},{resolve:t})=>{aa(e),t()}),sa=j("clearStorageSync",()=>{localStorage&&localStorage.clear()}),Md=R("clearStorage",(e,{resolve:t})=>{sa(),t()}),ca=j("getStorageInfoSync",()=>{const e=localStorage&&localStorage.length||0,t=[];let n=0;for(let o=0;o<e;o++){const i=localStorage.key(o),r=localStorage.getItem(i)||"";n+=i.length+r.length,i!==w1&&t.push(i)}return{keys:t,currentSize:Math.ceil(n*2/1024),limitSize:Number.MAX_VALUE}}),Pd=R("getStorageInfo",(e,{resolve:t})=>{t(ca())}),Od=R(__,({filePath:e},{resolve:t,reject:n})=>{Fo(e).then(o=>{t({size:o.size})}).catch(o=>{n(String(o))})},b_,y_),Rd=R(w_,({filePath:e},{resolve:t})=>(window.open(e),t()),T_,S_),Ld=R(C_,(e,{resolve:t,reject:n})=>{const o=document.activeElement;o&&(o.tagName==="TEXTAREA"||o.tagName==="INPUT")&&(o.blur(),t())});function T1(){return window.location.protocol+"//"+window.location.host}const Bd=R(z_,({src:e},{resolve:t,reject:n})=>{const o=new Image;o.onload=function(){t({width:o.naturalWidth,height:o.naturalHeight,path:e.indexOf("/")===0?T1()+e:e})},o.onerror=function(){n()},o.src=e},W_,H_),Dd=R(X_,({src:e},{resolve:t,reject:n})=>{Fo(e,!0).then(o=>o).catch(()=>null).then(o=>{const i=document.createElement("video");if(i.onloadedmetadata!==void 0){const r=setTimeout(()=>{i.onloadedmetadata=null,i.onerror=null,n()},e.startsWith("data:")||e.startsWith("blob:")?300:3e3);i.onloadedmetadata=function(){clearTimeout(r),i.onerror=null,t({size:Math.ceil((o?o.size:0)/1024),duration:i.duration||0,width:i.videoWidth||0,height:i.videoHeight||0})},i.onerror=function(){clearTimeout(r),i.onloadedmetadata=null,n()},i.src=e}else n()})},K_,J_),C1={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"}},Ud="all";function V1(){const t=window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i);return!!(t&&t[0]==="micromessenger")}function la({count:e,sourceType:t,type:n,extension:o}){gu();const i=document.createElement("input");return i.type="file",Ti(i,{position:"absolute",visibility:"hidden",zIndex:"-999",width:"0",height:"0",top:"0",left:"0"}),i.accept=o.map(r=>{if(n!==Ud){const a=r.replace(".","");return`${n}/${C1[n][a]||a}`}else return V1()?".":r.indexOf(".")===0?r:`.${r}`}).join(","),e&&e>1&&(i.multiple=!0),n!==Ud&&t instanceof Array&&t.length===1&&t[0]==="camera"&&i.setAttribute("capture","camera"),i}let rt=null;const Fd=R(D_,({count:e,sourceType:t,type:n,extension:o},{resolve:i,reject:r})=>{xi();const{t:a}=U();rt&&(document.body.removeChild(rt),rt=null),rt=la({count:e,sourceType:t,type:n,extension:o}),document.body.appendChild(rt),rt.addEventListener("cancel",()=>{r("chooseFile:fail cancel")}),rt.addEventListener("change",function(s){const c=s.target,l=[];if(c&&c.files){const d=c.files.length;for(let h=0;h<d;h++){const g=c.files[h];let v;Object.defineProperty(g,"path",{get(){return v=v||Ht(g),v}}),h<e&&l.push(g)}}i({get tempFilePaths(){return l.map(({path:d})=>d)},tempFiles:l})}),rt.click(),Mr()||console.warn(a("uni.chooseFile.notUserActivation"))},$_,F_);let at=null;const $d=R(M_,({count:e,sourceType:t,extension:n},{resolve:o,reject:i})=>{xi();const{t:r}=U();at&&(document.body.removeChild(at),at=null),at=la({count:e,sourceType:t,extension:n,type:"image"}),document.body.appendChild(at),at.addEventListener("cancel",()=>{i("chooseImage:fail cancel")}),at.addEventListener("change",function(a){const s=a.target,c=[];if(s&&s.files){const u=s.files.length;for(let d=0;d<u;d++){const h=s.files[d];let g;Object.defineProperty(h,"path",{get(){return g=g||Ht(h),g}}),d<e&&c.push(h)}}o({get tempFilePaths(){return c.map(({path:u})=>u)},tempFiles:c})}),at.click(),Mr()||console.warn(r("uni.chooseFile.notUserActivation"))},O_,P_),zd={esc:["Esc","Escape"],enter:["Enter"]},A1=Object.keys(zd);function ri(){const e=Vue.ref(""),t=Vue.ref(!1),n=o=>{if(t.value)return;const i=A1.find(r=>zd[r].indexOf(o.key)!==-1);i&&(e.value=i),Vue.nextTick(()=>e.value="")};return Vue.onMounted(()=>{document.addEventListener("keyup",n)}),Vue.onBeforeUnmount(()=>{document.removeEventListener("keyup",n)}),{key:e,disable:t}}const E1=Vue.createVNode("div",{class:"uni-mask"},null,-1);function Qt(e,t,n){return t.onClose=(...o)=>(t.visible=!1,n.apply(null,o)),Vue.createApp(Vue.defineComponent({setup(){return()=>(Vue.openBlock(),Vue.createBlock(e,t,null,16))}}))}function Zt(e){let t=document.getElementById(e);return t||(t=document.createElement("div"),t.id=e,document.body.append(t)),t}function Hd(e,{onEsc:t,onEnter:n}){const o=Vue.ref(e.visible),{key:i,disable:r}=ri();return Vue.watch(()=>e.visible,a=>o.value=a),Vue.watch(()=>o.value,a=>r.value=!a),Vue.watchEffect(()=>{const{value:a}=i;a==="esc"?t&&t():a==="enter"&&n&&n()}),o}let Rn=0,ua="";function Wd(e){let t=Rn;Rn+=e?1:-1,Rn=Math.max(0,Rn),Rn>0?t===0&&(ua=document.body.style.overflow,document.body.style.overflow="hidden"):(document.body.style.overflow=ua,ua="")}function da(){Vue.onMounted(()=>Wd(!0)),Vue.onUnmounted(()=>Wd(!1))}const k1=ge({name:"ImageView",props:{src:{type:String,default:""}},setup(e){const t=Vue.reactive({direction:"none"});let n=1,o=0,i=0,r=0,a=0;function s({detail:h}){n=h.scale}function c(h){const v=h.target.getBoundingClientRect();o=v.width,i=v.height}function l(h){const v=h.target.getBoundingClientRect();r=v.width,a=v.height,d(h)}function u(h){const g=n*o>r,v=n*i>a;g&&v?t.direction="all":g?t.direction="horizontal":v?t.direction="vertical":t.direction="none",d(h)}function d(h){(t.direction==="all"||t.direction==="horizontal")&&h.stopPropagation()}return()=>{const h={position:"absolute",left:"0",top:"0",width:"100%",height:"100%"};return Vue.createVNode(Tu,{style:h,onTouchstart:oe(l),onTouchmove:oe(d),onTouchend:oe(u)},{default:()=>[Vue.createVNode(ku,{style:h,direction:t.direction,inertia:!0,scale:!0,"scale-min":"1","scale-max":"4",onScale:s},{default:()=>[Vue.createVNode("img",{src:e.src,style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",maxHeight:"100%",maxWidth:"100%"},onLoad:c},null,40,["src","onLoad"])]},8,["style","direction","inertia","scale","onScale"])]},8,["style","onTouchstart","onTouchmove","onTouchend"])}}});function I1(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const N1={urls:{type:Array,default(){return[]}},current:{type:[Number,String],default:0}};function qd(e){let t=typeof e.current=="number"?e.current:e.urls.indexOf(e.current);return t=t<0?0:t,t}const x1=ge({name:"ImagePreview",props:N1,emits:["close"],setup(e,{emit:t}){da();const{key:n}=ri(),o=Vue.ref(null),i=Vue.ref(qd(e));Vue.watch(()=>e.current,()=>i.value=qd(e)),Vue.watch(()=>n.value,l=>{l==="esc"&&a()});let r;Vue.onMounted(()=>{const l=o.value,u=20;let d=0,h=0;l.addEventListener("mousedown",g=>{r=!1,d=g.clientX,h=g.clientY}),l.addEventListener("mouseup",g=>{(Math.abs(g.clientX-d)>u||Math.abs(g.clientY-h)>u)&&(r=!0)})});function a(){r||Vue.nextTick(()=>{t("close")})}function s(l){i.value=l.detail.current}const c={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 l;return Vue.createVNode("div",{ref:o,style:{display:"block",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",zIndex:999,background:"rgba(0,0,0,0.8)"},onClick:a},[Vue.createVNode(zu,{navigation:"auto",current:i.value,onChange:s,"indicator-dots":!1,autoplay:!1,style:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%"}},I1(l=e.urls.map(u=>Vue.createVNode(Hu,null,{default:()=>[Vue.createVNode(k1,{src:u},null,8,["src"])]})))?l:{default:()=>[l],_:1},8,["current","onChange"]),Vue.createVNode("div",{style:c},[le(Ri,"#ffffff",26)],4)],8,["onClick"])}}});let Ln=null,en;const Gd=()=>{Ln=null,Vue.nextTick(()=>{en==null||en.unmount(),en=null})},jd=R(q_,(e,{resolve:t})=>{Ln?L(Ln,e):(Ln=Vue.reactive(e),Vue.nextTick(()=>{en=Qt(x1,Ln,Gd),en.mount(Zt("u-a-p"))})),t()},j_,G_),Yd=R(Y_,(e,{resolve:t,reject:n})=>{en?(Gd(),t()):n()});let st=null;const Xd=R(R_,({sourceType:e,extension:t},{resolve:n,reject:o})=>{xi();const{t:i}=U();st&&(document.body.removeChild(st),st=null),st=la({sourceType:e,extension:t,type:"video"}),document.body.appendChild(st),st.addEventListener("cancel",()=>{o("chooseVideo:fail cancel")}),st.addEventListener("change",function(r){const s=r.target.files[0];let c="";const l={tempFilePath:c,tempFile:s,size:s.size,duration:0,width:0,height:0,name:s.name};Object.defineProperty(l,"tempFilePath",{get(){return c=c||Ht(this.tempFile),c}});const u=document.createElement("video");if(u.onloadedmetadata!==void 0){const d=Ht(s);u.onloadedmetadata=function(){jl(d),n(L(l,{duration:u.duration||0,width:u.videoWidth||0,height:u.videoHeight||0}))},setTimeout(()=>{u.onloadedmetadata=null,jl(d),n(l)},300),u.src=d}else n(l)}),st.click(),Mr()||console.warn(i("uni.chooseFile.notUserActivation"))},B_,L_),fa=_o(Q_,({url:e,data:t,header:n={},method:o,dataType:i,responseType:r,enableChunked:a,withCredentials:s,timeout:c=__uniConfig.networkTimeout.request},{resolve:l,reject:u})=>{let d=null;const h=O1(n);if(o!=="GET")if(J(t)||t instanceof ArrayBuffer)d=t;else if(h==="json")try{d=JSON.stringify(t)}catch(v){d=t.toString()}else if(h==="urlencoded"){const v=[];for(const _ in t)ae(t,_)&&v.push(encodeURIComponent(_)+"="+encodeURIComponent(t[_]));d=v.join("&")}else d=t.toString();let g;if(a){if(typeof window.fetch===void 0||typeof window.AbortController===void 0)throw new Error("fetch or AbortController is not supported in this environment");const v=new AbortController,_=v.signal;g=new Jd(v);const m={method:o,headers:n,body:d,signal:_,credentials:s?"include":"same-origin"},w=setTimeout(function(){g.abort(),u("timeout",{errCode:5})},c);m.signal.addEventListener("abort",function(){clearTimeout(w),u("abort",{errCode:600003})}),window.fetch(e,m).then(C=>{const f=C.status,p=C.headers,S=C.body,T={};p.forEach((V,I)=>{T[I]=V});const b=M1(T);if(g._emitter.emit("headersReceived",{header:T,statusCode:f,cookies:b}),!S){l({data:"",statusCode:f,header:T,cookies:b});return}const A=S.getReader(),N=[],E=()=>{A.read().then(({done:V,value:I})=>{if(V){const F=P1(N);let k=r==="text"?new TextDecoder().decode(F):F;r==="text"&&(k=Kd(k,r,i)),l({data:k,statusCode:f,header:T,cookies:b});return}const M=I;N.push(M),g._emitter.emit("chunkReceived",{data:M}),E()})};E()},C=>{u(C,{errCode:5})})}else{const v=new XMLHttpRequest;g=new Jd(v),v.open(o,e);for(const m in n)ae(n,m)&&v.setRequestHeader(m,n[m]);const _=setTimeout(function(){v.onload=v.onabort=v.onerror=null,g.abort(),u("timeout",{errCode:5})},c);v.responseType=r,v.onload=function(){clearTimeout(_);const m=v.status;let w=r==="text"?v.responseText:v.response;r==="text"&&(w=Kd(w,r,i)),l({data:w,statusCode:m,header:R1(v.getAllResponseHeaders()),cookies:[]})},v.onabort=function(){clearTimeout(_),u("abort",{errCode:600003})},v.onerror=function(){clearTimeout(_),u(void 0,{errCode:5})},v.withCredentials=s,v.send(d)}return g},oy,iy),M1=e=>{let t=e["Set-Cookie"]||e["set-cookie"],n=[];if(!t)return[];t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1));const o=t.split(";");for(let i=0;i<o.length;i++)o[i].indexOf("Expires=")!==-1||o[i].indexOf("expires=")!==-1?n.push(o[i].replace(",","")):n.push(o[i]);return n=n.join(";").split(","),n};function P1(e){const t=e.reduce((i,r)=>i+r.byteLength,0),n=new Uint8Array(t);let o=0;for(const i of e)n.set(new Uint8Array(i),o),o+=i.byteLength;return n.buffer}function O1(e){const t=Object.keys(e).find(o=>o.toLowerCase()==="content-type");if(!t)return;const n=e[t];return n?n.indexOf("application/json")===0?"json":n.indexOf("application/x-www-form-urlencoded")===0?"urlencoded":"string":"string"}class Jd{constructor(t){this._requestOnChunkReceiveCallbackId=0,this._requestOnChunkReceiveCallbacks=new Map,this._requestOnHeadersReceiveCallbackId=0,this._requestOnHeadersReceiveCallbacks=new Map,this._emitter=new Ni,this._controller=t}abort(){this._controller&&(this._controller.abort(),delete this._controller)}onHeadersReceived(t){return this._emitter.on("headersReceived",t),this._requestOnHeadersReceiveCallbackId++,this._requestOnHeadersReceiveCallbacks.set(this._requestOnHeadersReceiveCallbackId,t),this._requestOnHeadersReceiveCallbackId}offHeadersReceived(t){if(t==null){this._emitter.off("headersReceived");return}if(typeof t=="function"){this._requestOnHeadersReceiveCallbacks.forEach((o,i)=>{o===t&&(this._requestOnHeadersReceiveCallbacks.delete(i),this._emitter.off("headersReceived",t))});return}const n=this._requestOnHeadersReceiveCallbacks.get(t);n&&(this._requestOnHeadersReceiveCallbacks.delete(t),this._emitter.off("headersReceived",n))}onChunkReceived(t){return this._emitter.on("chunkReceived",t),this._requestOnChunkReceiveCallbackId++,this._requestOnChunkReceiveCallbacks.set(this._requestOnChunkReceiveCallbackId,t),this._requestOnChunkReceiveCallbackId}offChunkReceived(t){if(t==null){this._emitter.off("chunkReceived");return}if(typeof t=="function"){this._requestOnChunkReceiveCallbacks.forEach((o,i)=>{o===t&&(this._requestOnChunkReceiveCallbacks.delete(i),this._emitter.off("chunkReceived",t))});return}const n=this._requestOnChunkReceiveCallbacks.get(t);n&&(this._requestOnChunkReceiveCallbacks.delete(t),this._emitter.off("chunkReceived",n))}}function R1(e){const t={};return e.split(kt).forEach(n=>{const o=n.match(/(\S+\s*):\s*(.*)/);!o||o.length!==3||(t[o[1]]=o[2])}),t}function Kd(e,t,n){let o=e;if(t==="text"&&n==="json")try{o=JSON.parse(o)}catch(i){}return o}class L1{constructor(t){this._callbacks=[],this._xhr=t}onProgressUpdate(t){G(t)&&this._callbacks.push(t)}offProgressUpdate(t){const n=this._callbacks.indexOf(t);n>=0&&this._callbacks.splice(n,1)}abort(){this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(t){throw new Error("Method not implemented.")}offHeadersReceived(t){throw new Error("Method not implemented.")}}const Qd=_o(ry,({url:e,header:t={},timeout:n=__uniConfig.networkTimeout.downloadFile},{resolve:o,reject:i})=>{var r,a=new XMLHttpRequest,s=new L1(a);return a.open("GET",e,!0),Object.keys(t).forEach(c=>{a.setRequestHeader(c,t[c])}),a.responseType="blob",a.onload=function(){clearTimeout(r);const c=a.status,l=this.response;let u;const d=a.getResponseHeader("content-disposition");if(d){const h=d.match(/filename="?(\S+)"?\b/);h&&(u=h[1])}l.name=u||ow(e),o({statusCode:c,tempFilePath:Ht(l)})},a.onabort=function(){clearTimeout(r),i("abort",{errCode:600003})},a.onerror=function(){clearTimeout(r),i("",{errCode:602001})},a.onprogress=function(c){s._callbacks.forEach(l=>{var u=c.loaded,d=c.total,h=Math.round(u/d*100);l({progress:h,totalBytesWritten:u,totalBytesExpectedToWrite:d})})},a.send(),r=setTimeout(function(){a.onprogress=a.onload=a.onabort=a.onerror=null,s.abort(),i("timeout",{errCode:5})},n),s},sy,ay);class B1{constructor(t){this._callbacks=[],this._xhr=t}onProgressUpdate(t){G(t)&&this._callbacks.push(t)}offProgressUpdate(t){const n=this._callbacks.indexOf(t);n>=0&&this._callbacks.splice(n,1)}abort(){this._isAbort=!0,this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(t){throw new Error("Method not implemented.")}offHeadersReceived(t){throw new Error("Method not implemented.")}}const Zd=_o(cy,({url:e,file:t,filePath:n,name:o,files:i,header:r={},formData:a={},timeout:s=__uniConfig.networkTimeout.uploadFile},{resolve:c,reject:l})=>{var u=new B1;(!K(i)||!i.length)&&(n||l("file error"),i=[{name:o,file:t,uri:n}]);function d(h){var g=new XMLHttpRequest,v=new FormData,_;Object.keys(a).forEach(m=>{v.append(m,a[m])}),Object.values(i).forEach(({name:m},w)=>{const C=h[w];v.append(m||"file",C,C.name||`file-${Date.now()}`)}),g.open("POST",e),Object.keys(r).forEach(m=>{g.setRequestHeader(m,r[m])}),g.upload.onprogress=function(m){u._callbacks.forEach(w=>{var C=m.loaded,f=m.total,p=Math.round(C/f*100);w({progress:p,totalBytesSent:C,totalBytesExpectedToSend:f})})},g.onerror=function(){clearTimeout(_),l("",{errCode:602001})},g.onabort=function(){clearTimeout(_),l("abort",{errCode:600003})},g.onload=function(){clearTimeout(_);const m=g.status,w=g.getAllResponseHeaders(),C=w?w.trim().split(/[\r\n]+/).reduce((f,p)=>{const S=p.split(": "),T=S.shift(),b=S.join(": ");return f[T]=b,f},{}):{};c({statusCode:m,data:g.responseText||g.response,header:C})},u._isAbort?l("abort",{errCode:600003}):(_=setTimeout(function(){g.upload.onprogress=g.onload=g.onabort=g.onerror=null,u.abort(),l("timeout",{errCode:5})},s),g.send(v),u._xhr=g)}return Promise.all(i.map(({file:h,uri:g})=>h instanceof Blob?Promise.resolve(Gl(h)):Fo(g))).then(d).catch(()=>{setTimeout(()=>{l("file error")},0)}),u},uy,ly),tn=[],ha={open:"",close:"",error:"",message:""};class D1{constructor(t,n,o){this._callbacks={open:[],close:[],error:[],message:[]};let i;try{const r=this._webSocket=new WebSocket(t,n);r.binaryType="arraybuffer",["open","close","error","message"].forEach(c=>{this._callbacks[c]=[],r.addEventListener(c,l=>{const{data:u,code:d,reason:h}=l,g=c==="message"?{data:u}:c==="close"?{code:d,reason:h}:{};if(this._callbacks[c].forEach(v=>{try{v(g)}catch(_){console.error(`thirdScriptError
|
|
18
|
+
${_};at socketTask.on${yi(c)} callback function
|
|
19
|
+
`,_)}}),this===tn[0]&&ha[c]&&UniServiceJSBridge.invokeOnCallback(ha[c],g),c==="error"||c==="close"){const v=tn.indexOf(this);v>=0&&tn.splice(v,1)}})}),["CLOSED","CLOSING","CONNECTING","OPEN","readyState"].forEach(c=>{Object.defineProperty(this,c,{get(){return r[c]}})})}catch(r){i=r}o&&o(i,this)}send(t){const n=(t||{}).data,o=this._webSocket;try{if(o.readyState!==o.OPEN)throw be(t,{errMsg:"sendSocketMessage:fail SocketTask.readyState is not OPEN",errCode:10002}),new Error("SocketTask.readyState is not OPEN");o.send(n),be(t,"sendSocketMessage:ok")}catch(i){be(t,{errMsg:`sendSocketMessage:fail ${i}`,errCode:602001})}}close(t={}){const n=this._webSocket;try{const o=t.code||1e3,i=t.reason;J(i)?n.close(o,i):n.close(o),be(t,"closeSocket:ok")}catch(o){be(t,`closeSocket:fail ${o}`)}}onOpen(t){this._callbacks.open.push(t)}onMessage(t){this._callbacks.message.push(t)}onError(t){this._callbacks.error.push(t)}onClose(t){this._callbacks.close.push(t)}}const ef=_o(dy,({url:e,protocols:t},{resolve:n,reject:o})=>new D1(e,t,(i,r)=>{if(i){o(i.toString(),{errCode:600009});return}tn.push(r),n()}),hy,fy);function tf(e,t,n,o,i){const r=e[t];G(r)&&r.call(e,L({},n,{success(){o()},fail({errMsg:a}){i(a.replace("sendSocketMessage:fail ",""))},complete:void 0}))}const nf=R(gy,(e,{resolve:t,reject:n})=>{const o=tn[0];o&&o.readyState===o.OPEN?tf(o,"send",e,t,n):n("WebSocket is not connected")}),of=R(py,(e,{resolve:t,reject:n})=>{const o=tn[0];o?tf(o,"close",e,t,n):n("WebSocket is not connected")});function ai(e){const t=`onSocket${yi(e)}`;return ke(t,()=>{ha[e]=t})}const rf=ai("open"),af=ai("error"),sf=ai("message"),cf=ai("close"),Bn=R(A_,({type:e,altitude:t,highAccuracyExpireTime:n,isHighAccuracy:o},{resolve:i,reject:r})=>{const a=ot();new Promise((s,c)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(l=>s({coords:l.coords}),c,{enableHighAccuracy:o||t,timeout:n||1e3*100}):c(new Error("device nonsupport geolocation"))}).catch(s=>new Promise((c,l)=>{a.type===Ne.QQ?Hr(`https://apis.map.qq.com/ws/location/v1/ip?output=jsonp&key=${a.key}`,{callback:"callback"},u=>{if("result"in u&&u.result.location){const d=u.result.location;c({coords:{latitude:d.lat,longitude:d.lng},skip:!0})}else l(new Error(u.message||JSON.stringify(u)))},()=>l(new Error("network error"))):a.type===Ne.GOOGLE?fa({method:"POST",url:`https://www.googleapis.com/geolocation/v1/geolocate?key=${a.key}`,success(u){const d=u.data;"location"in d?c({coords:{latitude:d.location.lat,longitude:d.location.lng,accuracy:d.accuracy},skip:!0}):l(new Error(d.error&&d.error.message||JSON.stringify(u)))},fail(){l(new Error("network error"))}}):a.type===Ne.AMAP?Wr([],()=>{window.AMap.plugin("AMap.Geolocation",()=>{new window.AMap.Geolocation({enableHighAccuracy:!0,timeout:1e4}).getCurrentPosition((d,h)=>{d==="complete"?c({coords:{latitude:h.position.lat,longitude:h.position.lng,accuracy:h.accuracy},skip:!0}):l(new Error(h.message))})})}):l(s)})).then(({coords:s,skip:c})=>{ad(e,s,c).then(l=>{i({latitude:l.latitude,longitude:l.longitude,accuracy:l.accuracy,speed:l.altitude||0,altitude:l.altitude||0,verticalAccuracy:l.altitudeAccuracy||0,horizontalAccuracy:l.accuracy||0})}).catch(l=>{r(l.message)})}).catch(s=>{r(s.message||JSON.stringify(s))})},k_,E_),U1="M28 17c-6.49396875 0-12.13721875 2.57040625-15 6.34840625V5.4105l6.29859375 6.29859375c0.387875 0.387875 1.02259375 0.387875 1.4105 0 0.387875-0.387875 0.387875-1.02259375 0-1.4105L12.77853125 2.36803125a0.9978125 0.9978125 0 0 0-0.0694375-0.077125c-0.1944375-0.1944375-0.45090625-0.291375-0.70721875-0.290875l-0.00184375-0.0000625-0.00184375 0.0000625c-0.2563125-0.0005-0.51278125 0.09640625-0.70721875 0.290875a0.9978125 0.9978125 0 0 0-0.0694375 0.077125l-7.930625 7.9305625c-0.387875 0.387875-0.387875 1.02259375 0 1.4105 0.387875 0.387875 1.02259375 0.387875 1.4105 0L11 5.4105V29c0 0.55 0.45 1 1 1s1-0.45 1-1c0-5.52284375 6.71571875-10 15-10 0.55228125 0 1-0.44771875 1-1 0-0.55228125-0.44771875-1-1-1z",F1={latitude:{type:Number},longitude:{type:Number},scale:{type:Number,default:18},name:{type:String,default:""},address:{type:String,default:""}};function $1(e){const t=Vue.reactive({center:{latitude:0,longitude:0},marker:{id:1,latitude:0,longitude:0,iconPath:od,width:32,height:52},location:{id:2,latitude:0,longitude:0,iconPath:nd,width:44,height:44}});function n(){e.latitude&&e.longitude&&(t.center.latitude=e.latitude,t.center.longitude=e.longitude,t.marker.latitude=e.latitude,t.marker.longitude=e.longitude)}return Vue.watch([()=>e.latitude,()=>e.longitude],n),n(),t}const z1=ge({name:"LocationView",props:F1,emits:["close"],setup(e,{emit:t}){const n=$1(e);da(),Bn({type:"gcj02",success:({latitude:s,longitude:c})=>{n.location.latitude=s,n.location.longitude=c}});function o(s){const c=s.detail.centerLocation;c&&(n.center.latitude=c.latitude,n.center.longitude=c.longitude)}function i(){const s=ot();let c="";s.type===Ne.GOOGLE?c=`https://www.google.com/maps/dir/?api=1${n.location.latitude?`&origin=${n.location.latitude}%2C${n.location.longitude}`:""}&destination=${e.latitude}%2C${e.longitude}`:s.type===Ne.QQ?c=`https://apis.map.qq.com/uri/v1/routeplan?type=drive${n.location.latitude?`&fromcoord=${n.location.latitude}%2C${n.location.longitude}&from=${encodeURIComponent("我的位置")}`:""}&tocoord=${e.latitude}%2C${e.longitude}&to=${encodeURIComponent(e.name||"目的地")}&ref=${s.key}`:s.type===Ne.AMAP&&(c=`https://uri.amap.com/navigation?${n.location.latitude?`from=${n.location.longitude},${n.location.latitude},${encodeURIComponent("我的位置")}&`:""}to=${e.longitude},${e.latitude},${encodeURIComponent(e.name||"目的地")}`),window.open(c)}function r(){t("close")}function a({latitude:s,longitude:c}){n.center.latitude=s,n.center.longitude=c}return()=>Vue.createVNode("div",{class:"uni-system-open-location"},[Vue.createVNode(wa,{latitude:n.center.latitude,longitude:n.center.longitude,class:"map",markers:[n.marker,n.location],onRegionchange:o},{default:()=>[Vue.createVNode("div",{class:"map-move",onClick:()=>a(n.location)},[le(td,"#000000",24)],8,["onClick"])]},8,["latitude","longitude","markers","onRegionchange"]),Vue.createVNode("div",{class:"info"},[Vue.createVNode("div",{class:"name",onClick:()=>a(n.marker)},[e.name],8,["onClick"]),Vue.createVNode("div",{class:"address",onClick:()=>a(n.marker)},[e.address],8,["onClick"]),Vue.createVNode("div",{class:"nav",onClick:i},[le(U1,"#ffffff",26)],8,["onClick"])]),Vue.createVNode("div",{class:"nav-btn-back",onClick:r},[le(gn,"#ffffff",26)],8,["onClick"])])}});let Dn=null;const lf=R(I_,(e,{resolve:t})=>{Dn?L(Dn,e):(Dn=Vue.reactive(e),Vue.nextTick(()=>{const n=Qt(z1,Dn,()=>{Dn=null,Vue.nextTick(()=>{n.unmount()})});n.mount(Zt("u-a-o"))})),t()},x_,N_);function H1(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const W1={latitude:{type:Number},longitude:{type:Number}};function q1(e){return e>100?`${e>1e3?(e/1e3).toFixed(1)+"k":e.toFixed(0)}m | `:e>0?"<100m | ":""}function G1(e){const t=Vue.reactive({latitude:0,longitude:0,keyword:"",searching:!1});function n(){e.latitude&&e.longitude&&(t.latitude=e.latitude,t.longitude=e.longitude)}return Vue.watch([()=>e.latitude,()=>e.longitude],n),n(),t}function j1(e){const t=__uniConfig.qqMapKey,n=Vue.reactive([]),o=Vue.ref(-1),i=Vue.computed(()=>n[o.value]),r=Vue.reactive({loading:!0,pageSize:20,pageIndex:1,hasNextPage:!0,nextPage:null,selectedIndex:o,selected:i}),a=Vue.ref(""),s=Vue.computed(()=>a.value?`region(${a.value},1,${e.latitude},${e.longitude})`:`nearby(${e.latitude},${e.longitude},5000)`);function c(h){h.forEach(g=>{n.push({name:g.title||g.name,address:g.address,distance:g._distance||g.distance,latitude:g.location.lat,longitude:g.location.lng})})}function l(){r.loading=!0;const h=ot();if(h.type===Ne.GOOGLE){if(r.pageIndex>1&&r.nextPage){r.nextPage();return}new google.maps.places.PlacesService(document.createElement("div"))[e.searching?"textSearch":"nearbySearch"]({location:{lat:e.latitude,lng:e.longitude},query:e.keyword,radius:5e3},(v,_,m)=>{r.loading=!1,v&&v.length&&v.forEach(w=>{n.push({name:w.name||"",address:w.vicinity||w.formatted_address||"",distance:0,latitude:w.geometry.location.lat(),longitude:w.geometry.location.lng()})}),m&&(m.hasNextPage?r.nextPage=()=>{m.nextPage()}:r.hasNextPage=!1)})}else if(h.type===Ne.QQ){const g=e.searching?`https://apis.map.qq.com/ws/place/v1/search?output=jsonp&key=${t}&boundary=${s.value}&keyword=${e.keyword}&page_size=${r.pageSize}&page_index=${r.pageIndex}`:`https://apis.map.qq.com/ws/geocoder/v1/?output=jsonp&key=${t}&location=${e.latitude},${e.longitude}&get_poi=1&poi_options=page_size=${r.pageSize};page_index=${r.pageIndex}`;Hr(g,{callback:"callback"},v=>{if(r.loading=!1,e.searching&&"data"in v&&v.data.length)c(v.data);else if("result"in v){const _=v.result;a.value=_.ad_info?_.ad_info.adcode:"",_.pois&&c(_.pois)}n.length===r.pageSize*r.pageIndex&&(r.hasNextPage=!1)},()=>{r.loading=!1})}else h.type===Ne.AMAP&&window.AMap.plugin("AMap.PlaceSearch",function(){const g=new window.AMap.PlaceSearch({city:"全国",pageSize:10,pageIndex:r.pageIndex}),v=e.searching?e.keyword:"",_=e.searching?5e4:5e3;g.searchNearBy(v,[e.longitude,e.latitude],_,function(m,w){m==="error"?console.error(w):m==="no_data"?r.hasNextPage=!1:c(w.poiList.pois)}),r.loading=!1})}function u(){!r.loading&&r.hasNextPage&&(r.pageIndex++,l())}function d(){r.selectedIndex=-1,r.pageIndex=1,r.hasNextPage=!0,r.nextPage=null,n.splice(0,n.length)}return{listState:r,list:n,loadMore:u,reset:d,getList:l}}const Y1=ge({name:"LoctaionPicker",props:W1,emits:["close"],setup(e,{emit:t}){da(),Fp();const{t:n}=U(),o=G1(e),{list:i,listState:r,loadMore:a,reset:s,getList:c}=j1(o),l=ki(()=>{s(),o.keyword&&c()},1e3,{setTimeout,clearTimeout});Vue.watch(()=>o.searching,m=>{s(),m||c()});function u(m){o.keyword=m.detail.value,l()}function d(){t("close",L({},r.selected))}function h(){t("close")}function g(m){const w=m.detail.centerLocation;w&&_(w)}function v(){Bn({type:"gcj02",success:_,fail:()=>{}})}function _({latitude:m,longitude:w}){o.latitude=m,o.longitude=w,o.searching||(s(),c())}return(!o.latitude||!o.longitude)&&v(),()=>{const m=i.map((w,C)=>Vue.createVNode("div",{key:C,class:{"list-item":!0,selected:r.selectedIndex===C},onClick:()=>{r.selectedIndex=C,o.latitude=w.latitude,o.longitude=w.longitude}},[le(ys,"#007aff",24),Vue.createVNode("div",{class:"list-item-title"},[w.name]),Vue.createVNode("div",{class:"list-item-detail"},[q1(w.distance),w.address])],10,["onClick"]));return r.loading&&m.unshift(Vue.createVNode("div",{class:"list-loading"},[Vue.createVNode("i",{class:"uni-loading"},null)])),Vue.createVNode("div",{class:"uni-system-choose-location"},[Vue.createVNode(wa,{latitude:o.latitude,longitude:o.longitude,class:"map","show-location":!0,libraries:["places"],onUpdated:c,onRegionchange:g},{default:()=>[Vue.createVNode("div",{class:"map-location",style:`background-image: url("${od}")`},null),Vue.createVNode("div",{class:"map-move",onClick:v},[le(td,"#000000",24)],8,["onClick"])],_:1},8,["latitude","longitude","show-location","onUpdated","onRegionchange"]),Vue.createVNode("div",{class:"nav"},[Vue.createVNode("div",{class:"nav-btn back",onClick:h},[le(Ri,"#ffffff",26)],8,["onClick"]),Vue.createVNode("div",{class:{"nav-btn":!0,confirm:!0,disable:!r.selected},onClick:d},[le(ys,"#ffffff",26)],10,["onClick"])]),Vue.createVNode("div",{class:"menu"},[Vue.createVNode("div",{class:"search"},[Vue.createVNode(Go,{value:o.keyword,class:"search-input",placeholder:n("uni.chooseLocation.search"),onFocus:()=>o.searching=!0,onInput:u},null,8,["value","placeholder","onFocus","onInput"]),o.searching&&Vue.createVNode("div",{class:"search-btn",onClick:()=>{o.searching=!1,o.keyword=""}},[n("uni.chooseLocation.cancel")],8,["onClick"])]),Vue.createVNode($u,{"scroll-y":!0,class:"list",onScrolltolower:a},H1(m)?m:{default:()=>[m],_:2},8,["scroll-y","onScrolltolower"])])])}}});let si=null;const uf=R(V_,(e,{resolve:t,reject:n})=>{si?n("cancel"):(si=Vue.reactive(e),Vue.nextTick(()=>{const o=Qt(Y1,si,i=>{si=null,Vue.nextTick(()=>{o.unmount()}),i?t(i):n("cancel")});o.mount(Zt("u-a-c"))}))});let ci=!1,Un=0;const df=R(my,(e,{resolve:t,reject:n})=>{if(!navigator.geolocation){n();return}Un=Un||navigator.geolocation.watchPosition(o=>{ci=!0,ad(e==null?void 0:e.type,o.coords).then(i=>{UniServiceJSBridge.invokeOnCallback(bl,i),t()}).catch(i=>{UniServiceJSBridge.invokeOnCallback(er,{errMsg:`onLocationChange:fail ${i.message}`})})},o=>{ci||(n(o.message),ci=!0),UniServiceJSBridge.invokeOnCallback(er,{errMsg:`onLocationChange:fail ${o.message}`})}),setTimeout(t,100)},by,wy),ff=R(vy,(e,{resolve:t})=>{Un&&(navigator.geolocation.clearWatch(Un),ci=!1,Un=0),t()}),hf=ke(bl,()=>{}),gf=vt(_y,()=>{}),pf=ke(er,()=>{}),mf=vt(yy,()=>{}),vf=R(Vy,(e,{resolve:t,reject:n})=>{let o=!0;return re(Kn,{from:e.from||"navigateBack"})===!0&&(o=!1),o?(getApp().$router.go(-e.delta),t()):n(Kn)},ky,Ly),_f=R(Cn,({url:e,events:t,isAutomatedTesting:n},{resolve:o,reject:i})=>{if(!Ft.handledBeforeEntryPageRoutes){br.push({args:{type:Cn,url:e,events:t,isAutomatedTesting:n},resolve:o,reject:i});return}return et({type:Cn,url:e,events:t,isAutomatedTesting:n}).then(o).catch(i)},Ey,My),yf=R(tr,({url:e},{resolve:t,reject:n})=>{const o=e.split("?")[0],i=vn(o);if(!i){n(`${e}`);return}i.loader&&i.loader().then(()=>{t({url:e,errMsg:"preloadPage:ok"})}).catch(r=>{n(`${e} ${String(r)}`)})});function li(e){__uniConfig.darkmode&&UniServiceJSBridge.on(Xe,e)}function ga(e){UniServiceJSBridge.off(Xe,e)}function Fn(e){let t={};return __uniConfig.darkmode&&(t=to(e,__uniConfig.themeConfig,On())),__uniConfig.darkmode?t:e}function bf(e,t){const n=Vue.isReactive(e),o=n?Vue.reactive(Fn(e)):Fn(e);return __uniConfig.darkmode&&n&&Vue.watch(e,i=>{const r=Fn(i);for(const a in r)o[a]=r[a]}),t&&li(t),o}const X1={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}},J1=(e,t)=>t.value=X1[e].cancelColor,K1={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:""}},Q1=Vue.defineComponent({props:K1,setup(e,{emit:t}){const n=Vue.ref(""),o=()=>a.value=!1,i=()=>(o(),t("close","cancel")),r=()=>(o(),t("close","confirm",n.value)),a=Hd(e,{onEsc:i,onEnter:()=>{!e.editable&&r()}}),s=Z1(e);return()=>{const{title:c,content:l,showCancel:u,confirmText:d,confirmColor:h,editable:g,placeholderText:v}=e;return n.value=l,Vue.createVNode(Vue.Transition,{name:"uni-fade"},{default:()=>[Vue.withDirectives(Vue.createVNode("uni-modal",{onTouchmove:Je},[E1,Vue.createVNode("div",{class:"uni-modal"},[c?Vue.createVNode("div",{class:"uni-modal__hd"},[Vue.createVNode("strong",{class:"uni-modal__title",textContent:c||""},null,8,["textContent"])]):null,g?Vue.createVNode("textarea",{class:"uni-modal__textarea",rows:"1",placeholder:v,value:l,onInput:_=>n.value=_.target.value},null,40,["placeholder","value","onInput"]):Vue.createVNode("div",{class:"uni-modal__bd",onTouchmovePassive:un,textContent:l},null,40,["onTouchmovePassive","textContent"]),Vue.createVNode("div",{class:"uni-modal__ft"},[u&&Vue.createVNode("div",{style:{color:s.value},class:"uni-modal__btn uni-modal__btn_default",onClick:i},[e.cancelText],12,["onClick"]),Vue.createVNode("div",{style:{color:h},class:"uni-modal__btn uni-modal__btn_primary",onClick:r},[d],12,["onClick"])])])],40,["onTouchmove"]),[[Vue.vShow,a.value]])]})}}});function Z1(e){const t=Vue.ref(e.cancelColor),n=({theme:o})=>{J1(o,t)};return Vue.watchEffect(()=>{e.visible?(t.value=e.cancelColor,e.cancelColor==="#000"&&(On()==="dark"&&n({theme:"dark"}),li(n))):ga(n)}),t}let We;const eC=ne(()=>{UniServiceJSBridge.on("onHidePopup",()=>We.visible=!1)});let pa;function tC(e,t){const n=e==="confirm",o={confirm:n,cancel:e==="cancel"};n&&We.editable&&(o.content=t),pa&&pa(o)}const wf=()=>{We&&(We.visible=!1)},Sf=R(Zy,(e,{resolve:t})=>{eC(),pa=t,We?(L(We,e),We.visible=!0):(We=Vue.reactive(e),Vue.nextTick(()=>(Qt(Q1,We,tC).mount(Zt("u-a-m")),Vue.nextTick(()=>We.visible=!0))))},eb,tb),nC={title:{type:String,default:""},icon:{default:"success",validator(e){return Tl.indexOf(e)!==-1}},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean}},ui="uni-toast__icon",oC={light:"#fff",dark:"rgba(255,255,255,0.9)"},Tf=e=>oC[e],iC=Vue.defineComponent({name:"Toast",props:nC,setup(e){Pp(),Op();const{Icon:t}=rC(e),n=Hd(e,{});return()=>{const{mask:o,duration:i,title:r,image:a}=e;return Vue.createVNode(Vue.Transition,{name:"uni-fade"},{default:()=>[Vue.withDirectives(Vue.createVNode("uni-toast",{"data-duration":i},[o?Vue.createVNode("div",{class:"uni-mask",style:"background: transparent;",onTouchmove:Je},null,40,["onTouchmove"]):"",!a&&!t.value?Vue.createVNode("div",{class:"uni-sample-toast"},[Vue.createVNode("p",{class:"uni-simple-toast__text"},[r])]):Vue.createVNode("div",{class:"uni-toast"},[a?Vue.createVNode("img",{src:a,class:ui},null,10,["src"]):t.value,Vue.createVNode("p",{class:"uni-toast__content"},[r])])],8,["data-duration"]),[[Vue.vShow,n.value]])]})}}});function rC(e){const t=Vue.ref(Tf(On())),n=({theme:i})=>t.value=Tf(i);return Vue.watchEffect(()=>{e.visible?li(n):ga(n)}),{Icon:Vue.computed(()=>{switch(e.icon){case"success":return Vue.createVNode(le(hn,t.value,38),{class:ui});case"error":return Vue.createVNode(le(_s,t.value,38),{class:ui});case"loading":return Vue.createVNode("i",{class:[ui,"uni-loading"]},null,2);default:return null}})}}let ct,St="",$n;const aC=Vue.effectScope();function sC(){aC.run(()=>{Vue.watch([()=>ct.visible,()=>ct.duration],([e,t])=>{if(e){if($n&&clearTimeout($n),St==="onShowLoading")return;$n=setTimeout(()=>{di("onHideToast")},t)}else $n&&clearTimeout($n)})})}function Cf(e){ct?L(ct,e):(ct=Vue.reactive(L(e,{visible:!1})),Vue.nextTick(()=>{sC(),UniServiceJSBridge.on("onHidePopup",()=>di("onHidePopup")),Qt(iC,ct,()=>{}).mount(Zt("u-a-t"))})),setTimeout(()=>{ct.visible=!0},10)}const Vf=R(nb,(e,{resolve:t,reject:n})=>{Cf(e),St="onShowToast",t()},ob,ib),cC={icon:"loading",duration:1e8,image:""},Af=R(Jy,(e,{resolve:t,reject:n})=>{L(e,cC),Cf(e),St="onShowLoading",t()},Ky,Qy),Ef=R(Fy,(e,{resolve:t,reject:n})=>{di("onHideToast"),t()}),kf=R(Uy,(e,{resolve:t,reject:n})=>{di("onHideLoading"),t()});function di(e){const{t}=U();if(!St)return;let n="";if(e==="onHideToast"&&St!=="onShowToast"?n=t("uni.showToast.unpaired"):e==="onHideLoading"&&St!=="onShowLoading"&&(n=t("uni.showLoading.unpaired")),n)return console.warn(n);St="",setTimeout(()=>{ct.visible=!1},10)}function If(e){const t=Vue.ref(0),n=Vue.ref(0),o=Vue.computed(()=>t.value>=500&&n.value>=500),i=Vue.computed(()=>{const r={content:{transform:"",left:"",top:"",bottom:""},triangle:{left:"",top:"",bottom:"","border-width":"","border-color":""}},a=r.content,s=r.triangle,c=e.popover;function l(u){return Number(u)||0}if(o.value&&c){L(s,{position:"absolute",width:"0",height:"0","margin-left":"-6px","border-style":"solid"});const u=l(c.left),d=l(c.width?c.width:300),h=l(c.top),g=l(c.height),v=u+d/2;a.transform="none !important";const _=Math.max(0,v-d/2);a.left=`${_}px`,c.width&&(a.width=`${d}px`);let m=Math.max(12,v-_);m=Math.min(d-12,m),s.left=`${m}px`;const w=n.value/2;h+g-w>w-h?(a.top="auto",a.bottom=`${n.value-h+6}px`,s.bottom="-6px",s["border-width"]="6px 6px 0 6px",s["border-color"]="#fcfcfd transparent transparent transparent"):(a.top=`${h+g+6}px`,s.top="-6px",s["border-width"]="0 6px 6px 6px",s["border-color"]="transparent transparent #fcfcfd transparent")}return r});return Vue.onMounted(()=>{const r=()=>{const{windowWidth:a,windowHeight:s,windowTop:c}=uni.getSystemInfoSync();t.value=a,n.value=s+(c||0)};window.addEventListener("resize",r),r(),Vue.onUnmounted(()=>{window.removeEventListener("resize",r)})}),{isDesktop:o,popupStyle:i}}const lC={light:{listItemColor:"#000000",cancelItemColor:"#000000"},dark:{listItemColor:"rgba(255, 255, 255, 0.8)",cancelItemColor:"rgba(255, 255, 255)"}};function uC(e,t){["listItemColor","cancelItemColor"].forEach(o=>{t[o]=lC[e][o]})}const dC={title:{type:String,default:""},itemList:{type:Array,default(){return[]}},itemColor:{type:String,default:"#000000"},popover:{type:Object,default:null},visible:{type:Boolean,default:!1}},fC=Vue.defineComponent({name:"ActionSheet",props:dC,emits:["close"],setup(e,{emit:t}){Mp();const n=Vue.ref(260),o=Vue.ref(0),i=Vue.ref(0),r=Vue.ref(0),a=Vue.ref(0),s=Vue.ref(null),c=Vue.ref(null),{t:l}=U(),{_close:u}=hC(e,t),{popupStyle:d}=If(e);let h;Vue.onMounted(()=>{const{scroller:_,handleTouchStart:m,handleTouchMove:w,handleTouchEnd:C}=Ru(s.value,{enableY:!0,friction:new Lr(1e-4),spring:new Br(2,90,20),onScroll:f=>{a.value=f.target.scrollTop}});h=_,xn(s.value,f=>{if(_)switch(f.detail.state){case"start":m(f);break;case"move":w(f);break;case"end":case"cancel":C(f)}},!0)});function g(_){const m=r.value+_.deltaY;Math.abs(m)>10?(a.value+=m/3,a.value=a.value>=o.value?o.value:a.value<=0?0:a.value,h.scrollTo(a.value)):r.value=m,_.preventDefault()}Vue.watch(()=>e.visible,()=>{Vue.nextTick(()=>{e.title&&(i.value=document.querySelector(".uni-actionsheet__title").offsetHeight),h.update(),s.value&&(o.value=s.value.clientHeight-n.value),document.querySelectorAll(".uni-actionsheet__cell").forEach(_=>{gC(_)})})});const v=pC(e);return()=>Vue.createVNode("uni-actionsheet",{onTouchmove:Je},[Vue.createVNode(Vue.Transition,{name:"uni-fade"},{default:()=>[Vue.withDirectives(Vue.createVNode("div",{class:"uni-mask uni-actionsheet__mask",onClick:()=>u(-1)},null,8,["onClick"]),[[Vue.vShow,e.visible]])]}),Vue.createVNode("div",{class:["uni-actionsheet",{"uni-actionsheet_toggle":e.visible}],style:d.value.content},[Vue.createVNode("div",{ref:c,class:"uni-actionsheet__menu",onWheel:g},[e.title?Vue.createVNode(Vue.Fragment,null,[Vue.createVNode("div",{class:"uni-actionsheet__cell",style:{height:`${i.value}px`}},null),Vue.createVNode("div",{class:"uni-actionsheet__title"},[e.title])]):"",Vue.createVNode("div",{style:{maxHeight:`${n.value}px`,overflow:"hidden"}},[Vue.createVNode("div",{ref:s},[e.itemList.map((_,m)=>Vue.createVNode("div",{key:m,style:{color:v.listItemColor},class:"uni-actionsheet__cell",onClick:()=>u(m)},[_],12,["onClick"]))],512)])],40,["onWheel"]),Vue.createVNode("div",{class:"uni-actionsheet__action"},[Vue.createVNode("div",{style:{color:v.cancelItemColor},class:"uni-actionsheet__cell",onClick:()=>u(-1)},[l("uni.showActionSheet.cancel")],12,["onClick"])]),Vue.createVNode("div",{style:d.value.triangle},null,4)],6)],40,["onTouchmove"])}});function hC(e,t){function n(r){t("close",r)}const{key:o,disable:i}=ri();return Vue.watch(()=>e.visible,r=>i.value=!r),Vue.watchEffect(()=>{const{value:r}=o;r==="esc"&&n&&n(-1)}),{_close:n}}function gC(e){let n=0,o=0;e.addEventListener("touchstart",i=>{const r=i.changedTouches[0];n=r.clientX,o=r.clientY}),e.addEventListener("touchend",i=>{const r=i.changedTouches[0];if(Math.abs(r.clientX-n)<20&&Math.abs(r.clientY-o)<20){const a=i.target,s=i.currentTarget,c=new CustomEvent("click",{bubbles:!0,cancelable:!0,target:a,currentTarget:s});["screenX","screenY","clientX","clientY","pageX","pageY"].forEach(l=>{c[l]=r[l]}),i.target.dispatchEvent(c)}})}function pC(e){const t=Vue.reactive({listItemColor:"#000",cancelItemColor:"#000"}),n=({theme:o})=>{uC(o,t)};return Vue.watchEffect(()=>{e.visible?(t.listItemColor=t.cancelItemColor=e.itemColor,e.itemColor==="#000"&&(n({theme:On()}),li(n))):ga(n)}),t}let ma,va,Ye;const mC=ne(()=>{UniServiceJSBridge.on("onHidePopup",()=>Ye.visible=!1)});function vC(e){e===-1?va&&va("cancel"):ma&&ma({tapIndex:e})}const Nf=()=>{Ye&&(Ye.visible=!1)},xf=R(jy,(e,{resolve:t,reject:n})=>{mC(),ma=t,va=n,Ye?(L(Ye,e),Ye.visible=!0):(Ye=Vue.reactive(e),Vue.nextTick(()=>(Qt(fC,Ye,vC).mount(Zt("u-s-a-s")),Vue.nextTick(()=>Ye.visible=!0))))},Yy,Xy),_a=R($y,({family:e,source:t,desc:n},{resolve:o,reject:i})=>{t.startsWith('url("')||t.startsWith("url('")?t=`url('${Q(t.substring(5,t.length-2))}')`:t.startsWith("url(")?t=`url('${Q(t.substring(4,t.length-1))}')`:t=Q(t),ip(e,t,n).then(()=>{o()}).catch(r=>{i(`loadFontFace:fail ${r}`)})});function _C(e){e&&e!==document.title&&(document.title=e),UniServiceJSBridge.emit(Ma,{titleText:e})}function yC(e){function t(){_C(e.navigationBar.titleText)}Vue.watchEffect(t),Vue.onActivated(t)}function fi(e,t,n,o,i){if(!e)return i("page not found");const{navigationBar:r}=e;switch(t){case nr:const{frontColor:a,backgroundColor:s,animation:c}=n,{duration:l,timingFunc:u}=c;a&&(r.titleColor=a==="#000000"?"#000000":"#ffffff"),s&&(r.backgroundColor=s),r.duration=l+"ms",r.timingFunc=u;break;case ir:r.loading=!0;break;case rr:r.loading=!1;break;case or:const{title:d}=n;r.titleText=d;break}o()}const Mf=R(nr,(e,{resolve:t,reject:n})=>{fi(Mt(),nr,e,t,n)},Hy,zy),Pf=R(ir,(e,{resolve:t,reject:n})=>{fi(Mt(),ir,e||{},t,n)}),Of=R(rr,(e,{resolve:t,reject:n})=>{fi(Mt(),rr,e||{},t,n)}),Rf=R(or,(e,{resolve:t,reject:n})=>{fi(Mt(),or,e,t,n)}),Lf=R(Wy,({scrollTop:e,selector:t,duration:n},{resolve:o})=>{rp(t||e||0,n),o()},qy,Gy),Bf=R(ar,(e,{resolve:t})=>{UniServiceJSBridge.invokeViewMethod(ar,{},pt()),t()}),Df=R(sr,(e,{resolve:t})=>{UniServiceJSBridge.invokeViewMethod(sr,{},pt()),t()}),bC=["text","iconPath","iconfont","selectedIconPath","visible"],wC=["color","selectedColor","backgroundColor","borderStyle","borderColor","midButton"],ya=["badge","redDot"];function zn(e,t,n){t.forEach(function(o){ae(n,o)&&(e[o]=n[o])})}function lt(e,t,n,o){var i;let r=!1;const a=$t();if(a.length&&nt(a[a.length-1]).meta.isTabBar&&(r=!0),!r)return o("not TabBar page");const{index:s}=t;if(typeof s=="number"){const l=(i=__uniConfig==null?void 0:__uniConfig.tabBar)==null?void 0:i.list.length;if(!l||s>=l)return o("tabbar item not found")}const c=En();switch(e){case dr:c.shown=!0;break;case ur:c.shown=!1;break;case cr:const l=c.list[s],u=l.pagePath;zn(l,bC,t);const{pagePath:d}=t;if(d){const h=qe(d);h!==u&&Tm(s,u,h)}break;case lr:zn(c,wC,t);break;case hr:zn(c.list[s],ya,{badge:"",redDot:!0});break;case pr:zn(c.list[s],ya,{badge:t.text,redDot:!0});break;case fr:case gr:zn(c.list[s],ya,{badge:"",redDot:!1});break}n()}const Uf=R(cr,(e,{resolve:t,reject:n})=>{lt(cr,e,t,n)},rb,ab),Ff=R(lr,(e,{resolve:t,reject:n})=>{lt(lr,e,t,n)},sb,lb),$f=R(ur,(e,{resolve:t,reject:n})=>{lt(ur,e||{},t,n)}),zf=R(dr,(e,{resolve:t,reject:n})=>{lt(dr,e||{},t,n)}),Hf=R(fr,(e,{resolve:t,reject:n})=>{lt(fr,e,t,n)},ub,db),Wf=R(hr,(e,{resolve:t,reject:n})=>{lt(hr,e,t,n)},fb,hb),qf=R(gr,(e,{resolve:t,reject:n})=>{lt(gr,e,t,n)},gb,pb),Gf=R(pr,(e,{resolve:t,reject:n})=>{lt(pr,e,t,n)},mb,vb),SC="UniTabbarIconFont",TC={width:"50px",height:"50px",iconWidth:"24px"},CC=ge({name:"TabBar",setup(){const e=Vue.ref([]),t=En(),n=bf(t,()=>{const s=Fn(t);n.backgroundColor=s.backgroundColor,n.borderStyle=s.borderStyle,n.color=s.color,n.selectedColor=s.selectedColor,n.blurEffect=s.blurEffect,n.midButton=s.midButton,s.list&&s.list.length&&s.list.forEach((c,l)=>{n.list[l].iconPath=c.iconPath,n.list[l].selectedIconPath=c.selectedIconPath})});AC(n,e),VC(n);const o=EC(VueRouter.useRoute(),n,e),{style:i,borderStyle:r,placeholderStyle:a}=NC(n);return Vue.onMounted(()=>{n.iconfontSrc&&_a({family:SC,source:`url("${n.iconfontSrc}")`})}),()=>{const s=xC(n,o,e);return Vue.createVNode("uni-tabbar",{class:"uni-tabbar-"+n.position},[Vue.createVNode("div",{class:"uni-tabbar",style:i.value},[Vue.createVNode("div",{class:"uni-tabbar-border",style:r.value},null,4),s],4),Vue.createVNode("div",{class:"uni-placeholder",style:a.value},null,4)],2)}}});function VC(e){Vue.watch(()=>e.shown,t=>{gs({"--window-bottom":xl(t?parseInt(e.height):0)})})}function AC(e,t){const n=Vue.ref(L({type:"midButton"},e.midButton));function o(){let i=[];i=e.list.filter(r=>r.visible!==!1),__UNI_FEATURE_TABBAR_MIDBUTTON__&&e.midButton&&(n.value=L({},TC,n.value,e.midButton),i=i.filter(r=>!Jf(r)),i.length%2===0&&i.splice(Math.floor(i.length/2),0,n.value)),t.value=i}Vue.watchEffect(o)}function EC(e,t,n){return Vue.watchEffect(()=>{const o=e.meta;if(o.isTabBar){const i=o.route,r=n.value.findIndex(a=>a.pagePath===i);t.selectedIndex=r}}),(o,i)=>{const{type:r}=o;return()=>{if(__UNI_FEATURE_TABBAR_MIDBUTTON__&&r==="midButton")return UniServiceJSBridge.invokeOnCallback(Dc);const{pagePath:a,text:s}=o;let c=qe(a);c===__uniRoutes[0].alias&&(c="/"),e.path!==c?uni.switchTab({from:"tabBar",url:c,tabBarText:s}):re("onTabItemTap",{index:i,text:s,pagePath:a})}}}const kC="#f7f7fa",jf="rgb(0, 0, 0, 0.8)",Yf="rgb(250, 250, 250, 0.8)",IC={dark:jf,light:Yf,extralight:Yf},Xf={white:"rgba(255, 255, 255, 0.33)",black:"rgba(0, 0, 0, 0.33)"};function NC(e){const t=Vue.computed(()=>{let i=e.backgroundColor;const r=e.blurEffect;return i||Ro&&r&&r!=="none"&&(i=IC[r]),{backgroundColor:i||kC,backdropFilter:r!=="none"?"blur(10px)":r}}),n=Vue.computed(()=>{const{borderStyle:i,borderColor:r}=e;return r&&J(r)?{backgroundColor:r}:{backgroundColor:Xf[i]||Xf.black}}),o=Vue.computed(()=>({height:e.height}));return{style:t,borderStyle:n,placeholderStyle:o}}function Jf(e){return e.type==="midButton"}function xC(e,t,n){const{selectedIndex:o,selectedColor:i,color:r}=e;return n.value.map((a,s)=>{const c=o===s,l=c?i:r,u=c&&a.selectedIconPath||a.iconPath||"",d=a.iconfont?c&&a.iconfont.selectedText||a.iconfont.text:void 0,h=a.iconfont?c&&a.iconfont.selectedColor||a.iconfont.color:void 0;return __UNI_FEATURE_TABBAR_MIDBUTTON__&&Jf(a)?LC(l,u,d,h,a,e,s,t):Kf(l,u,d,h,a,e,s,t)})}function Kf(e,t,n,o,i,r,a,s){return Vue.createVNode("div",{key:a,class:"uni-tabbar__item",onClick:s(i,a)},[Qf(e,t||"",n,o,i,r)],8,["onClick"])}function Qf(e,t,n,o,i,r){const{height:a}=r;return Vue.createVNode("div",{class:"uni-tabbar__bd",style:{height:a}},[n?PC(n,o||jf,i,r):t&&MC(t,i,r),i.text&&OC(e,i,r),i.redDot&&RC(i.badge)],4)}function MC(e,t,n){const{type:o,text:i}=t,{iconWidth:r}=n,a="uni-tabbar__icon"+(i?" uni-tabbar__icon__diff":""),s={width:r,height:r};return Vue.createVNode("div",{class:a,style:s},[o!=="midButton"&&Vue.createVNode("img",{src:Q(e)},null,8,["src"])],6)}function PC(e,t,n,o){var i;const{type:r,text:a}=n,{iconWidth:s}=o,c="uni-tabbar__icon"+(a?" uni-tabbar__icon__diff":""),l={width:s,height:s},u={fontSize:((i=n.iconfont)==null?void 0:i.fontSize)||s,color:t};return Vue.createVNode("div",{class:c,style:l},[r!=="midButton"&&Vue.createVNode("div",{class:"uni-tabbar__iconfont",style:u},[e],4)],6)}function OC(e,t,n){const{iconPath:o,text:i}=t,{fontSize:r,spacing:a}=n,s={color:e,fontSize:r,lineHeight:o?"normal":1.8,marginTop:o?a:"inherit"};return Vue.createVNode("div",{class:"uni-tabbar__label",style:s},[i],4)}function RC(e){const t="uni-tabbar__reddot"+(e?" uni-tabbar__badge":"");return Vue.createVNode("div",{class:t},[e],2)}function LC(e,t,n,o,i,r,a,s){const{width:c,height:l,backgroundImage:u,iconWidth:d}=i;return Vue.createVNode("div",{key:"midButton",class:"uni-tabbar__item",style:{flex:"0 0 "+c,position:"relative"},onClick:s(i,a)},[Vue.createVNode("div",{class:"uni-tabbar__mid",style:{width:c,height:l,backgroundImage:u?"url('"+Q(u)+"')":"none"}},[t&&Vue.createVNode("img",{style:{width:d,height:d},src:Q(t)},null,12,["src"])],4),Qf(e,t,n,o,i,r)],12,["onClick"])}const nn="0px";let Zf;function Le(){return Zf}const eh=ge({name:"Layout",setup(e,{emit:t}){const n=Vue.ref(null);DC();const o=__UNI_FEATURE_PAGES__&&Nb(),{layoutState:i,windowState:r}=$C();FC(i,n);const a=__UNI_FEATURE_TOPWINDOW__&&jC(i),s=__UNI_FEATURE_LEFTWINDOW__&&YC(i),c=__UNI_FEATURE_RIGHTWINDOW__&&XC(i),l=__UNI_FEATURE_TABBAR__&&HC(),u=BC(l);return Zf=i,()=>{const d=zC(o,i,r,a,s,c),h=__UNI_FEATURE_TABBAR__&&WC(l);return Vue.createVNode("uni-app",{ref:n,class:u.value},[d,h],2)}}});function BC(e){const t=Vue.ref(!1);return Vue.computed(()=>({"uni-app--showtabbar":e&&e.value,"uni-app--maxwidth":t.value}))}function DC(){Ue({"--status-bar-height":nn,"--top-window-height":nn,"--window-left":nn,"--window-right":nn,"--window-margin":nn,"--tab-bar-height":nn})}function UC(e,t){const n=window.matchMedia("(min-width: "+e+"px)");return n.addEventListener?n.addEventListener("change",t):n.addListener(t),n.matches}function FC(e,t){const n=yn();function o(){const i=document.body.clientWidth,r=$t();let a={};if(r.length>0){const l=r[r.length-1];a=nt(l).meta}else{const l=vn(n.path,!0);l&&(a=l.meta)}const s=parseInt(String((ae(a,"maxWidth")?a.maxWidth:__uniConfig.globalStyle.maxWidth)||Number.MAX_SAFE_INTEGER));let c=!1;i>s?c=!0:c=!1,c&&s?(e.marginWidth=(i-s)/2,Vue.nextTick(()=>{const l=t.value;l&&l.setAttribute("style","max-width:"+s+"px;margin:0 auto;")})):(e.marginWidth=0,Vue.nextTick(()=>{const l=t.value;l&&l.removeAttribute("style")}))}Vue.watch([()=>n.path],o),Vue.onMounted(()=>{o(),window.addEventListener("resize",o)})}function $C(){const e=yn();if(!__UNI_FEATURE_RESPONSIVE__){const u=Vue.reactive({marginWidth:0,leftWindowWidth:0,rightWindowWidth:0});return Vue.watch(()=>u.marginWidth,d=>Ue({"--window-margin":d+"px"})),Vue.watch(()=>u.leftWindowWidth+u.marginWidth,d=>{Ue({"--window-left":d+"px"})}),Vue.watch(()=>u.rightWindowWidth+u.marginWidth,d=>{Ue({"--window-right":d+"px"})}),{layoutState:u,windowState:Vue.computed(()=>({}))}}const t=Vue.ref(!1),n=Vue.ref(!1),o=Vue.ref(!1),i=Vue.computed(()=>__UNI_FEATURE_TOPWINDOW__&&e.meta.topWindow!==!1&&t.value),r=Vue.computed(()=>__UNI_FEATURE_LEFTWINDOW__&&e.meta.leftWindow!==!1&&n.value),a=Vue.computed(()=>__UNI_FEATURE_RIGHTWINDOW__&&e.meta.rightWindow!==!1&&o.value),s=Vue.reactive({topWindowMediaQuery:t,showTopWindow:i,apiShowTopWindow:!1,leftWindowMediaQuery:n,showLeftWindow:r,apiShowLeftWindow:!1,rightWindowMediaQuery:o,showRightWindow:a,apiShowRightWindow:!1,topWindowHeight:0,marginWidth:0,leftWindowWidth:0,rightWindowWidth:0,navigationBarTitleText:"",topWindowStyle:{},leftWindowStyle:{},rightWindowStyle:{}});["topWindow","leftWindow","rightWindow"].forEach(u=>{var d;const h=(d=__uniConfig[u])==null?void 0:d.matchMedia;let g=Mg;if(h&&ae(h,"minWidth")){const _=h.minWidth;g=C0(_)?_:g}const v=UC(g,_=>{s[`${u}MediaQuery`]=_.matches});s[`${u}MediaQuery`]=v}),Vue.watch(()=>s.topWindowHeight,u=>Ue({"--top-window-height":u+"px"})),Vue.watch(()=>s.marginWidth,u=>Ue({"--window-margin":u+"px"})),Vue.watch(()=>s.leftWindowWidth+s.marginWidth,u=>{Ue({"--window-left":u+"px"})}),Vue.watch(()=>s.rightWindowWidth+s.marginWidth,u=>{Ue({"--window-right":u+"px"})}),UniServiceJSBridge.on(Ma,u=>{s.navigationBarTitleText=u.titleText});const l=Vue.computed(()=>({matchTopWindow:s.topWindowMediaQuery,showTopWindow:s.showTopWindow||s.apiShowTopWindow,matchLeftWindow:s.leftWindowMediaQuery,showLeftWindow:s.showLeftWindow||s.apiShowLeftWindow,matchRightWindow:s.rightWindowMediaQuery,showRightWindow:s.showRightWindow||s.apiShowRightWindow}));return{layoutState:s,windowState:l}}function zC(e,t,n,o,i,r){const a=__UNI_FEATURE_PAGES__?GC(e):qC();if(!__UNI_FEATURE_RESPONSIVE__)return a;const s=__UNI_FEATURE_TOPWINDOW__?JC(o,t,n.value):null,c=__UNI_FEATURE_LEFTWINDOW__?KC(i,t,n.value):null,l=__UNI_FEATURE_RIGHTWINDOW__?QC(r,t,n.value):null;return Vue.createVNode("uni-layout",{class:{"uni-app--showtopwindow":__UNI_FEATURE_TOPWINDOW__&&t.showTopWindow,"uni-app--showleftwindow":__UNI_FEATURE_LEFTWINDOW__&&t.showLeftWindow,"uni-app--showrightwindow":__UNI_FEATURE_RIGHTWINDOW__&&t.showRightWindow}},[s,Vue.createVNode("uni-content",null,[Vue.createVNode("uni-main",null,[a]),c,l])],2)}function HC(e){const t=yn(),n=En(),o=Vue.computed(()=>t.meta.isTabBar&&n.shown);return Ue({"--tab-bar-height":n.height}),o}function WC(e){return Vue.withDirectives(Vue.createVNode(CC,null,null,512),[[Vue.vShow,e.value]])}function qC(){return Vue.createVNode(__uniRoutes[0].component)}function GC({routeKey:e,isTabBar:t,routeCache:n}){return Vue.createVNode(VueRouter.RouterView,null,{default:Vue.withCtx(({Component:o})=>[(Vue.openBlock(),Vue.createBlock(Vue.KeepAlive,{matchBy:"key",cache:n},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(o),{type:t.value?"tabBar":"",key:e.value}))],1032,["cache"]))]),_:1})}function jC(e){const{component:t,style:n}=__uniConfig.topWindow,o=Vue.ref(null);function i(){const r=o.value;if(!r||!r.$)return;const a=Zn(r.$);if(!a)return;const s=a.parentElement;if(!s)return;const c=s.getBoundingClientRect().height;e.topWindowHeight=c}return Vue.watch(()=>o.value,()=>{i()}),Vue.watch(()=>e.showTopWindow||e.apiShowTopWindow,()=>Vue.nextTick(i)),e.topWindowStyle=n,{component:t,windowRef:o}}function YC(e){const{component:t,style:n}=__uniConfig.leftWindow,o=Vue.ref(null);function i(){const r=o.value;if(!r||!r.$)return;const a=Zn(r.$);if(!a)return;const s=a.parentElement&&a.parentElement.parentElement;if(!s)return;const c=s.getBoundingClientRect().width;e.leftWindowWidth=c}return Vue.watch(()=>o.value,()=>{i()}),Vue.watch(()=>e.showLeftWindow||e.apiShowLeftWindow,()=>Vue.nextTick(i)),e.leftWindowStyle=n,{component:t,windowRef:o}}function XC(e){const{component:t,style:n}=__uniConfig.rightWindow,o=Vue.ref(null);function i(){const r=o.value;if(!r||!r.$)return;const a=Zn(r.$);if(!a)return;const s=a.parentElement&&a.parentElement.parentElement;if(!s)return;const c=s.getBoundingClientRect().width;e.rightWindowWidth=c}return Vue.watch(()=>o.value,()=>{i()}),Vue.watch(()=>e.showRightWindow||e.apiShowRightWindow,()=>Vue.nextTick(i)),e.rightWindowStyle=n,{component:t,windowRef:o}}function JC(e,t,n){if(e){const{component:o,windowRef:i}=e;return Vue.withDirectives(Vue.createVNode("uni-top-window",null,[Vue.createVNode("div",{class:"uni-top-window",style:t.topWindowStyle},[Vue.createVNode(o,Vue.mergeProps({ref:i,"navigation-bar-title-text":t.navigationBarTitleText},n),null,16,["navigation-bar-title-text"])],4),Vue.createVNode("div",{class:"uni-top-window--placeholder",style:{height:t.topWindowHeight+"px"}},null,4)],512),[[Vue.vShow,t.showTopWindow||t.apiShowTopWindow]])}}function KC(e,t,n){if(e){const{component:o,windowRef:i}=e;return Vue.withDirectives(Vue.createVNode("uni-left-window",{"data-show":t.apiShowLeftWindow||void 0,style:t.leftWindowStyle},[t.apiShowLeftWindow?Vue.createVNode("div",{class:"uni-mask",onClick:()=>t.apiShowLeftWindow=!1},null,8,["onClick"]):null,Vue.createVNode("div",{class:"uni-left-window"},[Vue.createVNode(o,Vue.mergeProps({ref:i},n),null,16)])],12,["data-show"]),[[Vue.vShow,t.showLeftWindow||t.apiShowLeftWindow]])}}function QC(e,t,n){if(e){const{component:o,windowRef:i}=e;return Vue.withDirectives(Vue.createVNode("uni-right-window",{"data-show":t.apiShowRightWindow||void 0,style:t.rightWindowStyle},[t.apiShowRightWindow?Vue.createVNode("div",{class:"uni-mask",onClick:()=>t.apiShowRightWindow=!1},null,8,["onClick"]):null,Vue.createVNode("div",{class:"uni-right-window"},[Vue.createVNode(o,Vue.mergeProps({ref:i},n),null,16)])],12,["data-show"]),[[Vue.vShow,t.showRightWindow||t.apiShowRightWindow]])}}const th=R("showTopWindow",(e,{resolve:t,reject:n})=>{const o=Le();if(!o){n();return}o.apiShowTopWindow=!0,Vue.nextTick(t)}),nh=R("hideTopWindow",(e,{resolve:t,reject:n})=>{const o=Le();if(!o){n();return}o.apiShowTopWindow=!1,Vue.nextTick(t)}),oh=R("showLeftWindow",(e,{resolve:t,reject:n})=>{const o=Le();if(!o){n();return}o.apiShowLeftWindow=!0,Vue.nextTick(t)}),ih=R("hideLeftWindow",(e,{resolve:t,reject:n})=>{const o=Le();if(!o){n();return}o.apiShowLeftWindow=!1,Vue.nextTick(t)}),rh=R("showRightWindow",(e,{resolve:t,reject:n})=>{const o=Le();if(!o){n();return}o.apiShowRightWindow=!0,Vue.nextTick(t)}),ah=R("hideRightWindow",(e,{resolve:t,reject:n})=>{const o=Le();if(!o){n();return}o.apiShowRightWindow=!1,Vue.nextTick(t)}),sh=j("getTopWindowStyle",()=>{const e=Le();return L({},e&&e.topWindowStyle)}),ch=j("setTopWindowStyle",e=>{const t=Le();t&&(t.topWindowStyle=e)}),lh=j("getLeftWindowStyle",()=>{const e=Le();return L({},e&&e.leftWindowStyle)}),uh=j("setLeftWindowStyle",e=>{const t=Le();t&&(t.leftWindowStyle=e)}),dh=j("getRightWindowStyle",()=>{const e=Le();return L({},e&&e.rightWindowStyle)}),fh=j("setRightWindowStyle",e=>{const t=Le();t&&(t.rightWindowStyle=e)}),hh=j("getFacialRecognitionMetaInfo",()=>Object.getPrototypeOf(window)!==Window.prototype?(console.error("getFacialRecognitionMetaInfo:fail window对象原型被篡改,可能存在劫持"),""):window.window!==window||window.self!==window?(console.error("getFacialRecognitionMetaInfo:fail window对象属性引用异常,可能被劫持"),""):Object.prototype.toString.call(window)!=="[object Window]"&&Object.prototype.toString.call(window)!=="[object DOMWindow]"?(console.error("getFacialRecognitionMetaInfo:fail window对象类型标识异常,可能被劫持"),""):G(window.getMetaInfo)?window.getMetaInfo():(console.error("getFacialRecognitionMetaInfo:fail window对象缺少getMetaInfo方法,请参考文档引用:https://doc.dcloud.net.cn/uniCloud/frv/dev.html#window-get-meta-info"),"")),gh=R(vl,we(vl)),ph="getRecorderManager",mh=j(ph,yo(ph)),vh=R(_l,we(_l)),_h="createCameraContext",yh=j(_h,yo(_h)),bh="createLivePlayerContext",wh=j(bh,yo(bh)),Sh="saveFile",Th=R(Sh,we(Sh)),Ch="getSavedFileList",Vh=R(Ch,we(Ch)),Ah="getSavedFileInfo",Eh=R(Ah,we(Ah)),kh="removeSavedFile",Ih=R(kh,we(kh)),Nh="onMemoryWarning",xh=ke(Nh,Hi(Nh)),Mh="onGyroscopeChange",Ph=ke(Mh,Hi(Mh)),Oh="startGyroscope",Rh=R(Oh,we(Oh)),Lh="stopGyroscope",Bh=R(Lh,we(Lh)),Dh="scanCode",Uh=R(Dh,we(Dh)),Fh="setScreenBrightness",$h=R(Fh,we(Fh)),zh="getScreenBrightness",Hh=R(zh,we(zh)),Wh="setKeepScreenOn",qh=R(Wh,we(Wh)),Gh="onUserCaptureScreen",jh=ke(Gh,Hi(Gh)),Yh="addPhoneContact",Xh=R(Yh,we(Yh)),Jh="login",Kh=R(Jh,we(Jh)),Qh="getProvider",Zh=R(Qh,we(Qh)),ZC=Object.defineProperty({__proto__:null,$emit:hc,$off:fc,$on:uc,$once:dc,__f__:gc,addInterceptor:sc,addPhoneContact:Xh,arrayBufferToBase64:Zs,base64ToArrayBuffer:Qs,canIUse:Il,canvasGetImageData:Vc,canvasPutImageData:Ac,canvasToTempFilePath:Ec,chooseFile:Fd,chooseImage:$d,chooseLocation:uf,chooseVideo:Xd,clearStorage:Md,clearStorageSync:sa,closePreviewImage:Yd,closeSocket:of,connectSocket:ef,createAnimation:Bc,createCameraContext:yh,createCanvasContext:Cc,createInnerAudioContext:cd,createIntersectionObserver:xc,createLivePlayerContext:wh,createMapContext:mc,createMediaQueryObserver:Pc,createSelectorQuery:Rc,createVideoContext:pc,cssBackdropFilter:Ro,cssConstant:Oo,cssEnv:Po,cssVar:_r,downloadFile:Qd,getAppBaseInfo:Xr,getClipboardData:Sd,getDeviceInfo:Yr,getEnterOptionsSync:il,getFacialRecognitionMetaInfo:hh,getFileInfo:Od,getImageInfo:Bd,getLaunchOptionsSync:rl,getLeftWindowStyle:lh,getLocale:So,getLocation:Bn,getNetworkType:Qr,getProvider:Zh,getPushClientId:ll,getRecorderManager:mh,getRightWindowStyle:dh,getSavedFileInfo:Eh,getSavedFileList:Vh,getScreenBrightness:Hh,getSelectedTextRange:jc,getStorage:Nd,getStorageInfo:Pd,getStorageInfoSync:ca,getStorageSync:Id,getSystemInfo:fd,getSystemInfoSync:Jr,getTabBarPageId:Io,getTopWindowStyle:sh,getVideoInfo:Dd,getWindowInfo:Gr,hideActionSheet:Nf,hideKeyboard:Ld,hideLeftWindow:ih,hideLoading:kf,hideModal:wf,hideNavigationBarLoading:Of,hideRightWindow:ah,hideTabBar:$f,hideTabBarRedDot:Hf,hideToast:Ef,hideTopWindow:nh,interceptors:lc,invokePushCallback:sl,loadFontFace:_a,login:Kh,makePhoneCall:ld,navigateBack:vf,navigateTo:_f,offAccelerometerChange:vd,offAppHide:ol,offAppShow:tl,offCompassChange:na,offError:Zc,offLocationChange:gf,offLocationChangeError:mf,offNetworkStatusChange:pd,offPageNotFound:Kc,offPushMessage:dl,offThemeChange:Ad,offUnhandledRejection:Xc,offWindowResize:$c,onAccelerometerChange:md,onAppHide:nl,onAppShow:el,onCompassChange:ta,onCreateVueApp:Xa,onError:Qc,onGyroscopeChange:Ph,onLocaleChange:Hc,onLocationChange:hf,onLocationChangeError:pf,onMemoryWarning:xh,onNetworkStatusChange:gd,onPageNotFound:Jc,onPushMessage:ul,onSocketClose:cf,onSocketError:af,onSocketMessage:sf,onSocketOpen:rf,onTabBarMidButtonTap:Uc,onThemeChange:Vd,onUnhandledRejection:Yc,onUserCaptureScreen:jh,onWindowResize:Fc,openDocument:Rd,openLocation:lf,pageScrollTo:Lf,preloadPage:yf,previewImage:jd,reLaunch:Al,redirectTo:Vl,removeAllPages:xo,removeInterceptor:cc,removeLastPage:No,removeNonTabBarPages:ko,removeSavedFile:Ih,removeStorage:xd,removeStorageSync:aa,removeTabBarBadge:qf,request:fa,rpx2px:bo,saveFile:Th,saveImageToPhotosAlbum:gh,saveVideoToPhotosAlbum:vh,scanCode:Uh,sendSocketMessage:nf,setClipboardData:Td,setKeepScreenOn:qh,setLeftWindowStyle:uh,setLocale:Wc,setNavigationBarColor:Mf,setNavigationBarTitle:Rf,setPageMeta:qc,setRightWindowStyle:fh,setScreenBrightness:$h,setStorage:Ed,setStorageSync:ra,setTabBarBadge:Gf,setTabBarItem:Uf,setTabBarStyle:Ff,setTopWindowStyle:ch,showActionSheet:xf,showLeftWindow:oh,showLoading:Af,showModal:Sf,showNavigationBarLoading:Pf,showRightWindow:rh,showTabBar:zf,showTabBarRedDot:Wf,showToast:Vf,showTopWindow:th,startAccelerometer:Zr,startCompass:oa,startGyroscope:Rh,startLocationUpdate:df,startPullDownRefresh:Bf,stopAccelerometer:ea,stopCompass:ia,stopGyroscope:Bh,stopLocationUpdate:ff,stopPullDownRefresh:Df,switchTab:Cl,uploadFile:Zd,upx2px:bo,vibrateLong:bd,vibrateShort:yd},Symbol.toStringTag,{value:"Module"}),eg="MAP_LOCATION",eV=ge({name:"MapLocation",setup(){const e=Vue.reactive({latitude:0,longitude:0,rotate:0});{let t=function(l){e.rotate=l.direction},n=function(){Bn({type:"gcj02",success:l=>{e.latitude=l.latitude,e.longitude=l.longitude},complete:()=>{r=setTimeout(n,3e4)}})},o=function(){r&&clearTimeout(r),na(t)};const i=Vue.inject("onMapReady");let r;ta(t),i(n),Vue.onUnmounted(o);const a=Vue.inject("addMapChidlContext"),s=Vue.inject("removeMapChidlContext"),c={id:eg,state:e};a(c),Vue.onUnmounted(()=>s(c))}return()=>e.latitude?Vue.createVNode(sd,Vue.mergeProps({anchor:{x:.5,y:.5},width:"44",height:"44",iconPath:nd},e),null,16,["iconPath"]):null}}),tV=ge({name:"MapPolygon",props:{dashArray:{type:Array,default:()=>[0,0]},points:{type:Array,required:!0},strokeWidth:{type:Number,default:1},strokeColor:{type:String,default:"#000000"},fillColor:{type:String,default:"#00000000"},zIndex:{type:Number,default:0}},setup(e){let t;return Vue.inject("onMapReady")((o,i,r)=>{function a(){const{points:s,strokeWidth:c,strokeColor:l,dashArray:u,fillColor:d,zIndex:h}=e,g=s.map(b=>{const{latitude:A,longitude:N}=b;return ue()?[N,A]:ie()?new i.Point(N,A):new i.LatLng(A,N)}),{r:v,g:_,b:m,a:w}=it(d),{r:C,g:f,b:p,a:S}=it(l),T={clickable:!0,cursor:"crosshair",editable:!1,map:o,fillColor:"",path:g,strokeColor:"",strokeDashStyle:u.some(b=>b>0)?"dash":"solid",strokeWeight:c,visible:!0,zIndex:h};if(i.Color?(T.fillColor=new i.Color(v,_,m,w),T.strokeColor=new i.Color(C,f,p,S)):(T.fillColor=`rgb(${v}, ${_}, ${m})`,T.fillOpacity=w,T.strokeColor=`rgb(${C}, ${f}, ${p})`,T.strokeOpacity=S),t){t.setOptions(T);return}ie()?(t=new i.Polygon(T.path,T),o.addOverlay(t)):t=new i.Polygon(T)}a(),Vue.watch(e,a)}),Vue.onUnmounted(()=>{t.setMap(null)}),()=>null}}),nV={id:{type:String,default:""},latitude:{type:[String,Number],default:0},longitude:{type:[String,Number],default:0},scale:{type:[String,Number],default:16},markers:{type:Array,default(){return[]}},includePoints:{type:Array,default(){return[]}},polyline:{type:Array,default(){return[]}},circles:{type:Array,default(){return[]}},controls:{type:Array,default(){return[]}},showLocation:{type:[Boolean,String],default:!1},libraries:{type:Array,default(){return[]}},polygons:{type:Array,default:()=>[]}};function ba(e){const t=[];return K(e)&&e.forEach(n=>{n&&n.latitude&&n.longitude&&t.push({latitude:n.latitude,longitude:n.longitude})}),t}function oV(e,t,n){return new e.LngLat(n,t)}function iV(e,t,n){return new e.Point(n,t)}function rV(e,t,n){return new e.LatLng(t,n)}function hi(e,t,n){return ie()?iV(e,t,n):ue()?oV(e,t,n):rV(e,t,n)}function Hn(e){return"getLat"in e?e.getLat():ie()?e.lat:e.lat()}function Wn(e){return"getLng"in e?e.getLng():ie()?e.lng:e.lng()}function aV(e,t,n){const o=pe(t,n),i=Vue.ref(null);let r,a;const s=Vue.reactive({latitude:Number(e.latitude),longitude:Number(e.longitude),includePoints:ba(e.includePoints)}),c=[];let l;function u(b){l?b(a,r,o):c.push(b)}function d(){l=!0,c.forEach(b=>b(a,r,o)),c.length=0}let h;const g=[];function v(b){h?b():c.push(b)}const _={};function m(b){_[b.id]=b}function w(b){delete _[b.id]}Vue.watch([()=>e.latitude,()=>e.longitude],([b,A])=>{const N=Number(b),E=Number(A);if((N!==s.latitude||E!==s.longitude)&&(s.latitude=N,s.longitude=E,a)){const V=hi(r,s.latitude,s.longitude);a.setCenter(V)}}),Vue.watch(()=>e.includePoints,b=>{s.includePoints=ba(b),h&&S()},{deep:!0});function C(){h=!0,g.forEach(b=>b()),g.length=0}function f(){const b=a.getCenter();return{scale:a.getZoom(),centerLocation:{latitude:Hn(b),longitude:Wn(b)}}}function p(){const b=hi(r,s.latitude,s.longitude);a.setCenter(b)}function S(){if(ue()){const b=[];s.includePoints.forEach(N=>{b.push([N.longitude,N.latitude])});const A=new r.Bounds(...b);a.setBounds(A)}else if(!ie()){const b=new r.LatLngBounds;s.includePoints.forEach(({latitude:A,longitude:N})=>{const E=new r.LatLng(A,N);b.extend(E)}),a.fitBounds(b)}}function T(){const b=i.value,A=hi(r,s.latitude,s.longitude),N=r.event||r.Event,E=new r.Map(b,{center:A,zoom:Number(e.scale),disableDoubleClickZoom:!0,mapTypeControl:!1,zoomControl:!1,scaleControl:!1,panControl:!1,fullscreenControl:!1,streetViewControl:!1,keyboardShortcuts:!1,minZoom:5,maxZoom:18,draggable:!0});if(ie()&&(E.centerAndZoom(A,Number(e.scale)),E.enableScrollWheelZoom(),E._printLog&&E._printLog("uniapp")),Vue.watch(()=>e.scale,V=>{E.setZoom(Number(V)||16)}),v(()=>{s.includePoints.length&&(S(),p())}),ie())E.addEventListener("click",()=>{o("tap",{},{}),o("click",{},{})}),E.addEventListener("dragstart",()=>{o("regionchange",{},{type:"begin",causedBy:"gesture"})}),E.addEventListener("dragend",()=>{o("regionchange",{},L({type:"end",causedBy:"drag"},f()))});else{const V=N.addListener(E,"bounds_changed",()=>{V.remove(),C()});N.addListener(E,"complete",()=>{C()}),N.addListener(E,"click",()=>{o("tap",{},{}),o("click",{},{})}),N.addListener(E,"dragstart",()=>{o("regionchange",{},{type:"begin",causedBy:"gesture"})}),N.addListener(E,"dragend",()=>{o("regionchange",{},L({type:"end",causedBy:"drag"},f()))});const I=()=>{n("update:scale",E.getZoom()),o("regionchange",{},L({type:"end",causedBy:"scale"},f()))};N.addListener(E,"zoom_changed",I),N.addListener(E,"zoomend",I),N.addListener(E,"center_changed",()=>{const M=E.getCenter(),F=Hn(M),k=Wn(M);n("update:latitude",F),n("update:longitude",k)})}return E}try{const b=Ko();Gt((A,N={})=>{switch(A){case"getCenterLocation":u(()=>{const E=a.getCenter();be(N,{latitude:Hn(E),longitude:Wn(E),errMsg:`${A}:ok`})});break;case"moveToLocation":{let E=Number(N.latitude),V=Number(N.longitude);if(!E||!V){const I=_[eg];I&&(E=I.state.latitude,V=I.state.longitude)}if(E&&V){if(s.latitude=E,s.longitude=V,a){const I=hi(r,E,V);a.setCenter(I)}u(()=>{be(N,`${A}:ok`)})}else be(N,`${A}:fail`)}break;case"translateMarker":u(()=>{const E=_[N.markerId];if(E){try{E.translate(N)}catch(V){be(N,`${A}:fail ${V.message}`)}be(N,`${A}:ok`)}else be(N,`${A}:fail not found`)});break;case"includePoints":s.includePoints=ba(N.includePoints),(h||ue())&&S(),v(()=>{be(N,`${A}:ok`)});break;case"getRegion":v(()=>{const E=a.getBounds(),V=E.getSouthWest(),I=E.getNorthEast();be(N,{southwest:{latitude:Hn(V),longitude:Wn(V)},northeast:{latitude:Hn(I),longitude:Wn(I)},errMsg:`${A}:ok`})});break;case"getScale":u(()=>{be(N,{scale:a.getZoom(),errMsg:`${A}:ok`})});break}},b,!0)}catch(b){}return Vue.onMounted(()=>{Wr(e.libraries,b=>{r=b,a=T(),d(),o("updated",{},{})})}),Vue.provide("onMapReady",u),Vue.provide("addMapChidlContext",m),Vue.provide("removeMapChidlContext",w),{state:s,mapRef:i,trigger:o}}const wa=X({name:"Map",props:nV,emits:["markertap","labeltap","callouttap","controltap","regionchange","tap","click","updated","update:scale","update:latitude","update:longitude"],setup(e,{emit:t,slots:n}){const o=Vue.ref(null),{mapRef:i,trigger:r}=aV(e,o,t);return()=>Vue.createVNode("uni-map",{ref:o,id:e.id},[Vue.createVNode("div",{ref:i,style:"width: 100%; height: 100%; position: relative; overflow: hidden"},null,512),e.markers.map(a=>Vue.createVNode(sd,Vue.mergeProps({key:a.id},a),null,16)),e.polyline.map(a=>Vue.createVNode(f1,a,null,16)),e.circles.map(a=>Vue.createVNode(h1,a,null,16)),e.controls.map(a=>Vue.createVNode(g1,Vue.mergeProps(a,{trigger:r}),null,16,["trigger"])),e.showLocation&&Vue.createVNode(eV,null,null),e.polygons.map(a=>Vue.createVNode(tV,a,null,16)),Vue.createVNode("div",{style:"position: absolute;top: 0;width: 100%;height: 100%;overflow: hidden;pointer-events: none;"},[n.default&&n.default()])],8,["id"])}}),sV=X({name:"CoverView",compatConfig:{MODE:3},props:{scrollTop:{type:[String,Number],default:0}},setup(e,{slots:t}){const n=Vue.ref(null),o=Vue.ref(null);Vue.watch(()=>e.scrollTop,a=>{i(a)});function i(a){let s=o.value;getComputedStyle(s).overflowY==="scroll"&&(s.scrollTop=r(a))}function r(a){let s=String(a);return/\d+[ur]px$/i.test(s)&&s.replace(/\d+[ur]px$/i,c=>String(uni.upx2px(parseFloat(c)))),parseFloat(s)||0}return Vue.onMounted(()=>{i(e.scrollTop)}),()=>Vue.createVNode("uni-cover-view",{"scroll-top":e.scrollTop,ref:n},[Vue.createVNode("div",{ref:o,class:"uni-cover-view"},[t.default&&t.default()],512)],8,["scroll-top"])}}),cV=X({name:"CoverImage",compatConfig:{MODE:3},props:{src:{type:String,default:""}},emits:["load","error"],setup(e,{emit:t}){const n=Vue.ref(null),o=pe(n,t);function i(a){o("load",a)}function r(a){o("error",a)}return()=>{const{src:a}=e;return Vue.createVNode("uni-cover-image",{ref:n,src:a},[Vue.createVNode("div",{class:"uni-cover-image"},[a?Vue.createVNode("img",{src:Q(a),onLoad:i,onError:r},null,40,["src","onLoad","onError"]):null])],8,["src"])}}});function tg(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}function ng(e){if(e.mode===Y.TIME)return"00:00";if(e.mode===Y.DATE){const t=new Date().getFullYear()-150;switch(e.fields){case xe.YEAR:return t.toString();case xe.MONTH:return t+"-01";default:return t+"-01-01"}}return""}function og(e){if(e.mode===Y.TIME)return"23:59";if(e.mode===Y.DATE){const t=new Date().getFullYear()+150;switch(e.fields){case xe.YEAR:return t.toString();case xe.MONTH:return t+"-12";default:return t+"-12-31"}}return""}function qn(e,t,n,o){const i=e.mode===Y.DATE?"-":":",r=e.mode===Y.DATE?t.dateArray:t.timeArray;let a;if(e.mode===Y.TIME)a=2;else switch(e.fields){case xe.YEAR:a=1;break;case xe.MONTH:a=2;break;default:a=3;break}const s=String(n).split(i);let c=[];for(let l=0;l<a;l++){const u=s[l];c.push(r[l].indexOf(u))}return c.indexOf(-1)>=0&&(c=o?qn(e,t,o):c.map(()=>0)),c}const Y={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},xe={YEAR:"year",MONTH:"month",DAY:"day"},gi={PICKER:"picker",SELECT:"select"},lV={name:{type:String,default:""},range:{type:Array,default(){return[]}},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:Y.SELECTOR,validator(e){return Object.values(Y).includes(e)}},fields:{type:String,default:""},start:{type:String,default:e=>ng(e)},end:{type:String,default:e=>og(e)},disabled:{type:[Boolean,String],default:!1},selectorType:{type:String,default:""}},uV=X({name:"Picker",compatConfig:{MODE:3},props:lV,emits:["change","cancel","columnchange"],setup(e,{emit:t,slots:n}){Dp();const{t:o}=U(),i=Vue.ref(null),r=Vue.ref(null),a=Vue.ref(null),s=Vue.ref(null),c=Vue.ref(!1),{state:l,rangeArray:u}=dV(e),d=pe(i,t),{system:h,selectorTypeComputed:g,_show:v,_l10nColumn:_,_l10nItem:m,_input:w,_fixInputPosition:C,_pickerViewChange:f,_cancel:p,_change:S,_resetFormData:T,_getFormData:b,_createTime:A,_createDate:N,_setValueSync:E}=mV(e,l,d,i,r,a,s);vV(l,p,S),_V(T,b),A(),N(),E();const V=If(l);return Vue.watchEffect(()=>{l.isDesktop=V.isDesktop.value,l.popupStyle=V.popupStyle.value}),Vue.onBeforeUnmount(()=>{r.value&&r.value.remove()}),Vue.onMounted(()=>{c.value=!0}),()=>{let I;const{visible:M,contentVisible:F,valueArray:k,popupStyle:B,valueSync:z}=l,{rangeKey:x,mode:P,start:O,end:D}=e,W=mt(e,"disabled");return Vue.createVNode("uni-picker",Vue.mergeProps({ref:i},W,{onClick:oe(v)}),[c.value?Vue.createVNode("div",{ref:r,class:["uni-picker-container",`uni-${P}-${g.value}`],onWheel:Je,onTouchmove:Je},[Vue.createVNode(Vue.Transition,{name:"uni-fade"},{default:()=>[Vue.withDirectives(Vue.createVNode("div",{class:"uni-mask uni-picker-mask",onClick:oe(p),onMousemove:C},null,40,["onClick","onMousemove"]),[[Vue.vShow,M]])]}),h.value?null:Vue.createVNode("div",{class:[{"uni-picker-toggle":M},"uni-picker-custom"],style:B.content},[Vue.createVNode("div",{class:"uni-picker-header",onClick:un},[Vue.createVNode("div",{class:"uni-picker-action uni-picker-action-cancel",onClick:oe(p)},[o("uni.picker.cancel")],8,["onClick"]),Vue.createVNode("div",{class:"uni-picker-action uni-picker-action-confirm",onClick:S},[o("uni.picker.done")],8,["onClick"])],8,["onClick"]),F?Vue.createVNode(Pu,{value:_(k),class:"uni-picker-content",onChange:f},tg(I=Vue.renderList(_(u.value),(q,$)=>{let ee;return Vue.createVNode(Lu,{key:$},tg(ee=Vue.renderList(q,(de,Me)=>Vue.createVNode("div",{key:Me,class:"uni-picker-item"},[typeof de=="object"?de[x]||"":m(de,$)])))?ee:{default:()=>[ee],_:1})}))?I:{default:()=>[I],_:1},8,["value","onChange"]):null,Vue.createVNode("div",{ref:a,class:"uni-picker-select",onWheel:un,onTouchmove:un},[Vue.renderList(u.value[0],(q,$)=>Vue.createVNode("div",{key:$,class:["uni-picker-item",{selected:k[0]===$}],onClick:()=>{k[0]=$,S()}},[typeof q=="object"?q[x]||"":q],10,["onClick"]))],40,["onWheel","onTouchmove"]),Vue.createVNode("div",{style:B.triangle},null,4)],6)],40,["onWheel","onTouchmove"]):null,Vue.createVNode("div",null,[n.default&&n.default()]),h.value?Vue.createVNode("div",{class:"uni-picker-system",onMousemove:oe(C)},[Vue.createVNode("input",{class:["uni-picker-system_input",h.value],ref:s,value:z,type:P,tabindex:"-1",min:O,max:D,onChange:q=>{w(q),un(q)}},null,42,["value","type","min","max","onChange"])],40,["onMousemove"]):null],16,["onClick"])}}});function dV(e){const t=Vue.reactive({valueSync:void 0,visible:!1,contentVisible:!1,popover:null,valueChangeSource:"",timeArray:[],dateArray:[],valueArray:[],oldValueArray:[],isDesktop:!1,popupStyle:{content:{},triangle:{}}}),n=Vue.computed(()=>{let o=e.range;switch(e.mode){case Y.SELECTOR:return[o];case Y.MULTISELECTOR:return o;case Y.TIME:return t.timeArray;case Y.DATE:{const i=t.dateArray;switch(e.fields){case xe.YEAR:return[i[0]];case xe.MONTH:return[i[0],i[1]];default:return[i[0],i[1],i[2]]}}}return[]});return{state:t,rangeArray:n}}const fV=()=>String(navigator.vendor).indexOf("Apple")===0&&navigator.maxTouchPoints>0;function hV(){const e=Vue.ref(!1);return e.value=fV(),e}const gV=()=>{if(/win|mac/i.test(navigator.platform)){if(navigator.vendor==="Google Inc.")return"chrome";if(/Firefox/.test(navigator.userAgent))return"firefox"}return""};function pV(){const e=Vue.ref("");return e.value=gV(),e}let ig;function mV(e,t,n,o,i,r,a){const s=hV(),c=pV(),l=Vue.computed(()=>{const x=e.selectorType;return Object.values(gi).includes(x)?x:s.value?gi.PICKER:gi.SELECT}),u=Vue.computed(()=>e.mode===Y.DATE&&!Object.values(xe).includes(e.fields)&&t.isDesktop?c.value:""),d=Vue.computed(()=>qn(e,t,e.start,ng(e))),h=Vue.computed(()=>qn(e,t,e.end,og(e)));function g(x){if(e.disabled)return;t.valueChangeSource="";let P=i.value,O=x.currentTarget;P.remove(),(document.querySelector("uni-app")||document.body).appendChild(P),P.style.display="block";const D=O.getBoundingClientRect();t.popover={top:D.top,left:D.left,width:D.width,height:D.height},setTimeout(()=>{t.visible=!0},20)}function v(){return{value:t.valueSync,key:e.name}}function _(){switch(e.mode){case Y.SELECTOR:t.valueSync=0;break;case Y.MULTISELECTOR:t.valueSync=e.value.map(x=>0);break;case Y.DATE:case Y.TIME:t.valueSync="";break}}function m(){let x=[],P=[];for(let O=0;O<24;O++)x.push((O<10?"0":"")+O);for(let O=0;O<60;O++)P.push((O<10?"0":"")+O);t.timeArray.push(x,P)}function w(){let x=new Date().getFullYear(),P=x-150,O=x+150;if(e.start){const D=new Date(e.start).getFullYear();!isNaN(D)&&D<P&&(P=D)}if(e.end){const D=new Date(e.end).getFullYear();!isNaN(D)&&D>O&&(O=D)}return{start:P,end:O}}function C(){let x=[];const P=w();for(let W=P.start,q=P.end;W<=q;W++)x.push(String(W));let O=[];for(let W=1;W<=12;W++)O.push((W<10?"0":"")+W);let D=[];for(let W=1;W<=31;W++)D.push((W<10?"0":"")+W);t.dateArray.push(x,O,D)}function f(x){return x[0]*60+x[1]}function p(x){return x[0]*31*12+(x[1]||0)*31+(x[2]||0)}function S(x,P){for(let O=0;O<x.length&&O<P.length;O++)x[O]=P[O]}function T(){let x=e.value;switch(e.mode){case Y.MULTISELECTOR:{K(x)||(x=t.valueArray),K(t.valueSync)||(t.valueSync=[]);const P=t.valueSync.length=Math.max(x.length,e.range.length);for(let O=0;O<P;O++){const D=Number(x[O]),W=Number(t.valueSync[O]),q=isNaN(D)?isNaN(W)?0:W:D,$=e.range[O]?e.range[O].length-1:0;t.valueSync.splice(O,1,q<0||q>$?0:q)}}break;case Y.TIME:case Y.DATE:t.valueSync=String(x);break;default:{const P=Number(x);t.valueSync=P<0?0:P;break}}}function b(){let x=t.valueSync,P;switch(e.mode){case Y.MULTISELECTOR:P=[...x];break;case Y.TIME:P=qn(e,t,x,Ha({mode:Y.TIME}));break;case Y.DATE:P=qn(e,t,x,Ha({mode:Y.DATE}));break;default:P=[x];break}t.oldValueArray=[...P],t.valueArray=[...P]}function A(){let x=t.valueArray;switch(e.mode){case Y.SELECTOR:return x[0];case Y.MULTISELECTOR:return x.map(P=>P);case Y.TIME:return t.valueArray.map((P,O)=>t.timeArray[O][P]).join(":");case Y.DATE:return t.valueArray.map((P,O)=>t.dateArray[O][P]).join("-")}}function N(){V(),t.valueChangeSource="click";const x=A();t.valueSync=K(x)?x.map(P=>P):x,n("change",{},{value:x})}function E(x){if(u.value==="firefox"&&x){const{top:P,left:O,width:D,height:W}=t.popover,{pageX:q,pageY:$}=x;if(q>O&&q<O+D&&$>P&&$<P+W)return}V(),n("cancel",{},{})}function V(){t.visible=!1,setTimeout(()=>{let x=i.value;x.remove(),o.value.prepend(x),x.style.display="none"},260)}function I(){e.mode===Y.SELECTOR&&l.value===gi.SELECT&&(r.value.scrollTop=t.valueArray[0]*34)}function M(x){const P=x.target;t.valueSync=P.value,Vue.nextTick(()=>{N()})}function F(x){if(u.value==="chrome"){const P=o.value.getBoundingClientRect(),O=32;a.value.style.left=`${x.clientX-P.left-O*1.5}px`,a.value.style.top=`${x.clientY-P.top-O*.5}px`}}function k(x){t.valueArray=B(x.detail.value,!0)}function B(x,P){const{getLocale:O}=U();if(e.mode===Y.DATE){const D=O();if(!D.startsWith("zh"))switch(e.fields){case xe.YEAR:return x;case xe.MONTH:return[x[1],x[0]];default:switch(D){case"es":case"fr":return[x[2],x[1],x[0]];default:return P?[x[2],x[0],x[1]]:[x[1],x[2],x[0]]}}}return x}function z(x,P){const{getLocale:O}=U();if(e.mode===Y.DATE){const D=O();if(D.startsWith("zh"))return x+["年","月","日"][P];if(e.fields!==xe.YEAR&&P===(e.fields!==xe.MONTH&&(D==="es"||D==="fr")?1:0)){let W;switch(D){case"es":W=["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"];break;case"fr":W=["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"];break;default:W=["January","February","March","April","May","June","July","August","September","October","November","December"];break}return W[Number(x)-1]}}return x}return Vue.watch(()=>t.visible,x=>{x?(clearTimeout(ig),t.contentVisible=x,I()):ig=setTimeout(()=>{t.contentVisible=x},300)}),Vue.watch([()=>e.mode,()=>e.value,()=>e.range],T,{deep:!0}),Vue.watch(()=>t.valueSync,b,{deep:!0}),Vue.watch(()=>t.valueArray,x=>{if(e.mode===Y.TIME||e.mode===Y.DATE){const P=e.mode===Y.TIME?f:p,O=t.valueArray,D=d.value,W=h.value;if(e.mode===Y.DATE){const q=t.dateArray,$=q[2].length,ee=Number(q[2][O[2]])||1,de=new Date(`${q[0][O[0]]}/${q[1][O[1]]}/${ee}`).getDate();de<ee&&(O[2]-=de+$-ee)}P(O)<P(D)?S(O,D):P(O)>P(W)&&S(O,W)}x.forEach((P,O)=>{P!==t.oldValueArray[O]&&(t.oldValueArray[O]=P,e.mode===Y.MULTISELECTOR&&n("columnchange",{},{column:O,value:P}))})}),{selectorTypeComputed:l,system:u,_show:g,_cancel:E,_change:N,_l10nColumn:B,_l10nItem:z,_input:M,_resetFormData:_,_getFormData:v,_createTime:m,_createDate:C,_setValueSync:T,_fixInputPosition:F,_pickerViewChange:k}}function vV(e,t,n){const{key:o,disable:i}=ri();Vue.watchEffect(()=>{i.value=!e.visible}),Vue.watch(o,r=>{r==="esc"?t():r==="enter"&&n()})}function _V(e,t){const n=Vue.inject(Fe,!1);if(n){const o={reset:e,submit:()=>{const i=["",null],{key:r,value:a}=t();return r!==""&&(i[0]=r,i[1]=a),i}};n.addField(o),Vue.onBeforeUnmount(()=>{n.removeField(o)})}}const yV=Pt("ad"),bV=Pt("ad-content-page"),wV=Pt("ad-draw"),SV=Pt("camera"),TV=Pt("live-player"),CV=Pt("live-pusher"),VV=L(Xp,{publishHandler(e,t,n){UniServiceJSBridge.subscribeHandler(e,t,n)}}),rg=ZC,AV=L(Fm,{publishHandler(e,t,n){UniViewJSBridge.subscribeHandler(e,t,n)}});function EV(e){const{r:t,g:n,b:o}=it(e);return`rgba(${t},${n},${o},0)`}function kV(e,{id:t,navigationBar:{titleColor:n,coverage:o,backgroundColor:i}}){let r=0;const a=Vue.computed(()=>it(i)),s=parseInt(o);let c,l;const u=[],d=[],h=[];Vue.onMounted(()=>{const g=e.value;l=g.style,c=g.querySelector(".uni-page-head__title");const v=g.querySelectorAll(".uni-page-head-btn"),_=g.querySelectorAll("svg path");for(let m=0;m<_.length;m++)u.push(_[m]);for(let m=0;m<v.length;m++){const w=v[m];h.push(getComputedStyle(w).backgroundColor),d.push(w.style)}}),pT(t+".onPageScroll",({scrollTop:g})=>{const v=Math.min(g/s,1);if(v===1&&r===1)return;v>.5&&r<=.5?u.forEach(function(m){m.setAttribute("fill",n)}):v<=.5&&r>.5&&u.forEach(function(m){m.setAttribute("fill","#fff")}),r=v,c&&(c.style.opacity=v);const _=a.value;l.backgroundColor=`rgba(${_.r},${_.g},${_.b},${v})`,d.forEach(function(m,w){const f=h[w].match(/[\d+\.]+/g);f[3]=(1-v)*(f.length===4?f[3]:1),m.backgroundColor=`rgba(${f})`})})}const ag={none:"",forward:"M11 7.844q-0.25-0.219-0.25-0.578t0.25-0.578q0.219-0.25 0.563-0.25t0.563 0.25l9.656 9.125q0.125 0.125 0.188 0.297t0.063 0.328q0 0.188-0.063 0.359t-0.188 0.297l-9.656 9.125q-0.219 0.25-0.563 0.25t-0.563-0.25q-0.25-0.219-0.25-0.578t0.25-0.609l9.063-8.594-9.063-8.594z",back:gn,select:gn,share:"M26.563 24.844q0 0.125-0.109 0.234t-0.234 0.109h-17.938q-0.125 0-0.219-0.109t-0.094-0.234v-13.25q0-0.156 0.094-0.25t0.219-0.094h5.5v-1.531h-6q-0.531 0-0.906 0.391t-0.375 0.922v14.375q0 0.531 0.375 0.922t0.906 0.391h18.969q0.531 0 0.891-0.391t0.359-0.953v-5.156h-1.438v4.625zM29.813 10.969l-5.125-5.375-1.031 1.094 3.438 3.594-3.719 0.031q-2.313 0.188-4.344 1.125t-3.578 2.422-2.5 3.453-1.109 4.188l-0.031 0.25h1.469v-0.219q0.156-1.875 1-3.594t2.25-3.063 3.234-2.125 3.828-0.906l0.188-0.031 3.313-0.031-3.438 3.625 1.031 1.063 5.125-5.375-0.031-0.063 0.031-0.063z",favorite:"M27.594 13.375q-0.063-0.188-0.219-0.313t-0.344-0.156l-7.094-0.969-3.219-6.406q-0.094-0.188-0.25-0.281t-0.375-0.094q-0.188 0-0.344 0.094t-0.25 0.281l-3.125 6.438-7.094 1.094q-0.188 0.031-0.344 0.156t-0.219 0.313q-0.031 0.188 0.016 0.375t0.172 0.313l5.156 4.969-1.156 7.063q-0.031 0.188 0.047 0.375t0.234 0.313q0.094 0.063 0.188 0.094t0.219 0.031q0.063 0 0.141-0.031t0.172-0.063l6.313-3.375 6.375 3.313q0.063 0.031 0.141 0.047t0.172 0.016q0.188 0 0.344-0.094t0.25-0.281q0.063-0.094 0.078-0.234t-0.016-0.234q0-0.031 0-0.063l-1.25-6.938 5.094-5.031q0.156-0.156 0.203-0.344t-0.016-0.375zM11.469 19.063q0.031-0.188-0.016-0.344t-0.172-0.281l-4.406-4.25 6.063-0.906q0.156-0.031 0.297-0.125t0.203-0.25l2.688-5.531 2.75 5.5q0.063 0.156 0.203 0.25t0.297 0.125l6.094 0.844-4.375 4.281q-0.125 0.125-0.172 0.297t-0.016 0.328l1.063 6.031-5.438-2.813q-0.156-0.094-0.328-0.078t-0.297 0.078l-5.438 2.875 1-6.031z",home:"M23.719 16.5q-0.313 0-0.531 0.219t-0.219 0.5v7.063q0 0.219-0.172 0.391t-0.391 0.172h-12.344q-0.25 0-0.422-0.172t-0.172-0.391v-7.063q0-0.281-0.219-0.5t-0.531-0.219q-0.281 0-0.516 0.219t-0.234 0.5v7.063q0.031 0.844 0.625 1.453t1.438 0.609h12.375q0.844 0 1.453-0.609t0.609-1.453v-7.063q0-0.125-0.063-0.266t-0.156-0.234q-0.094-0.125-0.234-0.172t-0.297-0.047zM26.5 14.875l-8.813-8.813q-0.313-0.313-0.688-0.453t-0.781-0.141-0.781 0.141-0.656 0.422l-8.813 8.844q-0.188 0.219-0.188 0.516t0.219 0.484q0.094 0.125 0.234 0.172t0.297 0.047q0.125 0 0.25-0.047t0.25-0.141l8.781-8.781q0.156-0.156 0.406-0.156t0.406 0.156l8.813 8.781q0.219 0.188 0.516 0.188t0.516-0.219q0.188-0.188 0.203-0.484t-0.172-0.516z",menu:"M8.938 18.313q0.875 0 1.484-0.609t0.609-1.453-0.609-1.453-1.484-0.609q-0.844 0-1.453 0.609t-0.609 1.453 0.609 1.453 1.453 0.609zM16.188 18.313q0.875 0 1.484-0.609t0.609-1.453-0.609-1.453-1.484-0.609q-0.844 0-1.453 0.609t-0.609 1.453 0.609 1.453 1.453 0.609zM23.469 18.313q0.844 0 1.453-0.609t0.609-1.453-0.609-1.453-1.453-0.609q-0.875 0-1.484 0.609t-0.609 1.453 0.609 1.453 1.484 0.609z",close:Ri},IV=ge({name:"PageHead",setup(){const e=Vue.ref(null),t=Ot(),n=bf(t.navigationBar,()=>{const s=Fn(t.navigationBar);n.backgroundColor=s.backgroundColor,n.titleColor=s.titleColor}),{clazz:o,style:i}=RV(n),r=__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__&&LV(t),a=__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__&&n.searchInput&&DV(t);return __UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__&&n.type==="transparent"&&kV(e,t),()=>{const s=__UNI_FEATURE_PAGES__?NV(n,t.isQuit):null,c=__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__?sg(r.left):[],l=__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__?sg(r.right):[],u=n.type||"default",d=u!=="transparent"&&u!=="float"&&Vue.createVNode("div",{class:{"uni-placeholder":!0,"uni-placeholder-titlePenetrate":n.titlePenetrate}},null,2);return Vue.createVNode("uni-page-head",{"uni-page-head-type":u},[Vue.createVNode("div",{ref:e,class:o.value,style:i.value},[Vue.createVNode("div",{class:"uni-page-head-hd"},[s,...c]),xV(n,a),Vue.createVNode("div",{class:"uni-page-head-ft"},[...l])],6),d],8,["uni-page-head-type"])}}});function NV(e,t){if(!t)return Vue.createVNode("div",{class:"uni-page-head-btn",onClick:OV},[le(gn,e.type==="transparent"?"#fff":e.titleColor,26)],8,["onClick"])}function sg(e){return e.map(({onClick:t,btnClass:n,btnStyle:o,btnText:i,btnIconPath:r,badgeText:a,iconStyle:s,btnSelect:c},l)=>Vue.createVNode("div",{key:l,class:n,style:o,onClick:t,"badge-text":a},[r?le(r,s.color,s.fontSize):c?Vue.createVNode("span",{style:s},[Vue.createVNode("i",{class:"uni-btn-icon",innerHTML:i},null,8,["innerHTML"]),le(ag.select,"#000",14)],4):Vue.createVNode("i",{class:"uni-btn-icon",style:s,innerHTML:i},null,12,["innerHTML"])],14,["onClick","badge-text"]))}function xV(e,t){return!__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__||!e.searchInput?MV(e):PV(e,t)}function MV({type:e,loading:t,titleSize:n,titleText:o,titleImage:i}){return Vue.createVNode("div",{class:"uni-page-head-bd"},[Vue.createVNode("div",{style:{fontSize:n,opacity:e==="transparent"?0:1},class:"uni-page-head__title"},[t?Vue.createVNode("i",{class:"uni-loading"},null):i?Vue.createVNode("img",{src:i,class:"uni-page-head__title_image"},null,8,["src"]):o],4)])}function PV(e,{text:t,focus:n,composing:o,onBlur:i,onFocus:r,onInput:a,onConfirm:s,onClick:c}){const{color:l,align:u,autoFocus:d,disabled:h,borderRadius:g,backgroundColor:v,placeholder:_,placeholderColor:m}=e.searchInput,w={borderRadius:g,backgroundColor:v},C=["uni-page-head-search-placeholder",`uni-page-head-search-placeholder-${n.value||t.value?"left":u}`];return Vue.createVNode("div",{class:"uni-page-head-search",style:w},[Vue.createVNode("div",{style:{color:m},class:C},[Vue.createVNode("div",{class:"uni-page-head-search-icon"},[le(vs,m,20)]),t.value||o.value?"":_],6),h?Vue.createVNode(Go,{disabled:!0,style:{color:l},"placeholder-style":"color: "+m,class:"uni-page-head-search-input","confirm-type":"search",onClick:c},null,8,["style","placeholder-style","onClick"]):Vue.createVNode(Go,{focus:d,style:{color:l},"placeholder-style":"color: "+m,class:"uni-page-head-search-input","confirm-type":"search",onFocus:r,onBlur:i,onInput:a,onConfirm:s},null,8,["focus","style","placeholder-style","onFocus","onBlur","onInput","onConfirm"])],4)}function OV(){getCurrentPages().length===1?uni.reLaunch({url:"/"}):uni.navigateBack({from:"backbutton",success(){}})}function RV(e){const t=Vue.computed(()=>{const{type:o,titlePenetrate:i,shadowColorType:r}=e,a={"uni-page-head":!0,"uni-page-head-transparent":o==="transparent","uni-page-head-titlePenetrate":i==="YES","uni-page-head-shadow":!!r};return r&&(a[`uni-page-head-shadow-${r}`]=!0),a}),n=Vue.computed(()=>({backgroundColor:__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__&&e.type==="transparent"?EV(e.backgroundColor):e.backgroundColor,color:e.titleColor,transitionDuration:e.duration,transitionTimingFunction:e.timingFunc}));return{clazz:t,style:n}}function LV({id:e,navigationBar:t}){const n=[],o=[],{buttons:i}=t;if(K(i)){const{type:r}=t,a=r==="transparent",s=Object.create(null);i.forEach((c,l)=>{if(c.fontSrc&&!c.fontFamily){const d=Q(c.fontSrc);let h=s[d];h||(h=`font${Date.now()}`,s[d]=h,Vue.onBeforeMount(()=>cm("uni-btn-"+h,`@font-face{font-family: "${h}";src: url("${d}") format("truetype")}`))),c.fontFamily=h}const u=BV(e,l,c,a);c.float==="left"?n.push(u):o.push(u)})}return{left:n,right:o}}function BV(e,t,n,o){const i={color:n.color,fontSize:n.fontSize,fontWeight:n.fontWeight};return n.fontFamily&&(i.fontFamily=n.fontFamily),new Proxy({btnClass:{"uni-page-head-btn":!0,"uni-page-head-btn-red-dot":!!(n.redDot||n.badgeText),"uni-page-head-btn-select":!!n.select},btnStyle:{backgroundColor:o?n.background:"transparent",width:n.width},btnText:"",btnIconPath:ag[n.type],badgeText:n.badgeText,iconStyle:i,onClick(){re(e,xa,L({index:t},n))},btnSelect:n.select},{get(r,a,s){return["btnText"].includes(a)?n.fontSrc&&n.fontFamily?n.text.replace("\\u","&#x"):n.text:Reflect.get(r,a,s)}})}function DV({id:e,navigationBar:{searchInput:t}}){const n=Vue.ref(!1),o=Vue.ref(""),i=Vue.ref(!1),{disabled:r}=t;return r?{focus:n,text:o,composing:i,onClick:()=>{re(e,Pa)}}:{focus:n,text:o,composing:i,onFocus:()=>{n.value=!0,re(e,Si,{focus:!0})},onBlur:()=>{n.value=!1,re(e,Si,{focus:!1})},onInput:u=>{o.value=u.detail.value,re(e,Oa,{text:o.value})},onConfirm:u=>{re(e,Ra,{text:o.value})}}}const UV={name:"PageRefresh",setup(){const{pullToRefresh:e}=Ot();return{offset:e.offset,color:e.color}}},FV=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},$V={class:"uni-page-refresh-inner"},zV=["fill"],HV=[Vue.createElementVNode("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null,-1),Vue.createElementVNode("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1)],WV={class:"uni-page-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},qV=["stroke"];function GV(e,t,n,o,i,r){return Vue.openBlock(),Vue.createElementBlock("uni-page-refresh",null,[Vue.createElementVNode("div",{style:Vue.normalizeStyle({"margin-top":o.offset+"px"}),class:"uni-page-refresh"},[Vue.createElementVNode("div",$V,[(Vue.openBlock(),Vue.createElementBlock("svg",{fill:o.color,class:"uni-page-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},HV,8,zV)),(Vue.openBlock(),Vue.createElementBlock("svg",WV,[Vue.createElementVNode("circle",{stroke:o.color,class:"uni-page-refresh__path",cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"},null,8,qV)]))])],4)])}const jV=FV(UV,[["render",GV]]);function cg(e,t,n){const o=Array.prototype.slice.call(e.changedTouches).filter(i=>i.identifier===t)[0];return o?(e.deltaY=o.pageY-n,!0):!1}const pi="pulling",mi="reached",lg="aborting",vi="refreshing",ug="restoring";function YV(e){const t=Ot(),{id:n,pullToRefresh:o}=t,{range:i,height:r}=o;let a,s,c,l;Gt(()=>{t.enablePullDownRefresh&&(v||(v=vi,C(),setTimeout(()=>{N()},50)))},ar,!1,n),Gt(()=>{t.enablePullDownRefresh&&v===vi&&(f(),v=ug,C(),E(()=>{f(),v=_=m=null}))},sr,!1,n);function u(){a=e.value.$el,s=a.querySelector(".uni-page-refresh"),c=s.style,l=s.querySelector(".uni-page-refresh-inner").style}Vue.onMounted(()=>{u()});let d,h,g,v,_=null,m=null;function w(V){v&&a&&a.classList[V]("uni-page-refresh--"+v)}function C(){w("add")}function f(){w("remove")}function p(V){if(!s)return;let I=V/i;I>1?I=1:I=I*I*I;const M=Math.round(V/(i/r))||0;l.transform="rotate("+360*I+"deg)",c.clip="rect("+(45-M)+"px,45px,45px,-5px)",c.transform="translate3d(-50%, "+M+"px, 0)"}const S=oe(V=>{if(!t.enablePullDownRefresh)return;const I=V.changedTouches[0];d=I.identifier,h=I.pageY,[lg,vi,ug].indexOf(v)>=0?g=!1:g=!0}),T=oe(V=>{if(!t.enablePullDownRefresh||!g||!cg(V,d,h))return;let{deltaY:I}=V;if((document.documentElement.scrollTop||document.body.scrollTop)!==0){d=null;return}if(I<0&&!v)return;V.cancelable&&V.preventDefault(),_===null&&(m=I,v=pi,C()),I=I-m,I<0&&(I=0),_=I;const M=I>=i&&v!==mi,F=I<i&&v!==pi;(M||F)&&(f(),v=v===mi?pi:mi,C()),p(I)}),b=oe(V=>{t.enablePullDownRefresh&&cg(V,d,h)&&v!==null&&(v===pi?(f(),v=lg,C(),A(()=>{f(),v=_=m=null})):v===mi&&(f(),v=vi,C(),N()))});function A(V){if(s)if(c.transform){c.transition="-webkit-transform 0.3s",c.transform="translate3d(-50%, 0, 0)";const I=function(){M&&clearTimeout(M),s.removeEventListener("webkitTransitionEnd",I),c.transition="",V()};s.addEventListener("webkitTransitionEnd",I);const M=setTimeout(I,350)}else V()}function N(){s&&(c.transition="-webkit-transform 0.2s",c.transform="translate3d(-50%, "+r+"px, 0)",re(n,Na))}function E(V){if(!s)return;c.transition="-webkit-transform 0.3s",c.transform+=" scale(0.01)";const I=function(){M&&clearTimeout(M),s.removeEventListener("webkitTransitionEnd",I),c.transition="",c.transform="translate3d(-50%, 0, 0)",V()};s.addEventListener("webkitTransitionEnd",I);const M=setTimeout(I,350)}return{onTouchstartPassive:S,onTouchmove:T,onTouchend:b,onTouchcancel:b}}const XV=ge({name:"PageBody",setup(e,t){const n=__UNI_FEATURE_PULL_DOWN_REFRESH__&&Ot(),o=__UNI_FEATURE_PULL_DOWN_REFRESH__&&Vue.ref(null),i=Vue.ref(null),r=__UNI_FEATURE_PULL_DOWN_REFRESH__&&n.enablePullDownRefresh?YV(o):null,a=Vue.ref(null);return Vue.watch(()=>n.enablePullDownRefresh,()=>{a.value=n.enablePullDownRefresh?r:null},{immediate:!0}),()=>{const s=__UNI_FEATURE_PULL_DOWN_REFRESH__&&JV(o,n);return Vue.createVNode(Vue.Fragment,null,[s,Vue.createVNode("uni-page-wrapper",Vue.mergeProps({ref:i},a.value),[Vue.createVNode("uni-page-body",null,[Vue.renderSlot(t.slots,"default")]),null],16)])}}});function JV(e,t){return!__UNI_FEATURE_PULL_DOWN_REFRESH__||!t.enablePullDownRefresh?null:Vue.createVNode(jV,{ref:e},null,512)}const KV=ge({name:"Page",setup(e,t){let n=S0($i());const o=n.navigationBar,i={};return yC(n),Vue.getCurrentInstance(),()=>Vue.createVNode("uni-page",{"data-page":n.route,style:i},__UNI_FEATURE_NAVIGATIONBAR__&&o.style!=="custom"?[Vue.createVNode(IV),dg(t),null]:[dg(t),null])}});function dg(e){return Vue.openBlock(),Vue.createBlock(XV,{key:0},{default:Vue.withCtx(()=>[Vue.renderSlot(e.slots,"page")]),_:3})}function QV(e){e.use(Xu);const t=window.top||window;t.uni=window.uni=rg,t.getApp=window.getApp=Ju}y.$emit=hc,y.$off=fc,y.$on=uc,y.$once=dc,y.Ad=yV,y.AdContentPage=bV,y.AdDraw=wV,y.AsyncErrorComponent=ei,y.AsyncLoadingComponent=Zo,y.Button=b0,y.Camera=SV,y.Canvas=fw,y.Checkbox=vw,y.CheckboxGroup=pw,y.CoverImage=cV,y.CoverView=sV,y.Editor=Fw,y.Form=p0,y.Icon=Hw,y.Image=Gw,y.Input=Go,y.Label=y0,y.LayoutComponent=eh,y.LivePlayer=TV,y.LivePusher=CV,y.Map=wa,y.MovableArea=Tu,y.MovableView=ku,y.Navigator=VS,y.PageComponent=KV,y.Picker=uV,y.PickerView=Pu,y.PickerViewColumn=Lu,y.Progress=OS,y.Radio=DS,y.RadioGroup=LS,y.ResizeSensor=je,y.RichText=jS,y.ScrollView=$u,y.Slider=KS,y.Swiper=zu,y.SwiperItem=Hu,y.Switch=aT,y.Text=uT,y.Textarea=hT,y.UniServiceJSBridge=AV,y.UniViewJSBridge=VV,y.Video=t1,y.View=gT,y.WebView=i1,y.__f__=gc,y.addInterceptor=sc,y.addPhoneContact=Xh,y.arrayBufferToBase64=Zs,y.base64ToArrayBuffer=Qs,y.canIUse=Il,y.canvasGetImageData=Vc,y.canvasPutImageData=Ac,y.canvasToTempFilePath=Ec,y.chooseFile=Fd,y.chooseImage=$d,y.chooseLocation=uf,y.chooseVideo=Xd,y.clearStorage=Md,y.clearStorageSync=sa,y.closePreviewImage=Yd,y.closeSocket=of,y.connectSocket=ef,y.createAnimation=Bc,y.createCameraContext=yh,y.createCanvasContext=Cc,y.createInnerAudioContext=cd,y.createIntersectionObserver=xc,y.createLivePlayerContext=wh,y.createMapContext=mc,y.createMediaQueryObserver=Pc,y.createSelectorQuery=Rc,y.createVideoContext=pc,y.cssBackdropFilter=Ro,y.cssConstant=Oo,y.cssEnv=Po,y.cssVar=_r,y.downloadFile=Qd,y.getApp=Ju,y.getAppBaseInfo=Xr,y.getClipboardData=Sd,y.getCurrentPages=Cb,y.getDeviceInfo=Yr,y.getEnterOptionsSync=il,y.getFacialRecognitionMetaInfo=hh,y.getFileInfo=Od,y.getImageInfo=Bd,y.getLaunchOptionsSync=rl,y.getLeftWindowStyle=lh,y.getLocale=So,y.getLocation=Bn,y.getNetworkType=Qr,y.getProvider=Zh,y.getPushClientId=ll,y.getRealPath=Q,y.getRecorderManager=mh,y.getRightWindowStyle=dh,y.getSavedFileInfo=Eh,y.getSavedFileList=Vh,y.getScreenBrightness=Hh,y.getSelectedTextRange=jc,y.getStorage=Nd,y.getStorageInfo=Pd,y.getStorageInfoSync=ca,y.getStorageSync=Id,y.getSystemInfo=fd,y.getSystemInfoSync=Jr,y.getTabBarPageId=Io,y.getTopWindowStyle=sh,y.getVideoInfo=Dd,y.getWindowInfo=Gr,y.hideActionSheet=Nf,y.hideKeyboard=Ld,y.hideLeftWindow=ih,y.hideLoading=kf,y.hideModal=wf,y.hideNavigationBarLoading=Of,y.hideRightWindow=ah,y.hideTabBar=$f,y.hideTabBarRedDot=Hf,y.hideToast=Ef,y.hideTopWindow=nh,y.install=QV,y.interceptors=lc,y.invokePushCallback=sl,y.loadFontFace=_a,y.login=Kh,y.makePhoneCall=ld,y.navigateBack=vf,y.navigateTo=_f,y.offAccelerometerChange=vd,y.offAppHide=ol,y.offAppShow=tl,y.offCompassChange=na,y.offError=Zc,y.offLocationChange=gf,y.offLocationChangeError=mf,y.offNetworkStatusChange=pd,y.offPageNotFound=Kc,y.offPushMessage=dl,y.offThemeChange=Ad,y.offUnhandledRejection=Xc,y.offWindowResize=$c,y.onAccelerometerChange=md,y.onAppHide=nl,y.onAppShow=el,y.onCompassChange=ta,y.onCreateVueApp=Xa,y.onError=Qc,y.onGyroscopeChange=Ph,y.onLocaleChange=Hc,y.onLocationChange=hf,y.onLocationChangeError=pf,y.onMemoryWarning=xh,y.onNetworkStatusChange=gd,y.onPageNotFound=Jc,y.onPushMessage=ul,y.onSocketClose=cf,y.onSocketError=af,y.onSocketMessage=sf,y.onSocketOpen=rf,y.onTabBarMidButtonTap=Uc,y.onThemeChange=Vd,y.onUnhandledRejection=Yc,y.onUserCaptureScreen=jh,y.onWindowResize=Fc,y.openDocument=Rd,y.openLocation=lf,y.pageScrollTo=Lf,y.plugin=Xu,y.preloadPage=yf,y.previewImage=jd,y.reLaunch=Al,y.redirectTo=Vl,y.removeAllPages=xo,y.removeInterceptor=cc,y.removeLastPage=No,y.removeNonTabBarPages=ko,y.removeSavedFile=Ih,y.removeStorage=xd,y.removeStorageSync=aa,y.removeTabBarBadge=qf,y.request=fa,y.rpx2px=bo,y.saveFile=Th,y.saveImageToPhotosAlbum=gh,y.saveVideoToPhotosAlbum=vh,y.scanCode=Uh,y.sendSocketMessage=nf,y.setClipboardData=Td,y.setKeepScreenOn=qh,y.setLeftWindowStyle=uh,y.setLocale=Wc,y.setNavigationBarColor=Mf,y.setNavigationBarTitle=Rf,y.setPageMeta=qc,y.setRightWindowStyle=fh,y.setScreenBrightness=$h,y.setStorage=Ed,y.setStorageSync=ra,y.setTabBarBadge=Gf,y.setTabBarItem=Uf,y.setTabBarStyle=Ff,y.setTopWindowStyle=ch,y.setupApp=HT,y.setupPage=zT,y.setupWindow=$T,y.showActionSheet=xf,y.showLeftWindow=oh,y.showLoading=Af,y.showModal=Sf,y.showNavigationBarLoading=Pf,y.showRightWindow=rh,y.showTabBar=zf,y.showTabBarRedDot=Wf,y.showToast=Vf,y.showTopWindow=th,y.startAccelerometer=Zr,y.startCompass=oa,y.startGyroscope=Rh,y.startLocationUpdate=df,y.startPullDownRefresh=Bf,y.stopAccelerometer=ea,y.stopCompass=ia,y.stopGyroscope=Bh,y.stopLocationUpdate=ff,y.stopPullDownRefresh=Df,y.switchTab=Cl,y.uni=rg,y.uploadFile=Zd,y.upx2px=bo,y.useI18n=U,y.useTabBar=En,y.vibrateLong=bd,y.vibrateShort=yd,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})}));
|