@openfeature/flagd-provider 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs CHANGED
@@ -7,52 +7,44 @@ var jsSdk = require('@openfeature/js-sdk');
7
7
  var grpcTransport = require('@protobuf-ts/grpc-transport');
8
8
 
9
9
  function _interopNamespace(e) {
10
- if (e && e.__esModule) return e;
11
- var n = Object.create(null);
12
- if (e) {
13
- Object.keys(e).forEach(function (k) {
14
- if (k !== 'default') {
15
- var d = Object.getOwnPropertyDescriptor(e, k);
16
- Object.defineProperty(n, k, d.get ? d : {
17
- enumerable: true,
18
- get: function () { return e[k]; }
19
- });
20
- }
21
- });
22
- }
23
- n["default"] = e;
24
- return Object.freeze(n);
10
+ if (e && e.__esModule) return e;
11
+ var n = Object.create(null);
12
+ if (e) {
13
+ Object.keys(e).forEach(function (k) {
14
+ if (k !== 'default') {
15
+ var d = Object.getOwnPropertyDescriptor(e, k);
16
+ Object.defineProperty(n, k, d.get ? d : {
17
+ enumerable: true,
18
+ get: function () { return e[k]; }
19
+ });
20
+ }
21
+ });
22
+ }
23
+ n["default"] = e;
24
+ return Object.freeze(n);
25
25
  }
26
26
 
27
27
  var grpc__namespace = /*#__PURE__*/_interopNamespace(grpc);
28
28
 
29
- /******************************************************************************
30
- Copyright (c) Microsoft Corporation.
31
-
32
- Permission to use, copy, modify, and/or distribute this software for any
33
- purpose with or without fee is hereby granted.
34
-
35
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
36
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
37
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
38
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
39
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
40
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
41
- PERFORMANCE OF THIS SOFTWARE.
42
- ***************************************************************************** */
43
-
44
- function __awaiter(thisArg, _arguments, P, generator) {
45
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
46
- return new (P || (P = Promise))(function (resolve, reject) {
47
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
48
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
49
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
50
- step((generator = generator.apply(thisArg, _arguments || [])).next());
51
- });
52
- }
53
-
54
29
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
55
30
 
31
+ var check = function (it) {
32
+ return it && it.Math == Math && it;
33
+ };
34
+
35
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
36
+ var global$c =
37
+ // eslint-disable-next-line es-x/no-global-this -- safe
38
+ check(typeof globalThis == 'object' && globalThis) ||
39
+ check(typeof window == 'object' && window) ||
40
+ // eslint-disable-next-line no-restricted-globals -- safe
41
+ check(typeof self == 'object' && self) ||
42
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
43
+ // eslint-disable-next-line no-new-func -- fallback
44
+ (function () { return this; })() || Function('return this')();
45
+
46
+ var objectGetOwnPropertyDescriptor = {};
47
+
56
48
  var fails$c = function (exec) {
57
49
  try {
58
50
  return !!exec();
@@ -63,7 +55,15 @@ var fails$c = function (exec) {
63
55
 
64
56
  var fails$b = fails$c;
65
57
 
66
- var functionBindNative = !fails$b(function () {
58
+ // Detect IE8's incomplete defineProperty implementation
59
+ var descriptors = !fails$b(function () {
60
+ // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
61
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
62
+ });
63
+
64
+ var fails$a = fails$c;
65
+
66
+ var functionBindNative = !fails$a(function () {
67
67
  // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
68
68
  var test = (function () { /* empty */ }).bind();
69
69
  // eslint-disable-next-line no-prototype-builtins -- safe
@@ -72,16 +72,49 @@ var functionBindNative = !fails$b(function () {
72
72
 
73
73
  var NATIVE_BIND$1 = functionBindNative;
74
74
 
75
+ var call$7 = Function.prototype.call;
76
+
77
+ var functionCall = NATIVE_BIND$1 ? call$7.bind(call$7) : function () {
78
+ return call$7.apply(call$7, arguments);
79
+ };
80
+
81
+ var objectPropertyIsEnumerable = {};
82
+
83
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
84
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
85
+ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
86
+
87
+ // Nashorn ~ JDK8 bug
88
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
89
+
90
+ // `Object.prototype.propertyIsEnumerable` method implementation
91
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
92
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
93
+ var descriptor = getOwnPropertyDescriptor$1(this, V);
94
+ return !!descriptor && descriptor.enumerable;
95
+ } : $propertyIsEnumerable;
96
+
97
+ var createPropertyDescriptor$3 = function (bitmap, value) {
98
+ return {
99
+ enumerable: !(bitmap & 1),
100
+ configurable: !(bitmap & 2),
101
+ writable: !(bitmap & 4),
102
+ value: value
103
+ };
104
+ };
105
+
106
+ var NATIVE_BIND = functionBindNative;
107
+
75
108
  var FunctionPrototype$1 = Function.prototype;
76
109
  var bind = FunctionPrototype$1.bind;
77
- var call$7 = FunctionPrototype$1.call;
78
- var uncurryThis$b = NATIVE_BIND$1 && bind.bind(call$7, call$7);
110
+ var call$6 = FunctionPrototype$1.call;
111
+ var uncurryThis$b = NATIVE_BIND && bind.bind(call$6, call$6);
79
112
 
80
- var functionUncurryThis = NATIVE_BIND$1 ? function (fn) {
113
+ var functionUncurryThis = NATIVE_BIND ? function (fn) {
81
114
  return fn && uncurryThis$b(fn);
82
115
  } : function (fn) {
83
116
  return fn && function () {
84
- return call$7.apply(fn, arguments);
117
+ return call$6.apply(fn, arguments);
85
118
  };
86
119
  };
87
120
 
@@ -95,14 +128,14 @@ var classofRaw$1 = function (it) {
95
128
  };
96
129
 
97
130
  var uncurryThis$9 = functionUncurryThis;
98
- var fails$a = fails$c;
131
+ var fails$9 = fails$c;
99
132
  var classof$2 = classofRaw$1;
100
133
 
101
134
  var $Object$4 = Object;
102
135
  var split = uncurryThis$9(''.split);
103
136
 
104
137
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
105
- var indexedObject = fails$a(function () {
138
+ var indexedObject = fails$9(function () {
106
139
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
107
140
  // eslint-disable-next-line no-prototype-builtins -- safe
108
141
  return !$Object$4('z').propertyIsEnumerable(0);
@@ -127,114 +160,42 @@ var toIndexedObject$5 = function (it) {
127
160
  return IndexedObject$1(requireObjectCoercible$1(it));
128
161
  };
129
162
 
130
- var check = function (it) {
131
- return it && it.Math == Math && it;
132
- };
133
-
134
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
135
- var global$c =
136
- // eslint-disable-next-line es-x/no-global-this -- safe
137
- check(typeof globalThis == 'object' && globalThis) ||
138
- check(typeof window == 'object' && window) ||
139
- // eslint-disable-next-line no-restricted-globals -- safe
140
- check(typeof self == 'object' && self) ||
141
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
142
- // eslint-disable-next-line no-new-func -- fallback
143
- (function () { return this; })() || Function('return this')();
144
-
145
- var shared$3 = {exports: {}};
146
-
147
- var global$b = global$c;
148
-
149
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
150
- var defineProperty$5 = Object.defineProperty;
151
-
152
- var defineGlobalProperty$3 = function (key, value) {
153
- try {
154
- defineProperty$5(global$b, key, { value: value, configurable: true, writable: true });
155
- } catch (error) {
156
- global$b[key] = value;
157
- } return value;
158
- };
159
-
160
- var global$a = global$c;
161
- var defineGlobalProperty$2 = defineGlobalProperty$3;
162
-
163
- var SHARED = '__core-js_shared__';
164
- var store$3 = global$a[SHARED] || defineGlobalProperty$2(SHARED, {});
165
-
166
- var sharedStore = store$3;
167
-
168
- var store$2 = sharedStore;
169
-
170
- (shared$3.exports = function (key, value) {
171
- return store$2[key] || (store$2[key] = value !== undefined ? value : {});
172
- })('versions', []).push({
173
- version: '3.22.8',
174
- mode: 'global',
175
- copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
176
- license: 'https://github.com/zloirock/core-js/blob/v3.22.8/LICENSE',
177
- source: 'https://github.com/zloirock/core-js'
178
- });
179
-
180
- var requireObjectCoercible = requireObjectCoercible$2;
181
-
182
- var $Object$3 = Object;
183
-
184
- // `ToObject` abstract operation
185
- // https://tc39.es/ecma262/#sec-toobject
186
- var toObject$3 = function (argument) {
187
- return $Object$3(requireObjectCoercible(argument));
188
- };
189
-
190
- var uncurryThis$8 = functionUncurryThis;
191
- var toObject$2 = toObject$3;
192
-
193
- var hasOwnProperty = uncurryThis$8({}.hasOwnProperty);
194
-
195
- // `HasOwnProperty` abstract operation
196
- // https://tc39.es/ecma262/#sec-hasownproperty
197
- // eslint-disable-next-line es-x/no-object-hasown -- safe
198
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
199
- return hasOwnProperty(toObject$2(it), key);
200
- };
201
-
202
- var uncurryThis$7 = functionUncurryThis;
203
-
204
- var id = 0;
205
- var postfix = Math.random();
206
- var toString$1 = uncurryThis$7(1.0.toString);
207
-
208
- var uid$2 = function (key) {
209
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$1(++id + postfix, 36);
210
- };
211
-
212
163
  // `IsCallable` abstract operation
213
164
  // https://tc39.es/ecma262/#sec-iscallable
214
165
  var isCallable$f = function (argument) {
215
166
  return typeof argument == 'function';
216
167
  };
217
168
 
218
- var global$9 = global$c;
219
169
  var isCallable$e = isCallable$f;
220
170
 
171
+ var isObject$5 = function (it) {
172
+ return typeof it == 'object' ? it !== null : isCallable$e(it);
173
+ };
174
+
175
+ var global$b = global$c;
176
+ var isCallable$d = isCallable$f;
177
+
221
178
  var aFunction = function (argument) {
222
- return isCallable$e(argument) ? argument : undefined;
179
+ return isCallable$d(argument) ? argument : undefined;
223
180
  };
224
181
 
225
182
  var getBuiltIn$4 = function (namespace, method) {
226
- return arguments.length < 2 ? aFunction(global$9[namespace]) : global$9[namespace] && global$9[namespace][method];
183
+ return arguments.length < 2 ? aFunction(global$b[namespace]) : global$b[namespace] && global$b[namespace][method];
227
184
  };
228
185
 
186
+ var uncurryThis$8 = functionUncurryThis;
187
+
188
+ var objectIsPrototypeOf = uncurryThis$8({}.isPrototypeOf);
189
+
229
190
  var getBuiltIn$3 = getBuiltIn$4;
230
191
 
231
192
  var engineUserAgent = getBuiltIn$3('navigator', 'userAgent') || '';
232
193
 
233
- var global$8 = global$c;
194
+ var global$a = global$c;
234
195
  var userAgent = engineUserAgent;
235
196
 
236
- var process$1 = global$8.process;
237
- var Deno = global$8.Deno;
197
+ var process$1 = global$a.process;
198
+ var Deno = global$a.Deno;
238
199
  var versions = process$1 && process$1.versions || Deno && Deno.version;
239
200
  var v8 = versions && versions.v8;
240
201
  var match, version;
@@ -261,10 +222,10 @@ var engineV8Version = version;
261
222
  /* eslint-disable es-x/no-symbol -- required for testing */
262
223
 
263
224
  var V8_VERSION = engineV8Version;
264
- var fails$9 = fails$c;
225
+ var fails$8 = fails$c;
265
226
 
266
227
  // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
267
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$9(function () {
228
+ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$8(function () {
268
229
  var symbol = Symbol();
269
230
  // Chrome 38 Symbol has incorrect toString conversion
270
231
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -281,189 +242,179 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
281
242
  && !Symbol.sham
282
243
  && typeof Symbol.iterator == 'symbol';
283
244
 
284
- var global$7 = global$c;
285
- var shared$2 = shared$3.exports;
286
- var hasOwn$9 = hasOwnProperty_1;
287
- var uid$1 = uid$2;
288
- var NATIVE_SYMBOL = nativeSymbol;
245
+ var getBuiltIn$2 = getBuiltIn$4;
246
+ var isCallable$c = isCallable$f;
247
+ var isPrototypeOf$1 = objectIsPrototypeOf;
289
248
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
290
249
 
291
- var WellKnownSymbolsStore = shared$2('wks');
292
- var Symbol$1 = global$7.Symbol;
293
- var symbolFor = Symbol$1 && Symbol$1['for'];
294
- var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
250
+ var $Object$3 = Object;
295
251
 
296
- var wellKnownSymbol$8 = function (name) {
297
- if (!hasOwn$9(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
298
- var description = 'Symbol.' + name;
299
- if (NATIVE_SYMBOL && hasOwn$9(Symbol$1, name)) {
300
- WellKnownSymbolsStore[name] = Symbol$1[name];
301
- } else if (USE_SYMBOL_AS_UID$1 && symbolFor) {
302
- WellKnownSymbolsStore[name] = symbolFor(description);
303
- } else {
304
- WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
305
- }
306
- } return WellKnownSymbolsStore[name];
252
+ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
253
+ return typeof it == 'symbol';
254
+ } : function (it) {
255
+ var $Symbol = getBuiltIn$2('Symbol');
256
+ return isCallable$c($Symbol) && isPrototypeOf$1($Symbol.prototype, $Object$3(it));
307
257
  };
308
258
 
309
- var isCallable$d = isCallable$f;
259
+ var $String$3 = String;
310
260
 
311
- var isObject$5 = function (it) {
312
- return typeof it == 'object' ? it !== null : isCallable$d(it);
261
+ var tryToString$1 = function (argument) {
262
+ try {
263
+ return $String$3(argument);
264
+ } catch (error) {
265
+ return 'Object';
266
+ }
313
267
  };
314
268
 
315
- var isObject$4 = isObject$5;
269
+ var isCallable$b = isCallable$f;
270
+ var tryToString = tryToString$1;
316
271
 
317
- var $String$3 = String;
318
272
  var $TypeError$5 = TypeError;
319
273
 
320
- // `Assert: Type(argument) is Object`
321
- var anObject$7 = function (argument) {
322
- if (isObject$4(argument)) return argument;
323
- throw $TypeError$5($String$3(argument) + ' is not an object');
274
+ // `Assert: IsCallable(argument) is true`
275
+ var aCallable$1 = function (argument) {
276
+ if (isCallable$b(argument)) return argument;
277
+ throw $TypeError$5(tryToString(argument) + ' is not a function');
324
278
  };
325
279
 
326
- var objectDefineProperties = {};
327
-
328
- var fails$8 = fails$c;
280
+ var aCallable = aCallable$1;
329
281
 
330
- // Detect IE8's incomplete defineProperty implementation
331
- var descriptors = !fails$8(function () {
332
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
333
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
334
- });
282
+ // `GetMethod` abstract operation
283
+ // https://tc39.es/ecma262/#sec-getmethod
284
+ var getMethod$1 = function (V, P) {
285
+ var func = V[P];
286
+ return func == null ? undefined : aCallable(func);
287
+ };
335
288
 
336
- var DESCRIPTORS$9 = descriptors;
337
- var fails$7 = fails$c;
289
+ var call$5 = functionCall;
290
+ var isCallable$a = isCallable$f;
291
+ var isObject$4 = isObject$5;
338
292
 
339
- // V8 ~ Chrome 36-
340
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
341
- var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$7(function () {
342
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
343
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
344
- value: 42,
345
- writable: false
346
- }).prototype != 42;
347
- });
293
+ var $TypeError$4 = TypeError;
348
294
 
349
- var objectDefineProperty = {};
295
+ // `OrdinaryToPrimitive` abstract operation
296
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
297
+ var ordinaryToPrimitive$1 = function (input, pref) {
298
+ var fn, val;
299
+ if (pref === 'string' && isCallable$a(fn = input.toString) && !isObject$4(val = call$5(fn, input))) return val;
300
+ if (isCallable$a(fn = input.valueOf) && !isObject$4(val = call$5(fn, input))) return val;
301
+ if (pref !== 'string' && isCallable$a(fn = input.toString) && !isObject$4(val = call$5(fn, input))) return val;
302
+ throw $TypeError$4("Can't convert object to primitive value");
303
+ };
350
304
 
351
- var global$6 = global$c;
352
- var isObject$3 = isObject$5;
305
+ var shared$3 = {exports: {}};
353
306
 
354
- var document$1 = global$6.document;
355
- // typeof document.createElement is 'object' in old IE
356
- var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
307
+ var global$9 = global$c;
357
308
 
358
- var documentCreateElement$2 = function (it) {
359
- return EXISTS$1 ? document$1.createElement(it) : {};
360
- };
361
-
362
- var DESCRIPTORS$8 = descriptors;
363
- var fails$6 = fails$c;
364
- var createElement = documentCreateElement$2;
309
+ // eslint-disable-next-line es-x/no-object-defineproperty -- safe
310
+ var defineProperty$5 = Object.defineProperty;
365
311
 
366
- // Thanks to IE8 for its funny defineProperty
367
- var ie8DomDefine = !DESCRIPTORS$8 && !fails$6(function () {
368
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
369
- return Object.defineProperty(createElement('div'), 'a', {
370
- get: function () { return 7; }
371
- }).a != 7;
372
- });
312
+ var defineGlobalProperty$3 = function (key, value) {
313
+ try {
314
+ defineProperty$5(global$9, key, { value: value, configurable: true, writable: true });
315
+ } catch (error) {
316
+ global$9[key] = value;
317
+ } return value;
318
+ };
373
319
 
374
- var NATIVE_BIND = functionBindNative;
320
+ var global$8 = global$c;
321
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
375
322
 
376
- var call$6 = Function.prototype.call;
323
+ var SHARED = '__core-js_shared__';
324
+ var store$3 = global$8[SHARED] || defineGlobalProperty$2(SHARED, {});
377
325
 
378
- var functionCall = NATIVE_BIND ? call$6.bind(call$6) : function () {
379
- return call$6.apply(call$6, arguments);
380
- };
326
+ var sharedStore = store$3;
381
327
 
382
- var uncurryThis$6 = functionUncurryThis;
328
+ var store$2 = sharedStore;
383
329
 
384
- var objectIsPrototypeOf = uncurryThis$6({}.isPrototypeOf);
330
+ (shared$3.exports = function (key, value) {
331
+ return store$2[key] || (store$2[key] = value !== undefined ? value : {});
332
+ })('versions', []).push({
333
+ version: '3.22.8',
334
+ mode: 'global',
335
+ copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
336
+ license: 'https://github.com/zloirock/core-js/blob/v3.22.8/LICENSE',
337
+ source: 'https://github.com/zloirock/core-js'
338
+ });
385
339
 
386
- var getBuiltIn$2 = getBuiltIn$4;
387
- var isCallable$c = isCallable$f;
388
- var isPrototypeOf$1 = objectIsPrototypeOf;
389
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
340
+ var requireObjectCoercible = requireObjectCoercible$2;
390
341
 
391
342
  var $Object$2 = Object;
392
343
 
393
- var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
394
- return typeof it == 'symbol';
395
- } : function (it) {
396
- var $Symbol = getBuiltIn$2('Symbol');
397
- return isCallable$c($Symbol) && isPrototypeOf$1($Symbol.prototype, $Object$2(it));
398
- };
399
-
400
- var $String$2 = String;
401
-
402
- var tryToString$1 = function (argument) {
403
- try {
404
- return $String$2(argument);
405
- } catch (error) {
406
- return 'Object';
407
- }
344
+ // `ToObject` abstract operation
345
+ // https://tc39.es/ecma262/#sec-toobject
346
+ var toObject$3 = function (argument) {
347
+ return $Object$2(requireObjectCoercible(argument));
408
348
  };
409
349
 
410
- var isCallable$b = isCallable$f;
411
- var tryToString = tryToString$1;
350
+ var uncurryThis$7 = functionUncurryThis;
351
+ var toObject$2 = toObject$3;
412
352
 
413
- var $TypeError$4 = TypeError;
353
+ var hasOwnProperty = uncurryThis$7({}.hasOwnProperty);
414
354
 
415
- // `Assert: IsCallable(argument) is true`
416
- var aCallable$1 = function (argument) {
417
- if (isCallable$b(argument)) return argument;
418
- throw $TypeError$4(tryToString(argument) + ' is not a function');
355
+ // `HasOwnProperty` abstract operation
356
+ // https://tc39.es/ecma262/#sec-hasownproperty
357
+ // eslint-disable-next-line es-x/no-object-hasown -- safe
358
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
359
+ return hasOwnProperty(toObject$2(it), key);
419
360
  };
420
361
 
421
- var aCallable = aCallable$1;
362
+ var uncurryThis$6 = functionUncurryThis;
422
363
 
423
- // `GetMethod` abstract operation
424
- // https://tc39.es/ecma262/#sec-getmethod
425
- var getMethod$1 = function (V, P) {
426
- var func = V[P];
427
- return func == null ? undefined : aCallable(func);
364
+ var id = 0;
365
+ var postfix = Math.random();
366
+ var toString$1 = uncurryThis$6(1.0.toString);
367
+
368
+ var uid$2 = function (key) {
369
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$1(++id + postfix, 36);
428
370
  };
429
371
 
430
- var call$5 = functionCall;
431
- var isCallable$a = isCallable$f;
432
- var isObject$2 = isObject$5;
372
+ var global$7 = global$c;
373
+ var shared$2 = shared$3.exports;
374
+ var hasOwn$9 = hasOwnProperty_1;
375
+ var uid$1 = uid$2;
376
+ var NATIVE_SYMBOL = nativeSymbol;
377
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
433
378
 
434
- var $TypeError$3 = TypeError;
379
+ var WellKnownSymbolsStore = shared$2('wks');
380
+ var Symbol$1 = global$7.Symbol;
381
+ var symbolFor = Symbol$1 && Symbol$1['for'];
382
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
435
383
 
436
- // `OrdinaryToPrimitive` abstract operation
437
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
438
- var ordinaryToPrimitive$1 = function (input, pref) {
439
- var fn, val;
440
- if (pref === 'string' && isCallable$a(fn = input.toString) && !isObject$2(val = call$5(fn, input))) return val;
441
- if (isCallable$a(fn = input.valueOf) && !isObject$2(val = call$5(fn, input))) return val;
442
- if (pref !== 'string' && isCallable$a(fn = input.toString) && !isObject$2(val = call$5(fn, input))) return val;
443
- throw $TypeError$3("Can't convert object to primitive value");
384
+ var wellKnownSymbol$8 = function (name) {
385
+ if (!hasOwn$9(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
386
+ var description = 'Symbol.' + name;
387
+ if (NATIVE_SYMBOL && hasOwn$9(Symbol$1, name)) {
388
+ WellKnownSymbolsStore[name] = Symbol$1[name];
389
+ } else if (USE_SYMBOL_AS_UID && symbolFor) {
390
+ WellKnownSymbolsStore[name] = symbolFor(description);
391
+ } else {
392
+ WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
393
+ }
394
+ } return WellKnownSymbolsStore[name];
444
395
  };
445
396
 
446
397
  var call$4 = functionCall;
447
- var isObject$1 = isObject$5;
398
+ var isObject$3 = isObject$5;
448
399
  var isSymbol$1 = isSymbol$2;
449
400
  var getMethod = getMethod$1;
450
401
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
451
402
  var wellKnownSymbol$7 = wellKnownSymbol$8;
452
403
 
453
- var $TypeError$2 = TypeError;
404
+ var $TypeError$3 = TypeError;
454
405
  var TO_PRIMITIVE = wellKnownSymbol$7('toPrimitive');
455
406
 
456
407
  // `ToPrimitive` abstract operation
457
408
  // https://tc39.es/ecma262/#sec-toprimitive
458
409
  var toPrimitive$1 = function (input, pref) {
459
- if (!isObject$1(input) || isSymbol$1(input)) return input;
410
+ if (!isObject$3(input) || isSymbol$1(input)) return input;
460
411
  var exoticToPrim = getMethod(input, TO_PRIMITIVE);
461
412
  var result;
462
413
  if (exoticToPrim) {
463
414
  if (pref === undefined) pref = 'default';
464
415
  result = call$4(exoticToPrim, input, pref);
465
- if (!isObject$1(result) || isSymbol$1(result)) return result;
466
- throw $TypeError$2("Can't convert object to primitive value");
416
+ if (!isObject$3(result) || isSymbol$1(result)) return result;
417
+ throw $TypeError$3("Can't convert object to primitive value");
467
418
  }
468
419
  if (pref === undefined) pref = 'number';
469
420
  return ordinaryToPrimitive(input, pref);
@@ -479,29 +430,101 @@ var toPropertyKey$2 = function (argument) {
479
430
  return isSymbol(key) ? key : key + '';
480
431
  };
481
432
 
482
- var DESCRIPTORS$7 = descriptors;
433
+ var global$6 = global$c;
434
+ var isObject$2 = isObject$5;
435
+
436
+ var document$1 = global$6.document;
437
+ // typeof document.createElement is 'object' in old IE
438
+ var EXISTS$1 = isObject$2(document$1) && isObject$2(document$1.createElement);
439
+
440
+ var documentCreateElement$2 = function (it) {
441
+ return EXISTS$1 ? document$1.createElement(it) : {};
442
+ };
443
+
444
+ var DESCRIPTORS$9 = descriptors;
445
+ var fails$7 = fails$c;
446
+ var createElement = documentCreateElement$2;
447
+
448
+ // Thanks to IE8 for its funny defineProperty
449
+ var ie8DomDefine = !DESCRIPTORS$9 && !fails$7(function () {
450
+ // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
451
+ return Object.defineProperty(createElement('div'), 'a', {
452
+ get: function () { return 7; }
453
+ }).a != 7;
454
+ });
455
+
456
+ var DESCRIPTORS$8 = descriptors;
457
+ var call$3 = functionCall;
458
+ var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
459
+ var createPropertyDescriptor$2 = createPropertyDescriptor$3;
460
+ var toIndexedObject$4 = toIndexedObject$5;
461
+ var toPropertyKey$1 = toPropertyKey$2;
462
+ var hasOwn$8 = hasOwnProperty_1;
483
463
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
464
+
465
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
466
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
467
+
468
+ // `Object.getOwnPropertyDescriptor` method
469
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
470
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
471
+ O = toIndexedObject$4(O);
472
+ P = toPropertyKey$1(P);
473
+ if (IE8_DOM_DEFINE$1) try {
474
+ return $getOwnPropertyDescriptor$1(O, P);
475
+ } catch (error) { /* empty */ }
476
+ if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$3(propertyIsEnumerableModule$1.f, O, P), O[P]);
477
+ };
478
+
479
+ var objectDefineProperty = {};
480
+
481
+ var DESCRIPTORS$7 = descriptors;
482
+ var fails$6 = fails$c;
483
+
484
+ // V8 ~ Chrome 36-
485
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
486
+ var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$6(function () {
487
+ // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
488
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
489
+ value: 42,
490
+ writable: false
491
+ }).prototype != 42;
492
+ });
493
+
494
+ var isObject$1 = isObject$5;
495
+
496
+ var $String$2 = String;
497
+ var $TypeError$2 = TypeError;
498
+
499
+ // `Assert: Type(argument) is Object`
500
+ var anObject$7 = function (argument) {
501
+ if (isObject$1(argument)) return argument;
502
+ throw $TypeError$2($String$2(argument) + ' is not an object');
503
+ };
504
+
505
+ var DESCRIPTORS$6 = descriptors;
506
+ var IE8_DOM_DEFINE = ie8DomDefine;
484
507
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
485
508
  var anObject$6 = anObject$7;
486
- var toPropertyKey$1 = toPropertyKey$2;
509
+ var toPropertyKey = toPropertyKey$2;
487
510
 
488
511
  var $TypeError$1 = TypeError;
489
512
  // eslint-disable-next-line es-x/no-object-defineproperty -- safe
490
513
  var $defineProperty = Object.defineProperty;
491
514
  // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
492
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
515
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
493
516
  var ENUMERABLE = 'enumerable';
494
517
  var CONFIGURABLE$1 = 'configurable';
495
518
  var WRITABLE = 'writable';
496
519
 
497
520
  // `Object.defineProperty` method
498
521
  // https://tc39.es/ecma262/#sec-object.defineproperty
499
- objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
522
+ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
500
523
  anObject$6(O);
501
- P = toPropertyKey$1(P);
524
+ P = toPropertyKey(P);
502
525
  anObject$6(Attributes);
503
526
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
504
- var current = $getOwnPropertyDescriptor$1(O, P);
527
+ var current = $getOwnPropertyDescriptor(O, P);
505
528
  if (current && current[WRITABLE]) {
506
529
  O[P] = Attributes.value;
507
530
  Attributes = {
@@ -513,9 +536,9 @@ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
513
536
  } return $defineProperty(O, P, Attributes);
514
537
  } : $defineProperty : function defineProperty(O, P, Attributes) {
515
538
  anObject$6(O);
516
- P = toPropertyKey$1(P);
539
+ P = toPropertyKey(P);
517
540
  anObject$6(Attributes);
518
- if (IE8_DOM_DEFINE$1) try {
541
+ if (IE8_DOM_DEFINE) try {
519
542
  return $defineProperty(O, P, Attributes);
520
543
  } catch (error) { /* empty */ }
521
544
  if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported');
@@ -523,159 +546,59 @@ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
523
546
  return O;
524
547
  };
525
548
 
526
- var ceil = Math.ceil;
527
- var floor = Math.floor;
549
+ var DESCRIPTORS$5 = descriptors;
550
+ var definePropertyModule$2 = objectDefineProperty;
551
+ var createPropertyDescriptor$1 = createPropertyDescriptor$3;
528
552
 
529
- // `Math.trunc` method
530
- // https://tc39.es/ecma262/#sec-math.trunc
531
- // eslint-disable-next-line es-x/no-math-trunc -- safe
532
- var mathTrunc = Math.trunc || function trunc(x) {
533
- var n = +x;
534
- return (n > 0 ? floor : ceil)(n);
553
+ var createNonEnumerableProperty$5 = DESCRIPTORS$5 ? function (object, key, value) {
554
+ return definePropertyModule$2.f(object, key, createPropertyDescriptor$1(1, value));
555
+ } : function (object, key, value) {
556
+ object[key] = value;
557
+ return object;
535
558
  };
536
559
 
537
- var trunc = mathTrunc;
560
+ var makeBuiltIn$2 = {exports: {}};
538
561
 
539
- // `ToIntegerOrInfinity` abstract operation
540
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
541
- var toIntegerOrInfinity$2 = function (argument) {
542
- var number = +argument;
543
- // eslint-disable-next-line no-self-compare -- NaN check
544
- return number !== number || number === 0 ? 0 : trunc(number);
545
- };
562
+ var DESCRIPTORS$4 = descriptors;
563
+ var hasOwn$7 = hasOwnProperty_1;
546
564
 
547
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
565
+ var FunctionPrototype = Function.prototype;
566
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
567
+ var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
548
568
 
549
- var max = Math.max;
550
- var min$1 = Math.min;
569
+ var EXISTS = hasOwn$7(FunctionPrototype, 'name');
570
+ // additional protection from minified / mangled / dropped function names
571
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
572
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
551
573
 
552
- // Helper for a popular repeating case of the spec:
553
- // Let integer be ? ToInteger(index).
554
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
555
- var toAbsoluteIndex$1 = function (index, length) {
556
- var integer = toIntegerOrInfinity$1(index);
557
- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
574
+ var functionName = {
575
+ EXISTS: EXISTS,
576
+ PROPER: PROPER,
577
+ CONFIGURABLE: CONFIGURABLE
558
578
  };
559
579
 
560
- var toIntegerOrInfinity = toIntegerOrInfinity$2;
561
-
562
- var min = Math.min;
580
+ var uncurryThis$5 = functionUncurryThis;
581
+ var isCallable$9 = isCallable$f;
582
+ var store$1 = sharedStore;
563
583
 
564
- // `ToLength` abstract operation
565
- // https://tc39.es/ecma262/#sec-tolength
566
- var toLength$1 = function (argument) {
567
- return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
568
- };
584
+ var functionToString = uncurryThis$5(Function.toString);
569
585
 
570
- var toLength = toLength$1;
586
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
587
+ if (!isCallable$9(store$1.inspectSource)) {
588
+ store$1.inspectSource = function (it) {
589
+ return functionToString(it);
590
+ };
591
+ }
571
592
 
572
- // `LengthOfArrayLike` abstract operation
573
- // https://tc39.es/ecma262/#sec-lengthofarraylike
574
- var lengthOfArrayLike$1 = function (obj) {
575
- return toLength(obj.length);
576
- };
593
+ var inspectSource$2 = store$1.inspectSource;
577
594
 
578
- var toIndexedObject$4 = toIndexedObject$5;
579
- var toAbsoluteIndex = toAbsoluteIndex$1;
580
- var lengthOfArrayLike = lengthOfArrayLike$1;
581
-
582
- // `Array.prototype.{ indexOf, includes }` methods implementation
583
- var createMethod = function (IS_INCLUDES) {
584
- return function ($this, el, fromIndex) {
585
- var O = toIndexedObject$4($this);
586
- var length = lengthOfArrayLike(O);
587
- var index = toAbsoluteIndex(fromIndex, length);
588
- var value;
589
- // Array#includes uses SameValueZero equality algorithm
590
- // eslint-disable-next-line no-self-compare -- NaN check
591
- if (IS_INCLUDES && el != el) while (length > index) {
592
- value = O[index++];
593
- // eslint-disable-next-line no-self-compare -- NaN check
594
- if (value != value) return true;
595
- // Array#indexOf ignores holes, Array#includes - not
596
- } else for (;length > index; index++) {
597
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
598
- } return !IS_INCLUDES && -1;
599
- };
600
- };
601
-
602
- var arrayIncludes = {
603
- // `Array.prototype.includes` method
604
- // https://tc39.es/ecma262/#sec-array.prototype.includes
605
- includes: createMethod(true),
606
- // `Array.prototype.indexOf` method
607
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
608
- indexOf: createMethod(false)
609
- };
610
-
611
- var hiddenKeys$4 = {};
612
-
613
- var uncurryThis$5 = functionUncurryThis;
614
- var hasOwn$8 = hasOwnProperty_1;
615
- var toIndexedObject$3 = toIndexedObject$5;
616
- var indexOf = arrayIncludes.indexOf;
617
- var hiddenKeys$3 = hiddenKeys$4;
618
-
619
- var push = uncurryThis$5([].push);
620
-
621
- var objectKeysInternal = function (object, names) {
622
- var O = toIndexedObject$3(object);
623
- var i = 0;
624
- var result = [];
625
- var key;
626
- for (key in O) !hasOwn$8(hiddenKeys$3, key) && hasOwn$8(O, key) && push(result, key);
627
- // Don't enum bug & hidden keys
628
- while (names.length > i) if (hasOwn$8(O, key = names[i++])) {
629
- ~indexOf(result, key) || push(result, key);
630
- }
631
- return result;
632
- };
633
-
634
- // IE8- don't enum bug keys
635
- var enumBugKeys$3 = [
636
- 'constructor',
637
- 'hasOwnProperty',
638
- 'isPrototypeOf',
639
- 'propertyIsEnumerable',
640
- 'toLocaleString',
641
- 'toString',
642
- 'valueOf'
643
- ];
644
-
645
- var internalObjectKeys$1 = objectKeysInternal;
646
- var enumBugKeys$2 = enumBugKeys$3;
647
-
648
- // `Object.keys` method
649
- // https://tc39.es/ecma262/#sec-object.keys
650
- // eslint-disable-next-line es-x/no-object-keys -- safe
651
- var objectKeys$2 = Object.keys || function keys(O) {
652
- return internalObjectKeys$1(O, enumBugKeys$2);
653
- };
654
-
655
- var DESCRIPTORS$6 = descriptors;
656
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
657
- var definePropertyModule$2 = objectDefineProperty;
658
- var anObject$5 = anObject$7;
659
- var toIndexedObject$2 = toIndexedObject$5;
660
- var objectKeys$1 = objectKeys$2;
661
-
662
- // `Object.defineProperties` method
663
- // https://tc39.es/ecma262/#sec-object.defineproperties
664
- // eslint-disable-next-line es-x/no-object-defineproperties -- safe
665
- objectDefineProperties.f = DESCRIPTORS$6 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
666
- anObject$5(O);
667
- var props = toIndexedObject$2(Properties);
668
- var keys = objectKeys$1(Properties);
669
- var length = keys.length;
670
- var index = 0;
671
- var key;
672
- while (length > index) definePropertyModule$2.f(O, key = keys[index++], props[key]);
673
- return O;
674
- };
595
+ var global$5 = global$c;
596
+ var isCallable$8 = isCallable$f;
597
+ var inspectSource$1 = inspectSource$2;
675
598
 
676
- var getBuiltIn$1 = getBuiltIn$4;
599
+ var WeakMap$1 = global$5.WeakMap;
677
600
 
678
- var html$1 = getBuiltIn$1('document', 'documentElement');
601
+ var nativeWeakMap = isCallable$8(WeakMap$1) && /native code/.test(inspectSource$1(WeakMap$1));
679
602
 
680
603
  var shared$1 = shared$3.exports;
681
604
  var uid = uid$2;
@@ -686,166 +609,17 @@ var sharedKey$3 = function (key) {
686
609
  return keys[key] || (keys[key] = uid(key));
687
610
  };
688
611
 
689
- /* global ActiveXObject -- old IE, WSH */
690
-
691
- var anObject$4 = anObject$7;
692
- var definePropertiesModule = objectDefineProperties;
693
- var enumBugKeys$1 = enumBugKeys$3;
694
- var hiddenKeys$2 = hiddenKeys$4;
695
- var html = html$1;
696
- var documentCreateElement$1 = documentCreateElement$2;
697
- var sharedKey$2 = sharedKey$3;
698
-
699
- var GT = '>';
700
- var LT = '<';
701
- var PROTOTYPE = 'prototype';
702
- var SCRIPT = 'script';
703
- var IE_PROTO$1 = sharedKey$2('IE_PROTO');
704
-
705
- var EmptyConstructor = function () { /* empty */ };
706
-
707
- var scriptTag = function (content) {
708
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
709
- };
710
-
711
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
712
- var NullProtoObjectViaActiveX = function (activeXDocument) {
713
- activeXDocument.write(scriptTag(''));
714
- activeXDocument.close();
715
- var temp = activeXDocument.parentWindow.Object;
716
- activeXDocument = null; // avoid memory leak
717
- return temp;
718
- };
719
-
720
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
721
- var NullProtoObjectViaIFrame = function () {
722
- // Thrash, waste and sodomy: IE GC bug
723
- var iframe = documentCreateElement$1('iframe');
724
- var JS = 'java' + SCRIPT + ':';
725
- var iframeDocument;
726
- iframe.style.display = 'none';
727
- html.appendChild(iframe);
728
- // https://github.com/zloirock/core-js/issues/475
729
- iframe.src = String(JS);
730
- iframeDocument = iframe.contentWindow.document;
731
- iframeDocument.open();
732
- iframeDocument.write(scriptTag('document.F=Object'));
733
- iframeDocument.close();
734
- return iframeDocument.F;
735
- };
736
-
737
- // Check for document.domain and active x support
738
- // No need to use active x approach when document.domain is not set
739
- // see https://github.com/es-shims/es5-shim/issues/150
740
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
741
- // avoid IE GC bug
742
- var activeXDocument;
743
- var NullProtoObject = function () {
744
- try {
745
- activeXDocument = new ActiveXObject('htmlfile');
746
- } catch (error) { /* ignore */ }
747
- NullProtoObject = typeof document != 'undefined'
748
- ? document.domain && activeXDocument
749
- ? NullProtoObjectViaActiveX(activeXDocument) // old IE
750
- : NullProtoObjectViaIFrame()
751
- : NullProtoObjectViaActiveX(activeXDocument); // WSH
752
- var length = enumBugKeys$1.length;
753
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys$1[length]];
754
- return NullProtoObject();
755
- };
756
-
757
- hiddenKeys$2[IE_PROTO$1] = true;
758
-
759
- // `Object.create` method
760
- // https://tc39.es/ecma262/#sec-object.create
761
- // eslint-disable-next-line es-x/no-object-create -- safe
762
- var objectCreate = Object.create || function create(O, Properties) {
763
- var result;
764
- if (O !== null) {
765
- EmptyConstructor[PROTOTYPE] = anObject$4(O);
766
- result = new EmptyConstructor();
767
- EmptyConstructor[PROTOTYPE] = null;
768
- // add "__proto__" for Object.getPrototypeOf polyfill
769
- result[IE_PROTO$1] = O;
770
- } else result = NullProtoObject();
771
- return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
772
- };
773
-
774
- var wellKnownSymbol$6 = wellKnownSymbol$8;
775
- var create$1 = objectCreate;
776
- var defineProperty$4 = objectDefineProperty.f;
777
-
778
- var UNSCOPABLES = wellKnownSymbol$6('unscopables');
779
- var ArrayPrototype = Array.prototype;
780
-
781
- // Array.prototype[@@unscopables]
782
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
783
- if (ArrayPrototype[UNSCOPABLES] == undefined) {
784
- defineProperty$4(ArrayPrototype, UNSCOPABLES, {
785
- configurable: true,
786
- value: create$1(null)
787
- });
788
- }
789
-
790
- // add a key to Array.prototype[@@unscopables]
791
- var addToUnscopables$1 = function (key) {
792
- ArrayPrototype[UNSCOPABLES][key] = true;
793
- };
794
-
795
- var iterators = {};
796
-
797
- var uncurryThis$4 = functionUncurryThis;
798
- var isCallable$9 = isCallable$f;
799
- var store$1 = sharedStore;
800
-
801
- var functionToString = uncurryThis$4(Function.toString);
802
-
803
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
804
- if (!isCallable$9(store$1.inspectSource)) {
805
- store$1.inspectSource = function (it) {
806
- return functionToString(it);
807
- };
808
- }
809
-
810
- var inspectSource$2 = store$1.inspectSource;
811
-
812
- var global$5 = global$c;
813
- var isCallable$8 = isCallable$f;
814
- var inspectSource$1 = inspectSource$2;
815
-
816
- var WeakMap$1 = global$5.WeakMap;
817
-
818
- var nativeWeakMap = isCallable$8(WeakMap$1) && /native code/.test(inspectSource$1(WeakMap$1));
819
-
820
- var createPropertyDescriptor$3 = function (bitmap, value) {
821
- return {
822
- enumerable: !(bitmap & 1),
823
- configurable: !(bitmap & 2),
824
- writable: !(bitmap & 4),
825
- value: value
826
- };
827
- };
828
-
829
- var DESCRIPTORS$5 = descriptors;
830
- var definePropertyModule$1 = objectDefineProperty;
831
- var createPropertyDescriptor$2 = createPropertyDescriptor$3;
832
-
833
- var createNonEnumerableProperty$5 = DESCRIPTORS$5 ? function (object, key, value) {
834
- return definePropertyModule$1.f(object, key, createPropertyDescriptor$2(1, value));
835
- } : function (object, key, value) {
836
- object[key] = value;
837
- return object;
838
- };
612
+ var hiddenKeys$4 = {};
839
613
 
840
614
  var NATIVE_WEAK_MAP = nativeWeakMap;
841
615
  var global$4 = global$c;
842
- var uncurryThis$3 = functionUncurryThis;
616
+ var uncurryThis$4 = functionUncurryThis;
843
617
  var isObject = isObject$5;
844
618
  var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
845
- var hasOwn$7 = hasOwnProperty_1;
619
+ var hasOwn$6 = hasOwnProperty_1;
846
620
  var shared = sharedStore;
847
- var sharedKey$1 = sharedKey$3;
848
- var hiddenKeys$1 = hiddenKeys$4;
621
+ var sharedKey$2 = sharedKey$3;
622
+ var hiddenKeys$3 = hiddenKeys$4;
849
623
 
850
624
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
851
625
  var TypeError$1 = global$4.TypeError;
@@ -867,9 +641,9 @@ var getterFor = function (TYPE) {
867
641
 
868
642
  if (NATIVE_WEAK_MAP || shared.state) {
869
643
  var store = shared.state || (shared.state = new WeakMap());
870
- var wmget = uncurryThis$3(store.get);
871
- var wmhas = uncurryThis$3(store.has);
872
- var wmset = uncurryThis$3(store.set);
644
+ var wmget = uncurryThis$4(store.get);
645
+ var wmhas = uncurryThis$4(store.has);
646
+ var wmset = uncurryThis$4(store.set);
873
647
  set = function (it, metadata) {
874
648
  if (wmhas(store, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
875
649
  metadata.facade = it;
@@ -883,19 +657,19 @@ if (NATIVE_WEAK_MAP || shared.state) {
883
657
  return wmhas(store, it);
884
658
  };
885
659
  } else {
886
- var STATE = sharedKey$1('state');
887
- hiddenKeys$1[STATE] = true;
660
+ var STATE = sharedKey$2('state');
661
+ hiddenKeys$3[STATE] = true;
888
662
  set = function (it, metadata) {
889
- if (hasOwn$7(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
663
+ if (hasOwn$6(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
890
664
  metadata.facade = it;
891
665
  createNonEnumerableProperty$4(it, STATE, metadata);
892
666
  return metadata;
893
667
  };
894
668
  get = function (it) {
895
- return hasOwn$7(it, STATE) ? it[STATE] : {};
669
+ return hasOwn$6(it, STATE) ? it[STATE] : {};
896
670
  };
897
671
  has = function (it) {
898
- return hasOwn$7(it, STATE);
672
+ return hasOwn$6(it, STATE);
899
673
  };
900
674
  }
901
675
 
@@ -907,83 +681,22 @@ var internalState = {
907
681
  getterFor: getterFor
908
682
  };
909
683
 
910
- var objectGetOwnPropertyDescriptor = {};
684
+ var fails$5 = fails$c;
685
+ var isCallable$7 = isCallable$f;
686
+ var hasOwn$5 = hasOwnProperty_1;
687
+ var DESCRIPTORS$3 = descriptors;
688
+ var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
689
+ var inspectSource = inspectSource$2;
690
+ var InternalStateModule$1 = internalState;
911
691
 
912
- var objectPropertyIsEnumerable = {};
692
+ var enforceInternalState = InternalStateModule$1.enforce;
693
+ var getInternalState$1 = InternalStateModule$1.get;
694
+ // eslint-disable-next-line es-x/no-object-defineproperty -- safe
695
+ var defineProperty$4 = Object.defineProperty;
913
696
 
914
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
915
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
916
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
917
-
918
- // Nashorn ~ JDK8 bug
919
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
920
-
921
- // `Object.prototype.propertyIsEnumerable` method implementation
922
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
923
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
924
- var descriptor = getOwnPropertyDescriptor$1(this, V);
925
- return !!descriptor && descriptor.enumerable;
926
- } : $propertyIsEnumerable;
927
-
928
- var DESCRIPTORS$4 = descriptors;
929
- var call$3 = functionCall;
930
- var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
931
- var createPropertyDescriptor$1 = createPropertyDescriptor$3;
932
- var toIndexedObject$1 = toIndexedObject$5;
933
- var toPropertyKey = toPropertyKey$2;
934
- var hasOwn$6 = hasOwnProperty_1;
935
- var IE8_DOM_DEFINE = ie8DomDefine;
936
-
937
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
938
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
939
-
940
- // `Object.getOwnPropertyDescriptor` method
941
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
942
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$4 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
943
- O = toIndexedObject$1(O);
944
- P = toPropertyKey(P);
945
- if (IE8_DOM_DEFINE) try {
946
- return $getOwnPropertyDescriptor(O, P);
947
- } catch (error) { /* empty */ }
948
- if (hasOwn$6(O, P)) return createPropertyDescriptor$1(!call$3(propertyIsEnumerableModule$1.f, O, P), O[P]);
949
- };
950
-
951
- var makeBuiltIn$2 = {exports: {}};
952
-
953
- var DESCRIPTORS$3 = descriptors;
954
- var hasOwn$5 = hasOwnProperty_1;
955
-
956
- var FunctionPrototype = Function.prototype;
957
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
958
- var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
959
-
960
- var EXISTS = hasOwn$5(FunctionPrototype, 'name');
961
- // additional protection from minified / mangled / dropped function names
962
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
963
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype, 'name').configurable));
964
-
965
- var functionName = {
966
- EXISTS: EXISTS,
967
- PROPER: PROPER,
968
- CONFIGURABLE: CONFIGURABLE
969
- };
970
-
971
- var fails$5 = fails$c;
972
- var isCallable$7 = isCallable$f;
973
- var hasOwn$4 = hasOwnProperty_1;
974
- var DESCRIPTORS$2 = descriptors;
975
- var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
976
- var inspectSource = inspectSource$2;
977
- var InternalStateModule$1 = internalState;
978
-
979
- var enforceInternalState = InternalStateModule$1.enforce;
980
- var getInternalState$1 = InternalStateModule$1.get;
981
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
982
- var defineProperty$3 = Object.defineProperty;
983
-
984
- var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$5(function () {
985
- return defineProperty$3(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
986
- });
697
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$5(function () {
698
+ return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
699
+ });
987
700
 
988
701
  var TEMPLATE = String(String).split('String');
989
702
 
@@ -993,20 +706,20 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
993
706
  }
994
707
  if (options && options.getter) name = 'get ' + name;
995
708
  if (options && options.setter) name = 'set ' + name;
996
- if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
997
- defineProperty$3(value, 'name', { value: name, configurable: true });
709
+ if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
710
+ defineProperty$4(value, 'name', { value: name, configurable: true });
998
711
  }
999
- if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
1000
- defineProperty$3(value, 'length', { value: options.arity });
712
+ if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
713
+ defineProperty$4(value, 'length', { value: options.arity });
1001
714
  }
1002
715
  try {
1003
- if (options && hasOwn$4(options, 'constructor') && options.constructor) {
1004
- if (DESCRIPTORS$2) defineProperty$3(value, 'prototype', { writable: false });
716
+ if (options && hasOwn$5(options, 'constructor') && options.constructor) {
717
+ if (DESCRIPTORS$3) defineProperty$4(value, 'prototype', { writable: false });
1005
718
  // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
1006
719
  } else if (value.prototype) value.prototype = undefined;
1007
720
  } catch (error) { /* empty */ }
1008
721
  var state = enforceInternalState(value);
1009
- if (!hasOwn$4(state, 'source')) {
722
+ if (!hasOwn$5(state, 'source')) {
1010
723
  state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
1011
724
  } return value;
1012
725
  };
@@ -1040,16 +753,133 @@ var defineBuiltIn$4 = function (O, key, value, options) {
1040
753
 
1041
754
  var objectGetOwnPropertyNames = {};
1042
755
 
1043
- var internalObjectKeys = objectKeysInternal;
1044
- var enumBugKeys = enumBugKeys$3;
756
+ var ceil = Math.ceil;
757
+ var floor = Math.floor;
758
+
759
+ // `Math.trunc` method
760
+ // https://tc39.es/ecma262/#sec-math.trunc
761
+ // eslint-disable-next-line es-x/no-math-trunc -- safe
762
+ var mathTrunc = Math.trunc || function trunc(x) {
763
+ var n = +x;
764
+ return (n > 0 ? floor : ceil)(n);
765
+ };
766
+
767
+ var trunc = mathTrunc;
768
+
769
+ // `ToIntegerOrInfinity` abstract operation
770
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
771
+ var toIntegerOrInfinity$2 = function (argument) {
772
+ var number = +argument;
773
+ // eslint-disable-next-line no-self-compare -- NaN check
774
+ return number !== number || number === 0 ? 0 : trunc(number);
775
+ };
776
+
777
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
778
+
779
+ var max = Math.max;
780
+ var min$1 = Math.min;
781
+
782
+ // Helper for a popular repeating case of the spec:
783
+ // Let integer be ? ToInteger(index).
784
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
785
+ var toAbsoluteIndex$1 = function (index, length) {
786
+ var integer = toIntegerOrInfinity$1(index);
787
+ return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
788
+ };
789
+
790
+ var toIntegerOrInfinity = toIntegerOrInfinity$2;
791
+
792
+ var min = Math.min;
1045
793
 
1046
- var hiddenKeys = enumBugKeys.concat('length', 'prototype');
794
+ // `ToLength` abstract operation
795
+ // https://tc39.es/ecma262/#sec-tolength
796
+ var toLength$1 = function (argument) {
797
+ return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
798
+ };
799
+
800
+ var toLength = toLength$1;
801
+
802
+ // `LengthOfArrayLike` abstract operation
803
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
804
+ var lengthOfArrayLike$1 = function (obj) {
805
+ return toLength(obj.length);
806
+ };
807
+
808
+ var toIndexedObject$3 = toIndexedObject$5;
809
+ var toAbsoluteIndex = toAbsoluteIndex$1;
810
+ var lengthOfArrayLike = lengthOfArrayLike$1;
811
+
812
+ // `Array.prototype.{ indexOf, includes }` methods implementation
813
+ var createMethod = function (IS_INCLUDES) {
814
+ return function ($this, el, fromIndex) {
815
+ var O = toIndexedObject$3($this);
816
+ var length = lengthOfArrayLike(O);
817
+ var index = toAbsoluteIndex(fromIndex, length);
818
+ var value;
819
+ // Array#includes uses SameValueZero equality algorithm
820
+ // eslint-disable-next-line no-self-compare -- NaN check
821
+ if (IS_INCLUDES && el != el) while (length > index) {
822
+ value = O[index++];
823
+ // eslint-disable-next-line no-self-compare -- NaN check
824
+ if (value != value) return true;
825
+ // Array#indexOf ignores holes, Array#includes - not
826
+ } else for (;length > index; index++) {
827
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
828
+ } return !IS_INCLUDES && -1;
829
+ };
830
+ };
831
+
832
+ var arrayIncludes = {
833
+ // `Array.prototype.includes` method
834
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
835
+ includes: createMethod(true),
836
+ // `Array.prototype.indexOf` method
837
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
838
+ indexOf: createMethod(false)
839
+ };
840
+
841
+ var uncurryThis$3 = functionUncurryThis;
842
+ var hasOwn$4 = hasOwnProperty_1;
843
+ var toIndexedObject$2 = toIndexedObject$5;
844
+ var indexOf = arrayIncludes.indexOf;
845
+ var hiddenKeys$2 = hiddenKeys$4;
846
+
847
+ var push = uncurryThis$3([].push);
848
+
849
+ var objectKeysInternal = function (object, names) {
850
+ var O = toIndexedObject$2(object);
851
+ var i = 0;
852
+ var result = [];
853
+ var key;
854
+ for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push(result, key);
855
+ // Don't enum bug & hidden keys
856
+ while (names.length > i) if (hasOwn$4(O, key = names[i++])) {
857
+ ~indexOf(result, key) || push(result, key);
858
+ }
859
+ return result;
860
+ };
861
+
862
+ // IE8- don't enum bug keys
863
+ var enumBugKeys$3 = [
864
+ 'constructor',
865
+ 'hasOwnProperty',
866
+ 'isPrototypeOf',
867
+ 'propertyIsEnumerable',
868
+ 'toLocaleString',
869
+ 'toString',
870
+ 'valueOf'
871
+ ];
872
+
873
+ var internalObjectKeys$1 = objectKeysInternal;
874
+ var enumBugKeys$2 = enumBugKeys$3;
875
+
876
+ var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
1047
877
 
1048
878
  // `Object.getOwnPropertyNames` method
1049
879
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
1050
880
  // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
1051
881
  objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1052
- return internalObjectKeys(O, hiddenKeys);
882
+ return internalObjectKeys$1(O, hiddenKeys$1);
1053
883
  };
1054
884
 
1055
885
  var objectGetOwnPropertySymbols = {};
@@ -1057,119 +887,358 @@ var objectGetOwnPropertySymbols = {};
1057
887
  // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
1058
888
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1059
889
 
1060
- var getBuiltIn = getBuiltIn$4;
1061
- var uncurryThis$2 = functionUncurryThis;
1062
- var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1063
- var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1064
- var anObject$3 = anObject$7;
890
+ var getBuiltIn$1 = getBuiltIn$4;
891
+ var uncurryThis$2 = functionUncurryThis;
892
+ var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
893
+ var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
894
+ var anObject$5 = anObject$7;
895
+
896
+ var concat$1 = uncurryThis$2([].concat);
897
+
898
+ // all object keys, includes non-enumerable and symbols
899
+ var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
900
+ var keys = getOwnPropertyNamesModule.f(anObject$5(it));
901
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
902
+ return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
903
+ };
904
+
905
+ var hasOwn$3 = hasOwnProperty_1;
906
+ var ownKeys = ownKeys$1;
907
+ var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
908
+ var definePropertyModule$1 = objectDefineProperty;
909
+
910
+ var copyConstructorProperties$1 = function (target, source, exceptions) {
911
+ var keys = ownKeys(source);
912
+ var defineProperty = definePropertyModule$1.f;
913
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
914
+ for (var i = 0; i < keys.length; i++) {
915
+ var key = keys[i];
916
+ if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
917
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
918
+ }
919
+ }
920
+ };
921
+
922
+ var fails$4 = fails$c;
923
+ var isCallable$5 = isCallable$f;
924
+
925
+ var replacement = /#|\.prototype\./;
926
+
927
+ var isForced$1 = function (feature, detection) {
928
+ var value = data[normalize(feature)];
929
+ return value == POLYFILL ? true
930
+ : value == NATIVE ? false
931
+ : isCallable$5(detection) ? fails$4(detection)
932
+ : !!detection;
933
+ };
934
+
935
+ var normalize = isForced$1.normalize = function (string) {
936
+ return String(string).replace(replacement, '.').toLowerCase();
937
+ };
938
+
939
+ var data = isForced$1.data = {};
940
+ var NATIVE = isForced$1.NATIVE = 'N';
941
+ var POLYFILL = isForced$1.POLYFILL = 'P';
942
+
943
+ var isForced_1 = isForced$1;
944
+
945
+ var global$3 = global$c;
946
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
947
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
948
+ var defineBuiltIn$3 = defineBuiltIn$4;
949
+ var defineGlobalProperty = defineGlobalProperty$3;
950
+ var copyConstructorProperties = copyConstructorProperties$1;
951
+ var isForced = isForced_1;
952
+
953
+ /*
954
+ options.target - name of the target object
955
+ options.global - target is the global object
956
+ options.stat - export as static methods of target
957
+ options.proto - export as prototype methods of target
958
+ options.real - real prototype method for the `pure` version
959
+ options.forced - export even if the native feature is available
960
+ options.bind - bind methods to the target, required for the `pure` version
961
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
962
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
963
+ options.sham - add a flag to not completely full polyfills
964
+ options.enumerable - export as enumerable property
965
+ options.dontCallGetSet - prevent calling a getter on target
966
+ options.name - the .name of the function if it does not match the key
967
+ */
968
+ var _export = function (options, source) {
969
+ var TARGET = options.target;
970
+ var GLOBAL = options.global;
971
+ var STATIC = options.stat;
972
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
973
+ if (GLOBAL) {
974
+ target = global$3;
975
+ } else if (STATIC) {
976
+ target = global$3[TARGET] || defineGlobalProperty(TARGET, {});
977
+ } else {
978
+ target = (global$3[TARGET] || {}).prototype;
979
+ }
980
+ if (target) for (key in source) {
981
+ sourceProperty = source[key];
982
+ if (options.dontCallGetSet) {
983
+ descriptor = getOwnPropertyDescriptor(target, key);
984
+ targetProperty = descriptor && descriptor.value;
985
+ } else targetProperty = target[key];
986
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
987
+ // contained in target
988
+ if (!FORCED && targetProperty !== undefined) {
989
+ if (typeof sourceProperty == typeof targetProperty) continue;
990
+ copyConstructorProperties(sourceProperty, targetProperty);
991
+ }
992
+ // add a flag to not completely full polyfills
993
+ if (options.sham || (targetProperty && targetProperty.sham)) {
994
+ createNonEnumerableProperty$2(sourceProperty, 'sham', true);
995
+ }
996
+ defineBuiltIn$3(target, key, sourceProperty, options);
997
+ }
998
+ };
999
+
1000
+ var internalObjectKeys = objectKeysInternal;
1001
+ var enumBugKeys$1 = enumBugKeys$3;
1002
+
1003
+ // `Object.keys` method
1004
+ // https://tc39.es/ecma262/#sec-object.keys
1005
+ // eslint-disable-next-line es-x/no-object-keys -- safe
1006
+ var objectKeys$2 = Object.keys || function keys(O) {
1007
+ return internalObjectKeys(O, enumBugKeys$1);
1008
+ };
1009
+
1010
+ var DESCRIPTORS$2 = descriptors;
1011
+ var uncurryThis$1 = functionUncurryThis;
1012
+ var call$2 = functionCall;
1013
+ var fails$3 = fails$c;
1014
+ var objectKeys$1 = objectKeys$2;
1015
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1016
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1017
+ var toObject$1 = toObject$3;
1018
+ var IndexedObject = indexedObject;
1019
+
1020
+ // eslint-disable-next-line es-x/no-object-assign -- safe
1021
+ var $assign = Object.assign;
1022
+ // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
1023
+ var defineProperty$3 = Object.defineProperty;
1024
+ var concat = uncurryThis$1([].concat);
1025
+
1026
+ // `Object.assign` method
1027
+ // https://tc39.es/ecma262/#sec-object.assign
1028
+ var objectAssign = !$assign || fails$3(function () {
1029
+ // should have correct order of operations (Edge bug)
1030
+ if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
1031
+ enumerable: true,
1032
+ get: function () {
1033
+ defineProperty$3(this, 'b', {
1034
+ value: 3,
1035
+ enumerable: false
1036
+ });
1037
+ }
1038
+ }), { b: 2 })).b !== 1) return true;
1039
+ // should work with symbols and should have deterministic property order (V8 bug)
1040
+ var A = {};
1041
+ var B = {};
1042
+ // eslint-disable-next-line es-x/no-symbol -- safe
1043
+ var symbol = Symbol();
1044
+ var alphabet = 'abcdefghijklmnopqrst';
1045
+ A[symbol] = 7;
1046
+ alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1047
+ return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
1048
+ }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1049
+ var T = toObject$1(target);
1050
+ var argumentsLength = arguments.length;
1051
+ var index = 1;
1052
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1053
+ var propertyIsEnumerable = propertyIsEnumerableModule.f;
1054
+ while (argumentsLength > index) {
1055
+ var S = IndexedObject(arguments[index++]);
1056
+ var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
1057
+ var length = keys.length;
1058
+ var j = 0;
1059
+ var key;
1060
+ while (length > j) {
1061
+ key = keys[j++];
1062
+ if (!DESCRIPTORS$2 || call$2(propertyIsEnumerable, S, key)) T[key] = S[key];
1063
+ }
1064
+ } return T;
1065
+ } : $assign;
1066
+
1067
+ var $$2 = _export;
1068
+ var assign = objectAssign;
1069
+
1070
+ // `Object.assign` method
1071
+ // https://tc39.es/ecma262/#sec-object.assign
1072
+ // eslint-disable-next-line es-x/no-object-assign -- required for testing
1073
+ $$2({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1074
+ assign: assign
1075
+ });
1076
+
1077
+ const DEFAULT_CONFIG={host:"localhost",port:8013,tls:!1};var ENV_VAR;(function(a){a.FLAGD_HOST="FLAGD_HOST",a.FLAGD_PORT="FLAGD_PORT",a.FLAGD_TLS="FLAGD_TLS",a.FLAGD_SOCKET_PATH="FLAGD_SOCKET_PATH";})(ENV_VAR||(ENV_VAR={}));const getEnvVarConfig=()=>{var a;return Object.assign(Object.assign(Object.assign(Object.assign({},process.env[ENV_VAR.FLAGD_HOST]&&{host:process.env[ENV_VAR.FLAGD_HOST]}),+process.env[ENV_VAR.FLAGD_PORT]&&{port:+process.env[ENV_VAR.FLAGD_PORT]}),process.env[ENV_VAR.FLAGD_TLS]&&{tls:"true"===(null===(a=process.env[ENV_VAR.FLAGD_TLS])||void 0===a?void 0:a.toLowerCase())}),process.env[ENV_VAR.FLAGD_SOCKET_PATH]&&{socketPath:process.env[ENV_VAR.FLAGD_SOCKET_PATH]})};function getConfig(a={}){return Object.assign(Object.assign(Object.assign({},DEFAULT_CONFIG),getEnvVarConfig()),a)}
1078
+
1079
+ /******************************************************************************
1080
+ Copyright (c) Microsoft Corporation.
1081
+
1082
+ Permission to use, copy, modify, and/or distribute this software for any
1083
+ purpose with or without fee is hereby granted.
1084
+
1085
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1086
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1087
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1088
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1089
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1090
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1091
+ PERFORMANCE OF THIS SOFTWARE.
1092
+ ***************************************************************************** */
1093
+
1094
+ function __awaiter(thisArg, _arguments, P, generator) {
1095
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
1096
+ return new (P || (P = Promise))(function (resolve, reject) {
1097
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
1098
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
1099
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
1100
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
1101
+ });
1102
+ }
1103
+
1104
+ var objectDefineProperties = {};
1105
+
1106
+ var DESCRIPTORS$1 = descriptors;
1107
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1108
+ var definePropertyModule = objectDefineProperty;
1109
+ var anObject$4 = anObject$7;
1110
+ var toIndexedObject$1 = toIndexedObject$5;
1111
+ var objectKeys = objectKeys$2;
1112
+
1113
+ // `Object.defineProperties` method
1114
+ // https://tc39.es/ecma262/#sec-object.defineproperties
1115
+ // eslint-disable-next-line es-x/no-object-defineproperties -- safe
1116
+ objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1117
+ anObject$4(O);
1118
+ var props = toIndexedObject$1(Properties);
1119
+ var keys = objectKeys(Properties);
1120
+ var length = keys.length;
1121
+ var index = 0;
1122
+ var key;
1123
+ while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1124
+ return O;
1125
+ };
1126
+
1127
+ var getBuiltIn = getBuiltIn$4;
1128
+
1129
+ var html$1 = getBuiltIn('document', 'documentElement');
1130
+
1131
+ /* global ActiveXObject -- old IE, WSH */
1065
1132
 
1066
- var concat$1 = uncurryThis$2([].concat);
1133
+ var anObject$3 = anObject$7;
1134
+ var definePropertiesModule = objectDefineProperties;
1135
+ var enumBugKeys = enumBugKeys$3;
1136
+ var hiddenKeys = hiddenKeys$4;
1137
+ var html = html$1;
1138
+ var documentCreateElement$1 = documentCreateElement$2;
1139
+ var sharedKey$1 = sharedKey$3;
1067
1140
 
1068
- // all object keys, includes non-enumerable and symbols
1069
- var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
1070
- var keys = getOwnPropertyNamesModule.f(anObject$3(it));
1071
- var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1072
- return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
1073
- };
1141
+ var GT = '>';
1142
+ var LT = '<';
1143
+ var PROTOTYPE = 'prototype';
1144
+ var SCRIPT = 'script';
1145
+ var IE_PROTO$1 = sharedKey$1('IE_PROTO');
1074
1146
 
1075
- var hasOwn$3 = hasOwnProperty_1;
1076
- var ownKeys = ownKeys$1;
1077
- var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1078
- var definePropertyModule = objectDefineProperty;
1147
+ var EmptyConstructor = function () { /* empty */ };
1079
1148
 
1080
- var copyConstructorProperties$1 = function (target, source, exceptions) {
1081
- var keys = ownKeys(source);
1082
- var defineProperty = definePropertyModule.f;
1083
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1084
- for (var i = 0; i < keys.length; i++) {
1085
- var key = keys[i];
1086
- if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
1087
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1088
- }
1089
- }
1149
+ var scriptTag = function (content) {
1150
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1090
1151
  };
1091
1152
 
1092
- var fails$4 = fails$c;
1093
- var isCallable$5 = isCallable$f;
1153
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1154
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
1155
+ activeXDocument.write(scriptTag(''));
1156
+ activeXDocument.close();
1157
+ var temp = activeXDocument.parentWindow.Object;
1158
+ activeXDocument = null; // avoid memory leak
1159
+ return temp;
1160
+ };
1094
1161
 
1095
- var replacement = /#|\.prototype\./;
1162
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
1163
+ var NullProtoObjectViaIFrame = function () {
1164
+ // Thrash, waste and sodomy: IE GC bug
1165
+ var iframe = documentCreateElement$1('iframe');
1166
+ var JS = 'java' + SCRIPT + ':';
1167
+ var iframeDocument;
1168
+ iframe.style.display = 'none';
1169
+ html.appendChild(iframe);
1170
+ // https://github.com/zloirock/core-js/issues/475
1171
+ iframe.src = String(JS);
1172
+ iframeDocument = iframe.contentWindow.document;
1173
+ iframeDocument.open();
1174
+ iframeDocument.write(scriptTag('document.F=Object'));
1175
+ iframeDocument.close();
1176
+ return iframeDocument.F;
1177
+ };
1096
1178
 
1097
- var isForced$1 = function (feature, detection) {
1098
- var value = data[normalize(feature)];
1099
- return value == POLYFILL ? true
1100
- : value == NATIVE ? false
1101
- : isCallable$5(detection) ? fails$4(detection)
1102
- : !!detection;
1179
+ // Check for document.domain and active x support
1180
+ // No need to use active x approach when document.domain is not set
1181
+ // see https://github.com/es-shims/es5-shim/issues/150
1182
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1183
+ // avoid IE GC bug
1184
+ var activeXDocument;
1185
+ var NullProtoObject = function () {
1186
+ try {
1187
+ activeXDocument = new ActiveXObject('htmlfile');
1188
+ } catch (error) { /* ignore */ }
1189
+ NullProtoObject = typeof document != 'undefined'
1190
+ ? document.domain && activeXDocument
1191
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1192
+ : NullProtoObjectViaIFrame()
1193
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
1194
+ var length = enumBugKeys.length;
1195
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1196
+ return NullProtoObject();
1103
1197
  };
1104
1198
 
1105
- var normalize = isForced$1.normalize = function (string) {
1106
- return String(string).replace(replacement, '.').toLowerCase();
1199
+ hiddenKeys[IE_PROTO$1] = true;
1200
+
1201
+ // `Object.create` method
1202
+ // https://tc39.es/ecma262/#sec-object.create
1203
+ // eslint-disable-next-line es-x/no-object-create -- safe
1204
+ var objectCreate = Object.create || function create(O, Properties) {
1205
+ var result;
1206
+ if (O !== null) {
1207
+ EmptyConstructor[PROTOTYPE] = anObject$3(O);
1208
+ result = new EmptyConstructor();
1209
+ EmptyConstructor[PROTOTYPE] = null;
1210
+ // add "__proto__" for Object.getPrototypeOf polyfill
1211
+ result[IE_PROTO$1] = O;
1212
+ } else result = NullProtoObject();
1213
+ return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1107
1214
  };
1108
1215
 
1109
- var data = isForced$1.data = {};
1110
- var NATIVE = isForced$1.NATIVE = 'N';
1111
- var POLYFILL = isForced$1.POLYFILL = 'P';
1216
+ var wellKnownSymbol$6 = wellKnownSymbol$8;
1217
+ var create$1 = objectCreate;
1218
+ var defineProperty$2 = objectDefineProperty.f;
1112
1219
 
1113
- var isForced_1 = isForced$1;
1220
+ var UNSCOPABLES = wellKnownSymbol$6('unscopables');
1221
+ var ArrayPrototype = Array.prototype;
1114
1222
 
1115
- var global$3 = global$c;
1116
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1117
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
1118
- var defineBuiltIn$3 = defineBuiltIn$4;
1119
- var defineGlobalProperty = defineGlobalProperty$3;
1120
- var copyConstructorProperties = copyConstructorProperties$1;
1121
- var isForced = isForced_1;
1223
+ // Array.prototype[@@unscopables]
1224
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1225
+ if (ArrayPrototype[UNSCOPABLES] == undefined) {
1226
+ defineProperty$2(ArrayPrototype, UNSCOPABLES, {
1227
+ configurable: true,
1228
+ value: create$1(null)
1229
+ });
1230
+ }
1122
1231
 
1123
- /*
1124
- options.target - name of the target object
1125
- options.global - target is the global object
1126
- options.stat - export as static methods of target
1127
- options.proto - export as prototype methods of target
1128
- options.real - real prototype method for the `pure` version
1129
- options.forced - export even if the native feature is available
1130
- options.bind - bind methods to the target, required for the `pure` version
1131
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1132
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
1133
- options.sham - add a flag to not completely full polyfills
1134
- options.enumerable - export as enumerable property
1135
- options.dontCallGetSet - prevent calling a getter on target
1136
- options.name - the .name of the function if it does not match the key
1137
- */
1138
- var _export = function (options, source) {
1139
- var TARGET = options.target;
1140
- var GLOBAL = options.global;
1141
- var STATIC = options.stat;
1142
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1143
- if (GLOBAL) {
1144
- target = global$3;
1145
- } else if (STATIC) {
1146
- target = global$3[TARGET] || defineGlobalProperty(TARGET, {});
1147
- } else {
1148
- target = (global$3[TARGET] || {}).prototype;
1149
- }
1150
- if (target) for (key in source) {
1151
- sourceProperty = source[key];
1152
- if (options.dontCallGetSet) {
1153
- descriptor = getOwnPropertyDescriptor(target, key);
1154
- targetProperty = descriptor && descriptor.value;
1155
- } else targetProperty = target[key];
1156
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1157
- // contained in target
1158
- if (!FORCED && targetProperty !== undefined) {
1159
- if (typeof sourceProperty == typeof targetProperty) continue;
1160
- copyConstructorProperties(sourceProperty, targetProperty);
1161
- }
1162
- // add a flag to not completely full polyfills
1163
- if (options.sham || (targetProperty && targetProperty.sham)) {
1164
- createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1165
- }
1166
- defineBuiltIn$3(target, key, sourceProperty, options);
1167
- }
1232
+ // add a key to Array.prototype[@@unscopables]
1233
+ var addToUnscopables$1 = function (key) {
1234
+ ArrayPrototype[UNSCOPABLES][key] = true;
1168
1235
  };
1169
1236
 
1170
- var fails$3 = fails$c;
1237
+ var iterators = {};
1238
+
1239
+ var fails$2 = fails$c;
1171
1240
 
1172
- var correctPrototypeGetter = !fails$3(function () {
1241
+ var correctPrototypeGetter = !fails$2(function () {
1173
1242
  function F() { /* empty */ }
1174
1243
  F.prototype.constructor = null;
1175
1244
  // eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
@@ -1178,7 +1247,7 @@ var correctPrototypeGetter = !fails$3(function () {
1178
1247
 
1179
1248
  var hasOwn$2 = hasOwnProperty_1;
1180
1249
  var isCallable$4 = isCallable$f;
1181
- var toObject$1 = toObject$3;
1250
+ var toObject = toObject$3;
1182
1251
  var sharedKey = sharedKey$3;
1183
1252
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1184
1253
 
@@ -1190,7 +1259,7 @@ var ObjectPrototype = $Object$1.prototype;
1190
1259
  // https://tc39.es/ecma262/#sec-object.getprototypeof
1191
1260
  // eslint-disable-next-line es-x/no-object-getprototypeof -- safe
1192
1261
  var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1193
- var object = toObject$1(O);
1262
+ var object = toObject(O);
1194
1263
  if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
1195
1264
  var constructor = object.constructor;
1196
1265
  if (isCallable$4(constructor) && object instanceof constructor) {
@@ -1198,7 +1267,7 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf :
1198
1267
  } return object instanceof $Object$1 ? ObjectPrototype : null;
1199
1268
  };
1200
1269
 
1201
- var fails$2 = fails$c;
1270
+ var fails$1 = fails$c;
1202
1271
  var isCallable$3 = isCallable$f;
1203
1272
  var getPrototypeOf$1 = objectGetPrototypeOf;
1204
1273
  var defineBuiltIn$2 = defineBuiltIn$4;
@@ -1222,7 +1291,7 @@ if ([].keys) {
1222
1291
  }
1223
1292
  }
1224
1293
 
1225
- var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$2(function () {
1294
+ var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$1(function () {
1226
1295
  var test = {};
1227
1296
  // FF44- legacy iterators case
1228
1297
  return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
@@ -1243,7 +1312,7 @@ var iteratorsCore = {
1243
1312
  BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1244
1313
  };
1245
1314
 
1246
- var defineProperty$2 = objectDefineProperty.f;
1315
+ var defineProperty$1 = objectDefineProperty.f;
1247
1316
  var hasOwn$1 = hasOwnProperty_1;
1248
1317
  var wellKnownSymbol$4 = wellKnownSymbol$8;
1249
1318
 
@@ -1252,7 +1321,7 @@ var TO_STRING_TAG$3 = wellKnownSymbol$4('toStringTag');
1252
1321
  var setToStringTag$2 = function (target, TAG, STATIC) {
1253
1322
  if (target && !STATIC) target = target.prototype;
1254
1323
  if (target && !hasOwn$1(target, TO_STRING_TAG$3)) {
1255
- defineProperty$2(target, TO_STRING_TAG$3, { configurable: true, value: TAG });
1324
+ defineProperty$1(target, TO_STRING_TAG$3, { configurable: true, value: TAG });
1256
1325
  }
1257
1326
  };
1258
1327
 
@@ -1284,7 +1353,7 @@ var aPossiblePrototype$1 = function (argument) {
1284
1353
 
1285
1354
  /* eslint-disable no-proto -- safe */
1286
1355
 
1287
- var uncurryThis$1 = functionUncurryThis;
1356
+ var uncurryThis = functionUncurryThis;
1288
1357
  var anObject$2 = anObject$7;
1289
1358
  var aPossiblePrototype = aPossiblePrototype$1;
1290
1359
 
@@ -1298,7 +1367,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1298
1367
  var setter;
1299
1368
  try {
1300
1369
  // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
1301
- setter = uncurryThis$1(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1370
+ setter = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1302
1371
  setter(test, []);
1303
1372
  CORRECT_SETTER = test instanceof Array;
1304
1373
  } catch (error) { /* empty */ }
@@ -1311,8 +1380,8 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1311
1380
  };
1312
1381
  }() : undefined);
1313
1382
 
1314
- var $$2 = _export;
1315
- var call$2 = functionCall;
1383
+ var $$1 = _export;
1384
+ var call$1 = functionCall;
1316
1385
  var FunctionName = functionName;
1317
1386
  var isCallable$1 = isCallable$f;
1318
1387
  var createIteratorConstructor = createIteratorConstructor$1;
@@ -1381,7 +1450,7 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
1381
1450
  createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
1382
1451
  } else {
1383
1452
  INCORRECT_VALUES_NAME = true;
1384
- defaultIterator = function values() { return call$2(nativeIterator, this); };
1453
+ defaultIterator = function values() { return call$1(nativeIterator, this); };
1385
1454
  }
1386
1455
  }
1387
1456
 
@@ -1396,7 +1465,7 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
1396
1465
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1397
1466
  defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
1398
1467
  }
1399
- } else $$2({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1468
+ } else $$1({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1400
1469
  }
1401
1470
 
1402
1471
  // define iterator
@@ -1412,9 +1481,9 @@ var toIndexedObject = toIndexedObject$5;
1412
1481
  var addToUnscopables = addToUnscopables$1;
1413
1482
  var Iterators = iterators;
1414
1483
  var InternalStateModule = internalState;
1415
- var defineProperty$1 = objectDefineProperty.f;
1484
+ var defineProperty = objectDefineProperty.f;
1416
1485
  var defineIterator = defineIterator$1;
1417
- var DESCRIPTORS$1 = descriptors;
1486
+ var DESCRIPTORS = descriptors;
1418
1487
 
1419
1488
  var ARRAY_ITERATOR = 'Array Iterator';
1420
1489
  var setInternalState = InternalStateModule.set;
@@ -1464,8 +1533,8 @@ addToUnscopables('values');
1464
1533
  addToUnscopables('entries');
1465
1534
 
1466
1535
  // V8 ~ Chrome 45- bug
1467
- if (DESCRIPTORS$1 && values.name !== 'values') try {
1468
- defineProperty$1(values, 'name', { value: 'values' });
1536
+ if (DESCRIPTORS && values.name !== 'values') try {
1537
+ defineProperty(values, 'name', { value: 'values' });
1469
1538
  } catch (error) { /* empty */ }
1470
1539
 
1471
1540
  // iterable DOM collections
@@ -1551,12 +1620,12 @@ for (var COLLECTION_NAME in DOMIterables) {
1551
1620
 
1552
1621
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1553
1622
 
1554
- var $$1 = _export;
1623
+ var $ = _export;
1555
1624
  var global$1 = global$c;
1556
1625
 
1557
1626
  // `globalThis` object
1558
1627
  // https://tc39.es/ecma262/#sec-globalthis
1559
- $$1({ global: true }, {
1628
+ $({ global: true }, {
1560
1629
  globalThis: global$1
1561
1630
  });
1562
1631
 
@@ -4575,7 +4644,7 @@ var regexpFlags = function () {
4575
4644
  return result;
4576
4645
  };
4577
4646
 
4578
- var call$1 = functionCall;
4647
+ var call = functionCall;
4579
4648
  var hasOwn = hasOwnProperty_1;
4580
4649
  var isPrototypeOf = objectIsPrototypeOf;
4581
4650
  var regExpFlags = regexpFlags;
@@ -4585,21 +4654,21 @@ var RegExpPrototype$1 = RegExp.prototype;
4585
4654
  var regexpGetFlags = function (R) {
4586
4655
  var flags = R.flags;
4587
4656
  return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype$1, R)
4588
- ? call$1(regExpFlags, R) : flags;
4657
+ ? call(regExpFlags, R) : flags;
4589
4658
  };
4590
4659
 
4591
4660
  var PROPER_FUNCTION_NAME = functionName.PROPER;
4592
4661
  var defineBuiltIn = defineBuiltIn$4;
4593
4662
  var anObject = anObject$7;
4594
4663
  var $toString = toString;
4595
- var fails$1 = fails$c;
4664
+ var fails = fails$c;
4596
4665
  var getRegExpFlags = regexpGetFlags;
4597
4666
 
4598
4667
  var TO_STRING = 'toString';
4599
4668
  var RegExpPrototype = RegExp.prototype;
4600
4669
  var n$ToString = RegExpPrototype[TO_STRING];
4601
4670
 
4602
- var NOT_GENERIC = fails$1(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
4671
+ var NOT_GENERIC = fails(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
4603
4672
  // FF44- RegExp#toString has a wrong name
4604
4673
  var INCORRECT_NAME = PROPER_FUNCTION_NAME && n$ToString.name != TO_STRING;
4605
4674
 
@@ -4731,78 +4800,10 @@ class ResolveObjectResponse$Type extends MessageType{constructor(){super("schema
4731
4800
  * @generated from protobuf rpc: ResolveObject(schema.v1.ResolveObjectRequest) returns (schema.v1.ResolveObjectResponse);
4732
4801
  */resolveObject(a,b){const c=this.methods[4],d=this._transport.mergeOptions(b);return stackIntercept("unary",this._transport,c,d,a)}}
4733
4802
 
4734
- class GRPCService{constructor(a,b){const{host:c,port:d,tls:e,socketPath:f}=a;this.client=b?b:new ServiceClient(new grpcTransport.GrpcTransport({host:f?`unix://${f}`:`${c}:${d}`,channelCredentials:e?grpc__namespace.credentials.createSsl():grpc__namespace.credentials.createInsecure()}));}resolveBoolean(a,b){return __awaiter(this,void 0,void 0,function*(){const{response:c}=yield this.client.resolveBoolean({flagKey:a,context:this.convertContext(b)});return {value:c.value,reason:c.reason,variant:c.variant}})}resolveString(a,b){return __awaiter(this,void 0,void 0,function*(){const{response:c}=yield this.client.resolveString({flagKey:a,context:this.convertContext(b)});return {value:c.value,reason:c.reason,variant:c.variant}})}resolveNumber(a,b){return __awaiter(this,void 0,void 0,function*(){const{response:c}=yield this.client.resolveFloat({flagKey:a,context:this.convertContext(b)});return {value:c.value,reason:c.reason,variant:c.variant}})}resolveObject(a,b){return __awaiter(this,void 0,void 0,function*(){const{response:c}=yield this.client.resolveObject({flagKey:a,context:this.convertContext(b)});if(c.value!==void 0)return {value:Struct.toJson(c.value),reason:c.reason,variant:c.variant};throw new jsSdk.ParseError("Object value undefined or missing.")})}convertContext(a){// JsonObject closely matches EvaluationContext, this is a safe cast.
4735
- try{return Struct.fromJson(a)}catch(a){throw new jsSdk.ParseError(`Error serializing context.`)}}}
4736
-
4737
- var DESCRIPTORS = descriptors;
4738
- var uncurryThis = functionUncurryThis;
4739
- var call = functionCall;
4740
- var fails = fails$c;
4741
- var objectKeys = objectKeys$2;
4742
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
4743
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
4744
- var toObject = toObject$3;
4745
- var IndexedObject = indexedObject;
4746
-
4747
- // eslint-disable-next-line es-x/no-object-assign -- safe
4748
- var $assign = Object.assign;
4749
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
4750
- var defineProperty = Object.defineProperty;
4751
- var concat = uncurryThis([].concat);
4752
-
4753
- // `Object.assign` method
4754
- // https://tc39.es/ecma262/#sec-object.assign
4755
- var objectAssign = !$assign || fails(function () {
4756
- // should have correct order of operations (Edge bug)
4757
- if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
4758
- enumerable: true,
4759
- get: function () {
4760
- defineProperty(this, 'b', {
4761
- value: 3,
4762
- enumerable: false
4763
- });
4764
- }
4765
- }), { b: 2 })).b !== 1) return true;
4766
- // should work with symbols and should have deterministic property order (V8 bug)
4767
- var A = {};
4768
- var B = {};
4769
- // eslint-disable-next-line es-x/no-symbol -- safe
4770
- var symbol = Symbol();
4771
- var alphabet = 'abcdefghijklmnopqrst';
4772
- A[symbol] = 7;
4773
- alphabet.split('').forEach(function (chr) { B[chr] = chr; });
4774
- return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
4775
- }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
4776
- var T = toObject(target);
4777
- var argumentsLength = arguments.length;
4778
- var index = 1;
4779
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
4780
- var propertyIsEnumerable = propertyIsEnumerableModule.f;
4781
- while (argumentsLength > index) {
4782
- var S = IndexedObject(arguments[index++]);
4783
- var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
4784
- var length = keys.length;
4785
- var j = 0;
4786
- var key;
4787
- while (length > j) {
4788
- key = keys[j++];
4789
- if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
4790
- }
4791
- } return T;
4792
- } : $assign;
4793
-
4794
- var $ = _export;
4795
- var assign = objectAssign;
4796
-
4797
- // `Object.assign` method
4798
- // https://tc39.es/ecma262/#sec-object.assign
4799
- // eslint-disable-next-line es-x/no-object-assign -- required for testing
4800
- $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
4801
- assign: assign
4802
- });
4803
-
4804
- const DEFAULT_CONFIG={host:"localhost",port:8013,tls:!1};var ENV_VAR;(function(a){a.FLAGD_HOST="FLAGD_HOST",a.FLAGD_PORT="FLAGD_PORT",a.FLAGD_TLS="FLAGD_TLS",a.FLAGD_SOCKET_PATH="FLAGD_SOCKET_PATH";})(ENV_VAR||(ENV_VAR={}));const getEnvVarConfig=()=>{var a;return Object.assign(Object.assign(Object.assign(Object.assign({},process.env[ENV_VAR.FLAGD_HOST]&&{host:process.env[ENV_VAR.FLAGD_HOST]}),+process.env[ENV_VAR.FLAGD_PORT]&&{port:+process.env[ENV_VAR.FLAGD_PORT]}),process.env[ENV_VAR.FLAGD_TLS]&&{tls:"true"===(null===(a=process.env[ENV_VAR.FLAGD_TLS])||void 0===a?void 0:a.toLowerCase())}),process.env[ENV_VAR.FLAGD_SOCKET_PATH]&&{socketPath:process.env[ENV_VAR.FLAGD_SOCKET_PATH]})};function getConfig(a={}){return Object.assign(Object.assign(Object.assign({},DEFAULT_CONFIG),getEnvVarConfig()),a)}
4803
+ const Codes={InvalidArgument:"INVALID_ARGUMENT",NotFound:"NOT_FOUND",DataLoss:"DATA_LOSS",Unavailable:"UNAVAILABLE"};class GRPCService{constructor(a,b){this.onFulfilled=a=>a,this.onRejected=a=>{// map the errors
4804
+ switch(null===a||void 0===a?void 0:a.code){case Codes.DataLoss:throw new jsSdk.ParseError(a.message);case Codes.InvalidArgument:throw new jsSdk.TypeMismatchError(a.message);case Codes.NotFound:throw new jsSdk.FlagNotFoundError(a.message);case Codes.Unavailable:throw new jsSdk.FlagNotFoundError(a.message);default:throw a;}};const{host:c,port:d,tls:e,socketPath:f}=a;this.client=b?b:new ServiceClient(new grpcTransport.GrpcTransport({host:f?`unix://${f}`:`${c}:${d}`,channelCredentials:e?grpc__namespace.credentials.createSsl():grpc__namespace.credentials.createInsecure()}));}resolveBoolean(a,b,c){return __awaiter(this,void 0,void 0,function*(){const{response:d}=yield this.client.resolveBoolean({flagKey:a,context:this.convertContext(b,c)}).then(this.onFulfilled,this.onRejected);return {value:d.value,reason:d.reason,variant:d.variant}})}resolveString(a,b,c){return __awaiter(this,void 0,void 0,function*(){const{response:d}=yield this.client.resolveString({flagKey:a,context:this.convertContext(b,c)}).then(this.onFulfilled,this.onRejected);return {value:d.value,reason:d.reason,variant:d.variant}})}resolveNumber(a,b,c){return __awaiter(this,void 0,void 0,function*(){const{response:d}=yield this.client.resolveFloat({flagKey:a,context:this.convertContext(b,c)}).then(this.onFulfilled,this.onRejected);return {value:d.value,reason:d.reason,variant:d.variant}})}resolveObject(a,b,c){return __awaiter(this,void 0,void 0,function*(){const{response:d}=yield this.client.resolveObject({flagKey:a,context:this.convertContext(b,c)}).then(this.onFulfilled,this.onRejected);if(d.value!==void 0)return {value:Struct.toJson(d.value),reason:d.reason,variant:d.variant};throw new jsSdk.ParseError("Object value undefined or missing.")})}convertContext(a,b){try{// stringify to remove invalid js props
4805
+ return Struct.fromJsonString(JSON.stringify(a))}catch(a){const c=a;throw b.error(`${"Error serializing context."}: ${null===c||void 0===c?void 0:c.message}`),b.error(null===c||void 0===c?void 0:c.stack),new jsSdk.ParseError("Error serializing context.")}}}
4805
4806
 
4806
- class FlagdProvider{constructor(a,b){this.metadata={name:"flagd Provider"},this._service=b?b:new GRPCService(getConfig(a));}resolveBooleanEvaluation(a,b,c){return this._service.resolveBoolean(a,c)}resolveStringEvaluation(a,b,c){return this._service.resolveString(a,c)}resolveNumberEvaluation(a,b,c){return this._service.resolveNumber(a,c)}resolveObjectEvaluation(a,b,c){return this._service.resolveObject(a,c)}}
4807
+ class FlagdProvider{constructor(a,b){this.metadata={name:"flagd Provider"},this.logRejected=(a,b,c)=>{throw c.error(`Error resolving flag ${b}: ${null===a||void 0===a?void 0:a.message}`),c.error(null===a||void 0===a?void 0:a.stack),a},this._service=b?b:new GRPCService(getConfig(a));}resolveBooleanEvaluation(a,b,c,d){return this._service.resolveBoolean(a,c,d).catch(b=>this.logRejected(b,a,d))}resolveStringEvaluation(a,b,c,d){return this._service.resolveString(a,c,d).catch(b=>this.logRejected(b,a,d))}resolveNumberEvaluation(a,b,c,d){return this._service.resolveNumber(a,c,d).catch(b=>this.logRejected(b,a,d))}resolveObjectEvaluation(a,b,c,d){return this._service.resolveObject(a,c,d).catch(b=>this.logRejected(b,a,d))}}
4807
4808
 
4808
4809
  exports.FlagdProvider = FlagdProvider;