@sjvair/monitor-map 1.2.64 → 1.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/monitor-map/MonitorDetails.css +1 -1
- package/dist/monitor-map/assets/{MonitorDetails.86e9623f.js → MonitorDetails.03153eb4.js} +1 -1
- package/dist/monitor-map/assets/{worker.9aa9c1d3.js → worker.30809057.js} +1 -1
- package/dist/monitor-map/assets/{worker.fa6038fd.js → worker.76e59e0d.js} +1 -1
- package/dist/monitor-map/assets/worker.e3868a15.js +1 -0
- package/dist/monitor-map/main.css +1 -1
- package/dist/monitor-map/sjvairMonitorMap.js +2 -2
- package/dist/widget/MonitorDetails.css +1 -1
- package/dist/widget/assets/{MonitorDetails.0ae04bf5.js → MonitorDetails.a2fa58b7.js} +1 -1
- package/dist/widget/assets/{worker.fded03e7.js → worker.13d5a241.js} +1 -1
- package/dist/widget/assets/worker.6293c41b.js +1 -0
- package/dist/widget/assets/{worker.30e90e40.js → worker.da2ca2dd.js} +1 -1
- package/dist/widget/main.css +1 -1
- package/dist/widget/sjvairMonitorMap.js +2 -2
- package/package.json +6 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
var __defProp=Object.defineProperty,__defNormalProp=(t,e,n)=>e in t?__defProp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,__publicField=(t,e,n)=>(__defNormalProp(t,"symbol"!=typeof e?e+"":e,n),n);!function(){"use strict";class t{constructor(t){__publicField(this,"id"),__publicField(this,"error"),__publicField(this,"success"),__publicField(this,"payload"),this.id=t}pass(t){this.success=!0,this.payload=t}fail(t){this.success=!1,this.error=t}}const e="00e400",n="ffff00",r="ff7e00",s="ff0000",o="8f3f97",i="7e0023";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var a={exports:{}};a.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",s="second",o="minute",i="hour",a="day",c="week",u="month",l="quarter",f="year",h="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},y=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:y,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),s=n%60;return(e<=0?"+":"-")+y(r,2,"0")+":"+y(s,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),s=e.clone().add(r,u),o=n-s<0,i=e.clone().add(r+(o?-1:1),u);return+(-(r+(n-s)/(o?s-i:i-s))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:u,y:f,w:c,d:a,D:h,h:i,m:o,s:s,ms:r,Q:l}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},w="en",b={};b[w]=g;var _=function(t){return t instanceof $},O=function t(e,n,r){var s;if(!e)return w;if("string"==typeof e){var o=e.toLowerCase();b[o]&&(s=o),n&&(b[o]=n,s=o);var i=e.split("-");if(!s&&i.length>1)return t(i[0])}else{var a=e.name;b[a]=e,s=a}return!r&&s&&(w=s),s||!r&&w},E=function(t,e){if(_(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new $(n)},S=v;S.l=O,S.i=_,S.w=function(t,e){return E(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var $=function(){function g(t){this.$L=O(t.locale,null,!0),this.parse(t)}var y=g.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(S.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(p);if(r){var s=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return S},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(t,e){var n=E(t);return this.startOf(e)<=n&&n<=this.endOf(e)},y.isAfter=function(t,e){return E(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<E(t)},y.$g=function(t,e,n){return S.u(t)?this[e]:this.set(n,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,e){var n=this,r=!!S.u(e)||e,l=S.p(t),d=function(t,e){var s=S.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?s:s.endOf(a)},p=function(t,e){return S.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},m=this.$W,g=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(l){case f:return r?d(1,0):d(31,11);case u:return r?d(1,g):d(0,g+1);case c:var w=this.$locale().weekStart||0,b=(m<w?m+7:m)-w;return d(r?y-b:y+(6-b),g);case a:case h:return p(v+"Hours",0);case i:return p(v+"Minutes",1);case o:return p(v+"Seconds",2);case s:return p(v+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var n,c=S.p(t),l="set"+(this.$u?"UTC":""),d=(n={},n[a]=l+"Date",n[h]=l+"Date",n[u]=l+"Month",n[f]=l+"FullYear",n[i]=l+"Hours",n[o]=l+"Minutes",n[s]=l+"Seconds",n[r]=l+"Milliseconds",n)[c],p=c===a?this.$D+(e-this.$W):e;if(c===u||c===f){var m=this.clone().set(h,1);m.$d[d](p),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},y.set=function(t,e){return this.clone().$set(t,e)},y.get=function(t){return this[S.p(t)]()},y.add=function(r,l){var h,d=this;r=Number(r);var p=S.p(l),m=function(t){var e=E(d);return S.w(e.date(e.date()+Math.round(t*r)),d)};if(p===u)return this.set(u,this.$M+r);if(p===f)return this.set(f,this.$y+r);if(p===a)return m(1);if(p===c)return m(7);var g=(h={},h[o]=e,h[i]=n,h[s]=t,h)[p]||1,y=this.$d.getTime()+r*g;return S.w(y,this)},y.subtract=function(t,e){return this.add(-1*t,e)},y.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=t||"YYYY-MM-DDTHH:mm:ssZ",s=S.z(this),o=this.$H,i=this.$m,a=this.$M,c=n.weekdays,u=n.months,l=function(t,n,s,o){return t&&(t[n]||t(e,r))||s[n].slice(0,o)},f=function(t){return S.s(o%12||12,t,"0")},h=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:S.s(a+1,2,"0"),MMM:l(n.monthsShort,a,u,3),MMMM:l(u,a),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,c,2),ddd:l(n.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(o),HH:S.s(o,2,"0"),h:f(1),hh:f(2),a:h(o,i,!0),A:h(o,i,!1),m:String(i),mm:S.s(i,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:s};return r.replace(m,(function(t,e){return e||p[t]||s.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,h,d){var p,m=S.p(h),g=E(r),y=(g.utcOffset()-this.utcOffset())*e,v=this-g,w=S.m(this,g);return w=(p={},p[f]=w/12,p[u]=w,p[l]=w/3,p[c]=(v-y)/6048e5,p[a]=(v-y)/864e5,p[i]=v/n,p[o]=v/e,p[s]=v/t,p)[m]||v,d?w:S.a(w)},y.daysInMonth=function(){return this.endOf(u).$D},y.$locale=function(){return b[this.$L]},y.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=O(t,e,!0);return r&&(n.$L=r),n},y.clone=function(){return S.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},g}(),D=$.prototype;return E.prototype=D,[["$ms",r],["$s",s],["$m",o],["$H",i],["$W",a],["$M",u],["$y",f],["$D",h]].forEach((function(t){D[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),E.extend=function(t,e){return t.$i||(t(e,$,E),t.$i=!0),E},E.locale=O,E.isDayjs=_,E.unix=function(t){return E(1e3*t)},E.en=b[w],E.Ls=b,E.p={},E}();var c=a.exports,u={exports:{}};!function(t,e){t.exports=function(t,e,n){t=t||{};var r=e.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(t,e,n,s){return r.fromToBase(t,e,n,s)}n.en.relativeTime=s,r.fromToBase=function(e,r,o,i,a){for(var c,u,l,f=o.$locale().relativeTime||s,h=t.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],d=h.length,p=0;p<d;p+=1){var m=h[p];m.d&&(c=i?n(e).diff(o,m.d,!0):o.diff(e,m.d,!0));var g=(t.rounding||Math.round)(Math.abs(c));if(l=c>0,g<=m.r||!m.r){g<=1&&p>0&&(m=h[p-1]);var y=f[m.l];a&&(g=a(""+g)),u="string"==typeof y?y.replace("%d",g):y(g,r,m.l,l);break}}if(r)return u;var v=l?f.future:f.past;return"function"==typeof v?v(u):v.replace("%s",u)},r.to=function(t,e){return o(t,e,this,!0)},r.from=function(t,e){return o(t,e,this)};var i=function(t){return t.$u?n.utc():n()};r.toNow=function(t){return this.to(i(this),t)},r.fromNow=function(t){return this.from(i(this),t)}}}(u);var l=u.exports,f={exports:{}};!function(t,e){var n,r;t.exports=(n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={},function(t,e,s){var o,i=function(t,e,n){void 0===n&&(n={});var s=new Date(t);return function(t,e){void 0===e&&(e={});var n=e.timeZoneName||"short",s=t+"|"+n,o=r[s];return o||(o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:n}),r[s]=o),o}(e,n).formatToParts(s)},a=function(t,e){for(var r=i(t,e),o=[],a=0;a<r.length;a+=1){var c=r[a],u=c.type,l=c.value,f=n[u];f>=0&&(o[f]=parseInt(l,10))}var h=o[3],d=24===h?0:h,p=o[0]+"-"+o[1]+"-"+o[2]+" "+d+":"+o[4]+":"+o[5]+":000",m=+t;return(s.utc(p).valueOf()-(m-=m%1e3))/6e4},c=e.prototype;c.tz=function(t,e){void 0===t&&(t=o);var n=this.utcOffset(),r=this.toDate(),i=r.toLocaleString("en-US",{timeZone:t}),a=Math.round((r-new Date(i))/1e3/60),c=s(i).$set("millisecond",this.$ms).utcOffset(15*-Math.round(r.getTimezoneOffset()/15)-a,!0);if(e){var u=c.utcOffset();c=c.add(n-u,"minute")}return c.$x.$timezone=t,c},c.offsetName=function(t){var e=this.$x.$timezone||s.tz.guess(),n=i(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return n&&n.value};var u=c.startOf;c.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return u.call(this,t,e);var n=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return u.call(n,t,e).tz(this.$x.$timezone,!0)},s.tz=function(t,e,n){var r=n&&e,i=n||e||o,c=a(+s(),i);if("string"!=typeof t)return s(t).tz(i);var u=function(t,e,n){var r=t-60*e*1e3,s=a(r,n);if(e===s)return[r,e];var o=a(r-=60*(s-e)*1e3,n);return s===o?[r,s]:[t-60*Math.min(s,o)*1e3,Math.max(s,o)]}(s.utc(t,r).valueOf(),c,i),l=u[0],f=u[1],h=s(l).utcOffset(f);return h.$x.$timezone=i,h},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(t){o=t}})}(f);var h=f.exports,d={exports:{}};!function(t,e){var n,r,s;t.exports=(n="minute",r=/[+-]\d\d(?::?\d\d)?/g,s=/([+-]|\d\d)/g,function(t,e,o){var i=e.prototype;o.utc=function(t){return new e({date:t,utc:!0,args:arguments})},i.utc=function(t){var e=o(this.toDate(),{locale:this.$L,utc:!0});return t?e.add(this.utcOffset(),n):e},i.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var a=i.parse;i.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),a.call(this,t)};var c=i.init;i.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else c.call(this)};var u=i.utcOffset;i.utcOffset=function(t,e){var o=this.$utils().u;if(o(t))return this.$u?0:o(this.$offset)?u.call(this):this.$offset;if("string"==typeof t&&null===(t=function(t){void 0===t&&(t="");var e=t.match(r);if(!e)return null;var n=(""+e[0]).match(s)||["-",0,0],o=n[0],i=60*+n[1]+ +n[2];return 0===i?0:"+"===o?i:-i}(t)))return this;var i=Math.abs(t)<=16?60*t:t,a=this;if(e)return a.$offset=i,a.$u=0===t,a;if(0!==t){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(i+c,n)).$offset=i,a.$x.$localOffset=c}else a=this.utc();return a};var l=i.format;i.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,e)},i.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var f=i.toDate;i.toDate=function(t){return"s"===t&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var h=i.diff;i.diff=function(t,e,n){if(t&&this.$u===t.$u)return h.call(this,t,e,n);var r=this.local(),s=o(t).local();return h.call(r,s,e,n)}})}(d);var p=d.exports;c.$defaultFormat=function(t){return c.utc(t).format("YYYY-MM-DD HH:mm:ss")},c.$prettyPrint=function(t){return c(t).format("h:mma dddd MMM DD, YYYY")};c.extend(l),c.extend(h),c.extend(((t,e,n)=>{e.prototype.skewedDiff=function(t,e){const n=Math.abs(this.diff(t))/6e4;return n>e?Math.floor(n):n<e?Math.ceil(n):n}})),c.extend(p);const m=c;function g(t,e){return function(){return t.apply(e,arguments)}}const{toString:y}=Object.prototype,{getPrototypeOf:v}=Object,w=(b=Object.create(null),t=>{const e=y.call(t);return b[e]||(b[e]=e.slice(8,-1).toLowerCase())});var b;const _=t=>(t=t.toLowerCase(),e=>w(e)===t),O=t=>e=>typeof e===t,{isArray:E}=Array,S=O("undefined");const $=_("ArrayBuffer");const D=O("string"),R=O("function"),T=O("number"),M=t=>null!==t&&"object"==typeof t,x=t=>{if("object"!==w(t))return!1;const e=v(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},j=_("Date"),A=_("File"),N=_("Blob"),C=_("FileList"),F=_("URLSearchParams");function P(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,s;if("object"!=typeof t&&(t=[t]),E(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),o=s.length;let i;for(r=0;r<o;r++)i=s[r],e.call(null,t[i],i,t)}}const k=(L="undefined"!=typeof Uint8Array&&v(Uint8Array),t=>L&&t instanceof L);var L;const U=_("HTMLFormElement"),B=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),z=_("RegExp"),I=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};P(n,((n,s)=>{!1!==e(n,s,t)&&(r[s]=n)})),Object.defineProperties(t,r)};var Y={isArray:E,isArrayBuffer:$,isBuffer:function(t){return null!==t&&!S(t)&&null!==t.constructor&&!S(t.constructor)&&R(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{const e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||y.call(t)===e||R(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&$(t.buffer),e},isString:D,isNumber:T,isBoolean:t=>!0===t||!1===t,isObject:M,isPlainObject:x,isUndefined:S,isDate:j,isFile:A,isBlob:N,isRegExp:z,isFunction:R,isStream:t=>M(t)&&R(t.pipe),isURLSearchParams:F,isTypedArray:k,isFileList:C,forEach:P,merge:function t(){const e={},n=(n,r)=>{x(e[r])&&x(n)?e[r]=t(e[r],n):x(n)?e[r]=t({},n):E(n)?e[r]=n.slice():e[r]=n};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&P(arguments[r],n);return e},extend:(t,e,n,{allOwnKeys:r}={})=>(P(e,((e,r)=>{n&&R(e)?t[r]=g(e,n):t[r]=e}),{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let s,o,i;const a={};if(e=e||{},null==t)return e;do{for(s=Object.getOwnPropertyNames(t),o=s.length;o-- >0;)i=s[o],r&&!r(i,t,e)||a[i]||(e[i]=t[i],a[i]=!0);t=!1!==n&&v(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:w,kindOfTest:_,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(E(t))return t;let e=t.length;if(!T(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:U,hasOwnProperty:B,hasOwnProp:B,reduceDescriptors:I,freezeMethods:t=>{I(t,((e,n)=>{const r=t[n];R(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach((t=>{n[t]=!0}))};return E(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e)};function H(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}Y.inherits(H,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const V=H.prototype,W={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{W[t]={value:t}})),Object.defineProperties(H,W),Object.defineProperty(V,"isAxiosError",{value:!0}),H.from=(t,e,n,r,s,o)=>{const i=Object.create(V);return Y.toFlatObject(t,i,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),H.call(i,t.message,e,n,r,s),i.cause=t,i.name=t.name,o&&Object.assign(i,o),i};var q="object"==typeof self?self.FormData:window.FormData;function J(t){return Y.isPlainObject(t)||Y.isArray(t)}function K(t){return Y.endsWith(t,"[]")?t.slice(0,-2):t}function Z(t,e,n){return t?t.concat(e).map((function(t,e){return t=K(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const Q=Y.toFlatObject(Y,{},null,(function(t){return/^is[A-Z]/.test(t)}));function X(t,e,n){if(!Y.isObject(t))throw new TypeError("target must be an object");e=e||new(q||FormData);const r=(n=Y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!Y.isUndefined(e[t])}))).metaTokens,s=n.visitor||l,o=n.dots,i=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&((c=e)&&Y.isFunction(c.append)&&"FormData"===c[Symbol.toStringTag]&&c[Symbol.iterator]);var c;if(!Y.isFunction(s))throw new TypeError("visitor must be a function");function u(t){if(null===t)return"";if(Y.isDate(t))return t.toISOString();if(!a&&Y.isBlob(t))throw new H("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(t)||Y.isTypedArray(t)?a&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function l(t,n,s){let a=t;if(t&&!s&&"object"==typeof t)if(Y.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(Y.isArray(t)&&function(t){return Y.isArray(t)&&!t.some(J)}(t)||Y.isFileList(t)||Y.endsWith(n,"[]")&&(a=Y.toArray(t)))return n=K(n),a.forEach((function(t,r){!Y.isUndefined(t)&&null!==t&&e.append(!0===i?Z([n],r,o):null===i?n:n+"[]",u(t))})),!1;return!!J(t)||(e.append(Z(s,n,o),u(t)),!1)}const f=[],h=Object.assign(Q,{defaultVisitor:l,convertValue:u,isVisitable:J});if(!Y.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!Y.isUndefined(n)){if(-1!==f.indexOf(n))throw Error("Circular reference detected in "+r.join("."));f.push(n),Y.forEach(n,(function(n,o){!0===(!(Y.isUndefined(n)||null===n)&&s.call(e,n,Y.isString(o)?o.trim():o,r,h))&&t(n,r?r.concat(o):[o])})),f.pop()}}(t),e}function G(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function tt(t,e){this._pairs=[],t&&X(t,this,e)}const et=tt.prototype;function nt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rt(t,e,n){if(!e)return t;const r=n&&n.encode||nt,s=n&&n.serialize;let o;if(o=s?s(e,n):Y.isURLSearchParams(e)?e.toString():new tt(e,n).toString(r),o){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}et.append=function(t,e){this._pairs.push([t,e])},et.toString=function(t){const e=t?function(e){return t.call(this,e,G)}:G;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};class st{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Y.forEach(this.handlers,(function(e){null!==e&&t(e)}))}}var ot={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},it="undefined"!=typeof URLSearchParams?URLSearchParams:tt,at=FormData;const ct=(()=>{let t;return("undefined"==typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&("undefined"!=typeof window&&"undefined"!=typeof document)})();var ut={isBrowser:!0,classes:{URLSearchParams:it,FormData:at,Blob:Blob},isStandardBrowserEnv:ct,protocols:["http","https","file","blob","url","data"]};function lt(t){function e(t,n,r,s){let o=t[s++];const i=Number.isFinite(+o),a=s>=t.length;if(o=!o&&Y.isArray(r)?r.length:o,a)return Y.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!i;r[o]&&Y.isObject(r[o])||(r[o]=[]);return e(t,n,r[o],s)&&Y.isArray(r[o])&&(r[o]=function(t){const e={},n=Object.keys(t);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],e[o]=t[o];return e}(r[o])),!i}if(Y.isFormData(t)&&Y.isFunction(t.entries)){const n={};return Y.forEachEntry(t,((t,r)=>{e(function(t){return Y.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),r,n,0)})),n}return null}var ft=ut.isStandardBrowserEnv?{write:function(t,e,n,r,s,o){const i=[];i.push(t+"="+encodeURIComponent(e)),Y.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),Y.isString(r)&&i.push("path="+r),Y.isString(s)&&i.push("domain="+s),!0===o&&i.push("secure"),document.cookie=i.join("; ")},read:function(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function ht(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}var dt=ut.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function r(n){let r=n;return t&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=r(window.location.href),function(t){const e=Y.isString(t)?r(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0};function pt(t,e,n){H.call(this,null==t?"canceled":t,H.ERR_CANCELED,e,n),this.name="CanceledError"}Y.inherits(pt,H,{__CANCEL__:!0});const mt=Y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const gt=Symbol("internals"),yt=Symbol("defaults");function vt(t){return t&&String(t).trim().toLowerCase()}function wt(t){return!1===t||null==t?t:Y.isArray(t)?t.map(wt):String(t)}function bt(t,e,n,r){return Y.isFunction(r)?r.call(this,e,n):Y.isString(e)?Y.isString(r)?-1!==e.indexOf(r):Y.isRegExp(r)?r.test(e):void 0:void 0}function _t(t,e){e=e.toLowerCase();const n=Object.keys(t);let r,s=n.length;for(;s-- >0;)if(r=n[s],e===r.toLowerCase())return r;return null}function Ot(t,e){t&&this.set(t),this[yt]=e||null}function Et(t,e){let n=0;const r=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s,o=0,i=0;return e=void 0!==e?e:1e3,function(a){const c=Date.now(),u=r[i];s||(s=c),n[o]=a,r[o]=c;let l=i,f=0;for(;l!==o;)f+=n[l++],l%=t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),c-s<e)return;const h=u&&c-u;return h?Math.round(1e3*f/h):void 0}}(50,250);return s=>{const o=s.loaded,i=s.lengthComputable?s.total:void 0,a=o-n,c=r(a);n=o;const u={loaded:o,total:i,progress:i?o/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&o<=i?(i-o)/c:void 0};u[e?"download":"upload"]=!0,t(u)}}function St(t){return new Promise((function(e,n){let r=t.data;const s=Ot.from(t.headers).normalize(),o=t.responseType;let i;function a(){t.cancelToken&&t.cancelToken.unsubscribe(i),t.signal&&t.signal.removeEventListener("abort",i)}Y.isFormData(r)&&ut.isStandardBrowserEnv&&s.setContentType(!1);let c=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",n=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";s.set("Authorization","Basic "+btoa(e+":"+n))}const u=ht(t.baseURL,t.url);function l(){if(!c)return;const r=Ot.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new H("Request failed with status code "+n.status,[H.ERR_BAD_REQUEST,H.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}((function(t){e(t),a()}),(function(t){n(t),a()}),{data:o&&"text"!==o&&"json"!==o?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:t,request:c}),c=null}if(c.open(t.method.toUpperCase(),rt(u,t.params,t.paramsSerializer),!0),c.timeout=t.timeout,"onloadend"in c?c.onloadend=l:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(l)},c.onabort=function(){c&&(n(new H("Request aborted",H.ECONNABORTED,t,c)),c=null)},c.onerror=function(){n(new H("Network Error",H.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const r=t.transitional||ot;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new H(e,r.clarifyTimeoutError?H.ETIMEDOUT:H.ECONNABORTED,t,c)),c=null},ut.isStandardBrowserEnv){const e=(t.withCredentials||dt(u))&&t.xsrfCookieName&&ft.read(t.xsrfCookieName);e&&s.set(t.xsrfHeaderName,e)}void 0===r&&s.setContentType(null),"setRequestHeader"in c&&Y.forEach(s.toJSON(),(function(t,e){c.setRequestHeader(e,t)})),Y.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),o&&"json"!==o&&(c.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&c.addEventListener("progress",Et(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",Et(t.onUploadProgress)),(t.cancelToken||t.signal)&&(i=e=>{c&&(n(!e||e.type?new pt(null,t,c):e),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(i),t.signal&&(t.signal.aborted?i():t.signal.addEventListener("abort",i)));const f=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(u);f&&-1===ut.protocols.indexOf(f)?n(new H("Unsupported protocol "+f+":",H.ERR_BAD_REQUEST,t)):c.send(r||null)}))}Object.assign(Ot.prototype,{set:function(t,e,n){const r=this;function s(t,e,n){const s=vt(e);if(!s)throw new Error("header name must be a non-empty string");const o=_t(r,s);(!o||!0===n||!1!==r[o]&&!1!==n)&&(r[o||e]=wt(t))}return Y.isPlainObject(t)?Y.forEach(t,((t,n)=>{s(t,n,e)})):s(e,t,n),this},get:function(t,e){if(!(t=vt(t)))return;const n=_t(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(Y.isFunction(e))return e.call(this,t,n);if(Y.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}},has:function(t,e){if(t=vt(t)){const n=_t(this,t);return!(!n||e&&!bt(0,this[n],n,e))}return!1},delete:function(t,e){const n=this;let r=!1;function s(t){if(t=vt(t)){const s=_t(n,t);!s||e&&!bt(0,n[s],s,e)||(delete n[s],r=!0)}}return Y.isArray(t)?t.forEach(s):s(t),r},clear:function(){return Object.keys(this).forEach(this.delete.bind(this))},normalize:function(t){const e=this,n={};return Y.forEach(this,((r,s)=>{const o=_t(n,s);if(o)return e[o]=wt(r),void delete e[s];const i=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(s):String(s).trim();i!==s&&delete e[s],e[i]=wt(r),n[i]=!0})),this},toJSON:function(t){const e=Object.create(null);return Y.forEach(Object.assign({},this[yt]||null,this),((n,r)=>{null!=n&&!1!==n&&(e[r]=t&&Y.isArray(n)?n.join(", "):n)})),e}}),Object.assign(Ot,{from:function(t){return Y.isString(t)?new this((t=>{const e={};let n,r,s;return t&&t.split("\n").forEach((function(t){s=t.indexOf(":"),n=t.substring(0,s).trim().toLowerCase(),r=t.substring(s+1).trim(),!n||e[n]&&mt[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e})(t)):t instanceof this?t:new this(t)},accessor:function(t){const e=(this[gt]=this[gt]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=vt(t);e[r]||(!function(t,e){const n=Y.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,s){return this[r].call(this,e,t,n,s)},configurable:!0})}))}(n,t),e[r]=!0)}return Y.isArray(t)?t.forEach(r):r(t),this}}),Ot.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),Y.freezeMethods(Ot.prototype),Y.freezeMethods(Ot);const $t={http:St,xhr:St};var Dt=t=>{if(Y.isString(t)){const e=$t[t];if(!t)throw Error(Y.hasOwnProp(t)?`Adapter '${t}' is not available in the build`:`Can not resolve adapter '${t}'`);return e}if(!Y.isFunction(t))throw new TypeError("adapter is not a function");return t};const Rt={"Content-Type":"application/x-www-form-urlencoded"};const Tt={transitional:ot,adapter:function(){let t;return"undefined"!=typeof XMLHttpRequest?t=Dt("xhr"):"undefined"!=typeof process&&"process"===Y.kindOf(process)&&(t=Dt("http")),t}(),transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,s=Y.isObject(t);s&&Y.isHTMLForm(t)&&(t=new FormData(t));if(Y.isFormData(t))return r&&r?JSON.stringify(lt(t)):t;if(Y.isArrayBuffer(t)||Y.isBuffer(t)||Y.isStream(t)||Y.isFile(t)||Y.isBlob(t))return t;if(Y.isArrayBufferView(t))return t.buffer;if(Y.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return X(t,new ut.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return ut.isNode&&Y.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((o=Y.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return X(o?{"files[]":t}:t,e&&new e,this.formSerializer)}}return s||r?(e.setContentType("application/json",!1),function(t,e,n){if(Y.isString(t))try{return(e||JSON.parse)(t),Y.trim(t)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||Tt.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(t&&Y.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(s){if(n){if("SyntaxError"===s.name)throw H.from(s,H.ERR_BAD_RESPONSE,this,null,this.response);throw s}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ut.classes.FormData,Blob:ut.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};function Mt(t,e){const n=this||Tt,r=e||n,s=Ot.from(r.headers);let o=r.data;return Y.forEach(t,(function(t){o=t.call(n,o,s.normalize(),e?e.status:void 0)})),s.normalize(),o}function xt(t){return!(!t||!t.__CANCEL__)}function jt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new pt}function At(t){jt(t),t.headers=Ot.from(t.headers),t.data=Mt.call(t,t.transformRequest);return(t.adapter||Tt.adapter)(t).then((function(e){return jt(t),e.data=Mt.call(t,t.transformResponse,e),e.headers=Ot.from(e.headers),e}),(function(e){return xt(e)||(jt(t),e&&e.response&&(e.response.data=Mt.call(t,t.transformResponse,e.response),e.response.headers=Ot.from(e.response.headers))),Promise.reject(e)}))}function Nt(t,e){e=e||{};const n={};function r(t,e){return Y.isPlainObject(t)&&Y.isPlainObject(e)?Y.merge(t,e):Y.isPlainObject(e)?Y.merge({},e):Y.isArray(e)?e.slice():e}function s(n){return Y.isUndefined(e[n])?Y.isUndefined(t[n])?void 0:r(void 0,t[n]):r(t[n],e[n])}function o(t){if(!Y.isUndefined(e[t]))return r(void 0,e[t])}function i(n){return Y.isUndefined(e[n])?Y.isUndefined(t[n])?void 0:r(void 0,t[n]):r(void 0,e[n])}function a(n){return n in e?r(t[n],e[n]):n in t?r(void 0,t[n]):void 0}const c={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a};return Y.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){const e=c[t]||s,r=e(t);Y.isUndefined(r)&&e!==a||(n[t]=r)})),n}Y.forEach(["delete","get","head"],(function(t){Tt.headers[t]={}})),Y.forEach(["post","put","patch"],(function(t){Tt.headers[t]=Y.merge(Rt)}));const Ct="1.1.3",Ft={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{Ft[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const Pt={};Ft.transitional=function(t,e,n){function r(t,e){return"[Axios v1.1.3] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,s,o)=>{if(!1===t)throw new H(r(s," has been removed"+(e?" in "+e:"")),H.ERR_DEPRECATED);return e&&!Pt[s]&&(Pt[s]=!0,console.warn(r(s," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,s,o)}};var kt={assertOptions:function(t,e,n){if("object"!=typeof t)throw new H("options must be an object",H.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const o=r[s],i=e[o];if(i){const e=t[o],n=void 0===e||i(e,o,t);if(!0!==n)throw new H("option "+o+" must be "+n,H.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new H("Unknown option "+o,H.ERR_BAD_OPTION)}},validators:Ft};const Lt=kt.validators;class Ut{constructor(t){this.defaults=t,this.interceptors={request:new st,response:new st}}request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Nt(this.defaults,e);const{transitional:n,paramsSerializer:r}=e;void 0!==n&&kt.assertOptions(n,{silentJSONParsing:Lt.transitional(Lt.boolean),forcedJSONParsing:Lt.transitional(Lt.boolean),clarifyTimeoutError:Lt.transitional(Lt.boolean)},!1),void 0!==r&&kt.assertOptions(r,{encode:Lt.function,serialize:Lt.function},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();const s=e.headers&&Y.merge(e.headers.common,e.headers[e.method]);s&&Y.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),e.headers=new Ot(e.headers,s);const o=[];let i=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(i=i&&t.synchronous,o.unshift(t.fulfilled,t.rejected))}));const a=[];let c;this.interceptors.response.forEach((function(t){a.push(t.fulfilled,t.rejected)}));let u,l=0;if(!i){const t=[At.bind(this),void 0];for(t.unshift.apply(t,o),t.push.apply(t,a),u=t.length,c=Promise.resolve(e);l<u;)c=c.then(t[l++],t[l++]);return c}u=o.length;let f=e;for(l=0;l<u;){const t=o[l++],e=o[l++];try{f=t(f)}catch(h){e.call(this,h);break}}try{c=At.call(this,f)}catch(h){return Promise.reject(h)}for(l=0,u=a.length;l<u;)c=c.then(a[l++],a[l++]);return c}getUri(t){return rt(ht((t=Nt(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}Y.forEach(["delete","get","head","options"],(function(t){Ut.prototype[t]=function(e,n){return this.request(Nt(n||{},{method:t,url:e,data:(n||{}).data}))}})),Y.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,s){return this.request(Nt(s||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Ut.prototype[t]=e(),Ut.prototype[t+"Form"]=e(!0)}));class Bt{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,r,s){n.reason||(n.reason=new pt(t,r,s),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new Bt((function(e){t=e})),cancel:t}}}const zt=function t(e){const n=new Ut(e),r=g(Ut.prototype.request,n);return Y.extend(r,Ut.prototype,n,{allOwnKeys:!0}),Y.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(Nt(e,n))},r}(Tt);zt.Axios=Ut,zt.CanceledError=pt,zt.CancelToken=Bt,zt.isCancel=xt,zt.VERSION=Ct,zt.toFormData=X,zt.AxiosError=H,zt.Cancel=zt.CanceledError,zt.all=function(t){return Promise.all(t)},zt.spread=function(t){return function(e){return t.apply(null,e)}},zt.isAxiosError=function(t){return Y.isObject(t)&&!0===t.isAxiosError},zt.formToJSON=t=>lt(Y.isHTMLForm(t)?new FormData(t):t);const It="leach"!=={VITE_BUILD_MODE:"mod",VITE_MAPTILER_KEY:"NvYyjimTkUQBEjVebxLV",VITE_OPENWEATHERMAP_KEY:"09b21cd89a07eaa465d3d9c2b2a6d0c3",BASE_URL:"/static/monitor-map/",MODE:"production",DEV:!1,PROD:!0}.VITE_REQUEST_MODE?"/api/1.0/":"https://www.sjvair.com/api/1.0/",Yt=zt.create({baseURL:It}),Ht=class{constructor(t,e,n,r){__publicField(this,"label"),__publicField(this,"latest"),__publicField(this,"levels",Ht.levels),__publicField(this,"name"),__publicField(this,"updateDuration"),this.label=e,this.name=t,this.updateDuration=n,r.latest&&this.name in r.latest&&(this.latest=Math.round(parseFloat(r.latest[this.name])))}};let Vt=Ht;function Wt(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s<r.length;s++)n[r[s]]=!0;return e?t=>!!n[t.toLowerCase()]:t=>!!n[t]}__publicField(Vt,"levels",[{min:-1/0,color:e},{min:12,color:n},{min:35,color:r},{min:55,color:s},{min:150,color:o},{min:250,color:i}]);const qt=Object.prototype.hasOwnProperty,Jt=(t,e)=>qt.call(t,e),Kt=Array.isArray,Zt=t=>"[object Map]"===te(t),Qt=t=>"symbol"==typeof t,Xt=t=>null!==t&&"object"==typeof t,Gt=Object.prototype.toString,te=t=>Gt.call(t),ee=t=>"string"==typeof t&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,ne=(t,e)=>!Object.is(t,e),re=t=>{const e=new Set(t);return e.w=0,e.n=0,e},se=new WeakMap;let oe;const ie=Symbol(""),ae=Symbol("");let ce=!0;const ue=[];function le(t,e,n){0}function fe(t,e,n,r,s,o){const i=se.get(t);if(!i)return;let a=[];if("clear"===e)a=[...i.values()];else if("length"===n&&Kt(t))i.forEach(((t,e)=>{("length"===e||e>=r)&&a.push(t)}));else switch(void 0!==n&&a.push(i.get(n)),e){case"add":Kt(t)?ee(n)&&a.push(i.get("length")):(a.push(i.get(ie)),Zt(t)&&a.push(i.get(ae)));break;case"delete":Kt(t)||(a.push(i.get(ie)),Zt(t)&&a.push(i.get(ae)));break;case"set":Zt(t)&&a.push(i.get(ie))}if(1===a.length)a[0]&&he(a[0]);else{const t=[];for(const e of a)e&&t.push(...e);he(re(t))}}function he(t,e){const n=Kt(t)?t:[...t];for(const r of n)r.computed&&de(r);for(const r of n)r.computed||de(r)}function de(t,e){(t!==oe||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const pe=Wt("__proto__,__v_isRef,__isVue"),me=new Set(Object.getOwnPropertyNames(Symbol).filter((t=>"arguments"!==t&&"caller"!==t)).map((t=>Symbol[t])).filter(Qt)),ge=be(),ye=be(!0),ve=we();function we(){const t={};return["includes","indexOf","lastIndexOf"].forEach((e=>{t[e]=function(...t){const n=tn(this);for(let e=0,s=this.length;e<s;e++)le();const r=n[e](...t);return-1===r||!1===r?n[e](...t.map(tn)):r}})),["push","pop","shift","unshift","splice"].forEach((e=>{t[e]=function(...t){ue.push(ce),ce=!1;const n=tn(this)[e].apply(this,t);return function(){const t=ue.pop();ce=void 0===t||t}(),n}})),t}function be(t=!1,e=!1){return function(n,r,s){if("__v_isReactive"===r)return!t;if("__v_isReadonly"===r)return t;if("__v_isShallow"===r)return e;if("__v_raw"===r&&s===(t?e?qe:We:e?Ve:He).get(n))return n;const o=Kt(n);if(!t&&o&&Jt(ve,r))return Reflect.get(ve,r,s);const i=Reflect.get(n,r,s);return(Qt(r)?me.has(r):pe(r))?i:(t||le(),e?i:rn(i)?o&&ee(r)?i:i.value:Xt(i)?t?Ze(i):Ke(i):i)}}function _e(t=!1){return function(e,n,r,s){let o=e[n];if(Xe(o)&&rn(o)&&!rn(r))return!1;if(!t&&(Ge(r)||Xe(r)||(o=tn(o),r=tn(r)),!Kt(e)&&rn(o)&&!rn(r)))return o.value=r,!0;const i=Kt(e)&&ee(n)?Number(n)<e.length:Jt(e,n),a=Reflect.set(e,n,r,s);return e===tn(s)&&(i?ne(r,o)&&fe(e,"set",n,r):fe(e,"add",n,r)),a}}const Oe={get:ge,set:_e(),deleteProperty:function(t,e){const n=Jt(t,e);t[e];const r=Reflect.deleteProperty(t,e);return r&&n&&fe(t,"delete",e,void 0),r},has:function(t,e){const n=Reflect.has(t,e);return Qt(e)&&me.has(e)||le(),n},ownKeys:function(t){return le(0,0,Kt(t)),Reflect.ownKeys(t)}},Ee={get:ye,set:(t,e)=>!0,deleteProperty:(t,e)=>!0},Se=t=>t,$e=t=>Reflect.getPrototypeOf(t);function De(t,e,n=!1,r=!1){const s=tn(t=t.__v_raw),o=tn(e);n||(e!==o&&le(),le());const{has:i}=$e(s),a=r?Se:n?nn:en;return i.call(s,e)?a(t.get(e)):i.call(s,o)?a(t.get(o)):void(t!==s&&t.get(e))}function Re(t,e=!1){const n=this.__v_raw,r=(tn(n),tn(t));return e||(t!==r&&le(),le()),t===r?n.has(t):n.has(t)||n.has(r)}function Te(t,e=!1){return t=t.__v_raw,!e&&le(tn(t)),Reflect.get(t,"size",t)}function Me(t){t=tn(t);const e=tn(this);return $e(e).has.call(e,t)||(e.add(t),fe(e,"add",t,t)),this}function xe(t,e){e=tn(e);const n=tn(this),{has:r,get:s}=$e(n);let o=r.call(n,t);o||(t=tn(t),o=r.call(n,t));const i=s.call(n,t);return n.set(t,e),o?ne(e,i)&&fe(n,"set",t,e):fe(n,"add",t,e),this}function je(t){const e=tn(this),{has:n,get:r}=$e(e);let s=n.call(e,t);s||(t=tn(t),s=n.call(e,t)),r&&r.call(e,t);const o=e.delete(t);return s&&fe(e,"delete",t,void 0),o}function Ae(){const t=tn(this),e=0!==t.size,n=t.clear();return e&&fe(t,"clear",void 0,void 0),n}function Ne(t,e){return function(n,r){const s=this,o=s.__v_raw,i=(tn(o),e?Se:t?nn:en);return!t&&le(),o.forEach(((t,e)=>n.call(r,i(t),i(e),s)))}}function Ce(t,e,n){return function(...r){const s=this.__v_raw,o=tn(s),i=Zt(o),a="entries"===t||t===Symbol.iterator&&i,c=s[t](...r),u=n?Se:e?nn:en;return!e&&le(),{next(){const{value:t,done:e}=c.next();return e?{value:t,done:e}:{value:a?[u(t[0]),u(t[1])]:u(t),done:e}},[Symbol.iterator](){return this}}}}function Fe(t){return function(...e){return"delete"!==t&&this}}function Pe(){const t={get(t){return De(this,t)},get size(){return Te(this)},has:Re,add:Me,set:xe,delete:je,clear:Ae,forEach:Ne(!1,!1)},e={get(t){return De(this,t,!1,!0)},get size(){return Te(this)},has:Re,add:Me,set:xe,delete:je,clear:Ae,forEach:Ne(!1,!0)},n={get(t){return De(this,t,!0)},get size(){return Te(this,!0)},has(t){return Re.call(this,t,!0)},add:Fe("add"),set:Fe("set"),delete:Fe("delete"),clear:Fe("clear"),forEach:Ne(!0,!1)},r={get(t){return De(this,t,!0,!0)},get size(){return Te(this,!0)},has(t){return Re.call(this,t,!0)},add:Fe("add"),set:Fe("set"),delete:Fe("delete"),clear:Fe("clear"),forEach:Ne(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((s=>{t[s]=Ce(s,!1,!1),n[s]=Ce(s,!0,!1),e[s]=Ce(s,!1,!0),r[s]=Ce(s,!0,!0)})),[t,n,e,r]}const[ke,Le,Ue,Be]=Pe();function ze(t,e){const n=e?t?Be:Ue:t?Le:ke;return(e,r,s)=>"__v_isReactive"===r?!t:"__v_isReadonly"===r?t:"__v_raw"===r?e:Reflect.get(Jt(n,r)&&r in e?n:e,r,s)}const Ie={get:ze(!1,!1)},Ye={get:ze(!0,!1)},He=new WeakMap,Ve=new WeakMap,We=new WeakMap,qe=new WeakMap;function Je(t){return t.__v_skip||!Object.isExtensible(t)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((t=>te(t).slice(8,-1))(t))}function Ke(t){return Xe(t)?t:Qe(t,!1,Oe,Ie,He)}function Ze(t){return Qe(t,!0,Ee,Ye,We)}function Qe(t,e,n,r,s){if(!Xt(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const o=s.get(t);if(o)return o;const i=Je(t);if(0===i)return t;const a=new Proxy(t,2===i?r:n);return s.set(t,a),a}function Xe(t){return!(!t||!t.__v_isReadonly)}function Ge(t){return!(!t||!t.__v_isShallow)}function tn(t){const e=t&&t.__v_raw;return e?tn(e):t}const en=t=>Xt(t)?Ke(t):t,nn=t=>Xt(t)?Ze(t):t;function rn(t){return!(!t||!0!==t.__v_isRef)}function sn(t){return function(t,e){if(rn(t))return t;return new on(t,e)}(t,!1)}class on{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:tn(t),this._value=e?t:en(t)}get value(){return this._value}set value(t){const e=this.__v_isShallow||Ge(t)||Xe(t);var n;t=e?t:tn(t),ne(t,this._rawValue)&&(this._rawValue=t,this._value=e?t:en(t),(n=tn(n=this)).dep&&he(n.dep))}}class an{constructor(t,e,n){__publicField(this,"id"),__publicField(this,"parameters"),__publicField(this,"taskName"),this.id=t,this.parameters=n,this.taskName=e}}new Event("MonitorsLoaded");const cn=new function(){return new Worker("/static/monitor-map/assets/worker.fa6038fd.js")},un=new class{constructor(t){__publicField(this,"globalTaskID",0),__publicField(this,"responders",new Map),__publicField(this,"worker"),this.worker=t,this.worker.onmessageerror=t=>console.error("worker failed: ",t),this.worker.onmessage=t=>{const{id:e,error:n,payload:r,success:s}=t.data,o=this.responders.get(e);s?o.resolve(r):n?o.reject(r):console.error(`Unknown response from background service "${this.constructor.name}"`,t),this.responders.delete(e)}}run(t,...e){const n=new an(++this.globalTaskID,t,JSON.parse(JSON.stringify(e)));return new Promise(((t,e)=>{this.responders.set(n.id,{resolve:t,reject:e}),this.worker.postMessage(n)}))}}(cn),ln=sn({});sn([]),console.queryMonitorsData=function(t){t=t.toLowerCase();const e=sn([]);return Yt(`https://api.maptiler.com/geocoding/${t}.json?key=NvYyjimTkUQBEjVebxLV`).then((t=>e.value=t.data.features.sort(((t,e)=>e.relevance-t.relevance)).slice(0,3))).catch((()=>console.log("Failed to fetch locations"))),{localResults:Object.values(ln.value).map((t=>t.data)).filter((e=>t.split(",").forEach((t=>Object.values(e).filter((t=>"string"==typeof t)).map((t=>t.toLowerCase())).some((e=>e.includes(t.trim().toLowerCase()))))))),externalResults:e}};const fn={pm25:"#00ccff",pm25_avg_60:"#000033"};Vt.levels.map((t=>[t.min,t.color]));function hn(t,e,n,r){r?t.push(m(r).utc().tz("America/Los_Angeles")):t.push(m(n.timestamp).utc().tz("America/Los_Angeles"));for(let s of e.keys())if(s in n){const t=e.get(s);let o;if(r)o=null;else{const t=parseFloat(n[s]);o=t>=0?t:0}t.push(o)}}Vt.levels.map((t=>[t.min,t.color])).push([1/0,"000000"]);var dn=Object.freeze({__proto__:null,fetchChartData:async function(t,e){return async function(t,e,n=1){return await un.run("fetchEntries",t,e,n)}(t,e).then((e=>{const n=[],r="PurpleAir"===t.data.device?2:60,s=new Map(Object.keys(fn).map((t=>[t,[]])));for(let t=e.length-1;t>=0;t--){const o=e[t];if(n.length>1){let t=m(n[n.length-1]);for(;t.skewedDiff(o.timestamp,r)>r+1;)t=t.add(r,"m"),hn(n,s,o,t)}hn(n,s,o)}return[n.map((t=>t.unix())),...s.values()].filter((t=>t.length))}))}});new class{constructor(e,n){__publicField(this,"serviceModule"),__publicField(this,"serviceModuleName"),this.serviceModule=n,this.serviceModuleName=e,self.addEventListener("message",(async e=>{const{id:n,taskName:r,parameters:s}=e.data;this.serviceModule[r];const o=new t(n);r in this.serviceModule?await this.serviceModule[r](...s).then((t=>o.pass(t))).catch((t=>o.fail(t.message))):o.fail(`Background task "${String(r)}" not found in "${this.serviceModuleName}" controller`),self.postMessage(o)}))}}("DataChartService",dn)}();
|
|
1
|
+
var __defProp=Object.defineProperty,__defNormalProp=(t,e,n)=>e in t?__defProp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,__publicField=(t,e,n)=>(__defNormalProp(t,"symbol"!=typeof e?e+"":e,n),n);!function(){"use strict";class t{constructor(t){__publicField(this,"id"),__publicField(this,"error"),__publicField(this,"success"),__publicField(this,"payload"),this.id=t}pass(t){this.success=!0,this.payload=t}fail(t){this.success=!1,this.error=t}}const e="00e400",n="ffff00",r="ff7e00",s="ff0000",o="8f3f97",i="7e0023";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var a={exports:{}};a.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",s="second",o="minute",i="hour",a="day",u="week",c="month",l="quarter",f="year",h="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},y=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:y,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),s=n%60;return(e<=0?"+":"-")+y(r,2,"0")+":"+y(s,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),s=e.clone().add(r,c),o=n-s<0,i=e.clone().add(r+(o?-1:1),c);return+(-(r+(n-s)/(o?s-i:i-s))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:f,w:u,d:a,D:h,h:i,m:o,s:s,ms:r,Q:l}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},w="en",b={};b[w]=g;var _=function(t){return t instanceof $},O=function t(e,n,r){var s;if(!e)return w;if("string"==typeof e){var o=e.toLowerCase();b[o]&&(s=o),n&&(b[o]=n,s=o);var i=e.split("-");if(!s&&i.length>1)return t(i[0])}else{var a=e.name;b[a]=e,s=a}return!r&&s&&(w=s),s||!r&&w},E=function(t,e){if(_(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new $(n)},S=v;S.l=O,S.i=_,S.w=function(t,e){return E(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var $=function(){function g(t){this.$L=O(t.locale,null,!0),this.parse(t)}var y=g.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(S.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(p);if(r){var s=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return S},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(t,e){var n=E(t);return this.startOf(e)<=n&&n<=this.endOf(e)},y.isAfter=function(t,e){return E(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<E(t)},y.$g=function(t,e,n){return S.u(t)?this[e]:this.set(n,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,e){var n=this,r=!!S.u(e)||e,l=S.p(t),d=function(t,e){var s=S.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?s:s.endOf(a)},p=function(t,e){return S.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},m=this.$W,g=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(l){case f:return r?d(1,0):d(31,11);case c:return r?d(1,g):d(0,g+1);case u:var w=this.$locale().weekStart||0,b=(m<w?m+7:m)-w;return d(r?y-b:y+(6-b),g);case a:case h:return p(v+"Hours",0);case i:return p(v+"Minutes",1);case o:return p(v+"Seconds",2);case s:return p(v+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var n,u=S.p(t),l="set"+(this.$u?"UTC":""),d=(n={},n[a]=l+"Date",n[h]=l+"Date",n[c]=l+"Month",n[f]=l+"FullYear",n[i]=l+"Hours",n[o]=l+"Minutes",n[s]=l+"Seconds",n[r]=l+"Milliseconds",n)[u],p=u===a?this.$D+(e-this.$W):e;if(u===c||u===f){var m=this.clone().set(h,1);m.$d[d](p),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},y.set=function(t,e){return this.clone().$set(t,e)},y.get=function(t){return this[S.p(t)]()},y.add=function(r,l){var h,d=this;r=Number(r);var p=S.p(l),m=function(t){var e=E(d);return S.w(e.date(e.date()+Math.round(t*r)),d)};if(p===c)return this.set(c,this.$M+r);if(p===f)return this.set(f,this.$y+r);if(p===a)return m(1);if(p===u)return m(7);var g=(h={},h[o]=e,h[i]=n,h[s]=t,h)[p]||1,y=this.$d.getTime()+r*g;return S.w(y,this)},y.subtract=function(t,e){return this.add(-1*t,e)},y.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=t||"YYYY-MM-DDTHH:mm:ssZ",s=S.z(this),o=this.$H,i=this.$m,a=this.$M,u=n.weekdays,c=n.months,l=function(t,n,s,o){return t&&(t[n]||t(e,r))||s[n].slice(0,o)},f=function(t){return S.s(o%12||12,t,"0")},h=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:S.s(a+1,2,"0"),MMM:l(n.monthsShort,a,c,3),MMMM:l(c,a),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,u,2),ddd:l(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(o),HH:S.s(o,2,"0"),h:f(1),hh:f(2),a:h(o,i,!0),A:h(o,i,!1),m:String(i),mm:S.s(i,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:s};return r.replace(m,(function(t,e){return e||p[t]||s.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,h,d){var p,m=S.p(h),g=E(r),y=(g.utcOffset()-this.utcOffset())*e,v=this-g,w=S.m(this,g);return w=(p={},p[f]=w/12,p[c]=w,p[l]=w/3,p[u]=(v-y)/6048e5,p[a]=(v-y)/864e5,p[i]=v/n,p[o]=v/e,p[s]=v/t,p)[m]||v,d?w:S.a(w)},y.daysInMonth=function(){return this.endOf(c).$D},y.$locale=function(){return b[this.$L]},y.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=O(t,e,!0);return r&&(n.$L=r),n},y.clone=function(){return S.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},g}(),D=$.prototype;return E.prototype=D,[["$ms",r],["$s",s],["$m",o],["$H",i],["$W",a],["$M",c],["$y",f],["$D",h]].forEach((function(t){D[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),E.extend=function(t,e){return t.$i||(t(e,$,E),t.$i=!0),E},E.locale=O,E.isDayjs=_,E.unix=function(t){return E(1e3*t)},E.en=b[w],E.Ls=b,E.p={},E}();var u=a.exports,c={exports:{}};!function(t,e){t.exports=function(t,e,n){t=t||{};var r=e.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(t,e,n,s){return r.fromToBase(t,e,n,s)}n.en.relativeTime=s,r.fromToBase=function(e,r,o,i,a){for(var u,c,l,f=o.$locale().relativeTime||s,h=t.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],d=h.length,p=0;p<d;p+=1){var m=h[p];m.d&&(u=i?n(e).diff(o,m.d,!0):o.diff(e,m.d,!0));var g=(t.rounding||Math.round)(Math.abs(u));if(l=u>0,g<=m.r||!m.r){g<=1&&p>0&&(m=h[p-1]);var y=f[m.l];a&&(g=a(""+g)),c="string"==typeof y?y.replace("%d",g):y(g,r,m.l,l);break}}if(r)return c;var v=l?f.future:f.past;return"function"==typeof v?v(c):v.replace("%s",c)},r.to=function(t,e){return o(t,e,this,!0)},r.from=function(t,e){return o(t,e,this)};var i=function(t){return t.$u?n.utc():n()};r.toNow=function(t){return this.to(i(this),t)},r.fromNow=function(t){return this.from(i(this),t)}}}(c);var l=c.exports,f={exports:{}};!function(t,e){var n,r;t.exports=(n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={},function(t,e,s){var o,i=function(t,e,n){void 0===n&&(n={});var s=new Date(t);return function(t,e){void 0===e&&(e={});var n=e.timeZoneName||"short",s=t+"|"+n,o=r[s];return o||(o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:n}),r[s]=o),o}(e,n).formatToParts(s)},a=function(t,e){for(var r=i(t,e),o=[],a=0;a<r.length;a+=1){var u=r[a],c=u.type,l=u.value,f=n[c];f>=0&&(o[f]=parseInt(l,10))}var h=o[3],d=24===h?0:h,p=o[0]+"-"+o[1]+"-"+o[2]+" "+d+":"+o[4]+":"+o[5]+":000",m=+t;return(s.utc(p).valueOf()-(m-=m%1e3))/6e4},u=e.prototype;u.tz=function(t,e){void 0===t&&(t=o);var n=this.utcOffset(),r=this.toDate(),i=r.toLocaleString("en-US",{timeZone:t}),a=Math.round((r-new Date(i))/1e3/60),u=s(i).$set("millisecond",this.$ms).utcOffset(15*-Math.round(r.getTimezoneOffset()/15)-a,!0);if(e){var c=u.utcOffset();u=u.add(n-c,"minute")}return u.$x.$timezone=t,u},u.offsetName=function(t){var e=this.$x.$timezone||s.tz.guess(),n=i(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return n&&n.value};var c=u.startOf;u.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return c.call(this,t,e);var n=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return c.call(n,t,e).tz(this.$x.$timezone,!0)},s.tz=function(t,e,n){var r=n&&e,i=n||e||o,u=a(+s(),i);if("string"!=typeof t)return s(t).tz(i);var c=function(t,e,n){var r=t-60*e*1e3,s=a(r,n);if(e===s)return[r,e];var o=a(r-=60*(s-e)*1e3,n);return s===o?[r,s]:[t-60*Math.min(s,o)*1e3,Math.max(s,o)]}(s.utc(t,r).valueOf(),u,i),l=c[0],f=c[1],h=s(l).utcOffset(f);return h.$x.$timezone=i,h},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(t){o=t}})}(f);var h=f.exports,d={exports:{}};!function(t,e){var n,r,s;t.exports=(n="minute",r=/[+-]\d\d(?::?\d\d)?/g,s=/([+-]|\d\d)/g,function(t,e,o){var i=e.prototype;o.utc=function(t){return new e({date:t,utc:!0,args:arguments})},i.utc=function(t){var e=o(this.toDate(),{locale:this.$L,utc:!0});return t?e.add(this.utcOffset(),n):e},i.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var a=i.parse;i.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),a.call(this,t)};var u=i.init;i.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else u.call(this)};var c=i.utcOffset;i.utcOffset=function(t,e){var o=this.$utils().u;if(o(t))return this.$u?0:o(this.$offset)?c.call(this):this.$offset;if("string"==typeof t&&null===(t=function(t){void 0===t&&(t="");var e=t.match(r);if(!e)return null;var n=(""+e[0]).match(s)||["-",0,0],o=n[0],i=60*+n[1]+ +n[2];return 0===i?0:"+"===o?i:-i}(t)))return this;var i=Math.abs(t)<=16?60*t:t,a=this;if(e)return a.$offset=i,a.$u=0===t,a;if(0!==t){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(i+u,n)).$offset=i,a.$x.$localOffset=u}else a=this.utc();return a};var l=i.format;i.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,e)},i.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var f=i.toDate;i.toDate=function(t){return"s"===t&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var h=i.diff;i.diff=function(t,e,n){if(t&&this.$u===t.$u)return h.call(this,t,e,n);var r=this.local(),s=o(t).local();return h.call(r,s,e,n)}})}(d);var p=d.exports;u.$defaultFormat=function(t){return u.utc(t).format("YYYY-MM-DD HH:mm:ss")},u.$prettyPrint=function(t){return u(t).format("h:mma dddd MMM DD, YYYY")};u.extend(l),u.extend(h),u.extend(((t,e,n)=>{e.prototype.skewedDiff=function(t,e){const n=Math.abs(this.diff(t))/6e4;return n>e?Math.floor(n):n<e?Math.ceil(n):n}})),u.extend(p);const m=u;function g(t,e){return function(){return t.apply(e,arguments)}}const{toString:y}=Object.prototype,{getPrototypeOf:v}=Object,w=(b=Object.create(null),t=>{const e=y.call(t);return b[e]||(b[e]=e.slice(8,-1).toLowerCase())});var b;const _=t=>(t=t.toLowerCase(),e=>w(e)===t),O=t=>e=>typeof e===t,{isArray:E}=Array,S=O("undefined");const $=_("ArrayBuffer");const D=O("string"),R=O("function"),T=O("number"),M=t=>null!==t&&"object"==typeof t,x=t=>{if("object"!==w(t))return!1;const e=v(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},A=_("Date"),j=_("File"),N=_("Blob"),C=_("FileList"),F=_("URLSearchParams");function P(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,s;if("object"!=typeof t&&(t=[t]),E(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),o=s.length;let i;for(r=0;r<o;r++)i=s[r],e.call(null,t[i],i,t)}}const k=(U="undefined"!=typeof Uint8Array&&v(Uint8Array),t=>U&&t instanceof U);var U;const L=_("HTMLFormElement"),B=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),z=_("RegExp"),I=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};P(n,((n,s)=>{!1!==e(n,s,t)&&(r[s]=n)})),Object.defineProperties(t,r)};var Y={isArray:E,isArrayBuffer:$,isBuffer:function(t){return null!==t&&!S(t)&&null!==t.constructor&&!S(t.constructor)&&R(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{const e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||y.call(t)===e||R(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&$(t.buffer),e},isString:D,isNumber:T,isBoolean:t=>!0===t||!1===t,isObject:M,isPlainObject:x,isUndefined:S,isDate:A,isFile:j,isBlob:N,isRegExp:z,isFunction:R,isStream:t=>M(t)&&R(t.pipe),isURLSearchParams:F,isTypedArray:k,isFileList:C,forEach:P,merge:function t(){const e={},n=(n,r)=>{x(e[r])&&x(n)?e[r]=t(e[r],n):x(n)?e[r]=t({},n):E(n)?e[r]=n.slice():e[r]=n};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&P(arguments[r],n);return e},extend:(t,e,n,{allOwnKeys:r}={})=>(P(e,((e,r)=>{n&&R(e)?t[r]=g(e,n):t[r]=e}),{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let s,o,i;const a={};if(e=e||{},null==t)return e;do{for(s=Object.getOwnPropertyNames(t),o=s.length;o-- >0;)i=s[o],r&&!r(i,t,e)||a[i]||(e[i]=t[i],a[i]=!0);t=!1!==n&&v(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:w,kindOfTest:_,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(E(t))return t;let e=t.length;if(!T(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:L,hasOwnProperty:B,hasOwnProp:B,reduceDescriptors:I,freezeMethods:t=>{I(t,((e,n)=>{const r=t[n];R(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach((t=>{n[t]=!0}))};return E(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e)};function H(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}Y.inherits(H,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const V=H.prototype,W={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{W[t]={value:t}})),Object.defineProperties(H,W),Object.defineProperty(V,"isAxiosError",{value:!0}),H.from=(t,e,n,r,s,o)=>{const i=Object.create(V);return Y.toFlatObject(t,i,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),H.call(i,t.message,e,n,r,s),i.cause=t,i.name=t.name,o&&Object.assign(i,o),i};var q="object"==typeof self?self.FormData:window.FormData;function J(t){return Y.isPlainObject(t)||Y.isArray(t)}function K(t){return Y.endsWith(t,"[]")?t.slice(0,-2):t}function Z(t,e,n){return t?t.concat(e).map((function(t,e){return t=K(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const Q=Y.toFlatObject(Y,{},null,(function(t){return/^is[A-Z]/.test(t)}));function X(t,e,n){if(!Y.isObject(t))throw new TypeError("target must be an object");e=e||new(q||FormData);const r=(n=Y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!Y.isUndefined(e[t])}))).metaTokens,s=n.visitor||l,o=n.dots,i=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&((u=e)&&Y.isFunction(u.append)&&"FormData"===u[Symbol.toStringTag]&&u[Symbol.iterator]);var u;if(!Y.isFunction(s))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(Y.isDate(t))return t.toISOString();if(!a&&Y.isBlob(t))throw new H("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(t)||Y.isTypedArray(t)?a&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function l(t,n,s){let a=t;if(t&&!s&&"object"==typeof t)if(Y.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(Y.isArray(t)&&function(t){return Y.isArray(t)&&!t.some(J)}(t)||Y.isFileList(t)||Y.endsWith(n,"[]")&&(a=Y.toArray(t)))return n=K(n),a.forEach((function(t,r){!Y.isUndefined(t)&&null!==t&&e.append(!0===i?Z([n],r,o):null===i?n:n+"[]",c(t))})),!1;return!!J(t)||(e.append(Z(s,n,o),c(t)),!1)}const f=[],h=Object.assign(Q,{defaultVisitor:l,convertValue:c,isVisitable:J});if(!Y.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!Y.isUndefined(n)){if(-1!==f.indexOf(n))throw Error("Circular reference detected in "+r.join("."));f.push(n),Y.forEach(n,(function(n,o){!0===(!(Y.isUndefined(n)||null===n)&&s.call(e,n,Y.isString(o)?o.trim():o,r,h))&&t(n,r?r.concat(o):[o])})),f.pop()}}(t),e}function G(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function tt(t,e){this._pairs=[],t&&X(t,this,e)}const et=tt.prototype;function nt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rt(t,e,n){if(!e)return t;const r=n&&n.encode||nt,s=n&&n.serialize;let o;if(o=s?s(e,n):Y.isURLSearchParams(e)?e.toString():new tt(e,n).toString(r),o){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}et.append=function(t,e){this._pairs.push([t,e])},et.toString=function(t){const e=t?function(e){return t.call(this,e,G)}:G;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};class st{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Y.forEach(this.handlers,(function(e){null!==e&&t(e)}))}}var ot={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},it="undefined"!=typeof URLSearchParams?URLSearchParams:tt,at=FormData;const ut=(()=>{let t;return("undefined"==typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&("undefined"!=typeof window&&"undefined"!=typeof document)})();var ct={isBrowser:!0,classes:{URLSearchParams:it,FormData:at,Blob:Blob},isStandardBrowserEnv:ut,protocols:["http","https","file","blob","url","data"]};function lt(t){function e(t,n,r,s){let o=t[s++];const i=Number.isFinite(+o),a=s>=t.length;if(o=!o&&Y.isArray(r)?r.length:o,a)return Y.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!i;r[o]&&Y.isObject(r[o])||(r[o]=[]);return e(t,n,r[o],s)&&Y.isArray(r[o])&&(r[o]=function(t){const e={},n=Object.keys(t);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],e[o]=t[o];return e}(r[o])),!i}if(Y.isFormData(t)&&Y.isFunction(t.entries)){const n={};return Y.forEachEntry(t,((t,r)=>{e(function(t){return Y.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),r,n,0)})),n}return null}var ft=ct.isStandardBrowserEnv?{write:function(t,e,n,r,s,o){const i=[];i.push(t+"="+encodeURIComponent(e)),Y.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),Y.isString(r)&&i.push("path="+r),Y.isString(s)&&i.push("domain="+s),!0===o&&i.push("secure"),document.cookie=i.join("; ")},read:function(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function ht(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}var dt=ct.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function r(n){let r=n;return t&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=r(window.location.href),function(t){const e=Y.isString(t)?r(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0};function pt(t,e,n){H.call(this,null==t?"canceled":t,H.ERR_CANCELED,e,n),this.name="CanceledError"}Y.inherits(pt,H,{__CANCEL__:!0});const mt=Y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const gt=Symbol("internals"),yt=Symbol("defaults");function vt(t){return t&&String(t).trim().toLowerCase()}function wt(t){return!1===t||null==t?t:Y.isArray(t)?t.map(wt):String(t)}function bt(t,e,n,r){return Y.isFunction(r)?r.call(this,e,n):Y.isString(e)?Y.isString(r)?-1!==e.indexOf(r):Y.isRegExp(r)?r.test(e):void 0:void 0}function _t(t,e){e=e.toLowerCase();const n=Object.keys(t);let r,s=n.length;for(;s-- >0;)if(r=n[s],e===r.toLowerCase())return r;return null}function Ot(t,e){t&&this.set(t),this[yt]=e||null}function Et(t,e){let n=0;const r=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s,o=0,i=0;return e=void 0!==e?e:1e3,function(a){const u=Date.now(),c=r[i];s||(s=u),n[o]=a,r[o]=u;let l=i,f=0;for(;l!==o;)f+=n[l++],l%=t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),u-s<e)return;const h=c&&u-c;return h?Math.round(1e3*f/h):void 0}}(50,250);return s=>{const o=s.loaded,i=s.lengthComputable?s.total:void 0,a=o-n,u=r(a);n=o;const c={loaded:o,total:i,progress:i?o/i:void 0,bytes:a,rate:u||void 0,estimated:u&&i&&o<=i?(i-o)/u:void 0};c[e?"download":"upload"]=!0,t(c)}}function St(t){return new Promise((function(e,n){let r=t.data;const s=Ot.from(t.headers).normalize(),o=t.responseType;let i;function a(){t.cancelToken&&t.cancelToken.unsubscribe(i),t.signal&&t.signal.removeEventListener("abort",i)}Y.isFormData(r)&&ct.isStandardBrowserEnv&&s.setContentType(!1);let u=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",n=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";s.set("Authorization","Basic "+btoa(e+":"+n))}const c=ht(t.baseURL,t.url);function l(){if(!u)return;const r=Ot.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new H("Request failed with status code "+n.status,[H.ERR_BAD_REQUEST,H.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}((function(t){e(t),a()}),(function(t){n(t),a()}),{data:o&&"text"!==o&&"json"!==o?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:t,request:u}),u=null}if(u.open(t.method.toUpperCase(),rt(c,t.params,t.paramsSerializer),!0),u.timeout=t.timeout,"onloadend"in u?u.onloadend=l:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(l)},u.onabort=function(){u&&(n(new H("Request aborted",H.ECONNABORTED,t,u)),u=null)},u.onerror=function(){n(new H("Network Error",H.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const r=t.transitional||ot;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new H(e,r.clarifyTimeoutError?H.ETIMEDOUT:H.ECONNABORTED,t,u)),u=null},ct.isStandardBrowserEnv){const e=(t.withCredentials||dt(c))&&t.xsrfCookieName&&ft.read(t.xsrfCookieName);e&&s.set(t.xsrfHeaderName,e)}void 0===r&&s.setContentType(null),"setRequestHeader"in u&&Y.forEach(s.toJSON(),(function(t,e){u.setRequestHeader(e,t)})),Y.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),o&&"json"!==o&&(u.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&u.addEventListener("progress",Et(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",Et(t.onUploadProgress)),(t.cancelToken||t.signal)&&(i=e=>{u&&(n(!e||e.type?new pt(null,t,u):e),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(i),t.signal&&(t.signal.aborted?i():t.signal.addEventListener("abort",i)));const f=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(c);f&&-1===ct.protocols.indexOf(f)?n(new H("Unsupported protocol "+f+":",H.ERR_BAD_REQUEST,t)):u.send(r||null)}))}Object.assign(Ot.prototype,{set:function(t,e,n){const r=this;function s(t,e,n){const s=vt(e);if(!s)throw new Error("header name must be a non-empty string");const o=_t(r,s);(!o||!0===n||!1!==r[o]&&!1!==n)&&(r[o||e]=wt(t))}return Y.isPlainObject(t)?Y.forEach(t,((t,n)=>{s(t,n,e)})):s(e,t,n),this},get:function(t,e){if(!(t=vt(t)))return;const n=_t(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(Y.isFunction(e))return e.call(this,t,n);if(Y.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}},has:function(t,e){if(t=vt(t)){const n=_t(this,t);return!(!n||e&&!bt(0,this[n],n,e))}return!1},delete:function(t,e){const n=this;let r=!1;function s(t){if(t=vt(t)){const s=_t(n,t);!s||e&&!bt(0,n[s],s,e)||(delete n[s],r=!0)}}return Y.isArray(t)?t.forEach(s):s(t),r},clear:function(){return Object.keys(this).forEach(this.delete.bind(this))},normalize:function(t){const e=this,n={};return Y.forEach(this,((r,s)=>{const o=_t(n,s);if(o)return e[o]=wt(r),void delete e[s];const i=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(s):String(s).trim();i!==s&&delete e[s],e[i]=wt(r),n[i]=!0})),this},toJSON:function(t){const e=Object.create(null);return Y.forEach(Object.assign({},this[yt]||null,this),((n,r)=>{null!=n&&!1!==n&&(e[r]=t&&Y.isArray(n)?n.join(", "):n)})),e}}),Object.assign(Ot,{from:function(t){return Y.isString(t)?new this((t=>{const e={};let n,r,s;return t&&t.split("\n").forEach((function(t){s=t.indexOf(":"),n=t.substring(0,s).trim().toLowerCase(),r=t.substring(s+1).trim(),!n||e[n]&&mt[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e})(t)):t instanceof this?t:new this(t)},accessor:function(t){const e=(this[gt]=this[gt]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=vt(t);e[r]||(!function(t,e){const n=Y.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,s){return this[r].call(this,e,t,n,s)},configurable:!0})}))}(n,t),e[r]=!0)}return Y.isArray(t)?t.forEach(r):r(t),this}}),Ot.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),Y.freezeMethods(Ot.prototype),Y.freezeMethods(Ot);const $t={http:St,xhr:St};var Dt=t=>{if(Y.isString(t)){const e=$t[t];if(!t)throw Error(Y.hasOwnProp(t)?`Adapter '${t}' is not available in the build`:`Can not resolve adapter '${t}'`);return e}if(!Y.isFunction(t))throw new TypeError("adapter is not a function");return t};const Rt={"Content-Type":"application/x-www-form-urlencoded"};const Tt={transitional:ot,adapter:function(){let t;return"undefined"!=typeof XMLHttpRequest?t=Dt("xhr"):"undefined"!=typeof process&&"process"===Y.kindOf(process)&&(t=Dt("http")),t}(),transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,s=Y.isObject(t);s&&Y.isHTMLForm(t)&&(t=new FormData(t));if(Y.isFormData(t))return r&&r?JSON.stringify(lt(t)):t;if(Y.isArrayBuffer(t)||Y.isBuffer(t)||Y.isStream(t)||Y.isFile(t)||Y.isBlob(t))return t;if(Y.isArrayBufferView(t))return t.buffer;if(Y.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return X(t,new ct.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return ct.isNode&&Y.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((o=Y.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return X(o?{"files[]":t}:t,e&&new e,this.formSerializer)}}return s||r?(e.setContentType("application/json",!1),function(t,e,n){if(Y.isString(t))try{return(e||JSON.parse)(t),Y.trim(t)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||Tt.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(t&&Y.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(s){if(n){if("SyntaxError"===s.name)throw H.from(s,H.ERR_BAD_RESPONSE,this,null,this.response);throw s}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ct.classes.FormData,Blob:ct.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};function Mt(t,e){const n=this||Tt,r=e||n,s=Ot.from(r.headers);let o=r.data;return Y.forEach(t,(function(t){o=t.call(n,o,s.normalize(),e?e.status:void 0)})),s.normalize(),o}function xt(t){return!(!t||!t.__CANCEL__)}function At(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new pt}function jt(t){At(t),t.headers=Ot.from(t.headers),t.data=Mt.call(t,t.transformRequest);return(t.adapter||Tt.adapter)(t).then((function(e){return At(t),e.data=Mt.call(t,t.transformResponse,e),e.headers=Ot.from(e.headers),e}),(function(e){return xt(e)||(At(t),e&&e.response&&(e.response.data=Mt.call(t,t.transformResponse,e.response),e.response.headers=Ot.from(e.response.headers))),Promise.reject(e)}))}function Nt(t,e){e=e||{};const n={};function r(t,e){return Y.isPlainObject(t)&&Y.isPlainObject(e)?Y.merge(t,e):Y.isPlainObject(e)?Y.merge({},e):Y.isArray(e)?e.slice():e}function s(n){return Y.isUndefined(e[n])?Y.isUndefined(t[n])?void 0:r(void 0,t[n]):r(t[n],e[n])}function o(t){if(!Y.isUndefined(e[t]))return r(void 0,e[t])}function i(n){return Y.isUndefined(e[n])?Y.isUndefined(t[n])?void 0:r(void 0,t[n]):r(void 0,e[n])}function a(n){return n in e?r(t[n],e[n]):n in t?r(void 0,t[n]):void 0}const u={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a};return Y.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){const e=u[t]||s,r=e(t);Y.isUndefined(r)&&e!==a||(n[t]=r)})),n}Y.forEach(["delete","get","head"],(function(t){Tt.headers[t]={}})),Y.forEach(["post","put","patch"],(function(t){Tt.headers[t]=Y.merge(Rt)}));const Ct="1.1.3",Ft={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{Ft[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const Pt={};Ft.transitional=function(t,e,n){function r(t,e){return"[Axios v1.1.3] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,s,o)=>{if(!1===t)throw new H(r(s," has been removed"+(e?" in "+e:"")),H.ERR_DEPRECATED);return e&&!Pt[s]&&(Pt[s]=!0,console.warn(r(s," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,s,o)}};var kt={assertOptions:function(t,e,n){if("object"!=typeof t)throw new H("options must be an object",H.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const o=r[s],i=e[o];if(i){const e=t[o],n=void 0===e||i(e,o,t);if(!0!==n)throw new H("option "+o+" must be "+n,H.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new H("Unknown option "+o,H.ERR_BAD_OPTION)}},validators:Ft};const Ut=kt.validators;class Lt{constructor(t){this.defaults=t,this.interceptors={request:new st,response:new st}}request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Nt(this.defaults,e);const{transitional:n,paramsSerializer:r}=e;void 0!==n&&kt.assertOptions(n,{silentJSONParsing:Ut.transitional(Ut.boolean),forcedJSONParsing:Ut.transitional(Ut.boolean),clarifyTimeoutError:Ut.transitional(Ut.boolean)},!1),void 0!==r&&kt.assertOptions(r,{encode:Ut.function,serialize:Ut.function},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();const s=e.headers&&Y.merge(e.headers.common,e.headers[e.method]);s&&Y.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),e.headers=new Ot(e.headers,s);const o=[];let i=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(i=i&&t.synchronous,o.unshift(t.fulfilled,t.rejected))}));const a=[];let u;this.interceptors.response.forEach((function(t){a.push(t.fulfilled,t.rejected)}));let c,l=0;if(!i){const t=[jt.bind(this),void 0];for(t.unshift.apply(t,o),t.push.apply(t,a),c=t.length,u=Promise.resolve(e);l<c;)u=u.then(t[l++],t[l++]);return u}c=o.length;let f=e;for(l=0;l<c;){const t=o[l++],e=o[l++];try{f=t(f)}catch(h){e.call(this,h);break}}try{u=jt.call(this,f)}catch(h){return Promise.reject(h)}for(l=0,c=a.length;l<c;)u=u.then(a[l++],a[l++]);return u}getUri(t){return rt(ht((t=Nt(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}Y.forEach(["delete","get","head","options"],(function(t){Lt.prototype[t]=function(e,n){return this.request(Nt(n||{},{method:t,url:e,data:(n||{}).data}))}})),Y.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,s){return this.request(Nt(s||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Lt.prototype[t]=e(),Lt.prototype[t+"Form"]=e(!0)}));class Bt{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,r,s){n.reason||(n.reason=new pt(t,r,s),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new Bt((function(e){t=e})),cancel:t}}}const zt=function t(e){const n=new Lt(e),r=g(Lt.prototype.request,n);return Y.extend(r,Lt.prototype,n,{allOwnKeys:!0}),Y.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(Nt(e,n))},r}(Tt);zt.Axios=Lt,zt.CanceledError=pt,zt.CancelToken=Bt,zt.isCancel=xt,zt.VERSION=Ct,zt.toFormData=X,zt.AxiosError=H,zt.Cancel=zt.CanceledError,zt.all=function(t){return Promise.all(t)},zt.spread=function(t){return function(e){return t.apply(null,e)}},zt.isAxiosError=function(t){return Y.isObject(t)&&!0===t.isAxiosError},zt.formToJSON=t=>lt(Y.isHTMLForm(t)?new FormData(t):t);const It="leach"!=={VITE_BUILD_MODE:"mod",VITE_MAPTILER_KEY:"NvYyjimTkUQBEjVebxLV",VITE_NREL_KEY:"BThVJdnwHbO8hDpQkBdeqsUoeXhQuMgMRgO3hvyo",VITE_OPENWEATHERMAP_KEY:"09b21cd89a07eaa465d3d9c2b2a6d0c3",BASE_URL:"/static/monitor-map/",MODE:"production",DEV:!1,PROD:!0}.VITE_REQUEST_MODE?"/api/1.0/":"https://www.sjvair.com/api/1.0/";zt.create({baseURL:It});const Yt=class{constructor(t,e,n,r){__publicField(this,"label"),__publicField(this,"latest"),__publicField(this,"levels",Yt.levels),__publicField(this,"name"),__publicField(this,"updateDuration"),this.label=e,this.name=t,this.updateDuration=n,r.latest&&this.name in r.latest&&(this.latest=Math.round(parseFloat(r.latest[this.name])))}};let Ht=Yt;function Vt(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s<r.length;s++)n[r[s]]=!0;return e?t=>!!n[t.toLowerCase()]:t=>!!n[t]}__publicField(Ht,"levels",[{min:-1/0,color:e},{min:12,color:n},{min:35,color:r},{min:55,color:s},{min:150,color:o},{min:250,color:i}]);const Wt=Object.prototype.hasOwnProperty,qt=(t,e)=>Wt.call(t,e),Jt=Array.isArray,Kt=t=>"[object Map]"===Gt(t),Zt=t=>"symbol"==typeof t,Qt=t=>null!==t&&"object"==typeof t,Xt=Object.prototype.toString,Gt=t=>Xt.call(t),te=t=>"string"==typeof t&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,ee=(t,e)=>!Object.is(t,e),ne=t=>{const e=new Set(t);return e.w=0,e.n=0,e},re=new WeakMap;let se;const oe=Symbol(""),ie=Symbol("");let ae=!0;const ue=[];function ce(t,e,n){0}function le(t,e,n,r,s,o){const i=re.get(t);if(!i)return;let a=[];if("clear"===e)a=[...i.values()];else if("length"===n&&Jt(t))i.forEach(((t,e)=>{("length"===e||e>=r)&&a.push(t)}));else switch(void 0!==n&&a.push(i.get(n)),e){case"add":Jt(t)?te(n)&&a.push(i.get("length")):(a.push(i.get(oe)),Kt(t)&&a.push(i.get(ie)));break;case"delete":Jt(t)||(a.push(i.get(oe)),Kt(t)&&a.push(i.get(ie)));break;case"set":Kt(t)&&a.push(i.get(oe))}if(1===a.length)a[0]&&fe(a[0]);else{const t=[];for(const e of a)e&&t.push(...e);fe(ne(t))}}function fe(t,e){const n=Jt(t)?t:[...t];for(const r of n)r.computed&&he(r);for(const r of n)r.computed||he(r)}function he(t,e){(t!==se||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const de=Vt("__proto__,__v_isRef,__isVue"),pe=new Set(Object.getOwnPropertyNames(Symbol).filter((t=>"arguments"!==t&&"caller"!==t)).map((t=>Symbol[t])).filter(Zt)),me=we(),ge=we(!0),ye=ve();function ve(){const t={};return["includes","indexOf","lastIndexOf"].forEach((e=>{t[e]=function(...t){const n=Ge(this);for(let e=0,s=this.length;e<s;e++)ce();const r=n[e](...t);return-1===r||!1===r?n[e](...t.map(Ge)):r}})),["push","pop","shift","unshift","splice"].forEach((e=>{t[e]=function(...t){ue.push(ae),ae=!1;const n=Ge(this)[e].apply(this,t);return function(){const t=ue.pop();ae=void 0===t||t}(),n}})),t}function we(t=!1,e=!1){return function(n,r,s){if("__v_isReactive"===r)return!t;if("__v_isReadonly"===r)return t;if("__v_isShallow"===r)return e;if("__v_raw"===r&&s===(t?e?We:Ve:e?He:Ye).get(n))return n;const o=Jt(n);if(!t&&o&&qt(ye,r))return Reflect.get(ye,r,s);const i=Reflect.get(n,r,s);return(Zt(r)?pe.has(r):de(r))?i:(t||ce(),e?i:nn(i)?o&&te(r)?i:i.value:Qt(i)?t?Ke(i):Je(i):i)}}function be(t=!1){return function(e,n,r,s){let o=e[n];if(Qe(o)&&nn(o)&&!nn(r))return!1;if(!t&&(Xe(r)||Qe(r)||(o=Ge(o),r=Ge(r)),!Jt(e)&&nn(o)&&!nn(r)))return o.value=r,!0;const i=Jt(e)&&te(n)?Number(n)<e.length:qt(e,n),a=Reflect.set(e,n,r,s);return e===Ge(s)&&(i?ee(r,o)&&le(e,"set",n,r):le(e,"add",n,r)),a}}const _e={get:me,set:be(),deleteProperty:function(t,e){const n=qt(t,e);t[e];const r=Reflect.deleteProperty(t,e);return r&&n&&le(t,"delete",e,void 0),r},has:function(t,e){const n=Reflect.has(t,e);return Zt(e)&&pe.has(e)||ce(),n},ownKeys:function(t){return ce(0,0,Jt(t)),Reflect.ownKeys(t)}},Oe={get:ge,set:(t,e)=>!0,deleteProperty:(t,e)=>!0},Ee=t=>t,Se=t=>Reflect.getPrototypeOf(t);function $e(t,e,n=!1,r=!1){const s=Ge(t=t.__v_raw),o=Ge(e);n||(e!==o&&ce(),ce());const{has:i}=Se(s),a=r?Ee:n?en:tn;return i.call(s,e)?a(t.get(e)):i.call(s,o)?a(t.get(o)):void(t!==s&&t.get(e))}function De(t,e=!1){const n=this.__v_raw,r=(Ge(n),Ge(t));return e||(t!==r&&ce(),ce()),t===r?n.has(t):n.has(t)||n.has(r)}function Re(t,e=!1){return t=t.__v_raw,!e&&ce(Ge(t)),Reflect.get(t,"size",t)}function Te(t){t=Ge(t);const e=Ge(this);return Se(e).has.call(e,t)||(e.add(t),le(e,"add",t,t)),this}function Me(t,e){e=Ge(e);const n=Ge(this),{has:r,get:s}=Se(n);let o=r.call(n,t);o||(t=Ge(t),o=r.call(n,t));const i=s.call(n,t);return n.set(t,e),o?ee(e,i)&&le(n,"set",t,e):le(n,"add",t,e),this}function xe(t){const e=Ge(this),{has:n,get:r}=Se(e);let s=n.call(e,t);s||(t=Ge(t),s=n.call(e,t)),r&&r.call(e,t);const o=e.delete(t);return s&&le(e,"delete",t,void 0),o}function Ae(){const t=Ge(this),e=0!==t.size,n=t.clear();return e&&le(t,"clear",void 0,void 0),n}function je(t,e){return function(n,r){const s=this,o=s.__v_raw,i=(Ge(o),e?Ee:t?en:tn);return!t&&ce(),o.forEach(((t,e)=>n.call(r,i(t),i(e),s)))}}function Ne(t,e,n){return function(...r){const s=this.__v_raw,o=Ge(s),i=Kt(o),a="entries"===t||t===Symbol.iterator&&i,u=s[t](...r),c=n?Ee:e?en:tn;return!e&&ce(),{next(){const{value:t,done:e}=u.next();return e?{value:t,done:e}:{value:a?[c(t[0]),c(t[1])]:c(t),done:e}},[Symbol.iterator](){return this}}}}function Ce(t){return function(...e){return"delete"!==t&&this}}function Fe(){const t={get(t){return $e(this,t)},get size(){return Re(this)},has:De,add:Te,set:Me,delete:xe,clear:Ae,forEach:je(!1,!1)},e={get(t){return $e(this,t,!1,!0)},get size(){return Re(this)},has:De,add:Te,set:Me,delete:xe,clear:Ae,forEach:je(!1,!0)},n={get(t){return $e(this,t,!0)},get size(){return Re(this,!0)},has(t){return De.call(this,t,!0)},add:Ce("add"),set:Ce("set"),delete:Ce("delete"),clear:Ce("clear"),forEach:je(!0,!1)},r={get(t){return $e(this,t,!0,!0)},get size(){return Re(this,!0)},has(t){return De.call(this,t,!0)},add:Ce("add"),set:Ce("set"),delete:Ce("delete"),clear:Ce("clear"),forEach:je(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((s=>{t[s]=Ne(s,!1,!1),n[s]=Ne(s,!0,!1),e[s]=Ne(s,!1,!0),r[s]=Ne(s,!0,!0)})),[t,n,e,r]}const[Pe,ke,Ue,Le]=Fe();function Be(t,e){const n=e?t?Le:Ue:t?ke:Pe;return(e,r,s)=>"__v_isReactive"===r?!t:"__v_isReadonly"===r?t:"__v_raw"===r?e:Reflect.get(qt(n,r)&&r in e?n:e,r,s)}const ze={get:Be(!1,!1)},Ie={get:Be(!0,!1)},Ye=new WeakMap,He=new WeakMap,Ve=new WeakMap,We=new WeakMap;function qe(t){return t.__v_skip||!Object.isExtensible(t)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((t=>Gt(t).slice(8,-1))(t))}function Je(t){return Qe(t)?t:Ze(t,!1,_e,ze,Ye)}function Ke(t){return Ze(t,!0,Oe,Ie,Ve)}function Ze(t,e,n,r,s){if(!Qt(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const o=s.get(t);if(o)return o;const i=qe(t);if(0===i)return t;const a=new Proxy(t,2===i?r:n);return s.set(t,a),a}function Qe(t){return!(!t||!t.__v_isReadonly)}function Xe(t){return!(!t||!t.__v_isShallow)}function Ge(t){const e=t&&t.__v_raw;return e?Ge(e):t}const tn=t=>Qt(t)?Je(t):t,en=t=>Qt(t)?Ke(t):t;function nn(t){return!(!t||!0!==t.__v_isRef)}function rn(t){return function(t,e){if(nn(t))return t;return new sn(t,e)}(t,!1)}class sn{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:Ge(t),this._value=e?t:tn(t)}get value(){return this._value}set value(t){const e=this.__v_isShallow||Xe(t)||Qe(t);var n;t=e?t:Ge(t),ee(t,this._rawValue)&&(this._rawValue=t,this._value=e?t:tn(t),(n=Ge(n=this)).dep&&fe(n.dep))}}class on{constructor(t,e,n){__publicField(this,"id"),__publicField(this,"parameters"),__publicField(this,"taskName"),this.id=t,this.parameters=n,this.taskName=e}}new Event("MonitorsLoaded");const an=new function(){return new Worker("/static/monitor-map/assets/worker.76e59e0d.js")},un=new class{constructor(t){__publicField(this,"globalTaskID",0),__publicField(this,"responders",new Map),__publicField(this,"worker"),this.worker=t,this.worker.onmessageerror=t=>console.error("worker failed: ",t),this.worker.onmessage=t=>{const{id:e,error:n,payload:r,success:s}=t.data,o=this.responders.get(e);s?o.resolve(r):n?o.reject(r):console.error(`Unknown response from background service "${this.constructor.name}"`,t),this.responders.delete(e)}}run(t,...e){const n=new on(++this.globalTaskID,t,JSON.parse(JSON.stringify(e)));return new Promise(((t,e)=>{this.responders.set(n.id,{resolve:t,reject:e}),this.worker.postMessage(n)}))}}(an);rn({}),rn([]);const cn={pm25:"#00ccff",pm25_avg_60:"#000033"};Ht.levels.map((t=>[t.min,t.color]));function ln(t,e,n,r){r?t.push(m(r).utc().tz("America/Los_Angeles")):t.push(m(n.timestamp).utc().tz("America/Los_Angeles"));for(let s of e.keys())if(s in n){const t=e.get(s);let o;if(r)o=null;else{const t=parseFloat(n[s]);o=t>=0?t:0}t.push(o)}}Ht.levels.map((t=>[t.min,t.color])).push([1/0,"000000"]);var fn=Object.freeze({__proto__:null,fetchChartData:async function(t,e){return async function(t,e,n=1){return await un.run("fetchEntries",t,e,n)}(t,e).then((e=>{const n=[],r="PurpleAir"===t.data.device?2:60,s=new Map(Object.keys(cn).map((t=>[t,[]])));for(let t=e.length-1;t>=0;t--){const o=e[t];if(n.length>1){let t=m(n[n.length-1]);for(;t.skewedDiff(o.timestamp,r)>r+1;)t=t.add(r,"m"),ln(n,s,o,t)}ln(n,s,o)}return[n.map((t=>t.unix())),...s.values()].filter((t=>t.length))}))}});new class{constructor(e,n){__publicField(this,"serviceModule"),__publicField(this,"serviceModuleName"),this.serviceModule=n,this.serviceModuleName=e,self.addEventListener("message",(async e=>{const{id:n,taskName:r,parameters:s}=e.data;this.serviceModule[r];const o=new t(n);r in this.serviceModule?await this.serviceModule[r](...s).then((t=>o.pass(t))).catch((t=>o.fail(t.message))):o.fail(`Background task "${String(r)}" not found in "${this.serviceModuleName}" controller`),self.postMessage(o)}))}}("DataChartService",fn)}();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __defProp=Object.defineProperty,__defNormalProp=(t,e,n)=>e in t?__defProp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,__publicField=(t,e,n)=>(__defNormalProp(t,"symbol"!=typeof e?e+"":e,n),n);!function(){"use strict";class t{constructor(t){__publicField(this,"id"),__publicField(this,"error"),__publicField(this,"success"),__publicField(this,"payload"),this.id=t}pass(t){this.success=!0,this.payload=t}fail(t){this.success=!1,this.error=t}}function e(t,e,n){return Math.min(Math.max(t,n),e)}class n extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var r=n;function i(t){if("string"!=typeof t)throw new r(t);if("transparent"===t.trim().toLowerCase())return[0,0,0,0];let n=t.trim();n=h.test(t)?function(t){const e=t.toLowerCase().trim(),n=s[function(t){let e=5381,n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return(e>>>0)%2341}(e)];if(!n)throw new r(t);return`#${n}`}(t):t;const i=c.exec(n);if(i){const t=Array.from(i).slice(1);return[...t.slice(0,3).map((t=>parseInt(a(t,2),16))),parseInt(a(t[3]||"f",2),16)/255]}const o=u.exec(n);if(o){const t=Array.from(o).slice(1);return[...t.slice(0,3).map((t=>parseInt(t,16))),parseInt(t[3]||"ff",16)/255]}const d=l.exec(n);if(d){const t=Array.from(d).slice(1);return[...t.slice(0,3).map((t=>parseInt(t,10))),parseFloat(t[3]||"1")]}const m=f.exec(n);if(m){const[n,i,o,s]=Array.from(m).slice(1).map(parseFloat);if(e(0,100,i)!==i)throw new r(t);if(e(0,100,o)!==o)throw new r(t);return[...p(n,i,o),s||1]}throw new r(t)}const o=t=>parseInt(t.replace(/_/g,""),36),s="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(((t,e)=>{const n=o(e.substring(0,3)),r=o(e.substring(3)).toString(16);let i="";for(let o=0;o<6-r.length;o++)i+="0";return t[n]=`${i}${r}`,t}),{});const a=(t,e)=>Array.from(Array(e)).map((()=>t)).join(""),c=new RegExp(`^#${a("([a-f0-9])",3)}([a-f0-9])?$`,"i"),u=new RegExp(`^#${a("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),l=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${a(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),f=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,h=/^[a-z]+$/i,d=t=>Math.round(255*t),p=(t,e,n)=>{let r=n/100;if(0===e)return[r,r,r].map(d);const i=(t%360+360)%360/60,o=(1-Math.abs(2*r-1))*(e/100),s=o*(1-Math.abs(i%2-1));let a=0,c=0,u=0;i>=0&&i<1?(a=o,c=s):i>=1&&i<2?(a=s,c=o):i>=2&&i<3?(c=o,u=s):i>=3&&i<4?(c=s,u=o):i>=4&&i<5?(a=s,u=o):i>=5&&i<6&&(a=o,u=s);const l=r-o/2;return[a+l,c+l,u+l].map(d)};function m(t,n){const[r,o,s,a]=function(t){const[e,n,r,o]=i(t).map(((t,e)=>3===e?t:t/255)),s=Math.max(e,n,r),a=Math.min(e,n,r),c=(s+a)/2;if(s===a)return[0,0,c,o];const u=s-a;return[60*(e===s?(n-r)/u+(n<r?6:0):n===s?(r-e)/u+2:(e-n)/u+4),c>.5?u/(2-s-a):u/(s+a),c,o]}(t);return function(t,n,r,i){return`hsla(${(t%360).toFixed()}, ${e(0,100,100*n).toFixed()}%, ${e(0,100,100*r).toFixed()}%, ${parseFloat(e(0,1,i).toFixed(3))})`}(r,o,s-n,a)}function g(t,n,r){const o=(t,e)=>3===e?t:t/255,[s,a,c,u]=i(t).map(o),[l,f,h,d]=i(n).map(o),p=d-u,m=2*r-1,g=((m*p==-1?m:m+p/(1+m*p))+1)/2,y=1-g;return _=255*(a*y+f*g),b=255*(c*y+h*g),w=d*r+u*(1-r),`rgba(${e(0,255,255*(s*y+l*g)).toFixed()}, ${e(0,255,_).toFixed()}, ${e(0,255,b).toFixed()}, ${parseFloat(e(0,1,w).toFixed(3))})`;var _,b,w}function y(t){const[n,r,o,s]=i(t);let a=t=>{const n=e(0,255,t).toString(16);return 1===n.length?`0${n}`:n};return`#${a(n)}${a(r)}${a(o)}${s<1?a(Math.round(255*s)):""}`}const _="969696",b="000000",w="00e400",v="ffff00",O="ff7e00",$="ff0000",E="8f3f97",S="7e0023";function x(t,e){const n=e[e.length-1];if(t>=n.min)return`#${n.color}`;if(t<=0)return`#${e[0].color}`;for(let r=0;r<=e.length-1;r++)if(e[r].min>t){const n=e[r-1],i=e[r],o=n.min===-1/0?i.min:i.min-n.min,s=(o-(i.min-t))/o;return g(`#${n.color}`,`#${i.color}`,s)}return"#FFFFFF"}const M=class{constructor(t,e,n,r){__publicField(this,"label"),__publicField(this,"latest"),__publicField(this,"levels",M.levels),__publicField(this,"name"),__publicField(this,"updateDuration"),this.label=e,this.name=t,this.updateDuration=n,r.latest&&this.name in r.latest&&(this.latest=Math.round(parseFloat(r.latest[this.name])))}};let D=M;function j(t){switch(t.device){case"AirNow":return function(t){return T(["pm25","PM 2.5","60m",t],["pm100","PM 10","60M",t])}(t);case"BAM1022":return function(t){return T(["pm25","PM 2.5","60m",t])}(t);case"PurpleAir":return function(t){return T(["pm10","PM 1.0","2m",t],["pm25","PM 2.5","2m",t],["pm25_avg_15","PM 2.5","15m",t],["pm25_avg_60","PM 2.5","60m",t],["pm100","PM 10","",t])}(t)}}function T(...t){const e={};for(let n of t)e[n[0]]=new D(...n);return e}__publicField(D,"levels",[{min:-1/0,color:w},{min:12,color:v},{min:35,color:O},{min:55,color:$},{min:150,color:E},{min:250,color:S}]);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var A={exports:{}};A.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",o="minute",s="hour",a="day",c="week",u="month",l="quarter",f="year",h="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},y=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},_={s:y,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+y(r,2,"0")+":"+y(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,u),o=n-i<0,s=e.clone().add(r+(o?-1:1),u);return+(-(r+(n-i)/(o?i-s:s-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:u,y:f,w:c,d:a,D:h,h:s,m:o,s:i,ms:r,Q:l}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},b="en",w={};w[b]=g;var v=function(t){return t instanceof S},O=function t(e,n,r){var i;if(!e)return b;if("string"==typeof e){var o=e.toLowerCase();w[o]&&(i=o),n&&(w[o]=n,i=o);var s=e.split("-");if(!i&&s.length>1)return t(s[0])}else{var a=e.name;w[a]=e,i=a}return!r&&i&&(b=i),i||!r&&b},$=function(t,e){if(v(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new S(n)},E=_;E.l=O,E.i=v,E.w=function(t,e){return $(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function g(t){this.$L=O(t.locale,null,!0),this.parse(t)}var y=g.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(E.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(p);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return E},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(t,e){var n=$(t);return this.startOf(e)<=n&&n<=this.endOf(e)},y.isAfter=function(t,e){return $(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<$(t)},y.$g=function(t,e,n){return E.u(t)?this[e]:this.set(n,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,e){var n=this,r=!!E.u(e)||e,l=E.p(t),d=function(t,e){var i=E.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},p=function(t,e){return E.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},m=this.$W,g=this.$M,y=this.$D,_="set"+(this.$u?"UTC":"");switch(l){case f:return r?d(1,0):d(31,11);case u:return r?d(1,g):d(0,g+1);case c:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return d(r?y-w:y+(6-w),g);case a:case h:return p(_+"Hours",0);case s:return p(_+"Minutes",1);case o:return p(_+"Seconds",2);case i:return p(_+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var n,c=E.p(t),l="set"+(this.$u?"UTC":""),d=(n={},n[a]=l+"Date",n[h]=l+"Date",n[u]=l+"Month",n[f]=l+"FullYear",n[s]=l+"Hours",n[o]=l+"Minutes",n[i]=l+"Seconds",n[r]=l+"Milliseconds",n)[c],p=c===a?this.$D+(e-this.$W):e;if(c===u||c===f){var m=this.clone().set(h,1);m.$d[d](p),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},y.set=function(t,e){return this.clone().$set(t,e)},y.get=function(t){return this[E.p(t)]()},y.add=function(r,l){var h,d=this;r=Number(r);var p=E.p(l),m=function(t){var e=$(d);return E.w(e.date(e.date()+Math.round(t*r)),d)};if(p===u)return this.set(u,this.$M+r);if(p===f)return this.set(f,this.$y+r);if(p===a)return m(1);if(p===c)return m(7);var g=(h={},h[o]=e,h[s]=n,h[i]=t,h)[p]||1,y=this.$d.getTime()+r*g;return E.w(y,this)},y.subtract=function(t,e){return this.add(-1*t,e)},y.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=E.z(this),o=this.$H,s=this.$m,a=this.$M,c=n.weekdays,u=n.months,l=function(t,n,i,o){return t&&(t[n]||t(e,r))||i[n].slice(0,o)},f=function(t){return E.s(o%12||12,t,"0")},h=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:E.s(a+1,2,"0"),MMM:l(n.monthsShort,a,u,3),MMMM:l(u,a),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,c,2),ddd:l(n.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(o),HH:E.s(o,2,"0"),h:f(1),hh:f(2),a:h(o,s,!0),A:h(o,s,!1),m:String(s),mm:E.s(s,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:i};return r.replace(m,(function(t,e){return e||p[t]||i.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,h,d){var p,m=E.p(h),g=$(r),y=(g.utcOffset()-this.utcOffset())*e,_=this-g,b=E.m(this,g);return b=(p={},p[f]=b/12,p[u]=b,p[l]=b/3,p[c]=(_-y)/6048e5,p[a]=(_-y)/864e5,p[s]=_/n,p[o]=_/e,p[i]=_/t,p)[m]||_,d?b:E.a(b)},y.daysInMonth=function(){return this.endOf(u).$D},y.$locale=function(){return w[this.$L]},y.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=O(t,e,!0);return r&&(n.$L=r),n},y.clone=function(){return E.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},g}(),x=S.prototype;return $.prototype=x,[["$ms",r],["$s",i],["$m",o],["$H",s],["$W",a],["$M",u],["$y",f],["$D",h]].forEach((function(t){x[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),$.extend=function(t,e){return t.$i||(t(e,S,$),t.$i=!0),$},$.locale=O,$.isDayjs=v,$.unix=function(t){return $(1e3*t)},$.en=w[b],$.Ls=w,$.p={},$}();var F=A.exports,R={exports:{}};!function(t,e){t.exports=function(t,e,n){t=t||{};var r=e.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(t,e,n,i){return r.fromToBase(t,e,n,i)}n.en.relativeTime=i,r.fromToBase=function(e,r,o,s,a){for(var c,u,l,f=o.$locale().relativeTime||i,h=t.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],d=h.length,p=0;p<d;p+=1){var m=h[p];m.d&&(c=s?n(e).diff(o,m.d,!0):o.diff(e,m.d,!0));var g=(t.rounding||Math.round)(Math.abs(c));if(l=c>0,g<=m.r||!m.r){g<=1&&p>0&&(m=h[p-1]);var y=f[m.l];a&&(g=a(""+g)),u="string"==typeof y?y.replace("%d",g):y(g,r,m.l,l);break}}if(r)return u;var _=l?f.future:f.past;return"function"==typeof _?_(u):_.replace("%s",u)},r.to=function(t,e){return o(t,e,this,!0)},r.from=function(t,e){return o(t,e,this)};var s=function(t){return t.$u?n.utc():n()};r.toNow=function(t){return this.to(s(this),t)},r.fromNow=function(t){return this.from(s(this),t)}}}(R);var z=R.exports,k={exports:{}};!function(t,e){var n,r;t.exports=(n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={},function(t,e,i){var o,s=function(t,e,n){void 0===n&&(n={});var i=new Date(t);return function(t,e){void 0===e&&(e={});var n=e.timeZoneName||"short",i=t+"|"+n,o=r[i];return o||(o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:n}),r[i]=o),o}(e,n).formatToParts(i)},a=function(t,e){for(var r=s(t,e),o=[],a=0;a<r.length;a+=1){var c=r[a],u=c.type,l=c.value,f=n[u];f>=0&&(o[f]=parseInt(l,10))}var h=o[3],d=24===h?0:h,p=o[0]+"-"+o[1]+"-"+o[2]+" "+d+":"+o[4]+":"+o[5]+":000",m=+t;return(i.utc(p).valueOf()-(m-=m%1e3))/6e4},c=e.prototype;c.tz=function(t,e){void 0===t&&(t=o);var n=this.utcOffset(),r=this.toDate(),s=r.toLocaleString("en-US",{timeZone:t}),a=Math.round((r-new Date(s))/1e3/60),c=i(s).$set("millisecond",this.$ms).utcOffset(15*-Math.round(r.getTimezoneOffset()/15)-a,!0);if(e){var u=c.utcOffset();c=c.add(n-u,"minute")}return c.$x.$timezone=t,c},c.offsetName=function(t){var e=this.$x.$timezone||i.tz.guess(),n=s(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return n&&n.value};var u=c.startOf;c.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return u.call(this,t,e);var n=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return u.call(n,t,e).tz(this.$x.$timezone,!0)},i.tz=function(t,e,n){var r=n&&e,s=n||e||o,c=a(+i(),s);if("string"!=typeof t)return i(t).tz(s);var u=function(t,e,n){var r=t-60*e*1e3,i=a(r,n);if(e===i)return[r,e];var o=a(r-=60*(i-e)*1e3,n);return i===o?[r,i]:[t-60*Math.min(i,o)*1e3,Math.max(i,o)]}(i.utc(t,r).valueOf(),c,s),l=u[0],f=u[1],h=i(l).utcOffset(f);return h.$x.$timezone=s,h},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(t){o=t}})}(k);var C=k.exports,N={exports:{}};!function(t,e){var n,r,i;t.exports=(n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g,function(t,e,o){var s=e.prototype;o.utc=function(t){return new e({date:t,utc:!0,args:arguments})},s.utc=function(t){var e=o(this.toDate(),{locale:this.$L,utc:!0});return t?e.add(this.utcOffset(),n):e},s.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var a=s.parse;s.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),a.call(this,t)};var c=s.init;s.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else c.call(this)};var u=s.utcOffset;s.utcOffset=function(t,e){var o=this.$utils().u;if(o(t))return this.$u?0:o(this.$offset)?u.call(this):this.$offset;if("string"==typeof t&&null===(t=function(t){void 0===t&&(t="");var e=t.match(r);if(!e)return null;var n=(""+e[0]).match(i)||["-",0,0],o=n[0],s=60*+n[1]+ +n[2];return 0===s?0:"+"===o?s:-s}(t)))return this;var s=Math.abs(t)<=16?60*t:t,a=this;if(e)return a.$offset=s,a.$u=0===t,a;if(0!==t){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(s+c,n)).$offset=s,a.$x.$localOffset=c}else a=this.utc();return a};var l=s.format;s.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,e)},s.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var f=s.toDate;s.toDate=function(t){return"s"===t&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var h=s.diff;s.diff=function(t,e,n){if(t&&this.$u===t.$u)return h.call(this,t,e,n);var r=this.local(),i=o(t).local();return h.call(r,i,e,n)}})}(N);var P=N.exports;F.$defaultFormat=function(t){return F.utc(t).format("YYYY-MM-DD HH:mm:ss")},F.$prettyPrint=function(t){return F(t).format("h:mma dddd MMM DD, YYYY")};F.extend(z),F.extend(C),F.extend(((t,e,n)=>{e.prototype.skewedDiff=function(t,e){const n=Math.abs(this.diff(t))/6e4;return n>e?Math.floor(n):n<e?Math.ceil(n):n}})),F.extend(P);const U=F;function L(t,e){return function(){return t.apply(e,arguments)}}const{toString:B}=Object.prototype,{getPrototypeOf:I}=Object,q=(Y=Object.create(null),t=>{const e=B.call(t);return Y[e]||(Y[e]=e.slice(8,-1).toLowerCase())});var Y;const H=t=>(t=t.toLowerCase(),e=>q(e)===t),V=t=>e=>typeof e===t,{isArray:W}=Array,J=V("undefined");const Z=H("ArrayBuffer");const K=V("string"),Q=V("function"),X=V("number"),G=t=>null!==t&&"object"==typeof t,tt=t=>{if("object"!==q(t))return!1;const e=I(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},et=H("Date"),nt=H("File"),rt=H("Blob"),it=H("FileList"),ot=H("URLSearchParams");function st(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,i;if("object"!=typeof t&&(t=[t]),W(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let s;for(r=0;r<o;r++)s=i[r],e.call(null,t[s],s,t)}}const at=(ct="undefined"!=typeof Uint8Array&&I(Uint8Array),t=>ct&&t instanceof ct);var ct;const ut=H("HTMLFormElement"),lt=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),ft=H("RegExp"),ht=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};st(n,((n,i)=>{!1!==e(n,i,t)&&(r[i]=n)})),Object.defineProperties(t,r)};var dt={isArray:W,isArrayBuffer:Z,isBuffer:function(t){return null!==t&&!J(t)&&null!==t.constructor&&!J(t.constructor)&&Q(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{const e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||B.call(t)===e||Q(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&Z(t.buffer),e},isString:K,isNumber:X,isBoolean:t=>!0===t||!1===t,isObject:G,isPlainObject:tt,isUndefined:J,isDate:et,isFile:nt,isBlob:rt,isRegExp:ft,isFunction:Q,isStream:t=>G(t)&&Q(t.pipe),isURLSearchParams:ot,isTypedArray:at,isFileList:it,forEach:st,merge:function t(){const e={},n=(n,r)=>{tt(e[r])&&tt(n)?e[r]=t(e[r],n):tt(n)?e[r]=t({},n):W(n)?e[r]=n.slice():e[r]=n};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&st(arguments[r],n);return e},extend:(t,e,n,{allOwnKeys:r}={})=>(st(e,((e,r)=>{n&&Q(e)?t[r]=L(e,n):t[r]=e}),{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let i,o,s;const a={};if(e=e||{},null==t)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)s=i[o],r&&!r(s,t,e)||a[s]||(e[s]=t[s],a[s]=!0);t=!1!==n&&I(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:q,kindOfTest:H,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(W(t))return t;let e=t.length;if(!X(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:ut,hasOwnProperty:lt,hasOwnProp:lt,reduceDescriptors:ht,freezeMethods:t=>{ht(t,((e,n)=>{const r=t[n];Q(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach((t=>{n[t]=!0}))};return W(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e)};function pt(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}dt.inherits(pt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const mt=pt.prototype,gt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{gt[t]={value:t}})),Object.defineProperties(pt,gt),Object.defineProperty(mt,"isAxiosError",{value:!0}),pt.from=(t,e,n,r,i,o)=>{const s=Object.create(mt);return dt.toFlatObject(t,s,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),pt.call(s,t.message,e,n,r,i),s.cause=t,s.name=t.name,o&&Object.assign(s,o),s};var yt="object"==typeof self?self.FormData:window.FormData;function _t(t){return dt.isPlainObject(t)||dt.isArray(t)}function bt(t){return dt.endsWith(t,"[]")?t.slice(0,-2):t}function wt(t,e,n){return t?t.concat(e).map((function(t,e){return t=bt(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const vt=dt.toFlatObject(dt,{},null,(function(t){return/^is[A-Z]/.test(t)}));function Ot(t,e,n){if(!dt.isObject(t))throw new TypeError("target must be an object");e=e||new(yt||FormData);const r=(n=dt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!dt.isUndefined(e[t])}))).metaTokens,i=n.visitor||l,o=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&((c=e)&&dt.isFunction(c.append)&&"FormData"===c[Symbol.toStringTag]&&c[Symbol.iterator]);var c;if(!dt.isFunction(i))throw new TypeError("visitor must be a function");function u(t){if(null===t)return"";if(dt.isDate(t))return t.toISOString();if(!a&&dt.isBlob(t))throw new pt("Blob is not supported. Use a Buffer instead.");return dt.isArrayBuffer(t)||dt.isTypedArray(t)?a&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function l(t,n,i){let a=t;if(t&&!i&&"object"==typeof t)if(dt.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(dt.isArray(t)&&function(t){return dt.isArray(t)&&!t.some(_t)}(t)||dt.isFileList(t)||dt.endsWith(n,"[]")&&(a=dt.toArray(t)))return n=bt(n),a.forEach((function(t,r){!dt.isUndefined(t)&&null!==t&&e.append(!0===s?wt([n],r,o):null===s?n:n+"[]",u(t))})),!1;return!!_t(t)||(e.append(wt(i,n,o),u(t)),!1)}const f=[],h=Object.assign(vt,{defaultVisitor:l,convertValue:u,isVisitable:_t});if(!dt.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!dt.isUndefined(n)){if(-1!==f.indexOf(n))throw Error("Circular reference detected in "+r.join("."));f.push(n),dt.forEach(n,(function(n,o){!0===(!(dt.isUndefined(n)||null===n)&&i.call(e,n,dt.isString(o)?o.trim():o,r,h))&&t(n,r?r.concat(o):[o])})),f.pop()}}(t),e}function $t(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function Et(t,e){this._pairs=[],t&&Ot(t,this,e)}const St=Et.prototype;function xt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Mt(t,e,n){if(!e)return t;const r=n&&n.encode||xt,i=n&&n.serialize;let o;if(o=i?i(e,n):dt.isURLSearchParams(e)?e.toString():new Et(e,n).toString(r),o){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}St.append=function(t,e){this._pairs.push([t,e])},St.toString=function(t){const e=t?function(e){return t.call(this,e,$t)}:$t;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};class Dt{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){dt.forEach(this.handlers,(function(e){null!==e&&t(e)}))}}var jt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Tt="undefined"!=typeof URLSearchParams?URLSearchParams:Et,At=FormData;const Ft=(()=>{let t;return("undefined"==typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&("undefined"!=typeof window&&"undefined"!=typeof document)})();var Rt={isBrowser:!0,classes:{URLSearchParams:Tt,FormData:At,Blob:Blob},isStandardBrowserEnv:Ft,protocols:["http","https","file","blob","url","data"]};function zt(t){function e(t,n,r,i){let o=t[i++];const s=Number.isFinite(+o),a=i>=t.length;if(o=!o&&dt.isArray(r)?r.length:o,a)return dt.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!s;r[o]&&dt.isObject(r[o])||(r[o]=[]);return e(t,n,r[o],i)&&dt.isArray(r[o])&&(r[o]=function(t){const e={},n=Object.keys(t);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],e[o]=t[o];return e}(r[o])),!s}if(dt.isFormData(t)&&dt.isFunction(t.entries)){const n={};return dt.forEachEntry(t,((t,r)=>{e(function(t){return dt.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),r,n,0)})),n}return null}var kt=Rt.isStandardBrowserEnv?{write:function(t,e,n,r,i,o){const s=[];s.push(t+"="+encodeURIComponent(e)),dt.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),dt.isString(r)&&s.push("path="+r),dt.isString(i)&&s.push("domain="+i),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Ct(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}var Nt=Rt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function r(n){let r=n;return t&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=r(window.location.href),function(t){const e=dt.isString(t)?r(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0};function Pt(t,e,n){pt.call(this,null==t?"canceled":t,pt.ERR_CANCELED,e,n),this.name="CanceledError"}dt.inherits(Pt,pt,{__CANCEL__:!0});const Ut=dt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const Lt=Symbol("internals"),Bt=Symbol("defaults");function It(t){return t&&String(t).trim().toLowerCase()}function qt(t){return!1===t||null==t?t:dt.isArray(t)?t.map(qt):String(t)}function Yt(t,e,n,r){return dt.isFunction(r)?r.call(this,e,n):dt.isString(e)?dt.isString(r)?-1!==e.indexOf(r):dt.isRegExp(r)?r.test(e):void 0:void 0}function Ht(t,e){e=e.toLowerCase();const n=Object.keys(t);let r,i=n.length;for(;i-- >0;)if(r=n[i],e===r.toLowerCase())return r;return null}function Vt(t,e){t&&this.set(t),this[Bt]=e||null}function Wt(t,e){let n=0;const r=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i,o=0,s=0;return e=void 0!==e?e:1e3,function(a){const c=Date.now(),u=r[s];i||(i=c),n[o]=a,r[o]=c;let l=s,f=0;for(;l!==o;)f+=n[l++],l%=t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),c-i<e)return;const h=u&&c-u;return h?Math.round(1e3*f/h):void 0}}(50,250);return i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-n,c=r(a);n=o;const u={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&o<=s?(s-o)/c:void 0};u[e?"download":"upload"]=!0,t(u)}}function Jt(t){return new Promise((function(e,n){let r=t.data;const i=Vt.from(t.headers).normalize(),o=t.responseType;let s;function a(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}dt.isFormData(r)&&Rt.isStandardBrowserEnv&&i.setContentType(!1);let c=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",n=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(e+":"+n))}const u=Ct(t.baseURL,t.url);function l(){if(!c)return;const r=Vt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new pt("Request failed with status code "+n.status,[pt.ERR_BAD_REQUEST,pt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}((function(t){e(t),a()}),(function(t){n(t),a()}),{data:o&&"text"!==o&&"json"!==o?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:t,request:c}),c=null}if(c.open(t.method.toUpperCase(),Mt(u,t.params,t.paramsSerializer),!0),c.timeout=t.timeout,"onloadend"in c?c.onloadend=l:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(l)},c.onabort=function(){c&&(n(new pt("Request aborted",pt.ECONNABORTED,t,c)),c=null)},c.onerror=function(){n(new pt("Network Error",pt.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const r=t.transitional||jt;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new pt(e,r.clarifyTimeoutError?pt.ETIMEDOUT:pt.ECONNABORTED,t,c)),c=null},Rt.isStandardBrowserEnv){const e=(t.withCredentials||Nt(u))&&t.xsrfCookieName&&kt.read(t.xsrfCookieName);e&&i.set(t.xsrfHeaderName,e)}void 0===r&&i.setContentType(null),"setRequestHeader"in c&&dt.forEach(i.toJSON(),(function(t,e){c.setRequestHeader(e,t)})),dt.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),o&&"json"!==o&&(c.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&c.addEventListener("progress",Wt(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",Wt(t.onUploadProgress)),(t.cancelToken||t.signal)&&(s=e=>{c&&(n(!e||e.type?new Pt(null,t,c):e),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s)));const f=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(u);f&&-1===Rt.protocols.indexOf(f)?n(new pt("Unsupported protocol "+f+":",pt.ERR_BAD_REQUEST,t)):c.send(r||null)}))}Object.assign(Vt.prototype,{set:function(t,e,n){const r=this;function i(t,e,n){const i=It(e);if(!i)throw new Error("header name must be a non-empty string");const o=Ht(r,i);(!o||!0===n||!1!==r[o]&&!1!==n)&&(r[o||e]=qt(t))}return dt.isPlainObject(t)?dt.forEach(t,((t,n)=>{i(t,n,e)})):i(e,t,n),this},get:function(t,e){if(!(t=It(t)))return;const n=Ht(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(dt.isFunction(e))return e.call(this,t,n);if(dt.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}},has:function(t,e){if(t=It(t)){const n=Ht(this,t);return!(!n||e&&!Yt(0,this[n],n,e))}return!1},delete:function(t,e){const n=this;let r=!1;function i(t){if(t=It(t)){const i=Ht(n,t);!i||e&&!Yt(0,n[i],i,e)||(delete n[i],r=!0)}}return dt.isArray(t)?t.forEach(i):i(t),r},clear:function(){return Object.keys(this).forEach(this.delete.bind(this))},normalize:function(t){const e=this,n={};return dt.forEach(this,((r,i)=>{const o=Ht(n,i);if(o)return e[o]=qt(r),void delete e[i];const s=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(i):String(i).trim();s!==i&&delete e[i],e[s]=qt(r),n[s]=!0})),this},toJSON:function(t){const e=Object.create(null);return dt.forEach(Object.assign({},this[Bt]||null,this),((n,r)=>{null!=n&&!1!==n&&(e[r]=t&&dt.isArray(n)?n.join(", "):n)})),e}}),Object.assign(Vt,{from:function(t){return dt.isString(t)?new this((t=>{const e={};let n,r,i;return t&&t.split("\n").forEach((function(t){i=t.indexOf(":"),n=t.substring(0,i).trim().toLowerCase(),r=t.substring(i+1).trim(),!n||e[n]&&Ut[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e})(t)):t instanceof this?t:new this(t)},accessor:function(t){const e=(this[Lt]=this[Lt]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=It(t);e[r]||(!function(t,e){const n=dt.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,i){return this[r].call(this,e,t,n,i)},configurable:!0})}))}(n,t),e[r]=!0)}return dt.isArray(t)?t.forEach(r):r(t),this}}),Vt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),dt.freezeMethods(Vt.prototype),dt.freezeMethods(Vt);const Zt={http:Jt,xhr:Jt};var Kt=t=>{if(dt.isString(t)){const e=Zt[t];if(!t)throw Error(dt.hasOwnProp(t)?`Adapter '${t}' is not available in the build`:`Can not resolve adapter '${t}'`);return e}if(!dt.isFunction(t))throw new TypeError("adapter is not a function");return t};const Qt={"Content-Type":"application/x-www-form-urlencoded"};const Xt={transitional:jt,adapter:function(){let t;return"undefined"!=typeof XMLHttpRequest?t=Kt("xhr"):"undefined"!=typeof process&&"process"===dt.kindOf(process)&&(t=Kt("http")),t}(),transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,i=dt.isObject(t);i&&dt.isHTMLForm(t)&&(t=new FormData(t));if(dt.isFormData(t))return r&&r?JSON.stringify(zt(t)):t;if(dt.isArrayBuffer(t)||dt.isBuffer(t)||dt.isStream(t)||dt.isFile(t)||dt.isBlob(t))return t;if(dt.isArrayBufferView(t))return t.buffer;if(dt.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return Ot(t,new Rt.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return Rt.isNode&&dt.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((o=dt.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Ot(o?{"files[]":t}:t,e&&new e,this.formSerializer)}}return i||r?(e.setContentType("application/json",!1),function(t,e,n){if(dt.isString(t))try{return(e||JSON.parse)(t),dt.trim(t)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||Xt.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(t&&dt.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(i){if(n){if("SyntaxError"===i.name)throw pt.from(i,pt.ERR_BAD_RESPONSE,this,null,this.response);throw i}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rt.classes.FormData,Blob:Rt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};function Gt(t,e){const n=this||Xt,r=e||n,i=Vt.from(r.headers);let o=r.data;return dt.forEach(t,(function(t){o=t.call(n,o,i.normalize(),e?e.status:void 0)})),i.normalize(),o}function te(t){return!(!t||!t.__CANCEL__)}function ee(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Pt}function ne(t){ee(t),t.headers=Vt.from(t.headers),t.data=Gt.call(t,t.transformRequest);return(t.adapter||Xt.adapter)(t).then((function(e){return ee(t),e.data=Gt.call(t,t.transformResponse,e),e.headers=Vt.from(e.headers),e}),(function(e){return te(e)||(ee(t),e&&e.response&&(e.response.data=Gt.call(t,t.transformResponse,e.response),e.response.headers=Vt.from(e.response.headers))),Promise.reject(e)}))}function re(t,e){e=e||{};const n={};function r(t,e){return dt.isPlainObject(t)&&dt.isPlainObject(e)?dt.merge(t,e):dt.isPlainObject(e)?dt.merge({},e):dt.isArray(e)?e.slice():e}function i(n){return dt.isUndefined(e[n])?dt.isUndefined(t[n])?void 0:r(void 0,t[n]):r(t[n],e[n])}function o(t){if(!dt.isUndefined(e[t]))return r(void 0,e[t])}function s(n){return dt.isUndefined(e[n])?dt.isUndefined(t[n])?void 0:r(void 0,t[n]):r(void 0,e[n])}function a(n){return n in e?r(t[n],e[n]):n in t?r(void 0,t[n]):void 0}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a};return dt.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){const e=c[t]||i,r=e(t);dt.isUndefined(r)&&e!==a||(n[t]=r)})),n}dt.forEach(["delete","get","head"],(function(t){Xt.headers[t]={}})),dt.forEach(["post","put","patch"],(function(t){Xt.headers[t]=dt.merge(Qt)}));const ie="1.1.3",oe={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{oe[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const se={};oe.transitional=function(t,e,n){function r(t,e){return"[Axios v1.1.3] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,i,o)=>{if(!1===t)throw new pt(r(i," has been removed"+(e?" in "+e:"")),pt.ERR_DEPRECATED);return e&&!se[i]&&(se[i]=!0,console.warn(r(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,i,o)}};var ae={assertOptions:function(t,e,n){if("object"!=typeof t)throw new pt("options must be an object",pt.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const o=r[i],s=e[o];if(s){const e=t[o],n=void 0===e||s(e,o,t);if(!0!==n)throw new pt("option "+o+" must be "+n,pt.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new pt("Unknown option "+o,pt.ERR_BAD_OPTION)}},validators:oe};const ce=ae.validators;class ue{constructor(t){this.defaults=t,this.interceptors={request:new Dt,response:new Dt}}request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=re(this.defaults,e);const{transitional:n,paramsSerializer:r}=e;void 0!==n&&ae.assertOptions(n,{silentJSONParsing:ce.transitional(ce.boolean),forcedJSONParsing:ce.transitional(ce.boolean),clarifyTimeoutError:ce.transitional(ce.boolean)},!1),void 0!==r&&ae.assertOptions(r,{encode:ce.function,serialize:ce.function},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();const i=e.headers&&dt.merge(e.headers.common,e.headers[e.method]);i&&dt.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),e.headers=new Vt(e.headers,i);const o=[];let s=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,o.unshift(t.fulfilled,t.rejected))}));const a=[];let c;this.interceptors.response.forEach((function(t){a.push(t.fulfilled,t.rejected)}));let u,l=0;if(!s){const t=[ne.bind(this),void 0];for(t.unshift.apply(t,o),t.push.apply(t,a),u=t.length,c=Promise.resolve(e);l<u;)c=c.then(t[l++],t[l++]);return c}u=o.length;let f=e;for(l=0;l<u;){const t=o[l++],e=o[l++];try{f=t(f)}catch(h){e.call(this,h);break}}try{c=ne.call(this,f)}catch(h){return Promise.reject(h)}for(l=0,u=a.length;l<u;)c=c.then(a[l++],a[l++]);return c}getUri(t){return Mt(Ct((t=re(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}dt.forEach(["delete","get","head","options"],(function(t){ue.prototype[t]=function(e,n){return this.request(re(n||{},{method:t,url:e,data:(n||{}).data}))}})),dt.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,i){return this.request(re(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ue.prototype[t]=e(),ue.prototype[t+"Form"]=e(!0)}));class le{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,r,i){n.reason||(n.reason=new Pt(t,r,i),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new le((function(e){t=e})),cancel:t}}}const fe=function t(e){const n=new ue(e),r=L(ue.prototype.request,n);return dt.extend(r,ue.prototype,n,{allOwnKeys:!0}),dt.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(re(e,n))},r}(Xt);fe.Axios=ue,fe.CanceledError=Pt,fe.CancelToken=le,fe.isCancel=te,fe.VERSION=ie,fe.toFormData=Ot,fe.AxiosError=pt,fe.Cancel=fe.CanceledError,fe.all=function(t){return Promise.all(t)},fe.spread=function(t){return function(e){return t.apply(null,e)}},fe.isAxiosError=function(t){return dt.isObject(t)&&!0===t.isAxiosError},fe.formToJSON=t=>zt(dt.isHTMLForm(t)?new FormData(t):t);const he="leach"!=={VITE_BUILD_MODE:"mod",VITE_MAPTILER_KEY:"NvYyjimTkUQBEjVebxLV",VITE_OPENWEATHERMAP_KEY:"09b21cd89a07eaa465d3d9c2b2a6d0c3",BASE_URL:"/static/monitor-map/",MODE:"production",DEV:!1,PROD:!0}.VITE_REQUEST_MODE?"/api/1.0/":"https://www.sjvair.com/api/1.0/",de=fe.create({baseURL:he});class pe{constructor(t){__publicField(this,"data"),__publicField(this,"dataFields"),__publicField(this,"displayField"),__publicField(this,"lastUpdated"),__publicField(this,"markerParams"),__publicField(this,"monitorFields"),this.data=t,this.markerParams=function(t){const e=`#${_}`,n={border_color:y(m(e,.1)),border_size:1,fill_color:e,value_color:e,size:8,shape:"square"};switch(t.device){case"AirNow":case"BAM1022":n.shape="triangle";break;case"PurpleAir":t.is_sjvair&&(n.shape="circle");break;default:console.error(`Unknown device type for monitor ${t.id}`),n.shape="diamond"}if(t.latest){const e=x(+t.latest.pm25_avg_15,D.levels);if(n.value_color=e,t.is_active)switch(n.fill_color=x(+t.latest.pm25_avg_15,D.levels),n.border_color=y(m(n.fill_color,.1)),t.device){case"AirNow":case"BAM1022":n.size=14;break;case"PurpleAir":t.is_sjvair?n.size=16:n.size=10}"inside"===t.location&&(n.border_color=`#${b}`,n.border_size=2)}return n}(t),this.monitorFields=j(t),this.dataFields=Object.keys(this.monitorFields),this.displayField=this.monitorFields.pm25_avg_15,this.lastUpdated=t.latest&&Object.keys(t.latest).length>1?U(t.latest.timestamp).fromNow():"never"}}var me=Object.freeze({__proto__:null,fetchMonitors:async function(){return de.get("/monitors").then((t=>{const e={};for(let n of t.data.data)n.position.coordinates[1]>42||(e[n.id]=new pe(n));return e}))},fetchEntries:async function t(e,n,r=1){const i=[],o={fields:e.dataFields.join(","),page:r,timestamp__gte:U.$defaultFormat(n.start),timestamp__lte:U.$defaultFormat(n.end)};return de.get(`monitors/${e.data.id}/entries/`,{params:o}).then((async o=>{const s=o.data;if(s.data.length&&(i.push(...s.data),s.has_next_page)){const o=await t(e,n,++r).catch((t=>{throw t}));o.length&&i.push(...o)}return i}))},fetchSubscriptions:async function(){return de.get("alerts/subscriptions").then((t=>t.data.data))},fetchTempByCoords:async function(t){const e=`https://api.weather.gov/points/${t.join(",")}`;return await de(e).then((async t=>{try{return(await de(t.data.properties.forecastHourly)).data.properties.periods[0].temperature}catch(e){throw e}}))}});new class{constructor(e,n){__publicField(this,"serviceModule"),__publicField(this,"serviceModuleName"),this.serviceModule=n,this.serviceModuleName=e,self.addEventListener("message",(async e=>{const{id:n,taskName:r,parameters:i}=e.data;this.serviceModule[r];const o=new t(n);r in this.serviceModule?await this.serviceModule[r](...i).then((t=>o.pass(t))).catch((t=>o.fail(t.message))):o.fail(`Background task "${String(r)}" not found in "${this.serviceModuleName}" controller`),self.postMessage(o)}))}}("MonitorsService",me)}();
|
|
1
|
+
var __defProp=Object.defineProperty,__defNormalProp=(t,e,n)=>e in t?__defProp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,__publicField=(t,e,n)=>(__defNormalProp(t,"symbol"!=typeof e?e+"":e,n),n);!function(){"use strict";class t{constructor(t){__publicField(this,"id"),__publicField(this,"error"),__publicField(this,"success"),__publicField(this,"payload"),this.id=t}pass(t){this.success=!0,this.payload=t}fail(t){this.success=!1,this.error=t}}function e(t,e,n){return Math.min(Math.max(t,n),e)}class n extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var r=n;function i(t){if("string"!=typeof t)throw new r(t);if("transparent"===t.trim().toLowerCase())return[0,0,0,0];let n=t.trim();n=h.test(t)?function(t){const e=t.toLowerCase().trim(),n=s[function(t){let e=5381,n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return(e>>>0)%2341}(e)];if(!n)throw new r(t);return`#${n}`}(t):t;const i=c.exec(n);if(i){const t=Array.from(i).slice(1);return[...t.slice(0,3).map((t=>parseInt(a(t,2),16))),parseInt(a(t[3]||"f",2),16)/255]}const o=u.exec(n);if(o){const t=Array.from(o).slice(1);return[...t.slice(0,3).map((t=>parseInt(t,16))),parseInt(t[3]||"ff",16)/255]}const d=l.exec(n);if(d){const t=Array.from(d).slice(1);return[...t.slice(0,3).map((t=>parseInt(t,10))),parseFloat(t[3]||"1")]}const m=f.exec(n);if(m){const[n,i,o,s]=Array.from(m).slice(1).map(parseFloat);if(e(0,100,i)!==i)throw new r(t);if(e(0,100,o)!==o)throw new r(t);return[...p(n,i,o),s||1]}throw new r(t)}const o=t=>parseInt(t.replace(/_/g,""),36),s="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(((t,e)=>{const n=o(e.substring(0,3)),r=o(e.substring(3)).toString(16);let i="";for(let o=0;o<6-r.length;o++)i+="0";return t[n]=`${i}${r}`,t}),{});const a=(t,e)=>Array.from(Array(e)).map((()=>t)).join(""),c=new RegExp(`^#${a("([a-f0-9])",3)}([a-f0-9])?$`,"i"),u=new RegExp(`^#${a("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),l=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${a(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),f=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,h=/^[a-z]+$/i,d=t=>Math.round(255*t),p=(t,e,n)=>{let r=n/100;if(0===e)return[r,r,r].map(d);const i=(t%360+360)%360/60,o=(1-Math.abs(2*r-1))*(e/100),s=o*(1-Math.abs(i%2-1));let a=0,c=0,u=0;i>=0&&i<1?(a=o,c=s):i>=1&&i<2?(a=s,c=o):i>=2&&i<3?(c=o,u=s):i>=3&&i<4?(c=s,u=o):i>=4&&i<5?(a=s,u=o):i>=5&&i<6&&(a=o,u=s);const l=r-o/2;return[a+l,c+l,u+l].map(d)};function m(t,n){const[r,o,s,a]=function(t){const[e,n,r,o]=i(t).map(((t,e)=>3===e?t:t/255)),s=Math.max(e,n,r),a=Math.min(e,n,r),c=(s+a)/2;if(s===a)return[0,0,c,o];const u=s-a;return[60*(e===s?(n-r)/u+(n<r?6:0):n===s?(r-e)/u+2:(e-n)/u+4),c>.5?u/(2-s-a):u/(s+a),c,o]}(t);return function(t,n,r,i){return`hsla(${(t%360).toFixed()}, ${e(0,100,100*n).toFixed()}%, ${e(0,100,100*r).toFixed()}%, ${parseFloat(e(0,1,i).toFixed(3))})`}(r,o,s-n,a)}function g(t,n,r){const o=(t,e)=>3===e?t:t/255,[s,a,c,u]=i(t).map(o),[l,f,h,d]=i(n).map(o),p=d-u,m=2*r-1,g=((m*p==-1?m:m+p/(1+m*p))+1)/2,y=1-g;return _=255*(a*y+f*g),b=255*(c*y+h*g),w=d*r+u*(1-r),`rgba(${e(0,255,255*(s*y+l*g)).toFixed()}, ${e(0,255,_).toFixed()}, ${e(0,255,b).toFixed()}, ${parseFloat(e(0,1,w).toFixed(3))})`;var _,b,w}function y(t){const[n,r,o,s]=i(t);let a=t=>{const n=e(0,255,t).toString(16);return 1===n.length?`0${n}`:n};return`#${a(n)}${a(r)}${a(o)}${s<1?a(Math.round(255*s)):""}`}const _="969696",b="000000",w="00e400",v="ffff00",O="ff7e00",$="ff0000",E="8f3f97",S="7e0023";function x(t,e){const n=e[e.length-1];if(t>=n.min)return`#${n.color}`;if(t<=0)return`#${e[0].color}`;for(let r=0;r<=e.length-1;r++)if(e[r].min>t){const n=e[r-1],i=e[r],o=n.min===-1/0?i.min:i.min-n.min,s=(o-(i.min-t))/o;return g(`#${n.color}`,`#${i.color}`,s)}return"#FFFFFF"}const M=class{constructor(t,e,n,r){__publicField(this,"label"),__publicField(this,"latest"),__publicField(this,"levels",M.levels),__publicField(this,"name"),__publicField(this,"updateDuration"),this.label=e,this.name=t,this.updateDuration=n,r.latest&&this.name in r.latest&&(this.latest=Math.round(parseFloat(r.latest[this.name])))}};let D=M;function j(t){switch(t.device){case"AirNow":return function(t){return T(["pm25","PM 2.5","60m",t],["pm100","PM 10","60M",t])}(t);case"BAM1022":return function(t){return T(["pm25","PM 2.5","60m",t])}(t);case"PurpleAir":return function(t){return T(["pm10","PM 1.0","2m",t],["pm25","PM 2.5","2m",t],["pm25_avg_15","PM 2.5","15m",t],["pm25_avg_60","PM 2.5","60m",t],["pm100","PM 10","",t])}(t)}}function T(...t){const e={};for(let n of t)e[n[0]]=new D(...n);return e}__publicField(D,"levels",[{min:-1/0,color:w},{min:12,color:v},{min:35,color:O},{min:55,color:$},{min:150,color:E},{min:250,color:S}]);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var R={exports:{}};R.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",o="minute",s="hour",a="day",c="week",u="month",l="quarter",f="year",h="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},y=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},_={s:y,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+y(r,2,"0")+":"+y(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,u),o=n-i<0,s=e.clone().add(r+(o?-1:1),u);return+(-(r+(n-i)/(o?i-s:s-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:u,y:f,w:c,d:a,D:h,h:s,m:o,s:i,ms:r,Q:l}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},b="en",w={};w[b]=g;var v=function(t){return t instanceof S},O=function t(e,n,r){var i;if(!e)return b;if("string"==typeof e){var o=e.toLowerCase();w[o]&&(i=o),n&&(w[o]=n,i=o);var s=e.split("-");if(!i&&s.length>1)return t(s[0])}else{var a=e.name;w[a]=e,i=a}return!r&&i&&(b=i),i||!r&&b},$=function(t,e){if(v(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new S(n)},E=_;E.l=O,E.i=v,E.w=function(t,e){return $(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function g(t){this.$L=O(t.locale,null,!0),this.parse(t)}var y=g.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(E.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(p);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return E},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(t,e){var n=$(t);return this.startOf(e)<=n&&n<=this.endOf(e)},y.isAfter=function(t,e){return $(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<$(t)},y.$g=function(t,e,n){return E.u(t)?this[e]:this.set(n,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,e){var n=this,r=!!E.u(e)||e,l=E.p(t),d=function(t,e){var i=E.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},p=function(t,e){return E.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},m=this.$W,g=this.$M,y=this.$D,_="set"+(this.$u?"UTC":"");switch(l){case f:return r?d(1,0):d(31,11);case u:return r?d(1,g):d(0,g+1);case c:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return d(r?y-w:y+(6-w),g);case a:case h:return p(_+"Hours",0);case s:return p(_+"Minutes",1);case o:return p(_+"Seconds",2);case i:return p(_+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var n,c=E.p(t),l="set"+(this.$u?"UTC":""),d=(n={},n[a]=l+"Date",n[h]=l+"Date",n[u]=l+"Month",n[f]=l+"FullYear",n[s]=l+"Hours",n[o]=l+"Minutes",n[i]=l+"Seconds",n[r]=l+"Milliseconds",n)[c],p=c===a?this.$D+(e-this.$W):e;if(c===u||c===f){var m=this.clone().set(h,1);m.$d[d](p),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},y.set=function(t,e){return this.clone().$set(t,e)},y.get=function(t){return this[E.p(t)]()},y.add=function(r,l){var h,d=this;r=Number(r);var p=E.p(l),m=function(t){var e=$(d);return E.w(e.date(e.date()+Math.round(t*r)),d)};if(p===u)return this.set(u,this.$M+r);if(p===f)return this.set(f,this.$y+r);if(p===a)return m(1);if(p===c)return m(7);var g=(h={},h[o]=e,h[s]=n,h[i]=t,h)[p]||1,y=this.$d.getTime()+r*g;return E.w(y,this)},y.subtract=function(t,e){return this.add(-1*t,e)},y.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=E.z(this),o=this.$H,s=this.$m,a=this.$M,c=n.weekdays,u=n.months,l=function(t,n,i,o){return t&&(t[n]||t(e,r))||i[n].slice(0,o)},f=function(t){return E.s(o%12||12,t,"0")},h=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:E.s(a+1,2,"0"),MMM:l(n.monthsShort,a,u,3),MMMM:l(u,a),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,c,2),ddd:l(n.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(o),HH:E.s(o,2,"0"),h:f(1),hh:f(2),a:h(o,s,!0),A:h(o,s,!1),m:String(s),mm:E.s(s,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:i};return r.replace(m,(function(t,e){return e||p[t]||i.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,h,d){var p,m=E.p(h),g=$(r),y=(g.utcOffset()-this.utcOffset())*e,_=this-g,b=E.m(this,g);return b=(p={},p[f]=b/12,p[u]=b,p[l]=b/3,p[c]=(_-y)/6048e5,p[a]=(_-y)/864e5,p[s]=_/n,p[o]=_/e,p[i]=_/t,p)[m]||_,d?b:E.a(b)},y.daysInMonth=function(){return this.endOf(u).$D},y.$locale=function(){return w[this.$L]},y.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=O(t,e,!0);return r&&(n.$L=r),n},y.clone=function(){return E.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},g}(),x=S.prototype;return $.prototype=x,[["$ms",r],["$s",i],["$m",o],["$H",s],["$W",a],["$M",u],["$y",f],["$D",h]].forEach((function(t){x[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),$.extend=function(t,e){return t.$i||(t(e,S,$),t.$i=!0),$},$.locale=O,$.isDayjs=v,$.unix=function(t){return $(1e3*t)},$.en=w[b],$.Ls=w,$.p={},$}();var A=R.exports,F={exports:{}};!function(t,e){t.exports=function(t,e,n){t=t||{};var r=e.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(t,e,n,i){return r.fromToBase(t,e,n,i)}n.en.relativeTime=i,r.fromToBase=function(e,r,o,s,a){for(var c,u,l,f=o.$locale().relativeTime||i,h=t.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],d=h.length,p=0;p<d;p+=1){var m=h[p];m.d&&(c=s?n(e).diff(o,m.d,!0):o.diff(e,m.d,!0));var g=(t.rounding||Math.round)(Math.abs(c));if(l=c>0,g<=m.r||!m.r){g<=1&&p>0&&(m=h[p-1]);var y=f[m.l];a&&(g=a(""+g)),u="string"==typeof y?y.replace("%d",g):y(g,r,m.l,l);break}}if(r)return u;var _=l?f.future:f.past;return"function"==typeof _?_(u):_.replace("%s",u)},r.to=function(t,e){return o(t,e,this,!0)},r.from=function(t,e){return o(t,e,this)};var s=function(t){return t.$u?n.utc():n()};r.toNow=function(t){return this.to(s(this),t)},r.fromNow=function(t){return this.from(s(this),t)}}}(F);var z=F.exports,k={exports:{}};!function(t,e){var n,r;t.exports=(n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={},function(t,e,i){var o,s=function(t,e,n){void 0===n&&(n={});var i=new Date(t);return function(t,e){void 0===e&&(e={});var n=e.timeZoneName||"short",i=t+"|"+n,o=r[i];return o||(o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:n}),r[i]=o),o}(e,n).formatToParts(i)},a=function(t,e){for(var r=s(t,e),o=[],a=0;a<r.length;a+=1){var c=r[a],u=c.type,l=c.value,f=n[u];f>=0&&(o[f]=parseInt(l,10))}var h=o[3],d=24===h?0:h,p=o[0]+"-"+o[1]+"-"+o[2]+" "+d+":"+o[4]+":"+o[5]+":000",m=+t;return(i.utc(p).valueOf()-(m-=m%1e3))/6e4},c=e.prototype;c.tz=function(t,e){void 0===t&&(t=o);var n=this.utcOffset(),r=this.toDate(),s=r.toLocaleString("en-US",{timeZone:t}),a=Math.round((r-new Date(s))/1e3/60),c=i(s).$set("millisecond",this.$ms).utcOffset(15*-Math.round(r.getTimezoneOffset()/15)-a,!0);if(e){var u=c.utcOffset();c=c.add(n-u,"minute")}return c.$x.$timezone=t,c},c.offsetName=function(t){var e=this.$x.$timezone||i.tz.guess(),n=s(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return n&&n.value};var u=c.startOf;c.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return u.call(this,t,e);var n=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return u.call(n,t,e).tz(this.$x.$timezone,!0)},i.tz=function(t,e,n){var r=n&&e,s=n||e||o,c=a(+i(),s);if("string"!=typeof t)return i(t).tz(s);var u=function(t,e,n){var r=t-60*e*1e3,i=a(r,n);if(e===i)return[r,e];var o=a(r-=60*(i-e)*1e3,n);return i===o?[r,i]:[t-60*Math.min(i,o)*1e3,Math.max(i,o)]}(i.utc(t,r).valueOf(),c,s),l=u[0],f=u[1],h=i(l).utcOffset(f);return h.$x.$timezone=s,h},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(t){o=t}})}(k);var C=k.exports,N={exports:{}};!function(t,e){var n,r,i;t.exports=(n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g,function(t,e,o){var s=e.prototype;o.utc=function(t){return new e({date:t,utc:!0,args:arguments})},s.utc=function(t){var e=o(this.toDate(),{locale:this.$L,utc:!0});return t?e.add(this.utcOffset(),n):e},s.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var a=s.parse;s.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),a.call(this,t)};var c=s.init;s.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else c.call(this)};var u=s.utcOffset;s.utcOffset=function(t,e){var o=this.$utils().u;if(o(t))return this.$u?0:o(this.$offset)?u.call(this):this.$offset;if("string"==typeof t&&null===(t=function(t){void 0===t&&(t="");var e=t.match(r);if(!e)return null;var n=(""+e[0]).match(i)||["-",0,0],o=n[0],s=60*+n[1]+ +n[2];return 0===s?0:"+"===o?s:-s}(t)))return this;var s=Math.abs(t)<=16?60*t:t,a=this;if(e)return a.$offset=s,a.$u=0===t,a;if(0!==t){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(s+c,n)).$offset=s,a.$x.$localOffset=c}else a=this.utc();return a};var l=s.format;s.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,e)},s.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var f=s.toDate;s.toDate=function(t){return"s"===t&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var h=s.diff;s.diff=function(t,e,n){if(t&&this.$u===t.$u)return h.call(this,t,e,n);var r=this.local(),i=o(t).local();return h.call(r,i,e,n)}})}(N);var P=N.exports;A.$defaultFormat=function(t){return A.utc(t).format("YYYY-MM-DD HH:mm:ss")},A.$prettyPrint=function(t){return A(t).format("h:mma dddd MMM DD, YYYY")};A.extend(z),A.extend(C),A.extend(((t,e,n)=>{e.prototype.skewedDiff=function(t,e){const n=Math.abs(this.diff(t))/6e4;return n>e?Math.floor(n):n<e?Math.ceil(n):n}})),A.extend(P);const U=A;function L(t,e){return function(){return t.apply(e,arguments)}}const{toString:B}=Object.prototype,{getPrototypeOf:I}=Object,q=(Y=Object.create(null),t=>{const e=B.call(t);return Y[e]||(Y[e]=e.slice(8,-1).toLowerCase())});var Y;const H=t=>(t=t.toLowerCase(),e=>q(e)===t),V=t=>e=>typeof e===t,{isArray:W}=Array,J=V("undefined");const K=H("ArrayBuffer");const Z=V("string"),Q=V("function"),X=V("number"),G=t=>null!==t&&"object"==typeof t,tt=t=>{if("object"!==q(t))return!1;const e=I(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},et=H("Date"),nt=H("File"),rt=H("Blob"),it=H("FileList"),ot=H("URLSearchParams");function st(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,i;if("object"!=typeof t&&(t=[t]),W(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let s;for(r=0;r<o;r++)s=i[r],e.call(null,t[s],s,t)}}const at=(ct="undefined"!=typeof Uint8Array&&I(Uint8Array),t=>ct&&t instanceof ct);var ct;const ut=H("HTMLFormElement"),lt=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),ft=H("RegExp"),ht=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};st(n,((n,i)=>{!1!==e(n,i,t)&&(r[i]=n)})),Object.defineProperties(t,r)};var dt={isArray:W,isArrayBuffer:K,isBuffer:function(t){return null!==t&&!J(t)&&null!==t.constructor&&!J(t.constructor)&&Q(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{const e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||B.call(t)===e||Q(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&K(t.buffer),e},isString:Z,isNumber:X,isBoolean:t=>!0===t||!1===t,isObject:G,isPlainObject:tt,isUndefined:J,isDate:et,isFile:nt,isBlob:rt,isRegExp:ft,isFunction:Q,isStream:t=>G(t)&&Q(t.pipe),isURLSearchParams:ot,isTypedArray:at,isFileList:it,forEach:st,merge:function t(){const e={},n=(n,r)=>{tt(e[r])&&tt(n)?e[r]=t(e[r],n):tt(n)?e[r]=t({},n):W(n)?e[r]=n.slice():e[r]=n};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&st(arguments[r],n);return e},extend:(t,e,n,{allOwnKeys:r}={})=>(st(e,((e,r)=>{n&&Q(e)?t[r]=L(e,n):t[r]=e}),{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let i,o,s;const a={};if(e=e||{},null==t)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)s=i[o],r&&!r(s,t,e)||a[s]||(e[s]=t[s],a[s]=!0);t=!1!==n&&I(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:q,kindOfTest:H,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(W(t))return t;let e=t.length;if(!X(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:ut,hasOwnProperty:lt,hasOwnProp:lt,reduceDescriptors:ht,freezeMethods:t=>{ht(t,((e,n)=>{const r=t[n];Q(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach((t=>{n[t]=!0}))};return W(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e)};function pt(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}dt.inherits(pt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const mt=pt.prototype,gt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{gt[t]={value:t}})),Object.defineProperties(pt,gt),Object.defineProperty(mt,"isAxiosError",{value:!0}),pt.from=(t,e,n,r,i,o)=>{const s=Object.create(mt);return dt.toFlatObject(t,s,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),pt.call(s,t.message,e,n,r,i),s.cause=t,s.name=t.name,o&&Object.assign(s,o),s};var yt="object"==typeof self?self.FormData:window.FormData;function _t(t){return dt.isPlainObject(t)||dt.isArray(t)}function bt(t){return dt.endsWith(t,"[]")?t.slice(0,-2):t}function wt(t,e,n){return t?t.concat(e).map((function(t,e){return t=bt(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const vt=dt.toFlatObject(dt,{},null,(function(t){return/^is[A-Z]/.test(t)}));function Ot(t,e,n){if(!dt.isObject(t))throw new TypeError("target must be an object");e=e||new(yt||FormData);const r=(n=dt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!dt.isUndefined(e[t])}))).metaTokens,i=n.visitor||l,o=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&((c=e)&&dt.isFunction(c.append)&&"FormData"===c[Symbol.toStringTag]&&c[Symbol.iterator]);var c;if(!dt.isFunction(i))throw new TypeError("visitor must be a function");function u(t){if(null===t)return"";if(dt.isDate(t))return t.toISOString();if(!a&&dt.isBlob(t))throw new pt("Blob is not supported. Use a Buffer instead.");return dt.isArrayBuffer(t)||dt.isTypedArray(t)?a&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function l(t,n,i){let a=t;if(t&&!i&&"object"==typeof t)if(dt.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(dt.isArray(t)&&function(t){return dt.isArray(t)&&!t.some(_t)}(t)||dt.isFileList(t)||dt.endsWith(n,"[]")&&(a=dt.toArray(t)))return n=bt(n),a.forEach((function(t,r){!dt.isUndefined(t)&&null!==t&&e.append(!0===s?wt([n],r,o):null===s?n:n+"[]",u(t))})),!1;return!!_t(t)||(e.append(wt(i,n,o),u(t)),!1)}const f=[],h=Object.assign(vt,{defaultVisitor:l,convertValue:u,isVisitable:_t});if(!dt.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!dt.isUndefined(n)){if(-1!==f.indexOf(n))throw Error("Circular reference detected in "+r.join("."));f.push(n),dt.forEach(n,(function(n,o){!0===(!(dt.isUndefined(n)||null===n)&&i.call(e,n,dt.isString(o)?o.trim():o,r,h))&&t(n,r?r.concat(o):[o])})),f.pop()}}(t),e}function $t(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function Et(t,e){this._pairs=[],t&&Ot(t,this,e)}const St=Et.prototype;function xt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Mt(t,e,n){if(!e)return t;const r=n&&n.encode||xt,i=n&&n.serialize;let o;if(o=i?i(e,n):dt.isURLSearchParams(e)?e.toString():new Et(e,n).toString(r),o){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}St.append=function(t,e){this._pairs.push([t,e])},St.toString=function(t){const e=t?function(e){return t.call(this,e,$t)}:$t;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};class Dt{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){dt.forEach(this.handlers,(function(e){null!==e&&t(e)}))}}var jt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Tt="undefined"!=typeof URLSearchParams?URLSearchParams:Et,Rt=FormData;const At=(()=>{let t;return("undefined"==typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&("undefined"!=typeof window&&"undefined"!=typeof document)})();var Ft={isBrowser:!0,classes:{URLSearchParams:Tt,FormData:Rt,Blob:Blob},isStandardBrowserEnv:At,protocols:["http","https","file","blob","url","data"]};function zt(t){function e(t,n,r,i){let o=t[i++];const s=Number.isFinite(+o),a=i>=t.length;if(o=!o&&dt.isArray(r)?r.length:o,a)return dt.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!s;r[o]&&dt.isObject(r[o])||(r[o]=[]);return e(t,n,r[o],i)&&dt.isArray(r[o])&&(r[o]=function(t){const e={},n=Object.keys(t);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],e[o]=t[o];return e}(r[o])),!s}if(dt.isFormData(t)&&dt.isFunction(t.entries)){const n={};return dt.forEachEntry(t,((t,r)=>{e(function(t){return dt.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),r,n,0)})),n}return null}var kt=Ft.isStandardBrowserEnv?{write:function(t,e,n,r,i,o){const s=[];s.push(t+"="+encodeURIComponent(e)),dt.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),dt.isString(r)&&s.push("path="+r),dt.isString(i)&&s.push("domain="+i),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Ct(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}var Nt=Ft.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function r(n){let r=n;return t&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=r(window.location.href),function(t){const e=dt.isString(t)?r(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0};function Pt(t,e,n){pt.call(this,null==t?"canceled":t,pt.ERR_CANCELED,e,n),this.name="CanceledError"}dt.inherits(Pt,pt,{__CANCEL__:!0});const Ut=dt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const Lt=Symbol("internals"),Bt=Symbol("defaults");function It(t){return t&&String(t).trim().toLowerCase()}function qt(t){return!1===t||null==t?t:dt.isArray(t)?t.map(qt):String(t)}function Yt(t,e,n,r){return dt.isFunction(r)?r.call(this,e,n):dt.isString(e)?dt.isString(r)?-1!==e.indexOf(r):dt.isRegExp(r)?r.test(e):void 0:void 0}function Ht(t,e){e=e.toLowerCase();const n=Object.keys(t);let r,i=n.length;for(;i-- >0;)if(r=n[i],e===r.toLowerCase())return r;return null}function Vt(t,e){t&&this.set(t),this[Bt]=e||null}function Wt(t,e){let n=0;const r=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i,o=0,s=0;return e=void 0!==e?e:1e3,function(a){const c=Date.now(),u=r[s];i||(i=c),n[o]=a,r[o]=c;let l=s,f=0;for(;l!==o;)f+=n[l++],l%=t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),c-i<e)return;const h=u&&c-u;return h?Math.round(1e3*f/h):void 0}}(50,250);return i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-n,c=r(a);n=o;const u={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&o<=s?(s-o)/c:void 0};u[e?"download":"upload"]=!0,t(u)}}function Jt(t){return new Promise((function(e,n){let r=t.data;const i=Vt.from(t.headers).normalize(),o=t.responseType;let s;function a(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}dt.isFormData(r)&&Ft.isStandardBrowserEnv&&i.setContentType(!1);let c=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",n=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(e+":"+n))}const u=Ct(t.baseURL,t.url);function l(){if(!c)return;const r=Vt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new pt("Request failed with status code "+n.status,[pt.ERR_BAD_REQUEST,pt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}((function(t){e(t),a()}),(function(t){n(t),a()}),{data:o&&"text"!==o&&"json"!==o?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:t,request:c}),c=null}if(c.open(t.method.toUpperCase(),Mt(u,t.params,t.paramsSerializer),!0),c.timeout=t.timeout,"onloadend"in c?c.onloadend=l:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(l)},c.onabort=function(){c&&(n(new pt("Request aborted",pt.ECONNABORTED,t,c)),c=null)},c.onerror=function(){n(new pt("Network Error",pt.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const r=t.transitional||jt;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new pt(e,r.clarifyTimeoutError?pt.ETIMEDOUT:pt.ECONNABORTED,t,c)),c=null},Ft.isStandardBrowserEnv){const e=(t.withCredentials||Nt(u))&&t.xsrfCookieName&&kt.read(t.xsrfCookieName);e&&i.set(t.xsrfHeaderName,e)}void 0===r&&i.setContentType(null),"setRequestHeader"in c&&dt.forEach(i.toJSON(),(function(t,e){c.setRequestHeader(e,t)})),dt.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),o&&"json"!==o&&(c.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&c.addEventListener("progress",Wt(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",Wt(t.onUploadProgress)),(t.cancelToken||t.signal)&&(s=e=>{c&&(n(!e||e.type?new Pt(null,t,c):e),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s)));const f=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(u);f&&-1===Ft.protocols.indexOf(f)?n(new pt("Unsupported protocol "+f+":",pt.ERR_BAD_REQUEST,t)):c.send(r||null)}))}Object.assign(Vt.prototype,{set:function(t,e,n){const r=this;function i(t,e,n){const i=It(e);if(!i)throw new Error("header name must be a non-empty string");const o=Ht(r,i);(!o||!0===n||!1!==r[o]&&!1!==n)&&(r[o||e]=qt(t))}return dt.isPlainObject(t)?dt.forEach(t,((t,n)=>{i(t,n,e)})):i(e,t,n),this},get:function(t,e){if(!(t=It(t)))return;const n=Ht(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(dt.isFunction(e))return e.call(this,t,n);if(dt.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}},has:function(t,e){if(t=It(t)){const n=Ht(this,t);return!(!n||e&&!Yt(0,this[n],n,e))}return!1},delete:function(t,e){const n=this;let r=!1;function i(t){if(t=It(t)){const i=Ht(n,t);!i||e&&!Yt(0,n[i],i,e)||(delete n[i],r=!0)}}return dt.isArray(t)?t.forEach(i):i(t),r},clear:function(){return Object.keys(this).forEach(this.delete.bind(this))},normalize:function(t){const e=this,n={};return dt.forEach(this,((r,i)=>{const o=Ht(n,i);if(o)return e[o]=qt(r),void delete e[i];const s=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(i):String(i).trim();s!==i&&delete e[i],e[s]=qt(r),n[s]=!0})),this},toJSON:function(t){const e=Object.create(null);return dt.forEach(Object.assign({},this[Bt]||null,this),((n,r)=>{null!=n&&!1!==n&&(e[r]=t&&dt.isArray(n)?n.join(", "):n)})),e}}),Object.assign(Vt,{from:function(t){return dt.isString(t)?new this((t=>{const e={};let n,r,i;return t&&t.split("\n").forEach((function(t){i=t.indexOf(":"),n=t.substring(0,i).trim().toLowerCase(),r=t.substring(i+1).trim(),!n||e[n]&&Ut[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e})(t)):t instanceof this?t:new this(t)},accessor:function(t){const e=(this[Lt]=this[Lt]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=It(t);e[r]||(!function(t,e){const n=dt.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,i){return this[r].call(this,e,t,n,i)},configurable:!0})}))}(n,t),e[r]=!0)}return dt.isArray(t)?t.forEach(r):r(t),this}}),Vt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),dt.freezeMethods(Vt.prototype),dt.freezeMethods(Vt);const Kt={http:Jt,xhr:Jt};var Zt=t=>{if(dt.isString(t)){const e=Kt[t];if(!t)throw Error(dt.hasOwnProp(t)?`Adapter '${t}' is not available in the build`:`Can not resolve adapter '${t}'`);return e}if(!dt.isFunction(t))throw new TypeError("adapter is not a function");return t};const Qt={"Content-Type":"application/x-www-form-urlencoded"};const Xt={transitional:jt,adapter:function(){let t;return"undefined"!=typeof XMLHttpRequest?t=Zt("xhr"):"undefined"!=typeof process&&"process"===dt.kindOf(process)&&(t=Zt("http")),t}(),transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,i=dt.isObject(t);i&&dt.isHTMLForm(t)&&(t=new FormData(t));if(dt.isFormData(t))return r&&r?JSON.stringify(zt(t)):t;if(dt.isArrayBuffer(t)||dt.isBuffer(t)||dt.isStream(t)||dt.isFile(t)||dt.isBlob(t))return t;if(dt.isArrayBufferView(t))return t.buffer;if(dt.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return Ot(t,new Ft.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return Ft.isNode&&dt.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((o=dt.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Ot(o?{"files[]":t}:t,e&&new e,this.formSerializer)}}return i||r?(e.setContentType("application/json",!1),function(t,e,n){if(dt.isString(t))try{return(e||JSON.parse)(t),dt.trim(t)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||Xt.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(t&&dt.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(i){if(n){if("SyntaxError"===i.name)throw pt.from(i,pt.ERR_BAD_RESPONSE,this,null,this.response);throw i}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ft.classes.FormData,Blob:Ft.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};function Gt(t,e){const n=this||Xt,r=e||n,i=Vt.from(r.headers);let o=r.data;return dt.forEach(t,(function(t){o=t.call(n,o,i.normalize(),e?e.status:void 0)})),i.normalize(),o}function te(t){return!(!t||!t.__CANCEL__)}function ee(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Pt}function ne(t){ee(t),t.headers=Vt.from(t.headers),t.data=Gt.call(t,t.transformRequest);return(t.adapter||Xt.adapter)(t).then((function(e){return ee(t),e.data=Gt.call(t,t.transformResponse,e),e.headers=Vt.from(e.headers),e}),(function(e){return te(e)||(ee(t),e&&e.response&&(e.response.data=Gt.call(t,t.transformResponse,e.response),e.response.headers=Vt.from(e.response.headers))),Promise.reject(e)}))}function re(t,e){e=e||{};const n={};function r(t,e){return dt.isPlainObject(t)&&dt.isPlainObject(e)?dt.merge(t,e):dt.isPlainObject(e)?dt.merge({},e):dt.isArray(e)?e.slice():e}function i(n){return dt.isUndefined(e[n])?dt.isUndefined(t[n])?void 0:r(void 0,t[n]):r(t[n],e[n])}function o(t){if(!dt.isUndefined(e[t]))return r(void 0,e[t])}function s(n){return dt.isUndefined(e[n])?dt.isUndefined(t[n])?void 0:r(void 0,t[n]):r(void 0,e[n])}function a(n){return n in e?r(t[n],e[n]):n in t?r(void 0,t[n]):void 0}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a};return dt.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){const e=c[t]||i,r=e(t);dt.isUndefined(r)&&e!==a||(n[t]=r)})),n}dt.forEach(["delete","get","head"],(function(t){Xt.headers[t]={}})),dt.forEach(["post","put","patch"],(function(t){Xt.headers[t]=dt.merge(Qt)}));const ie="1.1.3",oe={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{oe[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const se={};oe.transitional=function(t,e,n){function r(t,e){return"[Axios v1.1.3] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,i,o)=>{if(!1===t)throw new pt(r(i," has been removed"+(e?" in "+e:"")),pt.ERR_DEPRECATED);return e&&!se[i]&&(se[i]=!0,console.warn(r(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,i,o)}};var ae={assertOptions:function(t,e,n){if("object"!=typeof t)throw new pt("options must be an object",pt.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const o=r[i],s=e[o];if(s){const e=t[o],n=void 0===e||s(e,o,t);if(!0!==n)throw new pt("option "+o+" must be "+n,pt.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new pt("Unknown option "+o,pt.ERR_BAD_OPTION)}},validators:oe};const ce=ae.validators;class ue{constructor(t){this.defaults=t,this.interceptors={request:new Dt,response:new Dt}}request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=re(this.defaults,e);const{transitional:n,paramsSerializer:r}=e;void 0!==n&&ae.assertOptions(n,{silentJSONParsing:ce.transitional(ce.boolean),forcedJSONParsing:ce.transitional(ce.boolean),clarifyTimeoutError:ce.transitional(ce.boolean)},!1),void 0!==r&&ae.assertOptions(r,{encode:ce.function,serialize:ce.function},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();const i=e.headers&&dt.merge(e.headers.common,e.headers[e.method]);i&&dt.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),e.headers=new Vt(e.headers,i);const o=[];let s=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,o.unshift(t.fulfilled,t.rejected))}));const a=[];let c;this.interceptors.response.forEach((function(t){a.push(t.fulfilled,t.rejected)}));let u,l=0;if(!s){const t=[ne.bind(this),void 0];for(t.unshift.apply(t,o),t.push.apply(t,a),u=t.length,c=Promise.resolve(e);l<u;)c=c.then(t[l++],t[l++]);return c}u=o.length;let f=e;for(l=0;l<u;){const t=o[l++],e=o[l++];try{f=t(f)}catch(h){e.call(this,h);break}}try{c=ne.call(this,f)}catch(h){return Promise.reject(h)}for(l=0,u=a.length;l<u;)c=c.then(a[l++],a[l++]);return c}getUri(t){return Mt(Ct((t=re(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}dt.forEach(["delete","get","head","options"],(function(t){ue.prototype[t]=function(e,n){return this.request(re(n||{},{method:t,url:e,data:(n||{}).data}))}})),dt.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,i){return this.request(re(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ue.prototype[t]=e(),ue.prototype[t+"Form"]=e(!0)}));class le{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,r,i){n.reason||(n.reason=new Pt(t,r,i),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new le((function(e){t=e})),cancel:t}}}const fe=function t(e){const n=new ue(e),r=L(ue.prototype.request,n);return dt.extend(r,ue.prototype,n,{allOwnKeys:!0}),dt.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(re(e,n))},r}(Xt);fe.Axios=ue,fe.CanceledError=Pt,fe.CancelToken=le,fe.isCancel=te,fe.VERSION=ie,fe.toFormData=Ot,fe.AxiosError=pt,fe.Cancel=fe.CanceledError,fe.all=function(t){return Promise.all(t)},fe.spread=function(t){return function(e){return t.apply(null,e)}},fe.isAxiosError=function(t){return dt.isObject(t)&&!0===t.isAxiosError},fe.formToJSON=t=>zt(dt.isHTMLForm(t)?new FormData(t):t);const he="leach"!=={VITE_BUILD_MODE:"mod",VITE_MAPTILER_KEY:"NvYyjimTkUQBEjVebxLV",VITE_NREL_KEY:"BThVJdnwHbO8hDpQkBdeqsUoeXhQuMgMRgO3hvyo",VITE_OPENWEATHERMAP_KEY:"09b21cd89a07eaa465d3d9c2b2a6d0c3",BASE_URL:"/static/monitor-map/",MODE:"production",DEV:!1,PROD:!0}.VITE_REQUEST_MODE?"/api/1.0/":"https://www.sjvair.com/api/1.0/",de=fe.create({baseURL:he});class pe{constructor(t){__publicField(this,"data"),__publicField(this,"dataFields"),__publicField(this,"displayField"),__publicField(this,"lastUpdated"),__publicField(this,"markerParams"),__publicField(this,"monitorFields"),this.data=t,this.markerParams=function(t){const e=`#${_}`,n={border_color:y(m(e,.1)),border_size:1,fill_color:e,value_color:e,size:8,shape:"square"};switch(t.device){case"AirNow":case"BAM1022":n.shape="triangle";break;case"PurpleAir":t.is_sjvair&&(n.shape="circle");break;default:console.error(`Unknown device type for monitor ${t.id}`),n.shape="diamond"}if(t.latest){const e=x(+t.latest.pm25_avg_15,D.levels);if(n.value_color=e,t.is_active)switch(n.fill_color=x(+t.latest.pm25_avg_15,D.levels),n.border_color=y(m(n.fill_color,.1)),t.device){case"AirNow":case"BAM1022":n.size=14;break;case"PurpleAir":t.is_sjvair?n.size=16:n.size=10}"inside"===t.location&&(n.border_color=`#${b}`,n.border_size=2)}return n}(t),this.monitorFields=j(t),this.dataFields=Object.keys(this.monitorFields),this.displayField=this.monitorFields.pm25_avg_15,this.lastUpdated=t.latest&&Object.keys(t.latest).length>1?U(t.latest.timestamp).fromNow():"never"}}var me=Object.freeze({__proto__:null,fetchMonitors:async function(){return de.get("/monitors").then((t=>{const e={};for(let n of t.data.data)n.position.coordinates[1]>42||(e[n.id]=new pe(n));return e}))},fetchEntries:async function t(e,n,r=1){const i=[],o={fields:e.dataFields.join(","),page:r,timestamp__gte:U.$defaultFormat(n.start),timestamp__lte:U.$defaultFormat(n.end)};return de.get(`monitors/${e.data.id}/entries/`,{params:o}).then((async o=>{const s=o.data;if(s.data.length&&(i.push(...s.data),s.has_next_page)){const o=await t(e,n,++r).catch((t=>{throw t}));o.length&&i.push(...o)}return i}))},fetchSubscriptions:async function(){return de.get("alerts/subscriptions").then((t=>t.data.data))},fetchTempByCoords:async function(t){const e=`https://api.weather.gov/points/${t.join(",")}`;return await de(e).then((async t=>{try{return(await de(t.data.properties.forecastHourly)).data.properties.periods[0].temperature}catch(e){throw e}}))}});new class{constructor(e,n){__publicField(this,"serviceModule"),__publicField(this,"serviceModuleName"),this.serviceModule=n,this.serviceModuleName=e,self.addEventListener("message",(async e=>{const{id:n,taskName:r,parameters:i}=e.data;this.serviceModule[r];const o=new t(n);r in this.serviceModule?await this.serviceModule[r](...i).then((t=>o.pass(t))).catch((t=>o.fail(t.message))):o.fail(`Background task "${String(r)}" not found in "${this.serviceModuleName}" controller`),self.postMessage(o)}))}}("MonitorsService",me)}();
|