@shipengine/alchemy 6.0.82 → 6.0.83

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +715 -849
  2. package/index.mjs +715 -850
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -3435,20 +3435,12 @@ var _baseConvert = baseConvert$1;
3435
3435
  * // => true
3436
3436
  */
3437
3437
 
3438
- var identity_1;
3439
- var hasRequiredIdentity;
3440
-
3441
- function requireIdentity () {
3442
- if (hasRequiredIdentity) return identity_1;
3443
- hasRequiredIdentity = 1;
3444
- function identity(value) {
3445
- return value;
3446
- }
3447
-
3448
- identity_1 = identity;
3449
- return identity_1;
3438
+ function identity$3(value) {
3439
+ return value;
3450
3440
  }
3451
3441
 
3442
+ var identity_1 = identity$3;
3443
+
3452
3444
  /** Detect free variable `global` from Node.js. */
3453
3445
 
3454
3446
  var freeGlobal$1 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
@@ -3461,14 +3453,14 @@ var freeGlobal = _freeGlobal;
3461
3453
  var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
3462
3454
 
3463
3455
  /** Used as a reference to the global object. */
3464
- var root$b = freeGlobal || freeSelf || Function('return this')();
3456
+ var root$c = freeGlobal || freeSelf || Function('return this')();
3465
3457
 
3466
- var _root = root$b;
3458
+ var _root = root$c;
3467
3459
 
3468
- var root$a = _root;
3460
+ var root$b = _root;
3469
3461
 
3470
3462
  /** Built-in value references. */
3471
- var Symbol$7 = root$a.Symbol;
3463
+ var Symbol$7 = root$b.Symbol;
3472
3464
 
3473
3465
  var _Symbol = Symbol$7;
3474
3466
 
@@ -3598,23 +3590,15 @@ var _baseGetTag = baseGetTag$5;
3598
3590
  * // => false
3599
3591
  */
3600
3592
 
3601
- var isObject_1;
3602
- var hasRequiredIsObject;
3603
-
3604
- function requireIsObject () {
3605
- if (hasRequiredIsObject) return isObject_1;
3606
- hasRequiredIsObject = 1;
3607
- function isObject(value) {
3608
- var type = typeof value;
3609
- return value != null && (type == 'object' || type == 'function');
3610
- }
3611
-
3612
- isObject_1 = isObject;
3613
- return isObject_1;
3593
+ function isObject$8(value) {
3594
+ var type = typeof value;
3595
+ return value != null && (type == 'object' || type == 'function');
3614
3596
  }
3615
3597
 
3598
+ var isObject_1 = isObject$8;
3599
+
3616
3600
  var baseGetTag$4 = _baseGetTag,
3617
- isObject$6 = requireIsObject();
3601
+ isObject$7 = isObject_1;
3618
3602
 
3619
3603
  /** `Object#toString` result references. */
3620
3604
  var asyncTag = '[object AsyncFunction]',
@@ -3639,8 +3623,8 @@ var asyncTag = '[object AsyncFunction]',
3639
3623
  * _.isFunction(/abc/);
3640
3624
  * // => false
3641
3625
  */
3642
- function isFunction$2(value) {
3643
- if (!isObject$6(value)) {
3626
+ function isFunction$3(value) {
3627
+ if (!isObject$7(value)) {
3644
3628
  return false;
3645
3629
  }
3646
3630
  // The use of `Object#toString` avoids issues with the `typeof` operator
@@ -3649,12 +3633,12 @@ function isFunction$2(value) {
3649
3633
  return tag == funcTag$1 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
3650
3634
  }
3651
3635
 
3652
- var isFunction_1 = isFunction$2;
3636
+ var isFunction_1 = isFunction$3;
3653
3637
 
3654
- var root$9 = _root;
3638
+ var root$a = _root;
3655
3639
 
3656
3640
  /** Used to detect overreaching core-js shims. */
3657
- var coreJsData$1 = root$9['__core-js_shared__'];
3641
+ var coreJsData$1 = root$a['__core-js_shared__'];
3658
3642
 
3659
3643
  var _coreJsData = coreJsData$1;
3660
3644
 
@@ -3707,9 +3691,9 @@ function toSource$2(func) {
3707
3691
 
3708
3692
  var _toSource = toSource$2;
3709
3693
 
3710
- var isFunction$1 = isFunction_1,
3694
+ var isFunction$2 = isFunction_1,
3711
3695
  isMasked = _isMasked,
3712
- isObject$5 = requireIsObject(),
3696
+ isObject$6 = isObject_1,
3713
3697
  toSource$1 = _toSource;
3714
3698
 
3715
3699
  /**
@@ -3746,10 +3730,10 @@ var reIsNative = RegExp('^' +
3746
3730
  * else `false`.
3747
3731
  */
3748
3732
  function baseIsNative$1(value) {
3749
- if (!isObject$5(value) || isMasked(value)) {
3733
+ if (!isObject$6(value) || isMasked(value)) {
3750
3734
  return false;
3751
3735
  }
3752
- var pattern = isFunction$1(value) ? reIsNative : reIsHostCtor;
3736
+ var pattern = isFunction$2(value) ? reIsNative : reIsHostCtor;
3753
3737
  return pattern.test(toSource$1(value));
3754
3738
  }
3755
3739
 
@@ -3781,18 +3765,18 @@ var baseIsNative = _baseIsNative,
3781
3765
  * @param {string} key The key of the method to get.
3782
3766
  * @returns {*} Returns the function if it's native, else `undefined`.
3783
3767
  */
3784
- function getNative$5(object, key) {
3768
+ function getNative$6(object, key) {
3785
3769
  var value = getValue(object, key);
3786
3770
  return baseIsNative(value) ? value : undefined;
3787
3771
  }
3788
3772
 
3789
- var _getNative = getNative$5;
3773
+ var _getNative = getNative$6;
3790
3774
 
3791
- var getNative$4 = _getNative,
3792
- root$8 = _root;
3775
+ var getNative$5 = _getNative,
3776
+ root$9 = _root;
3793
3777
 
3794
3778
  /* Built-in method references that are verified to be native. */
3795
- var WeakMap$3 = getNative$4(root$8, 'WeakMap');
3779
+ var WeakMap$3 = getNative$5(root$9, 'WeakMap');
3796
3780
 
3797
3781
  var _WeakMap = WeakMap$3;
3798
3782
 
@@ -3803,7 +3787,7 @@ var metaMap$2 = WeakMap$2 && new WeakMap$2;
3803
3787
 
3804
3788
  var _metaMap = metaMap$2;
3805
3789
 
3806
- var identity$1 = requireIdentity(),
3790
+ var identity$2 = identity_1,
3807
3791
  metaMap$1 = _metaMap;
3808
3792
 
3809
3793
  /**
@@ -3814,54 +3798,46 @@ var identity$1 = requireIdentity(),
3814
3798
  * @param {*} data The metadata.
3815
3799
  * @returns {Function} Returns `func`.
3816
3800
  */
3817
- var baseSetData$2 = !metaMap$1 ? identity$1 : function(func, data) {
3801
+ var baseSetData$2 = !metaMap$1 ? identity$2 : function(func, data) {
3818
3802
  metaMap$1.set(func, data);
3819
3803
  return func;
3820
3804
  };
3821
3805
 
3822
3806
  var _baseSetData = baseSetData$2;
3823
3807
 
3824
- var _baseCreate;
3825
- var hasRequired_baseCreate;
3826
-
3827
- function require_baseCreate () {
3828
- if (hasRequired_baseCreate) return _baseCreate;
3829
- hasRequired_baseCreate = 1;
3830
- var isObject = requireIsObject();
3808
+ var isObject$5 = isObject_1;
3831
3809
 
3832
- /** Built-in value references. */
3833
- var objectCreate = Object.create;
3810
+ /** Built-in value references. */
3811
+ var objectCreate = Object.create;
3834
3812
 
3835
- /**
3836
- * The base implementation of `_.create` without support for assigning
3837
- * properties to the created object.
3838
- *
3839
- * @private
3840
- * @param {Object} proto The object to inherit from.
3841
- * @returns {Object} Returns the new object.
3842
- */
3843
- var baseCreate = (function() {
3844
- function object() {}
3845
- return function(proto) {
3846
- if (!isObject(proto)) {
3847
- return {};
3848
- }
3849
- if (objectCreate) {
3850
- return objectCreate(proto);
3851
- }
3852
- object.prototype = proto;
3853
- var result = new object;
3854
- object.prototype = undefined;
3855
- return result;
3856
- };
3857
- }());
3813
+ /**
3814
+ * The base implementation of `_.create` without support for assigning
3815
+ * properties to the created object.
3816
+ *
3817
+ * @private
3818
+ * @param {Object} proto The object to inherit from.
3819
+ * @returns {Object} Returns the new object.
3820
+ */
3821
+ var baseCreate$4 = (function() {
3822
+ function object() {}
3823
+ return function(proto) {
3824
+ if (!isObject$5(proto)) {
3825
+ return {};
3826
+ }
3827
+ if (objectCreate) {
3828
+ return objectCreate(proto);
3829
+ }
3830
+ object.prototype = proto;
3831
+ var result = new object;
3832
+ object.prototype = undefined;
3833
+ return result;
3834
+ };
3835
+ }());
3858
3836
 
3859
- _baseCreate = baseCreate;
3860
- return _baseCreate;
3861
- }
3837
+ var _baseCreate = baseCreate$4;
3862
3838
 
3863
- var baseCreate$2 = require_baseCreate(),
3864
- isObject$4 = requireIsObject();
3839
+ var baseCreate$3 = _baseCreate,
3840
+ isObject$4 = isObject_1;
3865
3841
 
3866
3842
  /**
3867
3843
  * Creates a function that produces an instance of `Ctor` regardless of
@@ -3887,7 +3863,7 @@ function createCtor$4(Ctor) {
3887
3863
  case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);
3888
3864
  case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
3889
3865
  }
3890
- var thisBinding = baseCreate$2(Ctor.prototype),
3866
+ var thisBinding = baseCreate$3(Ctor.prototype),
3891
3867
  result = Ctor.apply(thisBinding, args);
3892
3868
 
3893
3869
  // Mimic the constructor's `return` behavior.
@@ -3899,7 +3875,7 @@ function createCtor$4(Ctor) {
3899
3875
  var _createCtor = createCtor$4;
3900
3876
 
3901
3877
  var createCtor$3 = _createCtor,
3902
- root$7 = _root;
3878
+ root$8 = _root;
3903
3879
 
3904
3880
  /** Used to compose bitmasks for function metadata. */
3905
3881
  var WRAP_BIND_FLAG$6 = 1;
@@ -3919,7 +3895,7 @@ function createBind$1(func, bitmask, thisArg) {
3919
3895
  Ctor = createCtor$3(func);
3920
3896
 
3921
3897
  function wrapper() {
3922
- var fn = (this && this !== root$7 && this instanceof wrapper) ? Ctor : func;
3898
+ var fn = (this && this !== root$8 && this instanceof wrapper) ? Ctor : func;
3923
3899
  return fn.apply(isBind ? thisArg : this, arguments);
3924
3900
  }
3925
3901
  return wrapper;
@@ -3938,29 +3914,21 @@ var _createBind = createBind$1;
3938
3914
  * @returns {*} Returns the result of `func`.
3939
3915
  */
3940
3916
 
3941
- var _apply;
3942
- var hasRequired_apply;
3943
-
3944
- function require_apply () {
3945
- if (hasRequired_apply) return _apply;
3946
- hasRequired_apply = 1;
3947
- function apply(func, thisArg, args) {
3948
- switch (args.length) {
3949
- case 0: return func.call(thisArg);
3950
- case 1: return func.call(thisArg, args[0]);
3951
- case 2: return func.call(thisArg, args[0], args[1]);
3952
- case 3: return func.call(thisArg, args[0], args[1], args[2]);
3953
- }
3954
- return func.apply(thisArg, args);
3955
- }
3956
-
3957
- _apply = apply;
3958
- return _apply;
3917
+ function apply$3(func, thisArg, args) {
3918
+ switch (args.length) {
3919
+ case 0: return func.call(thisArg);
3920
+ case 1: return func.call(thisArg, args[0]);
3921
+ case 2: return func.call(thisArg, args[0], args[1]);
3922
+ case 3: return func.call(thisArg, args[0], args[1], args[2]);
3923
+ }
3924
+ return func.apply(thisArg, args);
3959
3925
  }
3960
3926
 
3927
+ var _apply = apply$3;
3928
+
3961
3929
  /* Built-in method references for those with the same name as other `lodash` methods. */
3962
3930
 
3963
- var nativeMax$2 = Math.max;
3931
+ var nativeMax$3 = Math.max;
3964
3932
 
3965
3933
  /**
3966
3934
  * Creates an array that is the composition of partially applied arguments,
@@ -3979,7 +3947,7 @@ function composeArgs$2(args, partials, holders, isCurried) {
3979
3947
  holdersLength = holders.length,
3980
3948
  leftIndex = -1,
3981
3949
  leftLength = partials.length,
3982
- rangeLength = nativeMax$2(argsLength - holdersLength, 0),
3950
+ rangeLength = nativeMax$3(argsLength - holdersLength, 0),
3983
3951
  result = Array(leftLength + rangeLength),
3984
3952
  isUncurried = !isCurried;
3985
3953
 
@@ -4001,7 +3969,7 @@ var _composeArgs = composeArgs$2;
4001
3969
 
4002
3970
  /* Built-in method references for those with the same name as other `lodash` methods. */
4003
3971
 
4004
- var nativeMax$1 = Math.max;
3972
+ var nativeMax$2 = Math.max;
4005
3973
 
4006
3974
  /**
4007
3975
  * This function is like `composeArgs` except that the arguments composition
@@ -4021,7 +3989,7 @@ function composeArgsRight$2(args, partials, holders, isCurried) {
4021
3989
  holdersLength = holders.length,
4022
3990
  rightIndex = -1,
4023
3991
  rightLength = partials.length,
4024
- rangeLength = nativeMax$1(argsLength - holdersLength, 0),
3992
+ rangeLength = nativeMax$2(argsLength - holdersLength, 0),
4025
3993
  result = Array(rangeLength + rightLength),
4026
3994
  isUncurried = !isCurried;
4027
3995
 
@@ -4077,7 +4045,7 @@ function baseLodash$3() {
4077
4045
 
4078
4046
  var _baseLodash = baseLodash$3;
4079
4047
 
4080
- var baseCreate$1 = require_baseCreate(),
4048
+ var baseCreate$2 = _baseCreate,
4081
4049
  baseLodash$2 = _baseLodash;
4082
4050
 
4083
4051
  /** Used as references for the maximum length and index of an array. */
@@ -4101,7 +4069,7 @@ function LazyWrapper$3(value) {
4101
4069
  }
4102
4070
 
4103
4071
  // Ensure `LazyWrapper` is an instance of `baseLodash`.
4104
- LazyWrapper$3.prototype = baseCreate$1(baseLodash$2.prototype);
4072
+ LazyWrapper$3.prototype = baseCreate$2(baseLodash$2.prototype);
4105
4073
  LazyWrapper$3.prototype.constructor = LazyWrapper$3;
4106
4074
 
4107
4075
  var _LazyWrapper = LazyWrapper$3;
@@ -4179,7 +4147,7 @@ function getFuncName$1(func) {
4179
4147
 
4180
4148
  var _getFuncName = getFuncName$1;
4181
4149
 
4182
- var baseCreate = require_baseCreate(),
4150
+ var baseCreate$1 = _baseCreate,
4183
4151
  baseLodash$1 = _baseLodash;
4184
4152
 
4185
4153
  /**
@@ -4197,7 +4165,7 @@ function LodashWrapper$2(value, chainAll) {
4197
4165
  this.__values__ = undefined;
4198
4166
  }
4199
4167
 
4200
- LodashWrapper$2.prototype = baseCreate(baseLodash$1.prototype);
4168
+ LodashWrapper$2.prototype = baseCreate$1(baseLodash$1.prototype);
4201
4169
  LodashWrapper$2.prototype.constructor = LodashWrapper$2;
4202
4170
 
4203
4171
  var _LodashWrapper = LodashWrapper$2;
@@ -4486,53 +4454,45 @@ var _isLaziable = isLaziable$1;
4486
4454
 
4487
4455
  /** Used to detect hot functions by number of calls within a span of milliseconds. */
4488
4456
 
4489
- var _shortOut;
4490
- var hasRequired_shortOut;
4457
+ var HOT_COUNT = 800,
4458
+ HOT_SPAN = 16;
4491
4459
 
4492
- function require_shortOut () {
4493
- if (hasRequired_shortOut) return _shortOut;
4494
- hasRequired_shortOut = 1;
4495
- var HOT_COUNT = 800,
4496
- HOT_SPAN = 16;
4497
-
4498
- /* Built-in method references for those with the same name as other `lodash` methods. */
4499
- var nativeNow = Date.now;
4500
-
4501
- /**
4502
- * Creates a function that'll short out and invoke `identity` instead
4503
- * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
4504
- * milliseconds.
4505
- *
4506
- * @private
4507
- * @param {Function} func The function to restrict.
4508
- * @returns {Function} Returns the new shortable function.
4509
- */
4510
- function shortOut(func) {
4511
- var count = 0,
4512
- lastCalled = 0;
4460
+ /* Built-in method references for those with the same name as other `lodash` methods. */
4461
+ var nativeNow = Date.now;
4513
4462
 
4514
- return function() {
4515
- var stamp = nativeNow(),
4516
- remaining = HOT_SPAN - (stamp - lastCalled);
4463
+ /**
4464
+ * Creates a function that'll short out and invoke `identity` instead
4465
+ * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
4466
+ * milliseconds.
4467
+ *
4468
+ * @private
4469
+ * @param {Function} func The function to restrict.
4470
+ * @returns {Function} Returns the new shortable function.
4471
+ */
4472
+ function shortOut$2(func) {
4473
+ var count = 0,
4474
+ lastCalled = 0;
4517
4475
 
4518
- lastCalled = stamp;
4519
- if (remaining > 0) {
4520
- if (++count >= HOT_COUNT) {
4521
- return arguments[0];
4522
- }
4523
- } else {
4524
- count = 0;
4525
- }
4526
- return func.apply(undefined, arguments);
4527
- };
4528
- }
4476
+ return function() {
4477
+ var stamp = nativeNow(),
4478
+ remaining = HOT_SPAN - (stamp - lastCalled);
4529
4479
 
4530
- _shortOut = shortOut;
4531
- return _shortOut;
4480
+ lastCalled = stamp;
4481
+ if (remaining > 0) {
4482
+ if (++count >= HOT_COUNT) {
4483
+ return arguments[0];
4484
+ }
4485
+ } else {
4486
+ count = 0;
4487
+ }
4488
+ return func.apply(undefined, arguments);
4489
+ };
4532
4490
  }
4533
4491
 
4492
+ var _shortOut = shortOut$2;
4493
+
4534
4494
  var baseSetData$1 = _baseSetData,
4535
- shortOut = require_shortOut();
4495
+ shortOut$1 = _shortOut;
4536
4496
 
4537
4497
  /**
4538
4498
  * Sets metadata for `func`.
@@ -4548,7 +4508,7 @@ var baseSetData$1 = _baseSetData,
4548
4508
  * @param {*} data The metadata.
4549
4509
  * @returns {Function} Returns `func`.
4550
4510
  */
4551
- var setData$2 = shortOut(baseSetData$1);
4511
+ var setData$2 = shortOut$1(baseSetData$1);
4552
4512
 
4553
4513
  var _setData = setData$2;
4554
4514
 
@@ -4616,95 +4576,63 @@ var _insertWrapDetails = insertWrapDetails$1;
4616
4576
  * // => true
4617
4577
  */
4618
4578
 
4619
- var constant_1;
4620
- var hasRequiredConstant;
4621
-
4622
- function requireConstant () {
4623
- if (hasRequiredConstant) return constant_1;
4624
- hasRequiredConstant = 1;
4625
- function constant(value) {
4626
- return function() {
4627
- return value;
4628
- };
4629
- }
4630
-
4631
- constant_1 = constant;
4632
- return constant_1;
4579
+ function constant$1(value) {
4580
+ return function() {
4581
+ return value;
4582
+ };
4633
4583
  }
4634
4584
 
4635
- var _defineProperty;
4636
- var hasRequired_defineProperty;
4585
+ var constant_1 = constant$1;
4637
4586
 
4638
- function require_defineProperty () {
4639
- if (hasRequired_defineProperty) return _defineProperty;
4640
- hasRequired_defineProperty = 1;
4641
- var getNative = _getNative;
4642
-
4643
- var defineProperty = (function() {
4644
- try {
4645
- var func = getNative(Object, 'defineProperty');
4646
- func({}, '', {});
4647
- return func;
4648
- } catch (e) {}
4649
- }());
4587
+ var getNative$4 = _getNative;
4650
4588
 
4651
- _defineProperty = defineProperty;
4652
- return _defineProperty;
4653
- }
4654
-
4655
- var _baseSetToString;
4656
- var hasRequired_baseSetToString;
4589
+ var defineProperty$2 = (function() {
4590
+ try {
4591
+ var func = getNative$4(Object, 'defineProperty');
4592
+ func({}, '', {});
4593
+ return func;
4594
+ } catch (e) {}
4595
+ }());
4657
4596
 
4658
- function require_baseSetToString () {
4659
- if (hasRequired_baseSetToString) return _baseSetToString;
4660
- hasRequired_baseSetToString = 1;
4661
- var constant = requireConstant(),
4662
- defineProperty = require_defineProperty(),
4663
- identity = requireIdentity();
4597
+ var _defineProperty = defineProperty$2;
4664
4598
 
4665
- /**
4666
- * The base implementation of `setToString` without support for hot loop shorting.
4667
- *
4668
- * @private
4669
- * @param {Function} func The function to modify.
4670
- * @param {Function} string The `toString` result.
4671
- * @returns {Function} Returns `func`.
4672
- */
4673
- var baseSetToString = !defineProperty ? identity : function(func, string) {
4674
- return defineProperty(func, 'toString', {
4675
- 'configurable': true,
4676
- 'enumerable': false,
4677
- 'value': constant(string),
4678
- 'writable': true
4679
- });
4680
- };
4599
+ var constant = constant_1,
4600
+ defineProperty$1 = _defineProperty,
4601
+ identity$1 = identity_1;
4681
4602
 
4682
- _baseSetToString = baseSetToString;
4683
- return _baseSetToString;
4684
- }
4603
+ /**
4604
+ * The base implementation of `setToString` without support for hot loop shorting.
4605
+ *
4606
+ * @private
4607
+ * @param {Function} func The function to modify.
4608
+ * @param {Function} string The `toString` result.
4609
+ * @returns {Function} Returns `func`.
4610
+ */
4611
+ var baseSetToString$1 = !defineProperty$1 ? identity$1 : function(func, string) {
4612
+ return defineProperty$1(func, 'toString', {
4613
+ 'configurable': true,
4614
+ 'enumerable': false,
4615
+ 'value': constant(string),
4616
+ 'writable': true
4617
+ });
4618
+ };
4685
4619
 
4686
- var _setToString;
4687
- var hasRequired_setToString;
4620
+ var _baseSetToString = baseSetToString$1;
4688
4621
 
4689
- function require_setToString () {
4690
- if (hasRequired_setToString) return _setToString;
4691
- hasRequired_setToString = 1;
4692
- var baseSetToString = require_baseSetToString(),
4693
- shortOut = require_shortOut();
4622
+ var baseSetToString = _baseSetToString,
4623
+ shortOut = _shortOut;
4694
4624
 
4695
- /**
4696
- * Sets the `toString` method of `func` to return `string`.
4697
- *
4698
- * @private
4699
- * @param {Function} func The function to modify.
4700
- * @param {Function} string The `toString` result.
4701
- * @returns {Function} Returns `func`.
4702
- */
4703
- var setToString = shortOut(baseSetToString);
4625
+ /**
4626
+ * Sets the `toString` method of `func` to return `string`.
4627
+ *
4628
+ * @private
4629
+ * @param {Function} func The function to modify.
4630
+ * @param {Function} string The `toString` result.
4631
+ * @returns {Function} Returns `func`.
4632
+ */
4633
+ var setToString$2 = shortOut(baseSetToString);
4704
4634
 
4705
- _setToString = setToString;
4706
- return _setToString;
4707
- }
4635
+ var _setToString = setToString$2;
4708
4636
 
4709
4637
  /**
4710
4638
  * A specialized version of `_.forEach` for arrays without support for
@@ -4883,7 +4811,7 @@ var _updateWrapDetails = updateWrapDetails$1;
4883
4811
 
4884
4812
  var getWrapDetails = _getWrapDetails,
4885
4813
  insertWrapDetails = _insertWrapDetails,
4886
- setToString$1 = require_setToString(),
4814
+ setToString$1 = _setToString,
4887
4815
  updateWrapDetails = _updateWrapDetails;
4888
4816
 
4889
4817
  /**
@@ -4977,41 +4905,33 @@ var _getHolder = getHolder$2;
4977
4905
 
4978
4906
  /** Used as references for various `Number` constants. */
4979
4907
 
4980
- var _isIndex;
4981
- var hasRequired_isIndex;
4908
+ var MAX_SAFE_INTEGER$1 = 9007199254740991;
4982
4909
 
4983
- function require_isIndex () {
4984
- if (hasRequired_isIndex) return _isIndex;
4985
- hasRequired_isIndex = 1;
4986
- var MAX_SAFE_INTEGER = 9007199254740991;
4910
+ /** Used to detect unsigned integer values. */
4911
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
4987
4912
 
4988
- /** Used to detect unsigned integer values. */
4989
- var reIsUint = /^(?:0|[1-9]\d*)$/;
4990
-
4991
- /**
4992
- * Checks if `value` is a valid array-like index.
4993
- *
4994
- * @private
4995
- * @param {*} value The value to check.
4996
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
4997
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
4998
- */
4999
- function isIndex(value, length) {
5000
- var type = typeof value;
5001
- length = length == null ? MAX_SAFE_INTEGER : length;
5002
-
5003
- return !!length &&
5004
- (type == 'number' ||
5005
- (type != 'symbol' && reIsUint.test(value))) &&
5006
- (value > -1 && value % 1 == 0 && value < length);
5007
- }
4913
+ /**
4914
+ * Checks if `value` is a valid array-like index.
4915
+ *
4916
+ * @private
4917
+ * @param {*} value The value to check.
4918
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
4919
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
4920
+ */
4921
+ function isIndex$3(value, length) {
4922
+ var type = typeof value;
4923
+ length = length == null ? MAX_SAFE_INTEGER$1 : length;
5008
4924
 
5009
- _isIndex = isIndex;
5010
- return _isIndex;
4925
+ return !!length &&
4926
+ (type == 'number' ||
4927
+ (type != 'symbol' && reIsUint.test(value))) &&
4928
+ (value > -1 && value % 1 == 0 && value < length);
5011
4929
  }
5012
4930
 
4931
+ var _isIndex = isIndex$3;
4932
+
5013
4933
  var copyArray$2 = _copyArray,
5014
- isIndex$2 = require_isIndex();
4934
+ isIndex$2 = _isIndex;
5015
4935
 
5016
4936
  /* Built-in method references for those with the same name as other `lodash` methods. */
5017
4937
  var nativeMin$1 = Math.min;
@@ -5079,7 +4999,7 @@ var composeArgs$1 = _composeArgs,
5079
4999
  getHolder$1 = _getHolder,
5080
5000
  reorder = _reorder,
5081
5001
  replaceHolders$2 = _replaceHolders,
5082
- root$6 = _root;
5002
+ root$7 = _root;
5083
5003
 
5084
5004
  /** Used to compose bitmasks for function metadata. */
5085
5005
  var WRAP_BIND_FLAG$3 = 1,
@@ -5154,7 +5074,7 @@ function createHybrid$2(func, bitmask, thisArg, partials, holders, partialsRight
5154
5074
  if (isAry && ary < length) {
5155
5075
  args.length = ary;
5156
5076
  }
5157
- if (this && this !== root$6 && this instanceof wrapper) {
5077
+ if (this && this !== root$7 && this instanceof wrapper) {
5158
5078
  fn = Ctor || createCtor$2(fn);
5159
5079
  }
5160
5080
  return fn.apply(thisBinding, args);
@@ -5164,13 +5084,13 @@ function createHybrid$2(func, bitmask, thisArg, partials, holders, partialsRight
5164
5084
 
5165
5085
  var _createHybrid = createHybrid$2;
5166
5086
 
5167
- var apply$1 = require_apply(),
5087
+ var apply$2 = _apply,
5168
5088
  createCtor$1 = _createCtor,
5169
5089
  createHybrid$1 = _createHybrid,
5170
5090
  createRecurry = _createRecurry,
5171
5091
  getHolder = _getHolder,
5172
5092
  replaceHolders$1 = _replaceHolders,
5173
- root$5 = _root;
5093
+ root$6 = _root;
5174
5094
 
5175
5095
  /**
5176
5096
  * Creates a function that wraps `func` to enable currying.
@@ -5203,17 +5123,17 @@ function createCurry$1(func, bitmask, arity) {
5203
5123
  func, bitmask, createHybrid$1, wrapper.placeholder, undefined,
5204
5124
  args, holders, undefined, undefined, arity - length);
5205
5125
  }
5206
- var fn = (this && this !== root$5 && this instanceof wrapper) ? Ctor : func;
5207
- return apply$1(fn, this, args);
5126
+ var fn = (this && this !== root$6 && this instanceof wrapper) ? Ctor : func;
5127
+ return apply$2(fn, this, args);
5208
5128
  }
5209
5129
  return wrapper;
5210
5130
  }
5211
5131
 
5212
5132
  var _createCurry = createCurry$1;
5213
5133
 
5214
- var apply = require_apply(),
5134
+ var apply$1 = _apply,
5215
5135
  createCtor = _createCtor,
5216
- root$4 = _root;
5136
+ root$5 = _root;
5217
5137
 
5218
5138
  /** Used to compose bitmasks for function metadata. */
5219
5139
  var WRAP_BIND_FLAG$2 = 1;
@@ -5240,7 +5160,7 @@ function createPartial$1(func, bitmask, thisArg, partials) {
5240
5160
  leftIndex = -1,
5241
5161
  leftLength = partials.length,
5242
5162
  args = Array(leftLength + argsLength),
5243
- fn = (this && this !== root$4 && this instanceof wrapper) ? Ctor : func;
5163
+ fn = (this && this !== root$5 && this instanceof wrapper) ? Ctor : func;
5244
5164
 
5245
5165
  while (++leftIndex < leftLength) {
5246
5166
  args[leftIndex] = partials[leftIndex];
@@ -5248,7 +5168,7 @@ function createPartial$1(func, bitmask, thisArg, partials) {
5248
5168
  while (argsLength--) {
5249
5169
  args[leftIndex++] = arguments[++argsIndex];
5250
5170
  }
5251
- return apply(fn, isBind ? thisArg : this, args);
5171
+ return apply$1(fn, isBind ? thisArg : this, args);
5252
5172
  }
5253
5173
  return wrapper;
5254
5174
  }
@@ -5418,7 +5338,7 @@ function isSymbol$6(value) {
5418
5338
  var isSymbol_1 = isSymbol$6;
5419
5339
 
5420
5340
  var baseTrim = _baseTrim,
5421
- isObject$3 = requireIsObject(),
5341
+ isObject$3 = isObject_1,
5422
5342
  isSymbol$5 = isSymbol_1;
5423
5343
 
5424
5344
  /** Used as references for various `Number` constants. */
@@ -5585,7 +5505,7 @@ var WRAP_BIND_FLAG = 1,
5585
5505
  WRAP_PARTIAL_RIGHT_FLAG = 64;
5586
5506
 
5587
5507
  /* Built-in method references for those with the same name as other `lodash` methods. */
5588
- var nativeMax = Math.max;
5508
+ var nativeMax$1 = Math.max;
5589
5509
 
5590
5510
  /**
5591
5511
  * Creates a function that either curries or invokes `func` with optional
@@ -5622,7 +5542,7 @@ function createWrap$3(func, bitmask, thisArg, partials, holders, argPos, ary, ar
5622
5542
  bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);
5623
5543
  partials = holders = undefined;
5624
5544
  }
5625
- ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);
5545
+ ary = ary === undefined ? ary : nativeMax$1(toInteger(ary), 0);
5626
5546
  arity = arity === undefined ? arity : toInteger(arity);
5627
5547
  length -= holders ? holders.length : 0;
5628
5548
 
@@ -5649,7 +5569,7 @@ function createWrap$3(func, bitmask, thisArg, partials, holders, argPos, ary, ar
5649
5569
  holders = newData[4];
5650
5570
  arity = newData[9] = newData[9] === undefined
5651
5571
  ? (isBindKey ? 0 : func.length)
5652
- : nativeMax(newData[9] - length, 0);
5572
+ : nativeMax$1(newData[9] - length, 0);
5653
5573
 
5654
5574
  if (!arity && bitmask & (WRAP_CURRY_FLAG$1 | WRAP_CURRY_RIGHT_FLAG)) {
5655
5575
  bitmask &= ~(WRAP_CURRY_FLAG$1 | WRAP_CURRY_RIGHT_FLAG);
@@ -5699,40 +5619,32 @@ function ary(func, n, guard) {
5699
5619
 
5700
5620
  var ary_1 = ary;
5701
5621
 
5702
- var _baseAssignValue;
5703
- var hasRequired_baseAssignValue;
5704
-
5705
- function require_baseAssignValue () {
5706
- if (hasRequired_baseAssignValue) return _baseAssignValue;
5707
- hasRequired_baseAssignValue = 1;
5708
- var defineProperty = require_defineProperty();
5709
-
5710
- /**
5711
- * The base implementation of `assignValue` and `assignMergeValue` without
5712
- * value checks.
5713
- *
5714
- * @private
5715
- * @param {Object} object The object to modify.
5716
- * @param {string} key The key of the property to assign.
5717
- * @param {*} value The value to assign.
5718
- */
5719
- function baseAssignValue(object, key, value) {
5720
- if (key == '__proto__' && defineProperty) {
5721
- defineProperty(object, key, {
5722
- 'configurable': true,
5723
- 'enumerable': true,
5724
- 'value': value,
5725
- 'writable': true
5726
- });
5727
- } else {
5728
- object[key] = value;
5729
- }
5730
- }
5622
+ var defineProperty = _defineProperty;
5731
5623
 
5732
- _baseAssignValue = baseAssignValue;
5733
- return _baseAssignValue;
5624
+ /**
5625
+ * The base implementation of `assignValue` and `assignMergeValue` without
5626
+ * value checks.
5627
+ *
5628
+ * @private
5629
+ * @param {Object} object The object to modify.
5630
+ * @param {string} key The key of the property to assign.
5631
+ * @param {*} value The value to assign.
5632
+ */
5633
+ function baseAssignValue$2(object, key, value) {
5634
+ if (key == '__proto__' && defineProperty) {
5635
+ defineProperty(object, key, {
5636
+ 'configurable': true,
5637
+ 'enumerable': true,
5638
+ 'value': value,
5639
+ 'writable': true
5640
+ });
5641
+ } else {
5642
+ object[key] = value;
5643
+ }
5734
5644
  }
5735
5645
 
5646
+ var _baseAssignValue = baseAssignValue$2;
5647
+
5736
5648
  /**
5737
5649
  * Performs a
5738
5650
  * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
@@ -5780,7 +5692,7 @@ function requireEq () {
5780
5692
  return eq_1;
5781
5693
  }
5782
5694
 
5783
- var baseAssignValue$1 = require_baseAssignValue(),
5695
+ var baseAssignValue$1 = _baseAssignValue,
5784
5696
  eq$1 = requireEq();
5785
5697
 
5786
5698
  /** Used for built-in method references. */
@@ -5810,7 +5722,7 @@ function assignValue$2(object, key, value) {
5810
5722
  var _assignValue = assignValue$2;
5811
5723
 
5812
5724
  var assignValue$1 = _assignValue,
5813
- baseAssignValue = require_baseAssignValue();
5725
+ baseAssignValue = _baseAssignValue;
5814
5726
 
5815
5727
  /**
5816
5728
  * Copies properties of `source` to `object`.
@@ -5964,113 +5876,90 @@ var isBuffer$5 = {
5964
5876
  * // => [false, false]
5965
5877
  */
5966
5878
 
5967
- var stubFalse_1;
5968
- var hasRequiredStubFalse;
5879
+ function stubFalse() {
5880
+ return false;
5881
+ }
5969
5882
 
5970
- function requireStubFalse () {
5971
- if (hasRequiredStubFalse) return stubFalse_1;
5972
- hasRequiredStubFalse = 1;
5973
- function stubFalse() {
5974
- return false;
5975
- }
5883
+ var stubFalse_1 = stubFalse;
5976
5884
 
5977
- stubFalse_1 = stubFalse;
5978
- return stubFalse_1;
5979
- }
5980
-
5981
- var hasRequiredIsBuffer;
5982
-
5983
- function requireIsBuffer () {
5984
- if (hasRequiredIsBuffer) return isBufferExports;
5985
- hasRequiredIsBuffer = 1;
5986
- (function (module, exports) {
5987
- var root = _root,
5988
- stubFalse = requireStubFalse();
5989
-
5990
- /** Detect free variable `exports`. */
5991
- var freeExports = exports && !exports.nodeType && exports;
5992
-
5993
- /** Detect free variable `module`. */
5994
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
5995
-
5996
- /** Detect the popular CommonJS extension `module.exports`. */
5997
- var moduleExports = freeModule && freeModule.exports === freeExports;
5998
-
5999
- /** Built-in value references. */
6000
- var Buffer = moduleExports ? root.Buffer : undefined;
6001
-
6002
- /* Built-in method references for those with the same name as other `lodash` methods. */
6003
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
6004
-
6005
- /**
6006
- * Checks if `value` is a buffer.
6007
- *
6008
- * @static
6009
- * @memberOf _
6010
- * @since 4.3.0
6011
- * @category Lang
6012
- * @param {*} value The value to check.
6013
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
6014
- * @example
6015
- *
6016
- * _.isBuffer(new Buffer(2));
6017
- * // => true
6018
- *
6019
- * _.isBuffer(new Uint8Array(2));
6020
- * // => false
6021
- */
6022
- var isBuffer = nativeIsBuffer || stubFalse;
6023
-
6024
- module.exports = isBuffer;
6025
- } (isBuffer$5, isBufferExports));
6026
- return isBufferExports;
6027
- }
5885
+ (function (module, exports) {
5886
+ var root = _root,
5887
+ stubFalse = stubFalse_1;
6028
5888
 
6029
- /** Used as references for various `Number` constants. */
5889
+ /** Detect free variable `exports`. */
5890
+ var freeExports = exports && !exports.nodeType && exports;
6030
5891
 
6031
- var isLength_1;
6032
- var hasRequiredIsLength;
5892
+ /** Detect free variable `module`. */
5893
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
5894
+
5895
+ /** Detect the popular CommonJS extension `module.exports`. */
5896
+ var moduleExports = freeModule && freeModule.exports === freeExports;
5897
+
5898
+ /** Built-in value references. */
5899
+ var Buffer = moduleExports ? root.Buffer : undefined;
6033
5900
 
6034
- function requireIsLength () {
6035
- if (hasRequiredIsLength) return isLength_1;
6036
- hasRequiredIsLength = 1;
6037
- var MAX_SAFE_INTEGER = 9007199254740991;
5901
+ /* Built-in method references for those with the same name as other `lodash` methods. */
5902
+ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
6038
5903
 
6039
5904
  /**
6040
- * Checks if `value` is a valid array-like length.
6041
- *
6042
- * **Note:** This method is loosely based on
6043
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
5905
+ * Checks if `value` is a buffer.
6044
5906
  *
6045
5907
  * @static
6046
5908
  * @memberOf _
6047
- * @since 4.0.0
5909
+ * @since 4.3.0
6048
5910
  * @category Lang
6049
5911
  * @param {*} value The value to check.
6050
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
5912
+ * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
6051
5913
  * @example
6052
5914
  *
6053
- * _.isLength(3);
5915
+ * _.isBuffer(new Buffer(2));
6054
5916
  * // => true
6055
5917
  *
6056
- * _.isLength(Number.MIN_VALUE);
6057
- * // => false
6058
- *
6059
- * _.isLength(Infinity);
6060
- * // => false
6061
- *
6062
- * _.isLength('3');
5918
+ * _.isBuffer(new Uint8Array(2));
6063
5919
  * // => false
6064
5920
  */
6065
- function isLength(value) {
6066
- return typeof value == 'number' &&
6067
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
6068
- }
5921
+ var isBuffer = nativeIsBuffer || stubFalse;
5922
+
5923
+ module.exports = isBuffer;
5924
+ } (isBuffer$5, isBufferExports));
5925
+
5926
+ /** Used as references for various `Number` constants. */
6069
5927
 
6070
- isLength_1 = isLength;
6071
- return isLength_1;
5928
+ var MAX_SAFE_INTEGER = 9007199254740991;
5929
+
5930
+ /**
5931
+ * Checks if `value` is a valid array-like length.
5932
+ *
5933
+ * **Note:** This method is loosely based on
5934
+ * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
5935
+ *
5936
+ * @static
5937
+ * @memberOf _
5938
+ * @since 4.0.0
5939
+ * @category Lang
5940
+ * @param {*} value The value to check.
5941
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
5942
+ * @example
5943
+ *
5944
+ * _.isLength(3);
5945
+ * // => true
5946
+ *
5947
+ * _.isLength(Number.MIN_VALUE);
5948
+ * // => false
5949
+ *
5950
+ * _.isLength(Infinity);
5951
+ * // => false
5952
+ *
5953
+ * _.isLength('3');
5954
+ * // => false
5955
+ */
5956
+ function isLength$2(value) {
5957
+ return typeof value == 'number' &&
5958
+ value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
6072
5959
  }
6073
5960
 
5961
+ var isLength_1 = isLength$2;
5962
+
6074
5963
  var _baseIsTypedArray;
6075
5964
  var hasRequired_baseIsTypedArray;
6076
5965
 
@@ -6078,7 +5967,7 @@ function require_baseIsTypedArray () {
6078
5967
  if (hasRequired_baseIsTypedArray) return _baseIsTypedArray;
6079
5968
  hasRequired_baseIsTypedArray = 1;
6080
5969
  var baseGetTag = _baseGetTag,
6081
- isLength = requireIsLength(),
5970
+ isLength = isLength_1,
6082
5971
  isObjectLike = isObjectLike_1;
6083
5972
 
6084
5973
  /** `Object#toString` result references. */
@@ -6148,67 +6037,52 @@ function require_baseIsTypedArray () {
6148
6037
  * @returns {Function} Returns the new capped function.
6149
6038
  */
6150
6039
 
6151
- var _baseUnary;
6152
- var hasRequired_baseUnary;
6153
-
6154
- function require_baseUnary () {
6155
- if (hasRequired_baseUnary) return _baseUnary;
6156
- hasRequired_baseUnary = 1;
6157
- function baseUnary(func) {
6158
- return function(value) {
6159
- return func(value);
6160
- };
6161
- }
6162
-
6163
- _baseUnary = baseUnary;
6164
- return _baseUnary;
6040
+ function baseUnary$2(func) {
6041
+ return function(value) {
6042
+ return func(value);
6043
+ };
6165
6044
  }
6166
6045
 
6046
+ var _baseUnary = baseUnary$2;
6047
+
6167
6048
  var _nodeUtilExports = {};
6168
6049
  var _nodeUtil = {
6169
6050
  get exports(){ return _nodeUtilExports; },
6170
6051
  set exports(v){ _nodeUtilExports = v; },
6171
6052
  };
6172
6053
 
6173
- var hasRequired_nodeUtil;
6174
-
6175
- function require_nodeUtil () {
6176
- if (hasRequired_nodeUtil) return _nodeUtilExports;
6177
- hasRequired_nodeUtil = 1;
6178
- (function (module, exports) {
6179
- var freeGlobal = _freeGlobal;
6054
+ (function (module, exports) {
6055
+ var freeGlobal = _freeGlobal;
6180
6056
 
6181
- /** Detect free variable `exports`. */
6182
- var freeExports = exports && !exports.nodeType && exports;
6057
+ /** Detect free variable `exports`. */
6058
+ var freeExports = exports && !exports.nodeType && exports;
6183
6059
 
6184
- /** Detect free variable `module`. */
6185
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
6060
+ /** Detect free variable `module`. */
6061
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
6186
6062
 
6187
- /** Detect the popular CommonJS extension `module.exports`. */
6188
- var moduleExports = freeModule && freeModule.exports === freeExports;
6063
+ /** Detect the popular CommonJS extension `module.exports`. */
6064
+ var moduleExports = freeModule && freeModule.exports === freeExports;
6189
6065
 
6190
- /** Detect free variable `process` from Node.js. */
6191
- var freeProcess = moduleExports && freeGlobal.process;
6066
+ /** Detect free variable `process` from Node.js. */
6067
+ var freeProcess = moduleExports && freeGlobal.process;
6192
6068
 
6193
- /** Used to access faster Node.js helpers. */
6194
- var nodeUtil = (function() {
6195
- try {
6196
- // Use `util.types` for Node.js 10+.
6197
- var types = freeModule && freeModule.require && freeModule.require('util').types;
6069
+ /** Used to access faster Node.js helpers. */
6070
+ var nodeUtil = (function() {
6071
+ try {
6072
+ // Use `util.types` for Node.js 10+.
6073
+ var types = freeModule && freeModule.require && freeModule.require('util').types;
6198
6074
 
6199
- if (types) {
6200
- return types;
6201
- }
6075
+ if (types) {
6076
+ return types;
6077
+ }
6202
6078
 
6203
- // Legacy `process.binding('util')` for Node.js < 10.
6204
- return freeProcess && freeProcess.binding && freeProcess.binding('util');
6205
- } catch (e) {}
6206
- }());
6079
+ // Legacy `process.binding('util')` for Node.js < 10.
6080
+ return freeProcess && freeProcess.binding && freeProcess.binding('util');
6081
+ } catch (e) {}
6082
+ }());
6207
6083
 
6208
- module.exports = nodeUtil;
6084
+ module.exports = nodeUtil;
6209
6085
  } (_nodeUtil, _nodeUtilExports));
6210
- return _nodeUtilExports;
6211
- }
6212
6086
 
6213
6087
  var isTypedArray_1;
6214
6088
  var hasRequiredIsTypedArray;
@@ -6217,8 +6091,8 @@ function requireIsTypedArray () {
6217
6091
  if (hasRequiredIsTypedArray) return isTypedArray_1;
6218
6092
  hasRequiredIsTypedArray = 1;
6219
6093
  var baseIsTypedArray = require_baseIsTypedArray(),
6220
- baseUnary = require_baseUnary(),
6221
- nodeUtil = require_nodeUtil();
6094
+ baseUnary = _baseUnary,
6095
+ nodeUtil = _nodeUtilExports;
6222
6096
 
6223
6097
  /* Node.js helper references. */
6224
6098
  var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
@@ -6249,8 +6123,8 @@ function requireIsTypedArray () {
6249
6123
  var baseTimes = _baseTimes,
6250
6124
  isArguments$2 = requireIsArguments(),
6251
6125
  isArray$f = isArray_1,
6252
- isBuffer$4 = requireIsBuffer(),
6253
- isIndex$1 = require_isIndex(),
6126
+ isBuffer$4 = isBufferExports,
6127
+ isIndex$1 = _isIndex,
6254
6128
  isTypedArray$1 = requireIsTypedArray();
6255
6129
 
6256
6130
  /** Used for built-in method references. */
@@ -6307,14 +6181,14 @@ var objectProto$6 = Object.prototype;
6307
6181
  * @param {*} value The value to check.
6308
6182
  * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
6309
6183
  */
6310
- function isPrototype$1(value) {
6184
+ function isPrototype$2(value) {
6311
6185
  var Ctor = value && value.constructor,
6312
6186
  proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$6;
6313
6187
 
6314
6188
  return value === proto;
6315
6189
  }
6316
6190
 
6317
- var _isPrototype = isPrototype$1;
6191
+ var _isPrototype = isPrototype$2;
6318
6192
 
6319
6193
  /**
6320
6194
  * Creates a unary function that invokes `func` with its argument transformed.
@@ -6340,7 +6214,7 @@ var nativeKeys$1 = overArg$1(Object.keys, Object);
6340
6214
 
6341
6215
  var _nativeKeys = nativeKeys$1;
6342
6216
 
6343
- var isPrototype = _isPrototype,
6217
+ var isPrototype$1 = _isPrototype,
6344
6218
  nativeKeys = _nativeKeys;
6345
6219
 
6346
6220
  /** Used for built-in method references. */
@@ -6357,7 +6231,7 @@ var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
6357
6231
  * @returns {Array} Returns the array of property names.
6358
6232
  */
6359
6233
  function baseKeys$1(object) {
6360
- if (!isPrototype(object)) {
6234
+ if (!isPrototype$1(object)) {
6361
6235
  return nativeKeys(object);
6362
6236
  }
6363
6237
  var result = [];
@@ -6371,51 +6245,43 @@ function baseKeys$1(object) {
6371
6245
 
6372
6246
  var _baseKeys = baseKeys$1;
6373
6247
 
6374
- var isArrayLike_1;
6375
- var hasRequiredIsArrayLike;
6376
-
6377
- function requireIsArrayLike () {
6378
- if (hasRequiredIsArrayLike) return isArrayLike_1;
6379
- hasRequiredIsArrayLike = 1;
6380
- var isFunction = isFunction_1,
6381
- isLength = requireIsLength();
6382
-
6383
- /**
6384
- * Checks if `value` is array-like. A value is considered array-like if it's
6385
- * not a function and has a `value.length` that's an integer greater than or
6386
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
6387
- *
6388
- * @static
6389
- * @memberOf _
6390
- * @since 4.0.0
6391
- * @category Lang
6392
- * @param {*} value The value to check.
6393
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
6394
- * @example
6395
- *
6396
- * _.isArrayLike([1, 2, 3]);
6397
- * // => true
6398
- *
6399
- * _.isArrayLike(document.body.children);
6400
- * // => true
6401
- *
6402
- * _.isArrayLike('abc');
6403
- * // => true
6404
- *
6405
- * _.isArrayLike(_.noop);
6406
- * // => false
6407
- */
6408
- function isArrayLike(value) {
6409
- return value != null && isLength(value.length) && !isFunction(value);
6410
- }
6248
+ var isFunction$1 = isFunction_1,
6249
+ isLength$1 = isLength_1;
6411
6250
 
6412
- isArrayLike_1 = isArrayLike;
6413
- return isArrayLike_1;
6251
+ /**
6252
+ * Checks if `value` is array-like. A value is considered array-like if it's
6253
+ * not a function and has a `value.length` that's an integer greater than or
6254
+ * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
6255
+ *
6256
+ * @static
6257
+ * @memberOf _
6258
+ * @since 4.0.0
6259
+ * @category Lang
6260
+ * @param {*} value The value to check.
6261
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
6262
+ * @example
6263
+ *
6264
+ * _.isArrayLike([1, 2, 3]);
6265
+ * // => true
6266
+ *
6267
+ * _.isArrayLike(document.body.children);
6268
+ * // => true
6269
+ *
6270
+ * _.isArrayLike('abc');
6271
+ * // => true
6272
+ *
6273
+ * _.isArrayLike(_.noop);
6274
+ * // => false
6275
+ */
6276
+ function isArrayLike$1(value) {
6277
+ return value != null && isLength$1(value.length) && !isFunction$1(value);
6414
6278
  }
6415
6279
 
6280
+ var isArrayLike_1 = isArrayLike$1;
6281
+
6416
6282
  var arrayLikeKeys = _arrayLikeKeys,
6417
6283
  baseKeys = _baseKeys,
6418
- isArrayLike = requireIsArrayLike();
6284
+ isArrayLike = isArrayLike_1;
6419
6285
 
6420
6286
  /**
6421
6287
  * Creates an array of the own enumerable property names of `object`.
@@ -6796,10 +6662,10 @@ function require_stackHas () {
6796
6662
  }
6797
6663
 
6798
6664
  var getNative$3 = _getNative,
6799
- root$3 = _root;
6665
+ root$4 = _root;
6800
6666
 
6801
6667
  /* Built-in method references that are verified to be native. */
6802
- var Map$2 = getNative$3(root$3, 'Map');
6668
+ var Map$2 = getNative$3(root$4, 'Map');
6803
6669
 
6804
6670
  var _Map = Map$2;
6805
6671
 
@@ -7359,7 +7225,7 @@ var hasRequired_baseKeysIn;
7359
7225
  function require_baseKeysIn () {
7360
7226
  if (hasRequired_baseKeysIn) return _baseKeysIn;
7361
7227
  hasRequired_baseKeysIn = 1;
7362
- var isObject = requireIsObject(),
7228
+ var isObject = isObject_1,
7363
7229
  isPrototype = _isPrototype,
7364
7230
  nativeKeysIn = require_nativeKeysIn();
7365
7231
 
@@ -7403,7 +7269,7 @@ function requireKeysIn () {
7403
7269
  hasRequiredKeysIn = 1;
7404
7270
  var arrayLikeKeys = _arrayLikeKeys,
7405
7271
  baseKeysIn = require_baseKeysIn(),
7406
- isArrayLike = requireIsArrayLike();
7272
+ isArrayLike = isArrayLike_1;
7407
7273
 
7408
7274
  /**
7409
7275
  * Creates an array of the own and inherited enumerable property names of `object`.
@@ -7460,50 +7326,43 @@ var _cloneBuffer = {
7460
7326
  set exports(v){ _cloneBufferExports = v; },
7461
7327
  };
7462
7328
 
7463
- var hasRequired_cloneBuffer;
7464
-
7465
- function require_cloneBuffer () {
7466
- if (hasRequired_cloneBuffer) return _cloneBufferExports;
7467
- hasRequired_cloneBuffer = 1;
7468
- (function (module, exports) {
7469
- var root = _root;
7470
-
7471
- /** Detect free variable `exports`. */
7472
- var freeExports = exports && !exports.nodeType && exports;
7473
-
7474
- /** Detect free variable `module`. */
7475
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
7476
-
7477
- /** Detect the popular CommonJS extension `module.exports`. */
7478
- var moduleExports = freeModule && freeModule.exports === freeExports;
7479
-
7480
- /** Built-in value references. */
7481
- var Buffer = moduleExports ? root.Buffer : undefined,
7482
- allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
7483
-
7484
- /**
7485
- * Creates a clone of `buffer`.
7486
- *
7487
- * @private
7488
- * @param {Buffer} buffer The buffer to clone.
7489
- * @param {boolean} [isDeep] Specify a deep clone.
7490
- * @returns {Buffer} Returns the cloned buffer.
7491
- */
7492
- function cloneBuffer(buffer, isDeep) {
7493
- if (isDeep) {
7494
- return buffer.slice();
7495
- }
7496
- var length = buffer.length,
7497
- result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
7498
-
7499
- buffer.copy(result);
7500
- return result;
7501
- }
7329
+ (function (module, exports) {
7330
+ var root = _root;
7331
+
7332
+ /** Detect free variable `exports`. */
7333
+ var freeExports = exports && !exports.nodeType && exports;
7334
+
7335
+ /** Detect free variable `module`. */
7336
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
7337
+
7338
+ /** Detect the popular CommonJS extension `module.exports`. */
7339
+ var moduleExports = freeModule && freeModule.exports === freeExports;
7340
+
7341
+ /** Built-in value references. */
7342
+ var Buffer = moduleExports ? root.Buffer : undefined,
7343
+ allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
7502
7344
 
7503
- module.exports = cloneBuffer;
7345
+ /**
7346
+ * Creates a clone of `buffer`.
7347
+ *
7348
+ * @private
7349
+ * @param {Buffer} buffer The buffer to clone.
7350
+ * @param {boolean} [isDeep] Specify a deep clone.
7351
+ * @returns {Buffer} Returns the cloned buffer.
7352
+ */
7353
+ function cloneBuffer(buffer, isDeep) {
7354
+ if (isDeep) {
7355
+ return buffer.slice();
7356
+ }
7357
+ var length = buffer.length,
7358
+ result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
7359
+
7360
+ buffer.copy(result);
7361
+ return result;
7362
+ }
7363
+
7364
+ module.exports = cloneBuffer;
7504
7365
  } (_cloneBuffer, _cloneBufferExports));
7505
- return _cloneBufferExports;
7506
- }
7507
7366
 
7508
7367
  /**
7509
7368
  * A specialized version of `_.filter` for arrays without support for
@@ -7630,12 +7489,12 @@ var _arrayPush = arrayPush$3;
7630
7489
  var overArg = _overArg;
7631
7490
 
7632
7491
  /** Built-in value references. */
7633
- var getPrototype$2 = overArg(Object.getPrototypeOf, Object);
7492
+ var getPrototype$3 = overArg(Object.getPrototypeOf, Object);
7634
7493
 
7635
- var _getPrototype = getPrototype$2;
7494
+ var _getPrototype = getPrototype$3;
7636
7495
 
7637
7496
  var arrayPush$2 = _arrayPush,
7638
- getPrototype$1 = _getPrototype,
7497
+ getPrototype$2 = _getPrototype,
7639
7498
  getSymbols$1 = _getSymbols,
7640
7499
  stubArray = stubArray_1;
7641
7500
 
@@ -7653,7 +7512,7 @@ var getSymbolsIn$2 = !nativeGetSymbols ? stubArray : function(object) {
7653
7512
  var result = [];
7654
7513
  while (object) {
7655
7514
  arrayPush$2(result, getSymbols$1(object));
7656
- object = getPrototype$1(object);
7515
+ object = getPrototype$2(object);
7657
7516
  }
7658
7517
  return result;
7659
7518
  };
@@ -7734,26 +7593,26 @@ function getAllKeysIn$1(object) {
7734
7593
  var _getAllKeysIn = getAllKeysIn$1;
7735
7594
 
7736
7595
  var getNative$2 = _getNative,
7737
- root$2 = _root;
7596
+ root$3 = _root;
7738
7597
 
7739
7598
  /* Built-in method references that are verified to be native. */
7740
- var DataView$2 = getNative$2(root$2, 'DataView');
7599
+ var DataView$2 = getNative$2(root$3, 'DataView');
7741
7600
 
7742
7601
  var _DataView = DataView$2;
7743
7602
 
7744
7603
  var getNative$1 = _getNative,
7745
- root$1 = _root;
7604
+ root$2 = _root;
7746
7605
 
7747
7606
  /* Built-in method references that are verified to be native. */
7748
- var Promise$2 = getNative$1(root$1, 'Promise');
7607
+ var Promise$2 = getNative$1(root$2, 'Promise');
7749
7608
 
7750
7609
  var _Promise = Promise$2;
7751
7610
 
7752
7611
  var getNative = _getNative,
7753
- root = _root;
7612
+ root$1 = _root;
7754
7613
 
7755
7614
  /* Built-in method references that are verified to be native. */
7756
- var Set$2 = getNative(root, 'Set');
7615
+ var Set$2 = getNative(root$1, 'Set');
7757
7616
 
7758
7617
  var _Set = Set$2;
7759
7618
 
@@ -7844,47 +7703,31 @@ function initCloneArray$1(array) {
7844
7703
 
7845
7704
  var _initCloneArray = initCloneArray$1;
7846
7705
 
7847
- var _Uint8Array;
7848
- var hasRequired_Uint8Array;
7849
-
7850
- function require_Uint8Array () {
7851
- if (hasRequired_Uint8Array) return _Uint8Array;
7852
- hasRequired_Uint8Array = 1;
7853
- var root = _root;
7854
-
7855
- /** Built-in value references. */
7856
- var Uint8Array = root.Uint8Array;
7857
-
7858
- _Uint8Array = Uint8Array;
7859
- return _Uint8Array;
7860
- }
7706
+ var root = _root;
7861
7707
 
7862
- var _cloneArrayBuffer;
7863
- var hasRequired_cloneArrayBuffer;
7708
+ /** Built-in value references. */
7709
+ var Uint8Array$3 = root.Uint8Array;
7864
7710
 
7865
- function require_cloneArrayBuffer () {
7866
- if (hasRequired_cloneArrayBuffer) return _cloneArrayBuffer;
7867
- hasRequired_cloneArrayBuffer = 1;
7868
- var Uint8Array = require_Uint8Array();
7711
+ var _Uint8Array = Uint8Array$3;
7869
7712
 
7870
- /**
7871
- * Creates a clone of `arrayBuffer`.
7872
- *
7873
- * @private
7874
- * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
7875
- * @returns {ArrayBuffer} Returns the cloned array buffer.
7876
- */
7877
- function cloneArrayBuffer(arrayBuffer) {
7878
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
7879
- new Uint8Array(result).set(new Uint8Array(arrayBuffer));
7880
- return result;
7881
- }
7713
+ var Uint8Array$2 = _Uint8Array;
7882
7714
 
7883
- _cloneArrayBuffer = cloneArrayBuffer;
7884
- return _cloneArrayBuffer;
7715
+ /**
7716
+ * Creates a clone of `arrayBuffer`.
7717
+ *
7718
+ * @private
7719
+ * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
7720
+ * @returns {ArrayBuffer} Returns the cloned array buffer.
7721
+ */
7722
+ function cloneArrayBuffer$2(arrayBuffer) {
7723
+ var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
7724
+ new Uint8Array$2(result).set(new Uint8Array$2(arrayBuffer));
7725
+ return result;
7885
7726
  }
7886
7727
 
7887
- var cloneArrayBuffer$1 = require_cloneArrayBuffer();
7728
+ var _cloneArrayBuffer = cloneArrayBuffer$2;
7729
+
7730
+ var cloneArrayBuffer$1 = _cloneArrayBuffer;
7888
7731
 
7889
7732
  /**
7890
7733
  * Creates a clone of `dataView`.
@@ -7945,7 +7788,7 @@ var hasRequired_cloneTypedArray;
7945
7788
  function require_cloneTypedArray () {
7946
7789
  if (hasRequired_cloneTypedArray) return _cloneTypedArray;
7947
7790
  hasRequired_cloneTypedArray = 1;
7948
- var cloneArrayBuffer = require_cloneArrayBuffer();
7791
+ var cloneArrayBuffer = _cloneArrayBuffer;
7949
7792
 
7950
7793
  /**
7951
7794
  * Creates a clone of `typedArray`.
@@ -7964,7 +7807,7 @@ function require_cloneTypedArray () {
7964
7807
  return _cloneTypedArray;
7965
7808
  }
7966
7809
 
7967
- var cloneArrayBuffer = require_cloneArrayBuffer(),
7810
+ var cloneArrayBuffer = _cloneArrayBuffer,
7968
7811
  cloneDataView = _cloneDataView,
7969
7812
  cloneRegExp = _cloneRegExp,
7970
7813
  cloneSymbol = _cloneSymbol,
@@ -8042,33 +7885,25 @@ function initCloneByTag$1(object, tag, isDeep) {
8042
7885
 
8043
7886
  var _initCloneByTag = initCloneByTag$1;
8044
7887
 
8045
- var _initCloneObject;
8046
- var hasRequired_initCloneObject;
8047
-
8048
- function require_initCloneObject () {
8049
- if (hasRequired_initCloneObject) return _initCloneObject;
8050
- hasRequired_initCloneObject = 1;
8051
- var baseCreate = require_baseCreate(),
8052
- getPrototype = _getPrototype,
8053
- isPrototype = _isPrototype;
8054
-
8055
- /**
8056
- * Initializes an object clone.
8057
- *
8058
- * @private
8059
- * @param {Object} object The object to clone.
8060
- * @returns {Object} Returns the initialized clone.
8061
- */
8062
- function initCloneObject(object) {
8063
- return (typeof object.constructor == 'function' && !isPrototype(object))
8064
- ? baseCreate(getPrototype(object))
8065
- : {};
8066
- }
7888
+ var baseCreate = _baseCreate,
7889
+ getPrototype$1 = _getPrototype,
7890
+ isPrototype = _isPrototype;
8067
7891
 
8068
- _initCloneObject = initCloneObject;
8069
- return _initCloneObject;
7892
+ /**
7893
+ * Initializes an object clone.
7894
+ *
7895
+ * @private
7896
+ * @param {Object} object The object to clone.
7897
+ * @returns {Object} Returns the initialized clone.
7898
+ */
7899
+ function initCloneObject$1(object) {
7900
+ return (typeof object.constructor == 'function' && !isPrototype(object))
7901
+ ? baseCreate(getPrototype$1(object))
7902
+ : {};
8070
7903
  }
8071
7904
 
7905
+ var _initCloneObject = initCloneObject$1;
7906
+
8072
7907
  var getTag$4 = _getTag,
8073
7908
  isObjectLike$5 = isObjectLike_1;
8074
7909
 
@@ -8089,8 +7924,8 @@ function baseIsMap$1(value) {
8089
7924
  var _baseIsMap = baseIsMap$1;
8090
7925
 
8091
7926
  var baseIsMap = _baseIsMap,
8092
- baseUnary$1 = require_baseUnary(),
8093
- nodeUtil$1 = require_nodeUtil();
7927
+ baseUnary$1 = _baseUnary,
7928
+ nodeUtil$1 = _nodeUtilExports;
8094
7929
 
8095
7930
  /* Node.js helper references. */
8096
7931
  var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap;
@@ -8136,8 +7971,8 @@ function baseIsSet$1(value) {
8136
7971
  var _baseIsSet = baseIsSet$1;
8137
7972
 
8138
7973
  var baseIsSet = _baseIsSet,
8139
- baseUnary = require_baseUnary(),
8140
- nodeUtil = require_nodeUtil();
7974
+ baseUnary = _baseUnary,
7975
+ nodeUtil = _nodeUtilExports;
8141
7976
 
8142
7977
  /* Node.js helper references. */
8143
7978
  var nodeIsSet = nodeUtil && nodeUtil.isSet;
@@ -8168,7 +8003,7 @@ var Stack$2 = require_Stack(),
8168
8003
  assignValue = _assignValue,
8169
8004
  baseAssign = _baseAssign,
8170
8005
  baseAssignIn = _baseAssignIn,
8171
- cloneBuffer = require_cloneBuffer(),
8006
+ cloneBuffer = _cloneBufferExports,
8172
8007
  copyArray$1 = _copyArray,
8173
8008
  copySymbols = _copySymbols,
8174
8009
  copySymbolsIn = _copySymbolsIn,
@@ -8177,11 +8012,11 @@ var Stack$2 = require_Stack(),
8177
8012
  getTag$2 = _getTag,
8178
8013
  initCloneArray = _initCloneArray,
8179
8014
  initCloneByTag = _initCloneByTag,
8180
- initCloneObject = require_initCloneObject(),
8015
+ initCloneObject = _initCloneObject,
8181
8016
  isArray$d = isArray_1,
8182
- isBuffer$3 = requireIsBuffer(),
8017
+ isBuffer$3 = isBufferExports,
8183
8018
  isMap$1 = isMap_1,
8184
- isObject$2 = requireIsObject(),
8019
+ isObject$2 = isObject_1,
8185
8020
  isSet$1 = isSet_1,
8186
8021
  keys$1 = keys_1,
8187
8022
  keysIn = requireKeysIn();
@@ -8785,7 +8620,7 @@ function setToArray$1(set) {
8785
8620
  var _setToArray = setToArray$1;
8786
8621
 
8787
8622
  var Symbol$3 = _Symbol,
8788
- Uint8Array$1 = require_Uint8Array(),
8623
+ Uint8Array$1 = _Uint8Array,
8789
8624
  eq = requireEq(),
8790
8625
  equalArrays$1 = _equalArrays,
8791
8626
  mapToArray = _mapToArray,
@@ -8994,7 +8829,7 @@ var Stack$1 = require_Stack(),
8994
8829
  equalObjects = _equalObjects,
8995
8830
  getTag = _getTag,
8996
8831
  isArray$c = isArray_1,
8997
- isBuffer$2 = requireIsBuffer(),
8832
+ isBuffer$2 = isBufferExports,
8998
8833
  isTypedArray = requireIsTypedArray();
8999
8834
 
9000
8835
  /** Used to compose bitmasks for value comparisons. */
@@ -9164,7 +8999,7 @@ function baseIsMatch$1(object, source, matchData, customizer) {
9164
8999
 
9165
9000
  var _baseIsMatch = baseIsMatch$1;
9166
9001
 
9167
- var isObject$1 = requireIsObject();
9002
+ var isObject$1 = isObject_1;
9168
9003
 
9169
9004
  /**
9170
9005
  * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
@@ -9620,8 +9455,8 @@ var _baseHasIn = baseHasIn$1;
9620
9455
  var castPath = _castPath,
9621
9456
  isArguments$1 = requireIsArguments(),
9622
9457
  isArray$8 = isArray_1,
9623
- isIndex = require_isIndex(),
9624
- isLength = requireIsLength(),
9458
+ isIndex = _isIndex,
9459
+ isLength = isLength_1,
9625
9460
  toKey$3 = _toKey;
9626
9461
 
9627
9462
  /**
@@ -9794,7 +9629,7 @@ var property_1 = property$1;
9794
9629
 
9795
9630
  var baseMatches = _baseMatches,
9796
9631
  baseMatchesProperty = _baseMatchesProperty,
9797
- identity = requireIdentity(),
9632
+ identity = identity_1,
9798
9633
  isArray$7 = isArray_1,
9799
9634
  property = property_1;
9800
9635
 
@@ -9961,54 +9796,46 @@ function flatten$1(array) {
9961
9796
 
9962
9797
  var flatten_1 = flatten$1;
9963
9798
 
9964
- var _overRest;
9965
- var hasRequired_overRest;
9966
-
9967
- function require_overRest () {
9968
- if (hasRequired_overRest) return _overRest;
9969
- hasRequired_overRest = 1;
9970
- var apply = require_apply();
9799
+ var apply = _apply;
9971
9800
 
9972
- /* Built-in method references for those with the same name as other `lodash` methods. */
9973
- var nativeMax = Math.max;
9974
-
9975
- /**
9976
- * A specialized version of `baseRest` which transforms the rest array.
9977
- *
9978
- * @private
9979
- * @param {Function} func The function to apply a rest parameter to.
9980
- * @param {number} [start=func.length-1] The start position of the rest parameter.
9981
- * @param {Function} transform The rest array transform.
9982
- * @returns {Function} Returns the new function.
9983
- */
9984
- function overRest(func, start, transform) {
9985
- start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
9986
- return function() {
9987
- var args = arguments,
9988
- index = -1,
9989
- length = nativeMax(args.length - start, 0),
9990
- array = Array(length);
9801
+ /* Built-in method references for those with the same name as other `lodash` methods. */
9802
+ var nativeMax = Math.max;
9991
9803
 
9992
- while (++index < length) {
9993
- array[index] = args[start + index];
9994
- }
9995
- index = -1;
9996
- var otherArgs = Array(start + 1);
9997
- while (++index < start) {
9998
- otherArgs[index] = args[index];
9999
- }
10000
- otherArgs[start] = transform(array);
10001
- return apply(func, this, otherArgs);
10002
- };
10003
- }
9804
+ /**
9805
+ * A specialized version of `baseRest` which transforms the rest array.
9806
+ *
9807
+ * @private
9808
+ * @param {Function} func The function to apply a rest parameter to.
9809
+ * @param {number} [start=func.length-1] The start position of the rest parameter.
9810
+ * @param {Function} transform The rest array transform.
9811
+ * @returns {Function} Returns the new function.
9812
+ */
9813
+ function overRest$1(func, start, transform) {
9814
+ start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
9815
+ return function() {
9816
+ var args = arguments,
9817
+ index = -1,
9818
+ length = nativeMax(args.length - start, 0),
9819
+ array = Array(length);
10004
9820
 
10005
- _overRest = overRest;
10006
- return _overRest;
9821
+ while (++index < length) {
9822
+ array[index] = args[start + index];
9823
+ }
9824
+ index = -1;
9825
+ var otherArgs = Array(start + 1);
9826
+ while (++index < start) {
9827
+ otherArgs[index] = args[index];
9828
+ }
9829
+ otherArgs[start] = transform(array);
9830
+ return apply(func, this, otherArgs);
9831
+ };
10007
9832
  }
10008
9833
 
9834
+ var _overRest = overRest$1;
9835
+
10009
9836
  var flatten = flatten_1,
10010
- overRest = require_overRest(),
10011
- setToString = require_setToString();
9837
+ overRest = _overRest,
9838
+ setToString = _setToString;
10012
9839
 
10013
9840
  /**
10014
9841
  * A specialized version of `baseRest` which flattens the rest array.
@@ -10133,7 +9960,7 @@ var hasRequired_assignMergeValue;
10133
9960
  function require_assignMergeValue () {
10134
9961
  if (hasRequired_assignMergeValue) return _assignMergeValue;
10135
9962
  hasRequired_assignMergeValue = 1;
10136
- var baseAssignValue = require_baseAssignValue(),
9963
+ var baseAssignValue = _baseAssignValue,
10137
9964
  eq = requireEq();
10138
9965
 
10139
9966
  /**
@@ -10222,7 +10049,7 @@ var hasRequiredIsArrayLikeObject;
10222
10049
  function requireIsArrayLikeObject () {
10223
10050
  if (hasRequiredIsArrayLikeObject) return isArrayLikeObject_1;
10224
10051
  hasRequiredIsArrayLikeObject = 1;
10225
- var isArrayLike = requireIsArrayLike(),
10052
+ var isArrayLike = isArrayLike_1,
10226
10053
  isObjectLike = isObjectLike_1;
10227
10054
 
10228
10055
  /**
@@ -10337,16 +10164,16 @@ function require_baseMergeDeep () {
10337
10164
  if (hasRequired_baseMergeDeep) return _baseMergeDeep;
10338
10165
  hasRequired_baseMergeDeep = 1;
10339
10166
  var assignMergeValue = require_assignMergeValue(),
10340
- cloneBuffer = require_cloneBuffer(),
10167
+ cloneBuffer = _cloneBufferExports,
10341
10168
  cloneTypedArray = require_cloneTypedArray(),
10342
10169
  copyArray = _copyArray,
10343
- initCloneObject = require_initCloneObject(),
10170
+ initCloneObject = _initCloneObject,
10344
10171
  isArguments = requireIsArguments(),
10345
10172
  isArray = isArray_1,
10346
10173
  isArrayLikeObject = requireIsArrayLikeObject(),
10347
- isBuffer = requireIsBuffer(),
10174
+ isBuffer = isBufferExports,
10348
10175
  isFunction = isFunction_1,
10349
- isObject = requireIsObject(),
10176
+ isObject = isObject_1,
10350
10177
  isPlainObject = isPlainObject_1,
10351
10178
  isTypedArray = requireIsTypedArray(),
10352
10179
  safeGet = require_safeGet(),
@@ -10443,7 +10270,7 @@ function require_baseMerge () {
10443
10270
  assignMergeValue = require_assignMergeValue(),
10444
10271
  baseFor = require_baseFor(),
10445
10272
  baseMergeDeep = require_baseMergeDeep(),
10446
- isObject = requireIsObject(),
10273
+ isObject = isObject_1,
10447
10274
  keysIn = requireKeysIn(),
10448
10275
  safeGet = require_safeGet();
10449
10276
 
@@ -10490,9 +10317,9 @@ var hasRequired_baseRest;
10490
10317
  function require_baseRest () {
10491
10318
  if (hasRequired_baseRest) return _baseRest;
10492
10319
  hasRequired_baseRest = 1;
10493
- var identity = requireIdentity(),
10494
- overRest = require_overRest(),
10495
- setToString = require_setToString();
10320
+ var identity = identity_1,
10321
+ overRest = _overRest,
10322
+ setToString = _setToString;
10496
10323
 
10497
10324
  /**
10498
10325
  * The base implementation of `_.rest` which doesn't validate or coerce arguments.
@@ -10517,9 +10344,9 @@ function require_isIterateeCall () {
10517
10344
  if (hasRequired_isIterateeCall) return _isIterateeCall;
10518
10345
  hasRequired_isIterateeCall = 1;
10519
10346
  var eq = requireEq(),
10520
- isArrayLike = requireIsArrayLike(),
10521
- isIndex = require_isIndex(),
10522
- isObject = requireIsObject();
10347
+ isArrayLike = isArrayLike_1,
10348
+ isIndex = _isIndex,
10349
+ isObject = isObject_1;
10523
10350
 
10524
10351
  /**
10525
10352
  * Checks if the given arguments are from an iteratee call.
@@ -14086,7 +13913,7 @@ var ipaddr = {
14086
13913
  }).call(commonjsGlobal);
14087
13914
  } (ipaddr));
14088
13915
 
14089
- var __async$1c = (__this, __arguments, generator) => {
13916
+ var __async$1d = (__this, __arguments, generator) => {
14090
13917
  return new Promise((resolve, reject) => {
14091
13918
  var fulfilled = (value) => {
14092
13919
  try {
@@ -14106,7 +13933,7 @@ var __async$1c = (__this, __arguments, generator) => {
14106
13933
  step((generator = generator.apply(__this, __arguments)).next());
14107
13934
  });
14108
13935
  };
14109
- const getEndUserIpAddress = () => __async$1c(void 0, null, function* () {
13936
+ const getEndUserIpAddress = () => __async$1d(void 0, null, function* () {
14110
13937
  try {
14111
13938
  const response = yield axios.get("https://api.ipify.org/?format=json");
14112
13939
  if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
@@ -14198,7 +14025,7 @@ var __objRest$v = (source, exclude) => {
14198
14025
  }
14199
14026
  return target;
14200
14027
  };
14201
- var __async$1b = (__this, __arguments, generator) => {
14028
+ var __async$1c = (__this, __arguments, generator) => {
14202
14029
  return new Promise((resolve, reject) => {
14203
14030
  var fulfilled = (value) => {
14204
14031
  try {
@@ -14238,7 +14065,7 @@ class CarriersAPI {
14238
14065
  /**
14239
14066
  * The `connect` method connects a carrier account to a user's ShipEngine account.
14240
14067
  */
14241
- this.connect = (_a) => __async$1b(this, null, function* () {
14068
+ this.connect = (_a) => __async$1c(this, null, function* () {
14242
14069
  var _b = _a, { carrierCode } = _b, connection = __objRest$v(_b, ["carrierCode"]);
14243
14070
  const endUserIpAddress = yield getEndUserIpAddress();
14244
14071
  if (!endUserIpAddress)
@@ -14352,7 +14179,7 @@ var __objRest$u = (source, exclude) => {
14352
14179
  }
14353
14180
  return target;
14354
14181
  };
14355
- var __async$1a = (__this, __arguments, generator) => {
14182
+ var __async$1b = (__this, __arguments, generator) => {
14356
14183
  return new Promise((resolve, reject) => {
14357
14184
  var fulfilled = (value) => {
14358
14185
  try {
@@ -14394,7 +14221,7 @@ class ConnectionsAPI {
14394
14221
  /**
14395
14222
  * The `connectCarrier` method connects a carrier to account.
14396
14223
  */
14397
- this.connectCarrier = (carrierName, formData) => __async$1a(this, null, function* () {
14224
+ this.connectCarrier = (carrierName, formData) => __async$1b(this, null, function* () {
14398
14225
  return yield this.client.post(
14399
14226
  `/v1/connections/carriers/${carrierName}`,
14400
14227
  formData,
@@ -16578,7 +16405,7 @@ var __spreadValues$U = (a, b) => {
16578
16405
  }
16579
16406
  return a;
16580
16407
  };
16581
- var __async$19 = (__this, __arguments, generator) => {
16408
+ var __async$1a = (__this, __arguments, generator) => {
16582
16409
  return new Promise((resolve, reject) => {
16583
16410
  var fulfilled = (value) => {
16584
16411
  try {
@@ -16617,7 +16444,7 @@ class FundingSourcesAPI {
16617
16444
  * The `create` method creates a new funding source for a given user. This requires
16618
16445
  * payment information to be collected from the user.
16619
16446
  */
16620
- this.create = (createFundingSource) => __async$19(this, null, function* () {
16447
+ this.create = (createFundingSource) => __async$1a(this, null, function* () {
16621
16448
  const endUserIpAddress = yield getEndUserIpAddress();
16622
16449
  if (!endUserIpAddress) {
16623
16450
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16631,7 +16458,7 @@ class FundingSourcesAPI {
16631
16458
  * user to update the billing address or payment information associated with the
16632
16459
  * funding source.
16633
16460
  */
16634
- this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$19(this, null, function* () {
16461
+ this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$1a(this, null, function* () {
16635
16462
  const endUserIpAddress = yield getEndUserIpAddress();
16636
16463
  if (!endUserIpAddress) {
16637
16464
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16651,7 +16478,7 @@ class FundingSourcesAPI {
16651
16478
  * The `registerCarrier` method registers a carrier account and associates
16652
16479
  * it with a given funding source.
16653
16480
  */
16654
- this.registerCarrier = (carrier) => __async$19(this, null, function* () {
16481
+ this.registerCarrier = (carrier) => __async$1a(this, null, function* () {
16655
16482
  const endUserIpAddress = yield getEndUserIpAddress();
16656
16483
  if (!endUserIpAddress) {
16657
16484
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16663,7 +16490,7 @@ class FundingSourcesAPI {
16663
16490
  /**
16664
16491
  * The `addFunds` method allows you to add funds to a funding source.
16665
16492
  */
16666
- this.addFunds = (amount, fundingSourceId) => __async$19(this, null, function* () {
16493
+ this.addFunds = (amount, fundingSourceId) => __async$1a(this, null, function* () {
16667
16494
  return yield this.client.put(
16668
16495
  `/v1/funding_sources/${fundingSourceId}/add_funds`,
16669
16496
  amount
@@ -16673,7 +16500,7 @@ class FundingSourcesAPI {
16673
16500
  * The `metadata` method returns seller-specific requirements for creating funding sources
16674
16501
  * and attaching carriers
16675
16502
  */
16676
- this.metadata = () => __async$19(this, null, function* () {
16503
+ this.metadata = () => __async$1a(this, null, function* () {
16677
16504
  return yield this.client.get("/v1/funding_sources/metadata");
16678
16505
  });
16679
16506
  /**
@@ -16742,7 +16569,7 @@ class InsuranceAPI {
16742
16569
  }
16743
16570
  }
16744
16571
 
16745
- var __async$18 = (__this, __arguments, generator) => {
16572
+ var __async$19 = (__this, __arguments, generator) => {
16746
16573
  return new Promise((resolve, reject) => {
16747
16574
  var fulfilled = (value) => {
16748
16575
  try {
@@ -16774,13 +16601,13 @@ class InvoiceAddressAPI {
16774
16601
  /**
16775
16602
  * The `create` method creates a new invoice address for a given user.
16776
16603
  */
16777
- this.create = (invoiceAddress) => __async$18(this, null, function* () {
16604
+ this.create = (invoiceAddress) => __async$19(this, null, function* () {
16778
16605
  return yield this.client.post("/v1/invoice_address", invoiceAddress);
16779
16606
  });
16780
16607
  /**
16781
16608
  * The `update` method updates a invoice address for a given user.
16782
16609
  */
16783
- this.update = (invoiceAddress) => __async$18(this, null, function* () {
16610
+ this.update = (invoiceAddress) => __async$19(this, null, function* () {
16784
16611
  return yield this.client.put("/v1/invoice_address", invoiceAddress);
16785
16612
  });
16786
16613
  this.client = client;
@@ -16826,6 +16653,12 @@ class LabelsAPI {
16826
16653
  this.void = (labelId) => {
16827
16654
  return this.client.put(`/v1/labels/${labelId}/void`);
16828
16655
  };
16656
+ /**
16657
+ * The `cancelRefund` method allows a user to cancel a refund request for a label by `labelId`.
16658
+ */
16659
+ this.cancelRefund = (labelId) => {
16660
+ return this.client.post(`/v1/labels/${labelId}/cancel_refund`);
16661
+ };
16829
16662
  /**
16830
16663
  * The `export` method allows to export a CSV document of labels based on the provided parameters.
16831
16664
  */
@@ -17087,7 +16920,7 @@ class SalesOrdersAPI {
17087
16920
  }
17088
16921
  }
17089
16922
 
17090
- var __async$17 = (__this, __arguments, generator) => {
16923
+ var __async$18 = (__this, __arguments, generator) => {
17091
16924
  return new Promise((resolve, reject) => {
17092
16925
  var fulfilled = (value) => {
17093
16926
  try {
@@ -17145,7 +16978,7 @@ class SellersAPI {
17145
16978
  /**
17146
16979
  * Deletes an API Key
17147
16980
  */
17148
- this.deleteSellerApiKey = (_0) => __async$17(this, [_0], function* ({
16981
+ this.deleteSellerApiKey = (_0) => __async$18(this, [_0], function* ({
17149
16982
  encryptedApiKey,
17150
16983
  sellerId,
17151
16984
  isSandbox
@@ -17233,7 +17066,7 @@ class ServicePointsAPI {
17233
17066
  }
17234
17067
  }
17235
17068
 
17236
- var __async$16 = (__this, __arguments, generator) => {
17069
+ var __async$17 = (__this, __arguments, generator) => {
17237
17070
  return new Promise((resolve, reject) => {
17238
17071
  var fulfilled = (value) => {
17239
17072
  try {
@@ -17282,7 +17115,7 @@ class ShipmentsAPI {
17282
17115
  * The `create` method allows for creating shipments based on a list of shipment
17283
17116
  * items passed into this method.
17284
17117
  */
17285
- this.create = (...shipments) => __async$16(this, null, function* () {
17118
+ this.create = (...shipments) => __async$17(this, null, function* () {
17286
17119
  return this.client.post("/v1/shipments", {
17287
17120
  shipments
17288
17121
  });
@@ -34730,7 +34563,7 @@ var __objRest$s = (source, exclude) => {
34730
34563
  }
34731
34564
  return target;
34732
34565
  };
34733
- var __async$15 = (__this, __arguments, generator) => {
34566
+ var __async$16 = (__this, __arguments, generator) => {
34734
34567
  return new Promise((resolve, reject) => {
34735
34568
  var fulfilled = (value) => {
34736
34569
  try {
@@ -34818,7 +34651,7 @@ class ShipEngineAPI {
34818
34651
  });
34819
34652
  client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
34820
34653
  client.interceptors.request.use(
34821
- (config) => __async$15(this, null, function* () {
34654
+ (config) => __async$16(this, null, function* () {
34822
34655
  if (config.isSandbox) {
34823
34656
  if (!this.sandboxToken) {
34824
34657
  this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
@@ -34847,7 +34680,7 @@ class ShipEngineAPI {
34847
34680
  }
34848
34681
  return res;
34849
34682
  },
34850
- (err) => __async$15(this, null, function* () {
34683
+ (err) => __async$16(this, null, function* () {
34851
34684
  var _a, _b, _c, _d, _e;
34852
34685
  if (debug) {
34853
34686
  logger$1.error(
@@ -34896,7 +34729,7 @@ class ShipEngineAPI {
34896
34729
  * that token (also known as Seller ID)
34897
34730
  */
34898
34731
  getTenant(isSandbox) {
34899
- return __async$15(this, null, function* () {
34732
+ return __async$16(this, null, function* () {
34900
34733
  var _a;
34901
34734
  if (!isSandbox) {
34902
34735
  return this.getTenantFromToken(this.token);
@@ -35274,7 +35107,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
35274
35107
  throw error;
35275
35108
  });
35276
35109
 
35277
- var __async$14 = (__this, __arguments, generator) => {
35110
+ var __async$15 = (__this, __arguments, generator) => {
35278
35111
  return new Promise((resolve, reject) => {
35279
35112
  var fulfilled = (value) => {
35280
35113
  try {
@@ -35297,7 +35130,7 @@ var __async$14 = (__this, __arguments, generator) => {
35297
35130
  const useCreateAccountImage = () => {
35298
35131
  const { client } = useShipEngine();
35299
35132
  return reactQuery.useMutation({
35300
- mutationFn: (data) => __async$14(void 0, null, function* () {
35133
+ mutationFn: (data) => __async$15(void 0, null, function* () {
35301
35134
  const result = yield client.accountSettings.createImage(data);
35302
35135
  return result.data;
35303
35136
  }),
@@ -35306,7 +35139,7 @@ const useCreateAccountImage = () => {
35306
35139
  });
35307
35140
  };
35308
35141
 
35309
- var __async$13 = (__this, __arguments, generator) => {
35142
+ var __async$14 = (__this, __arguments, generator) => {
35310
35143
  return new Promise((resolve, reject) => {
35311
35144
  var fulfilled = (value) => {
35312
35145
  try {
@@ -35329,7 +35162,7 @@ var __async$13 = (__this, __arguments, generator) => {
35329
35162
  const useDeleteAccountImage = () => {
35330
35163
  const { client } = useShipEngine();
35331
35164
  return reactQuery.useMutation({
35332
- mutationFn: (labelImageId) => __async$13(void 0, null, function* () {
35165
+ mutationFn: (labelImageId) => __async$14(void 0, null, function* () {
35333
35166
  const result = yield client.accountSettings.deleteImage(labelImageId);
35334
35167
  return result.data;
35335
35168
  }),
@@ -35358,7 +35191,7 @@ const useGetAccountSettings = () => {
35358
35191
  });
35359
35192
  };
35360
35193
 
35361
- var __async$12 = (__this, __arguments, generator) => {
35194
+ var __async$13 = (__this, __arguments, generator) => {
35362
35195
  return new Promise((resolve, reject) => {
35363
35196
  var fulfilled = (value) => {
35364
35197
  try {
@@ -35381,7 +35214,7 @@ var __async$12 = (__this, __arguments, generator) => {
35381
35214
  const useUpdateAccountImage = () => {
35382
35215
  const { client } = useShipEngine();
35383
35216
  return reactQuery.useMutation({
35384
- mutationFn: (data) => __async$12(void 0, null, function* () {
35217
+ mutationFn: (data) => __async$13(void 0, null, function* () {
35385
35218
  const result = yield client.accountSettings.updateImage(data);
35386
35219
  return result.data;
35387
35220
  }),
@@ -35390,7 +35223,7 @@ const useUpdateAccountImage = () => {
35390
35223
  });
35391
35224
  };
35392
35225
 
35393
- var __async$11 = (__this, __arguments, generator) => {
35226
+ var __async$12 = (__this, __arguments, generator) => {
35394
35227
  return new Promise((resolve, reject) => {
35395
35228
  var fulfilled = (value) => {
35396
35229
  try {
@@ -35413,7 +35246,7 @@ var __async$11 = (__this, __arguments, generator) => {
35413
35246
  const useUpdateAccountSettings = () => {
35414
35247
  const { client } = useShipEngine();
35415
35248
  return reactQuery.useMutation({
35416
- mutationFn: (settings) => __async$11(void 0, null, function* () {
35249
+ mutationFn: (settings) => __async$12(void 0, null, function* () {
35417
35250
  const result = yield client.accountSettings.update(settings);
35418
35251
  return result.data;
35419
35252
  }),
@@ -35470,7 +35303,7 @@ var __spreadValues$O = (a, b) => {
35470
35303
  return a;
35471
35304
  };
35472
35305
  var __spreadProps$L = (a, b) => __defProps$L(a, __getOwnPropDescs$L(b));
35473
- var __async$10 = (__this, __arguments, generator) => {
35306
+ var __async$11 = (__this, __arguments, generator) => {
35474
35307
  return new Promise((resolve, reject) => {
35475
35308
  var fulfilled = (value) => {
35476
35309
  try {
@@ -35493,7 +35326,7 @@ var __async$10 = (__this, __arguments, generator) => {
35493
35326
  const useEnableAccountAddon = (params) => {
35494
35327
  const { client } = useShipEngine();
35495
35328
  return reactQuery.useMutation(__spreadProps$L(__spreadValues$O({}, params), {
35496
- mutationFn: (addonType) => __async$10(void 0, null, function* () {
35329
+ mutationFn: (addonType) => __async$11(void 0, null, function* () {
35497
35330
  const result = yield client.accountAddons.enable(addonType);
35498
35331
  return result.data;
35499
35332
  }),
@@ -35521,7 +35354,7 @@ var __spreadValues$N = (a, b) => {
35521
35354
  return a;
35522
35355
  };
35523
35356
  var __spreadProps$K = (a, b) => __defProps$K(a, __getOwnPropDescs$K(b));
35524
- var __async$$ = (__this, __arguments, generator) => {
35357
+ var __async$10 = (__this, __arguments, generator) => {
35525
35358
  return new Promise((resolve, reject) => {
35526
35359
  var fulfilled = (value) => {
35527
35360
  try {
@@ -35544,7 +35377,7 @@ var __async$$ = (__this, __arguments, generator) => {
35544
35377
  const useDisableAccountAddon = (params) => {
35545
35378
  const { client } = useShipEngine();
35546
35379
  return reactQuery.useMutation(__spreadProps$K(__spreadValues$N({}, params), {
35547
- mutationFn: (addonType) => __async$$(void 0, null, function* () {
35380
+ mutationFn: (addonType) => __async$10(void 0, null, function* () {
35548
35381
  const result = yield client.accountAddons.disable(addonType);
35549
35382
  return result.data;
35550
35383
  }),
@@ -35582,7 +35415,7 @@ const useListAccountFeatures = (params) => {
35582
35415
  }));
35583
35416
  };
35584
35417
 
35585
- var __async$_ = (__this, __arguments, generator) => {
35418
+ var __async$$ = (__this, __arguments, generator) => {
35586
35419
  return new Promise((resolve, reject) => {
35587
35420
  var fulfilled = (value) => {
35588
35421
  try {
@@ -35605,7 +35438,7 @@ var __async$_ = (__this, __arguments, generator) => {
35605
35438
  const useRequestAccountFeature = () => {
35606
35439
  const { client } = useShipEngine();
35607
35440
  return reactQuery.useMutation({
35608
- mutationFn: (request) => __async$_(void 0, null, function* () {
35441
+ mutationFn: (request) => __async$$(void 0, null, function* () {
35609
35442
  const result = yield client.accountFeatures.request(request);
35610
35443
  return result.data;
35611
35444
  }),
@@ -35633,7 +35466,7 @@ var __spreadValues$L = (a, b) => {
35633
35466
  return a;
35634
35467
  };
35635
35468
  var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
35636
- var __async$Z = (__this, __arguments, generator) => {
35469
+ var __async$_ = (__this, __arguments, generator) => {
35637
35470
  return new Promise((resolve, reject) => {
35638
35471
  var fulfilled = (value) => {
35639
35472
  try {
@@ -35656,7 +35489,7 @@ var __async$Z = (__this, __arguments, generator) => {
35656
35489
  const useDisableRefundAssist = (params) => {
35657
35490
  const { client } = useShipEngine();
35658
35491
  return reactQuery.useMutation(__spreadProps$I(__spreadValues$L({}, params), {
35659
- mutationFn: () => __async$Z(void 0, null, function* () {
35492
+ mutationFn: () => __async$_(void 0, null, function* () {
35660
35493
  yield client.accountRefundAssist.disable();
35661
35494
  }),
35662
35495
  mutationKey: ["useDisableRefundAssist"],
@@ -35683,7 +35516,7 @@ var __spreadValues$K = (a, b) => {
35683
35516
  return a;
35684
35517
  };
35685
35518
  var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
35686
- var __async$Y = (__this, __arguments, generator) => {
35519
+ var __async$Z = (__this, __arguments, generator) => {
35687
35520
  return new Promise((resolve, reject) => {
35688
35521
  var fulfilled = (value) => {
35689
35522
  try {
@@ -35706,7 +35539,7 @@ var __async$Y = (__this, __arguments, generator) => {
35706
35539
  const useEnableRefundAssist = (params) => {
35707
35540
  const { client } = useShipEngine();
35708
35541
  return reactQuery.useMutation(__spreadProps$H(__spreadValues$K({}, params), {
35709
- mutationFn: () => __async$Y(void 0, null, function* () {
35542
+ mutationFn: () => __async$Z(void 0, null, function* () {
35710
35543
  yield client.accountRefundAssist.enable();
35711
35544
  }),
35712
35545
  mutationKey: ["useEnableRefundAssist"],
@@ -35743,7 +35576,7 @@ const useGetRefundAssist = (params) => {
35743
35576
  }));
35744
35577
  };
35745
35578
 
35746
- var __async$X = (__this, __arguments, generator) => {
35579
+ var __async$Y = (__this, __arguments, generator) => {
35747
35580
  return new Promise((resolve, reject) => {
35748
35581
  var fulfilled = (value) => {
35749
35582
  try {
@@ -35766,7 +35599,7 @@ var __async$X = (__this, __arguments, generator) => {
35766
35599
  const useParseAddress = () => {
35767
35600
  const { client } = useShipEngine();
35768
35601
  return reactQuery.useMutation({
35769
- mutationFn: (_0) => __async$X(void 0, [_0], function* ({ address, text }) {
35602
+ mutationFn: (_0) => __async$Y(void 0, [_0], function* ({ address, text }) {
35770
35603
  const result = yield client.addresses.parse(text, address);
35771
35604
  return result.data;
35772
35605
  }),
@@ -35775,7 +35608,7 @@ const useParseAddress = () => {
35775
35608
  });
35776
35609
  };
35777
35610
 
35778
- var __async$W = (__this, __arguments, generator) => {
35611
+ var __async$X = (__this, __arguments, generator) => {
35779
35612
  return new Promise((resolve, reject) => {
35780
35613
  var fulfilled = (value) => {
35781
35614
  try {
@@ -35798,7 +35631,7 @@ var __async$W = (__this, __arguments, generator) => {
35798
35631
  const useValidateAddresses = () => {
35799
35632
  const { client } = useShipEngine();
35800
35633
  return reactQuery.useMutation({
35801
- mutationFn: (addresses) => __async$W(void 0, null, function* () {
35634
+ mutationFn: (addresses) => __async$X(void 0, null, function* () {
35802
35635
  const result = yield client.addresses.validate(addresses);
35803
35636
  return result.data;
35804
35637
  }),
@@ -35826,7 +35659,7 @@ var __spreadValues$I = (a, b) => {
35826
35659
  return a;
35827
35660
  };
35828
35661
  var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
35829
- var __async$V = (__this, __arguments, generator) => {
35662
+ var __async$W = (__this, __arguments, generator) => {
35830
35663
  return new Promise((resolve, reject) => {
35831
35664
  var fulfilled = (value) => {
35832
35665
  try {
@@ -35849,7 +35682,7 @@ var __async$V = (__this, __arguments, generator) => {
35849
35682
  const useCreateAuctanePaySession = (params) => {
35850
35683
  const { client } = useShipEngine();
35851
35684
  return reactQuery.useMutation(__spreadProps$F(__spreadValues$I({}, params), {
35852
- mutationFn: (request) => __async$V(void 0, null, function* () {
35685
+ mutationFn: (request) => __async$W(void 0, null, function* () {
35853
35686
  const result = yield client.auctanePay.createSession(request);
35854
35687
  return result.data;
35855
35688
  }),
@@ -35907,7 +35740,7 @@ var __spreadValues$G = (a, b) => {
35907
35740
  return a;
35908
35741
  };
35909
35742
  var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
35910
- var __async$U = (__this, __arguments, generator) => {
35743
+ var __async$V = (__this, __arguments, generator) => {
35911
35744
  return new Promise((resolve, reject) => {
35912
35745
  var fulfilled = (value) => {
35913
35746
  try {
@@ -35930,7 +35763,7 @@ var __async$U = (__this, __arguments, generator) => {
35930
35763
  const usePreviewTransaction = (params) => {
35931
35764
  const { client } = useShipEngine();
35932
35765
  return reactQuery.useMutation(__spreadProps$D(__spreadValues$G({}, params), {
35933
- mutationFn: (_0) => __async$U(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
35766
+ mutationFn: (_0) => __async$V(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
35934
35767
  const request = {
35935
35768
  amount,
35936
35769
  transactionCategory
@@ -35992,7 +35825,7 @@ var __spreadValues$E = (a, b) => {
35992
35825
  return a;
35993
35826
  };
35994
35827
  var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
35995
- var __async$T = (__this, __arguments, generator) => {
35828
+ var __async$U = (__this, __arguments, generator) => {
35996
35829
  return new Promise((resolve, reject) => {
35997
35830
  var fulfilled = (value) => {
35998
35831
  try {
@@ -36015,7 +35848,7 @@ var __async$T = (__this, __arguments, generator) => {
36015
35848
  const useDeletePaymentMethod = (params) => {
36016
35849
  const { client } = useShipEngine();
36017
35850
  return reactQuery.useMutation(__spreadProps$B(__spreadValues$E({}, params), {
36018
- mutationFn: (paymentMethodId) => __async$T(void 0, null, function* () {
35851
+ mutationFn: (paymentMethodId) => __async$U(void 0, null, function* () {
36019
35852
  const result = yield client.auctanePay.deletePaymentMethod(paymentMethodId);
36020
35853
  return result.data;
36021
35854
  }),
@@ -36043,7 +35876,7 @@ var __spreadValues$D = (a, b) => {
36043
35876
  return a;
36044
35877
  };
36045
35878
  var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
36046
- var __async$S = (__this, __arguments, generator) => {
35879
+ var __async$T = (__this, __arguments, generator) => {
36047
35880
  return new Promise((resolve, reject) => {
36048
35881
  var fulfilled = (value) => {
36049
35882
  try {
@@ -36066,7 +35899,7 @@ var __async$S = (__this, __arguments, generator) => {
36066
35899
  const useUpdatePaymentMethod = (params) => {
36067
35900
  const { client } = useShipEngine();
36068
35901
  return reactQuery.useMutation(__spreadProps$A(__spreadValues$D({}, params), {
36069
- mutationFn: (_0) => __async$S(void 0, [_0], function* ({ paymentMethodId, payload }) {
35902
+ mutationFn: (_0) => __async$T(void 0, [_0], function* ({ paymentMethodId, payload }) {
36070
35903
  const result = yield client.auctanePay.updatePaymentMethod(paymentMethodId, payload);
36071
35904
  return result.data;
36072
35905
  }),
@@ -36094,7 +35927,7 @@ var __spreadValues$C = (a, b) => {
36094
35927
  return a;
36095
35928
  };
36096
35929
  var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
36097
- var __async$R = (__this, __arguments, generator) => {
35930
+ var __async$S = (__this, __arguments, generator) => {
36098
35931
  return new Promise((resolve, reject) => {
36099
35932
  var fulfilled = (value) => {
36100
35933
  try {
@@ -36117,7 +35950,7 @@ var __async$R = (__this, __arguments, generator) => {
36117
35950
  const useIdentityVerification = (params) => {
36118
35951
  const { client } = useShipEngine();
36119
35952
  return reactQuery.useMutation(__spreadProps$z(__spreadValues$C({}, params), {
36120
- mutationFn: () => __async$R(void 0, null, function* () {
35953
+ mutationFn: () => __async$S(void 0, null, function* () {
36121
35954
  const result = yield client.auctanePay.identityVerification();
36122
35955
  return result.data;
36123
35956
  }),
@@ -36156,7 +35989,7 @@ const useGetPaymentAccount = (params) => {
36156
35989
  }));
36157
35990
  };
36158
35991
 
36159
- var __async$Q = (__this, __arguments, generator) => {
35992
+ var __async$R = (__this, __arguments, generator) => {
36160
35993
  return new Promise((resolve, reject) => {
36161
35994
  var fulfilled = (value) => {
36162
35995
  try {
@@ -36179,7 +36012,7 @@ var __async$Q = (__this, __arguments, generator) => {
36179
36012
  const useAcceptCarrierTerms = (carrierId) => {
36180
36013
  const { client } = useShipEngine();
36181
36014
  return reactQuery.useMutation({
36182
- mutationFn: (request) => __async$Q(void 0, null, function* () {
36015
+ mutationFn: (request) => __async$R(void 0, null, function* () {
36183
36016
  const result = yield client.carriers.acceptTerms(carrierId, request);
36184
36017
  return result.data.acceptedTerms;
36185
36018
  }),
@@ -36188,7 +36021,7 @@ const useAcceptCarrierTerms = (carrierId) => {
36188
36021
  });
36189
36022
  };
36190
36023
 
36191
- var __async$P = (__this, __arguments, generator) => {
36024
+ var __async$Q = (__this, __arguments, generator) => {
36192
36025
  return new Promise((resolve, reject) => {
36193
36026
  var fulfilled = (value) => {
36194
36027
  try {
@@ -36211,7 +36044,7 @@ var __async$P = (__this, __arguments, generator) => {
36211
36044
  const useAddFunds = () => {
36212
36045
  const { client } = useShipEngine();
36213
36046
  return reactQuery.useMutation({
36214
- mutationFn: (_0) => __async$P(void 0, [_0], function* ({ carrierId, funds }) {
36047
+ mutationFn: (_0) => __async$Q(void 0, [_0], function* ({ carrierId, funds }) {
36215
36048
  const result = yield client.carriers.addFunds(carrierId, funds);
36216
36049
  return result.data;
36217
36050
  }),
@@ -36220,7 +36053,7 @@ const useAddFunds = () => {
36220
36053
  });
36221
36054
  };
36222
36055
 
36223
- var __async$O = (__this, __arguments, generator) => {
36056
+ var __async$P = (__this, __arguments, generator) => {
36224
36057
  return new Promise((resolve, reject) => {
36225
36058
  var fulfilled = (value) => {
36226
36059
  try {
@@ -36243,7 +36076,7 @@ var __async$O = (__this, __arguments, generator) => {
36243
36076
  const useConnectCarrier = () => {
36244
36077
  const { client } = useShipEngine();
36245
36078
  return reactQuery.useMutation({
36246
- mutationFn: (params) => __async$O(void 0, null, function* () {
36079
+ mutationFn: (params) => __async$P(void 0, null, function* () {
36247
36080
  const result = yield client.carriers.connect(params);
36248
36081
  return result.data;
36249
36082
  }),
@@ -36409,7 +36242,7 @@ var __objRest$q = (source, exclude) => {
36409
36242
  }
36410
36243
  return target;
36411
36244
  };
36412
- var __async$N = (__this, __arguments, generator) => {
36245
+ var __async$O = (__this, __arguments, generator) => {
36413
36246
  return new Promise((resolve, reject) => {
36414
36247
  var fulfilled = (value) => {
36415
36248
  try {
@@ -36433,7 +36266,7 @@ const useUpdateAutoFunding = () => {
36433
36266
  const { client } = useShipEngine();
36434
36267
  const queryClient = reactQuery.useQueryClient();
36435
36268
  return reactQuery.useMutation({
36436
- mutationFn: (_a) => __async$N(void 0, null, function* () {
36269
+ mutationFn: (_a) => __async$O(void 0, null, function* () {
36437
36270
  var _b = _a, { carrierId } = _b, options = __objRest$q(_b, ["carrierId"]);
36438
36271
  const result = yield client.carriers.updateAutoFunding(carrierId, options);
36439
36272
  return result.data;
@@ -36463,7 +36296,7 @@ const useGetZonesByCarrier = (carrierId) => {
36463
36296
  });
36464
36297
  };
36465
36298
 
36466
- var __async$M = (__this, __arguments, generator) => {
36299
+ var __async$N = (__this, __arguments, generator) => {
36467
36300
  return new Promise((resolve, reject) => {
36468
36301
  var fulfilled = (value) => {
36469
36302
  try {
@@ -36486,7 +36319,7 @@ var __async$M = (__this, __arguments, generator) => {
36486
36319
  const useDeleteCarrier = () => {
36487
36320
  const { client } = useShipEngine();
36488
36321
  return reactQuery.useMutation({
36489
- mutationFn: (carrierId) => __async$M(void 0, null, function* () {
36322
+ mutationFn: (carrierId) => __async$N(void 0, null, function* () {
36490
36323
  const result = yield client.carriers.delete(carrierId);
36491
36324
  return result.data;
36492
36325
  }),
@@ -36568,7 +36401,7 @@ var __spreadValues$z = (a, b) => {
36568
36401
  return a;
36569
36402
  };
36570
36403
  var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
36571
- var __async$L = (__this, __arguments, generator) => {
36404
+ var __async$M = (__this, __arguments, generator) => {
36572
36405
  return new Promise((resolve, reject) => {
36573
36406
  var fulfilled = (value) => {
36574
36407
  try {
@@ -36591,7 +36424,7 @@ var __async$L = (__this, __arguments, generator) => {
36591
36424
  const useConnectCarrierAccount = () => {
36592
36425
  const { client } = useShipEngine();
36593
36426
  return reactQuery.useMutation({
36594
- mutationFn: (_0) => __async$L(void 0, [_0], function* ({ carrierName, formData }) {
36427
+ mutationFn: (_0) => __async$M(void 0, [_0], function* ({ carrierName, formData }) {
36595
36428
  const formDataWithFlag = __spreadProps$w(__spreadValues$z({}, formData), { __skipDecamelize: true });
36596
36429
  const result = yield client.connections.connectCarrier(carrierName, formDataWithFlag);
36597
36430
  return result.data;
@@ -36678,7 +36511,7 @@ var __spreadValues$x = (a, b) => {
36678
36511
  return a;
36679
36512
  };
36680
36513
  var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
36681
- var __async$K = (__this, __arguments, generator) => {
36514
+ var __async$L = (__this, __arguments, generator) => {
36682
36515
  return new Promise((resolve, reject) => {
36683
36516
  var fulfilled = (value) => {
36684
36517
  try {
@@ -36701,7 +36534,7 @@ var __async$K = (__this, __arguments, generator) => {
36701
36534
  const useUpdateConnectionsCarrierSettings = (params) => {
36702
36535
  const { client } = useShipEngine();
36703
36536
  return reactQuery.useMutation(__spreadProps$u(__spreadValues$x({}, params), {
36704
- mutationFn: (_0) => __async$K(void 0, [_0], function* ({
36537
+ mutationFn: (_0) => __async$L(void 0, [_0], function* ({
36705
36538
  carrierName,
36706
36539
  carrierId,
36707
36540
  formData
@@ -36737,7 +36570,7 @@ var __spreadValues$w = (a, b) => {
36737
36570
  return a;
36738
36571
  };
36739
36572
  var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
36740
- var __async$J = (__this, __arguments, generator) => {
36573
+ var __async$K = (__this, __arguments, generator) => {
36741
36574
  return new Promise((resolve, reject) => {
36742
36575
  var fulfilled = (value) => {
36743
36576
  try {
@@ -36760,7 +36593,7 @@ var __async$J = (__this, __arguments, generator) => {
36760
36593
  const useRequestStampsAccountUrls = (params) => {
36761
36594
  const { client } = useShipEngine();
36762
36595
  return reactQuery.useMutation(__spreadProps$t(__spreadValues$w({}, params), {
36763
- mutationFn: (request) => __async$J(void 0, null, function* () {
36596
+ mutationFn: (request) => __async$K(void 0, null, function* () {
36764
36597
  const result = yield client.connections.requestStampsAccountUrls(request);
36765
36598
  return result.data;
36766
36599
  }),
@@ -36779,7 +36612,7 @@ const useListCustomPackageTypes = () => {
36779
36612
  });
36780
36613
  };
36781
36614
 
36782
- var __async$I = (__this, __arguments, generator) => {
36615
+ var __async$J = (__this, __arguments, generator) => {
36783
36616
  return new Promise((resolve, reject) => {
36784
36617
  var fulfilled = (value) => {
36785
36618
  try {
@@ -36802,7 +36635,7 @@ var __async$I = (__this, __arguments, generator) => {
36802
36635
  const useAcceptFundingSourceTerms = (fundingSourceId) => {
36803
36636
  const { client } = useShipEngine();
36804
36637
  return reactQuery.useMutation({
36805
- mutationFn: (request) => __async$I(void 0, null, function* () {
36638
+ mutationFn: (request) => __async$J(void 0, null, function* () {
36806
36639
  const result = yield client.fundingSources.acceptTerms(fundingSourceId, request);
36807
36640
  return result.data.acceptedTerms;
36808
36641
  }),
@@ -36811,7 +36644,7 @@ const useAcceptFundingSourceTerms = (fundingSourceId) => {
36811
36644
  });
36812
36645
  };
36813
36646
 
36814
- var __async$H = (__this, __arguments, generator) => {
36647
+ var __async$I = (__this, __arguments, generator) => {
36815
36648
  return new Promise((resolve, reject) => {
36816
36649
  var fulfilled = (value) => {
36817
36650
  try {
@@ -36834,7 +36667,7 @@ var __async$H = (__this, __arguments, generator) => {
36834
36667
  const useCreateFundingSource = () => {
36835
36668
  const { client } = useShipEngine();
36836
36669
  return reactQuery.useMutation({
36837
- mutationFn: (fundingSource) => __async$H(void 0, null, function* () {
36670
+ mutationFn: (fundingSource) => __async$I(void 0, null, function* () {
36838
36671
  const result = yield client.fundingSources.create(fundingSource);
36839
36672
  return result.data;
36840
36673
  }),
@@ -36843,7 +36676,7 @@ const useCreateFundingSource = () => {
36843
36676
  });
36844
36677
  };
36845
36678
 
36846
- var __async$G = (__this, __arguments, generator) => {
36679
+ var __async$H = (__this, __arguments, generator) => {
36847
36680
  return new Promise((resolve, reject) => {
36848
36681
  var fulfilled = (value) => {
36849
36682
  try {
@@ -36866,7 +36699,7 @@ var __async$G = (__this, __arguments, generator) => {
36866
36699
  const useFundingSourcesAddFunds = () => {
36867
36700
  const { client } = useShipEngine();
36868
36701
  return reactQuery.useMutation({
36869
- mutationFn: (_0) => __async$G(void 0, [_0], function* ({ funds, fundingSourceId }) {
36702
+ mutationFn: (_0) => __async$H(void 0, [_0], function* ({ funds, fundingSourceId }) {
36870
36703
  const result = yield client.fundingSources.addFunds(funds, fundingSourceId);
36871
36704
  return result.data;
36872
36705
  }),
@@ -36925,7 +36758,7 @@ const useListFundingSources = () => {
36925
36758
  });
36926
36759
  };
36927
36760
 
36928
- var __async$F = (__this, __arguments, generator) => {
36761
+ var __async$G = (__this, __arguments, generator) => {
36929
36762
  return new Promise((resolve, reject) => {
36930
36763
  var fulfilled = (value) => {
36931
36764
  try {
@@ -36948,7 +36781,7 @@ var __async$F = (__this, __arguments, generator) => {
36948
36781
  const useRegisterCarrier = () => {
36949
36782
  const { client } = useShipEngine();
36950
36783
  return reactQuery.useMutation({
36951
- mutationFn: (carrier) => __async$F(void 0, null, function* () {
36784
+ mutationFn: (carrier) => __async$G(void 0, null, function* () {
36952
36785
  const result = yield client.fundingSources.registerCarrier(carrier);
36953
36786
  return result.data;
36954
36787
  }),
@@ -36957,7 +36790,7 @@ const useRegisterCarrier = () => {
36957
36790
  });
36958
36791
  };
36959
36792
 
36960
- var __async$E = (__this, __arguments, generator) => {
36793
+ var __async$F = (__this, __arguments, generator) => {
36961
36794
  return new Promise((resolve, reject) => {
36962
36795
  var fulfilled = (value) => {
36963
36796
  try {
@@ -36980,7 +36813,7 @@ var __async$E = (__this, __arguments, generator) => {
36980
36813
  const useUpdateFundingSource = () => {
36981
36814
  const { client } = useShipEngine();
36982
36815
  return reactQuery.useMutation({
36983
- mutationFn: (_0) => __async$E(void 0, [_0], function* ({
36816
+ mutationFn: (_0) => __async$F(void 0, [_0], function* ({
36984
36817
  billingInfo,
36985
36818
  creditCardInfo,
36986
36819
  fundingSourceId,
@@ -37081,7 +36914,7 @@ var __objRest$m = (source, exclude) => {
37081
36914
  }
37082
36915
  return target;
37083
36916
  };
37084
- var __async$D = (__this, __arguments, generator) => {
36917
+ var __async$E = (__this, __arguments, generator) => {
37085
36918
  return new Promise((resolve, reject) => {
37086
36919
  var fulfilled = (value) => {
37087
36920
  try {
@@ -37104,7 +36937,7 @@ var __async$D = (__this, __arguments, generator) => {
37104
36937
  const useAddInsuranceFunds = () => {
37105
36938
  const { client } = useShipEngine();
37106
36939
  return reactQuery.useMutation({
37107
- mutationFn: (_a) => __async$D(void 0, null, function* () {
36940
+ mutationFn: (_a) => __async$E(void 0, null, function* () {
37108
36941
  var _b = _a, { insuranceProvider } = _b, rest = __objRest$m(_b, ["insuranceProvider"]);
37109
36942
  const result = yield client.insurance.addFunds(insuranceProvider, rest);
37110
36943
  return result.data;
@@ -37133,7 +36966,7 @@ var __spreadValues$t = (a, b) => {
37133
36966
  return a;
37134
36967
  };
37135
36968
  var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
37136
- var __async$C = (__this, __arguments, generator) => {
36969
+ var __async$D = (__this, __arguments, generator) => {
37137
36970
  return new Promise((resolve, reject) => {
37138
36971
  var fulfilled = (value) => {
37139
36972
  try {
@@ -37156,7 +36989,7 @@ var __async$C = (__this, __arguments, generator) => {
37156
36989
  const useCreateInvoiceAddress = (params) => {
37157
36990
  const { client } = useShipEngine();
37158
36991
  return reactQuery.useMutation(__spreadProps$q(__spreadValues$t({}, params), {
37159
- mutationFn: (invoiceAddress) => __async$C(void 0, null, function* () {
36992
+ mutationFn: (invoiceAddress) => __async$D(void 0, null, function* () {
37160
36993
  const result = yield client.invoiceAddress.create(invoiceAddress);
37161
36994
  return result.data;
37162
36995
  }),
@@ -37184,7 +37017,7 @@ var __spreadValues$s = (a, b) => {
37184
37017
  return a;
37185
37018
  };
37186
37019
  var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
37187
- var __async$B = (__this, __arguments, generator) => {
37020
+ var __async$C = (__this, __arguments, generator) => {
37188
37021
  return new Promise((resolve, reject) => {
37189
37022
  var fulfilled = (value) => {
37190
37023
  try {
@@ -37207,7 +37040,7 @@ var __async$B = (__this, __arguments, generator) => {
37207
37040
  const useUpdateInvoiceAddress = (params) => {
37208
37041
  const { client } = useShipEngine();
37209
37042
  return reactQuery.useMutation(__spreadProps$p(__spreadValues$s({}, params), {
37210
- mutationFn: (invoiceAddress) => __async$B(void 0, null, function* () {
37043
+ mutationFn: (invoiceAddress) => __async$C(void 0, null, function* () {
37211
37044
  const result = yield client.invoiceAddress.update(invoiceAddress);
37212
37045
  return result.data;
37213
37046
  }),
@@ -37245,6 +37078,38 @@ const useGetInvoiceAddress = (params) => {
37245
37078
  }));
37246
37079
  };
37247
37080
 
37081
+ var __async$B = (__this, __arguments, generator) => {
37082
+ return new Promise((resolve, reject) => {
37083
+ var fulfilled = (value) => {
37084
+ try {
37085
+ step(generator.next(value));
37086
+ } catch (e) {
37087
+ reject(e);
37088
+ }
37089
+ };
37090
+ var rejected = (value) => {
37091
+ try {
37092
+ step(generator.throw(value));
37093
+ } catch (e) {
37094
+ reject(e);
37095
+ }
37096
+ };
37097
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
37098
+ step((generator = generator.apply(__this, __arguments)).next());
37099
+ });
37100
+ };
37101
+ const useCancelRefund = () => {
37102
+ const { client } = useShipEngine();
37103
+ return reactQuery.useMutation({
37104
+ mutationFn: (labelId) => __async$B(void 0, null, function* () {
37105
+ const result = yield client.labels.cancelRefund(labelId);
37106
+ return result.data;
37107
+ }),
37108
+ mutationKey: ["useCancelRefund"],
37109
+ onError
37110
+ });
37111
+ };
37112
+
37248
37113
  var __defProp$q = Object.defineProperty;
37249
37114
  var __defProps$n = Object.defineProperties;
37250
37115
  var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
@@ -37437,21 +37302,6 @@ const useCreateLabel = (params) => {
37437
37302
  }));
37438
37303
  };
37439
37304
 
37440
- const useGetLabel = (labelId) => {
37441
- const { client } = useShipEngine();
37442
- return reactQuery.useQuery({
37443
- enabled: labelId !== void 0,
37444
- onError,
37445
- queryFn: () => {
37446
- if (labelId)
37447
- return client.labels.get(labelId);
37448
- return Promise.reject(new Error("labelId is require"));
37449
- },
37450
- queryKey: ["useGetLabel", labelId],
37451
- select: (result) => result.data
37452
- });
37453
- };
37454
-
37455
37305
  var __defProp$n = Object.defineProperty;
37456
37306
  var __defProps$k = Object.defineProperties;
37457
37307
  var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
@@ -37483,46 +37333,28 @@ var __objRest$i = (source, exclude) => {
37483
37333
  }
37484
37334
  return target;
37485
37335
  };
37486
- const useListLabels = (params) => {
37336
+ const useExportLabels = (params) => {
37487
37337
  const { client } = useShipEngine();
37488
37338
  const _a = __spreadValues$n({}, params), { queryFnParams } = _a, rest = __objRest$i(_a, ["queryFnParams"]);
37489
37339
  return reactQuery.useQuery(__spreadProps$k(__spreadValues$n({}, rest), {
37490
37340
  onError,
37491
- queryFn: () => client.labels.list(queryFnParams),
37492
- queryKey: ["useListLabels", params],
37493
- select: (result) => result.data
37341
+ queryFn: () => client.labels.export(queryFnParams),
37342
+ queryKey: ["useExportLabels", params]
37494
37343
  }));
37495
37344
  };
37496
37345
 
37497
- var __async$x = (__this, __arguments, generator) => {
37498
- return new Promise((resolve, reject) => {
37499
- var fulfilled = (value) => {
37500
- try {
37501
- step(generator.next(value));
37502
- } catch (e) {
37503
- reject(e);
37504
- }
37505
- };
37506
- var rejected = (value) => {
37507
- try {
37508
- step(generator.throw(value));
37509
- } catch (e) {
37510
- reject(e);
37511
- }
37512
- };
37513
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
37514
- step((generator = generator.apply(__this, __arguments)).next());
37515
- });
37516
- };
37517
- const useVoidLabel = () => {
37346
+ const useGetLabel = (labelId) => {
37518
37347
  const { client } = useShipEngine();
37519
- return reactQuery.useMutation({
37520
- mutationFn: (labelId) => __async$x(void 0, null, function* () {
37521
- const result = yield client.labels.void(labelId);
37522
- return result.data;
37523
- }),
37524
- mutationKey: ["useVoidLabel"],
37525
- onError
37348
+ return reactQuery.useQuery({
37349
+ enabled: labelId !== void 0,
37350
+ onError,
37351
+ queryFn: () => {
37352
+ if (labelId)
37353
+ return client.labels.get(labelId);
37354
+ return Promise.reject(new Error("labelId is require"));
37355
+ },
37356
+ queryKey: ["useGetLabel", labelId],
37357
+ select: (result) => result.data
37526
37358
  });
37527
37359
  };
37528
37360
 
@@ -37557,7 +37389,49 @@ var __objRest$h = (source, exclude) => {
37557
37389
  }
37558
37390
  return target;
37559
37391
  };
37560
- var __async$w = (__this, __arguments, generator) => {
37392
+ const useListLabels = (params) => {
37393
+ const { client } = useShipEngine();
37394
+ const _a = __spreadValues$m({}, params), { queryFnParams } = _a, rest = __objRest$h(_a, ["queryFnParams"]);
37395
+ return reactQuery.useQuery(__spreadProps$j(__spreadValues$m({}, rest), {
37396
+ onError,
37397
+ queryFn: () => client.labels.list(queryFnParams),
37398
+ queryKey: ["useListLabels", params],
37399
+ select: (result) => result.data
37400
+ }));
37401
+ };
37402
+
37403
+ var __defProp$l = Object.defineProperty;
37404
+ var __defProps$i = Object.defineProperties;
37405
+ var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
37406
+ var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
37407
+ var __hasOwnProp$q = Object.prototype.hasOwnProperty;
37408
+ var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
37409
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37410
+ var __spreadValues$l = (a, b) => {
37411
+ for (var prop in b || (b = {}))
37412
+ if (__hasOwnProp$q.call(b, prop))
37413
+ __defNormalProp$l(a, prop, b[prop]);
37414
+ if (__getOwnPropSymbols$q)
37415
+ for (var prop of __getOwnPropSymbols$q(b)) {
37416
+ if (__propIsEnum$q.call(b, prop))
37417
+ __defNormalProp$l(a, prop, b[prop]);
37418
+ }
37419
+ return a;
37420
+ };
37421
+ var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
37422
+ var __objRest$g = (source, exclude) => {
37423
+ var target = {};
37424
+ for (var prop in source)
37425
+ if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
37426
+ target[prop] = source[prop];
37427
+ if (source != null && __getOwnPropSymbols$q)
37428
+ for (var prop of __getOwnPropSymbols$q(source)) {
37429
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
37430
+ target[prop] = source[prop];
37431
+ }
37432
+ return target;
37433
+ };
37434
+ var __async$x = (__this, __arguments, generator) => {
37561
37435
  return new Promise((resolve, reject) => {
37562
37436
  var fulfilled = (value) => {
37563
37437
  try {
@@ -37579,8 +37453,8 @@ var __async$w = (__this, __arguments, generator) => {
37579
37453
  };
37580
37454
  const useListLabelsInfinite = (params) => {
37581
37455
  const { client } = useShipEngine();
37582
- const _a = __spreadValues$m({}, params), { queryFnParams } = _a, rest = __objRest$h(_a, ["queryFnParams"]);
37583
- return reactQuery.useInfiniteQuery(__spreadProps$j(__spreadValues$m({}, rest), {
37456
+ const _a = __spreadValues$l({}, params), { queryFnParams } = _a, rest = __objRest$g(_a, ["queryFnParams"]);
37457
+ return reactQuery.useInfiniteQuery(__spreadProps$i(__spreadValues$l({}, rest), {
37584
37458
  getNextPageParam: (lastPage) => {
37585
37459
  if (lastPage.page < lastPage.pages) {
37586
37460
  return lastPage.page + 1;
@@ -37588,8 +37462,8 @@ const useListLabelsInfinite = (params) => {
37588
37462
  return void 0;
37589
37463
  },
37590
37464
  onError,
37591
- queryFn: (_0) => __async$w(void 0, [_0], function* ({ pageParam = 1 }) {
37592
- const response = yield client.labels.list(__spreadProps$j(__spreadValues$m({}, queryFnParams), { page: pageParam }));
37465
+ queryFn: (_0) => __async$x(void 0, [_0], function* ({ pageParam = 1 }) {
37466
+ const response = yield client.labels.list(__spreadProps$i(__spreadValues$l({}, queryFnParams), { page: pageParam }));
37593
37467
  return response.data;
37594
37468
  }),
37595
37469
  queryKey: ["useListLabelsInfinite", params],
@@ -37603,45 +37477,36 @@ const useListLabelsInfinite = (params) => {
37603
37477
  }));
37604
37478
  };
37605
37479
 
37606
- var __defProp$l = Object.defineProperty;
37607
- var __defProps$i = Object.defineProperties;
37608
- var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
37609
- var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
37610
- var __hasOwnProp$q = Object.prototype.hasOwnProperty;
37611
- var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
37612
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37613
- var __spreadValues$l = (a, b) => {
37614
- for (var prop in b || (b = {}))
37615
- if (__hasOwnProp$q.call(b, prop))
37616
- __defNormalProp$l(a, prop, b[prop]);
37617
- if (__getOwnPropSymbols$q)
37618
- for (var prop of __getOwnPropSymbols$q(b)) {
37619
- if (__propIsEnum$q.call(b, prop))
37620
- __defNormalProp$l(a, prop, b[prop]);
37621
- }
37622
- return a;
37623
- };
37624
- var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
37625
- var __objRest$g = (source, exclude) => {
37626
- var target = {};
37627
- for (var prop in source)
37628
- if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
37629
- target[prop] = source[prop];
37630
- if (source != null && __getOwnPropSymbols$q)
37631
- for (var prop of __getOwnPropSymbols$q(source)) {
37632
- if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
37633
- target[prop] = source[prop];
37634
- }
37635
- return target;
37480
+ var __async$w = (__this, __arguments, generator) => {
37481
+ return new Promise((resolve, reject) => {
37482
+ var fulfilled = (value) => {
37483
+ try {
37484
+ step(generator.next(value));
37485
+ } catch (e) {
37486
+ reject(e);
37487
+ }
37488
+ };
37489
+ var rejected = (value) => {
37490
+ try {
37491
+ step(generator.throw(value));
37492
+ } catch (e) {
37493
+ reject(e);
37494
+ }
37495
+ };
37496
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
37497
+ step((generator = generator.apply(__this, __arguments)).next());
37498
+ });
37636
37499
  };
37637
- const useExportLabels = (params) => {
37500
+ const useVoidLabel = () => {
37638
37501
  const { client } = useShipEngine();
37639
- const _a = __spreadValues$l({}, params), { queryFnParams } = _a, rest = __objRest$g(_a, ["queryFnParams"]);
37640
- return reactQuery.useQuery(__spreadProps$i(__spreadValues$l({}, rest), {
37641
- onError,
37642
- queryFn: () => client.labels.export(queryFnParams),
37643
- queryKey: ["useExportLabels", params]
37644
- }));
37502
+ return reactQuery.useMutation({
37503
+ mutationFn: (labelId) => __async$w(void 0, null, function* () {
37504
+ const result = yield client.labels.void(labelId);
37505
+ return result.data;
37506
+ }),
37507
+ mutationKey: ["useVoidLabel"],
37508
+ onError
37509
+ });
37645
37510
  };
37646
37511
 
37647
37512
  var __defProp$k = Object.defineProperty;
@@ -40838,6 +40703,7 @@ exports.useAddInsuranceFunds = useAddInsuranceFunds;
40838
40703
  exports.useAddSandboxCarriers = useAddSandboxCarriers;
40839
40704
  exports.useAlchemy = useAlchemy;
40840
40705
  exports.useCalculateRates = useCalculateRates;
40706
+ exports.useCancelRefund = useCancelRefund;
40841
40707
  exports.useCancelShipment = useCancelShipment;
40842
40708
  exports.useCarrierConnectionsServicesList = useCarrierConnectionsServicesList;
40843
40709
  exports.useConnectCarrier = useConnectCarrier;