From e4acb00a5eaa39412d8be4a33c756447f0233375 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Mon, 13 Apr 2026 16:33:28 +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 --- .../{content.SYmDdoIV.js => content.ztt6U5do.js} | 2 +- public/h5/assets/detail-BW1AOgWM.css | 1 + public/h5/assets/detail-COIDwukw.css | 1 - .../{index-Cu9ZRBys.js => index-DNch_z6T.js} | 6 +++--- .../h5/assets/pages-activity-detail.B0yja156.js | 1 - .../h5/assets/pages-activity-detail.DIWVz8T4.js | 1 + ...nhpKx.js => pages-activity-index.GAWfIboK.js} | 2 +- ...eeD.js => pages-activity-reserve.BZwl1dca.js} | 2 +- .../h5/assets/pages-discover-index.DnOZn1Pa.js | 1 - .../h5/assets/pages-discover-index.RghqNFtD.js | 1 + public/h5/assets/pages-index-index.B7hx22lS.js | 1 + public/h5/assets/pages-index-index.J33UTvrh.js | 1 - ...x.y7DvJciF.js => pages-map-index.CddKnaMv.js} | 2 +- ....JeDX1I_H.js => pages-mine-index.C7_Vjjk5.js} | 2 +- ...Ca-piMNi.js => pages-mine-orders.CVyOZOlW.js} | 2 +- ...=> pages-mine-reservation-detail.BFqxpPGd.js} | 2 +- ...CfGwH5VW.js => pages-stats-index.BlEM6V2H.js} | 2 +- ...MR.js => pages-study-tour-detail.DG7W93UV.js} | 2 +- ...UqIwJD.js => pages-traffic-index.BpC6QlYs.js} | 2 +- public/h5/assets/pages-venue-detail.Bh9QIq4N.js | 1 + public/h5/assets/pages-venue-detail.jukb5IQL.js | 1 - public/h5/assets/search.BJnl3YRK.js | 1 + public/h5/index.html | 2 +- public/h5/static/tab/icon1.png | Bin 0 -> 1766 bytes public/h5/static/tab/icon1_cur.png | Bin 0 -> 2319 bytes public/h5/static/tab/icon2.png | Bin 0 -> 2737 bytes public/h5/static/tab/icon2_cur.png | Bin 0 -> 2831 bytes public/h5/static/tab/icon3.png | Bin 0 -> 1830 bytes public/h5/static/tab/icon3_cur.png | Bin 0 -> 2099 bytes public/h5/static/tab/icon4.png | Bin 0 -> 2123 bytes public/h5/static/tab/icon4_cur.png | Bin 0 -> 2425 bytes 31 files changed, 20 insertions(+), 19 deletions(-) rename public/h5/assets/{content.SYmDdoIV.js => content.ztt6U5do.js} (93%) create mode 100644 public/h5/assets/detail-BW1AOgWM.css delete mode 100644 public/h5/assets/detail-COIDwukw.css rename public/h5/assets/{index-Cu9ZRBys.js => index-DNch_z6T.js} (97%) delete mode 100644 public/h5/assets/pages-activity-detail.B0yja156.js create mode 100644 public/h5/assets/pages-activity-detail.DIWVz8T4.js rename public/h5/assets/{pages-activity-index.CkYnhpKx.js => pages-activity-index.GAWfIboK.js} (76%) rename public/h5/assets/{pages-activity-reserve.DizDseeD.js => pages-activity-reserve.BZwl1dca.js} (98%) delete mode 100644 public/h5/assets/pages-discover-index.DnOZn1Pa.js create mode 100644 public/h5/assets/pages-discover-index.RghqNFtD.js create mode 100644 public/h5/assets/pages-index-index.B7hx22lS.js delete mode 100644 public/h5/assets/pages-index-index.J33UTvrh.js rename public/h5/assets/{pages-map-index.y7DvJciF.js => pages-map-index.CddKnaMv.js} (97%) rename public/h5/assets/{pages-mine-index.JeDX1I_H.js => pages-mine-index.C7_Vjjk5.js} (94%) rename public/h5/assets/{pages-mine-orders.Ca-piMNi.js => pages-mine-orders.CVyOZOlW.js} (96%) rename public/h5/assets/{pages-mine-reservation-detail.DZe9vJBg.js => pages-mine-reservation-detail.BFqxpPGd.js} (96%) rename public/h5/assets/{pages-stats-index.CfGwH5VW.js => pages-stats-index.BlEM6V2H.js} (93%) rename public/h5/assets/{pages-study-tour-detail.DWfPNdMR.js => pages-study-tour-detail.DG7W93UV.js} (95%) rename public/h5/assets/{pages-traffic-index.BJUqIwJD.js => pages-traffic-index.BpC6QlYs.js} (94%) create mode 100644 public/h5/assets/pages-venue-detail.Bh9QIq4N.js delete mode 100644 public/h5/assets/pages-venue-detail.jukb5IQL.js create mode 100644 public/h5/assets/search.BJnl3YRK.js create mode 100644 public/h5/static/tab/icon1.png create mode 100644 public/h5/static/tab/icon1_cur.png create mode 100644 public/h5/static/tab/icon2.png create mode 100644 public/h5/static/tab/icon2_cur.png create mode 100644 public/h5/static/tab/icon3.png create mode 100644 public/h5/static/tab/icon3_cur.png create mode 100644 public/h5/static/tab/icon4.png create mode 100644 public/h5/static/tab/icon4_cur.png diff --git a/public/h5/assets/content.SYmDdoIV.js b/public/h5/assets/content.ztt6U5do.js similarity index 93% rename from public/h5/assets/content.SYmDdoIV.js rename to public/h5/assets/content.ztt6U5do.js index 1081077..aabcbcf 100644 --- a/public/h5/assets/content.SYmDdoIV.js +++ b/public/h5/assets/content.ztt6U5do.js @@ -1 +1 @@ -import{h as t}from"./index-Cu9ZRBys.js";function i(i={}){return t.get("/h5/activities",i,{withAuth:!1})}function n(i){return t.get(`/h5/activities/${i}`,{},{withAuth:!1})}function e(){return t.get("/h5/venues",{},{withAuth:!1})}function u(i){return t.get(`/h5/venues/${i}`,{},{withAuth:!1})}function h(i){return t.get(`/h5/study-tours/${i}`,{},{withAuth:!1})}function r(){return t.get("/h5/study-tours",{},{withAuth:!1})}function s(i){return t.get(`/h5/activities/${i}/booking-info`,{},{withAuth:!1})}function o(i,n){return t.post(`/h5/activities/${i}/reservations`,n,{withAuth:!1})}function a(i){return t.get("/h5/my/reservations",{visitor_phone:i},{withAuth:!1})}function c(i,n){return t.get(`/h5/my/reservations/${i}`,{visitor_phone:n},{withAuth:!1})}function f(i,n){return t.post(`/h5/my/reservations/${i}/cancel`,{visitor_phone:n},{withAuth:!1})}export{i as a,r as b,a as c,f as d,n as e,s as f,e as g,o as h,c as i,h as j,u as k}; +import{h as t}from"./index-DNch_z6T.js";function i(i={}){return t.get("/h5/activities",i,{withAuth:!1})}function n(i){return t.get(`/h5/activities/${i}`,{},{withAuth:!1})}function e(){return t.get("/h5/venues",{},{withAuth:!1})}function u(i){return t.get(`/h5/venues/${i}`,{},{withAuth:!1})}function h(i){return t.get(`/h5/study-tours/${i}`,{},{withAuth:!1})}function r(){return t.get("/h5/study-tours",{},{withAuth:!1})}function s(i){return t.get(`/h5/activities/${i}/booking-info`,{},{withAuth:!1})}function o(i,n){return t.post(`/h5/activities/${i}/reservations`,n,{withAuth:!1})}function a(i){return t.get("/h5/my/reservations",{visitor_phone:i},{withAuth:!1})}function c(i,n){return t.get(`/h5/my/reservations/${i}`,{visitor_phone:n},{withAuth:!1})}function f(i,n){return t.post(`/h5/my/reservations/${i}/cancel`,{visitor_phone:n},{withAuth:!1})}export{i as a,r as b,a as c,f as d,n as e,s as f,e as g,o as h,c as i,h as j,u as k}; diff --git a/public/h5/assets/detail-BW1AOgWM.css b/public/h5/assets/detail-BW1AOgWM.css new file mode 100644 index 0000000..b1e05e4 --- /dev/null +++ b/public/h5/assets/detail-BW1AOgWM.css @@ -0,0 +1 @@ +uni-page-body[data-v-32617cc6]{font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Helvetica Neue,sans-serif;background:#f7f8fa;color:#1d2129;--brand-color: #05c9ac;--font-s: .75rem;--font-m: .9375rem;--font-l: 1.125rem}body[data-v-32617cc6]{background:#f7f8fa}.font-s[data-v-32617cc6]{font-size:var(--font-s)}.font-m[data-v-32617cc6]{font-size:var(--font-m)}.font-l[data-v-32617cc6]{font-size:var(--font-l)}.page[data-v-32617cc6]{height:100vh;background:#f3f5f7;position:relative}.scroll[data-v-32617cc6]{height:100%}.hero[data-v-32617cc6]{position:relative;width:100%}.hero-swiper[data-v-32617cc6]{width:100%;height:13.1875rem}.swiper-item[data-v-32617cc6]{width:100%;height:100%}.slide-media[data-v-32617cc6]{width:100%;height:13.1875rem;display:block}.slide-video[data-v-32617cc6]{background:#000}.hero-placeholder[data-v-32617cc6]{width:100%;height:13.1875rem;background:linear-gradient(135deg,#e8eaed,#d0d3d9)}.live-badge[data-v-32617cc6]{position:absolute;right:.625rem;bottom:.875rem;z-index:2;padding:.3125rem .5625rem;border-radius:.25rem;background:rgba(0,0,0,.45);color:#fff;font-size:.75rem;line-height:1.35;max-width:72%;text-align:right;box-sizing:border-box;text-shadow:0 .03125rem .1875rem rgba(0,0,0,.45)}.live-badge.is-bookable[data-v-32617cc6]{background:#05c9ac;text-shadow:none}.main-card[data-v-32617cc6]{margin:-.875rem 0 0;padding:.75rem .75rem .625rem;width:100%;box-sizing:border-box;background:#fff;border-radius:.75rem .75rem 0 0;position:relative;z-index:3;box-shadow:0 -.125rem .75rem rgba(0,0,0,.04)}.act-title[data-v-32617cc6]{display:block;font-size:1.125rem;font-weight:700;color:#1d2129;line-height:1.35}.info-text-col--venue[data-v-32617cc6]{display:flex;flex-direction:row;flex-wrap:wrap;align-items:baseline}.venue-name-brand[data-v-32617cc6]{font-size:.8125rem;color:#05c9ac;font-weight:600;line-height:1.5;flex:1;min-width:0;word-break:break-word}.chip-row[data-v-32617cc6]{margin-top:.4375rem;display:flex;flex-direction:row;flex-wrap:wrap;gap:.375rem;align-items:center}.chip[data-v-32617cc6]{font-size:.6875rem;padding:.1875rem .4375rem;border-radius:.25rem;line-height:1.3}.chip-tag[data-v-32617cc6]{color:#05c9ac;background:rgba(5,201,172,.12)}.info-row[data-v-32617cc6]{margin-top:.5625rem;width:100%;box-sizing:border-box;display:flex;flex-direction:row;align-items:flex-start}.info-ico[data-v-32617cc6]{width:1rem;height:1rem;margin-right:.375rem;margin-top:.125rem;flex-shrink:0}.info-text-col[data-v-32617cc6]{flex:1;min-width:0;width:0;display:block}.info-text[data-v-32617cc6]{display:block;width:100%;font-size:.8125rem;color:#86909c;line-height:1.5;word-break:break-word}.notice-label[data-v-32617cc6]{font-size:.875rem;color:#05c9ac;font-weight:600}.notice-block[data-v-32617cc6]{margin-top:.6875rem;padding-top:.625rem;border-top:.03125rem solid #eceef2}.notice-head-row[data-v-32617cc6]{margin-bottom:.375rem}.notice-head-left[data-v-32617cc6]{display:flex;flex-direction:row;align-items:center;flex:1;min-width:0}.notice-block-body[data-v-32617cc6]{position:relative;width:100%;box-sizing:border-box}.notice-block-body.is-collapsed[data-v-32617cc6]{max-height:5.625rem;overflow:hidden}.notice-block-body.is-collapsed[data-v-32617cc6]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:1.75rem;background:linear-gradient(180deg,rgba(255,255,255,0),#fff)}.notice-inline-rich[data-v-32617cc6]{display:block;width:100%}.intro-card[data-v-32617cc6]{margin:.5rem;padding:.625rem;background:#fff;border-radius:.5rem}.intro-rich-wrap[data-v-32617cc6]{width:100%;box-sizing:border-box;position:relative}.intro-rich-wrap.is-collapsed[data-v-32617cc6]{max-height:5.625rem;overflow:hidden}.intro-rich-wrap.is-collapsed[data-v-32617cc6]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:1.75rem;background:linear-gradient(180deg,rgba(255,255,255,0),#fff)}.intro-rich[data-v-32617cc6]{display:block;width:100%}.sec-title-row[data-v-32617cc6]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-bottom:.375rem}.sec-title[data-v-32617cc6]{font-size:.9375rem;font-weight:700;color:#1d2129}.expand-link[data-v-32617cc6]{font-size:.8125rem;color:#05c9ac;flex-shrink:0;padding:.125rem 0 .125rem .5rem}.safe-bottom[data-v-32617cc6]{height:4.0625rem}.action-bar[data-v-32617cc6]{position:fixed;left:0;right:0;bottom:0;height:3.5rem;padding:.375rem .5rem calc(.375rem + env(safe-area-inset-bottom));background:#fff;border-top:.03125rem solid #eceef2;display:flex;gap:.375rem;box-sizing:border-box}.btn[data-v-32617cc6]{flex:1;border:none;border-radius:.375rem;font-size:.9375rem}.btn.ghost[data-v-32617cc6]{background:#e8fffb;color:#05c9ac}.btn.primary[data-v-32617cc6]{background:#05c9ac;color:#fff} diff --git a/public/h5/assets/detail-COIDwukw.css b/public/h5/assets/detail-COIDwukw.css deleted file mode 100644 index ac87679..0000000 --- a/public/h5/assets/detail-COIDwukw.css +++ /dev/null @@ -1 +0,0 @@ -uni-page-body[data-v-d6160893]{font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Helvetica Neue,sans-serif;background:#f7f8fa;color:#1d2129;--brand-color: #05c9ac;--font-s: .75rem;--font-m: .9375rem;--font-l: 1.125rem}body[data-v-d6160893]{background:#f7f8fa}.font-s[data-v-d6160893]{font-size:var(--font-s)}.font-m[data-v-d6160893]{font-size:var(--font-m)}.font-l[data-v-d6160893]{font-size:var(--font-l)}.page[data-v-d6160893]{height:100vh;background:#f3f5f7;position:relative}.scroll[data-v-d6160893]{height:100%}.hero[data-v-d6160893]{position:relative;width:100%}.hero-swiper[data-v-d6160893]{width:100%;height:13.1875rem}.swiper-item[data-v-d6160893]{width:100%;height:100%}.slide-media[data-v-d6160893]{width:100%;height:13.1875rem;display:block}.slide-video[data-v-d6160893]{background:#000}.hero-placeholder[data-v-d6160893]{width:100%;height:13.1875rem;background:linear-gradient(135deg,#e8eaed,#d0d3d9)}.live-badge[data-v-d6160893]{position:absolute;right:.625rem;bottom:.875rem;z-index:2;padding:.3125rem .5625rem;border-radius:.25rem;background:rgba(0,0,0,.45);color:#fff;font-size:.75rem;line-height:1.35;max-width:72%;text-align:right;box-sizing:border-box;text-shadow:0 .03125rem .1875rem rgba(0,0,0,.45)}.live-badge.is-bookable[data-v-d6160893]{background:#05c9ac;text-shadow:none}.main-card[data-v-d6160893]{margin:-.875rem 0 0;padding:.75rem .75rem .625rem;width:100%;box-sizing:border-box;background:#fff;border-radius:.75rem .75rem 0 0;position:relative;z-index:3;box-shadow:0 -.125rem .75rem rgba(0,0,0,.04)}.act-title[data-v-d6160893]{display:block;font-size:1.125rem;font-weight:700;color:#1d2129;line-height:1.35}.act-venue-line[data-v-d6160893]{display:block;margin-top:.25rem;font-size:.8125rem;color:#86909c;line-height:1.4}.act-summary[data-v-d6160893]{display:block;margin-top:.3125rem;font-size:.8125rem;color:#4e5969;line-height:1.5}.chip-row[data-v-d6160893]{margin-top:.4375rem;display:flex;flex-direction:row;flex-wrap:wrap;gap:.375rem;align-items:center}.chip[data-v-d6160893]{font-size:.6875rem;padding:.1875rem .4375rem;border-radius:.25rem;line-height:1.3}.chip-tag[data-v-d6160893]{color:#05c9ac;background:rgba(5,201,172,.12)}.chip-free[data-v-d6160893]{color:#00b42a;background:#e8ffea}.chip-paid[data-v-d6160893]{color:#d25f00;background:#fff3e8}.chip-district[data-v-d6160893]{color:#2a4a6e;background:#e8f0fa;border:.03125rem solid rgba(42,90,140,.12)}.info-row[data-v-d6160893]{margin-top:.5625rem;width:100%;box-sizing:border-box;display:flex;flex-direction:row;align-items:flex-start}.info-ico[data-v-d6160893]{width:1rem;height:1rem;margin-right:.375rem;margin-top:.125rem;flex-shrink:0}.info-text-col[data-v-d6160893]{flex:1;min-width:0;width:0;display:block}.info-text[data-v-d6160893]{display:block;width:100%;font-size:.8125rem;color:#86909c;line-height:1.5;word-break:break-word}.notice-label[data-v-d6160893]{font-size:.875rem;color:#05c9ac;font-weight:600}.notice-block[data-v-d6160893]{margin-top:.6875rem;padding-top:.625rem;border-top:.03125rem solid #eceef2}.notice-head-row[data-v-d6160893]{margin-bottom:.375rem}.notice-head-left[data-v-d6160893]{display:flex;flex-direction:row;align-items:center;flex:1;min-width:0}.notice-block-body[data-v-d6160893]{position:relative;width:100%;box-sizing:border-box}.notice-block-body.is-collapsed[data-v-d6160893]{max-height:5.625rem;overflow:hidden}.notice-block-body.is-collapsed[data-v-d6160893]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:1.75rem;background:linear-gradient(180deg,rgba(255,255,255,0),#fff)}.notice-inline-rich[data-v-d6160893]{display:block;width:100%}.intro-card[data-v-d6160893]{margin:.5rem;padding:.625rem;background:#fff;border-radius:.5rem}.intro-rich-wrap[data-v-d6160893]{width:100%;box-sizing:border-box;position:relative}.intro-rich-wrap.is-collapsed[data-v-d6160893]{max-height:5.625rem;overflow:hidden}.intro-rich-wrap.is-collapsed[data-v-d6160893]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:1.75rem;background:linear-gradient(180deg,rgba(255,255,255,0),#fff)}.intro-rich[data-v-d6160893]{display:block;width:100%}.sec-title-row[data-v-d6160893]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-bottom:.375rem}.sec-title[data-v-d6160893]{font-size:.9375rem;font-weight:700;color:#1d2129}.expand-link[data-v-d6160893]{font-size:.8125rem;color:#05c9ac;flex-shrink:0;padding:.125rem 0 .125rem .5rem}.safe-bottom[data-v-d6160893]{height:4.0625rem}.action-bar[data-v-d6160893]{position:fixed;left:0;right:0;bottom:0;height:3.5rem;padding:.375rem .5rem calc(.375rem + env(safe-area-inset-bottom));background:#fff;border-top:.03125rem solid #eceef2;display:flex;gap:.375rem;box-sizing:border-box}.btn[data-v-d6160893]{flex:1;border:none;border-radius:.375rem;font-size:.9375rem}.btn.ghost[data-v-d6160893]{background:#e8fffb;color:#05c9ac}.btn.primary[data-v-d6160893]{background:#05c9ac;color:#fff} diff --git a/public/h5/assets/index-Cu9ZRBys.js b/public/h5/assets/index-DNch_z6T.js similarity index 97% rename from public/h5/assets/index-Cu9ZRBys.js rename to public/h5/assets/index-DNch_z6T.js index eb52e44..359ad73 100644 --- a/public/h5/assets/index-Cu9ZRBys.js +++ b/public/h5/assets/index-DNch_z6T.js @@ -1,6 +1,6 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/pages-index-index.J33UTvrh.js","assets/geo.BHVFNtB7.js","assets/_plugin-vue_export-helper.BCo6x5W8.js","assets/index-BXvs8E-v.css","assets/pages-map-index.y7DvJciF.js","assets/content.SYmDdoIV.js","assets/index-D2HhLvP8.css","assets/pages-activity-index.CkYnhpKx.js","assets/index-DcdQuuGr.css","assets/pages-discover-index.DnOZn1Pa.js","assets/index-2pWDXo7R.css","assets/pages-mine-index.JeDX1I_H.js","assets/index-BcIT5o1f.css","assets/pages-mine-orders.Ca-piMNi.js","assets/orders-CwDjwlTw.css","assets/pages-activity-detail.B0yja156.js","assets/tip.CRDnOkzn.js","assets/detail-COIDwukw.css","assets/pages-activity-reserve.DizDseeD.js","assets/reserve-ClXH2Y09.css","assets/pages-mine-reservation-detail.DZe9vJBg.js","assets/reservation-detail-Bet3rKbo.css","assets/pages-study-tour-detail.DWfPNdMR.js","assets/detail-BY6G4cMl.css","assets/pages-venue-detail.jukb5IQL.js","assets/detail-Cb3SJ-Uc.css","assets/pages-stats-index.CfGwH5VW.js","assets/index-DwPhpBW-.css","assets/pages-traffic-index.BJUqIwJD.js","assets/index-iKqm3YGn.css"] + __vite__mapDeps.viteFileDeps = ["assets/pages-index-index.B7hx22lS.js","assets/search.BJnl3YRK.js","assets/geo.BHVFNtB7.js","assets/_plugin-vue_export-helper.BCo6x5W8.js","assets/index-BXvs8E-v.css","assets/pages-map-index.CddKnaMv.js","assets/content.ztt6U5do.js","assets/index-D2HhLvP8.css","assets/pages-activity-index.GAWfIboK.js","assets/index-DcdQuuGr.css","assets/pages-discover-index.RghqNFtD.js","assets/index-2pWDXo7R.css","assets/pages-mine-index.C7_Vjjk5.js","assets/index-BcIT5o1f.css","assets/pages-mine-orders.CVyOZOlW.js","assets/orders-CwDjwlTw.css","assets/pages-activity-detail.DIWVz8T4.js","assets/tip.CRDnOkzn.js","assets/detail-BW1AOgWM.css","assets/pages-activity-reserve.BZwl1dca.js","assets/reserve-ClXH2Y09.css","assets/pages-mine-reservation-detail.BFqxpPGd.js","assets/reservation-detail-Bet3rKbo.css","assets/pages-study-tour-detail.DG7W93UV.js","assets/detail-BY6G4cMl.css","assets/pages-venue-detail.Bh9QIq4N.js","assets/detail-Cb3SJ-Uc.css","assets/pages-stats-index.BlEM6V2H.js","assets/index-DwPhpBW-.css","assets/pages-traffic-index.BpC6QlYs.js","assets/index-iKqm3YGn.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 za,Ra,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,"")}(Ra=za||(za={})).pop="pop",Ra.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:za.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 zl(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=zn(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),z(n).then(()=>{n=[];for(const o of r.list())n.push(El(o,e,t));return n.push(l),z(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),z(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),z(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Ml(a,"beforeRouteEnter",e,t,_),n.push(l),z(n))).then(()=>{n=[];for(const o of s.list())n.push(El(o,e,t));return n.push(l),z(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===za.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===za.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 z(e){return e.reduce((e,t)=>e.then(()=>_(t)),Promise.resolve())}return D}function Rl(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&&Cf?Cf():"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=dm().$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=Cf(),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.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)}),fc=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 pc(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 hc="invokeViewApi",gc="invokeServiceApi";let mc=1;const vc=Object.create(null);function yc(e,t){return e+"."+t}function bc(e,t,n){t=yc(e,t),vc[t]||(vc[t]=n)}function _c({id:e,name:t,args:n},o){t=yc(o,t);const i=t=>{e&&zy.publishHandler(hc+"."+e,t)},r=vc[t];r?r(n,i):i({})}const wc=c(pc("service"),{invokeServiceMethod:(e,t,n)=>{const{subscribe:o,publishHandler:i}=zy,r=n?mc++:0;n&&o(gc+"."+r,n,!0),i(gc,{id:r,name:e,args:t})}}),xc=Xe(!0);let Cc;function Sc(){Cc&&(clearTimeout(Cc),Cc=null)}let kc=0,Tc=0;function Ac(e){if(Sc(),1!==e.touches.length)return;const{pageX:t,pageY:n}=e.touches[0];kc=t,Tc=n,Cc=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 Ec(e){if(!Cc)return;if(1!==e.touches.length)return Sc();const{pageX:t,pageY:n}=e.touches[0];return Math.abs(t-kc)>10||Math.abs(n-Tc)>10?Sc():void 0}function Mc(e,t){const n=Number(e);return isNaN(n)?t:n}function Pc(){const e=__uniConfig.globalStyle||{},t=Mc(e.rpxCalcMaxDeviceWidth,960),n=Mc(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 Lc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Oc,$c,Ic=["top","left","right","bottom"],Dc={};function zc(){return $c="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 Rc(){if($c="string"==typeof $c?$c: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"}),Ic.forEach(function(e){s(o,e)}),document.body.appendChild(o),r(),Oc=!0}else Ic.forEach(function(e){Dc[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:$c+"(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){Nc.length||setTimeout(function(){var e={};Nc.forEach(function(t){e[t]=Dc[t]}),Nc.length=0,qc.forEach(function(t){t(e)})},0);Nc.push(e)}(n))}o.addEventListener("scroll",r,t),s.addEventListener("scroll",r,t)});var u=getComputedStyle(o);Object.defineProperty(Dc,n,{configurable:!0,get:function(){return parseFloat(u.paddingBottom)}})}}function Bc(e){return Oc||Rc(),Dc[e]}var Nc=[];var qc=[];const jc=Lc({get support(){return 0!=("string"==typeof $c?$c:zc()).length},get top(){return Bc("top")},get left(){return Bc("left")},get right(){return Bc("right")},get bottom(){return Bc("bottom")},onChange:function(e){zc()&&(Oc||Rc(),"function"==typeof e&&qc.push(e))},offChange:function(e){var t=qc.indexOf(e);t>=0&&qc.splice(t,1)}}),Fc=Zs(()=>{},["prevent"]),Vc=Zs(e=>{},["stop"]);function Wc(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function Hc(){const e=Wc(document.documentElement.style,"--window-top");return e?e+jc.top:0}function Uc(){const e=document.documentElement.style,t=Hc(),n=Wc(e,"--window-bottom"),o=Wc(e,"--window-left"),i=Wc(e,"--window-right"),r=Wc(e,"--top-window-height");return{top:t,bottom:n?n+jc.bottom:0,left:o?o+jc.left:0,right:i?i+jc.right:0,topWindowHeight:r||0}}function Xc(e){const t=document.documentElement.style;Object.keys(e).forEach(n=>{t.setProperty(n,e[n])})}function Yc(e){return Xc(e)}function Gc(e){return Symbol(e)}function Kc(e){return-1!==(e+="").indexOf("rpx")||-1!==e.indexOf("upx")}function Jc(e,t=!1){if(t)return function(e){if(!Kc(e))return e;return e.replace(/(\d+(\.\d+)?)[ru]px/g,(e,t)=>tf(parseFloat(t))+"px")}(e);if(v(e)){const t=parseInt(e)||0;return Kc(e)?tf(t):t}return e}function Qc(e){return e.$page}function Zc(e){return 0===e.tagName.indexOf("UNI-")}const eu="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",tu="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",nu="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 ou(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 iu(){{const{$pageInstance:e}=Ur();return e&&fu(e.proxy)}}function ru(e){const t=Be(e);if(t.$page)return fu(t);if(!t.$)return;{const{$pageInstance:e}=t.$;if(e)return fu(e.proxy)}const n=t.$.root.proxy;return n&&n.$page?fu(n):void 0}function su(){const e=Mp(),t=e.length;if(t)return e[t-1]}function au(){var e;const t=null==(e=su())?void 0:e.$page;if(t)return t.meta}function lu(){const e=au();return e?e.id:-1}function cu(){const e=su();if(e)return e.$vm}const uu=["navigationBar","pullToRefresh"];function du(e,t){const n=JSON.parse(JSON.stringify(__uniConfig.globalStyle||{})),o=c({id:t},n,e);uu.forEach(t=>{o[t]=c({},n[t],e[t])});const{navigationBar:i}=o;return i.titleText&&i.titleImage&&(i.titleText=""),o}function fu(e){var t,n;return(null==(t=e.$page)?void 0:t.id)||(null==(n=e.$basePage)?void 0:n.id)}function pu(e,t,n){if(v(e))n=t,t=e,e=cu();else if("number"==typeof e){const t=Mp().find(t=>Qc(t).id===e);e=t?t.$vm:cu()}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-mu)>n;return!r||i&&!s?(!r&&i&&(i=!1),!1):(mu=e,i=!0,!0)})())return t&&t(),r=!1,setTimeout(function(){r=!0},350),!0}e&&e(window.pageYOffset),t&&r&&(s()||(gu=setTimeout(s,300))),o=!1};return function(){clearTimeout(gu),o||requestAnimationFrame(s),o=!0}}function yu(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return yu(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 bu(e,t=!1){return t?__uniRoutes.find(t=>t.path===e||t.alias===e):__uniRoutes.find(t=>t.path===e)}function _u(){Pc(),We(Zc),window.addEventListener("touchstart",Ac,xc),window.addEventListener("touchmove",Ec,xc),window.addEventListener("touchend",Sc,xc),window.addEventListener("touchcancel",Sc,xc)}class wu{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=ku(this.$el.querySelector(e));return t?xu(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&&zy.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 xu(e,t=!0){if(t&&e&&(e=Ne(e.$)),e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new wu(e)),e.$el.__wxsComponentDescriptor}function Cu(e,t){return xu(e,t)}function Su(e,t,n,o=!0){if(t){e.__instance||(e.__instance=!0,Object.defineProperty(e,"instance",{get:()=>Cu(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,Cu(i,!1)]}}function ku(e){if(e)return e.__vueParentComponent&&e.__vueParentComponent.proxy}function Tu(e,t=!1){const{type:n,timeStamp:o,target:i,currentTarget:r}=e;let s,a;s=Ye(t?i:function(e){for(;!Zc(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 Au(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function Eu(e,t){const n=[];for(let o=0;o0===e.type.indexOf("mouse")||["contextmenu"].includes(e.type))(e))!function(e,t){const n=Hc();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[Au(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=Hc();r.touches=Eu(e.touches,t),r.changedTouches=Eu(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 Su(r,t,n)||[r]},createNativeEvent:Tu},Symbol.toStringTag,{value:"Module"});function Pu(e){!function(e){const t=e.globalProperties;c(t,Mu),t.$gcd=Cu}(e._context.config)}let Lu=1;function Ou(e){return(e||lu())+"."+hc}const $u=c(pc("view"),{invokeOnCallback:(e,t)=>Ry.emit("api."+e,t),invokeViewMethod:(e,t,n,o)=>{const{subscribe:i,publishHandler:r}=Ry,s=o?Lu++:0;o&&i(hc+"."+s,o,!0),r(Ou(n),{id:s,name:e,args:t},n)},invokeViewMethodKeepAlive:(e,t,n,o)=>{const{subscribe:i,unsubscribe:r,publishHandler:s}=Ry,a=Lu++,l=hc+"."+a;return i(l,n),s(Ou(o),{id:a,name:e,args:t},o),()=>{r(l)}}});function Iu(e){pu(su(),ge,e),Ry.invokeOnCallback("onWindowResize",e)}function Du(e){const t=su();pu(dm(),ie,e),pu(t,ie)}function zu(){pu(dm(),re),pu(su(),re)}const Ru=[ve,be];function Bu(){Ru.forEach(e=>Ry.subscribe(e,function(e){return(t,n)=>{pu(parseInt(n),e,t)}}(e)))}function Nu(){!function(){const{on:e}=Ry;e(ge,Iu),e(Pe,Du),e(Le,zu)}(),Bu()}function qu(){if(this.$route){const e=this.$route.meta;return e.eventChannel||(e.eventChannel=new et(this.$page.id)),e.eventChannel}}function ju(e){e._context.config.globalProperties.getOpenerEventChannel=qu}function Fu(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}function Vu(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,(e,t)=>`${tf(parseFloat(t))}px`):/^-?[\d\.]+$/.test(e)?`${e}px`:e||""}function Wu(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(Vu)),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)?Vu(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 Hu={props:["animation"],watch:{animation:{deep:!0,handler(){Wu(this)}}},mounted(){Wu(this)}},Uu=e=>{e.__reserved=!0;const{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(Hu),Xu(e)},Xu=e=>(e.__reserved=!0,e.compatConfig={MODE:3},Ko(e));function Yu(e){return e.__wwe=!0,e}function Gu(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 Ku={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function Ju(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:Yu(function(e){e.touches.length>1||s(e)}),onMousedown:Yu(function(e){i||(s(e),window.addEventListener("mouseup",l))}),onTouchend:Yu(function(){a()}),onMouseup:Yu(function(){i&&l()}),onTouchcancel:Yu(function(){i=!1,t.value=!1,clearTimeout(n)})}}}function Qu(e,t){return v(t)&&(t=[t]),t.reduce((t,n)=>(e[n]&&(t[n]=!0),t),Object.create(null))}const Zu=Gc("uf"),ed={for:{type:String,default:""}},td=Gc("ul");const nd=Uu({name:"Label",props:ed,setup(e,{slots:t}){const n=Dn(null),o=iu(),i=function(){const e=[];return Gi(td,{addHandler(t){e.push(t)},removeHandler(t){e.splice(e.indexOf(t),1)}}),e}(),r=os(()=>e.for||t.default&&t.default.length),s=Yu(t=>{const n=t.target;let r=/^uni-(checkbox|radio|switch)-/.test(n.className);r||(r=/^uni-(checkbox|radio|switch|button)$|^(svg|path)$/i.test(n.tagName)),r||(e.for?zy.emit("uni-label-click-"+o+"-"+e.for,t,!0):i.length&&i[0](t,!0))});return()=>Ir("uni-label",{ref:n,class:{"uni-label-pointer":r},onClick:s},[t.default&&t.default()],10,["onClick"])}});function od(e,t){id(e.id,t),Oo(()=>e.id,(e,n)=>{rd(n,t,!0),id(e,t,!0)}),_i(()=>{rd(e.id,t)})}function id(e,t,n){const o=iu();n&&!e||C(t)&&Object.keys(t).forEach(i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&zy.on(`uni-${i}-${o}-${e}`,t[i]):0===i.indexOf("uni-")?zy.on(i,t[i]):e&&zy.on(`uni-${i}-${o}-${e}`,t[i])})}function rd(e,t,n){const o=iu();n&&!e||C(t)&&Object.keys(t).forEach(i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&zy.off(`uni-${i}-${o}-${e}`,t[i]):0===i.indexOf("uni-")?zy.off(i,t[i]):e&&zy.off(`uni-${i}-${o}-${e}`,t[i])})}const sd=Uu({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(Zu,!1),{hovering:i,binding:r}=Ju(e),s=Yu((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)})),od(e,{"label-click":s}),()=>{const o=e.hoverClass,a=Qu(e,"disabled"),l=Qu(e,"loading"),c=Qu(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"])}}}),ad=Gc("upm");function ld(){return Ki(ad)}function cd(e){const t=function(e){return bn(function(e){{const{navigationBar:t}=e,{titleSize:n,titleColor:o,backgroundColor:i}=t;t.titleText=t.titleText||"",t.type=t.type||"default",t.titleSize=n||"16px",t.titleColor=o||"#000000",t.backgroundColor=i||"#F8F8F8"}if(history.state){const t=history.state.__type__;"redirectTo"!==t&&"reLaunch"!==t||0!==Mp().length||(e.isEntry=!0,e.isQuit=!0)}return e}(JSON.parse(JSON.stringify(du(Rl().meta,e)))))}(e);return Gi(ad,t),t}function ud(){return Rl()}function dd(){return history.state&&history.state.__id__||1}const 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){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}let gd=1;const md={};function vd(e,t,n,o=!1){return md[e]={name:t,keepAlive:o,callback:n},e}function yd(e,t,n){if("number"==typeof e){const o=md[e];if(o)return o.keepAlive||delete md[e],o.callback(t,n)}return t}function bd(e){for(const t in md)if(md[t].name===e)return!0;return!1}const _d="success",wd="fail",xd="complete";function Cd(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]=hd(o),delete e[n])}return t}(t),a=m(i),l=m(r),c=m(s),u=gd++;return vd(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 Sd="success",kd="fail",Td="complete",Ad={},Ed={};function Md(e,t){return function(n){return e(n,t)||n}}function Pd(e,t,n){let o=!1;for(let i=0;ie(t),catch(){}}}function Ld(e,t={}){return[Sd,kd,Td].forEach(n=>{const o=e[n];if(!p(o))return;const i=t[n];t[n]=function(e){Pd(o,e,t).then(e=>m(i)&&i(e)||e)}}),t}function Od(e,t){const n=[];p(Ad.returnValue)&&n.push(...Ad.returnValue);const o=Ed[e];return o&&p(o.returnValue)&&n.push(...o.returnValue),n.forEach(e=>{t=e(t)||t}),t}function $d(e){const t=Object.create(null);Object.keys(Ad).forEach(e=>{"returnValue"!==e&&(t[e]=Ad[e].slice())});const n=Ed[e];return n&&Object.keys(n).forEach(e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))}),t}function Id(e,t,n,o){const i=$d(e);if(i&&Object.keys(i).length){if(p(i.invoke)){return Pd(i.invoke,n).then(n=>t(Ld($d(e),n),...o))}return t(Ld(i,n),...o)}return t(n,...o)}function Dd(e,t){return(n={},...o)=>function(e){return!(!C(e)||![_d,wd,xd].find(t=>m(e[t])))}(n)?Od(e,Id(e,t,c({},n),o)):Od(e,new Promise((i,r)=>{Id(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,yd(e,c({errMsg:r},o))}function Rd(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{Bd(o);const i=Rd(0,[o],0,n);if(i)throw new Error(i);const r=!bd(e);!function(e,t){vd(gd++,e,t,!0)}(e,o),r&&(!function(e){Ry.on("api."+e,t=>{for(const n in md){const o=md[n];o.name===e&&o.callback(t)}})}(e),t())}}function qd(e,t,n){return o=>{Bd(o);const i=Rd(0,[o],0,n);if(i)throw new Error(i);!function(e,t){for(const n in md){const o=md[n];o.callback===t&&o.name===e&&delete md[n]}}(e=e.replace("off","on"),o);bd(e)||(!function(e){Ry.off("api."+e)}(e),t())}}function jd(e,t,n,o){return n=>{const i=Cd(e,n,o),r=Rd(0,[n],0,o);return r?zd(i,e,r):t(n,{resolve:t=>function(e,t,n){return yd(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 Fd(e,t,n){return Nd(e,t,n)}function Vd(e,t,n){return qd(e,t,n)}function Wd(e,t,n,o){return Dd(e,jd(e,t,0,o))}function Hd(e,t,n,o){return function(e,t,n,o){return(...e)=>{const n=Rd(0,e,0,o);if(n)throw new Error(n);return t.apply(null,e)}}(0,t,0,o)}function Ud(e,t,n,o){return Dd(e,function(e,t,n,o){return jd(e,t,0,o)}(e,t,0,o))}let Xd=!1,Yd=0,Gd=0,Kd=960,Jd=375,Qd=750;function Zd(){let e,t,n;{const{windowWidth:o,pixelRatio:i,platform:r}=function(){const e=eh(),t=oh(nh(e,th(e)));return{platform:Gp?"ios":"other",pixelRatio:window.devicePixelRatio,windowWidth:t}}();e=o,t=i,n=r}Yd=e,Gd=t,Xd="ios"===n}function ef(e,t){const n=Number(e);return isNaN(n)?t:n}const tf=Hd(0,(e,t)=>{if(0===Yd&&(Zd(),function(){const e=__uniConfig.globalStyle||{};Kd=ef(e.rpxCalcMaxDeviceWidth,960),Jd=ef(e.rpxCalcBaseDeviceWidth,375),Qd=ef(e.rpxCalcBaseDeviceWidth,750)}()),0===(e=Number(e)))return 0;let n=t||Yd;n=e===Qd||n<=Kd?n:Jd;let o=e/750*n;return o<0&&(o=-o),o=Math.floor(o+1e-4),0===o&&(o=1!==Gd&&Xd?.5:1),e<0?-o:o}),nf=[.5,.8,1,1.25,1.5,2];const of=(e,t,n,o)=>{!function(e,t,n,o,i){Ry.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 rf=["scale","rotate","translate","setTransform","transform"],sf=["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"],af=["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"];const lf={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 cf(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(lf,n)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(lf[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 uf{constructor(e,t){this.type=e,this.data=t,this.colorStop=[]}addColorStop(e,t){this.colorStop.push([e,cf(t)])}}class df{constructor(e,t){this.type="pattern",this.data=e,this.colorStop=t}}class ff{constructor(e){this.width=e}}class pf{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){Ry.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 uf("linear",[e,t,n,o])}createCircularGradient(e,t,n){return new uf("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 df(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 ff(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 hf=Ie(()=>{[...rf,...sf].forEach(function(e){pf.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)}),af.forEach(function(e){pf.prototype[e]=function(e){switch(e){case"setFillStyle":case"setStrokeStyle":return function(t){"object"!=typeof t?this.actions.push({method:e,data:["normal",cf(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=cf(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)})}),gf=Hd(0,(e,t)=>{if(hf(),t)return new pf(e,ru(t));const n=ru(cu());if(n)return new pf(e,n);Ry.emit(ae,"createCanvasContext:fail")});let mf=0,vf={};const yf={canvas:pf,map:class{constructor(e,t){this.id=e,this.pageId=t}getCenterLocation(e){of(this.id,this.pageId,"getCenterLocation",e)}moveToLocation(e){of(this.id,this.pageId,"moveToLocation",e)}getScale(e){of(this.id,this.pageId,"getScale",e)}getRegion(e){of(this.id,this.pageId,"getRegion",e)}includePoints(e){of(this.id,this.pageId,"includePoints",e)}translateMarker(e){of(this.id,this.pageId,"translateMarker",e)}$getAppMap(){}addCustomLayer(e){of(this.id,this.pageId,"addCustomLayer",e)}removeCustomLayer(e){of(this.id,this.pageId,"removeCustomLayer",e)}addGroundOverlay(e){of(this.id,this.pageId,"addGroundOverlay",e)}removeGroundOverlay(e){of(this.id,this.pageId,"removeGroundOverlay",e)}updateGroundOverlay(e){of(this.id,this.pageId,"updateGroundOverlay",e)}initMarkerCluster(e){of(this.id,this.pageId,"initMarkerCluster",e)}addMarkers(e){of(this.id,this.pageId,"addMarkers",e)}removeMarkers(e){of(this.id,this.pageId,"removeMarkers",e)}moveAlong(e){of(this.id,this.pageId,"moveAlong",e)}setLocMarkerIcon(e){of(this.id,this.pageId,"setLocMarkerIcon",e)}openMapApp(e){of(this.id,this.pageId,"openMapApp",e)}on(e,t){of(this.id,this.pageId,"on",{name:e,callback:t})}},video:class{constructor(e,t){this.id=e,this.pageId=t}play(){ih(this.id,this.pageId,"play")}pause(){ih(this.id,this.pageId,"pause")}stop(){ih(this.id,this.pageId,"stop")}seek(e){ih(this.id,this.pageId,"seek",{position:e})}sendDanmu(e){ih(this.id,this.pageId,"sendDanmu",e)}playbackRate(e){~nf.indexOf(e)||(e=1),ih(this.id,this.pageId,"playbackRate",{rate:e})}requestFullScreen(e={}){ih(this.id,this.pageId,"requestFullScreen",e)}exitFullScreen(){ih(this.id,this.pageId,"exitFullScreen")}showStatusBar(){ih(this.id,this.pageId,"showStatusBar")}hideStatusBar(){ih(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(mf++);i.callbackId=e,vf[e]=o}Ry.invokeViewMethod(`editor.${e}`,{type:n,data:i},t,({callbackId:e,data:t})=>{r&&(De(vf[e],t),delete vf[e])})}(this.id,this.pageId,e,t)}}};function bf(e){if(e&&e.contextInfo){const{id:t,type:n,page:o}=e.contextInfo,i=yf[n];e.context=new i(t,o),delete e.contextInfo}}class _f{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 wf{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):sh(r,n)?r:r.querySelector(n);return e?rh(e,i):null}{let e=[];const t=(l?s:r).querySelectorAll(n);return t&&t.length&&[].forEach.call(t,t=>{e.push(rh(t,i))}),!l&&sh(r,n)&&e.unshift(rh(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(bf):bf(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 _f(this,this._component,e,!0)}selectAll(e){return this._nodesRef=new _f(this,this._component,e,!1)}selectViewport(){return this._nodesRef=new _f(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 xf=Hd(0,e=>((e=Be(e))&&!ru(e)&&(e=null),new wf(e||cu()))),Cf=Hd(0,()=>{const e=dm();return e&&e.$vm?e.$vm.$locale:ic().getLocale()}),Sf={[ue]:[],[ce]:[],[ae]:[],[ie]:[],[re]:[]};const kf={formatArgs:{showToast:!0},beforeInvoke(){dc()},beforeSuccess(e,t){if(!t.showToast)return;const{t:n}=ic(),o=n("uni.setClipboardData.success");o&&ny({title:o,icon:"success",mask:!1})}},Tf="onCompass",Af=["wgs84","gcj02"],Ef={formatArgs:{type(e,t){e=(e||"").toLowerCase(),-1===Af.indexOf(e)?t.type=Af[0]:t.type=e},altitude(e,t){t.altitude=e||!1}}},Mf=(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)}.`}},Pf={formatArgs:{latitude(e,t){const n=Mf("latitude",e);if(n)return n;t.latitude=e},longitude(e,t){const n=Mf("longitude",e);if(n)return n;t.longitude=e},scale(e,t){e=Math.floor(e),t.scale=e>=5&&e<=18?e:18}}},Lf="json",Of=["text","arraybuffer"],$f=encodeURIComponent;const If={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[$f(a)]=$f(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||Lf).toLowerCase()},responseType(e,t){t.responseType=(e||"").toLowerCase(),-1===Of.indexOf(t.responseType)&&(t.responseType="text")}}};const Df={url:{type:String,required:!0}},zf="navigateTo",Rf="redirectTo",Bf="reLaunch",Nf="switchTab",qf="preloadPage",jf=(Uf(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"]),Uf(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"]),Gf(zf)),Ff=Gf(Rf),Vf=Gf(Bf),Wf=Gf(Nf),Hf={formatArgs:{delta(e,t){e=parseInt(e+"")||1,t.delta=Math.min(Mp().length-1,e)}}};function Uf(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 Xf;function Yf(){Xf=""}function Gf(e){return{formatArgs:{url:Kf(e)},beforeAll:Yf}}function Kf(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=Mp();return n.length&&(t=Qc(n[n.length-1]).route),yu(t,e)}(t)).split("?")[0],i=bu(o,!0);if(!i)return"page `"+t+"` is not found";if(e===zf||e===Rf){if(i.meta.isTabBar)return`can not ${e} a tabbar page`}else if(e===Nf&&!i.meta.isTabBar)return"can not switch to no-tabBar page";if(e!==Nf&&e!==qf||!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!==qf){if(Xf===t&&"appLaunch"!==n.openType)return`${Xf} locked`;__uniConfig.ready&&(Xf=t)}else if(i.meta.isTabBar){const e=Mp(),t=i.path.slice(1);if(e.find(e=>e.route===t))return"tabBar page `"+t+"` already exists"}}}const Jf={formatArgs:{itemColor:"#000"}},Qf={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"}},Zf=["success","loading","none","error"],ep={formatArgs:{title:"",icon(e,t){t.icon=pd(e,Zf)},image(e,t){t.image=e?Up(e):""},duration:1500,mask:!1}};function tp(){const e=cu();if(!e)return;const t=Ep(),n=t.keys();for(const o of n){const e=t.get(o);e.$.__isTabBar?e.$.__isActive=!1:Lp(o)}e.$.__isTabBar&&(e.$.__isVisible=!1,pu(e,re))}function np(e,t){return e===t.fullPath||"/"===e&&t.meta.isEntry}function op(e){const t=Ep().values();for(const n of t){const t=xp(n);if(np(e,t))return n.$.__isActive=!0,t.id}}const ip=Ud(Nf,({url:e,tabBarText:t,isAutomatedTesting:n},{resolve:o,reject:i})=>{if(Cp.handledBeforeEntryPageRoutes)return tp(),cp({type:Nf,url:e,tabBarText:t,isAutomatedTesting:n},op(e)).then(o).catch(i);kp.push({args:{type:Nf,url:e,tabBarText:t,isAutomatedTesting:n},resolve:o,reject:i})},0,Wf);function rp(){const e=su();if(!e)return;const t=xp(e);Lp(Dp(t.path,t.id))}const sp=Ud(Rf,({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(Cp.handledBeforeEntryPageRoutes)return rp(),cp({type:Rf,url:e,isAutomatedTesting:t}).then(n).catch(o);Tp.push({args:{type:Rf,url:e,isAutomatedTesting:t},resolve:n,reject:o})},0,Ff);function ap(){const e=Ep().keys();for(const t of e)Lp(t)}const lp=Ud(Bf,({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(Cp.handledBeforeEntryPageRoutes)return ap(),cp({type:Bf,url:e,isAutomatedTesting:t}).then(n).catch(o);Ap.push({args:{type:Bf,url:e,isAutomatedTesting:t},resolve:n,reject:o})},0,Vf);function cp({type:e,url:t,tabBarText:n,events:o,isAutomatedTesting:i},r){const s=dm().$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||++Op,__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 up(){if(Cp.handledBeforeEntryPageRoutes)return;Cp.handledBeforeEntryPageRoutes=!0;const e=[...Sp];Sp.length=0,e.forEach(({args:e,resolve:t,reject:n})=>cp(e).then(t).catch(n));const t=[...kp];kp.length=0,t.forEach(({args:e,resolve:t,reject:n})=>(tp(),cp(e,op(e.url)).then(t).catch(n)));const n=[...Tp];Tp.length=0,n.forEach(({args:e,resolve:t,reject:n})=>(rp(),cp(e).then(t).catch(n)));const o=[...Ap];Ap.length=0,o.forEach(({args:e,resolve:t,reject:n})=>(ap(),cp(e).then(t).catch(n)))}let dp;function fp(){var e;return dp||(dp=__uniConfig.tabBar&&bn((e=__uniConfig.tabBar,Zl()&&e.list&&e.list.forEach(e=>{oc(e,["text"])}),e))),dp}function pp(e){const t=window.CSS&&window.CSS.supports;return t&&(t(e)||t.apply(window.CSS,e.split(":")))}const hp=pp("top:env(a)"),gp=pp("top:constant(a)"),mp=pp("backdrop-filter:blur(10px)"),vp=(()=>hp?"env":gp?"constant":"")();function yp(e){let t=0,n=0;if("custom"!==e.navigationBar.style&&["default","float"].indexOf(e.navigationBar.type)>-1&&(t=44),e.isTabBar){const e=fp();e.shown&&(n=parseInt(e.height))}var o;Yc({"--window-top":(o=t,vp?`calc(${o}px + ${vp}(safe-area-inset-top))`:`${o}px`),"--window-bottom":bp(n)})}function bp(e){return vp?`calc(${e}px + ${vp}(safe-area-inset-bottom))`:`${e}px`}const _p="$$",wp=new Map;function xp(e){return e.$page}const Cp={handledBeforeEntryPageRoutes:!1},Sp=[],kp=[],Tp=[],Ap=[];function Ep(){return wp}function Mp(){return Pp()}function Pp(){const e=[],t=wp.values();for(const n of t)n.$.__isTabBar?n.$.__isActive&&e.push(n):e.push(n);return e}function Lp(e,t=!0){const n=wp.get(e);n.$.__isUnload=!0,pu(n,fe),wp.delete(e),t&&function(e){const t=zp.get(e);t&&(zp.delete(e),Rp.pruneCacheEntry(t))}(e)}let Op=dd();function $p(e){const t=ld();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 Ip(e){const t=$p(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),wp.set(Dp(t.path,t.id),e),1===wp.size&&setTimeout(()=>{up()},0)}function Dp(e,t){return e+_p+t}const zp=new Map,Rp={get:e=>zp.get(e),set(e,t){!function(e){const t=parseInt(e.split(_p)[1]);if(!t)return;Rp.forEach((e,n)=>{const o=parseInt(n.split(_p)[1]);if(o&&o>t){if(function(e){return"tabBar"===e.props.type}(e))return;Rp.delete(n),Rp.pruneCacheEntry(e),to(()=>{wp.forEach((e,t)=>{e.$.isUnmounted&&wp.delete(t)})})}})}(e),zp.set(e,t)},delete(e){zp.get(e)&&zp.delete(e)},forEach(e){zp.forEach(e)}};function Bp(e,t){!function(e){const t=qp(e),{body:n}=document;jp&&n.removeAttribute(jp),t&&n.setAttribute(t,""),jp=t}(e),yp(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),Wp(e,t)}function Np(e){const t=qp(e);t&&function(e){const t=document.querySelector("uni-page-body");t&&t.setAttribute(e,"")}(t)}function qp(e){return e.type.__scopeId}let jp;const Fp=!!(()=>{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 Vp;function Wp(e,t){if(document.removeEventListener("touchmove",hu),Vp&&document.removeEventListener("scroll",Vp),t.disableScroll)return document.addEventListener("touchmove",hu,Fp);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=xp(e.proxy).id;(n||i)&&(r.onPageScroll=function(e,t,n){return o=>{t&&zy.publishHandler(ve,{scrollTop:o},e),n&&zy.emit(e+"."+ve,{scrollTop:o})}}(s,n,i)),(null==o?void 0:o.length)&&(r.onReachBottomDistance=t.onReachBottomDistance||50,r.onReachBottom=()=>zy.publishHandler(be,{},s)),Vp=vu(r),requestAnimationFrame(()=>document.addEventListener("scroll",Vp))}function Hp(e){const{base:t}=__uniConfig.router;return 0===$e(e).indexOf(t)?$e(e):t+e}function Up(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 Hp(e.slice(1));e="https:"+e}if(ne.test(e)||oe.test(e)||0===e.indexOf("blob:"))return e;const o=Pp();return o.length?Hp(yu(xp(o[o.length-1]).route,e).slice(1)):e}const Xp=navigator.userAgent,Yp=/android/i.test(Xp),Gp=/iphone|ipad|ipod/i.test(Xp),Kp=Xp.match(/Windows NT ([\d|\d.\d]*)/i),Jp=/Macintosh|Mac/i.test(Xp),Qp=/Linux|X11/i.test(Xp),Zp=Jp&&navigator.maxTouchPoints>0;function eh(){return/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation}function th(e){return e&&90===Math.abs(window.orientation)}function nh(e,t){return e?Math[t?"max":"min"](screen.width,screen.height):screen.width}function oh(e){return Math.min(window.innerWidth,document.documentElement.clientWidth,e)||e}function ih(e,t,n,o){Ry.invokeViewMethod("video."+e,{videoId:e,type:n,data:o},t)}function rh(e,t){const n={},{top:o,topWindowHeight:i}=Uc();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 sh(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 ah={};function lh(e,t){const n=ah[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 function(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}(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 ch(e){for(const n in ah)if(f(ah,n)){if(ah[n]===e)return n}var t=(window.URL||window.webkitURL).createObjectURL(e);return ah[t]=e,t}const uh=Fu(),dh=Fu();const fh=Uu({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 ph=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 hh(e,t=!0){const n=t?ph:1;e.width=e.offsetWidth*n,e.height=e.offsetHeight*n,e.getContext("2d").__hidpi__=t}let gh=!1;function mh(){if(gh)return;gh=!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*=ph,o*=ph,i*=ph,r*=ph,s*=ph,a*=ph,l=u?l*ph:l,c=u?c*ph:c,e.call(this,t,n,o,i,r,s,a,l,c)}}(t.drawImage),1!==ph&&(!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*ph});else if(Array.isArray(e))for(let t=0;tmh());function yh(e){return e?Up(e):e}function bh(e){return(e=e.slice(0))[3]=e[3]/255,"rgba("+e.join(",")+")"}function _h(e,t){Array.from(t).forEach(t=>{t.x=t.clientX-e.left,t.y=t.clientY-e.top})}let wh;function xh(e=0,t=0){return wh||(wh=document.createElement("canvas")),wh.width=e,wh.height=t,wh}const Ch=Uu({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}){vh();const o=Dn(null),i=Dn(null),r=Dn(null),s=Dn(!1),a=function(e){return(t,n)=>{e(t,Tu(n))}}(t),{$attrs:l,$excludeAttrs:u,$listeners:d}=cg({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(Yu(e=>{const o=e.currentTarget.getBoundingClientRect();_h(o,e.touches),_h(o,e.changedTouches),n(t.replace("on","").toLocaleLowerCase(),e)})),e.disableScroll&&"onTouchmove"===t&&o.push(Fc),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?ph: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);hh(o,e.hidpi),t.putImageData(n,0,0)}else hh(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=yh(o),n[0]=o):"setFillStyle"===t&&"pattern"===n[0]&&(o=n[1],o=yh(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=xh(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=xh(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 Fg(h,Wg(e.canvasId)),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(fh,{ref:r,onResize:g},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});function Sh(){}const kh={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 Th(e,t,n){function o(e){const t=os(()=>0===String(navigator.vendor).indexOf("Apple"));e.addEventListener("focus",()=>{clearTimeout(void 0),document.addEventListener("click",Sh,!1)});e.addEventListener("blur",()=>{t.value&&e.blur(),document.removeEventListener("click",Sh,!1),t.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)})}Oo(()=>t.value,e=>e&&o(e))}var Ah=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,Eh=/^<\/([-A-Za-z0-9_]+)[^>]*>/,Mh=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,Ph=zh("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),Lh=zh("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"),Oh=zh("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"),$h=zh("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),Ih=zh("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),Dh=zh("script,style");function zh(e){for(var t={},n=e.split(","),o=0;oe/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},Nh={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"]},qh=Uu({name:"Image",props:Rh,setup(e,{emit:t}){const n=Dn(null),o=function(e,t){const n=Dn(""),o=os(()=>{let e="auto",o="";const i=Nh[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?Up(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=Gu(n,t),{fixSize:r}=function(e,t,n){const o=()=>{const{mode:o}=t,i=Bh[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){jh&&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)=>{Bh[t]&&i(),Bh[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),Bh[e.mode]?Ir(fh,{onResize:r},null,8,["onResize"]):Ir("span",null,null)],512)}});const jh="Google Inc."===navigator.vendor;const Fh=Xe(!0),Vh=[];let Wh=0,Hh=!1;const Uh=e=>Vh.forEach(t=>t.userAction=e);function Xh(){const e=bn({userAction:!1});return mi(()=>{!function(e={userAction:!1}){Hh||(["touchstart","touchmove","touchend","mousedown","mouseup"].forEach(e=>{document.addEventListener(e,function(){!Wh&&Uh(!0),Wh++,setTimeout(()=>{! --Wh&&Uh(!1)},0)},Fh)}),Hh=!0);Vh.push(e)}(e)}),bi(()=>{!function(e){const t=Vh.indexOf(e);t>=0&&Vh.splice(t,1)}(e)}),{state:e}}function Yh(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 Gh(e,t,n){"number"===t&&isNaN(Number(e))&&(e="");return null==e?"":String(e)}const Kh=["none","text","decimal","numeric","tel","search","email","url"],Jh=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=>!!~Kh.indexOf(e)},cursorColor:{type:String,default:""}},kh),Qh=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend","keyboardheightchange"];function Zh(e,t,n,o){let i=null;i=Ze(n=>{t.value=Gh(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 eg(e,t){Xh();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 tg(e,t,n,o){bc(lu(),"getSelectedTextRange",Yh);const{fieldRef:i,state:r,trigger:s}=function(e,t,n){const o=Dn(null),i=Gu(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=Gh(e.modelValue,e.type)||Gh(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}=Zh(e,r,n,s);eg(e,i),Th(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(Zu,!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 ng=c({},Jh,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),og=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 ig(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&&og()&&"."===t.value.slice(-2,-1))return t.value=n.value=o.value=t.value.slice(0,-2),!0}function rg(e){return"insertFromPaste"===e.inputType}const sg=Uu({name:"Input",props:ng,emits:["confirm",...Qh],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}=tg(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=ig(e,l,t,n,c);return"boolean"==typeof o?o:(l.value=t.value=n.value="-"===l.value?"":l.value,!1)}{const o=ig(e,l,t,n,c);if("boolean"==typeof o)return o;l.value=n.value}if(t.maxlength>0&&n.value.length>t.maxlength&&!rg(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?rg(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"},[Ro(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 ag=["class","style"],lg=/^on[A-Z]+/,cg=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n=[]}=e,o=Ur(),i=zn({}),r=zn({}),s=zn({}),a=n.concat(ag);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:lg.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 ug(e){const t=[];return p(e)&&e.forEach(e=>{Er(e)?e.type===mr?t.push(...ug(e.children)):t.push(e):p(e)&&t.push(...ug(e))}),t}const dg=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 fg,pg;function hg(e,t,n){bi(()=>{document.removeEventListener("mousemove",fg),document.removeEventListener("mouseup",pg)});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;dg(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)}),dg(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)}),dg(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=fg=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),dg(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=pg=function(e){if(c=!1,!l&&u)return u=null,a(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",f),dg(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 gg{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 mg(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||!vg(t,.4)){t=t||0;let o=this._endPosition;this._solution&&(vg(t,.4)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),vg(t,.4)&&(t=0),vg(o,.4)&&(o=0),o+=this._endPosition),this._solution&&vg(o-e,.4)&&vg(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()),mg(this.x(),this._endPosition,.4)&&vg(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 bg{constructor(e,t,n){this._extent=e,this._friction=t||new gg(.01),this._spring=n||new yg(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 _g{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 bg(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 wg=Gc("ucg"),xg=Uu({name:"Radio",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},value:{type:String,default:""},color:{type:String,default:"#007aff"},backgroundColor:{type:String,default:""},borderColor:{type:String,default:""},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},iconColor:{type:String,default:"#ffffff"}},setup(e,{slots:t}){const n=Dn(null),o=Dn(e.checked),i=Dn(e.value);const r=os(()=>function(){if(e.disabled)return{backgroundColor:"#E1E1E1",borderColor:"#D1D1D1"};const t={};return o.value?(t.backgroundColor=e.activeBackgroundColor||e.color,t.borderColor=e.activeBorderColor||t.backgroundColor):(e.borderColor&&(t.borderColor=e.borderColor),e.backgroundColor&&(t.backgroundColor=e.backgroundColor)),t}(o.value));Oo([()=>e.checked,()=>e.value],([e,t])=>{o.value=e,i.value=t});const{uniCheckGroup:s,uniLabel:a,field:l}=function(e,t,n){const o=os({get:()=>({radioChecked:Boolean(e.value),value:t.value}),set:({radioChecked:t})=>{e.value=t}}),i={reset:n},r=Ki(wg,!1);r&&r.addField(o);const s=Ki(Zu,!1);s&&s.addField(i);const a=Ki(td,!1);return bi(()=>{r&&r.removeField(o),s&&s.removeField(i)}),{uniCheckGroup:r,uniForm:s,uniLabel:a,field:o}}(o,i,()=>{o.value=!1}),c=t=>{e.disabled||o.value||(o.value=!0,s&&s.radioChange(t,l),t.stopPropagation())};return a&&(a.addHandler(c),bi(()=>{a.removeHandler(c)})),od(e,{"label-click":c}),()=>{const i=Qu(e,"disabled");let s;return s=o.value,Ir("uni-radio",jr(i,{id:e.id,onClick:c,ref:n}),[Ir("div",{class:"uni-radio-wrapper",style:{"--HOVER-BD-COLOR":o.value?r.value.borderColor:e.activeBorderColor}},[Ir("div",{class:["uni-radio-input",{"uni-radio-input-disabled":e.disabled}],style:r.value},[s?ou(eu,e.disabled?"#ADADAD":e.iconColor,18):""],6),t.default&&t.default()],4)],16,["id","onClick"])}}});const Cg={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:""},Sg={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'",ldquo:"“",rdquo:"”",yen:"¥",radic:"√",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",hellip:"…"};const kg=(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(Cg,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]=Up(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,kg(e,t,n.children))}return"text"===n.type&&v(n.text)&&""!==n.text?zr((n.text||"").replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,function(e,t){return f(Sg,t)&&Sg[t]?Sg[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 Tg(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()&&Dh[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 Ag=Uu({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=Gu(i,t);function a(e,t={}){s("itemclick",e,t)}return Oo(()=>e.nodes,function(){let t=e.nodes;v(t)&&(t=Tg(e.nodes)),r.value=kg(o,a,t)},{immediate:!0,deep:!0}),()=>is("uni-rich-text",{ref:i},is("div",{},r.value))}}),Eg=Uu({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)}}}),Mg=Xe(!0),Pg=Uu({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=Gu(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,Mg),s.value.addEventListener("touchmove",l,Xe(!1)),s.value.addEventListener("scroll",r,Xe(!1)),s.value.addEventListener("touchend",g,Mg),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(Eg,{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 Lg(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))}hg(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 Og=Uu({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=Gu(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:Jc(e.previousMargin,!0),bottom:Jc(e.nextMargin,!0)}:{top:0,bottom:0,left:Jc(e.previousMargin,!0),right:Jc(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}=Lg(e,a,f,s,n,i);let v=()=>null;return v=$g(o,e,a,h,f,g,m),()=>{const n=t.default&&t.default();return u=ug(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=()=>ou(nu,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}},Ig=Uu({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)}}),Dg={ensp:" ",emsp:" ",nbsp:" "};function zg(e,t){return function(e,{space:t,decode:n}){let o="",i=!1;for(let r of e)t&&Dg[t]&&" "===r&&(r=Dg[t]),i?(o+="n"===r?ee:"\\"===r?"\\":"\\"+r,i=!1):"\\"===r?i=!0:o+=r;return n?o.replace(/ /g,Dg.nbsp).replace(/ /g,Dg.ensp).replace(/ /g,Dg.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"):o}(e,t).split(ee)}const Rg=Uu({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(zr(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"])}}}),Bg=Uu({name:"View",props:c({},Ku),setup(e,{slots:t}){const n=Dn(null),{hovering:o,binding:i}=Ju(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 Ng(e,t){if(t||(t=e.id),t)return e.$options.name.toLowerCase()+"."+t}function qg(e,t,n){e&&bc(lu(),e,({type:e,data:n},o)=>{t(e,n,o)})}function jg(e,t){e&&function(e,t){t=yc(e,t),delete vc[t]}(lu(),e)}function Fg(e,t,n,o){const i=Ur().proxy;mi(()=>{qg(t||Ng(i),e),Oo(()=>i.id,(t,n)=>{qg(Ng(i,t),e),jg(n&&Ng(i,n))})}),bi(()=>{jg(t||Ng(i))})}let Vg=0;function Wg(e){const t=iu(),n=Ur().proxy,o=n.$options.name.toLowerCase(),i=e||n.id||"context"+Vg++;return mi(()=>{n.$el.__uniContextInfo={id:i,type:o,page:t}}),`${o}.${i}`}function Hg(e,t,n,o){m(t)&&pi(e,t.bind(n),o)}function Ug(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=>Hg(o,e,n,t)):Hg(o,i,n,t)}}),"page"===o)){t.__isVisible=!0;try{let e=t.attrs.__pageQuery;0,pu(n,de,e),t.vapor||delete t.attrs.__pageQuery;const o=n.$page;"preloadPage"!==(null==o?void 0:o.openType)&&pu(n,ie)}catch(i){console.error(i.message+ee+i.stack)}}}function Xg(e,t,n){Ug(e,t,n)}function Yg(e,t,n){return e[t]=n}function Gg(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function Kg(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]?pu(r.proxy,ae,n):Hn(n,0,o&&o.$.vnode,!1)}}function Jg(e,t){return e?[...new Set([].concat(e,t))]:t}function Qg(e){const t=e.config;var n;t.errorHandler=it(e,Kg),n=t.optionMergeStrategies,nt.forEach(e=>{n[e]=Jg});const o=t.globalProperties;o.$set=Yg,o.$applyOptions=Xg,o.$callMethod=Gg,function(e){ot.forEach(t=>t(e))}(e)}function Zg(e){const t=zl({history:nm(),strict:!!__uniConfig.router.strict,routes:__uniRoutes,scrollBehavior:tm});t.beforeEach((e,t)=>{var n;e&&t&&e.meta.isTabBar&&t.meta.isTabBar&&(n=t.meta.tabBarIndex,"undefined"!=typeof window&&(em[n]={left:window.pageXOffset,top:window.pageYOffset}))}),e.router=t,e.use(t)}let em=Object.create(null);const tm=(e,t,n)=>{if(n)return n;if(e&&t&&e.meta.isTabBar&&t.meta.isTabBar){const t=(o=e.meta.tabBarIndex,em[o]);if(t)return t}return{left:0,top:0};var o};function nm(){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=Pp(),n=t.length-1,o=n-e;for(let i=n;i>o;i--){const e=xp(t[i]);Lp(Dp(e.path,e.id),!1)}}(Math.abs(n.delta))}),t}const om={install(e){Qg(e),Pu(e),ju(e),e.config.warnHandler||(e.config.warnHandler=im),Zg(e)}};function im(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 rm={class:"uni-async-loading"},sm=Ir("i",{class:"uni-loading"},null,-1),am=Xu({name:"AsyncLoading",render:()=>(xr(),Ar("div",rm,[sm]))});function lm(){window.location.reload()}const cm=Xu({name:"AsyncError",props:["error"],setup(){sc();const{t:e}=ic();return()=>Ir("div",{class:"uni-async-error",onClick:lm},[e("uni.async.error")],8,["onClick"])}});let um;function dm(){return um}function fm(e){um=e,Object.defineProperty(um.$.ctx,"$children",{get:()=>Pp().map(e=>e.$vm)});const t=um.$.appContext.app;t.component(am.name)||t.component(am.name,am),t.component(cm.name)||t.component(cm.name,cm),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}})}(um),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}})}(um),Nu(),_u()}function pm(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 hm(e,t){return e&&(e.__esModule||"Module"===e[Symbol.toStringTag])?pm(e.default,t):pm(e,t)}function gm(e){return hm(e,{clone:!0,init:Ip,setup(e){e.$pageInstance=e;const t=ud(),n=Ke(t.query);e.attrs.__pageQuery=n,xp(e.proxy).options=n,e.proxy.options=n;const o=ld();var i,r;return yp(o),e.onReachBottom=bn([]),e.onPageScroll=bn([]),Oo([e.onReachBottom,e.onPageScroll],()=>{const t=su();e.proxy===t&&Wp(e,o)},{once:!0}),gi(()=>{Bp(e,o)}),mi(()=>{Np(e);const{onReady:n}=e;n&&I(n),bm(t)}),ai(()=>{if(!e.__isVisible){Bp(e,o),e.__isVisible=!0;const{onShow:n}=e;n&&I(n),to(()=>{bm(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,zy.subscribe(yc(r,hc),_c),bi(()=>{!function(e){zy.unsubscribe(yc(e,hc)),Object.keys(vc).forEach(t=>{0===t.indexOf(e+".")&&delete vc[t]})}(o.id)}),n}})}function mm(){const{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}=ov(),i=90===Math.abs(Number(window.orientation))?"landscape":"portrait";Ry.emit(ge,{deviceOrientation:i,size:{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}})}function vm(e){C(e.data)&&"WEB_INVOKE_APPSERVICE"===e.data.type&&Ry.emit("onWebInvokeAppService",e.data.data,e.data.pageId)}function ym(){const{emit:e}=Ry;"visible"===document.visibilityState?e(Pe,c({},dh)):e(Le)}function bm(e){const{tabBarText:t,tabBarIndex:n,route:o}=e.meta;t&&pu("onTabItemTap",{index:n,text:t,pagePath:o})}function _m(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 wm(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 xm={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}},Cm=Uu({name:"Video",props:xm,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=Gu(i,t),{state:a}=Xh(),{$attrs:l}=cg({excludeListeners:!0});ic(),fc();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(()=>Up(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:z,exitFullScreen:R}=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}=wm(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};Fg((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)},Wg())}(d,f,h,g,L,m,z,R);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,()=>{xm.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"]),Ro(Ir("div",{class:"uni-video-bar uni-video-bar-full",onClick:Zs(()=>{},["stop"])},[Ir("div",{class:"uni-video-controls"},[Ro(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]]),Ro(Ir("div",{class:"uni-video-current-time"},[_m(u.currentTime)],512),[[Ts,e.showProgress]]),Ro(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]]),Ro(Ir("div",{class:"uni-video-duration"},[_m(Number(e.duration)||u.duration)],512),[[Ts,e.showProgress]])]),Ro(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]]),Ro(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]]),Ro(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"},[_m(B.currentTimeNew)])," / ",Number(e.duration)||_m(u.duration)])],2),Ir("div",{class:"uni-video-slots"},[o.default&&o.default()])],40,["onTouchstart","onTouchend","onTouchmove","onFullscreenchange","onWebkitfullscreenchange"])],8,["id","onClick"])}});let Sm,km=0;function Tm(e,t,n,o){var i,r=document.createElement("script"),s=t.callback||"callback",a="__uni_jsonp_callback_"+km++,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 Am(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(Rm())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():Rm()?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()&&!Rm()){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 Em={};function Mm(e,t){const n=$m();if(!n.key)return void console.error("Map key not configured.");const o=Em[n.type]=Em[n.type]||[];if(Sm)t(Sm);else if(window[n.type]&&window[n.type].maps)Sm=zm()||Rm()?window[n.type]:window[n.type].maps,Sm.Callout=Sm.Callout||Am(Sm),t(Sm);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],Sm=zm()||Rm()?window[n.type]:window[n.type].maps,Sm.Callout=Am(Sm),o.forEach(e=>e(Sm)),o.length=0},zm()&&function(e){window._AMapSecurityConfig={securityJsCode:e.securityJsCode||"",serviceHost:e.serviceHost||""}}(n);const s=document.createElement("script");let a=Pm(n.type);n.type===Om.QQ&&e.push("geometry"),e.length&&(a+=`libraries=${e.join("%2C")}&`),n.type===Om.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 Pm=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 Lm="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 Om=(e=>(e.QQ="qq",e.GOOGLE="google",e.AMAP="AMap",e.BMAP="BMapGL",e.UNKNOWN="",e))(Om||{});function $m(){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 Im=!1,Dm=!1;const zm=()=>Dm?Im:(Dm=!0,Im="AMap"===$m().type),Rm=()=>"BMapGL"===$m().type;const Bm=Xu({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):Rm()?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)},Rm()?(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()},$m().type===Om.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=Up(e.iconPath):console.error("Marker.iconPath is required.")}!function(e){Rm()||(i=new s.Marker({map:n,flat:!0,autoRotation:!1})),l(e);const o=s.event||s.Event;Rm()||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 Nm(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 qm={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:""}},jm=Xu({name:"MapPolyline",props:qm,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]:Rm()?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}=Nm(e.color),{r:d,g:f,b:p,a:h}=Nm(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)),Rm()?(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}}),Fm=Xu({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()||Rm()?[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(Rm())r.strokeColor=e.color,r.fillColor=e.fillColor||"#000",r.fillOpacity=1;else{const{r:t,g:n,b:o,a:s}=Nm(e.fillColor),{r:a,g:l,b:c,a:u}=Nm(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(Rm()){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}}),Vm={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}},Wm=Xu({name:"MapControl",props:Vm,setup(e){const t=os(()=>Up(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"])])}}),Hm="__DC_STAT_UUID",Um=navigator.cookieEnabled&&(window.localStorage||window.sessionStorage)||{};let Xm;function Ym(){if(Xm=Xm||Um[Hm],!Xm){Xm=Date.now()+""+Math.floor(1e7*Math.random());try{Um[Hm]=Xm}catch(e){}}return Xm}function Gm(){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 Km(){let e,t="0",n="",o="phone";const i=navigator.language;if(Gp){e="iOS";const o=Xp.match(/OS\s([\w_]+)\slike/);o&&(t=o[1].replace(/_/g,"."));const i=Xp.match(/\(([a-zA-Z]+);/);i&&(n=i[1])}else if(Yp){e="Android";const o=Xp.match(/Android[\s/]([\w\.]+)[;\s]/);o&&(t=o[1]);const i=Xp.match(/\((.+?)\)/),r=i?i[1].split(";"):Xp.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=eh(),n=th(t),o=nh(t,n),i=function(e,t){return e?Math[t?"min":"max"](screen.height,screen.width):screen.height}(t,n),r=oh(o);let s=window.innerHeight;const a=jc.top,l={left:jc.left,right:r-jc.right,top:jc.top,bottom:s-jc.bottom,width:r-jc.left-jc.right,height:s-jc.top-jc.bottom},{top:c,bottom:u}=Uc();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:jc.top,right:jc.right,bottom:jc.bottom,left:jc.left},screenTop:i-s}});let Qm,Zm=!0;function ev(){Zm&&(Qm=Km())}const tv=Hd(0,()=>{ev();const{deviceBrand:e,deviceModel:t,brand:n,model:o,platform:i,system:r,deviceOrientation:s,deviceType:a,osname:l,osversion:u}=Qm;return c({brand:n,deviceBrand:e,deviceModel:t,devicePixelRatio:window.devicePixelRatio,deviceId:Ym(),deviceOrientation:s,deviceType:a,model:o,platform:i,system:r,osName:l?l.toLowerCase():void 0,osVersion:u})}),nv=Hd(0,()=>{ev();const{theme:e,language:t,browserName:n,browserVersion:o}=Qm;return c({appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:Cf?Cf():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},{})}),ov=Hd(0,()=>{Zm=!0,ev(),Zm=!1;const e=Jm(),t=tv(),n=nv();Zm=!0;const{ua:o,browserName:i,browserVersion:r,osname:s,osversion:a}=Qm,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 iv=null;const rv=Fd(Tf,()=>{av()}),sv=Vd("offCompass",()=>{lv()}),av=Ud("startCompass",(e,{resolve:t,reject:n})=>{if(window.DeviceOrientationEvent){if(!iv){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(){iv=function(e){const t=360-(null!==e.alpha?e.alpha:360);Ry.invokeOnCallback(Tf,{direction:t})},window.addEventListener("deviceorientation",iv,!1)}}),lv=Ud("stopCompass",(e,{resolve:t})=>{iv&&(window.removeEventListener("deviceorientation",iv,!1),iv=null),t()});const cv=Ud("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,kf);const uv=Hd(0,(e,t)=>{const n=typeof t,o="string"===n?t:JSON.stringify({type:n,data:t});localStorage.setItem(e,o)});function dv(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 fv=Hd(0,e=>{try{return dv(e)}catch(t){return""}}),pv=Hd(0,e=>{localStorage&&localStorage.removeItem(e)}),hv={esc:["Esc","Escape"],enter:["Enter"]},gv=Object.keys(hv);function mv(){const e=Dn(""),t=Dn(!1),n=n=>{if(t.value)return;const o=gv.find(e=>-1!==hv[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 vv=Ir("div",{class:"uni-mask"},null,-1);function yv(e,t,n){return t.onClose=(...e)=>(t.visible=!1,n.apply(null,e)),na(Ko({setup:()=>()=>(xr(),Ar(e,t,null,16))}))}function bv(e){let t=document.getElementById(e);return t||(t=document.createElement("div"),t.id=e,document.body.append(t)),t}function _v(e,{onEsc:t,onEnter:n}){const o=Dn(e.visible),{key:i,disable:r}=mv();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 wv=0,xv="";function Cv(e){let t=wv;wv+=e?1:-1,wv=Math.max(0,wv),wv>0?0===t&&(xv=document.body.style.overflow,document.body.style.overflow="hidden"):(document.body.style.overflow=xv,xv="")}const Sv=Wd("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 Tv(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=kv(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=Ev(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 Tv(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=Ev(n,r,i)),c({data:n,statusCode:e,header:Av(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,If),kv=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 Av(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 Ev(e,t,n){let o=e;if("text"===t&&"json"===n)try{o=JSON.parse(o)}catch(i){}return o}const Mv=Ud("getLocation",({type:e,altitude:t,highAccuracyExpireTime:n,isHighAccuracy:o},{resolve:i,reject:r})=>{const s=$m();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===Om.QQ?Tm(`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===Om.GOOGLE?Sv({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===Om.AMAP?Mm([],()=>{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=$m();return e&&"WGS84"===e.toUpperCase()||["google"].includes(o.type)||n?Promise.resolve(t):"qq"===o.type?new Promise(e=>{Tm(`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=>{Mm([],()=>{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,Ef);const Pv=Xu({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:Lm,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=$m();let o="";if(t.type===Om.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===Om.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===Om.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(()=>Cv(!0)),_i(()=>Cv(!1)),Mv({type:"gcj02",success:({latitude:e,longitude:t})=>{n.location.latitude=e,n.location.longitude=t}}),()=>Ir("div",{class:"uni-system-open-location"},[Ir(Dy,{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)},[ou("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},[ou("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},[ou(nu,"#ffffff",26)],8,["onClick"])])}});let Lv=null;const Ov=Ud("openLocation",(e,{resolve:t})=>{Lv?c(Lv,e):(Lv=bn(e),to(()=>{const e=yv(Pv,Lv,()=>{Lv=null,to(()=>{e.unmount()})});e.mount(bv("u-a-o"))})),t()},0,Pf),$v=Ud("navigateBack",(e,{resolve:t,reject:n})=>{let o=!0;return!0===pu(me,{from:e.from||"navigateBack"})&&(o=!1),o?(dm().$router.go(-e.delta),t()):n(me)},0,Hf),Iv=Ud(zf,({url:e,events:t,isAutomatedTesting:n},{resolve:o,reject:i})=>{if(Cp.handledBeforeEntryPageRoutes)return cp({type:zf,url:e,events:t,isAutomatedTesting:n}).then(o).catch(i);Sp.push({args:{type:zf,url:e,events:t,isAutomatedTesting:n},resolve:o,reject:i})},0,jf);function Dv(e){__uniConfig.darkmode&&Ry.on(le,e)}function zv(e){Ry.off(le,e)}function Rv(e){let t={};return __uniConfig.darkmode&&(t=ct(e,__uniConfig.themeConfig,Gm())),__uniConfig.darkmode?t:e}function Bv(e,t){const n=Cn(e),o=n?bn(Rv(e)):Rv(e);return __uniConfig.darkmode&&n&&Oo(e,e=>{const t=Rv(e);for(const n in t)o[n]=t[n]}),t&&Dv(t),o}const Nv={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}},qv=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=_v(e,{onEsc:i,onEnter:()=>{!e.editable&&r()}}),a=function(e){const t=Dn(e.cancelColor),n=({theme:e})=>{((e,t)=>{t.value=Nv[e].cancelColor})(e,t)};return Po(()=>{e.visible?(t.value=e.cancelColor,"#000"===e.cancelColor&&("dark"===Gm()&&n({theme:"dark"}),Dv(n))):zv(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:()=>[Ro(Ir("uni-modal",{onTouchmove:Fc},[vv,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:Vc,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 jv;const Fv=Ie(()=>{Ry.on("onHidePopup",()=>jv.visible=!1)});let Vv;function Wv(e,t){const n="confirm"===e,o={confirm:n,cancel:"cancel"===e};n&&jv.editable&&(o.content=t),Vv&&Vv(o)}const Hv=Ud("showModal",(e,{resolve:t})=>{Fv(),Vv=t,jv?(c(jv,e),jv.visible=!0):(jv=bn(e),to(()=>(yv(qv,jv,Wv).mount(bv("u-a-m")),to(()=>jv.visible=!0))))},0,Qf),Uv={title:{type:String,default:""},icon:{default:"success",validator:e=>-1!==Zf.indexOf(e)},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean}},Xv="uni-toast__icon",Yv={light:"#fff",dark:"rgba(255,255,255,0.9)"},Gv=e=>Yv[e],Kv=Ko({name:"Toast",props:Uv,setup(e){lc(),cc();const{Icon:t}=function(e){const t=Dn(Gv(Gm())),n=({theme:e})=>t.value=Gv(e);Po(()=>{e.visible?Dv(n):zv(n)});const o=os(()=>{switch(e.icon){case"success":return Ir(ou(eu,t.value,38),{class:Xv});case"error":return Ir(ou(tu,t.value,38),{class:Xv});case"loading":return Ir("i",{class:[Xv,"uni-loading"]},null,2);default:return null}});return{Icon:o}}(e),n=_v(e,{});return()=>{const{mask:o,duration:i,title:r,image:s}=e;return Ir(fs,{name:"uni-fade"},{default:()=>[Ro(Ir("uni-toast",{"data-duration":i},[o?Ir("div",{class:"uni-mask",style:"background: transparent;",onTouchmove:Fc},null,40,["onTouchmove"]):"",s||t.value?Ir("div",{class:"uni-toast"},[s?Ir("img",{src:s,class:Xv},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 Jv,Qv,Zv="";const ey=pt();function ty(e){Jv?c(Jv,e):(Jv=bn(c(e,{visible:!1})),to(()=>{ey.run(()=>{Oo([()=>Jv.visible,()=>Jv.duration],([e,t])=>{if(e){if(Qv&&clearTimeout(Qv),"onShowLoading"===Zv)return;Qv=setTimeout(()=>{oy("onHideToast")},t)}else Qv&&clearTimeout(Qv)})}),Ry.on("onHidePopup",()=>oy("onHidePopup")),yv(Kv,Jv,()=>{}).mount(bv("u-a-t"))})),setTimeout(()=>{Jv.visible=!0},10)}const ny=Ud("showToast",(e,{resolve:t,reject:n})=>{ty(e),Zv="onShowToast",t()},0,ep);function oy(e){const{t:t}=ic();if(!Zv)return;let n="";if("onHideToast"===e&&"onShowToast"!==Zv?n=t("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==Zv&&(n=t("uni.showLoading.unpaired")),n)return console.warn(n);Zv="",setTimeout(()=>{Jv.visible=!1},10)}const iy={light:{listItemColor:"#000000",cancelItemColor:"#000000"},dark:{listItemColor:"rgba(255, 255, 255, 0.8)",cancelItemColor:"rgba(255, 255, 255)"}};const ry=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}=mv();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}=ov();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 _g(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 gg(1e-4),spring:new yg(2,90,20),onScroll:e=>{s.value=e.target.scrollTop}});p=e,hg(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]=iy[e][n]})}(e,t)};return Po(()=>{e.visible?(t.listItemColor=t.cancelItemColor=e.itemColor,"#000"===e.itemColor&&(n({theme:Gm()}),Dv(n))):zv(n)}),t}(e);return()=>Ir("uni-actionsheet",{onTouchmove:Fc},[Ir(fs,{name:"uni-fade"},{default:()=>[Ro(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 sy,ay,ly;const cy=Ie(()=>{Ry.on("onHidePopup",()=>ly.visible=!1)});function uy(e){-1===e?ay&&ay("cancel"):sy&&sy({tapIndex:e})}const dy=Ud("showActionSheet",(e,{resolve:t,reject:n})=>{cy(),sy=t,ay=n,ly?(c(ly,e),ly.visible=!0):(ly=bn(e),to(()=>(yv(ry,ly,uy).mount(bv("u-s-a-s")),to(()=>ly.visible=!0))))},0,Jf),fy=Ud("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('${Up(t.substring(5,t.length-2))}')`:t.startsWith("url(")?`url('${Up(t.substring(4,t.length-1))}')`:Up(t),n).then(()=>{o()}).catch(e=>{i(`loadFontFace:fail ${e}`)})});function py(e){function t(){var t;t=e.navigationBar.titleText,document.title=t,Ry.emit("onNavigationBarChange",{titleText:t})}Po(t),ri(t)}const hy=Xu({name:"TabBar",setup(){const e=Dn([]),t=fp(),n=Bv(t,()=>{const e=Rv(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=>{Yc({"--window-bottom":bp(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?ip({from:"tabBar",url:r,tabBarText:i}):pu("onTabItemTap",{index:n,text:i,pagePath:o})}}}(Rl(),n,e),{style:i,borderStyle:r,placeholderStyle:s}=function(e){const t=os(()=>{let t=e.backgroundColor;const n=e.blurEffect;return t||mp&&n&&"none"!==n&&(t=yy[n]),{backgroundColor:t||gy,backdropFilter:"none"!==n?"blur(10px)":n}}),n=os(()=>{const{borderStyle:t,borderColor:n}=e;return n&&v(n)?{backgroundColor:n}:{backgroundColor:by[t]||by.black}}),o=os(()=>({height:e.height}));return{style:t,borderStyle:n,placeholderStyle:o}}(n);return mi(()=>{n.iconfontSrc&&fy({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)},[_y(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 gy="#f7f7fa",my="rgb(0, 0, 0, 0.8)",vy="rgb(250, 250, 250, 0.8)",yy={dark:my,light:vy,extralight:vy},by={white:"rgba(255, 255, 255, 0.33)",black:"rgba(0, 0, 0, 0.33)"};function _y(e,t,n,o,i,r){const{height:s}=r;return Ir("div",{class:"uni-tabbar__bd",style:{height:s}},[n?xy(n,o||my,i,r):t&&wy(t,i,r),i.text&&Cy(e,i,r),i.redDot&&Sy(i.badge)],4)}function wy(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:Up(e)},null,8,["src"])],6)}function xy(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 Cy(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 Sy(e){return Ir("div",{class:"uni-tabbar__reddot"+(e?" uni-tabbar__badge":"")},[e],2)}const ky="0px",Ty=Xu({name:"Layout",setup(e,{emit:t}){const n=Dn(null);Xc({"--status-bar-height":ky,"--top-window-height":ky,"--window-left":ky,"--window-right":ky,"--window-margin":ky,"--tab-bar-height":ky});const o=function(){const e=Rl();return{routeKey:os(()=>Dp("/"+e.meta.route,dd())),isTabBar:os(()=>e.meta.isTabBar),routeCache:Rp}}(),{layoutState:i,windowState:r}=function(){ud();{const e=bn({marginWidth:0,leftWindowWidth:0,rightWindowWidth:0});return Oo(()=>e.marginWidth,e=>Xc({"--window-margin":e+"px"})),Oo(()=>e.leftWindowWidth+e.marginWidth,e=>{Xc({"--window-left":e+"px"})}),Oo(()=>e.rightWindowWidth+e.marginWidth,e=>{Xc({"--window-right":e+"px"})}),{layoutState:e,windowState:os(()=>({}))}}}();!function(e,t){const n=ud();function o(){const o=document.body.clientWidth,i=Pp();let r={};if(i.length>0){r=xp(i[i.length-1]).meta}else{const e=bu(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=ud(),t=fp(),n=os(()=>e.meta.isTabBar&&t.shown);return Xc({"--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 Ro(Ir(hy,null,null,512),[[Ts,e.value]])}(s);return Ir("uni-app",{ref:n,class:a.value},[e,t],2)}}});const Ay="MAP_LOCATION",Ey=Xu({name:"MapLocation",setup(){const e=bn({latitude:0,longitude:0,rotate:0});{let t=function(t){e.rotate=t.direction},n=function(){Mv({type:"gcj02",success:t=>{e.latitude=t.latitude,e.longitude=t.longitude},complete:()=>{r=setTimeout(n,3e4)}})},o=function(){r&&clearTimeout(r),sv(t)};const i=Ki("onMapReady");let r;rv(t),i(n),_i(o);const s=Ki("addMapChidlContext"),a=Ki("removeMapChidlContext"),l={id:Ay,state:e};s(l),_i(()=>a(l))}return()=>e.latitude?Ir(Bm,jr({anchor:{x:.5,y:.5},width:"44",height:"44",iconPath:Lm},e),null,16,["iconPath"]):null}}),My=Xu({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]:Rm()?new o.Point(n,t):new o.LatLng(t,n)}),{r:d,g:f,b:p,a:h}=Nm(l),{r:g,g:m,b:v,a:y}=Nm(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):Rm()?(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 Py(e){const t=[];return p(e)&&e.forEach(e=>{e&&e.latitude&&e.longitude&&t.push({latitude:e.latitude,longitude:e.longitude})}),t}function Ly(e,t,n){return Rm()?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 Oy(e){return"getLat"in e?e.getLat():Rm()?e.lat:e.lat()}function $y(e){return"getLng"in e?e.getLng():Rm()?e.lng:e.lng()}function Iy(e,t,n){const o=Gu(t,n),i=Dn(null);let r,s;const a=bn({latitude:Number(e.latitude),longitude:Number(e.longitude),includePoints:Py(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:Oy(e),longitude:$y(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(Rm());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=Ly(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(Rm()&&(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=Ly(r,a.latitude,a.longitude);s.setCenter(e)}())}),Rm())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=Oy(e),o=$y(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=Ly(r,a.latitude,a.longitude);s.setCenter(e)}}),Oo(()=>e.includePoints,e=>{a.includePoints=Py(e),d&&y()},{deep:!0});try{Fg((e,t={})=>{switch(e){case"getCenterLocation":f(()=>{const n=s.getCenter();De(t,{latitude:Oy(n),longitude:$y(n),errMsg:`${e}:ok`})});break;case"moveToLocation":{let n=Number(t.latitude),o=Number(t.longitude);if(!n||!o){const e=g[Ay];e&&(n=e.state.latitude,o=e.state.longitude)}if(n&&o){if(a.latitude=n,a.longitude=o,s){const e=Ly(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=Py(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:Oy(o),longitude:$y(o)},northeast:{latitude:Oy(i),longitude:$y(i)},errMsg:`${e}:ok`})});break;case"getScale":f(()=>{De(t,{scale:s.getZoom(),errMsg:`${e}:ok`})})}},Wg())}catch(_){}return mi(()=>{Mm(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 Dy=Uu({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}=Iy(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(Bm,jr({key:e.id},e),null,16)),e.polyline.map(e=>Ir(jm,e,null,16)),e.circles.map(e=>Ir(Fm,e,null,16)),e.controls.map(e=>Ir(Wm,jr(e,{trigger:r}),null,16,["trigger"])),e.showLocation&&Ir(Ey,null,null),e.polygons.map(e=>Ir(My,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"])}}),zy=c(wc,{publishHandler(e,t,n){Ry.subscribeHandler(e,t,n)}}),Ry=c($u,{publishHandler(e,t,n){zy.subscribeHandler(e,t,n)}}),By=Xu({name:"PageHead",setup(){const e=Dn(null),t=ld(),n=Bv(t.navigationBar,()=>{const e=Rv(t.navigationBar);n.backgroundColor=e.backgroundColor,n.titleColor=e.titleColor}),{clazz:o,style:i}=function(e){const t=os(()=>{const{type:t,titlePenetrate:n,shadowColorType:o}=e,i={"uni-page-head":!0,"uni-page-head-transparent":"transparent"===t,"uni-page-head-titlePenetrate":"YES"===n,"uni-page-head-shadow":!!o};return o&&(i[`uni-page-head-shadow-${o}`]=!0),i}),n=os(()=>({backgroundColor:e.backgroundColor,color:e.titleColor,transitionDuration:e.duration,transitionTimingFunction:e.timingFunc}));return{clazz:t,style:n}}(n);return()=>{const r=function(e,t){if(!t)return Ir("div",{class:"uni-page-head-btn",onClick:qy},[ou(nu,"transparent"===e.type?"#fff":e.titleColor,26)],8,["onClick"])}(n,t.isQuit),s=n.type||"default",a="transparent"!==s&&"float"!==s&&Ir("div",{class:{"uni-placeholder":!0,"uni-placeholder-titlePenetrate":n.titlePenetrate}},null,2);return Ir("uni-page-head",{"uni-page-head-type":s},[Ir("div",{ref:e,class:o.value,style:i.value},[Ir("div",{class:"uni-page-head-hd"},[r]),Ny(n),Ir("div",{class:"uni-page-head-ft"},[])],6),a],8,["uni-page-head-type"])}}});function Ny(e,t){return function({type:e,loading:t,titleSize:n,titleText:o,titleImage:i}){return Ir("div",{class:"uni-page-head-bd"},[Ir("div",{style:{fontSize:n,opacity:"transparent"===e?0:1},class:"uni-page-head__title"},[t?Ir("i",{class:"uni-loading"},null):i?Ir("img",{src:i,class:"uni-page-head__title_image"},null,8,["src"]):o],4)])}(e)}function qy(){1===Mp().length?lp({url:"/"}):$v({from:"backbutton",success(){}})}const jy=Xu({name:"PageBody",setup(e,t){const n=!1,o=Dn(null),i=Dn(null);return Oo(()=>n.enablePullDownRefresh,()=>{i.value=null},{immediate:!0}),()=>Ir(mr,null,[!1,Ir("uni-page-wrapper",jr({ref:o},i.value),[Ir("uni-page-body",null,[Ti(t.slots,"default")]),null],16)])}}),Fy=Xu({name:"Page",setup(e,t){let n=cd(dd());const o=n.navigationBar,i={};return py(n),()=>Ir("uni-page",{"data-page":n.route,style:i},"custom"!==o.style?[Ir(By),Vy(t),null]:[Vy(t),null])}});function Vy(e){return xr(),Ar(jy,{key:0},{default:vo(()=>[Ti(e.slots,"page")]),_:3})}const Wy={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0};window.uni={},window.wx={},window.rpx2px=tf;const Hy=Object.assign({}),Uy=Object.assign;window.__uniConfig=Uy({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:"苏州科普",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:Wy,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(Hy).reduce((e,t)=>{const n=t.replace(/\.\/locale\/(uni-app.)?(.*).json/,"$2");return Uy(e[n]||(e[n]={}),Hy[t].default),e},{}),router:{mode:"hash",base:"/h5/",assets:"assets",routerBase:"/h5/"},darkmode:!1,themeConfig:{}}),window.__uniLayout=window.__uniLayout||{};const Xy={delay:Wy.delay,timeout:Wy.timeout,suspensible:Wy.suspensible};Wy.loading&&(Xy.loadingComponent={name:"SystemAsyncLoading",render:()=>Ir(Co(Wy.loading))}),Wy.error&&(Xy.errorComponent={name:"SystemAsyncError",props:["error"],render(){return Ir(Co(Wy.error),{error:this.error})}});const Yy=()=>t(()=>import("./pages-index-index.J33UTvrh.js"),__vite__mapDeps([0,1,2,3])).then(e=>gm(e.default||e)),Gy=Qo(Uy({loader:Yy},Xy)),Ky=()=>t(()=>import("./pages-map-index.y7DvJciF.js"),__vite__mapDeps([4,5,2,6])).then(e=>gm(e.default||e)),Jy=Qo(Uy({loader:Ky},Xy)),Qy=()=>t(()=>import("./pages-activity-index.CkYnhpKx.js"),__vite__mapDeps([7,5,2,8])).then(e=>gm(e.default||e)),Zy=Qo(Uy({loader:Qy},Xy)),eb=()=>t(()=>import("./pages-discover-index.DnOZn1Pa.js"),__vite__mapDeps([9,5,2,10])).then(e=>gm(e.default||e)),tb=Qo(Uy({loader:eb},Xy)),nb=()=>t(()=>import("./pages-mine-index.JeDX1I_H.js"),__vite__mapDeps([11,2,12])).then(e=>gm(e.default||e)),ob=Qo(Uy({loader:nb},Xy)),ib=()=>t(()=>import("./pages-mine-orders.Ca-piMNi.js"),__vite__mapDeps([13,5,2,14])).then(e=>gm(e.default||e)),rb=Qo(Uy({loader:ib},Xy)),sb=()=>t(()=>import("./pages-activity-detail.B0yja156.js"),__vite__mapDeps([15,5,1,16,2,17])).then(e=>gm(e.default||e)),ab=Qo(Uy({loader:sb},Xy)),lb=()=>t(()=>import("./pages-activity-reserve.DizDseeD.js"),__vite__mapDeps([18,5,2,19])).then(e=>gm(e.default||e)),cb=Qo(Uy({loader:lb},Xy)),ub=()=>t(()=>import("./pages-mine-reservation-detail.DZe9vJBg.js"),__vite__mapDeps([20,5,2,21])).then(e=>gm(e.default||e)),db=Qo(Uy({loader:ub},Xy)),fb=()=>t(()=>import("./pages-study-tour-detail.DWfPNdMR.js"),__vite__mapDeps([22,5,2,23])).then(e=>gm(e.default||e)),pb=Qo(Uy({loader:fb},Xy)),hb=()=>t(()=>import("./pages-venue-detail.jukb5IQL.js"),__vite__mapDeps([24,5,1,16,2,25])).then(e=>gm(e.default||e)),gb=Qo(Uy({loader:hb},Xy)),mb=()=>t(()=>import("./pages-stats-index.CfGwH5VW.js"),__vite__mapDeps([26,2,27])).then(e=>gm(e.default||e)),vb=Qo(Uy({loader:mb},Xy)),yb=()=>t(()=>import("./pages-traffic-index.BJUqIwJD.js"),__vite__mapDeps([28,2,29])).then(e=>gm(e.default||e)),bb=Qo(Uy({loader:yb},Xy));function _b(e,t){return xr(),Ar(Fy,null,{page:vo(()=>[Ir(e,Uy({},t,{ref:"page"}),null,512)]),_:1})}window.__uniRoutes=[{path:"/",alias:"/pages/index/index",component:{setup(){const e=dm(),t=e&&e.$route&&e.$route.query||{};return()=>_b(Gy,t)}},loader:Yy,meta:{isQuit:!0,isEntry:!0,isTabBar:!0,tabBarIndex:0,navigationBar:{titleText:"苏州科普",style:"default",type:"default"},isNVue:!1}},{path:"/pages/map/index",component:{setup(){const e=dm(),t=e&&e.$route&&e.$route.query||{};return()=>_b(Jy,t)}},loader:Ky,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:1,navigationBar:{titleText:"场馆地图",type:"default"},isNVue:!1}},{path:"/pages/activity/index",component:{setup(){const e=dm(),t=e&&e.$route&&e.$route.query||{};return()=>_b(Zy,t)}},loader:Qy,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:2,navigationBar:{titleText:"活动",type:"default"},isNVue:!1}},{path:"/pages/discover/index",component:{setup(){const e=dm(),t=e&&e.$route&&e.$route.query||{};return()=>_b(tb,t)}},loader:eb,meta:{navigationBar:{titleText:"线路列表",type:"default"},isNVue:!1}},{path:"/pages/mine/index",component:{setup(){const e=dm(),t=e&&e.$route&&e.$route.query||{};return()=>_b(ob,t)}},loader:nb,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:3,navigationBar:{titleText:"我的",type:"default"},isNVue:!1}},{path:"/pages/mine/orders",component:{setup(){const e=dm(),t=e&&e.$route&&e.$route.query||{};return()=>_b(rb,t)}},loader:ib,meta:{navigationBar:{titleText:"我的活动预约",type:"default"},isNVue:!1}},{path:"/pages/activity/detail",component:{setup(){const e=dm(),t=e&&e.$route&&e.$route.query||{};return()=>_b(ab,t)}},loader:sb,meta:{navigationBar:{titleText:"活动详情",type:"default"},isNVue:!1}},{path:"/pages/activity/reserve",component:{setup(){const e=dm(),t=e&&e.$route&&e.$route.query||{};return()=>_b(cb,t)}},loader:lb,meta:{navigationBar:{titleText:"预约报名",type:"default"},isNVue:!1}},{path:"/pages/mine/reservation-detail",component:{setup(){const e=dm(),t=e&&e.$route&&e.$route.query||{};return()=>_b(db,t)}},loader:ub,meta:{navigationBar:{titleText:"预约详情",type:"default"},isNVue:!1}},{path:"/pages/study-tour/detail",component:{setup(){const e=dm(),t=e&&e.$route&&e.$route.query||{};return()=>_b(pb,t)}},loader:fb,meta:{navigationBar:{titleText:"研学线路",type:"default"},isNVue:!1}},{path:"/pages/venue/detail",component:{setup(){const e=dm(),t=e&&e.$route&&e.$route.query||{};return()=>_b(gb,t)}},loader:hb,meta:{navigationBar:{titleText:"场馆详情",type:"default"},isNVue:!1}},{path:"/pages/stats/index",component:{setup(){const e=dm(),t=e&&e.$route&&e.$route.query||{};return()=>_b(vb,t)}},loader:mb,meta:{navigationBar:{titleText:"活跃指数排行榜",type:"default"},isNVue:!1}},{path:"/pages/traffic/index",component:{setup(){const e=dm(),t=e&&e.$route&&e.$route.query||{};return()=>_b(bb,t)}},loader:yb,meta:{navigationBar:{titleText:"客流统计",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 za,Ra,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,"")}(Ra=za||(za={})).pop="pop",Ra.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:za.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 zl(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=zn(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),z(n).then(()=>{n=[];for(const o of r.list())n.push(El(o,e,t));return n.push(l),z(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),z(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),z(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Ml(a,"beforeRouteEnter",e,t,_),n.push(l),z(n))).then(()=>{n=[];for(const o of s.list())n.push(El(o,e,t));return n.push(l),z(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===za.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===za.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 z(e){return e.reduce((e,t)=>e.then(()=>_(t)),Promise.resolve())}return D}function Rl(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&&Cf?Cf():"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=dm().$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=Cf(),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.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)}),fc=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 pc(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 hc="invokeViewApi",gc="invokeServiceApi";let mc=1;const vc=Object.create(null);function yc(e,t){return e+"."+t}function bc(e,t,n){t=yc(e,t),vc[t]||(vc[t]=n)}function _c({id:e,name:t,args:n},o){t=yc(o,t);const i=t=>{e&&zy.publishHandler(hc+"."+e,t)},r=vc[t];r?r(n,i):i({})}const wc=c(pc("service"),{invokeServiceMethod:(e,t,n)=>{const{subscribe:o,publishHandler:i}=zy,r=n?mc++:0;n&&o(gc+"."+r,n,!0),i(gc,{id:r,name:e,args:t})}}),xc=Xe(!0);let Cc;function Sc(){Cc&&(clearTimeout(Cc),Cc=null)}let kc=0,Tc=0;function Ac(e){if(Sc(),1!==e.touches.length)return;const{pageX:t,pageY:n}=e.touches[0];kc=t,Tc=n,Cc=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 Ec(e){if(!Cc)return;if(1!==e.touches.length)return Sc();const{pageX:t,pageY:n}=e.touches[0];return Math.abs(t-kc)>10||Math.abs(n-Tc)>10?Sc():void 0}function Mc(e,t){const n=Number(e);return isNaN(n)?t:n}function Pc(){const e=__uniConfig.globalStyle||{},t=Mc(e.rpxCalcMaxDeviceWidth,960),n=Mc(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 Lc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Oc,$c,Ic=["top","left","right","bottom"],Dc={};function zc(){return $c="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 Rc(){if($c="string"==typeof $c?$c: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"}),Ic.forEach(function(e){s(o,e)}),document.body.appendChild(o),r(),Oc=!0}else Ic.forEach(function(e){Dc[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:$c+"(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){Nc.length||setTimeout(function(){var e={};Nc.forEach(function(t){e[t]=Dc[t]}),Nc.length=0,qc.forEach(function(t){t(e)})},0);Nc.push(e)}(n))}o.addEventListener("scroll",r,t),s.addEventListener("scroll",r,t)});var u=getComputedStyle(o);Object.defineProperty(Dc,n,{configurable:!0,get:function(){return parseFloat(u.paddingBottom)}})}}function Bc(e){return Oc||Rc(),Dc[e]}var Nc=[];var qc=[];const jc=Lc({get support(){return 0!=("string"==typeof $c?$c:zc()).length},get top(){return Bc("top")},get left(){return Bc("left")},get right(){return Bc("right")},get bottom(){return Bc("bottom")},onChange:function(e){zc()&&(Oc||Rc(),"function"==typeof e&&qc.push(e))},offChange:function(e){var t=qc.indexOf(e);t>=0&&qc.splice(t,1)}}),Fc=Zs(()=>{},["prevent"]),Vc=Zs(e=>{},["stop"]);function Wc(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function Hc(){const e=Wc(document.documentElement.style,"--window-top");return e?e+jc.top:0}function Uc(){const e=document.documentElement.style,t=Hc(),n=Wc(e,"--window-bottom"),o=Wc(e,"--window-left"),i=Wc(e,"--window-right"),r=Wc(e,"--top-window-height");return{top:t,bottom:n?n+jc.bottom:0,left:o?o+jc.left:0,right:i?i+jc.right:0,topWindowHeight:r||0}}function Xc(e){const t=document.documentElement.style;Object.keys(e).forEach(n=>{t.setProperty(n,e[n])})}function Yc(e){return Xc(e)}function Gc(e){return Symbol(e)}function Kc(e){return-1!==(e+="").indexOf("rpx")||-1!==e.indexOf("upx")}function Jc(e,t=!1){if(t)return function(e){if(!Kc(e))return e;return e.replace(/(\d+(\.\d+)?)[ru]px/g,(e,t)=>tf(parseFloat(t))+"px")}(e);if(v(e)){const t=parseInt(e)||0;return Kc(e)?tf(t):t}return e}function Qc(e){return e.$page}function Zc(e){return 0===e.tagName.indexOf("UNI-")}const eu="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",tu="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",nu="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 ou(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 iu(){{const{$pageInstance:e}=Ur();return e&&fu(e.proxy)}}function ru(e){const t=Be(e);if(t.$page)return fu(t);if(!t.$)return;{const{$pageInstance:e}=t.$;if(e)return fu(e.proxy)}const n=t.$.root.proxy;return n&&n.$page?fu(n):void 0}function su(){const e=Mp(),t=e.length;if(t)return e[t-1]}function au(){var e;const t=null==(e=su())?void 0:e.$page;if(t)return t.meta}function lu(){const e=au();return e?e.id:-1}function cu(){const e=su();if(e)return e.$vm}const uu=["navigationBar","pullToRefresh"];function du(e,t){const n=JSON.parse(JSON.stringify(__uniConfig.globalStyle||{})),o=c({id:t},n,e);uu.forEach(t=>{o[t]=c({},n[t],e[t])});const{navigationBar:i}=o;return i.titleText&&i.titleImage&&(i.titleText=""),o}function fu(e){var t,n;return(null==(t=e.$page)?void 0:t.id)||(null==(n=e.$basePage)?void 0:n.id)}function pu(e,t,n){if(v(e))n=t,t=e,e=cu();else if("number"==typeof e){const t=Mp().find(t=>Qc(t).id===e);e=t?t.$vm:cu()}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-mu)>n;return!r||i&&!s?(!r&&i&&(i=!1),!1):(mu=e,i=!0,!0)})())return t&&t(),r=!1,setTimeout(function(){r=!0},350),!0}e&&e(window.pageYOffset),t&&r&&(s()||(gu=setTimeout(s,300))),o=!1};return function(){clearTimeout(gu),o||requestAnimationFrame(s),o=!0}}function yu(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return yu(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 bu(e,t=!1){return t?__uniRoutes.find(t=>t.path===e||t.alias===e):__uniRoutes.find(t=>t.path===e)}function _u(){Pc(),We(Zc),window.addEventListener("touchstart",Ac,xc),window.addEventListener("touchmove",Ec,xc),window.addEventListener("touchend",Sc,xc),window.addEventListener("touchcancel",Sc,xc)}class wu{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=ku(this.$el.querySelector(e));return t?xu(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&&zy.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 xu(e,t=!0){if(t&&e&&(e=Ne(e.$)),e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new wu(e)),e.$el.__wxsComponentDescriptor}function Cu(e,t){return xu(e,t)}function Su(e,t,n,o=!0){if(t){e.__instance||(e.__instance=!0,Object.defineProperty(e,"instance",{get:()=>Cu(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,Cu(i,!1)]}}function ku(e){if(e)return e.__vueParentComponent&&e.__vueParentComponent.proxy}function Tu(e,t=!1){const{type:n,timeStamp:o,target:i,currentTarget:r}=e;let s,a;s=Ye(t?i:function(e){for(;!Zc(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 Au(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function Eu(e,t){const n=[];for(let o=0;o0===e.type.indexOf("mouse")||["contextmenu"].includes(e.type))(e))!function(e,t){const n=Hc();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[Au(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=Hc();r.touches=Eu(e.touches,t),r.changedTouches=Eu(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 Su(r,t,n)||[r]},createNativeEvent:Tu},Symbol.toStringTag,{value:"Module"});function Pu(e){!function(e){const t=e.globalProperties;c(t,Mu),t.$gcd=Cu}(e._context.config)}let Lu=1;function Ou(e){return(e||lu())+"."+hc}const $u=c(pc("view"),{invokeOnCallback:(e,t)=>Ry.emit("api."+e,t),invokeViewMethod:(e,t,n,o)=>{const{subscribe:i,publishHandler:r}=Ry,s=o?Lu++:0;o&&i(hc+"."+s,o,!0),r(Ou(n),{id:s,name:e,args:t},n)},invokeViewMethodKeepAlive:(e,t,n,o)=>{const{subscribe:i,unsubscribe:r,publishHandler:s}=Ry,a=Lu++,l=hc+"."+a;return i(l,n),s(Ou(o),{id:a,name:e,args:t},o),()=>{r(l)}}});function Iu(e){pu(su(),ge,e),Ry.invokeOnCallback("onWindowResize",e)}function Du(e){const t=su();pu(dm(),ie,e),pu(t,ie)}function zu(){pu(dm(),re),pu(su(),re)}const Ru=[ve,be];function Bu(){Ru.forEach(e=>Ry.subscribe(e,function(e){return(t,n)=>{pu(parseInt(n),e,t)}}(e)))}function Nu(){!function(){const{on:e}=Ry;e(ge,Iu),e(Pe,Du),e(Le,zu)}(),Bu()}function qu(){if(this.$route){const e=this.$route.meta;return e.eventChannel||(e.eventChannel=new et(this.$page.id)),e.eventChannel}}function ju(e){e._context.config.globalProperties.getOpenerEventChannel=qu}function Fu(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}function Vu(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,(e,t)=>`${tf(parseFloat(t))}px`):/^-?[\d\.]+$/.test(e)?`${e}px`:e||""}function Wu(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(Vu)),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)?Vu(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 Hu={props:["animation"],watch:{animation:{deep:!0,handler(){Wu(this)}}},mounted(){Wu(this)}},Uu=e=>{e.__reserved=!0;const{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(Hu),Xu(e)},Xu=e=>(e.__reserved=!0,e.compatConfig={MODE:3},Ko(e));function Yu(e){return e.__wwe=!0,e}function Gu(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 Ku={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function Ju(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:Yu(function(e){e.touches.length>1||s(e)}),onMousedown:Yu(function(e){i||(s(e),window.addEventListener("mouseup",l))}),onTouchend:Yu(function(){a()}),onMouseup:Yu(function(){i&&l()}),onTouchcancel:Yu(function(){i=!1,t.value=!1,clearTimeout(n)})}}}function Qu(e,t){return v(t)&&(t=[t]),t.reduce((t,n)=>(e[n]&&(t[n]=!0),t),Object.create(null))}const Zu=Gc("uf"),ed={for:{type:String,default:""}},td=Gc("ul");const nd=Uu({name:"Label",props:ed,setup(e,{slots:t}){const n=Dn(null),o=iu(),i=function(){const e=[];return Gi(td,{addHandler(t){e.push(t)},removeHandler(t){e.splice(e.indexOf(t),1)}}),e}(),r=os(()=>e.for||t.default&&t.default.length),s=Yu(t=>{const n=t.target;let r=/^uni-(checkbox|radio|switch)-/.test(n.className);r||(r=/^uni-(checkbox|radio|switch|button)$|^(svg|path)$/i.test(n.tagName)),r||(e.for?zy.emit("uni-label-click-"+o+"-"+e.for,t,!0):i.length&&i[0](t,!0))});return()=>Ir("uni-label",{ref:n,class:{"uni-label-pointer":r},onClick:s},[t.default&&t.default()],10,["onClick"])}});function od(e,t){id(e.id,t),Oo(()=>e.id,(e,n)=>{rd(n,t,!0),id(e,t,!0)}),_i(()=>{rd(e.id,t)})}function id(e,t,n){const o=iu();n&&!e||C(t)&&Object.keys(t).forEach(i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&zy.on(`uni-${i}-${o}-${e}`,t[i]):0===i.indexOf("uni-")?zy.on(i,t[i]):e&&zy.on(`uni-${i}-${o}-${e}`,t[i])})}function rd(e,t,n){const o=iu();n&&!e||C(t)&&Object.keys(t).forEach(i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&zy.off(`uni-${i}-${o}-${e}`,t[i]):0===i.indexOf("uni-")?zy.off(i,t[i]):e&&zy.off(`uni-${i}-${o}-${e}`,t[i])})}const sd=Uu({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(Zu,!1),{hovering:i,binding:r}=Ju(e),s=Yu((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)})),od(e,{"label-click":s}),()=>{const o=e.hoverClass,a=Qu(e,"disabled"),l=Qu(e,"loading"),c=Qu(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"])}}}),ad=Gc("upm");function ld(){return Ki(ad)}function cd(e){const t=function(e){return bn(function(e){{const{navigationBar:t}=e,{titleSize:n,titleColor:o,backgroundColor:i}=t;t.titleText=t.titleText||"",t.type=t.type||"default",t.titleSize=n||"16px",t.titleColor=o||"#000000",t.backgroundColor=i||"#F8F8F8"}if(history.state){const t=history.state.__type__;"redirectTo"!==t&&"reLaunch"!==t||0!==Mp().length||(e.isEntry=!0,e.isQuit=!0)}return e}(JSON.parse(JSON.stringify(du(Rl().meta,e)))))}(e);return Gi(ad,t),t}function ud(){return Rl()}function dd(){return history.state&&history.state.__id__||1}const 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){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}let gd=1;const md={};function vd(e,t,n,o=!1){return md[e]={name:t,keepAlive:o,callback:n},e}function yd(e,t,n){if("number"==typeof e){const o=md[e];if(o)return o.keepAlive||delete md[e],o.callback(t,n)}return t}function bd(e){for(const t in md)if(md[t].name===e)return!0;return!1}const _d="success",wd="fail",xd="complete";function Cd(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]=hd(o),delete e[n])}return t}(t),a=m(i),l=m(r),c=m(s),u=gd++;return vd(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 Sd="success",kd="fail",Td="complete",Ad={},Ed={};function Md(e,t){return function(n){return e(n,t)||n}}function Pd(e,t,n){let o=!1;for(let i=0;ie(t),catch(){}}}function Ld(e,t={}){return[Sd,kd,Td].forEach(n=>{const o=e[n];if(!p(o))return;const i=t[n];t[n]=function(e){Pd(o,e,t).then(e=>m(i)&&i(e)||e)}}),t}function Od(e,t){const n=[];p(Ad.returnValue)&&n.push(...Ad.returnValue);const o=Ed[e];return o&&p(o.returnValue)&&n.push(...o.returnValue),n.forEach(e=>{t=e(t)||t}),t}function $d(e){const t=Object.create(null);Object.keys(Ad).forEach(e=>{"returnValue"!==e&&(t[e]=Ad[e].slice())});const n=Ed[e];return n&&Object.keys(n).forEach(e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))}),t}function Id(e,t,n,o){const i=$d(e);if(i&&Object.keys(i).length){if(p(i.invoke)){return Pd(i.invoke,n).then(n=>t(Ld($d(e),n),...o))}return t(Ld(i,n),...o)}return t(n,...o)}function Dd(e,t){return(n={},...o)=>function(e){return!(!C(e)||![_d,wd,xd].find(t=>m(e[t])))}(n)?Od(e,Id(e,t,c({},n),o)):Od(e,new Promise((i,r)=>{Id(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,yd(e,c({errMsg:r},o))}function Rd(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{Bd(o);const i=Rd(0,[o],0,n);if(i)throw new Error(i);const r=!bd(e);!function(e,t){vd(gd++,e,t,!0)}(e,o),r&&(!function(e){Ry.on("api."+e,t=>{for(const n in md){const o=md[n];o.name===e&&o.callback(t)}})}(e),t())}}function qd(e,t,n){return o=>{Bd(o);const i=Rd(0,[o],0,n);if(i)throw new Error(i);!function(e,t){for(const n in md){const o=md[n];o.callback===t&&o.name===e&&delete md[n]}}(e=e.replace("off","on"),o);bd(e)||(!function(e){Ry.off("api."+e)}(e),t())}}function jd(e,t,n,o){return n=>{const i=Cd(e,n,o),r=Rd(0,[n],0,o);return r?zd(i,e,r):t(n,{resolve:t=>function(e,t,n){return yd(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 Fd(e,t,n){return Nd(e,t,n)}function Vd(e,t,n){return qd(e,t,n)}function Wd(e,t,n,o){return Dd(e,jd(e,t,0,o))}function Hd(e,t,n,o){return function(e,t,n,o){return(...e)=>{const n=Rd(0,e,0,o);if(n)throw new Error(n);return t.apply(null,e)}}(0,t,0,o)}function Ud(e,t,n,o){return Dd(e,function(e,t,n,o){return jd(e,t,0,o)}(e,t,0,o))}let Xd=!1,Yd=0,Gd=0,Kd=960,Jd=375,Qd=750;function Zd(){let e,t,n;{const{windowWidth:o,pixelRatio:i,platform:r}=function(){const e=eh(),t=oh(nh(e,th(e)));return{platform:Gp?"ios":"other",pixelRatio:window.devicePixelRatio,windowWidth:t}}();e=o,t=i,n=r}Yd=e,Gd=t,Xd="ios"===n}function ef(e,t){const n=Number(e);return isNaN(n)?t:n}const tf=Hd(0,(e,t)=>{if(0===Yd&&(Zd(),function(){const e=__uniConfig.globalStyle||{};Kd=ef(e.rpxCalcMaxDeviceWidth,960),Jd=ef(e.rpxCalcBaseDeviceWidth,375),Qd=ef(e.rpxCalcBaseDeviceWidth,750)}()),0===(e=Number(e)))return 0;let n=t||Yd;n=e===Qd||n<=Kd?n:Jd;let o=e/750*n;return o<0&&(o=-o),o=Math.floor(o+1e-4),0===o&&(o=1!==Gd&&Xd?.5:1),e<0?-o:o}),nf=[.5,.8,1,1.25,1.5,2];const of=(e,t,n,o)=>{!function(e,t,n,o,i){Ry.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 rf=["scale","rotate","translate","setTransform","transform"],sf=["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"],af=["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"];const lf={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 cf(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(lf,n)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(lf[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 uf{constructor(e,t){this.type=e,this.data=t,this.colorStop=[]}addColorStop(e,t){this.colorStop.push([e,cf(t)])}}class df{constructor(e,t){this.type="pattern",this.data=e,this.colorStop=t}}class ff{constructor(e){this.width=e}}class pf{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){Ry.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 uf("linear",[e,t,n,o])}createCircularGradient(e,t,n){return new uf("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 df(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 ff(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 hf=Ie(()=>{[...rf,...sf].forEach(function(e){pf.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)}),af.forEach(function(e){pf.prototype[e]=function(e){switch(e){case"setFillStyle":case"setStrokeStyle":return function(t){"object"!=typeof t?this.actions.push({method:e,data:["normal",cf(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=cf(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)})}),gf=Hd(0,(e,t)=>{if(hf(),t)return new pf(e,ru(t));const n=ru(cu());if(n)return new pf(e,n);Ry.emit(ae,"createCanvasContext:fail")});let mf=0,vf={};const yf={canvas:pf,map:class{constructor(e,t){this.id=e,this.pageId=t}getCenterLocation(e){of(this.id,this.pageId,"getCenterLocation",e)}moveToLocation(e){of(this.id,this.pageId,"moveToLocation",e)}getScale(e){of(this.id,this.pageId,"getScale",e)}getRegion(e){of(this.id,this.pageId,"getRegion",e)}includePoints(e){of(this.id,this.pageId,"includePoints",e)}translateMarker(e){of(this.id,this.pageId,"translateMarker",e)}$getAppMap(){}addCustomLayer(e){of(this.id,this.pageId,"addCustomLayer",e)}removeCustomLayer(e){of(this.id,this.pageId,"removeCustomLayer",e)}addGroundOverlay(e){of(this.id,this.pageId,"addGroundOverlay",e)}removeGroundOverlay(e){of(this.id,this.pageId,"removeGroundOverlay",e)}updateGroundOverlay(e){of(this.id,this.pageId,"updateGroundOverlay",e)}initMarkerCluster(e){of(this.id,this.pageId,"initMarkerCluster",e)}addMarkers(e){of(this.id,this.pageId,"addMarkers",e)}removeMarkers(e){of(this.id,this.pageId,"removeMarkers",e)}moveAlong(e){of(this.id,this.pageId,"moveAlong",e)}setLocMarkerIcon(e){of(this.id,this.pageId,"setLocMarkerIcon",e)}openMapApp(e){of(this.id,this.pageId,"openMapApp",e)}on(e,t){of(this.id,this.pageId,"on",{name:e,callback:t})}},video:class{constructor(e,t){this.id=e,this.pageId=t}play(){ih(this.id,this.pageId,"play")}pause(){ih(this.id,this.pageId,"pause")}stop(){ih(this.id,this.pageId,"stop")}seek(e){ih(this.id,this.pageId,"seek",{position:e})}sendDanmu(e){ih(this.id,this.pageId,"sendDanmu",e)}playbackRate(e){~nf.indexOf(e)||(e=1),ih(this.id,this.pageId,"playbackRate",{rate:e})}requestFullScreen(e={}){ih(this.id,this.pageId,"requestFullScreen",e)}exitFullScreen(){ih(this.id,this.pageId,"exitFullScreen")}showStatusBar(){ih(this.id,this.pageId,"showStatusBar")}hideStatusBar(){ih(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(mf++);i.callbackId=e,vf[e]=o}Ry.invokeViewMethod(`editor.${e}`,{type:n,data:i},t,({callbackId:e,data:t})=>{r&&(De(vf[e],t),delete vf[e])})}(this.id,this.pageId,e,t)}}};function bf(e){if(e&&e.contextInfo){const{id:t,type:n,page:o}=e.contextInfo,i=yf[n];e.context=new i(t,o),delete e.contextInfo}}class _f{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 wf{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):sh(r,n)?r:r.querySelector(n);return e?rh(e,i):null}{let e=[];const t=(l?s:r).querySelectorAll(n);return t&&t.length&&[].forEach.call(t,t=>{e.push(rh(t,i))}),!l&&sh(r,n)&&e.unshift(rh(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(bf):bf(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 _f(this,this._component,e,!0)}selectAll(e){return this._nodesRef=new _f(this,this._component,e,!1)}selectViewport(){return this._nodesRef=new _f(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 xf=Hd(0,e=>((e=Be(e))&&!ru(e)&&(e=null),new wf(e||cu()))),Cf=Hd(0,()=>{const e=dm();return e&&e.$vm?e.$vm.$locale:ic().getLocale()}),Sf={[ue]:[],[ce]:[],[ae]:[],[ie]:[],[re]:[]};const kf={formatArgs:{showToast:!0},beforeInvoke(){dc()},beforeSuccess(e,t){if(!t.showToast)return;const{t:n}=ic(),o=n("uni.setClipboardData.success");o&&ny({title:o,icon:"success",mask:!1})}},Tf="onCompass",Af=["wgs84","gcj02"],Ef={formatArgs:{type(e,t){e=(e||"").toLowerCase(),-1===Af.indexOf(e)?t.type=Af[0]:t.type=e},altitude(e,t){t.altitude=e||!1}}},Mf=(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)}.`}},Pf={formatArgs:{latitude(e,t){const n=Mf("latitude",e);if(n)return n;t.latitude=e},longitude(e,t){const n=Mf("longitude",e);if(n)return n;t.longitude=e},scale(e,t){e=Math.floor(e),t.scale=e>=5&&e<=18?e:18}}},Lf="json",Of=["text","arraybuffer"],$f=encodeURIComponent;const If={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[$f(a)]=$f(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||Lf).toLowerCase()},responseType(e,t){t.responseType=(e||"").toLowerCase(),-1===Of.indexOf(t.responseType)&&(t.responseType="text")}}};const Df={url:{type:String,required:!0}},zf="navigateTo",Rf="redirectTo",Bf="reLaunch",Nf="switchTab",qf="preloadPage",jf=(Uf(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"]),Uf(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"]),Gf(zf)),Ff=Gf(Rf),Vf=Gf(Bf),Wf=Gf(Nf),Hf={formatArgs:{delta(e,t){e=parseInt(e+"")||1,t.delta=Math.min(Mp().length-1,e)}}};function Uf(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 Xf;function Yf(){Xf=""}function Gf(e){return{formatArgs:{url:Kf(e)},beforeAll:Yf}}function Kf(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=Mp();return n.length&&(t=Qc(n[n.length-1]).route),yu(t,e)}(t)).split("?")[0],i=bu(o,!0);if(!i)return"page `"+t+"` is not found";if(e===zf||e===Rf){if(i.meta.isTabBar)return`can not ${e} a tabbar page`}else if(e===Nf&&!i.meta.isTabBar)return"can not switch to no-tabBar page";if(e!==Nf&&e!==qf||!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!==qf){if(Xf===t&&"appLaunch"!==n.openType)return`${Xf} locked`;__uniConfig.ready&&(Xf=t)}else if(i.meta.isTabBar){const e=Mp(),t=i.path.slice(1);if(e.find(e=>e.route===t))return"tabBar page `"+t+"` already exists"}}}const Jf={formatArgs:{itemColor:"#000"}},Qf={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"}},Zf=["success","loading","none","error"],ep={formatArgs:{title:"",icon(e,t){t.icon=pd(e,Zf)},image(e,t){t.image=e?Up(e):""},duration:1500,mask:!1}};function tp(){const e=cu();if(!e)return;const t=Ep(),n=t.keys();for(const o of n){const e=t.get(o);e.$.__isTabBar?e.$.__isActive=!1:Lp(o)}e.$.__isTabBar&&(e.$.__isVisible=!1,pu(e,re))}function np(e,t){return e===t.fullPath||"/"===e&&t.meta.isEntry}function op(e){const t=Ep().values();for(const n of t){const t=xp(n);if(np(e,t))return n.$.__isActive=!0,t.id}}const ip=Ud(Nf,({url:e,tabBarText:t,isAutomatedTesting:n},{resolve:o,reject:i})=>{if(Cp.handledBeforeEntryPageRoutes)return tp(),cp({type:Nf,url:e,tabBarText:t,isAutomatedTesting:n},op(e)).then(o).catch(i);kp.push({args:{type:Nf,url:e,tabBarText:t,isAutomatedTesting:n},resolve:o,reject:i})},0,Wf);function rp(){const e=su();if(!e)return;const t=xp(e);Lp(Dp(t.path,t.id))}const sp=Ud(Rf,({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(Cp.handledBeforeEntryPageRoutes)return rp(),cp({type:Rf,url:e,isAutomatedTesting:t}).then(n).catch(o);Tp.push({args:{type:Rf,url:e,isAutomatedTesting:t},resolve:n,reject:o})},0,Ff);function ap(){const e=Ep().keys();for(const t of e)Lp(t)}const lp=Ud(Bf,({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(Cp.handledBeforeEntryPageRoutes)return ap(),cp({type:Bf,url:e,isAutomatedTesting:t}).then(n).catch(o);Ap.push({args:{type:Bf,url:e,isAutomatedTesting:t},resolve:n,reject:o})},0,Vf);function cp({type:e,url:t,tabBarText:n,events:o,isAutomatedTesting:i},r){const s=dm().$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||++Op,__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 up(){if(Cp.handledBeforeEntryPageRoutes)return;Cp.handledBeforeEntryPageRoutes=!0;const e=[...Sp];Sp.length=0,e.forEach(({args:e,resolve:t,reject:n})=>cp(e).then(t).catch(n));const t=[...kp];kp.length=0,t.forEach(({args:e,resolve:t,reject:n})=>(tp(),cp(e,op(e.url)).then(t).catch(n)));const n=[...Tp];Tp.length=0,n.forEach(({args:e,resolve:t,reject:n})=>(rp(),cp(e).then(t).catch(n)));const o=[...Ap];Ap.length=0,o.forEach(({args:e,resolve:t,reject:n})=>(ap(),cp(e).then(t).catch(n)))}let dp;function fp(){var e;return dp||(dp=__uniConfig.tabBar&&bn((e=__uniConfig.tabBar,Zl()&&e.list&&e.list.forEach(e=>{oc(e,["text"])}),e))),dp}function pp(e){const t=window.CSS&&window.CSS.supports;return t&&(t(e)||t.apply(window.CSS,e.split(":")))}const hp=pp("top:env(a)"),gp=pp("top:constant(a)"),mp=pp("backdrop-filter:blur(10px)"),vp=(()=>hp?"env":gp?"constant":"")();function yp(e){let t=0,n=0;if("custom"!==e.navigationBar.style&&["default","float"].indexOf(e.navigationBar.type)>-1&&(t=44),e.isTabBar){const e=fp();e.shown&&(n=parseInt(e.height))}var o;Yc({"--window-top":(o=t,vp?`calc(${o}px + ${vp}(safe-area-inset-top))`:`${o}px`),"--window-bottom":bp(n)})}function bp(e){return vp?`calc(${e}px + ${vp}(safe-area-inset-bottom))`:`${e}px`}const _p="$$",wp=new Map;function xp(e){return e.$page}const Cp={handledBeforeEntryPageRoutes:!1},Sp=[],kp=[],Tp=[],Ap=[];function Ep(){return wp}function Mp(){return Pp()}function Pp(){const e=[],t=wp.values();for(const n of t)n.$.__isTabBar?n.$.__isActive&&e.push(n):e.push(n);return e}function Lp(e,t=!0){const n=wp.get(e);n.$.__isUnload=!0,pu(n,fe),wp.delete(e),t&&function(e){const t=zp.get(e);t&&(zp.delete(e),Rp.pruneCacheEntry(t))}(e)}let Op=dd();function $p(e){const t=ld();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 Ip(e){const t=$p(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),wp.set(Dp(t.path,t.id),e),1===wp.size&&setTimeout(()=>{up()},0)}function Dp(e,t){return e+_p+t}const zp=new Map,Rp={get:e=>zp.get(e),set(e,t){!function(e){const t=parseInt(e.split(_p)[1]);if(!t)return;Rp.forEach((e,n)=>{const o=parseInt(n.split(_p)[1]);if(o&&o>t){if(function(e){return"tabBar"===e.props.type}(e))return;Rp.delete(n),Rp.pruneCacheEntry(e),to(()=>{wp.forEach((e,t)=>{e.$.isUnmounted&&wp.delete(t)})})}})}(e),zp.set(e,t)},delete(e){zp.get(e)&&zp.delete(e)},forEach(e){zp.forEach(e)}};function Bp(e,t){!function(e){const t=qp(e),{body:n}=document;jp&&n.removeAttribute(jp),t&&n.setAttribute(t,""),jp=t}(e),yp(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),Wp(e,t)}function Np(e){const t=qp(e);t&&function(e){const t=document.querySelector("uni-page-body");t&&t.setAttribute(e,"")}(t)}function qp(e){return e.type.__scopeId}let jp;const Fp=!!(()=>{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 Vp;function Wp(e,t){if(document.removeEventListener("touchmove",hu),Vp&&document.removeEventListener("scroll",Vp),t.disableScroll)return document.addEventListener("touchmove",hu,Fp);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=xp(e.proxy).id;(n||i)&&(r.onPageScroll=function(e,t,n){return o=>{t&&zy.publishHandler(ve,{scrollTop:o},e),n&&zy.emit(e+"."+ve,{scrollTop:o})}}(s,n,i)),(null==o?void 0:o.length)&&(r.onReachBottomDistance=t.onReachBottomDistance||50,r.onReachBottom=()=>zy.publishHandler(be,{},s)),Vp=vu(r),requestAnimationFrame(()=>document.addEventListener("scroll",Vp))}function Hp(e){const{base:t}=__uniConfig.router;return 0===$e(e).indexOf(t)?$e(e):t+e}function Up(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 Hp(e.slice(1));e="https:"+e}if(ne.test(e)||oe.test(e)||0===e.indexOf("blob:"))return e;const o=Pp();return o.length?Hp(yu(xp(o[o.length-1]).route,e).slice(1)):e}const Xp=navigator.userAgent,Yp=/android/i.test(Xp),Gp=/iphone|ipad|ipod/i.test(Xp),Kp=Xp.match(/Windows NT ([\d|\d.\d]*)/i),Jp=/Macintosh|Mac/i.test(Xp),Qp=/Linux|X11/i.test(Xp),Zp=Jp&&navigator.maxTouchPoints>0;function eh(){return/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation}function th(e){return e&&90===Math.abs(window.orientation)}function nh(e,t){return e?Math[t?"max":"min"](screen.width,screen.height):screen.width}function oh(e){return Math.min(window.innerWidth,document.documentElement.clientWidth,e)||e}function ih(e,t,n,o){Ry.invokeViewMethod("video."+e,{videoId:e,type:n,data:o},t)}function rh(e,t){const n={},{top:o,topWindowHeight:i}=Uc();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 sh(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 ah={};function lh(e,t){const n=ah[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 function(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}(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 ch(e){for(const n in ah)if(f(ah,n)){if(ah[n]===e)return n}var t=(window.URL||window.webkitURL).createObjectURL(e);return ah[t]=e,t}const uh=Fu(),dh=Fu();const fh=Uu({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 ph=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 hh(e,t=!0){const n=t?ph:1;e.width=e.offsetWidth*n,e.height=e.offsetHeight*n,e.getContext("2d").__hidpi__=t}let gh=!1;function mh(){if(gh)return;gh=!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*=ph,o*=ph,i*=ph,r*=ph,s*=ph,a*=ph,l=u?l*ph:l,c=u?c*ph:c,e.call(this,t,n,o,i,r,s,a,l,c)}}(t.drawImage),1!==ph&&(!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*ph});else if(Array.isArray(e))for(let t=0;tmh());function yh(e){return e?Up(e):e}function bh(e){return(e=e.slice(0))[3]=e[3]/255,"rgba("+e.join(",")+")"}function _h(e,t){Array.from(t).forEach(t=>{t.x=t.clientX-e.left,t.y=t.clientY-e.top})}let wh;function xh(e=0,t=0){return wh||(wh=document.createElement("canvas")),wh.width=e,wh.height=t,wh}const Ch=Uu({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}){vh();const o=Dn(null),i=Dn(null),r=Dn(null),s=Dn(!1),a=function(e){return(t,n)=>{e(t,Tu(n))}}(t),{$attrs:l,$excludeAttrs:u,$listeners:d}=cg({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(Yu(e=>{const o=e.currentTarget.getBoundingClientRect();_h(o,e.touches),_h(o,e.changedTouches),n(t.replace("on","").toLocaleLowerCase(),e)})),e.disableScroll&&"onTouchmove"===t&&o.push(Fc),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?ph: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);hh(o,e.hidpi),t.putImageData(n,0,0)}else hh(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=yh(o),n[0]=o):"setFillStyle"===t&&"pattern"===n[0]&&(o=n[1],o=yh(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=xh(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=xh(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 Fg(h,Wg(e.canvasId)),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(fh,{ref:r,onResize:g},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});function Sh(){}const kh={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 Th(e,t,n){function o(e){const t=os(()=>0===String(navigator.vendor).indexOf("Apple"));e.addEventListener("focus",()=>{clearTimeout(void 0),document.addEventListener("click",Sh,!1)});e.addEventListener("blur",()=>{t.value&&e.blur(),document.removeEventListener("click",Sh,!1),t.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)})}Oo(()=>t.value,e=>e&&o(e))}var Ah=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,Eh=/^<\/([-A-Za-z0-9_]+)[^>]*>/,Mh=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,Ph=zh("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),Lh=zh("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"),Oh=zh("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"),$h=zh("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),Ih=zh("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),Dh=zh("script,style");function zh(e){for(var t={},n=e.split(","),o=0;oe/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},Nh={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"]},qh=Uu({name:"Image",props:Rh,setup(e,{emit:t}){const n=Dn(null),o=function(e,t){const n=Dn(""),o=os(()=>{let e="auto",o="";const i=Nh[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?Up(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=Gu(n,t),{fixSize:r}=function(e,t,n){const o=()=>{const{mode:o}=t,i=Bh[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){jh&&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)=>{Bh[t]&&i(),Bh[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),Bh[e.mode]?Ir(fh,{onResize:r},null,8,["onResize"]):Ir("span",null,null)],512)}});const jh="Google Inc."===navigator.vendor;const Fh=Xe(!0),Vh=[];let Wh=0,Hh=!1;const Uh=e=>Vh.forEach(t=>t.userAction=e);function Xh(){const e=bn({userAction:!1});return mi(()=>{!function(e={userAction:!1}){Hh||(["touchstart","touchmove","touchend","mousedown","mouseup"].forEach(e=>{document.addEventListener(e,function(){!Wh&&Uh(!0),Wh++,setTimeout(()=>{! --Wh&&Uh(!1)},0)},Fh)}),Hh=!0);Vh.push(e)}(e)}),bi(()=>{!function(e){const t=Vh.indexOf(e);t>=0&&Vh.splice(t,1)}(e)}),{state:e}}function Yh(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 Gh(e,t,n){"number"===t&&isNaN(Number(e))&&(e="");return null==e?"":String(e)}const Kh=["none","text","decimal","numeric","tel","search","email","url"],Jh=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=>!!~Kh.indexOf(e)},cursorColor:{type:String,default:""}},kh),Qh=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend","keyboardheightchange"];function Zh(e,t,n,o){let i=null;i=Ze(n=>{t.value=Gh(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 eg(e,t){Xh();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 tg(e,t,n,o){bc(lu(),"getSelectedTextRange",Yh);const{fieldRef:i,state:r,trigger:s}=function(e,t,n){const o=Dn(null),i=Gu(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=Gh(e.modelValue,e.type)||Gh(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}=Zh(e,r,n,s);eg(e,i),Th(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(Zu,!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 ng=c({},Jh,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),og=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 ig(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&&og()&&"."===t.value.slice(-2,-1))return t.value=n.value=o.value=t.value.slice(0,-2),!0}function rg(e){return"insertFromPaste"===e.inputType}const sg=Uu({name:"Input",props:ng,emits:["confirm",...Qh],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}=tg(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=ig(e,l,t,n,c);return"boolean"==typeof o?o:(l.value=t.value=n.value="-"===l.value?"":l.value,!1)}{const o=ig(e,l,t,n,c);if("boolean"==typeof o)return o;l.value=n.value}if(t.maxlength>0&&n.value.length>t.maxlength&&!rg(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?rg(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"},[Ro(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 ag=["class","style"],lg=/^on[A-Z]+/,cg=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n=[]}=e,o=Ur(),i=zn({}),r=zn({}),s=zn({}),a=n.concat(ag);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:lg.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 ug(e){const t=[];return p(e)&&e.forEach(e=>{Er(e)?e.type===mr?t.push(...ug(e.children)):t.push(e):p(e)&&t.push(...ug(e))}),t}const dg=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 fg,pg;function hg(e,t,n){bi(()=>{document.removeEventListener("mousemove",fg),document.removeEventListener("mouseup",pg)});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;dg(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)}),dg(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)}),dg(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=fg=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),dg(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=pg=function(e){if(c=!1,!l&&u)return u=null,a(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",f),dg(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 gg{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 mg(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||!vg(t,.4)){t=t||0;let o=this._endPosition;this._solution&&(vg(t,.4)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),vg(t,.4)&&(t=0),vg(o,.4)&&(o=0),o+=this._endPosition),this._solution&&vg(o-e,.4)&&vg(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()),mg(this.x(),this._endPosition,.4)&&vg(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 bg{constructor(e,t,n){this._extent=e,this._friction=t||new gg(.01),this._spring=n||new yg(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 _g{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 bg(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 wg=Gc("ucg"),xg=Uu({name:"Radio",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},value:{type:String,default:""},color:{type:String,default:"#007aff"},backgroundColor:{type:String,default:""},borderColor:{type:String,default:""},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},iconColor:{type:String,default:"#ffffff"}},setup(e,{slots:t}){const n=Dn(null),o=Dn(e.checked),i=Dn(e.value);const r=os(()=>function(){if(e.disabled)return{backgroundColor:"#E1E1E1",borderColor:"#D1D1D1"};const t={};return o.value?(t.backgroundColor=e.activeBackgroundColor||e.color,t.borderColor=e.activeBorderColor||t.backgroundColor):(e.borderColor&&(t.borderColor=e.borderColor),e.backgroundColor&&(t.backgroundColor=e.backgroundColor)),t}(o.value));Oo([()=>e.checked,()=>e.value],([e,t])=>{o.value=e,i.value=t});const{uniCheckGroup:s,uniLabel:a,field:l}=function(e,t,n){const o=os({get:()=>({radioChecked:Boolean(e.value),value:t.value}),set:({radioChecked:t})=>{e.value=t}}),i={reset:n},r=Ki(wg,!1);r&&r.addField(o);const s=Ki(Zu,!1);s&&s.addField(i);const a=Ki(td,!1);return bi(()=>{r&&r.removeField(o),s&&s.removeField(i)}),{uniCheckGroup:r,uniForm:s,uniLabel:a,field:o}}(o,i,()=>{o.value=!1}),c=t=>{e.disabled||o.value||(o.value=!0,s&&s.radioChange(t,l),t.stopPropagation())};return a&&(a.addHandler(c),bi(()=>{a.removeHandler(c)})),od(e,{"label-click":c}),()=>{const i=Qu(e,"disabled");let s;return s=o.value,Ir("uni-radio",jr(i,{id:e.id,onClick:c,ref:n}),[Ir("div",{class:"uni-radio-wrapper",style:{"--HOVER-BD-COLOR":o.value?r.value.borderColor:e.activeBorderColor}},[Ir("div",{class:["uni-radio-input",{"uni-radio-input-disabled":e.disabled}],style:r.value},[s?ou(eu,e.disabled?"#ADADAD":e.iconColor,18):""],6),t.default&&t.default()],4)],16,["id","onClick"])}}});const Cg={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:""},Sg={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'",ldquo:"“",rdquo:"”",yen:"¥",radic:"√",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",hellip:"…"};const kg=(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(Cg,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]=Up(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,kg(e,t,n.children))}return"text"===n.type&&v(n.text)&&""!==n.text?zr((n.text||"").replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,function(e,t){return f(Sg,t)&&Sg[t]?Sg[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 Tg(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()&&Dh[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 Ag=Uu({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=Gu(i,t);function a(e,t={}){s("itemclick",e,t)}return Oo(()=>e.nodes,function(){let t=e.nodes;v(t)&&(t=Tg(e.nodes)),r.value=kg(o,a,t)},{immediate:!0,deep:!0}),()=>is("uni-rich-text",{ref:i},is("div",{},r.value))}}),Eg=Uu({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)}}}),Mg=Xe(!0),Pg=Uu({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=Gu(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,Mg),s.value.addEventListener("touchmove",l,Xe(!1)),s.value.addEventListener("scroll",r,Xe(!1)),s.value.addEventListener("touchend",g,Mg),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(Eg,{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 Lg(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))}hg(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 Og=Uu({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=Gu(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:Jc(e.previousMargin,!0),bottom:Jc(e.nextMargin,!0)}:{top:0,bottom:0,left:Jc(e.previousMargin,!0),right:Jc(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}=Lg(e,a,f,s,n,i);let v=()=>null;return v=$g(o,e,a,h,f,g,m),()=>{const n=t.default&&t.default();return u=ug(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=()=>ou(nu,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}},Ig=Uu({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)}}),Dg={ensp:" ",emsp:" ",nbsp:" "};function zg(e,t){return function(e,{space:t,decode:n}){let o="",i=!1;for(let r of e)t&&Dg[t]&&" "===r&&(r=Dg[t]),i?(o+="n"===r?ee:"\\"===r?"\\":"\\"+r,i=!1):"\\"===r?i=!0:o+=r;return n?o.replace(/ /g,Dg.nbsp).replace(/ /g,Dg.ensp).replace(/ /g,Dg.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"):o}(e,t).split(ee)}const Rg=Uu({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(zr(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"])}}}),Bg=Uu({name:"View",props:c({},Ku),setup(e,{slots:t}){const n=Dn(null),{hovering:o,binding:i}=Ju(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 Ng(e,t){if(t||(t=e.id),t)return e.$options.name.toLowerCase()+"."+t}function qg(e,t,n){e&&bc(lu(),e,({type:e,data:n},o)=>{t(e,n,o)})}function jg(e,t){e&&function(e,t){t=yc(e,t),delete vc[t]}(lu(),e)}function Fg(e,t,n,o){const i=Ur().proxy;mi(()=>{qg(t||Ng(i),e),Oo(()=>i.id,(t,n)=>{qg(Ng(i,t),e),jg(n&&Ng(i,n))})}),bi(()=>{jg(t||Ng(i))})}let Vg=0;function Wg(e){const t=iu(),n=Ur().proxy,o=n.$options.name.toLowerCase(),i=e||n.id||"context"+Vg++;return mi(()=>{n.$el.__uniContextInfo={id:i,type:o,page:t}}),`${o}.${i}`}function Hg(e,t,n,o){m(t)&&pi(e,t.bind(n),o)}function Ug(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=>Hg(o,e,n,t)):Hg(o,i,n,t)}}),"page"===o)){t.__isVisible=!0;try{let e=t.attrs.__pageQuery;0,pu(n,de,e),t.vapor||delete t.attrs.__pageQuery;const o=n.$page;"preloadPage"!==(null==o?void 0:o.openType)&&pu(n,ie)}catch(i){console.error(i.message+ee+i.stack)}}}function Xg(e,t,n){Ug(e,t,n)}function Yg(e,t,n){return e[t]=n}function Gg(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function Kg(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]?pu(r.proxy,ae,n):Hn(n,0,o&&o.$.vnode,!1)}}function Jg(e,t){return e?[...new Set([].concat(e,t))]:t}function Qg(e){const t=e.config;var n;t.errorHandler=it(e,Kg),n=t.optionMergeStrategies,nt.forEach(e=>{n[e]=Jg});const o=t.globalProperties;o.$set=Yg,o.$applyOptions=Xg,o.$callMethod=Gg,function(e){ot.forEach(t=>t(e))}(e)}function Zg(e){const t=zl({history:nm(),strict:!!__uniConfig.router.strict,routes:__uniRoutes,scrollBehavior:tm});t.beforeEach((e,t)=>{var n;e&&t&&e.meta.isTabBar&&t.meta.isTabBar&&(n=t.meta.tabBarIndex,"undefined"!=typeof window&&(em[n]={left:window.pageXOffset,top:window.pageYOffset}))}),e.router=t,e.use(t)}let em=Object.create(null);const tm=(e,t,n)=>{if(n)return n;if(e&&t&&e.meta.isTabBar&&t.meta.isTabBar){const t=(o=e.meta.tabBarIndex,em[o]);if(t)return t}return{left:0,top:0};var o};function nm(){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=Pp(),n=t.length-1,o=n-e;for(let i=n;i>o;i--){const e=xp(t[i]);Lp(Dp(e.path,e.id),!1)}}(Math.abs(n.delta))}),t}const om={install(e){Qg(e),Pu(e),ju(e),e.config.warnHandler||(e.config.warnHandler=im),Zg(e)}};function im(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 rm={class:"uni-async-loading"},sm=Ir("i",{class:"uni-loading"},null,-1),am=Xu({name:"AsyncLoading",render:()=>(xr(),Ar("div",rm,[sm]))});function lm(){window.location.reload()}const cm=Xu({name:"AsyncError",props:["error"],setup(){sc();const{t:e}=ic();return()=>Ir("div",{class:"uni-async-error",onClick:lm},[e("uni.async.error")],8,["onClick"])}});let um;function dm(){return um}function fm(e){um=e,Object.defineProperty(um.$.ctx,"$children",{get:()=>Pp().map(e=>e.$vm)});const t=um.$.appContext.app;t.component(am.name)||t.component(am.name,am),t.component(cm.name)||t.component(cm.name,cm),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}})}(um),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}})}(um),Nu(),_u()}function pm(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 hm(e,t){return e&&(e.__esModule||"Module"===e[Symbol.toStringTag])?pm(e.default,t):pm(e,t)}function gm(e){return hm(e,{clone:!0,init:Ip,setup(e){e.$pageInstance=e;const t=ud(),n=Ke(t.query);e.attrs.__pageQuery=n,xp(e.proxy).options=n,e.proxy.options=n;const o=ld();var i,r;return yp(o),e.onReachBottom=bn([]),e.onPageScroll=bn([]),Oo([e.onReachBottom,e.onPageScroll],()=>{const t=su();e.proxy===t&&Wp(e,o)},{once:!0}),gi(()=>{Bp(e,o)}),mi(()=>{Np(e);const{onReady:n}=e;n&&I(n),bm(t)}),ai(()=>{if(!e.__isVisible){Bp(e,o),e.__isVisible=!0;const{onShow:n}=e;n&&I(n),to(()=>{bm(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,zy.subscribe(yc(r,hc),_c),bi(()=>{!function(e){zy.unsubscribe(yc(e,hc)),Object.keys(vc).forEach(t=>{0===t.indexOf(e+".")&&delete vc[t]})}(o.id)}),n}})}function mm(){const{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}=ov(),i=90===Math.abs(Number(window.orientation))?"landscape":"portrait";Ry.emit(ge,{deviceOrientation:i,size:{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}})}function vm(e){C(e.data)&&"WEB_INVOKE_APPSERVICE"===e.data.type&&Ry.emit("onWebInvokeAppService",e.data.data,e.data.pageId)}function ym(){const{emit:e}=Ry;"visible"===document.visibilityState?e(Pe,c({},dh)):e(Le)}function bm(e){const{tabBarText:t,tabBarIndex:n,route:o}=e.meta;t&&pu("onTabItemTap",{index:n,text:t,pagePath:o})}function _m(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 wm(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 xm={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}},Cm=Uu({name:"Video",props:xm,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=Gu(i,t),{state:a}=Xh(),{$attrs:l}=cg({excludeListeners:!0});ic(),fc();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(()=>Up(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:z,exitFullScreen:R}=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}=wm(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};Fg((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)},Wg())}(d,f,h,g,L,m,z,R);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,()=>{xm.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"]),Ro(Ir("div",{class:"uni-video-bar uni-video-bar-full",onClick:Zs(()=>{},["stop"])},[Ir("div",{class:"uni-video-controls"},[Ro(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]]),Ro(Ir("div",{class:"uni-video-current-time"},[_m(u.currentTime)],512),[[Ts,e.showProgress]]),Ro(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]]),Ro(Ir("div",{class:"uni-video-duration"},[_m(Number(e.duration)||u.duration)],512),[[Ts,e.showProgress]])]),Ro(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]]),Ro(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]]),Ro(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"},[_m(B.currentTimeNew)])," / ",Number(e.duration)||_m(u.duration)])],2),Ir("div",{class:"uni-video-slots"},[o.default&&o.default()])],40,["onTouchstart","onTouchend","onTouchmove","onFullscreenchange","onWebkitfullscreenchange"])],8,["id","onClick"])}});let Sm,km=0;function Tm(e,t,n,o){var i,r=document.createElement("script"),s=t.callback||"callback",a="__uni_jsonp_callback_"+km++,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 Am(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(Rm())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():Rm()?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()&&!Rm()){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 Em={};function Mm(e,t){const n=$m();if(!n.key)return void console.error("Map key not configured.");const o=Em[n.type]=Em[n.type]||[];if(Sm)t(Sm);else if(window[n.type]&&window[n.type].maps)Sm=zm()||Rm()?window[n.type]:window[n.type].maps,Sm.Callout=Sm.Callout||Am(Sm),t(Sm);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],Sm=zm()||Rm()?window[n.type]:window[n.type].maps,Sm.Callout=Am(Sm),o.forEach(e=>e(Sm)),o.length=0},zm()&&function(e){window._AMapSecurityConfig={securityJsCode:e.securityJsCode||"",serviceHost:e.serviceHost||""}}(n);const s=document.createElement("script");let a=Pm(n.type);n.type===Om.QQ&&e.push("geometry"),e.length&&(a+=`libraries=${e.join("%2C")}&`),n.type===Om.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 Pm=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 Lm="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 Om=(e=>(e.QQ="qq",e.GOOGLE="google",e.AMAP="AMap",e.BMAP="BMapGL",e.UNKNOWN="",e))(Om||{});function $m(){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 Im=!1,Dm=!1;const zm=()=>Dm?Im:(Dm=!0,Im="AMap"===$m().type),Rm=()=>"BMapGL"===$m().type;const Bm=Xu({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):Rm()?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)},Rm()?(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()},$m().type===Om.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=Up(e.iconPath):console.error("Marker.iconPath is required.")}!function(e){Rm()||(i=new s.Marker({map:n,flat:!0,autoRotation:!1})),l(e);const o=s.event||s.Event;Rm()||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 Nm(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 qm={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:""}},jm=Xu({name:"MapPolyline",props:qm,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]:Rm()?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}=Nm(e.color),{r:d,g:f,b:p,a:h}=Nm(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)),Rm()?(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}}),Fm=Xu({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()||Rm()?[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(Rm())r.strokeColor=e.color,r.fillColor=e.fillColor||"#000",r.fillOpacity=1;else{const{r:t,g:n,b:o,a:s}=Nm(e.fillColor),{r:a,g:l,b:c,a:u}=Nm(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(Rm()){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}}),Vm={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}},Wm=Xu({name:"MapControl",props:Vm,setup(e){const t=os(()=>Up(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"])])}}),Hm="__DC_STAT_UUID",Um=navigator.cookieEnabled&&(window.localStorage||window.sessionStorage)||{};let Xm;function Ym(){if(Xm=Xm||Um[Hm],!Xm){Xm=Date.now()+""+Math.floor(1e7*Math.random());try{Um[Hm]=Xm}catch(e){}}return Xm}function Gm(){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 Km(){let e,t="0",n="",o="phone";const i=navigator.language;if(Gp){e="iOS";const o=Xp.match(/OS\s([\w_]+)\slike/);o&&(t=o[1].replace(/_/g,"."));const i=Xp.match(/\(([a-zA-Z]+);/);i&&(n=i[1])}else if(Yp){e="Android";const o=Xp.match(/Android[\s/]([\w\.]+)[;\s]/);o&&(t=o[1]);const i=Xp.match(/\((.+?)\)/),r=i?i[1].split(";"):Xp.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=eh(),n=th(t),o=nh(t,n),i=function(e,t){return e?Math[t?"min":"max"](screen.height,screen.width):screen.height}(t,n),r=oh(o);let s=window.innerHeight;const a=jc.top,l={left:jc.left,right:r-jc.right,top:jc.top,bottom:s-jc.bottom,width:r-jc.left-jc.right,height:s-jc.top-jc.bottom},{top:c,bottom:u}=Uc();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:jc.top,right:jc.right,bottom:jc.bottom,left:jc.left},screenTop:i-s}});let Qm,Zm=!0;function ev(){Zm&&(Qm=Km())}const tv=Hd(0,()=>{ev();const{deviceBrand:e,deviceModel:t,brand:n,model:o,platform:i,system:r,deviceOrientation:s,deviceType:a,osname:l,osversion:u}=Qm;return c({brand:n,deviceBrand:e,deviceModel:t,devicePixelRatio:window.devicePixelRatio,deviceId:Ym(),deviceOrientation:s,deviceType:a,model:o,platform:i,system:r,osName:l?l.toLowerCase():void 0,osVersion:u})}),nv=Hd(0,()=>{ev();const{theme:e,language:t,browserName:n,browserVersion:o}=Qm;return c({appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:Cf?Cf():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},{})}),ov=Hd(0,()=>{Zm=!0,ev(),Zm=!1;const e=Jm(),t=tv(),n=nv();Zm=!0;const{ua:o,browserName:i,browserVersion:r,osname:s,osversion:a}=Qm,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 iv=null;const rv=Fd(Tf,()=>{av()}),sv=Vd("offCompass",()=>{lv()}),av=Ud("startCompass",(e,{resolve:t,reject:n})=>{if(window.DeviceOrientationEvent){if(!iv){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(){iv=function(e){const t=360-(null!==e.alpha?e.alpha:360);Ry.invokeOnCallback(Tf,{direction:t})},window.addEventListener("deviceorientation",iv,!1)}}),lv=Ud("stopCompass",(e,{resolve:t})=>{iv&&(window.removeEventListener("deviceorientation",iv,!1),iv=null),t()});const cv=Ud("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,kf);const uv=Hd(0,(e,t)=>{const n=typeof t,o="string"===n?t:JSON.stringify({type:n,data:t});localStorage.setItem(e,o)});function dv(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 fv=Hd(0,e=>{try{return dv(e)}catch(t){return""}}),pv=Hd(0,e=>{localStorage&&localStorage.removeItem(e)}),hv={esc:["Esc","Escape"],enter:["Enter"]},gv=Object.keys(hv);function mv(){const e=Dn(""),t=Dn(!1),n=n=>{if(t.value)return;const o=gv.find(e=>-1!==hv[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 vv=Ir("div",{class:"uni-mask"},null,-1);function yv(e,t,n){return t.onClose=(...e)=>(t.visible=!1,n.apply(null,e)),na(Ko({setup:()=>()=>(xr(),Ar(e,t,null,16))}))}function bv(e){let t=document.getElementById(e);return t||(t=document.createElement("div"),t.id=e,document.body.append(t)),t}function _v(e,{onEsc:t,onEnter:n}){const o=Dn(e.visible),{key:i,disable:r}=mv();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 wv=0,xv="";function Cv(e){let t=wv;wv+=e?1:-1,wv=Math.max(0,wv),wv>0?0===t&&(xv=document.body.style.overflow,document.body.style.overflow="hidden"):(document.body.style.overflow=xv,xv="")}const Sv=Wd("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 Tv(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=kv(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=Ev(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 Tv(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=Ev(n,r,i)),c({data:n,statusCode:e,header:Av(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,If),kv=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 Av(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 Ev(e,t,n){let o=e;if("text"===t&&"json"===n)try{o=JSON.parse(o)}catch(i){}return o}const Mv=Ud("getLocation",({type:e,altitude:t,highAccuracyExpireTime:n,isHighAccuracy:o},{resolve:i,reject:r})=>{const s=$m();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===Om.QQ?Tm(`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===Om.GOOGLE?Sv({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===Om.AMAP?Mm([],()=>{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=$m();return e&&"WGS84"===e.toUpperCase()||["google"].includes(o.type)||n?Promise.resolve(t):"qq"===o.type?new Promise(e=>{Tm(`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=>{Mm([],()=>{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,Ef);const Pv=Xu({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:Lm,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=$m();let o="";if(t.type===Om.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===Om.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===Om.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(()=>Cv(!0)),_i(()=>Cv(!1)),Mv({type:"gcj02",success:({latitude:e,longitude:t})=>{n.location.latitude=e,n.location.longitude=t}}),()=>Ir("div",{class:"uni-system-open-location"},[Ir(Dy,{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)},[ou("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},[ou("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},[ou(nu,"#ffffff",26)],8,["onClick"])])}});let Lv=null;const Ov=Ud("openLocation",(e,{resolve:t})=>{Lv?c(Lv,e):(Lv=bn(e),to(()=>{const e=yv(Pv,Lv,()=>{Lv=null,to(()=>{e.unmount()})});e.mount(bv("u-a-o"))})),t()},0,Pf),$v=Ud("navigateBack",(e,{resolve:t,reject:n})=>{let o=!0;return!0===pu(me,{from:e.from||"navigateBack"})&&(o=!1),o?(dm().$router.go(-e.delta),t()):n(me)},0,Hf),Iv=Ud(zf,({url:e,events:t,isAutomatedTesting:n},{resolve:o,reject:i})=>{if(Cp.handledBeforeEntryPageRoutes)return cp({type:zf,url:e,events:t,isAutomatedTesting:n}).then(o).catch(i);Sp.push({args:{type:zf,url:e,events:t,isAutomatedTesting:n},resolve:o,reject:i})},0,jf);function Dv(e){__uniConfig.darkmode&&Ry.on(le,e)}function zv(e){Ry.off(le,e)}function Rv(e){let t={};return __uniConfig.darkmode&&(t=ct(e,__uniConfig.themeConfig,Gm())),__uniConfig.darkmode?t:e}function Bv(e,t){const n=Cn(e),o=n?bn(Rv(e)):Rv(e);return __uniConfig.darkmode&&n&&Oo(e,e=>{const t=Rv(e);for(const n in t)o[n]=t[n]}),t&&Dv(t),o}const Nv={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}},qv=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=_v(e,{onEsc:i,onEnter:()=>{!e.editable&&r()}}),a=function(e){const t=Dn(e.cancelColor),n=({theme:e})=>{((e,t)=>{t.value=Nv[e].cancelColor})(e,t)};return Po(()=>{e.visible?(t.value=e.cancelColor,"#000"===e.cancelColor&&("dark"===Gm()&&n({theme:"dark"}),Dv(n))):zv(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:()=>[Ro(Ir("uni-modal",{onTouchmove:Fc},[vv,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:Vc,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 jv;const Fv=Ie(()=>{Ry.on("onHidePopup",()=>jv.visible=!1)});let Vv;function Wv(e,t){const n="confirm"===e,o={confirm:n,cancel:"cancel"===e};n&&jv.editable&&(o.content=t),Vv&&Vv(o)}const Hv=Ud("showModal",(e,{resolve:t})=>{Fv(),Vv=t,jv?(c(jv,e),jv.visible=!0):(jv=bn(e),to(()=>(yv(qv,jv,Wv).mount(bv("u-a-m")),to(()=>jv.visible=!0))))},0,Qf),Uv={title:{type:String,default:""},icon:{default:"success",validator:e=>-1!==Zf.indexOf(e)},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean}},Xv="uni-toast__icon",Yv={light:"#fff",dark:"rgba(255,255,255,0.9)"},Gv=e=>Yv[e],Kv=Ko({name:"Toast",props:Uv,setup(e){lc(),cc();const{Icon:t}=function(e){const t=Dn(Gv(Gm())),n=({theme:e})=>t.value=Gv(e);Po(()=>{e.visible?Dv(n):zv(n)});const o=os(()=>{switch(e.icon){case"success":return Ir(ou(eu,t.value,38),{class:Xv});case"error":return Ir(ou(tu,t.value,38),{class:Xv});case"loading":return Ir("i",{class:[Xv,"uni-loading"]},null,2);default:return null}});return{Icon:o}}(e),n=_v(e,{});return()=>{const{mask:o,duration:i,title:r,image:s}=e;return Ir(fs,{name:"uni-fade"},{default:()=>[Ro(Ir("uni-toast",{"data-duration":i},[o?Ir("div",{class:"uni-mask",style:"background: transparent;",onTouchmove:Fc},null,40,["onTouchmove"]):"",s||t.value?Ir("div",{class:"uni-toast"},[s?Ir("img",{src:s,class:Xv},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 Jv,Qv,Zv="";const ey=pt();function ty(e){Jv?c(Jv,e):(Jv=bn(c(e,{visible:!1})),to(()=>{ey.run(()=>{Oo([()=>Jv.visible,()=>Jv.duration],([e,t])=>{if(e){if(Qv&&clearTimeout(Qv),"onShowLoading"===Zv)return;Qv=setTimeout(()=>{oy("onHideToast")},t)}else Qv&&clearTimeout(Qv)})}),Ry.on("onHidePopup",()=>oy("onHidePopup")),yv(Kv,Jv,()=>{}).mount(bv("u-a-t"))})),setTimeout(()=>{Jv.visible=!0},10)}const ny=Ud("showToast",(e,{resolve:t,reject:n})=>{ty(e),Zv="onShowToast",t()},0,ep);function oy(e){const{t:t}=ic();if(!Zv)return;let n="";if("onHideToast"===e&&"onShowToast"!==Zv?n=t("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==Zv&&(n=t("uni.showLoading.unpaired")),n)return console.warn(n);Zv="",setTimeout(()=>{Jv.visible=!1},10)}const iy={light:{listItemColor:"#000000",cancelItemColor:"#000000"},dark:{listItemColor:"rgba(255, 255, 255, 0.8)",cancelItemColor:"rgba(255, 255, 255)"}};const ry=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}=mv();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}=ov();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 _g(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 gg(1e-4),spring:new yg(2,90,20),onScroll:e=>{s.value=e.target.scrollTop}});p=e,hg(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]=iy[e][n]})}(e,t)};return Po(()=>{e.visible?(t.listItemColor=t.cancelItemColor=e.itemColor,"#000"===e.itemColor&&(n({theme:Gm()}),Dv(n))):zv(n)}),t}(e);return()=>Ir("uni-actionsheet",{onTouchmove:Fc},[Ir(fs,{name:"uni-fade"},{default:()=>[Ro(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 sy,ay,ly;const cy=Ie(()=>{Ry.on("onHidePopup",()=>ly.visible=!1)});function uy(e){-1===e?ay&&ay("cancel"):sy&&sy({tapIndex:e})}const dy=Ud("showActionSheet",(e,{resolve:t,reject:n})=>{cy(),sy=t,ay=n,ly?(c(ly,e),ly.visible=!0):(ly=bn(e),to(()=>(yv(ry,ly,uy).mount(bv("u-s-a-s")),to(()=>ly.visible=!0))))},0,Jf),fy=Ud("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('${Up(t.substring(5,t.length-2))}')`:t.startsWith("url(")?`url('${Up(t.substring(4,t.length-1))}')`:Up(t),n).then(()=>{o()}).catch(e=>{i(`loadFontFace:fail ${e}`)})});function py(e){function t(){var t;t=e.navigationBar.titleText,document.title=t,Ry.emit("onNavigationBarChange",{titleText:t})}Po(t),ri(t)}const hy=Xu({name:"TabBar",setup(){const e=Dn([]),t=fp(),n=Bv(t,()=>{const e=Rv(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=>{Yc({"--window-bottom":bp(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?ip({from:"tabBar",url:r,tabBarText:i}):pu("onTabItemTap",{index:n,text:i,pagePath:o})}}}(Rl(),n,e),{style:i,borderStyle:r,placeholderStyle:s}=function(e){const t=os(()=>{let t=e.backgroundColor;const n=e.blurEffect;return t||mp&&n&&"none"!==n&&(t=yy[n]),{backgroundColor:t||gy,backdropFilter:"none"!==n?"blur(10px)":n}}),n=os(()=>{const{borderStyle:t,borderColor:n}=e;return n&&v(n)?{backgroundColor:n}:{backgroundColor:by[t]||by.black}}),o=os(()=>({height:e.height}));return{style:t,borderStyle:n,placeholderStyle:o}}(n);return mi(()=>{n.iconfontSrc&&fy({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)},[_y(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 gy="#f7f7fa",my="rgb(0, 0, 0, 0.8)",vy="rgb(250, 250, 250, 0.8)",yy={dark:my,light:vy,extralight:vy},by={white:"rgba(255, 255, 255, 0.33)",black:"rgba(0, 0, 0, 0.33)"};function _y(e,t,n,o,i,r){const{height:s}=r;return Ir("div",{class:"uni-tabbar__bd",style:{height:s}},[n?xy(n,o||my,i,r):t&&wy(t,i,r),i.text&&Cy(e,i,r),i.redDot&&Sy(i.badge)],4)}function wy(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:Up(e)},null,8,["src"])],6)}function xy(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 Cy(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 Sy(e){return Ir("div",{class:"uni-tabbar__reddot"+(e?" uni-tabbar__badge":"")},[e],2)}const ky="0px",Ty=Xu({name:"Layout",setup(e,{emit:t}){const n=Dn(null);Xc({"--status-bar-height":ky,"--top-window-height":ky,"--window-left":ky,"--window-right":ky,"--window-margin":ky,"--tab-bar-height":ky});const o=function(){const e=Rl();return{routeKey:os(()=>Dp("/"+e.meta.route,dd())),isTabBar:os(()=>e.meta.isTabBar),routeCache:Rp}}(),{layoutState:i,windowState:r}=function(){ud();{const e=bn({marginWidth:0,leftWindowWidth:0,rightWindowWidth:0});return Oo(()=>e.marginWidth,e=>Xc({"--window-margin":e+"px"})),Oo(()=>e.leftWindowWidth+e.marginWidth,e=>{Xc({"--window-left":e+"px"})}),Oo(()=>e.rightWindowWidth+e.marginWidth,e=>{Xc({"--window-right":e+"px"})}),{layoutState:e,windowState:os(()=>({}))}}}();!function(e,t){const n=ud();function o(){const o=document.body.clientWidth,i=Pp();let r={};if(i.length>0){r=xp(i[i.length-1]).meta}else{const e=bu(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=ud(),t=fp(),n=os(()=>e.meta.isTabBar&&t.shown);return Xc({"--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 Ro(Ir(hy,null,null,512),[[Ts,e.value]])}(s);return Ir("uni-app",{ref:n,class:a.value},[e,t],2)}}});const Ay="MAP_LOCATION",Ey=Xu({name:"MapLocation",setup(){const e=bn({latitude:0,longitude:0,rotate:0});{let t=function(t){e.rotate=t.direction},n=function(){Mv({type:"gcj02",success:t=>{e.latitude=t.latitude,e.longitude=t.longitude},complete:()=>{r=setTimeout(n,3e4)}})},o=function(){r&&clearTimeout(r),sv(t)};const i=Ki("onMapReady");let r;rv(t),i(n),_i(o);const s=Ki("addMapChidlContext"),a=Ki("removeMapChidlContext"),l={id:Ay,state:e};s(l),_i(()=>a(l))}return()=>e.latitude?Ir(Bm,jr({anchor:{x:.5,y:.5},width:"44",height:"44",iconPath:Lm},e),null,16,["iconPath"]):null}}),My=Xu({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]:Rm()?new o.Point(n,t):new o.LatLng(t,n)}),{r:d,g:f,b:p,a:h}=Nm(l),{r:g,g:m,b:v,a:y}=Nm(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):Rm()?(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 Py(e){const t=[];return p(e)&&e.forEach(e=>{e&&e.latitude&&e.longitude&&t.push({latitude:e.latitude,longitude:e.longitude})}),t}function Ly(e,t,n){return Rm()?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 Oy(e){return"getLat"in e?e.getLat():Rm()?e.lat:e.lat()}function $y(e){return"getLng"in e?e.getLng():Rm()?e.lng:e.lng()}function Iy(e,t,n){const o=Gu(t,n),i=Dn(null);let r,s;const a=bn({latitude:Number(e.latitude),longitude:Number(e.longitude),includePoints:Py(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:Oy(e),longitude:$y(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(Rm());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=Ly(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(Rm()&&(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=Ly(r,a.latitude,a.longitude);s.setCenter(e)}())}),Rm())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=Oy(e),o=$y(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=Ly(r,a.latitude,a.longitude);s.setCenter(e)}}),Oo(()=>e.includePoints,e=>{a.includePoints=Py(e),d&&y()},{deep:!0});try{Fg((e,t={})=>{switch(e){case"getCenterLocation":f(()=>{const n=s.getCenter();De(t,{latitude:Oy(n),longitude:$y(n),errMsg:`${e}:ok`})});break;case"moveToLocation":{let n=Number(t.latitude),o=Number(t.longitude);if(!n||!o){const e=g[Ay];e&&(n=e.state.latitude,o=e.state.longitude)}if(n&&o){if(a.latitude=n,a.longitude=o,s){const e=Ly(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=Py(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:Oy(o),longitude:$y(o)},northeast:{latitude:Oy(i),longitude:$y(i)},errMsg:`${e}:ok`})});break;case"getScale":f(()=>{De(t,{scale:s.getZoom(),errMsg:`${e}:ok`})})}},Wg())}catch(_){}return mi(()=>{Mm(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 Dy=Uu({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}=Iy(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(Bm,jr({key:e.id},e),null,16)),e.polyline.map(e=>Ir(jm,e,null,16)),e.circles.map(e=>Ir(Fm,e,null,16)),e.controls.map(e=>Ir(Wm,jr(e,{trigger:r}),null,16,["trigger"])),e.showLocation&&Ir(Ey,null,null),e.polygons.map(e=>Ir(My,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"])}}),zy=c(wc,{publishHandler(e,t,n){Ry.subscribeHandler(e,t,n)}}),Ry=c($u,{publishHandler(e,t,n){zy.subscribeHandler(e,t,n)}}),By=Xu({name:"PageHead",setup(){const e=Dn(null),t=ld(),n=Bv(t.navigationBar,()=>{const e=Rv(t.navigationBar);n.backgroundColor=e.backgroundColor,n.titleColor=e.titleColor}),{clazz:o,style:i}=function(e){const t=os(()=>{const{type:t,titlePenetrate:n,shadowColorType:o}=e,i={"uni-page-head":!0,"uni-page-head-transparent":"transparent"===t,"uni-page-head-titlePenetrate":"YES"===n,"uni-page-head-shadow":!!o};return o&&(i[`uni-page-head-shadow-${o}`]=!0),i}),n=os(()=>({backgroundColor:e.backgroundColor,color:e.titleColor,transitionDuration:e.duration,transitionTimingFunction:e.timingFunc}));return{clazz:t,style:n}}(n);return()=>{const r=function(e,t){if(!t)return Ir("div",{class:"uni-page-head-btn",onClick:qy},[ou(nu,"transparent"===e.type?"#fff":e.titleColor,26)],8,["onClick"])}(n,t.isQuit),s=n.type||"default",a="transparent"!==s&&"float"!==s&&Ir("div",{class:{"uni-placeholder":!0,"uni-placeholder-titlePenetrate":n.titlePenetrate}},null,2);return Ir("uni-page-head",{"uni-page-head-type":s},[Ir("div",{ref:e,class:o.value,style:i.value},[Ir("div",{class:"uni-page-head-hd"},[r]),Ny(n),Ir("div",{class:"uni-page-head-ft"},[])],6),a],8,["uni-page-head-type"])}}});function Ny(e,t){return function({type:e,loading:t,titleSize:n,titleText:o,titleImage:i}){return Ir("div",{class:"uni-page-head-bd"},[Ir("div",{style:{fontSize:n,opacity:"transparent"===e?0:1},class:"uni-page-head__title"},[t?Ir("i",{class:"uni-loading"},null):i?Ir("img",{src:i,class:"uni-page-head__title_image"},null,8,["src"]):o],4)])}(e)}function qy(){1===Mp().length?lp({url:"/"}):$v({from:"backbutton",success(){}})}const jy=Xu({name:"PageBody",setup(e,t){const n=!1,o=Dn(null),i=Dn(null);return Oo(()=>n.enablePullDownRefresh,()=>{i.value=null},{immediate:!0}),()=>Ir(mr,null,[!1,Ir("uni-page-wrapper",jr({ref:o},i.value),[Ir("uni-page-body",null,[Ti(t.slots,"default")]),null],16)])}}),Fy=Xu({name:"Page",setup(e,t){let n=cd(dd());const o=n.navigationBar,i={};return py(n),()=>Ir("uni-page",{"data-page":n.route,style:i},"custom"!==o.style?[Ir(By),Vy(t),null]:[Vy(t),null])}});function Vy(e){return xr(),Ar(jy,{key:0},{default:vo(()=>[Ti(e.slots,"page")]),_:3})}const Wy={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0};window.uni={},window.wx={},window.rpx2px=tf;const Hy=Object.assign({}),Uy=Object.assign;window.__uniConfig=Uy({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:Wy,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(Hy).reduce((e,t)=>{const n=t.replace(/\.\/locale\/(uni-app.)?(.*).json/,"$2");return Uy(e[n]||(e[n]={}),Hy[t].default),e},{}),router:{mode:"hash",base:"/h5/",assets:"assets",routerBase:"/h5/"},darkmode:!1,themeConfig:{}}),window.__uniLayout=window.__uniLayout||{};const Xy={delay:Wy.delay,timeout:Wy.timeout,suspensible:Wy.suspensible};Wy.loading&&(Xy.loadingComponent={name:"SystemAsyncLoading",render:()=>Ir(Co(Wy.loading))}),Wy.error&&(Xy.errorComponent={name:"SystemAsyncError",props:["error"],render(){return Ir(Co(Wy.error),{error:this.error})}});const Yy=()=>t(()=>import("./pages-index-index.B7hx22lS.js"),__vite__mapDeps([0,1,2,3,4])).then(e=>gm(e.default||e)),Gy=Qo(Uy({loader:Yy},Xy)),Ky=()=>t(()=>import("./pages-map-index.CddKnaMv.js"),__vite__mapDeps([5,6,3,7])).then(e=>gm(e.default||e)),Jy=Qo(Uy({loader:Ky},Xy)),Qy=()=>t(()=>import("./pages-activity-index.GAWfIboK.js"),__vite__mapDeps([8,6,3,9])).then(e=>gm(e.default||e)),Zy=Qo(Uy({loader:Qy},Xy)),eb=()=>t(()=>import("./pages-discover-index.RghqNFtD.js"),__vite__mapDeps([10,6,3,11])).then(e=>gm(e.default||e)),tb=Qo(Uy({loader:eb},Xy)),nb=()=>t(()=>import("./pages-mine-index.C7_Vjjk5.js"),__vite__mapDeps([12,3,13])).then(e=>gm(e.default||e)),ob=Qo(Uy({loader:nb},Xy)),ib=()=>t(()=>import("./pages-mine-orders.CVyOZOlW.js"),__vite__mapDeps([14,6,3,15])).then(e=>gm(e.default||e)),rb=Qo(Uy({loader:ib},Xy)),sb=()=>t(()=>import("./pages-activity-detail.DIWVz8T4.js"),__vite__mapDeps([16,6,2,17,1,3,18])).then(e=>gm(e.default||e)),ab=Qo(Uy({loader:sb},Xy)),lb=()=>t(()=>import("./pages-activity-reserve.BZwl1dca.js"),__vite__mapDeps([19,6,3,20])).then(e=>gm(e.default||e)),cb=Qo(Uy({loader:lb},Xy)),ub=()=>t(()=>import("./pages-mine-reservation-detail.BFqxpPGd.js"),__vite__mapDeps([21,6,3,22])).then(e=>gm(e.default||e)),db=Qo(Uy({loader:ub},Xy)),fb=()=>t(()=>import("./pages-study-tour-detail.DG7W93UV.js"),__vite__mapDeps([23,6,3,24])).then(e=>gm(e.default||e)),pb=Qo(Uy({loader:fb},Xy)),hb=()=>t(()=>import("./pages-venue-detail.Bh9QIq4N.js"),__vite__mapDeps([25,6,2,17,3,26])).then(e=>gm(e.default||e)),gb=Qo(Uy({loader:hb},Xy)),mb=()=>t(()=>import("./pages-stats-index.BlEM6V2H.js"),__vite__mapDeps([27,3,28])).then(e=>gm(e.default||e)),vb=Qo(Uy({loader:mb},Xy)),yb=()=>t(()=>import("./pages-traffic-index.BpC6QlYs.js"),__vite__mapDeps([29,3,30])).then(e=>gm(e.default||e)),bb=Qo(Uy({loader:yb},Xy));function _b(e,t){return xr(),Ar(Fy,null,{page:vo(()=>[Ir(e,Uy({},t,{ref:"page"}),null,512)]),_:1})}window.__uniRoutes=[{path:"/",alias:"/pages/index/index",component:{setup(){const e=dm(),t=e&&e.$route&&e.$route.query||{};return()=>_b(Gy,t)}},loader:Yy,meta:{isQuit:!0,isEntry:!0,isTabBar:!0,tabBarIndex:0,navigationBar:{titleText:"苏州科普",style:"default",type:"default"},isNVue:!1}},{path:"/pages/map/index",component:{setup(){const e=dm(),t=e&&e.$route&&e.$route.query||{};return()=>_b(Jy,t)}},loader:Ky,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:1,navigationBar:{titleText:"场馆地图",type:"default"},isNVue:!1}},{path:"/pages/activity/index",component:{setup(){const e=dm(),t=e&&e.$route&&e.$route.query||{};return()=>_b(Zy,t)}},loader:Qy,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:2,navigationBar:{titleText:"活动",type:"default"},isNVue:!1}},{path:"/pages/discover/index",component:{setup(){const e=dm(),t=e&&e.$route&&e.$route.query||{};return()=>_b(tb,t)}},loader:eb,meta:{navigationBar:{titleText:"线路列表",type:"default"},isNVue:!1}},{path:"/pages/mine/index",component:{setup(){const e=dm(),t=e&&e.$route&&e.$route.query||{};return()=>_b(ob,t)}},loader:nb,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:3,navigationBar:{titleText:"我的",type:"default"},isNVue:!1}},{path:"/pages/mine/orders",component:{setup(){const e=dm(),t=e&&e.$route&&e.$route.query||{};return()=>_b(rb,t)}},loader:ib,meta:{navigationBar:{titleText:"我的活动预约",type:"default"},isNVue:!1}},{path:"/pages/activity/detail",component:{setup(){const e=dm(),t=e&&e.$route&&e.$route.query||{};return()=>_b(ab,t)}},loader:sb,meta:{navigationBar:{titleText:"活动详情",type:"default"},isNVue:!1}},{path:"/pages/activity/reserve",component:{setup(){const e=dm(),t=e&&e.$route&&e.$route.query||{};return()=>_b(cb,t)}},loader:lb,meta:{navigationBar:{titleText:"预约报名",type:"default"},isNVue:!1}},{path:"/pages/mine/reservation-detail",component:{setup(){const e=dm(),t=e&&e.$route&&e.$route.query||{};return()=>_b(db,t)}},loader:ub,meta:{navigationBar:{titleText:"预约详情",type:"default"},isNVue:!1}},{path:"/pages/study-tour/detail",component:{setup(){const e=dm(),t=e&&e.$route&&e.$route.query||{};return()=>_b(pb,t)}},loader:fb,meta:{navigationBar:{titleText:"研学线路",type:"default"},isNVue:!1}},{path:"/pages/venue/detail",component:{setup(){const e=dm(),t=e&&e.$route&&e.$route.query||{};return()=>_b(gb,t)}},loader:hb,meta:{navigationBar:{titleText:"场馆详情",type:"default"},isNVue:!1}},{path:"/pages/stats/index",component:{setup(){const e=dm(),t=e&&e.$route&&e.$route.query||{};return()=>_b(vb,t)}},loader:mb,meta:{navigationBar:{titleText:"活跃指数排行榜",type:"default"},isNVue:!1}},{path:"/pages/traffic/index",component:{setup(){const e=dm(),t=e&&e.$route&&e.$route.query||{};return()=>_b(bb,t)}},loader:yb,meta:{navigationBar:{titleText:"客流统计",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 xb,Cb;(Cb=xb||(xb={})).direct="direct",Cb.patchObject="patch object",Cb.patchFunction="patch function";const Sb=(e,t=0)=>(t,n=Ur())=>{!Qr&&pi(e,t,n)},kb=Sb(se,1),Tb=Sb(de,2),Ab="http://szkp-map.ali251.langye.net/api",Eb="szkp_h5_access_token";function Mb(e,t,n,o={}){return new Promise((i,r)=>{const s=fv(Eb),a={"Content-Type":"application/json",...o.header};!1!==o.withAuth&&s&&(a.Authorization=`Bearer ${s}`),Sv({...o,url:`${Ab}${t}`,method:e,data:n,header:a,success:e=>{const t=e.statusCode||0;t>=200&&t<300?i(e.data):(401===t&&pv(Eb),r(e.data||{message:"请求失败"}))},fail:e=>r(e)})})}const Pb={get:(e,t,n)=>Mb("GET",e,t,n),post:(e,t,n)=>Mb("POST",e,t,n),put:(e,t,n)=>Mb("PUT",e,t,n),delete:(e,t,n)=>Mb("DELETE",e,t,n)};function Lb(){return window.navigator.userAgent.toLowerCase().includes("micromessenger")}async function Ob(){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 $b(e){if(!Lb())return;const t=await Ob();if(!t)return;const n=window.location.href.split("#")[0],o=await Pb.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 Ib(){if(!Lb())return Promise.reject(new Error("not wechat"));const e=await Ob();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 Db=Ko({__name:"App",setup:e=>(kb(()=>{$b().catch(()=>{})}),()=>{})});hm(Db,{init:fm,setup(e){const t=ud(),n=()=>{var n;n=e,Object.keys(Sf).forEach(e=>{Sf[e].forEach(t=>{pi(e,t,n)})});const{onLaunch:o,onShow:i,onPageNotFound:r}=e,s=function({path:e,query:t}){return c(uh,{path:e,query:t}),c(dh,uh),c({},uh)}({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};up(),r&&I(r,e)}};return Ki(Sl).isReady().then(n),mi(()=>{window.addEventListener("resize",Ze(mm,50,{setTimeout:setTimeout,clearTimeout:clearTimeout})),window.addEventListener("message",vm),document.addEventListener("visibilitychange",ym),function(){let e=null;try{e=window.matchMedia("(prefers-color-scheme: dark)")}catch(t){}if(e){let t=e=>{Ry.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(Ty));e.setup=(e,o)=>{const i=t&&t(e,o);return m(i)?n:i},e.render=n}}),function(){const e=na(Db);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(om).mount("#app");export{Ch as $,qh as A,Nn as B,Rr as C,dy as D,Iv as E,mr as F,ip as G,sd as H,sg as I,Tb as J,Og as K,Ig as L,Dy as M,Cm as N,je as O,Ag as P,Ov as Q,to as R,Pg as S,Ur as T,xf as U,tf as V,nd as W,xg as X,sp as Y,cv as Z,gf as _,Ar as a,vo as b,os as c,Ko as d,ny as e,Hv as f,fv as g,Pb as h,Lb as i,Ib as j,Mv as k,uv as l,xr as m,Ir as n,mi as o,Bg as p,Rg as q,Dn as r,$b as s,zr as t,X as u,Tr as v,Oo as w,ki as x,Zs as y,Fe as z}; + */));const wb=Symbol();var xb,Cb;(Cb=xb||(xb={})).direct="direct",Cb.patchObject="patch object",Cb.patchFunction="patch function";const Sb=(e,t=0)=>(t,n=Ur())=>{!Qr&&pi(e,t,n)},kb=Sb(se,1),Tb=Sb(de,2),Ab="http://szkp-map.ali251.langye.net/api",Eb="szkp_h5_access_token";function Mb(e,t,n,o={}){return new Promise((i,r)=>{const s=fv(Eb),a={"Content-Type":"application/json",...o.header};!1!==o.withAuth&&s&&(a.Authorization=`Bearer ${s}`),Sv({...o,url:`${Ab}${t}`,method:e,data:n,header:a,success:e=>{const t=e.statusCode||0;t>=200&&t<300?i(e.data):(401===t&&pv(Eb),r(e.data||{message:"请求失败"}))},fail:e=>r(e)})})}const Pb={get:(e,t,n)=>Mb("GET",e,t,n),post:(e,t,n)=>Mb("POST",e,t,n),put:(e,t,n)=>Mb("PUT",e,t,n),delete:(e,t,n)=>Mb("DELETE",e,t,n)};function Lb(){return window.navigator.userAgent.toLowerCase().includes("micromessenger")}async function Ob(){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 $b(e){if(!Lb())return;const t=await Ob();if(!t)return;const n=window.location.href.split("#")[0],o=await Pb.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 Ib(){if(!Lb())return Promise.reject(new Error("not wechat"));const e=await Ob();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 Db=Ko({__name:"App",setup:e=>(kb(()=>{$b().catch(()=>{})}),()=>{})});hm(Db,{init:fm,setup(e){const t=ud(),n=()=>{var n;n=e,Object.keys(Sf).forEach(e=>{Sf[e].forEach(t=>{pi(e,t,n)})});const{onLaunch:o,onShow:i,onPageNotFound:r}=e,s=function({path:e,query:t}){return c(uh,{path:e,query:t}),c(dh,uh),c({},uh)}({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};up(),r&&I(r,e)}};return Ki(Sl).isReady().then(n),mi(()=>{window.addEventListener("resize",Ze(mm,50,{setTimeout:setTimeout,clearTimeout:clearTimeout})),window.addEventListener("message",vm),document.addEventListener("visibilitychange",ym),function(){let e=null;try{e=window.matchMedia("(prefers-color-scheme: dark)")}catch(t){}if(e){let t=e=>{Ry.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(Ty));e.setup=(e,o)=>{const i=t&&t(e,o);return m(i)?n:i},e.render=n}}),function(){const e=na(Db);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(om).mount("#app");export{Ch as $,qh as A,Nn as B,Rr as C,dy as D,Iv as E,mr as F,ip as G,sd as H,sg as I,Tb as J,Og as K,Ig as L,Dy as M,Cm as N,Ag as O,Ov as P,to as Q,Ur as R,Pg as S,xf as T,tf as U,nd as V,xg as W,sp as X,cv as Y,je as Z,gf as _,Ar as a,vo as b,os as c,Ko as d,ny as e,Hv as f,fv as g,Pb as h,Lb as i,Ib as j,Mv as k,uv as l,xr as m,Ir as n,mi as o,Bg as p,Rg as q,Dn as r,$b as s,zr as t,X as u,Tr as v,Oo as w,ki as x,Zs as y,Fe as z}; diff --git a/public/h5/assets/pages-activity-detail.B0yja156.js b/public/h5/assets/pages-activity-detail.B0yja156.js deleted file mode 100644 index bdc40ad..0000000 --- a/public/h5/assets/pages-activity-detail.B0yja156.js +++ /dev/null @@ -1 +0,0 @@ -import{d as e,r as l,c as a,w as t,J as s,a as u,b as n,k as i,p as o,m as r,n as c,S as d,K as v,v as f,F as p,x as _,L as g,A as m,N as y,z as h,t as k,u as b,q as $,C as x,O as w,B as j,P as F,H as S,e as C,Q as N,E as z,R as A,T as R,U as q,V as I}from"./index-Cu9ZRBys.js";import{e as T}from"./content.SYmDdoIV.js";import{h as B,f as E}from"./geo.BHVFNtB7.js";import{t as H,u as J,g as K,m as L,a as O}from"./tip.CRDnOkzn.js";import{_ as P}from"./_plugin-vue_export-helper.BCo6x5W8.js";const Q=P(e({__name:"detail",setup(e){const P={science_venue:"科技场馆类",education_research:"教育科研类",agriculture:"“三农”类",enterprise:"企业类",nature_resource:"自然资源类",other:"其他类"},Q={free:"免费",paid:"收费"};function U(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 t=parseInt(a,16);return`rgba(${t>>16&255},${t>>8&255},${255&t},${l})`}function V(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 s=String(a).trim();if(/style\s*=/i.test(s))return/max-width\s*:/i.test(s)?e:e.replace(/style\s*=\s*(["'])([\s\S]*?)\1/i,(e,a,t)=>/max-width/i.test(t)?e:`style=${a}${t};${l}${a}`);return`"===t?" />":">"}`})}function D(e){if(!e||!String(e).trim())return!1;return String(e).replace(/<[^>]+>/g," ").replace(/ /gi," ").replace(/\s+/g," ").trim().length>0}function G(e,l){const a=e=>{if(!e)return null;const l=e.slice(0,10).split("-").map(Number);if(3!==l.length)return null;const[a,t,s]=l;return Number.isFinite(a)&&Number.isFinite(t)&&Number.isFinite(s)?{y:a,m:t,d:s}:null},t=a(e),s=a(l);return t||s?t&&!s?`${t.y}年${t.m}月${t.d}日`:!t&&s?`${s.y}年${s.m}月${s.d}日`:t&&s?t.y===s.y?`${t.y}年${t.m}月${t.d}日至${s.m}月${s.d}日`:`${t.y}年${t.m}月${t.d}日至${s.y}年${s.m}月${s.d}日`:"日期待定":"日期待定"}const M=l(null),W=l(!0),X=l(!0),Y=l(!1),Z=l(!1),ee=l("--"),le=l(null),ae=a(()=>{const e=M.value;return e?Array.isArray(e.carousel)&&e.carousel.length?e.carousel:e.image?[{type:"image",url:e.image}]:[]:[]}),te=a(()=>{var e,l;return 0===((null==(e=M.value)?void 0:e.registered_count)??0)&&!0===(null==(l=M.value)?void 0:l.is_bookable)}),se=a(()=>{var e;const l=(null==(e=M.value)?void 0:e.registered_count)??0;return te.value?"可预约":l>0?`${l}人已预约`:"敬请期待"}),ue=a(()=>{var e;const l=null==(e=M.value)?void 0:e.reservation_notice;if(null==l||""===l)return"";const a=String(l);let t="";if(/<[a-z][\s\S]*>/i.test(a))t=V(a);else{const e=function(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}(a);t=`
${e}
`}return D(t)?t:""}),ne=a(()=>{var e;const l=null==(e=M.value)?void 0:e.detail_html;if(!l)return"";const a=V(String(l));return D(a)?a:""}),ie=a(()=>{var e;const l=(null==(e=M.value)?void 0:e.venue_type_color)||"#05c9ac";return{color:l,backgroundColor:U(l,.14),border:`1px solid ${U(l,.35)}`}});function oe(){var e,l,a,t,s,u;return{lat:Number((null==(e=M.value)?void 0:e.lat)??(null==(a=null==(l=M.value)?void 0:l.venue)?void 0:a.lat)??0),lng:Number((null==(t=M.value)?void 0:t.lng)??(null==(u=null==(s=M.value)?void 0:s.venue)?void 0:u.lng)??0)}}function re(){const{lat:e,lng:l}=oe();if(!e||!l||!le.value)return void(ee.value="--");const a=B(le.value.lat,le.value.lng,e,l);ee.value=E(a)}function ce(){var e,l,a,t;const{lat:s,lng:u}=oe();s&&u?N({latitude:s,longitude:u,name:(null==(e=M.value)?void 0:e.title)||"活动地点",address:(null==(l=M.value)?void 0:l.address)||(null==(t=null==(a=M.value)?void 0:a.venue)?void 0:t.address)||""}):C({title:"暂无导航坐标",icon:"none"})}function de(){var e;(null==(e=M.value)?void 0:e.id)&&z({url:`/pages/activity/reserve?id=${M.value.id}`})}return t(M,()=>{re()}),t([ne,ue],()=>{W.value=!0,X.value=!0,A(()=>{setTimeout(()=>{var e;const l=null==(e=R())?void 0:e.proxy,a=q();l&&a.in(l);const t=I(180);a.select(".judge-detail").boundingClientRect(),a.select(".judge-notice").boundingClientRect(),a.exec(e=>{const[l,a]=e||[];Y.value=!!(l&&l.height&&l.height>t+1),Z.value=!!(a&&a.height&&a.height>t+1)})},120)})}),s(async e=>{const l=Number((null==e?void 0:e.id)||0);l&&(M.value=await T(l),i({type:"gcj02",success:e=>{le.value={lat:e.latitude,lng:e.longitude},re()},fail:()=>{ee.value="--"}}))}),(e,l)=>{const a=m,t=y,s=g,i=v,C=o,N=$,z=F,A=d,R=S;return r(),u(C,{class:"page"},{default:n(()=>[c(A,{"scroll-y":"",class:"scroll"},{default:n(()=>[c(C,{class:"hero"},{default:n(()=>[ae.value.length?(r(),u(i,{key:0,class:"hero-swiper",circular:"","indicator-dots":ae.value.length>1,"indicator-active-color":"#05c9ac","indicator-color":"rgba(255,255,255,0.45)"},{default:n(()=>[(r(!0),f(p,null,_(ae.value,(e,l)=>(r(),u(s,{key:"s-"+l,class:"swiper-item"},{default:n(()=>["video"!==e.type?(r(),u(a,{key:0,class:"slide-media",src:e.url,mode:"aspectFill"},null,8,["src"])):(r(),u(t,{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(C,{key:1,class:"hero-placeholder"})),c(C,{class:h(["live-badge",{"is-bookable":te.value}])},{default:n(()=>[k(b(se.value),1)]),_:1},8,["class"])]),_:1}),c(C,{class:"main-card"},{default:n(()=>{var e,t,s,i,o,d,v,g,m,y,$,F,S,A,R,q,I;return[c(N,{class:"act-title"},{default:n(()=>{var e;return[k(b((null==(e=M.value)?void 0:e.title)||"-"),1)]}),_:1}),(null==(t=null==(e=M.value)?void 0:e.venue)?void 0:t.name)?(r(),u(N,{key:0,class:"act-venue-line"},{default:n(()=>[k(b(M.value.venue.name),1)]),_:1})):x("",!0),(null==(s=M.value)?void 0:s.summary)?(r(),u(N,{key:1,class:"act-summary"},{default:n(()=>[k(b(M.value.summary),1)]),_:1})):x("",!0),(null==(i=M.value)?void 0:i.tags)&&M.value.tags.length||(null==(d=null==(o=M.value)?void 0:o.venue)?void 0:d.venue_type)||(null==(g=null==(v=M.value)?void 0:v.venue)?void 0:g.ticket_type)||(null==(y=null==(m=M.value)?void 0:m.venue)?void 0:y.district)?(r(),u(C,{key:2,class:"chip-row"},{default:n(()=>{var e,l,a,t,s,i,o;return[(r(!0),f(p,null,_((null==(e=M.value)?void 0:e.tags)||[],e=>(r(),u(N,{key:e,class:"chip chip-tag"},{default:n(()=>[k(b(e),1)]),_:2},1024))),128)),(null==(a=null==(l=M.value)?void 0:l.venue)?void 0:a.venue_type)?(r(),u(N,{key:0,class:"chip",style:w(ie.value)},{default:n(()=>{return[k(b((e=M.value.venue.venue_type,e?P[e]||e:"")),1)];var e}),_:1},8,["style"])):x("",!0),(null==(s=null==(t=M.value)?void 0:t.venue)?void 0:s.ticket_type)?(r(),u(N,{key:1,class:h(["chip","paid"===M.value.venue.ticket_type?"chip-paid":"chip-free"])},{default:n(()=>{return[k(b((e=M.value.venue.ticket_type,e?Q[e]||e:"")),1)];var e}),_:1},8,["class"])):x("",!0),(null==(o=null==(i=M.value)?void 0:i.venue)?void 0:o.district)?(r(),u(N,{key:2,class:"chip chip-district"},{default:n(()=>[k(b(M.value.venue.district),1)]),_:1})):x("",!0)]}),_:1})):x("",!0),c(C,{class:"info-row"},{default:n(()=>[c(a,{class:"info-ico",src:j(H),mode:"aspectFit"},null,8,["src"]),c(C,{class:"info-text-col"},{default:n(()=>[c(N,{class:"info-text"},{default:n(()=>{var e,l;return[k("活动时间:"+b(G(null==(e=M.value)?void 0:e.start_at,null==(l=M.value)?void 0:l.end_at)),1)]}),_:1})]),_:1})]),_:1}),(null==(F=null==($=M.value)?void 0:$.venue)?void 0:F.unit_name)?(r(),u(C,{key:3,class:"info-row"},{default:n(()=>[c(a,{class:"info-ico",src:j(J),mode:"aspectFit"},null,8,["src"]),c(C,{class:"info-text-col"},{default:n(()=>[c(N,{class:"info-text"},{default:n(()=>[k("所属单位:"+b(M.value.venue.unit_name),1)]),_:1})]),_:1})]),_:1})):x("",!0),(null==(A=null==(S=M.value)?void 0:S.venue)?void 0:A.open_time)?(r(),u(C,{key:4,class:"info-row"},{default:n(()=>[c(a,{class:"info-ico",src:j(H),mode:"aspectFit"},null,8,["src"]),c(C,{class:"info-text-col"},{default:n(()=>[c(N,{class:"info-text"},{default:n(()=>[k("开放时间:"+b(M.value.venue.open_time),1)]),_:1})]),_:1})]),_:1})):x("",!0),c(C,{class:"info-row"},{default:n(()=>[c(a,{class:"info-ico",src:j(K),mode:"aspectFit"},null,8,["src"]),c(C,{class:"info-text-col"},{default:n(()=>[c(N,{class:"info-text"},{default:n(()=>[k("距离:"+b(ee.value),1)]),_:1})]),_:1})]),_:1}),(null==(R=M.value)?void 0:R.address)||(null==(I=null==(q=M.value)?void 0:q.venue)?void 0:I.address)?(r(),u(C,{key:5,class:"info-row"},{default:n(()=>[c(a,{class:"info-ico",src:j(L),mode:"aspectFit"},null,8,["src"]),c(C,{class:"info-text-col"},{default:n(()=>[c(N,{class:"info-text"},{default:n(()=>{var e,l,a;return[k("具体地址:"+b((null==(e=M.value)?void 0:e.address)||(null==(a=null==(l=M.value)?void 0:l.venue)?void 0:a.address)),1)]}),_:1})]),_:1})]),_:1})):x("",!0),ue.value?(r(),u(C,{key:6,class:"notice-block"},{default:n(()=>[c(C,{class:"sec-title-row notice-head-row"},{default:n(()=>[c(C,{class:"notice-head-left"},{default:n(()=>[c(a,{class:"info-ico",src:j(O),mode:"aspectFit"},null,8,["src"]),c(N,{class:"notice-label"},{default:n(()=>[k("预约须知")]),_:1})]),_:1}),Z.value?(r(),u(N,{key:0,class:"expand-link",onClick:l[0]||(l[0]=e=>X.value=!X.value)},{default:n(()=>[k(b(X.value?"收起":"展开"),1)]),_:1})):x("",!0)]),_:1}),c(C,{class:h(["notice-block-body judge-notice",{"is-collapsed":Z.value&&!X.value}])},{default:n(()=>[c(z,{class:"notice-inline-rich",nodes:ue.value},null,8,["nodes"])]),_:1},8,["class"])]),_:1})):x("",!0)]}),_:1}),ne.value?(r(),u(C,{key:0,class:"intro-card"},{default:n(()=>[c(C,{class:"sec-title-row"},{default:n(()=>[c(N,{class:"sec-title"},{default:n(()=>[k("活动详情")]),_:1}),Y.value?(r(),u(N,{key:0,class:"expand-link",onClick:l[1]||(l[1]=e=>W.value=!W.value)},{default:n(()=>[k(b(W.value?"收起":"展开"),1)]),_:1})):x("",!0)]),_:1}),c(C,{class:h(["intro-rich-wrap judge-detail",{"is-collapsed":Y.value&&!W.value}])},{default:n(()=>[c(z,{class:"intro-rich",nodes:ne.value},null,8,["nodes"])]),_:1},8,["class"])]),_:1})):x("",!0),c(C,{class:"safe-bottom"})]),_:1}),c(C,{class:"action-bar"},{default:n(()=>[c(R,{class:"btn ghost",onClick:ce},{default:n(()=>[k("一键导航")]),_:1}),c(R,{class:"btn primary",onClick:de},{default:n(()=>[k("立即预约")]),_:1})]),_:1})]),_:1})}}}),[["__scopeId","data-v-d6160893"]]);export{Q as default}; diff --git a/public/h5/assets/pages-activity-detail.DIWVz8T4.js b/public/h5/assets/pages-activity-detail.DIWVz8T4.js new file mode 100644 index 0000000..a4e492d --- /dev/null +++ b/public/h5/assets/pages-activity-detail.DIWVz8T4.js @@ -0,0 +1 @@ +import{d as e,r as l,c as a,w as s,J as t,a as n,b as u,k as i,p as o,m as c,n as r,S as d,K as v,v as f,F as m,x as g,L as p,A as _,N as y,z as h,t as b,u as k,q as $,C as x,B as w,O as j,H as F,e as S,P as N,E as C,Q as z,R as A,T as R,U as q}from"./index-DNch_z6T.js";import{e as T}from"./content.ztt6U5do.js";import{h as B,f as E}from"./geo.BHVFNtB7.js";import{u as H,t as I,g as J,m as K,a as L}from"./tip.CRDnOkzn.js";import{s as O}from"./search.BJnl3YRK.js";import{_ as P}from"./_plugin-vue_export-helper.BCo6x5W8.js";const Q=P(e({__name:"detail",setup(e){function P(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 Q(e){if(!e||!String(e).trim())return!1;return String(e).replace(/<[^>]+>/g," ").replace(/ /gi," ").replace(/\s+/g," ").trim().length>0}function U(e,l){const a=e=>{if(!e)return null;const l=e.slice(0,10).split("-").map(Number);if(3!==l.length)return null;const[a,s,t]=l;return Number.isFinite(a)&&Number.isFinite(s)&&Number.isFinite(t)?{y:a,m:s,d:t}:null},s=a(e),t=a(l);return s||t?s&&!t?`${s.y}年${s.m}月${s.d}日`:!s&&t?`${t.y}年${t.m}月${t.d}日`:s&&t?s.y===t.y?`${s.y}年${s.m}月${s.d}日至${t.m}月${t.d}日`:`${s.y}年${s.m}月${s.d}日至${t.y}年${t.m}月${t.d}日`:"日期待定":"日期待定"}const D=l(null),G=l(!0),M=l(!0),V=l(!1),W=l(!1),X=l("--"),Y=l(null),Z=a(()=>{const e=D.value;return e?Array.isArray(e.carousel)&&e.carousel.length?e.carousel:e.image?[{type:"image",url:e.image}]:[]:[]}),ee=a(()=>{var e,l;return 0===((null==(e=D.value)?void 0:e.registered_count)??0)&&!0===(null==(l=D.value)?void 0:l.is_bookable)}),le=a(()=>{var e;const l=(null==(e=D.value)?void 0:e.registered_count)??0;return ee.value?"可预约":l>0?`${l}人已预约`:"敬请期待"}),ae=a(()=>{var e;const l=null==(e=D.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=P(a);else{const e=function(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}(a);s=`
${e}
`}return Q(s)?s:""}),se=a(()=>{var e;const l=null==(e=D.value)?void 0:e.detail_html;if(!l)return"";const a=P(String(l));return Q(a)?a:""});function te(){var e,l,a,s,t,n;return{lat:Number((null==(e=D.value)?void 0:e.lat)??(null==(a=null==(l=D.value)?void 0:l.venue)?void 0:a.lat)??0),lng:Number((null==(s=D.value)?void 0:s.lng)??(null==(n=null==(t=D.value)?void 0:t.venue)?void 0:n.lng)??0)}}function ne(){const{lat:e,lng:l}=te();if(!e||!l||!Y.value)return void(X.value="--");const a=B(Y.value.lat,Y.value.lng,e,l);X.value=E(a)}function ue(){var e,l,a,s;const{lat:t,lng:n}=te();t&&n?N({latitude:t,longitude:n,name:(null==(e=D.value)?void 0:e.title)||"活动地点",address:(null==(l=D.value)?void 0:l.address)||(null==(s=null==(a=D.value)?void 0:a.venue)?void 0:s.address)||""}):S({title:"暂无导航坐标",icon:"none"})}function ie(){var e;(null==(e=D.value)?void 0:e.id)&&C({url:`/pages/activity/reserve?id=${D.value.id}`})}return s(D,()=>{ne()}),s([se,ae],()=>{G.value=!0,M.value=!0,z(()=>{setTimeout(()=>{var e;const l=null==(e=A())?void 0:e.proxy,a=R();l&&a.in(l);const s=q(180);a.select(".judge-detail").boundingClientRect(),a.select(".judge-notice").boundingClientRect(),a.exec(e=>{const[l,a]=e||[];V.value=!!(l&&l.height&&l.height>s+1),W.value=!!(a&&a.height&&a.height>s+1)})},120)})}),t(async e=>{const l=Number((null==e?void 0:e.id)||0);l&&(D.value=await T(l),i({type:"gcj02",success:e=>{Y.value={lat:e.latitude,lng:e.longitude},ne()},fail:()=>{X.value="--"}}))}),(e,l)=>{const a=_,s=y,t=p,i=v,S=o,N=$,C=j,z=d,A=F;return c(),n(S,{class:"page"},{default:u(()=>[r(z,{"scroll-y":"",class:"scroll"},{default:u(()=>[r(S,{class:"hero"},{default:u(()=>[Z.value.length?(c(),n(i,{key:0,class:"hero-swiper",circular:"","indicator-dots":Z.value.length>1,"indicator-active-color":"#05c9ac","indicator-color":"rgba(255,255,255,0.45)"},{default:u(()=>[(c(!0),f(m,null,g(Z.value,(e,l)=>(c(),n(t,{key:"s-"+l,class:"swiper-item"},{default:u(()=>["video"!==e.type?(c(),n(a,{key:0,class:"slide-media",src:e.url,mode:"aspectFill"},null,8,["src"])):(c(),n(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"])):(c(),n(S,{key:1,class:"hero-placeholder"})),r(S,{class:h(["live-badge",{"is-bookable":ee.value}])},{default:u(()=>[b(k(le.value),1)]),_:1},8,["class"])]),_:1}),r(S,{class:"main-card"},{default:u(()=>{var e,s,t,i,o,d,v,p,_,y;return[r(N,{class:"act-title"},{default:u(()=>{var e;return[b(k((null==(e=D.value)?void 0:e.title)||"-"),1)]}),_:1}),(null==(s=null==(e=D.value)?void 0:e.tags)?void 0:s.length)?(c(),n(S,{key:0,class:"chip-row"},{default:u(()=>[(c(!0),f(m,null,g(D.value.tags,e=>(c(),n(N,{key:e,class:"chip chip-tag"},{default:u(()=>[b(k(e),1)]),_:2},1024))),128))]),_:1})):x("",!0),(null==(t=D.value)?void 0:t.summary)?(c(),n(S,{key:1,class:"info-row"},{default:u(()=>[r(a,{class:"info-ico",src:w(O),mode:"aspectFit"},null,8,["src"]),r(S,{class:"info-text-col"},{default:u(()=>[r(N,{class:"info-text"},{default:u(()=>[b("活动简介:"+k(D.value.summary),1)]),_:1})]),_:1})]),_:1})):x("",!0),(null==(o=null==(i=D.value)?void 0:i.venue)?void 0:o.name)?(c(),n(S,{key:2,class:"info-row"},{default:u(()=>[r(a,{class:"info-ico",src:w(H),mode:"aspectFit"},null,8,["src"]),r(S,{class:"info-text-col info-text-col--venue"},{default:u(()=>[r(N,{class:"info-text"},{default:u(()=>[b("举办场馆:")]),_:1}),r(N,{class:"venue-name-brand"},{default:u(()=>[b(k(D.value.venue.name),1)]),_:1})]),_:1})]),_:1})):x("",!0),r(S,{class:"info-row"},{default:u(()=>[r(a,{class:"info-ico",src:w(I),mode:"aspectFit"},null,8,["src"]),r(S,{class:"info-text-col"},{default:u(()=>[r(N,{class:"info-text"},{default:u(()=>{var e,l;return[b("活动时间:"+k(U(null==(e=D.value)?void 0:e.start_at,null==(l=D.value)?void 0:l.end_at)),1)]}),_:1})]),_:1})]),_:1}),(null==(v=null==(d=D.value)?void 0:d.venue)?void 0:v.open_time)?(c(),n(S,{key:3,class:"info-row"},{default:u(()=>[r(a,{class:"info-ico",src:w(I),mode:"aspectFit"},null,8,["src"]),r(S,{class:"info-text-col"},{default:u(()=>[r(N,{class:"info-text"},{default:u(()=>[b("开放时间:"+k(D.value.venue.open_time),1)]),_:1})]),_:1})]),_:1})):x("",!0),r(S,{class:"info-row"},{default:u(()=>[r(a,{class:"info-ico",src:w(J),mode:"aspectFit"},null,8,["src"]),r(S,{class:"info-text-col"},{default:u(()=>[r(N,{class:"info-text"},{default:u(()=>[b("距离:"+k(X.value),1)]),_:1})]),_:1})]),_:1}),(null==(p=D.value)?void 0:p.address)||(null==(y=null==(_=D.value)?void 0:_.venue)?void 0:y.address)?(c(),n(S,{key:4,class:"info-row"},{default:u(()=>[r(a,{class:"info-ico",src:w(K),mode:"aspectFit"},null,8,["src"]),r(S,{class:"info-text-col"},{default:u(()=>[r(N,{class:"info-text"},{default:u(()=>{var e,l,a;return[b("具体地址:"+k((null==(e=D.value)?void 0:e.address)||(null==(a=null==(l=D.value)?void 0:l.venue)?void 0:a.address)),1)]}),_:1})]),_:1})]),_:1})):x("",!0),ae.value?(c(),n(S,{key:5,class:"notice-block"},{default:u(()=>[r(S,{class:"sec-title-row notice-head-row"},{default:u(()=>[r(S,{class:"notice-head-left"},{default:u(()=>[r(a,{class:"info-ico",src:w(L),mode:"aspectFit"},null,8,["src"]),r(N,{class:"notice-label"},{default:u(()=>[b("预约须知")]),_:1})]),_:1}),W.value?(c(),n(N,{key:0,class:"expand-link",onClick:l[0]||(l[0]=e=>M.value=!M.value)},{default:u(()=>[b(k(M.value?"收起":"展开"),1)]),_:1})):x("",!0)]),_:1}),r(S,{class:h(["notice-block-body judge-notice",{"is-collapsed":W.value&&!M.value}])},{default:u(()=>[r(C,{class:"notice-inline-rich",nodes:ae.value},null,8,["nodes"])]),_:1},8,["class"])]),_:1})):x("",!0)]}),_:1}),se.value?(c(),n(S,{key:0,class:"intro-card"},{default:u(()=>[r(S,{class:"sec-title-row"},{default:u(()=>[r(N,{class:"sec-title"},{default:u(()=>[b("活动详情")]),_:1}),V.value?(c(),n(N,{key:0,class:"expand-link",onClick:l[1]||(l[1]=e=>G.value=!G.value)},{default:u(()=>[b(k(G.value?"收起":"展开"),1)]),_:1})):x("",!0)]),_:1}),r(S,{class:h(["intro-rich-wrap judge-detail",{"is-collapsed":V.value&&!G.value}])},{default:u(()=>[r(C,{class:"intro-rich",nodes:se.value},null,8,["nodes"])]),_:1},8,["class"])]),_:1})):x("",!0),r(S,{class:"safe-bottom"})]),_:1}),r(S,{class:"action-bar"},{default:u(()=>[r(A,{class:"btn ghost",onClick:ue},{default:u(()=>[b("一键导航")]),_:1}),r(A,{class:"btn primary",onClick:ie},{default:u(()=>[b("立即预约")]),_:1})]),_:1})]),_:1})}}}),[["__scopeId","data-v-32617cc6"]]);export{Q as default}; diff --git a/public/h5/assets/pages-activity-index.CkYnhpKx.js b/public/h5/assets/pages-activity-index.GAWfIboK.js similarity index 76% rename from public/h5/assets/pages-activity-index.CkYnhpKx.js rename to public/h5/assets/pages-activity-index.GAWfIboK.js index ed1c7cb..f115e34 100644 --- a/public/h5/assets/pages-activity-index.CkYnhpKx.js +++ b/public/h5/assets/pages-activity-index.GAWfIboK.js @@ -1 +1 @@ -import{d as a,r as t,o as e,a as s,b as l,k as n,p as u,m as i,n as r,t as c,v as o,F as d,x as _,A as f,u as m,E as p}from"./index-Cu9ZRBys.js";import{a as v}from"./content.SYmDdoIV.js";import{_ as g}from"./_plugin-vue_export-helper.BCo6x5W8.js";const h=g(a({__name:"index",setup(a){const g=t([]),h=t(null);function M(a){if(!(null==a?void 0:a.start_at))return"活动进行中";const t=(new Date).getTime(),e=new Date(a.start_at).getTime(),s=a.end_at?new Date(a.end_at).getTime():e;return Number.isFinite(s)&&st?"活动即将开始":"活动进行中"}function y(a){const t=Number(a);return Number.isFinite(t)?t:0}function b(a){if(!h.value)return"距离 --";const t=y((null==a?void 0:a.lat)||(null==a?void 0:a.venue_lat)),e=y((null==a?void 0:a.lng)||(null==a?void 0:a.venue_lng));if(!t||!e)return"距离 --";const s=function(a,t,e,s){const l=a=>a*Math.PI/180,n=l(e-a),u=l(s-t),i=Math.sin(n/2)*Math.sin(n/2)+Math.cos(l(a))*Math.cos(l(e))*Math.sin(u/2)*Math.sin(u/2);return 12742*Math.atan2(Math.sqrt(i),Math.sqrt(1-i))}(h.value.lat,h.value.lng,t,e);return Number.isFinite(s)?`距离 ${s.toFixed(1)}km`:"距离 --"}return e(async function(){const a=await v({page:1,page_size:20});g.value=(null==a?void 0:a.data)||[]}),e(async function(){try{const a=await new Promise((a,t)=>{n({type:"gcj02",success:a,fail:t})});h.value={lat:a.latitude,lng:a.longitude}}catch{h.value=null}}),(a,t)=>{const e=u,n=f;return i(),s(e,{class:"page"},{default:l(()=>[r(e,{class:"head"},{default:l(()=>[c("活动列表")]),_:1}),r(e,{class:"list"},{default:l(()=>[(i(!0),o(d,null,_(g.value,a=>(i(),s(e,{key:a.id,class:"item",onClick:t=>{return e=a.id,void p({url:`/pages/activity/detail?id=${e}`});var e}},{default:l(()=>[r(e,{class:"poster-wrap"},{default:l(()=>[a.image?(i(),s(n,{key:0,class:"poster",src:a.image,mode:"aspectFill"},null,8,["src"])):(i(),s(e,{key:1,class:"poster placeholder"})),r(e,{class:"status"},{default:l(()=>[c(m(M(a)),1)]),_:2},1024),r(e,{class:"joined"},{default:l(()=>[c("已报名 "+m(a.registered_count||0),1)]),_:2},1024)]),_:2},1024),r(e,{class:"body"},{default:l(()=>[r(e,{class:"title"},{default:l(()=>[c(m(a.title),1)]),_:2},1024),r(e,{class:"meta"},{default:l(()=>{return[c(m((t=a.start_at,t?String(t).slice(0,16).replace("T"," "):"时间待定")),1)];var t}),_:2},1024),r(e,{class:"meta"},{default:l(()=>[c(m(a.address||a.venue_name||"-"),1)]),_:2},1024),r(e,{class:"meta"},{default:l(()=>[c(m(b(a)),1)]),_:2},1024),r(e,{class:"bottom"},{default:l(()=>[r(e,{class:"price"},{default:l(()=>[c("免费")]),_:1}),r(e,{class:"btn"},{default:l(()=>[c("立即报名")]),_:1})]),_:1})]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1})}}}),[["__scopeId","data-v-f10e1a23"]]);export{h as default}; +import{d as a,r as t,o as e,a as s,b as l,k as n,p as i,m as u,n as r,t as c,v as o,F as d,x as _,A as f,u as m,E as p}from"./index-DNch_z6T.js";import{a as v}from"./content.ztt6U5do.js";import{_ as g}from"./_plugin-vue_export-helper.BCo6x5W8.js";const h=g(a({__name:"index",setup(a){const g=t([]),h=t(null);function M(a){if(!(null==a?void 0:a.start_at))return"活动进行中";const t=(new Date).getTime(),e=new Date(a.start_at).getTime(),s=a.end_at?new Date(a.end_at).getTime():e;return Number.isFinite(s)&&st?"活动即将开始":"活动进行中"}function y(a){const t=Number(a);return Number.isFinite(t)?t:0}function b(a){if(!h.value)return"距离 --";const t=y((null==a?void 0:a.lat)||(null==a?void 0:a.venue_lat)),e=y((null==a?void 0:a.lng)||(null==a?void 0:a.venue_lng));if(!t||!e)return"距离 --";const s=function(a,t,e,s){const l=a=>a*Math.PI/180,n=l(e-a),i=l(s-t),u=Math.sin(n/2)*Math.sin(n/2)+Math.cos(l(a))*Math.cos(l(e))*Math.sin(i/2)*Math.sin(i/2);return 12742*Math.atan2(Math.sqrt(u),Math.sqrt(1-u))}(h.value.lat,h.value.lng,t,e);return Number.isFinite(s)?`距离 ${s.toFixed(1)}km`:"距离 --"}return e(async function(){const a=await v({page:1,page_size:20});g.value=(null==a?void 0:a.data)||[]}),e(async function(){try{const a=await new Promise((a,t)=>{n({type:"gcj02",success:a,fail:t})});h.value={lat:a.latitude,lng:a.longitude}}catch{h.value=null}}),(a,t)=>{const e=i,n=f;return u(),s(e,{class:"page"},{default:l(()=>[r(e,{class:"head"},{default:l(()=>[c("活动列表")]),_:1}),r(e,{class:"list"},{default:l(()=>[(u(!0),o(d,null,_(g.value,a=>(u(),s(e,{key:a.id,class:"item",onClick:t=>{return e=a.id,void p({url:`/pages/activity/detail?id=${e}`});var e}},{default:l(()=>[r(e,{class:"poster-wrap"},{default:l(()=>[a.image?(u(),s(n,{key:0,class:"poster",src:a.image,mode:"aspectFill"},null,8,["src"])):(u(),s(e,{key:1,class:"poster placeholder"})),r(e,{class:"status"},{default:l(()=>[c(m(M(a)),1)]),_:2},1024),r(e,{class:"joined"},{default:l(()=>[c("已报名 "+m(a.registered_count||0),1)]),_:2},1024)]),_:2},1024),r(e,{class:"body"},{default:l(()=>[r(e,{class:"title"},{default:l(()=>[c(m(a.title),1)]),_:2},1024),r(e,{class:"meta"},{default:l(()=>{return[c(m((t=a.start_at,t?String(t).slice(0,16).replace("T"," "):"时间待定")),1)];var t}),_:2},1024),r(e,{class:"meta"},{default:l(()=>[c(m(a.address||a.venue_name||"-"),1)]),_:2},1024),r(e,{class:"meta"},{default:l(()=>[c(m(b(a)),1)]),_:2},1024),r(e,{class:"bottom"},{default:l(()=>[r(e,{class:"price"},{default:l(()=>[c("免费")]),_:1}),r(e,{class:"btn"},{default:l(()=>[c("立即报名")]),_:1})]),_:1})]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1})}}}),[["__scopeId","data-v-f10e1a23"]]);export{h as default}; diff --git a/public/h5/assets/pages-activity-reserve.DizDseeD.js b/public/h5/assets/pages-activity-reserve.BZwl1dca.js similarity index 98% rename from public/h5/assets/pages-activity-reserve.DizDseeD.js rename to public/h5/assets/pages-activity-reserve.BZwl1dca.js index 63289d4..ee78a7f 100644 --- a/public/h5/assets/pages-activity-reserve.DizDseeD.js +++ b/public/h5/assets/pages-activity-reserve.BZwl1dca.js @@ -1 +1 @@ -import{d as e,r as l,c as a,J as u,a as t,b as i,e as o,p as n,m as v,n as d,t as s,S as c,u as r,C as _,v as p,F as y,x as f,z as b,q as m,W as k,X as g,I as h,H as x,Y as V}from"./index-Cu9ZRBys.js";import{f as $,h as C}from"./content.SYmDdoIV.js";import{_ as M}from"./_plugin-vue_export-helper.BCo6x5W8.js";const w=M(e({__name:"reserve",setup(e){const M=l(0),w=l(!1),N=l(!1),j=l(null),S=l({activity_day_id:0,visitor_name:"",visitor_phone:"",id_card:"",booking_type:"individual",people_count:1}),T=a(()=>{var e;return((null==(e=j.value)?void 0:e.days)||[]).find(e=>e.id===S.value.activity_day_id)}),U=a(()=>!!S.value.activity_day_id&&!!S.value.visitor_name&&/^1\d{10}$/.test(S.value.visitor_phone)),I=a(()=>{var e,l;return String((null==(l=null==(e=j.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=j.value)?void 0:e.activity)?void 0:l.min_people_per_order)||1))}),z=a(()=>{var e,l;return Math.max(1,Number((null==(l=null==(e=j.value)?void 0:e.activity)?void 0:l.max_people_per_order)||1))}),B=a(()=>{var e,l;return(null==(l=null==(e=j.value)?void 0:e.activity)?void 0:l.booking_modes)||["individual","group"]});function F(){if("individual"===I.value)return S.value.booking_type="individual",void(S.value.people_count=1);if("group"===I.value?S.value.booking_type="group":B.value.includes(S.value.booking_type)||(S.value.booking_type="individual"),"individual"===S.value.booking_type)return void(S.value.people_count=1);const e=Math.floor(Number(S.value.people_count||0));S.value.people_count=Math.min(z.value,Math.max(q.value,e||q.value))}function H(e){if(null==e?void 0:e.is_bookable)return void(S.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 o({title:"该日期已无余票",icon:"none"});const l=function(e){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"," ");return l&&a?`${l} ~ ${a}`:""}(e);o(l?{title:`可预约时段:${l}`,icon:"none",duration:2800}:{title:"该日期当前不可预约",icon:"none"})}async function J(){var e,l;if(U.value&&M.value)if(F(),"group"===S.value.booking_type&&(S.value.people_countz.value))o({title:`人数需在 ${q.value}-${z.value} 之间`,icon:"none"});else{N.value=!0;try{const e=await C(M.value,S.value);return o({title:"预约成功",icon:"success"}),setTimeout(()=>{V({url:`/pages/activity/detail?id=${M.value}`})},500),e}catch(a){const u=(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])||"预约失败";o({title:u,icon:"none"})}finally{N.value=!1}}else o({title:"请完整填写预约信息",icon:"none"})}return u(e=>{M.value=Number((null==e?void 0:e.id)||0),async function(){var e;if(M.value){w.value=!0;try{j.value=await $(M.value),F();const l=((null==(e=j.value)?void 0:e.days)||[]).find(e=>e.is_bookable);l&&(S.value.activity_day_id=l.id)}catch(l){o({title:(null==l?void 0:l.message)||"加载预约信息失败",icon:"none"})}finally{w.value=!1}}}()}),(e,l)=>{const a=n,u=m,o=g,V=k,$=h,C=c,M=x;return v(),t(a,{class:"page-wrap"},{default:i(()=>[d(a,{class:"head"},{default:i(()=>[s("活动预约")]),_:1}),d(C,{"scroll-y":"",class:"page"},{default:i(()=>[d(a,{class:"card"},{default:i(()=>{var e,l;return[d(a,{class:"title"},{default:i(()=>{var e,l;return[s(r((null==(l=null==(e=j.value)?void 0:e.activity)?void 0:l.title)||"活动预约"),1)]}),_:1}),d(a,{class:"meta"},{default:i(()=>{var e,l,a;return[s(r((null==(a=null==(l=null==(e=j.value)?void 0:e.activity)?void 0:l.venue)?void 0:a.name)||"-"),1)]}),_:1}),(null==(l=null==(e=j.value)?void 0:e.activity)?void 0:l.reservation_notice)?(v(),t(a,{key:0,class:"meta"},{default:i(()=>{var e,l;return[s(r(null==(l=null==(e=j.value)?void 0:e.activity)?void 0:l.reservation_notice),1)]}),_:1})):_("",!0)]}),_:1}),d(a,{class:"card"},{default:i(()=>[d(a,{class:"sub-title"},{default:i(()=>[s("选择日期")]),_:1}),d(a,{class:"day-wrap"},{default:i(()=>{var e;return[(v(!0),p(y,null,f((null==(e=j.value)?void 0:e.days)||[],e=>(v(),t(a,{key:e.id,class:b(["day-item",{active:S.value.activity_day_id===e.id,disabled:!e.is_bookable}]),onClick:l=>H(e)},{default:i(()=>[d(a,{class:"d1"},{default:i(()=>[s(r(e.activity_date),1)]),_:2},1024),e.available_count<=0?(v(),t(a,{key:0,class:"d2"},{default:i(()=>[s("已售罄")]),_:1})):e.is_bookable?(v(),t(a,{key:2,class:"d2"},{default:i(()=>[s("余票 "+r(e.available_count),1)]),_:2},1024)):(v(),t(a,{key:1,class:"d2"},{default:i(()=>[s("未到预约时间")]),_:1}))]),_:2},1032,["class","onClick"]))),128))]}),_:1})]),_:1}),d(a,{class:"card"},{default:i(()=>[d(a,{class:"sub-title"},{default:i(()=>[s("联系人信息")]),_:1}),"both"===I.value?(v(),t(a,{key:0,class:"mode-row",style:{"margin-top":"0"}},{default:i(()=>[d(u,null,{default:i(()=>[s("预约类型:")]),_:1}),d(V,{class:"radio"},{default:i(()=>[d(o,{value:"individual",checked:"individual"===S.value.booking_type,onClick:l[0]||(l[0]=e=>{S.value.booking_type="individual",F()})},null,8,["checked"]),s(" 个人 ")]),_:1}),d(V,{class:"radio"},{default:i(()=>[d(o,{value:"group",checked:"group"===S.value.booking_type,onClick:l[1]||(l[1]=e=>{S.value.booking_type="group",F()})},null,8,["checked"]),s(" 团体 ")]),_:1})]),_:1})):_("",!0),d($,{modelValue:S.value.visitor_name,"onUpdate:modelValue":l[2]||(l[2]=e=>S.value.visitor_name=e),class:"ipt",placeholder:"请输入姓名"},null,8,["modelValue"]),d($,{modelValue:S.value.visitor_phone,"onUpdate:modelValue":l[3]||(l[3]=e=>S.value.visitor_phone=e),class:"ipt",type:"number",maxlength:"11",placeholder:"请输入手机号"},null,8,["modelValue"]),_("",!0),d(a,{class:"hint"},{default:i(()=>["individual"===I.value?(v(),t(u,{key:0},{default:i(()=>[s("仅支持个人预约(1人)。")]),_:1})):"group"===I.value?(v(),t(u,{key:1},{default:i(()=>[s("团体预约需填写领队信息与团体人数(人数包含领队本人)。")]),_:1})):(v(),t(u,{key:2},{default:i(()=>[s("个人为1人;团体为联系人信息 + 人数(人数包含联系人本人)。")]),_:1}))]),_:1}),"group"===S.value.booking_type?(v(),t(a,{key:2,class:"count-row"},{default:i(()=>[d(u,{class:"count-label"},{default:i(()=>[s("预约人数")]),_:1}),d(a,{class:"count-ctrl"},{default:i(()=>[d(a,{class:"count-btn",onClick:l[5]||(l[5]=e=>{S.value.people_count=Math.max(q.value,(Number(S.value.people_count)||q.value)-1),F()})},{default:i(()=>[s("-")]),_:1}),d($,{modelValue:S.value.people_count,"onUpdate:modelValue":l[6]||(l[6]=e=>S.value.people_count=e),class:"count-ipt",type:"number",maxlength:3,onBlur:l[7]||(l[7]=e=>F())},null,8,["modelValue"]),d(a,{class:"count-btn",onClick:l[8]||(l[8]=e=>{S.value.people_count=Math.min(z.value,(Number(S.value.people_count)||q.value)+1),F()})},{default:i(()=>[s("+")]),_:1})]),_:1}),d(u,{class:"count-range"},{default:i(()=>[s(r(q.value)+"-"+r(z.value),1)]),_:1})]),_:1})):_("",!0)]),_:1}),d(a,{class:"safe-bottom"})]),_:1}),d(a,{class:"action-bar"},{default:i(()=>[d(a,{class:"left"},{default:i(()=>[s(r(T.value?`${T.value.activity_date} · 余票${T.value.available_count}`:"请选择日期"),1)]),_:1}),d(M,{class:"btn",disabled:!U.value||N.value||w.value,onClick:J},{default:i(()=>[s(r(N.value?"提交中...":"确认预约"),1)]),_:1},8,["disabled"])]),_:1})]),_:1})}}}),[["__scopeId","data-v-6452f35c"]]);export{w as default}; +import{d as e,r as l,c as a,J as u,a as t,b as i,e as o,p as n,m as v,n as d,t as s,S as c,u as r,C as _,v as p,F as y,x as f,z as b,q as m,V as k,W as g,I as h,H as x,X as V}from"./index-DNch_z6T.js";import{f as $,h as C}from"./content.ztt6U5do.js";import{_ as M}from"./_plugin-vue_export-helper.BCo6x5W8.js";const w=M(e({__name:"reserve",setup(e){const M=l(0),w=l(!1),N=l(!1),j=l(null),S=l({activity_day_id:0,visitor_name:"",visitor_phone:"",id_card:"",booking_type:"individual",people_count:1}),T=a(()=>{var e;return((null==(e=j.value)?void 0:e.days)||[]).find(e=>e.id===S.value.activity_day_id)}),U=a(()=>!!S.value.activity_day_id&&!!S.value.visitor_name&&/^1\d{10}$/.test(S.value.visitor_phone)),I=a(()=>{var e,l;return String((null==(l=null==(e=j.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=j.value)?void 0:e.activity)?void 0:l.min_people_per_order)||1))}),z=a(()=>{var e,l;return Math.max(1,Number((null==(l=null==(e=j.value)?void 0:e.activity)?void 0:l.max_people_per_order)||1))}),B=a(()=>{var e,l;return(null==(l=null==(e=j.value)?void 0:e.activity)?void 0:l.booking_modes)||["individual","group"]});function F(){if("individual"===I.value)return S.value.booking_type="individual",void(S.value.people_count=1);if("group"===I.value?S.value.booking_type="group":B.value.includes(S.value.booking_type)||(S.value.booking_type="individual"),"individual"===S.value.booking_type)return void(S.value.people_count=1);const e=Math.floor(Number(S.value.people_count||0));S.value.people_count=Math.min(z.value,Math.max(q.value,e||q.value))}function H(e){if(null==e?void 0:e.is_bookable)return void(S.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 o({title:"该日期已无余票",icon:"none"});const l=function(e){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"," ");return l&&a?`${l} ~ ${a}`:""}(e);o(l?{title:`可预约时段:${l}`,icon:"none",duration:2800}:{title:"该日期当前不可预约",icon:"none"})}async function J(){var e,l;if(U.value&&M.value)if(F(),"group"===S.value.booking_type&&(S.value.people_countz.value))o({title:`人数需在 ${q.value}-${z.value} 之间`,icon:"none"});else{N.value=!0;try{const e=await C(M.value,S.value);return o({title:"预约成功",icon:"success"}),setTimeout(()=>{V({url:`/pages/activity/detail?id=${M.value}`})},500),e}catch(a){const u=(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])||"预约失败";o({title:u,icon:"none"})}finally{N.value=!1}}else o({title:"请完整填写预约信息",icon:"none"})}return u(e=>{M.value=Number((null==e?void 0:e.id)||0),async function(){var e;if(M.value){w.value=!0;try{j.value=await $(M.value),F();const l=((null==(e=j.value)?void 0:e.days)||[]).find(e=>e.is_bookable);l&&(S.value.activity_day_id=l.id)}catch(l){o({title:(null==l?void 0:l.message)||"加载预约信息失败",icon:"none"})}finally{w.value=!1}}}()}),(e,l)=>{const a=n,u=m,o=g,V=k,$=h,C=c,M=x;return v(),t(a,{class:"page-wrap"},{default:i(()=>[d(a,{class:"head"},{default:i(()=>[s("活动预约")]),_:1}),d(C,{"scroll-y":"",class:"page"},{default:i(()=>[d(a,{class:"card"},{default:i(()=>{var e,l;return[d(a,{class:"title"},{default:i(()=>{var e,l;return[s(r((null==(l=null==(e=j.value)?void 0:e.activity)?void 0:l.title)||"活动预约"),1)]}),_:1}),d(a,{class:"meta"},{default:i(()=>{var e,l,a;return[s(r((null==(a=null==(l=null==(e=j.value)?void 0:e.activity)?void 0:l.venue)?void 0:a.name)||"-"),1)]}),_:1}),(null==(l=null==(e=j.value)?void 0:e.activity)?void 0:l.reservation_notice)?(v(),t(a,{key:0,class:"meta"},{default:i(()=>{var e,l;return[s(r(null==(l=null==(e=j.value)?void 0:e.activity)?void 0:l.reservation_notice),1)]}),_:1})):_("",!0)]}),_:1}),d(a,{class:"card"},{default:i(()=>[d(a,{class:"sub-title"},{default:i(()=>[s("选择日期")]),_:1}),d(a,{class:"day-wrap"},{default:i(()=>{var e;return[(v(!0),p(y,null,f((null==(e=j.value)?void 0:e.days)||[],e=>(v(),t(a,{key:e.id,class:b(["day-item",{active:S.value.activity_day_id===e.id,disabled:!e.is_bookable}]),onClick:l=>H(e)},{default:i(()=>[d(a,{class:"d1"},{default:i(()=>[s(r(e.activity_date),1)]),_:2},1024),e.available_count<=0?(v(),t(a,{key:0,class:"d2"},{default:i(()=>[s("已售罄")]),_:1})):e.is_bookable?(v(),t(a,{key:2,class:"d2"},{default:i(()=>[s("余票 "+r(e.available_count),1)]),_:2},1024)):(v(),t(a,{key:1,class:"d2"},{default:i(()=>[s("未到预约时间")]),_:1}))]),_:2},1032,["class","onClick"]))),128))]}),_:1})]),_:1}),d(a,{class:"card"},{default:i(()=>[d(a,{class:"sub-title"},{default:i(()=>[s("联系人信息")]),_:1}),"both"===I.value?(v(),t(a,{key:0,class:"mode-row",style:{"margin-top":"0"}},{default:i(()=>[d(u,null,{default:i(()=>[s("预约类型:")]),_:1}),d(V,{class:"radio"},{default:i(()=>[d(o,{value:"individual",checked:"individual"===S.value.booking_type,onClick:l[0]||(l[0]=e=>{S.value.booking_type="individual",F()})},null,8,["checked"]),s(" 个人 ")]),_:1}),d(V,{class:"radio"},{default:i(()=>[d(o,{value:"group",checked:"group"===S.value.booking_type,onClick:l[1]||(l[1]=e=>{S.value.booking_type="group",F()})},null,8,["checked"]),s(" 团体 ")]),_:1})]),_:1})):_("",!0),d($,{modelValue:S.value.visitor_name,"onUpdate:modelValue":l[2]||(l[2]=e=>S.value.visitor_name=e),class:"ipt",placeholder:"请输入姓名"},null,8,["modelValue"]),d($,{modelValue:S.value.visitor_phone,"onUpdate:modelValue":l[3]||(l[3]=e=>S.value.visitor_phone=e),class:"ipt",type:"number",maxlength:"11",placeholder:"请输入手机号"},null,8,["modelValue"]),_("",!0),d(a,{class:"hint"},{default:i(()=>["individual"===I.value?(v(),t(u,{key:0},{default:i(()=>[s("仅支持个人预约(1人)。")]),_:1})):"group"===I.value?(v(),t(u,{key:1},{default:i(()=>[s("团体预约需填写领队信息与团体人数(人数包含领队本人)。")]),_:1})):(v(),t(u,{key:2},{default:i(()=>[s("个人为1人;团体为联系人信息 + 人数(人数包含联系人本人)。")]),_:1}))]),_:1}),"group"===S.value.booking_type?(v(),t(a,{key:2,class:"count-row"},{default:i(()=>[d(u,{class:"count-label"},{default:i(()=>[s("预约人数")]),_:1}),d(a,{class:"count-ctrl"},{default:i(()=>[d(a,{class:"count-btn",onClick:l[5]||(l[5]=e=>{S.value.people_count=Math.max(q.value,(Number(S.value.people_count)||q.value)-1),F()})},{default:i(()=>[s("-")]),_:1}),d($,{modelValue:S.value.people_count,"onUpdate:modelValue":l[6]||(l[6]=e=>S.value.people_count=e),class:"count-ipt",type:"number",maxlength:3,onBlur:l[7]||(l[7]=e=>F())},null,8,["modelValue"]),d(a,{class:"count-btn",onClick:l[8]||(l[8]=e=>{S.value.people_count=Math.min(z.value,(Number(S.value.people_count)||q.value)+1),F()})},{default:i(()=>[s("+")]),_:1})]),_:1}),d(u,{class:"count-range"},{default:i(()=>[s(r(q.value)+"-"+r(z.value),1)]),_:1})]),_:1})):_("",!0)]),_:1}),d(a,{class:"safe-bottom"})]),_:1}),d(a,{class:"action-bar"},{default:i(()=>[d(a,{class:"left"},{default:i(()=>[s(r(T.value?`${T.value.activity_date} · 余票${T.value.available_count}`:"请选择日期"),1)]),_:1}),d(M,{class:"btn",disabled:!U.value||N.value||w.value,onClick:J},{default:i(()=>[s(r(N.value?"提交中...":"确认预约"),1)]),_:1},8,["disabled"])]),_:1})]),_:1})}}}),[["__scopeId","data-v-6452f35c"]]);export{w as default}; diff --git a/public/h5/assets/pages-discover-index.DnOZn1Pa.js b/public/h5/assets/pages-discover-index.DnOZn1Pa.js deleted file mode 100644 index 089498d..0000000 --- a/public/h5/assets/pages-discover-index.DnOZn1Pa.js +++ /dev/null @@ -1 +0,0 @@ -import{d as a,r as s,o as e,a as l,b as t,p as d,m as c,n as u,t as r,v as i,F as n,x as o,A as _,C as f,u as m,H as p,E as g}from"./index-Cu9ZRBys.js";import{b as v}from"./content.SYmDdoIV.js";import{_ as b}from"./_plugin-vue_export-helper.BCo6x5W8.js";const k=b(a({__name:"index",setup(a){const b=s([]);return e(async function(){b.value=await v()}),(a,s)=>{const e=d,v=_,k=p;return c(),l(e,{class:"page"},{default:t(()=>[u(e,{class:"head"},{default:t(()=>[r("线路列表")]),_:1}),(c(!0),i(n,null,o(b.value,a=>(c(),l(e,{key:a.id,class:"card",onClick:s=>{return e=a.id,void g({url:`/pages/study-tour/detail?id=${e}`});var e}},{default:t(()=>[u(e,{class:"img-wrap"},{default:t(()=>[a.cover_image?(c(),l(v,{key:0,class:"img",src:a.cover_image,mode:"aspectFill"},null,8,["src"])):f("",!0),u(e,{class:"mask"}),u(e,{class:"badge"},{default:t(()=>[r("活动进行中")]),_:1}),u(e,{class:"join"},{default:t(()=>[r("已报名 200")]),_:1})]),_:2},1024),u(e,{class:"body"},{default:t(()=>[u(e,{class:"title"},{default:t(()=>[r(m(a.name),1)]),_:2},1024),u(e,{class:"line"},{default:t(()=>[r("📅 2026-4-6 10:00-11:30")]),_:1}),u(e,{class:"line"},{default:t(()=>[r("📍 "+m(a.first_address||"-"),1)]),_:2},1024),u(e,{class:"line"},{default:t(()=>[r("👥 人数不限")]),_:1}),u(e,{class:"bottom"},{default:t(()=>[u(e,{class:"price"},{default:t(()=>[r("免费")]),_:1}),u(k,{class:"btn"},{default:t(()=>[r("立即报名")]),_:1})]),_:1})]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})}}}),[["__scopeId","data-v-b9676377"]]);export{k as default}; diff --git a/public/h5/assets/pages-discover-index.RghqNFtD.js b/public/h5/assets/pages-discover-index.RghqNFtD.js new file mode 100644 index 0000000..4dbc945 --- /dev/null +++ b/public/h5/assets/pages-discover-index.RghqNFtD.js @@ -0,0 +1 @@ +import{d as a,r as s,o as e,a as l,b as t,p as d,m as c,n as u,t as i,v as r,F as n,x as o,A as _,C as f,u as m,H as p,E as v}from"./index-DNch_z6T.js";import{b as g}from"./content.ztt6U5do.js";import{_ as b}from"./_plugin-vue_export-helper.BCo6x5W8.js";const k=b(a({__name:"index",setup(a){const b=s([]);return e(async function(){b.value=await g()}),(a,s)=>{const e=d,g=_,k=p;return c(),l(e,{class:"page"},{default:t(()=>[u(e,{class:"head"},{default:t(()=>[i("线路列表")]),_:1}),(c(!0),r(n,null,o(b.value,a=>(c(),l(e,{key:a.id,class:"card",onClick:s=>{return e=a.id,void v({url:`/pages/study-tour/detail?id=${e}`});var e}},{default:t(()=>[u(e,{class:"img-wrap"},{default:t(()=>[a.cover_image?(c(),l(g,{key:0,class:"img",src:a.cover_image,mode:"aspectFill"},null,8,["src"])):f("",!0),u(e,{class:"mask"}),u(e,{class:"badge"},{default:t(()=>[i("活动进行中")]),_:1}),u(e,{class:"join"},{default:t(()=>[i("已报名 200")]),_:1})]),_:2},1024),u(e,{class:"body"},{default:t(()=>[u(e,{class:"title"},{default:t(()=>[i(m(a.name),1)]),_:2},1024),u(e,{class:"line"},{default:t(()=>[i("📅 2026-4-6 10:00-11:30")]),_:1}),u(e,{class:"line"},{default:t(()=>[i("📍 "+m(a.first_address||"-"),1)]),_:2},1024),u(e,{class:"line"},{default:t(()=>[i("👥 人数不限")]),_:1}),u(e,{class:"bottom"},{default:t(()=>[u(e,{class:"price"},{default:t(()=>[i("免费")]),_:1}),u(k,{class:"btn"},{default:t(()=>[i("立即报名")]),_:1})]),_:1})]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})}}}),[["__scopeId","data-v-b9676377"]]);export{k as default}; diff --git a/public/h5/assets/pages-index-index.B7hx22lS.js b/public/h5/assets/pages-index-index.B7hx22lS.js new file mode 100644 index 0000000..2f56868 --- /dev/null +++ b/public/h5/assets/pages-index-index.B7hx22lS.js @@ -0,0 +1 @@ +import{h as e,d as t,r as a,c as l,w as s,o as u,a as n,b as c,s as i,e as o,f as r,S as d,g as f,i as v,j as _,k as p,l as m,m as y,n as g,p as h,q as k,t as b,u as w,v as A,F as $,x,y as C,z as S,I,A as E,B as F,M as P,C as j,D as B,E as M,G as J}from"./index-DNch_z6T.js";import{s as L}from"./search.BJnl3YRK.js";import{h as R,f as U}from"./geo.BHVFNtB7.js";import{_ as T}from"./_plugin-vue_export-helper.BCo6x5W8.js";const N="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAKCAYAAABSfLWiAAAAyklEQVQokY3SPUpDQRiF4cdLXEDAIm1a3YGkDWKWIohgkS1YpFBQIdlBFmGliAiKW3ADYjRR8T98MIHLJRPuC1PMmcPL/K1tXB5tYRNv+MIUP3jBH57xi1cZGnjEEJ1cqcQ3ZvjEexp7RdpBD9c1JOtoooU2znBVpMVpEt3UEAX/2McoJkVpIc68i9saggOcL4KiUojL3MHdCskhTstBVbIQdXGfEZxUw2WSYJJED6Wsj+Nl5XjiHPE/QnSBMQa54ipJ8IRtfGQbmANeKSt76556cgAAAABJRU5ErkJggg==",Q=new Map,V="#05c9ac";function D(e){const t=function(e){if(!e||"string"!=typeof e)return V;let t=e.trim();if(t.startsWith("#")||(t=`#${t}`),/^#[0-9A-Fa-f]{6}$/.test(t))return t;if(/^#[0-9A-Fa-f]{3}$/.test(t)){const e=t[1],a=t[2],l=t[3];return`#${e}${e}${a}${a}${l}${l}`}return V}(e||"");if(Q.has(t))return Q.get(t);if("undefined"==typeof document)return Q.set(t,""),"";const a=document.createElement("canvas");a.width=48,a.height=56;const l=a.getContext("2d");if(!l)return Q.set(t,""),"";const s=24;l.clearRect(0,0,48,56),l.beginPath(),l.arc(s,18,14,0,2*Math.PI),l.fillStyle="#ffffff",l.fill(),l.beginPath(),l.arc(s,18,12,0,2*Math.PI),l.fillStyle=t,l.fill(),l.beginPath(),l.moveTo(16,28),l.lineTo(s,50),l.lineTo(32,28),l.closePath(),l.fillStyle=t,l.fill(),l.beginPath(),l.arc(21,15,3,0,2*Math.PI),l.fillStyle="rgba(255,255,255,0.35)",l.fill();const u=a.toDataURL("image/png");return Q.set(t,u),u}const G="szkp_loc_consent",K=T(t({__name:"index",setup(t){const T=a(!1),Q=a(null),V=a({latitude:31.2989,longitude:120.5853}),K=a("map"),W=a(""),Y=a("全部区域"),X=a(""),H=a("全部类型"),z=a(""),O=a("全部"),Z=a(""),q=a(null),ee=a(null),te={science_venue:"科技场馆类",education_research:"教育科研类",agriculture:"“三农”类",enterprise:"企业类",nature_resource:"自然资源类",other:"其他类"},ae={free:"免费",paid:"收费"};function le(e){return e?ae[e]||e:""}function se(e){try{"undefined"!=typeof window&&window.sessionStorage&&window.sessionStorage.setItem(G,e)}catch{}try{m(G,e)}catch{}}const ue=l(()=>{var e,t;return((null==(t=null==(e=Q.value)?void 0:e.stats)?void 0:t.reservation_total)??0).toLocaleString()}),ne=l(()=>{var e;const t=(null==(e=Q.value)?void 0:e.top_live_venues)??[],a=[];for(let l=0;l<3;l++){const e=t[l];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}),ce=l(()=>{var e;const t=new Set;return((null==(e=Q.value)?void 0:e.map_venues)??[]).forEach(e=>{e.district&&t.add(String(e.district))}),["全部区域",...Array.from(t)]}),ie=l(()=>{var e;const t=new Set;((null==(e=Q.value)?void 0:e.map_venues)??[]).forEach(e=>{e.venue_type&&t.add(String(e.venue_type))});const a=[{label:"全部类型",value:""}];return Array.from(t).forEach(e=>{a.push({label:te[e]||e,value:e})}),a}),oe=[{label:"全部",value:""},{label:"免费",value:"free"},{label:"收费",value:"paid"}],re=l(()=>{var e;const t=W.value.trim();return((null==(e=Q.value)?void 0:e.map_venues)??[]).filter(e=>{if(X.value&&(e.district||"")!==X.value)return!1;if(z.value&&(e.venue_type||"")!==z.value)return!1;if("free"===Z.value&&"free"!==(e.ticket_type||""))return!1;if("paid"===Z.value&&"paid"!==(e.ticket_type||""))return!1;if(t){if(!`${e.name||""}${e.address||""}`.includes(t))return!1}return!0})}),de=l(()=>{const e=[...re.value],t=q.value;return t?e.sort((e,a)=>R(t.lat,t.lng,e.lat,e.lng)-R(t.lat,t.lng,a.lat,a.lng)):e}),fe=l(()=>null==ee.value?null:re.value.find(e=>e.id===ee.value)??null),ve=l(()=>{const e=fe.value,t=q.value;if(!e||!t)return"定位后可显示距离";const a=R(t.lat,t.lng,e.lat,e.lng);return`距您 ${U(a)}`});s(re,e=>{null==ee.value||e.some(e=>e.id===ee.value)||(ee.value=null)}),s(K,e=>{"list"===e&&(ee.value=null)});const _e=l(()=>re.value.map(e=>{const t=D(e.venue_type_color);return{id:e.id,latitude:e.lat,longitude:e.lng,width:32,height:38,iconPath:t||void 0,anchor:{x:.5,y:1}}}));function pe(e){const t=q.value;if(!t)return"距离 --";const a=R(t.lat,t.lng,e.lat,e.lng);return`距您 ${U(a)}`}function me(e){if("district"===e)B({itemList:ce.value,success:e=>{const t=ce.value[e.tapIndex];Y.value=t,X.value="全部区域"===t?"":t}});else if("type"===e){const e=ie.value;B({itemList:e.map(e=>e.label),success:t=>{const a=e[t.tapIndex];H.value=a.label,z.value=a.value}})}else B({itemList:oe.map(e=>e.label),success:e=>{const t=oe[e.tapIndex];O.value=t.label,Z.value=t.value}})}let ye=!1;function ge(e){var t;const a=null==(t=null==e?void 0:e.detail)?void 0:t.markerId;null!=a&&(ee.value=Number(a),ye=!0,setTimeout(()=>{ye=!1},400))}function he(){ye||(ee.value=null)}function ke(){ee.value=null}function be(e){e&&M({url:`/pages/venue/detail?id=${e}`})}function we(){M({url:"/pages/stats/index"})}function Ae(){J({url:"/pages/activity/index"})}function $e(){J({url:"/pages/discover/index"})}function xe(e,t){const a=e=>{if(!e)return null;const t=e.slice(0,10).split("-").map(Number);if(3!==t.length)return null;const[a,l,s]=t;return Number.isFinite(a)&&Number.isFinite(l)&&Number.isFinite(s)?{y:a,m:l,d:s}:null},l=a(e),s=a(t);return l||s?l&&!s?`${l.y}年${l.m}月${l.d}日`:!l&&s?`${s.y}年${s.m}月${s.d}日`:l&&s?l.y===s.y?`${l.y}年${l.m}月${l.d}日至${s.m}月${s.d}日`:`${l.y}年${l.m}月${l.d}日至${s.y}年${s.m}月${s.d}日`:"日期待定":"日期待定"}function Ce(e){return 0===(e.registered_count??0)&&!0===e.is_bookable}function Se(e){const t=e.registered_count??0;return Ce(e)?"可预约":t>0?`${t}人已预约`:"敬请期待"}function Ie(){var e;if(q.value)return void(V.value={latitude:q.value.lat,longitude:q.value.lng});const t=(null==(e=Q.value)?void 0:e.map_venues)??[];t.length?V.value={latitude:t[0].lat,longitude:t[0].lng}:V.value={latitude:31.2989,longitude:120.5853}}async function Ee(){T.value=!0;try{const t=await e.get("/h5/home",{},{withAuth:!1});Q.value=t,Ie(),await i({title:"苏州科普地图",desc:"热门活动、研学线路与场馆导览"}).catch(()=>{})}catch(t){o({title:(null==t?void 0:t.message)||"加载首页失败",icon:"none"})}finally{T.value=!1}}async function Fe(){if(v())try{const e=await _();return q.value={lat:e.lat,lng:e.lng},void Ie()}catch{}p({type:"gcj02",success:e=>{q.value={lat:e.latitude,lng:e.longitude},Ie()},fail:()=>{q.value=null,Ie(),o({title:"定位失败,请检查系统权限或公众号 JS 安全域名",icon:"none",duration:2800})}})}function Pe(){return new Promise(e=>{const t=function(){try{if("undefined"!=typeof window&&window.sessionStorage){const e=window.sessionStorage.getItem(G);if("granted"===e||"denied"===e)return e}}catch{}try{const e=f(G);if("granted"===e||"denied"===e)return e}catch{}return null}();"denied"!==t?"granted"!==t?r({title:"需要获取您的位置",content:"用于展示「距您」距离、列表排序与地图中心。拒绝后仍可浏览场馆,但无法显示距离。\n\n在微信中使用时,请确保本页域名已加入公众号「JS 接口安全域名」,否则无法调起定位。",confirmText:"允许",cancelText:"暂不",success:t=>{t.confirm?(se("granted"),Fe().finally(()=>e())):(se("denied"),e())}}):Fe().finally(()=>e()):e()})}return u(async()=>{await Ee(),await Pe()}),(e,t)=>{const a=h,l=k,s=I,u=E,i=P,o=d;return y(),n(o,{"scroll-y":"",class:"page"},{default:c(()=>[g(a,{class:"hero"},{default:c(()=>[g(a,{class:"hero-brand"}),g(a,{class:"hero-content"},{default:c(()=>[g(a,{class:"stat-card"},{default:c(()=>[g(a,{class:"stat-main"},{default:c(()=>[g(a,{class:"stat-left"},{default:c(()=>[g(l,{class:"stat-label"},{default:c(()=>[b("全市实时总人数")]),_:1}),g(l,{class:"stat-num"},{default:c(()=>[b(w(ue.value)+" 人",1)]),_:1}),g(l,{class:"stat-desc"},{default:c(()=>[b("正在参观科普场馆")]),_:1})]),_:1}),g(a,{class:"stat-right"},{default:c(()=>[g(a,{class:"live-list"},{default:c(()=>[(y(!0),A($,null,x(ne.value,(e,t)=>(y(),n(a,{key:"live-"+t,class:S(["live-venue-row",{"is-empty":e.empty}]),onClick:C(t=>{var a;(a=e).empty||be(a.id)},["stop"])},{default:c(()=>[g(a,{class:"live-row-one"},{default:c(()=>[g(l,{class:"live-top"},{default:c(()=>[b("Top "+w(t+1),1)]),_:2},1024),g(l,{class:"live-name"},{default:c(()=>[b(w(e.empty?"—":e.name),1)]),_:2},1024),g(l,{class:"live-count"},{default:c(()=>[b(w(e.empty?"—":e.people_count+" 人"),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["class","onClick"]))),128))]),_:1}),g(a,{class:"stat-foot",onClick:C(we,["stop"])},{default:c(()=>[g(l,{class:"stat-foot-link"},{default:c(()=>[b("客流量统计 >")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),g(a,{class:"map-section"},{default:c(()=>[g(a,{class:"toolbar"},{default:c(()=>[g(a,{class:"tabs"},{default:c(()=>[g(l,{class:S(["tab",{on:"map"===K.value}]),onClick:t[0]||(t[0]=e=>K.value="map")},{default:c(()=>[b("地图")]),_:1},8,["class"]),g(l,{class:S(["tab",{on:"list"===K.value}]),onClick:t[1]||(t[1]=e=>K.value="list")},{default:c(()=>[b("列表")]),_:1},8,["class"])]),_:1}),g(a,{class:"search-wrap"},{default:c(()=>[g(s,{modelValue:W.value,"onUpdate:modelValue":t[2]||(t[2]=e=>W.value=e),class:"search-input",placeholder:"请输入你要搜索的内容","placeholder-class":"ph"},null,8,["modelValue"]),g(u,{class:"search-icon-img",src:F(L),mode:"aspectFit"},null,8,["src"])]),_:1})]),_:1}),g(a,{class:"filters"},{default:c(()=>[g(a,{class:"f-item",onClick:t[3]||(t[3]=e=>me("district"))},{default:c(()=>[g(l,{class:"f-item-text"},{default:c(()=>[b(w(Y.value),1)]),_:1}),g(u,{class:"f-item-arrow",src:F(N),mode:"aspectFit"},null,8,["src"])]),_:1}),g(a,{class:"f-item",onClick:t[4]||(t[4]=e=>me("type"))},{default:c(()=>[g(l,{class:"f-item-text"},{default:c(()=>[b(w(H.value),1)]),_:1}),g(u,{class:"f-item-arrow",src:F(N),mode:"aspectFit"},null,8,["src"])]),_:1}),g(a,{class:"f-item",onClick:t[5]||(t[5]=e=>me("ticket"))},{default:c(()=>[g(l,{class:"f-item-text"},{default:c(()=>[b(w(O.value),1)]),_:1}),g(u,{class:"f-item-arrow",src:F(N),mode:"aspectFit"},null,8,["src"])]),_:1})]),_:1}),"map"===K.value?(y(),n(a,{key:0,class:"map-wrap"},{default:c(()=>[g(i,{class:"main-map",latitude:V.value.latitude,longitude:V.value.longitude,markers:_e.value,scale:11,"show-location":"",onMarkertap:ge,onTap:he},null,8,["latitude","longitude","markers"]),fe.value?(y(),n(a,{key:0,class:"venue-sheet",onClick:t[7]||(t[7]=C(()=>{},["stop"]))},{default:c(()=>[g(a,{class:"venue-sheet-inner"},{default:c(()=>[g(a,{class:"sheet-bar"}),g(a,{class:"sheet-row"},{default:c(()=>[fe.value.image?(y(),n(u,{key:0,class:"sheet-cover",src:fe.value.image,mode:"aspectFill"},null,8,["src"])):(y(),n(a,{key:1,class:"sheet-cover sheet-cover-ph"})),g(a,{class:"sheet-main"},{default:c(()=>[g(l,{class:"sheet-name"},{default:c(()=>[b(w(fe.value.name),1)]),_:1}),fe.value.venue_type||fe.value.ticket_type?(y(),n(a,{key:0,class:"sheet-meta"},{default:c(()=>[fe.value.venue_type?(y(),n(l,{key:0,class:"sheet-type"},{default:c(()=>[b(w(te[fe.value.venue_type]||fe.value.venue_type),1)]),_:1})):j("",!0),fe.value.venue_type&&fe.value.ticket_type?(y(),n(l,{key:1,class:"sheet-meta-sep"},{default:c(()=>[b("·")]),_:1})):j("",!0),fe.value.ticket_type?(y(),n(l,{key:2,class:S(["sheet-ticket","paid"===fe.value.ticket_type?"paid":"free"])},{default:c(()=>[b(w(le(fe.value.ticket_type)),1)]),_:1},8,["class"])):j("",!0)]),_:1})):j("",!0),g(l,{class:"sheet-addr"},{default:c(()=>[b(w(fe.value.address||"地址待定"),1)]),_:1}),g(l,{class:"sheet-dist"},{default:c(()=>[b(w(ve.value),1)]),_:1})]),_:1})]),_:1}),g(a,{class:"sheet-actions"},{default:c(()=>[g(a,{class:"sheet-btn ghost",onClick:ke},{default:c(()=>[b("关闭")]),_:1}),g(a,{class:"sheet-btn primary",onClick:t[6]||(t[6]=e=>be(fe.value.id))},{default:c(()=>[b("查看详情")]),_:1})]),_:1})]),_:1})]),_:1})):j("",!0)]),_:1})):(y(),n(o,{key:1,"scroll-y":"",class:"venue-list-scroll"},{default:c(()=>[(y(!0),A($,null,x(de.value,e=>(y(),n(a,{key:e.id,class:"venue-row",onClick:t=>be(e.id)},{default:c(()=>[e.image?(y(),n(u,{key:0,class:"venue-thumb",src:e.image,mode:"aspectFill"},null,8,["src"])):(y(),n(a,{key:1,class:"venue-thumb ph-img"})),g(a,{class:"venue-info"},{default:c(()=>[g(l,{class:"venue-name"},{default:c(()=>[b(w(e.name),1)]),_:2},1024),e.venue_type||e.ticket_type?(y(),n(a,{key:0,class:"venue-meta"},{default:c(()=>[e.venue_type?(y(),n(l,{key:0,class:"venue-type-pill"},{default:c(()=>[b(w(te[e.venue_type]||e.venue_type),1)]),_:2},1024)):j("",!0),e.ticket_type?(y(),n(l,{key:1,class:S(["venue-ticket-pill","paid"===e.ticket_type?"paid":"free"])},{default:c(()=>[b(w(le(e.ticket_type)),1)]),_:2},1032,["class"])):j("",!0)]),_:2},1024)):j("",!0),g(l,{class:"venue-addr"},{default:c(()=>[b(w(e.address||"-"),1)]),_:2},1024),g(l,{class:"venue-dist"},{default:c(()=>[b(w(pe(e)),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["onClick"]))),128)),de.value.length?j("",!0):(y(),n(a,{key:0,class:"empty-tip"},{default:c(()=>[b("暂无符合条件的场馆")]),_:1}))]),_:1}))]),_:1}),g(a,{class:"section"},{default:c(()=>[g(a,{class:"sec-head"},{default:c(()=>[g(a,{class:"sec-bar"}),g(l,{class:"sec-title"},{default:c(()=>[b("热门活动")]),_:1}),g(l,{class:"sec-more",onClick:Ae},{default:c(()=>[b("更多 >")]),_:1})]),_:1}),g(o,{"scroll-x":"",class:"act-scroll","show-scrollbar":!1,"enable-flex":!0},{default:c(()=>[g(a,{class:"act-scroll-row"},{default:c(()=>{var e;return[(y(!0),A($,null,x((null==(e=Q.value)?void 0:e.hot_activities)??[],e=>(y(),n(a,{key:e.id,class:"act-card",onClick:t=>{return a=e.id,void M({url:`/pages/activity/detail?id=${a}`});var a}},{default:c(()=>[g(a,{class:"act-img-wrap"},{default:c(()=>[e.image?(y(),n(u,{key:0,class:"act-img",src:e.image,mode:"aspectFill"},null,8,["src"])):(y(),n(a,{key:1,class:"act-img-ph"})),g(a,{class:S(["act-book-badge",{"is-bookable":Ce(e)}])},{default:c(()=>[g(l,{class:S(["act-book-text",{"is-bookable":Ce(e)}])},{default:c(()=>[b(w(Se(e)),1)]),_:2},1032,["class"])]),_:2},1032,["class"])]),_:2},1024),g(a,{class:"act-body"},{default:c(()=>[g(l,{class:"act-title"},{default:c(()=>[b(w(e.title),1)]),_:2},1024),g(a,{class:"act-tags"},{default:c(()=>[(y(!0),A($,null,x((e.tags||[]).slice(0,4),(t,a)=>(y(),n(l,{key:"tag-"+e.id+"-"+a,class:"act-tag-chip"},{default:c(()=>[b(w(t),1)]),_:2},1024))),128))]),_:2},1024),g(l,{class:"act-meta"},{default:c(()=>[b(w(xe(e.start_at,e.end_at)),1)]),_:2},1024),g(l,{class:"act-meta"},{default:c(()=>[b(w(e.venue_name||e.address||"苏州"),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]}),_:1})]),_:1})]),_:1}),g(a,{class:"section"},{default:c(()=>{var e;return[g(a,{class:"sec-head"},{default:c(()=>[g(a,{class:"sec-bar"}),g(l,{class:"sec-title"},{default:c(()=>[b("苏州市科普研学线路")]),_:1}),g(l,{class:"sec-more",onClick:$e},{default:c(()=>[b("更多 >")]),_:1})]),_:1}),(y(!0),A($,null,x((null==(e=Q.value)?void 0:e.study_tours)??[],e=>(y(),n(a,{key:e.id,class:"tour-card",onClick:t=>{return a=e.id,void M({url:`/pages/study-tour/detail?id=${a}`});var a}},{default:c(()=>[g(a,{class:"tour-img-wrap"},{default:c(()=>[e.cover_image?(y(),n(u,{key:0,class:"tour-img",src:e.cover_image,mode:"aspectFill"},null,8,["src"])):(y(),n(a,{key:1,class:"tour-img tour-ph"})),g(a,{class:"tour-overlay-title-wrap"},{default:c(()=>[g(l,{class:"tour-overlay-title"},{default:c(()=>[b(w(e.name),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),g(a,{class:"tour-body"},{default:c(()=>{var t;return[g(l,{class:"tour-title"},{default:c(()=>[b(w(e.name),1)]),_:2},1024),g(a,{class:"tour-stops-timeline"},{default:c(()=>[(y(!0),A($,null,x(e.venue_names,(t,s)=>(y(),n(a,{key:"v-"+e.id+"-"+s,class:"tour-stop-row"},{default:c(()=>[g(a,{class:"tour-timeline-axis"},{default:c(()=>[g(a,{class:"tour-dot-cell"},{default:c(()=>[g(a,{class:"tour-tl-dot"})]),_:1}),s[b(w(t),1)]),_:2},1024)]),_:2},1024))),128))]),_:2},1024),(null==(t=e.tags)?void 0:t.length)?(y(),n(a,{key:0,class:"tour-tags-row"},{default:c(()=>[(y(!0),A($,null,x(e.tags,(t,a)=>(y(),n(l,{key:"t-"+e.id+"-"+a,class:"tour-tag"},{default:c(()=>[b(w(t),1)]),_:2},1024))),128))]),_:2},1024)):j("",!0)]}),_:2},1024)]),_:2},1032,["onClick"]))),128))]}),_:1}),g(a,{class:"bottom-safe"}),T.value?(y(),n(a,{key:0,class:"loading-mask"},{default:c(()=>[b("加载中...")]),_:1})):j("",!0)]),_:1})}}}),[["__scopeId","data-v-0aefad02"]]);export{K as default}; diff --git a/public/h5/assets/pages-index-index.J33UTvrh.js b/public/h5/assets/pages-index-index.J33UTvrh.js deleted file mode 100644 index 5a3f655..0000000 --- a/public/h5/assets/pages-index-index.J33UTvrh.js +++ /dev/null @@ -1 +0,0 @@ -import{h as e,d as t,r as a,c as l,w as s,o as u,a as n,b as c,s as i,e as o,f as r,S as d,g as f,i as v,j as p,k as m,l as _,m as g,n as y,p as h,q as k,t as A,u as b,v as w,F as I,x as C,y as S,z as E,I as $,A as x,B as U,M as F,C as P,D as K,E as Q,G as B}from"./index-Cu9ZRBys.js";import{h as N,f as R}from"./geo.BHVFNtB7.js";import{_ as V}from"./_plugin-vue_export-helper.BCo6x5W8.js";const T="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAKCAYAAABSfLWiAAAAyklEQVQokY3SPUpDQRiF4cdLXEDAIm1a3YGkDWKWIohgkS1YpFBQIdlBFmGliAiKW3ADYjRR8T98MIHLJRPuC1PMmcPL/K1tXB5tYRNv+MIUP3jBH57xi1cZGnjEEJ1cqcQ3ZvjEexp7RdpBD9c1JOtoooU2znBVpMVpEt3UEAX/2McoJkVpIc68i9saggOcL4KiUojL3MHdCskhTstBVbIQdXGfEZxUw2WSYJJED6Wsj+Nl5XjiHPE/QnSBMQa54ipJ8IRtfGQbmANeKSt76556cgAAAABJRU5ErkJggg==",j=new Map,J="#05c9ac";function D(e){const t=function(e){if(!e||"string"!=typeof e)return J;let t=e.trim();if(t.startsWith("#")||(t=`#${t}`),/^#[0-9A-Fa-f]{6}$/.test(t))return t;if(/^#[0-9A-Fa-f]{3}$/.test(t)){const e=t[1],a=t[2],l=t[3];return`#${e}${e}${a}${a}${l}${l}`}return J}(e||"");if(j.has(t))return j.get(t);if("undefined"==typeof document)return j.set(t,""),"";const a=document.createElement("canvas");a.width=48,a.height=56;const l=a.getContext("2d");if(!l)return j.set(t,""),"";const s=24;l.clearRect(0,0,48,56),l.beginPath(),l.arc(s,18,14,0,2*Math.PI),l.fillStyle="#ffffff",l.fill(),l.beginPath(),l.arc(s,18,12,0,2*Math.PI),l.fillStyle=t,l.fill(),l.beginPath(),l.moveTo(16,28),l.lineTo(s,50),l.lineTo(32,28),l.closePath(),l.fillStyle=t,l.fill(),l.beginPath(),l.arc(21,15,3,0,2*Math.PI),l.fillStyle="rgba(255,255,255,0.35)",l.fill();const u=a.toDataURL("image/png");return j.set(t,u),u}const W="szkp_loc_consent",X=V(t({__name:"index",setup(t){const V=a(!1),j=a(null),J=a({latitude:31.2989,longitude:120.5853}),X=a("map"),L=a(""),M=a("全部区域"),Y=a(""),G=a("全部类型"),q=a(""),H=a("全部"),O=a(""),Z=a(null),z=a(null),ee={science_venue:"科技场馆类",education_research:"教育科研类",agriculture:"“三农”类",enterprise:"企业类",nature_resource:"自然资源类",other:"其他类"},te={free:"免费",paid:"收费"};function ae(e){return e?te[e]||e:""}function le(e){try{"undefined"!=typeof window&&window.sessionStorage&&window.sessionStorage.setItem(W,e)}catch{}try{_(W,e)}catch{}}const se=l(()=>{var e,t;return((null==(t=null==(e=j.value)?void 0:e.stats)?void 0:t.reservation_total)??0).toLocaleString()}),ue=l(()=>{var e;const t=(null==(e=j.value)?void 0:e.top_live_venues)??[],a=[];for(let l=0;l<3;l++){const e=t[l];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}),ne=l(()=>{var e;const t=new Set;return((null==(e=j.value)?void 0:e.map_venues)??[]).forEach(e=>{e.district&&t.add(String(e.district))}),["全部区域",...Array.from(t)]}),ce=l(()=>{var e;const t=new Set;((null==(e=j.value)?void 0:e.map_venues)??[]).forEach(e=>{e.venue_type&&t.add(String(e.venue_type))});const a=[{label:"全部类型",value:""}];return Array.from(t).forEach(e=>{a.push({label:ee[e]||e,value:e})}),a}),ie=[{label:"全部",value:""},{label:"免费",value:"free"},{label:"收费",value:"paid"}],oe=l(()=>{var e;const t=L.value.trim();return((null==(e=j.value)?void 0:e.map_venues)??[]).filter(e=>{if(Y.value&&(e.district||"")!==Y.value)return!1;if(q.value&&(e.venue_type||"")!==q.value)return!1;if("free"===O.value&&"free"!==(e.ticket_type||""))return!1;if("paid"===O.value&&"paid"!==(e.ticket_type||""))return!1;if(t){if(!`${e.name||""}${e.address||""}`.includes(t))return!1}return!0})}),re=l(()=>{const e=[...oe.value],t=Z.value;return t?e.sort((e,a)=>N(t.lat,t.lng,e.lat,e.lng)-N(t.lat,t.lng,a.lat,a.lng)):e}),de=l(()=>null==z.value?null:oe.value.find(e=>e.id===z.value)??null),fe=l(()=>{const e=de.value,t=Z.value;if(!e||!t)return"定位后可显示距离";const a=N(t.lat,t.lng,e.lat,e.lng);return`距您 ${R(a)}`});s(oe,e=>{null==z.value||e.some(e=>e.id===z.value)||(z.value=null)}),s(X,e=>{"list"===e&&(z.value=null)});const ve=l(()=>oe.value.map(e=>{const t=D(e.venue_type_color);return{id:e.id,latitude:e.lat,longitude:e.lng,width:32,height:38,iconPath:t||void 0,anchor:{x:.5,y:1}}}));function pe(e){const t=Z.value;if(!t)return"距离 --";const a=N(t.lat,t.lng,e.lat,e.lng);return`距您 ${R(a)}`}function me(e){if("district"===e)K({itemList:ne.value,success:e=>{const t=ne.value[e.tapIndex];M.value=t,Y.value="全部区域"===t?"":t}});else if("type"===e){const e=ce.value;K({itemList:e.map(e=>e.label),success:t=>{const a=e[t.tapIndex];G.value=a.label,q.value=a.value}})}else K({itemList:ie.map(e=>e.label),success:e=>{const t=ie[e.tapIndex];H.value=t.label,O.value=t.value}})}let _e=!1;function ge(e){var t;const a=null==(t=null==e?void 0:e.detail)?void 0:t.markerId;null!=a&&(z.value=Number(a),_e=!0,setTimeout(()=>{_e=!1},400))}function ye(){_e||(z.value=null)}function he(){z.value=null}function ke(e){e&&Q({url:`/pages/venue/detail?id=${e}`})}function Ae(){Q({url:"/pages/stats/index"})}function be(){B({url:"/pages/activity/index"})}function we(){B({url:"/pages/discover/index"})}function Ie(e,t){const a=e=>{if(!e)return null;const t=e.slice(0,10).split("-").map(Number);if(3!==t.length)return null;const[a,l,s]=t;return Number.isFinite(a)&&Number.isFinite(l)&&Number.isFinite(s)?{y:a,m:l,d:s}:null},l=a(e),s=a(t);return l||s?l&&!s?`${l.y}年${l.m}月${l.d}日`:!l&&s?`${s.y}年${s.m}月${s.d}日`:l&&s?l.y===s.y?`${l.y}年${l.m}月${l.d}日至${s.m}月${s.d}日`:`${l.y}年${l.m}月${l.d}日至${s.y}年${s.m}月${s.d}日`:"日期待定":"日期待定"}function Ce(e){return 0===(e.registered_count??0)&&!0===e.is_bookable}function Se(e){const t=e.registered_count??0;return Ce(e)?"可预约":t>0?`${t}人已预约`:"敬请期待"}function Ee(){var e;if(Z.value)return void(J.value={latitude:Z.value.lat,longitude:Z.value.lng});const t=(null==(e=j.value)?void 0:e.map_venues)??[];t.length?J.value={latitude:t[0].lat,longitude:t[0].lng}:J.value={latitude:31.2989,longitude:120.5853}}async function $e(){V.value=!0;try{const t=await e.get("/h5/home",{},{withAuth:!1});j.value=t,Ee(),await i({title:"苏州科普地图",desc:"热门活动、研学线路与场馆导览"}).catch(()=>{})}catch(t){o({title:(null==t?void 0:t.message)||"加载首页失败",icon:"none"})}finally{V.value=!1}}async function xe(){if(v())try{const e=await p();return Z.value={lat:e.lat,lng:e.lng},void Ee()}catch{}m({type:"gcj02",success:e=>{Z.value={lat:e.latitude,lng:e.longitude},Ee()},fail:()=>{Z.value=null,Ee(),o({title:"定位失败,请检查系统权限或公众号 JS 安全域名",icon:"none",duration:2800})}})}function Ue(){return new Promise(e=>{const t=function(){try{if("undefined"!=typeof window&&window.sessionStorage){const e=window.sessionStorage.getItem(W);if("granted"===e||"denied"===e)return e}}catch{}try{const e=f(W);if("granted"===e||"denied"===e)return e}catch{}return null}();"denied"!==t?"granted"!==t?r({title:"需要获取您的位置",content:"用于展示「距您」距离、列表排序与地图中心。拒绝后仍可浏览场馆,但无法显示距离。\n\n在微信中使用时,请确保本页域名已加入公众号「JS 接口安全域名」,否则无法调起定位。",confirmText:"允许",cancelText:"暂不",success:t=>{t.confirm?(le("granted"),xe().finally(()=>e())):(le("denied"),e())}}):xe().finally(()=>e()):e()})}return u(async()=>{await $e(),await Ue()}),(e,t)=>{const a=h,l=k,s=$,u=x,i=F,o=d;return g(),n(o,{"scroll-y":"",class:"page"},{default:c(()=>[y(a,{class:"hero"},{default:c(()=>[y(a,{class:"hero-brand"}),y(a,{class:"hero-content"},{default:c(()=>[y(a,{class:"stat-card"},{default:c(()=>[y(a,{class:"stat-main"},{default:c(()=>[y(a,{class:"stat-left"},{default:c(()=>[y(l,{class:"stat-label"},{default:c(()=>[A("全市实时总人数")]),_:1}),y(l,{class:"stat-num"},{default:c(()=>[A(b(se.value)+" 人",1)]),_:1}),y(l,{class:"stat-desc"},{default:c(()=>[A("正在参观科普场馆")]),_:1})]),_:1}),y(a,{class:"stat-right"},{default:c(()=>[y(a,{class:"live-list"},{default:c(()=>[(g(!0),w(I,null,C(ue.value,(e,t)=>(g(),n(a,{key:"live-"+t,class:E(["live-venue-row",{"is-empty":e.empty}]),onClick:S(t=>{var a;(a=e).empty||ke(a.id)},["stop"])},{default:c(()=>[y(a,{class:"live-row-one"},{default:c(()=>[y(l,{class:"live-top"},{default:c(()=>[A("Top "+b(t+1),1)]),_:2},1024),y(l,{class:"live-name"},{default:c(()=>[A(b(e.empty?"—":e.name),1)]),_:2},1024),y(l,{class:"live-count"},{default:c(()=>[A(b(e.empty?"—":e.people_count+" 人"),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["class","onClick"]))),128))]),_:1}),y(a,{class:"stat-foot",onClick:S(Ae,["stop"])},{default:c(()=>[y(l,{class:"stat-foot-link"},{default:c(()=>[A("客流量统计 >")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),y(a,{class:"map-section"},{default:c(()=>[y(a,{class:"toolbar"},{default:c(()=>[y(a,{class:"tabs"},{default:c(()=>[y(l,{class:E(["tab",{on:"map"===X.value}]),onClick:t[0]||(t[0]=e=>X.value="map")},{default:c(()=>[A("地图")]),_:1},8,["class"]),y(l,{class:E(["tab",{on:"list"===X.value}]),onClick:t[1]||(t[1]=e=>X.value="list")},{default:c(()=>[A("列表")]),_:1},8,["class"])]),_:1}),y(a,{class:"search-wrap"},{default:c(()=>[y(s,{modelValue:L.value,"onUpdate:modelValue":t[2]||(t[2]=e=>L.value=e),class:"search-input",placeholder:"请输入你要搜索的内容","placeholder-class":"ph"},null,8,["modelValue"]),y(u,{class:"search-icon-img",src:U("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAYCAYAAAAPtVbGAAACM0lEQVRIibXWQWhUVxTG8Z82CDbiIvIQbKmIWtAqaqUFI6PEiFZEs6hFBEU3uhVx0YEuSqGLR1cK7UJE0kUFI4IoEhUVkYddVRCrXVREREF00JqKItoSuXIiQ/KGSTL6wXDO3Dnn/ufcd+89b8Lg4KAyZUU+H19jI2ahHf/gKk6gD09Kk4dpBCQr8k/wI7Y1yf0v4n4YEyQr8hU4h0l4hX24iD/wHB3oRA+2RNo1dOFxU0hW5N04H+OHsLdWqQ7Eb2W5n+EwFuEuPsWLssC2mKQ9Kkj6tlap/tRsCXADiyNvNfqxqixwYtifU1U4OUpAvdZhIJaspxSSFfl07Ihn8M0YAWIDbA1/f6NKhgJ6a5Xqy3FAkk7hHmZiSRmkO/y+cQKGdCnsyjLI3PD/bhFyJ2xWBvkw/P9bhAyEbSuD3A9/aouQjrDPyiDXw+9sEfJl2NtlkKPh72kBMKXugfePgNQq1TT4CAuzIi89TKNQb/zhvphrRCVJO8Mey4p82hgBm7Ep/N1lAW8gtUr1eJSZdsaVrMgXjBKwHUfCT+ftQUNIgNbjTJzaP7Mi/y4r8o8aTP45fo1P0vf4C6WrUNa0DmBX3dBl/I6nSA1tWVzzQ0rN7TekiR5iTsQ2hgSoK3bbhgaVpAZ2EL/gJj6Ia2V5fF9aD2rY4wP2cSTOwGT8G9fHhQAN12l8FaCUV2sKqYM1janTWazBLXyRXj7ePvh3qLXxXjA72vK89wFJSm049Zh2bHsNyCWYl7aXVQsAAAAASUVORK5CYII="),mode:"aspectFit"},null,8,["src"])]),_:1})]),_:1}),y(a,{class:"filters"},{default:c(()=>[y(a,{class:"f-item",onClick:t[3]||(t[3]=e=>me("district"))},{default:c(()=>[y(l,{class:"f-item-text"},{default:c(()=>[A(b(M.value),1)]),_:1}),y(u,{class:"f-item-arrow",src:U(T),mode:"aspectFit"},null,8,["src"])]),_:1}),y(a,{class:"f-item",onClick:t[4]||(t[4]=e=>me("type"))},{default:c(()=>[y(l,{class:"f-item-text"},{default:c(()=>[A(b(G.value),1)]),_:1}),y(u,{class:"f-item-arrow",src:U(T),mode:"aspectFit"},null,8,["src"])]),_:1}),y(a,{class:"f-item",onClick:t[5]||(t[5]=e=>me("ticket"))},{default:c(()=>[y(l,{class:"f-item-text"},{default:c(()=>[A(b(H.value),1)]),_:1}),y(u,{class:"f-item-arrow",src:U(T),mode:"aspectFit"},null,8,["src"])]),_:1})]),_:1}),"map"===X.value?(g(),n(a,{key:0,class:"map-wrap"},{default:c(()=>[y(i,{class:"main-map",latitude:J.value.latitude,longitude:J.value.longitude,markers:ve.value,scale:11,"show-location":"",onMarkertap:ge,onTap:ye},null,8,["latitude","longitude","markers"]),de.value?(g(),n(a,{key:0,class:"venue-sheet",onClick:t[7]||(t[7]=S(()=>{},["stop"]))},{default:c(()=>[y(a,{class:"venue-sheet-inner"},{default:c(()=>[y(a,{class:"sheet-bar"}),y(a,{class:"sheet-row"},{default:c(()=>[de.value.image?(g(),n(u,{key:0,class:"sheet-cover",src:de.value.image,mode:"aspectFill"},null,8,["src"])):(g(),n(a,{key:1,class:"sheet-cover sheet-cover-ph"})),y(a,{class:"sheet-main"},{default:c(()=>[y(l,{class:"sheet-name"},{default:c(()=>[A(b(de.value.name),1)]),_:1}),de.value.venue_type||de.value.ticket_type?(g(),n(a,{key:0,class:"sheet-meta"},{default:c(()=>[de.value.venue_type?(g(),n(l,{key:0,class:"sheet-type"},{default:c(()=>[A(b(ee[de.value.venue_type]||de.value.venue_type),1)]),_:1})):P("",!0),de.value.venue_type&&de.value.ticket_type?(g(),n(l,{key:1,class:"sheet-meta-sep"},{default:c(()=>[A("·")]),_:1})):P("",!0),de.value.ticket_type?(g(),n(l,{key:2,class:E(["sheet-ticket","paid"===de.value.ticket_type?"paid":"free"])},{default:c(()=>[A(b(ae(de.value.ticket_type)),1)]),_:1},8,["class"])):P("",!0)]),_:1})):P("",!0),y(l,{class:"sheet-addr"},{default:c(()=>[A(b(de.value.address||"地址待定"),1)]),_:1}),y(l,{class:"sheet-dist"},{default:c(()=>[A(b(fe.value),1)]),_:1})]),_:1})]),_:1}),y(a,{class:"sheet-actions"},{default:c(()=>[y(a,{class:"sheet-btn ghost",onClick:he},{default:c(()=>[A("关闭")]),_:1}),y(a,{class:"sheet-btn primary",onClick:t[6]||(t[6]=e=>ke(de.value.id))},{default:c(()=>[A("查看详情")]),_:1})]),_:1})]),_:1})]),_:1})):P("",!0)]),_:1})):(g(),n(o,{key:1,"scroll-y":"",class:"venue-list-scroll"},{default:c(()=>[(g(!0),w(I,null,C(re.value,e=>(g(),n(a,{key:e.id,class:"venue-row",onClick:t=>ke(e.id)},{default:c(()=>[e.image?(g(),n(u,{key:0,class:"venue-thumb",src:e.image,mode:"aspectFill"},null,8,["src"])):(g(),n(a,{key:1,class:"venue-thumb ph-img"})),y(a,{class:"venue-info"},{default:c(()=>[y(l,{class:"venue-name"},{default:c(()=>[A(b(e.name),1)]),_:2},1024),e.venue_type||e.ticket_type?(g(),n(a,{key:0,class:"venue-meta"},{default:c(()=>[e.venue_type?(g(),n(l,{key:0,class:"venue-type-pill"},{default:c(()=>[A(b(ee[e.venue_type]||e.venue_type),1)]),_:2},1024)):P("",!0),e.ticket_type?(g(),n(l,{key:1,class:E(["venue-ticket-pill","paid"===e.ticket_type?"paid":"free"])},{default:c(()=>[A(b(ae(e.ticket_type)),1)]),_:2},1032,["class"])):P("",!0)]),_:2},1024)):P("",!0),y(l,{class:"venue-addr"},{default:c(()=>[A(b(e.address||"-"),1)]),_:2},1024),y(l,{class:"venue-dist"},{default:c(()=>[A(b(pe(e)),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["onClick"]))),128)),re.value.length?P("",!0):(g(),n(a,{key:0,class:"empty-tip"},{default:c(()=>[A("暂无符合条件的场馆")]),_:1}))]),_:1}))]),_:1}),y(a,{class:"section"},{default:c(()=>[y(a,{class:"sec-head"},{default:c(()=>[y(a,{class:"sec-bar"}),y(l,{class:"sec-title"},{default:c(()=>[A("热门活动")]),_:1}),y(l,{class:"sec-more",onClick:be},{default:c(()=>[A("更多 >")]),_:1})]),_:1}),y(o,{"scroll-x":"",class:"act-scroll","show-scrollbar":!1,"enable-flex":!0},{default:c(()=>[y(a,{class:"act-scroll-row"},{default:c(()=>{var e;return[(g(!0),w(I,null,C((null==(e=j.value)?void 0:e.hot_activities)??[],e=>(g(),n(a,{key:e.id,class:"act-card",onClick:t=>{return a=e.id,void Q({url:`/pages/activity/detail?id=${a}`});var a}},{default:c(()=>[y(a,{class:"act-img-wrap"},{default:c(()=>[e.image?(g(),n(u,{key:0,class:"act-img",src:e.image,mode:"aspectFill"},null,8,["src"])):(g(),n(a,{key:1,class:"act-img-ph"})),y(a,{class:E(["act-book-badge",{"is-bookable":Ce(e)}])},{default:c(()=>[y(l,{class:E(["act-book-text",{"is-bookable":Ce(e)}])},{default:c(()=>[A(b(Se(e)),1)]),_:2},1032,["class"])]),_:2},1032,["class"])]),_:2},1024),y(a,{class:"act-body"},{default:c(()=>[y(l,{class:"act-title"},{default:c(()=>[A(b(e.title),1)]),_:2},1024),y(a,{class:"act-tags"},{default:c(()=>[(g(!0),w(I,null,C((e.tags||[]).slice(0,4),(t,a)=>(g(),n(l,{key:"tag-"+e.id+"-"+a,class:"act-tag-chip"},{default:c(()=>[A(b(t),1)]),_:2},1024))),128))]),_:2},1024),y(l,{class:"act-meta"},{default:c(()=>[A(b(Ie(e.start_at,e.end_at)),1)]),_:2},1024),y(l,{class:"act-meta"},{default:c(()=>[A(b(e.venue_name||e.address||"苏州"),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]}),_:1})]),_:1})]),_:1}),y(a,{class:"section"},{default:c(()=>{var e;return[y(a,{class:"sec-head"},{default:c(()=>[y(a,{class:"sec-bar"}),y(l,{class:"sec-title"},{default:c(()=>[A("苏州市科普研学线路")]),_:1}),y(l,{class:"sec-more",onClick:we},{default:c(()=>[A("更多 >")]),_:1})]),_:1}),(g(!0),w(I,null,C((null==(e=j.value)?void 0:e.study_tours)??[],e=>(g(),n(a,{key:e.id,class:"tour-card",onClick:t=>{return a=e.id,void Q({url:`/pages/study-tour/detail?id=${a}`});var a}},{default:c(()=>[y(a,{class:"tour-img-wrap"},{default:c(()=>[e.cover_image?(g(),n(u,{key:0,class:"tour-img",src:e.cover_image,mode:"aspectFill"},null,8,["src"])):(g(),n(a,{key:1,class:"tour-img tour-ph"})),y(a,{class:"tour-overlay-title-wrap"},{default:c(()=>[y(l,{class:"tour-overlay-title"},{default:c(()=>[A(b(e.name),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),y(a,{class:"tour-body"},{default:c(()=>{var t;return[y(l,{class:"tour-title"},{default:c(()=>[A(b(e.name),1)]),_:2},1024),y(a,{class:"tour-stops-timeline"},{default:c(()=>[(g(!0),w(I,null,C(e.venue_names,(t,s)=>(g(),n(a,{key:"v-"+e.id+"-"+s,class:"tour-stop-row"},{default:c(()=>[y(a,{class:"tour-timeline-axis"},{default:c(()=>[y(a,{class:"tour-dot-cell"},{default:c(()=>[y(a,{class:"tour-tl-dot"})]),_:1}),s[A(b(t),1)]),_:2},1024)]),_:2},1024))),128))]),_:2},1024),(null==(t=e.tags)?void 0:t.length)?(g(),n(a,{key:0,class:"tour-tags-row"},{default:c(()=>[(g(!0),w(I,null,C(e.tags,(t,a)=>(g(),n(l,{key:"t-"+e.id+"-"+a,class:"tour-tag"},{default:c(()=>[A(b(t),1)]),_:2},1024))),128))]),_:2},1024)):P("",!0)]}),_:2},1024)]),_:2},1032,["onClick"]))),128))]}),_:1}),y(a,{class:"bottom-safe"}),V.value?(g(),n(a,{key:0,class:"loading-mask"},{default:c(()=>[A("加载中...")]),_:1})):P("",!0)]),_:1})}}}),[["__scopeId","data-v-0aefad02"]]);export{X as default}; diff --git a/public/h5/assets/pages-map-index.y7DvJciF.js b/public/h5/assets/pages-map-index.CddKnaMv.js similarity index 97% rename from public/h5/assets/pages-map-index.y7DvJciF.js rename to public/h5/assets/pages-map-index.CddKnaMv.js index c545b60..ff2acb6 100644 --- a/public/h5/assets/pages-map-index.y7DvJciF.js +++ b/public/h5/assets/pages-map-index.CddKnaMv.js @@ -1 +1 @@ -import{d as e,r as a,c as t,o as l,a as s,b as i,p as u,m as r,n as c,t as n,u as o,v as d,F as v,x as p,A as f,E as m,D as _}from"./index-Cu9ZRBys.js";import{g as y}from"./content.SYmDdoIV.js";import{_ as k}from"./_plugin-vue_export-helper.BCo6x5W8.js";const T=k(e({__name:"index",setup(e){const k=a([]),T=a({district:"全部区域",venueType:"全部类型",ticketType:"全部"}),g=a(["全部区域"]),x=a(["全部类型"]),w=a(["全部"]),C=t(()=>k.value.filter(e=>{const a="全部区域"===T.value.district||(e.district||"")===T.value.district,t="全部类型"===T.value.venueType||(e.venue_type||"")===T.value.venueType,l="全部"===T.value.ticketType||(e.ticket_type||"")===T.value.ticketType;return a&&t&&l}));function h(e,a){_({itemList:a,success(t){T.value[e]=a[t.tapIndex]}})}return l(async function(){const e=await y();k.value=e||[],g.value=["全部区域",...Array.from(new Set(k.value.map(e=>e.district).filter(Boolean)))],x.value=["全部类型",...Array.from(new Set(k.value.map(e=>e.venue_type).filter(Boolean)))],w.value=["全部",...Array.from(new Set(k.value.map(e=>e.ticket_type).filter(Boolean)))]}),(e,a)=>{const t=u,l=f;return r(),s(t,{class:"page"},{default:i(()=>[c(t,{class:"head"},{default:i(()=>[n("科普场馆")]),_:1}),c(t,{class:"filter-row"},{default:i(()=>[c(t,{class:"filter-item",onClick:a[0]||(a[0]=e=>h("district",g.value))},{default:i(()=>[n(o(T.value.district),1)]),_:1}),c(t,{class:"filter-item",onClick:a[1]||(a[1]=e=>h("venueType",x.value))},{default:i(()=>[n(o(T.value.venueType),1)]),_:1}),c(t,{class:"filter-item",onClick:a[2]||(a[2]=e=>h("ticketType",w.value))},{default:i(()=>[n(o(T.value.ticketType),1)]),_:1})]),_:1}),c(t,{class:"list"},{default:i(()=>[(r(!0),d(v,null,p(C.value,e=>(r(),s(t,{key:e.id,class:"item",onClick:a=>{return t=e.id,void m({url:`/pages/venue/detail?id=${t}`});var t}},{default:i(()=>[e.cover_image?(r(),s(l,{key:0,class:"img",src:e.cover_image,mode:"aspectFill"},null,8,["src"])):(r(),s(t,{key:1,class:"img placeholder"})),c(t,{class:"body"},{default:i(()=>[c(t,{class:"name"},{default:i(()=>[n(o(e.name),1)]),_:2},1024),c(t,{class:"addr"},{default:i(()=>[n(o(e.address||"-"),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1})}}}),[["__scopeId","data-v-96872a55"]]);export{T as default}; +import{d as e,r as a,c as t,o as l,a as s,b as i,p as u,m as r,n as c,t as n,u as o,v as d,F as v,x as p,A as f,E as m,D as _}from"./index-DNch_z6T.js";import{g as y}from"./content.ztt6U5do.js";import{_ as k}from"./_plugin-vue_export-helper.BCo6x5W8.js";const T=k(e({__name:"index",setup(e){const k=a([]),T=a({district:"全部区域",venueType:"全部类型",ticketType:"全部"}),g=a(["全部区域"]),x=a(["全部类型"]),w=a(["全部"]),C=t(()=>k.value.filter(e=>{const a="全部区域"===T.value.district||(e.district||"")===T.value.district,t="全部类型"===T.value.venueType||(e.venue_type||"")===T.value.venueType,l="全部"===T.value.ticketType||(e.ticket_type||"")===T.value.ticketType;return a&&t&&l}));function h(e,a){_({itemList:a,success(t){T.value[e]=a[t.tapIndex]}})}return l(async function(){const e=await y();k.value=e||[],g.value=["全部区域",...Array.from(new Set(k.value.map(e=>e.district).filter(Boolean)))],x.value=["全部类型",...Array.from(new Set(k.value.map(e=>e.venue_type).filter(Boolean)))],w.value=["全部",...Array.from(new Set(k.value.map(e=>e.ticket_type).filter(Boolean)))]}),(e,a)=>{const t=u,l=f;return r(),s(t,{class:"page"},{default:i(()=>[c(t,{class:"head"},{default:i(()=>[n("科普场馆")]),_:1}),c(t,{class:"filter-row"},{default:i(()=>[c(t,{class:"filter-item",onClick:a[0]||(a[0]=e=>h("district",g.value))},{default:i(()=>[n(o(T.value.district),1)]),_:1}),c(t,{class:"filter-item",onClick:a[1]||(a[1]=e=>h("venueType",x.value))},{default:i(()=>[n(o(T.value.venueType),1)]),_:1}),c(t,{class:"filter-item",onClick:a[2]||(a[2]=e=>h("ticketType",w.value))},{default:i(()=>[n(o(T.value.ticketType),1)]),_:1})]),_:1}),c(t,{class:"list"},{default:i(()=>[(r(!0),d(v,null,p(C.value,e=>(r(),s(t,{key:e.id,class:"item",onClick:a=>{return t=e.id,void m({url:`/pages/venue/detail?id=${t}`});var t}},{default:i(()=>[e.cover_image?(r(),s(l,{key:0,class:"img",src:e.cover_image,mode:"aspectFill"},null,8,["src"])):(r(),s(t,{key:1,class:"img placeholder"})),c(t,{class:"body"},{default:i(()=>[c(t,{class:"name"},{default:i(()=>[n(o(e.name),1)]),_:2},1024),c(t,{class:"addr"},{default:i(()=>[n(o(e.address||"-"),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1})}}}),[["__scopeId","data-v-96872a55"]]);export{T as default}; diff --git a/public/h5/assets/pages-mine-index.JeDX1I_H.js b/public/h5/assets/pages-mine-index.C7_Vjjk5.js similarity index 94% rename from public/h5/assets/pages-mine-index.JeDX1I_H.js rename to public/h5/assets/pages-mine-index.C7_Vjjk5.js index 5392f06..af6cebb 100644 --- a/public/h5/assets/pages-mine-index.JeDX1I_H.js +++ b/public/h5/assets/pages-mine-index.C7_Vjjk5.js @@ -1 +1 @@ -import{d as a,a as e,b as s,p as l,m as t,n as u,t as d,A as n,q as f,E as r}from"./index-Cu9ZRBys.js";import{_}from"./_plugin-vue_export-helper.BCo6x5W8.js";const c=_(a({__name:"index",setup(a){function _(){r({url:"/pages/mine/orders"})}return(a,r)=>{const c=l,o=n,p=f;return t(),e(c,{class:"page"},{default:s(()=>[u(c,{class:"header"},{default:s(()=>[u(c,{class:"header-title"},{default:s(()=>[d("个人中心")]),_:1}),u(c,{class:"profile"},{default:s(()=>[u(o,{class:"avatar",src:"https://picsum.photos/120/120?random=11",mode:"aspectFill"}),u(c,{class:"profile-info"},{default:s(()=>[u(c,{class:"name"},{default:s(()=>[d("苏青")]),_:1}),u(c,{class:"phone"},{default:s(()=>[d("188****0302")]),_:1})]),_:1})]),_:1})]),_:1}),u(c,{class:"panel"},{default:s(()=>[u(c,{class:"menu-item"},{default:s(()=>[u(p,null,{default:s(()=>[d("我的信息")]),_:1}),u(p,null,{default:s(()=>[d(">")]),_:1})]),_:1}),u(c,{class:"menu-item",onClick:_},{default:s(()=>[u(p,null,{default:s(()=>[d("预约记录")]),_:1}),u(p,null,{default:s(()=>[d(">")]),_:1})]),_:1})]),_:1})]),_:1})}}}),[["__scopeId","data-v-edb151ca"]]);export{c as default}; +import{d as a,a as e,b as s,p as l,m as t,n as u,t as d,A as n,q as f,E as r}from"./index-DNch_z6T.js";import{_}from"./_plugin-vue_export-helper.BCo6x5W8.js";const c=_(a({__name:"index",setup(a){function _(){r({url:"/pages/mine/orders"})}return(a,r)=>{const c=l,o=n,p=f;return t(),e(c,{class:"page"},{default:s(()=>[u(c,{class:"header"},{default:s(()=>[u(c,{class:"header-title"},{default:s(()=>[d("个人中心")]),_:1}),u(c,{class:"profile"},{default:s(()=>[u(o,{class:"avatar",src:"https://picsum.photos/120/120?random=11",mode:"aspectFill"}),u(c,{class:"profile-info"},{default:s(()=>[u(c,{class:"name"},{default:s(()=>[d("苏青")]),_:1}),u(c,{class:"phone"},{default:s(()=>[d("188****0302")]),_:1})]),_:1})]),_:1})]),_:1}),u(c,{class:"panel"},{default:s(()=>[u(c,{class:"menu-item"},{default:s(()=>[u(p,null,{default:s(()=>[d("我的信息")]),_:1}),u(p,null,{default:s(()=>[d(">")]),_:1})]),_:1}),u(c,{class:"menu-item",onClick:_},{default:s(()=>[u(p,null,{default:s(()=>[d("预约记录")]),_:1}),u(p,null,{default:s(()=>[d(">")]),_:1})]),_:1})]),_:1})]),_:1})}}}),[["__scopeId","data-v-edb151ca"]]);export{c as default}; diff --git a/public/h5/assets/pages-mine-orders.Ca-piMNi.js b/public/h5/assets/pages-mine-orders.CVyOZOlW.js similarity index 96% rename from public/h5/assets/pages-mine-orders.Ca-piMNi.js rename to public/h5/assets/pages-mine-orders.CVyOZOlW.js index e1052d0..806be64 100644 --- a/public/h5/assets/pages-mine-orders.Ca-piMNi.js +++ b/public/h5/assets/pages-mine-orders.CVyOZOlW.js @@ -1 +1 @@ -import{d as a,r as e,c as l,a as t,b as s,p as i,m as n,n as c,t as u,I as d,H as o,u as r,z as v,v as f,F as _,x as p,y as m,e as g,E as h,f as y}from"./index-Cu9ZRBys.js";import{c as k,d as C}from"./content.SYmDdoIV.js";import{_ as b}from"./_plugin-vue_export-helper.BCo6x5W8.js";const x=b(a({__name:"orders",setup(a){const b=e(""),x=e([]),w=e(!1),$=e("all"),j=l(()=>"all"===$.value?x.value:x.value.filter(a=>a.status===$.value));function V(a){return"pending"===a?"待核销":"verified"===a?"已核销":"cancelled"===a?"已取消":a||"-"}async function I(){if(/^1\d{10}$/.test(b.value)){w.value=!0;try{x.value=await k(b.value)}catch(a){g({title:(null==a?void 0:a.message)||"加载失败",icon:"none"})}finally{w.value=!1}}else g({title:"请输入11位手机号",icon:"none"})}return(a,e)=>{const l=i,k=d,x=o;return n(),t(l,{class:"page"},{default:s(()=>[c(l,{class:"card"},{default:s(()=>[c(l,{class:"title"},{default:s(()=>[u("我的活动预约")]),_:1}),c(l,{class:"row"},{default:s(()=>[c(k,{modelValue:b.value,"onUpdate:modelValue":e[0]||(e[0]=a=>b.value=a),class:"ipt",type:"number",maxlength:"11",placeholder:"输入预约手机号查询"},null,8,["modelValue"]),c(x,{class:"btn",onClick:I},{default:s(()=>[u(r(w.value?"查询中":"查询"),1)]),_:1})]),_:1}),c(l,{class:"filters"},{default:s(()=>[c(l,{class:v(["chip",{active:"all"===$.value}]),onClick:e[1]||(e[1]=a=>$.value="all")},{default:s(()=>[u("全部")]),_:1},8,["class"]),c(l,{class:v(["chip",{active:"pending"===$.value}]),onClick:e[2]||(e[2]=a=>$.value="pending")},{default:s(()=>[u("待核销")]),_:1},8,["class"]),c(l,{class:v(["chip",{active:"verified"===$.value}]),onClick:e[3]||(e[3]=a=>$.value="verified")},{default:s(()=>[u("已核销")]),_:1},8,["class"]),c(l,{class:v(["chip",{active:"cancelled"===$.value}]),onClick:e[4]||(e[4]=a=>$.value="cancelled")},{default:s(()=>[u("已取消")]),_:1},8,["class"])]),_:1})]),_:1}),(n(!0),f(_,null,p(j.value,a=>(n(),t(l,{key:a.id,class:"order-card"},{default:s(()=>[c(l,{class:"order-top"},{default:s(()=>{return[c(l,{class:"t"},{default:s(()=>{var e;return[u(r((null==(e=a.activity)?void 0:e.title)||"-"),1)]}),_:2},1024),c(l,{class:v(["status",(e=a.status,"pending"===e?"pending":"verified"===e?"verified":"cancelled")])},{default:s(()=>[u(r(V(a.status)),1)]),_:2},1032,["class"])];var e}),_:2},1024),c(l,{class:"line"},{default:s(()=>{var e;return[u("订单信息:"+r((null==(e=a.activity_day)?void 0:e.activity_date)||"-")+" | "+r(a.ticket_count||1)+"人",1)]}),_:2},1024),c(l,{class:"line"},{default:s(()=>[u("联系人:"+r(a.visitor_name||"-")+" | "+r(a.visitor_phone||"-"),1)]),_:2},1024),c(l,{class:"line"},{default:s(()=>[u("下单时间:"+r((a.created_at||"").replace("T"," ").slice(0,16)||"-"),1)]),_:2},1024),c(l,{class:"actions"},{default:s(()=>[c(x,{class:"btn-light mini",disabled:"pending"!==a.status,onClick:m(e=>async function(a){if(!/^1\d{10}$/.test(b.value))return;if((await y({title:"确认取消预约",content:"取消后将释放该日期名额,是否继续?",confirmText:"确认取消",confirmColor:"#ff7d00"})).confirm)try{await C(a,b.value),g({title:"取消成功",icon:"success"}),await I()}catch(e){g({title:(null==e?void 0:e.message)||"取消失败",icon:"none"})}}(a.id),["stop"])},{default:s(()=>[u("取消")]),_:2},1032,["disabled","onClick"]),c(x,{class:"btn-main mini",onClick:m(e=>{return l=a.id,void(/^1\d{10}$/.test(b.value)?h({url:`/pages/mine/reservation-detail?id=${l}&phone=${b.value}`}):g({title:"请先输入手机号",icon:"none"}));var l},["stop"])},{default:s(()=>[u("查看详情")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024))),128))]),_:1})}}}),[["__scopeId","data-v-110b086c"]]);export{x as default}; +import{d as a,r as e,c as l,a as t,b as s,p as i,m as n,n as c,t as u,I as d,H as o,u as r,z as v,v as f,F as _,x as p,y as m,e as g,E as h,f as y}from"./index-DNch_z6T.js";import{c as k,d as C}from"./content.ztt6U5do.js";import{_ as b}from"./_plugin-vue_export-helper.BCo6x5W8.js";const x=b(a({__name:"orders",setup(a){const b=e(""),x=e([]),w=e(!1),$=e("all"),j=l(()=>"all"===$.value?x.value:x.value.filter(a=>a.status===$.value));function V(a){return"pending"===a?"待核销":"verified"===a?"已核销":"cancelled"===a?"已取消":a||"-"}async function I(){if(/^1\d{10}$/.test(b.value)){w.value=!0;try{x.value=await k(b.value)}catch(a){g({title:(null==a?void 0:a.message)||"加载失败",icon:"none"})}finally{w.value=!1}}else g({title:"请输入11位手机号",icon:"none"})}return(a,e)=>{const l=i,k=d,x=o;return n(),t(l,{class:"page"},{default:s(()=>[c(l,{class:"card"},{default:s(()=>[c(l,{class:"title"},{default:s(()=>[u("我的活动预约")]),_:1}),c(l,{class:"row"},{default:s(()=>[c(k,{modelValue:b.value,"onUpdate:modelValue":e[0]||(e[0]=a=>b.value=a),class:"ipt",type:"number",maxlength:"11",placeholder:"输入预约手机号查询"},null,8,["modelValue"]),c(x,{class:"btn",onClick:I},{default:s(()=>[u(r(w.value?"查询中":"查询"),1)]),_:1})]),_:1}),c(l,{class:"filters"},{default:s(()=>[c(l,{class:v(["chip",{active:"all"===$.value}]),onClick:e[1]||(e[1]=a=>$.value="all")},{default:s(()=>[u("全部")]),_:1},8,["class"]),c(l,{class:v(["chip",{active:"pending"===$.value}]),onClick:e[2]||(e[2]=a=>$.value="pending")},{default:s(()=>[u("待核销")]),_:1},8,["class"]),c(l,{class:v(["chip",{active:"verified"===$.value}]),onClick:e[3]||(e[3]=a=>$.value="verified")},{default:s(()=>[u("已核销")]),_:1},8,["class"]),c(l,{class:v(["chip",{active:"cancelled"===$.value}]),onClick:e[4]||(e[4]=a=>$.value="cancelled")},{default:s(()=>[u("已取消")]),_:1},8,["class"])]),_:1})]),_:1}),(n(!0),f(_,null,p(j.value,a=>(n(),t(l,{key:a.id,class:"order-card"},{default:s(()=>[c(l,{class:"order-top"},{default:s(()=>{return[c(l,{class:"t"},{default:s(()=>{var e;return[u(r((null==(e=a.activity)?void 0:e.title)||"-"),1)]}),_:2},1024),c(l,{class:v(["status",(e=a.status,"pending"===e?"pending":"verified"===e?"verified":"cancelled")])},{default:s(()=>[u(r(V(a.status)),1)]),_:2},1032,["class"])];var e}),_:2},1024),c(l,{class:"line"},{default:s(()=>{var e;return[u("订单信息:"+r((null==(e=a.activity_day)?void 0:e.activity_date)||"-")+" | "+r(a.ticket_count||1)+"人",1)]}),_:2},1024),c(l,{class:"line"},{default:s(()=>[u("联系人:"+r(a.visitor_name||"-")+" | "+r(a.visitor_phone||"-"),1)]),_:2},1024),c(l,{class:"line"},{default:s(()=>[u("下单时间:"+r((a.created_at||"").replace("T"," ").slice(0,16)||"-"),1)]),_:2},1024),c(l,{class:"actions"},{default:s(()=>[c(x,{class:"btn-light mini",disabled:"pending"!==a.status,onClick:m(e=>async function(a){if(!/^1\d{10}$/.test(b.value))return;if((await y({title:"确认取消预约",content:"取消后将释放该日期名额,是否继续?",confirmText:"确认取消",confirmColor:"#ff7d00"})).confirm)try{await C(a,b.value),g({title:"取消成功",icon:"success"}),await I()}catch(e){g({title:(null==e?void 0:e.message)||"取消失败",icon:"none"})}}(a.id),["stop"])},{default:s(()=>[u("取消")]),_:2},1032,["disabled","onClick"]),c(x,{class:"btn-main mini",onClick:m(e=>{return l=a.id,void(/^1\d{10}$/.test(b.value)?h({url:`/pages/mine/reservation-detail?id=${l}&phone=${b.value}`}):g({title:"请先输入手机号",icon:"none"}));var l},["stop"])},{default:s(()=>[u("查看详情")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024))),128))]),_:1})}}}),[["__scopeId","data-v-110b086c"]]);export{x as default}; diff --git a/public/h5/assets/pages-mine-reservation-detail.DZe9vJBg.js b/public/h5/assets/pages-mine-reservation-detail.BFqxpPGd.js similarity index 96% rename from public/h5/assets/pages-mine-reservation-detail.DZe9vJBg.js rename to public/h5/assets/pages-mine-reservation-detail.BFqxpPGd.js index daa9f7f..1643abd 100644 --- a/public/h5/assets/pages-mine-reservation-detail.DZe9vJBg.js +++ b/public/h5/assets/pages-mine-reservation-detail.BFqxpPGd.js @@ -1 +1 @@ -import{d as t,r as e,J as n,a as r,b as o,e as i,p as a,m as s,n as u,t as l,u as c,v as f,F as d,x as h,q as g,A as p,C as v,H as m,Z as w,f as y}from"./index-Cu9ZRBys.js";import{i as E,d as A}from"./content.SYmDdoIV.js";import{_ as C}from"./_plugin-vue_export-helper.BCo6x5W8.js";var B={},I={},M={};let T;const N=[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];M.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},M.getSymbolTotalCodewords=function(t){return N[t]},M.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},M.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');T=t},M.isKanjiModeEnabled=function(){return void 0!==T},M.toSJIS=function(t){return T(t)};var b,P={};function R(){this.buffer=[],this.length=0}(b=P).L={bit:1},b.M={bit:0},b.Q={bit:3},b.H={bit:2},b.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},b.from=function(t,e){if(b.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 b.L;case"m":case"medium":return b.M;case"q":case"quartile":return b.Q;case"h":case"high":return b.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(n){return e}},R.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 _=R;function L(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)}L.prototype.set=function(t,e,n,r){const o=t*this.size+e;this.data[o]=n,r&&(this.reservedBit[o]=!0)},L.prototype.get=function(t,e){return this.data[t*this.size+e]},L.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n},L.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var x=L,U={};!function(t){const e=M.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 Q=O,$={},Z={},X={isValid:function(t){return!isNaN(t)&&t>=1&&t<=40}},W={};const G="[0-9]+";let tt="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";tt=tt.replace(/u/g,"\\u");const et="(?:(?![A-Z0-9 $%*+\\-./:]|"+tt+")(?:.|[\r\n]))+";W.KANJI=new RegExp(tt,"g"),W.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),W.BYTE=new RegExp(et,"g"),W.NUMERIC=new RegExp(G,"g"),W.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const nt=new RegExp("^"+tt+"$"),rt=new RegExp("^"+G+"$"),ot=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");W.testKanji=function(t){return nt.test(t)},W.testNumeric=function(t){return rt.test(t)},W.testAlphanumeric=function(t){return ot.test(t)},function(t){const e=X,n=W;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}}}(Z),function(t){const e=M,n=D,r=P,o=Z,i=X,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 ft=ct;const dt=Z,ht=["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 gt(t){this.mode=dt.ALPHANUMERIC,this.data=t}gt.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},gt.prototype.getLength=function(){return this.data.length},gt.prototype.getBitsLength=function(){return gt.getBitsLength(this.data.length)},gt.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let n=45*ht.indexOf(this.data[e]);n+=ht.indexOf(this.data[e+1]),t.put(n,11)}this.data.length%2&&t.put(ht.indexOf(this.data[e]),6)};var pt=gt;const vt=Z;function mt(t){this.mode=vt.BYTE,this.data="string"==typeof t?(new TextEncoder).encode(t):new Uint8Array(t)}mt.getBitsLength=function(t){return 8*t},mt.prototype.getLength=function(){return this.data.length},mt.prototype.getBitsLength=function(){return mt.getBitsLength(this.data.length)},mt.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 Ct,Bt=At,It={exports:{}},Mt=It.exports=Ct={single_source_shortest_paths:function(t,e,n){var r={},o={};o[e]=0;var i,a,s,u,l,c,f,d=Ct.PriorityQueue.make();for(d.push(e,0);!d.empty();)for(s in a=(i=d.pop()).value,u=i.cost,l=t[a]||{})l.hasOwnProperty(s)&&(c=u+l[s],f=o[s],(void 0===o[s]||f>c)&&(o[s]=c,d.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=Ct.single_source_shortest_paths(t,e,n);return Ct.extract_shortest_path_from_predecessor_list(r,n)},PriorityQueue:{make:function(t){var e,n=Ct.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=Z,n=ft,r=pt,o=wt,i=Bt,a=W,s=M,u=Mt;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 f(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 d(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(f(e,s.isKanjiModeEnabled()))}}(ut);const Tt=M,Nt=P,bt=_,Pt=x,Rt=U,_t=S,Lt=F,xt=D,Ut=Q,St=$,kt=it,Ft=Z,Dt=ut;function zt(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 Ht(t,e,n){const r=new bt;n.forEach(function(e){r.put(e.mode.bit,4),r.put(e.getLength(),Ft.getCharCountIndicator(e.mode,t)),e.write(r)});const o=8*(Tt.getSymbolTotalCodewords(t)-xt.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=St.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=Lt.getBestMask(u,zt.bind(null,u,n))),Lt.applyMask(r,u),zt(u,n,r),{modules:u,version:e,errorCorrectionLevel:n,maskPattern:r,segments:o}}I.create=function(t,e){if(void 0===t||""===t)throw new Error("No input text");let n,r,o=Nt.M;return void 0!==e&&(o=Nt.from(e.errorCorrectionLevel,Nt.M),n=St.from(e.version),r=Lt.from(e.maskPattern),e.toSJISFunc&&Tt.setToSJISFunction(e.toSJISFunc)),Jt(t,n,o,r)};var Kt={},Yt={};!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?Ot("M",u+n,.5+l+n):Ot("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 Qt=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then},$t=I,Zt=Kt,Xt=qt;function Wt(t,e,n,r,o){const i=[].slice.call(arguments,1),a=i.length,s="function"==typeof i[a-1];if(!s&&!Qt())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=$t.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=$t.create(n,r);o(null,t(i,e,r))}catch(u){o(u)}}B.create=$t.create,B.toCanvas=Wt.bind(null,Zt.render),B.toDataURL=Wt.bind(null,Zt.renderToDataURL),B.toString=Wt.bind(null,function(t,e,n){return Xt.render(t,n)});const Gt=C(t({__name:"reservation-detail",setup(t){const C=e(null),I=e(""),M=e(!1),T=e(!1),N=e("");const b=e([]);function P(){var t;const e=(null==(t=C.value)?void 0:t.qr_token)||"";e&&w({data:e})}async function R(t){if(t&&I.value){M.value=!0;try{C.value=await E(t,I.value),await async function(){var t;const e=null==(t=C.value)?void 0:t.qr_token;if(e)try{N.value=await B.toDataURL(e,{width:320,margin:1,errorCorrectionLevel:"M"})}catch{N.value=""}else N.value=""}(),function(){var t,e;const n=Math.max(1,Number((null==(t=C.value)?void 0:t.ticket_count)||1)),r=(null==(e=C.value)?void 0:e.visitor_name)||"观众";b.value=Array.from({length:n},(t,e)=>({label:1===n?r:`${r}${e+1}`,qr:N.value}))}()}catch(e){i({title:(null==e?void 0:e.message)||"加载详情失败",icon:"none"})}finally{M.value=!1}}}async function _(){var t;if(!(null==(t=C.value)?void 0:t.id)||!I.value)return;if("pending"!==C.value.status)return void i({title:"当前状态不可取消",icon:"none"});if((await y({title:"确认取消预约",content:"取消后将释放该日期占用名额,是否继续?",confirmText:"确认取消",confirmColor:"#ff7d00"})).confirm){T.value=!0;try{await A(C.value.id,I.value),i({title:"取消成功",icon:"success"}),await R(C.value.id)}catch(e){i({title:(null==e?void 0:e.message)||"取消失败",icon:"none"})}finally{T.value=!1}}}return n(t=>{const e=Number((null==t?void 0:t.id)||0);I.value=String((null==t?void 0:t.phone)||""),R(e)}),(t,e)=>{const n=a,i=g,w=p,y=m;return s(),r(n,{class:"page"},{default:o(()=>{var t;return[u(n,{class:"card"},{default:o(()=>[u(n,{class:"title"},{default:o(()=>{var t,e;return[l(c((null==(e=null==(t=C.value)?void 0:t.activity)?void 0:e.title)||"-"),1)]}),_:1}),u(n,{class:"meta"},{default:o(()=>{var t;return[l("预约编号:"+c((null==(t=C.value)?void 0:t.id)||"-"),1)]}),_:1}),u(n,{class:"meta"},{default:o(()=>{var t,e;return[l("场馆:"+c((null==(e=null==(t=C.value)?void 0:t.venue)?void 0:e.name)||"-"),1)]}),_:1}),u(n,{class:"meta"},{default:o(()=>{var t,e;return[l("预约日期:"+c((null==(e=null==(t=C.value)?void 0:t.activity_day)?void 0:e.activity_date)||"-"),1)]}),_:1}),u(n,{class:"meta"},{default:o(()=>{var t,e;return[l("状态:"+c((e=null==(t=C.value)?void 0:t.status,"pending"===e?"待核销":"verified"===e?"已核销":"cancelled"===e?"已取消":e||"-")),1)]}),_:1}),u(n,{class:"meta"},{default:o(()=>{var t;return[l("报名人:"+c((null==(t=C.value)?void 0:t.visitor_name)||"-"),1)]}),_:1}),u(n,{class:"meta"},{default:o(()=>{var t;return[l("手机:"+c((null==(t=C.value)?void 0:t.visitor_phone)||"-"),1)]}),_:1})]),_:1}),(null==(t=C.value)?void 0:t.qr_token)?(s(),r(n,{key:0,class:"card"},{default:o(()=>[u(n,{class:"sub-title"},{default:o(()=>[l("可扫入馆码")]),_:1}),(s(!0),f(d,null,h(b.value,(t,e)=>(s(),r(n,{class:"ticket",key:e},{default:o(()=>[u(n,{class:"ticket-head"},{default:o(()=>[u(i,null,{default:o(()=>{var t;return[l("入馆码:"+c(null==(t=C.value)?void 0:t.id)+" "+c(e+1),1)]}),_:2},1024),u(i,{class:"copy",onClick:P},{default:o(()=>[l("复制")]),_:1})]),_:2},1024),t.qr?(s(),r(w,{key:0,class:"qr",src:t.qr,mode:"aspectFit"},null,8,["src"])):(s(),r(n,{key:1,class:"tip"},{default:o(()=>[l("二维码生成中...")]),_:1})),u(n,{class:"qr-name"},{default:o(()=>[l(c(t.label),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})):v("",!0),u(n,{class:"action"},{default:o(()=>{var t;return[u(y,{class:"btn",disabled:"pending"!==(null==(t=C.value)?void 0:t.status)||T.value||M.value,onClick:_},{default:o(()=>[l(c(T.value?"取消中...":"取消预约"),1)]),_:1},8,["disabled"])]}),_:1})]}),_:1})}}}),[["__scopeId","data-v-f3245868"]]);export{Gt as default}; +import{d as t,r as e,J as n,a as r,b as o,e as i,p as a,m as s,n as u,t as l,u as c,v as f,F as d,x as h,q as g,A as p,C as v,H as m,Y as w,f as y}from"./index-DNch_z6T.js";import{i as E,d as A}from"./content.ztt6U5do.js";import{_ as C}from"./_plugin-vue_export-helper.BCo6x5W8.js";var B={},I={},M={};let T;const N=[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];M.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},M.getSymbolTotalCodewords=function(t){return N[t]},M.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},M.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');T=t},M.isKanjiModeEnabled=function(){return void 0!==T},M.toSJIS=function(t){return T(t)};var b,P={};function R(){this.buffer=[],this.length=0}(b=P).L={bit:1},b.M={bit:0},b.Q={bit:3},b.H={bit:2},b.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},b.from=function(t,e){if(b.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 b.L;case"m":case"medium":return b.M;case"q":case"quartile":return b.Q;case"h":case"high":return b.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(n){return e}},R.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 _=R;function L(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)}L.prototype.set=function(t,e,n,r){const o=t*this.size+e;this.data[o]=n,r&&(this.reservedBit[o]=!0)},L.prototype.get=function(t,e){return this.data[t*this.size+e]},L.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n},L.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var x=L,U={};!function(t){const e=M.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 Q=O,$={},Z={},X={isValid:function(t){return!isNaN(t)&&t>=1&&t<=40}},W={};const G="[0-9]+";let tt="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";tt=tt.replace(/u/g,"\\u");const et="(?:(?![A-Z0-9 $%*+\\-./:]|"+tt+")(?:.|[\r\n]))+";W.KANJI=new RegExp(tt,"g"),W.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),W.BYTE=new RegExp(et,"g"),W.NUMERIC=new RegExp(G,"g"),W.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const nt=new RegExp("^"+tt+"$"),rt=new RegExp("^"+G+"$"),ot=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");W.testKanji=function(t){return nt.test(t)},W.testNumeric=function(t){return rt.test(t)},W.testAlphanumeric=function(t){return ot.test(t)},function(t){const e=X,n=W;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}}}(Z),function(t){const e=M,n=D,r=P,o=Z,i=X,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 ft=ct;const dt=Z,ht=["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 gt(t){this.mode=dt.ALPHANUMERIC,this.data=t}gt.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},gt.prototype.getLength=function(){return this.data.length},gt.prototype.getBitsLength=function(){return gt.getBitsLength(this.data.length)},gt.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let n=45*ht.indexOf(this.data[e]);n+=ht.indexOf(this.data[e+1]),t.put(n,11)}this.data.length%2&&t.put(ht.indexOf(this.data[e]),6)};var pt=gt;const vt=Z;function mt(t){this.mode=vt.BYTE,this.data="string"==typeof t?(new TextEncoder).encode(t):new Uint8Array(t)}mt.getBitsLength=function(t){return 8*t},mt.prototype.getLength=function(){return this.data.length},mt.prototype.getBitsLength=function(){return mt.getBitsLength(this.data.length)},mt.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 Ct,Bt=At,It={exports:{}},Mt=It.exports=Ct={single_source_shortest_paths:function(t,e,n){var r={},o={};o[e]=0;var i,a,s,u,l,c,f,d=Ct.PriorityQueue.make();for(d.push(e,0);!d.empty();)for(s in a=(i=d.pop()).value,u=i.cost,l=t[a]||{})l.hasOwnProperty(s)&&(c=u+l[s],f=o[s],(void 0===o[s]||f>c)&&(o[s]=c,d.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=Ct.single_source_shortest_paths(t,e,n);return Ct.extract_shortest_path_from_predecessor_list(r,n)},PriorityQueue:{make:function(t){var e,n=Ct.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=Z,n=ft,r=pt,o=wt,i=Bt,a=W,s=M,u=Mt;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 f(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 d(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(f(e,s.isKanjiModeEnabled()))}}(ut);const Tt=M,Nt=P,bt=_,Pt=x,Rt=U,_t=S,Lt=F,xt=D,Ut=Q,St=$,kt=it,Ft=Z,Dt=ut;function zt(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 Ht(t,e,n){const r=new bt;n.forEach(function(e){r.put(e.mode.bit,4),r.put(e.getLength(),Ft.getCharCountIndicator(e.mode,t)),e.write(r)});const o=8*(Tt.getSymbolTotalCodewords(t)-xt.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=St.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=Lt.getBestMask(u,zt.bind(null,u,n))),Lt.applyMask(r,u),zt(u,n,r),{modules:u,version:e,errorCorrectionLevel:n,maskPattern:r,segments:o}}I.create=function(t,e){if(void 0===t||""===t)throw new Error("No input text");let n,r,o=Nt.M;return void 0!==e&&(o=Nt.from(e.errorCorrectionLevel,Nt.M),n=St.from(e.version),r=Lt.from(e.maskPattern),e.toSJISFunc&&Tt.setToSJISFunction(e.toSJISFunc)),Jt(t,n,o,r)};var Yt={},Kt={};!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?Ot("M",u+n,.5+l+n):Ot("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 Qt=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then},$t=I,Zt=Yt,Xt=qt;function Wt(t,e,n,r,o){const i=[].slice.call(arguments,1),a=i.length,s="function"==typeof i[a-1];if(!s&&!Qt())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=$t.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=$t.create(n,r);o(null,t(i,e,r))}catch(u){o(u)}}B.create=$t.create,B.toCanvas=Wt.bind(null,Zt.render),B.toDataURL=Wt.bind(null,Zt.renderToDataURL),B.toString=Wt.bind(null,function(t,e,n){return Xt.render(t,n)});const Gt=C(t({__name:"reservation-detail",setup(t){const C=e(null),I=e(""),M=e(!1),T=e(!1),N=e("");const b=e([]);function P(){var t;const e=(null==(t=C.value)?void 0:t.qr_token)||"";e&&w({data:e})}async function R(t){if(t&&I.value){M.value=!0;try{C.value=await E(t,I.value),await async function(){var t;const e=null==(t=C.value)?void 0:t.qr_token;if(e)try{N.value=await B.toDataURL(e,{width:320,margin:1,errorCorrectionLevel:"M"})}catch{N.value=""}else N.value=""}(),function(){var t,e;const n=Math.max(1,Number((null==(t=C.value)?void 0:t.ticket_count)||1)),r=(null==(e=C.value)?void 0:e.visitor_name)||"观众";b.value=Array.from({length:n},(t,e)=>({label:1===n?r:`${r}${e+1}`,qr:N.value}))}()}catch(e){i({title:(null==e?void 0:e.message)||"加载详情失败",icon:"none"})}finally{M.value=!1}}}async function _(){var t;if(!(null==(t=C.value)?void 0:t.id)||!I.value)return;if("pending"!==C.value.status)return void i({title:"当前状态不可取消",icon:"none"});if((await y({title:"确认取消预约",content:"取消后将释放该日期占用名额,是否继续?",confirmText:"确认取消",confirmColor:"#ff7d00"})).confirm){T.value=!0;try{await A(C.value.id,I.value),i({title:"取消成功",icon:"success"}),await R(C.value.id)}catch(e){i({title:(null==e?void 0:e.message)||"取消失败",icon:"none"})}finally{T.value=!1}}}return n(t=>{const e=Number((null==t?void 0:t.id)||0);I.value=String((null==t?void 0:t.phone)||""),R(e)}),(t,e)=>{const n=a,i=g,w=p,y=m;return s(),r(n,{class:"page"},{default:o(()=>{var t;return[u(n,{class:"card"},{default:o(()=>[u(n,{class:"title"},{default:o(()=>{var t,e;return[l(c((null==(e=null==(t=C.value)?void 0:t.activity)?void 0:e.title)||"-"),1)]}),_:1}),u(n,{class:"meta"},{default:o(()=>{var t;return[l("预约编号:"+c((null==(t=C.value)?void 0:t.id)||"-"),1)]}),_:1}),u(n,{class:"meta"},{default:o(()=>{var t,e;return[l("场馆:"+c((null==(e=null==(t=C.value)?void 0:t.venue)?void 0:e.name)||"-"),1)]}),_:1}),u(n,{class:"meta"},{default:o(()=>{var t,e;return[l("预约日期:"+c((null==(e=null==(t=C.value)?void 0:t.activity_day)?void 0:e.activity_date)||"-"),1)]}),_:1}),u(n,{class:"meta"},{default:o(()=>{var t,e;return[l("状态:"+c((e=null==(t=C.value)?void 0:t.status,"pending"===e?"待核销":"verified"===e?"已核销":"cancelled"===e?"已取消":e||"-")),1)]}),_:1}),u(n,{class:"meta"},{default:o(()=>{var t;return[l("报名人:"+c((null==(t=C.value)?void 0:t.visitor_name)||"-"),1)]}),_:1}),u(n,{class:"meta"},{default:o(()=>{var t;return[l("手机:"+c((null==(t=C.value)?void 0:t.visitor_phone)||"-"),1)]}),_:1})]),_:1}),(null==(t=C.value)?void 0:t.qr_token)?(s(),r(n,{key:0,class:"card"},{default:o(()=>[u(n,{class:"sub-title"},{default:o(()=>[l("可扫入馆码")]),_:1}),(s(!0),f(d,null,h(b.value,(t,e)=>(s(),r(n,{class:"ticket",key:e},{default:o(()=>[u(n,{class:"ticket-head"},{default:o(()=>[u(i,null,{default:o(()=>{var t;return[l("入馆码:"+c(null==(t=C.value)?void 0:t.id)+" "+c(e+1),1)]}),_:2},1024),u(i,{class:"copy",onClick:P},{default:o(()=>[l("复制")]),_:1})]),_:2},1024),t.qr?(s(),r(w,{key:0,class:"qr",src:t.qr,mode:"aspectFit"},null,8,["src"])):(s(),r(n,{key:1,class:"tip"},{default:o(()=>[l("二维码生成中...")]),_:1})),u(n,{class:"qr-name"},{default:o(()=>[l(c(t.label),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})):v("",!0),u(n,{class:"action"},{default:o(()=>{var t;return[u(y,{class:"btn",disabled:"pending"!==(null==(t=C.value)?void 0:t.status)||T.value||M.value,onClick:_},{default:o(()=>[l(c(T.value?"取消中...":"取消预约"),1)]),_:1},8,["disabled"])]}),_:1})]}),_:1})}}}),[["__scopeId","data-v-f3245868"]]);export{Gt as default}; diff --git a/public/h5/assets/pages-stats-index.CfGwH5VW.js b/public/h5/assets/pages-stats-index.BlEM6V2H.js similarity index 93% rename from public/h5/assets/pages-stats-index.CfGwH5VW.js rename to public/h5/assets/pages-stats-index.BlEM6V2H.js index 651c015..737a61a 100644 --- a/public/h5/assets/pages-stats-index.CfGwH5VW.js +++ b/public/h5/assets/pages-stats-index.BlEM6V2H.js @@ -1 +1 @@ -import{d as a,a as s,b as e,p as r,m as n,n as l,t,v as c,F as o,x as u,u as d}from"./index-Cu9ZRBys.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:"head"},{default:e(()=>[t("活跃指数排行榜")]),_:1}),l(m,{class:"list"},{default:e(()=>[(n(),c(o,null,u(_,a=>l(m,{key:a.rank,class:"row"},{default:e(()=>[l(m,{class:"left"},{default:e(()=>[l(m,{class:"rank"},{default:e(()=>[t("TOP"+d(a.rank),1)]),_:2},1024),l(m,{class:"name"},{default:e(()=>[t(d(a.name),1)]),_:2},1024)]),_:2},1024),l(m,{class:"score"},{default:e(()=>[t(d(a.score),1)]),_:2},1024)]),_:2},1024)),64))]),_:1})]),_:1})}}}),[["__scopeId","data-v-6384efbf"]]);export{f as default}; +import{d as a,a as s,b as e,p as r,m as n,n as l,t,v as c,F as o,x as u,u as d}from"./index-DNch_z6T.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:"head"},{default:e(()=>[t("活跃指数排行榜")]),_:1}),l(m,{class:"list"},{default:e(()=>[(n(),c(o,null,u(_,a=>l(m,{key:a.rank,class:"row"},{default:e(()=>[l(m,{class:"left"},{default:e(()=>[l(m,{class:"rank"},{default:e(()=>[t("TOP"+d(a.rank),1)]),_:2},1024),l(m,{class:"name"},{default:e(()=>[t(d(a.name),1)]),_:2},1024)]),_:2},1024),l(m,{class:"score"},{default:e(()=>[t(d(a.score),1)]),_:2},1024)]),_:2},1024)),64))]),_:1})]),_:1})}}}),[["__scopeId","data-v-6384efbf"]]);export{f as default}; diff --git a/public/h5/assets/pages-study-tour-detail.DWfPNdMR.js b/public/h5/assets/pages-study-tour-detail.DG7W93UV.js similarity index 95% rename from public/h5/assets/pages-study-tour-detail.DWfPNdMR.js rename to public/h5/assets/pages-study-tour-detail.DG7W93UV.js index 62cdbb9..22b42be 100644 --- a/public/h5/assets/pages-study-tour-detail.DWfPNdMR.js +++ b/public/h5/assets/pages-study-tour-detail.DG7W93UV.js @@ -1 +1 @@ -import{d as a,r as l,c as e,J as s,a as t,b as u,p as n,m as d,n as r,t as i,S as o,M as c,u as v,v as m,F as f,x as g,q as _,y as p,P as b,E as k,e as N,Q as h}from"./index-Cu9ZRBys.js";import{j as y}from"./content.SYmDdoIV.js";import{_ as x}from"./_plugin-vue_export-helper.BCo6x5W8.js";const C=x(a({__name:"detail",setup(a){const x=l(null);const C=e(()=>{var a,l;const e=null==(l=null==(a=x.value)?void 0:a.venues)?void 0:l[0];return{latitude:Number((null==e?void 0:e.lat)||31.2989),longitude:Number((null==e?void 0:e.lng)||120.5853)}}),j=e(()=>{var a;return((null==(a=x.value)?void 0:a.venues)||[]).map((a,l)=>({id:a.id||l+1,latitude:Number(a.lat||0),longitude:Number(a.lng||0),width:20,height:20,callout:{content:String(l+1),color:"#fff",fontSize:12,borderRadius:20,bgColor:"#ff6b6b",padding:4,display:"ALWAYS"}}))});return s(async a=>{const l=Number((null==a?void 0:a.id)||0);l&&(x.value=await y(l))}),(a,l)=>{const e=n,s=c,y=_,S=b,w=o;return d(),t(e,{class:"page-wrap"},{default:u(()=>[r(e,{class:"head"},{default:u(()=>[i("线路详情")]),_:1}),r(w,{"scroll-y":"",class:"page"},{default:u(()=>[r(s,{class:"map",latitude:C.value.latitude,longitude:C.value.longitude,markers:j.value,scale:11},null,8,["latitude","longitude","markers"]),r(e,{class:"card"},{default:u(()=>{var a;return[r(e,{class:"title"},{default:u(()=>{var a;return[i(v((null==(a=x.value)?void 0:a.name)||"-"),1)]}),_:1}),r(e,{class:"tags"},{default:u(()=>{var a;return[(d(!0),m(f,null,g((null==(a=x.value)?void 0:a.tags)||[],a=>(d(),t(y,{key:a,class:"tag"},{default:u(()=>[i(v(a),1)]),_:2},1024))),128))]}),_:1}),(d(!0),m(f,null,g((null==(a=x.value)?void 0:a.venues)||[],(a,l)=>(d(),t(e,{key:a.id,class:"venue",onClick:l=>{return e=a.id,void k({url:`/pages/venue/detail?id=${e}`});var e}},{default:u(()=>[r(e,{class:"idx"},{default:u(()=>[i(v(Number(l)+1),1)]),_:2},1024),r(e,{class:"name"},{default:u(()=>[i(v(a.name),1)]),_:2},1024),r(e,{class:"addr"},{default:u(()=>[i(v(a.address||"-"),1)]),_:2},1024),r(e,{class:"go",onClick:p(l=>function(a){(null==a?void 0:a.lat)&&(null==a?void 0:a.lng)?h({latitude:Number(a.lat),longitude:Number(a.lng),name:a.name||"站点",address:a.address||""}):N({title:"暂无导航坐标",icon:"none"})}(a),["stop"])},{default:u(()=>[i("导航")]),_:2},1032,["onClick"])]),_:2},1032,["onClick"]))),128))]}),_:1}),r(e,{class:"card"},{default:u(()=>{var a;return[r(e,{class:"sub-title"},{default:u(()=>[i("线路简介")]),_:1}),r(S,{nodes:(null==(a=x.value)?void 0:a.intro_html)||""},null,8,["nodes"])]}),_:1})]),_:1})]),_:1})}}}),[["__scopeId","data-v-6d6695e5"]]);export{C as default}; +import{d as a,r as l,c as e,J as s,a as t,b as u,p as n,m as d,n as r,t as i,S as o,M as c,u as v,v as m,F as f,x as g,q as _,y as p,O as b,E as k,e as N,P as h}from"./index-DNch_z6T.js";import{j as y}from"./content.ztt6U5do.js";import{_ as x}from"./_plugin-vue_export-helper.BCo6x5W8.js";const C=x(a({__name:"detail",setup(a){const x=l(null);const C=e(()=>{var a,l;const e=null==(l=null==(a=x.value)?void 0:a.venues)?void 0:l[0];return{latitude:Number((null==e?void 0:e.lat)||31.2989),longitude:Number((null==e?void 0:e.lng)||120.5853)}}),j=e(()=>{var a;return((null==(a=x.value)?void 0:a.venues)||[]).map((a,l)=>({id:a.id||l+1,latitude:Number(a.lat||0),longitude:Number(a.lng||0),width:20,height:20,callout:{content:String(l+1),color:"#fff",fontSize:12,borderRadius:20,bgColor:"#ff6b6b",padding:4,display:"ALWAYS"}}))});return s(async a=>{const l=Number((null==a?void 0:a.id)||0);l&&(x.value=await y(l))}),(a,l)=>{const e=n,s=c,y=_,S=b,w=o;return d(),t(e,{class:"page-wrap"},{default:u(()=>[r(e,{class:"head"},{default:u(()=>[i("线路详情")]),_:1}),r(w,{"scroll-y":"",class:"page"},{default:u(()=>[r(s,{class:"map",latitude:C.value.latitude,longitude:C.value.longitude,markers:j.value,scale:11},null,8,["latitude","longitude","markers"]),r(e,{class:"card"},{default:u(()=>{var a;return[r(e,{class:"title"},{default:u(()=>{var a;return[i(v((null==(a=x.value)?void 0:a.name)||"-"),1)]}),_:1}),r(e,{class:"tags"},{default:u(()=>{var a;return[(d(!0),m(f,null,g((null==(a=x.value)?void 0:a.tags)||[],a=>(d(),t(y,{key:a,class:"tag"},{default:u(()=>[i(v(a),1)]),_:2},1024))),128))]}),_:1}),(d(!0),m(f,null,g((null==(a=x.value)?void 0:a.venues)||[],(a,l)=>(d(),t(e,{key:a.id,class:"venue",onClick:l=>{return e=a.id,void k({url:`/pages/venue/detail?id=${e}`});var e}},{default:u(()=>[r(e,{class:"idx"},{default:u(()=>[i(v(Number(l)+1),1)]),_:2},1024),r(e,{class:"name"},{default:u(()=>[i(v(a.name),1)]),_:2},1024),r(e,{class:"addr"},{default:u(()=>[i(v(a.address||"-"),1)]),_:2},1024),r(e,{class:"go",onClick:p(l=>function(a){(null==a?void 0:a.lat)&&(null==a?void 0:a.lng)?h({latitude:Number(a.lat),longitude:Number(a.lng),name:a.name||"站点",address:a.address||""}):N({title:"暂无导航坐标",icon:"none"})}(a),["stop"])},{default:u(()=>[i("导航")]),_:2},1032,["onClick"])]),_:2},1032,["onClick"]))),128))]}),_:1}),r(e,{class:"card"},{default:u(()=>{var a;return[r(e,{class:"sub-title"},{default:u(()=>[i("线路简介")]),_:1}),r(S,{nodes:(null==(a=x.value)?void 0:a.intro_html)||""},null,8,["nodes"])]}),_:1})]),_:1})]),_:1})}}}),[["__scopeId","data-v-6d6695e5"]]);export{C as default}; diff --git a/public/h5/assets/pages-traffic-index.BJUqIwJD.js b/public/h5/assets/pages-traffic-index.BpC6QlYs.js similarity index 94% rename from public/h5/assets/pages-traffic-index.BJUqIwJD.js rename to public/h5/assets/pages-traffic-index.BpC6QlYs.js index f0babfc..f6e5a6f 100644 --- a/public/h5/assets/pages-traffic-index.BJUqIwJD.js +++ b/public/h5/assets/pages-traffic-index.BpC6QlYs.js @@ -1 +1 @@ -import{d as a,r as e,c as l,o as t,R as s,w as u,a as d,b as c,_ as v,p as n,m as r,n as i,t as o,q as f,z as h,u as _,$ as x,O as y,v as m,F as p,x as g}from"./index-Cu9ZRBys.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=v(S),l=24,t=18,s=24,u=18,d=260,c=Math.min(...a.map(a=>a.value)),n=Math.max(...a.map(a=>a.value)),r=Math.max(1,n-c),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=f,s=x;return r(),d(l,{class:"page"},{default:c(()=>[i(l,{class:"head"},{default:c(()=>[o("客流统计")]),_:1}),i(l,{class:"section-title"},{default:c(()=>[i(l,{class:"bar"}),i(t,{class:"title"},{default:c(()=>[o("全市参观人数")]),_:1}),i(l,{class:"period"},{default:c(()=>[i(t,{class:h({active:"week"===k.value}),onClick:e[0]||(e[0]=a=>k.value="week")},{default:c(()=>[o("周")]),_:1},8,["class"]),i(t,{class:h({active:"month"===k.value}),onClick:e[1]||(e[1]=a=>k.value="month")},{default:c(()=>[o("月")]),_:1},8,["class"]),i(t,{class:h({active:"year"===k.value}),onClick:e[2]||(e[2]=a=>k.value="year")},{default:c(()=>[o("年")]),_:1},8,["class"])]),_:1})]),_:1}),i(l,{class:"date-range"},{default:c(()=>[o(_(T.value),1)]),_:1}),i(l,{class:"chart-card"},{default:c(()=>[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:c(()=>[(r(!0),m(p,null,g(b.value,a=>(r(),d(t,{key:a.date},{default:c(()=>[o(_(a.date),1)]),_:2},1024))),128))]),_:1})]),_:1}),i(l,{class:"list-card"},{default:c(()=>[i(l,{class:"list-title"},{default:c(()=>[o("参观人数列表")]),_:1}),(r(!0),m(p,null,g(b.value,a=>(r(),d(l,{key:a.date,class:"row"},{default:c(()=>{var e;return[i(t,{class:"d"},{default:c(()=>[o(_(a.date),1)]),_:2},1024),i(t,{class:h(["c",{hot:a.date===(null==(e=C.value)?void 0:e.date)}])},{default:c(()=>{return[o(_((e=a.value,`${e.toLocaleString()}人`)),1)];var e}),_:2},1032,["class"])]}),_:2},1024))),128))]),_:1})]),_:1})}}}),[["__scopeId","data-v-5553bcc5"]]);export{w as default}; +import{d as a,r as e,c as l,o as t,Q as s,w as u,a as d,b as c,_ as v,p as n,m as r,n as i,t as o,q as f,z as h,u as _,$ as x,Z as y,v as m,F as p,x as g}from"./index-DNch_z6T.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=v(S),l=24,t=18,s=24,u=18,d=260,c=Math.min(...a.map(a=>a.value)),n=Math.max(...a.map(a=>a.value)),r=Math.max(1,n-c),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=f,s=x;return r(),d(l,{class:"page"},{default:c(()=>[i(l,{class:"head"},{default:c(()=>[o("客流统计")]),_:1}),i(l,{class:"section-title"},{default:c(()=>[i(l,{class:"bar"}),i(t,{class:"title"},{default:c(()=>[o("全市参观人数")]),_:1}),i(l,{class:"period"},{default:c(()=>[i(t,{class:h({active:"week"===k.value}),onClick:e[0]||(e[0]=a=>k.value="week")},{default:c(()=>[o("周")]),_:1},8,["class"]),i(t,{class:h({active:"month"===k.value}),onClick:e[1]||(e[1]=a=>k.value="month")},{default:c(()=>[o("月")]),_:1},8,["class"]),i(t,{class:h({active:"year"===k.value}),onClick:e[2]||(e[2]=a=>k.value="year")},{default:c(()=>[o("年")]),_:1},8,["class"])]),_:1})]),_:1}),i(l,{class:"date-range"},{default:c(()=>[o(_(T.value),1)]),_:1}),i(l,{class:"chart-card"},{default:c(()=>[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:c(()=>[(r(!0),m(p,null,g(b.value,a=>(r(),d(t,{key:a.date},{default:c(()=>[o(_(a.date),1)]),_:2},1024))),128))]),_:1})]),_:1}),i(l,{class:"list-card"},{default:c(()=>[i(l,{class:"list-title"},{default:c(()=>[o("参观人数列表")]),_:1}),(r(!0),m(p,null,g(b.value,a=>(r(),d(l,{key:a.date,class:"row"},{default:c(()=>{var e;return[i(t,{class:"d"},{default:c(()=>[o(_(a.date),1)]),_:2},1024),i(t,{class:h(["c",{hot:a.date===(null==(e=C.value)?void 0:e.date)}])},{default:c(()=>{return[o(_((e=a.value,`${e.toLocaleString()}人`)),1)];var e}),_:2},1032,["class"])]}),_:2},1024))),128))]),_:1})]),_:1})}}}),[["__scopeId","data-v-5553bcc5"]]);export{w as default}; diff --git a/public/h5/assets/pages-venue-detail.Bh9QIq4N.js b/public/h5/assets/pages-venue-detail.Bh9QIq4N.js new file mode 100644 index 0000000..a2127d5 --- /dev/null +++ b/public/h5/assets/pages-venue-detail.Bh9QIq4N.js @@ -0,0 +1 @@ +import{d as e,r as l,c as a,w as s,J as t,a as i,b as u,k as c,p as n,m as r,n as o,S as d,K as v,v as f,F as p,x as _,L as g,A as h,N as m,t as y,u as k,q as b,Z as w,C as x,z as j,B as $,O as S,H as C,e as F,P as N,Q as z,R,T as A,U as q}from"./index-DNch_z6T.js";import{k as I}from"./content.ztt6U5do.js";import{h as T,f as B}from"./geo.BHVFNtB7.js";import{u as H,t as J,g as K,m as L,a as O}from"./tip.CRDnOkzn.js";import{_ as P}from"./_plugin-vue_export-helper.BCo6x5W8.js";const Q=P(e({__name:"detail",setup(e){const P={science_venue:"科技场馆类",education_research:"教育科研类",agriculture:"“三农”类",enterprise:"企业类",nature_resource:"自然资源类",other:"其他类"},Q={free:"免费",paid:"收费"};function U(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 Z(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 D(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}function E(e){if(!e||!String(e).trim())return!1;return String(e).replace(/<[^>]+>/g," ").replace(/ /gi," ").replace(/\s+/g," ").trim().length>0}const G=l(null),M=l(!0),V=l(!0),W=l(!0),X=l(!1),Y=l(!1),ee=l(!1),le=l("--"),ae=l(null),se=a(()=>{const e=G.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=G.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=Z(a);else{s=`
${D(a)}
`}return E(s)?s:""});const ie=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)?Z(l):`
${D(l)}
`;return E(a)?a:""}(null==(e=G.value)?void 0:e.study_courses)}),ue=a(()=>{var e;const l=null==(e=G.value)?void 0:e.detail_html;if(!l)return"";const a=Z(String(l));return E(a)?a:""}),ce=a(()=>{var e;const l=(null==(e=G.value)?void 0:e.venue_type_color)||"#05c9ac";return{color:l,backgroundColor:U(l,.14),border:`1px solid ${U(l,.35)}`}});function ne(){const e=G.value;if(!(null==e?void 0:e.lat)||!(null==e?void 0:e.lng)||!ae.value)return void(le.value="--");const l=T(ae.value.lat,ae.value.lng,Number(e.lat),Number(e.lng));le.value=B(l)}function re(){var e,l,a,s;const t=Number((null==(e=G.value)?void 0:e.lat)||0),i=Number((null==(l=G.value)?void 0:l.lng)||0);t&&i?N({latitude:t,longitude:i,name:(null==(a=G.value)?void 0:a.name)||"场馆",address:(null==(s=G.value)?void 0:s.address)||""}):F({title:"暂无导航坐标",icon:"none"})}return s(G,()=>{ne()}),s([ue,ie,te],()=>{M.value=!0,V.value=!0,W.value=!0,z(()=>{setTimeout(()=>{var e;const l=null==(e=R())?void 0:e.proxy,a=A();l&&a.in(l);const s=q(180);a.select(".judge-intro").boundingClientRect(),a.select(".judge-courses").boundingClientRect(),a.select(".judge-notice").boundingClientRect(),a.exec(e=>{const[l,a,t]=e||[];X.value=!!(l&&l.height&&l.height>s+1),Y.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&&(G.value=await I(l),c({type:"gcj02",success:e=>{ae.value={lat:e.latitude,lng:e.longitude},ne()},fail:()=>{le.value="--"}}))}),(e,l)=>{const a=h,s=m,t=g,c=v,F=n,N=b,z=S,R=d,A=C;return r(),i(F,{class:"page"},{default:u(()=>[o(R,{"scroll-y":"",class:"scroll"},{default:u(()=>[o(F,{class:"hero"},{default:u(()=>[se.value.length?(r(),i(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:u(()=>[(r(!0),f(p,null,_(se.value,(e,l)=>(r(),i(t,{key:"s-"+l,class:"swiper-item"},{default:u(()=>["video"!==e.type?(r(),i(a,{key:0,class:"slide-media",src:e.url,mode:"aspectFill"},null,8,["src"])):(r(),i(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(),i(F,{key:1,class:"hero-placeholder"})),o(F,{class:"live-badge"},{default:u(()=>{var e;return[y(" 当前馆内人数:"+k((null==(e=G.value)?void 0:e.live_people_count)??0)+"人 ",1)]}),_:1})]),_:1}),o(F,{class:"main-card"},{default:u(()=>{var e,s,t,c,n,d;return[o(N,{class:"venue-name"},{default:u(()=>{var e;return[y(k((null==(e=G.value)?void 0:e.name)||"-"),1)]}),_:1}),(null==(e=G.value)?void 0:e.venue_type)||(null==(s=G.value)?void 0:s.ticket_type)||(null==(t=G.value)?void 0:t.district)?(r(),i(F,{key:0,class:"chip-row"},{default:u(()=>{var e,l,a;return[(null==(e=G.value)?void 0:e.venue_type)?(r(),i(N,{key:0,class:"chip",style:w(ce.value)},{default:u(()=>{return[y(k((e=G.value.venue_type,e?P[e]||e:"")),1)];var e}),_:1},8,["style"])):x("",!0),(null==(l=G.value)?void 0:l.ticket_type)?(r(),i(N,{key:1,class:j(["chip","paid"===G.value.ticket_type?"chip-paid":"chip-free"])},{default:u(()=>{return[y(k((e=G.value.ticket_type,e?Q[e]||e:"")),1)];var e}),_:1},8,["class"])):x("",!0),(null==(a=G.value)?void 0:a.district)?(r(),i(N,{key:2,class:"chip chip-district"},{default:u(()=>[y(k(G.value.district),1)]),_:1})):x("",!0)]}),_:1})):x("",!0),(null==(c=G.value)?void 0:c.unit_name)?(r(),i(F,{key:1,class:"info-row"},{default:u(()=>[o(a,{class:"info-ico",src:$(H),mode:"aspectFit"},null,8,["src"]),o(F,{class:"info-text-col"},{default:u(()=>[o(N,{class:"info-text"},{default:u(()=>[y("所属单位:"+k(G.value.unit_name),1)]),_:1})]),_:1})]),_:1})):x("",!0),(null==(n=G.value)?void 0:n.open_time)?(r(),i(F,{key:2,class:"info-row"},{default:u(()=>[o(a,{class:"info-ico",src:$(J),mode:"aspectFit"},null,8,["src"]),o(F,{class:"info-text-col"},{default:u(()=>[o(N,{class:"info-text"},{default:u(()=>[y("开放时间:"+k(G.value.open_time),1)]),_:1})]),_:1})]),_:1})):x("",!0),o(F,{class:"info-row"},{default:u(()=>[o(a,{class:"info-ico",src:$(K),mode:"aspectFit"},null,8,["src"]),o(F,{class:"info-text-col"},{default:u(()=>[o(N,{class:"info-text"},{default:u(()=>[y("距离:"+k(le.value),1)]),_:1})]),_:1})]),_:1}),(null==(d=G.value)?void 0:d.address)?(r(),i(F,{key:3,class:"info-row"},{default:u(()=>[o(a,{class:"info-ico",src:$(L),mode:"aspectFit"},null,8,["src"]),o(F,{class:"info-text-col"},{default:u(()=>[o(N,{class:"info-text"},{default:u(()=>[y("具体地址:"+k(G.value.address),1)]),_:1})]),_:1})]),_:1})):x("",!0),te.value?(r(),i(F,{key:4,class:"notice-block"},{default:u(()=>[o(F,{class:"sec-title-row notice-head-row"},{default:u(()=>[o(F,{class:"notice-head-left"},{default:u(()=>[o(a,{class:"info-ico",src:$(O),mode:"aspectFit"},null,8,["src"]),o(N,{class:"notice-label"},{default:u(()=>[y("预约须知")]),_:1})]),_:1}),ee.value?(r(),i(N,{key:0,class:"expand-link",onClick:l[0]||(l[0]=e=>W.value=!W.value)},{default:u(()=>[y(k(W.value?"收起":"展开"),1)]),_:1})):x("",!0)]),_:1}),o(F,{class:j(["notice-block-body judge-notice",{"is-collapsed":ee.value&&!W.value}])},{default:u(()=>[o(z,{class:"notice-inline-rich",nodes:te.value},null,8,["nodes"])]),_:1},8,["class"])]),_:1})):x("",!0)]}),_:1}),ue.value?(r(),i(F,{key:0,class:"intro-card"},{default:u(()=>[o(F,{class:"sec-title-row"},{default:u(()=>[o(N,{class:"sec-title"},{default:u(()=>[y("场馆介绍")]),_:1}),X.value?(r(),i(N,{key:0,class:"expand-link",onClick:l[1]||(l[1]=e=>M.value=!M.value)},{default:u(()=>[y(k(M.value?"收起":"展开"),1)]),_:1})):x("",!0)]),_:1}),o(F,{class:j(["intro-rich-wrap judge-intro",{"is-collapsed":X.value&&!M.value}])},{default:u(()=>[o(z,{class:"intro-rich",nodes:ue.value},null,8,["nodes"])]),_:1},8,["class"])]),_:1})):x("",!0),ie.value?(r(),i(F,{key:1,class:"courses-card"},{default:u(()=>[o(F,{class:"sec-title-row"},{default:u(()=>[o(N,{class:"sec-title"},{default:u(()=>[y("研学课程")]),_:1}),Y.value?(r(),i(N,{key:0,class:"expand-link",onClick:l[2]||(l[2]=e=>V.value=!V.value)},{default:u(()=>[y(k(V.value?"收起":"展开"),1)]),_:1})):x("",!0)]),_:1}),o(F,{class:j(["courses-rich-wrap judge-courses",{"is-collapsed":Y.value&&!V.value}])},{default:u(()=>[o(z,{class:"courses-rich",nodes:ie.value},null,8,["nodes"])]),_:1},8,["class"])]),_:1})):x("",!0),o(F,{class:"safe-bottom"})]),_:1}),o(F,{class:"action-bar"},{default:u(()=>[o(A,{class:"btn primary",onClick:re},{default:u(()=>[y("一键导航")]),_:1})]),_:1})]),_:1})}}}),[["__scopeId","data-v-6c083375"]]);export{Q as default}; diff --git a/public/h5/assets/pages-venue-detail.jukb5IQL.js b/public/h5/assets/pages-venue-detail.jukb5IQL.js deleted file mode 100644 index c2897de..0000000 --- a/public/h5/assets/pages-venue-detail.jukb5IQL.js +++ /dev/null @@ -1 +0,0 @@ -import{d as e,r as l,c as a,w as s,J as t,a as i,b as u,k as c,p as n,m as r,n as o,S as d,K as v,v as f,F as p,x as _,L as g,A as h,N as m,t as y,u as k,q as b,O as w,C as x,z as $,B as j,P as S,H as C,e as F,Q as N,R as z,T as R,U as A,V as q}from"./index-Cu9ZRBys.js";import{k as I}from"./content.SYmDdoIV.js";import{h as T,f as B}from"./geo.BHVFNtB7.js";import{u as H,t as J,g as K,m as L,a as O}from"./tip.CRDnOkzn.js";import{_ as P}from"./_plugin-vue_export-helper.BCo6x5W8.js";const Q=P(e({__name:"detail",setup(e){const P={science_venue:"科技场馆类",education_research:"教育科研类",agriculture:"“三农”类",enterprise:"企业类",nature_resource:"自然资源类",other:"其他类"},Q={free:"免费",paid:"收费"};function U(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 V(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 D(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}function E(e){if(!e||!String(e).trim())return!1;return String(e).replace(/<[^>]+>/g," ").replace(/ /gi," ").replace(/\s+/g," ").trim().length>0}const G=l(null),M=l(!0),W=l(!0),X=l(!0),Y=l(!1),Z=l(!1),ee=l(!1),le=l("--"),ae=l(null),se=a(()=>{const e=G.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=G.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=V(a);else{s=`
${D(a)}
`}return E(s)?s:""});const ie=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)?V(l):`
${D(l)}
`;return E(a)?a:""}(null==(e=G.value)?void 0:e.study_courses)}),ue=a(()=>{var e;const l=null==(e=G.value)?void 0:e.detail_html;if(!l)return"";const a=V(String(l));return E(a)?a:""}),ce=a(()=>{var e;const l=(null==(e=G.value)?void 0:e.venue_type_color)||"#05c9ac";return{color:l,backgroundColor:U(l,.14),border:`1px solid ${U(l,.35)}`}});function ne(){const e=G.value;if(!(null==e?void 0:e.lat)||!(null==e?void 0:e.lng)||!ae.value)return void(le.value="--");const l=T(ae.value.lat,ae.value.lng,Number(e.lat),Number(e.lng));le.value=B(l)}function re(){var e,l,a,s;const t=Number((null==(e=G.value)?void 0:e.lat)||0),i=Number((null==(l=G.value)?void 0:l.lng)||0);t&&i?N({latitude:t,longitude:i,name:(null==(a=G.value)?void 0:a.name)||"场馆",address:(null==(s=G.value)?void 0:s.address)||""}):F({title:"暂无导航坐标",icon:"none"})}return s(G,()=>{ne()}),s([ue,ie,te],()=>{M.value=!0,W.value=!0,X.value=!0,z(()=>{setTimeout(()=>{var e;const l=null==(e=R())?void 0:e.proxy,a=A();l&&a.in(l);const s=q(180);a.select(".judge-intro").boundingClientRect(),a.select(".judge-courses").boundingClientRect(),a.select(".judge-notice").boundingClientRect(),a.exec(e=>{const[l,a,t]=e||[];Y.value=!!(l&&l.height&&l.height>s+1),Z.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&&(G.value=await I(l),c({type:"gcj02",success:e=>{ae.value={lat:e.latitude,lng:e.longitude},ne()},fail:()=>{le.value="--"}}))}),(e,l)=>{const a=h,s=m,t=g,c=v,F=n,N=b,z=S,R=d,A=C;return r(),i(F,{class:"page"},{default:u(()=>[o(R,{"scroll-y":"",class:"scroll"},{default:u(()=>[o(F,{class:"hero"},{default:u(()=>[se.value.length?(r(),i(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:u(()=>[(r(!0),f(p,null,_(se.value,(e,l)=>(r(),i(t,{key:"s-"+l,class:"swiper-item"},{default:u(()=>["video"!==e.type?(r(),i(a,{key:0,class:"slide-media",src:e.url,mode:"aspectFill"},null,8,["src"])):(r(),i(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(),i(F,{key:1,class:"hero-placeholder"})),o(F,{class:"live-badge"},{default:u(()=>{var e;return[y(" 当前馆内人数:"+k((null==(e=G.value)?void 0:e.live_people_count)??0)+"人 ",1)]}),_:1})]),_:1}),o(F,{class:"main-card"},{default:u(()=>{var e,s,t,c,n,d;return[o(N,{class:"venue-name"},{default:u(()=>{var e;return[y(k((null==(e=G.value)?void 0:e.name)||"-"),1)]}),_:1}),(null==(e=G.value)?void 0:e.venue_type)||(null==(s=G.value)?void 0:s.ticket_type)||(null==(t=G.value)?void 0:t.district)?(r(),i(F,{key:0,class:"chip-row"},{default:u(()=>{var e,l,a;return[(null==(e=G.value)?void 0:e.venue_type)?(r(),i(N,{key:0,class:"chip",style:w(ce.value)},{default:u(()=>{return[y(k((e=G.value.venue_type,e?P[e]||e:"")),1)];var e}),_:1},8,["style"])):x("",!0),(null==(l=G.value)?void 0:l.ticket_type)?(r(),i(N,{key:1,class:$(["chip","paid"===G.value.ticket_type?"chip-paid":"chip-free"])},{default:u(()=>{return[y(k((e=G.value.ticket_type,e?Q[e]||e:"")),1)];var e}),_:1},8,["class"])):x("",!0),(null==(a=G.value)?void 0:a.district)?(r(),i(N,{key:2,class:"chip chip-district"},{default:u(()=>[y(k(G.value.district),1)]),_:1})):x("",!0)]}),_:1})):x("",!0),(null==(c=G.value)?void 0:c.unit_name)?(r(),i(F,{key:1,class:"info-row"},{default:u(()=>[o(a,{class:"info-ico",src:j(H),mode:"aspectFit"},null,8,["src"]),o(F,{class:"info-text-col"},{default:u(()=>[o(N,{class:"info-text"},{default:u(()=>[y("所属单位:"+k(G.value.unit_name),1)]),_:1})]),_:1})]),_:1})):x("",!0),(null==(n=G.value)?void 0:n.open_time)?(r(),i(F,{key:2,class:"info-row"},{default:u(()=>[o(a,{class:"info-ico",src:j(J),mode:"aspectFit"},null,8,["src"]),o(F,{class:"info-text-col"},{default:u(()=>[o(N,{class:"info-text"},{default:u(()=>[y("开放时间:"+k(G.value.open_time),1)]),_:1})]),_:1})]),_:1})):x("",!0),o(F,{class:"info-row"},{default:u(()=>[o(a,{class:"info-ico",src:j(K),mode:"aspectFit"},null,8,["src"]),o(F,{class:"info-text-col"},{default:u(()=>[o(N,{class:"info-text"},{default:u(()=>[y("距离:"+k(le.value),1)]),_:1})]),_:1})]),_:1}),(null==(d=G.value)?void 0:d.address)?(r(),i(F,{key:3,class:"info-row"},{default:u(()=>[o(a,{class:"info-ico",src:j(L),mode:"aspectFit"},null,8,["src"]),o(F,{class:"info-text-col"},{default:u(()=>[o(N,{class:"info-text"},{default:u(()=>[y("具体地址:"+k(G.value.address),1)]),_:1})]),_:1})]),_:1})):x("",!0),te.value?(r(),i(F,{key:4,class:"notice-block"},{default:u(()=>[o(F,{class:"sec-title-row notice-head-row"},{default:u(()=>[o(F,{class:"notice-head-left"},{default:u(()=>[o(a,{class:"info-ico",src:j(O),mode:"aspectFit"},null,8,["src"]),o(N,{class:"notice-label"},{default:u(()=>[y("预约须知")]),_:1})]),_:1}),ee.value?(r(),i(N,{key:0,class:"expand-link",onClick:l[0]||(l[0]=e=>X.value=!X.value)},{default:u(()=>[y(k(X.value?"收起":"展开"),1)]),_:1})):x("",!0)]),_:1}),o(F,{class:$(["notice-block-body judge-notice",{"is-collapsed":ee.value&&!X.value}])},{default:u(()=>[o(z,{class:"notice-inline-rich",nodes:te.value},null,8,["nodes"])]),_:1},8,["class"])]),_:1})):x("",!0)]}),_:1}),ue.value?(r(),i(F,{key:0,class:"intro-card"},{default:u(()=>[o(F,{class:"sec-title-row"},{default:u(()=>[o(N,{class:"sec-title"},{default:u(()=>[y("场馆介绍")]),_:1}),Y.value?(r(),i(N,{key:0,class:"expand-link",onClick:l[1]||(l[1]=e=>M.value=!M.value)},{default:u(()=>[y(k(M.value?"收起":"展开"),1)]),_:1})):x("",!0)]),_:1}),o(F,{class:$(["intro-rich-wrap judge-intro",{"is-collapsed":Y.value&&!M.value}])},{default:u(()=>[o(z,{class:"intro-rich",nodes:ue.value},null,8,["nodes"])]),_:1},8,["class"])]),_:1})):x("",!0),ie.value?(r(),i(F,{key:1,class:"courses-card"},{default:u(()=>[o(F,{class:"sec-title-row"},{default:u(()=>[o(N,{class:"sec-title"},{default:u(()=>[y("研学课程")]),_:1}),Z.value?(r(),i(N,{key:0,class:"expand-link",onClick:l[2]||(l[2]=e=>W.value=!W.value)},{default:u(()=>[y(k(W.value?"收起":"展开"),1)]),_:1})):x("",!0)]),_:1}),o(F,{class:$(["courses-rich-wrap judge-courses",{"is-collapsed":Z.value&&!W.value}])},{default:u(()=>[o(z,{class:"courses-rich",nodes:ie.value},null,8,["nodes"])]),_:1},8,["class"])]),_:1})):x("",!0),o(F,{class:"safe-bottom"})]),_:1}),o(F,{class:"action-bar"},{default:u(()=>[o(A,{class:"btn primary",onClick:re},{default:u(()=>[y("一键导航")]),_:1})]),_:1})]),_:1})}}}),[["__scopeId","data-v-6c083375"]]);export{Q as default}; diff --git a/public/h5/assets/search.BJnl3YRK.js b/public/h5/assets/search.BJnl3YRK.js new file mode 100644 index 0000000..f1fa3d6 --- /dev/null +++ b/public/h5/assets/search.BJnl3YRK.js @@ -0,0 +1 @@ +const A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAYCAYAAAAPtVbGAAACM0lEQVRIibXWQWhUVxTG8Z82CDbiIvIQbKmIWtAqaqUFI6PEiFZEs6hFBEU3uhVx0YEuSqGLR1cK7UJE0kUFI4IoEhUVkYddVRCrXVREREF00JqKItoSuXIiQ/KGSTL6wXDO3Dnn/ufcd+89b8Lg4KAyZUU+H19jI2ahHf/gKk6gD09Kk4dpBCQr8k/wI7Y1yf0v4n4YEyQr8hU4h0l4hX24iD/wHB3oRA+2RNo1dOFxU0hW5N04H+OHsLdWqQ7Eb2W5n+EwFuEuPsWLssC2mKQ9Kkj6tlap/tRsCXADiyNvNfqxqixwYtifU1U4OUpAvdZhIJaspxSSFfl07Ihn8M0YAWIDbA1/f6NKhgJ6a5Xqy3FAkk7hHmZiSRmkO/y+cQKGdCnsyjLI3PD/bhFyJ2xWBvkw/P9bhAyEbSuD3A9/aouQjrDPyiDXw+9sEfJl2NtlkKPh72kBMKXugfePgNQq1TT4CAuzIi89TKNQb/zhvphrRCVJO8Mey4p82hgBm7Ep/N1lAW8gtUr1eJSZdsaVrMgXjBKwHUfCT+ftQUNIgNbjTJzaP7Mi/y4r8o8aTP45fo1P0vf4C6WrUNa0DmBX3dBl/I6nSA1tWVzzQ0rN7TekiR5iTsQ2hgSoK3bbhgaVpAZ2EL/gJj6Ia2V5fF9aD2rY4wP2cSTOwGT8G9fHhQAN12l8FaCUV2sKqYM1janTWazBLXyRXj7ePvh3qLXxXjA72vK89wFJSm049Zh2bHsNyCWYl7aXVQsAAAAASUVORK5CYII=";export{A as s}; diff --git a/public/h5/index.html b/public/h5/index.html index 1555061..7751c31 100644 --- a/public/h5/index.html +++ b/public/h5/index.html @@ -6,7 +6,7 @@ 苏州科普 - + diff --git a/public/h5/static/tab/icon1.png b/public/h5/static/tab/icon1.png new file mode 100644 index 0000000000000000000000000000000000000000..5b9913ea802203870b482538395f55d0992c023d GIT binary patch literal 1766 zcmVPx#L}ge>W=%~1DgXcg2mk?xX#fNO00031000^Q000001E2u_0{{R30RRC20H6W@ z1ONa40RR91ET97b1ONa40RR91C;$Ke0156vV*mgKP)S5VR9FecS#3y_XBa-`_>s7h zez{SJ?N6{~VQ7Pb(iD?On`Ic(zJAA6H1;RhrjEh>3}S8jzmJlNWG;=+kr@S|7zwh5 z{V74m=C6J%r+Nva)y(AYjXuEwv9HJ`87HxpL(- z2H6aMXJ_XO>|9bEI&>%=zjf=DQDGqXV`^}4@7_HIzM7w(KTDaWsQ~-Y(b0uqGK=9@ zti8Sc7uXG?*|1?l{_fqo|5YpicXxN2n#uW?ngU@p9@Ny-ylLh}XF)+h0H6*gsbRd8 zb^u!otuLcu6 zdh}>09vWaKTS^>fT=U+hvr^AT&^ zxpQX=?cj>RfetBcyOoxfh6D@`4|gNJ-^S2ZQQDEj0!b;sYWPa^!#2c<3olHF*!>O? zTC=dQFt@zC zeAWhrhwKU>^`;;cb7&Mxh=g_v4cV`%?uaASJP_Sc%EL z2N(KU%l8>B^x-wKf-+MorV=U@SbbJj+Q*6)OW{-OnF}Tflq>_y?ckcslJ|37;<~v=Tl*Iv-Xifw#V|(VroftHqVFSB*B# z#W~z2KS6Bq;el4>>Cv$+C|)BooQ#2>D&ukZ7R{oafP8qZb#877Gg^$z%An9-MBM>Uc9t6?%TKTiHp1W4@s!{kYKz$oi_@% literal 0 HcmV?d00001 diff --git a/public/h5/static/tab/icon1_cur.png b/public/h5/static/tab/icon1_cur.png new file mode 100644 index 0000000000000000000000000000000000000000..8198a99c2f7b1b405357f8336367e932b028b275 GIT binary patch literal 2319 zcmbVO4Nw$yA3hHR0xZK1{A$=1H3;^0_wLxcTR8za63`QpE6=Hrz1=--^Y-@KUAV)n z7vFRmrVq@FKqV`+4>i<2>_}!r(J@8HK&329D=A8noE*)<`Y#;!>N{jkceA(u-F^Pg z^ZY*cH&<1-VD6acDbXsGYD`|PWg$4Hf+Hy^0{pI?Fex6K?(pU=mQ<>kamq1DwSMCy zm1^_}&SsbG*7+nY@EVE{9IVFAdjVRdO3(0nDS9a@Lk_l-^O)g_d-uT*$C%+oX;#eY z&1PL(?sAbWTE4(WFJDTV7&v1#lht+DKAlDoOHtfpGNG6j)oKxdK%@$fO!*OylsL>_VI^ARyfPU3$ZxR66wOT_OBYNTakc1@Xl!GvW2^kSB*($s&x{#HGGLdF;%7M*9 zB^oc8EwYp>h&DlR57(-2*fOL|)8IIiWTj}%qePK>!yeW`$*dU$g(DD5k6>CGt|xIL zsmD_=BZ*-{P^-Xj&We$sI*imAZ-RoxVJMmUM=(Q^PC?`;5HrV9r7Y_8l)_LblVrBw z7DONn-022gSgmB9N0KQI&E{FmFbG@2aSUlRnbMqTG=b<1X(mLk!wiUtqP2*Dr3oi( zB6JRuX?VXypv#ovD*K08oe^lj@jq3{!5SI8PKOxv1_z=COT>r)HcUt8Fq6~azzJ%Y ztw7|!+eW!>WK~=-fDv~n-!v8>7z$WpXc{pQgcBiX#^}&ePMUEtN<$C!2${=Cpn4U- zSEPtt7F@YGXs|6vidNd)4AV-TSq2W?=0?cJZ7B!$`&=v_y+!ed)Fr_w`zVpkDh0W_ zo&G}q&c8&J-`f4{RddMJNbYay$A9TQm>k+gc}iI@L{V6Y2UTXxP-)QruiD_V8|Kn5 z91J^U85*?UA~dR551@YSlQ2l%$~n)O?AR^C1R`3*-`70;eHqy6d6ez}Y5Jle5)W2d8` z`a*ksqpozCdLI@mwO{<@+~JFV{A^ClPnLgl{cvcRMUxbpdFFb0Mc;<@t8a`8O#ihh zhiaO$i7%hDV>=nexo*DTR5iHzI3C2jzg)eY&B7hSdY*NxKdIQTs(Tx-MKwRr&FW1lQp0fht^XE4oY))b#@Y93mynG1A&clNxbR$@dhbBX$xM~2qm|u06Iv7ho4x*%=D5%M5-yERc%*Ex`u(DN z#uD(R^oKY6soML>&mXCu&3ve4{{`FV)G051`tI+B>*@yk$6Yb=!wyA;JKu7YoVM5Z zb?;5ePrknuib$(6HCP1#wnm><9T$-c^hxp9vn_`Xx0^LNDT`s_HK z({yd}y!d`Gn%GXp^{UV0?|14N^TYvP(Klm_Uy|YNd+uEM{=1gyp0`_!XVxA+n7Q@} zwX>zRCbp_F@y@3=5g8L2U3^Ml*!cZKihArsoPXtWTJsabNR@AIneg(^`Oxv zUB}}S$OKum7$G!F7$s6MrctA#&@@_5h*1Y4DvYG3VrjTm0z5l=0iffk1X#_Jv1Gb1 zOo>P4=&`t*n0O>dg@{lfB$ys#6jKBmjD+b%jaq9E8zsOnubA4~k3oPw3?Wq#Ak^-V zo*-LJ4Y1fax@M4{1*(`pT)nWAzA8ets>FstiNo|5OcMHdf>4juYWbLCI-AFYAiAFnMsTe?iUn`kVBs){NdT&F zd!`Q!(Qj zI1K}J+BASZo=I^Sp(gZ{V@e%oScOa`mTCKfT?g8JidShLtGvoMHFN9;RKRlFRtBwq}5RZp*a5IH5KE)B7s84zz_kOAwsz@ zLnIWy3>d>wQJ956Y!NcXwoH#xUmL7`o7Jugr5Hs*9)_T(kdgsI3@(?eV5D-`3I#POk z&w{>x9o+x7+|K?c_u>e7!_eUCG>0{oK})KYZ=t2-Kg(a1KQw(d|4m0avu$g)qm!$L zRhkl@JK{9h&VF{cvoonnx_)-B(Pj-y5!en?p7`YE&9*kqgHOK(>$kXir8}A|OGBjj z4%R+uwVe9wRkJU?<X^lTON36`VH)o&VOiPm$tk zn_Ufh|1tTinKzzxFQVJ{w#fUr{=38<6*mNDdUZLdC(at+nw^reh(obe&+`{qr?;=# z7JKb5tE#S`puoX8p)y&1(XX22xqawe-hmO-?Kul*iuKDE+c6%I7)H+9ZeW_~L}`&ho_W#lViWQi;h~R_3+qx>r$n zW57VPFDI@wN!mX6@#Y=wrg$Dy*KNy|s#=i4JG9ZUz#P~8N19KDwbm^lcTQWqkL*xq zdfVa{Rj%HKIcc@I^UPO|O%8Utm4146{>hTwIY+ufCO**s?Or9ld#lz}9j;!Iarg1J z6%`ftwMTn}P4gwps)s!@=Sx3l}c@S$gYU zkEZX*lRLc+?&;6mp8q^*Pj{1UWz@a?SJRgBrUvPpPY1X=uaxvq2ftb5=YF~UN%FEs zzYS6E=q3H!gVvG0K`g6}h5E zqAeZ;_vM;xuaqcysC)bMOP30_L1(u^s&(J(hJ58kytUv8Vq?Mqb8FjAoae4fbDSP( z=Kf(@tNAbf^#SrJQ*30#@|Wu`ZkPm~5x8usQ<=U)LN=ixs+ERK#e@ri%bh`H3F<(Vo&a*d9xilm?VDRY@TL( ta;V>avaw8J$w}#p->NE{U<Px#L}ge>W=%~1DgXcg2mk?xX#fNO00031000^Q000001E2u_0{{R30RRC20H6W@ z1ONa40RR91ET97b1ONa40RR91Bme*a0L&h&VgLXNc}YY;R9Fd}SZiz?)fK*XX4kuZ zZ0yj6@(2Y4l|WRKyzFe8AAOLvsfyaB#SkZ@K%fR3Kmt@DRHy@0`GeG|iAkWeZbI$K zc{HIZDWt8CQ2kmvB&do=A8Kep1VkW?y?*U_=Jxx}otYgcYlwTToqOlrbH4MPbM9-b zRIJqYZr&NbI$@)#?^njx$xG+=ZC=ej%|~Uf`$6Rwo^nhk8BXvTsRQLYEXyqww>~Cb{eUVJ$IR(@G&l{tY z%B{(q=Q|ZS{8VlK(@QwUBEqS`eXYrXon~_RceU>%|56zDKJ-pJcG+tM|e3*P(OEn}sTSbW%7)%%H_E*y6l9%9`gngsiD{|e1sVqWg&BKBNI(PlJx@Vj5#wSjdgehR$WaZHAhEQQV zd%Ldc>zJSgYZ06iul?~$X1XB!raiyE4O(ql>&pJ;e`}1Frg0qvSnHt!@F_@$KaIeL z$w6&O?@6VXoRt)E3(Kco-%*{|5#(=;v1viXT{YI&qVp^6(p5FpHO#G~4E?o#-SS9G zEo#onIGyW!RC(UxWXqqCPz3B5+kiP|T!a>DM4dMxYx{D$rwMY=`3oxFy!;E3l>=Q_ z-}ibQNFkFjP>L}!>W^jb0ClD2^=&&2xy#^wex$KA!@dYOIk@*fVD;%Ro&eiARo^7D zHr3xbg4vL-%aMzGL1RjkB9z?+I;0yFu5)w~XU5(1Te@#=KAeo`A zt45bLA7i_!fBO)KEa7Z%WY*ZEqIo3W*s@4~-Jt^q;p(b5V91;`f8i#Q?(cfiDF5Lw z#^Jb~js!PqY{i{+?(3nKz?PHU4oEwkT8u5tN6GVpM8@OIXjpw>;BQM53c6RWaFL9S zI3_uL-iduwF1fk)i!)O;7QZCEeFcJvcS~?JHBGm zXc=M&4`LJ5iK_H`t75@@qrN#OVBa{4?0!kRj!HSH>j^Nt=(b^ofzh_(v!|#mW9_;x z+f-o|!R1N6_-6w1e2^^yePJruU#^q|9$&WhFqz5ECTtlGq2h#h%Jy+gqnT(c2g<$( zc>d7N+VntoOwf5mT&C+G!ypWdKUGJvEt}ZFx&Pq2p7t5%X#_m#Id5T&{U|lieVoFR z%bTCXap~c@fw!3J^aP+nD!gZPTB3)9|5DCp_^EkmsJhzSwF_n(Ydmw@S}_^8#i=N+O_o7R59aXxFo zx&CA}4eN!- zMML|miqmF5WC<9MvCOFvFb42q=_Dw7r6#yp3h-`rg&TaEG0v&!Q@E=!p_F9}Qb9Os z`=9wTyM=*R6hZ3}m5_B226z+hNk5@5%aa3L9&ckd?g3ls(o58y??{|=^69P?xg}|dShCV4@#uzt%xm@P6{+;~hnBV!=Sq6c5w7mveyvg7 zVax;EW1%j&BVncywIGJk4V_`9y`Pexh~Qe{D0lI2W9yN*kQUu@Rp13OJk4=A|2>YrRtnde$*X;knu9(qbWX6u01-gnqe}{ zrOtWDA`z9QMylPFqbqKeJvz{D$qa1E;?txz5D9dc4LE2_s&HDZL+3Mr{Kr88&F-yA!`V4lof-rP~UlQ#od>*;qW_G4p#SEr6HFY_}wQ8X8hk! zoJZ2p{0yc@L|(=S%*hatq;tU>#)=&^>Espp#kaptsdFu530LHHS!XAw^3_FkvBZIMWzENOJqV}<&go``GX!|5@|Y?3Vt0|b+;O@z+S zk0NU}<+FFTiAeAO*&jmr39g9Jl)--OB$k}cw!9XXJ)7|0-Y#gZjrLR!7a}BY)Uop~ zR*T=hq-i1q;S?#Vi9rls9_q|A9PH8ByqQR(mf==%GSpqzyR&jwj~v2h)74x9Az2kVTKx4ayeukP(=R@(2R%$X;pkdi3*Dw%RGJ+-t23*D9(gz+E9pJO52 zYddX9MJ!I7k!Gh>ClIlv5TCs+b?z|&7kl5 z*garFh!Hce$1X8|2JB*>9shK}=b$Z?8`=wwzEbnyczzgZbwz=~Avwy1$F4*qAdPX{ z3;uLvwfg$eYnloao2~Hv@y7HUF93fvV;W{LtV8^8TG$5zbo91euHms+8WKJ2%v{xNE%Qn~K-5bMl3J^&4>N`%{R57{(yU>GkM>pg~J`>4QTu;e|=%KOZH zSiqEe$#wL0>@>>v)Ge5wt1YcSKUfo1Kb}Pi0c`LBMQ~!XaPgV^>TF%zF5Tpb4d>9o zR;<)59HcC?L{MsZms5%JDH;<+$Wta-m>51=Kak;=pq9}gj{GRYHeXAGIp%2RzI=AW zW|RE)Eq8<3=sGK7!o(}W$j`JkE|w>oFHt!?63 he8?Y9IO2if?EP)Px#L}ge>W=%~1DgXcg2mk?xX#fNO00031000^Q000001E2u_0{{R30RRC20H6W@ z1ONa40RR91FrWhf1ONa40RR91FaQ7m0NXcg3;+NIkV!;ARA>d&SzTzAWgI`-&ODCc z1|eBV6ys3PlEyR^GsotXIa5^Jm3q~kH^ZCoLLwMM1VtBt7j+ek0=FrfIyH=j1Uh0% ztSv7_4T)N#FS_!$&Gq{|?f35gKJRiQ`P>@zw#x`Sh9F)=aWwCd~Y)9ja(mGz{FS6f?4 zOLko!f}FE(9Pdvgs`Ka1H&VwzDH1@Ws;jFVKQENCP*ifm=$xRYrbfIJ;n?y*1)5&R zA(1yYILL&9JP#c@l(xJL8#ZJ+J3FTX16vfi-?C-POZV^JpCn*wYwI*=P!GmSBR+~9 zsFUpTxqbWgX&S_Opn#2vCd>?ZB`007L68I871I(8CMPE=&Ye5=|B75f3ql$i8k*Ny zD=#naIe743kL7V*XcKrq2~!(4ZcJq|nH2k6_m+44`t?^s22!LEA8rr{IvuDqq zZ(US&qr~-Z-n`ju`9TijB4mbxgP|c;Ru|H4Jm!731 zIgp|6K>Rqm=5w$rJ2@_L@z#F^YhI!iJHUbWn(7@#SL6T}*nx$Gg>OLri~}bxG|9N3 zoyOVX-mcnIGUR4Ddh}?pZ!TQ8@ELf=C5Qg(kt0W*(O5K;0k(MtXMV~)6%`dJKIExg zx^(Gd=pGlJGK`-@fImw|G~^&3u=q3@9v*%hCtVH;14Q8-3Ut1x zR2oC4gL*z+W0+=XuNKKb5&02v%(idezSq&emroCOuu6fGMjZIS7D$G;xYa@Lcj=0P zAF4>4gPaAFAu0K`;aa~H{J*7xaRl7yqqd=+TBVM0yZj=_CbSQ1gsasLrNtj7{x#M* z;+3`-9cvSEfI4Tm1ml{PDRsCc&9ZdrlKZy4gJAvpiW+mW^93OtOG6I0A{2?JAF0)` zK+?B7_CpThcBpUQN3Q^ia=_@+WFP?Xt&Vs}bQuv^xE<#NEb1FeM{+*^Uw_T_LHwHZ z!&t$1%^j?HiB^z&QKoBNp`xN#fzrB9AheBFP>4q|9T^#^oSB*Fhw&SD{>2&8+11rG zS_)X=9>DFb4&UvD0hlcX6uMLRA-?~>fdjF>qaiQv@9+N{v?~VpFC@}_`0(NHV`LFl z;tb%@d;(xDcpjWQH0=Q@UIY~h(-!<5Uxu%4pWv1MCSQtq@ScFpceq#ohVN!=xZ_Rv z7t@l<0O2@PVU{i_fzRwnwS8qs6ebyF@0-??^eIU z<^?2Dhu@Z8qrcTJfS&+;fOopBt?fhh^R>hT>>ltP6bis5Am>Pgr_yuyCr>?2x3AFO zESaS!+vXqYp=3TYX|MJ^dBX8_gQ-_X$DUS!0< zOgfx6Tk@xC zb$z^iOQw*&!~}4i?ZyAbj=^!(IxnI>#h0M;RtraXmah93S@IcWQ+-VP>pp@10J|Yh UjAPrb(EtDd07*qoM6N<$f?&o(MgRZ+ literal 0 HcmV?d00001 diff --git a/public/h5/static/tab/icon3_cur.png b/public/h5/static/tab/icon3_cur.png new file mode 100644 index 0000000000000000000000000000000000000000..2cf7ad683d96fcd74f47fb68579f0c41c4339f57 GIT binary patch literal 2099 zcmbVN3v3f*9KWHP+i+^aST=~}xPjY*>pj|D+k@`e$tHB}QJ}yiyWV|WkF~whyRBVC zEfX>((MSYD;xrH+z+^Bmh&)6TW`OWmBs>hb!E}O;F*09BP`~TC3T7a&$=!W-_xpao z-~Vy{wv?AmPe~q^j37u#X^Ev0UP<*xOn~P(qpml@OOmf-u8bg~$EZgfvhK}v1c^T- z+U$zmI+NukkA@Q@2hapPK8Qw;X?Z~($JYS`b%0vYYsRkb*^i;3V8-U?t)$gg1YBZC z$PcPQWi~!k$D0H!FBhE_WFdhEC>$E}xVWuNpbC5#n4zL*&@j;`Jpg$r;WI< zTG>*stZ-f)lv>Of3|k|L0xOUtsnu(pIL#RKxQ-HxxPzy8oEIFV;9&HOj@AwDw@7@w zT3mJiP^$|P4>|r()$4f!06KshoCXSaICLa#(lbt+HyU^?MF9igV{V@Ii|}jX+_$o- zt^~*kXn`R)6TtOG65u+g!HIJ^PLDGtk`r`Vo@a~>wV@+D!j_0KtX^aE6R84=qARzE zM%seqc(vWl7_ZhD2w3#7I6^+|NjbVd-~y2JF2x^GmnEkX;QXMV7Uu3=`ir=ef0=8z zyZd{q=8&zC+~3xZ|I>XmIlPPW)&e+02~3TLP-o3hX^4MUE%NS`xik!i!%khs1}(ga zjcVY9)P6XKL*B!U2r??Z)KXw`E&1upR99+6YUj0X_bR2LGO?-f)kKD2zPeF3#eJ%9 z%a0!>FQ3=4`kjg?i^Fz%Qq$^}v*)$ctVeT}qTI@G6Pnl%$KlTEwAR)y+U2X82M^GJ zepC0ygWaurv{`RF*I|6Oyk$YdD&^;i=g#*uPA3k(!iGw-j$SvF4gS&Fed&rlFYC(I z%#8H!HdZaZ_S)7obmzSA*>$O5^V*C<>Emn6k6oOUTNAi2ii&%00BPPam@%!hoh?3s z?Bp`K>z-eumAZESw&8`~6!3pB?U{W*He zQxkGe4^$sKwqfbX6H7F|_R7o7AKf*3O=>UbH$T)fqu@B!Zp)dSux<9W4c~{lFQT9H z9c-WR_W0Gdgn>sU&svePx#L}ge>W=%~1DgXcg2mk?xX#fNO00031000^Q000001E2u_0{{R30RRC20H6W@ z1ONa40RR91FrWhf1ONa40RR91FaQ7m0NXcg3;+NJwMj%lRA>doSzAw3R}>y#xTFdS z1cQ)3z`LYgAW8@k0jo(Xs8#7L=|hdA_6O9YZJMSr(Q4oNQqw;8)@m%2#!6or1O+KI zK~V65LV^WjNI(&5DL4ClhgpYx_M9_krZdy-WY1cA-PgYFGchk-yomGIlvtHkS64TK zI!KyV7`JZSic3yTW;2^VF;1oojh>#K8A`Fl#>O6paG#+uI5=oB=GmTZM^k20jHtf8 z-qbXsN=ZraS(yicO);w8-d@9uL}-}uCFXhX;K2|~wi?Empj|zC_U!wxlA!bad^a{W z9-f<ckbL_l_t2K2TX)P zFMcK;JrynNtG*BtQa*EWcbCZD8|RfS3uzs+ngqZ#t)L50-ivET5@x9uV87bq|lQN zxtA>Nf@oNJERg*9^XCU;iisRLZ@8wWCRf^a&@}^2^uE5nzeSlNq!)B}qCSB{#&6~c zLm+mr_c#ls%A8jrWkg1;TefVeFd8;LehzNly!joL-5WNt77`rwfKaz# z!-iws-QB+c-??$)M!#8Uad7+g?Z2QHPfHRZaTYaltnsZNr67=B4W{x#J;+Y3UAuNM z$rg{8DTZ-H-bBTr&(ZH>_yUCLu zR2RW;AqL-=IjT{w*Si&tI#rsEyE*M+ue)20dRH(NQ-dL^BFF=hu{r>Uyc(a}+c^-zLt zYcDP?j@&|1orH=990OceQgH+Q3)c-lVjU1>gwt`j??O> zs-zlL>AddZ!Sf^F>ndGvO9n$jLkZXxo-;ZQXrKa_@9{wWi87F_=DCbB`Bh!Vl7YM( zRUtZKQ8OqgDDd|8_oq)zPSW6q;1y7YFJd@rT(f4)Z)~$z9Nf8c$9S&Iv*v&89N<9r z-o1PG84M?htQr8E?8J5Q5_y&`Vz;P*qO3zaKfXegi}6r+0-kYu5E%qiv2x|gD`p!8 z&Ca&DAvik3TG)m)u?>cfi!nmpG}N|bB{KuP!jOkm=+e%~$!Q1eP0~SY6~1bmxWyX; znetLHq^pRt=wm?|j?SN#FJE3noaN!ehc)xq!mnkJ7s!#rEL{{ivkR7@p232v=wMOr zq3DFYVAV277s&q}<1K1rWaKC&`4LpR`^IDJSf`gQTXrhYZ7SFZA~uCCT)0q(OKUTN zeo1%E70Xph$Raord5)D@UR_-s@b0PGQ`-?qprN7R7=rsqH5>@n6G9><_U+sEX&@aZ zUf2m-ym+x}c6PQ&bs#;g?u|lI|92Ns1H*khd17MXD5l8~+{^vW z0nqsfJB>d}PPx5_RJ%@i#74l$LA2>%??QTjH*Va>!J^K?*2-(=5=^J1==H^b&oEua zLE}^F2|myFV+8)t^+RokJOX@K;i^!LAl`wq*8m;A9R?c=7W>Z4n>QP8lwfs4E~o@B zuMZ(mK2D9tt0)V!+ZKgK2wn5~pwfvW_*d{bw;7*+OEGdSK3W-QS9MvtcEAK+v>wj) z=mF{hx$%9DN3ew+#2*WOf#J1TjDLIDBtY87`BIA4Wrxt5pko5~r{g-5UUpIpM7K*2 zUt)6cARNZ`aO10iBuzVl69y{apIo)*Ily^wJ@Z&o zozdyicDzdP8X!l%4uwY;YDG`hK6>;hjRC-JIc@9qR2t+fBv?D>m;m{<~Q5Ldxyh1r>5cZA(pc7~T& z>m#^=A;j7Sn&fJO9kw z|K9sO<~x%g7xT-h-u~Vqk!Whv5?wqvqr%}e3H&FxJ#m85Wc!lUoJiy|T{tF)_U@l4 z5>33t7!&zK!!n#?trCJ_O|&H2Y6obMXrVUSPLQcIFE-I;#-@S#YU>~|LusG{%zzr~ zk+g+bvcW;G*brkRH>8qk3erZ17iQytz)JIkINO?LGwQw7O#KRCiRRb*& z1jUJlIB_KFpv7v56edwrCRVB?go04W)e04{KrBOLVF)TmPz5ZN;+PCaG4bdR0)h@I z1&`M)9+d-E8py))b{s*nva%#uatZ4&BT}_mji53_CW8S2=5lO2kqz6pkTC`w&5;hq z&NHk{EHDx#HiOqd!0bpAR=bPV#*JnQoY+ZqX`)o%^7p-G!jp9Y=(oR z^_jqCh!Bk(k95!k&pM1On>JRfxG~FO877fR#d8e=$=HM_<~_5A))73dfk5FDFd7D< zGNUvMm#T0XIv-WxC^`Z)uoRP$Gagiq;u!WE6f_P+@WhXTDH2a%9aaLw%vcFCjo58w zNbJfa9?7P$4j>HN$%kDS40x1{;|Uu{N9i;W2wTE16i%SZ6qPbe0V^;S0f&*GZ%lFw zg_TOR6r+>`g~_O~{W_M+5Q;18A8B=pB>~6(R0)|%O{*vjCX^%!Q&^ZBCMbmpR;#20 zMyO~xp`^#yVjT>4+laJhSp`=VU^J=ZQiVc6!g8fT4Tlj@z(WITaz%)C9v!7yWVCGQ{XE)oK>u^k z{?_x2l8Qq|mV3BweP55xrBuu9d#}j&=(7;A6G<>34mY*_PUq9}>Bt zWa7K0EPswao_D%z)rsO$D_YkleS6@3^R&-m$iRVu-}ooxpI`W>Z16+hpo`3`-Y@Qb z=Be=b6L##4hL*@ZR}^ox2gG#Dp25K<{N1)!1?NiRQLU3y6+Ahzvvbp%ui3plU)k-~ z;dz-Y>E5cIxGdS9oHKOoQr)f{Yu&b|2ke`F)%tc#+gYD~{;V?T$^6#BsvXDk0^GKj z`kkIUu=wCd*I!MJ@AEsoU@;U+-+Q?dj(od0$Kf^elXnhh9t?21L0?}U9_u@yTz>E9 zfl%k>-SIh}dT_hSWe%^z->u*Gn(9c(mg3Zq@PdErtvWd^$>)s6#~sTT7~fj6qo#Q! zbHikt6#o0V=_lK?H>t*!&WBU3rtA9rawYe#VYC1CWq{>=x)-vhJoE&;pj~%r<>jk~ zE{K#JGuArc#-yD-s^DH^aC_@M$!%l3*Mo-4mi*e;f2Y%fwC&`%<<4IOPT1EkK6quQ z=Io72Ti_bc z9@)ih9%+|yvrBwW2C4G?P^xJ&cl*{y2SzyUN$*kHJkAw4E57c@*Y@vepI;kTi*M>H zsA4D0=?zUT+IX*R^DEyRu9;fBG(4kG{+(~cZy(&6HCS=?*6rB(3zMjw{rZQ;=RMMX z8rX<`jj#JEpsRX%>$<&fs9RFw8x?tWNV-oM$nZpx*+{-NNUV;iN_FR{*{IS1is|62BVh6%1{)O-kzJW^{r*y#>=Y*XJtMzfAdGnfv$lwQ-(Y?CKM(x`@1WPwN0&LHGjQz z*1$`@ipcA#-lcKImbyp9ti4Ip&1=#JXFl2J-<$3pbZC>?g~GdcYCe#C^2OtXX7cI9 ywh0%4bv^lu8d_GLTeG*>Klx7ZmrBr|Pu*|o_7wl8NhTFOj-vE2x?`^=Z~ZSYv5sv3 literal 0 HcmV?d00001