radar-sdk-js 3.4.0-beta → 3.5.0-beta

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/index.js CHANGED
@@ -3274,7 +3274,7 @@ var API_HOST = /*#__PURE__*/function () {
3274
3274
  return API_HOST;
3275
3275
  }();
3276
3276
 
3277
- var SDK_VERSION = '3.4.0-beta';
3277
+ var SDK_VERSION = '3.5.0-beta';
3278
3278
 
3279
3279
  var Http = /*#__PURE__*/function () {
3280
3280
  function Http() {
@@ -3286,7 +3286,8 @@ var Http = /*#__PURE__*/function () {
3286
3286
  value: function request(method, path, data) {
3287
3287
  return new Promise(function (resolve, reject) {
3288
3288
  var xhr = new XMLHttpRequest();
3289
- var url = "".concat(API_HOST.getHost(), "/").concat(path); // remove undefined values
3289
+ var basePath = Storage.getItem(Storage.BASE_API_PATH) || 'v1';
3290
+ var url = "".concat(API_HOST.getHost(), "/").concat(basePath, "/").concat(path); // remove undefined values
3290
3291
 
3291
3292
  var body = {};
3292
3293
  Object.keys(data).forEach(function (key) {
@@ -3441,7 +3442,7 @@ var Context = /*#__PURE__*/function () {
3441
3442
  params = {
3442
3443
  coordinates: "".concat(latitude, ",").concat(longitude)
3443
3444
  };
3444
- return _context.abrupt("return", Http.request('GET', "v1/context", params));
3445
+ return _context.abrupt("return", Http.request('GET', "context", params));
3445
3446
 
3446
3447
  case 8:
3447
3448
  case "end":
@@ -3482,7 +3483,7 @@ var Geocoding = /*#__PURE__*/function () {
3482
3483
  case 0:
3483
3484
  geocodeOptions = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
3484
3485
  query = geocodeOptions.query, layers = geocodeOptions.layers, country = geocodeOptions.country;
3485
- return _context.abrupt("return", Http.request('GET', 'v1/geocode/forward', {
3486
+ return _context.abrupt("return", Http.request('GET', 'geocode/forward', {
3486
3487
  query: query,
3487
3488
  layers: layers,
3488
3489
  country: country
@@ -3543,7 +3544,7 @@ var Geocoding = /*#__PURE__*/function () {
3543
3544
  coordinates: "".concat(latitude, ",").concat(longitude),
3544
3545
  layers: layers
3545
3546
  };
3546
- return _context2.abrupt("return", Http.request('GET', 'v1/geocode/reverse', params));
3547
+ return _context2.abrupt("return", Http.request('GET', 'geocode/reverse', params));
3547
3548
 
3548
3549
  case 12:
3549
3550
  case "end":
@@ -3572,7 +3573,7 @@ var Geocoding = /*#__PURE__*/function () {
3572
3573
  case 0:
3573
3574
  geocodeOptions = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
3574
3575
  ip = geocodeOptions.ip;
3575
- return _context3.abrupt("return", Http.request('GET', 'v1/geocode/ip', {
3576
+ return _context3.abrupt("return", Http.request('GET', 'geocode/ip', {
3576
3577
  ip: ip
3577
3578
  }));
3578
3579
 
@@ -3658,7 +3659,7 @@ var Routing = /*#__PURE__*/function () {
3658
3659
  units: units,
3659
3660
  geometry: geometry
3660
3661
  };
3661
- return _context.abrupt("return", Http.request('GET', 'v1/route/distance', params));
3662
+ return _context.abrupt("return", Http.request('GET', 'route/distance', params));
3662
3663
 
3663
3664
  case 14:
3664
3665
  case "end":
@@ -3728,7 +3729,7 @@ var Routing = /*#__PURE__*/function () {
3728
3729
  units: units,
3729
3730
  geometry: geometry
3730
3731
  };
3731
- return _context2.abrupt("return", Http.request('GET', 'v1/route/matrix', params));
3732
+ return _context2.abrupt("return", Http.request('GET', 'route/matrix', params));
3732
3733
 
3733
3734
  case 13:
3734
3735
  case "end":
@@ -3818,7 +3819,7 @@ var Search = /*#__PURE__*/function () {
3818
3819
  groups: groups,
3819
3820
  limit: limit
3820
3821
  };
3821
- return _context.abrupt("return", Http.request('GET', 'v1/search/places', params));
3822
+ return _context.abrupt("return", Http.request('GET', 'search/places', params));
3822
3823
 
3823
3824
  case 15:
3824
3825
  case "end":
@@ -3896,7 +3897,7 @@ var Search = /*#__PURE__*/function () {
3896
3897
  });
3897
3898
  }
3898
3899
 
3899
- return _context2.abrupt("return", Http.request('GET', 'v1/search/geofences', params));
3900
+ return _context2.abrupt("return", Http.request('GET', 'search/geofences', params));
3900
3901
 
3901
3902
  case 14:
3902
3903
  case "end":
@@ -3945,7 +3946,7 @@ var Search = /*#__PURE__*/function () {
3945
3946
  layers: layers,
3946
3947
  country: country
3947
3948
  };
3948
- return _context3.abrupt("return", Http.request('GET', 'v1/search/autocomplete', params));
3949
+ return _context3.abrupt("return", Http.request('GET', 'search/autocomplete', params));
3949
3950
 
3950
3951
  case 5:
3951
3952
  case "end":
@@ -4631,8 +4632,6 @@ var Track = /*#__PURE__*/function () {
4631
4632
  description,
4632
4633
  metadata,
4633
4634
  body,
4634
- basePath,
4635
- trackEndpoint,
4636
4635
  response,
4637
4636
  _args = arguments;
4638
4637
  return regeneratorRuntime.wrap(function _callee$(_context) {
@@ -4682,12 +4681,10 @@ var Track = /*#__PURE__*/function () {
4682
4681
  stopped: true,
4683
4682
  userId: userId
4684
4683
  });
4685
- basePath = Storage.getItem(Storage.BASE_API_PATH) || 'v1';
4686
- trackEndpoint = "".concat(basePath, "/track");
4687
- _context.next = 21;
4688
- return Http.request('POST', trackEndpoint, body);
4684
+ _context.next = 19;
4685
+ return Http.request('POST', 'track', body);
4689
4686
 
4690
- case 21:
4687
+ case 19:
4691
4688
  response = _context.sent;
4692
4689
  response.location = {
4693
4690
  latitude: latitude,
@@ -4696,7 +4693,7 @@ var Track = /*#__PURE__*/function () {
4696
4693
  };
4697
4694
  return _context.abrupt("return", response);
4698
4695
 
4699
- case 24:
4696
+ case 22:
4700
4697
  case "end":
4701
4698
  return _context.stop();
4702
4699
  }
@@ -4733,7 +4730,6 @@ var Trips = /*#__PURE__*/function () {
4733
4730
  metadata,
4734
4731
  approachingThreshold,
4735
4732
  params,
4736
- basePath,
4737
4733
  _args = arguments;
4738
4734
  return regeneratorRuntime.wrap(function _callee$(_context) {
4739
4735
  while (1) {
@@ -4751,10 +4747,9 @@ var Trips = /*#__PURE__*/function () {
4751
4747
  metadata: metadata,
4752
4748
  approachingThreshold: approachingThreshold
4753
4749
  };
4754
- basePath = Storage.getItem(Storage.BASE_API_PATH) || 'v1';
4755
- return _context.abrupt("return", Http.request('POST', "".concat(basePath, "/trips"), params));
4750
+ return _context.abrupt("return", Http.request('POST', "trips", params));
4756
4751
 
4757
- case 6:
4752
+ case 5:
4758
4753
  case "end":
4759
4754
  return _context.stop();
4760
4755
  }
@@ -4782,7 +4777,6 @@ var Trips = /*#__PURE__*/function () {
4782
4777
  metadata,
4783
4778
  approachingThreshold,
4784
4779
  params,
4785
- basePath,
4786
4780
  _args2 = arguments;
4787
4781
  return regeneratorRuntime.wrap(function _callee2$(_context2) {
4788
4782
  while (1) {
@@ -4802,10 +4796,9 @@ var Trips = /*#__PURE__*/function () {
4802
4796
  metadata: metadata,
4803
4797
  approachingThreshold: approachingThreshold
4804
4798
  };
4805
- basePath = Storage.getItem(Storage.BASE_API_PATH) || 'v1';
4806
- return _context2.abrupt("return", Http.request('PATCH', "".concat(basePath, "/trips/").concat(externalId, "/update"), params));
4799
+ return _context2.abrupt("return", Http.request('PATCH', "trips/".concat(externalId, "/update"), params));
4807
4800
 
4808
- case 7:
4801
+ case 6:
4809
4802
  case "end":
4810
4803
  return _context2.stop();
4811
4804
  }
package/dist/radar.js CHANGED
@@ -3275,7 +3275,7 @@ var Radar = (function () {
3275
3275
  return API_HOST;
3276
3276
  }();
3277
3277
 
3278
- var SDK_VERSION = '3.4.0-beta';
3278
+ var SDK_VERSION = '3.5.0-beta';
3279
3279
 
3280
3280
  var Http = /*#__PURE__*/function () {
3281
3281
  function Http() {
@@ -3287,7 +3287,8 @@ var Radar = (function () {
3287
3287
  value: function request(method, path, data) {
3288
3288
  return new Promise(function (resolve, reject) {
3289
3289
  var xhr = new XMLHttpRequest();
3290
- var url = "".concat(API_HOST.getHost(), "/").concat(path); // remove undefined values
3290
+ var basePath = Storage.getItem(Storage.BASE_API_PATH) || 'v1';
3291
+ var url = "".concat(API_HOST.getHost(), "/").concat(basePath, "/").concat(path); // remove undefined values
3291
3292
 
3292
3293
  var body = {};
3293
3294
  Object.keys(data).forEach(function (key) {
@@ -3442,7 +3443,7 @@ var Radar = (function () {
3442
3443
  params = {
3443
3444
  coordinates: "".concat(latitude, ",").concat(longitude)
3444
3445
  };
3445
- return _context.abrupt("return", Http.request('GET', "v1/context", params));
3446
+ return _context.abrupt("return", Http.request('GET', "context", params));
3446
3447
 
3447
3448
  case 8:
3448
3449
  case "end":
@@ -3483,7 +3484,7 @@ var Radar = (function () {
3483
3484
  case 0:
3484
3485
  geocodeOptions = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
3485
3486
  query = geocodeOptions.query, layers = geocodeOptions.layers, country = geocodeOptions.country;
3486
- return _context.abrupt("return", Http.request('GET', 'v1/geocode/forward', {
3487
+ return _context.abrupt("return", Http.request('GET', 'geocode/forward', {
3487
3488
  query: query,
3488
3489
  layers: layers,
3489
3490
  country: country
@@ -3544,7 +3545,7 @@ var Radar = (function () {
3544
3545
  coordinates: "".concat(latitude, ",").concat(longitude),
3545
3546
  layers: layers
3546
3547
  };
3547
- return _context2.abrupt("return", Http.request('GET', 'v1/geocode/reverse', params));
3548
+ return _context2.abrupt("return", Http.request('GET', 'geocode/reverse', params));
3548
3549
 
3549
3550
  case 12:
3550
3551
  case "end":
@@ -3573,7 +3574,7 @@ var Radar = (function () {
3573
3574
  case 0:
3574
3575
  geocodeOptions = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
3575
3576
  ip = geocodeOptions.ip;
3576
- return _context3.abrupt("return", Http.request('GET', 'v1/geocode/ip', {
3577
+ return _context3.abrupt("return", Http.request('GET', 'geocode/ip', {
3577
3578
  ip: ip
3578
3579
  }));
3579
3580
 
@@ -3659,7 +3660,7 @@ var Radar = (function () {
3659
3660
  units: units,
3660
3661
  geometry: geometry
3661
3662
  };
3662
- return _context.abrupt("return", Http.request('GET', 'v1/route/distance', params));
3663
+ return _context.abrupt("return", Http.request('GET', 'route/distance', params));
3663
3664
 
3664
3665
  case 14:
3665
3666
  case "end":
@@ -3729,7 +3730,7 @@ var Radar = (function () {
3729
3730
  units: units,
3730
3731
  geometry: geometry
3731
3732
  };
3732
- return _context2.abrupt("return", Http.request('GET', 'v1/route/matrix', params));
3733
+ return _context2.abrupt("return", Http.request('GET', 'route/matrix', params));
3733
3734
 
3734
3735
  case 13:
3735
3736
  case "end":
@@ -3819,7 +3820,7 @@ var Radar = (function () {
3819
3820
  groups: groups,
3820
3821
  limit: limit
3821
3822
  };
3822
- return _context.abrupt("return", Http.request('GET', 'v1/search/places', params));
3823
+ return _context.abrupt("return", Http.request('GET', 'search/places', params));
3823
3824
 
3824
3825
  case 15:
3825
3826
  case "end":
@@ -3897,7 +3898,7 @@ var Radar = (function () {
3897
3898
  });
3898
3899
  }
3899
3900
 
3900
- return _context2.abrupt("return", Http.request('GET', 'v1/search/geofences', params));
3901
+ return _context2.abrupt("return", Http.request('GET', 'search/geofences', params));
3901
3902
 
3902
3903
  case 14:
3903
3904
  case "end":
@@ -3946,7 +3947,7 @@ var Radar = (function () {
3946
3947
  layers: layers,
3947
3948
  country: country
3948
3949
  };
3949
- return _context3.abrupt("return", Http.request('GET', 'v1/search/autocomplete', params));
3950
+ return _context3.abrupt("return", Http.request('GET', 'search/autocomplete', params));
3950
3951
 
3951
3952
  case 5:
3952
3953
  case "end":
@@ -4632,8 +4633,6 @@ var Radar = (function () {
4632
4633
  description,
4633
4634
  metadata,
4634
4635
  body,
4635
- basePath,
4636
- trackEndpoint,
4637
4636
  response,
4638
4637
  _args = arguments;
4639
4638
  return regeneratorRuntime.wrap(function _callee$(_context) {
@@ -4683,12 +4682,10 @@ var Radar = (function () {
4683
4682
  stopped: true,
4684
4683
  userId: userId
4685
4684
  });
4686
- basePath = Storage.getItem(Storage.BASE_API_PATH) || 'v1';
4687
- trackEndpoint = "".concat(basePath, "/track");
4688
- _context.next = 21;
4689
- return Http.request('POST', trackEndpoint, body);
4685
+ _context.next = 19;
4686
+ return Http.request('POST', 'track', body);
4690
4687
 
4691
- case 21:
4688
+ case 19:
4692
4689
  response = _context.sent;
4693
4690
  response.location = {
4694
4691
  latitude: latitude,
@@ -4697,7 +4694,7 @@ var Radar = (function () {
4697
4694
  };
4698
4695
  return _context.abrupt("return", response);
4699
4696
 
4700
- case 24:
4697
+ case 22:
4701
4698
  case "end":
4702
4699
  return _context.stop();
4703
4700
  }
@@ -4734,7 +4731,6 @@ var Radar = (function () {
4734
4731
  metadata,
4735
4732
  approachingThreshold,
4736
4733
  params,
4737
- basePath,
4738
4734
  _args = arguments;
4739
4735
  return regeneratorRuntime.wrap(function _callee$(_context) {
4740
4736
  while (1) {
@@ -4752,10 +4748,9 @@ var Radar = (function () {
4752
4748
  metadata: metadata,
4753
4749
  approachingThreshold: approachingThreshold
4754
4750
  };
4755
- basePath = Storage.getItem(Storage.BASE_API_PATH) || 'v1';
4756
- return _context.abrupt("return", Http.request('POST', "".concat(basePath, "/trips"), params));
4751
+ return _context.abrupt("return", Http.request('POST', "trips", params));
4757
4752
 
4758
- case 6:
4753
+ case 5:
4759
4754
  case "end":
4760
4755
  return _context.stop();
4761
4756
  }
@@ -4783,7 +4778,6 @@ var Radar = (function () {
4783
4778
  metadata,
4784
4779
  approachingThreshold,
4785
4780
  params,
4786
- basePath,
4787
4781
  _args2 = arguments;
4788
4782
  return regeneratorRuntime.wrap(function _callee2$(_context2) {
4789
4783
  while (1) {
@@ -4803,10 +4797,9 @@ var Radar = (function () {
4803
4797
  metadata: metadata,
4804
4798
  approachingThreshold: approachingThreshold
4805
4799
  };
4806
- basePath = Storage.getItem(Storage.BASE_API_PATH) || 'v1';
4807
- return _context2.abrupt("return", Http.request('PATCH', "".concat(basePath, "/trips/").concat(externalId, "/update"), params));
4800
+ return _context2.abrupt("return", Http.request('PATCH', "trips/".concat(externalId, "/update"), params));
4808
4801
 
4809
- case 7:
4802
+ case 6:
4810
4803
  case "end":
4811
4804
  return _context2.stop();
4812
4805
  }
package/dist/radar.min.js CHANGED
@@ -1 +1 @@
1
- var Radar=function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n,r,o=function(t){return t&&t.Math==Math&&t},f=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof t&&t)||function(){return this}()||Function("return this")(),s=function(t){try{return!!t()}catch(t){return!0}},l=!s(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),i=!s(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}),a=Function.prototype.call,m=i?a.bind(a):function(){return a.apply(a,arguments)},u={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,p={f:c&&!u.call({1:2},1)?function(t){var e=c(this,t);return!!e&&e.enumerable}:u},d=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},v=Function.prototype,h=v.bind,g=v.call,y=i&&h.bind(g,g),E=i?function(t){return t&&y(t)}:function(t){return t&&function(){return g.apply(t,arguments)}},R=E({}.toString),S=E("".slice),O=function(t){return S(R(t),8,-1)},b=Object,I=E("".split),T=s(function(){return!b("z").propertyIsEnumerable(0)})?function(t){return"String"==O(t)?I(t,""):b(t)}:b,x=TypeError,w=function(t){if(null==t)throw x("Can't call method on "+t);return t},_=function(t){return T(w(t))},P=function(t){return"function"==typeof t},k=function(t){return"object"==typeof t?null!==t:P(t)},j=function(t,e){return arguments.length<2?(n=f[t],P(n)?n:void 0):f[t]&&f[t][e];var n},C=E({}.isPrototypeOf),A=j("navigator","userAgent")||"",L=f.process,N=f.Deno,D=L&&L.versions||N&&N.version,U=D&&D.v8;U&&(r=0<(n=U.split("."))[0]&&n[0]<4?1:+(n[0]+n[1])),!r&&A&&(!(n=A.match(/Edge\/(\d+)/))||74<=n[1])&&(n=A.match(/Chrome\/(\d+)/))&&(r=+n[1]);var M=r,G=!!Object.getOwnPropertySymbols&&!s(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&M&&M<41}),H=G&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,B=Object,F=H?function(t){return"symbol"==typeof t}:function(t){var e=j("Symbol");return P(e)&&C(e.prototype,B(t))},q=String,V=function(t){try{return q(t)}catch(t){return"Object"}},K=TypeError,Y=function(t){if(P(t))return t;throw K(V(t)+" is not a function")},$=function(t,e){var n=t[e];return null==n?void 0:Y(n)},W=TypeError,z=Object.defineProperty,J=function(e,n){try{z(f,e,{value:n,configurable:!0,writable:!0})}catch(t){f[e]=n}return n},Q="__core-js_shared__",X=f[Q]||J(Q,{}),Z=e(function(t){(t.exports=function(t,e){return X[t]||(X[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.23.3",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"})}),tt=Object,et=function(t){return tt(w(t))},nt=E({}.hasOwnProperty),rt=Object.hasOwn||function(t,e){return nt(et(t),e)},ot=0,it=Math.random(),at=E(1..toString),ut=function(t){return"Symbol("+(void 0===t?"":t)+")_"+at(++ot+it,36)},ct=Z("wks"),st=f.Symbol,ft=st&&st.for,lt=H?st:st&&st.withoutSetter||ut,pt=function(t){if(!rt(ct,t)||!G&&"string"!=typeof ct[t]){var e="Symbol."+t;G&&rt(st,t)?ct[t]=st[t]:ct[t]=H&&ft?ft(e):lt(e)}return ct[t]},dt=TypeError,vt=pt("toPrimitive"),ht=function(t,e){if(!k(t)||F(t))return t;var n,r=$(t,vt);if(r){if(void 0===e&&(e="default"),n=m(r,t,e),!k(n)||F(n))return n;throw dt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&P(n=t.toString)&&!k(r=m(n,t)))return r;if(P(n=t.valueOf)&&!k(r=m(n,t)))return r;if("string"!==e&&P(n=t.toString)&&!k(r=m(n,t)))return r;throw W("Can't convert object to primitive value")}(t,e)},gt=function(t){var e=ht(t,"string");return F(e)?e:e+""},yt=f.document,mt=k(yt)&&k(yt.createElement),Et=function(t){return mt?yt.createElement(t):{}},Rt=!l&&!s(function(){return 7!=Object.defineProperty(Et("div"),"a",{get:function(){return 7}}).a}),St=Object.getOwnPropertyDescriptor,Ot={f:l?St:function(t,e){if(t=_(t),e=gt(e),Rt)try{return St(t,e)}catch(t){}if(rt(t,e))return d(!m(p.f,t,e),t[e])}},bt=l&&s(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),It=String,Tt=TypeError,xt=function(t){if(k(t))return t;throw Tt(It(t)+" is not an object")},wt=TypeError,_t=Object.defineProperty,Pt=Object.getOwnPropertyDescriptor,kt="enumerable",jt="configurable",Ct="writable",At={f:l?bt?function(t,e,n){if(xt(t),e=gt(e),xt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Ct in n&&!n[Ct]){var r=Pt(t,e);r&&r[Ct]&&(t[e]=n.value,n={configurable:jt in n?n[jt]:r[jt],enumerable:kt in n?n[kt]:r[kt],writable:!1})}return _t(t,e,n)}:_t:function(t,e,n){if(xt(t),e=gt(e),xt(n),Rt)try{return _t(t,e,n)}catch(t){}if("get"in n||"set"in n)throw wt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Lt=l?function(t,e,n){return At.f(t,e,d(1,n))}:function(t,e,n){return t[e]=n,t},Nt=Function.prototype,Dt=l&&Object.getOwnPropertyDescriptor,Ut=rt(Nt,"name"),Mt={EXISTS:Ut,PROPER:Ut&&"something"===function(){}.name,CONFIGURABLE:Ut&&(!l||l&&Dt(Nt,"name").configurable)},Gt=E(Function.toString);P(X.inspectSource)||(X.inspectSource=function(t){return Gt(t)});var Ht,Bt,Ft,qt=X.inspectSource,Vt=f.WeakMap,Kt=P(Vt)&&/native code/.test(qt(Vt)),Yt=Z("keys"),$t=function(t){return Yt[t]||(Yt[t]=ut(t))},Wt={},zt="Object already initialized",Jt=f.TypeError,Qt=f.WeakMap;if(Kt||X.state){var Xt=X.state||(X.state=new Qt),Zt=E(Xt.get),te=E(Xt.has),ee=E(Xt.set);Ht=function(t,e){if(te(Xt,t))throw new Jt(zt);return e.facade=t,ee(Xt,t,e),e},Bt=function(t){return Zt(Xt,t)||{}},Ft=function(t){return te(Xt,t)}}else{var ne=$t("state");Wt[ne]=!0,Ht=function(t,e){if(rt(t,ne))throw new Jt(zt);return e.facade=t,Lt(t,ne,e),e},Bt=function(t){return rt(t,ne)?t[ne]:{}},Ft=function(t){return rt(t,ne)}}var re={set:Ht,get:Bt,has:Ft,enforce:function(t){return Ft(t)?Bt(t):Ht(t,{})},getterFor:function(n){return function(t){var e;if(!k(t)||(e=Bt(t)).type!==n)throw Jt("Incompatible receiver, "+n+" required");return e}}},oe=e(function(t){var o=Mt.CONFIGURABLE,i=re.enforce,e=re.get,a=Object.defineProperty,u=l&&!s(function(){return 8!==a(function(){},"length",{value:8}).length}),c=String(String).split("String"),n=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!rt(t,"name")||o&&t.name!==e)&&(l?a(t,"name",{value:e,configurable:!0}):t.name=e),u&&n&&rt(n,"arity")&&t.length!==n.arity&&a(t,"length",{value:n.arity});try{n&&rt(n,"constructor")&&n.constructor?l&&a(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=i(t);return rt(r,"source")||(r.source=c.join("string"==typeof e?e:"")),t};Function.prototype.toString=n(function(){return P(this)&&e(this).source||qt(this)},"toString")}),ie=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(P(n)&&oe(n,i,r),r.global)o?t[e]=n:J(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:At.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},ae=Math.ceil,ue=Math.floor,ce=Math.trunc||function(t){var e=+t;return(0<e?ue:ae)(e)},se=function(t){var e=+t;return e!=e||0===e?0:ce(e)},fe=Math.max,le=Math.min,pe=Math.min,de=function(t){return 0<t?pe(se(t),9007199254740991):0},ve=function(t){return de(t.length)},he=function(s){return function(t,e,n){var r,o,i,a=_(t),u=ve(a),c=(r=u,(o=se(n))<0?fe(o+r,0):le(o,r));if(s&&e!=e){for(;c<u;)if((i=a[c++])!=i)return!0}else for(;c<u;c++)if((s||c in a)&&a[c]===e)return s||c||0;return!s&&-1}},ge={includes:he(!0),indexOf:he(!1)}.indexOf,ye=E([].push),me=function(t,e){var n,r=_(t),o=0,i=[];for(n in r)!rt(Wt,n)&&rt(r,n)&&ye(i,n);for(;e.length>o;)rt(r,n=e[o++])&&(~ge(i,n)||ye(i,n));return i},Ee=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Re=Ee.concat("length","prototype"),Se={f:Object.getOwnPropertyNames||function(t){return me(t,Re)}},Oe={f:Object.getOwnPropertySymbols},be=E([].concat),Ie=j("Reflect","ownKeys")||function(t){var e=Se.f(xt(t)),n=Oe.f;return n?be(e,n(t)):e},Te=function(t,e,n){for(var r=Ie(e),o=At.f,i=Ot.f,a=0;a<r.length;a++){var u=r[a];rt(t,u)||n&&rt(n,u)||o(t,u,i(e,u))}},xe=/#|\.prototype\./,we=function(t,e){var n=Pe[_e(t)];return n==je||n!=ke&&(P(e)?s(e):!!e)},_e=we.normalize=function(t){return String(t).replace(xe,".").toLowerCase()},Pe=we.data={},ke=we.NATIVE="N",je=we.POLYFILL="P",Ce=we,Ae=Ot.f,Le=function(t,e){var n,r,o,i,a,u=t.target,c=t.global,s=t.stat;if(n=c?f:s?f[u]||J(u,{}):(f[u]||{}).prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(a=Ae(n,r))&&a.value:n[r],!Ce(c?r:u+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Te(i,o)}(t.sham||o&&o.sham)&&Lt(i,"sham",!0),ie(n,r,i,t)}},Ne=Object.keys||function(t){return me(t,Ee)};Le({target:"Object",stat:!0,forced:s(function(){Ne(1)})},{keys:function(t){return Ne(et(t))}});var De={};De[pt("toStringTag")]="z";var Ue,Me="[object z]"===String(De),Ge=pt("toStringTag"),He=Object,Be="Arguments"==O(function(){return arguments}()),Fe=Me?O:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=He(t),Ge))?n:Be?O(e):"Object"==(r=O(e))&&P(e.callee)?"Arguments":r},qe=String,Ve=function(t){if("Symbol"===Fe(t))throw TypeError("Cannot convert a Symbol value to a string");return qe(t)},Ke="\t\n\v\f\r                 \u2028\u2029\ufeff",Ye=E("".replace),$e="["+Ke+"]",We=RegExp("^"+$e+$e+"*"),ze=RegExp($e+$e+"*$"),Je=function(n){return function(t){var e=Ve(w(t));return 1&n&&(e=Ye(e,We,"")),2&n&&(e=Ye(e,ze,"")),e}},Qe={start:Je(1),end:Je(2),trim:Je(3)},Xe=Mt.PROPER,Ze=Qe.trim;function tn(t){return(tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function en(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function nn(u){return function(){var t=this,a=arguments;return new Promise(function(e,n){var r=u.apply(t,a);function o(t){en(r,e,n,o,i,"next",t)}function i(t){en(r,e,n,o,i,"throw",t)}o(void 0)})}}function rn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function on(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function an(t,e,n){return e&&on(t.prototype,e),n&&on(t,n),t}function un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cn(o){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?un(Object(i),!0).forEach(function(t){var e,n,r;e=o,r=i[n=t],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):un(Object(i)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(i,t))})}return o}Le({target:"String",proto:!0,forced:(Ue="trim",s(function(){return!!Ke[Ue]()||"​…᠎"!=="​…᠎"[Ue]()||Xe&&Ke[Ue].name!==Ue}))},{trim:function(){return Ze(this)}});var sn=Me?{}.toString:function(){return"[object "+Fe(this)+"]"};Me||ie(Object.prototype,"toString",sn,{unsafe:!0});var fn="process"==O(f.process),ln=String,pn=TypeError,dn=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,t={};try{(n=E(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(t,[]),r=t instanceof Array}catch(t){}return function(t,e){return xt(t),function(t){if("object"==typeof t||P(t))return;throw pn("Can't set "+ln(t)+" as a prototype")}(e),r?n(t,e):t.__proto__=e,t}}():void 0),vn=At.f,hn=pt("toStringTag"),gn=pt("species"),yn=TypeError,mn=function(){},En=[],Rn=j("Reflect","construct"),Sn=/^\s*(?:class|function)\b/,On=E(Sn.exec),bn=!Sn.exec(mn),In=function(t){if(!P(t))return!1;try{return Rn(mn,En,t),!0}catch(t){return!1}},Tn=function(t){if(!P(t))return!1;switch(Fe(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return bn||!!On(Sn,qt(t))}catch(t){return!0}};Tn.sham=!0;var xn,wn,_n,Pn,kn=!Rn||s(function(){var t;return In(In.call)||!In(Object)||!In(function(){t=!0})||t})?Tn:In,jn=TypeError,Cn=pt("species"),An=function(t,e){var n,r=xt(t).constructor;return void 0===r||null==(n=xt(r)[Cn])?e:function(t){if(kn(t))return t;throw jn(V(t)+" is not a constructor")}(n)},Ln=Function.prototype,Nn=Ln.apply,Dn=Ln.call,Un="object"==typeof Reflect&&Reflect.apply||(i?Dn.bind(Nn):function(){return Dn.apply(Nn,arguments)}),Mn=E(E.bind),Gn=function(t,e){return Y(t),void 0===e?t:i?Mn(t,e):function(){return t.apply(e,arguments)}},Hn=j("document","documentElement"),Bn=E([].slice),Fn=TypeError,qn=/(?:ipad|iphone|ipod).*applewebkit/i.test(A),Vn=f.setImmediate,Kn=f.clearImmediate,Yn=f.process,$n=f.Dispatch,Wn=f.Function,zn=f.MessageChannel,Jn=f.String,Qn=0,Xn={},Zn="onreadystatechange";try{xn=f.location}catch(t){}var tr=function(t){if(rt(Xn,t)){var e=Xn[t];delete Xn[t],e()}},er=function(t){return function(){tr(t)}},nr=function(t){tr(t.data)},rr=function(t){f.postMessage(Jn(t),xn.protocol+"//"+xn.host)};Vn&&Kn||(Vn=function(t){!function(t,e){if(t<e)throw Fn("Not enough arguments")}(arguments.length,1);var e=P(t)?t:Wn(t),n=Bn(arguments,1);return Xn[++Qn]=function(){Un(e,void 0,n)},wn(Qn),Qn},Kn=function(t){delete Xn[t]},fn?wn=function(t){Yn.nextTick(er(t))}:$n&&$n.now?wn=function(t){$n.now(er(t))}:zn&&!qn?(Pn=(_n=new zn).port2,_n.port1.onmessage=nr,wn=Gn(Pn.postMessage,Pn)):f.addEventListener&&P(f.postMessage)&&!f.importScripts&&xn&&"file:"!==xn.protocol&&!s(rr)?(wn=rr,f.addEventListener("message",nr,!1)):wn=Zn in Et("script")?function(t){Hn.appendChild(Et("script"))[Zn]=function(){Hn.removeChild(this),tr(t)}}:function(t){setTimeout(er(t),0)});var or,ir,ar,ur,cr,sr,fr,lr,pr={set:Vn,clear:Kn},dr=/ipad|iphone|ipod/i.test(A)&&void 0!==f.Pebble,vr=/web0s(?!.*chrome)/i.test(A),hr=Ot.f,gr=pr.set,yr=f.MutationObserver||f.WebKitMutationObserver,mr=f.document,Er=f.process,Rr=f.Promise,Sr=hr(f,"queueMicrotask"),Or=Sr&&Sr.value;Or||(or=function(){var t,e;for(fn&&(t=Er.domain)&&t.exit();ir;){e=ir.fn,ir=ir.next;try{e()}catch(t){throw ir?ur():ar=void 0,t}}ar=void 0,t&&t.enter()},ur=qn||fn||vr||!yr||!mr?!dr&&Rr&&Rr.resolve?((fr=Rr.resolve(void 0)).constructor=Rr,lr=Gn(fr.then,fr),function(){lr(or)}):fn?function(){Er.nextTick(or)}:(gr=Gn(gr,f),function(){gr(or)}):(cr=!0,sr=mr.createTextNode(""),new yr(or).observe(sr,{characterData:!0}),function(){sr.data=cr=!cr}));var br=Or||function(t){var e={fn:t,next:void 0};ar&&(ar.next=e),ir||(ir=e,ur()),ar=e},Ir=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Tr=function(){this.head=null,this.tail=null};Tr.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var xr,wr,_r,Pr,kr,jr,Cr,Ar,Lr=Tr,Nr=f.Promise,Dr="object"==typeof window&&"object"!=typeof Deno,Ur=(Nr&&Nr.prototype,pt("species")),Mr=!1,Gr=P(f.PromiseRejectionEvent),Hr={CONSTRUCTOR:Ce("Promise",function(){var t=qt(Nr),e=t!==String(Nr);if(!e&&66===M)return!0;if(51<=M&&/native code/.test(t))return!1;var n=new Nr(function(t){t(1)}),r=function(t){t(function(){},function(){})};return(n.constructor={})[Ur]=r,!(Mr=n.then(function(){})instanceof r)||!e&&Dr&&!Gr}),REJECTION_EVENT:Gr,SUBCLASSING:Mr},Br=function(t){var n,r;this.promise=new t(function(t,e){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=t,r=e}),this.resolve=Y(n),this.reject=Y(r)},Fr={f:function(t){return new Br(t)}},qr=pr.set,Vr="Promise",Kr=Hr.CONSTRUCTOR,Yr=Hr.REJECTION_EVENT,$r=Hr.SUBCLASSING,Wr=re.getterFor(Vr),zr=re.set,Jr=Nr&&Nr.prototype,Qr=Nr,Xr=Jr,Zr=f.TypeError,to=f.document,eo=f.process,no=Fr.f,ro=no,oo=!!(to&&to.createEvent&&f.dispatchEvent),io="unhandledrejection",ao=function(t){var e;return!(!k(t)||!P(e=t.then))&&e},uo=function(t,e){var n,r,o,i=e.value,a=1==e.state,u=a?t.ok:t.fail,c=t.resolve,s=t.reject,f=t.domain;try{u?(a||(2===e.rejection&&po(e),e.rejection=1),!0===u?n=i:(f&&f.enter(),n=u(i),f&&(f.exit(),o=!0)),n===t.promise?s(Zr("Promise-chain cycle")):(r=ao(n))?m(r,n,c,s):c(n)):s(i)}catch(t){f&&!o&&f.exit(),s(t)}},co=function(n,r){n.notified||(n.notified=!0,br(function(){for(var t,e=n.reactions;t=e.get();)uo(t,n);n.notified=!1,r&&!n.rejection&&fo(n)}))},so=function(t,e,n){var r,o;oo?((r=to.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),f.dispatchEvent(r)):r={promise:e,reason:n},!Yr&&(o=f["on"+t])?o(r):t===io&&function(t,e){var n=f.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},fo=function(r){m(qr,f,function(){var t,e=r.facade,n=r.value;if(lo(r)&&(t=Ir(function(){fn?eo.emit("unhandledRejection",n,e):so(io,e,n)}),r.rejection=fn||lo(r)?2:1,t.error))throw t.value})},lo=function(t){return 1!==t.rejection&&!t.parent},po=function(e){m(qr,f,function(){var t=e.facade;fn?eo.emit("rejectionHandled",t):so("rejectionhandled",t,e.value)})},vo=function(e,n,r){return function(t){e(n,t,r)}},ho=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,co(t,!0))},go=function(n,t,e){if(!n.done){n.done=!0,e&&(n=e);try{if(n.facade===t)throw Zr("Promise can't be resolved itself");var r=ao(t);r?br(function(){var e={done:!1};try{m(r,t,vo(go,e,n),vo(ho,e,n))}catch(t){ho(e,t,n)}}):(n.value=t,n.state=1,co(n,!1))}catch(t){ho({done:!1},t,n)}}};if(Kr&&(Xr=(Qr=function(t){!function(t,e){if(C(e,t))return;throw yn("Incorrect invocation")}(this,Xr),Y(t),m(xr,this);var e=Wr(this);try{t(vo(go,e),vo(ho,e))}catch(t){ho(e,t)}}).prototype,(xr=function(t){zr(this,{type:Vr,done:!1,notified:!1,parent:!1,reactions:new Lr,rejection:!1,state:0,value:void 0})}).prototype=ie(Xr,"then",function(t,e){var n=Wr(this),r=no(An(this,Qr));return n.parent=!0,r.ok=!P(t)||t,r.fail=P(e)&&e,r.domain=fn?eo.domain:void 0,0==n.state?n.reactions.add(r):br(function(){uo(r,n)}),r.promise}),wr=function(){var t=new xr,e=Wr(t);this.promise=t,this.resolve=vo(go,e),this.reject=vo(ho,e)},Fr.f=no=function(t){return t===Qr||void 0===t?new wr(t):ro(t)},P(Nr)&&Jr!==Object.prototype)){_r=Jr.then,$r||ie(Jr,"then",function(t,e){var n=this;return new Qr(function(t,e){m(_r,n,t,e)}).then(t,e)},{unsafe:!0});try{delete Jr.constructor}catch(t){}dn&&dn(Jr,Xr)}Le({global:!0,constructor:!0,wrap:!0,forced:Kr},{Promise:Qr}),jr=!(kr=Vr),(Pr=Qr)&&!jr&&(Pr=Pr.prototype),Pr&&!rt(Pr,hn)&&vn(Pr,hn,{configurable:!0,value:kr}),Cr=j(Vr),Ar=At.f,l&&Cr&&!Cr[gn]&&Ar(Cr,gn,{configurable:!0,get:function(){return this}});var yo={},mo=pt("iterator"),Eo=Array.prototype,Ro=pt("iterator"),So=function(t){if(null!=t)return $(t,Ro)||$(t,"@@iterator")||yo[Fe(t)]},Oo=TypeError,bo=function(t,e,n){var r,o;xt(t);try{if(!(r=$(t,"return"))){if("throw"===e)throw n;return n}r=m(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return xt(r),n},Io=TypeError,To=function(t,e){this.stopped=t,this.result=e},xo=To.prototype,wo=function(t,e,n){var r,o,i,a,u,c,s,f,l=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),h=Gn(e,l),g=function(t){return r&&bo(r,"normal",t),new To(!0,t)},y=function(t){return p?(xt(t),v?h(t[0],t[1],g):h(t[0],t[1])):v?h(t,g):h(t)};if(d)r=t;else{if(!(o=So(t)))throw Io(V(t)+" is not iterable");if(void 0!==(f=o)&&(yo.Array===f||Eo[mo]===f)){for(i=0,a=ve(t);i<a;i++)if((u=y(t[i]))&&C(xo,u))return u;return new To(!1)}r=function(t,e){var n=arguments.length<2?So(t):e;if(Y(n))return xt(m(n,t));throw Oo(V(t)+" is not iterable")}(t,o)}for(c=r.next;!(s=m(c,r)).done;){try{u=y(s.value)}catch(t){bo(r,"throw",t)}if("object"==typeof u&&u&&C(xo,u))return u}return new To(!1)},_o=pt("iterator"),Po=!1;try{var ko=0,jo={next:function(){return{done:!!ko++}},return:function(){Po=!0}};jo[_o]=function(){return this},Array.from(jo,function(){throw 2})}catch(t){}var Co=Hr.CONSTRUCTOR||!function(t,e){if(!e&&!Po)return!1;var n=!1;try{var r={};r[_o]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}(function(t){Nr.all(t).then(void 0,function(){})});Le({target:"Promise",stat:!0,forced:Co},{all:function(t){var u=this,e=Fr.f(u),c=e.resolve,s=e.reject,n=Ir(function(){var r=Y(u.resolve),o=[],i=0,a=1;wo(t,function(t){var e=i++,n=!1;a++,m(r,u,t).then(function(t){n||(n=!0,o[e]=t,--a||c(o))},s)}),--a||c(o)});return n.error&&s(n.value),e.promise}});var Ao=Hr.CONSTRUCTOR,Lo=Nr&&Nr.prototype;if(Le({target:"Promise",proto:!0,forced:Ao,real:!0},{catch:function(t){return this.then(void 0,t)}}),P(Nr)){var No=j("Promise").prototype.catch;Lo.catch!==No&&ie(Lo,"catch",No,{unsafe:!0})}Le({target:"Promise",stat:!0,forced:Co},{race:function(t){var n=this,r=Fr.f(n),o=r.reject,e=Ir(function(){var e=Y(n.resolve);wo(t,function(t){m(e,n,t).then(r.resolve,o)})});return e.error&&o(e.value),r.promise}}),Le({target:"Promise",stat:!0,forced:Hr.CONSTRUCTOR},{reject:function(t){var e=Fr.f(this);return m(e.reject,void 0,t),e.promise}});var Do=Hr.CONSTRUCTOR;j("Promise");Le({target:"Promise",stat:!0,forced:Do},{resolve:function(t){return function(t,e){if(xt(t),k(e)&&e.constructor===t)return e;var n=Fr.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var Uo={SUCCESS:"SUCCESS",ERROR_PUBLISHABLE_KEY:"ERROR_PUBLISHABLE_KEY",ERROR_PERMISSIONS:"ERROR_PERMISSIONS",ERROR_LOCATION:"ERROR_LOCATION",ERROR_NETWORK:"ERROR_NETWORK",ERROR_BAD_REQUEST:"ERROR_BAD_REQUEST",ERROR_UNAUTHORIZED:"ERROR_UNAUTHORIZED",ERROR_PAYMENT_REQUIRED:"ERROR_PAYMENT_REQUIRED",ERROR_FORBIDDEN:"ERROR_FORBIDDEN",ERROR_NOT_FOUND:"ERROR_NOT_FOUND",ERROR_RATE_LIMIT:"ERROR_RATE_LIMIT",ERROR_SERVER:"ERROR_SERVER",ERROR_UNKNOWN:"ERROR_UNKNOWN"},Mo=function(){function t(){rn(this,t)}return an(t,null,[{key:"getCurrentPosition",value:function(){return new Promise(function(i,a){if(!navigator||!navigator.geolocation)return a(Uo.ERROR_LOCATION);navigator.geolocation.getCurrentPosition(function(t){if(!t||!t.coords)return a(Uo.ERROR_LOCATION);var e=t.coords,n=e.latitude,r=e.longitude,o=e.accuracy;return i({latitude:n,longitude:r,accuracy:o})},function(t){return t&&t.code&&1===t.code?a(Uo.ERROR_PERMISSIONS):a(Uo.ERROR_LOCATION)})})}}]),t}(),Go=Array.isArray||function(t){return"Array"==O(t)},Ho=TypeError,Bo=function(t){if(9007199254740991<t)throw Ho("Maximum allowed index exceeded");return t},Fo=function(t,e,n){var r=gt(e);r in t?At.f(t,r,d(0,n)):t[r]=n},qo=pt("species"),Vo=Array,Ko=function(t,e){return Go(n=t)&&(r=n.constructor,kn(r)&&(r===Vo||Go(r.prototype))?r=void 0:k(r)&&null===(r=r[qo])&&(r=void 0)),new(void 0===r?Vo:r)(0===e?0:e);var n,r},Yo=pt("species"),$o=function(e){return 51<=M||!s(function(){var t=[];return(t.constructor={})[Yo]=function(){return{foo:1}},1!==t[e](Boolean).foo})},Wo=pt("isConcatSpreadable"),zo=51<=M||!s(function(){var t=[];return t[Wo]=!1,t.concat()[0]!==t}),Jo=$o("concat"),Qo=function(t){if(!k(t))return!1;var e=t[Wo];return void 0!==e?!!e:Go(t)};Le({target:"Array",proto:!0,arity:1,forced:!zo||!Jo},{concat:function(t){var e,n,r,o,i,a=et(this),u=Ko(a,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?a:arguments[e],Qo(i))for(o=ve(i),Bo(c+o),n=0;n<o;n++,c++)n in i&&Fo(u,c,i[n]);else Bo(c+1),Fo(u,c++,i);return u.length=c,u}});e(function(t){var e=function(a){var c,t=Object.prototype,f=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},o=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",r=e.toStringTag||"@@toStringTag";function u(t,e,n,r){var i,a,u,c,o=e&&e.prototype instanceof y?e:y,s=Object.create(o.prototype),f=new w(r||[]);return s._invoke=(i=t,a=n,u=f,c=p,function(t,e){if(c===v)throw new Error("Generator is already running");if(c===h){if("throw"===t)throw e;return P()}for(u.method=t,u.arg=e;;){var n=u.delegate;if(n){var r=I(n,u);if(r){if(r===g)continue;return r}}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if(c===p)throw c=h,u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);c=v;var o=l(i,a,u);if("normal"===o.type){if(c=u.done?h:d,o.arg===g)continue;return{value:o.arg,done:u.done}}"throw"===o.type&&(c=h,u.method="throw",u.arg=o.arg)}}),s}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}a.wrap=u;var p="suspendedStart",d="suspendedYield",v="executing",h="completed",g={};function y(){}function i(){}function s(){}var m={};m[o]=function(){return this};var E=Object.getPrototypeOf,R=E&&E(E(_([])));R&&R!==t&&f.call(R,o)&&(m=R);var S=s.prototype=y.prototype=Object.create(m);function O(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function b(c,s){var e;this._invoke=function(n,r){function t(){return new s(function(t,e){!function e(t,n,r,o){var i=l(c[t],c,n);if("throw"!==i.type){var a=i.arg,u=a.value;return u&&"object"==typeof u&&f.call(u,"__await")?s.resolve(u.__await).then(function(t){e("next",t,r,o)},function(t){e("throw",t,r,o)}):s.resolve(u).then(function(t){a.value=t,r(a)},function(t){return e("throw",t,r,o)})}o(i.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}}function I(t,e){var n=t.iterator[e.method];if(n===c){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=c,I(t,e),"throw"===e.method))return g;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=l(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,g;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=c),e.delegate=null,g):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function _(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(f.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=c,t.done=!0,t};return r.next=r}}return{next:P}}function P(){return{value:c,done:!0}}return i.prototype=S.constructor=s,s.constructor=i,s[r]=i.displayName="GeneratorFunction",a.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===i||"GeneratorFunction"===(e.displayName||e.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,r in t||(t[r]="GeneratorFunction")),t.prototype=Object.create(S),t},a.awrap=function(t){return{__await:t}},O(b.prototype),b.prototype[n]=function(){return this},a.AsyncIterator=b,a.async=function(t,e,n,r,o){void 0===o&&(o=Promise);var i=new b(u(t,e,n,r),o);return a.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},O(S),S[r]="Generator",S[o]=function(){return this},S.toString=function(){return"[object Generator]"},a.keys=function(n){var r=[];for(var t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=_,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=c,this.done=!1,this.delegate=null,this.method="next",this.arg=c,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&f.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=c)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return i.type="throw",i.arg=n,r.next=t,e&&(r.method="next",r.arg=c),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var o=this.tryEntries[e],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=f.call(o,"catchLoc"),u=f.call(o,"finallyLoc");if(a&&u){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&f.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:_(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=c),g}},a}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}});var Xo=E([].push),Zo=function(d){var v=1==d,h=2==d,g=3==d,y=4==d,m=6==d,E=7==d,R=5==d||m;return function(t,e,n,r){for(var o,i,a=et(t),u=T(a),c=Gn(e,n),s=ve(u),f=0,l=r||Ko,p=v?l(t,s):h||E?l(t,0):void 0;f<s;f++)if((R||f in u)&&(i=c(o=u[f],f,a),d))if(v)p[f]=i;else if(i)switch(d){case 3:return!0;case 5:return o;case 6:return f;case 2:Xo(p,o)}else switch(d){case 4:return!1;case 7:Xo(p,o)}return m?-1:g||y?y:p}},ti={forEach:Zo(0),map:Zo(1),filter:Zo(2),some:Zo(3),every:Zo(4),find:Zo(5),findIndex:Zo(6),filterReject:Zo(7)},ei=function(t,e){var n=[][t];return!!n&&s(function(){n.call(null,e||function(){return 1},1)})},ni=ti.forEach,ri=ei("forEach")?[].forEach:function(t){return ni(this,t,1<arguments.length?arguments[1]:void 0)};Le({target:"Array",proto:!0,forced:[].forEach!=ri},{forEach:ri});var oi=E([].join),ii=T!=Object,ai=ei("join",",");Le({target:"Array",proto:!0,forced:ii||!ai},{join:function(t){return oi(_(this),void 0===t?",":t)}});var ui=ti.map;Le({target:"Array",proto:!0,forced:!$o("map")},{map:function(t){return ui(this,t,1<arguments.length?arguments[1]:void 0)}});var ci={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},si=Et("span").classList,fi=si&&si.constructor&&si.constructor.prototype,li=fi===Object.prototype?void 0:fi,pi=function(e){if(e&&e.forEach!==ri)try{Lt(e,"forEach",ri)}catch(t){e.forEach=ri}};for(var di in ci)ci[di]&&pi(f[di]&&f[di].prototype);pi(li);var vi,hi=function(){function t(){rn(this,t)}return an(t,null,[{key:"getStorage",value:function(){return window&&window.sessionStorage||void 0}},{key:"setItem",value:function(t,e){this.getStorage()&&sessionStorage.setItem(t,e)}},{key:"getItem",value:function(t){var e=this.getStorage();if(!e)return null;var n=e.getItem(t);return null!=n?n:null}},{key:"removeItem",value:function(t){var e=this.getStorage();if(!e)return null;e.removeItem(t)}},{key:"clear",value:function(){var t=this.getStorage();if(!t)return null;t.clear()}},{key:"DESCRIPTION",get:function(){return"radar-description"}},{key:"DEVICE_ID",get:function(){return"radar-deviceId"}},{key:"DEVICE_TYPE",get:function(){return"radar-deviceType"}},{key:"METADATA",get:function(){return"radar-metadata"}},{key:"HOST",get:function(){return"radar-host"}},{key:"PUBLISHABLE_KEY",get:function(){return"radar-publishableKey"}},{key:"USER_ID",get:function(){return"radar-userId"}},{key:"INSTALL_ID",get:function(){return"radar-installId"}},{key:"TRIP_OPTIONS",get:function(){return"radar-trip-options"}},{key:"CUSTOM_HEADERS",get:function(){return"radar-custom-headers"}},{key:"BASE_API_PATH",get:function(){return"radar-base-api-path"}}]),t}(),gi=function(){function t(){rn(this,t)}return an(t,null,[{key:"getHost",value:function(){return hi.getItem(hi.HOST)||"https://api.radar.io"}}]),t}(),yi="3.4.0-beta",mi=function(){function t(){rn(this,t)}return an(t,null,[{key:"request",value:function(f,l,p){return new Promise(function(e,n){var r=new XMLHttpRequest,t="".concat(gi.getHost(),"/").concat(l),o={};if(Object.keys(p).forEach(function(t){var e=p[t];void 0!==e&&(o[t]=e)}),"GET"===f){var i=Object.keys(o).map(function(t){return"".concat(t,"=").concat(encodeURIComponent(o[t]))});if(0<i.length){var a=i.join("&");t="".concat(t,"?").concat(a)}o=void 0}r.open(f,t,!0);var u=hi.getItem(hi.PUBLISHABLE_KEY);if(u){r.setRequestHeader("Authorization",u),r.setRequestHeader("Content-Type","application/json"),r.setRequestHeader("X-Radar-Device-Type","Web"),r.setRequestHeader("X-Radar-SDK-Version",yi);var c=hi.getItem(hi.CUSTOM_HEADERS);if(c){var s=JSON.parse(c);Object.keys(s).forEach(function(t){r.setRequestHeader(t,s[t])})}r.onload=function(){var t;try{t=JSON.parse(r.response)}catch(t){n(Uo.ERROR_SERVER)}200==r.status?e(t):400===r.status?n({httpError:Uo.ERROR_BAD_REQUEST,response:t}):401===r.status?n({httpError:Uo.ERROR_UNAUTHORIZED,response:t}):402===r.status?n({httpError:Uo.ERROR_PAYMENT_REQUIRED,response:t}):403===r.status?n({httpError:Uo.ERROR_FORBIDDEN,response:t}):404===r.status?n({httpError:Uo.ERROR_NOT_FOUND,response:t}):429===r.status?n({httpError:Uo.ERROR_RATE_LIMIT,response:t}):500<=r.status&&r.status<600?n({httpError:Uo.ERROR_SERVER,response:t}):n({httpError:Uo.ERROR_UNKNOWN,response:t})},r.onerror=function(){n(Uo.ERROR_SERVER)},r.timeout=function(){n(Uo.ERROR_NETWORK)},r.send(JSON.stringify(o))}else n(Uo.ERROR_PUBLISHABLE_KEY)})}}]),t}(),Ei=function(){function t(){rn(this,t)}var e;return an(t,null,[{key:"getContext",value:(e=nn(regeneratorRuntime.mark(function t(){var e,n,r,o,i,a=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((e=0<a.length&&void 0!==a[0]?a[0]:{}).latitude&&e.longitude){t.next=5;break}return t.next=4,Mo.getCurrentPosition();case 4:e=t.sent;case 5:return r=(n=e).latitude,o=n.longitude,i={coordinates:"".concat(r,",").concat(o)},t.abrupt("return",mi.request("GET","v1/context",i));case 8:case"end":return t.stop()}},t)})),function(){return e.apply(this,arguments)})}]),t}(),Ri=function(){function t(){rn(this,t)}var e,n,r;return an(t,null,[{key:"geocode",value:(r=nn(regeneratorRuntime.mark(function t(){var e,n,r,o,i=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=0<i.length&&void 0!==i[0]?i[0]:{},n=e.query,r=e.layers,o=e.country,t.abrupt("return",mi.request("GET","v1/geocode/forward",{query:n,layers:r,country:o}));case 3:case"end":return t.stop()}},t)})),function(){return r.apply(this,arguments)})},{key:"reverseGeocode",value:(n=nn(regeneratorRuntime.mark(function t(){var e,n,r,o,i,a,u,c,s=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((e=0<s.length&&void 0!==s[0]?s[0]:{}).latitude&&e.longitude){t.next=9;break}return t.next=4,Mo.getCurrentPosition();case 4:n=t.sent,r=n.latitude,o=n.longitude,e.latitude=r,e.longitude=o;case 9:return i=e.latitude,a=e.longitude,u=e.layers,c={coordinates:"".concat(i,",").concat(a),layers:u},t.abrupt("return",mi.request("GET","v1/geocode/reverse",c));case 12:case"end":return t.stop()}},t)})),function(){return n.apply(this,arguments)})},{key:"ipGeocode",value:(e=nn(regeneratorRuntime.mark(function t(){var e,n,r=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=0<r.length&&void 0!==r[0]?r[0]:{},n=e.ip,t.abrupt("return",mi.request("GET","v1/geocode/ip",{ip:n}));case 3:case"end":return t.stop()}},t)})),function(){return e.apply(this,arguments)})}]),t}(),Si=function(){function t(){rn(this,t)}var e,n;return an(t,null,[{key:"getDistanceToDestination",value:(n=nn(regeneratorRuntime.mark(function t(){var e,n,r,o,i,a,u,c,s,f,l=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((e=0<l.length&&void 0!==l[0]?l[0]:{}).origin){t.next=8;break}return t.next=4,Mo.getCurrentPosition();case 4:n=t.sent,r=n.latitude,o=n.longitude,e.origin={latitude:r,longitude:o};case 8:return i=e.origin,a=e.destination,u=e.modes,c=e.units,s=e.geometry,i="".concat(i.latitude,",").concat(i.longitude),a&&(a="".concat(a.latitude,",").concat(a.longitude)),u&&(u=u.join(",")),f={origin:i,destination:a,modes:u,units:c,geometry:s},t.abrupt("return",mi.request("GET","v1/route/distance",f));case 14:case"end":return t.stop()}},t)})),function(){return n.apply(this,arguments)})},{key:"getMatrixDistances",value:(e=nn(regeneratorRuntime.mark(function t(){var e,n,r,o,i,a,u,c,s,f,l=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((e=0<l.length&&void 0!==l[0]?l[0]:{}).origins){t.next=8;break}return t.next=4,Mo.getCurrentPosition();case 4:n=t.sent,r=n.latitude,o=n.longitude,e.origins=[{latitude:r,longitude:o}];case 8:return i=e.origins,a=e.destinations,u=e.mode,c=e.units,s=e.geometry,i=(i||[]).map(function(t){return"".concat(t.latitude,",").concat(t.longitude)}).join("|"),a=(a||[]).map(function(t){return"".concat(t.latitude,",").concat(t.longitude)}).join("|"),f={origins:i,destinations:a,mode:u,units:c,geometry:s},t.abrupt("return",mi.request("GET","v1/route/matrix",f));case 13:case"end":return t.stop()}},t)})),function(){return e.apply(this,arguments)})}]),t}(),Oi=function(){function t(){rn(this,t)}var e,n,r;return an(t,null,[{key:"searchPlaces",value:(r=nn(regeneratorRuntime.mark(function t(){var e,n,r,o,i,a,u,c,s,f,l,p=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((e=0<p.length&&void 0!==p[0]?p[0]:{}).near){t.next=8;break}return t.next=4,Mo.getCurrentPosition();case 4:n=t.sent,r=n.latitude,o=n.longitude,e.near={latitude:r,longitude:o};case 8:return i=e.near,a=e.radius,u=e.chains,c=e.categories,s=e.groups,f=e.limit,i="".concat(i.latitude,",").concat(i.longitude),u&&(u=u.join(",")),c&&(c=c.join(",")),s&&(s=s.join(",")),l={near:i,radius:a,chains:u,categories:c,groups:s,limit:f},t.abrupt("return",mi.request("GET","v1/search/places",l));case 15:case"end":return t.stop()}},t)})),function(){return r.apply(this,arguments)})},{key:"searchGeofences",value:(n=nn(regeneratorRuntime.mark(function t(){var e,n,r,o,i,a,u,c,s,f,l=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((e=0<l.length&&void 0!==l[0]?l[0]:{}).near){t.next=8;break}return t.next=4,Mo.getCurrentPosition();case 4:n=t.sent,r=n.latitude,o=n.longitude,e.near={latitude:r,longitude:o};case 8:return i=e.near,a=e.radius,u=e.tags,c=e.metadata,s=e.limit,i="".concat(i.latitude,",").concat(i.longitude),u&&(u=u.join(",")),f={near:i,radius:a,tags:u,limit:s},c&&Object.keys(c).forEach(function(t){var e="metadata[".concat(t,"]"),n=c[t];f[e]=n}),t.abrupt("return",mi.request("GET","v1/search/geofences",f));case 14:case"end":return t.stop()}},t)})),function(){return n.apply(this,arguments)})},{key:"autocomplete",value:(e=nn(regeneratorRuntime.mark(function t(){var e,n,r,o,i,a,u,c,s,f=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=0<f.length&&void 0!==f[0]?f[0]:{},o=r.query,i=r.near,a=r.limit,u=r.layers,c=r.country,(null===(e=i)||void 0===e?void 0:e.latitude)&&(null===(n=i)||void 0===n?void 0:n.longitude)&&(i="".concat(i.latitude,",").concat(i.longitude)),s={query:o,near:i,limit:a,layers:u,country:c},t.abrupt("return",mi.request("GET","v1/search/autocomplete",s));case 5:case"end":return t.stop()}},t)})),function(){return e.apply(this,arguments)})}]),t}(),bi=function(){var t=xt(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Ii=f.RegExp,Ti=s(function(){var t=Ii("a","y");return t.lastIndex=2,null!=t.exec("abcd")}),xi=Ti||s(function(){return!Ii("a","y").sticky}),wi={BROKEN_CARET:Ti||s(function(){var t=Ii("^r","gy");return t.lastIndex=2,null!=t.exec("str")}),MISSED_STICKY:xi,UNSUPPORTED_Y:Ti},_i={f:l&&!bt?Object.defineProperties:function(t,e){xt(t);for(var n,r=_(e),o=Ne(e),i=o.length,a=0;a<i;)At.f(t,n=o[a++],r[n]);return t}},Pi="prototype",ki="script",ji=$t("IE_PROTO"),Ci=function(){},Ai=function(t){return"<script>"+t+"</"+ki+">"},Li=function(t){t.write(Ai("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ni=function(){try{vi=new ActiveXObject("htmlfile")}catch(t){}var t,e;Ni="undefined"!=typeof document?document.domain&&vi?Li(vi):((e=Et("iframe")).style.display="none",Hn.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Ai("document.F=Object")),t.close(),t.F):Li(vi);for(var n=Ee.length;n--;)delete Ni[Pi][Ee[n]];return Ni()};Wt[ji]=!0;var Di,Ui,Mi=Object.create||function(t,e){var n;return null!==t?(Ci[Pi]=xt(t),n=new Ci,Ci[Pi]=null,n[ji]=t):n=Ni(),void 0===e?n:_i.f(n,e)},Gi=f.RegExp,Hi=s(function(){var t=Gi(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}),Bi=f.RegExp,Fi=s(function(){var t=Bi("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}),qi=re.get,Vi=Z("native-string-replace",String.prototype.replace),Ki=RegExp.prototype.exec,Yi=Ki,$i=E("".charAt),Wi=E("".indexOf),zi=E("".replace),Ji=E("".slice),Qi=(Ui=/b*/g,m(Ki,Di=/a/,"a"),m(Ki,Ui,"a"),0!==Di.lastIndex||0!==Ui.lastIndex),Xi=wi.BROKEN_CARET,Zi=void 0!==/()??/.exec("")[1];(Qi||Zi||Xi||Hi||Fi)&&(Yi=function(t){var e,n,r,o,i,a,u,c=this,s=qi(c),f=Ve(t),l=s.raw;if(l)return l.lastIndex=c.lastIndex,e=m(Yi,l,f),c.lastIndex=l.lastIndex,e;var p=s.groups,d=Xi&&c.sticky,v=m(bi,c),h=c.source,g=0,y=f;if(d&&(v=zi(v,"y",""),-1===Wi(v,"g")&&(v+="g"),y=Ji(f,c.lastIndex),0<c.lastIndex&&(!c.multiline||c.multiline&&"\n"!==$i(f,c.lastIndex-1))&&(h="(?: "+h+")",y=" "+y,g++),n=new RegExp("^(?:"+h+")",v)),Zi&&(n=new RegExp("^"+h+"$(?!\\s)",v)),Qi&&(r=c.lastIndex),o=m(Ki,d?n:c,y),d?o?(o.input=Ji(o.input,g),o[0]=Ji(o[0],g),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Qi&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),Zi&&o&&1<o.length&&m(Vi,o[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)}),o&&p)for(o.groups=a=Mi(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var ta=Yi;Le({target:"RegExp",proto:!0,forced:/./.exec!==ta},{exec:ta});var ea=RegExp.prototype,na=Mt.PROPER,ra="toString",oa=RegExp.prototype[ra],ia=s(function(){return"/a/b"!=oa.call({source:"a",flags:"b"})}),aa=na&&oa.name!=ra;(ia||aa)&&ie(RegExp.prototype,ra,function(){var t,e,n=xt(this);return"/"+Ve(n.source)+"/"+Ve(void 0!==(e=(t=n).flags)||"flags"in ea||rt(t,"flags")||!C(ea,t)?e:m(bi,t))},{unsafe:!0});var ua=pt("species"),ca=RegExp.prototype,sa=E("".charAt),fa=E("".charCodeAt),la=E("".slice),pa=function(u){return function(t,e){var n,r,o=Ve(w(t)),i=se(e),a=o.length;return i<0||a<=i?u?"":void 0:(n=fa(o,i))<55296||56319<n||i+1===a||(r=fa(o,i+1))<56320||57343<r?u?sa(o,i):n:u?la(o,i,i+2):r-56320+(n-55296<<10)+65536}},da={codeAt:pa(!1),charAt:pa(!0)}.charAt,va=Math.floor,ha=E("".charAt),ga=E("".replace),ya=E("".slice),ma=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ea=/\$([$&'`]|\d{1,2})/g,Ra=function(i,a,u,c,s,t){var f=u+i.length,l=c.length,e=Ea;return void 0!==s&&(s=et(s),e=ma),ga(t,e,function(t,e){var n;switch(ha(e,0)){case"$":return"$";case"&":return i;case"`":return ya(a,0,u);case"'":return ya(a,f);case"<":n=s[ya(e,1,-1)];break;default:var r=+e;if(0===r)return t;if(l<r){var o=va(r/10);return 0===o?t:o<=l?void 0===c[o-1]?ha(e,1):c[o-1]+ha(e,1):t}n=c[r-1]}return void 0===n?"":n})},Sa=TypeError,Oa=function(t,e){var n=t.exec;if(P(n)){var r=m(n,t,e);return null!==r&&xt(r),r}if("RegExp"===O(t))return m(ta,t,e);throw Sa("RegExp#exec called on incompatible receiver")},ba=pt("replace"),Ia=Math.max,Ta=Math.min,xa=E([].concat),wa=E([].push),_a=E("".indexOf),Pa=E("".slice),ka="$0"==="a".replace(/./,"$0"),ja=!!/./[ba]&&""===/./[ba]("a","$0");!function(n,t,e,r){var o=pt(n),u=!s(function(){var t={};return t[o]=function(){return 7},7!=""[n](t)}),i=u&&!s(function(){var t=!1,e=/a/;return"split"===n&&((e={constructor:{}}).constructor[ua]=function(){return e},e.flags="",e[o]=/./[o]),e.exec=function(){return t=!0,null},e[o](""),!t});if(!u||!i||e){var c=E(/./[o]),a=t(o,""[n],function(t,e,n,r,o){var i=E(t),a=e.exec;return a===ta||a===ca.exec?u&&!o?{done:!0,value:c(e,n,r)}:{done:!0,value:i(n,e,r)}:{done:!1}});ie(String.prototype,n,a[0]),ie(ca,o,a[1])}r&&Lt(ca[o],"sham",!0)}("replace",function(t,b,I){var T=ja?"$":"$0";return[function(t,e){var n=w(this),r=null==t?void 0:$(t,ba);return r?m(r,t,n,e):m(b,Ve(n),t,e)},function(t,e){var n=xt(this),r=Ve(t);if("string"==typeof e&&-1===_a(e,T)&&-1===_a(e,"$<")){var o=I(b,n,r,e);if(o.done)return o.value}var i=P(e);i||(e=Ve(e));var a=n.global;if(a){var u=n.unicode;n.lastIndex=0}for(var c,s,f=[];;){var l=Oa(n,r);if(null===l)break;if(wa(f,l),!a)break;""===Ve(l[0])&&(n.lastIndex=(c=r,(s=de(n.lastIndex))+(u?da(c,s).length:1)))}for(var p,d="",v=0,h=0;h<f.length;h++){for(var g=Ve((l=f[h])[0]),y=Ia(Ta(se(l.index),r.length),0),m=[],E=1;E<l.length;E++)wa(m,void 0===(p=l[E])?p:String(p));var R=l.groups;if(i){var S=xa([g],m,y,r);void 0!==R&&wa(S,R);var O=Ve(Un(e,void 0,S))}else O=Ra(g,r,y,m,R,e);v<=y&&(d+=Pa(r,v,y)+O,v=y+g.length)}return d+Pa(r,v)}]},!!s(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!ka||ja);var Ca=function(){function t(){rn(this,t)}return an(t,null,[{key:"getId",value:function(){var t=hi.getItem(hi.DEVICE_ID);if(t)return t;var e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)});return hi.setItem(hi.DEVICE_ID,e),e}}]),t}(),Aa=function(){function t(){rn(this,t)}var e;return an(t,null,[{key:"trackOnce",value:(e=nn(regeneratorRuntime.mark(function t(){var e,n,r,o,i,a,u,c,s,f,l,p,d,v,h,g=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e=0<g.length&&void 0!==g[0]?g[0]:{},n=e.latitude,r=e.longitude,o=e.accuracy,n&&r){t.next=9;break}return t.next=5,Mo.getCurrentPosition();case 5:i=t.sent,n=i.latitude,r=i.longitude,o=i.accuracy;case 9:return a=Ca.getId(),u=hi.getItem(hi.USER_ID),c=hi.getItem(hi.INSTALL_ID)||a,s=hi.getItem(hi.DEVICE_TYPE)||"Web",f=hi.getItem(hi.DESCRIPTION),(l=hi.getItem(hi.METADATA))&&(l=JSON.parse(l)),p=cn({},e,{accuracy:o,description:f,deviceId:a,deviceType:s,foreground:!0,installId:c,latitude:n,longitude:r,metadata:l,sdkVersion:yi,stopped:!0,userId:u}),d=hi.getItem(hi.BASE_API_PATH)||"v1",v="".concat(d,"/track"),t.next=21,mi.request("POST",v,p);case 21:return(h=t.sent).location={latitude:n,longitude:r,accuracy:o},t.abrupt("return",h);case 24:case"end":return t.stop()}},t)})),function(){return e.apply(this,arguments)})}]),t}(),La=function(){function t(){rn(this,t)}var e,n;return an(t,null,[{key:"startTrip",value:(n=nn(regeneratorRuntime.mark(function t(){var e,n,r,o,i,a,u,c,s,f,l=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=0<l.length&&void 0!==l[0]?l[0]:{},n=hi.getItem(hi.USER_ID),r=e.externalId,o=e.destinationGeofenceTag,i=e.destinationGeofenceExternalId,a=e.mode,u=e.metadata,c=e.approachingThreshold,s={userId:n,externalId:r,destinationGeofenceTag:o,destinationGeofenceExternalId:i,mode:a,metadata:u,approachingThreshold:c},f=hi.getItem(hi.BASE_API_PATH)||"v1",t.abrupt("return",mi.request("POST","".concat(f,"/trips"),s));case 6:case"end":return t.stop()}},t)})),function(){return n.apply(this,arguments)})},{key:"updateTrip",value:(e=nn(regeneratorRuntime.mark(function t(){var e,n,r,o,i,a,u,c,s,f,l,p=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=0<p.length&&void 0!==p[0]?p[0]:{},n=1<p.length?p[1]:void 0,r=hi.getItem(hi.USER_ID),o=e.externalId,i=e.destinationGeofenceTag,a=e.destinationGeofenceExternalId,u=e.mode,c=e.metadata,s=e.approachingThreshold,f={userId:r,externalId:o,status:n,destinationGeofenceTag:i,destinationGeofenceExternalId:a,mode:u,metadata:c,approachingThreshold:s},l=hi.getItem(hi.BASE_API_PATH)||"v1",t.abrupt("return",mi.request("PATCH","".concat(l,"/trips/").concat(o,"/update"),f));case 7:case"end":return t.stop()}},t)})),function(){return e.apply(this,arguments)})}]),t}(),Na="completed",Da="canceled",Ua=function(){},Ma=function(e){return function(t){"string"!=typeof t?"object"===tn(t)&&t.httpError?e(t.httpError,{},t.response):e(Uo.ERROR_UNKNOWN,{}):e(t,{})}};return function(){function r(){rn(this,r)}return an(r,null,[{key:"initialize",value:function(t){t||console.error('Radar "initialize" was called without a publishable key'),hi.setItem(hi.PUBLISHABLE_KEY,t)}},{key:"setHost",value:function(t,e){hi.setItem(hi.HOST,t),hi.setItem(hi.BASE_API_PATH,e)}},{key:"setUserId",value:function(t){t?hi.setItem(hi.USER_ID,String(t).trim()):hi.removeItem(hi.USER_ID)}},{key:"setDeviceId",value:function(t,e){t?hi.setItem(hi.DEVICE_ID,String(t).trim()):hi.removeItem(hi.DEVICE_ID),e?hi.setItem(hi.INSTALL_ID,String(e).trim()):hi.removeItem(hi.INSTALL_ID)}},{key:"setDeviceType",value:function(t){t?hi.setItem(hi.DEVICE_TYPE,String(t).trim()):hi.removeItem(hi.DEVICE_TYPE)}},{key:"setDescription",value:function(t){t?hi.setItem(hi.DESCRIPTION,String(t).trim()):hi.removeItem(hi.DESCRIPTION)}},{key:"setMetadata",value:function(t){t?hi.setItem(hi.METADATA,JSON.stringify(t)):hi.removeItem(hi.METADATA)}},{key:"setRequestHeaders",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};Object.keys(t).length?hi.setItem(hi.CUSTOM_HEADERS,JSON.stringify(t)):hi.removeItem(hi.CUSTOM_HEADERS)}},{key:"getLocation",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Ua;Mo.getCurrentPosition().then(function(t){e(null,{location:t,status:Uo.SUCCESS})}).catch(Ma(e))}},{key:"trackOnce",value:function(t){var e,n,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Ua;e="function"==typeof t?t:(n=t,r),Aa.trackOnce(n).then(function(t){e(null,{location:t.location,user:t.user,events:t.events,status:Uo.SUCCESS},t)}).catch(Ma(e))}},{key:"getContext",value:function(t){var e,n,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Ua;e="function"==typeof t?t:(n=t,r),Ei.getContext(n).then(function(t){e(null,{context:t.context,status:Uo.SUCCESS},t)}).catch(Ma(e))}},{key:"startTrip",value:function(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Ua;La.startTrip(e).then(function(t){r.setTripOptions(e),n(null,{trip:t.trip,events:t.events||[],status:Uo.SUCCESS},t)}).catch(Ma(n))}},{key:"updateTrip",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:Ua;La.updateTrip(e,t).then(function(t){r.setTripOptions(e),n(null,{trip:t.trip,events:t.events,status:Uo.SUCCESS},t)}).catch(Ma(n))}},{key:"completeTrip",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Ua,t=r.getTripOptions();La.updateTrip(t,Na).then(function(t){r.clearTripOptions(),e(null,{trip:t.trip,events:t.events,status:Uo.SUCCESS},t)}).catch(Ma(e))}},{key:"cancelTrip",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Ua,t=r.getTripOptions();La.updateTrip(t,Da).then(function(t){r.clearTripOptions(),e(null,{trip:t.trip,events:t.events,status:Uo.SUCCESS},t)}).catch(Ma(e))}},{key:"setTripOptions",value:function(t){t?hi.setItem(hi.TRIP_OPTIONS,JSON.stringify(t)):r.clearTripOptions()}},{key:"clearTripOptions",value:function(){hi.removeItem(hi.TRIP_OPTIONS)}},{key:"getTripOptions",value:function(){var t=hi.getItem(hi.TRIP_OPTIONS);return t&&(t=JSON.parse(t)),t}},{key:"searchPlaces",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Ua;Oi.searchPlaces(t).then(function(t){e(null,{places:t.places,status:Uo.SUCCESS},t)}).catch(Ma(e))}},{key:"searchGeofences",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Ua;Oi.searchGeofences(t).then(function(t){e(null,{geofences:t.geofences,status:Uo.SUCCESS},t)}).catch(Ma(e))}},{key:"autocomplete",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Ua;Oi.autocomplete(t).then(function(t){e(null,{addresses:t.addresses,status:Uo.SUCCESS},t)}).catch(Ma(e))}},{key:"geocode",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Ua;Ri.geocode(t).then(function(t){e(null,{addresses:t.addresses,staus:Uo.SUCCESS},t)}).catch(Ma(e))}},{key:"reverseGeocode",value:function(t){var e,n,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Ua;e="function"==typeof t?t:(n=t,r),Ri.reverseGeocode(n).then(function(t){e(null,{addresses:t.addresses,status:Uo.SUCCESS},t)}).catch(Ma(e))}},{key:"ipGeocode",value:function(t){var e,n,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Ua;"function"==typeof t?e=t:"object"===tn(t)&&(n=t,e=r),Ri.ipGeocode(n).then(function(t){e(null,{address:t.address,status:Uo.SUCCESS},t)}).catch(Ma(e))}},{key:"getDistance",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Ua;Si.getDistanceToDestination(t).then(function(t){e(null,{routes:t.routes,status:Uo.SUCCESS},t)}).catch(Ma(e))}},{key:"getMatrix",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Ua;Si.getMatrixDistances(t).then(function(t){e(null,{origins:t.origins,destinations:t.destinations,matrix:t.matrix,status:Uo.SUCCESS},t)}).catch(Ma(e))}},{key:"VERSION",get:function(){return yi}},{key:"STATUS",get:function(){return Uo}}]),r}()}();
1
+ var Radar=function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n,r,o=function(t){return t&&t.Math==Math&&t},f=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof t&&t)||function(){return this}()||Function("return this")(),s=function(t){try{return!!t()}catch(t){return!0}},l=!s(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),i=!s(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}),a=Function.prototype.call,m=i?a.bind(a):function(){return a.apply(a,arguments)},u={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,p={f:c&&!u.call({1:2},1)?function(t){var e=c(this,t);return!!e&&e.enumerable}:u},d=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},v=Function.prototype,h=v.bind,g=v.call,y=i&&h.bind(g,g),E=i?function(t){return t&&y(t)}:function(t){return t&&function(){return g.apply(t,arguments)}},R=E({}.toString),S=E("".slice),O=function(t){return S(R(t),8,-1)},b=Object,x=E("".split),T=s(function(){return!b("z").propertyIsEnumerable(0)})?function(t){return"String"==O(t)?x(t,""):b(t)}:b,I=TypeError,w=function(t){if(null==t)throw I("Can't call method on "+t);return t},_=function(t){return T(w(t))},P=function(t){return"function"==typeof t},k=function(t){return"object"==typeof t?null!==t:P(t)},j=function(t,e){return arguments.length<2?(n=f[t],P(n)?n:void 0):f[t]&&f[t][e];var n},C=E({}.isPrototypeOf),L=j("navigator","userAgent")||"",A=f.process,N=f.Deno,D=A&&A.versions||N&&N.version,U=D&&D.v8;U&&(r=0<(n=U.split("."))[0]&&n[0]<4?1:+(n[0]+n[1])),!r&&L&&(!(n=L.match(/Edge\/(\d+)/))||74<=n[1])&&(n=L.match(/Chrome\/(\d+)/))&&(r=+n[1]);var M=r,G=!!Object.getOwnPropertySymbols&&!s(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&M&&M<41}),H=G&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,F=Object,B=H?function(t){return"symbol"==typeof t}:function(t){var e=j("Symbol");return P(e)&&C(e.prototype,F(t))},q=String,V=function(t){try{return q(t)}catch(t){return"Object"}},K=TypeError,Y=function(t){if(P(t))return t;throw K(V(t)+" is not a function")},$=function(t,e){var n=t[e];return null==n?void 0:Y(n)},W=TypeError,z=Object.defineProperty,J=function(e,n){try{z(f,e,{value:n,configurable:!0,writable:!0})}catch(t){f[e]=n}return n},Q="__core-js_shared__",X=f[Q]||J(Q,{}),Z=e(function(t){(t.exports=function(t,e){return X[t]||(X[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.23.3",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"})}),tt=Object,et=function(t){return tt(w(t))},nt=E({}.hasOwnProperty),rt=Object.hasOwn||function(t,e){return nt(et(t),e)},ot=0,it=Math.random(),at=E(1..toString),ut=function(t){return"Symbol("+(void 0===t?"":t)+")_"+at(++ot+it,36)},ct=Z("wks"),st=f.Symbol,ft=st&&st.for,lt=H?st:st&&st.withoutSetter||ut,pt=function(t){if(!rt(ct,t)||!G&&"string"!=typeof ct[t]){var e="Symbol."+t;G&&rt(st,t)?ct[t]=st[t]:ct[t]=H&&ft?ft(e):lt(e)}return ct[t]},dt=TypeError,vt=pt("toPrimitive"),ht=function(t,e){if(!k(t)||B(t))return t;var n,r=$(t,vt);if(r){if(void 0===e&&(e="default"),n=m(r,t,e),!k(n)||B(n))return n;throw dt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&P(n=t.toString)&&!k(r=m(n,t)))return r;if(P(n=t.valueOf)&&!k(r=m(n,t)))return r;if("string"!==e&&P(n=t.toString)&&!k(r=m(n,t)))return r;throw W("Can't convert object to primitive value")}(t,e)},gt=function(t){var e=ht(t,"string");return B(e)?e:e+""},yt=f.document,mt=k(yt)&&k(yt.createElement),Et=function(t){return mt?yt.createElement(t):{}},Rt=!l&&!s(function(){return 7!=Object.defineProperty(Et("div"),"a",{get:function(){return 7}}).a}),St=Object.getOwnPropertyDescriptor,Ot={f:l?St:function(t,e){if(t=_(t),e=gt(e),Rt)try{return St(t,e)}catch(t){}if(rt(t,e))return d(!m(p.f,t,e),t[e])}},bt=l&&s(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),xt=String,Tt=TypeError,It=function(t){if(k(t))return t;throw Tt(xt(t)+" is not an object")},wt=TypeError,_t=Object.defineProperty,Pt=Object.getOwnPropertyDescriptor,kt="enumerable",jt="configurable",Ct="writable",Lt={f:l?bt?function(t,e,n){if(It(t),e=gt(e),It(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Ct in n&&!n[Ct]){var r=Pt(t,e);r&&r[Ct]&&(t[e]=n.value,n={configurable:jt in n?n[jt]:r[jt],enumerable:kt in n?n[kt]:r[kt],writable:!1})}return _t(t,e,n)}:_t:function(t,e,n){if(It(t),e=gt(e),It(n),Rt)try{return _t(t,e,n)}catch(t){}if("get"in n||"set"in n)throw wt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},At=l?function(t,e,n){return Lt.f(t,e,d(1,n))}:function(t,e,n){return t[e]=n,t},Nt=Function.prototype,Dt=l&&Object.getOwnPropertyDescriptor,Ut=rt(Nt,"name"),Mt={EXISTS:Ut,PROPER:Ut&&"something"===function(){}.name,CONFIGURABLE:Ut&&(!l||l&&Dt(Nt,"name").configurable)},Gt=E(Function.toString);P(X.inspectSource)||(X.inspectSource=function(t){return Gt(t)});var Ht,Ft,Bt,qt=X.inspectSource,Vt=f.WeakMap,Kt=P(Vt)&&/native code/.test(qt(Vt)),Yt=Z("keys"),$t=function(t){return Yt[t]||(Yt[t]=ut(t))},Wt={},zt="Object already initialized",Jt=f.TypeError,Qt=f.WeakMap;if(Kt||X.state){var Xt=X.state||(X.state=new Qt),Zt=E(Xt.get),te=E(Xt.has),ee=E(Xt.set);Ht=function(t,e){if(te(Xt,t))throw new Jt(zt);return e.facade=t,ee(Xt,t,e),e},Ft=function(t){return Zt(Xt,t)||{}},Bt=function(t){return te(Xt,t)}}else{var ne=$t("state");Wt[ne]=!0,Ht=function(t,e){if(rt(t,ne))throw new Jt(zt);return e.facade=t,At(t,ne,e),e},Ft=function(t){return rt(t,ne)?t[ne]:{}},Bt=function(t){return rt(t,ne)}}var re={set:Ht,get:Ft,has:Bt,enforce:function(t){return Bt(t)?Ft(t):Ht(t,{})},getterFor:function(n){return function(t){var e;if(!k(t)||(e=Ft(t)).type!==n)throw Jt("Incompatible receiver, "+n+" required");return e}}},oe=e(function(t){var o=Mt.CONFIGURABLE,i=re.enforce,e=re.get,a=Object.defineProperty,u=l&&!s(function(){return 8!==a(function(){},"length",{value:8}).length}),c=String(String).split("String"),n=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!rt(t,"name")||o&&t.name!==e)&&(l?a(t,"name",{value:e,configurable:!0}):t.name=e),u&&n&&rt(n,"arity")&&t.length!==n.arity&&a(t,"length",{value:n.arity});try{n&&rt(n,"constructor")&&n.constructor?l&&a(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=i(t);return rt(r,"source")||(r.source=c.join("string"==typeof e?e:"")),t};Function.prototype.toString=n(function(){return P(this)&&e(this).source||qt(this)},"toString")}),ie=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(P(n)&&oe(n,i,r),r.global)o?t[e]=n:J(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Lt.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},ae=Math.ceil,ue=Math.floor,ce=Math.trunc||function(t){var e=+t;return(0<e?ue:ae)(e)},se=function(t){var e=+t;return e!=e||0===e?0:ce(e)},fe=Math.max,le=Math.min,pe=Math.min,de=function(t){return 0<t?pe(se(t),9007199254740991):0},ve=function(t){return de(t.length)},he=function(s){return function(t,e,n){var r,o,i,a=_(t),u=ve(a),c=(r=u,(o=se(n))<0?fe(o+r,0):le(o,r));if(s&&e!=e){for(;c<u;)if((i=a[c++])!=i)return!0}else for(;c<u;c++)if((s||c in a)&&a[c]===e)return s||c||0;return!s&&-1}},ge={includes:he(!0),indexOf:he(!1)}.indexOf,ye=E([].push),me=function(t,e){var n,r=_(t),o=0,i=[];for(n in r)!rt(Wt,n)&&rt(r,n)&&ye(i,n);for(;e.length>o;)rt(r,n=e[o++])&&(~ge(i,n)||ye(i,n));return i},Ee=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Re=Ee.concat("length","prototype"),Se={f:Object.getOwnPropertyNames||function(t){return me(t,Re)}},Oe={f:Object.getOwnPropertySymbols},be=E([].concat),xe=j("Reflect","ownKeys")||function(t){var e=Se.f(It(t)),n=Oe.f;return n?be(e,n(t)):e},Te=function(t,e,n){for(var r=xe(e),o=Lt.f,i=Ot.f,a=0;a<r.length;a++){var u=r[a];rt(t,u)||n&&rt(n,u)||o(t,u,i(e,u))}},Ie=/#|\.prototype\./,we=function(t,e){var n=Pe[_e(t)];return n==je||n!=ke&&(P(e)?s(e):!!e)},_e=we.normalize=function(t){return String(t).replace(Ie,".").toLowerCase()},Pe=we.data={},ke=we.NATIVE="N",je=we.POLYFILL="P",Ce=we,Le=Ot.f,Ae=function(t,e){var n,r,o,i,a,u=t.target,c=t.global,s=t.stat;if(n=c?f:s?f[u]||J(u,{}):(f[u]||{}).prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(a=Le(n,r))&&a.value:n[r],!Ce(c?r:u+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Te(i,o)}(t.sham||o&&o.sham)&&At(i,"sham",!0),ie(n,r,i,t)}},Ne=Object.keys||function(t){return me(t,Ee)};Ae({target:"Object",stat:!0,forced:s(function(){Ne(1)})},{keys:function(t){return Ne(et(t))}});var De={};De[pt("toStringTag")]="z";var Ue,Me="[object z]"===String(De),Ge=pt("toStringTag"),He=Object,Fe="Arguments"==O(function(){return arguments}()),Be=Me?O:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=He(t),Ge))?n:Fe?O(e):"Object"==(r=O(e))&&P(e.callee)?"Arguments":r},qe=String,Ve=function(t){if("Symbol"===Be(t))throw TypeError("Cannot convert a Symbol value to a string");return qe(t)},Ke="\t\n\v\f\r                 \u2028\u2029\ufeff",Ye=E("".replace),$e="["+Ke+"]",We=RegExp("^"+$e+$e+"*"),ze=RegExp($e+$e+"*$"),Je=function(n){return function(t){var e=Ve(w(t));return 1&n&&(e=Ye(e,We,"")),2&n&&(e=Ye(e,ze,"")),e}},Qe={start:Je(1),end:Je(2),trim:Je(3)},Xe=Mt.PROPER,Ze=Qe.trim;function tn(t){return(tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function en(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function nn(u){return function(){var t=this,a=arguments;return new Promise(function(e,n){var r=u.apply(t,a);function o(t){en(r,e,n,o,i,"next",t)}function i(t){en(r,e,n,o,i,"throw",t)}o(void 0)})}}function rn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function on(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function an(t,e,n){return e&&on(t.prototype,e),n&&on(t,n),t}function un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cn(o){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?un(Object(i),!0).forEach(function(t){var e,n,r;e=o,r=i[n=t],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):un(Object(i)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(i,t))})}return o}Ae({target:"String",proto:!0,forced:(Ue="trim",s(function(){return!!Ke[Ue]()||"​…᠎"!=="​…᠎"[Ue]()||Xe&&Ke[Ue].name!==Ue}))},{trim:function(){return Ze(this)}});var sn=Me?{}.toString:function(){return"[object "+Be(this)+"]"};Me||ie(Object.prototype,"toString",sn,{unsafe:!0});var fn="process"==O(f.process),ln=String,pn=TypeError,dn=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,t={};try{(n=E(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(t,[]),r=t instanceof Array}catch(t){}return function(t,e){return It(t),function(t){if("object"==typeof t||P(t))return;throw pn("Can't set "+ln(t)+" as a prototype")}(e),r?n(t,e):t.__proto__=e,t}}():void 0),vn=Lt.f,hn=pt("toStringTag"),gn=pt("species"),yn=TypeError,mn=function(){},En=[],Rn=j("Reflect","construct"),Sn=/^\s*(?:class|function)\b/,On=E(Sn.exec),bn=!Sn.exec(mn),xn=function(t){if(!P(t))return!1;try{return Rn(mn,En,t),!0}catch(t){return!1}},Tn=function(t){if(!P(t))return!1;switch(Be(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return bn||!!On(Sn,qt(t))}catch(t){return!0}};Tn.sham=!0;var In,wn,_n,Pn,kn=!Rn||s(function(){var t;return xn(xn.call)||!xn(Object)||!xn(function(){t=!0})||t})?Tn:xn,jn=TypeError,Cn=pt("species"),Ln=function(t,e){var n,r=It(t).constructor;return void 0===r||null==(n=It(r)[Cn])?e:function(t){if(kn(t))return t;throw jn(V(t)+" is not a constructor")}(n)},An=Function.prototype,Nn=An.apply,Dn=An.call,Un="object"==typeof Reflect&&Reflect.apply||(i?Dn.bind(Nn):function(){return Dn.apply(Nn,arguments)}),Mn=E(E.bind),Gn=function(t,e){return Y(t),void 0===e?t:i?Mn(t,e):function(){return t.apply(e,arguments)}},Hn=j("document","documentElement"),Fn=E([].slice),Bn=TypeError,qn=/(?:ipad|iphone|ipod).*applewebkit/i.test(L),Vn=f.setImmediate,Kn=f.clearImmediate,Yn=f.process,$n=f.Dispatch,Wn=f.Function,zn=f.MessageChannel,Jn=f.String,Qn=0,Xn={},Zn="onreadystatechange";try{In=f.location}catch(t){}var tr=function(t){if(rt(Xn,t)){var e=Xn[t];delete Xn[t],e()}},er=function(t){return function(){tr(t)}},nr=function(t){tr(t.data)},rr=function(t){f.postMessage(Jn(t),In.protocol+"//"+In.host)};Vn&&Kn||(Vn=function(t){!function(t,e){if(t<e)throw Bn("Not enough arguments")}(arguments.length,1);var e=P(t)?t:Wn(t),n=Fn(arguments,1);return Xn[++Qn]=function(){Un(e,void 0,n)},wn(Qn),Qn},Kn=function(t){delete Xn[t]},fn?wn=function(t){Yn.nextTick(er(t))}:$n&&$n.now?wn=function(t){$n.now(er(t))}:zn&&!qn?(Pn=(_n=new zn).port2,_n.port1.onmessage=nr,wn=Gn(Pn.postMessage,Pn)):f.addEventListener&&P(f.postMessage)&&!f.importScripts&&In&&"file:"!==In.protocol&&!s(rr)?(wn=rr,f.addEventListener("message",nr,!1)):wn=Zn in Et("script")?function(t){Hn.appendChild(Et("script"))[Zn]=function(){Hn.removeChild(this),tr(t)}}:function(t){setTimeout(er(t),0)});var or,ir,ar,ur,cr,sr,fr,lr,pr={set:Vn,clear:Kn},dr=/ipad|iphone|ipod/i.test(L)&&void 0!==f.Pebble,vr=/web0s(?!.*chrome)/i.test(L),hr=Ot.f,gr=pr.set,yr=f.MutationObserver||f.WebKitMutationObserver,mr=f.document,Er=f.process,Rr=f.Promise,Sr=hr(f,"queueMicrotask"),Or=Sr&&Sr.value;Or||(or=function(){var t,e;for(fn&&(t=Er.domain)&&t.exit();ir;){e=ir.fn,ir=ir.next;try{e()}catch(t){throw ir?ur():ar=void 0,t}}ar=void 0,t&&t.enter()},ur=qn||fn||vr||!yr||!mr?!dr&&Rr&&Rr.resolve?((fr=Rr.resolve(void 0)).constructor=Rr,lr=Gn(fr.then,fr),function(){lr(or)}):fn?function(){Er.nextTick(or)}:(gr=Gn(gr,f),function(){gr(or)}):(cr=!0,sr=mr.createTextNode(""),new yr(or).observe(sr,{characterData:!0}),function(){sr.data=cr=!cr}));var br=Or||function(t){var e={fn:t,next:void 0};ar&&(ar.next=e),ir||(ir=e,ur()),ar=e},xr=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Tr=function(){this.head=null,this.tail=null};Tr.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var Ir,wr,_r,Pr,kr,jr,Cr,Lr,Ar=Tr,Nr=f.Promise,Dr="object"==typeof window&&"object"!=typeof Deno,Ur=(Nr&&Nr.prototype,pt("species")),Mr=!1,Gr=P(f.PromiseRejectionEvent),Hr={CONSTRUCTOR:Ce("Promise",function(){var t=qt(Nr),e=t!==String(Nr);if(!e&&66===M)return!0;if(51<=M&&/native code/.test(t))return!1;var n=new Nr(function(t){t(1)}),r=function(t){t(function(){},function(){})};return(n.constructor={})[Ur]=r,!(Mr=n.then(function(){})instanceof r)||!e&&Dr&&!Gr}),REJECTION_EVENT:Gr,SUBCLASSING:Mr},Fr=function(t){var n,r;this.promise=new t(function(t,e){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=t,r=e}),this.resolve=Y(n),this.reject=Y(r)},Br={f:function(t){return new Fr(t)}},qr=pr.set,Vr="Promise",Kr=Hr.CONSTRUCTOR,Yr=Hr.REJECTION_EVENT,$r=Hr.SUBCLASSING,Wr=re.getterFor(Vr),zr=re.set,Jr=Nr&&Nr.prototype,Qr=Nr,Xr=Jr,Zr=f.TypeError,to=f.document,eo=f.process,no=Br.f,ro=no,oo=!!(to&&to.createEvent&&f.dispatchEvent),io="unhandledrejection",ao=function(t){var e;return!(!k(t)||!P(e=t.then))&&e},uo=function(t,e){var n,r,o,i=e.value,a=1==e.state,u=a?t.ok:t.fail,c=t.resolve,s=t.reject,f=t.domain;try{u?(a||(2===e.rejection&&po(e),e.rejection=1),!0===u?n=i:(f&&f.enter(),n=u(i),f&&(f.exit(),o=!0)),n===t.promise?s(Zr("Promise-chain cycle")):(r=ao(n))?m(r,n,c,s):c(n)):s(i)}catch(t){f&&!o&&f.exit(),s(t)}},co=function(n,r){n.notified||(n.notified=!0,br(function(){for(var t,e=n.reactions;t=e.get();)uo(t,n);n.notified=!1,r&&!n.rejection&&fo(n)}))},so=function(t,e,n){var r,o;oo?((r=to.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),f.dispatchEvent(r)):r={promise:e,reason:n},!Yr&&(o=f["on"+t])?o(r):t===io&&function(t,e){var n=f.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},fo=function(r){m(qr,f,function(){var t,e=r.facade,n=r.value;if(lo(r)&&(t=xr(function(){fn?eo.emit("unhandledRejection",n,e):so(io,e,n)}),r.rejection=fn||lo(r)?2:1,t.error))throw t.value})},lo=function(t){return 1!==t.rejection&&!t.parent},po=function(e){m(qr,f,function(){var t=e.facade;fn?eo.emit("rejectionHandled",t):so("rejectionhandled",t,e.value)})},vo=function(e,n,r){return function(t){e(n,t,r)}},ho=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,co(t,!0))},go=function(n,t,e){if(!n.done){n.done=!0,e&&(n=e);try{if(n.facade===t)throw Zr("Promise can't be resolved itself");var r=ao(t);r?br(function(){var e={done:!1};try{m(r,t,vo(go,e,n),vo(ho,e,n))}catch(t){ho(e,t,n)}}):(n.value=t,n.state=1,co(n,!1))}catch(t){ho({done:!1},t,n)}}};if(Kr&&(Xr=(Qr=function(t){!function(t,e){if(C(e,t))return;throw yn("Incorrect invocation")}(this,Xr),Y(t),m(Ir,this);var e=Wr(this);try{t(vo(go,e),vo(ho,e))}catch(t){ho(e,t)}}).prototype,(Ir=function(t){zr(this,{type:Vr,done:!1,notified:!1,parent:!1,reactions:new Ar,rejection:!1,state:0,value:void 0})}).prototype=ie(Xr,"then",function(t,e){var n=Wr(this),r=no(Ln(this,Qr));return n.parent=!0,r.ok=!P(t)||t,r.fail=P(e)&&e,r.domain=fn?eo.domain:void 0,0==n.state?n.reactions.add(r):br(function(){uo(r,n)}),r.promise}),wr=function(){var t=new Ir,e=Wr(t);this.promise=t,this.resolve=vo(go,e),this.reject=vo(ho,e)},Br.f=no=function(t){return t===Qr||void 0===t?new wr(t):ro(t)},P(Nr)&&Jr!==Object.prototype)){_r=Jr.then,$r||ie(Jr,"then",function(t,e){var n=this;return new Qr(function(t,e){m(_r,n,t,e)}).then(t,e)},{unsafe:!0});try{delete Jr.constructor}catch(t){}dn&&dn(Jr,Xr)}Ae({global:!0,constructor:!0,wrap:!0,forced:Kr},{Promise:Qr}),jr=!(kr=Vr),(Pr=Qr)&&!jr&&(Pr=Pr.prototype),Pr&&!rt(Pr,hn)&&vn(Pr,hn,{configurable:!0,value:kr}),Cr=j(Vr),Lr=Lt.f,l&&Cr&&!Cr[gn]&&Lr(Cr,gn,{configurable:!0,get:function(){return this}});var yo={},mo=pt("iterator"),Eo=Array.prototype,Ro=pt("iterator"),So=function(t){if(null!=t)return $(t,Ro)||$(t,"@@iterator")||yo[Be(t)]},Oo=TypeError,bo=function(t,e,n){var r,o;It(t);try{if(!(r=$(t,"return"))){if("throw"===e)throw n;return n}r=m(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return It(r),n},xo=TypeError,To=function(t,e){this.stopped=t,this.result=e},Io=To.prototype,wo=function(t,e,n){var r,o,i,a,u,c,s,f,l=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),h=Gn(e,l),g=function(t){return r&&bo(r,"normal",t),new To(!0,t)},y=function(t){return p?(It(t),v?h(t[0],t[1],g):h(t[0],t[1])):v?h(t,g):h(t)};if(d)r=t;else{if(!(o=So(t)))throw xo(V(t)+" is not iterable");if(void 0!==(f=o)&&(yo.Array===f||Eo[mo]===f)){for(i=0,a=ve(t);i<a;i++)if((u=y(t[i]))&&C(Io,u))return u;return new To(!1)}r=function(t,e){var n=arguments.length<2?So(t):e;if(Y(n))return It(m(n,t));throw Oo(V(t)+" is not iterable")}(t,o)}for(c=r.next;!(s=m(c,r)).done;){try{u=y(s.value)}catch(t){bo(r,"throw",t)}if("object"==typeof u&&u&&C(Io,u))return u}return new To(!1)},_o=pt("iterator"),Po=!1;try{var ko=0,jo={next:function(){return{done:!!ko++}},return:function(){Po=!0}};jo[_o]=function(){return this},Array.from(jo,function(){throw 2})}catch(t){}var Co=Hr.CONSTRUCTOR||!function(t,e){if(!e&&!Po)return!1;var n=!1;try{var r={};r[_o]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}(function(t){Nr.all(t).then(void 0,function(){})});Ae({target:"Promise",stat:!0,forced:Co},{all:function(t){var u=this,e=Br.f(u),c=e.resolve,s=e.reject,n=xr(function(){var r=Y(u.resolve),o=[],i=0,a=1;wo(t,function(t){var e=i++,n=!1;a++,m(r,u,t).then(function(t){n||(n=!0,o[e]=t,--a||c(o))},s)}),--a||c(o)});return n.error&&s(n.value),e.promise}});var Lo=Hr.CONSTRUCTOR,Ao=Nr&&Nr.prototype;if(Ae({target:"Promise",proto:!0,forced:Lo,real:!0},{catch:function(t){return this.then(void 0,t)}}),P(Nr)){var No=j("Promise").prototype.catch;Ao.catch!==No&&ie(Ao,"catch",No,{unsafe:!0})}Ae({target:"Promise",stat:!0,forced:Co},{race:function(t){var n=this,r=Br.f(n),o=r.reject,e=xr(function(){var e=Y(n.resolve);wo(t,function(t){m(e,n,t).then(r.resolve,o)})});return e.error&&o(e.value),r.promise}}),Ae({target:"Promise",stat:!0,forced:Hr.CONSTRUCTOR},{reject:function(t){var e=Br.f(this);return m(e.reject,void 0,t),e.promise}});var Do=Hr.CONSTRUCTOR;j("Promise");Ae({target:"Promise",stat:!0,forced:Do},{resolve:function(t){return function(t,e){if(It(t),k(e)&&e.constructor===t)return e;var n=Br.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var Uo={SUCCESS:"SUCCESS",ERROR_PUBLISHABLE_KEY:"ERROR_PUBLISHABLE_KEY",ERROR_PERMISSIONS:"ERROR_PERMISSIONS",ERROR_LOCATION:"ERROR_LOCATION",ERROR_NETWORK:"ERROR_NETWORK",ERROR_BAD_REQUEST:"ERROR_BAD_REQUEST",ERROR_UNAUTHORIZED:"ERROR_UNAUTHORIZED",ERROR_PAYMENT_REQUIRED:"ERROR_PAYMENT_REQUIRED",ERROR_FORBIDDEN:"ERROR_FORBIDDEN",ERROR_NOT_FOUND:"ERROR_NOT_FOUND",ERROR_RATE_LIMIT:"ERROR_RATE_LIMIT",ERROR_SERVER:"ERROR_SERVER",ERROR_UNKNOWN:"ERROR_UNKNOWN"},Mo=function(){function t(){rn(this,t)}return an(t,null,[{key:"getCurrentPosition",value:function(){return new Promise(function(i,a){if(!navigator||!navigator.geolocation)return a(Uo.ERROR_LOCATION);navigator.geolocation.getCurrentPosition(function(t){if(!t||!t.coords)return a(Uo.ERROR_LOCATION);var e=t.coords,n=e.latitude,r=e.longitude,o=e.accuracy;return i({latitude:n,longitude:r,accuracy:o})},function(t){return t&&t.code&&1===t.code?a(Uo.ERROR_PERMISSIONS):a(Uo.ERROR_LOCATION)})})}}]),t}(),Go=Array.isArray||function(t){return"Array"==O(t)},Ho=TypeError,Fo=function(t){if(9007199254740991<t)throw Ho("Maximum allowed index exceeded");return t},Bo=function(t,e,n){var r=gt(e);r in t?Lt.f(t,r,d(0,n)):t[r]=n},qo=pt("species"),Vo=Array,Ko=function(t,e){return Go(n=t)&&(r=n.constructor,kn(r)&&(r===Vo||Go(r.prototype))?r=void 0:k(r)&&null===(r=r[qo])&&(r=void 0)),new(void 0===r?Vo:r)(0===e?0:e);var n,r},Yo=pt("species"),$o=function(e){return 51<=M||!s(function(){var t=[];return(t.constructor={})[Yo]=function(){return{foo:1}},1!==t[e](Boolean).foo})},Wo=pt("isConcatSpreadable"),zo=51<=M||!s(function(){var t=[];return t[Wo]=!1,t.concat()[0]!==t}),Jo=$o("concat"),Qo=function(t){if(!k(t))return!1;var e=t[Wo];return void 0!==e?!!e:Go(t)};Ae({target:"Array",proto:!0,arity:1,forced:!zo||!Jo},{concat:function(t){var e,n,r,o,i,a=et(this),u=Ko(a,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?a:arguments[e],Qo(i))for(o=ve(i),Fo(c+o),n=0;n<o;n++,c++)n in i&&Bo(u,c,i[n]);else Fo(c+1),Bo(u,c++,i);return u.length=c,u}});e(function(t){var e=function(a){var c,t=Object.prototype,f=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},o=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",r=e.toStringTag||"@@toStringTag";function u(t,e,n,r){var i,a,u,c,o=e&&e.prototype instanceof y?e:y,s=Object.create(o.prototype),f=new w(r||[]);return s._invoke=(i=t,a=n,u=f,c=p,function(t,e){if(c===v)throw new Error("Generator is already running");if(c===h){if("throw"===t)throw e;return P()}for(u.method=t,u.arg=e;;){var n=u.delegate;if(n){var r=x(n,u);if(r){if(r===g)continue;return r}}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if(c===p)throw c=h,u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);c=v;var o=l(i,a,u);if("normal"===o.type){if(c=u.done?h:d,o.arg===g)continue;return{value:o.arg,done:u.done}}"throw"===o.type&&(c=h,u.method="throw",u.arg=o.arg)}}),s}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}a.wrap=u;var p="suspendedStart",d="suspendedYield",v="executing",h="completed",g={};function y(){}function i(){}function s(){}var m={};m[o]=function(){return this};var E=Object.getPrototypeOf,R=E&&E(E(_([])));R&&R!==t&&f.call(R,o)&&(m=R);var S=s.prototype=y.prototype=Object.create(m);function O(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function b(c,s){var e;this._invoke=function(n,r){function t(){return new s(function(t,e){!function e(t,n,r,o){var i=l(c[t],c,n);if("throw"!==i.type){var a=i.arg,u=a.value;return u&&"object"==typeof u&&f.call(u,"__await")?s.resolve(u.__await).then(function(t){e("next",t,r,o)},function(t){e("throw",t,r,o)}):s.resolve(u).then(function(t){a.value=t,r(a)},function(t){return e("throw",t,r,o)})}o(i.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}}function x(t,e){var n=t.iterator[e.method];if(n===c){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=c,x(t,e),"throw"===e.method))return g;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=l(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,g;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=c),e.delegate=null,g):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function _(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(f.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=c,t.done=!0,t};return r.next=r}}return{next:P}}function P(){return{value:c,done:!0}}return i.prototype=S.constructor=s,s.constructor=i,s[r]=i.displayName="GeneratorFunction",a.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===i||"GeneratorFunction"===(e.displayName||e.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,r in t||(t[r]="GeneratorFunction")),t.prototype=Object.create(S),t},a.awrap=function(t){return{__await:t}},O(b.prototype),b.prototype[n]=function(){return this},a.AsyncIterator=b,a.async=function(t,e,n,r,o){void 0===o&&(o=Promise);var i=new b(u(t,e,n,r),o);return a.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},O(S),S[r]="Generator",S[o]=function(){return this},S.toString=function(){return"[object Generator]"},a.keys=function(n){var r=[];for(var t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=_,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=c,this.done=!1,this.delegate=null,this.method="next",this.arg=c,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&f.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=c)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return i.type="throw",i.arg=n,r.next=t,e&&(r.method="next",r.arg=c),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var o=this.tryEntries[e],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=f.call(o,"catchLoc"),u=f.call(o,"finallyLoc");if(a&&u){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&f.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:_(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=c),g}},a}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}});var Xo=E([].push),Zo=function(d){var v=1==d,h=2==d,g=3==d,y=4==d,m=6==d,E=7==d,R=5==d||m;return function(t,e,n,r){for(var o,i,a=et(t),u=T(a),c=Gn(e,n),s=ve(u),f=0,l=r||Ko,p=v?l(t,s):h||E?l(t,0):void 0;f<s;f++)if((R||f in u)&&(i=c(o=u[f],f,a),d))if(v)p[f]=i;else if(i)switch(d){case 3:return!0;case 5:return o;case 6:return f;case 2:Xo(p,o)}else switch(d){case 4:return!1;case 7:Xo(p,o)}return m?-1:g||y?y:p}},ti={forEach:Zo(0),map:Zo(1),filter:Zo(2),some:Zo(3),every:Zo(4),find:Zo(5),findIndex:Zo(6),filterReject:Zo(7)},ei=function(t,e){var n=[][t];return!!n&&s(function(){n.call(null,e||function(){return 1},1)})},ni=ti.forEach,ri=ei("forEach")?[].forEach:function(t){return ni(this,t,1<arguments.length?arguments[1]:void 0)};Ae({target:"Array",proto:!0,forced:[].forEach!=ri},{forEach:ri});var oi=E([].join),ii=T!=Object,ai=ei("join",",");Ae({target:"Array",proto:!0,forced:ii||!ai},{join:function(t){return oi(_(this),void 0===t?",":t)}});var ui=ti.map;Ae({target:"Array",proto:!0,forced:!$o("map")},{map:function(t){return ui(this,t,1<arguments.length?arguments[1]:void 0)}});var ci={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},si=Et("span").classList,fi=si&&si.constructor&&si.constructor.prototype,li=fi===Object.prototype?void 0:fi,pi=function(e){if(e&&e.forEach!==ri)try{At(e,"forEach",ri)}catch(t){e.forEach=ri}};for(var di in ci)ci[di]&&pi(f[di]&&f[di].prototype);pi(li);var vi,hi=function(){function t(){rn(this,t)}return an(t,null,[{key:"getStorage",value:function(){return window&&window.sessionStorage||void 0}},{key:"setItem",value:function(t,e){this.getStorage()&&sessionStorage.setItem(t,e)}},{key:"getItem",value:function(t){var e=this.getStorage();if(!e)return null;var n=e.getItem(t);return null!=n?n:null}},{key:"removeItem",value:function(t){var e=this.getStorage();if(!e)return null;e.removeItem(t)}},{key:"clear",value:function(){var t=this.getStorage();if(!t)return null;t.clear()}},{key:"DESCRIPTION",get:function(){return"radar-description"}},{key:"DEVICE_ID",get:function(){return"radar-deviceId"}},{key:"DEVICE_TYPE",get:function(){return"radar-deviceType"}},{key:"METADATA",get:function(){return"radar-metadata"}},{key:"HOST",get:function(){return"radar-host"}},{key:"PUBLISHABLE_KEY",get:function(){return"radar-publishableKey"}},{key:"USER_ID",get:function(){return"radar-userId"}},{key:"INSTALL_ID",get:function(){return"radar-installId"}},{key:"TRIP_OPTIONS",get:function(){return"radar-trip-options"}},{key:"CUSTOM_HEADERS",get:function(){return"radar-custom-headers"}},{key:"BASE_API_PATH",get:function(){return"radar-base-api-path"}}]),t}(),gi=function(){function t(){rn(this,t)}return an(t,null,[{key:"getHost",value:function(){return hi.getItem(hi.HOST)||"https://api.radar.io"}}]),t}(),yi="3.5.0-beta",mi=function(){function t(){rn(this,t)}return an(t,null,[{key:"request",value:function(l,p,d){return new Promise(function(e,n){var r=new XMLHttpRequest,t=hi.getItem(hi.BASE_API_PATH)||"v1",o="".concat(gi.getHost(),"/").concat(t,"/").concat(p),i={};if(Object.keys(d).forEach(function(t){var e=d[t];void 0!==e&&(i[t]=e)}),"GET"===l){var a=Object.keys(i).map(function(t){return"".concat(t,"=").concat(encodeURIComponent(i[t]))});if(0<a.length){var u=a.join("&");o="".concat(o,"?").concat(u)}i=void 0}r.open(l,o,!0);var c=hi.getItem(hi.PUBLISHABLE_KEY);if(c){r.setRequestHeader("Authorization",c),r.setRequestHeader("Content-Type","application/json"),r.setRequestHeader("X-Radar-Device-Type","Web"),r.setRequestHeader("X-Radar-SDK-Version",yi);var s=hi.getItem(hi.CUSTOM_HEADERS);if(s){var f=JSON.parse(s);Object.keys(f).forEach(function(t){r.setRequestHeader(t,f[t])})}r.onload=function(){var t;try{t=JSON.parse(r.response)}catch(t){n(Uo.ERROR_SERVER)}200==r.status?e(t):400===r.status?n({httpError:Uo.ERROR_BAD_REQUEST,response:t}):401===r.status?n({httpError:Uo.ERROR_UNAUTHORIZED,response:t}):402===r.status?n({httpError:Uo.ERROR_PAYMENT_REQUIRED,response:t}):403===r.status?n({httpError:Uo.ERROR_FORBIDDEN,response:t}):404===r.status?n({httpError:Uo.ERROR_NOT_FOUND,response:t}):429===r.status?n({httpError:Uo.ERROR_RATE_LIMIT,response:t}):500<=r.status&&r.status<600?n({httpError:Uo.ERROR_SERVER,response:t}):n({httpError:Uo.ERROR_UNKNOWN,response:t})},r.onerror=function(){n(Uo.ERROR_SERVER)},r.timeout=function(){n(Uo.ERROR_NETWORK)},r.send(JSON.stringify(i))}else n(Uo.ERROR_PUBLISHABLE_KEY)})}}]),t}(),Ei=function(){function t(){rn(this,t)}var e;return an(t,null,[{key:"getContext",value:(e=nn(regeneratorRuntime.mark(function t(){var e,n,r,o,i,a=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((e=0<a.length&&void 0!==a[0]?a[0]:{}).latitude&&e.longitude){t.next=5;break}return t.next=4,Mo.getCurrentPosition();case 4:e=t.sent;case 5:return r=(n=e).latitude,o=n.longitude,i={coordinates:"".concat(r,",").concat(o)},t.abrupt("return",mi.request("GET","context",i));case 8:case"end":return t.stop()}},t)})),function(){return e.apply(this,arguments)})}]),t}(),Ri=function(){function t(){rn(this,t)}var e,n,r;return an(t,null,[{key:"geocode",value:(r=nn(regeneratorRuntime.mark(function t(){var e,n,r,o,i=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=0<i.length&&void 0!==i[0]?i[0]:{},n=e.query,r=e.layers,o=e.country,t.abrupt("return",mi.request("GET","geocode/forward",{query:n,layers:r,country:o}));case 3:case"end":return t.stop()}},t)})),function(){return r.apply(this,arguments)})},{key:"reverseGeocode",value:(n=nn(regeneratorRuntime.mark(function t(){var e,n,r,o,i,a,u,c,s=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((e=0<s.length&&void 0!==s[0]?s[0]:{}).latitude&&e.longitude){t.next=9;break}return t.next=4,Mo.getCurrentPosition();case 4:n=t.sent,r=n.latitude,o=n.longitude,e.latitude=r,e.longitude=o;case 9:return i=e.latitude,a=e.longitude,u=e.layers,c={coordinates:"".concat(i,",").concat(a),layers:u},t.abrupt("return",mi.request("GET","geocode/reverse",c));case 12:case"end":return t.stop()}},t)})),function(){return n.apply(this,arguments)})},{key:"ipGeocode",value:(e=nn(regeneratorRuntime.mark(function t(){var e,n,r=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=0<r.length&&void 0!==r[0]?r[0]:{},n=e.ip,t.abrupt("return",mi.request("GET","geocode/ip",{ip:n}));case 3:case"end":return t.stop()}},t)})),function(){return e.apply(this,arguments)})}]),t}(),Si=function(){function t(){rn(this,t)}var e,n;return an(t,null,[{key:"getDistanceToDestination",value:(n=nn(regeneratorRuntime.mark(function t(){var e,n,r,o,i,a,u,c,s,f,l=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((e=0<l.length&&void 0!==l[0]?l[0]:{}).origin){t.next=8;break}return t.next=4,Mo.getCurrentPosition();case 4:n=t.sent,r=n.latitude,o=n.longitude,e.origin={latitude:r,longitude:o};case 8:return i=e.origin,a=e.destination,u=e.modes,c=e.units,s=e.geometry,i="".concat(i.latitude,",").concat(i.longitude),a&&(a="".concat(a.latitude,",").concat(a.longitude)),u&&(u=u.join(",")),f={origin:i,destination:a,modes:u,units:c,geometry:s},t.abrupt("return",mi.request("GET","route/distance",f));case 14:case"end":return t.stop()}},t)})),function(){return n.apply(this,arguments)})},{key:"getMatrixDistances",value:(e=nn(regeneratorRuntime.mark(function t(){var e,n,r,o,i,a,u,c,s,f,l=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((e=0<l.length&&void 0!==l[0]?l[0]:{}).origins){t.next=8;break}return t.next=4,Mo.getCurrentPosition();case 4:n=t.sent,r=n.latitude,o=n.longitude,e.origins=[{latitude:r,longitude:o}];case 8:return i=e.origins,a=e.destinations,u=e.mode,c=e.units,s=e.geometry,i=(i||[]).map(function(t){return"".concat(t.latitude,",").concat(t.longitude)}).join("|"),a=(a||[]).map(function(t){return"".concat(t.latitude,",").concat(t.longitude)}).join("|"),f={origins:i,destinations:a,mode:u,units:c,geometry:s},t.abrupt("return",mi.request("GET","route/matrix",f));case 13:case"end":return t.stop()}},t)})),function(){return e.apply(this,arguments)})}]),t}(),Oi=function(){function t(){rn(this,t)}var e,n,r;return an(t,null,[{key:"searchPlaces",value:(r=nn(regeneratorRuntime.mark(function t(){var e,n,r,o,i,a,u,c,s,f,l,p=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((e=0<p.length&&void 0!==p[0]?p[0]:{}).near){t.next=8;break}return t.next=4,Mo.getCurrentPosition();case 4:n=t.sent,r=n.latitude,o=n.longitude,e.near={latitude:r,longitude:o};case 8:return i=e.near,a=e.radius,u=e.chains,c=e.categories,s=e.groups,f=e.limit,i="".concat(i.latitude,",").concat(i.longitude),u&&(u=u.join(",")),c&&(c=c.join(",")),s&&(s=s.join(",")),l={near:i,radius:a,chains:u,categories:c,groups:s,limit:f},t.abrupt("return",mi.request("GET","search/places",l));case 15:case"end":return t.stop()}},t)})),function(){return r.apply(this,arguments)})},{key:"searchGeofences",value:(n=nn(regeneratorRuntime.mark(function t(){var e,n,r,o,i,a,u,c,s,f,l=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((e=0<l.length&&void 0!==l[0]?l[0]:{}).near){t.next=8;break}return t.next=4,Mo.getCurrentPosition();case 4:n=t.sent,r=n.latitude,o=n.longitude,e.near={latitude:r,longitude:o};case 8:return i=e.near,a=e.radius,u=e.tags,c=e.metadata,s=e.limit,i="".concat(i.latitude,",").concat(i.longitude),u&&(u=u.join(",")),f={near:i,radius:a,tags:u,limit:s},c&&Object.keys(c).forEach(function(t){var e="metadata[".concat(t,"]"),n=c[t];f[e]=n}),t.abrupt("return",mi.request("GET","search/geofences",f));case 14:case"end":return t.stop()}},t)})),function(){return n.apply(this,arguments)})},{key:"autocomplete",value:(e=nn(regeneratorRuntime.mark(function t(){var e,n,r,o,i,a,u,c,s,f=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=0<f.length&&void 0!==f[0]?f[0]:{},o=r.query,i=r.near,a=r.limit,u=r.layers,c=r.country,(null===(e=i)||void 0===e?void 0:e.latitude)&&(null===(n=i)||void 0===n?void 0:n.longitude)&&(i="".concat(i.latitude,",").concat(i.longitude)),s={query:o,near:i,limit:a,layers:u,country:c},t.abrupt("return",mi.request("GET","search/autocomplete",s));case 5:case"end":return t.stop()}},t)})),function(){return e.apply(this,arguments)})}]),t}(),bi=function(){var t=It(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},xi=f.RegExp,Ti=s(function(){var t=xi("a","y");return t.lastIndex=2,null!=t.exec("abcd")}),Ii=Ti||s(function(){return!xi("a","y").sticky}),wi={BROKEN_CARET:Ti||s(function(){var t=xi("^r","gy");return t.lastIndex=2,null!=t.exec("str")}),MISSED_STICKY:Ii,UNSUPPORTED_Y:Ti},_i={f:l&&!bt?Object.defineProperties:function(t,e){It(t);for(var n,r=_(e),o=Ne(e),i=o.length,a=0;a<i;)Lt.f(t,n=o[a++],r[n]);return t}},Pi="prototype",ki="script",ji=$t("IE_PROTO"),Ci=function(){},Li=function(t){return"<script>"+t+"</"+ki+">"},Ai=function(t){t.write(Li("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ni=function(){try{vi=new ActiveXObject("htmlfile")}catch(t){}var t,e;Ni="undefined"!=typeof document?document.domain&&vi?Ai(vi):((e=Et("iframe")).style.display="none",Hn.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Li("document.F=Object")),t.close(),t.F):Ai(vi);for(var n=Ee.length;n--;)delete Ni[Pi][Ee[n]];return Ni()};Wt[ji]=!0;var Di,Ui,Mi=Object.create||function(t,e){var n;return null!==t?(Ci[Pi]=It(t),n=new Ci,Ci[Pi]=null,n[ji]=t):n=Ni(),void 0===e?n:_i.f(n,e)},Gi=f.RegExp,Hi=s(function(){var t=Gi(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}),Fi=f.RegExp,Bi=s(function(){var t=Fi("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}),qi=re.get,Vi=Z("native-string-replace",String.prototype.replace),Ki=RegExp.prototype.exec,Yi=Ki,$i=E("".charAt),Wi=E("".indexOf),zi=E("".replace),Ji=E("".slice),Qi=(Ui=/b*/g,m(Ki,Di=/a/,"a"),m(Ki,Ui,"a"),0!==Di.lastIndex||0!==Ui.lastIndex),Xi=wi.BROKEN_CARET,Zi=void 0!==/()??/.exec("")[1];(Qi||Zi||Xi||Hi||Bi)&&(Yi=function(t){var e,n,r,o,i,a,u,c=this,s=qi(c),f=Ve(t),l=s.raw;if(l)return l.lastIndex=c.lastIndex,e=m(Yi,l,f),c.lastIndex=l.lastIndex,e;var p=s.groups,d=Xi&&c.sticky,v=m(bi,c),h=c.source,g=0,y=f;if(d&&(v=zi(v,"y",""),-1===Wi(v,"g")&&(v+="g"),y=Ji(f,c.lastIndex),0<c.lastIndex&&(!c.multiline||c.multiline&&"\n"!==$i(f,c.lastIndex-1))&&(h="(?: "+h+")",y=" "+y,g++),n=new RegExp("^(?:"+h+")",v)),Zi&&(n=new RegExp("^"+h+"$(?!\\s)",v)),Qi&&(r=c.lastIndex),o=m(Ki,d?n:c,y),d?o?(o.input=Ji(o.input,g),o[0]=Ji(o[0],g),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Qi&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),Zi&&o&&1<o.length&&m(Vi,o[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)}),o&&p)for(o.groups=a=Mi(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var ta=Yi;Ae({target:"RegExp",proto:!0,forced:/./.exec!==ta},{exec:ta});var ea=RegExp.prototype,na=Mt.PROPER,ra="toString",oa=RegExp.prototype[ra],ia=s(function(){return"/a/b"!=oa.call({source:"a",flags:"b"})}),aa=na&&oa.name!=ra;(ia||aa)&&ie(RegExp.prototype,ra,function(){var t,e,n=It(this);return"/"+Ve(n.source)+"/"+Ve(void 0!==(e=(t=n).flags)||"flags"in ea||rt(t,"flags")||!C(ea,t)?e:m(bi,t))},{unsafe:!0});var ua=pt("species"),ca=RegExp.prototype,sa=E("".charAt),fa=E("".charCodeAt),la=E("".slice),pa=function(u){return function(t,e){var n,r,o=Ve(w(t)),i=se(e),a=o.length;return i<0||a<=i?u?"":void 0:(n=fa(o,i))<55296||56319<n||i+1===a||(r=fa(o,i+1))<56320||57343<r?u?sa(o,i):n:u?la(o,i,i+2):r-56320+(n-55296<<10)+65536}},da={codeAt:pa(!1),charAt:pa(!0)}.charAt,va=Math.floor,ha=E("".charAt),ga=E("".replace),ya=E("".slice),ma=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ea=/\$([$&'`]|\d{1,2})/g,Ra=function(i,a,u,c,s,t){var f=u+i.length,l=c.length,e=Ea;return void 0!==s&&(s=et(s),e=ma),ga(t,e,function(t,e){var n;switch(ha(e,0)){case"$":return"$";case"&":return i;case"`":return ya(a,0,u);case"'":return ya(a,f);case"<":n=s[ya(e,1,-1)];break;default:var r=+e;if(0===r)return t;if(l<r){var o=va(r/10);return 0===o?t:o<=l?void 0===c[o-1]?ha(e,1):c[o-1]+ha(e,1):t}n=c[r-1]}return void 0===n?"":n})},Sa=TypeError,Oa=function(t,e){var n=t.exec;if(P(n)){var r=m(n,t,e);return null!==r&&It(r),r}if("RegExp"===O(t))return m(ta,t,e);throw Sa("RegExp#exec called on incompatible receiver")},ba=pt("replace"),xa=Math.max,Ta=Math.min,Ia=E([].concat),wa=E([].push),_a=E("".indexOf),Pa=E("".slice),ka="$0"==="a".replace(/./,"$0"),ja=!!/./[ba]&&""===/./[ba]("a","$0");!function(n,t,e,r){var o=pt(n),u=!s(function(){var t={};return t[o]=function(){return 7},7!=""[n](t)}),i=u&&!s(function(){var t=!1,e=/a/;return"split"===n&&((e={constructor:{}}).constructor[ua]=function(){return e},e.flags="",e[o]=/./[o]),e.exec=function(){return t=!0,null},e[o](""),!t});if(!u||!i||e){var c=E(/./[o]),a=t(o,""[n],function(t,e,n,r,o){var i=E(t),a=e.exec;return a===ta||a===ca.exec?u&&!o?{done:!0,value:c(e,n,r)}:{done:!0,value:i(n,e,r)}:{done:!1}});ie(String.prototype,n,a[0]),ie(ca,o,a[1])}r&&At(ca[o],"sham",!0)}("replace",function(t,b,x){var T=ja?"$":"$0";return[function(t,e){var n=w(this),r=null==t?void 0:$(t,ba);return r?m(r,t,n,e):m(b,Ve(n),t,e)},function(t,e){var n=It(this),r=Ve(t);if("string"==typeof e&&-1===_a(e,T)&&-1===_a(e,"$<")){var o=x(b,n,r,e);if(o.done)return o.value}var i=P(e);i||(e=Ve(e));var a=n.global;if(a){var u=n.unicode;n.lastIndex=0}for(var c,s,f=[];;){var l=Oa(n,r);if(null===l)break;if(wa(f,l),!a)break;""===Ve(l[0])&&(n.lastIndex=(c=r,(s=de(n.lastIndex))+(u?da(c,s).length:1)))}for(var p,d="",v=0,h=0;h<f.length;h++){for(var g=Ve((l=f[h])[0]),y=xa(Ta(se(l.index),r.length),0),m=[],E=1;E<l.length;E++)wa(m,void 0===(p=l[E])?p:String(p));var R=l.groups;if(i){var S=Ia([g],m,y,r);void 0!==R&&wa(S,R);var O=Ve(Un(e,void 0,S))}else O=Ra(g,r,y,m,R,e);v<=y&&(d+=Pa(r,v,y)+O,v=y+g.length)}return d+Pa(r,v)}]},!!s(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!ka||ja);var Ca=function(){function t(){rn(this,t)}return an(t,null,[{key:"getId",value:function(){var t=hi.getItem(hi.DEVICE_ID);if(t)return t;var e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)});return hi.setItem(hi.DEVICE_ID,e),e}}]),t}(),La=function(){function t(){rn(this,t)}var e;return an(t,null,[{key:"trackOnce",value:(e=nn(regeneratorRuntime.mark(function t(){var e,n,r,o,i,a,u,c,s,f,l,p,d,v=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e=0<v.length&&void 0!==v[0]?v[0]:{},n=e.latitude,r=e.longitude,o=e.accuracy,n&&r){t.next=9;break}return t.next=5,Mo.getCurrentPosition();case 5:i=t.sent,n=i.latitude,r=i.longitude,o=i.accuracy;case 9:return a=Ca.getId(),u=hi.getItem(hi.USER_ID),c=hi.getItem(hi.INSTALL_ID)||a,s=hi.getItem(hi.DEVICE_TYPE)||"Web",f=hi.getItem(hi.DESCRIPTION),(l=hi.getItem(hi.METADATA))&&(l=JSON.parse(l)),p=cn({},e,{accuracy:o,description:f,deviceId:a,deviceType:s,foreground:!0,installId:c,latitude:n,longitude:r,metadata:l,sdkVersion:yi,stopped:!0,userId:u}),t.next=19,mi.request("POST","track",p);case 19:return(d=t.sent).location={latitude:n,longitude:r,accuracy:o},t.abrupt("return",d);case 22:case"end":return t.stop()}},t)})),function(){return e.apply(this,arguments)})}]),t}(),Aa=function(){function t(){rn(this,t)}var e,n;return an(t,null,[{key:"startTrip",value:(n=nn(regeneratorRuntime.mark(function t(){var e,n,r,o,i,a,u,c,s,f=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=0<f.length&&void 0!==f[0]?f[0]:{},n=hi.getItem(hi.USER_ID),r=e.externalId,o=e.destinationGeofenceTag,i=e.destinationGeofenceExternalId,a=e.mode,u=e.metadata,c=e.approachingThreshold,s={userId:n,externalId:r,destinationGeofenceTag:o,destinationGeofenceExternalId:i,mode:a,metadata:u,approachingThreshold:c},t.abrupt("return",mi.request("POST","trips",s));case 5:case"end":return t.stop()}},t)})),function(){return n.apply(this,arguments)})},{key:"updateTrip",value:(e=nn(regeneratorRuntime.mark(function t(){var e,n,r,o,i,a,u,c,s,f,l=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=0<l.length&&void 0!==l[0]?l[0]:{},n=1<l.length?l[1]:void 0,r=hi.getItem(hi.USER_ID),o=e.externalId,i=e.destinationGeofenceTag,a=e.destinationGeofenceExternalId,u=e.mode,c=e.metadata,s=e.approachingThreshold,f={userId:r,externalId:o,status:n,destinationGeofenceTag:i,destinationGeofenceExternalId:a,mode:u,metadata:c,approachingThreshold:s},t.abrupt("return",mi.request("PATCH","trips/".concat(o,"/update"),f));case 6:case"end":return t.stop()}},t)})),function(){return e.apply(this,arguments)})}]),t}(),Na="completed",Da="canceled",Ua=function(){},Ma=function(e){return function(t){"string"!=typeof t?"object"===tn(t)&&t.httpError?e(t.httpError,{},t.response):e(Uo.ERROR_UNKNOWN,{}):e(t,{})}};return function(){function r(){rn(this,r)}return an(r,null,[{key:"initialize",value:function(t){t||console.error('Radar "initialize" was called without a publishable key'),hi.setItem(hi.PUBLISHABLE_KEY,t)}},{key:"setHost",value:function(t,e){hi.setItem(hi.HOST,t),hi.setItem(hi.BASE_API_PATH,e)}},{key:"setUserId",value:function(t){t?hi.setItem(hi.USER_ID,String(t).trim()):hi.removeItem(hi.USER_ID)}},{key:"setDeviceId",value:function(t,e){t?hi.setItem(hi.DEVICE_ID,String(t).trim()):hi.removeItem(hi.DEVICE_ID),e?hi.setItem(hi.INSTALL_ID,String(e).trim()):hi.removeItem(hi.INSTALL_ID)}},{key:"setDeviceType",value:function(t){t?hi.setItem(hi.DEVICE_TYPE,String(t).trim()):hi.removeItem(hi.DEVICE_TYPE)}},{key:"setDescription",value:function(t){t?hi.setItem(hi.DESCRIPTION,String(t).trim()):hi.removeItem(hi.DESCRIPTION)}},{key:"setMetadata",value:function(t){t?hi.setItem(hi.METADATA,JSON.stringify(t)):hi.removeItem(hi.METADATA)}},{key:"setRequestHeaders",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};Object.keys(t).length?hi.setItem(hi.CUSTOM_HEADERS,JSON.stringify(t)):hi.removeItem(hi.CUSTOM_HEADERS)}},{key:"getLocation",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Ua;Mo.getCurrentPosition().then(function(t){e(null,{location:t,status:Uo.SUCCESS})}).catch(Ma(e))}},{key:"trackOnce",value:function(t){var e,n,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Ua;e="function"==typeof t?t:(n=t,r),La.trackOnce(n).then(function(t){e(null,{location:t.location,user:t.user,events:t.events,status:Uo.SUCCESS},t)}).catch(Ma(e))}},{key:"getContext",value:function(t){var e,n,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Ua;e="function"==typeof t?t:(n=t,r),Ei.getContext(n).then(function(t){e(null,{context:t.context,status:Uo.SUCCESS},t)}).catch(Ma(e))}},{key:"startTrip",value:function(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Ua;Aa.startTrip(e).then(function(t){r.setTripOptions(e),n(null,{trip:t.trip,events:t.events||[],status:Uo.SUCCESS},t)}).catch(Ma(n))}},{key:"updateTrip",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:Ua;Aa.updateTrip(e,t).then(function(t){r.setTripOptions(e),n(null,{trip:t.trip,events:t.events,status:Uo.SUCCESS},t)}).catch(Ma(n))}},{key:"completeTrip",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Ua,t=r.getTripOptions();Aa.updateTrip(t,Na).then(function(t){r.clearTripOptions(),e(null,{trip:t.trip,events:t.events,status:Uo.SUCCESS},t)}).catch(Ma(e))}},{key:"cancelTrip",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Ua,t=r.getTripOptions();Aa.updateTrip(t,Da).then(function(t){r.clearTripOptions(),e(null,{trip:t.trip,events:t.events,status:Uo.SUCCESS},t)}).catch(Ma(e))}},{key:"setTripOptions",value:function(t){t?hi.setItem(hi.TRIP_OPTIONS,JSON.stringify(t)):r.clearTripOptions()}},{key:"clearTripOptions",value:function(){hi.removeItem(hi.TRIP_OPTIONS)}},{key:"getTripOptions",value:function(){var t=hi.getItem(hi.TRIP_OPTIONS);return t&&(t=JSON.parse(t)),t}},{key:"searchPlaces",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Ua;Oi.searchPlaces(t).then(function(t){e(null,{places:t.places,status:Uo.SUCCESS},t)}).catch(Ma(e))}},{key:"searchGeofences",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Ua;Oi.searchGeofences(t).then(function(t){e(null,{geofences:t.geofences,status:Uo.SUCCESS},t)}).catch(Ma(e))}},{key:"autocomplete",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Ua;Oi.autocomplete(t).then(function(t){e(null,{addresses:t.addresses,status:Uo.SUCCESS},t)}).catch(Ma(e))}},{key:"geocode",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Ua;Ri.geocode(t).then(function(t){e(null,{addresses:t.addresses,staus:Uo.SUCCESS},t)}).catch(Ma(e))}},{key:"reverseGeocode",value:function(t){var e,n,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Ua;e="function"==typeof t?t:(n=t,r),Ri.reverseGeocode(n).then(function(t){e(null,{addresses:t.addresses,status:Uo.SUCCESS},t)}).catch(Ma(e))}},{key:"ipGeocode",value:function(t){var e,n,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Ua;"function"==typeof t?e=t:"object"===tn(t)&&(n=t,e=r),Ri.ipGeocode(n).then(function(t){e(null,{address:t.address,status:Uo.SUCCESS},t)}).catch(Ma(e))}},{key:"getDistance",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Ua;Si.getDistanceToDestination(t).then(function(t){e(null,{routes:t.routes,status:Uo.SUCCESS},t)}).catch(Ma(e))}},{key:"getMatrix",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Ua;Si.getMatrixDistances(t).then(function(t){e(null,{origins:t.origins,destinations:t.destinations,matrix:t.matrix,status:Uo.SUCCESS},t)}).catch(Ma(e))}},{key:"VERSION",get:function(){return yi}},{key:"STATUS",get:function(){return Uo}}]),r}()}();
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Web JavaScript SDK for Radar, the location context platform",
4
4
  "homepage": "https://radar.io",
5
5
  "license": "Apache-2.0",
6
- "version": "3.4.0-beta",
6
+ "version": "3.5.0-beta",
7
7
  "main": "dist/index.js",
8
8
  "files": [
9
9
  "dist",
@@ -13,7 +13,7 @@ class Context {
13
13
  coordinates: `${latitude},${longitude}`,
14
14
  };
15
15
 
16
- return Http.request('GET', `v1/context`, params);
16
+ return Http.request('GET', `context`, params);
17
17
  }
18
18
  }
19
19
 
@@ -5,7 +5,7 @@ class Geocoding {
5
5
  static async geocode(geocodeOptions={}) {
6
6
  const { query, layers, country } = geocodeOptions;
7
7
 
8
- return Http.request('GET', 'v1/geocode/forward', { query, layers, country });
8
+ return Http.request('GET', 'geocode/forward', { query, layers, country });
9
9
  }
10
10
 
11
11
  static async reverseGeocode(geocodeOptions={}) {
@@ -22,13 +22,13 @@ class Geocoding {
22
22
  layers,
23
23
  };
24
24
 
25
- return Http.request('GET', 'v1/geocode/reverse', params);
25
+ return Http.request('GET', 'geocode/reverse', params);
26
26
  }
27
27
 
28
28
  static async ipGeocode(geocodeOptions={}) {
29
29
  const { ip } = geocodeOptions;
30
30
 
31
- return Http.request('GET', 'v1/geocode/ip', { ip });
31
+ return Http.request('GET', 'geocode/ip', { ip });
32
32
  }
33
33
  }
34
34
 
@@ -33,7 +33,7 @@ class Routing {
33
33
  geometry,
34
34
  };
35
35
 
36
- return Http.request('GET', 'v1/route/distance', params);
36
+ return Http.request('GET', 'route/distance', params);
37
37
  }
38
38
 
39
39
  static async getMatrixDistances(routingOptions={}) {
@@ -66,7 +66,7 @@ class Routing {
66
66
  geometry,
67
67
  };
68
68
 
69
- return Http.request('GET', 'v1/route/matrix', params);
69
+ return Http.request('GET', 'route/matrix', params);
70
70
  }
71
71
  }
72
72
 
package/src/api/search.js CHANGED
@@ -38,7 +38,7 @@ class Search {
38
38
  limit,
39
39
  };
40
40
 
41
- return Http.request('GET', 'v1/search/places', params);
41
+ return Http.request('GET', 'search/places', params);
42
42
  }
43
43
 
44
44
  static async searchGeofences(searchOptions={}) {
@@ -76,7 +76,7 @@ class Search {
76
76
  });
77
77
  }
78
78
 
79
- return Http.request('GET', 'v1/search/geofences', params);
79
+ return Http.request('GET', 'search/geofences', params);
80
80
  }
81
81
 
82
82
 
@@ -103,7 +103,7 @@ class Search {
103
103
  country,
104
104
  };
105
105
 
106
- return Http.request('GET', 'v1/search/autocomplete', params);
106
+ return Http.request('GET', 'search/autocomplete', params);
107
107
  }
108
108
  }
109
109
 
package/src/api/track.js CHANGED
@@ -44,10 +44,7 @@ class Track {
44
44
  userId,
45
45
  };
46
46
 
47
- const basePath = Storage.getItem(Storage.BASE_API_PATH) || 'v1';
48
- const trackEndpoint = `${basePath}/track`;
49
-
50
- const response = await Http.request('POST', trackEndpoint, body);
47
+ const response = await Http.request('POST', 'track', body);
51
48
  response.location = { latitude, longitude, accuracy };
52
49
 
53
50
  return response;
package/src/api/trips.js CHANGED
@@ -23,8 +23,7 @@ class Trips {
23
23
  approachingThreshold,
24
24
  };
25
25
 
26
- const basePath = Storage.getItem(Storage.BASE_API_PATH) || 'v1';
27
- return Http.request('POST', `${basePath}/trips`, params);
26
+ return Http.request('POST', `trips`, params);
28
27
  }
29
28
 
30
29
  static async updateTrip(tripOptions={}, status) {
@@ -49,8 +48,7 @@ class Trips {
49
48
  approachingThreshold,
50
49
  };
51
50
 
52
- const basePath = Storage.getItem(Storage.BASE_API_PATH) || 'v1';
53
- return Http.request('PATCH', `${basePath}/trips/${externalId}/update`, params);
51
+ return Http.request('PATCH', `trips/${externalId}/update`, params);
54
52
  }
55
53
  }
56
54
 
package/src/http.js CHANGED
@@ -10,8 +10,9 @@ class Http {
10
10
  return new Promise((resolve, reject) => {
11
11
 
12
12
  const xhr = new XMLHttpRequest();
13
+ const basePath = Storage.getItem(Storage.BASE_API_PATH) || 'v1';
13
14
 
14
- let url = `${API_HOST.getHost()}/${path}`;
15
+ let url = `${API_HOST.getHost()}/${basePath}/${path}`;
15
16
 
16
17
  // remove undefined values
17
18
  let body = {};
package/src/version.js CHANGED
@@ -1 +1 @@
1
- export default '3.4.0-beta';
1
+ export default '3.5.0-beta';