@plattar/plattar-ar-adapter 1.189.2 → 2.5.1

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.
@@ -8,7 +8,7 @@ function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArra
8
8
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
9
  function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
10
10
  function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
11
- function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n2 = 0, F = function F() {}; return { s: F, n: function n() { return _n2 >= r.length ? { done: !0 } : { done: !1, value: r[_n2++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
11
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var n = 0, F = function F() {}; return { s: F, n: function (_n2) { function n() { return _n2.apply(this, arguments); } n.toString = function () { return _n2.toString(); }; return n; }(function () { return n >= r.length ? { done: !0 } : { done: !1, value: r[n++] }; }), e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
12
12
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
13
13
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
14
14
  function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
@@ -19,7 +19,7 @@ function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prot
19
19
  function _get() { return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); }
20
20
  function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }
21
21
  function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
22
- function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { if (r) i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n;else { var o = function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); }; o("next", 0), o("throw", 1), o("return", 2); } }, _regeneratorDefine2(e, r, n, t); }
22
+ function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
23
23
  function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
24
24
  function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
25
25
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -157,7 +157,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
157
157
  var _Compose2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(output) {
158
158
  var type, url, response, data, _t;
159
159
  return _regenerator().w(function (_context) {
160
- while (1) switch (_context.n) {
160
+ while (1) switch (_context.p = _context.n) {
161
161
  case 0:
162
162
  type = output === 'glb' ? "viewer" : "reality";
163
163
  url = "https://xrutils.plattar.com/v3/scene/".concat(this._options.state.scene.id, "/").concat(type); // grab our existing scene-graph from the saved API
@@ -1334,7 +1334,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1334
1334
  var _Compose3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(output) {
1335
1335
  var type, url, response, data, _t2;
1336
1336
  return _regenerator().w(function (_context5) {
1337
- while (1) switch (_context5.n) {
1337
+ while (1) switch (_context5.p = _context5.n) {
1338
1338
  case 0:
1339
1339
  type = output === 'glb' ? "viewer" : "reality";
1340
1340
  url = "https://xrutils.plattar.com/v3/scene/".concat(this._options.sceneID, "/").concat(type, "/").concat(this._options.id); // grab our existing scene-graph from the saved API
@@ -1726,7 +1726,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1726
1726
  var _startARQRCode = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9(options) {
1727
1727
  var dState, product, controller, _t3;
1728
1728
  return _regenerator().w(function (_context9) {
1729
- while (1) switch (_context9.n) {
1729
+ while (1) switch (_context9.p = _context9.n) {
1730
1730
  case 0:
1731
1731
  _context9.p = 0;
1732
1732
  _context9.n = 1;
@@ -1776,7 +1776,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1776
1776
  var _this14 = this;
1777
1777
  var opt, sceneID, configState, dState, product, controller, viewer, width, height, dst, showAR, showUI, showBanner, sceneGraphID, _t4;
1778
1778
  return _regenerator().w(function (_context0) {
1779
- while (1) switch (_context0.n) {
1779
+ while (1) switch (_context0.p = _context0.n) {
1780
1780
  case 0:
1781
1781
  opt = this._GetDefaultQROptions(options); // remove the old renderer instance if any
1782
1782
  if (!opt.detached) {
@@ -1897,7 +1897,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1897
1897
  var _this15 = this;
1898
1898
  var sceneID, configState, dState, product, controller, width, height, server, viewer, showAR, showUI, encodedState, _t5;
1899
1899
  return _regenerator().w(function (_context1) {
1900
- while (1) switch (_context1.n) {
1900
+ while (1) switch (_context1.p = _context1.n) {
1901
1901
  case 0:
1902
1902
  // remove the old renderer instance if any
1903
1903
  this.removeRenderer();
@@ -1991,7 +1991,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1991
1991
  var _initAR = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10() {
1992
1992
  var dState, product, controller, arMode, _t6, _t7;
1993
1993
  return _regenerator().w(function (_context10) {
1994
- while (1) switch (_context10.n) {
1994
+ while (1) switch (_context10.p = _context10.n) {
1995
1995
  case 0:
1996
1996
  if (util_1.Util.canAugment()) {
1997
1997
  _context10.n = 1;
@@ -2502,7 +2502,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2502
2502
  var _startARQRCode2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee20(options) {
2503
2503
  var dState, product, controller, _t10;
2504
2504
  return _regenerator().w(function (_context20) {
2505
- while (1) switch (_context20.n) {
2505
+ while (1) switch (_context20.p = _context20.n) {
2506
2506
  case 0:
2507
2507
  _context20.p = 0;
2508
2508
  _context20.n = 1;
@@ -2568,7 +2568,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2568
2568
  var _this20 = this;
2569
2569
  var sceneID, configState, qrOptions, embedType, productID, sceneProductID, variationID, variationSKU, arMode, showBanner, sceneGraphID, width, height, server, viewer, _sceneGraphID, _t11;
2570
2570
  return _regenerator().w(function (_context22) {
2571
- while (1) switch (_context22.n) {
2571
+ while (1) switch (_context22.p = _context22.n) {
2572
2572
  case 0:
2573
2573
  // remove the old renderer instance if any
2574
2574
  this.removeRenderer();
@@ -2671,7 +2671,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2671
2671
  var _initAR3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee23() {
2672
2672
  var dState, product, controller, arMode, _t12, _t13;
2673
2673
  return _regenerator().w(function (_context23) {
2674
- while (1) switch (_context23.n) {
2674
+ while (1) switch (_context23.p = _context23.n) {
2675
2675
  case 0:
2676
2676
  if (util_1.Util.canAugment()) {
2677
2677
  _context23.n = 1;
@@ -3072,7 +3072,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
3072
3072
  var _this21 = this;
3073
3073
  var opt, viewer, width, height, qrOptions, dst, sceneID, embedType, productID, sceneProductID, variationID, variationSKU, arMode, showBanner, sceneGraphID, _sceneGraphID2, _t20;
3074
3074
  return _regenerator().w(function (_context29) {
3075
- while (1) switch (_context29.n) {
3075
+ while (1) switch (_context29.p = _context29.n) {
3076
3076
  case 0:
3077
3077
  opt = this._GetDefaultQROptions(options);
3078
3078
  viewer = document.createElement("plattar-qrcode"); // remove the old renderer instance if any
@@ -3732,7 +3732,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
3732
3732
  var _this27 = this;
3733
3733
  var opt, sceneID, viewer, width, height, dst, configState, showAR, productID, sceneProductID, variationID, _t21;
3734
3734
  return _regenerator().w(function (_context34) {
3735
- while (1) switch (_context34.n) {
3735
+ while (1) switch (_context34.p = _context34.n) {
3736
3736
  case 0:
3737
3737
  opt = this._GetDefaultQROptions(options); // remove the old renderer instance if any
3738
3738
  if (!opt.detached) {
@@ -3830,7 +3830,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
3830
3830
  var _this28 = this;
3831
3831
  var sceneID, width, height, server, viewer, configState, showAR, productID, sceneProductID, variationID, _t22;
3832
3832
  return _regenerator().w(function (_context35) {
3833
- while (1) switch (_context35.n) {
3833
+ while (1) switch (_context35.p = _context35.n) {
3834
3834
  case 0:
3835
3835
  // remove the old renderer instance if any
3836
3836
  this.removeRenderer();
@@ -5102,11 +5102,12 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
5102
5102
  }
5103
5103
  });
5104
5104
  } else if (productState.length === 3) {
5105
+ var _productState$meta$me;
5105
5106
  callback({
5106
5107
  scene_product_id: productState[meta.scene_product_index],
5107
5108
  product_variation_id: productState[meta.product_variation_index],
5108
5109
  meta_data: {
5109
- augment: productState[meta.meta_index].augment || true,
5110
+ augment: (_productState$meta$me = productState[meta.meta_index].augment) !== null && _productState$meta$me !== void 0 ? _productState$meta$me : true,
5110
5111
  type: productState[meta.meta_index].type || "sceneproduct"
5111
5112
  }
5112
5113
  });
@@ -5246,7 +5247,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
5246
5247
  var _encodeSceneGraphID = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee48() {
5247
5248
  var graph, url, response, data, _t28;
5248
5249
  return _regenerator().w(function (_context48) {
5249
- while (1) switch (_context48.n) {
5250
+ while (1) switch (_context48.p = _context48.n) {
5250
5251
  case 0:
5251
5252
  graph = this.sceneGraph; // some scene-graphs are very large in size, we store it remotely
5252
5253
  // this storage will expire in 10 minutes so this is a non-permanent version
@@ -5623,7 +5624,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
5623
5624
  Object.defineProperty(exports, "__esModule", {
5624
5625
  value: true
5625
5626
  });
5626
- exports["default"] = "1.189.2";
5627
+ exports["default"] = "2.5.1";
5627
5628
  }, {}],
5628
5629
  21: [function (require, module, exports) {
5629
5630
  "use strict";
@@ -11322,9 +11323,21 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
11322
11323
  return "none";
11323
11324
  }
11324
11325
  }, {
11325
- key: "elementLocation",
11326
+ key: "elementFullLocation",
11326
11327
  get: function get() {
11327
- return Util.getElementLocation(this.elementType);
11328
+ var server = this.hasAttribute("server") ? this.getAttribute("server") : "production";
11329
+ var serverLocation = Util.getServerLocation(server);
11330
+ if (serverLocation === undefined) {
11331
+ throw new Error("BaseElement.elementFullLocation - attribute \"server\" must be one of \"production\", \"staging\", \"review\" or \"dev\" but was \"".concat(server, "\""));
11332
+ }
11333
+ var embedLocation = Util.getElementLocation(this.elementType);
11334
+ if (embedLocation === undefined) {
11335
+ throw new Error("BaseElement.elementFullLocation - element named \"".concat(this.elementType, "\" is invalid"));
11336
+ }
11337
+ if (serverLocation === Util.getServerLocation('dev')) {
11338
+ return "".concat(serverLocation, "renderer/").concat(embedLocation).concat(this.allMappedAttributesQuery);
11339
+ }
11340
+ return "".concat(serverLocation).concat(embedLocation).concat(this.allMappedAttributesQuery);
11328
11341
  }
11329
11342
  }]);
11330
11343
  }(/*#__PURE__*/_wrapNativeSuper(HTMLElement));
@@ -11353,13 +11366,27 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
11353
11366
  return "configurator";
11354
11367
  }
11355
11368
  }, {
11356
- key: "elementLocation",
11369
+ key: "elementFullLocation",
11357
11370
  get: function get() {
11358
11371
  if (this.hasAttribute("show-ui")) {
11359
11372
  var state = this.getAttribute("show-ui");
11360
- return state === "true" ? "configurator/dist/index.html" : _superPropGet(ConfiguratorElement, "elementLocation", this, 1);
11373
+ if (state === "true") {
11374
+ var server = this.hasAttribute("server") ? this.getAttribute("server") : "production";
11375
+ switch (server) {
11376
+ case "production":
11377
+ return "https://configurator.plattar.com/index.html".concat(this.allMappedAttributesQuery);
11378
+ case "staging":
11379
+ return "https://configurator-staging.plattar.com/index.html".concat(this.allMappedAttributesQuery);
11380
+ case "review":
11381
+ return "https://configurator-review.plattar.com/index.html".concat(this.allMappedAttributesQuery);
11382
+ case "dev":
11383
+ return "https://localhost/configurator/dist/index.html".concat(this.allMappedAttributesQuery);
11384
+ default:
11385
+ throw new Error("ConfiguratorElement.elementFullLocation - attribute \"server\" must be one of \"production\", \"staging\", \"review\" or \"dev\" but was \"".concat(server, "\""));
11386
+ }
11387
+ }
11361
11388
  }
11362
- return _superPropGet(ConfiguratorElement, "elementLocation", this, 1);
11389
+ return _superPropGet(ConfiguratorElement, "elementFullLocation", this, 1);
11363
11390
  }
11364
11391
  }, {
11365
11392
  key: "optionalAttributes",
@@ -11430,15 +11457,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
11430
11457
  }
11431
11458
  var element = this._element;
11432
11459
  this._server = element.hasAttribute("server") ? element.getAttribute("server") : "production";
11433
- var serverLocation = Util.getServerLocation(this._server);
11434
- if (serverLocation === undefined) {
11435
- throw new Error("ElementController - attribute \"server\" must be one of \"production\", \"staging\", \"review\" or \"dev\"");
11436
- }
11437
- var embedLocation = element.elementLocation;
11438
- if (embedLocation === undefined) {
11439
- throw new Error("ElementController - element named \"" + elementType + "\" is invalid");
11440
- }
11441
- var source = serverLocation + embedLocation + element.allMappedAttributesQuery;
11460
+ var source = element.elementFullLocation;
11442
11461
 
11443
11462
  // ensure iframe ID is randomly generated as we could have multiple iframes
11444
11463
  // with same Scene ID - such as viewer and editor running on same page
@@ -12034,11 +12053,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
12034
12053
  value: function getServerLocation(server) {
12035
12054
  switch (server) {
12036
12055
  case "production":
12037
- return "https://app.plattar.com/";
12056
+ return "https://renderer.plattar.com/";
12038
12057
  case "staging":
12039
- return "https://staging.plattar.space/";
12058
+ return "https://renderer-staging.plattar.com/";
12040
12059
  case "review":
12041
- return "https://review.plattar.com/";
12060
+ return "https://renderer-review.plattar.com/";
12042
12061
  case "dev":
12043
12062
  return "https://localhost/";
12044
12063
  default:
@@ -12050,7 +12069,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
12050
12069
  value: function getElementLocation(etype) {
12051
12070
  var isValid = Util.isValidType(etype);
12052
12071
  if (isValid) {
12053
- return "renderer/" + etype + ".html";
12072
+ return "".concat(etype, ".html");
12054
12073
  }
12055
12074
  return undefined;
12056
12075
  }
@@ -12096,7 +12115,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
12096
12115
  module.exports = Util;
12097
12116
  }, {}],
12098
12117
  140: [function (require, module, exports) {
12099
- module.exports = "1.182.2";
12118
+ module.exports = "2.5.3";
12100
12119
  }, {}],
12101
12120
  141: [function (require, module, exports) {
12102
12121
  'use strict';
@@ -16514,11 +16533,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
16514
16533
  if (r) {
16515
16534
  var _r6 = null === (t = n.backgroundOptions) || void 0 === t ? void 0 : t.gradient,
16516
16535
  _o = null === (e = n.backgroundOptions) || void 0 === e ? void 0 : e.color;
16517
- var _s6 = n.height,
16536
+ var s = n.height,
16518
16537
  _a2 = n.width;
16519
16538
  if (_r6 || _o) {
16520
16539
  var _t33 = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect");
16521
- this._backgroundClipPath = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), this._backgroundClipPath.setAttribute("id", "clip-path-background-color-".concat(this._instanceId)), this._defs.appendChild(this._backgroundClipPath), (null === (i = n.backgroundOptions) || void 0 === i ? void 0 : i.round) && (_s6 = _a2 = Math.min(n.width, n.height), _t33.setAttribute("rx", String(_s6 / 2 * n.backgroundOptions.round))), _t33.setAttribute("x", String(this._roundSize((n.width - _a2) / 2))), _t33.setAttribute("y", String(this._roundSize((n.height - _s6) / 2))), _t33.setAttribute("width", String(_a2)), _t33.setAttribute("height", String(_s6)), this._backgroundClipPath.appendChild(_t33), this._createColor({
16540
+ this._backgroundClipPath = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), this._backgroundClipPath.setAttribute("id", "clip-path-background-color-".concat(this._instanceId)), this._defs.appendChild(this._backgroundClipPath), (null === (i = n.backgroundOptions) || void 0 === i ? void 0 : i.round) && (s = _a2 = Math.min(n.width, n.height), _t33.setAttribute("rx", String(s / 2 * n.backgroundOptions.round))), _t33.setAttribute("x", String(this._roundSize((n.width - _a2) / 2))), _t33.setAttribute("y", String(this._roundSize((n.height - s) / 2))), _t33.setAttribute("width", String(_a2)), _t33.setAttribute("height", String(s)), this._backgroundClipPath.appendChild(_t33), this._createColor({
16522
16541
  options: _r6,
16523
16542
  color: _o,
16524
16543
  additionalRotation: 0,
@@ -16578,17 +16597,17 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
16578
16597
  _e4 = n + 2 * _t34,
16579
16598
  _i3 = d - _t34 * h,
16580
16599
  _r7 = u - _t34 * h,
16581
- _s7 = [],
16600
+ s = [],
16582
16601
  _a3 = this._roundSize(_e4 / 2);
16583
16602
  for (var _i4 = 0; _i4 < _e4; _i4++) {
16584
- _s7[_i4] = [];
16585
- for (var _r8 = 0; _r8 < _e4; _r8++) _i4 >= _t34 - 1 && _i4 <= _e4 - _t34 && _r8 >= _t34 - 1 && _r8 <= _e4 - _t34 || Math.sqrt((_i4 - _a3) * (_i4 - _a3) + (_r8 - _a3) * (_r8 - _a3)) > _a3 ? _s7[_i4][_r8] = 0 : _s7[_i4][_r8] = this._qr.isDark(_r8 - 2 * _t34 < 0 ? _r8 : _r8 >= n ? _r8 - 2 * _t34 : _r8 - _t34, _i4 - 2 * _t34 < 0 ? _i4 : _i4 >= n ? _i4 - 2 * _t34 : _i4 - _t34) ? 1 : 0;
16603
+ s[_i4] = [];
16604
+ for (var _r8 = 0; _r8 < _e4; _r8++) _i4 >= _t34 - 1 && _i4 <= _e4 - _t34 && _r8 >= _t34 - 1 && _r8 <= _e4 - _t34 || Math.sqrt((_i4 - _a3) * (_i4 - _a3) + (_r8 - _a3) * (_r8 - _a3)) > _a3 ? s[_i4][_r8] = 0 : s[_i4][_r8] = this._qr.isDark(_r8 - 2 * _t34 < 0 ? _r8 : _r8 >= n ? _r8 - 2 * _t34 : _r8 - _t34, _i4 - 2 * _t34 < 0 ? _i4 : _i4 >= n ? _i4 - 2 * _t34 : _i4 - _t34) ? 1 : 0;
16586
16605
  }
16587
16606
  var _loop3 = function _loop3(_t35) {
16588
16607
  var _loop4 = function _loop4(_n) {
16589
- _s7[_t35][_n] && (c.draw(_i3 + _n * h, _r7 + _t35 * h, h, function (e, i) {
16608
+ s[_t35][_n] && (c.draw(_i3 + _n * h, _r7 + _t35 * h, h, function (e, i) {
16590
16609
  var r;
16591
- return !!(null === (r = _s7[_t35 + i]) || void 0 === r ? void 0 : r[_n + e]);
16610
+ return !!(null === (r = s[_t35 + i]) || void 0 === r ? void 0 : r[_n + e]);
16592
16611
  }), c._element && _this84._dotsClipPath && _this84._dotsClipPath.appendChild(c._element));
16593
16612
  };
16594
16613
  for (var _n = 0; _n < _e4; _n++) {