@teselagen/ove 0.3.58 → 0.3.60

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.es.js CHANGED
@@ -92,12 +92,12 @@ var beforeRead = "beforeRead";
92
92
  var read = "read";
93
93
  var afterRead = "afterRead";
94
94
  var beforeMain = "beforeMain";
95
- var main$2 = "main";
95
+ var main$1 = "main";
96
96
  var afterMain = "afterMain";
97
97
  var beforeWrite = "beforeWrite";
98
98
  var write = "write";
99
99
  var afterWrite = "afterWrite";
100
- var modifierPhases = [beforeRead, read, afterRead, beforeMain, main$2, afterMain, beforeWrite, write, afterWrite];
100
+ var modifierPhases = [beforeRead, read, afterRead, beforeMain, main$1, afterMain, beforeWrite, write, afterWrite];
101
101
  function getNodeName(element2) {
102
102
  return element2 ? (element2.nodeName || "").toLowerCase() : null;
103
103
  }
@@ -2821,7 +2821,7 @@ var followCursor = {
2821
2821
  }
2822
2822
  }
2823
2823
  __name(onMouseMove, "onMouseMove");
2824
- function create7() {
2824
+ function create6() {
2825
2825
  if (instance.props.followCursor) {
2826
2826
  activeInstances.push({
2827
2827
  instance,
@@ -2830,7 +2830,7 @@ var followCursor = {
2830
2830
  addMouseCoordsListener(doc);
2831
2831
  }
2832
2832
  }
2833
- __name(create7, "create");
2833
+ __name(create6, "create");
2834
2834
  function destroy2() {
2835
2835
  activeInstances = activeInstances.filter(function(data) {
2836
2836
  return data.instance !== instance;
@@ -2843,7 +2843,7 @@ var followCursor = {
2843
2843
  }
2844
2844
  __name(destroy2, "destroy");
2845
2845
  return {
2846
- onCreate: create7,
2846
+ onCreate: create6,
2847
2847
  onDestroy: destroy2,
2848
2848
  onBeforeUpdate: /* @__PURE__ */ __name(function onBeforeUpdate2() {
2849
2849
  prevProps = instance.props;
@@ -2856,7 +2856,7 @@ var followCursor = {
2856
2856
  if (followCursor2 !== void 0 && prevProps.followCursor !== followCursor2) {
2857
2857
  destroy2();
2858
2858
  if (followCursor2) {
2859
- create7();
2859
+ create6();
2860
2860
  if (instance.state.isMounted && !wasFocusEvent && !getIsInitialBehavior()) {
2861
2861
  addListener();
2862
2862
  }
@@ -3087,1322 +3087,6 @@ function getAugmentedNamespace(n2) {
3087
3087
  return a2;
3088
3088
  }
3089
3089
  __name(getAugmentedNamespace, "getAugmentedNamespace");
3090
- var axios$3 = { exports: {} };
3091
- var bind$5 = /* @__PURE__ */ __name(function bind(fn4, thisArg) {
3092
- return /* @__PURE__ */ __name(function wrap2() {
3093
- var args = new Array(arguments.length);
3094
- for (var i = 0; i < args.length; i++) {
3095
- args[i] = arguments[i];
3096
- }
3097
- return fn4.apply(thisArg, args);
3098
- }, "wrap");
3099
- }, "bind");
3100
- var bind$4 = bind$5;
3101
- var toString$8 = Object.prototype.toString;
3102
- function isArray$r(val2) {
3103
- return toString$8.call(val2) === "[object Array]";
3104
- }
3105
- __name(isArray$r, "isArray$r");
3106
- function isUndefined$1(val2) {
3107
- return typeof val2 === "undefined";
3108
- }
3109
- __name(isUndefined$1, "isUndefined$1");
3110
- function isBuffer$a(val2) {
3111
- return val2 !== null && !isUndefined$1(val2) && val2.constructor !== null && !isUndefined$1(val2.constructor) && typeof val2.constructor.isBuffer === "function" && val2.constructor.isBuffer(val2);
3112
- }
3113
- __name(isBuffer$a, "isBuffer$a");
3114
- function isArrayBuffer(val2) {
3115
- return toString$8.call(val2) === "[object ArrayBuffer]";
3116
- }
3117
- __name(isArrayBuffer, "isArrayBuffer");
3118
- function isFormData(val2) {
3119
- return typeof FormData !== "undefined" && val2 instanceof FormData;
3120
- }
3121
- __name(isFormData, "isFormData");
3122
- function isArrayBufferView(val2) {
3123
- var result;
3124
- if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
3125
- result = ArrayBuffer.isView(val2);
3126
- } else {
3127
- result = val2 && val2.buffer && val2.buffer instanceof ArrayBuffer;
3128
- }
3129
- return result;
3130
- }
3131
- __name(isArrayBufferView, "isArrayBufferView");
3132
- function isString$3(val2) {
3133
- return typeof val2 === "string";
3134
- }
3135
- __name(isString$3, "isString$3");
3136
- function isNumber$6(val2) {
3137
- return typeof val2 === "number";
3138
- }
3139
- __name(isNumber$6, "isNumber$6");
3140
- function isObject$h(val2) {
3141
- return val2 !== null && typeof val2 === "object";
3142
- }
3143
- __name(isObject$h, "isObject$h");
3144
- function isPlainObject$6(val2) {
3145
- if (toString$8.call(val2) !== "[object Object]") {
3146
- return false;
3147
- }
3148
- var prototype = Object.getPrototypeOf(val2);
3149
- return prototype === null || prototype === Object.prototype;
3150
- }
3151
- __name(isPlainObject$6, "isPlainObject$6");
3152
- function isDate$2(val2) {
3153
- return toString$8.call(val2) === "[object Date]";
3154
- }
3155
- __name(isDate$2, "isDate$2");
3156
- function isFile(val2) {
3157
- return toString$8.call(val2) === "[object File]";
3158
- }
3159
- __name(isFile, "isFile");
3160
- function isBlob(val2) {
3161
- return toString$8.call(val2) === "[object Blob]";
3162
- }
3163
- __name(isBlob, "isBlob");
3164
- function isFunction$8(val2) {
3165
- return toString$8.call(val2) === "[object Function]";
3166
- }
3167
- __name(isFunction$8, "isFunction$8");
3168
- function isStream(val2) {
3169
- return isObject$h(val2) && isFunction$8(val2.pipe);
3170
- }
3171
- __name(isStream, "isStream");
3172
- function isURLSearchParams(val2) {
3173
- return typeof URLSearchParams !== "undefined" && val2 instanceof URLSearchParams;
3174
- }
3175
- __name(isURLSearchParams, "isURLSearchParams");
3176
- function trim$1(str) {
3177
- return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, "");
3178
- }
3179
- __name(trim$1, "trim$1");
3180
- function isStandardBrowserEnv() {
3181
- if (typeof navigator !== "undefined" && (navigator.product === "ReactNative" || navigator.product === "NativeScript" || navigator.product === "NS")) {
3182
- return false;
3183
- }
3184
- return typeof window !== "undefined" && typeof document !== "undefined";
3185
- }
3186
- __name(isStandardBrowserEnv, "isStandardBrowserEnv");
3187
- function forEach$5(obj, fn4) {
3188
- if (obj === null || typeof obj === "undefined") {
3189
- return;
3190
- }
3191
- if (typeof obj !== "object") {
3192
- obj = [obj];
3193
- }
3194
- if (isArray$r(obj)) {
3195
- for (var i = 0, l2 = obj.length; i < l2; i++) {
3196
- fn4.call(null, obj[i], i, obj);
3197
- }
3198
- } else {
3199
- for (var key in obj) {
3200
- if (Object.prototype.hasOwnProperty.call(obj, key)) {
3201
- fn4.call(null, obj[key], key, obj);
3202
- }
3203
- }
3204
- }
3205
- }
3206
- __name(forEach$5, "forEach$5");
3207
- function merge$4() {
3208
- var result = {};
3209
- function assignValue2(val2, key) {
3210
- if (isPlainObject$6(result[key]) && isPlainObject$6(val2)) {
3211
- result[key] = merge$4(result[key], val2);
3212
- } else if (isPlainObject$6(val2)) {
3213
- result[key] = merge$4({}, val2);
3214
- } else if (isArray$r(val2)) {
3215
- result[key] = val2.slice();
3216
- } else {
3217
- result[key] = val2;
3218
- }
3219
- }
3220
- __name(assignValue2, "assignValue");
3221
- for (var i = 0, l2 = arguments.length; i < l2; i++) {
3222
- forEach$5(arguments[i], assignValue2);
3223
- }
3224
- return result;
3225
- }
3226
- __name(merge$4, "merge$4");
3227
- function extend$2(a2, b3, thisArg) {
3228
- forEach$5(b3, /* @__PURE__ */ __name(function assignValue2(val2, key) {
3229
- if (thisArg && typeof val2 === "function") {
3230
- a2[key] = bind$4(val2, thisArg);
3231
- } else {
3232
- a2[key] = val2;
3233
- }
3234
- }, "assignValue"));
3235
- return a2;
3236
- }
3237
- __name(extend$2, "extend$2");
3238
- function stripBOM(content2) {
3239
- if (content2.charCodeAt(0) === 65279) {
3240
- content2 = content2.slice(1);
3241
- }
3242
- return content2;
3243
- }
3244
- __name(stripBOM, "stripBOM");
3245
- var utils$g = {
3246
- isArray: isArray$r,
3247
- isArrayBuffer,
3248
- isBuffer: isBuffer$a,
3249
- isFormData,
3250
- isArrayBufferView,
3251
- isString: isString$3,
3252
- isNumber: isNumber$6,
3253
- isObject: isObject$h,
3254
- isPlainObject: isPlainObject$6,
3255
- isUndefined: isUndefined$1,
3256
- isDate: isDate$2,
3257
- isFile,
3258
- isBlob,
3259
- isFunction: isFunction$8,
3260
- isStream,
3261
- isURLSearchParams,
3262
- isStandardBrowserEnv,
3263
- forEach: forEach$5,
3264
- merge: merge$4,
3265
- extend: extend$2,
3266
- trim: trim$1,
3267
- stripBOM
3268
- };
3269
- var utils$f = utils$g;
3270
- function encode$1(val2) {
3271
- return encodeURIComponent(val2).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
3272
- }
3273
- __name(encode$1, "encode$1");
3274
- var buildURL$1 = /* @__PURE__ */ __name(function buildURL(url, params, paramsSerializer) {
3275
- if (!params) {
3276
- return url;
3277
- }
3278
- var serializedParams;
3279
- if (paramsSerializer) {
3280
- serializedParams = paramsSerializer(params);
3281
- } else if (utils$f.isURLSearchParams(params)) {
3282
- serializedParams = params.toString();
3283
- } else {
3284
- var parts2 = [];
3285
- utils$f.forEach(params, /* @__PURE__ */ __name(function serialize2(val2, key) {
3286
- if (val2 === null || typeof val2 === "undefined") {
3287
- return;
3288
- }
3289
- if (utils$f.isArray(val2)) {
3290
- key = key + "[]";
3291
- } else {
3292
- val2 = [val2];
3293
- }
3294
- utils$f.forEach(val2, /* @__PURE__ */ __name(function parseValue2(v2) {
3295
- if (utils$f.isDate(v2)) {
3296
- v2 = v2.toISOString();
3297
- } else if (utils$f.isObject(v2)) {
3298
- v2 = JSON.stringify(v2);
3299
- }
3300
- parts2.push(encode$1(key) + "=" + encode$1(v2));
3301
- }, "parseValue"));
3302
- }, "serialize"));
3303
- serializedParams = parts2.join("&");
3304
- }
3305
- if (serializedParams) {
3306
- var hashmarkIndex = url.indexOf("#");
3307
- if (hashmarkIndex !== -1) {
3308
- url = url.slice(0, hashmarkIndex);
3309
- }
3310
- url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams;
3311
- }
3312
- return url;
3313
- }, "buildURL");
3314
- var utils$e = utils$g;
3315
- function InterceptorManager$1() {
3316
- this.handlers = [];
3317
- }
3318
- __name(InterceptorManager$1, "InterceptorManager$1");
3319
- InterceptorManager$1.prototype.use = /* @__PURE__ */ __name(function use(fulfilled, rejected, options) {
3320
- this.handlers.push({
3321
- fulfilled,
3322
- rejected,
3323
- synchronous: options ? options.synchronous : false,
3324
- runWhen: options ? options.runWhen : null
3325
- });
3326
- return this.handlers.length - 1;
3327
- }, "use");
3328
- InterceptorManager$1.prototype.eject = /* @__PURE__ */ __name(function eject(id2) {
3329
- if (this.handlers[id2]) {
3330
- this.handlers[id2] = null;
3331
- }
3332
- }, "eject");
3333
- InterceptorManager$1.prototype.forEach = /* @__PURE__ */ __name(function forEach(fn4) {
3334
- utils$e.forEach(this.handlers, /* @__PURE__ */ __name(function forEachHandler(h2) {
3335
- if (h2 !== null) {
3336
- fn4(h2);
3337
- }
3338
- }, "forEachHandler"));
3339
- }, "forEach");
3340
- var InterceptorManager_1 = InterceptorManager$1;
3341
- var utils$d = utils$g;
3342
- var normalizeHeaderName$1 = /* @__PURE__ */ __name(function normalizeHeaderName(headers, normalizedName) {
3343
- utils$d.forEach(headers, /* @__PURE__ */ __name(function processHeader(value, name2) {
3344
- if (name2 !== normalizedName && name2.toUpperCase() === normalizedName.toUpperCase()) {
3345
- headers[normalizedName] = value;
3346
- delete headers[name2];
3347
- }
3348
- }, "processHeader"));
3349
- }, "normalizeHeaderName");
3350
- var enhanceError$1 = /* @__PURE__ */ __name(function enhanceError(error, config, code2, request2, response) {
3351
- error.config = config;
3352
- if (code2) {
3353
- error.code = code2;
3354
- }
3355
- error.request = request2;
3356
- error.response = response;
3357
- error.isAxiosError = true;
3358
- error.toJSON = /* @__PURE__ */ __name(function toJSON2() {
3359
- return {
3360
- // Standard
3361
- message: this.message,
3362
- name: this.name,
3363
- // Microsoft
3364
- description: this.description,
3365
- number: this.number,
3366
- // Mozilla
3367
- fileName: this.fileName,
3368
- lineNumber: this.lineNumber,
3369
- columnNumber: this.columnNumber,
3370
- stack: this.stack,
3371
- // Axios
3372
- config: this.config,
3373
- code: this.code
3374
- };
3375
- }, "toJSON");
3376
- return error;
3377
- }, "enhanceError");
3378
- var createError;
3379
- var hasRequiredCreateError;
3380
- function requireCreateError() {
3381
- if (hasRequiredCreateError)
3382
- return createError;
3383
- hasRequiredCreateError = 1;
3384
- var enhanceError3 = enhanceError$1;
3385
- createError = /* @__PURE__ */ __name(function createError2(message, config, code2, request2, response) {
3386
- var error = new Error(message);
3387
- return enhanceError3(error, config, code2, request2, response);
3388
- }, "createError");
3389
- return createError;
3390
- }
3391
- __name(requireCreateError, "requireCreateError");
3392
- var settle;
3393
- var hasRequiredSettle;
3394
- function requireSettle() {
3395
- if (hasRequiredSettle)
3396
- return settle;
3397
- hasRequiredSettle = 1;
3398
- var createError2 = requireCreateError();
3399
- settle = /* @__PURE__ */ __name(function settle2(resolve, reject, response) {
3400
- var validateStatus2 = response.config.validateStatus;
3401
- if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
3402
- resolve(response);
3403
- } else {
3404
- reject(createError2(
3405
- "Request failed with status code " + response.status,
3406
- response.config,
3407
- null,
3408
- response.request,
3409
- response
3410
- ));
3411
- }
3412
- }, "settle");
3413
- return settle;
3414
- }
3415
- __name(requireSettle, "requireSettle");
3416
- var cookies;
3417
- var hasRequiredCookies;
3418
- function requireCookies() {
3419
- if (hasRequiredCookies)
3420
- return cookies;
3421
- hasRequiredCookies = 1;
3422
- var utils2 = utils$g;
3423
- cookies = utils2.isStandardBrowserEnv() ? (
3424
- // Standard browser envs support document.cookie
3425
- (/* @__PURE__ */ __name(function standardBrowserEnv() {
3426
- return {
3427
- write: /* @__PURE__ */ __name(function write2(name2, value, expires, path2, domain2, secure) {
3428
- var cookie = [];
3429
- cookie.push(name2 + "=" + encodeURIComponent(value));
3430
- if (utils2.isNumber(expires)) {
3431
- cookie.push("expires=" + new Date(expires).toGMTString());
3432
- }
3433
- if (utils2.isString(path2)) {
3434
- cookie.push("path=" + path2);
3435
- }
3436
- if (utils2.isString(domain2)) {
3437
- cookie.push("domain=" + domain2);
3438
- }
3439
- if (secure === true) {
3440
- cookie.push("secure");
3441
- }
3442
- document.cookie = cookie.join("; ");
3443
- }, "write"),
3444
- read: /* @__PURE__ */ __name(function read2(name2) {
3445
- var match2 = document.cookie.match(new RegExp("(^|;\\s*)(" + name2 + ")=([^;]*)"));
3446
- return match2 ? decodeURIComponent(match2[3]) : null;
3447
- }, "read"),
3448
- remove: /* @__PURE__ */ __name(function remove3(name2) {
3449
- this.write(name2, "", Date.now() - 864e5);
3450
- }, "remove")
3451
- };
3452
- }, "standardBrowserEnv"))()
3453
- ) : (
3454
- // Non standard browser env (web workers, react-native) lack needed support.
3455
- (/* @__PURE__ */ __name(function nonStandardBrowserEnv() {
3456
- return {
3457
- write: /* @__PURE__ */ __name(function write2() {
3458
- }, "write"),
3459
- read: /* @__PURE__ */ __name(function read2() {
3460
- return null;
3461
- }, "read"),
3462
- remove: /* @__PURE__ */ __name(function remove3() {
3463
- }, "remove")
3464
- };
3465
- }, "nonStandardBrowserEnv"))()
3466
- );
3467
- return cookies;
3468
- }
3469
- __name(requireCookies, "requireCookies");
3470
- var isAbsoluteURL;
3471
- var hasRequiredIsAbsoluteURL;
3472
- function requireIsAbsoluteURL() {
3473
- if (hasRequiredIsAbsoluteURL)
3474
- return isAbsoluteURL;
3475
- hasRequiredIsAbsoluteURL = 1;
3476
- isAbsoluteURL = /* @__PURE__ */ __name(function isAbsoluteURL2(url) {
3477
- return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
3478
- }, "isAbsoluteURL");
3479
- return isAbsoluteURL;
3480
- }
3481
- __name(requireIsAbsoluteURL, "requireIsAbsoluteURL");
3482
- var combineURLs;
3483
- var hasRequiredCombineURLs;
3484
- function requireCombineURLs() {
3485
- if (hasRequiredCombineURLs)
3486
- return combineURLs;
3487
- hasRequiredCombineURLs = 1;
3488
- combineURLs = /* @__PURE__ */ __name(function combineURLs2(baseURL, relativeURL) {
3489
- return relativeURL ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
3490
- }, "combineURLs");
3491
- return combineURLs;
3492
- }
3493
- __name(requireCombineURLs, "requireCombineURLs");
3494
- var buildFullPath;
3495
- var hasRequiredBuildFullPath;
3496
- function requireBuildFullPath() {
3497
- if (hasRequiredBuildFullPath)
3498
- return buildFullPath;
3499
- hasRequiredBuildFullPath = 1;
3500
- var isAbsoluteURL2 = requireIsAbsoluteURL();
3501
- var combineURLs2 = requireCombineURLs();
3502
- buildFullPath = /* @__PURE__ */ __name(function buildFullPath2(baseURL, requestedURL) {
3503
- if (baseURL && !isAbsoluteURL2(requestedURL)) {
3504
- return combineURLs2(baseURL, requestedURL);
3505
- }
3506
- return requestedURL;
3507
- }, "buildFullPath");
3508
- return buildFullPath;
3509
- }
3510
- __name(requireBuildFullPath, "requireBuildFullPath");
3511
- var parseHeaders;
3512
- var hasRequiredParseHeaders;
3513
- function requireParseHeaders() {
3514
- if (hasRequiredParseHeaders)
3515
- return parseHeaders;
3516
- hasRequiredParseHeaders = 1;
3517
- var utils2 = utils$g;
3518
- var ignoreDuplicateOf = [
3519
- "age",
3520
- "authorization",
3521
- "content-length",
3522
- "content-type",
3523
- "etag",
3524
- "expires",
3525
- "from",
3526
- "host",
3527
- "if-modified-since",
3528
- "if-unmodified-since",
3529
- "last-modified",
3530
- "location",
3531
- "max-forwards",
3532
- "proxy-authorization",
3533
- "referer",
3534
- "retry-after",
3535
- "user-agent"
3536
- ];
3537
- parseHeaders = /* @__PURE__ */ __name(function parseHeaders2(headers) {
3538
- var parsed = {};
3539
- var key;
3540
- var val2;
3541
- var i;
3542
- if (!headers) {
3543
- return parsed;
3544
- }
3545
- utils2.forEach(headers.split("\n"), /* @__PURE__ */ __name(function parser(line) {
3546
- i = line.indexOf(":");
3547
- key = utils2.trim(line.substr(0, i)).toLowerCase();
3548
- val2 = utils2.trim(line.substr(i + 1));
3549
- if (key) {
3550
- if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
3551
- return;
3552
- }
3553
- if (key === "set-cookie") {
3554
- parsed[key] = (parsed[key] ? parsed[key] : []).concat([val2]);
3555
- } else {
3556
- parsed[key] = parsed[key] ? parsed[key] + ", " + val2 : val2;
3557
- }
3558
- }
3559
- }, "parser"));
3560
- return parsed;
3561
- }, "parseHeaders");
3562
- return parseHeaders;
3563
- }
3564
- __name(requireParseHeaders, "requireParseHeaders");
3565
- var isURLSameOrigin;
3566
- var hasRequiredIsURLSameOrigin;
3567
- function requireIsURLSameOrigin() {
3568
- if (hasRequiredIsURLSameOrigin)
3569
- return isURLSameOrigin;
3570
- hasRequiredIsURLSameOrigin = 1;
3571
- var utils2 = utils$g;
3572
- isURLSameOrigin = utils2.isStandardBrowserEnv() ? (
3573
- // Standard browser envs have full support of the APIs needed to test
3574
- // whether the request URL is of the same origin as current location.
3575
- (/* @__PURE__ */ __name(function standardBrowserEnv() {
3576
- var msie = /(msie|trident)/i.test(navigator.userAgent);
3577
- var urlParsingNode = document.createElement("a");
3578
- var originURL;
3579
- function resolveURL(url) {
3580
- var href = url;
3581
- if (msie) {
3582
- urlParsingNode.setAttribute("href", href);
3583
- href = urlParsingNode.href;
3584
- }
3585
- urlParsingNode.setAttribute("href", href);
3586
- return {
3587
- href: urlParsingNode.href,
3588
- protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, "") : "",
3589
- host: urlParsingNode.host,
3590
- search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, "") : "",
3591
- hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, "") : "",
3592
- hostname: urlParsingNode.hostname,
3593
- port: urlParsingNode.port,
3594
- pathname: urlParsingNode.pathname.charAt(0) === "/" ? urlParsingNode.pathname : "/" + urlParsingNode.pathname
3595
- };
3596
- }
3597
- __name(resolveURL, "resolveURL");
3598
- originURL = resolveURL(window.location.href);
3599
- return /* @__PURE__ */ __name(function isURLSameOrigin2(requestURL) {
3600
- var parsed = utils2.isString(requestURL) ? resolveURL(requestURL) : requestURL;
3601
- return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
3602
- }, "isURLSameOrigin");
3603
- }, "standardBrowserEnv"))()
3604
- ) : (
3605
- // Non standard browser envs (web workers, react-native) lack needed support.
3606
- (/* @__PURE__ */ __name(function nonStandardBrowserEnv() {
3607
- return /* @__PURE__ */ __name(function isURLSameOrigin2() {
3608
- return true;
3609
- }, "isURLSameOrigin");
3610
- }, "nonStandardBrowserEnv"))()
3611
- );
3612
- return isURLSameOrigin;
3613
- }
3614
- __name(requireIsURLSameOrigin, "requireIsURLSameOrigin");
3615
- var xhr;
3616
- var hasRequiredXhr;
3617
- function requireXhr() {
3618
- if (hasRequiredXhr)
3619
- return xhr;
3620
- hasRequiredXhr = 1;
3621
- var utils2 = utils$g;
3622
- var settle2 = requireSettle();
3623
- var cookies2 = requireCookies();
3624
- var buildURL3 = buildURL$1;
3625
- var buildFullPath2 = requireBuildFullPath();
3626
- var parseHeaders2 = requireParseHeaders();
3627
- var isURLSameOrigin2 = requireIsURLSameOrigin();
3628
- var createError2 = requireCreateError();
3629
- xhr = /* @__PURE__ */ __name(function xhrAdapter(config) {
3630
- return new Promise(/* @__PURE__ */ __name(function dispatchXhrRequest(resolve, reject) {
3631
- var requestData = config.data;
3632
- var requestHeaders = config.headers;
3633
- var responseType = config.responseType;
3634
- if (utils2.isFormData(requestData)) {
3635
- delete requestHeaders["Content-Type"];
3636
- }
3637
- var request2 = new XMLHttpRequest();
3638
- if (config.auth) {
3639
- var username = config.auth.username || "";
3640
- var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : "";
3641
- requestHeaders.Authorization = "Basic " + btoa(username + ":" + password);
3642
- }
3643
- var fullPath = buildFullPath2(config.baseURL, config.url);
3644
- request2.open(config.method.toUpperCase(), buildURL3(fullPath, config.params, config.paramsSerializer), true);
3645
- request2.timeout = config.timeout;
3646
- function onloadend() {
3647
- if (!request2) {
3648
- return;
3649
- }
3650
- var responseHeaders = "getAllResponseHeaders" in request2 ? parseHeaders2(request2.getAllResponseHeaders()) : null;
3651
- var responseData = !responseType || responseType === "text" || responseType === "json" ? request2.responseText : request2.response;
3652
- var response = {
3653
- data: responseData,
3654
- status: request2.status,
3655
- statusText: request2.statusText,
3656
- headers: responseHeaders,
3657
- config,
3658
- request: request2
3659
- };
3660
- settle2(resolve, reject, response);
3661
- request2 = null;
3662
- }
3663
- __name(onloadend, "onloadend");
3664
- if ("onloadend" in request2) {
3665
- request2.onloadend = onloadend;
3666
- } else {
3667
- request2.onreadystatechange = /* @__PURE__ */ __name(function handleLoad() {
3668
- if (!request2 || request2.readyState !== 4) {
3669
- return;
3670
- }
3671
- if (request2.status === 0 && !(request2.responseURL && request2.responseURL.indexOf("file:") === 0)) {
3672
- return;
3673
- }
3674
- setTimeout(onloadend);
3675
- }, "handleLoad");
3676
- }
3677
- request2.onabort = /* @__PURE__ */ __name(function handleAbort() {
3678
- if (!request2) {
3679
- return;
3680
- }
3681
- reject(createError2("Request aborted", config, "ECONNABORTED", request2));
3682
- request2 = null;
3683
- }, "handleAbort");
3684
- request2.onerror = /* @__PURE__ */ __name(function handleError() {
3685
- reject(createError2("Network Error", config, null, request2));
3686
- request2 = null;
3687
- }, "handleError");
3688
- request2.ontimeout = /* @__PURE__ */ __name(function handleTimeout() {
3689
- var timeoutErrorMessage = "timeout of " + config.timeout + "ms exceeded";
3690
- if (config.timeoutErrorMessage) {
3691
- timeoutErrorMessage = config.timeoutErrorMessage;
3692
- }
3693
- reject(createError2(
3694
- timeoutErrorMessage,
3695
- config,
3696
- config.transitional && config.transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
3697
- request2
3698
- ));
3699
- request2 = null;
3700
- }, "handleTimeout");
3701
- if (utils2.isStandardBrowserEnv()) {
3702
- var xsrfValue = (config.withCredentials || isURLSameOrigin2(fullPath)) && config.xsrfCookieName ? cookies2.read(config.xsrfCookieName) : void 0;
3703
- if (xsrfValue) {
3704
- requestHeaders[config.xsrfHeaderName] = xsrfValue;
3705
- }
3706
- }
3707
- if ("setRequestHeader" in request2) {
3708
- utils2.forEach(requestHeaders, /* @__PURE__ */ __name(function setRequestHeader(val2, key) {
3709
- if (typeof requestData === "undefined" && key.toLowerCase() === "content-type") {
3710
- delete requestHeaders[key];
3711
- } else {
3712
- request2.setRequestHeader(key, val2);
3713
- }
3714
- }, "setRequestHeader"));
3715
- }
3716
- if (!utils2.isUndefined(config.withCredentials)) {
3717
- request2.withCredentials = !!config.withCredentials;
3718
- }
3719
- if (responseType && responseType !== "json") {
3720
- request2.responseType = config.responseType;
3721
- }
3722
- if (typeof config.onDownloadProgress === "function") {
3723
- request2.addEventListener("progress", config.onDownloadProgress);
3724
- }
3725
- if (typeof config.onUploadProgress === "function" && request2.upload) {
3726
- request2.upload.addEventListener("progress", config.onUploadProgress);
3727
- }
3728
- if (config.cancelToken) {
3729
- config.cancelToken.promise.then(/* @__PURE__ */ __name(function onCanceled(cancel) {
3730
- if (!request2) {
3731
- return;
3732
- }
3733
- request2.abort();
3734
- reject(cancel);
3735
- request2 = null;
3736
- }, "onCanceled"));
3737
- }
3738
- if (!requestData) {
3739
- requestData = null;
3740
- }
3741
- request2.send(requestData);
3742
- }, "dispatchXhrRequest"));
3743
- }, "xhrAdapter");
3744
- return xhr;
3745
- }
3746
- __name(requireXhr, "requireXhr");
3747
- var utils$c = utils$g;
3748
- var normalizeHeaderName2 = normalizeHeaderName$1;
3749
- var enhanceError2 = enhanceError$1;
3750
- var DEFAULT_CONTENT_TYPE = {
3751
- "Content-Type": "application/x-www-form-urlencoded"
3752
- };
3753
- function setContentTypeIfUnset(headers, value) {
3754
- if (!utils$c.isUndefined(headers) && utils$c.isUndefined(headers["Content-Type"])) {
3755
- headers["Content-Type"] = value;
3756
- }
3757
- }
3758
- __name(setContentTypeIfUnset, "setContentTypeIfUnset");
3759
- function getDefaultAdapter() {
3760
- var adapter;
3761
- if (typeof XMLHttpRequest !== "undefined") {
3762
- adapter = requireXhr();
3763
- } else if (typeof process !== "undefined" && Object.prototype.toString.call(process) === "[object process]") {
3764
- adapter = requireXhr();
3765
- }
3766
- return adapter;
3767
- }
3768
- __name(getDefaultAdapter, "getDefaultAdapter");
3769
- function stringifySafely(rawValue, parser, encoder) {
3770
- if (utils$c.isString(rawValue)) {
3771
- try {
3772
- (parser || JSON.parse)(rawValue);
3773
- return utils$c.trim(rawValue);
3774
- } catch (e2) {
3775
- if (e2.name !== "SyntaxError") {
3776
- throw e2;
3777
- }
3778
- }
3779
- }
3780
- return (encoder || JSON.stringify)(rawValue);
3781
- }
3782
- __name(stringifySafely, "stringifySafely");
3783
- var defaults$6 = {
3784
- transitional: {
3785
- silentJSONParsing: true,
3786
- forcedJSONParsing: true,
3787
- clarifyTimeoutError: false
3788
- },
3789
- adapter: getDefaultAdapter(),
3790
- transformRequest: [/* @__PURE__ */ __name(function transformRequest(data, headers) {
3791
- normalizeHeaderName2(headers, "Accept");
3792
- normalizeHeaderName2(headers, "Content-Type");
3793
- if (utils$c.isFormData(data) || utils$c.isArrayBuffer(data) || utils$c.isBuffer(data) || utils$c.isStream(data) || utils$c.isFile(data) || utils$c.isBlob(data)) {
3794
- return data;
3795
- }
3796
- if (utils$c.isArrayBufferView(data)) {
3797
- return data.buffer;
3798
- }
3799
- if (utils$c.isURLSearchParams(data)) {
3800
- setContentTypeIfUnset(headers, "application/x-www-form-urlencoded;charset=utf-8");
3801
- return data.toString();
3802
- }
3803
- if (utils$c.isObject(data) || headers && headers["Content-Type"] === "application/json") {
3804
- setContentTypeIfUnset(headers, "application/json");
3805
- return stringifySafely(data);
3806
- }
3807
- return data;
3808
- }, "transformRequest")],
3809
- transformResponse: [/* @__PURE__ */ __name(function transformResponse(data) {
3810
- var transitional2 = this.transitional;
3811
- var silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
3812
- var forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
3813
- var strictJSONParsing = !silentJSONParsing && this.responseType === "json";
3814
- if (strictJSONParsing || forcedJSONParsing && utils$c.isString(data) && data.length) {
3815
- try {
3816
- return JSON.parse(data);
3817
- } catch (e2) {
3818
- if (strictJSONParsing) {
3819
- if (e2.name === "SyntaxError") {
3820
- throw enhanceError2(e2, this, "E_JSON_PARSE");
3821
- }
3822
- throw e2;
3823
- }
3824
- }
3825
- }
3826
- return data;
3827
- }, "transformResponse")],
3828
- /**
3829
- * A timeout in milliseconds to abort a request. If set to 0 (default) a
3830
- * timeout is not created.
3831
- */
3832
- timeout: 0,
3833
- xsrfCookieName: "XSRF-TOKEN",
3834
- xsrfHeaderName: "X-XSRF-TOKEN",
3835
- maxContentLength: -1,
3836
- maxBodyLength: -1,
3837
- validateStatus: /* @__PURE__ */ __name(function validateStatus(status) {
3838
- return status >= 200 && status < 300;
3839
- }, "validateStatus")
3840
- };
3841
- defaults$6.headers = {
3842
- common: {
3843
- "Accept": "application/json, text/plain, */*"
3844
- }
3845
- };
3846
- utils$c.forEach(["delete", "get", "head"], /* @__PURE__ */ __name(function forEachMethodNoData(method) {
3847
- defaults$6.headers[method] = {};
3848
- }, "forEachMethodNoData"));
3849
- utils$c.forEach(["post", "put", "patch"], /* @__PURE__ */ __name(function forEachMethodWithData(method) {
3850
- defaults$6.headers[method] = utils$c.merge(DEFAULT_CONTENT_TYPE);
3851
- }, "forEachMethodWithData"));
3852
- var defaults_1 = defaults$6;
3853
- var utils$b = utils$g;
3854
- var defaults$5 = defaults_1;
3855
- var transformData$1 = /* @__PURE__ */ __name(function transformData(data, headers, fns) {
3856
- var context = this || defaults$5;
3857
- utils$b.forEach(fns, /* @__PURE__ */ __name(function transform2(fn4) {
3858
- data = fn4.call(context, data, headers);
3859
- }, "transform"));
3860
- return data;
3861
- }, "transformData");
3862
- var isCancel$1;
3863
- var hasRequiredIsCancel;
3864
- function requireIsCancel() {
3865
- if (hasRequiredIsCancel)
3866
- return isCancel$1;
3867
- hasRequiredIsCancel = 1;
3868
- isCancel$1 = /* @__PURE__ */ __name(function isCancel2(value) {
3869
- return !!(value && value.__CANCEL__);
3870
- }, "isCancel");
3871
- return isCancel$1;
3872
- }
3873
- __name(requireIsCancel, "requireIsCancel");
3874
- var utils$a = utils$g;
3875
- var transformData2 = transformData$1;
3876
- var isCancel = requireIsCancel();
3877
- var defaults$4 = defaults_1;
3878
- function throwIfCancellationRequested(config) {
3879
- if (config.cancelToken) {
3880
- config.cancelToken.throwIfRequested();
3881
- }
3882
- }
3883
- __name(throwIfCancellationRequested, "throwIfCancellationRequested");
3884
- var dispatchRequest$1 = /* @__PURE__ */ __name(function dispatchRequest(config) {
3885
- throwIfCancellationRequested(config);
3886
- config.headers = config.headers || {};
3887
- config.data = transformData2.call(
3888
- config,
3889
- config.data,
3890
- config.headers,
3891
- config.transformRequest
3892
- );
3893
- config.headers = utils$a.merge(
3894
- config.headers.common || {},
3895
- config.headers[config.method] || {},
3896
- config.headers
3897
- );
3898
- utils$a.forEach(
3899
- ["delete", "get", "head", "post", "put", "patch", "common"],
3900
- /* @__PURE__ */ __name(function cleanHeaderConfig(method) {
3901
- delete config.headers[method];
3902
- }, "cleanHeaderConfig")
3903
- );
3904
- var adapter = config.adapter || defaults$4.adapter;
3905
- return adapter(config).then(/* @__PURE__ */ __name(function onAdapterResolution(response) {
3906
- throwIfCancellationRequested(config);
3907
- response.data = transformData2.call(
3908
- config,
3909
- response.data,
3910
- response.headers,
3911
- config.transformResponse
3912
- );
3913
- return response;
3914
- }, "onAdapterResolution"), /* @__PURE__ */ __name(function onAdapterRejection(reason) {
3915
- if (!isCancel(reason)) {
3916
- throwIfCancellationRequested(config);
3917
- if (reason && reason.response) {
3918
- reason.response.data = transformData2.call(
3919
- config,
3920
- reason.response.data,
3921
- reason.response.headers,
3922
- config.transformResponse
3923
- );
3924
- }
3925
- }
3926
- return Promise.reject(reason);
3927
- }, "onAdapterRejection"));
3928
- }, "dispatchRequest");
3929
- var utils$9 = utils$g;
3930
- var mergeConfig$2 = /* @__PURE__ */ __name(function mergeConfig(config1, config2) {
3931
- config2 = config2 || {};
3932
- var config = {};
3933
- var valueFromConfig2Keys = ["url", "method", "data"];
3934
- var mergeDeepPropertiesKeys = ["headers", "auth", "proxy", "params"];
3935
- var defaultToConfig2Keys = [
3936
- "baseURL",
3937
- "transformRequest",
3938
- "transformResponse",
3939
- "paramsSerializer",
3940
- "timeout",
3941
- "timeoutMessage",
3942
- "withCredentials",
3943
- "adapter",
3944
- "responseType",
3945
- "xsrfCookieName",
3946
- "xsrfHeaderName",
3947
- "onUploadProgress",
3948
- "onDownloadProgress",
3949
- "decompress",
3950
- "maxContentLength",
3951
- "maxBodyLength",
3952
- "maxRedirects",
3953
- "transport",
3954
- "httpAgent",
3955
- "httpsAgent",
3956
- "cancelToken",
3957
- "socketPath",
3958
- "responseEncoding"
3959
- ];
3960
- var directMergeKeys = ["validateStatus"];
3961
- function getMergedValue(target, source) {
3962
- if (utils$9.isPlainObject(target) && utils$9.isPlainObject(source)) {
3963
- return utils$9.merge(target, source);
3964
- } else if (utils$9.isPlainObject(source)) {
3965
- return utils$9.merge({}, source);
3966
- } else if (utils$9.isArray(source)) {
3967
- return source.slice();
3968
- }
3969
- return source;
3970
- }
3971
- __name(getMergedValue, "getMergedValue");
3972
- function mergeDeepProperties(prop2) {
3973
- if (!utils$9.isUndefined(config2[prop2])) {
3974
- config[prop2] = getMergedValue(config1[prop2], config2[prop2]);
3975
- } else if (!utils$9.isUndefined(config1[prop2])) {
3976
- config[prop2] = getMergedValue(void 0, config1[prop2]);
3977
- }
3978
- }
3979
- __name(mergeDeepProperties, "mergeDeepProperties");
3980
- utils$9.forEach(valueFromConfig2Keys, /* @__PURE__ */ __name(function valueFromConfig2(prop2) {
3981
- if (!utils$9.isUndefined(config2[prop2])) {
3982
- config[prop2] = getMergedValue(void 0, config2[prop2]);
3983
- }
3984
- }, "valueFromConfig2"));
3985
- utils$9.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);
3986
- utils$9.forEach(defaultToConfig2Keys, /* @__PURE__ */ __name(function defaultToConfig2(prop2) {
3987
- if (!utils$9.isUndefined(config2[prop2])) {
3988
- config[prop2] = getMergedValue(void 0, config2[prop2]);
3989
- } else if (!utils$9.isUndefined(config1[prop2])) {
3990
- config[prop2] = getMergedValue(void 0, config1[prop2]);
3991
- }
3992
- }, "defaultToConfig2"));
3993
- utils$9.forEach(directMergeKeys, /* @__PURE__ */ __name(function merge3(prop2) {
3994
- if (prop2 in config2) {
3995
- config[prop2] = getMergedValue(config1[prop2], config2[prop2]);
3996
- } else if (prop2 in config1) {
3997
- config[prop2] = getMergedValue(void 0, config1[prop2]);
3998
- }
3999
- }, "merge"));
4000
- var axiosKeys = valueFromConfig2Keys.concat(mergeDeepPropertiesKeys).concat(defaultToConfig2Keys).concat(directMergeKeys);
4001
- var otherKeys = Object.keys(config1).concat(Object.keys(config2)).filter(/* @__PURE__ */ __name(function filterAxiosKeys(key) {
4002
- return axiosKeys.indexOf(key) === -1;
4003
- }, "filterAxiosKeys"));
4004
- utils$9.forEach(otherKeys, mergeDeepProperties);
4005
- return config;
4006
- }, "mergeConfig");
4007
- const name$3 = "axios";
4008
- const version$2 = "0.21.4";
4009
- const description$1 = "Promise based HTTP client for the browser and node.js";
4010
- const main$1 = "index.js";
4011
- const scripts = {
4012
- test: "grunt test",
4013
- start: "node ./sandbox/server.js",
4014
- build: "NODE_ENV=production grunt build",
4015
- preversion: "npm test",
4016
- version: "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",
4017
- postversion: "git push && git push --tags",
4018
- examples: "node ./examples/server.js",
4019
- coveralls: "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
4020
- fix: "eslint --fix lib/**/*.js"
4021
- };
4022
- const repository = {
4023
- type: "git",
4024
- url: "https://github.com/axios/axios.git"
4025
- };
4026
- const keywords = [
4027
- "xhr",
4028
- "http",
4029
- "ajax",
4030
- "promise",
4031
- "node"
4032
- ];
4033
- const author = "Matt Zabriskie";
4034
- const license = "MIT";
4035
- const bugs = {
4036
- url: "https://github.com/axios/axios/issues"
4037
- };
4038
- const homepage = "https://axios-http.com";
4039
- const devDependencies = {
4040
- coveralls: "^3.0.0",
4041
- "es6-promise": "^4.2.4",
4042
- grunt: "^1.3.0",
4043
- "grunt-banner": "^0.6.0",
4044
- "grunt-cli": "^1.2.0",
4045
- "grunt-contrib-clean": "^1.1.0",
4046
- "grunt-contrib-watch": "^1.0.0",
4047
- "grunt-eslint": "^23.0.0",
4048
- "grunt-karma": "^4.0.0",
4049
- "grunt-mocha-test": "^0.13.3",
4050
- "grunt-ts": "^6.0.0-beta.19",
4051
- "grunt-webpack": "^4.0.2",
4052
- "istanbul-instrumenter-loader": "^1.0.0",
4053
- "jasmine-core": "^2.4.1",
4054
- karma: "^6.3.2",
4055
- "karma-chrome-launcher": "^3.1.0",
4056
- "karma-firefox-launcher": "^2.1.0",
4057
- "karma-jasmine": "^1.1.1",
4058
- "karma-jasmine-ajax": "^0.1.13",
4059
- "karma-safari-launcher": "^1.0.0",
4060
- "karma-sauce-launcher": "^4.3.6",
4061
- "karma-sinon": "^1.0.5",
4062
- "karma-sourcemap-loader": "^0.3.8",
4063
- "karma-webpack": "^4.0.2",
4064
- "load-grunt-tasks": "^3.5.2",
4065
- minimist: "^1.2.0",
4066
- mocha: "^8.2.1",
4067
- sinon: "^4.5.0",
4068
- "terser-webpack-plugin": "^4.2.3",
4069
- typescript: "^4.0.5",
4070
- "url-search-params": "^0.10.0",
4071
- webpack: "^4.44.2",
4072
- "webpack-dev-server": "^3.11.0"
4073
- };
4074
- const browser$2 = {
4075
- "./lib/adapters/http.js": "./lib/adapters/xhr.js"
4076
- };
4077
- const jsdelivr = "dist/axios.min.js";
4078
- const unpkg = "dist/axios.min.js";
4079
- const typings = "./index.d.ts";
4080
- const dependencies = {
4081
- "follow-redirects": "^1.14.0"
4082
- };
4083
- const bundlesize = [
4084
- {
4085
- path: "./dist/axios.min.js",
4086
- threshold: "5kB"
4087
- }
4088
- ];
4089
- const require$$0$1 = {
4090
- name: name$3,
4091
- version: version$2,
4092
- description: description$1,
4093
- main: main$1,
4094
- scripts,
4095
- repository,
4096
- keywords,
4097
- author,
4098
- license,
4099
- bugs,
4100
- homepage,
4101
- devDependencies,
4102
- browser: browser$2,
4103
- jsdelivr,
4104
- unpkg,
4105
- typings,
4106
- dependencies,
4107
- bundlesize
4108
- };
4109
- var pkg = require$$0$1;
4110
- var validators$1 = {};
4111
- ["object", "boolean", "number", "function", "string", "symbol"].forEach(function(type, i) {
4112
- validators$1[type] = /* @__PURE__ */ __name(function validator2(thing) {
4113
- return typeof thing === type || "a" + (i < 1 ? "n " : " ") + type;
4114
- }, "validator");
4115
- });
4116
- var deprecatedWarnings = {};
4117
- var currentVerArr = pkg.version.split(".");
4118
- function isOlderVersion(version2, thanVersion) {
4119
- var pkgVersionArr = thanVersion ? thanVersion.split(".") : currentVerArr;
4120
- var destVer = version2.split(".");
4121
- for (var i = 0; i < 3; i++) {
4122
- if (pkgVersionArr[i] > destVer[i]) {
4123
- return true;
4124
- } else if (pkgVersionArr[i] < destVer[i]) {
4125
- return false;
4126
- }
4127
- }
4128
- return false;
4129
- }
4130
- __name(isOlderVersion, "isOlderVersion");
4131
- validators$1.transitional = /* @__PURE__ */ __name(function transitional(validator2, version2, message) {
4132
- var isDeprecated = version2 && isOlderVersion(version2);
4133
- function formatMessage(opt, desc) {
4134
- return "[Axios v" + pkg.version + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
4135
- }
4136
- __name(formatMessage, "formatMessage");
4137
- return function(value, opt, opts2) {
4138
- if (validator2 === false) {
4139
- throw new Error(formatMessage(opt, " has been removed in " + version2));
4140
- }
4141
- if (isDeprecated && !deprecatedWarnings[opt]) {
4142
- deprecatedWarnings[opt] = true;
4143
- console.warn(
4144
- formatMessage(
4145
- opt,
4146
- " has been deprecated since v" + version2 + " and will be removed in the near future"
4147
- )
4148
- );
4149
- }
4150
- return validator2 ? validator2(value, opt, opts2) : true;
4151
- };
4152
- }, "transitional");
4153
- function assertOptions(options, schema2, allowUnknown) {
4154
- if (typeof options !== "object") {
4155
- throw new TypeError("options must be an object");
4156
- }
4157
- var keys5 = Object.keys(options);
4158
- var i = keys5.length;
4159
- while (i-- > 0) {
4160
- var opt = keys5[i];
4161
- var validator2 = schema2[opt];
4162
- if (validator2) {
4163
- var value = options[opt];
4164
- var result = value === void 0 || validator2(value, opt, options);
4165
- if (result !== true) {
4166
- throw new TypeError("option " + opt + " must be " + result);
4167
- }
4168
- continue;
4169
- }
4170
- if (allowUnknown !== true) {
4171
- throw Error("Unknown option " + opt);
4172
- }
4173
- }
4174
- }
4175
- __name(assertOptions, "assertOptions");
4176
- var validator$4 = {
4177
- isOlderVersion,
4178
- assertOptions,
4179
- validators: validators$1
4180
- };
4181
- var utils$8 = utils$g;
4182
- var buildURL2 = buildURL$1;
4183
- var InterceptorManager = InterceptorManager_1;
4184
- var dispatchRequest2 = dispatchRequest$1;
4185
- var mergeConfig$1 = mergeConfig$2;
4186
- var validator$3 = validator$4;
4187
- var validators = validator$3.validators;
4188
- function Axios$1(instanceConfig) {
4189
- this.defaults = instanceConfig;
4190
- this.interceptors = {
4191
- request: new InterceptorManager(),
4192
- response: new InterceptorManager()
4193
- };
4194
- }
4195
- __name(Axios$1, "Axios$1");
4196
- Axios$1.prototype.request = /* @__PURE__ */ __name(function request(config) {
4197
- if (typeof config === "string") {
4198
- config = arguments[1] || {};
4199
- config.url = arguments[0];
4200
- } else {
4201
- config = config || {};
4202
- }
4203
- config = mergeConfig$1(this.defaults, config);
4204
- if (config.method) {
4205
- config.method = config.method.toLowerCase();
4206
- } else if (this.defaults.method) {
4207
- config.method = this.defaults.method.toLowerCase();
4208
- } else {
4209
- config.method = "get";
4210
- }
4211
- var transitional2 = config.transitional;
4212
- if (transitional2 !== void 0) {
4213
- validator$3.assertOptions(transitional2, {
4214
- silentJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
4215
- forcedJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
4216
- clarifyTimeoutError: validators.transitional(validators.boolean, "1.0.0")
4217
- }, false);
4218
- }
4219
- var requestInterceptorChain = [];
4220
- var synchronousRequestInterceptors = true;
4221
- this.interceptors.request.forEach(/* @__PURE__ */ __name(function unshiftRequestInterceptors(interceptor) {
4222
- if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config) === false) {
4223
- return;
4224
- }
4225
- synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
4226
- requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
4227
- }, "unshiftRequestInterceptors"));
4228
- var responseInterceptorChain = [];
4229
- this.interceptors.response.forEach(/* @__PURE__ */ __name(function pushResponseInterceptors(interceptor) {
4230
- responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
4231
- }, "pushResponseInterceptors"));
4232
- var promise;
4233
- if (!synchronousRequestInterceptors) {
4234
- var chain2 = [dispatchRequest2, void 0];
4235
- Array.prototype.unshift.apply(chain2, requestInterceptorChain);
4236
- chain2 = chain2.concat(responseInterceptorChain);
4237
- promise = Promise.resolve(config);
4238
- while (chain2.length) {
4239
- promise = promise.then(chain2.shift(), chain2.shift());
4240
- }
4241
- return promise;
4242
- }
4243
- var newConfig = config;
4244
- while (requestInterceptorChain.length) {
4245
- var onFulfilled = requestInterceptorChain.shift();
4246
- var onRejected = requestInterceptorChain.shift();
4247
- try {
4248
- newConfig = onFulfilled(newConfig);
4249
- } catch (error) {
4250
- onRejected(error);
4251
- break;
4252
- }
4253
- }
4254
- try {
4255
- promise = dispatchRequest2(newConfig);
4256
- } catch (error) {
4257
- return Promise.reject(error);
4258
- }
4259
- while (responseInterceptorChain.length) {
4260
- promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
4261
- }
4262
- return promise;
4263
- }, "request");
4264
- Axios$1.prototype.getUri = /* @__PURE__ */ __name(function getUri(config) {
4265
- config = mergeConfig$1(this.defaults, config);
4266
- return buildURL2(config.url, config.params, config.paramsSerializer).replace(/^\?/, "");
4267
- }, "getUri");
4268
- utils$8.forEach(["delete", "get", "head", "options"], /* @__PURE__ */ __name(function forEachMethodNoData2(method) {
4269
- Axios$1.prototype[method] = function(url, config) {
4270
- return this.request(mergeConfig$1(config || {}, {
4271
- method,
4272
- url,
4273
- data: (config || {}).data
4274
- }));
4275
- };
4276
- }, "forEachMethodNoData"));
4277
- utils$8.forEach(["post", "put", "patch"], /* @__PURE__ */ __name(function forEachMethodWithData2(method) {
4278
- Axios$1.prototype[method] = function(url, data, config) {
4279
- return this.request(mergeConfig$1(config || {}, {
4280
- method,
4281
- url,
4282
- data
4283
- }));
4284
- };
4285
- }, "forEachMethodWithData"));
4286
- var Axios_1 = Axios$1;
4287
- var Cancel_1;
4288
- var hasRequiredCancel;
4289
- function requireCancel() {
4290
- if (hasRequiredCancel)
4291
- return Cancel_1;
4292
- hasRequiredCancel = 1;
4293
- function Cancel(message) {
4294
- this.message = message;
4295
- }
4296
- __name(Cancel, "Cancel");
4297
- Cancel.prototype.toString = /* @__PURE__ */ __name(function toString4() {
4298
- return "Cancel" + (this.message ? ": " + this.message : "");
4299
- }, "toString");
4300
- Cancel.prototype.__CANCEL__ = true;
4301
- Cancel_1 = Cancel;
4302
- return Cancel_1;
4303
- }
4304
- __name(requireCancel, "requireCancel");
4305
- var CancelToken_1;
4306
- var hasRequiredCancelToken;
4307
- function requireCancelToken() {
4308
- if (hasRequiredCancelToken)
4309
- return CancelToken_1;
4310
- hasRequiredCancelToken = 1;
4311
- var Cancel = requireCancel();
4312
- function CancelToken(executor) {
4313
- if (typeof executor !== "function") {
4314
- throw new TypeError("executor must be a function.");
4315
- }
4316
- var resolvePromise;
4317
- this.promise = new Promise(/* @__PURE__ */ __name(function promiseExecutor(resolve) {
4318
- resolvePromise = resolve;
4319
- }, "promiseExecutor"));
4320
- var token = this;
4321
- executor(/* @__PURE__ */ __name(function cancel(message) {
4322
- if (token.reason) {
4323
- return;
4324
- }
4325
- token.reason = new Cancel(message);
4326
- resolvePromise(token.reason);
4327
- }, "cancel"));
4328
- }
4329
- __name(CancelToken, "CancelToken");
4330
- CancelToken.prototype.throwIfRequested = /* @__PURE__ */ __name(function throwIfRequested() {
4331
- if (this.reason) {
4332
- throw this.reason;
4333
- }
4334
- }, "throwIfRequested");
4335
- CancelToken.source = /* @__PURE__ */ __name(function source() {
4336
- var cancel;
4337
- var token = new CancelToken(/* @__PURE__ */ __name(function executor(c2) {
4338
- cancel = c2;
4339
- }, "executor"));
4340
- return {
4341
- token,
4342
- cancel
4343
- };
4344
- }, "source");
4345
- CancelToken_1 = CancelToken;
4346
- return CancelToken_1;
4347
- }
4348
- __name(requireCancelToken, "requireCancelToken");
4349
- var spread;
4350
- var hasRequiredSpread;
4351
- function requireSpread() {
4352
- if (hasRequiredSpread)
4353
- return spread;
4354
- hasRequiredSpread = 1;
4355
- spread = /* @__PURE__ */ __name(function spread2(callback2) {
4356
- return /* @__PURE__ */ __name(function wrap2(arr) {
4357
- return callback2.apply(null, arr);
4358
- }, "wrap");
4359
- }, "spread");
4360
- return spread;
4361
- }
4362
- __name(requireSpread, "requireSpread");
4363
- var isAxiosError;
4364
- var hasRequiredIsAxiosError;
4365
- function requireIsAxiosError() {
4366
- if (hasRequiredIsAxiosError)
4367
- return isAxiosError;
4368
- hasRequiredIsAxiosError = 1;
4369
- isAxiosError = /* @__PURE__ */ __name(function isAxiosError2(payload) {
4370
- return typeof payload === "object" && payload.isAxiosError === true;
4371
- }, "isAxiosError");
4372
- return isAxiosError;
4373
- }
4374
- __name(requireIsAxiosError, "requireIsAxiosError");
4375
- var utils$7 = utils$g;
4376
- var bind$3 = bind$5;
4377
- var Axios = Axios_1;
4378
- var mergeConfig2 = mergeConfig$2;
4379
- var defaults$3 = defaults_1;
4380
- function createInstance(defaultConfig2) {
4381
- var context = new Axios(defaultConfig2);
4382
- var instance = bind$3(Axios.prototype.request, context);
4383
- utils$7.extend(instance, Axios.prototype, context);
4384
- utils$7.extend(instance, context);
4385
- return instance;
4386
- }
4387
- __name(createInstance, "createInstance");
4388
- var axios$2 = createInstance(defaults$3);
4389
- axios$2.Axios = Axios;
4390
- axios$2.create = /* @__PURE__ */ __name(function create(instanceConfig) {
4391
- return createInstance(mergeConfig2(axios$2.defaults, instanceConfig));
4392
- }, "create");
4393
- axios$2.Cancel = requireCancel();
4394
- axios$2.CancelToken = requireCancelToken();
4395
- axios$2.isCancel = requireIsCancel();
4396
- axios$2.all = /* @__PURE__ */ __name(function all(promises) {
4397
- return Promise.all(promises);
4398
- }, "all");
4399
- axios$2.spread = requireSpread();
4400
- axios$2.isAxiosError = requireIsAxiosError();
4401
- axios$3.exports = axios$2;
4402
- axios$3.exports.default = axios$2;
4403
- var axiosExports = axios$3.exports;
4404
- var axios = axiosExports;
4405
- const axios$1 = /* @__PURE__ */ getDefaultExportFromCjs(axios);
4406
3090
  var propTypes$1 = { exports: {} };
4407
3091
  var ReactPropTypesSecret$1 = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
4408
3092
  var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
@@ -9534,7 +8218,7 @@ var ObservableMap = /* @__PURE__ */ function() {
9534
8218
  _proto[_Symbol$iterator] = function() {
9535
8219
  return this.entries();
9536
8220
  };
9537
- _proto.forEach = /* @__PURE__ */ __name(function forEach4(callback2, thisArg) {
8221
+ _proto.forEach = /* @__PURE__ */ __name(function forEach3(callback2, thisArg) {
9538
8222
  for (var _iterator3 = _createForOfIteratorHelperLoose$5(this), _step; !(_step = _iterator3()).done; ) {
9539
8223
  var _step$value = _step.value, key = _step$value[0], value = _step$value[1];
9540
8224
  callback2.call(thisArg, value, key, this);
@@ -9728,7 +8412,7 @@ var ObservableSet = /* @__PURE__ */ function() {
9728
8412
  });
9729
8413
  });
9730
8414
  }, "clear");
9731
- _proto.forEach = /* @__PURE__ */ __name(function forEach4(callbackFn, thisArg) {
8415
+ _proto.forEach = /* @__PURE__ */ __name(function forEach3(callbackFn, thisArg) {
9732
8416
  for (var _iterator22 = _createForOfIteratorHelperLoose$5(this), _step2; !(_step2 = _iterator22()).done; ) {
9733
8417
  var value = _step2.value;
9734
8418
  callbackFn.call(thisArg, value, value, this);
@@ -15737,11 +14421,11 @@ lodash.exports;
15737
14421
  return baseFlatten2(map3(collection, iteratee2), depth);
15738
14422
  }
15739
14423
  __name(flatMapDepth, "flatMapDepth");
15740
- function forEach4(collection, iteratee2) {
14424
+ function forEach3(collection, iteratee2) {
15741
14425
  var func = isArray4(collection) ? arrayEach2 : baseEach2;
15742
14426
  return func(collection, getIteratee(iteratee2, 3));
15743
14427
  }
15744
- __name(forEach4, "forEach");
14428
+ __name(forEach3, "forEach");
15745
14429
  function forEachRight(collection, iteratee2) {
15746
14430
  var func = isArray4(collection) ? arrayEachRight : baseEachRight;
15747
14431
  return func(collection, getIteratee(iteratee2, 3));
@@ -15905,10 +14589,10 @@ lodash.exports;
15905
14589
  };
15906
14590
  }
15907
14591
  __name(before, "before");
15908
- var bind4 = baseRest2(function(func, thisArg, partials) {
14592
+ var bind3 = baseRest2(function(func, thisArg, partials) {
15909
14593
  var bitmask = WRAP_BIND_FLAG;
15910
14594
  if (partials.length) {
15911
- var holders = replaceHolders(partials, getHolder(bind4));
14595
+ var holders = replaceHolders(partials, getHolder(bind3));
15912
14596
  bitmask |= WRAP_PARTIAL_FLAG;
15913
14597
  }
15914
14598
  return createWrap(func, bitmask, thisArg, partials, holders);
@@ -16108,7 +14792,7 @@ lodash.exports;
16108
14792
  return baseRest2(func, start2);
16109
14793
  }
16110
14794
  __name(rest, "rest");
16111
- function spread2(func, start2) {
14795
+ function spread(func, start2) {
16112
14796
  if (typeof func != "function") {
16113
14797
  throw new TypeError2(FUNC_ERROR_TEXT2);
16114
14798
  }
@@ -16121,7 +14805,7 @@ lodash.exports;
16121
14805
  return apply2(func, this, otherArgs);
16122
14806
  });
16123
14807
  }
16124
- __name(spread2, "spread");
14808
+ __name(spread, "spread");
16125
14809
  function throttle2(func, wait, options) {
16126
14810
  var leading = true, trailing = true;
16127
14811
  if (typeof func != "function") {
@@ -16190,7 +14874,7 @@ lodash.exports;
16190
14874
  return isObjectLike2(value) && hasOwnProperty2.call(value, "callee") && !propertyIsEnumerable3.call(value, "callee");
16191
14875
  };
16192
14876
  var isArray4 = Array2.isArray;
16193
- var isArrayBuffer2 = nodeIsArrayBuffer ? baseUnary2(nodeIsArrayBuffer) : baseIsArrayBuffer;
14877
+ var isArrayBuffer = nodeIsArrayBuffer ? baseUnary2(nodeIsArrayBuffer) : baseIsArrayBuffer;
16194
14878
  function isArrayLike2(value) {
16195
14879
  return value != null && isLength2(value.length) && !isFunction2(value);
16196
14880
  }
@@ -16441,11 +15125,11 @@ lodash.exports;
16441
15125
  copyObject2(source, keys5(source), object3, customizer);
16442
15126
  });
16443
15127
  var at = flatRest2(baseAt);
16444
- function create7(prototype, properties) {
15128
+ function create6(prototype, properties) {
16445
15129
  var result2 = baseCreate2(prototype);
16446
15130
  return properties == null ? result2 : baseAssign2(result2, properties);
16447
15131
  }
16448
- __name(create7, "create");
15132
+ __name(create6, "create");
16449
15133
  var defaults2 = baseRest2(function(object3, sources) {
16450
15134
  object3 = Object2(object3);
16451
15135
  var index2 = -1;
@@ -17031,7 +15715,7 @@ lodash.exports;
17031
15715
  var bindAll = flatRest2(function(object3, methodNames) {
17032
15716
  arrayEach2(methodNames, function(key) {
17033
15717
  key = toKey2(key);
17034
- baseAssignValue2(object3, key, bind4(object3[key], object3));
15718
+ baseAssignValue2(object3, key, bind3(object3[key], object3));
17035
15719
  });
17036
15720
  return object3;
17037
15721
  });
@@ -17258,7 +15942,7 @@ lodash.exports;
17258
15942
  lodash2.assignWith = assignWith;
17259
15943
  lodash2.at = at;
17260
15944
  lodash2.before = before;
17261
- lodash2.bind = bind4;
15945
+ lodash2.bind = bind3;
17262
15946
  lodash2.bindAll = bindAll;
17263
15947
  lodash2.bindKey = bindKey;
17264
15948
  lodash2.castArray = castArray;
@@ -17270,7 +15954,7 @@ lodash.exports;
17270
15954
  lodash2.conforms = conforms;
17271
15955
  lodash2.constant = constant2;
17272
15956
  lodash2.countBy = countBy;
17273
- lodash2.create = create7;
15957
+ lodash2.create = create6;
17274
15958
  lodash2.curry = curry;
17275
15959
  lodash2.curryRight = curryRight;
17276
15960
  lodash2.debounce = debounce2;
@@ -17360,7 +16044,7 @@ lodash.exports;
17360
16044
  lodash2.sortedUniq = sortedUniq;
17361
16045
  lodash2.sortedUniqBy = sortedUniqBy;
17362
16046
  lodash2.split = split;
17363
- lodash2.spread = spread2;
16047
+ lodash2.spread = spread;
17364
16048
  lodash2.tail = tail;
17365
16049
  lodash2.take = take;
17366
16050
  lodash2.takeRight = takeRight2;
@@ -17430,7 +16114,7 @@ lodash.exports;
17430
16114
  lodash2.findLastIndex = findLastIndex;
17431
16115
  lodash2.findLastKey = findLastKey;
17432
16116
  lodash2.floor = floor2;
17433
- lodash2.forEach = forEach4;
16117
+ lodash2.forEach = forEach3;
17434
16118
  lodash2.forEachRight = forEachRight;
17435
16119
  lodash2.forIn = forIn;
17436
16120
  lodash2.forInRight = forInRight;
@@ -17449,7 +16133,7 @@ lodash.exports;
17449
16133
  lodash2.invoke = invoke;
17450
16134
  lodash2.isArguments = isArguments5;
17451
16135
  lodash2.isArray = isArray4;
17452
- lodash2.isArrayBuffer = isArrayBuffer2;
16136
+ lodash2.isArrayBuffer = isArrayBuffer;
17453
16137
  lodash2.isArrayLike = isArrayLike2;
17454
16138
  lodash2.isArrayLikeObject = isArrayLikeObject2;
17455
16139
  lodash2.isBoolean = isBoolean2;
@@ -17553,7 +16237,7 @@ lodash.exports;
17553
16237
  lodash2.uniqueId = uniqueId;
17554
16238
  lodash2.upperCase = upperCase;
17555
16239
  lodash2.upperFirst = upperFirst;
17556
- lodash2.each = forEach4;
16240
+ lodash2.each = forEach3;
17557
16241
  lodash2.eachRight = forEachRight;
17558
16242
  lodash2.first = head;
17559
16243
  mixin(lodash2, function() {
@@ -18370,25 +17054,16 @@ var toString$6 = {}.toString;
18370
17054
  var _cof = /* @__PURE__ */ __name(function(it) {
18371
17055
  return toString$6.call(it).slice(8, -1);
18372
17056
  }, "_cof");
18373
- var _iobject;
18374
- var hasRequired_iobject;
18375
- function require_iobject() {
18376
- if (hasRequired_iobject)
18377
- return _iobject;
18378
- hasRequired_iobject = 1;
18379
- var cof2 = _cof;
18380
- _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
18381
- return cof2(it) == "String" ? it.split("") : Object(it);
18382
- };
18383
- return _iobject;
18384
- }
18385
- __name(require_iobject, "require_iobject");
17057
+ var cof$2 = _cof;
17058
+ var _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
17059
+ return cof$2(it) == "String" ? it.split("") : Object(it);
17060
+ };
18386
17061
  var _defined = /* @__PURE__ */ __name(function(it) {
18387
17062
  if (it == void 0)
18388
17063
  throw TypeError("Can't call method on " + it);
18389
17064
  return it;
18390
17065
  }, "_defined");
18391
- var IObject = require_iobject();
17066
+ var IObject = _iobject;
18392
17067
  var defined$2 = _defined;
18393
17068
  var _toIobject = /* @__PURE__ */ __name(function(it) {
18394
17069
  return IObject(defined$2(it));
@@ -18509,7 +17184,7 @@ function require_objectAssign() {
18509
17184
  var gOPS2 = _objectGops;
18510
17185
  var pIE2 = require_objectPie();
18511
17186
  var toObject2 = _toObject;
18512
- var IObject2 = require_iobject();
17187
+ var IObject2 = _iobject;
18513
17188
  var $assign = Object.assign;
18514
17189
  _objectAssign = !$assign || _fails(function() {
18515
17190
  var A2 = {};
@@ -18619,7 +17294,7 @@ var createDict = /* @__PURE__ */ __name(function() {
18619
17294
  delete createDict[PROTOTYPE$1][enumBugKeys[i]];
18620
17295
  return createDict();
18621
17296
  }, "createDict");
18622
- var _objectCreate = Object.create || /* @__PURE__ */ __name(function create2(O2, Properties2) {
17297
+ var _objectCreate = Object.create || /* @__PURE__ */ __name(function create(O2, Properties2) {
18623
17298
  var result;
18624
17299
  if (O2 !== null) {
18625
17300
  Empty[PROTOTYPE$1] = anObject$3(O2);
@@ -19099,23 +17774,23 @@ var setMeta = /* @__PURE__ */ __name(function(it) {
19099
17774
  // weak collections IDs
19100
17775
  } });
19101
17776
  }, "setMeta");
19102
- var fastKey = /* @__PURE__ */ __name(function(it, create7) {
17777
+ var fastKey = /* @__PURE__ */ __name(function(it, create6) {
19103
17778
  if (!isObject$c(it))
19104
17779
  return typeof it == "symbol" ? it : (typeof it == "string" ? "S" : "P") + it;
19105
17780
  if (!has$a(it, META$1)) {
19106
17781
  if (!isExtensible(it))
19107
17782
  return "F";
19108
- if (!create7)
17783
+ if (!create6)
19109
17784
  return "E";
19110
17785
  setMeta(it);
19111
17786
  }
19112
17787
  return it[META$1].i;
19113
17788
  }, "fastKey");
19114
- var getWeak = /* @__PURE__ */ __name(function(it, create7) {
17789
+ var getWeak = /* @__PURE__ */ __name(function(it, create6) {
19115
17790
  if (!has$a(it, META$1)) {
19116
17791
  if (!isExtensible(it))
19117
17792
  return true;
19118
- if (!create7)
17793
+ if (!create6)
19119
17794
  return false;
19120
17795
  setMeta(it);
19121
17796
  }
@@ -19301,7 +17976,7 @@ var $defineProperties = /* @__PURE__ */ __name(function defineProperties2(it, P2
19301
17976
  $defineProperty$1(it, key = keys5[i++], P2[key]);
19302
17977
  return it;
19303
17978
  }, "defineProperties");
19304
- var $create = /* @__PURE__ */ __name(function create3(it, P2) {
17979
+ var $create = /* @__PURE__ */ __name(function create2(it, P2) {
19305
17980
  return P2 === void 0 ? _create$1(it) : $defineProperties(_create$1(it), P2);
19306
17981
  }, "create");
19307
17982
  var $propertyIsEnumerable = /* @__PURE__ */ __name(function propertyIsEnumerable(key) {
@@ -19533,7 +18208,7 @@ var setPrototypeOf = { "default": setPrototypeOf$1, __esModule: true };
19533
18208
  var $export = _export;
19534
18209
  $export($export.S, "Object", { create: _objectCreate });
19535
18210
  var $Object$1 = _coreExports.Object;
19536
- var create$3 = /* @__PURE__ */ __name(function create4(P2, D2) {
18211
+ var create$3 = /* @__PURE__ */ __name(function create3(P2, D2) {
19537
18212
  return $Object$1.create(P2, D2);
19538
18213
  }, "create");
19539
18214
  var create$2 = { "default": create$3, __esModule: true };
@@ -26971,7 +25646,7 @@ function isPlainObject$3(value) {
26971
25646
  __name(isPlainObject$3, "isPlainObject$3");
26972
25647
  function trough() {
26973
25648
  const fns = [];
26974
- const pipeline = { run: run3, use: use2 };
25649
+ const pipeline = { run: run3, use };
26975
25650
  return pipeline;
26976
25651
  function run3(...values2) {
26977
25652
  let middlewareIndex = -1;
@@ -27002,7 +25677,7 @@ function trough() {
27002
25677
  __name(next, "next");
27003
25678
  }
27004
25679
  __name(run3, "run");
27005
- function use2(middelware) {
25680
+ function use(middelware) {
27006
25681
  if (typeof middelware !== "function") {
27007
25682
  throw new TypeError(
27008
25683
  "Expected `middelware` to be a function, not " + middelware
@@ -27011,7 +25686,7 @@ function trough() {
27011
25686
  fns.push(middelware);
27012
25687
  return pipeline;
27013
25688
  }
27014
- __name(use2, "use");
25689
+ __name(use, "use");
27015
25690
  }
27016
25691
  __name(trough, "trough");
27017
25692
  function wrap$1(middleware, callback2) {
@@ -27072,7 +25747,7 @@ function base() {
27072
25747
  processor.Compiler = void 0;
27073
25748
  processor.freeze = freeze;
27074
25749
  processor.attachers = attachers;
27075
- processor.use = use2;
25750
+ processor.use = use;
27076
25751
  processor.parse = parse3;
27077
25752
  processor.stringify = stringify4;
27078
25753
  processor.run = run3;
@@ -27129,7 +25804,7 @@ function base() {
27129
25804
  return processor;
27130
25805
  }
27131
25806
  __name(freeze, "freeze");
27132
- function use2(value, ...options) {
25807
+ function use(value, ...options) {
27133
25808
  let settings;
27134
25809
  assertUnfrozen("use", frozen);
27135
25810
  if (value === null || value === void 0)
@@ -27205,7 +25880,7 @@ function base() {
27205
25880
  }
27206
25881
  __name(addPlugin, "addPlugin");
27207
25882
  }
27208
- __name(use2, "use");
25883
+ __name(use, "use");
27209
25884
  function parse3(doc) {
27210
25885
  processor.freeze();
27211
25886
  const file = vfile(doc);
@@ -27472,19 +26147,19 @@ function push$1(list2, items) {
27472
26147
  __name(push$1, "push$1");
27473
26148
  const hasOwnProperty$j = {}.hasOwnProperty;
27474
26149
  function combineExtensions(extensions) {
27475
- const all3 = {};
26150
+ const all2 = {};
27476
26151
  let index2 = -1;
27477
26152
  while (++index2 < extensions.length) {
27478
- syntaxExtension(all3, extensions[index2]);
26153
+ syntaxExtension(all2, extensions[index2]);
27479
26154
  }
27480
- return all3;
26155
+ return all2;
27481
26156
  }
27482
26157
  __name(combineExtensions, "combineExtensions");
27483
- function syntaxExtension(all3, extension2) {
26158
+ function syntaxExtension(all2, extension2) {
27484
26159
  let hook;
27485
26160
  for (hook in extension2) {
27486
- const maybe = hasOwnProperty$j.call(all3, hook) ? all3[hook] : void 0;
27487
- const left2 = maybe || (all3[hook] = {});
26161
+ const maybe = hasOwnProperty$j.call(all2, hook) ? all2[hook] : void 0;
26162
+ const left2 = maybe || (all2[hook] = {});
27488
26163
  const right2 = extension2[hook];
27489
26164
  let code2;
27490
26165
  if (right2) {
@@ -27885,7 +26560,7 @@ function resolveAllAttention(events2, context) {
27885
26560
  let text2;
27886
26561
  let openingSequence;
27887
26562
  let closingSequence;
27888
- let use2;
26563
+ let use;
27889
26564
  let nextEvents;
27890
26565
  let offset4;
27891
26566
  while (++index2 < events2.length) {
@@ -27897,28 +26572,28 @@ function resolveAllAttention(events2, context) {
27897
26572
  if ((events2[open2][1]._close || events2[index2][1]._open) && (events2[index2][1].end.offset - events2[index2][1].start.offset) % 3 && !((events2[open2][1].end.offset - events2[open2][1].start.offset + events2[index2][1].end.offset - events2[index2][1].start.offset) % 3)) {
27898
26573
  continue;
27899
26574
  }
27900
- use2 = events2[open2][1].end.offset - events2[open2][1].start.offset > 1 && events2[index2][1].end.offset - events2[index2][1].start.offset > 1 ? 2 : 1;
26575
+ use = events2[open2][1].end.offset - events2[open2][1].start.offset > 1 && events2[index2][1].end.offset - events2[index2][1].start.offset > 1 ? 2 : 1;
27901
26576
  const start2 = Object.assign({}, events2[open2][1].end);
27902
26577
  const end2 = Object.assign({}, events2[index2][1].start);
27903
- movePoint(start2, -use2);
27904
- movePoint(end2, use2);
26578
+ movePoint(start2, -use);
26579
+ movePoint(end2, use);
27905
26580
  openingSequence = {
27906
- type: use2 > 1 ? "strongSequence" : "emphasisSequence",
26581
+ type: use > 1 ? "strongSequence" : "emphasisSequence",
27907
26582
  start: start2,
27908
26583
  end: Object.assign({}, events2[open2][1].end)
27909
26584
  };
27910
26585
  closingSequence = {
27911
- type: use2 > 1 ? "strongSequence" : "emphasisSequence",
26586
+ type: use > 1 ? "strongSequence" : "emphasisSequence",
27912
26587
  start: Object.assign({}, events2[index2][1].start),
27913
26588
  end: end2
27914
26589
  };
27915
26590
  text2 = {
27916
- type: use2 > 1 ? "strongText" : "emphasisText",
26591
+ type: use > 1 ? "strongText" : "emphasisText",
27917
26592
  start: Object.assign({}, events2[open2][1].end),
27918
26593
  end: Object.assign({}, events2[index2][1].start)
27919
26594
  };
27920
26595
  group = {
27921
- type: use2 > 1 ? "strong" : "emphasis",
26596
+ type: use > 1 ? "strong" : "emphasis",
27922
26597
  start: Object.assign({}, openingSequence.start),
27923
26598
  end: Object.assign({}, closingSequence.end)
27924
26599
  };
@@ -31268,12 +29943,12 @@ function createTokenizer(parser, initialize2, from3) {
31268
29943
  return start2;
31269
29944
  function start2(code2) {
31270
29945
  const def2 = code2 !== null && map3[code2];
31271
- const all3 = code2 !== null && map3.null;
29946
+ const all2 = code2 !== null && map3.null;
31272
29947
  const list2 = [
31273
29948
  // To do: add more extension tests.
31274
29949
  /* c8 ignore next 2 */
31275
29950
  ...Array.isArray(def2) ? def2 : def2 ? [def2] : [],
31276
- ...Array.isArray(all3) ? all3 : all3 ? [all3] : []
29951
+ ...Array.isArray(all2) ? all2 : all2 ? [all2] : []
31277
29952
  ];
31278
29953
  return handleListOfConstructs(list2)(code2);
31279
29954
  }
@@ -31528,21 +30203,21 @@ function parse$7(options) {
31528
30203
  defined: [],
31529
30204
  lazy: {},
31530
30205
  constructs: constructs2,
31531
- content: create7(content$1),
31532
- document: create7(document$2),
31533
- flow: create7(flow$1),
31534
- string: create7(string$1),
31535
- text: create7(text$3)
30206
+ content: create6(content$1),
30207
+ document: create6(document$2),
30208
+ flow: create6(flow$1),
30209
+ string: create6(string$1),
30210
+ text: create6(text$3)
31536
30211
  };
31537
30212
  return parser;
31538
- function create7(initial) {
30213
+ function create6(initial) {
31539
30214
  return creator;
31540
30215
  function creator(from3) {
31541
30216
  return createTokenizer(parser, initial, from3);
31542
30217
  }
31543
30218
  __name(creator, "creator");
31544
30219
  }
31545
- __name(create7, "create");
30220
+ __name(create6, "create");
31546
30221
  }
31547
30222
  __name(parse$7, "parse$7");
31548
30223
  const search$1 = /[\0\t\n\r]/g;
@@ -31953,10 +30628,10 @@ function compiler(options) {
31953
30628
  return data[key];
31954
30629
  }
31955
30630
  __name(getData, "getData");
31956
- function opener(create7, and) {
30631
+ function opener(create6, and) {
31957
30632
  return open2;
31958
30633
  function open2(token) {
31959
- enter2.call(this, create7(token), token);
30634
+ enter2.call(this, create6(token), token);
31960
30635
  if (and)
31961
30636
  and.call(this, token);
31962
30637
  }
@@ -32821,8 +31496,8 @@ function listLoose(node2) {
32821
31496
  }
32822
31497
  __name(listLoose, "listLoose");
32823
31498
  function listItemLoose(node2) {
32824
- const spread2 = node2.spread;
32825
- return spread2 === void 0 || spread2 === null ? node2.children.length > 1 : spread2;
31499
+ const spread = node2.spread;
31500
+ return spread === void 0 || spread === null ? node2.children.length > 1 : spread;
32826
31501
  }
32827
31502
  __name(listItemLoose, "listItemLoose");
32828
31503
  function list(state2, node2) {
@@ -33118,8 +31793,8 @@ function anyFactory(tests) {
33118
31793
  }
33119
31794
  __name(anyFactory, "anyFactory");
33120
31795
  function propsFactory(check2) {
33121
- return castFactory(all3);
33122
- function all3(node2) {
31796
+ return castFactory(all2);
31797
+ function all2(node2) {
33123
31798
  let key;
33124
31799
  for (key in check2) {
33125
31800
  if (node2[key] !== check2[key])
@@ -33127,7 +31802,7 @@ function propsFactory(check2) {
33127
31802
  }
33128
31803
  return true;
33129
31804
  }
33130
- __name(all3, "all");
31805
+ __name(all2, "all");
33131
31806
  }
33132
31807
  __name(propsFactory, "propsFactory");
33133
31808
  function typeFactory(check2) {
@@ -33378,7 +32053,7 @@ function createState(tree, options) {
33378
32053
  }
33379
32054
  __name(oneBound, "oneBound");
33380
32055
  function allBound(parent2) {
33381
- return all2(state2, parent2);
32056
+ return all(state2, parent2);
33382
32057
  }
33383
32058
  __name(allBound, "allBound");
33384
32059
  }
@@ -33425,7 +32100,7 @@ function one(state2, node2, parent2) {
33425
32100
  return state2.handlers[type](state2, node2, parent2);
33426
32101
  }
33427
32102
  if (state2.passThrough && state2.passThrough.includes(type)) {
33428
- return "children" in node2 ? __spreadProps(__spreadValues({}, node2), { children: all2(state2, node2) }) : node2;
32103
+ return "children" in node2 ? __spreadProps(__spreadValues({}, node2), { children: all(state2, node2) }) : node2;
33429
32104
  }
33430
32105
  if (state2.unknownHandler) {
33431
32106
  return state2.unknownHandler(state2, node2, parent2);
@@ -33433,7 +32108,7 @@ function one(state2, node2, parent2) {
33433
32108
  return defaultUnknownHandler(state2, node2);
33434
32109
  }
33435
32110
  __name(one, "one");
33436
- function all2(state2, parent2) {
32111
+ function all(state2, parent2) {
33437
32112
  const values2 = [];
33438
32113
  if ("children" in parent2) {
33439
32114
  const nodes = parent2.children;
@@ -33462,14 +32137,14 @@ function all2(state2, parent2) {
33462
32137
  }
33463
32138
  return values2;
33464
32139
  }
33465
- __name(all2, "all");
32140
+ __name(all, "all");
33466
32141
  function defaultUnknownHandler(state2, node2) {
33467
32142
  const data = node2.data || {};
33468
32143
  const result = "value" in node2 && !(own$4.call(data, "hProperties") || own$4.call(data, "hChildren")) ? { type: "text", value: node2.value } : {
33469
32144
  type: "element",
33470
32145
  tagName: "div",
33471
32146
  properties: {},
33472
- children: all2(state2, node2)
32147
+ children: all(state2, node2)
33473
32148
  };
33474
32149
  state2.patch(node2, result);
33475
32150
  return state2.applyData(node2, result);
@@ -40834,7 +39509,7 @@ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
40834
39509
  var slice$1 = Array.prototype.slice;
40835
39510
  var toStr$4 = Object.prototype.toString;
40836
39511
  var funcType = "[object Function]";
40837
- var implementation$8 = /* @__PURE__ */ __name(function bind2(that) {
39512
+ var implementation$8 = /* @__PURE__ */ __name(function bind(that) {
40838
39513
  var target = this;
40839
39514
  if (typeof target !== "function" || toStr$4.call(target) !== funcType) {
40840
39515
  throw new TypeError(ERROR_MESSAGE + target);
@@ -41178,11 +39853,11 @@ var getIntrinsic = /* @__PURE__ */ __name(function GetIntrinsic(name2, allowMiss
41178
39853
  }, "GetIntrinsic");
41179
39854
  var callBind$3 = { exports: {} };
41180
39855
  (function(module2) {
41181
- var bind4 = functionBind;
39856
+ var bind3 = functionBind;
41182
39857
  var GetIntrinsic3 = getIntrinsic;
41183
39858
  var $apply = GetIntrinsic3("%Function.prototype.apply%");
41184
39859
  var $call = GetIntrinsic3("%Function.prototype.call%");
41185
- var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) || bind4.call($call, $apply);
39860
+ var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) || bind3.call($call, $apply);
41186
39861
  var $gOPD2 = GetIntrinsic3("%Object.getOwnPropertyDescriptor%", true);
41187
39862
  var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true);
41188
39863
  var $max = GetIntrinsic3("%Math.max%");
@@ -41194,7 +39869,7 @@ var callBind$3 = { exports: {} };
41194
39869
  }
41195
39870
  }
41196
39871
  module2.exports = /* @__PURE__ */ __name(function callBind2(originalFunction) {
41197
- var func = $reflectApply(bind4, $call, arguments);
39872
+ var func = $reflectApply(bind3, $call, arguments);
41198
39873
  if ($gOPD2 && $defineProperty2) {
41199
39874
  var desc = $gOPD2(func, "length");
41200
39875
  if (desc.configurable) {
@@ -41208,7 +39883,7 @@ var callBind$3 = { exports: {} };
41208
39883
  return func;
41209
39884
  }, "callBind");
41210
39885
  var applyBind = /* @__PURE__ */ __name(function applyBind2() {
41211
- return $reflectApply(bind4, $apply, arguments);
39886
+ return $reflectApply(bind3, $apply, arguments);
41212
39887
  }, "applyBind");
41213
39888
  if ($defineProperty2) {
41214
39889
  $defineProperty2(module2.exports, "apply", { value: applyBind });
@@ -52894,8 +51569,8 @@ function useDeepCompareMemoize(value) {
52894
51569
  }, [signalRef.current]);
52895
51570
  }
52896
51571
  __name(useDeepCompareMemoize, "useDeepCompareMemoize");
52897
- function useDeepCompareEffect(callback2, dependencies2) {
52898
- return React$2.useEffect(callback2, useDeepCompareMemoize(dependencies2));
51572
+ function useDeepCompareEffect(callback2, dependencies) {
51573
+ return React$2.useEffect(callback2, useDeepCompareMemoize(dependencies));
52899
51574
  }
52900
51575
  __name(useDeepCompareEffect, "useDeepCompareEffect");
52901
51576
  const _TgSuggest = class _TgSuggest extends React__default$1.Component {
@@ -71673,8 +70348,6 @@ function UploaderInner({
71673
70348
  fileLimit,
71674
70349
  readBeforeUpload,
71675
70350
  //read the file using the browser's FileReader before passing it to onChange and/or uploading it
71676
- uploadInBulk,
71677
- //tnr: not yet implemented
71678
70351
  showUploadList = true,
71679
70352
  beforeUpload,
71680
70353
  fileList,
@@ -71698,8 +70371,7 @@ function UploaderInner({
71698
70371
  initializeForm,
71699
70372
  showFilesCount,
71700
70373
  threeDotMenuItems,
71701
- onPreviewClick,
71702
- axiosInstance = window.api || axios$1
70374
+ onPreviewClick
71703
70375
  }) {
71704
70376
  var _a2, _b2, _c, _d, _e, _f;
71705
70377
  const validateAgainstSchemaStore = useRef(new ValidateAgainstSchema());
@@ -71824,7 +70496,11 @@ function UploaderInner({
71824
70496
  }
71825
70497
  ];
71826
70498
  const mainExampleData = {};
71827
- const mainSchema = a2.validateAgainstSchema.fields.map((f2) => {
70499
+ const fieldsToUse = [
70500
+ ...validateAgainstSchema.fields,
70501
+ ...a2.exampleDownloadFields
70502
+ ];
70503
+ const mainSchema = fieldsToUse.map((f2) => {
71828
70504
  mainExampleData[f2.displayName || f2.path] = f2.example || f2.defaultValue;
71829
70505
  return {
71830
70506
  column: f2.displayName || f2.path,
@@ -71834,7 +70510,7 @@ function UploaderInner({
71834
70510
  };
71835
70511
  });
71836
70512
  const b3 = yield writeXlsxFile(
71837
- [[mainExampleData], a2.validateAgainstSchema.fields, helperText],
70513
+ [[mainExampleData], fieldsToUse, helperText],
71838
70514
  {
71839
70515
  headerStyle: {
71840
70516
  fontWeight: "bold"
@@ -71853,13 +70529,17 @@ function UploaderInner({
71853
70529
  exampleFile: () => {
71854
70530
  var _a3;
71855
70531
  const rows = [];
70532
+ const schemaToUse = [
70533
+ ...a2.validateAgainstSchema.fields,
70534
+ ...a2.validateAgainstSchema.exampleDownloadFields
70535
+ ];
71856
70536
  rows.push(
71857
- a2.validateAgainstSchema.fields.map((f2) => {
70537
+ schemaToUse.map((f2) => {
71858
70538
  return `${f2.displayName || f2.path}`;
71859
70539
  })
71860
70540
  );
71861
70541
  rows.push(
71862
- a2.validateAgainstSchema.fields.map((f2) => {
70542
+ schemaToUse.map((f2) => {
71863
70543
  return `${f2.example || f2.defaultValue || ""}`;
71864
70544
  })
71865
70545
  );
@@ -71903,45 +70583,45 @@ function UploaderInner({
71903
70583
  if (!keepGoing)
71904
70584
  return;
71905
70585
  if (action2) {
71906
- if (uploadInBulk)
71907
- ;
71908
- else {
71909
- const responses = [];
71910
- yield Promise.all(
71911
- acceptedFiles.map((fileToUpload) => {
71912
- const data = new FormData();
71913
- data.append("file", fileToUpload);
71914
- return axiosInstance.post(action2, data).then(function(res) {
71915
- responses.push(res.data && res.data[0]);
71916
- onFileSuccess(res.data[0]).then(() => {
71917
- cleanedFileList = cleanedFileList.map((file) => {
71918
- const fileToReturn = __spreadValues(__spreadValues({}, file), res.data[0]);
71919
- if (fileToReturn.id === fileToUpload.id) {
71920
- fileToReturn.loading = false;
71921
- }
71922
- return fileToReturn;
71923
- });
71924
- onChange(cleanedFileList);
71925
- });
71926
- }).catch(function(err2) {
71927
- console.error("Error uploading file:", err2);
71928
- responses.push(__spreadProps(__spreadValues({}, fileToUpload), {
71929
- error: err2 && err2.msg ? err2.msg : err2
71930
- }));
70586
+ const responses = [];
70587
+ yield Promise.all(
70588
+ acceptedFiles.map((fileToUpload) => __async(this, null, function* () {
70589
+ const data = new FormData();
70590
+ data.append("file", fileToUpload);
70591
+ try {
70592
+ const res = yield window.api ? window.api.post(action2, data) : fetch(action2, {
70593
+ method: "POST",
70594
+ body: data
70595
+ });
70596
+ responses.push(res.data && res.data[0]);
70597
+ onFileSuccess(res.data[0]).then(() => {
71931
70598
  cleanedFileList = cleanedFileList.map((file) => {
71932
- const fileToReturn = __spreadValues({}, file);
70599
+ const fileToReturn = __spreadValues(__spreadValues({}, file), res.data[0]);
71933
70600
  if (fileToReturn.id === fileToUpload.id) {
71934
70601
  fileToReturn.loading = false;
71935
- fileToReturn.error = true;
71936
70602
  }
71937
70603
  return fileToReturn;
71938
70604
  });
71939
70605
  onChange(cleanedFileList);
71940
70606
  });
71941
- })
71942
- );
71943
- onFieldSubmit(responses);
71944
- }
70607
+ } catch (err2) {
70608
+ console.error("Error uploading file:", err2);
70609
+ responses.push(__spreadProps(__spreadValues({}, fileToUpload), {
70610
+ error: err2 && err2.msg ? err2.msg : err2
70611
+ }));
70612
+ cleanedFileList = cleanedFileList.map((file) => {
70613
+ const fileToReturn = __spreadValues({}, file);
70614
+ if (fileToReturn.id === fileToUpload.id) {
70615
+ fileToReturn.loading = false;
70616
+ fileToReturn.error = true;
70617
+ }
70618
+ return fileToReturn;
70619
+ });
70620
+ onChange(cleanedFileList);
70621
+ }
70622
+ }))
70623
+ );
70624
+ onFieldSubmit(responses);
71945
70625
  } else {
71946
70626
  onChange(
71947
70627
  cleanedFileList.map(function(file) {
@@ -74681,7 +73361,7 @@ ObjectWithoutPrototypeCache.prototype.set = function(key, value) {
74681
73361
  this.cache[key] = value;
74682
73362
  };
74683
73363
  var cacheDefault = {
74684
- create: /* @__PURE__ */ __name(function create5() {
73364
+ create: /* @__PURE__ */ __name(function create4() {
74685
73365
  return new ObjectWithoutPrototypeCache();
74686
73366
  }, "create")
74687
73367
  };
@@ -83619,10 +82299,10 @@ __name(requireEmpty, "requireEmpty");
83619
82299
  return value;
83620
82300
  }
83621
82301
  __name(dateReviver, "dateReviver");
83622
- function create7(options) {
82302
+ function create6(options) {
83623
82303
  return new DiffPatcher(options);
83624
82304
  }
83625
- __name(create7, "create");
82305
+ __name(create6, "create");
83626
82306
  var defaultInstance$4 = void 0;
83627
82307
  function diff() {
83628
82308
  if (!defaultInstance$4) {
@@ -83662,7 +82342,7 @@ __name(requireEmpty, "requireEmpty");
83662
82342
  exports3.DiffPatcher = DiffPatcher;
83663
82343
  exports3.formatters = index2;
83664
82344
  exports3.console = console$1;
83665
- exports3.create = create7;
82345
+ exports3.create = create6;
83666
82346
  exports3.dateReviver = dateReviver;
83667
82347
  exports3.diff = diff;
83668
82348
  exports3.patch = patch2;
@@ -107257,7 +105937,7 @@ const reducer$1 = createReducer(
107257
105937
  const newPanels = removeItem(group, indexToClose);
107258
105938
  let mostRecentIndex = 0;
107259
105939
  newPanels.forEach((p2) => {
107260
- if (p2.lastActive > newPanels[mostRecentIndex].lastActive) {
105940
+ if ((p2.lastActive || 0) > (newPanels[mostRecentIndex].lastActive || 0)) {
107261
105941
  mostRecentIndex = newPanels.indexOf(p2);
107262
105942
  }
107263
105943
  });
@@ -107364,7 +106044,7 @@ const panelsShown = /* @__PURE__ */ __name((state2, action2) => {
107364
106044
  nextState.forEach((pg) => {
107365
106045
  pg.forEach((p2) => {
107366
106046
  if (p2.active) {
107367
- p2.lastActive = Date.now().toString();
106047
+ p2.lastActive = Date.now();
107368
106048
  }
107369
106049
  });
107370
106050
  });
@@ -109122,16 +107802,16 @@ function defaultMemoize(func, equalityCheckOrOptions) {
109122
107802
  }
109123
107803
  __name(defaultMemoize, "defaultMemoize");
109124
107804
  function getDependencies(funcs) {
109125
- var dependencies2 = Array.isArray(funcs[0]) ? funcs[0] : funcs;
109126
- if (!dependencies2.every(function(dep) {
107805
+ var dependencies = Array.isArray(funcs[0]) ? funcs[0] : funcs;
107806
+ if (!dependencies.every(function(dep) {
109127
107807
  return typeof dep === "function";
109128
107808
  })) {
109129
- var dependencyTypes = dependencies2.map(function(dep) {
107809
+ var dependencyTypes = dependencies.map(function(dep) {
109130
107810
  return typeof dep === "function" ? "function " + (dep.name || "unnamed") + "()" : typeof dep;
109131
107811
  }).join(", ");
109132
107812
  throw new Error("createSelector expects all input-selectors to be functions, but received the following types: [" + dependencyTypes + "]");
109133
107813
  }
109134
- return dependencies2;
107814
+ return dependencies;
109135
107815
  }
109136
107816
  __name(getDependencies, "getDependencies");
109137
107817
  function createSelectorCreator(memoize2) {
@@ -109157,16 +107837,16 @@ function createSelectorCreator(memoize2) {
109157
107837
  }
109158
107838
  var _directlyPassedOption = directlyPassedOptions, _directlyPassedOption2 = _directlyPassedOption.memoizeOptions, memoizeOptions = _directlyPassedOption2 === void 0 ? memoizeOptionsFromArgs : _directlyPassedOption2;
109159
107839
  var finalMemoizeOptions = Array.isArray(memoizeOptions) ? memoizeOptions : [memoizeOptions];
109160
- var dependencies2 = getDependencies(funcs);
107840
+ var dependencies = getDependencies(funcs);
109161
107841
  var memoizedResultFunc = memoize2.apply(void 0, [/* @__PURE__ */ __name(function recomputationWrapper() {
109162
107842
  _recomputations++;
109163
107843
  return resultFunc.apply(null, arguments);
109164
107844
  }, "recomputationWrapper")].concat(finalMemoizeOptions));
109165
107845
  var selector = memoize2(/* @__PURE__ */ __name(function dependenciesChecker() {
109166
107846
  var params = [];
109167
- var length = dependencies2.length;
107847
+ var length = dependencies.length;
109168
107848
  for (var i = 0; i < length; i++) {
109169
- params.push(dependencies2[i].apply(null, arguments));
107849
+ params.push(dependencies[i].apply(null, arguments));
109170
107850
  }
109171
107851
  _lastResult = memoizedResultFunc.apply(null, params);
109172
107852
  return _lastResult;
@@ -109174,7 +107854,7 @@ function createSelectorCreator(memoize2) {
109174
107854
  Object.assign(selector, {
109175
107855
  resultFunc,
109176
107856
  memoizedResultFunc,
109177
- dependencies: dependencies2,
107857
+ dependencies,
109178
107858
  lastResult: /* @__PURE__ */ __name(function lastResult() {
109179
107859
  return _lastResult;
109180
107860
  }, "lastResult"),
@@ -110359,13 +109039,13 @@ var domToImage = { exports: {} };
110359
109039
  url += (/\?/.test(url) ? "&" : "?") + (/* @__PURE__ */ new Date()).getTime();
110360
109040
  }
110361
109041
  return new Promise(function(resolve) {
110362
- var request2 = new XMLHttpRequest();
110363
- request2.onreadystatechange = done;
110364
- request2.ontimeout = timeout;
110365
- request2.responseType = "blob";
110366
- request2.timeout = TIMEOUT;
110367
- request2.open("GET", url, true);
110368
- request2.send();
109042
+ var request = new XMLHttpRequest();
109043
+ request.onreadystatechange = done;
109044
+ request.ontimeout = timeout;
109045
+ request.responseType = "blob";
109046
+ request.timeout = TIMEOUT;
109047
+ request.open("GET", url, true);
109048
+ request.send();
110369
109049
  var placeholder;
110370
109050
  if (domtoimage2.impl.options.imagePlaceholder) {
110371
109051
  var split = domtoimage2.impl.options.imagePlaceholder.split(/,/);
@@ -110374,13 +109054,13 @@ var domToImage = { exports: {} };
110374
109054
  }
110375
109055
  }
110376
109056
  function done() {
110377
- if (request2.readyState !== 4)
109057
+ if (request.readyState !== 4)
110378
109058
  return;
110379
- if (request2.status !== 200) {
109059
+ if (request.status !== 200) {
110380
109060
  if (placeholder) {
110381
109061
  resolve(placeholder);
110382
109062
  } else {
110383
- fail("cannot fetch resource: " + url + ", status: " + request2.status);
109063
+ fail("cannot fetch resource: " + url + ", status: " + request.status);
110384
109064
  }
110385
109065
  return;
110386
109066
  }
@@ -110389,7 +109069,7 @@ var domToImage = { exports: {} };
110389
109069
  var content2 = encoder.result.split(/,/)[1];
110390
109070
  resolve(content2);
110391
109071
  };
110392
- encoder.readAsDataURL(request2.response);
109072
+ encoder.readAsDataURL(request.response);
110393
109073
  }
110394
109074
  __name(done, "done");
110395
109075
  function timeout() {
@@ -112537,8 +111217,8 @@ var moveToNextCombine = /* @__PURE__ */ __name((_ref) => {
112537
111217
  });
112538
111218
  }
112539
111219
  __name(getImpact, "getImpact");
112540
- const all3 = previousImpact.displaced.all;
112541
- const closestId = all3.length ? all3[0] : null;
111220
+ const all2 = previousImpact.displaced.all;
111221
+ const closestId = all2.length ? all2[0] : null;
112542
111222
  if (isMovingForward) {
112543
111223
  return closestId ? getImpact(closestId) : null;
112544
111224
  }
@@ -114674,7 +113354,7 @@ var lift = /* @__PURE__ */ __name((marshal) => (_ref) => {
114674
113354
  const scrollOptions = {
114675
113355
  shouldPublishImmediately: movementMode === "SNAP"
114676
113356
  };
114677
- const request2 = {
113357
+ const request = {
114678
113358
  draggableId: id2,
114679
113359
  scrollOptions
114680
113360
  };
@@ -114682,7 +113362,7 @@ var lift = /* @__PURE__ */ __name((marshal) => (_ref) => {
114682
113362
  critical,
114683
113363
  dimensions,
114684
113364
  viewport: viewport2
114685
- } = marshal.startPublishing(request2);
113365
+ } = marshal.startPublishing(request);
114686
113366
  dispatch(initialPublish({
114687
113367
  critical,
114688
113368
  dimensions,
@@ -115626,9 +114306,9 @@ var createDimensionMarshal = /* @__PURE__ */ __name((registry, callbacks) => {
115626
114306
  }
115627
114307
  }
115628
114308
  }, "subscriber");
115629
- const startPublishing = /* @__PURE__ */ __name((request2) => {
114309
+ const startPublishing = /* @__PURE__ */ __name((request) => {
115630
114310
  !!collection ? invariant$1(false) : void 0;
115631
- const entry = registry.draggable.getById(request2.draggableId);
114311
+ const entry = registry.draggable.getById(request.draggableId);
115632
114312
  const home2 = registry.droppable.getById(entry.descriptor.droppableId);
115633
114313
  const critical = {
115634
114314
  draggable: entry.descriptor,
@@ -115642,7 +114322,7 @@ var createDimensionMarshal = /* @__PURE__ */ __name((registry, callbacks) => {
115642
114322
  return getInitialPublish({
115643
114323
  critical,
115644
114324
  registry,
115645
- scrollOptions: request2.scrollOptions
114325
+ scrollOptions: request.scrollOptions
115646
114326
  });
115647
114327
  }, "startPublishing");
115648
114328
  const marshal = {
@@ -116195,13 +114875,13 @@ var createJumpScroller = /* @__PURE__ */ __name((_ref) => {
116195
114875
  return remainder;
116196
114876
  }, "scrollWindowAsMuchAsItCan");
116197
114877
  const jumpScroller = /* @__PURE__ */ __name((state2) => {
116198
- const request2 = state2.scrollJumpRequest;
116199
- if (!request2) {
114878
+ const request = state2.scrollJumpRequest;
114879
+ if (!request) {
116200
114880
  return;
116201
114881
  }
116202
114882
  const destination = whatIsDraggedOver(state2.impact);
116203
114883
  !destination ? invariant$1(false) : void 0;
116204
- const droppableRemainder = scrollDroppableAsMuchAsItCan(state2.dimensions.droppables[destination], request2);
114884
+ const droppableRemainder = scrollDroppableAsMuchAsItCan(state2.dimensions.droppables[destination], request);
116205
114885
  if (!droppableRemainder) {
116206
114886
  return;
116207
114887
  }
@@ -116782,7 +115462,7 @@ function usePrevious(current) {
116782
115462
  return ref;
116783
115463
  }
116784
115464
  __name(usePrevious, "usePrevious");
116785
- function create6() {
115465
+ function create5() {
116786
115466
  let lock = null;
116787
115467
  function isClaimed() {
116788
115468
  return Boolean(lock);
@@ -116821,7 +115501,7 @@ function create6() {
116821
115501
  tryAbandon
116822
115502
  };
116823
115503
  }
116824
- __name(create6, "create");
115504
+ __name(create5, "create");
116825
115505
  function isDragging(state2) {
116826
115506
  if (state2.phase === "IDLE" || state2.phase === "DROP_ANIMATING") {
116827
115507
  return false;
@@ -117864,7 +116544,7 @@ function useSensorMarshal(_ref4) {
117864
116544
  enableDefaultSensors
117865
116545
  } = _ref4;
117866
116546
  const useSensors = [...enableDefaultSensors ? defaultSensors : [], ...customSensors || []];
117867
- const lockAPI = useState(() => create6())[0];
116547
+ const lockAPI = useState(() => create5())[0];
117868
116548
  const tryAbandonLock = useCallback(/* @__PURE__ */ __name(function tryAbandonLock2(previous2, current) {
117869
116549
  if (isDragging(previous2) && !isDragging(current)) {
117870
116550
  lockAPI.tryAbandon();
@@ -120340,7 +119020,7 @@ var instrumentations = {
120340
119020
  }
120341
119021
  return result;
120342
119022
  }, "clear"),
120343
- forEach: /* @__PURE__ */ __name(function forEach2(cb) {
119023
+ forEach: /* @__PURE__ */ __name(function forEach(cb) {
120344
119024
  var args = [], len = arguments.length - 1;
120345
119025
  while (len-- > 0)
120346
119026
  args[len] = arguments[len + 1];
@@ -125369,7 +124049,7 @@ function getGapsDefault() {
125369
124049
  }
125370
124050
  __name(getGapsDefault, "getGapsDefault");
125371
124051
  var Combokeys$1 = { exports: {} };
125372
- var bind3 = /* @__PURE__ */ __name(function(keys5, callback2, action2) {
124052
+ var bind2 = /* @__PURE__ */ __name(function(keys5, callback2, action2) {
125373
124053
  var self2 = this;
125374
124054
  keys5 = keys5 instanceof Array ? keys5 : [keys5];
125375
124055
  self2.bindMultiple(keys5, callback2, action2);
@@ -125970,7 +124650,7 @@ Combokeys$1.exports;
125970
124650
  }
125971
124651
  return self2;
125972
124652
  };
125973
- module2.exports.prototype.bind = bind3;
124653
+ module2.exports.prototype.bind = bind2;
125974
124654
  module2.exports.prototype.bindMultiple = bindMultiple;
125975
124655
  module2.exports.prototype.unbind = unbind;
125976
124656
  module2.exports.prototype.trigger = trigger;
@@ -126034,7 +124714,7 @@ function showFileDialog({ multiple = false, onSelect }) {
126034
124714
  }
126035
124715
  __name(showFileDialog, "showFileDialog");
126036
124716
  const name = "@teselagen/ove";
126037
- const version = "0.3.57";
124717
+ const version = "0.3.59";
126038
124718
  const main = "./src/index.js";
126039
124719
  const exports$1 = {
126040
124720
  ".": {
@@ -150738,10 +149418,10 @@ detector.isIE = function(version2) {
150738
149418
  return true;
150739
149419
  }
150740
149420
  var ieVersion = function() {
150741
- var undef, v2 = 3, div2 = document.createElement("div"), all3 = div2.getElementsByTagName("i");
149421
+ var undef, v2 = 3, div2 = document.createElement("div"), all2 = div2.getElementsByTagName("i");
150742
149422
  do {
150743
149423
  div2.innerHTML = "<!--[if gt IE " + ++v2 + "]><i></i><![endif]-->";
150744
- } while (all3[0]);
149424
+ } while (all2[0]);
150745
149425
  return v2 > 4 ? v2 : undef;
150746
149426
  }();
150747
149427
  return version2 === ieVersion;
@@ -151585,7 +150265,7 @@ var scroll = /* @__PURE__ */ __name(function(options) {
151585
150265
  initDocument
151586
150266
  };
151587
150267
  }, "scroll");
151588
- var forEach3 = collectionUtilsExports.forEach;
150268
+ var forEach2 = collectionUtilsExports.forEach;
151589
150269
  var elementUtilsMaker = elementUtils;
151590
150270
  var listenerHandlerMaker = listenerHandler;
151591
150271
  var idGeneratorMaker = idGenerator;
@@ -151603,7 +150283,7 @@ __name(isCollection, "isCollection");
151603
150283
  function toArray(collection) {
151604
150284
  if (!Array.isArray(collection)) {
151605
150285
  var array2 = [];
151606
- forEach3(collection, function(obj) {
150286
+ forEach2(collection, function(obj) {
151607
150287
  array2.push(obj);
151608
150288
  });
151609
150289
  return array2;
@@ -151677,7 +150357,7 @@ var elementResizeDetector = /* @__PURE__ */ __name(function(options) {
151677
150357
  function listenTo(options2, elements, listener) {
151678
150358
  function onResizeCallback(element2) {
151679
150359
  var listeners = eventListenerHandler.get(element2);
151680
- forEach3(listeners, /* @__PURE__ */ __name(function callListenerProxy(listener2) {
150360
+ forEach2(listeners, /* @__PURE__ */ __name(function callListenerProxy(listener2) {
151681
150361
  listener2(element2);
151682
150362
  }, "callListenerProxy"));
151683
150363
  }
@@ -151712,7 +150392,7 @@ var elementResizeDetector = /* @__PURE__ */ __name(function(options) {
151712
150392
  var onReadyCallback = getOption(options2, "onReady", /* @__PURE__ */ __name(function noop3() {
151713
150393
  }, "noop"));
151714
150394
  var debug = getOption(options2, "debug", globalOptions.debug);
151715
- forEach3(elements, /* @__PURE__ */ __name(function attachListenerToElement(element2) {
150395
+ forEach2(elements, /* @__PURE__ */ __name(function attachListenerToElement(element2) {
151716
150396
  if (!stateHandler.getState(element2)) {
151717
150397
  stateHandler.initState(element2);
151718
150398
  idHandler2.set(element2);
@@ -151751,7 +150431,7 @@ var elementResizeDetector = /* @__PURE__ */ __name(function(options) {
151751
150431
  }
151752
150432
  }
151753
150433
  if (onReadyCallbacks[id2]) {
151754
- forEach3(onReadyCallbacks[id2], function(callback2) {
150434
+ forEach2(onReadyCallbacks[id2], function(callback2) {
151755
150435
  callback2();
151756
150436
  });
151757
150437
  }
@@ -151785,7 +150465,7 @@ var elementResizeDetector = /* @__PURE__ */ __name(function(options) {
151785
150465
  } else {
151786
150466
  return reporter2.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");
151787
150467
  }
151788
- forEach3(elements, function(element2) {
150468
+ forEach2(elements, function(element2) {
151789
150469
  eventListenerHandler.removeAllListeners(element2);
151790
150470
  detectionStrategy.uninstall(element2);
151791
150471
  stateHandler.cleanState(element2);