@vtj/materials 0.13.23 → 0.13.25
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/assets/antdv/index.umd.js +2 -2
- package/dist/assets/charts/index.umd.js +2 -2
- package/dist/assets/element/index.umd.js +2 -2
- package/dist/assets/icons/index.umd.js +2 -2
- package/dist/assets/ui/index.umd.js +2 -2
- package/dist/assets/uni-h5/index.umd.js +2 -2
- package/dist/assets/uni-ui/index.umd.js +2 -2
- package/dist/assets/vant/index.umd.js +2 -2
- package/dist/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/deps/@vtj/icons/style.css +1 -1
- package/dist/deps/@vtj/ui/index.umd.js +2 -2
- package/dist/deps/@vtj/utils/index.umd.js +2 -2
- package/dist/deps/hotkeys-js/hotkeys.min.js +2 -0
- package/dist/deps/uni-h5/index.umd.js +6 -6
- package/package.json +7 -6
- package/src/uni-h5/index.ts +4 -1
- package/src/version.ts +2 -2
@@ -1,7 +1,7 @@
|
|
1
|
-
(function(b,L){typeof exports=="object"&&typeof module!="undefined"?L(exports):typeof define=="function"&&define.amd?define(["exports"],L):(b=typeof globalThis!="undefined"?globalThis:b||self,L(b.UniH5={}))})(this,(function(b){"use strict";var GV=Object.defineProperty;var
|
2
|
-
`,Ta=44,Vg=50,Ag=768,Ca="UNI_LOCALE",mi=["%","%"],on="#007aff",Eg=/^([a-z-]+:)?\/\//i,kg=/^data:.*,.*/,Ig="WEB_INVOKE_APPSERVICE",dt="onShow",ft="onHide",Ng="onLaunch",ht="onError",Xe="onThemeChange",xg="offThemeChange",Gn="onPageNotFound",jn="onUnhandledRejection",Mg="onExit",Va="onLoad",Pg="onReady",Aa="onUnload",Og="onInit",Rg="onSaveExitState",Yn="onResize",vi="onBackPress",Xn="onPageScroll",Lg="onTabItemTap",_i="onReachBottom",Ea="onPullDownRefresh",Bg="onShareTimeline",Dg="onShareChat",Ug="onAddToFavorites",Fg="onShareAppMessage",ka="onNavigationBarButtonTap",Ia="onNavigationBarChange",Na="onNavigationBarSearchInputClicked",xa="onNavigationBarSearchInputChanged",Ma="onNavigationBarSearchInputConfirmed",yi="onNavigationBarSearchInputFocusChanged",Pa="onAppEnterForeground",Oa="onAppEnterBackground",Ra="onWebInvokeAppService",$g="onWxsInvokeCallMethod";function zg(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 Hg=(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 Wg(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 qg(e){return!!e.appContext}function rn(e){return e&&(qg(e)?e.proxy:e)}function Ua(e){if(!e)return;let t=e.type.name;for(;t&&Cg(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 Gg=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 jg(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 Yg(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 Xg=/\+/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(Xg," ");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 Jg(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,Ng,ht,Xe,Gn,jn,Mg,Og,Va,Pg,Aa,Yn,vi,Xn,Lg,_i,Ea,Bg,Ug,Fg,Dg,Rg,ka,Na,xa,Ma,yi];function Kg(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 Qg(e){Vi=e,Ga.forEach(t=>t(e))}const Zg=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 ep(e){return e&&e in Xa?Xa[e]:e}function tp(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=tp(i);break;case"borderStyle":i=ep(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 np=e=>e!==null&&typeof e=="object",op=["{","}"];class ip{constructor(){this._caches=Object.create(null)}interpolate(t,n,o=op){if(!n)return[t];let i=this._caches[t];return i||(i=sp(t,o),this._caches[t]=i),lp(i,n)}}const rp=/^(?:\d)+/,ap=/^(?:\w)+/;function sp(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=rp.test(s)?"list":l&&ap.test(s)?"named":"unknown";o.push({value:s,type:c})}else r+=a}return r&&o.push({type:"text",value:r}),o}function lp(e,t){const n=[];let o=0;const i=Array.isArray(t)?"list":np(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",cp=Object.prototype.hasOwnProperty,Ka=(e,t)=>cp.call(e,t),up=new ip;function dp(e,t){return!!t.find(n=>e.indexOf(n)!==-1)}function fp(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||dp(e,["-tw","-hk","-mo","-cht"])?Ve:Te;let n=[_e,Pe,Oe];t&&Object.keys(t).length>0&&(n=Object.keys(t));const o=fp(e,n);if(o)return o}class hp{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||up,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 gp(e,t){e.$watchLocale?e.$watchLocale(n=>{t.setLocale(n)}):e.$watch(()=>e.$locale,n=>{t.setLocale(n)})}function pp(){return typeof uni!="undefined"&&uni.getLocale?uni.getLocale():typeof global!="undefined"&&global.getLocale?global.getLocale():_e}function mp(e,t={},n,o){if(typeof e!="string"){const a=[t,e];e=a[0],t=a[1]}typeof e!="string"&&(e=pp()),typeof n!="string"&&(n=typeof __uniConfig!="undefined"&&__uniConfig.fallbackLocale||_e);const i=new hp({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,gp(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 vp(){const e=uni.getLocale(),t=__uniConfig.locales;return t[e]||t[__uniConfig.fallbackLocale]||t.en||{}}function _p(e){return Za(e,mi)?U().f(e,vp(),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 yp(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 _p(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=mp(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 bp=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)}),wp=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)}),Sp=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)}),Tp=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)}),Cp=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)}),Vp=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)}),Ap=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)}),Ep=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)}),kp=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)}),Ip=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 Np(e){if(Ei())return yp(e,[["titleText"],["searchInput","placeholder"],["buttons","text"]])}function xp(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 Mp=1;const Pp=(e,t,n)=>{const{subscribe:o,publishHandler:i}=UniViewJSBridge,r=n?Mp++: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 Op(e,t){UniViewJSBridge.subscribe(sn(e,Nt),Bp)}function Rp(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 Lp(e,t){t=sn(e,t),delete xt[t]}function Bp({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 Dp=L(ts("service"),{invokeServiceMethod:Pp}),Up=350,is=10,Zn=It(!0);let ln;function cn(){ln&&(clearTimeout(ln),ln=null)}let rs=0,as=0;function Fp(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)},Up)}function $p(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 zp(){window.addEventListener("touchstart",Fp,Zn),window.addEventListener("touchmove",$p,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 Hp(){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 Wp(){const e=__uniConfig.globalStyle||{},t=ss(e.rpxCalcMaxDeviceWidth,960),n=ss(e.rpxCalcBaseDeviceWidth,375);function o(){let i=Hp();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 qp(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,Gp(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 Gp(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 jp(e){xi()&&(Ni||cs(),typeof e=="function"&&oo.push(e))}function Yp(e){var t=oo.indexOf(e);t>=0&&oo.splice(t,1)}var Xp={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:jp,offChange:Yp},Jp=Xp;const he=qp(Jp),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 Kp(e,t){let n=ro.get(e);n&&!(n instanceof HTMLStyleElement)&&(Qp(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 Qp(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 Zp(e);if(J(e)){const n=parseInt(e)||0;return fs(e)?uni.upx2px(n):n}return e}function Zp(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 em="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",tm="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",nm="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",om="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",im="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",rm="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 am=["navigationBar","pullToRefresh"];function sm(){return JSON.parse(JSON.stringify(__uniConfig.globalStyle||{}))}function vs(e,t){const n=sm(),o=L({id:t},n,e);am.forEach(r=>{o[r]=L({},n[r],e[r])});const{navigationBar:i}=o;return i.titleText&&i.titleImage&&(i.titleText=""),o}function lm(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 cm(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&&Hg(o,n)}function ys(e){e.preventDefault()}let bs,ws=0;function um({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 dm(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 fm(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 hm(){Wp(),Gg(Mi),__UNI_FEATURE_LONGPRESS__&&zp()}class gm{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",bg(t))}setStyle(t){return!this.$el||!t?this:(J(t)&&(t=yg(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($g,{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 gm(e)),e.$el.__wxsComponentDescriptor}function Li(e,t){return Ri(e,t)}function pm(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=pm(t,n,o);if(i)return[e,Li(i,!1)]}}function Ts(e){if(e)return e.__vueParentComponent&&e.__vueParentComponent.proxy}const mm=e=>!e.type.indexOf("key")&&e instanceof KeyboardEvent,vm=e=>e.type==="click",_m=e=>e.type.indexOf("mouse")===0||["contextmenu"].includes(e.type),ym=e=>typeof TouchEvent!="undefined"&&e instanceof TouchEvent||e.type.indexOf("touch")===0||["longpress"].indexOf(e.type)>=0;function bm(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(vm(e))Tm(r,e);else if(_m(e))Cm(r,e);else if(ym(e)){const a=io();r.touches=Vs(e.touches,a),r.changedTouches=Vs(e.changedTouches,a)}else mm(e)&&["key","code"].forEach(s=>{Object.defineProperty(r,s,{get(){return e[s]}})});return Ss(r,t,n)||[r]}function wm(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:wm(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),Sm(l,e),l}function Sm(e,t){L(e,{preventDefault(){return t.preventDefault()},stopPropagation(){return t.stopPropagation()}})}function Tm(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 Cm(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 Vm=Object.defineProperty({__proto__:null,$nne:bm,createNativeEvent:Bi},Symbol.toStringTag,{value:"Module"});function Am(e){const t=e.globalProperties;L(t,Vm),__UNI_FEATURE_WXS__&&(t.$gcd=Li)}function Em(e){Am(e._context.config)}const km=(e,t)=>UniServiceJSBridge.emit("api."+e,t);let As=1;function Es(e){return(e||pt())+"."+Nt}const Im=L(ts("view"),{invokeOnCallback:km,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 Nm(){const{on:e}=UniServiceJSBridge;e(Yn,xm),e(Pa,Mm),e(Oa,Pm)}function xm(e){const t=gt();re(t,Yn,e),UniServiceJSBridge.invokeOnCallback("onWindowResize",e)}function Mm(e){const t=gt();re(getApp(),dt,e),re(t,dt)}function Pm(){re(getApp(),ft),re(gt(),ft)}const Om=[Xn,_i];function Rm(){Om.forEach(e=>UniServiceJSBridge.subscribe(e,Lm(e)))}function Lm(e){return(t,n)=>{re(parseInt(n),e,t)}}function Bm(){Nm(),Rm()}function Dm(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 Um(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 Fm(e,t){const n=e.$el.querySelector(t);return n&&n.__vue__}function $m(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 Hm(){return uni.createMediaQueryObserver(this)}function Wm(e){return uni.createIntersectionObserver(this,e)}function qm(e){return Fm(this,e)}function Gm(e){return $m(this,e)}const jm=Object.defineProperty({__proto__:null,createIntersectionObserver:Wm,createMediaQueryObserver:Hm,createSelectorQuery:zm,selectAllComponents:Gm,selectComponent:qm},Symbol.toStringTag,{value:"Module"});function Ym(){if(this.$route){const e=this.$route.meta;return e.eventChannel||(e.eventChannel=new Wa(this.$page.id)),e.eventChannel}}function Xm(e){const t=e.globalProperties;t.getOpenerEventChannel=Ym,__UNI_FEATURE_WX__&&L(t,jm)}function Jm(e){Xm(e._context.config)}function ks(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}function Km(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 Qm(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`).replace("webkit","-webkit")}function Zm(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=>`${Qm(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=Zm(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 e0={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(e0),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,n0(n,o,e.value,i||{}))}}function t0(e){return(t,n)=>{e(t,Bi(n))}}function n0(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 o0={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"),i0=X({name:"Form",emits:["submit","reset"],setup(e,{slots:t,emit:n}){const o=Vue.ref(null);return r0(pe(o,n)),()=>Vue.createVNode("uni-form",{ref:o},[Vue.createVNode("span",null,[t.default&&t.default()])],512)}});function r0(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 a0={for:{type:String,default:""}},mn=fn("ul");function s0(){const e=[];return Vue.provide(mn,{addHandler(t){e.push(t)},removeHandler(t){e.splice(e.indexOf(t),1)}}),e}const l0=X({name:"Label",props:a0,setup(e,{slots:t}){const n=Vue.ref(null),o=ao(),i=s0(),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 c0=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"])}}}),u0="",Ps=fn("upm");function Ot(){return Vue.inject(Ps)}function d0(e){const t=f0(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 f0(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=lm(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__&&Np(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 h0(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 g0(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 p0(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 m0=["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 v0(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 _0(e,t){for(const n in $e){const o=$e[n];o.callback===t&&o.name===e&&delete $e[n]}}function y0(e){UniServiceJSBridge.off("api."+e)}function b0(e){UniServiceJSBridge.on("api."+e,t=>{for(const n in $e){const o=$e[n];o.name===e&&o.callback(t)}})}function w0(e,t){return Ls(Rs++,e,t,!0)}const S0="success",T0="fail",C0="complete";function V0(e){const t={};for(const n in e){const o=e[n];G(o)&&(t[n]=v0(o),delete e[n])}return t}function A0(e,t){return!e||e.indexOf(":fail")===-1?t+":ok":t+e.substring(e.indexOf(":fail"))}function E0(e,t={},{beforeAll:n,beforeSuccess:o}={}){se(t)||(t={});const{success:i,fail:r,complete:a}=V0(t),s=G(i),l=G(r),c=G(a),u=Rs++;return Ls(u,e,d=>{d=d||{},d.errMsg=A0(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 k0="success",I0="fail",N0="complete",Lt={},Bt={};function x0(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(x0(r,n));else{const a=r(t,n);if(dg(a)&&(o=Promise.resolve(a)),a===!1)return{then(){},catch(){}}}}return o||{then(i){return i(t)},catch(){}}}function Fs(e,t={}){return[k0,I0,N0].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 M0(e){return!!(se(e)&&[S0,T0,C0].find(t=>G(e[t])))}function ZV(e){return e}function Ws(e,t){return(n={},...o)=>M0(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 P0(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 O0(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=P0(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 R0(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);w0(e,o),r&&(b0(e),t())}}function L0(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"),_0(e,o),Ds(e)||(y0(e),t())}}function B0(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=E0(e,i,o),a=go(e,[i],n,o);return a?qs(r,e,a):t(i,{resolve:s=>O0(r,e,s),reject:(s,l)=>qs(r,e,B0(s),l)})}}function D0(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 U0(e,t,n,o){return js(e,t,n,o)}function ke(e,t,n){return R0(e,t,n)}function vt(e,t,n){return L0(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 D0(e,t,void 0,o)}function R(e,t,n,o){return Ws(e,U0(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 F0="base64ToArrayBuffer",$0="arrayBufferToBase64",Xs=j(F0,e=>p0(e)),Js=j($0,e=>g0(e)),z0="upx2px",H0=1e-4,W0=750;let Ks=!1,zi=0,Qs=0,Zs=960,el=375,tl=750;function q0(){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 G0(){const e=__uniConfig.globalStyle||{};Zs=Hi(e.rpxCalcMaxDeviceWidth,960),el=Hi(e.rpxCalcBaseDeviceWidth,375),tl=Hi(e.rpxCalcBaseDeviceWidth,750)}const vo=j(z0,(e,t)=>{if(zi===0&&(q0(),G0()),e=Number(e),e===0)return 0;let n=t||zi;n=e===tl||n<=Zs?n:el;let o=e/W0*n;return o<0&&(o=-o),o=Math.floor(o+H0),o===0&&(Qs===1||!Ks?o=1:o=.5),e<0?-o:o}),j0="addInterceptor",Y0="removeInterceptor";function nl(e,t){Object.keys(t).forEach(n=>{G(t[n])&&(e[n]=X0(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 X0(e,t){const n=t?e?e.concat(t):K(t)?t:[t]:e;return n&&J0(n)}function J0(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(j0,(e,t)=>{J(e)&&se(t)?nl(Bt[e]||(Bt[e]={}),t):se(e)&&nl(Lt,e)}),rl=j(Y0,(e,t)=>{J(e)?se(t)?ol(Bt[e],t):delete Bt[e]:se(e)&&ol(Lt,e)}),al={},K0="$on",Q0="$once",Z0="$off",ev="$emit";class tv{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 tv,sl=j(K0,(e,t)=>(Dt.on(e,t),()=>Dt.off(e,t))),ll=j(Q0,(e,t)=>(Dt.once(e,t),()=>Dt.off(e,t))),cl=j(Z0,(e,t)=>{K(e)||(e=e?[e]:[]),e.forEach(n=>{Dt.off(n,t)})}),ul=j(ev,(e,...t)=>{Dt.emit(e,...t)});function dl(e,t,...n){t&&n.push(t),console[e].apply(console,n)}const nv="createVideoContext",ov="createMapContext",iv="createCanvasContext",rv="createInnerAudioContext",av=[.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){~av.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(nv,(e,t)=>t?new Wi(e,Ae(t)):new Wi(e,Ae(Ee()))),sv=(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)=>{xb(e,t,n,o,i=>{o&&sv(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(ov,(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"),lv="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}},cv="canvasPutImageData",uv=ml,dv=L({data:{type:Uint8ClampedArray,required:!0}},vl,{height:{type:Number}}),_l={PNG:"png",JPG:"jpg",JPEG:"jpg"},fv="canvasToTempFilePath",hv={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}}},gv={};function _o(e,t,n,o,i){UniServiceJSBridge.invokeViewMethod(`canvas.${e}`,{type:n,data:o},t,r=>{i&&i(r)})}var pv=["scale","rotate","translate","setTransform","transform"],mv=["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"],vv=["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"];function _v(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 yv{constructor(t,n){this.type="pattern",this.data=t,this.colorStop=n}}class bv{constructor(t){this.width=t}}const wv=()=>u0;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 yv(t,n)}measureText(t,n){const o=this.state.font;let i=0;return i=_v(t,o),new bv(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 Sv=ne(()=>{[...pv,...mv].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)}),vv.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(iv,(e,t)=>{if(Sv(),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(lv,({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(cv,({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()},dv,uv),Cl=R(fv,({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=`${wv()}/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)})},gv,hv),Vl=["onCanplay","onPlay","onPause","onStop","onEnded","onTimeUpdate","onError","onWaiting","onSeeking","onSeeked"],Tv=["offCanplay","offPlay","offPause","offStop","offEnded","offTimeUpdate","offError","offWaiting","offSeeking","offSeeked"],Cv={thresholds:[0],initialRatio:0,observeAll:!1},Vv=["top","right","bottom","left"];let Av=1;function Al(e={}){return Vv.map(t=>`${Number(e[t])||0}px`).join(" ")}class El{constructor(t,n){this._pageId=Ae(t),this._component=t,this._options=L({},Cv,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=Av++,Bb({reqId:this._reqId,component:this._component,options:this._options,callback:n},this._pageId))}disconnect(){this._reqId&&Db({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 Ev=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=Ev++,Fb({reqId:this._reqId,component:this._component,options:t,callback:n},this._pageId))}disconnect(){this._reqId&&$b({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 kv=0,ji={};function Iv(e,t,n,o){const i={options:o},r=o&&("success"in o||"fail"in o||"complete"in o);if(r){const a=String(kv++);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 Nv{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){Iv(this.id,this.pageId,t,n)}}const xv={canvas:_n,map:qi,video:Wi,editor:Nv};function xl(e){if(e&&e.contextInfo){const{id:t,type:n,page:o}=e.contextInfo,i=xv[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 Mv{constructor(t){this._component=void 0,this._page=t,this._queue=[],this._queueCb=[]}exec(t){return Rb(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 Mv(e||Ee()))),Pv="createAnimation",Ov={formatArgs:{}},Rv={},Lv={duration:400,timingFunction:"linear",delay:0,transformOrigin:"50% 50% 0"};class Pl{constructor(t){this.actions=[],this.currentTransform={},this.currentStepAnimates=[],this.option=L({},Lv,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 Bv=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(Pv,e=>(Bv(),new Pl(e)),Rv,Ov),Rl="onTabBarMidButtonTap",Ll=ke(Rl,()=>{}),Dv="onWindowResize",Uv="offWindowResize",Bl=ke(Dv,()=>{}),Dl=vt(Uv,()=>{}),Fv="setLocale",$v="getLocale",Ul="onLocaleChange",yo=j($v,()=>{const e=getApp({allowDefault:!0});return e&&e.$vm?e.$vm.$locale:U().getLocale()}),Fl=ke(Ul,()=>{}),$l=j(Fv,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(Lb(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 zv(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 cm(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",()=>jb());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)}},Hv="canIUse",Wv="makePhoneCall",qv="getClipboardData",Gv="setClipboardData",jv={formatArgs:{showToast:!0},beforeInvoke(){Vp()},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})}},Yv={},cc="onAccelerometer",Xv="offAccelerometer",Jv="startAccelerometer",Kv="stopAccelerometer",uc="onCompass",Qv="offCompass",Zv="startCompass",e_="stopCompass",t_="vibrateShort",n_="vibrateLong",o_="getStorage",i_="getStorageSync",r_="setStorage",a_="setStorageSync",dc="removeStorage",s_="getFileInfo",l_={formatArgs:{filePath(e,t){t.filePath=Q(e)}}},c_={},u_="openDocument",d_={formatArgs:{filePath(e,t){t.filePath=Q(e)}}},f_={},h_="hideKeyboard",g_="chooseLocation",p_="getLocation",fc=["wgs84","gcj02"],m_={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}}},v_={},__="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)}.`}},y_={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}}},b_={},w_="chooseImage",S_={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=9)},sizeType(e,t){t.sizeType=ho(e,m0)},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=["*"])}}},T_={},C_="chooseVideo",V_={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=["*"])}}},A_={},E_="chooseFile",k_=["all","image","video"],I_={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,k_)},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=["*"])}}},N_={},x_="getImageInfo",M_={formatArgs:{src(e,t){t.src=Q(e)}}},P_={},O_="previewImage",R_={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))}}},L_={},B_="closePreviewImage",D_="getVideoInfo",U_={formatArgs:{src(e,t){t.src=Q(e)}}},F_={},gc="saveImageToPhotosAlbum",pc="saveVideoToPhotosAlbum",$_="request",z_={JSON:"json"},H_=["text","arraybuffer"],W_="text",mc=encodeURIComponent;function q_(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 G_={},j_={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=q_(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||z_.JSON).toLowerCase()},responseType(e,t){t.responseType=(e||"").toLowerCase(),H_.indexOf(t.responseType)===-1&&(t.responseType=W_)}}},Y_="downloadFile",X_={formatArgs:{header(e,t){t.header=e||{}}}},J_={},K_="uploadFile",Q_={formatArgs:{filePath(e,t){e&&(t.filePath=Q(e))},header(e,t){t.header=e||{}},formData(e,t){t.formData=e||{}}}},Z_={},ey="connectSocket",ty={formatArgs:{header(e,t){t.header=e||{}},method(e,t){t.method=fo((e||"").toUpperCase(),uo)},protocols(e,t){J(e)&&(t.protocols=[e])}}},ny={},oy="sendSocketMessage",iy="closeSocket",ry="startLocationUpdate",vc="onLocationChange",ay="stopLocationUpdate",sy="offLocationChange",ly="offLocationChangeError",Qi="onLocationChangeError",_c=["wgs84","gcj02"],cy={},uy={formatArgs:{type(e,t){e=(e||"").toLowerCase(),_c.indexOf(e)===-1?t.type=_c[1]:t.type=e}}};function dy(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 fy=["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"],hy=["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",gy="navigateBack",Zi="preloadPage",py="unPreloadPage",my=L({},wo,yc(fy)),vy=L({delta:{type:Number}},yc(hy)),_y=wo,yy=wo,by=wo,wy=Co(Sn),Sy=Co(Tn),Ty=Co(So),Cy=Co(Ut),Vy={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 Ay(){To=""}function Co(e){return{formatArgs:{url:Ey(e)},beforeAll:Ay}}function Ey(e){return function(n,o){if(!n)return'Missing required args: "url"';n=dm(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=dy(n),e!==py){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 ky="hideLoading",Iy="hideToast",Ny="loadFontFace",er="setNavigationBarColor",xy={formatArgs:{animation(e,t){e||(e={duration:0,timingFunc:"linear"}),t.animation={duration:e.duration||0,timingFunc:e.timingFunc||"linear"}}}},My={},tr="setNavigationBarTitle",nr="showNavigationBarLoading",or="hideNavigationBarLoading",Py="pageScrollTo",Oy={},Ry={formatArgs:{duration:300}},Ly="showActionSheet",By={},Dy={formatArgs:{itemColor:"#000"}},Uy="showLoading",Fy={},$y={formatArgs:{title:"",mask:!1}},zy="showModal",Hy={},Wy={beforeInvoke(){Cp()},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}},qy="showToast",bc=["success","loading","none","error"],Gy={},jy={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",Yy=L({text:String,iconPath:String,selectedIconPath:String,pagePath:String},Cn),Xy={beforeInvoke:Ze.beforeInvoke,formatArgs:L({pagePath(e,t){e&&(t.pagePath=Ba(e))}},Ze.formatArgs)},sr="setTabBarStyle",Jy={},Ky=/^(linear|radial)-gradient\(.+?\);?$/,Qy={beforeInvoke:Ze.beforeInvoke,formatArgs:{backgroundImage(e,t){e&&!Ky.test(e)&&(t.backgroundImage=Q(e))},borderStyle(e,t){e&&(t.borderStyle=e==="white"?"white":"black")}}},lr="hideTabBar",cr="showTabBar",ur="hideTabBarRedDot",Zy=Cn,eb=Ze,dr="showTabBarRedDot",tb=Cn,nb=Ze,fr="removeTabBarBadge",ob=Cn,ib=Ze,hr="setTabBarBadge",rb=L({text:{type:String,required:!0}},Cn),ab={beforeInvoke:Ze.beforeInvoke,formatArgs:L({text(e,t){zg(e)>=4&&(t.text="...")}},Ze.formatArgs)},sb=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 lb(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 cb(e,t,n){sb();const o=t.relativeToSelector?e.querySelector(t.relativeToSelector):null,i=new IntersectionObserver(r=>{r.forEach(a=>{n({intersectionRatio:lb(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 ub(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(ub(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)},by,Cy);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)},_y,Sy);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)},yy,Ty);function et({type:e,url:t,tabBarText:n,events:o,isAutomatedTesting:i},r){const a=getApp().$router,{path:s,query:l}=Jg(t);return new Promise((c,u)=>{const d=mb(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(xp(__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(Hv,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":db(t),"--window-bottom":kc(n)})}function db(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 fb(){tt.forEach((e,t)=>{e.$.isUnmounted&&tt.delete(t)})}function Sr(){return tt}function hb(){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 gb(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&&gb(e)}let pb=Ui();function mb(e,t){return{__id__:t||++pb,__type__:e}}function vb(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 _b(e){const t=e.$route,n=vb(t);Um(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 yb(){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){wb(e),_t.set(e,t)},delete(e){_t.get(e)&&_t.delete(e)},forEach(e){_t.forEach(e)}};function bb(e){return e.props.type==="tabBar"}function wb(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__&&bb(n))return;An.delete(o),An.pruneCacheEntry(n),Vue.nextTick(()=>fb())}})}function Sb(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){Vb(e),Ec(t),Sb(t),xc(e,t)}function Tb(e){const t=Nc(e);t&&Cb(t)}function Cb(e){const t=document.querySelector("uni-page-body");t&&t.setAttribute(e,"")}function Nc(e){return e.type.__scopeId}let Tr;function Vb(e){const t=Nc(e),{body:n}=document;Tr&&n.removeAttribute(Tr),t&&n.setAttribute(t,""),Tr=t}const Ab=(()=>{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,Ab);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=Eb(a,n,i)),o!=null&&o.length&&(r.onReachBottomDistance=t.onReachBottomDistance||Vg,r.onReachBottom=()=>UniViewJSBridge.publishHandler(_i,{},a)),Lo=um(r),requestAnimationFrame(()=>document.addEventListener("scroll",Lo))}function Eb(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(Eg.test(e)||kg.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,kb=/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),Ib=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 Nb(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 xb(e,t,n,o,i){UniServiceJSBridge.invokeViewMethod("map."+e,{type:n,data:o},t,i)}function Mb(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=aT(e)),n}function Pb(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 Ob(e,t,n,o,i){const r=Pb(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 Rb(e,t,n){const o=[];t.forEach(({component:i,selector:r,single:a,fields:s})=>{i===null?o.push(Mb(s)):o.push(Ob(e,i,r,a,s))}),n(o)}function Lb(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 Bb({reqId:e,component:t,options:n,callback:o},i){const r=Mc(t);(r.__io||(r.__io={}))[e]=cb(r,n,o)}function Db({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 Ub(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 Fb({reqId:e,component:t,options:n,callback:o},i){const r=Er[e]=window.matchMedia(Ub(n)),a=kr[e]=s=>o(s.matches);a(r),r.addListener(a)}function $b({reqId:e,component:t},n){const o=kr[e],i=Er[e];i&&(i.removeListener(o),delete kr[e],delete Er[e])}function zb(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(Hb(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 Hb(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 Wb(e){const t=e.split("/")[1];return t?`.${t}`:""}function qb(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()}${Wb(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 Gb(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 jb(){return L({},Do)}function Yb({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=Jb(n),i=Xb(n,t,o);return Kb(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 Xb(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 Jb(e){return()=>{const{firstElementChild:t,lastElementChild:n}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5}}function Kb(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 Qb(){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 Zb=ne(()=>Qb());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 ew=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}){Zb();const o=Vue.ref(null),i=Vue.ref(null),r=Vue.ref(null),a=Vue.ref(!1),s=t0(t),{$attrs:l,$excludeAttrs:c,$listeners:u}=Wo({excludeListeners:!0}),{_listeners:d}=tw(e,u,s),{_handleSubscribe:f,_resize:g}=nw(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 tw(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 nw(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},Gb(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}zb(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"),ow=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 iw(e,i),()=>Vue.createVNode("uni-checkbox-group",{ref:o},[n.default&&n.default()],512)}});function iw(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 rw=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}=aw(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 aw(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 sw;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(sw),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_]+)[^>]*>/,lw=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,cw=Wt("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),uw=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"),dw=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"),fw=Wt("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),hw=Wt("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),gw=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()||!gw[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(),uw[d])for(;r.last()&&dw[r.last()];)c("",r.last());if(fw[d]&&r.last()==d&&c("",d),g=cw[d]||!!g,g||r.push(d),t.start){var _=[];f.replace(lw,function(m,v){var S=arguments[2]?arguments[2]:arguments[3]?arguments[3]:arguments[4]?arguments[4]:hw[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 pw(e){const t=e.import("blots/block/embed");class n extends t{}return n.blotName="divider",n.tagName="HR",{"formats/divider":n}}function mw(e){const t=e.import("blots/inline");class n extends t{}return n.blotName="ins",n.tagName="INS",{"formats/ins":n}}function vw(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 _w(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 yw(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 bw(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 ww(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 Sw(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 Tw(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 Cw(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 Vw(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 Aw(e){const t={divider:pw,ins:mw,align:vw,direction:_w,list:yw,background:bw,box:ww,font:Sw,text:Tw,image:Cw,link:Vw},n={};Object.values(t).forEach(o=>L(n,o(e))),e.register(n,!0)}function Ew(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;Aw(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 kw=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 Ew(e,n,o),nu(e,n),()=>Vue.createVNode("uni-editor",{ref:n,id:e.id,class:"ql-container"},null,8,["id"])}}),su="#10aeff",Iw="#f76260",lu="#b2b2b2",Nw={success:{d:im,c:on},success_no_circle:{d:hn,c:on},info:{d:om,c:su},warn:{d:ps,c:Iw},waiting:{d:rm,c:su},cancel:{d:em,c:"#f43530"},download:{d:nm,c:on},search:{d:gs,c:lu},clear:{d:tm,c:lu}},xw=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(()=>Nw[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)}}}),Mw={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]},Pw={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"]},Ow=X({name:"Image",props:Mw,setup(e,{emit:t}){const n=Vue.ref(null),o=Rw(n,e),i=pe(n,t),{fixSize:r}=Uw(n,e,o);return Lw(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 Rw(e,t){const n=Vue.ref(""),o=Vue.computed(()=>{let r="auto",a="";const s=Pw[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 Lw(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 Bw=navigator.vendor==="Google Inc.";function Dw(e){return Bw&&e>10&&(e=Math.round(e/2)*2),e}function Uw(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]]=Dw(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 Fw(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 $w=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)},$w)}),cu=!0),$o.push(e)}function zw(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(()=>{zw(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 Hw(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 Ww(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 qw=function(){os(pt(),"getSelectedTextRange",Ww)};function xr(e,t,n){return t==="number"&&isNaN(Number(e))&&(e=""),e==null?"":String(e)}const Gw=["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=>!!~Gw.indexOf(e)},cursorColor:{type:String,default:""}},eu),pu=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend",...tu];function jw(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 Yw(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=Fw((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 Xw(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 Jw(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){qw();const{fieldRef:i,state:r,trigger:a}=jw(e,t,n),{triggerInput:s}=Yw(e,r,n,a);Xw(e,i),nu(e,i);const{state:l}=hu();Hw("name",r),Jw(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 Kw=L({},gu,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),Qw=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"&&Qw()&&t.value.slice(-2,-1)===".")return t.value=n.value=o.value=t.value.slice(0,-2),!0}}function Zw(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:Kw,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=Zw(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 eS(e){return Object.keys(e).map(t=>[t,e[t]])}const tS=["class","style"],nS=/^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(tS);return o.attrs=Vue.reactive(o.attrs),Vue.watchEffect(()=>{const l=eS(o.attrs).reduce((c,[u,d])=>(s.includes(u)?c.exclude[u]=d:nS.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}=oS(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 oS(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 iS={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:iS,emits:["change","scale"],setup(e,{slots:t,emit:n}){const o=Vue.ref(null),i=pe(o,n),{setParent:r}=lS(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 rS(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 aS(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 sS(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}=rS(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}=aS(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 lS(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}=sS(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 ag=T.s(),WV=ag.x,qV=ag.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 cS=["navigate","redirect","switchTab","reLaunch","navigateBack"],uS=["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"],dS=["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"],fS={hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator(e){return!!~cS.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||uS.concat(dS).includes(e)}},animationDuration:{type:[String,Number],default:300}};function hS(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 gS=X({name:"Navigator",inheritAttrs:!1,compatConfig:{MODE:3},props:L({},fS,{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=hS(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"])}}}),pS={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 mS(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:pS,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=mS(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 vS{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 _S(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 yS{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 vS(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=_S(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 yS(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 bS(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),bS(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)}}}),wS=16,wt={activeColor:on,backgroundColor:"#EBEBEB",activeMode:"backwards"},SS={percent:{type:[Number,String],default:0,validator(e){return!isNaN(parseFloat(e))}},fontSize:{type:[String,Number],default:wS},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}},TS=X({name:"Progress",props:SS,setup(e){const t=Vue.ref(null),n=CS(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 CS(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"),VS=X({name:"RadioGroup",props:{name:{type:String,default:""}},setup(e,{emit:t,slots:n}){const o=Vue.ref(null),i=pe(o,t);return AS(e,i),()=>Vue.createVNode("uni-radio-group",{ref:o},[n.default&&n.default()],512)}});function AS(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 ES=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}=kS(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 kS(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 IS={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 NS(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 xS(e,t){if(["a","img"].includes(e.name)&&t)return{onClick:n=>{t(n,{node:e}),n.stopPropagation(),n.preventDefault(),n.returnValue=!1}}}function MS(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(IS,a)?(MS(a,o.attrs),r=L(r,xS(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(NS(o.text||""))}});function PS(e){return e.replace(/<\?xml.*\?>\n/,"").replace(/<!doctype.*>\n/,"").replace(/<!DOCTYPE.*>\n/,"")}function OS(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 RS(e){e=PS(e);const t=[],n={children:[]};return ru(e,{start:function(o,i,r){const a={name:o};if(i.length!==0&&(a.attrs=OS(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 LS=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=RS(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))}}),BS=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}=DS(e),{realScrollX:f,realScrollY:g}=US(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(BS,{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 DS(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 US(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 FS=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=zS(e,r),{_onClick:l,_onTrack:c}=HS(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"])}}}),$S=(e,t,n)=>(n=Number(n),t=Number(t),100*(e-t)/(n-t)+"%");function zS(e,t){const n=()=>$S(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 HS(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:WS.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 WS={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 qS={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 GS(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 jS(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:qS,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=GS(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}=jS(e,s,f,a,n,i);let h=()=>null;return h=YS(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)}}}),YS=(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)}}),XS=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=JS(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 JS(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 KS(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 QS(e,t){return KS(e,t).split(kt)}const ZS=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=QS(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"])}}}),eT=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 tT(){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 nT=X({name:"Textarea",props:eT,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 tT(),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"])}}}),oT=X({name:"View",props:L({},o0),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&&Lp(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 iT(e,t){Vue.onMounted(()=>UniViewJSBridge.on(e,t)),Vue.onBeforeUnmount(()=>UniViewJSBridge.off(e))}let rT=0;function Yo(e){const t=ao(),o=Vue.getCurrentInstance().proxy,i=o.$options.name.toLowerCase(),r=e||o.id||`context${rT++}`;return Vue.onMounted(()=>{const a=o.$el;a.__uniContextInfo={id:r,type:i,page:t}}),`${i}.${r}`}function aT(e){return e.__uniContextInfo}function zu(e,t,n,o){G(t)&&Vue.injectHook(e,t.bind(n),o)}function sT(e,t,n){const o=e.mpType||n.$mpType;if(!(!o||o==="component"||o==="page"&&t.renderer==="component")&&(Object.keys(e).forEach(i=>{if(Kg(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 lT(e,t,n){sT(e,t,n)}function cT(e,t,n){return e[t]=n}function uT(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function dT(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 fT(e,t){return e?[...new Set([].concat(e,t))]:t}function hT(e){qa.forEach(t=>{e[t]=fT})}let Dr;const Xo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",gT=/^(?:[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,""),!gT.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 pT(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(pT(t[1]))}catch(o){throw new Error("获取当前用户信息出错,详细错误信息为:"+o.message)}return n.tokenExpired=n.exp*1e3,delete n.exp,delete n.iat,n}function mT(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 vT(e){const t=e.config;t.errorHandler=Zg(e,dT),hT(t.optionMergeStrategies);const n=t.globalProperties;__UNI_FEATURE_UNI_CLOUD__&&mT(n),n.$set=cT,n.$applyOptions=lT,n.$callMethod=uT,Qg(e)}function _T(e){const t=VueRouter.createRouter(ST());t.beforeEach((n,o)=>{n&&o&&n.meta.isTabBar&&o.meta.isTabBar&&bT(o.meta.tabBarIndex)}),e.router=t,e.use(t)}let Hu=Object.create(null);function yT(e){return Hu[e]}function bT(e){typeof window!="undefined"&&(Hu[e]={left:window.pageXOffset,top:window.pageYOffset})}const wT=(e,t,n)=>{if(n)return n;if(e&&t&&e.meta.isTabBar&&t.meta.isTabBar){const o=yT(e.meta.tabBarIndex);if(o)return o}return{left:0,top:0}};function ST(){return{history:CT(),strict:!!__uniConfig.router.strict,routes:__uniRoutes,scrollBehavior:wT}}function TT(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 CT(){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"&&TT(Math.abs(i.delta))}),t}const Wu={install(e){vT(e),Em(e),Jm(e),e.config.warnHandler||(e.config.warnHandler=VT),__UNI_FEATURE_PAGES__&&_T(e)}};function VT(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 AT={class:"uni-async-loading"},ET=Vue.createVNode("i",{class:"uni-loading"},null,-1),Jo=ge({name:"AsyncLoading",render(){return Vue.openBlock(),Vue.createBlock("div",AT,[ET])}});function kT(){window.location.reload()}const Ko=ge({name:"AsyncError",props:["error"],setup(){bp();const{t:e}=U();return()=>Vue.createVNode("div",{class:"uni-async-error",onClick:kT},[e("uni.async.error")],8,["onClick"])}});let jt;function IT(){return jt}function NT(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),Dm(jt),Km(jt),Bm(),hm()}function qu(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")?qu(e.default,t):qu(e,t)}function xT(e,t){return Fr(e,{init:n=>{n.$page={id:t}},setup(n){n.$pageInstance=n}})}function MT(e){return Fr(e,{clone:!0,init:_b,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(()=>{Tb(t);const{onReady:r}=t;r&&Et(r),Gu(n)}),Vue.onBeforeActivate(()=>{if(!t.__isVisible){Ic(t,i),t.__isVisible=!0;const{onShow:r}=t;r&&Et(r),Vue.nextTick(()=>{Gu(n)})}}),Vue.onBeforeDeactivate(()=>{if(t.__isVisible&&!t.__isUnload){t.__isVisible=!1;{const{onHide:r}=t;r&&Et(r)}}}),Op(i.id),Vue.onBeforeUnmount(()=>{Rp(i.id)}),o}})}function PT(e){return Fr(e,{init:NT,setup(t){const n=vn(),o=()=>{zv(t);const{onLaunch:i,onShow:r,onPageNotFound:a}=t,s=n.path.slice(1),l=Yb({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(OT,50,{setTimeout,clearTimeout})),window.addEventListener("message",RT),document.addEventListener("visibilitychange",LT),BT()}),n.query},before(t){t.mpType="app";const{setup:n}=t,o=()=>(Vue.openBlock(),Vue.createBlock(Xf));t.setup=(i,r)=>{const a=n&&n(i,r);return G(a)?o:a},t.render=o}})}function OT(){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 RT(e){se(e.data)&&e.data.type===Ig&&UniServiceJSBridge.emit(Ra,e.data.data,e.data.pageId)}function LT(){const{emit:e}=UniServiceJSBridge;document.visibilityState==="visible"?e(Pa,Gc()):e(Oa)}function BT(){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 Gu(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 DT(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 UT(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 FT(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 $T(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 zT(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 HT(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 WT(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,()=>{ju.duration}],()=>{e.progress=e.currentTime/e.duration*100}),Vue.watch(()=>t.currentTimeNew,a=>{e.currentTime=a}),r}const ju={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}},qT=X({name:"Video",props:ju,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(),kp();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}=FT(e,n,a),{state:E,danmuRef:V,updateDanmu:I,toggleDanmu:M,sendDanmu:F}=zT(e,u),{state:k,onFullscreenChange:B,emitFullscreenChange:z,toggleFullscreen:x,requestFullScreen:P,exitFullScreen:O}=UT(a,r,c,s,i),{state:D,onTouchstart:W,onTouchend:q,onTouchmove:$}=DT(e,c,k),{state:ee,progressRef:de,ballRef:Me,clickProgress:De,toggleControls:ut}=$T(e,u,_,ve=>{D.currentTimeNew=ve});HT(d,f,g,_,F,m,P,O);const Tt=WT(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"])}}),GT=({name:e,arg:t})=>{e==="postMessage"||uni[e](t)},jT=ne(()=>UniServiceJSBridge.on(Ra,GT)),YT=X({inheritAttrs:!1,name:"WebView",props:{src:{type:String,default:""},fullscreen:{type:Boolean,default:!0}},emits:["load"],setup(e,{emit:t}){jT();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=XT(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 XT(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 JT=0;function $r(e,t,n,o){var i=document.createElement("script"),r=t.callback||"callback",a="__uni_jsonp_callback_"+JT++,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 Yu(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 Xu={},KT="__map_callback__";function zr(e,t){const n=ot();if(!n.key){console.error("Map key not configured.");return}const o=Xu[n.type]=Xu[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||Yu(Be),t(Be);else if(o.length)o.push(t);else{o.push(t);const i=window,r=KT+n.type;i[r]=function(){delete i[r],Be=ue()||ie()?window[n.type]:window[n.type].maps,Be.Callout=Yu(Be),o.forEach(l=>l(Be)),o.length=0},ue()&&ZT(n);const a=document.createElement("script");let s=QT(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 QT=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 ZT(e){window._AMapSecurityConfig={securityJsCode:e.securityJsCode||"",serviceHost:e.serviceHost||""}}const Ju="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",Ku="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=",Qu="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 Zu=!1,ed=!1;const ue=()=>ed?Zu:(ed=!0,Zu=ot().type==="AMap"),ie=()=>ot().type==="BMapGL";function td(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 e1={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 t1(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 nd=ge({name:"MapMarker",props:e1,setup(e){const t=String(isNaN(Number(e.id))?"":e.id),n=Vue.inject("onMapReady"),o=t1(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(b,L){typeof exports=="object"&&typeof module!="undefined"?L(exports):typeof define=="function"&&define.amd?define(["exports"],L):(b=typeof globalThis!="undefined"?globalThis:b||self,L(b.UniH5={}))})(this,(function(b){"use strict";var GV=Object.defineProperty;var cg=Object.getOwnPropertySymbols;var jV=Object.prototype.hasOwnProperty,YV=Object.prototype.propertyIsEnumerable;var ug=(b,L,Se)=>L in b?GV(b,L,{enumerable:!0,configurable:!0,writable:!0,value:Se}):b[L]=Se,wa=(b,L)=>{for(var Se in L||(L={}))jV.call(L,Se)&&ug(b,Se,L[Se]);if(cg)for(var Se of cg(L))YV.call(L,Se)&&ug(b,Se,L[Se]);return b};const L=Object.assign,Se=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},dg=Object.prototype.hasOwnProperty,ae=(e,t)=>dg.call(e,t),K=Array.isArray,G=e=>typeof e=="function",J=e=>typeof e=="string",fg=e=>e!==null&&typeof e=="object",hg=e=>(fg(e)||G(e))&&G(e.then)&&G(e.catch),gg=Object.prototype.toString,pg=e=>gg.call(e),se=e=>pg(e)==="[object Object]",gi=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},mg=/-(\w)/g,Sa=gi(e=>e.replace(mg,(t,n)=>n?n.toUpperCase():"")),vg=/\B([A-Z])/g,At=gi(e=>e.replace(vg,"-$1").toLowerCase()),pi=gi(e=>e.charAt(0).toUpperCase()+e.slice(1)),Et=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},_g=/;(?![^(]*\))/g,yg=/:([^]+)/,bg=/\/\*[^]*?\*\//g;function wg(e){const t={};return e.replace(bg,"").split(_g).forEach(n=>{if(n){const o=n.split(yg);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Sg(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}const Tg=["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),Cg=["list-view","list-item","sticky-section","sticky-header","cloud-db-element"].map(e=>"uni-"+e),Vg=["list-item"].map(e=>"uni-"+e);function Ag(e){if(Vg.indexOf(e)!==-1)return!1;const t="uni-"+e.replace("v-uni-","");return Tg.indexOf(t)!==-1||Cg.indexOf(t)!==-1}const kt=`
|
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="
|
5
5
|
margin-left:${M.marginLeft};
|
6
6
|
margin-top:${M.marginTop};
|
7
7
|
padding:${M.padding};
|
@@ -14,6 +14,6 @@
|
|
14
14
|
">
|
15
15
|
${A.content}
|
16
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=f.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=-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 n1=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}}),o1=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}}),i1=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"])])}}),r1=ne(()=>{Vl.forEach(e=>{Hr.prototype[e]=function(t){G(t)&&this._events[e].push(t)}}),Tv.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)}),r1()}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 od=j(rv,()=>new Hr),id=R(Wv,({phoneNumber:e},{resolve:t})=>(window.location.href=`tel:${e}`,t())),rd="__DC_STAT_UUID",ad=navigator.cookieEnabled&&(window.localStorage||window.sessionStorage)||{};let Yt;function a1(){if(Yt=Yt||ad[rd],!Yt){Yt=Date.now()+""+Math.floor(Math.random()*1e7);try{ad[rd]=Yt}catch(e){}}return Yt}function s1(){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 l1(){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(kb){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(Ib){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(s1());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=Nb(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=l1())}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:a1(),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,Wg(l)}),sd=R("getSystemInfo",(e,{resolve:t})=>t(Yr())),ld="onNetworkStatusChange";function Xt(){Jr().then(({networkType:e})=>{UniServiceJSBridge.invokeOnCallback(ld,{isConnected:e!=="none",networkType:e})})}function Xr(){return navigator.connection||navigator.webkitConnection||navigator.mozConnection}const cd=ke(ld,()=>{const e=Xr();e?e.addEventListener("change",Xt):(window.addEventListener("offline",Xt),window.addEventListener("online",Xt))}),ud=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 dd=ke(cc,()=>{Kr()}),fd=vt(Xv,()=>{Qr()}),Kr=R(Jv,(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(Kv,(e,{resolve:t})=>{Jt&&(window.removeEventListener("devicemotion",Jt,!1),Jt=null),t()});let Kt=null;const Zr=ke(uc,()=>{ta()}),ea=vt(Qv,()=>{na()}),ta=R(Zv,(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(e_,(e,{resolve:t})=>{Kt&&(window.removeEventListener("deviceorientation",Kt,!1),Kt=null),t()}),hd=!!window.navigator.vibrate,gd=R(t_,(e,{resolve:t,reject:n})=>{hd&&window.navigator.vibrate(15)?t():n("vibrateLong:fail")}),pd=R(n_,(e,{resolve:t,reject:n})=>{hd&&window.navigator.vibrate(400)?t():n("vibrateLong:fail")});var md=(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 vd=R(qv,(e,t)=>md(void 0,[e,t],function*(n,{resolve:o,reject:i}){Ap();const{t:r}=U();try{const a=yield navigator.clipboard.readText();o({data:a})}catch(a){c1(o,()=>{i(`${a} ${r("uni.getClipboardData.fail")}`)})}})),_d=R(Gv,(e,t)=>md(void 0,[e,t],function*({data:n},{resolve:o,reject:i}){try{yield navigator.clipboard.writeText(n),o()}catch(r){u1(n,o,i)}}),Yv,jv);function c1(e,t){const n=document.getElementById("#clipboard"),o=n?n.value:void 0;o?e({data:o}):t()}function u1(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 yd=e=>{UniServiceJSBridge.invokeOnCallback(Xe,e)},bd=ke(Xe,()=>{UniServiceJSBridge.on(Xe,yd)}),wd=vt(xg,()=>{UniServiceJSBridge.off(Xe,yd)}),d1="uni-storage-keys";function f1(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(a_,(e,t)=>{const n=typeof t,o=n==="string"?t:JSON.stringify({type:n,data:t});localStorage.setItem(e,o)}),Sd=R(r_,({key:e,data:t},{resolve:n,reject:o})=>{try{oa(e,t),n()}catch(i){o(i.message)}});function Td(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=f1(o);i!==void 0&&(n=i)}catch(o){}return n}const Cd=j(i_,e=>{try{return Td(e)}catch(t){return""}}),Vd=R(o_,({key:e},{resolve:t,reject:n})=>{try{const o=Td(e);t({data:o})}catch(o){n(o.message)}}),ia=j(dc,e=>{localStorage&&localStorage.removeItem(e)}),Ad=R(dc,({key:e},{resolve:t})=>{ia(e),t()}),ra=j("clearStorageSync",()=>{localStorage&&localStorage.clear()}),Ed=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!==d1&&t.push(i)}return{keys:t,currentSize:Math.ceil(n*2/1024),limitSize:Number.MAX_VALUE}}),kd=R("getStorageInfo",(e,{resolve:t})=>{t(aa())}),Id=R(s_,({filePath:e},{resolve:t,reject:n})=>{Bo(e).then(o=>{t({size:o.size})}).catch(o=>{n(String(o))})},c_,l_),Nd=R(u_,({filePath:e},{resolve:t})=>(window.open(e),t()),f_,d_),xd=R(h_,(e,{resolve:t,reject:n})=>{const o=document.activeElement;o&&(o.tagName==="TEXTAREA"||o.tagName==="INPUT")&&(o.blur(),t())});function h1(){return window.location.protocol+"//"+window.location.host}const Md=R(x_,({src:e},{resolve:t,reject:n})=>{const o=new Image;o.onload=function(){t({width:o.naturalWidth,height:o.naturalHeight,path:e.indexOf("/")===0?h1()+e:e})},o.onerror=function(){n()},o.src=e},P_,M_),Pd=R(D_,({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()})},F_,U_),g1={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"}},Od="all";function p1(){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!==Od){const a=r.replace(".","");return`${n}/${g1[n][a]||a}`}else return p1()?".":r.indexOf(".")===0?r:`.${r}`}).join(","),e&&e>1&&(i.multiple=!0),n!==Od&&t instanceof Array&&t.length===1&&t[0]==="camera"&&i.setAttribute("capture","camera"),i}let rt=null;const Rd=R(E_,({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"))},N_,I_);let at=null;const Ld=R(w_,({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"))},T_,S_),Bd={esc:["Esc","Escape"],enter:["Enter"]},m1=Object.keys(Bd);function ti(){const e=Vue.ref(""),t=Vue.ref(!1),n=o=>{if(t.value)return;const i=m1.find(r=>Bd[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 v1=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 Dd(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 Ud(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(()=>Ud(!0)),Vue.onUnmounted(()=>Ud(!1))}const _1=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 y1(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const b1={urls:{type:Array,default(){return[]}},current:{type:[Number,String],default:0}};function Fd(e){let t=typeof e.current=="number"?e.current:e.urls.indexOf(e.current);return t=t<0?0:t,t}const w1=ge({name:"ImagePreview",props:b1,emits:["close"],setup(e,{emit:t}){ca();const{key:n}=ti(),o=Vue.ref(null),i=Vue.ref(Fd(e));Vue.watch(()=>e.current,()=>i.value=Fd(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%"}},y1(c=e.urls.map(u=>Vue.createVNode(Du,null,{default:()=>[Vue.createVNode(_1,{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 $d=()=>{On=null,Vue.nextTick(()=>{en==null||en.unmount(),en=null})},zd=R(O_,(e,{resolve:t})=>{On?L(On,e):(On=Vue.reactive(e),Vue.nextTick(()=>{en=Qt(w1,On,$d),en.mount(Zt("u-a-p"))})),t()},L_,R_),Hd=R(B_,(e,{resolve:t,reject:n})=>{en?($d(),t()):n()});let st=null;const Wd=R(C_,({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"))},A_,V_),ua=po($_,({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=C1(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 qd(_);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=S1(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=T1(N);let k=r==="text"?new TextDecoder().decode(F):F;r==="text"&&(k=Gd(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 qd(_),_.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=Gd(S,r,i)),c({data:S,statusCode:v,header:V1(_.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},G_,j_),S1=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 T1(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 C1(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 qd{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 V1(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 Gd(e,t,n){let o=e;if(t==="text"&&n==="json")try{o=JSON.parse(o)}catch(i){}return o}class A1{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 jd=po(Y_,({url:e,header:t={},timeout:n=__uniConfig.networkTimeout.downloadFile},{resolve:o,reject:i})=>{var r,a=new XMLHttpRequest,s=new A1(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||qb(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},J_,X_);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._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 Yd=po(K_,({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 E1;(!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},Z_,Q_),tn=[],da={open:"",close:"",error:"",message:""};class k1{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
|
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
18
|
${m};at socketTask.on${pi(l)} callback function
|
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 Xd=po(ey,({url:e,protocols:t},{resolve:n,reject:o})=>new k1(e,t,(i,r)=>{if(i){o(i.toString(),{errCode:600009});return}tn.push(r),n()}),ny,ty);function Jd(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 Kd=R(oy,(e,{resolve:t,reject:n})=>{const o=tn[0];o&&o.readyState===o.OPEN?Jd(o,"send",e,t,n):n("WebSocket is not connected")}),Qd=R(iy,(e,{resolve:t,reject:n})=>{const o=tn[0];o?Jd(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 Zd=ni("open"),ef=ni("error"),tf=ni("message"),nf=ni("close"),Rn=R(p_,({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})=>{td(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))})},v_,m_),I1="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",N1={latitude:{type:Number},longitude:{type:Number},scale:{type:Number,default:18},name:{type:String,default:""},address:{type:String,default:""}};function x1(e){const t=Vue.reactive({center:{latitude:0,longitude:0},marker:{id:1,latitude:0,longitude:0,iconPath:Qu,width:32,height:52},location:{id:2,latitude:0,longitude:0,iconPath:Ku,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 M1=ge({name:"LocationView",props:N1,emits:["close"],setup(e,{emit:t}){const n=x1(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(Ju,"#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(I1,"#ffffff",26)],8,["onClick"])]),Vue.createVNode("div",{class:"nav-btn-back",onClick:r},[ce(gn,"#ffffff",26)],8,["onClick"])])}});let Ln=null;const of=R(__,(e,{resolve:t})=>{Ln?L(Ln,e):(Ln=Vue.reactive(e),Vue.nextTick(()=>{const n=Qt(M1,Ln,()=>{Ln=null,Vue.nextTick(()=>{n.unmount()})});n.mount(Zt("u-a-o"))})),t()},b_,y_);function P1(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const O1={latitude:{type:Number},longitude:{type:Number}};function R1(e){return e>100?`${e>1e3?(e/1e3).toFixed(1)+"k":e.toFixed(0)}m | `:e>0?"<100m | ":""}function L1(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 B1(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 D1=ge({name:"LoctaionPicker",props:O1,emits:["close"],setup(e,{emit:t}){ca(),Ip();const{t:n}=U(),o=L1(e),{list:i,listState:r,loadMore:a,reset:s,getList:l}=B1(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"},[R1(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("${Qu}")`},null),Vue.createVNode("div",{class:"map-move",onClick:_},[ce(Ju,"#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},P1(v)?v:{default:()=>[v],_:2},8,["scroll-y","onScrolltolower"])])])}}});let oi=null;const rf=R(g_,(e,{resolve:t,reject:n})=>{oi?n("cancel"):(oi=Vue.reactive(e),Vue.nextTick(()=>{const o=Qt(D1,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 af=R(ry,(e,{resolve:t,reject:n})=>{if(!navigator.geolocation){n();return}Bn=Bn||navigator.geolocation.watchPosition(o=>{ii=!0,td(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)},cy,uy),sf=R(ay,(e,{resolve:t})=>{Bn&&(navigator.geolocation.clearWatch(Bn),ii=!1,Bn=0),t()}),lf=ke(vc,()=>{}),cf=vt(sy,()=>{}),uf=ke(Qi,()=>{}),df=vt(ly,()=>{}),ff=R(gy,(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)},vy,Vy),hf=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)},my,wy),gf=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 pf(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 U1={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}},F1=(e,t)=>t.value=U1[e].cancelColor,$1={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:""}},z1=Vue.defineComponent({props:$1,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=Dd(e,{onEsc:i,onEnter:()=>{!e.editable&&r()}}),s=H1(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},[v1,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 H1(e){const t=Vue.ref(e.cancelColor),n=({theme:o})=>{F1(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 W1=ne(()=>{UniServiceJSBridge.on("onHidePopup",()=>We.visible=!1)});let ha;function q1(e,t){const n=e==="confirm",o={confirm:n,cancel:e==="cancel"};n&&We.editable&&(o.content=t),ha&&ha(o)}const mf=()=>{We&&(We.visible=!1)},vf=R(zy,(e,{resolve:t})=>{W1(),ha=t,We?(L(We,e),We.visible=!0):(We=Vue.reactive(e),Vue.nextTick(()=>(Qt(z1,We,q1).mount(Zt("u-a-m")),Vue.nextTick(()=>We.visible=!0))))},Hy,Wy),G1={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",j1={light:"#fff",dark:"rgba(255,255,255,0.9)"},_f=e=>j1[e],Y1=Vue.defineComponent({name:"Toast",props:G1,setup(e){Sp(),Tp();const{Icon:t}=X1(e),n=Dd(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 X1(e){const t=Vue.ref(_f(Mn())),n=({theme:i})=>t.value=_f(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 J1=Vue.effectScope();function K1(){J1.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 yf(e){lt?L(lt,e):(lt=Vue.reactive(L(e,{visible:!1})),Vue.nextTick(()=>{K1(),UniServiceJSBridge.on("onHidePopup",()=>si("onHidePopup")),Qt(Y1,lt,()=>{}).mount(Zt("u-a-t"))})),setTimeout(()=>{lt.visible=!0},10)}const bf=R(qy,(e,{resolve:t,reject:n})=>{yf(e),St="onShowToast",t()},Gy,jy),Q1={icon:"loading",duration:1e8,image:""},wf=R(Uy,(e,{resolve:t,reject:n})=>{L(e,Q1),yf(e),St="onShowLoading",t()},Fy,$y),Sf=R(Iy,(e,{resolve:t,reject:n})=>{si("onHideToast"),t()}),Tf=R(ky,(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 Cf(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 Z1={light:{listItemColor:"#000000",cancelItemColor:"#000000"},dark:{listItemColor:"rgba(255, 255, 255, 0.8)",cancelItemColor:"rgba(255, 255, 255)"}};function eC(e,t){["listItemColor","cancelItemColor"].forEach(o=>{t[o]=Z1[e][o]})}const tC={title:{type:String,default:""},itemList:{type:Array,default(){return[]}},itemColor:{type:String,default:"#000000"},popover:{type:Object,default:null},visible:{type:Boolean,default:!1}},nC=Vue.defineComponent({name:"ActionSheet",props:tC,emits:["close"],setup(e,{emit:t}){wp();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}=oC(e,t),{popupStyle:d}=Cf(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=>{iC(m)})})});const _=rC(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 oC(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 iC(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 rC(e){const t=Vue.reactive({listItemColor:"#000",cancelItemColor:"#000"}),n=({theme:o})=>{eC(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 aC=ne(()=>{UniServiceJSBridge.on("onHidePopup",()=>Ye.visible=!1)});function sC(e){e===-1?pa&&pa("cancel"):ga&&ga({tapIndex:e})}const Vf=()=>{Ye&&(Ye.visible=!1)},Af=R(Ly,(e,{resolve:t,reject:n})=>{aC(),ga=t,pa=n,Ye?(L(Ye,e),Ye.visible=!0):(Ye=Vue.reactive(e),Vue.nextTick(()=>(Qt(nC,Ye,sC).mount(Zt("u-s-a-s")),Vue.nextTick(()=>Ye.visible=!0))))},By,Dy),ma=R(Ny,({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),jg(e,t,n).then(()=>{o()}).catch(r=>{i(`loadFontFace:fail ${r}`)})});function lC(e){document.title=e,UniServiceJSBridge.emit(Ia,{titleText:e})}function cC(e){function t(){lC(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 Ef=R(er,(e,{resolve:t,reject:n})=>{li(Mt(),er,e,t,n)},My,xy),kf=R(nr,(e,{resolve:t,reject:n})=>{li(Mt(),nr,e||{},t,n)}),If=R(or,(e,{resolve:t,reject:n})=>{li(Mt(),or,e||{},t,n)}),Nf=R(tr,(e,{resolve:t,reject:n})=>{li(Mt(),tr,e,t,n)}),xf=R(Py,({scrollTop:e,selector:t,duration:n},{resolve:o})=>{Yg(t||e||0,n),o()},Oy,Ry),Mf=R(ir,(e,{resolve:t})=>{UniServiceJSBridge.invokeViewMethod(ir,{},pt()),t()}),Pf=R(rr,(e,{resolve:t})=>{UniServiceJSBridge.invokeViewMethod(rr,{},pt()),t()}),uC=["text","iconPath","iconfont","selectedIconPath","visible"],dC=["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,uC,t);const{pagePath:d}=t;if(d){const f=qe(d);f!==u&&fm(s,u,f)}break;case sr:Fn(l,dC,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 Of=R(ar,(e,{resolve:t,reject:n})=>{ct(ar,e,t,n)},Yy,Xy),Rf=R(sr,(e,{resolve:t,reject:n})=>{ct(sr,e,t,n)},Jy,Qy),Lf=R(lr,(e,{resolve:t,reject:n})=>{ct(lr,e||{},t,n)}),Bf=R(cr,(e,{resolve:t,reject:n})=>{ct(cr,e||{},t,n)}),Df=R(ur,(e,{resolve:t,reject:n})=>{ct(ur,e,t,n)},Zy,eb),Uf=R(dr,(e,{resolve:t,reject:n})=>{ct(dr,e,t,n)},tb,nb),Ff=R(fr,(e,{resolve:t,reject:n})=>{ct(fr,e,t,n)},ob,ib),$f=R(hr,(e,{resolve:t,reject:n})=>{ct(hr,e,t,n)},rb,ab),fC="UniTabbarIconFont",hC={width:"50px",height:"50px",iconWidth:"24px"},gC=ge({name:"TabBar",setup(){const e=Vue.ref([]),t=Vn(),n=pf(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})});mC(n,e),pC(n);const o=vC(VueRouter.useRoute(),n,e),{style:i,borderStyle:r,placeholderStyle:a}=bC(n);return Vue.onMounted(()=>{n.iconfontSrc&&ma({family:fC,source:`url("${n.iconfontSrc}")`})}),()=>{const s=wC(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 pC(e){Vue.watch(()=>e.shown,t=>{ds({"--window-bottom":kc(t?parseInt(e.height):0)})})}function mC(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({},hC,n.value,e.midButton),i=i.filter(r=>!qf(r)),i.length%2===0&&i.splice(Math.floor(i.length/2),0,n.value)),t.value=i}Vue.watchEffect(o)}function vC(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 _C="#f7f7fa",zf="rgb(0, 0, 0, 0.8)",Hf="rgb(250, 250, 250, 0.8)",yC={dark:zf,light:Hf,extralight:Hf},Wf={white:"rgba(255, 255, 255, 0.33)",black:"rgba(0, 0, 0, 0.33)"};function bC(e){const t=Vue.computed(()=>{let i=e.backgroundColor;const r=e.blurEffect;return i||Mo&&r&&r!=="none"&&(i=yC[r]),{backgroundColor:i||_C,backdropFilter:r!=="none"?"blur(10px)":r}}),n=Vue.computed(()=>{const{borderStyle:i,borderColor:r}=e;return r&&J(r)?{backgroundColor:r}:{backgroundColor:Wf[i]||Wf.black}}),o=Vue.computed(()=>({height:e.height}));return{style:t,borderStyle:n,placeholderStyle:o}}function qf(e){return e.type==="midButton"}function wC(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__&&qf(a)?AC(c,u,d,f,a,e,s,t):Gf(c,u,d,f,a,e,s,t)})}function Gf(e,t,n,o,i,r,a,s){return Vue.createVNode("div",{key:a,class:"uni-tabbar__item",onClick:s(i,a)},[jf(e,t||"",n,o,i,r)],8,["onClick"])}function jf(e,t,n,o,i,r){const{height:a}=r;return Vue.createVNode("div",{class:"uni-tabbar__bd",style:{height:a}},[n?TC(n,o||zf,i,r):t&&SC(t,i,r),i.text&&CC(e,i,r),i.redDot&&VC(i.badge)],4)}function SC(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 TC(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 CC(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 VC(e){const t="uni-tabbar__reddot"+(e?" uni-tabbar__badge":"");return Vue.createVNode("div",{class:t},[e],2)}function AC(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),jf(e,t,n,o,i,r)],12,["onClick"])}const nn="0px";let Yf;function Le(){return Yf}const Xf=ge({name:"Layout",setup(e,{emit:t}){const n=Vue.ref(null);kC();const o=__UNI_FEATURE_PAGES__&&yb(),{layoutState:i,windowState:r}=xC();NC(i,n);const a=__UNI_FEATURE_TOPWINDOW__&&BC(i),s=__UNI_FEATURE_LEFTWINDOW__&&DC(i),l=__UNI_FEATURE_RIGHTWINDOW__&&UC(i),c=__UNI_FEATURE_TABBAR__&&PC(),u=EC(c);return Yf=i,()=>{const d=MC(o,i,r,a,s,l),f=__UNI_FEATURE_TABBAR__&&OC(c);return Vue.createVNode("uni-app",{ref:n,class:u.value},[d,f],2)}}});function EC(e){const t=Vue.ref(!1);return Vue.computed(()=>({"uni-app--showtabbar":e&&e.value,"uni-app--maxwidth":t.value}))}function kC(){Ue({"--status-bar-height":nn,"--top-window-height":nn,"--window-left":nn,"--window-right":nn,"--window-margin":nn,"--tab-bar-height":nn})}function IC(e,t){const n=window.matchMedia("(min-width: "+e+"px)");return n.addEventListener?n.addEventListener("change",t):n.addListener(t),n.matches}function NC(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 xC(){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=Ag;if(f&&ae(f,"minWidth")){const m=f.minWidth;g=h0(m)?m:g}const _=IC(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 MC(e,t,n,o,i,r){const a=__UNI_FEATURE_PAGES__?LC(e):RC();if(!__UNI_FEATURE_RESPONSIVE__)return a;const s=__UNI_FEATURE_TOPWINDOW__?FC(o,t,n.value):null,l=__UNI_FEATURE_LEFTWINDOW__?$C(i,t,n.value):null,c=__UNI_FEATURE_RIGHTWINDOW__?zC(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 PC(e){const t=vn(),n=Vn(),o=Vue.computed(()=>t.meta.isTabBar&&n.shown);return Ue({"--tab-bar-height":n.height}),o}function OC(e){return Vue.withDirectives(Vue.createVNode(gC,null,null,512),[[Vue.vShow,e.value]])}function RC(){return Vue.createVNode(__uniRoutes[0].component)}function LC({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 BC(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 DC(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 UC(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 FC(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 $C(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 zC(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 Jf=R("showTopWindow",(e,{resolve:t,reject:n})=>{const o=Le();if(!o){n();return}o.apiShowTopWindow=!0,Vue.nextTick(t)}),Kf=R("hideTopWindow",(e,{resolve:t,reject:n})=>{const o=Le();if(!o){n();return}o.apiShowTopWindow=!1,Vue.nextTick(t)}),Qf=R("showLeftWindow",(e,{resolve:t,reject:n})=>{const o=Le();if(!o){n();return}o.apiShowLeftWindow=!0,Vue.nextTick(t)}),Zf=R("hideLeftWindow",(e,{resolve:t,reject:n})=>{const o=Le();if(!o){n();return}o.apiShowLeftWindow=!1,Vue.nextTick(t)}),eh=R("showRightWindow",(e,{resolve:t,reject:n})=>{const o=Le();if(!o){n();return}o.apiShowRightWindow=!0,Vue.nextTick(t)}),th=R("hideRightWindow",(e,{resolve:t,reject:n})=>{const o=Le();if(!o){n();return}o.apiShowRightWindow=!1,Vue.nextTick(t)}),nh=j("getTopWindowStyle",()=>{const e=Le();return L({},e&&e.topWindowStyle)}),oh=j("setTopWindowStyle",e=>{const t=Le();t&&(t.topWindowStyle=e)}),ih=j("getLeftWindowStyle",()=>{const e=Le();return L({},e&&e.leftWindowStyle)}),rh=j("setLeftWindowStyle",e=>{const t=Le();t&&(t.leftWindowStyle=e)}),ah=j("getRightWindowStyle",()=>{const e=Le();return L({},e&&e.rightWindowStyle)}),sh=j("setRightWindowStyle",e=>{const t=Le();t&&(t.rightWindowStyle=e)}),lh=j("getElementById",e=>{const t=document.querySelector("uni-page-body");return t?t.querySelector(`#${e}`):null}),ch=R(gc,be(gc)),uh="getRecorderManager",dh=j(uh,mo(uh)),fh=R(pc,be(pc)),hh="createCameraContext",gh=j(hh,mo(hh)),ph="createLivePlayerContext",mh=j(ph,mo(ph)),vh="saveFile",_h=R(vh,be(vh)),yh="getSavedFileList",bh=R(yh,be(yh)),wh="getSavedFileInfo",Sh=R(wh,be(wh)),Th="removeSavedFile",Ch=R(Th,be(Th)),Vh="onMemoryWarning",Ah=ke(Vh,$i(Vh)),Eh="onGyroscopeChange",kh=ke(Eh,$i(Eh)),Ih="startGyroscope",Nh=R(Ih,be(Ih)),xh="stopGyroscope",Mh=R(xh,be(xh)),Ph="scanCode",Oh=R(Ph,be(Ph)),Rh="setScreenBrightness",Lh=R(Rh,be(Rh)),Bh="getScreenBrightness",Dh=R(Bh,be(Bh)),Uh="setKeepScreenOn",Fh=R(Uh,be(Uh)),$h="onUserCaptureScreen",zh=ke($h,$i($h)),Hh="addPhoneContact",Wh=R(Hh,be(Hh)),qh="login",Gh=R(qh,be(qh)),jh="getProvider",Yh=R(jh,be(jh)),HC=Object.defineProperty({__proto__:null,$emit:ul,$off:cl,$on:sl,$once:ll,__f__:dl,addInterceptor:il,addPhoneContact:Wh,arrayBufferToBase64:Js,base64ToArrayBuffer:Xs,canIUse:Ac,canvasGetImageData:Sl,canvasPutImageData:Tl,canvasToTempFilePath:Cl,chooseFile:Rd,chooseImage:Ld,chooseLocation:rf,chooseVideo:Wd,clearStorage:Ed,clearStorageSync:ra,closePreviewImage:Hd,closeSocket:Qd,connectSocket:Xd,createAnimation:Ol,createCameraContext:gh,createCanvasContext:wl,createInnerAudioContext:od,createIntersectionObserver:kl,createLivePlayerContext:mh,createMapContext:hl,createMediaQueryObserver:Nl,createSelectorQuery:Ml,createVideoContext:fl,cssBackdropFilter:Mo,cssConstant:xo,cssEnv:No,cssVar:mr,downloadFile:jd,getAppBaseInfo:jr,getClipboardData:vd,getDeviceInfo:Gr,getElementById:lh,getEnterOptionsSync:tc,getFileInfo:Id,getImageInfo:Md,getLaunchOptionsSync:nc,getLeftWindowStyle:ih,getLocale:yo,getLocation:Rn,getNetworkType:Jr,getProvider:Yh,getPushClientId:ac,getRecorderManager:dh,getRightWindowStyle:ah,getSavedFileInfo:Sh,getSavedFileList:bh,getScreenBrightness:Dh,getSelectedTextRange:Wl,getStorage:Vd,getStorageInfo:kd,getStorageInfoSync:aa,getStorageSync:Cd,getSystemInfo:sd,getSystemInfoSync:Yr,getTabBarPageId:Ao,getTopWindowStyle:nh,getVideoInfo:Pd,getWindowInfo:Wr,hideActionSheet:Vf,hideKeyboard:xd,hideLeftWindow:Zf,hideLoading:Tf,hideModal:mf,hideNavigationBarLoading:If,hideRightWindow:th,hideTabBar:Lf,hideTabBarRedDot:Df,hideToast:Sf,hideTopWindow:Kf,interceptors:al,invokePushCallback:ic,loadFontFace:ma,login:Gh,makePhoneCall:id,navigateBack:ff,navigateTo:hf,offAccelerometerChange:fd,offAppHide:ec,offAppShow:Ql,offCompassChange:ea,offError:Jl,offLocationChange:cf,offLocationChangeError:df,offNetworkStatusChange:ud,offPageNotFound:Yl,offPushMessage:lc,offThemeChange:wd,offUnhandledRejection:Gl,offWindowResize:Dl,onAccelerometerChange:dd,onAppHide:Zl,onAppShow:Kl,onCompassChange:Zr,onCreateVueApp:ja,onError:Xl,onGyroscopeChange:kh,onLocaleChange:Fl,onLocationChange:lf,onLocationChangeError:uf,onMemoryWarning:Ah,onNetworkStatusChange:cd,onPageNotFound:jl,onPushMessage:sc,onSocketClose:nf,onSocketError:ef,onSocketMessage:tf,onSocketOpen:Zd,onTabBarMidButtonTap:Ll,onThemeChange:bd,onUnhandledRejection:ql,onUserCaptureScreen:zh,onWindowResize:Bl,openDocument:Nd,openLocation:of,pageScrollTo:xf,preloadPage:gf,previewImage:zd,reLaunch:Tc,redirectTo:Sc,removeAllPages:ko,removeInterceptor:rl,removeLastPage:Eo,removeNonTabBarPages:Vo,removeSavedFile:Ch,removeStorage:Ad,removeStorageSync:ia,removeTabBarBadge:Ff,request:ua,rpx2px:vo,saveFile:_h,saveImageToPhotosAlbum:ch,saveVideoToPhotosAlbum:fh,scanCode:Oh,sendSocketMessage:Kd,setClipboardData:_d,setKeepScreenOn:Fh,setLeftWindowStyle:rh,setLocale:$l,setNavigationBarColor:Ef,setNavigationBarTitle:Nf,setPageMeta:zl,setRightWindowStyle:sh,setScreenBrightness:Lh,setStorage:Sd,setStorageSync:oa,setTabBarBadge:$f,setTabBarItem:Of,setTabBarStyle:Rf,setTopWindowStyle:oh,showActionSheet:Af,showLeftWindow:Qf,showLoading:wf,showModal:vf,showNavigationBarLoading:kf,showRightWindow:eh,showTabBar:Bf,showTabBarRedDot:Uf,showToast:bf,showTopWindow:Jf,startAccelerometer:Kr,startCompass:ta,startGyroscope:Nh,startLocationUpdate:af,startPullDownRefresh:Mf,stopAccelerometer:Qr,stopCompass:na,stopGyroscope:Mh,stopLocationUpdate:sf,stopPullDownRefresh:Pf,switchTab:wc,uploadFile:Yd,upx2px:vo,vibrateLong:pd,vibrateShort:gd},Symbol.toStringTag,{value:"Module"}),Xh="MAP_LOCATION",WC=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:Xh,state:e};a(l),Vue.onUnmounted(()=>s(l))}return()=>e.latitude?Vue.createVNode(nd,Vue.mergeProps({anchor:{x:.5,y:.5},width:"44",height:"44",iconPath:Ku},e),null,16,["iconPath"]):null}}),qC=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}}),GC={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 jC(e,t,n){return new e.LngLat(n,t)}function YC(e,t,n){return new e.Point(n,t)}function XC(e,t,n){return new e.LatLng(t,n)}function ci(e,t,n){return ie()?YC(e,t,n):ue()?jC(e,t,n):XC(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 JC(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[Xh];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:GC,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}=JC(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(nd,Vue.mergeProps({key:a.id},a),null,16)),e.polyline.map(a=>Vue.createVNode(n1,a,null,16)),e.circles.map(a=>Vue.createVNode(o1,a,null,16)),e.controls.map(a=>Vue.createVNode(i1,Vue.mergeProps(a,{trigger:r}),null,16,["trigger"])),e.showLocation&&Vue.createVNode(WC,null,null),e.polygons.map(a=>Vue.createVNode(qC,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"])}}),KC=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"])}}),QC=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 Jh(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}function Kh(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 Qh(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"},ZC={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=>Kh(e)},end:{type:String,default:e=>Qh(e)},disabled:{type:[Boolean,String],default:!1},selectorType:{type:String,default:""}},eV=X({name:"Picker",compatConfig:{MODE:3},props:ZC,emits:["change","cancel","columnchange"],setup(e,{emit:t,slots:n}){Ep();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}=tV(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}=aV(e,c,d,i,r,a,s);sV(c,p,C),lV(T,w),A(),N(),E();const V=Cf(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},Jh(I=Vue.renderList(m(u.value),(q,$)=>{let ee;return Vue.createVNode(xu,{key:$},Jh(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 tV(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 nV=()=>String(navigator.vendor).indexOf("Apple")===0&&navigator.maxTouchPoints>0;function oV(){const e=Vue.ref(!1);return e.value=nV(),e}const iV=()=>{if(/win|mac/i.test(navigator.platform)){if(navigator.vendor==="Google Inc.")return"chrome";if(/Firefox/.test(navigator.userAgent))return"firefox"}return""};function rV(){const e=Vue.ref("");return e.value=iV(),e}let Zh;function aV(e,t,n,o,i,r,a){const s=oV(),l=rV(),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,Kh(e))),f=Vue.computed(()=>Hn(e,t,e.end,Qh(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(Zh),t.contentVisible=x,I()):Zh=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 sV(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 lV(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 cV=Pt("ad"),uV=Pt("ad-content-page"),dV=Pt("ad-draw"),fV=Pt("camera"),hV=Pt("live-player"),gV=Pt("live-pusher"),pV=L(Dp,{publishHandler(e,t,n){UniServiceJSBridge.subscribeHandler(e,t,n)}}),mV=HC,vV=L(Im,{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)}}),iT(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 eg={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=pf(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__?tg(r.left):[],c=__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__?tg(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 tg(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(eg.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(()=>Kp("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:eg[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 ng(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",og="aborting",hi="refreshing",ig="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(),_=ig,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,[og,hi,ig].indexOf(_)>=0?g=!1:g=!0}),T=oe(V=>{if(!t.enablePullDownRefresh||!g||!ng(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&&ng(V,d,f)&&_!==null&&(_===di?(h(),_=og,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=d0(Ui());const o=n.navigationBar,i={};return cC(n),Vue.getCurrentInstance(),()=>Vue.createVNode("uni-page",{"data-page":n.route,style:i},__UNI_FEATURE_NAVIGATIONBAR__&&o.style!=="custom"?[Vue.createVNode(bV),rg(t),null]:[rg(t),null])}});function rg(e){return Vue.openBlock(),Vue.createBlock(FV,{key:0},{default:Vue.withCtx(()=>[Vue.renderSlot(e.slots,"page")]),_:3})}function HV(e){e.use(Wu)}b.$emit=ul,b.$off=cl,b.$on=sl,b.$once=ll,b.Ad=cV,b.AdContentPage=uV,b.AdDraw=dV,b.AsyncErrorComponent=Ko,b.AsyncLoadingComponent=Jo,b.Button=c0,b.Camera=fV,b.Canvas=ew,b.Checkbox=rw,b.CheckboxGroup=ow,b.CoverImage=QC,b.CoverView=KC,b.Editor=kw,b.Form=i0,b.Icon=xw,b.Image=Ow,b.Input=Ho,b.Label=l0,b.LayoutComponent=Xf,b.LivePlayer=hV,b.LivePusher=gV,b.Map=ya,b.MovableArea=_u,b.MovableView=Tu,b.Navigator=gS,b.PageComponent=zV,b.Picker=eV,b.PickerView=ku,b.PickerViewColumn=xu,b.Progress=TS,b.Radio=ES,b.RadioGroup=VS,b.ResizeSensor=je,b.RichText=LS,b.ScrollView=Lu,b.Slider=FS,b.Swiper=Bu,b.SwiperItem=Du,b.Switch=XS,b.Text=ZS,b.Textarea=nT,b.UniServiceJSBridge=vV,b.UniViewJSBridge=pV,b.Video=qT,b.View=oT,b.WebView=YT,b.__f__=dl,b.addInterceptor=il,b.addPhoneContact=Wh,b.arrayBufferToBase64=Js,b.base64ToArrayBuffer=Xs,b.canIUse=Ac,b.canvasGetImageData=Sl,b.canvasPutImageData=Tl,b.canvasToTempFilePath=Cl,b.chooseFile=Rd,b.chooseImage=Ld,b.chooseLocation=rf,b.chooseVideo=Wd,b.clearStorage=Ed,b.clearStorageSync=ra,b.closePreviewImage=Hd,b.closeSocket=Qd,b.connectSocket=Xd,b.createAnimation=Ol,b.createCameraContext=gh,b.createCanvasContext=wl,b.createInnerAudioContext=od,b.createIntersectionObserver=kl,b.createLivePlayerContext=mh,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=jd,b.getApp=IT,b.getAppBaseInfo=jr,b.getClipboardData=vd,b.getCurrentPages=hb,b.getDeviceInfo=Gr,b.getElementById=lh,b.getEnterOptionsSync=tc,b.getFileInfo=Id,b.getImageInfo=Md,b.getLaunchOptionsSync=nc,b.getLeftWindowStyle=ih,b.getLocale=yo,b.getLocation=Rn,b.getNetworkType=Jr,b.getProvider=Yh,b.getPushClientId=ac,b.getRealPath=Q,b.getRecorderManager=dh,b.getRightWindowStyle=ah,b.getSavedFileInfo=Sh,b.getSavedFileList=bh,b.getScreenBrightness=Dh,b.getSelectedTextRange=Wl,b.getStorage=Vd,b.getStorageInfo=kd,b.getStorageInfoSync=aa,b.getStorageSync=Cd,b.getSystemInfo=sd,b.getSystemInfoSync=Yr,b.getTabBarPageId=Ao,b.getTopWindowStyle=nh,b.getVideoInfo=Pd,b.getWindowInfo=Wr,b.hideActionSheet=Vf,b.hideKeyboard=xd,b.hideLeftWindow=Zf,b.hideLoading=Tf,b.hideModal=mf,b.hideNavigationBarLoading=If,b.hideRightWindow=th,b.hideTabBar=Lf,b.hideTabBarRedDot=Df,b.hideToast=Sf,b.hideTopWindow=Kf,b.install=HV,b.interceptors=al,b.invokePushCallback=ic,b.loadFontFace=ma,b.login=Gh,b.makePhoneCall=id,b.navigateBack=ff,b.navigateTo=hf,b.offAccelerometerChange=fd,b.offAppHide=ec,b.offAppShow=Ql,b.offCompassChange=ea,b.offError=Jl,b.offLocationChange=cf,b.offLocationChangeError=df,b.offNetworkStatusChange=ud,b.offPageNotFound=Yl,b.offPushMessage=lc,b.offThemeChange=wd,b.offUnhandledRejection=Gl,b.offWindowResize=Dl,b.onAccelerometerChange=dd,b.onAppHide=Zl,b.onAppShow=Kl,b.onCompassChange=Zr,b.onCreateVueApp=ja,b.onError=Xl,b.onGyroscopeChange=kh,b.onLocaleChange=Fl,b.onLocationChange=lf,b.onLocationChangeError=uf,b.onMemoryWarning=Ah,b.onNetworkStatusChange=cd,b.onPageNotFound=jl,b.onPushMessage=sc,b.onSocketClose=nf,b.onSocketError=ef,b.onSocketMessage=tf,b.onSocketOpen=Zd,b.onTabBarMidButtonTap=Ll,b.onThemeChange=bd,b.onUnhandledRejection=ql,b.onUserCaptureScreen=zh,b.onWindowResize=Bl,b.openDocument=Nd,b.openLocation=of,b.pageScrollTo=xf,b.plugin=Wu,b.preloadPage=gf,b.previewImage=zd,b.reLaunch=Tc,b.redirectTo=Sc,b.removeAllPages=ko,b.removeInterceptor=rl,b.removeLastPage=Eo,b.removeNonTabBarPages=Vo,b.removeSavedFile=Ch,b.removeStorage=Ad,b.removeStorageSync=ia,b.removeTabBarBadge=Ff,b.request=ua,b.rpx2px=vo,b.saveFile=_h,b.saveImageToPhotosAlbum=ch,b.saveVideoToPhotosAlbum=fh,b.scanCode=Oh,b.sendSocketMessage=Kd,b.setClipboardData=_d,b.setKeepScreenOn=Fh,b.setLeftWindowStyle=rh,b.setLocale=$l,b.setNavigationBarColor=Ef,b.setNavigationBarTitle=Nf,b.setPageMeta=zl,b.setRightWindowStyle=sh,b.setScreenBrightness=Lh,b.setStorage=Sd,b.setStorageSync=oa,b.setTabBarBadge=$f,b.setTabBarItem=Of,b.setTabBarStyle=Rf,b.setTopWindowStyle=oh,b.setupApp=PT,b.setupPage=MT,b.setupWindow=xT,b.showActionSheet=Af,b.showLeftWindow=Qf,b.showLoading=wf,b.showModal=vf,b.showNavigationBarLoading=kf,b.showRightWindow=eh,b.showTabBar=Bf,b.showTabBarRedDot=Uf,b.showToast=bf,b.showTopWindow=Jf,b.startAccelerometer=Kr,b.startCompass=ta,b.startGyroscope=Nh,b.startLocationUpdate=af,b.startPullDownRefresh=Mf,b.stopAccelerometer=Qr,b.stopCompass=na,b.stopGyroscope=Mh,b.stopLocationUpdate=sf,b.stopPullDownRefresh=Pf,b.switchTab=wc,b.uni=mV,b.uploadFile=Yd,b.upx2px=vo,b.useI18n=U,b.useTabBar=Vn,b.vibrateLong=pd,b.vibrateShort=gd,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})}));
|
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"})}));
|