@artisan-commerce/builders 0.6.0 → 0.7.0-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/build/builders/account.builder.d.ts +2 -0
- package/build/builders/banner.builder.d.ts +6 -1
- package/build/builders/billingData.builder.d.ts +4 -1
- package/build/builders/catalogue.builder.d.ts +4 -1
- package/build/builders/category.builder.d.ts +10 -3
- package/build/builders/common.builder.d.ts +121 -51
- package/build/builders/country.builder.d.ts +11 -3
- package/build/builders/coupon.builder.d.ts +6 -0
- package/build/builders/fulfillment.builder.d.ts +178 -0
- package/build/builders/image.builder.d.ts +32 -0
- package/build/builders/notification.builder.d.ts +19 -0
- package/build/builders/order.builder.d.ts +167 -0
- package/build/builders/payment.builder.d.ts +18 -6
- package/build/builders/product.builder.d.ts +53 -17
- package/build/builders/settings.builder.d.ts +19 -0
- package/build/builders/shippingAddress.builder.d.ts +35 -7
- package/build/builders/shoppingCart.builder.d.ts +22 -7
- package/build/builders/store.builder.d.ts +26 -7
- package/build/builders/user.builder.d.ts +2 -0
- package/build/builders/vendor.builder.d.ts +2 -0
- package/build/index.d.ts +8 -1
- package/build/main.bundle.js +2 -2
- package/build/report.json +1 -1
- package/package.json +3 -3
|
@@ -4,6 +4,7 @@ import { GenericStoreLocation, StoreLocation } from "@artisan-commerce/types";
|
|
|
4
4
|
/**
|
|
5
5
|
* Generates Store object with random data.
|
|
6
6
|
*
|
|
7
|
+
* @since 0.5.14
|
|
7
8
|
* @param {Partial<Store>} overrides Properties to override a {@link Store}
|
|
8
9
|
* @returns {Store} A {@link Store} object
|
|
9
10
|
*/
|
|
@@ -11,27 +12,35 @@ export declare const buildStore: (overrides?: Partial<Store>) => Store;
|
|
|
11
12
|
/**
|
|
12
13
|
* Generates AdditionalStoreInformation object with random data.
|
|
13
14
|
*
|
|
14
|
-
* @
|
|
15
|
-
* @
|
|
15
|
+
* @since 0.5.14
|
|
16
|
+
* @param {Partial<AdditionalStoreInformation>} overrides Properties to
|
|
17
|
+
* override a {@link AdditionalStoreInformation}
|
|
18
|
+
* @returns {AdditionalStoreInformation} A
|
|
19
|
+
* {@link AdditionalStoreInformation} object
|
|
16
20
|
*/
|
|
17
21
|
export declare const buildAdditionalStoreInformation: (overrides?: Partial<AdditionalStoreInformation>) => AdditionalStoreInformation;
|
|
18
22
|
/**
|
|
19
23
|
* Generates Delivery object with random data.
|
|
20
24
|
*
|
|
21
|
-
* @
|
|
25
|
+
* @since 0.5.14
|
|
26
|
+
* @param {Partial<Delivery>} overrides Properties to override
|
|
27
|
+
* a {@link Delivery}
|
|
22
28
|
* @returns {Delivery} A {@link Delivery} object
|
|
23
29
|
*/
|
|
24
30
|
export declare const buildDelivery: (overrides?: Partial<Delivery>) => Delivery;
|
|
25
31
|
/**
|
|
26
32
|
* Generates Schedule object with random data.
|
|
27
33
|
*
|
|
28
|
-
* @
|
|
34
|
+
* @since 0.5.14
|
|
35
|
+
* @param {Partial<Schedule>} overrides Properties to override
|
|
36
|
+
* a {@link Schedule}
|
|
29
37
|
* @returns {Schedule} A {@link Schedule} object
|
|
30
38
|
*/
|
|
31
39
|
export declare const buildSchedule: (overrides?: Partial<Schedule>) => Schedule;
|
|
32
40
|
/**
|
|
33
41
|
* Generates Service object with random data.
|
|
34
42
|
*
|
|
43
|
+
* @since 0.5.14
|
|
35
44
|
* @param {Partial<Service>} overrides Properties to override a {@link Service}
|
|
36
45
|
* @returns {Service} A {@link Service} object
|
|
37
46
|
*/
|
|
@@ -39,6 +48,7 @@ export declare const buildService: (overrides?: Partial<Service>) => Service;
|
|
|
39
48
|
/**
|
|
40
49
|
* Generates a list of Service objects with random data.
|
|
41
50
|
*
|
|
51
|
+
* @since 0.5.14
|
|
42
52
|
* @param {number} quantity The number of objects to be generated
|
|
43
53
|
* @returns {Service[]} An array of {@link Service}s objects
|
|
44
54
|
*/
|
|
@@ -46,6 +56,7 @@ export declare const genServices: (quantity?: number | undefined) => Service[];
|
|
|
46
56
|
/**
|
|
47
57
|
* Generates a list of Schedule objects with random data.
|
|
48
58
|
*
|
|
59
|
+
* @since 0.5.14
|
|
49
60
|
* @param {number} quantity The number of objects to be generated
|
|
50
61
|
* @returns {Schedule[]} An array of {@link Schedule}s objects
|
|
51
62
|
*/
|
|
@@ -53,6 +64,7 @@ export declare const genSchedules: (quantity?: number | undefined) => Schedule[]
|
|
|
53
64
|
/**
|
|
54
65
|
* Generates a list of Store objects with random data.
|
|
55
66
|
*
|
|
67
|
+
* @since 0.5.14
|
|
56
68
|
* @param {number} quantity The number of objects to be generated
|
|
57
69
|
* @returns {Store[]} An array of {@link Store}s objects
|
|
58
70
|
*/
|
|
@@ -60,27 +72,34 @@ export declare const genStores: (quantity?: number | undefined) => Store[];
|
|
|
60
72
|
/**
|
|
61
73
|
* Generates GenericStoreLocation object with random data.
|
|
62
74
|
*
|
|
63
|
-
* @
|
|
75
|
+
* @since 0.5.14
|
|
76
|
+
* @param {Partial<GenericStoreLocation>} overrides Properties to override
|
|
77
|
+
* a {@link GenericStoreLocation}
|
|
64
78
|
* @returns {GenericStoreLocation} A {@link GenericStoreLocation} object
|
|
65
79
|
*/
|
|
66
80
|
export declare const buildGenericStoreLocation: (overrides?: Partial<GenericStoreLocation>) => GenericStoreLocation;
|
|
67
81
|
/**
|
|
68
82
|
* Generates a list of GenericStoreLocation objects with random data.
|
|
69
83
|
*
|
|
84
|
+
* @since 0.5.14
|
|
70
85
|
* @param {number} quantity The number of objects to be generated
|
|
71
|
-
* @returns {GenericStoreLocation[]} An array of {@link GenericStoreLocation}s
|
|
86
|
+
* @returns {GenericStoreLocation[]} An array of {@link GenericStoreLocation}s
|
|
87
|
+
* objects
|
|
72
88
|
*/
|
|
73
89
|
export declare const genGenericStoreLocation: (quantity?: number | undefined) => GenericStoreLocation[];
|
|
74
90
|
/**
|
|
75
91
|
* Generates StoreLocation object with random data.
|
|
76
92
|
*
|
|
77
|
-
* @
|
|
93
|
+
* @since 0.5.14
|
|
94
|
+
* @param {Partial<StoreLocation>} overrides Properties to override
|
|
95
|
+
* a {@link StoreLocation}
|
|
78
96
|
* @returns {StoreLocation} A {@link StoreLocation} object
|
|
79
97
|
*/
|
|
80
98
|
export declare const buildStoreLocation: (overrides?: Partial<StoreLocation>) => StoreLocation;
|
|
81
99
|
/**
|
|
82
100
|
* Generates a list of StoreLocation objects with random data.
|
|
83
101
|
*
|
|
102
|
+
* @since 0.5.14
|
|
84
103
|
* @param {number} quantity The number of objects to be generated
|
|
85
104
|
* @returns {StoreLocation[]} An array of {@link StoreLocation}s objects
|
|
86
105
|
*/
|
|
@@ -2,6 +2,7 @@ import { User } from "@artisan-commerce/types";
|
|
|
2
2
|
/**
|
|
3
3
|
* Generates User object with random data.
|
|
4
4
|
*
|
|
5
|
+
* @since 0.5.14
|
|
5
6
|
* @param {Partial<User>} overrides Properties to override a {@link User}
|
|
6
7
|
* @returns {User} A {@link User} object
|
|
7
8
|
*/
|
|
@@ -9,6 +10,7 @@ export declare const buildUser: (overrides?: Partial<User>) => User;
|
|
|
9
10
|
/**
|
|
10
11
|
* Generates a list of User objects with random data.
|
|
11
12
|
*
|
|
13
|
+
* @since 0.5.14
|
|
12
14
|
* @param {number} quantity The number of objects to be generated
|
|
13
15
|
* @returns {User[]} An array of {@link User}s objects
|
|
14
16
|
*/
|
|
@@ -2,6 +2,7 @@ import { Vendor } from "@artisan-commerce/types";
|
|
|
2
2
|
/**
|
|
3
3
|
* Generates Vendor object with random data.
|
|
4
4
|
*
|
|
5
|
+
* @since 0.5.14
|
|
5
6
|
* @param {Partial<Vendor>} overrides Properties to override a {@link Vendor}
|
|
6
7
|
* @returns {Vendor} A {@link Vendor} object
|
|
7
8
|
*/
|
|
@@ -9,6 +10,7 @@ export declare const buildVendor: (overrides?: Partial<Vendor>) => Vendor;
|
|
|
9
10
|
/**
|
|
10
11
|
* Generates a list of Vendor objects with random data.
|
|
11
12
|
*
|
|
13
|
+
* @since 0.5.14
|
|
12
14
|
* @param {number} quantity The number of objects to be generated
|
|
13
15
|
* @returns {Vendor[]} An array of {@link Vendor}s objects
|
|
14
16
|
*/
|
package/build/index.d.ts
CHANGED
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
import * as accountBuilders from "./builders/account.builder";
|
|
2
|
+
import * as bannerBuilders from "./builders/banner.builder";
|
|
2
3
|
import * as billingDataBuilders from "./builders/billingData.builder";
|
|
3
4
|
import * as catalogueBuilders from "./builders/catalogue.builder";
|
|
4
5
|
import * as categoryBuilders from "./builders/category.builder";
|
|
5
6
|
import * as common from "./builders/common.builder";
|
|
6
7
|
import * as countryBuilders from "./builders/country.builder";
|
|
7
8
|
import * as couponBuilders from "./builders/coupon.builder";
|
|
9
|
+
import * as fulfillmentBuilders from "./builders/fulfillment.builder";
|
|
10
|
+
import * as imageBuilders from "./builders/image.builder";
|
|
11
|
+
import * as notificationBuilders from "./builders/notification.builder";
|
|
12
|
+
import * as orderBuilders from "./builders/order.builder";
|
|
13
|
+
import * as paymentBuilders from "./builders/payment.builder";
|
|
8
14
|
import * as productBuilders from "./builders/product.builder";
|
|
15
|
+
import * as settingsBuilders from "./builders/settings.builder";
|
|
9
16
|
import * as shippingAddressBuilders from "./builders/shippingAddress.builder";
|
|
10
17
|
import * as shoppingCartBuilders from "./builders/shoppingCart.builder";
|
|
11
18
|
import * as storeBuilders from "./builders/store.builder";
|
|
12
19
|
import * as userBuilders from "./builders/user.builder";
|
|
13
20
|
import * as vendorBuilders from "./builders/vendor.builder";
|
|
14
21
|
import ArtisanData from "./lib/artisan";
|
|
15
|
-
export { common, accountBuilders,
|
|
22
|
+
export { common, accountBuilders, bannerBuilders, billingDataBuilders, categoryBuilders, catalogueBuilders, countryBuilders, couponBuilders, fulfillmentBuilders, imageBuilders, notificationBuilders, orderBuilders, productBuilders, paymentBuilders, settingsBuilders, shippingAddressBuilders, shoppingCartBuilders, vendorBuilders, storeBuilders, userBuilders };
|
|
16
23
|
export default ArtisanData;
|
package/build/main.bundle.js
CHANGED
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
6
6
|
* @license MIT
|
|
7
7
|
*/
|
|
8
|
-
var i=o(1051),n=o(1052),r=o(1053);function t(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(a,e){if(t()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(a=new Uint8Array(e)).__proto__=c.prototype:(null===a&&(a=new c(e)),a.length=e),a}function c(a,e,o){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(a,e,o);if("number"==typeof a){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return m(this,a)}return l(this,a,e,o)}function l(a,e,o,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(a,e,o,i){if(e.byteLength,o<0||e.byteLength<o)throw new RangeError("'offset' is out of bounds");if(e.byteLength<o+(i||0))throw new RangeError("'length' is out of bounds");e=void 0===o&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,o):new Uint8Array(e,o,i);c.TYPED_ARRAY_SUPPORT?(a=e).__proto__=c.prototype:a=d(a,e);return a}(a,e,o,i):"string"==typeof e?function(a,e,o){"string"==typeof o&&""!==o||(o="utf8");if(!c.isEncoding(o))throw new TypeError('"encoding" must be a valid string encoding');var i=0|v(e,o),n=(a=s(a,i)).write(e,o);n!==i&&(a=a.slice(0,n));return a}(a,e,o):function(a,e){if(c.isBuffer(e)){var o=0|p(e.length);return 0===(a=s(a,o)).length||e.copy(a,0,0,o),a}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(i=e.length)!=i?s(a,0):d(a,e);if("Buffer"===e.type&&r(e.data))return d(a,e.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(a,e)}function u(a){if("number"!=typeof a)throw new TypeError('"size" argument must be a number');if(a<0)throw new RangeError('"size" argument must not be negative')}function m(a,e){if(u(e),a=s(a,e<0?0:0|p(e)),!c.TYPED_ARRAY_SUPPORT)for(var o=0;o<e;++o)a[o]=0;return a}function d(a,e){var o=e.length<0?0:0|p(e.length);a=s(a,o);for(var i=0;i<o;i+=1)a[i]=255&e[i];return a}function p(a){if(a>=t())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+t().toString(16)+" bytes");return 0|a}function v(a,e){if(c.isBuffer(a))return a.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(a)||a instanceof ArrayBuffer))return a.byteLength;"string"!=typeof a&&(a=""+a);var o=a.length;if(0===o)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return o;case"utf8":case"utf-8":case void 0:return E(a).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*o;case"hex":return o>>>1;case"base64":return J(a).length;default:if(i)return E(a).length;e=(""+e).toLowerCase(),i=!0}}function k(a,e,o){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===o||o>this.length)&&(o=this.length),o<=0)return"";if((o>>>=0)<=(e>>>=0))return"";for(a||(a="utf8");;)switch(a){case"hex":return j(this,e,o);case"utf8":case"utf-8":return K(this,e,o);case"ascii":return B(this,e,o);case"latin1":case"binary":return A(this,e,o);case"base64":return M(this,e,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,o);default:if(i)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),i=!0}}function h(a,e,o){var i=a[e];a[e]=a[o],a[o]=i}function f(a,e,o,i,n){if(0===a.length)return-1;if("string"==typeof o?(i=o,o=0):o>2147483647?o=2147483647:o<-2147483648&&(o=-2147483648),o=+o,isNaN(o)&&(o=n?0:a.length-1),o<0&&(o=a.length+o),o>=a.length){if(n)return-1;o=a.length-1}else if(o<0){if(!n)return-1;o=0}if("string"==typeof e&&(e=c.from(e,i)),c.isBuffer(e))return 0===e.length?-1:g(a,e,o,i,n);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(a,e,o):Uint8Array.prototype.lastIndexOf.call(a,e,o):g(a,[e],o,i,n);throw new TypeError("val must be string, number or Buffer")}function g(a,e,o,i,n){var r,t=1,s=a.length,c=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(a.length<2||e.length<2)return-1;t=2,s/=2,c/=2,o/=2}function l(a,e){return 1===t?a[e]:a.readUInt16BE(e*t)}if(n){var u=-1;for(r=o;r<s;r++)if(l(a,r)===l(e,-1===u?0:r-u)){if(-1===u&&(u=r),r-u+1===c)return u*t}else-1!==u&&(r-=r-u),u=-1}else for(o+c>s&&(o=s-c),r=o;r>=0;r--){for(var m=!0,d=0;d<c;d++)if(l(a,r+d)!==l(e,d)){m=!1;break}if(m)return r}return-1}function b(a,e,o,i){o=Number(o)||0;var n=a.length-o;i?(i=Number(i))>n&&(i=n):i=n;var r=e.length;if(r%2!=0)throw new TypeError("Invalid hex string");i>r/2&&(i=r/2);for(var t=0;t<i;++t){var s=parseInt(e.substr(2*t,2),16);if(isNaN(s))return t;a[o+t]=s}return t}function y(a,e,o,i){return _(E(e,a.length-o),a,o,i)}function w(a,e,o,i){return _(function(a){for(var e=[],o=0;o<a.length;++o)e.push(255&a.charCodeAt(o));return e}(e),a,o,i)}function S(a,e,o,i){return w(a,e,o,i)}function z(a,e,o,i){return _(J(e),a,o,i)}function x(a,e,o,i){return _(function(a,e){for(var o,i,n,r=[],t=0;t<a.length&&!((e-=2)<0);++t)o=a.charCodeAt(t),i=o>>8,n=o%256,r.push(n),r.push(i);return r}(e,a.length-o),a,o,i)}function M(a,e,o){return 0===e&&o===a.length?i.fromByteArray(a):i.fromByteArray(a.slice(e,o))}function K(a,e,o){o=Math.min(a.length,o);for(var i=[],n=e;n<o;){var r,t,s,c,l=a[n],u=null,m=l>239?4:l>223?3:l>191?2:1;if(n+m<=o)switch(m){case 1:l<128&&(u=l);break;case 2:128==(192&(r=a[n+1]))&&(c=(31&l)<<6|63&r)>127&&(u=c);break;case 3:r=a[n+1],t=a[n+2],128==(192&r)&&128==(192&t)&&(c=(15&l)<<12|(63&r)<<6|63&t)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:r=a[n+1],t=a[n+2],s=a[n+3],128==(192&r)&&128==(192&t)&&128==(192&s)&&(c=(15&l)<<18|(63&r)<<12|(63&t)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,m=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),n+=m}return function(a){var e=a.length;if(e<=4096)return String.fromCharCode.apply(String,a);var o="",i=0;for(;i<e;)o+=String.fromCharCode.apply(String,a.slice(i,i+=4096));return o}(i)}e.Buffer=c,e.SlowBuffer=function(a){+a!=a&&(a=0);return c.alloc(+a)},e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==a.TYPED_ARRAY_SUPPORT?a.TYPED_ARRAY_SUPPORT:function(){try{var a=new Uint8Array(1);return a.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===a.foo()&&"function"==typeof a.subarray&&0===a.subarray(1,1).byteLength}catch(a){return!1}}(),e.kMaxLength=t(),c.poolSize=8192,c._augment=function(a){return a.__proto__=c.prototype,a},c.from=function(a,e,o){return l(null,a,e,o)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(a,e,o){return function(a,e,o,i){return u(e),e<=0?s(a,e):void 0!==o?"string"==typeof i?s(a,e).fill(o,i):s(a,e).fill(o):s(a,e)}(null,a,e,o)},c.allocUnsafe=function(a){return m(null,a)},c.allocUnsafeSlow=function(a){return m(null,a)},c.isBuffer=function(a){return!(null==a||!a._isBuffer)},c.compare=function(a,e){if(!c.isBuffer(a)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(a===e)return 0;for(var o=a.length,i=e.length,n=0,r=Math.min(o,i);n<r;++n)if(a[n]!==e[n]){o=a[n],i=e[n];break}return o<i?-1:i<o?1:0},c.isEncoding=function(a){switch(String(a).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(a,e){if(!r(a))throw new TypeError('"list" argument must be an Array of Buffers');if(0===a.length)return c.alloc(0);var o;if(void 0===e)for(e=0,o=0;o<a.length;++o)e+=a[o].length;var i=c.allocUnsafe(e),n=0;for(o=0;o<a.length;++o){var t=a[o];if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(i,n),n+=t.length}return i},c.byteLength=v,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var a=this.length;if(a%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<a;e+=2)h(this,e,e+1);return this},c.prototype.swap32=function(){var a=this.length;if(a%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<a;e+=4)h(this,e,e+3),h(this,e+1,e+2);return this},c.prototype.swap64=function(){var a=this.length;if(a%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<a;e+=8)h(this,e,e+7),h(this,e+1,e+6),h(this,e+2,e+5),h(this,e+3,e+4);return this},c.prototype.toString=function(){var a=0|this.length;return 0===a?"":0===arguments.length?K(this,0,a):k.apply(this,arguments)},c.prototype.equals=function(a){if(!c.isBuffer(a))throw new TypeError("Argument must be a Buffer");return this===a||0===c.compare(this,a)},c.prototype.inspect=function(){var a="",o=e.INSPECT_MAX_BYTES;return this.length>0&&(a=this.toString("hex",0,o).match(/.{2}/g).join(" "),this.length>o&&(a+=" ... ")),"<Buffer "+a+">"},c.prototype.compare=function(a,e,o,i,n){if(!c.isBuffer(a))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===o&&(o=a?a.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),e<0||o>a.length||i<0||n>this.length)throw new RangeError("out of range index");if(i>=n&&e>=o)return 0;if(i>=n)return-1;if(e>=o)return 1;if(this===a)return 0;for(var r=(n>>>=0)-(i>>>=0),t=(o>>>=0)-(e>>>=0),s=Math.min(r,t),l=this.slice(i,n),u=a.slice(e,o),m=0;m<s;++m)if(l[m]!==u[m]){r=l[m],t=u[m];break}return r<t?-1:t<r?1:0},c.prototype.includes=function(a,e,o){return-1!==this.indexOf(a,e,o)},c.prototype.indexOf=function(a,e,o){return f(this,a,e,o,!0)},c.prototype.lastIndexOf=function(a,e,o){return f(this,a,e,o,!1)},c.prototype.write=function(a,e,o,i){if(void 0===e)i="utf8",o=this.length,e=0;else if(void 0===o&&"string"==typeof e)i=e,o=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(o)?(o|=0,void 0===i&&(i="utf8")):(i=o,o=void 0)}var n=this.length-e;if((void 0===o||o>n)&&(o=n),a.length>0&&(o<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var r=!1;;)switch(i){case"hex":return b(this,a,e,o);case"utf8":case"utf-8":return y(this,a,e,o);case"ascii":return w(this,a,e,o);case"latin1":case"binary":return S(this,a,e,o);case"base64":return z(this,a,e,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,a,e,o);default:if(r)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),r=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function B(a,e,o){var i="";o=Math.min(a.length,o);for(var n=e;n<o;++n)i+=String.fromCharCode(127&a[n]);return i}function A(a,e,o){var i="";o=Math.min(a.length,o);for(var n=e;n<o;++n)i+=String.fromCharCode(a[n]);return i}function j(a,e,o){var i=a.length;(!e||e<0)&&(e=0),(!o||o<0||o>i)&&(o=i);for(var n="",r=e;r<o;++r)n+=G(a[r]);return n}function P(a,e,o){for(var i=a.slice(e,o),n="",r=0;r<i.length;r+=2)n+=String.fromCharCode(i[r]+256*i[r+1]);return n}function N(a,e,o){if(a%1!=0||a<0)throw new RangeError("offset is not uint");if(a+e>o)throw new RangeError("Trying to access beyond buffer length")}function L(a,e,o,i,n,r){if(!c.isBuffer(a))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<r)throw new RangeError('"value" argument is out of bounds');if(o+i>a.length)throw new RangeError("Index out of range")}function H(a,e,o,i){e<0&&(e=65535+e+1);for(var n=0,r=Math.min(a.length-o,2);n<r;++n)a[o+n]=(e&255<<8*(i?n:1-n))>>>8*(i?n:1-n)}function R(a,e,o,i){e<0&&(e=4294967295+e+1);for(var n=0,r=Math.min(a.length-o,4);n<r;++n)a[o+n]=e>>>8*(i?n:3-n)&255}function D(a,e,o,i,n,r){if(o+i>a.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("Index out of range")}function C(a,e,o,i,r){return r||D(a,0,o,4),n.write(a,e,o,i,23,4),o+4}function V(a,e,o,i,r){return r||D(a,0,o,8),n.write(a,e,o,i,52,8),o+8}c.prototype.slice=function(a,e){var o,i=this.length;if((a=~~a)<0?(a+=i)<0&&(a=0):a>i&&(a=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<a&&(e=a),c.TYPED_ARRAY_SUPPORT)(o=this.subarray(a,e)).__proto__=c.prototype;else{var n=e-a;o=new c(n,void 0);for(var r=0;r<n;++r)o[r]=this[r+a]}return o},c.prototype.readUIntLE=function(a,e,o){a|=0,e|=0,o||N(a,e,this.length);for(var i=this[a],n=1,r=0;++r<e&&(n*=256);)i+=this[a+r]*n;return i},c.prototype.readUIntBE=function(a,e,o){a|=0,e|=0,o||N(a,e,this.length);for(var i=this[a+--e],n=1;e>0&&(n*=256);)i+=this[a+--e]*n;return i},c.prototype.readUInt8=function(a,e){return e||N(a,1,this.length),this[a]},c.prototype.readUInt16LE=function(a,e){return e||N(a,2,this.length),this[a]|this[a+1]<<8},c.prototype.readUInt16BE=function(a,e){return e||N(a,2,this.length),this[a]<<8|this[a+1]},c.prototype.readUInt32LE=function(a,e){return e||N(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]},c.prototype.readUInt32BE=function(a,e){return e||N(a,4,this.length),16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])},c.prototype.readIntLE=function(a,e,o){a|=0,e|=0,o||N(a,e,this.length);for(var i=this[a],n=1,r=0;++r<e&&(n*=256);)i+=this[a+r]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*e)),i},c.prototype.readIntBE=function(a,e,o){a|=0,e|=0,o||N(a,e,this.length);for(var i=e,n=1,r=this[a+--i];i>0&&(n*=256);)r+=this[a+--i]*n;return r>=(n*=128)&&(r-=Math.pow(2,8*e)),r},c.prototype.readInt8=function(a,e){return e||N(a,1,this.length),128&this[a]?-1*(255-this[a]+1):this[a]},c.prototype.readInt16LE=function(a,e){e||N(a,2,this.length);var o=this[a]|this[a+1]<<8;return 32768&o?4294901760|o:o},c.prototype.readInt16BE=function(a,e){e||N(a,2,this.length);var o=this[a+1]|this[a]<<8;return 32768&o?4294901760|o:o},c.prototype.readInt32LE=function(a,e){return e||N(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},c.prototype.readInt32BE=function(a,e){return e||N(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},c.prototype.readFloatLE=function(a,e){return e||N(a,4,this.length),n.read(this,a,!0,23,4)},c.prototype.readFloatBE=function(a,e){return e||N(a,4,this.length),n.read(this,a,!1,23,4)},c.prototype.readDoubleLE=function(a,e){return e||N(a,8,this.length),n.read(this,a,!0,52,8)},c.prototype.readDoubleBE=function(a,e){return e||N(a,8,this.length),n.read(this,a,!1,52,8)},c.prototype.writeUIntLE=function(a,e,o,i){(a=+a,e|=0,o|=0,i)||L(this,a,e,o,Math.pow(2,8*o)-1,0);var n=1,r=0;for(this[e]=255&a;++r<o&&(n*=256);)this[e+r]=a/n&255;return e+o},c.prototype.writeUIntBE=function(a,e,o,i){(a=+a,e|=0,o|=0,i)||L(this,a,e,o,Math.pow(2,8*o)-1,0);var n=o-1,r=1;for(this[e+n]=255&a;--n>=0&&(r*=256);)this[e+n]=a/r&255;return e+o},c.prototype.writeUInt8=function(a,e,o){return a=+a,e|=0,o||L(this,a,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),this[e]=255&a,e+1},c.prototype.writeUInt16LE=function(a,e,o){return a=+a,e|=0,o||L(this,a,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&a,this[e+1]=a>>>8):H(this,a,e,!0),e+2},c.prototype.writeUInt16BE=function(a,e,o){return a=+a,e|=0,o||L(this,a,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=a>>>8,this[e+1]=255&a):H(this,a,e,!1),e+2},c.prototype.writeUInt32LE=function(a,e,o){return a=+a,e|=0,o||L(this,a,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=a>>>24,this[e+2]=a>>>16,this[e+1]=a>>>8,this[e]=255&a):R(this,a,e,!0),e+4},c.prototype.writeUInt32BE=function(a,e,o){return a=+a,e|=0,o||L(this,a,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=a>>>24,this[e+1]=a>>>16,this[e+2]=a>>>8,this[e+3]=255&a):R(this,a,e,!1),e+4},c.prototype.writeIntLE=function(a,e,o,i){if(a=+a,e|=0,!i){var n=Math.pow(2,8*o-1);L(this,a,e,o,n-1,-n)}var r=0,t=1,s=0;for(this[e]=255&a;++r<o&&(t*=256);)a<0&&0===s&&0!==this[e+r-1]&&(s=1),this[e+r]=(a/t>>0)-s&255;return e+o},c.prototype.writeIntBE=function(a,e,o,i){if(a=+a,e|=0,!i){var n=Math.pow(2,8*o-1);L(this,a,e,o,n-1,-n)}var r=o-1,t=1,s=0;for(this[e+r]=255&a;--r>=0&&(t*=256);)a<0&&0===s&&0!==this[e+r+1]&&(s=1),this[e+r]=(a/t>>0)-s&255;return e+o},c.prototype.writeInt8=function(a,e,o){return a=+a,e|=0,o||L(this,a,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),a<0&&(a=255+a+1),this[e]=255&a,e+1},c.prototype.writeInt16LE=function(a,e,o){return a=+a,e|=0,o||L(this,a,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&a,this[e+1]=a>>>8):H(this,a,e,!0),e+2},c.prototype.writeInt16BE=function(a,e,o){return a=+a,e|=0,o||L(this,a,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=a>>>8,this[e+1]=255&a):H(this,a,e,!1),e+2},c.prototype.writeInt32LE=function(a,e,o){return a=+a,e|=0,o||L(this,a,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&a,this[e+1]=a>>>8,this[e+2]=a>>>16,this[e+3]=a>>>24):R(this,a,e,!0),e+4},c.prototype.writeInt32BE=function(a,e,o){return a=+a,e|=0,o||L(this,a,e,4,2147483647,-2147483648),a<0&&(a=4294967295+a+1),c.TYPED_ARRAY_SUPPORT?(this[e]=a>>>24,this[e+1]=a>>>16,this[e+2]=a>>>8,this[e+3]=255&a):R(this,a,e,!1),e+4},c.prototype.writeFloatLE=function(a,e,o){return C(this,a,e,!0,o)},c.prototype.writeFloatBE=function(a,e,o){return C(this,a,e,!1,o)},c.prototype.writeDoubleLE=function(a,e,o){return V(this,a,e,!0,o)},c.prototype.writeDoubleBE=function(a,e,o){return V(this,a,e,!1,o)},c.prototype.copy=function(a,e,o,i){if(o||(o=0),i||0===i||(i=this.length),e>=a.length&&(e=a.length),e||(e=0),i>0&&i<o&&(i=o),i===o)return 0;if(0===a.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),a.length-e<i-o&&(i=a.length-e+o);var n,r=i-o;if(this===a&&o<e&&e<i)for(n=r-1;n>=0;--n)a[n+e]=this[n+o];else if(r<1e3||!c.TYPED_ARRAY_SUPPORT)for(n=0;n<r;++n)a[n+e]=this[n+o];else Uint8Array.prototype.set.call(a,this.subarray(o,o+r),e);return r},c.prototype.fill=function(a,e,o,i){if("string"==typeof a){if("string"==typeof e?(i=e,e=0,o=this.length):"string"==typeof o&&(i=o,o=this.length),1===a.length){var n=a.charCodeAt(0);n<256&&(a=n)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof a&&(a&=255);if(e<0||this.length<e||this.length<o)throw new RangeError("Out of range index");if(o<=e)return this;var r;if(e>>>=0,o=void 0===o?this.length:o>>>0,a||(a=0),"number"==typeof a)for(r=e;r<o;++r)this[r]=a;else{var t=c.isBuffer(a)?a:E(new c(a,i).toString()),s=t.length;for(r=0;r<o-e;++r)this[r+e]=t[r%s]}return this};var T=/[^+\/0-9A-Za-z-_]/g;function G(a){return a<16?"0"+a.toString(16):a.toString(16)}function E(a,e){var o;e=e||1/0;for(var i=a.length,n=null,r=[],t=0;t<i;++t){if((o=a.charCodeAt(t))>55295&&o<57344){if(!n){if(o>56319){(e-=3)>-1&&r.push(239,191,189);continue}if(t+1===i){(e-=3)>-1&&r.push(239,191,189);continue}n=o;continue}if(o<56320){(e-=3)>-1&&r.push(239,191,189),n=o;continue}o=65536+(n-55296<<10|o-56320)}else n&&(e-=3)>-1&&r.push(239,191,189);if(n=null,o<128){if((e-=1)<0)break;r.push(o)}else if(o<2048){if((e-=2)<0)break;r.push(o>>6|192,63&o|128)}else if(o<65536){if((e-=3)<0)break;r.push(o>>12|224,o>>6&63|128,63&o|128)}else{if(!(o<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;r.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}}return r}function J(a){return i.toByteArray(function(a){if((a=function(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}(a).replace(T,"")).length<2)return"";for(;a.length%4!=0;)a+="=";return a}(a))}function _(a,e,o,i){for(var n=0;n<i&&!(n+o>=e.length||n>=a.length);++n)e[n+o]=a[n];return n}}).call(this,o(1050))},function(a,e){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(a){"object"==typeof window&&(o=window)}a.exports=o},function(a,e,o){"use strict";e.byteLength=function(a){var e=l(a),o=e[0],i=e[1];return 3*(o+i)/4-i},e.toByteArray=function(a){var e,o,i=l(a),t=i[0],s=i[1],c=new r(function(a,e,o){return 3*(e+o)/4-o}(0,t,s)),u=0,m=s>0?t-4:t;for(o=0;o<m;o+=4)e=n[a.charCodeAt(o)]<<18|n[a.charCodeAt(o+1)]<<12|n[a.charCodeAt(o+2)]<<6|n[a.charCodeAt(o+3)],c[u++]=e>>16&255,c[u++]=e>>8&255,c[u++]=255&e;2===s&&(e=n[a.charCodeAt(o)]<<2|n[a.charCodeAt(o+1)]>>4,c[u++]=255&e);1===s&&(e=n[a.charCodeAt(o)]<<10|n[a.charCodeAt(o+1)]<<4|n[a.charCodeAt(o+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e);return c},e.fromByteArray=function(a){for(var e,o=a.length,n=o%3,r=[],t=0,s=o-n;t<s;t+=16383)r.push(u(a,t,t+16383>s?s:t+16383));1===n?(e=a[o-1],r.push(i[e>>2]+i[e<<4&63]+"==")):2===n&&(e=(a[o-2]<<8)+a[o-1],r.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"="));return r.join("")};for(var i=[],n=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=t.length;s<c;++s)i[s]=t[s],n[t.charCodeAt(s)]=s;function l(a){var e=a.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var o=a.indexOf("=");return-1===o&&(o=e),[o,o===e?0:4-o%4]}function u(a,e,o){for(var n,r,t=[],s=e;s<o;s+=3)n=(a[s]<<16&16711680)+(a[s+1]<<8&65280)+(255&a[s+2]),t.push(i[(r=n)>>18&63]+i[r>>12&63]+i[r>>6&63]+i[63&r]);return t.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},function(a,e){
|
|
8
|
+
var i=o(1051),n=o(1052),r=o(1053);function t(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(a,e){if(t()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(a=new Uint8Array(e)).__proto__=c.prototype:(null===a&&(a=new c(e)),a.length=e),a}function c(a,e,o){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(a,e,o);if("number"==typeof a){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return m(this,a)}return l(this,a,e,o)}function l(a,e,o,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(a,e,o,i){if(e.byteLength,o<0||e.byteLength<o)throw new RangeError("'offset' is out of bounds");if(e.byteLength<o+(i||0))throw new RangeError("'length' is out of bounds");e=void 0===o&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,o):new Uint8Array(e,o,i);c.TYPED_ARRAY_SUPPORT?(a=e).__proto__=c.prototype:a=d(a,e);return a}(a,e,o,i):"string"==typeof e?function(a,e,o){"string"==typeof o&&""!==o||(o="utf8");if(!c.isEncoding(o))throw new TypeError('"encoding" must be a valid string encoding');var i=0|v(e,o),n=(a=s(a,i)).write(e,o);n!==i&&(a=a.slice(0,n));return a}(a,e,o):function(a,e){if(c.isBuffer(e)){var o=0|p(e.length);return 0===(a=s(a,o)).length||e.copy(a,0,0,o),a}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(i=e.length)!=i?s(a,0):d(a,e);if("Buffer"===e.type&&r(e.data))return d(a,e.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(a,e)}function u(a){if("number"!=typeof a)throw new TypeError('"size" argument must be a number');if(a<0)throw new RangeError('"size" argument must not be negative')}function m(a,e){if(u(e),a=s(a,e<0?0:0|p(e)),!c.TYPED_ARRAY_SUPPORT)for(var o=0;o<e;++o)a[o]=0;return a}function d(a,e){var o=e.length<0?0:0|p(e.length);a=s(a,o);for(var i=0;i<o;i+=1)a[i]=255&e[i];return a}function p(a){if(a>=t())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+t().toString(16)+" bytes");return 0|a}function v(a,e){if(c.isBuffer(a))return a.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(a)||a instanceof ArrayBuffer))return a.byteLength;"string"!=typeof a&&(a=""+a);var o=a.length;if(0===o)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return o;case"utf8":case"utf-8":case void 0:return G(a).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*o;case"hex":return o>>>1;case"base64":return J(a).length;default:if(i)return G(a).length;e=(""+e).toLowerCase(),i=!0}}function k(a,e,o){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===o||o>this.length)&&(o=this.length),o<=0)return"";if((o>>>=0)<=(e>>>=0))return"";for(a||(a="utf8");;)switch(a){case"hex":return j(this,e,o);case"utf8":case"utf-8":return K(this,e,o);case"ascii":return B(this,e,o);case"latin1":case"binary":return A(this,e,o);case"base64":return M(this,e,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,o);default:if(i)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),i=!0}}function h(a,e,o){var i=a[e];a[e]=a[o],a[o]=i}function f(a,e,o,i,n){if(0===a.length)return-1;if("string"==typeof o?(i=o,o=0):o>2147483647?o=2147483647:o<-2147483648&&(o=-2147483648),o=+o,isNaN(o)&&(o=n?0:a.length-1),o<0&&(o=a.length+o),o>=a.length){if(n)return-1;o=a.length-1}else if(o<0){if(!n)return-1;o=0}if("string"==typeof e&&(e=c.from(e,i)),c.isBuffer(e))return 0===e.length?-1:g(a,e,o,i,n);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(a,e,o):Uint8Array.prototype.lastIndexOf.call(a,e,o):g(a,[e],o,i,n);throw new TypeError("val must be string, number or Buffer")}function g(a,e,o,i,n){var r,t=1,s=a.length,c=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(a.length<2||e.length<2)return-1;t=2,s/=2,c/=2,o/=2}function l(a,e){return 1===t?a[e]:a.readUInt16BE(e*t)}if(n){var u=-1;for(r=o;r<s;r++)if(l(a,r)===l(e,-1===u?0:r-u)){if(-1===u&&(u=r),r-u+1===c)return u*t}else-1!==u&&(r-=r-u),u=-1}else for(o+c>s&&(o=s-c),r=o;r>=0;r--){for(var m=!0,d=0;d<c;d++)if(l(a,r+d)!==l(e,d)){m=!1;break}if(m)return r}return-1}function b(a,e,o,i){o=Number(o)||0;var n=a.length-o;i?(i=Number(i))>n&&(i=n):i=n;var r=e.length;if(r%2!=0)throw new TypeError("Invalid hex string");i>r/2&&(i=r/2);for(var t=0;t<i;++t){var s=parseInt(e.substr(2*t,2),16);if(isNaN(s))return t;a[o+t]=s}return t}function y(a,e,o,i){return _(G(e,a.length-o),a,o,i)}function w(a,e,o,i){return _(function(a){for(var e=[],o=0;o<a.length;++o)e.push(255&a.charCodeAt(o));return e}(e),a,o,i)}function S(a,e,o,i){return w(a,e,o,i)}function z(a,e,o,i){return _(J(e),a,o,i)}function x(a,e,o,i){return _(function(a,e){for(var o,i,n,r=[],t=0;t<a.length&&!((e-=2)<0);++t)o=a.charCodeAt(t),i=o>>8,n=o%256,r.push(n),r.push(i);return r}(e,a.length-o),a,o,i)}function M(a,e,o){return 0===e&&o===a.length?i.fromByteArray(a):i.fromByteArray(a.slice(e,o))}function K(a,e,o){o=Math.min(a.length,o);for(var i=[],n=e;n<o;){var r,t,s,c,l=a[n],u=null,m=l>239?4:l>223?3:l>191?2:1;if(n+m<=o)switch(m){case 1:l<128&&(u=l);break;case 2:128==(192&(r=a[n+1]))&&(c=(31&l)<<6|63&r)>127&&(u=c);break;case 3:r=a[n+1],t=a[n+2],128==(192&r)&&128==(192&t)&&(c=(15&l)<<12|(63&r)<<6|63&t)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:r=a[n+1],t=a[n+2],s=a[n+3],128==(192&r)&&128==(192&t)&&128==(192&s)&&(c=(15&l)<<18|(63&r)<<12|(63&t)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,m=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),n+=m}return function(a){var e=a.length;if(e<=4096)return String.fromCharCode.apply(String,a);var o="",i=0;for(;i<e;)o+=String.fromCharCode.apply(String,a.slice(i,i+=4096));return o}(i)}e.Buffer=c,e.SlowBuffer=function(a){+a!=a&&(a=0);return c.alloc(+a)},e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==a.TYPED_ARRAY_SUPPORT?a.TYPED_ARRAY_SUPPORT:function(){try{var a=new Uint8Array(1);return a.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===a.foo()&&"function"==typeof a.subarray&&0===a.subarray(1,1).byteLength}catch(a){return!1}}(),e.kMaxLength=t(),c.poolSize=8192,c._augment=function(a){return a.__proto__=c.prototype,a},c.from=function(a,e,o){return l(null,a,e,o)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(a,e,o){return function(a,e,o,i){return u(e),e<=0?s(a,e):void 0!==o?"string"==typeof i?s(a,e).fill(o,i):s(a,e).fill(o):s(a,e)}(null,a,e,o)},c.allocUnsafe=function(a){return m(null,a)},c.allocUnsafeSlow=function(a){return m(null,a)},c.isBuffer=function(a){return!(null==a||!a._isBuffer)},c.compare=function(a,e){if(!c.isBuffer(a)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(a===e)return 0;for(var o=a.length,i=e.length,n=0,r=Math.min(o,i);n<r;++n)if(a[n]!==e[n]){o=a[n],i=e[n];break}return o<i?-1:i<o?1:0},c.isEncoding=function(a){switch(String(a).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(a,e){if(!r(a))throw new TypeError('"list" argument must be an Array of Buffers');if(0===a.length)return c.alloc(0);var o;if(void 0===e)for(e=0,o=0;o<a.length;++o)e+=a[o].length;var i=c.allocUnsafe(e),n=0;for(o=0;o<a.length;++o){var t=a[o];if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(i,n),n+=t.length}return i},c.byteLength=v,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var a=this.length;if(a%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<a;e+=2)h(this,e,e+1);return this},c.prototype.swap32=function(){var a=this.length;if(a%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<a;e+=4)h(this,e,e+3),h(this,e+1,e+2);return this},c.prototype.swap64=function(){var a=this.length;if(a%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<a;e+=8)h(this,e,e+7),h(this,e+1,e+6),h(this,e+2,e+5),h(this,e+3,e+4);return this},c.prototype.toString=function(){var a=0|this.length;return 0===a?"":0===arguments.length?K(this,0,a):k.apply(this,arguments)},c.prototype.equals=function(a){if(!c.isBuffer(a))throw new TypeError("Argument must be a Buffer");return this===a||0===c.compare(this,a)},c.prototype.inspect=function(){var a="",o=e.INSPECT_MAX_BYTES;return this.length>0&&(a=this.toString("hex",0,o).match(/.{2}/g).join(" "),this.length>o&&(a+=" ... ")),"<Buffer "+a+">"},c.prototype.compare=function(a,e,o,i,n){if(!c.isBuffer(a))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===o&&(o=a?a.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),e<0||o>a.length||i<0||n>this.length)throw new RangeError("out of range index");if(i>=n&&e>=o)return 0;if(i>=n)return-1;if(e>=o)return 1;if(this===a)return 0;for(var r=(n>>>=0)-(i>>>=0),t=(o>>>=0)-(e>>>=0),s=Math.min(r,t),l=this.slice(i,n),u=a.slice(e,o),m=0;m<s;++m)if(l[m]!==u[m]){r=l[m],t=u[m];break}return r<t?-1:t<r?1:0},c.prototype.includes=function(a,e,o){return-1!==this.indexOf(a,e,o)},c.prototype.indexOf=function(a,e,o){return f(this,a,e,o,!0)},c.prototype.lastIndexOf=function(a,e,o){return f(this,a,e,o,!1)},c.prototype.write=function(a,e,o,i){if(void 0===e)i="utf8",o=this.length,e=0;else if(void 0===o&&"string"==typeof e)i=e,o=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(o)?(o|=0,void 0===i&&(i="utf8")):(i=o,o=void 0)}var n=this.length-e;if((void 0===o||o>n)&&(o=n),a.length>0&&(o<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var r=!1;;)switch(i){case"hex":return b(this,a,e,o);case"utf8":case"utf-8":return y(this,a,e,o);case"ascii":return w(this,a,e,o);case"latin1":case"binary":return S(this,a,e,o);case"base64":return z(this,a,e,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,a,e,o);default:if(r)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),r=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function B(a,e,o){var i="";o=Math.min(a.length,o);for(var n=e;n<o;++n)i+=String.fromCharCode(127&a[n]);return i}function A(a,e,o){var i="";o=Math.min(a.length,o);for(var n=e;n<o;++n)i+=String.fromCharCode(a[n]);return i}function j(a,e,o){var i=a.length;(!e||e<0)&&(e=0),(!o||o<0||o>i)&&(o=i);for(var n="",r=e;r<o;++r)n+=E(a[r]);return n}function P(a,e,o){for(var i=a.slice(e,o),n="",r=0;r<i.length;r+=2)n+=String.fromCharCode(i[r]+256*i[r+1]);return n}function N(a,e,o){if(a%1!=0||a<0)throw new RangeError("offset is not uint");if(a+e>o)throw new RangeError("Trying to access beyond buffer length")}function L(a,e,o,i,n,r){if(!c.isBuffer(a))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<r)throw new RangeError('"value" argument is out of bounds');if(o+i>a.length)throw new RangeError("Index out of range")}function H(a,e,o,i){e<0&&(e=65535+e+1);for(var n=0,r=Math.min(a.length-o,2);n<r;++n)a[o+n]=(e&255<<8*(i?n:1-n))>>>8*(i?n:1-n)}function R(a,e,o,i){e<0&&(e=4294967295+e+1);for(var n=0,r=Math.min(a.length-o,4);n<r;++n)a[o+n]=e>>>8*(i?n:3-n)&255}function D(a,e,o,i,n,r){if(o+i>a.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("Index out of range")}function C(a,e,o,i,r){return r||D(a,0,o,4),n.write(a,e,o,i,23,4),o+4}function V(a,e,o,i,r){return r||D(a,0,o,8),n.write(a,e,o,i,52,8),o+8}c.prototype.slice=function(a,e){var o,i=this.length;if((a=~~a)<0?(a+=i)<0&&(a=0):a>i&&(a=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<a&&(e=a),c.TYPED_ARRAY_SUPPORT)(o=this.subarray(a,e)).__proto__=c.prototype;else{var n=e-a;o=new c(n,void 0);for(var r=0;r<n;++r)o[r]=this[r+a]}return o},c.prototype.readUIntLE=function(a,e,o){a|=0,e|=0,o||N(a,e,this.length);for(var i=this[a],n=1,r=0;++r<e&&(n*=256);)i+=this[a+r]*n;return i},c.prototype.readUIntBE=function(a,e,o){a|=0,e|=0,o||N(a,e,this.length);for(var i=this[a+--e],n=1;e>0&&(n*=256);)i+=this[a+--e]*n;return i},c.prototype.readUInt8=function(a,e){return e||N(a,1,this.length),this[a]},c.prototype.readUInt16LE=function(a,e){return e||N(a,2,this.length),this[a]|this[a+1]<<8},c.prototype.readUInt16BE=function(a,e){return e||N(a,2,this.length),this[a]<<8|this[a+1]},c.prototype.readUInt32LE=function(a,e){return e||N(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]},c.prototype.readUInt32BE=function(a,e){return e||N(a,4,this.length),16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])},c.prototype.readIntLE=function(a,e,o){a|=0,e|=0,o||N(a,e,this.length);for(var i=this[a],n=1,r=0;++r<e&&(n*=256);)i+=this[a+r]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*e)),i},c.prototype.readIntBE=function(a,e,o){a|=0,e|=0,o||N(a,e,this.length);for(var i=e,n=1,r=this[a+--i];i>0&&(n*=256);)r+=this[a+--i]*n;return r>=(n*=128)&&(r-=Math.pow(2,8*e)),r},c.prototype.readInt8=function(a,e){return e||N(a,1,this.length),128&this[a]?-1*(255-this[a]+1):this[a]},c.prototype.readInt16LE=function(a,e){e||N(a,2,this.length);var o=this[a]|this[a+1]<<8;return 32768&o?4294901760|o:o},c.prototype.readInt16BE=function(a,e){e||N(a,2,this.length);var o=this[a+1]|this[a]<<8;return 32768&o?4294901760|o:o},c.prototype.readInt32LE=function(a,e){return e||N(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},c.prototype.readInt32BE=function(a,e){return e||N(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},c.prototype.readFloatLE=function(a,e){return e||N(a,4,this.length),n.read(this,a,!0,23,4)},c.prototype.readFloatBE=function(a,e){return e||N(a,4,this.length),n.read(this,a,!1,23,4)},c.prototype.readDoubleLE=function(a,e){return e||N(a,8,this.length),n.read(this,a,!0,52,8)},c.prototype.readDoubleBE=function(a,e){return e||N(a,8,this.length),n.read(this,a,!1,52,8)},c.prototype.writeUIntLE=function(a,e,o,i){(a=+a,e|=0,o|=0,i)||L(this,a,e,o,Math.pow(2,8*o)-1,0);var n=1,r=0;for(this[e]=255&a;++r<o&&(n*=256);)this[e+r]=a/n&255;return e+o},c.prototype.writeUIntBE=function(a,e,o,i){(a=+a,e|=0,o|=0,i)||L(this,a,e,o,Math.pow(2,8*o)-1,0);var n=o-1,r=1;for(this[e+n]=255&a;--n>=0&&(r*=256);)this[e+n]=a/r&255;return e+o},c.prototype.writeUInt8=function(a,e,o){return a=+a,e|=0,o||L(this,a,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),this[e]=255&a,e+1},c.prototype.writeUInt16LE=function(a,e,o){return a=+a,e|=0,o||L(this,a,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&a,this[e+1]=a>>>8):H(this,a,e,!0),e+2},c.prototype.writeUInt16BE=function(a,e,o){return a=+a,e|=0,o||L(this,a,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=a>>>8,this[e+1]=255&a):H(this,a,e,!1),e+2},c.prototype.writeUInt32LE=function(a,e,o){return a=+a,e|=0,o||L(this,a,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=a>>>24,this[e+2]=a>>>16,this[e+1]=a>>>8,this[e]=255&a):R(this,a,e,!0),e+4},c.prototype.writeUInt32BE=function(a,e,o){return a=+a,e|=0,o||L(this,a,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=a>>>24,this[e+1]=a>>>16,this[e+2]=a>>>8,this[e+3]=255&a):R(this,a,e,!1),e+4},c.prototype.writeIntLE=function(a,e,o,i){if(a=+a,e|=0,!i){var n=Math.pow(2,8*o-1);L(this,a,e,o,n-1,-n)}var r=0,t=1,s=0;for(this[e]=255&a;++r<o&&(t*=256);)a<0&&0===s&&0!==this[e+r-1]&&(s=1),this[e+r]=(a/t>>0)-s&255;return e+o},c.prototype.writeIntBE=function(a,e,o,i){if(a=+a,e|=0,!i){var n=Math.pow(2,8*o-1);L(this,a,e,o,n-1,-n)}var r=o-1,t=1,s=0;for(this[e+r]=255&a;--r>=0&&(t*=256);)a<0&&0===s&&0!==this[e+r+1]&&(s=1),this[e+r]=(a/t>>0)-s&255;return e+o},c.prototype.writeInt8=function(a,e,o){return a=+a,e|=0,o||L(this,a,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),a<0&&(a=255+a+1),this[e]=255&a,e+1},c.prototype.writeInt16LE=function(a,e,o){return a=+a,e|=0,o||L(this,a,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&a,this[e+1]=a>>>8):H(this,a,e,!0),e+2},c.prototype.writeInt16BE=function(a,e,o){return a=+a,e|=0,o||L(this,a,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=a>>>8,this[e+1]=255&a):H(this,a,e,!1),e+2},c.prototype.writeInt32LE=function(a,e,o){return a=+a,e|=0,o||L(this,a,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&a,this[e+1]=a>>>8,this[e+2]=a>>>16,this[e+3]=a>>>24):R(this,a,e,!0),e+4},c.prototype.writeInt32BE=function(a,e,o){return a=+a,e|=0,o||L(this,a,e,4,2147483647,-2147483648),a<0&&(a=4294967295+a+1),c.TYPED_ARRAY_SUPPORT?(this[e]=a>>>24,this[e+1]=a>>>16,this[e+2]=a>>>8,this[e+3]=255&a):R(this,a,e,!1),e+4},c.prototype.writeFloatLE=function(a,e,o){return C(this,a,e,!0,o)},c.prototype.writeFloatBE=function(a,e,o){return C(this,a,e,!1,o)},c.prototype.writeDoubleLE=function(a,e,o){return V(this,a,e,!0,o)},c.prototype.writeDoubleBE=function(a,e,o){return V(this,a,e,!1,o)},c.prototype.copy=function(a,e,o,i){if(o||(o=0),i||0===i||(i=this.length),e>=a.length&&(e=a.length),e||(e=0),i>0&&i<o&&(i=o),i===o)return 0;if(0===a.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),a.length-e<i-o&&(i=a.length-e+o);var n,r=i-o;if(this===a&&o<e&&e<i)for(n=r-1;n>=0;--n)a[n+e]=this[n+o];else if(r<1e3||!c.TYPED_ARRAY_SUPPORT)for(n=0;n<r;++n)a[n+e]=this[n+o];else Uint8Array.prototype.set.call(a,this.subarray(o,o+r),e);return r},c.prototype.fill=function(a,e,o,i){if("string"==typeof a){if("string"==typeof e?(i=e,e=0,o=this.length):"string"==typeof o&&(i=o,o=this.length),1===a.length){var n=a.charCodeAt(0);n<256&&(a=n)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof a&&(a&=255);if(e<0||this.length<e||this.length<o)throw new RangeError("Out of range index");if(o<=e)return this;var r;if(e>>>=0,o=void 0===o?this.length:o>>>0,a||(a=0),"number"==typeof a)for(r=e;r<o;++r)this[r]=a;else{var t=c.isBuffer(a)?a:G(new c(a,i).toString()),s=t.length;for(r=0;r<o-e;++r)this[r+e]=t[r%s]}return this};var T=/[^+\/0-9A-Za-z-_]/g;function E(a){return a<16?"0"+a.toString(16):a.toString(16)}function G(a,e){var o;e=e||1/0;for(var i=a.length,n=null,r=[],t=0;t<i;++t){if((o=a.charCodeAt(t))>55295&&o<57344){if(!n){if(o>56319){(e-=3)>-1&&r.push(239,191,189);continue}if(t+1===i){(e-=3)>-1&&r.push(239,191,189);continue}n=o;continue}if(o<56320){(e-=3)>-1&&r.push(239,191,189),n=o;continue}o=65536+(n-55296<<10|o-56320)}else n&&(e-=3)>-1&&r.push(239,191,189);if(n=null,o<128){if((e-=1)<0)break;r.push(o)}else if(o<2048){if((e-=2)<0)break;r.push(o>>6|192,63&o|128)}else if(o<65536){if((e-=3)<0)break;r.push(o>>12|224,o>>6&63|128,63&o|128)}else{if(!(o<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;r.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}}return r}function J(a){return i.toByteArray(function(a){if((a=function(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}(a).replace(T,"")).length<2)return"";for(;a.length%4!=0;)a+="=";return a}(a))}function _(a,e,o,i){for(var n=0;n<i&&!(n+o>=e.length||n>=a.length);++n)e[n+o]=a[n];return n}}).call(this,o(1050))},function(a,e){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(a){"object"==typeof window&&(o=window)}a.exports=o},function(a,e,o){"use strict";e.byteLength=function(a){var e=l(a),o=e[0],i=e[1];return 3*(o+i)/4-i},e.toByteArray=function(a){var e,o,i=l(a),t=i[0],s=i[1],c=new r(function(a,e,o){return 3*(e+o)/4-o}(0,t,s)),u=0,m=s>0?t-4:t;for(o=0;o<m;o+=4)e=n[a.charCodeAt(o)]<<18|n[a.charCodeAt(o+1)]<<12|n[a.charCodeAt(o+2)]<<6|n[a.charCodeAt(o+3)],c[u++]=e>>16&255,c[u++]=e>>8&255,c[u++]=255&e;2===s&&(e=n[a.charCodeAt(o)]<<2|n[a.charCodeAt(o+1)]>>4,c[u++]=255&e);1===s&&(e=n[a.charCodeAt(o)]<<10|n[a.charCodeAt(o+1)]<<4|n[a.charCodeAt(o+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e);return c},e.fromByteArray=function(a){for(var e,o=a.length,n=o%3,r=[],t=0,s=o-n;t<s;t+=16383)r.push(u(a,t,t+16383>s?s:t+16383));1===n?(e=a[o-1],r.push(i[e>>2]+i[e<<4&63]+"==")):2===n&&(e=(a[o-2]<<8)+a[o-1],r.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"="));return r.join("")};for(var i=[],n=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=t.length;s<c;++s)i[s]=t[s],n[t.charCodeAt(s)]=s;function l(a){var e=a.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var o=a.indexOf("=");return-1===o&&(o=e),[o,o===e?0:4-o%4]}function u(a,e,o){for(var n,r,t=[],s=e;s<o;s+=3)n=(a[s]<<16&16711680)+(a[s+1]<<8&65280)+(255&a[s+2]),t.push(i[(r=n)>>18&63]+i[r>>12&63]+i[r>>6&63]+i[63&r]);return t.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},function(a,e){
|
|
9
9
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
10
|
-
e.read=function(a,e,o,i,n){var r,t,s=8*n-i-1,c=(1<<s)-1,l=c>>1,u=-7,m=o?n-1:0,d=o?-1:1,p=a[e+m];for(m+=d,r=p&(1<<-u)-1,p>>=-u,u+=s;u>0;r=256*r+a[e+m],m+=d,u-=8);for(t=r&(1<<-u)-1,r>>=-u,u+=i;u>0;t=256*t+a[e+m],m+=d,u-=8);if(0===r)r=1-l;else{if(r===c)return t?NaN:1/0*(p?-1:1);t+=Math.pow(2,i),r-=l}return(p?-1:1)*t*Math.pow(2,r-i)},e.write=function(a,e,o,i,n,r){var t,s,c,l=8*r-n-1,u=(1<<l)-1,m=u>>1,d=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:r-1,v=i?1:-1,k=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,t=u):(t=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-t))<1&&(t--,c*=2),(e+=t+m>=1?d/c:d*Math.pow(2,1-m))*c>=2&&(t++,c/=2),t+m>=u?(s=0,t=u):t+m>=1?(s=(e*c-1)*Math.pow(2,n),t+=m):(s=e*Math.pow(2,m-1)*Math.pow(2,n),t=0));n>=8;a[o+p]=255&s,p+=v,s/=256,n-=8);for(t=t<<n|s,l+=n;l>0;a[o+p]=255&t,p+=v,t/=256,l-=8);a[o+p-v]|=128*k}},function(a,e){var o={}.toString;a.exports=Array.isArray||function(a){return"[object Array]"==o.call(a)}},,function(a,e,o){"use strict";o.r(e),o.d(e,"common",(function(){return i})),o.d(e,"accountBuilders",(function(){return n})),o.d(e,"productBuilders",(function(){return s})),o.d(e,"categoryBuilders",(function(){return c})),o.d(e,"countryBuilders",(function(){return l})),o.d(e,"vendorBuilders",(function(){return d})),o.d(e,"shoppingCartBuilders",(function(){return v})),o.d(e,"storeBuilders",(function(){return p})),o.d(e,"catalogueBuilders",(function(){return t})),o.d(e,"couponBuilders",(function(){return u})),o.d(e,"userBuilders",(function(){return k})),o.d(e,"billingDataBuilders",(function(){return r})),o.d(e,"shippingAddressBuilders",(function(){return m}));var i={};o.r(i),o.d(i,"getPassword",(function(){return z})),o.d(i,"getUsername",(function(){return x})),o.d(i,"genId",(function(){return M})),o.d(i,"genNumericId",(function(){return K})),o.d(i,"genWord",(function(){return B})),o.d(i,"genAddress",(function(){return A})),o.d(i,"genName",(function(){return j})),o.d(i,"genEmail",(function(){return P})),o.d(i,"genCompanyName",(function(){return N})),o.d(i,"genParagraph",(function(){return L})),o.d(i,"genTitle",(function(){return H})),o.d(i,"genNumber",(function(){return R})),o.d(i,"getBoolean",(function(){return D})),o.d(i,"genCountryName",(function(){return C})),o.d(i,"genRandomImage",(function(){return V})),o.d(i,"genWords",(function(){return T})),o.d(i,"genURL",(function(){return G})),o.d(i,"genDate",(function(){return E})),o.d(i,"genBase64",(function(){return J})),o.d(i,"genBiasBoolean",(function(){return _})),o.d(i,"genDocument",(function(){return F})),o.d(i,"genDocumentType",(function(){return I})),o.d(i,"genMobilPhone",(function(){return O})),o.d(i,"genCountry",(function(){return U})),o.d(i,"fillNumber",(function(){return Z})),o.d(i,"chooseRandom",(function(){return W})),o.d(i,"chooseRandomEnum",(function(){return q})),o.d(i,"genSymbol",(function(){return Y})),o.d(i,"buildURLImage",(function(){return Q})),o.d(i,"genURLImages",(function(){return X})),o.d(i,"buildCDNImage",(function(){return $})),o.d(i,"genCDNImages",(function(){return aa}));var n={};o.r(n),o.d(n,"buildAccount",(function(){return oa})),o.d(n,"genAccounts",(function(){return ia}));var r={};o.r(r),o.d(r,"buildBillingData",(function(){return ra})),o.d(r,"genBillingData",(function(){return ta}));var t={};o.r(t),o.d(t,"buildCatalogue",(function(){return ua})),o.d(t,"genCatalogues",(function(){return ma}));var s={};o.r(s),o.d(s,"buildPriceCategoryTax",(function(){return pa})),o.d(s,"genPriceCategoryTaxes",(function(){return va})),o.d(s,"buildPriceCategory",(function(){return ka})),o.d(s,"buildBaseProduct",(function(){return ha})),o.d(s,"genBaseProducts",(function(){return fa})),o.d(s,"MODIFIER_TYPES",(function(){return ga})),o.d(s,"buildProductAnswer",(function(){return ba})),o.d(s,"genProductAnswers",(function(){return ya})),o.d(s,"buildProductQuestion",(function(){return wa})),o.d(s,"genProductQuestions",(function(){return Sa})),o.d(s,"buildProductDetails",(function(){return za})),o.d(s,"genProductDetails",(function(){return xa})),o.d(s,"buildCartProductAnswer",(function(){return Ma})),o.d(s,"genCartProductAnswers",(function(){return Ka})),o.d(s,"buildCartProductQuestion",(function(){return Ba})),o.d(s,"genCartProductQuestions",(function(){return Aa})),o.d(s,"buildCartProduct",(function(){return ja}));var c={};o.r(c),o.d(c,"buildCategory",(function(){return Na})),o.d(c,"genCategories",(function(){return La})),o.d(c,"buildCategoryWithProducts",(function(){return Ha})),o.d(c,"genCategoryWithProducts",(function(){return Ra}));var l={};o.r(l),o.d(l,"buildCountryCurrency",(function(){return Ca})),o.d(l,"buildCountryTax",(function(){return Va})),o.d(l,"genCountryTax",(function(){return Ta})),o.d(l,"buildCountry",(function(){return Ga})),o.d(l,"genCountries",(function(){return Ea}));var u={};o.r(u),o.d(u,"buildBenefit",(function(){return _a})),o.d(u,"genBenefits",(function(){return Fa})),o.d(u,"buildAward",(function(){return Ia})),o.d(u,"genAwards",(function(){return Oa})),o.d(u,"buildWallet",(function(){return Ua})),o.d(u,"genWallets",(function(){return Za}));var m={};o.r(m),o.d(m,"genStreetName",(function(){return qa})),o.d(m,"genStreetNumber",(function(){return Ya})),o.d(m,"genLatitude",(function(){return Qa})),o.d(m,"genLongitude",(function(){return Xa})),o.d(m,"buildField",(function(){return $a})),o.d(m,"genFields",(function(){return ae})),o.d(m,"buildRule",(function(){return ee})),o.d(m,"buildMessage",(function(){return oe})),o.d(m,"genRules",(function(){return ie})),o.d(m,"genMessages",(function(){return ne})),o.d(m,"buildLivingPlace",(function(){return re})),o.d(m,"genLivingPlaces",(function(){return te})),o.d(m,"buildShippingAddress",(function(){return se})),o.d(m,"genShippingAddress",(function(){return ce}));var d={};o.r(d),o.d(d,"buildVendor",(function(){return ue})),o.d(d,"genVendors",(function(){return me}));var p={};o.r(p),o.d(p,"buildStore",(function(){return pe})),o.d(p,"buildAdditionalStoreInformation",(function(){return ve})),o.d(p,"buildDelivery",(function(){return ke})),o.d(p,"buildSchedule",(function(){return he})),o.d(p,"buildService",(function(){return fe})),o.d(p,"genServices",(function(){return ge})),o.d(p,"genSchedules",(function(){return be})),o.d(p,"genStores",(function(){return ye})),o.d(p,"buildGenericStoreLocation",(function(){return we})),o.d(p,"genGenericStoreLocation",(function(){return Se})),o.d(p,"buildStoreLocation",(function(){return ze})),o.d(p,"genStoreLocation",(function(){return xe}));var v={};o.r(v),o.d(v,"buildBillTotalNormalCategory",(function(){return Ke})),o.d(v,"buildBillTotal",(function(){return Be})),o.d(v,"buildCartStore",(function(){return Ae})),o.d(v,"genCartStores",(function(){return je})),o.d(v,"buildShoppingCart",(function(){return Pe})),o.d(v,"buildShippingCost",(function(){return Ne})),o.d(v,"buildShippingCostTax",(function(){return Le})),o.d(v,"genShippingCostTaxes",(function(){return He}));var k={};o.r(k),o.d(k,"buildUser",(function(){return De})),o.d(k,"genUsers",(function(){return Ce}));var h=function(a,e){for(var o=null!=e?e:Math.floor(9*Math.random())+1,i=[],n=0;n<o;n++)i.push(a());return i},f=o(0),g=o.n(f),b=o(2),y=o.n(b),w=function(){return(w=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},S=["RUC","CI","PASSPORT"],z=function(){for(var a,e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return"!0_Oo"+(a=g.a.internet).password.apply(a,e)},x=g.a.internet.userName,M=g.a.random.uuid,K=function(){return(new Date).valueOf()+Math.random()},B=g.a.lorem.word,A=g.a.address.streetAddress,j=g.a.name.findName,P=g.a.internet.email,N=g.a.company.companyName,L=g.a.lorem.paragraph,H=function(){return g.a.lorem.slug(3)},R=g.a.random.number,D=g.a.random.boolean,C=g.a.address.country,V=g.a.image.business(),T=function(a){return g.a.random.words(a)},G=g.a.internet.url(),E=g.a.date.recent(7).toISOString(),J=y()(B()),_=function(a){if(a>1||a<0)throw new Error("Bias must be a number between 0 and 1. Value "+a+" is not valid");return Math.random()<=a},F=function(a){for(var e="",o=0;o<a;o++)e+=R(9);return e},I=function(){return W(S)},O=function(a){return"+"+a+" "+F(3)+" "+F(3)+" "+F(4)},U=function(a,e){return{id:null!=a?a:K(),name:null!=e?e:C()}},Z=function(a,e){for(var o=e?String(e).length:a.length,i=a,n=0;n<o-a.length;n++)i="0"+i;return i},W=function(a){return a[Math.floor(Math.random()*a.length)]},q=function(a){var e=Object.keys(a);return a[e[Math.floor(Math.random()*e.length)]]},Y=W(["$","S/","$b","Bs"]),Q=V,X=function(a){return h((function(){return Q}),a)},$=function(a){return void 0===a&&(a={}),w({bucket:B(),cloudFrontUrl:B(),key:B(),name:B(),url:B(),base64:J},a)},aa=function(a){return h($,a)},ea=function(){return(ea=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},oa=function(a){return void 0===a&&(a={}),ea({accountId:R(),name:j(),description:_(.5)?L():void 0,images:[]},a)},ia=function(a){return h(oa,a)},na=function(){return(na=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},ra=function(a){return void 0===a&&(a={}),na({id:K(),name:j(),nickname:j(),documentType:I(),document:F(10),address:A(),phone:O("593"),email:P(),default:D(),country:U()},a)},ta=function(a){return h(ra,a)},sa=function(){return(sa=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},ca=function(a,e){for(var o=0,i=e.length,n=a.length;o<i;o++,n++)a[n]=e[o];return a},la=["A domicilio","Pick-up"],ua=function(a){return void 0===a&&(a={}),sa({catalogueId:M(),name:g.a.company.bsAdjective(),active:_(.5),friendlyName:g.a.company.companyName()},a)},ma=function(a){for(var e=null!=a?a:Math.floor(9*Math.random())+1,o=ca([],la),i=[],n=function(a){var e={},n=W(o);n&&(e.name=n);var r=ua(e);i.push(r),o=o.filter((function(a){return a!==n}))},r=0;r<e;r++)n();return i},da=function(){return(da=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},pa=function(a){return void 0===a&&(a={}),da({code:0,name:W(["IVA"]),percentage:10,vatRate:"",vatRateCode:0},a)},va=function(a){return h(pa,a)},ka=function(a){var e;void 0===a&&(a={});var o=null!==(e=a.category)&&void 0!==e?e:"NORMAL",i="NORMAL"===o?2:void 0,n=R({min:2,max:20,precision:i}),r=_(.9),t=va(r&&i?1:0),s=function(a,e){return a.reduce((function(a,o){return a+o.percentage/100*e}),0)}(t,n);return da({category:o,discount:0,discountGrossPrice:0,discountNetPrice:0,discounts:[],grossPrice:n,netPrice:n+s,symbol:"$",taxes:t},a)},ha=function(a){return void 0===a&&(a={}),da({attributes:{Cantidad:"1",externalId:"001",showInMenu:!0},available:!0,addDirectlyToCart:_(.5),coverUrl:"",description:g.a.lorem.lines(2),images:[],measure:"unit",name:g.a.commerce.productName(),outOfService:!1,outOfStock:!1,prices:{NORMAL:ka({category:"NORMAL"}),POINTS:ka({category:"POINTS"})},productId:R(999).toString(),sponsored:!1,standardTime:"",status:"ACTIVE",stock:1e3,suggestedPrice:"",type:"PRODUCT"},a)},fa=function(a){return h(ha,a)},ga=["RADIO","CHECKBOX","QUANTITY","CUSTOMIZED"],ba=function(a,e){void 0===a&&(a={}),void 0===e&&(e=1);var o=_(.1)&&e<=3,i=W(ga),n=_(.9)?null:i;return da({attributes:{Cantidad:"1",externalId:"001",showInMenu:!0},images:[],name:g.a.name.jobDescriptor(),prices:{NORMAL:ka({category:"NORMAL"}),POINTS:ka({category:"POINTS"})},productId:R(999).toString(),type:W(["PRODUCT","MODIFIER"]),renderType:n,questions:o?Sa(void 0,e+1):[]},a)},ya=function(a,e){void 0===e&&(e=1);for(var o=null!=a?a:Math.floor(6*Math.random())+1,i=[],n=0;n<o;n++){var r=ba({},e);i.push(r)}return i},wa=function(a,e){void 0===a&&(a={}),void 0===e&&(e=1);var o=R({min:0,max:5}),i=R({min:0,max:1}),n=_(.8)?i:o,r=R({min:n,max:5}),t=R({min:n,max:n>1?n:1}),s=_(.8)?t:r,c=W(ga),l=_(.9)?null:c;return da({answers:ya(void 0,e),description:g.a.finance.transactionType(),max:s,min:n,name:g.a.finance.accountName(),questionId:R(999).toString(),type:l,images:X()},a)},Sa=function(a,e){void 0===e&&(e=1);for(var o=null!=a?a:Math.floor(4*Math.random())+1,i=[],n=0;n<o;n++){var r=wa({},e);i.push(r)}return i},za=function(a){void 0===a&&(a={});var e=Sa(void 0,1);return da(da(da({},ha()),{addDirectlyToCart:!e.length,isPriceVip:!1,manufacturer:[],maxAmountForSale:0,schedule:[],questions:e}),a)},xa=function(a){return h(za,a)},Ma=function(a,e){return void 0===e&&(e={}),da(da(da({},ba()),{amount:1,questionId:a,priceCategory:"NORMAL",comment:_(.2)?g.a.commerce.productMaterial():"",questionsAndAnswers:[]}),e)},Ka=function(a){for(var e=null!=a?a:Math.floor(5*Math.random())+1,o=[],i=0;i<e;i++){var n=Ma(i.toString());o.push(n)}return o},Ba=function(a){return void 0===a&&(a={}),da(da(da({},wa()),{answers:Ka()}),a)},Aa=function(a){return h(Ba,a)},ja=function(a){void 0===a&&(a={});var e=_(.2)?g.a.commerce.productMaterial():"",o=Sa(void 0,1);return da(da(da({},za()),{questions:o,addDirectlyToCart:!o.length,amount:1,priceCategory:"NORMAL",alerts:[],comment:e,questionsAndAnswers:Aa(),hash:"",createdAt:"",updatedAt:""}),a)},Pa=function(){return(Pa=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},Na=function(a){return void 0===a&&(a={}),Pa({categoryId:K(),displayInMenu:_(.9),images:[],name:j(),reload:!0,subcategories:_(.5)},a)},La=function(a){return h(Na,a)},Ha=function(a){void 0===a&&(a={});var e=Na();return Pa(Pa(Pa({},e),{products:fa()}),a)},Ra=function(a){return h(Ha,a)},Da=function(){return(Da=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},Ca=function(a){return void 0===a&&(a={}),Da({currencyId:M(),name:W(["USD","EUR","CHL"]),sign:Y},a)},Va=function(a){return void 0===a&&(a={}),Da({tax:"IVA",vatRate:"12%",percentage:12},a)},Ta=function(a){return h(Va,a)},Ga=function(a){return void 0===a&&(a={}),Da({countryId:M(),active:_(.8),code:B(),currency:Ca(),name:j(),taxes:[]},a)},Ea=function(a){return h(Ga,a)},Ja=function(){return(Ja=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},_a=function(a){void 0===a&&(a={});return Ja({accountId:R(20),hash:M(),award:Ia(),benefitId:R(100),benefitWalletId:R(100),code:null,combined:B(),createdAt:E,description:T(6),discountPercentage:R(5),expirationDate:E,externalId:null,image:X(),limitAward:null,limitBenefit:R(4),logicOperator:W(["OR","AND"]),quantity:R(7),rules:[],title:T(3),type:W(["ALTER_DELIVERY","DISCOUNT","PRODUCT"]),updatedAt:E,channelId:R(50),vendorId:R(30)},a)},Fa=function(a){return h(_a,a)},Ia=function(a){return void 0===a&&(a={}),Ja({benefitId:R(100),discountPercentage:R(5),discountValue:null,id:K()},a)},Oa=function(a){return h(Ia,a)},Ua=function(a){return void 0===a&&(a={}),Ja({benefits:Fa()},a)},Za=function(a){return h(Ua,a)},Wa=function(){return(Wa=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},qa=g.a.address.streetName,Ya=g.a.address.zipCode,Qa=g.a.address.latitude,Xa=g.a.address.longitude,$a=function(a){return void 0===a&&(a={}),Wa({id:B(),value:B(),label:B(),rules:ee(),messages:oe()},a)},ae=function(a){return h($a,a)},ee=function(a){return Wa({max:R(),min:R()},a)},oe=function(a){return Wa({max:B(),min:B()},a)},ie=function(a){return h(ee,a)},ne=function(a){return h(oe,a)},re=function(a){return void 0===a&&(a={}),Wa({id:K(),fields:ae(2),name:B(),active:1,countryId:1},a)},te=function(a){return h(re,a)},se=function(a){return void 0===a&&(a={}),Wa({id:K(),default:D(),mainStreet:qa(),number:Ya(),secondaryStreet:qa(),reference:A(),addressReference:A(),lat:+Qa(),lng:+Xa(),country:U(),livingPlace:re()},a)},ce=function(a){return h(se,a)},le=function(){return(le=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},ue=function(a){return void 0===a&&(a={}),le({id:R(999),images:aa(),maxPurchaseValue:0,name:g.a.company.companyName(),description:T(10),sponsored:_(.5),active:_(.5)},a)},me=function(a){return h(ue,a)},de=function(){return(de=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},pe=function(a){return void 0===a&&(a={}),de({storeId:K(),storeName:g.a.name.jobTitle(),address:g.a.address.streetName(),vendor:ue(),additionalInfo:ve(),coverage:_(.99),coverUrl:G,delivery:ke(),description:null,isOpen:_(.99),maxOrderAmount:R(50),minOrderAmount:R(10),orderSymbol:Y,phone:O("593"),sponsored:_(.1),latitude:R({min:0,max:80,precision:6}),longitude:R({min:0,max:80,precision:6}),schedules:be(8),timezone:"",services:ge(10),cookTime:R(60).toString(),city:we(),outOfService:_(.1),isDefault:_(.1),active:_(.9),minOrder:R(15),minOrderSymbol:Y,country:we(),location:ze(),catalogues:ma(),images:X(),distance:R(20)},a)},ve=function(a){return void 0===a&&(a={}),de({externalId:K().toString(),externalCode:K().toString(),idDeliveryKfc:R(100).toString(),isDrinksStore:_(.1),showDrinksStore:_(.1)},a)},ke=function(a){return void 0===a&&(a={}),de({deliveryTimeUnit:W(["min"]),deliveryTimeValue:R(60).toString(),express:_(.1),freeDelivery:_(.1)},a)},he=function(a){void 0===a&&(a={});return de({day:W(["FRIDAY","MONDAY","SATURDAY","SPECIAL","SUNDAY","THURSDAY","WEDNESDAY","TUESDAY"]),from:R(36e3),to:R(77400),catalogueId:M()},a)},fe=function(a){return void 0===a&&(a={}),de({name:B(),active:_(.5),url:G},a)},ge=function(a){return h(fe,a)},be=function(a){return h(he,a)},ye=function(a){return h(pe,a)},we=function(a){return void 0===a&&(a={}),de({id:M(),name:N(),active:_(.5)},a)},Se=function(a){return h(we,a)},ze=function(a){return void 0===a&&(a={}),de({lat:R(),lon:R(),geohash:"6rbpjdx8km6m",fragment:_(.8)},a)},xe=function(a){return h(ze,a)},Me=function(){return(Me=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},Ke=function(a){void 0===a&&(a={});var e=R({min:1,max:10,precision:2}),o=.12*e;return Me({subtotalBeforeTaxes:e,taxTotal:o,total:e+o},a)},Be=function(a){return void 0===a&&(a={}),Me({NORMAL:Ke(),POINTS:Ke()},a)},Ae=function(a){return void 0===a&&(a={}),Me(Me(Me({},pe()),{alerts:[],products:{}}),a)},je=function(a){for(var e=null!=a?a:Math.floor(1*Math.random())+1,o={},i=0;i<e;i++){var n=Ae();o[n.storeId]=n}return o},Pe=function(a){return void 0===a&&(a={}),Me({name:"default",billTotal:Be(),channelId:R(99),createdAt:(new Date).toISOString(),latitude:R({min:-20,max:20,precision:8}),longitude:R({min:-20,max:20,precision:8}),id:R(999).toString(),updatedAt:(new Date).toISOString(),stores:je(),shippingCost:Ne()},a)},Ne=function(a){return void 0===a&&(a={}),Me({amount:R(3),discountTotal:R(100),discounts:[],grossPrice:R(100),name:B(),netPrice:R(100),productId:R(100),subtotalBeforeTaxes:R(100),symbol:Y,taxTotal:R(100),taxes:He(),total:R(100)},a)},Le=function(a){return void 0===a&&(a={}),Me({percentage:R(100),name:B(),vatRateCode:R(100),code:R(100),vatRate:B(),taxBase:R(100),value:B()},a)},He=function(a){return h(Le,a)},Re=function(){return(Re=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},De=function(a){return void 0===a&&(a={}),Re({idInt:K(),uid:M(),name:j(),lastname:j(),email:P(),birthdate:g.a.date.past().toISOString().split("T")[0],country:U()},a)},Ce=function(a){return h(De,a)},Ve=["FOOD_SHOP"],Te=function(a){!function(a){if(!Ve.includes(a))throw new Error("Sorry, e-commerce type "+a+" is not yet supported.")}(a)};e.default=Te}])}));
|
|
10
|
+
e.read=function(a,e,o,i,n){var r,t,s=8*n-i-1,c=(1<<s)-1,l=c>>1,u=-7,m=o?n-1:0,d=o?-1:1,p=a[e+m];for(m+=d,r=p&(1<<-u)-1,p>>=-u,u+=s;u>0;r=256*r+a[e+m],m+=d,u-=8);for(t=r&(1<<-u)-1,r>>=-u,u+=i;u>0;t=256*t+a[e+m],m+=d,u-=8);if(0===r)r=1-l;else{if(r===c)return t?NaN:1/0*(p?-1:1);t+=Math.pow(2,i),r-=l}return(p?-1:1)*t*Math.pow(2,r-i)},e.write=function(a,e,o,i,n,r){var t,s,c,l=8*r-n-1,u=(1<<l)-1,m=u>>1,d=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:r-1,v=i?1:-1,k=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,t=u):(t=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-t))<1&&(t--,c*=2),(e+=t+m>=1?d/c:d*Math.pow(2,1-m))*c>=2&&(t++,c/=2),t+m>=u?(s=0,t=u):t+m>=1?(s=(e*c-1)*Math.pow(2,n),t+=m):(s=e*Math.pow(2,m-1)*Math.pow(2,n),t=0));n>=8;a[o+p]=255&s,p+=v,s/=256,n-=8);for(t=t<<n|s,l+=n;l>0;a[o+p]=255&t,p+=v,t/=256,l-=8);a[o+p-v]|=128*k}},function(a,e){var o={}.toString;a.exports=Array.isArray||function(a){return"[object Array]"==o.call(a)}},,function(a,e,o){"use strict";o.r(e),o.d(e,"common",(function(){return i})),o.d(e,"accountBuilders",(function(){return n})),o.d(e,"bannerBuilders",(function(){return t})),o.d(e,"billingDataBuilders",(function(){return s})),o.d(e,"categoryBuilders",(function(){return u})),o.d(e,"catalogueBuilders",(function(){return c})),o.d(e,"countryBuilders",(function(){return m})),o.d(e,"couponBuilders",(function(){return d})),o.d(e,"fulfillmentBuilders",(function(){return p})),o.d(e,"imageBuilders",(function(){return r})),o.d(e,"notificationBuilders",(function(){return v})),o.d(e,"orderBuilders",(function(){return b})),o.d(e,"productBuilders",(function(){return l})),o.d(e,"paymentBuilders",(function(){return y})),o.d(e,"settingsBuilders",(function(){return w})),o.d(e,"shippingAddressBuilders",(function(){return k})),o.d(e,"shoppingCartBuilders",(function(){return g})),o.d(e,"vendorBuilders",(function(){return h})),o.d(e,"storeBuilders",(function(){return f})),o.d(e,"userBuilders",(function(){return S}));var i={};o.r(i),o.d(i,"getPassword",(function(){return j})),o.d(i,"getUsername",(function(){return P})),o.d(i,"genId",(function(){return N})),o.d(i,"genNumericId",(function(){return L})),o.d(i,"genWord",(function(){return H})),o.d(i,"genAddress",(function(){return R})),o.d(i,"genName",(function(){return D})),o.d(i,"genEmail",(function(){return C})),o.d(i,"genCompanyName",(function(){return V})),o.d(i,"genParagraph",(function(){return T})),o.d(i,"genTitle",(function(){return E})),o.d(i,"genNumber",(function(){return G})),o.d(i,"getBoolean",(function(){return J})),o.d(i,"genCountryName",(function(){return _})),o.d(i,"genRandomImage",(function(){return F})),o.d(i,"genWords",(function(){return O})),o.d(i,"genURL",(function(){return I})),o.d(i,"genDate",(function(){return U})),o.d(i,"genBase64",(function(){return Z})),o.d(i,"genBiasBoolean",(function(){return W})),o.d(i,"genDocument",(function(){return q})),o.d(i,"genDocumentType",(function(){return Y})),o.d(i,"genMobilPhone",(function(){return Q})),o.d(i,"genCountry",(function(){return X})),o.d(i,"fillNumber",(function(){return $})),o.d(i,"chooseRandom",(function(){return aa})),o.d(i,"chooseRandomEnum",(function(){return ea})),o.d(i,"genSymbol",(function(){return oa}));var n={};o.r(n),o.d(n,"buildAccount",(function(){return na})),o.d(n,"genAccounts",(function(){return ra}));var r={};o.r(r),o.d(r,"buildURLImage",(function(){return sa})),o.d(r,"genURLImages",(function(){return ca})),o.d(r,"buildCDNImage",(function(){return la})),o.d(r,"genCDNImages",(function(){return ua}));var t={};o.r(t),o.d(t,"buildBanner",(function(){return da})),o.d(t,"genBanners",(function(){return pa})),o.d(t,"buildBannerImage",(function(){return va})),o.d(t,"genBannerImages",(function(){return ka}));var s={};o.r(s),o.d(s,"buildBillingData",(function(){return fa})),o.d(s,"genBillingData",(function(){return ga}));var c={};o.r(c),o.d(c,"buildCatalogue",(function(){return Sa})),o.d(c,"genCatalogues",(function(){return za}));var l={};o.r(l),o.d(l,"buildPriceCategoryTax",(function(){return Ma})),o.d(l,"genPriceCategoryTaxes",(function(){return Ka})),o.d(l,"buildPriceCategory",(function(){return Ba})),o.d(l,"buildBaseProduct",(function(){return Aa})),o.d(l,"genBaseProducts",(function(){return ja})),o.d(l,"MODIFIER_TYPES",(function(){return Pa})),o.d(l,"buildProductAnswer",(function(){return Na})),o.d(l,"genProductAnswers",(function(){return La})),o.d(l,"buildProductQuestion",(function(){return Ha})),o.d(l,"genProductQuestions",(function(){return Ra})),o.d(l,"buildProductDetails",(function(){return Da})),o.d(l,"genProductDetails",(function(){return Ca})),o.d(l,"buildCartProductAnswer",(function(){return Va})),o.d(l,"genCartProductAnswers",(function(){return Ta})),o.d(l,"buildCartProductQuestion",(function(){return Ea})),o.d(l,"genCartProductQuestions",(function(){return Ga})),o.d(l,"buildCartProduct",(function(){return Ja}));var u={};o.r(u),o.d(u,"buildCategory",(function(){return Fa})),o.d(u,"genCategories",(function(){return Oa})),o.d(u,"buildCategoryWithProducts",(function(){return Ia})),o.d(u,"genCategoryWithProducts",(function(){return Ua}));var m={};o.r(m),o.d(m,"buildCountryCurrency",(function(){return Wa})),o.d(m,"buildCountryTax",(function(){return qa})),o.d(m,"genCountryTax",(function(){return Ya})),o.d(m,"buildCountry",(function(){return Qa})),o.d(m,"genCountries",(function(){return Xa}));var d={};o.r(d),o.d(d,"buildBenefit",(function(){return ae})),o.d(d,"genBenefits",(function(){return ee})),o.d(d,"buildAward",(function(){return oe})),o.d(d,"genAwards",(function(){return ie})),o.d(d,"buildWallet",(function(){return ne})),o.d(d,"genWallets",(function(){return re}));var p={};o.r(p),o.d(p,"buildIssue",(function(){return se})),o.d(p,"buildIssueAdditionalInfo",(function(){return ce})),o.d(p,"genIssueAdditionalInfo",(function(){return le})),o.d(p,"buildIssueHistory",(function(){return ue})),o.d(p,"genIssueHistory",(function(){return me})),o.d(p,"buildWorkflow",(function(){return de})),o.d(p,"genWorkflows",(function(){return pe})),o.d(p,"buildStepNotification",(function(){return ve})),o.d(p,"genStepNotifications",(function(){return ke})),o.d(p,"buildStepWorkflow",(function(){return he})),o.d(p,"genStepWorkflows",(function(){return fe})),o.d(p,"buildWebhookWorkflow",(function(){return ge})),o.d(p,"genWebhookWorkflows",(function(){return be})),o.d(p,"buildStepWorkflowAdditionalInfo",(function(){return ye})),o.d(p,"genStepWorkflowAdditionalInfos",(function(){return we})),o.d(p,"buildStepWorkflowGroup",(function(){return Se})),o.d(p,"genStepWorkflowGroups",(function(){return ze})),o.d(p,"buildTransitionWorkflow",(function(){return xe})),o.d(p,"genTransitionWorkflows",(function(){return Me}));var v={};o.r(v),o.d(v,"buildNotification",(function(){return Be})),o.d(v,"genNotifications",(function(){return Ae}));var k={};o.r(k),o.d(k,"genStreetName",(function(){return Pe})),o.d(k,"genStreetNumber",(function(){return Ne})),o.d(k,"genLatitude",(function(){return Le})),o.d(k,"genLongitude",(function(){return He})),o.d(k,"buildField",(function(){return Re})),o.d(k,"genFields",(function(){return De})),o.d(k,"buildRule",(function(){return Ce})),o.d(k,"buildMessage",(function(){return Ve})),o.d(k,"genRules",(function(){return Te})),o.d(k,"genMessages",(function(){return Ee})),o.d(k,"buildLivingPlace",(function(){return Ge})),o.d(k,"genLivingPlaces",(function(){return Je})),o.d(k,"buildShippingAddress",(function(){return _e})),o.d(k,"genShippingAddress",(function(){return Fe}));var h={};o.r(h),o.d(h,"buildVendor",(function(){return Ie})),o.d(h,"genVendors",(function(){return Ue}));var f={};o.r(f),o.d(f,"buildStore",(function(){return We})),o.d(f,"buildAdditionalStoreInformation",(function(){return qe})),o.d(f,"buildDelivery",(function(){return Ye})),o.d(f,"buildSchedule",(function(){return Qe})),o.d(f,"buildService",(function(){return Xe})),o.d(f,"genServices",(function(){return $e})),o.d(f,"genSchedules",(function(){return ao})),o.d(f,"genStores",(function(){return eo})),o.d(f,"buildGenericStoreLocation",(function(){return oo})),o.d(f,"genGenericStoreLocation",(function(){return io})),o.d(f,"buildStoreLocation",(function(){return no})),o.d(f,"genStoreLocation",(function(){return ro}));var g={};o.r(g),o.d(g,"buildBillTotalNormalCategory",(function(){return so})),o.d(g,"buildBillTotal",(function(){return co})),o.d(g,"buildCartStore",(function(){return lo})),o.d(g,"genCartStores",(function(){return uo})),o.d(g,"buildShoppingCart",(function(){return mo})),o.d(g,"buildShippingCost",(function(){return po})),o.d(g,"buildShippingCostTax",(function(){return vo})),o.d(g,"genShippingCostTaxes",(function(){return ko}));var b={};o.r(b),o.d(b,"buildBaseOrder",(function(){return fo})),o.d(b,"genBaseOrders",(function(){return go})),o.d(b,"buildOrderDetails",(function(){return bo})),o.d(b,"genOrderDetails",(function(){return yo})),o.d(b,"buildOrderStep",(function(){return wo})),o.d(b,"genOrderSteps",(function(){return So})),o.d(b,"buildOrderDetailShippingCost",(function(){return zo})),o.d(b,"genOrderDetailShippingCosts",(function(){return xo})),o.d(b,"buildOrderLastRetry",(function(){return Mo})),o.d(b,"genOrderLastRetries",(function(){return Ko})),o.d(b,"buildOrderPaidPaymentMethod",(function(){return Bo})),o.d(b,"genOrderPaidPaymentMethods",(function(){return Ao})),o.d(b,"buildOrderProduct",(function(){return jo})),o.d(b,"genOrderProducts",(function(){return Po})),o.d(b,"buildOrderStore",(function(){return No})),o.d(b,"genOrderStores",(function(){return Lo})),o.d(b,"buildOrderShoppingCart",(function(){return Ho})),o.d(b,"genOrderShoppingCarts",(function(){return Ro}));var y={};o.r(y),o.d(y,"buildBasePaymentMethod",(function(){return Co})),o.d(y,"buildPaymentMethod",(function(){return Vo})),o.d(y,"buildCreditCardBrand",(function(){return To})),o.d(y,"genCreditCardBrands",(function(){return Eo})),o.d(y,"buildCreditCardMapping",(function(){return Go})),o.d(y,"genCreditCardMappings",(function(){return Jo}));var w={};o.r(w),o.d(w,"buildSettings",(function(){return Fo})),o.d(w,"genSettings",(function(){return Oo}));var S={};o.r(S),o.d(S,"buildUser",(function(){return Uo})),o.d(S,"genUsers",(function(){return Zo}));var z=function(a,e){for(var o=null!=e?e:Math.floor(9*Math.random())+1,i=[],n=0;n<o;n++)i.push(a());return i},x=o(0),M=o.n(x),K=o(2),B=o.n(K),A=["RUC","CI","PASSPORT"],j=function(){for(var a,e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return"!0_Oo"+(a=M.a.internet).password.apply(a,e)},P=M.a.internet.userName,N=M.a.random.uuid,L=function(){return(new Date).valueOf()+Math.random()},H=M.a.lorem.word,R=M.a.address.streetAddress,D=M.a.name.findName,C=M.a.internet.email,V=M.a.company.companyName,T=M.a.lorem.paragraph,E=function(){return M.a.lorem.slug(3)},G=M.a.random.number,J=M.a.random.boolean,_=M.a.address.country,F=function(a){var e=(null!=a?a:{}).query,o=void 0===e?"product":e,i=null!=a?a:{},n=i.width,r=void 0===n?300:n,t=i.height,s="https://source.unsplash.com/"+r+"x"+(void 0===t?300:t);return o&&(s+="/?"+o),s},O=function(a){return M.a.random.words(a)},I=M.a.internet.url,U=function(){return M.a.date.recent(7).toISOString()},Z=function(){return B()(H())},W=function(a){if(a>1||a<0)throw new Error("Bias must be a number between 0 and 1. Value "+a+" is not valid");return Math.random()<=a},q=function(a){for(var e="",o=0;o<a;o++)e+=G(9);return e},Y=function(){return aa(A)},Q=function(a){return"+"+a+" "+q(3)+" "+q(3)+" "+q(4)},X=function(a,e){return{id:null!=a?a:L(),name:null!=e?e:_()}},$=function(a,e){for(var o=e?String(e).length:a.length,i=a,n=0;n<o-a.length;n++)i="0"+i;return i},aa=function(a){return a[Math.floor(Math.random()*a.length)]},ea=function(a){var e=Object.keys(a);return a[e[Math.floor(Math.random()*e.length)]]},oa=aa(["$","S/","$b","Bs"]),ia=function(){return(ia=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},na=function(a){return void 0===a&&(a={}),ia({accountId:G(),name:D(),description:W(.5)?T():void 0,images:[]},a)},ra=function(a){return z(na,a)},ta=function(){return(ta=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},sa=F,ca=function(a,e){return z((function(){return sa(e)}),a)},la=function(a){void 0===a&&(a={});var e=H();return ta({bucket:void 0,cloudFrontUrl:I(),key:"images/"+e+".jpg",name:e+".jpg",url:sa(),base64:Z()},a)},ua=function(a){return z(la,a)},ma=function(){return(ma=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},da=function(a){void 0===a&&(a={});return ma({banner_title:O(2),banner_description:O(8),image_url:sa(),banner_qr_code:"",coupon:null,coupon_id:null,banner_type:aa(["COUPON","INFO","PRODUCT","URL"]),image_file_name:H+".jpg",image_base64:Z(),benefits:null,vendor_id:G(20),vendor_name:M.a.company.companyName(),scope:aa(["APP","GLOBAL","WEB"]),banner_category_id:G(10),product_id:null,product_name:null,stores:[],banner_url:sa(),image_bucket:null,image_cloud_front_url:I(),image_key:"banners/"+H+".jpg",category_id:G(20),category_name:M.a.company.companyName(),channel_id:G(10),images:ka(),section:null},a)},pa=function(a){return z(da,a)},va=function(a){return void 0===a&&(a={}),ma({file_name:H+".jpg",id:G(500),image_file_name:H+".jpg",image_key:"banners/"+H+".jpg",image_url:sa(),position:G(100),url:F()},a)},ka=function(a){return z(va,a)},ha=function(){return(ha=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},fa=function(a){return void 0===a&&(a={}),ha({id:L(),name:D(),nickname:D(),documentType:Y(),document:q(10),address:R(),phone:Q("593"),email:C(),default:J(),country:X()},a)},ga=function(a){return z(fa,a)},ba=function(){return(ba=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},ya=function(a,e){for(var o=0,i=e.length,n=a.length;o<i;o++,n++)a[n]=e[o];return a},wa=["A domicilio","Pick-up"],Sa=function(a){return void 0===a&&(a={}),ba({catalogueId:G(200).toString(),name:M.a.company.bsAdjective(),active:W(.5),friendlyName:M.a.company.companyName()},a)},za=function(a){for(var e=null!=a?a:Math.floor(9*Math.random())+1,o=ya([],wa),i=[],n=function(a){var e={},n=aa(o);n&&(e.name=n);var r=Sa(e);i.push(r),o=o.filter((function(a){return a!==n}))},r=0;r<e;r++)n();return i},xa=function(){return(xa=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},Ma=function(a){return void 0===a&&(a={}),xa({code:0,name:aa(["IVA"]),percentage:10,vatRate:"",vatRateCode:0},a)},Ka=function(a){return z(Ma,a)},Ba=function(a){var e;void 0===a&&(a={});var o=null!==(e=a.category)&&void 0!==e?e:"NORMAL",i="NORMAL"===o?2:void 0,n=G({min:2,max:20,precision:i}),r=W(.9),t=Ka(r&&i?1:0),s=function(a,e){return a.reduce((function(a,o){return a+o.percentage/100*e}),0)}(t,n);return xa({category:o,discount:0,discountGrossPrice:0,discountNetPrice:0,discounts:[],grossPrice:n,netPrice:n+s,symbol:"$",taxes:t},a)},Aa=function(a){return void 0===a&&(a={}),xa({attributes:{Cantidad:"1",externalId:"001",showInMenu:!0},available:!0,addDirectlyToCart:W(.5),coverUrl:"",description:M.a.lorem.lines(2),images:[],measure:"unit",name:M.a.commerce.productName(),outOfService:!1,outOfStock:!1,prices:{NORMAL:Ba({category:"NORMAL"}),POINTS:Ba({category:"POINTS"})},productId:G(999).toString(),sponsored:!1,standardTime:"",status:"ACTIVE",stock:1e3,suggestedPrice:"",type:"PRODUCT"},a)},ja=function(a){return z(Aa,a)},Pa=["RADIO","CHECKBOX","QUANTITY","CUSTOMIZED"],Na=function(a,e){void 0===a&&(a={}),void 0===e&&(e=1);var o=W(.1)&&e<=3,i=aa(Pa),n=W(.9)?null:i;return xa({attributes:{Cantidad:"1",externalId:"001",showInMenu:!0},images:[],name:M.a.name.jobDescriptor(),prices:{NORMAL:Ba({category:"NORMAL"}),POINTS:Ba({category:"POINTS"})},productId:G(999).toString(),type:aa(["PRODUCT","MODIFIER"]),renderType:n,questions:o?Ra(void 0,e+1):[]},a)},La=function(a,e){void 0===e&&(e=1);for(var o=null!=a?a:Math.floor(6*Math.random())+1,i=[],n=0;n<o;n++){var r=Na({},e);i.push(r)}return i},Ha=function(a,e){void 0===a&&(a={}),void 0===e&&(e=1);var o=G({min:0,max:5}),i=G({min:0,max:1}),n=W(.8)?i:o,r=G({min:n,max:5}),t=G({min:n,max:n>1?n:1}),s=W(.8)?t:r,c=aa(Pa),l=W(.9)?null:c;return xa({answers:La(void 0,e),description:M.a.finance.transactionType(),max:s,min:n,name:M.a.finance.accountName(),questionId:G(999).toString(),type:l,images:ca()},a)},Ra=function(a,e){void 0===e&&(e=1);for(var o=null!=a?a:Math.floor(4*Math.random())+1,i=[],n=0;n<o;n++){var r=Ha({},e);i.push(r)}return i},Da=function(a){void 0===a&&(a={});var e=Ra(void 0,1);return xa(xa(xa({},Aa()),{addDirectlyToCart:!e.length,isPriceVip:!1,manufacturer:[],maxAmountForSale:0,schedule:[],questions:e}),a)},Ca=function(a){return z(Da,a)},Va=function(a,e){return void 0===e&&(e={}),xa(xa(xa({},Na()),{amount:1,questionId:a,priceCategory:"NORMAL",comment:W(.2)?M.a.commerce.productMaterial():"",questionsAndAnswers:[]}),e)},Ta=function(a){for(var e=null!=a?a:Math.floor(5*Math.random())+1,o=[],i=0;i<e;i++){var n=Va(i.toString());o.push(n)}return o},Ea=function(a){return void 0===a&&(a={}),xa(xa(xa({},Ha()),{answers:Ta()}),a)},Ga=function(a){return z(Ea,a)},Ja=function(a){void 0===a&&(a={});var e=W(.2)?M.a.commerce.productMaterial():"",o=Ra(void 0,1);return xa(xa(xa({},Da()),{questions:o,addDirectlyToCart:!o.length,amount:1,priceCategory:"NORMAL",alerts:[],comment:e,questionsAndAnswers:Ga(),hash:"",createdAt:"",updatedAt:""}),a)},_a=function(){return(_a=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},Fa=function(a){return void 0===a&&(a={}),_a({categoryId:L(),displayInMenu:W(.9),images:ca(),name:D(),reload:!0,subcategories:W(.5)},a)},Oa=function(a){return z(Fa,a)},Ia=function(a){void 0===a&&(a={});var e=Fa();return _a(_a(_a({},e),{products:ja()}),a)},Ua=function(a){return z(Ia,a)},Za=function(){return(Za=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},Wa=function(a){return void 0===a&&(a={}),Za({currencyId:N(),name:aa(["USD","EUR","CHL"]),sign:oa},a)},qa=function(a){return void 0===a&&(a={}),Za({tax:"IVA",vatRate:"12%",percentage:12},a)},Ya=function(a){return z(qa,a)},Qa=function(a){return void 0===a&&(a={}),Za({countryId:N(),active:W(.8),code:H(),currency:Wa(),name:D(),taxes:[]},a)},Xa=function(a){return z(Qa,a)},$a=function(){return($a=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},ae=function(a){void 0===a&&(a={});return $a({accountId:G(20),hash:N(),award:oe(),benefitId:G(100),benefitWalletId:G(100),code:null,combined:H(),createdAt:U(),description:O(6),discountPercentage:G(5),expirationDate:U(),externalId:null,image:ca(),limitAward:null,limitBenefit:G(4),logicOperator:aa(["OR","AND"]),quantity:G(7),rules:[],title:O(3),type:aa(["ALTER_DELIVERY","DISCOUNT","PRODUCT"]),updatedAt:U(),channelId:G(50),vendorId:G(30)},a)},ee=function(a){return z(ae,a)},oe=function(a){return void 0===a&&(a={}),$a({benefitId:G(100),discountPercentage:G(5),discountValue:null,id:L()},a)},ie=function(a){return z(oe,a)},ne=function(a){return void 0===a&&(a={}),$a({benefits:ee()},a)},re=function(a){return z(ne,a)},te=function(){return(te=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},se=function(a){return void 0===a&&(a={}),te({conditions:[],children:[],related:[],step:he(),account_id:G(20),additional_info:ce(),client_issue_id:G(200).toString(),transaction_id:G(9999),history:me(),id:G(9999),parent_issue_id:null,related_issue_id:null,step_id:G(30),vendor_id:G(30),workflow_id:G(10)},a)},ce=function(a){return void 0===a&&(a={}),te({stores:[G(200),G(200),G(200),G(200),G(200)],uid:N()},a)},le=function(a){return z(ce,a)},ue=function(a){return void 0===a&&(a={}),te({conditions:[],created_at:U(),finished_at:U(),additional_info:ce(),id:G(1e4),step_id:G(15),step_name:O(2),transition_id:G(15)},a)},me=function(a){return z(ue,a)},de=function(a){return void 0===a&&(a={}),te({description:O(7),id:L(),name:V(),steps:fe(),webhooks:be()},a)},pe=function(a){return z(de,a)},ve=function(a){return void 0===a&&(a={}),te({send_mail:W(.6),send_push:W(.4)},a)},ke=function(a){return z(ve,a)},he=function(a){void 0===a&&(a={});return te({additional_info:ye(),category:aa(["DONE","IN_PROGRESS","PAYMENT_IN_PROGRESS","TO_DO"]),code:aa(["START","IN_PROGRESS","ORDERED","RECEIVED","TO_ASSIGN","ASSIGNED","ON_ROUTE","DISPATCHED","CANCELED","ERROR"]),color:aa(["#FFFFFF","#000000"]),id:L(),description:O(10),description_frontend:O(5),name:V(),subtitle_frontend:O(5),title_frontend:O(3),transitions:Me(),notification:ve()},a)},fe=function(a){return z(he,a)},ge=function(a){void 0===a&&(a={});return te({id:G(999),method:aa(["DELETE","GET","POST","PATCH","PUT"]),url:I()},a)},be=function(a){return z(ge,a)},ye=function(a){return void 0===a&&(a={}),te({client_frontend:W(.6),operators_frontend:W(.4),group:Se()},a)},we=function(a){return z(ye,a)},Se=function(a){void 0===a&&(a={});return te({code:aa(["START","IN_PROGRESS","ORDERED","RECEIVED","TO_ASSIGN","ASSIGNED","ON_ROUTE","DISPATCHED","CANCELED","ERROR"]),description:O(6),type:"default",weight:G(1e4).toString()},a)},ze=function(a){return z(Se,a)},xe=function(a){return void 0===a&&(a={}),te({channel_id:G(20),conditions:[],description:O(10),from_step_id:G(7),to_step_id:G(7),id:L(),name:D(),vendor_id:G(30)},a)},Me=function(a){return z(xe,a)},Ke=function(){return(Ke=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},Be=function(a){return void 0===a&&(a={}),Ke({creationDate:"08:00",description:O(6),id:G(2),read:W(.5).toString(),title:O(2)},a)},Ae=function(a){return z(Be,a)},je=function(){return(je=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},Pe=M.a.address.streetName,Ne=M.a.address.zipCode,Le=M.a.address.latitude,He=M.a.address.longitude,Re=function(a){return void 0===a&&(a={}),je({id:H(),value:H(),label:H(),rules:Ce(),messages:Ve()},a)},De=function(a){return z(Re,a)},Ce=function(a){return je({max:G(),min:G()},a)},Ve=function(a){return je({max:H(),min:H()},a)},Te=function(a){return z(Ce,a)},Ee=function(a){return z(Ve,a)},Ge=function(a){return void 0===a&&(a={}),je({id:L(),fields:De(2),name:H(),active:1,countryId:1},a)},Je=function(a){return z(Ge,a)},_e=function(a){return void 0===a&&(a={}),je({id:L(),default:J(),mainStreet:Pe(),number:Ne(),secondaryStreet:Pe(),reference:R(),addressReference:R(),lat:+Le(),lng:+He(),country:X(),livingPlace:Ge()},a)},Fe=function(a){return z(_e,a)},Oe=function(){return(Oe=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},Ie=function(a){return void 0===a&&(a={}),Oe({id:G(999),images:ua(),maxPurchaseValue:0,name:M.a.company.companyName(),description:O(10),sponsored:W(.5),active:W(.5)},a)},Ue=function(a){return z(Ie,a)},Ze=function(){return(Ze=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},We=function(a){return void 0===a&&(a={}),Ze({storeId:L(),storeName:M.a.name.jobTitle(),address:M.a.address.streetName(),vendor:Ie(),additionalInfo:qe(),coverage:W(.99),coverUrl:I(),delivery:Ye(),description:null,isOpen:W(.99),maxOrderAmount:G(50),minOrderAmount:G(10),orderSymbol:oa,phone:Q("593"),sponsored:W(.1),latitude:G({min:0,max:80,precision:6}),longitude:G({min:0,max:80,precision:6}),schedules:ao(8),timezone:"",services:$e(10),cookTime:G(60).toString(),city:oo(),outOfService:W(.1),isDefault:W(.1),active:W(.9),minOrder:G(15),minOrderSymbol:oa,country:oo(),location:no(),catalogues:za(),images:ca(),distance:G(20)},a)},qe=function(a){return void 0===a&&(a={}),Ze({externalId:L().toString(),externalCode:L().toString(),idDeliveryKfc:G(100).toString(),isDrinksStore:W(.1),showDrinksStore:W(.1)},a)},Ye=function(a){return void 0===a&&(a={}),Ze({deliveryTimeUnit:aa(["min"]),deliveryTimeValue:G(60).toString(),express:W(.1),freeDelivery:W(.1)},a)},Qe=function(a){void 0===a&&(a={});return Ze({day:aa(["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY","SUNDAY","SPECIAL"]),from:G(36e3),to:G(77400),catalogueId:G(100).toString()},a)},Xe=function(a){return void 0===a&&(a={}),Ze({name:H(),active:W(.5),url:I()},a)},$e=function(a){return z(Xe,a)},ao=function(a){return z(Qe,a)},eo=function(a){return z(We,a)},oo=function(a){return void 0===a&&(a={}),Ze({id:N(),name:V(),active:W(.5)},a)},io=function(a){return z(oo,a)},no=function(a){return void 0===a&&(a={}),Ze({lat:G(),lon:G(),geohash:"6rbpjdx8km6m",fragment:W(.8)},a)},ro=function(a){return z(no,a)},to=function(){return(to=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},so=function(a){void 0===a&&(a={});var e=G({min:1,max:10,precision:2}),o=.12*e;return to({subtotalBeforeTaxes:e,taxTotal:o,total:e+o},a)},co=function(a){return void 0===a&&(a={}),to({NORMAL:so(),POINTS:so()},a)},lo=function(a){return void 0===a&&(a={}),to(to(to({},We()),{alerts:[],products:{}}),a)},uo=function(a){for(var e=null!=a?a:Math.floor(1*Math.random())+1,o={},i=0;i<e;i++){var n=lo();o[n.storeId]=n}return o},mo=function(a){return void 0===a&&(a={}),to({name:"default",billTotal:co(),channelId:G(99),createdAt:(new Date).toISOString(),latitude:G({min:-20,max:20,precision:8}),longitude:G({min:-20,max:20,precision:8}),id:G(999).toString(),updatedAt:(new Date).toISOString(),stores:uo(),shippingCost:po()},a)},po=function(a){return void 0===a&&(a={}),to({amount:G(3),discountTotal:G(100),discounts:[],grossPrice:G(100),name:H(),netPrice:G(100),productId:G(100),subtotalBeforeTaxes:G(100),symbol:oa,taxTotal:G(100),taxes:ko(),total:G(100)},a)},vo=function(a){return void 0===a&&(a={}),to({percentage:G(100),name:H(),vatRateCode:G(100),code:G(100),vatRate:H(),taxBase:G(100),value:H()},a)},ko=function(a){return z(vo,a)},ho=function(){return(ho=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},fo=function(a){return void 0===a&&(a={}),ho({additionalInfo:[],additionalMessage:O(3),allocation:H(),channelId:G(200),id:L(),orderDate:U(),orderTime:U(),pickupDate:U(),pickupTime:U(),seq_id:N(),shoppingCart:Ho(),step:wo(),stepCategory:V(),stepCode:N().substring(0,3),stepId:L(),stepName:H(),transactionId:L(),vendorId:G(200)},a)},go=function(a){return z(fo,a)},bo=function(a){return void 0===a&&(a={}),ho(ho(ho({},fo()),{billingData:fa(),shippingAddress:_e(),shippingCost:zo()}),a)},yo=function(a){return z(bo,a)},wo=function(a){return void 0===a&&(a={}),ho({description_frontend:O(6),title_frontend:O(3)},a)},So=function(a){return z(wo,a)},zo=function(a){return void 0===a&&(a={}),ho({net_price:G(200)},a)},xo=function(a){return z(zo,a)},Mo=function(a){return void 0===a&&(a={}),ho({step:wo()},a)},Ko=function(a){return z(Mo,a)},Bo=function(a){return void 0===a&&(a={}),ho({lastRetry:Mo(),payment_method_name:aa(["CC","CASH","DATAPHONE"])},a)},Ao=function(a){return z(Bo,a)},jo=function(a){return void 0===a&&(a={}),ho({productId:G(999),productName:V()},a)},Po=function(a){return z(jo,a)},No=function(a){return void 0===a&&(a={}),ho({products:Po(),storeName:V()},a)},Lo=function(a){return z(No,a)},Ho=function(a){return void 0===a&&(a={}),ho({billTotal:so(),paidPaymentMethods:Ao(),stores:Lo()},a)},Ro=function(a){return z(Ho,a)},Do=function(){return(Do=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},Co=function(a){return void 0===a&&(a={}),Do({created_at:U(),deleted_at:U(),updated_at:U(),id:G(20)},a)},Vo=function(a){void 0===a&&(a={});return Do(Do(Do({},Co()),{name:aa(["CASH","CREDIT_CARD"]),image_url:I(),default:W(.6),external_id:G(50).toString(),external_code:G(50),parent_id:G(50).toString(),methods:Eo()}),a)},To=function(a){return void 0===a&&(a={}),Do(Do(Do({},Vo()),{cc_brands:Jo()}),a)},Eo=function(a){return z(To,a)},Go=function(a){void 0===a&&(a={});return Do(Do(Do({},Co()),{id:G(10),name:aa(["American Express","Diners","Discover","Visa","MasterCard"]),image_url:sa(),cc_brands_mapping:[]}),a)},Jo=function(a){return z(Go,a)},_o=function(){return(_o=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},Fo=function(a){return void 0===a&&(a={}),_o({pickup:W(.5),hasCoupons:W(.4),delivery:W(.8),incomplete:W(.1)},a)},Oo=function(a){return z(Fo,a)},Io=function(){return(Io=Object.assign||function(a){for(var e,o=1,i=arguments.length;o<i;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}).apply(this,arguments)},Uo=function(a){return void 0===a&&(a={}),Io({idInt:L(),uid:N(),name:D(),lastname:D(),email:C(),birthdate:M.a.date.past().toISOString().split("T")[0],country:X()},a)},Zo=function(a){return z(Uo,a)},Wo=["FOOD_SHOP"],qo=function(a){!function(a){if(!Wo.includes(a))throw new Error("Sorry, e-commerce type "+a+" is not yet supported.")}(a)};e.default=qo}])}));
|