| | |
| | | * (c) 2018-present Yuxi (Evan) You and Vue contributors |
| | | * @license MIT |
| | | **/ |
| | | function e(e,t){const n=new Set(e.split(","));return e=>n.has(e)}const t={},n=[],o=()=>{},r=()=>!1,i=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),s=e=>e.startsWith("onUpdate:"),c=Object.assign,a=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},u=Object.prototype.hasOwnProperty,l=(e,t)=>u.call(e,t),p=Array.isArray,f=e=>"[object Map]"===x(e),d=e=>"[object Set]"===x(e),h=e=>"function"==typeof e,g=e=>"string"==typeof e,m=e=>"symbol"==typeof e,v=e=>null!==e&&"object"==typeof e,y=e=>(v(e)||h(e))&&h(e.then)&&h(e.catch),_=Object.prototype.toString,x=e=>_.call(e),b=e=>"[object Object]"===x(e),w=e=>g(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,$=e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),S=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},P=/-(\w)/g,k=S(e=>e.replace(P,(e,t)=>t?t.toUpperCase():"")),O=/\B([A-Z])/g,C=S(e=>e.replace(O,"-$1").toLowerCase()),E=S(e=>e.charAt(0).toUpperCase()+e.slice(1)),I=S(e=>e?`on${E(e)}`:""),A=(e,t)=>!Object.is(e,t),T=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},N=e=>{const t=parseFloat(e);return isNaN(t)?e:t};function L(e){if(p(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=g(o)?D(o):L(o);if(r)for(const e in r)t[e]=r[e]}return t}if(g(e)||v(e))return e}const j=/;(?![^(]*\))/g,R=/:([^]+)/,M=/\/\*[^]*?\*\//g;function D(e){const t={};return e.replace(M,"").split(j).forEach(e=>{if(e){const n=e.split(R);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function V(e){let t="";if(g(e))t=e;else if(p(e))for(let n=0;n<e.length;n++){const o=V(e[n]);o&&(t+=o+" ")}else if(v(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const U=(e,t)=>t&&t.__v_isRef?U(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],o)=>(e[H(t,o)+" =>"]=n,e),{})}:d(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>H(e))}:m(t)?H(t):!v(t)||p(t)||b(t)?t:String(t),H=(e,t="")=>{var n;return m(e)?`Symbol(${null!=(n=e.description)?n:t})`:e},B="onShow",W="onHide",z="onLaunch",F="onError",G="onThemeChange",q="onPageNotFound",K="onUnhandledRejection",J="onLoad",X="onReady",Z="onUnload",Q="onInit",Y="onSaveExitState",ee="onUploadDouyinVideo",te="onLiveMount",ne="onTitleClick",oe="onResize",re="onBackPress",ie="onPageScroll",se="onTabItemTap",ce="onReachBottom",ae="onPullDownRefresh",ue="onShareTimeline",le="onShareChat",pe="onCopyUrl",fe="onAddToFavorites",de="onShareAppMessage",he="onNavigationBarButtonTap",ge="onNavigationBarSearchInputClicked",me="onNavigationBarSearchInputChanged",ve="onNavigationBarSearchInputConfirmed",ye="onNavigationBarSearchInputFocusChanged",_e="virtualHostId",xe=/:/g;function be(e,t=null){let n;return(...o)=>(e&&(n=e.apply(t,o),e=null),n)}function we(e,t){if(!g(t))return;const n=(t=t.replace(/\[(\d+)\]/g,".$1")).split(".");let o=n[0];return e||(e={}),1===n.length?e[o]:we(e[o],n.slice(1).join("."))}const $e=encodeURIComponent;function Se(e,t=$e){const n=e?Object.keys(e).map(n=>{let o=e[n];return void 0===typeof o||null===o?o="":b(o)&&(o=JSON.stringify(o)),t(n)+"="+t(o)}).filter(e=>e.length>0).join("&"):null;return n?`?${n}`:""}const Pe=[Q,J,B,W,Z,oe,re,ie,se,ce,ae,ue,de,le,pe,ee,te,ne,fe,Y,he,ge,me,ve,ye];const ke=[B,W,z,F,G,q,K,"onExit",Q,J,X,Z,oe,re,ie,se,ce,ae,ue,fe,de,le,pe,ee,te,ne,Y,he,ge,me,ve,ye,"onLastPageBackPress"],Oe=(()=>({onPageScroll:1,onShareAppMessage:2,onShareTimeline:4,onShareChat:8,onCopyUrl:16,onUploadDouyinVideo:32,onLiveMount:64,onTitleClick:128}))();function Ce(e,t,n=!0){return!(n&&!h(t))&&(ke.indexOf(e)>-1||0===e.indexOf("on"))}let Ee;const Ie=[];const Ae=be((e,t)=>t(e)),Te=function(){};Te.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 r(){o.off(e,r),t.apply(n,arguments)}return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),o=0,r=n.length;o<r;o++)n[o].fn.apply(n[o].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),o=n[e],r=[];if(o&&t){for(var i=o.length-1;i>=0;i--)if(o[i].fn===t||o[i].fn._===t||o[i]._id===t){o.splice(i,1);break}r=o}return r.length?n[e]=r:delete n[e],this}};var Ne=Te;const Le="zh-Hans",je="zh-Hant",Re="en";function Me(e,t){if(!e)return;if("chinese"===(e=(e=e.trim().replace(/_/g,"-")).toLowerCase()))return Le;if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?Le:e.indexOf("-hant")>-1?je:(n=e,["-tw","-hk","-mo","-cht"].find(e=>-1!==n.indexOf(e))?je:Le);var n;const o=function(e,t){return t.find(t=>0===e.indexOf(t))}(e,[Re,"fr","es"]);return o||void 0}function De(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}let Ve=1;const Ue={};function He(e,t,n){if("number"==typeof e){const o=Ue[e];if(o)return o.keepAlive||delete Ue[e],o.callback(t,n)}return t}const Be="success",We="fail",ze="complete";function Fe(e,t={},{beforeAll:n,beforeSuccess:o}={}){b(t)||(t={});const{success:r,fail:i,complete:s}=function(e){const t={};for(const n in e){const o=e[n];h(o)&&(t[n]=De(o),delete e[n])}return t}(t),c=h(r),a=h(i),u=h(s),l=Ve++;return function(e,t,n,o=!1){Ue[e]={name:t,keepAlive:o,callback:n}}(l,e,l=>{(l=l||{}).errMsg=function(e,t){return e&&-1!==e.indexOf(":fail")?t+e.substring(e.indexOf(":fail")):t+":ok"}(l.errMsg,e),h(n)&&n(l),l.errMsg===e+":ok"?(h(o)&&o(l,t),c&&r(l)):a&&i(l),u&&s(l)}),l}const Ge="success",qe="fail",Ke="complete",Je={},Xe={};function Ze(e,t){return function(n){return e(n,t)||n}}function Qe(e,t,n){let o=!1;for(let r=0;r<e.length;r++){const i=e[r];if(o)o=Promise.resolve(Ze(i,n));else{const e=i(t,n);if(y(e)&&(o=Promise.resolve(e)),!1===e)return{then(){},catch(){}}}}return o||{then:e=>e(t),catch(){}}}function Ye(e,t={}){return[Ge,qe,Ke].forEach(n=>{const o=e[n];if(!p(o))return;const r=t[n];t[n]=function(e){Qe(o,e,t).then(e=>h(r)&&r(e)||e)}}),t}function et(e,t){const n=[];p(Je.returnValue)&&n.push(...Je.returnValue);const o=Xe[e];return o&&p(o.returnValue)&&n.push(...o.returnValue),n.forEach(e=>{t=e(t)||t}),t}function tt(e){const t=Object.create(null);Object.keys(Je).forEach(e=>{"returnValue"!==e&&(t[e]=Je[e].slice())});const n=Xe[e];return n&&Object.keys(n).forEach(e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))}),t}function nt(e,t,n,o){const r=tt(e);if(r&&Object.keys(r).length){if(p(r.invoke)){return Qe(r.invoke,n).then(n=>t(Ye(tt(e),n),...o))}return t(Ye(r,n),...o)}return t(n,...o)}function ot(e,t){return(n={},...o)=>function(e){return!(!b(e)||![Be,We,ze].find(t=>h(e[t])))}(n)?et(e,nt(e,t,c({},n),o)):et(e,new Promise((r,i)=>{nt(e,t,c({},n,{success:r,fail:i}),o)}))}function rt(e,t,n,o={}){const r=t+":fail";let i="";return i=n?0===n.indexOf(r)?n:r+" "+n:r,delete o.errCode,He(e,c({errMsg:i},o))}function it(e,t,n,o){const r=function(e){e[0]}(t);if(r)return r}function st(e,t,n,o){return n=>{const r=Fe(e,n,o),i=it(0,[n]);return i?rt(r,e,i):t(n,{resolve:t=>function(e,t,n){return He(e,c(n||{},{errMsg:t+":ok"}))}(r,e,t),reject:(t,n)=>rt(r,e,function(e){return!e||g(e)?e:e.stack?("undefined"!=typeof globalThis&&globalThis.harmonyChannel||console.error(e.message+"\n"+e.stack),e.message):e}(t),n)})}}function ct(e,t,n,o){return function(e,t){return(...e)=>{const n=it(0,e);if(n)throw new Error(n);return t.apply(null,e)}}(0,t)}let at=!1,ut=0,lt=0;const pt=ct(0,(e,t)=>{if(0===ut&&function(){var e,t;let n,o,r;{const i=(null===(e=wx.getWindowInfo)||void 0===e?void 0:e.call(wx))||wx.getSystemInfoSync(),s=(null===(t=wx.getDeviceInfo)||void 0===t?void 0:t.call(wx))||wx.getSystemInfoSync();n=i.windowWidth,o=i.pixelRatio,r=s.platform}ut=n,lt=o,at="ios"===r}(),0===(e=Number(e)))return 0;let n=e/750*(t||ut);return n<0&&(n=-n),n=Math.floor(n+1e-4),0===n&&(n=1!==lt&&at?.5:1),e<0?-n:n});function ft(e,t){Object.keys(t).forEach(n=>{h(t[n])&&(e[n]=function(e,t){const n=t?e?e.concat(t):p(t)?t:[t]:e;return n?function(e){const t=[];for(let n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}(e[n],t[n]))})}function dt(e,t){e&&t&&Object.keys(t).forEach(n=>{const o=e[n],r=t[n];p(o)&&h(r)&&a(o,r)})}const ht=ct(0,(e,t)=>{g(e)&&b(t)?ft(Xe[e]||(Xe[e]={}),t):b(e)&&ft(Je,e)}),gt=ct(0,(e,t)=>{g(e)?b(t)?dt(Xe[e],t):delete Xe[e]:b(e)&&dt(Je,e)});const mt=new class{constructor(){this.$emitter=new Ne}on(e,t){return this.$emitter.on(e,t)}once(e,t){return this.$emitter.once(e,t)}off(e,t){e?this.$emitter.off(e,t):this.$emitter.e={}}emit(e,...t){this.$emitter.emit(e,...t)}},vt=ct(0,(e,t)=>(mt.on(e,t),()=>mt.off(e,t))),yt=ct(0,(e,t)=>(mt.once(e,t),()=>mt.off(e,t))),_t=ct(0,(e,t)=>{p(e)||(e=e?[e]:[]),e.forEach(e=>{mt.off(e,t)})}),xt=ct(0,(e,...t)=>{mt.emit(e,...t)});let bt,wt,$t;function St(e){try{return JSON.parse(e)}catch(t){}return e}const Pt=[];function kt(e,t){Pt.forEach(n=>{n(e,t)}),Pt.length=0}const Ot=ot(Ct="getPushClientId",function(e,t,n,o){return st(e,t,0,o)}(Ct,(e,{resolve:t,reject:n})=>{Promise.resolve().then(()=>{void 0===$t&&($t=!1,bt="",wt="uniPush is not enabled"),Pt.push((e,o)=>{e?t({cid:e}):n(o)}),void 0!==bt&&kt(bt,wt)})},0,Et));var Ct,Et;const It=[],At=/^\$|__f__|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|rpx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo|getSystemSetting|getAppAuthorizeSetting/,Tt=/^create|Manager$/,Nt=["createBLEConnection"],Lt=["request","downloadFile","uploadFile","connectSocket"],jt=["createBLEConnection"],Rt=/^on|^off/;function Mt(e){return Tt.test(e)&&-1===Nt.indexOf(e)}function Dt(e){return At.test(e)&&-1===jt.indexOf(e)}function Vt(e){return-1!==Lt.indexOf(e)}function Ut(e){return!(Mt(e)||Dt(e)||function(e){return Rt.test(e)&&"onPush"!==e}(e))}function Ht(e,t){return Ut(e)&&h(t)?function(n={},...o){return h(n.success)||h(n.fail)||h(n.complete)?et(e,nt(e,t,c({},n),o)):et(e,new Promise((r,i)=>{nt(e,t,c({},n,{success:r,fail:i}),o)}))}:t}Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then(n=>t.resolve(e&&e()).then(()=>n),n=>t.resolve(e&&e()).then(()=>{throw n}))});const Bt=["success","fail","cancel","complete"];const Wt=()=>{const e=h(getApp)&&getApp({allowDefault:!0});return e&&e.$vm?e.$vm.$locale:function(){var e;let t="";{const n=(null===(e=wx.getAppBaseInfo)||void 0===e?void 0:e.call(wx))||wx.getSystemInfoSync();t=Me(n&&n.language?n.language:Re)||Re}return t}()},zt=[];"undefined"!=typeof global&&(global.getLocale=Wt);const Ft="__DC_STAT_UUID";let Gt;function qt(e=wx){return function(t,n){Gt=Gt||e.getStorageSync(Ft),Gt||(Gt=Date.now()+""+Math.floor(1e7*Math.random()),wx.setStorage({key:Ft,data:Gt})),n.deviceId=Gt}}function Kt(e,t){if(e.safeArea){const n=e.safeArea;t.safeAreaInsets={top:n.top,left:n.left,right:e.windowWidth-n.right,bottom:e.screenHeight-n.bottom}}}function Jt(e,t){let n="",o="";switch(n=t,o=e.split(" ")[1]||"",n=n.toLowerCase(),n){case"harmony":case"ohos":case"openharmonyos":case"openharmony":n="harmonyos";break;case"iphone os":n="ios";break;case"mac":case"darwin":n="macos";break;case"windows_nt":n="windows"}return{osName:n,osVersion:o,system:e}}function Xt(e){return"ohos"===(e=e.toLowerCase())&&(e="harmonyos"),e}function Zt(e,t){const n=e.platform||"";let o=e.deviceType||"phone";{const e={ipad:"pad",windows:"pc",mac:"pc",linux:"pc",pc:"pc"},n=Object.keys(e),r=t.toLowerCase();for(let t=0;t<n.length;t++){const i=n[t];if(-1!==r.indexOf(i)){o=e[i];break}}}return"ohos_pc"===n&&(o="pc"),o}function Qt(e){let t=e;return t&&(t=t.toLowerCase()),t}function Yt(e){return Wt?Wt():e}function en(e){let t=e.hostName||"WeChat";return e.environment?t=e.environment:e.host&&e.host.env&&(t=e.host.env),t}const tn={returnValue:(e,t)=>{Kt(e,t),qt()(e,t),function(e,t){const{brand:n="",model:o="",system:r="",language:i="",theme:s,version:a,platform:u,fontSizeSetting:l,SDKVersion:p,pixelRatio:f,deviceOrientation:d}=e,{osName:h,osVersion:g,system:m}=Jt(r,u);let v=a,y=Zt(e,o),_=Qt(n),x=en(e),b=d,w=f,$=p;const S=(i||"").replace(/_/g,"-"),P={appId:"__UNI__F7E10FB",appName:"com.mingdao.guide",appVersion:"1.0.0",appVersionCode:"100",appLanguage:Yt(S),uniCompileVersion:"5.12",uniCompilerVersion:"5.12",uniRuntimeVersion:"5.12",uniPlatform:"mp-weixin",deviceBrand:_,deviceModel:o,deviceType:y,devicePixelRatio:w,deviceOrientation:b,osName:h,osVersion:g,hostTheme:s,hostVersion:v,hostLanguage:S,hostName:x,hostSDKVersion:$,hostFontSizeSetting:l,windowTop:0,windowBottom:0,platform:Xt(u),system:m,osLanguage:void 0,osTheme:void 0,ua:void 0,hostPackageName:void 0,browserName:void 0,browserVersion:void 0,isUniAppX:!1};c(t,P)}(e,t)}},nn=tn,on={args(e,t){let n=parseInt(e.current);if(isNaN(n))return;const o=e.urls;if(!p(o))return;const r=o.length;return r?(n<0?n=0:n>=r&&(n=r-1),n>0?(t.current=o[n],t.urls=o.filter((e,t)=>!(t<n)||e!==o[n])):t.current=o[0],{indicator:!1,loop:!1}):void 0}},rn={args(e,t){t.alertText=e.title}},sn={returnValue:(e,t)=>{const{brand:n,model:o,system:r="",platform:i=""}=e;let s=Zt(e,o),a=Qt(n);qt()(e,t);const{osName:u,osVersion:l}=Jt(r,i);t=c(t,{deviceType:s,deviceBrand:a,deviceModel:o,osName:u,osVersion:l,platform:Xt(i)})}},cn={returnValue:(e,t)=>{const{version:n,language:o,SDKVersion:r,theme:i}=e;let s=en(e),a=(o||"").replace(/_/g,"-");const u={appId:"__UNI__F7E10FB",appName:"com.mingdao.guide",appVersion:"1.0.0",appVersionCode:"100",appLanguage:Yt(a),hostVersion:n,hostLanguage:a,hostName:s,hostSDKVersion:r,hostTheme:i,isUniAppX:!1,uniPlatform:"mp-weixin",uniCompileVersion:"5.12",uniCompilerVersion:"5.12",uniRuntimeVersion:"5.12"};c(t,u)}},an={returnValue:(e,t)=>{Kt(e,t),t=c(t,{windowTop:0,windowBottom:0})}},un={args(e){const t=getApp({allowDefault:!0})||{};t.$vm?zr(F,e,t.$vm.$):(wx.$onErrorHandlers||(wx.$onErrorHandlers=[]),wx.$onErrorHandlers.push(e))}},ln={args(e){const t=getApp({allowDefault:!0})||{};if(t.$vm){if(e.__weh){const n=t.$vm.$[F];if(n){const t=n.indexOf(e.__weh);t>-1&&n.splice(t,1)}}}else{if(!wx.$onErrorHandlers)return;const t=wx.$onErrorHandlers.findIndex(t=>t===e);-1!==t&&wx.$onErrorHandlers.splice(t,1)}}},pn={args(){if(wx.__uni_console__){if(wx.__uni_console_warned__)return;wx.__uni_console_warned__=!0,console.warn("开发模式下小程序日志回显会使用 socket 连接,为了避免冲突,建议使用 SocketTask 的方式去管理 WebSocket 或手动关闭日志回显功能。[详情](https://uniapp.dcloud.net.cn/tutorial/run/mp-log.html)")}}},fn=pn,dn={$on:vt,$off:_t,$once:yt,$emit:xt,upx2px:pt,rpx2px:pt,interceptors:{},addInterceptor:ht,removeInterceptor:gt,onCreateVueApp:function(e){if(Ee)return e(Ee);Ie.push(e)},invokeCreateVueAppHook:function(e){Ee=e,Ie.forEach(t=>t(e))},getLocale:Wt,setLocale:e=>{const t=h(getApp)&&getApp();if(!t)return!1;return t.$vm.$locale!==e&&(t.$vm.$locale=e,zt.forEach(t=>t({locale:e})),!0)},onLocaleChange:e=>{-1===zt.indexOf(e)&&zt.push(e)},getPushClientId:Ot,onPushMessage:e=>{-1===It.indexOf(e)&&It.push(e)},offPushMessage:e=>{if(e){const t=It.indexOf(e);t>-1&&It.splice(t,1)}else It.length=0},invokePushCallback:function(e){if("enabled"===e.type)$t=!0;else if("clientId"===e.type)bt=e.cid,wt=e.errMsg,kt(bt,e.errMsg);else if("pushMsg"===e.type){const t={type:"receive",data:St(e.message)};for(let e=0;e<It.length;e++){if((0,It[e])(t),t.stopped)break}}else"click"===e.type&&It.forEach(t=>{t({type:"click",data:St(e.message)})})},__f__:function(e,t,...n){t&&n.push(t),console[e].apply(console,n)}};const hn=["qy","env","error","version","lanDebug","cloud","serviceMarket","router","worklet","__webpack_require_UNI_MP_PLUGIN__"],gn=["lanDebug","router","worklet"],mn=wx.getLaunchOptionsSync?wx.getLaunchOptionsSync():null;function vn(e){return(!mn||1154!==mn.scene||!gn.includes(e))&&(hn.indexOf(e)>-1||"function"==typeof wx[e])}function yn(){const e={};for(const t in wx)vn(t)&&(e[t]=wx[t]);return"undefined"!=typeof globalThis&&"undefined"==typeof requireMiniProgram&&(globalThis.wx=e),e}const _n=["__route__","__wxExparserNodeId__","__wxWebviewId__"],xn=(bn={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]},function({service:e,success:t,fail:n,complete:o}){let r;bn[e]?(r={errMsg:"getProvider:ok",service:e,provider:bn[e]},h(t)&&t(r)):(r={errMsg:"getProvider:fail:服务["+e+"]不存在"},h(n)&&n(r)),h(o)&&o(r)});var bn;const wn=yn();wn.getAppBaseInfo&&wn.getAppBaseInfo()||(wn.getAppBaseInfo=wn.getSystemInfoSync),wn.getWindowInfo&&wn.getWindowInfo()||(wn.getWindowInfo=wn.getSystemInfoSync),wn.getDeviceInfo&&wn.getDeviceInfo()||(wn.getDeviceInfo=wn.getSystemInfoSync);let $n=wn.getAppBaseInfo&&wn.getAppBaseInfo();$n||($n=wn.getSystemInfoSync());const Sn=$n?$n.host:null,Pn=Sn&&"SAAASDK"===Sn.env?wn.miniapp.shareVideoMessage:wn.shareVideoMessage;var kn=Object.freeze({__proto__:null,createSelectorQuery:function(){const e=wn.createSelectorQuery(),t=e.in;return e.in=function(e){return e.$scope?t.call(this,e.$scope):t.call(this,function(e){const t=Object.create(null);return _n.forEach(n=>{t[n]=e[n]}),t}(e))},e},getProvider:xn,shareVideoMessage:Pn});const On={args(e,t){e.compressedHeight&&!t.compressHeight&&(t.compressHeight=e.compressedHeight),e.compressedWidth&&!t.compressWidth&&(t.compressWidth=e.compressedWidth)}};var Cn=function(e,t,n=wx){const o=function(e){function t(e,t,n){return function(r){return t(o(e,r,n))}}function n(e,n,o={},r={},i=!1){if(b(n)){const s=!0===i?n:{};h(o)&&(o=o(n,s)||{});for(const c in n)if(l(o,c)){let t=o[c];h(t)&&(t=t(n[c],n,s)),t?g(t)?s[t]=n[c]:b(t)&&(s[t.name?t.name:c]=t.value):console.warn(`微信小程序 ${e} 暂不支持 ${c}`)}else if(-1!==Bt.indexOf(c)){const o=n[c];h(o)&&(s[c]=t(e,o,r))}else i||l(s,c)||(s[c]=n[c]);return s}return h(n)&&(h(o)&&o(n,{}),n=t(e,n,r)),n}function o(t,o,r,i=!1){return h(e.returnValue)&&(o=e.returnValue(t,o)),n(t,o,r,{},i||!1)}return function(t,r){const i=l(e,t);if(!i&&"function"!=typeof wx[t])return r;const s=i||h(e.returnValue)||Mt(t)||Vt(t),c=i||h(r);if(!i&&!r)return function(){console.error(`微信小程序 暂不支持${t}`)};if(!s||!c)return r;const a=e[t];return function(e,r){let i=a||{};h(a)&&(i=a(e));const s=[e=n(t,e,i.args,i.returnValue)];void 0!==r&&s.push(r);const c=wx[i.name||t].apply(wx,s);return(Mt(t)||Vt(t))&&c&&!c.__v_skip&&(c.__v_skip=!0),Dt(t)?o(t,c,i.returnValue,Mt(t)):c}}}(t);return new Proxy({},{get:(t,r)=>l(t,r)?t[r]:l(e,r)?Ht(r,e[r]):l(dn,r)?Ht(r,dn[r]):Ht(r,o(r,n[r]))})}(kn,Object.freeze({__proto__:null,compressImage:On,getAppAuthorizeSetting:{returnValue:function(e,t){const{locationReducedAccuracy:n}=e;t.locationAccuracy="unsupported",!0===n?t.locationAccuracy="reduced":!1===n&&(t.locationAccuracy="full")}},getAppBaseInfo:cn,getDeviceInfo:sn,getSystemInfo:tn,getSystemInfoSync:nn,getWindowInfo:an,offError:ln,onError:un,onSocketMessage:fn,onSocketOpen:pn,previewImage:on,redirectTo:{},showActionSheet:rn}),yn());let En,In;class An{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=En,!e&&En&&(this.index=(En.scopes||(En.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=En;try{return En=this,e()}finally{En=t}}}on(){En=this}off(){En=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}class Tn{constructor(e,t,n,o){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,function(e,t=En){t&&t.active&&t.effects.push(e)}(this,o)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,Un();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(Nn(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),Hn()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Mn,t=In;try{return Mn=!0,In=this,this._runnings++,Ln(this),this.fn()}finally{jn(this),this._runnings--,In=t,Mn=e}}stop(){var e;this.active&&(Ln(this),jn(this),null==(e=this.onStop)||e.call(this),this.active=!1)}}function Nn(e){return e.value}function Ln(e){e._trackId++,e._depsLength=0}function jn(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Rn(e.deps[t],e);e.deps.length=e._depsLength}}function Rn(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}let Mn=!0,Dn=0;const Vn=[];function Un(){Vn.push(Mn),Mn=!1}function Hn(){const e=Vn.pop();Mn=void 0===e||e}function Bn(){Dn++}function Wn(){for(Dn--;!Dn&&Fn.length;)Fn.shift()()}function zn(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&Rn(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Fn=[];function Gn(e,t,n){Bn();for(const o of e.keys()){let n;o._dirtyLevel<t&&(null!=n?n:n=e.get(o)===o._trackId)&&(o._shouldSchedule||(o._shouldSchedule=0===o._dirtyLevel),o._dirtyLevel=t),o._shouldSchedule&&(null!=n?n:n=e.get(o)===o._trackId)&&(o.trigger(),o._runnings&&!o.allowRecurse||2===o._dirtyLevel||(o._shouldSchedule=!1,o.scheduler&&Fn.push(o.scheduler)))}Wn()}const qn=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Kn=new WeakMap,Jn=Symbol(""),Xn=Symbol("");function Zn(e,t,n){if(Mn&&In){let t=Kn.get(e);t||Kn.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=qn(()=>t.delete(n))),zn(In,o)}}function Qn(e,t,n,o,r,i){const s=Kn.get(e);if(!s)return;let c=[];if("clear"===t)c=[...s.values()];else if("length"===n&&p(e)){const e=Number(o);s.forEach((t,n)=>{("length"===n||!m(n)&&n>=e)&&c.push(t)})}else switch(void 0!==n&&c.push(s.get(n)),t){case"add":p(e)?w(n)&&c.push(s.get("length")):(c.push(s.get(Jn)),f(e)&&c.push(s.get(Xn)));break;case"delete":p(e)||(c.push(s.get(Jn)),f(e)&&c.push(s.get(Xn)));break;case"set":f(e)&&c.push(s.get(Jn))}Bn();for(const a of c)a&&Gn(a,4);Wn()}const Yn=e("__proto__,__v_isRef,__isVue"),eo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(m)),to=no();function no(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=Wo(this);for(let t=0,r=this.length;t<r;t++)Zn(n,0,t+"");const o=n[t](...e);return-1===o||!1===o?n[t](...e.map(Wo)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){Un(),Bn();const n=Wo(this)[t].apply(this,e);return Wn(),Hn(),n}}),e}function oo(e){const t=Wo(this);return Zn(t,0,e),t.hasOwnProperty(e)}class ro{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const o=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(o?r?jo:Lo:r?No:To).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=p(e);if(!o){if(i&&l(to,t))return Reflect.get(to,t,n);if("hasOwnProperty"===t)return oo}const s=Reflect.get(e,t,n);return(m(t)?eo.has(t):Yn(t))?s:(o||Zn(e,0,t),r?s:Xo(s)?i&&w(t)?s:s.value:v(s)?o?Do(s):Mo(s):s)}}class io extends ro{constructor(e=!1){super(!1,e)}set(e,t,n,o){let r=e[t];if(!this._isShallow){const t=Ho(r);if(Bo(n)||Ho(n)||(r=Wo(r),n=Wo(n)),!p(e)&&Xo(r)&&!Xo(n))return!t&&(r.value=n,!0)}const i=p(e)&&w(t)?Number(t)<e.length:l(e,t),s=Reflect.set(e,t,n,o);return e===Wo(o)&&(i?A(n,r)&&Qn(e,"set",t,n):Qn(e,"add",t,n)),s}deleteProperty(e,t){const n=l(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&Qn(e,"delete",t,void 0),o}has(e,t){const n=Reflect.has(e,t);return m(t)&&eo.has(t)||Zn(e,0,t),n}ownKeys(e){return Zn(e,0,p(e)?"length":Jn),Reflect.ownKeys(e)}}class so extends ro{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const co=new io,ao=new so,uo=new io(!0),lo=e=>e,po=e=>Reflect.getPrototypeOf(e);function fo(e,t,n=!1,o=!1){const r=Wo(e=e.__v_raw),i=Wo(t);n||(A(t,i)&&Zn(r,0,t),Zn(r,0,i));const{has:s}=po(r),c=o?lo:n?Go:Fo;return s.call(r,t)?c(e.get(t)):s.call(r,i)?c(e.get(i)):void(e!==r&&e.get(t))}function ho(e,t=!1){const n=this.__v_raw,o=Wo(n),r=Wo(e);return t||(A(e,r)&&Zn(o,0,e),Zn(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function go(e,t=!1){return e=e.__v_raw,!t&&Zn(Wo(e),0,Jn),Reflect.get(e,"size",e)}function mo(e){e=Wo(e);const t=Wo(this);return po(t).has.call(t,e)||(t.add(e),Qn(t,"add",e,e)),this}function vo(e,t){t=Wo(t);const n=Wo(this),{has:o,get:r}=po(n);let i=o.call(n,e);i||(e=Wo(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?A(t,s)&&Qn(n,"set",e,t):Qn(n,"add",e,t),this}function yo(e){const t=Wo(this),{has:n,get:o}=po(t);let r=n.call(t,e);r||(e=Wo(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&Qn(t,"delete",e,void 0),i}function _o(){const e=Wo(this),t=0!==e.size,n=e.clear();return t&&Qn(e,"clear",void 0,void 0),n}function xo(e,t){return function(n,o){const r=this,i=r.__v_raw,s=Wo(i),c=t?lo:e?Go:Fo;return!e&&Zn(s,0,Jn),i.forEach((e,t)=>n.call(o,c(e),c(t),r))}}function bo(e,t,n){return function(...o){const r=this.__v_raw,i=Wo(r),s=f(i),c="entries"===e||e===Symbol.iterator&&s,a="keys"===e&&s,u=r[e](...o),l=n?lo:t?Go:Fo;return!t&&Zn(i,0,a?Xn:Jn),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[l(e[0]),l(e[1])]:l(e),done:t}},[Symbol.iterator](){return this}}}}function wo(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function $o(){const e={get(e){return fo(this,e)},get size(){return go(this)},has:ho,add:mo,set:vo,delete:yo,clear:_o,forEach:xo(!1,!1)},t={get(e){return fo(this,e,!1,!0)},get size(){return go(this)},has:ho,add:mo,set:vo,delete:yo,clear:_o,forEach:xo(!1,!0)},n={get(e){return fo(this,e,!0)},get size(){return go(this,!0)},has(e){return ho.call(this,e,!0)},add:wo("add"),set:wo("set"),delete:wo("delete"),clear:wo("clear"),forEach:xo(!0,!1)},o={get(e){return fo(this,e,!0,!0)},get size(){return go(this,!0)},has(e){return ho.call(this,e,!0)},add:wo("add"),set:wo("set"),delete:wo("delete"),clear:wo("clear"),forEach:xo(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=bo(r,!1,!1),n[r]=bo(r,!0,!1),t[r]=bo(r,!1,!0),o[r]=bo(r,!0,!0)}),[e,n,t,o]}const[So,Po,ko,Oo]=$o();function Co(e,t){const n=t?e?Oo:ko:e?Po:So;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(l(n,o)&&o in t?n:t,o,r)}const Eo={get:Co(!1,!1)},Io={get:Co(!1,!0)},Ao={get:Co(!0,!1)},To=new WeakMap,No=new WeakMap,Lo=new WeakMap,jo=new WeakMap;function Ro(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>x(e).slice(8,-1))(e))}function Mo(e){return Ho(e)?e:Vo(e,!1,co,Eo,To)}function Do(e){return Vo(e,!0,ao,Ao,Lo)}function Vo(e,t,n,o,r){if(!v(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=Ro(e);if(0===s)return e;const c=new Proxy(e,2===s?o:n);return r.set(e,c),c}function Uo(e){return Ho(e)?Uo(e.__v_raw):!(!e||!e.__v_isReactive)}function Ho(e){return!(!e||!e.__v_isReadonly)}function Bo(e){return!(!e||!e.__v_isShallow)}function Wo(e){const t=e&&e.__v_raw;return t?Wo(t):e}function zo(e){return Object.isExtensible(e)&&((e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})})(e,"__v_skip",!0),e}const Fo=e=>v(e)?Mo(e):e,Go=e=>v(e)?Do(e):e;class qo{constructor(e,t,n,o){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Tn(()=>e(this._value),()=>Jo(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=Wo(this);return e._cacheable&&!e.effect.dirty||!A(e._value,e._value=e.effect.run())||Jo(e,4),Ko(e),e.effect._dirtyLevel>=2&&Jo(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Ko(e){var t;Mn&&In&&(e=Wo(e),zn(In,null!=(t=e.dep)?t:e.dep=qn(()=>e.dep=void 0,e instanceof qo?e:void 0)))}function Jo(e,t=4,n){const o=(e=Wo(e)).dep;o&&Gn(o,t)}function Xo(e){return!(!e||!0!==e.__v_isRef)}function Zo(e){return function(e,t){if(Xo(e))return e;return new Qo(e,t)}(e,!1)}class Qo{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Wo(e),this._value=t?e:Fo(e)}get value(){return Ko(this),this._value}set value(e){const t=this.__v_isShallow||Bo(e)||Ho(e);e=t?e:Wo(e),A(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Fo(e),Jo(this,4))}}function Yo(e){return Xo(e)?e.value:e}const er={get:(e,t,n)=>Yo(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Xo(r)&&!Xo(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function tr(e){return Uo(e)?e:new Proxy(e,er)}function nr(e,t,n,o){try{return o?e(...o):e()}catch(r){rr(r,t,n)}}function or(e,t,n,o){if(h(e)){const r=nr(e,t,n,o);return r&&y(r)&&r.catch(e=>{rr(e,t,n)}),r}const r=[];for(let i=0;i<e.length;i++)r.push(or(e[i],t,n,o));return r}function rr(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let o=t.parent;const r=t.proxy,i=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,i))return;o=o.parent}const s=t.appContext.config.errorHandler;if(s)return void nr(s,null,10,[e,r,i])}ir(e,n,r,o)}function ir(e,t,n,o=!0){console.error(e)}let sr=!1,cr=!1;const ar=[];let ur=0;const lr=[];let pr=null,fr=0;const dr=Promise.resolve();let hr=null;function gr(e){const t=hr||dr;return e?t.then(this?e.bind(this):e):t}function mr(e){ar.length&&ar.includes(e,sr&&e.allowRecurse?ur+1:ur)||(null==e.id?ar.push(e):ar.splice(function(e){let t=ur+1,n=ar.length;for(;t<n;){const o=t+n>>>1,r=ar[o],i=xr(r);i<e||i===e&&r.pre?t=o+1:n=o}return t}(e.id),0,e),vr())}function vr(){sr||cr||(cr=!0,hr=dr.then(wr))}function yr(e){p(e)?lr.push(...e):pr&&pr.includes(e,e.allowRecurse?fr+1:fr)||lr.push(e),vr()}function _r(e,t,n=(sr?ur+1:0)){for(;n<ar.length;n++){const e=ar[n];e&&e.pre&&(ar.splice(n,1),n--,e())}}const xr=e=>null==e.id?1/0:e.id,br=(e,t)=>{const n=xr(e)-xr(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function wr(e){cr=!1,sr=!0,ar.sort(br);try{for(ur=0;ur<ar.length;ur++){const e=ar[ur];e&&!1!==e.active&&nr(e,null,14)}}finally{ur=0,ar.length=0,function(){if(lr.length){const e=[...new Set(lr)].sort((e,t)=>xr(e)-xr(t));if(lr.length=0,pr)return void pr.push(...e);for(pr=e,fr=0;fr<pr.length;fr++)pr[fr]();pr=null,fr=0}}(),sr=!1,hr=null,(ar.length||lr.length)&&wr()}}function $r(e,n,...o){if(e.isUnmounted)return;const r=e.vnode.props||t;let i=o;const s=n.startsWith("update:"),c=s&&n.slice(7);if(c&&c in r){const e=`${"modelValue"===c?"model":c}Modifiers`,{number:n,trim:s}=r[e]||t;s&&(i=o.map(e=>g(e)?e.trim():e)),n&&(i=o.map(N))}let a,u=r[a=I(n)]||r[a=I(k(n))];!u&&s&&(u=r[a=I(C(n))]),u&&or(u,e,6,i);const l=r[a+"Once"];if(l){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,or(l,e,6,i)}}function Sr(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const i=e.emits;let s={},a=!1;if(!h(e)){const o=e=>{const n=Sr(e,t,!0);n&&(a=!0,c(s,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return i||a?(p(i)?i.forEach(e=>s[e]=null):c(s,i),v(e)&&o.set(e,s),s):(v(e)&&o.set(e,null),null)}function Pr(e,t){return!(!e||!i(t))&&(t=t.slice(2).replace(/Once$/,""),l(e,t[0].toLowerCase()+t.slice(1))||l(e,C(t))||l(e,t))}let kr=null;function Or(e){const t=kr;return kr=e,e&&e.type.__scopeId,t}function Cr(e,t){return e&&(e[t]||e[k(t)]||e[E(k(t))])}const Er={};function Ir(e,t,n){return Ar(e,t,n)}function Ar(e,n,{immediate:r,deep:i,flush:s,once:c,onTrack:u,onTrigger:l}=t){if(n&&c){const e=n;n=(...t)=>{e(...t),P()}}const f=Ni,d=e=>!0===i?e:Lr(e,!1===i?1:void 0);let g,m,v=!1,y=!1;if(Xo(e)?(g=()=>e.value,v=Bo(e)):Uo(e)?(g=()=>d(e),v=!0):p(e)?(y=!0,v=e.some(e=>Uo(e)||Bo(e)),g=()=>e.map(e=>Xo(e)?e.value:Uo(e)?d(e):h(e)?nr(e,f,2):void 0)):g=h(e)?n?()=>nr(e,f,2):()=>(m&&m(),or(e,f,3,[_])):o,n&&i){const e=g;g=()=>Lr(e())}let _=e=>{m=$.onStop=()=>{nr(e,f,4),m=$.onStop=void 0}},x=y?new Array(e.length).fill(Er):Er;const b=()=>{if($.active&&$.dirty)if(n){const e=$.run();(i||v||(y?e.some((e,t)=>A(e,x[t])):A(e,x)))&&(m&&m(),or(n,f,3,[e,x===Er?void 0:y&&x[0]===Er?[]:x,_]),x=e)}else $.run()};let w;b.allowRecurse=!!n,"sync"===s?w=b:"post"===s?w=()=>Ci(b,f&&f.suspense):(b.pre=!0,f&&(b.id=f.uid),w=()=>mr(b));const $=new Tn(g,o,w),S=En,P=()=>{$.stop(),S&&a(S.effects,$)};return n?r?b():x=$.run():"post"===s?Ci($.run.bind($),f&&f.suspense):$.run(),P}function Tr(e,t,n){const o=this.proxy,r=g(e)?e.includes(".")?Nr(o,e):()=>o[e]:e.bind(o,o);let i;h(t)?i=t:(i=t.handler,n=t);const s=Mi(this),c=Ar(r,i.bind(o),n);return s(),c}function Nr(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function Lr(e,t,n=0,o){if(!v(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if((o=o||new Set).has(e))return e;if(o.add(e),Xo(e))Lr(e.value,t,n,o);else if(p(e))for(let r=0;r<e.length;r++)Lr(e[r],t,n,o);else if(d(e)||f(e))e.forEach(e=>{Lr(e,t,n,o)});else if(b(e))for(const r in e)Lr(e[r],t,n,o);return e}function jr(){return{app:null,config:{isNativeTag:r,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Rr=0;let Mr=null;function Dr(e,t,n=!1){const o=Ni||kr;if(o||Mr){const r=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Mr._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&h(t)?t.call(o&&o.proxy):t}}const Vr=e=>e.type.__isKeepAlive;function Ur(e,t){Br(e,"a",t)}function Hr(e,t){Br(e,"da",t)}function Br(e,t,n=Ni){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(zr(t,o,n),n){let e=n.parent;for(;e&&e.parent;)Vr(e.parent.vnode)&&Wr(o,t,n,e),e=e.parent}}function Wr(e,t,n,o){const r=zr(t,e,o,!0);Zr(()=>{a(o[t],r)},n)}function zr(e,t,n=Ni,o=!1){if(n){(function(e){return Pe.indexOf(e)>-1})(e)&&(n=n.root);const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Un();const r=Mi(n),i=or(t,n,e,o);return r(),Hn(),i});return o?r.unshift(i):r.push(i),i}}const Fr=e=>(t,n=Ni)=>(!Ui||"sp"===e)&&zr(e,(...e)=>t(...e),n),Gr=Fr("bm"),qr=Fr("m"),Kr=Fr("bu"),Jr=Fr("u"),Xr=Fr("bum"),Zr=Fr("um"),Qr=Fr("sp"),Yr=Fr("rtg"),ei=Fr("rtc");function ti(e,t=Ni){zr("ec",e,t)}const ni=e=>e?Vi(e)?Wi(e)||e.proxy:ni(e.parent):null;const oi=c(Object.create(null),{$:function(e){return e},$el:e=>e.__$el||(e.__$el={}),$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ni(e.parent),$root:e=>ni(e.root),$emit:e=>e.emit,$options:e=>pi(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,mr(e.update)}),$watch:e=>Tr.bind(e)}),ri=(e,n)=>e!==t&&!e.__isScriptSetup&&l(e,n),ii={get({_:e},n){const{ctx:o,setupState:r,data:i,props:s,accessCache:c,type:a,appContext:u}=e;let p;if("$"!==n[0]){const a=c[n];if(void 0!==a)switch(a){case 1:return r[n];case 2:return i[n];case 4:return o[n];case 3:return s[n]}else{if(ri(r,n))return c[n]=1,r[n];if(i!==t&&l(i,n))return c[n]=2,i[n];if((p=e.propsOptions[0])&&l(p,n))return c[n]=3,s[n];if(o!==t&&l(o,n))return c[n]=4,o[n];ci&&(c[n]=0)}}const f=oi[n];let d,h;return f?("$attrs"===n&&Zn(e,0,n),f(e)):(d=a.__cssModules)&&(d=d[n])?d:o!==t&&l(o,n)?(c[n]=4,o[n]):e.exposed&&l(e.exposed,n)?e.exposed[n]:(h=u.config.globalProperties,l(h,n)?h[n]:void 0)},set({_:e},n,o){const{data:r,setupState:i,ctx:s}=e;return ri(i,n)?(i[n]=o,!0):r!==t&&l(r,n)?(r[n]=o,!0):!l(e.props,n)&&(("$"!==n[0]||!(n.slice(1)in e))&&(s[n]=o,!0))},has({_:{data:e,setupState:n,accessCache:o,ctx:r,appContext:i,propsOptions:s}},c){let a;return!!o[c]||e!==t&&l(e,c)||ri(n,c)||(a=s[0])&&l(a,c)||l(r,c)||l(oi,c)||l(i.config.globalProperties,c)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:l(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function si(e){return p(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}let ci=!0;function ai(e){const t=pi(e),n=e.proxy,r=e.ctx;ci=!1,t.beforeCreate&&ui(t.beforeCreate,e,"bc");const{data:i,computed:s,methods:c,watch:a,provide:u,inject:l,created:f,beforeMount:d,mounted:g,beforeUpdate:m,updated:y,activated:_,deactivated:x,beforeDestroy:b,beforeUnmount:w,destroyed:$,unmounted:S,render:P,renderTracked:k,renderTriggered:O,errorCaptured:C,serverPrefetch:E,expose:I,inheritAttrs:A,components:T,directives:N,filters:L}=t;if(l&&function(e,t){p(e)&&(e=gi(e));for(const n in e){const o=e[n];let r;r=v(o)?"default"in o?Dr(o.from||n,o.default,!0):Dr(o.from||n):Dr(o),Xo(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(l,r),c)for(const o in c){const e=c[o];h(e)&&(r[o]=e.bind(n))}if(i){const t=i.call(n,n);v(t)&&(e.data=Mo(t))}if(ci=!0,s)for(const p in s){const e=s[p],t=h(e)?e.bind(n,n):h(e.get)?e.get.bind(n,n):o,i=!h(e)&&h(e.set)?e.set.bind(n):o,c=zi({get:t,set:i});Object.defineProperty(r,p,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e})}if(a)for(const o in a)li(a[o],r,n,o);function j(e,t){p(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(function(){if(u){const e=h(u)?u.call(n):u;Reflect.ownKeys(e).forEach(t=>{!function(e,t){if(Ni){let n=Ni.provides;const o=Ni.parent&&Ni.parent.provides;o===n&&(n=Ni.provides=Object.create(o)),n[e]=t,"app"===Ni.type.mpType&&Ni.appContext.app.provide(e,t)}}(t,e[t])})}}(),f&&ui(f,e,"c"),j(Gr,d),j(qr,g),j(Kr,m),j(Jr,y),j(Ur,_),j(Hr,x),j(ti,C),j(ei,k),j(Yr,O),j(Xr,w),j(Zr,S),j(Qr,E),p(I))if(I.length){const t=e.exposed||(e.exposed={});I.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})})}else e.exposed||(e.exposed={});P&&e.render===o&&(e.render=P),null!=A&&(e.inheritAttrs=A),T&&(e.components=T),N&&(e.directives=N),e.ctx.$onApplyOptions&&e.ctx.$onApplyOptions(t,e,n)}function ui(e,t,n){or(p(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function li(e,t,n,o){const r=o.includes(".")?Nr(n,o):()=>n[o];if(g(e)){const n=t[e];h(n)&&Ir(r,n)}else if(h(e))Ir(r,e.bind(n));else if(v(e))if(p(e))e.forEach(e=>li(e,t,n,o));else{const o=h(e.handler)?e.handler.bind(n):t[e.handler];h(o)&&Ir(r,o,e)}}function pi(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,c=i.get(t);let a;return c?a=c:r.length||n||o?(a={},r.length&&r.forEach(e=>fi(a,e,s,!0)),fi(a,t,s)):a=t,v(t)&&i.set(t,a),a}function fi(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&fi(e,i,n,!0),r&&r.forEach(t=>fi(e,t,n,!0));for(const s in t)if(o&&"expose"===s);else{const o=di[s]||n&&n[s];e[s]=o?o(e[s],t[s]):t[s]}return e}const di={data:hi,props:yi,emits:yi,methods:vi,computed:vi,beforeCreate:mi,created:mi,beforeMount:mi,mounted:mi,beforeUpdate:mi,updated:mi,beforeDestroy:mi,beforeUnmount:mi,destroyed:mi,unmounted:mi,activated:mi,deactivated:mi,errorCaptured:mi,serverPrefetch:mi,components:vi,directives:vi,watch:function(e,t){if(!e)return t;if(!t)return e;const n=c(Object.create(null),e);for(const o in t)n[o]=mi(e[o],t[o]);return n},provide:hi,inject:function(e,t){return vi(gi(e),gi(t))}};function hi(e,t){return t?e?function(){return c(h(e)?e.call(this,this):e,h(t)?t.call(this,this):t)}:t:e}function gi(e){if(p(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function mi(e,t){return e?[...new Set([].concat(e,t))]:t}function vi(e,t){return e?c(Object.create(null),e,t):t}function yi(e,t){return e?p(e)&&p(t)?[...new Set([...e,...t])]:c(Object.create(null),si(e),si(null!=t?t:{})):t}function _i(e,t,n,o=!1){const r={},i={};e.propsDefaults=Object.create(null),xi(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:Vo(r,!1,uo,Io,No):e.type.props?e.props=r:e.props=i,e.attrs=i}function xi(e,n,o,r){const[i,s]=e.propsOptions;let c,a=!1;if(n)for(let t in n){if($(t))continue;const u=n[t];let p;i&&l(i,p=k(t))?s&&s.includes(p)?(c||(c={}))[p]=u:o[p]=u:Pr(e.emitsOptions,t)||t in r&&u===r[t]||(r[t]=bi(e,t,u),a=!0)}if(s){const n=Wo(o),r=c||t;for(let t=0;t<s.length;t++){const c=s[t];o[c]=wi(i,n,c,r[c],e,!l(r,c))}}return a}function bi(e,t,n){return n}function wi(e,t,n,o,r,i){const s=function(e,t,n,o,r,i){const s=e[n];if(null!=s){const e=l(s,"default");if(e&&void 0===o){const e=s.default;if(s.type!==Function&&!s.skipFactory&&h(e)){const{propsDefaults:i}=r;if(n in i)o=i[n];else{const s=Mi(r);o=i[n]=e.call(null,t),s()}}else o=e}s[0]&&(i&&!e?o=!1:!s[1]||""!==o&&o!==C(n)||(o=!0))}return o}(e,t,n,o,r,i);return s}function $i(e,o,r=!1){const i=o.propsCache,s=i.get(e);if(s)return s;const a=e.props,u={},f=[];let d=!1;if(!h(e)){const t=e=>{d=!0;const[t,n]=$i(e,o,!0);c(u,t),n&&f.push(...n)};!r&&o.mixins.length&&o.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!a&&!d)return v(e)&&i.set(e,n),n;if(p(a))for(let n=0;n<a.length;n++){const e=k(a[n]);Si(e)&&(u[e]=t)}else if(a)for(const t in a){const e=k(t);if(Si(e)){const n=a[t],o=u[e]=p(n)||h(n)?{type:n}:c({},n);if(o){const t=Oi(Boolean,o.type),n=Oi(String,o.type);o[0]=t>-1,o[1]=n<0||t<n,(t>-1||l(o,"default"))&&f.push(e)}}}const g=[u,f];return v(e)&&i.set(e,g),g}function Si(e){return"$"!==e[0]&&!$(e)}function Pi(e){if(null===e)return"null";if("function"==typeof e)return e.name||"";if("object"==typeof e){return e.constructor&&e.constructor.name||""}return""}function ki(e,t){return Pi(e)===Pi(t)}function Oi(e,t){return p(t)?t.findIndex(t=>ki(t,e)):h(t)&&ki(t,e)?0:-1}const Ci=yr;function Ei(e){return e?Uo(t=e)||Ho(t)||"__vInternal"in e?c({},e):e:null;var t}const Ii=jr();let Ai=0;function Ti(e,n,o){const r=e.type,i=(n?n.appContext:e.appContext)||Ii,s={uid:Ai++,vnode:e,type:r,parent:n,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new An(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:$i(r,i),emitsOptions:Sr(r,i),emit:null,emitted:null,propsDefaults:t,inheritAttrs:r.inheritAttrs,ctx:t,data:t,props:t,attrs:t,slots:t,refs:t,setupState:t,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:o,suspenseId:o?o.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null,$uniElements:new Map,$templateUniElementRefs:[],$templateUniElementStyles:{},$eS:{},$eA:{}};return s.ctx={_:s},s.root=n?n.root:s,s.emit=$r.bind(null,s),e.ce&&e.ce(s),s}let Ni=null;const Li=()=>Ni||kr;let ji,Ri;ji=e=>{Ni=e},Ri=e=>{Ui=e};const Mi=e=>{const t=Ni;return ji(e),e.scope.on(),()=>{e.scope.off(),ji(t)}},Di=()=>{Ni&&Ni.scope.off(),ji(null)};function Vi(e){return 4&e.vnode.shapeFlag}let Ui=!1;function Hi(e,t=!1){t&&Ri(t);const{props:n}=e.vnode,o=Vi(e);_i(e,n,o,t);const r=o?function(e){const t=e.type;e.accessCache=Object.create(null),e.proxy=zo(new Proxy(e.ctx,ii));const{setup:n}=t;if(n){const t=e.setupContext=n.length>1?function(e){const t=t=>{e.exposed=t||{}};return{get attrs(){return function(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get:(t,n)=>(Zn(e,0,"$attrs"),t[n])}))}(e)},slots:e.slots,emit:e.emit,expose:t}}(e):null,o=Mi(e);Un();const r=nr(n,e,0,[e.props,t]);Hn(),o(),y(r)?r.then(Di,Di):function(e,t){h(t)?e.render=t:v(t)&&(e.setupState=tr(t));Bi(e)}(e,r)}else Bi(e)}(e):void 0;return t&&Ri(!1),r}function Bi(e,t,n){const r=e.type;e.render||(e.render=r.render||o);{const t=Mi(e);Un();try{ai(e)}finally{Hn(),t()}}}function Wi(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(tr(zo(e.exposed)),{get:(t,n)=>n in t?t[n]:e.proxy[n],has:(e,t)=>t in e||t in oi}))}const zi=(e,t)=>{const n=function(e,t,n=!1){let r,i;const s=h(e);return s?(r=e,i=o):(r=e.get,i=e.set),new qo(r,i,s||!i,n)}(e,0,Ui);return n},Fi="3.4.21";function Gi(e){return Yo(e)}const qi="[object Array]",Ki="[object Object]";function Ji(e,t){const n={};return Xi(e,t),Zi(e,t,"",n),n}function Xi(e,t){if((e=Gi(e))===t)return;const n=x(e),o=x(t);if(n==Ki&&o==Ki)for(let r in t){const n=e[r];void 0===n?e[r]=null:Xi(n,t[r])}else n==qi&&o==qi&&e.length>=t.length&&t.forEach((t,n)=>{Xi(e[n],t)})}function Zi(e,t,n,o){if((e=Gi(e))===t)return;const r=x(e),i=x(t);if(r==Ki)if(i!=Ki||Object.keys(e).length<Object.keys(t).length)Qi(o,n,e);else for(let s in e){const r=Gi(e[s]),i=t[s],c=x(r),a=x(i);if(c!=qi&&c!=Ki)r!=i&&Qi(o,(""==n?"":n+".")+s,r);else if(c==qi)a!=qi||r.length<i.length?Qi(o,(""==n?"":n+".")+s,r):r.forEach((e,t)=>{Zi(e,i[t],(""==n?"":n+".")+s+"["+t+"]",o)});else if(c==Ki)if(a!=Ki||Object.keys(r).length<Object.keys(i).length)Qi(o,(""==n?"":n+".")+s,r);else for(let e in r)Zi(r[e],i[e],(""==n?"":n+".")+s+"."+e,o)}else r==qi?i!=qi||e.length<t.length?Qi(o,n,e):e.forEach((e,r)=>{Zi(e,t[r],n+"["+r+"]",o)}):Qi(o,n,e)}function Qi(e,t,n){e[t]=n}function Yi(e){const t=e.ctx.__next_tick_callbacks;if(t&&t.length){const e=t.slice(0);t.length=0;for(let t=0;t<e.length;t++)e[t]()}}function es(e,t){const n=e.ctx;if(!n.__next_tick_pending&&!function(e){return ar.includes(e.update)}(e))return gr(t&&t.bind(e.proxy));let o;return n.__next_tick_callbacks||(n.__next_tick_callbacks=[]),n.__next_tick_callbacks.push(()=>{t?nr(t.bind(e.proxy),e,14):o&&o(e.proxy)}),new Promise(e=>{o=e})}function ts(e,t){const n=typeof(e=Gi(e));if("object"===n&&null!==e){let n=t.get(e);if(void 0!==n)return n;if(p(e)){const o=e.length;n=new Array(o),t.set(e,n);for(let r=0;r<o;r++)n[r]=ts(e[r],t)}else{n={},t.set(e,n);for(const o in e)l(e,o)&&(n[o]=ts(e[o],t))}return n}if("symbol"!==n)return e}function ns(e){return ts(e,"undefined"!=typeof WeakMap?new WeakMap:new Map)}function os(e,t,n){if(!t)return;(t=ns(t)).$eS=e.$eS||{},t.$eA=e.$eA||{};const o=e.ctx,r=o.mpType;if("page"===r||"component"===r){t.r0=1;const n=o.$scope,r=Ji(t,function(e,t){const n=e.data,o=Object.create(null);return t.forEach(e=>{o[e]=n[e]}),o}(n,Object.keys(t)));Object.keys(r).length?(o.__next_tick_pending=!0,n.setData(r,()=>{o.__next_tick_pending=!1,Yi(e)}),_r()):Yi(e)}}function rs(e,t,n){t.appContext.config.globalProperties.$applyOptions(e,t,n);const o=e.computed;if(o){const e=Object.keys(o);if(e.length){const n=t.ctx;n.$computedKeys||(n.$computedKeys=[]),n.$computedKeys.push(...e)}}delete t.ctx.$onApplyOptions}function is(e,t=!1){const{setupState:n,$templateRefs:o,$templateUniElementRefs:r,ctx:{$scope:i,$mpPlatform:s}}=e;if(!i||!o&&!r)return;if(t)return"mp-alipay"!==s&&o&&o.forEach(e=>ss(e,null,n)),void(r&&r.forEach(e=>ss(e,null,n)));const c="mp-baidu"===s||"mp-toutiao"===s,a=e=>{if(0===e.length)return[];const t=(i.selectAllComponents(".r")||[]).concat(i.selectAllComponents(".r-i-f")||[]);return e.filter(e=>{const o=function(e,t){const n=e.find(e=>e&&(e.properties||e.props).uI===t);if(n){const e=n.$vm;return e?Wi(e.$)||e:function(e){v(e)&&zo(e);return e}(n)}return null}(t,e.i);return!(!c||null!==o)||(ss(e,o,n),!1)})},u=()=>{if(o){const t=a(o);t.length&&e.proxy&&e.proxy.$scope&&e.proxy.$scope.setData({r1:1},()=>{a(t)})}};"mp-alipay"!==s&&(i._$setRef?i._$setRef(u):es(e,u)),r&&r.length&&es(e,()=>{r.forEach(e=>{p(e.v)?e.v.forEach(t=>{ss(e,t,n)}):ss(e,e.v,n)})})}function ss({r:e,f:t},n,o){if(h(e))e(n,{});else{const r=g(e),i=Xo(e);if(r||i)if(t){if(!i)return;p(e.value)||(e.value=[]);const t=e.value;if(-1===t.indexOf(n)){if(t.push(n),!n)return;n.$&&Xr(()=>a(t,n),n.$)}}else r?l(o,e)&&(o[e]=n):Xo(e)&&(e.value=n)}}const cs=yr;function as(e,t){const n=e.component=Ti(e,t.parentComponent,null);return n.renderer=t.mpType?t.mpType:"component",n.ctx.$onApplyOptions=rs,n.ctx.$children=[],"app"===t.mpType&&(n.render=o),t.onBeforeSetup&&t.onBeforeSetup(n,t),Hi(n),t.parentComponent&&n.proxy&&t.parentComponent.ctx.$children.push(Wi(n)||n.proxy),function(e){const t=hs.bind(e);e.$updateScopedSlots=()=>gr(()=>mr(t));const n=()=>{if(e.isMounted){const{next:t,bu:n,u:o}=e;gs(e,!1),ds(),n&&T(n),gs(e,!0),os(e,ps(e)),o&&cs(o)}else Xr(()=>{is(e,!0)},e),os(e,ps(e))},r=e.effect=new Tn(n,o,()=>mr(i),e.scope),i=e.update=()=>{r.dirty&&r.run()};i.id=e.uid,gs(e,!0),i()}(n),n.proxy}const us=e=>{let t;for(const n in e)("class"===n||"style"===n||i(n))&&((t||(t={}))[n]=e[n]);return t};function ls(e){return e?e.filter(e=>{const t=e.v;return!(!t||"object"!=typeof t||!["UNI-LOADING-ELEMENT","UNI-CLOUD-DB-ELEMENT"].includes(t.nodeName))}):[]}function ps(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:c,attrs:a,emit:u,render:l,renderCache:p,data:f,setupState:d,ctx:h,uid:g,appContext:{app:{config:{globalProperties:{pruneComponentPropsCache:m}}}},inheritAttrs:v}=e;let y;e.$uniElementIds=new Map,e.$templateRefs=ls(e.$templateRefs||[]),e.$templateUniElementRefs=ls(e.$templateUniElementRefs||[]),e.$templateUniElementStyles={},e.$ei=0,m(g),e.__counter=0===e.__counter?1:0;const _=Or(e);try{if(4&n.shapeFlag){fs(v,i,s,a);const e=r||o;y=l.call(e,e,p,i,d,f,h)}else{fs(v,i,s,t.props?a:us(a));const e=t;y=e.length>1?e(i,{attrs:a,slots:c,emit:u}):e(i,null)}}catch(x){rr(x,e,1),y=!1}return is(e),Or(_),y}function fs(e,t,n,o){if(t&&o&&!1!==e){const e=Object.keys(o).filter(e=>"class"!==e&&"style"!==e);if(!e.length)return;n&&e.some(s)?e.forEach(e=>{s(e)&&e.slice(9)in n||(t[e]=o[e])}):e.forEach(e=>t[e]=o[e])}}const ds=e=>{Un(),_r(),Hn()};function hs(){const e=this.$scopedSlotsData;if(!e||0===e.length)return;const t=this.ctx.$scope,n=t.data,o=Object.create(null);e.forEach(({path:e,index:t,data:r})=>{const i=we(n,e),s=g(t)?`${e}.${t}`:`${e}[${t}]`;if(void 0===i||void 0===i[t])o[s]=r;else{const e=Ji(r,i[t]);Object.keys(e).forEach(t=>{o[s+"."+t]=e[t]})}}),e.length=0,Object.keys(o).length&&t.setData(o)}function gs({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}const ms=function(e,t=null){h(e)||(e=c({},e)),null==t||v(t)||(t=null);const n=jr(),o=new WeakSet,r=n.app={_uid:Rr++,_component:e,_props:t,_container:null,_context:n,_instance:null,version:Fi,get config(){return n.config},set config(e){},use:(e,...t)=>(o.has(e)||(e&&h(e.install)?(o.add(e),e.install(r,...t)):h(e)&&(o.add(e),e(r,...t))),r),mixin:e=>(n.mixins.includes(e)||n.mixins.push(e),r),component:(e,t)=>t?(n.components[e]=t,r):n.components[e],directive:(e,t)=>t?(n.directives[e]=t,r):n.directives[e],mount(){},unmount(){},provide:(e,t)=>(n.provides[e]=t,r),runWithContext(e){const t=Mr;Mr=r;try{return e()}finally{Mr=t}}};return r};function vs(e,t=null){("undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof my?my:void 0).__VUE__=!0;const n=ms(e,t),r=n._context;r.config.globalProperties.$nextTick=function(e){return es(this.$,e)};const i=e=>(e.appContext=r,e.shapeFlag=6,e),s=function(e,t){return as(i(e),t)},c=function(e){return e&&function(e){const{bum:t,scope:n,update:o,um:r}=e;t&&T(t);{const t=e.parent;if(t){const n=t.ctx.$children,o=Wi(e)||e.proxy,r=n.indexOf(o);r>-1&&n.splice(r,1)}}n.stop(),o&&(o.active=!1),r&&cs(r),cs(()=>{e.isUnmounted=!0})}(e.$)};return n.mount=function(){e.render=o;const t=as(i({type:e}),{mpType:"app",mpInstance:null,parentComponent:null,slots:[],props:null});return n._instance=t.$,t.$app=n,t.$createComponent=s,t.$destroyComponent=c,r.$appInstance=t,t},n.unmount=function(){},n}function ys(e,t,n,o){h(t)&&zr(e,t.bind(n),o)}function _s(e,t,n){!function(e,t,n){const o=e.mpType||n.$mpType;!o||"component"===o||"page"===o&&"component"===t.renderer||Object.keys(e).forEach(o=>{if(Ce(o,e[o],!1)){const r=e[o];p(r)?r.forEach(e=>ys(o,e,n,t)):ys(o,r,n,t)}})}(e,t,n)}function xs(e,t,n){return e[t]=n}function bs(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function ws(e){const t=e.config.errorHandler;return function(n,o,r){t&&t(n,o,r);const i=e._instance;if(!i||!i.proxy)throw n;i[F]?i.proxy.$callHook(F,n):ir(n,0,o&&o.$.vnode,!1)}}function $s(e,t){return e?[...new Set([].concat(e,t))]:t}let Ss;const Ps="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ks=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Os(){const e=Cn.getStorageSync("uni_id_token")||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((o=t[1],decodeURIComponent(Ss(o).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))))}catch(r){throw new Error("获取当前用户信息出错,详细错误信息为:"+r.message)}var o;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}function Cs(e){const t=e.config;var n;t.errorHandler=Ae(e,ws),n=t.optionMergeStrategies,ke.forEach(e=>{n[e]=$s});const o=t.globalProperties;!function(e){e.uniIDHasRole=function(e){const{role:t}=Os();return t.indexOf(e)>-1},e.uniIDHasPermission=function(e){const{permission:t}=Os();return this.uniIDHasRole("admin")||t.indexOf(e)>-1},e.uniIDTokenValid=function(){const{tokenExpired:e}=Os();return e>Date.now()}}(o),o.$set=xs,o.$applyOptions=_s,o.$callMethod=bs,Cn.invokeCreateVueAppHook(e)}Ss="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!ks.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,o,r="",i=0;i<e.length;)t=Ps.indexOf(e.charAt(i++))<<18|Ps.indexOf(e.charAt(i++))<<12|(n=Ps.indexOf(e.charAt(i++)))<<6|(o=Ps.indexOf(e.charAt(i++))),r+=64===n?String.fromCharCode(t>>16&255):64===o?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return r}:atob;const Es=Object.create(null);function Is(e){delete Es[e]}function As(e){if(!e)return;const[t,n]=e.split(",");return Es[t]?Es[t][parseInt(n)]:void 0}var Ts={install(e){Cs(e),e.config.globalProperties.pruneComponentPropsCache=Is;const t=e.mount;e.mount=function(n){const o=t.call(e,n),r=function(){const e="createApp";if("undefined"!=typeof global&&void 0!==global[e])return global[e];if("undefined"!=typeof my)return my[e]}();return r?r(o):"undefined"!=typeof createMiniProgramApp&&createMiniProgramApp(o),o}}};function Ns(e){return g(e)?e:function(e){let t="";if(!e||g(e))return t;for(const n in e)t+=`${n.startsWith("--")?n:C(n)}:${e[n]};`;return t}(L(e))}function Ls(e,t){const n=Li(),r=n.ctx,i=void 0===t||"mp-weixin"!==r.$mpPlatform&&"mp-qq"!==r.$mpPlatform&&"mp-xhs"!==r.$mpPlatform||!g(t)&&"number"!=typeof t?"":"_"+t,s="e"+n.$ei+++i,a=r.$scope;if(!e)return delete a[s],s;const u=a[s];return u?u.value=e:a[s]=function(e,t){const n=e=>{var r;(r=e).type&&r.target&&(r.preventDefault=o,r.stopPropagation=o,r.stopImmediatePropagation=o,l(r,"detail")||(r.detail={}),l(r,"markerId")&&(r.detail="object"==typeof r.detail?r.detail:{},r.detail.markerId=r.markerId),b(r.detail)&&l(r.detail,"checked")&&!l(r.detail,"value")&&(r.detail.value=r.detail.checked),b(r.detail)&&(r.target=c({},r.target,r.detail)));let i=[e];t&&t.ctx.$getTriggerEventDetail&&"number"==typeof e.detail&&(e.detail=t.ctx.$getTriggerEventDetail(e.detail)),e.detail&&e.detail.__args__&&(i=e.detail.__args__);const s=n.value,a=()=>or(function(e,t){if(p(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n&&n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e(t))}return t}(e,s),t,5,i),u=e.target,f=!!u&&(!!u.dataset&&"true"===String(u.dataset.eventsync));if(!js.includes(e.type)||f){const t=a();if("input"===e.type&&(p(t)||y(t)))return;return t}setTimeout(a)};return n.value=e,n}(e,n),s}const js=["tap","longpress","longtap","transitionend","animationstart","animationiteration","animationend","touchforcechange"];const Rs=function(e,t=null){return e&&(e.mpType="app"),vs(e,t).use(Ts)};const Ms=["externalClasses"];const Ds=/_(.*)_worklet_factory_/;function Vs(e,t){const n=e.$children;for(let r=n.length-1;r>=0;r--){const e=n[r];if(e.$scope._$vueId===t)return e}let o;for(let r=n.length-1;r>=0;r--)if(o=Vs(n[r],t),o)return o}const Us=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];function Hs(e,t){const n=e.ctx;n.mpType=t.mpType,n.$mpType=t.mpType,n.$mpPlatform="mp-weixin",n.$scope=t.mpInstance,Object.defineProperties(n,{[_e]:{get(){const e=this.$scope.data[_e];return void 0===e?"":e}}}),n.$mp={},n._self={},e.slots={},p(t.slots)&&t.slots.length&&(t.slots.forEach(t=>{e.slots[t]=!0}),e.slots.d&&(e.slots.default=!0)),n.getOpenerEventChannel=function(){return t.mpInstance.getOpenerEventChannel()},n.$hasHook=Bs,n.$callHook=Ws,e.emit=function(e,t){return function(n,...o){const r=t.$scope;if(r&&n){const e={__args__:o};r.triggerEvent(n,e)}return e.apply(this,[n,...o])}}(e.emit,n)}function Bs(e){const t=this.$[e];return!(!t||!t.length)}function Ws(e,t){"mounted"===e&&(Ws.call(this,"bm"),this.$.isMounted=!0,e="m");const n=this.$[e];return n&&((e,t)=>{let n;for(let o=0;o<e.length;o++)n=e[o](t);return n})(n,t)}const zs=[J,B,W,Z,oe,se,ce,ae,fe];function Fs(e,t=new Set){if(e){Object.keys(e).forEach(n=>{Ce(n,e[n])&&t.add(n)});{const{extends:n,mixins:o}=e;o&&o.forEach(e=>Fs(e,t)),n&&Fs(n,t)}}return t}function Gs(e,t,n){-1!==n.indexOf(t)||l(e,t)||(e[t]=function(e){return this.$vm&&this.$vm.$callHook(t,e)})}const qs=[X];function Ks(e,t,n=qs){t.forEach(t=>Gs(e,t,n))}function Js(e,t,n=qs){Fs(t).forEach(t=>Gs(e,t,n))}const Xs=be(()=>{const e=[],t=h(getApp)&&getApp({allowDefault:!0});if(t&&t.$vm&&t.$vm.$){const n=t.$vm.$.appContext.mixins;if(p(n)){const t=Object.keys(Oe);n.forEach(n=>{t.forEach(t=>{l(n,t)&&!e.includes(t)&&e.push(t)})})}}return e});const Zs=[B,W,F,G,q,K];function Qs(e,t){const n=e.$,o={globalData:e.$options&&e.$options.globalData||{},$vm:e,onLaunch(t){this.$vm=e;const o=n.ctx;this.$vm&&o.$scope&&o.$callHook||(Hs(n,{mpType:"app",mpInstance:this,slots:[]}),o.globalData=this.globalData,e.$callHook(z,t))}},r=wx.$onErrorHandlers;r&&(r.forEach(e=>{zr(F,e,n)}),r.length=0),function(e){const t=Zo(function(){var e;let t="";{const n=(null===(e=wx.getAppBaseInfo)||void 0===e?void 0:e.call(wx))||wx.getSystemInfoSync();t=Me(n&&n.language?n.language:Re)||Re}return t}());Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}(e);const i=e.$.type;Ks(o,Zs),Js(o,i);{const e=i.methods;e&&c(o,e)}return o}function Ys(e,t){if(h(e.onLaunch)){const t=wx.getLaunchOptionsSync&&wx.getLaunchOptionsSync();e.onLaunch(t)}h(e.onShow)&&wx.onAppShow&&wx.onAppShow(e=>{t.$callHook("onShow",e)}),h(e.onHide)&&wx.onAppHide&&wx.onAppHide(e=>{t.$callHook("onHide",e)})}const ec=["eO","uR","uRIF","uI","uT","uP","uS"];function tc(e){e.properties||(e.properties={}),c(e.properties,function(e,t=!1){const n={};if(!t){let e=function(e){const t=Object.create(null);e&&e.forEach(e=>{t[e]=!0}),this.setData({$slots:t})};ec.forEach(e=>{n[e]={type:null,value:""}}),n.uS={type:null,value:[]},n.uS.observer=e}return e.behaviors&&e.behaviors.includes("wx://form-field")&&(e.properties&&e.properties.name||(n.name={type:null,value:""}),e.properties&&e.properties.value||(n.value={type:null,value:""})),n}(e),function(e){const t={};return e&&e.virtualHost&&(t.virtualHostStyle={type:null,value:""},t.virtualHostClass={type:null,value:""},t.virtualHostHidden={type:null,value:""},t[_e]={type:null,value:""}),t}(e.options))}const nc=[String,Number,Boolean,Object,Array,null];function oc(e,t){const n=function(e){return p(e)&&1===e.length?e[0]:e}(e);return-1!==nc.indexOf(n)?n:null}function rc(e,t){return(t?function(e){const t={};b(e)&&Object.keys(e).forEach(n=>{-1===ec.indexOf(n)&&(t[n]=e[n])});return t}(e):As(e.uP))||{}}function ic(e){const t=function(){const e=this.properties.uP;e&&(this.$vm?function(e,t){const n=Wo(t.props),o=As(e)||{};sc(n,o)&&(!function(e,t,n){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,s=Wo(o),[c]=e.propsOptions;let a=!1;if(i>0&&!(16&i)){if(8&i){const n=e.vnode.dynamicProps;for(let i=0;i<n.length;i++){let u=n[i];if(Pr(e.emitsOptions,u))continue;const p=t[u];if(c)if(l(r,u))p!==r[u]&&(r[u]=bi(0,0,p),a=!0);else{const t=k(u);o[t]=wi(c,s,t,p,e,!1)}else p!==r[u]&&(r[u]=bi(0,0,p),a=!0)}}}else{let i;xi(e,t,o,r)&&(a=!0);for(const r in s)t&&(l(t,r)||(i=C(r))!==r&&l(t,i))||(c?!n||void 0===n[r]&&void 0===n[i]||(o[r]=wi(c,s,r,void 0,e,!0)):delete o[r]);if(r!==s)for(const e in r)t&&l(t,e)||(delete r[e],a=!0)}a&&Qn(e,"set","$attrs")}(t,o,n),r=t.update,ar.indexOf(r)>-1&&function(e){const t=ar.indexOf(e);t>ur&&ar.splice(t,1)}(t.update),t.update());var r}(e,this.$vm.$):"m"===this.properties.uT&&function(e,t){const n=t.properties,o=As(e)||{};sc(n,o,!1)&&t.setData(o)}(e,this))};e.observers||(e.observers={}),e.observers.uP=t}function sc(e,t,n=!0){const o=Object.keys(t);if(n&&o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const n=o[r];if(t[n]!==e[n])return!0}return!1}function cc(e,t){e.data={},e.behaviors=function(e){const t=e.behaviors;let n=e.props;n||(e.props=n=[]);const o=[];return p(t)&&t.forEach(e=>{o.push(e.replace("uni://","wx://")),"uni://form-field"===e&&(p(n)?(n.push("name"),n.push("modelValue")):(n.name={type:String,default:""},n.modelValue={type:[String,Number,Boolean,Array,Object,Date],default:""}))}),o}(t)}function ac(e,{parse:t,mocks:n,isPage:o,isPageInProject:r,initRelation:i,handleLink:s,initLifetimes:a}){e=e.default||e;const u={multipleSlots:!0,addGlobalClass:!0,pureDataPattern:/^uP$/};p(e.mixins)&&e.mixins.forEach(e=>{v(e.options)&&c(u,e.options)}),e.options&&c(u,e.options);const f={options:u,lifetimes:a({mocks:n,isPage:o,initRelation:i,vueOptions:e}),pageLifetimes:{show(){this.$vm&&this.$vm.$callHook("onPageShow")},hide(){this.$vm&&this.$vm.$callHook("onPageHide")},resize(e){this.$vm&&this.$vm.$callHook("onPageResize",e)}},methods:{__l:s}};var d,h,g,m;return cc(f,e),tc(f),ic(f),function(e,t){Ms.forEach(n=>{l(t,n)&&(e[n]=t[n])})}(f,e),d=f.methods,h=e.wxsCallMethods,p(h)&&h.forEach(e=>{d[e]=function(t){return this.$vm[e](t)}}),g=f.methods,(m=e.methods)&&Object.keys(m).forEach(e=>{const t=e.match(Ds);if(t){const n=t[1];g[e]=m[e],g[n]=m[n]}}),t&&t(f,{handleLink:s}),f}let uc,lc;function pc(){return getApp().$vm}function fc(e,t){const{parse:n,mocks:o,isPage:r,initRelation:i,handleLink:s,initLifetimes:c}=t,a=ac(e,{mocks:o,isPage:r,isPageInProject:!0,initRelation:i,handleLink:s,initLifetimes:c});!function({properties:e},t){p(t)?t.forEach(t=>{e[t]={type:String,value:""}}):b(t)&&Object.keys(t).forEach(n=>{const o=t[n];if(b(o)){let t=o.default;h(t)&&(t=t());const r=o.type;o.type=oc(r),e[n]={type:o.type,value:t}}else e[n]={type:oc(o)}})}(a,(e.default||e).props);const u=a.methods;return u.onLoad=function(e){var t;return this.options=e,this.$page={fullPath:(t=this.route+Se(e),function(e){return 0===e.indexOf("/")}(t)?t:"/"+t)},this.$vm&&this.$vm.$callHook(J,e)},Ks(u,zs),Js(u,e),function(e,t){if(!t)return;Object.keys(Oe).forEach(n=>{t&Oe[n]&&Gs(e,n,[])})}(u,e.__runtimeHooks),Ks(u,Xs()),n&&n(a,{handleLink:s}),a}const dc=Page,hc=Component;function gc(e){const t=e.triggerEvent,n=function(n,...o){return t.apply(e,[(r=n,k(r.replace(xe,"-"))),...o]);var r};try{e.triggerEvent=n}catch(o){e._triggerEvent=n}}function mc(e,t,n){const o=t[e];t[e]=o?function(...e){return gc(this),o.apply(this,e)}:function(){gc(this)}}Page=function(e){return mc(J,e),dc(e)},Component=function(e){mc("created",e);return e.properties&&e.properties.uP||(tc(e),ic(e)),hc(e)};var vc=Object.freeze({__proto__:null,handleLink:function(e){const t=e.detail||e.value,n=t.vuePid;let o;n&&(o=Vs(this.$vm,n)),o||(o=this.$vm),t.parent=o},initLifetimes:function({mocks:e,isPage:t,initRelation:n,vueOptions:o}){return{attached(){let r=this.properties;!function(e,t){if(!e)return;const n=e.split(","),o=n.length;1===o?t._$vueId=n[0]:2===o&&(t._$vueId=n[0],t._$vuePid=n[1])}(r.uI,this);const i={vuePid:this._$vuePid};n(this,i);const s=this,c=t(s);let a=r;this.$vm=function(e,t){uc||(uc=pc().$createComponent);const n=uc(e,t);return Wi(n.$)||n}({type:o,props:rc(a,c)},{mpType:c?"page":"component",mpInstance:s,slots:r.uS||{},parentComponent:i.parent&&i.parent.$,onBeforeSetup(t,n){!function(e,t){Object.defineProperty(e,"refs",{get(){const e={};return function(e,t,n){e.selectAllComponents(t).forEach(e=>{const t=e.properties.uR;n[t]=e.$vm||e})}(t,".r",e),t.selectAllComponents(".r-i-f").forEach(t=>{const n=t.properties.uR;n&&(e[n]||(e[n]=[]),e[n].push(t.$vm||t))}),e}})}(t,s),function(e,t,n){const o=e.ctx;n.forEach(n=>{l(t,n)&&(e[n]=o[n]=t[n])})}(t,s,e),function(e,t){Hs(e,t);const n=e.ctx;Us.forEach(e=>{n[e]=function(...t){const o=n.$scope;if(o&&o[e])return o[e].apply(o,t)}})}(t,n)}}),c||function(e){const t=e.$options;p(t.behaviors)&&t.behaviors.includes("uni://form-field")&&e.$watch("modelValue",()=>{e.$scope&&e.$scope.setData({name:e.name,value:e.modelValue})},{immediate:!0})}(this.$vm)},ready(){this.$vm&&(this.$vm.$callHook("mounted"),this.$vm.$callHook(X))},detached(){var e;this.$vm&&(Is(this.$vm.$.uid),e=this.$vm,lc||(lc=pc().$destroyComponent),lc(e))}}},initRelation:function(e,t){e.triggerEvent("__l",t)},isPage:function(e){return!!e.route},mocks:["__route__","__wxExparserNodeId__","__wxWebviewId__"]});const yc=function(e){return App(Qs(e))},_c=(xc=vc,function(e){return Component(fc(e,xc))});var xc;const bc=function(e){return function(t){return Component(ac(t,e))}}(vc),wc=function(e){Ys(Qs(e),e)},$c=function(e){const t=Qs(e),n=h(getApp)&&getApp({allowDefault:!0});if(!n)return;e.$.ctx.$scope=n;const o=n.globalData;o&&Object.keys(t.globalData).forEach(e=>{l(o,e)||(o[e]=t.globalData[e])}),Object.keys(t).forEach(e=>{l(n,e)||(n[e]=t[e])}),Ys(t,e)};!function(){if(h(wx.preloadAssets)){const e=String.fromCharCode(99,100,110,49,46,100,99,108,111,117,100,46,110,101,116,46,99,110);setTimeout(()=>{wx.preloadAssets({data:[{type:"image",src:"https://"+e+"/526a64464d54424751673d3d/img/shadow-grey.png"}]})},3e3)}}(),wx.createApp=global.createApp=yc,wx.createPage=_c,wx.createComponent=bc,wx.createPluginApp=global.createPluginApp=wc,wx.createSubpackageApp=global.createSubpackageApp=$c,Math;const Sc={onLaunch(){console.log("Guide App Launch")}};function Pc(){return{app:Rs(Sc)}}Pc().app.mount("#app");const kc="mingdao_guide_login_state",Oc={id:"guide_001",name:"赵明",phone:"13800000000",avatar:"/static/logo.png",rating:4.9,orderCount:286,serviceMinutes:12840,auditStatus:"approved",onlineStatus:"offline",groupName:"都江堰精讲一团",tags:["都江堰水利工程","亲子讲解","川西历史","普通话"]},Cc=[{id:"dujiangyan",name:"都江堰景区",city:"成都",meetingPoints:[{id:"south_gate",name:"都江堰南门",guideCount:6,latitude:31.001472,longitude:103.648278,address:"四川省成都市都江堰市公园路都江堰景区南门"},{id:"north_gate",name:"都江堰北门",guideCount:3,latitude:31.005846,longitude:103.646812,address:"四川省成都市都江堰市离堆公园路都江堰景区北门"}]},{id:"qingchengshan",name:"青城山景区",city:"成都",meetingPoints:[{id:"front_gate",name:"青城山前山门",guideCount:4,latitude:30.905982,longitude:103.569027,address:"四川省成都市都江堰市青城山镇青城山景区前山门"},{id:"parking",name:"游客中心停车场",guideCount:2,latitude:30.909683,longitude:103.571938,address:"四川省成都市都江堰市青城山景区游客中心停车场"}]}];const Ec=({}.VITE_API_BASE_URL||"http://127.0.0.1:8011/api").replace(/\/$/,""),Ic=Ec.replace(/\/api$/,"");function Ac({url:e,method:t="GET",data:n,authenticated:o=!0,headers:r={}}){const i=Cn.getStorageSync(kc),s={"Content-Type":"application/json",...r};return o&&i&&i.token&&(s.Authorization=`Bearer ${i.token}`),new Promise((o,r)=>{Cn.request({url:`${Ec}${e}`,method:t,data:n,header:s,success(e){const t=e.data||{};e.statusCode>=200&&e.statusCode<300&&0===t.code?o(t.data):r(new Error(t.message||`请求失败(${e.statusCode})`))},fail(e){r(new Error(e.errMsg||"网络连接失败"))}})})}function Tc({url:e,filePath:t,name:n="file",header:o={},authenticated:r=!0}){const i=Cn.getStorageSync(kc),s={...o};return r&&i&&i.token&&(s.Authorization=`Bearer ${i.token}`),new Promise((o,r)=>{Cn.uploadFile({url:`${Ec}${e}`,filePath:t,name:n,header:s,success(e){let t=e.data;try{t="string"==typeof t?JSON.parse(t):t}catch(n){return void r(new Error("上传响应格式不正确"))}e.statusCode>=200&&e.statusCode<300&&t&&0===t.code?o(t.data):r(new Error(t&&t.message||`上传失败(${e.statusCode})`))},fail(e){r(new Error(e.errMsg||"文件上传失败"))}})})}function Nc(){return Cn.getStorageSync(kc)||null}function Lc(e,t="navigateTo"){const n=function(e){return e?String(e):""}(e);if(!n)return;const o=Cn[t]||Cn.navigateTo;try{o({url:n,fail(){Cn.showToast({title:"页面未注册,请重新运行项目",icon:"none"})}})}catch(r){Cn.showToast({title:"页面未注册,请重新运行项目",icon:"none"})}}const jc="mingdao_guide_phone_change_state";function Rc(e){const t=Cn.getStorageSync(kc),n=function(e={},t={}){return{...t,...e,name:e.realName||e.name||e.username||t.name||"",phone:e.mobile||e.phone||t.phone||"",avatar:(n=e.avatar||t.avatar||"",n?/^https?:\/\//i.test(n)||n.startsWith("wxfile://")||n.startsWith("blob:")?n:`${Ic}${n.startsWith("/")?n:`/${n}`}`:""),orderCount:Number(e.acceptedOrderCount??e.orderCount??t.orderCount??0),rating:Number(e.rating??t.rating??0),groupName:e.teamName||t.groupName||("个人"===e.teamType?"个人导游":"")};var n}(e,t&&t.guide||Oc);return t&&(t.guide=n,Cn.setStorageSync(kc,t)),n}function Mc(e){const t=Number(e);return Number.isFinite(t)?t:0}function Dc(){return Cc.reduce((e,t)=>{const n=(t.meetingPoints||[]).map(e=>({scenicId:t.id,scenicName:t.name,city:t.city,...e}));return e.concat(n)},[])}function Vc(e={}){const t=Cc.find(t=>t.id===e.scenicId||t.name===e.scenicName),n=t?t.meetingPoints||[]:Dc(),o=n.find(t=>t.id===e.meetingPointId)||n.find(t=>t.name===e.meetingPointName)||Dc().find(t=>t.id===e.meetingPointId||t.name===e.meetingPointName),r=Mc(e.meetingPointLatitude||e.latitude||o&&o.latitude),i=Mc(e.meetingPointLongitude||e.longitude||o&&o.longitude);return o||r&&i?{scenicId:e.scenicId||t&&t.id||o&&o.scenicId||"",scenicName:e.scenicName||t&&t.name||o&&o.scenicName||"",city:o&&o.city||t&&t.city||"",id:e.meetingPointId||o&&o.id||"",name:e.meetingPointName||o&&o.name||"汇合点",address:e.meetingPointAddress||e.address||o&&o.address||"",guideCount:o&&o.guideCount||0,latitude:r,longitude:i}:null}function Uc(e){const t=Number(e);return Number.isFinite(t)?t:0}function Hc(e={}){return Boolean(Uc(e.latitude||e.meetingPointLatitude)&&Uc(e.longitude||e.meetingPointLongitude))}function Bc(e={}){const t=Uc(e.latitude||e.meetingPointLatitude),n=Uc(e.longitude||e.meetingPointLongitude);return{scenicId:e.scenicId||"",scenicName:e.scenicName||"",meetingPointId:e.id||e.meetingPointId||"",meetingPointName:e.name||e.meetingPointName||"汇合点",meetingPointAddress:e.address||e.meetingPointAddress||"",latitude:t,longitude:n}}function Wc(e={}){const t=Bc(e);return Hc(t)?new Promise((e,n)=>{Cn.openLocation({latitude:t.latitude,longitude:t.longitude,scale:18,name:t.meetingPointName,address:t.meetingPointAddress,success(){e(t)},fail(e){n(e)}})}):(Cn.showToast({title:"汇合点坐标暂未配置",icon:"none"}),Promise.reject(new Error("Missing meeting point coordinates")))}function zc(e){return"active"===e||"pending"===e?"accepted":"history"===e?"completed":e||"all"}function Fc(e={}){const t=function(e={}){const t=Vc({scenicId:e.scenicId,scenicName:e.scenicName,meetingPointId:e.meetingPointId,meetingPointName:e.meetingPointName,meetingPointLatitude:e.meetingPointLatitude,meetingPointLongitude:e.meetingPointLongitude,meetingPointAddress:e.meetingPointAddress});return t?{...e,scenicId:e.scenicId||t.scenicId,meetingPointId:e.meetingPointId||t.id,meetingPointName:e.meetingPointName||t.name,meetingPointLatitude:e.meetingPointLatitude||t.latitude,meetingPointLongitude:e.meetingPointLongitude||t.longitude,meetingPointAddress:e.meetingPointAddress||t.address}:e}({...e,quantity:Number(e.quantity??e.peopleCount??0),receiveTime:Gc(e.receiveTime||e.acceptedAt||e.createdAt),receiveStartTime:Gc(e.receiveStartTime||e.receiveTime||e.acceptedAt||e.createdAt),lectureStartTime:Gc(e.lectureStartTime||e.serviceStartedAt||e.arrivedAt),lectureEndTime:Gc(e.lectureEndTime||e.completedAt),completedAt:Gc(e.completedAt),customers:(e.customers||[]).map(e=>({...e,time:Gc(e.time)}))});return{...t,customers:t.customers&&t.customers.length?t.customers:[{no:1,phone:t.customerPhone||"",people:t.quantity||0,time:t.receiveStartTime||""}]}}function Gc(e){return e?String(e).replace("T"," "):""}const qc="mingdao_guide_registration_state";function Kc(){return Cn.getStorageSync(qc)||null}function Jc(e,t){return Tc({url:"/guide/registration/documents",filePath:e,header:{"X-Registration-Token":t}}).then(e=>e.url)}const Xc={user:"GUIDE_USER_AGREEMENT",service:"EXPLANATION_SERVICE_COOPERATION",reward:"GUIDE_REWARD_PUNISHMENT"};function Zc(e){return Xc[e]||e||Xc.user}function Qc(e){return{...e,time:e.time?e.time.replace("T"," "):"",url:""}}exports.GUIDE_ORDERS_KEY="mingdao_guide_orders",exports._export_sfc=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},exports.backOrHome=function(e="/pages/workbench/index"){("function"==typeof getCurrentPages?getCurrentPages():[]).length>1?Cn.navigateBack():Lc(e,"reLaunch")},exports.buildMeetingPointCircles=function(e={}){const t=Bc(e);return Hc(t)?[{latitude:t.latitude,longitude:t.longitude,radius:36,strokeWidth:4,color:"#4d8fe899",fillColor:"#4d8fe833"}]:[]},exports.cancelAccount=function(){return Ac({url:"/guide/auth/account",method:"DELETE"}).then(e=>(Cn.removeStorageSync(kc),e))},exports.changeGuidePhone=function(e,t){const n=Cn.getStorageSync(jc);return n&&n.changeToken?Ac({url:"/guide/profile/phone",method:"PUT",data:{changeToken:n.changeToken,newPhone:e,code:t}}).then(e=>(Cn.removeStorageSync(jc),Rc(e))):Promise.reject(new Error("旧手机号验证已失效,请重新验证"))},exports.createApp=Pc,exports.e=(e,...t)=>c(e,...t),exports.f=(e,t)=>function(e,t){let n;if(p(e)||g(e)){n=new Array(e.length);for(let o=0,r=e.length;o<r;o++)n[o]=t(e[o],o,o)}else if("number"==typeof e){n=new Array(e);for(let o=0;o<e;o++)n[o]=t(o+1,o,o)}else if(v(e))if(e[Symbol.iterator])n=Array.from(e,(e,n)=>t(e,n,n));else{const o=Object.keys(e);n=new Array(o.length);for(let r=0,i=o.length;r<i;r++){const i=o[r];n[r]=t(e[i],i,r)}}else n=[];return n}(e,t),exports.formatDuration=function(e=0){if(e<60)return`${e}分钟`;const t=Math.floor(e/60),n=e%60;return n?`${t}小时${n}分钟`:`${t}小时`},exports.formatMoney=function(e=0){return`¥${(Number(e||0)/100).toFixed(2)}`},exports.getEarnings=function(e={}){const t={pageNum:e.pageNum||1,pageSize:e.pageSize||50};return e.serviceType&&(t.serviceType=e.serviceType),e.scenicName&&(t.scenicName=e.scenicName),e.date&&(t.date=e.date),Ac({url:"/guide/earnings",data:t})},exports.getGuideAgreement=function(e){const t=Zc(e);return Ac({url:`/guide/agreements/${encodeURIComponent(t)}`,authenticated:!1})},exports.getGuideAgreements=function(){return Ac({url:"/guide/agreements",authenticated:!1})},exports.getGuideOrders=function(e="all"){return Ac({url:`/guide/orders?tab=${encodeURIComponent(zc(e))}&page=1&size=50`}).then(e=>(e.records||[]).map(Fc))},exports.getGuideProfile=function(){return Ac({url:"/guide/profile"}).then(Rc)},exports.getGuideRatings=function({date:e="",pageNum:t=1,pageSize:n=100}={}){const o={pageNum:t,pageSize:n};return e&&(o.date=e),Ac({url:"/guide/ratings",data:o})},exports.getGuideReceivingOptions=function(){return Ac({url:"/guide/receiving/options"})},exports.getLoginState=Nc,exports.getMessageList=function(){return Ac({url:"/guide/notifications"}).then(e=>e.map(Qc))},exports.getOrderDetail=function(e){return Ac({url:`/guide/orders/${e}`}).then(Fc)},exports.getRegistrationState=Kc,exports.getRegistrationTeams=function(){return Ac({url:"/guide/registration/teams",authenticated:!1})},exports.getStatusBarHeight=function(){try{return Cn.getSystemInfoSync().statusBarHeight||0}catch(e){return 0}},exports.getWorkbenchData=function(){return Ac({url:"/guide/workbench"})},exports.hasMeetingPointLocation=Hc,exports.index=Cn,exports.isLoggedIn=function(){const e=Nc();return Boolean(e&&e.token)},exports.loginByPhone=function({phone:e,code:t}){return e&&t?Ac({url:"/guide/auth/login",method:"POST",authenticated:!1,data:{phone:e,code:t}}).then(t=>{const n=t.user||{},o={token:t.token,expiresIn:t.expiresIn,guide:{...Oc,id:n.id,name:n.realName||n.username||Oc.name,phone:n.mobile||e,avatar:n.avatar||Oc.avatar,rating:Number(n.rating||0),orderCount:n.acceptedOrderCount||0,auditStatus:(r=n.status,1===r?"approved":2===r?"pending":0===r?"disabled":"pending"),onlineStatus:"offline",groupName:n.teamName||("个人"===n.teamType?"个人导游":Oc.groupName)}};var r;return Cn.setStorageSync(kc,o),o}):Promise.reject(new Error("请输入手机号和验证码"))},exports.logout=function(){const e=Nc();return e&&e.token?Ac({url:"/guide/auth/logout",method:"POST"}).finally(()=>Cn.removeStorageSync(kc)):(Cn.removeStorageSync(kc),Promise.resolve())},exports.markMessageRead=function(e){return Ac({url:`/guide/notifications/${e}/read`,method:"PUT"})},exports.maskPhone=function(e=""){return e.replace(/^(\d{3})\d{4}(\d{4})$/,"$1****$2")},exports.n=e=>V(e),exports.o=(e,t)=>Ls(e,t),exports.openMeetingPointPage=function(e={}){const t=Bc(e);Hc(t)?Wc(t).catch(e=>{console.log("Open meeting point location failed",e),Cn.showToast({title:"暂时无法打开地图导航",icon:"none"})}):Cn.showToast({title:"汇合点坐标暂未配置",icon:"none"})},exports.openSystemLocation=Wc,exports.p=e=>function(e){const{uid:t,__counter:n}=Li();return t+","+((Es[t]||(Es[t]=[])).push(Ei(e))-1)+","+n}(e),exports.parseMeetingPointPayload=function(e=""){if(!e)return null;try{return Bc(JSON.parse(decodeURIComponent(e)))}catch(t){return console.log("Parse meeting point payload failed",t),null}},exports.resolveAgreementCode=Zc,exports.resolveComponent=function(e,t){return function(e,t,n=!0,o=!1){const r=kr||Ni;if(r){const n=r.type;{const e=function(e,t=!0){return h(e)?e.displayName||e.name:e.name||t&&e.__name}(n,!1);if(e&&(e===t||e===k(t)||e===E(k(t))))return n}const i=Cr(r[e]||n[e],t)||Cr(r.appContext[e],t);return!i&&o?n:i}}("components",e,!0,t)||e},exports.resolveMeetingPoint=Vc,exports.routeTo=Lc,exports.s=e=>Ns(e),exports.sendLoginCode=function(e){return Ac({url:"/guide/auth/sms-code",method:"POST",authenticated:!1,data:{phone:e,scene:"login"}})},exports.sendNewPhoneCode=function(e){const t=Cn.getStorageSync(jc);return t&&t.changeToken?Ac({url:"/guide/profile/phone-change/new-code",method:"POST",data:{changeToken:t.changeToken,newPhone:e}}):Promise.reject(new Error("旧手机号验证已失效,请重新验证"))},exports.sendOldPhoneCode=function(e){return Ac({url:"/guide/profile/phone-change/old-code",method:"POST",data:{phone:e}})},exports.sendRegistrationCode=function(e){return Ac({url:"/guide/registration/sms-code",method:"POST",authenticated:!1,data:{phone:e}})},exports.submitCertification=function(e){const t=Cn.getStorageSync(kc);return t&&t.guide&&(t.guide.auditStatus="pending",Cn.setStorageSync(kc,t)),Promise.resolve({...e,auditStatus:"pending"})},exports.submitFeedback=function(e){return Ac({url:"/guide/feedback",method:"POST",data:{content:e}})},exports.submitGuideRegistration=function(e){const t=Kc();if(!t||!t.registrationToken)return Promise.reject(new Error("手机号验证已失效,请重新验证"));const n=[Jc(e.idFront,t.registrationToken),Jc(e.idBack,t.registrationToken),Jc(e.guideLicense,t.registrationToken),e.guideCert?Jc(e.guideCert,t.registrationToken):Promise.resolve("")];return Promise.all(n).then(([n,o,r,i])=>Ac({url:"/guide/registration/applications",method:"POST",authenticated:!1,data:{realName:e.name,gender:"男"===e.gender?1:2,ageRange:e.age,workYearRange:e.workYear,guideType:e.guideType,teamId:e.teamId,idCardNo:e.idNo,idCardFrontUrl:n,idCardBackUrl:o,guideCertificateUrl:r,qualificationCertificateUrl:i},headers:{"X-Registration-Token":t.registrationToken}})).then(e=>(Cn.removeStorageSync(qc),e))},exports.t=e=>(e=>g(e)?e:null==e?"":p(e)||v(e)&&(e.toString===_||!h(e.toString))?JSON.stringify(e,U,2):String(e))(e),exports.updateGuideOnlineStatus=function(e,t={}){let n=Promise.resolve(e);return"online"===e?n=Ac({url:"/guide/receiving/start",method:"POST",data:t}):"offline"===e&&(n=Ac({url:"/guide/receiving/stop",method:"PUT"})),n.then(()=>{const n=Cn.getStorageSync(kc);return n&&n.guide&&(n.guide.onlineStatus=e,"online"!==e&&"serving"!==e||(n.guide.receivingConfig=t),"offline"===e&&(n.guide.receivingConfig=null),Cn.setStorageSync(kc,n)),e})},exports.uploadGuideAvatar=function(e){return Tc({url:"/guide/profile/avatar",filePath:e}).then(Rc)},exports.upxToPx=function(e){try{return Cn.upx2px(e)}catch(t){return 0}},exports.verifyOldPhone=function(e,t){return Ac({url:"/guide/profile/phone-change/verify-old",method:"POST",data:{phone:e,code:t}}).then(e=>(Cn.setStorageSync(jc,e),e))},exports.verifyRegistrationPhone=function(e,t){return Ac({url:"/guide/registration/verify-phone",method:"POST",authenticated:!1,data:{phone:e,code:t}}).then(t=>{const n={phone:e,...t};return Cn.setStorageSync(qc,n),n})}; |
| | | function e(e,t){const n=new Set(e.split(","));return e=>n.has(e)}const t={},n=[],o=()=>{},r=()=>!1,i=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),s=e=>e.startsWith("onUpdate:"),c=Object.assign,a=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},u=Object.prototype.hasOwnProperty,l=(e,t)=>u.call(e,t),p=Array.isArray,f=e=>"[object Map]"===x(e),d=e=>"[object Set]"===x(e),h=e=>"function"==typeof e,g=e=>"string"==typeof e,m=e=>"symbol"==typeof e,v=e=>null!==e&&"object"==typeof e,y=e=>(v(e)||h(e))&&h(e.then)&&h(e.catch),_=Object.prototype.toString,x=e=>_.call(e),w=e=>"[object Object]"===x(e),b=e=>g(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,S=e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),$=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},P=/-(\w)/g,k=$(e=>e.replace(P,(e,t)=>t?t.toUpperCase():"")),O=/\B([A-Z])/g,C=$(e=>e.replace(O,"-$1").toLowerCase()),E=$(e=>e.charAt(0).toUpperCase()+e.slice(1)),I=$(e=>e?`on${E(e)}`:""),A=(e,t)=>!Object.is(e,t),T=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},N=e=>{const t=parseFloat(e);return isNaN(t)?e:t};function L(e){if(p(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=g(o)?D(o):L(o);if(r)for(const e in r)t[e]=r[e]}return t}if(g(e)||v(e))return e}const R=/;(?![^(]*\))/g,j=/:([^]+)/,M=/\/\*[^]*?\*\//g;function D(e){const t={};return e.replace(M,"").split(R).forEach(e=>{if(e){const n=e.split(j);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function V(e){let t="";if(g(e))t=e;else if(p(e))for(let n=0;n<e.length;n++){const o=V(e[n]);o&&(t+=o+" ")}else if(v(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const U=(e,t)=>t&&t.__v_isRef?U(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],o)=>(e[H(t,o)+" =>"]=n,e),{})}:d(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>H(e))}:m(t)?H(t):!v(t)||p(t)||w(t)?t:String(t),H=(e,t="")=>{var n;return m(e)?`Symbol(${null!=(n=e.description)?n:t})`:e},B="onShow",W="onHide",z="onLaunch",F="onError",G="onThemeChange",q="onPageNotFound",K="onUnhandledRejection",J="onLoad",X="onReady",Z="onUnload",Q="onInit",Y="onSaveExitState",ee="onUploadDouyinVideo",te="onLiveMount",ne="onTitleClick",oe="onResize",re="onBackPress",ie="onPageScroll",se="onTabItemTap",ce="onReachBottom",ae="onPullDownRefresh",ue="onShareTimeline",le="onShareChat",pe="onCopyUrl",fe="onAddToFavorites",de="onShareAppMessage",he="onNavigationBarButtonTap",ge="onNavigationBarSearchInputClicked",me="onNavigationBarSearchInputChanged",ve="onNavigationBarSearchInputConfirmed",ye="onNavigationBarSearchInputFocusChanged",_e="virtualHostId",xe=/:/g;function we(e,t=null){let n;return(...o)=>(e&&(n=e.apply(t,o),e=null),n)}function be(e,t){if(!g(t))return;const n=(t=t.replace(/\[(\d+)\]/g,".$1")).split(".");let o=n[0];return e||(e={}),1===n.length?e[o]:be(e[o],n.slice(1).join("."))}const Se=encodeURIComponent;function $e(e,t=Se){const n=e?Object.keys(e).map(n=>{let o=e[n];return void 0===typeof o||null===o?o="":w(o)&&(o=JSON.stringify(o)),t(n)+"="+t(o)}).filter(e=>e.length>0).join("&"):null;return n?`?${n}`:""}const Pe=[Q,J,B,W,Z,oe,re,ie,se,ce,ae,ue,de,le,pe,ee,te,ne,fe,Y,he,ge,me,ve,ye];const ke=[B,W,z,F,G,q,K,"onExit",Q,J,X,Z,oe,re,ie,se,ce,ae,ue,fe,de,le,pe,ee,te,ne,Y,he,ge,me,ve,ye,"onLastPageBackPress"],Oe=(()=>({onPageScroll:1,onShareAppMessage:2,onShareTimeline:4,onShareChat:8,onCopyUrl:16,onUploadDouyinVideo:32,onLiveMount:64,onTitleClick:128}))();function Ce(e,t,n=!0){return!(n&&!h(t))&&(ke.indexOf(e)>-1||0===e.indexOf("on"))}let Ee;const Ie=[];const Ae=we((e,t)=>t(e)),Te=function(){};Te.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 r(){o.off(e,r),t.apply(n,arguments)}return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),o=0,r=n.length;o<r;o++)n[o].fn.apply(n[o].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),o=n[e],r=[];if(o&&t){for(var i=o.length-1;i>=0;i--)if(o[i].fn===t||o[i].fn._===t||o[i]._id===t){o.splice(i,1);break}r=o}return r.length?n[e]=r:delete n[e],this}};var Ne=Te;const Le="zh-Hans",Re="zh-Hant",je="en";function Me(e,t){if(!e)return;if("chinese"===(e=(e=e.trim().replace(/_/g,"-")).toLowerCase()))return Le;if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?Le:e.indexOf("-hant")>-1?Re:(n=e,["-tw","-hk","-mo","-cht"].find(e=>-1!==n.indexOf(e))?Re:Le);var n;const o=function(e,t){return t.find(t=>0===e.indexOf(t))}(e,[je,"fr","es"]);return o||void 0}function De(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}let Ve=1;const Ue={};function He(e,t,n){if("number"==typeof e){const o=Ue[e];if(o)return o.keepAlive||delete Ue[e],o.callback(t,n)}return t}const Be="success",We="fail",ze="complete";function Fe(e,t={},{beforeAll:n,beforeSuccess:o}={}){w(t)||(t={});const{success:r,fail:i,complete:s}=function(e){const t={};for(const n in e){const o=e[n];h(o)&&(t[n]=De(o),delete e[n])}return t}(t),c=h(r),a=h(i),u=h(s),l=Ve++;return function(e,t,n,o=!1){Ue[e]={name:t,keepAlive:o,callback:n}}(l,e,l=>{(l=l||{}).errMsg=function(e,t){return e&&-1!==e.indexOf(":fail")?t+e.substring(e.indexOf(":fail")):t+":ok"}(l.errMsg,e),h(n)&&n(l),l.errMsg===e+":ok"?(h(o)&&o(l,t),c&&r(l)):a&&i(l),u&&s(l)}),l}const Ge="success",qe="fail",Ke="complete",Je={},Xe={};function Ze(e,t){return function(n){return e(n,t)||n}}function Qe(e,t,n){let o=!1;for(let r=0;r<e.length;r++){const i=e[r];if(o)o=Promise.resolve(Ze(i,n));else{const e=i(t,n);if(y(e)&&(o=Promise.resolve(e)),!1===e)return{then(){},catch(){}}}}return o||{then:e=>e(t),catch(){}}}function Ye(e,t={}){return[Ge,qe,Ke].forEach(n=>{const o=e[n];if(!p(o))return;const r=t[n];t[n]=function(e){Qe(o,e,t).then(e=>h(r)&&r(e)||e)}}),t}function et(e,t){const n=[];p(Je.returnValue)&&n.push(...Je.returnValue);const o=Xe[e];return o&&p(o.returnValue)&&n.push(...o.returnValue),n.forEach(e=>{t=e(t)||t}),t}function tt(e){const t=Object.create(null);Object.keys(Je).forEach(e=>{"returnValue"!==e&&(t[e]=Je[e].slice())});const n=Xe[e];return n&&Object.keys(n).forEach(e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))}),t}function nt(e,t,n,o){const r=tt(e);if(r&&Object.keys(r).length){if(p(r.invoke)){return Qe(r.invoke,n).then(n=>t(Ye(tt(e),n),...o))}return t(Ye(r,n),...o)}return t(n,...o)}function ot(e,t){return(n={},...o)=>function(e){return!(!w(e)||![Be,We,ze].find(t=>h(e[t])))}(n)?et(e,nt(e,t,c({},n),o)):et(e,new Promise((r,i)=>{nt(e,t,c({},n,{success:r,fail:i}),o)}))}function rt(e,t,n,o={}){const r=t+":fail";let i="";return i=n?0===n.indexOf(r)?n:r+" "+n:r,delete o.errCode,He(e,c({errMsg:i},o))}function it(e,t,n,o){const r=function(e){e[0]}(t);if(r)return r}function st(e,t,n,o){return n=>{const r=Fe(e,n,o),i=it(0,[n]);return i?rt(r,e,i):t(n,{resolve:t=>function(e,t,n){return He(e,c(n||{},{errMsg:t+":ok"}))}(r,e,t),reject:(t,n)=>rt(r,e,function(e){return!e||g(e)?e:e.stack?("undefined"!=typeof globalThis&&globalThis.harmonyChannel||console.error(e.message+"\n"+e.stack),e.message):e}(t),n)})}}function ct(e,t,n,o){return function(e,t){return(...e)=>{const n=it(0,e);if(n)throw new Error(n);return t.apply(null,e)}}(0,t)}let at=!1,ut=0,lt=0;const pt=ct(0,(e,t)=>{if(0===ut&&function(){var e,t;let n,o,r;{const i=(null===(e=wx.getWindowInfo)||void 0===e?void 0:e.call(wx))||wx.getSystemInfoSync(),s=(null===(t=wx.getDeviceInfo)||void 0===t?void 0:t.call(wx))||wx.getSystemInfoSync();n=i.windowWidth,o=i.pixelRatio,r=s.platform}ut=n,lt=o,at="ios"===r}(),0===(e=Number(e)))return 0;let n=e/750*(t||ut);return n<0&&(n=-n),n=Math.floor(n+1e-4),0===n&&(n=1!==lt&&at?.5:1),e<0?-n:n});function ft(e,t){Object.keys(t).forEach(n=>{h(t[n])&&(e[n]=function(e,t){const n=t?e?e.concat(t):p(t)?t:[t]:e;return n?function(e){const t=[];for(let n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}(e[n],t[n]))})}function dt(e,t){e&&t&&Object.keys(t).forEach(n=>{const o=e[n],r=t[n];p(o)&&h(r)&&a(o,r)})}const ht=ct(0,(e,t)=>{g(e)&&w(t)?ft(Xe[e]||(Xe[e]={}),t):w(e)&&ft(Je,e)}),gt=ct(0,(e,t)=>{g(e)?w(t)?dt(Xe[e],t):delete Xe[e]:w(e)&&dt(Je,e)});const mt=new class{constructor(){this.$emitter=new Ne}on(e,t){return this.$emitter.on(e,t)}once(e,t){return this.$emitter.once(e,t)}off(e,t){e?this.$emitter.off(e,t):this.$emitter.e={}}emit(e,...t){this.$emitter.emit(e,...t)}},vt=ct(0,(e,t)=>(mt.on(e,t),()=>mt.off(e,t))),yt=ct(0,(e,t)=>(mt.once(e,t),()=>mt.off(e,t))),_t=ct(0,(e,t)=>{p(e)||(e=e?[e]:[]),e.forEach(e=>{mt.off(e,t)})}),xt=ct(0,(e,...t)=>{mt.emit(e,...t)});let wt,bt,St;function $t(e){try{return JSON.parse(e)}catch(t){}return e}const Pt=[];function kt(e,t){Pt.forEach(n=>{n(e,t)}),Pt.length=0}const Ot=ot(Ct="getPushClientId",function(e,t,n,o){return st(e,t,0,o)}(Ct,(e,{resolve:t,reject:n})=>{Promise.resolve().then(()=>{void 0===St&&(St=!1,wt="",bt="uniPush is not enabled"),Pt.push((e,o)=>{e?t({cid:e}):n(o)}),void 0!==wt&&kt(wt,bt)})},0,Et));var Ct,Et;const It=[],At=/^\$|__f__|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|rpx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo|getSystemSetting|getAppAuthorizeSetting/,Tt=/^create|Manager$/,Nt=["createBLEConnection"],Lt=["request","downloadFile","uploadFile","connectSocket"],Rt=["createBLEConnection"],jt=/^on|^off/;function Mt(e){return Tt.test(e)&&-1===Nt.indexOf(e)}function Dt(e){return At.test(e)&&-1===Rt.indexOf(e)}function Vt(e){return-1!==Lt.indexOf(e)}function Ut(e){return!(Mt(e)||Dt(e)||function(e){return jt.test(e)&&"onPush"!==e}(e))}function Ht(e,t){return Ut(e)&&h(t)?function(n={},...o){return h(n.success)||h(n.fail)||h(n.complete)?et(e,nt(e,t,c({},n),o)):et(e,new Promise((r,i)=>{nt(e,t,c({},n,{success:r,fail:i}),o)}))}:t}Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then(n=>t.resolve(e&&e()).then(()=>n),n=>t.resolve(e&&e()).then(()=>{throw n}))});const Bt=["success","fail","cancel","complete"];const Wt=()=>{const e=h(getApp)&&getApp({allowDefault:!0});return e&&e.$vm?e.$vm.$locale:function(){var e;let t="";{const n=(null===(e=wx.getAppBaseInfo)||void 0===e?void 0:e.call(wx))||wx.getSystemInfoSync();t=Me(n&&n.language?n.language:je)||je}return t}()},zt=[];"undefined"!=typeof global&&(global.getLocale=Wt);const Ft="__DC_STAT_UUID";let Gt;function qt(e=wx){return function(t,n){Gt=Gt||e.getStorageSync(Ft),Gt||(Gt=Date.now()+""+Math.floor(1e7*Math.random()),wx.setStorage({key:Ft,data:Gt})),n.deviceId=Gt}}function Kt(e,t){if(e.safeArea){const n=e.safeArea;t.safeAreaInsets={top:n.top,left:n.left,right:e.windowWidth-n.right,bottom:e.screenHeight-n.bottom}}}function Jt(e,t){let n="",o="";switch(n=t,o=e.split(" ")[1]||"",n=n.toLowerCase(),n){case"harmony":case"ohos":case"openharmonyos":case"openharmony":n="harmonyos";break;case"iphone os":n="ios";break;case"mac":case"darwin":n="macos";break;case"windows_nt":n="windows"}return{osName:n,osVersion:o,system:e}}function Xt(e){return"ohos"===(e=e.toLowerCase())&&(e="harmonyos"),e}function Zt(e,t){const n=e.platform||"";let o=e.deviceType||"phone";{const e={ipad:"pad",windows:"pc",mac:"pc",linux:"pc",pc:"pc"},n=Object.keys(e),r=t.toLowerCase();for(let t=0;t<n.length;t++){const i=n[t];if(-1!==r.indexOf(i)){o=e[i];break}}}return"ohos_pc"===n&&(o="pc"),o}function Qt(e){let t=e;return t&&(t=t.toLowerCase()),t}function Yt(e){return Wt?Wt():e}function en(e){let t=e.hostName||"WeChat";return e.environment?t=e.environment:e.host&&e.host.env&&(t=e.host.env),t}const tn={returnValue:(e,t)=>{Kt(e,t),qt()(e,t),function(e,t){const{brand:n="",model:o="",system:r="",language:i="",theme:s,version:a,platform:u,fontSizeSetting:l,SDKVersion:p,pixelRatio:f,deviceOrientation:d}=e,{osName:h,osVersion:g,system:m}=Jt(r,u);let v=a,y=Zt(e,o),_=Qt(n),x=en(e),w=d,b=f,S=p;const $=(i||"").replace(/_/g,"-"),P={appId:"__UNI__F7E10FB",appName:"com.mingdao.guide",appVersion:"1.0.0",appVersionCode:"100",appLanguage:Yt($),uniCompileVersion:"5.12",uniCompilerVersion:"5.12",uniRuntimeVersion:"5.12",uniPlatform:"mp-weixin",deviceBrand:_,deviceModel:o,deviceType:y,devicePixelRatio:b,deviceOrientation:w,osName:h,osVersion:g,hostTheme:s,hostVersion:v,hostLanguage:$,hostName:x,hostSDKVersion:S,hostFontSizeSetting:l,windowTop:0,windowBottom:0,platform:Xt(u),system:m,osLanguage:void 0,osTheme:void 0,ua:void 0,hostPackageName:void 0,browserName:void 0,browserVersion:void 0,isUniAppX:!1};c(t,P)}(e,t)}},nn=tn,on={args(e,t){let n=parseInt(e.current);if(isNaN(n))return;const o=e.urls;if(!p(o))return;const r=o.length;return r?(n<0?n=0:n>=r&&(n=r-1),n>0?(t.current=o[n],t.urls=o.filter((e,t)=>!(t<n)||e!==o[n])):t.current=o[0],{indicator:!1,loop:!1}):void 0}},rn={args(e,t){t.alertText=e.title}},sn={returnValue:(e,t)=>{const{brand:n,model:o,system:r="",platform:i=""}=e;let s=Zt(e,o),a=Qt(n);qt()(e,t);const{osName:u,osVersion:l}=Jt(r,i);t=c(t,{deviceType:s,deviceBrand:a,deviceModel:o,osName:u,osVersion:l,platform:Xt(i)})}},cn={returnValue:(e,t)=>{const{version:n,language:o,SDKVersion:r,theme:i}=e;let s=en(e),a=(o||"").replace(/_/g,"-");const u={appId:"__UNI__F7E10FB",appName:"com.mingdao.guide",appVersion:"1.0.0",appVersionCode:"100",appLanguage:Yt(a),hostVersion:n,hostLanguage:a,hostName:s,hostSDKVersion:r,hostTheme:i,isUniAppX:!1,uniPlatform:"mp-weixin",uniCompileVersion:"5.12",uniCompilerVersion:"5.12",uniRuntimeVersion:"5.12"};c(t,u)}},an={returnValue:(e,t)=>{Kt(e,t),t=c(t,{windowTop:0,windowBottom:0})}},un={args(e){const t=getApp({allowDefault:!0})||{};t.$vm?zr(F,e,t.$vm.$):(wx.$onErrorHandlers||(wx.$onErrorHandlers=[]),wx.$onErrorHandlers.push(e))}},ln={args(e){const t=getApp({allowDefault:!0})||{};if(t.$vm){if(e.__weh){const n=t.$vm.$[F];if(n){const t=n.indexOf(e.__weh);t>-1&&n.splice(t,1)}}}else{if(!wx.$onErrorHandlers)return;const t=wx.$onErrorHandlers.findIndex(t=>t===e);-1!==t&&wx.$onErrorHandlers.splice(t,1)}}},pn={args(){if(wx.__uni_console__){if(wx.__uni_console_warned__)return;wx.__uni_console_warned__=!0,console.warn("开发模式下小程序日志回显会使用 socket 连接,为了避免冲突,建议使用 SocketTask 的方式去管理 WebSocket 或手动关闭日志回显功能。[详情](https://uniapp.dcloud.net.cn/tutorial/run/mp-log.html)")}}},fn=pn,dn={$on:vt,$off:_t,$once:yt,$emit:xt,upx2px:pt,rpx2px:pt,interceptors:{},addInterceptor:ht,removeInterceptor:gt,onCreateVueApp:function(e){if(Ee)return e(Ee);Ie.push(e)},invokeCreateVueAppHook:function(e){Ee=e,Ie.forEach(t=>t(e))},getLocale:Wt,setLocale:e=>{const t=h(getApp)&&getApp();if(!t)return!1;return t.$vm.$locale!==e&&(t.$vm.$locale=e,zt.forEach(t=>t({locale:e})),!0)},onLocaleChange:e=>{-1===zt.indexOf(e)&&zt.push(e)},getPushClientId:Ot,onPushMessage:e=>{-1===It.indexOf(e)&&It.push(e)},offPushMessage:e=>{if(e){const t=It.indexOf(e);t>-1&&It.splice(t,1)}else It.length=0},invokePushCallback:function(e){if("enabled"===e.type)St=!0;else if("clientId"===e.type)wt=e.cid,bt=e.errMsg,kt(wt,e.errMsg);else if("pushMsg"===e.type){const t={type:"receive",data:$t(e.message)};for(let e=0;e<It.length;e++){if((0,It[e])(t),t.stopped)break}}else"click"===e.type&&It.forEach(t=>{t({type:"click",data:$t(e.message)})})},__f__:function(e,t,...n){t&&n.push(t),console[e].apply(console,n)}};const hn=["qy","env","error","version","lanDebug","cloud","serviceMarket","router","worklet","__webpack_require_UNI_MP_PLUGIN__"],gn=["lanDebug","router","worklet"],mn=wx.getLaunchOptionsSync?wx.getLaunchOptionsSync():null;function vn(e){return(!mn||1154!==mn.scene||!gn.includes(e))&&(hn.indexOf(e)>-1||"function"==typeof wx[e])}function yn(){const e={};for(const t in wx)vn(t)&&(e[t]=wx[t]);return"undefined"!=typeof globalThis&&"undefined"==typeof requireMiniProgram&&(globalThis.wx=e),e}const _n=["__route__","__wxExparserNodeId__","__wxWebviewId__"],xn=(wn={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]},function({service:e,success:t,fail:n,complete:o}){let r;wn[e]?(r={errMsg:"getProvider:ok",service:e,provider:wn[e]},h(t)&&t(r)):(r={errMsg:"getProvider:fail:服务["+e+"]不存在"},h(n)&&n(r)),h(o)&&o(r)});var wn;const bn=yn();bn.getAppBaseInfo&&bn.getAppBaseInfo()||(bn.getAppBaseInfo=bn.getSystemInfoSync),bn.getWindowInfo&&bn.getWindowInfo()||(bn.getWindowInfo=bn.getSystemInfoSync),bn.getDeviceInfo&&bn.getDeviceInfo()||(bn.getDeviceInfo=bn.getSystemInfoSync);let Sn=bn.getAppBaseInfo&&bn.getAppBaseInfo();Sn||(Sn=bn.getSystemInfoSync());const $n=Sn?Sn.host:null,Pn=$n&&"SAAASDK"===$n.env?bn.miniapp.shareVideoMessage:bn.shareVideoMessage;var kn=Object.freeze({__proto__:null,createSelectorQuery:function(){const e=bn.createSelectorQuery(),t=e.in;return e.in=function(e){return e.$scope?t.call(this,e.$scope):t.call(this,function(e){const t=Object.create(null);return _n.forEach(n=>{t[n]=e[n]}),t}(e))},e},getProvider:xn,shareVideoMessage:Pn});const On={args(e,t){e.compressedHeight&&!t.compressHeight&&(t.compressHeight=e.compressedHeight),e.compressedWidth&&!t.compressWidth&&(t.compressWidth=e.compressedWidth)}};var Cn=function(e,t,n=wx){const o=function(e){function t(e,t,n){return function(r){return t(o(e,r,n))}}function n(e,n,o={},r={},i=!1){if(w(n)){const s=!0===i?n:{};h(o)&&(o=o(n,s)||{});for(const c in n)if(l(o,c)){let t=o[c];h(t)&&(t=t(n[c],n,s)),t?g(t)?s[t]=n[c]:w(t)&&(s[t.name?t.name:c]=t.value):console.warn(`微信小程序 ${e} 暂不支持 ${c}`)}else if(-1!==Bt.indexOf(c)){const o=n[c];h(o)&&(s[c]=t(e,o,r))}else i||l(s,c)||(s[c]=n[c]);return s}return h(n)&&(h(o)&&o(n,{}),n=t(e,n,r)),n}function o(t,o,r,i=!1){return h(e.returnValue)&&(o=e.returnValue(t,o)),n(t,o,r,{},i||!1)}return function(t,r){const i=l(e,t);if(!i&&"function"!=typeof wx[t])return r;const s=i||h(e.returnValue)||Mt(t)||Vt(t),c=i||h(r);if(!i&&!r)return function(){console.error(`微信小程序 暂不支持${t}`)};if(!s||!c)return r;const a=e[t];return function(e,r){let i=a||{};h(a)&&(i=a(e));const s=[e=n(t,e,i.args,i.returnValue)];void 0!==r&&s.push(r);const c=wx[i.name||t].apply(wx,s);return(Mt(t)||Vt(t))&&c&&!c.__v_skip&&(c.__v_skip=!0),Dt(t)?o(t,c,i.returnValue,Mt(t)):c}}}(t);return new Proxy({},{get:(t,r)=>l(t,r)?t[r]:l(e,r)?Ht(r,e[r]):l(dn,r)?Ht(r,dn[r]):Ht(r,o(r,n[r]))})}(kn,Object.freeze({__proto__:null,compressImage:On,getAppAuthorizeSetting:{returnValue:function(e,t){const{locationReducedAccuracy:n}=e;t.locationAccuracy="unsupported",!0===n?t.locationAccuracy="reduced":!1===n&&(t.locationAccuracy="full")}},getAppBaseInfo:cn,getDeviceInfo:sn,getSystemInfo:tn,getSystemInfoSync:nn,getWindowInfo:an,offError:ln,onError:un,onSocketMessage:fn,onSocketOpen:pn,previewImage:on,redirectTo:{},showActionSheet:rn}),yn());let En,In;class An{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=En,!e&&En&&(this.index=(En.scopes||(En.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=En;try{return En=this,e()}finally{En=t}}}on(){En=this}off(){En=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}class Tn{constructor(e,t,n,o){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,function(e,t=En){t&&t.active&&t.effects.push(e)}(this,o)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,Un();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(Nn(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),Hn()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Mn,t=In;try{return Mn=!0,In=this,this._runnings++,Ln(this),this.fn()}finally{Rn(this),this._runnings--,In=t,Mn=e}}stop(){var e;this.active&&(Ln(this),Rn(this),null==(e=this.onStop)||e.call(this),this.active=!1)}}function Nn(e){return e.value}function Ln(e){e._trackId++,e._depsLength=0}function Rn(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)jn(e.deps[t],e);e.deps.length=e._depsLength}}function jn(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}let Mn=!0,Dn=0;const Vn=[];function Un(){Vn.push(Mn),Mn=!1}function Hn(){const e=Vn.pop();Mn=void 0===e||e}function Bn(){Dn++}function Wn(){for(Dn--;!Dn&&Fn.length;)Fn.shift()()}function zn(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&jn(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Fn=[];function Gn(e,t,n){Bn();for(const o of e.keys()){let n;o._dirtyLevel<t&&(null!=n?n:n=e.get(o)===o._trackId)&&(o._shouldSchedule||(o._shouldSchedule=0===o._dirtyLevel),o._dirtyLevel=t),o._shouldSchedule&&(null!=n?n:n=e.get(o)===o._trackId)&&(o.trigger(),o._runnings&&!o.allowRecurse||2===o._dirtyLevel||(o._shouldSchedule=!1,o.scheduler&&Fn.push(o.scheduler)))}Wn()}const qn=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Kn=new WeakMap,Jn=Symbol(""),Xn=Symbol("");function Zn(e,t,n){if(Mn&&In){let t=Kn.get(e);t||Kn.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=qn(()=>t.delete(n))),zn(In,o)}}function Qn(e,t,n,o,r,i){const s=Kn.get(e);if(!s)return;let c=[];if("clear"===t)c=[...s.values()];else if("length"===n&&p(e)){const e=Number(o);s.forEach((t,n)=>{("length"===n||!m(n)&&n>=e)&&c.push(t)})}else switch(void 0!==n&&c.push(s.get(n)),t){case"add":p(e)?b(n)&&c.push(s.get("length")):(c.push(s.get(Jn)),f(e)&&c.push(s.get(Xn)));break;case"delete":p(e)||(c.push(s.get(Jn)),f(e)&&c.push(s.get(Xn)));break;case"set":f(e)&&c.push(s.get(Jn))}Bn();for(const a of c)a&&Gn(a,4);Wn()}const Yn=e("__proto__,__v_isRef,__isVue"),eo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(m)),to=no();function no(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=Wo(this);for(let t=0,r=this.length;t<r;t++)Zn(n,0,t+"");const o=n[t](...e);return-1===o||!1===o?n[t](...e.map(Wo)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){Un(),Bn();const n=Wo(this)[t].apply(this,e);return Wn(),Hn(),n}}),e}function oo(e){const t=Wo(this);return Zn(t,0,e),t.hasOwnProperty(e)}class ro{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const o=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(o?r?Ro:Lo:r?No:To).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=p(e);if(!o){if(i&&l(to,t))return Reflect.get(to,t,n);if("hasOwnProperty"===t)return oo}const s=Reflect.get(e,t,n);return(m(t)?eo.has(t):Yn(t))?s:(o||Zn(e,0,t),r?s:Xo(s)?i&&b(t)?s:s.value:v(s)?o?Do(s):Mo(s):s)}}class io extends ro{constructor(e=!1){super(!1,e)}set(e,t,n,o){let r=e[t];if(!this._isShallow){const t=Ho(r);if(Bo(n)||Ho(n)||(r=Wo(r),n=Wo(n)),!p(e)&&Xo(r)&&!Xo(n))return!t&&(r.value=n,!0)}const i=p(e)&&b(t)?Number(t)<e.length:l(e,t),s=Reflect.set(e,t,n,o);return e===Wo(o)&&(i?A(n,r)&&Qn(e,"set",t,n):Qn(e,"add",t,n)),s}deleteProperty(e,t){const n=l(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&Qn(e,"delete",t,void 0),o}has(e,t){const n=Reflect.has(e,t);return m(t)&&eo.has(t)||Zn(e,0,t),n}ownKeys(e){return Zn(e,0,p(e)?"length":Jn),Reflect.ownKeys(e)}}class so extends ro{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const co=new io,ao=new so,uo=new io(!0),lo=e=>e,po=e=>Reflect.getPrototypeOf(e);function fo(e,t,n=!1,o=!1){const r=Wo(e=e.__v_raw),i=Wo(t);n||(A(t,i)&&Zn(r,0,t),Zn(r,0,i));const{has:s}=po(r),c=o?lo:n?Go:Fo;return s.call(r,t)?c(e.get(t)):s.call(r,i)?c(e.get(i)):void(e!==r&&e.get(t))}function ho(e,t=!1){const n=this.__v_raw,o=Wo(n),r=Wo(e);return t||(A(e,r)&&Zn(o,0,e),Zn(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function go(e,t=!1){return e=e.__v_raw,!t&&Zn(Wo(e),0,Jn),Reflect.get(e,"size",e)}function mo(e){e=Wo(e);const t=Wo(this);return po(t).has.call(t,e)||(t.add(e),Qn(t,"add",e,e)),this}function vo(e,t){t=Wo(t);const n=Wo(this),{has:o,get:r}=po(n);let i=o.call(n,e);i||(e=Wo(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?A(t,s)&&Qn(n,"set",e,t):Qn(n,"add",e,t),this}function yo(e){const t=Wo(this),{has:n,get:o}=po(t);let r=n.call(t,e);r||(e=Wo(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&Qn(t,"delete",e,void 0),i}function _o(){const e=Wo(this),t=0!==e.size,n=e.clear();return t&&Qn(e,"clear",void 0,void 0),n}function xo(e,t){return function(n,o){const r=this,i=r.__v_raw,s=Wo(i),c=t?lo:e?Go:Fo;return!e&&Zn(s,0,Jn),i.forEach((e,t)=>n.call(o,c(e),c(t),r))}}function wo(e,t,n){return function(...o){const r=this.__v_raw,i=Wo(r),s=f(i),c="entries"===e||e===Symbol.iterator&&s,a="keys"===e&&s,u=r[e](...o),l=n?lo:t?Go:Fo;return!t&&Zn(i,0,a?Xn:Jn),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[l(e[0]),l(e[1])]:l(e),done:t}},[Symbol.iterator](){return this}}}}function bo(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function So(){const e={get(e){return fo(this,e)},get size(){return go(this)},has:ho,add:mo,set:vo,delete:yo,clear:_o,forEach:xo(!1,!1)},t={get(e){return fo(this,e,!1,!0)},get size(){return go(this)},has:ho,add:mo,set:vo,delete:yo,clear:_o,forEach:xo(!1,!0)},n={get(e){return fo(this,e,!0)},get size(){return go(this,!0)},has(e){return ho.call(this,e,!0)},add:bo("add"),set:bo("set"),delete:bo("delete"),clear:bo("clear"),forEach:xo(!0,!1)},o={get(e){return fo(this,e,!0,!0)},get size(){return go(this,!0)},has(e){return ho.call(this,e,!0)},add:bo("add"),set:bo("set"),delete:bo("delete"),clear:bo("clear"),forEach:xo(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=wo(r,!1,!1),n[r]=wo(r,!0,!1),t[r]=wo(r,!1,!0),o[r]=wo(r,!0,!0)}),[e,n,t,o]}const[$o,Po,ko,Oo]=So();function Co(e,t){const n=t?e?Oo:ko:e?Po:$o;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(l(n,o)&&o in t?n:t,o,r)}const Eo={get:Co(!1,!1)},Io={get:Co(!1,!0)},Ao={get:Co(!0,!1)},To=new WeakMap,No=new WeakMap,Lo=new WeakMap,Ro=new WeakMap;function jo(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>x(e).slice(8,-1))(e))}function Mo(e){return Ho(e)?e:Vo(e,!1,co,Eo,To)}function Do(e){return Vo(e,!0,ao,Ao,Lo)}function Vo(e,t,n,o,r){if(!v(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=jo(e);if(0===s)return e;const c=new Proxy(e,2===s?o:n);return r.set(e,c),c}function Uo(e){return Ho(e)?Uo(e.__v_raw):!(!e||!e.__v_isReactive)}function Ho(e){return!(!e||!e.__v_isReadonly)}function Bo(e){return!(!e||!e.__v_isShallow)}function Wo(e){const t=e&&e.__v_raw;return t?Wo(t):e}function zo(e){return Object.isExtensible(e)&&((e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})})(e,"__v_skip",!0),e}const Fo=e=>v(e)?Mo(e):e,Go=e=>v(e)?Do(e):e;class qo{constructor(e,t,n,o){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Tn(()=>e(this._value),()=>Jo(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=Wo(this);return e._cacheable&&!e.effect.dirty||!A(e._value,e._value=e.effect.run())||Jo(e,4),Ko(e),e.effect._dirtyLevel>=2&&Jo(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Ko(e){var t;Mn&&In&&(e=Wo(e),zn(In,null!=(t=e.dep)?t:e.dep=qn(()=>e.dep=void 0,e instanceof qo?e:void 0)))}function Jo(e,t=4,n){const o=(e=Wo(e)).dep;o&&Gn(o,t)}function Xo(e){return!(!e||!0!==e.__v_isRef)}function Zo(e){return function(e,t){if(Xo(e))return e;return new Qo(e,t)}(e,!1)}class Qo{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Wo(e),this._value=t?e:Fo(e)}get value(){return Ko(this),this._value}set value(e){const t=this.__v_isShallow||Bo(e)||Ho(e);e=t?e:Wo(e),A(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Fo(e),Jo(this,4))}}function Yo(e){return Xo(e)?e.value:e}const er={get:(e,t,n)=>Yo(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Xo(r)&&!Xo(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function tr(e){return Uo(e)?e:new Proxy(e,er)}function nr(e,t,n,o){try{return o?e(...o):e()}catch(r){rr(r,t,n)}}function or(e,t,n,o){if(h(e)){const r=nr(e,t,n,o);return r&&y(r)&&r.catch(e=>{rr(e,t,n)}),r}const r=[];for(let i=0;i<e.length;i++)r.push(or(e[i],t,n,o));return r}function rr(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let o=t.parent;const r=t.proxy,i=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,i))return;o=o.parent}const s=t.appContext.config.errorHandler;if(s)return void nr(s,null,10,[e,r,i])}ir(e,n,r,o)}function ir(e,t,n,o=!0){console.error(e)}let sr=!1,cr=!1;const ar=[];let ur=0;const lr=[];let pr=null,fr=0;const dr=Promise.resolve();let hr=null;function gr(e){const t=hr||dr;return e?t.then(this?e.bind(this):e):t}function mr(e){ar.length&&ar.includes(e,sr&&e.allowRecurse?ur+1:ur)||(null==e.id?ar.push(e):ar.splice(function(e){let t=ur+1,n=ar.length;for(;t<n;){const o=t+n>>>1,r=ar[o],i=xr(r);i<e||i===e&&r.pre?t=o+1:n=o}return t}(e.id),0,e),vr())}function vr(){sr||cr||(cr=!0,hr=dr.then(br))}function yr(e){p(e)?lr.push(...e):pr&&pr.includes(e,e.allowRecurse?fr+1:fr)||lr.push(e),vr()}function _r(e,t,n=(sr?ur+1:0)){for(;n<ar.length;n++){const e=ar[n];e&&e.pre&&(ar.splice(n,1),n--,e())}}const xr=e=>null==e.id?1/0:e.id,wr=(e,t)=>{const n=xr(e)-xr(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function br(e){cr=!1,sr=!0,ar.sort(wr);try{for(ur=0;ur<ar.length;ur++){const e=ar[ur];e&&!1!==e.active&&nr(e,null,14)}}finally{ur=0,ar.length=0,function(){if(lr.length){const e=[...new Set(lr)].sort((e,t)=>xr(e)-xr(t));if(lr.length=0,pr)return void pr.push(...e);for(pr=e,fr=0;fr<pr.length;fr++)pr[fr]();pr=null,fr=0}}(),sr=!1,hr=null,(ar.length||lr.length)&&br()}}function Sr(e,n,...o){if(e.isUnmounted)return;const r=e.vnode.props||t;let i=o;const s=n.startsWith("update:"),c=s&&n.slice(7);if(c&&c in r){const e=`${"modelValue"===c?"model":c}Modifiers`,{number:n,trim:s}=r[e]||t;s&&(i=o.map(e=>g(e)?e.trim():e)),n&&(i=o.map(N))}let a,u=r[a=I(n)]||r[a=I(k(n))];!u&&s&&(u=r[a=I(C(n))]),u&&or(u,e,6,i);const l=r[a+"Once"];if(l){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,or(l,e,6,i)}}function $r(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const i=e.emits;let s={},a=!1;if(!h(e)){const o=e=>{const n=$r(e,t,!0);n&&(a=!0,c(s,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return i||a?(p(i)?i.forEach(e=>s[e]=null):c(s,i),v(e)&&o.set(e,s),s):(v(e)&&o.set(e,null),null)}function Pr(e,t){return!(!e||!i(t))&&(t=t.slice(2).replace(/Once$/,""),l(e,t[0].toLowerCase()+t.slice(1))||l(e,C(t))||l(e,t))}let kr=null;function Or(e){const t=kr;return kr=e,e&&e.type.__scopeId,t}function Cr(e,t){return e&&(e[t]||e[k(t)]||e[E(k(t))])}const Er={};function Ir(e,t,n){return Ar(e,t,n)}function Ar(e,n,{immediate:r,deep:i,flush:s,once:c,onTrack:u,onTrigger:l}=t){if(n&&c){const e=n;n=(...t)=>{e(...t),P()}}const f=Ni,d=e=>!0===i?e:Lr(e,!1===i?1:void 0);let g,m,v=!1,y=!1;if(Xo(e)?(g=()=>e.value,v=Bo(e)):Uo(e)?(g=()=>d(e),v=!0):p(e)?(y=!0,v=e.some(e=>Uo(e)||Bo(e)),g=()=>e.map(e=>Xo(e)?e.value:Uo(e)?d(e):h(e)?nr(e,f,2):void 0)):g=h(e)?n?()=>nr(e,f,2):()=>(m&&m(),or(e,f,3,[_])):o,n&&i){const e=g;g=()=>Lr(e())}let _=e=>{m=S.onStop=()=>{nr(e,f,4),m=S.onStop=void 0}},x=y?new Array(e.length).fill(Er):Er;const w=()=>{if(S.active&&S.dirty)if(n){const e=S.run();(i||v||(y?e.some((e,t)=>A(e,x[t])):A(e,x)))&&(m&&m(),or(n,f,3,[e,x===Er?void 0:y&&x[0]===Er?[]:x,_]),x=e)}else S.run()};let b;w.allowRecurse=!!n,"sync"===s?b=w:"post"===s?b=()=>Ci(w,f&&f.suspense):(w.pre=!0,f&&(w.id=f.uid),b=()=>mr(w));const S=new Tn(g,o,b),$=En,P=()=>{S.stop(),$&&a($.effects,S)};return n?r?w():x=S.run():"post"===s?Ci(S.run.bind(S),f&&f.suspense):S.run(),P}function Tr(e,t,n){const o=this.proxy,r=g(e)?e.includes(".")?Nr(o,e):()=>o[e]:e.bind(o,o);let i;h(t)?i=t:(i=t.handler,n=t);const s=Mi(this),c=Ar(r,i.bind(o),n);return s(),c}function Nr(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function Lr(e,t,n=0,o){if(!v(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if((o=o||new Set).has(e))return e;if(o.add(e),Xo(e))Lr(e.value,t,n,o);else if(p(e))for(let r=0;r<e.length;r++)Lr(e[r],t,n,o);else if(d(e)||f(e))e.forEach(e=>{Lr(e,t,n,o)});else if(w(e))for(const r in e)Lr(e[r],t,n,o);return e}function Rr(){return{app:null,config:{isNativeTag:r,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let jr=0;let Mr=null;function Dr(e,t,n=!1){const o=Ni||kr;if(o||Mr){const r=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Mr._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&h(t)?t.call(o&&o.proxy):t}}const Vr=e=>e.type.__isKeepAlive;function Ur(e,t){Br(e,"a",t)}function Hr(e,t){Br(e,"da",t)}function Br(e,t,n=Ni){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(zr(t,o,n),n){let e=n.parent;for(;e&&e.parent;)Vr(e.parent.vnode)&&Wr(o,t,n,e),e=e.parent}}function Wr(e,t,n,o){const r=zr(t,e,o,!0);Zr(()=>{a(o[t],r)},n)}function zr(e,t,n=Ni,o=!1){if(n){(function(e){return Pe.indexOf(e)>-1})(e)&&(n=n.root);const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Un();const r=Mi(n),i=or(t,n,e,o);return r(),Hn(),i});return o?r.unshift(i):r.push(i),i}}const Fr=e=>(t,n=Ni)=>(!Ui||"sp"===e)&&zr(e,(...e)=>t(...e),n),Gr=Fr("bm"),qr=Fr("m"),Kr=Fr("bu"),Jr=Fr("u"),Xr=Fr("bum"),Zr=Fr("um"),Qr=Fr("sp"),Yr=Fr("rtg"),ei=Fr("rtc");function ti(e,t=Ni){zr("ec",e,t)}const ni=e=>e?Vi(e)?Wi(e)||e.proxy:ni(e.parent):null;const oi=c(Object.create(null),{$:function(e){return e},$el:e=>e.__$el||(e.__$el={}),$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ni(e.parent),$root:e=>ni(e.root),$emit:e=>e.emit,$options:e=>pi(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,mr(e.update)}),$watch:e=>Tr.bind(e)}),ri=(e,n)=>e!==t&&!e.__isScriptSetup&&l(e,n),ii={get({_:e},n){const{ctx:o,setupState:r,data:i,props:s,accessCache:c,type:a,appContext:u}=e;let p;if("$"!==n[0]){const a=c[n];if(void 0!==a)switch(a){case 1:return r[n];case 2:return i[n];case 4:return o[n];case 3:return s[n]}else{if(ri(r,n))return c[n]=1,r[n];if(i!==t&&l(i,n))return c[n]=2,i[n];if((p=e.propsOptions[0])&&l(p,n))return c[n]=3,s[n];if(o!==t&&l(o,n))return c[n]=4,o[n];ci&&(c[n]=0)}}const f=oi[n];let d,h;return f?("$attrs"===n&&Zn(e,0,n),f(e)):(d=a.__cssModules)&&(d=d[n])?d:o!==t&&l(o,n)?(c[n]=4,o[n]):e.exposed&&l(e.exposed,n)?e.exposed[n]:(h=u.config.globalProperties,l(h,n)?h[n]:void 0)},set({_:e},n,o){const{data:r,setupState:i,ctx:s}=e;return ri(i,n)?(i[n]=o,!0):r!==t&&l(r,n)?(r[n]=o,!0):!l(e.props,n)&&(("$"!==n[0]||!(n.slice(1)in e))&&(s[n]=o,!0))},has({_:{data:e,setupState:n,accessCache:o,ctx:r,appContext:i,propsOptions:s}},c){let a;return!!o[c]||e!==t&&l(e,c)||ri(n,c)||(a=s[0])&&l(a,c)||l(r,c)||l(oi,c)||l(i.config.globalProperties,c)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:l(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function si(e){return p(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}let ci=!0;function ai(e){const t=pi(e),n=e.proxy,r=e.ctx;ci=!1,t.beforeCreate&&ui(t.beforeCreate,e,"bc");const{data:i,computed:s,methods:c,watch:a,provide:u,inject:l,created:f,beforeMount:d,mounted:g,beforeUpdate:m,updated:y,activated:_,deactivated:x,beforeDestroy:w,beforeUnmount:b,destroyed:S,unmounted:$,render:P,renderTracked:k,renderTriggered:O,errorCaptured:C,serverPrefetch:E,expose:I,inheritAttrs:A,components:T,directives:N,filters:L}=t;if(l&&function(e,t){p(e)&&(e=gi(e));for(const n in e){const o=e[n];let r;r=v(o)?"default"in o?Dr(o.from||n,o.default,!0):Dr(o.from||n):Dr(o),Xo(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(l,r),c)for(const o in c){const e=c[o];h(e)&&(r[o]=e.bind(n))}if(i){const t=i.call(n,n);v(t)&&(e.data=Mo(t))}if(ci=!0,s)for(const p in s){const e=s[p],t=h(e)?e.bind(n,n):h(e.get)?e.get.bind(n,n):o,i=!h(e)&&h(e.set)?e.set.bind(n):o,c=zi({get:t,set:i});Object.defineProperty(r,p,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e})}if(a)for(const o in a)li(a[o],r,n,o);function R(e,t){p(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(function(){if(u){const e=h(u)?u.call(n):u;Reflect.ownKeys(e).forEach(t=>{!function(e,t){if(Ni){let n=Ni.provides;const o=Ni.parent&&Ni.parent.provides;o===n&&(n=Ni.provides=Object.create(o)),n[e]=t,"app"===Ni.type.mpType&&Ni.appContext.app.provide(e,t)}}(t,e[t])})}}(),f&&ui(f,e,"c"),R(Gr,d),R(qr,g),R(Kr,m),R(Jr,y),R(Ur,_),R(Hr,x),R(ti,C),R(ei,k),R(Yr,O),R(Xr,b),R(Zr,$),R(Qr,E),p(I))if(I.length){const t=e.exposed||(e.exposed={});I.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})})}else e.exposed||(e.exposed={});P&&e.render===o&&(e.render=P),null!=A&&(e.inheritAttrs=A),T&&(e.components=T),N&&(e.directives=N),e.ctx.$onApplyOptions&&e.ctx.$onApplyOptions(t,e,n)}function ui(e,t,n){or(p(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function li(e,t,n,o){const r=o.includes(".")?Nr(n,o):()=>n[o];if(g(e)){const n=t[e];h(n)&&Ir(r,n)}else if(h(e))Ir(r,e.bind(n));else if(v(e))if(p(e))e.forEach(e=>li(e,t,n,o));else{const o=h(e.handler)?e.handler.bind(n):t[e.handler];h(o)&&Ir(r,o,e)}}function pi(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,c=i.get(t);let a;return c?a=c:r.length||n||o?(a={},r.length&&r.forEach(e=>fi(a,e,s,!0)),fi(a,t,s)):a=t,v(t)&&i.set(t,a),a}function fi(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&fi(e,i,n,!0),r&&r.forEach(t=>fi(e,t,n,!0));for(const s in t)if(o&&"expose"===s);else{const o=di[s]||n&&n[s];e[s]=o?o(e[s],t[s]):t[s]}return e}const di={data:hi,props:yi,emits:yi,methods:vi,computed:vi,beforeCreate:mi,created:mi,beforeMount:mi,mounted:mi,beforeUpdate:mi,updated:mi,beforeDestroy:mi,beforeUnmount:mi,destroyed:mi,unmounted:mi,activated:mi,deactivated:mi,errorCaptured:mi,serverPrefetch:mi,components:vi,directives:vi,watch:function(e,t){if(!e)return t;if(!t)return e;const n=c(Object.create(null),e);for(const o in t)n[o]=mi(e[o],t[o]);return n},provide:hi,inject:function(e,t){return vi(gi(e),gi(t))}};function hi(e,t){return t?e?function(){return c(h(e)?e.call(this,this):e,h(t)?t.call(this,this):t)}:t:e}function gi(e){if(p(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function mi(e,t){return e?[...new Set([].concat(e,t))]:t}function vi(e,t){return e?c(Object.create(null),e,t):t}function yi(e,t){return e?p(e)&&p(t)?[...new Set([...e,...t])]:c(Object.create(null),si(e),si(null!=t?t:{})):t}function _i(e,t,n,o=!1){const r={},i={};e.propsDefaults=Object.create(null),xi(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:Vo(r,!1,uo,Io,No):e.type.props?e.props=r:e.props=i,e.attrs=i}function xi(e,n,o,r){const[i,s]=e.propsOptions;let c,a=!1;if(n)for(let t in n){if(S(t))continue;const u=n[t];let p;i&&l(i,p=k(t))?s&&s.includes(p)?(c||(c={}))[p]=u:o[p]=u:Pr(e.emitsOptions,t)||t in r&&u===r[t]||(r[t]=wi(e,t,u),a=!0)}if(s){const n=Wo(o),r=c||t;for(let t=0;t<s.length;t++){const c=s[t];o[c]=bi(i,n,c,r[c],e,!l(r,c))}}return a}function wi(e,t,n){return n}function bi(e,t,n,o,r,i){const s=function(e,t,n,o,r,i){const s=e[n];if(null!=s){const e=l(s,"default");if(e&&void 0===o){const e=s.default;if(s.type!==Function&&!s.skipFactory&&h(e)){const{propsDefaults:i}=r;if(n in i)o=i[n];else{const s=Mi(r);o=i[n]=e.call(null,t),s()}}else o=e}s[0]&&(i&&!e?o=!1:!s[1]||""!==o&&o!==C(n)||(o=!0))}return o}(e,t,n,o,r,i);return s}function Si(e,o,r=!1){const i=o.propsCache,s=i.get(e);if(s)return s;const a=e.props,u={},f=[];let d=!1;if(!h(e)){const t=e=>{d=!0;const[t,n]=Si(e,o,!0);c(u,t),n&&f.push(...n)};!r&&o.mixins.length&&o.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!a&&!d)return v(e)&&i.set(e,n),n;if(p(a))for(let n=0;n<a.length;n++){const e=k(a[n]);$i(e)&&(u[e]=t)}else if(a)for(const t in a){const e=k(t);if($i(e)){const n=a[t],o=u[e]=p(n)||h(n)?{type:n}:c({},n);if(o){const t=Oi(Boolean,o.type),n=Oi(String,o.type);o[0]=t>-1,o[1]=n<0||t<n,(t>-1||l(o,"default"))&&f.push(e)}}}const g=[u,f];return v(e)&&i.set(e,g),g}function $i(e){return"$"!==e[0]&&!S(e)}function Pi(e){if(null===e)return"null";if("function"==typeof e)return e.name||"";if("object"==typeof e){return e.constructor&&e.constructor.name||""}return""}function ki(e,t){return Pi(e)===Pi(t)}function Oi(e,t){return p(t)?t.findIndex(t=>ki(t,e)):h(t)&&ki(t,e)?0:-1}const Ci=yr;function Ei(e){return e?Uo(t=e)||Ho(t)||"__vInternal"in e?c({},e):e:null;var t}const Ii=Rr();let Ai=0;function Ti(e,n,o){const r=e.type,i=(n?n.appContext:e.appContext)||Ii,s={uid:Ai++,vnode:e,type:r,parent:n,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new An(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Si(r,i),emitsOptions:$r(r,i),emit:null,emitted:null,propsDefaults:t,inheritAttrs:r.inheritAttrs,ctx:t,data:t,props:t,attrs:t,slots:t,refs:t,setupState:t,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:o,suspenseId:o?o.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null,$uniElements:new Map,$templateUniElementRefs:[],$templateUniElementStyles:{},$eS:{},$eA:{}};return s.ctx={_:s},s.root=n?n.root:s,s.emit=Sr.bind(null,s),e.ce&&e.ce(s),s}let Ni=null;const Li=()=>Ni||kr;let Ri,ji;Ri=e=>{Ni=e},ji=e=>{Ui=e};const Mi=e=>{const t=Ni;return Ri(e),e.scope.on(),()=>{e.scope.off(),Ri(t)}},Di=()=>{Ni&&Ni.scope.off(),Ri(null)};function Vi(e){return 4&e.vnode.shapeFlag}let Ui=!1;function Hi(e,t=!1){t&&ji(t);const{props:n}=e.vnode,o=Vi(e);_i(e,n,o,t);const r=o?function(e){const t=e.type;e.accessCache=Object.create(null),e.proxy=zo(new Proxy(e.ctx,ii));const{setup:n}=t;if(n){const t=e.setupContext=n.length>1?function(e){const t=t=>{e.exposed=t||{}};return{get attrs(){return function(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get:(t,n)=>(Zn(e,0,"$attrs"),t[n])}))}(e)},slots:e.slots,emit:e.emit,expose:t}}(e):null,o=Mi(e);Un();const r=nr(n,e,0,[e.props,t]);Hn(),o(),y(r)?r.then(Di,Di):function(e,t){h(t)?e.render=t:v(t)&&(e.setupState=tr(t));Bi(e)}(e,r)}else Bi(e)}(e):void 0;return t&&ji(!1),r}function Bi(e,t,n){const r=e.type;e.render||(e.render=r.render||o);{const t=Mi(e);Un();try{ai(e)}finally{Hn(),t()}}}function Wi(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(tr(zo(e.exposed)),{get:(t,n)=>n in t?t[n]:e.proxy[n],has:(e,t)=>t in e||t in oi}))}const zi=(e,t)=>{const n=function(e,t,n=!1){let r,i;const s=h(e);return s?(r=e,i=o):(r=e.get,i=e.set),new qo(r,i,s||!i,n)}(e,0,Ui);return n},Fi="3.4.21";function Gi(e){return Yo(e)}const qi="[object Array]",Ki="[object Object]";function Ji(e,t){const n={};return Xi(e,t),Zi(e,t,"",n),n}function Xi(e,t){if((e=Gi(e))===t)return;const n=x(e),o=x(t);if(n==Ki&&o==Ki)for(let r in t){const n=e[r];void 0===n?e[r]=null:Xi(n,t[r])}else n==qi&&o==qi&&e.length>=t.length&&t.forEach((t,n)=>{Xi(e[n],t)})}function Zi(e,t,n,o){if((e=Gi(e))===t)return;const r=x(e),i=x(t);if(r==Ki)if(i!=Ki||Object.keys(e).length<Object.keys(t).length)Qi(o,n,e);else for(let s in e){const r=Gi(e[s]),i=t[s],c=x(r),a=x(i);if(c!=qi&&c!=Ki)r!=i&&Qi(o,(""==n?"":n+".")+s,r);else if(c==qi)a!=qi||r.length<i.length?Qi(o,(""==n?"":n+".")+s,r):r.forEach((e,t)=>{Zi(e,i[t],(""==n?"":n+".")+s+"["+t+"]",o)});else if(c==Ki)if(a!=Ki||Object.keys(r).length<Object.keys(i).length)Qi(o,(""==n?"":n+".")+s,r);else for(let e in r)Zi(r[e],i[e],(""==n?"":n+".")+s+"."+e,o)}else r==qi?i!=qi||e.length<t.length?Qi(o,n,e):e.forEach((e,r)=>{Zi(e,t[r],n+"["+r+"]",o)}):Qi(o,n,e)}function Qi(e,t,n){e[t]=n}function Yi(e){const t=e.ctx.__next_tick_callbacks;if(t&&t.length){const e=t.slice(0);t.length=0;for(let t=0;t<e.length;t++)e[t]()}}function es(e,t){const n=e.ctx;if(!n.__next_tick_pending&&!function(e){return ar.includes(e.update)}(e))return gr(t&&t.bind(e.proxy));let o;return n.__next_tick_callbacks||(n.__next_tick_callbacks=[]),n.__next_tick_callbacks.push(()=>{t?nr(t.bind(e.proxy),e,14):o&&o(e.proxy)}),new Promise(e=>{o=e})}function ts(e,t){const n=typeof(e=Gi(e));if("object"===n&&null!==e){let n=t.get(e);if(void 0!==n)return n;if(p(e)){const o=e.length;n=new Array(o),t.set(e,n);for(let r=0;r<o;r++)n[r]=ts(e[r],t)}else{n={},t.set(e,n);for(const o in e)l(e,o)&&(n[o]=ts(e[o],t))}return n}if("symbol"!==n)return e}function ns(e){return ts(e,"undefined"!=typeof WeakMap?new WeakMap:new Map)}function os(e,t,n){if(!t)return;(t=ns(t)).$eS=e.$eS||{},t.$eA=e.$eA||{};const o=e.ctx,r=o.mpType;if("page"===r||"component"===r){t.r0=1;const n=o.$scope,r=Ji(t,function(e,t){const n=e.data,o=Object.create(null);return t.forEach(e=>{o[e]=n[e]}),o}(n,Object.keys(t)));Object.keys(r).length?(o.__next_tick_pending=!0,n.setData(r,()=>{o.__next_tick_pending=!1,Yi(e)}),_r()):Yi(e)}}function rs(e,t,n){t.appContext.config.globalProperties.$applyOptions(e,t,n);const o=e.computed;if(o){const e=Object.keys(o);if(e.length){const n=t.ctx;n.$computedKeys||(n.$computedKeys=[]),n.$computedKeys.push(...e)}}delete t.ctx.$onApplyOptions}function is(e,t=!1){const{setupState:n,$templateRefs:o,$templateUniElementRefs:r,ctx:{$scope:i,$mpPlatform:s}}=e;if(!i||!o&&!r)return;if(t)return"mp-alipay"!==s&&o&&o.forEach(e=>ss(e,null,n)),void(r&&r.forEach(e=>ss(e,null,n)));const c="mp-baidu"===s||"mp-toutiao"===s,a=e=>{if(0===e.length)return[];const t=(i.selectAllComponents(".r")||[]).concat(i.selectAllComponents(".r-i-f")||[]);return e.filter(e=>{const o=function(e,t){const n=e.find(e=>e&&(e.properties||e.props).uI===t);if(n){const e=n.$vm;return e?Wi(e.$)||e:function(e){v(e)&&zo(e);return e}(n)}return null}(t,e.i);return!(!c||null!==o)||(ss(e,o,n),!1)})},u=()=>{if(o){const t=a(o);t.length&&e.proxy&&e.proxy.$scope&&e.proxy.$scope.setData({r1:1},()=>{a(t)})}};"mp-alipay"!==s&&(i._$setRef?i._$setRef(u):es(e,u)),r&&r.length&&es(e,()=>{r.forEach(e=>{p(e.v)?e.v.forEach(t=>{ss(e,t,n)}):ss(e,e.v,n)})})}function ss({r:e,f:t},n,o){if(h(e))e(n,{});else{const r=g(e),i=Xo(e);if(r||i)if(t){if(!i)return;p(e.value)||(e.value=[]);const t=e.value;if(-1===t.indexOf(n)){if(t.push(n),!n)return;n.$&&Xr(()=>a(t,n),n.$)}}else r?l(o,e)&&(o[e]=n):Xo(e)&&(e.value=n)}}const cs=yr;function as(e,t){const n=e.component=Ti(e,t.parentComponent,null);return n.renderer=t.mpType?t.mpType:"component",n.ctx.$onApplyOptions=rs,n.ctx.$children=[],"app"===t.mpType&&(n.render=o),t.onBeforeSetup&&t.onBeforeSetup(n,t),Hi(n),t.parentComponent&&n.proxy&&t.parentComponent.ctx.$children.push(Wi(n)||n.proxy),function(e){const t=hs.bind(e);e.$updateScopedSlots=()=>gr(()=>mr(t));const n=()=>{if(e.isMounted){const{next:t,bu:n,u:o}=e;gs(e,!1),ds(),n&&T(n),gs(e,!0),os(e,ps(e)),o&&cs(o)}else Xr(()=>{is(e,!0)},e),os(e,ps(e))},r=e.effect=new Tn(n,o,()=>mr(i),e.scope),i=e.update=()=>{r.dirty&&r.run()};i.id=e.uid,gs(e,!0),i()}(n),n.proxy}const us=e=>{let t;for(const n in e)("class"===n||"style"===n||i(n))&&((t||(t={}))[n]=e[n]);return t};function ls(e){return e?e.filter(e=>{const t=e.v;return!(!t||"object"!=typeof t||!["UNI-LOADING-ELEMENT","UNI-CLOUD-DB-ELEMENT"].includes(t.nodeName))}):[]}function ps(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:c,attrs:a,emit:u,render:l,renderCache:p,data:f,setupState:d,ctx:h,uid:g,appContext:{app:{config:{globalProperties:{pruneComponentPropsCache:m}}}},inheritAttrs:v}=e;let y;e.$uniElementIds=new Map,e.$templateRefs=ls(e.$templateRefs||[]),e.$templateUniElementRefs=ls(e.$templateUniElementRefs||[]),e.$templateUniElementStyles={},e.$ei=0,m(g),e.__counter=0===e.__counter?1:0;const _=Or(e);try{if(4&n.shapeFlag){fs(v,i,s,a);const e=r||o;y=l.call(e,e,p,i,d,f,h)}else{fs(v,i,s,t.props?a:us(a));const e=t;y=e.length>1?e(i,{attrs:a,slots:c,emit:u}):e(i,null)}}catch(x){rr(x,e,1),y=!1}return is(e),Or(_),y}function fs(e,t,n,o){if(t&&o&&!1!==e){const e=Object.keys(o).filter(e=>"class"!==e&&"style"!==e);if(!e.length)return;n&&e.some(s)?e.forEach(e=>{s(e)&&e.slice(9)in n||(t[e]=o[e])}):e.forEach(e=>t[e]=o[e])}}const ds=e=>{Un(),_r(),Hn()};function hs(){const e=this.$scopedSlotsData;if(!e||0===e.length)return;const t=this.ctx.$scope,n=t.data,o=Object.create(null);e.forEach(({path:e,index:t,data:r})=>{const i=be(n,e),s=g(t)?`${e}.${t}`:`${e}[${t}]`;if(void 0===i||void 0===i[t])o[s]=r;else{const e=Ji(r,i[t]);Object.keys(e).forEach(t=>{o[s+"."+t]=e[t]})}}),e.length=0,Object.keys(o).length&&t.setData(o)}function gs({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}const ms=function(e,t=null){h(e)||(e=c({},e)),null==t||v(t)||(t=null);const n=Rr(),o=new WeakSet,r=n.app={_uid:jr++,_component:e,_props:t,_container:null,_context:n,_instance:null,version:Fi,get config(){return n.config},set config(e){},use:(e,...t)=>(o.has(e)||(e&&h(e.install)?(o.add(e),e.install(r,...t)):h(e)&&(o.add(e),e(r,...t))),r),mixin:e=>(n.mixins.includes(e)||n.mixins.push(e),r),component:(e,t)=>t?(n.components[e]=t,r):n.components[e],directive:(e,t)=>t?(n.directives[e]=t,r):n.directives[e],mount(){},unmount(){},provide:(e,t)=>(n.provides[e]=t,r),runWithContext(e){const t=Mr;Mr=r;try{return e()}finally{Mr=t}}};return r};function vs(e,t=null){("undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof my?my:void 0).__VUE__=!0;const n=ms(e,t),r=n._context;r.config.globalProperties.$nextTick=function(e){return es(this.$,e)};const i=e=>(e.appContext=r,e.shapeFlag=6,e),s=function(e,t){return as(i(e),t)},c=function(e){return e&&function(e){const{bum:t,scope:n,update:o,um:r}=e;t&&T(t);{const t=e.parent;if(t){const n=t.ctx.$children,o=Wi(e)||e.proxy,r=n.indexOf(o);r>-1&&n.splice(r,1)}}n.stop(),o&&(o.active=!1),r&&cs(r),cs(()=>{e.isUnmounted=!0})}(e.$)};return n.mount=function(){e.render=o;const t=as(i({type:e}),{mpType:"app",mpInstance:null,parentComponent:null,slots:[],props:null});return n._instance=t.$,t.$app=n,t.$createComponent=s,t.$destroyComponent=c,r.$appInstance=t,t},n.unmount=function(){},n}function ys(e,t,n,o){h(t)&&zr(e,t.bind(n),o)}function _s(e,t,n){!function(e,t,n){const o=e.mpType||n.$mpType;!o||"component"===o||"page"===o&&"component"===t.renderer||Object.keys(e).forEach(o=>{if(Ce(o,e[o],!1)){const r=e[o];p(r)?r.forEach(e=>ys(o,e,n,t)):ys(o,r,n,t)}})}(e,t,n)}function xs(e,t,n){return e[t]=n}function ws(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function bs(e){const t=e.config.errorHandler;return function(n,o,r){t&&t(n,o,r);const i=e._instance;if(!i||!i.proxy)throw n;i[F]?i.proxy.$callHook(F,n):ir(n,0,o&&o.$.vnode,!1)}}function Ss(e,t){return e?[...new Set([].concat(e,t))]:t}let $s;const Ps="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ks=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Os(){const e=Cn.getStorageSync("uni_id_token")||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((o=t[1],decodeURIComponent($s(o).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))))}catch(r){throw new Error("获取当前用户信息出错,详细错误信息为:"+r.message)}var o;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}function Cs(e){const t=e.config;var n;t.errorHandler=Ae(e,bs),n=t.optionMergeStrategies,ke.forEach(e=>{n[e]=Ss});const o=t.globalProperties;!function(e){e.uniIDHasRole=function(e){const{role:t}=Os();return t.indexOf(e)>-1},e.uniIDHasPermission=function(e){const{permission:t}=Os();return this.uniIDHasRole("admin")||t.indexOf(e)>-1},e.uniIDTokenValid=function(){const{tokenExpired:e}=Os();return e>Date.now()}}(o),o.$set=xs,o.$applyOptions=_s,o.$callMethod=ws,Cn.invokeCreateVueAppHook(e)}$s="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!ks.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,o,r="",i=0;i<e.length;)t=Ps.indexOf(e.charAt(i++))<<18|Ps.indexOf(e.charAt(i++))<<12|(n=Ps.indexOf(e.charAt(i++)))<<6|(o=Ps.indexOf(e.charAt(i++))),r+=64===n?String.fromCharCode(t>>16&255):64===o?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return r}:atob;const Es=Object.create(null);function Is(e){delete Es[e]}function As(e){if(!e)return;const[t,n]=e.split(",");return Es[t]?Es[t][parseInt(n)]:void 0}var Ts={install(e){Cs(e),e.config.globalProperties.pruneComponentPropsCache=Is;const t=e.mount;e.mount=function(n){const o=t.call(e,n),r=function(){const e="createApp";if("undefined"!=typeof global&&void 0!==global[e])return global[e];if("undefined"!=typeof my)return my[e]}();return r?r(o):"undefined"!=typeof createMiniProgramApp&&createMiniProgramApp(o),o}}};function Ns(e){return g(e)?e:function(e){let t="";if(!e||g(e))return t;for(const n in e)t+=`${n.startsWith("--")?n:C(n)}:${e[n]};`;return t}(L(e))}function Ls(e,t){const n=Li(),r=n.ctx,i=void 0===t||"mp-weixin"!==r.$mpPlatform&&"mp-qq"!==r.$mpPlatform&&"mp-xhs"!==r.$mpPlatform||!g(t)&&"number"!=typeof t?"":"_"+t,s="e"+n.$ei+++i,a=r.$scope;if(!e)return delete a[s],s;const u=a[s];return u?u.value=e:a[s]=function(e,t){const n=e=>{var r;(r=e).type&&r.target&&(r.preventDefault=o,r.stopPropagation=o,r.stopImmediatePropagation=o,l(r,"detail")||(r.detail={}),l(r,"markerId")&&(r.detail="object"==typeof r.detail?r.detail:{},r.detail.markerId=r.markerId),w(r.detail)&&l(r.detail,"checked")&&!l(r.detail,"value")&&(r.detail.value=r.detail.checked),w(r.detail)&&(r.target=c({},r.target,r.detail)));let i=[e];t&&t.ctx.$getTriggerEventDetail&&"number"==typeof e.detail&&(e.detail=t.ctx.$getTriggerEventDetail(e.detail)),e.detail&&e.detail.__args__&&(i=e.detail.__args__);const s=n.value,a=()=>or(function(e,t){if(p(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n&&n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e(t))}return t}(e,s),t,5,i),u=e.target,f=!!u&&(!!u.dataset&&"true"===String(u.dataset.eventsync));if(!Rs.includes(e.type)||f){const t=a();if("input"===e.type&&(p(t)||y(t)))return;return t}setTimeout(a)};return n.value=e,n}(e,n),s}const Rs=["tap","longpress","longtap","transitionend","animationstart","animationiteration","animationend","touchforcechange"];const js=function(e,t=null){return e&&(e.mpType="app"),vs(e,t).use(Ts)};const Ms=["externalClasses"];const Ds=/_(.*)_worklet_factory_/;function Vs(e,t){const n=e.$children;for(let r=n.length-1;r>=0;r--){const e=n[r];if(e.$scope._$vueId===t)return e}let o;for(let r=n.length-1;r>=0;r--)if(o=Vs(n[r],t),o)return o}const Us=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];function Hs(e,t){const n=e.ctx;n.mpType=t.mpType,n.$mpType=t.mpType,n.$mpPlatform="mp-weixin",n.$scope=t.mpInstance,Object.defineProperties(n,{[_e]:{get(){const e=this.$scope.data[_e];return void 0===e?"":e}}}),n.$mp={},n._self={},e.slots={},p(t.slots)&&t.slots.length&&(t.slots.forEach(t=>{e.slots[t]=!0}),e.slots.d&&(e.slots.default=!0)),n.getOpenerEventChannel=function(){return t.mpInstance.getOpenerEventChannel()},n.$hasHook=Bs,n.$callHook=Ws,e.emit=function(e,t){return function(n,...o){const r=t.$scope;if(r&&n){const e={__args__:o};r.triggerEvent(n,e)}return e.apply(this,[n,...o])}}(e.emit,n)}function Bs(e){const t=this.$[e];return!(!t||!t.length)}function Ws(e,t){"mounted"===e&&(Ws.call(this,"bm"),this.$.isMounted=!0,e="m");const n=this.$[e];return n&&((e,t)=>{let n;for(let o=0;o<e.length;o++)n=e[o](t);return n})(n,t)}const zs=[J,B,W,Z,oe,se,ce,ae,fe];function Fs(e,t=new Set){if(e){Object.keys(e).forEach(n=>{Ce(n,e[n])&&t.add(n)});{const{extends:n,mixins:o}=e;o&&o.forEach(e=>Fs(e,t)),n&&Fs(n,t)}}return t}function Gs(e,t,n){-1!==n.indexOf(t)||l(e,t)||(e[t]=function(e){return this.$vm&&this.$vm.$callHook(t,e)})}const qs=[X];function Ks(e,t,n=qs){t.forEach(t=>Gs(e,t,n))}function Js(e,t,n=qs){Fs(t).forEach(t=>Gs(e,t,n))}const Xs=we(()=>{const e=[],t=h(getApp)&&getApp({allowDefault:!0});if(t&&t.$vm&&t.$vm.$){const n=t.$vm.$.appContext.mixins;if(p(n)){const t=Object.keys(Oe);n.forEach(n=>{t.forEach(t=>{l(n,t)&&!e.includes(t)&&e.push(t)})})}}return e});const Zs=[B,W,F,G,q,K];function Qs(e,t){const n=e.$,o={globalData:e.$options&&e.$options.globalData||{},$vm:e,onLaunch(t){this.$vm=e;const o=n.ctx;this.$vm&&o.$scope&&o.$callHook||(Hs(n,{mpType:"app",mpInstance:this,slots:[]}),o.globalData=this.globalData,e.$callHook(z,t))}},r=wx.$onErrorHandlers;r&&(r.forEach(e=>{zr(F,e,n)}),r.length=0),function(e){const t=Zo(function(){var e;let t="";{const n=(null===(e=wx.getAppBaseInfo)||void 0===e?void 0:e.call(wx))||wx.getSystemInfoSync();t=Me(n&&n.language?n.language:je)||je}return t}());Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}(e);const i=e.$.type;Ks(o,Zs),Js(o,i);{const e=i.methods;e&&c(o,e)}return o}function Ys(e,t){if(h(e.onLaunch)){const t=wx.getLaunchOptionsSync&&wx.getLaunchOptionsSync();e.onLaunch(t)}h(e.onShow)&&wx.onAppShow&&wx.onAppShow(e=>{t.$callHook("onShow",e)}),h(e.onHide)&&wx.onAppHide&&wx.onAppHide(e=>{t.$callHook("onHide",e)})}const ec=["eO","uR","uRIF","uI","uT","uP","uS"];function tc(e){e.properties||(e.properties={}),c(e.properties,function(e,t=!1){const n={};if(!t){let e=function(e){const t=Object.create(null);e&&e.forEach(e=>{t[e]=!0}),this.setData({$slots:t})};ec.forEach(e=>{n[e]={type:null,value:""}}),n.uS={type:null,value:[]},n.uS.observer=e}return e.behaviors&&e.behaviors.includes("wx://form-field")&&(e.properties&&e.properties.name||(n.name={type:null,value:""}),e.properties&&e.properties.value||(n.value={type:null,value:""})),n}(e),function(e){const t={};return e&&e.virtualHost&&(t.virtualHostStyle={type:null,value:""},t.virtualHostClass={type:null,value:""},t.virtualHostHidden={type:null,value:""},t[_e]={type:null,value:""}),t}(e.options))}const nc=[String,Number,Boolean,Object,Array,null];function oc(e,t){const n=function(e){return p(e)&&1===e.length?e[0]:e}(e);return-1!==nc.indexOf(n)?n:null}function rc(e,t){return(t?function(e){const t={};w(e)&&Object.keys(e).forEach(n=>{-1===ec.indexOf(n)&&(t[n]=e[n])});return t}(e):As(e.uP))||{}}function ic(e){const t=function(){const e=this.properties.uP;e&&(this.$vm?function(e,t){const n=Wo(t.props),o=As(e)||{};sc(n,o)&&(!function(e,t,n){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,s=Wo(o),[c]=e.propsOptions;let a=!1;if(i>0&&!(16&i)){if(8&i){const n=e.vnode.dynamicProps;for(let i=0;i<n.length;i++){let u=n[i];if(Pr(e.emitsOptions,u))continue;const p=t[u];if(c)if(l(r,u))p!==r[u]&&(r[u]=wi(0,0,p),a=!0);else{const t=k(u);o[t]=bi(c,s,t,p,e,!1)}else p!==r[u]&&(r[u]=wi(0,0,p),a=!0)}}}else{let i;xi(e,t,o,r)&&(a=!0);for(const r in s)t&&(l(t,r)||(i=C(r))!==r&&l(t,i))||(c?!n||void 0===n[r]&&void 0===n[i]||(o[r]=bi(c,s,r,void 0,e,!0)):delete o[r]);if(r!==s)for(const e in r)t&&l(t,e)||(delete r[e],a=!0)}a&&Qn(e,"set","$attrs")}(t,o,n),r=t.update,ar.indexOf(r)>-1&&function(e){const t=ar.indexOf(e);t>ur&&ar.splice(t,1)}(t.update),t.update());var r}(e,this.$vm.$):"m"===this.properties.uT&&function(e,t){const n=t.properties,o=As(e)||{};sc(n,o,!1)&&t.setData(o)}(e,this))};e.observers||(e.observers={}),e.observers.uP=t}function sc(e,t,n=!0){const o=Object.keys(t);if(n&&o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const n=o[r];if(t[n]!==e[n])return!0}return!1}function cc(e,t){e.data={},e.behaviors=function(e){const t=e.behaviors;let n=e.props;n||(e.props=n=[]);const o=[];return p(t)&&t.forEach(e=>{o.push(e.replace("uni://","wx://")),"uni://form-field"===e&&(p(n)?(n.push("name"),n.push("modelValue")):(n.name={type:String,default:""},n.modelValue={type:[String,Number,Boolean,Array,Object,Date],default:""}))}),o}(t)}function ac(e,{parse:t,mocks:n,isPage:o,isPageInProject:r,initRelation:i,handleLink:s,initLifetimes:a}){e=e.default||e;const u={multipleSlots:!0,addGlobalClass:!0,pureDataPattern:/^uP$/};p(e.mixins)&&e.mixins.forEach(e=>{v(e.options)&&c(u,e.options)}),e.options&&c(u,e.options);const f={options:u,lifetimes:a({mocks:n,isPage:o,initRelation:i,vueOptions:e}),pageLifetimes:{show(){this.$vm&&this.$vm.$callHook("onPageShow")},hide(){this.$vm&&this.$vm.$callHook("onPageHide")},resize(e){this.$vm&&this.$vm.$callHook("onPageResize",e)}},methods:{__l:s}};var d,h,g,m;return cc(f,e),tc(f),ic(f),function(e,t){Ms.forEach(n=>{l(t,n)&&(e[n]=t[n])})}(f,e),d=f.methods,h=e.wxsCallMethods,p(h)&&h.forEach(e=>{d[e]=function(t){return this.$vm[e](t)}}),g=f.methods,(m=e.methods)&&Object.keys(m).forEach(e=>{const t=e.match(Ds);if(t){const n=t[1];g[e]=m[e],g[n]=m[n]}}),t&&t(f,{handleLink:s}),f}let uc,lc;function pc(){return getApp().$vm}function fc(e,t){const{parse:n,mocks:o,isPage:r,initRelation:i,handleLink:s,initLifetimes:c}=t,a=ac(e,{mocks:o,isPage:r,isPageInProject:!0,initRelation:i,handleLink:s,initLifetimes:c});!function({properties:e},t){p(t)?t.forEach(t=>{e[t]={type:String,value:""}}):w(t)&&Object.keys(t).forEach(n=>{const o=t[n];if(w(o)){let t=o.default;h(t)&&(t=t());const r=o.type;o.type=oc(r),e[n]={type:o.type,value:t}}else e[n]={type:oc(o)}})}(a,(e.default||e).props);const u=a.methods;return u.onLoad=function(e){var t;return this.options=e,this.$page={fullPath:(t=this.route+$e(e),function(e){return 0===e.indexOf("/")}(t)?t:"/"+t)},this.$vm&&this.$vm.$callHook(J,e)},Ks(u,zs),Js(u,e),function(e,t){if(!t)return;Object.keys(Oe).forEach(n=>{t&Oe[n]&&Gs(e,n,[])})}(u,e.__runtimeHooks),Ks(u,Xs()),n&&n(a,{handleLink:s}),a}const dc=Page,hc=Component;function gc(e){const t=e.triggerEvent,n=function(n,...o){return t.apply(e,[(r=n,k(r.replace(xe,"-"))),...o]);var r};try{e.triggerEvent=n}catch(o){e._triggerEvent=n}}function mc(e,t,n){const o=t[e];t[e]=o?function(...e){return gc(this),o.apply(this,e)}:function(){gc(this)}}Page=function(e){return mc(J,e),dc(e)},Component=function(e){mc("created",e);return e.properties&&e.properties.uP||(tc(e),ic(e)),hc(e)};var vc=Object.freeze({__proto__:null,handleLink:function(e){const t=e.detail||e.value,n=t.vuePid;let o;n&&(o=Vs(this.$vm,n)),o||(o=this.$vm),t.parent=o},initLifetimes:function({mocks:e,isPage:t,initRelation:n,vueOptions:o}){return{attached(){let r=this.properties;!function(e,t){if(!e)return;const n=e.split(","),o=n.length;1===o?t._$vueId=n[0]:2===o&&(t._$vueId=n[0],t._$vuePid=n[1])}(r.uI,this);const i={vuePid:this._$vuePid};n(this,i);const s=this,c=t(s);let a=r;this.$vm=function(e,t){uc||(uc=pc().$createComponent);const n=uc(e,t);return Wi(n.$)||n}({type:o,props:rc(a,c)},{mpType:c?"page":"component",mpInstance:s,slots:r.uS||{},parentComponent:i.parent&&i.parent.$,onBeforeSetup(t,n){!function(e,t){Object.defineProperty(e,"refs",{get(){const e={};return function(e,t,n){e.selectAllComponents(t).forEach(e=>{const t=e.properties.uR;n[t]=e.$vm||e})}(t,".r",e),t.selectAllComponents(".r-i-f").forEach(t=>{const n=t.properties.uR;n&&(e[n]||(e[n]=[]),e[n].push(t.$vm||t))}),e}})}(t,s),function(e,t,n){const o=e.ctx;n.forEach(n=>{l(t,n)&&(e[n]=o[n]=t[n])})}(t,s,e),function(e,t){Hs(e,t);const n=e.ctx;Us.forEach(e=>{n[e]=function(...t){const o=n.$scope;if(o&&o[e])return o[e].apply(o,t)}})}(t,n)}}),c||function(e){const t=e.$options;p(t.behaviors)&&t.behaviors.includes("uni://form-field")&&e.$watch("modelValue",()=>{e.$scope&&e.$scope.setData({name:e.name,value:e.modelValue})},{immediate:!0})}(this.$vm)},ready(){this.$vm&&(this.$vm.$callHook("mounted"),this.$vm.$callHook(X))},detached(){var e;this.$vm&&(Is(this.$vm.$.uid),e=this.$vm,lc||(lc=pc().$destroyComponent),lc(e))}}},initRelation:function(e,t){e.triggerEvent("__l",t)},isPage:function(e){return!!e.route},mocks:["__route__","__wxExparserNodeId__","__wxWebviewId__"]});const yc=function(e){return App(Qs(e))},_c=(xc=vc,function(e){return Component(fc(e,xc))});var xc;const wc=function(e){return function(t){return Component(ac(t,e))}}(vc),bc=function(e){Ys(Qs(e),e)},Sc=function(e){const t=Qs(e),n=h(getApp)&&getApp({allowDefault:!0});if(!n)return;e.$.ctx.$scope=n;const o=n.globalData;o&&Object.keys(t.globalData).forEach(e=>{l(o,e)||(o[e]=t.globalData[e])}),Object.keys(t).forEach(e=>{l(n,e)||(n[e]=t[e])}),Ys(t,e)};!function(){if(h(wx.preloadAssets)){const e=String.fromCharCode(99,100,110,49,46,100,99,108,111,117,100,46,110,101,116,46,99,110);setTimeout(()=>{wx.preloadAssets({data:[{type:"image",src:"https://"+e+"/526a64464d54424751673d3d/img/shadow-grey.png"}]})},3e3)}}(),wx.createApp=global.createApp=yc,wx.createPage=_c,wx.createComponent=wc,wx.createPluginApp=global.createPluginApp=bc,wx.createSubpackageApp=global.createSubpackageApp=Sc,Math;const $c="mingdao_guide_login_state",Pc={id:"guide_001",name:"赵明",phone:"13800000000",avatar:"/static/logo.png",rating:4.9,orderCount:286,serviceMinutes:12840,auditStatus:"approved",onlineStatus:"offline",groupName:"都江堰精讲一团",tags:["都江堰水利工程","亲子讲解","川西历史","普通话"]},kc=[{id:"dujiangyan",name:"都江堰景区",city:"成都",meetingPoints:[{id:"south_gate",name:"都江堰南门",guideCount:6,latitude:31.001472,longitude:103.648278,address:"四川省成都市都江堰市公园路都江堰景区南门"},{id:"north_gate",name:"都江堰北门",guideCount:3,latitude:31.005846,longitude:103.646812,address:"四川省成都市都江堰市离堆公园路都江堰景区北门"}]},{id:"qingchengshan",name:"青城山景区",city:"成都",meetingPoints:[{id:"front_gate",name:"青城山前山门",guideCount:4,latitude:30.905982,longitude:103.569027,address:"四川省成都市都江堰市青城山镇青城山景区前山门"},{id:"parking",name:"游客中心停车场",guideCount:2,latitude:30.909683,longitude:103.571938,address:"四川省成都市都江堰市青城山景区游客中心停车场"}]}];const Oc=({}.VITE_API_BASE_URL||"http://127.0.0.1:8011/api").replace(/\/$/,""),Cc=Oc.replace(/\/api$/,""),Ec="/pages/login/index";let Ic=!1;function Ac({url:e,method:t="GET",data:n,authenticated:o=!0,headers:r={}}){const i=Cn.getStorageSync($c),s={"Content-Type":"application/json",...r};return o&&i&&i.token&&(s.Authorization=`Bearer ${i.token}`),new Promise((r,i)=>{Cn.request({url:`${Oc}${e}`,method:t,data:n,header:s,success(e){const t=e.data||{};if(Nc(e.statusCode,t,o))return Rc(),void i(Lc(t.message||t.msg));e.statusCode>=200&&e.statusCode<300&&0===t.code?r(t.data):i(new Error(t.message||t.msg||`请求失败(${e.statusCode})`))},fail(e){i(new Error(e.errMsg||"网络连接失败"))}})})}function Tc({url:e,filePath:t,name:n="file",header:o={},authenticated:r=!0}){const i=Cn.getStorageSync($c),s={...o};return r&&i&&i.token&&(s.Authorization=`Bearer ${i.token}`),new Promise((o,i)=>{Cn.uploadFile({url:`${Oc}${e}`,filePath:t,name:n,header:s,success(e){let t=e.data;try{t="string"==typeof t?JSON.parse(t):t}catch(n){return void i(new Error("上传响应格式不正确"))}if(Nc(e.statusCode,t,r))return Rc(),void i(Lc(t&&(t.message||t.msg)));e.statusCode>=200&&e.statusCode<300&&t&&0===t.code?o(t.data):i(new Error(t&&(t.message||t.msg)||`上传失败(${e.statusCode})`))},fail(e){i(new Error(e.errMsg||"文件上传失败"))}})})}function Nc(e,t={},n=!0){return!!n&&(401===e||t&&(401===t.code||"401"===t.code))}function Lc(e){const t=new Error(e||"登录已过期,请重新登录");return t.authExpired=!0,t}function Rc(){try{Cn.removeStorageSync($c)}catch(e){}Ic||function(){const e="function"==typeof getCurrentPages?getCurrentPages():[],t=e[e.length-1];return t&&`/${t.route}`===Ec}()||(Ic=!0,Cn.showToast({title:"登录已过期,请重新登录",icon:"none"}),setTimeout(()=>{Cn.reLaunch({url:Ec,complete(){setTimeout(()=>{Ic=!1},500)}})},300))}const jc={onLaunch(){console.log("Guide App Launch")},onShow(){}};function Mc(){return{app:js(jc)}}function Dc(){const e=Cn.getStorageSync($c)||null;return e&&e.expiresAt&&Number(e.expiresAt)<=Date.now()?(Cn.removeStorageSync($c),null):e}function Vc(e,t="navigateTo"){const n=function(e){return e?String(e):""}(e);if(!n)return;const o=Cn[t]||Cn.navigateTo;try{o({url:n,fail(){Cn.showToast({title:"页面未注册,请重新运行项目",icon:"none"})}})}catch(r){Cn.showToast({title:"页面未注册,请重新运行项目",icon:"none"})}}Mc().app.mount("#app");const Uc="mingdao_guide_phone_change_state";function Hc(e){const t=Cn.getStorageSync($c),n=function(e={},t={}){return{...t,...e,name:e.realName||e.name||e.username||t.name||"",phone:e.mobile||e.phone||t.phone||"",avatar:(n=e.avatar||t.avatar||"",n?/^https?:\/\//i.test(n)||n.startsWith("wxfile://")||n.startsWith("blob:")?n:`${Cc}${n.startsWith("/")?n:`/${n}`}`:""),orderCount:Number(e.acceptedOrderCount??e.orderCount??t.orderCount??0),rating:Number(e.rating??t.rating??0),groupName:e.teamName||t.groupName||("个人"===e.teamType?"个人导游":"")};var n}(e,t&&t.guide||Pc);return t&&(t.guide=n,Cn.setStorageSync($c,t)),n}function Bc(e){const t=Number(e);return Number.isFinite(t)?t:0}function Wc(){return kc.reduce((e,t)=>{const n=(t.meetingPoints||[]).map(e=>({scenicId:t.id,scenicName:t.name,city:t.city,...e}));return e.concat(n)},[])}function zc(e={}){const t=kc.find(t=>t.id===e.scenicId||t.name===e.scenicName),n=t?t.meetingPoints||[]:Wc(),o=n.find(t=>t.id===e.meetingPointId)||n.find(t=>t.name===e.meetingPointName)||Wc().find(t=>t.id===e.meetingPointId||t.name===e.meetingPointName),r=Bc(e.meetingPointLatitude||e.latitude||o&&o.latitude),i=Bc(e.meetingPointLongitude||e.longitude||o&&o.longitude);return o||r&&i?{scenicId:e.scenicId||t&&t.id||o&&o.scenicId||"",scenicName:e.scenicName||t&&t.name||o&&o.scenicName||"",city:o&&o.city||t&&t.city||"",id:e.meetingPointId||o&&o.id||"",name:e.meetingPointName||o&&o.name||"汇合点",address:e.meetingPointAddress||e.address||o&&o.address||"",guideCount:o&&o.guideCount||0,latitude:r,longitude:i}:null}function Fc(e,t={}){const n=Cn.getStorageSync($c);return n&&n.guide&&(n.guide.onlineStatus=e,"online"!==e&&"serving"!==e||(n.guide.receivingConfig=t),"offline"===e&&(n.guide.receivingConfig=null),Cn.setStorageSync($c,n)),e}function Gc(e){const t=Number(e);return Number.isFinite(t)?t:0}function qc(e={}){return Boolean(Gc(e.latitude||e.meetingPointLatitude)&&Gc(e.longitude||e.meetingPointLongitude))}function Kc(e={}){const t=Gc(e.latitude||e.meetingPointLatitude),n=Gc(e.longitude||e.meetingPointLongitude);return{scenicId:e.scenicId||"",scenicName:e.scenicName||"",meetingPointId:e.id||e.meetingPointId||"",meetingPointName:e.name||e.meetingPointName||"汇合点",meetingPointAddress:e.address||e.meetingPointAddress||"",latitude:t,longitude:n}}function Jc(e={}){const t=Kc(e);return qc(t)?new Promise((e,n)=>{Cn.openLocation({latitude:t.latitude,longitude:t.longitude,scale:18,name:t.meetingPointName,address:t.meetingPointAddress,success(){e(t)},fail(e){n(e)}})}):(Cn.showToast({title:"汇合点坐标暂未配置",icon:"none"}),Promise.reject(new Error("Missing meeting point coordinates")))}function Xc(e){return"active"===e||"pending"===e?"accepted":"history"===e?"completed":e||"all"}function Zc(e={}){const t=function(e={}){const t=zc({scenicId:e.scenicId,scenicName:e.scenicName,meetingPointId:e.meetingPointId,meetingPointName:e.meetingPointName,meetingPointLatitude:e.meetingPointLatitude,meetingPointLongitude:e.meetingPointLongitude,meetingPointAddress:e.meetingPointAddress});return t?{...e,scenicId:e.scenicId||t.scenicId,meetingPointId:e.meetingPointId||t.id,meetingPointName:e.meetingPointName||t.name,meetingPointLatitude:e.meetingPointLatitude||t.latitude,meetingPointLongitude:e.meetingPointLongitude||t.longitude,meetingPointAddress:e.meetingPointAddress||t.address}:e}({...e,quantity:Number(e.quantity??e.peopleCount??0),receiveTime:Qc(e.receiveTime||e.acceptedAt||e.createdAt),receiveStartTime:Qc(e.receiveStartTime||e.receiveTime||e.acceptedAt||e.createdAt),lectureStartTime:Qc(e.lectureStartTime||e.serviceStartedAt||e.arrivedAt),lectureEndTime:Qc(e.lectureEndTime||e.completedAt),completedAt:Qc(e.completedAt),customers:(e.customers||[]).map(e=>({...e,time:Qc(e.time)}))});return{...t,customers:t.customers&&t.customers.length?t.customers:[{no:1,phone:t.customerPhone||"",people:t.quantity||0,time:t.receiveStartTime||""}]}}function Qc(e){return e?String(e).replace("T"," "):""}function Yc(e){return{...e,time:e.time?e.time.replace("T"," "):"",url:e.targetUrl||(e.orderId?`/pages/order-detail/index?id=${e.orderId}`:"")}}const ea="mingdao_guide_registration_state";function ta(){return Cn.getStorageSync(ea)||null}function na(e,t){return Tc({url:"/guide/registration/documents",filePath:e,header:{"X-Registration-Token":t}}).then(e=>e.url)}const oa={user:"GUIDE_USER_AGREEMENT",service:"EXPLANATION_SERVICE_COOPERATION",reward:"GUIDE_REWARD_PUNISHMENT"};function ra(e){return oa[e]||e||oa.user}exports.GUIDE_ORDERS_KEY="mingdao_guide_orders",exports._export_sfc=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},exports.backOrHome=function(e="/pages/workbench/index"){("function"==typeof getCurrentPages?getCurrentPages():[]).length>1?Cn.navigateBack():Vc(e,"reLaunch")},exports.buildMeetingPointCircles=function(e={}){const t=Kc(e);return qc(t)?[{latitude:t.latitude,longitude:t.longitude,radius:36,strokeWidth:4,color:"#4d8fe899",fillColor:"#4d8fe833"}]:[]},exports.cancelAccount=function(){return Ac({url:"/guide/push-device",method:"DELETE"}).catch(()=>{}).then(()=>Ac({url:"/guide/auth/account",method:"DELETE"})).then(e=>(Cn.removeStorageSync($c),e))},exports.changeGuidePhone=function(e,t){const n=Cn.getStorageSync(Uc);return n&&n.changeToken?Ac({url:"/guide/profile/phone",method:"PUT",data:{changeToken:n.changeToken,newPhone:e,code:t}}).then(e=>(Cn.removeStorageSync(Uc),Hc(e))):Promise.reject(new Error("旧手机号验证已失效,请重新验证"))},exports.createApp=Mc,exports.e=(e,...t)=>c(e,...t),exports.f=(e,t)=>function(e,t){let n;if(p(e)||g(e)){n=new Array(e.length);for(let o=0,r=e.length;o<r;o++)n[o]=t(e[o],o,o)}else if("number"==typeof e){n=new Array(e);for(let o=0;o<e;o++)n[o]=t(o+1,o,o)}else if(v(e))if(e[Symbol.iterator])n=Array.from(e,(e,n)=>t(e,n,n));else{const o=Object.keys(e);n=new Array(o.length);for(let r=0,i=o.length;r<i;r++){const i=o[r];n[r]=t(e[i],i,r)}}else n=[];return n}(e,t),exports.finishGuideLecture=function(){return Ac({url:"/guide/receiving/finish",method:"PUT"}).then(()=>Fc("offline"))},exports.formatDuration=function(e=0){if(e<60)return`${e}分钟`;const t=Math.floor(e/60),n=e%60;return n?`${t}小时${n}分钟`:`${t}小时`},exports.formatMoney=function(e=0){return`¥${(Number(e||0)/100).toFixed(2)}`},exports.formatRatingStars=function(e){const t=Math.max(0,Math.min(5,Math.round(Number(e)||0)));return`${"★".repeat(t)}${"☆".repeat(5-t)}`},exports.getCurrentGuideReceivingSession=function(){return Ac({url:"/guide/receiving/current"})},exports.getEarnings=function(e={}){const t={pageNum:e.pageNum||1,pageSize:e.pageSize||50};return e.serviceType&&(t.serviceType=e.serviceType),e.scenicName&&(t.scenicName=e.scenicName),e.date&&(t.date=e.date),Ac({url:"/guide/earnings",data:t})},exports.getGuideAgreement=function(e){const t=ra(e);return Ac({url:`/guide/agreements/${encodeURIComponent(t)}`,authenticated:!1})},exports.getGuideAgreements=function(){return Ac({url:"/guide/agreements",authenticated:!1})},exports.getGuideOrders=function(e="all"){return Ac({url:`/guide/orders?tab=${encodeURIComponent(Xc(e))}&page=1&size=50`}).then(e=>(e.records||[]).map(Zc))},exports.getGuideProfile=function(){return Ac({url:"/guide/profile"}).then(Hc)},exports.getGuideRatings=function({date:e="",pageNum:t=1,pageSize:n=100}={}){const o={pageNum:t,pageSize:n};return e&&(o.date=e),Ac({url:"/guide/ratings",data:o})},exports.getGuideReceivingOptions=function(){return Ac({url:"/guide/receiving/options"})},exports.getLoginState=Dc,exports.getMessageList=function(){return Ac({url:"/guide/notifications"}).then(e=>e.map(Yc))},exports.getOrderDetail=function(e){return Ac({url:`/guide/orders/${e}`}).then(Zc)},exports.getRegistrationState=ta,exports.getRegistrationTeams=function(){return Ac({url:"/guide/registration/teams",authenticated:!1})},exports.getStatusBarHeight=function(){try{return Cn.getSystemInfoSync().statusBarHeight||0}catch(e){return 0}},exports.getWorkbenchData=function(){return Ac({url:"/guide/workbench"})},exports.hasMeetingPointLocation=qc,exports.index=Cn,exports.isLoggedIn=function(){const e=Dc();return Boolean(e&&e.token)},exports.loginByPhone=function({phone:e,code:t}){return e&&t?Ac({url:"/guide/auth/login",method:"POST",authenticated:!1,data:{phone:e,code:t}}).then(t=>{const n=t.user||{},o={token:t.token,expiresIn:t.expiresIn,expiresAt:Date.now()+1e3*Number(t.expiresIn||0),guide:{...Pc,id:n.id,name:n.realName||n.username||Pc.name,phone:n.mobile||e,avatar:n.avatar||Pc.avatar,rating:Number(n.rating||0),orderCount:n.acceptedOrderCount||0,auditStatus:(r=n.status,1===r?"approved":2===r?"pending":0===r?"disabled":"pending"),onlineStatus:"offline",groupName:n.teamName||("个人"===n.teamType?"个人导游":Pc.groupName)}};var r;return Cn.setStorageSync($c,o),Promise.resolve(!1),o}):Promise.reject(new Error("请输入手机号和验证码"))},exports.logout=function(){const e=Dc();return e&&e.token?Ac({url:"/guide/push-device",method:"DELETE"}).catch(()=>{}).then(()=>Ac({url:"/guide/auth/logout",method:"POST"})).finally(()=>Cn.removeStorageSync($c)):(Cn.removeStorageSync($c),Promise.resolve())},exports.markMessageRead=function(e){return Ac({url:`/guide/notifications/${e}/read`,method:"PUT"})},exports.maskPhone=function(e=""){return e.replace(/^(\d{3})\d{4}(\d{4})$/,"$1****$2")},exports.n=e=>V(e),exports.o=(e,t)=>Ls(e,t),exports.openMeetingPointPage=function(e={}){const t=Kc(e);qc(t)?Jc(t).catch(e=>{console.log("Open meeting point location failed",e),Cn.showToast({title:"暂时无法打开地图导航",icon:"none"})}):Cn.showToast({title:"汇合点坐标暂未配置",icon:"none"})},exports.openSystemLocation=Jc,exports.p=e=>function(e){const{uid:t,__counter:n}=Li();return t+","+((Es[t]||(Es[t]=[])).push(Ei(e))-1)+","+n}(e),exports.parseMeetingPointPayload=function(e=""){if(!e)return null;try{return Kc(JSON.parse(decodeURIComponent(e)))}catch(t){return console.log("Parse meeting point payload failed",t),null}},exports.playNotificationAlert=function(){void 0!==Cn&&Cn.vibrateShort&&Cn.vibrateShort({type:"medium"});try{"undefined"!=typeof plus&&plus.device&&plus.device.beep&&(plus.device.beep(1),1)||function(){if("undefined"==typeof window)return!1;const e=window.AudioContext||window.webkitAudioContext;if(!e)return!1;const t=new e,n=t.createOscillator(),o=t.createGain();n.type="sine",n.frequency.value=880,o.gain.setValueAtTime(.12,t.currentTime),o.gain.exponentialRampToValueAtTime(.001,t.currentTime+.22),n.connect(o),o.connect(t.destination),n.start(),n.stop(t.currentTime+.22)}()}catch(e){return!1}return!0},exports.resolveAgreementCode=ra,exports.resolveComponent=function(e,t){return function(e,t,n=!0,o=!1){const r=kr||Ni;if(r){const n=r.type;{const e=function(e,t=!0){return h(e)?e.displayName||e.name:e.name||t&&e.__name}(n,!1);if(e&&(e===t||e===k(t)||e===E(k(t))))return n}const i=Cr(r[e]||n[e],t)||Cr(r.appContext[e],t);return!i&&o?n:i}}("components",e,!0,t)||e},exports.resolveMeetingPoint=zc,exports.routeTo=Vc,exports.s=e=>Ns(e),exports.sendLoginCode=function(e){return Ac({url:"/guide/auth/sms-code",method:"POST",authenticated:!1,data:{phone:e,scene:"login"}})},exports.sendNewPhoneCode=function(e){const t=Cn.getStorageSync(Uc);return t&&t.changeToken?Ac({url:"/guide/profile/phone-change/new-code",method:"POST",data:{changeToken:t.changeToken,newPhone:e}}):Promise.reject(new Error("旧手机号验证已失效,请重新验证"))},exports.sendOldPhoneCode=function(e){return Ac({url:"/guide/profile/phone-change/old-code",method:"POST",data:{phone:e}})},exports.sendRegistrationCode=function(e){return Ac({url:"/guide/registration/sms-code",method:"POST",authenticated:!1,data:{phone:e}})},exports.submitCertification=function(e){const t=Cn.getStorageSync($c);return t&&t.guide&&(t.guide.auditStatus="pending",Cn.setStorageSync($c,t)),Promise.resolve({...e,auditStatus:"pending"})},exports.submitFeedback=function(e){return Ac({url:"/guide/feedback",method:"POST",data:{content:e}})},exports.submitGuideRegistration=function(e){const t=ta();if(!t||!t.registrationToken)return Promise.reject(new Error("手机号验证已失效,请重新验证"));const n=[na(e.idFront,t.registrationToken),na(e.idBack,t.registrationToken),na(e.guideLicense,t.registrationToken),e.guideCert?na(e.guideCert,t.registrationToken):Promise.resolve("")];return Promise.all(n).then(([n,o,r,i])=>Ac({url:"/guide/registration/applications",method:"POST",authenticated:!1,data:{realName:e.name,gender:"男"===e.gender?1:2,ageRange:e.age,workYearRange:e.workYear,guideType:e.guideType,teamId:e.teamId,idCardNo:e.idNo,idCardFrontUrl:n,idCardBackUrl:o,guideCertificateUrl:r,qualificationCertificateUrl:i},headers:{"X-Registration-Token":t.registrationToken}})).then(e=>(Cn.removeStorageSync(ea),e))},exports.t=e=>(e=>g(e)?e:null==e?"":p(e)||v(e)&&(e.toString===_||!h(e.toString))?JSON.stringify(e,U,2):String(e))(e),exports.updateGuideOnlineStatus=function(e,t={}){let n=Promise.resolve(e);return"online"===e?n=Ac({url:"/guide/receiving/start",method:"POST",data:t}):"offline"===e&&(n=Ac({url:"/guide/receiving/stop",method:"PUT"})),n.then(()=>Fc(e,t))},exports.uploadGuideAvatar=function(e){return Tc({url:"/guide/profile/avatar",filePath:e}).then(Hc)},exports.upxToPx=function(e){try{return Cn.upx2px(e)}catch(t){return 0}},exports.verifyOldPhone=function(e,t){return Ac({url:"/guide/profile/phone-change/verify-old",method:"POST",data:{phone:e,code:t}}).then(e=>(Cn.setStorageSync(Uc,e),e))},exports.verifyRegistrationPhone=function(e,t){return Ac({url:"/guide/registration/verify-phone",method:"POST",authenticated:!1,data:{phone:e,code:t}}).then(t=>{const n={phone:e,...t};return Cn.setStorageSync(ea,n),n})}; |