Files
2025-06-27 17:42:38 +08:00

1 line
6.7 KiB
JavaScript

(function(){"use strict";var e={195:function(e,t,n){var r=n(7113),o=n(7669);function a(e,t,n,r,a,i){const u=(0,o.up)("router-view");return(0,o.wg)(),(0,o.j4)(u)}n(2106);var i=n(9757),u=n(4730),c=(0,o.aZ)({setup(){const e=(0,i.tv)();let t=(0,u.e)("p");t&&e.push({path:"/"+t})}}),l=n(6974);const f=(0,l.Z)(c,[["render",a]]);var s=f;const d=[{path:"/sleep",name:"sleep",component:()=>Promise.all([n.e(456),n.e(335)]).then(n.bind(n,335)),meta:{title:"睡眠"}},{path:"/stepNumber",name:"stepNumber",component:()=>Promise.all([n.e(456),n.e(535)]).then(n.bind(n,4535)),meta:{title:"步数"}},{path:"/heartRate",name:"heartRate",component:()=>Promise.all([n.e(456),n.e(697)]).then(n.bind(n,8697)),meta:{title:"心率"}},{path:"/oxygenSaturation",name:"oxygenSaturation",component:()=>Promise.all([n.e(456),n.e(586)]).then(n.bind(n,8586)),meta:{title:"血氧饱和度"}},{path:"/pressure",name:"pressure",component:()=>Promise.all([n.e(456),n.e(393)]).then(n.bind(n,4393)),meta:{title:"压力"}},{path:"/temperature",name:"temperature",component:()=>Promise.all([n.e(456),n.e(370)]).then(n.bind(n,9370)),meta:{title:"体温"}},{path:"/weekly",name:"weekly",component:()=>Promise.all([n.e(456),n.e(190)]).then(n.bind(n,4190)),meta:{title:"周报"}},{path:"/monthly",name:"monthly",component:()=>Promise.all([n.e(456),n.e(577)]).then(n.bind(n,6577)),meta:{title:"月报"}}],p=(0,i.p7)({history:(0,i.r5)(""),routes:d});var m=p,h=n(3075),b=(0,h.MT)({state:{},getters:{},mutations:{},actions:{},modules:{}});n(3461);const g=e=>e.toString().padStart(2,"0"),v=()=>{let e=new Date,t=e.getFullYear(),n=g(e.getMonth()+1),r=g(e.getDate());return t+"-"+n+"-"+r},y=(e,t,n)=>{let r=new Date(e+" 00:00:00");"before"===t&&r.setDate(r.getDate()-n),"after"===t&&r.setDate(r.getDate()+n);let o=r.getFullYear(),a=g(r.getMonth()+1),i=g(r.getDate());return o+"-"+a+"-"+i};var w={getCurrentDay:v,changeDay:y};const k=(0,r.ri)(s);k.use(b),k.use(m),k.config.globalProperties.$times=w,k.mount("#app")},4730:function(e,t,n){n.d(t,{e:function(){return r}});const r=e=>{let t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!=n?decodeURIComponent(n[2]):null}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.m=e,function(){var e=[];n.O=function(t,r,o,a){if(!r){var i=1/0;for(f=0;f<e.length;f++){r=e[f][0],o=e[f][1],a=e[f][2];for(var u=!0,c=0;c<r.length;c++)(!1&a||i>=a)&&Object.keys(n.O).every((function(e){return n.O[e](r[c])}))?r.splice(c--,1):(u=!1,a<i&&(i=a));if(u){e.splice(f--,1);var l=o();void 0!==l&&(t=l)}}return t}a=a||0;for(var f=e.length;f>0&&e[f-1][2]>a;f--)e[f]=e[f-1];e[f]=[r,o,a]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))}}(),function(){n.u=function(e){return"js/"+e+"."+{190:"bced9b91",335:"4af54feb",370:"0e49d858",393:"1ce8689b",456:"bbde9104",535:"fce4d13f",577:"ebb7c67a",586:"da8c0231",697:"c61b754f"}[e]+".js"}}(),function(){n.miniCssF=function(e){return"css/"+e+"."+{190:"e1d73b90",335:"e5a8b767",370:"9de6db8a",393:"58c8310c",535:"9f77af7c",577:"42c55bcd",586:"d3e2f153",697:"0b3a435c"}[e]+".css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="ma:";n.l=function(r,o,a,i){if(e[r])e[r].push(o);else{var u,c;if(void 0!==a)for(var l=document.getElementsByTagName("script"),f=0;f<l.length;f++){var s=l[f];if(s.getAttribute("src")==r||s.getAttribute("data-webpack")==t+a){u=s;break}}u||(c=!0,u=document.createElement("script"),u.charset="utf-8",u.timeout=120,n.nc&&u.setAttribute("nonce",n.nc),u.setAttribute("data-webpack",t+a),u.src=r),e[r]=[o];var d=function(t,n){u.onerror=u.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],u.parentNode&&u.parentNode.removeChild(u),o&&o.forEach((function(e){return e(n)})),t)return t(n)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=d.bind(null,u.onerror),u.onload=d.bind(null,u.onload),c&&document.head.appendChild(u)}}}(),function(){n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){n.p=""}(),function(){if("undefined"!==typeof document){var e=function(e,t,n,r,o){var a=document.createElement("link");a.rel="stylesheet",a.type="text/css";var i=function(n){if(a.onerror=a.onload=null,"load"===n.type)r();else{var i=n&&("load"===n.type?"missing":n.type),u=n&&n.target&&n.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+u+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=i,c.request=u,a.parentNode&&a.parentNode.removeChild(a),o(c)}};return a.onerror=a.onload=i,a.href=t,n?n.parentNode.insertBefore(a,n.nextSibling):document.head.appendChild(a),a},t=function(e,t){for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var o=n[r],a=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(a===e||a===t))return o}var i=document.getElementsByTagName("style");for(r=0;r<i.length;r++){o=i[r],a=o.getAttribute("data-href");if(a===e||a===t)return o}},r=function(r){return new Promise((function(o,a){var i=n.miniCssF(r),u=n.p+i;if(t(i,u))return o();e(r,u,null,o,a)}))},o={143:0};n.f.miniCss=function(e,t){var n={190:1,335:1,370:1,393:1,535:1,577:1,586:1,697:1};o[e]?t.push(o[e]):0!==o[e]&&n[e]&&t.push(o[e]=r(e).then((function(){o[e]=0}),(function(t){throw delete o[e],t})))}}}(),function(){var e={143:0};n.f.j=function(t,r){var o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{var a=new Promise((function(n,r){o=e[t]=[n,r]}));r.push(o[2]=a);var i=n.p+n.u(t),u=new Error,c=function(r){if(n.o(e,t)&&(o=e[t],0!==o&&(e[t]=void 0),o)){var a=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;u.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",u.name="ChunkLoadError",u.type=a,u.request=i,o[1](u)}};n.l(i,c,"chunk-"+t,t)}},n.O.j=function(t){return 0===e[t]};var t=function(t,r){var o,a,i=r[0],u=r[1],c=r[2],l=0;if(i.some((function(t){return 0!==e[t]}))){for(o in u)n.o(u,o)&&(n.m[o]=u[o]);if(c)var f=c(n)}for(t&&t(r);l<i.length;l++)a=i[l],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(f)},r=self["webpackChunkma"]=self["webpackChunkma"]||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}();var r=n.O(void 0,[998],(function(){return n(195)}));r=n.O(r)})();