From 4f65e0597565db6edd0ce51fb7a222a06ae89d71 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Mon, 13 Apr 2026 18:35:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/cors.php | 5 ++++- .../h5/assets/{content.4AgB0jqB.js => content.IclVJQGc.js} | 2 +- public/h5/assets/{index-q6pkZS4X.js => index-BznAv2H5.js} | 6 +++--- .../{localProfile.Us3dy1DW.js => localProfile.DvYQ1Tv3.js} | 2 +- ...detail.CwEPk-K-.js => pages-activity-detail.CsdrFt7b.js} | 2 +- ...y-index.Dfnqtgxv.js => pages-activity-index.D-LB6AZ6.js} | 2 +- ...serve.CP8F64-R.js => pages-activity-reserve.D_4_bv2G.js} | 2 +- ...r-index.DBM0c0bu.js => pages-discover-index.ClNQ8m2Z.js} | 2 +- ...ndex-index.DzVK5J0W.js => pages-index-index.5DcX7mv3.js} | 2 +- ...es-map-index.i9LbiHIa.js => pages-map-index.BfbKrIEP.js} | 2 +- ...-mine-index.CRh-LTcQ.js => pages-mine-index.CBt6SqwA.js} | 2 +- ...ine-orders.Cu5JmB-z.js => pages-mine-orders.1ISf7OpF.js} | 2 +- ...e-profile.b6h3Ij4U.js => pages-mine-profile.CPS6ldDl.js} | 2 +- ...LaT6RY7.js => pages-mine-reservation-detail.pHRTDg51.js} | 2 +- ...tats-index.BTYRuIUM.js => pages-stats-index.DD3ZTHk8.js} | 2 +- ...tail.Chs6SkSl.js => pages-study-tour-detail.tOWRhwgP.js} | 2 +- ...ic-index.D1ZYvI_4.js => pages-traffic-index.ixM56Iss.js} | 2 +- ...ue-detail.dfYe-qzU.js => pages-venue-detail.CrUsEMFB.js} | 2 +- public/h5/index.html | 2 +- 19 files changed, 24 insertions(+), 21 deletions(-) rename public/h5/assets/{content.4AgB0jqB.js => content.IclVJQGc.js} (94%) rename public/h5/assets/{index-q6pkZS4X.js => index-BznAv2H5.js} (97%) rename public/h5/assets/{localProfile.Us3dy1DW.js => localProfile.DvYQ1Tv3.js} (84%) rename public/h5/assets/{pages-activity-detail.CwEPk-K-.js => pages-activity-detail.CsdrFt7b.js} (98%) rename public/h5/assets/{pages-activity-index.Dfnqtgxv.js => pages-activity-index.D-LB6AZ6.js} (97%) rename public/h5/assets/{pages-activity-reserve.CP8F64-R.js => pages-activity-reserve.D_4_bv2G.js} (98%) rename public/h5/assets/{pages-discover-index.DBM0c0bu.js => pages-discover-index.ClNQ8m2Z.js} (94%) rename public/h5/assets/{pages-index-index.DzVK5J0W.js => pages-index-index.5DcX7mv3.js} (99%) rename public/h5/assets/{pages-map-index.i9LbiHIa.js => pages-map-index.BfbKrIEP.js} (97%) rename public/h5/assets/{pages-mine-index.CRh-LTcQ.js => pages-mine-index.CBt6SqwA.js} (92%) rename public/h5/assets/{pages-mine-orders.Cu5JmB-z.js => pages-mine-orders.1ISf7OpF.js} (96%) rename public/h5/assets/{pages-mine-profile.b6h3Ij4U.js => pages-mine-profile.CPS6ldDl.js} (96%) rename public/h5/assets/{pages-mine-reservation-detail.DLaT6RY7.js => pages-mine-reservation-detail.pHRTDg51.js} (99%) rename public/h5/assets/{pages-stats-index.BTYRuIUM.js => pages-stats-index.DD3ZTHk8.js} (93%) rename public/h5/assets/{pages-study-tour-detail.Chs6SkSl.js => pages-study-tour-detail.tOWRhwgP.js} (97%) rename public/h5/assets/{pages-traffic-index.D1ZYvI_4.js => pages-traffic-index.ixM56Iss.js} (98%) rename public/h5/assets/{pages-venue-detail.dfYe-qzU.js => pages-venue-detail.CrUsEMFB.js} (99%) diff --git a/config/cors.php b/config/cors.php index 29ea1ce..45e2c1c 100644 --- a/config/cors.php +++ b/config/cors.php @@ -19,7 +19,10 @@ return [ 'allowed_methods' => ['*'], - 'allowed_origins' => array_filter(array_map('trim', explode(',', env('CORS_ALLOWED_ORIGINS', 'http://localhost:5173,http://127.0.0.1:5173,http://localhost:5174,http://127.0.0.1:5174,https://szkp-map.ali251.langye.net')))), + 'allowed_origins' => array_filter(array_map('trim', explode(',', env( + 'CORS_ALLOWED_ORIGINS', + 'http://localhost:5173,http://127.0.0.1:5173,http://localhost:5174,http://127.0.0.1:5174,http://szkp-map.ali251.langye.net,https://szkp-map.ali251.langye.net' + )))), 'allowed_origins_patterns' => [], diff --git a/public/h5/assets/content.4AgB0jqB.js b/public/h5/assets/content.IclVJQGc.js similarity index 94% rename from public/h5/assets/content.4AgB0jqB.js rename to public/h5/assets/content.IclVJQGc.js index 4e074f3..cb3971e 100644 --- a/public/h5/assets/content.4AgB0jqB.js +++ b/public/h5/assets/content.IclVJQGc.js @@ -1 +1 @@ -import{h as t}from"./index-q6pkZS4X.js";function n(n={}){return t.get("/h5/activities",n,{withAuth:!1})}function i(n){return t.get(`/h5/activities/${n}`,{},{withAuth:!1})}function e(){return t.get("/h5/venues",{},{withAuth:!1})}function s(){return t.get("/h5/venue-dicts",{},{withAuth:!1})}function u(n){return t.get(`/h5/venues/${n}`,{},{withAuth:!1})}function h(n){return t.get(`/h5/study-tours/${n}`,{},{withAuth:!1})}function r(){return t.get("/h5/study-tours",{},{withAuth:!1})}function o(n){return t.get(`/h5/activities/${n}/booking-info`,{},{withAuth:!1})}function a(n,i){return t.post(`/h5/activities/${n}/reservations`,i,{withAuth:!0})}function c(n){const i={};return n&&/^1\d{10}$/.test(n)&&(i.visitor_phone=n),t.get("/h5/my/reservations",i,{withAuth:!0})}function f(n,i){const e={};return i&&/^1\d{10}$/.test(i)&&(e.visitor_phone=i),t.get(`/h5/my/reservations/${n}`,e,{withAuth:!0})}function v(n,i){const e={};return i&&/^1\d{10}$/.test(i)&&(e.visitor_phone=i),t.post(`/h5/my/reservations/${n}/cancel`,e,{withAuth:!0})}export{e as a,n as b,r as c,c as d,v as e,i as f,s as g,o as h,a as i,f as j,h as k,u as l}; +import{h as t}from"./index-BznAv2H5.js";function n(n={}){return t.get("/h5/activities",n,{withAuth:!1})}function i(n){return t.get(`/h5/activities/${n}`,{},{withAuth:!1})}function e(){return t.get("/h5/venues",{},{withAuth:!1})}function s(){return t.get("/h5/venue-dicts",{},{withAuth:!1})}function u(n){return t.get(`/h5/venues/${n}`,{},{withAuth:!1})}function h(n){return t.get(`/h5/study-tours/${n}`,{},{withAuth:!1})}function r(){return t.get("/h5/study-tours",{},{withAuth:!1})}function o(n){return t.get(`/h5/activities/${n}/booking-info`,{},{withAuth:!1})}function a(n,i){return t.post(`/h5/activities/${n}/reservations`,i,{withAuth:!0})}function c(n){const i={};return n&&/^1\d{10}$/.test(n)&&(i.visitor_phone=n),t.get("/h5/my/reservations",i,{withAuth:!0})}function f(n,i){const e={};return i&&/^1\d{10}$/.test(i)&&(e.visitor_phone=i),t.get(`/h5/my/reservations/${n}`,e,{withAuth:!0})}function v(n,i){const e={};return i&&/^1\d{10}$/.test(i)&&(e.visitor_phone=i),t.post(`/h5/my/reservations/${n}/cancel`,e,{withAuth:!0})}export{e as a,n as b,r as c,c as d,v as e,i as f,s as g,o as h,a as i,f as j,h as k,u as l}; diff --git a/public/h5/assets/index-q6pkZS4X.js b/public/h5/assets/index-BznAv2H5.js similarity index 97% rename from public/h5/assets/index-q6pkZS4X.js rename to public/h5/assets/index-BznAv2H5.js index 3746e3a..2c59485 100644 --- a/public/h5/assets/index-q6pkZS4X.js +++ b/public/h5/assets/index-BznAv2H5.js @@ -1,6 +1,6 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/pages-index-index.DzVK5J0W.js","assets/search.BJnl3YRK.js","assets/down.BCKq9i8s.js","assets/activity.k1jR9V-B.js","assets/geo.BHVFNtB7.js","assets/markerPin.DdplcbG_.js","assets/_plugin-vue_export-helper.BCo6x5W8.js","assets/index-B1MzjdMb.css","assets/pages-map-index.i9LbiHIa.js","assets/content.4AgB0jqB.js","assets/index-BprId4GV.css","assets/pages-activity-index.Dfnqtgxv.js","assets/index-Blxgh-5w.css","assets/pages-discover-index.DBM0c0bu.js","assets/index-CqXzDkd3.css","assets/pages-mine-index.CRh-LTcQ.js","assets/localProfile.Us3dy1DW.js","assets/index-EgkM3bIy.css","assets/pages-mine-profile.b6h3Ij4U.js","assets/profile-BGvJPFII.css","assets/pages-mine-orders.Cu5JmB-z.js","assets/datetime.DReAHQ1x.js","assets/orders-BiGZiXX-.css","assets/pages-activity-detail.CwEPk-K-.js","assets/tip.CRDnOkzn.js","assets/detail-BngDg3eJ.css","assets/pages-activity-reserve.CP8F64-R.js","assets/reserve-CZeAeisN.css","assets/pages-mine-reservation-detail.DLaT6RY7.js","assets/reservation-detail-l0FQzYiL.css","assets/pages-study-tour-detail.Chs6SkSl.js","assets/detail-DperR4EF.css","assets/pages-venue-detail.dfYe-qzU.js","assets/detail-Cb3SJ-Uc.css","assets/pages-stats-index.BTYRuIUM.js","assets/index-BTpEHOgp.css","assets/pages-traffic-index.D1ZYvI_4.js","assets/index-CTbD1Lrq.css"] + __vite__mapDeps.viteFileDeps = ["assets/pages-index-index.5DcX7mv3.js","assets/search.BJnl3YRK.js","assets/down.BCKq9i8s.js","assets/activity.k1jR9V-B.js","assets/geo.BHVFNtB7.js","assets/markerPin.DdplcbG_.js","assets/_plugin-vue_export-helper.BCo6x5W8.js","assets/index-B1MzjdMb.css","assets/pages-map-index.BfbKrIEP.js","assets/content.IclVJQGc.js","assets/index-BprId4GV.css","assets/pages-activity-index.D-LB6AZ6.js","assets/index-Blxgh-5w.css","assets/pages-discover-index.ClNQ8m2Z.js","assets/index-CqXzDkd3.css","assets/pages-mine-index.CBt6SqwA.js","assets/localProfile.DvYQ1Tv3.js","assets/index-EgkM3bIy.css","assets/pages-mine-profile.CPS6ldDl.js","assets/profile-BGvJPFII.css","assets/pages-mine-orders.1ISf7OpF.js","assets/datetime.DReAHQ1x.js","assets/orders-BiGZiXX-.css","assets/pages-activity-detail.CsdrFt7b.js","assets/tip.CRDnOkzn.js","assets/detail-BngDg3eJ.css","assets/pages-activity-reserve.D_4_bv2G.js","assets/reserve-CZeAeisN.css","assets/pages-mine-reservation-detail.pHRTDg51.js","assets/reservation-detail-l0FQzYiL.css","assets/pages-study-tour-detail.tOWRhwgP.js","assets/detail-DperR4EF.css","assets/pages-venue-detail.CrUsEMFB.js","assets/detail-Cb3SJ-Uc.css","assets/pages-stats-index.DD3ZTHk8.js","assets/index-BTpEHOgp.css","assets/pages-traffic-index.ixM56Iss.js","assets/index-CTbD1Lrq.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } @@ -22,9 +22,9 @@ function n(e,t){const n=new Set(e.split(","));return e=>n.has(e)}const o={},i=[] * vue-router v4.4.4 * (c) 2024 Eduardo San Martin Morote * @license MIT - */(e);if(!o)return;const i=t._component;m(i)||i.render||i.template||(i.template=o.innerHTML),o.innerHTML="";const r=n(o,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t};const oa="undefined"!=typeof document;function ia(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}const ra=Object.assign;function sa(e,t){const n={};for(const o in t){const i=t[o];n[o]=la(i)?i.map(e):e(i)}return n}const aa=()=>{},la=Array.isArray,ca=/#/g,ua=/&/g,da=/\//g,fa=/=/g,pa=/\?/g,ha=/\+/g,ga=/%5B/g,ma=/%5D/g,va=/%5E/g,ya=/%60/g,ba=/%7B/g,_a=/%7C/g,wa=/%7D/g,xa=/%20/g;function Ca(e){return encodeURI(""+e).replace(_a,"|").replace(ga,"[").replace(ma,"]")}function Sa(e){return Ca(e).replace(ha,"%2B").replace(xa,"+").replace(ca,"%23").replace(ua,"%26").replace(ya,"`").replace(ba,"{").replace(wa,"}").replace(va,"^")}function ka(e){return Sa(e).replace(fa,"%3D")}function Ta(e){return null==e?"":function(e){return Ca(e).replace(ca,"%23").replace(pa,"%3F")}(e).replace(da,"%2F")}function Aa(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const Ea=/\/$/;function Ma(e,t,n="/"){let o,i={},r="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(o=t.slice(0,l),r=t.slice(l+1,a>-1?a:t.length),i=e(r)),a>-1&&(o=o||t.slice(0,a),s=t.slice(a,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),i=o[o.length-1];".."!==i&&"."!==i||o.push("");let r,s,a=n.length-1;for(r=0;r1&&a--}return n.slice(0,a).join("/")+"/"+o.slice(r).join("/")}(null!=o?o:t,n),{fullPath:o+(r&&"?")+r+s,path:o,query:i,hash:Aa(s)}}function Pa(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function La(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Oa(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!$a(e[n],t[n]))return!1;return!0}function $a(e,t){return la(e)?Ia(e,t):la(t)?Ia(t,e):e===t}function Ia(e,t){return la(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):1===e.length&&e[0]===t}const Da={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Ra,za,Ba,Na;function qa(e){if(!e)if(oa){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(Ea,"")}(za=Ra||(Ra={})).pop="pop",za.push="push",(Na=Ba||(Ba={})).back="back",Na.forward="forward",Na.unknown="";const ja=/^[^#]+#/;function Fa(e,t){return e.replace(ja,"#")+t}const Va=()=>({left:window.scrollX,top:window.scrollY});function Wa(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),i="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function Ha(e,t){return(history.state?history.state.position-t:-1)+e}const Ua=new Map;function Xa(e,t){const{pathname:n,search:o,hash:i}=t,r=e.indexOf("#");if(r>-1){let t=i.includes(e.slice(r))?e.slice(r).length:1,n=i.slice(t);return"/"!==n[0]&&(n="/"+n),Pa(n,"")}return Pa(n,e)+o+i}function Ya(e,t,n,o=!1,i=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:i?Va():null}}function Ga(e){const{history:t,location:n}=window,o={value:Xa(e,n)},i={value:t.state};function r(o,r,s){const a=e.indexOf("#"),l=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+o:location.protocol+"//"+location.host+e+o;try{t[s?"replaceState":"pushState"](r,"",l),i.value=r}catch(c){console.error(c),n[s?"replace":"assign"](l)}}return i.value||r(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:i,push:function(e,n){const s=ra({},i.value,t.state,{forward:e,scroll:Va()});r(s.current,s,!0),r(e,ra({},Ya(o.value,e,null),{position:s.position+1},n),!1),o.value=e},replace:function(e,n){r(e,ra({},t.state,Ya(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),o.value=e}}}function Ka(e){const t=Ga(e=qa(e)),n=function(e,t,n,o){let i=[],r=[],s=null;const a=({state:r})=>{const a=Xa(e,location),l=n.value,c=t.value;let u=0;if(r){if(n.value=a,t.value=r,s&&s===l)return void(s=null);u=c?r.position-c.position:0}else o(a);i.forEach(e=>{e(n.value,l,{delta:u,type:Ra.pop,direction:u?u>0?Ba.forward:Ba.back:Ba.unknown})})};function l(){const{history:e}=window;e.state&&e.replaceState(ra({},e.state,{scroll:Va()}),"")}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:function(){s=n.value},listen:function(e){i.push(e);const t=()=>{const t=i.indexOf(e);t>-1&&i.splice(t,1)};return r.push(t),t},destroy:function(){for(const e of r)e();r=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace);const o=ra({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:Fa.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Ja(e){return"string"==typeof e||"symbol"==typeof e}const Qa=Symbol("");var Za,el;function tl(e,t){return ra(new Error,{type:e,[Qa]:!0},t)}function nl(e,t){return e instanceof Error&&Qa in e&&(null==t||!!(e.type&t))}(el=Za||(Za={}))[el.aborted=4]="aborted",el[el.cancelled=8]="cancelled",el[el.duplicated=16]="duplicated";const ol="[^/]+?",il={sensitive:!1,strict:!1,start:!0,end:!0},rl=/[.+*?^${}()[\]/\\]/g;function sl(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function al(e,t){let n=0;const o=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const cl={type:0,value:""},ul=/[a-zA-Z0-9_]/;function dl(e,t,n){const o=function(e,t){const n=ra({},il,t),o=[];let i=n.start?"^":"";const r=[];for(const l of e){const e=l.length?[]:[90];n.strict&&!l.length&&(i+="/");for(let t=0;t1&&("*"===a||"+"===a)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:c,regexp:u,repeatable:"*"===a||"+"===a,optional:"*"===a||"?"===a})):t("Invalid state to consume buffer"),c="")}function f(){c+=a}for(;l{r(f)}:aa}function r(e){if(Ja(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(r),t.alias.forEach(r))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(r),e.alias.forEach(r))}}function s(e){const t=function(e,t){let n=0,o=t.length;for(;n!==o;){const i=n+o>>1;al(e,t[i])<0?o=i:n=i+1}const i=function(e){let t=e;for(;t=t.parent;)if(yl(t)&&0===al(e,t))return t;return}(e);i&&(o=t.lastIndexOf(i,o-1));return o}(e,n);n.splice(t,0,e),e.record.name&&!gl(e)&&o.set(e.record.name,e)}return t=vl({strict:!1,end:!0,sensitive:!1},t),e.forEach(e=>i(e)),{addRoute:i,resolve:function(e,t){let i,r,s,a={};if("name"in e&&e.name){if(i=o.get(e.name),!i)throw tl(1,{location:e});s=i.record.name,a=ra(pl(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&pl(e.params,i.keys.map(e=>e.name))),r=i.stringify(a)}else if(null!=e.path)r=e.path,i=n.find(e=>e.re.test(r)),i&&(a=i.parse(r),s=i.record.name);else{if(i=t.name?o.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw tl(1,{location:e,currentLocation:t});s=i.record.name,a=ra({},t.params,e.params),r=i.stringify(a)}const l=[];let c=i;for(;c;)l.unshift(c.record),c=c.parent;return{name:s,path:r,params:a,matched:l,meta:ml(l)}},removeRoute:r,clearRoutes:function(){n.length=0,o.clear()},getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}function pl(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function hl(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]="object"==typeof n?n[o]:n;return t}function gl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ml(e){return e.reduce((e,t)=>ra(e,t.meta),{})}function vl(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function yl({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function bl(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let o=0;oe&&Sa(e)):[o&&Sa(o)]).forEach(e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})}return t}function wl(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=la(o)?o.map(e=>null==e?null:""+e):null==o?o:""+o)}return t}const xl=Symbol(""),Cl=Symbol(""),Sl=Symbol(""),kl=Symbol(""),Tl=Symbol("");function Al(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function El(e,t,n,o,i,r=e=>e()){const s=o&&(o.enterCallbacks[i]=o.enterCallbacks[i]||[]);return()=>new Promise((a,l)=>{const c=e=>{var r;!1===e?l(tl(4,{from:n,to:t})):e instanceof Error?l(e):"string"==typeof(r=e)||r&&"object"==typeof r?l(tl(2,{from:t,to:e})):(s&&o.enterCallbacks[i]===s&&"function"==typeof e&&s.push(e),a())},u=r(()=>e.call(o&&o.instances[i],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(e=>l(e))})}function Ml(e,t,n,o,i=e=>e()){const r=[];for(const s of e)for(const e in s.components){let a=s.components[e];if("beforeRouteEnter"===t||s.instances[e])if(ia(a)){const l=(a.__vccOpts||a)[t];l&&r.push(El(l,n,o,s,e,i))}else{let l=a();r.push(()=>l.then(r=>{if(!r)throw new Error(`Couldn't resolve component "${e}" at "${s.path}"`);const a=(l=r).__esModule||"Module"===l[Symbol.toStringTag]||l.default&&ia(l.default)?r.default:r;var l;s.mods[e]=r,s.components[e]=a;const c=(a.__vccOpts||a)[t];return c&&El(c,n,o,s,e,i)()}))}}return r}function Pl(e){const t=Ki(Sl),n=Ki(kl),o=os(()=>{const n=Nn(e.to);return t.resolve(n)}),i=os(()=>{const{matched:e}=o.value,{length:t}=e,i=e[t-1],r=n.matched;if(!i||!r.length)return-1;const s=r.findIndex(La.bind(null,i));if(s>-1)return s;const a=Ol(e[t-2]);return t>1&&Ol(i)===a&&r[r.length-1].path!==a?r.findIndex(La.bind(null,e[t-2])):s}),r=os(()=>i.value>-1&&function(e,t){for(const n in t){const o=t[n],i=e[n];if("string"==typeof o){if(o!==i)return!1}else if(!la(i)||i.length!==o.length||o.some((e,t)=>e!==i[t]))return!1}return!0}(n.params,o.value.params)),s=os(()=>i.value>-1&&i.value===n.matched.length-1&&Oa(n.params,o.value.params));return{route:o,href:os(()=>o.value.href),isActive:r,isExactActive:s,navigate:function(n={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)?t[Nn(e.replace)?"replace":"push"](Nn(e.to)).catch(aa):Promise.resolve()}}}const Ll=Ko({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Pl,setup(e,{slots:t}){const n=bn(Pl(e)),{options:o}=Ki(Sl),i=os(()=>({[$l(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[$l(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:is("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}});function Ol(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const $l=(e,t,n)=>null!=e?e:null!=t?t:n;function Il(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Dl=Ko({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=Ki(Tl),i=os(()=>e.route||o.value),r=Ki(Cl,0),s=os(()=>{let e=Nn(r);const{matched:t}=i.value;let n;for(;(n=t[e])&&!n.components;)e++;return e}),a=os(()=>i.value.matched[s.value]);Gi(Cl,os(()=>s.value+1)),Gi(xl,a),Gi(Tl,i);const l=Dn();return Oo(()=>[l.value,a.value,e.name],([e,t,n],[o,i,r])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),!e||!t||i&&La(t,i)&&o||(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:"post"}),()=>{const o=i.value,r=e.name,s=a.value,c=s&&s.components[r];if(!c)return Il(n.default,{Component:c,route:o});const u=s.props[r],d=u?!0===u?o.params:"function"==typeof u?u(o):u:null,f=is(c,ra({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[r]=null)},ref:l}));return Il(n.default,{Component:f,route:o})||f}}});function Rl(e){const t=fl(e.routes,e),n=e.parseQuery||bl,o=e.stringifyQuery||_l,i=e.history,r=Al(),s=Al(),a=Al(),l=Rn(Da);let c=Da;oa&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=sa.bind(null,e=>""+e),d=sa.bind(null,Ta),f=sa.bind(null,Aa);function p(e,r){if(r=ra({},r||l.value),"string"==typeof e){const o=Ma(n,e,r.path),s=t.resolve({path:o.path},r),a=i.createHref(o.fullPath);return ra(o,s,{params:f(s.params),hash:Aa(o.hash),redirectedFrom:void 0,href:a})}let s;if(null!=e.path)s=ra({},e,{path:Ma(n,e.path,r.path).path});else{const t=ra({},e.params);for(const e in t)null==t[e]&&delete t[e];s=ra({},e,{params:d(t)}),r.params=d(r.params)}const a=t.resolve(s,r),c=e.hash||"";a.params=u(f(a.params));const p=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,ra({},e,{hash:(h=c,Ca(h).replace(ba,"{").replace(wa,"}").replace(va,"^")),path:a.path}));var h;const g=i.createHref(p);return ra({fullPath:p,hash:c,query:o===_l?wl(e.query):e.query||{}},a,{redirectedFrom:void 0,href:g})}function h(e){return"string"==typeof e?Ma(n,e,l.value.path):ra({},e)}function g(e,t){if(c!==e)return tl(8,{from:t,to:e})}function m(e){return y(e)}function v(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=h(o):{path:o},o.params={}),ra({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function y(e,t){const n=c=p(e),i=l.value,r=e.state,s=e.force,a=!0===e.replace,u=v(n);if(u)return y(ra(h(u),{state:"object"==typeof u?ra({},r,u.state):r,force:s,replace:a}),t||n);const d=n;let f;return d.redirectedFrom=t,!s&&function(e,t,n){const o=t.matched.length-1,i=n.matched.length-1;return o>-1&&o===i&&La(t.matched[o],n.matched[i])&&Oa(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,i,n)&&(f=tl(16,{to:d,from:i}),L(i,i,!0,!1)),(f?Promise.resolve(f):w(d,i)).catch(e=>nl(e)?nl(e,2)?e:P(e):M(e,d,i)).then(e=>{if(e){if(nl(e,2))return y(ra({replace:a},h(e.to),{state:"object"==typeof e.to?ra({},r,e.to.state):r,force:s}),t||d)}else e=C(d,i,!0,a,r);return x(d,i,e),e})}function b(e,t){const n=g(e,t);return n?Promise.reject(n):Promise.resolve()}function _(e){const t=I.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function w(e,t){let n;const[o,i,a]=function(e,t){const n=[],o=[],i=[],r=Math.max(t.matched.length,e.matched.length);for(let s=0;sLa(e,r))?o.push(r):n.push(r));const a=e.matched[s];a&&(t.matched.find(e=>La(e,a))||i.push(a))}return[n,o,i]}(e,t);n=Ml(o.reverse(),"beforeRouteLeave",e,t);for(const r of o)r.leaveGuards.forEach(o=>{n.push(El(o,e,t))});const l=b.bind(null,e,t);return n.push(l),R(n).then(()=>{n=[];for(const o of r.list())n.push(El(o,e,t));return n.push(l),R(n)}).then(()=>{n=Ml(i,"beforeRouteUpdate",e,t);for(const o of i)o.updateGuards.forEach(o=>{n.push(El(o,e,t))});return n.push(l),R(n)}).then(()=>{n=[];for(const o of a)if(o.beforeEnter)if(la(o.beforeEnter))for(const i of o.beforeEnter)n.push(El(i,e,t));else n.push(El(o.beforeEnter,e,t));return n.push(l),R(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Ml(a,"beforeRouteEnter",e,t,_),n.push(l),R(n))).then(()=>{n=[];for(const o of s.list())n.push(El(o,e,t));return n.push(l),R(n)}).catch(e=>nl(e,8)?e:Promise.reject(e))}function x(e,t,n){a.list().forEach(o=>_(()=>o(e,t,n)))}function C(e,t,n,o,r){const s=g(e,t);if(s)return s;const a=t===Da,c=oa?history.state:{};n&&(o||a?i.replace(e.fullPath,ra({scroll:a&&c&&c.scroll},r)):i.push(e.fullPath,r)),l.value=e,L(e,t,n,a),P()}let S;function k(){S||(S=i.listen((e,t,n)=>{if(!D.listening)return;const o=p(e),r=v(o);if(r)return void y(ra(r,{replace:!0}),o).catch(aa);c=o;const s=l.value;var a,u;oa&&(a=Ha(s.fullPath,n.delta),u=Va(),Ua.set(a,u)),w(o,s).catch(e=>nl(e,12)?e:nl(e,2)?(y(e.to,o).then(e=>{nl(e,20)&&!n.delta&&n.type===Ra.pop&&i.go(-1,!1)}).catch(aa),Promise.reject()):(n.delta&&i.go(-n.delta,!1),M(e,o,s))).then(e=>{(e=e||C(o,s,!1))&&(n.delta&&!nl(e,8)?i.go(-n.delta,!1):n.type===Ra.pop&&nl(e,20)&&i.go(-1,!1)),x(o,s,e)}).catch(aa)}))}let T,A=Al(),E=Al();function M(e,t,n){P(e);const o=E.list();return o.length?o.forEach(o=>o(e,t,n)):console.error(e),Promise.reject(e)}function P(e){return T||(T=!e,k(),A.list().forEach(([t,n])=>e?n(e):t()),A.reset()),e}function L(t,n,o,i){const{scrollBehavior:r}=e;if(!oa||!r)return Promise.resolve();const s=!o&&function(e){const t=Ua.get(e);return Ua.delete(e),t}(Ha(t.fullPath,0))||(i||!o)&&history.state&&history.state.scroll||null;return to().then(()=>r(t,n,s)).then(e=>e&&Wa(e)).catch(e=>M(e,t,n))}const O=e=>i.go(e);let $;const I=new Set,D={currentRoute:l,listening:!0,addRoute:function(e,n){let o,i;return Ja(e)?(o=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map(e=>e.record)},resolve:p,options:e,push:m,replace:function(e){return m(ra(h(e),{replace:!0}))},go:O,back:()=>O(-1),forward:()=>O(1),beforeEach:r.add,beforeResolve:s.add,afterEach:a.add,onError:E.add,isReady:function(){return T&&l.value!==Da?Promise.resolve():new Promise((e,t)=>{A.add([e,t])})},install(e){e.component("RouterLink",Ll),e.component("RouterView",Dl),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Nn(l)}),oa&&!$&&l.value===Da&&($=!0,m(i.location).catch(e=>{}));const t={};for(const o in Da)Object.defineProperty(t,o,{get:()=>l.value[o],enumerable:!0});e.provide(Sl,this),e.provide(kl,_n(t)),e.provide(Tl,l);const n=e.unmount;I.add(e),e.unmount=function(){I.delete(e),I.size<1&&(c=Da,S&&S(),S=null,l.value=Da,$=!1,T=!1),n()}}};function R(e){return e.reduce((e,t)=>e.then(()=>_(t)),Promise.resolve())}return D}function zl(e){return Ki(kl)}const Bl=["{","}"];const Nl=/^(?:\d)+/,ql=/^(?:\w)+/;const jl="zh-Hans",Fl="zh-Hant",Vl="en",Wl="fr",Hl="es",Ul=Object.prototype.hasOwnProperty,Xl=(e,t)=>Ul.call(e,t),Yl=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,n=Bl){if(!t)return[e];let o=this._caches[e];return o||(o=function(e,[t,n]){const o=[];let i=0,r="";for(;i-1?jl:e.indexOf("-hant")>-1?Fl:(n=e,["-tw","-hk","-mo","-cht"].find(e=>-1!==n.indexOf(e))?Fl:jl);var n;let o=[Vl,Wl,Hl];t&&Object.keys(t).length>0&&(o=Object.keys(t));const i=function(e,t){return t.find(t=>0===e.indexOf(t))}(e,o);return i||void 0}class Kl{constructor({locale:e,fallbackLocale:t,messages:n,watcher:o,formater:i}){this.locale=Vl,this.fallbackLocale=Vl,this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=i||Yl,this.messages=n||{},this.setLocale(e||Vl),o&&this.watchLocale(o)}setLocale(e){const t=this.locale;this.locale=Gl(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach(e=>{e(this.locale,t)})}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,n=!0){const o=this.messages[e];o?n?Object.assign(o,t):Object.keys(t).forEach(e=>{Xl(o,e)||(o[e]=t[e])}):this.messages[e]=t}f(e,t,n){return this.formater.interpolate(e,t,n).join("")}t(e,t,n){let o=this.message;return"string"==typeof t?(t=Gl(t,this.messages))&&(o=this.messages[t]):n=t,Xl(o,e)?this.formater.interpolate(o[e],n).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function Jl(e,t={},n,o){if("string"!=typeof e){const n=[t,e];e=n[0],t=n[1]}"string"!=typeof e&&(e="undefined"!=typeof uni&&Sf?Sf():"undefined"!=typeof global&&global.getLocale?global.getLocale():Vl),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||Vl);const i=new Kl({locale:e,fallbackLocale:n,messages:t,watcher:o});let r=(e,t)=>{{let e=!1;r=function(t,n){const o=fm().$vm;return o&&(o.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale(e=>{t.setLocale(e)}):e.$watch(()=>e.$locale,e=>{t.setLocale(e)})}(o,i))),i.t(t,n)}}return r(e,t)};return{i18n:i,f:(e,t,n)=>i.f(e,t,n),t:(e,t)=>r(e,t),add:(e,t,n=!0)=>i.add(e,t,n),watch:e=>i.watchLocale(e),getLocale:()=>i.getLocale(),setLocale:e=>i.setLocale(e)}}function Ql(e,t){return e.indexOf(t[0])>-1}const Zl=Ie(()=>"undefined"!=typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length);let ec;function tc(e){return Ql(e,te)?ic().f(e,function(){const e=Sf(),t=__uniConfig.locales;return t[e]||t[__uniConfig.fallbackLocale]||t.en||{}}(),te):e}function nc(e,t){if(1===t.length){if(e){const n=e=>v(e)&&Ql(e,te),o=t[0];let i=[];if(p(e)&&(i=e.filter(e=>n(e[o]))).length)return i;const r=e[t[0]];if(n(r))return e}return}const n=t.shift();return nc(e&&e[n],t)}function oc(e,t){const n=nc(e,t);if(!n)return!1;const o=t[t.length-1];if(p(n))n.forEach(e=>oc(e,[o]));else{let e=n[o];Object.defineProperty(n,o,{get:()=>tc(e),set(t){e=t}})}return!0}function ic(){if(!ec){let e;if(e=navigator.cookieEnabled&&window.localStorage&&localStorage.UNI_LOCALE||__uniConfig.locale||navigator.language,ec=Jl(e),Zl()){const t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach(e=>ec.add(e,__uniConfig.locales[e])),ec.setLocale(e)}}return ec}function rc(e,t,n){return t.reduce((t,o,i)=>(t[e+o]=n[i],t),{})}const sc=Ie(()=>{const e="uni.async.",t=["error"];ic().add(Vl,rc(e,t,["The connection timed out, click the screen to try again."]),!1),ic().add(Hl,rc(e,t,["Se agotó el tiempo de conexión, haga clic en la pantalla para volver a intentarlo."]),!1),ic().add(Wl,rc(e,t,["La connexion a expiré, cliquez sur l'écran pour réessayer."]),!1),ic().add(jl,rc(e,t,["连接服务器超时,点击屏幕重试"]),!1),ic().add(Fl,rc(e,t,["連接服務器超時,點擊屏幕重試"]),!1)}),ac=Ie(()=>{const e="uni.showActionSheet.",t=["cancel"];ic().add(Vl,rc(e,t,["Cancel"]),!1),ic().add(Hl,rc(e,t,["Cancelar"]),!1),ic().add(Wl,rc(e,t,["Annuler"]),!1),ic().add(jl,rc(e,t,["取消"]),!1),ic().add(Fl,rc(e,t,["取消"]),!1)}),lc=Ie(()=>{const e="uni.showToast.",t=["unpaired"];ic().add(Vl,rc(e,t,["Please note showToast must be paired with hideToast"]),!1),ic().add(Hl,rc(e,t,["Tenga en cuenta que showToast debe estar emparejado con hideToast"]),!1),ic().add(Wl,rc(e,t,["Veuillez noter que showToast doit être associé à hideToast"]),!1),ic().add(jl,rc(e,t,["请注意 showToast 与 hideToast 必须配对使用"]),!1),ic().add(Fl,rc(e,t,["請注意 showToast 與 hideToast 必須配對使用"]),!1)}),cc=Ie(()=>{const e="uni.showLoading.",t=["unpaired"];ic().add(Vl,rc(e,t,["Please note showLoading must be paired with hideLoading"]),!1),ic().add(Hl,rc(e,t,["Tenga en cuenta que showLoading debe estar emparejado con hideLoading"]),!1),ic().add(Wl,rc(e,t,["Veuillez noter que showLoading doit être associé à hideLoading"]),!1),ic().add(jl,rc(e,t,["请注意 showLoading 与 hideLoading 必须配对使用"]),!1),ic().add(Fl,rc(e,t,["請注意 showLoading 與 hideLoading 必須配對使用"]),!1)}),uc=Ie(()=>{const e="uni.showModal.",t=["cancel","confirm"];ic().add(Vl,rc(e,t,["Cancel","OK"]),!1),ic().add(Hl,rc(e,t,["Cancelar","OK"]),!1),ic().add(Wl,rc(e,t,["Annuler","OK"]),!1),ic().add(jl,rc(e,t,["取消","确定"]),!1),ic().add(Fl,rc(e,t,["取消","確定"]),!1)}),dc=Ie(()=>{const e="uni.chooseFile.",t=["notUserActivation"];ic().add(Vl,rc(e,t,["File chooser dialog can only be shown with a user activation"]),!1),ic().add(Hl,rc(e,t,["El cuadro de diálogo del selector de archivos solo se puede mostrar con la activación del usuario"]),!1),ic().add(Wl,rc(e,t,["La boîte de dialogue du sélecteur de fichier ne peut être affichée qu'avec une activation par l'utilisateur"]),!1),ic().add(jl,rc(e,t,["文件选择器对话框只能在由用户激活时显示"]),!1),ic().add(Fl,rc(e,t,["文件選擇器對話框只能在由用戶激活時顯示"]),!1)}),fc=Ie(()=>{const e="uni.setClipboardData.",t=["success","fail"];ic().add(Vl,rc(e,t,["Content copied","Copy failed, please copy manually"]),!1),ic().add(Hl,rc(e,t,["Contenido copiado","Error al copiar, copie manualmente"]),!1),ic().add(Wl,rc(e,t,["Contenu copié","Échec de la copie, copiez manuellement"]),!1),ic().add(jl,rc(e,t,["内容已复制","复制失败,请手动复制"]),!1),ic().add(Fl,rc(e,t,["內容已復制","復制失敗,請手動復製"]),!1)}),pc=Ie(()=>{const e="uni.video.",t=["danmu","volume"];ic().add(Vl,rc(e,t,["Danmu","Volume"]),!1),ic().add(Hl,rc(e,t,["Danmu","Volumen"]),!1),ic().add(Wl,rc(e,t,["Danmu","Le Volume"]),!1),ic().add(jl,rc(e,t,["弹幕","音量"]),!1),ic().add(Fl,rc(e,t,["彈幕","音量"]),!1)});function hc(e){const t=new st;return{on:(e,n)=>t.on(e,n),once:(e,n)=>t.once(e,n),off:(e,n)=>t.off(e,n),emit:(e,...n)=>t.emit(e,...n),subscribe(n,o,i=!1){t[i?"once":"on"](`${e}.${n}`,o)},unsubscribe(n,o){t.off(`${e}.${n}`,o)},subscribeHandler(n,o,i){t.emit(`${e}.${n}`,o,i)}}}const gc="invokeViewApi",mc="invokeServiceApi";let vc=1;const yc=Object.create(null);function bc(e,t){return e+"."+t}function _c(e,t,n){t=bc(e,t),yc[t]||(yc[t]=n)}function wc({id:e,name:t,args:n},o){t=bc(o,t);const i=t=>{e&&Hy.publishHandler(gc+"."+e,t)},r=yc[t];r?r(n,i):i({})}const xc=c(hc("service"),{invokeServiceMethod:(e,t,n)=>{const{subscribe:o,publishHandler:i}=Hy,r=n?vc++:0;n&&o(mc+"."+r,n,!0),i(mc,{id:r,name:e,args:t})}}),Cc=Xe(!0);let Sc;function kc(){Sc&&(clearTimeout(Sc),Sc=null)}let Tc=0,Ac=0;function Ec(e){if(kc(),1!==e.touches.length)return;const{pageX:t,pageY:n}=e.touches[0];Tc=t,Ac=n,Sc=setTimeout(function(){const t=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});t.touches=e.touches,t.changedTouches=e.changedTouches,e.target.dispatchEvent(t)},350)}function Mc(e){if(!Sc)return;if(1!==e.touches.length)return kc();const{pageX:t,pageY:n}=e.touches[0];return Math.abs(t-Tc)>10||Math.abs(n-Ac)>10?kc():void 0}function Pc(e,t){const n=Number(e);return isNaN(n)?t:n}function Lc(){const e=__uniConfig.globalStyle||{},t=Pc(e.rpxCalcMaxDeviceWidth,960),n=Pc(e.rpxCalcBaseDeviceWidth,375);function o(){let e=function(){const e=/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation,t=e&&90===Math.abs(window.orientation);var n=e?Math[t?"max":"min"](screen.width,screen.height):screen.width;return Math.min(window.innerWidth,document.documentElement.clientWidth,n)||n}();e=e<=t?e:n,document.documentElement.style.fontSize=e/23.4375+"px"}o(),document.addEventListener("DOMContentLoaded",o),window.addEventListener("load",o),window.addEventListener("resize",o)}function Oc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $c,Ic,Dc=["top","left","right","bottom"],Rc={};function zc(){return Ic="CSS"in window&&"function"==typeof CSS.supports?CSS.supports("top: env(safe-area-inset-top)")?"env":CSS.supports("top: constant(safe-area-inset-top)")?"constant":"":""}function Bc(){if(Ic="string"==typeof Ic?Ic:zc()){var e=[],t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("test",null,n)}catch(a){}var o=document.createElement("div");i(o,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),Dc.forEach(function(e){s(o,e)}),document.body.appendChild(o),r(),$c=!0}else Dc.forEach(function(e){Rc[e]=0});function i(e,t){var n=e.style;Object.keys(t).forEach(function(e){var o=t[e];n[e]=o})}function r(t){t?e.push(t):e.forEach(function(e){e()})}function s(e,n){var o=document.createElement("div"),s=document.createElement("div"),a=document.createElement("div"),l=document.createElement("div"),c={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:Ic+"(safe-area-inset-"+n+")"};i(o,c),i(s,c),i(a,{transition:"0s",animation:"none",width:"400px",height:"400px"}),i(l,{transition:"0s",animation:"none",width:"250%",height:"250%"}),o.appendChild(a),s.appendChild(l),e.appendChild(o),e.appendChild(s),r(function(){o.scrollTop=s.scrollTop=1e4;var e=o.scrollTop,i=s.scrollTop;function r(){this.scrollTop!==(this===o?e:i)&&(o.scrollTop=s.scrollTop=1e4,e=o.scrollTop,i=s.scrollTop,function(e){qc.length||setTimeout(function(){var e={};qc.forEach(function(t){e[t]=Rc[t]}),qc.length=0,jc.forEach(function(t){t(e)})},0);qc.push(e)}(n))}o.addEventListener("scroll",r,t),s.addEventListener("scroll",r,t)});var u=getComputedStyle(o);Object.defineProperty(Rc,n,{configurable:!0,get:function(){return parseFloat(u.paddingBottom)}})}}function Nc(e){return $c||Bc(),Rc[e]}var qc=[];var jc=[];const Fc=Oc({get support(){return 0!=("string"==typeof Ic?Ic:zc()).length},get top(){return Nc("top")},get left(){return Nc("left")},get right(){return Nc("right")},get bottom(){return Nc("bottom")},onChange:function(e){zc()&&($c||Bc(),"function"==typeof e&&jc.push(e))},offChange:function(e){var t=jc.indexOf(e);t>=0&&jc.splice(t,1)}}),Vc=Zs(()=>{},["prevent"]),Wc=Zs(e=>{},["stop"]);function Hc(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function Uc(){const e=Hc(document.documentElement.style,"--window-top");return e?e+Fc.top:0}function Xc(){const e=document.documentElement.style,t=Uc(),n=Hc(e,"--window-bottom"),o=Hc(e,"--window-left"),i=Hc(e,"--window-right"),r=Hc(e,"--top-window-height");return{top:t,bottom:n?n+Fc.bottom:0,left:o?o+Fc.left:0,right:i?i+Fc.right:0,topWindowHeight:r||0}}function Yc(e){const t=document.documentElement.style;Object.keys(e).forEach(n=>{t.setProperty(n,e[n])})}function Gc(e){return Yc(e)}function Kc(e){return Symbol(e)}function Jc(e){return-1!==(e+="").indexOf("rpx")||-1!==e.indexOf("upx")}function Qc(e,t=!1){if(t)return function(e){if(!Jc(e))return e;return e.replace(/(\d+(\.\d+)?)[ru]px/g,(e,t)=>nf(parseFloat(t))+"px")}(e);if(v(e)){const t=parseInt(e)||0;return Jc(e)?nf(t):t}return e}function Zc(e){return e.$page}function eu(e){return 0===e.tagName.indexOf("UNI-")}const tu="M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z",nu="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z",ou="M21.781 7.844l-9.063 8.594 9.063 8.594q0.25 0.25 0.25 0.609t-0.25 0.578q-0.25 0.25-0.578 0.25t-0.578-0.25l-9.625-9.125q-0.156-0.125-0.203-0.297t-0.047-0.359q0-0.156 0.047-0.328t0.203-0.297l9.625-9.125q0.25-0.25 0.578-0.25t0.578 0.25q0.25 0.219 0.25 0.578t-0.25 0.578z";function iu(e,t="#000",n=27){return Ir("svg",{width:n,height:n,viewBox:"0 0 32 32"},[Ir("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function ru(){{const{$pageInstance:e}=Ur();return e&&pu(e.proxy)}}function su(e){const t=Be(e);if(t.$page)return pu(t);if(!t.$)return;{const{$pageInstance:e}=t.$;if(e)return pu(e.proxy)}const n=t.$.root.proxy;return n&&n.$page?pu(n):void 0}function au(){const e=Pp(),t=e.length;if(t)return e[t-1]}function lu(){var e;const t=null==(e=au())?void 0:e.$page;if(t)return t.meta}function cu(){const e=lu();return e?e.id:-1}function uu(){const e=au();if(e)return e.$vm}const du=["navigationBar","pullToRefresh"];function fu(e,t){const n=JSON.parse(JSON.stringify(__uniConfig.globalStyle||{})),o=c({id:t},n,e);du.forEach(t=>{o[t]=c({},n[t],e[t])});const{navigationBar:i}=o;return i.titleText&&i.titleImage&&(i.titleText=""),o}function pu(e){var t,n;return(null==(t=e.$page)?void 0:t.id)||(null==(n=e.$basePage)?void 0:n.id)}function hu(e,t,n){if(v(e))n=t,t=e,e=uu();else if("number"==typeof e){const t=Pp().find(t=>Zc(t).id===e);e=t?t.$vm:uu()}if(!e)return;const o=e.$[t];return o&&((e,t)=>{let n;for(let o=0;o{function s(){if((()=>{const{scrollHeight:e}=document.documentElement,t=window.innerHeight,o=window.scrollY,r=o>0&&e>t&&o+t+n>=e,s=Math.abs(e-vu)>n;return!r||i&&!s?(!r&&i&&(i=!1),!1):(vu=e,i=!0,!0)})())return t&&t(),r=!1,setTimeout(function(){r=!0},350),!0}e&&e(window.pageYOffset),t&&r&&(s()||(mu=setTimeout(s,300))),o=!1};return function(){clearTimeout(mu),o||requestAnimationFrame(s),o=!0}}function bu(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return bu(e,t.slice(2));const n=t.split("/"),o=n.length;let i=0;for(;i0?e.split("/"):[];return r.splice(r.length-i-1,i+1),$e(r.concat(n).join("/"))}function _u(e,t=!1){return t?__uniRoutes.find(t=>t.path===e||t.alias===e):__uniRoutes.find(t=>t.path===e)}function wu(){Lc(),We(eu),window.addEventListener("touchstart",Ec,Cc),window.addEventListener("touchmove",Mc,Cc),window.addEventListener("touchend",kc,Cc),window.addEventListener("touchcancel",kc,Cc)}class xu{constructor(e){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=e,this.$el=function(e,t=!1){const{vnode:n}=e;if(qe(n.el))return t?n.el?[n.el]:[]:n.el;const{subTree:o}=e;if(16&o.shapeFlag){const e=o.children.filter(e=>e.el&&qe(e.el));if(e.length>0)return t?e.map(e=>e.el):e[0].el}return t?n.el?[n.el]:[]:n.el}(e.$),this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(e){if(!this.$el||!e)return;const t=Tu(this.$el.querySelector(e));return t?Cu(t,!1):void 0}selectAllComponents(e){if(!this.$el||!e)return[];const t=[],n=this.$el.querySelectorAll(e);for(let o=0;o-1&&t.splice(n,1)}const n=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return-1===n.indexOf(e)&&(n.push(e),this.forceUpdate("class")),this}hasClass(e){return this.$el&&this.$el.classList.contains(e)}getDataset(){return this.$el&&this.$el.dataset}callMethod(e,t={}){const n=this.$vm[e];m(n)?n(JSON.parse(JSON.stringify(t))):this.$vm.ownerId&&Hy.publishHandler("onWxsInvokeCallMethod",{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:e,args:t})}requestAnimationFrame(e){return window.requestAnimationFrame(e)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(e,t={}){return this.$vm.$emit(e,t),this}getComputedStyle(e){if(this.$el){const t=window.getComputedStyle(this.$el);return e&&e.length?e.reduce((e,n)=>(e[n]=t[n],e),{}):t}return{}}setTimeout(e,t){return window.setTimeout(e,t)}clearTimeout(e){return window.clearTimeout(e)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function Cu(e,t=!0){if(t&&e&&(e=Ne(e.$)),e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new xu(e)),e.$el.__wxsComponentDescriptor}function Su(e,t){return Cu(e,t)}function ku(e,t,n,o=!0){if(t){e.__instance||(e.__instance=!0,Object.defineProperty(e,"instance",{get:()=>Su(n.proxy,!1)}));const i=function(e,t,n=!0){if(!t)return!1;if(n&&e.length<2)return!1;const o=Ne(t);if(!o)return!1;const i=o.$.type;return!(!i.$wxs&&!i.$renderjs)&&o}(t,n,o);if(i)return[e,Su(i,!1)]}}function Tu(e){if(e)return e.__vueParentComponent&&e.__vueParentComponent.proxy}function Au(e,t=!1){const{type:n,timeStamp:o,target:i,currentTarget:r}=e;let s,a;s=Ye(t?i:function(e){for(;!eu(e);)e=e.parentElement;return e}(i)),a=Ye(r);const l={type:n,timeStamp:o,target:s,detail:{},currentTarget:a};return e instanceof CustomEvent&&C(e.detail)&&(l.detail=e.detail),e._stopped&&(l._stopped=!0),e.type.startsWith("touch")&&(l.touches=e.touches,l.changedTouches=e.changedTouches),function(e,t){c(e,{preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()})}(l,e),l}function Eu(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function Mu(e,t){const n=[];for(let o=0;o0===e.type.indexOf("mouse")||["contextmenu"].includes(e.type))(e))!function(e,t){const n=Uc();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[Eu(t,n)]}(r,e);else if((e=>"undefined"!=typeof TouchEvent&&e instanceof TouchEvent||0===e.type.indexOf("touch")||["longpress"].indexOf(e.type)>=0)(e)){const t=Uc();r.touches=Mu(e.touches,t),r.changedTouches=Mu(e.changedTouches,t)}else if((e=>!e.type.indexOf("key")&&e instanceof KeyboardEvent)(e)){["key","code"].forEach(t=>{Object.defineProperty(r,t,{get:()=>e[t]})})}return ku(r,t,n)||[r]},createNativeEvent:Au},Symbol.toStringTag,{value:"Module"});function Lu(e){!function(e){const t=e.globalProperties;c(t,Pu),t.$gcd=Su}(e._context.config)}let Ou=1;function $u(e){return(e||cu())+"."+gc}const Iu=c(hc("view"),{invokeOnCallback:(e,t)=>Uy.emit("api."+e,t),invokeViewMethod:(e,t,n,o)=>{const{subscribe:i,publishHandler:r}=Uy,s=o?Ou++:0;o&&i(gc+"."+s,o,!0),r($u(n),{id:s,name:e,args:t},n)},invokeViewMethodKeepAlive:(e,t,n,o)=>{const{subscribe:i,unsubscribe:r,publishHandler:s}=Uy,a=Ou++,l=gc+"."+a;return i(l,n),s($u(o),{id:a,name:e,args:t},o),()=>{r(l)}}});function Du(e){hu(au(),ge,e),Uy.invokeOnCallback("onWindowResize",e)}function Ru(e){const t=au();hu(fm(),ie,e),hu(t,ie)}function zu(){hu(fm(),re),hu(au(),re)}const Bu=[ve,be];function Nu(){Bu.forEach(e=>Uy.subscribe(e,function(e){return(t,n)=>{hu(parseInt(n),e,t)}}(e)))}function qu(){!function(){const{on:e}=Uy;e(ge,Du),e(Pe,Ru),e(Le,zu)}(),Nu()}function ju(){if(this.$route){const e=this.$route.meta;return e.eventChannel||(e.eventChannel=new et(this.$page.id)),e.eventChannel}}function Fu(e){e._context.config.globalProperties.getOpenerEventChannel=ju}function Vu(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}function Wu(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,(e,t)=>`${nf(parseFloat(t))}px`):/^-?[\d\.]+$/.test(e)?`${e}px`:e||""}function Hu(e){const t=e.animation;if(!t||!t.actions||!t.actions.length)return;let n=0;const o=t.actions,i=t.actions.length;function r(){const t=o[n],s=t.option.transition,a=function(e){const t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],n=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],o=["opacity","background-color"],i=["width","height","left","right","top","bottom"],r=e.animates,s=e.option,a=s.transition,l={},c=[];return r.forEach(e=>{let r=e.type,s=[...e.args];if(t.concat(n).includes(r))r.startsWith("rotate")||r.startsWith("skew")?s=s.map(e=>parseFloat(e)+"deg"):r.startsWith("translate")&&(s=s.map(Wu)),n.indexOf(r)>=0&&(s.length=1),c.push(`${r}(${s.join(",")})`);else if(o.concat(i).includes(s[0])){r=s[0];const e=s[1];l[r]=i.includes(r)?Wu(e):e}}),l.transform=l.webkitTransform=c.join(" "),l.transition=l.webkitTransition=Object.keys(l).map(e=>`${function(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`).replace("webkit","-webkit")}(e)} ${a.duration}ms ${a.timingFunction} ${a.delay}ms`).join(","),l.transformOrigin=l.webkitTransformOrigin=s.transformOrigin,l}(t);Object.keys(a).forEach(t=>{e.$el.style[t]=a[t]}),n+=1,n{r()},0)}const Uu={props:["animation"],watch:{animation:{deep:!0,handler(){Hu(this)}}},mounted(){Hu(this)}},Xu=e=>{e.__reserved=!0;const{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(Uu),Yu(e)},Yu=e=>(e.__reserved=!0,e.compatConfig={MODE:3},Ko(e));function Gu(e){return e.__wwe=!0,e}function Ku(e,t){return(n,o,i)=>{e.value&&t(n,function(e,t,n,o){let i;return i=Ye(n),{type:t.__evName||o.type||e,timeStamp:t.timeStamp||0,target:i,currentTarget:i,detail:o}}(n,o,e.value,i||{}))}}const Ju={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function Qu(e){const t=Dn(!1);let n,o,i=!1;function r(){requestAnimationFrame(()=>{clearTimeout(o),o=setTimeout(()=>{t.value=!1},parseInt(e.hoverStayTime))})}function s(o){o._hoverPropagationStopped||e.hoverClass&&"none"!==e.hoverClass&&!e.disabled&&(e.hoverStopPropagation&&(o._hoverPropagationStopped=!0),i=!0,n=setTimeout(()=>{t.value=!0,i||r()},parseInt(e.hoverStartTime)))}function a(){i=!1,t.value&&r()}function l(){a(),window.removeEventListener("mouseup",l)}return{hovering:t,binding:{onTouchstartPassive:Gu(function(e){e.touches.length>1||s(e)}),onMousedown:Gu(function(e){i||(s(e),window.addEventListener("mouseup",l))}),onTouchend:Gu(function(){a()}),onMouseup:Gu(function(){i&&l()}),onTouchcancel:Gu(function(){i=!1,t.value=!1,clearTimeout(n)})}}}function Zu(e,t){return v(t)&&(t=[t]),t.reduce((t,n)=>(e[n]&&(t[n]=!0),t),Object.create(null))}const ed=Kc("uf"),td=Kc("ul");function nd(e,t,n){const o=ru();n&&!e||C(t)&&Object.keys(t).forEach(i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&Hy.on(`uni-${i}-${o}-${e}`,t[i]):0===i.indexOf("uni-")?Hy.on(i,t[i]):e&&Hy.on(`uni-${i}-${o}-${e}`,t[i])})}function od(e,t,n){const o=ru();n&&!e||C(t)&&Object.keys(t).forEach(i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&Hy.off(`uni-${i}-${o}-${e}`,t[i]):0===i.indexOf("uni-")?Hy.off(i,t[i]):e&&Hy.off(`uni-${i}-${o}-${e}`,t[i])})}const id=Xu({name:"Button",props:{id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1},plain:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=Dn(null),o=Ki(ed,!1),{hovering:i,binding:r}=Qu(e),s=Gu((t,i)=>{if(e.disabled)return t.stopImmediatePropagation();i&&n.value.click();const r=e.formType;if(r){if(!o)return;"submit"===r?o.submit(t):"reset"===r&&o.reset(t)}else;}),a=Ki(td,!1);return a&&(a.addHandler(s),bi(()=>{a.removeHandler(s)})),function(e,t){nd(e.id,t),Oo(()=>e.id,(e,n)=>{od(n,t,!0),nd(e,t,!0)}),_i(()=>{od(e.id,t)})}(e,{"label-click":s}),()=>{const o=e.hoverClass,a=Zu(e,"disabled"),l=Zu(e,"loading"),c=Zu(e,"plain"),u=o&&"none"!==o;return Ir("uni-button",jr({ref:n,onClick:s,id:e.id,class:u&&i.value?o:""},u&&r,a,l,c),[t.default&&t.default()],16,["onClick","id"])}}}),rd=Kc("upm");function sd(){return Ki(rd)}function ad(e){const t=function(e){return bn(function(e){{const{enablePullDownRefresh:t,navigationBar:n}=e;if(t){const t=function(e){return e.offset&&(e.offset=Qc(e.offset)),e.height&&(e.height=Qc(e.height)),e.range&&(e.range=Qc(e.range)),e}(c({support:!0,color:"#2BD009",style:"circle",height:70,range:150,offset:0},e.pullToRefresh)),{type:o,style:i}=n;"custom"!==i&&"transparent"!==o&&(t.offset+=44+Fc.top),e.pullToRefresh=t}}if(history.state){const t=history.state.__type__;"redirectTo"!==t&&"reLaunch"!==t||0!==Pp().length||(e.isEntry=!0,e.isQuit=!0)}return e}(JSON.parse(JSON.stringify(fu(zl().meta,e)))))}(e);return Gi(rd,t),t}function ld(){return zl()}function cd(){return history.state&&history.state.__id__||1}const ud=["original","compressed"],dd=["album","camera"],fd=["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"];function pd(e,t){return e&&-1!==t.indexOf(e)?e:t[0]}function hd(e,t){return!p(e)||0===e.length||e.find(e=>-1===t.indexOf(e))?t:e}function gd(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}let md=1;const vd={};function yd(e,t,n,o=!1){return vd[e]={name:t,keepAlive:o,callback:n},e}function bd(e,t,n){if("number"==typeof e){const o=vd[e];if(o)return o.keepAlive||delete vd[e],o.callback(t,n)}return t}function _d(e){for(const t in vd)if(vd[t].name===e)return!0;return!1}const wd="success",xd="fail",Cd="complete";function Sd(e,t={},{beforeAll:n,beforeSuccess:o}={}){C(t)||(t={});const{success:i,fail:r,complete:s}=function(e){const t={};for(const n in e){const o=e[n];m(o)&&(t[n]=gd(o),delete e[n])}return t}(t),a=m(i),l=m(r),c=m(s),u=md++;return yd(u,e,u=>{(u=u||{}).errMsg=function(e,t){return e&&-1!==e.indexOf(":fail")?t+e.substring(e.indexOf(":fail")):t+":ok"}(u.errMsg,e),m(n)&&n(u),u.errMsg===e+":ok"?(m(o)&&o(u,t),a&&i(u)):l&&r(u),c&&s(u)}),u}const kd="success",Td="fail",Ad="complete",Ed={},Md={};function Pd(e,t){return function(n){return e(n,t)||n}}function Ld(e,t,n){let o=!1;for(let i=0;ie(t),catch(){}}}function Od(e,t={}){return[kd,Td,Ad].forEach(n=>{const o=e[n];if(!p(o))return;const i=t[n];t[n]=function(e){Ld(o,e,t).then(e=>m(i)&&i(e)||e)}}),t}function $d(e,t){const n=[];p(Ed.returnValue)&&n.push(...Ed.returnValue);const o=Md[e];return o&&p(o.returnValue)&&n.push(...o.returnValue),n.forEach(e=>{t=e(t)||t}),t}function Id(e){const t=Object.create(null);Object.keys(Ed).forEach(e=>{"returnValue"!==e&&(t[e]=Ed[e].slice())});const n=Md[e];return n&&Object.keys(n).forEach(e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))}),t}function Dd(e,t,n,o){const i=Id(e);if(i&&Object.keys(i).length){if(p(i.invoke)){return Ld(i.invoke,n).then(n=>t(Od(Id(e),n),...o))}return t(Od(i,n),...o)}return t(n,...o)}function Rd(e,t){return(n={},...o)=>function(e){return!(!C(e)||![wd,xd,Cd].find(t=>m(e[t])))}(n)?$d(e,Dd(e,t,c({},n),o)):$d(e,new Promise((i,r)=>{Dd(e,t,c({},n,{success:i,fail:r}),o)}))}function zd(e,t,n,o={}){const i=t+":fail";let r="";return r=n?0===n.indexOf(i)?n:i+" "+n:i,delete o.errCode,bd(e,c({errMsg:r},o))}function Bd(e,t,n,o){if(o&&o.beforeInvoke){const e=o.beforeInvoke(t);if(v(e))return e}const i=function(e,t){const n=e[0];if(!t||!t.formatArgs||!C(t.formatArgs)&&C(n))return;const o=t.formatArgs,i=Object.keys(o);for(let r=0;r{Nd(o);const i=Bd(0,[o],0,n);if(i)throw new Error(i);const r=!_d(e);!function(e,t){yd(md++,e,t,!0)}(e,o),r&&(!function(e){Uy.on("api."+e,t=>{for(const n in vd){const o=vd[n];o.name===e&&o.callback(t)}})}(e),t())}}function jd(e,t,n){return o=>{Nd(o);const i=Bd(0,[o],0,n);if(i)throw new Error(i);!function(e,t){for(const n in vd){const o=vd[n];o.callback===t&&o.name===e&&delete vd[n]}}(e=e.replace("off","on"),o);_d(e)||(!function(e){Uy.off("api."+e)}(e),t())}}function Fd(e,t,n,o){return n=>{const i=Sd(e,n,o),r=Bd(0,[n],0,o);return r?zd(i,e,r):t(n,{resolve:t=>function(e,t,n){return bd(e,c(n||{},{errMsg:t+":ok"}))}(i,e,t),reject:(t,n)=>zd(i,e,function(e){return!e||v(e)?e:e.stack?("undefined"!=typeof globalThis&&globalThis.harmonyChannel||console.error(e.message+"\n"+e.stack),e.message):e}(t),n)})}}function Vd(e,t,n){return qd(e,t,n)}function Wd(e,t,n){return jd(e,t,n)}function Hd(e,t,n,o){return Rd(e,Fd(e,t,0,o))}function Ud(e,t,n,o){return function(e,t,n,o){return(...e)=>{const n=Bd(0,e,0,o);if(n)throw new Error(n);return t.apply(null,e)}}(0,t,0,o)}function Xd(e,t,n,o){return Rd(e,function(e,t,n,o){return Fd(e,t,0,o)}(e,t,0,o))}let Yd=!1,Gd=0,Kd=0,Jd=960,Qd=375,Zd=750;function ef(){let e,t,n;{const{windowWidth:o,pixelRatio:i,platform:r}=function(){const e=th(),t=ih(oh(e,nh(e)));return{platform:Kp?"ios":"other",pixelRatio:window.devicePixelRatio,windowWidth:t}}();e=o,t=i,n=r}Gd=e,Kd=t,Yd="ios"===n}function tf(e,t){const n=Number(e);return isNaN(n)?t:n}const nf=Ud(0,(e,t)=>{if(0===Gd&&(ef(),function(){const e=__uniConfig.globalStyle||{};Jd=tf(e.rpxCalcMaxDeviceWidth,960),Qd=tf(e.rpxCalcBaseDeviceWidth,375),Zd=tf(e.rpxCalcBaseDeviceWidth,750)}()),0===(e=Number(e)))return 0;let n=t||Gd;n=e===Zd||n<=Jd?n:Qd;let o=e/750*n;return o<0&&(o=-o),o=Math.floor(o+1e-4),0===o&&(o=1!==Kd&&Yd?.5:1),e<0?-o:o}),of=[.5,.8,1,1.25,1.5,2];const rf=(e,t,n,o)=>{!function(e,t,n,o,i){Uy.invokeViewMethod("map."+e,{type:n,data:o},t,i)}(e,t,n,o,e=>{o&&((e,t)=>{const n=t.errMsg||"";new RegExp("\\:\\s*fail").test(n)?e.fail&&e.fail(t):e.success&&e.success(t),e.complete&&e.complete(t)})(o,e)})};var sf=["scale","rotate","translate","setTransform","transform"],af=["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"],lf=["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"];const cf={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",transparent:"#00000000"};function uf(e){let t=null;if(null!=(t=/^#([0-9|A-F|a-f]{6})$/.exec(e=e||"#000000"))){return[parseInt(t[1].slice(0,2),16),parseInt(t[1].slice(2,4),16),parseInt(t[1].slice(4),16),255]}if(null!=(t=/^#([0-9|A-F|a-f]{3})$/.exec(e))){let e=t[1].slice(0,1),n=t[1].slice(1,2),o=t[1].slice(2,3);return e=parseInt(e+e,16),n=parseInt(n+n,16),o=parseInt(o+o,16),[e,n,o,255]}if(null!=(t=/^rgb\((.+)\)$/.exec(e)))return t[1].split(",").map(function(e){return Math.min(255,parseInt(e.trim()))}).concat(255);if(null!=(t=/^rgba\((.+)\)$/.exec(e)))return t[1].split(",").map(function(e,t){return 3===t?Math.floor(255*parseFloat(e.trim())):Math.min(255,parseInt(e.trim()))});var n=e.toLowerCase();if(f(cf,n)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(cf[n]);const e=parseInt(t[1].slice(0,2),16),o=parseInt(t[1].slice(2,4),16),i=parseInt(t[1].slice(4,6),16);let r=parseInt(t[1].slice(6,8),16);return r=r>=0?r:255,[e,o,i,r]}return console.error("unsupported color:"+e),[0,0,0,255]}class df{constructor(e,t){this.type=e,this.data=t,this.colorStop=[]}addColorStop(e,t){this.colorStop.push([e,uf(t)])}}class ff{constructor(e,t){this.type="pattern",this.data=e,this.colorStop=t}}class pf{constructor(e){this.width=e}}class hf{constructor(e,t){this.id=e,this.pageId=t,this.actions=[],this.path=[],this.subpath=[],this.drawingState=[],this.state={lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}setFillStyle(e){console.log("initCanvasContextProperty implemented.")}setStrokeStyle(e){console.log("initCanvasContextProperty implemented.")}setShadow(e,t,n,o){console.log("initCanvasContextProperty implemented.")}addColorStop(e,t){console.log("initCanvasContextProperty implemented.")}setLineWidth(e){console.log("initCanvasContextProperty implemented.")}setLineCap(e){console.log("initCanvasContextProperty implemented.")}setLineJoin(e){console.log("initCanvasContextProperty implemented.")}setLineDash(e,t){console.log("initCanvasContextProperty implemented.")}setMiterLimit(e){console.log("initCanvasContextProperty implemented.")}fillRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}strokeRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}clearRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}fill(){console.log("initCanvasContextProperty implemented.")}stroke(){console.log("initCanvasContextProperty implemented.")}scale(e,t){console.log("initCanvasContextProperty implemented.")}rotate(e){console.log("initCanvasContextProperty implemented.")}translate(e,t){console.log("initCanvasContextProperty implemented.")}setFontSize(e){console.log("initCanvasContextProperty implemented.")}fillText(e,t,n,o){console.log("initCanvasContextProperty implemented.")}setTextAlign(e){console.log("initCanvasContextProperty implemented.")}setTextBaseline(e){console.log("initCanvasContextProperty implemented.")}drawImage(e,t,n,o,i,r,s,a,l){console.log("initCanvasContextProperty implemented.")}setGlobalAlpha(e){console.log("initCanvasContextProperty implemented.")}strokeText(e,t,n,o){console.log("initCanvasContextProperty implemented.")}setTransform(e,t,n,o,i,r){console.log("initCanvasContextProperty implemented.")}draw(e=!1,t){var n=[...this.actions];this.actions=[],this.path=[],function(e,t,n,o,i){Uy.invokeViewMethod(`canvas.${e}`,{type:n,data:o},t,e=>{i&&i(e)})}(this.id,this.pageId,"actionsChanged",{actions:n,reserve:e},t)}createLinearGradient(e,t,n,o){return new df("linear",[e,t,n,o])}createCircularGradient(e,t,n){return new df("radial",[e,t,n])}createPattern(e,t){if(void 0===t)console.error("Failed to execute 'createPattern' on 'CanvasContext': 2 arguments required, but only 1 present.");else{if(!(["repeat","repeat-x","repeat-y","no-repeat"].indexOf(t)<0))return new ff(e,t);console.error("Failed to execute 'createPattern' on 'CanvasContext': The provided type ('"+t+"') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.")}}measureText(e,t){let n=0;return n=function(e,t){const n=document.createElement("canvas").getContext("2d");return n.font=t,n.measureText(e).width||0}(e,this.state.font),new pf(n)}save(){this.actions.push({method:"save",data:[]}),this.drawingState.push(this.state)}restore(){this.actions.push({method:"restore",data:[]}),this.state=this.drawingState.pop()||{lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}beginPath(){this.path=[],this.subpath=[],this.path.push({method:"beginPath",data:[]})}moveTo(e,t){this.path.push({method:"moveTo",data:[e,t]}),this.subpath=[[e,t]]}lineTo(e,t){0===this.path.length&&0===this.subpath.length?this.path.push({method:"moveTo",data:[e,t]}):this.path.push({method:"lineTo",data:[e,t]}),this.subpath.push([e,t])}quadraticCurveTo(e,t,n,o){this.path.push({method:"quadraticCurveTo",data:[e,t,n,o]}),this.subpath.push([n,o])}bezierCurveTo(e,t,n,o,i,r){this.path.push({method:"bezierCurveTo",data:[e,t,n,o,i,r]}),this.subpath.push([i,r])}arc(e,t,n,o,i,r=!1){this.path.push({method:"arc",data:[e,t,n,o,i,r]}),this.subpath.push([e,t])}rect(e,t,n,o){this.path.push({method:"rect",data:[e,t,n,o]}),this.subpath=[[e,t]]}arcTo(e,t,n,o,i){this.path.push({method:"arcTo",data:[e,t,n,o,i]}),this.subpath.push([n,o])}clip(){this.actions.push({method:"clip",data:[...this.path]})}closePath(){this.path.push({method:"closePath",data:[]}),this.subpath.length&&(this.subpath=[this.subpath.shift()])}clearActions(){this.actions=[],this.path=[],this.subpath=[]}getActions(){var e=[...this.actions];return this.clearActions(),e}set lineDashOffset(e){this.actions.push({method:"setLineDashOffset",data:[e]})}set globalCompositeOperation(e){this.actions.push({method:"setGlobalCompositeOperation",data:[e]})}set shadowBlur(e){this.actions.push({method:"setShadowBlur",data:[e]})}set shadowColor(e){this.actions.push({method:"setShadowColor",data:[e]})}set shadowOffsetX(e){this.actions.push({method:"setShadowOffsetX",data:[e]})}set shadowOffsetY(e){this.actions.push({method:"setShadowOffsetY",data:[e]})}set font(e){var t=this;this.state.font=e;var n=e.match(/^(([\w\-]+\s)*)(\d+\.?\d*r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/);if(n){var o=n[1].trim().split(/\s/),i=parseFloat(n[3]),r=n[7],s=[];o.forEach(function(e,n){["italic","oblique","normal"].indexOf(e)>-1?(s.push({method:"setFontStyle",data:[e]}),t.state.fontStyle=e):["bold","normal","lighter","bolder"].indexOf(e)>-1||/^\d+$/.test(e)?(s.push({method:"setFontWeight",data:[e]}),t.state.fontWeight=e):0===n?(s.push({method:"setFontStyle",data:["normal"]}),t.state.fontStyle="normal"):1===n&&a()}),1===o.length&&a(),o=s.map(function(e){return e.data[0]}).join(" "),this.state.fontSize=i,this.state.fontFamily=r,this.actions.push({method:"setFont",data:[`${o} ${i}px ${r}`]})}else console.warn("Failed to set 'font' on 'CanvasContext': invalid format.");function a(){s.push({method:"setFontWeight",data:["normal"]}),t.state.fontWeight="normal"}}get font(){return this.state.font}set fillStyle(e){this.setFillStyle(e)}set strokeStyle(e){this.setStrokeStyle(e)}set globalAlpha(e){e=Math.floor(255*parseFloat(e)),this.actions.push({method:"setGlobalAlpha",data:[e]})}set textAlign(e){this.actions.push({method:"setTextAlign",data:[e]})}set lineCap(e){this.actions.push({method:"setLineCap",data:[e]})}set lineJoin(e){this.actions.push({method:"setLineJoin",data:[e]})}set lineWidth(e){this.actions.push({method:"setLineWidth",data:[e]})}set miterLimit(e){this.actions.push({method:"setMiterLimit",data:[e]})}set textBaseline(e){this.actions.push({method:"setTextBaseline",data:[e]})}}const gf=Ie(()=>{[...sf,...af].forEach(function(e){hf.prototype[e]=function(e){switch(e){case"fill":case"stroke":return function(){this.actions.push({method:e+"Path",data:[...this.path]})};case"fillRect":return function(e,t,n,o){this.actions.push({method:"fillPath",data:[{method:"rect",data:[e,t,n,o]}]})};case"strokeRect":return function(e,t,n,o){this.actions.push({method:"strokePath",data:[{method:"rect",data:[e,t,n,o]}]})};case"fillText":case"strokeText":return function(t,n,o,i){var r=[t.toString(),n,o];"number"==typeof i&&r.push(i),this.actions.push({method:e,data:r})};case"drawImage":return function(t,n,o,i,r,s,a,l,c){var u;function d(e){return"number"==typeof e}void 0===c&&(s=n,a=o,l=i,c=r,n=void 0,o=void 0,i=void 0,r=void 0),u=d(n)&&d(o)&&d(i)&&d(r)?[t,s,a,l,c,n,o,i,r]:d(l)&&d(c)?[t,s,a,l,c]:[t,s,a],this.actions.push({method:e,data:u})};default:return function(...t){this.actions.push({method:e,data:t})}}}(e)}),lf.forEach(function(e){hf.prototype[e]=function(e){switch(e){case"setFillStyle":case"setStrokeStyle":return function(t){"object"!=typeof t?this.actions.push({method:e,data:["normal",uf(t)]}):this.actions.push({method:e,data:[t.type,t.data,t.colorStop]})};case"setGlobalAlpha":return function(t){t=Math.floor(255*parseFloat(t)),this.actions.push({method:e,data:[t]})};case"setShadow":return function(t,n,o,i){i=uf(i),this.actions.push({method:e,data:[t,n,o,i]}),this.state.shadowBlur=o,this.state.shadowColor=i,this.state.shadowOffsetX=t,this.state.shadowOffsetY=n};case"setLineDash":return function(t,n){t=t||[0,0],n=n||0,this.actions.push({method:e,data:[t,n]}),this.state.lineDash=t};case"setFontSize":return function(t){this.state.font=this.state.font.replace(/\d+\.?\d*px/,t+"px"),this.state.fontSize=t,this.actions.push({method:e,data:[t]})};default:return function(...t){this.actions.push({method:e,data:t})}}}(e)})}),mf=Ud(0,(e,t)=>{if(gf(),t)return new hf(e,su(t));const n=su(uu());if(n)return new hf(e,n);Uy.emit(ae,"createCanvasContext:fail")});let vf=0,yf={};const bf={canvas:hf,map:class{constructor(e,t){this.id=e,this.pageId=t}getCenterLocation(e){rf(this.id,this.pageId,"getCenterLocation",e)}moveToLocation(e){rf(this.id,this.pageId,"moveToLocation",e)}getScale(e){rf(this.id,this.pageId,"getScale",e)}getRegion(e){rf(this.id,this.pageId,"getRegion",e)}includePoints(e){rf(this.id,this.pageId,"includePoints",e)}translateMarker(e){rf(this.id,this.pageId,"translateMarker",e)}$getAppMap(){}addCustomLayer(e){rf(this.id,this.pageId,"addCustomLayer",e)}removeCustomLayer(e){rf(this.id,this.pageId,"removeCustomLayer",e)}addGroundOverlay(e){rf(this.id,this.pageId,"addGroundOverlay",e)}removeGroundOverlay(e){rf(this.id,this.pageId,"removeGroundOverlay",e)}updateGroundOverlay(e){rf(this.id,this.pageId,"updateGroundOverlay",e)}initMarkerCluster(e){rf(this.id,this.pageId,"initMarkerCluster",e)}addMarkers(e){rf(this.id,this.pageId,"addMarkers",e)}removeMarkers(e){rf(this.id,this.pageId,"removeMarkers",e)}moveAlong(e){rf(this.id,this.pageId,"moveAlong",e)}setLocMarkerIcon(e){rf(this.id,this.pageId,"setLocMarkerIcon",e)}openMapApp(e){rf(this.id,this.pageId,"openMapApp",e)}on(e,t){rf(this.id,this.pageId,"on",{name:e,callback:t})}},video:class{constructor(e,t){this.id=e,this.pageId=t}play(){rh(this.id,this.pageId,"play")}pause(){rh(this.id,this.pageId,"pause")}stop(){rh(this.id,this.pageId,"stop")}seek(e){rh(this.id,this.pageId,"seek",{position:e})}sendDanmu(e){rh(this.id,this.pageId,"sendDanmu",e)}playbackRate(e){~of.indexOf(e)||(e=1),rh(this.id,this.pageId,"playbackRate",{rate:e})}requestFullScreen(e={}){rh(this.id,this.pageId,"requestFullScreen",e)}exitFullScreen(){rh(this.id,this.pageId,"exitFullScreen")}showStatusBar(){rh(this.id,this.pageId,"showStatusBar")}hideStatusBar(){rh(this.id,this.pageId,"hideStatusBar")}},editor:class{constructor(e,t){this.id=e,this.pageId=t}format(e,t){this._exec("format",{name:e,value:t})}insertDivider(){this._exec("insertDivider")}insertImage(e){this._exec("insertImage",e)}insertText(e){this._exec("insertText",e)}setContents(e){this._exec("setContents",e)}getContents(e){this._exec("getContents",e)}clear(e){this._exec("clear",e)}removeFormat(e){this._exec("removeFormat",e)}undo(e){this._exec("undo",e)}redo(e){this._exec("redo",e)}blur(e){this._exec("blur",e)}getSelectionText(e){this._exec("getSelectionText",e)}scrollIntoView(e){this._exec("scrollIntoView",e)}_exec(e,t){!function(e,t,n,o){const i={options:o},r=o&&("success"in o||"fail"in o||"complete"in o);if(r){const e=String(vf++);i.callbackId=e,yf[e]=o}Uy.invokeViewMethod(`editor.${e}`,{type:n,data:i},t,({callbackId:e,data:t})=>{r&&(De(yf[e],t),delete yf[e])})}(this.id,this.pageId,e,t)}}};function _f(e){if(e&&e.contextInfo){const{id:t,type:n,page:o}=e.contextInfo,i=bf[n];e.context=new i(t,o),delete e.contextInfo}}class wf{constructor(e,t,n,o){this._selectorQuery=e,this._component=t,this._selector=n,this._single=o}boundingClientRect(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,rect:!0,size:!0},e),this._selectorQuery}fields(e,t){return this._selectorQuery._push(this._selector,this._component,this._single,e,t),this._selectorQuery}scrollOffset(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,scrollOffset:!0},e),this._selectorQuery}context(e){return this._selectorQuery._push(this._selector,this._component,this._single,{context:!0},e),this._selectorQuery}node(e){return this._selectorQuery._push(this._selector,this._component,this._single,{node:!0},e),this._selectorQuery}}class xf{constructor(e){this._component=void 0,this._page=e,this._queue=[],this._queueCb=[]}exec(e){return function(e,t,n){const o=[];t.forEach(({component:t,selector:n,single:i,fields:r})=>{null===t?o.push(function(e){const t={};e.id&&(t.id="");e.dataset&&(t.dataset={});e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0);e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight);if(e.scrollOffset){const e=document.documentElement,n=document.body;t.scrollLeft=e.scrollLeft||n.scrollLeft||0,t.scrollTop=e.scrollTop||n.scrollTop||0,t.scrollHeight=e.scrollHeight||n.scrollHeight||0,t.scrollWidth=e.scrollWidth||n.scrollWidth||0}return t}(r)):o.push(function(e,t,n,o,i){const r=function(e,t){if(!e)return t.$el;return e.$el}(t,e),s=r.parentElement;if(!s)return o?null:[];const{nodeType:a}=r,l=3===a||8===a;if(o){const e=l?s.querySelector(n):ah(r,n)?r:r.querySelector(n);return e?sh(e,i):null}{let e=[];const t=(l?s:r).querySelectorAll(n);return t&&t.length&&[].forEach.call(t,t=>{e.push(sh(t,i))}),!l&&ah(r,n)&&e.unshift(sh(r,i)),e}}(e,t,n,i,r))}),n(o)}(this._page,this._queue,t=>{const n=this._queueCb;t.forEach((e,t)=>{p(e)?e.forEach(_f):_f(e);const o=n[t];m(o)&&o.call(this,e)}),m(e)&&e.call(this,t)}),this._nodesRef}in(e){return this._component=Be(e),this}select(e){return this._nodesRef=new wf(this,this._component,e,!0)}selectAll(e){return this._nodesRef=new wf(this,this._component,e,!1)}selectViewport(){return this._nodesRef=new wf(this,null,"",!0)}_push(e,t,n,o,i){this._queue.push({component:t,selector:e,single:n,fields:o}),this._queueCb.push(i)}}const Cf=Ud(0,e=>((e=Be(e))&&!su(e)&&(e=null),new xf(e||uu()))),Sf=Ud(0,()=>{const e=fm();return e&&e.$vm?e.$vm.$locale:ic().getLocale()}),kf={[ue]:[],[ce]:[],[ae]:[],[ie]:[],[re]:[]};const Tf={formatArgs:{showToast:!0},beforeInvoke(){fc()},beforeSuccess(e,t){if(!t.showToast)return;const{t:n}=ic(),o=n("uni.setClipboardData.success");o&&ay({title:o,icon:"success",mask:!1})}},Af="onCompass",Ef=["wgs84","gcj02"],Mf={formatArgs:{type(e,t){e=(e||"").toLowerCase(),-1===Ef.indexOf(e)?t.type=Ef[0]:t.type=e},altitude(e,t){t.altitude=e||!1}}},Pf=(e,t)=>{if(void 0===t)return`${e} should not be empty.`;if("number"!=typeof t){let e=typeof t;return e=e[0].toUpperCase()+e.substring(1),`Expected Number, got ${e} with value ${JSON.stringify(t)}.`}},Lf={formatArgs:{latitude(e,t){const n=Pf("latitude",e);if(n)return n;t.latitude=e},longitude(e,t){const n=Pf("longitude",e);if(n)return n;t.longitude=e},scale(e,t){e=Math.floor(e),t.scale=e>=5&&e<=18?e:18}}},Of={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=9)},sizeType(e,t){t.sizeType=hd(e,ud)},sourceType(e,t){t.sourceType=hd(e,dd)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}},$f="json",If=["text","arraybuffer"],Df=encodeURIComponent;const Rf={formatArgs:{method(e,t){t.method=pd((e||"").toUpperCase(),fd)},data(e,t){t.data=e||""},url(e,t){t.method===fd[0]&&C(t.data)&&Object.keys(t.data).length&&(t.url=function(e,t){let n=e.split("#");const o=n[1]||"";n=n[0].split("?");let i=n[1]||"";e=n[0];const r=i.split("&").filter(e=>e),s={};r.forEach(e=>{const t=e.split("=");s[t[0]]=t[1]});for(const a in t)if(f(t,a)){let e=t[a];null==e?e="":C(e)&&(e=JSON.stringify(e)),s[Df(a)]=Df(e)}return i=Object.keys(s).map(e=>`${e}=${s[e]}`).join("&"),e+(i?"?"+i:"")+(o?"#"+o:"")}(e,t.data))},header(e,t){const n=t.header=e||{};t.method!==fd[0]&&(Object.keys(n).find(e=>"content-type"===e.toLowerCase())||(n["Content-Type"]="application/json"))},dataType(e,t){t.dataType=(e||$f).toLowerCase()},responseType(e,t){t.responseType=(e||"").toLowerCase(),-1===If.indexOf(t.responseType)&&(t.responseType="text")}}},zf={formatArgs:{filePath(e,t){e&&(t.filePath=Xp(e))},header(e,t){t.header=e||{}},formData(e,t){t.formData=e||{}}}};const Bf={url:{type:String,required:!0}},Nf="navigateTo",qf="redirectTo",jf="switchTab",Ff="preloadPage",Vf=(Xf(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"]),Xf(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"]),Kf(Nf)),Wf=Kf(qf),Hf=Kf(jf),Uf={formatArgs:{delta(e,t){e=parseInt(e+"")||1,t.delta=Math.min(Pp().length-1,e)}}};function Xf(e){return{animationType:{type:String,validator(t){if(t&&-1===e.indexOf(t))return"`"+t+"` is not supported for `animationType` (supported values are: `"+e.join("`|`")+"`)"}},animationDuration:{type:Number}}}let Yf;function Gf(){Yf=""}function Kf(e){return{formatArgs:{url:Jf(e)},beforeAll:Gf}}function Jf(e){return function(t,n){if(!t)return'Missing required args: "url"';const o=(t=function(e){if(0===e.indexOf("/")||0===e.indexOf("uni:"))return e;let t="";const n=Pp();return n.length&&(t=Zc(n[n.length-1]).route),bu(t,e)}(t)).split("?")[0],i=_u(o,!0);if(!i)return"page `"+t+"` is not found";if(e===Nf||e===qf){if(i.meta.isTabBar)return`can not ${e} a tabbar page`}else if(e===jf&&!i.meta.isTabBar)return"can not switch to no-tabBar page";if(e!==jf&&e!==Ff||!i.meta.isTabBar||"appLaunch"===n.openType||(t=o),i.meta.isEntry&&(t=t.replace(i.alias,"/")),n.url=function(e){if(!v(e))return e;const t=e.indexOf("?");if(-1===t)return e;const n=e.slice(t+1).trim().replace(/^(\?|#|&)/,"");if(!n)return e;e=e.slice(0,t);const o=[];return n.split("&").forEach(e=>{const t=e.replace(/\+/g," ").split("="),n=t.shift(),i=t.length>0?t.join("="):"";o.push(n+"="+encodeURIComponent(i))}),o.length?e+"?"+o.join("&"):e}(t),"unPreloadPage"!==e)if(e!==Ff){if(Yf===t&&"appLaunch"!==n.openType)return`${Yf} locked`;__uniConfig.ready&&(Yf=t)}else if(i.meta.isTabBar){const e=Pp(),t=i.path.slice(1);if(e.find(e=>e.route===t))return"tabBar page `"+t+"` already exists"}}}const Qf={formatArgs:{itemColor:"#000"}},Zf={formatArgs:{title:"",mask:!1}},ep={beforeInvoke(){uc()},formatArgs:{title:"",content:"",placeholderText:"",showCancel:!0,editable:!1,cancelText(e,t){if(!f(t,"cancelText")){const{t:e}=ic();t.cancelText=e("uni.showModal.cancel")}},cancelColor:"#000",confirmText(e,t){if(!f(t,"confirmText")){const{t:e}=ic();t.confirmText=e("uni.showModal.confirm")}},confirmColor:"#007aff"}},tp=["success","loading","none","error"],np={formatArgs:{title:"",icon(e,t){t.icon=pd(e,tp)},image(e,t){t.image=e?Xp(e):""},duration:1500,mask:!1}},op="stopPullDownRefresh";function ip(){const e=uu();if(!e)return;const t=Mp(),n=t.keys();for(const o of n){const e=t.get(o);e.$.__isTabBar?e.$.__isActive=!1:Op(o)}e.$.__isTabBar&&(e.$.__isVisible=!1,hu(e,re))}function rp(e,t){return e===t.fullPath||"/"===e&&t.meta.isEntry}function sp(e){const t=Mp().values();for(const n of t){const t=Cp(n);if(rp(e,t))return n.$.__isActive=!0,t.id}}const ap=Xd(jf,({url:e,tabBarText:t,isAutomatedTesting:n},{resolve:o,reject:i})=>{if(Sp.handledBeforeEntryPageRoutes)return ip(),up({type:jf,url:e,tabBarText:t,isAutomatedTesting:n},sp(e)).then(o).catch(i);Tp.push({args:{type:jf,url:e,tabBarText:t,isAutomatedTesting:n},resolve:o,reject:i})},0,Hf);function lp(){const e=au();if(!e)return;const t=Cp(e);Op(Rp(t.path,t.id))}const cp=Xd(qf,({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(Sp.handledBeforeEntryPageRoutes)return lp(),up({type:qf,url:e,isAutomatedTesting:t}).then(n).catch(o);Ap.push({args:{type:qf,url:e,isAutomatedTesting:t},resolve:n,reject:o})},0,Wf);function up({type:e,url:t,tabBarText:n,events:o,isAutomatedTesting:i},r){const s=fm().$router,{path:a,query:l}=function(e){const[t,n]=e.split("?",2);return{path:t,query:Qe(n||"")}}(t);return new Promise((t,c)=>{const u=function(e,t){return{__id__:t||++$p,__type__:e}}(e,r);s["navigateTo"===e?"push":"replace"]({path:a,query:l,state:u,force:!0}).then(r=>{if(nl(r))return c(r.message);if("switchTab"===e&&(s.currentRoute.value.meta.tabBarText=n),"navigateTo"===e){const e=s.currentRoute.value.meta;return e.eventChannel?o&&(Object.keys(o).forEach(t=>{e.eventChannel._addListener(t,"on",o[t])}),e.eventChannel._clearCache()):e.eventChannel=new et(u.__id__,o),t(i?{__id__:u.__id__}:{eventChannel:e.eventChannel})}return i?t({__id__:u.__id__}):t()})})}function dp(){if(Sp.handledBeforeEntryPageRoutes)return;Sp.handledBeforeEntryPageRoutes=!0;const e=[...kp];kp.length=0,e.forEach(({args:e,resolve:t,reject:n})=>up(e).then(t).catch(n));const t=[...Tp];Tp.length=0,t.forEach(({args:e,resolve:t,reject:n})=>(ip(),up(e,sp(e.url)).then(t).catch(n)));const n=[...Ap];Ap.length=0,n.forEach(({args:e,resolve:t,reject:n})=>(lp(),up(e).then(t).catch(n)));const o=[...Ep];Ep.length=0,o.forEach(({args:e,resolve:t,reject:n})=>(function(){const e=Mp().keys();for(const t of e)Op(t)}(),up(e).then(t).catch(n)))}let fp;function pp(){var e;return fp||(fp=__uniConfig.tabBar&&bn((e=__uniConfig.tabBar,Zl()&&e.list&&e.list.forEach(e=>{oc(e,["text"])}),e))),fp}function hp(e){const t=window.CSS&&window.CSS.supports;return t&&(t(e)||t.apply(window.CSS,e.split(":")))}const gp=hp("top:env(a)"),mp=hp("top:constant(a)"),vp=hp("backdrop-filter:blur(10px)"),yp=(()=>gp?"env":mp?"constant":"")();function bp(e){let t=0;if(e.isTabBar){const e=pp();e.shown&&(t=parseInt(e.height))}var n;Gc({"--window-top":(n=0,yp?`calc(${n}px + ${yp}(safe-area-inset-top))`:`${n}px`),"--window-bottom":_p(t)})}function _p(e){return yp?`calc(${e}px + ${yp}(safe-area-inset-bottom))`:`${e}px`}const wp="$$",xp=new Map;function Cp(e){return e.$page}const Sp={handledBeforeEntryPageRoutes:!1},kp=[],Tp=[],Ap=[],Ep=[];function Mp(){return xp}function Pp(){return Lp()}function Lp(){const e=[],t=xp.values();for(const n of t)n.$.__isTabBar?n.$.__isActive&&e.push(n):e.push(n);return e}function Op(e,t=!0){const n=xp.get(e);n.$.__isUnload=!0,hu(n,fe),xp.delete(e),t&&function(e){const t=zp.get(e);t&&(zp.delete(e),Bp.pruneCacheEntry(t))}(e)}let $p=cd();function Ip(e){const t=sd();let n=e.fullPath;return e.meta.isEntry&&-1===n.indexOf(e.meta.route)&&(n="/"+e.meta.route+n.replace("/","")),function(e,t,n,o,i,r){const{id:s,route:a}=o,l=ct(o.navigationBar,__uniConfig.themeConfig,r).titleColor;return{id:s,path:$e(a),route:a,fullPath:t,options:n,meta:o,openType:e,eventChannel:i,statusBarStyle:"#ffffff"===l?"light":"dark"}}("navigateTo",n,{},t)}function Dp(e){const t=Ip(e.$route);!function(e,t){e.route=t.route,e.$vm=e,e.$page=t,e.$mpType="page",e.$fontFamilySet=new Set,t.meta.isTabBar&&(e.$.__isTabBar=!0,e.$.__isActive=!0)}(e,t),xp.set(Rp(t.path,t.id),e),1===xp.size&&setTimeout(()=>{dp()},0)}function Rp(e,t){return e+wp+t}const zp=new Map,Bp={get:e=>zp.get(e),set(e,t){!function(e){const t=parseInt(e.split(wp)[1]);if(!t)return;Bp.forEach((e,n)=>{const o=parseInt(n.split(wp)[1]);if(o&&o>t){if(function(e){return"tabBar"===e.props.type}(e))return;Bp.delete(n),Bp.pruneCacheEntry(e),to(()=>{xp.forEach((e,t)=>{e.$.isUnmounted&&xp.delete(t)})})}})}(e),zp.set(e,t)},delete(e){zp.get(e)&&zp.delete(e)},forEach(e){zp.forEach(e)}};function Np(e,t){!function(e){const t=jp(e),{body:n}=document;Fp&&n.removeAttribute(Fp),t&&n.setAttribute(t,""),Fp=t}(e),bp(t),function(e){{const t="nvue-dir-"+__uniConfig.nvue["flex-direction"];e.isNVue?(document.body.setAttribute("nvue",""),document.body.setAttribute(t,"")):(document.body.removeAttribute("nvue"),document.body.removeAttribute(t))}}(t),Hp(e,t)}function qp(e){const t=jp(e);t&&function(e){const t=document.querySelector("uni-page-body");t&&t.setAttribute(e,"")}(t)}function jp(e){return e.type.__scopeId}let Fp;const Vp=!!(()=>{let e=!1;try{const t={};Object.defineProperty(t,"passive",{get(){e=!0}}),window.addEventListener("test-passive",()=>{},t)}catch(t){}return e})()&&{passive:!1};let Wp;function Hp(e,t){if(document.removeEventListener("touchmove",gu),Wp&&document.removeEventListener("scroll",Wp),t.disableScroll)return document.addEventListener("touchmove",gu,Vp);const{onPageScroll:n,onReachBottom:o}=e,i="transparent"===t.navigationBar.type;if(!(null==n?void 0:n.length)&&!(null==o?void 0:o.length)&&!i)return;const r={},s=Cp(e.proxy).id;(n||i)&&(r.onPageScroll=function(e,t,n){return o=>{t&&Hy.publishHandler(ve,{scrollTop:o},e),n&&Hy.emit(e+"."+ve,{scrollTop:o})}}(s,n,i)),(null==o?void 0:o.length)&&(r.onReachBottomDistance=t.onReachBottomDistance||50,r.onReachBottom=()=>Hy.publishHandler(be,{},s)),Wp=yu(r),requestAnimationFrame(()=>document.addEventListener("scroll",Wp))}function Up(e){const{base:t}=__uniConfig.router;return 0===$e(e).indexOf(t)?$e(e):t+e}function Xp(e){const{base:t,assets:n}=__uniConfig.router;if("./"===t&&(0!==e.indexOf("./")||!e.includes("/static/")&&0!==e.indexOf("./"+(n||"assets")+"/")||(e=e.slice(1))),0===e.indexOf("/")){if(0!==e.indexOf("//"))return Up(e.slice(1));e="https:"+e}if(ne.test(e)||oe.test(e)||0===e.indexOf("blob:"))return e;const o=Lp();return o.length?Up(bu(Cp(o[o.length-1]).route,e).slice(1)):e}const Yp=navigator.userAgent,Gp=/android/i.test(Yp),Kp=/iphone|ipad|ipod/i.test(Yp),Jp=Yp.match(/Windows NT ([\d|\d.\d]*)/i),Qp=/Macintosh|Mac/i.test(Yp),Zp=/Linux|X11/i.test(Yp),eh=Qp&&navigator.maxTouchPoints>0;function th(){return/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation}function nh(e){return e&&90===Math.abs(window.orientation)}function oh(e,t){return e?Math[t?"max":"min"](screen.width,screen.height):screen.width}function ih(e){return Math.min(window.innerWidth,document.documentElement.clientWidth,e)||e}function rh(e,t,n,o){Uy.invokeViewMethod("video."+e,{videoId:e,type:n,data:o},t)}function sh(e,t){const n={},{top:o,topWindowHeight:i}=Xc();if(t.node){const t=e.tagName.split("-")[1]||e.tagName;t&&(n.node=e.querySelector(t))}if(t.id&&(n.id=e.id),t.dataset&&(n.dataset=He(e)),t.rect||t.size){const r=e.getBoundingClientRect();t.rect&&(n.left=r.left,n.right=r.right,n.top=r.top-o-i,n.bottom=r.bottom-o-i),t.size&&(n.width=r.width,n.height=r.height)}if(p(t.properties)&&t.properties.forEach(e=>{e=e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}),t.scrollOffset)if("UNI-SCROLL-VIEW"===e.tagName){const t=e.children[0].children[0];n.scrollLeft=t.scrollLeft,n.scrollTop=t.scrollTop,n.scrollHeight=t.scrollHeight,n.scrollWidth=t.scrollWidth}else n.scrollLeft=0,n.scrollTop=0,n.scrollHeight=0,n.scrollWidth=0;if(p(t.computedStyle)){const o=getComputedStyle(e);t.computedStyle.forEach(e=>{n[e]=o[e]})}return t.context&&(n.contextInfo=function(e){return e.__uniContextInfo}(e)),n}function ah(e,t){return(e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(e){const t=this.parentElement.querySelectorAll(e);let n=t.length;for(;--n>=0&&t.item(n)!==this;);return n>-1}).call(e,t)}const lh={};function ch(e,t){const n=lh[e];return n?Promise.resolve(n):/^data:[a-z-]+\/[a-z-]+;base64,/.test(e)?Promise.resolve(function(e){const t=e.split(","),n=t[0].match(/:(.*?);/),o=n?n[1]:"",i=atob(t[1]);let r=i.length;const s=new Uint8Array(r);for(;r--;)s[r]=i.charCodeAt(r);return uh(s,o)}(e)):new Promise((t,n)=>{const o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType="blob",o.onload=function(){t(this.response)},o.onerror=n,o.send()})}function uh(e,t){let n;if(e instanceof File)n=e;else{t=t||e.type||"";const i=`${Date.now()}${function(e){const t=e.split("/")[1];return t?`.${t}`:""}(t)}`;try{n=new File([e],i,{type:t})}catch(o){n=e=e instanceof Blob?e:new Blob([e],{type:t}),n.name=n.name||i}}return n}function dh(e){for(const n in lh)if(f(lh,n)){if(lh[n]===e)return n}var t=(window.URL||window.webkitURL).createObjectURL(e);return lh[t]=e,t}const fh=Vu(),ph=Vu();const hh=Xu({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,{emit:t}){const n=Dn(null),o=function(e){return()=>{const{firstElementChild:t,lastElementChild:n}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5}}(n),i=function(e,t,n){const o=bn({width:-1,height:-1});return Oo(()=>c({},o),e=>t("resize",e)),()=>{const t=e.value;t&&(o.width=t.offsetWidth,o.height=t.offsetHeight,n())}}(n,t,o);return function(e,t,n,o){ri(o),mi(()=>{t.initial&&to(n);const i=e.value;i.offsetParent!==i.parentElement&&(i.parentElement.style.position="relative"),"AnimationEvent"in window||o()})}(n,e,i,o),()=>Ir("uni-resize-sensor",{ref:n,onAnimationstartOnce:i},[Ir("div",{onScroll:i},[Ir("div",null,null)],40,["onScroll"]),Ir("div",{onScroll:i},[Ir("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});const gh=function(){if(navigator.userAgent.includes("jsdom"))return 1;const e=document.createElement("canvas");e.height=e.width=0;const t=e.getContext("2d"),n=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/n}();function mh(e,t=!0){const n=t?gh:1;e.width=e.offsetWidth*n,e.height=e.offsetHeight*n,e.getContext("2d").__hidpi__=t}let vh=!1;function yh(){if(vh)return;vh=!0;const e={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",transform:[4,5],setTransform:[4,5]},t=CanvasRenderingContext2D.prototype;t.drawImageByCanvas=function(e){return function(t,n,o,i,r,s,a,l,c,u){if(!this.__hidpi__)return e.apply(this,arguments);n*=gh,o*=gh,i*=gh,r*=gh,s*=gh,a*=gh,l=u?l*gh:l,c=u?c*gh:c,e.call(this,t,n,o,i,r,s,a,l,c)}}(t.drawImage),1!==gh&&(!function(e,t){for(const n in e)f(e,n)&&t(e[n],n)}(e,function(e,n){t[n]=function(t){return function(){if(!this.__hidpi__)return t.apply(this,arguments);let n=Array.prototype.slice.call(arguments);if("all"===e)n=n.map(function(e){return e*gh});else if(Array.isArray(e))for(let t=0;tyh());function _h(e){return e?Xp(e):e}function wh(e){return(e=e.slice(0))[3]=e[3]/255,"rgba("+e.join(",")+")"}function xh(e,t){Array.from(t).forEach(t=>{t.x=t.clientX-e.left,t.y=t.clientY-e.top})}let Ch;function Sh(e=0,t=0){return Ch||(Ch=document.createElement("canvas")),Ch.width=e,Ch.height=t,Ch}const kh=Xu({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:{canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1},hidpi:{type:Boolean,default:!0}},computed:{id(){return this.canvasId}},setup(e,{emit:t,slots:n}){bh();const o=Dn(null),i=Dn(null),r=Dn(null),s=Dn(!1),a=function(e){return(t,n)=>{e(t,Au(n))}}(t),{$attrs:l,$excludeAttrs:u,$listeners:d}=fg({excludeListeners:!0}),{_listeners:p}=function(e,t,n){const o=os(()=>{let o=["onTouchstart","onTouchmove","onTouchend"],i=t.value,r=c({},(()=>{let e={};for(const t in i)if(f(i,t)){const n=i[t];e[t]=n}return e})());return o.forEach(t=>{let o=[];r[t]&&o.push(Gu(e=>{const o=e.currentTarget.getBoundingClientRect();xh(o,e.touches),xh(o,e.changedTouches),n(t.replace("on","").toLocaleLowerCase(),e)})),e.disableScroll&&"onTouchmove"===t&&o.push(Vc),r[t]=o}),r});return{_listeners:o}}(e,d,a),{_handleSubscribe:h,_resize:g}=function(e,t,n){let o=[],i={};const r=os(()=>e.hidpi?gh:1);function s(n){let o=t.value;if(!n||o.width!==Math.floor(n.width*r.value)||o.height!==Math.floor(n.height*r.value))if(o.width>0&&o.height>0){let t=o.getContext("2d"),n=t.getImageData(0,0,o.width,o.height);mh(o,e.hidpi),t.putImageData(n,0,0)}else mh(o,e.hidpi)}function a({actions:e,reserve:r},s){if(!e)return;if(n.value)return void o.push([e,r]);let a=t.value,c=a.getContext("2d");r||(c.fillStyle="#000000",c.strokeStyle="#000000",c.shadowColor="#000000",c.shadowBlur=0,c.shadowOffsetX=0,c.shadowOffsetY=0,c.setTransform(1,0,0,1,0,0),c.clearRect(0,0,a.width,a.height)),l(e);for(let t=0;t{e.src=t}).catch(()=>{e.src=o})}"drawImage"===t?(o=n[0],o=_h(o),n[0]=o):"setFillStyle"===t&&"pattern"===n[0]&&(o=n[1],o=_h(o),n[1]=o),o&&!i[o]&&r()})}function u(e,t,r,s){let l=i[e];return l.ready?(s(l),!0):(o.unshift([t,!0]),n.value=!0,l.onload=function(){l.ready=!0,s(l),n.value=!1;let e=o.slice(0);o=[];for(let t=e.shift();t;)a({actions:t[0],reserve:t[1]},r),t=e.shift()},!1)}function d({x:e=0,y:n=0,width:o,height:i,destWidth:s,destHeight:a,hidpi:l=!0,dataType:c,quality:u=1,type:d="png"},f){const p=t.value;let h;const g=p.offsetWidth-e;o=o?Math.min(o,g):g;const m=p.offsetHeight-n;i=i?Math.min(i,m):m,l?(s=o,a=i):s||a?s?a||(a=Math.round(i/o*s)):(a||(a=Math.round(i*r.value)),s=Math.round(o/i*a)):(s=Math.round(o*r.value),a=Math.round(i*r.value));const v=Sh(s,a),y=v.getContext("2d");let b;"jpeg"!==d&&"jpg"!==d||(d="jpeg",y.fillStyle="#fff",y.fillRect(0,0,s,a)),y.__hidpi__=!0,y.drawImageByCanvas(p,e,n,o,i,0,0,s,a,!1);try{let e;if("base64"===c)h=v.toDataURL(`image/${d}`,u);else{const e=y.getImageData(0,0,s,a);h=Array.prototype.slice.call(e.data)}b={data:h,compressed:e,width:s,height:a}}catch(_){b={errMsg:`canvasGetImageData:fail ${_}`}}if(v.height=v.width=0,y.__hidpi__=!1,!f)return b;f(b)}function f({data:e,x:n,y:o,width:i,height:r,compressed:s},a){try{0,r||(r=Math.round(e.length/4/i));const s=Sh(i,r);s.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(e),i,r),0,0),t.value.getContext("2d").drawImage(s,n,o,i,r),s.height=s.width=0}catch(l){return void a({errMsg:"canvasPutImageData:fail"})}a({errMsg:"canvasPutImageData:ok"})}function p({x:e=0,y:t=0,width:n,height:o,destWidth:i,destHeight:r,fileType:s,quality:a,dirname:l},c){const u=d({x:e,y:t,width:n,height:o,destWidth:i,destHeight:r,hidpi:!1,dataType:"base64",type:s,quality:a});var f;u.errMsg?c({errMsg:u.errMsg.replace("canvasPutImageData","toTempFilePath")}):(f=u.data,((e,t)=>{let n="toTempFilePath:"+(e?"fail":"ok");e&&(n+=` ${e.message}`),c({errMsg:n,tempFilePath:t})})(null,f))}const h={actionsChanged:a,getImageData:d,putImageData:f,toTempFilePath:p};function g(e,t,n){let o=h[e];0!==e.indexOf("_")&&m(o)&&o(t,n)}return c(h,{_resize:s,_handleSubscribe:g})}(e,i,s);return Vg(h,Hg(e.canvasId),!0),mi(()=>{g()}),()=>{const{canvasId:t,disableScroll:s}=e;return Ir("uni-canvas",jr({ref:o,"canvas-id":t,"disable-scroll":s},l.value,u.value,p.value),[Ir("canvas",{ref:i,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),Ir("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[n.default&&n.default()]),Ir(hh,{ref:r,onResize:g},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});function Th(){}const Ah={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}};function Eh(e,t,n){function o(e){const t=os(()=>0===String(navigator.vendor).indexOf("Apple"));e.addEventListener("focus",()=>{clearTimeout(void 0),document.addEventListener("click",Th,!1)});e.addEventListener("blur",()=>{t.value&&e.blur(),document.removeEventListener("click",Th,!1),t.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)})}Oo(()=>t.value,e=>e&&o(e))}var Mh=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,Ph=/^<\/([-A-Za-z0-9_]+)[^>]*>/,Lh=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,Oh=Bh("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),$h=Bh("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),Ih=Bh("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),Dh=Bh("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),Rh=Bh("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),zh=Bh("script,style");function Bh(e){for(var t={},n=e.split(","),o=0;oe/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},jh={aspectFit:["center center","contain"],aspectFill:["center center","cover"],widthFix:[,"100% 100%"],heightFix:[,"100% 100%"],top:["center top"],bottom:["center bottom"],center:["center center"],left:["left center"],right:["right center"],"top left":["left top"],"top right":["right top"],"bottom left":["left bottom"],"bottom right":["right bottom"]},Fh=Xu({name:"Image",props:Nh,setup(e,{emit:t}){const n=Dn(null),o=function(e,t){const n=Dn(""),o=os(()=>{let e="auto",o="";const i=jh[t.mode];return i?(i[0]&&(o=i[0]),i[1]&&(e=i[1])):(o="0% 0%",e="100% 100%"),`background-image:${n.value?'url("'+n.value+'")':"none"};background-position:${o};background-size:${e};`}),i=bn({rootEl:e,src:os(()=>t.src?Xp(t.src):""),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:o,imgSrc:n});return mi(()=>{const t=e.value;i.origWidth=t.clientWidth||0,i.origHeight=t.clientHeight||0}),i}(n,e),i=Ku(n,t),{fixSize:r}=function(e,t,n){const o=()=>{const{mode:o}=t,i=qh[o];if(!i)return;const{origWidth:r,origHeight:s}=n,a=r&&s?r/s:0;if(!a)return;const l=e.value,c=l[i[0]];c&&(l.style[i[1]]=function(e){Vh&&e>10&&(e=2*Math.round(e/2));return e}(i[2](c,a))+"px")},i=()=>{const{style:t}=e.value,{origStyle:{width:o,height:i}}=n;t.width=o,t.height=i};return Oo(()=>t.mode,(e,t)=>{qh[t]&&i(),qh[e]&&o()}),{fixSize:o,resetSize:i}}(n,e,o);return function(e,t,n,o,i){let r,s;const a=(t=0,n=0,o="")=>{e.origWidth=t,e.origHeight=n,e.imgSrc=o},l=l=>{if(!l)return c(),void a();r=r||new Image,r.onload=e=>{const{width:u,height:d}=r;a(u,d,l),to(()=>{o()}),r.draggable=t.draggable,s&&s.remove(),s=r,n.value.appendChild(r),c(),i("load",e,{width:u,height:d})},r.onerror=t=>{a(),c(),i("error",t,{errMsg:`GET ${e.src} 404 (Not Found)`})},r.src=l},c=()=>{r&&(r.onload=null,r.onerror=null,r=null)};Oo(()=>e.src,e=>l(e)),Oo(()=>e.imgSrc,e=>{!e&&s&&(s.remove(),s=null)}),mi(()=>l(e.src)),bi(()=>c())}(o,e,n,r,i),()=>Ir("uni-image",{ref:n},[Ir("div",{style:o.modeStyle},null,4),qh[e.mode]?Ir(hh,{onResize:r},null,8,["onResize"]):Ir("span",null,null)],512)}});const Vh="Google Inc."===navigator.vendor;const Wh=Xe(!0),Hh=[];let Uh=0,Xh=!1;const Yh=e=>Hh.forEach(t=>t.userAction=e);function Gh(e={userAction:!1}){if(!Xh){["touchstart","touchmove","touchend","mousedown","mouseup"].forEach(e=>{document.addEventListener(e,function(){!Uh&&Yh(!0),Uh++,setTimeout(()=>{! --Uh&&Yh(!1)},0)},Wh)}),Xh=!0}Hh.push(e)}function Kh(){const e=bn({userAction:!1});return mi(()=>{Gh(e)}),bi(()=>{!function(e){const t=Hh.indexOf(e);t>=0&&Hh.splice(t,1)}(e)}),{state:e}}function Jh(e,t){const n=document.activeElement;if(!n)return t({});const o={};["input","textarea"].includes(n.tagName.toLowerCase())&&(o.start=n.selectionStart,o.end=n.selectionEnd),t(o)}function Qh(e,t,n){"number"===t&&isNaN(Number(e))&&(e="");return null==e?"":String(e)}const Zh=["none","text","decimal","numeric","tel","search","email","url"],eg=c({},{name:{type:String,default:""},modelValue:{type:[String,Number]},value:{type:[String,Number]},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},confirmHold:{type:Boolean,default:!1},ignoreCompositionEvent:{type:Boolean,default:!0},step:{type:String,default:"0.000000000000000001"},inputmode:{type:String,default:void 0,validator:e=>!!~Zh.indexOf(e)},cursorColor:{type:String,default:""}},Ah),tg=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend","keyboardheightchange"];function ng(e,t,n,o){let i=null;i=Ze(n=>{t.value=Qh(n,e.type)},100,{setTimeout:setTimeout,clearTimeout:clearTimeout}),Oo(()=>e.modelValue,i),Oo(()=>e.value,i);const r=function(e,t){let n,o,i=0;const r=function(...r){const s=Date.now();clearTimeout(n),o=()=>{o=null,i=s,e.apply(this,r)},s-i{i.cancel(),n("update:modelValue",t.value),n("update:value",t.value),o("input",e,t)},100);return gi(()=>{i.cancel(),r.cancel()}),{trigger:o,triggerInput:(e,t,n)=>{i.cancel(),r(e,t),n&&r.flush()}}}function og(e,t){Kh();const n=os(()=>e.autoFocus||e.focus);function o(){if(!n.value)return;const e=t.value;e?e.focus():setTimeout(o,100)}Oo(()=>e.focus,e=>{e?o():function(){const e=t.value;e&&e.blur()}()}),mi(()=>{n.value&&to(o)})}function ig(e,t,n,o){_c(cu(),"getSelectedTextRange",Jh);const{fieldRef:i,state:r,trigger:s}=function(e,t,n){const o=Dn(null),i=Ku(t,n),r=os(()=>{const t=Number(e.selectionStart);return isNaN(t)?-1:t}),s=os(()=>{const t=Number(e.selectionEnd);return isNaN(t)?-1:t}),a=os(()=>{const t=Number(e.cursor);return isNaN(t)?-1:t}),l=os(()=>{var t=Number(e.maxlength);return isNaN(t)?140:t});let c="";c=Qh(e.modelValue,e.type)||Qh(e.value,e.type);const u=bn({value:c,valueOrigin:c,maxlength:l,focus:e.focus,composing:!1,selectionStart:r,selectionEnd:s,cursor:a});return Oo(()=>u.focus,e=>n("update:focus",e)),Oo(()=>u.maxlength,e=>u.value=u.value.slice(0,e),{immediate:!1}),{fieldRef:o,state:u,trigger:i}}(e,t,n),{triggerInput:a}=ng(e,r,n,s);og(e,i),Eh(0,i);const{state:l}=function(){const e=bn({attrs:{}});return mi(()=>{let t=Ur();for(;t;){const n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&"page"===t.proxy.$mpType?null:t.parent}}),{state:e}}();!function(e,t){const n=Ki(ed,!1);if(!n)return;const o=Ur(),i={submit(){const n=o.proxy;return[n[e],v(t)?n[t]:t.value]},reset(){v(t)?o.proxy[t]="":t.value=""}};n.addField(i),bi(()=>{n.removeField(i)})}("name",r),function(e,t,n,o,i,r){function s(){const n=e.value;n&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&"number"!==n.type&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd)}function a(){const n=e.value;n&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&"number"!==n.type&&(n.selectionEnd=n.selectionStart=t.cursor)}function l(e){return"number"===e.type?null:e.selectionEnd}Oo([()=>t.selectionStart,()=>t.selectionEnd],s),Oo(()=>t.cursor,a),Oo(()=>e.value,function(){const c=e.value;if(!c)return;const u=function(e,o){e.stopPropagation(),m(r)&&!1===r(e,t)||(t.value=c.value,t.composing&&n.ignoreCompositionEvent||i(e,{value:c.value,cursor:l(c)},o))};function d(e){n.ignoreCompositionEvent||o(e.type,e,{value:e.data})}c.addEventListener("change",e=>e.stopPropagation()),c.addEventListener("focus",function(e){t.focus=!0,o("focus",e,{value:t.value}),s(),a()}),c.addEventListener("blur",function(e){t.composing&&(t.composing=!1,u(e,!0)),t.focus=!1,o("blur",e,{value:t.value,cursor:l(e.target)})}),c.addEventListener("input",u),c.addEventListener("compositionstart",e=>{e.stopPropagation(),t.composing=!0,d(e)}),c.addEventListener("compositionend",e=>{e.stopPropagation(),t.composing&&(t.composing=!1,u(e)),d(e)}),c.addEventListener("compositionupdate",d)})}(i,r,e,s,a,o);return{fieldRef:i,state:r,scopedAttrsState:l,fixDisabledColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image"),trigger:s}}const rg=c({},eg,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),sg=Ie(()=>{{const e=navigator.userAgent;let t="";const n=e.match(/OS\s([\w_]+)\slike/);if(n)t=n[1].replace(/_/g,".");else if(/Macintosh|Mac/i.test(e)&&navigator.maxTouchPoints>0){const n=e.match(/Version\/(\S*)\b/);n&&(t=n[1])}return!!t&&parseInt(t)>=16&&parseFloat(t)<17.2}});function ag(e,t,n,o,i){if(t.value)if("."===e.data){if("."===t.value.slice(-1))return n.value=o.value=t.value=t.value.slice(0,-1),!1;if(t.value&&!t.value.includes("."))return t.value+=".",i&&(i.fn=()=>{n.value=o.value=t.value=t.value.slice(0,-1),o.removeEventListener("blur",i.fn)},o.addEventListener("blur",i.fn)),!1}else if("deleteContentBackward"===e.inputType&&sg()&&"."===t.value.slice(-2,-1))return t.value=n.value=o.value=t.value.slice(0,-2),!0}function lg(e){return"insertFromPaste"===e.inputType}const cg=Xu({name:"Input",props:rg,emits:["confirm",...tg],setup(e,{emit:t,expose:n}){const o=["text","number","idcard","digit","password","tel"],i=["off","one-time-code"],r=os(()=>{let t="";switch(e.type){case"text":t="text","search"===e.confirmType&&(t="search");break;case"idcard":t="text";break;case"digit":t="number";break;default:t=o.includes(e.type)?e.type:"text"}return e.password?"password":t}),s=os(()=>{const t=i.indexOf(e.textContentType),n=i.indexOf(P(e.textContentType));return i[-1!==t?t:-1!==n?n:0]}),a=os(()=>{if(e.inputmode)return e.inputmode});let l=function(e,t){if("number"===t.value){const t=void 0===e.modelValue?e.value:e.modelValue,n=Dn(null!=t?t.toLocaleString():"");return Oo(()=>e.modelValue,e=>{n.value=null!=e?e.toLocaleString():""}),Oo(()=>e.value,e=>{n.value=null!=e?e.toLocaleString():""}),n}return Dn("")}(e,r),c={fn:null};const u=Dn(null),{fieldRef:d,state:f,scopedAttrsState:p,fixDisabledColor:h,trigger:g}=ig(e,u,t,(e,t)=>{const n=e.target;if("number"===r.value){if(c.fn&&(n.removeEventListener("blur",c.fn),c.fn=null),n.validity&&!n.validity.valid){if((!l.value||!n.value)&&"-"===e.data||"-"===l.value[0]&&"deleteContentBackward"===e.inputType)return l.value="-",t.value="",c.fn=()=>{l.value=n.value=""},n.addEventListener("blur",c.fn),!1;const o=ag(e,l,t,n,c);return"boolean"==typeof o?o:(l.value=t.value=n.value="-"===l.value?"":l.value,!1)}{const o=ag(e,l,t,n,c);if("boolean"==typeof o)return o;l.value=n.value}if(t.maxlength>0&&n.value.length>t.maxlength&&!lg(e))return n.value=l.value=t.value,!1}});Oo(()=>f.value,t=>{"number"!==e.type||"-"===l.value&&""===t||(l.value=t.toString())}),Oo(()=>e.maxlength,e=>{e=parseInt(e,10);const t=f.value.slice(0,e);t!==f.value&&(f.value=t)});const m=["number","digit"],v=os(()=>m.includes(e.type)?e.step:"");function y(t){if("Enter"!==t.key)return;const n=t.target;t.stopPropagation(),g("confirm",t,{value:n.value}),!e.confirmHold&&n.blur()}return n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),f.value=e.value}}),()=>{let t=e.disabled&&h?Ir("input",{key:"disabled-input",ref:d,value:f.value,tabindex:"-1",readonly:!!e.disabled,type:r.value,maxlength:f.maxlength,step:v.value,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},onFocus:e=>e.target.blur()},null,44,["value","readonly","type","maxlength","step","onFocus"]):Ir("input",{key:"input",ref:d,value:f.value,onInput:e=>{const t=e.target.value.toString();"number"===r.value&&f.maxlength>0&&t.length>f.maxlength?lg(e)&&(f.value=t.slice(0,f.maxlength)):f.value=t},disabled:!!e.disabled,type:r.value,maxlength:f.maxlength,step:v.value,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":void 0,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},autocomplete:s.value,onKeyup:y,inputmode:a.value},null,44,["value","onInput","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup","inputmode"]);return Ir("uni-input",{ref:u},[Ir("div",{class:"uni-input-wrapper"},[zo(Ir("div",jr(p.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Ts,!(f.value.length||"-"===l.value||l.value.includes("."))]]),"search"===e.confirmType?Ir("form",{action:"",onSubmit:e=>e.preventDefault(),class:"uni-input-form"},[t],40,["onSubmit"]):t])],512)}}});const ug=["class","style"],dg=/^on[A-Z]+/,fg=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n=[]}=e,o=Ur(),i=Rn({}),r=Rn({}),s=Rn({}),a=n.concat(ug);return o.attrs=bn(o.attrs),Po(()=>{const e=(n=o.attrs,Object.keys(n).map(e=>[e,n[e]])).reduce((e,[n,o])=>(a.includes(n)?e.exclude[n]=o:dg.test(n)?(t||(e.attrs[n]=o),e.listeners[n]=o):e.attrs[n]=o,e),{exclude:{},attrs:{},listeners:{}});var n;i.value=e.attrs,r.value=e.listeners,s.value=e.exclude}),{$attrs:i,$listeners:r,$excludeAttrs:s}};function pg(e){const t=[];return p(e)&&e.forEach(e=>{Er(e)?e.type===mr?t.push(...pg(e.children)):t.push(e):p(e)&&t.push(...pg(e))}),t}const hg=function(e,t,n,o){e.addEventListener(t,e=>{m(n)&&!1===n(e)&&((void 0===e.cancelable||e.cancelable)&&e.preventDefault(),e.stopPropagation())},{passive:!1})};let gg,mg;function vg(e,t,n){bi(()=>{document.removeEventListener("mousemove",gg),document.removeEventListener("mouseup",mg)});let o=0,i=0,r=0,s=0;const a=function(e,n,a,l){if(!1===t({cancelable:e.cancelable,target:e.target,currentTarget:e.currentTarget,preventDefault:e.preventDefault.bind(e),stopPropagation:e.stopPropagation.bind(e),touches:e.touches,changedTouches:e.changedTouches,detail:{state:n,x:a,y:l,dx:a-o,dy:l-i,ddx:a-r,ddy:l-s,timeStamp:e.timeStamp}}))return!1};let l,c,u=null;hg(e,"touchstart",function(e){if(l=!0,1===e.touches.length&&!u)return u=e,o=r=e.touches[0].pageX,i=s=e.touches[0].pageY,a(e,"start",o,i)}),hg(e,"mousedown",function(e){if(c=!0,!l&&!u)return u=e,o=r=e.pageX,i=s=e.pageY,a(e,"start",o,i)}),hg(e,"touchmove",function(e){if(1===e.touches.length&&u){const t=a(e,"move",e.touches[0].pageX,e.touches[0].pageY);return r=e.touches[0].pageX,s=e.touches[0].pageY,t}});const d=gg=function(e){if(!l&&c&&u){const t=a(e,"move",e.pageX,e.pageY);return r=e.pageX,s=e.pageY,t}};document.addEventListener("mousemove",d),hg(e,"touchend",function(e){if(0===e.touches.length&&u)return l=!1,u=null,a(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)});const f=mg=function(e){if(c=!1,!l&&u)return u=null,a(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",f),hg(e,"touchcancel",function(e){if(u){l=!1;const t=u;return u=null,a(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}})}class yg{constructor(e){this._drag=e,this._dragLog=Math.log(e),this._x=0,this._v=0,this._startTime=0}set(e,t){this._x=e,this._v=t,this._startTime=(new Date).getTime()}setVelocityByEnd(e){this._v=(e-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)}x(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);const t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._x+this._v*t/this._dragLog-this._v/this._dragLog}dx(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);const t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._v*t}done(){return Math.abs(this.dx())<3}reconfigure(e){const t=this.x(),n=this.dx();this._drag=e,this._dragLog=Math.log(e),this.set(t,n)}configuration(){const e=this;return[{label:"Friction",read:function(){return e._drag},write:function(t){e.reconfigure(t)},min:.001,max:.1,step:.001}]}}function bg(e,t,n){return e>t-n&&e0){const i=(-n-Math.sqrt(r))/(2*o),s=(-n+Math.sqrt(r))/(2*o),a=(t-i*e)/(s-i),l=e-a;return{x:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,i*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*t+a*n},dx:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,i*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*i*t+a*s*n}}}const s=Math.sqrt(4*o*i-n*n)/(2*o),a=-n/2*o,l=e,c=(t-a*e)/s;return{x:function(e){return Math.pow(Math.E,a*e)*(l*Math.cos(s*e)+c*Math.sin(s*e))},dx:function(e){const t=Math.pow(Math.E,a*e),n=Math.cos(s*e),o=Math.sin(s*e);return t*(c*s*n-l*s*o)+a*t*(c*o+l*n)}}}x(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0}dx(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0}setEnd(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!_g(t,.4)){t=t||0;let o=this._endPosition;this._solution&&(_g(t,.4)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),_g(t,.4)&&(t=0),_g(o,.4)&&(o=0),o+=this._endPosition),this._solution&&_g(o-e,.4)&&_g(t,.4)||(this._endPosition=e,this._solution=this._solve(o-this._endPosition,t),this._startTime=n)}}snap(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}}done(e){return e||(e=(new Date).getTime()),bg(this.x(),this._endPosition,.4)&&_g(this.dx(),.4)}reconfigure(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())}springConstant(){return this._k}damping(){return this._c}configuration(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]}}class xg{constructor(e,t,n){this._extent=e,this._friction=t||new yg(.01),this._spring=n||new wg(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}snap(e,t){this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(t)}set(e,t){this._friction.set(e,t),e>0&&t>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(0)):e<-this._extent&&t<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=(new Date).getTime()}x(e){if(!this._startTime)return 0;if(e||(e=((new Date).getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;let t=this._friction.x(e),n=this.dx(e);return(t>0&&n>=0||t<-this._extent&&n<=0)&&(this._springing=!0,this._spring.setEnd(0,n),t<-this._extent?this._springOffset=-this._extent:this._springOffset=0,t=this._spring.x()+this._springOffset),t}dx(e){let t;return t=this._lastTime===e?this._lastDx:this._springing?this._spring.dx(e):this._friction.dx(e),this._lastTime=e,this._lastDx=t,t}done(){return this._springing?this._spring.done():this._friction.done()}setVelocityByEnd(e){this._friction.setVelocityByEnd(e)}configuration(){const e=this._friction.configuration();return e.push.apply(e,this._spring.configuration()),e}}class Cg{constructor(e,t){t=t||{},this._element=e,this._options=t,this._enableSnap=t.enableSnap||!1,this._itemSize=t.itemSize||0,this._enableX=t.enableX||!1,this._enableY=t.enableY||!1,this._shouldDispatchScrollEvent=!!t.onScroll,this._enableX?(this._extent=(t.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=t.scrollWidth):(this._extent=(t.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=t.scrollHeight),this._position=0,this._scroll=new xg(this._extent,t.friction,t.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}onTouchStart(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()}onTouchMove(e,t){let n=this._startPosition;this._enableX?n+=e:this._enableY&&(n+=t),n>0?n*=.5:n<-this._extent&&(n=.5*(n+this._extent)-this._extent),this._position=n,this.updatePosition(),this.dispatchScroll()}onTouchEnd(e,t,n){if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(t)this._itemSize/2?e-(this._itemSize-Math.abs(t)):e-t,o<=0&&o>=-this._extent&&this._scroll.setVelocityByEnd(o)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=function(e,t,n){const o={id:0,cancelled:!1};return function e(t,n,o,i){if(!t||!t.cancelled){o(n);const r=n.done();r||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,i))),r&&i&&i(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}(this._scroll,()=>{const e=Date.now(),t=(e-this._scroll._startTime)/1e3,n=this._scroll.x(t);this._position=n,this.updatePosition();const o=this._scroll.dx(t);this._shouldDispatchScrollEvent&&e-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/o),this._lastTime=e)},()=>{this._enableSnap&&(o<=0&&o>=-this._extent&&(this._position=o,this.updatePosition()),m(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._shouldDispatchScrollEvent&&this.dispatchScroll(),this._scrolling=!1})}onTransitionEnd(){this._element.style.webkitTransition="",this._element.style.transition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()}snap(){const e=this._itemSize,t=this._position%e,n=Math.abs(t)>this._itemSize/2?this._position-(e-Math.abs(t)):this._position-t;this._position!==n&&(this._snapping=!0,this.scrollTo(-n),m(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))}scrollTo(e,t){this._animation&&(this._animation.cancel(),this._scrolling=!1),"number"==typeof e&&(this._position=-e),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0);const n="transform "+(t||.2)+"s ease-out";this._element.style.webkitTransition="-webkit-"+n,this._element.style.transition=n,this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd)}dispatchScroll(){if(m(this._options.onScroll)&&Math.round(Number(this._lastPos))!==Math.round(this._position)){this._lastPos=this._position;const e={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(e)}}update(e,t,n){let o=0;const i=this._position;this._enableX?(o=this._element.childNodes.length?(t||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=t):(o=this._element.childNodes.length?(t||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=t),"number"==typeof e&&(this._position=-e),this._position<-o?this._position=-o:this._position>0&&(this._position=0),this._itemSize=n||this._itemSize,this.updatePosition(),i!==this._position&&(this.dispatchScroll(),m(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=o,this._scroll._extent=o}updatePosition(){let e="";this._enableX?e="translateX("+this._position+"px) translateZ(0)":this._enableY&&(e="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=e,this._element.style.transform=e}isScrolling(){return this._scrolling||this._snapping}}const Sg={a:"",abbr:"",address:"",article:"",aside:"",b:"",bdi:"",bdo:["dir"],big:"",blockquote:"",br:"",caption:"",center:"",cite:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",font:"",footer:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",header:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",mark:"",nav:"",ol:["start","type"],p:"",pre:"",q:"",rt:"",ruby:"",s:"",section:"",small:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","height","rowspan","width"],tfoot:"",th:["colspan","height","rowspan","width"],thead:"",tr:["colspan","height","rowspan","width"],tt:"",u:"",ul:""},kg={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'",ldquo:"“",rdquo:"”",yen:"¥",radic:"√",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",hellip:"…"};const Tg=(e,t,n)=>!n||p(n)&&!n.length?[]:n.map(n=>{var o;if(C(n)){if(!f(n,"type")||"node"===n.type){let i={[e]:""};const r=null==(o=n.name)?void 0:o.toLowerCase();if(!f(Sg,r))return;return function(e,t){if(C(t))for(const n in t)if(f(t,n)){const o=t[n];"img"===e&&"src"===n&&(t[n]=Xp(o))}}(r,n.attrs),i=c(i,function(e,t){if(["a","img"].includes(e.name)&&t)return{onClickCapture:n=>{t(n,{node:e}),n.stopPropagation(),n.preventDefault(),n.returnValue=!1}}}(n,t),n.attrs),is(n.name,i,Tg(e,t,n.children))}return"text"===n.type&&v(n.text)&&""!==n.text?Rr((n.text||"").replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,function(e,t){return f(kg,t)&&kg[t]?kg[t]:/^#[0-9]{1,4}$/.test(t)?String.fromCharCode(t.slice(1)):/^#x[0-9a-f]{1,4}$/i.test(t)?String.fromCharCode(0+t.slice(1)):e})):void 0}});function Ag(e){e=function(e){return e.replace(/<\?xml.*\?>\n/,"").replace(/\n/,"").replace(/\n/,"")}(e);const t=[],n={children:[]};return function(e,t){var n,o,i,r=[],s=e;for(r.last=function(){return this[this.length-1]};e;){if(o=!0,r.last()&&zh[r.last()])e=e.replace(new RegExp("([\\s\\S]*?)]*>"),function(e,n){return n=n.replace(/|/g,"$1$2"),t.chars&&t.chars(n),""}),c("",r.last());else if(0==e.indexOf("\x3c!--")?(n=e.indexOf("--\x3e"))>=0&&(t.comment&&t.comment(e.substring(4,n)),e=e.substring(n+3),o=!1):0==e.indexOf("=0&&r[o]!=n;o--);else var o=0;if(o>=0){for(var i=r.length-1;i>=o;i--)t.end&&t.end(r[i]);r.length=o}}c()}(e,{start:function(e,o,i){const r={name:e};if(0!==o.length&&(r.attrs=function(e){return e.reduce(function(e,t){let n=t.value;const o=t.name;return n.match(/ /)&&-1===["style","src"].indexOf(o)&&(n=n.split(" ")),e[o]?Array.isArray(e[o])?e[o].push(n):e[o]=[e[o],n]:e[o]=n,e},{})}(o)),i){const e=t[0]||n;e.children||(e.children=[]),e.children.push(r)}else t.unshift(r)},end:function(e){const o=t.shift();if(o.name!==e&&console.error("invalid state: mismatch end tag"),0===t.length)n.children.push(o);else{const e=t[0];e.children||(e.children=[]),e.children.push(o)}},chars:function(e){const o={type:"text",text:e};if(0===t.length)n.children.push(o);else{const e=t[0];e.children||(e.children=[]),e.children.push(o)}},comment:function(e){const n={node:"comment",text:e},o=t[0];o&&(o.children||(o.children=[]),o.children.push(n))}}),n.children}const Eg=Xu({name:"RichText",compatConfig:{MODE:3},props:{nodes:{type:[Array,String],default:function(){return[]}}},emits:["itemclick"],setup(e,{emit:t}){const n=Ur(),o=n&&n.vnode.scopeId||"",i=Dn(null),r=Dn([]),s=Ku(i,t);function a(e,t={}){s("itemclick",e,t)}return Oo(()=>e.nodes,function(){let t=e.nodes;v(t)&&(t=Ag(e.nodes)),r.value=Tg(o,a,t)},{immediate:!0,deep:!0}),()=>is("uni-rich-text",{ref:i},is("div",{},r.value))}}),Mg=Xu({name:"Refresher",props:{refreshState:{type:String,default:""},refresherHeight:{type:Number,default:0},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"},refresherBackground:{type:String,default:"#fff"}},setup(e,{slots:t}){const n=Dn(null),o=os(()=>{const t={backgroundColor:e.refresherBackground};switch(e.refreshState){case"pulling":t.height=e.refresherHeight+"px";break;case"refreshing":t.height=e.refresherThreshold+"px",t.transition="height 0.3s";break;case"":case"refresherabort":case"restore":t.height="0px",t.transition="height 0.3s"}return t}),i=os(()=>{const t=e.refresherHeight/e.refresherThreshold;return 360*(t>1?1:t)});return()=>{const{refreshState:r,refresherDefaultStyle:s,refresherThreshold:a}=e;return Ir("div",{ref:n,style:o.value,class:"uni-scroll-view-refresher"},["none"!==s?Ir("div",{class:"uni-scroll-view-refresh"},[Ir("div",{class:"uni-scroll-view-refresh-inner"},["pulling"==r?Ir("svg",{key:"refresh__icon",style:{transform:"rotate("+i.value+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[Ir("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null),Ir("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,"refreshing"==r?Ir("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[Ir("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,"none"===s?Ir("div",{class:"uni-scroll-view-refresher-container",style:{height:`${a}px`}},[t.default&&t.default()]):null],4)}}}),Pg=Xe(!0),Lg=Xu({name:"ScrollView",compatConfig:{MODE:3},props:{direction:{type:[String],default:"vertical"},scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},showScrollbar:{type:[Boolean,String],default:!0},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,{emit:t,slots:n,expose:o}){const i=Dn(null),r=Dn(null),s=Dn(null),a=Dn(null),l=Ku(i,t),{state:c,scrollTopNumber:u,scrollLeftNumber:d}=function(e){const t=os(()=>Number(e.scrollTop)||0),n=os(()=>Number(e.scrollLeft)||0),o=bn({lastScrollTop:t.value,lastScrollLeft:n.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshState:""});return{state:o,scrollTopNumber:t,scrollLeftNumber:n}}(e),{realScrollX:f,realScrollY:p}=function(e,t,n,o,i,r,s,a,l){let c=!1,u=0,d=!1,f=()=>{};const p=os(()=>e.scrollX),h=os(()=>e.scrollY),g=os(()=>{let t=Number(e.upperThreshold);return isNaN(t)?50:t}),m=os(()=>{let t=Number(e.lowerThreshold);return isNaN(t)?50:t});function v(e,t){const n=s.value;let o=0,i="";if(e<0?e=0:"x"===t&&e>n.scrollWidth-n.offsetWidth?e=n.scrollWidth-n.offsetWidth:"y"===t&&e>n.scrollHeight-n.offsetHeight&&(e=n.scrollHeight-n.offsetHeight),"x"===t?o=n.scrollLeft-e:"y"===t&&(o=n.scrollTop-e),0===o)return;let r=a.value;r.style.transition="transform .3s ease-out",r.style.webkitTransition="-webkit-transform .3s ease-out","x"===t?i="translateX("+o+"px) translateZ(0)":"y"===t&&(i="translateY("+o+"px) translateZ(0)"),r.removeEventListener("transitionend",f),r.removeEventListener("webkitTransitionEnd",f),f=()=>x(e,t),r.addEventListener("transitionend",f),r.addEventListener("webkitTransitionEnd",f),"x"===t?n.style.overflowX="hidden":"y"===t&&(n.style.overflowY="hidden"),r.style.transform=i,r.style.webkitTransform=i}function y(e){const n=e.target;i("scroll",e,{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollHeight:n.scrollHeight,scrollWidth:n.scrollWidth,deltaX:t.lastScrollLeft-n.scrollLeft,deltaY:t.lastScrollTop-n.scrollTop}),h.value&&(n.scrollTop<=g.value&&t.lastScrollTop-n.scrollTop>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(i("scrolltoupper",e,{direction:"top"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollTop+n.offsetHeight+m.value>=n.scrollHeight&&t.lastScrollTop-n.scrollTop<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(i("scrolltolower",e,{direction:"bottom"}),t.lastScrollToLowerTime=e.timeStamp)),p.value&&(n.scrollLeft<=g.value&&t.lastScrollLeft-n.scrollLeft>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(i("scrolltoupper",e,{direction:"left"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollLeft+n.offsetWidth+m.value>=n.scrollWidth&&t.lastScrollLeft-n.scrollLeft<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(i("scrolltolower",e,{direction:"right"}),t.lastScrollToLowerTime=e.timeStamp)),t.lastScrollTop=n.scrollTop,t.lastScrollLeft=n.scrollLeft}function b(t){h.value&&(e.scrollWithAnimation?v(t,"y"):s.value.scrollTop=t)}function _(t){p.value&&(e.scrollWithAnimation?v(t,"x"):s.value.scrollLeft=t)}function w(t){if(t){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(t))return void console.error(`id error: scroll-into-view=${t}`);let n=r.value.querySelector("#"+t);if(n){let t=s.value.getBoundingClientRect(),o=n.getBoundingClientRect();if(p.value){let n=o.left-t.left,i=s.value.scrollLeft+n;e.scrollWithAnimation?v(i,"x"):s.value.scrollLeft=i}if(h.value){let n=o.top-t.top,i=s.value.scrollTop+n;e.scrollWithAnimation?v(i,"y"):s.value.scrollTop=i}}}}function x(e,t){a.value.style.transition="",a.value.style.webkitTransition="",a.value.style.transform="",a.value.style.webkitTransform="";let n=s.value;"x"===t?(n.style.overflowX=p.value?"auto":"hidden",n.scrollLeft=e):"y"===t&&(n.style.overflowY=h.value?"auto":"hidden",n.scrollTop=e),a.value.removeEventListener("transitionend",f),a.value.removeEventListener("webkitTransitionEnd",f)}function C(n){if(e.refresherEnabled){switch(n){case"refreshing":t.refresherHeight=e.refresherThreshold,c||(c=!0,i("refresherpulling",{},{deltaY:t.refresherHeight,dy:t.refresherHeight}),i("refresherrefresh",{},{dy:k.y-S.y}),l("update:refresherTriggered",!0));break;case"restore":case"refresherabort":c=!1,t.refresherHeight=u=0,"restore"===n&&(d=!1,i("refresherrestore",{},{dy:k.y-S.y})),"refresherabort"===n&&d&&(d=!1,i("refresherabort",{},{dy:k.y-S.y}))}t.refreshState=n}}let S={x:0,y:0},k={y:e.refresherThreshold};return mi(()=>{to(()=>{b(n.value),_(o.value)}),w(e.scrollIntoView);let r=function(e){e.preventDefault(),e.stopPropagation(),y(e)},a=null,l=function(n){if(null===S)return;let o=n.touches[0].pageX,r=n.touches[0].pageY,l=s.value;if(Math.abs(o-S.x)>Math.abs(r-S.y))if(p.value){if(0===l.scrollLeft&&o>S.x)return void(a=!1);if(l.scrollWidth===l.offsetWidth+l.scrollLeft&&oS.y)a=!1,e.refresherEnabled&&!1!==n.cancelable&&n.preventDefault();else{if(l.scrollHeight===l.offsetHeight+l.scrollTop&&r0&&(d=!0,i("refresherpulling",n,{deltaY:o,dy:o})))}},f=function(e){1===e.touches.length&&(S={x:e.touches[0].pageX,y:e.touches[0].pageY})},g=function(n){k={x:n.changedTouches[0].pageX,y:n.changedTouches[0].pageY},t.refresherHeight>=e.refresherThreshold?C("refreshing"):C("refresherabort"),S={x:0,y:0},k={x:0,y:e.refresherThreshold}};s.value.addEventListener("touchstart",f,Pg),s.value.addEventListener("touchmove",l,Xe(!1)),s.value.addEventListener("scroll",r,Xe(!1)),s.value.addEventListener("touchend",g,Pg),bi(()=>{s.value.removeEventListener("touchstart",f),s.value.removeEventListener("touchmove",l),s.value.removeEventListener("scroll",r),s.value.removeEventListener("touchend",g)})}),ri(()=>{h.value&&(s.value.scrollTop=t.lastScrollTop),p.value&&(s.value.scrollLeft=t.lastScrollLeft)}),Oo(n,e=>{b(e)}),Oo(o,e=>{_(e)}),Oo(()=>e.scrollIntoView,e=>{w(e)}),Oo(()=>e.refresherTriggered,e=>{!0===e?C("refreshing"):!1===e&&C("restore")}),{realScrollX:p,realScrollY:h,_scrollTopChanged:b,_scrollLeftChanged:_}}(e,c,u,d,l,i,r,a,t),h=os(()=>{let e="";return f.value?e+="overflow-x:auto;":e+="overflow-x:hidden;",p.value?e+="overflow-y:auto;":e+="overflow-y:hidden;",e}),g=os(()=>{let t="uni-scroll-view";return!1===e.showScrollbar&&(t+=" uni-scroll-view-scrollbar-hidden"),t});return o({$getMain:()=>r.value}),()=>{const{refresherEnabled:t,refresherBackground:o,refresherDefaultStyle:l,refresherThreshold:u}=e,{refresherHeight:d,refreshState:f}=c;return Ir("uni-scroll-view",{ref:i},[Ir("div",{ref:s,class:"uni-scroll-view"},[Ir("div",{ref:r,style:h.value,class:g.value},[t?Ir(Mg,{refreshState:f,refresherHeight:d,refresherThreshold:u,refresherDefaultStyle:l,refresherBackground:o},{default:()=>["none"==l?n.refresher&&n.refresher():null]},8,["refreshState","refresherHeight","refresherThreshold","refresherDefaultStyle","refresherBackground"]):null,Ir("div",{ref:a,class:"uni-scroll-view-content"},[n.default&&n.default()],512)],6)],512)],512)}}});function Og(e,t,n,o,i,r){function s(){c&&(clearTimeout(c),c=null)}let a,l,c=null,u=!0,d=0,f=1,p=null,h=!1,g=0,m="";const v=os(()=>n.value.length>t.displayMultipleItems),y=os(()=>e.circular&&v.value);function b(i){Math.floor(2*d)===Math.floor(2*i)&&Math.ceil(2*d)===Math.ceil(2*i)||y.value&&function(o){if(!u)for(let i=n.value,r=i.length,s=o+t.displayMultipleItems,a=0;a=c.length&&(i-=c.length),i=a%1>.5||a<0?i-1:i,r("transition",{},{dx:e.vertical?0:i*l.offsetWidth,dy:e.vertical?i*l.offsetHeight:0})}function _(e){const o=n.value.length;if(!o)return-1;const i=(Math.round(e)%o+o)%o;if(y.value){if(o<=t.displayMultipleItems)return 0}else if(i>o-t.displayMultipleItems)return o-t.displayMultipleItems;return i}function w(){p=null}function x(){if(!p)return void(h=!1);const e=p,o=e.toPos,i=e.acc,s=e.endTime,c=e.source,u=s-Date.now();if(u<=0){b(o),p=null,h=!1,a=null;const e=n.value[t.current];if(e){const n=e.getItemId();r("animationfinish",{},{current:t.current,currentItemId:n,source:c})}return}b(o+i*u*u/2),l=requestAnimationFrame(x)}function C(e,o,i){w();const r=t.duration,s=n.value.length;let a=d;if(y.value)if(i<0){for(;ae;)a-=s}else if(i>0){for(;a>e;)a-=s;for(;a+se;)a-=s;a+s-ee.current,()=>e.currentItemId,()=>[...n.value]],()=>{let o=-1;if(e.currentItemId)for(let t=0,i=n.value;te.vertical,()=>y.value,()=>t.displayMultipleItems,()=>[...n.value]],function(){s(),p&&(b(p.toPos),p=null);const i=n.value;for(let t=0;t0&&f<1||(f=1)}const a=d;d=-2;const l=t.current;l>=0?(u=!1,t.userTracking?(b(a+l-g),g=l):(b(l),e.autoplay&&S())):(u=!0,b(-t.displayMultipleItems-1))}),Oo(()=>t.interval,()=>{c&&(s(),S())}),Oo(()=>t.current,(e,o)=>{!function(e,o){const i=m;m="";const s=n.value;if(!i){const t=s.length;C(e,"",y.value&&o+(t-e)%t>t/2?1:0)}const a=s[e];if(a){const e=t.currentItemId=a.getItemId();r("change",{},{current:t.current,currentItemId:e,source:i})}}(e,o),i("update:current",e)}),Oo(()=>t.currentItemId,e=>{i("update:currentItemId",e)}),Oo(()=>e.autoplay&&!t.userTracking,k),k(e.autoplay&&!t.userTracking),mi(()=>{let i=!1,r=0,a=0;function l(e){t.userTracking=!1;const n=r/Math.abs(r);let o=0;!e&&Math.abs(r)>.2&&(o=.5*n);const i=_(d+o);e?b(g):(m="touch",t.current=i,C(i,"touch",0!==o?o:0===i&&y.value&&d>=1?1:0))}vg(o.value,c=>{if(!e.disableTouch&&!u){if("start"===c.detail.state)return t.userTracking=!0,i=!1,s(),g=d,r=0,a=Date.now(),void w();if("end"===c.detail.state)return l(!1);if("cancel"===c.detail.state)return l(!0);if(t.userTracking){if(!i){i=!0;const n=Math.abs(c.detail.dx),o=Math.abs(c.detail.dy);if((n>=o&&e.vertical||n<=o&&!e.vertical)&&(t.userTracking=!1),!t.userTracking)return void(e.autoplay&&S())}return function(i){const s=a;a=Date.now();const l=n.value.length-t.displayMultipleItems;function c(e){return.5-.25/(e+.5)}function u(e,t){let n=g+e;r=.6*r+.4*t,y.value||(n<0||n>l)&&(n<0?n=-c(-n):n>l&&(n=l+c(n-l)),r=0),b(n)}const d=a-s||1,f=o.value;e.vertical?u(-i.dy/f.offsetHeight,-i.ddy/d):u(-i.dx/f.offsetWidth,-i.ddx/d)}(c.detail),!1}}})}),_i(()=>{s(),cancelAnimationFrame(l)}),{onSwiperDotClick:function(e){C(t.current=e,m="click",y.value?1:0)},circularEnabled:y,swiperEnabled:v}}const $g=Xu({name:"Swiper",props:{indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1},navigation:{type:[Boolean,String],default:!1},navigationColor:{type:String,default:"#fff"},navigationActiveColor:{type:String,default:"rgba(53, 53, 53, 0.6)"}},emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,{slots:t,emit:n}){const o=Dn(null),i=Ku(o,n),r=Dn(null),s=Dn(null),a=function(e){return bn({interval:os(()=>{const t=Number(e.interval);return isNaN(t)?5e3:t}),duration:os(()=>{const t=Number(e.duration);return isNaN(t)?500:t}),displayMultipleItems:os(()=>{const t=Math.round(e.displayMultipleItems);return isNaN(t)?1:t}),current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1})}(e),l=os(()=>{let t={};return(e.nextMargin||e.previousMargin)&&(t=e.vertical?{left:0,right:0,top:Qc(e.previousMargin,!0),bottom:Qc(e.nextMargin,!0)}:{top:0,bottom:0,left:Qc(e.previousMargin,!0),right:Qc(e.nextMargin,!0)}),t}),c=os(()=>{const t=Math.abs(100/a.displayMultipleItems)+"%";return{width:e.vertical?"100%":t,height:e.vertical?t:"100%"}});let u=[];const d=[],f=Dn([]);function p(){const e=[];for(let t=0;tn===e.rootRef.value);o&&e.push(En(o))}f.value=e}Gi("addSwiperContext",function(e){d.push(e),p()});Gi("removeSwiperContext",function(e){const t=d.indexOf(e);t>=0&&(d.splice(t,1),p())});const{onSwiperDotClick:h,circularEnabled:g,swiperEnabled:m}=Og(e,a,f,s,n,i);let v=()=>null;return v=Ig(o,e,a,h,f,g,m),()=>{const n=t.default&&t.default();return u=pg(n),Ir("uni-swiper",{ref:o},[Ir("div",{ref:r,class:"uni-swiper-wrapper"},[Ir("div",{class:"uni-swiper-slides",style:l.value},[Ir("div",{ref:s,class:"uni-swiper-slide-frame",style:c.value},[n],4)],4),e.indicatorDots&&Ir("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[f.value.map((t,n,o)=>Ir("div",{onClick:()=>h(n),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":n=a.current||n{let a=!1,l=!1,u=!1,d=Dn(!1);function f(e,n){const o=e.currentTarget;o&&(o.style.backgroundColor="over"===n?t.navigationActiveColor:"")}Po(()=>{a="auto"===t.navigation,d.value=!0!==t.navigation||a,b()}),Po(()=>{const e=i.value.length,t=!r.value;l=0===n.current&&t,u=n.current===e-1&&t||t&&n.current+n.displayMultipleItems>=e,s.value||(l=!0,u=!0,a&&(d.value=!0))});const p={onMouseover:e=>f(e,"over"),onMouseout:e=>f(e,"out")};function h(e,t,s){if(e.stopPropagation(),s)return;const a=i.value.length;let l=n.current;switch(t){case"prev":l--,l<0&&r.value&&(l=a-1);break;case"next":l++,l>=a&&r.value&&(l=0)}o(l)}const g=()=>iu(ou,t.navigationColor,26);let m;const v=n=>{clearTimeout(m);const{clientX:o,clientY:i}=n,{left:r,right:s,top:a,bottom:l,width:c,height:u}=e.value.getBoundingClientRect();let f=!1;if(f=t.vertical?!(i-a{d.value=f},300);d.value=f},y=()=>{d.value=!0};function b(){e.value&&(e.value.removeEventListener("mousemove",v),e.value.removeEventListener("mouseleave",y),a&&(e.value.addEventListener("mousemove",v),e.value.addEventListener("mouseleave",y)))}return mi(b),function(){const e={"uni-swiper-navigation-hide":d.value,"uni-swiper-navigation-vertical":t.vertical};return t.navigation?Ir(mr,null,[Ir("div",jr({class:["uni-swiper-navigation uni-swiper-navigation-prev",c({"uni-swiper-navigation-disabled":l},e)],onClick:e=>h(e,"prev",l)},p),[g()],16,["onClick"]),Ir("div",jr({class:["uni-swiper-navigation uni-swiper-navigation-next",c({"uni-swiper-navigation-disabled":u},e)],onClick:e=>h(e,"next",u)},p),[g()],16,["onClick"])]):null}},Dg=Xu({name:"SwiperItem",props:{itemId:{type:String,default:""}},setup(e,{slots:t}){const n=Dn(null),o={rootRef:n,getItemId:()=>e.itemId,getBoundingClientRect:()=>n.value.getBoundingClientRect(),updatePosition(e,t){const o=t?"0":100*e+"%",i=t?100*e+"%":"0",r=n.value,s=`translate(${o},${i}) translateZ(0)`;r&&(r.style.webkitTransform=s,r.style.transform=s)}};return mi(()=>{const e=Ki("addSwiperContext");e&&e(o)}),_i(()=>{const e=Ki("removeSwiperContext");e&&e(o)}),()=>Ir("uni-swiper-item",{ref:n,style:{position:"absolute",width:"100%",height:"100%"}},[t.default&&t.default()],512)}}),Rg={ensp:" ",emsp:" ",nbsp:" "};function zg(e,t){return function(e,{space:t,decode:n}){let o="",i=!1;for(let r of e)t&&Rg[t]&&" "===r&&(r=Rg[t]),i?(o+="n"===r?ee:"\\"===r?"\\":"\\"+r,i=!1):"\\"===r?i=!0:o+=r;return n?o.replace(/ /g,Rg.nbsp).replace(/ /g,Rg.ensp).replace(/ /g,Rg.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"):o}(e,t).split(ee)}const Bg=Xu({name:"Text",props:{selectable:{type:[Boolean,String],default:!1},space:{type:String,default:""},decode:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=Dn(null);return()=>{const o=[];return t.default&&t.default().forEach(t=>{if(8&t.shapeFlag&&t.type!==yr){const n=zg(t.children,{space:e.space,decode:e.decode}),i=n.length-1;n.forEach((e,t)=>{(0!==t||e)&&o.push(Rr(e)),t!==i&&o.push(Ir("br"))})}else o.push(t)}),Ir("uni-text",{ref:n,selectable:!!e.selectable||null},[Ir("span",null,o)],8,["selectable"])}}}),Ng=Xu({name:"View",props:c({},Ju),setup(e,{slots:t}){const n=Dn(null),{hovering:o,binding:i}=Qu(e);return()=>{const r=e.hoverClass;return r&&"none"!==r?Ir("uni-view",jr({class:o.value?r:"",ref:n},i),[Ti(t,"default")],16):Ir("uni-view",{ref:n},[Ti(t,"default")],512)}}});function qg(e,t){if(t||(t=e.id),t)return e.$options.name.toLowerCase()+"."+t}function jg(e,t,n){e&&_c(n||cu(),e,({type:e,data:n},o)=>{t(e,n,o)})}function Fg(e,t){e&&function(e,t){t=bc(e,t),delete yc[t]}(t||cu(),e)}function Vg(e,t,n,o){const i=Ur().proxy;mi(()=>{jg(t||qg(i),e,o),!n&&t||Oo(()=>i.id,(t,n)=>{jg(qg(i,t),e,o),Fg(n&&qg(i,n))})}),bi(()=>{Fg(t||qg(i),o)})}let Wg=0;function Hg(e){const t=ru(),n=Ur().proxy,o=n.$options.name.toLowerCase(),i=e||n.id||"context"+Wg++;return mi(()=>{n.$el.__uniContextInfo={id:i,type:o,page:t}}),`${o}.${i}`}function Ug(e,t,n,o){m(t)&&pi(e,t.bind(n),o)}function Xg(e,t,n){const o=e.mpType||n.$mpType;if(o&&"component"!==o&&("page"!==o||"component"!==t.renderer)&&(Object.keys(e).forEach(o=>{if(function(e,t,n=!0){return!(n&&!m(t))&&(nt.indexOf(e)>-1||0===e.indexOf("on"))}(o,e[o],!1)){const i=e[o];p(i)?i.forEach(e=>Ug(o,e,n,t)):Ug(o,i,n,t)}}),"page"===o)){t.__isVisible=!0;try{let e=t.attrs.__pageQuery;0,hu(n,de,e),t.vapor||delete t.attrs.__pageQuery;const o=n.$page;"preloadPage"!==(null==o?void 0:o.openType)&&hu(n,ie)}catch(i){console.error(i.message+ee+i.stack)}}}function Yg(e,t,n){Xg(e,t,n)}function Gg(e,t,n){return e[t]=n}function Kg(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function Jg(e){const t=e.config.errorHandler;return function(n,o,i){t&&t(n,o,i);const r=e._instance;if(!r||!r.proxy)throw n;r[ae]?hu(r.proxy,ae,n):Hn(n,0,o&&o.$.vnode,!1)}}function Qg(e,t){return e?[...new Set([].concat(e,t))]:t}function Zg(e){const t=e.config;var n;t.errorHandler=it(e,Jg),n=t.optionMergeStrategies,nt.forEach(e=>{n[e]=Qg});const o=t.globalProperties;o.$set=Gg,o.$applyOptions=Yg,o.$callMethod=Kg,function(e){ot.forEach(t=>t(e))}(e)}function em(e){const t=Rl({history:om(),strict:!!__uniConfig.router.strict,routes:__uniRoutes,scrollBehavior:nm});t.beforeEach((e,t)=>{var n;e&&t&&e.meta.isTabBar&&t.meta.isTabBar&&(n=t.meta.tabBarIndex,"undefined"!=typeof window&&(tm[n]={left:window.pageXOffset,top:window.pageYOffset}))}),e.router=t,e.use(t)}let tm=Object.create(null);const nm=(e,t,n)=>{if(n)return n;if(e&&t&&e.meta.isTabBar&&t.meta.isTabBar){const t=(o=e.meta.tabBarIndex,tm[o]);if(t)return t}return{left:0,top:0};var o};function om(){let{routerBase:e}=__uniConfig.router;"/"===e&&(e="");const t=(n=e,(n=location.host?n||location.pathname+location.search:"").includes("#")||(n+="#"),Ka(n));var n;return t.listen((e,t,n)=>{"back"===n.direction&&function(e=1){const t=Lp(),n=t.length-1,o=n-e;for(let i=n;i>o;i--){const e=Cp(t[i]);Op(Rp(e.path,e.id),!1)}}(Math.abs(n.delta))}),t}const im={install(e){Zg(e),Lu(e),Fu(e),e.config.warnHandler||(e.config.warnHandler=rm),em(e)}};function rm(e,t,n){if(t){if("PageMetaHead"===t.$.type.name)return;const e=t.$.parent;if(e&&"PageMeta"===e.type.name)return}const o=[`[Vue warn]: ${e}`];n.length&&o.push("\n",n),console.warn(...o)}const sm={class:"uni-async-loading"},am=Ir("i",{class:"uni-loading"},null,-1),lm=Yu({name:"AsyncLoading",render:()=>(xr(),Ar("div",sm,[am]))});function cm(){window.location.reload()}const um=Yu({name:"AsyncError",props:["error"],setup(){sc();const{t:e}=ic();return()=>Ir("div",{class:"uni-async-error",onClick:cm},[e("uni.async.error")],8,["onClick"])}});let dm;function fm(){return dm}function pm(e){dm=e,Object.defineProperty(dm.$.ctx,"$children",{get:()=>Lp().map(e=>e.$vm)});const t=dm.$.appContext.app;t.component(lm.name)||t.component(lm.name,lm),t.component(um.name)||t.component(um.name,um),function(e){e.$vm=e,e.$mpType="app";const t=Dn(ic().getLocale());Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}(dm),function(e,t){const n=e.$options||{};n.globalData=c(n.globalData||{},t),Object.defineProperty(e,"globalData",{get:()=>n.globalData,set(e){n.globalData=e}})}(dm),qu(),wu()}function hm(e,{clone:t,init:n,setup:o,before:i}){t&&(e=c({},e)),i&&i(e);const r=e.setup;return e.setup=(e,t)=>{const i=Ur();if(n(i.proxy),o(i),r)return r(e,t)},e}function gm(e,t){return e&&(e.__esModule||"Module"===e[Symbol.toStringTag])?hm(e.default,t):hm(e,t)}function mm(e){return gm(e,{clone:!0,init:Dp,setup(e){e.$pageInstance=e;const t=ld(),n=Ke(t.query);e.attrs.__pageQuery=n,Cp(e.proxy).options=n,e.proxy.options=n;const o=sd();var i,r;return bp(o),e.onReachBottom=bn([]),e.onPageScroll=bn([]),Oo([e.onReachBottom,e.onPageScroll],()=>{const t=au();e.proxy===t&&Hp(e,o)},{once:!0}),gi(()=>{Np(e,o)}),mi(()=>{qp(e);const{onReady:n}=e;n&&I(n),_m(t)}),ai(()=>{if(!e.__isVisible){Np(e,o),e.__isVisible=!0;const{onShow:n}=e;n&&I(n),to(()=>{_m(t)})}},"ba",i),function(e,t){ai(e,"bda",t)}(()=>{if(e.__isVisible&&!e.__isUnload){e.__isVisible=!1;{const{onHide:t}=e;t&&I(t)}}}),r=o.id,Hy.subscribe(bc(r,gc),wc),bi(()=>{!function(e){Hy.unsubscribe(bc(e,gc)),Object.keys(yc).forEach(t=>{0===t.indexOf(e+".")&&delete yc[t]})}(o.id)}),n}})}function vm(){const{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}=iv(),i=90===Math.abs(Number(window.orientation))?"landscape":"portrait";Uy.emit(ge,{deviceOrientation:i,size:{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}})}function ym(e){C(e.data)&&"WEB_INVOKE_APPSERVICE"===e.data.type&&Uy.emit("onWebInvokeAppService",e.data.data,e.data.pageId)}function bm(){const{emit:e}=Uy;"visible"===document.visibilityState?e(Pe,c({},ph)):e(Le)}function _m(e){const{tabBarText:t,tabBarIndex:n,route:o}=e.meta;t&&hu("onTabItemTap",{index:n,text:t,pagePath:o})}function wm(e){e=e>0&&e<1/0?e:0;const t=Math.floor(e/3600),n=Math.floor(e%3600/60),o=Math.floor(e%3600%60),i=(t<10?"0":"")+t;let r=(n<10?"0":"")+n+":"+((o<10?"0":"")+o);return"00"!==i&&(r=i+":"+r),r}function xm(e,t,n){const o=bn({seeking:!1,gestureType:"none",volumeOld:0,volumeNew:0,currentTimeOld:0,currentTimeNew:0,toastThin:!1}),i={x:0,y:0};let r=null;let s;return{state:o,onTouchstart:function(e){const t=e.targetTouches[0];i.x=t.pageX,i.y=t.pageY,o.gestureType="none",o.volumeOld=0},onTouchmove:function(a){function l(){a.stopPropagation(),a.preventDefault()}n.fullscreen&&l();const c=o.gestureType;if("stop"===c)return;const u=a.targetTouches[0],d=u.pageX,f=u.pageY,p=i,h=t.value;if("progress"===c?(!function(e){const n=t.value,i=n.duration;let r=e/600*i+o.currentTimeOld;r<0?r=0:r>i&&(r=i);o.currentTimeNew=r}(d-p.x),o.seeking=!0):"volume"===c&&function(e){const n=t.value,i=o.volumeOld;let r;"number"==typeof i&&(r=i-e/200,r<0?r=0:r>1&&(r=1),clearTimeout(s),s=void 0,null==s&&(s=setTimeout(()=>{o.toastThin=!1,s=void 0},1e3)),n.volume=r,o.volumeNew=r)}(f-p.y),"none"===c)if(Math.abs(d-p.x)>Math.abs(f-p.y)){if(!e.enableProgressGesture)return void(o.gestureType="stop");o.gestureType="progress",o.currentTimeOld=o.currentTimeNew=h.currentTime,n.fullscreen||l()}else{if(!e.pageGesture&&!e.vslideGesture)return void(o.gestureType="stop");"none"!==o.gestureType&&null!=r||(r=setTimeout(()=>{o.toastThin=!0},500)),o.gestureType="volume",o.volumeOld=h.volume,n.fullscreen||l()}},onTouchend:function(e){const n=t.value;"none"!==o.gestureType&&"stop"!==o.gestureType&&(e.stopPropagation(),e.preventDefault()),"progress"===o.gestureType&&o.currentTimeOld!==o.currentTimeNew&&(n.currentTime=o.currentTimeNew),o.gestureType="none"}}}const Cm={id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default:()=>[]},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},vslideGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},showPlayBtn:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0}},Sm=Xu({name:"Video",props:Cm,emits:["fullscreenchange","progress","loadedmetadata","waiting","error","play","pause","ended","timeupdate"],setup(e,{emit:t,attrs:n,slots:o}){const i=Dn(null),r=Dn(null),s=Ku(i,t),{state:a}=Kh(),{$attrs:l}=fg({excludeListeners:!0});ic(),pc();const{videoRef:c,state:u,play:d,pause:f,stop:h,seek:g,playbackRate:m,toggle:v,onDurationChange:y,onLoadedMetadata:b,onProgress:_,onWaiting:w,onVideoError:x,onPlay:C,onPause:S,onEnded:k,onTimeUpdate:T}=function(e,t,n){const o=Dn(null),i=os(()=>Xp(e.src)),r=os(()=>"true"===e.muted||!0===e.muted),s=bn({start:!1,src:i,playing:!1,currentTime:0,duration:0,progress:0,buffered:0,muted:r,pauseUpdatingCurrentTime:!1});function a(e){const t=e.target,n=t.buffered;n.length&&(s.buffered=n.end(n.length-1)/t.duration*100)}function l(){o.value.pause()}function c(e){const t=o.value;"number"!=typeof(e=Number(e))||isNaN(e)||(t.currentTime=e)}return Oo(()=>i.value,()=>{s.playing=!1,s.currentTime=0}),Oo(()=>s.buffered,e=>{n("progress",{},{buffered:e})}),Oo(()=>r.value,e=>{o.value.muted=e}),{videoRef:o,state:s,play:function(){const e=o.value;s.start=!0,e.play()},pause:l,stop:function(){c(0),l()},seek:c,playbackRate:function(e){o.value.playbackRate=e},toggle:function(){const e=o.value;s.playing?e.pause():e.play()},onDurationChange:function({target:e}){s.duration=e.duration},onLoadedMetadata:function(t){const o=Number(e.initialTime)||0,i=t.target;o>0&&(i.currentTime=o),n("loadedmetadata",t,{width:i.videoWidth,height:i.videoHeight,duration:i.duration}),a(t)},onProgress:a,onWaiting:function(e){n("waiting",e,{})},onVideoError:function(e){s.playing=!1,n("error",e,{})},onPlay:function(e){s.start=!0,s.playing=!0,n("play",e,{})},onPause:function(e){s.playing=!1,n("pause",e,{})},onEnded:function(e){s.playing=!1,n("ended",e,{})},onTimeUpdate:function(e){const t=e.target;s.pauseUpdatingCurrentTime||(s.currentTime=t.currentTime);const o=t.currentTime;n("timeupdate",e,{currentTime:o,duration:t.duration})}}}(e,0,s),{state:A,danmuRef:E,updateDanmu:M,toggleDanmu:P,sendDanmu:L}=function(e,t){const n=Dn(null),o=bn({enable:Boolean(e.enableDanmu)});let i={time:0,index:-1};const r=p(e.danmuList)?JSON.parse(JSON.stringify(e.danmuList)):[];function s(e){const t=document.createElement("p");t.className="uni-video-danmu-item",t.innerText=e.text;let o=`bottom: ${100*Math.random()}%;color: ${e.color};`;t.setAttribute("style",o),n.value.appendChild(t),setTimeout(function(){o+="left: 0;-webkit-transform: translateX(-100%);transform: translateX(-100%);",t.setAttribute("style",o),setTimeout(function(){t.remove()},4e3)},17)}return r.sort(function(e,t){return(e.time||0)-(t.time||0)}),{state:o,danmuRef:n,updateDanmu:function(e){const n=e.target.currentTime,a=i,l={time:n,index:a.index};if(n>a.time)for(let i=a.index+1;i=(e.time||0)))break;l.index=i,t.playing&&o.enable&&s(e)}else if(n-1&&n<=(r[t].time||0);t--)l.index=t-1;i=l},toggleDanmu:function(){o.enable=!o.enable},sendDanmu:function(e){r.splice(i.index+1,0,{text:String(e.text),color:e.color,time:t.currentTime||0})}}}(e,u),{state:O,onFullscreenChange:$,emitFullscreenChange:I,toggleFullscreen:D,requestFullScreen:R,exitFullScreen:z}=function(e,t,n,o,i){const r=bn({fullscreen:!1}),s=/^Apple/.test(navigator.vendor);function a(t){r.fullscreen=t,e("fullscreenchange",{},{fullScreen:t,direction:"vertical"})}function l(e){const r=i.value,l=t.value,c=n.value;let u;e?!document.fullscreenEnabled&&!document.webkitFullscreenEnabled||s&&!o.userAction?c.webkitEnterFullScreen?c.webkitEnterFullScreen():(u=!0,l.remove(),l.classList.add("uni-video-type-fullscreen"),document.body.appendChild(l)):l[document.fullscreenEnabled?"requestFullscreen":"webkitRequestFullscreen"]():document.fullscreenEnabled||document.webkitFullscreenEnabled?document.fullscreenElement?document.exitFullscreen():document.webkitFullscreenElement&&document.webkitExitFullscreen():c.webkitExitFullScreen?c.webkitExitFullScreen():(u=!0,l.remove(),l.classList.remove("uni-video-type-fullscreen"),r.appendChild(l)),u&&a(e)}function c(){l(!1)}return bi(c),{state:r,onFullscreenChange:function(e,t){t&&document.fullscreenEnabled||a(!(!document.fullscreenElement&&!document.webkitFullscreenElement))},emitFullscreenChange:a,toggleFullscreen:l,requestFullScreen:function(){l(!0)},exitFullScreen:c}}(s,r,c,a,i),{state:B,onTouchstart:N,onTouchend:q,onTouchmove:j}=xm(e,c,O),{state:F,progressRef:V,ballRef:W,clickProgress:H,toggleControls:U}=function(e,t,n,o){const i=Dn(null),r=Dn(null),s=os(()=>e.showCenterPlayBtn&&!t.start),a=Dn(!0),l=os(()=>!s.value&&e.controls&&a.value),c=bn({seeking:!1,touching:!1,controlsTouching:!1,centerPlayBtnShow:s,controlsShow:l,controlsVisible:a});let u;function d(){u=setTimeout(()=>{c.controlsVisible=!1},3e3)}function f(){u&&(clearTimeout(u),u=null)}return bi(()=>{u&&clearTimeout(u)}),Oo(()=>c.controlsShow&&t.playing&&!c.controlsTouching,e=>{e?d():f()}),mi(()=>{const e=Xe(!1);let s,a,l,u=!0;const d=r.value;function f(e){const n=e.targetTouches[0],r=n.pageX,d=n.pageY;if(u&&Math.abs(r-s)100&&(h=100),t.progress=h,null==o||o(t.duration*h/100),c.seeking=!0,e.preventDefault(),e.stopPropagation()}function p(o){c.controlsTouching=!1,c.touching&&(d.removeEventListener("touchmove",f,e),u||(o.preventDefault(),o.stopPropagation(),n(t.duration*t.progress/100)),c.touching=!1)}d.addEventListener("touchstart",n=>{c.controlsTouching=!0;const o=n.targetTouches[0];s=o.pageX,a=o.pageY,l=t.progress,u=!0,c.touching=!0,d.addEventListener("touchmove",f,e)}),d.addEventListener("touchend",p),d.addEventListener("touchcancel",p)}),{state:c,progressRef:i,ballRef:r,clickProgress:function(e){const o=i.value;let r=e.target,s=e.offsetX;for(;r&&r!==o;)s+=r.offsetLeft,r=r.parentNode;const a=o.offsetWidth;let l=0;s>=0&&s<=a&&(l=s/a,n(t.duration*l))},toggleControls:function(){c.controlsVisible=!c.controlsVisible},autoHideStart:d,autoHideEnd:f}}(e,u,g,e=>{B.currentTimeNew=e});!function(e,t,n,o,i,r,s,a){const l={play:e,stop:n,pause:t,seek:o,sendDanmu:i,playbackRate:r,requestFullScreen:s,exitFullScreen:a};Vg((e,t)=>{let n;switch(e){case"seek":n=t.position;break;case"sendDanmu":n=t;break;case"playbackRate":n=t.rate}e in l&&l[e](n)},Hg(),!0)}(d,f,h,g,L,m,R,z);const X=function(e,t,n){const o=os(()=>"progress"===t.gestureType||n.touching);return Oo(o,o=>{e.pauseUpdatingCurrentTime=o,n.controlsTouching=o,"progress"===t.gestureType&&o&&(n.controlsVisible=o)}),Oo([()=>e.currentTime,()=>{Cm.duration}],()=>{e.progress=e.currentTime/e.duration*100}),Oo(()=>t.currentTimeNew,t=>{e.currentTime=t}),o}(u,B,F);return()=>Ir("uni-video",{ref:i,id:e.id,onClick:U},[Ir("div",{ref:r,class:"uni-video-container",onTouchstart:N,onTouchend:q,onTouchmove:j,onFullscreenchange:Zs($,["stop"]),onWebkitfullscreenchange:Zs(e=>$(e,!0),["stop"])},[Ir("video",jr({ref:c,style:{"object-fit":e.objectFit},muted:!!e.muted,loop:!!e.loop,src:u.src,poster:e.poster,autoplay:!!e.autoplay},l.value,{class:"uni-video-video","webkit-playsinline":!0,playsinline:!0,onDurationchange:y,onLoadedmetadata:b,onProgress:_,onWaiting:w,onError:x,onPlay:C,onPause:S,onEnded:k,onTimeupdate:e=>{T(e),M(e)},onWebkitbeginfullscreen:()=>I(!0),onX5videoenterfullscreen:()=>I(!0),onWebkitendfullscreen:()=>I(!1),onX5videoexitfullscreen:()=>I(!1)}),null,16,["muted","loop","src","poster","autoplay","webkit-playsinline","playsinline","onDurationchange","onLoadedmetadata","onProgress","onWaiting","onError","onPlay","onPause","onEnded","onTimeupdate","onWebkitbeginfullscreen","onX5videoenterfullscreen","onWebkitendfullscreen","onX5videoexitfullscreen"]),zo(Ir("div",{class:"uni-video-bar uni-video-bar-full",onClick:Zs(()=>{},["stop"])},[Ir("div",{class:"uni-video-controls"},[zo(Ir("div",{class:{"uni-video-icon":!0,"uni-video-control-button":!0,"uni-video-control-button-play":!u.playing,"uni-video-control-button-pause":u.playing},onClick:Zs(v,["stop"])},null,10,["onClick"]),[[Ts,e.showPlayBtn]]),zo(Ir("div",{class:"uni-video-current-time"},[wm(u.currentTime)],512),[[Ts,e.showProgress]]),zo(Ir("div",{ref:V,class:"uni-video-progress-container",onClick:Zs(H,["stop"])},[Ir("div",{class:{"uni-video-progress":!0,"uni-video-progress-progressing":X.value}},[Ir("div",{style:{width:u.buffered-u.progress+"%",left:u.progress+"%"},class:"uni-video-progress-buffered"},null,4),Ir("div",{style:{width:u.progress+"%"},class:"uni-video-progress-played"},null,4),Ir("div",{ref:W,style:{left:u.progress+"%"},class:{"uni-video-ball":!0,"uni-video-ball-progressing":X.value}},[Ir("div",{class:"uni-video-inner"},null)],6)],2)],8,["onClick"]),[[Ts,e.showProgress]]),zo(Ir("div",{class:"uni-video-duration"},[wm(Number(e.duration)||u.duration)],512),[[Ts,e.showProgress]])]),zo(Ir("div",{class:{"uni-video-icon":!0,"uni-video-danmu-button":!0,"uni-video-danmu-button-active":A.enable},onClick:Zs(P,["stop"])},null,10,["onClick"]),[[Ts,e.danmuBtn]]),zo(Ir("div",{class:{"uni-video-icon":!0,"uni-video-fullscreen":!0,"uni-video-type-fullscreen":O.fullscreen},onClick:Zs(()=>D(!O.fullscreen),["stop"])},null,10,["onClick"]),[[Ts,e.showFullscreenBtn]])],8,["onClick"]),[[Ts,F.controlsShow]]),zo(Ir("div",{ref:E,style:"z-index: 0;",class:"uni-video-danmu"},null,512),[[Ts,u.start&&A.enable]]),F.centerPlayBtnShow&&Ir("div",{class:"uni-video-cover",onClick:Zs(()=>{},["stop"])},[Ir("div",{class:"uni-video-cover-play-button uni-video-icon",onClick:Zs(d,["stop"])},null,8,["onClick"])],8,["onClick"]),Ir("div",{class:"uni-video-loading"},["volume"===B.gestureType?Ir("div",{class:{"uni-video-toast-container":!0,"uni-video-toast-container-thin":B.toastThin},style:{marginTop:"5px"}},[!B.toastThin&&B.volumeNew>0&&"volume"===B.gestureType?Ir("text",{class:"uni-video-icon uni-video-toast-icon"},[""]):!B.toastThin&&Ir("text",{class:"uni-video-icon uni-video-toast-icon"},[""]),Ir("div",{class:"uni-video-toast-draw",style:{width:100*B.volumeNew+"%"}},null)],2):null]),Ir("div",{class:{"uni-video-toast":!0,"uni-video-toast-progress":X.value}},[Ir("div",{class:"uni-video-toast-title"},[Ir("span",{class:"uni-video-toast-title-current-time"},[wm(B.currentTimeNew)])," / ",Number(e.duration)||wm(u.duration)])],2),Ir("div",{class:"uni-video-slots"},[o.default&&o.default()])],40,["onTouchstart","onTouchend","onTouchmove","onFullscreenchange","onWebkitfullscreenchange"])],8,["id","onClick"])}});let km,Tm=0;function Am(e,t,n,o){var i,r=document.createElement("script"),s=t.callback||"callback",a="__uni_jsonp_callback_"+Tm++,l=t.timeout||3e4;function c(){clearTimeout(i),delete window[a],r.remove()}window[a]=e=>{m(n)&&n(e),c()},r.onerror=()=>{m(o)&&o(),c()},i=setTimeout(function(){m(o)&&o(),c()},l),r.src=e+(e.indexOf("?")>=0?"&":"?")+s+"="+a,document.body.appendChild(r)}function Em(e){function t(){const e=this.div;this.getPanes().floatPane.appendChild(e)}function n(){const e=this.div.parentNode;e&&e.removeChild(this.div)}function o(){const t=this.option;this.Text=new e.Text({text:t.content,anchor:"bottom-center",offset:new e.Pixel(0,t.offsetY-16),style:{padding:(t.padding||8)+"px","line-height":(t.fontSize||14)+"px","border-radius":(t.borderRadius||0)+"px","border-color":`${t.bgColor||"#fff"} transparent transparent`,"background-color":t.bgColor||"#fff","box-shadow":"0 2px 6px 0 rgba(114, 124, 245, .5)","text-align":"center","font-size":(t.fontSize||14)+"px",color:t.color||"#000"},position:t.position});(e.event||e.Event).addListener(this.Text,"click",()=>{this.callback()}),this.Text.setMap(t.map)}function i(){}function r(){this.Text&&this.option.map.remove(this.Text)}function s(){this.Text&&this.option.map.remove(this.Text)}class a{constructor(e={},a){this.createAMapText=o,this.removeAMapText=r,this.createBMapText=i,this.removeBMapText=s,this.onAdd=t,this.construct=t,this.onRemove=n,this.destroy=n,this.option=e||{};const l=this.visible=this.alwaysVisible="ALWAYS"===e.display;if(zm())this.callback=a,this.visible&&this.createAMapText();else if(Bm())this.visible&&this.createBMapText();else{const t=e.map;this.position=e.position,this.index=1;const n=this.div=document.createElement("div"),o=n.style;o.position="absolute",o.whiteSpace="nowrap",o.transform="translateX(-50%) translateY(-100%)",o.zIndex="1",o.boxShadow=e.boxShadow||"none",o.display=l?"block":"none";const i=this.triangle=document.createElement("div");i.setAttribute("style","position: absolute;white-space: nowrap;border-width: 4px;border-style: solid;border-color: #fff transparent transparent;border-image: initial;font-size: 12px;padding: 0px;background-color: transparent;width: 0px;height: 0px;transform: translate(-50%, 100%);left: 50%;bottom: 0;"),this.setStyle(e),n.appendChild(i),t&&this.setMap(t)}}set onclick(e){this.div.onclick=e}get onclick(){return this.div.onclick}setOption(e){this.option=e,"ALWAYS"===e.display?this.alwaysVisible=this.visible=!0:this.alwaysVisible=!1,zm()?this.visible&&this.createAMapText():Bm()?this.visible&&this.createBMapText():(this.setPosition(e.position),this.setStyle(e))}setStyle(e){const t=this.div,n=t.style;t.innerText=e.content||"",n.lineHeight=(e.fontSize||14)+"px",n.fontSize=(e.fontSize||14)+"px",n.padding=(e.padding||8)+"px",n.color=e.color||"#000",n.borderRadius=(e.borderRadius||0)+"px",n.backgroundColor=e.bgColor||"#fff",n.marginTop="-"+((e.top||0)+5)+"px",this.triangle.style.borderColor=`${e.bgColor||"#fff"} transparent transparent`}setPosition(e){this.position=e,this.draw()}draw(){const e=this.getProjection();if(!this.position||!this.div||!e)return;const t=e.fromLatLngToDivPixel(this.position),n=this.div.style;n.left=t.x+"px",n.top=t.y+"px"}changed(){this.div.style.display=this.visible?"block":"none"}}if(!zm()&&!Bm()){const t=new(e.OverlayView||e.Overlay);a.prototype.setMap=t.setMap,a.prototype.getMap=t.getMap,a.prototype.getPanes=t.getPanes,a.prototype.getProjection=t.getProjection,a.prototype.map_changed=t.map_changed,a.prototype.set=t.set,a.prototype.get=t.get,a.prototype.setOptions=t.setValues,a.prototype.bindTo=t.bindTo,a.prototype.bindsTo=t.bindsTo,a.prototype.notify=t.notify,a.prototype.setValues=t.setValues,a.prototype.unbind=t.unbind,a.prototype.unbindAll=t.unbindAll,a.prototype.addListener=t.addListener}return a}const Mm={};function Pm(e,t){const n=Im();if(!n.key)return void console.error("Map key not configured.");const o=Mm[n.type]=Mm[n.type]||[];if(km)t(km);else if(window[n.type]&&window[n.type].maps)km=zm()||Bm()?window[n.type]:window[n.type].maps,km.Callout=km.Callout||Em(km),t(km);else if(o.length)o.push(t);else{o.push(t);const i=window,r="__map_callback__"+n.type;i[r]=function(){delete i[r],km=zm()||Bm()?window[n.type]:window[n.type].maps,km.Callout=Em(km),o.forEach(e=>e(km)),o.length=0},zm()&&function(e){window._AMapSecurityConfig={securityJsCode:e.securityJsCode||"",serviceHost:e.serviceHost||""}}(n);const s=document.createElement("script");let a=Lm(n.type);n.type===$m.QQ&&e.push("geometry"),e.length&&(a+=`libraries=${e.join("%2C")}&`),n.type===$m.BMAP?s.src=`${a}ak=${n.key}&callback=${r}`:s.src=`${a}key=${n.key}&callback=${r}`,s.onerror=function(){console.error("Map load failed.")},document.body.appendChild(s)}}const Lm=e=>({qq:"https://map.qq.com/api/js?v=2.exp&",google:"https://maps.googleapis.com/maps/api/js?",AMap:"https://webapi.amap.com/maps?v=2.0&",BMapGL:"https://api.map.baidu.com/api?type=webgl&v=1.0&"}[e]);const Om="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAACECAMAAABmmnOVAAAC01BMVEUAAAAAef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef96quGStdqStdpbnujMzMzCyM7Gyc7Ky83MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMwAef8GfP0yjfNWnOp0qOKKsdyYt9mju9aZt9mMstx1qeJYnekyjvIIfP0qivVmouaWttnMzMyat9lppOUujPQKffxhoOfNzc3Y2Njh4eHp6enu7u7y8vL19fXv7+/i4uLZ2dnOzs6auNgOf/sKff15quHR0dHx8fH9/f3////j4+N6quFdn+iywdPb29vw8PD+/v7c3NyywtLa2tr29vbS0tLd3d38/Pzf39/o6Ojc7f+q0v+HwP9rsf9dqv9Hnv9Vpv/q6urj8P+Vx/9Am/8Pgf8Iff/z8/OAvP95uf/n5+c5l//V6f+52v+y1//7+/vt7e0rkP/09PTQ0NDq9P8Whf+cy//W1tbe3t7A3v/m5ubs7OxOov/r6+vk5OQiaPjKAAAAknRSTlMACBZ9oB71/jiqywJBZATT6hBukRXv+zDCAVrkDIf4JbQsTb7eVeJLbwfa8Rh4G/OlPS/6/kxQ9/xdmZudoJxNVhng7B6wtWdzAtQOipcF1329wS44doK/BAkyP1pvgZOsrbnGXArAg34G2IsD1eMRe7bi7k5YnqFT9V0csyPedQyYD3p/Fje+hDpskq/MwpRBC6yKp2MAAAQdSURBVHja7Zn1exMxGIAPHbrhDsPdneHuNtzd3d3dIbjLh93o2o4i7TpgG1Jk0g0mMNwd/gTa5rq129reHnK5e/bk/TFNk/dJ7r5894XjGAwGg8GgTZasCpDIll1+hxw5vXLJLpEboTx5ZXbIhyzkl9fB28cqUaCgrBKFkI3CcjoUKYolihWXUSI7EihRUjaHXF52CVRKLoe8eZIdUOkyMknkRw6UlcehYAFHiXK+skgURk6Ul8OhQjFnCVRRBolKqRxQ5SzUHaqgNGSj7VCmalqJnDkoS5RF6ZCbroNvufQkUD6qEuXTdUA+3hQdqiEXVKfnUKOmK4latalJ1EEuoZZ6162HJ9x/4OChw0eOHj12/MTJU6dxG7XUu751tjNnz4ET5y9ctLZTSr0beKFLl89bpuUDrqgC1RqNWqsKuqqzNFw7e51S6u3tc+OmZUJ9kCHY6ECwOkRvab51iUrqXej2HYDQsHBjWgx3Ae7dppB6N2wEcF9jdMGDUIDGTaR2aNoM9FqjG7QmaN5CWgc/gIePjG559BigpZQOrYB/4jBfRGRUtDkmJjY6KjLCofkpD62lc2gDfMpWPIuLdwyV8XEpHgaddBZ+wBuSFcwJqSN2ovmZ/dfnOvCTxqGtwzq8SEjv4EhISn48eWgnhUP7DvDSvgzxrs6vV6+FLiro2EkCic4QKkzwJsH1KYreCp0eQhfyDl1B/w4P/xa5JVJ4U03QjbRD9x7wXlgH5IE3wmMBHXoSlugFAcI6f/AkkSi8q6HQm6xDn77wEQ8djTwSj3tqAMguRTe4ikeOQyJ4YV+KfkQl+oNW5GbY4gWOWgbwJ+kwAD6Fi90MK2ZsrIeBBCUGwRXbqJ+/iJMQliIEBhOU6AJhtlG/IpHE2bqrYQg5h6HA4yQiRqwEfkGCdTCMmMRw+IbPDCQaHCsCYAQxiZHw3TbmD/ESOHgHwShiEqPhp/gggYkSztIxxCRawy/bmEniJaJtfwiEscQkxkFgRqJESqQwwHhiEuMBp3Vm8RK/cZoHEzKXhCK2QxEPpiJe0YlKCFaKCNv/cYBNUsBRPlkJSc0U+dM7E9H0ThGJbgZT/iR7yj+VqMS06Qr4+OFm2JdCxIa8lugzkJs5K6MfxAaYPUcBpYG5khZJEkUUSb7DPCnKRfPBXj6M8FwuegoLpCgXcQszVjhbJFUJUee2hBhLoYTIcYtB57KY+opSMdVqwatSlZVj05aV//CwJLMX2DluaUcwhXm4ali2XOoLjxUrPV26zFtF4f5p0Gp310+z13BUWNvbehEXona6iAtX/zVZmtfN4WixfsNky4S6gCCVVq3RPLdfSfpv3MRRZfPoLc6Xs/5bt3EyMGzE9h07/Xft2t15z6i9+zgGg8FgMBgMBoPBYDAYDAYj8/APG67Rie8pUDsAAAAASUVORK5CYII=";var $m=(e=>(e.QQ="qq",e.GOOGLE="google",e.AMAP="AMap",e.BMAP="BMapGL",e.UNKNOWN="",e))($m||{});function Im(){return __uniConfig.bMapKey?{type:"BMapGL",key:__uniConfig.bMapKey}:__uniConfig.qqMapKey?{type:"qq",key:__uniConfig.qqMapKey}:__uniConfig.googleMapKey?{type:"google",key:__uniConfig.googleMapKey}:__uniConfig.aMapKey?{type:"AMap",key:__uniConfig.aMapKey,securityJsCode:__uniConfig.aMapSecurityJsCode,serviceHost:__uniConfig.aMapServiceHost}:{type:"",key:""}}let Dm=!1,Rm=!1;const zm=()=>Rm?Dm:(Rm=!0,Dm="AMap"===Im().type),Bm=()=>"BMapGL"===Im().type;const Nm=Yu({name:"MapMarker",props:{id:{type:[Number,String],default:""},latitude:{type:[Number,String],require:!0},longitude:{type:[Number,String],require:!0},title:{type:String,default:""},iconPath:{type:String,require:!0},rotate:{type:[Number,String],default:0},alpha:{type:[Number,String],default:1},width:{type:[Number,String],default:""},height:{type:[Number,String],default:""},callout:{type:Object,default:null},label:{type:Object,default:null},anchor:{type:Object,default:null},clusterId:{type:[Number,String],default:""},customCallout:{type:Object,default:null},ariaLabel:{type:String,default:""}},setup(e){const t=String(isNaN(Number(e.id))?"":e.id),n=Ki("onMapReady"),o=function(e){const t="uni-map-marker-label-"+e,n=document.createElement("style");return n.id=t,document.head.appendChild(n),_i(()=>{n.remove()}),function(e){const o=Object.assign({},e,{position:"absolute",top:"70px",borderStyle:"solid"}),i=document.createElement("div");return Object.keys(o).forEach(e=>{i.style[e]=o[e]||""}),n.innerText=`.${t}{${i.getAttribute("style")}}`,t}}(t);let i;function r(e){zm()?e.removeAMapText():e.setMap(null)}if(n((n,s,a)=>{function l(e){const l=e.title;let c;c=zm()?new s.LngLat(e.longitude,e.latitude):Bm()?new s.Point(e.longitude,e.latitude):new s.LatLng(e.latitude,e.longitude);const u=new Image;let d=0;u.onload=()=>{const f=e.anchor||{};let p,h,g,m,v="number"==typeof f.x?f.x:.5,y="number"==typeof f.y?f.y:1;e.iconPath&&(e.width||e.height)?(h=e.width||u.width/u.height*e.height,g=e.height||u.height/u.width*e.width):(h=u.width/2,g=u.height/2),d=g,m=g-(g-y*g),p="MarkerImage"in s?new s.MarkerImage(u.src,null,null,new s.Point(v*h,y*g),new s.Size(h,g)):"Icon"in s?new s.Icon({image:u.src,size:new s.Size(h,g),imageSize:new s.Size(h,g),imageOffset:new s.Pixel(v*h,y*g)}):{url:u.src,anchor:new s.Point(v,y),size:new s.Size(h,g)},Bm()?(i=new s.Marker(new s.Point(c.lng,c.lat)),n.addOverlay(i)):(i.setPosition(c),i.setIcon(p)),"setRotation"in i&&i.setRotation(e.rotate||0);const b=e.label||{};let _;if("label"in i&&(i.label.setMap(null),delete i.label),b.content){const e={borderColor:b.borderColor,borderWidth:(Number(b.borderWidth)||0)+"px",padding:(Number(b.padding)||0)+"px",borderRadius:(Number(b.borderRadius)||0)+"px",backgroundColor:b.bgColor,color:b.color,fontSize:(b.fontSize||14)+"px",lineHeight:(b.fontSize||14)+"px",marginLeft:(Number(b.anchorX||b.x)||0)+"px",marginTop:(Number(b.anchorY||b.y)||0)+"px"};if("Label"in s)_=new s.Label({position:c,map:n,clickable:!1,content:b.content,style:e}),i.label=_;else if("setLabel"in i)if(zm()){const t=`
\n ${b.content}\n
`;i.setLabel({content:t,direction:"bottom-right"})}else{const t=o(e);i.setLabel({text:b.content,color:e.color,fontSize:e.fontSize,className:t})}}const w=e.callout||{};let x,C=i.callout;if(w.content||l){zm()&&w.content&&(w.content=w.content.replaceAll("\n","
"));const o="0px 0px 3px 1px rgba(0,0,0,0.5)";let r=-d/2;if((e.width||e.height)&&(r+=14-d/2),x=w.content?{position:c,map:n,top:m,offsetY:r,content:w.content,color:w.color,fontSize:w.fontSize,borderRadius:w.borderRadius,bgColor:w.bgColor,padding:w.padding,boxShadow:w.boxShadow||o,display:w.display}:{position:c,map:n,top:m,offsetY:r,content:l,boxShadow:o},C)C.setOption(x);else if(zm()){const e=()=>{""!==t&&a("callouttap",{},{markerId:Number(t)})};C=i.callout=new s.Callout(x,e)}else C=i.callout=new s.Callout(x),C.div.onclick=function(e){""!==t&&a("callouttap",e,{markerId:Number(t)}),e.stopPropagation(),e.preventDefault()},Im().type===$m.GOOGLE&&(C.div.ontouchstart=function(e){e.stopPropagation()},C.div.onpointerdown=function(e){e.stopPropagation()})}else C&&(r(C),delete i.callout)},e.iconPath?u.src=Xp(e.iconPath):console.error("Marker.iconPath is required.")}!function(e){Bm()||(i=new s.Marker({map:n,flat:!0,autoRotation:!1})),l(e);const o=s.event||s.Event;Bm()||o.addListener(i,"click",()=>{const n=i.callout;if(n&&!n.alwaysVisible)if(zm())n.visible=!n.visible,n.visible?i.callout.createAMapText():i.callout.removeAMapText();else if(n.set("visible",!n.visible),n.visible){const e=n.div,t=e.parentNode;t.removeChild(e),t.appendChild(e)}t&&a("markertap",{},{markerId:Number(t),latitude:e.latitude,longitude:e.longitude})})}(e),Oo(e,l)}),t){const e=Ki("addMapChidlContext"),o=Ki("removeMapChidlContext"),r={id:t,translate(e){n((t,n,o)=>{const r=e.destination,s=e.duration,a=!!e.autoRotate;let l=Number(e.rotate)||0,c=0;"getRotation"in i&&(c=i.getRotation());const u=i.getPosition(),d=new n.LatLng(r.latitude,r.longitude),f=n.geometry.spherical.computeDistanceBetween(u,d)/1e3/(("number"==typeof s?s:1e3)/36e5),p=n.event||n.Event,h=p.addListener(i,"moving",e=>{const t=e.latLng,n=i.label;n&&n.setPosition(t);const o=i.callout;o&&o.setPosition(t)}),g=p.addListener(i,"moveend",()=>{g.remove(),h.remove(),i.lastPosition=u,i.setPosition(d);const t=i.label;t&&t.setPosition(d);const n=i.callout;n&&n.setPosition(d);const o=e.animationEnd;m(o)&&o()});let v=0;a&&(i.lastPosition&&(v=n.geometry.spherical.computeHeading(i.lastPosition,u)),l=n.geometry.spherical.computeHeading(u,d)-v),"setRotation"in i&&i.setRotation(c+l),"moveTo"in i?i.moveTo(d,f):(i.setPosition(d),p.trigger(i,"moveend",{}))})}};e(r),_i(()=>o(r))}return _i(function(){i&&(i.label&&"setMap"in i.label&&i.label.setMap(null),i.callout&&r(i.callout),i.setMap(null))}),()=>null}});function qm(e){if(!e)return{r:0,g:0,b:0,a:0};let t=e.slice(1);const n=t.length;if(![3,4,6,8].includes(n))return{r:0,g:0,b:0,a:0};3!==n&&4!==n||(t=t.replace(/(\w{1})/g,"$1$1"));let[o,i,r,s]=t.match(/(\w{2})/g);const a=parseInt(o,16),l=parseInt(i,16),c=parseInt(r,16);return s?{r:a,g:l,b:c,a:(`0x100${s}`-65536)/255}:{r:a,g:l,b:c,a:1}}const jm={points:{type:Array,require:!0},color:{type:String,default:"#000000"},width:{type:[Number,String],default:""},dottedLine:{type:[Boolean,String],default:!1},arrowLine:{type:[Boolean,String],default:!1},arrowIconPath:{type:String,default:""},borderColor:{type:String,default:"#000000"},borderWidth:{type:[Number,String],default:""},colorList:{type:Array,default:()=>[]},level:{type:String,default:""}},Fm=Yu({name:"MapPolyline",props:jm,setup(e){let t,n;function o(){t&&t.setMap(null),n&&n.setMap(null)}return Ki("onMapReady")((i,r)=>{function s(e){const o=[];e.points.forEach(e=>{let t;t=zm()?[e.longitude,e.latitude]:Bm()?new r.Point(e.longitude,e.latitude):new r.LatLng(e.latitude,e.longitude),o.push(t)});const s=Number(e.width)||1,{r:a,g:l,b:c,a:u}=qm(e.color),{r:d,g:f,b:p,a:h}=qm(e.borderColor),g={map:i,clickable:!1,path:o,strokeWeight:s,strokeColor:e.color||void 0,strokeDashStyle:e.dottedLine?"dash":"solid"},m=Number(e.borderWidth)||0,v={map:i,clickable:!1,path:o,strokeWeight:s+2*m,strokeColor:e.borderColor||void 0,strokeDashStyle:e.dottedLine?"dash":"solid"};"Color"in r?(g.strokeColor=new r.Color(a,l,c,u),v.strokeColor=new r.Color(d,f,p,h)):(g.strokeColor=`rgb(${a}, ${l}, ${c})`,g.strokeOpacity=u,v.strokeColor=`rgb(${d}, ${f}, ${p})`,v.strokeOpacity=h),m&&(n=new r.Polyline(v)),Bm()?(t=new r.Polyline(g.path,g),i.addOverlay(t)):t=new r.Polyline(g)}s(e),Oo(e,function(e){o(),s(e)})}),_i(o),()=>null}}),Vm=Yu({name:"MapCircle",props:{latitude:{type:[Number,String],require:!0},longitude:{type:[Number,String],require:!0},color:{type:String,default:"#000000"},fillColor:{type:String,default:"#00000000"},radius:{type:[Number,String],require:!0},strokeWidth:{type:[Number,String],default:""},level:{type:String,default:""}},setup(e){let t;function n(){t&&t.setMap(null)}return Ki("onMapReady")((o,i)=>{function r(e){const n=zm()||Bm()?[e.longitude,e.latitude]:new i.LatLng(e.latitude,e.longitude),r={map:o,center:n,clickable:!1,radius:e.radius,strokeWeight:Number(e.strokeWidth)||1,strokeDashStyle:"solid"};if(Bm())r.strokeColor=e.color,r.fillColor=e.fillColor||"#000",r.fillOpacity=1;else{const{r:t,g:n,b:o,a:s}=qm(e.fillColor),{r:a,g:l,b:c,a:u}=qm(e.color);"Color"in i?(r.fillColor=new i.Color(t,n,o,s),r.strokeColor=new i.Color(a,l,c,u)):(r.fillColor=`rgb(${t}, ${n}, ${o})`,r.fillOpacity=s,r.strokeColor=`rgb(${a}, ${l}, ${c})`,r.strokeOpacity=u)}if(Bm()){let e=new i.Point(r.center[0],r.center[1]);t=new i.Circle(e,r.radius,r),o.addOverlay(t)}else t=new i.Circle(r),zm()&&o.add(t)}r(e),Oo(e,function(e){n(),r(e)})}),_i(n),()=>null}}),Wm={id:{type:[Number,String],default:""},position:{type:Object,required:!0},iconPath:{type:String,required:!0},clickable:{type:[Boolean,String],default:""},trigger:{type:Function,required:!0}},Hm=Yu({name:"MapControl",props:Wm,setup(e){const t=os(()=>Xp(e.iconPath)),n=os(()=>{let t=`top:${e.position.top||0}px;left:${e.position.left||0}px;`;return e.position.width&&(t+=`width:${e.position.width}px;`),e.position.height&&(t+=`height:${e.position.height}px;`),t}),o=t=>{e.clickable&&e.trigger("controltap",t,{controlId:e.id})};return()=>Ir("div",{class:"uni-map-control"},[Ir("img",{src:t.value,style:n.value,class:"uni-map-control-icon",onClick:o},null,12,["src","onClick"])])}}),Um="__DC_STAT_UUID",Xm=navigator.cookieEnabled&&(window.localStorage||window.sessionStorage)||{};let Ym;function Gm(){if(Ym=Ym||Xm[Um],!Ym){Ym=Date.now()+""+Math.floor(1e7*Math.random());try{Xm[Um]=Ym}catch(e){}}return Ym}function Km(){if(!0!==__uniConfig.darkmode)return v(__uniConfig.darkmode)?__uniConfig.darkmode:"light";try{return window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}catch(e){return"light"}}function Jm(){let e,t="0",n="",o="phone";const i=navigator.language;if(Kp){e="iOS";const o=Yp.match(/OS\s([\w_]+)\slike/);o&&(t=o[1].replace(/_/g,"."));const i=Yp.match(/\(([a-zA-Z]+);/);i&&(n=i[1])}else if(Gp){e="Android";const o=Yp.match(/Android[\s/]([\w\.]+)[;\s]/);o&&(t=o[1]);const i=Yp.match(/\((.+?)\)/),r=i?i[1].split(";"):Yp.split(" "),s=[/\bAndroid\b/i,/\bLinux\b/i,/\bU\b/i,/^\s?[a-z][a-z]$/i,/^\s?[a-z][a-z]-[a-z][a-z]$/i,/\bwv\b/i,/\/[\d\.,]+$/,/^\s?[\d\.,]+$/,/\bBrowser\b/i,/\bMobile\b/i];for(let e=0;e0){n=t.split("Build")[0].trim();break}let o;for(let e=0;e-1&&e.indexOf("MSIE")>-1,n=e.indexOf("Edge")>-1&&!t,o=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1;if(t){new RegExp("MSIE (\\d+\\.\\d+);").test(e);const t=parseFloat(RegExp.$1);return t>6?t:6}return n?-1:o?11:-1}());if("-1"!==l)a="IE";else{const e=["Version","Firefox","Chrome","Edge{0,1}"],t=["Safari","Firefox","Chrome","Edge"];for(let n=0;n{const e=window.devicePixelRatio,t=th(),n=nh(t),o=oh(t,n),i=function(e,t){return e?Math[t?"min":"max"](screen.height,screen.width):screen.height}(t,n),r=ih(o);let s=window.innerHeight;const a=Fc.top,l={left:Fc.left,right:r-Fc.right,top:Fc.top,bottom:s-Fc.bottom,width:r-Fc.left-Fc.right,height:s-Fc.top-Fc.bottom},{top:c,bottom:u}=Xc();return s-=c,s-=u,{windowTop:c,windowBottom:u,windowWidth:r,windowHeight:s,pixelRatio:e,screenWidth:o,screenHeight:i,statusBarHeight:a,safeArea:l,safeAreaInsets:{top:Fc.top,right:Fc.right,bottom:Fc.bottom,left:Fc.left},screenTop:i-s}});let Zm,ev=!0;function tv(){ev&&(Zm=Jm())}const nv=Ud(0,()=>{tv();const{deviceBrand:e,deviceModel:t,brand:n,model:o,platform:i,system:r,deviceOrientation:s,deviceType:a,osname:l,osversion:u}=Zm;return c({brand:n,deviceBrand:e,deviceModel:t,devicePixelRatio:window.devicePixelRatio,deviceId:Gm(),deviceOrientation:s,deviceType:a,model:o,platform:i,system:r,osName:l?l.toLowerCase():void 0,osVersion:u})}),ov=Ud(0,()=>{tv();const{theme:e,language:t,browserName:n,browserVersion:o}=Zm;return c({appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:Sf?Sf():t,enableDebug:!1,hostSDKVersion:void 0,hostPackageName:void 0,hostFontSizeSetting:void 0,hostName:n,hostVersion:o,hostTheme:e,hostLanguage:t,language:t,SDKVersion:"",theme:e,version:"",uniPlatform:"web",isUniAppX:!1,uniCompileVersion:__uniConfig.compilerVersion,uniCompilerVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion},{})}),iv=Ud(0,()=>{ev=!0,tv(),ev=!1;const e=Qm(),t=nv(),n=ov();ev=!0;const{ua:o,browserName:i,browserVersion:r,osname:s,osversion:a}=Zm,l=c(e,t,n,{ua:o,browserName:i,browserVersion:r,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion,fontSizeSetting:void 0,osName:s.toLowerCase(),osVersion:a,osLanguage:void 0,osTheme:void 0});return delete l.screenTop,delete l.enableDebug,__uniConfig.darkmode||delete l.theme,function(e){let t={};return C(e)&&Object.keys(e).sort().forEach(n=>{const o=n;t[o]=e[o]}),Object.keys(t)?t:e}(l)});let rv=null;const sv=Vd(Af,()=>{lv()}),av=Wd("offCompass",()=>{cv()}),lv=Xd("startCompass",(e,{resolve:t,reject:n})=>{if(window.DeviceOrientationEvent){if(!rv){if(DeviceOrientationEvent.requestPermission)return void DeviceOrientationEvent.requestPermission().then(e=>{"granted"===e?(o(),t()):n(`${e}`)}).catch(e=>{n(`${e}`)});o()}t()}else n();function o(){rv=function(e){const t=360-(null!==e.alpha?e.alpha:360);Uy.invokeOnCallback(Af,{direction:t})},window.addEventListener("deviceorientation",rv,!1)}}),cv=Xd("stopCompass",(e,{resolve:t})=>{rv&&(window.removeEventListener("deviceorientation",rv,!1),rv=null),t()});const uv=Xd("setClipboardData",(e,t)=>{return n=void 0,o=[e,t],i=function*({data:e},{resolve:t,reject:n}){try{yield navigator.clipboard.writeText(e),t()}catch(o){!function(e,t,n){const o=document.getElementById("#clipboard");o&&o.remove();const i=document.createElement("textarea");i.setAttribute("inputmode","none"),i.id="#clipboard",i.style.position="fixed",i.style.top="-9999px",i.style.zIndex="-9999",document.body.appendChild(i),i.value=e,i.select(),i.setSelectionRange(0,i.value.length);const r=document.execCommand("Copy",!1);i.blur(),r?t():n()}(e,t,n)}},new Promise((e,t)=>{var r=e=>{try{a(i.next(e))}catch(n){t(n)}},s=e=>{try{a(i.throw(e))}catch(n){t(n)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,s);a((i=i.apply(n,o)).next())});var n,o,i},0,Tf);const dv=Ud(0,(e,t)=>{const n=typeof t,o="string"===n?t:JSON.stringify({type:n,data:t});localStorage.setItem(e,o)});function fv(e){const t=localStorage&&localStorage.getItem(e);if(!v(t))throw new Error("data not found");let n=t;try{const e=function(e){const t=["object","string","number","boolean","undefined"];try{const n=v(e)?JSON.parse(e):e,o=n.type;if(t.indexOf(o)>=0){const e=Object.keys(n);if(2===e.length&&"data"in n){if(typeof n.data===o)return n.data;if("object"===o&&/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d{3}Z$/.test(n.data))return new Date(n.data)}else if(1===e.length)return""}}catch(n){}}(JSON.parse(t));void 0!==e&&(n=e)}catch(o){}return n}const pv=Ud(0,e=>{try{return fv(e)}catch(t){return""}}),hv=Ud(0,e=>{localStorage&&localStorage.removeItem(e)}),gv={image:{jpg:"jpeg",jpe:"jpeg",pbm:"x-portable-bitmap",pgm:"x-portable-graymap",pnm:"x-portable-anymap",ppm:"x-portable-pixmap",psd:"vnd.adobe.photoshop",pic:"x-pict",rgb:"x-rgb",svg:"svg+xml",svgz:"svg+xml",tif:"tiff",xif:"vnd.xiff",wbmp:"vnd.wap.wbmp",wdp:"vnd.ms-photo",xbm:"x-xbitmap",ico:"x-icon"},video:{"3g2":"3gpp2","3gp":"3gpp",avi:"x-msvideo",f4v:"x-f4v",flv:"x-flv",jpgm:"jpm",jpgv:"jpeg",m1v:"mpeg",m2v:"mpeg",mpe:"mpeg",mpg:"mpeg",mpg4:"mpeg",m4v:"x-m4v",mkv:"x-matroska",mov:"quicktime",qt:"quicktime",movie:"x-sgi-movie",mp4v:"mp4",ogv:"ogg",smv:"x-smv",wm:"x-ms-wm",wmv:"x-ms-wmv",wmx:"x-ms-wmx",wvx:"x-ms-wvx"}};let mv=null;const vv=Xd("chooseImage",({count:e,sourceType:t,extension:n},{resolve:o,reject:i})=>{dc();const{t:r}=ic();mv&&(document.body.removeChild(mv),mv=null),mv=function({count:e,sourceType:t,type:n,extension:o}){Gh();const i=document.createElement("input");return i.type="file",function(e,t){for(const n in t)e.style[n]=t[n]}(i,{position:"absolute",visibility:"hidden",zIndex:"-999",width:"0",height:"0",top:"0",left:"0"}),i.accept=o.map(e=>{{const t=e.replace(".","");return`${n}/${gv[n][t]||t}`}}).join(","),e&&e>1&&(i.multiple=!0),t instanceof Array&&1===t.length&&"camera"===t[0]&&i.setAttribute("capture","camera"),i}({count:e,sourceType:t,extension:n,type:"image"}),document.body.appendChild(mv),mv.addEventListener("cancel",()=>{i("chooseImage:fail cancel")}),mv.addEventListener("change",function(t){const n=t.target,i=[];if(n&&n.files){const t=n.files.length;for(let o=0;o(r=r||dh(t),r)}),oe)},tempFiles:i})}),mv.click(),Uh||console.warn(r("uni.chooseFile.notUserActivation"))},0,Of),yv={esc:["Esc","Escape"],enter:["Enter"]},bv=Object.keys(yv);function _v(){const e=Dn(""),t=Dn(!1),n=n=>{if(t.value)return;const o=bv.find(e=>-1!==yv[e].indexOf(n.key));o&&(e.value=o),to(()=>e.value="")};return mi(()=>{document.addEventListener("keyup",n)}),bi(()=>{document.removeEventListener("keyup",n)}),{key:e,disable:t}}const wv=Ir("div",{class:"uni-mask"},null,-1);function xv(e,t,n){return t.onClose=(...e)=>(t.visible=!1,n.apply(null,e)),na(Ko({setup:()=>()=>(xr(),Ar(e,t,null,16))}))}function Cv(e){let t=document.getElementById(e);return t||(t=document.createElement("div"),t.id=e,document.body.append(t)),t}function Sv(e,{onEsc:t,onEnter:n}){const o=Dn(e.visible),{key:i,disable:r}=_v();return Oo(()=>e.visible,e=>o.value=e),Oo(()=>o.value,e=>r.value=!e),Po(()=>{const{value:e}=i;"esc"===e?t&&t():"enter"===e&&n&&n()}),o}let kv=0,Tv="";function Av(e){let t=kv;kv+=e?1:-1,kv=Math.max(0,kv),kv>0?0===t&&(Tv=document.body.style.overflow,document.body.style.overflow="hidden"):(document.body.style.overflow=Tv,Tv="")}const Ev=Hd("request",({url:e,data:t,header:n={},method:o,dataType:i,responseType:r,enableChunked:s,withCredentials:a,timeout:l=__uniConfig.networkTimeout.request},{resolve:c,reject:u})=>{let d=null;const p=function(e){const t=Object.keys(e).find(e=>"content-type"===e.toLowerCase());if(!t)return;const n=e[t];if(0===n.indexOf("application/json"))return"json";if(0===n.indexOf("application/x-www-form-urlencoded"))return"urlencoded";return"string"}(n);if("GET"!==o)if(v(t)||t instanceof ArrayBuffer)d=t;else if("json"===p)try{d=JSON.stringify(t)}catch(g){d=t.toString()}else if("urlencoded"===p){const e=[];for(const n in t)f(t,n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));d=e.join("&")}else d=t.toString();let h;if(s){if(void 0===typeof window.fetch||void 0===typeof window.AbortController)throw new Error("fetch or AbortController is not supported in this environment");const t=new AbortController,s=t.signal;h=new Pv(t);const f={method:o,headers:n,body:d,signal:s,credentials:a?"include":"same-origin"},p=setTimeout(function(){h.abort(),u("timeout",{errCode:5})},l);f.signal.addEventListener("abort",function(){clearTimeout(p),u("abort",{errCode:600003})}),window.fetch(e,f).then(e=>{const t=e.status,n=e.headers,o=e.body,s={};n.forEach((e,t)=>{s[t]=e});const a=Mv(s);if(h._emitter.emit("headersReceived",{header:s,statusCode:t,cookies:a}),!o)return void c({data:"",statusCode:t,header:s,cookies:a});const l=o.getReader(),u=[],d=()=>{l.read().then(({done:e,value:n})=>{if(e){const e=function(e){const t=e.reduce((e,t)=>e+t.byteLength,0),n=new Uint8Array(t);let o=0;for(const i of e)n.set(new Uint8Array(i),o),o+=i.byteLength;return n.buffer}(u);let n="text"===r?(new TextDecoder).decode(e):e;return"text"===r&&(n=Ov(n,r,i)),void c({data:n,statusCode:t,header:s,cookies:a})}const o=n;u.push(o),h._emitter.emit("chunkReceived",{data:o}),d()})};d()},e=>{u(e,{errCode:5})})}else{const t=new XMLHttpRequest;h=new Pv(t),t.open(o,e);for(const e in n)f(n,e)&&t.setRequestHeader(e,n[e]);const s=setTimeout(function(){t.onload=t.onabort=t.onerror=null,h.abort(),u("timeout",{errCode:5})},l);t.responseType=r,t.onload=function(){clearTimeout(s);const e=t.status;let n="text"===r?t.responseText:t.response;"text"===r&&(n=Ov(n,r,i)),c({data:n,statusCode:e,header:Lv(t.getAllResponseHeaders()),cookies:[]})},t.onabort=function(){clearTimeout(s),u("abort",{errCode:600003})},t.onerror=function(){clearTimeout(s),u(void 0,{errCode:5})},t.withCredentials=a,t.send(d)}return h},0,Rf),Mv=e=>{let t=e["Set-Cookie"]||e["set-cookie"],n=[];if(!t)return[];"["===t[0]&&"]"===t[t.length-1]&&(t=t.slice(1,-1));const o=t.split(";");for(let i=0;i{t===e&&(this._requestOnHeadersReceiveCallbacks.delete(n),this._emitter.off("headersReceived",e))});const t=this._requestOnHeadersReceiveCallbacks.get(e);t&&(this._requestOnHeadersReceiveCallbacks.delete(e),this._emitter.off("headersReceived",t))}onChunkReceived(e){return this._emitter.on("chunkReceived",e),this._requestOnChunkReceiveCallbackId++,this._requestOnChunkReceiveCallbacks.set(this._requestOnChunkReceiveCallbackId,e),this._requestOnChunkReceiveCallbackId}offChunkReceived(e){if(null==e)return void this._emitter.off("chunkReceived");if("function"==typeof e)return void this._requestOnChunkReceiveCallbacks.forEach((t,n)=>{t===e&&(this._requestOnChunkReceiveCallbacks.delete(n),this._emitter.off("chunkReceived",e))});const t=this._requestOnChunkReceiveCallbacks.get(e);t&&(this._requestOnChunkReceiveCallbacks.delete(e),this._emitter.off("chunkReceived",t))}}function Lv(e){const t={};return e.split(ee).forEach(e=>{const n=e.match(/(\S+\s*):\s*(.*)/);n&&3===n.length&&(t[n[1]]=n[2])}),t}function Ov(e,t,n){let o=e;if("text"===t&&"json"===n)try{o=JSON.parse(o)}catch(i){}return o}class $v{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){m(e)&&this._callbacks.push(e)}offProgressUpdate(e){const t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}abort(){this._isAbort=!0,this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(e){throw new Error("Method not implemented.")}offHeadersReceived(e){throw new Error("Method not implemented.")}}const Iv=Hd("uploadFile",({url:e,file:t,filePath:n,name:o,files:i,header:r={},formData:s={},timeout:a=__uniConfig.networkTimeout.uploadFile},{resolve:l,reject:c})=>{var u=new $v;return p(i)&&i.length||(n||c("file error"),i=[{name:o,file:t,uri:n}]),Promise.all(i.map(({file:e,uri:t})=>e instanceof Blob?Promise.resolve(uh(e)):ch(t))).then(function(t){var n,o=new XMLHttpRequest,d=new FormData;Object.keys(s).forEach(e=>{d.append(e,s[e])}),Object.values(i).forEach(({name:e},n)=>{const o=t[n];d.append(e||"file",o,o.name||`file-${Date.now()}`)}),o.open("POST",e),Object.keys(r).forEach(e=>{o.setRequestHeader(e,r[e])}),o.upload.onprogress=function(e){u._callbacks.forEach(t=>{var n=e.loaded,o=e.total;t({progress:Math.round(n/o*100),totalBytesSent:n,totalBytesExpectedToSend:o})})},o.onerror=function(){clearTimeout(n),c("",{errCode:602001})},o.onabort=function(){clearTimeout(n),c("abort",{errCode:600003})},o.onload=function(){clearTimeout(n);const e=o.status;l({statusCode:e,data:o.responseText||o.response})},u._isAbort?c("abort",{errCode:600003}):(n=setTimeout(function(){o.upload.onprogress=o.onload=o.onabort=o.onerror=null,u.abort(),c("timeout",{errCode:5})},a),o.send(d),u._xhr=o)}).catch(()=>{setTimeout(()=>{c("file error")},0)}),u},0,zf),Dv=Xd("getLocation",({type:e,altitude:t,highAccuracyExpireTime:n,isHighAccuracy:o},{resolve:i,reject:r})=>{const s=Im();new Promise((e,i)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(t=>e({coords:t.coords}),i,{enableHighAccuracy:o||t,timeout:n||1e5}):i(new Error("device nonsupport geolocation"))}).catch(e=>new Promise((t,n)=>{s.type===$m.QQ?Am(`https://apis.map.qq.com/ws/location/v1/ip?output=jsonp&key=${s.key}`,{callback:"callback"},e=>{if("result"in e&&e.result.location){const n=e.result.location;t({coords:{latitude:n.lat,longitude:n.lng},skip:!0})}else n(new Error(e.message||JSON.stringify(e)))},()=>n(new Error("network error"))):s.type===$m.GOOGLE?Ev({method:"POST",url:`https://www.googleapis.com/geolocation/v1/geolocate?key=${s.key}`,success(e){const o=e.data;"location"in o?t({coords:{latitude:o.location.lat,longitude:o.location.lng,accuracy:o.accuracy},skip:!0}):n(new Error(o.error&&o.error.message||JSON.stringify(e)))},fail(){n(new Error("network error"))}}):s.type===$m.AMAP?Pm([],()=>{window.AMap.plugin("AMap.Geolocation",()=>{new window.AMap.Geolocation({enableHighAccuracy:!0,timeout:1e4}).getCurrentPosition((e,o)=>{"complete"===e?t({coords:{latitude:o.position.lat,longitude:o.position.lng,accuracy:o.accuracy},skip:!0}):n(new Error(o.message))})})}):n(e)})).then(({coords:t,skip:n})=>{(function(e,t,n){const o=Im();return e&&"WGS84"===e.toUpperCase()||["google"].includes(o.type)||n?Promise.resolve(t):"qq"===o.type?new Promise(e=>{Am(`https://apis.map.qq.com/ws/coord/v1/translate?type=1&locations=${t.latitude},${t.longitude}&key=${o.key}&output=jsonp`,{callback:"callback"},n=>{if("locations"in n&&n.locations.length){const{lng:o,lat:i}=n.locations[0];e({longitude:o,latitude:i,altitude:t.altitude,accuracy:t.accuracy,altitudeAccuracy:t.altitudeAccuracy,heading:t.heading,speed:t.speed})}else e(t)},()=>e(t))}):"AMap"===o.type?new Promise(e=>{Pm([],()=>{window.AMap.convertFrom([t.longitude,t.latitude],"gps",(n,o)=>{if("ok"===o.info&&o.locations.length){const{lat:n,lng:i}=o.locations[0];e({longitude:i,latitude:n,altitude:t.altitude,accuracy:t.accuracy,altitudeAccuracy:t.altitudeAccuracy,heading:t.heading,speed:t.speed})}else e(t)})})}):Promise.reject(new Error("translate coordinate system faild, map provider not configured or not supported"))})(e,t,n).then(e=>{i({latitude:e.latitude,longitude:e.longitude,accuracy:e.accuracy,speed:e.altitude||0,altitude:e.altitude||0,verticalAccuracy:e.altitudeAccuracy||0,horizontalAccuracy:e.accuracy||0})}).catch(e=>{r(e.message)})}).catch(e=>{r(e.message||JSON.stringify(e))})},0,Mf);const Rv=Yu({name:"LocationView",props:{latitude:{type:Number},longitude:{type:Number},scale:{type:Number,default:18},name:{type:String,default:""},address:{type:String,default:""}},emits:["close"],setup(e,{emit:t}){const n=function(e){const t=bn({center:{latitude:0,longitude:0},marker:{id:1,latitude:0,longitude:0,iconPath:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAACcCAMAAAC3Fl5oAAAB3VBMVEVMaXH/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/EhL/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/Dw//AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/GRn/NTX/Dw//Fhb/AAD/AAD/AAD/GRn/GRn/Y2P/AAD/AAD/ExP/Ghr/AAD/AAD/MzP/GRn/AAD/Hh7/AAD/RUX/AAD/AAD/AAD/AAD/AAD/AAD/Dg7/AAD/HR3/Dw//FRX/SUn/AAD/////kJD/DQ3/Zmb/+/v/wMD/mJj/6en/vb3/1NT//Pz/ODj/+fn/3Nz/nJz/j4//9/f/7e3/9vb/7Oz/2Nj/x8f/Ozv/+Pj/3d3/nZ3/2dn//f3/6Oj/2tr/v7//09P/vr7/mZn/l5cdSvP3AAAAe3RSTlMAAhLiZgTb/vztB/JMRhlp6lQW86g8mQ4KFPs3UCH5U8huwlesWtTYGI7RsdVeJGfTW5rxnutLsvXWF8vQNdo6qQbuz7D4hgVIx2xtw8GC1TtZaIw0i84P98tU0/fsj7PKaAgiZZxeVfo8Z52eg1P0nESrENnjXVPUgw/uuSmDAAADsUlEQVR42u3aZ3cTRxgF4GtbYleSLdnGcsENG2ODjbExEHrvhAQCIb1Bem+QdkeuuFMNBBJIfmuOckzZI8/srHYmH3Lm+QNXK632LTvQ03Tu/IWeU/tTGTKT2n+q58L5c00wpXJd47DHEt5w47pKxLbhdLdPKb/7dBYxVLxw1GcI/2h1BcpzKNFHLX2JQ4gumaiitqpEEhEdOMJI9h5AFC3feYzI+7IF2tpSLEOqDXpObPRYFm/jCWho/4Ble7MdoT7fzhhq9yHEz28wltU1UPrJZ0wd66HwicfYvEFIfePTAP8tSLTupBHvtGJFH9bSkNrNWEHzERrT34xSH9Ogr1CijkbVAUH1KRqVqkdQAw07iIAaGlcTqI+/0LjeJJ5J0IIEnkpXMdzs4sTtW9dnZq7fuj2xOMtwVWk88RHDjBYejYvnjD8qjOpfQsUqhvj7oSjxcJIhVj3pyKqpNjYvVjQ/RrXq5YABKi3MCYm5BSrtWO5v11DlmlC4RpU1WRS9SJU7QukOVbpQ9JLu549+Dd0AUOlTbkGEuk85vxLAK5QbuytC3R2j3HoAjZSbFxrmKTcCoJdSk0LLJKV6gSaPMqNTQsvUKGW8JrxKqUWhaZFSeWyh1LTQNE2pHF6mzOy40DQ+S5mLimJcENoKlOnBWsr8KbRNUGYt5LXgd6HtD3lNQIoyN4S2G5RJIUOZm0LbTcqsBqVmhLYZSlkPsP4VWf+Rrd+m1v9o9h8Vv5p42C1R5qL1x7WRglOgVN52yfwNOBu76P+lLPoYidu23KPciIHGa07ZeIW1jvcNtI7q5vexCPGYCmf+m/Y9a3sAwQ5bI9T7ukPgPcn9GToEao+xk1OixJT+GIsvNAbx6eAgPq0xiF+KtkpYKhRXCQ8eFFcJhSWGu3rZ8jJkCM8kz9K4TUnrC6mAgzTsB9tLwQ2W15qfosQ2GrQNpZr7aczbzVjBZsvLcaC1g0bsbIVEnU8DOr6H1KDH2LwtUBi0/JII6Dxm9zUXkH+XMWzfh1Dte1i2Pe3QkC77Zel7aehpO8wyHG6Dtt0NjKxhN6I4uSli/TqJiJJDUQ4NDCURXTrXRy1XcumyD24M+AzhD1RXIIZsl/LoyZmurJHDM7s8lvB2FQ/PmPJ6PseAXP5HGMYAAC7ABbgAF+ACXIALcAEuwAW4ABfgAlyAC3ABLsAFuID/d8Cx4NEt8/byOf0wLnis8zjMq9/Kp7bWw4JOj8u8TlhRl+G/Mp2wpOX48GffvvZ1CyL4B53LAS6zb08EAAAAAElFTkSuQmCC",width:32,height:52},location:{id:2,latitude:0,longitude:0,iconPath:Om,width:44,height:44}});function n(){e.latitude&&e.longitude&&(t.center.latitude=e.latitude,t.center.longitude=e.longitude,t.marker.latitude=e.latitude,t.marker.longitude=e.longitude)}return Oo([()=>e.latitude,()=>e.longitude],n),n(),t}(e);function o(e){const t=e.detail.centerLocation;t&&(n.center.latitude=t.latitude,n.center.longitude=t.longitude)}function i(){const t=Im();let o="";if(t.type===$m.GOOGLE){o=`https://www.google.com/maps/dir/?api=1${n.location.latitude?`&origin=${n.location.latitude}%2C${n.location.longitude}`:""}&destination=${e.latitude}%2C${e.longitude}`}else if(t.type===$m.QQ){o=`https://apis.map.qq.com/uri/v1/routeplan?type=drive${n.location.latitude?`&fromcoord=${n.location.latitude}%2C${n.location.longitude}&from=${encodeURIComponent("我的位置")}`:""}&tocoord=${e.latitude}%2C${e.longitude}&to=${encodeURIComponent(e.name||"目的地")}&ref=${t.key}`}else if(t.type===$m.AMAP){o=`https://uri.amap.com/navigation?${n.location.latitude?`from=${n.location.longitude},${n.location.latitude},${encodeURIComponent("我的位置")}&`:""}to=${e.longitude},${e.latitude},${encodeURIComponent(e.name||"目的地")}`}window.open(o)}function r(){t("close")}function s({latitude:e,longitude:t}){n.center.latitude=e,n.center.longitude=t}return mi(()=>Av(!0)),_i(()=>Av(!1)),Dv({type:"gcj02",success:({latitude:e,longitude:t})=>{n.location.latitude=e,n.location.longitude=t}}),()=>Ir("div",{class:"uni-system-open-location"},[Ir(Wy,{latitude:n.center.latitude,longitude:n.center.longitude,class:"map",markers:[n.marker,n.location],onRegionchange:o},{default:()=>[Ir("div",{class:"map-move",onClick:()=>s(n.location)},[iu("M13.3334375 16 q0.033125 1.1334375 0.783125 1.8834375 q0.75 0.75 1.8834375 0.75 q1.1334375 0 1.8834375 -0.75 q0.75 -0.75 0.75 -1.8834375 q0 -1.1334375 -0.75 -1.8834375 q-0.75 -0.75 -1.8834375 -0.75 q-1.1334375 0 -1.8834375 0.75 q-0.75 0.75 -0.783125 1.8834375 ZM30.9334375 14.9334375 l-1.1334375 0 q-0.5 -5.2 -4.0165625 -8.716875 q-3.516875 -3.5165625 -8.716875 -4.0165625 l0 -1.1334375 q0 -0.4665625 -0.3 -0.7665625 q-0.3 -0.3 -0.7665625 -0.3 q-0.4665625 0 -0.7665625 0.3 q-0.3 0.3 -0.3 0.7665625 l0 1.1334375 q-5.2 0.5 -8.716875 4.0165625 q-3.5165625 3.516875 -4.0165625 8.716875 l-1.1334375 0 q-0.4665625 0 -0.7665625 0.3 q-0.3 0.3 -0.3 0.7665625 q0 0.4665625 0.3 0.7665625 q0.3 0.3 0.7665625 0.3 l1.1334375 0 q0.5 5.2 4.0165625 8.716875 q3.516875 3.5165625 8.716875 4.0165625 l0 1.1334375 q0 0.4665625 0.3 0.7665625 q0.3 0.3 0.7665625 0.3 q0.4665625 0 0.7665625 -0.3 q0.3 -0.3 0.3 -0.7665625 l0 -1.1334375 q5.2 -0.5 8.716875 -4.0165625 q3.5165625 -3.516875 4.0165625 -8.716875 l1.1334375 0 q0.4665625 0 0.7665625 -0.3 q0.3 -0.3 0.3 -0.7665625 q0 -0.4665625 -0.3 -0.7665625 q-0.3 -0.3 -0.7665625 -0.3 ZM17.0665625 27.6665625 l0 -2.0665625 q0 -0.4665625 -0.3 -0.7665625 q-0.3 -0.3 -0.7665625 -0.3 q-0.4665625 0 -0.7665625 0.3 q-0.3 0.3 -0.3 0.7665625 l0 2.0665625 q-4.3 -0.4665625 -7.216875 -3.383125 q-2.916875 -2.916875 -3.3834375 -7.216875 l2.0665625 0 q0.4665625 0 0.7665625 -0.3 q0.3 -0.3 0.3 -0.7665625 q0 -0.4665625 -0.3 -0.7665625 q-0.3 -0.3 -0.7665625 -0.3 l-2.0665625 0 q0.4665625 -4.3 3.3834375 -7.216875 q2.9165625 -2.916875 7.216875 -3.3834375 l0 2.0665625 q0 0.4665625 0.3 0.7665625 q0.3 0.3 0.7665625 0.3 q0.4665625 0 0.7665625 -0.3 q0.3 -0.3 0.3 -0.7665625 l0 -2.0665625 q4.3 0.4665625 7.216875 3.3834375 q2.9165625 2.9165625 3.383125 7.216875 l-2.0665625 0 q-0.4665625 0 -0.7665625 0.3 q-0.3 0.3 -0.3 0.7665625 q0 0.4665625 0.3 0.7665625 q0.3 0.3 0.7665625 0.3 l2.0665625 0 q-0.4665625 4.3 -3.383125 7.216875 q-2.916875 2.9165625 -7.216875 3.383125 Z","#000000",24)],8,["onClick"])]},8,["latitude","longitude","markers","onRegionchange"]),Ir("div",{class:"info"},[Ir("div",{class:"name",onClick:()=>s(n.marker)},[e.name],8,["onClick"]),Ir("div",{class:"address",onClick:()=>s(n.marker)},[e.address],8,["onClick"]),Ir("div",{class:"nav",onClick:i},[iu("M28 17c-6.49396875 0-12.13721875 2.57040625-15 6.34840625V5.4105l6.29859375 6.29859375c0.387875 0.387875 1.02259375 0.387875 1.4105 0 0.387875-0.387875 0.387875-1.02259375 0-1.4105L12.77853125 2.36803125a0.9978125 0.9978125 0 0 0-0.0694375-0.077125c-0.1944375-0.1944375-0.45090625-0.291375-0.70721875-0.290875l-0.00184375-0.0000625-0.00184375 0.0000625c-0.2563125-0.0005-0.51278125 0.09640625-0.70721875 0.290875a0.9978125 0.9978125 0 0 0-0.0694375 0.077125l-7.930625 7.9305625c-0.387875 0.387875-0.387875 1.02259375 0 1.4105 0.387875 0.387875 1.02259375 0.387875 1.4105 0L11 5.4105V29c0 0.55 0.45 1 1 1s1-0.45 1-1c0-5.52284375 6.71571875-10 15-10 0.55228125 0 1-0.44771875 1-1 0-0.55228125-0.44771875-1-1-1z","#ffffff",26)],8,["onClick"])]),Ir("div",{class:"nav-btn-back",onClick:r},[iu(ou,"#ffffff",26)],8,["onClick"])])}});let zv=null;const Bv=Xd("openLocation",(e,{resolve:t})=>{zv?c(zv,e):(zv=bn(e),to(()=>{const e=xv(Rv,zv,()=>{zv=null,to(()=>{e.unmount()})});e.mount(Cv("u-a-o"))})),t()},0,Lf),Nv=Xd("navigateBack",(e,{resolve:t,reject:n})=>{let o=!0;return!0===hu(me,{from:e.from||"navigateBack"})&&(o=!1),o?(fm().$router.go(-e.delta),t()):n(me)},0,Uf),qv=Xd(Nf,({url:e,events:t,isAutomatedTesting:n},{resolve:o,reject:i})=>{if(Sp.handledBeforeEntryPageRoutes)return up({type:Nf,url:e,events:t,isAutomatedTesting:n}).then(o).catch(i);kp.push({args:{type:Nf,url:e,events:t,isAutomatedTesting:n},resolve:o,reject:i})},0,Vf);function jv(e){__uniConfig.darkmode&&Uy.on(le,e)}function Fv(e){Uy.off(le,e)}function Vv(e){let t={};return __uniConfig.darkmode&&(t=ct(e,__uniConfig.themeConfig,Km())),__uniConfig.darkmode?t:e}const Wv={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}},Hv=Ko({props:{title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"Cancel"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"OK"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean},editable:{type:Boolean,default:!1},placeholderText:{type:String,default:""}},setup(e,{emit:t}){const n=Dn(""),o=()=>s.value=!1,i=()=>(o(),t("close","cancel")),r=()=>(o(),t("close","confirm",n.value)),s=Sv(e,{onEsc:i,onEnter:()=>{!e.editable&&r()}}),a=function(e){const t=Dn(e.cancelColor),n=({theme:e})=>{((e,t)=>{t.value=Wv[e].cancelColor})(e,t)};return Po(()=>{e.visible?(t.value=e.cancelColor,"#000"===e.cancelColor&&("dark"===Km()&&n({theme:"dark"}),jv(n))):Fv(n)}),t}(e);return()=>{const{title:t,content:o,showCancel:l,confirmText:c,confirmColor:u,editable:d,placeholderText:f}=e;return n.value=o,Ir(fs,{name:"uni-fade"},{default:()=>[zo(Ir("uni-modal",{onTouchmove:Vc},[wv,Ir("div",{class:"uni-modal"},[t?Ir("div",{class:"uni-modal__hd"},[Ir("strong",{class:"uni-modal__title",textContent:t||""},null,8,["textContent"])]):null,d?Ir("textarea",{class:"uni-modal__textarea",rows:"1",placeholder:f,value:o,onInput:e=>n.value=e.target.value},null,40,["placeholder","value","onInput"]):Ir("div",{class:"uni-modal__bd",onTouchmovePassive:Wc,textContent:o},null,40,["onTouchmovePassive","textContent"]),Ir("div",{class:"uni-modal__ft"},[l&&Ir("div",{style:{color:a.value},class:"uni-modal__btn uni-modal__btn_default",onClick:i},[e.cancelText],12,["onClick"]),Ir("div",{style:{color:u},class:"uni-modal__btn uni-modal__btn_primary",onClick:r},[c],12,["onClick"])])])],40,["onTouchmove"]),[[Ts,s.value]])]})}}});let Uv;const Xv=Ie(()=>{Uy.on("onHidePopup",()=>Uv.visible=!1)});let Yv;function Gv(e,t){const n="confirm"===e,o={confirm:n,cancel:"cancel"===e};n&&Uv.editable&&(o.content=t),Yv&&Yv(o)}const Kv=Xd("showModal",(e,{resolve:t})=>{Xv(),Yv=t,Uv?(c(Uv,e),Uv.visible=!0):(Uv=bn(e),to(()=>(xv(Hv,Uv,Gv).mount(Cv("u-a-m")),to(()=>Uv.visible=!0))))},0,ep),Jv={title:{type:String,default:""},icon:{default:"success",validator:e=>-1!==tp.indexOf(e)},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean}},Qv="uni-toast__icon",Zv={light:"#fff",dark:"rgba(255,255,255,0.9)"},ey=e=>Zv[e],ty=Ko({name:"Toast",props:Jv,setup(e){lc(),cc();const{Icon:t}=function(e){const t=Dn(ey(Km())),n=({theme:e})=>t.value=ey(e);Po(()=>{e.visible?jv(n):Fv(n)});const o=os(()=>{switch(e.icon){case"success":return Ir(iu(tu,t.value,38),{class:Qv});case"error":return Ir(iu(nu,t.value,38),{class:Qv});case"loading":return Ir("i",{class:[Qv,"uni-loading"]},null,2);default:return null}});return{Icon:o}}(e),n=Sv(e,{});return()=>{const{mask:o,duration:i,title:r,image:s}=e;return Ir(fs,{name:"uni-fade"},{default:()=>[zo(Ir("uni-toast",{"data-duration":i},[o?Ir("div",{class:"uni-mask",style:"background: transparent;",onTouchmove:Vc},null,40,["onTouchmove"]):"",s||t.value?Ir("div",{class:"uni-toast"},[s?Ir("img",{src:s,class:Qv},null,10,["src"]):t.value,Ir("p",{class:"uni-toast__content"},[r])]):Ir("div",{class:"uni-sample-toast"},[Ir("p",{class:"uni-simple-toast__text"},[r])])],8,["data-duration"]),[[Ts,n.value]])]})}}});let ny,oy,iy="";const ry=pt();function sy(e){ny?c(ny,e):(ny=bn(c(e,{visible:!1})),to(()=>{ry.run(()=>{Oo([()=>ny.visible,()=>ny.duration],([e,t])=>{if(e){if(oy&&clearTimeout(oy),"onShowLoading"===iy)return;oy=setTimeout(()=>{dy("onHideToast")},t)}else oy&&clearTimeout(oy)})}),Uy.on("onHidePopup",()=>dy("onHidePopup")),xv(ty,ny,()=>{}).mount(Cv("u-a-t"))})),setTimeout(()=>{ny.visible=!0},10)}const ay=Xd("showToast",(e,{resolve:t,reject:n})=>{sy(e),iy="onShowToast",t()},0,np),ly={icon:"loading",duration:1e8,image:""},cy=Xd("showLoading",(e,{resolve:t,reject:n})=>{c(e,ly),sy(e),iy="onShowLoading",t()},0,Zf),uy=Xd("hideLoading",(e,{resolve:t,reject:n})=>{dy("onHideLoading"),t()});function dy(e){const{t:t}=ic();if(!iy)return;let n="";if("onHideToast"===e&&"onShowToast"!==iy?n=t("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==iy&&(n=t("uni.showLoading.unpaired")),n)return console.warn(n);iy="",setTimeout(()=>{ny.visible=!1},10)}const fy={light:{listItemColor:"#000000",cancelItemColor:"#000000"},dark:{listItemColor:"rgba(255, 255, 255, 0.8)",cancelItemColor:"rgba(255, 255, 255)"}};const py=Ko({name:"ActionSheet",props:{title:{type:String,default:""},itemList:{type:Array,default:()=>[]},itemColor:{type:String,default:"#000000"},popover:{type:Object,default:null},visible:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){ac();const n=Dn(260),o=Dn(0),i=Dn(0),r=Dn(0),s=Dn(0),a=Dn(null),l=Dn(null),{t:u}=ic(),{_close:d}=function(e,t){function n(e){t("close",e)}const{key:o,disable:i}=_v();return Oo(()=>e.visible,e=>i.value=!e),Po(()=>{const{value:e}=o;"esc"===e&&n&&n(-1)}),{_close:n}}(e,t),{popupStyle:f}=function(e){const t=Dn(0),n=Dn(0),o=os(()=>t.value>=500&&n.value>=500),i=os(()=>{const t={content:{transform:"",left:"",top:"",bottom:""},triangle:{left:"",top:"",bottom:"","border-width":"","border-color":""}},i=t.content,r=t.triangle,s=e.popover;function a(e){return Number(e)||0}if(o.value&&s){c(r,{position:"absolute",width:"0",height:"0","margin-left":"-6px","border-style":"solid"});const e=a(s.left),t=a(s.width?s.width:300),o=a(s.top),l=a(s.height),u=e+t/2;i.transform="none !important";const d=Math.max(0,u-t/2);i.left=`${d}px`,s.width&&(i.width=`${t}px`);let f=Math.max(12,u-d);f=Math.min(t-12,f),r.left=`${f}px`;const p=n.value/2;o+l-p>p-o?(i.top="auto",i.bottom=n.value-o+6+"px",r.bottom="-6px",r["border-width"]="6px 6px 0 6px",r["border-color"]="#fcfcfd transparent transparent transparent"):(i.top=`${o+l+6}px`,r.top="-6px",r["border-width"]="0 6px 6px 6px",r["border-color"]="transparent transparent #fcfcfd transparent")}return t});return mi(()=>{const e=()=>{const{windowWidth:e,windowHeight:o,windowTop:i}=iv();t.value=e,n.value=o+(i||0)};window.addEventListener("resize",e),e(),_i(()=>{window.removeEventListener("resize",e)})}),{isDesktop:o,popupStyle:i}}(e);let p;function h(e){const t=r.value+e.deltaY;Math.abs(t)>10?(s.value+=t/3,s.value=s.value>=o.value?o.value:s.value<=0?0:s.value,p.scrollTo(s.value)):r.value=t,e.preventDefault()}mi(()=>{const{scroller:e,handleTouchStart:t,handleTouchMove:n,handleTouchEnd:o}=function(e,t){const n={trackingID:-1,maxDy:0,maxDx:0},o=new Cg(e,t);function i(e){const t=e,o=e;return"move"===t.detail.state||"end"===t.detail.state?{x:t.detail.dx,y:t.detail.dy}:{x:o.screenX-n.x,y:o.screenY-n.y}}return{scroller:o,handleTouchStart:function(e){const t=e,i=e;"start"===t.detail.state?(n.trackingID="touch",n.x=t.detail.x,n.y=t.detail.y):(n.trackingID="mouse",n.x=i.screenX,n.y=i.screenY),n.maxDx=0,n.maxDy=0,n.historyX=[0],n.historyY=[0],n.historyTime=[t.detail.timeStamp||i.timeStamp],n.listener=o,o.onTouchStart&&o.onTouchStart(),("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault()},handleTouchMove:function(e){const t=e,o=e;if(-1!==n.trackingID){("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault();const r=i(e);if(r){for(n.maxDy=Math.max(n.maxDy,Math.abs(r.y)),n.maxDx=Math.max(n.maxDx,Math.abs(r.x)),n.historyX.push(r.x),n.historyY.push(r.y),n.historyTime.push(t.detail.timeStamp||o.timeStamp);n.historyTime.length>10;)n.historyTime.shift(),n.historyX.shift(),n.historyY.shift();n.listener&&n.listener.onTouchMove&&n.listener.onTouchMove(r.x,r.y)}}},handleTouchEnd:function(e){if(-1!==n.trackingID){e.preventDefault();const t=i(e);if(t){const e=n.listener;n.trackingID=-1,n.listener=null;const o={x:0,y:0};if(n.historyTime.length>2)for(let t=n.historyTime.length-1,i=n.historyTime[t],r=n.historyX[t],s=n.historyY[t];t>0;){t--;const e=i-n.historyTime[t];if(e>30&&e<50){o.x=(r-n.historyX[t])/(e/1e3),o.y=(s-n.historyY[t])/(e/1e3);break}}n.historyTime=[],n.historyX=[],n.historyY=[],e&&e.onTouchEnd&&e.onTouchEnd(t.x,t.y,o)}}}}}(a.value,{enableY:!0,friction:new yg(1e-4),spring:new wg(2,90,20),onScroll:e=>{s.value=e.target.scrollTop}});p=e,vg(a.value,i=>{if(e)switch(i.detail.state){case"start":t(i);break;case"move":n(i);break;case"end":case"cancel":o(i)}},!0)}),Oo(()=>e.visible,()=>{to(()=>{e.title&&(i.value=document.querySelector(".uni-actionsheet__title").offsetHeight),p.update(),a.value&&(o.value=a.value.clientHeight-n.value),document.querySelectorAll(".uni-actionsheet__cell").forEach(e=>{!function(e){const t=20;let n=0,o=0;e.addEventListener("touchstart",e=>{const t=e.changedTouches[0];n=t.clientX,o=t.clientY}),e.addEventListener("touchend",e=>{const i=e.changedTouches[0];if(Math.abs(i.clientX-n){o[e]=i[e]}),e.target.dispatchEvent(o)}})}(e)})})});const g=function(e){const t=bn({listItemColor:"#000",cancelItemColor:"#000"}),n=({theme:e})=>{!function(e,t){["listItemColor","cancelItemColor"].forEach(n=>{t[n]=fy[e][n]})}(e,t)};return Po(()=>{e.visible?(t.listItemColor=t.cancelItemColor=e.itemColor,"#000"===e.itemColor&&(n({theme:Km()}),jv(n))):Fv(n)}),t}(e);return()=>Ir("uni-actionsheet",{onTouchmove:Vc},[Ir(fs,{name:"uni-fade"},{default:()=>[zo(Ir("div",{class:"uni-mask uni-actionsheet__mask",onClick:()=>d(-1)},null,8,["onClick"]),[[Ts,e.visible]])]}),Ir("div",{class:["uni-actionsheet",{"uni-actionsheet_toggle":e.visible}],style:f.value.content},[Ir("div",{ref:l,class:"uni-actionsheet__menu",onWheel:h},[e.title?Ir(mr,null,[Ir("div",{class:"uni-actionsheet__cell",style:{height:`${i.value}px`}},null),Ir("div",{class:"uni-actionsheet__title"},[e.title])]):"",Ir("div",{style:{maxHeight:`${n.value}px`,overflow:"hidden"}},[Ir("div",{ref:a},[e.itemList.map((e,t)=>Ir("div",{key:t,style:{color:g.listItemColor},class:"uni-actionsheet__cell",onClick:()=>d(t)},[e],12,["onClick"]))],512)])],40,["onWheel"]),Ir("div",{class:"uni-actionsheet__action"},[Ir("div",{style:{color:g.cancelItemColor},class:"uni-actionsheet__cell",onClick:()=>d(-1)},[u("uni.showActionSheet.cancel")],12,["onClick"])]),Ir("div",{style:f.value.triangle},null,4)],6)],40,["onTouchmove"])}});let hy,gy,my;const vy=Ie(()=>{Uy.on("onHidePopup",()=>my.visible=!1)});function yy(e){-1===e?gy&&gy("cancel"):hy&&hy({tapIndex:e})}const by=Xd("showActionSheet",(e,{resolve:t,reject:n})=>{vy(),hy=t,gy=n,my?(c(my,e),my.visible=!0):(my=bn(e),to(()=>(xv(py,my,yy).mount(Cv("u-s-a-s")),to(()=>my.visible=!0))))},0,Qf),_y=Xd("loadFontFace",({family:e,source:t,desc:n},{resolve:o,reject:i})=>{(function(e,t,n){const o=document.fonts;if(o){const i=new FontFace(e,t,n);return i.load().then(()=>{o.add&&o.add(i)})}return new Promise(o=>{const i=document.createElement("style"),r=[];if(n){const{style:e,weight:t,stretch:o,unicodeRange:i,variant:s,featureSettings:a}=n;e&&r.push(`font-style:${e}`),t&&r.push(`font-weight:${t}`),o&&r.push(`font-stretch:${o}`),i&&r.push(`unicode-range:${i}`),s&&r.push(`font-variant:${s}`),a&&r.push(`font-feature-settings:${a}`)}i.innerText=`@font-face{font-family:"${e}";src:${t};${r.join(";")}}`,document.head.appendChild(i),o()})})(e,t=t.startsWith('url("')||t.startsWith("url('")?`url('${Xp(t.substring(5,t.length-2))}')`:t.startsWith("url(")?`url('${Xp(t.substring(4,t.length-1))}')`:Xp(t),n).then(()=>{o()}).catch(e=>{i(`loadFontFace:fail ${e}`)})});function wy(e){function t(){var t;t=e.navigationBar.titleText,document.title=t,Uy.emit("onNavigationBarChange",{titleText:t})}Po(t),ri(t)}const xy=Xd(op,(e,{resolve:t})=>{Uy.invokeViewMethod(op,{},cu()),t()}),Cy=Yu({name:"TabBar",setup(){const e=Dn([]),t=pp(),n=function(e,t){const n=Cn(e),o=n?bn(Vv(e)):Vv(e);return __uniConfig.darkmode&&n&&Oo(e,e=>{const t=Vv(e);for(const n in t)o[n]=t[n]}),t&&jv(t),o}(t,()=>{const e=Vv(t);n.backgroundColor=e.backgroundColor,n.borderStyle=e.borderStyle,n.color=e.color,n.selectedColor=e.selectedColor,n.blurEffect=e.blurEffect,n.midButton=e.midButton,e.list&&e.list.length&&e.list.forEach((e,t)=>{n.list[t].iconPath=e.iconPath,n.list[t].selectedIconPath=e.selectedIconPath})});!function(e,t){function n(){let n=[];n=e.list.filter(e=>!1!==e.visible),t.value=n}Dn(c({type:"midButton"},e.midButton)),Po(n)}(n,e),function(e){Oo(()=>e.shown,t=>{Gc({"--window-bottom":_p(t?parseInt(e.height):0)})})}(n);const o=function(e,t,n){return Po(()=>{const o=e.meta;if(o.isTabBar){const e=o.route,i=n.value.findIndex(t=>t.pagePath===e);t.selectedIndex=i}}),(t,n)=>{const{type:o}=t;return()=>{const{pagePath:o,text:i}=t;let r=$e(o);r===__uniRoutes[0].alias&&(r="/"),e.path!==r?ap({from:"tabBar",url:r,tabBarText:i}):hu("onTabItemTap",{index:n,text:i,pagePath:o})}}}(zl(),n,e),{style:i,borderStyle:r,placeholderStyle:s}=function(e){const t=os(()=>{let t=e.backgroundColor;const n=e.blurEffect;return t||vp&&n&&"none"!==n&&(t=Ay[n]),{backgroundColor:t||Sy,backdropFilter:"none"!==n?"blur(10px)":n}}),n=os(()=>{const{borderStyle:t,borderColor:n}=e;return n&&v(n)?{backgroundColor:n}:{backgroundColor:Ey[t]||Ey.black}}),o=os(()=>({height:e.height}));return{style:t,borderStyle:n,placeholderStyle:o}}(n);return mi(()=>{n.iconfontSrc&&_y({family:"UniTabbarIconFont",source:`url("${n.iconfontSrc}")`})}),()=>{const t=function(e,t,n){const{selectedIndex:o,selectedColor:i,color:r}=e;return n.value.map((n,s)=>{const a=o===s;return function(e,t,n,o,i,r,s,a){return Ir("div",{key:s,class:"uni-tabbar__item",onClick:a(i,s)},[My(e,t||"",n,o,i,r)],8,["onClick"])}(a?i:r,a&&n.selectedIconPath||n.iconPath||"",n.iconfont?a&&n.iconfont.selectedText||n.iconfont.text:void 0,n.iconfont?a&&n.iconfont.selectedColor||n.iconfont.color:void 0,n,e,s,t)})}(n,o,e);return Ir("uni-tabbar",{class:"uni-tabbar-"+n.position},[Ir("div",{class:"uni-tabbar",style:i.value},[Ir("div",{class:"uni-tabbar-border",style:r.value},null,4),t],4),Ir("div",{class:"uni-placeholder",style:s.value},null,4)],2)}}});const Sy="#f7f7fa",ky="rgb(0, 0, 0, 0.8)",Ty="rgb(250, 250, 250, 0.8)",Ay={dark:ky,light:Ty,extralight:Ty},Ey={white:"rgba(255, 255, 255, 0.33)",black:"rgba(0, 0, 0, 0.33)"};function My(e,t,n,o,i,r){const{height:s}=r;return Ir("div",{class:"uni-tabbar__bd",style:{height:s}},[n?Ly(n,o||ky,i,r):t&&Py(t,i,r),i.text&&Oy(e,i,r),i.redDot&&$y(i.badge)],4)}function Py(e,t,n){const{type:o,text:i}=t,{iconWidth:r}=n;return Ir("div",{class:"uni-tabbar__icon"+(i?" uni-tabbar__icon__diff":""),style:{width:r,height:r}},["midButton"!==o&&Ir("img",{src:Xp(e)},null,8,["src"])],6)}function Ly(e,t,n,o){var i;const{type:r,text:s}=n,{iconWidth:a}=o,l="uni-tabbar__icon"+(s?" uni-tabbar__icon__diff":""),c={width:a,height:a},u={fontSize:(null==(i=n.iconfont)?void 0:i.fontSize)||a,color:t};return Ir("div",{class:l,style:c},["midButton"!==r&&Ir("div",{class:"uni-tabbar__iconfont",style:u},[e],4)],6)}function Oy(e,t,n){const{iconPath:o,text:i}=t,{fontSize:r,spacing:s}=n;return Ir("div",{class:"uni-tabbar__label",style:{color:e,fontSize:r,lineHeight:o?"normal":1.8,marginTop:o?s:"inherit"}},[i],4)}function $y(e){return Ir("div",{class:"uni-tabbar__reddot"+(e?" uni-tabbar__badge":"")},[e],2)}const Iy="0px",Dy=Yu({name:"Layout",setup(e,{emit:t}){const n=Dn(null);Yc({"--status-bar-height":Iy,"--top-window-height":Iy,"--window-left":Iy,"--window-right":Iy,"--window-margin":Iy,"--tab-bar-height":Iy});const o=function(){const e=zl();return{routeKey:os(()=>Rp("/"+e.meta.route,cd())),isTabBar:os(()=>e.meta.isTabBar),routeCache:Bp}}(),{layoutState:i,windowState:r}=function(){ld();{const e=bn({marginWidth:0,leftWindowWidth:0,rightWindowWidth:0});return Oo(()=>e.marginWidth,e=>Yc({"--window-margin":e+"px"})),Oo(()=>e.leftWindowWidth+e.marginWidth,e=>{Yc({"--window-left":e+"px"})}),Oo(()=>e.rightWindowWidth+e.marginWidth,e=>{Yc({"--window-right":e+"px"})}),{layoutState:e,windowState:os(()=>({}))}}}();!function(e,t){const n=ld();function o(){const o=document.body.clientWidth,i=Lp();let r={};if(i.length>0){r=Cp(i[i.length-1]).meta}else{const e=_u(n.path,!0);e&&(r=e.meta)}const s=parseInt(String((f(r,"maxWidth")?r.maxWidth:__uniConfig.globalStyle.maxWidth)||Number.MAX_SAFE_INTEGER));let a=!1;a=o>s,a&&s?(e.marginWidth=(o-s)/2,to(()=>{const e=t.value;e&&e.setAttribute("style","max-width:"+s+"px;margin:0 auto;")})):(e.marginWidth=0,to(()=>{const e=t.value;e&&e.removeAttribute("style")}))}Oo([()=>n.path],o),mi(()=>{o(),window.addEventListener("resize",o)})}(i,n);const s=function(){const e=ld(),t=pp(),n=os(()=>e.meta.isTabBar&&t.shown);return Yc({"--tab-bar-height":t.height}),n}(),a=function(e){const t=Dn(!1);return os(()=>({"uni-app--showtabbar":e&&e.value,"uni-app--maxwidth":t.value}))}(s);return()=>{const e=function(e){const t=function({routeKey:e,isTabBar:t,routeCache:n}){return Ir(Dl,null,{default:vo(({Component:o})=>[(xr(),Ar(oi,{matchBy:"key",cache:n},[(xr(),Ar(ko(o),{type:t.value?"tabBar":"",key:e.value}))],1032,["cache"]))]),_:1})}(e);return t}(o),t=function(e){return zo(Ir(Cy,null,null,512),[[Ts,e.value]])}(s);return Ir("uni-app",{ref:n,class:a.value},[e,t],2)}}});const Ry="MAP_LOCATION",zy=Yu({name:"MapLocation",setup(){const e=bn({latitude:0,longitude:0,rotate:0});{let t=function(t){e.rotate=t.direction},n=function(){Dv({type:"gcj02",success:t=>{e.latitude=t.latitude,e.longitude=t.longitude},complete:()=>{r=setTimeout(n,3e4)}})},o=function(){r&&clearTimeout(r),av(t)};const i=Ki("onMapReady");let r;sv(t),i(n),_i(o);const s=Ki("addMapChidlContext"),a=Ki("removeMapChidlContext"),l={id:Ry,state:e};s(l),_i(()=>a(l))}return()=>e.latitude?Ir(Nm,jr({anchor:{x:.5,y:.5},width:"44",height:"44",iconPath:Om},e),null,16,["iconPath"]):null}}),By=Yu({name:"MapPolygon",props:{dashArray:{type:Array,default:()=>[0,0]},points:{type:Array,required:!0},strokeWidth:{type:Number,default:1},strokeColor:{type:String,default:"#000000"},fillColor:{type:String,default:"#00000000"},zIndex:{type:Number,default:0}},setup(e){let t;return Ki("onMapReady")((n,o,i)=>{function r(){const{points:i,strokeWidth:r,strokeColor:s,dashArray:a,fillColor:l,zIndex:c}=e,u=i.map(e=>{const{latitude:t,longitude:n}=e;return zm()?[n,t]:Bm()?new o.Point(n,t):new o.LatLng(t,n)}),{r:d,g:f,b:p,a:h}=qm(l),{r:g,g:m,b:v,a:y}=qm(s),b={clickable:!0,cursor:"crosshair",editable:!1,map:n,fillColor:"",path:u,strokeColor:"",strokeDashStyle:a.some(e=>e>0)?"dash":"solid",strokeWeight:r,visible:!0,zIndex:c};o.Color?(b.fillColor=new o.Color(d,f,p,h),b.strokeColor=new o.Color(g,m,v,y)):(b.fillColor=`rgb(${d}, ${f}, ${p})`,b.fillOpacity=h,b.strokeColor=`rgb(${g}, ${m}, ${v})`,b.strokeOpacity=y),t?t.setOptions(b):Bm()?(t=new o.Polygon(b.path,b),n.addOverlay(t)):t=new o.Polygon(b)}r(),Oo(e,r)}),_i(()=>{t.setMap(null)}),()=>null}});function Ny(e){const t=[];return p(e)&&e.forEach(e=>{e&&e.latitude&&e.longitude&&t.push({latitude:e.latitude,longitude:e.longitude})}),t}function qy(e,t,n){return Bm()?function(e,t,n){return new e.Point(n,t)}(e,t,n):zm()?function(e,t,n){return new e.LngLat(n,t)}(e,t,n):function(e,t,n){return new e.LatLng(t,n)}(e,t,n)}function jy(e){return"getLat"in e?e.getLat():Bm()?e.lat:e.lat()}function Fy(e){return"getLng"in e?e.getLng():Bm()?e.lng:e.lng()}function Vy(e,t,n){const o=Ku(t,n),i=Dn(null);let r,s;const a=bn({latitude:Number(e.latitude),longitude:Number(e.longitude),includePoints:Ny(e.includePoints)}),l=[];let u,d;function f(e){u?e(s,r,o):l.push(e)}const p=[];function h(e){d?e():l.push(e)}const g={};function m(){d=!0,p.forEach(e=>e()),p.length=0}function v(){const e=s.getCenter();return{scale:s.getZoom(),centerLocation:{latitude:jy(e),longitude:Fy(e)}}}function y(){if(zm()){const e=[];a.includePoints.forEach(t=>{e.push([t.longitude,t.latitude])});const t=new r.Bounds(...e);s.setBounds(t)}else if(Bm());else{const e=new r.LatLngBounds;a.includePoints.forEach(({latitude:t,longitude:n})=>{const o=new r.LatLng(t,n);e.extend(o)}),s.fitBounds(e)}}function b(){const t=i.value,l=qy(r,a.latitude,a.longitude),u=r.event||r.Event,d=new r.Map(t,{center:l,zoom:Number(e.scale),disableDoubleClickZoom:!0,mapTypeControl:!1,zoomControl:!1,scaleControl:!1,panControl:!1,fullscreenControl:!1,streetViewControl:!1,keyboardShortcuts:!1,minZoom:5,maxZoom:18,draggable:!0});if(Bm()&&(d.centerAndZoom(l,Number(e.scale)),d.enableScrollWheelZoom(),d._printLog&&d._printLog("uniapp")),Oo(()=>e.scale,e=>{d.setZoom(Number(e)||16)}),h(()=>{a.includePoints.length&&(y(),function(){const e=qy(r,a.latitude,a.longitude);s.setCenter(e)}())}),Bm())d.addEventListener("click",()=>{o("tap",{},{}),o("click",{},{})}),d.addEventListener("dragstart",()=>{o("regionchange",{},{type:"begin",causedBy:"gesture"})}),d.addEventListener("dragend",()=>{o("regionchange",{},c({type:"end",causedBy:"drag"},v()))});else{const e=u.addListener(d,"bounds_changed",()=>{e.remove(),m()});u.addListener(d,"complete",()=>{m()}),u.addListener(d,"click",()=>{o("tap",{},{}),o("click",{},{})}),u.addListener(d,"dragstart",()=>{o("regionchange",{},{type:"begin",causedBy:"gesture"})}),u.addListener(d,"dragend",()=>{o("regionchange",{},c({type:"end",causedBy:"drag"},v()))});const t=()=>{n("update:scale",d.getZoom()),o("regionchange",{},c({type:"end",causedBy:"scale"},v()))};u.addListener(d,"zoom_changed",t),u.addListener(d,"zoomend",t),u.addListener(d,"center_changed",()=>{const e=d.getCenter(),t=jy(e),o=Fy(e);n("update:latitude",t),n("update:longitude",o)})}return d}Oo([()=>e.latitude,()=>e.longitude],([e,t])=>{const n=Number(e),o=Number(t);if((n!==a.latitude||o!==a.longitude)&&(a.latitude=n,a.longitude=o,s)){const e=qy(r,a.latitude,a.longitude);s.setCenter(e)}}),Oo(()=>e.includePoints,e=>{a.includePoints=Ny(e),d&&y()},{deep:!0});try{Vg((e,t={})=>{switch(e){case"getCenterLocation":f(()=>{const n=s.getCenter();De(t,{latitude:jy(n),longitude:Fy(n),errMsg:`${e}:ok`})});break;case"moveToLocation":{let n=Number(t.latitude),o=Number(t.longitude);if(!n||!o){const e=g[Ry];e&&(n=e.state.latitude,o=e.state.longitude)}if(n&&o){if(a.latitude=n,a.longitude=o,s){const e=qy(r,n,o);s.setCenter(e)}f(()=>{De(t,`${e}:ok`)})}else De(t,`${e}:fail`)}break;case"translateMarker":f(()=>{const n=g[t.markerId];if(n){try{n.translate(t)}catch(o){De(t,`${e}:fail ${o.message}`)}De(t,`${e}:ok`)}else De(t,`${e}:fail not found`)});break;case"includePoints":a.includePoints=Ny(t.includePoints),(d||zm())&&y(),h(()=>{De(t,`${e}:ok`)});break;case"getRegion":h(()=>{const n=s.getBounds(),o=n.getSouthWest(),i=n.getNorthEast();De(t,{southwest:{latitude:jy(o),longitude:Fy(o)},northeast:{latitude:jy(i),longitude:Fy(i)},errMsg:`${e}:ok`})});break;case"getScale":f(()=>{De(t,{scale:s.getZoom(),errMsg:`${e}:ok`})})}},Hg(),!0)}catch(_){}return mi(()=>{Pm(e.libraries,e=>{r=e,s=b(),u=!0,l.forEach(e=>e(s,r,o)),l.length=0,o("updated",{},{})})}),Gi("onMapReady",f),Gi("addMapChidlContext",function(e){g[e.id]=e}),Gi("removeMapChidlContext",function(e){delete g[e.id]}),{state:a,mapRef:i,trigger:o}}const Wy=Xu({name:"Map",props:{id:{type:String,default:""},latitude:{type:[String,Number],default:0},longitude:{type:[String,Number],default:0},scale:{type:[String,Number],default:16},markers:{type:Array,default:()=>[]},includePoints:{type:Array,default:()=>[]},polyline:{type:Array,default:()=>[]},circles:{type:Array,default:()=>[]},controls:{type:Array,default:()=>[]},showLocation:{type:[Boolean,String],default:!1},libraries:{type:Array,default:()=>[]},polygons:{type:Array,default:()=>[]}},emits:["markertap","labeltap","callouttap","controltap","regionchange","tap","click","updated","update:scale","update:latitude","update:longitude"],setup(e,{emit:t,slots:n}){const o=Dn(null),{mapRef:i,trigger:r}=Vy(e,o,t);return()=>Ir("uni-map",{ref:o,id:e.id},[Ir("div",{ref:i,style:"width: 100%; height: 100%; position: relative; overflow: hidden"},null,512),e.markers.map(e=>Ir(Nm,jr({key:e.id},e),null,16)),e.polyline.map(e=>Ir(Fm,e,null,16)),e.circles.map(e=>Ir(Vm,e,null,16)),e.controls.map(e=>Ir(Hm,jr(e,{trigger:r}),null,16,["trigger"])),e.showLocation&&Ir(zy,null,null),e.polygons.map(e=>Ir(By,e,null,16)),Ir("div",{style:"position: absolute;top: 0;width: 100%;height: 100%;overflow: hidden;pointer-events: none;"},[n.default&&n.default()])],8,["id"])}}),Hy=c(xc,{publishHandler(e,t,n){Uy.subscribeHandler(e,t,n)}}),Uy=c(Iu,{publishHandler(e,t,n){Hy.subscribeHandler(e,t,n)}}),Xy={name:"PageRefresh",setup(){const{pullToRefresh:e}=sd();return{offset:e.offset,color:e.color}}},Yy=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},Gy={class:"uni-page-refresh-inner"},Ky=["fill"],Jy=[$r("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null,-1),$r("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1)],Qy={class:"uni-page-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},Zy=["stroke"];const eb=Yy(Xy,[["render",function(e,t,n,o,i,r){return xr(),Tr("uni-page-refresh",null,[$r("div",{style:je({"margin-top":o.offset+"px"}),class:"uni-page-refresh"},[$r("div",Gy,[(xr(),Tr("svg",{fill:o.color,class:"uni-page-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},Jy,8,Ky)),(xr(),Tr("svg",Qy,[$r("circle",{stroke:o.color,class:"uni-page-refresh__path",cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"},null,8,Zy)]))])],4)])}]]);function tb(e,t,n){const o=Array.prototype.slice.call(e.changedTouches).filter(e=>e.identifier===t)[0];return!!o&&(e.deltaY=o.pageY-n,!0)}const nb="pulling",ob="reached",ib="aborting",rb="refreshing",sb="restoring";function ab(e){const t=sd(),{id:n,pullToRefresh:o}=t,{range:i,height:r}=o;let s,a,l,c,u,d,f,p;Vg(()=>{t.enablePullDownRefresh&&(p||(p=rb,v(),setTimeout(()=>{x()},50)))},"startPullDownRefresh",!1,n),Vg(()=>{t.enablePullDownRefresh&&p===rb&&(y(),p=sb,v(),function(e){if(!a)return;l.transition="-webkit-transform 0.3s",l.transform+=" scale(0.01)";const t=function(){n&&clearTimeout(n),a.removeEventListener("webkitTransitionEnd",t),l.transition="",l.transform="translate3d(-50%, 0, 0)",e()};a.addEventListener("webkitTransitionEnd",t);const n=setTimeout(t,350)}(()=>{y(),p=h=g=null}))},op,!1,n),mi(()=>{s=e.value.$el,a=s.querySelector(".uni-page-refresh"),l=a.style,c=a.querySelector(".uni-page-refresh-inner").style});let h=null,g=null;function m(e){p&&s&&s.classList[e]("uni-page-refresh--"+p)}function v(){m("add")}function y(){m("remove")}const b=Gu(e=>{if(!t.enablePullDownRefresh)return;const n=e.changedTouches[0];u=n.identifier,d=n.pageY,f=!([ib,rb,sb].indexOf(p)>=0)}),_=Gu(e=>{if(!t.enablePullDownRefresh)return;if(!f)return;if(!tb(e,u,d))return;let{deltaY:n}=e;if(0!==(document.documentElement.scrollTop||document.body.scrollTop))return void(u=null);if(n<0&&!p)return;e.cancelable&&e.preventDefault(),null===h&&(g=n,p=nb,v()),n-=g,n<0&&(n=0),h=n;(n>=i&&p!==ob||n1?t=1:t*=t*t;const n=Math.round(e/(i/r))||0;c.transform="rotate("+360*t+"deg)",l.clip="rect("+(45-n)+"px,45px,45px,-5px)",l.transform="translate3d(-50%, "+n+"px, 0)"}(n)}),w=Gu(e=>{t.enablePullDownRefresh&&tb(e,u,d)&&null!==p&&(p===nb?(y(),p=ib,v(),function(e){if(!a)return;if(l.transform){l.transition="-webkit-transform 0.3s",l.transform="translate3d(-50%, 0, 0)";const t=function(){n&&clearTimeout(n),a.removeEventListener("webkitTransitionEnd",t),l.transition="",e()};a.addEventListener("webkitTransitionEnd",t);const n=setTimeout(t,350)}else e()}(()=>{y(),p=h=g=null})):p===ob&&(y(),p=rb,v(),x()))});function x(){a&&(l.transition="-webkit-transform 0.2s",l.transform="translate3d(-50%, "+r+"px, 0)",hu(n,_e))}return{onTouchstartPassive:b,onTouchmove:_,onTouchend:w,onTouchcancel:w}}const lb=Yu({name:"PageBody",setup(e,t){const n=sd(),o=Dn(null),i=Dn(null),r=n.enablePullDownRefresh?ab(o):null,s=Dn(null);return Oo(()=>n.enablePullDownRefresh,()=>{s.value=n.enablePullDownRefresh?r:null},{immediate:!0}),()=>{const e=function(e,t){if(!t.enablePullDownRefresh)return null;return Ir(eb,{ref:e},null,512)}(o,n);return Ir(mr,null,[e,Ir("uni-page-wrapper",jr({ref:i},s.value),[Ir("uni-page-body",null,[Ti(t.slots,"default")]),null],16)])}}});const cb=Yu({name:"Page",setup(e,t){let n=ad(cd());n.navigationBar;const o={};return wy(n),()=>Ir("uni-page",{"data-page":n.route,style:o},[ub(t),null])}});function ub(e){return xr(),Ar(lb,{key:0},{default:vo(()=>[Ti(e.slots,"page")]),_:3})}const db={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0};window.uni={},window.wx={},window.rpx2px=nf;const fb=Object.assign({}),pb=Object.assign;window.__uniConfig=pb({tabBar:{position:"bottom",color:"#86909c",selectedColor:"#16c2a9",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",list:[{pagePath:"pages/index/index",text:"首页",iconPath:"/static/tab/icon1.png",selectedIconPath:"/static/tab/icon1_cur.png"},{pagePath:"pages/map/index",text:"场馆",iconPath:"/static/tab/icon2.png",selectedIconPath:"/static/tab/icon2_cur.png"},{pagePath:"pages/activity/index",text:"活动",iconPath:"/static/tab/icon3.png",selectedIconPath:"/static/tab/icon3_cur.png"},{pagePath:"pages/mine/index",text:"我的",iconPath:"/static/tab/icon4.png",selectedIconPath:"/static/tab/icon4_cur.png"}],backgroundColor:"#ffffff",selectedIndex:0,shown:!0},globalStyle:{backgroundColor:"#f7f8fa",navigationBar:{backgroundColor:"#ffffff",titleText:"苏州科普",style:"custom",type:"default",titleColor:"#000000"},isNVue:!1},compilerVersion:"4.83"},{appId:"__UNI__SZKP_MAP_H5",appName:"szkp-map-h5",appVersion:"0.1.0",appVersionCode:"100",async:db,debug:!1,networkTimeout:{request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},sdkConfigs:{maps:{tencent:{key:"CRFBZ-NTART-YU4XX-LCDGK-3J456-VKBK2"}}},qqMapKey:"CRFBZ-NTART-YU4XX-LCDGK-3J456-VKBK2",bMapKey:void 0,googleMapKey:void 0,aMapKey:void 0,aMapSecurityJsCode:void 0,aMapServiceHost:void 0,nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:Object.keys(fb).reduce((e,t)=>{const n=t.replace(/\.\/locale\/(uni-app.)?(.*).json/,"$2");return pb(e[n]||(e[n]={}),fb[t].default),e},{}),router:{mode:"hash",base:"/h5/",assets:"assets",routerBase:"/h5/"},darkmode:!1,themeConfig:{}}),window.__uniLayout=window.__uniLayout||{};const hb={delay:db.delay,timeout:db.timeout,suspensible:db.suspensible};db.loading&&(hb.loadingComponent={name:"SystemAsyncLoading",render:()=>Ir(Co(db.loading))}),db.error&&(hb.errorComponent={name:"SystemAsyncError",props:["error"],render(){return Ir(Co(db.error),{error:this.error})}});const gb=()=>t(()=>import("./pages-index-index.DzVK5J0W.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])).then(e=>mm(e.default||e)),mb=Qo(pb({loader:gb},hb)),vb=()=>t(()=>import("./pages-map-index.i9LbiHIa.js"),__vite__mapDeps([8,9,1,2,4,6,10])).then(e=>mm(e.default||e)),yb=Qo(pb({loader:vb},hb)),bb=()=>t(()=>import("./pages-activity-index.Dfnqtgxv.js"),__vite__mapDeps([11,9,3,6,12])).then(e=>mm(e.default||e)),_b=Qo(pb({loader:bb},hb)),wb=()=>t(()=>import("./pages-discover-index.DBM0c0bu.js"),__vite__mapDeps([13,9,6,14])).then(e=>mm(e.default||e)),xb=Qo(pb({loader:wb},hb)),Cb=()=>t(()=>import("./pages-mine-index.CRh-LTcQ.js"),__vite__mapDeps([15,16,6,17])).then(e=>mm(e.default||e)),Sb=Qo(pb({loader:Cb},hb)),kb=()=>t(()=>import("./pages-mine-profile.b6h3Ij4U.js"),__vite__mapDeps([18,16,6,19])).then(e=>mm(e.default||e)),Tb=Qo(pb({loader:kb},hb)),Ab=()=>t(()=>import("./pages-mine-orders.Cu5JmB-z.js"),__vite__mapDeps([20,9,21,6,22])).then(e=>mm(e.default||e)),Eb=Qo(pb({loader:Ab},hb)),Mb=()=>t(()=>import("./pages-activity-detail.CwEPk-K-.js"),__vite__mapDeps([23,9,3,4,24,1,6,25])).then(e=>mm(e.default||e)),Pb=Qo(pb({loader:Mb},hb)),Lb=()=>t(()=>import("./pages-activity-reserve.CP8F64-R.js"),__vite__mapDeps([26,9,16,6,27])).then(e=>mm(e.default||e)),Ob=Qo(pb({loader:Lb},hb)),$b=()=>t(()=>import("./pages-mine-reservation-detail.DLaT6RY7.js"),__vite__mapDeps([28,9,21,6,29])).then(e=>mm(e.default||e)),Ib=Qo(pb({loader:$b},hb)),Db=()=>t(()=>import("./pages-study-tour-detail.Chs6SkSl.js"),__vite__mapDeps([30,9,5,6,31])).then(e=>mm(e.default||e)),Rb=Qo(pb({loader:Db},hb)),zb=()=>t(()=>import("./pages-venue-detail.dfYe-qzU.js"),__vite__mapDeps([32,9,4,24,6,33])).then(e=>mm(e.default||e)),Bb=Qo(pb({loader:zb},hb)),Nb=()=>t(()=>import("./pages-stats-index.BTYRuIUM.js"),__vite__mapDeps([34,6,35])).then(e=>mm(e.default||e)),qb=Qo(pb({loader:Nb},hb)),jb=()=>t(()=>import("./pages-traffic-index.D1ZYvI_4.js"),__vite__mapDeps([36,6,37])).then(e=>mm(e.default||e)),Fb=Qo(pb({loader:jb},hb));function Vb(e,t){return xr(),Ar(cb,null,{page:vo(()=>[Ir(e,pb({},t,{ref:"page"}),null,512)]),_:1})}window.__uniRoutes=[{path:"/",alias:"/pages/index/index",component:{setup(){const e=fm(),t=e&&e.$route&&e.$route.query||{};return()=>Vb(mb,t)}},loader:gb,meta:{isQuit:!0,isEntry:!0,isTabBar:!0,tabBarIndex:0,navigationBar:{titleText:"苏州科普",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/map/index",component:{setup(){const e=fm(),t=e&&e.$route&&e.$route.query||{};return()=>Vb(yb,t)}},loader:vb,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:1,navigationBar:{titleText:"场馆地图",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/activity/index",component:{setup(){const e=fm(),t=e&&e.$route&&e.$route.query||{};return()=>Vb(_b,t)}},loader:bb,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:2,enablePullDownRefresh:!0,backgroundColor:"#f3f3f3",navigationBar:{titleText:"活动",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/discover/index",component:{setup(){const e=fm(),t=e&&e.$route&&e.$route.query||{};return()=>Vb(xb,t)}},loader:wb,meta:{enablePullDownRefresh:!0,backgroundColor:"#f3f3f3",navigationBar:{titleText:"线路列表",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/mine/index",component:{setup(){const e=fm(),t=e&&e.$route&&e.$route.query||{};return()=>Vb(Sb,t)}},loader:Cb,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:3,navigationBar:{titleText:"我的",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/mine/profile",component:{setup(){const e=fm(),t=e&&e.$route&&e.$route.query||{};return()=>Vb(Tb,t)}},loader:kb,meta:{navigationBar:{titleText:"我的信息",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/mine/orders",component:{setup(){const e=fm(),t=e&&e.$route&&e.$route.query||{};return()=>Vb(Eb,t)}},loader:Ab,meta:{navigationBar:{titleText:"我的活动预约",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/activity/detail",component:{setup(){const e=fm(),t=e&&e.$route&&e.$route.query||{};return()=>Vb(Pb,t)}},loader:Mb,meta:{navigationBar:{titleText:"活动详情",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/activity/reserve",component:{setup(){const e=fm(),t=e&&e.$route&&e.$route.query||{};return()=>Vb(Ob,t)}},loader:Lb,meta:{navigationBar:{titleText:"预约报名",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/mine/reservation-detail",component:{setup(){const e=fm(),t=e&&e.$route&&e.$route.query||{};return()=>Vb(Ib,t)}},loader:$b,meta:{navigationBar:{titleText:"预约详情",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/study-tour/detail",component:{setup(){const e=fm(),t=e&&e.$route&&e.$route.query||{};return()=>Vb(Rb,t)}},loader:Db,meta:{navigationBar:{titleText:"研学线路",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/venue/detail",component:{setup(){const e=fm(),t=e&&e.$route&&e.$route.query||{};return()=>Vb(Bb,t)}},loader:zb,meta:{navigationBar:{titleText:"场馆详情",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/stats/index",component:{setup(){const e=fm(),t=e&&e.$route&&e.$route.query||{};return()=>Vb(qb,t)}},loader:Nb,meta:{navigationBar:{titleText:"活跃指数排行榜",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/traffic/index",component:{setup(){const e=fm(),t=e&&e.$route&&e.$route.query||{};return()=>Vb(Fb,t)}},loader:jb,meta:{navigationBar:{titleText:"客流统计",style:"custom",type:"default"},isNVue:!1}}].map(e=>(e.meta.route=(e.alias||e.path).slice(1),e + */(e);if(!o)return;const i=t._component;m(i)||i.render||i.template||(i.template=o.innerHTML),o.innerHTML="";const r=n(o,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t};const oa="undefined"!=typeof document;function ia(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}const ra=Object.assign;function sa(e,t){const n={};for(const o in t){const i=t[o];n[o]=la(i)?i.map(e):e(i)}return n}const aa=()=>{},la=Array.isArray,ca=/#/g,ua=/&/g,da=/\//g,fa=/=/g,pa=/\?/g,ha=/\+/g,ga=/%5B/g,ma=/%5D/g,va=/%5E/g,ya=/%60/g,ba=/%7B/g,_a=/%7C/g,wa=/%7D/g,xa=/%20/g;function Ca(e){return encodeURI(""+e).replace(_a,"|").replace(ga,"[").replace(ma,"]")}function Sa(e){return Ca(e).replace(ha,"%2B").replace(xa,"+").replace(ca,"%23").replace(ua,"%26").replace(ya,"`").replace(ba,"{").replace(wa,"}").replace(va,"^")}function ka(e){return Sa(e).replace(fa,"%3D")}function Ta(e){return null==e?"":function(e){return Ca(e).replace(ca,"%23").replace(pa,"%3F")}(e).replace(da,"%2F")}function Aa(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const Ea=/\/$/;function Ma(e,t,n="/"){let o,i={},r="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(o=t.slice(0,l),r=t.slice(l+1,a>-1?a:t.length),i=e(r)),a>-1&&(o=o||t.slice(0,a),s=t.slice(a,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),i=o[o.length-1];".."!==i&&"."!==i||o.push("");let r,s,a=n.length-1;for(r=0;r1&&a--}return n.slice(0,a).join("/")+"/"+o.slice(r).join("/")}(null!=o?o:t,n),{fullPath:o+(r&&"?")+r+s,path:o,query:i,hash:Aa(s)}}function Pa(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function La(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Oa(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!$a(e[n],t[n]))return!1;return!0}function $a(e,t){return la(e)?Ia(e,t):la(t)?Ia(t,e):e===t}function Ia(e,t){return la(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):1===e.length&&e[0]===t}const Da={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Ra,za,Ba,Na;function qa(e){if(!e)if(oa){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(Ea,"")}(za=Ra||(Ra={})).pop="pop",za.push="push",(Na=Ba||(Ba={})).back="back",Na.forward="forward",Na.unknown="";const ja=/^[^#]+#/;function Fa(e,t){return e.replace(ja,"#")+t}const Va=()=>({left:window.scrollX,top:window.scrollY});function Wa(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),i="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function Ha(e,t){return(history.state?history.state.position-t:-1)+e}const Ua=new Map;function Xa(e,t){const{pathname:n,search:o,hash:i}=t,r=e.indexOf("#");if(r>-1){let t=i.includes(e.slice(r))?e.slice(r).length:1,n=i.slice(t);return"/"!==n[0]&&(n="/"+n),Pa(n,"")}return Pa(n,e)+o+i}function Ya(e,t,n,o=!1,i=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:i?Va():null}}function Ga(e){const{history:t,location:n}=window,o={value:Xa(e,n)},i={value:t.state};function r(o,r,s){const a=e.indexOf("#"),l=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+o:location.protocol+"//"+location.host+e+o;try{t[s?"replaceState":"pushState"](r,"",l),i.value=r}catch(c){console.error(c),n[s?"replace":"assign"](l)}}return i.value||r(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:i,push:function(e,n){const s=ra({},i.value,t.state,{forward:e,scroll:Va()});r(s.current,s,!0),r(e,ra({},Ya(o.value,e,null),{position:s.position+1},n),!1),o.value=e},replace:function(e,n){r(e,ra({},t.state,Ya(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),o.value=e}}}function Ka(e){const t=Ga(e=qa(e)),n=function(e,t,n,o){let i=[],r=[],s=null;const a=({state:r})=>{const a=Xa(e,location),l=n.value,c=t.value;let u=0;if(r){if(n.value=a,t.value=r,s&&s===l)return void(s=null);u=c?r.position-c.position:0}else o(a);i.forEach(e=>{e(n.value,l,{delta:u,type:Ra.pop,direction:u?u>0?Ba.forward:Ba.back:Ba.unknown})})};function l(){const{history:e}=window;e.state&&e.replaceState(ra({},e.state,{scroll:Va()}),"")}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:function(){s=n.value},listen:function(e){i.push(e);const t=()=>{const t=i.indexOf(e);t>-1&&i.splice(t,1)};return r.push(t),t},destroy:function(){for(const e of r)e();r=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace);const o=ra({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:Fa.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Ja(e){return"string"==typeof e||"symbol"==typeof e}const Qa=Symbol("");var Za,el;function tl(e,t){return ra(new Error,{type:e,[Qa]:!0},t)}function nl(e,t){return e instanceof Error&&Qa in e&&(null==t||!!(e.type&t))}(el=Za||(Za={}))[el.aborted=4]="aborted",el[el.cancelled=8]="cancelled",el[el.duplicated=16]="duplicated";const ol="[^/]+?",il={sensitive:!1,strict:!1,start:!0,end:!0},rl=/[.+*?^${}()[\]/\\]/g;function sl(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function al(e,t){let n=0;const o=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const cl={type:0,value:""},ul=/[a-zA-Z0-9_]/;function dl(e,t,n){const o=function(e,t){const n=ra({},il,t),o=[];let i=n.start?"^":"";const r=[];for(const l of e){const e=l.length?[]:[90];n.strict&&!l.length&&(i+="/");for(let t=0;t1&&("*"===a||"+"===a)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:c,regexp:u,repeatable:"*"===a||"+"===a,optional:"*"===a||"?"===a})):t("Invalid state to consume buffer"),c="")}function f(){c+=a}for(;l{r(f)}:aa}function r(e){if(Ja(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(r),t.alias.forEach(r))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(r),e.alias.forEach(r))}}function s(e){const t=function(e,t){let n=0,o=t.length;for(;n!==o;){const i=n+o>>1;al(e,t[i])<0?o=i:n=i+1}const i=function(e){let t=e;for(;t=t.parent;)if(yl(t)&&0===al(e,t))return t;return}(e);i&&(o=t.lastIndexOf(i,o-1));return o}(e,n);n.splice(t,0,e),e.record.name&&!gl(e)&&o.set(e.record.name,e)}return t=vl({strict:!1,end:!0,sensitive:!1},t),e.forEach(e=>i(e)),{addRoute:i,resolve:function(e,t){let i,r,s,a={};if("name"in e&&e.name){if(i=o.get(e.name),!i)throw tl(1,{location:e});s=i.record.name,a=ra(pl(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&pl(e.params,i.keys.map(e=>e.name))),r=i.stringify(a)}else if(null!=e.path)r=e.path,i=n.find(e=>e.re.test(r)),i&&(a=i.parse(r),s=i.record.name);else{if(i=t.name?o.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw tl(1,{location:e,currentLocation:t});s=i.record.name,a=ra({},t.params,e.params),r=i.stringify(a)}const l=[];let c=i;for(;c;)l.unshift(c.record),c=c.parent;return{name:s,path:r,params:a,matched:l,meta:ml(l)}},removeRoute:r,clearRoutes:function(){n.length=0,o.clear()},getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}function pl(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function hl(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]="object"==typeof n?n[o]:n;return t}function gl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ml(e){return e.reduce((e,t)=>ra(e,t.meta),{})}function vl(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function yl({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function bl(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let o=0;oe&&Sa(e)):[o&&Sa(o)]).forEach(e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})}return t}function wl(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=la(o)?o.map(e=>null==e?null:""+e):null==o?o:""+o)}return t}const xl=Symbol(""),Cl=Symbol(""),Sl=Symbol(""),kl=Symbol(""),Tl=Symbol("");function Al(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function El(e,t,n,o,i,r=e=>e()){const s=o&&(o.enterCallbacks[i]=o.enterCallbacks[i]||[]);return()=>new Promise((a,l)=>{const c=e=>{var r;!1===e?l(tl(4,{from:n,to:t})):e instanceof Error?l(e):"string"==typeof(r=e)||r&&"object"==typeof r?l(tl(2,{from:t,to:e})):(s&&o.enterCallbacks[i]===s&&"function"==typeof e&&s.push(e),a())},u=r(()=>e.call(o&&o.instances[i],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(e=>l(e))})}function Ml(e,t,n,o,i=e=>e()){const r=[];for(const s of e)for(const e in s.components){let a=s.components[e];if("beforeRouteEnter"===t||s.instances[e])if(ia(a)){const l=(a.__vccOpts||a)[t];l&&r.push(El(l,n,o,s,e,i))}else{let l=a();r.push(()=>l.then(r=>{if(!r)throw new Error(`Couldn't resolve component "${e}" at "${s.path}"`);const a=(l=r).__esModule||"Module"===l[Symbol.toStringTag]||l.default&&ia(l.default)?r.default:r;var l;s.mods[e]=r,s.components[e]=a;const c=(a.__vccOpts||a)[t];return c&&El(c,n,o,s,e,i)()}))}}return r}function Pl(e){const t=Ki(Sl),n=Ki(kl),o=os(()=>{const n=Nn(e.to);return t.resolve(n)}),i=os(()=>{const{matched:e}=o.value,{length:t}=e,i=e[t-1],r=n.matched;if(!i||!r.length)return-1;const s=r.findIndex(La.bind(null,i));if(s>-1)return s;const a=Ol(e[t-2]);return t>1&&Ol(i)===a&&r[r.length-1].path!==a?r.findIndex(La.bind(null,e[t-2])):s}),r=os(()=>i.value>-1&&function(e,t){for(const n in t){const o=t[n],i=e[n];if("string"==typeof o){if(o!==i)return!1}else if(!la(i)||i.length!==o.length||o.some((e,t)=>e!==i[t]))return!1}return!0}(n.params,o.value.params)),s=os(()=>i.value>-1&&i.value===n.matched.length-1&&Oa(n.params,o.value.params));return{route:o,href:os(()=>o.value.href),isActive:r,isExactActive:s,navigate:function(n={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)?t[Nn(e.replace)?"replace":"push"](Nn(e.to)).catch(aa):Promise.resolve()}}}const Ll=Ko({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Pl,setup(e,{slots:t}){const n=bn(Pl(e)),{options:o}=Ki(Sl),i=os(()=>({[$l(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[$l(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:is("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}});function Ol(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const $l=(e,t,n)=>null!=e?e:null!=t?t:n;function Il(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Dl=Ko({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=Ki(Tl),i=os(()=>e.route||o.value),r=Ki(Cl,0),s=os(()=>{let e=Nn(r);const{matched:t}=i.value;let n;for(;(n=t[e])&&!n.components;)e++;return e}),a=os(()=>i.value.matched[s.value]);Gi(Cl,os(()=>s.value+1)),Gi(xl,a),Gi(Tl,i);const l=Dn();return Oo(()=>[l.value,a.value,e.name],([e,t,n],[o,i,r])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),!e||!t||i&&La(t,i)&&o||(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:"post"}),()=>{const o=i.value,r=e.name,s=a.value,c=s&&s.components[r];if(!c)return Il(n.default,{Component:c,route:o});const u=s.props[r],d=u?!0===u?o.params:"function"==typeof u?u(o):u:null,f=is(c,ra({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[r]=null)},ref:l}));return Il(n.default,{Component:f,route:o})||f}}});function Rl(e){const t=fl(e.routes,e),n=e.parseQuery||bl,o=e.stringifyQuery||_l,i=e.history,r=Al(),s=Al(),a=Al(),l=Rn(Da);let c=Da;oa&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=sa.bind(null,e=>""+e),d=sa.bind(null,Ta),f=sa.bind(null,Aa);function p(e,r){if(r=ra({},r||l.value),"string"==typeof e){const o=Ma(n,e,r.path),s=t.resolve({path:o.path},r),a=i.createHref(o.fullPath);return ra(o,s,{params:f(s.params),hash:Aa(o.hash),redirectedFrom:void 0,href:a})}let s;if(null!=e.path)s=ra({},e,{path:Ma(n,e.path,r.path).path});else{const t=ra({},e.params);for(const e in t)null==t[e]&&delete t[e];s=ra({},e,{params:d(t)}),r.params=d(r.params)}const a=t.resolve(s,r),c=e.hash||"";a.params=u(f(a.params));const p=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,ra({},e,{hash:(h=c,Ca(h).replace(ba,"{").replace(wa,"}").replace(va,"^")),path:a.path}));var h;const g=i.createHref(p);return ra({fullPath:p,hash:c,query:o===_l?wl(e.query):e.query||{}},a,{redirectedFrom:void 0,href:g})}function h(e){return"string"==typeof e?Ma(n,e,l.value.path):ra({},e)}function g(e,t){if(c!==e)return tl(8,{from:t,to:e})}function m(e){return y(e)}function v(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=h(o):{path:o},o.params={}),ra({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function y(e,t){const n=c=p(e),i=l.value,r=e.state,s=e.force,a=!0===e.replace,u=v(n);if(u)return y(ra(h(u),{state:"object"==typeof u?ra({},r,u.state):r,force:s,replace:a}),t||n);const d=n;let f;return d.redirectedFrom=t,!s&&function(e,t,n){const o=t.matched.length-1,i=n.matched.length-1;return o>-1&&o===i&&La(t.matched[o],n.matched[i])&&Oa(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,i,n)&&(f=tl(16,{to:d,from:i}),L(i,i,!0,!1)),(f?Promise.resolve(f):w(d,i)).catch(e=>nl(e)?nl(e,2)?e:P(e):M(e,d,i)).then(e=>{if(e){if(nl(e,2))return y(ra({replace:a},h(e.to),{state:"object"==typeof e.to?ra({},r,e.to.state):r,force:s}),t||d)}else e=C(d,i,!0,a,r);return x(d,i,e),e})}function b(e,t){const n=g(e,t);return n?Promise.reject(n):Promise.resolve()}function _(e){const t=I.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function w(e,t){let n;const[o,i,a]=function(e,t){const n=[],o=[],i=[],r=Math.max(t.matched.length,e.matched.length);for(let s=0;sLa(e,r))?o.push(r):n.push(r));const a=e.matched[s];a&&(t.matched.find(e=>La(e,a))||i.push(a))}return[n,o,i]}(e,t);n=Ml(o.reverse(),"beforeRouteLeave",e,t);for(const r of o)r.leaveGuards.forEach(o=>{n.push(El(o,e,t))});const l=b.bind(null,e,t);return n.push(l),R(n).then(()=>{n=[];for(const o of r.list())n.push(El(o,e,t));return n.push(l),R(n)}).then(()=>{n=Ml(i,"beforeRouteUpdate",e,t);for(const o of i)o.updateGuards.forEach(o=>{n.push(El(o,e,t))});return n.push(l),R(n)}).then(()=>{n=[];for(const o of a)if(o.beforeEnter)if(la(o.beforeEnter))for(const i of o.beforeEnter)n.push(El(i,e,t));else n.push(El(o.beforeEnter,e,t));return n.push(l),R(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Ml(a,"beforeRouteEnter",e,t,_),n.push(l),R(n))).then(()=>{n=[];for(const o of s.list())n.push(El(o,e,t));return n.push(l),R(n)}).catch(e=>nl(e,8)?e:Promise.reject(e))}function x(e,t,n){a.list().forEach(o=>_(()=>o(e,t,n)))}function C(e,t,n,o,r){const s=g(e,t);if(s)return s;const a=t===Da,c=oa?history.state:{};n&&(o||a?i.replace(e.fullPath,ra({scroll:a&&c&&c.scroll},r)):i.push(e.fullPath,r)),l.value=e,L(e,t,n,a),P()}let S;function k(){S||(S=i.listen((e,t,n)=>{if(!D.listening)return;const o=p(e),r=v(o);if(r)return void y(ra(r,{replace:!0}),o).catch(aa);c=o;const s=l.value;var a,u;oa&&(a=Ha(s.fullPath,n.delta),u=Va(),Ua.set(a,u)),w(o,s).catch(e=>nl(e,12)?e:nl(e,2)?(y(e.to,o).then(e=>{nl(e,20)&&!n.delta&&n.type===Ra.pop&&i.go(-1,!1)}).catch(aa),Promise.reject()):(n.delta&&i.go(-n.delta,!1),M(e,o,s))).then(e=>{(e=e||C(o,s,!1))&&(n.delta&&!nl(e,8)?i.go(-n.delta,!1):n.type===Ra.pop&&nl(e,20)&&i.go(-1,!1)),x(o,s,e)}).catch(aa)}))}let T,A=Al(),E=Al();function M(e,t,n){P(e);const o=E.list();return o.length?o.forEach(o=>o(e,t,n)):console.error(e),Promise.reject(e)}function P(e){return T||(T=!e,k(),A.list().forEach(([t,n])=>e?n(e):t()),A.reset()),e}function L(t,n,o,i){const{scrollBehavior:r}=e;if(!oa||!r)return Promise.resolve();const s=!o&&function(e){const t=Ua.get(e);return Ua.delete(e),t}(Ha(t.fullPath,0))||(i||!o)&&history.state&&history.state.scroll||null;return to().then(()=>r(t,n,s)).then(e=>e&&Wa(e)).catch(e=>M(e,t,n))}const O=e=>i.go(e);let $;const I=new Set,D={currentRoute:l,listening:!0,addRoute:function(e,n){let o,i;return Ja(e)?(o=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map(e=>e.record)},resolve:p,options:e,push:m,replace:function(e){return m(ra(h(e),{replace:!0}))},go:O,back:()=>O(-1),forward:()=>O(1),beforeEach:r.add,beforeResolve:s.add,afterEach:a.add,onError:E.add,isReady:function(){return T&&l.value!==Da?Promise.resolve():new Promise((e,t)=>{A.add([e,t])})},install(e){e.component("RouterLink",Ll),e.component("RouterView",Dl),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Nn(l)}),oa&&!$&&l.value===Da&&($=!0,m(i.location).catch(e=>{}));const t={};for(const o in Da)Object.defineProperty(t,o,{get:()=>l.value[o],enumerable:!0});e.provide(Sl,this),e.provide(kl,_n(t)),e.provide(Tl,l);const n=e.unmount;I.add(e),e.unmount=function(){I.delete(e),I.size<1&&(c=Da,S&&S(),S=null,l.value=Da,$=!1,T=!1),n()}}};function R(e){return e.reduce((e,t)=>e.then(()=>_(t)),Promise.resolve())}return D}function zl(e){return Ki(kl)}const Bl=["{","}"];const Nl=/^(?:\d)+/,ql=/^(?:\w)+/;const jl="zh-Hans",Fl="zh-Hant",Vl="en",Wl="fr",Hl="es",Ul=Object.prototype.hasOwnProperty,Xl=(e,t)=>Ul.call(e,t),Yl=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,n=Bl){if(!t)return[e];let o=this._caches[e];return o||(o=function(e,[t,n]){const o=[];let i=0,r="";for(;i-1?jl:e.indexOf("-hant")>-1?Fl:(n=e,["-tw","-hk","-mo","-cht"].find(e=>-1!==n.indexOf(e))?Fl:jl);var n;let o=[Vl,Wl,Hl];t&&Object.keys(t).length>0&&(o=Object.keys(t));const i=function(e,t){return t.find(t=>0===e.indexOf(t))}(e,o);return i||void 0}class Kl{constructor({locale:e,fallbackLocale:t,messages:n,watcher:o,formater:i}){this.locale=Vl,this.fallbackLocale=Vl,this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=i||Yl,this.messages=n||{},this.setLocale(e||Vl),o&&this.watchLocale(o)}setLocale(e){const t=this.locale;this.locale=Gl(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach(e=>{e(this.locale,t)})}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,n=!0){const o=this.messages[e];o?n?Object.assign(o,t):Object.keys(t).forEach(e=>{Xl(o,e)||(o[e]=t[e])}):this.messages[e]=t}f(e,t,n){return this.formater.interpolate(e,t,n).join("")}t(e,t,n){let o=this.message;return"string"==typeof t?(t=Gl(t,this.messages))&&(o=this.messages[t]):n=t,Xl(o,e)?this.formater.interpolate(o[e],n).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function Jl(e,t={},n,o){if("string"!=typeof e){const n=[t,e];e=n[0],t=n[1]}"string"!=typeof e&&(e="undefined"!=typeof uni&&Sf?Sf():"undefined"!=typeof global&&global.getLocale?global.getLocale():Vl),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||Vl);const i=new Kl({locale:e,fallbackLocale:n,messages:t,watcher:o});let r=(e,t)=>{{let e=!1;r=function(t,n){const o=fm().$vm;return o&&(o.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale(e=>{t.setLocale(e)}):e.$watch(()=>e.$locale,e=>{t.setLocale(e)})}(o,i))),i.t(t,n)}}return r(e,t)};return{i18n:i,f:(e,t,n)=>i.f(e,t,n),t:(e,t)=>r(e,t),add:(e,t,n=!0)=>i.add(e,t,n),watch:e=>i.watchLocale(e),getLocale:()=>i.getLocale(),setLocale:e=>i.setLocale(e)}}function Ql(e,t){return e.indexOf(t[0])>-1}const Zl=Ie(()=>"undefined"!=typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length);let ec;function tc(e){return Ql(e,te)?ic().f(e,function(){const e=Sf(),t=__uniConfig.locales;return t[e]||t[__uniConfig.fallbackLocale]||t.en||{}}(),te):e}function nc(e,t){if(1===t.length){if(e){const n=e=>v(e)&&Ql(e,te),o=t[0];let i=[];if(p(e)&&(i=e.filter(e=>n(e[o]))).length)return i;const r=e[t[0]];if(n(r))return e}return}const n=t.shift();return nc(e&&e[n],t)}function oc(e,t){const n=nc(e,t);if(!n)return!1;const o=t[t.length-1];if(p(n))n.forEach(e=>oc(e,[o]));else{let e=n[o];Object.defineProperty(n,o,{get:()=>tc(e),set(t){e=t}})}return!0}function ic(){if(!ec){let e;if(e=navigator.cookieEnabled&&window.localStorage&&localStorage.UNI_LOCALE||__uniConfig.locale||navigator.language,ec=Jl(e),Zl()){const t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach(e=>ec.add(e,__uniConfig.locales[e])),ec.setLocale(e)}}return ec}function rc(e,t,n){return t.reduce((t,o,i)=>(t[e+o]=n[i],t),{})}const sc=Ie(()=>{const e="uni.async.",t=["error"];ic().add(Vl,rc(e,t,["The connection timed out, click the screen to try again."]),!1),ic().add(Hl,rc(e,t,["Se agotó el tiempo de conexión, haga clic en la pantalla para volver a intentarlo."]),!1),ic().add(Wl,rc(e,t,["La connexion a expiré, cliquez sur l'écran pour réessayer."]),!1),ic().add(jl,rc(e,t,["连接服务器超时,点击屏幕重试"]),!1),ic().add(Fl,rc(e,t,["連接服務器超時,點擊屏幕重試"]),!1)}),ac=Ie(()=>{const e="uni.showActionSheet.",t=["cancel"];ic().add(Vl,rc(e,t,["Cancel"]),!1),ic().add(Hl,rc(e,t,["Cancelar"]),!1),ic().add(Wl,rc(e,t,["Annuler"]),!1),ic().add(jl,rc(e,t,["取消"]),!1),ic().add(Fl,rc(e,t,["取消"]),!1)}),lc=Ie(()=>{const e="uni.showToast.",t=["unpaired"];ic().add(Vl,rc(e,t,["Please note showToast must be paired with hideToast"]),!1),ic().add(Hl,rc(e,t,["Tenga en cuenta que showToast debe estar emparejado con hideToast"]),!1),ic().add(Wl,rc(e,t,["Veuillez noter que showToast doit être associé à hideToast"]),!1),ic().add(jl,rc(e,t,["请注意 showToast 与 hideToast 必须配对使用"]),!1),ic().add(Fl,rc(e,t,["請注意 showToast 與 hideToast 必須配對使用"]),!1)}),cc=Ie(()=>{const e="uni.showLoading.",t=["unpaired"];ic().add(Vl,rc(e,t,["Please note showLoading must be paired with hideLoading"]),!1),ic().add(Hl,rc(e,t,["Tenga en cuenta que showLoading debe estar emparejado con hideLoading"]),!1),ic().add(Wl,rc(e,t,["Veuillez noter que showLoading doit être associé à hideLoading"]),!1),ic().add(jl,rc(e,t,["请注意 showLoading 与 hideLoading 必须配对使用"]),!1),ic().add(Fl,rc(e,t,["請注意 showLoading 與 hideLoading 必須配對使用"]),!1)}),uc=Ie(()=>{const e="uni.showModal.",t=["cancel","confirm"];ic().add(Vl,rc(e,t,["Cancel","OK"]),!1),ic().add(Hl,rc(e,t,["Cancelar","OK"]),!1),ic().add(Wl,rc(e,t,["Annuler","OK"]),!1),ic().add(jl,rc(e,t,["取消","确定"]),!1),ic().add(Fl,rc(e,t,["取消","確定"]),!1)}),dc=Ie(()=>{const e="uni.chooseFile.",t=["notUserActivation"];ic().add(Vl,rc(e,t,["File chooser dialog can only be shown with a user activation"]),!1),ic().add(Hl,rc(e,t,["El cuadro de diálogo del selector de archivos solo se puede mostrar con la activación del usuario"]),!1),ic().add(Wl,rc(e,t,["La boîte de dialogue du sélecteur de fichier ne peut être affichée qu'avec une activation par l'utilisateur"]),!1),ic().add(jl,rc(e,t,["文件选择器对话框只能在由用户激活时显示"]),!1),ic().add(Fl,rc(e,t,["文件選擇器對話框只能在由用戶激活時顯示"]),!1)}),fc=Ie(()=>{const e="uni.setClipboardData.",t=["success","fail"];ic().add(Vl,rc(e,t,["Content copied","Copy failed, please copy manually"]),!1),ic().add(Hl,rc(e,t,["Contenido copiado","Error al copiar, copie manualmente"]),!1),ic().add(Wl,rc(e,t,["Contenu copié","Échec de la copie, copiez manuellement"]),!1),ic().add(jl,rc(e,t,["内容已复制","复制失败,请手动复制"]),!1),ic().add(Fl,rc(e,t,["內容已復制","復制失敗,請手動復製"]),!1)}),pc=Ie(()=>{const e="uni.video.",t=["danmu","volume"];ic().add(Vl,rc(e,t,["Danmu","Volume"]),!1),ic().add(Hl,rc(e,t,["Danmu","Volumen"]),!1),ic().add(Wl,rc(e,t,["Danmu","Le Volume"]),!1),ic().add(jl,rc(e,t,["弹幕","音量"]),!1),ic().add(Fl,rc(e,t,["彈幕","音量"]),!1)});function hc(e){const t=new st;return{on:(e,n)=>t.on(e,n),once:(e,n)=>t.once(e,n),off:(e,n)=>t.off(e,n),emit:(e,...n)=>t.emit(e,...n),subscribe(n,o,i=!1){t[i?"once":"on"](`${e}.${n}`,o)},unsubscribe(n,o){t.off(`${e}.${n}`,o)},subscribeHandler(n,o,i){t.emit(`${e}.${n}`,o,i)}}}const gc="invokeViewApi",mc="invokeServiceApi";let vc=1;const yc=Object.create(null);function bc(e,t){return e+"."+t}function _c(e,t,n){t=bc(e,t),yc[t]||(yc[t]=n)}function wc({id:e,name:t,args:n},o){t=bc(o,t);const i=t=>{e&&Hy.publishHandler(gc+"."+e,t)},r=yc[t];r?r(n,i):i({})}const xc=c(hc("service"),{invokeServiceMethod:(e,t,n)=>{const{subscribe:o,publishHandler:i}=Hy,r=n?vc++:0;n&&o(mc+"."+r,n,!0),i(mc,{id:r,name:e,args:t})}}),Cc=Xe(!0);let Sc;function kc(){Sc&&(clearTimeout(Sc),Sc=null)}let Tc=0,Ac=0;function Ec(e){if(kc(),1!==e.touches.length)return;const{pageX:t,pageY:n}=e.touches[0];Tc=t,Ac=n,Sc=setTimeout(function(){const t=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});t.touches=e.touches,t.changedTouches=e.changedTouches,e.target.dispatchEvent(t)},350)}function Mc(e){if(!Sc)return;if(1!==e.touches.length)return kc();const{pageX:t,pageY:n}=e.touches[0];return Math.abs(t-Tc)>10||Math.abs(n-Ac)>10?kc():void 0}function Pc(e,t){const n=Number(e);return isNaN(n)?t:n}function Lc(){const e=__uniConfig.globalStyle||{},t=Pc(e.rpxCalcMaxDeviceWidth,960),n=Pc(e.rpxCalcBaseDeviceWidth,375);function o(){let e=function(){const e=/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation,t=e&&90===Math.abs(window.orientation);var n=e?Math[t?"max":"min"](screen.width,screen.height):screen.width;return Math.min(window.innerWidth,document.documentElement.clientWidth,n)||n}();e=e<=t?e:n,document.documentElement.style.fontSize=e/23.4375+"px"}o(),document.addEventListener("DOMContentLoaded",o),window.addEventListener("load",o),window.addEventListener("resize",o)}function Oc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $c,Ic,Dc=["top","left","right","bottom"],Rc={};function zc(){return Ic="CSS"in window&&"function"==typeof CSS.supports?CSS.supports("top: env(safe-area-inset-top)")?"env":CSS.supports("top: constant(safe-area-inset-top)")?"constant":"":""}function Bc(){if(Ic="string"==typeof Ic?Ic:zc()){var e=[],t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("test",null,n)}catch(a){}var o=document.createElement("div");i(o,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),Dc.forEach(function(e){s(o,e)}),document.body.appendChild(o),r(),$c=!0}else Dc.forEach(function(e){Rc[e]=0});function i(e,t){var n=e.style;Object.keys(t).forEach(function(e){var o=t[e];n[e]=o})}function r(t){t?e.push(t):e.forEach(function(e){e()})}function s(e,n){var o=document.createElement("div"),s=document.createElement("div"),a=document.createElement("div"),l=document.createElement("div"),c={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:Ic+"(safe-area-inset-"+n+")"};i(o,c),i(s,c),i(a,{transition:"0s",animation:"none",width:"400px",height:"400px"}),i(l,{transition:"0s",animation:"none",width:"250%",height:"250%"}),o.appendChild(a),s.appendChild(l),e.appendChild(o),e.appendChild(s),r(function(){o.scrollTop=s.scrollTop=1e4;var e=o.scrollTop,i=s.scrollTop;function r(){this.scrollTop!==(this===o?e:i)&&(o.scrollTop=s.scrollTop=1e4,e=o.scrollTop,i=s.scrollTop,function(e){qc.length||setTimeout(function(){var e={};qc.forEach(function(t){e[t]=Rc[t]}),qc.length=0,jc.forEach(function(t){t(e)})},0);qc.push(e)}(n))}o.addEventListener("scroll",r,t),s.addEventListener("scroll",r,t)});var u=getComputedStyle(o);Object.defineProperty(Rc,n,{configurable:!0,get:function(){return parseFloat(u.paddingBottom)}})}}function Nc(e){return $c||Bc(),Rc[e]}var qc=[];var jc=[];const Fc=Oc({get support(){return 0!=("string"==typeof Ic?Ic:zc()).length},get top(){return Nc("top")},get left(){return Nc("left")},get right(){return Nc("right")},get bottom(){return Nc("bottom")},onChange:function(e){zc()&&($c||Bc(),"function"==typeof e&&jc.push(e))},offChange:function(e){var t=jc.indexOf(e);t>=0&&jc.splice(t,1)}}),Vc=Zs(()=>{},["prevent"]),Wc=Zs(e=>{},["stop"]);function Hc(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function Uc(){const e=Hc(document.documentElement.style,"--window-top");return e?e+Fc.top:0}function Xc(){const e=document.documentElement.style,t=Uc(),n=Hc(e,"--window-bottom"),o=Hc(e,"--window-left"),i=Hc(e,"--window-right"),r=Hc(e,"--top-window-height");return{top:t,bottom:n?n+Fc.bottom:0,left:o?o+Fc.left:0,right:i?i+Fc.right:0,topWindowHeight:r||0}}function Yc(e){const t=document.documentElement.style;Object.keys(e).forEach(n=>{t.setProperty(n,e[n])})}function Gc(e){return Yc(e)}function Kc(e){return Symbol(e)}function Jc(e){return-1!==(e+="").indexOf("rpx")||-1!==e.indexOf("upx")}function Qc(e,t=!1){if(t)return function(e){if(!Jc(e))return e;return e.replace(/(\d+(\.\d+)?)[ru]px/g,(e,t)=>nf(parseFloat(t))+"px")}(e);if(v(e)){const t=parseInt(e)||0;return Jc(e)?nf(t):t}return e}function Zc(e){return e.$page}function eu(e){return 0===e.tagName.indexOf("UNI-")}const tu="M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z",nu="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z",ou="M21.781 7.844l-9.063 8.594 9.063 8.594q0.25 0.25 0.25 0.609t-0.25 0.578q-0.25 0.25-0.578 0.25t-0.578-0.25l-9.625-9.125q-0.156-0.125-0.203-0.297t-0.047-0.359q0-0.156 0.047-0.328t0.203-0.297l9.625-9.125q0.25-0.25 0.578-0.25t0.578 0.25q0.25 0.219 0.25 0.578t-0.25 0.578z";function iu(e,t="#000",n=27){return Ir("svg",{width:n,height:n,viewBox:"0 0 32 32"},[Ir("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function ru(){{const{$pageInstance:e}=Ur();return e&&pu(e.proxy)}}function su(e){const t=Be(e);if(t.$page)return pu(t);if(!t.$)return;{const{$pageInstance:e}=t.$;if(e)return pu(e.proxy)}const n=t.$.root.proxy;return n&&n.$page?pu(n):void 0}function au(){const e=Pp(),t=e.length;if(t)return e[t-1]}function lu(){var e;const t=null==(e=au())?void 0:e.$page;if(t)return t.meta}function cu(){const e=lu();return e?e.id:-1}function uu(){const e=au();if(e)return e.$vm}const du=["navigationBar","pullToRefresh"];function fu(e,t){const n=JSON.parse(JSON.stringify(__uniConfig.globalStyle||{})),o=c({id:t},n,e);du.forEach(t=>{o[t]=c({},n[t],e[t])});const{navigationBar:i}=o;return i.titleText&&i.titleImage&&(i.titleText=""),o}function pu(e){var t,n;return(null==(t=e.$page)?void 0:t.id)||(null==(n=e.$basePage)?void 0:n.id)}function hu(e,t,n){if(v(e))n=t,t=e,e=uu();else if("number"==typeof e){const t=Pp().find(t=>Zc(t).id===e);e=t?t.$vm:uu()}if(!e)return;const o=e.$[t];return o&&((e,t)=>{let n;for(let o=0;o{function s(){if((()=>{const{scrollHeight:e}=document.documentElement,t=window.innerHeight,o=window.scrollY,r=o>0&&e>t&&o+t+n>=e,s=Math.abs(e-vu)>n;return!r||i&&!s?(!r&&i&&(i=!1),!1):(vu=e,i=!0,!0)})())return t&&t(),r=!1,setTimeout(function(){r=!0},350),!0}e&&e(window.pageYOffset),t&&r&&(s()||(mu=setTimeout(s,300))),o=!1};return function(){clearTimeout(mu),o||requestAnimationFrame(s),o=!0}}function bu(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return bu(e,t.slice(2));const n=t.split("/"),o=n.length;let i=0;for(;i0?e.split("/"):[];return r.splice(r.length-i-1,i+1),$e(r.concat(n).join("/"))}function _u(e,t=!1){return t?__uniRoutes.find(t=>t.path===e||t.alias===e):__uniRoutes.find(t=>t.path===e)}function wu(){Lc(),We(eu),window.addEventListener("touchstart",Ec,Cc),window.addEventListener("touchmove",Mc,Cc),window.addEventListener("touchend",kc,Cc),window.addEventListener("touchcancel",kc,Cc)}class xu{constructor(e){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=e,this.$el=function(e,t=!1){const{vnode:n}=e;if(qe(n.el))return t?n.el?[n.el]:[]:n.el;const{subTree:o}=e;if(16&o.shapeFlag){const e=o.children.filter(e=>e.el&&qe(e.el));if(e.length>0)return t?e.map(e=>e.el):e[0].el}return t?n.el?[n.el]:[]:n.el}(e.$),this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(e){if(!this.$el||!e)return;const t=Tu(this.$el.querySelector(e));return t?Cu(t,!1):void 0}selectAllComponents(e){if(!this.$el||!e)return[];const t=[],n=this.$el.querySelectorAll(e);for(let o=0;o-1&&t.splice(n,1)}const n=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return-1===n.indexOf(e)&&(n.push(e),this.forceUpdate("class")),this}hasClass(e){return this.$el&&this.$el.classList.contains(e)}getDataset(){return this.$el&&this.$el.dataset}callMethod(e,t={}){const n=this.$vm[e];m(n)?n(JSON.parse(JSON.stringify(t))):this.$vm.ownerId&&Hy.publishHandler("onWxsInvokeCallMethod",{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:e,args:t})}requestAnimationFrame(e){return window.requestAnimationFrame(e)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(e,t={}){return this.$vm.$emit(e,t),this}getComputedStyle(e){if(this.$el){const t=window.getComputedStyle(this.$el);return e&&e.length?e.reduce((e,n)=>(e[n]=t[n],e),{}):t}return{}}setTimeout(e,t){return window.setTimeout(e,t)}clearTimeout(e){return window.clearTimeout(e)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function Cu(e,t=!0){if(t&&e&&(e=Ne(e.$)),e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new xu(e)),e.$el.__wxsComponentDescriptor}function Su(e,t){return Cu(e,t)}function ku(e,t,n,o=!0){if(t){e.__instance||(e.__instance=!0,Object.defineProperty(e,"instance",{get:()=>Su(n.proxy,!1)}));const i=function(e,t,n=!0){if(!t)return!1;if(n&&e.length<2)return!1;const o=Ne(t);if(!o)return!1;const i=o.$.type;return!(!i.$wxs&&!i.$renderjs)&&o}(t,n,o);if(i)return[e,Su(i,!1)]}}function Tu(e){if(e)return e.__vueParentComponent&&e.__vueParentComponent.proxy}function Au(e,t=!1){const{type:n,timeStamp:o,target:i,currentTarget:r}=e;let s,a;s=Ye(t?i:function(e){for(;!eu(e);)e=e.parentElement;return e}(i)),a=Ye(r);const l={type:n,timeStamp:o,target:s,detail:{},currentTarget:a};return e instanceof CustomEvent&&C(e.detail)&&(l.detail=e.detail),e._stopped&&(l._stopped=!0),e.type.startsWith("touch")&&(l.touches=e.touches,l.changedTouches=e.changedTouches),function(e,t){c(e,{preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()})}(l,e),l}function Eu(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function Mu(e,t){const n=[];for(let o=0;o0===e.type.indexOf("mouse")||["contextmenu"].includes(e.type))(e))!function(e,t){const n=Uc();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[Eu(t,n)]}(r,e);else if((e=>"undefined"!=typeof TouchEvent&&e instanceof TouchEvent||0===e.type.indexOf("touch")||["longpress"].indexOf(e.type)>=0)(e)){const t=Uc();r.touches=Mu(e.touches,t),r.changedTouches=Mu(e.changedTouches,t)}else if((e=>!e.type.indexOf("key")&&e instanceof KeyboardEvent)(e)){["key","code"].forEach(t=>{Object.defineProperty(r,t,{get:()=>e[t]})})}return ku(r,t,n)||[r]},createNativeEvent:Au},Symbol.toStringTag,{value:"Module"});function Lu(e){!function(e){const t=e.globalProperties;c(t,Pu),t.$gcd=Su}(e._context.config)}let Ou=1;function $u(e){return(e||cu())+"."+gc}const Iu=c(hc("view"),{invokeOnCallback:(e,t)=>Uy.emit("api."+e,t),invokeViewMethod:(e,t,n,o)=>{const{subscribe:i,publishHandler:r}=Uy,s=o?Ou++:0;o&&i(gc+"."+s,o,!0),r($u(n),{id:s,name:e,args:t},n)},invokeViewMethodKeepAlive:(e,t,n,o)=>{const{subscribe:i,unsubscribe:r,publishHandler:s}=Uy,a=Ou++,l=gc+"."+a;return i(l,n),s($u(o),{id:a,name:e,args:t},o),()=>{r(l)}}});function Du(e){hu(au(),ge,e),Uy.invokeOnCallback("onWindowResize",e)}function Ru(e){const t=au();hu(fm(),ie,e),hu(t,ie)}function zu(){hu(fm(),re),hu(au(),re)}const Bu=[ve,be];function Nu(){Bu.forEach(e=>Uy.subscribe(e,function(e){return(t,n)=>{hu(parseInt(n),e,t)}}(e)))}function qu(){!function(){const{on:e}=Uy;e(ge,Du),e(Pe,Ru),e(Le,zu)}(),Nu()}function ju(){if(this.$route){const e=this.$route.meta;return e.eventChannel||(e.eventChannel=new et(this.$page.id)),e.eventChannel}}function Fu(e){e._context.config.globalProperties.getOpenerEventChannel=ju}function Vu(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}function Wu(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,(e,t)=>`${nf(parseFloat(t))}px`):/^-?[\d\.]+$/.test(e)?`${e}px`:e||""}function Hu(e){const t=e.animation;if(!t||!t.actions||!t.actions.length)return;let n=0;const o=t.actions,i=t.actions.length;function r(){const t=o[n],s=t.option.transition,a=function(e){const t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],n=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],o=["opacity","background-color"],i=["width","height","left","right","top","bottom"],r=e.animates,s=e.option,a=s.transition,l={},c=[];return r.forEach(e=>{let r=e.type,s=[...e.args];if(t.concat(n).includes(r))r.startsWith("rotate")||r.startsWith("skew")?s=s.map(e=>parseFloat(e)+"deg"):r.startsWith("translate")&&(s=s.map(Wu)),n.indexOf(r)>=0&&(s.length=1),c.push(`${r}(${s.join(",")})`);else if(o.concat(i).includes(s[0])){r=s[0];const e=s[1];l[r]=i.includes(r)?Wu(e):e}}),l.transform=l.webkitTransform=c.join(" "),l.transition=l.webkitTransition=Object.keys(l).map(e=>`${function(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`).replace("webkit","-webkit")}(e)} ${a.duration}ms ${a.timingFunction} ${a.delay}ms`).join(","),l.transformOrigin=l.webkitTransformOrigin=s.transformOrigin,l}(t);Object.keys(a).forEach(t=>{e.$el.style[t]=a[t]}),n+=1,n{r()},0)}const Uu={props:["animation"],watch:{animation:{deep:!0,handler(){Hu(this)}}},mounted(){Hu(this)}},Xu=e=>{e.__reserved=!0;const{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(Uu),Yu(e)},Yu=e=>(e.__reserved=!0,e.compatConfig={MODE:3},Ko(e));function Gu(e){return e.__wwe=!0,e}function Ku(e,t){return(n,o,i)=>{e.value&&t(n,function(e,t,n,o){let i;return i=Ye(n),{type:t.__evName||o.type||e,timeStamp:t.timeStamp||0,target:i,currentTarget:i,detail:o}}(n,o,e.value,i||{}))}}const Ju={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function Qu(e){const t=Dn(!1);let n,o,i=!1;function r(){requestAnimationFrame(()=>{clearTimeout(o),o=setTimeout(()=>{t.value=!1},parseInt(e.hoverStayTime))})}function s(o){o._hoverPropagationStopped||e.hoverClass&&"none"!==e.hoverClass&&!e.disabled&&(e.hoverStopPropagation&&(o._hoverPropagationStopped=!0),i=!0,n=setTimeout(()=>{t.value=!0,i||r()},parseInt(e.hoverStartTime)))}function a(){i=!1,t.value&&r()}function l(){a(),window.removeEventListener("mouseup",l)}return{hovering:t,binding:{onTouchstartPassive:Gu(function(e){e.touches.length>1||s(e)}),onMousedown:Gu(function(e){i||(s(e),window.addEventListener("mouseup",l))}),onTouchend:Gu(function(){a()}),onMouseup:Gu(function(){i&&l()}),onTouchcancel:Gu(function(){i=!1,t.value=!1,clearTimeout(n)})}}}function Zu(e,t){return v(t)&&(t=[t]),t.reduce((t,n)=>(e[n]&&(t[n]=!0),t),Object.create(null))}const ed=Kc("uf"),td=Kc("ul");function nd(e,t,n){const o=ru();n&&!e||C(t)&&Object.keys(t).forEach(i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&Hy.on(`uni-${i}-${o}-${e}`,t[i]):0===i.indexOf("uni-")?Hy.on(i,t[i]):e&&Hy.on(`uni-${i}-${o}-${e}`,t[i])})}function od(e,t,n){const o=ru();n&&!e||C(t)&&Object.keys(t).forEach(i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&Hy.off(`uni-${i}-${o}-${e}`,t[i]):0===i.indexOf("uni-")?Hy.off(i,t[i]):e&&Hy.off(`uni-${i}-${o}-${e}`,t[i])})}const id=Xu({name:"Button",props:{id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1},plain:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=Dn(null),o=Ki(ed,!1),{hovering:i,binding:r}=Qu(e),s=Gu((t,i)=>{if(e.disabled)return t.stopImmediatePropagation();i&&n.value.click();const r=e.formType;if(r){if(!o)return;"submit"===r?o.submit(t):"reset"===r&&o.reset(t)}else;}),a=Ki(td,!1);return a&&(a.addHandler(s),bi(()=>{a.removeHandler(s)})),function(e,t){nd(e.id,t),Oo(()=>e.id,(e,n)=>{od(n,t,!0),nd(e,t,!0)}),_i(()=>{od(e.id,t)})}(e,{"label-click":s}),()=>{const o=e.hoverClass,a=Zu(e,"disabled"),l=Zu(e,"loading"),c=Zu(e,"plain"),u=o&&"none"!==o;return Ir("uni-button",jr({ref:n,onClick:s,id:e.id,class:u&&i.value?o:""},u&&r,a,l,c),[t.default&&t.default()],16,["onClick","id"])}}}),rd=Kc("upm");function sd(){return Ki(rd)}function ad(e){const t=function(e){return bn(function(e){{const{enablePullDownRefresh:t,navigationBar:n}=e;if(t){const t=function(e){return e.offset&&(e.offset=Qc(e.offset)),e.height&&(e.height=Qc(e.height)),e.range&&(e.range=Qc(e.range)),e}(c({support:!0,color:"#2BD009",style:"circle",height:70,range:150,offset:0},e.pullToRefresh)),{type:o,style:i}=n;"custom"!==i&&"transparent"!==o&&(t.offset+=44+Fc.top),e.pullToRefresh=t}}if(history.state){const t=history.state.__type__;"redirectTo"!==t&&"reLaunch"!==t||0!==Pp().length||(e.isEntry=!0,e.isQuit=!0)}return e}(JSON.parse(JSON.stringify(fu(zl().meta,e)))))}(e);return Gi(rd,t),t}function ld(){return zl()}function cd(){return history.state&&history.state.__id__||1}const ud=["original","compressed"],dd=["album","camera"],fd=["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"];function pd(e,t){return e&&-1!==t.indexOf(e)?e:t[0]}function hd(e,t){return!p(e)||0===e.length||e.find(e=>-1===t.indexOf(e))?t:e}function gd(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}let md=1;const vd={};function yd(e,t,n,o=!1){return vd[e]={name:t,keepAlive:o,callback:n},e}function bd(e,t,n){if("number"==typeof e){const o=vd[e];if(o)return o.keepAlive||delete vd[e],o.callback(t,n)}return t}function _d(e){for(const t in vd)if(vd[t].name===e)return!0;return!1}const wd="success",xd="fail",Cd="complete";function Sd(e,t={},{beforeAll:n,beforeSuccess:o}={}){C(t)||(t={});const{success:i,fail:r,complete:s}=function(e){const t={};for(const n in e){const o=e[n];m(o)&&(t[n]=gd(o),delete e[n])}return t}(t),a=m(i),l=m(r),c=m(s),u=md++;return yd(u,e,u=>{(u=u||{}).errMsg=function(e,t){return e&&-1!==e.indexOf(":fail")?t+e.substring(e.indexOf(":fail")):t+":ok"}(u.errMsg,e),m(n)&&n(u),u.errMsg===e+":ok"?(m(o)&&o(u,t),a&&i(u)):l&&r(u),c&&s(u)}),u}const kd="success",Td="fail",Ad="complete",Ed={},Md={};function Pd(e,t){return function(n){return e(n,t)||n}}function Ld(e,t,n){let o=!1;for(let i=0;ie(t),catch(){}}}function Od(e,t={}){return[kd,Td,Ad].forEach(n=>{const o=e[n];if(!p(o))return;const i=t[n];t[n]=function(e){Ld(o,e,t).then(e=>m(i)&&i(e)||e)}}),t}function $d(e,t){const n=[];p(Ed.returnValue)&&n.push(...Ed.returnValue);const o=Md[e];return o&&p(o.returnValue)&&n.push(...o.returnValue),n.forEach(e=>{t=e(t)||t}),t}function Id(e){const t=Object.create(null);Object.keys(Ed).forEach(e=>{"returnValue"!==e&&(t[e]=Ed[e].slice())});const n=Md[e];return n&&Object.keys(n).forEach(e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))}),t}function Dd(e,t,n,o){const i=Id(e);if(i&&Object.keys(i).length){if(p(i.invoke)){return Ld(i.invoke,n).then(n=>t(Od(Id(e),n),...o))}return t(Od(i,n),...o)}return t(n,...o)}function Rd(e,t){return(n={},...o)=>function(e){return!(!C(e)||![wd,xd,Cd].find(t=>m(e[t])))}(n)?$d(e,Dd(e,t,c({},n),o)):$d(e,new Promise((i,r)=>{Dd(e,t,c({},n,{success:i,fail:r}),o)}))}function zd(e,t,n,o={}){const i=t+":fail";let r="";return r=n?0===n.indexOf(i)?n:i+" "+n:i,delete o.errCode,bd(e,c({errMsg:r},o))}function Bd(e,t,n,o){if(o&&o.beforeInvoke){const e=o.beforeInvoke(t);if(v(e))return e}const i=function(e,t){const n=e[0];if(!t||!t.formatArgs||!C(t.formatArgs)&&C(n))return;const o=t.formatArgs,i=Object.keys(o);for(let r=0;r{Nd(o);const i=Bd(0,[o],0,n);if(i)throw new Error(i);const r=!_d(e);!function(e,t){yd(md++,e,t,!0)}(e,o),r&&(!function(e){Uy.on("api."+e,t=>{for(const n in vd){const o=vd[n];o.name===e&&o.callback(t)}})}(e),t())}}function jd(e,t,n){return o=>{Nd(o);const i=Bd(0,[o],0,n);if(i)throw new Error(i);!function(e,t){for(const n in vd){const o=vd[n];o.callback===t&&o.name===e&&delete vd[n]}}(e=e.replace("off","on"),o);_d(e)||(!function(e){Uy.off("api."+e)}(e),t())}}function Fd(e,t,n,o){return n=>{const i=Sd(e,n,o),r=Bd(0,[n],0,o);return r?zd(i,e,r):t(n,{resolve:t=>function(e,t,n){return bd(e,c(n||{},{errMsg:t+":ok"}))}(i,e,t),reject:(t,n)=>zd(i,e,function(e){return!e||v(e)?e:e.stack?("undefined"!=typeof globalThis&&globalThis.harmonyChannel||console.error(e.message+"\n"+e.stack),e.message):e}(t),n)})}}function Vd(e,t,n){return qd(e,t,n)}function Wd(e,t,n){return jd(e,t,n)}function Hd(e,t,n,o){return Rd(e,Fd(e,t,0,o))}function Ud(e,t,n,o){return function(e,t,n,o){return(...e)=>{const n=Bd(0,e,0,o);if(n)throw new Error(n);return t.apply(null,e)}}(0,t,0,o)}function Xd(e,t,n,o){return Rd(e,function(e,t,n,o){return Fd(e,t,0,o)}(e,t,0,o))}let Yd=!1,Gd=0,Kd=0,Jd=960,Qd=375,Zd=750;function ef(){let e,t,n;{const{windowWidth:o,pixelRatio:i,platform:r}=function(){const e=th(),t=ih(oh(e,nh(e)));return{platform:Kp?"ios":"other",pixelRatio:window.devicePixelRatio,windowWidth:t}}();e=o,t=i,n=r}Gd=e,Kd=t,Yd="ios"===n}function tf(e,t){const n=Number(e);return isNaN(n)?t:n}const nf=Ud(0,(e,t)=>{if(0===Gd&&(ef(),function(){const e=__uniConfig.globalStyle||{};Jd=tf(e.rpxCalcMaxDeviceWidth,960),Qd=tf(e.rpxCalcBaseDeviceWidth,375),Zd=tf(e.rpxCalcBaseDeviceWidth,750)}()),0===(e=Number(e)))return 0;let n=t||Gd;n=e===Zd||n<=Jd?n:Qd;let o=e/750*n;return o<0&&(o=-o),o=Math.floor(o+1e-4),0===o&&(o=1!==Kd&&Yd?.5:1),e<0?-o:o}),of=[.5,.8,1,1.25,1.5,2];const rf=(e,t,n,o)=>{!function(e,t,n,o,i){Uy.invokeViewMethod("map."+e,{type:n,data:o},t,i)}(e,t,n,o,e=>{o&&((e,t)=>{const n=t.errMsg||"";new RegExp("\\:\\s*fail").test(n)?e.fail&&e.fail(t):e.success&&e.success(t),e.complete&&e.complete(t)})(o,e)})};var sf=["scale","rotate","translate","setTransform","transform"],af=["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"],lf=["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"];const cf={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",transparent:"#00000000"};function uf(e){let t=null;if(null!=(t=/^#([0-9|A-F|a-f]{6})$/.exec(e=e||"#000000"))){return[parseInt(t[1].slice(0,2),16),parseInt(t[1].slice(2,4),16),parseInt(t[1].slice(4),16),255]}if(null!=(t=/^#([0-9|A-F|a-f]{3})$/.exec(e))){let e=t[1].slice(0,1),n=t[1].slice(1,2),o=t[1].slice(2,3);return e=parseInt(e+e,16),n=parseInt(n+n,16),o=parseInt(o+o,16),[e,n,o,255]}if(null!=(t=/^rgb\((.+)\)$/.exec(e)))return t[1].split(",").map(function(e){return Math.min(255,parseInt(e.trim()))}).concat(255);if(null!=(t=/^rgba\((.+)\)$/.exec(e)))return t[1].split(",").map(function(e,t){return 3===t?Math.floor(255*parseFloat(e.trim())):Math.min(255,parseInt(e.trim()))});var n=e.toLowerCase();if(f(cf,n)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(cf[n]);const e=parseInt(t[1].slice(0,2),16),o=parseInt(t[1].slice(2,4),16),i=parseInt(t[1].slice(4,6),16);let r=parseInt(t[1].slice(6,8),16);return r=r>=0?r:255,[e,o,i,r]}return console.error("unsupported color:"+e),[0,0,0,255]}class df{constructor(e,t){this.type=e,this.data=t,this.colorStop=[]}addColorStop(e,t){this.colorStop.push([e,uf(t)])}}class ff{constructor(e,t){this.type="pattern",this.data=e,this.colorStop=t}}class pf{constructor(e){this.width=e}}class hf{constructor(e,t){this.id=e,this.pageId=t,this.actions=[],this.path=[],this.subpath=[],this.drawingState=[],this.state={lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}setFillStyle(e){console.log("initCanvasContextProperty implemented.")}setStrokeStyle(e){console.log("initCanvasContextProperty implemented.")}setShadow(e,t,n,o){console.log("initCanvasContextProperty implemented.")}addColorStop(e,t){console.log("initCanvasContextProperty implemented.")}setLineWidth(e){console.log("initCanvasContextProperty implemented.")}setLineCap(e){console.log("initCanvasContextProperty implemented.")}setLineJoin(e){console.log("initCanvasContextProperty implemented.")}setLineDash(e,t){console.log("initCanvasContextProperty implemented.")}setMiterLimit(e){console.log("initCanvasContextProperty implemented.")}fillRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}strokeRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}clearRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}fill(){console.log("initCanvasContextProperty implemented.")}stroke(){console.log("initCanvasContextProperty implemented.")}scale(e,t){console.log("initCanvasContextProperty implemented.")}rotate(e){console.log("initCanvasContextProperty implemented.")}translate(e,t){console.log("initCanvasContextProperty implemented.")}setFontSize(e){console.log("initCanvasContextProperty implemented.")}fillText(e,t,n,o){console.log("initCanvasContextProperty implemented.")}setTextAlign(e){console.log("initCanvasContextProperty implemented.")}setTextBaseline(e){console.log("initCanvasContextProperty implemented.")}drawImage(e,t,n,o,i,r,s,a,l){console.log("initCanvasContextProperty implemented.")}setGlobalAlpha(e){console.log("initCanvasContextProperty implemented.")}strokeText(e,t,n,o){console.log("initCanvasContextProperty implemented.")}setTransform(e,t,n,o,i,r){console.log("initCanvasContextProperty implemented.")}draw(e=!1,t){var n=[...this.actions];this.actions=[],this.path=[],function(e,t,n,o,i){Uy.invokeViewMethod(`canvas.${e}`,{type:n,data:o},t,e=>{i&&i(e)})}(this.id,this.pageId,"actionsChanged",{actions:n,reserve:e},t)}createLinearGradient(e,t,n,o){return new df("linear",[e,t,n,o])}createCircularGradient(e,t,n){return new df("radial",[e,t,n])}createPattern(e,t){if(void 0===t)console.error("Failed to execute 'createPattern' on 'CanvasContext': 2 arguments required, but only 1 present.");else{if(!(["repeat","repeat-x","repeat-y","no-repeat"].indexOf(t)<0))return new ff(e,t);console.error("Failed to execute 'createPattern' on 'CanvasContext': The provided type ('"+t+"') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.")}}measureText(e,t){let n=0;return n=function(e,t){const n=document.createElement("canvas").getContext("2d");return n.font=t,n.measureText(e).width||0}(e,this.state.font),new pf(n)}save(){this.actions.push({method:"save",data:[]}),this.drawingState.push(this.state)}restore(){this.actions.push({method:"restore",data:[]}),this.state=this.drawingState.pop()||{lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}beginPath(){this.path=[],this.subpath=[],this.path.push({method:"beginPath",data:[]})}moveTo(e,t){this.path.push({method:"moveTo",data:[e,t]}),this.subpath=[[e,t]]}lineTo(e,t){0===this.path.length&&0===this.subpath.length?this.path.push({method:"moveTo",data:[e,t]}):this.path.push({method:"lineTo",data:[e,t]}),this.subpath.push([e,t])}quadraticCurveTo(e,t,n,o){this.path.push({method:"quadraticCurveTo",data:[e,t,n,o]}),this.subpath.push([n,o])}bezierCurveTo(e,t,n,o,i,r){this.path.push({method:"bezierCurveTo",data:[e,t,n,o,i,r]}),this.subpath.push([i,r])}arc(e,t,n,o,i,r=!1){this.path.push({method:"arc",data:[e,t,n,o,i,r]}),this.subpath.push([e,t])}rect(e,t,n,o){this.path.push({method:"rect",data:[e,t,n,o]}),this.subpath=[[e,t]]}arcTo(e,t,n,o,i){this.path.push({method:"arcTo",data:[e,t,n,o,i]}),this.subpath.push([n,o])}clip(){this.actions.push({method:"clip",data:[...this.path]})}closePath(){this.path.push({method:"closePath",data:[]}),this.subpath.length&&(this.subpath=[this.subpath.shift()])}clearActions(){this.actions=[],this.path=[],this.subpath=[]}getActions(){var e=[...this.actions];return this.clearActions(),e}set lineDashOffset(e){this.actions.push({method:"setLineDashOffset",data:[e]})}set globalCompositeOperation(e){this.actions.push({method:"setGlobalCompositeOperation",data:[e]})}set shadowBlur(e){this.actions.push({method:"setShadowBlur",data:[e]})}set shadowColor(e){this.actions.push({method:"setShadowColor",data:[e]})}set shadowOffsetX(e){this.actions.push({method:"setShadowOffsetX",data:[e]})}set shadowOffsetY(e){this.actions.push({method:"setShadowOffsetY",data:[e]})}set font(e){var t=this;this.state.font=e;var n=e.match(/^(([\w\-]+\s)*)(\d+\.?\d*r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/);if(n){var o=n[1].trim().split(/\s/),i=parseFloat(n[3]),r=n[7],s=[];o.forEach(function(e,n){["italic","oblique","normal"].indexOf(e)>-1?(s.push({method:"setFontStyle",data:[e]}),t.state.fontStyle=e):["bold","normal","lighter","bolder"].indexOf(e)>-1||/^\d+$/.test(e)?(s.push({method:"setFontWeight",data:[e]}),t.state.fontWeight=e):0===n?(s.push({method:"setFontStyle",data:["normal"]}),t.state.fontStyle="normal"):1===n&&a()}),1===o.length&&a(),o=s.map(function(e){return e.data[0]}).join(" "),this.state.fontSize=i,this.state.fontFamily=r,this.actions.push({method:"setFont",data:[`${o} ${i}px ${r}`]})}else console.warn("Failed to set 'font' on 'CanvasContext': invalid format.");function a(){s.push({method:"setFontWeight",data:["normal"]}),t.state.fontWeight="normal"}}get font(){return this.state.font}set fillStyle(e){this.setFillStyle(e)}set strokeStyle(e){this.setStrokeStyle(e)}set globalAlpha(e){e=Math.floor(255*parseFloat(e)),this.actions.push({method:"setGlobalAlpha",data:[e]})}set textAlign(e){this.actions.push({method:"setTextAlign",data:[e]})}set lineCap(e){this.actions.push({method:"setLineCap",data:[e]})}set lineJoin(e){this.actions.push({method:"setLineJoin",data:[e]})}set lineWidth(e){this.actions.push({method:"setLineWidth",data:[e]})}set miterLimit(e){this.actions.push({method:"setMiterLimit",data:[e]})}set textBaseline(e){this.actions.push({method:"setTextBaseline",data:[e]})}}const gf=Ie(()=>{[...sf,...af].forEach(function(e){hf.prototype[e]=function(e){switch(e){case"fill":case"stroke":return function(){this.actions.push({method:e+"Path",data:[...this.path]})};case"fillRect":return function(e,t,n,o){this.actions.push({method:"fillPath",data:[{method:"rect",data:[e,t,n,o]}]})};case"strokeRect":return function(e,t,n,o){this.actions.push({method:"strokePath",data:[{method:"rect",data:[e,t,n,o]}]})};case"fillText":case"strokeText":return function(t,n,o,i){var r=[t.toString(),n,o];"number"==typeof i&&r.push(i),this.actions.push({method:e,data:r})};case"drawImage":return function(t,n,o,i,r,s,a,l,c){var u;function d(e){return"number"==typeof e}void 0===c&&(s=n,a=o,l=i,c=r,n=void 0,o=void 0,i=void 0,r=void 0),u=d(n)&&d(o)&&d(i)&&d(r)?[t,s,a,l,c,n,o,i,r]:d(l)&&d(c)?[t,s,a,l,c]:[t,s,a],this.actions.push({method:e,data:u})};default:return function(...t){this.actions.push({method:e,data:t})}}}(e)}),lf.forEach(function(e){hf.prototype[e]=function(e){switch(e){case"setFillStyle":case"setStrokeStyle":return function(t){"object"!=typeof t?this.actions.push({method:e,data:["normal",uf(t)]}):this.actions.push({method:e,data:[t.type,t.data,t.colorStop]})};case"setGlobalAlpha":return function(t){t=Math.floor(255*parseFloat(t)),this.actions.push({method:e,data:[t]})};case"setShadow":return function(t,n,o,i){i=uf(i),this.actions.push({method:e,data:[t,n,o,i]}),this.state.shadowBlur=o,this.state.shadowColor=i,this.state.shadowOffsetX=t,this.state.shadowOffsetY=n};case"setLineDash":return function(t,n){t=t||[0,0],n=n||0,this.actions.push({method:e,data:[t,n]}),this.state.lineDash=t};case"setFontSize":return function(t){this.state.font=this.state.font.replace(/\d+\.?\d*px/,t+"px"),this.state.fontSize=t,this.actions.push({method:e,data:[t]})};default:return function(...t){this.actions.push({method:e,data:t})}}}(e)})}),mf=Ud(0,(e,t)=>{if(gf(),t)return new hf(e,su(t));const n=su(uu());if(n)return new hf(e,n);Uy.emit(ae,"createCanvasContext:fail")});let vf=0,yf={};const bf={canvas:hf,map:class{constructor(e,t){this.id=e,this.pageId=t}getCenterLocation(e){rf(this.id,this.pageId,"getCenterLocation",e)}moveToLocation(e){rf(this.id,this.pageId,"moveToLocation",e)}getScale(e){rf(this.id,this.pageId,"getScale",e)}getRegion(e){rf(this.id,this.pageId,"getRegion",e)}includePoints(e){rf(this.id,this.pageId,"includePoints",e)}translateMarker(e){rf(this.id,this.pageId,"translateMarker",e)}$getAppMap(){}addCustomLayer(e){rf(this.id,this.pageId,"addCustomLayer",e)}removeCustomLayer(e){rf(this.id,this.pageId,"removeCustomLayer",e)}addGroundOverlay(e){rf(this.id,this.pageId,"addGroundOverlay",e)}removeGroundOverlay(e){rf(this.id,this.pageId,"removeGroundOverlay",e)}updateGroundOverlay(e){rf(this.id,this.pageId,"updateGroundOverlay",e)}initMarkerCluster(e){rf(this.id,this.pageId,"initMarkerCluster",e)}addMarkers(e){rf(this.id,this.pageId,"addMarkers",e)}removeMarkers(e){rf(this.id,this.pageId,"removeMarkers",e)}moveAlong(e){rf(this.id,this.pageId,"moveAlong",e)}setLocMarkerIcon(e){rf(this.id,this.pageId,"setLocMarkerIcon",e)}openMapApp(e){rf(this.id,this.pageId,"openMapApp",e)}on(e,t){rf(this.id,this.pageId,"on",{name:e,callback:t})}},video:class{constructor(e,t){this.id=e,this.pageId=t}play(){rh(this.id,this.pageId,"play")}pause(){rh(this.id,this.pageId,"pause")}stop(){rh(this.id,this.pageId,"stop")}seek(e){rh(this.id,this.pageId,"seek",{position:e})}sendDanmu(e){rh(this.id,this.pageId,"sendDanmu",e)}playbackRate(e){~of.indexOf(e)||(e=1),rh(this.id,this.pageId,"playbackRate",{rate:e})}requestFullScreen(e={}){rh(this.id,this.pageId,"requestFullScreen",e)}exitFullScreen(){rh(this.id,this.pageId,"exitFullScreen")}showStatusBar(){rh(this.id,this.pageId,"showStatusBar")}hideStatusBar(){rh(this.id,this.pageId,"hideStatusBar")}},editor:class{constructor(e,t){this.id=e,this.pageId=t}format(e,t){this._exec("format",{name:e,value:t})}insertDivider(){this._exec("insertDivider")}insertImage(e){this._exec("insertImage",e)}insertText(e){this._exec("insertText",e)}setContents(e){this._exec("setContents",e)}getContents(e){this._exec("getContents",e)}clear(e){this._exec("clear",e)}removeFormat(e){this._exec("removeFormat",e)}undo(e){this._exec("undo",e)}redo(e){this._exec("redo",e)}blur(e){this._exec("blur",e)}getSelectionText(e){this._exec("getSelectionText",e)}scrollIntoView(e){this._exec("scrollIntoView",e)}_exec(e,t){!function(e,t,n,o){const i={options:o},r=o&&("success"in o||"fail"in o||"complete"in o);if(r){const e=String(vf++);i.callbackId=e,yf[e]=o}Uy.invokeViewMethod(`editor.${e}`,{type:n,data:i},t,({callbackId:e,data:t})=>{r&&(De(yf[e],t),delete yf[e])})}(this.id,this.pageId,e,t)}}};function _f(e){if(e&&e.contextInfo){const{id:t,type:n,page:o}=e.contextInfo,i=bf[n];e.context=new i(t,o),delete e.contextInfo}}class wf{constructor(e,t,n,o){this._selectorQuery=e,this._component=t,this._selector=n,this._single=o}boundingClientRect(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,rect:!0,size:!0},e),this._selectorQuery}fields(e,t){return this._selectorQuery._push(this._selector,this._component,this._single,e,t),this._selectorQuery}scrollOffset(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,scrollOffset:!0},e),this._selectorQuery}context(e){return this._selectorQuery._push(this._selector,this._component,this._single,{context:!0},e),this._selectorQuery}node(e){return this._selectorQuery._push(this._selector,this._component,this._single,{node:!0},e),this._selectorQuery}}class xf{constructor(e){this._component=void 0,this._page=e,this._queue=[],this._queueCb=[]}exec(e){return function(e,t,n){const o=[];t.forEach(({component:t,selector:n,single:i,fields:r})=>{null===t?o.push(function(e){const t={};e.id&&(t.id="");e.dataset&&(t.dataset={});e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0);e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight);if(e.scrollOffset){const e=document.documentElement,n=document.body;t.scrollLeft=e.scrollLeft||n.scrollLeft||0,t.scrollTop=e.scrollTop||n.scrollTop||0,t.scrollHeight=e.scrollHeight||n.scrollHeight||0,t.scrollWidth=e.scrollWidth||n.scrollWidth||0}return t}(r)):o.push(function(e,t,n,o,i){const r=function(e,t){if(!e)return t.$el;return e.$el}(t,e),s=r.parentElement;if(!s)return o?null:[];const{nodeType:a}=r,l=3===a||8===a;if(o){const e=l?s.querySelector(n):ah(r,n)?r:r.querySelector(n);return e?sh(e,i):null}{let e=[];const t=(l?s:r).querySelectorAll(n);return t&&t.length&&[].forEach.call(t,t=>{e.push(sh(t,i))}),!l&&ah(r,n)&&e.unshift(sh(r,i)),e}}(e,t,n,i,r))}),n(o)}(this._page,this._queue,t=>{const n=this._queueCb;t.forEach((e,t)=>{p(e)?e.forEach(_f):_f(e);const o=n[t];m(o)&&o.call(this,e)}),m(e)&&e.call(this,t)}),this._nodesRef}in(e){return this._component=Be(e),this}select(e){return this._nodesRef=new wf(this,this._component,e,!0)}selectAll(e){return this._nodesRef=new wf(this,this._component,e,!1)}selectViewport(){return this._nodesRef=new wf(this,null,"",!0)}_push(e,t,n,o,i){this._queue.push({component:t,selector:e,single:n,fields:o}),this._queueCb.push(i)}}const Cf=Ud(0,e=>((e=Be(e))&&!su(e)&&(e=null),new xf(e||uu()))),Sf=Ud(0,()=>{const e=fm();return e&&e.$vm?e.$vm.$locale:ic().getLocale()}),kf={[ue]:[],[ce]:[],[ae]:[],[ie]:[],[re]:[]};const Tf={formatArgs:{showToast:!0},beforeInvoke(){fc()},beforeSuccess(e,t){if(!t.showToast)return;const{t:n}=ic(),o=n("uni.setClipboardData.success");o&&ay({title:o,icon:"success",mask:!1})}},Af="onCompass",Ef=["wgs84","gcj02"],Mf={formatArgs:{type(e,t){e=(e||"").toLowerCase(),-1===Ef.indexOf(e)?t.type=Ef[0]:t.type=e},altitude(e,t){t.altitude=e||!1}}},Pf=(e,t)=>{if(void 0===t)return`${e} should not be empty.`;if("number"!=typeof t){let e=typeof t;return e=e[0].toUpperCase()+e.substring(1),`Expected Number, got ${e} with value ${JSON.stringify(t)}.`}},Lf={formatArgs:{latitude(e,t){const n=Pf("latitude",e);if(n)return n;t.latitude=e},longitude(e,t){const n=Pf("longitude",e);if(n)return n;t.longitude=e},scale(e,t){e=Math.floor(e),t.scale=e>=5&&e<=18?e:18}}},Of={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=9)},sizeType(e,t){t.sizeType=hd(e,ud)},sourceType(e,t){t.sourceType=hd(e,dd)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}},$f="json",If=["text","arraybuffer"],Df=encodeURIComponent;const Rf={formatArgs:{method(e,t){t.method=pd((e||"").toUpperCase(),fd)},data(e,t){t.data=e||""},url(e,t){t.method===fd[0]&&C(t.data)&&Object.keys(t.data).length&&(t.url=function(e,t){let n=e.split("#");const o=n[1]||"";n=n[0].split("?");let i=n[1]||"";e=n[0];const r=i.split("&").filter(e=>e),s={};r.forEach(e=>{const t=e.split("=");s[t[0]]=t[1]});for(const a in t)if(f(t,a)){let e=t[a];null==e?e="":C(e)&&(e=JSON.stringify(e)),s[Df(a)]=Df(e)}return i=Object.keys(s).map(e=>`${e}=${s[e]}`).join("&"),e+(i?"?"+i:"")+(o?"#"+o:"")}(e,t.data))},header(e,t){const n=t.header=e||{};t.method!==fd[0]&&(Object.keys(n).find(e=>"content-type"===e.toLowerCase())||(n["Content-Type"]="application/json"))},dataType(e,t){t.dataType=(e||$f).toLowerCase()},responseType(e,t){t.responseType=(e||"").toLowerCase(),-1===If.indexOf(t.responseType)&&(t.responseType="text")}}},zf={formatArgs:{filePath(e,t){e&&(t.filePath=Xp(e))},header(e,t){t.header=e||{}},formData(e,t){t.formData=e||{}}}};const Bf={url:{type:String,required:!0}},Nf="navigateTo",qf="redirectTo",jf="switchTab",Ff="preloadPage",Vf=(Xf(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"]),Xf(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"]),Kf(Nf)),Wf=Kf(qf),Hf=Kf(jf),Uf={formatArgs:{delta(e,t){e=parseInt(e+"")||1,t.delta=Math.min(Pp().length-1,e)}}};function Xf(e){return{animationType:{type:String,validator(t){if(t&&-1===e.indexOf(t))return"`"+t+"` is not supported for `animationType` (supported values are: `"+e.join("`|`")+"`)"}},animationDuration:{type:Number}}}let Yf;function Gf(){Yf=""}function Kf(e){return{formatArgs:{url:Jf(e)},beforeAll:Gf}}function Jf(e){return function(t,n){if(!t)return'Missing required args: "url"';const o=(t=function(e){if(0===e.indexOf("/")||0===e.indexOf("uni:"))return e;let t="";const n=Pp();return n.length&&(t=Zc(n[n.length-1]).route),bu(t,e)}(t)).split("?")[0],i=_u(o,!0);if(!i)return"page `"+t+"` is not found";if(e===Nf||e===qf){if(i.meta.isTabBar)return`can not ${e} a tabbar page`}else if(e===jf&&!i.meta.isTabBar)return"can not switch to no-tabBar page";if(e!==jf&&e!==Ff||!i.meta.isTabBar||"appLaunch"===n.openType||(t=o),i.meta.isEntry&&(t=t.replace(i.alias,"/")),n.url=function(e){if(!v(e))return e;const t=e.indexOf("?");if(-1===t)return e;const n=e.slice(t+1).trim().replace(/^(\?|#|&)/,"");if(!n)return e;e=e.slice(0,t);const o=[];return n.split("&").forEach(e=>{const t=e.replace(/\+/g," ").split("="),n=t.shift(),i=t.length>0?t.join("="):"";o.push(n+"="+encodeURIComponent(i))}),o.length?e+"?"+o.join("&"):e}(t),"unPreloadPage"!==e)if(e!==Ff){if(Yf===t&&"appLaunch"!==n.openType)return`${Yf} locked`;__uniConfig.ready&&(Yf=t)}else if(i.meta.isTabBar){const e=Pp(),t=i.path.slice(1);if(e.find(e=>e.route===t))return"tabBar page `"+t+"` already exists"}}}const Qf={formatArgs:{itemColor:"#000"}},Zf={formatArgs:{title:"",mask:!1}},ep={beforeInvoke(){uc()},formatArgs:{title:"",content:"",placeholderText:"",showCancel:!0,editable:!1,cancelText(e,t){if(!f(t,"cancelText")){const{t:e}=ic();t.cancelText=e("uni.showModal.cancel")}},cancelColor:"#000",confirmText(e,t){if(!f(t,"confirmText")){const{t:e}=ic();t.confirmText=e("uni.showModal.confirm")}},confirmColor:"#007aff"}},tp=["success","loading","none","error"],np={formatArgs:{title:"",icon(e,t){t.icon=pd(e,tp)},image(e,t){t.image=e?Xp(e):""},duration:1500,mask:!1}},op="stopPullDownRefresh";function ip(){const e=uu();if(!e)return;const t=Mp(),n=t.keys();for(const o of n){const e=t.get(o);e.$.__isTabBar?e.$.__isActive=!1:Op(o)}e.$.__isTabBar&&(e.$.__isVisible=!1,hu(e,re))}function rp(e,t){return e===t.fullPath||"/"===e&&t.meta.isEntry}function sp(e){const t=Mp().values();for(const n of t){const t=Cp(n);if(rp(e,t))return n.$.__isActive=!0,t.id}}const ap=Xd(jf,({url:e,tabBarText:t,isAutomatedTesting:n},{resolve:o,reject:i})=>{if(Sp.handledBeforeEntryPageRoutes)return ip(),up({type:jf,url:e,tabBarText:t,isAutomatedTesting:n},sp(e)).then(o).catch(i);Tp.push({args:{type:jf,url:e,tabBarText:t,isAutomatedTesting:n},resolve:o,reject:i})},0,Hf);function lp(){const e=au();if(!e)return;const t=Cp(e);Op(Rp(t.path,t.id))}const cp=Xd(qf,({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(Sp.handledBeforeEntryPageRoutes)return lp(),up({type:qf,url:e,isAutomatedTesting:t}).then(n).catch(o);Ap.push({args:{type:qf,url:e,isAutomatedTesting:t},resolve:n,reject:o})},0,Wf);function up({type:e,url:t,tabBarText:n,events:o,isAutomatedTesting:i},r){const s=fm().$router,{path:a,query:l}=function(e){const[t,n]=e.split("?",2);return{path:t,query:Qe(n||"")}}(t);return new Promise((t,c)=>{const u=function(e,t){return{__id__:t||++$p,__type__:e}}(e,r);s["navigateTo"===e?"push":"replace"]({path:a,query:l,state:u,force:!0}).then(r=>{if(nl(r))return c(r.message);if("switchTab"===e&&(s.currentRoute.value.meta.tabBarText=n),"navigateTo"===e){const e=s.currentRoute.value.meta;return e.eventChannel?o&&(Object.keys(o).forEach(t=>{e.eventChannel._addListener(t,"on",o[t])}),e.eventChannel._clearCache()):e.eventChannel=new et(u.__id__,o),t(i?{__id__:u.__id__}:{eventChannel:e.eventChannel})}return i?t({__id__:u.__id__}):t()})})}function dp(){if(Sp.handledBeforeEntryPageRoutes)return;Sp.handledBeforeEntryPageRoutes=!0;const e=[...kp];kp.length=0,e.forEach(({args:e,resolve:t,reject:n})=>up(e).then(t).catch(n));const t=[...Tp];Tp.length=0,t.forEach(({args:e,resolve:t,reject:n})=>(ip(),up(e,sp(e.url)).then(t).catch(n)));const n=[...Ap];Ap.length=0,n.forEach(({args:e,resolve:t,reject:n})=>(lp(),up(e).then(t).catch(n)));const o=[...Ep];Ep.length=0,o.forEach(({args:e,resolve:t,reject:n})=>(function(){const e=Mp().keys();for(const t of e)Op(t)}(),up(e).then(t).catch(n)))}let fp;function pp(){var e;return fp||(fp=__uniConfig.tabBar&&bn((e=__uniConfig.tabBar,Zl()&&e.list&&e.list.forEach(e=>{oc(e,["text"])}),e))),fp}function hp(e){const t=window.CSS&&window.CSS.supports;return t&&(t(e)||t.apply(window.CSS,e.split(":")))}const gp=hp("top:env(a)"),mp=hp("top:constant(a)"),vp=hp("backdrop-filter:blur(10px)"),yp=(()=>gp?"env":mp?"constant":"")();function bp(e){let t=0;if(e.isTabBar){const e=pp();e.shown&&(t=parseInt(e.height))}var n;Gc({"--window-top":(n=0,yp?`calc(${n}px + ${yp}(safe-area-inset-top))`:`${n}px`),"--window-bottom":_p(t)})}function _p(e){return yp?`calc(${e}px + ${yp}(safe-area-inset-bottom))`:`${e}px`}const wp="$$",xp=new Map;function Cp(e){return e.$page}const Sp={handledBeforeEntryPageRoutes:!1},kp=[],Tp=[],Ap=[],Ep=[];function Mp(){return xp}function Pp(){return Lp()}function Lp(){const e=[],t=xp.values();for(const n of t)n.$.__isTabBar?n.$.__isActive&&e.push(n):e.push(n);return e}function Op(e,t=!0){const n=xp.get(e);n.$.__isUnload=!0,hu(n,fe),xp.delete(e),t&&function(e){const t=zp.get(e);t&&(zp.delete(e),Bp.pruneCacheEntry(t))}(e)}let $p=cd();function Ip(e){const t=sd();let n=e.fullPath;return e.meta.isEntry&&-1===n.indexOf(e.meta.route)&&(n="/"+e.meta.route+n.replace("/","")),function(e,t,n,o,i,r){const{id:s,route:a}=o,l=ct(o.navigationBar,__uniConfig.themeConfig,r).titleColor;return{id:s,path:$e(a),route:a,fullPath:t,options:n,meta:o,openType:e,eventChannel:i,statusBarStyle:"#ffffff"===l?"light":"dark"}}("navigateTo",n,{},t)}function Dp(e){const t=Ip(e.$route);!function(e,t){e.route=t.route,e.$vm=e,e.$page=t,e.$mpType="page",e.$fontFamilySet=new Set,t.meta.isTabBar&&(e.$.__isTabBar=!0,e.$.__isActive=!0)}(e,t),xp.set(Rp(t.path,t.id),e),1===xp.size&&setTimeout(()=>{dp()},0)}function Rp(e,t){return e+wp+t}const zp=new Map,Bp={get:e=>zp.get(e),set(e,t){!function(e){const t=parseInt(e.split(wp)[1]);if(!t)return;Bp.forEach((e,n)=>{const o=parseInt(n.split(wp)[1]);if(o&&o>t){if(function(e){return"tabBar"===e.props.type}(e))return;Bp.delete(n),Bp.pruneCacheEntry(e),to(()=>{xp.forEach((e,t)=>{e.$.isUnmounted&&xp.delete(t)})})}})}(e),zp.set(e,t)},delete(e){zp.get(e)&&zp.delete(e)},forEach(e){zp.forEach(e)}};function Np(e,t){!function(e){const t=jp(e),{body:n}=document;Fp&&n.removeAttribute(Fp),t&&n.setAttribute(t,""),Fp=t}(e),bp(t),function(e){{const t="nvue-dir-"+__uniConfig.nvue["flex-direction"];e.isNVue?(document.body.setAttribute("nvue",""),document.body.setAttribute(t,"")):(document.body.removeAttribute("nvue"),document.body.removeAttribute(t))}}(t),Hp(e,t)}function qp(e){const t=jp(e);t&&function(e){const t=document.querySelector("uni-page-body");t&&t.setAttribute(e,"")}(t)}function jp(e){return e.type.__scopeId}let Fp;const Vp=!!(()=>{let e=!1;try{const t={};Object.defineProperty(t,"passive",{get(){e=!0}}),window.addEventListener("test-passive",()=>{},t)}catch(t){}return e})()&&{passive:!1};let Wp;function Hp(e,t){if(document.removeEventListener("touchmove",gu),Wp&&document.removeEventListener("scroll",Wp),t.disableScroll)return document.addEventListener("touchmove",gu,Vp);const{onPageScroll:n,onReachBottom:o}=e,i="transparent"===t.navigationBar.type;if(!(null==n?void 0:n.length)&&!(null==o?void 0:o.length)&&!i)return;const r={},s=Cp(e.proxy).id;(n||i)&&(r.onPageScroll=function(e,t,n){return o=>{t&&Hy.publishHandler(ve,{scrollTop:o},e),n&&Hy.emit(e+"."+ve,{scrollTop:o})}}(s,n,i)),(null==o?void 0:o.length)&&(r.onReachBottomDistance=t.onReachBottomDistance||50,r.onReachBottom=()=>Hy.publishHandler(be,{},s)),Wp=yu(r),requestAnimationFrame(()=>document.addEventListener("scroll",Wp))}function Up(e){const{base:t}=__uniConfig.router;return 0===$e(e).indexOf(t)?$e(e):t+e}function Xp(e){const{base:t,assets:n}=__uniConfig.router;if("./"===t&&(0!==e.indexOf("./")||!e.includes("/static/")&&0!==e.indexOf("./"+(n||"assets")+"/")||(e=e.slice(1))),0===e.indexOf("/")){if(0!==e.indexOf("//"))return Up(e.slice(1));e="https:"+e}if(ne.test(e)||oe.test(e)||0===e.indexOf("blob:"))return e;const o=Lp();return o.length?Up(bu(Cp(o[o.length-1]).route,e).slice(1)):e}const Yp=navigator.userAgent,Gp=/android/i.test(Yp),Kp=/iphone|ipad|ipod/i.test(Yp),Jp=Yp.match(/Windows NT ([\d|\d.\d]*)/i),Qp=/Macintosh|Mac/i.test(Yp),Zp=/Linux|X11/i.test(Yp),eh=Qp&&navigator.maxTouchPoints>0;function th(){return/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation}function nh(e){return e&&90===Math.abs(window.orientation)}function oh(e,t){return e?Math[t?"max":"min"](screen.width,screen.height):screen.width}function ih(e){return Math.min(window.innerWidth,document.documentElement.clientWidth,e)||e}function rh(e,t,n,o){Uy.invokeViewMethod("video."+e,{videoId:e,type:n,data:o},t)}function sh(e,t){const n={},{top:o,topWindowHeight:i}=Xc();if(t.node){const t=e.tagName.split("-")[1]||e.tagName;t&&(n.node=e.querySelector(t))}if(t.id&&(n.id=e.id),t.dataset&&(n.dataset=He(e)),t.rect||t.size){const r=e.getBoundingClientRect();t.rect&&(n.left=r.left,n.right=r.right,n.top=r.top-o-i,n.bottom=r.bottom-o-i),t.size&&(n.width=r.width,n.height=r.height)}if(p(t.properties)&&t.properties.forEach(e=>{e=e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}),t.scrollOffset)if("UNI-SCROLL-VIEW"===e.tagName){const t=e.children[0].children[0];n.scrollLeft=t.scrollLeft,n.scrollTop=t.scrollTop,n.scrollHeight=t.scrollHeight,n.scrollWidth=t.scrollWidth}else n.scrollLeft=0,n.scrollTop=0,n.scrollHeight=0,n.scrollWidth=0;if(p(t.computedStyle)){const o=getComputedStyle(e);t.computedStyle.forEach(e=>{n[e]=o[e]})}return t.context&&(n.contextInfo=function(e){return e.__uniContextInfo}(e)),n}function ah(e,t){return(e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(e){const t=this.parentElement.querySelectorAll(e);let n=t.length;for(;--n>=0&&t.item(n)!==this;);return n>-1}).call(e,t)}const lh={};function ch(e,t){const n=lh[e];return n?Promise.resolve(n):/^data:[a-z-]+\/[a-z-]+;base64,/.test(e)?Promise.resolve(function(e){const t=e.split(","),n=t[0].match(/:(.*?);/),o=n?n[1]:"",i=atob(t[1]);let r=i.length;const s=new Uint8Array(r);for(;r--;)s[r]=i.charCodeAt(r);return uh(s,o)}(e)):new Promise((t,n)=>{const o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType="blob",o.onload=function(){t(this.response)},o.onerror=n,o.send()})}function uh(e,t){let n;if(e instanceof File)n=e;else{t=t||e.type||"";const i=`${Date.now()}${function(e){const t=e.split("/")[1];return t?`.${t}`:""}(t)}`;try{n=new File([e],i,{type:t})}catch(o){n=e=e instanceof Blob?e:new Blob([e],{type:t}),n.name=n.name||i}}return n}function dh(e){for(const n in lh)if(f(lh,n)){if(lh[n]===e)return n}var t=(window.URL||window.webkitURL).createObjectURL(e);return lh[t]=e,t}const fh=Vu(),ph=Vu();const hh=Xu({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,{emit:t}){const n=Dn(null),o=function(e){return()=>{const{firstElementChild:t,lastElementChild:n}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5}}(n),i=function(e,t,n){const o=bn({width:-1,height:-1});return Oo(()=>c({},o),e=>t("resize",e)),()=>{const t=e.value;t&&(o.width=t.offsetWidth,o.height=t.offsetHeight,n())}}(n,t,o);return function(e,t,n,o){ri(o),mi(()=>{t.initial&&to(n);const i=e.value;i.offsetParent!==i.parentElement&&(i.parentElement.style.position="relative"),"AnimationEvent"in window||o()})}(n,e,i,o),()=>Ir("uni-resize-sensor",{ref:n,onAnimationstartOnce:i},[Ir("div",{onScroll:i},[Ir("div",null,null)],40,["onScroll"]),Ir("div",{onScroll:i},[Ir("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});const gh=function(){if(navigator.userAgent.includes("jsdom"))return 1;const e=document.createElement("canvas");e.height=e.width=0;const t=e.getContext("2d"),n=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/n}();function mh(e,t=!0){const n=t?gh:1;e.width=e.offsetWidth*n,e.height=e.offsetHeight*n,e.getContext("2d").__hidpi__=t}let vh=!1;function yh(){if(vh)return;vh=!0;const e={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",transform:[4,5],setTransform:[4,5]},t=CanvasRenderingContext2D.prototype;t.drawImageByCanvas=function(e){return function(t,n,o,i,r,s,a,l,c,u){if(!this.__hidpi__)return e.apply(this,arguments);n*=gh,o*=gh,i*=gh,r*=gh,s*=gh,a*=gh,l=u?l*gh:l,c=u?c*gh:c,e.call(this,t,n,o,i,r,s,a,l,c)}}(t.drawImage),1!==gh&&(!function(e,t){for(const n in e)f(e,n)&&t(e[n],n)}(e,function(e,n){t[n]=function(t){return function(){if(!this.__hidpi__)return t.apply(this,arguments);let n=Array.prototype.slice.call(arguments);if("all"===e)n=n.map(function(e){return e*gh});else if(Array.isArray(e))for(let t=0;tyh());function _h(e){return e?Xp(e):e}function wh(e){return(e=e.slice(0))[3]=e[3]/255,"rgba("+e.join(",")+")"}function xh(e,t){Array.from(t).forEach(t=>{t.x=t.clientX-e.left,t.y=t.clientY-e.top})}let Ch;function Sh(e=0,t=0){return Ch||(Ch=document.createElement("canvas")),Ch.width=e,Ch.height=t,Ch}const kh=Xu({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:{canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1},hidpi:{type:Boolean,default:!0}},computed:{id(){return this.canvasId}},setup(e,{emit:t,slots:n}){bh();const o=Dn(null),i=Dn(null),r=Dn(null),s=Dn(!1),a=function(e){return(t,n)=>{e(t,Au(n))}}(t),{$attrs:l,$excludeAttrs:u,$listeners:d}=fg({excludeListeners:!0}),{_listeners:p}=function(e,t,n){const o=os(()=>{let o=["onTouchstart","onTouchmove","onTouchend"],i=t.value,r=c({},(()=>{let e={};for(const t in i)if(f(i,t)){const n=i[t];e[t]=n}return e})());return o.forEach(t=>{let o=[];r[t]&&o.push(Gu(e=>{const o=e.currentTarget.getBoundingClientRect();xh(o,e.touches),xh(o,e.changedTouches),n(t.replace("on","").toLocaleLowerCase(),e)})),e.disableScroll&&"onTouchmove"===t&&o.push(Vc),r[t]=o}),r});return{_listeners:o}}(e,d,a),{_handleSubscribe:h,_resize:g}=function(e,t,n){let o=[],i={};const r=os(()=>e.hidpi?gh:1);function s(n){let o=t.value;if(!n||o.width!==Math.floor(n.width*r.value)||o.height!==Math.floor(n.height*r.value))if(o.width>0&&o.height>0){let t=o.getContext("2d"),n=t.getImageData(0,0,o.width,o.height);mh(o,e.hidpi),t.putImageData(n,0,0)}else mh(o,e.hidpi)}function a({actions:e,reserve:r},s){if(!e)return;if(n.value)return void o.push([e,r]);let a=t.value,c=a.getContext("2d");r||(c.fillStyle="#000000",c.strokeStyle="#000000",c.shadowColor="#000000",c.shadowBlur=0,c.shadowOffsetX=0,c.shadowOffsetY=0,c.setTransform(1,0,0,1,0,0),c.clearRect(0,0,a.width,a.height)),l(e);for(let t=0;t{e.src=t}).catch(()=>{e.src=o})}"drawImage"===t?(o=n[0],o=_h(o),n[0]=o):"setFillStyle"===t&&"pattern"===n[0]&&(o=n[1],o=_h(o),n[1]=o),o&&!i[o]&&r()})}function u(e,t,r,s){let l=i[e];return l.ready?(s(l),!0):(o.unshift([t,!0]),n.value=!0,l.onload=function(){l.ready=!0,s(l),n.value=!1;let e=o.slice(0);o=[];for(let t=e.shift();t;)a({actions:t[0],reserve:t[1]},r),t=e.shift()},!1)}function d({x:e=0,y:n=0,width:o,height:i,destWidth:s,destHeight:a,hidpi:l=!0,dataType:c,quality:u=1,type:d="png"},f){const p=t.value;let h;const g=p.offsetWidth-e;o=o?Math.min(o,g):g;const m=p.offsetHeight-n;i=i?Math.min(i,m):m,l?(s=o,a=i):s||a?s?a||(a=Math.round(i/o*s)):(a||(a=Math.round(i*r.value)),s=Math.round(o/i*a)):(s=Math.round(o*r.value),a=Math.round(i*r.value));const v=Sh(s,a),y=v.getContext("2d");let b;"jpeg"!==d&&"jpg"!==d||(d="jpeg",y.fillStyle="#fff",y.fillRect(0,0,s,a)),y.__hidpi__=!0,y.drawImageByCanvas(p,e,n,o,i,0,0,s,a,!1);try{let e;if("base64"===c)h=v.toDataURL(`image/${d}`,u);else{const e=y.getImageData(0,0,s,a);h=Array.prototype.slice.call(e.data)}b={data:h,compressed:e,width:s,height:a}}catch(_){b={errMsg:`canvasGetImageData:fail ${_}`}}if(v.height=v.width=0,y.__hidpi__=!1,!f)return b;f(b)}function f({data:e,x:n,y:o,width:i,height:r,compressed:s},a){try{0,r||(r=Math.round(e.length/4/i));const s=Sh(i,r);s.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(e),i,r),0,0),t.value.getContext("2d").drawImage(s,n,o,i,r),s.height=s.width=0}catch(l){return void a({errMsg:"canvasPutImageData:fail"})}a({errMsg:"canvasPutImageData:ok"})}function p({x:e=0,y:t=0,width:n,height:o,destWidth:i,destHeight:r,fileType:s,quality:a,dirname:l},c){const u=d({x:e,y:t,width:n,height:o,destWidth:i,destHeight:r,hidpi:!1,dataType:"base64",type:s,quality:a});var f;u.errMsg?c({errMsg:u.errMsg.replace("canvasPutImageData","toTempFilePath")}):(f=u.data,((e,t)=>{let n="toTempFilePath:"+(e?"fail":"ok");e&&(n+=` ${e.message}`),c({errMsg:n,tempFilePath:t})})(null,f))}const h={actionsChanged:a,getImageData:d,putImageData:f,toTempFilePath:p};function g(e,t,n){let o=h[e];0!==e.indexOf("_")&&m(o)&&o(t,n)}return c(h,{_resize:s,_handleSubscribe:g})}(e,i,s);return Vg(h,Hg(e.canvasId),!0),mi(()=>{g()}),()=>{const{canvasId:t,disableScroll:s}=e;return Ir("uni-canvas",jr({ref:o,"canvas-id":t,"disable-scroll":s},l.value,u.value,p.value),[Ir("canvas",{ref:i,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),Ir("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[n.default&&n.default()]),Ir(hh,{ref:r,onResize:g},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});function Th(){}const Ah={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}};function Eh(e,t,n){function o(e){const t=os(()=>0===String(navigator.vendor).indexOf("Apple"));e.addEventListener("focus",()=>{clearTimeout(void 0),document.addEventListener("click",Th,!1)});e.addEventListener("blur",()=>{t.value&&e.blur(),document.removeEventListener("click",Th,!1),t.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)})}Oo(()=>t.value,e=>e&&o(e))}var Mh=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,Ph=/^<\/([-A-Za-z0-9_]+)[^>]*>/,Lh=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,Oh=Bh("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),$h=Bh("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),Ih=Bh("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),Dh=Bh("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),Rh=Bh("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),zh=Bh("script,style");function Bh(e){for(var t={},n=e.split(","),o=0;oe/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},jh={aspectFit:["center center","contain"],aspectFill:["center center","cover"],widthFix:[,"100% 100%"],heightFix:[,"100% 100%"],top:["center top"],bottom:["center bottom"],center:["center center"],left:["left center"],right:["right center"],"top left":["left top"],"top right":["right top"],"bottom left":["left bottom"],"bottom right":["right bottom"]},Fh=Xu({name:"Image",props:Nh,setup(e,{emit:t}){const n=Dn(null),o=function(e,t){const n=Dn(""),o=os(()=>{let e="auto",o="";const i=jh[t.mode];return i?(i[0]&&(o=i[0]),i[1]&&(e=i[1])):(o="0% 0%",e="100% 100%"),`background-image:${n.value?'url("'+n.value+'")':"none"};background-position:${o};background-size:${e};`}),i=bn({rootEl:e,src:os(()=>t.src?Xp(t.src):""),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:o,imgSrc:n});return mi(()=>{const t=e.value;i.origWidth=t.clientWidth||0,i.origHeight=t.clientHeight||0}),i}(n,e),i=Ku(n,t),{fixSize:r}=function(e,t,n){const o=()=>{const{mode:o}=t,i=qh[o];if(!i)return;const{origWidth:r,origHeight:s}=n,a=r&&s?r/s:0;if(!a)return;const l=e.value,c=l[i[0]];c&&(l.style[i[1]]=function(e){Vh&&e>10&&(e=2*Math.round(e/2));return e}(i[2](c,a))+"px")},i=()=>{const{style:t}=e.value,{origStyle:{width:o,height:i}}=n;t.width=o,t.height=i};return Oo(()=>t.mode,(e,t)=>{qh[t]&&i(),qh[e]&&o()}),{fixSize:o,resetSize:i}}(n,e,o);return function(e,t,n,o,i){let r,s;const a=(t=0,n=0,o="")=>{e.origWidth=t,e.origHeight=n,e.imgSrc=o},l=l=>{if(!l)return c(),void a();r=r||new Image,r.onload=e=>{const{width:u,height:d}=r;a(u,d,l),to(()=>{o()}),r.draggable=t.draggable,s&&s.remove(),s=r,n.value.appendChild(r),c(),i("load",e,{width:u,height:d})},r.onerror=t=>{a(),c(),i("error",t,{errMsg:`GET ${e.src} 404 (Not Found)`})},r.src=l},c=()=>{r&&(r.onload=null,r.onerror=null,r=null)};Oo(()=>e.src,e=>l(e)),Oo(()=>e.imgSrc,e=>{!e&&s&&(s.remove(),s=null)}),mi(()=>l(e.src)),bi(()=>c())}(o,e,n,r,i),()=>Ir("uni-image",{ref:n},[Ir("div",{style:o.modeStyle},null,4),qh[e.mode]?Ir(hh,{onResize:r},null,8,["onResize"]):Ir("span",null,null)],512)}});const Vh="Google Inc."===navigator.vendor;const Wh=Xe(!0),Hh=[];let Uh=0,Xh=!1;const Yh=e=>Hh.forEach(t=>t.userAction=e);function Gh(e={userAction:!1}){if(!Xh){["touchstart","touchmove","touchend","mousedown","mouseup"].forEach(e=>{document.addEventListener(e,function(){!Uh&&Yh(!0),Uh++,setTimeout(()=>{! --Uh&&Yh(!1)},0)},Wh)}),Xh=!0}Hh.push(e)}function Kh(){const e=bn({userAction:!1});return mi(()=>{Gh(e)}),bi(()=>{!function(e){const t=Hh.indexOf(e);t>=0&&Hh.splice(t,1)}(e)}),{state:e}}function Jh(e,t){const n=document.activeElement;if(!n)return t({});const o={};["input","textarea"].includes(n.tagName.toLowerCase())&&(o.start=n.selectionStart,o.end=n.selectionEnd),t(o)}function Qh(e,t,n){"number"===t&&isNaN(Number(e))&&(e="");return null==e?"":String(e)}const Zh=["none","text","decimal","numeric","tel","search","email","url"],eg=c({},{name:{type:String,default:""},modelValue:{type:[String,Number]},value:{type:[String,Number]},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},confirmHold:{type:Boolean,default:!1},ignoreCompositionEvent:{type:Boolean,default:!0},step:{type:String,default:"0.000000000000000001"},inputmode:{type:String,default:void 0,validator:e=>!!~Zh.indexOf(e)},cursorColor:{type:String,default:""}},Ah),tg=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend","keyboardheightchange"];function ng(e,t,n,o){let i=null;i=Ze(n=>{t.value=Qh(n,e.type)},100,{setTimeout:setTimeout,clearTimeout:clearTimeout}),Oo(()=>e.modelValue,i),Oo(()=>e.value,i);const r=function(e,t){let n,o,i=0;const r=function(...r){const s=Date.now();clearTimeout(n),o=()=>{o=null,i=s,e.apply(this,r)},s-i{i.cancel(),n("update:modelValue",t.value),n("update:value",t.value),o("input",e,t)},100);return gi(()=>{i.cancel(),r.cancel()}),{trigger:o,triggerInput:(e,t,n)=>{i.cancel(),r(e,t),n&&r.flush()}}}function og(e,t){Kh();const n=os(()=>e.autoFocus||e.focus);function o(){if(!n.value)return;const e=t.value;e?e.focus():setTimeout(o,100)}Oo(()=>e.focus,e=>{e?o():function(){const e=t.value;e&&e.blur()}()}),mi(()=>{n.value&&to(o)})}function ig(e,t,n,o){_c(cu(),"getSelectedTextRange",Jh);const{fieldRef:i,state:r,trigger:s}=function(e,t,n){const o=Dn(null),i=Ku(t,n),r=os(()=>{const t=Number(e.selectionStart);return isNaN(t)?-1:t}),s=os(()=>{const t=Number(e.selectionEnd);return isNaN(t)?-1:t}),a=os(()=>{const t=Number(e.cursor);return isNaN(t)?-1:t}),l=os(()=>{var t=Number(e.maxlength);return isNaN(t)?140:t});let c="";c=Qh(e.modelValue,e.type)||Qh(e.value,e.type);const u=bn({value:c,valueOrigin:c,maxlength:l,focus:e.focus,composing:!1,selectionStart:r,selectionEnd:s,cursor:a});return Oo(()=>u.focus,e=>n("update:focus",e)),Oo(()=>u.maxlength,e=>u.value=u.value.slice(0,e),{immediate:!1}),{fieldRef:o,state:u,trigger:i}}(e,t,n),{triggerInput:a}=ng(e,r,n,s);og(e,i),Eh(0,i);const{state:l}=function(){const e=bn({attrs:{}});return mi(()=>{let t=Ur();for(;t;){const n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&"page"===t.proxy.$mpType?null:t.parent}}),{state:e}}();!function(e,t){const n=Ki(ed,!1);if(!n)return;const o=Ur(),i={submit(){const n=o.proxy;return[n[e],v(t)?n[t]:t.value]},reset(){v(t)?o.proxy[t]="":t.value=""}};n.addField(i),bi(()=>{n.removeField(i)})}("name",r),function(e,t,n,o,i,r){function s(){const n=e.value;n&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&"number"!==n.type&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd)}function a(){const n=e.value;n&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&"number"!==n.type&&(n.selectionEnd=n.selectionStart=t.cursor)}function l(e){return"number"===e.type?null:e.selectionEnd}Oo([()=>t.selectionStart,()=>t.selectionEnd],s),Oo(()=>t.cursor,a),Oo(()=>e.value,function(){const c=e.value;if(!c)return;const u=function(e,o){e.stopPropagation(),m(r)&&!1===r(e,t)||(t.value=c.value,t.composing&&n.ignoreCompositionEvent||i(e,{value:c.value,cursor:l(c)},o))};function d(e){n.ignoreCompositionEvent||o(e.type,e,{value:e.data})}c.addEventListener("change",e=>e.stopPropagation()),c.addEventListener("focus",function(e){t.focus=!0,o("focus",e,{value:t.value}),s(),a()}),c.addEventListener("blur",function(e){t.composing&&(t.composing=!1,u(e,!0)),t.focus=!1,o("blur",e,{value:t.value,cursor:l(e.target)})}),c.addEventListener("input",u),c.addEventListener("compositionstart",e=>{e.stopPropagation(),t.composing=!0,d(e)}),c.addEventListener("compositionend",e=>{e.stopPropagation(),t.composing&&(t.composing=!1,u(e)),d(e)}),c.addEventListener("compositionupdate",d)})}(i,r,e,s,a,o);return{fieldRef:i,state:r,scopedAttrsState:l,fixDisabledColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image"),trigger:s}}const rg=c({},eg,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),sg=Ie(()=>{{const e=navigator.userAgent;let t="";const n=e.match(/OS\s([\w_]+)\slike/);if(n)t=n[1].replace(/_/g,".");else if(/Macintosh|Mac/i.test(e)&&navigator.maxTouchPoints>0){const n=e.match(/Version\/(\S*)\b/);n&&(t=n[1])}return!!t&&parseInt(t)>=16&&parseFloat(t)<17.2}});function ag(e,t,n,o,i){if(t.value)if("."===e.data){if("."===t.value.slice(-1))return n.value=o.value=t.value=t.value.slice(0,-1),!1;if(t.value&&!t.value.includes("."))return t.value+=".",i&&(i.fn=()=>{n.value=o.value=t.value=t.value.slice(0,-1),o.removeEventListener("blur",i.fn)},o.addEventListener("blur",i.fn)),!1}else if("deleteContentBackward"===e.inputType&&sg()&&"."===t.value.slice(-2,-1))return t.value=n.value=o.value=t.value.slice(0,-2),!0}function lg(e){return"insertFromPaste"===e.inputType}const cg=Xu({name:"Input",props:rg,emits:["confirm",...tg],setup(e,{emit:t,expose:n}){const o=["text","number","idcard","digit","password","tel"],i=["off","one-time-code"],r=os(()=>{let t="";switch(e.type){case"text":t="text","search"===e.confirmType&&(t="search");break;case"idcard":t="text";break;case"digit":t="number";break;default:t=o.includes(e.type)?e.type:"text"}return e.password?"password":t}),s=os(()=>{const t=i.indexOf(e.textContentType),n=i.indexOf(P(e.textContentType));return i[-1!==t?t:-1!==n?n:0]}),a=os(()=>{if(e.inputmode)return e.inputmode});let l=function(e,t){if("number"===t.value){const t=void 0===e.modelValue?e.value:e.modelValue,n=Dn(null!=t?t.toLocaleString():"");return Oo(()=>e.modelValue,e=>{n.value=null!=e?e.toLocaleString():""}),Oo(()=>e.value,e=>{n.value=null!=e?e.toLocaleString():""}),n}return Dn("")}(e,r),c={fn:null};const u=Dn(null),{fieldRef:d,state:f,scopedAttrsState:p,fixDisabledColor:h,trigger:g}=ig(e,u,t,(e,t)=>{const n=e.target;if("number"===r.value){if(c.fn&&(n.removeEventListener("blur",c.fn),c.fn=null),n.validity&&!n.validity.valid){if((!l.value||!n.value)&&"-"===e.data||"-"===l.value[0]&&"deleteContentBackward"===e.inputType)return l.value="-",t.value="",c.fn=()=>{l.value=n.value=""},n.addEventListener("blur",c.fn),!1;const o=ag(e,l,t,n,c);return"boolean"==typeof o?o:(l.value=t.value=n.value="-"===l.value?"":l.value,!1)}{const o=ag(e,l,t,n,c);if("boolean"==typeof o)return o;l.value=n.value}if(t.maxlength>0&&n.value.length>t.maxlength&&!lg(e))return n.value=l.value=t.value,!1}});Oo(()=>f.value,t=>{"number"!==e.type||"-"===l.value&&""===t||(l.value=t.toString())}),Oo(()=>e.maxlength,e=>{e=parseInt(e,10);const t=f.value.slice(0,e);t!==f.value&&(f.value=t)});const m=["number","digit"],v=os(()=>m.includes(e.type)?e.step:"");function y(t){if("Enter"!==t.key)return;const n=t.target;t.stopPropagation(),g("confirm",t,{value:n.value}),!e.confirmHold&&n.blur()}return n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),f.value=e.value}}),()=>{let t=e.disabled&&h?Ir("input",{key:"disabled-input",ref:d,value:f.value,tabindex:"-1",readonly:!!e.disabled,type:r.value,maxlength:f.maxlength,step:v.value,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},onFocus:e=>e.target.blur()},null,44,["value","readonly","type","maxlength","step","onFocus"]):Ir("input",{key:"input",ref:d,value:f.value,onInput:e=>{const t=e.target.value.toString();"number"===r.value&&f.maxlength>0&&t.length>f.maxlength?lg(e)&&(f.value=t.slice(0,f.maxlength)):f.value=t},disabled:!!e.disabled,type:r.value,maxlength:f.maxlength,step:v.value,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":void 0,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},autocomplete:s.value,onKeyup:y,inputmode:a.value},null,44,["value","onInput","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup","inputmode"]);return Ir("uni-input",{ref:u},[Ir("div",{class:"uni-input-wrapper"},[zo(Ir("div",jr(p.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Ts,!(f.value.length||"-"===l.value||l.value.includes("."))]]),"search"===e.confirmType?Ir("form",{action:"",onSubmit:e=>e.preventDefault(),class:"uni-input-form"},[t],40,["onSubmit"]):t])],512)}}});const ug=["class","style"],dg=/^on[A-Z]+/,fg=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n=[]}=e,o=Ur(),i=Rn({}),r=Rn({}),s=Rn({}),a=n.concat(ug);return o.attrs=bn(o.attrs),Po(()=>{const e=(n=o.attrs,Object.keys(n).map(e=>[e,n[e]])).reduce((e,[n,o])=>(a.includes(n)?e.exclude[n]=o:dg.test(n)?(t||(e.attrs[n]=o),e.listeners[n]=o):e.attrs[n]=o,e),{exclude:{},attrs:{},listeners:{}});var n;i.value=e.attrs,r.value=e.listeners,s.value=e.exclude}),{$attrs:i,$listeners:r,$excludeAttrs:s}};function pg(e){const t=[];return p(e)&&e.forEach(e=>{Er(e)?e.type===mr?t.push(...pg(e.children)):t.push(e):p(e)&&t.push(...pg(e))}),t}const hg=function(e,t,n,o){e.addEventListener(t,e=>{m(n)&&!1===n(e)&&((void 0===e.cancelable||e.cancelable)&&e.preventDefault(),e.stopPropagation())},{passive:!1})};let gg,mg;function vg(e,t,n){bi(()=>{document.removeEventListener("mousemove",gg),document.removeEventListener("mouseup",mg)});let o=0,i=0,r=0,s=0;const a=function(e,n,a,l){if(!1===t({cancelable:e.cancelable,target:e.target,currentTarget:e.currentTarget,preventDefault:e.preventDefault.bind(e),stopPropagation:e.stopPropagation.bind(e),touches:e.touches,changedTouches:e.changedTouches,detail:{state:n,x:a,y:l,dx:a-o,dy:l-i,ddx:a-r,ddy:l-s,timeStamp:e.timeStamp}}))return!1};let l,c,u=null;hg(e,"touchstart",function(e){if(l=!0,1===e.touches.length&&!u)return u=e,o=r=e.touches[0].pageX,i=s=e.touches[0].pageY,a(e,"start",o,i)}),hg(e,"mousedown",function(e){if(c=!0,!l&&!u)return u=e,o=r=e.pageX,i=s=e.pageY,a(e,"start",o,i)}),hg(e,"touchmove",function(e){if(1===e.touches.length&&u){const t=a(e,"move",e.touches[0].pageX,e.touches[0].pageY);return r=e.touches[0].pageX,s=e.touches[0].pageY,t}});const d=gg=function(e){if(!l&&c&&u){const t=a(e,"move",e.pageX,e.pageY);return r=e.pageX,s=e.pageY,t}};document.addEventListener("mousemove",d),hg(e,"touchend",function(e){if(0===e.touches.length&&u)return l=!1,u=null,a(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)});const f=mg=function(e){if(c=!1,!l&&u)return u=null,a(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",f),hg(e,"touchcancel",function(e){if(u){l=!1;const t=u;return u=null,a(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}})}class yg{constructor(e){this._drag=e,this._dragLog=Math.log(e),this._x=0,this._v=0,this._startTime=0}set(e,t){this._x=e,this._v=t,this._startTime=(new Date).getTime()}setVelocityByEnd(e){this._v=(e-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)}x(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);const t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._x+this._v*t/this._dragLog-this._v/this._dragLog}dx(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);const t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._v*t}done(){return Math.abs(this.dx())<3}reconfigure(e){const t=this.x(),n=this.dx();this._drag=e,this._dragLog=Math.log(e),this.set(t,n)}configuration(){const e=this;return[{label:"Friction",read:function(){return e._drag},write:function(t){e.reconfigure(t)},min:.001,max:.1,step:.001}]}}function bg(e,t,n){return e>t-n&&e0){const i=(-n-Math.sqrt(r))/(2*o),s=(-n+Math.sqrt(r))/(2*o),a=(t-i*e)/(s-i),l=e-a;return{x:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,i*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*t+a*n},dx:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,i*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*i*t+a*s*n}}}const s=Math.sqrt(4*o*i-n*n)/(2*o),a=-n/2*o,l=e,c=(t-a*e)/s;return{x:function(e){return Math.pow(Math.E,a*e)*(l*Math.cos(s*e)+c*Math.sin(s*e))},dx:function(e){const t=Math.pow(Math.E,a*e),n=Math.cos(s*e),o=Math.sin(s*e);return t*(c*s*n-l*s*o)+a*t*(c*o+l*n)}}}x(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0}dx(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0}setEnd(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!_g(t,.4)){t=t||0;let o=this._endPosition;this._solution&&(_g(t,.4)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),_g(t,.4)&&(t=0),_g(o,.4)&&(o=0),o+=this._endPosition),this._solution&&_g(o-e,.4)&&_g(t,.4)||(this._endPosition=e,this._solution=this._solve(o-this._endPosition,t),this._startTime=n)}}snap(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}}done(e){return e||(e=(new Date).getTime()),bg(this.x(),this._endPosition,.4)&&_g(this.dx(),.4)}reconfigure(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())}springConstant(){return this._k}damping(){return this._c}configuration(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]}}class xg{constructor(e,t,n){this._extent=e,this._friction=t||new yg(.01),this._spring=n||new wg(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}snap(e,t){this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(t)}set(e,t){this._friction.set(e,t),e>0&&t>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(0)):e<-this._extent&&t<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=(new Date).getTime()}x(e){if(!this._startTime)return 0;if(e||(e=((new Date).getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;let t=this._friction.x(e),n=this.dx(e);return(t>0&&n>=0||t<-this._extent&&n<=0)&&(this._springing=!0,this._spring.setEnd(0,n),t<-this._extent?this._springOffset=-this._extent:this._springOffset=0,t=this._spring.x()+this._springOffset),t}dx(e){let t;return t=this._lastTime===e?this._lastDx:this._springing?this._spring.dx(e):this._friction.dx(e),this._lastTime=e,this._lastDx=t,t}done(){return this._springing?this._spring.done():this._friction.done()}setVelocityByEnd(e){this._friction.setVelocityByEnd(e)}configuration(){const e=this._friction.configuration();return e.push.apply(e,this._spring.configuration()),e}}class Cg{constructor(e,t){t=t||{},this._element=e,this._options=t,this._enableSnap=t.enableSnap||!1,this._itemSize=t.itemSize||0,this._enableX=t.enableX||!1,this._enableY=t.enableY||!1,this._shouldDispatchScrollEvent=!!t.onScroll,this._enableX?(this._extent=(t.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=t.scrollWidth):(this._extent=(t.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=t.scrollHeight),this._position=0,this._scroll=new xg(this._extent,t.friction,t.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}onTouchStart(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()}onTouchMove(e,t){let n=this._startPosition;this._enableX?n+=e:this._enableY&&(n+=t),n>0?n*=.5:n<-this._extent&&(n=.5*(n+this._extent)-this._extent),this._position=n,this.updatePosition(),this.dispatchScroll()}onTouchEnd(e,t,n){if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(t)this._itemSize/2?e-(this._itemSize-Math.abs(t)):e-t,o<=0&&o>=-this._extent&&this._scroll.setVelocityByEnd(o)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=function(e,t,n){const o={id:0,cancelled:!1};return function e(t,n,o,i){if(!t||!t.cancelled){o(n);const r=n.done();r||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,i))),r&&i&&i(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}(this._scroll,()=>{const e=Date.now(),t=(e-this._scroll._startTime)/1e3,n=this._scroll.x(t);this._position=n,this.updatePosition();const o=this._scroll.dx(t);this._shouldDispatchScrollEvent&&e-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/o),this._lastTime=e)},()=>{this._enableSnap&&(o<=0&&o>=-this._extent&&(this._position=o,this.updatePosition()),m(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._shouldDispatchScrollEvent&&this.dispatchScroll(),this._scrolling=!1})}onTransitionEnd(){this._element.style.webkitTransition="",this._element.style.transition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()}snap(){const e=this._itemSize,t=this._position%e,n=Math.abs(t)>this._itemSize/2?this._position-(e-Math.abs(t)):this._position-t;this._position!==n&&(this._snapping=!0,this.scrollTo(-n),m(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))}scrollTo(e,t){this._animation&&(this._animation.cancel(),this._scrolling=!1),"number"==typeof e&&(this._position=-e),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0);const n="transform "+(t||.2)+"s ease-out";this._element.style.webkitTransition="-webkit-"+n,this._element.style.transition=n,this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd)}dispatchScroll(){if(m(this._options.onScroll)&&Math.round(Number(this._lastPos))!==Math.round(this._position)){this._lastPos=this._position;const e={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(e)}}update(e,t,n){let o=0;const i=this._position;this._enableX?(o=this._element.childNodes.length?(t||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=t):(o=this._element.childNodes.length?(t||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=t),"number"==typeof e&&(this._position=-e),this._position<-o?this._position=-o:this._position>0&&(this._position=0),this._itemSize=n||this._itemSize,this.updatePosition(),i!==this._position&&(this.dispatchScroll(),m(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=o,this._scroll._extent=o}updatePosition(){let e="";this._enableX?e="translateX("+this._position+"px) translateZ(0)":this._enableY&&(e="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=e,this._element.style.transform=e}isScrolling(){return this._scrolling||this._snapping}}const Sg={a:"",abbr:"",address:"",article:"",aside:"",b:"",bdi:"",bdo:["dir"],big:"",blockquote:"",br:"",caption:"",center:"",cite:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",font:"",footer:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",header:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",mark:"",nav:"",ol:["start","type"],p:"",pre:"",q:"",rt:"",ruby:"",s:"",section:"",small:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","height","rowspan","width"],tfoot:"",th:["colspan","height","rowspan","width"],thead:"",tr:["colspan","height","rowspan","width"],tt:"",u:"",ul:""},kg={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'",ldquo:"“",rdquo:"”",yen:"¥",radic:"√",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",hellip:"…"};const Tg=(e,t,n)=>!n||p(n)&&!n.length?[]:n.map(n=>{var o;if(C(n)){if(!f(n,"type")||"node"===n.type){let i={[e]:""};const r=null==(o=n.name)?void 0:o.toLowerCase();if(!f(Sg,r))return;return function(e,t){if(C(t))for(const n in t)if(f(t,n)){const o=t[n];"img"===e&&"src"===n&&(t[n]=Xp(o))}}(r,n.attrs),i=c(i,function(e,t){if(["a","img"].includes(e.name)&&t)return{onClickCapture:n=>{t(n,{node:e}),n.stopPropagation(),n.preventDefault(),n.returnValue=!1}}}(n,t),n.attrs),is(n.name,i,Tg(e,t,n.children))}return"text"===n.type&&v(n.text)&&""!==n.text?Rr((n.text||"").replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,function(e,t){return f(kg,t)&&kg[t]?kg[t]:/^#[0-9]{1,4}$/.test(t)?String.fromCharCode(t.slice(1)):/^#x[0-9a-f]{1,4}$/i.test(t)?String.fromCharCode(0+t.slice(1)):e})):void 0}});function Ag(e){e=function(e){return e.replace(/<\?xml.*\?>\n/,"").replace(/\n/,"").replace(/\n/,"")}(e);const t=[],n={children:[]};return function(e,t){var n,o,i,r=[],s=e;for(r.last=function(){return this[this.length-1]};e;){if(o=!0,r.last()&&zh[r.last()])e=e.replace(new RegExp("([\\s\\S]*?)]*>"),function(e,n){return n=n.replace(/|/g,"$1$2"),t.chars&&t.chars(n),""}),c("",r.last());else if(0==e.indexOf("\x3c!--")?(n=e.indexOf("--\x3e"))>=0&&(t.comment&&t.comment(e.substring(4,n)),e=e.substring(n+3),o=!1):0==e.indexOf("=0&&r[o]!=n;o--);else var o=0;if(o>=0){for(var i=r.length-1;i>=o;i--)t.end&&t.end(r[i]);r.length=o}}c()}(e,{start:function(e,o,i){const r={name:e};if(0!==o.length&&(r.attrs=function(e){return e.reduce(function(e,t){let n=t.value;const o=t.name;return n.match(/ /)&&-1===["style","src"].indexOf(o)&&(n=n.split(" ")),e[o]?Array.isArray(e[o])?e[o].push(n):e[o]=[e[o],n]:e[o]=n,e},{})}(o)),i){const e=t[0]||n;e.children||(e.children=[]),e.children.push(r)}else t.unshift(r)},end:function(e){const o=t.shift();if(o.name!==e&&console.error("invalid state: mismatch end tag"),0===t.length)n.children.push(o);else{const e=t[0];e.children||(e.children=[]),e.children.push(o)}},chars:function(e){const o={type:"text",text:e};if(0===t.length)n.children.push(o);else{const e=t[0];e.children||(e.children=[]),e.children.push(o)}},comment:function(e){const n={node:"comment",text:e},o=t[0];o&&(o.children||(o.children=[]),o.children.push(n))}}),n.children}const Eg=Xu({name:"RichText",compatConfig:{MODE:3},props:{nodes:{type:[Array,String],default:function(){return[]}}},emits:["itemclick"],setup(e,{emit:t}){const n=Ur(),o=n&&n.vnode.scopeId||"",i=Dn(null),r=Dn([]),s=Ku(i,t);function a(e,t={}){s("itemclick",e,t)}return Oo(()=>e.nodes,function(){let t=e.nodes;v(t)&&(t=Ag(e.nodes)),r.value=Tg(o,a,t)},{immediate:!0,deep:!0}),()=>is("uni-rich-text",{ref:i},is("div",{},r.value))}}),Mg=Xu({name:"Refresher",props:{refreshState:{type:String,default:""},refresherHeight:{type:Number,default:0},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"},refresherBackground:{type:String,default:"#fff"}},setup(e,{slots:t}){const n=Dn(null),o=os(()=>{const t={backgroundColor:e.refresherBackground};switch(e.refreshState){case"pulling":t.height=e.refresherHeight+"px";break;case"refreshing":t.height=e.refresherThreshold+"px",t.transition="height 0.3s";break;case"":case"refresherabort":case"restore":t.height="0px",t.transition="height 0.3s"}return t}),i=os(()=>{const t=e.refresherHeight/e.refresherThreshold;return 360*(t>1?1:t)});return()=>{const{refreshState:r,refresherDefaultStyle:s,refresherThreshold:a}=e;return Ir("div",{ref:n,style:o.value,class:"uni-scroll-view-refresher"},["none"!==s?Ir("div",{class:"uni-scroll-view-refresh"},[Ir("div",{class:"uni-scroll-view-refresh-inner"},["pulling"==r?Ir("svg",{key:"refresh__icon",style:{transform:"rotate("+i.value+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[Ir("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null),Ir("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,"refreshing"==r?Ir("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[Ir("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,"none"===s?Ir("div",{class:"uni-scroll-view-refresher-container",style:{height:`${a}px`}},[t.default&&t.default()]):null],4)}}}),Pg=Xe(!0),Lg=Xu({name:"ScrollView",compatConfig:{MODE:3},props:{direction:{type:[String],default:"vertical"},scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},showScrollbar:{type:[Boolean,String],default:!0},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,{emit:t,slots:n,expose:o}){const i=Dn(null),r=Dn(null),s=Dn(null),a=Dn(null),l=Ku(i,t),{state:c,scrollTopNumber:u,scrollLeftNumber:d}=function(e){const t=os(()=>Number(e.scrollTop)||0),n=os(()=>Number(e.scrollLeft)||0),o=bn({lastScrollTop:t.value,lastScrollLeft:n.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshState:""});return{state:o,scrollTopNumber:t,scrollLeftNumber:n}}(e),{realScrollX:f,realScrollY:p}=function(e,t,n,o,i,r,s,a,l){let c=!1,u=0,d=!1,f=()=>{};const p=os(()=>e.scrollX),h=os(()=>e.scrollY),g=os(()=>{let t=Number(e.upperThreshold);return isNaN(t)?50:t}),m=os(()=>{let t=Number(e.lowerThreshold);return isNaN(t)?50:t});function v(e,t){const n=s.value;let o=0,i="";if(e<0?e=0:"x"===t&&e>n.scrollWidth-n.offsetWidth?e=n.scrollWidth-n.offsetWidth:"y"===t&&e>n.scrollHeight-n.offsetHeight&&(e=n.scrollHeight-n.offsetHeight),"x"===t?o=n.scrollLeft-e:"y"===t&&(o=n.scrollTop-e),0===o)return;let r=a.value;r.style.transition="transform .3s ease-out",r.style.webkitTransition="-webkit-transform .3s ease-out","x"===t?i="translateX("+o+"px) translateZ(0)":"y"===t&&(i="translateY("+o+"px) translateZ(0)"),r.removeEventListener("transitionend",f),r.removeEventListener("webkitTransitionEnd",f),f=()=>x(e,t),r.addEventListener("transitionend",f),r.addEventListener("webkitTransitionEnd",f),"x"===t?n.style.overflowX="hidden":"y"===t&&(n.style.overflowY="hidden"),r.style.transform=i,r.style.webkitTransform=i}function y(e){const n=e.target;i("scroll",e,{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollHeight:n.scrollHeight,scrollWidth:n.scrollWidth,deltaX:t.lastScrollLeft-n.scrollLeft,deltaY:t.lastScrollTop-n.scrollTop}),h.value&&(n.scrollTop<=g.value&&t.lastScrollTop-n.scrollTop>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(i("scrolltoupper",e,{direction:"top"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollTop+n.offsetHeight+m.value>=n.scrollHeight&&t.lastScrollTop-n.scrollTop<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(i("scrolltolower",e,{direction:"bottom"}),t.lastScrollToLowerTime=e.timeStamp)),p.value&&(n.scrollLeft<=g.value&&t.lastScrollLeft-n.scrollLeft>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(i("scrolltoupper",e,{direction:"left"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollLeft+n.offsetWidth+m.value>=n.scrollWidth&&t.lastScrollLeft-n.scrollLeft<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(i("scrolltolower",e,{direction:"right"}),t.lastScrollToLowerTime=e.timeStamp)),t.lastScrollTop=n.scrollTop,t.lastScrollLeft=n.scrollLeft}function b(t){h.value&&(e.scrollWithAnimation?v(t,"y"):s.value.scrollTop=t)}function _(t){p.value&&(e.scrollWithAnimation?v(t,"x"):s.value.scrollLeft=t)}function w(t){if(t){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(t))return void console.error(`id error: scroll-into-view=${t}`);let n=r.value.querySelector("#"+t);if(n){let t=s.value.getBoundingClientRect(),o=n.getBoundingClientRect();if(p.value){let n=o.left-t.left,i=s.value.scrollLeft+n;e.scrollWithAnimation?v(i,"x"):s.value.scrollLeft=i}if(h.value){let n=o.top-t.top,i=s.value.scrollTop+n;e.scrollWithAnimation?v(i,"y"):s.value.scrollTop=i}}}}function x(e,t){a.value.style.transition="",a.value.style.webkitTransition="",a.value.style.transform="",a.value.style.webkitTransform="";let n=s.value;"x"===t?(n.style.overflowX=p.value?"auto":"hidden",n.scrollLeft=e):"y"===t&&(n.style.overflowY=h.value?"auto":"hidden",n.scrollTop=e),a.value.removeEventListener("transitionend",f),a.value.removeEventListener("webkitTransitionEnd",f)}function C(n){if(e.refresherEnabled){switch(n){case"refreshing":t.refresherHeight=e.refresherThreshold,c||(c=!0,i("refresherpulling",{},{deltaY:t.refresherHeight,dy:t.refresherHeight}),i("refresherrefresh",{},{dy:k.y-S.y}),l("update:refresherTriggered",!0));break;case"restore":case"refresherabort":c=!1,t.refresherHeight=u=0,"restore"===n&&(d=!1,i("refresherrestore",{},{dy:k.y-S.y})),"refresherabort"===n&&d&&(d=!1,i("refresherabort",{},{dy:k.y-S.y}))}t.refreshState=n}}let S={x:0,y:0},k={y:e.refresherThreshold};return mi(()=>{to(()=>{b(n.value),_(o.value)}),w(e.scrollIntoView);let r=function(e){e.preventDefault(),e.stopPropagation(),y(e)},a=null,l=function(n){if(null===S)return;let o=n.touches[0].pageX,r=n.touches[0].pageY,l=s.value;if(Math.abs(o-S.x)>Math.abs(r-S.y))if(p.value){if(0===l.scrollLeft&&o>S.x)return void(a=!1);if(l.scrollWidth===l.offsetWidth+l.scrollLeft&&oS.y)a=!1,e.refresherEnabled&&!1!==n.cancelable&&n.preventDefault();else{if(l.scrollHeight===l.offsetHeight+l.scrollTop&&r0&&(d=!0,i("refresherpulling",n,{deltaY:o,dy:o})))}},f=function(e){1===e.touches.length&&(S={x:e.touches[0].pageX,y:e.touches[0].pageY})},g=function(n){k={x:n.changedTouches[0].pageX,y:n.changedTouches[0].pageY},t.refresherHeight>=e.refresherThreshold?C("refreshing"):C("refresherabort"),S={x:0,y:0},k={x:0,y:e.refresherThreshold}};s.value.addEventListener("touchstart",f,Pg),s.value.addEventListener("touchmove",l,Xe(!1)),s.value.addEventListener("scroll",r,Xe(!1)),s.value.addEventListener("touchend",g,Pg),bi(()=>{s.value.removeEventListener("touchstart",f),s.value.removeEventListener("touchmove",l),s.value.removeEventListener("scroll",r),s.value.removeEventListener("touchend",g)})}),ri(()=>{h.value&&(s.value.scrollTop=t.lastScrollTop),p.value&&(s.value.scrollLeft=t.lastScrollLeft)}),Oo(n,e=>{b(e)}),Oo(o,e=>{_(e)}),Oo(()=>e.scrollIntoView,e=>{w(e)}),Oo(()=>e.refresherTriggered,e=>{!0===e?C("refreshing"):!1===e&&C("restore")}),{realScrollX:p,realScrollY:h,_scrollTopChanged:b,_scrollLeftChanged:_}}(e,c,u,d,l,i,r,a,t),h=os(()=>{let e="";return f.value?e+="overflow-x:auto;":e+="overflow-x:hidden;",p.value?e+="overflow-y:auto;":e+="overflow-y:hidden;",e}),g=os(()=>{let t="uni-scroll-view";return!1===e.showScrollbar&&(t+=" uni-scroll-view-scrollbar-hidden"),t});return o({$getMain:()=>r.value}),()=>{const{refresherEnabled:t,refresherBackground:o,refresherDefaultStyle:l,refresherThreshold:u}=e,{refresherHeight:d,refreshState:f}=c;return Ir("uni-scroll-view",{ref:i},[Ir("div",{ref:s,class:"uni-scroll-view"},[Ir("div",{ref:r,style:h.value,class:g.value},[t?Ir(Mg,{refreshState:f,refresherHeight:d,refresherThreshold:u,refresherDefaultStyle:l,refresherBackground:o},{default:()=>["none"==l?n.refresher&&n.refresher():null]},8,["refreshState","refresherHeight","refresherThreshold","refresherDefaultStyle","refresherBackground"]):null,Ir("div",{ref:a,class:"uni-scroll-view-content"},[n.default&&n.default()],512)],6)],512)],512)}}});function Og(e,t,n,o,i,r){function s(){c&&(clearTimeout(c),c=null)}let a,l,c=null,u=!0,d=0,f=1,p=null,h=!1,g=0,m="";const v=os(()=>n.value.length>t.displayMultipleItems),y=os(()=>e.circular&&v.value);function b(i){Math.floor(2*d)===Math.floor(2*i)&&Math.ceil(2*d)===Math.ceil(2*i)||y.value&&function(o){if(!u)for(let i=n.value,r=i.length,s=o+t.displayMultipleItems,a=0;a=c.length&&(i-=c.length),i=a%1>.5||a<0?i-1:i,r("transition",{},{dx:e.vertical?0:i*l.offsetWidth,dy:e.vertical?i*l.offsetHeight:0})}function _(e){const o=n.value.length;if(!o)return-1;const i=(Math.round(e)%o+o)%o;if(y.value){if(o<=t.displayMultipleItems)return 0}else if(i>o-t.displayMultipleItems)return o-t.displayMultipleItems;return i}function w(){p=null}function x(){if(!p)return void(h=!1);const e=p,o=e.toPos,i=e.acc,s=e.endTime,c=e.source,u=s-Date.now();if(u<=0){b(o),p=null,h=!1,a=null;const e=n.value[t.current];if(e){const n=e.getItemId();r("animationfinish",{},{current:t.current,currentItemId:n,source:c})}return}b(o+i*u*u/2),l=requestAnimationFrame(x)}function C(e,o,i){w();const r=t.duration,s=n.value.length;let a=d;if(y.value)if(i<0){for(;ae;)a-=s}else if(i>0){for(;a>e;)a-=s;for(;a+se;)a-=s;a+s-ee.current,()=>e.currentItemId,()=>[...n.value]],()=>{let o=-1;if(e.currentItemId)for(let t=0,i=n.value;te.vertical,()=>y.value,()=>t.displayMultipleItems,()=>[...n.value]],function(){s(),p&&(b(p.toPos),p=null);const i=n.value;for(let t=0;t0&&f<1||(f=1)}const a=d;d=-2;const l=t.current;l>=0?(u=!1,t.userTracking?(b(a+l-g),g=l):(b(l),e.autoplay&&S())):(u=!0,b(-t.displayMultipleItems-1))}),Oo(()=>t.interval,()=>{c&&(s(),S())}),Oo(()=>t.current,(e,o)=>{!function(e,o){const i=m;m="";const s=n.value;if(!i){const t=s.length;C(e,"",y.value&&o+(t-e)%t>t/2?1:0)}const a=s[e];if(a){const e=t.currentItemId=a.getItemId();r("change",{},{current:t.current,currentItemId:e,source:i})}}(e,o),i("update:current",e)}),Oo(()=>t.currentItemId,e=>{i("update:currentItemId",e)}),Oo(()=>e.autoplay&&!t.userTracking,k),k(e.autoplay&&!t.userTracking),mi(()=>{let i=!1,r=0,a=0;function l(e){t.userTracking=!1;const n=r/Math.abs(r);let o=0;!e&&Math.abs(r)>.2&&(o=.5*n);const i=_(d+o);e?b(g):(m="touch",t.current=i,C(i,"touch",0!==o?o:0===i&&y.value&&d>=1?1:0))}vg(o.value,c=>{if(!e.disableTouch&&!u){if("start"===c.detail.state)return t.userTracking=!0,i=!1,s(),g=d,r=0,a=Date.now(),void w();if("end"===c.detail.state)return l(!1);if("cancel"===c.detail.state)return l(!0);if(t.userTracking){if(!i){i=!0;const n=Math.abs(c.detail.dx),o=Math.abs(c.detail.dy);if((n>=o&&e.vertical||n<=o&&!e.vertical)&&(t.userTracking=!1),!t.userTracking)return void(e.autoplay&&S())}return function(i){const s=a;a=Date.now();const l=n.value.length-t.displayMultipleItems;function c(e){return.5-.25/(e+.5)}function u(e,t){let n=g+e;r=.6*r+.4*t,y.value||(n<0||n>l)&&(n<0?n=-c(-n):n>l&&(n=l+c(n-l)),r=0),b(n)}const d=a-s||1,f=o.value;e.vertical?u(-i.dy/f.offsetHeight,-i.ddy/d):u(-i.dx/f.offsetWidth,-i.ddx/d)}(c.detail),!1}}})}),_i(()=>{s(),cancelAnimationFrame(l)}),{onSwiperDotClick:function(e){C(t.current=e,m="click",y.value?1:0)},circularEnabled:y,swiperEnabled:v}}const $g=Xu({name:"Swiper",props:{indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1},navigation:{type:[Boolean,String],default:!1},navigationColor:{type:String,default:"#fff"},navigationActiveColor:{type:String,default:"rgba(53, 53, 53, 0.6)"}},emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,{slots:t,emit:n}){const o=Dn(null),i=Ku(o,n),r=Dn(null),s=Dn(null),a=function(e){return bn({interval:os(()=>{const t=Number(e.interval);return isNaN(t)?5e3:t}),duration:os(()=>{const t=Number(e.duration);return isNaN(t)?500:t}),displayMultipleItems:os(()=>{const t=Math.round(e.displayMultipleItems);return isNaN(t)?1:t}),current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1})}(e),l=os(()=>{let t={};return(e.nextMargin||e.previousMargin)&&(t=e.vertical?{left:0,right:0,top:Qc(e.previousMargin,!0),bottom:Qc(e.nextMargin,!0)}:{top:0,bottom:0,left:Qc(e.previousMargin,!0),right:Qc(e.nextMargin,!0)}),t}),c=os(()=>{const t=Math.abs(100/a.displayMultipleItems)+"%";return{width:e.vertical?"100%":t,height:e.vertical?t:"100%"}});let u=[];const d=[],f=Dn([]);function p(){const e=[];for(let t=0;tn===e.rootRef.value);o&&e.push(En(o))}f.value=e}Gi("addSwiperContext",function(e){d.push(e),p()});Gi("removeSwiperContext",function(e){const t=d.indexOf(e);t>=0&&(d.splice(t,1),p())});const{onSwiperDotClick:h,circularEnabled:g,swiperEnabled:m}=Og(e,a,f,s,n,i);let v=()=>null;return v=Ig(o,e,a,h,f,g,m),()=>{const n=t.default&&t.default();return u=pg(n),Ir("uni-swiper",{ref:o},[Ir("div",{ref:r,class:"uni-swiper-wrapper"},[Ir("div",{class:"uni-swiper-slides",style:l.value},[Ir("div",{ref:s,class:"uni-swiper-slide-frame",style:c.value},[n],4)],4),e.indicatorDots&&Ir("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[f.value.map((t,n,o)=>Ir("div",{onClick:()=>h(n),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":n=a.current||n{let a=!1,l=!1,u=!1,d=Dn(!1);function f(e,n){const o=e.currentTarget;o&&(o.style.backgroundColor="over"===n?t.navigationActiveColor:"")}Po(()=>{a="auto"===t.navigation,d.value=!0!==t.navigation||a,b()}),Po(()=>{const e=i.value.length,t=!r.value;l=0===n.current&&t,u=n.current===e-1&&t||t&&n.current+n.displayMultipleItems>=e,s.value||(l=!0,u=!0,a&&(d.value=!0))});const p={onMouseover:e=>f(e,"over"),onMouseout:e=>f(e,"out")};function h(e,t,s){if(e.stopPropagation(),s)return;const a=i.value.length;let l=n.current;switch(t){case"prev":l--,l<0&&r.value&&(l=a-1);break;case"next":l++,l>=a&&r.value&&(l=0)}o(l)}const g=()=>iu(ou,t.navigationColor,26);let m;const v=n=>{clearTimeout(m);const{clientX:o,clientY:i}=n,{left:r,right:s,top:a,bottom:l,width:c,height:u}=e.value.getBoundingClientRect();let f=!1;if(f=t.vertical?!(i-a{d.value=f},300);d.value=f},y=()=>{d.value=!0};function b(){e.value&&(e.value.removeEventListener("mousemove",v),e.value.removeEventListener("mouseleave",y),a&&(e.value.addEventListener("mousemove",v),e.value.addEventListener("mouseleave",y)))}return mi(b),function(){const e={"uni-swiper-navigation-hide":d.value,"uni-swiper-navigation-vertical":t.vertical};return t.navigation?Ir(mr,null,[Ir("div",jr({class:["uni-swiper-navigation uni-swiper-navigation-prev",c({"uni-swiper-navigation-disabled":l},e)],onClick:e=>h(e,"prev",l)},p),[g()],16,["onClick"]),Ir("div",jr({class:["uni-swiper-navigation uni-swiper-navigation-next",c({"uni-swiper-navigation-disabled":u},e)],onClick:e=>h(e,"next",u)},p),[g()],16,["onClick"])]):null}},Dg=Xu({name:"SwiperItem",props:{itemId:{type:String,default:""}},setup(e,{slots:t}){const n=Dn(null),o={rootRef:n,getItemId:()=>e.itemId,getBoundingClientRect:()=>n.value.getBoundingClientRect(),updatePosition(e,t){const o=t?"0":100*e+"%",i=t?100*e+"%":"0",r=n.value,s=`translate(${o},${i}) translateZ(0)`;r&&(r.style.webkitTransform=s,r.style.transform=s)}};return mi(()=>{const e=Ki("addSwiperContext");e&&e(o)}),_i(()=>{const e=Ki("removeSwiperContext");e&&e(o)}),()=>Ir("uni-swiper-item",{ref:n,style:{position:"absolute",width:"100%",height:"100%"}},[t.default&&t.default()],512)}}),Rg={ensp:" ",emsp:" ",nbsp:" "};function zg(e,t){return function(e,{space:t,decode:n}){let o="",i=!1;for(let r of e)t&&Rg[t]&&" "===r&&(r=Rg[t]),i?(o+="n"===r?ee:"\\"===r?"\\":"\\"+r,i=!1):"\\"===r?i=!0:o+=r;return n?o.replace(/ /g,Rg.nbsp).replace(/ /g,Rg.ensp).replace(/ /g,Rg.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"):o}(e,t).split(ee)}const Bg=Xu({name:"Text",props:{selectable:{type:[Boolean,String],default:!1},space:{type:String,default:""},decode:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=Dn(null);return()=>{const o=[];return t.default&&t.default().forEach(t=>{if(8&t.shapeFlag&&t.type!==yr){const n=zg(t.children,{space:e.space,decode:e.decode}),i=n.length-1;n.forEach((e,t)=>{(0!==t||e)&&o.push(Rr(e)),t!==i&&o.push(Ir("br"))})}else o.push(t)}),Ir("uni-text",{ref:n,selectable:!!e.selectable||null},[Ir("span",null,o)],8,["selectable"])}}}),Ng=Xu({name:"View",props:c({},Ju),setup(e,{slots:t}){const n=Dn(null),{hovering:o,binding:i}=Qu(e);return()=>{const r=e.hoverClass;return r&&"none"!==r?Ir("uni-view",jr({class:o.value?r:"",ref:n},i),[Ti(t,"default")],16):Ir("uni-view",{ref:n},[Ti(t,"default")],512)}}});function qg(e,t){if(t||(t=e.id),t)return e.$options.name.toLowerCase()+"."+t}function jg(e,t,n){e&&_c(n||cu(),e,({type:e,data:n},o)=>{t(e,n,o)})}function Fg(e,t){e&&function(e,t){t=bc(e,t),delete yc[t]}(t||cu(),e)}function Vg(e,t,n,o){const i=Ur().proxy;mi(()=>{jg(t||qg(i),e,o),!n&&t||Oo(()=>i.id,(t,n)=>{jg(qg(i,t),e,o),Fg(n&&qg(i,n))})}),bi(()=>{Fg(t||qg(i),o)})}let Wg=0;function Hg(e){const t=ru(),n=Ur().proxy,o=n.$options.name.toLowerCase(),i=e||n.id||"context"+Wg++;return mi(()=>{n.$el.__uniContextInfo={id:i,type:o,page:t}}),`${o}.${i}`}function Ug(e,t,n,o){m(t)&&pi(e,t.bind(n),o)}function Xg(e,t,n){const o=e.mpType||n.$mpType;if(o&&"component"!==o&&("page"!==o||"component"!==t.renderer)&&(Object.keys(e).forEach(o=>{if(function(e,t,n=!0){return!(n&&!m(t))&&(nt.indexOf(e)>-1||0===e.indexOf("on"))}(o,e[o],!1)){const i=e[o];p(i)?i.forEach(e=>Ug(o,e,n,t)):Ug(o,i,n,t)}}),"page"===o)){t.__isVisible=!0;try{let e=t.attrs.__pageQuery;0,hu(n,de,e),t.vapor||delete t.attrs.__pageQuery;const o=n.$page;"preloadPage"!==(null==o?void 0:o.openType)&&hu(n,ie)}catch(i){console.error(i.message+ee+i.stack)}}}function Yg(e,t,n){Xg(e,t,n)}function Gg(e,t,n){return e[t]=n}function Kg(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function Jg(e){const t=e.config.errorHandler;return function(n,o,i){t&&t(n,o,i);const r=e._instance;if(!r||!r.proxy)throw n;r[ae]?hu(r.proxy,ae,n):Hn(n,0,o&&o.$.vnode,!1)}}function Qg(e,t){return e?[...new Set([].concat(e,t))]:t}function Zg(e){const t=e.config;var n;t.errorHandler=it(e,Jg),n=t.optionMergeStrategies,nt.forEach(e=>{n[e]=Qg});const o=t.globalProperties;o.$set=Gg,o.$applyOptions=Yg,o.$callMethod=Kg,function(e){ot.forEach(t=>t(e))}(e)}function em(e){const t=Rl({history:om(),strict:!!__uniConfig.router.strict,routes:__uniRoutes,scrollBehavior:nm});t.beforeEach((e,t)=>{var n;e&&t&&e.meta.isTabBar&&t.meta.isTabBar&&(n=t.meta.tabBarIndex,"undefined"!=typeof window&&(tm[n]={left:window.pageXOffset,top:window.pageYOffset}))}),e.router=t,e.use(t)}let tm=Object.create(null);const nm=(e,t,n)=>{if(n)return n;if(e&&t&&e.meta.isTabBar&&t.meta.isTabBar){const t=(o=e.meta.tabBarIndex,tm[o]);if(t)return t}return{left:0,top:0};var o};function om(){let{routerBase:e}=__uniConfig.router;"/"===e&&(e="");const t=(n=e,(n=location.host?n||location.pathname+location.search:"").includes("#")||(n+="#"),Ka(n));var n;return t.listen((e,t,n)=>{"back"===n.direction&&function(e=1){const t=Lp(),n=t.length-1,o=n-e;for(let i=n;i>o;i--){const e=Cp(t[i]);Op(Rp(e.path,e.id),!1)}}(Math.abs(n.delta))}),t}const im={install(e){Zg(e),Lu(e),Fu(e),e.config.warnHandler||(e.config.warnHandler=rm),em(e)}};function rm(e,t,n){if(t){if("PageMetaHead"===t.$.type.name)return;const e=t.$.parent;if(e&&"PageMeta"===e.type.name)return}const o=[`[Vue warn]: ${e}`];n.length&&o.push("\n",n),console.warn(...o)}const sm={class:"uni-async-loading"},am=Ir("i",{class:"uni-loading"},null,-1),lm=Yu({name:"AsyncLoading",render:()=>(xr(),Ar("div",sm,[am]))});function cm(){window.location.reload()}const um=Yu({name:"AsyncError",props:["error"],setup(){sc();const{t:e}=ic();return()=>Ir("div",{class:"uni-async-error",onClick:cm},[e("uni.async.error")],8,["onClick"])}});let dm;function fm(){return dm}function pm(e){dm=e,Object.defineProperty(dm.$.ctx,"$children",{get:()=>Lp().map(e=>e.$vm)});const t=dm.$.appContext.app;t.component(lm.name)||t.component(lm.name,lm),t.component(um.name)||t.component(um.name,um),function(e){e.$vm=e,e.$mpType="app";const t=Dn(ic().getLocale());Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}(dm),function(e,t){const n=e.$options||{};n.globalData=c(n.globalData||{},t),Object.defineProperty(e,"globalData",{get:()=>n.globalData,set(e){n.globalData=e}})}(dm),qu(),wu()}function hm(e,{clone:t,init:n,setup:o,before:i}){t&&(e=c({},e)),i&&i(e);const r=e.setup;return e.setup=(e,t)=>{const i=Ur();if(n(i.proxy),o(i),r)return r(e,t)},e}function gm(e,t){return e&&(e.__esModule||"Module"===e[Symbol.toStringTag])?hm(e.default,t):hm(e,t)}function mm(e){return gm(e,{clone:!0,init:Dp,setup(e){e.$pageInstance=e;const t=ld(),n=Ke(t.query);e.attrs.__pageQuery=n,Cp(e.proxy).options=n,e.proxy.options=n;const o=sd();var i,r;return bp(o),e.onReachBottom=bn([]),e.onPageScroll=bn([]),Oo([e.onReachBottom,e.onPageScroll],()=>{const t=au();e.proxy===t&&Hp(e,o)},{once:!0}),gi(()=>{Np(e,o)}),mi(()=>{qp(e);const{onReady:n}=e;n&&I(n),_m(t)}),ai(()=>{if(!e.__isVisible){Np(e,o),e.__isVisible=!0;const{onShow:n}=e;n&&I(n),to(()=>{_m(t)})}},"ba",i),function(e,t){ai(e,"bda",t)}(()=>{if(e.__isVisible&&!e.__isUnload){e.__isVisible=!1;{const{onHide:t}=e;t&&I(t)}}}),r=o.id,Hy.subscribe(bc(r,gc),wc),bi(()=>{!function(e){Hy.unsubscribe(bc(e,gc)),Object.keys(yc).forEach(t=>{0===t.indexOf(e+".")&&delete yc[t]})}(o.id)}),n}})}function vm(){const{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}=iv(),i=90===Math.abs(Number(window.orientation))?"landscape":"portrait";Uy.emit(ge,{deviceOrientation:i,size:{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}})}function ym(e){C(e.data)&&"WEB_INVOKE_APPSERVICE"===e.data.type&&Uy.emit("onWebInvokeAppService",e.data.data,e.data.pageId)}function bm(){const{emit:e}=Uy;"visible"===document.visibilityState?e(Pe,c({},ph)):e(Le)}function _m(e){const{tabBarText:t,tabBarIndex:n,route:o}=e.meta;t&&hu("onTabItemTap",{index:n,text:t,pagePath:o})}function wm(e){e=e>0&&e<1/0?e:0;const t=Math.floor(e/3600),n=Math.floor(e%3600/60),o=Math.floor(e%3600%60),i=(t<10?"0":"")+t;let r=(n<10?"0":"")+n+":"+((o<10?"0":"")+o);return"00"!==i&&(r=i+":"+r),r}function xm(e,t,n){const o=bn({seeking:!1,gestureType:"none",volumeOld:0,volumeNew:0,currentTimeOld:0,currentTimeNew:0,toastThin:!1}),i={x:0,y:0};let r=null;let s;return{state:o,onTouchstart:function(e){const t=e.targetTouches[0];i.x=t.pageX,i.y=t.pageY,o.gestureType="none",o.volumeOld=0},onTouchmove:function(a){function l(){a.stopPropagation(),a.preventDefault()}n.fullscreen&&l();const c=o.gestureType;if("stop"===c)return;const u=a.targetTouches[0],d=u.pageX,f=u.pageY,p=i,h=t.value;if("progress"===c?(!function(e){const n=t.value,i=n.duration;let r=e/600*i+o.currentTimeOld;r<0?r=0:r>i&&(r=i);o.currentTimeNew=r}(d-p.x),o.seeking=!0):"volume"===c&&function(e){const n=t.value,i=o.volumeOld;let r;"number"==typeof i&&(r=i-e/200,r<0?r=0:r>1&&(r=1),clearTimeout(s),s=void 0,null==s&&(s=setTimeout(()=>{o.toastThin=!1,s=void 0},1e3)),n.volume=r,o.volumeNew=r)}(f-p.y),"none"===c)if(Math.abs(d-p.x)>Math.abs(f-p.y)){if(!e.enableProgressGesture)return void(o.gestureType="stop");o.gestureType="progress",o.currentTimeOld=o.currentTimeNew=h.currentTime,n.fullscreen||l()}else{if(!e.pageGesture&&!e.vslideGesture)return void(o.gestureType="stop");"none"!==o.gestureType&&null!=r||(r=setTimeout(()=>{o.toastThin=!0},500)),o.gestureType="volume",o.volumeOld=h.volume,n.fullscreen||l()}},onTouchend:function(e){const n=t.value;"none"!==o.gestureType&&"stop"!==o.gestureType&&(e.stopPropagation(),e.preventDefault()),"progress"===o.gestureType&&o.currentTimeOld!==o.currentTimeNew&&(n.currentTime=o.currentTimeNew),o.gestureType="none"}}}const Cm={id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default:()=>[]},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},vslideGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},showPlayBtn:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0}},Sm=Xu({name:"Video",props:Cm,emits:["fullscreenchange","progress","loadedmetadata","waiting","error","play","pause","ended","timeupdate"],setup(e,{emit:t,attrs:n,slots:o}){const i=Dn(null),r=Dn(null),s=Ku(i,t),{state:a}=Kh(),{$attrs:l}=fg({excludeListeners:!0});ic(),pc();const{videoRef:c,state:u,play:d,pause:f,stop:h,seek:g,playbackRate:m,toggle:v,onDurationChange:y,onLoadedMetadata:b,onProgress:_,onWaiting:w,onVideoError:x,onPlay:C,onPause:S,onEnded:k,onTimeUpdate:T}=function(e,t,n){const o=Dn(null),i=os(()=>Xp(e.src)),r=os(()=>"true"===e.muted||!0===e.muted),s=bn({start:!1,src:i,playing:!1,currentTime:0,duration:0,progress:0,buffered:0,muted:r,pauseUpdatingCurrentTime:!1});function a(e){const t=e.target,n=t.buffered;n.length&&(s.buffered=n.end(n.length-1)/t.duration*100)}function l(){o.value.pause()}function c(e){const t=o.value;"number"!=typeof(e=Number(e))||isNaN(e)||(t.currentTime=e)}return Oo(()=>i.value,()=>{s.playing=!1,s.currentTime=0}),Oo(()=>s.buffered,e=>{n("progress",{},{buffered:e})}),Oo(()=>r.value,e=>{o.value.muted=e}),{videoRef:o,state:s,play:function(){const e=o.value;s.start=!0,e.play()},pause:l,stop:function(){c(0),l()},seek:c,playbackRate:function(e){o.value.playbackRate=e},toggle:function(){const e=o.value;s.playing?e.pause():e.play()},onDurationChange:function({target:e}){s.duration=e.duration},onLoadedMetadata:function(t){const o=Number(e.initialTime)||0,i=t.target;o>0&&(i.currentTime=o),n("loadedmetadata",t,{width:i.videoWidth,height:i.videoHeight,duration:i.duration}),a(t)},onProgress:a,onWaiting:function(e){n("waiting",e,{})},onVideoError:function(e){s.playing=!1,n("error",e,{})},onPlay:function(e){s.start=!0,s.playing=!0,n("play",e,{})},onPause:function(e){s.playing=!1,n("pause",e,{})},onEnded:function(e){s.playing=!1,n("ended",e,{})},onTimeUpdate:function(e){const t=e.target;s.pauseUpdatingCurrentTime||(s.currentTime=t.currentTime);const o=t.currentTime;n("timeupdate",e,{currentTime:o,duration:t.duration})}}}(e,0,s),{state:A,danmuRef:E,updateDanmu:M,toggleDanmu:P,sendDanmu:L}=function(e,t){const n=Dn(null),o=bn({enable:Boolean(e.enableDanmu)});let i={time:0,index:-1};const r=p(e.danmuList)?JSON.parse(JSON.stringify(e.danmuList)):[];function s(e){const t=document.createElement("p");t.className="uni-video-danmu-item",t.innerText=e.text;let o=`bottom: ${100*Math.random()}%;color: ${e.color};`;t.setAttribute("style",o),n.value.appendChild(t),setTimeout(function(){o+="left: 0;-webkit-transform: translateX(-100%);transform: translateX(-100%);",t.setAttribute("style",o),setTimeout(function(){t.remove()},4e3)},17)}return r.sort(function(e,t){return(e.time||0)-(t.time||0)}),{state:o,danmuRef:n,updateDanmu:function(e){const n=e.target.currentTime,a=i,l={time:n,index:a.index};if(n>a.time)for(let i=a.index+1;i=(e.time||0)))break;l.index=i,t.playing&&o.enable&&s(e)}else if(n-1&&n<=(r[t].time||0);t--)l.index=t-1;i=l},toggleDanmu:function(){o.enable=!o.enable},sendDanmu:function(e){r.splice(i.index+1,0,{text:String(e.text),color:e.color,time:t.currentTime||0})}}}(e,u),{state:O,onFullscreenChange:$,emitFullscreenChange:I,toggleFullscreen:D,requestFullScreen:R,exitFullScreen:z}=function(e,t,n,o,i){const r=bn({fullscreen:!1}),s=/^Apple/.test(navigator.vendor);function a(t){r.fullscreen=t,e("fullscreenchange",{},{fullScreen:t,direction:"vertical"})}function l(e){const r=i.value,l=t.value,c=n.value;let u;e?!document.fullscreenEnabled&&!document.webkitFullscreenEnabled||s&&!o.userAction?c.webkitEnterFullScreen?c.webkitEnterFullScreen():(u=!0,l.remove(),l.classList.add("uni-video-type-fullscreen"),document.body.appendChild(l)):l[document.fullscreenEnabled?"requestFullscreen":"webkitRequestFullscreen"]():document.fullscreenEnabled||document.webkitFullscreenEnabled?document.fullscreenElement?document.exitFullscreen():document.webkitFullscreenElement&&document.webkitExitFullscreen():c.webkitExitFullScreen?c.webkitExitFullScreen():(u=!0,l.remove(),l.classList.remove("uni-video-type-fullscreen"),r.appendChild(l)),u&&a(e)}function c(){l(!1)}return bi(c),{state:r,onFullscreenChange:function(e,t){t&&document.fullscreenEnabled||a(!(!document.fullscreenElement&&!document.webkitFullscreenElement))},emitFullscreenChange:a,toggleFullscreen:l,requestFullScreen:function(){l(!0)},exitFullScreen:c}}(s,r,c,a,i),{state:B,onTouchstart:N,onTouchend:q,onTouchmove:j}=xm(e,c,O),{state:F,progressRef:V,ballRef:W,clickProgress:H,toggleControls:U}=function(e,t,n,o){const i=Dn(null),r=Dn(null),s=os(()=>e.showCenterPlayBtn&&!t.start),a=Dn(!0),l=os(()=>!s.value&&e.controls&&a.value),c=bn({seeking:!1,touching:!1,controlsTouching:!1,centerPlayBtnShow:s,controlsShow:l,controlsVisible:a});let u;function d(){u=setTimeout(()=>{c.controlsVisible=!1},3e3)}function f(){u&&(clearTimeout(u),u=null)}return bi(()=>{u&&clearTimeout(u)}),Oo(()=>c.controlsShow&&t.playing&&!c.controlsTouching,e=>{e?d():f()}),mi(()=>{const e=Xe(!1);let s,a,l,u=!0;const d=r.value;function f(e){const n=e.targetTouches[0],r=n.pageX,d=n.pageY;if(u&&Math.abs(r-s)100&&(h=100),t.progress=h,null==o||o(t.duration*h/100),c.seeking=!0,e.preventDefault(),e.stopPropagation()}function p(o){c.controlsTouching=!1,c.touching&&(d.removeEventListener("touchmove",f,e),u||(o.preventDefault(),o.stopPropagation(),n(t.duration*t.progress/100)),c.touching=!1)}d.addEventListener("touchstart",n=>{c.controlsTouching=!0;const o=n.targetTouches[0];s=o.pageX,a=o.pageY,l=t.progress,u=!0,c.touching=!0,d.addEventListener("touchmove",f,e)}),d.addEventListener("touchend",p),d.addEventListener("touchcancel",p)}),{state:c,progressRef:i,ballRef:r,clickProgress:function(e){const o=i.value;let r=e.target,s=e.offsetX;for(;r&&r!==o;)s+=r.offsetLeft,r=r.parentNode;const a=o.offsetWidth;let l=0;s>=0&&s<=a&&(l=s/a,n(t.duration*l))},toggleControls:function(){c.controlsVisible=!c.controlsVisible},autoHideStart:d,autoHideEnd:f}}(e,u,g,e=>{B.currentTimeNew=e});!function(e,t,n,o,i,r,s,a){const l={play:e,stop:n,pause:t,seek:o,sendDanmu:i,playbackRate:r,requestFullScreen:s,exitFullScreen:a};Vg((e,t)=>{let n;switch(e){case"seek":n=t.position;break;case"sendDanmu":n=t;break;case"playbackRate":n=t.rate}e in l&&l[e](n)},Hg(),!0)}(d,f,h,g,L,m,R,z);const X=function(e,t,n){const o=os(()=>"progress"===t.gestureType||n.touching);return Oo(o,o=>{e.pauseUpdatingCurrentTime=o,n.controlsTouching=o,"progress"===t.gestureType&&o&&(n.controlsVisible=o)}),Oo([()=>e.currentTime,()=>{Cm.duration}],()=>{e.progress=e.currentTime/e.duration*100}),Oo(()=>t.currentTimeNew,t=>{e.currentTime=t}),o}(u,B,F);return()=>Ir("uni-video",{ref:i,id:e.id,onClick:U},[Ir("div",{ref:r,class:"uni-video-container",onTouchstart:N,onTouchend:q,onTouchmove:j,onFullscreenchange:Zs($,["stop"]),onWebkitfullscreenchange:Zs(e=>$(e,!0),["stop"])},[Ir("video",jr({ref:c,style:{"object-fit":e.objectFit},muted:!!e.muted,loop:!!e.loop,src:u.src,poster:e.poster,autoplay:!!e.autoplay},l.value,{class:"uni-video-video","webkit-playsinline":!0,playsinline:!0,onDurationchange:y,onLoadedmetadata:b,onProgress:_,onWaiting:w,onError:x,onPlay:C,onPause:S,onEnded:k,onTimeupdate:e=>{T(e),M(e)},onWebkitbeginfullscreen:()=>I(!0),onX5videoenterfullscreen:()=>I(!0),onWebkitendfullscreen:()=>I(!1),onX5videoexitfullscreen:()=>I(!1)}),null,16,["muted","loop","src","poster","autoplay","webkit-playsinline","playsinline","onDurationchange","onLoadedmetadata","onProgress","onWaiting","onError","onPlay","onPause","onEnded","onTimeupdate","onWebkitbeginfullscreen","onX5videoenterfullscreen","onWebkitendfullscreen","onX5videoexitfullscreen"]),zo(Ir("div",{class:"uni-video-bar uni-video-bar-full",onClick:Zs(()=>{},["stop"])},[Ir("div",{class:"uni-video-controls"},[zo(Ir("div",{class:{"uni-video-icon":!0,"uni-video-control-button":!0,"uni-video-control-button-play":!u.playing,"uni-video-control-button-pause":u.playing},onClick:Zs(v,["stop"])},null,10,["onClick"]),[[Ts,e.showPlayBtn]]),zo(Ir("div",{class:"uni-video-current-time"},[wm(u.currentTime)],512),[[Ts,e.showProgress]]),zo(Ir("div",{ref:V,class:"uni-video-progress-container",onClick:Zs(H,["stop"])},[Ir("div",{class:{"uni-video-progress":!0,"uni-video-progress-progressing":X.value}},[Ir("div",{style:{width:u.buffered-u.progress+"%",left:u.progress+"%"},class:"uni-video-progress-buffered"},null,4),Ir("div",{style:{width:u.progress+"%"},class:"uni-video-progress-played"},null,4),Ir("div",{ref:W,style:{left:u.progress+"%"},class:{"uni-video-ball":!0,"uni-video-ball-progressing":X.value}},[Ir("div",{class:"uni-video-inner"},null)],6)],2)],8,["onClick"]),[[Ts,e.showProgress]]),zo(Ir("div",{class:"uni-video-duration"},[wm(Number(e.duration)||u.duration)],512),[[Ts,e.showProgress]])]),zo(Ir("div",{class:{"uni-video-icon":!0,"uni-video-danmu-button":!0,"uni-video-danmu-button-active":A.enable},onClick:Zs(P,["stop"])},null,10,["onClick"]),[[Ts,e.danmuBtn]]),zo(Ir("div",{class:{"uni-video-icon":!0,"uni-video-fullscreen":!0,"uni-video-type-fullscreen":O.fullscreen},onClick:Zs(()=>D(!O.fullscreen),["stop"])},null,10,["onClick"]),[[Ts,e.showFullscreenBtn]])],8,["onClick"]),[[Ts,F.controlsShow]]),zo(Ir("div",{ref:E,style:"z-index: 0;",class:"uni-video-danmu"},null,512),[[Ts,u.start&&A.enable]]),F.centerPlayBtnShow&&Ir("div",{class:"uni-video-cover",onClick:Zs(()=>{},["stop"])},[Ir("div",{class:"uni-video-cover-play-button uni-video-icon",onClick:Zs(d,["stop"])},null,8,["onClick"])],8,["onClick"]),Ir("div",{class:"uni-video-loading"},["volume"===B.gestureType?Ir("div",{class:{"uni-video-toast-container":!0,"uni-video-toast-container-thin":B.toastThin},style:{marginTop:"5px"}},[!B.toastThin&&B.volumeNew>0&&"volume"===B.gestureType?Ir("text",{class:"uni-video-icon uni-video-toast-icon"},[""]):!B.toastThin&&Ir("text",{class:"uni-video-icon uni-video-toast-icon"},[""]),Ir("div",{class:"uni-video-toast-draw",style:{width:100*B.volumeNew+"%"}},null)],2):null]),Ir("div",{class:{"uni-video-toast":!0,"uni-video-toast-progress":X.value}},[Ir("div",{class:"uni-video-toast-title"},[Ir("span",{class:"uni-video-toast-title-current-time"},[wm(B.currentTimeNew)])," / ",Number(e.duration)||wm(u.duration)])],2),Ir("div",{class:"uni-video-slots"},[o.default&&o.default()])],40,["onTouchstart","onTouchend","onTouchmove","onFullscreenchange","onWebkitfullscreenchange"])],8,["id","onClick"])}});let km,Tm=0;function Am(e,t,n,o){var i,r=document.createElement("script"),s=t.callback||"callback",a="__uni_jsonp_callback_"+Tm++,l=t.timeout||3e4;function c(){clearTimeout(i),delete window[a],r.remove()}window[a]=e=>{m(n)&&n(e),c()},r.onerror=()=>{m(o)&&o(),c()},i=setTimeout(function(){m(o)&&o(),c()},l),r.src=e+(e.indexOf("?")>=0?"&":"?")+s+"="+a,document.body.appendChild(r)}function Em(e){function t(){const e=this.div;this.getPanes().floatPane.appendChild(e)}function n(){const e=this.div.parentNode;e&&e.removeChild(this.div)}function o(){const t=this.option;this.Text=new e.Text({text:t.content,anchor:"bottom-center",offset:new e.Pixel(0,t.offsetY-16),style:{padding:(t.padding||8)+"px","line-height":(t.fontSize||14)+"px","border-radius":(t.borderRadius||0)+"px","border-color":`${t.bgColor||"#fff"} transparent transparent`,"background-color":t.bgColor||"#fff","box-shadow":"0 2px 6px 0 rgba(114, 124, 245, .5)","text-align":"center","font-size":(t.fontSize||14)+"px",color:t.color||"#000"},position:t.position});(e.event||e.Event).addListener(this.Text,"click",()=>{this.callback()}),this.Text.setMap(t.map)}function i(){}function r(){this.Text&&this.option.map.remove(this.Text)}function s(){this.Text&&this.option.map.remove(this.Text)}class a{constructor(e={},a){this.createAMapText=o,this.removeAMapText=r,this.createBMapText=i,this.removeBMapText=s,this.onAdd=t,this.construct=t,this.onRemove=n,this.destroy=n,this.option=e||{};const l=this.visible=this.alwaysVisible="ALWAYS"===e.display;if(zm())this.callback=a,this.visible&&this.createAMapText();else if(Bm())this.visible&&this.createBMapText();else{const t=e.map;this.position=e.position,this.index=1;const n=this.div=document.createElement("div"),o=n.style;o.position="absolute",o.whiteSpace="nowrap",o.transform="translateX(-50%) translateY(-100%)",o.zIndex="1",o.boxShadow=e.boxShadow||"none",o.display=l?"block":"none";const i=this.triangle=document.createElement("div");i.setAttribute("style","position: absolute;white-space: nowrap;border-width: 4px;border-style: solid;border-color: #fff transparent transparent;border-image: initial;font-size: 12px;padding: 0px;background-color: transparent;width: 0px;height: 0px;transform: translate(-50%, 100%);left: 50%;bottom: 0;"),this.setStyle(e),n.appendChild(i),t&&this.setMap(t)}}set onclick(e){this.div.onclick=e}get onclick(){return this.div.onclick}setOption(e){this.option=e,"ALWAYS"===e.display?this.alwaysVisible=this.visible=!0:this.alwaysVisible=!1,zm()?this.visible&&this.createAMapText():Bm()?this.visible&&this.createBMapText():(this.setPosition(e.position),this.setStyle(e))}setStyle(e){const t=this.div,n=t.style;t.innerText=e.content||"",n.lineHeight=(e.fontSize||14)+"px",n.fontSize=(e.fontSize||14)+"px",n.padding=(e.padding||8)+"px",n.color=e.color||"#000",n.borderRadius=(e.borderRadius||0)+"px",n.backgroundColor=e.bgColor||"#fff",n.marginTop="-"+((e.top||0)+5)+"px",this.triangle.style.borderColor=`${e.bgColor||"#fff"} transparent transparent`}setPosition(e){this.position=e,this.draw()}draw(){const e=this.getProjection();if(!this.position||!this.div||!e)return;const t=e.fromLatLngToDivPixel(this.position),n=this.div.style;n.left=t.x+"px",n.top=t.y+"px"}changed(){this.div.style.display=this.visible?"block":"none"}}if(!zm()&&!Bm()){const t=new(e.OverlayView||e.Overlay);a.prototype.setMap=t.setMap,a.prototype.getMap=t.getMap,a.prototype.getPanes=t.getPanes,a.prototype.getProjection=t.getProjection,a.prototype.map_changed=t.map_changed,a.prototype.set=t.set,a.prototype.get=t.get,a.prototype.setOptions=t.setValues,a.prototype.bindTo=t.bindTo,a.prototype.bindsTo=t.bindsTo,a.prototype.notify=t.notify,a.prototype.setValues=t.setValues,a.prototype.unbind=t.unbind,a.prototype.unbindAll=t.unbindAll,a.prototype.addListener=t.addListener}return a}const Mm={};function Pm(e,t){const n=Im();if(!n.key)return void console.error("Map key not configured.");const o=Mm[n.type]=Mm[n.type]||[];if(km)t(km);else if(window[n.type]&&window[n.type].maps)km=zm()||Bm()?window[n.type]:window[n.type].maps,km.Callout=km.Callout||Em(km),t(km);else if(o.length)o.push(t);else{o.push(t);const i=window,r="__map_callback__"+n.type;i[r]=function(){delete i[r],km=zm()||Bm()?window[n.type]:window[n.type].maps,km.Callout=Em(km),o.forEach(e=>e(km)),o.length=0},zm()&&function(e){window._AMapSecurityConfig={securityJsCode:e.securityJsCode||"",serviceHost:e.serviceHost||""}}(n);const s=document.createElement("script");let a=Lm(n.type);n.type===$m.QQ&&e.push("geometry"),e.length&&(a+=`libraries=${e.join("%2C")}&`),n.type===$m.BMAP?s.src=`${a}ak=${n.key}&callback=${r}`:s.src=`${a}key=${n.key}&callback=${r}`,s.onerror=function(){console.error("Map load failed.")},document.body.appendChild(s)}}const Lm=e=>({qq:"https://map.qq.com/api/js?v=2.exp&",google:"https://maps.googleapis.com/maps/api/js?",AMap:"https://webapi.amap.com/maps?v=2.0&",BMapGL:"https://api.map.baidu.com/api?type=webgl&v=1.0&"}[e]);const Om="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAACECAMAAABmmnOVAAAC01BMVEUAAAAAef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef96quGStdqStdpbnujMzMzCyM7Gyc7Ky83MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMwAef8GfP0yjfNWnOp0qOKKsdyYt9mju9aZt9mMstx1qeJYnekyjvIIfP0qivVmouaWttnMzMyat9lppOUujPQKffxhoOfNzc3Y2Njh4eHp6enu7u7y8vL19fXv7+/i4uLZ2dnOzs6auNgOf/sKff15quHR0dHx8fH9/f3////j4+N6quFdn+iywdPb29vw8PD+/v7c3NyywtLa2tr29vbS0tLd3d38/Pzf39/o6Ojc7f+q0v+HwP9rsf9dqv9Hnv9Vpv/q6urj8P+Vx/9Am/8Pgf8Iff/z8/OAvP95uf/n5+c5l//V6f+52v+y1//7+/vt7e0rkP/09PTQ0NDq9P8Whf+cy//W1tbe3t7A3v/m5ubs7OxOov/r6+vk5OQiaPjKAAAAknRSTlMACBZ9oB71/jiqywJBZATT6hBukRXv+zDCAVrkDIf4JbQsTb7eVeJLbwfa8Rh4G/OlPS/6/kxQ9/xdmZudoJxNVhng7B6wtWdzAtQOipcF1329wS44doK/BAkyP1pvgZOsrbnGXArAg34G2IsD1eMRe7bi7k5YnqFT9V0csyPedQyYD3p/Fje+hDpskq/MwpRBC6yKp2MAAAQdSURBVHja7Zn1exMxGIAPHbrhDsPdneHuNtzd3d3dIbjLh93o2o4i7TpgG1Jk0g0mMNwd/gTa5rq129reHnK5e/bk/TFNk/dJ7r5894XjGAwGg8GgTZasCpDIll1+hxw5vXLJLpEboTx5ZXbIhyzkl9fB28cqUaCgrBKFkI3CcjoUKYolihWXUSI7EihRUjaHXF52CVRKLoe8eZIdUOkyMknkRw6UlcehYAFHiXK+skgURk6Ul8OhQjFnCVRRBolKqRxQ5SzUHaqgNGSj7VCmalqJnDkoS5RF6ZCbroNvufQkUD6qEuXTdUA+3hQdqiEXVKfnUKOmK4latalJ1EEuoZZ6162HJ9x/4OChw0eOHj12/MTJU6dxG7XUu751tjNnz4ET5y9ctLZTSr0beKFLl89bpuUDrqgC1RqNWqsKuqqzNFw7e51S6u3tc+OmZUJ9kCHY6ECwOkRvab51iUrqXej2HYDQsHBjWgx3Ae7dppB6N2wEcF9jdMGDUIDGTaR2aNoM9FqjG7QmaN5CWgc/gIePjG559BigpZQOrYB/4jBfRGRUtDkmJjY6KjLCofkpD62lc2gDfMpWPIuLdwyV8XEpHgaddBZ+wBuSFcwJqSN2ovmZ/dfnOvCTxqGtwzq8SEjv4EhISn48eWgnhUP7DvDSvgzxrs6vV6+FLiro2EkCic4QKkzwJsH1KYreCp0eQhfyDl1B/w4P/xa5JVJ4U03QjbRD9x7wXlgH5IE3wmMBHXoSlugFAcI6f/AkkSi8q6HQm6xDn77wEQ8djTwSj3tqAMguRTe4ikeOQyJ4YV+KfkQl+oNW5GbY4gWOWgbwJ+kwAD6Fi90MK2ZsrIeBBCUGwRXbqJ+/iJMQliIEBhOU6AJhtlG/IpHE2bqrYQg5h6HA4yQiRqwEfkGCdTCMmMRw+IbPDCQaHCsCYAQxiZHw3TbmD/ESOHgHwShiEqPhp/gggYkSztIxxCRawy/bmEniJaJtfwiEscQkxkFgRqJESqQwwHhiEuMBp3Vm8RK/cZoHEzKXhCK2QxEPpiJe0YlKCFaKCNv/cYBNUsBRPlkJSc0U+dM7E9H0ThGJbgZT/iR7yj+VqMS06Qr4+OFm2JdCxIa8lugzkJs5K6MfxAaYPUcBpYG5khZJEkUUSb7DPCnKRfPBXj6M8FwuegoLpCgXcQszVjhbJFUJUee2hBhLoYTIcYtB57KY+opSMdVqwatSlZVj05aV//CwJLMX2DluaUcwhXm4ali2XOoLjxUrPV26zFtF4f5p0Gp310+z13BUWNvbehEXona6iAtX/zVZmtfN4WixfsNky4S6gCCVVq3RPLdfSfpv3MRRZfPoLc6Xs/5bt3EyMGzE9h07/Xft2t15z6i9+zgGg8FgMBgMBoPBYDAYDAYj8/APG67Rie8pUDsAAAAASUVORK5CYII=";var $m=(e=>(e.QQ="qq",e.GOOGLE="google",e.AMAP="AMap",e.BMAP="BMapGL",e.UNKNOWN="",e))($m||{});function Im(){return __uniConfig.bMapKey?{type:"BMapGL",key:__uniConfig.bMapKey}:__uniConfig.qqMapKey?{type:"qq",key:__uniConfig.qqMapKey}:__uniConfig.googleMapKey?{type:"google",key:__uniConfig.googleMapKey}:__uniConfig.aMapKey?{type:"AMap",key:__uniConfig.aMapKey,securityJsCode:__uniConfig.aMapSecurityJsCode,serviceHost:__uniConfig.aMapServiceHost}:{type:"",key:""}}let Dm=!1,Rm=!1;const zm=()=>Rm?Dm:(Rm=!0,Dm="AMap"===Im().type),Bm=()=>"BMapGL"===Im().type;const Nm=Yu({name:"MapMarker",props:{id:{type:[Number,String],default:""},latitude:{type:[Number,String],require:!0},longitude:{type:[Number,String],require:!0},title:{type:String,default:""},iconPath:{type:String,require:!0},rotate:{type:[Number,String],default:0},alpha:{type:[Number,String],default:1},width:{type:[Number,String],default:""},height:{type:[Number,String],default:""},callout:{type:Object,default:null},label:{type:Object,default:null},anchor:{type:Object,default:null},clusterId:{type:[Number,String],default:""},customCallout:{type:Object,default:null},ariaLabel:{type:String,default:""}},setup(e){const t=String(isNaN(Number(e.id))?"":e.id),n=Ki("onMapReady"),o=function(e){const t="uni-map-marker-label-"+e,n=document.createElement("style");return n.id=t,document.head.appendChild(n),_i(()=>{n.remove()}),function(e){const o=Object.assign({},e,{position:"absolute",top:"70px",borderStyle:"solid"}),i=document.createElement("div");return Object.keys(o).forEach(e=>{i.style[e]=o[e]||""}),n.innerText=`.${t}{${i.getAttribute("style")}}`,t}}(t);let i;function r(e){zm()?e.removeAMapText():e.setMap(null)}if(n((n,s,a)=>{function l(e){const l=e.title;let c;c=zm()?new s.LngLat(e.longitude,e.latitude):Bm()?new s.Point(e.longitude,e.latitude):new s.LatLng(e.latitude,e.longitude);const u=new Image;let d=0;u.onload=()=>{const f=e.anchor||{};let p,h,g,m,v="number"==typeof f.x?f.x:.5,y="number"==typeof f.y?f.y:1;e.iconPath&&(e.width||e.height)?(h=e.width||u.width/u.height*e.height,g=e.height||u.height/u.width*e.width):(h=u.width/2,g=u.height/2),d=g,m=g-(g-y*g),p="MarkerImage"in s?new s.MarkerImage(u.src,null,null,new s.Point(v*h,y*g),new s.Size(h,g)):"Icon"in s?new s.Icon({image:u.src,size:new s.Size(h,g),imageSize:new s.Size(h,g),imageOffset:new s.Pixel(v*h,y*g)}):{url:u.src,anchor:new s.Point(v,y),size:new s.Size(h,g)},Bm()?(i=new s.Marker(new s.Point(c.lng,c.lat)),n.addOverlay(i)):(i.setPosition(c),i.setIcon(p)),"setRotation"in i&&i.setRotation(e.rotate||0);const b=e.label||{};let _;if("label"in i&&(i.label.setMap(null),delete i.label),b.content){const e={borderColor:b.borderColor,borderWidth:(Number(b.borderWidth)||0)+"px",padding:(Number(b.padding)||0)+"px",borderRadius:(Number(b.borderRadius)||0)+"px",backgroundColor:b.bgColor,color:b.color,fontSize:(b.fontSize||14)+"px",lineHeight:(b.fontSize||14)+"px",marginLeft:(Number(b.anchorX||b.x)||0)+"px",marginTop:(Number(b.anchorY||b.y)||0)+"px"};if("Label"in s)_=new s.Label({position:c,map:n,clickable:!1,content:b.content,style:e}),i.label=_;else if("setLabel"in i)if(zm()){const t=`
\n ${b.content}\n
`;i.setLabel({content:t,direction:"bottom-right"})}else{const t=o(e);i.setLabel({text:b.content,color:e.color,fontSize:e.fontSize,className:t})}}const w=e.callout||{};let x,C=i.callout;if(w.content||l){zm()&&w.content&&(w.content=w.content.replaceAll("\n","
"));const o="0px 0px 3px 1px rgba(0,0,0,0.5)";let r=-d/2;if((e.width||e.height)&&(r+=14-d/2),x=w.content?{position:c,map:n,top:m,offsetY:r,content:w.content,color:w.color,fontSize:w.fontSize,borderRadius:w.borderRadius,bgColor:w.bgColor,padding:w.padding,boxShadow:w.boxShadow||o,display:w.display}:{position:c,map:n,top:m,offsetY:r,content:l,boxShadow:o},C)C.setOption(x);else if(zm()){const e=()=>{""!==t&&a("callouttap",{},{markerId:Number(t)})};C=i.callout=new s.Callout(x,e)}else C=i.callout=new s.Callout(x),C.div.onclick=function(e){""!==t&&a("callouttap",e,{markerId:Number(t)}),e.stopPropagation(),e.preventDefault()},Im().type===$m.GOOGLE&&(C.div.ontouchstart=function(e){e.stopPropagation()},C.div.onpointerdown=function(e){e.stopPropagation()})}else C&&(r(C),delete i.callout)},e.iconPath?u.src=Xp(e.iconPath):console.error("Marker.iconPath is required.")}!function(e){Bm()||(i=new s.Marker({map:n,flat:!0,autoRotation:!1})),l(e);const o=s.event||s.Event;Bm()||o.addListener(i,"click",()=>{const n=i.callout;if(n&&!n.alwaysVisible)if(zm())n.visible=!n.visible,n.visible?i.callout.createAMapText():i.callout.removeAMapText();else if(n.set("visible",!n.visible),n.visible){const e=n.div,t=e.parentNode;t.removeChild(e),t.appendChild(e)}t&&a("markertap",{},{markerId:Number(t),latitude:e.latitude,longitude:e.longitude})})}(e),Oo(e,l)}),t){const e=Ki("addMapChidlContext"),o=Ki("removeMapChidlContext"),r={id:t,translate(e){n((t,n,o)=>{const r=e.destination,s=e.duration,a=!!e.autoRotate;let l=Number(e.rotate)||0,c=0;"getRotation"in i&&(c=i.getRotation());const u=i.getPosition(),d=new n.LatLng(r.latitude,r.longitude),f=n.geometry.spherical.computeDistanceBetween(u,d)/1e3/(("number"==typeof s?s:1e3)/36e5),p=n.event||n.Event,h=p.addListener(i,"moving",e=>{const t=e.latLng,n=i.label;n&&n.setPosition(t);const o=i.callout;o&&o.setPosition(t)}),g=p.addListener(i,"moveend",()=>{g.remove(),h.remove(),i.lastPosition=u,i.setPosition(d);const t=i.label;t&&t.setPosition(d);const n=i.callout;n&&n.setPosition(d);const o=e.animationEnd;m(o)&&o()});let v=0;a&&(i.lastPosition&&(v=n.geometry.spherical.computeHeading(i.lastPosition,u)),l=n.geometry.spherical.computeHeading(u,d)-v),"setRotation"in i&&i.setRotation(c+l),"moveTo"in i?i.moveTo(d,f):(i.setPosition(d),p.trigger(i,"moveend",{}))})}};e(r),_i(()=>o(r))}return _i(function(){i&&(i.label&&"setMap"in i.label&&i.label.setMap(null),i.callout&&r(i.callout),i.setMap(null))}),()=>null}});function qm(e){if(!e)return{r:0,g:0,b:0,a:0};let t=e.slice(1);const n=t.length;if(![3,4,6,8].includes(n))return{r:0,g:0,b:0,a:0};3!==n&&4!==n||(t=t.replace(/(\w{1})/g,"$1$1"));let[o,i,r,s]=t.match(/(\w{2})/g);const a=parseInt(o,16),l=parseInt(i,16),c=parseInt(r,16);return s?{r:a,g:l,b:c,a:(`0x100${s}`-65536)/255}:{r:a,g:l,b:c,a:1}}const jm={points:{type:Array,require:!0},color:{type:String,default:"#000000"},width:{type:[Number,String],default:""},dottedLine:{type:[Boolean,String],default:!1},arrowLine:{type:[Boolean,String],default:!1},arrowIconPath:{type:String,default:""},borderColor:{type:String,default:"#000000"},borderWidth:{type:[Number,String],default:""},colorList:{type:Array,default:()=>[]},level:{type:String,default:""}},Fm=Yu({name:"MapPolyline",props:jm,setup(e){let t,n;function o(){t&&t.setMap(null),n&&n.setMap(null)}return Ki("onMapReady")((i,r)=>{function s(e){const o=[];e.points.forEach(e=>{let t;t=zm()?[e.longitude,e.latitude]:Bm()?new r.Point(e.longitude,e.latitude):new r.LatLng(e.latitude,e.longitude),o.push(t)});const s=Number(e.width)||1,{r:a,g:l,b:c,a:u}=qm(e.color),{r:d,g:f,b:p,a:h}=qm(e.borderColor),g={map:i,clickable:!1,path:o,strokeWeight:s,strokeColor:e.color||void 0,strokeDashStyle:e.dottedLine?"dash":"solid"},m=Number(e.borderWidth)||0,v={map:i,clickable:!1,path:o,strokeWeight:s+2*m,strokeColor:e.borderColor||void 0,strokeDashStyle:e.dottedLine?"dash":"solid"};"Color"in r?(g.strokeColor=new r.Color(a,l,c,u),v.strokeColor=new r.Color(d,f,p,h)):(g.strokeColor=`rgb(${a}, ${l}, ${c})`,g.strokeOpacity=u,v.strokeColor=`rgb(${d}, ${f}, ${p})`,v.strokeOpacity=h),m&&(n=new r.Polyline(v)),Bm()?(t=new r.Polyline(g.path,g),i.addOverlay(t)):t=new r.Polyline(g)}s(e),Oo(e,function(e){o(),s(e)})}),_i(o),()=>null}}),Vm=Yu({name:"MapCircle",props:{latitude:{type:[Number,String],require:!0},longitude:{type:[Number,String],require:!0},color:{type:String,default:"#000000"},fillColor:{type:String,default:"#00000000"},radius:{type:[Number,String],require:!0},strokeWidth:{type:[Number,String],default:""},level:{type:String,default:""}},setup(e){let t;function n(){t&&t.setMap(null)}return Ki("onMapReady")((o,i)=>{function r(e){const n=zm()||Bm()?[e.longitude,e.latitude]:new i.LatLng(e.latitude,e.longitude),r={map:o,center:n,clickable:!1,radius:e.radius,strokeWeight:Number(e.strokeWidth)||1,strokeDashStyle:"solid"};if(Bm())r.strokeColor=e.color,r.fillColor=e.fillColor||"#000",r.fillOpacity=1;else{const{r:t,g:n,b:o,a:s}=qm(e.fillColor),{r:a,g:l,b:c,a:u}=qm(e.color);"Color"in i?(r.fillColor=new i.Color(t,n,o,s),r.strokeColor=new i.Color(a,l,c,u)):(r.fillColor=`rgb(${t}, ${n}, ${o})`,r.fillOpacity=s,r.strokeColor=`rgb(${a}, ${l}, ${c})`,r.strokeOpacity=u)}if(Bm()){let e=new i.Point(r.center[0],r.center[1]);t=new i.Circle(e,r.radius,r),o.addOverlay(t)}else t=new i.Circle(r),zm()&&o.add(t)}r(e),Oo(e,function(e){n(),r(e)})}),_i(n),()=>null}}),Wm={id:{type:[Number,String],default:""},position:{type:Object,required:!0},iconPath:{type:String,required:!0},clickable:{type:[Boolean,String],default:""},trigger:{type:Function,required:!0}},Hm=Yu({name:"MapControl",props:Wm,setup(e){const t=os(()=>Xp(e.iconPath)),n=os(()=>{let t=`top:${e.position.top||0}px;left:${e.position.left||0}px;`;return e.position.width&&(t+=`width:${e.position.width}px;`),e.position.height&&(t+=`height:${e.position.height}px;`),t}),o=t=>{e.clickable&&e.trigger("controltap",t,{controlId:e.id})};return()=>Ir("div",{class:"uni-map-control"},[Ir("img",{src:t.value,style:n.value,class:"uni-map-control-icon",onClick:o},null,12,["src","onClick"])])}}),Um="__DC_STAT_UUID",Xm=navigator.cookieEnabled&&(window.localStorage||window.sessionStorage)||{};let Ym;function Gm(){if(Ym=Ym||Xm[Um],!Ym){Ym=Date.now()+""+Math.floor(1e7*Math.random());try{Xm[Um]=Ym}catch(e){}}return Ym}function Km(){if(!0!==__uniConfig.darkmode)return v(__uniConfig.darkmode)?__uniConfig.darkmode:"light";try{return window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}catch(e){return"light"}}function Jm(){let e,t="0",n="",o="phone";const i=navigator.language;if(Kp){e="iOS";const o=Yp.match(/OS\s([\w_]+)\slike/);o&&(t=o[1].replace(/_/g,"."));const i=Yp.match(/\(([a-zA-Z]+);/);i&&(n=i[1])}else if(Gp){e="Android";const o=Yp.match(/Android[\s/]([\w\.]+)[;\s]/);o&&(t=o[1]);const i=Yp.match(/\((.+?)\)/),r=i?i[1].split(";"):Yp.split(" "),s=[/\bAndroid\b/i,/\bLinux\b/i,/\bU\b/i,/^\s?[a-z][a-z]$/i,/^\s?[a-z][a-z]-[a-z][a-z]$/i,/\bwv\b/i,/\/[\d\.,]+$/,/^\s?[\d\.,]+$/,/\bBrowser\b/i,/\bMobile\b/i];for(let e=0;e0){n=t.split("Build")[0].trim();break}let o;for(let e=0;e-1&&e.indexOf("MSIE")>-1,n=e.indexOf("Edge")>-1&&!t,o=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1;if(t){new RegExp("MSIE (\\d+\\.\\d+);").test(e);const t=parseFloat(RegExp.$1);return t>6?t:6}return n?-1:o?11:-1}());if("-1"!==l)a="IE";else{const e=["Version","Firefox","Chrome","Edge{0,1}"],t=["Safari","Firefox","Chrome","Edge"];for(let n=0;n{const e=window.devicePixelRatio,t=th(),n=nh(t),o=oh(t,n),i=function(e,t){return e?Math[t?"min":"max"](screen.height,screen.width):screen.height}(t,n),r=ih(o);let s=window.innerHeight;const a=Fc.top,l={left:Fc.left,right:r-Fc.right,top:Fc.top,bottom:s-Fc.bottom,width:r-Fc.left-Fc.right,height:s-Fc.top-Fc.bottom},{top:c,bottom:u}=Xc();return s-=c,s-=u,{windowTop:c,windowBottom:u,windowWidth:r,windowHeight:s,pixelRatio:e,screenWidth:o,screenHeight:i,statusBarHeight:a,safeArea:l,safeAreaInsets:{top:Fc.top,right:Fc.right,bottom:Fc.bottom,left:Fc.left},screenTop:i-s}});let Zm,ev=!0;function tv(){ev&&(Zm=Jm())}const nv=Ud(0,()=>{tv();const{deviceBrand:e,deviceModel:t,brand:n,model:o,platform:i,system:r,deviceOrientation:s,deviceType:a,osname:l,osversion:u}=Zm;return c({brand:n,deviceBrand:e,deviceModel:t,devicePixelRatio:window.devicePixelRatio,deviceId:Gm(),deviceOrientation:s,deviceType:a,model:o,platform:i,system:r,osName:l?l.toLowerCase():void 0,osVersion:u})}),ov=Ud(0,()=>{tv();const{theme:e,language:t,browserName:n,browserVersion:o}=Zm;return c({appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:Sf?Sf():t,enableDebug:!1,hostSDKVersion:void 0,hostPackageName:void 0,hostFontSizeSetting:void 0,hostName:n,hostVersion:o,hostTheme:e,hostLanguage:t,language:t,SDKVersion:"",theme:e,version:"",uniPlatform:"web",isUniAppX:!1,uniCompileVersion:__uniConfig.compilerVersion,uniCompilerVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion},{})}),iv=Ud(0,()=>{ev=!0,tv(),ev=!1;const e=Qm(),t=nv(),n=ov();ev=!0;const{ua:o,browserName:i,browserVersion:r,osname:s,osversion:a}=Zm,l=c(e,t,n,{ua:o,browserName:i,browserVersion:r,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion,fontSizeSetting:void 0,osName:s.toLowerCase(),osVersion:a,osLanguage:void 0,osTheme:void 0});return delete l.screenTop,delete l.enableDebug,__uniConfig.darkmode||delete l.theme,function(e){let t={};return C(e)&&Object.keys(e).sort().forEach(n=>{const o=n;t[o]=e[o]}),Object.keys(t)?t:e}(l)});let rv=null;const sv=Vd(Af,()=>{lv()}),av=Wd("offCompass",()=>{cv()}),lv=Xd("startCompass",(e,{resolve:t,reject:n})=>{if(window.DeviceOrientationEvent){if(!rv){if(DeviceOrientationEvent.requestPermission)return void DeviceOrientationEvent.requestPermission().then(e=>{"granted"===e?(o(),t()):n(`${e}`)}).catch(e=>{n(`${e}`)});o()}t()}else n();function o(){rv=function(e){const t=360-(null!==e.alpha?e.alpha:360);Uy.invokeOnCallback(Af,{direction:t})},window.addEventListener("deviceorientation",rv,!1)}}),cv=Xd("stopCompass",(e,{resolve:t})=>{rv&&(window.removeEventListener("deviceorientation",rv,!1),rv=null),t()});const uv=Xd("setClipboardData",(e,t)=>{return n=void 0,o=[e,t],i=function*({data:e},{resolve:t,reject:n}){try{yield navigator.clipboard.writeText(e),t()}catch(o){!function(e,t,n){const o=document.getElementById("#clipboard");o&&o.remove();const i=document.createElement("textarea");i.setAttribute("inputmode","none"),i.id="#clipboard",i.style.position="fixed",i.style.top="-9999px",i.style.zIndex="-9999",document.body.appendChild(i),i.value=e,i.select(),i.setSelectionRange(0,i.value.length);const r=document.execCommand("Copy",!1);i.blur(),r?t():n()}(e,t,n)}},new Promise((e,t)=>{var r=e=>{try{a(i.next(e))}catch(n){t(n)}},s=e=>{try{a(i.throw(e))}catch(n){t(n)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,s);a((i=i.apply(n,o)).next())});var n,o,i},0,Tf);const dv=Ud(0,(e,t)=>{const n=typeof t,o="string"===n?t:JSON.stringify({type:n,data:t});localStorage.setItem(e,o)});function fv(e){const t=localStorage&&localStorage.getItem(e);if(!v(t))throw new Error("data not found");let n=t;try{const e=function(e){const t=["object","string","number","boolean","undefined"];try{const n=v(e)?JSON.parse(e):e,o=n.type;if(t.indexOf(o)>=0){const e=Object.keys(n);if(2===e.length&&"data"in n){if(typeof n.data===o)return n.data;if("object"===o&&/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d{3}Z$/.test(n.data))return new Date(n.data)}else if(1===e.length)return""}}catch(n){}}(JSON.parse(t));void 0!==e&&(n=e)}catch(o){}return n}const pv=Ud(0,e=>{try{return fv(e)}catch(t){return""}}),hv=Ud(0,e=>{localStorage&&localStorage.removeItem(e)}),gv={image:{jpg:"jpeg",jpe:"jpeg",pbm:"x-portable-bitmap",pgm:"x-portable-graymap",pnm:"x-portable-anymap",ppm:"x-portable-pixmap",psd:"vnd.adobe.photoshop",pic:"x-pict",rgb:"x-rgb",svg:"svg+xml",svgz:"svg+xml",tif:"tiff",xif:"vnd.xiff",wbmp:"vnd.wap.wbmp",wdp:"vnd.ms-photo",xbm:"x-xbitmap",ico:"x-icon"},video:{"3g2":"3gpp2","3gp":"3gpp",avi:"x-msvideo",f4v:"x-f4v",flv:"x-flv",jpgm:"jpm",jpgv:"jpeg",m1v:"mpeg",m2v:"mpeg",mpe:"mpeg",mpg:"mpeg",mpg4:"mpeg",m4v:"x-m4v",mkv:"x-matroska",mov:"quicktime",qt:"quicktime",movie:"x-sgi-movie",mp4v:"mp4",ogv:"ogg",smv:"x-smv",wm:"x-ms-wm",wmv:"x-ms-wmv",wmx:"x-ms-wmx",wvx:"x-ms-wvx"}};let mv=null;const vv=Xd("chooseImage",({count:e,sourceType:t,extension:n},{resolve:o,reject:i})=>{dc();const{t:r}=ic();mv&&(document.body.removeChild(mv),mv=null),mv=function({count:e,sourceType:t,type:n,extension:o}){Gh();const i=document.createElement("input");return i.type="file",function(e,t){for(const n in t)e.style[n]=t[n]}(i,{position:"absolute",visibility:"hidden",zIndex:"-999",width:"0",height:"0",top:"0",left:"0"}),i.accept=o.map(e=>{{const t=e.replace(".","");return`${n}/${gv[n][t]||t}`}}).join(","),e&&e>1&&(i.multiple=!0),t instanceof Array&&1===t.length&&"camera"===t[0]&&i.setAttribute("capture","camera"),i}({count:e,sourceType:t,extension:n,type:"image"}),document.body.appendChild(mv),mv.addEventListener("cancel",()=>{i("chooseImage:fail cancel")}),mv.addEventListener("change",function(t){const n=t.target,i=[];if(n&&n.files){const t=n.files.length;for(let o=0;o(r=r||dh(t),r)}),oe)},tempFiles:i})}),mv.click(),Uh||console.warn(r("uni.chooseFile.notUserActivation"))},0,Of),yv={esc:["Esc","Escape"],enter:["Enter"]},bv=Object.keys(yv);function _v(){const e=Dn(""),t=Dn(!1),n=n=>{if(t.value)return;const o=bv.find(e=>-1!==yv[e].indexOf(n.key));o&&(e.value=o),to(()=>e.value="")};return mi(()=>{document.addEventListener("keyup",n)}),bi(()=>{document.removeEventListener("keyup",n)}),{key:e,disable:t}}const wv=Ir("div",{class:"uni-mask"},null,-1);function xv(e,t,n){return t.onClose=(...e)=>(t.visible=!1,n.apply(null,e)),na(Ko({setup:()=>()=>(xr(),Ar(e,t,null,16))}))}function Cv(e){let t=document.getElementById(e);return t||(t=document.createElement("div"),t.id=e,document.body.append(t)),t}function Sv(e,{onEsc:t,onEnter:n}){const o=Dn(e.visible),{key:i,disable:r}=_v();return Oo(()=>e.visible,e=>o.value=e),Oo(()=>o.value,e=>r.value=!e),Po(()=>{const{value:e}=i;"esc"===e?t&&t():"enter"===e&&n&&n()}),o}let kv=0,Tv="";function Av(e){let t=kv;kv+=e?1:-1,kv=Math.max(0,kv),kv>0?0===t&&(Tv=document.body.style.overflow,document.body.style.overflow="hidden"):(document.body.style.overflow=Tv,Tv="")}const Ev=Hd("request",({url:e,data:t,header:n={},method:o,dataType:i,responseType:r,enableChunked:s,withCredentials:a,timeout:l=__uniConfig.networkTimeout.request},{resolve:c,reject:u})=>{let d=null;const p=function(e){const t=Object.keys(e).find(e=>"content-type"===e.toLowerCase());if(!t)return;const n=e[t];if(0===n.indexOf("application/json"))return"json";if(0===n.indexOf("application/x-www-form-urlencoded"))return"urlencoded";return"string"}(n);if("GET"!==o)if(v(t)||t instanceof ArrayBuffer)d=t;else if("json"===p)try{d=JSON.stringify(t)}catch(g){d=t.toString()}else if("urlencoded"===p){const e=[];for(const n in t)f(t,n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));d=e.join("&")}else d=t.toString();let h;if(s){if(void 0===typeof window.fetch||void 0===typeof window.AbortController)throw new Error("fetch or AbortController is not supported in this environment");const t=new AbortController,s=t.signal;h=new Pv(t);const f={method:o,headers:n,body:d,signal:s,credentials:a?"include":"same-origin"},p=setTimeout(function(){h.abort(),u("timeout",{errCode:5})},l);f.signal.addEventListener("abort",function(){clearTimeout(p),u("abort",{errCode:600003})}),window.fetch(e,f).then(e=>{const t=e.status,n=e.headers,o=e.body,s={};n.forEach((e,t)=>{s[t]=e});const a=Mv(s);if(h._emitter.emit("headersReceived",{header:s,statusCode:t,cookies:a}),!o)return void c({data:"",statusCode:t,header:s,cookies:a});const l=o.getReader(),u=[],d=()=>{l.read().then(({done:e,value:n})=>{if(e){const e=function(e){const t=e.reduce((e,t)=>e+t.byteLength,0),n=new Uint8Array(t);let o=0;for(const i of e)n.set(new Uint8Array(i),o),o+=i.byteLength;return n.buffer}(u);let n="text"===r?(new TextDecoder).decode(e):e;return"text"===r&&(n=Ov(n,r,i)),void c({data:n,statusCode:t,header:s,cookies:a})}const o=n;u.push(o),h._emitter.emit("chunkReceived",{data:o}),d()})};d()},e=>{u(e,{errCode:5})})}else{const t=new XMLHttpRequest;h=new Pv(t),t.open(o,e);for(const e in n)f(n,e)&&t.setRequestHeader(e,n[e]);const s=setTimeout(function(){t.onload=t.onabort=t.onerror=null,h.abort(),u("timeout",{errCode:5})},l);t.responseType=r,t.onload=function(){clearTimeout(s);const e=t.status;let n="text"===r?t.responseText:t.response;"text"===r&&(n=Ov(n,r,i)),c({data:n,statusCode:e,header:Lv(t.getAllResponseHeaders()),cookies:[]})},t.onabort=function(){clearTimeout(s),u("abort",{errCode:600003})},t.onerror=function(){clearTimeout(s),u(void 0,{errCode:5})},t.withCredentials=a,t.send(d)}return h},0,Rf),Mv=e=>{let t=e["Set-Cookie"]||e["set-cookie"],n=[];if(!t)return[];"["===t[0]&&"]"===t[t.length-1]&&(t=t.slice(1,-1));const o=t.split(";");for(let i=0;i{t===e&&(this._requestOnHeadersReceiveCallbacks.delete(n),this._emitter.off("headersReceived",e))});const t=this._requestOnHeadersReceiveCallbacks.get(e);t&&(this._requestOnHeadersReceiveCallbacks.delete(e),this._emitter.off("headersReceived",t))}onChunkReceived(e){return this._emitter.on("chunkReceived",e),this._requestOnChunkReceiveCallbackId++,this._requestOnChunkReceiveCallbacks.set(this._requestOnChunkReceiveCallbackId,e),this._requestOnChunkReceiveCallbackId}offChunkReceived(e){if(null==e)return void this._emitter.off("chunkReceived");if("function"==typeof e)return void this._requestOnChunkReceiveCallbacks.forEach((t,n)=>{t===e&&(this._requestOnChunkReceiveCallbacks.delete(n),this._emitter.off("chunkReceived",e))});const t=this._requestOnChunkReceiveCallbacks.get(e);t&&(this._requestOnChunkReceiveCallbacks.delete(e),this._emitter.off("chunkReceived",t))}}function Lv(e){const t={};return e.split(ee).forEach(e=>{const n=e.match(/(\S+\s*):\s*(.*)/);n&&3===n.length&&(t[n[1]]=n[2])}),t}function Ov(e,t,n){let o=e;if("text"===t&&"json"===n)try{o=JSON.parse(o)}catch(i){}return o}class $v{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){m(e)&&this._callbacks.push(e)}offProgressUpdate(e){const t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}abort(){this._isAbort=!0,this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(e){throw new Error("Method not implemented.")}offHeadersReceived(e){throw new Error("Method not implemented.")}}const Iv=Hd("uploadFile",({url:e,file:t,filePath:n,name:o,files:i,header:r={},formData:s={},timeout:a=__uniConfig.networkTimeout.uploadFile},{resolve:l,reject:c})=>{var u=new $v;return p(i)&&i.length||(n||c("file error"),i=[{name:o,file:t,uri:n}]),Promise.all(i.map(({file:e,uri:t})=>e instanceof Blob?Promise.resolve(uh(e)):ch(t))).then(function(t){var n,o=new XMLHttpRequest,d=new FormData;Object.keys(s).forEach(e=>{d.append(e,s[e])}),Object.values(i).forEach(({name:e},n)=>{const o=t[n];d.append(e||"file",o,o.name||`file-${Date.now()}`)}),o.open("POST",e),Object.keys(r).forEach(e=>{o.setRequestHeader(e,r[e])}),o.upload.onprogress=function(e){u._callbacks.forEach(t=>{var n=e.loaded,o=e.total;t({progress:Math.round(n/o*100),totalBytesSent:n,totalBytesExpectedToSend:o})})},o.onerror=function(){clearTimeout(n),c("",{errCode:602001})},o.onabort=function(){clearTimeout(n),c("abort",{errCode:600003})},o.onload=function(){clearTimeout(n);const e=o.status;l({statusCode:e,data:o.responseText||o.response})},u._isAbort?c("abort",{errCode:600003}):(n=setTimeout(function(){o.upload.onprogress=o.onload=o.onabort=o.onerror=null,u.abort(),c("timeout",{errCode:5})},a),o.send(d),u._xhr=o)}).catch(()=>{setTimeout(()=>{c("file error")},0)}),u},0,zf),Dv=Xd("getLocation",({type:e,altitude:t,highAccuracyExpireTime:n,isHighAccuracy:o},{resolve:i,reject:r})=>{const s=Im();new Promise((e,i)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(t=>e({coords:t.coords}),i,{enableHighAccuracy:o||t,timeout:n||1e5}):i(new Error("device nonsupport geolocation"))}).catch(e=>new Promise((t,n)=>{s.type===$m.QQ?Am(`https://apis.map.qq.com/ws/location/v1/ip?output=jsonp&key=${s.key}`,{callback:"callback"},e=>{if("result"in e&&e.result.location){const n=e.result.location;t({coords:{latitude:n.lat,longitude:n.lng},skip:!0})}else n(new Error(e.message||JSON.stringify(e)))},()=>n(new Error("network error"))):s.type===$m.GOOGLE?Ev({method:"POST",url:`https://www.googleapis.com/geolocation/v1/geolocate?key=${s.key}`,success(e){const o=e.data;"location"in o?t({coords:{latitude:o.location.lat,longitude:o.location.lng,accuracy:o.accuracy},skip:!0}):n(new Error(o.error&&o.error.message||JSON.stringify(e)))},fail(){n(new Error("network error"))}}):s.type===$m.AMAP?Pm([],()=>{window.AMap.plugin("AMap.Geolocation",()=>{new window.AMap.Geolocation({enableHighAccuracy:!0,timeout:1e4}).getCurrentPosition((e,o)=>{"complete"===e?t({coords:{latitude:o.position.lat,longitude:o.position.lng,accuracy:o.accuracy},skip:!0}):n(new Error(o.message))})})}):n(e)})).then(({coords:t,skip:n})=>{(function(e,t,n){const o=Im();return e&&"WGS84"===e.toUpperCase()||["google"].includes(o.type)||n?Promise.resolve(t):"qq"===o.type?new Promise(e=>{Am(`https://apis.map.qq.com/ws/coord/v1/translate?type=1&locations=${t.latitude},${t.longitude}&key=${o.key}&output=jsonp`,{callback:"callback"},n=>{if("locations"in n&&n.locations.length){const{lng:o,lat:i}=n.locations[0];e({longitude:o,latitude:i,altitude:t.altitude,accuracy:t.accuracy,altitudeAccuracy:t.altitudeAccuracy,heading:t.heading,speed:t.speed})}else e(t)},()=>e(t))}):"AMap"===o.type?new Promise(e=>{Pm([],()=>{window.AMap.convertFrom([t.longitude,t.latitude],"gps",(n,o)=>{if("ok"===o.info&&o.locations.length){const{lat:n,lng:i}=o.locations[0];e({longitude:i,latitude:n,altitude:t.altitude,accuracy:t.accuracy,altitudeAccuracy:t.altitudeAccuracy,heading:t.heading,speed:t.speed})}else e(t)})})}):Promise.reject(new Error("translate coordinate system faild, map provider not configured or not supported"))})(e,t,n).then(e=>{i({latitude:e.latitude,longitude:e.longitude,accuracy:e.accuracy,speed:e.altitude||0,altitude:e.altitude||0,verticalAccuracy:e.altitudeAccuracy||0,horizontalAccuracy:e.accuracy||0})}).catch(e=>{r(e.message)})}).catch(e=>{r(e.message||JSON.stringify(e))})},0,Mf);const Rv=Yu({name:"LocationView",props:{latitude:{type:Number},longitude:{type:Number},scale:{type:Number,default:18},name:{type:String,default:""},address:{type:String,default:""}},emits:["close"],setup(e,{emit:t}){const n=function(e){const t=bn({center:{latitude:0,longitude:0},marker:{id:1,latitude:0,longitude:0,iconPath:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAACcCAMAAAC3Fl5oAAAB3VBMVEVMaXH/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/EhL/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/Dw//AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/GRn/NTX/Dw//Fhb/AAD/AAD/AAD/GRn/GRn/Y2P/AAD/AAD/ExP/Ghr/AAD/AAD/MzP/GRn/AAD/Hh7/AAD/RUX/AAD/AAD/AAD/AAD/AAD/AAD/Dg7/AAD/HR3/Dw//FRX/SUn/AAD/////kJD/DQ3/Zmb/+/v/wMD/mJj/6en/vb3/1NT//Pz/ODj/+fn/3Nz/nJz/j4//9/f/7e3/9vb/7Oz/2Nj/x8f/Ozv/+Pj/3d3/nZ3/2dn//f3/6Oj/2tr/v7//09P/vr7/mZn/l5cdSvP3AAAAe3RSTlMAAhLiZgTb/vztB/JMRhlp6lQW86g8mQ4KFPs3UCH5U8huwlesWtTYGI7RsdVeJGfTW5rxnutLsvXWF8vQNdo6qQbuz7D4hgVIx2xtw8GC1TtZaIw0i84P98tU0/fsj7PKaAgiZZxeVfo8Z52eg1P0nESrENnjXVPUgw/uuSmDAAADsUlEQVR42u3aZ3cTRxgF4GtbYleSLdnGcsENG2ODjbExEHrvhAQCIb1Bem+QdkeuuFMNBBJIfmuOckzZI8/srHYmH3Lm+QNXK632LTvQ03Tu/IWeU/tTGTKT2n+q58L5c00wpXJd47DHEt5w47pKxLbhdLdPKb/7dBYxVLxw1GcI/2h1BcpzKNFHLX2JQ4gumaiitqpEEhEdOMJI9h5AFC3feYzI+7IF2tpSLEOqDXpObPRYFm/jCWho/4Ble7MdoT7fzhhq9yHEz28wltU1UPrJZ0wd66HwicfYvEFIfePTAP8tSLTupBHvtGJFH9bSkNrNWEHzERrT34xSH9Ogr1CijkbVAUH1KRqVqkdQAw07iIAaGlcTqI+/0LjeJJ5J0IIEnkpXMdzs4sTtW9dnZq7fuj2xOMtwVWk88RHDjBYejYvnjD8qjOpfQsUqhvj7oSjxcJIhVj3pyKqpNjYvVjQ/RrXq5YABKi3MCYm5BSrtWO5v11DlmlC4RpU1WRS9SJU7QukOVbpQ9JLu549+Dd0AUOlTbkGEuk85vxLAK5QbuytC3R2j3HoAjZSbFxrmKTcCoJdSk0LLJKV6gSaPMqNTQsvUKGW8JrxKqUWhaZFSeWyh1LTQNE2pHF6mzOy40DQ+S5mLimJcENoKlOnBWsr8KbRNUGYt5LXgd6HtD3lNQIoyN4S2G5RJIUOZm0LbTcqsBqVmhLYZSlkPsP4VWf+Rrd+m1v9o9h8Vv5p42C1R5qL1x7WRglOgVN52yfwNOBu76P+lLPoYidu23KPciIHGa07ZeIW1jvcNtI7q5vexCPGYCmf+m/Y9a3sAwQ5bI9T7ukPgPcn9GToEao+xk1OixJT+GIsvNAbx6eAgPq0xiF+KtkpYKhRXCQ8eFFcJhSWGu3rZ8jJkCM8kz9K4TUnrC6mAgzTsB9tLwQ2W15qfosQ2GrQNpZr7aczbzVjBZsvLcaC1g0bsbIVEnU8DOr6H1KDH2LwtUBi0/JII6Dxm9zUXkH+XMWzfh1Dte1i2Pe3QkC77Zel7aehpO8wyHG6Dtt0NjKxhN6I4uSli/TqJiJJDUQ4NDCURXTrXRy1XcumyD24M+AzhD1RXIIZsl/LoyZmurJHDM7s8lvB2FQ/PmPJ6PseAXP5HGMYAAC7ABbgAF+ACXIALcAEuwAW4ABfgAlyAC3ABLsAFuID/d8Cx4NEt8/byOf0wLnis8zjMq9/Kp7bWw4JOj8u8TlhRl+G/Mp2wpOX48GffvvZ1CyL4B53LAS6zb08EAAAAAElFTkSuQmCC",width:32,height:52},location:{id:2,latitude:0,longitude:0,iconPath:Om,width:44,height:44}});function n(){e.latitude&&e.longitude&&(t.center.latitude=e.latitude,t.center.longitude=e.longitude,t.marker.latitude=e.latitude,t.marker.longitude=e.longitude)}return Oo([()=>e.latitude,()=>e.longitude],n),n(),t}(e);function o(e){const t=e.detail.centerLocation;t&&(n.center.latitude=t.latitude,n.center.longitude=t.longitude)}function i(){const t=Im();let o="";if(t.type===$m.GOOGLE){o=`https://www.google.com/maps/dir/?api=1${n.location.latitude?`&origin=${n.location.latitude}%2C${n.location.longitude}`:""}&destination=${e.latitude}%2C${e.longitude}`}else if(t.type===$m.QQ){o=`https://apis.map.qq.com/uri/v1/routeplan?type=drive${n.location.latitude?`&fromcoord=${n.location.latitude}%2C${n.location.longitude}&from=${encodeURIComponent("我的位置")}`:""}&tocoord=${e.latitude}%2C${e.longitude}&to=${encodeURIComponent(e.name||"目的地")}&ref=${t.key}`}else if(t.type===$m.AMAP){o=`https://uri.amap.com/navigation?${n.location.latitude?`from=${n.location.longitude},${n.location.latitude},${encodeURIComponent("我的位置")}&`:""}to=${e.longitude},${e.latitude},${encodeURIComponent(e.name||"目的地")}`}window.open(o)}function r(){t("close")}function s({latitude:e,longitude:t}){n.center.latitude=e,n.center.longitude=t}return mi(()=>Av(!0)),_i(()=>Av(!1)),Dv({type:"gcj02",success:({latitude:e,longitude:t})=>{n.location.latitude=e,n.location.longitude=t}}),()=>Ir("div",{class:"uni-system-open-location"},[Ir(Wy,{latitude:n.center.latitude,longitude:n.center.longitude,class:"map",markers:[n.marker,n.location],onRegionchange:o},{default:()=>[Ir("div",{class:"map-move",onClick:()=>s(n.location)},[iu("M13.3334375 16 q0.033125 1.1334375 0.783125 1.8834375 q0.75 0.75 1.8834375 0.75 q1.1334375 0 1.8834375 -0.75 q0.75 -0.75 0.75 -1.8834375 q0 -1.1334375 -0.75 -1.8834375 q-0.75 -0.75 -1.8834375 -0.75 q-1.1334375 0 -1.8834375 0.75 q-0.75 0.75 -0.783125 1.8834375 ZM30.9334375 14.9334375 l-1.1334375 0 q-0.5 -5.2 -4.0165625 -8.716875 q-3.516875 -3.5165625 -8.716875 -4.0165625 l0 -1.1334375 q0 -0.4665625 -0.3 -0.7665625 q-0.3 -0.3 -0.7665625 -0.3 q-0.4665625 0 -0.7665625 0.3 q-0.3 0.3 -0.3 0.7665625 l0 1.1334375 q-5.2 0.5 -8.716875 4.0165625 q-3.5165625 3.516875 -4.0165625 8.716875 l-1.1334375 0 q-0.4665625 0 -0.7665625 0.3 q-0.3 0.3 -0.3 0.7665625 q0 0.4665625 0.3 0.7665625 q0.3 0.3 0.7665625 0.3 l1.1334375 0 q0.5 5.2 4.0165625 8.716875 q3.516875 3.5165625 8.716875 4.0165625 l0 1.1334375 q0 0.4665625 0.3 0.7665625 q0.3 0.3 0.7665625 0.3 q0.4665625 0 0.7665625 -0.3 q0.3 -0.3 0.3 -0.7665625 l0 -1.1334375 q5.2 -0.5 8.716875 -4.0165625 q3.5165625 -3.516875 4.0165625 -8.716875 l1.1334375 0 q0.4665625 0 0.7665625 -0.3 q0.3 -0.3 0.3 -0.7665625 q0 -0.4665625 -0.3 -0.7665625 q-0.3 -0.3 -0.7665625 -0.3 ZM17.0665625 27.6665625 l0 -2.0665625 q0 -0.4665625 -0.3 -0.7665625 q-0.3 -0.3 -0.7665625 -0.3 q-0.4665625 0 -0.7665625 0.3 q-0.3 0.3 -0.3 0.7665625 l0 2.0665625 q-4.3 -0.4665625 -7.216875 -3.383125 q-2.916875 -2.916875 -3.3834375 -7.216875 l2.0665625 0 q0.4665625 0 0.7665625 -0.3 q0.3 -0.3 0.3 -0.7665625 q0 -0.4665625 -0.3 -0.7665625 q-0.3 -0.3 -0.7665625 -0.3 l-2.0665625 0 q0.4665625 -4.3 3.3834375 -7.216875 q2.9165625 -2.916875 7.216875 -3.3834375 l0 2.0665625 q0 0.4665625 0.3 0.7665625 q0.3 0.3 0.7665625 0.3 q0.4665625 0 0.7665625 -0.3 q0.3 -0.3 0.3 -0.7665625 l0 -2.0665625 q4.3 0.4665625 7.216875 3.3834375 q2.9165625 2.9165625 3.383125 7.216875 l-2.0665625 0 q-0.4665625 0 -0.7665625 0.3 q-0.3 0.3 -0.3 0.7665625 q0 0.4665625 0.3 0.7665625 q0.3 0.3 0.7665625 0.3 l2.0665625 0 q-0.4665625 4.3 -3.383125 7.216875 q-2.916875 2.9165625 -7.216875 3.383125 Z","#000000",24)],8,["onClick"])]},8,["latitude","longitude","markers","onRegionchange"]),Ir("div",{class:"info"},[Ir("div",{class:"name",onClick:()=>s(n.marker)},[e.name],8,["onClick"]),Ir("div",{class:"address",onClick:()=>s(n.marker)},[e.address],8,["onClick"]),Ir("div",{class:"nav",onClick:i},[iu("M28 17c-6.49396875 0-12.13721875 2.57040625-15 6.34840625V5.4105l6.29859375 6.29859375c0.387875 0.387875 1.02259375 0.387875 1.4105 0 0.387875-0.387875 0.387875-1.02259375 0-1.4105L12.77853125 2.36803125a0.9978125 0.9978125 0 0 0-0.0694375-0.077125c-0.1944375-0.1944375-0.45090625-0.291375-0.70721875-0.290875l-0.00184375-0.0000625-0.00184375 0.0000625c-0.2563125-0.0005-0.51278125 0.09640625-0.70721875 0.290875a0.9978125 0.9978125 0 0 0-0.0694375 0.077125l-7.930625 7.9305625c-0.387875 0.387875-0.387875 1.02259375 0 1.4105 0.387875 0.387875 1.02259375 0.387875 1.4105 0L11 5.4105V29c0 0.55 0.45 1 1 1s1-0.45 1-1c0-5.52284375 6.71571875-10 15-10 0.55228125 0 1-0.44771875 1-1 0-0.55228125-0.44771875-1-1-1z","#ffffff",26)],8,["onClick"])]),Ir("div",{class:"nav-btn-back",onClick:r},[iu(ou,"#ffffff",26)],8,["onClick"])])}});let zv=null;const Bv=Xd("openLocation",(e,{resolve:t})=>{zv?c(zv,e):(zv=bn(e),to(()=>{const e=xv(Rv,zv,()=>{zv=null,to(()=>{e.unmount()})});e.mount(Cv("u-a-o"))})),t()},0,Lf),Nv=Xd("navigateBack",(e,{resolve:t,reject:n})=>{let o=!0;return!0===hu(me,{from:e.from||"navigateBack"})&&(o=!1),o?(fm().$router.go(-e.delta),t()):n(me)},0,Uf),qv=Xd(Nf,({url:e,events:t,isAutomatedTesting:n},{resolve:o,reject:i})=>{if(Sp.handledBeforeEntryPageRoutes)return up({type:Nf,url:e,events:t,isAutomatedTesting:n}).then(o).catch(i);kp.push({args:{type:Nf,url:e,events:t,isAutomatedTesting:n},resolve:o,reject:i})},0,Vf);function jv(e){__uniConfig.darkmode&&Uy.on(le,e)}function Fv(e){Uy.off(le,e)}function Vv(e){let t={};return __uniConfig.darkmode&&(t=ct(e,__uniConfig.themeConfig,Km())),__uniConfig.darkmode?t:e}const Wv={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}},Hv=Ko({props:{title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"Cancel"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"OK"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean},editable:{type:Boolean,default:!1},placeholderText:{type:String,default:""}},setup(e,{emit:t}){const n=Dn(""),o=()=>s.value=!1,i=()=>(o(),t("close","cancel")),r=()=>(o(),t("close","confirm",n.value)),s=Sv(e,{onEsc:i,onEnter:()=>{!e.editable&&r()}}),a=function(e){const t=Dn(e.cancelColor),n=({theme:e})=>{((e,t)=>{t.value=Wv[e].cancelColor})(e,t)};return Po(()=>{e.visible?(t.value=e.cancelColor,"#000"===e.cancelColor&&("dark"===Km()&&n({theme:"dark"}),jv(n))):Fv(n)}),t}(e);return()=>{const{title:t,content:o,showCancel:l,confirmText:c,confirmColor:u,editable:d,placeholderText:f}=e;return n.value=o,Ir(fs,{name:"uni-fade"},{default:()=>[zo(Ir("uni-modal",{onTouchmove:Vc},[wv,Ir("div",{class:"uni-modal"},[t?Ir("div",{class:"uni-modal__hd"},[Ir("strong",{class:"uni-modal__title",textContent:t||""},null,8,["textContent"])]):null,d?Ir("textarea",{class:"uni-modal__textarea",rows:"1",placeholder:f,value:o,onInput:e=>n.value=e.target.value},null,40,["placeholder","value","onInput"]):Ir("div",{class:"uni-modal__bd",onTouchmovePassive:Wc,textContent:o},null,40,["onTouchmovePassive","textContent"]),Ir("div",{class:"uni-modal__ft"},[l&&Ir("div",{style:{color:a.value},class:"uni-modal__btn uni-modal__btn_default",onClick:i},[e.cancelText],12,["onClick"]),Ir("div",{style:{color:u},class:"uni-modal__btn uni-modal__btn_primary",onClick:r},[c],12,["onClick"])])])],40,["onTouchmove"]),[[Ts,s.value]])]})}}});let Uv;const Xv=Ie(()=>{Uy.on("onHidePopup",()=>Uv.visible=!1)});let Yv;function Gv(e,t){const n="confirm"===e,o={confirm:n,cancel:"cancel"===e};n&&Uv.editable&&(o.content=t),Yv&&Yv(o)}const Kv=Xd("showModal",(e,{resolve:t})=>{Xv(),Yv=t,Uv?(c(Uv,e),Uv.visible=!0):(Uv=bn(e),to(()=>(xv(Hv,Uv,Gv).mount(Cv("u-a-m")),to(()=>Uv.visible=!0))))},0,ep),Jv={title:{type:String,default:""},icon:{default:"success",validator:e=>-1!==tp.indexOf(e)},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean}},Qv="uni-toast__icon",Zv={light:"#fff",dark:"rgba(255,255,255,0.9)"},ey=e=>Zv[e],ty=Ko({name:"Toast",props:Jv,setup(e){lc(),cc();const{Icon:t}=function(e){const t=Dn(ey(Km())),n=({theme:e})=>t.value=ey(e);Po(()=>{e.visible?jv(n):Fv(n)});const o=os(()=>{switch(e.icon){case"success":return Ir(iu(tu,t.value,38),{class:Qv});case"error":return Ir(iu(nu,t.value,38),{class:Qv});case"loading":return Ir("i",{class:[Qv,"uni-loading"]},null,2);default:return null}});return{Icon:o}}(e),n=Sv(e,{});return()=>{const{mask:o,duration:i,title:r,image:s}=e;return Ir(fs,{name:"uni-fade"},{default:()=>[zo(Ir("uni-toast",{"data-duration":i},[o?Ir("div",{class:"uni-mask",style:"background: transparent;",onTouchmove:Vc},null,40,["onTouchmove"]):"",s||t.value?Ir("div",{class:"uni-toast"},[s?Ir("img",{src:s,class:Qv},null,10,["src"]):t.value,Ir("p",{class:"uni-toast__content"},[r])]):Ir("div",{class:"uni-sample-toast"},[Ir("p",{class:"uni-simple-toast__text"},[r])])],8,["data-duration"]),[[Ts,n.value]])]})}}});let ny,oy,iy="";const ry=pt();function sy(e){ny?c(ny,e):(ny=bn(c(e,{visible:!1})),to(()=>{ry.run(()=>{Oo([()=>ny.visible,()=>ny.duration],([e,t])=>{if(e){if(oy&&clearTimeout(oy),"onShowLoading"===iy)return;oy=setTimeout(()=>{dy("onHideToast")},t)}else oy&&clearTimeout(oy)})}),Uy.on("onHidePopup",()=>dy("onHidePopup")),xv(ty,ny,()=>{}).mount(Cv("u-a-t"))})),setTimeout(()=>{ny.visible=!0},10)}const ay=Xd("showToast",(e,{resolve:t,reject:n})=>{sy(e),iy="onShowToast",t()},0,np),ly={icon:"loading",duration:1e8,image:""},cy=Xd("showLoading",(e,{resolve:t,reject:n})=>{c(e,ly),sy(e),iy="onShowLoading",t()},0,Zf),uy=Xd("hideLoading",(e,{resolve:t,reject:n})=>{dy("onHideLoading"),t()});function dy(e){const{t:t}=ic();if(!iy)return;let n="";if("onHideToast"===e&&"onShowToast"!==iy?n=t("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==iy&&(n=t("uni.showLoading.unpaired")),n)return console.warn(n);iy="",setTimeout(()=>{ny.visible=!1},10)}const fy={light:{listItemColor:"#000000",cancelItemColor:"#000000"},dark:{listItemColor:"rgba(255, 255, 255, 0.8)",cancelItemColor:"rgba(255, 255, 255)"}};const py=Ko({name:"ActionSheet",props:{title:{type:String,default:""},itemList:{type:Array,default:()=>[]},itemColor:{type:String,default:"#000000"},popover:{type:Object,default:null},visible:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){ac();const n=Dn(260),o=Dn(0),i=Dn(0),r=Dn(0),s=Dn(0),a=Dn(null),l=Dn(null),{t:u}=ic(),{_close:d}=function(e,t){function n(e){t("close",e)}const{key:o,disable:i}=_v();return Oo(()=>e.visible,e=>i.value=!e),Po(()=>{const{value:e}=o;"esc"===e&&n&&n(-1)}),{_close:n}}(e,t),{popupStyle:f}=function(e){const t=Dn(0),n=Dn(0),o=os(()=>t.value>=500&&n.value>=500),i=os(()=>{const t={content:{transform:"",left:"",top:"",bottom:""},triangle:{left:"",top:"",bottom:"","border-width":"","border-color":""}},i=t.content,r=t.triangle,s=e.popover;function a(e){return Number(e)||0}if(o.value&&s){c(r,{position:"absolute",width:"0",height:"0","margin-left":"-6px","border-style":"solid"});const e=a(s.left),t=a(s.width?s.width:300),o=a(s.top),l=a(s.height),u=e+t/2;i.transform="none !important";const d=Math.max(0,u-t/2);i.left=`${d}px`,s.width&&(i.width=`${t}px`);let f=Math.max(12,u-d);f=Math.min(t-12,f),r.left=`${f}px`;const p=n.value/2;o+l-p>p-o?(i.top="auto",i.bottom=n.value-o+6+"px",r.bottom="-6px",r["border-width"]="6px 6px 0 6px",r["border-color"]="#fcfcfd transparent transparent transparent"):(i.top=`${o+l+6}px`,r.top="-6px",r["border-width"]="0 6px 6px 6px",r["border-color"]="transparent transparent #fcfcfd transparent")}return t});return mi(()=>{const e=()=>{const{windowWidth:e,windowHeight:o,windowTop:i}=iv();t.value=e,n.value=o+(i||0)};window.addEventListener("resize",e),e(),_i(()=>{window.removeEventListener("resize",e)})}),{isDesktop:o,popupStyle:i}}(e);let p;function h(e){const t=r.value+e.deltaY;Math.abs(t)>10?(s.value+=t/3,s.value=s.value>=o.value?o.value:s.value<=0?0:s.value,p.scrollTo(s.value)):r.value=t,e.preventDefault()}mi(()=>{const{scroller:e,handleTouchStart:t,handleTouchMove:n,handleTouchEnd:o}=function(e,t){const n={trackingID:-1,maxDy:0,maxDx:0},o=new Cg(e,t);function i(e){const t=e,o=e;return"move"===t.detail.state||"end"===t.detail.state?{x:t.detail.dx,y:t.detail.dy}:{x:o.screenX-n.x,y:o.screenY-n.y}}return{scroller:o,handleTouchStart:function(e){const t=e,i=e;"start"===t.detail.state?(n.trackingID="touch",n.x=t.detail.x,n.y=t.detail.y):(n.trackingID="mouse",n.x=i.screenX,n.y=i.screenY),n.maxDx=0,n.maxDy=0,n.historyX=[0],n.historyY=[0],n.historyTime=[t.detail.timeStamp||i.timeStamp],n.listener=o,o.onTouchStart&&o.onTouchStart(),("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault()},handleTouchMove:function(e){const t=e,o=e;if(-1!==n.trackingID){("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault();const r=i(e);if(r){for(n.maxDy=Math.max(n.maxDy,Math.abs(r.y)),n.maxDx=Math.max(n.maxDx,Math.abs(r.x)),n.historyX.push(r.x),n.historyY.push(r.y),n.historyTime.push(t.detail.timeStamp||o.timeStamp);n.historyTime.length>10;)n.historyTime.shift(),n.historyX.shift(),n.historyY.shift();n.listener&&n.listener.onTouchMove&&n.listener.onTouchMove(r.x,r.y)}}},handleTouchEnd:function(e){if(-1!==n.trackingID){e.preventDefault();const t=i(e);if(t){const e=n.listener;n.trackingID=-1,n.listener=null;const o={x:0,y:0};if(n.historyTime.length>2)for(let t=n.historyTime.length-1,i=n.historyTime[t],r=n.historyX[t],s=n.historyY[t];t>0;){t--;const e=i-n.historyTime[t];if(e>30&&e<50){o.x=(r-n.historyX[t])/(e/1e3),o.y=(s-n.historyY[t])/(e/1e3);break}}n.historyTime=[],n.historyX=[],n.historyY=[],e&&e.onTouchEnd&&e.onTouchEnd(t.x,t.y,o)}}}}}(a.value,{enableY:!0,friction:new yg(1e-4),spring:new wg(2,90,20),onScroll:e=>{s.value=e.target.scrollTop}});p=e,vg(a.value,i=>{if(e)switch(i.detail.state){case"start":t(i);break;case"move":n(i);break;case"end":case"cancel":o(i)}},!0)}),Oo(()=>e.visible,()=>{to(()=>{e.title&&(i.value=document.querySelector(".uni-actionsheet__title").offsetHeight),p.update(),a.value&&(o.value=a.value.clientHeight-n.value),document.querySelectorAll(".uni-actionsheet__cell").forEach(e=>{!function(e){const t=20;let n=0,o=0;e.addEventListener("touchstart",e=>{const t=e.changedTouches[0];n=t.clientX,o=t.clientY}),e.addEventListener("touchend",e=>{const i=e.changedTouches[0];if(Math.abs(i.clientX-n){o[e]=i[e]}),e.target.dispatchEvent(o)}})}(e)})})});const g=function(e){const t=bn({listItemColor:"#000",cancelItemColor:"#000"}),n=({theme:e})=>{!function(e,t){["listItemColor","cancelItemColor"].forEach(n=>{t[n]=fy[e][n]})}(e,t)};return Po(()=>{e.visible?(t.listItemColor=t.cancelItemColor=e.itemColor,"#000"===e.itemColor&&(n({theme:Km()}),jv(n))):Fv(n)}),t}(e);return()=>Ir("uni-actionsheet",{onTouchmove:Vc},[Ir(fs,{name:"uni-fade"},{default:()=>[zo(Ir("div",{class:"uni-mask uni-actionsheet__mask",onClick:()=>d(-1)},null,8,["onClick"]),[[Ts,e.visible]])]}),Ir("div",{class:["uni-actionsheet",{"uni-actionsheet_toggle":e.visible}],style:f.value.content},[Ir("div",{ref:l,class:"uni-actionsheet__menu",onWheel:h},[e.title?Ir(mr,null,[Ir("div",{class:"uni-actionsheet__cell",style:{height:`${i.value}px`}},null),Ir("div",{class:"uni-actionsheet__title"},[e.title])]):"",Ir("div",{style:{maxHeight:`${n.value}px`,overflow:"hidden"}},[Ir("div",{ref:a},[e.itemList.map((e,t)=>Ir("div",{key:t,style:{color:g.listItemColor},class:"uni-actionsheet__cell",onClick:()=>d(t)},[e],12,["onClick"]))],512)])],40,["onWheel"]),Ir("div",{class:"uni-actionsheet__action"},[Ir("div",{style:{color:g.cancelItemColor},class:"uni-actionsheet__cell",onClick:()=>d(-1)},[u("uni.showActionSheet.cancel")],12,["onClick"])]),Ir("div",{style:f.value.triangle},null,4)],6)],40,["onTouchmove"])}});let hy,gy,my;const vy=Ie(()=>{Uy.on("onHidePopup",()=>my.visible=!1)});function yy(e){-1===e?gy&&gy("cancel"):hy&&hy({tapIndex:e})}const by=Xd("showActionSheet",(e,{resolve:t,reject:n})=>{vy(),hy=t,gy=n,my?(c(my,e),my.visible=!0):(my=bn(e),to(()=>(xv(py,my,yy).mount(Cv("u-s-a-s")),to(()=>my.visible=!0))))},0,Qf),_y=Xd("loadFontFace",({family:e,source:t,desc:n},{resolve:o,reject:i})=>{(function(e,t,n){const o=document.fonts;if(o){const i=new FontFace(e,t,n);return i.load().then(()=>{o.add&&o.add(i)})}return new Promise(o=>{const i=document.createElement("style"),r=[];if(n){const{style:e,weight:t,stretch:o,unicodeRange:i,variant:s,featureSettings:a}=n;e&&r.push(`font-style:${e}`),t&&r.push(`font-weight:${t}`),o&&r.push(`font-stretch:${o}`),i&&r.push(`unicode-range:${i}`),s&&r.push(`font-variant:${s}`),a&&r.push(`font-feature-settings:${a}`)}i.innerText=`@font-face{font-family:"${e}";src:${t};${r.join(";")}}`,document.head.appendChild(i),o()})})(e,t=t.startsWith('url("')||t.startsWith("url('")?`url('${Xp(t.substring(5,t.length-2))}')`:t.startsWith("url(")?`url('${Xp(t.substring(4,t.length-1))}')`:Xp(t),n).then(()=>{o()}).catch(e=>{i(`loadFontFace:fail ${e}`)})});function wy(e){function t(){var t;t=e.navigationBar.titleText,document.title=t,Uy.emit("onNavigationBarChange",{titleText:t})}Po(t),ri(t)}const xy=Xd(op,(e,{resolve:t})=>{Uy.invokeViewMethod(op,{},cu()),t()}),Cy=Yu({name:"TabBar",setup(){const e=Dn([]),t=pp(),n=function(e,t){const n=Cn(e),o=n?bn(Vv(e)):Vv(e);return __uniConfig.darkmode&&n&&Oo(e,e=>{const t=Vv(e);for(const n in t)o[n]=t[n]}),t&&jv(t),o}(t,()=>{const e=Vv(t);n.backgroundColor=e.backgroundColor,n.borderStyle=e.borderStyle,n.color=e.color,n.selectedColor=e.selectedColor,n.blurEffect=e.blurEffect,n.midButton=e.midButton,e.list&&e.list.length&&e.list.forEach((e,t)=>{n.list[t].iconPath=e.iconPath,n.list[t].selectedIconPath=e.selectedIconPath})});!function(e,t){function n(){let n=[];n=e.list.filter(e=>!1!==e.visible),t.value=n}Dn(c({type:"midButton"},e.midButton)),Po(n)}(n,e),function(e){Oo(()=>e.shown,t=>{Gc({"--window-bottom":_p(t?parseInt(e.height):0)})})}(n);const o=function(e,t,n){return Po(()=>{const o=e.meta;if(o.isTabBar){const e=o.route,i=n.value.findIndex(t=>t.pagePath===e);t.selectedIndex=i}}),(t,n)=>{const{type:o}=t;return()=>{const{pagePath:o,text:i}=t;let r=$e(o);r===__uniRoutes[0].alias&&(r="/"),e.path!==r?ap({from:"tabBar",url:r,tabBarText:i}):hu("onTabItemTap",{index:n,text:i,pagePath:o})}}}(zl(),n,e),{style:i,borderStyle:r,placeholderStyle:s}=function(e){const t=os(()=>{let t=e.backgroundColor;const n=e.blurEffect;return t||vp&&n&&"none"!==n&&(t=Ay[n]),{backgroundColor:t||Sy,backdropFilter:"none"!==n?"blur(10px)":n}}),n=os(()=>{const{borderStyle:t,borderColor:n}=e;return n&&v(n)?{backgroundColor:n}:{backgroundColor:Ey[t]||Ey.black}}),o=os(()=>({height:e.height}));return{style:t,borderStyle:n,placeholderStyle:o}}(n);return mi(()=>{n.iconfontSrc&&_y({family:"UniTabbarIconFont",source:`url("${n.iconfontSrc}")`})}),()=>{const t=function(e,t,n){const{selectedIndex:o,selectedColor:i,color:r}=e;return n.value.map((n,s)=>{const a=o===s;return function(e,t,n,o,i,r,s,a){return Ir("div",{key:s,class:"uni-tabbar__item",onClick:a(i,s)},[My(e,t||"",n,o,i,r)],8,["onClick"])}(a?i:r,a&&n.selectedIconPath||n.iconPath||"",n.iconfont?a&&n.iconfont.selectedText||n.iconfont.text:void 0,n.iconfont?a&&n.iconfont.selectedColor||n.iconfont.color:void 0,n,e,s,t)})}(n,o,e);return Ir("uni-tabbar",{class:"uni-tabbar-"+n.position},[Ir("div",{class:"uni-tabbar",style:i.value},[Ir("div",{class:"uni-tabbar-border",style:r.value},null,4),t],4),Ir("div",{class:"uni-placeholder",style:s.value},null,4)],2)}}});const Sy="#f7f7fa",ky="rgb(0, 0, 0, 0.8)",Ty="rgb(250, 250, 250, 0.8)",Ay={dark:ky,light:Ty,extralight:Ty},Ey={white:"rgba(255, 255, 255, 0.33)",black:"rgba(0, 0, 0, 0.33)"};function My(e,t,n,o,i,r){const{height:s}=r;return Ir("div",{class:"uni-tabbar__bd",style:{height:s}},[n?Ly(n,o||ky,i,r):t&&Py(t,i,r),i.text&&Oy(e,i,r),i.redDot&&$y(i.badge)],4)}function Py(e,t,n){const{type:o,text:i}=t,{iconWidth:r}=n;return Ir("div",{class:"uni-tabbar__icon"+(i?" uni-tabbar__icon__diff":""),style:{width:r,height:r}},["midButton"!==o&&Ir("img",{src:Xp(e)},null,8,["src"])],6)}function Ly(e,t,n,o){var i;const{type:r,text:s}=n,{iconWidth:a}=o,l="uni-tabbar__icon"+(s?" uni-tabbar__icon__diff":""),c={width:a,height:a},u={fontSize:(null==(i=n.iconfont)?void 0:i.fontSize)||a,color:t};return Ir("div",{class:l,style:c},["midButton"!==r&&Ir("div",{class:"uni-tabbar__iconfont",style:u},[e],4)],6)}function Oy(e,t,n){const{iconPath:o,text:i}=t,{fontSize:r,spacing:s}=n;return Ir("div",{class:"uni-tabbar__label",style:{color:e,fontSize:r,lineHeight:o?"normal":1.8,marginTop:o?s:"inherit"}},[i],4)}function $y(e){return Ir("div",{class:"uni-tabbar__reddot"+(e?" uni-tabbar__badge":"")},[e],2)}const Iy="0px",Dy=Yu({name:"Layout",setup(e,{emit:t}){const n=Dn(null);Yc({"--status-bar-height":Iy,"--top-window-height":Iy,"--window-left":Iy,"--window-right":Iy,"--window-margin":Iy,"--tab-bar-height":Iy});const o=function(){const e=zl();return{routeKey:os(()=>Rp("/"+e.meta.route,cd())),isTabBar:os(()=>e.meta.isTabBar),routeCache:Bp}}(),{layoutState:i,windowState:r}=function(){ld();{const e=bn({marginWidth:0,leftWindowWidth:0,rightWindowWidth:0});return Oo(()=>e.marginWidth,e=>Yc({"--window-margin":e+"px"})),Oo(()=>e.leftWindowWidth+e.marginWidth,e=>{Yc({"--window-left":e+"px"})}),Oo(()=>e.rightWindowWidth+e.marginWidth,e=>{Yc({"--window-right":e+"px"})}),{layoutState:e,windowState:os(()=>({}))}}}();!function(e,t){const n=ld();function o(){const o=document.body.clientWidth,i=Lp();let r={};if(i.length>0){r=Cp(i[i.length-1]).meta}else{const e=_u(n.path,!0);e&&(r=e.meta)}const s=parseInt(String((f(r,"maxWidth")?r.maxWidth:__uniConfig.globalStyle.maxWidth)||Number.MAX_SAFE_INTEGER));let a=!1;a=o>s,a&&s?(e.marginWidth=(o-s)/2,to(()=>{const e=t.value;e&&e.setAttribute("style","max-width:"+s+"px;margin:0 auto;")})):(e.marginWidth=0,to(()=>{const e=t.value;e&&e.removeAttribute("style")}))}Oo([()=>n.path],o),mi(()=>{o(),window.addEventListener("resize",o)})}(i,n);const s=function(){const e=ld(),t=pp(),n=os(()=>e.meta.isTabBar&&t.shown);return Yc({"--tab-bar-height":t.height}),n}(),a=function(e){const t=Dn(!1);return os(()=>({"uni-app--showtabbar":e&&e.value,"uni-app--maxwidth":t.value}))}(s);return()=>{const e=function(e){const t=function({routeKey:e,isTabBar:t,routeCache:n}){return Ir(Dl,null,{default:vo(({Component:o})=>[(xr(),Ar(oi,{matchBy:"key",cache:n},[(xr(),Ar(ko(o),{type:t.value?"tabBar":"",key:e.value}))],1032,["cache"]))]),_:1})}(e);return t}(o),t=function(e){return zo(Ir(Cy,null,null,512),[[Ts,e.value]])}(s);return Ir("uni-app",{ref:n,class:a.value},[e,t],2)}}});const Ry="MAP_LOCATION",zy=Yu({name:"MapLocation",setup(){const e=bn({latitude:0,longitude:0,rotate:0});{let t=function(t){e.rotate=t.direction},n=function(){Dv({type:"gcj02",success:t=>{e.latitude=t.latitude,e.longitude=t.longitude},complete:()=>{r=setTimeout(n,3e4)}})},o=function(){r&&clearTimeout(r),av(t)};const i=Ki("onMapReady");let r;sv(t),i(n),_i(o);const s=Ki("addMapChidlContext"),a=Ki("removeMapChidlContext"),l={id:Ry,state:e};s(l),_i(()=>a(l))}return()=>e.latitude?Ir(Nm,jr({anchor:{x:.5,y:.5},width:"44",height:"44",iconPath:Om},e),null,16,["iconPath"]):null}}),By=Yu({name:"MapPolygon",props:{dashArray:{type:Array,default:()=>[0,0]},points:{type:Array,required:!0},strokeWidth:{type:Number,default:1},strokeColor:{type:String,default:"#000000"},fillColor:{type:String,default:"#00000000"},zIndex:{type:Number,default:0}},setup(e){let t;return Ki("onMapReady")((n,o,i)=>{function r(){const{points:i,strokeWidth:r,strokeColor:s,dashArray:a,fillColor:l,zIndex:c}=e,u=i.map(e=>{const{latitude:t,longitude:n}=e;return zm()?[n,t]:Bm()?new o.Point(n,t):new o.LatLng(t,n)}),{r:d,g:f,b:p,a:h}=qm(l),{r:g,g:m,b:v,a:y}=qm(s),b={clickable:!0,cursor:"crosshair",editable:!1,map:n,fillColor:"",path:u,strokeColor:"",strokeDashStyle:a.some(e=>e>0)?"dash":"solid",strokeWeight:r,visible:!0,zIndex:c};o.Color?(b.fillColor=new o.Color(d,f,p,h),b.strokeColor=new o.Color(g,m,v,y)):(b.fillColor=`rgb(${d}, ${f}, ${p})`,b.fillOpacity=h,b.strokeColor=`rgb(${g}, ${m}, ${v})`,b.strokeOpacity=y),t?t.setOptions(b):Bm()?(t=new o.Polygon(b.path,b),n.addOverlay(t)):t=new o.Polygon(b)}r(),Oo(e,r)}),_i(()=>{t.setMap(null)}),()=>null}});function Ny(e){const t=[];return p(e)&&e.forEach(e=>{e&&e.latitude&&e.longitude&&t.push({latitude:e.latitude,longitude:e.longitude})}),t}function qy(e,t,n){return Bm()?function(e,t,n){return new e.Point(n,t)}(e,t,n):zm()?function(e,t,n){return new e.LngLat(n,t)}(e,t,n):function(e,t,n){return new e.LatLng(t,n)}(e,t,n)}function jy(e){return"getLat"in e?e.getLat():Bm()?e.lat:e.lat()}function Fy(e){return"getLng"in e?e.getLng():Bm()?e.lng:e.lng()}function Vy(e,t,n){const o=Ku(t,n),i=Dn(null);let r,s;const a=bn({latitude:Number(e.latitude),longitude:Number(e.longitude),includePoints:Ny(e.includePoints)}),l=[];let u,d;function f(e){u?e(s,r,o):l.push(e)}const p=[];function h(e){d?e():l.push(e)}const g={};function m(){d=!0,p.forEach(e=>e()),p.length=0}function v(){const e=s.getCenter();return{scale:s.getZoom(),centerLocation:{latitude:jy(e),longitude:Fy(e)}}}function y(){if(zm()){const e=[];a.includePoints.forEach(t=>{e.push([t.longitude,t.latitude])});const t=new r.Bounds(...e);s.setBounds(t)}else if(Bm());else{const e=new r.LatLngBounds;a.includePoints.forEach(({latitude:t,longitude:n})=>{const o=new r.LatLng(t,n);e.extend(o)}),s.fitBounds(e)}}function b(){const t=i.value,l=qy(r,a.latitude,a.longitude),u=r.event||r.Event,d=new r.Map(t,{center:l,zoom:Number(e.scale),disableDoubleClickZoom:!0,mapTypeControl:!1,zoomControl:!1,scaleControl:!1,panControl:!1,fullscreenControl:!1,streetViewControl:!1,keyboardShortcuts:!1,minZoom:5,maxZoom:18,draggable:!0});if(Bm()&&(d.centerAndZoom(l,Number(e.scale)),d.enableScrollWheelZoom(),d._printLog&&d._printLog("uniapp")),Oo(()=>e.scale,e=>{d.setZoom(Number(e)||16)}),h(()=>{a.includePoints.length&&(y(),function(){const e=qy(r,a.latitude,a.longitude);s.setCenter(e)}())}),Bm())d.addEventListener("click",()=>{o("tap",{},{}),o("click",{},{})}),d.addEventListener("dragstart",()=>{o("regionchange",{},{type:"begin",causedBy:"gesture"})}),d.addEventListener("dragend",()=>{o("regionchange",{},c({type:"end",causedBy:"drag"},v()))});else{const e=u.addListener(d,"bounds_changed",()=>{e.remove(),m()});u.addListener(d,"complete",()=>{m()}),u.addListener(d,"click",()=>{o("tap",{},{}),o("click",{},{})}),u.addListener(d,"dragstart",()=>{o("regionchange",{},{type:"begin",causedBy:"gesture"})}),u.addListener(d,"dragend",()=>{o("regionchange",{},c({type:"end",causedBy:"drag"},v()))});const t=()=>{n("update:scale",d.getZoom()),o("regionchange",{},c({type:"end",causedBy:"scale"},v()))};u.addListener(d,"zoom_changed",t),u.addListener(d,"zoomend",t),u.addListener(d,"center_changed",()=>{const e=d.getCenter(),t=jy(e),o=Fy(e);n("update:latitude",t),n("update:longitude",o)})}return d}Oo([()=>e.latitude,()=>e.longitude],([e,t])=>{const n=Number(e),o=Number(t);if((n!==a.latitude||o!==a.longitude)&&(a.latitude=n,a.longitude=o,s)){const e=qy(r,a.latitude,a.longitude);s.setCenter(e)}}),Oo(()=>e.includePoints,e=>{a.includePoints=Ny(e),d&&y()},{deep:!0});try{Vg((e,t={})=>{switch(e){case"getCenterLocation":f(()=>{const n=s.getCenter();De(t,{latitude:jy(n),longitude:Fy(n),errMsg:`${e}:ok`})});break;case"moveToLocation":{let n=Number(t.latitude),o=Number(t.longitude);if(!n||!o){const e=g[Ry];e&&(n=e.state.latitude,o=e.state.longitude)}if(n&&o){if(a.latitude=n,a.longitude=o,s){const e=qy(r,n,o);s.setCenter(e)}f(()=>{De(t,`${e}:ok`)})}else De(t,`${e}:fail`)}break;case"translateMarker":f(()=>{const n=g[t.markerId];if(n){try{n.translate(t)}catch(o){De(t,`${e}:fail ${o.message}`)}De(t,`${e}:ok`)}else De(t,`${e}:fail not found`)});break;case"includePoints":a.includePoints=Ny(t.includePoints),(d||zm())&&y(),h(()=>{De(t,`${e}:ok`)});break;case"getRegion":h(()=>{const n=s.getBounds(),o=n.getSouthWest(),i=n.getNorthEast();De(t,{southwest:{latitude:jy(o),longitude:Fy(o)},northeast:{latitude:jy(i),longitude:Fy(i)},errMsg:`${e}:ok`})});break;case"getScale":f(()=>{De(t,{scale:s.getZoom(),errMsg:`${e}:ok`})})}},Hg(),!0)}catch(_){}return mi(()=>{Pm(e.libraries,e=>{r=e,s=b(),u=!0,l.forEach(e=>e(s,r,o)),l.length=0,o("updated",{},{})})}),Gi("onMapReady",f),Gi("addMapChidlContext",function(e){g[e.id]=e}),Gi("removeMapChidlContext",function(e){delete g[e.id]}),{state:a,mapRef:i,trigger:o}}const Wy=Xu({name:"Map",props:{id:{type:String,default:""},latitude:{type:[String,Number],default:0},longitude:{type:[String,Number],default:0},scale:{type:[String,Number],default:16},markers:{type:Array,default:()=>[]},includePoints:{type:Array,default:()=>[]},polyline:{type:Array,default:()=>[]},circles:{type:Array,default:()=>[]},controls:{type:Array,default:()=>[]},showLocation:{type:[Boolean,String],default:!1},libraries:{type:Array,default:()=>[]},polygons:{type:Array,default:()=>[]}},emits:["markertap","labeltap","callouttap","controltap","regionchange","tap","click","updated","update:scale","update:latitude","update:longitude"],setup(e,{emit:t,slots:n}){const o=Dn(null),{mapRef:i,trigger:r}=Vy(e,o,t);return()=>Ir("uni-map",{ref:o,id:e.id},[Ir("div",{ref:i,style:"width: 100%; height: 100%; position: relative; overflow: hidden"},null,512),e.markers.map(e=>Ir(Nm,jr({key:e.id},e),null,16)),e.polyline.map(e=>Ir(Fm,e,null,16)),e.circles.map(e=>Ir(Vm,e,null,16)),e.controls.map(e=>Ir(Hm,jr(e,{trigger:r}),null,16,["trigger"])),e.showLocation&&Ir(zy,null,null),e.polygons.map(e=>Ir(By,e,null,16)),Ir("div",{style:"position: absolute;top: 0;width: 100%;height: 100%;overflow: hidden;pointer-events: none;"},[n.default&&n.default()])],8,["id"])}}),Hy=c(xc,{publishHandler(e,t,n){Uy.subscribeHandler(e,t,n)}}),Uy=c(Iu,{publishHandler(e,t,n){Hy.subscribeHandler(e,t,n)}}),Xy={name:"PageRefresh",setup(){const{pullToRefresh:e}=sd();return{offset:e.offset,color:e.color}}},Yy=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},Gy={class:"uni-page-refresh-inner"},Ky=["fill"],Jy=[$r("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null,-1),$r("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1)],Qy={class:"uni-page-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},Zy=["stroke"];const eb=Yy(Xy,[["render",function(e,t,n,o,i,r){return xr(),Tr("uni-page-refresh",null,[$r("div",{style:je({"margin-top":o.offset+"px"}),class:"uni-page-refresh"},[$r("div",Gy,[(xr(),Tr("svg",{fill:o.color,class:"uni-page-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},Jy,8,Ky)),(xr(),Tr("svg",Qy,[$r("circle",{stroke:o.color,class:"uni-page-refresh__path",cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"},null,8,Zy)]))])],4)])}]]);function tb(e,t,n){const o=Array.prototype.slice.call(e.changedTouches).filter(e=>e.identifier===t)[0];return!!o&&(e.deltaY=o.pageY-n,!0)}const nb="pulling",ob="reached",ib="aborting",rb="refreshing",sb="restoring";function ab(e){const t=sd(),{id:n,pullToRefresh:o}=t,{range:i,height:r}=o;let s,a,l,c,u,d,f,p;Vg(()=>{t.enablePullDownRefresh&&(p||(p=rb,v(),setTimeout(()=>{x()},50)))},"startPullDownRefresh",!1,n),Vg(()=>{t.enablePullDownRefresh&&p===rb&&(y(),p=sb,v(),function(e){if(!a)return;l.transition="-webkit-transform 0.3s",l.transform+=" scale(0.01)";const t=function(){n&&clearTimeout(n),a.removeEventListener("webkitTransitionEnd",t),l.transition="",l.transform="translate3d(-50%, 0, 0)",e()};a.addEventListener("webkitTransitionEnd",t);const n=setTimeout(t,350)}(()=>{y(),p=h=g=null}))},op,!1,n),mi(()=>{s=e.value.$el,a=s.querySelector(".uni-page-refresh"),l=a.style,c=a.querySelector(".uni-page-refresh-inner").style});let h=null,g=null;function m(e){p&&s&&s.classList[e]("uni-page-refresh--"+p)}function v(){m("add")}function y(){m("remove")}const b=Gu(e=>{if(!t.enablePullDownRefresh)return;const n=e.changedTouches[0];u=n.identifier,d=n.pageY,f=!([ib,rb,sb].indexOf(p)>=0)}),_=Gu(e=>{if(!t.enablePullDownRefresh)return;if(!f)return;if(!tb(e,u,d))return;let{deltaY:n}=e;if(0!==(document.documentElement.scrollTop||document.body.scrollTop))return void(u=null);if(n<0&&!p)return;e.cancelable&&e.preventDefault(),null===h&&(g=n,p=nb,v()),n-=g,n<0&&(n=0),h=n;(n>=i&&p!==ob||n1?t=1:t*=t*t;const n=Math.round(e/(i/r))||0;c.transform="rotate("+360*t+"deg)",l.clip="rect("+(45-n)+"px,45px,45px,-5px)",l.transform="translate3d(-50%, "+n+"px, 0)"}(n)}),w=Gu(e=>{t.enablePullDownRefresh&&tb(e,u,d)&&null!==p&&(p===nb?(y(),p=ib,v(),function(e){if(!a)return;if(l.transform){l.transition="-webkit-transform 0.3s",l.transform="translate3d(-50%, 0, 0)";const t=function(){n&&clearTimeout(n),a.removeEventListener("webkitTransitionEnd",t),l.transition="",e()};a.addEventListener("webkitTransitionEnd",t);const n=setTimeout(t,350)}else e()}(()=>{y(),p=h=g=null})):p===ob&&(y(),p=rb,v(),x()))});function x(){a&&(l.transition="-webkit-transform 0.2s",l.transform="translate3d(-50%, "+r+"px, 0)",hu(n,_e))}return{onTouchstartPassive:b,onTouchmove:_,onTouchend:w,onTouchcancel:w}}const lb=Yu({name:"PageBody",setup(e,t){const n=sd(),o=Dn(null),i=Dn(null),r=n.enablePullDownRefresh?ab(o):null,s=Dn(null);return Oo(()=>n.enablePullDownRefresh,()=>{s.value=n.enablePullDownRefresh?r:null},{immediate:!0}),()=>{const e=function(e,t){if(!t.enablePullDownRefresh)return null;return Ir(eb,{ref:e},null,512)}(o,n);return Ir(mr,null,[e,Ir("uni-page-wrapper",jr({ref:i},s.value),[Ir("uni-page-body",null,[Ti(t.slots,"default")]),null],16)])}}});const cb=Yu({name:"Page",setup(e,t){let n=ad(cd());n.navigationBar;const o={};return wy(n),()=>Ir("uni-page",{"data-page":n.route,style:o},[ub(t),null])}});function ub(e){return xr(),Ar(lb,{key:0},{default:vo(()=>[Ti(e.slots,"page")]),_:3})}const db={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0};window.uni={},window.wx={},window.rpx2px=nf;const fb=Object.assign({}),pb=Object.assign;window.__uniConfig=pb({tabBar:{position:"bottom",color:"#86909c",selectedColor:"#16c2a9",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",list:[{pagePath:"pages/index/index",text:"首页",iconPath:"/static/tab/icon1.png",selectedIconPath:"/static/tab/icon1_cur.png"},{pagePath:"pages/map/index",text:"场馆",iconPath:"/static/tab/icon2.png",selectedIconPath:"/static/tab/icon2_cur.png"},{pagePath:"pages/activity/index",text:"活动",iconPath:"/static/tab/icon3.png",selectedIconPath:"/static/tab/icon3_cur.png"},{pagePath:"pages/mine/index",text:"我的",iconPath:"/static/tab/icon4.png",selectedIconPath:"/static/tab/icon4_cur.png"}],backgroundColor:"#ffffff",selectedIndex:0,shown:!0},globalStyle:{backgroundColor:"#f7f8fa",navigationBar:{backgroundColor:"#ffffff",titleText:"苏州科普",style:"custom",type:"default",titleColor:"#000000"},isNVue:!1},compilerVersion:"4.83"},{appId:"__UNI__SZKP_MAP_H5",appName:"szkp-map-h5",appVersion:"0.1.0",appVersionCode:"100",async:db,debug:!1,networkTimeout:{request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},sdkConfigs:{maps:{tencent:{key:"CRFBZ-NTART-YU4XX-LCDGK-3J456-VKBK2"}}},qqMapKey:"CRFBZ-NTART-YU4XX-LCDGK-3J456-VKBK2",bMapKey:void 0,googleMapKey:void 0,aMapKey:void 0,aMapSecurityJsCode:void 0,aMapServiceHost:void 0,nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:Object.keys(fb).reduce((e,t)=>{const n=t.replace(/\.\/locale\/(uni-app.)?(.*).json/,"$2");return pb(e[n]||(e[n]={}),fb[t].default),e},{}),router:{mode:"hash",base:"/h5/",assets:"assets",routerBase:"/h5/"},darkmode:!1,themeConfig:{}}),window.__uniLayout=window.__uniLayout||{};const hb={delay:db.delay,timeout:db.timeout,suspensible:db.suspensible};db.loading&&(hb.loadingComponent={name:"SystemAsyncLoading",render:()=>Ir(Co(db.loading))}),db.error&&(hb.errorComponent={name:"SystemAsyncError",props:["error"],render(){return Ir(Co(db.error),{error:this.error})}});const gb=()=>t(()=>import("./pages-index-index.5DcX7mv3.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])).then(e=>mm(e.default||e)),mb=Qo(pb({loader:gb},hb)),vb=()=>t(()=>import("./pages-map-index.BfbKrIEP.js"),__vite__mapDeps([8,9,1,2,4,6,10])).then(e=>mm(e.default||e)),yb=Qo(pb({loader:vb},hb)),bb=()=>t(()=>import("./pages-activity-index.D-LB6AZ6.js"),__vite__mapDeps([11,9,3,6,12])).then(e=>mm(e.default||e)),_b=Qo(pb({loader:bb},hb)),wb=()=>t(()=>import("./pages-discover-index.ClNQ8m2Z.js"),__vite__mapDeps([13,9,6,14])).then(e=>mm(e.default||e)),xb=Qo(pb({loader:wb},hb)),Cb=()=>t(()=>import("./pages-mine-index.CBt6SqwA.js"),__vite__mapDeps([15,16,6,17])).then(e=>mm(e.default||e)),Sb=Qo(pb({loader:Cb},hb)),kb=()=>t(()=>import("./pages-mine-profile.CPS6ldDl.js"),__vite__mapDeps([18,16,6,19])).then(e=>mm(e.default||e)),Tb=Qo(pb({loader:kb},hb)),Ab=()=>t(()=>import("./pages-mine-orders.1ISf7OpF.js"),__vite__mapDeps([20,9,21,6,22])).then(e=>mm(e.default||e)),Eb=Qo(pb({loader:Ab},hb)),Mb=()=>t(()=>import("./pages-activity-detail.CsdrFt7b.js"),__vite__mapDeps([23,9,3,4,24,1,6,25])).then(e=>mm(e.default||e)),Pb=Qo(pb({loader:Mb},hb)),Lb=()=>t(()=>import("./pages-activity-reserve.D_4_bv2G.js"),__vite__mapDeps([26,9,16,6,27])).then(e=>mm(e.default||e)),Ob=Qo(pb({loader:Lb},hb)),$b=()=>t(()=>import("./pages-mine-reservation-detail.pHRTDg51.js"),__vite__mapDeps([28,9,21,6,29])).then(e=>mm(e.default||e)),Ib=Qo(pb({loader:$b},hb)),Db=()=>t(()=>import("./pages-study-tour-detail.tOWRhwgP.js"),__vite__mapDeps([30,9,5,6,31])).then(e=>mm(e.default||e)),Rb=Qo(pb({loader:Db},hb)),zb=()=>t(()=>import("./pages-venue-detail.CrUsEMFB.js"),__vite__mapDeps([32,9,4,24,6,33])).then(e=>mm(e.default||e)),Bb=Qo(pb({loader:zb},hb)),Nb=()=>t(()=>import("./pages-stats-index.DD3ZTHk8.js"),__vite__mapDeps([34,6,35])).then(e=>mm(e.default||e)),qb=Qo(pb({loader:Nb},hb)),jb=()=>t(()=>import("./pages-traffic-index.ixM56Iss.js"),__vite__mapDeps([36,6,37])).then(e=>mm(e.default||e)),Fb=Qo(pb({loader:jb},hb));function Vb(e,t){return xr(),Ar(cb,null,{page:vo(()=>[Ir(e,pb({},t,{ref:"page"}),null,512)]),_:1})}window.__uniRoutes=[{path:"/",alias:"/pages/index/index",component:{setup(){const e=fm(),t=e&&e.$route&&e.$route.query||{};return()=>Vb(mb,t)}},loader:gb,meta:{isQuit:!0,isEntry:!0,isTabBar:!0,tabBarIndex:0,navigationBar:{titleText:"苏州科普",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/map/index",component:{setup(){const e=fm(),t=e&&e.$route&&e.$route.query||{};return()=>Vb(yb,t)}},loader:vb,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:1,navigationBar:{titleText:"场馆地图",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/activity/index",component:{setup(){const e=fm(),t=e&&e.$route&&e.$route.query||{};return()=>Vb(_b,t)}},loader:bb,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:2,enablePullDownRefresh:!0,backgroundColor:"#f3f3f3",navigationBar:{titleText:"活动",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/discover/index",component:{setup(){const e=fm(),t=e&&e.$route&&e.$route.query||{};return()=>Vb(xb,t)}},loader:wb,meta:{enablePullDownRefresh:!0,backgroundColor:"#f3f3f3",navigationBar:{titleText:"线路列表",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/mine/index",component:{setup(){const e=fm(),t=e&&e.$route&&e.$route.query||{};return()=>Vb(Sb,t)}},loader:Cb,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:3,navigationBar:{titleText:"我的",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/mine/profile",component:{setup(){const e=fm(),t=e&&e.$route&&e.$route.query||{};return()=>Vb(Tb,t)}},loader:kb,meta:{navigationBar:{titleText:"我的信息",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/mine/orders",component:{setup(){const e=fm(),t=e&&e.$route&&e.$route.query||{};return()=>Vb(Eb,t)}},loader:Ab,meta:{navigationBar:{titleText:"我的活动预约",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/activity/detail",component:{setup(){const e=fm(),t=e&&e.$route&&e.$route.query||{};return()=>Vb(Pb,t)}},loader:Mb,meta:{navigationBar:{titleText:"活动详情",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/activity/reserve",component:{setup(){const e=fm(),t=e&&e.$route&&e.$route.query||{};return()=>Vb(Ob,t)}},loader:Lb,meta:{navigationBar:{titleText:"预约报名",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/mine/reservation-detail",component:{setup(){const e=fm(),t=e&&e.$route&&e.$route.query||{};return()=>Vb(Ib,t)}},loader:$b,meta:{navigationBar:{titleText:"预约详情",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/study-tour/detail",component:{setup(){const e=fm(),t=e&&e.$route&&e.$route.query||{};return()=>Vb(Rb,t)}},loader:Db,meta:{navigationBar:{titleText:"研学线路",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/venue/detail",component:{setup(){const e=fm(),t=e&&e.$route&&e.$route.query||{};return()=>Vb(Bb,t)}},loader:zb,meta:{navigationBar:{titleText:"场馆详情",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/stats/index",component:{setup(){const e=fm(),t=e&&e.$route&&e.$route.query||{};return()=>Vb(qb,t)}},loader:Nb,meta:{navigationBar:{titleText:"活跃指数排行榜",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/traffic/index",component:{setup(){const e=fm(),t=e&&e.$route&&e.$route.query||{};return()=>Vb(Fb,t)}},loader:jb,meta:{navigationBar:{titleText:"客流统计",style:"custom",type:"default"},isNVue:!1}}].map(e=>(e.meta.route=(e.alias||e.path).slice(1),e /*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT - */));const Wb=Symbol();var Hb,Ub;(Ub=Hb||(Hb={})).direct="direct",Ub.patchObject="patch object",Ub.patchFunction="patch function";const Xb=(e,t=0)=>(t,n=Ur())=>{!Qr&&pi(e,t,n)},Yb=Xb(ie,3),Gb=Xb(se,1),Kb=Xb(de,2),Jb=Xb(be,2),Qb=Xb(_e,2),Zb="http://127.0.0.1:8000/api",e_="wx0ab83154fb7f544d",t_={accessToken:"szkp_h5_access_token",userInfo:"szkp_h5_user_info",oauthState:"szkp_h5_oauth_state",locConsent:"szkp_loc_consent",localProfile:"szkp_h5_local_profile"};function n_(){return pv(t_.accessToken)}function o_(e,t,n,o={}){return new Promise((i,r)=>{const s=n_(),a={"Content-Type":"application/json",...o.header};!1!==o.withAuth&&s&&(a.Authorization=`Bearer ${s}`),Ev({...o,url:`${Zb}${t}`,method:e,data:n,header:a,success:e=>{const t=e.statusCode||0;t>=200&&t<300?i(e.data):(401===t&&hv(t_.accessToken),r(e.data||{message:"请求失败"}))},fail:e=>r(e)})})}const i_={get:(e,t,n)=>o_("GET",e,t,n),post:(e,t,n)=>o_("POST",e,t,n),put:(e,t,n)=>o_("PUT",e,t,n),delete:(e,t,n)=>o_("DELETE",e,t,n)};function r_(e){return new Promise((t,n)=>{const o=n_();Iv({url:`${Zb}/h5/upload`,filePath:e,name:"file",header:o?{Authorization:`Bearer ${o}`}:{},success:e=>{const o=e.statusCode||0;if(o>=200&&o<300)try{const n=JSON.parse(e.data);t(n)}catch{n({message:"解析上传结果失败"})}else{401===o&&hv(t_.accessToken);try{n(JSON.parse(e.data))}catch{n({message:"上传失败"})}}},fail:e=>n(e)})})}function s_(){return window.navigator.userAgent.toLowerCase().includes("micromessenger")}async function a_(){return window.wx||await new Promise((e,t)=>{const n=document.createElement("script");n.src="https://res2.wx.qq.com/open/js/jweixin-1.6.0.js",n.onload=()=>e(),n.onerror=()=>t(new Error("微信 JSSDK 加载失败")),document.head.appendChild(n)}),window.wx}async function l_(e){if(!s_())return;const t=await a_();if(!t)return;const n=window.location.href.split("#")[0],o=await i_.get("/wechat/jssdk-signature",{url:n},{withAuth:!1});t.config({debug:!1,appId:o.appId,timestamp:o.timestamp,nonceStr:o.nonceStr,signature:o.signature,jsApiList:["updateAppMessageShareData","updateTimelineShareData","getLocation"]}),t.ready(()=>{const n={title:(null==e?void 0:e.title)||"苏州科普",desc:(null==e?void 0:e.desc)||"苏州科普活动与场馆地图",link:(null==e?void 0:e.link)||window.location.href,imgUrl:(null==e?void 0:e.imgUrl)||""};t.updateAppMessageShareData(n),t.updateTimelineShareData(n)})}async function c_(){if(!s_())return Promise.reject(new Error("not wechat"));const e=await a_();return e?new Promise((t,n)=>{var o;let i=!1;const r=setTimeout(()=>{i||(i=!0,n(new Error("wx ready timeout")))},15e3),s=e=>{i||(i=!0,clearTimeout(r),n(e))};null==(o=e.error)||o.call(e,e=>s(e||new Error("wx.config error"))),e.ready(()=>{e.getLocation({type:"gcj02",success:e=>{i||(i=!0,clearTimeout(r),t({lat:e.latitude,lng:e.longitude}))},fail:e=>s(e||new Error("getLocation fail"))})})}):Promise.reject(new Error("no wx"))}const u_="szkp_force_loc_prompt",d_="szkp_wechat_oauth_denied";let f_=null;function p_(){try{"undefined"!=typeof window&&window.sessionStorage&&window.sessionStorage.removeItem(t_.locConsent)}catch{}try{hv(t_.locConsent)}catch{}}function h_(){if("undefined"==typeof window)return!1;try{if("1"===window.sessionStorage.getItem(u_))return window.sessionStorage.removeItem(u_),!0}catch{}return!1}function g_(){return f_||(f_=async function(){var e,t;if(!s_())return!0;const n=new URL(window.location.href),o=n.searchParams.get("code"),i=n.searchParams.get("state");if(n.searchParams.get("err")){try{window.sessionStorage.setItem(d_,"1")}catch{}return n.searchParams.delete("code"),n.searchParams.delete("state"),n.searchParams.delete("err"),window.history.replaceState({},"",n.pathname+n.search+n.hash),!0}if(o){const r=pv(t_.oauthState);if(i&&r&&String(i)!==String(r))ay({title:"授权状态异常,请重试",icon:"none"});else try{const e=await i_.post("/h5/wechat/oauth",{code:o},{withAuth:!1});if(null==e?void 0:e.token){dv(t_.accessToken,e.token);try{window.sessionStorage.setItem(u_,"1")}catch{}}}catch(a){const n=(null==a?void 0:a.message)||(null==(t=null==(e=null==a?void 0:a.errors)?void 0:e.code)?void 0:t[0])||"微信登录失败";ay({title:n,icon:"none"})}return n.searchParams.delete("code"),n.searchParams.delete("state"),window.history.replaceState({},"",n.pathname+n.search+n.hash),!0}if(pv(t_.accessToken))return!0;try{if("1"===window.sessionStorage.getItem(d_))return!0}catch{}const r=encodeURIComponent(window.location.href.split("#")[0]),s=`${Date.now()}`;return dv(t_.oauthState,s),window.location.href=`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${e_}&redirect_uri=${r}&response_type=code&scope=snsapi_userinfo&state=${s}#wechat_redirect`,!1}().finally(()=>{f_=null})),f_}const m_=Ko({__name:"App",setup:e=>(Gb(()=>{g_(),l_().catch(()=>{})}),()=>{})});gm(m_,{init:pm,setup(e){const t=ld(),n=()=>{var n;n=e,Object.keys(kf).forEach(e=>{kf[e].forEach(t=>{pi(e,t,n)})});const{onLaunch:o,onShow:i,onPageNotFound:r}=e,s=function({path:e,query:t}){return c(fh,{path:e,query:t}),c(ph,fh),c({},fh)}({path:t.path.slice(1)||__uniRoutes[0].meta.route,query:Ke(t.query)});if(o&&I(o,s),i&&I(i,s),!t.matched.length){const e={notFound:!0,openType:"appLaunch",path:t.path,query:{},scene:1001};dp(),r&&I(r,e)}};return Ki(Sl).isReady().then(n),mi(()=>{window.addEventListener("resize",Ze(vm,50,{setTimeout:setTimeout,clearTimeout:clearTimeout})),window.addEventListener("message",ym),document.addEventListener("visibilitychange",bm),function(){let e=null;try{e=window.matchMedia("(prefers-color-scheme: dark)")}catch(t){}if(e){let t=e=>{Uy.emit(le,{theme:e.matches?"dark":"light"})};e.addEventListener?e.addEventListener("change",t):e.addListener(t)}}()}),t.query},before(e){e.mpType="app";const{setup:t}=e,n=()=>(xr(),Ar(Dy));e.setup=(e,o)=>{const i=t&&t(e,o);return m(i)?n:i},e.render=n}}),function(){const e=na(m_);return e.use(function(){const e=pt(!0),t=e.run(()=>Dn({}));let n=[],o=[];const i=En({install(e){i._a=e,e.provide(Wb,i),e.config.globalProperties.$pinia=i,o.forEach(e=>n.push(e)),o=[]},use(e){return this._a?n.push(e):o.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}()),{app:e}}().app.use(im).mount("#app");export{Sm as $,Tr as A,ki as B,Zs as C,Fe as D,Fh as E,mr as F,Nn as G,zr as H,cg as I,by as J,qv as K,ap as L,Wy as M,Jb as N,Qb as O,xy as P,Yb as Q,id as R,Lg as S,vv as T,cy as U,r_ as V,uy as W,Nv as X,Kb as Y,$g as Z,Dg as _,g_ as a,Eg as a0,Bv as a1,to as a2,Ur as a3,Cf as a4,nf as a5,cp as a6,uv as a7,je as a8,mf as a9,kh as aa,Ar as b,os as c,Ko as d,vo as e,ay as f,h_ as g,i_ as h,p_ as i,Kv as j,t_ as k,pv as l,s_ as m,c_ as n,mi as o,Dv as p,dv as q,Dn as r,l_ as s,xr as t,Ir as u,Ng as v,Oo as w,Bg as x,Rr as y,X as z}; + */));const Wb=Symbol();var Hb,Ub;(Ub=Hb||(Hb={})).direct="direct",Ub.patchObject="patch object",Ub.patchFunction="patch function";const Xb=(e,t=0)=>(t,n=Ur())=>{!Qr&&pi(e,t,n)},Yb=Xb(ie,3),Gb=Xb(se,1),Kb=Xb(de,2),Jb=Xb(be,2),Qb=Xb(_e,2),Zb="http://szkp-map.ali251.langye.net/api",e_="wx0ab83154fb7f544d",t_={accessToken:"szkp_h5_access_token",userInfo:"szkp_h5_user_info",oauthState:"szkp_h5_oauth_state",locConsent:"szkp_loc_consent",localProfile:"szkp_h5_local_profile"};function n_(){return pv(t_.accessToken)}function o_(e,t,n,o={}){return new Promise((i,r)=>{const s=n_(),a={"Content-Type":"application/json",...o.header};!1!==o.withAuth&&s&&(a.Authorization=`Bearer ${s}`),Ev({...o,url:`${Zb}${t}`,method:e,data:n,header:a,success:e=>{const t=e.statusCode||0;t>=200&&t<300?i(e.data):(401===t&&hv(t_.accessToken),r(e.data||{message:"请求失败"}))},fail:e=>r(e)})})}const i_={get:(e,t,n)=>o_("GET",e,t,n),post:(e,t,n)=>o_("POST",e,t,n),put:(e,t,n)=>o_("PUT",e,t,n),delete:(e,t,n)=>o_("DELETE",e,t,n)};function r_(e){return new Promise((t,n)=>{const o=n_();Iv({url:`${Zb}/h5/upload`,filePath:e,name:"file",header:o?{Authorization:`Bearer ${o}`}:{},success:e=>{const o=e.statusCode||0;if(o>=200&&o<300)try{const n=JSON.parse(e.data);t(n)}catch{n({message:"解析上传结果失败"})}else{401===o&&hv(t_.accessToken);try{n(JSON.parse(e.data))}catch{n({message:"上传失败"})}}},fail:e=>n(e)})})}function s_(){return window.navigator.userAgent.toLowerCase().includes("micromessenger")}async function a_(){return window.wx||await new Promise((e,t)=>{const n=document.createElement("script");n.src="https://res2.wx.qq.com/open/js/jweixin-1.6.0.js",n.onload=()=>e(),n.onerror=()=>t(new Error("微信 JSSDK 加载失败")),document.head.appendChild(n)}),window.wx}async function l_(e){if(!s_())return;const t=await a_();if(!t)return;const n=window.location.href.split("#")[0],o=await i_.get("/wechat/jssdk-signature",{url:n},{withAuth:!1});t.config({debug:!1,appId:o.appId,timestamp:o.timestamp,nonceStr:o.nonceStr,signature:o.signature,jsApiList:["updateAppMessageShareData","updateTimelineShareData","getLocation"]}),t.ready(()=>{const n={title:(null==e?void 0:e.title)||"苏州科普",desc:(null==e?void 0:e.desc)||"苏州科普活动与场馆地图",link:(null==e?void 0:e.link)||window.location.href,imgUrl:(null==e?void 0:e.imgUrl)||""};t.updateAppMessageShareData(n),t.updateTimelineShareData(n)})}async function c_(){if(!s_())return Promise.reject(new Error("not wechat"));const e=await a_();return e?new Promise((t,n)=>{var o;let i=!1;const r=setTimeout(()=>{i||(i=!0,n(new Error("wx ready timeout")))},15e3),s=e=>{i||(i=!0,clearTimeout(r),n(e))};null==(o=e.error)||o.call(e,e=>s(e||new Error("wx.config error"))),e.ready(()=>{e.getLocation({type:"gcj02",success:e=>{i||(i=!0,clearTimeout(r),t({lat:e.latitude,lng:e.longitude}))},fail:e=>s(e||new Error("getLocation fail"))})})}):Promise.reject(new Error("no wx"))}const u_="szkp_force_loc_prompt",d_="szkp_wechat_oauth_denied";let f_=null;function p_(){try{"undefined"!=typeof window&&window.sessionStorage&&window.sessionStorage.removeItem(t_.locConsent)}catch{}try{hv(t_.locConsent)}catch{}}function h_(){if("undefined"==typeof window)return!1;try{if("1"===window.sessionStorage.getItem(u_))return window.sessionStorage.removeItem(u_),!0}catch{}return!1}function g_(){return f_||(f_=async function(){var e,t;if(!s_())return!0;const n=new URL(window.location.href),o=n.searchParams.get("code"),i=n.searchParams.get("state");if(n.searchParams.get("err")){try{window.sessionStorage.setItem(d_,"1")}catch{}return n.searchParams.delete("code"),n.searchParams.delete("state"),n.searchParams.delete("err"),window.history.replaceState({},"",n.pathname+n.search+n.hash),!0}if(o){const r=pv(t_.oauthState);if(i&&r&&String(i)!==String(r))ay({title:"授权状态异常,请重试",icon:"none"});else try{const e=await i_.post("/h5/wechat/oauth",{code:o},{withAuth:!1});if(null==e?void 0:e.token){dv(t_.accessToken,e.token);try{window.sessionStorage.setItem(u_,"1")}catch{}}}catch(a){const n=(null==a?void 0:a.message)||(null==(t=null==(e=null==a?void 0:a.errors)?void 0:e.code)?void 0:t[0])||"微信登录失败";ay({title:n,icon:"none"})}return n.searchParams.delete("code"),n.searchParams.delete("state"),window.history.replaceState({},"",n.pathname+n.search+n.hash),!0}if(pv(t_.accessToken))return!0;try{if("1"===window.sessionStorage.getItem(d_))return!0}catch{}const r=encodeURIComponent(window.location.href.split("#")[0]),s=`${Date.now()}`;return dv(t_.oauthState,s),window.location.href=`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${e_}&redirect_uri=${r}&response_type=code&scope=snsapi_userinfo&state=${s}#wechat_redirect`,!1}().finally(()=>{f_=null})),f_}const m_=Ko({__name:"App",setup:e=>(Gb(()=>{g_(),l_().catch(()=>{})}),()=>{})});gm(m_,{init:pm,setup(e){const t=ld(),n=()=>{var n;n=e,Object.keys(kf).forEach(e=>{kf[e].forEach(t=>{pi(e,t,n)})});const{onLaunch:o,onShow:i,onPageNotFound:r}=e,s=function({path:e,query:t}){return c(fh,{path:e,query:t}),c(ph,fh),c({},fh)}({path:t.path.slice(1)||__uniRoutes[0].meta.route,query:Ke(t.query)});if(o&&I(o,s),i&&I(i,s),!t.matched.length){const e={notFound:!0,openType:"appLaunch",path:t.path,query:{},scene:1001};dp(),r&&I(r,e)}};return Ki(Sl).isReady().then(n),mi(()=>{window.addEventListener("resize",Ze(vm,50,{setTimeout:setTimeout,clearTimeout:clearTimeout})),window.addEventListener("message",ym),document.addEventListener("visibilitychange",bm),function(){let e=null;try{e=window.matchMedia("(prefers-color-scheme: dark)")}catch(t){}if(e){let t=e=>{Uy.emit(le,{theme:e.matches?"dark":"light"})};e.addEventListener?e.addEventListener("change",t):e.addListener(t)}}()}),t.query},before(e){e.mpType="app";const{setup:t}=e,n=()=>(xr(),Ar(Dy));e.setup=(e,o)=>{const i=t&&t(e,o);return m(i)?n:i},e.render=n}}),function(){const e=na(m_);return e.use(function(){const e=pt(!0),t=e.run(()=>Dn({}));let n=[],o=[];const i=En({install(e){i._a=e,e.provide(Wb,i),e.config.globalProperties.$pinia=i,o.forEach(e=>n.push(e)),o=[]},use(e){return this._a?n.push(e):o.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}()),{app:e}}().app.use(im).mount("#app");export{Sm as $,Tr as A,ki as B,Zs as C,Fe as D,Fh as E,mr as F,Nn as G,zr as H,cg as I,by as J,qv as K,ap as L,Wy as M,Jb as N,Qb as O,xy as P,Yb as Q,id as R,Lg as S,vv as T,cy as U,r_ as V,uy as W,Nv as X,Kb as Y,$g as Z,Dg as _,g_ as a,Eg as a0,Bv as a1,to as a2,Ur as a3,Cf as a4,nf as a5,cp as a6,uv as a7,je as a8,mf as a9,kh as aa,Ar as b,os as c,Ko as d,vo as e,ay as f,h_ as g,i_ as h,p_ as i,Kv as j,t_ as k,pv as l,s_ as m,c_ as n,mi as o,Dv as p,dv as q,Dn as r,l_ as s,xr as t,Ir as u,Ng as v,Oo as w,Bg as x,Rr as y,X as z}; diff --git a/public/h5/assets/localProfile.Us3dy1DW.js b/public/h5/assets/localProfile.DvYQ1Tv3.js similarity index 84% rename from public/h5/assets/localProfile.Us3dy1DW.js rename to public/h5/assets/localProfile.DvYQ1Tv3.js index 60a85da..d42c265 100644 --- a/public/h5/assets/localProfile.Us3dy1DW.js +++ b/public/h5/assets/localProfile.DvYQ1Tv3.js @@ -1 +1 @@ -import{h as t,l as n,k as r,q as e}from"./index-q6pkZS4X.js";function o(){return t.get("/h5/me/profile",{},{withAuth:!0})}function i(n){return t.put("/h5/me/profile",n,{withAuth:!0})}function l(){try{const t=n(r.localProfile);if(!t)return null;const e="string"==typeof t?JSON.parse(t):t;return e&&"object"==typeof e?e:null}catch{return null}}function u(t){e(r.localProfile,JSON.stringify(t))}export{o as g,l,u as s,i as u}; +import{h as t,l as n,k as r,q as e}from"./index-BznAv2H5.js";function o(){return t.get("/h5/me/profile",{},{withAuth:!0})}function i(n){return t.put("/h5/me/profile",n,{withAuth:!0})}function l(){try{const t=n(r.localProfile);if(!t)return null;const e="string"==typeof t?JSON.parse(t):t;return e&&"object"==typeof e?e:null}catch{return null}}function u(t){e(r.localProfile,JSON.stringify(t))}export{o as g,l,u as s,i as u}; diff --git a/public/h5/assets/pages-activity-detail.CwEPk-K-.js b/public/h5/assets/pages-activity-detail.CsdrFt7b.js similarity index 98% rename from public/h5/assets/pages-activity-detail.CwEPk-K-.js rename to public/h5/assets/pages-activity-detail.CsdrFt7b.js index b51cb12..90385d5 100644 --- a/public/h5/assets/pages-activity-detail.CwEPk-K-.js +++ b/public/h5/assets/pages-activity-detail.CsdrFt7b.js @@ -1 +1 @@ -import{d as l,r as e,c as a,w as s,Y as t,b as u,e as i,p as n,v as o,t as c,u as r,S as d,Z as v,A as f,F as m,B as p,_,E as g,$ as y,D as h,y as b,z as k,x,H as w,G as j,a0 as $,R as F,f as S,a1 as C,K as z,a2 as A,a3 as N,a4 as R,a5 as q}from"./index-q6pkZS4X.js";import{f as B}from"./content.4AgB0jqB.js";import{i as D,f as E}from"./activity.k1jR9V-B.js";import{h as G,f as H}from"./geo.BHVFNtB7.js";import{u as I,t as K,g as T,m as Y,a as Z}from"./tip.CRDnOkzn.js";import{s as J}from"./search.BJnl3YRK.js";import{_ as L}from"./_plugin-vue_export-helper.BCo6x5W8.js";const M=L(l({__name:"detail",setup(l){function L(l){if(!l||"string"!=typeof l)return"";const e="max-width:100%;height:auto;display:block;vertical-align:top;";return l.replace(/|>)/gi,(l,a,s)=>{const t=String(a).trim();if(/style\s*=/i.test(t))return/max-width\s*:/i.test(t)?l:l.replace(/style\s*=\s*(["'])([\s\S]*?)\1/i,(l,a,s)=>/max-width/i.test(s)?l:`style=${a}${s};${e}${a}`);return`"===s?" />":">"}`})}function M(l){if(!l||!String(l).trim())return!1;return String(l).replace(/<[^>]+>/g," ").replace(/ /gi," ").replace(/\s+/g," ").trim().length>0}const O=e(null),P=e(!0),Q=e(!0),U=e(!1),V=e(!1),W=e("--"),X=e(null),ll=a(()=>{const l=O.value;return l?Array.isArray(l.carousel)&&l.carousel.length?l.carousel:l.image?[{type:"image",url:l.image}]:[]:[]}),el=a(()=>{var l,e;return 0===((null==(l=O.value)?void 0:l.registered_count)??0)&&!0===(null==(e=O.value)?void 0:e.is_bookable)}),al=a(()=>{var l;const e=(null==(l=O.value)?void 0:l.registered_count)??0;return el.value?"可预约":e>0?`${e}人已预约`:"敬请期待"}),sl=a(()=>{var l;return D(null==(l=O.value)?void 0:l.end_at)}),tl=a(()=>{var l;const e=null==(l=O.value)?void 0:l.reservation_notice;if(null==e||""===e)return"";const a=String(e);let s="";if(/<[a-z][\s\S]*>/i.test(a))s=L(a);else{const l=function(l){return l.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}(a);s=`
${l}
`}return M(s)?s:""}),ul=a(()=>{var l;const e=null==(l=O.value)?void 0:l.detail_html;if(!e)return"";const a=L(String(e));return M(a)?a:""});function il(){var l,e,a,s,t,u;return{lat:Number((null==(l=O.value)?void 0:l.lat)??(null==(a=null==(e=O.value)?void 0:e.venue)?void 0:a.lat)??0),lng:Number((null==(s=O.value)?void 0:s.lng)??(null==(u=null==(t=O.value)?void 0:t.venue)?void 0:u.lng)??0)}}function nl(){const{lat:l,lng:e}=il();if(!l||!e||!X.value)return void(W.value="--");const a=G(X.value.lat,X.value.lng,l,e);W.value=H(a)}function ol(){var l,e,a,s;const{lat:t,lng:u}=il();t&&u?C({latitude:t,longitude:u,name:(null==(l=O.value)?void 0:l.title)||"活动地点",address:(null==(e=O.value)?void 0:e.address)||(null==(s=null==(a=O.value)?void 0:a.venue)?void 0:s.address)||""}):S({title:"暂无导航坐标",icon:"none"})}function cl(){var l;(null==(l=O.value)?void 0:l.id)&&z({url:`/pages/activity/reserve?id=${O.value.id}`})}return s(O,()=>{nl()}),s([ul,tl],()=>{P.value=!0,Q.value=!0,A(()=>{setTimeout(()=>{var l;const e=null==(l=N())?void 0:l.proxy,a=R();e&&a.in(e);const s=q(180);a.select(".judge-detail").boundingClientRect(),a.select(".judge-notice").boundingClientRect(),a.exec(l=>{const[e,a]=l||[];U.value=!!(e&&e.height&&e.height>s+1),V.value=!!(a&&a.height&&a.height>s+1)})},120)})}),t(async l=>{const e=Number((null==l?void 0:l.id)||0);e&&(O.value=await B(e),n({type:"gcj02",success:l=>{X.value={lat:l.latitude,lng:l.longitude},nl()},fail:()=>{W.value="--"}}))}),(l,e)=>{const a=g,s=y,t=_,n=v,S=o,C=x,z=$,A=d,N=F;return c(),u(S,{class:"page"},{default:i(()=>[r(A,{"scroll-y":"",class:"scroll"},{default:i(()=>{var l;return[r(S,{class:"hero"},{default:i(()=>[ll.value.length?(c(),u(n,{key:0,class:"hero-swiper",circular:"","indicator-dots":ll.value.length>1,"indicator-active-color":"#05c9ac","indicator-color":"rgba(255,255,255,0.45)"},{default:i(()=>[(c(!0),f(m,null,p(ll.value,(l,e)=>(c(),u(t,{key:"s-"+e,class:"swiper-item"},{default:i(()=>["video"!==l.type?(c(),u(a,{key:0,class:"slide-media",src:l.url,mode:"aspectFill"},null,8,["src"])):(c(),u(s,{key:1,class:"slide-media slide-video",src:l.url,controls:"","object-fit":"cover","show-center-play-btn":!0},null,8,["src"]))]),_:2},1024))),128))]),_:1},8,["indicator-dots"])):(c(),u(S,{key:1,class:"hero-placeholder"})),r(S,{class:h(["live-badge",{"is-bookable":el.value}])},{default:i(()=>[b(k(al.value),1)]),_:1},8,["class"])]),_:1}),r(S,{class:"main-card"},{default:i(()=>{var l,s,t,n,o,d,v,_,g;return[r(C,{class:"act-title"},{default:i(()=>{var l;return[b(k((null==(l=O.value)?void 0:l.title)||"-"),1)]}),_:1}),(null==(s=null==(l=O.value)?void 0:l.tags)?void 0:s.length)?(c(),u(S,{key:0,class:"chip-row"},{default:i(()=>[(c(!0),f(m,null,p(O.value.tags,l=>(c(),u(C,{key:l,class:"chip chip-tag"},{default:i(()=>[b(k(l),1)]),_:2},1024))),128))]),_:1})):w("",!0),(null==(n=null==(t=O.value)?void 0:t.venue)?void 0:n.name)?(c(),u(S,{key:1,class:"info-row"},{default:i(()=>[r(a,{class:"info-ico",src:j(I),mode:"aspectFit"},null,8,["src"]),r(S,{class:"info-text-col info-text-col--venue"},{default:i(()=>[r(C,{class:"info-text"},{default:i(()=>[b("举办场馆:")]),_:1}),r(C,{class:"venue-name-brand"},{default:i(()=>[b(k(O.value.venue.name),1)]),_:1})]),_:1})]),_:1})):w("",!0),r(S,{class:"info-row"},{default:i(()=>[r(a,{class:"info-ico",src:j(K),mode:"aspectFit"},null,8,["src"]),r(S,{class:"info-text-col"},{default:i(()=>[r(C,{class:"info-text"},{default:i(()=>{var l,e;return[b("活动时间:"+k(j(E)(null==(l=O.value)?void 0:l.start_at,null==(e=O.value)?void 0:e.end_at)),1)]}),_:1})]),_:1})]),_:1}),(null==(d=null==(o=O.value)?void 0:o.venue)?void 0:d.open_time)?(c(),u(S,{key:2,class:"info-row"},{default:i(()=>[r(a,{class:"info-ico",src:j(K),mode:"aspectFit"},null,8,["src"]),r(S,{class:"info-text-col"},{default:i(()=>[r(C,{class:"info-text"},{default:i(()=>[b("开放时间:"+k(O.value.venue.open_time),1)]),_:1})]),_:1})]),_:1})):w("",!0),r(S,{class:"info-row"},{default:i(()=>[r(a,{class:"info-ico",src:j(T),mode:"aspectFit"},null,8,["src"]),r(S,{class:"info-text-col"},{default:i(()=>[r(C,{class:"info-text"},{default:i(()=>[b("距离:"+k(W.value),1)]),_:1})]),_:1})]),_:1}),(null==(v=O.value)?void 0:v.address)||(null==(g=null==(_=O.value)?void 0:_.venue)?void 0:g.address)?(c(),u(S,{key:3,class:"info-row"},{default:i(()=>[r(a,{class:"info-ico",src:j(Y),mode:"aspectFit"},null,8,["src"]),r(S,{class:"info-text-col"},{default:i(()=>[r(C,{class:"info-text"},{default:i(()=>{var l,e,a;return[b("具体地址:"+k((null==(l=O.value)?void 0:l.address)||(null==(a=null==(e=O.value)?void 0:e.venue)?void 0:a.address)),1)]}),_:1})]),_:1})]),_:1})):w("",!0),tl.value?(c(),u(S,{key:4,class:"notice-block"},{default:i(()=>[r(S,{class:"sec-title-row notice-head-row"},{default:i(()=>[r(S,{class:"notice-head-left"},{default:i(()=>[r(a,{class:"info-ico",src:j(Z),mode:"aspectFit"},null,8,["src"]),r(C,{class:"notice-label"},{default:i(()=>[b("预约须知")]),_:1})]),_:1}),V.value?(c(),u(C,{key:0,class:"expand-link",onClick:e[0]||(e[0]=l=>Q.value=!Q.value)},{default:i(()=>[b(k(Q.value?"收起":"展开"),1)]),_:1})):w("",!0)]),_:1}),r(S,{class:h(["notice-block-body judge-notice",{"is-collapsed":V.value&&!Q.value}])},{default:i(()=>[r(z,{class:"notice-inline-rich",nodes:tl.value},null,8,["nodes"])]),_:1},8,["class"])]),_:1})):w("",!0)]}),_:1}),(null==(l=O.value)?void 0:l.summary)?(c(),u(S,{key:0,class:"summary-card"},{default:i(()=>[r(S,{class:"sec-title-row"},{default:i(()=>[r(S,{class:"summary-title-left"},{default:i(()=>[r(a,{class:"info-ico",src:j(J),mode:"aspectFit"},null,8,["src"]),r(C,{class:"sec-title"},{default:i(()=>[b("活动简介")]),_:1})]),_:1})]),_:1}),r(C,{class:"summary-text"},{default:i(()=>[b(k(O.value.summary),1)]),_:1})]),_:1})):w("",!0),ul.value?(c(),u(S,{key:1,class:"intro-card"},{default:i(()=>[r(S,{class:"sec-title-row"},{default:i(()=>[r(C,{class:"sec-title"},{default:i(()=>[b("活动详情")]),_:1}),U.value?(c(),u(C,{key:0,class:"expand-link",onClick:e[1]||(e[1]=l=>P.value=!P.value)},{default:i(()=>[b(k(P.value?"收起":"展开"),1)]),_:1})):w("",!0)]),_:1}),r(S,{class:h(["intro-rich-wrap judge-detail",{"is-collapsed":U.value&&!P.value}])},{default:i(()=>[r(z,{class:"intro-rich",nodes:ul.value},null,8,["nodes"])]),_:1},8,["class"])]),_:1})):w("",!0),r(S,{class:"safe-bottom"})]}),_:1}),r(S,{class:"action-bar"},{default:i(()=>[r(N,{class:h(["btn ghost",{"btn-full":sl.value}]),onClick:ol},{default:i(()=>[b("一键导航")]),_:1},8,["class"]),sl.value?w("",!0):(c(),u(N,{key:0,class:"btn primary",onClick:cl},{default:i(()=>[b("立即预约")]),_:1}))]),_:1})]),_:1})}}}),[["__scopeId","data-v-8b001f6b"]]);export{M as default}; +import{d as l,r as e,c as a,w as s,Y as t,b as u,e as i,p as n,v as o,t as c,u as r,S as d,Z as v,A as f,F as m,B as p,_,E as g,$ as y,D as h,y as b,z as k,x,H as w,G as j,a0 as $,R as F,f as S,a1 as C,K as z,a2 as A,a3 as N,a4 as R,a5 as q}from"./index-BznAv2H5.js";import{f as B}from"./content.IclVJQGc.js";import{i as D,f as E}from"./activity.k1jR9V-B.js";import{h as G,f as H}from"./geo.BHVFNtB7.js";import{u as I,t as K,g as T,m as Y,a as Z}from"./tip.CRDnOkzn.js";import{s as J}from"./search.BJnl3YRK.js";import{_ as L}from"./_plugin-vue_export-helper.BCo6x5W8.js";const M=L(l({__name:"detail",setup(l){function L(l){if(!l||"string"!=typeof l)return"";const e="max-width:100%;height:auto;display:block;vertical-align:top;";return l.replace(/|>)/gi,(l,a,s)=>{const t=String(a).trim();if(/style\s*=/i.test(t))return/max-width\s*:/i.test(t)?l:l.replace(/style\s*=\s*(["'])([\s\S]*?)\1/i,(l,a,s)=>/max-width/i.test(s)?l:`style=${a}${s};${e}${a}`);return`"===s?" />":">"}`})}function M(l){if(!l||!String(l).trim())return!1;return String(l).replace(/<[^>]+>/g," ").replace(/ /gi," ").replace(/\s+/g," ").trim().length>0}const O=e(null),P=e(!0),Q=e(!0),U=e(!1),V=e(!1),W=e("--"),X=e(null),ll=a(()=>{const l=O.value;return l?Array.isArray(l.carousel)&&l.carousel.length?l.carousel:l.image?[{type:"image",url:l.image}]:[]:[]}),el=a(()=>{var l,e;return 0===((null==(l=O.value)?void 0:l.registered_count)??0)&&!0===(null==(e=O.value)?void 0:e.is_bookable)}),al=a(()=>{var l;const e=(null==(l=O.value)?void 0:l.registered_count)??0;return el.value?"可预约":e>0?`${e}人已预约`:"敬请期待"}),sl=a(()=>{var l;return D(null==(l=O.value)?void 0:l.end_at)}),tl=a(()=>{var l;const e=null==(l=O.value)?void 0:l.reservation_notice;if(null==e||""===e)return"";const a=String(e);let s="";if(/<[a-z][\s\S]*>/i.test(a))s=L(a);else{const l=function(l){return l.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}(a);s=`
${l}
`}return M(s)?s:""}),ul=a(()=>{var l;const e=null==(l=O.value)?void 0:l.detail_html;if(!e)return"";const a=L(String(e));return M(a)?a:""});function il(){var l,e,a,s,t,u;return{lat:Number((null==(l=O.value)?void 0:l.lat)??(null==(a=null==(e=O.value)?void 0:e.venue)?void 0:a.lat)??0),lng:Number((null==(s=O.value)?void 0:s.lng)??(null==(u=null==(t=O.value)?void 0:t.venue)?void 0:u.lng)??0)}}function nl(){const{lat:l,lng:e}=il();if(!l||!e||!X.value)return void(W.value="--");const a=G(X.value.lat,X.value.lng,l,e);W.value=H(a)}function ol(){var l,e,a,s;const{lat:t,lng:u}=il();t&&u?C({latitude:t,longitude:u,name:(null==(l=O.value)?void 0:l.title)||"活动地点",address:(null==(e=O.value)?void 0:e.address)||(null==(s=null==(a=O.value)?void 0:a.venue)?void 0:s.address)||""}):S({title:"暂无导航坐标",icon:"none"})}function cl(){var l;(null==(l=O.value)?void 0:l.id)&&z({url:`/pages/activity/reserve?id=${O.value.id}`})}return s(O,()=>{nl()}),s([ul,tl],()=>{P.value=!0,Q.value=!0,A(()=>{setTimeout(()=>{var l;const e=null==(l=N())?void 0:l.proxy,a=R();e&&a.in(e);const s=q(180);a.select(".judge-detail").boundingClientRect(),a.select(".judge-notice").boundingClientRect(),a.exec(l=>{const[e,a]=l||[];U.value=!!(e&&e.height&&e.height>s+1),V.value=!!(a&&a.height&&a.height>s+1)})},120)})}),t(async l=>{const e=Number((null==l?void 0:l.id)||0);e&&(O.value=await B(e),n({type:"gcj02",success:l=>{X.value={lat:l.latitude,lng:l.longitude},nl()},fail:()=>{W.value="--"}}))}),(l,e)=>{const a=g,s=y,t=_,n=v,S=o,C=x,z=$,A=d,N=F;return c(),u(S,{class:"page"},{default:i(()=>[r(A,{"scroll-y":"",class:"scroll"},{default:i(()=>{var l;return[r(S,{class:"hero"},{default:i(()=>[ll.value.length?(c(),u(n,{key:0,class:"hero-swiper",circular:"","indicator-dots":ll.value.length>1,"indicator-active-color":"#05c9ac","indicator-color":"rgba(255,255,255,0.45)"},{default:i(()=>[(c(!0),f(m,null,p(ll.value,(l,e)=>(c(),u(t,{key:"s-"+e,class:"swiper-item"},{default:i(()=>["video"!==l.type?(c(),u(a,{key:0,class:"slide-media",src:l.url,mode:"aspectFill"},null,8,["src"])):(c(),u(s,{key:1,class:"slide-media slide-video",src:l.url,controls:"","object-fit":"cover","show-center-play-btn":!0},null,8,["src"]))]),_:2},1024))),128))]),_:1},8,["indicator-dots"])):(c(),u(S,{key:1,class:"hero-placeholder"})),r(S,{class:h(["live-badge",{"is-bookable":el.value}])},{default:i(()=>[b(k(al.value),1)]),_:1},8,["class"])]),_:1}),r(S,{class:"main-card"},{default:i(()=>{var l,s,t,n,o,d,v,_,g;return[r(C,{class:"act-title"},{default:i(()=>{var l;return[b(k((null==(l=O.value)?void 0:l.title)||"-"),1)]}),_:1}),(null==(s=null==(l=O.value)?void 0:l.tags)?void 0:s.length)?(c(),u(S,{key:0,class:"chip-row"},{default:i(()=>[(c(!0),f(m,null,p(O.value.tags,l=>(c(),u(C,{key:l,class:"chip chip-tag"},{default:i(()=>[b(k(l),1)]),_:2},1024))),128))]),_:1})):w("",!0),(null==(n=null==(t=O.value)?void 0:t.venue)?void 0:n.name)?(c(),u(S,{key:1,class:"info-row"},{default:i(()=>[r(a,{class:"info-ico",src:j(I),mode:"aspectFit"},null,8,["src"]),r(S,{class:"info-text-col info-text-col--venue"},{default:i(()=>[r(C,{class:"info-text"},{default:i(()=>[b("举办场馆:")]),_:1}),r(C,{class:"venue-name-brand"},{default:i(()=>[b(k(O.value.venue.name),1)]),_:1})]),_:1})]),_:1})):w("",!0),r(S,{class:"info-row"},{default:i(()=>[r(a,{class:"info-ico",src:j(K),mode:"aspectFit"},null,8,["src"]),r(S,{class:"info-text-col"},{default:i(()=>[r(C,{class:"info-text"},{default:i(()=>{var l,e;return[b("活动时间:"+k(j(E)(null==(l=O.value)?void 0:l.start_at,null==(e=O.value)?void 0:e.end_at)),1)]}),_:1})]),_:1})]),_:1}),(null==(d=null==(o=O.value)?void 0:o.venue)?void 0:d.open_time)?(c(),u(S,{key:2,class:"info-row"},{default:i(()=>[r(a,{class:"info-ico",src:j(K),mode:"aspectFit"},null,8,["src"]),r(S,{class:"info-text-col"},{default:i(()=>[r(C,{class:"info-text"},{default:i(()=>[b("开放时间:"+k(O.value.venue.open_time),1)]),_:1})]),_:1})]),_:1})):w("",!0),r(S,{class:"info-row"},{default:i(()=>[r(a,{class:"info-ico",src:j(T),mode:"aspectFit"},null,8,["src"]),r(S,{class:"info-text-col"},{default:i(()=>[r(C,{class:"info-text"},{default:i(()=>[b("距离:"+k(W.value),1)]),_:1})]),_:1})]),_:1}),(null==(v=O.value)?void 0:v.address)||(null==(g=null==(_=O.value)?void 0:_.venue)?void 0:g.address)?(c(),u(S,{key:3,class:"info-row"},{default:i(()=>[r(a,{class:"info-ico",src:j(Y),mode:"aspectFit"},null,8,["src"]),r(S,{class:"info-text-col"},{default:i(()=>[r(C,{class:"info-text"},{default:i(()=>{var l,e,a;return[b("具体地址:"+k((null==(l=O.value)?void 0:l.address)||(null==(a=null==(e=O.value)?void 0:e.venue)?void 0:a.address)),1)]}),_:1})]),_:1})]),_:1})):w("",!0),tl.value?(c(),u(S,{key:4,class:"notice-block"},{default:i(()=>[r(S,{class:"sec-title-row notice-head-row"},{default:i(()=>[r(S,{class:"notice-head-left"},{default:i(()=>[r(a,{class:"info-ico",src:j(Z),mode:"aspectFit"},null,8,["src"]),r(C,{class:"notice-label"},{default:i(()=>[b("预约须知")]),_:1})]),_:1}),V.value?(c(),u(C,{key:0,class:"expand-link",onClick:e[0]||(e[0]=l=>Q.value=!Q.value)},{default:i(()=>[b(k(Q.value?"收起":"展开"),1)]),_:1})):w("",!0)]),_:1}),r(S,{class:h(["notice-block-body judge-notice",{"is-collapsed":V.value&&!Q.value}])},{default:i(()=>[r(z,{class:"notice-inline-rich",nodes:tl.value},null,8,["nodes"])]),_:1},8,["class"])]),_:1})):w("",!0)]}),_:1}),(null==(l=O.value)?void 0:l.summary)?(c(),u(S,{key:0,class:"summary-card"},{default:i(()=>[r(S,{class:"sec-title-row"},{default:i(()=>[r(S,{class:"summary-title-left"},{default:i(()=>[r(a,{class:"info-ico",src:j(J),mode:"aspectFit"},null,8,["src"]),r(C,{class:"sec-title"},{default:i(()=>[b("活动简介")]),_:1})]),_:1})]),_:1}),r(C,{class:"summary-text"},{default:i(()=>[b(k(O.value.summary),1)]),_:1})]),_:1})):w("",!0),ul.value?(c(),u(S,{key:1,class:"intro-card"},{default:i(()=>[r(S,{class:"sec-title-row"},{default:i(()=>[r(C,{class:"sec-title"},{default:i(()=>[b("活动详情")]),_:1}),U.value?(c(),u(C,{key:0,class:"expand-link",onClick:e[1]||(e[1]=l=>P.value=!P.value)},{default:i(()=>[b(k(P.value?"收起":"展开"),1)]),_:1})):w("",!0)]),_:1}),r(S,{class:h(["intro-rich-wrap judge-detail",{"is-collapsed":U.value&&!P.value}])},{default:i(()=>[r(z,{class:"intro-rich",nodes:ul.value},null,8,["nodes"])]),_:1},8,["class"])]),_:1})):w("",!0),r(S,{class:"safe-bottom"})]}),_:1}),r(S,{class:"action-bar"},{default:i(()=>[r(N,{class:h(["btn ghost",{"btn-full":sl.value}]),onClick:ol},{default:i(()=>[b("一键导航")]),_:1},8,["class"]),sl.value?w("",!0):(c(),u(N,{key:0,class:"btn primary",onClick:cl},{default:i(()=>[b("立即预约")]),_:1}))]),_:1})]),_:1})}}}),[["__scopeId","data-v-8b001f6b"]]);export{M as default}; diff --git a/public/h5/assets/pages-activity-index.Dfnqtgxv.js b/public/h5/assets/pages-activity-index.D-LB6AZ6.js similarity index 97% rename from public/h5/assets/pages-activity-index.Dfnqtgxv.js rename to public/h5/assets/pages-activity-index.D-LB6AZ6.js index 41155bc..8a937bc 100644 --- a/public/h5/assets/pages-activity-index.Dfnqtgxv.js +++ b/public/h5/assets/pages-activity-index.D-LB6AZ6.js @@ -1 +1 @@ -import{d as a,r as t,c as e,o as l,N as s,O as n,P as u,b as i,e as r,p as c,v as o,t as d,u as v,A as f,F as _,B as y,E as g,y as m,z as p,x as h,H as k,G as b,C as w,K as M}from"./index-q6pkZS4X.js";import{b as P}from"./content.4AgB0jqB.js";import{f as j,i as A}from"./activity.k1jR9V-B.js";import{_ as N}from"./_plugin-vue_export-helper.BCo6x5W8.js";const x=N(a({__name:"index",setup(a){const N=t([]),x=t(null),F=t(1),C=t(0),D=t(!1),T=t(!1),q=e(()=>C.value>0&&F.valuet?"活动即将开始":"活动进行中"}function B(a){const t=Number(a);return Number.isFinite(t)?t:0}function E(a){if(!x.value)return"距离 --";const t=B((null==a?void 0:a.lat)||(null==a?void 0:a.venue_lat)),e=B((null==a?void 0:a.lng)||(null==a?void 0:a.venue_lng));if(!t||!e)return"距离 --";const l=function(a,t,e,l){const s=a=>a*Math.PI/180,n=s(e-a),u=s(l-t),i=Math.sin(n/2)*Math.sin(n/2)+Math.cos(s(a))*Math.cos(s(e))*Math.sin(u/2)*Math.sin(u/2);return 12742*Math.atan2(Math.sqrt(i),Math.sqrt(1-i))}(x.value.lat,x.value.lng,t,e);return Number.isFinite(l)?`距离 ${l.toFixed(1)}km`:"距离 --"}return l(()=>{!async function(){F.value=1,await z(1,!1)}(),async function(){try{const a=await new Promise((a,t)=>{c({type:"gcj02",success:a,fail:t})});x.value={lat:a.latitude,lng:a.longitude}}catch{x.value=null}}()}),s(()=>{D.value||T.value||!q.value||z(F.value+1,!0)}),n(async()=>{try{await async function(){F.value=1,await z(1,!1)}()}finally{u()}}),(a,t)=>{const e=g,l=o,s=h;return d(),i(l,{class:"page"},{default:r(()=>[v(l,{class:"list-inner"},{default:r(()=>[(d(!0),f(_,null,y(N.value,a=>(d(),i(l,{key:a.id,class:"item",onClick:t=>I(a.id)},{default:r(()=>[v(l,{class:"poster-wrap"},{default:r(()=>[a.image?(d(),i(e,{key:0,class:"poster",src:a.image,mode:"aspectFill"},null,8,["src"])):(d(),i(l,{key:1,class:"poster placeholder"})),v(l,{class:"status"},{default:r(()=>[m(p($(a)),1)]),_:2},1024),v(l,{class:"joined"},{default:r(()=>[m("已报名 "+p(a.registered_count||0),1)]),_:2},1024)]),_:2},1024),v(l,{class:"body"},{default:r(()=>{var t;return[v(l,{class:"title"},{default:r(()=>[m(p(a.title),1)]),_:2},1024),(null==(t=a.tags)?void 0:t.length)?(d(),i(l,{key:0,class:"chip-row"},{default:r(()=>[(d(!0),f(_,null,y(a.tags,(t,e)=>(d(),i(s,{key:"t-"+a.id+"-"+e,class:"chip"},{default:r(()=>[m(p(t),1)]),_:2},1024))),128))]),_:2},1024)):k("",!0),v(l,{class:"meta"},{default:r(()=>[m(p(b(j)(a.start_at,a.end_at)),1)]),_:2},1024),v(l,{class:"meta venue-line"},{default:r(()=>[m(p(a.venue_name||"场馆待定"),1)]),_:2},1024),v(l,{class:"action-row"},{default:r(()=>{return[v(s,{class:"meta distance"},{default:r(()=>[m(p(E(a)),1)]),_:2},1024),(t=a,A(null==t?void 0:t.end_at)?k("",!0):(d(),i(l,{key:0,class:"btn",onClick:w(t=>I(a.id),["stop"])},{default:r(()=>[m("立即报名")]),_:2},1032,["onClick"])))];var t}),_:2},1024)]}),_:2},1024)]),_:2},1032,["onClick"]))),128)),D.value&&!N.value.length?(d(),i(l,{key:0,class:"hint"},{default:r(()=>[m("加载中…")]),_:1})):k("",!0),T.value?(d(),i(l,{key:1,class:"hint"},{default:r(()=>[m("加载更多…")]),_:1})):k("",!0),q.value||!N.value.length||D.value?k("",!0):(d(),i(l,{key:2,class:"hint muted"},{default:r(()=>[m("没有更多了")]),_:1})),D.value||N.value.length?k("",!0):(d(),i(l,{key:3,class:"hint muted"},{default:r(()=>[m("暂无活动")]),_:1}))]),_:1})]),_:1})}}}),[["__scopeId","data-v-437981e0"]]);export{x as default}; +import{d as a,r as t,c as e,o as l,N as s,O as n,P as u,b as i,e as r,p as c,v as o,t as d,u as v,A as f,F as _,B as y,E as g,y as m,z as p,x as h,H as k,G as b,C as w,K as M}from"./index-BznAv2H5.js";import{b as P}from"./content.IclVJQGc.js";import{f as j,i as A}from"./activity.k1jR9V-B.js";import{_ as N}from"./_plugin-vue_export-helper.BCo6x5W8.js";const x=N(a({__name:"index",setup(a){const N=t([]),x=t(null),F=t(1),C=t(0),D=t(!1),T=t(!1),q=e(()=>C.value>0&&F.valuet?"活动即将开始":"活动进行中"}function B(a){const t=Number(a);return Number.isFinite(t)?t:0}function E(a){if(!x.value)return"距离 --";const t=B((null==a?void 0:a.lat)||(null==a?void 0:a.venue_lat)),e=B((null==a?void 0:a.lng)||(null==a?void 0:a.venue_lng));if(!t||!e)return"距离 --";const l=function(a,t,e,l){const s=a=>a*Math.PI/180,n=s(e-a),u=s(l-t),i=Math.sin(n/2)*Math.sin(n/2)+Math.cos(s(a))*Math.cos(s(e))*Math.sin(u/2)*Math.sin(u/2);return 12742*Math.atan2(Math.sqrt(i),Math.sqrt(1-i))}(x.value.lat,x.value.lng,t,e);return Number.isFinite(l)?`距离 ${l.toFixed(1)}km`:"距离 --"}return l(()=>{!async function(){F.value=1,await z(1,!1)}(),async function(){try{const a=await new Promise((a,t)=>{c({type:"gcj02",success:a,fail:t})});x.value={lat:a.latitude,lng:a.longitude}}catch{x.value=null}}()}),s(()=>{D.value||T.value||!q.value||z(F.value+1,!0)}),n(async()=>{try{await async function(){F.value=1,await z(1,!1)}()}finally{u()}}),(a,t)=>{const e=g,l=o,s=h;return d(),i(l,{class:"page"},{default:r(()=>[v(l,{class:"list-inner"},{default:r(()=>[(d(!0),f(_,null,y(N.value,a=>(d(),i(l,{key:a.id,class:"item",onClick:t=>I(a.id)},{default:r(()=>[v(l,{class:"poster-wrap"},{default:r(()=>[a.image?(d(),i(e,{key:0,class:"poster",src:a.image,mode:"aspectFill"},null,8,["src"])):(d(),i(l,{key:1,class:"poster placeholder"})),v(l,{class:"status"},{default:r(()=>[m(p($(a)),1)]),_:2},1024),v(l,{class:"joined"},{default:r(()=>[m("已报名 "+p(a.registered_count||0),1)]),_:2},1024)]),_:2},1024),v(l,{class:"body"},{default:r(()=>{var t;return[v(l,{class:"title"},{default:r(()=>[m(p(a.title),1)]),_:2},1024),(null==(t=a.tags)?void 0:t.length)?(d(),i(l,{key:0,class:"chip-row"},{default:r(()=>[(d(!0),f(_,null,y(a.tags,(t,e)=>(d(),i(s,{key:"t-"+a.id+"-"+e,class:"chip"},{default:r(()=>[m(p(t),1)]),_:2},1024))),128))]),_:2},1024)):k("",!0),v(l,{class:"meta"},{default:r(()=>[m(p(b(j)(a.start_at,a.end_at)),1)]),_:2},1024),v(l,{class:"meta venue-line"},{default:r(()=>[m(p(a.venue_name||"场馆待定"),1)]),_:2},1024),v(l,{class:"action-row"},{default:r(()=>{return[v(s,{class:"meta distance"},{default:r(()=>[m(p(E(a)),1)]),_:2},1024),(t=a,A(null==t?void 0:t.end_at)?k("",!0):(d(),i(l,{key:0,class:"btn",onClick:w(t=>I(a.id),["stop"])},{default:r(()=>[m("立即报名")]),_:2},1032,["onClick"])))];var t}),_:2},1024)]}),_:2},1024)]),_:2},1032,["onClick"]))),128)),D.value&&!N.value.length?(d(),i(l,{key:0,class:"hint"},{default:r(()=>[m("加载中…")]),_:1})):k("",!0),T.value?(d(),i(l,{key:1,class:"hint"},{default:r(()=>[m("加载更多…")]),_:1})):k("",!0),q.value||!N.value.length||D.value?k("",!0):(d(),i(l,{key:2,class:"hint muted"},{default:r(()=>[m("没有更多了")]),_:1})),D.value||N.value.length?k("",!0):(d(),i(l,{key:3,class:"hint muted"},{default:r(()=>[m("暂无活动")]),_:1}))]),_:1})]),_:1})}}}),[["__scopeId","data-v-437981e0"]]);export{x as default}; diff --git a/public/h5/assets/pages-activity-reserve.CP8F64-R.js b/public/h5/assets/pages-activity-reserve.D_4_bv2G.js similarity index 98% rename from public/h5/assets/pages-activity-reserve.CP8F64-R.js rename to public/h5/assets/pages-activity-reserve.D_4_bv2G.js index dd97fde..a4b1f5a 100644 --- a/public/h5/assets/pages-activity-reserve.CP8F64-R.js +++ b/public/h5/assets/pages-activity-reserve.D_4_bv2G.js @@ -1 +1 @@ -import{d as e,r as l,c as a,Y as t,b as i,e as o,f as u,v as n,l as s,k as d,t as c,u as r,S as v,y as _,z as p,A as f,F as m,B as y,D as g,H as b,x as h,a0 as k,I as $,R as x,a6 as w}from"./index-q6pkZS4X.js";import{h as S,i as V}from"./content.4AgB0jqB.js";import{g as D,l as M}from"./localProfile.Us3dy1DW.js";import{_ as C}from"./_plugin-vue_export-helper.BCo6x5W8.js";function N(e){if(null==e||""===e)return"";const l=String(e);let a="";if(/<[a-z][\s\S]*>/i.test(l))a=function(e){if(!e||"string"!=typeof e)return"";const l="max-width:100%;height:auto;display:block;vertical-align:top;";return e.replace(/|>)/gi,(e,a,t)=>{const i=String(a).trim();return/style\s*=/i.test(i)?/max-width\s*:/i.test(i)?e:e.replace(/style\s*=\s*(["'])([\s\S]*?)\1/i,(e,a,t)=>/max-width/i.test(t)?e:`style=${a}${t};${l}${a}`):`"===t?" />":">"}`})}(l);else{const e=function(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}(l);a=`
${e}
`}return(t=a)&&String(t).trim()&&String(t).replace(/<[^>]+>/g," ").replace(/ /gi," ").replace(/\s+/g," ").trim().length>0?a:"";var t}const j=C(e({__name:"reserve",setup(e){const C=l(0),j=l(!1),F=l(!1),T=l(null),U=l(!1),Y=l({activity_day_id:0,visitor_name:"",visitor_phone:"",id_card:"",booking_type:"individual",people_count:1});a(()=>{var e;return((null==(e=T.value)?void 0:e.days)||[]).find(e=>e.id===Y.value.activity_day_id)});const z=a(()=>!!Y.value.activity_day_id&&!!Y.value.visitor_name&&/^1\d{10}$/.test(Y.value.visitor_phone)),B=a(()=>{var e,l;return N(null==(l=null==(e=T.value)?void 0:e.activity)?void 0:l.reservation_notice)}),I=a(()=>{var e,l;return String((null==(l=null==(e=T.value)?void 0:e.activity)?void 0:l.booking_audience)||"both")}),q=a(()=>{var e,l;return Math.max(1,Number((null==(l=null==(e=T.value)?void 0:e.activity)?void 0:l.min_people_per_order)||1))}),A=a(()=>{var e,l;return Math.max(1,Number((null==(l=null==(e=T.value)?void 0:e.activity)?void 0:l.max_people_per_order)||1))}),H=a(()=>{var e,l;return(null==(l=null==(e=T.value)?void 0:e.activity)?void 0:l.booking_modes)||["individual","group"]}),O=a(()=>{var e;return[...(null==(e=T.value)?void 0:e.days)||[]].sort((e,l)=>String(e.activity_date).localeCompare(String(l.activity_date)))});function P(e){return String(e).padStart(2,"0")}function R(e){const l=new Date,a=`${l.getFullYear()}-${P(l.getMonth()+1)}-${P(l.getDate())}`,t=String(e).slice(0,10);if(t===a)return"今天";const i=new Date(l);i.setDate(i.getDate()+1);if(t===`${i.getFullYear()}-${P(i.getMonth()+1)}-${P(i.getDate())}`)return"明天";const o=new Date(l);o.setDate(o.getDate()+2);return t===`${o.getFullYear()}-${P(o.getMonth()+1)}-${P(o.getDate())}`?"后天":""}function X(e){const l=String(e).slice(0,10).split("-");return 3!==l.length?"":`${Number(l[1])}月${Number(l[2])}日`}function E(e){const l=Number((null==e?void 0:e.available_count)??0);return l<=0?"0张":`${l}张`}function G(){if("individual"===I.value)return Y.value.booking_type="individual",void(Y.value.people_count=1);if("group"===I.value?Y.value.booking_type="group":H.value.includes(Y.value.booking_type)||(Y.value.booking_type="individual"),"individual"===Y.value.booking_type)return void(Y.value.people_count=1);const e=Math.floor(Number(Y.value.people_count||0));Y.value.people_count=Math.min(A.value,Math.max(q.value,e||q.value))}async function J(){var e,l;if(C.value){j.value=!0;try{T.value=await S(C.value),G();const a=((null==(e=T.value)?void 0:e.days)||[]).find(e=>e.is_bookable);if(a)Y.value.activity_day_id=a.id;else{const e=((null==(l=T.value)?void 0:l.days)||[])[0];e&&(Y.value.activity_day_id=e.id)}await async function(){if(s(d.accessToken))try{const e=await D();return(null==e?void 0:e.real_name)&&(Y.value.visitor_name=e.real_name),(null==e?void 0:e.phone)&&(Y.value.visitor_phone=e.phone),void((null==e?void 0:e.id_card)&&(Y.value.id_card=e.id_card))}catch{}const e=M();(null==e?void 0:e.real_name)&&(Y.value.visitor_name=e.real_name),(null==e?void 0:e.phone)&&(Y.value.visitor_phone=e.phone),(null==e?void 0:e.id_card)&&(Y.value.id_card=e.id_card)}()}catch(a){u({title:(null==a?void 0:a.message)||"加载预约信息失败",icon:"none"})}finally{j.value=!1}}}function K(){Y.value.people_count=Math.max(q.value,(Number(Y.value.people_count)||q.value)-1),G()}function L(){Y.value.people_count=Math.min(A.value,(Number(Y.value.people_count)||q.value)+1),G()}async function Q(){var e,l;if(z.value&&C.value)if(G(),"group"===Y.value.booking_type&&(Y.value.people_countA.value))u({title:`人数需在 ${q.value}-${A.value} 之间`,icon:"none"});else if(!Y.value.id_card||/^\d{17}[\dXx]$/.test(Y.value.id_card)){F.value=!0;try{await V(C.value,Y.value),u({title:"预约成功",icon:"success"}),setTimeout(()=>{w({url:`/pages/activity/detail?id=${C.value}`})},500)}catch(a){const t=(null==a?void 0:a.message)||(null==(l=null==(e=null==a?void 0:a.errors)?void 0:e[Object.keys((null==a?void 0:a.errors)||{})[0]])?void 0:l[0])||"预约失败";u({title:t,icon:"none"})}finally{F.value=!1}}else u({title:"身份证号格式不正确",icon:"none"});else u({title:"请完整填写预约信息",icon:"none"})}return t(e=>{C.value=Number((null==e?void 0:e.id)||0),J()}),(e,l)=>{const a=n,t=h,s=v,d=k,w=$,S=x;return c(),i(a,{class:"page-wrap"},{default:o(()=>[r(s,{"scroll-y":"",class:"page"},{default:o(()=>[j.value?(c(),i(a,{key:0,class:"loading-tip"},{default:o(()=>[_("加载中…")]),_:1})):(c(),i(a,{key:1,class:"content"},{default:o(()=>[r(a,{class:"card"},{default:o(()=>[r(a,{class:"act-title"},{default:o(()=>{var e,l;return[_(p((null==(l=null==(e=T.value)?void 0:e.activity)?void 0:l.title)||"活动预约"),1)]}),_:1}),r(a,{class:"field-label"},{default:o(()=>[_("日期")]),_:1}),r(s,{"scroll-x":"",class:"day-scroll","show-scrollbar":!1,"enable-flex":!0},{default:o(()=>[r(a,{class:"day-scroll-inner"},{default:o(()=>[(c(!0),f(m,null,y(O.value,e=>(c(),i(a,{key:e.id,class:g(["day-chip",{active:Y.value.activity_day_id===e.id&&e.is_bookable,disabled:!e.is_bookable}]),onClick:l=>function(e){if(null==e?void 0:e.is_bookable)return void(Y.value.activity_day_id=e.id);if((null==e?void 0:e.available_count)<=0||"sold_out"===(null==e?void 0:e.unavailable_reason))return void u({title:"该日期已无余票",icon:"none"});const l=String((null==e?void 0:e.opens_at)||"").slice(0,16).replace("T"," "),a=String((null==e?void 0:e.closes_at)||"").slice(0,16).replace("T"," ");u(l&&a?{title:`可预约时段:${l} ~ ${a}`,icon:"none",duration:2800}:{title:"该日期当前不可预约",icon:"none"})}(e)},{default:o(()=>[Y.value.activity_day_id===e.id&&e.is_bookable?(c(),i(a,{key:0,class:"chip-check"},{default:o(()=>[_("✓")]),_:1})):b("",!0),r(t,{class:"chip-line1"},{default:o(()=>[_(p(R(e.activity_date)||" "),1)]),_:2},1024),r(t,{class:"chip-line2"},{default:o(()=>[_(p(X(e.activity_date)),1)]),_:2},1024),r(t,{class:"chip-line3"},{default:o(()=>[_(p(E(e)),1)]),_:2},1024)]),_:2},1032,["class","onClick"]))),128))]),_:1})]),_:1}),r(a,{class:"card-foot"},{default:o(()=>[r(t,{class:"foot-link",onClick:l[0]||(l[0]=e=>U.value=!U.value)},{default:o(()=>[_(p(U.value?"收起预约须知":"展开预约须知")+" › ",1)]),_:1})]),_:1}),U.value&&B.value?(c(),i(a,{key:0,class:"notice-box"},{default:o(()=>[r(d,{class:"notice-inline-rich",nodes:B.value},null,8,["nodes"])]),_:1})):b("",!0)]),_:1}),r(a,{class:"card"},{default:o(()=>[r(a,{class:"card-hd"},{default:o(()=>[_("观众数")]),_:1}),"both"===I.value?(c(),i(a,{key:0,class:"mode-row"},{default:o(()=>[r(t,{class:"mode-label"},{default:o(()=>[_("预约类型")]),_:1}),r(a,{class:"mode-btns"},{default:o(()=>[r(a,{class:g(["mode-pill",{on:"individual"===Y.value.booking_type}]),onClick:l[1]||(l[1]=e=>{Y.value.booking_type="individual",G()})},{default:o(()=>[_("个人")]),_:1},8,["class"]),r(a,{class:g(["mode-pill",{on:"group"===Y.value.booking_type}]),onClick:l[2]||(l[2]=e=>{Y.value.booking_type="group",G()})},{default:o(()=>[_("团体")]),_:1},8,["class"])]),_:1})]),_:1})):b("",!0),r(a,{class:"count-row"},{default:o(()=>[r(t,{class:"count-name"},{default:o(()=>[_("参观人数")]),_:1}),"group"===I.value||"both"===I.value&&"group"===Y.value.booking_type?(c(),i(a,{key:0,class:"stepper"},{default:o(()=>[r(a,{class:"step-btn",onClick:K},{default:o(()=>[_("−")]),_:1}),r(w,{modelValue:Y.value.people_count,"onUpdate:modelValue":l[3]||(l[3]=e=>Y.value.people_count=e),modelModifiers:{number:!0},class:"step-val",type:"number",onBlur:l[4]||(l[4]=e=>G())},null,8,["modelValue"]),r(a,{class:"step-btn",onClick:L},{default:o(()=>[_("+")]),_:1})]),_:1})):(c(),i(t,{key:1,class:"count-fixed"},{default:o(()=>[_("1")]),_:1}))]),_:1}),r(a,{class:"limit-tip"},{default:o(()=>[_("每次预约限制"+p(A.value)+"人",1)]),_:1})]),_:1}),r(a,{class:"card"},{default:o(()=>[r(a,{class:"card-hd"},{default:o(()=>[_("联系人信息")]),_:1}),r(a,{class:"form-row"},{default:o(()=>[r(t,{class:"form-label"},{default:o(()=>[_("联系人")]),_:1}),r(w,{modelValue:Y.value.visitor_name,"onUpdate:modelValue":l[5]||(l[5]=e=>Y.value.visitor_name=e),class:"form-input",placeholder:"请输入姓名","placeholder-class":"ph"},null,8,["modelValue"])]),_:1}),r(a,{class:"form-row"},{default:o(()=>[r(t,{class:"form-label"},{default:o(()=>[_("手机号")]),_:1}),r(w,{modelValue:Y.value.visitor_phone,"onUpdate:modelValue":l[6]||(l[6]=e=>Y.value.visitor_phone=e),class:"form-input",type:"number",maxlength:"11",placeholder:"输入手机号","placeholder-class":"ph"},null,8,["modelValue"])]),_:1}),r(a,{class:"form-row last"},{default:o(()=>[r(t,{class:"form-label"},{default:o(()=>[_("身份证")]),_:1}),r(w,{modelValue:Y.value.id_card,"onUpdate:modelValue":l[7]||(l[7]=e=>Y.value.id_card=e),class:"form-input",maxlength:"18",placeholder:"输入身份证号(选填)","placeholder-class":"ph"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})),r(a,{class:"safe-bottom"})]),_:1}),r(a,{class:"action-bar"},{default:o(()=>[r(S,{class:"btn primary",disabled:!z.value||F.value||j.value,onClick:Q},{default:o(()=>[_(p(F.value?"提交中...":"确认预约"),1)]),_:1},8,["disabled"])]),_:1})]),_:1})}}}),[["__scopeId","data-v-6c0f6d05"]]);export{j as default}; +import{d as e,r as l,c as a,Y as t,b as i,e as o,f as u,v as n,l as s,k as d,t as c,u as r,S as v,y as _,z as p,A as f,F as m,B as y,D as g,H as b,x as h,a0 as k,I as $,R as x,a6 as w}from"./index-BznAv2H5.js";import{h as S,i as V}from"./content.IclVJQGc.js";import{g as D,l as M}from"./localProfile.DvYQ1Tv3.js";import{_ as C}from"./_plugin-vue_export-helper.BCo6x5W8.js";function N(e){if(null==e||""===e)return"";const l=String(e);let a="";if(/<[a-z][\s\S]*>/i.test(l))a=function(e){if(!e||"string"!=typeof e)return"";const l="max-width:100%;height:auto;display:block;vertical-align:top;";return e.replace(/|>)/gi,(e,a,t)=>{const i=String(a).trim();return/style\s*=/i.test(i)?/max-width\s*:/i.test(i)?e:e.replace(/style\s*=\s*(["'])([\s\S]*?)\1/i,(e,a,t)=>/max-width/i.test(t)?e:`style=${a}${t};${l}${a}`):`"===t?" />":">"}`})}(l);else{const e=function(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}(l);a=`
${e}
`}return(t=a)&&String(t).trim()&&String(t).replace(/<[^>]+>/g," ").replace(/ /gi," ").replace(/\s+/g," ").trim().length>0?a:"";var t}const j=C(e({__name:"reserve",setup(e){const C=l(0),j=l(!1),F=l(!1),T=l(null),U=l(!1),Y=l({activity_day_id:0,visitor_name:"",visitor_phone:"",id_card:"",booking_type:"individual",people_count:1});a(()=>{var e;return((null==(e=T.value)?void 0:e.days)||[]).find(e=>e.id===Y.value.activity_day_id)});const z=a(()=>!!Y.value.activity_day_id&&!!Y.value.visitor_name&&/^1\d{10}$/.test(Y.value.visitor_phone)),B=a(()=>{var e,l;return N(null==(l=null==(e=T.value)?void 0:e.activity)?void 0:l.reservation_notice)}),I=a(()=>{var e,l;return String((null==(l=null==(e=T.value)?void 0:e.activity)?void 0:l.booking_audience)||"both")}),q=a(()=>{var e,l;return Math.max(1,Number((null==(l=null==(e=T.value)?void 0:e.activity)?void 0:l.min_people_per_order)||1))}),A=a(()=>{var e,l;return Math.max(1,Number((null==(l=null==(e=T.value)?void 0:e.activity)?void 0:l.max_people_per_order)||1))}),H=a(()=>{var e,l;return(null==(l=null==(e=T.value)?void 0:e.activity)?void 0:l.booking_modes)||["individual","group"]}),O=a(()=>{var e;return[...(null==(e=T.value)?void 0:e.days)||[]].sort((e,l)=>String(e.activity_date).localeCompare(String(l.activity_date)))});function P(e){return String(e).padStart(2,"0")}function R(e){const l=new Date,a=`${l.getFullYear()}-${P(l.getMonth()+1)}-${P(l.getDate())}`,t=String(e).slice(0,10);if(t===a)return"今天";const i=new Date(l);i.setDate(i.getDate()+1);if(t===`${i.getFullYear()}-${P(i.getMonth()+1)}-${P(i.getDate())}`)return"明天";const o=new Date(l);o.setDate(o.getDate()+2);return t===`${o.getFullYear()}-${P(o.getMonth()+1)}-${P(o.getDate())}`?"后天":""}function X(e){const l=String(e).slice(0,10).split("-");return 3!==l.length?"":`${Number(l[1])}月${Number(l[2])}日`}function E(e){const l=Number((null==e?void 0:e.available_count)??0);return l<=0?"0张":`${l}张`}function G(){if("individual"===I.value)return Y.value.booking_type="individual",void(Y.value.people_count=1);if("group"===I.value?Y.value.booking_type="group":H.value.includes(Y.value.booking_type)||(Y.value.booking_type="individual"),"individual"===Y.value.booking_type)return void(Y.value.people_count=1);const e=Math.floor(Number(Y.value.people_count||0));Y.value.people_count=Math.min(A.value,Math.max(q.value,e||q.value))}async function J(){var e,l;if(C.value){j.value=!0;try{T.value=await S(C.value),G();const a=((null==(e=T.value)?void 0:e.days)||[]).find(e=>e.is_bookable);if(a)Y.value.activity_day_id=a.id;else{const e=((null==(l=T.value)?void 0:l.days)||[])[0];e&&(Y.value.activity_day_id=e.id)}await async function(){if(s(d.accessToken))try{const e=await D();return(null==e?void 0:e.real_name)&&(Y.value.visitor_name=e.real_name),(null==e?void 0:e.phone)&&(Y.value.visitor_phone=e.phone),void((null==e?void 0:e.id_card)&&(Y.value.id_card=e.id_card))}catch{}const e=M();(null==e?void 0:e.real_name)&&(Y.value.visitor_name=e.real_name),(null==e?void 0:e.phone)&&(Y.value.visitor_phone=e.phone),(null==e?void 0:e.id_card)&&(Y.value.id_card=e.id_card)}()}catch(a){u({title:(null==a?void 0:a.message)||"加载预约信息失败",icon:"none"})}finally{j.value=!1}}}function K(){Y.value.people_count=Math.max(q.value,(Number(Y.value.people_count)||q.value)-1),G()}function L(){Y.value.people_count=Math.min(A.value,(Number(Y.value.people_count)||q.value)+1),G()}async function Q(){var e,l;if(z.value&&C.value)if(G(),"group"===Y.value.booking_type&&(Y.value.people_countA.value))u({title:`人数需在 ${q.value}-${A.value} 之间`,icon:"none"});else if(!Y.value.id_card||/^\d{17}[\dXx]$/.test(Y.value.id_card)){F.value=!0;try{await V(C.value,Y.value),u({title:"预约成功",icon:"success"}),setTimeout(()=>{w({url:`/pages/activity/detail?id=${C.value}`})},500)}catch(a){const t=(null==a?void 0:a.message)||(null==(l=null==(e=null==a?void 0:a.errors)?void 0:e[Object.keys((null==a?void 0:a.errors)||{})[0]])?void 0:l[0])||"预约失败";u({title:t,icon:"none"})}finally{F.value=!1}}else u({title:"身份证号格式不正确",icon:"none"});else u({title:"请完整填写预约信息",icon:"none"})}return t(e=>{C.value=Number((null==e?void 0:e.id)||0),J()}),(e,l)=>{const a=n,t=h,s=v,d=k,w=$,S=x;return c(),i(a,{class:"page-wrap"},{default:o(()=>[r(s,{"scroll-y":"",class:"page"},{default:o(()=>[j.value?(c(),i(a,{key:0,class:"loading-tip"},{default:o(()=>[_("加载中…")]),_:1})):(c(),i(a,{key:1,class:"content"},{default:o(()=>[r(a,{class:"card"},{default:o(()=>[r(a,{class:"act-title"},{default:o(()=>{var e,l;return[_(p((null==(l=null==(e=T.value)?void 0:e.activity)?void 0:l.title)||"活动预约"),1)]}),_:1}),r(a,{class:"field-label"},{default:o(()=>[_("日期")]),_:1}),r(s,{"scroll-x":"",class:"day-scroll","show-scrollbar":!1,"enable-flex":!0},{default:o(()=>[r(a,{class:"day-scroll-inner"},{default:o(()=>[(c(!0),f(m,null,y(O.value,e=>(c(),i(a,{key:e.id,class:g(["day-chip",{active:Y.value.activity_day_id===e.id&&e.is_bookable,disabled:!e.is_bookable}]),onClick:l=>function(e){if(null==e?void 0:e.is_bookable)return void(Y.value.activity_day_id=e.id);if((null==e?void 0:e.available_count)<=0||"sold_out"===(null==e?void 0:e.unavailable_reason))return void u({title:"该日期已无余票",icon:"none"});const l=String((null==e?void 0:e.opens_at)||"").slice(0,16).replace("T"," "),a=String((null==e?void 0:e.closes_at)||"").slice(0,16).replace("T"," ");u(l&&a?{title:`可预约时段:${l} ~ ${a}`,icon:"none",duration:2800}:{title:"该日期当前不可预约",icon:"none"})}(e)},{default:o(()=>[Y.value.activity_day_id===e.id&&e.is_bookable?(c(),i(a,{key:0,class:"chip-check"},{default:o(()=>[_("✓")]),_:1})):b("",!0),r(t,{class:"chip-line1"},{default:o(()=>[_(p(R(e.activity_date)||" "),1)]),_:2},1024),r(t,{class:"chip-line2"},{default:o(()=>[_(p(X(e.activity_date)),1)]),_:2},1024),r(t,{class:"chip-line3"},{default:o(()=>[_(p(E(e)),1)]),_:2},1024)]),_:2},1032,["class","onClick"]))),128))]),_:1})]),_:1}),r(a,{class:"card-foot"},{default:o(()=>[r(t,{class:"foot-link",onClick:l[0]||(l[0]=e=>U.value=!U.value)},{default:o(()=>[_(p(U.value?"收起预约须知":"展开预约须知")+" › ",1)]),_:1})]),_:1}),U.value&&B.value?(c(),i(a,{key:0,class:"notice-box"},{default:o(()=>[r(d,{class:"notice-inline-rich",nodes:B.value},null,8,["nodes"])]),_:1})):b("",!0)]),_:1}),r(a,{class:"card"},{default:o(()=>[r(a,{class:"card-hd"},{default:o(()=>[_("观众数")]),_:1}),"both"===I.value?(c(),i(a,{key:0,class:"mode-row"},{default:o(()=>[r(t,{class:"mode-label"},{default:o(()=>[_("预约类型")]),_:1}),r(a,{class:"mode-btns"},{default:o(()=>[r(a,{class:g(["mode-pill",{on:"individual"===Y.value.booking_type}]),onClick:l[1]||(l[1]=e=>{Y.value.booking_type="individual",G()})},{default:o(()=>[_("个人")]),_:1},8,["class"]),r(a,{class:g(["mode-pill",{on:"group"===Y.value.booking_type}]),onClick:l[2]||(l[2]=e=>{Y.value.booking_type="group",G()})},{default:o(()=>[_("团体")]),_:1},8,["class"])]),_:1})]),_:1})):b("",!0),r(a,{class:"count-row"},{default:o(()=>[r(t,{class:"count-name"},{default:o(()=>[_("参观人数")]),_:1}),"group"===I.value||"both"===I.value&&"group"===Y.value.booking_type?(c(),i(a,{key:0,class:"stepper"},{default:o(()=>[r(a,{class:"step-btn",onClick:K},{default:o(()=>[_("−")]),_:1}),r(w,{modelValue:Y.value.people_count,"onUpdate:modelValue":l[3]||(l[3]=e=>Y.value.people_count=e),modelModifiers:{number:!0},class:"step-val",type:"number",onBlur:l[4]||(l[4]=e=>G())},null,8,["modelValue"]),r(a,{class:"step-btn",onClick:L},{default:o(()=>[_("+")]),_:1})]),_:1})):(c(),i(t,{key:1,class:"count-fixed"},{default:o(()=>[_("1")]),_:1}))]),_:1}),r(a,{class:"limit-tip"},{default:o(()=>[_("每次预约限制"+p(A.value)+"人",1)]),_:1})]),_:1}),r(a,{class:"card"},{default:o(()=>[r(a,{class:"card-hd"},{default:o(()=>[_("联系人信息")]),_:1}),r(a,{class:"form-row"},{default:o(()=>[r(t,{class:"form-label"},{default:o(()=>[_("联系人")]),_:1}),r(w,{modelValue:Y.value.visitor_name,"onUpdate:modelValue":l[5]||(l[5]=e=>Y.value.visitor_name=e),class:"form-input",placeholder:"请输入姓名","placeholder-class":"ph"},null,8,["modelValue"])]),_:1}),r(a,{class:"form-row"},{default:o(()=>[r(t,{class:"form-label"},{default:o(()=>[_("手机号")]),_:1}),r(w,{modelValue:Y.value.visitor_phone,"onUpdate:modelValue":l[6]||(l[6]=e=>Y.value.visitor_phone=e),class:"form-input",type:"number",maxlength:"11",placeholder:"输入手机号","placeholder-class":"ph"},null,8,["modelValue"])]),_:1}),r(a,{class:"form-row last"},{default:o(()=>[r(t,{class:"form-label"},{default:o(()=>[_("身份证")]),_:1}),r(w,{modelValue:Y.value.id_card,"onUpdate:modelValue":l[7]||(l[7]=e=>Y.value.id_card=e),class:"form-input",maxlength:"18",placeholder:"输入身份证号(选填)","placeholder-class":"ph"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})),r(a,{class:"safe-bottom"})]),_:1}),r(a,{class:"action-bar"},{default:o(()=>[r(S,{class:"btn primary",disabled:!z.value||F.value||j.value,onClick:Q},{default:o(()=>[_(p(F.value?"提交中...":"确认预约"),1)]),_:1},8,["disabled"])]),_:1})]),_:1})}}}),[["__scopeId","data-v-6c0f6d05"]]);export{j as default}; diff --git a/public/h5/assets/pages-discover-index.DBM0c0bu.js b/public/h5/assets/pages-discover-index.ClNQ8m2Z.js similarity index 94% rename from public/h5/assets/pages-discover-index.DBM0c0bu.js rename to public/h5/assets/pages-discover-index.ClNQ8m2Z.js index ef66e16..0517cc5 100644 --- a/public/h5/assets/pages-discover-index.DBM0c0bu.js +++ b/public/h5/assets/pages-discover-index.ClNQ8m2Z.js @@ -1 +1 @@ -import{d as a,r as t,o as s,O as e,P as l,b as u,e as r,v as o,t as n,u as c,A as i,F as d,B as _,E as f,x as v,y as m,z as y,H as p,K as g}from"./index-q6pkZS4X.js";import{c as k}from"./content.4AgB0jqB.js";import{_ as h}from"./_plugin-vue_export-helper.BCo6x5W8.js";const w=h(a({__name:"index",setup(a){const h=t([]),w=t(!1);async function x(){w.value=!0;try{h.value=await k()||[]}catch{h.value=[]}finally{w.value=!1}}return s(()=>{x()}),e(async()=>{try{await x()}finally{l()}}),(a,t)=>{const s=f,e=o,l=v;return n(),u(e,{class:"page"},{default:r(()=>[c(e,{class:"section"},{default:r(()=>[(n(!0),i(d,null,_(h.value,a=>(n(),u(e,{key:a.id,class:"tour-card",onClick:t=>{return s=a.id,void g({url:`/pages/study-tour/detail?id=${s}`});var s}},{default:r(()=>[c(e,{class:"tour-img-wrap"},{default:r(()=>[a.cover_image?(n(),u(s,{key:0,class:"tour-img",src:a.cover_image,mode:"aspectFill"},null,8,["src"])):(n(),u(e,{key:1,class:"tour-img tour-ph"})),c(e,{class:"tour-overlay-title-wrap"},{default:r(()=>[c(l,{class:"tour-overlay-title"},{default:r(()=>[m(y(a.name),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),c(e,{class:"tour-body"},{default:r(()=>{var t;return[c(l,{class:"tour-title"},{default:r(()=>[m(y(a.name),1)]),_:2},1024),c(e,{class:"tour-stops-timeline"},{default:r(()=>[(n(!0),i(d,null,_(a.venue_names||[],(t,s)=>(n(),u(e,{key:"v-"+a.id+"-"+s,class:"tour-stop-row"},{default:r(()=>[c(e,{class:"tour-timeline-axis"},{default:r(()=>{var t;return[c(e,{class:"tour-dot-cell"},{default:r(()=>[c(e,{class:"tour-tl-dot"})]),_:1}),Number(s)<((null==(t=a.venue_names)?void 0:t.length)||0)-1?(n(),u(e,{key:0,class:"tour-tl-line"})):p("",!0)]}),_:2},1024),c(l,{class:"tour-stop-name"},{default:r(()=>[m(y(t),1)]),_:2},1024)]),_:2},1024))),128))]),_:2},1024),(null==(t=a.tags)?void 0:t.length)?(n(),u(e,{key:0,class:"tour-tags-row"},{default:r(()=>[(n(!0),i(d,null,_(a.tags,(t,s)=>(n(),u(l,{key:"t-"+a.id+"-"+s,class:"tour-tag"},{default:r(()=>[m(y(t),1)]),_:2},1024))),128))]),_:2},1024)):p("",!0)]}),_:2},1024)]),_:2},1032,["onClick"]))),128)),w.value&&!h.value.length?(n(),u(e,{key:0,class:"hint"},{default:r(()=>[m("加载中…")]),_:1})):p("",!0),w.value||h.value.length?p("",!0):(n(),u(e,{key:1,class:"hint muted"},{default:r(()=>[m("暂无研学线路")]),_:1}))]),_:1}),c(e,{class:"bottom-safe"})]),_:1})}}}),[["__scopeId","data-v-6f1b91a9"]]);export{w as default}; +import{d as a,r as t,o as s,O as e,P as l,b as u,e as r,v as o,t as n,u as c,A as i,F as d,B as _,E as f,x as v,y as m,z as y,H as p,K as g}from"./index-BznAv2H5.js";import{c as k}from"./content.IclVJQGc.js";import{_ as h}from"./_plugin-vue_export-helper.BCo6x5W8.js";const w=h(a({__name:"index",setup(a){const h=t([]),w=t(!1);async function x(){w.value=!0;try{h.value=await k()||[]}catch{h.value=[]}finally{w.value=!1}}return s(()=>{x()}),e(async()=>{try{await x()}finally{l()}}),(a,t)=>{const s=f,e=o,l=v;return n(),u(e,{class:"page"},{default:r(()=>[c(e,{class:"section"},{default:r(()=>[(n(!0),i(d,null,_(h.value,a=>(n(),u(e,{key:a.id,class:"tour-card",onClick:t=>{return s=a.id,void g({url:`/pages/study-tour/detail?id=${s}`});var s}},{default:r(()=>[c(e,{class:"tour-img-wrap"},{default:r(()=>[a.cover_image?(n(),u(s,{key:0,class:"tour-img",src:a.cover_image,mode:"aspectFill"},null,8,["src"])):(n(),u(e,{key:1,class:"tour-img tour-ph"})),c(e,{class:"tour-overlay-title-wrap"},{default:r(()=>[c(l,{class:"tour-overlay-title"},{default:r(()=>[m(y(a.name),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),c(e,{class:"tour-body"},{default:r(()=>{var t;return[c(l,{class:"tour-title"},{default:r(()=>[m(y(a.name),1)]),_:2},1024),c(e,{class:"tour-stops-timeline"},{default:r(()=>[(n(!0),i(d,null,_(a.venue_names||[],(t,s)=>(n(),u(e,{key:"v-"+a.id+"-"+s,class:"tour-stop-row"},{default:r(()=>[c(e,{class:"tour-timeline-axis"},{default:r(()=>{var t;return[c(e,{class:"tour-dot-cell"},{default:r(()=>[c(e,{class:"tour-tl-dot"})]),_:1}),Number(s)<((null==(t=a.venue_names)?void 0:t.length)||0)-1?(n(),u(e,{key:0,class:"tour-tl-line"})):p("",!0)]}),_:2},1024),c(l,{class:"tour-stop-name"},{default:r(()=>[m(y(t),1)]),_:2},1024)]),_:2},1024))),128))]),_:2},1024),(null==(t=a.tags)?void 0:t.length)?(n(),u(e,{key:0,class:"tour-tags-row"},{default:r(()=>[(n(!0),i(d,null,_(a.tags,(t,s)=>(n(),u(l,{key:"t-"+a.id+"-"+s,class:"tour-tag"},{default:r(()=>[m(y(t),1)]),_:2},1024))),128))]),_:2},1024)):p("",!0)]}),_:2},1024)]),_:2},1032,["onClick"]))),128)),w.value&&!h.value.length?(n(),u(e,{key:0,class:"hint"},{default:r(()=>[m("加载中…")]),_:1})):p("",!0),w.value||h.value.length?p("",!0):(n(),u(e,{key:1,class:"hint muted"},{default:r(()=>[m("暂无研学线路")]),_:1}))]),_:1}),c(e,{class:"bottom-safe"})]),_:1})}}}),[["__scopeId","data-v-6f1b91a9"]]);export{w as default}; diff --git a/public/h5/assets/pages-index-index.DzVK5J0W.js b/public/h5/assets/pages-index-index.5DcX7mv3.js similarity index 99% rename from public/h5/assets/pages-index-index.DzVK5J0W.js rename to public/h5/assets/pages-index-index.5DcX7mv3.js index 8f902bd..914425b 100644 --- a/public/h5/assets/pages-index-index.DzVK5J0W.js +++ b/public/h5/assets/pages-index-index.5DcX7mv3.js @@ -1 +1 @@ -import{h as e,d as l,r as a,c as t,w as s,o as u,a as n,b as c,e as i,s as o,f as r,g as d,i as v,j as f,S as _,k as p,l as m,m as y,n as g,p as k,q as h,t as b,u as w,v as C,x,y as j,z as F,A as I,F as S,B as $,C as L,D as T,I as J,E as P,G as V,M as A,H as M,J as q,K as z,L as B}from"./index-q6pkZS4X.js";import{s as D}from"./search.BJnl3YRK.js";import{d as E}from"./down.BCKq9i8s.js";import{f as G}from"./activity.k1jR9V-B.js";import{h as H,f as K}from"./geo.BHVFNtB7.js";import{g as N}from"./markerPin.DdplcbG_.js";import{_ as U}from"./_plugin-vue_export-helper.BCo6x5W8.js";const O=U(l({__name:"index",setup(l){const U=a(!1),O=a(null),Q=a({latitude:31.2989,longitude:120.5853}),R=a("map"),W=a(""),X=a("全部区域"),Y=a(""),Z=a("全部类型"),ee=a(""),le=a("收费类型"),ae=a(""),te=a(null),se=a(null),ue=t(()=>{var e,l;const a={};for(const t of(null==(l=null==(e=O.value)?void 0:e.venue_dicts)?void 0:l.venue_type)??[])a[t.value]=t.label;return a}),ne=t(()=>{var e,l;const a={};for(const t of(null==(l=null==(e=O.value)?void 0:e.venue_dicts)?void 0:l.ticket_type)??[])a[t.value]=t.label;return a});function ce(e){return e?ue.value[e]||e:""}function ie(e){return e?ne.value[e]||e:""}function oe(e){try{"undefined"!=typeof window&&window.sessionStorage&&window.sessionStorage.setItem(p.locConsent,e)}catch{}try{h(p.locConsent,e)}catch{}}const re=t(()=>{var e,l;return((null==(l=null==(e=O.value)?void 0:e.stats)?void 0:l.reservation_total)??0).toLocaleString()}),de=t(()=>{var e;const l=(null==(e=O.value)?void 0:e.top_live_venues)??[],a=[];for(let t=0;t<3;t++){const e=l[t];e?a.push({id:e.id,name:e.name,people_count:e.people_count,empty:!1}):a.push({id:0,name:"",people_count:0,empty:!0})}return a}),ve=t(()=>{var e,l;return[{label:"全部区域",value:""},...((null==(l=null==(e=O.value)?void 0:e.venue_dicts)?void 0:l.district)??[]).map(e=>({label:e.label,value:e.value}))]}),fe=t(()=>{var e,l;return[{label:"全部类型",value:""},...((null==(l=null==(e=O.value)?void 0:e.venue_dicts)?void 0:l.venue_type)??[]).map(e=>({label:e.label,value:e.value}))]}),_e=t(()=>{var e,l;return[{label:"收费类型",value:""},...((null==(l=null==(e=O.value)?void 0:e.venue_dicts)?void 0:l.ticket_type)??[]).map(e=>({label:e.label,value:e.value}))]}),pe=t(()=>{var e;const l=W.value.trim();return((null==(e=O.value)?void 0:e.map_venues)??[]).filter(e=>{if(Y.value&&(e.district||"")!==Y.value)return!1;if(ee.value&&(e.venue_type||"")!==ee.value)return!1;if("free"===ae.value&&"free"!==(e.ticket_type||""))return!1;if("paid"===ae.value&&"paid"!==(e.ticket_type||""))return!1;if(l){if(!`${e.name||""}${e.address||""}`.includes(l))return!1}return!0})}),me=t(()=>{const e=[...pe.value],l=te.value;return l?e.sort((e,a)=>H(l.lat,l.lng,e.lat,e.lng)-H(l.lat,l.lng,a.lat,a.lng)):e}),ye=t(()=>null==se.value?null:pe.value.find(e=>e.id===se.value)??null),ge=t(()=>{const e=ye.value,l=te.value;if(!e||!l)return"定位后可显示距离";const a=H(l.lat,l.lng,e.lat,e.lng);return`距您 ${K(a)}`});s(pe,e=>{null==se.value||e.some(e=>e.id===se.value)||(se.value=null)}),s(R,e=>{"list"===e&&(se.value=null)});const ke=t(()=>pe.value.map(e=>{const l=N(e.venue_type_color);return{id:e.id,latitude:e.lat,longitude:e.lng,width:32,height:38,iconPath:l||void 0,anchor:{x:.5,y:1}}}));function he(e){const l=te.value;if(!l)return"距离 --";const a=H(l.lat,l.lng,e.lat,e.lng);return`距您 ${K(a)}`}function be(e){if("district"===e){const e=ve.value;q({itemList:e.map(e=>e.label),success:l=>{const a=e[l.tapIndex];X.value=a.label,Y.value=a.value}})}else if("type"===e){const e=fe.value;q({itemList:e.map(e=>e.label),success:l=>{const a=e[l.tapIndex];Z.value=a.label,ee.value=a.value}})}else{const e=_e.value;q({itemList:e.map(e=>e.label),success:l=>{const a=e[l.tapIndex];le.value=a.label,ae.value=a.value}})}}let we=!1;function Ce(e){var l;const a=null==(l=null==e?void 0:e.detail)?void 0:l.markerId;null!=a&&(se.value=Number(a),we=!0,setTimeout(()=>{we=!1},400))}function xe(){we||(se.value=null)}function je(){se.value=null}function Fe(e){e&&z({url:`/pages/venue/detail?id=${e}`})}function Ie(){z({url:"/pages/stats/index"})}function Se(){B({url:"/pages/activity/index"})}function $e(){z({url:"/pages/discover/index"})}function Le(e){return 0===(e.registered_count??0)&&!0===e.is_bookable}function Te(e){const l=e.registered_count??0;return Le(e)?"可预约":l>0?`${l}人已预约`:"敬请期待"}function Je(){var e;if(te.value)return void(Q.value={latitude:te.value.lat,longitude:te.value.lng});const l=(null==(e=O.value)?void 0:e.map_venues)??[];l.length?Q.value={latitude:l[0].lat,longitude:l[0].lng}:Q.value={latitude:31.2989,longitude:120.5853}}async function Pe(){U.value=!0;try{const l=await e.get("/h5/home",{},{withAuth:!1});O.value=l,Je(),await o({title:"苏州科普地图",desc:"热门活动、研学线路与场馆导览"}).catch(()=>{})}catch(l){r({title:(null==l?void 0:l.message)||"加载首页失败",icon:"none"})}finally{U.value=!1}}async function Ve(){if(y())try{const e=await g();return te.value={lat:e.lat,lng:e.lng},void Je()}catch{}k({type:"gcj02",success:e=>{te.value={lat:e.latitude,lng:e.longitude},Je()},fail:()=>{te.value=null,Je(),r({title:"定位失败,请检查系统权限或公众号 JS 安全域名",icon:"none",duration:2800})}})}function Ae(){return new Promise(e=>{d()&&v();const l=function(){try{if("undefined"!=typeof window&&window.sessionStorage){const e=window.sessionStorage.getItem(p.locConsent);if("granted"===e||"denied"===e)return e}}catch{}try{const e=m(p.locConsent);if("granted"===e||"denied"===e)return e}catch{}return null}();"denied"!==l?"granted"!==l?f({title:"需要获取您的位置",content:"用于展示「距您」距离、列表排序与地图中心。拒绝后仍可浏览场馆,但无法显示距离。\n\n在微信中使用时,请确保本页域名已加入公众号「JS 接口安全域名」,否则无法调起定位。",confirmText:"允许",cancelText:"暂不",success:l=>{l.confirm?(oe("granted"),Ve().finally(()=>e())):(oe("denied"),e())}}):Ve().finally(()=>e()):e()})}return u(async()=>{await n()&&(await Pe(),await Ae())}),(e,l)=>{const a=C,t=x,s=J,u=P,n=A,o=_;return b(),c(o,{"scroll-y":"",class:"page"},{default:i(()=>[w(a,{class:"hero"},{default:i(()=>[w(a,{class:"hero-brand"}),w(a,{class:"hero-content"},{default:i(()=>[w(a,{class:"stat-card"},{default:i(()=>[w(a,{class:"stat-main"},{default:i(()=>[w(a,{class:"stat-left"},{default:i(()=>[w(t,{class:"stat-label"},{default:i(()=>[j("全市实时总人数")]),_:1}),w(t,{class:"stat-num"},{default:i(()=>[j(F(re.value)+" 人",1)]),_:1}),w(t,{class:"stat-desc"},{default:i(()=>[j("正在参观科普场馆")]),_:1})]),_:1}),w(a,{class:"stat-right"},{default:i(()=>[w(a,{class:"live-list"},{default:i(()=>[(b(!0),I(S,null,$(de.value,(e,l)=>(b(),c(a,{key:"live-"+l,class:T(["live-venue-row",{"is-empty":e.empty}]),onClick:L(l=>{var a;(a=e).empty||Fe(a.id)},["stop"])},{default:i(()=>[w(a,{class:"live-row-one"},{default:i(()=>[w(t,{class:"live-top"},{default:i(()=>[j("Top "+F(l+1),1)]),_:2},1024),w(t,{class:"live-name"},{default:i(()=>[j(F(e.empty?"—":e.name),1)]),_:2},1024),w(t,{class:"live-count"},{default:i(()=>[j(F(e.empty?"—":e.people_count+" 人"),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["class","onClick"]))),128))]),_:1}),w(a,{class:"stat-foot",onClick:L(Ie,["stop"])},{default:i(()=>[w(t,{class:"stat-foot-link"},{default:i(()=>[j("客流量统计 >")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),w(a,{class:"map-section"},{default:i(()=>[w(a,{class:"toolbar"},{default:i(()=>[w(a,{class:"tabs"},{default:i(()=>[w(t,{class:T(["tab",{on:"map"===R.value}]),onClick:l[0]||(l[0]=e=>R.value="map")},{default:i(()=>[j("地图")]),_:1},8,["class"]),w(t,{class:T(["tab",{on:"list"===R.value}]),onClick:l[1]||(l[1]=e=>R.value="list")},{default:i(()=>[j("列表")]),_:1},8,["class"])]),_:1}),w(a,{class:"search-wrap"},{default:i(()=>[w(s,{modelValue:W.value,"onUpdate:modelValue":l[2]||(l[2]=e=>W.value=e),class:"search-input",placeholder:"请输入你要搜索的内容","placeholder-class":"ph"},null,8,["modelValue"]),w(u,{class:"search-icon-img",src:V(D),mode:"aspectFit"},null,8,["src"])]),_:1})]),_:1}),w(a,{class:"filters"},{default:i(()=>[w(a,{class:"f-item",onClick:l[3]||(l[3]=e=>be("district"))},{default:i(()=>[w(t,{class:"f-item-text"},{default:i(()=>[j(F(X.value),1)]),_:1}),w(u,{class:"f-item-arrow",src:V(E),mode:"aspectFit"},null,8,["src"])]),_:1}),w(a,{class:"f-item",onClick:l[4]||(l[4]=e=>be("type"))},{default:i(()=>[w(t,{class:"f-item-text"},{default:i(()=>[j(F(Z.value),1)]),_:1}),w(u,{class:"f-item-arrow",src:V(E),mode:"aspectFit"},null,8,["src"])]),_:1}),w(a,{class:"f-item",onClick:l[5]||(l[5]=e=>be("ticket"))},{default:i(()=>[w(t,{class:"f-item-text"},{default:i(()=>[j(F(le.value),1)]),_:1}),w(u,{class:"f-item-arrow",src:V(E),mode:"aspectFit"},null,8,["src"])]),_:1})]),_:1}),"map"===R.value?(b(),c(a,{key:0,class:"map-wrap"},{default:i(()=>[w(n,{class:"main-map",latitude:Q.value.latitude,longitude:Q.value.longitude,markers:ke.value,scale:11,"show-location":"",onMarkertap:Ce,onTap:xe},null,8,["latitude","longitude","markers"]),ye.value?(b(),c(a,{key:0,class:"venue-sheet",onClick:l[7]||(l[7]=L(()=>{},["stop"]))},{default:i(()=>[w(a,{class:"venue-sheet-inner"},{default:i(()=>[w(a,{class:"sheet-bar"}),w(a,{class:"sheet-row"},{default:i(()=>[ye.value.image?(b(),c(u,{key:0,class:"sheet-cover",src:ye.value.image,mode:"aspectFill"},null,8,["src"])):(b(),c(a,{key:1,class:"sheet-cover sheet-cover-ph"})),w(a,{class:"sheet-main"},{default:i(()=>[w(t,{class:"sheet-name"},{default:i(()=>[j(F(ye.value.name),1)]),_:1}),ye.value.venue_type||ye.value.ticket_type?(b(),c(a,{key:0,class:"sheet-meta"},{default:i(()=>[ye.value.venue_type?(b(),c(t,{key:0,class:"sheet-type"},{default:i(()=>[j(F(ce(ye.value.venue_type)||ye.value.venue_type),1)]),_:1})):M("",!0),ye.value.venue_type&&ye.value.ticket_type?(b(),c(t,{key:1,class:"sheet-meta-sep"},{default:i(()=>[j("·")]),_:1})):M("",!0),ye.value.ticket_type?(b(),c(t,{key:2,class:T(["sheet-ticket","paid"===ye.value.ticket_type?"paid":"free"])},{default:i(()=>[j(F(ie(ye.value.ticket_type)),1)]),_:1},8,["class"])):M("",!0)]),_:1})):M("",!0),w(t,{class:"sheet-addr"},{default:i(()=>[j(F(ye.value.address||"地址待定"),1)]),_:1}),w(t,{class:"sheet-dist"},{default:i(()=>[j(F(ge.value),1)]),_:1})]),_:1})]),_:1}),w(a,{class:"sheet-actions"},{default:i(()=>[w(a,{class:"sheet-btn ghost",onClick:je},{default:i(()=>[j("关闭")]),_:1}),w(a,{class:"sheet-btn primary",onClick:l[6]||(l[6]=e=>Fe(ye.value.id))},{default:i(()=>[j("查看详情")]),_:1})]),_:1})]),_:1})]),_:1})):M("",!0)]),_:1})):(b(),c(o,{key:1,"scroll-y":"",class:"venue-list-scroll"},{default:i(()=>[(b(!0),I(S,null,$(me.value,e=>(b(),c(a,{key:e.id,class:"venue-row",onClick:l=>Fe(e.id)},{default:i(()=>[e.image?(b(),c(u,{key:0,class:"venue-thumb",src:e.image,mode:"aspectFill"},null,8,["src"])):(b(),c(a,{key:1,class:"venue-thumb ph-img"})),w(a,{class:"venue-info"},{default:i(()=>[w(t,{class:"venue-name"},{default:i(()=>[j(F(e.name),1)]),_:2},1024),e.venue_type||e.ticket_type?(b(),c(a,{key:0,class:"venue-meta"},{default:i(()=>[e.venue_type?(b(),c(t,{key:0,class:"venue-type-pill"},{default:i(()=>[j(F(ce(e.venue_type)||e.venue_type),1)]),_:2},1024)):M("",!0),e.ticket_type?(b(),c(t,{key:1,class:T(["venue-ticket-pill","paid"===e.ticket_type?"paid":"free"])},{default:i(()=>[j(F(ie(e.ticket_type)),1)]),_:2},1032,["class"])):M("",!0)]),_:2},1024)):M("",!0),w(t,{class:"venue-addr"},{default:i(()=>[j(F(e.address||"-"),1)]),_:2},1024),w(t,{class:"venue-dist"},{default:i(()=>[j(F(he(e)),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["onClick"]))),128)),me.value.length?M("",!0):(b(),c(a,{key:0,class:"empty-tip"},{default:i(()=>[j("暂无符合条件的场馆")]),_:1}))]),_:1}))]),_:1}),w(a,{class:"section"},{default:i(()=>[w(a,{class:"sec-head"},{default:i(()=>[w(a,{class:"sec-bar"}),w(t,{class:"sec-title"},{default:i(()=>[j("热门活动")]),_:1}),w(t,{class:"sec-more",onClick:Se},{default:i(()=>[j("更多 >")]),_:1})]),_:1}),w(o,{"scroll-x":"",class:"act-scroll","show-scrollbar":!1,"enable-flex":!0},{default:i(()=>[w(a,{class:"act-scroll-row"},{default:i(()=>{var e;return[(b(!0),I(S,null,$((null==(e=O.value)?void 0:e.hot_activities)??[],e=>(b(),c(a,{key:e.id,class:"act-card",onClick:l=>{return a=e.id,void z({url:`/pages/activity/detail?id=${a}`});var a}},{default:i(()=>[w(a,{class:"act-img-wrap"},{default:i(()=>[e.image?(b(),c(u,{key:0,class:"act-img",src:e.image,mode:"aspectFill"},null,8,["src"])):(b(),c(a,{key:1,class:"act-img-ph"})),w(a,{class:T(["act-book-badge",{"is-bookable":Le(e)}])},{default:i(()=>[w(t,{class:T(["act-book-text",{"is-bookable":Le(e)}])},{default:i(()=>[j(F(Te(e)),1)]),_:2},1032,["class"])]),_:2},1032,["class"])]),_:2},1024),w(a,{class:"act-body"},{default:i(()=>[w(t,{class:"act-title"},{default:i(()=>[j(F(e.title),1)]),_:2},1024),w(a,{class:"act-tags"},{default:i(()=>[(b(!0),I(S,null,$((e.tags||[]).slice(0,4),(l,a)=>(b(),c(t,{key:"tag-"+e.id+"-"+a,class:"act-tag-chip"},{default:i(()=>[j(F(l),1)]),_:2},1024))),128))]),_:2},1024),w(t,{class:"act-meta"},{default:i(()=>[j(F(V(G)(e.start_at,e.end_at)),1)]),_:2},1024),w(t,{class:"act-meta"},{default:i(()=>[j(F(e.venue_name||e.address||"苏州"),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]}),_:1})]),_:1})]),_:1}),w(a,{class:"section"},{default:i(()=>{var e;return[w(a,{class:"sec-head"},{default:i(()=>[w(a,{class:"sec-bar"}),w(t,{class:"sec-title"},{default:i(()=>[j("苏州市科普研学线路")]),_:1}),w(t,{class:"sec-more",onClick:$e},{default:i(()=>[j("更多 >")]),_:1})]),_:1}),(b(!0),I(S,null,$((null==(e=O.value)?void 0:e.study_tours)??[],e=>(b(),c(a,{key:e.id,class:"tour-card",onClick:l=>{return a=e.id,void z({url:`/pages/study-tour/detail?id=${a}`});var a}},{default:i(()=>[w(a,{class:"tour-img-wrap"},{default:i(()=>[e.cover_image?(b(),c(u,{key:0,class:"tour-img",src:e.cover_image,mode:"aspectFill"},null,8,["src"])):(b(),c(a,{key:1,class:"tour-img tour-ph"})),w(a,{class:"tour-overlay-title-wrap"},{default:i(()=>[w(t,{class:"tour-overlay-title"},{default:i(()=>[j(F(e.name),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),w(a,{class:"tour-body"},{default:i(()=>{var l;return[w(t,{class:"tour-title"},{default:i(()=>[j(F(e.name),1)]),_:2},1024),w(a,{class:"tour-stops-timeline"},{default:i(()=>[(b(!0),I(S,null,$(e.venue_names,(l,s)=>(b(),c(a,{key:"v-"+e.id+"-"+s,class:"tour-stop-row"},{default:i(()=>[w(a,{class:"tour-timeline-axis"},{default:i(()=>[w(a,{class:"tour-dot-cell"},{default:i(()=>[w(a,{class:"tour-tl-dot"})]),_:1}),s[j(F(l),1)]),_:2},1024)]),_:2},1024))),128))]),_:2},1024),(null==(l=e.tags)?void 0:l.length)?(b(),c(a,{key:0,class:"tour-tags-row"},{default:i(()=>[(b(!0),I(S,null,$(e.tags,(l,a)=>(b(),c(t,{key:"t-"+e.id+"-"+a,class:"tour-tag"},{default:i(()=>[j(F(l),1)]),_:2},1024))),128))]),_:2},1024)):M("",!0)]}),_:2},1024)]),_:2},1032,["onClick"]))),128))]}),_:1}),w(a,{class:"bottom-safe"}),U.value?(b(),c(a,{key:0,class:"loading-mask"},{default:i(()=>[j("加载中...")]),_:1})):M("",!0)]),_:1})}}}),[["__scopeId","data-v-fc20c157"]]);export{O as default}; +import{h as e,d as l,r as a,c as t,w as s,o as u,a as n,b as c,e as i,s as o,f as r,g as d,i as v,j as f,S as _,k as p,l as m,m as y,n as g,p as k,q as h,t as b,u as w,v as C,x,y as j,z as F,A as I,F as S,B as $,C as L,D as T,I as J,E as P,G as V,M as A,H as M,J as q,K as z,L as B}from"./index-BznAv2H5.js";import{s as D}from"./search.BJnl3YRK.js";import{d as E}from"./down.BCKq9i8s.js";import{f as G}from"./activity.k1jR9V-B.js";import{h as H,f as K}from"./geo.BHVFNtB7.js";import{g as N}from"./markerPin.DdplcbG_.js";import{_ as U}from"./_plugin-vue_export-helper.BCo6x5W8.js";const O=U(l({__name:"index",setup(l){const U=a(!1),O=a(null),Q=a({latitude:31.2989,longitude:120.5853}),R=a("map"),W=a(""),X=a("全部区域"),Y=a(""),Z=a("全部类型"),ee=a(""),le=a("收费类型"),ae=a(""),te=a(null),se=a(null),ue=t(()=>{var e,l;const a={};for(const t of(null==(l=null==(e=O.value)?void 0:e.venue_dicts)?void 0:l.venue_type)??[])a[t.value]=t.label;return a}),ne=t(()=>{var e,l;const a={};for(const t of(null==(l=null==(e=O.value)?void 0:e.venue_dicts)?void 0:l.ticket_type)??[])a[t.value]=t.label;return a});function ce(e){return e?ue.value[e]||e:""}function ie(e){return e?ne.value[e]||e:""}function oe(e){try{"undefined"!=typeof window&&window.sessionStorage&&window.sessionStorage.setItem(p.locConsent,e)}catch{}try{h(p.locConsent,e)}catch{}}const re=t(()=>{var e,l;return((null==(l=null==(e=O.value)?void 0:e.stats)?void 0:l.reservation_total)??0).toLocaleString()}),de=t(()=>{var e;const l=(null==(e=O.value)?void 0:e.top_live_venues)??[],a=[];for(let t=0;t<3;t++){const e=l[t];e?a.push({id:e.id,name:e.name,people_count:e.people_count,empty:!1}):a.push({id:0,name:"",people_count:0,empty:!0})}return a}),ve=t(()=>{var e,l;return[{label:"全部区域",value:""},...((null==(l=null==(e=O.value)?void 0:e.venue_dicts)?void 0:l.district)??[]).map(e=>({label:e.label,value:e.value}))]}),fe=t(()=>{var e,l;return[{label:"全部类型",value:""},...((null==(l=null==(e=O.value)?void 0:e.venue_dicts)?void 0:l.venue_type)??[]).map(e=>({label:e.label,value:e.value}))]}),_e=t(()=>{var e,l;return[{label:"收费类型",value:""},...((null==(l=null==(e=O.value)?void 0:e.venue_dicts)?void 0:l.ticket_type)??[]).map(e=>({label:e.label,value:e.value}))]}),pe=t(()=>{var e;const l=W.value.trim();return((null==(e=O.value)?void 0:e.map_venues)??[]).filter(e=>{if(Y.value&&(e.district||"")!==Y.value)return!1;if(ee.value&&(e.venue_type||"")!==ee.value)return!1;if("free"===ae.value&&"free"!==(e.ticket_type||""))return!1;if("paid"===ae.value&&"paid"!==(e.ticket_type||""))return!1;if(l){if(!`${e.name||""}${e.address||""}`.includes(l))return!1}return!0})}),me=t(()=>{const e=[...pe.value],l=te.value;return l?e.sort((e,a)=>H(l.lat,l.lng,e.lat,e.lng)-H(l.lat,l.lng,a.lat,a.lng)):e}),ye=t(()=>null==se.value?null:pe.value.find(e=>e.id===se.value)??null),ge=t(()=>{const e=ye.value,l=te.value;if(!e||!l)return"定位后可显示距离";const a=H(l.lat,l.lng,e.lat,e.lng);return`距您 ${K(a)}`});s(pe,e=>{null==se.value||e.some(e=>e.id===se.value)||(se.value=null)}),s(R,e=>{"list"===e&&(se.value=null)});const ke=t(()=>pe.value.map(e=>{const l=N(e.venue_type_color);return{id:e.id,latitude:e.lat,longitude:e.lng,width:32,height:38,iconPath:l||void 0,anchor:{x:.5,y:1}}}));function he(e){const l=te.value;if(!l)return"距离 --";const a=H(l.lat,l.lng,e.lat,e.lng);return`距您 ${K(a)}`}function be(e){if("district"===e){const e=ve.value;q({itemList:e.map(e=>e.label),success:l=>{const a=e[l.tapIndex];X.value=a.label,Y.value=a.value}})}else if("type"===e){const e=fe.value;q({itemList:e.map(e=>e.label),success:l=>{const a=e[l.tapIndex];Z.value=a.label,ee.value=a.value}})}else{const e=_e.value;q({itemList:e.map(e=>e.label),success:l=>{const a=e[l.tapIndex];le.value=a.label,ae.value=a.value}})}}let we=!1;function Ce(e){var l;const a=null==(l=null==e?void 0:e.detail)?void 0:l.markerId;null!=a&&(se.value=Number(a),we=!0,setTimeout(()=>{we=!1},400))}function xe(){we||(se.value=null)}function je(){se.value=null}function Fe(e){e&&z({url:`/pages/venue/detail?id=${e}`})}function Ie(){z({url:"/pages/stats/index"})}function Se(){B({url:"/pages/activity/index"})}function $e(){z({url:"/pages/discover/index"})}function Le(e){return 0===(e.registered_count??0)&&!0===e.is_bookable}function Te(e){const l=e.registered_count??0;return Le(e)?"可预约":l>0?`${l}人已预约`:"敬请期待"}function Je(){var e;if(te.value)return void(Q.value={latitude:te.value.lat,longitude:te.value.lng});const l=(null==(e=O.value)?void 0:e.map_venues)??[];l.length?Q.value={latitude:l[0].lat,longitude:l[0].lng}:Q.value={latitude:31.2989,longitude:120.5853}}async function Pe(){U.value=!0;try{const l=await e.get("/h5/home",{},{withAuth:!1});O.value=l,Je(),await o({title:"苏州科普地图",desc:"热门活动、研学线路与场馆导览"}).catch(()=>{})}catch(l){r({title:(null==l?void 0:l.message)||"加载首页失败",icon:"none"})}finally{U.value=!1}}async function Ve(){if(y())try{const e=await g();return te.value={lat:e.lat,lng:e.lng},void Je()}catch{}k({type:"gcj02",success:e=>{te.value={lat:e.latitude,lng:e.longitude},Je()},fail:()=>{te.value=null,Je(),r({title:"定位失败,请检查系统权限或公众号 JS 安全域名",icon:"none",duration:2800})}})}function Ae(){return new Promise(e=>{d()&&v();const l=function(){try{if("undefined"!=typeof window&&window.sessionStorage){const e=window.sessionStorage.getItem(p.locConsent);if("granted"===e||"denied"===e)return e}}catch{}try{const e=m(p.locConsent);if("granted"===e||"denied"===e)return e}catch{}return null}();"denied"!==l?"granted"!==l?f({title:"需要获取您的位置",content:"用于展示「距您」距离、列表排序与地图中心。拒绝后仍可浏览场馆,但无法显示距离。\n\n在微信中使用时,请确保本页域名已加入公众号「JS 接口安全域名」,否则无法调起定位。",confirmText:"允许",cancelText:"暂不",success:l=>{l.confirm?(oe("granted"),Ve().finally(()=>e())):(oe("denied"),e())}}):Ve().finally(()=>e()):e()})}return u(async()=>{await n()&&(await Pe(),await Ae())}),(e,l)=>{const a=C,t=x,s=J,u=P,n=A,o=_;return b(),c(o,{"scroll-y":"",class:"page"},{default:i(()=>[w(a,{class:"hero"},{default:i(()=>[w(a,{class:"hero-brand"}),w(a,{class:"hero-content"},{default:i(()=>[w(a,{class:"stat-card"},{default:i(()=>[w(a,{class:"stat-main"},{default:i(()=>[w(a,{class:"stat-left"},{default:i(()=>[w(t,{class:"stat-label"},{default:i(()=>[j("全市实时总人数")]),_:1}),w(t,{class:"stat-num"},{default:i(()=>[j(F(re.value)+" 人",1)]),_:1}),w(t,{class:"stat-desc"},{default:i(()=>[j("正在参观科普场馆")]),_:1})]),_:1}),w(a,{class:"stat-right"},{default:i(()=>[w(a,{class:"live-list"},{default:i(()=>[(b(!0),I(S,null,$(de.value,(e,l)=>(b(),c(a,{key:"live-"+l,class:T(["live-venue-row",{"is-empty":e.empty}]),onClick:L(l=>{var a;(a=e).empty||Fe(a.id)},["stop"])},{default:i(()=>[w(a,{class:"live-row-one"},{default:i(()=>[w(t,{class:"live-top"},{default:i(()=>[j("Top "+F(l+1),1)]),_:2},1024),w(t,{class:"live-name"},{default:i(()=>[j(F(e.empty?"—":e.name),1)]),_:2},1024),w(t,{class:"live-count"},{default:i(()=>[j(F(e.empty?"—":e.people_count+" 人"),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["class","onClick"]))),128))]),_:1}),w(a,{class:"stat-foot",onClick:L(Ie,["stop"])},{default:i(()=>[w(t,{class:"stat-foot-link"},{default:i(()=>[j("客流量统计 >")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),w(a,{class:"map-section"},{default:i(()=>[w(a,{class:"toolbar"},{default:i(()=>[w(a,{class:"tabs"},{default:i(()=>[w(t,{class:T(["tab",{on:"map"===R.value}]),onClick:l[0]||(l[0]=e=>R.value="map")},{default:i(()=>[j("地图")]),_:1},8,["class"]),w(t,{class:T(["tab",{on:"list"===R.value}]),onClick:l[1]||(l[1]=e=>R.value="list")},{default:i(()=>[j("列表")]),_:1},8,["class"])]),_:1}),w(a,{class:"search-wrap"},{default:i(()=>[w(s,{modelValue:W.value,"onUpdate:modelValue":l[2]||(l[2]=e=>W.value=e),class:"search-input",placeholder:"请输入你要搜索的内容","placeholder-class":"ph"},null,8,["modelValue"]),w(u,{class:"search-icon-img",src:V(D),mode:"aspectFit"},null,8,["src"])]),_:1})]),_:1}),w(a,{class:"filters"},{default:i(()=>[w(a,{class:"f-item",onClick:l[3]||(l[3]=e=>be("district"))},{default:i(()=>[w(t,{class:"f-item-text"},{default:i(()=>[j(F(X.value),1)]),_:1}),w(u,{class:"f-item-arrow",src:V(E),mode:"aspectFit"},null,8,["src"])]),_:1}),w(a,{class:"f-item",onClick:l[4]||(l[4]=e=>be("type"))},{default:i(()=>[w(t,{class:"f-item-text"},{default:i(()=>[j(F(Z.value),1)]),_:1}),w(u,{class:"f-item-arrow",src:V(E),mode:"aspectFit"},null,8,["src"])]),_:1}),w(a,{class:"f-item",onClick:l[5]||(l[5]=e=>be("ticket"))},{default:i(()=>[w(t,{class:"f-item-text"},{default:i(()=>[j(F(le.value),1)]),_:1}),w(u,{class:"f-item-arrow",src:V(E),mode:"aspectFit"},null,8,["src"])]),_:1})]),_:1}),"map"===R.value?(b(),c(a,{key:0,class:"map-wrap"},{default:i(()=>[w(n,{class:"main-map",latitude:Q.value.latitude,longitude:Q.value.longitude,markers:ke.value,scale:11,"show-location":"",onMarkertap:Ce,onTap:xe},null,8,["latitude","longitude","markers"]),ye.value?(b(),c(a,{key:0,class:"venue-sheet",onClick:l[7]||(l[7]=L(()=>{},["stop"]))},{default:i(()=>[w(a,{class:"venue-sheet-inner"},{default:i(()=>[w(a,{class:"sheet-bar"}),w(a,{class:"sheet-row"},{default:i(()=>[ye.value.image?(b(),c(u,{key:0,class:"sheet-cover",src:ye.value.image,mode:"aspectFill"},null,8,["src"])):(b(),c(a,{key:1,class:"sheet-cover sheet-cover-ph"})),w(a,{class:"sheet-main"},{default:i(()=>[w(t,{class:"sheet-name"},{default:i(()=>[j(F(ye.value.name),1)]),_:1}),ye.value.venue_type||ye.value.ticket_type?(b(),c(a,{key:0,class:"sheet-meta"},{default:i(()=>[ye.value.venue_type?(b(),c(t,{key:0,class:"sheet-type"},{default:i(()=>[j(F(ce(ye.value.venue_type)||ye.value.venue_type),1)]),_:1})):M("",!0),ye.value.venue_type&&ye.value.ticket_type?(b(),c(t,{key:1,class:"sheet-meta-sep"},{default:i(()=>[j("·")]),_:1})):M("",!0),ye.value.ticket_type?(b(),c(t,{key:2,class:T(["sheet-ticket","paid"===ye.value.ticket_type?"paid":"free"])},{default:i(()=>[j(F(ie(ye.value.ticket_type)),1)]),_:1},8,["class"])):M("",!0)]),_:1})):M("",!0),w(t,{class:"sheet-addr"},{default:i(()=>[j(F(ye.value.address||"地址待定"),1)]),_:1}),w(t,{class:"sheet-dist"},{default:i(()=>[j(F(ge.value),1)]),_:1})]),_:1})]),_:1}),w(a,{class:"sheet-actions"},{default:i(()=>[w(a,{class:"sheet-btn ghost",onClick:je},{default:i(()=>[j("关闭")]),_:1}),w(a,{class:"sheet-btn primary",onClick:l[6]||(l[6]=e=>Fe(ye.value.id))},{default:i(()=>[j("查看详情")]),_:1})]),_:1})]),_:1})]),_:1})):M("",!0)]),_:1})):(b(),c(o,{key:1,"scroll-y":"",class:"venue-list-scroll"},{default:i(()=>[(b(!0),I(S,null,$(me.value,e=>(b(),c(a,{key:e.id,class:"venue-row",onClick:l=>Fe(e.id)},{default:i(()=>[e.image?(b(),c(u,{key:0,class:"venue-thumb",src:e.image,mode:"aspectFill"},null,8,["src"])):(b(),c(a,{key:1,class:"venue-thumb ph-img"})),w(a,{class:"venue-info"},{default:i(()=>[w(t,{class:"venue-name"},{default:i(()=>[j(F(e.name),1)]),_:2},1024),e.venue_type||e.ticket_type?(b(),c(a,{key:0,class:"venue-meta"},{default:i(()=>[e.venue_type?(b(),c(t,{key:0,class:"venue-type-pill"},{default:i(()=>[j(F(ce(e.venue_type)||e.venue_type),1)]),_:2},1024)):M("",!0),e.ticket_type?(b(),c(t,{key:1,class:T(["venue-ticket-pill","paid"===e.ticket_type?"paid":"free"])},{default:i(()=>[j(F(ie(e.ticket_type)),1)]),_:2},1032,["class"])):M("",!0)]),_:2},1024)):M("",!0),w(t,{class:"venue-addr"},{default:i(()=>[j(F(e.address||"-"),1)]),_:2},1024),w(t,{class:"venue-dist"},{default:i(()=>[j(F(he(e)),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["onClick"]))),128)),me.value.length?M("",!0):(b(),c(a,{key:0,class:"empty-tip"},{default:i(()=>[j("暂无符合条件的场馆")]),_:1}))]),_:1}))]),_:1}),w(a,{class:"section"},{default:i(()=>[w(a,{class:"sec-head"},{default:i(()=>[w(a,{class:"sec-bar"}),w(t,{class:"sec-title"},{default:i(()=>[j("热门活动")]),_:1}),w(t,{class:"sec-more",onClick:Se},{default:i(()=>[j("更多 >")]),_:1})]),_:1}),w(o,{"scroll-x":"",class:"act-scroll","show-scrollbar":!1,"enable-flex":!0},{default:i(()=>[w(a,{class:"act-scroll-row"},{default:i(()=>{var e;return[(b(!0),I(S,null,$((null==(e=O.value)?void 0:e.hot_activities)??[],e=>(b(),c(a,{key:e.id,class:"act-card",onClick:l=>{return a=e.id,void z({url:`/pages/activity/detail?id=${a}`});var a}},{default:i(()=>[w(a,{class:"act-img-wrap"},{default:i(()=>[e.image?(b(),c(u,{key:0,class:"act-img",src:e.image,mode:"aspectFill"},null,8,["src"])):(b(),c(a,{key:1,class:"act-img-ph"})),w(a,{class:T(["act-book-badge",{"is-bookable":Le(e)}])},{default:i(()=>[w(t,{class:T(["act-book-text",{"is-bookable":Le(e)}])},{default:i(()=>[j(F(Te(e)),1)]),_:2},1032,["class"])]),_:2},1032,["class"])]),_:2},1024),w(a,{class:"act-body"},{default:i(()=>[w(t,{class:"act-title"},{default:i(()=>[j(F(e.title),1)]),_:2},1024),w(a,{class:"act-tags"},{default:i(()=>[(b(!0),I(S,null,$((e.tags||[]).slice(0,4),(l,a)=>(b(),c(t,{key:"tag-"+e.id+"-"+a,class:"act-tag-chip"},{default:i(()=>[j(F(l),1)]),_:2},1024))),128))]),_:2},1024),w(t,{class:"act-meta"},{default:i(()=>[j(F(V(G)(e.start_at,e.end_at)),1)]),_:2},1024),w(t,{class:"act-meta"},{default:i(()=>[j(F(e.venue_name||e.address||"苏州"),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]}),_:1})]),_:1})]),_:1}),w(a,{class:"section"},{default:i(()=>{var e;return[w(a,{class:"sec-head"},{default:i(()=>[w(a,{class:"sec-bar"}),w(t,{class:"sec-title"},{default:i(()=>[j("苏州市科普研学线路")]),_:1}),w(t,{class:"sec-more",onClick:$e},{default:i(()=>[j("更多 >")]),_:1})]),_:1}),(b(!0),I(S,null,$((null==(e=O.value)?void 0:e.study_tours)??[],e=>(b(),c(a,{key:e.id,class:"tour-card",onClick:l=>{return a=e.id,void z({url:`/pages/study-tour/detail?id=${a}`});var a}},{default:i(()=>[w(a,{class:"tour-img-wrap"},{default:i(()=>[e.cover_image?(b(),c(u,{key:0,class:"tour-img",src:e.cover_image,mode:"aspectFill"},null,8,["src"])):(b(),c(a,{key:1,class:"tour-img tour-ph"})),w(a,{class:"tour-overlay-title-wrap"},{default:i(()=>[w(t,{class:"tour-overlay-title"},{default:i(()=>[j(F(e.name),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),w(a,{class:"tour-body"},{default:i(()=>{var l;return[w(t,{class:"tour-title"},{default:i(()=>[j(F(e.name),1)]),_:2},1024),w(a,{class:"tour-stops-timeline"},{default:i(()=>[(b(!0),I(S,null,$(e.venue_names,(l,s)=>(b(),c(a,{key:"v-"+e.id+"-"+s,class:"tour-stop-row"},{default:i(()=>[w(a,{class:"tour-timeline-axis"},{default:i(()=>[w(a,{class:"tour-dot-cell"},{default:i(()=>[w(a,{class:"tour-tl-dot"})]),_:1}),s[j(F(l),1)]),_:2},1024)]),_:2},1024))),128))]),_:2},1024),(null==(l=e.tags)?void 0:l.length)?(b(),c(a,{key:0,class:"tour-tags-row"},{default:i(()=>[(b(!0),I(S,null,$(e.tags,(l,a)=>(b(),c(t,{key:"t-"+e.id+"-"+a,class:"tour-tag"},{default:i(()=>[j(F(l),1)]),_:2},1024))),128))]),_:2},1024)):M("",!0)]}),_:2},1024)]),_:2},1032,["onClick"]))),128))]}),_:1}),w(a,{class:"bottom-safe"}),U.value?(b(),c(a,{key:0,class:"loading-mask"},{default:i(()=>[j("加载中...")]),_:1})):M("",!0)]),_:1})}}}),[["__scopeId","data-v-fc20c157"]]);export{O as default}; diff --git a/public/h5/assets/pages-map-index.i9LbiHIa.js b/public/h5/assets/pages-map-index.BfbKrIEP.js similarity index 97% rename from public/h5/assets/pages-map-index.i9LbiHIa.js rename to public/h5/assets/pages-map-index.BfbKrIEP.js index 63ee0eb..62b39e7 100644 --- a/public/h5/assets/pages-map-index.i9LbiHIa.js +++ b/public/h5/assets/pages-map-index.BfbKrIEP.js @@ -1 +1 @@ -import{d as e,r as a,c as l,o as s,b as t,e as u,p as r,v as c,t as i,u as n,I as o,E as d,G as v,x as m,y as f,z as p,A as _,F as b,B as g,H as y,J as k,K as h}from"./index-q6pkZS4X.js";import{g as x,a as j}from"./content.4AgB0jqB.js";import{s as w}from"./search.BJnl3YRK.js";import{d as F}from"./down.BCKq9i8s.js";import{h as N,f as C}from"./geo.BHVFNtB7.js";import{_ as I}from"./_plugin-vue_export-helper.BCo6x5W8.js";const $=I(e({__name:"index",setup(e){const I=a([]),$=a(null),L=a(""),V=a("全部区域"),z=a(""),A=a("全部类型"),B=a(""),E=a("收费类型"),G=a(""),H=a(null),J=l(()=>{var e;return[{label:"全部区域",value:""},...((null==(e=$.value)?void 0:e.district)??[]).map(e=>({label:e.label,value:e.value}))]}),K=l(()=>{var e;return[{label:"全部类型",value:""},...((null==(e=$.value)?void 0:e.venue_type)??[]).map(e=>({label:e.label,value:e.value}))]}),P=l(()=>{var e;return[{label:"收费类型",value:""},...((null==(e=$.value)?void 0:e.ticket_type)??[]).map(e=>({label:e.label,value:e.value}))]}),U=l(()=>{const e=L.value.trim();return I.value.filter(a=>{if(z.value&&(a.district||"")!==z.value)return!1;if(B.value&&(a.venue_type||"")!==B.value)return!1;if("free"===G.value&&"free"!==(a.ticket_type||""))return!1;if("paid"===G.value&&"paid"!==(a.ticket_type||""))return!1;if(e){if(!`${a.name||""}${a.address||""}`.includes(e))return!1}return!0})}),q=l(()=>{const e=[...U.value],a=H.value;return a?e.sort((e,l)=>{const s=Number(e.lat),t=Number(e.lng),u=Number(l.lat),r=Number(l.lng);if(!s||!t)return 1;if(!u||!r)return-1;return N(a.lat,a.lng,s,t)-N(a.lat,a.lng,u,r)}):e});function D(e){if("district"===e){const e=J.value;k({itemList:e.map(e=>e.label),success:a=>{const l=e[a.tapIndex];V.value=l.label,z.value=l.value}})}else if("type"===e){const e=K.value;k({itemList:e.map(e=>e.label),success:a=>{const l=e[a.tapIndex];A.value=l.label,B.value=l.value}})}else{const e=P.value;k({itemList:e.map(e=>e.label),success:a=>{const l=e[a.tapIndex];E.value=l.label,G.value=l.value}})}}function M(e){const a=H.value;if(!a)return"距离 --";const l=Number(e.lat),s=Number(e.lng);if(!l||!s)return"距离 --";const t=N(a.lat,a.lng,l,s);return`距您 ${C(t)}`}return s(()=>{!async function(){const[e,a]=await Promise.all([x(),j()]);$.value=e,I.value=a||[]}(),r({type:"gcj02",success:e=>{H.value={lat:e.latitude,lng:e.longitude}},fail:()=>{H.value=null}})}),(e,a)=>{const l=o,s=d,r=c,k=m;return i(),t(r,{class:"page"},{default:u(()=>[n(r,{class:"map-section"},{default:u(()=>[n(r,{class:"toolbar"},{default:u(()=>[n(r,{class:"search-wrap"},{default:u(()=>[n(l,{modelValue:L.value,"onUpdate:modelValue":a[0]||(a[0]=e=>L.value=e),class:"search-input",placeholder:"请输入你要搜索的内容","placeholder-class":"ph"},null,8,["modelValue"]),n(s,{class:"search-icon-img",src:v(w),mode:"aspectFit"},null,8,["src"])]),_:1})]),_:1}),n(r,{class:"filters"},{default:u(()=>[n(r,{class:"f-item",onClick:a[1]||(a[1]=e=>D("district"))},{default:u(()=>[n(k,{class:"f-item-text"},{default:u(()=>[f(p(V.value),1)]),_:1}),n(s,{class:"f-item-arrow",src:v(F),mode:"aspectFit"},null,8,["src"])]),_:1}),n(r,{class:"f-item",onClick:a[2]||(a[2]=e=>D("type"))},{default:u(()=>[n(k,{class:"f-item-text"},{default:u(()=>[f(p(A.value),1)]),_:1}),n(s,{class:"f-item-arrow",src:v(F),mode:"aspectFit"},null,8,["src"])]),_:1}),n(r,{class:"f-item",onClick:a[3]||(a[3]=e=>D("ticket"))},{default:u(()=>[n(k,{class:"f-item-text"},{default:u(()=>[f(p(E.value),1)]),_:1}),n(s,{class:"f-item-arrow",src:v(F),mode:"aspectFit"},null,8,["src"])]),_:1})]),_:1})]),_:1}),n(r,{class:"list"},{default:u(()=>[(i(!0),_(b,null,g(q.value,e=>(i(),t(r,{key:e.id,class:"item",onClick:a=>{return l=e.id,void h({url:`/pages/venue/detail?id=${l}`});var l}},{default:u(()=>[e.cover_image?(i(),t(s,{key:0,class:"img",src:e.cover_image,mode:"aspectFill"},null,8,["src"])):(i(),t(r,{key:1,class:"img placeholder"})),n(r,{class:"body"},{default:u(()=>[n(r,{class:"name"},{default:u(()=>[f(p(e.name),1)]),_:2},1024),n(r,{class:"addr"},{default:u(()=>[f(p(e.address||"-"),1)]),_:2},1024),n(r,{class:"dist"},{default:u(()=>[f(p(M(e)),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["onClick"]))),128)),q.value.length?y("",!0):(i(),t(r,{key:0,class:"empty-tip"},{default:u(()=>[f("暂无符合条件的场馆")]),_:1}))]),_:1})]),_:1})}}}),[["__scopeId","data-v-ba778cf3"]]);export{$ as default}; +import{d as e,r as a,c as l,o as s,b as t,e as u,p as r,v as c,t as i,u as n,I as o,E as d,G as v,x as m,y as f,z as p,A as _,F as b,B as g,H as y,J as k,K as h}from"./index-BznAv2H5.js";import{g as x,a as j}from"./content.IclVJQGc.js";import{s as w}from"./search.BJnl3YRK.js";import{d as F}from"./down.BCKq9i8s.js";import{h as N,f as C}from"./geo.BHVFNtB7.js";import{_ as I}from"./_plugin-vue_export-helper.BCo6x5W8.js";const $=I(e({__name:"index",setup(e){const I=a([]),$=a(null),L=a(""),V=a("全部区域"),z=a(""),A=a("全部类型"),B=a(""),E=a("收费类型"),G=a(""),H=a(null),J=l(()=>{var e;return[{label:"全部区域",value:""},...((null==(e=$.value)?void 0:e.district)??[]).map(e=>({label:e.label,value:e.value}))]}),K=l(()=>{var e;return[{label:"全部类型",value:""},...((null==(e=$.value)?void 0:e.venue_type)??[]).map(e=>({label:e.label,value:e.value}))]}),P=l(()=>{var e;return[{label:"收费类型",value:""},...((null==(e=$.value)?void 0:e.ticket_type)??[]).map(e=>({label:e.label,value:e.value}))]}),U=l(()=>{const e=L.value.trim();return I.value.filter(a=>{if(z.value&&(a.district||"")!==z.value)return!1;if(B.value&&(a.venue_type||"")!==B.value)return!1;if("free"===G.value&&"free"!==(a.ticket_type||""))return!1;if("paid"===G.value&&"paid"!==(a.ticket_type||""))return!1;if(e){if(!`${a.name||""}${a.address||""}`.includes(e))return!1}return!0})}),q=l(()=>{const e=[...U.value],a=H.value;return a?e.sort((e,l)=>{const s=Number(e.lat),t=Number(e.lng),u=Number(l.lat),r=Number(l.lng);if(!s||!t)return 1;if(!u||!r)return-1;return N(a.lat,a.lng,s,t)-N(a.lat,a.lng,u,r)}):e});function D(e){if("district"===e){const e=J.value;k({itemList:e.map(e=>e.label),success:a=>{const l=e[a.tapIndex];V.value=l.label,z.value=l.value}})}else if("type"===e){const e=K.value;k({itemList:e.map(e=>e.label),success:a=>{const l=e[a.tapIndex];A.value=l.label,B.value=l.value}})}else{const e=P.value;k({itemList:e.map(e=>e.label),success:a=>{const l=e[a.tapIndex];E.value=l.label,G.value=l.value}})}}function M(e){const a=H.value;if(!a)return"距离 --";const l=Number(e.lat),s=Number(e.lng);if(!l||!s)return"距离 --";const t=N(a.lat,a.lng,l,s);return`距您 ${C(t)}`}return s(()=>{!async function(){const[e,a]=await Promise.all([x(),j()]);$.value=e,I.value=a||[]}(),r({type:"gcj02",success:e=>{H.value={lat:e.latitude,lng:e.longitude}},fail:()=>{H.value=null}})}),(e,a)=>{const l=o,s=d,r=c,k=m;return i(),t(r,{class:"page"},{default:u(()=>[n(r,{class:"map-section"},{default:u(()=>[n(r,{class:"toolbar"},{default:u(()=>[n(r,{class:"search-wrap"},{default:u(()=>[n(l,{modelValue:L.value,"onUpdate:modelValue":a[0]||(a[0]=e=>L.value=e),class:"search-input",placeholder:"请输入你要搜索的内容","placeholder-class":"ph"},null,8,["modelValue"]),n(s,{class:"search-icon-img",src:v(w),mode:"aspectFit"},null,8,["src"])]),_:1})]),_:1}),n(r,{class:"filters"},{default:u(()=>[n(r,{class:"f-item",onClick:a[1]||(a[1]=e=>D("district"))},{default:u(()=>[n(k,{class:"f-item-text"},{default:u(()=>[f(p(V.value),1)]),_:1}),n(s,{class:"f-item-arrow",src:v(F),mode:"aspectFit"},null,8,["src"])]),_:1}),n(r,{class:"f-item",onClick:a[2]||(a[2]=e=>D("type"))},{default:u(()=>[n(k,{class:"f-item-text"},{default:u(()=>[f(p(A.value),1)]),_:1}),n(s,{class:"f-item-arrow",src:v(F),mode:"aspectFit"},null,8,["src"])]),_:1}),n(r,{class:"f-item",onClick:a[3]||(a[3]=e=>D("ticket"))},{default:u(()=>[n(k,{class:"f-item-text"},{default:u(()=>[f(p(E.value),1)]),_:1}),n(s,{class:"f-item-arrow",src:v(F),mode:"aspectFit"},null,8,["src"])]),_:1})]),_:1})]),_:1}),n(r,{class:"list"},{default:u(()=>[(i(!0),_(b,null,g(q.value,e=>(i(),t(r,{key:e.id,class:"item",onClick:a=>{return l=e.id,void h({url:`/pages/venue/detail?id=${l}`});var l}},{default:u(()=>[e.cover_image?(i(),t(s,{key:0,class:"img",src:e.cover_image,mode:"aspectFill"},null,8,["src"])):(i(),t(r,{key:1,class:"img placeholder"})),n(r,{class:"body"},{default:u(()=>[n(r,{class:"name"},{default:u(()=>[f(p(e.name),1)]),_:2},1024),n(r,{class:"addr"},{default:u(()=>[f(p(e.address||"-"),1)]),_:2},1024),n(r,{class:"dist"},{default:u(()=>[f(p(M(e)),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["onClick"]))),128)),q.value.length?y("",!0):(i(),t(r,{key:0,class:"empty-tip"},{default:u(()=>[f("暂无符合条件的场馆")]),_:1}))]),_:1})]),_:1})}}}),[["__scopeId","data-v-ba778cf3"]]);export{$ as default}; diff --git a/public/h5/assets/pages-mine-index.CRh-LTcQ.js b/public/h5/assets/pages-mine-index.CBt6SqwA.js similarity index 92% rename from public/h5/assets/pages-mine-index.CRh-LTcQ.js rename to public/h5/assets/pages-mine-index.CBt6SqwA.js index 1e7349f..51109a7 100644 --- a/public/h5/assets/pages-mine-index.CRh-LTcQ.js +++ b/public/h5/assets/pages-mine-index.CBt6SqwA.js @@ -1 +1 @@ -import{d as a,r as e,Q as l,b as s,e as n,l as u,k as t,v as r,t as o,u as c,E as i,y as d,z as f,x as _,K as p}from"./index-q6pkZS4X.js";import{g as v,l as m}from"./localProfile.Us3dy1DW.js";import{_ as h}from"./_plugin-vue_export-helper.BCo6x5W8.js";const k=h(a({__name:"index",setup(a){const h=e("游客"),k=e(""),g=e("");function x(a){return a&&11===a.length?`${a.slice(0,3)}****${a.slice(7)}`:a||""}function y(){p({url:"/pages/mine/profile"})}function j(){p({url:"/pages/mine/orders"})}return l(()=>{!async function(){var a;if(u(t.accessToken))try{const a=await v();return h.value=(a.real_name||a.nickname||"用户").trim()||"用户",k.value=a.phone?x(a.phone):"",void(g.value=a.avatar_url||"")}catch{}const e=m();h.value=(null==(a=null==e?void 0:e.real_name)?void 0:a.trim())||"游客",k.value=(null==e?void 0:e.phone)?x(e.phone):"",g.value=(null==e?void 0:e.avatar_url)||""}()}),(a,e)=>{const l=i,u=r,t=_;return o(),s(u,{class:"page"},{default:n(()=>[c(u,{class:"header"},{default:n(()=>[c(u,{class:"profile"},{default:n(()=>[g.value?(o(),s(l,{key:0,class:"avatar",src:g.value,mode:"aspectFill"},null,8,["src"])):(o(),s(u,{key:1,class:"avatar placeholder"})),c(u,{class:"profile-info"},{default:n(()=>[c(u,{class:"name"},{default:n(()=>[d(f(h.value),1)]),_:1}),c(u,{class:"phone"},{default:n(()=>[d(f(k.value||"完善信息方便预约"),1)]),_:1})]),_:1})]),_:1})]),_:1}),c(u,{class:"panel"},{default:n(()=>[c(u,{class:"menu-item",onClick:y},{default:n(()=>[c(t,null,{default:n(()=>[d("我的信息")]),_:1}),c(t,null,{default:n(()=>[d(">")]),_:1})]),_:1}),c(u,{class:"menu-item",onClick:j},{default:n(()=>[c(t,null,{default:n(()=>[d("预约记录")]),_:1}),c(t,null,{default:n(()=>[d(">")]),_:1})]),_:1})]),_:1})]),_:1})}}}),[["__scopeId","data-v-e38cae19"]]);export{k as default}; +import{d as a,r as e,Q as l,b as s,e as n,l as u,k as t,v as r,t as o,u as c,E as i,y as d,z as f,x as _,K as p}from"./index-BznAv2H5.js";import{g as v,l as m}from"./localProfile.DvYQ1Tv3.js";import{_ as h}from"./_plugin-vue_export-helper.BCo6x5W8.js";const k=h(a({__name:"index",setup(a){const h=e("游客"),k=e(""),g=e("");function x(a){return a&&11===a.length?`${a.slice(0,3)}****${a.slice(7)}`:a||""}function y(){p({url:"/pages/mine/profile"})}function j(){p({url:"/pages/mine/orders"})}return l(()=>{!async function(){var a;if(u(t.accessToken))try{const a=await v();return h.value=(a.real_name||a.nickname||"用户").trim()||"用户",k.value=a.phone?x(a.phone):"",void(g.value=a.avatar_url||"")}catch{}const e=m();h.value=(null==(a=null==e?void 0:e.real_name)?void 0:a.trim())||"游客",k.value=(null==e?void 0:e.phone)?x(e.phone):"",g.value=(null==e?void 0:e.avatar_url)||""}()}),(a,e)=>{const l=i,u=r,t=_;return o(),s(u,{class:"page"},{default:n(()=>[c(u,{class:"header"},{default:n(()=>[c(u,{class:"profile"},{default:n(()=>[g.value?(o(),s(l,{key:0,class:"avatar",src:g.value,mode:"aspectFill"},null,8,["src"])):(o(),s(u,{key:1,class:"avatar placeholder"})),c(u,{class:"profile-info"},{default:n(()=>[c(u,{class:"name"},{default:n(()=>[d(f(h.value),1)]),_:1}),c(u,{class:"phone"},{default:n(()=>[d(f(k.value||"完善信息方便预约"),1)]),_:1})]),_:1})]),_:1})]),_:1}),c(u,{class:"panel"},{default:n(()=>[c(u,{class:"menu-item",onClick:y},{default:n(()=>[c(t,null,{default:n(()=>[d("我的信息")]),_:1}),c(t,null,{default:n(()=>[d(">")]),_:1})]),_:1}),c(u,{class:"menu-item",onClick:j},{default:n(()=>[c(t,null,{default:n(()=>[d("预约记录")]),_:1}),c(t,null,{default:n(()=>[d(">")]),_:1})]),_:1})]),_:1})]),_:1})}}}),[["__scopeId","data-v-e38cae19"]]);export{k as default}; diff --git a/public/h5/assets/pages-mine-orders.Cu5JmB-z.js b/public/h5/assets/pages-mine-orders.1ISf7OpF.js similarity index 96% rename from public/h5/assets/pages-mine-orders.Cu5JmB-z.js rename to public/h5/assets/pages-mine-orders.1ISf7OpF.js index a214b70..c77df18 100644 --- a/public/h5/assets/pages-mine-orders.Cu5JmB-z.js +++ b/public/h5/assets/pages-mine-orders.1ISf7OpF.js @@ -1 +1 @@ -import{d as a,r as e,c as l,o as t,b as s,e as i,l as n,k as c,f as u,v as o,t as d,u as r,y as v,I as f,R as _,z as p,D as m,A as g,F as k,B as h,G as y,C,K as b,j as $}from"./index-q6pkZS4X.js";import{d as j,e as w}from"./content.4AgB0jqB.js";import{f as x,a as I}from"./datetime.DReAHQ1x.js";import{_ as V}from"./_plugin-vue_export-helper.BCo6x5W8.js";const R=V(a({__name:"orders",setup(a){const V=e(""),R=e([]),T=e(!1),U=e("all"),z=l(()=>"all"===U.value?R.value:R.value.filter(a=>a.status===U.value));function A(){return!!n(c.accessToken)}function B(a){return"pending"===a?"待核销":"verified"===a?"已核销":"cancelled"===a?"已取消":a||"-"}async function D(){const a=/^1\d{10}$/.test(V.value);if(a||A()){T.value=!0;try{R.value=await j(a?V.value:void 0)}catch(e){u({title:(null==e?void 0:e.message)||"加载失败",icon:"none"})}finally{T.value=!1}}else u({title:"请输入手机号,或先通过微信登录",icon:"none"})}return t(()=>{A()&&D()}),(a,e)=>{const l=o,t=f,n=_;return d(),s(l,{class:"page"},{default:i(()=>[r(l,{class:"card"},{default:i(()=>[r(l,{class:"title"},{default:i(()=>[v("我的活动预约")]),_:1}),r(l,{class:"sub"},{default:i(()=>[v("微信登录后自动展示绑定订单;也可输入预约手机号查询。")]),_:1}),r(l,{class:"row"},{default:i(()=>[r(t,{modelValue:V.value,"onUpdate:modelValue":e[0]||(e[0]=a=>V.value=a),class:"ipt",type:"number",maxlength:"11",placeholder:"预约手机号(可选,与登录二选一)"},null,8,["modelValue"]),r(n,{class:"btn",onClick:D},{default:i(()=>[v(p(T.value?"查询中":"查询"),1)]),_:1})]),_:1}),r(l,{class:"filters"},{default:i(()=>[r(l,{class:m(["chip",{active:"all"===U.value}]),onClick:e[1]||(e[1]=a=>U.value="all")},{default:i(()=>[v("全部")]),_:1},8,["class"]),r(l,{class:m(["chip",{active:"pending"===U.value}]),onClick:e[2]||(e[2]=a=>U.value="pending")},{default:i(()=>[v("待核销")]),_:1},8,["class"]),r(l,{class:m(["chip",{active:"verified"===U.value}]),onClick:e[3]||(e[3]=a=>U.value="verified")},{default:i(()=>[v("已核销")]),_:1},8,["class"]),r(l,{class:m(["chip",{active:"cancelled"===U.value}]),onClick:e[4]||(e[4]=a=>U.value="cancelled")},{default:i(()=>[v("已取消")]),_:1},8,["class"])]),_:1})]),_:1}),(d(!0),g(k,null,h(z.value,a=>(d(),s(l,{key:a.id,class:"order-card"},{default:i(()=>[r(l,{class:"order-top"},{default:i(()=>{return[r(l,{class:"t"},{default:i(()=>{var e;return[v(p((null==(e=a.activity)?void 0:e.title)||"-"),1)]}),_:2},1024),r(l,{class:m(["status",(e=a.status,"pending"===e?"pending":"verified"===e?"verified":"cancelled")])},{default:i(()=>[v(p(B(a.status)),1)]),_:2},1032,["class"])];var e}),_:2},1024),r(l,{class:"line"},{default:i(()=>{var e;return[v("订单信息:"+p(y(x)(null==(e=a.activity_day)?void 0:e.activity_date))+" | "+p(a.ticket_count||1)+"人",1)]}),_:2},1024),r(l,{class:"line"},{default:i(()=>[v("联系人:"+p(a.visitor_name||"-")+" | "+p(a.visitor_phone||"-"),1)]),_:2},1024),r(l,{class:"line"},{default:i(()=>[v("下单时间:"+p(y(I)(a.created_at)),1)]),_:2},1024),r(l,{class:"actions"},{default:i(()=>[r(n,{class:"btn-light mini",disabled:"pending"!==a.status,onClick:C(e=>async function(a){const e=/^1\d{10}$/.test(V.value);if(!e&&!A())return;if((await $({title:"确认取消预约",content:"取消后将释放该日期名额,是否继续?",confirmText:"确认取消",confirmColor:"#ff7d00"})).confirm)try{await w(a,e?V.value:void 0),u({title:"取消成功",icon:"success"}),await D()}catch(l){u({title:(null==l?void 0:l.message)||"取消失败",icon:"none"})}}(a.id),["stop"])},{default:i(()=>[v("取消")]),_:2},1032,["disabled","onClick"]),r(n,{class:"btn-main mini",onClick:C(e=>function(a){const e=/^1\d{10}$/.test(V.value);if(!e&&!A())return void u({title:"请输入手机号或先登录",icon:"none"});const l=e?`&phone=${encodeURIComponent(V.value)}`:"";b({url:`/pages/mine/reservation-detail?id=${a}${l}`})}(a.id),["stop"])},{default:i(()=>[v("查看详情")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024))),128))]),_:1})}}}),[["__scopeId","data-v-a79d8567"]]);export{R as default}; +import{d as a,r as e,c as l,o as t,b as s,e as i,l as n,k as c,f as u,v as o,t as d,u as r,y as v,I as f,R as _,z as p,D as m,A as g,F as k,B as h,G as y,C,K as b,j as $}from"./index-BznAv2H5.js";import{d as j,e as w}from"./content.IclVJQGc.js";import{f as x,a as I}from"./datetime.DReAHQ1x.js";import{_ as V}from"./_plugin-vue_export-helper.BCo6x5W8.js";const R=V(a({__name:"orders",setup(a){const V=e(""),R=e([]),T=e(!1),U=e("all"),z=l(()=>"all"===U.value?R.value:R.value.filter(a=>a.status===U.value));function A(){return!!n(c.accessToken)}function B(a){return"pending"===a?"待核销":"verified"===a?"已核销":"cancelled"===a?"已取消":a||"-"}async function D(){const a=/^1\d{10}$/.test(V.value);if(a||A()){T.value=!0;try{R.value=await j(a?V.value:void 0)}catch(e){u({title:(null==e?void 0:e.message)||"加载失败",icon:"none"})}finally{T.value=!1}}else u({title:"请输入手机号,或先通过微信登录",icon:"none"})}return t(()=>{A()&&D()}),(a,e)=>{const l=o,t=f,n=_;return d(),s(l,{class:"page"},{default:i(()=>[r(l,{class:"card"},{default:i(()=>[r(l,{class:"title"},{default:i(()=>[v("我的活动预约")]),_:1}),r(l,{class:"sub"},{default:i(()=>[v("微信登录后自动展示绑定订单;也可输入预约手机号查询。")]),_:1}),r(l,{class:"row"},{default:i(()=>[r(t,{modelValue:V.value,"onUpdate:modelValue":e[0]||(e[0]=a=>V.value=a),class:"ipt",type:"number",maxlength:"11",placeholder:"预约手机号(可选,与登录二选一)"},null,8,["modelValue"]),r(n,{class:"btn",onClick:D},{default:i(()=>[v(p(T.value?"查询中":"查询"),1)]),_:1})]),_:1}),r(l,{class:"filters"},{default:i(()=>[r(l,{class:m(["chip",{active:"all"===U.value}]),onClick:e[1]||(e[1]=a=>U.value="all")},{default:i(()=>[v("全部")]),_:1},8,["class"]),r(l,{class:m(["chip",{active:"pending"===U.value}]),onClick:e[2]||(e[2]=a=>U.value="pending")},{default:i(()=>[v("待核销")]),_:1},8,["class"]),r(l,{class:m(["chip",{active:"verified"===U.value}]),onClick:e[3]||(e[3]=a=>U.value="verified")},{default:i(()=>[v("已核销")]),_:1},8,["class"]),r(l,{class:m(["chip",{active:"cancelled"===U.value}]),onClick:e[4]||(e[4]=a=>U.value="cancelled")},{default:i(()=>[v("已取消")]),_:1},8,["class"])]),_:1})]),_:1}),(d(!0),g(k,null,h(z.value,a=>(d(),s(l,{key:a.id,class:"order-card"},{default:i(()=>[r(l,{class:"order-top"},{default:i(()=>{return[r(l,{class:"t"},{default:i(()=>{var e;return[v(p((null==(e=a.activity)?void 0:e.title)||"-"),1)]}),_:2},1024),r(l,{class:m(["status",(e=a.status,"pending"===e?"pending":"verified"===e?"verified":"cancelled")])},{default:i(()=>[v(p(B(a.status)),1)]),_:2},1032,["class"])];var e}),_:2},1024),r(l,{class:"line"},{default:i(()=>{var e;return[v("订单信息:"+p(y(x)(null==(e=a.activity_day)?void 0:e.activity_date))+" | "+p(a.ticket_count||1)+"人",1)]}),_:2},1024),r(l,{class:"line"},{default:i(()=>[v("联系人:"+p(a.visitor_name||"-")+" | "+p(a.visitor_phone||"-"),1)]),_:2},1024),r(l,{class:"line"},{default:i(()=>[v("下单时间:"+p(y(I)(a.created_at)),1)]),_:2},1024),r(l,{class:"actions"},{default:i(()=>[r(n,{class:"btn-light mini",disabled:"pending"!==a.status,onClick:C(e=>async function(a){const e=/^1\d{10}$/.test(V.value);if(!e&&!A())return;if((await $({title:"确认取消预约",content:"取消后将释放该日期名额,是否继续?",confirmText:"确认取消",confirmColor:"#ff7d00"})).confirm)try{await w(a,e?V.value:void 0),u({title:"取消成功",icon:"success"}),await D()}catch(l){u({title:(null==l?void 0:l.message)||"取消失败",icon:"none"})}}(a.id),["stop"])},{default:i(()=>[v("取消")]),_:2},1032,["disabled","onClick"]),r(n,{class:"btn-main mini",onClick:C(e=>function(a){const e=/^1\d{10}$/.test(V.value);if(!e&&!A())return void u({title:"请输入手机号或先登录",icon:"none"});const l=e?`&phone=${encodeURIComponent(V.value)}`:"";b({url:`/pages/mine/reservation-detail?id=${a}${l}`})}(a.id),["stop"])},{default:i(()=>[v("查看详情")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024))),128))]),_:1})}}}),[["__scopeId","data-v-a79d8567"]]);export{R as default}; diff --git a/public/h5/assets/pages-mine-profile.b6h3Ij4U.js b/public/h5/assets/pages-mine-profile.CPS6ldDl.js similarity index 96% rename from public/h5/assets/pages-mine-profile.b6h3Ij4U.js rename to public/h5/assets/pages-mine-profile.CPS6ldDl.js index 9ae5f37..6c100bf 100644 --- a/public/h5/assets/pages-mine-profile.b6h3Ij4U.js +++ b/public/h5/assets/pages-mine-profile.CPS6ldDl.js @@ -1 +1 @@ -import{d as a,r as e,o as l,b as s,e as t,l as u,k as n,v as r,t as c,u as o,x as d,y as i,E as v,z as _,I as p,R as m,f,T as h,U as y,V as b,W as k,X as V}from"./index-q6pkZS4X.js";import{g,l as w,u as x,s as T}from"./localProfile.Us3dy1DW.js";import{_ as U}from"./_plugin-vue_export-helper.BCo6x5W8.js";const j=U(a({__name:"profile",setup(a){const U=e(!0),j=e(!1),C=e(!1),z=e({real_name:"",phone:"",id_card:"",avatar_url:""});function F(a){z.value.real_name=a.real_name||"",z.value.phone=a.phone||"",z.value.id_card=a.id_card||"",z.value.avatar_url=a.avatar_url||""}function I(){C.value?h({count:1,sizeType:["compressed"],sourceType:["album","camera"],success:async a=>{const e=a.tempFilePaths[0];if(e)try{y({title:"上传中"});const{url:a}=await b(e);z.value.avatar_url=a}catch(l){f({title:(null==l?void 0:l.message)||"上传失败",icon:"none"})}finally{k()}}}):f({title:"请先通过微信登录后再上传头像",icon:"none"})}async function P(){if(z.value.real_name.trim())if(/^1\d{10}$/.test(z.value.phone.trim()))if(!z.value.id_card||/^\d{17}[\dXx]$/.test(z.value.id_card.trim())){j.value=!0;try{const a={real_name:z.value.real_name.trim(),phone:z.value.phone.trim(),id_card:z.value.id_card.trim()||void 0,avatar_url:z.value.avatar_url||void 0};C.value&&await x(a),T({real_name:a.real_name,phone:a.phone,id_card:a.id_card,avatar_url:a.avatar_url}),f({title:"保存成功",icon:"success"})}catch(a){f({title:(null==a?void 0:a.message)||"保存失败",icon:"none"})}finally{j.value=!1}}else f({title:"身份证号格式不正确",icon:"none"});else f({title:"请填写11位手机号",icon:"none"});else f({title:"请填写姓名",icon:"none"})}function X(){V()}return l(()=>{!async function(){U.value=!0,C.value=!!u(n.accessToken);try{if(C.value)try{const a=await g();z.value.real_name=a.real_name||"",z.value.phone=a.phone||"",z.value.id_card=a.id_card||"",z.value.avatar_url=a.avatar_url||""}catch{const a=w();a&&F(a)}else{const a=w();a&&F(a)}}finally{U.value=!1}}()}),(a,e)=>{const l=d,u=r,n=v,f=p,h=m;return c(),s(u,{class:"page"},{default:t(()=>[o(u,{class:"nav"},{default:t(()=>[o(l,{class:"back",onClick:X},{default:t(()=>[i("‹")]),_:1}),o(l,{class:"nav-title"},{default:t(()=>[i("我的信息")]),_:1}),o(u,{class:"nav-placeholder"})]),_:1}),U.value?(c(),s(u,{key:0,class:"loading"},{default:t(()=>[i("加载中…")]),_:1})):(c(),s(u,{key:1,class:"content"},{default:t(()=>[o(u,{class:"avatar-block"},{default:t(()=>[o(u,{class:"avatar-wrap",onClick:I},{default:t(()=>[z.value.avatar_url?(c(),s(n,{key:0,class:"avatar",src:z.value.avatar_url,mode:"aspectFill"},null,8,["src"])):(c(),s(u,{key:1,class:"avatar placeholder"})),o(u,{class:"avatar-tip"},{default:t(()=>[i(_(C.value?"点击更换头像":"登录后可上传头像"),1)]),_:1})]),_:1})]),_:1}),o(u,{class:"card"},{default:t(()=>[o(u,{class:"row"},{default:t(()=>[o(l,{class:"label"},{default:t(()=>[i("姓名")]),_:1}),o(f,{modelValue:z.value.real_name,"onUpdate:modelValue":e[0]||(e[0]=a=>z.value.real_name=a),class:"input",placeholder:"必填","placeholder-class":"ph"},null,8,["modelValue"])]),_:1}),o(u,{class:"row"},{default:t(()=>[o(l,{class:"label"},{default:t(()=>[i("手机号")]),_:1}),o(f,{modelValue:z.value.phone,"onUpdate:modelValue":e[1]||(e[1]=a=>z.value.phone=a),class:"input",type:"number",maxlength:"11",placeholder:"必填","placeholder-class":"ph"},null,8,["modelValue"])]),_:1}),o(u,{class:"row last"},{default:t(()=>[o(l,{class:"label"},{default:t(()=>[i("身份证")]),_:1}),o(f,{modelValue:z.value.id_card,"onUpdate:modelValue":e[2]||(e[2]=a=>z.value.id_card=a),class:"input",maxlength:"18",placeholder:"选填","placeholder-class":"ph"},null,8,["modelValue"])]),_:1})]),_:1}),o(h,{class:"btn",disabled:j.value,onClick:P},{default:t(()=>[i(_(j.value?"保存中…":"保存"),1)]),_:1},8,["disabled"])]),_:1}))]),_:1})}}}),[["__scopeId","data-v-1b7b0015"]]);export{j as default}; +import{d as a,r as e,o as l,b as s,e as t,l as u,k as n,v as r,t as c,u as o,x as d,y as i,E as v,z as _,I as p,R as m,f,T as h,U as y,V as b,W as k,X as V}from"./index-BznAv2H5.js";import{g,l as w,u as x,s as T}from"./localProfile.DvYQ1Tv3.js";import{_ as U}from"./_plugin-vue_export-helper.BCo6x5W8.js";const j=U(a({__name:"profile",setup(a){const U=e(!0),j=e(!1),C=e(!1),z=e({real_name:"",phone:"",id_card:"",avatar_url:""});function F(a){z.value.real_name=a.real_name||"",z.value.phone=a.phone||"",z.value.id_card=a.id_card||"",z.value.avatar_url=a.avatar_url||""}function I(){C.value?h({count:1,sizeType:["compressed"],sourceType:["album","camera"],success:async a=>{const e=a.tempFilePaths[0];if(e)try{y({title:"上传中"});const{url:a}=await b(e);z.value.avatar_url=a}catch(l){f({title:(null==l?void 0:l.message)||"上传失败",icon:"none"})}finally{k()}}}):f({title:"请先通过微信登录后再上传头像",icon:"none"})}async function P(){if(z.value.real_name.trim())if(/^1\d{10}$/.test(z.value.phone.trim()))if(!z.value.id_card||/^\d{17}[\dXx]$/.test(z.value.id_card.trim())){j.value=!0;try{const a={real_name:z.value.real_name.trim(),phone:z.value.phone.trim(),id_card:z.value.id_card.trim()||void 0,avatar_url:z.value.avatar_url||void 0};C.value&&await x(a),T({real_name:a.real_name,phone:a.phone,id_card:a.id_card,avatar_url:a.avatar_url}),f({title:"保存成功",icon:"success"})}catch(a){f({title:(null==a?void 0:a.message)||"保存失败",icon:"none"})}finally{j.value=!1}}else f({title:"身份证号格式不正确",icon:"none"});else f({title:"请填写11位手机号",icon:"none"});else f({title:"请填写姓名",icon:"none"})}function X(){V()}return l(()=>{!async function(){U.value=!0,C.value=!!u(n.accessToken);try{if(C.value)try{const a=await g();z.value.real_name=a.real_name||"",z.value.phone=a.phone||"",z.value.id_card=a.id_card||"",z.value.avatar_url=a.avatar_url||""}catch{const a=w();a&&F(a)}else{const a=w();a&&F(a)}}finally{U.value=!1}}()}),(a,e)=>{const l=d,u=r,n=v,f=p,h=m;return c(),s(u,{class:"page"},{default:t(()=>[o(u,{class:"nav"},{default:t(()=>[o(l,{class:"back",onClick:X},{default:t(()=>[i("‹")]),_:1}),o(l,{class:"nav-title"},{default:t(()=>[i("我的信息")]),_:1}),o(u,{class:"nav-placeholder"})]),_:1}),U.value?(c(),s(u,{key:0,class:"loading"},{default:t(()=>[i("加载中…")]),_:1})):(c(),s(u,{key:1,class:"content"},{default:t(()=>[o(u,{class:"avatar-block"},{default:t(()=>[o(u,{class:"avatar-wrap",onClick:I},{default:t(()=>[z.value.avatar_url?(c(),s(n,{key:0,class:"avatar",src:z.value.avatar_url,mode:"aspectFill"},null,8,["src"])):(c(),s(u,{key:1,class:"avatar placeholder"})),o(u,{class:"avatar-tip"},{default:t(()=>[i(_(C.value?"点击更换头像":"登录后可上传头像"),1)]),_:1})]),_:1})]),_:1}),o(u,{class:"card"},{default:t(()=>[o(u,{class:"row"},{default:t(()=>[o(l,{class:"label"},{default:t(()=>[i("姓名")]),_:1}),o(f,{modelValue:z.value.real_name,"onUpdate:modelValue":e[0]||(e[0]=a=>z.value.real_name=a),class:"input",placeholder:"必填","placeholder-class":"ph"},null,8,["modelValue"])]),_:1}),o(u,{class:"row"},{default:t(()=>[o(l,{class:"label"},{default:t(()=>[i("手机号")]),_:1}),o(f,{modelValue:z.value.phone,"onUpdate:modelValue":e[1]||(e[1]=a=>z.value.phone=a),class:"input",type:"number",maxlength:"11",placeholder:"必填","placeholder-class":"ph"},null,8,["modelValue"])]),_:1}),o(u,{class:"row last"},{default:t(()=>[o(l,{class:"label"},{default:t(()=>[i("身份证")]),_:1}),o(f,{modelValue:z.value.id_card,"onUpdate:modelValue":e[2]||(e[2]=a=>z.value.id_card=a),class:"input",maxlength:"18",placeholder:"选填","placeholder-class":"ph"},null,8,["modelValue"])]),_:1})]),_:1}),o(h,{class:"btn",disabled:j.value,onClick:P},{default:t(()=>[i(_(j.value?"保存中…":"保存"),1)]),_:1},8,["disabled"])]),_:1}))]),_:1})}}}),[["__scopeId","data-v-1b7b0015"]]);export{j as default}; diff --git a/public/h5/assets/pages-mine-reservation-detail.DLaT6RY7.js b/public/h5/assets/pages-mine-reservation-detail.pHRTDg51.js similarity index 99% rename from public/h5/assets/pages-mine-reservation-detail.DLaT6RY7.js rename to public/h5/assets/pages-mine-reservation-detail.pHRTDg51.js index 7b812fe..ff57ff1 100644 --- a/public/h5/assets/pages-mine-reservation-detail.DLaT6RY7.js +++ b/public/h5/assets/pages-mine-reservation-detail.pHRTDg51.js @@ -1 +1 @@ -import{d as t,r as e,c as n,Y as r,b as o,e as i,f as a,v as s,l as u,k as l,t as c,y as d,H as f,u as h,z as g,A as v,F as p,B as m,x as w,G as y,E,R as A,a7 as C,a1 as B,j as _}from"./index-q6pkZS4X.js";import{j as b,e as I}from"./content.4AgB0jqB.js";import{a as M,f as N}from"./datetime.DReAHQ1x.js";import{_ as T}from"./_plugin-vue_export-helper.BCo6x5W8.js";var P={},R={},L={};let x;const k=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];L.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},L.getSymbolTotalCodewords=function(t){return k[t]},L.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},L.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');x=t},L.isKanjiModeEnabled=function(){return void 0!==x},L.toSJIS=function(t){return x(t)};var U,S={};function F(){this.buffer=[],this.length=0}(U=S).L={bit:1},U.M={bit:0},U.Q={bit:3},U.H={bit:2},U.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},U.from=function(t,e){if(U.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return U.L;case"m":case"medium":return U.M;case"q":case"quartile":return U.Q;case"h":case"high":return U.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(n){return e}},F.prototype={get:function(t){const e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(let n=0;n>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var z=F;function D(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}D.prototype.set=function(t,e,n,r){const o=t*this.size+e;this.data[o]=n,r&&(this.reservedBit[o]=!0)},D.prototype.get=function(t,e){return this.data[t*this.size+e]},D.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n},D.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var H=D,Y={};!function(t){const e=L.getSymbolSize;t.getRowColCoords=function(t){if(1===t)return[];const n=Math.floor(t/7)+2,r=e(t),o=145===r?26:2*Math.ceil((r-13)/(2*n-2)),i=[r-7];for(let e=1;e=0&&t<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(t){const n=t.size;let r=0,o=0,i=0,a=null,s=null;for(let u=0;u=5&&(r+=e+(o-5)),a=n,o=1),n=t.get(l,u),n===s?i++:(i>=5&&(r+=e+(i-5)),s=n,i=1)}o>=5&&(r+=e+(o-5)),i>=5&&(r+=e+(i-5))}return r},t.getPenaltyN2=function(t){const e=t.size;let r=0;for(let n=0;n=10&&(1488===o||93===o)&&n++,i=i<<1&2047|t.get(a,r),a>=10&&(1488===i||93===i)&&n++}return n*r},t.getPenaltyN4=function(t){let e=0;const n=t.data.length;for(let r=0;r=0;){const t=r[0];for(let i=0;i0){const t=new Uint8Array(this.degree);return t.set(n,r),t}return n};var et=tt,nt={},rt={},ot={isValid:function(t){return!isNaN(t)&&t>=1&&t<=40}},it={};const at="[0-9]+";let st="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";st=st.replace(/u/g,"\\u");const ut="(?:(?![A-Z0-9 $%*+\\-./:]|"+st+")(?:.|[\r\n]))+";it.KANJI=new RegExp(st,"g"),it.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),it.BYTE=new RegExp(ut,"g"),it.NUMERIC=new RegExp(at,"g"),it.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const lt=new RegExp("^"+st+"$"),ct=new RegExp("^"+at+"$"),dt=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");it.testKanji=function(t){return lt.test(t)},it.testNumeric=function(t){return ct.test(t)},it.testAlphanumeric=function(t){return dt.test(t)},function(t){const e=ot,n=it;t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(t,n){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!e.isValid(n))throw new Error("Invalid version: "+n);return n>=1&&n<10?t.ccBits[0]:n<27?t.ccBits[1]:t.ccBits[2]},t.getBestModeForData=function(e){return n.testNumeric(e)?t.NUMERIC:n.testAlphanumeric(e)?t.ALPHANUMERIC:n.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},t.isValid=function(t){return t&&t.bit&&t.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(r){return n}}}(rt),function(t){const e=L,n=j,r=S,o=rt,i=ot,a=e.getBCHDigit(7973);function s(t,e){return o.getCharCountIndicator(t,e)+4}function u(t,e){let n=0;return t.forEach(function(t){const r=s(t.mode,e);n+=r+t.getBitsLength()}),n}t.from=function(t,e){return i.isValid(t)?parseInt(t,10):e},t.getCapacity=function(t,r,a){if(!i.isValid(t))throw new Error("Invalid QR Code version");void 0===a&&(a=o.BYTE);const u=8*(e.getSymbolTotalCodewords(t)-n.getTotalCodewordsCount(t,r));if(a===o.MIXED)return u;const l=u-s(a,t);switch(a){case o.NUMERIC:return Math.floor(l/10*3);case o.ALPHANUMERIC:return Math.floor(l/11*2);case o.KANJI:return Math.floor(l/13);case o.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,n){let i;const a=r.from(n,r.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let r=1;r<=40;r++)if(u(e,r)<=t.getCapacity(r,n,o.MIXED))return r}(e,a);if(0===e.length)return 1;i=e[0]}else i=e;return function(e,n,r){for(let o=1;o<=40;o++)if(n<=t.getCapacity(o,r,e))return o}(i.mode,i.getLength(),a)},t.getEncodedBits=function(t){if(!i.isValid(t)||t<7)throw new Error("Invalid QR Code version");let n=t<<12;for(;e.getBCHDigit(n)-a>=0;)n^=7973<=0;)r^=1335<0&&(n=this.data.substr(e),r=parseInt(n,10),t.put(r,3*o+1))};var wt=mt;const yt=rt,Et=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function At(t){this.mode=yt.ALPHANUMERIC,this.data=t}At.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},At.prototype.getLength=function(){return this.data.length},At.prototype.getBitsLength=function(){return At.getBitsLength(this.data.length)},At.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let n=45*Et.indexOf(this.data[e]);n+=Et.indexOf(this.data[e+1]),t.put(n,11)}this.data.length%2&&t.put(Et.indexOf(this.data[e]),6)};var Ct=At;const Bt=rt;function _t(t){this.mode=Bt.BYTE,this.data="string"==typeof t?(new TextEncoder).encode(t):new Uint8Array(t)}_t.getBitsLength=function(t){return 8*t},_t.prototype.getLength=function(){return this.data.length},_t.prototype.getBitsLength=function(){return _t.getBitsLength(this.data.length)},_t.prototype.write=function(t){for(let e=0,n=this.data.length;e=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),t.put(n,13)}};var Tt,Pt=Nt,Rt={exports:{}},Lt=Rt.exports=Tt={single_source_shortest_paths:function(t,e,n){var r={},o={};o[e]=0;var i,a,s,u,l,c,d,f=Tt.PriorityQueue.make();for(f.push(e,0);!f.empty();)for(s in a=(i=f.pop()).value,u=i.cost,l=t[a]||{})l.hasOwnProperty(s)&&(c=u+l[s],d=o[s],(void 0===o[s]||d>c)&&(o[s]=c,f.push(s,c),r[s]=a));if(void 0!==n&&void 0===o[n]){var h=["Could not find a path from ",e," to ",n,"."].join("");throw new Error(h)}return r},extract_shortest_path_from_predecessor_list:function(t,e){for(var n=[],r=e;r;)n.push(r),t[r],r=t[r];return n.reverse(),n},find_path:function(t,e,n){var r=Tt.single_source_shortest_paths(t,e,n);return Tt.extract_shortest_path_from_predecessor_list(r,n)},PriorityQueue:{make:function(t){var e,n=Tt.PriorityQueue,r={};for(e in t=t||{},n)n.hasOwnProperty(e)&&(r[e]=n[e]);return r.queue=[],r.sorter=t.sorter||n.default_sorter,r},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var n={value:t,cost:e};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};!function(t){const e=rt,n=wt,r=Ct,o=bt,i=Pt,a=it,s=L,u=Lt;function l(t){return unescape(encodeURIComponent(t)).length}function c(t,e,n){const r=[];let o;for(;null!==(o=t.exec(n));)r.push({data:o[0],index:o.index,mode:e,length:o[0].length});return r}function d(t){const n=c(a.NUMERIC,e.NUMERIC,t),r=c(a.ALPHANUMERIC,e.ALPHANUMERIC,t);let o,i;s.isKanjiModeEnabled()?(o=c(a.BYTE,e.BYTE,t),i=c(a.KANJI,e.KANJI,t)):(o=c(a.BYTE_KANJI,e.BYTE,t),i=[]);return n.concat(r,o,i).sort(function(t,e){return t.index-e.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function f(t,a){switch(a){case e.NUMERIC:return n.getBitsLength(t);case e.ALPHANUMERIC:return r.getBitsLength(t);case e.KANJI:return i.getBitsLength(t);case e.BYTE:return o.getBitsLength(t)}}function h(t,a){let u;const l=e.getBestModeForData(t);if(u=e.from(a,l),u!==e.BYTE&&u.bit=0?t[t.length-1]:null;return n&&n.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)},[])}(c))},t.rawSplit=function(e){return t.fromArray(d(e,s.isKanjiModeEnabled()))}}(vt);const xt=L,kt=S,Ut=z,St=H,Ft=Y,zt=J,Dt=q,Ht=j,Yt=et,Jt=nt,Kt=ft,qt=rt,jt=vt;function Vt(t,e,n){const r=t.size,o=Kt.getEncodedBits(e,n);let i,a;for(i=0;i<15;i++)a=1==(o>>i&1),i<6?t.set(i,8,a,!0):i<8?t.set(i+1,8,a,!0):t.set(r-15+i,8,a,!0),i<8?t.set(8,r-i-1,a,!0):i<9?t.set(8,15-i-1+1,a,!0):t.set(8,15-i-1,a,!0);t.set(r-8,8,1,!0)}function $t(t,e,n){const r=new Ut;n.forEach(function(e){r.put(e.mode.bit,4),r.put(e.getLength(),qt.getCharCountIndicator(e.mode,t)),e.write(r)});const o=8*(xt.getSymbolTotalCodewords(t)-Ht.getTotalCodewordsCount(t,e));for(r.getLengthInBits()+4<=o&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(0);const i=(o-r.getLengthInBits())/8;for(let a=0;a=0&&r<=6&&(0===o||6===o)||o>=0&&o<=6&&(0===r||6===r)||r>=2&&r<=4&&o>=2&&o<=4?t.set(e+r,i+o,!0,!0):t.set(e+r,i+o,!1,!0))}}(u,e),function(t){const e=t.size;for(let n=8;n=7&&function(t,e){const n=t.size,r=Jt.getEncodedBits(e);let o,i,a;for(let s=0;s<18;s++)o=Math.floor(s/3),i=s%3+n-8-3,a=1==(r>>s&1),t.set(o,i,a,!0),t.set(i,o,a,!0)}(u,e),function(t,e){const n=t.size;let r=-1,o=n-1,i=7,a=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!t.isReserved(o,s-n)){let r=!1;a>>i&1)),t.set(o,s-n,r),i--,-1===i&&(a++,i=7)}if(o+=r,o<0||n<=o){o-=r,r=-r;break}}}(u,a),isNaN(r)&&(r=Dt.getBestMask(u,Vt.bind(null,u,n))),Dt.applyMask(r,u),Vt(u,n,r),{modules:u,version:e,errorCorrectionLevel:n,maskPattern:r,segments:o}}R.create=function(t,e){if(void 0===t||""===t)throw new Error("No input text");let n,r,o=kt.M;return void 0!==e&&(o=kt.from(e.errorCorrectionLevel,kt.M),n=Jt.from(e.version),r=Dt.from(e.maskPattern),e.toSJISFunc&&xt.setToSJISFunction(e.toSJISFunc)),Ot(t,n,o,r)};var Qt={},Zt={};!function(t){function e(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map(function(t){return[t,t]}))),6===e.length&&e.push("F","F");const n=parseInt(e.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+e.slice(0,6).join("")}}t.getOptions=function(t){t||(t={}),t.color||(t.color={});const n=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,r=t.width&&t.width>=21?t.width:void 0,o=t.scale||4;return{width:r,scale:r?4:o,margin:n,color:{dark:e(t.color.dark||"#000000ff"),light:e(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},t.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},t.getImageWidth=function(e,n){const r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){const o=n.modules.size,i=n.modules.data,a=t.getScale(o,r),s=Math.floor((o+2*r.margin)*a),u=r.margin*a,l=[r.color.light,r.color.dark];for(let t=0;t=u&&n>=u&&t':"",u="0&&u>0&&t[s-1]||(r+=i?te("M",u+n,.5+l+n):te("m",o,0),o=0,i=!1),u+1',l='viewBox="0 0 '+a+" "+a+'"',c=''+s+u+"\n";return"function"==typeof n&&n(null,c),c};const ee=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then},ne=R,re=Qt,oe=Xt;function ie(t,e,n,r,o){const i=[].slice.call(arguments,1),a=i.length,s="function"==typeof i[a-1];if(!s&&!ee())throw new Error("Callback required as last argument");if(!s){if(a<1)throw new Error("Too few arguments provided");return 1===a?(n=e,e=r=void 0):2!==a||e.getContext||(r=n,n=e,e=void 0),new Promise(function(o,i){try{const i=ne.create(n,r);o(t(i,e,r))}catch(a){i(a)}})}if(a<2)throw new Error("Too few arguments provided");2===a?(o=n,n=e,e=r=void 0):3===a&&(e.getContext&&void 0===o?(o=r,r=void 0):(o=r,r=n,n=e,e=void 0));try{const i=ne.create(n,r);o(null,t(i,e,r))}catch(u){o(u)}}P.create=ne.create,P.toCanvas=ie.bind(null,re.render),P.toDataURL=ie.bind(null,re.renderToDataURL),P.toString=ie.bind(null,function(t,e,n){return oe.render(t,n)});const ae=T(t({__name:"reservation-detail",setup(t){const T=e(null),R=e(""),L=e(!1),x=e(!1),k=e("");function U(){return!!u(l.accessToken)}const S=n(()=>{var t;const e=null==(t=T.value)?void 0:t.activity;if(!(null==e?void 0:e.start_at)&&!(null==e?void 0:e.end_at))return"-";const n=e.start_at?M(e.start_at):"",r=e.end_at?M(e.end_at):"";return n&&r?`${n} ~ ${r}`:n||r||"-"});const F=e([]);function z(){var t;const e=(null==(t=T.value)?void 0:t.qr_token)||"";e&&C({data:e})}function D(){var t;const e=null==(t=T.value)?void 0:t.activity,n=Number(null==e?void 0:e.lat),r=Number(null==e?void 0:e.lng);n&&r?B({latitude:n,longitude:r,name:(null==e?void 0:e.title)||"活动位置",address:(null==e?void 0:e.address)||"",scale:16}):a({title:"活动暂未标注地图坐标,无法导航",icon:"none"})}async function H(t){if(!t)return;const e=/^1\d{10}$/.test(R.value);if(e||U()){L.value=!0;try{T.value=await b(t,e?R.value:void 0),await async function(){var t;const e=null==(t=T.value)?void 0:t.qr_token;if(e)try{k.value=await P.toDataURL(e,{width:320,margin:1,errorCorrectionLevel:"M"})}catch{k.value=""}else k.value=""}(),function(){var t,e;const n=Math.max(1,Number((null==(t=T.value)?void 0:t.ticket_count)||1)),r=(null==(e=T.value)?void 0:e.visitor_name)||"观众";F.value=Array.from({length:n},(t,e)=>({label:1===n?r:`${r}${e+1}`,qr:k.value}))}()}catch(n){a({title:(null==n?void 0:n.message)||"加载详情失败",icon:"none"})}finally{L.value=!1}}else a({title:"缺少验证信息",icon:"none"})}async function Y(){var t;if(!(null==(t=T.value)?void 0:t.id))return;if("pending"!==T.value.status)return void a({title:"当前状态不可取消",icon:"none"});const e=/^1\d{10}$/.test(R.value);if(!e&&!U())return;if((await _({title:"确认取消预约",content:"取消后将释放该日期占用名额,是否继续?",confirmText:"确认取消",confirmColor:"#ff7d00"})).confirm){x.value=!0;try{await I(T.value.id,e?R.value:void 0),a({title:"取消成功",icon:"success"}),await H(T.value.id)}catch(n){a({title:(null==n?void 0:n.message)||"取消失败",icon:"none"})}finally{x.value=!1}}}return r(t=>{const e=Number((null==t?void 0:t.id)||0);R.value=String((null==t?void 0:t.phone)||""),H(e)}),(t,e)=>{const n=s,r=w,a=E,u=A;return c(),o(n,{class:"page"},{default:i(()=>{var t;return[L.value&&!T.value?(c(),o(n,{key:0,class:"loading"},{default:i(()=>[d("加载中…")]),_:1})):f("",!0),h(n,{class:"card"},{default:i(()=>{var t,e,a;return[h(n,{class:"title"},{default:i(()=>{var t,e;return[d(g((null==(e=null==(t=T.value)?void 0:t.activity)?void 0:e.title)||"-"),1)]}),_:1}),(null==(a=null==(e=null==(t=T.value)?void 0:t.activity)?void 0:e.tags)?void 0:a.length)?(c(),o(n,{key:0,class:"tags"},{default:i(()=>[(c(!0),v(p,null,m(T.value.activity.tags,(t,e)=>(c(),o(r,{key:e,class:"tag"},{default:i(()=>[d(g(t),1)]),_:2},1024))),128))]),_:1})):f("",!0),h(n,{class:"sec-label"},{default:i(()=>[d("活动信息")]),_:1}),h(n,{class:"meta"},{default:i(()=>[d("活动时间:"+g(S.value),1)]),_:1}),h(n,{class:"addr-row"},{default:i(()=>[h(n,{class:"addr-main"},{default:i(()=>[h(r,{class:"addr-label"},{default:i(()=>[d("活动地址")]),_:1}),h(r,{class:"addr-text"},{default:i(()=>{var t,e;return[d(g((null==(e=null==(t=T.value)?void 0:t.activity)?void 0:e.address)||"-"),1)]}),_:1})]),_:1}),h(n,{class:"nav-btn",onClick:D},{default:i(()=>[d("导航")]),_:1})]),_:1}),h(n,{class:"sec-label"},{default:i(()=>[d("场馆")]),_:1}),h(n,{class:"meta"},{default:i(()=>{var t,e;return[d(g((null==(e=null==(t=T.value)?void 0:t.venue)?void 0:e.name)||"-"),1)]}),_:1})]}),_:1}),h(n,{class:"card"},{default:i(()=>{var t;return[h(n,{class:"sec-label"},{default:i(()=>[d("预约订单")]),_:1}),h(n,{class:"meta"},{default:i(()=>{var t,e;return[d("预约日期:"+g(y(N)(null==(e=null==(t=T.value)?void 0:t.activity_day)?void 0:e.activity_date)),1)]}),_:1}),h(n,{class:"meta"},{default:i(()=>{var t;return[d("参观人数:"+g((null==(t=T.value)?void 0:t.ticket_count)||1)+" 人",1)]}),_:1}),h(n,{class:"meta"},{default:i(()=>{var t,e;return[d("状态:"+g((e=null==(t=T.value)?void 0:t.status,"pending"===e?"待核销":"verified"===e?"已核销":"cancelled"===e?"已取消":e||"-")),1)]}),_:1}),h(n,{class:"meta"},{default:i(()=>{var t;return[d("下单时间:"+g(y(M)(null==(t=T.value)?void 0:t.created_at)),1)]}),_:1}),(null==(t=T.value)?void 0:t.verified_at)?(c(),o(n,{key:0,class:"meta"},{default:i(()=>[d("核销时间:"+g(y(M)(T.value.verified_at)),1)]),_:1})):f("",!0),h(n,{class:"meta"},{default:i(()=>{var t;return[d("报名人:"+g((null==(t=T.value)?void 0:t.visitor_name)||"-"),1)]}),_:1}),h(n,{class:"meta"},{default:i(()=>{var t;return[d("手机:"+g((null==(t=T.value)?void 0:t.visitor_phone)||"-"),1)]}),_:1})]}),_:1}),(null==(t=T.value)?void 0:t.qr_token)?(c(),o(n,{key:1,class:"card"},{default:i(()=>[h(n,{class:"sub-title"},{default:i(()=>[d("入馆凭证")]),_:1}),(c(!0),v(p,null,m(F.value,(t,e)=>(c(),o(n,{class:"ticket",key:e},{default:i(()=>[h(n,{class:"ticket-head"},{default:i(()=>[h(r,null,{default:i(()=>[d("请向工作人员出示此码")]),_:1}),h(r,{class:"copy",onClick:z},{default:i(()=>[d("复制码")]),_:1})]),_:1}),t.qr?(c(),o(a,{key:0,class:"qr",src:t.qr,mode:"aspectFit"},null,8,["src"])):(c(),o(n,{key:1,class:"tip"},{default:i(()=>[d("二维码生成中...")]),_:1})),h(n,{class:"qr-name"},{default:i(()=>[d(g(t.label),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})):f("",!0),h(n,{class:"action"},{default:i(()=>{var t;return[h(u,{class:"btn",disabled:"pending"!==(null==(t=T.value)?void 0:t.status)||x.value||L.value,onClick:Y},{default:i(()=>[d(g(x.value?"取消中...":"取消预约"),1)]),_:1},8,["disabled"])]}),_:1})]}),_:1})}}}),[["__scopeId","data-v-4d1fc7ce"]]);export{ae as default}; +import{d as t,r as e,c as n,Y as r,b as o,e as i,f as a,v as s,l as u,k as l,t as c,y as d,H as f,u as h,z as g,A as v,F as p,B as m,x as w,G as y,E,R as A,a7 as C,a1 as B,j as _}from"./index-BznAv2H5.js";import{j as b,e as I}from"./content.IclVJQGc.js";import{a as M,f as N}from"./datetime.DReAHQ1x.js";import{_ as T}from"./_plugin-vue_export-helper.BCo6x5W8.js";var P={},R={},L={};let x;const k=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];L.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},L.getSymbolTotalCodewords=function(t){return k[t]},L.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},L.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');x=t},L.isKanjiModeEnabled=function(){return void 0!==x},L.toSJIS=function(t){return x(t)};var U,S={};function F(){this.buffer=[],this.length=0}(U=S).L={bit:1},U.M={bit:0},U.Q={bit:3},U.H={bit:2},U.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},U.from=function(t,e){if(U.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return U.L;case"m":case"medium":return U.M;case"q":case"quartile":return U.Q;case"h":case"high":return U.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(n){return e}},F.prototype={get:function(t){const e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(let n=0;n>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var z=F;function D(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}D.prototype.set=function(t,e,n,r){const o=t*this.size+e;this.data[o]=n,r&&(this.reservedBit[o]=!0)},D.prototype.get=function(t,e){return this.data[t*this.size+e]},D.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n},D.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var H=D,Y={};!function(t){const e=L.getSymbolSize;t.getRowColCoords=function(t){if(1===t)return[];const n=Math.floor(t/7)+2,r=e(t),o=145===r?26:2*Math.ceil((r-13)/(2*n-2)),i=[r-7];for(let e=1;e=0&&t<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(t){const n=t.size;let r=0,o=0,i=0,a=null,s=null;for(let u=0;u=5&&(r+=e+(o-5)),a=n,o=1),n=t.get(l,u),n===s?i++:(i>=5&&(r+=e+(i-5)),s=n,i=1)}o>=5&&(r+=e+(o-5)),i>=5&&(r+=e+(i-5))}return r},t.getPenaltyN2=function(t){const e=t.size;let r=0;for(let n=0;n=10&&(1488===o||93===o)&&n++,i=i<<1&2047|t.get(a,r),a>=10&&(1488===i||93===i)&&n++}return n*r},t.getPenaltyN4=function(t){let e=0;const n=t.data.length;for(let r=0;r=0;){const t=r[0];for(let i=0;i0){const t=new Uint8Array(this.degree);return t.set(n,r),t}return n};var et=tt,nt={},rt={},ot={isValid:function(t){return!isNaN(t)&&t>=1&&t<=40}},it={};const at="[0-9]+";let st="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";st=st.replace(/u/g,"\\u");const ut="(?:(?![A-Z0-9 $%*+\\-./:]|"+st+")(?:.|[\r\n]))+";it.KANJI=new RegExp(st,"g"),it.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),it.BYTE=new RegExp(ut,"g"),it.NUMERIC=new RegExp(at,"g"),it.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const lt=new RegExp("^"+st+"$"),ct=new RegExp("^"+at+"$"),dt=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");it.testKanji=function(t){return lt.test(t)},it.testNumeric=function(t){return ct.test(t)},it.testAlphanumeric=function(t){return dt.test(t)},function(t){const e=ot,n=it;t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(t,n){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!e.isValid(n))throw new Error("Invalid version: "+n);return n>=1&&n<10?t.ccBits[0]:n<27?t.ccBits[1]:t.ccBits[2]},t.getBestModeForData=function(e){return n.testNumeric(e)?t.NUMERIC:n.testAlphanumeric(e)?t.ALPHANUMERIC:n.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},t.isValid=function(t){return t&&t.bit&&t.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(r){return n}}}(rt),function(t){const e=L,n=j,r=S,o=rt,i=ot,a=e.getBCHDigit(7973);function s(t,e){return o.getCharCountIndicator(t,e)+4}function u(t,e){let n=0;return t.forEach(function(t){const r=s(t.mode,e);n+=r+t.getBitsLength()}),n}t.from=function(t,e){return i.isValid(t)?parseInt(t,10):e},t.getCapacity=function(t,r,a){if(!i.isValid(t))throw new Error("Invalid QR Code version");void 0===a&&(a=o.BYTE);const u=8*(e.getSymbolTotalCodewords(t)-n.getTotalCodewordsCount(t,r));if(a===o.MIXED)return u;const l=u-s(a,t);switch(a){case o.NUMERIC:return Math.floor(l/10*3);case o.ALPHANUMERIC:return Math.floor(l/11*2);case o.KANJI:return Math.floor(l/13);case o.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,n){let i;const a=r.from(n,r.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let r=1;r<=40;r++)if(u(e,r)<=t.getCapacity(r,n,o.MIXED))return r}(e,a);if(0===e.length)return 1;i=e[0]}else i=e;return function(e,n,r){for(let o=1;o<=40;o++)if(n<=t.getCapacity(o,r,e))return o}(i.mode,i.getLength(),a)},t.getEncodedBits=function(t){if(!i.isValid(t)||t<7)throw new Error("Invalid QR Code version");let n=t<<12;for(;e.getBCHDigit(n)-a>=0;)n^=7973<=0;)r^=1335<0&&(n=this.data.substr(e),r=parseInt(n,10),t.put(r,3*o+1))};var wt=mt;const yt=rt,Et=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function At(t){this.mode=yt.ALPHANUMERIC,this.data=t}At.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},At.prototype.getLength=function(){return this.data.length},At.prototype.getBitsLength=function(){return At.getBitsLength(this.data.length)},At.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let n=45*Et.indexOf(this.data[e]);n+=Et.indexOf(this.data[e+1]),t.put(n,11)}this.data.length%2&&t.put(Et.indexOf(this.data[e]),6)};var Ct=At;const Bt=rt;function _t(t){this.mode=Bt.BYTE,this.data="string"==typeof t?(new TextEncoder).encode(t):new Uint8Array(t)}_t.getBitsLength=function(t){return 8*t},_t.prototype.getLength=function(){return this.data.length},_t.prototype.getBitsLength=function(){return _t.getBitsLength(this.data.length)},_t.prototype.write=function(t){for(let e=0,n=this.data.length;e=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),t.put(n,13)}};var Tt,Pt=Nt,Rt={exports:{}},Lt=Rt.exports=Tt={single_source_shortest_paths:function(t,e,n){var r={},o={};o[e]=0;var i,a,s,u,l,c,d,f=Tt.PriorityQueue.make();for(f.push(e,0);!f.empty();)for(s in a=(i=f.pop()).value,u=i.cost,l=t[a]||{})l.hasOwnProperty(s)&&(c=u+l[s],d=o[s],(void 0===o[s]||d>c)&&(o[s]=c,f.push(s,c),r[s]=a));if(void 0!==n&&void 0===o[n]){var h=["Could not find a path from ",e," to ",n,"."].join("");throw new Error(h)}return r},extract_shortest_path_from_predecessor_list:function(t,e){for(var n=[],r=e;r;)n.push(r),t[r],r=t[r];return n.reverse(),n},find_path:function(t,e,n){var r=Tt.single_source_shortest_paths(t,e,n);return Tt.extract_shortest_path_from_predecessor_list(r,n)},PriorityQueue:{make:function(t){var e,n=Tt.PriorityQueue,r={};for(e in t=t||{},n)n.hasOwnProperty(e)&&(r[e]=n[e]);return r.queue=[],r.sorter=t.sorter||n.default_sorter,r},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var n={value:t,cost:e};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};!function(t){const e=rt,n=wt,r=Ct,o=bt,i=Pt,a=it,s=L,u=Lt;function l(t){return unescape(encodeURIComponent(t)).length}function c(t,e,n){const r=[];let o;for(;null!==(o=t.exec(n));)r.push({data:o[0],index:o.index,mode:e,length:o[0].length});return r}function d(t){const n=c(a.NUMERIC,e.NUMERIC,t),r=c(a.ALPHANUMERIC,e.ALPHANUMERIC,t);let o,i;s.isKanjiModeEnabled()?(o=c(a.BYTE,e.BYTE,t),i=c(a.KANJI,e.KANJI,t)):(o=c(a.BYTE_KANJI,e.BYTE,t),i=[]);return n.concat(r,o,i).sort(function(t,e){return t.index-e.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function f(t,a){switch(a){case e.NUMERIC:return n.getBitsLength(t);case e.ALPHANUMERIC:return r.getBitsLength(t);case e.KANJI:return i.getBitsLength(t);case e.BYTE:return o.getBitsLength(t)}}function h(t,a){let u;const l=e.getBestModeForData(t);if(u=e.from(a,l),u!==e.BYTE&&u.bit=0?t[t.length-1]:null;return n&&n.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)},[])}(c))},t.rawSplit=function(e){return t.fromArray(d(e,s.isKanjiModeEnabled()))}}(vt);const xt=L,kt=S,Ut=z,St=H,Ft=Y,zt=J,Dt=q,Ht=j,Yt=et,Jt=nt,Kt=ft,qt=rt,jt=vt;function Vt(t,e,n){const r=t.size,o=Kt.getEncodedBits(e,n);let i,a;for(i=0;i<15;i++)a=1==(o>>i&1),i<6?t.set(i,8,a,!0):i<8?t.set(i+1,8,a,!0):t.set(r-15+i,8,a,!0),i<8?t.set(8,r-i-1,a,!0):i<9?t.set(8,15-i-1+1,a,!0):t.set(8,15-i-1,a,!0);t.set(r-8,8,1,!0)}function $t(t,e,n){const r=new Ut;n.forEach(function(e){r.put(e.mode.bit,4),r.put(e.getLength(),qt.getCharCountIndicator(e.mode,t)),e.write(r)});const o=8*(xt.getSymbolTotalCodewords(t)-Ht.getTotalCodewordsCount(t,e));for(r.getLengthInBits()+4<=o&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(0);const i=(o-r.getLengthInBits())/8;for(let a=0;a=0&&r<=6&&(0===o||6===o)||o>=0&&o<=6&&(0===r||6===r)||r>=2&&r<=4&&o>=2&&o<=4?t.set(e+r,i+o,!0,!0):t.set(e+r,i+o,!1,!0))}}(u,e),function(t){const e=t.size;for(let n=8;n=7&&function(t,e){const n=t.size,r=Jt.getEncodedBits(e);let o,i,a;for(let s=0;s<18;s++)o=Math.floor(s/3),i=s%3+n-8-3,a=1==(r>>s&1),t.set(o,i,a,!0),t.set(i,o,a,!0)}(u,e),function(t,e){const n=t.size;let r=-1,o=n-1,i=7,a=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!t.isReserved(o,s-n)){let r=!1;a>>i&1)),t.set(o,s-n,r),i--,-1===i&&(a++,i=7)}if(o+=r,o<0||n<=o){o-=r,r=-r;break}}}(u,a),isNaN(r)&&(r=Dt.getBestMask(u,Vt.bind(null,u,n))),Dt.applyMask(r,u),Vt(u,n,r),{modules:u,version:e,errorCorrectionLevel:n,maskPattern:r,segments:o}}R.create=function(t,e){if(void 0===t||""===t)throw new Error("No input text");let n,r,o=kt.M;return void 0!==e&&(o=kt.from(e.errorCorrectionLevel,kt.M),n=Jt.from(e.version),r=Dt.from(e.maskPattern),e.toSJISFunc&&xt.setToSJISFunction(e.toSJISFunc)),Ot(t,n,o,r)};var Qt={},Zt={};!function(t){function e(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map(function(t){return[t,t]}))),6===e.length&&e.push("F","F");const n=parseInt(e.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+e.slice(0,6).join("")}}t.getOptions=function(t){t||(t={}),t.color||(t.color={});const n=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,r=t.width&&t.width>=21?t.width:void 0,o=t.scale||4;return{width:r,scale:r?4:o,margin:n,color:{dark:e(t.color.dark||"#000000ff"),light:e(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},t.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},t.getImageWidth=function(e,n){const r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){const o=n.modules.size,i=n.modules.data,a=t.getScale(o,r),s=Math.floor((o+2*r.margin)*a),u=r.margin*a,l=[r.color.light,r.color.dark];for(let t=0;t=u&&n>=u&&t':"",u="0&&u>0&&t[s-1]||(r+=i?te("M",u+n,.5+l+n):te("m",o,0),o=0,i=!1),u+1',l='viewBox="0 0 '+a+" "+a+'"',c=''+s+u+"\n";return"function"==typeof n&&n(null,c),c};const ee=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then},ne=R,re=Qt,oe=Xt;function ie(t,e,n,r,o){const i=[].slice.call(arguments,1),a=i.length,s="function"==typeof i[a-1];if(!s&&!ee())throw new Error("Callback required as last argument");if(!s){if(a<1)throw new Error("Too few arguments provided");return 1===a?(n=e,e=r=void 0):2!==a||e.getContext||(r=n,n=e,e=void 0),new Promise(function(o,i){try{const i=ne.create(n,r);o(t(i,e,r))}catch(a){i(a)}})}if(a<2)throw new Error("Too few arguments provided");2===a?(o=n,n=e,e=r=void 0):3===a&&(e.getContext&&void 0===o?(o=r,r=void 0):(o=r,r=n,n=e,e=void 0));try{const i=ne.create(n,r);o(null,t(i,e,r))}catch(u){o(u)}}P.create=ne.create,P.toCanvas=ie.bind(null,re.render),P.toDataURL=ie.bind(null,re.renderToDataURL),P.toString=ie.bind(null,function(t,e,n){return oe.render(t,n)});const ae=T(t({__name:"reservation-detail",setup(t){const T=e(null),R=e(""),L=e(!1),x=e(!1),k=e("");function U(){return!!u(l.accessToken)}const S=n(()=>{var t;const e=null==(t=T.value)?void 0:t.activity;if(!(null==e?void 0:e.start_at)&&!(null==e?void 0:e.end_at))return"-";const n=e.start_at?M(e.start_at):"",r=e.end_at?M(e.end_at):"";return n&&r?`${n} ~ ${r}`:n||r||"-"});const F=e([]);function z(){var t;const e=(null==(t=T.value)?void 0:t.qr_token)||"";e&&C({data:e})}function D(){var t;const e=null==(t=T.value)?void 0:t.activity,n=Number(null==e?void 0:e.lat),r=Number(null==e?void 0:e.lng);n&&r?B({latitude:n,longitude:r,name:(null==e?void 0:e.title)||"活动位置",address:(null==e?void 0:e.address)||"",scale:16}):a({title:"活动暂未标注地图坐标,无法导航",icon:"none"})}async function H(t){if(!t)return;const e=/^1\d{10}$/.test(R.value);if(e||U()){L.value=!0;try{T.value=await b(t,e?R.value:void 0),await async function(){var t;const e=null==(t=T.value)?void 0:t.qr_token;if(e)try{k.value=await P.toDataURL(e,{width:320,margin:1,errorCorrectionLevel:"M"})}catch{k.value=""}else k.value=""}(),function(){var t,e;const n=Math.max(1,Number((null==(t=T.value)?void 0:t.ticket_count)||1)),r=(null==(e=T.value)?void 0:e.visitor_name)||"观众";F.value=Array.from({length:n},(t,e)=>({label:1===n?r:`${r}${e+1}`,qr:k.value}))}()}catch(n){a({title:(null==n?void 0:n.message)||"加载详情失败",icon:"none"})}finally{L.value=!1}}else a({title:"缺少验证信息",icon:"none"})}async function Y(){var t;if(!(null==(t=T.value)?void 0:t.id))return;if("pending"!==T.value.status)return void a({title:"当前状态不可取消",icon:"none"});const e=/^1\d{10}$/.test(R.value);if(!e&&!U())return;if((await _({title:"确认取消预约",content:"取消后将释放该日期占用名额,是否继续?",confirmText:"确认取消",confirmColor:"#ff7d00"})).confirm){x.value=!0;try{await I(T.value.id,e?R.value:void 0),a({title:"取消成功",icon:"success"}),await H(T.value.id)}catch(n){a({title:(null==n?void 0:n.message)||"取消失败",icon:"none"})}finally{x.value=!1}}}return r(t=>{const e=Number((null==t?void 0:t.id)||0);R.value=String((null==t?void 0:t.phone)||""),H(e)}),(t,e)=>{const n=s,r=w,a=E,u=A;return c(),o(n,{class:"page"},{default:i(()=>{var t;return[L.value&&!T.value?(c(),o(n,{key:0,class:"loading"},{default:i(()=>[d("加载中…")]),_:1})):f("",!0),h(n,{class:"card"},{default:i(()=>{var t,e,a;return[h(n,{class:"title"},{default:i(()=>{var t,e;return[d(g((null==(e=null==(t=T.value)?void 0:t.activity)?void 0:e.title)||"-"),1)]}),_:1}),(null==(a=null==(e=null==(t=T.value)?void 0:t.activity)?void 0:e.tags)?void 0:a.length)?(c(),o(n,{key:0,class:"tags"},{default:i(()=>[(c(!0),v(p,null,m(T.value.activity.tags,(t,e)=>(c(),o(r,{key:e,class:"tag"},{default:i(()=>[d(g(t),1)]),_:2},1024))),128))]),_:1})):f("",!0),h(n,{class:"sec-label"},{default:i(()=>[d("活动信息")]),_:1}),h(n,{class:"meta"},{default:i(()=>[d("活动时间:"+g(S.value),1)]),_:1}),h(n,{class:"addr-row"},{default:i(()=>[h(n,{class:"addr-main"},{default:i(()=>[h(r,{class:"addr-label"},{default:i(()=>[d("活动地址")]),_:1}),h(r,{class:"addr-text"},{default:i(()=>{var t,e;return[d(g((null==(e=null==(t=T.value)?void 0:t.activity)?void 0:e.address)||"-"),1)]}),_:1})]),_:1}),h(n,{class:"nav-btn",onClick:D},{default:i(()=>[d("导航")]),_:1})]),_:1}),h(n,{class:"sec-label"},{default:i(()=>[d("场馆")]),_:1}),h(n,{class:"meta"},{default:i(()=>{var t,e;return[d(g((null==(e=null==(t=T.value)?void 0:t.venue)?void 0:e.name)||"-"),1)]}),_:1})]}),_:1}),h(n,{class:"card"},{default:i(()=>{var t;return[h(n,{class:"sec-label"},{default:i(()=>[d("预约订单")]),_:1}),h(n,{class:"meta"},{default:i(()=>{var t,e;return[d("预约日期:"+g(y(N)(null==(e=null==(t=T.value)?void 0:t.activity_day)?void 0:e.activity_date)),1)]}),_:1}),h(n,{class:"meta"},{default:i(()=>{var t;return[d("参观人数:"+g((null==(t=T.value)?void 0:t.ticket_count)||1)+" 人",1)]}),_:1}),h(n,{class:"meta"},{default:i(()=>{var t,e;return[d("状态:"+g((e=null==(t=T.value)?void 0:t.status,"pending"===e?"待核销":"verified"===e?"已核销":"cancelled"===e?"已取消":e||"-")),1)]}),_:1}),h(n,{class:"meta"},{default:i(()=>{var t;return[d("下单时间:"+g(y(M)(null==(t=T.value)?void 0:t.created_at)),1)]}),_:1}),(null==(t=T.value)?void 0:t.verified_at)?(c(),o(n,{key:0,class:"meta"},{default:i(()=>[d("核销时间:"+g(y(M)(T.value.verified_at)),1)]),_:1})):f("",!0),h(n,{class:"meta"},{default:i(()=>{var t;return[d("报名人:"+g((null==(t=T.value)?void 0:t.visitor_name)||"-"),1)]}),_:1}),h(n,{class:"meta"},{default:i(()=>{var t;return[d("手机:"+g((null==(t=T.value)?void 0:t.visitor_phone)||"-"),1)]}),_:1})]}),_:1}),(null==(t=T.value)?void 0:t.qr_token)?(c(),o(n,{key:1,class:"card"},{default:i(()=>[h(n,{class:"sub-title"},{default:i(()=>[d("入馆凭证")]),_:1}),(c(!0),v(p,null,m(F.value,(t,e)=>(c(),o(n,{class:"ticket",key:e},{default:i(()=>[h(n,{class:"ticket-head"},{default:i(()=>[h(r,null,{default:i(()=>[d("请向工作人员出示此码")]),_:1}),h(r,{class:"copy",onClick:z},{default:i(()=>[d("复制码")]),_:1})]),_:1}),t.qr?(c(),o(a,{key:0,class:"qr",src:t.qr,mode:"aspectFit"},null,8,["src"])):(c(),o(n,{key:1,class:"tip"},{default:i(()=>[d("二维码生成中...")]),_:1})),h(n,{class:"qr-name"},{default:i(()=>[d(g(t.label),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})):f("",!0),h(n,{class:"action"},{default:i(()=>{var t;return[h(u,{class:"btn",disabled:"pending"!==(null==(t=T.value)?void 0:t.status)||x.value||L.value,onClick:Y},{default:i(()=>[d(g(x.value?"取消中...":"取消预约"),1)]),_:1},8,["disabled"])]}),_:1})]}),_:1})}}}),[["__scopeId","data-v-4d1fc7ce"]]);export{ae as default}; diff --git a/public/h5/assets/pages-stats-index.BTYRuIUM.js b/public/h5/assets/pages-stats-index.DD3ZTHk8.js similarity index 93% rename from public/h5/assets/pages-stats-index.BTYRuIUM.js rename to public/h5/assets/pages-stats-index.DD3ZTHk8.js index 9988ad2..8a5088d 100644 --- a/public/h5/assets/pages-stats-index.BTYRuIUM.js +++ b/public/h5/assets/pages-stats-index.DD3ZTHk8.js @@ -1 +1 @@ -import{d as a,b as s,e,v as r,t as n,u as l,A as t,F as c,B as o,y as u,z as d}from"./index-q6pkZS4X.js";import{_}from"./_plugin-vue_export-helper.BCo6x5W8.js";const f=_(a({__name:"index",setup(a){const _=[{rank:1,name:"苏州青少年科技馆",score:4912},{rank:2,name:"苏州科普体验中心",score:4911},{rank:3,name:"苏州未来科幻馆",score:4860},{rank:4,name:"苏州自然资源馆",score:4720},{rank:5,name:"苏州农业科普园",score:4618}];return(a,f)=>{const m=r;return n(),s(m,{class:"page"},{default:e(()=>[l(m,{class:"list"},{default:e(()=>[(n(),t(c,null,o(_,a=>l(m,{key:a.rank,class:"row"},{default:e(()=>[l(m,{class:"left"},{default:e(()=>[l(m,{class:"rank"},{default:e(()=>[u("TOP"+d(a.rank),1)]),_:2},1024),l(m,{class:"name"},{default:e(()=>[u(d(a.name),1)]),_:2},1024)]),_:2},1024),l(m,{class:"score"},{default:e(()=>[u(d(a.score),1)]),_:2},1024)]),_:2},1024)),64))]),_:1})]),_:1})}}}),[["__scopeId","data-v-8df1afeb"]]);export{f as default}; +import{d as a,b as s,e,v as r,t as n,u as l,A as t,F as c,B as o,y as u,z as d}from"./index-BznAv2H5.js";import{_}from"./_plugin-vue_export-helper.BCo6x5W8.js";const f=_(a({__name:"index",setup(a){const _=[{rank:1,name:"苏州青少年科技馆",score:4912},{rank:2,name:"苏州科普体验中心",score:4911},{rank:3,name:"苏州未来科幻馆",score:4860},{rank:4,name:"苏州自然资源馆",score:4720},{rank:5,name:"苏州农业科普园",score:4618}];return(a,f)=>{const m=r;return n(),s(m,{class:"page"},{default:e(()=>[l(m,{class:"list"},{default:e(()=>[(n(),t(c,null,o(_,a=>l(m,{key:a.rank,class:"row"},{default:e(()=>[l(m,{class:"left"},{default:e(()=>[l(m,{class:"rank"},{default:e(()=>[u("TOP"+d(a.rank),1)]),_:2},1024),l(m,{class:"name"},{default:e(()=>[u(d(a.name),1)]),_:2},1024)]),_:2},1024),l(m,{class:"score"},{default:e(()=>[u(d(a.score),1)]),_:2},1024)]),_:2},1024)),64))]),_:1})]),_:1})}}}),[["__scopeId","data-v-8df1afeb"]]);export{f as default}; diff --git a/public/h5/assets/pages-study-tour-detail.Chs6SkSl.js b/public/h5/assets/pages-study-tour-detail.tOWRhwgP.js similarity index 97% rename from public/h5/assets/pages-study-tour-detail.Chs6SkSl.js rename to public/h5/assets/pages-study-tour-detail.tOWRhwgP.js index 7872465..6604c45 100644 --- a/public/h5/assets/pages-study-tour-detail.Chs6SkSl.js +++ b/public/h5/assets/pages-study-tour-detail.tOWRhwgP.js @@ -1 +1 @@ -import{d as e,r as a,c as l,w as t,Y as s,b as n,e as i,v as r,t as u,u as o,S as d,M as c,x as v,y as g,z as f,A as m,F as p,B as h,H as _,C as b,D as y,a0 as k,K as w,f as x,a1 as C,a2 as S,a3 as $,a4 as N,a5 as j}from"./index-q6pkZS4X.js";import{k as z}from"./content.4AgB0jqB.js";import{g as B}from"./markerPin.DdplcbG_.js";import{_ as R}from"./_plugin-vue_export-helper.BCo6x5W8.js";const Y="#05c9ac",I=R(e({__name:"detail",setup(e){const R=a(null),I=a(!0),K=a(!1),P=l(()=>{var e;const a=null==(e=R.value)?void 0:e.intro_html;if(null==a||""===a)return"";const l=String(a);let t="";if(/<[a-z][\s\S]*>/i.test(l))t=function(e){if(!e||"string"!=typeof e)return"";const a="max-width:100%;height:auto;display:block;vertical-align:top;";return e.replace(/|>)/gi,(e,l,t)=>{const s=String(l).trim();return/style\s*=/i.test(s)?/max-width\s*:/i.test(s)?e:e.replace(/style\s*=\s*(["'])([\s\S]*?)\1/i,(e,l,t)=>/max-width/i.test(t)?e:`style=${l}${t};${a}${l}`):`"===t?" />":">"}`})}(l);else{const e=function(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}(l);t=`
${e}
`}return(s=t)&&String(s).trim()&&String(s).replace(/<[^>]+>/g," ").replace(/ /gi," ").replace(/\s+/g," ").trim().length>0?t:"";var s}),q=l(()=>{var e,a;const l=null==(a=null==(e=R.value)?void 0:e.venues)?void 0:a[0];return{latitude:Number((null==l?void 0:l.lat)||31.2989),longitude:Number((null==l?void 0:l.lng)||120.5853)}}),A=l(()=>B(Y)),D=l(()=>{var e;const a=A.value;return((null==(e=R.value)?void 0:e.venues)||[]).map((e,l)=>{const t=Number(e.lat),s=Number(e.lng);return t&&s?{id:Number(e.id)||l+1,latitude:t,longitude:s,width:32,height:38,iconPath:a||void 0,anchor:{x:.5,y:1},label:{content:String(l+1),color:"#ffffff",fontSize:11,anchorX:0,anchorY:0,borderWidth:0,bgColor:Y,borderRadius:20,padding:4},callout:{content:`${l+1}. ${e.name||"场馆"}`,color:"#333333",fontSize:12,borderRadius:8,bgColor:"#ffffff",padding:8,display:"BYCLICK"}}:null}).filter(Boolean)});function F(){S(()=>{setTimeout(()=>{var e;const a=null==(e=$())?void 0:e.proxy,l=N();a&&l.in(a);const t=j(180);l.select(".judge-intro").boundingClientRect(),l.exec(e=>{const[a]=e||[];K.value=!!(a&&a.height&&a.height>t+1)})},120)})}return t(P,()=>{I.value=!0,F()}),t(R,()=>{F()}),s(async e=>{const a=Number((null==e?void 0:e.id)||0);a&&(R.value=await z(a))}),(e,a)=>{const l=c,t=v,s=r,S=k,$=d;return u(),n(s,{class:"page"},{default:i(()=>[o($,{"scroll-y":"",class:"scroll"},{default:i(()=>[o(l,{class:"map",latitude:q.value.latitude,longitude:q.value.longitude,markers:D.value,scale:12,"show-location":""},null,8,["latitude","longitude","markers"]),o(s,{class:"main-card"},{default:i(()=>{var e,a,l;return[o(t,{class:"tour-title"},{default:i(()=>{var e;return[g(f((null==(e=R.value)?void 0:e.name)||"-"),1)]}),_:1}),(null==(a=null==(e=R.value)?void 0:e.tags)?void 0:a.length)?(u(),n(s,{key:0,class:"chip-row"},{default:i(()=>[(u(!0),m(p,null,h(R.value.tags,e=>(u(),n(t,{key:e,class:"chip"},{default:i(()=>[g(f(e),1)]),_:2},1024))),128))]),_:1})):_("",!0),(u(!0),m(p,null,h((null==(l=R.value)?void 0:l.venues)||[],(e,a)=>(u(),n(s,{key:e.id,class:"venue-row",onClick:a=>{return l=e.id,void w({url:`/pages/venue/detail?id=${l}`});var l}},{default:i(()=>[o(s,{class:"idx"},{default:i(()=>[g(f(Number(a)+1),1)]),_:2},1024),o(s,{class:"venue-mid"},{default:i(()=>[o(s,{class:"name"},{default:i(()=>[g(f(e.name),1)]),_:2},1024),o(s,{class:"addr"},{default:i(()=>[g(f(e.address||"-"),1)]),_:2},1024)]),_:2},1024),o(s,{class:"go",onClick:b(a=>function(e){(null==e?void 0:e.lat)&&(null==e?void 0:e.lng)?C({latitude:Number(e.lat),longitude:Number(e.lng),name:e.name||"站点",address:e.address||""}):x({title:"暂无导航坐标",icon:"none"})}(e),["stop"])},{default:i(()=>[g("导航")]),_:2},1032,["onClick"])]),_:2},1032,["onClick"]))),128))]}),_:1}),P.value?(u(),n(s,{key:0,class:"intro-card"},{default:i(()=>[o(s,{class:"sec-title-row"},{default:i(()=>[o(t,{class:"sec-title"},{default:i(()=>[g("线路简介")]),_:1}),K.value?(u(),n(t,{key:0,class:"expand-link",onClick:a[0]||(a[0]=e=>I.value=!I.value)},{default:i(()=>[g(f(I.value?"收起":"展开"),1)]),_:1})):_("",!0)]),_:1}),o(s,{class:y(["intro-rich-wrap judge-intro",{"is-collapsed":K.value&&!I.value}])},{default:i(()=>[o(S,{class:"intro-rich",nodes:P.value},null,8,["nodes"])]),_:1},8,["class"])]),_:1})):_("",!0),o(s,{class:"safe-bottom"})]),_:1})]),_:1})}}}),[["__scopeId","data-v-b9bc3caa"]]);export{I as default}; +import{d as e,r as a,c as l,w as t,Y as s,b as n,e as i,v as r,t as u,u as o,S as d,M as c,x as v,y as g,z as f,A as m,F as p,B as h,H as _,C as b,D as y,a0 as k,K as w,f as x,a1 as C,a2 as S,a3 as $,a4 as N,a5 as j}from"./index-BznAv2H5.js";import{k as z}from"./content.IclVJQGc.js";import{g as B}from"./markerPin.DdplcbG_.js";import{_ as R}from"./_plugin-vue_export-helper.BCo6x5W8.js";const Y="#05c9ac",I=R(e({__name:"detail",setup(e){const R=a(null),I=a(!0),K=a(!1),P=l(()=>{var e;const a=null==(e=R.value)?void 0:e.intro_html;if(null==a||""===a)return"";const l=String(a);let t="";if(/<[a-z][\s\S]*>/i.test(l))t=function(e){if(!e||"string"!=typeof e)return"";const a="max-width:100%;height:auto;display:block;vertical-align:top;";return e.replace(/|>)/gi,(e,l,t)=>{const s=String(l).trim();return/style\s*=/i.test(s)?/max-width\s*:/i.test(s)?e:e.replace(/style\s*=\s*(["'])([\s\S]*?)\1/i,(e,l,t)=>/max-width/i.test(t)?e:`style=${l}${t};${a}${l}`):`"===t?" />":">"}`})}(l);else{const e=function(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}(l);t=`
${e}
`}return(s=t)&&String(s).trim()&&String(s).replace(/<[^>]+>/g," ").replace(/ /gi," ").replace(/\s+/g," ").trim().length>0?t:"";var s}),q=l(()=>{var e,a;const l=null==(a=null==(e=R.value)?void 0:e.venues)?void 0:a[0];return{latitude:Number((null==l?void 0:l.lat)||31.2989),longitude:Number((null==l?void 0:l.lng)||120.5853)}}),A=l(()=>B(Y)),D=l(()=>{var e;const a=A.value;return((null==(e=R.value)?void 0:e.venues)||[]).map((e,l)=>{const t=Number(e.lat),s=Number(e.lng);return t&&s?{id:Number(e.id)||l+1,latitude:t,longitude:s,width:32,height:38,iconPath:a||void 0,anchor:{x:.5,y:1},label:{content:String(l+1),color:"#ffffff",fontSize:11,anchorX:0,anchorY:0,borderWidth:0,bgColor:Y,borderRadius:20,padding:4},callout:{content:`${l+1}. ${e.name||"场馆"}`,color:"#333333",fontSize:12,borderRadius:8,bgColor:"#ffffff",padding:8,display:"BYCLICK"}}:null}).filter(Boolean)});function F(){S(()=>{setTimeout(()=>{var e;const a=null==(e=$())?void 0:e.proxy,l=N();a&&l.in(a);const t=j(180);l.select(".judge-intro").boundingClientRect(),l.exec(e=>{const[a]=e||[];K.value=!!(a&&a.height&&a.height>t+1)})},120)})}return t(P,()=>{I.value=!0,F()}),t(R,()=>{F()}),s(async e=>{const a=Number((null==e?void 0:e.id)||0);a&&(R.value=await z(a))}),(e,a)=>{const l=c,t=v,s=r,S=k,$=d;return u(),n(s,{class:"page"},{default:i(()=>[o($,{"scroll-y":"",class:"scroll"},{default:i(()=>[o(l,{class:"map",latitude:q.value.latitude,longitude:q.value.longitude,markers:D.value,scale:12,"show-location":""},null,8,["latitude","longitude","markers"]),o(s,{class:"main-card"},{default:i(()=>{var e,a,l;return[o(t,{class:"tour-title"},{default:i(()=>{var e;return[g(f((null==(e=R.value)?void 0:e.name)||"-"),1)]}),_:1}),(null==(a=null==(e=R.value)?void 0:e.tags)?void 0:a.length)?(u(),n(s,{key:0,class:"chip-row"},{default:i(()=>[(u(!0),m(p,null,h(R.value.tags,e=>(u(),n(t,{key:e,class:"chip"},{default:i(()=>[g(f(e),1)]),_:2},1024))),128))]),_:1})):_("",!0),(u(!0),m(p,null,h((null==(l=R.value)?void 0:l.venues)||[],(e,a)=>(u(),n(s,{key:e.id,class:"venue-row",onClick:a=>{return l=e.id,void w({url:`/pages/venue/detail?id=${l}`});var l}},{default:i(()=>[o(s,{class:"idx"},{default:i(()=>[g(f(Number(a)+1),1)]),_:2},1024),o(s,{class:"venue-mid"},{default:i(()=>[o(s,{class:"name"},{default:i(()=>[g(f(e.name),1)]),_:2},1024),o(s,{class:"addr"},{default:i(()=>[g(f(e.address||"-"),1)]),_:2},1024)]),_:2},1024),o(s,{class:"go",onClick:b(a=>function(e){(null==e?void 0:e.lat)&&(null==e?void 0:e.lng)?C({latitude:Number(e.lat),longitude:Number(e.lng),name:e.name||"站点",address:e.address||""}):x({title:"暂无导航坐标",icon:"none"})}(e),["stop"])},{default:i(()=>[g("导航")]),_:2},1032,["onClick"])]),_:2},1032,["onClick"]))),128))]}),_:1}),P.value?(u(),n(s,{key:0,class:"intro-card"},{default:i(()=>[o(s,{class:"sec-title-row"},{default:i(()=>[o(t,{class:"sec-title"},{default:i(()=>[g("线路简介")]),_:1}),K.value?(u(),n(t,{key:0,class:"expand-link",onClick:a[0]||(a[0]=e=>I.value=!I.value)},{default:i(()=>[g(f(I.value?"收起":"展开"),1)]),_:1})):_("",!0)]),_:1}),o(s,{class:y(["intro-rich-wrap judge-intro",{"is-collapsed":K.value&&!I.value}])},{default:i(()=>[o(S,{class:"intro-rich",nodes:P.value},null,8,["nodes"])]),_:1},8,["class"])]),_:1})):_("",!0),o(s,{class:"safe-bottom"})]),_:1})]),_:1})}}}),[["__scopeId","data-v-b9bc3caa"]]);export{I as default}; diff --git a/public/h5/assets/pages-traffic-index.D1ZYvI_4.js b/public/h5/assets/pages-traffic-index.ixM56Iss.js similarity index 98% rename from public/h5/assets/pages-traffic-index.D1ZYvI_4.js rename to public/h5/assets/pages-traffic-index.ixM56Iss.js index e51249e..2b54d9c 100644 --- a/public/h5/assets/pages-traffic-index.D1ZYvI_4.js +++ b/public/h5/assets/pages-traffic-index.ixM56Iss.js @@ -1 +1 @@ -import{d as a,r as e,c as l,o as t,a2 as s,w as u,b as d,e as v,a9 as c,v as n,t as r,u as i,x as o,y as f,D as h,z as _,aa as x,a8 as y,A as m,F as p,B as g}from"./index-q6pkZS4X.js";import{_ as k}from"./_plugin-vue_export-helper.BCo6x5W8.js";const S="trafficLineChart",w=k(a({__name:"index",setup(a){const k=e("week"),w={week:[{date:"04-03",value:12358},{date:"04-04",value:15540},{date:"04-05",value:14200},{date:"04-06",value:18680},{date:"04-07",value:14820},{date:"04-08",value:20550},{date:"04-09",value:32100}],month:[{date:"04-01",value:12800},{date:"04-05",value:18800},{date:"04-10",value:17600},{date:"04-15",value:22900},{date:"04-20",value:19600},{date:"04-25",value:26400},{date:"04-30",value:30100}],year:[{date:"01月",value:268e3},{date:"03月",value:292e3},{date:"05月",value:318e3},{date:"07月",value:346e3},{date:"09月",value:332e3},{date:"11月",value:368e3},{date:"12月",value:392e3}]},b=l(()=>w[k.value]),T=l(()=>{var a,e;return`${(null==(a=b.value[0])?void 0:a.date)||"-"} 至 ${(null==(e=b.value[b.value.length-1])?void 0:e.date)||"-"}`}),C=l(()=>b.value.reduce((a,e)=>e.value>a.value?e:a,b.value[0]));function F(){const a=b.value;if(!a.length)return;const e=c(S),l=24,t=18,s=24,u=18,d=260,v=Math.min(...a.map(a=>a.value)),n=Math.max(...a.map(a=>a.value)),r=Math.max(1,n-v),i=680-u-t,o=d-l-s;e.clearRect(0,0,680,d);const f=e.createLinearGradient(0,l,0,d);f.addColorStop(0,"rgba(5,201,172,0.35)"),f.addColorStop(1,"rgba(5,201,172,0.02)");const h=a.map((e,t)=>({x:u+i*t/Math.max(1,a.length-1),y:l+(n-e.value)/r*o,value:e.value,date:e.date}));e.beginPath(),h.forEach((a,l)=>0===l?e.moveTo(a.x,a.y):e.lineTo(a.x,a.y)),e.lineTo(h[h.length-1].x,252),e.lineTo(h[0].x,252),e.closePath(),e.setFillStyle(f),e.fill(),e.beginPath(),h.forEach((a,l)=>0===l?e.moveTo(a.x,a.y):e.lineTo(a.x,a.y)),e.setStrokeStyle("#05c9ac"),e.setLineWidth(5),e.stroke(),e.setFillStyle("#ff7d00"),h.forEach(a=>{e.beginPath(),e.arc(a.x,a.y,6,0,2*Math.PI),e.fill(),e.setFillStyle("#4e5969"),e.setFontSize(20),e.fillText(a.value.toLocaleString(),a.x-34,a.y-12),e.setFillStyle("#ff7d00")}),e.draw()}return t(async()=>{await s(),F()}),u(k,async()=>{await s(),F()}),(a,e)=>{const l=n,t=o,s=x;return r(),d(l,{class:"page"},{default:v(()=>[i(l,{class:"section-title"},{default:v(()=>[i(l,{class:"bar"}),i(t,{class:"title"},{default:v(()=>[f("全市参观人数")]),_:1}),i(l,{class:"period"},{default:v(()=>[i(t,{class:h({active:"week"===k.value}),onClick:e[0]||(e[0]=a=>k.value="week")},{default:v(()=>[f("周")]),_:1},8,["class"]),i(t,{class:h({active:"month"===k.value}),onClick:e[1]||(e[1]=a=>k.value="month")},{default:v(()=>[f("月")]),_:1},8,["class"]),i(t,{class:h({active:"year"===k.value}),onClick:e[2]||(e[2]=a=>k.value="year")},{default:v(()=>[f("年")]),_:1},8,["class"])]),_:1})]),_:1}),i(l,{class:"date-range"},{default:v(()=>[f(_(T.value),1)]),_:1}),i(l,{class:"chart-card"},{default:v(()=>[i(s,{"canvas-id":S,id:S,class:"chart-canvas",style:y("width:680rpx;height:260rpx;")},null,8,["style"]),i(l,{class:"x-axis"},{default:v(()=>[(r(!0),m(p,null,g(b.value,a=>(r(),d(t,{key:a.date},{default:v(()=>[f(_(a.date),1)]),_:2},1024))),128))]),_:1})]),_:1}),i(l,{class:"list-card"},{default:v(()=>[i(l,{class:"list-title"},{default:v(()=>[f("参观人数列表")]),_:1}),(r(!0),m(p,null,g(b.value,a=>(r(),d(l,{key:a.date,class:"row"},{default:v(()=>{var e;return[i(t,{class:"d"},{default:v(()=>[f(_(a.date),1)]),_:2},1024),i(t,{class:h(["c",{hot:a.date===(null==(e=C.value)?void 0:e.date)}])},{default:v(()=>{return[f(_((e=a.value,`${e.toLocaleString()}人`)),1)];var e}),_:2},1032,["class"])]}),_:2},1024))),128))]),_:1})]),_:1})}}}),[["__scopeId","data-v-bc58d322"]]);export{w as default}; +import{d as a,r as e,c as l,o as t,a2 as s,w as u,b as d,e as v,a9 as c,v as n,t as r,u as i,x as o,y as f,D as h,z as _,aa as x,a8 as y,A as m,F as p,B as g}from"./index-BznAv2H5.js";import{_ as k}from"./_plugin-vue_export-helper.BCo6x5W8.js";const S="trafficLineChart",w=k(a({__name:"index",setup(a){const k=e("week"),w={week:[{date:"04-03",value:12358},{date:"04-04",value:15540},{date:"04-05",value:14200},{date:"04-06",value:18680},{date:"04-07",value:14820},{date:"04-08",value:20550},{date:"04-09",value:32100}],month:[{date:"04-01",value:12800},{date:"04-05",value:18800},{date:"04-10",value:17600},{date:"04-15",value:22900},{date:"04-20",value:19600},{date:"04-25",value:26400},{date:"04-30",value:30100}],year:[{date:"01月",value:268e3},{date:"03月",value:292e3},{date:"05月",value:318e3},{date:"07月",value:346e3},{date:"09月",value:332e3},{date:"11月",value:368e3},{date:"12月",value:392e3}]},b=l(()=>w[k.value]),T=l(()=>{var a,e;return`${(null==(a=b.value[0])?void 0:a.date)||"-"} 至 ${(null==(e=b.value[b.value.length-1])?void 0:e.date)||"-"}`}),C=l(()=>b.value.reduce((a,e)=>e.value>a.value?e:a,b.value[0]));function F(){const a=b.value;if(!a.length)return;const e=c(S),l=24,t=18,s=24,u=18,d=260,v=Math.min(...a.map(a=>a.value)),n=Math.max(...a.map(a=>a.value)),r=Math.max(1,n-v),i=680-u-t,o=d-l-s;e.clearRect(0,0,680,d);const f=e.createLinearGradient(0,l,0,d);f.addColorStop(0,"rgba(5,201,172,0.35)"),f.addColorStop(1,"rgba(5,201,172,0.02)");const h=a.map((e,t)=>({x:u+i*t/Math.max(1,a.length-1),y:l+(n-e.value)/r*o,value:e.value,date:e.date}));e.beginPath(),h.forEach((a,l)=>0===l?e.moveTo(a.x,a.y):e.lineTo(a.x,a.y)),e.lineTo(h[h.length-1].x,252),e.lineTo(h[0].x,252),e.closePath(),e.setFillStyle(f),e.fill(),e.beginPath(),h.forEach((a,l)=>0===l?e.moveTo(a.x,a.y):e.lineTo(a.x,a.y)),e.setStrokeStyle("#05c9ac"),e.setLineWidth(5),e.stroke(),e.setFillStyle("#ff7d00"),h.forEach(a=>{e.beginPath(),e.arc(a.x,a.y,6,0,2*Math.PI),e.fill(),e.setFillStyle("#4e5969"),e.setFontSize(20),e.fillText(a.value.toLocaleString(),a.x-34,a.y-12),e.setFillStyle("#ff7d00")}),e.draw()}return t(async()=>{await s(),F()}),u(k,async()=>{await s(),F()}),(a,e)=>{const l=n,t=o,s=x;return r(),d(l,{class:"page"},{default:v(()=>[i(l,{class:"section-title"},{default:v(()=>[i(l,{class:"bar"}),i(t,{class:"title"},{default:v(()=>[f("全市参观人数")]),_:1}),i(l,{class:"period"},{default:v(()=>[i(t,{class:h({active:"week"===k.value}),onClick:e[0]||(e[0]=a=>k.value="week")},{default:v(()=>[f("周")]),_:1},8,["class"]),i(t,{class:h({active:"month"===k.value}),onClick:e[1]||(e[1]=a=>k.value="month")},{default:v(()=>[f("月")]),_:1},8,["class"]),i(t,{class:h({active:"year"===k.value}),onClick:e[2]||(e[2]=a=>k.value="year")},{default:v(()=>[f("年")]),_:1},8,["class"])]),_:1})]),_:1}),i(l,{class:"date-range"},{default:v(()=>[f(_(T.value),1)]),_:1}),i(l,{class:"chart-card"},{default:v(()=>[i(s,{"canvas-id":S,id:S,class:"chart-canvas",style:y("width:680rpx;height:260rpx;")},null,8,["style"]),i(l,{class:"x-axis"},{default:v(()=>[(r(!0),m(p,null,g(b.value,a=>(r(),d(t,{key:a.date},{default:v(()=>[f(_(a.date),1)]),_:2},1024))),128))]),_:1})]),_:1}),i(l,{class:"list-card"},{default:v(()=>[i(l,{class:"list-title"},{default:v(()=>[f("参观人数列表")]),_:1}),(r(!0),m(p,null,g(b.value,a=>(r(),d(l,{key:a.date,class:"row"},{default:v(()=>{var e;return[i(t,{class:"d"},{default:v(()=>[f(_(a.date),1)]),_:2},1024),i(t,{class:h(["c",{hot:a.date===(null==(e=C.value)?void 0:e.date)}])},{default:v(()=>{return[f(_((e=a.value,`${e.toLocaleString()}人`)),1)];var e}),_:2},1032,["class"])]}),_:2},1024))),128))]),_:1})]),_:1})}}}),[["__scopeId","data-v-bc58d322"]]);export{w as default}; diff --git a/public/h5/assets/pages-venue-detail.dfYe-qzU.js b/public/h5/assets/pages-venue-detail.CrUsEMFB.js similarity index 99% rename from public/h5/assets/pages-venue-detail.dfYe-qzU.js rename to public/h5/assets/pages-venue-detail.CrUsEMFB.js index c499a94..3ea0f8b 100644 --- a/public/h5/assets/pages-venue-detail.dfYe-qzU.js +++ b/public/h5/assets/pages-venue-detail.CrUsEMFB.js @@ -1 +1 @@ -import{d as e,r as l,c as a,w as s,Y as t,b as u,e as i,p as c,v as n,t as r,u as o,S as d,Z as v,A as f,F as p,B as _,_ as g,E as m,$ as h,y,z as k,x as b,a8 as w,H as x,D as $,G as j,a0 as S,R as C,f as F,a1 as z,a2 as N,a3 as R,a4 as A,a5 as I}from"./index-q6pkZS4X.js";import{l as q}from"./content.4AgB0jqB.js";import{h as B,f as D}from"./geo.BHVFNtB7.js";import{u as E,t as G,g as H,m as T,a as Y}from"./tip.CRDnOkzn.js";import{_ as Z}from"./_plugin-vue_export-helper.BCo6x5W8.js";const J=Z(e({__name:"detail",setup(e){const Z={science_venue:"科技场馆类",education_research:"教育科研类",agriculture:"“三农”类",enterprise:"企业类",nature_resource:"自然资源类",other:"其他类"},J={free:"免费",paid:"收费"};function K(e,l){let a=e.replace("#","").trim();if(3===a.length&&(a=a.split("").map(e=>e+e).join("")),6!==a.length)return`rgba(5, 201, 172, ${l})`;const s=parseInt(a,16);return`rgba(${s>>16&255},${s>>8&255},${255&s},${l})`}function L(e){if(!e||"string"!=typeof e)return"";const l="max-width:100%;height:auto;display:block;vertical-align:top;";return e.replace(/|>)/gi,(e,a,s)=>{const t=String(a).trim();if(/style\s*=/i.test(t))return/max-width\s*:/i.test(t)?e:e.replace(/style\s*=\s*(["'])([\s\S]*?)\1/i,(e,a,s)=>/max-width/i.test(s)?e:`style=${a}${s};${l}${a}`);return`"===s?" />":">"}`})}function M(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}function O(e){if(!e||!String(e).trim())return!1;return String(e).replace(/<[^>]+>/g," ").replace(/ /gi," ").replace(/\s+/g," ").trim().length>0}const P=l(null),Q=l(!0),U=l(!0),V=l(!0),W=l(!1),X=l(!1),ee=l(!1),le=l("--"),ae=l(null),se=a(()=>{const e=P.value;return e?Array.isArray(e.carousel)&&e.carousel.length?e.carousel:e.cover_image?[{type:"image",url:e.cover_image}]:[]:[]}),te=a(()=>{var e;const l=null==(e=P.value)?void 0:e.reservation_notice;if(null==l||""===l)return"";const a=String(l);let s="";if(/<[a-z][\s\S]*>/i.test(a))s=L(a);else{s=`
${M(a)}
`}return O(s)?s:""});const ue=a(()=>{var e;return function(e){if(null==e||""===e)return"";const l=String(e);let a="";a=/<[a-z][\s\S]*>/i.test(l)?L(l):`
${M(l)}
`;return O(a)?a:""}(null==(e=P.value)?void 0:e.study_courses)}),ie=a(()=>{var e;const l=null==(e=P.value)?void 0:e.detail_html;if(!l)return"";const a=L(String(l));return O(a)?a:""}),ce=a(()=>{var e;const l=(null==(e=P.value)?void 0:e.venue_type_color)||"#05c9ac";return{color:l,backgroundColor:K(l,.14),border:`1px solid ${K(l,.35)}`}});function ne(){const e=P.value;if(!(null==e?void 0:e.lat)||!(null==e?void 0:e.lng)||!ae.value)return void(le.value="--");const l=B(ae.value.lat,ae.value.lng,Number(e.lat),Number(e.lng));le.value=D(l)}function re(){var e,l,a,s;const t=Number((null==(e=P.value)?void 0:e.lat)||0),u=Number((null==(l=P.value)?void 0:l.lng)||0);t&&u?z({latitude:t,longitude:u,name:(null==(a=P.value)?void 0:a.name)||"场馆",address:(null==(s=P.value)?void 0:s.address)||""}):F({title:"暂无导航坐标",icon:"none"})}return s(P,()=>{ne()}),s([ie,ue,te],()=>{Q.value=!0,U.value=!0,V.value=!0,N(()=>{setTimeout(()=>{var e;const l=null==(e=R())?void 0:e.proxy,a=A();l&&a.in(l);const s=I(180);a.select(".judge-intro").boundingClientRect(),a.select(".judge-courses").boundingClientRect(),a.select(".judge-notice").boundingClientRect(),a.exec(e=>{const[l,a,t]=e||[];W.value=!!(l&&l.height&&l.height>s+1),X.value=!!(a&&a.height&&a.height>s+1),ee.value=!!(t&&t.height&&t.height>s+1)})},120)})}),t(async e=>{const l=Number((null==e?void 0:e.id)||0);l&&(P.value=await q(l),c({type:"gcj02",success:e=>{ae.value={lat:e.latitude,lng:e.longitude},ne()},fail:()=>{le.value="--"}}))}),(e,l)=>{const a=m,s=h,t=g,c=v,F=n,z=b,N=S,R=d,A=C;return r(),u(F,{class:"page"},{default:i(()=>[o(R,{"scroll-y":"",class:"scroll"},{default:i(()=>[o(F,{class:"hero"},{default:i(()=>[se.value.length?(r(),u(c,{key:0,class:"hero-swiper",circular:"","indicator-dots":se.value.length>1,"indicator-active-color":"#05c9ac","indicator-color":"rgba(255,255,255,0.45)"},{default:i(()=>[(r(!0),f(p,null,_(se.value,(e,l)=>(r(),u(t,{key:"s-"+l,class:"swiper-item"},{default:i(()=>["video"!==e.type?(r(),u(a,{key:0,class:"slide-media",src:e.url,mode:"aspectFill"},null,8,["src"])):(r(),u(s,{key:1,class:"slide-media slide-video",src:e.url,controls:"","object-fit":"cover","show-center-play-btn":!0},null,8,["src"]))]),_:2},1024))),128))]),_:1},8,["indicator-dots"])):(r(),u(F,{key:1,class:"hero-placeholder"})),o(F,{class:"live-badge"},{default:i(()=>{var e;return[y(" 当前馆内人数:"+k((null==(e=P.value)?void 0:e.live_people_count)??0)+"人 ",1)]}),_:1})]),_:1}),o(F,{class:"main-card"},{default:i(()=>{var e,s,t,c,n,d;return[o(z,{class:"venue-name"},{default:i(()=>{var e;return[y(k((null==(e=P.value)?void 0:e.name)||"-"),1)]}),_:1}),(null==(e=P.value)?void 0:e.venue_type)||(null==(s=P.value)?void 0:s.ticket_type)||(null==(t=P.value)?void 0:t.district)?(r(),u(F,{key:0,class:"chip-row"},{default:i(()=>{var e,l,a;return[(null==(e=P.value)?void 0:e.venue_type)?(r(),u(z,{key:0,class:"chip",style:w(ce.value)},{default:i(()=>{return[y(k((e=P.value.venue_type,e?Z[e]||e:"")),1)];var e}),_:1},8,["style"])):x("",!0),(null==(l=P.value)?void 0:l.ticket_type)?(r(),u(z,{key:1,class:$(["chip","paid"===P.value.ticket_type?"chip-paid":"chip-free"])},{default:i(()=>{return[y(k((e=P.value.ticket_type,e?J[e]||e:"")),1)];var e}),_:1},8,["class"])):x("",!0),(null==(a=P.value)?void 0:a.district)?(r(),u(z,{key:2,class:"chip chip-district"},{default:i(()=>[y(k(P.value.district),1)]),_:1})):x("",!0)]}),_:1})):x("",!0),(null==(c=P.value)?void 0:c.unit_name)?(r(),u(F,{key:1,class:"info-row"},{default:i(()=>[o(a,{class:"info-ico",src:j(E),mode:"aspectFit"},null,8,["src"]),o(F,{class:"info-text-col"},{default:i(()=>[o(z,{class:"info-text"},{default:i(()=>[y("所属单位:"+k(P.value.unit_name),1)]),_:1})]),_:1})]),_:1})):x("",!0),(null==(n=P.value)?void 0:n.open_time)?(r(),u(F,{key:2,class:"info-row"},{default:i(()=>[o(a,{class:"info-ico",src:j(G),mode:"aspectFit"},null,8,["src"]),o(F,{class:"info-text-col"},{default:i(()=>[o(z,{class:"info-text"},{default:i(()=>[y("开放时间:"+k(P.value.open_time),1)]),_:1})]),_:1})]),_:1})):x("",!0),o(F,{class:"info-row"},{default:i(()=>[o(a,{class:"info-ico",src:j(H),mode:"aspectFit"},null,8,["src"]),o(F,{class:"info-text-col"},{default:i(()=>[o(z,{class:"info-text"},{default:i(()=>[y("距离:"+k(le.value),1)]),_:1})]),_:1})]),_:1}),(null==(d=P.value)?void 0:d.address)?(r(),u(F,{key:3,class:"info-row"},{default:i(()=>[o(a,{class:"info-ico",src:j(T),mode:"aspectFit"},null,8,["src"]),o(F,{class:"info-text-col"},{default:i(()=>[o(z,{class:"info-text"},{default:i(()=>[y("具体地址:"+k(P.value.address),1)]),_:1})]),_:1})]),_:1})):x("",!0),te.value?(r(),u(F,{key:4,class:"notice-block"},{default:i(()=>[o(F,{class:"sec-title-row notice-head-row"},{default:i(()=>[o(F,{class:"notice-head-left"},{default:i(()=>[o(a,{class:"info-ico",src:j(Y),mode:"aspectFit"},null,8,["src"]),o(z,{class:"notice-label"},{default:i(()=>[y("预约须知")]),_:1})]),_:1}),ee.value?(r(),u(z,{key:0,class:"expand-link",onClick:l[0]||(l[0]=e=>V.value=!V.value)},{default:i(()=>[y(k(V.value?"收起":"展开"),1)]),_:1})):x("",!0)]),_:1}),o(F,{class:$(["notice-block-body judge-notice",{"is-collapsed":ee.value&&!V.value}])},{default:i(()=>[o(N,{class:"notice-inline-rich",nodes:te.value},null,8,["nodes"])]),_:1},8,["class"])]),_:1})):x("",!0)]}),_:1}),ie.value?(r(),u(F,{key:0,class:"intro-card"},{default:i(()=>[o(F,{class:"sec-title-row"},{default:i(()=>[o(z,{class:"sec-title"},{default:i(()=>[y("场馆介绍")]),_:1}),W.value?(r(),u(z,{key:0,class:"expand-link",onClick:l[1]||(l[1]=e=>Q.value=!Q.value)},{default:i(()=>[y(k(Q.value?"收起":"展开"),1)]),_:1})):x("",!0)]),_:1}),o(F,{class:$(["intro-rich-wrap judge-intro",{"is-collapsed":W.value&&!Q.value}])},{default:i(()=>[o(N,{class:"intro-rich",nodes:ie.value},null,8,["nodes"])]),_:1},8,["class"])]),_:1})):x("",!0),ue.value?(r(),u(F,{key:1,class:"courses-card"},{default:i(()=>[o(F,{class:"sec-title-row"},{default:i(()=>[o(z,{class:"sec-title"},{default:i(()=>[y("研学课程")]),_:1}),X.value?(r(),u(z,{key:0,class:"expand-link",onClick:l[2]||(l[2]=e=>U.value=!U.value)},{default:i(()=>[y(k(U.value?"收起":"展开"),1)]),_:1})):x("",!0)]),_:1}),o(F,{class:$(["courses-rich-wrap judge-courses",{"is-collapsed":X.value&&!U.value}])},{default:i(()=>[o(N,{class:"courses-rich",nodes:ue.value},null,8,["nodes"])]),_:1},8,["class"])]),_:1})):x("",!0),o(F,{class:"safe-bottom"})]),_:1}),o(F,{class:"action-bar"},{default:i(()=>[o(A,{class:"btn primary",onClick:re},{default:i(()=>[y("一键导航")]),_:1})]),_:1})]),_:1})}}}),[["__scopeId","data-v-6c083375"]]);export{J as default}; +import{d as e,r as l,c as a,w as s,Y as t,b as u,e as i,p as c,v as n,t as r,u as o,S as d,Z as v,A as f,F as p,B as _,_ as g,E as m,$ as h,y,z as k,x as b,a8 as w,H as x,D as $,G as j,a0 as S,R as C,f as F,a1 as z,a2 as N,a3 as R,a4 as A,a5 as I}from"./index-BznAv2H5.js";import{l as q}from"./content.IclVJQGc.js";import{h as B,f as D}from"./geo.BHVFNtB7.js";import{u as E,t as G,g as H,m as T,a as Y}from"./tip.CRDnOkzn.js";import{_ as Z}from"./_plugin-vue_export-helper.BCo6x5W8.js";const J=Z(e({__name:"detail",setup(e){const Z={science_venue:"科技场馆类",education_research:"教育科研类",agriculture:"“三农”类",enterprise:"企业类",nature_resource:"自然资源类",other:"其他类"},J={free:"免费",paid:"收费"};function K(e,l){let a=e.replace("#","").trim();if(3===a.length&&(a=a.split("").map(e=>e+e).join("")),6!==a.length)return`rgba(5, 201, 172, ${l})`;const s=parseInt(a,16);return`rgba(${s>>16&255},${s>>8&255},${255&s},${l})`}function L(e){if(!e||"string"!=typeof e)return"";const l="max-width:100%;height:auto;display:block;vertical-align:top;";return e.replace(/|>)/gi,(e,a,s)=>{const t=String(a).trim();if(/style\s*=/i.test(t))return/max-width\s*:/i.test(t)?e:e.replace(/style\s*=\s*(["'])([\s\S]*?)\1/i,(e,a,s)=>/max-width/i.test(s)?e:`style=${a}${s};${l}${a}`);return`"===s?" />":">"}`})}function M(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}function O(e){if(!e||!String(e).trim())return!1;return String(e).replace(/<[^>]+>/g," ").replace(/ /gi," ").replace(/\s+/g," ").trim().length>0}const P=l(null),Q=l(!0),U=l(!0),V=l(!0),W=l(!1),X=l(!1),ee=l(!1),le=l("--"),ae=l(null),se=a(()=>{const e=P.value;return e?Array.isArray(e.carousel)&&e.carousel.length?e.carousel:e.cover_image?[{type:"image",url:e.cover_image}]:[]:[]}),te=a(()=>{var e;const l=null==(e=P.value)?void 0:e.reservation_notice;if(null==l||""===l)return"";const a=String(l);let s="";if(/<[a-z][\s\S]*>/i.test(a))s=L(a);else{s=`
${M(a)}
`}return O(s)?s:""});const ue=a(()=>{var e;return function(e){if(null==e||""===e)return"";const l=String(e);let a="";a=/<[a-z][\s\S]*>/i.test(l)?L(l):`
${M(l)}
`;return O(a)?a:""}(null==(e=P.value)?void 0:e.study_courses)}),ie=a(()=>{var e;const l=null==(e=P.value)?void 0:e.detail_html;if(!l)return"";const a=L(String(l));return O(a)?a:""}),ce=a(()=>{var e;const l=(null==(e=P.value)?void 0:e.venue_type_color)||"#05c9ac";return{color:l,backgroundColor:K(l,.14),border:`1px solid ${K(l,.35)}`}});function ne(){const e=P.value;if(!(null==e?void 0:e.lat)||!(null==e?void 0:e.lng)||!ae.value)return void(le.value="--");const l=B(ae.value.lat,ae.value.lng,Number(e.lat),Number(e.lng));le.value=D(l)}function re(){var e,l,a,s;const t=Number((null==(e=P.value)?void 0:e.lat)||0),u=Number((null==(l=P.value)?void 0:l.lng)||0);t&&u?z({latitude:t,longitude:u,name:(null==(a=P.value)?void 0:a.name)||"场馆",address:(null==(s=P.value)?void 0:s.address)||""}):F({title:"暂无导航坐标",icon:"none"})}return s(P,()=>{ne()}),s([ie,ue,te],()=>{Q.value=!0,U.value=!0,V.value=!0,N(()=>{setTimeout(()=>{var e;const l=null==(e=R())?void 0:e.proxy,a=A();l&&a.in(l);const s=I(180);a.select(".judge-intro").boundingClientRect(),a.select(".judge-courses").boundingClientRect(),a.select(".judge-notice").boundingClientRect(),a.exec(e=>{const[l,a,t]=e||[];W.value=!!(l&&l.height&&l.height>s+1),X.value=!!(a&&a.height&&a.height>s+1),ee.value=!!(t&&t.height&&t.height>s+1)})},120)})}),t(async e=>{const l=Number((null==e?void 0:e.id)||0);l&&(P.value=await q(l),c({type:"gcj02",success:e=>{ae.value={lat:e.latitude,lng:e.longitude},ne()},fail:()=>{le.value="--"}}))}),(e,l)=>{const a=m,s=h,t=g,c=v,F=n,z=b,N=S,R=d,A=C;return r(),u(F,{class:"page"},{default:i(()=>[o(R,{"scroll-y":"",class:"scroll"},{default:i(()=>[o(F,{class:"hero"},{default:i(()=>[se.value.length?(r(),u(c,{key:0,class:"hero-swiper",circular:"","indicator-dots":se.value.length>1,"indicator-active-color":"#05c9ac","indicator-color":"rgba(255,255,255,0.45)"},{default:i(()=>[(r(!0),f(p,null,_(se.value,(e,l)=>(r(),u(t,{key:"s-"+l,class:"swiper-item"},{default:i(()=>["video"!==e.type?(r(),u(a,{key:0,class:"slide-media",src:e.url,mode:"aspectFill"},null,8,["src"])):(r(),u(s,{key:1,class:"slide-media slide-video",src:e.url,controls:"","object-fit":"cover","show-center-play-btn":!0},null,8,["src"]))]),_:2},1024))),128))]),_:1},8,["indicator-dots"])):(r(),u(F,{key:1,class:"hero-placeholder"})),o(F,{class:"live-badge"},{default:i(()=>{var e;return[y(" 当前馆内人数:"+k((null==(e=P.value)?void 0:e.live_people_count)??0)+"人 ",1)]}),_:1})]),_:1}),o(F,{class:"main-card"},{default:i(()=>{var e,s,t,c,n,d;return[o(z,{class:"venue-name"},{default:i(()=>{var e;return[y(k((null==(e=P.value)?void 0:e.name)||"-"),1)]}),_:1}),(null==(e=P.value)?void 0:e.venue_type)||(null==(s=P.value)?void 0:s.ticket_type)||(null==(t=P.value)?void 0:t.district)?(r(),u(F,{key:0,class:"chip-row"},{default:i(()=>{var e,l,a;return[(null==(e=P.value)?void 0:e.venue_type)?(r(),u(z,{key:0,class:"chip",style:w(ce.value)},{default:i(()=>{return[y(k((e=P.value.venue_type,e?Z[e]||e:"")),1)];var e}),_:1},8,["style"])):x("",!0),(null==(l=P.value)?void 0:l.ticket_type)?(r(),u(z,{key:1,class:$(["chip","paid"===P.value.ticket_type?"chip-paid":"chip-free"])},{default:i(()=>{return[y(k((e=P.value.ticket_type,e?J[e]||e:"")),1)];var e}),_:1},8,["class"])):x("",!0),(null==(a=P.value)?void 0:a.district)?(r(),u(z,{key:2,class:"chip chip-district"},{default:i(()=>[y(k(P.value.district),1)]),_:1})):x("",!0)]}),_:1})):x("",!0),(null==(c=P.value)?void 0:c.unit_name)?(r(),u(F,{key:1,class:"info-row"},{default:i(()=>[o(a,{class:"info-ico",src:j(E),mode:"aspectFit"},null,8,["src"]),o(F,{class:"info-text-col"},{default:i(()=>[o(z,{class:"info-text"},{default:i(()=>[y("所属单位:"+k(P.value.unit_name),1)]),_:1})]),_:1})]),_:1})):x("",!0),(null==(n=P.value)?void 0:n.open_time)?(r(),u(F,{key:2,class:"info-row"},{default:i(()=>[o(a,{class:"info-ico",src:j(G),mode:"aspectFit"},null,8,["src"]),o(F,{class:"info-text-col"},{default:i(()=>[o(z,{class:"info-text"},{default:i(()=>[y("开放时间:"+k(P.value.open_time),1)]),_:1})]),_:1})]),_:1})):x("",!0),o(F,{class:"info-row"},{default:i(()=>[o(a,{class:"info-ico",src:j(H),mode:"aspectFit"},null,8,["src"]),o(F,{class:"info-text-col"},{default:i(()=>[o(z,{class:"info-text"},{default:i(()=>[y("距离:"+k(le.value),1)]),_:1})]),_:1})]),_:1}),(null==(d=P.value)?void 0:d.address)?(r(),u(F,{key:3,class:"info-row"},{default:i(()=>[o(a,{class:"info-ico",src:j(T),mode:"aspectFit"},null,8,["src"]),o(F,{class:"info-text-col"},{default:i(()=>[o(z,{class:"info-text"},{default:i(()=>[y("具体地址:"+k(P.value.address),1)]),_:1})]),_:1})]),_:1})):x("",!0),te.value?(r(),u(F,{key:4,class:"notice-block"},{default:i(()=>[o(F,{class:"sec-title-row notice-head-row"},{default:i(()=>[o(F,{class:"notice-head-left"},{default:i(()=>[o(a,{class:"info-ico",src:j(Y),mode:"aspectFit"},null,8,["src"]),o(z,{class:"notice-label"},{default:i(()=>[y("预约须知")]),_:1})]),_:1}),ee.value?(r(),u(z,{key:0,class:"expand-link",onClick:l[0]||(l[0]=e=>V.value=!V.value)},{default:i(()=>[y(k(V.value?"收起":"展开"),1)]),_:1})):x("",!0)]),_:1}),o(F,{class:$(["notice-block-body judge-notice",{"is-collapsed":ee.value&&!V.value}])},{default:i(()=>[o(N,{class:"notice-inline-rich",nodes:te.value},null,8,["nodes"])]),_:1},8,["class"])]),_:1})):x("",!0)]}),_:1}),ie.value?(r(),u(F,{key:0,class:"intro-card"},{default:i(()=>[o(F,{class:"sec-title-row"},{default:i(()=>[o(z,{class:"sec-title"},{default:i(()=>[y("场馆介绍")]),_:1}),W.value?(r(),u(z,{key:0,class:"expand-link",onClick:l[1]||(l[1]=e=>Q.value=!Q.value)},{default:i(()=>[y(k(Q.value?"收起":"展开"),1)]),_:1})):x("",!0)]),_:1}),o(F,{class:$(["intro-rich-wrap judge-intro",{"is-collapsed":W.value&&!Q.value}])},{default:i(()=>[o(N,{class:"intro-rich",nodes:ie.value},null,8,["nodes"])]),_:1},8,["class"])]),_:1})):x("",!0),ue.value?(r(),u(F,{key:1,class:"courses-card"},{default:i(()=>[o(F,{class:"sec-title-row"},{default:i(()=>[o(z,{class:"sec-title"},{default:i(()=>[y("研学课程")]),_:1}),X.value?(r(),u(z,{key:0,class:"expand-link",onClick:l[2]||(l[2]=e=>U.value=!U.value)},{default:i(()=>[y(k(U.value?"收起":"展开"),1)]),_:1})):x("",!0)]),_:1}),o(F,{class:$(["courses-rich-wrap judge-courses",{"is-collapsed":X.value&&!U.value}])},{default:i(()=>[o(N,{class:"courses-rich",nodes:ue.value},null,8,["nodes"])]),_:1},8,["class"])]),_:1})):x("",!0),o(F,{class:"safe-bottom"})]),_:1}),o(F,{class:"action-bar"},{default:i(()=>[o(A,{class:"btn primary",onClick:re},{default:i(()=>[y("一键导航")]),_:1})]),_:1})]),_:1})}}}),[["__scopeId","data-v-6c083375"]]);export{J as default}; diff --git a/public/h5/index.html b/public/h5/index.html index e1e74b2..3b4d50a 100644 --- a/public/h5/index.html +++ b/public/h5/index.html @@ -6,7 +6,7 @@ 苏州科普 - +