@sjvair/monitor-map 2.3.0 → 2.5.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/airgradient-blue.svg +63 -0
- package/dist/assets/BackgroundRequests-BUEJf1Zf.js +1 -0
- package/dist/assets/CalibratorsWorker-BQo7FW39.js +1 -0
- package/dist/assets/EVWorker-CktUjG48.js +1 -0
- package/dist/assets/MonitorDetails-Bcr0-oMy.js +1 -0
- package/dist/assets/MonitorsWorker-CruBUrnP.js +1 -0
- package/dist/sjvairMonitorMap.js +8 -8
- package/package.json +9 -9
- package/dist/assets/BackgroundRequests-DLY1xUPG.js +0 -1
- package/dist/assets/CalibratorsWorker-UIt-3fNZ.js +0 -1
- package/dist/assets/EVWorker-DUQOiwdE.js +0 -1
- package/dist/assets/MonitorDetails-D0LTSOtq.js +0 -1
- package/dist/assets/MonitorsWorker-DXWozyKX.js +0 -1
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
7
|
-
"version": "2.
|
|
7
|
+
"version": "2.5.0",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"dev": "vite",
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@sjvair/sdk": "npm:@jsr/sjvair__sdk@^2.0.0-alpha.14",
|
|
18
18
|
"@tstk/decorators": "npm:@jsr/tstk__decorators@^1.0.4",
|
|
19
|
-
"@tstk/types": "npm:@jsr/tstk__types@^1.0
|
|
19
|
+
"@tstk/types": "npm:@jsr/tstk__types@^1.1.0",
|
|
20
20
|
"@types/d3": "^7.4.3",
|
|
21
21
|
"@types/leaflet": "^1.9.20",
|
|
22
22
|
"@types/leaflet.markercluster": "^1.5.5",
|
|
23
|
-
"@types/node": "24.0
|
|
24
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
23
|
+
"@types/node": "24.2.0",
|
|
24
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
25
25
|
"@vuepic/vue-datepicker": "^11.0.2",
|
|
26
|
-
"axios": "^1.
|
|
26
|
+
"axios": "^1.11.0",
|
|
27
27
|
"bulma": "^0.9.4",
|
|
28
28
|
"color2k": "^2.0.3",
|
|
29
29
|
"d3": "^7.9.0",
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"leaflet.markercluster": "^1.5.3",
|
|
34
34
|
"sass-embedded": "^1.89.2",
|
|
35
35
|
"terser": "^5.43.1",
|
|
36
|
-
"typescript": "^5.
|
|
36
|
+
"typescript": "^5.9.2",
|
|
37
37
|
"uplot": "^1.6.32",
|
|
38
|
-
"vite": "^7.0.
|
|
38
|
+
"vite": "^7.0.6",
|
|
39
39
|
"vite-plugin-purgecss": "^0.2.13",
|
|
40
|
-
"vue": "^3.5.
|
|
40
|
+
"vue": "^3.5.18",
|
|
41
41
|
"vue-router": "^4.5.1",
|
|
42
|
-
"vue-tsc": "^3.0.
|
|
42
|
+
"vue-tsc": "^3.0.5"
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a7 as n}from"../sjvairMonitorMap.js";const t=new n(new function(n){return new Worker("/static/monitor-map/assets/EVWorker-DUQOiwdE.js",{type:"module",name:n?.name})});async function r(){return await t.run("fetchLvl2Stations")}async function a(){return await t.run("fetchLvl3Stations")}export{r as fetchLvl2Stations,a as fetchLvl3Stations};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
class e{id;error;success;payload;constructor(e){this.id=e}pass(e){this.success=!0,this.payload=e}fail(e){this.success=!1,this.error=e}}function s(){return new URL(`https://www.sjvair.com/api/2.0/${"calibrations"}/`)}async function t(){const e=s();return await async function(e,s){return await fetch(e,s).then(async s=>{const t=await s.json().catch(t=>{throw new Error(`Request to endpoint "${e.href}" failed`,{cause:s})});return{headers:s.headers,body:t,ok:s.ok,redirected:s.redirected,status:s.status,statusText:s.statusText,url:s.url}})}(e)}function a(e){const{data:s}=e.body;return Array.isArray(s)&&s.length?s:[]}var r=Object.freeze({__proto__:null,fetchCalibrators:async function(){return await async function(){return await t().then(a)}()}});new class{serviceModule;serviceModuleName;constructor(s,t){this.serviceModule=t,this.serviceModuleName=s,self.addEventListener("message",async s=>{const{id:t,taskName:a,parameters:r}=s.data;this.serviceModule[a];const n=new e(t);a in this.serviceModule?await this.serviceModule[a](...r).then(e=>n.pass(e)).catch(e=>n.fail(e.message)):n.fail(`Background task "${String(a)}" not found in "${this.serviceModuleName}" controller`),self.postMessage(n)})}}("CalibratorsService",r);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
class e{id;error;success;payload;constructor(e){this.id=e}pass(e){this.success=!0,this.payload=e}fail(e){this.success=!1,this.error=e}}function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n,r={exports:{}};var s,o=(n||(n=1,r.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",s="second",o="minute",i="hour",a="day",c="week",u="month",l="quarter",f="year",d="date",h="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,y={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("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},E={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),s=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(s,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),s=t.clone().add(r,u),o=n-s<0,i=t.clone().add(r+(o?-1:1),u);return+(-(r+(n-s)/(o?s-i:i-s))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:f,w:c,d:a,D:d,h:i,m:o,s:s,ms:r,Q:l}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},w="en",b={};b[w]=y;var O="$isDayjsObject",S=function(e){return e instanceof A||!(!e||!e[O])},R=function e(t,n,r){var s;if(!t)return w;if("string"==typeof t){var o=t.toLowerCase();b[o]&&(s=o),n&&(b[o]=n,s=o);var i=t.split("-");if(!s&&i.length>1)return e(i[0])}else{var a=t.name;b[a]=t,s=a}return!r&&s&&(w=s),s||!r&&w},v=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new A(n)},T=E;T.l=R,T.i=S,T.w=function(e,t){return v(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var A=function(){function y(e){this.$L=R(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[O]=!0}var g=y.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.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(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return T},g.isValid=function(){return!(this.$d.toString()===h)},g.isSame=function(e,t){var n=v(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return v(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<v(e)},g.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,r=!!T.u(t)||t,l=T.p(e),h=function(e,t){var s=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?s:s.endOf(a)},p=function(e,t){return T.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,y=this.$M,g=this.$D,E="set"+(this.$u?"UTC":"");switch(l){case f:return r?h(1,0):h(31,11);case u:return r?h(1,y):h(0,y+1);case c:var w=this.$locale().weekStart||0,b=(m<w?m+7:m)-w;return h(r?g-b:g+(6-b),y);case a:case d:return p(E+"Hours",0);case i:return p(E+"Minutes",1);case o:return p(E+"Seconds",2);case s:return p(E+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var n,c=T.p(e),l="set"+(this.$u?"UTC":""),h=(n={},n[a]=l+"Date",n[d]=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+(t-this.$W):t;if(c===u||c===f){var m=this.clone().set(d,1);m.$d[h](p),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[T.p(e)]()},g.add=function(r,l){var d,h=this;r=Number(r);var p=T.p(l),m=function(e){var t=v(h);return T.w(t.date(t.date()+Math.round(e*r)),h)};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 y=(d={},d[o]=t,d[i]=n,d[s]=e,d)[p]||1,g=this.$d.getTime()+r*y;return T.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var r=e||"YYYY-MM-DDTHH:mm:ssZ",s=T.z(this),o=this.$H,i=this.$m,a=this.$M,c=n.weekdays,u=n.months,l=n.meridiem,f=function(e,n,s,o){return e&&(e[n]||e(t,r))||s[n].slice(0,o)},d=function(e){return T.s(o%12||12,e,"0")},p=l||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return T.s(t.$y,4,"0");case"M":return a+1;case"MM":return T.s(a+1,2,"0");case"MMM":return f(n.monthsShort,a,u,3);case"MMMM":return f(u,a);case"D":return t.$D;case"DD":return T.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(n.weekdaysMin,t.$W,c,2);case"ddd":return f(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(o);case"HH":return T.s(o,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return p(o,i,!0);case"A":return p(o,i,!1);case"m":return String(i);case"mm":return T.s(i,2,"0");case"s":return String(t.$s);case"ss":return T.s(t.$s,2,"0");case"SSS":return T.s(t.$ms,3,"0");case"Z":return s}return null}(e)||s.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,d,h){var p,m=this,y=T.p(d),g=v(r),E=(g.utcOffset()-this.utcOffset())*t,w=this-g,b=function(){return T.m(m,g)};switch(y){case f:p=b()/12;break;case u:p=b();break;case l:p=b()/3;break;case c:p=(w-E)/6048e5;break;case a:p=(w-E)/864e5;break;case i:p=w/n;break;case o:p=w/t;break;case s:p=w/e;break;default:p=w}return h?p:T.a(p)},g.daysInMonth=function(){return this.endOf(u).$D},g.$locale=function(){return b[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=R(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return T.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},y}(),C=A.prototype;return v.prototype=C,[["$ms",r],["$s",s],["$m",o],["$H",i],["$W",a],["$M",u],["$y",f],["$D",d]].forEach(function(e){C[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),v.extend=function(e,t){return e.$i||(e(t,A,v),e.$i=!0),v},v.locale=R,v.isDayjs=S,v.unix=function(e){return v(1e3*e)},v.en=b[w],v.Ls=b,v.p={},v}()),r.exports),i=t(o),a={exports:{}};var c,u=s?a.exports:(s=1,a.exports=function(e,t,n){e=e||{};var r=t.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(e,t,n,s){return r.fromToBase(e,t,n,s)}n.en.relativeTime=s,r.fromToBase=function(t,r,o,i,a){for(var c,u,l,f=o.$locale().relativeTime||s,d=e.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"}],h=d.length,p=0;p<h;p+=1){var m=d[p];m.d&&(c=i?n(t).diff(o,m.d,!0):o.diff(t,m.d,!0));var y=(e.rounding||Math.round)(Math.abs(c));if(l=c>0,y<=m.r||!m.r){y<=1&&p>0&&(m=d[p-1]);var g=f[m.l];a&&(y=a(""+y)),u="string"==typeof g?g.replace("%d",y):g(y,r,m.l,l);break}}if(r)return u;var E=l?f.future:f.past;return"function"==typeof E?E(u):E.replace("%s",u)},r.to=function(e,t){return o(e,t,this,!0)},r.from=function(e,t){return o(e,t,this)};var i=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(i(this),e)},r.fromNow=function(e){return this.from(i(this),e)}}),l=t(u),f={exports:{}};var d,h,p,m=t(c?f.exports:(c=1,f.exports=(d={year:0,month:1,day:2,hour:3,minute:4,second:5},h={},function(e,t,n){var r,s=function(e,t,n){void 0===n&&(n={});var r=new Date(e),s=function(e,t){void 0===t&&(t={});var n=t.timeZoneName||"short",r=e+"|"+n,s=h[r];return s||(s=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:n}),h[r]=s),s}(t,n);return s.formatToParts(r)},o=function(e,t){for(var r=s(e,t),o=[],i=0;i<r.length;i+=1){var a=r[i],c=a.type,u=a.value,l=d[c];l>=0&&(o[l]=parseInt(u,10))}var f=o[3],h=24===f?0:f,p=o[0]+"-"+o[1]+"-"+o[2]+" "+h+":"+o[4]+":"+o[5]+":000",m=+e;return(n.utc(p).valueOf()-(m-=m%1e3))/6e4},i=t.prototype;i.tz=function(e,t){void 0===e&&(e=r);var s,o=this.utcOffset(),i=this.toDate(),a=i.toLocaleString("en-US",{timeZone:e}),c=Math.round((i-new Date(a))/1e3/60),u=15*-Math.round(i.getTimezoneOffset()/15)-c;if(Number(u)){if(s=n(a,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(u,!0),t){var l=s.utcOffset();s=s.add(o-l,"minute")}}else s=this.utcOffset(0,t);return s.$x.$timezone=e,s},i.offsetName=function(e){var t=this.$x.$timezone||n.tz.guess(),r=s(this.valueOf(),t,{timeZoneName:e}).find(function(e){return"timezonename"===e.type.toLowerCase()});return r&&r.value};var a=i.startOf;i.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return a.call(this,e,t);var r=n(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return a.call(r,e,t).tz(this.$x.$timezone,!0)},n.tz=function(e,t,s){var i=s&&t,a=s||t||r,c=o(+n(),a);if("string"!=typeof e)return n(e).tz(a);var u=function(e,t,n){var r=e-60*t*1e3,s=o(r,n);if(t===s)return[r,t];var i=o(r-=60*(s-t)*1e3,n);return s===i?[r,s]:[e-60*Math.min(s,i)*1e3,Math.max(s,i)]}(n.utc(e,i).valueOf(),c,a),l=u[0],f=u[1],d=n(l).utcOffset(f);return d.$x.$timezone=a,d},n.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},n.tz.setDefault=function(e){r=e}}))),y={exports:{}};var g=(p||(p=1,y.exports=function(){var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,s,o){var i=s.prototype;o.utc=function(e){return new s({date:e,utc:!0,args:arguments})},i.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},i.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var a=i.parse;i.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),a.call(this,e)};var c=i.init;i.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var u=i.utcOffset;i.utcOffset=function(r,s){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?u.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var s=(""+r[0]).match(n)||["-",0,0],o=s[0],i=60*+s[1]+ +s[2];return 0===i?0:"+"===o?i:-i}(r),null===r))return this;var i=Math.abs(r)<=16?60*r:r,a=this;if(s)return a.$offset=i,a.$u=0===r,a;if(0!==r){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(i+c,e)).$offset=i,a.$x.$localOffset=c}else a=this.utc();return a};var l=i.format;i.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,t)},i.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},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(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var d=i.diff;i.diff=function(e,t,n){if(e&&this.$u===e.$u)return d.call(this,e,t,n);var r=this.local(),s=o(e).local();return d.call(r,s,t,n)}}}()),y.exports),E=t(g);i.$defaultFormat=function(e){return i.utc(e).format("YYYY-MM-DD HH:mm:ss")},i.$prettyPrint=function(e){return i(e).format("h:mma dddd MMM DD, YYYY")};function w(e,t){return function(){return e.apply(t,arguments)}}i.extend(l),i.extend(m),i.extend((e,t,n)=>{t.prototype.skewedDiff=function(e,t){const n=Math.abs(this.diff(e))/6e4;return n>t?Math.floor(n):n<t?Math.ceil(n):n}}),i.extend(E);const{toString:b}=Object.prototype,{getPrototypeOf:O}=Object,{iterator:S,toStringTag:R}=Symbol,v=(T=Object.create(null),e=>{const t=b.call(e);return T[t]||(T[t]=t.slice(8,-1).toLowerCase())});var T;const A=e=>(e=e.toLowerCase(),t=>v(t)===e),C=e=>t=>typeof t===e,{isArray:_}=Array,N=C("undefined");const D=A("ArrayBuffer");const M=C("string"),L=C("function"),P=C("number"),$=e=>null!==e&&"object"==typeof e,x=e=>{if("object"!==v(e))return!1;const t=O(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||R in e||S in e)},F=A("Date"),U=A("File"),k=A("Blob"),I=A("FileList"),j=A("URLSearchParams"),[B,H,Y,V]=["ReadableStream","Request","Response","Headers"].map(A);function z(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,s;if("object"!=typeof e&&(e=[e]),_(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let i;for(r=0;r<o;r++)i=s[r],t.call(null,e[i],i,e)}}function q(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,s=n.length;for(;s-- >0;)if(r=n[s],t===r.toLowerCase())return r;return null}const W="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,G=e=>!N(e)&&e!==W;const J=(K="undefined"!=typeof Uint8Array&&O(Uint8Array),e=>K&&e instanceof K);var K;const Z=A("HTMLFormElement"),X=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Q=A("RegExp"),ee=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};z(n,(n,s)=>{let o;!1!==(o=t(n,s,e))&&(r[s]=o||n)}),Object.defineProperties(e,r)};const te=A("AsyncFunction"),ne=(re="function"==typeof setImmediate,se=L(W.postMessage),re?setImmediate:se?(oe=`axios@${Math.random()}`,ie=[],W.addEventListener("message",({source:e,data:t})=>{e===W&&t===oe&&ie.length&&ie.shift()()},!1),e=>{ie.push(e),W.postMessage(oe,"*")}):e=>setTimeout(e));var re,se,oe,ie;const ae="undefined"!=typeof queueMicrotask?queueMicrotask.bind(W):"undefined"!=typeof process&&process.nextTick||ne;var ce={isArray:_,isArrayBuffer:D,isBuffer:function(e){return null!==e&&!N(e)&&null!==e.constructor&&!N(e.constructor)&&L(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||L(e.append)&&("formdata"===(t=v(e))||"object"===t&&L(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&D(e.buffer),t},isString:M,isNumber:P,isBoolean:e=>!0===e||!1===e,isObject:$,isPlainObject:x,isReadableStream:B,isRequest:H,isResponse:Y,isHeaders:V,isUndefined:N,isDate:F,isFile:U,isBlob:k,isRegExp:Q,isFunction:L,isStream:e=>$(e)&&L(e.pipe),isURLSearchParams:j,isTypedArray:J,isFileList:I,forEach:z,merge:function e(){const{caseless:t}=G(this)&&this||{},n={},r=(r,s)=>{const o=t&&q(n,s)||s;x(n[o])&&x(r)?n[o]=e(n[o],r):x(r)?n[o]=e({},r):_(r)?n[o]=r.slice():n[o]=r};for(let s=0,o=arguments.length;s<o;s++)arguments[s]&&z(arguments[s],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(z(t,(t,r)=>{n&&L(t)?e[r]=w(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let s,o,i;const a={};if(t=t||{},null==e)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],r&&!r(i,e,t)||a[i]||(t[i]=e[i],a[i]=!0);e=!1!==n&&O(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:v,kindOfTest:A,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(_(e))return e;let t=e.length;if(!P(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[S]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Z,hasOwnProperty:X,hasOwnProp:X,reduceDescriptors:ee,freezeMethods:e=>{ee(e,(t,n)=>{if(L(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];L(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return _(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:q,global:W,isContextDefined:G,isSpecCompliantForm:function(e){return!!(e&&L(e.append)&&"FormData"===e[R]&&e[S])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if($(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const s=_(e)?[]:{};return z(e,(e,t)=>{const o=n(e,r+1);!N(o)&&(s[t]=o)}),t[r]=void 0,s}}return e};return n(e,0)},isAsyncFn:te,isThenable:e=>e&&($(e)||L(e))&&L(e.then)&&L(e.catch),setImmediate:ne,asap:ae,isIterable:e=>null!=e&&L(e[S])};function ue(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}ce.inherits(ue,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:ce.toJSONObject(this.config),code:this.code,status:this.status}}});const le=ue.prototype,fe={};["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(e=>{fe[e]={value:e}}),Object.defineProperties(ue,fe),Object.defineProperty(le,"isAxiosError",{value:!0}),ue.from=(e,t,n,r,s,o)=>{const i=Object.create(le);return ce.toFlatObject(e,i,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),ue.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};function de(e){return ce.isPlainObject(e)||ce.isArray(e)}function he(e){return ce.endsWith(e,"[]")?e.slice(0,-2):e}function pe(e,t,n){return e?e.concat(t).map(function(e,t){return e=he(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const me=ce.toFlatObject(ce,{},null,function(e){return/^is[A-Z]/.test(e)});function ye(e,t,n){if(!ce.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=ce.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!ce.isUndefined(t[e])})).metaTokens,s=n.visitor||u,o=n.dots,i=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&ce.isSpecCompliantForm(t);if(!ce.isFunction(s))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(ce.isDate(e))return e.toISOString();if(ce.isBoolean(e))return e.toString();if(!a&&ce.isBlob(e))throw new ue("Blob is not supported. Use a Buffer instead.");return ce.isArrayBuffer(e)||ce.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,s){let a=e;if(e&&!s&&"object"==typeof e)if(ce.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(ce.isArray(e)&&function(e){return ce.isArray(e)&&!e.some(de)}(e)||(ce.isFileList(e)||ce.endsWith(n,"[]"))&&(a=ce.toArray(e)))return n=he(n),a.forEach(function(e,r){!ce.isUndefined(e)&&null!==e&&t.append(!0===i?pe([n],r,o):null===i?n:n+"[]",c(e))}),!1;return!!de(e)||(t.append(pe(s,n,o),c(e)),!1)}const l=[],f=Object.assign(me,{defaultVisitor:u,convertValue:c,isVisitable:de});if(!ce.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!ce.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),ce.forEach(n,function(n,o){!0===(!(ce.isUndefined(n)||null===n)&&s.call(t,n,ce.isString(o)?o.trim():o,r,f))&&e(n,r?r.concat(o):[o])}),l.pop()}}(e),t}function ge(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Ee(e,t){this._pairs=[],e&&ye(e,this,t)}const we=Ee.prototype;function be(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Oe(e,t,n){if(!t)return e;const r=n&&n.encode||be;ce.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(o=s?s(t,n):ce.isURLSearchParams(t)?t.toString():new Ee(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}we.append=function(e,t){this._pairs.push([e,t])},we.toString=function(e){const t=e?function(t){return e.call(this,t,ge)}:ge;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class Se{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ce.forEach(this.handlers,function(t){null!==t&&e(t)})}}var Re={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ve={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ee,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Te="undefined"!=typeof window&&"undefined"!=typeof document,Ae="object"==typeof navigator&&navigator||void 0,Ce=Te&&(!Ae||["ReactNative","NativeScript","NS"].indexOf(Ae.product)<0),_e="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ne=Te&&window.location.href||"http://localhost";var De={...Object.freeze({__proto__:null,hasBrowserEnv:Te,hasStandardBrowserEnv:Ce,hasStandardBrowserWebWorkerEnv:_e,navigator:Ae,origin:Ne}),...ve};function Me(e){function t(e,n,r,s){let o=e[s++];if("__proto__"===o)return!0;const i=Number.isFinite(+o),a=s>=e.length;if(o=!o&&ce.isArray(r)?r.length:o,a)return ce.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!i;r[o]&&ce.isObject(r[o])||(r[o]=[]);return t(e,n,r[o],s)&&ce.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}(r[o])),!i}if(ce.isFormData(e)&&ce.isFunction(e.entries)){const n={};return ce.forEachEntry(e,(e,r)=>{t(function(e){return ce.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const Le={transitional:Re,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,s=ce.isObject(e);s&&ce.isHTMLForm(e)&&(e=new FormData(e));if(ce.isFormData(e))return r?JSON.stringify(Me(e)):e;if(ce.isArrayBuffer(e)||ce.isBuffer(e)||ce.isStream(e)||ce.isFile(e)||ce.isBlob(e)||ce.isReadableStream(e))return e;if(ce.isArrayBufferView(e))return e.buffer;if(ce.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ye(e,new De.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return De.isNode&&ce.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=ce.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ye(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||r?(t.setContentType("application/json",!1),function(e,t,n){if(ce.isString(e))try{return(t||JSON.parse)(e),ce.trim(e)}catch(h){if("SyntaxError"!==h.name)throw h}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Le.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(ce.isResponse(e)||ce.isReadableStream(e))return e;if(e&&ce.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(h){if(n){if("SyntaxError"===h.name)throw ue.from(h,ue.ERR_BAD_RESPONSE,this,null,this.response);throw h}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:De.classes.FormData,Blob:De.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ce.forEach(["delete","get","head","post","put","patch"],e=>{Le.headers[e]={}});const Pe=ce.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 $e=Symbol("internals");function xe(e){return e&&String(e).trim().toLowerCase()}function Fe(e){return!1===e||null==e?e:ce.isArray(e)?e.map(Fe):String(e)}function Ue(e,t,n,r,s){return ce.isFunction(r)?r.call(this,t,n):(s&&(t=n),ce.isString(t)?ce.isString(r)?-1!==t.indexOf(r):ce.isRegExp(r)?r.test(t):void 0:void 0)}let ke=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function s(e,t,n){const s=xe(t);if(!s)throw new Error("header name must be a non-empty string");const o=ce.findKey(r,s);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=Fe(e))}const o=(e,t)=>ce.forEach(e,(e,n)=>s(e,n,t));if(ce.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(ce.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,r,s;return e&&e.split("\n").forEach(function(e){s=e.indexOf(":"),n=e.substring(0,s).trim().toLowerCase(),r=e.substring(s+1).trim(),!n||t[n]&&Pe[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(ce.isObject(e)&&ce.isIterable(e)){let n,r,s={};for(const t of e){if(!ce.isArray(t))throw TypeError("Object iterator must return a key-value pair");s[r=t[0]]=(n=s[r])?ce.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}o(s,t)}else null!=e&&s(t,e,n);return this}get(e,t){if(e=xe(e)){const n=ce.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(ce.isFunction(t))return t.call(this,e,n);if(ce.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=xe(e)){const n=ce.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ue(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function s(e){if(e=xe(e)){const s=ce.findKey(n,e);!s||t&&!Ue(0,n[s],s,t)||(delete n[s],r=!0)}}return ce.isArray(e)?e.forEach(s):s(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const s=t[n];e&&!Ue(0,this[s],s,e,!0)||(delete this[s],r=!0)}return r}normalize(e){const t=this,n={};return ce.forEach(this,(r,s)=>{const o=ce.findKey(n,s);if(o)return t[o]=Fe(r),void delete t[s];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(s):String(s).trim();i!==s&&delete t[s],t[i]=Fe(r),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ce.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ce.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[$e]=this[$e]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=xe(e);t[r]||(!function(e,t){const n=ce.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,s){return this[r].call(this,t,e,n,s)},configurable:!0})})}(n,e),t[r]=!0)}return ce.isArray(e)?e.forEach(r):r(e),this}};function Ie(e,t){const n=this||Le,r=t||n,s=ke.from(r.headers);let o=r.data;return ce.forEach(e,function(e){o=e.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function je(e){return!(!e||!e.__CANCEL__)}function Be(e,t,n){ue.call(this,null==e?"canceled":e,ue.ERR_CANCELED,t,n),this.name="CanceledError"}function He(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ue("Request failed with status code "+n.status,[ue.ERR_BAD_REQUEST,ue.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}ke.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ce.reduceDescriptors(ke.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),ce.freezeMethods(ke),ce.inherits(Be,ue,{__CANCEL__:!0});const Ye=(e,t,n=3)=>{let r=0;const s=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s,o=0,i=0;return t=void 0!==t?t: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%=e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s<t)return;const d=u&&c-u;return d?Math.round(1e3*f/d):void 0}}(50,250);return function(e,t){let n,r,s=0,o=1e3/t;const i=(t,o=Date.now())=>{s=o,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-s;a>=o?i(e,t):(n=e,r||(r=setTimeout(()=>{r=null,i(n)},o-a)))},()=>n&&i(n)]}(n=>{const o=n.loaded,i=n.lengthComputable?n.total:void 0,a=o-r,c=s(a);r=o;e({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,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},Ve=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ze=e=>(...t)=>ce.asap(()=>e(...t));var qe=De.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,De.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(De.origin),De.navigator&&/(msie|trident)/i.test(De.navigator.userAgent)):()=>!0,We=De.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];ce.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),ce.isString(r)&&i.push("path="+r),ce.isString(s)&&i.push("domain="+s),!0===o&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Ge(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Je=e=>e instanceof ke?{...e}:e;function Ke(e,t){t=t||{};const n={};function r(e,t,n,r){return ce.isPlainObject(e)&&ce.isPlainObject(t)?ce.merge.call({caseless:r},e,t):ce.isPlainObject(t)?ce.merge({},t):ce.isArray(t)?t.slice():t}function s(e,t,n,s){return ce.isUndefined(t)?ce.isUndefined(e)?void 0:r(void 0,e,0,s):r(e,t,0,s)}function o(e,t){if(!ce.isUndefined(t))return r(void 0,t)}function i(e,t){return ce.isUndefined(t)?ce.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,s,o){return o in t?r(n,s):o in e?r(void 0,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,withXSRFToken: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,headers:(e,t,n)=>s(Je(e),Je(t),0,!0)};return ce.forEach(Object.keys(Object.assign({},e,t)),function(r){const o=c[r]||s,i=o(e[r],t[r],r);ce.isUndefined(i)&&o!==a||(n[r]=i)}),n}var Ze=e=>{const t=Ke({},e);let n,{data:r,withXSRFToken:s,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:c}=t;if(t.headers=a=ke.from(a),t.url=Oe(Ge(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),ce.isFormData(r))if(De.hasStandardBrowserEnv||De.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(De.hasStandardBrowserEnv&&(s&&ce.isFunction(s)&&(s=s(t)),s||!1!==s&&qe(t.url))){const e=o&&i&&We.read(i);e&&a.set(o,e)}return t};var Xe="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Ze(e);let s=r.data;const o=ke.from(r.headers).normalize();let i,a,c,u,l,{responseType:f,onUploadProgress:d,onDownloadProgress:h}=r;function p(){u&&u(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function y(){if(!m)return;const r=ke.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());He(function(e){t(e),p()},function(e){n(e),p()},{data:f&&"text"!==f&&"json"!==f?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(y)},m.onabort=function(){m&&(n(new ue("Request aborted",ue.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new ue("Network Error",ue.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const s=r.transitional||Re;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ue(t,s.clarifyTimeoutError?ue.ETIMEDOUT:ue.ECONNABORTED,e,m)),m=null},void 0===s&&o.setContentType(null),"setRequestHeader"in m&&ce.forEach(o.toJSON(),function(e,t){m.setRequestHeader(t,e)}),ce.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),f&&"json"!==f&&(m.responseType=r.responseType),h&&([c,l]=Ye(h,!0),m.addEventListener("progress",c)),d&&m.upload&&([a,u]=Ye(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new Be(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);g&&-1===De.protocols.indexOf(g)?n(new ue("Unsupported protocol "+g+":",ue.ERR_BAD_REQUEST,e)):m.send(s||null)})};const Qe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const s=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ue?t:new Be(t instanceof Error?t.message:t))}};let o=t&&setTimeout(()=>{o=null,s(new ue(`timeout ${t} of ms exceeded`,ue.ETIMEDOUT))},t);const i=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(s):e.removeEventListener("abort",s)}),e=null)};e.forEach(e=>e.addEventListener("abort",s));const{signal:a}=r;return a.unsubscribe=()=>ce.asap(i),a}},et=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,s=0;for(;s<n;)r=s+t,yield e.slice(s,r),s=r},tt=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},nt=(e,t,n,r)=>{const s=async function*(e,t){for await(const n of tt(e))yield*et(n,t)}(e,t);let o,i=0,a=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await s.next();if(t)return a(),void e.close();let o=r.byteLength;if(n){let e=i+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw a(t),t}},cancel:e=>(a(e),s.return())},{highWaterMark:2})},rt="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,st=rt&&"function"==typeof ReadableStream,ot=rt&&("function"==typeof TextEncoder?(it=new TextEncoder,e=>it.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var it;const at=(e,...t)=>{try{return!!e(...t)}catch(h){return!1}},ct=st&&at(()=>{let e=!1;const t=new Request(De.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),ut=st&&at(()=>ce.isReadableStream(new Response("").body)),lt={stream:ut&&(e=>e.body)};var ft;rt&&(ft=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!lt[e]&&(lt[e]=ce.isFunction(ft[e])?t=>t[e]():(t,n)=>{throw new ue(`Response type '${e}' is not supported`,ue.ERR_NOT_SUPPORT,n)})}));const dt=async(e,t)=>{const n=ce.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(ce.isBlob(e))return e.size;if(ce.isSpecCompliantForm(e)){const t=new Request(De.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ce.isArrayBufferView(e)||ce.isArrayBuffer(e)?e.byteLength:(ce.isURLSearchParams(e)&&(e+=""),ce.isString(e)?(await ot(e)).byteLength:void 0)})(t):n};const ht={http:null,xhr:Xe,fetch:rt&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:f="same-origin",fetchOptions:d}=Ze(e);u=u?(u+"").toLowerCase():"text";let h,p=Qe([s,o&&o.toAbortSignal()],i);const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let y;try{if(c&&ct&&"get"!==n&&"head"!==n&&0!==(y=await dt(l,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(ce.isFormData(r)&&(e=n.headers.get("content-type"))&&l.setContentType(e),n.body){const[e,t]=Ve(y,Ye(ze(c)));r=nt(n.body,65536,e,t)}}ce.isString(f)||(f=f?"include":"omit");const s="credentials"in Request.prototype;h=new Request(t,{...d,signal:p,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:s?f:void 0});let o=await fetch(h,d);const i=ut&&("stream"===u||"response"===u);if(ut&&(a||i&&m)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=o[t]});const t=ce.toFiniteNumber(o.headers.get("content-length")),[n,r]=a&&Ve(t,Ye(ze(a),!0))||[];o=new Response(nt(o.body,65536,n,()=>{r&&r(),m&&m()}),e)}u=u||"text";let g=await lt[ce.findKey(lt,u)||"text"](o,e);return!i&&m&&m(),await new Promise((t,n)=>{He(t,n,{data:g,headers:ke.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:h})})}catch(g){if(m&&m(),g&&"TypeError"===g.name&&/Load failed|fetch/i.test(g.message))throw Object.assign(new ue("Network Error",ue.ERR_NETWORK,e,h),{cause:g.cause||g});throw ue.from(g,g&&g.code,e,h)}})};ce.forEach(ht,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(h){}Object.defineProperty(e,"adapterName",{value:t})}});const pt=e=>`- ${e}`,mt=e=>ce.isFunction(e)||null===e||!1===e;var yt=e=>{e=ce.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o<t;o++){let t;if(n=e[o],r=n,!mt(n)&&(r=ht[(t=String(n)).toLowerCase()],void 0===r))throw new ue(`Unknown adapter '${t}'`);if(r)break;s[t||"#"+o]=r}if(!r){const e=Object.entries(s).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new ue("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(pt).join("\n"):" "+pt(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function gt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Be(null,e)}function Et(e){gt(e),e.headers=ke.from(e.headers),e.data=Ie.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return yt(e.adapter||Le.adapter)(e).then(function(t){return gt(e),t.data=Ie.call(e,e.transformResponse,t),t.headers=ke.from(t.headers),t},function(t){return je(t)||(gt(e),t&&t.response&&(t.response.data=Ie.call(e,e.transformResponse,t.response),t.response.headers=ke.from(t.response.headers))),Promise.reject(t)})}const wt="1.10.0",bt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{bt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Ot={};bt.transitional=function(e,t,n){function r(e,t){return"[Axios v"+wt+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,s,o)=>{if(!1===e)throw new ue(r(s," has been removed"+(t?" in "+t:"")),ue.ERR_DEPRECATED);return t&&!Ot[s]&&(Ot[s]=!0,console.warn(r(s," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,s,o)}},bt.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var St={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ue("options must be an object",ue.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const t=e[o],n=void 0===t||i(t,o,e);if(!0!==n)throw new ue("option "+o+" must be "+n,ue.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new ue("Unknown option "+o,ue.ERR_BAD_OPTION)}},validators:bt};const Rt=St.validators;let vt=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Se,response:new Se}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(h){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ke(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:s}=t;void 0!==n&&St.assertOptions(n,{silentJSONParsing:Rt.transitional(Rt.boolean),forcedJSONParsing:Rt.transitional(Rt.boolean),clarifyTimeoutError:Rt.transitional(Rt.boolean)},!1),null!=r&&(ce.isFunction(r)?t.paramsSerializer={serialize:r}:St.assertOptions(r,{encode:Rt.function,serialize:Rt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),St.assertOptions(t,{baseUrl:Rt.spelling("baseURL"),withXsrfToken:Rt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=s&&ce.merge(s.common,s[t.method]);s&&ce.forEach(["delete","get","head","post","put","patch","common"],e=>{delete s[e]}),t.headers=ke.concat(o,s);const i=[];let a=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,f=0;if(!a){const e=[Et.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);f<l;)u=u.then(e[f++],e[f++]);return u}l=i.length;let d=t;for(f=0;f<l;){const e=i[f++],t=i[f++];try{d=e(d)}catch(h){t.call(this,h);break}}try{u=Et.call(this,d)}catch(h){return Promise.reject(h)}for(f=0,l=c.length;f<l;)u=u.then(c[f++],c[f++]);return u}getUri(e){return Oe(Ge((e=Ke(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};ce.forEach(["delete","get","head","options"],function(e){vt.prototype[e]=function(t,n){return this.request(Ke(n||{},{method:e,url:t,data:(n||{}).data}))}}),ce.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,s){return this.request(Ke(s||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}vt.prototype[e]=t(),vt.prototype[e+"Form"]=t(!0)});const Tt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Tt).forEach(([e,t])=>{Tt[t]=e});const At=function e(t){const n=new vt(t),r=w(vt.prototype.request,n);return ce.extend(r,vt.prototype,n,{allOwnKeys:!0}),ce.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ke(t,n))},r}(Le);At.Axios=vt,At.CanceledError=Be,At.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,s){n.reason||(n.reason=new Be(e,r,s),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},At.isCancel=je,At.VERSION=wt,At.toFormData=ye,At.AxiosError=ue,At.Cancel=At.CanceledError,At.all=function(e){return Promise.all(e)},At.spread=function(e){return function(t){return e.apply(null,t)}},At.isAxiosError=function(e){return ce.isObject(e)&&!0===e.isAxiosError},At.mergeConfig=Ke,At.AxiosHeaders=ke,At.formToJSON=e=>Me(ce.isHTMLForm(e)?new FormData(e):e),At.getAdapter=yt,At.HttpStatusCode=Tt,At.default=At;const{Axios:Ct,AxiosError:_t,CanceledError:Nt,isCancel:Dt,CancelToken:Mt,VERSION:Lt,all:Pt,Cancel:$t,isAxiosError:xt,spread:Ft,toFormData:Ut,AxiosHeaders:kt,HttpStatusCode:It,formToJSON:jt,getAdapter:Bt,mergeConfig:Ht}=At,Yt=`${"undefined"!=typeof window?window.location.origin:self.location.origin}/api/1.0/`,Vt=At.create({baseURL:Yt}),zt=(new Map).set("CALL","Call ahead").set("KEY_AFTER_HOURS","Card key after hours").set("KEY_ALWAYS","Card key at all times").set("CREDIT_CARD_AFTER_HOURS","Credit card after hours").set("CREDIT_CARD_ALWAYS","Credit card at all times").set("FLEET","Fleet customers only").set("GOVERNMENT","Government only").set("LIMITED_HOURS","Limited hours").set("RESIDENTIAL","Residential"),qt=(new Map).set("all","All").set("A","American Express").set("CREDIT","Credit").set("Debit","Debit").set("D","Discover").set("M","MasterCard").set("V","Visa").set("Cash","Cash").set("Checks","Check").set("ACCOUNT_BALANCE","Account Balance").set("ALLIANCE","Alliance AutoGas").set("ANDROID_PAY","Android Pay").set("APPLE_PAY","Apple Pay").set("ARI","ARI").set("CleanEnergy","Clean Energy").set("Comdata","Comdata").set("CFN","Commercial Fueling Network").set("EFS","EFS").set("FleetOne","Fleet One").set("FuelMan","Fuelman").set("GasCard","GASCARD").set("PacificPride","Pacific Pride").set("PHH","PHH").set("Proprietor","Proprietor Fleet Card").set("Speedway","Speedway").set("SuperPass","SuperPass").set("TCH","TCH").set("Tchek","T-Chek T-Card").set("Trillium","Trillium").set("Voyager","Voyager").set("Wright_Exp","WEX"),Wt=(new Map).set("NEMA1450","NEMA 14-50").set("NEMA515","NEMA 5-15").set("NEMA520","NEMA 5-20").set("J1772","J1772").set("J1772COMBO","CCS").set("CHADEMO","CHAdeMO").set("TESLA","Tesla"),Gt=(new Map).set("AddÉnergie Technologies","AddÉnergie").set("AMPUP","AmpUp").set("BCHYDRO","BC Hydro").set("Blink Network","Blink").set("CHARGELAB","ChargeLab").set("ChargePoint Network","ChargePoint").set("Circuit électrique","Circuit électrique").set("eCharge Network","eCharge Network").set("Electrify America","Electrify America").set("Electrify Canada","Electrify Canada").set("EVCS","EV Charging Solutions").set("EV Connect","EV Connect").set("EVGATEWAY","evGateway").set("eVgo Network","EVgo").set("EVRANGE","EV Range").set("FLO","FLO").set("FPLEV","FPL EVolution").set("FCN","Francis").set("IVY","Ivy").set("LIVINGSTON","Livingston Energy Group").set("Non-Networked","Non-Networked").set("OpConnect","OpConnect").set("PETROCAN","Petro-Canada").set("POWERFLEX","PowerFlex").set("RIVIAN_ADVENTURE","Rivian Adventure Network").set("RIVIAN_WAYPOINTS","Rivian Waypoints").set("SemaCharge Network","SemaConnect").set("SHELL_RECHARGE","Shell Recharge").set("Sun Country Highway","Sun Country Highway").set("SWTCH","Swtch Energy").set("Tesla Destination","Tesla Destination").set("Tesla","Tesla Supercharger").set("UNIVERSAL","Universal EV Chargers").set("Volta","Volta").set("Webasto","Webasto").set("ZEFNET","ZEF Network"),Jt=(new Map).set("AIRPORT","Airport").set("ARENA","Arena").set("AUTO_REPAIR","Auto Repair Shop").set("BANK","Bank").set("B_AND_B","B&B").set("BREWERY_DISTILLERY_WINERY","Brewery/Distillery/Winery").set("CAMPGROUND","Campground").set("CAR_DEALER","Car Dealer").set("CARWASH","Carwash").set("COLLEGE_CAMPUS","College Campus").set("CONVENIENCE_STORE","Convenience Store").set("CONVENTION_CENTER","Convention Center").set("COOP","Co-Op").set("FACTORY","Factory").set("FED_GOV","Federal Government").set("FIRE_STATION","Fire Station").set("FLEET_GARAGE","Fleet Garage").set("FUEL_RESELLER","Fuel Reseller").set("GROCERY","Grocery Store").set("HARDWARE_STORE","Hardware Store").set("HOSPITAL","Hospital").set("HOTEL","Hotel").set("INN","Inn").set("LIBRARY","Library").set("MIL_BASE","Military Base").set("MOTOR_POOL","Motor Pool").set("MULTI_UNIT_DWELLING","Multi-Family Housing").set("MUNI_GOV","Municipal Government").set("MUSEUM","Museum").set("NATL_PARK","National Park").set("OFFICE_BLDG","Office Building").set("OTHER","Other").set("OTHER_ENTERTAINMENT","Other Entertainment").set("PARK","Park").set("PARKING_GARAGE","Parking Garage").set("PARKING_LOT","Parking Lot").set("PAY_GARAGE","Pay-Parking Garage").set("PAY_LOT","Pay-Parking Lot").set("PHARMACY","Pharmacy").set("PLACE_OF_WORSHIP","Place of Worship").set("PRISON","Prison").set("PUBLIC","Public").set("REC_SPORTS_FACILITY","Recreational Sports Facility").set("REFINERY","Refinery").set("RENTAL_CAR_RETURN","Rental Car Return").set("RESEARCH_FACILITY","Research Facility/Laboratory").set("RESTAURANT","Restaurant").set("REST_STOP","Rest Stop").set("RETAIL","Retail").set("RV_PARK","RV Park").set("SCHOOL","School").set("GAS_STATION","Service/Gas Station").set("SHOPPING_CENTER","Shopping Center").set("SHOPPING_MALL","Shopping Mall").set("STADIUM","Stadium").set("STANDALONE_STATION","Standalone Station").set("STATE_GOV","State/Provincial Government").set("STORAGE","Storage Facility").set("STREET_PARKING","Street Parking").set("TNC","Transportation Network Company").set("TRAVEL_CENTER","Travel Center").set("TRUCK_STOP","Truck Stop").set("UTILITY","Utility").set("WORKPLACE","Workplace");var Kt=Object.freeze({__proto__:null,Calaveras:["95252","95222","95249","95247","95230","95228","95223","95245","95246","95255","95225","95226","95224","95254","95257","95232","95251","95248","95221","95233","95250","95229"],Fresno:["93722","93727","93720","93619","93611","93702","93726","93706","93711","93705","93245","93612","93657","93710","93618","93703","93654","93725","93662","93704","93630","93210","93631","93728","93648","93723","93622","93730","93701","93620","93721","93640","93646","93737","93625","93656","93234","93609","93660","93242","93626","93675","93616","93602","93667","93650","93651","93664","93668","93624","93621","93608","93740","93634","93641","93652","93627","93606","93665","93628","93605","93607","93613","93642","93649","93708","93707","93709","93712","93715","93714","93717","93716","93718","93724","93729","93741","93745","93744","93750","93747","93760","93755","93764","93761","93771","93765","93773","93772","93775","93774","93777","93776","93779","93778","93790","93786","93792","93791","93794","93793","93888","93844","93784","93780","93633"],Inyo:["93514","93513","93527","93545","92328","93549","92389","93526","93592","92384","93515","93542","93522","93530"],Kern:["93307","93536","93306","93309","93313","93215","93308","93312","93304","93311","93305","93314","93555","93561","93280","93263","93560","93203","93268","93250","93241","93301","93505","93240","93501","93225","93461","93516","93206","93252","93285","93249","93283","93243","93527","93523","93524","93205","93518","93251","93531","93238","93255","93224","93554","93519","93287","93226","93216","93222","93276","93303","93302","93381","93380","93383","93382","93385","93384","93387","93386","93389","93388","93390","93502","93504","93528","93556","93581","93596","93220"],Kings:["93230","93245","93212","93631","93204","93656","93242","93249","93266","93201","93202","93246","93239","93232","93282"],Madera:["93720","93638","93637","93610","93636","93622","93614","93644","93626","93601","93643","93645","93653","93669","93604","93639"],Mariposa:["95338","95333","93601","95311","95329","95369","93653","95345","95389","95306","95325","95318","93623"],Merced:["95023","95380","93635","95301","95340","95348","95341","93610","95334","95388","95315","95322","93620","95324","95316","95365","95333","95374","95369","95303","95317","95325","93665","95342","95344","95343","93661","09534","95312"],Mono:["93514","93546","93517","96107","93529","96133","93541","93512"],SanJoaquin:["95201","95202","95203","95204","95205","95206","95207","95208","95209","95210","95211","95212","95213","95214","95215","95219","95220","95227","95230","95231","95234","95236","95237","95240","95241","95242","95253","95258","95267","95269","95296","95297","95304","95320","95330","95336","95337","95366","95376","95377","95378","95385","95391","95686"],Stanislaus:["95355","95350","94550","95351","95307","95380","95382","95356","95361","95358","95354","95363","95367","95357","95326","95360","95386","95368","95316","95230","95328","95313","95329","95385","95387","95323","95319","95353","95352","95381","95397"],Tulare:["93257","93274","93291","93215","93277","93292","93618","93212","93247","93631","93221","93647","93286","93646","93219","93223","93615","93267","93256","93270","93272","93235","93265","93271","93527","93201","93218","93238","93261","93641","93255","93603","93244","93262","93549","93628","93208","93227","93237","93258","93275","93279","93278","93290","93666","93670","93673","93260","93633","93207"],Tuolumne:["95370","95327","95247","95383","95321","95379","95223","95311","95329","95372","95310","95346","95364","95224","93541","95305","95335","95314","95309","95347","95373","95375"]});const Zt=Object.values(Kt).reduce((e,t)=>e.concat(t)).join(",");async function Xt(e){return Vt.get("https://developer.nrel.gov/api/alt-fuel-stations/v1.json",{params:{fuel_type:"ELEC",state:"CA",status:"E",access:"public",ev_charging_level:e,zip:Zt,api_key:"BThVJdnwHbO8hDpQkBdeqsUoeXhQuMgMRgO3hvyo"}}).then(e=>e.data.fuel_stations.map(e=>(e.access_detail_code&&(e.access_detail_code=zt.get(e.access_detail_code)),e.cards_accepted&&(e.cards_accepted=e.cards_accepted.split(" ").map(e=>qt.get(e)).join(", ")),e.ev_connector_types&&e.ev_connector_types.length&&(e.ev_connector_types=e.ev_connector_types.map(e=>Wt.get(e))),e.ev_network&&(e.ev_network=Gt.get(e.ev_network)),e.facility_type&&(e.facility_type=Jt.get(e.facility_type)),e)).filter(e=>226154!==e.id))}var Qt=Object.freeze({__proto__:null,fetchLvl2Stations:async function(){return Xt("2")},fetchLvl3Stations:async function(){return Xt("dc_fast")}});new class{serviceModule;serviceModuleName;constructor(t,n){this.serviceModule=n,this.serviceModuleName=t,self.addEventListener("message",async t=>{const{id:n,taskName:r,parameters:s}=t.data;this.serviceModule[r];const o=new e(n);r in this.serviceModule?await this.serviceModule[r](...s).then(e=>o.pass(e)).catch(e=>o.fail(e.message)):o.fail(`Background task "${String(r)}" not found in "${this.serviceModuleName}" controller`),self.postMessage(o)})}}("EVChargingService",Qt);
|