@teselagen/ui 0.3.48 → 0.3.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +234 -1561
- package/index.es.js +234 -1561
- package/package.json +1 -2
- package/src/DataTable/style.css +2 -2
- package/src/FormComponents/Uploader.js +44 -64
- package/style.css +2 -2
- package/src/utils/S3Download.js +0 -14
package/index.cjs.js
CHANGED
|
@@ -108,12 +108,12 @@ var beforeRead = "beforeRead";
|
|
|
108
108
|
var read = "read";
|
|
109
109
|
var afterRead = "afterRead";
|
|
110
110
|
var beforeMain = "beforeMain";
|
|
111
|
-
var main
|
|
111
|
+
var main = "main";
|
|
112
112
|
var afterMain = "afterMain";
|
|
113
113
|
var beforeWrite = "beforeWrite";
|
|
114
114
|
var write = "write";
|
|
115
115
|
var afterWrite = "afterWrite";
|
|
116
|
-
var modifierPhases = [beforeRead, read, afterRead, beforeMain, main
|
|
116
|
+
var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
|
|
117
117
|
function getNodeName(element2) {
|
|
118
118
|
return element2 ? (element2.nodeName || "").toLowerCase() : null;
|
|
119
119
|
}
|
|
@@ -2837,7 +2837,7 @@ var followCursor = {
|
|
|
2837
2837
|
}
|
|
2838
2838
|
}
|
|
2839
2839
|
__name(onMouseMove, "onMouseMove");
|
|
2840
|
-
function
|
|
2840
|
+
function create6() {
|
|
2841
2841
|
if (instance.props.followCursor) {
|
|
2842
2842
|
activeInstances.push({
|
|
2843
2843
|
instance,
|
|
@@ -2846,7 +2846,7 @@ var followCursor = {
|
|
|
2846
2846
|
addMouseCoordsListener(doc);
|
|
2847
2847
|
}
|
|
2848
2848
|
}
|
|
2849
|
-
__name(
|
|
2849
|
+
__name(create6, "create");
|
|
2850
2850
|
function destroy() {
|
|
2851
2851
|
activeInstances = activeInstances.filter(function(data) {
|
|
2852
2852
|
return data.instance !== instance;
|
|
@@ -2859,7 +2859,7 @@ var followCursor = {
|
|
|
2859
2859
|
}
|
|
2860
2860
|
__name(destroy, "destroy");
|
|
2861
2861
|
return {
|
|
2862
|
-
onCreate:
|
|
2862
|
+
onCreate: create6,
|
|
2863
2863
|
onDestroy: destroy,
|
|
2864
2864
|
onBeforeUpdate: /* @__PURE__ */ __name(function onBeforeUpdate2() {
|
|
2865
2865
|
prevProps = instance.props;
|
|
@@ -2872,7 +2872,7 @@ var followCursor = {
|
|
|
2872
2872
|
if (followCursor2 !== void 0 && prevProps.followCursor !== followCursor2) {
|
|
2873
2873
|
destroy();
|
|
2874
2874
|
if (followCursor2) {
|
|
2875
|
-
|
|
2875
|
+
create6();
|
|
2876
2876
|
if (instance.state.isMounted && !wasFocusEvent && !getIsInitialBehavior()) {
|
|
2877
2877
|
addListener();
|
|
2878
2878
|
}
|
|
@@ -3103,1322 +3103,6 @@ function getAugmentedNamespace(n2) {
|
|
|
3103
3103
|
return a2;
|
|
3104
3104
|
}
|
|
3105
3105
|
__name(getAugmentedNamespace, "getAugmentedNamespace");
|
|
3106
|
-
var axios$3 = { exports: {} };
|
|
3107
|
-
var bind$4 = /* @__PURE__ */ __name(function bind(fn4, thisArg) {
|
|
3108
|
-
return /* @__PURE__ */ __name(function wrap2() {
|
|
3109
|
-
var args = new Array(arguments.length);
|
|
3110
|
-
for (var i = 0; i < args.length; i++) {
|
|
3111
|
-
args[i] = arguments[i];
|
|
3112
|
-
}
|
|
3113
|
-
return fn4.apply(thisArg, args);
|
|
3114
|
-
}, "wrap");
|
|
3115
|
-
}, "bind");
|
|
3116
|
-
var bind$3 = bind$4;
|
|
3117
|
-
var toString$8 = Object.prototype.toString;
|
|
3118
|
-
function isArray$o(val) {
|
|
3119
|
-
return toString$8.call(val) === "[object Array]";
|
|
3120
|
-
}
|
|
3121
|
-
__name(isArray$o, "isArray$o");
|
|
3122
|
-
function isUndefined$1(val) {
|
|
3123
|
-
return typeof val === "undefined";
|
|
3124
|
-
}
|
|
3125
|
-
__name(isUndefined$1, "isUndefined$1");
|
|
3126
|
-
function isBuffer$9(val) {
|
|
3127
|
-
return val !== null && !isUndefined$1(val) && val.constructor !== null && !isUndefined$1(val.constructor) && typeof val.constructor.isBuffer === "function" && val.constructor.isBuffer(val);
|
|
3128
|
-
}
|
|
3129
|
-
__name(isBuffer$9, "isBuffer$9");
|
|
3130
|
-
function isArrayBuffer(val) {
|
|
3131
|
-
return toString$8.call(val) === "[object ArrayBuffer]";
|
|
3132
|
-
}
|
|
3133
|
-
__name(isArrayBuffer, "isArrayBuffer");
|
|
3134
|
-
function isFormData(val) {
|
|
3135
|
-
return typeof FormData !== "undefined" && val instanceof FormData;
|
|
3136
|
-
}
|
|
3137
|
-
__name(isFormData, "isFormData");
|
|
3138
|
-
function isArrayBufferView(val) {
|
|
3139
|
-
var result;
|
|
3140
|
-
if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
|
|
3141
|
-
result = ArrayBuffer.isView(val);
|
|
3142
|
-
} else {
|
|
3143
|
-
result = val && val.buffer && val.buffer instanceof ArrayBuffer;
|
|
3144
|
-
}
|
|
3145
|
-
return result;
|
|
3146
|
-
}
|
|
3147
|
-
__name(isArrayBufferView, "isArrayBufferView");
|
|
3148
|
-
function isString$3(val) {
|
|
3149
|
-
return typeof val === "string";
|
|
3150
|
-
}
|
|
3151
|
-
__name(isString$3, "isString$3");
|
|
3152
|
-
function isNumber$2(val) {
|
|
3153
|
-
return typeof val === "number";
|
|
3154
|
-
}
|
|
3155
|
-
__name(isNumber$2, "isNumber$2");
|
|
3156
|
-
function isObject$h(val) {
|
|
3157
|
-
return val !== null && typeof val === "object";
|
|
3158
|
-
}
|
|
3159
|
-
__name(isObject$h, "isObject$h");
|
|
3160
|
-
function isPlainObject$5(val) {
|
|
3161
|
-
if (toString$8.call(val) !== "[object Object]") {
|
|
3162
|
-
return false;
|
|
3163
|
-
}
|
|
3164
|
-
var prototype = Object.getPrototypeOf(val);
|
|
3165
|
-
return prototype === null || prototype === Object.prototype;
|
|
3166
|
-
}
|
|
3167
|
-
__name(isPlainObject$5, "isPlainObject$5");
|
|
3168
|
-
function isDate$1(val) {
|
|
3169
|
-
return toString$8.call(val) === "[object Date]";
|
|
3170
|
-
}
|
|
3171
|
-
__name(isDate$1, "isDate$1");
|
|
3172
|
-
function isFile(val) {
|
|
3173
|
-
return toString$8.call(val) === "[object File]";
|
|
3174
|
-
}
|
|
3175
|
-
__name(isFile, "isFile");
|
|
3176
|
-
function isBlob(val) {
|
|
3177
|
-
return toString$8.call(val) === "[object Blob]";
|
|
3178
|
-
}
|
|
3179
|
-
__name(isBlob, "isBlob");
|
|
3180
|
-
function isFunction$6(val) {
|
|
3181
|
-
return toString$8.call(val) === "[object Function]";
|
|
3182
|
-
}
|
|
3183
|
-
__name(isFunction$6, "isFunction$6");
|
|
3184
|
-
function isStream(val) {
|
|
3185
|
-
return isObject$h(val) && isFunction$6(val.pipe);
|
|
3186
|
-
}
|
|
3187
|
-
__name(isStream, "isStream");
|
|
3188
|
-
function isURLSearchParams(val) {
|
|
3189
|
-
return typeof URLSearchParams !== "undefined" && val instanceof URLSearchParams;
|
|
3190
|
-
}
|
|
3191
|
-
__name(isURLSearchParams, "isURLSearchParams");
|
|
3192
|
-
function trim$1(str) {
|
|
3193
|
-
return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, "");
|
|
3194
|
-
}
|
|
3195
|
-
__name(trim$1, "trim$1");
|
|
3196
|
-
function isStandardBrowserEnv() {
|
|
3197
|
-
if (typeof navigator !== "undefined" && (navigator.product === "ReactNative" || navigator.product === "NativeScript" || navigator.product === "NS")) {
|
|
3198
|
-
return false;
|
|
3199
|
-
}
|
|
3200
|
-
return typeof window !== "undefined" && typeof document !== "undefined";
|
|
3201
|
-
}
|
|
3202
|
-
__name(isStandardBrowserEnv, "isStandardBrowserEnv");
|
|
3203
|
-
function forEach$1(obj, fn4) {
|
|
3204
|
-
if (obj === null || typeof obj === "undefined") {
|
|
3205
|
-
return;
|
|
3206
|
-
}
|
|
3207
|
-
if (typeof obj !== "object") {
|
|
3208
|
-
obj = [obj];
|
|
3209
|
-
}
|
|
3210
|
-
if (isArray$o(obj)) {
|
|
3211
|
-
for (var i = 0, l2 = obj.length; i < l2; i++) {
|
|
3212
|
-
fn4.call(null, obj[i], i, obj);
|
|
3213
|
-
}
|
|
3214
|
-
} else {
|
|
3215
|
-
for (var key in obj) {
|
|
3216
|
-
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
3217
|
-
fn4.call(null, obj[key], key, obj);
|
|
3218
|
-
}
|
|
3219
|
-
}
|
|
3220
|
-
}
|
|
3221
|
-
}
|
|
3222
|
-
__name(forEach$1, "forEach$1");
|
|
3223
|
-
function merge$4() {
|
|
3224
|
-
var result = {};
|
|
3225
|
-
function assignValue2(val, key) {
|
|
3226
|
-
if (isPlainObject$5(result[key]) && isPlainObject$5(val)) {
|
|
3227
|
-
result[key] = merge$4(result[key], val);
|
|
3228
|
-
} else if (isPlainObject$5(val)) {
|
|
3229
|
-
result[key] = merge$4({}, val);
|
|
3230
|
-
} else if (isArray$o(val)) {
|
|
3231
|
-
result[key] = val.slice();
|
|
3232
|
-
} else {
|
|
3233
|
-
result[key] = val;
|
|
3234
|
-
}
|
|
3235
|
-
}
|
|
3236
|
-
__name(assignValue2, "assignValue");
|
|
3237
|
-
for (var i = 0, l2 = arguments.length; i < l2; i++) {
|
|
3238
|
-
forEach$1(arguments[i], assignValue2);
|
|
3239
|
-
}
|
|
3240
|
-
return result;
|
|
3241
|
-
}
|
|
3242
|
-
__name(merge$4, "merge$4");
|
|
3243
|
-
function extend$2(a2, b2, thisArg) {
|
|
3244
|
-
forEach$1(b2, /* @__PURE__ */ __name(function assignValue2(val, key) {
|
|
3245
|
-
if (thisArg && typeof val === "function") {
|
|
3246
|
-
a2[key] = bind$3(val, thisArg);
|
|
3247
|
-
} else {
|
|
3248
|
-
a2[key] = val;
|
|
3249
|
-
}
|
|
3250
|
-
}, "assignValue"));
|
|
3251
|
-
return a2;
|
|
3252
|
-
}
|
|
3253
|
-
__name(extend$2, "extend$2");
|
|
3254
|
-
function stripBOM(content2) {
|
|
3255
|
-
if (content2.charCodeAt(0) === 65279) {
|
|
3256
|
-
content2 = content2.slice(1);
|
|
3257
|
-
}
|
|
3258
|
-
return content2;
|
|
3259
|
-
}
|
|
3260
|
-
__name(stripBOM, "stripBOM");
|
|
3261
|
-
var utils$c = {
|
|
3262
|
-
isArray: isArray$o,
|
|
3263
|
-
isArrayBuffer,
|
|
3264
|
-
isBuffer: isBuffer$9,
|
|
3265
|
-
isFormData,
|
|
3266
|
-
isArrayBufferView,
|
|
3267
|
-
isString: isString$3,
|
|
3268
|
-
isNumber: isNumber$2,
|
|
3269
|
-
isObject: isObject$h,
|
|
3270
|
-
isPlainObject: isPlainObject$5,
|
|
3271
|
-
isUndefined: isUndefined$1,
|
|
3272
|
-
isDate: isDate$1,
|
|
3273
|
-
isFile,
|
|
3274
|
-
isBlob,
|
|
3275
|
-
isFunction: isFunction$6,
|
|
3276
|
-
isStream,
|
|
3277
|
-
isURLSearchParams,
|
|
3278
|
-
isStandardBrowserEnv,
|
|
3279
|
-
forEach: forEach$1,
|
|
3280
|
-
merge: merge$4,
|
|
3281
|
-
extend: extend$2,
|
|
3282
|
-
trim: trim$1,
|
|
3283
|
-
stripBOM
|
|
3284
|
-
};
|
|
3285
|
-
var utils$b = utils$c;
|
|
3286
|
-
function encode$1(val) {
|
|
3287
|
-
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
3288
|
-
}
|
|
3289
|
-
__name(encode$1, "encode$1");
|
|
3290
|
-
var buildURL$1 = /* @__PURE__ */ __name(function buildURL(url, params, paramsSerializer) {
|
|
3291
|
-
if (!params) {
|
|
3292
|
-
return url;
|
|
3293
|
-
}
|
|
3294
|
-
var serializedParams;
|
|
3295
|
-
if (paramsSerializer) {
|
|
3296
|
-
serializedParams = paramsSerializer(params);
|
|
3297
|
-
} else if (utils$b.isURLSearchParams(params)) {
|
|
3298
|
-
serializedParams = params.toString();
|
|
3299
|
-
} else {
|
|
3300
|
-
var parts = [];
|
|
3301
|
-
utils$b.forEach(params, /* @__PURE__ */ __name(function serialize2(val, key) {
|
|
3302
|
-
if (val === null || typeof val === "undefined") {
|
|
3303
|
-
return;
|
|
3304
|
-
}
|
|
3305
|
-
if (utils$b.isArray(val)) {
|
|
3306
|
-
key = key + "[]";
|
|
3307
|
-
} else {
|
|
3308
|
-
val = [val];
|
|
3309
|
-
}
|
|
3310
|
-
utils$b.forEach(val, /* @__PURE__ */ __name(function parseValue(v2) {
|
|
3311
|
-
if (utils$b.isDate(v2)) {
|
|
3312
|
-
v2 = v2.toISOString();
|
|
3313
|
-
} else if (utils$b.isObject(v2)) {
|
|
3314
|
-
v2 = JSON.stringify(v2);
|
|
3315
|
-
}
|
|
3316
|
-
parts.push(encode$1(key) + "=" + encode$1(v2));
|
|
3317
|
-
}, "parseValue"));
|
|
3318
|
-
}, "serialize"));
|
|
3319
|
-
serializedParams = parts.join("&");
|
|
3320
|
-
}
|
|
3321
|
-
if (serializedParams) {
|
|
3322
|
-
var hashmarkIndex = url.indexOf("#");
|
|
3323
|
-
if (hashmarkIndex !== -1) {
|
|
3324
|
-
url = url.slice(0, hashmarkIndex);
|
|
3325
|
-
}
|
|
3326
|
-
url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams;
|
|
3327
|
-
}
|
|
3328
|
-
return url;
|
|
3329
|
-
}, "buildURL");
|
|
3330
|
-
var utils$a = utils$c;
|
|
3331
|
-
function InterceptorManager$1() {
|
|
3332
|
-
this.handlers = [];
|
|
3333
|
-
}
|
|
3334
|
-
__name(InterceptorManager$1, "InterceptorManager$1");
|
|
3335
|
-
InterceptorManager$1.prototype.use = /* @__PURE__ */ __name(function use(fulfilled, rejected, options) {
|
|
3336
|
-
this.handlers.push({
|
|
3337
|
-
fulfilled,
|
|
3338
|
-
rejected,
|
|
3339
|
-
synchronous: options ? options.synchronous : false,
|
|
3340
|
-
runWhen: options ? options.runWhen : null
|
|
3341
|
-
});
|
|
3342
|
-
return this.handlers.length - 1;
|
|
3343
|
-
}, "use");
|
|
3344
|
-
InterceptorManager$1.prototype.eject = /* @__PURE__ */ __name(function eject(id2) {
|
|
3345
|
-
if (this.handlers[id2]) {
|
|
3346
|
-
this.handlers[id2] = null;
|
|
3347
|
-
}
|
|
3348
|
-
}, "eject");
|
|
3349
|
-
InterceptorManager$1.prototype.forEach = /* @__PURE__ */ __name(function forEach(fn4) {
|
|
3350
|
-
utils$a.forEach(this.handlers, /* @__PURE__ */ __name(function forEachHandler(h2) {
|
|
3351
|
-
if (h2 !== null) {
|
|
3352
|
-
fn4(h2);
|
|
3353
|
-
}
|
|
3354
|
-
}, "forEachHandler"));
|
|
3355
|
-
}, "forEach");
|
|
3356
|
-
var InterceptorManager_1 = InterceptorManager$1;
|
|
3357
|
-
var utils$9 = utils$c;
|
|
3358
|
-
var normalizeHeaderName$1 = /* @__PURE__ */ __name(function normalizeHeaderName(headers, normalizedName) {
|
|
3359
|
-
utils$9.forEach(headers, /* @__PURE__ */ __name(function processHeader(value, name) {
|
|
3360
|
-
if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
|
|
3361
|
-
headers[normalizedName] = value;
|
|
3362
|
-
delete headers[name];
|
|
3363
|
-
}
|
|
3364
|
-
}, "processHeader"));
|
|
3365
|
-
}, "normalizeHeaderName");
|
|
3366
|
-
var enhanceError$1 = /* @__PURE__ */ __name(function enhanceError(error, config, code2, request2, response) {
|
|
3367
|
-
error.config = config;
|
|
3368
|
-
if (code2) {
|
|
3369
|
-
error.code = code2;
|
|
3370
|
-
}
|
|
3371
|
-
error.request = request2;
|
|
3372
|
-
error.response = response;
|
|
3373
|
-
error.isAxiosError = true;
|
|
3374
|
-
error.toJSON = /* @__PURE__ */ __name(function toJSON2() {
|
|
3375
|
-
return {
|
|
3376
|
-
// Standard
|
|
3377
|
-
message: this.message,
|
|
3378
|
-
name: this.name,
|
|
3379
|
-
// Microsoft
|
|
3380
|
-
description: this.description,
|
|
3381
|
-
number: this.number,
|
|
3382
|
-
// Mozilla
|
|
3383
|
-
fileName: this.fileName,
|
|
3384
|
-
lineNumber: this.lineNumber,
|
|
3385
|
-
columnNumber: this.columnNumber,
|
|
3386
|
-
stack: this.stack,
|
|
3387
|
-
// Axios
|
|
3388
|
-
config: this.config,
|
|
3389
|
-
code: this.code
|
|
3390
|
-
};
|
|
3391
|
-
}, "toJSON");
|
|
3392
|
-
return error;
|
|
3393
|
-
}, "enhanceError");
|
|
3394
|
-
var createError;
|
|
3395
|
-
var hasRequiredCreateError;
|
|
3396
|
-
function requireCreateError() {
|
|
3397
|
-
if (hasRequiredCreateError)
|
|
3398
|
-
return createError;
|
|
3399
|
-
hasRequiredCreateError = 1;
|
|
3400
|
-
var enhanceError3 = enhanceError$1;
|
|
3401
|
-
createError = /* @__PURE__ */ __name(function createError2(message, config, code2, request2, response) {
|
|
3402
|
-
var error = new Error(message);
|
|
3403
|
-
return enhanceError3(error, config, code2, request2, response);
|
|
3404
|
-
}, "createError");
|
|
3405
|
-
return createError;
|
|
3406
|
-
}
|
|
3407
|
-
__name(requireCreateError, "requireCreateError");
|
|
3408
|
-
var settle;
|
|
3409
|
-
var hasRequiredSettle;
|
|
3410
|
-
function requireSettle() {
|
|
3411
|
-
if (hasRequiredSettle)
|
|
3412
|
-
return settle;
|
|
3413
|
-
hasRequiredSettle = 1;
|
|
3414
|
-
var createError2 = requireCreateError();
|
|
3415
|
-
settle = /* @__PURE__ */ __name(function settle2(resolve, reject, response) {
|
|
3416
|
-
var validateStatus2 = response.config.validateStatus;
|
|
3417
|
-
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
3418
|
-
resolve(response);
|
|
3419
|
-
} else {
|
|
3420
|
-
reject(createError2(
|
|
3421
|
-
"Request failed with status code " + response.status,
|
|
3422
|
-
response.config,
|
|
3423
|
-
null,
|
|
3424
|
-
response.request,
|
|
3425
|
-
response
|
|
3426
|
-
));
|
|
3427
|
-
}
|
|
3428
|
-
}, "settle");
|
|
3429
|
-
return settle;
|
|
3430
|
-
}
|
|
3431
|
-
__name(requireSettle, "requireSettle");
|
|
3432
|
-
var cookies;
|
|
3433
|
-
var hasRequiredCookies;
|
|
3434
|
-
function requireCookies() {
|
|
3435
|
-
if (hasRequiredCookies)
|
|
3436
|
-
return cookies;
|
|
3437
|
-
hasRequiredCookies = 1;
|
|
3438
|
-
var utils2 = utils$c;
|
|
3439
|
-
cookies = utils2.isStandardBrowserEnv() ? (
|
|
3440
|
-
// Standard browser envs support document.cookie
|
|
3441
|
-
(/* @__PURE__ */ __name(function standardBrowserEnv() {
|
|
3442
|
-
return {
|
|
3443
|
-
write: /* @__PURE__ */ __name(function write2(name, value, expires, path2, domain2, secure) {
|
|
3444
|
-
var cookie = [];
|
|
3445
|
-
cookie.push(name + "=" + encodeURIComponent(value));
|
|
3446
|
-
if (utils2.isNumber(expires)) {
|
|
3447
|
-
cookie.push("expires=" + new Date(expires).toGMTString());
|
|
3448
|
-
}
|
|
3449
|
-
if (utils2.isString(path2)) {
|
|
3450
|
-
cookie.push("path=" + path2);
|
|
3451
|
-
}
|
|
3452
|
-
if (utils2.isString(domain2)) {
|
|
3453
|
-
cookie.push("domain=" + domain2);
|
|
3454
|
-
}
|
|
3455
|
-
if (secure === true) {
|
|
3456
|
-
cookie.push("secure");
|
|
3457
|
-
}
|
|
3458
|
-
document.cookie = cookie.join("; ");
|
|
3459
|
-
}, "write"),
|
|
3460
|
-
read: /* @__PURE__ */ __name(function read2(name) {
|
|
3461
|
-
var match2 = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
|
|
3462
|
-
return match2 ? decodeURIComponent(match2[3]) : null;
|
|
3463
|
-
}, "read"),
|
|
3464
|
-
remove: /* @__PURE__ */ __name(function remove3(name) {
|
|
3465
|
-
this.write(name, "", Date.now() - 864e5);
|
|
3466
|
-
}, "remove")
|
|
3467
|
-
};
|
|
3468
|
-
}, "standardBrowserEnv"))()
|
|
3469
|
-
) : (
|
|
3470
|
-
// Non standard browser env (web workers, react-native) lack needed support.
|
|
3471
|
-
(/* @__PURE__ */ __name(function nonStandardBrowserEnv() {
|
|
3472
|
-
return {
|
|
3473
|
-
write: /* @__PURE__ */ __name(function write2() {
|
|
3474
|
-
}, "write"),
|
|
3475
|
-
read: /* @__PURE__ */ __name(function read2() {
|
|
3476
|
-
return null;
|
|
3477
|
-
}, "read"),
|
|
3478
|
-
remove: /* @__PURE__ */ __name(function remove3() {
|
|
3479
|
-
}, "remove")
|
|
3480
|
-
};
|
|
3481
|
-
}, "nonStandardBrowserEnv"))()
|
|
3482
|
-
);
|
|
3483
|
-
return cookies;
|
|
3484
|
-
}
|
|
3485
|
-
__name(requireCookies, "requireCookies");
|
|
3486
|
-
var isAbsoluteURL;
|
|
3487
|
-
var hasRequiredIsAbsoluteURL;
|
|
3488
|
-
function requireIsAbsoluteURL() {
|
|
3489
|
-
if (hasRequiredIsAbsoluteURL)
|
|
3490
|
-
return isAbsoluteURL;
|
|
3491
|
-
hasRequiredIsAbsoluteURL = 1;
|
|
3492
|
-
isAbsoluteURL = /* @__PURE__ */ __name(function isAbsoluteURL2(url) {
|
|
3493
|
-
return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
|
|
3494
|
-
}, "isAbsoluteURL");
|
|
3495
|
-
return isAbsoluteURL;
|
|
3496
|
-
}
|
|
3497
|
-
__name(requireIsAbsoluteURL, "requireIsAbsoluteURL");
|
|
3498
|
-
var combineURLs;
|
|
3499
|
-
var hasRequiredCombineURLs;
|
|
3500
|
-
function requireCombineURLs() {
|
|
3501
|
-
if (hasRequiredCombineURLs)
|
|
3502
|
-
return combineURLs;
|
|
3503
|
-
hasRequiredCombineURLs = 1;
|
|
3504
|
-
combineURLs = /* @__PURE__ */ __name(function combineURLs2(baseURL, relativeURL) {
|
|
3505
|
-
return relativeURL ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
3506
|
-
}, "combineURLs");
|
|
3507
|
-
return combineURLs;
|
|
3508
|
-
}
|
|
3509
|
-
__name(requireCombineURLs, "requireCombineURLs");
|
|
3510
|
-
var buildFullPath;
|
|
3511
|
-
var hasRequiredBuildFullPath;
|
|
3512
|
-
function requireBuildFullPath() {
|
|
3513
|
-
if (hasRequiredBuildFullPath)
|
|
3514
|
-
return buildFullPath;
|
|
3515
|
-
hasRequiredBuildFullPath = 1;
|
|
3516
|
-
var isAbsoluteURL2 = requireIsAbsoluteURL();
|
|
3517
|
-
var combineURLs2 = requireCombineURLs();
|
|
3518
|
-
buildFullPath = /* @__PURE__ */ __name(function buildFullPath2(baseURL, requestedURL) {
|
|
3519
|
-
if (baseURL && !isAbsoluteURL2(requestedURL)) {
|
|
3520
|
-
return combineURLs2(baseURL, requestedURL);
|
|
3521
|
-
}
|
|
3522
|
-
return requestedURL;
|
|
3523
|
-
}, "buildFullPath");
|
|
3524
|
-
return buildFullPath;
|
|
3525
|
-
}
|
|
3526
|
-
__name(requireBuildFullPath, "requireBuildFullPath");
|
|
3527
|
-
var parseHeaders;
|
|
3528
|
-
var hasRequiredParseHeaders;
|
|
3529
|
-
function requireParseHeaders() {
|
|
3530
|
-
if (hasRequiredParseHeaders)
|
|
3531
|
-
return parseHeaders;
|
|
3532
|
-
hasRequiredParseHeaders = 1;
|
|
3533
|
-
var utils2 = utils$c;
|
|
3534
|
-
var ignoreDuplicateOf = [
|
|
3535
|
-
"age",
|
|
3536
|
-
"authorization",
|
|
3537
|
-
"content-length",
|
|
3538
|
-
"content-type",
|
|
3539
|
-
"etag",
|
|
3540
|
-
"expires",
|
|
3541
|
-
"from",
|
|
3542
|
-
"host",
|
|
3543
|
-
"if-modified-since",
|
|
3544
|
-
"if-unmodified-since",
|
|
3545
|
-
"last-modified",
|
|
3546
|
-
"location",
|
|
3547
|
-
"max-forwards",
|
|
3548
|
-
"proxy-authorization",
|
|
3549
|
-
"referer",
|
|
3550
|
-
"retry-after",
|
|
3551
|
-
"user-agent"
|
|
3552
|
-
];
|
|
3553
|
-
parseHeaders = /* @__PURE__ */ __name(function parseHeaders2(headers) {
|
|
3554
|
-
var parsed = {};
|
|
3555
|
-
var key;
|
|
3556
|
-
var val;
|
|
3557
|
-
var i;
|
|
3558
|
-
if (!headers) {
|
|
3559
|
-
return parsed;
|
|
3560
|
-
}
|
|
3561
|
-
utils2.forEach(headers.split("\n"), /* @__PURE__ */ __name(function parser(line) {
|
|
3562
|
-
i = line.indexOf(":");
|
|
3563
|
-
key = utils2.trim(line.substr(0, i)).toLowerCase();
|
|
3564
|
-
val = utils2.trim(line.substr(i + 1));
|
|
3565
|
-
if (key) {
|
|
3566
|
-
if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
|
|
3567
|
-
return;
|
|
3568
|
-
}
|
|
3569
|
-
if (key === "set-cookie") {
|
|
3570
|
-
parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
|
|
3571
|
-
} else {
|
|
3572
|
-
parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
3573
|
-
}
|
|
3574
|
-
}
|
|
3575
|
-
}, "parser"));
|
|
3576
|
-
return parsed;
|
|
3577
|
-
}, "parseHeaders");
|
|
3578
|
-
return parseHeaders;
|
|
3579
|
-
}
|
|
3580
|
-
__name(requireParseHeaders, "requireParseHeaders");
|
|
3581
|
-
var isURLSameOrigin;
|
|
3582
|
-
var hasRequiredIsURLSameOrigin;
|
|
3583
|
-
function requireIsURLSameOrigin() {
|
|
3584
|
-
if (hasRequiredIsURLSameOrigin)
|
|
3585
|
-
return isURLSameOrigin;
|
|
3586
|
-
hasRequiredIsURLSameOrigin = 1;
|
|
3587
|
-
var utils2 = utils$c;
|
|
3588
|
-
isURLSameOrigin = utils2.isStandardBrowserEnv() ? (
|
|
3589
|
-
// Standard browser envs have full support of the APIs needed to test
|
|
3590
|
-
// whether the request URL is of the same origin as current location.
|
|
3591
|
-
(/* @__PURE__ */ __name(function standardBrowserEnv() {
|
|
3592
|
-
var msie = /(msie|trident)/i.test(navigator.userAgent);
|
|
3593
|
-
var urlParsingNode = document.createElement("a");
|
|
3594
|
-
var originURL;
|
|
3595
|
-
function resolveURL(url) {
|
|
3596
|
-
var href = url;
|
|
3597
|
-
if (msie) {
|
|
3598
|
-
urlParsingNode.setAttribute("href", href);
|
|
3599
|
-
href = urlParsingNode.href;
|
|
3600
|
-
}
|
|
3601
|
-
urlParsingNode.setAttribute("href", href);
|
|
3602
|
-
return {
|
|
3603
|
-
href: urlParsingNode.href,
|
|
3604
|
-
protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, "") : "",
|
|
3605
|
-
host: urlParsingNode.host,
|
|
3606
|
-
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, "") : "",
|
|
3607
|
-
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, "") : "",
|
|
3608
|
-
hostname: urlParsingNode.hostname,
|
|
3609
|
-
port: urlParsingNode.port,
|
|
3610
|
-
pathname: urlParsingNode.pathname.charAt(0) === "/" ? urlParsingNode.pathname : "/" + urlParsingNode.pathname
|
|
3611
|
-
};
|
|
3612
|
-
}
|
|
3613
|
-
__name(resolveURL, "resolveURL");
|
|
3614
|
-
originURL = resolveURL(window.location.href);
|
|
3615
|
-
return /* @__PURE__ */ __name(function isURLSameOrigin2(requestURL) {
|
|
3616
|
-
var parsed = utils2.isString(requestURL) ? resolveURL(requestURL) : requestURL;
|
|
3617
|
-
return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
|
|
3618
|
-
}, "isURLSameOrigin");
|
|
3619
|
-
}, "standardBrowserEnv"))()
|
|
3620
|
-
) : (
|
|
3621
|
-
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
3622
|
-
(/* @__PURE__ */ __name(function nonStandardBrowserEnv() {
|
|
3623
|
-
return /* @__PURE__ */ __name(function isURLSameOrigin2() {
|
|
3624
|
-
return true;
|
|
3625
|
-
}, "isURLSameOrigin");
|
|
3626
|
-
}, "nonStandardBrowserEnv"))()
|
|
3627
|
-
);
|
|
3628
|
-
return isURLSameOrigin;
|
|
3629
|
-
}
|
|
3630
|
-
__name(requireIsURLSameOrigin, "requireIsURLSameOrigin");
|
|
3631
|
-
var xhr;
|
|
3632
|
-
var hasRequiredXhr;
|
|
3633
|
-
function requireXhr() {
|
|
3634
|
-
if (hasRequiredXhr)
|
|
3635
|
-
return xhr;
|
|
3636
|
-
hasRequiredXhr = 1;
|
|
3637
|
-
var utils2 = utils$c;
|
|
3638
|
-
var settle2 = requireSettle();
|
|
3639
|
-
var cookies2 = requireCookies();
|
|
3640
|
-
var buildURL3 = buildURL$1;
|
|
3641
|
-
var buildFullPath2 = requireBuildFullPath();
|
|
3642
|
-
var parseHeaders2 = requireParseHeaders();
|
|
3643
|
-
var isURLSameOrigin2 = requireIsURLSameOrigin();
|
|
3644
|
-
var createError2 = requireCreateError();
|
|
3645
|
-
xhr = /* @__PURE__ */ __name(function xhrAdapter(config) {
|
|
3646
|
-
return new Promise(/* @__PURE__ */ __name(function dispatchXhrRequest(resolve, reject) {
|
|
3647
|
-
var requestData = config.data;
|
|
3648
|
-
var requestHeaders = config.headers;
|
|
3649
|
-
var responseType = config.responseType;
|
|
3650
|
-
if (utils2.isFormData(requestData)) {
|
|
3651
|
-
delete requestHeaders["Content-Type"];
|
|
3652
|
-
}
|
|
3653
|
-
var request2 = new XMLHttpRequest();
|
|
3654
|
-
if (config.auth) {
|
|
3655
|
-
var username = config.auth.username || "";
|
|
3656
|
-
var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : "";
|
|
3657
|
-
requestHeaders.Authorization = "Basic " + btoa(username + ":" + password);
|
|
3658
|
-
}
|
|
3659
|
-
var fullPath = buildFullPath2(config.baseURL, config.url);
|
|
3660
|
-
request2.open(config.method.toUpperCase(), buildURL3(fullPath, config.params, config.paramsSerializer), true);
|
|
3661
|
-
request2.timeout = config.timeout;
|
|
3662
|
-
function onloadend() {
|
|
3663
|
-
if (!request2) {
|
|
3664
|
-
return;
|
|
3665
|
-
}
|
|
3666
|
-
var responseHeaders = "getAllResponseHeaders" in request2 ? parseHeaders2(request2.getAllResponseHeaders()) : null;
|
|
3667
|
-
var responseData = !responseType || responseType === "text" || responseType === "json" ? request2.responseText : request2.response;
|
|
3668
|
-
var response = {
|
|
3669
|
-
data: responseData,
|
|
3670
|
-
status: request2.status,
|
|
3671
|
-
statusText: request2.statusText,
|
|
3672
|
-
headers: responseHeaders,
|
|
3673
|
-
config,
|
|
3674
|
-
request: request2
|
|
3675
|
-
};
|
|
3676
|
-
settle2(resolve, reject, response);
|
|
3677
|
-
request2 = null;
|
|
3678
|
-
}
|
|
3679
|
-
__name(onloadend, "onloadend");
|
|
3680
|
-
if ("onloadend" in request2) {
|
|
3681
|
-
request2.onloadend = onloadend;
|
|
3682
|
-
} else {
|
|
3683
|
-
request2.onreadystatechange = /* @__PURE__ */ __name(function handleLoad() {
|
|
3684
|
-
if (!request2 || request2.readyState !== 4) {
|
|
3685
|
-
return;
|
|
3686
|
-
}
|
|
3687
|
-
if (request2.status === 0 && !(request2.responseURL && request2.responseURL.indexOf("file:") === 0)) {
|
|
3688
|
-
return;
|
|
3689
|
-
}
|
|
3690
|
-
setTimeout(onloadend);
|
|
3691
|
-
}, "handleLoad");
|
|
3692
|
-
}
|
|
3693
|
-
request2.onabort = /* @__PURE__ */ __name(function handleAbort() {
|
|
3694
|
-
if (!request2) {
|
|
3695
|
-
return;
|
|
3696
|
-
}
|
|
3697
|
-
reject(createError2("Request aborted", config, "ECONNABORTED", request2));
|
|
3698
|
-
request2 = null;
|
|
3699
|
-
}, "handleAbort");
|
|
3700
|
-
request2.onerror = /* @__PURE__ */ __name(function handleError() {
|
|
3701
|
-
reject(createError2("Network Error", config, null, request2));
|
|
3702
|
-
request2 = null;
|
|
3703
|
-
}, "handleError");
|
|
3704
|
-
request2.ontimeout = /* @__PURE__ */ __name(function handleTimeout() {
|
|
3705
|
-
var timeoutErrorMessage = "timeout of " + config.timeout + "ms exceeded";
|
|
3706
|
-
if (config.timeoutErrorMessage) {
|
|
3707
|
-
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
3708
|
-
}
|
|
3709
|
-
reject(createError2(
|
|
3710
|
-
timeoutErrorMessage,
|
|
3711
|
-
config,
|
|
3712
|
-
config.transitional && config.transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
|
|
3713
|
-
request2
|
|
3714
|
-
));
|
|
3715
|
-
request2 = null;
|
|
3716
|
-
}, "handleTimeout");
|
|
3717
|
-
if (utils2.isStandardBrowserEnv()) {
|
|
3718
|
-
var xsrfValue = (config.withCredentials || isURLSameOrigin2(fullPath)) && config.xsrfCookieName ? cookies2.read(config.xsrfCookieName) : void 0;
|
|
3719
|
-
if (xsrfValue) {
|
|
3720
|
-
requestHeaders[config.xsrfHeaderName] = xsrfValue;
|
|
3721
|
-
}
|
|
3722
|
-
}
|
|
3723
|
-
if ("setRequestHeader" in request2) {
|
|
3724
|
-
utils2.forEach(requestHeaders, /* @__PURE__ */ __name(function setRequestHeader(val, key) {
|
|
3725
|
-
if (typeof requestData === "undefined" && key.toLowerCase() === "content-type") {
|
|
3726
|
-
delete requestHeaders[key];
|
|
3727
|
-
} else {
|
|
3728
|
-
request2.setRequestHeader(key, val);
|
|
3729
|
-
}
|
|
3730
|
-
}, "setRequestHeader"));
|
|
3731
|
-
}
|
|
3732
|
-
if (!utils2.isUndefined(config.withCredentials)) {
|
|
3733
|
-
request2.withCredentials = !!config.withCredentials;
|
|
3734
|
-
}
|
|
3735
|
-
if (responseType && responseType !== "json") {
|
|
3736
|
-
request2.responseType = config.responseType;
|
|
3737
|
-
}
|
|
3738
|
-
if (typeof config.onDownloadProgress === "function") {
|
|
3739
|
-
request2.addEventListener("progress", config.onDownloadProgress);
|
|
3740
|
-
}
|
|
3741
|
-
if (typeof config.onUploadProgress === "function" && request2.upload) {
|
|
3742
|
-
request2.upload.addEventListener("progress", config.onUploadProgress);
|
|
3743
|
-
}
|
|
3744
|
-
if (config.cancelToken) {
|
|
3745
|
-
config.cancelToken.promise.then(/* @__PURE__ */ __name(function onCanceled(cancel) {
|
|
3746
|
-
if (!request2) {
|
|
3747
|
-
return;
|
|
3748
|
-
}
|
|
3749
|
-
request2.abort();
|
|
3750
|
-
reject(cancel);
|
|
3751
|
-
request2 = null;
|
|
3752
|
-
}, "onCanceled"));
|
|
3753
|
-
}
|
|
3754
|
-
if (!requestData) {
|
|
3755
|
-
requestData = null;
|
|
3756
|
-
}
|
|
3757
|
-
request2.send(requestData);
|
|
3758
|
-
}, "dispatchXhrRequest"));
|
|
3759
|
-
}, "xhrAdapter");
|
|
3760
|
-
return xhr;
|
|
3761
|
-
}
|
|
3762
|
-
__name(requireXhr, "requireXhr");
|
|
3763
|
-
var utils$8 = utils$c;
|
|
3764
|
-
var normalizeHeaderName2 = normalizeHeaderName$1;
|
|
3765
|
-
var enhanceError2 = enhanceError$1;
|
|
3766
|
-
var DEFAULT_CONTENT_TYPE = {
|
|
3767
|
-
"Content-Type": "application/x-www-form-urlencoded"
|
|
3768
|
-
};
|
|
3769
|
-
function setContentTypeIfUnset(headers, value) {
|
|
3770
|
-
if (!utils$8.isUndefined(headers) && utils$8.isUndefined(headers["Content-Type"])) {
|
|
3771
|
-
headers["Content-Type"] = value;
|
|
3772
|
-
}
|
|
3773
|
-
}
|
|
3774
|
-
__name(setContentTypeIfUnset, "setContentTypeIfUnset");
|
|
3775
|
-
function getDefaultAdapter() {
|
|
3776
|
-
var adapter;
|
|
3777
|
-
if (typeof XMLHttpRequest !== "undefined") {
|
|
3778
|
-
adapter = requireXhr();
|
|
3779
|
-
} else if (typeof process !== "undefined" && Object.prototype.toString.call(process) === "[object process]") {
|
|
3780
|
-
adapter = requireXhr();
|
|
3781
|
-
}
|
|
3782
|
-
return adapter;
|
|
3783
|
-
}
|
|
3784
|
-
__name(getDefaultAdapter, "getDefaultAdapter");
|
|
3785
|
-
function stringifySafely(rawValue, parser, encoder) {
|
|
3786
|
-
if (utils$8.isString(rawValue)) {
|
|
3787
|
-
try {
|
|
3788
|
-
(parser || JSON.parse)(rawValue);
|
|
3789
|
-
return utils$8.trim(rawValue);
|
|
3790
|
-
} catch (e2) {
|
|
3791
|
-
if (e2.name !== "SyntaxError") {
|
|
3792
|
-
throw e2;
|
|
3793
|
-
}
|
|
3794
|
-
}
|
|
3795
|
-
}
|
|
3796
|
-
return (encoder || JSON.stringify)(rawValue);
|
|
3797
|
-
}
|
|
3798
|
-
__name(stringifySafely, "stringifySafely");
|
|
3799
|
-
var defaults$5 = {
|
|
3800
|
-
transitional: {
|
|
3801
|
-
silentJSONParsing: true,
|
|
3802
|
-
forcedJSONParsing: true,
|
|
3803
|
-
clarifyTimeoutError: false
|
|
3804
|
-
},
|
|
3805
|
-
adapter: getDefaultAdapter(),
|
|
3806
|
-
transformRequest: [/* @__PURE__ */ __name(function transformRequest(data, headers) {
|
|
3807
|
-
normalizeHeaderName2(headers, "Accept");
|
|
3808
|
-
normalizeHeaderName2(headers, "Content-Type");
|
|
3809
|
-
if (utils$8.isFormData(data) || utils$8.isArrayBuffer(data) || utils$8.isBuffer(data) || utils$8.isStream(data) || utils$8.isFile(data) || utils$8.isBlob(data)) {
|
|
3810
|
-
return data;
|
|
3811
|
-
}
|
|
3812
|
-
if (utils$8.isArrayBufferView(data)) {
|
|
3813
|
-
return data.buffer;
|
|
3814
|
-
}
|
|
3815
|
-
if (utils$8.isURLSearchParams(data)) {
|
|
3816
|
-
setContentTypeIfUnset(headers, "application/x-www-form-urlencoded;charset=utf-8");
|
|
3817
|
-
return data.toString();
|
|
3818
|
-
}
|
|
3819
|
-
if (utils$8.isObject(data) || headers && headers["Content-Type"] === "application/json") {
|
|
3820
|
-
setContentTypeIfUnset(headers, "application/json");
|
|
3821
|
-
return stringifySafely(data);
|
|
3822
|
-
}
|
|
3823
|
-
return data;
|
|
3824
|
-
}, "transformRequest")],
|
|
3825
|
-
transformResponse: [/* @__PURE__ */ __name(function transformResponse(data) {
|
|
3826
|
-
var transitional2 = this.transitional;
|
|
3827
|
-
var silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
3828
|
-
var forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
3829
|
-
var strictJSONParsing = !silentJSONParsing && this.responseType === "json";
|
|
3830
|
-
if (strictJSONParsing || forcedJSONParsing && utils$8.isString(data) && data.length) {
|
|
3831
|
-
try {
|
|
3832
|
-
return JSON.parse(data);
|
|
3833
|
-
} catch (e2) {
|
|
3834
|
-
if (strictJSONParsing) {
|
|
3835
|
-
if (e2.name === "SyntaxError") {
|
|
3836
|
-
throw enhanceError2(e2, this, "E_JSON_PARSE");
|
|
3837
|
-
}
|
|
3838
|
-
throw e2;
|
|
3839
|
-
}
|
|
3840
|
-
}
|
|
3841
|
-
}
|
|
3842
|
-
return data;
|
|
3843
|
-
}, "transformResponse")],
|
|
3844
|
-
/**
|
|
3845
|
-
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
3846
|
-
* timeout is not created.
|
|
3847
|
-
*/
|
|
3848
|
-
timeout: 0,
|
|
3849
|
-
xsrfCookieName: "XSRF-TOKEN",
|
|
3850
|
-
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
3851
|
-
maxContentLength: -1,
|
|
3852
|
-
maxBodyLength: -1,
|
|
3853
|
-
validateStatus: /* @__PURE__ */ __name(function validateStatus(status) {
|
|
3854
|
-
return status >= 200 && status < 300;
|
|
3855
|
-
}, "validateStatus")
|
|
3856
|
-
};
|
|
3857
|
-
defaults$5.headers = {
|
|
3858
|
-
common: {
|
|
3859
|
-
"Accept": "application/json, text/plain, */*"
|
|
3860
|
-
}
|
|
3861
|
-
};
|
|
3862
|
-
utils$8.forEach(["delete", "get", "head"], /* @__PURE__ */ __name(function forEachMethodNoData(method) {
|
|
3863
|
-
defaults$5.headers[method] = {};
|
|
3864
|
-
}, "forEachMethodNoData"));
|
|
3865
|
-
utils$8.forEach(["post", "put", "patch"], /* @__PURE__ */ __name(function forEachMethodWithData(method) {
|
|
3866
|
-
defaults$5.headers[method] = utils$8.merge(DEFAULT_CONTENT_TYPE);
|
|
3867
|
-
}, "forEachMethodWithData"));
|
|
3868
|
-
var defaults_1 = defaults$5;
|
|
3869
|
-
var utils$7 = utils$c;
|
|
3870
|
-
var defaults$4 = defaults_1;
|
|
3871
|
-
var transformData$1 = /* @__PURE__ */ __name(function transformData(data, headers, fns) {
|
|
3872
|
-
var context = this || defaults$4;
|
|
3873
|
-
utils$7.forEach(fns, /* @__PURE__ */ __name(function transform2(fn4) {
|
|
3874
|
-
data = fn4.call(context, data, headers);
|
|
3875
|
-
}, "transform"));
|
|
3876
|
-
return data;
|
|
3877
|
-
}, "transformData");
|
|
3878
|
-
var isCancel$1;
|
|
3879
|
-
var hasRequiredIsCancel;
|
|
3880
|
-
function requireIsCancel() {
|
|
3881
|
-
if (hasRequiredIsCancel)
|
|
3882
|
-
return isCancel$1;
|
|
3883
|
-
hasRequiredIsCancel = 1;
|
|
3884
|
-
isCancel$1 = /* @__PURE__ */ __name(function isCancel2(value) {
|
|
3885
|
-
return !!(value && value.__CANCEL__);
|
|
3886
|
-
}, "isCancel");
|
|
3887
|
-
return isCancel$1;
|
|
3888
|
-
}
|
|
3889
|
-
__name(requireIsCancel, "requireIsCancel");
|
|
3890
|
-
var utils$6 = utils$c;
|
|
3891
|
-
var transformData2 = transformData$1;
|
|
3892
|
-
var isCancel = requireIsCancel();
|
|
3893
|
-
var defaults$3 = defaults_1;
|
|
3894
|
-
function throwIfCancellationRequested(config) {
|
|
3895
|
-
if (config.cancelToken) {
|
|
3896
|
-
config.cancelToken.throwIfRequested();
|
|
3897
|
-
}
|
|
3898
|
-
}
|
|
3899
|
-
__name(throwIfCancellationRequested, "throwIfCancellationRequested");
|
|
3900
|
-
var dispatchRequest$1 = /* @__PURE__ */ __name(function dispatchRequest(config) {
|
|
3901
|
-
throwIfCancellationRequested(config);
|
|
3902
|
-
config.headers = config.headers || {};
|
|
3903
|
-
config.data = transformData2.call(
|
|
3904
|
-
config,
|
|
3905
|
-
config.data,
|
|
3906
|
-
config.headers,
|
|
3907
|
-
config.transformRequest
|
|
3908
|
-
);
|
|
3909
|
-
config.headers = utils$6.merge(
|
|
3910
|
-
config.headers.common || {},
|
|
3911
|
-
config.headers[config.method] || {},
|
|
3912
|
-
config.headers
|
|
3913
|
-
);
|
|
3914
|
-
utils$6.forEach(
|
|
3915
|
-
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
3916
|
-
/* @__PURE__ */ __name(function cleanHeaderConfig(method) {
|
|
3917
|
-
delete config.headers[method];
|
|
3918
|
-
}, "cleanHeaderConfig")
|
|
3919
|
-
);
|
|
3920
|
-
var adapter = config.adapter || defaults$3.adapter;
|
|
3921
|
-
return adapter(config).then(/* @__PURE__ */ __name(function onAdapterResolution(response) {
|
|
3922
|
-
throwIfCancellationRequested(config);
|
|
3923
|
-
response.data = transformData2.call(
|
|
3924
|
-
config,
|
|
3925
|
-
response.data,
|
|
3926
|
-
response.headers,
|
|
3927
|
-
config.transformResponse
|
|
3928
|
-
);
|
|
3929
|
-
return response;
|
|
3930
|
-
}, "onAdapterResolution"), /* @__PURE__ */ __name(function onAdapterRejection(reason) {
|
|
3931
|
-
if (!isCancel(reason)) {
|
|
3932
|
-
throwIfCancellationRequested(config);
|
|
3933
|
-
if (reason && reason.response) {
|
|
3934
|
-
reason.response.data = transformData2.call(
|
|
3935
|
-
config,
|
|
3936
|
-
reason.response.data,
|
|
3937
|
-
reason.response.headers,
|
|
3938
|
-
config.transformResponse
|
|
3939
|
-
);
|
|
3940
|
-
}
|
|
3941
|
-
}
|
|
3942
|
-
return Promise.reject(reason);
|
|
3943
|
-
}, "onAdapterRejection"));
|
|
3944
|
-
}, "dispatchRequest");
|
|
3945
|
-
var utils$5 = utils$c;
|
|
3946
|
-
var mergeConfig$2 = /* @__PURE__ */ __name(function mergeConfig(config1, config2) {
|
|
3947
|
-
config2 = config2 || {};
|
|
3948
|
-
var config = {};
|
|
3949
|
-
var valueFromConfig2Keys = ["url", "method", "data"];
|
|
3950
|
-
var mergeDeepPropertiesKeys = ["headers", "auth", "proxy", "params"];
|
|
3951
|
-
var defaultToConfig2Keys = [
|
|
3952
|
-
"baseURL",
|
|
3953
|
-
"transformRequest",
|
|
3954
|
-
"transformResponse",
|
|
3955
|
-
"paramsSerializer",
|
|
3956
|
-
"timeout",
|
|
3957
|
-
"timeoutMessage",
|
|
3958
|
-
"withCredentials",
|
|
3959
|
-
"adapter",
|
|
3960
|
-
"responseType",
|
|
3961
|
-
"xsrfCookieName",
|
|
3962
|
-
"xsrfHeaderName",
|
|
3963
|
-
"onUploadProgress",
|
|
3964
|
-
"onDownloadProgress",
|
|
3965
|
-
"decompress",
|
|
3966
|
-
"maxContentLength",
|
|
3967
|
-
"maxBodyLength",
|
|
3968
|
-
"maxRedirects",
|
|
3969
|
-
"transport",
|
|
3970
|
-
"httpAgent",
|
|
3971
|
-
"httpsAgent",
|
|
3972
|
-
"cancelToken",
|
|
3973
|
-
"socketPath",
|
|
3974
|
-
"responseEncoding"
|
|
3975
|
-
];
|
|
3976
|
-
var directMergeKeys = ["validateStatus"];
|
|
3977
|
-
function getMergedValue(target, source) {
|
|
3978
|
-
if (utils$5.isPlainObject(target) && utils$5.isPlainObject(source)) {
|
|
3979
|
-
return utils$5.merge(target, source);
|
|
3980
|
-
} else if (utils$5.isPlainObject(source)) {
|
|
3981
|
-
return utils$5.merge({}, source);
|
|
3982
|
-
} else if (utils$5.isArray(source)) {
|
|
3983
|
-
return source.slice();
|
|
3984
|
-
}
|
|
3985
|
-
return source;
|
|
3986
|
-
}
|
|
3987
|
-
__name(getMergedValue, "getMergedValue");
|
|
3988
|
-
function mergeDeepProperties(prop) {
|
|
3989
|
-
if (!utils$5.isUndefined(config2[prop])) {
|
|
3990
|
-
config[prop] = getMergedValue(config1[prop], config2[prop]);
|
|
3991
|
-
} else if (!utils$5.isUndefined(config1[prop])) {
|
|
3992
|
-
config[prop] = getMergedValue(void 0, config1[prop]);
|
|
3993
|
-
}
|
|
3994
|
-
}
|
|
3995
|
-
__name(mergeDeepProperties, "mergeDeepProperties");
|
|
3996
|
-
utils$5.forEach(valueFromConfig2Keys, /* @__PURE__ */ __name(function valueFromConfig2(prop) {
|
|
3997
|
-
if (!utils$5.isUndefined(config2[prop])) {
|
|
3998
|
-
config[prop] = getMergedValue(void 0, config2[prop]);
|
|
3999
|
-
}
|
|
4000
|
-
}, "valueFromConfig2"));
|
|
4001
|
-
utils$5.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);
|
|
4002
|
-
utils$5.forEach(defaultToConfig2Keys, /* @__PURE__ */ __name(function defaultToConfig2(prop) {
|
|
4003
|
-
if (!utils$5.isUndefined(config2[prop])) {
|
|
4004
|
-
config[prop] = getMergedValue(void 0, config2[prop]);
|
|
4005
|
-
} else if (!utils$5.isUndefined(config1[prop])) {
|
|
4006
|
-
config[prop] = getMergedValue(void 0, config1[prop]);
|
|
4007
|
-
}
|
|
4008
|
-
}, "defaultToConfig2"));
|
|
4009
|
-
utils$5.forEach(directMergeKeys, /* @__PURE__ */ __name(function merge3(prop) {
|
|
4010
|
-
if (prop in config2) {
|
|
4011
|
-
config[prop] = getMergedValue(config1[prop], config2[prop]);
|
|
4012
|
-
} else if (prop in config1) {
|
|
4013
|
-
config[prop] = getMergedValue(void 0, config1[prop]);
|
|
4014
|
-
}
|
|
4015
|
-
}, "merge"));
|
|
4016
|
-
var axiosKeys = valueFromConfig2Keys.concat(mergeDeepPropertiesKeys).concat(defaultToConfig2Keys).concat(directMergeKeys);
|
|
4017
|
-
var otherKeys = Object.keys(config1).concat(Object.keys(config2)).filter(/* @__PURE__ */ __name(function filterAxiosKeys(key) {
|
|
4018
|
-
return axiosKeys.indexOf(key) === -1;
|
|
4019
|
-
}, "filterAxiosKeys"));
|
|
4020
|
-
utils$5.forEach(otherKeys, mergeDeepProperties);
|
|
4021
|
-
return config;
|
|
4022
|
-
}, "mergeConfig");
|
|
4023
|
-
const name$1 = "axios";
|
|
4024
|
-
const version = "0.21.4";
|
|
4025
|
-
const description = "Promise based HTTP client for the browser and node.js";
|
|
4026
|
-
const main = "index.js";
|
|
4027
|
-
const scripts = {
|
|
4028
|
-
test: "grunt test",
|
|
4029
|
-
start: "node ./sandbox/server.js",
|
|
4030
|
-
build: "NODE_ENV=production grunt build",
|
|
4031
|
-
preversion: "npm test",
|
|
4032
|
-
version: "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",
|
|
4033
|
-
postversion: "git push && git push --tags",
|
|
4034
|
-
examples: "node ./examples/server.js",
|
|
4035
|
-
coveralls: "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
|
|
4036
|
-
fix: "eslint --fix lib/**/*.js"
|
|
4037
|
-
};
|
|
4038
|
-
const repository = {
|
|
4039
|
-
type: "git",
|
|
4040
|
-
url: "https://github.com/axios/axios.git"
|
|
4041
|
-
};
|
|
4042
|
-
const keywords = [
|
|
4043
|
-
"xhr",
|
|
4044
|
-
"http",
|
|
4045
|
-
"ajax",
|
|
4046
|
-
"promise",
|
|
4047
|
-
"node"
|
|
4048
|
-
];
|
|
4049
|
-
const author = "Matt Zabriskie";
|
|
4050
|
-
const license = "MIT";
|
|
4051
|
-
const bugs = {
|
|
4052
|
-
url: "https://github.com/axios/axios/issues"
|
|
4053
|
-
};
|
|
4054
|
-
const homepage = "https://axios-http.com";
|
|
4055
|
-
const devDependencies = {
|
|
4056
|
-
coveralls: "^3.0.0",
|
|
4057
|
-
"es6-promise": "^4.2.4",
|
|
4058
|
-
grunt: "^1.3.0",
|
|
4059
|
-
"grunt-banner": "^0.6.0",
|
|
4060
|
-
"grunt-cli": "^1.2.0",
|
|
4061
|
-
"grunt-contrib-clean": "^1.1.0",
|
|
4062
|
-
"grunt-contrib-watch": "^1.0.0",
|
|
4063
|
-
"grunt-eslint": "^23.0.0",
|
|
4064
|
-
"grunt-karma": "^4.0.0",
|
|
4065
|
-
"grunt-mocha-test": "^0.13.3",
|
|
4066
|
-
"grunt-ts": "^6.0.0-beta.19",
|
|
4067
|
-
"grunt-webpack": "^4.0.2",
|
|
4068
|
-
"istanbul-instrumenter-loader": "^1.0.0",
|
|
4069
|
-
"jasmine-core": "^2.4.1",
|
|
4070
|
-
karma: "^6.3.2",
|
|
4071
|
-
"karma-chrome-launcher": "^3.1.0",
|
|
4072
|
-
"karma-firefox-launcher": "^2.1.0",
|
|
4073
|
-
"karma-jasmine": "^1.1.1",
|
|
4074
|
-
"karma-jasmine-ajax": "^0.1.13",
|
|
4075
|
-
"karma-safari-launcher": "^1.0.0",
|
|
4076
|
-
"karma-sauce-launcher": "^4.3.6",
|
|
4077
|
-
"karma-sinon": "^1.0.5",
|
|
4078
|
-
"karma-sourcemap-loader": "^0.3.8",
|
|
4079
|
-
"karma-webpack": "^4.0.2",
|
|
4080
|
-
"load-grunt-tasks": "^3.5.2",
|
|
4081
|
-
minimist: "^1.2.0",
|
|
4082
|
-
mocha: "^8.2.1",
|
|
4083
|
-
sinon: "^4.5.0",
|
|
4084
|
-
"terser-webpack-plugin": "^4.2.3",
|
|
4085
|
-
typescript: "^4.0.5",
|
|
4086
|
-
"url-search-params": "^0.10.0",
|
|
4087
|
-
webpack: "^4.44.2",
|
|
4088
|
-
"webpack-dev-server": "^3.11.0"
|
|
4089
|
-
};
|
|
4090
|
-
const browser$1 = {
|
|
4091
|
-
"./lib/adapters/http.js": "./lib/adapters/xhr.js"
|
|
4092
|
-
};
|
|
4093
|
-
const jsdelivr = "dist/axios.min.js";
|
|
4094
|
-
const unpkg = "dist/axios.min.js";
|
|
4095
|
-
const typings = "./index.d.ts";
|
|
4096
|
-
const dependencies = {
|
|
4097
|
-
"follow-redirects": "^1.14.0"
|
|
4098
|
-
};
|
|
4099
|
-
const bundlesize = [
|
|
4100
|
-
{
|
|
4101
|
-
path: "./dist/axios.min.js",
|
|
4102
|
-
threshold: "5kB"
|
|
4103
|
-
}
|
|
4104
|
-
];
|
|
4105
|
-
const require$$0$1 = {
|
|
4106
|
-
name: name$1,
|
|
4107
|
-
version,
|
|
4108
|
-
description,
|
|
4109
|
-
main,
|
|
4110
|
-
scripts,
|
|
4111
|
-
repository,
|
|
4112
|
-
keywords,
|
|
4113
|
-
author,
|
|
4114
|
-
license,
|
|
4115
|
-
bugs,
|
|
4116
|
-
homepage,
|
|
4117
|
-
devDependencies,
|
|
4118
|
-
browser: browser$1,
|
|
4119
|
-
jsdelivr,
|
|
4120
|
-
unpkg,
|
|
4121
|
-
typings,
|
|
4122
|
-
dependencies,
|
|
4123
|
-
bundlesize
|
|
4124
|
-
};
|
|
4125
|
-
var pkg = require$$0$1;
|
|
4126
|
-
var validators$1 = {};
|
|
4127
|
-
["object", "boolean", "number", "function", "string", "symbol"].forEach(function(type, i) {
|
|
4128
|
-
validators$1[type] = /* @__PURE__ */ __name(function validator2(thing) {
|
|
4129
|
-
return typeof thing === type || "a" + (i < 1 ? "n " : " ") + type;
|
|
4130
|
-
}, "validator");
|
|
4131
|
-
});
|
|
4132
|
-
var deprecatedWarnings = {};
|
|
4133
|
-
var currentVerArr = pkg.version.split(".");
|
|
4134
|
-
function isOlderVersion(version2, thanVersion) {
|
|
4135
|
-
var pkgVersionArr = thanVersion ? thanVersion.split(".") : currentVerArr;
|
|
4136
|
-
var destVer = version2.split(".");
|
|
4137
|
-
for (var i = 0; i < 3; i++) {
|
|
4138
|
-
if (pkgVersionArr[i] > destVer[i]) {
|
|
4139
|
-
return true;
|
|
4140
|
-
} else if (pkgVersionArr[i] < destVer[i]) {
|
|
4141
|
-
return false;
|
|
4142
|
-
}
|
|
4143
|
-
}
|
|
4144
|
-
return false;
|
|
4145
|
-
}
|
|
4146
|
-
__name(isOlderVersion, "isOlderVersion");
|
|
4147
|
-
validators$1.transitional = /* @__PURE__ */ __name(function transitional(validator2, version2, message) {
|
|
4148
|
-
var isDeprecated = version2 && isOlderVersion(version2);
|
|
4149
|
-
function formatMessage(opt, desc) {
|
|
4150
|
-
return "[Axios v" + pkg.version + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
|
|
4151
|
-
}
|
|
4152
|
-
__name(formatMessage, "formatMessage");
|
|
4153
|
-
return function(value, opt, opts) {
|
|
4154
|
-
if (validator2 === false) {
|
|
4155
|
-
throw new Error(formatMessage(opt, " has been removed in " + version2));
|
|
4156
|
-
}
|
|
4157
|
-
if (isDeprecated && !deprecatedWarnings[opt]) {
|
|
4158
|
-
deprecatedWarnings[opt] = true;
|
|
4159
|
-
console.warn(
|
|
4160
|
-
formatMessage(
|
|
4161
|
-
opt,
|
|
4162
|
-
" has been deprecated since v" + version2 + " and will be removed in the near future"
|
|
4163
|
-
)
|
|
4164
|
-
);
|
|
4165
|
-
}
|
|
4166
|
-
return validator2 ? validator2(value, opt, opts) : true;
|
|
4167
|
-
};
|
|
4168
|
-
}, "transitional");
|
|
4169
|
-
function assertOptions(options, schema, allowUnknown) {
|
|
4170
|
-
if (typeof options !== "object") {
|
|
4171
|
-
throw new TypeError("options must be an object");
|
|
4172
|
-
}
|
|
4173
|
-
var keys3 = Object.keys(options);
|
|
4174
|
-
var i = keys3.length;
|
|
4175
|
-
while (i-- > 0) {
|
|
4176
|
-
var opt = keys3[i];
|
|
4177
|
-
var validator2 = schema[opt];
|
|
4178
|
-
if (validator2) {
|
|
4179
|
-
var value = options[opt];
|
|
4180
|
-
var result = value === void 0 || validator2(value, opt, options);
|
|
4181
|
-
if (result !== true) {
|
|
4182
|
-
throw new TypeError("option " + opt + " must be " + result);
|
|
4183
|
-
}
|
|
4184
|
-
continue;
|
|
4185
|
-
}
|
|
4186
|
-
if (allowUnknown !== true) {
|
|
4187
|
-
throw Error("Unknown option " + opt);
|
|
4188
|
-
}
|
|
4189
|
-
}
|
|
4190
|
-
}
|
|
4191
|
-
__name(assertOptions, "assertOptions");
|
|
4192
|
-
var validator$1 = {
|
|
4193
|
-
isOlderVersion,
|
|
4194
|
-
assertOptions,
|
|
4195
|
-
validators: validators$1
|
|
4196
|
-
};
|
|
4197
|
-
var utils$4 = utils$c;
|
|
4198
|
-
var buildURL2 = buildURL$1;
|
|
4199
|
-
var InterceptorManager = InterceptorManager_1;
|
|
4200
|
-
var dispatchRequest2 = dispatchRequest$1;
|
|
4201
|
-
var mergeConfig$1 = mergeConfig$2;
|
|
4202
|
-
var validator = validator$1;
|
|
4203
|
-
var validators = validator.validators;
|
|
4204
|
-
function Axios$1(instanceConfig) {
|
|
4205
|
-
this.defaults = instanceConfig;
|
|
4206
|
-
this.interceptors = {
|
|
4207
|
-
request: new InterceptorManager(),
|
|
4208
|
-
response: new InterceptorManager()
|
|
4209
|
-
};
|
|
4210
|
-
}
|
|
4211
|
-
__name(Axios$1, "Axios$1");
|
|
4212
|
-
Axios$1.prototype.request = /* @__PURE__ */ __name(function request(config) {
|
|
4213
|
-
if (typeof config === "string") {
|
|
4214
|
-
config = arguments[1] || {};
|
|
4215
|
-
config.url = arguments[0];
|
|
4216
|
-
} else {
|
|
4217
|
-
config = config || {};
|
|
4218
|
-
}
|
|
4219
|
-
config = mergeConfig$1(this.defaults, config);
|
|
4220
|
-
if (config.method) {
|
|
4221
|
-
config.method = config.method.toLowerCase();
|
|
4222
|
-
} else if (this.defaults.method) {
|
|
4223
|
-
config.method = this.defaults.method.toLowerCase();
|
|
4224
|
-
} else {
|
|
4225
|
-
config.method = "get";
|
|
4226
|
-
}
|
|
4227
|
-
var transitional2 = config.transitional;
|
|
4228
|
-
if (transitional2 !== void 0) {
|
|
4229
|
-
validator.assertOptions(transitional2, {
|
|
4230
|
-
silentJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
|
|
4231
|
-
forcedJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
|
|
4232
|
-
clarifyTimeoutError: validators.transitional(validators.boolean, "1.0.0")
|
|
4233
|
-
}, false);
|
|
4234
|
-
}
|
|
4235
|
-
var requestInterceptorChain = [];
|
|
4236
|
-
var synchronousRequestInterceptors = true;
|
|
4237
|
-
this.interceptors.request.forEach(/* @__PURE__ */ __name(function unshiftRequestInterceptors(interceptor) {
|
|
4238
|
-
if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config) === false) {
|
|
4239
|
-
return;
|
|
4240
|
-
}
|
|
4241
|
-
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
4242
|
-
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
4243
|
-
}, "unshiftRequestInterceptors"));
|
|
4244
|
-
var responseInterceptorChain = [];
|
|
4245
|
-
this.interceptors.response.forEach(/* @__PURE__ */ __name(function pushResponseInterceptors(interceptor) {
|
|
4246
|
-
responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
4247
|
-
}, "pushResponseInterceptors"));
|
|
4248
|
-
var promise;
|
|
4249
|
-
if (!synchronousRequestInterceptors) {
|
|
4250
|
-
var chain = [dispatchRequest2, void 0];
|
|
4251
|
-
Array.prototype.unshift.apply(chain, requestInterceptorChain);
|
|
4252
|
-
chain = chain.concat(responseInterceptorChain);
|
|
4253
|
-
promise = Promise.resolve(config);
|
|
4254
|
-
while (chain.length) {
|
|
4255
|
-
promise = promise.then(chain.shift(), chain.shift());
|
|
4256
|
-
}
|
|
4257
|
-
return promise;
|
|
4258
|
-
}
|
|
4259
|
-
var newConfig = config;
|
|
4260
|
-
while (requestInterceptorChain.length) {
|
|
4261
|
-
var onFulfilled = requestInterceptorChain.shift();
|
|
4262
|
-
var onRejected = requestInterceptorChain.shift();
|
|
4263
|
-
try {
|
|
4264
|
-
newConfig = onFulfilled(newConfig);
|
|
4265
|
-
} catch (error) {
|
|
4266
|
-
onRejected(error);
|
|
4267
|
-
break;
|
|
4268
|
-
}
|
|
4269
|
-
}
|
|
4270
|
-
try {
|
|
4271
|
-
promise = dispatchRequest2(newConfig);
|
|
4272
|
-
} catch (error) {
|
|
4273
|
-
return Promise.reject(error);
|
|
4274
|
-
}
|
|
4275
|
-
while (responseInterceptorChain.length) {
|
|
4276
|
-
promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
|
|
4277
|
-
}
|
|
4278
|
-
return promise;
|
|
4279
|
-
}, "request");
|
|
4280
|
-
Axios$1.prototype.getUri = /* @__PURE__ */ __name(function getUri(config) {
|
|
4281
|
-
config = mergeConfig$1(this.defaults, config);
|
|
4282
|
-
return buildURL2(config.url, config.params, config.paramsSerializer).replace(/^\?/, "");
|
|
4283
|
-
}, "getUri");
|
|
4284
|
-
utils$4.forEach(["delete", "get", "head", "options"], /* @__PURE__ */ __name(function forEachMethodNoData2(method) {
|
|
4285
|
-
Axios$1.prototype[method] = function(url, config) {
|
|
4286
|
-
return this.request(mergeConfig$1(config || {}, {
|
|
4287
|
-
method,
|
|
4288
|
-
url,
|
|
4289
|
-
data: (config || {}).data
|
|
4290
|
-
}));
|
|
4291
|
-
};
|
|
4292
|
-
}, "forEachMethodNoData"));
|
|
4293
|
-
utils$4.forEach(["post", "put", "patch"], /* @__PURE__ */ __name(function forEachMethodWithData2(method) {
|
|
4294
|
-
Axios$1.prototype[method] = function(url, data, config) {
|
|
4295
|
-
return this.request(mergeConfig$1(config || {}, {
|
|
4296
|
-
method,
|
|
4297
|
-
url,
|
|
4298
|
-
data
|
|
4299
|
-
}));
|
|
4300
|
-
};
|
|
4301
|
-
}, "forEachMethodWithData"));
|
|
4302
|
-
var Axios_1 = Axios$1;
|
|
4303
|
-
var Cancel_1;
|
|
4304
|
-
var hasRequiredCancel;
|
|
4305
|
-
function requireCancel() {
|
|
4306
|
-
if (hasRequiredCancel)
|
|
4307
|
-
return Cancel_1;
|
|
4308
|
-
hasRequiredCancel = 1;
|
|
4309
|
-
function Cancel(message) {
|
|
4310
|
-
this.message = message;
|
|
4311
|
-
}
|
|
4312
|
-
__name(Cancel, "Cancel");
|
|
4313
|
-
Cancel.prototype.toString = /* @__PURE__ */ __name(function toString3() {
|
|
4314
|
-
return "Cancel" + (this.message ? ": " + this.message : "");
|
|
4315
|
-
}, "toString");
|
|
4316
|
-
Cancel.prototype.__CANCEL__ = true;
|
|
4317
|
-
Cancel_1 = Cancel;
|
|
4318
|
-
return Cancel_1;
|
|
4319
|
-
}
|
|
4320
|
-
__name(requireCancel, "requireCancel");
|
|
4321
|
-
var CancelToken_1;
|
|
4322
|
-
var hasRequiredCancelToken;
|
|
4323
|
-
function requireCancelToken() {
|
|
4324
|
-
if (hasRequiredCancelToken)
|
|
4325
|
-
return CancelToken_1;
|
|
4326
|
-
hasRequiredCancelToken = 1;
|
|
4327
|
-
var Cancel = requireCancel();
|
|
4328
|
-
function CancelToken(executor) {
|
|
4329
|
-
if (typeof executor !== "function") {
|
|
4330
|
-
throw new TypeError("executor must be a function.");
|
|
4331
|
-
}
|
|
4332
|
-
var resolvePromise;
|
|
4333
|
-
this.promise = new Promise(/* @__PURE__ */ __name(function promiseExecutor(resolve) {
|
|
4334
|
-
resolvePromise = resolve;
|
|
4335
|
-
}, "promiseExecutor"));
|
|
4336
|
-
var token = this;
|
|
4337
|
-
executor(/* @__PURE__ */ __name(function cancel(message) {
|
|
4338
|
-
if (token.reason) {
|
|
4339
|
-
return;
|
|
4340
|
-
}
|
|
4341
|
-
token.reason = new Cancel(message);
|
|
4342
|
-
resolvePromise(token.reason);
|
|
4343
|
-
}, "cancel"));
|
|
4344
|
-
}
|
|
4345
|
-
__name(CancelToken, "CancelToken");
|
|
4346
|
-
CancelToken.prototype.throwIfRequested = /* @__PURE__ */ __name(function throwIfRequested() {
|
|
4347
|
-
if (this.reason) {
|
|
4348
|
-
throw this.reason;
|
|
4349
|
-
}
|
|
4350
|
-
}, "throwIfRequested");
|
|
4351
|
-
CancelToken.source = /* @__PURE__ */ __name(function source() {
|
|
4352
|
-
var cancel;
|
|
4353
|
-
var token = new CancelToken(/* @__PURE__ */ __name(function executor(c2) {
|
|
4354
|
-
cancel = c2;
|
|
4355
|
-
}, "executor"));
|
|
4356
|
-
return {
|
|
4357
|
-
token,
|
|
4358
|
-
cancel
|
|
4359
|
-
};
|
|
4360
|
-
}, "source");
|
|
4361
|
-
CancelToken_1 = CancelToken;
|
|
4362
|
-
return CancelToken_1;
|
|
4363
|
-
}
|
|
4364
|
-
__name(requireCancelToken, "requireCancelToken");
|
|
4365
|
-
var spread;
|
|
4366
|
-
var hasRequiredSpread;
|
|
4367
|
-
function requireSpread() {
|
|
4368
|
-
if (hasRequiredSpread)
|
|
4369
|
-
return spread;
|
|
4370
|
-
hasRequiredSpread = 1;
|
|
4371
|
-
spread = /* @__PURE__ */ __name(function spread2(callback) {
|
|
4372
|
-
return /* @__PURE__ */ __name(function wrap2(arr) {
|
|
4373
|
-
return callback.apply(null, arr);
|
|
4374
|
-
}, "wrap");
|
|
4375
|
-
}, "spread");
|
|
4376
|
-
return spread;
|
|
4377
|
-
}
|
|
4378
|
-
__name(requireSpread, "requireSpread");
|
|
4379
|
-
var isAxiosError;
|
|
4380
|
-
var hasRequiredIsAxiosError;
|
|
4381
|
-
function requireIsAxiosError() {
|
|
4382
|
-
if (hasRequiredIsAxiosError)
|
|
4383
|
-
return isAxiosError;
|
|
4384
|
-
hasRequiredIsAxiosError = 1;
|
|
4385
|
-
isAxiosError = /* @__PURE__ */ __name(function isAxiosError2(payload) {
|
|
4386
|
-
return typeof payload === "object" && payload.isAxiosError === true;
|
|
4387
|
-
}, "isAxiosError");
|
|
4388
|
-
return isAxiosError;
|
|
4389
|
-
}
|
|
4390
|
-
__name(requireIsAxiosError, "requireIsAxiosError");
|
|
4391
|
-
var utils$3 = utils$c;
|
|
4392
|
-
var bind$2 = bind$4;
|
|
4393
|
-
var Axios = Axios_1;
|
|
4394
|
-
var mergeConfig2 = mergeConfig$2;
|
|
4395
|
-
var defaults$2 = defaults_1;
|
|
4396
|
-
function createInstance(defaultConfig) {
|
|
4397
|
-
var context = new Axios(defaultConfig);
|
|
4398
|
-
var instance = bind$2(Axios.prototype.request, context);
|
|
4399
|
-
utils$3.extend(instance, Axios.prototype, context);
|
|
4400
|
-
utils$3.extend(instance, context);
|
|
4401
|
-
return instance;
|
|
4402
|
-
}
|
|
4403
|
-
__name(createInstance, "createInstance");
|
|
4404
|
-
var axios$2 = createInstance(defaults$2);
|
|
4405
|
-
axios$2.Axios = Axios;
|
|
4406
|
-
axios$2.create = /* @__PURE__ */ __name(function create(instanceConfig) {
|
|
4407
|
-
return createInstance(mergeConfig2(axios$2.defaults, instanceConfig));
|
|
4408
|
-
}, "create");
|
|
4409
|
-
axios$2.Cancel = requireCancel();
|
|
4410
|
-
axios$2.CancelToken = requireCancelToken();
|
|
4411
|
-
axios$2.isCancel = requireIsCancel();
|
|
4412
|
-
axios$2.all = /* @__PURE__ */ __name(function all(promises) {
|
|
4413
|
-
return Promise.all(promises);
|
|
4414
|
-
}, "all");
|
|
4415
|
-
axios$2.spread = requireSpread();
|
|
4416
|
-
axios$2.isAxiosError = requireIsAxiosError();
|
|
4417
|
-
axios$3.exports = axios$2;
|
|
4418
|
-
axios$3.exports.default = axios$2;
|
|
4419
|
-
var axiosExports = axios$3.exports;
|
|
4420
|
-
var axios = axiosExports;
|
|
4421
|
-
const axios$1 = /* @__PURE__ */ getDefaultExportFromCjs(axios);
|
|
4422
3106
|
var propTypes$1 = { exports: {} };
|
|
4423
3107
|
var ReactPropTypesSecret$1 = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
4424
3108
|
var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
|
|
@@ -5542,7 +4226,7 @@ var initialState = {
|
|
|
5542
4226
|
};
|
|
5543
4227
|
function useDropzone() {
|
|
5544
4228
|
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5545
|
-
var _defaultProps$options = _objectSpread$2(_objectSpread$2({}, defaultProps$2), options), accept = _defaultProps$options.accept, disabled = _defaultProps$options.disabled, getFilesFromEvent = _defaultProps$options.getFilesFromEvent, maxSize = _defaultProps$options.maxSize, minSize = _defaultProps$options.minSize, multiple = _defaultProps$options.multiple, maxFiles = _defaultProps$options.maxFiles, onDragEnter = _defaultProps$options.onDragEnter, onDragLeave = _defaultProps$options.onDragLeave, onDragOver = _defaultProps$options.onDragOver, onDrop = _defaultProps$options.onDrop, onDropAccepted = _defaultProps$options.onDropAccepted, onDropRejected = _defaultProps$options.onDropRejected, onFileDialogCancel = _defaultProps$options.onFileDialogCancel, onFileDialogOpen = _defaultProps$options.onFileDialogOpen, useFsAccessApi = _defaultProps$options.useFsAccessApi, preventDropOnDocument = _defaultProps$options.preventDropOnDocument, noClick = _defaultProps$options.noClick, noKeyboard = _defaultProps$options.noKeyboard, noDrag = _defaultProps$options.noDrag, noDragEventsBubbling = _defaultProps$options.noDragEventsBubbling,
|
|
4229
|
+
var _defaultProps$options = _objectSpread$2(_objectSpread$2({}, defaultProps$2), options), accept = _defaultProps$options.accept, disabled = _defaultProps$options.disabled, getFilesFromEvent = _defaultProps$options.getFilesFromEvent, maxSize = _defaultProps$options.maxSize, minSize = _defaultProps$options.minSize, multiple = _defaultProps$options.multiple, maxFiles = _defaultProps$options.maxFiles, onDragEnter = _defaultProps$options.onDragEnter, onDragLeave = _defaultProps$options.onDragLeave, onDragOver = _defaultProps$options.onDragOver, onDrop = _defaultProps$options.onDrop, onDropAccepted = _defaultProps$options.onDropAccepted, onDropRejected = _defaultProps$options.onDropRejected, onFileDialogCancel = _defaultProps$options.onFileDialogCancel, onFileDialogOpen = _defaultProps$options.onFileDialogOpen, useFsAccessApi = _defaultProps$options.useFsAccessApi, preventDropOnDocument = _defaultProps$options.preventDropOnDocument, noClick = _defaultProps$options.noClick, noKeyboard = _defaultProps$options.noKeyboard, noDrag = _defaultProps$options.noDrag, noDragEventsBubbling = _defaultProps$options.noDragEventsBubbling, validator = _defaultProps$options.validator;
|
|
5546
4230
|
var onFileDialogOpenCb = React$1.useMemo(function() {
|
|
5547
4231
|
return typeof onFileDialogOpen === "function" ? onFileDialogOpen : noop$3;
|
|
5548
4232
|
}, [onFileDialogOpen]);
|
|
@@ -5665,7 +4349,7 @@ function useDropzone() {
|
|
|
5665
4349
|
files.forEach(function(file) {
|
|
5666
4350
|
var _fileAccepted = fileAccepted(file, accept), _fileAccepted2 = _slicedToArray$5(_fileAccepted, 2), accepted = _fileAccepted2[0], acceptError = _fileAccepted2[1];
|
|
5667
4351
|
var _fileMatchSize = fileMatchSize(file, minSize, maxSize), _fileMatchSize2 = _slicedToArray$5(_fileMatchSize, 2), sizeMatch = _fileMatchSize2[0], sizeError = _fileMatchSize2[1];
|
|
5668
|
-
var customErrors =
|
|
4352
|
+
var customErrors = validator ? validator(file) : null;
|
|
5669
4353
|
if (accepted && sizeMatch && !customErrors) {
|
|
5670
4354
|
acceptedFiles.push(file);
|
|
5671
4355
|
} else {
|
|
@@ -5704,7 +4388,7 @@ function useDropzone() {
|
|
|
5704
4388
|
if (acceptedFiles.length > 0 && onDropAccepted) {
|
|
5705
4389
|
onDropAccepted(acceptedFiles, event);
|
|
5706
4390
|
}
|
|
5707
|
-
}, [dispatch, multiple, accept, minSize, maxSize, maxFiles, onDrop, onDropAccepted, onDropRejected,
|
|
4391
|
+
}, [dispatch, multiple, accept, minSize, maxSize, maxFiles, onDrop, onDropAccepted, onDropRejected, validator]);
|
|
5708
4392
|
var onDropCb = React$1.useCallback(function(event) {
|
|
5709
4393
|
event.preventDefault();
|
|
5710
4394
|
event.persist();
|
|
@@ -6829,10 +5513,10 @@ var ownKeys$3 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownK
|
|
|
6829
5513
|
/* istanbul ignore next */
|
|
6830
5514
|
Object.getOwnPropertyNames
|
|
6831
5515
|
);
|
|
6832
|
-
function toPrimitive$
|
|
5516
|
+
function toPrimitive$3(value) {
|
|
6833
5517
|
return value === null ? null : typeof value === "object" ? "" + value : value;
|
|
6834
5518
|
}
|
|
6835
|
-
__name(toPrimitive$
|
|
5519
|
+
__name(toPrimitive$3, "toPrimitive$3");
|
|
6836
5520
|
function hasProp(target, prop) {
|
|
6837
5521
|
return objectPrototype$1.hasOwnProperty.call(target, prop);
|
|
6838
5522
|
}
|
|
@@ -7729,7 +6413,7 @@ var ObservableValue = /* @__PURE__ */ function(_Atom) {
|
|
|
7729
6413
|
return this.name_ + "[" + this.value_ + "]";
|
|
7730
6414
|
}, "toString");
|
|
7731
6415
|
_proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
|
|
7732
|
-
return toPrimitive$
|
|
6416
|
+
return toPrimitive$3(this.get());
|
|
7733
6417
|
}, "valueOf");
|
|
7734
6418
|
_proto[_Symbol$toPrimitive] = function() {
|
|
7735
6419
|
return this.valueOf();
|
|
@@ -7914,7 +6598,7 @@ var ComputedValue = /* @__PURE__ */ function() {
|
|
|
7914
6598
|
return this.name_ + "[" + this.derivation.toString() + "]";
|
|
7915
6599
|
}, "toString");
|
|
7916
6600
|
_proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
|
|
7917
|
-
return toPrimitive$
|
|
6601
|
+
return toPrimitive$3(this.get());
|
|
7918
6602
|
}, "valueOf");
|
|
7919
6603
|
_proto[_Symbol$toPrimitive$1] = function() {
|
|
7920
6604
|
return this.valueOf();
|
|
@@ -9550,7 +8234,7 @@ var ObservableMap = /* @__PURE__ */ function() {
|
|
|
9550
8234
|
_proto[_Symbol$iterator] = function() {
|
|
9551
8235
|
return this.entries();
|
|
9552
8236
|
};
|
|
9553
|
-
_proto.forEach = /* @__PURE__ */ __name(function
|
|
8237
|
+
_proto.forEach = /* @__PURE__ */ __name(function forEach2(callback, thisArg) {
|
|
9554
8238
|
for (var _iterator3 = _createForOfIteratorHelperLoose$5(this), _step; !(_step = _iterator3()).done; ) {
|
|
9555
8239
|
var _step$value = _step.value, key = _step$value[0], value = _step$value[1];
|
|
9556
8240
|
callback.call(thisArg, value, key, this);
|
|
@@ -9744,7 +8428,7 @@ var ObservableSet = /* @__PURE__ */ function() {
|
|
|
9744
8428
|
});
|
|
9745
8429
|
});
|
|
9746
8430
|
}, "clear");
|
|
9747
|
-
_proto.forEach = /* @__PURE__ */ __name(function
|
|
8431
|
+
_proto.forEach = /* @__PURE__ */ __name(function forEach2(callbackFn, thisArg) {
|
|
9748
8432
|
for (var _iterator22 = _createForOfIteratorHelperLoose$5(this), _step2; !(_step2 = _iterator22()).done; ) {
|
|
9749
8433
|
var value = _step2.value;
|
|
9750
8434
|
callbackFn.call(thisArg, value, value, this);
|
|
@@ -12548,7 +11232,7 @@ lodash.exports;
|
|
|
12548
11232
|
"^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar2, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
12549
11233
|
);
|
|
12550
11234
|
var Buffer2 = moduleExports2 ? context.Buffer : undefined$12, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe2 = Buffer2 ? Buffer2.allocUnsafe : undefined$12, getPrototype2 = overArg2(Object2.getPrototypeOf, Object2), objectCreate2 = Object2.create, propertyIsEnumerable3 = objectProto2.propertyIsEnumerable, splice3 = arrayProto2.splice, spreadableSymbol2 = Symbol2 ? Symbol2.isConcatSpreadable : undefined$12, symIterator = Symbol2 ? Symbol2.iterator : undefined$12, symToStringTag2 = Symbol2 ? Symbol2.toStringTag : undefined$12;
|
|
12551
|
-
var
|
|
11235
|
+
var defineProperty6 = function() {
|
|
12552
11236
|
try {
|
|
12553
11237
|
var func = getNative2(Object2, "defineProperty");
|
|
12554
11238
|
func({}, "", {});
|
|
@@ -12988,8 +11672,8 @@ lodash.exports;
|
|
|
12988
11672
|
}
|
|
12989
11673
|
__name(baseAssignIn2, "baseAssignIn");
|
|
12990
11674
|
function baseAssignValue2(object2, key, value) {
|
|
12991
|
-
if (key == "__proto__" &&
|
|
12992
|
-
|
|
11675
|
+
if (key == "__proto__" && defineProperty6) {
|
|
11676
|
+
defineProperty6(object2, key, {
|
|
12993
11677
|
"configurable": true,
|
|
12994
11678
|
"enumerable": true,
|
|
12995
11679
|
"value": value,
|
|
@@ -13722,8 +12406,8 @@ lodash.exports;
|
|
|
13722
12406
|
metaMap.set(func, data);
|
|
13723
12407
|
return func;
|
|
13724
12408
|
};
|
|
13725
|
-
var baseSetToString2 = !
|
|
13726
|
-
return
|
|
12409
|
+
var baseSetToString2 = !defineProperty6 ? identity3 : function(func, string2) {
|
|
12410
|
+
return defineProperty6(func, "toString", {
|
|
13727
12411
|
"configurable": true,
|
|
13728
12412
|
"enumerable": false,
|
|
13729
12413
|
"value": constant2(string2),
|
|
@@ -15753,11 +14437,11 @@ lodash.exports;
|
|
|
15753
14437
|
return baseFlatten2(map3(collection, iteratee2), depth);
|
|
15754
14438
|
}
|
|
15755
14439
|
__name(flatMapDepth, "flatMapDepth");
|
|
15756
|
-
function
|
|
14440
|
+
function forEach2(collection, iteratee2) {
|
|
15757
14441
|
var func = isArray4(collection) ? arrayEach2 : baseEach2;
|
|
15758
14442
|
return func(collection, getIteratee(iteratee2, 3));
|
|
15759
14443
|
}
|
|
15760
|
-
__name(
|
|
14444
|
+
__name(forEach2, "forEach");
|
|
15761
14445
|
function forEachRight(collection, iteratee2) {
|
|
15762
14446
|
var func = isArray4(collection) ? arrayEachRight : baseEachRight;
|
|
15763
14447
|
return func(collection, getIteratee(iteratee2, 3));
|
|
@@ -15921,10 +14605,10 @@ lodash.exports;
|
|
|
15921
14605
|
};
|
|
15922
14606
|
}
|
|
15923
14607
|
__name(before, "before");
|
|
15924
|
-
var
|
|
14608
|
+
var bind3 = baseRest2(function(func, thisArg, partials) {
|
|
15925
14609
|
var bitmask = WRAP_BIND_FLAG;
|
|
15926
14610
|
if (partials.length) {
|
|
15927
|
-
var holders = replaceHolders(partials, getHolder(
|
|
14611
|
+
var holders = replaceHolders(partials, getHolder(bind3));
|
|
15928
14612
|
bitmask |= WRAP_PARTIAL_FLAG;
|
|
15929
14613
|
}
|
|
15930
14614
|
return createWrap(func, bitmask, thisArg, partials, holders);
|
|
@@ -16124,7 +14808,7 @@ lodash.exports;
|
|
|
16124
14808
|
return baseRest2(func, start2);
|
|
16125
14809
|
}
|
|
16126
14810
|
__name(rest, "rest");
|
|
16127
|
-
function
|
|
14811
|
+
function spread(func, start2) {
|
|
16128
14812
|
if (typeof func != "function") {
|
|
16129
14813
|
throw new TypeError2(FUNC_ERROR_TEXT2);
|
|
16130
14814
|
}
|
|
@@ -16137,7 +14821,7 @@ lodash.exports;
|
|
|
16137
14821
|
return apply2(func, this, otherArgs);
|
|
16138
14822
|
});
|
|
16139
14823
|
}
|
|
16140
|
-
__name(
|
|
14824
|
+
__name(spread, "spread");
|
|
16141
14825
|
function throttle2(func, wait, options) {
|
|
16142
14826
|
var leading = true, trailing = true;
|
|
16143
14827
|
if (typeof func != "function") {
|
|
@@ -16206,7 +14890,7 @@ lodash.exports;
|
|
|
16206
14890
|
return isObjectLike2(value) && hasOwnProperty2.call(value, "callee") && !propertyIsEnumerable3.call(value, "callee");
|
|
16207
14891
|
};
|
|
16208
14892
|
var isArray4 = Array2.isArray;
|
|
16209
|
-
var
|
|
14893
|
+
var isArrayBuffer = nodeIsArrayBuffer ? baseUnary2(nodeIsArrayBuffer) : baseIsArrayBuffer;
|
|
16210
14894
|
function isArrayLike2(value) {
|
|
16211
14895
|
return value != null && isLength2(value.length) && !isFunction2(value);
|
|
16212
14896
|
}
|
|
@@ -16457,11 +15141,11 @@ lodash.exports;
|
|
|
16457
15141
|
copyObject2(source, keys3(source), object2, customizer);
|
|
16458
15142
|
});
|
|
16459
15143
|
var at = flatRest(baseAt);
|
|
16460
|
-
function
|
|
15144
|
+
function create6(prototype, properties) {
|
|
16461
15145
|
var result2 = baseCreate2(prototype);
|
|
16462
15146
|
return properties == null ? result2 : baseAssign2(result2, properties);
|
|
16463
15147
|
}
|
|
16464
|
-
__name(
|
|
15148
|
+
__name(create6, "create");
|
|
16465
15149
|
var defaults2 = baseRest2(function(object2, sources) {
|
|
16466
15150
|
object2 = Object2(object2);
|
|
16467
15151
|
var index2 = -1;
|
|
@@ -17047,7 +15731,7 @@ lodash.exports;
|
|
|
17047
15731
|
var bindAll = flatRest(function(object2, methodNames) {
|
|
17048
15732
|
arrayEach2(methodNames, function(key) {
|
|
17049
15733
|
key = toKey2(key);
|
|
17050
|
-
baseAssignValue2(object2, key,
|
|
15734
|
+
baseAssignValue2(object2, key, bind3(object2[key], object2));
|
|
17051
15735
|
});
|
|
17052
15736
|
return object2;
|
|
17053
15737
|
});
|
|
@@ -17274,7 +15958,7 @@ lodash.exports;
|
|
|
17274
15958
|
lodash2.assignWith = assignWith;
|
|
17275
15959
|
lodash2.at = at;
|
|
17276
15960
|
lodash2.before = before;
|
|
17277
|
-
lodash2.bind =
|
|
15961
|
+
lodash2.bind = bind3;
|
|
17278
15962
|
lodash2.bindAll = bindAll;
|
|
17279
15963
|
lodash2.bindKey = bindKey;
|
|
17280
15964
|
lodash2.castArray = castArray;
|
|
@@ -17286,7 +15970,7 @@ lodash.exports;
|
|
|
17286
15970
|
lodash2.conforms = conforms;
|
|
17287
15971
|
lodash2.constant = constant2;
|
|
17288
15972
|
lodash2.countBy = countBy;
|
|
17289
|
-
lodash2.create =
|
|
15973
|
+
lodash2.create = create6;
|
|
17290
15974
|
lodash2.curry = curry;
|
|
17291
15975
|
lodash2.curryRight = curryRight;
|
|
17292
15976
|
lodash2.debounce = debounce2;
|
|
@@ -17376,7 +16060,7 @@ lodash.exports;
|
|
|
17376
16060
|
lodash2.sortedUniq = sortedUniq;
|
|
17377
16061
|
lodash2.sortedUniqBy = sortedUniqBy;
|
|
17378
16062
|
lodash2.split = split;
|
|
17379
|
-
lodash2.spread =
|
|
16063
|
+
lodash2.spread = spread;
|
|
17380
16064
|
lodash2.tail = tail;
|
|
17381
16065
|
lodash2.take = take;
|
|
17382
16066
|
lodash2.takeRight = takeRight2;
|
|
@@ -17446,7 +16130,7 @@ lodash.exports;
|
|
|
17446
16130
|
lodash2.findLastIndex = findLastIndex;
|
|
17447
16131
|
lodash2.findLastKey = findLastKey;
|
|
17448
16132
|
lodash2.floor = floor2;
|
|
17449
|
-
lodash2.forEach =
|
|
16133
|
+
lodash2.forEach = forEach2;
|
|
17450
16134
|
lodash2.forEachRight = forEachRight;
|
|
17451
16135
|
lodash2.forIn = forIn;
|
|
17452
16136
|
lodash2.forInRight = forInRight;
|
|
@@ -17465,7 +16149,7 @@ lodash.exports;
|
|
|
17465
16149
|
lodash2.invoke = invoke;
|
|
17466
16150
|
lodash2.isArguments = isArguments2;
|
|
17467
16151
|
lodash2.isArray = isArray4;
|
|
17468
|
-
lodash2.isArrayBuffer =
|
|
16152
|
+
lodash2.isArrayBuffer = isArrayBuffer;
|
|
17469
16153
|
lodash2.isArrayLike = isArrayLike2;
|
|
17470
16154
|
lodash2.isArrayLikeObject = isArrayLikeObject2;
|
|
17471
16155
|
lodash2.isBoolean = isBoolean2;
|
|
@@ -17569,7 +16253,7 @@ lodash.exports;
|
|
|
17569
16253
|
lodash2.uniqueId = uniqueId;
|
|
17570
16254
|
lodash2.upperCase = upperCase;
|
|
17571
16255
|
lodash2.upperFirst = upperFirst;
|
|
17572
|
-
lodash2.each =
|
|
16256
|
+
lodash2.each = forEach2;
|
|
17573
16257
|
lodash2.eachRight = forEachRight;
|
|
17574
16258
|
lodash2.first = head;
|
|
17575
16259
|
mixin(lodash2, function() {
|
|
@@ -18272,20 +16956,11 @@ var _fails = /* @__PURE__ */ __name(function(exec) {
|
|
|
18272
16956
|
return true;
|
|
18273
16957
|
}
|
|
18274
16958
|
}, "_fails");
|
|
18275
|
-
var _descriptors
|
|
18276
|
-
|
|
18277
|
-
|
|
18278
|
-
|
|
18279
|
-
|
|
18280
|
-
hasRequired_descriptors = 1;
|
|
18281
|
-
_descriptors = !_fails(function() {
|
|
18282
|
-
return Object.defineProperty({}, "a", { get: function() {
|
|
18283
|
-
return 7;
|
|
18284
|
-
} }).a != 7;
|
|
18285
|
-
});
|
|
18286
|
-
return _descriptors;
|
|
18287
|
-
}
|
|
18288
|
-
__name(require_descriptors, "require_descriptors");
|
|
16959
|
+
var _descriptors = !_fails(function() {
|
|
16960
|
+
return Object.defineProperty({}, "a", { get: function() {
|
|
16961
|
+
return 7;
|
|
16962
|
+
} }).a != 7;
|
|
16963
|
+
});
|
|
18289
16964
|
var _domCreate;
|
|
18290
16965
|
var hasRequired_domCreate;
|
|
18291
16966
|
function require_domCreate() {
|
|
@@ -18301,20 +16976,11 @@ function require_domCreate() {
|
|
|
18301
16976
|
return _domCreate;
|
|
18302
16977
|
}
|
|
18303
16978
|
__name(require_domCreate, "require_domCreate");
|
|
18304
|
-
var _ie8DomDefine
|
|
18305
|
-
|
|
18306
|
-
|
|
18307
|
-
|
|
18308
|
-
|
|
18309
|
-
hasRequired_ie8DomDefine = 1;
|
|
18310
|
-
_ie8DomDefine = !require_descriptors() && !_fails(function() {
|
|
18311
|
-
return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
|
|
18312
|
-
return 7;
|
|
18313
|
-
} }).a != 7;
|
|
18314
|
-
});
|
|
18315
|
-
return _ie8DomDefine;
|
|
18316
|
-
}
|
|
18317
|
-
__name(require_ie8DomDefine, "require_ie8DomDefine");
|
|
16979
|
+
var _ie8DomDefine = !_descriptors && !_fails(function() {
|
|
16980
|
+
return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
|
|
16981
|
+
return 7;
|
|
16982
|
+
} }).a != 7;
|
|
16983
|
+
});
|
|
18318
16984
|
var isObject$d = _isObject;
|
|
18319
16985
|
var _toPrimitive = /* @__PURE__ */ __name(function(it, S2) {
|
|
18320
16986
|
if (!isObject$d(it))
|
|
@@ -18328,33 +16994,25 @@ var _toPrimitive = /* @__PURE__ */ __name(function(it, S2) {
|
|
|
18328
16994
|
return val;
|
|
18329
16995
|
throw TypeError("Can't convert object to primitive value");
|
|
18330
16996
|
}, "_toPrimitive");
|
|
18331
|
-
var
|
|
18332
|
-
|
|
18333
|
-
|
|
18334
|
-
|
|
18335
|
-
|
|
18336
|
-
|
|
18337
|
-
|
|
18338
|
-
|
|
18339
|
-
|
|
18340
|
-
|
|
18341
|
-
|
|
18342
|
-
|
|
18343
|
-
|
|
18344
|
-
|
|
18345
|
-
|
|
18346
|
-
|
|
18347
|
-
|
|
18348
|
-
|
|
18349
|
-
|
|
18350
|
-
throw TypeError("Accessors not supported!");
|
|
18351
|
-
if ("value" in Attributes)
|
|
18352
|
-
O2[P2] = Attributes.value;
|
|
18353
|
-
return O2;
|
|
18354
|
-
}, "defineProperty");
|
|
18355
|
-
return _objectDp;
|
|
18356
|
-
}
|
|
18357
|
-
__name(require_objectDp, "require_objectDp");
|
|
16997
|
+
var anObject$5 = _anObject;
|
|
16998
|
+
var IE8_DOM_DEFINE$1 = _ie8DomDefine;
|
|
16999
|
+
var toPrimitive$2 = _toPrimitive;
|
|
17000
|
+
var dP$3 = Object.defineProperty;
|
|
17001
|
+
_objectDp.f = _descriptors ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty2(O2, P2, Attributes) {
|
|
17002
|
+
anObject$5(O2);
|
|
17003
|
+
P2 = toPrimitive$2(P2, true);
|
|
17004
|
+
anObject$5(Attributes);
|
|
17005
|
+
if (IE8_DOM_DEFINE$1)
|
|
17006
|
+
try {
|
|
17007
|
+
return dP$3(O2, P2, Attributes);
|
|
17008
|
+
} catch (e2) {
|
|
17009
|
+
}
|
|
17010
|
+
if ("get" in Attributes || "set" in Attributes)
|
|
17011
|
+
throw TypeError("Accessors not supported!");
|
|
17012
|
+
if ("value" in Attributes)
|
|
17013
|
+
O2[P2] = Attributes.value;
|
|
17014
|
+
return O2;
|
|
17015
|
+
}, "defineProperty");
|
|
18358
17016
|
var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
|
|
18359
17017
|
return {
|
|
18360
17018
|
enumerable: !(bitmap & 1),
|
|
@@ -18363,9 +17021,9 @@ var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
|
|
|
18363
17021
|
value
|
|
18364
17022
|
};
|
|
18365
17023
|
}, "_propertyDesc");
|
|
18366
|
-
var dP$2 =
|
|
17024
|
+
var dP$2 = _objectDp;
|
|
18367
17025
|
var createDesc$3 = _propertyDesc;
|
|
18368
|
-
var _hide =
|
|
17026
|
+
var _hide = _descriptors ? function(object2, key, value) {
|
|
18369
17027
|
return dP$2.f(object2, key, createDesc$3(1, value));
|
|
18370
17028
|
} : function(object2, key, value) {
|
|
18371
17029
|
object2[key] = value;
|
|
@@ -18437,16 +17095,25 @@ var toString$6 = {}.toString;
|
|
|
18437
17095
|
var _cof = /* @__PURE__ */ __name(function(it) {
|
|
18438
17096
|
return toString$6.call(it).slice(8, -1);
|
|
18439
17097
|
}, "_cof");
|
|
18440
|
-
var
|
|
18441
|
-
var
|
|
18442
|
-
|
|
18443
|
-
|
|
17098
|
+
var _iobject;
|
|
17099
|
+
var hasRequired_iobject;
|
|
17100
|
+
function require_iobject() {
|
|
17101
|
+
if (hasRequired_iobject)
|
|
17102
|
+
return _iobject;
|
|
17103
|
+
hasRequired_iobject = 1;
|
|
17104
|
+
var cof2 = _cof;
|
|
17105
|
+
_iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
|
|
17106
|
+
return cof2(it) == "String" ? it.split("") : Object(it);
|
|
17107
|
+
};
|
|
17108
|
+
return _iobject;
|
|
17109
|
+
}
|
|
17110
|
+
__name(require_iobject, "require_iobject");
|
|
18444
17111
|
var _defined = /* @__PURE__ */ __name(function(it) {
|
|
18445
17112
|
if (it == void 0)
|
|
18446
17113
|
throw TypeError("Can't call method on " + it);
|
|
18447
17114
|
return it;
|
|
18448
17115
|
}, "_defined");
|
|
18449
|
-
var IObject =
|
|
17116
|
+
var IObject = require_iobject();
|
|
18450
17117
|
var defined$2 = _defined;
|
|
18451
17118
|
var _toIobject = /* @__PURE__ */ __name(function(it) {
|
|
18452
17119
|
return IObject(defined$2(it));
|
|
@@ -18543,7 +17210,15 @@ var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys(O2) {
|
|
|
18543
17210
|
var _objectGops = {};
|
|
18544
17211
|
_objectGops.f = Object.getOwnPropertySymbols;
|
|
18545
17212
|
var _objectPie = {};
|
|
18546
|
-
|
|
17213
|
+
var hasRequired_objectPie;
|
|
17214
|
+
function require_objectPie() {
|
|
17215
|
+
if (hasRequired_objectPie)
|
|
17216
|
+
return _objectPie;
|
|
17217
|
+
hasRequired_objectPie = 1;
|
|
17218
|
+
_objectPie.f = {}.propertyIsEnumerable;
|
|
17219
|
+
return _objectPie;
|
|
17220
|
+
}
|
|
17221
|
+
__name(require_objectPie, "require_objectPie");
|
|
18547
17222
|
var defined$1 = _defined;
|
|
18548
17223
|
var _toObject = /* @__PURE__ */ __name(function(it) {
|
|
18549
17224
|
return Object(defined$1(it));
|
|
@@ -18554,12 +17229,12 @@ function require_objectAssign() {
|
|
|
18554
17229
|
if (hasRequired_objectAssign)
|
|
18555
17230
|
return _objectAssign;
|
|
18556
17231
|
hasRequired_objectAssign = 1;
|
|
18557
|
-
var DESCRIPTORS2 =
|
|
17232
|
+
var DESCRIPTORS2 = _descriptors;
|
|
18558
17233
|
var getKeys2 = _objectKeys;
|
|
18559
17234
|
var gOPS2 = _objectGops;
|
|
18560
|
-
var pIE2 =
|
|
17235
|
+
var pIE2 = require_objectPie();
|
|
18561
17236
|
var toObject2 = _toObject;
|
|
18562
|
-
var IObject2 =
|
|
17237
|
+
var IObject2 = require_iobject();
|
|
18563
17238
|
var $assign = Object.assign;
|
|
18564
17239
|
_objectAssign = !$assign || _fails(function() {
|
|
18565
17240
|
var A2 = {};
|
|
@@ -18620,10 +17295,10 @@ var _iterStep = /* @__PURE__ */ __name(function(done, value) {
|
|
|
18620
17295
|
}, "_iterStep");
|
|
18621
17296
|
var _iterators = {};
|
|
18622
17297
|
var _redefine = _hide;
|
|
18623
|
-
var dP$1 =
|
|
17298
|
+
var dP$1 = _objectDp;
|
|
18624
17299
|
var anObject$4 = _anObject;
|
|
18625
17300
|
var getKeys$1 = _objectKeys;
|
|
18626
|
-
var _objectDps =
|
|
17301
|
+
var _objectDps = _descriptors ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties(O2, Properties) {
|
|
18627
17302
|
anObject$4(O2);
|
|
18628
17303
|
var keys3 = getKeys$1(Properties);
|
|
18629
17304
|
var length = keys3.length;
|
|
@@ -18669,7 +17344,7 @@ var createDict = /* @__PURE__ */ __name(function() {
|
|
|
18669
17344
|
delete createDict[PROTOTYPE$1][enumBugKeys[i]];
|
|
18670
17345
|
return createDict();
|
|
18671
17346
|
}, "createDict");
|
|
18672
|
-
var _objectCreate = Object.create || /* @__PURE__ */ __name(function
|
|
17347
|
+
var _objectCreate = Object.create || /* @__PURE__ */ __name(function create(O2, Properties) {
|
|
18673
17348
|
var result;
|
|
18674
17349
|
if (O2 !== null) {
|
|
18675
17350
|
Empty[PROTOTYPE$1] = anObject$3(O2);
|
|
@@ -18690,7 +17365,7 @@ var $exports = _wks.exports = function(name) {
|
|
|
18690
17365
|
};
|
|
18691
17366
|
$exports.store = store;
|
|
18692
17367
|
var _wksExports = _wks.exports;
|
|
18693
|
-
var def =
|
|
17368
|
+
var def = _objectDp.f;
|
|
18694
17369
|
var has$9 = _has;
|
|
18695
17370
|
var TAG$1 = _wksExports("toStringTag");
|
|
18696
17371
|
var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
|
|
@@ -18963,7 +17638,7 @@ var ArrayProto = Array.prototype;
|
|
|
18963
17638
|
var _isArrayIter = /* @__PURE__ */ __name(function(it) {
|
|
18964
17639
|
return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
|
|
18965
17640
|
}, "_isArrayIter");
|
|
18966
|
-
var $defineProperty$1 =
|
|
17641
|
+
var $defineProperty$1 = _objectDp;
|
|
18967
17642
|
var createDesc$2 = _propertyDesc;
|
|
18968
17643
|
var _createProperty = /* @__PURE__ */ __name(function(object2, index2, value) {
|
|
18969
17644
|
if (index2 in object2)
|
|
@@ -19092,9 +17767,9 @@ var _default$8 = /* @__PURE__ */ __name(function(instance, Constructor) {
|
|
|
19092
17767
|
}
|
|
19093
17768
|
}, "_default$8");
|
|
19094
17769
|
var $export$3 = _export;
|
|
19095
|
-
$export$3($export$3.S + $export$3.F * !
|
|
17770
|
+
$export$3($export$3.S + $export$3.F * !_descriptors, "Object", { defineProperty: _objectDp.f });
|
|
19096
17771
|
var $Object$2 = _coreExports.Object;
|
|
19097
|
-
var defineProperty$9 = /* @__PURE__ */ __name(function
|
|
17772
|
+
var defineProperty$9 = /* @__PURE__ */ __name(function defineProperty3(it, key, desc) {
|
|
19098
17773
|
return $Object$2.defineProperty(it, key, desc);
|
|
19099
17774
|
}, "defineProperty");
|
|
19100
17775
|
var defineProperty$8 = { "default": defineProperty$9, __esModule: true };
|
|
@@ -19133,7 +17808,7 @@ var _meta = { exports: {} };
|
|
|
19133
17808
|
var META$1 = _uid("meta");
|
|
19134
17809
|
var isObject$c = _isObject;
|
|
19135
17810
|
var has$7 = _has;
|
|
19136
|
-
var setDesc =
|
|
17811
|
+
var setDesc = _objectDp.f;
|
|
19137
17812
|
var id = 0;
|
|
19138
17813
|
var isExtensible = Object.isExtensible || function() {
|
|
19139
17814
|
return true;
|
|
@@ -19149,23 +17824,23 @@ var setMeta = /* @__PURE__ */ __name(function(it) {
|
|
|
19149
17824
|
// weak collections IDs
|
|
19150
17825
|
} });
|
|
19151
17826
|
}, "setMeta");
|
|
19152
|
-
var fastKey = /* @__PURE__ */ __name(function(it,
|
|
17827
|
+
var fastKey = /* @__PURE__ */ __name(function(it, create6) {
|
|
19153
17828
|
if (!isObject$c(it))
|
|
19154
17829
|
return typeof it == "symbol" ? it : (typeof it == "string" ? "S" : "P") + it;
|
|
19155
17830
|
if (!has$7(it, META$1)) {
|
|
19156
17831
|
if (!isExtensible(it))
|
|
19157
17832
|
return "F";
|
|
19158
|
-
if (!
|
|
17833
|
+
if (!create6)
|
|
19159
17834
|
return "E";
|
|
19160
17835
|
setMeta(it);
|
|
19161
17836
|
}
|
|
19162
17837
|
return it[META$1].i;
|
|
19163
17838
|
}, "fastKey");
|
|
19164
|
-
var getWeak = /* @__PURE__ */ __name(function(it,
|
|
17839
|
+
var getWeak = /* @__PURE__ */ __name(function(it, create6) {
|
|
19165
17840
|
if (!has$7(it, META$1)) {
|
|
19166
17841
|
if (!isExtensible(it))
|
|
19167
17842
|
return true;
|
|
19168
|
-
if (!
|
|
17843
|
+
if (!create6)
|
|
19169
17844
|
return false;
|
|
19170
17845
|
setMeta(it);
|
|
19171
17846
|
}
|
|
@@ -19186,7 +17861,7 @@ var meta = _meta.exports = {
|
|
|
19186
17861
|
var _metaExports = _meta.exports;
|
|
19187
17862
|
var core = _coreExports;
|
|
19188
17863
|
var wksExt$1 = _wksExt;
|
|
19189
|
-
var defineProperty$7 =
|
|
17864
|
+
var defineProperty$7 = _objectDp.f;
|
|
19190
17865
|
var _wksDefine = /* @__PURE__ */ __name(function(name) {
|
|
19191
17866
|
var $Symbol2 = core.Symbol || (core.Symbol = {});
|
|
19192
17867
|
if (name.charAt(0) != "_" && !(name in $Symbol2))
|
|
@@ -19194,7 +17869,7 @@ var _wksDefine = /* @__PURE__ */ __name(function(name) {
|
|
|
19194
17869
|
}, "_wksDefine");
|
|
19195
17870
|
var getKeys = _objectKeys;
|
|
19196
17871
|
var gOPS$1 = _objectGops;
|
|
19197
|
-
var pIE$1 =
|
|
17872
|
+
var pIE$1 = require_objectPie();
|
|
19198
17873
|
var _enumKeys = /* @__PURE__ */ __name(function(it) {
|
|
19199
17874
|
var result = getKeys(it);
|
|
19200
17875
|
var getSymbols2 = gOPS$1.f;
|
|
@@ -19235,14 +17910,14 @@ _objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
|
|
|
19235
17910
|
return windowNames && toString$5.call(it) == "[object Window]" ? getWindowNames(it) : gOPN$1(toIObject$2(it));
|
|
19236
17911
|
}, "getOwnPropertyNames");
|
|
19237
17912
|
var _objectGopd = {};
|
|
19238
|
-
var pIE =
|
|
17913
|
+
var pIE = require_objectPie();
|
|
19239
17914
|
var createDesc$1 = _propertyDesc;
|
|
19240
17915
|
var toIObject$1 = _toIobject;
|
|
19241
17916
|
var toPrimitive$1 = _toPrimitive;
|
|
19242
17917
|
var has$6 = _has;
|
|
19243
|
-
var IE8_DOM_DEFINE =
|
|
17918
|
+
var IE8_DOM_DEFINE = _ie8DomDefine;
|
|
19244
17919
|
var gOPD$2 = Object.getOwnPropertyDescriptor;
|
|
19245
|
-
_objectGopd.f =
|
|
17920
|
+
_objectGopd.f = _descriptors ? gOPD$2 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
|
|
19246
17921
|
O2 = toIObject$1(O2);
|
|
19247
17922
|
P2 = toPrimitive$1(P2, true);
|
|
19248
17923
|
if (IE8_DOM_DEFINE)
|
|
@@ -19255,7 +17930,7 @@ _objectGopd.f = require_descriptors() ? gOPD$2 : /* @__PURE__ */ __name(function
|
|
|
19255
17930
|
}, "getOwnPropertyDescriptor");
|
|
19256
17931
|
var global$1 = _globalExports;
|
|
19257
17932
|
var has$5 = _has;
|
|
19258
|
-
var DESCRIPTORS =
|
|
17933
|
+
var DESCRIPTORS = _descriptors;
|
|
19259
17934
|
var $export$2 = _export;
|
|
19260
17935
|
var redefine = _redefine;
|
|
19261
17936
|
var META = _metaExports.KEY;
|
|
@@ -19278,7 +17953,7 @@ var _create$1 = _objectCreate;
|
|
|
19278
17953
|
var gOPNExt = _objectGopnExt;
|
|
19279
17954
|
var $GOPD = _objectGopd;
|
|
19280
17955
|
var $GOPS = _objectGops;
|
|
19281
|
-
var $DP =
|
|
17956
|
+
var $DP = _objectDp;
|
|
19282
17957
|
var $keys$1 = _objectKeys;
|
|
19283
17958
|
var gOPD$1 = $GOPD.f;
|
|
19284
17959
|
var dP = $DP.f;
|
|
@@ -19321,7 +17996,7 @@ var isSymbol$8 = USE_NATIVE && typeof $Symbol.iterator == "symbol" ? function(it
|
|
|
19321
17996
|
} : function(it) {
|
|
19322
17997
|
return it instanceof $Symbol;
|
|
19323
17998
|
};
|
|
19324
|
-
var $defineProperty = /* @__PURE__ */ __name(function
|
|
17999
|
+
var $defineProperty = /* @__PURE__ */ __name(function defineProperty4(it, key, D2) {
|
|
19325
18000
|
if (it === ObjectProto)
|
|
19326
18001
|
$defineProperty(OPSymbols, key, D2);
|
|
19327
18002
|
anObject(it);
|
|
@@ -19351,7 +18026,7 @@ var $defineProperties = /* @__PURE__ */ __name(function defineProperties2(it, P2
|
|
|
19351
18026
|
$defineProperty(it, key = keys3[i++], P2[key]);
|
|
19352
18027
|
return it;
|
|
19353
18028
|
}, "defineProperties");
|
|
19354
|
-
var $create = /* @__PURE__ */ __name(function
|
|
18029
|
+
var $create = /* @__PURE__ */ __name(function create2(it, P2) {
|
|
19355
18030
|
return P2 === void 0 ? _create$1(it) : $defineProperties(_create$1(it), P2);
|
|
19356
18031
|
}, "create");
|
|
19357
18032
|
var $propertyIsEnumerable = /* @__PURE__ */ __name(function propertyIsEnumerable(key) {
|
|
@@ -19415,7 +18090,7 @@ if (!USE_NATIVE) {
|
|
|
19415
18090
|
$GOPD.f = $getOwnPropertyDescriptor;
|
|
19416
18091
|
$DP.f = $defineProperty;
|
|
19417
18092
|
_objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
|
|
19418
|
-
|
|
18093
|
+
require_objectPie().f = $propertyIsEnumerable;
|
|
19419
18094
|
$GOPS.f = $getOwnPropertySymbols;
|
|
19420
18095
|
if (DESCRIPTORS && !_library) {
|
|
19421
18096
|
redefine(ObjectProto, "propertyIsEnumerable", $propertyIsEnumerable);
|
|
@@ -19583,7 +18258,7 @@ var setPrototypeOf = { "default": setPrototypeOf$1, __esModule: true };
|
|
|
19583
18258
|
var $export = _export;
|
|
19584
18259
|
$export($export.S, "Object", { create: _objectCreate });
|
|
19585
18260
|
var $Object$1 = _coreExports.Object;
|
|
19586
|
-
var create$2 = /* @__PURE__ */ __name(function
|
|
18261
|
+
var create$2 = /* @__PURE__ */ __name(function create3(P2, D2) {
|
|
19587
18262
|
return $Object$1.create(P2, D2);
|
|
19588
18263
|
}, "create");
|
|
19589
18264
|
var create$1 = { "default": create$2, __esModule: true };
|
|
@@ -27021,7 +25696,7 @@ function isPlainObject$2(value) {
|
|
|
27021
25696
|
__name(isPlainObject$2, "isPlainObject$2");
|
|
27022
25697
|
function trough() {
|
|
27023
25698
|
const fns = [];
|
|
27024
|
-
const pipeline = { run: run3, use
|
|
25699
|
+
const pipeline = { run: run3, use };
|
|
27025
25700
|
return pipeline;
|
|
27026
25701
|
function run3(...values) {
|
|
27027
25702
|
let middlewareIndex = -1;
|
|
@@ -27052,7 +25727,7 @@ function trough() {
|
|
|
27052
25727
|
__name(next, "next");
|
|
27053
25728
|
}
|
|
27054
25729
|
__name(run3, "run");
|
|
27055
|
-
function
|
|
25730
|
+
function use(middelware) {
|
|
27056
25731
|
if (typeof middelware !== "function") {
|
|
27057
25732
|
throw new TypeError(
|
|
27058
25733
|
"Expected `middelware` to be a function, not " + middelware
|
|
@@ -27061,7 +25736,7 @@ function trough() {
|
|
|
27061
25736
|
fns.push(middelware);
|
|
27062
25737
|
return pipeline;
|
|
27063
25738
|
}
|
|
27064
|
-
__name(
|
|
25739
|
+
__name(use, "use");
|
|
27065
25740
|
}
|
|
27066
25741
|
__name(trough, "trough");
|
|
27067
25742
|
function wrap$1(middleware, callback) {
|
|
@@ -27122,7 +25797,7 @@ function base() {
|
|
|
27122
25797
|
processor.Compiler = void 0;
|
|
27123
25798
|
processor.freeze = freeze;
|
|
27124
25799
|
processor.attachers = attachers;
|
|
27125
|
-
processor.use =
|
|
25800
|
+
processor.use = use;
|
|
27126
25801
|
processor.parse = parse2;
|
|
27127
25802
|
processor.stringify = stringify4;
|
|
27128
25803
|
processor.run = run3;
|
|
@@ -27179,7 +25854,7 @@ function base() {
|
|
|
27179
25854
|
return processor;
|
|
27180
25855
|
}
|
|
27181
25856
|
__name(freeze, "freeze");
|
|
27182
|
-
function
|
|
25857
|
+
function use(value, ...options) {
|
|
27183
25858
|
let settings;
|
|
27184
25859
|
assertUnfrozen("use", frozen);
|
|
27185
25860
|
if (value === null || value === void 0)
|
|
@@ -27255,7 +25930,7 @@ function base() {
|
|
|
27255
25930
|
}
|
|
27256
25931
|
__name(addPlugin, "addPlugin");
|
|
27257
25932
|
}
|
|
27258
|
-
__name(
|
|
25933
|
+
__name(use, "use");
|
|
27259
25934
|
function parse2(doc) {
|
|
27260
25935
|
processor.freeze();
|
|
27261
25936
|
const file = vfile(doc);
|
|
@@ -27522,19 +26197,19 @@ function push$1(list2, items) {
|
|
|
27522
26197
|
__name(push$1, "push$1");
|
|
27523
26198
|
const hasOwnProperty$h = {}.hasOwnProperty;
|
|
27524
26199
|
function combineExtensions(extensions) {
|
|
27525
|
-
const
|
|
26200
|
+
const all2 = {};
|
|
27526
26201
|
let index2 = -1;
|
|
27527
26202
|
while (++index2 < extensions.length) {
|
|
27528
|
-
syntaxExtension(
|
|
26203
|
+
syntaxExtension(all2, extensions[index2]);
|
|
27529
26204
|
}
|
|
27530
|
-
return
|
|
26205
|
+
return all2;
|
|
27531
26206
|
}
|
|
27532
26207
|
__name(combineExtensions, "combineExtensions");
|
|
27533
|
-
function syntaxExtension(
|
|
26208
|
+
function syntaxExtension(all2, extension2) {
|
|
27534
26209
|
let hook;
|
|
27535
26210
|
for (hook in extension2) {
|
|
27536
|
-
const maybe = hasOwnProperty$h.call(
|
|
27537
|
-
const left2 = maybe || (
|
|
26211
|
+
const maybe = hasOwnProperty$h.call(all2, hook) ? all2[hook] : void 0;
|
|
26212
|
+
const left2 = maybe || (all2[hook] = {});
|
|
27538
26213
|
const right2 = extension2[hook];
|
|
27539
26214
|
let code2;
|
|
27540
26215
|
if (right2) {
|
|
@@ -27935,7 +26610,7 @@ function resolveAllAttention(events2, context) {
|
|
|
27935
26610
|
let text2;
|
|
27936
26611
|
let openingSequence;
|
|
27937
26612
|
let closingSequence;
|
|
27938
|
-
let
|
|
26613
|
+
let use;
|
|
27939
26614
|
let nextEvents;
|
|
27940
26615
|
let offset3;
|
|
27941
26616
|
while (++index2 < events2.length) {
|
|
@@ -27947,28 +26622,28 @@ function resolveAllAttention(events2, context) {
|
|
|
27947
26622
|
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)) {
|
|
27948
26623
|
continue;
|
|
27949
26624
|
}
|
|
27950
|
-
|
|
26625
|
+
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;
|
|
27951
26626
|
const start2 = Object.assign({}, events2[open2][1].end);
|
|
27952
26627
|
const end2 = Object.assign({}, events2[index2][1].start);
|
|
27953
|
-
movePoint(start2, -
|
|
27954
|
-
movePoint(end2,
|
|
26628
|
+
movePoint(start2, -use);
|
|
26629
|
+
movePoint(end2, use);
|
|
27955
26630
|
openingSequence = {
|
|
27956
|
-
type:
|
|
26631
|
+
type: use > 1 ? "strongSequence" : "emphasisSequence",
|
|
27957
26632
|
start: start2,
|
|
27958
26633
|
end: Object.assign({}, events2[open2][1].end)
|
|
27959
26634
|
};
|
|
27960
26635
|
closingSequence = {
|
|
27961
|
-
type:
|
|
26636
|
+
type: use > 1 ? "strongSequence" : "emphasisSequence",
|
|
27962
26637
|
start: Object.assign({}, events2[index2][1].start),
|
|
27963
26638
|
end: end2
|
|
27964
26639
|
};
|
|
27965
26640
|
text2 = {
|
|
27966
|
-
type:
|
|
26641
|
+
type: use > 1 ? "strongText" : "emphasisText",
|
|
27967
26642
|
start: Object.assign({}, events2[open2][1].end),
|
|
27968
26643
|
end: Object.assign({}, events2[index2][1].start)
|
|
27969
26644
|
};
|
|
27970
26645
|
group = {
|
|
27971
|
-
type:
|
|
26646
|
+
type: use > 1 ? "strong" : "emphasis",
|
|
27972
26647
|
start: Object.assign({}, openingSequence.start),
|
|
27973
26648
|
end: Object.assign({}, closingSequence.end)
|
|
27974
26649
|
};
|
|
@@ -31318,12 +29993,12 @@ function createTokenizer(parser, initialize, from3) {
|
|
|
31318
29993
|
return start2;
|
|
31319
29994
|
function start2(code2) {
|
|
31320
29995
|
const def2 = code2 !== null && map3[code2];
|
|
31321
|
-
const
|
|
29996
|
+
const all2 = code2 !== null && map3.null;
|
|
31322
29997
|
const list2 = [
|
|
31323
29998
|
// To do: add more extension tests.
|
|
31324
29999
|
/* c8 ignore next 2 */
|
|
31325
30000
|
...Array.isArray(def2) ? def2 : def2 ? [def2] : [],
|
|
31326
|
-
...Array.isArray(
|
|
30001
|
+
...Array.isArray(all2) ? all2 : all2 ? [all2] : []
|
|
31327
30002
|
];
|
|
31328
30003
|
return handleListOfConstructs(list2)(code2);
|
|
31329
30004
|
}
|
|
@@ -31578,21 +30253,21 @@ function parse$5(options) {
|
|
|
31578
30253
|
defined: [],
|
|
31579
30254
|
lazy: {},
|
|
31580
30255
|
constructs: constructs2,
|
|
31581
|
-
content:
|
|
31582
|
-
document:
|
|
31583
|
-
flow:
|
|
31584
|
-
string:
|
|
31585
|
-
text:
|
|
30256
|
+
content: create6(content$1),
|
|
30257
|
+
document: create6(document$2),
|
|
30258
|
+
flow: create6(flow$1),
|
|
30259
|
+
string: create6(string$1),
|
|
30260
|
+
text: create6(text$3)
|
|
31586
30261
|
};
|
|
31587
30262
|
return parser;
|
|
31588
|
-
function
|
|
30263
|
+
function create6(initial) {
|
|
31589
30264
|
return creator;
|
|
31590
30265
|
function creator(from3) {
|
|
31591
30266
|
return createTokenizer(parser, initial, from3);
|
|
31592
30267
|
}
|
|
31593
30268
|
__name(creator, "creator");
|
|
31594
30269
|
}
|
|
31595
|
-
__name(
|
|
30270
|
+
__name(create6, "create");
|
|
31596
30271
|
}
|
|
31597
30272
|
__name(parse$5, "parse$5");
|
|
31598
30273
|
const search$1 = /[\0\t\n\r]/g;
|
|
@@ -32003,10 +30678,10 @@ function compiler(options) {
|
|
|
32003
30678
|
return data[key];
|
|
32004
30679
|
}
|
|
32005
30680
|
__name(getData, "getData");
|
|
32006
|
-
function opener(
|
|
30681
|
+
function opener(create6, and) {
|
|
32007
30682
|
return open2;
|
|
32008
30683
|
function open2(token) {
|
|
32009
|
-
enter.call(this,
|
|
30684
|
+
enter.call(this, create6(token), token);
|
|
32010
30685
|
if (and)
|
|
32011
30686
|
and.call(this, token);
|
|
32012
30687
|
}
|
|
@@ -32871,8 +31546,8 @@ function listLoose(node2) {
|
|
|
32871
31546
|
}
|
|
32872
31547
|
__name(listLoose, "listLoose");
|
|
32873
31548
|
function listItemLoose(node2) {
|
|
32874
|
-
const
|
|
32875
|
-
return
|
|
31549
|
+
const spread = node2.spread;
|
|
31550
|
+
return spread === void 0 || spread === null ? node2.children.length > 1 : spread;
|
|
32876
31551
|
}
|
|
32877
31552
|
__name(listItemLoose, "listItemLoose");
|
|
32878
31553
|
function list(state, node2) {
|
|
@@ -33168,8 +31843,8 @@ function anyFactory(tests) {
|
|
|
33168
31843
|
}
|
|
33169
31844
|
__name(anyFactory, "anyFactory");
|
|
33170
31845
|
function propsFactory(check) {
|
|
33171
|
-
return castFactory(
|
|
33172
|
-
function
|
|
31846
|
+
return castFactory(all2);
|
|
31847
|
+
function all2(node2) {
|
|
33173
31848
|
let key;
|
|
33174
31849
|
for (key in check) {
|
|
33175
31850
|
if (node2[key] !== check[key])
|
|
@@ -33177,7 +31852,7 @@ function propsFactory(check) {
|
|
|
33177
31852
|
}
|
|
33178
31853
|
return true;
|
|
33179
31854
|
}
|
|
33180
|
-
__name(
|
|
31855
|
+
__name(all2, "all");
|
|
33181
31856
|
}
|
|
33182
31857
|
__name(propsFactory, "propsFactory");
|
|
33183
31858
|
function typeFactory(check) {
|
|
@@ -33428,7 +32103,7 @@ function createState(tree, options) {
|
|
|
33428
32103
|
}
|
|
33429
32104
|
__name(oneBound, "oneBound");
|
|
33430
32105
|
function allBound(parent) {
|
|
33431
|
-
return
|
|
32106
|
+
return all(state, parent);
|
|
33432
32107
|
}
|
|
33433
32108
|
__name(allBound, "allBound");
|
|
33434
32109
|
}
|
|
@@ -33475,7 +32150,7 @@ function one(state, node2, parent) {
|
|
|
33475
32150
|
return state.handlers[type](state, node2, parent);
|
|
33476
32151
|
}
|
|
33477
32152
|
if (state.passThrough && state.passThrough.includes(type)) {
|
|
33478
|
-
return "children" in node2 ? __spreadProps(__spreadValues({}, node2), { children:
|
|
32153
|
+
return "children" in node2 ? __spreadProps(__spreadValues({}, node2), { children: all(state, node2) }) : node2;
|
|
33479
32154
|
}
|
|
33480
32155
|
if (state.unknownHandler) {
|
|
33481
32156
|
return state.unknownHandler(state, node2, parent);
|
|
@@ -33483,7 +32158,7 @@ function one(state, node2, parent) {
|
|
|
33483
32158
|
return defaultUnknownHandler(state, node2);
|
|
33484
32159
|
}
|
|
33485
32160
|
__name(one, "one");
|
|
33486
|
-
function
|
|
32161
|
+
function all(state, parent) {
|
|
33487
32162
|
const values = [];
|
|
33488
32163
|
if ("children" in parent) {
|
|
33489
32164
|
const nodes = parent.children;
|
|
@@ -33512,14 +32187,14 @@ function all2(state, parent) {
|
|
|
33512
32187
|
}
|
|
33513
32188
|
return values;
|
|
33514
32189
|
}
|
|
33515
|
-
__name(
|
|
32190
|
+
__name(all, "all");
|
|
33516
32191
|
function defaultUnknownHandler(state, node2) {
|
|
33517
32192
|
const data = node2.data || {};
|
|
33518
32193
|
const result = "value" in node2 && !(own$4.call(data, "hProperties") || own$4.call(data, "hChildren")) ? { type: "text", value: node2.value } : {
|
|
33519
32194
|
type: "element",
|
|
33520
32195
|
tagName: "div",
|
|
33521
32196
|
properties: {},
|
|
33522
|
-
children:
|
|
32197
|
+
children: all(state, node2)
|
|
33523
32198
|
};
|
|
33524
32199
|
state.patch(node2, result);
|
|
33525
32200
|
return state.applyData(node2, result);
|
|
@@ -33768,7 +32443,7 @@ function mark(values, key, value) {
|
|
|
33768
32443
|
}
|
|
33769
32444
|
__name(mark, "mark");
|
|
33770
32445
|
const own$3 = {}.hasOwnProperty;
|
|
33771
|
-
function
|
|
32446
|
+
function create4(definition2) {
|
|
33772
32447
|
const property2 = {};
|
|
33773
32448
|
const normal = {};
|
|
33774
32449
|
let prop;
|
|
@@ -33791,8 +32466,8 @@ function create5(definition2) {
|
|
|
33791
32466
|
}
|
|
33792
32467
|
return new Schema(property2, normal, definition2.space);
|
|
33793
32468
|
}
|
|
33794
|
-
__name(
|
|
33795
|
-
const xlink =
|
|
32469
|
+
__name(create4, "create");
|
|
32470
|
+
const xlink = create4({
|
|
33796
32471
|
space: "xlink",
|
|
33797
32472
|
transform(_2, prop) {
|
|
33798
32473
|
return "xlink:" + prop.slice(5).toLowerCase();
|
|
@@ -33807,7 +32482,7 @@ const xlink = create5({
|
|
|
33807
32482
|
xLinkType: null
|
|
33808
32483
|
}
|
|
33809
32484
|
});
|
|
33810
|
-
const xml =
|
|
32485
|
+
const xml = create4({
|
|
33811
32486
|
space: "xml",
|
|
33812
32487
|
transform(_2, prop) {
|
|
33813
32488
|
return "xml:" + prop.slice(3).toLowerCase();
|
|
@@ -33822,13 +32497,13 @@ function caseInsensitiveTransform(attributes, property2) {
|
|
|
33822
32497
|
return caseSensitiveTransform(attributes, property2.toLowerCase());
|
|
33823
32498
|
}
|
|
33824
32499
|
__name(caseInsensitiveTransform, "caseInsensitiveTransform");
|
|
33825
|
-
const xmlns =
|
|
32500
|
+
const xmlns = create4({
|
|
33826
32501
|
space: "xmlns",
|
|
33827
32502
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
33828
32503
|
transform: caseInsensitiveTransform,
|
|
33829
32504
|
properties: { xmlns: null, xmlnsXLink: null }
|
|
33830
32505
|
});
|
|
33831
|
-
const aria =
|
|
32506
|
+
const aria = create4({
|
|
33832
32507
|
transform(_2, prop) {
|
|
33833
32508
|
return prop === "role" ? prop : "aria-" + prop.slice(4).toLowerCase();
|
|
33834
32509
|
},
|
|
@@ -33884,7 +32559,7 @@ const aria = create5({
|
|
|
33884
32559
|
role: null
|
|
33885
32560
|
}
|
|
33886
32561
|
});
|
|
33887
|
-
const html$1 =
|
|
32562
|
+
const html$1 = create4({
|
|
33888
32563
|
space: "html",
|
|
33889
32564
|
attributes: {
|
|
33890
32565
|
acceptcharset: "accept-charset",
|
|
@@ -34235,7 +32910,7 @@ const html$1 = create5({
|
|
|
34235
32910
|
unselectable: null
|
|
34236
32911
|
}
|
|
34237
32912
|
});
|
|
34238
|
-
const svg$1 =
|
|
32913
|
+
const svg$1 = create4({
|
|
34239
32914
|
space: "svg",
|
|
34240
32915
|
attributes: {
|
|
34241
32916
|
accentHeight: "accent-height",
|
|
@@ -40901,7 +39576,7 @@ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
|
40901
39576
|
var slice = Array.prototype.slice;
|
|
40902
39577
|
var toStr$1 = Object.prototype.toString;
|
|
40903
39578
|
var funcType = "[object Function]";
|
|
40904
|
-
var implementation$1 = /* @__PURE__ */ __name(function
|
|
39579
|
+
var implementation$1 = /* @__PURE__ */ __name(function bind(that) {
|
|
40905
39580
|
var target = this;
|
|
40906
39581
|
if (typeof target !== "function" || toStr$1.call(target) !== funcType) {
|
|
40907
39582
|
throw new TypeError(ERROR_MESSAGE + target);
|
|
@@ -41136,13 +39811,13 @@ var LEGACY_ALIASES = {
|
|
|
41136
39811
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
41137
39812
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
41138
39813
|
};
|
|
41139
|
-
var
|
|
39814
|
+
var bind2 = functionBind;
|
|
41140
39815
|
var hasOwn$2 = src$1;
|
|
41141
|
-
var $concat$1 =
|
|
41142
|
-
var $spliceApply =
|
|
41143
|
-
var $replace$1 =
|
|
41144
|
-
var $strSlice =
|
|
41145
|
-
var $exec =
|
|
39816
|
+
var $concat$1 = bind2.call(Function.call, Array.prototype.concat);
|
|
39817
|
+
var $spliceApply = bind2.call(Function.apply, Array.prototype.splice);
|
|
39818
|
+
var $replace$1 = bind2.call(Function.call, String.prototype.replace);
|
|
39819
|
+
var $strSlice = bind2.call(Function.call, String.prototype.slice);
|
|
39820
|
+
var $exec = bind2.call(Function.call, RegExp.prototype.exec);
|
|
41146
39821
|
var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
41147
39822
|
var reEscapeChar$1 = /\\(\\)?/g;
|
|
41148
39823
|
var stringToPath$2 = /* @__PURE__ */ __name(function stringToPath(string2) {
|
|
@@ -41245,11 +39920,11 @@ var getIntrinsic = /* @__PURE__ */ __name(function GetIntrinsic(name, allowMissi
|
|
|
41245
39920
|
}, "GetIntrinsic");
|
|
41246
39921
|
var callBind$1 = { exports: {} };
|
|
41247
39922
|
(function(module2) {
|
|
41248
|
-
var
|
|
39923
|
+
var bind3 = functionBind;
|
|
41249
39924
|
var GetIntrinsic3 = getIntrinsic;
|
|
41250
39925
|
var $apply = GetIntrinsic3("%Function.prototype.apply%");
|
|
41251
39926
|
var $call = GetIntrinsic3("%Function.prototype.call%");
|
|
41252
|
-
var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) ||
|
|
39927
|
+
var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) || bind3.call($call, $apply);
|
|
41253
39928
|
var $gOPD2 = GetIntrinsic3("%Object.getOwnPropertyDescriptor%", true);
|
|
41254
39929
|
var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true);
|
|
41255
39930
|
var $max = GetIntrinsic3("%Math.max%");
|
|
@@ -41261,7 +39936,7 @@ var callBind$1 = { exports: {} };
|
|
|
41261
39936
|
}
|
|
41262
39937
|
}
|
|
41263
39938
|
module2.exports = /* @__PURE__ */ __name(function callBind2(originalFunction) {
|
|
41264
|
-
var func = $reflectApply(
|
|
39939
|
+
var func = $reflectApply(bind3, $call, arguments);
|
|
41265
39940
|
if ($gOPD2 && $defineProperty2) {
|
|
41266
39941
|
var desc = $gOPD2(func, "length");
|
|
41267
39942
|
if (desc.configurable) {
|
|
@@ -41275,7 +39950,7 @@ var callBind$1 = { exports: {} };
|
|
|
41275
39950
|
return func;
|
|
41276
39951
|
}, "callBind");
|
|
41277
39952
|
var applyBind = /* @__PURE__ */ __name(function applyBind2() {
|
|
41278
|
-
return $reflectApply(
|
|
39953
|
+
return $reflectApply(bind3, $apply, arguments);
|
|
41279
39954
|
}, "applyBind");
|
|
41280
39955
|
if ($defineProperty2) {
|
|
41281
39956
|
$defineProperty2(module2.exports, "apply", { value: applyBind });
|
|
@@ -46923,11 +45598,11 @@ function castFunction(value) {
|
|
|
46923
45598
|
return typeof value == "function" ? value : identity2;
|
|
46924
45599
|
}
|
|
46925
45600
|
__name(castFunction, "castFunction");
|
|
46926
|
-
function
|
|
45601
|
+
function forEach(collection, iteratee) {
|
|
46927
45602
|
var func = isArray$2(collection) ? arrayEach : baseEach$1;
|
|
46928
45603
|
return func(collection, castFunction(iteratee));
|
|
46929
45604
|
}
|
|
46930
|
-
__name(
|
|
45605
|
+
__name(forEach, "forEach");
|
|
46931
45606
|
function _typeof$3(obj) {
|
|
46932
45607
|
"@babel/helpers - typeof";
|
|
46933
45608
|
return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
@@ -47949,7 +46624,7 @@ var simpleCheckForValidColor = /* @__PURE__ */ __name(function simpleCheckForVal
|
|
|
47949
46624
|
var keysToCheck = ["r", "g", "b", "a", "h", "s", "l", "v"];
|
|
47950
46625
|
var checked = 0;
|
|
47951
46626
|
var passed = 0;
|
|
47952
|
-
|
|
46627
|
+
forEach(keysToCheck, function(letter) {
|
|
47953
46628
|
if (data[letter]) {
|
|
47954
46629
|
checked += 1;
|
|
47955
46630
|
if (!isNaN(data[letter])) {
|
|
@@ -52961,8 +51636,8 @@ function useDeepCompareMemoize(value) {
|
|
|
52961
51636
|
}, [signalRef.current]);
|
|
52962
51637
|
}
|
|
52963
51638
|
__name(useDeepCompareMemoize, "useDeepCompareMemoize");
|
|
52964
|
-
function useDeepCompareEffect(callback,
|
|
52965
|
-
return React__namespace.useEffect(callback, useDeepCompareMemoize(
|
|
51639
|
+
function useDeepCompareEffect(callback, dependencies) {
|
|
51640
|
+
return React__namespace.useEffect(callback, useDeepCompareMemoize(dependencies));
|
|
52966
51641
|
}
|
|
52967
51642
|
__name(useDeepCompareEffect, "useDeepCompareEffect");
|
|
52968
51643
|
const _TgSuggest = class _TgSuggest extends React$1.Component {
|
|
@@ -55369,7 +54044,7 @@ var KNOWN_STATICS = {
|
|
|
55369
54044
|
arguments: true,
|
|
55370
54045
|
arity: true
|
|
55371
54046
|
};
|
|
55372
|
-
var
|
|
54047
|
+
var defineProperty5 = Object.defineProperty;
|
|
55373
54048
|
var getOwnPropertyNames4 = Object.getOwnPropertyNames;
|
|
55374
54049
|
var getOwnPropertySymbols3 = Object.getOwnPropertySymbols;
|
|
55375
54050
|
var getOwnPropertyDescriptor3 = Object.getOwnPropertyDescriptor;
|
|
@@ -55392,7 +54067,7 @@ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
|
55392
54067
|
if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) {
|
|
55393
54068
|
var descriptor2 = getOwnPropertyDescriptor3(sourceComponent, key);
|
|
55394
54069
|
try {
|
|
55395
|
-
|
|
54070
|
+
defineProperty5(targetComponent, key, descriptor2);
|
|
55396
54071
|
} catch (e2) {
|
|
55397
54072
|
}
|
|
55398
54073
|
}
|
|
@@ -56455,9 +55130,9 @@ const editCellHelper = /* @__PURE__ */ __name(({
|
|
|
56455
55130
|
error = validate(nv, colSchema, entity);
|
|
56456
55131
|
}
|
|
56457
55132
|
if (!error) {
|
|
56458
|
-
const
|
|
56459
|
-
if (
|
|
56460
|
-
error =
|
|
55133
|
+
const validator = defaultValidators[type] || type === "string" || type === void 0 && defaultValidators.string;
|
|
55134
|
+
if (validator) {
|
|
55135
|
+
error = validator(nv, colSchema);
|
|
56461
55136
|
}
|
|
56462
55137
|
}
|
|
56463
55138
|
lodashExports.set(entity, path2, nv);
|
|
@@ -58595,7 +57270,7 @@ const _DataTable = class _DataTable extends React$1.Component {
|
|
|
58595
57270
|
} = computePresets(this.props);
|
|
58596
57271
|
const {
|
|
58597
57272
|
displayName,
|
|
58598
|
-
description
|
|
57273
|
+
description,
|
|
58599
57274
|
isUnique,
|
|
58600
57275
|
sortDisabled,
|
|
58601
57276
|
filterDisabled,
|
|
@@ -58720,10 +57395,10 @@ const _DataTable = class _DataTable extends React$1.Component {
|
|
|
58720
57395
|
const columnTitleTextified = getTextFromEl(columnTitle);
|
|
58721
57396
|
return /* @__PURE__ */ React$1.createElement(
|
|
58722
57397
|
"div",
|
|
58723
|
-
__spreadProps(__spreadValues({},
|
|
57398
|
+
__spreadProps(__spreadValues({}, description && {
|
|
58724
57399
|
"data-tip": `<div>
|
|
58725
57400
|
<strong>${columnTitle}:</strong> <br>
|
|
58726
|
-
${
|
|
57401
|
+
${description} ${isUnique ? "<br>Must be unique" : ""}</div>`
|
|
58727
57402
|
}), {
|
|
58728
57403
|
"data-test": columnTitleTextified,
|
|
58729
57404
|
"data-path": path2,
|
|
@@ -58742,9 +57417,9 @@ const _DataTable = class _DataTable extends React$1.Component {
|
|
|
58742
57417
|
title: columnTitleTextified,
|
|
58743
57418
|
className: classNames({
|
|
58744
57419
|
"tg-react-table-name": true,
|
|
58745
|
-
"no-data-tip": !!
|
|
57420
|
+
"no-data-tip": !!description
|
|
58746
57421
|
}),
|
|
58747
|
-
style: __spreadProps(__spreadValues({},
|
|
57422
|
+
style: __spreadProps(__spreadValues({}, description && { fontStyle: "italic" }), {
|
|
58748
57423
|
display: "inline-block"
|
|
58749
57424
|
})
|
|
58750
57425
|
},
|
|
@@ -70209,13 +68884,13 @@ var bluebird = { exports: {} };
|
|
|
70209
68884
|
contextBind
|
|
70210
68885
|
};
|
|
70211
68886
|
ret.isRecentNode = ret.isNode && function() {
|
|
70212
|
-
var
|
|
68887
|
+
var version;
|
|
70213
68888
|
if (process.versions && process.versions.node) {
|
|
70214
|
-
|
|
68889
|
+
version = process.versions.node.split(".").map(Number);
|
|
70215
68890
|
} else if (process.version) {
|
|
70216
|
-
|
|
68891
|
+
version = process.version.split(".").map(Number);
|
|
70217
68892
|
}
|
|
70218
|
-
return
|
|
68893
|
+
return version[0] === 0 && version[1] > 10 || version[0] > 0;
|
|
70219
68894
|
}();
|
|
70220
68895
|
ret.nodeSupportsAsyncResource = ret.isNode && function() {
|
|
70221
68896
|
var supportsAsync = false;
|
|
@@ -70968,9 +69643,9 @@ __name(generateColumnDescription, "generateColumnDescription");
|
|
|
70968
69643
|
function generateColumnsDescription(_ref) {
|
|
70969
69644
|
var schema = _ref.schema, columns = _ref.columns;
|
|
70970
69645
|
if (schema || columns) {
|
|
70971
|
-
var
|
|
70972
|
-
if (
|
|
70973
|
-
return "<cols>".concat(
|
|
69646
|
+
var description = (schema || columns).map(generateColumnDescription).join("");
|
|
69647
|
+
if (description) {
|
|
69648
|
+
return "<cols>".concat(description, "</cols>");
|
|
70974
69649
|
}
|
|
70975
69650
|
}
|
|
70976
69651
|
return "";
|
|
@@ -71905,8 +70580,6 @@ function UploaderInner({
|
|
|
71905
70580
|
fileLimit,
|
|
71906
70581
|
readBeforeUpload,
|
|
71907
70582
|
//read the file using the browser's FileReader before passing it to onChange and/or uploading it
|
|
71908
|
-
uploadInBulk,
|
|
71909
|
-
//tnr: not yet implemented
|
|
71910
70583
|
showUploadList = true,
|
|
71911
70584
|
beforeUpload,
|
|
71912
70585
|
fileList,
|
|
@@ -71931,7 +70604,7 @@ function UploaderInner({
|
|
|
71931
70604
|
showFilesCount,
|
|
71932
70605
|
threeDotMenuItems,
|
|
71933
70606
|
onPreviewClick,
|
|
71934
|
-
axiosInstance = window.api || axios
|
|
70607
|
+
axiosInstance = window.api || axios
|
|
71935
70608
|
}) {
|
|
71936
70609
|
var _a2, _b, _c, _d, _e, _f;
|
|
71937
70610
|
const validateAgainstSchemaStore = React$1.useRef(new ValidateAgainstSchema());
|
|
@@ -72135,45 +70808,45 @@ function UploaderInner({
|
|
|
72135
70808
|
if (!keepGoing)
|
|
72136
70809
|
return;
|
|
72137
70810
|
if (action2) {
|
|
72138
|
-
|
|
72139
|
-
|
|
72140
|
-
|
|
72141
|
-
|
|
72142
|
-
|
|
72143
|
-
|
|
72144
|
-
const
|
|
72145
|
-
|
|
72146
|
-
|
|
72147
|
-
|
|
72148
|
-
|
|
72149
|
-
|
|
72150
|
-
const fileToReturn = __spreadValues(__spreadValues({}, file), res.data[0]);
|
|
72151
|
-
if (fileToReturn.id === fileToUpload.id) {
|
|
72152
|
-
fileToReturn.loading = false;
|
|
72153
|
-
}
|
|
72154
|
-
return fileToReturn;
|
|
72155
|
-
});
|
|
72156
|
-
onChange(cleanedFileList);
|
|
72157
|
-
});
|
|
72158
|
-
}).catch(function(err) {
|
|
72159
|
-
console.error("Error uploading file:", err);
|
|
72160
|
-
responses.push(__spreadProps(__spreadValues({}, fileToUpload), {
|
|
72161
|
-
error: err && err.msg ? err.msg : err
|
|
72162
|
-
}));
|
|
70811
|
+
const responses = [];
|
|
70812
|
+
yield Promise.all(
|
|
70813
|
+
acceptedFiles.map((fileToUpload) => __async(this, null, function* () {
|
|
70814
|
+
const data = new FormData();
|
|
70815
|
+
data.append("file", fileToUpload);
|
|
70816
|
+
try {
|
|
70817
|
+
const res = yield window.api ? window.api.post(action2, data) : fetch(action2, {
|
|
70818
|
+
method: "POST",
|
|
70819
|
+
body: data
|
|
70820
|
+
});
|
|
70821
|
+
responses.push(res.data && res.data[0]);
|
|
70822
|
+
onFileSuccess(res.data[0]).then(() => {
|
|
72163
70823
|
cleanedFileList = cleanedFileList.map((file) => {
|
|
72164
|
-
const fileToReturn = __spreadValues({}, file);
|
|
70824
|
+
const fileToReturn = __spreadValues(__spreadValues({}, file), res.data[0]);
|
|
72165
70825
|
if (fileToReturn.id === fileToUpload.id) {
|
|
72166
70826
|
fileToReturn.loading = false;
|
|
72167
|
-
fileToReturn.error = true;
|
|
72168
70827
|
}
|
|
72169
70828
|
return fileToReturn;
|
|
72170
70829
|
});
|
|
72171
70830
|
onChange(cleanedFileList);
|
|
72172
70831
|
});
|
|
72173
|
-
})
|
|
72174
|
-
|
|
72175
|
-
|
|
72176
|
-
|
|
70832
|
+
} catch (err) {
|
|
70833
|
+
console.error("Error uploading file:", err);
|
|
70834
|
+
responses.push(__spreadProps(__spreadValues({}, fileToUpload), {
|
|
70835
|
+
error: err && err.msg ? err.msg : err
|
|
70836
|
+
}));
|
|
70837
|
+
cleanedFileList = cleanedFileList.map((file) => {
|
|
70838
|
+
const fileToReturn = __spreadValues({}, file);
|
|
70839
|
+
if (fileToReturn.id === fileToUpload.id) {
|
|
70840
|
+
fileToReturn.loading = false;
|
|
70841
|
+
fileToReturn.error = true;
|
|
70842
|
+
}
|
|
70843
|
+
return fileToReturn;
|
|
70844
|
+
});
|
|
70845
|
+
onChange(cleanedFileList);
|
|
70846
|
+
}
|
|
70847
|
+
}))
|
|
70848
|
+
);
|
|
70849
|
+
onFieldSubmit(responses);
|
|
72177
70850
|
} else {
|
|
72178
70851
|
onChange(
|
|
72179
70852
|
cleanedFileList.map(function(file) {
|
|
@@ -72224,13 +70897,13 @@ function UploaderInner({
|
|
|
72224
70897
|
disabled: disabled2,
|
|
72225
70898
|
modifiers: popoverOverflowModifiers,
|
|
72226
70899
|
content: a2.exampleFiles ? /* @__PURE__ */ React$1.createElement(core$5.Menu, null, a2.exampleFiles.map(
|
|
72227
|
-
({ description
|
|
70900
|
+
({ description, subtext, exampleFile, icon }, i2) => {
|
|
72228
70901
|
return /* @__PURE__ */ React$1.createElement(
|
|
72229
70902
|
core$5.MenuItem,
|
|
72230
70903
|
__spreadProps(__spreadValues({
|
|
72231
70904
|
icon: icon || "download",
|
|
72232
70905
|
intent: "primary",
|
|
72233
|
-
text: subtext ? /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement("div", null,
|
|
70906
|
+
text: subtext ? /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement("div", null, description), /* @__PURE__ */ React$1.createElement(
|
|
72234
70907
|
"div",
|
|
72235
70908
|
{
|
|
72236
70909
|
style: {
|
|
@@ -72240,7 +70913,7 @@ function UploaderInner({
|
|
|
72240
70913
|
}
|
|
72241
70914
|
},
|
|
72242
70915
|
subtext
|
|
72243
|
-
), " ") :
|
|
70916
|
+
), " ") : description
|
|
72244
70917
|
}, getFileDownloadAttr(exampleFile)), {
|
|
72245
70918
|
key: i2
|
|
72246
70919
|
})
|
|
@@ -75037,7 +73710,7 @@ ObjectWithoutPrototypeCache.prototype.set = function(key, value) {
|
|
|
75037
73710
|
this.cache[key] = value;
|
|
75038
73711
|
};
|
|
75039
73712
|
var cacheDefault = {
|
|
75040
|
-
create: /* @__PURE__ */ __name(function
|
|
73713
|
+
create: /* @__PURE__ */ __name(function create5() {
|
|
75041
73714
|
return new ObjectWithoutPrototypeCache();
|
|
75042
73715
|
}, "create")
|
|
75043
73716
|
};
|