@aws-amplify/geo 1.3.12-size-improvement.21 → 1.3.12

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.
@@ -28568,260 +28568,6 @@ class QuickLRU {
28568
28568
  module.exports = QuickLRU;
28569
28569
 
28570
28570
 
28571
- /***/ }),
28572
-
28573
- /***/ "../../node_modules/tslib/tslib.es6.js":
28574
- /*!********************************************************!*\
28575
- !*** /root/amplify-js/node_modules/tslib/tslib.es6.js ***!
28576
- \********************************************************/
28577
- /*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet */
28578
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
28579
-
28580
- "use strict";
28581
- __webpack_require__.r(__webpack_exports__);
28582
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; });
28583
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; });
28584
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; });
28585
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; });
28586
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; });
28587
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; });
28588
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; });
28589
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; });
28590
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__createBinding", function() { return __createBinding; });
28591
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; });
28592
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; });
28593
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; });
28594
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; });
28595
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArrays", function() { return __spreadArrays; });
28596
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; });
28597
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; });
28598
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; });
28599
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; });
28600
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; });
28601
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; });
28602
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
28603
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldGet", function() { return __classPrivateFieldGet; });
28604
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldSet", function() { return __classPrivateFieldSet; });
28605
- /*! *****************************************************************************
28606
- Copyright (c) Microsoft Corporation.
28607
-
28608
- Permission to use, copy, modify, and/or distribute this software for any
28609
- purpose with or without fee is hereby granted.
28610
-
28611
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
28612
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
28613
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
28614
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
28615
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
28616
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
28617
- PERFORMANCE OF THIS SOFTWARE.
28618
- ***************************************************************************** */
28619
- /* global Reflect, Promise */
28620
-
28621
- var extendStatics = function(d, b) {
28622
- extendStatics = Object.setPrototypeOf ||
28623
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
28624
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
28625
- return extendStatics(d, b);
28626
- };
28627
-
28628
- function __extends(d, b) {
28629
- extendStatics(d, b);
28630
- function __() { this.constructor = d; }
28631
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28632
- }
28633
-
28634
- var __assign = function() {
28635
- __assign = Object.assign || function __assign(t) {
28636
- for (var s, i = 1, n = arguments.length; i < n; i++) {
28637
- s = arguments[i];
28638
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
28639
- }
28640
- return t;
28641
- }
28642
- return __assign.apply(this, arguments);
28643
- }
28644
-
28645
- function __rest(s, e) {
28646
- var t = {};
28647
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28648
- t[p] = s[p];
28649
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
28650
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
28651
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
28652
- t[p[i]] = s[p[i]];
28653
- }
28654
- return t;
28655
- }
28656
-
28657
- function __decorate(decorators, target, key, desc) {
28658
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
28659
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
28660
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
28661
- return c > 3 && r && Object.defineProperty(target, key, r), r;
28662
- }
28663
-
28664
- function __param(paramIndex, decorator) {
28665
- return function (target, key) { decorator(target, key, paramIndex); }
28666
- }
28667
-
28668
- function __metadata(metadataKey, metadataValue) {
28669
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
28670
- }
28671
-
28672
- function __awaiter(thisArg, _arguments, P, generator) {
28673
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
28674
- return new (P || (P = Promise))(function (resolve, reject) {
28675
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
28676
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
28677
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
28678
- step((generator = generator.apply(thisArg, _arguments || [])).next());
28679
- });
28680
- }
28681
-
28682
- function __generator(thisArg, body) {
28683
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28684
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
28685
- function verb(n) { return function (v) { return step([n, v]); }; }
28686
- function step(op) {
28687
- if (f) throw new TypeError("Generator is already executing.");
28688
- while (_) try {
28689
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
28690
- if (y = 0, t) op = [op[0] & 2, t.value];
28691
- switch (op[0]) {
28692
- case 0: case 1: t = op; break;
28693
- case 4: _.label++; return { value: op[1], done: false };
28694
- case 5: _.label++; y = op[1]; op = [0]; continue;
28695
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
28696
- default:
28697
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
28698
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28699
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28700
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
28701
- if (t[2]) _.ops.pop();
28702
- _.trys.pop(); continue;
28703
- }
28704
- op = body.call(thisArg, _);
28705
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
28706
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
28707
- }
28708
- }
28709
-
28710
- function __createBinding(o, m, k, k2) {
28711
- if (k2 === undefined) k2 = k;
28712
- o[k2] = m[k];
28713
- }
28714
-
28715
- function __exportStar(m, exports) {
28716
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
28717
- }
28718
-
28719
- function __values(o) {
28720
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
28721
- if (m) return m.call(o);
28722
- if (o && typeof o.length === "number") return {
28723
- next: function () {
28724
- if (o && i >= o.length) o = void 0;
28725
- return { value: o && o[i++], done: !o };
28726
- }
28727
- };
28728
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
28729
- }
28730
-
28731
- function __read(o, n) {
28732
- var m = typeof Symbol === "function" && o[Symbol.iterator];
28733
- if (!m) return o;
28734
- var i = m.call(o), r, ar = [], e;
28735
- try {
28736
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
28737
- }
28738
- catch (error) { e = { error: error }; }
28739
- finally {
28740
- try {
28741
- if (r && !r.done && (m = i["return"])) m.call(i);
28742
- }
28743
- finally { if (e) throw e.error; }
28744
- }
28745
- return ar;
28746
- }
28747
-
28748
- function __spread() {
28749
- for (var ar = [], i = 0; i < arguments.length; i++)
28750
- ar = ar.concat(__read(arguments[i]));
28751
- return ar;
28752
- }
28753
-
28754
- function __spreadArrays() {
28755
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
28756
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
28757
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
28758
- r[k] = a[j];
28759
- return r;
28760
- };
28761
-
28762
- function __await(v) {
28763
- return this instanceof __await ? (this.v = v, this) : new __await(v);
28764
- }
28765
-
28766
- function __asyncGenerator(thisArg, _arguments, generator) {
28767
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
28768
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
28769
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
28770
- function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
28771
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
28772
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
28773
- function fulfill(value) { resume("next", value); }
28774
- function reject(value) { resume("throw", value); }
28775
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
28776
- }
28777
-
28778
- function __asyncDelegator(o) {
28779
- var i, p;
28780
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
28781
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
28782
- }
28783
-
28784
- function __asyncValues(o) {
28785
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
28786
- var m = o[Symbol.asyncIterator], i;
28787
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
28788
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
28789
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
28790
- }
28791
-
28792
- function __makeTemplateObject(cooked, raw) {
28793
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
28794
- return cooked;
28795
- };
28796
-
28797
- function __importStar(mod) {
28798
- if (mod && mod.__esModule) return mod;
28799
- var result = {};
28800
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
28801
- result.default = mod;
28802
- return result;
28803
- }
28804
-
28805
- function __importDefault(mod) {
28806
- return (mod && mod.__esModule) ? mod : { default: mod };
28807
- }
28808
-
28809
- function __classPrivateFieldGet(receiver, privateMap) {
28810
- if (!privateMap.has(receiver)) {
28811
- throw new TypeError("attempted to get private field on non-instance");
28812
- }
28813
- return privateMap.get(receiver);
28814
- }
28815
-
28816
- function __classPrivateFieldSet(receiver, privateMap, value) {
28817
- if (!privateMap.has(receiver)) {
28818
- throw new TypeError("attempted to set private field on non-instance");
28819
- }
28820
- privateMap.set(receiver, value);
28821
- return value;
28822
- }
28823
-
28824
-
28825
28571
  /***/ }),
28826
28572
 
28827
28573
  /***/ "../../node_modules/webpack/buildin/global.js":
@@ -28866,12 +28612,179 @@ module.exports = g;
28866
28612
  __webpack_require__.r(__webpack_exports__);
28867
28613
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GeoClass", function() { return GeoClass; });
28868
28614
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Geo", function() { return Geo; });
28869
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
28870
- /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
28871
- /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__);
28872
- /* harmony import */ var _Providers_AmazonLocationServiceProvider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Providers/AmazonLocationServiceProvider */ "./lib-esm/Providers/AmazonLocationServiceProvider.js");
28873
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util */ "./lib-esm/util.js");
28615
+ /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
28616
+ /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__);
28617
+ /* harmony import */ var _Providers_AmazonLocationServiceProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Providers/AmazonLocationServiceProvider */ "./lib-esm/Providers/AmazonLocationServiceProvider.js");
28618
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./util */ "./lib-esm/util.js");
28619
+ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
28620
+ function adopt(value) {
28621
+ return value instanceof P ? value : new P(function (resolve) {
28622
+ resolve(value);
28623
+ });
28624
+ }
28625
+
28626
+ return new (P || (P = Promise))(function (resolve, reject) {
28627
+ function fulfilled(value) {
28628
+ try {
28629
+ step(generator.next(value));
28630
+ } catch (e) {
28631
+ reject(e);
28632
+ }
28633
+ }
28634
+
28635
+ function rejected(value) {
28636
+ try {
28637
+ step(generator["throw"](value));
28638
+ } catch (e) {
28639
+ reject(e);
28640
+ }
28641
+ }
28642
+
28643
+ function step(result) {
28644
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
28645
+ }
28646
+
28647
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
28648
+ });
28649
+ };
28650
+
28651
+ var __generator = undefined && undefined.__generator || function (thisArg, body) {
28652
+ var _ = {
28653
+ label: 0,
28654
+ sent: function sent() {
28655
+ if (t[0] & 1) throw t[1];
28656
+ return t[1];
28657
+ },
28658
+ trys: [],
28659
+ ops: []
28660
+ },
28661
+ f,
28662
+ y,
28663
+ t,
28664
+ g;
28665
+ return g = {
28666
+ next: verb(0),
28667
+ "throw": verb(1),
28668
+ "return": verb(2)
28669
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
28670
+ return this;
28671
+ }), g;
28672
+
28673
+ function verb(n) {
28674
+ return function (v) {
28675
+ return step([n, v]);
28676
+ };
28677
+ }
28678
+
28679
+ function step(op) {
28680
+ if (f) throw new TypeError("Generator is already executing.");
28681
+
28682
+ while (_) {
28683
+ try {
28684
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
28685
+ if (y = 0, t) op = [op[0] & 2, t.value];
28686
+
28687
+ switch (op[0]) {
28688
+ case 0:
28689
+ case 1:
28690
+ t = op;
28691
+ break;
28692
+
28693
+ case 4:
28694
+ _.label++;
28695
+ return {
28696
+ value: op[1],
28697
+ done: false
28698
+ };
28699
+
28700
+ case 5:
28701
+ _.label++;
28702
+ y = op[1];
28703
+ op = [0];
28704
+ continue;
28705
+
28706
+ case 7:
28707
+ op = _.ops.pop();
28708
+
28709
+ _.trys.pop();
28710
+
28711
+ continue;
28712
+
28713
+ default:
28714
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
28715
+ _ = 0;
28716
+ continue;
28717
+ }
28718
+
28719
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
28720
+ _.label = op[1];
28721
+ break;
28722
+ }
28723
+
28724
+ if (op[0] === 6 && _.label < t[1]) {
28725
+ _.label = t[1];
28726
+ t = op;
28727
+ break;
28728
+ }
28729
+
28730
+ if (t && _.label < t[2]) {
28731
+ _.label = t[2];
28732
+
28733
+ _.ops.push(op);
28734
+
28735
+ break;
28736
+ }
28737
+
28738
+ if (t[2]) _.ops.pop();
28739
+
28740
+ _.trys.pop();
28741
+
28742
+ continue;
28743
+ }
28744
+
28745
+ op = body.call(thisArg, _);
28746
+ } catch (e) {
28747
+ op = [6, e];
28748
+ y = 0;
28749
+ } finally {
28750
+ f = t = 0;
28751
+ }
28752
+ }
28753
+
28754
+ if (op[0] & 5) throw op[1];
28755
+ return {
28756
+ value: op[0] ? op[1] : void 0,
28757
+ done: true
28758
+ };
28759
+ }
28760
+ };
28761
+
28762
+ var __read = undefined && undefined.__read || function (o, n) {
28763
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
28764
+ if (!m) return o;
28765
+ var i = m.call(o),
28766
+ r,
28767
+ ar = [],
28768
+ e;
28874
28769
 
28770
+ try {
28771
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
28772
+ ar.push(r.value);
28773
+ }
28774
+ } catch (error) {
28775
+ e = {
28776
+ error: error
28777
+ };
28778
+ } finally {
28779
+ try {
28780
+ if (r && !r.done && (m = i["return"])) m.call(i);
28781
+ } finally {
28782
+ if (e) throw e.error;
28783
+ }
28784
+ }
28785
+
28786
+ return ar;
28787
+ };
28875
28788
  /*
28876
28789
  * Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
28877
28790
  *
@@ -28888,7 +28801,8 @@ __webpack_require__.r(__webpack_exports__);
28888
28801
 
28889
28802
 
28890
28803
 
28891
- var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["ConsoleLogger"]('Geo');
28804
+
28805
+ var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('Geo');
28892
28806
  var DEFAULT_PROVIDER = 'AmazonLocationService';
28893
28807
 
28894
28808
  var GeoClass =
@@ -28962,7 +28876,7 @@ function () {
28962
28876
 
28963
28877
  logger.debug('configure Geo');
28964
28878
  if (!config) return this._config;
28965
- var amplifyConfig = Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["parseMobileHubConfig"])(config);
28879
+ var amplifyConfig = Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["parseMobileHubConfig"])(config);
28966
28880
  this._config = Object.assign({}, this._config, amplifyConfig.Geo, config);
28967
28881
 
28968
28882
  this._pluggables.forEach(function (pluggable) {
@@ -28970,7 +28884,7 @@ function () {
28970
28884
  });
28971
28885
 
28972
28886
  if (this._pluggables.length === 0) {
28973
- this.addPluggable(new _Providers_AmazonLocationServiceProvider__WEBPACK_IMPORTED_MODULE_2__["AmazonLocationServiceProvider"]());
28887
+ this.addPluggable(new _Providers_AmazonLocationServiceProvider__WEBPACK_IMPORTED_MODULE_1__["AmazonLocationServiceProvider"]());
28974
28888
  }
28975
28889
 
28976
28890
  return this._config;
@@ -29014,10 +28928,10 @@ function () {
29014
28928
 
29015
28929
 
29016
28930
  GeoClass.prototype.searchByText = function (text, options) {
29017
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
28931
+ return __awaiter(this, void 0, void 0, function () {
29018
28932
  var _a, providerName, prov, error_1;
29019
28933
 
29020
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
28934
+ return __generator(this, function (_b) {
29021
28935
  switch (_b.label) {
29022
28936
  case 0:
29023
28937
  _a = (options || {}).providerName, providerName = _a === void 0 ? DEFAULT_PROVIDER : _a;
@@ -29058,21 +28972,21 @@ function () {
29058
28972
 
29059
28973
 
29060
28974
  GeoClass.prototype.searchByCoordinates = function (coordinates, options) {
29061
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
28975
+ return __awaiter(this, void 0, void 0, function () {
29062
28976
  var _a, providerName, prov, _b, lng, lat, error_2;
29063
28977
 
29064
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
28978
+ return __generator(this, function (_c) {
29065
28979
  switch (_c.label) {
29066
28980
  case 0:
29067
28981
  _a = (options || {}).providerName, providerName = _a === void 0 ? DEFAULT_PROVIDER : _a;
29068
28982
  prov = this.getPluggable(providerName);
29069
- _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(coordinates, 2), lng = _b[0], lat = _b[1];
28983
+ _b = __read(coordinates, 2), lng = _b[0], lat = _b[1];
29070
28984
  _c.label = 1;
29071
28985
 
29072
28986
  case 1:
29073
28987
  _c.trys.push([1, 3,, 4]);
29074
28988
 
29075
- Object(_util__WEBPACK_IMPORTED_MODULE_3__["validateCoordinates"])(lng, lat);
28989
+ Object(_util__WEBPACK_IMPORTED_MODULE_2__["validateCoordinates"])(lng, lat);
29076
28990
  return [4
29077
28991
  /*yield*/
29078
28992
  , prov.searchByCoordinates(coordinates, options)];
@@ -29106,10 +29020,10 @@ function () {
29106
29020
 
29107
29021
 
29108
29022
  GeoClass.prototype.saveGeofences = function (geofences, options) {
29109
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
29023
+ return __awaiter(this, void 0, void 0, function () {
29110
29024
  var _a, providerName, prov, geofenceInputArray, error_3;
29111
29025
 
29112
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
29026
+ return __generator(this, function (_b) {
29113
29027
  switch (_b.label) {
29114
29028
  case 0:
29115
29029
  _a = (options || {}).providerName, providerName = _a === void 0 ? DEFAULT_PROVIDER : _a;
@@ -29157,10 +29071,10 @@ function () {
29157
29071
 
29158
29072
 
29159
29073
  GeoClass.prototype.getGeofence = function (geofenceId, options) {
29160
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
29074
+ return __awaiter(this, void 0, void 0, function () {
29161
29075
  var _a, providerName, prov, error_4;
29162
29076
 
29163
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
29077
+ return __generator(this, function (_b) {
29164
29078
  switch (_b.label) {
29165
29079
  case 0:
29166
29080
  _a = (options || {}).providerName, providerName = _a === void 0 ? DEFAULT_PROVIDER : _a;
@@ -29202,10 +29116,10 @@ function () {
29202
29116
 
29203
29117
 
29204
29118
  GeoClass.prototype.listGeofences = function (options) {
29205
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
29119
+ return __awaiter(this, void 0, void 0, function () {
29206
29120
  var _a, providerName, prov, error_5;
29207
29121
 
29208
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
29122
+ return __generator(this, function (_b) {
29209
29123
  switch (_b.label) {
29210
29124
  case 0:
29211
29125
  _a = (options || {}).providerName, providerName = _a === void 0 ? DEFAULT_PROVIDER : _a;
@@ -29248,10 +29162,10 @@ function () {
29248
29162
 
29249
29163
 
29250
29164
  GeoClass.prototype.deleteGeofences = function (geofenceIds, options) {
29251
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
29165
+ return __awaiter(this, void 0, void 0, function () {
29252
29166
  var _a, providerName, prov, geofenceIdsInputArray, error_6;
29253
29167
 
29254
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
29168
+ return __generator(this, function (_b) {
29255
29169
  switch (_b.label) {
29256
29170
  case 0:
29257
29171
  _a = (options || {}).providerName, providerName = _a === void 0 ? DEFAULT_PROVIDER : _a;
@@ -29297,7 +29211,7 @@ function () {
29297
29211
 
29298
29212
 
29299
29213
  var Geo = new GeoClass();
29300
- _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["Amplify"].register(Geo);
29214
+ _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Amplify"].register(Geo);
29301
29215
 
29302
29216
  /***/ }),
29303
29217
 
@@ -29311,14 +29225,189 @@ _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["Amplify"].register(Geo);
29311
29225
  "use strict";
29312
29226
  __webpack_require__.r(__webpack_exports__);
29313
29227
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmazonLocationServiceProvider", function() { return AmazonLocationServiceProvider; });
29314
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
29315
- /* harmony import */ var camelcase_keys__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! camelcase-keys */ "../../node_modules/camelcase-keys/index.js");
29316
- /* harmony import */ var camelcase_keys__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(camelcase_keys__WEBPACK_IMPORTED_MODULE_1__);
29317
- /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
29318
- /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__);
29319
- /* harmony import */ var _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/client-location */ "../../node_modules/@aws-sdk/client-location/dist-es/index.js");
29320
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util */ "./lib-esm/util.js");
29228
+ /* harmony import */ var camelcase_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! camelcase-keys */ "../../node_modules/camelcase-keys/index.js");
29229
+ /* harmony import */ var camelcase_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(camelcase_keys__WEBPACK_IMPORTED_MODULE_0__);
29230
+ /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
29231
+ /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__);
29232
+ /* harmony import */ var _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/client-location */ "../../node_modules/@aws-sdk/client-location/dist-es/index.js");
29233
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util */ "./lib-esm/util.js");
29234
+ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
29235
+ function adopt(value) {
29236
+ return value instanceof P ? value : new P(function (resolve) {
29237
+ resolve(value);
29238
+ });
29239
+ }
29240
+
29241
+ return new (P || (P = Promise))(function (resolve, reject) {
29242
+ function fulfilled(value) {
29243
+ try {
29244
+ step(generator.next(value));
29245
+ } catch (e) {
29246
+ reject(e);
29247
+ }
29248
+ }
29249
+
29250
+ function rejected(value) {
29251
+ try {
29252
+ step(generator["throw"](value));
29253
+ } catch (e) {
29254
+ reject(e);
29255
+ }
29256
+ }
29257
+
29258
+ function step(result) {
29259
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
29260
+ }
29261
+
29262
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
29263
+ });
29264
+ };
29265
+
29266
+ var __generator = undefined && undefined.__generator || function (thisArg, body) {
29267
+ var _ = {
29268
+ label: 0,
29269
+ sent: function sent() {
29270
+ if (t[0] & 1) throw t[1];
29271
+ return t[1];
29272
+ },
29273
+ trys: [],
29274
+ ops: []
29275
+ },
29276
+ f,
29277
+ y,
29278
+ t,
29279
+ g;
29280
+ return g = {
29281
+ next: verb(0),
29282
+ "throw": verb(1),
29283
+ "return": verb(2)
29284
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
29285
+ return this;
29286
+ }), g;
29287
+
29288
+ function verb(n) {
29289
+ return function (v) {
29290
+ return step([n, v]);
29291
+ };
29292
+ }
29293
+
29294
+ function step(op) {
29295
+ if (f) throw new TypeError("Generator is already executing.");
29296
+
29297
+ while (_) {
29298
+ try {
29299
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29300
+ if (y = 0, t) op = [op[0] & 2, t.value];
29301
+
29302
+ switch (op[0]) {
29303
+ case 0:
29304
+ case 1:
29305
+ t = op;
29306
+ break;
29307
+
29308
+ case 4:
29309
+ _.label++;
29310
+ return {
29311
+ value: op[1],
29312
+ done: false
29313
+ };
29314
+
29315
+ case 5:
29316
+ _.label++;
29317
+ y = op[1];
29318
+ op = [0];
29319
+ continue;
29320
+
29321
+ case 7:
29322
+ op = _.ops.pop();
29323
+
29324
+ _.trys.pop();
29325
+
29326
+ continue;
29327
+
29328
+ default:
29329
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
29330
+ _ = 0;
29331
+ continue;
29332
+ }
29333
+
29334
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
29335
+ _.label = op[1];
29336
+ break;
29337
+ }
29338
+
29339
+ if (op[0] === 6 && _.label < t[1]) {
29340
+ _.label = t[1];
29341
+ t = op;
29342
+ break;
29343
+ }
29344
+
29345
+ if (t && _.label < t[2]) {
29346
+ _.label = t[2];
29347
+
29348
+ _.ops.push(op);
29349
+
29350
+ break;
29351
+ }
29352
+
29353
+ if (t[2]) _.ops.pop();
29354
+
29355
+ _.trys.pop();
29356
+
29357
+ continue;
29358
+ }
29359
+
29360
+ op = body.call(thisArg, _);
29361
+ } catch (e) {
29362
+ op = [6, e];
29363
+ y = 0;
29364
+ } finally {
29365
+ f = t = 0;
29366
+ }
29367
+ }
29368
+
29369
+ if (op[0] & 5) throw op[1];
29370
+ return {
29371
+ value: op[0] ? op[1] : void 0,
29372
+ done: true
29373
+ };
29374
+ }
29375
+ };
29376
+
29377
+ var __read = undefined && undefined.__read || function (o, n) {
29378
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
29379
+ if (!m) return o;
29380
+ var i = m.call(o),
29381
+ r,
29382
+ ar = [],
29383
+ e;
29321
29384
 
29385
+ try {
29386
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
29387
+ ar.push(r.value);
29388
+ }
29389
+ } catch (error) {
29390
+ e = {
29391
+ error: error
29392
+ };
29393
+ } finally {
29394
+ try {
29395
+ if (r && !r.done && (m = i["return"])) m.call(i);
29396
+ } finally {
29397
+ if (e) throw e.error;
29398
+ }
29399
+ }
29400
+
29401
+ return ar;
29402
+ };
29403
+
29404
+ var __spread = undefined && undefined.__spread || function () {
29405
+ for (var ar = [], i = 0; i < arguments.length; i++) {
29406
+ ar = ar.concat(__read(arguments[i]));
29407
+ }
29408
+
29409
+ return ar;
29410
+ };
29322
29411
  /*
29323
29412
  * Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
29324
29413
  *
@@ -29336,7 +29425,8 @@ __webpack_require__.r(__webpack_exports__);
29336
29425
 
29337
29426
 
29338
29427
 
29339
- var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__["ConsoleLogger"]('AmazonLocationServiceProvider');
29428
+
29429
+ var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["ConsoleLogger"]('AmazonLocationServiceProvider');
29340
29430
 
29341
29431
  var AmazonLocationServiceProvider =
29342
29432
  /** @class */
@@ -29431,9 +29521,9 @@ function () {
29431
29521
 
29432
29522
 
29433
29523
  AmazonLocationServiceProvider.prototype.searchByText = function (text, options) {
29434
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
29524
+ return __awaiter(this, void 0, void 0, function () {
29435
29525
  var credentialsOK, locationServiceInput, client, command, response, error_1, PascalResults, results;
29436
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
29526
+ return __generator(this, function (_a) {
29437
29527
  switch (_a.label) {
29438
29528
  case 0:
29439
29529
  return [4
@@ -29478,12 +29568,12 @@ function () {
29478
29568
  }
29479
29569
  }
29480
29570
 
29481
- client = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_3__["LocationClient"]({
29571
+ client = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_2__["LocationClient"]({
29482
29572
  credentials: this._config.credentials,
29483
29573
  region: this._config.region,
29484
- customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__["getAmplifyUserAgent"])()
29574
+ customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["getAmplifyUserAgent"])()
29485
29575
  });
29486
- command = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_3__["SearchPlaceIndexForTextCommand"](locationServiceInput);
29576
+ command = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_2__["SearchPlaceIndexForTextCommand"](locationServiceInput);
29487
29577
  _a.label = 2;
29488
29578
 
29489
29579
  case 2:
@@ -29508,7 +29598,7 @@ function () {
29508
29598
  PascalResults = response.Results.map(function (result) {
29509
29599
  return result.Place;
29510
29600
  });
29511
- results = camelcase_keys__WEBPACK_IMPORTED_MODULE_1___default()(PascalResults, {
29601
+ results = camelcase_keys__WEBPACK_IMPORTED_MODULE_0___default()(PascalResults, {
29512
29602
  deep: true
29513
29603
  });
29514
29604
  return [2
@@ -29527,9 +29617,9 @@ function () {
29527
29617
 
29528
29618
 
29529
29619
  AmazonLocationServiceProvider.prototype.searchByCoordinates = function (coordinates, options) {
29530
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
29620
+ return __awaiter(this, void 0, void 0, function () {
29531
29621
  var credentialsOK, locationServiceInput, client, command, response, error_2, PascalResults, results;
29532
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
29622
+ return __generator(this, function (_a) {
29533
29623
  switch (_a.label) {
29534
29624
  case 0:
29535
29625
  return [4
@@ -29558,12 +29648,12 @@ function () {
29558
29648
  locationServiceInput.MaxResults = options.maxResults;
29559
29649
  }
29560
29650
 
29561
- client = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_3__["LocationClient"]({
29651
+ client = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_2__["LocationClient"]({
29562
29652
  credentials: this._config.credentials,
29563
29653
  region: this._config.region,
29564
- customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__["getAmplifyUserAgent"])()
29654
+ customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["getAmplifyUserAgent"])()
29565
29655
  });
29566
- command = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_3__["SearchPlaceIndexForPositionCommand"](locationServiceInput);
29656
+ command = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_2__["SearchPlaceIndexForPositionCommand"](locationServiceInput);
29567
29657
  _a.label = 2;
29568
29658
 
29569
29659
  case 2:
@@ -29588,7 +29678,7 @@ function () {
29588
29678
  PascalResults = response.Results.map(function (result) {
29589
29679
  return result.Place;
29590
29680
  });
29591
- results = camelcase_keys__WEBPACK_IMPORTED_MODULE_1___default()(PascalResults[0], {
29681
+ results = camelcase_keys__WEBPACK_IMPORTED_MODULE_0___default()(PascalResults[0], {
29592
29682
  deep: true
29593
29683
  });
29594
29684
  return [2
@@ -29609,12 +29699,12 @@ function () {
29609
29699
 
29610
29700
 
29611
29701
  AmazonLocationServiceProvider.prototype.saveGeofences = function (geofences, options) {
29612
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
29702
+ return __awaiter(this, void 0, void 0, function () {
29613
29703
  var credentialsOK, PascalGeofences, results, geofenceBatches, apiLimit;
29614
29704
 
29615
29705
  var _this = this;
29616
29706
 
29617
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
29707
+ return __generator(this, function (_a) {
29618
29708
  switch (_a.label) {
29619
29709
  case 0:
29620
29710
  if (geofences.length < 1) {
@@ -29640,7 +29730,7 @@ function () {
29640
29730
  throw error;
29641
29731
  }
29642
29732
 
29643
- Object(_util__WEBPACK_IMPORTED_MODULE_4__["validateGeofencesInput"])(geofences);
29733
+ Object(_util__WEBPACK_IMPORTED_MODULE_3__["validateGeofencesInput"])(geofences);
29644
29734
  PascalGeofences = geofences.map(function (_a) {
29645
29735
  var geofenceId = _a.geofenceId,
29646
29736
  polygon = _a.geometry.polygon;
@@ -29665,9 +29755,9 @@ function () {
29665
29755
  return [4
29666
29756
  /*yield*/
29667
29757
  , Promise.all(geofenceBatches.map(function (batch) {
29668
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this, void 0, void 0, function () {
29758
+ return __awaiter(_this, void 0, void 0, function () {
29669
29759
  var response, error_3;
29670
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
29760
+ return __generator(this, function (_a) {
29671
29761
  switch (_a.label) {
29672
29762
  case 0:
29673
29763
  _a.trys.push([0, 2,, 3]);
@@ -29751,9 +29841,9 @@ function () {
29751
29841
 
29752
29842
 
29753
29843
  AmazonLocationServiceProvider.prototype.getGeofence = function (geofenceId, options) {
29754
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
29844
+ return __awaiter(this, void 0, void 0, function () {
29755
29845
  var credentialsOK, client, commandInput, command, response, error_4, GeofenceId, CreateTime, UpdateTime, Status, Geometry, geofence;
29756
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
29846
+ return __generator(this, function (_a) {
29757
29847
  switch (_a.label) {
29758
29848
  case 0:
29759
29849
  return [4
@@ -29775,17 +29865,17 @@ function () {
29775
29865
  throw error;
29776
29866
  }
29777
29867
 
29778
- Object(_util__WEBPACK_IMPORTED_MODULE_4__["validateGeofenceId"])(geofenceId);
29779
- client = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_3__["LocationClient"]({
29868
+ Object(_util__WEBPACK_IMPORTED_MODULE_3__["validateGeofenceId"])(geofenceId);
29869
+ client = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_2__["LocationClient"]({
29780
29870
  credentials: this._config.credentials,
29781
29871
  region: this._config.region,
29782
- customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__["getAmplifyUserAgent"])()
29872
+ customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["getAmplifyUserAgent"])()
29783
29873
  });
29784
29874
  commandInput = {
29785
29875
  GeofenceId: geofenceId,
29786
29876
  CollectionName: (options === null || options === void 0 ? void 0 : options.collectionName) || this._config.geofenceCollections["default"]
29787
29877
  };
29788
- command = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_3__["GetGeofenceCommand"](commandInput);
29878
+ command = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_2__["GetGeofenceCommand"](commandInput);
29789
29879
  _a.label = 2;
29790
29880
 
29791
29881
  case 2:
@@ -29834,9 +29924,9 @@ function () {
29834
29924
 
29835
29925
 
29836
29926
  AmazonLocationServiceProvider.prototype.listGeofences = function (options) {
29837
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
29927
+ return __awaiter(this, void 0, void 0, function () {
29838
29928
  var credentialsOK, client, listGeofencesInput, command, response, error_5, NextToken, Entries, results;
29839
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
29929
+ return __generator(this, function (_a) {
29840
29930
  switch (_a.label) {
29841
29931
  case 0:
29842
29932
  return [4
@@ -29858,16 +29948,16 @@ function () {
29858
29948
  throw error;
29859
29949
  }
29860
29950
 
29861
- client = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_3__["LocationClient"]({
29951
+ client = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_2__["LocationClient"]({
29862
29952
  credentials: this._config.credentials,
29863
29953
  region: this._config.region,
29864
- customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__["getAmplifyUserAgent"])()
29954
+ customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["getAmplifyUserAgent"])()
29865
29955
  });
29866
29956
  listGeofencesInput = {
29867
29957
  NextToken: options === null || options === void 0 ? void 0 : options.nextToken,
29868
29958
  CollectionName: (options === null || options === void 0 ? void 0 : options.collectionName) || this._config.geofenceCollections["default"]
29869
29959
  };
29870
- command = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_3__["ListGeofencesCommand"](listGeofencesInput);
29960
+ command = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_2__["ListGeofencesCommand"](listGeofencesInput);
29871
29961
  _a.label = 2;
29872
29962
 
29873
29963
  case 2:
@@ -29927,12 +30017,12 @@ function () {
29927
30017
 
29928
30018
 
29929
30019
  AmazonLocationServiceProvider.prototype.deleteGeofences = function (geofenceIds, options) {
29930
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
30020
+ return __awaiter(this, void 0, void 0, function () {
29931
30021
  var credentialsOK, badGeofenceIds, results, geofenceIdBatches, count;
29932
30022
 
29933
30023
  var _this = this;
29934
30024
 
29935
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
30025
+ return __generator(this, function (_a) {
29936
30026
  switch (_a.label) {
29937
30027
  case 0:
29938
30028
  if (geofenceIds.length < 1) {
@@ -29954,7 +30044,7 @@ function () {
29954
30044
 
29955
30045
  badGeofenceIds = geofenceIds.filter(function (geofenceId) {
29956
30046
  try {
29957
- Object(_util__WEBPACK_IMPORTED_MODULE_4__["validateGeofenceId"])(geofenceId);
30047
+ Object(_util__WEBPACK_IMPORTED_MODULE_3__["validateGeofenceId"])(geofenceId);
29958
30048
  } catch (error) {
29959
30049
  return true;
29960
30050
  }
@@ -29978,12 +30068,12 @@ function () {
29978
30068
  return [4
29979
30069
  /*yield*/
29980
30070
  , Promise.all(geofenceIdBatches.map(function (batch) {
29981
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this, void 0, void 0, function () {
30071
+ return __awaiter(_this, void 0, void 0, function () {
29982
30072
  var response, error_6, badGeofenceIds;
29983
30073
 
29984
30074
  var _a;
29985
30075
 
29986
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
30076
+ return __generator(this, function (_b) {
29987
30077
  switch (_b.label) {
29988
30078
  case 0:
29989
30079
  _b.trys.push([0, 2,, 3]);
@@ -30021,7 +30111,7 @@ function () {
30021
30111
  return geofenceId;
30022
30112
  });
30023
30113
 
30024
- (_a = results.successes).push.apply(_a, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])(batch.filter(function (Id) {
30114
+ (_a = results.successes).push.apply(_a, __spread(batch.filter(function (Id) {
30025
30115
  return !badGeofenceIds.includes(Id);
30026
30116
  })));
30027
30117
 
@@ -30049,23 +30139,23 @@ function () {
30049
30139
 
30050
30140
 
30051
30141
  AmazonLocationServiceProvider.prototype._ensureCredentials = function () {
30052
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
30142
+ return __awaiter(this, void 0, void 0, function () {
30053
30143
  var credentials, cred, error_7;
30054
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
30144
+ return __generator(this, function (_a) {
30055
30145
  switch (_a.label) {
30056
30146
  case 0:
30057
30147
  _a.trys.push([0, 2,, 3]);
30058
30148
 
30059
30149
  return [4
30060
30150
  /*yield*/
30061
- , _aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__["Credentials"].get()];
30151
+ , _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["Credentials"].get()];
30062
30152
 
30063
30153
  case 1:
30064
30154
  credentials = _a.sent();
30065
30155
  if (!credentials) return [2
30066
30156
  /*return*/
30067
30157
  , false];
30068
- cred = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__["Credentials"].shear(credentials);
30158
+ cred = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["Credentials"].shear(credentials);
30069
30159
  logger.debug('Set credentials for storage. Credentials are:', cred);
30070
30160
  this._config.credentials = cred;
30071
30161
  return [2
@@ -30119,21 +30209,21 @@ function () {
30119
30209
  };
30120
30210
 
30121
30211
  AmazonLocationServiceProvider.prototype._AmazonLocationServiceBatchPutGeofenceCall = function (PascalGeofences, collectionName) {
30122
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
30212
+ return __awaiter(this, void 0, void 0, function () {
30123
30213
  var geofenceInput, client, command, response, error_8;
30124
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
30214
+ return __generator(this, function (_a) {
30125
30215
  switch (_a.label) {
30126
30216
  case 0:
30127
30217
  geofenceInput = {
30128
30218
  Entries: PascalGeofences,
30129
30219
  CollectionName: collectionName || this._config.geofenceCollections["default"]
30130
30220
  };
30131
- client = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_3__["LocationClient"]({
30221
+ client = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_2__["LocationClient"]({
30132
30222
  credentials: this._config.credentials,
30133
30223
  region: this._config.region,
30134
- customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__["getAmplifyUserAgent"])()
30224
+ customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["getAmplifyUserAgent"])()
30135
30225
  });
30136
- command = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_3__["BatchPutGeofenceCommand"](geofenceInput);
30226
+ command = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_2__["BatchPutGeofenceCommand"](geofenceInput);
30137
30227
  _a.label = 1;
30138
30228
 
30139
30229
  case 1:
@@ -30163,21 +30253,21 @@ function () {
30163
30253
  };
30164
30254
 
30165
30255
  AmazonLocationServiceProvider.prototype._AmazonLocationServiceBatchDeleteGeofenceCall = function (geofenceIds, collectionName) {
30166
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
30256
+ return __awaiter(this, void 0, void 0, function () {
30167
30257
  var deleteGeofencesInput, client, command, response, error_9;
30168
- return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
30258
+ return __generator(this, function (_a) {
30169
30259
  switch (_a.label) {
30170
30260
  case 0:
30171
30261
  deleteGeofencesInput = {
30172
30262
  GeofenceIds: geofenceIds,
30173
30263
  CollectionName: collectionName || this._config.geofenceCollections["default"]
30174
30264
  };
30175
- client = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_3__["LocationClient"]({
30265
+ client = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_2__["LocationClient"]({
30176
30266
  credentials: this._config.credentials,
30177
30267
  region: this._config.region,
30178
- customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__["getAmplifyUserAgent"])()
30268
+ customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["getAmplifyUserAgent"])()
30179
30269
  });
30180
- command = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_3__["BatchDeleteGeofenceCommand"](deleteGeofencesInput);
30270
+ command = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_2__["BatchDeleteGeofenceCommand"](deleteGeofencesInput);
30181
30271
  _a.label = 1;
30182
30272
 
30183
30273
  case 1:
@@ -30245,9 +30335,33 @@ __webpack_require__.r(__webpack_exports__);
30245
30335
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateLinearRing", function() { return validateLinearRing; });
30246
30336
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validatePolygon", function() { return validatePolygon; });
30247
30337
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateGeofencesInput", function() { return validateGeofencesInput; });
30248
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
30249
- /* harmony import */ var _turf_boolean_clockwise__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @turf/boolean-clockwise */ "../../node_modules/@turf/boolean-clockwise/dist/es/index.js");
30338
+ /* harmony import */ var _turf_boolean_clockwise__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @turf/boolean-clockwise */ "../../node_modules/@turf/boolean-clockwise/dist/es/index.js");
30339
+ var __read = undefined && undefined.__read || function (o, n) {
30340
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
30341
+ if (!m) return o;
30342
+ var i = m.call(o),
30343
+ r,
30344
+ ar = [],
30345
+ e;
30346
+
30347
+ try {
30348
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
30349
+ ar.push(r.value);
30350
+ }
30351
+ } catch (error) {
30352
+ e = {
30353
+ error: error
30354
+ };
30355
+ } finally {
30356
+ try {
30357
+ if (r && !r.done && (m = i["return"])) m.call(i);
30358
+ } finally {
30359
+ if (e) throw e.error;
30360
+ }
30361
+ }
30250
30362
 
30363
+ return ar;
30364
+ };
30251
30365
  /*
30252
30366
  * Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
30253
30367
  *
@@ -30262,6 +30376,7 @@ __webpack_require__.r(__webpack_exports__);
30262
30376
  */
30263
30377
 
30264
30378
 
30379
+
30265
30380
  function validateCoordinates(lng, lat) {
30266
30381
  if (!Number.isFinite(lng) || !Number.isFinite(lat)) {
30267
30382
  throw new Error("Invalid coordinates: [" + lng + "," + lat + "]");
@@ -30305,11 +30420,11 @@ function validateLinearRing(linearRing, geofenceId) {
30305
30420
  } // Validate first and last coordinates are the same
30306
30421
 
30307
30422
 
30308
- var _a = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(linearRing[0], 2),
30423
+ var _a = __read(linearRing[0], 2),
30309
30424
  lngA = _a[0],
30310
30425
  latA = _a[1];
30311
30426
 
30312
- var _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(linearRing[linearRing.length - 1], 2),
30427
+ var _b = __read(linearRing[linearRing.length - 1], 2),
30313
30428
  lngB = _b[0],
30314
30429
  latB = _b[1];
30315
30430
 
@@ -30317,7 +30432,7 @@ function validateLinearRing(linearRing, geofenceId) {
30317
30432
  throw new Error(errorPrefix + "LinearRing's first and last coordinates are not the same");
30318
30433
  }
30319
30434
 
30320
- if (Object(_turf_boolean_clockwise__WEBPACK_IMPORTED_MODULE_1__["default"])(linearRing)) {
30435
+ if (Object(_turf_boolean_clockwise__WEBPACK_IMPORTED_MODULE_0__["default"])(linearRing)) {
30321
30436
  throw new Error(errorPrefix + "LinearRing coordinates must be wound counterclockwise");
30322
30437
  }
30323
30438
  }
@@ -30388,7 +30503,7 @@ function validateGeofencesInput(geofences) {
30388
30503
  } // Validate LinearRing length, structure, and coordinates
30389
30504
 
30390
30505
 
30391
- var _a = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(polygon, 1),
30506
+ var _a = __read(polygon, 1),
30392
30507
  linearRing = _a[0];
30393
30508
 
30394
30509
  validateLinearRing(linearRing, geofenceId);