oro-sdk 3.20.0 → 3.21.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,6 +5,351 @@ import * as oroToolbox from 'oro-toolbox';
5
5
  export { oroToolbox as OroToolboxNamespace };
6
6
  import { getMany } from 'idb-keyval';
7
7
 
8
+ function _regeneratorRuntime() {
9
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
10
+
11
+ _regeneratorRuntime = function () {
12
+ return exports;
13
+ };
14
+
15
+ var exports = {},
16
+ Op = Object.prototype,
17
+ hasOwn = Op.hasOwnProperty,
18
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
19
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
20
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
21
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
22
+
23
+ function define(obj, key, value) {
24
+ return Object.defineProperty(obj, key, {
25
+ value: value,
26
+ enumerable: !0,
27
+ configurable: !0,
28
+ writable: !0
29
+ }), obj[key];
30
+ }
31
+
32
+ try {
33
+ define({}, "");
34
+ } catch (err) {
35
+ define = function (obj, key, value) {
36
+ return obj[key] = value;
37
+ };
38
+ }
39
+
40
+ function wrap(innerFn, outerFn, self, tryLocsList) {
41
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
42
+ generator = Object.create(protoGenerator.prototype),
43
+ context = new Context(tryLocsList || []);
44
+ return generator._invoke = function (innerFn, self, context) {
45
+ var state = "suspendedStart";
46
+ return function (method, arg) {
47
+ if ("executing" === state) throw new Error("Generator is already running");
48
+
49
+ if ("completed" === state) {
50
+ if ("throw" === method) throw arg;
51
+ return doneResult();
52
+ }
53
+
54
+ for (context.method = method, context.arg = arg;;) {
55
+ var delegate = context.delegate;
56
+
57
+ if (delegate) {
58
+ var delegateResult = maybeInvokeDelegate(delegate, context);
59
+
60
+ if (delegateResult) {
61
+ if (delegateResult === ContinueSentinel) continue;
62
+ return delegateResult;
63
+ }
64
+ }
65
+
66
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
67
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
68
+ context.dispatchException(context.arg);
69
+ } else "return" === context.method && context.abrupt("return", context.arg);
70
+ state = "executing";
71
+ var record = tryCatch(innerFn, self, context);
72
+
73
+ if ("normal" === record.type) {
74
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
75
+ return {
76
+ value: record.arg,
77
+ done: context.done
78
+ };
79
+ }
80
+
81
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
82
+ }
83
+ };
84
+ }(innerFn, self, context), generator;
85
+ }
86
+
87
+ function tryCatch(fn, obj, arg) {
88
+ try {
89
+ return {
90
+ type: "normal",
91
+ arg: fn.call(obj, arg)
92
+ };
93
+ } catch (err) {
94
+ return {
95
+ type: "throw",
96
+ arg: err
97
+ };
98
+ }
99
+ }
100
+
101
+ exports.wrap = wrap;
102
+ var ContinueSentinel = {};
103
+
104
+ function Generator() {}
105
+
106
+ function GeneratorFunction() {}
107
+
108
+ function GeneratorFunctionPrototype() {}
109
+
110
+ var IteratorPrototype = {};
111
+ define(IteratorPrototype, iteratorSymbol, function () {
112
+ return this;
113
+ });
114
+ var getProto = Object.getPrototypeOf,
115
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
116
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
117
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
118
+
119
+ function defineIteratorMethods(prototype) {
120
+ ["next", "throw", "return"].forEach(function (method) {
121
+ define(prototype, method, function (arg) {
122
+ return this._invoke(method, arg);
123
+ });
124
+ });
125
+ }
126
+
127
+ function AsyncIterator(generator, PromiseImpl) {
128
+ function invoke(method, arg, resolve, reject) {
129
+ var record = tryCatch(generator[method], generator, arg);
130
+
131
+ if ("throw" !== record.type) {
132
+ var result = record.arg,
133
+ value = result.value;
134
+ return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
135
+ invoke("next", value, resolve, reject);
136
+ }, function (err) {
137
+ invoke("throw", err, resolve, reject);
138
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
139
+ result.value = unwrapped, resolve(result);
140
+ }, function (error) {
141
+ return invoke("throw", error, resolve, reject);
142
+ });
143
+ }
144
+
145
+ reject(record.arg);
146
+ }
147
+
148
+ var previousPromise;
149
+
150
+ this._invoke = function (method, arg) {
151
+ function callInvokeWithMethodAndArg() {
152
+ return new PromiseImpl(function (resolve, reject) {
153
+ invoke(method, arg, resolve, reject);
154
+ });
155
+ }
156
+
157
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
158
+ };
159
+ }
160
+
161
+ function maybeInvokeDelegate(delegate, context) {
162
+ var method = delegate.iterator[context.method];
163
+
164
+ if (undefined === method) {
165
+ if (context.delegate = null, "throw" === context.method) {
166
+ if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
167
+ context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
168
+ }
169
+
170
+ return ContinueSentinel;
171
+ }
172
+
173
+ var record = tryCatch(method, delegate.iterator, context.arg);
174
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
175
+ var info = record.arg;
176
+ return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
177
+ }
178
+
179
+ function pushTryEntry(locs) {
180
+ var entry = {
181
+ tryLoc: locs[0]
182
+ };
183
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
184
+ }
185
+
186
+ function resetTryEntry(entry) {
187
+ var record = entry.completion || {};
188
+ record.type = "normal", delete record.arg, entry.completion = record;
189
+ }
190
+
191
+ function Context(tryLocsList) {
192
+ this.tryEntries = [{
193
+ tryLoc: "root"
194
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
195
+ }
196
+
197
+ function values(iterable) {
198
+ if (iterable) {
199
+ var iteratorMethod = iterable[iteratorSymbol];
200
+ if (iteratorMethod) return iteratorMethod.call(iterable);
201
+ if ("function" == typeof iterable.next) return iterable;
202
+
203
+ if (!isNaN(iterable.length)) {
204
+ var i = -1,
205
+ next = function next() {
206
+ for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
207
+
208
+ return next.value = undefined, next.done = !0, next;
209
+ };
210
+
211
+ return next.next = next;
212
+ }
213
+ }
214
+
215
+ return {
216
+ next: doneResult
217
+ };
218
+ }
219
+
220
+ function doneResult() {
221
+ return {
222
+ value: undefined,
223
+ done: !0
224
+ };
225
+ }
226
+
227
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
228
+ var ctor = "function" == typeof genFun && genFun.constructor;
229
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
230
+ }, exports.mark = function (genFun) {
231
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
232
+ }, exports.awrap = function (arg) {
233
+ return {
234
+ __await: arg
235
+ };
236
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
237
+ return this;
238
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
239
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
240
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
241
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
242
+ return result.done ? result.value : iter.next();
243
+ });
244
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
245
+ return this;
246
+ }), define(Gp, "toString", function () {
247
+ return "[object Generator]";
248
+ }), exports.keys = function (object) {
249
+ var keys = [];
250
+
251
+ for (var key in object) keys.push(key);
252
+
253
+ return keys.reverse(), function next() {
254
+ for (; keys.length;) {
255
+ var key = keys.pop();
256
+ if (key in object) return next.value = key, next.done = !1, next;
257
+ }
258
+
259
+ return next.done = !0, next;
260
+ };
261
+ }, exports.values = values, Context.prototype = {
262
+ constructor: Context,
263
+ reset: function (skipTempReset) {
264
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
265
+ },
266
+ stop: function () {
267
+ this.done = !0;
268
+ var rootRecord = this.tryEntries[0].completion;
269
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
270
+ return this.rval;
271
+ },
272
+ dispatchException: function (exception) {
273
+ if (this.done) throw exception;
274
+ var context = this;
275
+
276
+ function handle(loc, caught) {
277
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
278
+ }
279
+
280
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
281
+ var entry = this.tryEntries[i],
282
+ record = entry.completion;
283
+ if ("root" === entry.tryLoc) return handle("end");
284
+
285
+ if (entry.tryLoc <= this.prev) {
286
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
287
+ hasFinally = hasOwn.call(entry, "finallyLoc");
288
+
289
+ if (hasCatch && hasFinally) {
290
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
291
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
292
+ } else if (hasCatch) {
293
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
294
+ } else {
295
+ if (!hasFinally) throw new Error("try statement without catch or finally");
296
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
297
+ }
298
+ }
299
+ }
300
+ },
301
+ abrupt: function (type, arg) {
302
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
303
+ var entry = this.tryEntries[i];
304
+
305
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
306
+ var finallyEntry = entry;
307
+ break;
308
+ }
309
+ }
310
+
311
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
312
+ var record = finallyEntry ? finallyEntry.completion : {};
313
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
314
+ },
315
+ complete: function (record, afterLoc) {
316
+ if ("throw" === record.type) throw record.arg;
317
+ return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
318
+ },
319
+ finish: function (finallyLoc) {
320
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
321
+ var entry = this.tryEntries[i];
322
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
323
+ }
324
+ },
325
+ catch: function (tryLoc) {
326
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
327
+ var entry = this.tryEntries[i];
328
+
329
+ if (entry.tryLoc === tryLoc) {
330
+ var record = entry.completion;
331
+
332
+ if ("throw" === record.type) {
333
+ var thrown = record.arg;
334
+ resetTryEntry(entry);
335
+ }
336
+
337
+ return thrown;
338
+ }
339
+ }
340
+
341
+ throw new Error("illegal catch attempt");
342
+ },
343
+ delegateYield: function (iterable, resultName, nextLoc) {
344
+ return this.delegate = {
345
+ iterator: values(iterable),
346
+ resultName: resultName,
347
+ nextLoc: nextLoc
348
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
349
+ }
350
+ }, exports;
351
+ }
352
+
8
353
  function _wrapRegExp() {
9
354
  _wrapRegExp = function (re, groups) {
10
355
  return new BabelRegExp(re, void 0, groups);
@@ -90,7 +435,7 @@ function _asyncToGenerator(fn) {
90
435
  }
91
436
 
92
437
  function _extends() {
93
- _extends = Object.assign || function (target) {
438
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
94
439
  for (var i = 1; i < arguments.length; i++) {
95
440
  var source = arguments[i];
96
441
 
@@ -103,7 +448,6 @@ function _extends() {
103
448
 
104
449
  return target;
105
450
  };
106
-
107
451
  return _extends.apply(this, arguments);
108
452
  }
109
453
 
@@ -133,18 +477,17 @@ function _inheritsLoose(subClass, superClass) {
133
477
  }
134
478
 
135
479
  function _getPrototypeOf(o) {
136
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
480
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
137
481
  return o.__proto__ || Object.getPrototypeOf(o);
138
482
  };
139
483
  return _getPrototypeOf(o);
140
484
  }
141
485
 
142
486
  function _setPrototypeOf(o, p) {
143
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
487
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
144
488
  o.__proto__ = p;
145
489
  return o;
146
490
  };
147
-
148
491
  return _setPrototypeOf(o, p);
149
492
  }
150
493
 
@@ -163,7 +506,7 @@ function _isNativeReflectConstruct() {
163
506
 
164
507
  function _construct(Parent, args, Class) {
165
508
  if (_isNativeReflectConstruct()) {
166
- _construct = Reflect.construct;
509
+ _construct = Reflect.construct.bind();
167
510
  } else {
168
511
  _construct = function _construct(Parent, args, Class) {
169
512
  var a = [null];
@@ -269,766 +612,6 @@ function _createForOfIteratorHelperLoose(o, allowArrayLike) {
269
612
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
270
613
  }
271
614
 
272
- function createCommonjsModule(fn, module) {
273
- return module = { exports: {} }, fn(module, module.exports), module.exports;
274
- }
275
-
276
- var runtime_1 = createCommonjsModule(function (module) {
277
- /**
278
- * Copyright (c) 2014-present, Facebook, Inc.
279
- *
280
- * This source code is licensed under the MIT license found in the
281
- * LICENSE file in the root directory of this source tree.
282
- */
283
-
284
- var runtime = (function (exports) {
285
-
286
- var Op = Object.prototype;
287
- var hasOwn = Op.hasOwnProperty;
288
- var undefined$1; // More compressible than void 0.
289
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
290
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
291
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
292
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
293
-
294
- function define(obj, key, value) {
295
- Object.defineProperty(obj, key, {
296
- value: value,
297
- enumerable: true,
298
- configurable: true,
299
- writable: true
300
- });
301
- return obj[key];
302
- }
303
- try {
304
- // IE 8 has a broken Object.defineProperty that only works on DOM objects.
305
- define({}, "");
306
- } catch (err) {
307
- define = function(obj, key, value) {
308
- return obj[key] = value;
309
- };
310
- }
311
-
312
- function wrap(innerFn, outerFn, self, tryLocsList) {
313
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
314
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
315
- var generator = Object.create(protoGenerator.prototype);
316
- var context = new Context(tryLocsList || []);
317
-
318
- // The ._invoke method unifies the implementations of the .next,
319
- // .throw, and .return methods.
320
- generator._invoke = makeInvokeMethod(innerFn, self, context);
321
-
322
- return generator;
323
- }
324
- exports.wrap = wrap;
325
-
326
- // Try/catch helper to minimize deoptimizations. Returns a completion
327
- // record like context.tryEntries[i].completion. This interface could
328
- // have been (and was previously) designed to take a closure to be
329
- // invoked without arguments, but in all the cases we care about we
330
- // already have an existing method we want to call, so there's no need
331
- // to create a new function object. We can even get away with assuming
332
- // the method takes exactly one argument, since that happens to be true
333
- // in every case, so we don't have to touch the arguments object. The
334
- // only additional allocation required is the completion record, which
335
- // has a stable shape and so hopefully should be cheap to allocate.
336
- function tryCatch(fn, obj, arg) {
337
- try {
338
- return { type: "normal", arg: fn.call(obj, arg) };
339
- } catch (err) {
340
- return { type: "throw", arg: err };
341
- }
342
- }
343
-
344
- var GenStateSuspendedStart = "suspendedStart";
345
- var GenStateSuspendedYield = "suspendedYield";
346
- var GenStateExecuting = "executing";
347
- var GenStateCompleted = "completed";
348
-
349
- // Returning this object from the innerFn has the same effect as
350
- // breaking out of the dispatch switch statement.
351
- var ContinueSentinel = {};
352
-
353
- // Dummy constructor functions that we use as the .constructor and
354
- // .constructor.prototype properties for functions that return Generator
355
- // objects. For full spec compliance, you may wish to configure your
356
- // minifier not to mangle the names of these two functions.
357
- function Generator() {}
358
- function GeneratorFunction() {}
359
- function GeneratorFunctionPrototype() {}
360
-
361
- // This is a polyfill for %IteratorPrototype% for environments that
362
- // don't natively support it.
363
- var IteratorPrototype = {};
364
- define(IteratorPrototype, iteratorSymbol, function () {
365
- return this;
366
- });
367
-
368
- var getProto = Object.getPrototypeOf;
369
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
370
- if (NativeIteratorPrototype &&
371
- NativeIteratorPrototype !== Op &&
372
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
373
- // This environment has a native %IteratorPrototype%; use it instead
374
- // of the polyfill.
375
- IteratorPrototype = NativeIteratorPrototype;
376
- }
377
-
378
- var Gp = GeneratorFunctionPrototype.prototype =
379
- Generator.prototype = Object.create(IteratorPrototype);
380
- GeneratorFunction.prototype = GeneratorFunctionPrototype;
381
- define(Gp, "constructor", GeneratorFunctionPrototype);
382
- define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
383
- GeneratorFunction.displayName = define(
384
- GeneratorFunctionPrototype,
385
- toStringTagSymbol,
386
- "GeneratorFunction"
387
- );
388
-
389
- // Helper for defining the .next, .throw, and .return methods of the
390
- // Iterator interface in terms of a single ._invoke method.
391
- function defineIteratorMethods(prototype) {
392
- ["next", "throw", "return"].forEach(function(method) {
393
- define(prototype, method, function(arg) {
394
- return this._invoke(method, arg);
395
- });
396
- });
397
- }
398
-
399
- exports.isGeneratorFunction = function(genFun) {
400
- var ctor = typeof genFun === "function" && genFun.constructor;
401
- return ctor
402
- ? ctor === GeneratorFunction ||
403
- // For the native GeneratorFunction constructor, the best we can
404
- // do is to check its .name property.
405
- (ctor.displayName || ctor.name) === "GeneratorFunction"
406
- : false;
407
- };
408
-
409
- exports.mark = function(genFun) {
410
- if (Object.setPrototypeOf) {
411
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
412
- } else {
413
- genFun.__proto__ = GeneratorFunctionPrototype;
414
- define(genFun, toStringTagSymbol, "GeneratorFunction");
415
- }
416
- genFun.prototype = Object.create(Gp);
417
- return genFun;
418
- };
419
-
420
- // Within the body of any async function, `await x` is transformed to
421
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
422
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
423
- // meant to be awaited.
424
- exports.awrap = function(arg) {
425
- return { __await: arg };
426
- };
427
-
428
- function AsyncIterator(generator, PromiseImpl) {
429
- function invoke(method, arg, resolve, reject) {
430
- var record = tryCatch(generator[method], generator, arg);
431
- if (record.type === "throw") {
432
- reject(record.arg);
433
- } else {
434
- var result = record.arg;
435
- var value = result.value;
436
- if (value &&
437
- typeof value === "object" &&
438
- hasOwn.call(value, "__await")) {
439
- return PromiseImpl.resolve(value.__await).then(function(value) {
440
- invoke("next", value, resolve, reject);
441
- }, function(err) {
442
- invoke("throw", err, resolve, reject);
443
- });
444
- }
445
-
446
- return PromiseImpl.resolve(value).then(function(unwrapped) {
447
- // When a yielded Promise is resolved, its final value becomes
448
- // the .value of the Promise<{value,done}> result for the
449
- // current iteration.
450
- result.value = unwrapped;
451
- resolve(result);
452
- }, function(error) {
453
- // If a rejected Promise was yielded, throw the rejection back
454
- // into the async generator function so it can be handled there.
455
- return invoke("throw", error, resolve, reject);
456
- });
457
- }
458
- }
459
-
460
- var previousPromise;
461
-
462
- function enqueue(method, arg) {
463
- function callInvokeWithMethodAndArg() {
464
- return new PromiseImpl(function(resolve, reject) {
465
- invoke(method, arg, resolve, reject);
466
- });
467
- }
468
-
469
- return previousPromise =
470
- // If enqueue has been called before, then we want to wait until
471
- // all previous Promises have been resolved before calling invoke,
472
- // so that results are always delivered in the correct order. If
473
- // enqueue has not been called before, then it is important to
474
- // call invoke immediately, without waiting on a callback to fire,
475
- // so that the async generator function has the opportunity to do
476
- // any necessary setup in a predictable way. This predictability
477
- // is why the Promise constructor synchronously invokes its
478
- // executor callback, and why async functions synchronously
479
- // execute code before the first await. Since we implement simple
480
- // async functions in terms of async generators, it is especially
481
- // important to get this right, even though it requires care.
482
- previousPromise ? previousPromise.then(
483
- callInvokeWithMethodAndArg,
484
- // Avoid propagating failures to Promises returned by later
485
- // invocations of the iterator.
486
- callInvokeWithMethodAndArg
487
- ) : callInvokeWithMethodAndArg();
488
- }
489
-
490
- // Define the unified helper method that is used to implement .next,
491
- // .throw, and .return (see defineIteratorMethods).
492
- this._invoke = enqueue;
493
- }
494
-
495
- defineIteratorMethods(AsyncIterator.prototype);
496
- define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
497
- return this;
498
- });
499
- exports.AsyncIterator = AsyncIterator;
500
-
501
- // Note that simple async functions are implemented on top of
502
- // AsyncIterator objects; they just return a Promise for the value of
503
- // the final result produced by the iterator.
504
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
505
- if (PromiseImpl === void 0) PromiseImpl = Promise;
506
-
507
- var iter = new AsyncIterator(
508
- wrap(innerFn, outerFn, self, tryLocsList),
509
- PromiseImpl
510
- );
511
-
512
- return exports.isGeneratorFunction(outerFn)
513
- ? iter // If outerFn is a generator, return the full iterator.
514
- : iter.next().then(function(result) {
515
- return result.done ? result.value : iter.next();
516
- });
517
- };
518
-
519
- function makeInvokeMethod(innerFn, self, context) {
520
- var state = GenStateSuspendedStart;
521
-
522
- return function invoke(method, arg) {
523
- if (state === GenStateExecuting) {
524
- throw new Error("Generator is already running");
525
- }
526
-
527
- if (state === GenStateCompleted) {
528
- if (method === "throw") {
529
- throw arg;
530
- }
531
-
532
- // Be forgiving, per 25.3.3.3.3 of the spec:
533
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
534
- return doneResult();
535
- }
536
-
537
- context.method = method;
538
- context.arg = arg;
539
-
540
- while (true) {
541
- var delegate = context.delegate;
542
- if (delegate) {
543
- var delegateResult = maybeInvokeDelegate(delegate, context);
544
- if (delegateResult) {
545
- if (delegateResult === ContinueSentinel) continue;
546
- return delegateResult;
547
- }
548
- }
549
-
550
- if (context.method === "next") {
551
- // Setting context._sent for legacy support of Babel's
552
- // function.sent implementation.
553
- context.sent = context._sent = context.arg;
554
-
555
- } else if (context.method === "throw") {
556
- if (state === GenStateSuspendedStart) {
557
- state = GenStateCompleted;
558
- throw context.arg;
559
- }
560
-
561
- context.dispatchException(context.arg);
562
-
563
- } else if (context.method === "return") {
564
- context.abrupt("return", context.arg);
565
- }
566
-
567
- state = GenStateExecuting;
568
-
569
- var record = tryCatch(innerFn, self, context);
570
- if (record.type === "normal") {
571
- // If an exception is thrown from innerFn, we leave state ===
572
- // GenStateExecuting and loop back for another invocation.
573
- state = context.done
574
- ? GenStateCompleted
575
- : GenStateSuspendedYield;
576
-
577
- if (record.arg === ContinueSentinel) {
578
- continue;
579
- }
580
-
581
- return {
582
- value: record.arg,
583
- done: context.done
584
- };
585
-
586
- } else if (record.type === "throw") {
587
- state = GenStateCompleted;
588
- // Dispatch the exception by looping back around to the
589
- // context.dispatchException(context.arg) call above.
590
- context.method = "throw";
591
- context.arg = record.arg;
592
- }
593
- }
594
- };
595
- }
596
-
597
- // Call delegate.iterator[context.method](context.arg) and handle the
598
- // result, either by returning a { value, done } result from the
599
- // delegate iterator, or by modifying context.method and context.arg,
600
- // setting context.delegate to null, and returning the ContinueSentinel.
601
- function maybeInvokeDelegate(delegate, context) {
602
- var method = delegate.iterator[context.method];
603
- if (method === undefined$1) {
604
- // A .throw or .return when the delegate iterator has no .throw
605
- // method always terminates the yield* loop.
606
- context.delegate = null;
607
-
608
- if (context.method === "throw") {
609
- // Note: ["return"] must be used for ES3 parsing compatibility.
610
- if (delegate.iterator["return"]) {
611
- // If the delegate iterator has a return method, give it a
612
- // chance to clean up.
613
- context.method = "return";
614
- context.arg = undefined$1;
615
- maybeInvokeDelegate(delegate, context);
616
-
617
- if (context.method === "throw") {
618
- // If maybeInvokeDelegate(context) changed context.method from
619
- // "return" to "throw", let that override the TypeError below.
620
- return ContinueSentinel;
621
- }
622
- }
623
-
624
- context.method = "throw";
625
- context.arg = new TypeError(
626
- "The iterator does not provide a 'throw' method");
627
- }
628
-
629
- return ContinueSentinel;
630
- }
631
-
632
- var record = tryCatch(method, delegate.iterator, context.arg);
633
-
634
- if (record.type === "throw") {
635
- context.method = "throw";
636
- context.arg = record.arg;
637
- context.delegate = null;
638
- return ContinueSentinel;
639
- }
640
-
641
- var info = record.arg;
642
-
643
- if (! info) {
644
- context.method = "throw";
645
- context.arg = new TypeError("iterator result is not an object");
646
- context.delegate = null;
647
- return ContinueSentinel;
648
- }
649
-
650
- if (info.done) {
651
- // Assign the result of the finished delegate to the temporary
652
- // variable specified by delegate.resultName (see delegateYield).
653
- context[delegate.resultName] = info.value;
654
-
655
- // Resume execution at the desired location (see delegateYield).
656
- context.next = delegate.nextLoc;
657
-
658
- // If context.method was "throw" but the delegate handled the
659
- // exception, let the outer generator proceed normally. If
660
- // context.method was "next", forget context.arg since it has been
661
- // "consumed" by the delegate iterator. If context.method was
662
- // "return", allow the original .return call to continue in the
663
- // outer generator.
664
- if (context.method !== "return") {
665
- context.method = "next";
666
- context.arg = undefined$1;
667
- }
668
-
669
- } else {
670
- // Re-yield the result returned by the delegate method.
671
- return info;
672
- }
673
-
674
- // The delegate iterator is finished, so forget it and continue with
675
- // the outer generator.
676
- context.delegate = null;
677
- return ContinueSentinel;
678
- }
679
-
680
- // Define Generator.prototype.{next,throw,return} in terms of the
681
- // unified ._invoke helper method.
682
- defineIteratorMethods(Gp);
683
-
684
- define(Gp, toStringTagSymbol, "Generator");
685
-
686
- // A Generator should always return itself as the iterator object when the
687
- // @@iterator function is called on it. Some browsers' implementations of the
688
- // iterator prototype chain incorrectly implement this, causing the Generator
689
- // object to not be returned from this call. This ensures that doesn't happen.
690
- // See https://github.com/facebook/regenerator/issues/274 for more details.
691
- define(Gp, iteratorSymbol, function() {
692
- return this;
693
- });
694
-
695
- define(Gp, "toString", function() {
696
- return "[object Generator]";
697
- });
698
-
699
- function pushTryEntry(locs) {
700
- var entry = { tryLoc: locs[0] };
701
-
702
- if (1 in locs) {
703
- entry.catchLoc = locs[1];
704
- }
705
-
706
- if (2 in locs) {
707
- entry.finallyLoc = locs[2];
708
- entry.afterLoc = locs[3];
709
- }
710
-
711
- this.tryEntries.push(entry);
712
- }
713
-
714
- function resetTryEntry(entry) {
715
- var record = entry.completion || {};
716
- record.type = "normal";
717
- delete record.arg;
718
- entry.completion = record;
719
- }
720
-
721
- function Context(tryLocsList) {
722
- // The root entry object (effectively a try statement without a catch
723
- // or a finally block) gives us a place to store values thrown from
724
- // locations where there is no enclosing try statement.
725
- this.tryEntries = [{ tryLoc: "root" }];
726
- tryLocsList.forEach(pushTryEntry, this);
727
- this.reset(true);
728
- }
729
-
730
- exports.keys = function(object) {
731
- var keys = [];
732
- for (var key in object) {
733
- keys.push(key);
734
- }
735
- keys.reverse();
736
-
737
- // Rather than returning an object with a next method, we keep
738
- // things simple and return the next function itself.
739
- return function next() {
740
- while (keys.length) {
741
- var key = keys.pop();
742
- if (key in object) {
743
- next.value = key;
744
- next.done = false;
745
- return next;
746
- }
747
- }
748
-
749
- // To avoid creating an additional object, we just hang the .value
750
- // and .done properties off the next function object itself. This
751
- // also ensures that the minifier will not anonymize the function.
752
- next.done = true;
753
- return next;
754
- };
755
- };
756
-
757
- function values(iterable) {
758
- if (iterable) {
759
- var iteratorMethod = iterable[iteratorSymbol];
760
- if (iteratorMethod) {
761
- return iteratorMethod.call(iterable);
762
- }
763
-
764
- if (typeof iterable.next === "function") {
765
- return iterable;
766
- }
767
-
768
- if (!isNaN(iterable.length)) {
769
- var i = -1, next = function next() {
770
- while (++i < iterable.length) {
771
- if (hasOwn.call(iterable, i)) {
772
- next.value = iterable[i];
773
- next.done = false;
774
- return next;
775
- }
776
- }
777
-
778
- next.value = undefined$1;
779
- next.done = true;
780
-
781
- return next;
782
- };
783
-
784
- return next.next = next;
785
- }
786
- }
787
-
788
- // Return an iterator with no values.
789
- return { next: doneResult };
790
- }
791
- exports.values = values;
792
-
793
- function doneResult() {
794
- return { value: undefined$1, done: true };
795
- }
796
-
797
- Context.prototype = {
798
- constructor: Context,
799
-
800
- reset: function(skipTempReset) {
801
- this.prev = 0;
802
- this.next = 0;
803
- // Resetting context._sent for legacy support of Babel's
804
- // function.sent implementation.
805
- this.sent = this._sent = undefined$1;
806
- this.done = false;
807
- this.delegate = null;
808
-
809
- this.method = "next";
810
- this.arg = undefined$1;
811
-
812
- this.tryEntries.forEach(resetTryEntry);
813
-
814
- if (!skipTempReset) {
815
- for (var name in this) {
816
- // Not sure about the optimal order of these conditions:
817
- if (name.charAt(0) === "t" &&
818
- hasOwn.call(this, name) &&
819
- !isNaN(+name.slice(1))) {
820
- this[name] = undefined$1;
821
- }
822
- }
823
- }
824
- },
825
-
826
- stop: function() {
827
- this.done = true;
828
-
829
- var rootEntry = this.tryEntries[0];
830
- var rootRecord = rootEntry.completion;
831
- if (rootRecord.type === "throw") {
832
- throw rootRecord.arg;
833
- }
834
-
835
- return this.rval;
836
- },
837
-
838
- dispatchException: function(exception) {
839
- if (this.done) {
840
- throw exception;
841
- }
842
-
843
- var context = this;
844
- function handle(loc, caught) {
845
- record.type = "throw";
846
- record.arg = exception;
847
- context.next = loc;
848
-
849
- if (caught) {
850
- // If the dispatched exception was caught by a catch block,
851
- // then let that catch block handle the exception normally.
852
- context.method = "next";
853
- context.arg = undefined$1;
854
- }
855
-
856
- return !! caught;
857
- }
858
-
859
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
860
- var entry = this.tryEntries[i];
861
- var record = entry.completion;
862
-
863
- if (entry.tryLoc === "root") {
864
- // Exception thrown outside of any try block that could handle
865
- // it, so set the completion value of the entire function to
866
- // throw the exception.
867
- return handle("end");
868
- }
869
-
870
- if (entry.tryLoc <= this.prev) {
871
- var hasCatch = hasOwn.call(entry, "catchLoc");
872
- var hasFinally = hasOwn.call(entry, "finallyLoc");
873
-
874
- if (hasCatch && hasFinally) {
875
- if (this.prev < entry.catchLoc) {
876
- return handle(entry.catchLoc, true);
877
- } else if (this.prev < entry.finallyLoc) {
878
- return handle(entry.finallyLoc);
879
- }
880
-
881
- } else if (hasCatch) {
882
- if (this.prev < entry.catchLoc) {
883
- return handle(entry.catchLoc, true);
884
- }
885
-
886
- } else if (hasFinally) {
887
- if (this.prev < entry.finallyLoc) {
888
- return handle(entry.finallyLoc);
889
- }
890
-
891
- } else {
892
- throw new Error("try statement without catch or finally");
893
- }
894
- }
895
- }
896
- },
897
-
898
- abrupt: function(type, arg) {
899
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
900
- var entry = this.tryEntries[i];
901
- if (entry.tryLoc <= this.prev &&
902
- hasOwn.call(entry, "finallyLoc") &&
903
- this.prev < entry.finallyLoc) {
904
- var finallyEntry = entry;
905
- break;
906
- }
907
- }
908
-
909
- if (finallyEntry &&
910
- (type === "break" ||
911
- type === "continue") &&
912
- finallyEntry.tryLoc <= arg &&
913
- arg <= finallyEntry.finallyLoc) {
914
- // Ignore the finally entry if control is not jumping to a
915
- // location outside the try/catch block.
916
- finallyEntry = null;
917
- }
918
-
919
- var record = finallyEntry ? finallyEntry.completion : {};
920
- record.type = type;
921
- record.arg = arg;
922
-
923
- if (finallyEntry) {
924
- this.method = "next";
925
- this.next = finallyEntry.finallyLoc;
926
- return ContinueSentinel;
927
- }
928
-
929
- return this.complete(record);
930
- },
931
-
932
- complete: function(record, afterLoc) {
933
- if (record.type === "throw") {
934
- throw record.arg;
935
- }
936
-
937
- if (record.type === "break" ||
938
- record.type === "continue") {
939
- this.next = record.arg;
940
- } else if (record.type === "return") {
941
- this.rval = this.arg = record.arg;
942
- this.method = "return";
943
- this.next = "end";
944
- } else if (record.type === "normal" && afterLoc) {
945
- this.next = afterLoc;
946
- }
947
-
948
- return ContinueSentinel;
949
- },
950
-
951
- finish: function(finallyLoc) {
952
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
953
- var entry = this.tryEntries[i];
954
- if (entry.finallyLoc === finallyLoc) {
955
- this.complete(entry.completion, entry.afterLoc);
956
- resetTryEntry(entry);
957
- return ContinueSentinel;
958
- }
959
- }
960
- },
961
-
962
- "catch": function(tryLoc) {
963
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
964
- var entry = this.tryEntries[i];
965
- if (entry.tryLoc === tryLoc) {
966
- var record = entry.completion;
967
- if (record.type === "throw") {
968
- var thrown = record.arg;
969
- resetTryEntry(entry);
970
- }
971
- return thrown;
972
- }
973
- }
974
-
975
- // The context.catch method must only be called with a location
976
- // argument that corresponds to a known catch block.
977
- throw new Error("illegal catch attempt");
978
- },
979
-
980
- delegateYield: function(iterable, resultName, nextLoc) {
981
- this.delegate = {
982
- iterator: values(iterable),
983
- resultName: resultName,
984
- nextLoc: nextLoc
985
- };
986
-
987
- if (this.method === "next") {
988
- // Deliberately forget the last sent value so that we don't
989
- // accidentally pass it on to the delegate.
990
- this.arg = undefined$1;
991
- }
992
-
993
- return ContinueSentinel;
994
- }
995
- };
996
-
997
- // Regardless of whether this script is executing as a CommonJS module
998
- // or not, return the runtime object so that we can declare the variable
999
- // regeneratorRuntime in the outer scope, which allows this module to be
1000
- // injected easily by `bin/regenerator --include-runtime script.js`.
1001
- return exports;
1002
-
1003
- }(
1004
- // If this script is executing as a CommonJS module, use module.exports
1005
- // as the regeneratorRuntime namespace. Otherwise create a new empty
1006
- // object. Either way, the resulting object will be used to initialize
1007
- // the regeneratorRuntime variable at the top of this file.
1008
- module.exports
1009
- ));
1010
-
1011
- try {
1012
- regeneratorRuntime = runtime;
1013
- } catch (accidentalStrictMode) {
1014
- // This module should not be running in strict mode, so the above
1015
- // assignment should always work unless something is misconfigured. Just
1016
- // in case runtime.js accidentally runs in strict mode, in modern engines
1017
- // we can explicitly access globalThis. In older engines we can escape
1018
- // strict mode using a global Function call. This could conceivably fail
1019
- // if a Content Security Policy forbids using Function, but in that case
1020
- // the proper solution is to fix the accidental strict mode problem. If
1021
- // you've misconfigured your bundler to force strict mode and applied a
1022
- // CSP to forbid Function, and you're not willing to fix either of those
1023
- // problems, please detail your unique predicament in a GitHub issue.
1024
- if (typeof globalThis === "object") {
1025
- globalThis.regeneratorRuntime = runtime;
1026
- } else {
1027
- Function("r", "regeneratorRuntime = r")(runtime);
1028
- }
1029
- }
1030
- });
1031
-
1032
615
  var _personalMetaToPrefix;
1033
616
  var personalMetaToPrefix = (_personalMetaToPrefix = {}, _personalMetaToPrefix[MetadataCategory.Personal] = 'you', _personalMetaToPrefix[MetadataCategory.ChildPersonal] = 'child', _personalMetaToPrefix[MetadataCategory.OtherPersonal] = 'other', _personalMetaToPrefix);
1034
617
  /**
@@ -1038,7 +621,7 @@ var personalMetaToPrefix = (_personalMetaToPrefix = {}, _personalMetaToPrefix[Me
1038
621
  */
1039
622
 
1040
623
  function identificationToPersonalInformations(data, category) {
1041
- var _data$;
624
+ var _data;
1042
625
 
1043
626
  var prefix = personalMetaToPrefix[category];
1044
627
  return {
@@ -1048,7 +631,7 @@ function identificationToPersonalInformations(data, category) {
1048
631
  name: data[prefix + "Name"],
1049
632
  phone: data[prefix + "Phone"],
1050
633
  zip: data[prefix + "Zip"],
1051
- hid: (_data$ = data[prefix + "HID"]) != null ? _data$ : data[prefix + "ID"],
634
+ hid: (_data = data[prefix + "HID"]) != null ? _data : data[prefix + "ID"],
1052
635
  pharmacy: data[prefix + "Pharmacy"],
1053
636
  address: data[prefix + "Address"]
1054
637
  };
@@ -1257,9 +840,9 @@ function filterTriggeredAnsweredWithKind(_x, _x2) {
1257
840
  */
1258
841
 
1259
842
  function _filterTriggeredAnsweredWithKind() {
1260
- _filterTriggeredAnsweredWithKind = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(workflowData, kind) {
843
+ _filterTriggeredAnsweredWithKind = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(workflowData, kind) {
1261
844
  var flattenedAnswers, triggeredQuestionsWithKind, samePageAnswers, res;
1262
- return runtime_1.wrap(function _callee$(_context) {
845
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
1263
846
  while (1) {
1264
847
  switch (_context.prev = _context.next) {
1265
848
  case 0:
@@ -1303,9 +886,9 @@ function getWorkflowDataByCategory(_x3, _x4) {
1303
886
  }
1304
887
 
1305
888
  function _getWorkflowDataByCategory() {
1306
- _getWorkflowDataByCategory = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(workflowData, category) {
889
+ _getWorkflowDataByCategory = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(workflowData, category) {
1307
890
  var flattenedAnswers, triggeredQuestions, fields;
1308
- return runtime_1.wrap(function _callee2$(_context2) {
891
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1309
892
  while (1) {
1310
893
  switch (_context2.prev = _context2.next) {
1311
894
  case 0:
@@ -1376,8 +959,8 @@ function getImagesFromIndexDb(_x5) {
1376
959
  */
1377
960
 
1378
961
  function _getImagesFromIndexDb() {
1379
- _getImagesFromIndexDb = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee3(answer) {
1380
- return runtime_1.wrap(function _callee3$(_context3) {
962
+ _getImagesFromIndexDb = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(answer) {
963
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
1381
964
  while (1) {
1382
965
  switch (_context3.prev = _context3.next) {
1383
966
  case 0:
@@ -1453,9 +1036,9 @@ function populateWorkflowField(_x6, _x7) {
1453
1036
 
1454
1037
 
1455
1038
  function _populateWorkflowField() {
1456
- _populateWorkflowField = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(question, answerValue) {
1039
+ _populateWorkflowField = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(question, answerValue) {
1457
1040
  var answer, displayedAnswer;
1458
- return runtime_1.wrap(function _callee4$(_context4) {
1041
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
1459
1042
  while (1) {
1460
1043
  switch (_context4.prev = _context4.next) {
1461
1044
  case 0:
@@ -1647,10 +1230,10 @@ function registerPatient(_x, _x2, _x3, _x4, _x5, _x6, _x7) {
1647
1230
  */
1648
1231
 
1649
1232
  function _registerPatient() {
1650
- _registerPatient = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(patientUuid, consultRequest, workflow, oroClient, masterKey, recoveryQA, indexSearch) {
1233
+ _registerPatient = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(patientUuid, consultRequest, workflow, oroClient, masterKey, recoveryQA, indexSearch) {
1651
1234
  var consult, lockboxUuid, practitionerAdmin, retry, identity, errorsThrown, _ret;
1652
1235
 
1653
- return runtime_1.wrap(function _callee4$(_context4) {
1236
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
1654
1237
  while (1) {
1655
1238
  switch (_context4.prev = _context4.next) {
1656
1239
  case 0:
@@ -1672,11 +1255,11 @@ function _registerPatient() {
1672
1255
  }
1673
1256
 
1674
1257
  _context4.prev = 8;
1675
- return _context4.delegateYield( /*#__PURE__*/runtime_1.mark(function _callee3() {
1258
+ return _context4.delegateYield( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
1676
1259
  var _consultIndex, _identity, _identity2;
1677
1260
 
1678
1261
  var practitioners, grantPromises, consultIndex, consultIndexPromises;
1679
- return runtime_1.wrap(function _callee3$(_context3) {
1262
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
1680
1263
  while (1) {
1681
1264
  switch (_context3.prev = _context3.next) {
1682
1265
  case 0:
@@ -1747,7 +1330,6 @@ function _registerPatient() {
1747
1330
  return oroClient.grantLockbox(practitionerAdmin, lockboxUuid)["catch"](function (err) {
1748
1331
  console.error("Error while granting lockbox to practitioner admin " + practitionerAdmin, err); // if we cannot grant to the admin, then the registration will fail
1749
1332
 
1750
- // if we cannot grant to the admin, then the registration will fail
1751
1333
  errorsThrown.push(err);
1752
1334
  });
1753
1335
 
@@ -1756,15 +1338,14 @@ function _registerPatient() {
1756
1338
  grantPromises = practitioners.filter(function (practitioner) {
1757
1339
  return practitioner.uuid !== practitionerAdmin;
1758
1340
  }).map( /*#__PURE__*/function () {
1759
- var _ref = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(practitioner) {
1760
- return runtime_1.wrap(function _callee$(_context) {
1341
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(practitioner) {
1342
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
1761
1343
  while (1) {
1762
1344
  switch (_context.prev = _context.next) {
1763
1345
  case 0:
1764
1346
  return _context.abrupt("return", oroClient.grantLockbox(practitioner.uuid, lockboxUuid)["catch"](function (err) {
1765
1347
  console.error("Error while granting lockbox to practitioner", err); // Acceptable to continue as admin has already been granted, but we should still retry until the last retry remains
1766
1348
 
1767
- // Acceptable to continue as admin has already been granted, but we should still retry until the last retry remains
1768
1349
  if (retry <= 1) return;
1769
1350
  errorsThrown.push(err);
1770
1351
  }));
@@ -1790,15 +1371,14 @@ function _registerPatient() {
1790
1371
  }], _consultIndex); // the index will identify in which lockbox a consultation resides
1791
1372
 
1792
1373
  consultIndexPromises = practitioners.map( /*#__PURE__*/function () {
1793
- var _ref2 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(practitioner) {
1794
- return runtime_1.wrap(function _callee2$(_context2) {
1374
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(practitioner) {
1375
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1795
1376
  while (1) {
1796
1377
  switch (_context2.prev = _context2.next) {
1797
1378
  case 0:
1798
1379
  return _context2.abrupt("return", oroClient.vaultIndexAdd(consultIndex, practitioner.uuid)["catch"](function (err) {
1799
1380
  console.error("[SDK: registration] Error while adding to the practitioner's index " + practitioner.uuid, err); // Acceptable to continue as the index can be rebuilt, but we should still retry until the last retry remains
1800
1381
 
1801
- // Acceptable to continue as the index can be rebuilt, but we should still retry until the last retry remains
1802
1382
  if (retry <= 1) return;else errorsThrown.push(err);
1803
1383
  }));
1804
1384
 
@@ -1818,7 +1398,6 @@ function _registerPatient() {
1818
1398
  return storeImageAliases(consult.uuid, lockboxUuid, workflow, oroClient)["catch"](function (err) {
1819
1399
  console.error('[SDK: registration] Some errors happened during image upload', err); // Acceptable to continue as images can be requested during the consultation, but we should still retry until the last retry remains
1820
1400
 
1821
- // Acceptable to continue as images can be requested during the consultation, but we should still retry until the last retry remains
1822
1401
  if (retry <= 1) return;else errorsThrown.push(err);
1823
1402
  });
1824
1403
 
@@ -1839,7 +1418,6 @@ function _registerPatient() {
1839
1418
  return oroClient.updateMasterKey(patientUuid, masterKey, lockboxUuid)["catch"](function (err) {
1840
1419
  console.error("[SDK: registration] Error while updating master key", err); /// it's acceptable to continue registration (return old identity)
1841
1420
 
1842
- /// it's acceptable to continue registration (return old identity)
1843
1421
  if (retry <= 1) return;
1844
1422
  errorsThrown.push(err);
1845
1423
  return identity;
@@ -1864,7 +1442,6 @@ function _registerPatient() {
1864
1442
  return oroClient.updateSecurityQuestions(patientUuid, recoveryQA.recoverySecurityQuestions, recoveryQA.recoverySecurityAnswers, 2)["catch"](function (err) {
1865
1443
  console.error("[SDK: registration] Error while updating security questions", err); /// it's acceptable to continue registration (return old identity)
1866
1444
 
1867
- /// it's acceptable to continue registration (return old identity)
1868
1445
  if (retry <= 1) return;
1869
1446
  errorsThrown.push(err);
1870
1447
  return identity;
@@ -1888,7 +1465,6 @@ function _registerPatient() {
1888
1465
  console.error('[SDK: registration] personal information not found or another error occured during search indexing', err);
1889
1466
  if (retry <= 1) return; // this statement is to avoid failing the registration due to the failure in search indexing the consult, this practically implements a soft retry
1890
1467
 
1891
- // this statement is to avoid failing the registration due to the failure in search indexing the consult, this practically implements a soft retry
1892
1468
  errorsThrown.push(err);
1893
1469
  });
1894
1470
 
@@ -1985,9 +1561,9 @@ function getOrCreatePatientConsultationUuid(_x8, _x9) {
1985
1561
 
1986
1562
 
1987
1563
  function _getOrCreatePatientConsultationUuid() {
1988
- _getOrCreatePatientConsultationUuid = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee5(consult, oroClient) {
1564
+ _getOrCreatePatientConsultationUuid = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(consult, oroClient) {
1989
1565
  var payment;
1990
- return runtime_1.wrap(function _callee5$(_context5) {
1566
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
1991
1567
  while (1) {
1992
1568
  switch (_context5.prev = _context5.next) {
1993
1569
  case 0:
@@ -2042,9 +1618,9 @@ function getOrCreatePatientLockbox(_x10) {
2042
1618
 
2043
1619
 
2044
1620
  function _getOrCreatePatientLockbox() {
2045
- _getOrCreatePatientLockbox = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee6(oroClient) {
1621
+ _getOrCreatePatientLockbox = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(oroClient) {
2046
1622
  var grants, lockboxResponse, tokens;
2047
- return runtime_1.wrap(function _callee6$(_context6) {
1623
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
2048
1624
  while (1) {
2049
1625
  switch (_context6.prev = _context6.next) {
2050
1626
  case 0:
@@ -2104,8 +1680,8 @@ function storePatientData(_x11, _x12, _x13, _x14, _x15) {
2104
1680
  }
2105
1681
 
2106
1682
  function _storePatientData() {
2107
- _storePatientData = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee7(consultationId, isoLanguage, lockboxUuid, workflow, oroClient) {
2108
- return runtime_1.wrap(function _callee7$(_context7) {
1683
+ _storePatientData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(consultationId, isoLanguage, lockboxUuid, workflow, oroClient) {
1684
+ return _regeneratorRuntime().wrap(function _callee7$(_context7) {
2109
1685
  while (1) {
2110
1686
  switch (_context7.prev = _context7.next) {
2111
1687
  case 0:
@@ -2162,9 +1738,9 @@ function storeImageAliases(_x16, _x17, _x18, _x19) {
2162
1738
 
2163
1739
 
2164
1740
  function _storeImageAliases() {
2165
- _storeImageAliases = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8(consultationId, lockboxUuid, workflow, oroClient) {
1741
+ _storeImageAliases = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(consultationId, lockboxUuid, workflow, oroClient) {
2166
1742
  var images, nonNullImages, promises;
2167
- return runtime_1.wrap(function _callee8$(_context8) {
1743
+ return _regeneratorRuntime().wrap(function _callee8$(_context8) {
2168
1744
  while (1) {
2169
1745
  switch (_context8.prev = _context8.next) {
2170
1746
  case 0:
@@ -2216,8 +1792,8 @@ function extractAndStorePersonalWorkflowData(_x20, _x21, _x22, _x23, _x24) {
2216
1792
  */
2217
1793
 
2218
1794
  function _extractAndStorePersonalWorkflowData() {
2219
- _extractAndStorePersonalWorkflowData = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee9(workflow, lockboxUuid, consultationId, category, oroClient) {
2220
- return runtime_1.wrap(function _callee9$(_context9) {
1795
+ _extractAndStorePersonalWorkflowData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(workflow, lockboxUuid, consultationId, category, oroClient) {
1796
+ return _regeneratorRuntime().wrap(function _callee9$(_context9) {
2221
1797
  while (1) {
2222
1798
  switch (_context9.prev = _context9.next) {
2223
1799
  case 0:
@@ -2251,8 +1827,8 @@ function extractPersonalInfoFromWorkflowData(_x25) {
2251
1827
  */
2252
1828
 
2253
1829
  function _extractPersonalInfoFromWorkflowData() {
2254
- _extractPersonalInfoFromWorkflowData = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee10(workflow) {
2255
- return runtime_1.wrap(function _callee10$(_context10) {
1830
+ _extractPersonalInfoFromWorkflowData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(workflow) {
1831
+ return _regeneratorRuntime().wrap(function _callee10$(_context10) {
2256
1832
  while (1) {
2257
1833
  switch (_context10.prev = _context10.next) {
2258
1834
  case 0:
@@ -2282,10 +1858,10 @@ function buildConsultSearchIndex(_x26, _x27, _x28) {
2282
1858
  }
2283
1859
 
2284
1860
  function _buildConsultSearchIndex() {
2285
- _buildConsultSearchIndex = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee11(consult, workflow, oroClient) {
1861
+ _buildConsultSearchIndex = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(consult, workflow, oroClient) {
2286
1862
  var terms, _yield$extractPersona, personalInfoPopulatedWfData, childPersonalInfoPopulatedWfData, otherPersonalInfoPopulatedWfData, personalInfo, childPersonalInfo, otherPersonalInfo;
2287
1863
 
2288
- return runtime_1.wrap(function _callee11$(_context11) {
1864
+ return _regeneratorRuntime().wrap(function _callee11$(_context11) {
2289
1865
  while (1) {
2290
1866
  switch (_context11.prev = _context11.next) {
2291
1867
  case 0:
@@ -2406,10 +1982,10 @@ function filterGrantsWithLockboxMetadata(_x, _x2) {
2406
1982
  }
2407
1983
 
2408
1984
  function _filterGrantsWithLockboxMetadata() {
2409
- _filterGrantsWithLockboxMetadata = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(oroClient, filter) {
1985
+ _filterGrantsWithLockboxMetadata = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(oroClient, filter) {
2410
1986
  var grants, filteredGrants, _iterator, _step, grant, consultationIdExistsInMetadata;
2411
1987
 
2412
- return runtime_1.wrap(function _callee$(_context) {
1988
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
2413
1989
  while (1) {
2414
1990
  switch (_context.prev = _context.next) {
2415
1991
  case 0:
@@ -2482,8 +2058,8 @@ var OroClient = /*#__PURE__*/function () {
2482
2058
  _proto.cleanIndex =
2483
2059
  /*#__PURE__*/
2484
2060
  function () {
2485
- var _cleanIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee() {
2486
- return runtime_1.wrap(function _callee$(_context) {
2061
+ var _cleanIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
2062
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
2487
2063
  while (1) {
2488
2064
  switch (_context.prev = _context.next) {
2489
2065
  case 0:
@@ -2520,9 +2096,9 @@ var OroClient = /*#__PURE__*/function () {
2520
2096
  _proto.signUp =
2521
2097
  /*#__PURE__*/
2522
2098
  function () {
2523
- var _signUp = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(email, password, practice, tosAndCpAcceptance, tokenData, subscription, skipEmailValidation) {
2099
+ var _signUp = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(email, password, practice, tosAndCpAcceptance, tokenData, subscription, skipEmailValidation) {
2524
2100
  var privateKey, symmetricEncryptor, recoveryPassword, hashedPassword, emailConfirmed, signupRequest, identity, symetricEncryptor;
2525
- return runtime_1.wrap(function _callee2$(_context2) {
2101
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
2526
2102
  while (1) {
2527
2103
  switch (_context2.prev = _context2.next) {
2528
2104
  case 0:
@@ -2581,9 +2157,9 @@ var OroClient = /*#__PURE__*/function () {
2581
2157
  _proto.confirmEmail =
2582
2158
  /*#__PURE__*/
2583
2159
  function () {
2584
- var _confirmEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee3(accessToken) {
2160
+ var _confirmEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(accessToken) {
2585
2161
  var claims;
2586
- return runtime_1.wrap(function _callee3$(_context3) {
2162
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
2587
2163
  while (1) {
2588
2164
  switch (_context3.prev = _context3.next) {
2589
2165
  case 0:
@@ -2628,9 +2204,9 @@ var OroClient = /*#__PURE__*/function () {
2628
2204
  _proto.signIn =
2629
2205
  /*#__PURE__*/
2630
2206
  function () {
2631
- var _signIn = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(practiceUuid, email, password, otp) {
2207
+ var _signIn = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(practiceUuid, email, password, otp) {
2632
2208
  var hashedPassword, tokenRequest, userUuid;
2633
- return runtime_1.wrap(function _callee4$(_context4) {
2209
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
2634
2210
  while (1) {
2635
2211
  switch (_context4.prev = _context4.next) {
2636
2212
  case 0:
@@ -2683,9 +2259,9 @@ var OroClient = /*#__PURE__*/function () {
2683
2259
  _proto.resumeSession =
2684
2260
  /*#__PURE__*/
2685
2261
  function () {
2686
- var _resumeSession = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee5() {
2262
+ var _resumeSession = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
2687
2263
  var id, recoveryPayload, recoveryKey, symmetricDecryptor, privateKey;
2688
- return runtime_1.wrap(function _callee5$(_context5) {
2264
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
2689
2265
  while (1) {
2690
2266
  switch (_context5.prev = _context5.next) {
2691
2267
  case 0:
@@ -2786,8 +2362,8 @@ var OroClient = /*#__PURE__*/function () {
2786
2362
  _proto.signOut =
2787
2363
  /*#__PURE__*/
2788
2364
  function () {
2789
- var _signOut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee6() {
2790
- return runtime_1.wrap(function _callee6$(_context6) {
2365
+ var _signOut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
2366
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
2791
2367
  while (1) {
2792
2368
  switch (_context6.prev = _context6.next) {
2793
2369
  case 0:
@@ -2837,8 +2413,8 @@ var OroClient = /*#__PURE__*/function () {
2837
2413
  _proto.registerPatient =
2838
2414
  /*#__PURE__*/
2839
2415
  function () {
2840
- var _registerPatient2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee7(patientUuid, consult, workflow, recoveryQA, indexSearch) {
2841
- return runtime_1.wrap(function _callee7$(_context7) {
2416
+ var _registerPatient2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(patientUuid, consult, workflow, recoveryQA, indexSearch) {
2417
+ return _regeneratorRuntime().wrap(function _callee7$(_context7) {
2842
2418
  while (1) {
2843
2419
  switch (_context7.prev = _context7.next) {
2844
2420
  case 0:
@@ -2879,12 +2455,12 @@ var OroClient = /*#__PURE__*/function () {
2879
2455
  _proto.forceUpdateIndexEntries =
2880
2456
  /*#__PURE__*/
2881
2457
  function () {
2882
- var _forceUpdateIndexEntries = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee9() {
2458
+ var _forceUpdateIndexEntries = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
2883
2459
  var _this = this,
2884
2460
  _this$vaultIndexAdd;
2885
2461
 
2886
2462
  var grants, indexConsultLockbox;
2887
- return runtime_1.wrap(function _callee9$(_context9) {
2463
+ return _regeneratorRuntime().wrap(function _callee9$(_context9) {
2888
2464
  while (1) {
2889
2465
  switch (_context9.prev = _context9.next) {
2890
2466
  case 0:
@@ -2895,8 +2471,8 @@ var OroClient = /*#__PURE__*/function () {
2895
2471
  grants = _context9.sent;
2896
2472
  _context9.next = 5;
2897
2473
  return Promise.all(grants.map( /*#__PURE__*/function () {
2898
- var _ref2 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8(grant) {
2899
- return runtime_1.wrap(function _callee8$(_context8) {
2474
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(grant) {
2475
+ return _regeneratorRuntime().wrap(function _callee8$(_context8) {
2900
2476
  while (1) {
2901
2477
  switch (_context8.prev = _context8.next) {
2902
2478
  case 0:
@@ -2972,10 +2548,10 @@ var OroClient = /*#__PURE__*/function () {
2972
2548
  _proto.vaultIndexAdd =
2973
2549
  /*#__PURE__*/
2974
2550
  function () {
2975
- var _vaultIndexAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee10(entries, indexOwnerUuid) {
2551
+ var _vaultIndexAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(entries, indexOwnerUuid) {
2976
2552
  var rsaPub, base64IndexOwnerPubKey, encryptedIndex, _i, _Object$keys, keyString, key;
2977
2553
 
2978
- return runtime_1.wrap(function _callee10$(_context10) {
2554
+ return _regeneratorRuntime().wrap(function _callee10$(_context10) {
2979
2555
  while (1) {
2980
2556
  switch (_context10.prev = _context10.next) {
2981
2557
  case 0:
@@ -3073,9 +2649,9 @@ var OroClient = /*#__PURE__*/function () {
3073
2649
  _proto.grantLockbox =
3074
2650
  /*#__PURE__*/
3075
2651
  function () {
3076
- var _grantLockbox = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee11(granteeUuid, lockboxUuid, lockboxOwnerUuid) {
2652
+ var _grantLockbox = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(granteeUuid, lockboxUuid, lockboxOwnerUuid) {
3077
2653
  var secret, base64GranteePublicKey, granteePublicKey, granteeEncryptedSecret, request;
3078
- return runtime_1.wrap(function _callee11$(_context11) {
2654
+ return _regeneratorRuntime().wrap(function _callee11$(_context11) {
3079
2655
  while (1) {
3080
2656
  switch (_context11.prev = _context11.next) {
3081
2657
  case 0:
@@ -3135,9 +2711,9 @@ var OroClient = /*#__PURE__*/function () {
3135
2711
  _proto.createMessageData =
3136
2712
  /*#__PURE__*/
3137
2713
  function () {
3138
- var _createMessageData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee12(lockboxUuid, message, consultationId, lockboxOwnerUuid, previousDataUuid) {
2714
+ var _createMessageData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(lockboxUuid, message, consultationId, lockboxOwnerUuid, previousDataUuid) {
3139
2715
  var symmetricEncryptor, encryptedData, encryptedPrivateMeta, meta, request;
3140
- return runtime_1.wrap(function _callee12$(_context12) {
2716
+ return _regeneratorRuntime().wrap(function _callee12$(_context12) {
3141
2717
  while (1) {
3142
2718
  switch (_context12.prev = _context12.next) {
3143
2719
  case 0:
@@ -3207,9 +2783,9 @@ var OroClient = /*#__PURE__*/function () {
3207
2783
  _proto.createMessageAttachmentData =
3208
2784
  /*#__PURE__*/
3209
2785
  function () {
3210
- var _createMessageAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee13(lockboxUuid, data, consultationId, lockboxOwnerUuid, previousDataUuid) {
2786
+ var _createMessageAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(lockboxUuid, data, consultationId, lockboxOwnerUuid, previousDataUuid) {
3211
2787
  var symmetricEncryptor, encryptedData, encryptedPrivateMeta, meta, request;
3212
- return runtime_1.wrap(function _callee13$(_context13) {
2788
+ return _regeneratorRuntime().wrap(function _callee13$(_context13) {
3213
2789
  while (1) {
3214
2790
  switch (_context13.prev = _context13.next) {
3215
2791
  case 0:
@@ -3294,8 +2870,8 @@ var OroClient = /*#__PURE__*/function () {
3294
2870
  _proto.createConsultationAttachmentData =
3295
2871
  /*#__PURE__*/
3296
2872
  function () {
3297
- var _createConsultationAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee14(lockboxUuid, data, consultationId, documentType, lockboxOwnerUuid, previousDataUuid) {
3298
- return runtime_1.wrap(function _callee14$(_context14) {
2873
+ var _createConsultationAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(lockboxUuid, data, consultationId, documentType, lockboxOwnerUuid, previousDataUuid) {
2874
+ return _regeneratorRuntime().wrap(function _callee14$(_context14) {
3299
2875
  while (1) {
3300
2876
  switch (_context14.prev = _context14.next) {
3301
2877
  case 0:
@@ -3366,9 +2942,9 @@ var OroClient = /*#__PURE__*/function () {
3366
2942
  _proto.createJsonData =
3367
2943
  /*#__PURE__*/
3368
2944
  function () {
3369
- var _createJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee15(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
2945
+ var _createJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
3370
2946
  var symmetricEncryptor, encryptedData, encryptedPrivateMeta, request;
3371
- return runtime_1.wrap(function _callee15$(_context15) {
2947
+ return _regeneratorRuntime().wrap(function _callee15$(_context15) {
3372
2948
  while (1) {
3373
2949
  switch (_context15.prev = _context15.next) {
3374
2950
  case 0:
@@ -3422,9 +2998,9 @@ var OroClient = /*#__PURE__*/function () {
3422
2998
  _proto.getOrInsertJsonData =
3423
2999
  /*#__PURE__*/
3424
3000
  function () {
3425
- var _getOrInsertJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee16(lockboxUuid, data, publicMetadata, privateMetadata, forceReplace) {
3001
+ var _getOrInsertJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(lockboxUuid, data, publicMetadata, privateMetadata, forceReplace) {
3426
3002
  var manifest;
3427
- return runtime_1.wrap(function _callee16$(_context16) {
3003
+ return _regeneratorRuntime().wrap(function _callee16$(_context16) {
3428
3004
  while (1) {
3429
3005
  switch (_context16.prev = _context16.next) {
3430
3006
  case 0:
@@ -3487,9 +3063,9 @@ var OroClient = /*#__PURE__*/function () {
3487
3063
  _proto.createBytesData =
3488
3064
  /*#__PURE__*/
3489
3065
  function () {
3490
- var _createBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee17(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
3066
+ var _createBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
3491
3067
  var symmetricEncryptor, encryptedData, encryptedPrivateMeta, request;
3492
- return runtime_1.wrap(function _callee17$(_context17) {
3068
+ return _regeneratorRuntime().wrap(function _callee17$(_context17) {
3493
3069
  while (1) {
3494
3070
  switch (_context17.prev = _context17.next) {
3495
3071
  case 0:
@@ -3545,10 +3121,10 @@ var OroClient = /*#__PURE__*/function () {
3545
3121
  _proto.getJsonData =
3546
3122
  /*#__PURE__*/
3547
3123
  function () {
3548
- var _getJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee18(lockboxUuid, dataUuid, lockboxOwnerUuid) {
3124
+ var _getJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(lockboxUuid, dataUuid, lockboxOwnerUuid) {
3549
3125
  var _yield$Promise$all, encryptedPayload, symmetricDecryptor;
3550
3126
 
3551
- return runtime_1.wrap(function _callee18$(_context18) {
3127
+ return _regeneratorRuntime().wrap(function _callee18$(_context18) {
3552
3128
  while (1) {
3553
3129
  switch (_context18.prev = _context18.next) {
3554
3130
  case 0:
@@ -3595,10 +3171,10 @@ var OroClient = /*#__PURE__*/function () {
3595
3171
  _proto.getBytesData =
3596
3172
  /*#__PURE__*/
3597
3173
  function () {
3598
- var _getBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee19(lockboxUuid, dataUuid, lockboxOwnerUuid) {
3174
+ var _getBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(lockboxUuid, dataUuid, lockboxOwnerUuid) {
3599
3175
  var _yield$Promise$all2, encryptedPayload, symmetricDecryptor;
3600
3176
 
3601
- return runtime_1.wrap(function _callee19$(_context19) {
3177
+ return _regeneratorRuntime().wrap(function _callee19$(_context19) {
3602
3178
  while (1) {
3603
3179
  switch (_context19.prev = _context19.next) {
3604
3180
  case 0:
@@ -3648,9 +3224,9 @@ var OroClient = /*#__PURE__*/function () {
3648
3224
  _proto.getGrants =
3649
3225
  /*#__PURE__*/
3650
3226
  function () {
3651
- var _getGrants = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee20(filter) {
3227
+ var _getGrants = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(filter) {
3652
3228
  var filterString, currentAccountRole, encryptedGrants, decryptedGrants, grantsByConsultLockbox, decryptedConsults;
3653
- return runtime_1.wrap(function _callee20$(_context20) {
3229
+ return _regeneratorRuntime().wrap(function _callee20$(_context20) {
3654
3230
  while (1) {
3655
3231
  switch (_context20.prev = _context20.next) {
3656
3232
  case 0:
@@ -3781,8 +3357,8 @@ var OroClient = /*#__PURE__*/function () {
3781
3357
  _proto.getAccountRole =
3782
3358
  /*#__PURE__*/
3783
3359
  function () {
3784
- var _getAccountRole = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee21() {
3785
- return runtime_1.wrap(function _callee21$(_context21) {
3360
+ var _getAccountRole = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21() {
3361
+ return _regeneratorRuntime().wrap(function _callee21$(_context21) {
3786
3362
  while (1) {
3787
3363
  switch (_context21.prev = _context21.next) {
3788
3364
  case 0:
@@ -3818,9 +3394,9 @@ var OroClient = /*#__PURE__*/function () {
3818
3394
  _proto.getCachedSecretCryptor =
3819
3395
  /*#__PURE__*/
3820
3396
  function () {
3821
- var _getCachedSecretCryptor = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee22(lockboxUuid, lockboxOwnerUuid) {
3397
+ var _getCachedSecretCryptor = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(lockboxUuid, lockboxOwnerUuid) {
3822
3398
  var index, encryptedSecret, secret, cryptor;
3823
- return runtime_1.wrap(function _callee22$(_context22) {
3399
+ return _regeneratorRuntime().wrap(function _callee22$(_context22) {
3824
3400
  while (1) {
3825
3401
  switch (_context22.prev = _context22.next) {
3826
3402
  case 0:
@@ -3885,8 +3461,8 @@ var OroClient = /*#__PURE__*/function () {
3885
3461
  _proto.getPersonalInformationsFromConsultId =
3886
3462
  /*#__PURE__*/
3887
3463
  function () {
3888
- var _getPersonalInformationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee23(consultationId, category, forceRefresh) {
3889
- return runtime_1.wrap(function _callee23$(_context23) {
3464
+ var _getPersonalInformationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23(consultationId, category, forceRefresh) {
3465
+ return _regeneratorRuntime().wrap(function _callee23$(_context23) {
3890
3466
  while (1) {
3891
3467
  switch (_context23.prev = _context23.next) {
3892
3468
  case 0:
@@ -3923,8 +3499,8 @@ var OroClient = /*#__PURE__*/function () {
3923
3499
  _proto.getMedicalDataFromConsultId =
3924
3500
  /*#__PURE__*/
3925
3501
  function () {
3926
- var _getMedicalDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee24(consultationId, forceRefresh) {
3927
- return runtime_1.wrap(function _callee24$(_context24) {
3502
+ var _getMedicalDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24(consultationId, forceRefresh) {
3503
+ return _regeneratorRuntime().wrap(function _callee24$(_context24) {
3928
3504
  while (1) {
3929
3505
  switch (_context24.prev = _context24.next) {
3930
3506
  case 0:
@@ -3950,12 +3526,12 @@ var OroClient = /*#__PURE__*/function () {
3950
3526
  }();
3951
3527
 
3952
3528
  _proto.getMetaCategoryFromConsultId = /*#__PURE__*/function () {
3953
- var _getMetaCategoryFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee26(consultationId, category, forceRefresh) {
3529
+ var _getMetaCategoryFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26(consultationId, category, forceRefresh) {
3954
3530
  var _this2 = this;
3955
3531
 
3956
3532
  var grants, workflowData, _loop, _iterator, _step;
3957
3533
 
3958
- return runtime_1.wrap(function _callee26$(_context27) {
3534
+ return _regeneratorRuntime().wrap(function _callee26$(_context27) {
3959
3535
  while (1) {
3960
3536
  switch (_context27.prev = _context27.next) {
3961
3537
  case 0:
@@ -3971,9 +3547,9 @@ var OroClient = /*#__PURE__*/function () {
3971
3547
  case 3:
3972
3548
  grants = _context27.sent;
3973
3549
  workflowData = [];
3974
- _loop = /*#__PURE__*/runtime_1.mark(function _loop() {
3550
+ _loop = /*#__PURE__*/_regeneratorRuntime().mark(function _loop() {
3975
3551
  var grant, manifest, data;
3976
- return runtime_1.wrap(function _loop$(_context26) {
3552
+ return _regeneratorRuntime().wrap(function _loop$(_context26) {
3977
3553
  while (1) {
3978
3554
  switch (_context26.prev = _context26.next) {
3979
3555
  case 0:
@@ -4007,8 +3583,8 @@ var OroClient = /*#__PURE__*/function () {
4007
3583
  case 8:
4008
3584
  _context26.next = 10;
4009
3585
  return Promise.all(manifest.map( /*#__PURE__*/function () {
4010
- var _ref3 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee25(entry) {
4011
- return runtime_1.wrap(function _callee25$(_context25) {
3586
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25(entry) {
3587
+ return _regeneratorRuntime().wrap(function _callee25$(_context25) {
4012
3588
  while (1) {
4013
3589
  switch (_context25.prev = _context25.next) {
4014
3590
  case 0:
@@ -4092,9 +3668,9 @@ var OroClient = /*#__PURE__*/function () {
4092
3668
  _proto.getPersonalInformations =
4093
3669
  /*#__PURE__*/
4094
3670
  function () {
4095
- var _getPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee27(userId) {
3671
+ var _getPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee27(userId) {
4096
3672
  var grant, lockboxUuid, lockboxOwnerUuid, identificationDataUuid;
4097
- return runtime_1.wrap(function _callee27$(_context28) {
3673
+ return _regeneratorRuntime().wrap(function _callee27$(_context28) {
4098
3674
  while (1) {
4099
3675
  switch (_context28.prev = _context28.next) {
4100
3676
  case 0:
@@ -4180,9 +3756,9 @@ var OroClient = /*#__PURE__*/function () {
4180
3756
  _proto.getGrantFromConsultId =
4181
3757
  /*#__PURE__*/
4182
3758
  function () {
4183
- var _getGrantFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee28(consultationId) {
3759
+ var _getGrantFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee28(consultationId) {
4184
3760
  var grants;
4185
- return runtime_1.wrap(function _callee28$(_context29) {
3761
+ return _regeneratorRuntime().wrap(function _callee28$(_context29) {
4186
3762
  while (1) {
4187
3763
  switch (_context29.prev = _context29.next) {
4188
3764
  case 0:
@@ -4228,9 +3804,9 @@ var OroClient = /*#__PURE__*/function () {
4228
3804
  _proto.getIdentityFromConsultId =
4229
3805
  /*#__PURE__*/
4230
3806
  function () {
4231
- var _getIdentityFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee29(consultationId) {
3807
+ var _getIdentityFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee29(consultationId) {
4232
3808
  var grant;
4233
- return runtime_1.wrap(function _callee29$(_context30) {
3809
+ return _regeneratorRuntime().wrap(function _callee29$(_context30) {
4234
3810
  while (1) {
4235
3811
  switch (_context30.prev = _context30.next) {
4236
3812
  case 0:
@@ -4283,11 +3859,11 @@ var OroClient = /*#__PURE__*/function () {
4283
3859
  _proto.getLockboxManifest =
4284
3860
  /*#__PURE__*/
4285
3861
  function () {
4286
- var _getLockboxManifest = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee31(lockboxUuid, filter, expandPrivateMetadata, lockboxOwnerUuid, forceRefresh) {
3862
+ var _getLockboxManifest = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee31(lockboxUuid, filter, expandPrivateMetadata, lockboxOwnerUuid, forceRefresh) {
4287
3863
  var _this3 = this;
4288
3864
 
4289
3865
  var manifestKey;
4290
- return runtime_1.wrap(function _callee31$(_context32) {
3866
+ return _regeneratorRuntime().wrap(function _callee31$(_context32) {
4291
3867
  while (1) {
4292
3868
  switch (_context32.prev = _context32.next) {
4293
3869
  case 0:
@@ -4312,9 +3888,9 @@ var OroClient = /*#__PURE__*/function () {
4312
3888
  case 4:
4313
3889
  return _context32.abrupt("return", this.vaultClient.lockboxManifestGet(lockboxUuid, filter, lockboxOwnerUuid).then(function (manifest) {
4314
3890
  return Promise.all(manifest.map( /*#__PURE__*/function () {
4315
- var _ref4 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee30(entry) {
3891
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee30(entry) {
4316
3892
  var privateMeta;
4317
- return runtime_1.wrap(function _callee30$(_context31) {
3893
+ return _regeneratorRuntime().wrap(function _callee30$(_context31) {
4318
3894
  while (1) {
4319
3895
  switch (_context31.prev = _context31.next) {
4320
3896
  case 0:
@@ -4375,11 +3951,11 @@ var OroClient = /*#__PURE__*/function () {
4375
3951
  _proto.createPersonalInformations =
4376
3952
  /*#__PURE__*/
4377
3953
  function () {
4378
- var _createPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee32(identity, data, dataUuid) {
3954
+ var _createPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee32(identity, data, dataUuid) {
4379
3955
  var _yield$this$getGrants;
4380
3956
 
4381
3957
  var lockboxUuid;
4382
- return runtime_1.wrap(function _callee32$(_context33) {
3958
+ return _regeneratorRuntime().wrap(function _callee32$(_context33) {
4383
3959
  while (1) {
4384
3960
  switch (_context33.prev = _context33.next) {
4385
3961
  case 0:
@@ -4445,11 +4021,11 @@ var OroClient = /*#__PURE__*/function () {
4445
4021
  _proto.createUserPreference =
4446
4022
  /*#__PURE__*/
4447
4023
  function () {
4448
- var _createUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee33(identity, preference, dataUuid) {
4024
+ var _createUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee33(identity, preference, dataUuid) {
4449
4025
  var _yield$this$getGrants2;
4450
4026
 
4451
4027
  var lockboxUuid;
4452
- return runtime_1.wrap(function _callee33$(_context34) {
4028
+ return _regeneratorRuntime().wrap(function _callee33$(_context34) {
4453
4029
  while (1) {
4454
4030
  switch (_context34.prev = _context34.next) {
4455
4031
  case 0:
@@ -4513,9 +4089,9 @@ var OroClient = /*#__PURE__*/function () {
4513
4089
  _proto.getDataFromGrant =
4514
4090
  /*#__PURE__*/
4515
4091
  function () {
4516
- var _getDataFromGrant = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee34(grant, filter) {
4092
+ var _getDataFromGrant = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee34(grant, filter) {
4517
4093
  var lockboxUuid, lockboxOwnerUuid, identificationDataUuid;
4518
- return runtime_1.wrap(function _callee34$(_context35) {
4094
+ return _regeneratorRuntime().wrap(function _callee34$(_context35) {
4519
4095
  while (1) {
4520
4096
  switch (_context35.prev = _context35.next) {
4521
4097
  case 0:
@@ -4581,9 +4157,9 @@ var OroClient = /*#__PURE__*/function () {
4581
4157
  _proto.getUserPreferenceFromConsultId =
4582
4158
  /*#__PURE__*/
4583
4159
  function () {
4584
- var _getUserPreferenceFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee35(consultationId) {
4160
+ var _getUserPreferenceFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee35(consultationId) {
4585
4161
  var grant;
4586
- return runtime_1.wrap(function _callee35$(_context36) {
4162
+ return _regeneratorRuntime().wrap(function _callee35$(_context36) {
4587
4163
  while (1) {
4588
4164
  switch (_context36.prev = _context36.next) {
4589
4165
  case 0:
@@ -4630,9 +4206,9 @@ var OroClient = /*#__PURE__*/function () {
4630
4206
  _proto.getUserPreference =
4631
4207
  /*#__PURE__*/
4632
4208
  function () {
4633
- var _getUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee36(identity) {
4209
+ var _getUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee36(identity) {
4634
4210
  var grant;
4635
- return runtime_1.wrap(function _callee36$(_context37) {
4211
+ return _regeneratorRuntime().wrap(function _callee36$(_context37) {
4636
4212
  while (1) {
4637
4213
  switch (_context37.prev = _context37.next) {
4638
4214
  case 0:
@@ -4681,9 +4257,9 @@ var OroClient = /*#__PURE__*/function () {
4681
4257
  _proto.getRecoveryDataFromConsultId =
4682
4258
  /*#__PURE__*/
4683
4259
  function () {
4684
- var _getRecoveryDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee37(consultationId) {
4260
+ var _getRecoveryDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee37(consultationId) {
4685
4261
  var grant;
4686
- return runtime_1.wrap(function _callee37$(_context38) {
4262
+ return _regeneratorRuntime().wrap(function _callee37$(_context38) {
4687
4263
  while (1) {
4688
4264
  switch (_context38.prev = _context38.next) {
4689
4265
  case 0:
@@ -4730,9 +4306,9 @@ var OroClient = /*#__PURE__*/function () {
4730
4306
  _proto.getRecoveryData =
4731
4307
  /*#__PURE__*/
4732
4308
  function () {
4733
- var _getRecoveryData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee38(identity) {
4309
+ var _getRecoveryData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee38(identity) {
4734
4310
  var grant;
4735
- return runtime_1.wrap(function _callee38$(_context39) {
4311
+ return _regeneratorRuntime().wrap(function _callee38$(_context39) {
4736
4312
  while (1) {
4737
4313
  switch (_context39.prev = _context39.next) {
4738
4314
  case 0:
@@ -4786,10 +4362,10 @@ var OroClient = /*#__PURE__*/function () {
4786
4362
  _proto.getAssignedConsultations =
4787
4363
  /*#__PURE__*/
4788
4364
  function () {
4789
- var _getAssignedConsultations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee40(practiceUuid) {
4365
+ var _getAssignedConsultations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee40(practiceUuid) {
4790
4366
  var _this4 = this;
4791
4367
 
4792
- return runtime_1.wrap(function _callee40$(_context41) {
4368
+ return _regeneratorRuntime().wrap(function _callee40$(_context41) {
4793
4369
  while (1) {
4794
4370
  switch (_context41.prev = _context41.next) {
4795
4371
  case 0:
@@ -4804,8 +4380,8 @@ var OroClient = /*#__PURE__*/function () {
4804
4380
  documentType: DocumentType.PopulatedWorkflowData
4805
4381
  }, true, undefined).then(function (manifest) {
4806
4382
  return Promise.all(manifest.map( /*#__PURE__*/function () {
4807
- var _ref5 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee39(entry) {
4808
- return runtime_1.wrap(function _callee39$(_context40) {
4383
+ var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee39(entry) {
4384
+ return _regeneratorRuntime().wrap(function _callee39$(_context40) {
4809
4385
  while (1) {
4810
4386
  switch (_context40.prev = _context40.next) {
4811
4387
  case 0:
@@ -4859,11 +4435,11 @@ var OroClient = /*#__PURE__*/function () {
4859
4435
  _proto.getPastConsultationsFromConsultId =
4860
4436
  /*#__PURE__*/
4861
4437
  function () {
4862
- var _getPastConsultationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee42(consultationId, practiceUuid) {
4438
+ var _getPastConsultationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee42(consultationId, practiceUuid) {
4863
4439
  var _this5 = this;
4864
4440
 
4865
4441
  var grant, consultationsInLockbox;
4866
- return runtime_1.wrap(function _callee42$(_context43) {
4442
+ return _regeneratorRuntime().wrap(function _callee42$(_context43) {
4867
4443
  while (1) {
4868
4444
  switch (_context43.prev = _context43.next) {
4869
4445
  case 0:
@@ -4902,8 +4478,8 @@ var OroClient = /*#__PURE__*/function () {
4902
4478
  case 10:
4903
4479
  _context43.next = 12;
4904
4480
  return Promise.all(consultationsInLockbox.map( /*#__PURE__*/function () {
4905
- var _ref6 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee41(consultId) {
4906
- return runtime_1.wrap(function _callee41$(_context42) {
4481
+ var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee41(consultId) {
4482
+ return _regeneratorRuntime().wrap(function _callee41$(_context42) {
4907
4483
  while (1) {
4908
4484
  switch (_context42.prev = _context42.next) {
4909
4485
  case 0:
@@ -4954,10 +4530,10 @@ var OroClient = /*#__PURE__*/function () {
4954
4530
  _proto.getPatientConsultationData =
4955
4531
  /*#__PURE__*/
4956
4532
  function () {
4957
- var _getPatientConsultationData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee43(consultationId, forceRefresh) {
4533
+ var _getPatientConsultationData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee43(consultationId, forceRefresh) {
4958
4534
  var _this6 = this;
4959
4535
 
4960
- return runtime_1.wrap(function _callee43$(_context44) {
4536
+ return _regeneratorRuntime().wrap(function _callee43$(_context44) {
4961
4537
  while (1) {
4962
4538
  switch (_context44.prev = _context44.next) {
4963
4539
  case 0:
@@ -5011,8 +4587,8 @@ var OroClient = /*#__PURE__*/function () {
5011
4587
  _proto.getPatientPrescriptionsList =
5012
4588
  /*#__PURE__*/
5013
4589
  function () {
5014
- var _getPatientPrescriptionsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee44(consultationId) {
5015
- return runtime_1.wrap(function _callee44$(_context45) {
4590
+ var _getPatientPrescriptionsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee44(consultationId) {
4591
+ return _regeneratorRuntime().wrap(function _callee44$(_context45) {
5016
4592
  while (1) {
5017
4593
  switch (_context45.prev = _context45.next) {
5018
4594
  case 0:
@@ -5045,8 +4621,8 @@ var OroClient = /*#__PURE__*/function () {
5045
4621
  _proto.getPatientResultsList =
5046
4622
  /*#__PURE__*/
5047
4623
  function () {
5048
- var _getPatientResultsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee45(consultationId) {
5049
- return runtime_1.wrap(function _callee45$(_context46) {
4624
+ var _getPatientResultsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee45(consultationId) {
4625
+ return _regeneratorRuntime().wrap(function _callee45$(_context46) {
5050
4626
  while (1) {
5051
4627
  switch (_context46.prev = _context46.next) {
5052
4628
  case 0:
@@ -5079,8 +4655,8 @@ var OroClient = /*#__PURE__*/function () {
5079
4655
  _proto.getPatientTreatmentPlans =
5080
4656
  /*#__PURE__*/
5081
4657
  function () {
5082
- var _getPatientTreatmentPlans = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee46(consultationId) {
5083
- return runtime_1.wrap(function _callee46$(_context47) {
4658
+ var _getPatientTreatmentPlans = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee46(consultationId) {
4659
+ return _regeneratorRuntime().wrap(function _callee46$(_context47) {
5084
4660
  while (1) {
5085
4661
  switch (_context47.prev = _context47.next) {
5086
4662
  case 0:
@@ -5114,8 +4690,8 @@ var OroClient = /*#__PURE__*/function () {
5114
4690
  _proto.getPatientTreatmentPlanByUuid =
5115
4691
  /*#__PURE__*/
5116
4692
  function () {
5117
- var _getPatientTreatmentPlanByUuid = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee47(consultationId, treatmentPlanId) {
5118
- return runtime_1.wrap(function _callee47$(_context48) {
4693
+ var _getPatientTreatmentPlanByUuid = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee47(consultationId, treatmentPlanId) {
4694
+ return _regeneratorRuntime().wrap(function _callee47$(_context48) {
5119
4695
  while (1) {
5120
4696
  switch (_context48.prev = _context48.next) {
5121
4697
  case 0:
@@ -5153,10 +4729,10 @@ var OroClient = /*#__PURE__*/function () {
5153
4729
  _proto.getPatientDocumentsList =
5154
4730
  /*#__PURE__*/
5155
4731
  function () {
5156
- var _getPatientDocumentsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee49(filters, expandPrivateMetadata, consultationId) {
4732
+ var _getPatientDocumentsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee49(filters, expandPrivateMetadata, consultationId) {
5157
4733
  var _this7 = this;
5158
4734
 
5159
- return runtime_1.wrap(function _callee49$(_context50) {
4735
+ return _regeneratorRuntime().wrap(function _callee49$(_context50) {
5160
4736
  while (1) {
5161
4737
  switch (_context50.prev = _context50.next) {
5162
4738
  case 0:
@@ -5172,8 +4748,8 @@ var OroClient = /*#__PURE__*/function () {
5172
4748
  consultationId: consultationId
5173
4749
  }), expandPrivateMetadata, grant.lockboxOwnerUuid, true).then(function (manifest) {
5174
4750
  return Promise.all(manifest.map( /*#__PURE__*/function () {
5175
- var _ref7 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee48(entry) {
5176
- return runtime_1.wrap(function _callee48$(_context49) {
4751
+ var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee48(entry) {
4752
+ return _regeneratorRuntime().wrap(function _callee48$(_context49) {
5177
4753
  while (1) {
5178
4754
  switch (_context49.prev = _context49.next) {
5179
4755
  case 0:
@@ -5231,9 +4807,9 @@ var OroClient = /*#__PURE__*/function () {
5231
4807
  _proto.recoverPrivateKeyFromSecurityQuestions =
5232
4808
  /*#__PURE__*/
5233
4809
  function () {
5234
- var _recoverPrivateKeyFromSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee50(id, recoverySecurityQuestions, recoverySecurityAnswers, threshold) {
4810
+ var _recoverPrivateKeyFromSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee50(id, recoverySecurityQuestions, recoverySecurityAnswers, threshold) {
5235
4811
  var shards, answeredShards, privateKey;
5236
- return runtime_1.wrap(function _callee50$(_context51) {
4812
+ return _regeneratorRuntime().wrap(function _callee50$(_context51) {
5237
4813
  while (1) {
5238
4814
  switch (_context51.prev = _context51.next) {
5239
4815
  case 0:
@@ -5287,9 +4863,9 @@ var OroClient = /*#__PURE__*/function () {
5287
4863
  _proto.recoverPrivateKeyFromPassword =
5288
4864
  /*#__PURE__*/
5289
4865
  function () {
5290
- var _recoverPrivateKeyFromPassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee51(id, password) {
4866
+ var _recoverPrivateKeyFromPassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee51(id, password) {
5291
4867
  var identity, recoveryPayload, symmetricDecryptor, privateKey, symetricEncryptor;
5292
- return runtime_1.wrap(function _callee51$(_context52) {
4868
+ return _regeneratorRuntime().wrap(function _callee51$(_context52) {
5293
4869
  while (1) {
5294
4870
  switch (_context52.prev = _context52.next) {
5295
4871
  case 0:
@@ -5335,9 +4911,9 @@ var OroClient = /*#__PURE__*/function () {
5335
4911
  _proto.recoverPrivateKeyFromMasterKey =
5336
4912
  /*#__PURE__*/
5337
4913
  function () {
5338
- var _recoverPrivateKeyFromMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee52(id, masterKey) {
4914
+ var _recoverPrivateKeyFromMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee52(id, masterKey) {
5339
4915
  var recoveryPayload, symmetricDecryptor, privateKey;
5340
- return runtime_1.wrap(function _callee52$(_context53) {
4916
+ return _regeneratorRuntime().wrap(function _callee52$(_context53) {
5341
4917
  while (1) {
5342
4918
  switch (_context53.prev = _context53.next) {
5343
4919
  case 0:
@@ -5377,9 +4953,9 @@ var OroClient = /*#__PURE__*/function () {
5377
4953
  _proto.updateSecurityQuestions =
5378
4954
  /*#__PURE__*/
5379
4955
  function () {
5380
- var _updateSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee53(id, recoverySecurityQuestions, recoverySecurityAnswers, threshold) {
4956
+ var _updateSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee53(id, recoverySecurityQuestions, recoverySecurityAnswers, threshold) {
5381
4957
  var securityQuestionPayload, updateRequest;
5382
- return runtime_1.wrap(function _callee53$(_context54) {
4958
+ return _regeneratorRuntime().wrap(function _callee53$(_context54) {
5383
4959
  while (1) {
5384
4960
  switch (_context54.prev = _context54.next) {
5385
4961
  case 0:
@@ -5431,9 +5007,9 @@ var OroClient = /*#__PURE__*/function () {
5431
5007
  _proto.updatePassword =
5432
5008
  /*#__PURE__*/
5433
5009
  function () {
5434
- var _updatePassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee54(id, newPassword, oldPassword) {
5010
+ var _updatePassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee54(id, newPassword, oldPassword) {
5435
5011
  var symmetricEncryptor, passwordPayload, updateRequest;
5436
- return runtime_1.wrap(function _callee54$(_context55) {
5012
+ return _regeneratorRuntime().wrap(function _callee54$(_context55) {
5437
5013
  while (1) {
5438
5014
  switch (_context55.prev = _context55.next) {
5439
5015
  case 0:
@@ -5493,9 +5069,9 @@ var OroClient = /*#__PURE__*/function () {
5493
5069
  _proto.updateMasterKey =
5494
5070
  /*#__PURE__*/
5495
5071
  function () {
5496
- var _updateMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee55(id, masterKey, lockboxUuid) {
5072
+ var _updateMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee55(id, masterKey, lockboxUuid) {
5497
5073
  var symmetricEncryptor, masterKeyPayload, updateRequest, updatedIdentity;
5498
- return runtime_1.wrap(function _callee55$(_context56) {
5074
+ return _regeneratorRuntime().wrap(function _callee55$(_context56) {
5499
5075
  while (1) {
5500
5076
  switch (_context56.prev = _context56.next) {
5501
5077
  case 0: