@weni/unnnic-system 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/unnnic.common.js +3841 -1
- package/dist/unnnic.common.js.map +1 -1
- package/dist/unnnic.css +1 -1
- package/dist/unnnic.umd.js +3841 -1
- package/dist/unnnic.umd.js.map +1 -1
- package/dist/unnnic.umd.min.js +73 -73
- package/dist/unnnic.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/AudioRecorder/AudioHandler.vue +85 -0
- package/src/components/AudioRecorder/AudioPlayer.vue +84 -0
- package/src/components/AudioRecorder/AudioRecorder.vue +206 -0
- package/src/components/index.js +3 -0
- package/src/stories/AudioRecorder.stories.js +34 -0
- package/src/assets/img/emoji/u1F601.png +0 -0
- package/src/assets/img/emoji/u1F610.png +0 -0
- package/src/assets/img/emoji/u1F625.png +0 -0
- package/src/assets/img/emoji/u1F641.png +0 -0
- package/src/assets/img/emoji/u1F645.png +0 -0
package/dist/unnnic.common.js
CHANGED
|
@@ -1245,6 +1245,44 @@ module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
1245
1245
|
|
|
1246
1246
|
module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M20 13.1255C22.2437 13.1255 24.0625 11.3066 24.0625 9.06299C24.0625 6.81933 22.2437 5.00049 20 5.00049C17.7563 5.00049 15.9375 6.81933 15.9375 9.06299C15.9375 11.3066 17.7563 13.1255 20 13.1255Z\" fill=\"#3B414D\" class=\"primary\"></path><path d=\"M20 24.063C22.2437 24.063 24.0625 22.2441 24.0625 20.0005C24.0625 17.7568 22.2437 15.938 20 15.938C17.7563 15.938 15.9375 17.7568 15.9375 20.0005C15.9375 22.2441 17.7563 24.063 20 24.063Z\" fill=\"#3B414D\" class=\"primary\"></path><path d=\"M20 35.0005C22.2437 35.0005 24.0625 33.1816 24.0625 30.938C24.0625 28.6943 22.2437 26.8755 20 26.8755C17.7563 26.8755 15.9375 28.6943 15.9375 30.938C15.9375 33.1816 17.7563 35.0005 20 35.0005Z\" fill=\"#3B414D\" class=\"primary\"></path></svg>"
|
|
1247
1247
|
|
|
1248
|
+
/***/ }),
|
|
1249
|
+
|
|
1250
|
+
/***/ "0ccb":
|
|
1251
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1252
|
+
|
|
1253
|
+
// https://github.com/tc39/proposal-string-pad-start-end
|
|
1254
|
+
var toLength = __webpack_require__("50c4");
|
|
1255
|
+
var repeat = __webpack_require__("1148");
|
|
1256
|
+
var requireObjectCoercible = __webpack_require__("1d80");
|
|
1257
|
+
|
|
1258
|
+
var ceil = Math.ceil;
|
|
1259
|
+
|
|
1260
|
+
// `String.prototype.{ padStart, padEnd }` methods implementation
|
|
1261
|
+
var createMethod = function (IS_END) {
|
|
1262
|
+
return function ($this, maxLength, fillString) {
|
|
1263
|
+
var S = String(requireObjectCoercible($this));
|
|
1264
|
+
var stringLength = S.length;
|
|
1265
|
+
var fillStr = fillString === undefined ? ' ' : String(fillString);
|
|
1266
|
+
var intMaxLength = toLength(maxLength);
|
|
1267
|
+
var fillLen, stringFiller;
|
|
1268
|
+
if (intMaxLength <= stringLength || fillStr == '') return S;
|
|
1269
|
+
fillLen = intMaxLength - stringLength;
|
|
1270
|
+
stringFiller = repeat.call(fillStr, ceil(fillLen / fillStr.length));
|
|
1271
|
+
if (stringFiller.length > fillLen) stringFiller = stringFiller.slice(0, fillLen);
|
|
1272
|
+
return IS_END ? S + stringFiller : stringFiller + S;
|
|
1273
|
+
};
|
|
1274
|
+
};
|
|
1275
|
+
|
|
1276
|
+
module.exports = {
|
|
1277
|
+
// `String.prototype.padStart` method
|
|
1278
|
+
// https://tc39.github.io/ecma262/#sec-string.prototype.padstart
|
|
1279
|
+
start: createMethod(false),
|
|
1280
|
+
// `String.prototype.padEnd` method
|
|
1281
|
+
// https://tc39.github.io/ecma262/#sec-string.prototype.padend
|
|
1282
|
+
end: createMethod(true)
|
|
1283
|
+
};
|
|
1284
|
+
|
|
1285
|
+
|
|
1248
1286
|
/***/ }),
|
|
1249
1287
|
|
|
1250
1288
|
/***/ "0cfb":
|
|
@@ -1262,6 +1300,46 @@ module.exports = !DESCRIPTORS && !fails(function () {
|
|
|
1262
1300
|
});
|
|
1263
1301
|
|
|
1264
1302
|
|
|
1303
|
+
/***/ }),
|
|
1304
|
+
|
|
1305
|
+
/***/ "0d3b":
|
|
1306
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1307
|
+
|
|
1308
|
+
var fails = __webpack_require__("d039");
|
|
1309
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
1310
|
+
var IS_PURE = __webpack_require__("c430");
|
|
1311
|
+
|
|
1312
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
1313
|
+
|
|
1314
|
+
module.exports = !fails(function () {
|
|
1315
|
+
var url = new URL('b?a=1&b=2&c=3', 'http://a');
|
|
1316
|
+
var searchParams = url.searchParams;
|
|
1317
|
+
var result = '';
|
|
1318
|
+
url.pathname = 'c%20d';
|
|
1319
|
+
searchParams.forEach(function (value, key) {
|
|
1320
|
+
searchParams['delete']('b');
|
|
1321
|
+
result += key + value;
|
|
1322
|
+
});
|
|
1323
|
+
return (IS_PURE && !url.toJSON)
|
|
1324
|
+
|| !searchParams.sort
|
|
1325
|
+
|| url.href !== 'http://a/c%20d?a=1&c=3'
|
|
1326
|
+
|| searchParams.get('c') !== '3'
|
|
1327
|
+
|| String(new URLSearchParams('?a=1')) !== 'a=1'
|
|
1328
|
+
|| !searchParams[ITERATOR]
|
|
1329
|
+
// throws in Edge
|
|
1330
|
+
|| new URL('https://a@b').username !== 'a'
|
|
1331
|
+
|| new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'
|
|
1332
|
+
// not punycoded in Edge
|
|
1333
|
+
|| new URL('http://тест').host !== 'xn--e1aybc'
|
|
1334
|
+
// not escaped in Chrome 62-
|
|
1335
|
+
|| new URL('http://a#б').hash !== '#%D0%B1'
|
|
1336
|
+
// fails in Chrome 66-
|
|
1337
|
+
|| result !== 'a1c3'
|
|
1338
|
+
// throws in Safari
|
|
1339
|
+
|| new URL('http://x', undefined).host !== 'x';
|
|
1340
|
+
});
|
|
1341
|
+
|
|
1342
|
+
|
|
1265
1343
|
/***/ }),
|
|
1266
1344
|
|
|
1267
1345
|
/***/ "0dae":
|
|
@@ -2421,6 +2499,18 @@ module.exports = (!STRICT_METHOD || !USES_TO_LENGTH) ? function forEach(callback
|
|
|
2421
2499
|
} : [].forEach;
|
|
2422
2500
|
|
|
2423
2501
|
|
|
2502
|
+
/***/ }),
|
|
2503
|
+
|
|
2504
|
+
/***/ "19aa":
|
|
2505
|
+
/***/ (function(module, exports) {
|
|
2506
|
+
|
|
2507
|
+
module.exports = function (it, Constructor, name) {
|
|
2508
|
+
if (!(it instanceof Constructor)) {
|
|
2509
|
+
throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');
|
|
2510
|
+
} return it;
|
|
2511
|
+
};
|
|
2512
|
+
|
|
2513
|
+
|
|
2424
2514
|
/***/ }),
|
|
2425
2515
|
|
|
2426
2516
|
/***/ "19c9":
|
|
@@ -2589,6 +2679,16 @@ module.exports = function (exec, SKIP_CLOSING) {
|
|
|
2589
2679
|
// extracted by mini-css-extract-plugin
|
|
2590
2680
|
module.exports = {"unnnicColorBackgroundSolo":"#E8F4F4"};
|
|
2591
2681
|
|
|
2682
|
+
/***/ }),
|
|
2683
|
+
|
|
2684
|
+
/***/ "1cdc":
|
|
2685
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2686
|
+
|
|
2687
|
+
var userAgent = __webpack_require__("342f");
|
|
2688
|
+
|
|
2689
|
+
module.exports = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent);
|
|
2690
|
+
|
|
2691
|
+
|
|
2592
2692
|
/***/ }),
|
|
2593
2693
|
|
|
2594
2694
|
/***/ "1cfd":
|
|
@@ -3120,6 +3220,71 @@ module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
3120
3220
|
|
|
3121
3221
|
module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7.81227 31.2515C6.26115 31.2515 5 29.9903 5 28.4392V7.81593C5 6.26481 6.26115 5.00366 7.81227 5.00366H30.3104C31.8615 5.00366 33.1227 6.26481 33.1227 7.81593V15.3153C33.1227 15.8328 32.7027 16.2527 32.1852 16.2527C31.6678 16.2527 31.2478 15.8328 31.2478 15.3153V12.503H6.87484V28.4392C6.87484 28.9567 7.29481 29.3766 7.81227 29.3766H15.3116C15.8291 29.3766 16.2491 29.7966 16.2491 30.314C16.2491 30.8315 15.8291 31.2515 15.3116 31.2515H7.81227ZM31.2478 10.6282V7.81593C31.2478 7.29847 30.8279 6.87851 30.3104 6.87851H7.81227C7.29481 6.87851 6.87484 7.29847 6.87484 7.81593V10.6282H31.2478Z\" fill=\"#3B414D\" class=\"primary\"></path><path d=\"M19.0601 34.9976C18.8101 34.9976 18.5739 34.9001 18.3977 34.7226C18.1752 34.5014 18.079 34.1839 18.1415 33.8765L19.0789 29.1894C19.1151 29.0069 19.2039 28.8406 19.3351 28.7094L28.8731 19.1727C29.5492 18.4965 30.4479 18.124 31.4053 18.124C32.3628 18.124 33.2614 18.4965 33.9376 19.1727C34.6213 19.8551 34.9988 20.7576 35 21.7137C35 22.6711 34.6288 23.5698 33.9539 24.2473L24.4122 33.784C24.2809 33.9152 24.1147 34.004 23.9322 34.0402L19.2451 34.9776C19.1826 34.9914 19.1214 34.9976 19.0601 34.9976ZM20.255 32.8653L23.2848 32.2591L32.6252 22.9236C32.9465 22.6012 33.1239 22.1737 33.1227 21.7175C33.1227 21.2613 32.944 20.8338 32.6215 20.5113C32.2928 20.1826 31.8591 20.0026 31.3991 20.0026C30.9441 20.0026 30.5179 20.1789 30.1967 20.5001L20.86 29.8356L20.255 32.8653Z\" fill=\"#3B414D\" class=\"primary\"></path></svg>"
|
|
3122
3222
|
|
|
3223
|
+
/***/ }),
|
|
3224
|
+
|
|
3225
|
+
/***/ "2266":
|
|
3226
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3227
|
+
|
|
3228
|
+
var anObject = __webpack_require__("825a");
|
|
3229
|
+
var isArrayIteratorMethod = __webpack_require__("e95a");
|
|
3230
|
+
var toLength = __webpack_require__("50c4");
|
|
3231
|
+
var bind = __webpack_require__("0366");
|
|
3232
|
+
var getIteratorMethod = __webpack_require__("35a1");
|
|
3233
|
+
var iteratorClose = __webpack_require__("2a62");
|
|
3234
|
+
|
|
3235
|
+
var Result = function (stopped, result) {
|
|
3236
|
+
this.stopped = stopped;
|
|
3237
|
+
this.result = result;
|
|
3238
|
+
};
|
|
3239
|
+
|
|
3240
|
+
module.exports = function (iterable, unboundFunction, options) {
|
|
3241
|
+
var that = options && options.that;
|
|
3242
|
+
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
3243
|
+
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
3244
|
+
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
3245
|
+
var fn = bind(unboundFunction, that, 1 + AS_ENTRIES + INTERRUPTED);
|
|
3246
|
+
var iterator, iterFn, index, length, result, next, step;
|
|
3247
|
+
|
|
3248
|
+
var stop = function (condition) {
|
|
3249
|
+
if (iterator) iteratorClose(iterator);
|
|
3250
|
+
return new Result(true, condition);
|
|
3251
|
+
};
|
|
3252
|
+
|
|
3253
|
+
var callFn = function (value) {
|
|
3254
|
+
if (AS_ENTRIES) {
|
|
3255
|
+
anObject(value);
|
|
3256
|
+
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
3257
|
+
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
3258
|
+
};
|
|
3259
|
+
|
|
3260
|
+
if (IS_ITERATOR) {
|
|
3261
|
+
iterator = iterable;
|
|
3262
|
+
} else {
|
|
3263
|
+
iterFn = getIteratorMethod(iterable);
|
|
3264
|
+
if (typeof iterFn != 'function') throw TypeError('Target is not iterable');
|
|
3265
|
+
// optimisation for array iterators
|
|
3266
|
+
if (isArrayIteratorMethod(iterFn)) {
|
|
3267
|
+
for (index = 0, length = toLength(iterable.length); length > index; index++) {
|
|
3268
|
+
result = callFn(iterable[index]);
|
|
3269
|
+
if (result && result instanceof Result) return result;
|
|
3270
|
+
} return new Result(false);
|
|
3271
|
+
}
|
|
3272
|
+
iterator = iterFn.call(iterable);
|
|
3273
|
+
}
|
|
3274
|
+
|
|
3275
|
+
next = iterator.next;
|
|
3276
|
+
while (!(step = next.call(iterator)).done) {
|
|
3277
|
+
try {
|
|
3278
|
+
result = callFn(step.value);
|
|
3279
|
+
} catch (error) {
|
|
3280
|
+
iteratorClose(iterator);
|
|
3281
|
+
throw error;
|
|
3282
|
+
}
|
|
3283
|
+
if (typeof result == 'object' && result && result instanceof Result) return result;
|
|
3284
|
+
} return new Result(false);
|
|
3285
|
+
};
|
|
3286
|
+
|
|
3287
|
+
|
|
3123
3288
|
/***/ }),
|
|
3124
3289
|
|
|
3125
3290
|
/***/ "2281":
|
|
@@ -3712,6 +3877,33 @@ if (NOT_GENERIC || INCORRECT_NAME) {
|
|
|
3712
3877
|
}
|
|
3713
3878
|
|
|
3714
3879
|
|
|
3880
|
+
/***/ }),
|
|
3881
|
+
|
|
3882
|
+
/***/ "2626":
|
|
3883
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3884
|
+
|
|
3885
|
+
"use strict";
|
|
3886
|
+
|
|
3887
|
+
var getBuiltIn = __webpack_require__("d066");
|
|
3888
|
+
var definePropertyModule = __webpack_require__("9bf2");
|
|
3889
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
3890
|
+
var DESCRIPTORS = __webpack_require__("83ab");
|
|
3891
|
+
|
|
3892
|
+
var SPECIES = wellKnownSymbol('species');
|
|
3893
|
+
|
|
3894
|
+
module.exports = function (CONSTRUCTOR_NAME) {
|
|
3895
|
+
var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
|
|
3896
|
+
var defineProperty = definePropertyModule.f;
|
|
3897
|
+
|
|
3898
|
+
if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {
|
|
3899
|
+
defineProperty(Constructor, SPECIES, {
|
|
3900
|
+
configurable: true,
|
|
3901
|
+
get: function () { return this; }
|
|
3902
|
+
});
|
|
3903
|
+
}
|
|
3904
|
+
};
|
|
3905
|
+
|
|
3906
|
+
|
|
3715
3907
|
/***/ }),
|
|
3716
3908
|
|
|
3717
3909
|
/***/ "267f":
|
|
@@ -4153,6 +4345,1021 @@ module.exports = function (iterator) {
|
|
|
4153
4345
|
};
|
|
4154
4346
|
|
|
4155
4347
|
|
|
4348
|
+
/***/ }),
|
|
4349
|
+
|
|
4350
|
+
/***/ "2b3d":
|
|
4351
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4352
|
+
|
|
4353
|
+
"use strict";
|
|
4354
|
+
|
|
4355
|
+
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
|
|
4356
|
+
__webpack_require__("3ca3");
|
|
4357
|
+
var $ = __webpack_require__("23e7");
|
|
4358
|
+
var DESCRIPTORS = __webpack_require__("83ab");
|
|
4359
|
+
var USE_NATIVE_URL = __webpack_require__("0d3b");
|
|
4360
|
+
var global = __webpack_require__("da84");
|
|
4361
|
+
var defineProperties = __webpack_require__("37e8");
|
|
4362
|
+
var redefine = __webpack_require__("6eeb");
|
|
4363
|
+
var anInstance = __webpack_require__("19aa");
|
|
4364
|
+
var has = __webpack_require__("5135");
|
|
4365
|
+
var assign = __webpack_require__("60da");
|
|
4366
|
+
var arrayFrom = __webpack_require__("4df4");
|
|
4367
|
+
var codeAt = __webpack_require__("6547").codeAt;
|
|
4368
|
+
var toASCII = __webpack_require__("5fb2");
|
|
4369
|
+
var setToStringTag = __webpack_require__("d44e");
|
|
4370
|
+
var URLSearchParamsModule = __webpack_require__("9861");
|
|
4371
|
+
var InternalStateModule = __webpack_require__("69f3");
|
|
4372
|
+
|
|
4373
|
+
var NativeURL = global.URL;
|
|
4374
|
+
var URLSearchParams = URLSearchParamsModule.URLSearchParams;
|
|
4375
|
+
var getInternalSearchParamsState = URLSearchParamsModule.getState;
|
|
4376
|
+
var setInternalState = InternalStateModule.set;
|
|
4377
|
+
var getInternalURLState = InternalStateModule.getterFor('URL');
|
|
4378
|
+
var floor = Math.floor;
|
|
4379
|
+
var pow = Math.pow;
|
|
4380
|
+
|
|
4381
|
+
var INVALID_AUTHORITY = 'Invalid authority';
|
|
4382
|
+
var INVALID_SCHEME = 'Invalid scheme';
|
|
4383
|
+
var INVALID_HOST = 'Invalid host';
|
|
4384
|
+
var INVALID_PORT = 'Invalid port';
|
|
4385
|
+
|
|
4386
|
+
var ALPHA = /[A-Za-z]/;
|
|
4387
|
+
var ALPHANUMERIC = /[\d+-.A-Za-z]/;
|
|
4388
|
+
var DIGIT = /\d/;
|
|
4389
|
+
var HEX_START = /^(0x|0X)/;
|
|
4390
|
+
var OCT = /^[0-7]+$/;
|
|
4391
|
+
var DEC = /^\d+$/;
|
|
4392
|
+
var HEX = /^[\dA-Fa-f]+$/;
|
|
4393
|
+
// eslint-disable-next-line no-control-regex
|
|
4394
|
+
var FORBIDDEN_HOST_CODE_POINT = /[\u0000\u0009\u000A\u000D #%/:?@[\\]]/;
|
|
4395
|
+
// eslint-disable-next-line no-control-regex
|
|
4396
|
+
var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\u0000\u0009\u000A\u000D #/:?@[\\]]/;
|
|
4397
|
+
// eslint-disable-next-line no-control-regex
|
|
4398
|
+
var LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE = /^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g;
|
|
4399
|
+
// eslint-disable-next-line no-control-regex
|
|
4400
|
+
var TAB_AND_NEW_LINE = /[\u0009\u000A\u000D]/g;
|
|
4401
|
+
var EOF;
|
|
4402
|
+
|
|
4403
|
+
var parseHost = function (url, input) {
|
|
4404
|
+
var result, codePoints, index;
|
|
4405
|
+
if (input.charAt(0) == '[') {
|
|
4406
|
+
if (input.charAt(input.length - 1) != ']') return INVALID_HOST;
|
|
4407
|
+
result = parseIPv6(input.slice(1, -1));
|
|
4408
|
+
if (!result) return INVALID_HOST;
|
|
4409
|
+
url.host = result;
|
|
4410
|
+
// opaque host
|
|
4411
|
+
} else if (!isSpecial(url)) {
|
|
4412
|
+
if (FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT.test(input)) return INVALID_HOST;
|
|
4413
|
+
result = '';
|
|
4414
|
+
codePoints = arrayFrom(input);
|
|
4415
|
+
for (index = 0; index < codePoints.length; index++) {
|
|
4416
|
+
result += percentEncode(codePoints[index], C0ControlPercentEncodeSet);
|
|
4417
|
+
}
|
|
4418
|
+
url.host = result;
|
|
4419
|
+
} else {
|
|
4420
|
+
input = toASCII(input);
|
|
4421
|
+
if (FORBIDDEN_HOST_CODE_POINT.test(input)) return INVALID_HOST;
|
|
4422
|
+
result = parseIPv4(input);
|
|
4423
|
+
if (result === null) return INVALID_HOST;
|
|
4424
|
+
url.host = result;
|
|
4425
|
+
}
|
|
4426
|
+
};
|
|
4427
|
+
|
|
4428
|
+
var parseIPv4 = function (input) {
|
|
4429
|
+
var parts = input.split('.');
|
|
4430
|
+
var partsLength, numbers, index, part, radix, number, ipv4;
|
|
4431
|
+
if (parts.length && parts[parts.length - 1] == '') {
|
|
4432
|
+
parts.pop();
|
|
4433
|
+
}
|
|
4434
|
+
partsLength = parts.length;
|
|
4435
|
+
if (partsLength > 4) return input;
|
|
4436
|
+
numbers = [];
|
|
4437
|
+
for (index = 0; index < partsLength; index++) {
|
|
4438
|
+
part = parts[index];
|
|
4439
|
+
if (part == '') return input;
|
|
4440
|
+
radix = 10;
|
|
4441
|
+
if (part.length > 1 && part.charAt(0) == '0') {
|
|
4442
|
+
radix = HEX_START.test(part) ? 16 : 8;
|
|
4443
|
+
part = part.slice(radix == 8 ? 1 : 2);
|
|
4444
|
+
}
|
|
4445
|
+
if (part === '') {
|
|
4446
|
+
number = 0;
|
|
4447
|
+
} else {
|
|
4448
|
+
if (!(radix == 10 ? DEC : radix == 8 ? OCT : HEX).test(part)) return input;
|
|
4449
|
+
number = parseInt(part, radix);
|
|
4450
|
+
}
|
|
4451
|
+
numbers.push(number);
|
|
4452
|
+
}
|
|
4453
|
+
for (index = 0; index < partsLength; index++) {
|
|
4454
|
+
number = numbers[index];
|
|
4455
|
+
if (index == partsLength - 1) {
|
|
4456
|
+
if (number >= pow(256, 5 - partsLength)) return null;
|
|
4457
|
+
} else if (number > 255) return null;
|
|
4458
|
+
}
|
|
4459
|
+
ipv4 = numbers.pop();
|
|
4460
|
+
for (index = 0; index < numbers.length; index++) {
|
|
4461
|
+
ipv4 += numbers[index] * pow(256, 3 - index);
|
|
4462
|
+
}
|
|
4463
|
+
return ipv4;
|
|
4464
|
+
};
|
|
4465
|
+
|
|
4466
|
+
// eslint-disable-next-line max-statements
|
|
4467
|
+
var parseIPv6 = function (input) {
|
|
4468
|
+
var address = [0, 0, 0, 0, 0, 0, 0, 0];
|
|
4469
|
+
var pieceIndex = 0;
|
|
4470
|
+
var compress = null;
|
|
4471
|
+
var pointer = 0;
|
|
4472
|
+
var value, length, numbersSeen, ipv4Piece, number, swaps, swap;
|
|
4473
|
+
|
|
4474
|
+
var char = function () {
|
|
4475
|
+
return input.charAt(pointer);
|
|
4476
|
+
};
|
|
4477
|
+
|
|
4478
|
+
if (char() == ':') {
|
|
4479
|
+
if (input.charAt(1) != ':') return;
|
|
4480
|
+
pointer += 2;
|
|
4481
|
+
pieceIndex++;
|
|
4482
|
+
compress = pieceIndex;
|
|
4483
|
+
}
|
|
4484
|
+
while (char()) {
|
|
4485
|
+
if (pieceIndex == 8) return;
|
|
4486
|
+
if (char() == ':') {
|
|
4487
|
+
if (compress !== null) return;
|
|
4488
|
+
pointer++;
|
|
4489
|
+
pieceIndex++;
|
|
4490
|
+
compress = pieceIndex;
|
|
4491
|
+
continue;
|
|
4492
|
+
}
|
|
4493
|
+
value = length = 0;
|
|
4494
|
+
while (length < 4 && HEX.test(char())) {
|
|
4495
|
+
value = value * 16 + parseInt(char(), 16);
|
|
4496
|
+
pointer++;
|
|
4497
|
+
length++;
|
|
4498
|
+
}
|
|
4499
|
+
if (char() == '.') {
|
|
4500
|
+
if (length == 0) return;
|
|
4501
|
+
pointer -= length;
|
|
4502
|
+
if (pieceIndex > 6) return;
|
|
4503
|
+
numbersSeen = 0;
|
|
4504
|
+
while (char()) {
|
|
4505
|
+
ipv4Piece = null;
|
|
4506
|
+
if (numbersSeen > 0) {
|
|
4507
|
+
if (char() == '.' && numbersSeen < 4) pointer++;
|
|
4508
|
+
else return;
|
|
4509
|
+
}
|
|
4510
|
+
if (!DIGIT.test(char())) return;
|
|
4511
|
+
while (DIGIT.test(char())) {
|
|
4512
|
+
number = parseInt(char(), 10);
|
|
4513
|
+
if (ipv4Piece === null) ipv4Piece = number;
|
|
4514
|
+
else if (ipv4Piece == 0) return;
|
|
4515
|
+
else ipv4Piece = ipv4Piece * 10 + number;
|
|
4516
|
+
if (ipv4Piece > 255) return;
|
|
4517
|
+
pointer++;
|
|
4518
|
+
}
|
|
4519
|
+
address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece;
|
|
4520
|
+
numbersSeen++;
|
|
4521
|
+
if (numbersSeen == 2 || numbersSeen == 4) pieceIndex++;
|
|
4522
|
+
}
|
|
4523
|
+
if (numbersSeen != 4) return;
|
|
4524
|
+
break;
|
|
4525
|
+
} else if (char() == ':') {
|
|
4526
|
+
pointer++;
|
|
4527
|
+
if (!char()) return;
|
|
4528
|
+
} else if (char()) return;
|
|
4529
|
+
address[pieceIndex++] = value;
|
|
4530
|
+
}
|
|
4531
|
+
if (compress !== null) {
|
|
4532
|
+
swaps = pieceIndex - compress;
|
|
4533
|
+
pieceIndex = 7;
|
|
4534
|
+
while (pieceIndex != 0 && swaps > 0) {
|
|
4535
|
+
swap = address[pieceIndex];
|
|
4536
|
+
address[pieceIndex--] = address[compress + swaps - 1];
|
|
4537
|
+
address[compress + --swaps] = swap;
|
|
4538
|
+
}
|
|
4539
|
+
} else if (pieceIndex != 8) return;
|
|
4540
|
+
return address;
|
|
4541
|
+
};
|
|
4542
|
+
|
|
4543
|
+
var findLongestZeroSequence = function (ipv6) {
|
|
4544
|
+
var maxIndex = null;
|
|
4545
|
+
var maxLength = 1;
|
|
4546
|
+
var currStart = null;
|
|
4547
|
+
var currLength = 0;
|
|
4548
|
+
var index = 0;
|
|
4549
|
+
for (; index < 8; index++) {
|
|
4550
|
+
if (ipv6[index] !== 0) {
|
|
4551
|
+
if (currLength > maxLength) {
|
|
4552
|
+
maxIndex = currStart;
|
|
4553
|
+
maxLength = currLength;
|
|
4554
|
+
}
|
|
4555
|
+
currStart = null;
|
|
4556
|
+
currLength = 0;
|
|
4557
|
+
} else {
|
|
4558
|
+
if (currStart === null) currStart = index;
|
|
4559
|
+
++currLength;
|
|
4560
|
+
}
|
|
4561
|
+
}
|
|
4562
|
+
if (currLength > maxLength) {
|
|
4563
|
+
maxIndex = currStart;
|
|
4564
|
+
maxLength = currLength;
|
|
4565
|
+
}
|
|
4566
|
+
return maxIndex;
|
|
4567
|
+
};
|
|
4568
|
+
|
|
4569
|
+
var serializeHost = function (host) {
|
|
4570
|
+
var result, index, compress, ignore0;
|
|
4571
|
+
// ipv4
|
|
4572
|
+
if (typeof host == 'number') {
|
|
4573
|
+
result = [];
|
|
4574
|
+
for (index = 0; index < 4; index++) {
|
|
4575
|
+
result.unshift(host % 256);
|
|
4576
|
+
host = floor(host / 256);
|
|
4577
|
+
} return result.join('.');
|
|
4578
|
+
// ipv6
|
|
4579
|
+
} else if (typeof host == 'object') {
|
|
4580
|
+
result = '';
|
|
4581
|
+
compress = findLongestZeroSequence(host);
|
|
4582
|
+
for (index = 0; index < 8; index++) {
|
|
4583
|
+
if (ignore0 && host[index] === 0) continue;
|
|
4584
|
+
if (ignore0) ignore0 = false;
|
|
4585
|
+
if (compress === index) {
|
|
4586
|
+
result += index ? ':' : '::';
|
|
4587
|
+
ignore0 = true;
|
|
4588
|
+
} else {
|
|
4589
|
+
result += host[index].toString(16);
|
|
4590
|
+
if (index < 7) result += ':';
|
|
4591
|
+
}
|
|
4592
|
+
}
|
|
4593
|
+
return '[' + result + ']';
|
|
4594
|
+
} return host;
|
|
4595
|
+
};
|
|
4596
|
+
|
|
4597
|
+
var C0ControlPercentEncodeSet = {};
|
|
4598
|
+
var fragmentPercentEncodeSet = assign({}, C0ControlPercentEncodeSet, {
|
|
4599
|
+
' ': 1, '"': 1, '<': 1, '>': 1, '`': 1
|
|
4600
|
+
});
|
|
4601
|
+
var pathPercentEncodeSet = assign({}, fragmentPercentEncodeSet, {
|
|
4602
|
+
'#': 1, '?': 1, '{': 1, '}': 1
|
|
4603
|
+
});
|
|
4604
|
+
var userinfoPercentEncodeSet = assign({}, pathPercentEncodeSet, {
|
|
4605
|
+
'/': 1, ':': 1, ';': 1, '=': 1, '@': 1, '[': 1, '\\': 1, ']': 1, '^': 1, '|': 1
|
|
4606
|
+
});
|
|
4607
|
+
|
|
4608
|
+
var percentEncode = function (char, set) {
|
|
4609
|
+
var code = codeAt(char, 0);
|
|
4610
|
+
return code > 0x20 && code < 0x7F && !has(set, char) ? char : encodeURIComponent(char);
|
|
4611
|
+
};
|
|
4612
|
+
|
|
4613
|
+
var specialSchemes = {
|
|
4614
|
+
ftp: 21,
|
|
4615
|
+
file: null,
|
|
4616
|
+
http: 80,
|
|
4617
|
+
https: 443,
|
|
4618
|
+
ws: 80,
|
|
4619
|
+
wss: 443
|
|
4620
|
+
};
|
|
4621
|
+
|
|
4622
|
+
var isSpecial = function (url) {
|
|
4623
|
+
return has(specialSchemes, url.scheme);
|
|
4624
|
+
};
|
|
4625
|
+
|
|
4626
|
+
var includesCredentials = function (url) {
|
|
4627
|
+
return url.username != '' || url.password != '';
|
|
4628
|
+
};
|
|
4629
|
+
|
|
4630
|
+
var cannotHaveUsernamePasswordPort = function (url) {
|
|
4631
|
+
return !url.host || url.cannotBeABaseURL || url.scheme == 'file';
|
|
4632
|
+
};
|
|
4633
|
+
|
|
4634
|
+
var isWindowsDriveLetter = function (string, normalized) {
|
|
4635
|
+
var second;
|
|
4636
|
+
return string.length == 2 && ALPHA.test(string.charAt(0))
|
|
4637
|
+
&& ((second = string.charAt(1)) == ':' || (!normalized && second == '|'));
|
|
4638
|
+
};
|
|
4639
|
+
|
|
4640
|
+
var startsWithWindowsDriveLetter = function (string) {
|
|
4641
|
+
var third;
|
|
4642
|
+
return string.length > 1 && isWindowsDriveLetter(string.slice(0, 2)) && (
|
|
4643
|
+
string.length == 2 ||
|
|
4644
|
+
((third = string.charAt(2)) === '/' || third === '\\' || third === '?' || third === '#')
|
|
4645
|
+
);
|
|
4646
|
+
};
|
|
4647
|
+
|
|
4648
|
+
var shortenURLsPath = function (url) {
|
|
4649
|
+
var path = url.path;
|
|
4650
|
+
var pathSize = path.length;
|
|
4651
|
+
if (pathSize && (url.scheme != 'file' || pathSize != 1 || !isWindowsDriveLetter(path[0], true))) {
|
|
4652
|
+
path.pop();
|
|
4653
|
+
}
|
|
4654
|
+
};
|
|
4655
|
+
|
|
4656
|
+
var isSingleDot = function (segment) {
|
|
4657
|
+
return segment === '.' || segment.toLowerCase() === '%2e';
|
|
4658
|
+
};
|
|
4659
|
+
|
|
4660
|
+
var isDoubleDot = function (segment) {
|
|
4661
|
+
segment = segment.toLowerCase();
|
|
4662
|
+
return segment === '..' || segment === '%2e.' || segment === '.%2e' || segment === '%2e%2e';
|
|
4663
|
+
};
|
|
4664
|
+
|
|
4665
|
+
// States:
|
|
4666
|
+
var SCHEME_START = {};
|
|
4667
|
+
var SCHEME = {};
|
|
4668
|
+
var NO_SCHEME = {};
|
|
4669
|
+
var SPECIAL_RELATIVE_OR_AUTHORITY = {};
|
|
4670
|
+
var PATH_OR_AUTHORITY = {};
|
|
4671
|
+
var RELATIVE = {};
|
|
4672
|
+
var RELATIVE_SLASH = {};
|
|
4673
|
+
var SPECIAL_AUTHORITY_SLASHES = {};
|
|
4674
|
+
var SPECIAL_AUTHORITY_IGNORE_SLASHES = {};
|
|
4675
|
+
var AUTHORITY = {};
|
|
4676
|
+
var HOST = {};
|
|
4677
|
+
var HOSTNAME = {};
|
|
4678
|
+
var PORT = {};
|
|
4679
|
+
var FILE = {};
|
|
4680
|
+
var FILE_SLASH = {};
|
|
4681
|
+
var FILE_HOST = {};
|
|
4682
|
+
var PATH_START = {};
|
|
4683
|
+
var PATH = {};
|
|
4684
|
+
var CANNOT_BE_A_BASE_URL_PATH = {};
|
|
4685
|
+
var QUERY = {};
|
|
4686
|
+
var FRAGMENT = {};
|
|
4687
|
+
|
|
4688
|
+
// eslint-disable-next-line max-statements
|
|
4689
|
+
var parseURL = function (url, input, stateOverride, base) {
|
|
4690
|
+
var state = stateOverride || SCHEME_START;
|
|
4691
|
+
var pointer = 0;
|
|
4692
|
+
var buffer = '';
|
|
4693
|
+
var seenAt = false;
|
|
4694
|
+
var seenBracket = false;
|
|
4695
|
+
var seenPasswordToken = false;
|
|
4696
|
+
var codePoints, char, bufferCodePoints, failure;
|
|
4697
|
+
|
|
4698
|
+
if (!stateOverride) {
|
|
4699
|
+
url.scheme = '';
|
|
4700
|
+
url.username = '';
|
|
4701
|
+
url.password = '';
|
|
4702
|
+
url.host = null;
|
|
4703
|
+
url.port = null;
|
|
4704
|
+
url.path = [];
|
|
4705
|
+
url.query = null;
|
|
4706
|
+
url.fragment = null;
|
|
4707
|
+
url.cannotBeABaseURL = false;
|
|
4708
|
+
input = input.replace(LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE, '');
|
|
4709
|
+
}
|
|
4710
|
+
|
|
4711
|
+
input = input.replace(TAB_AND_NEW_LINE, '');
|
|
4712
|
+
|
|
4713
|
+
codePoints = arrayFrom(input);
|
|
4714
|
+
|
|
4715
|
+
while (pointer <= codePoints.length) {
|
|
4716
|
+
char = codePoints[pointer];
|
|
4717
|
+
switch (state) {
|
|
4718
|
+
case SCHEME_START:
|
|
4719
|
+
if (char && ALPHA.test(char)) {
|
|
4720
|
+
buffer += char.toLowerCase();
|
|
4721
|
+
state = SCHEME;
|
|
4722
|
+
} else if (!stateOverride) {
|
|
4723
|
+
state = NO_SCHEME;
|
|
4724
|
+
continue;
|
|
4725
|
+
} else return INVALID_SCHEME;
|
|
4726
|
+
break;
|
|
4727
|
+
|
|
4728
|
+
case SCHEME:
|
|
4729
|
+
if (char && (ALPHANUMERIC.test(char) || char == '+' || char == '-' || char == '.')) {
|
|
4730
|
+
buffer += char.toLowerCase();
|
|
4731
|
+
} else if (char == ':') {
|
|
4732
|
+
if (stateOverride && (
|
|
4733
|
+
(isSpecial(url) != has(specialSchemes, buffer)) ||
|
|
4734
|
+
(buffer == 'file' && (includesCredentials(url) || url.port !== null)) ||
|
|
4735
|
+
(url.scheme == 'file' && !url.host)
|
|
4736
|
+
)) return;
|
|
4737
|
+
url.scheme = buffer;
|
|
4738
|
+
if (stateOverride) {
|
|
4739
|
+
if (isSpecial(url) && specialSchemes[url.scheme] == url.port) url.port = null;
|
|
4740
|
+
return;
|
|
4741
|
+
}
|
|
4742
|
+
buffer = '';
|
|
4743
|
+
if (url.scheme == 'file') {
|
|
4744
|
+
state = FILE;
|
|
4745
|
+
} else if (isSpecial(url) && base && base.scheme == url.scheme) {
|
|
4746
|
+
state = SPECIAL_RELATIVE_OR_AUTHORITY;
|
|
4747
|
+
} else if (isSpecial(url)) {
|
|
4748
|
+
state = SPECIAL_AUTHORITY_SLASHES;
|
|
4749
|
+
} else if (codePoints[pointer + 1] == '/') {
|
|
4750
|
+
state = PATH_OR_AUTHORITY;
|
|
4751
|
+
pointer++;
|
|
4752
|
+
} else {
|
|
4753
|
+
url.cannotBeABaseURL = true;
|
|
4754
|
+
url.path.push('');
|
|
4755
|
+
state = CANNOT_BE_A_BASE_URL_PATH;
|
|
4756
|
+
}
|
|
4757
|
+
} else if (!stateOverride) {
|
|
4758
|
+
buffer = '';
|
|
4759
|
+
state = NO_SCHEME;
|
|
4760
|
+
pointer = 0;
|
|
4761
|
+
continue;
|
|
4762
|
+
} else return INVALID_SCHEME;
|
|
4763
|
+
break;
|
|
4764
|
+
|
|
4765
|
+
case NO_SCHEME:
|
|
4766
|
+
if (!base || (base.cannotBeABaseURL && char != '#')) return INVALID_SCHEME;
|
|
4767
|
+
if (base.cannotBeABaseURL && char == '#') {
|
|
4768
|
+
url.scheme = base.scheme;
|
|
4769
|
+
url.path = base.path.slice();
|
|
4770
|
+
url.query = base.query;
|
|
4771
|
+
url.fragment = '';
|
|
4772
|
+
url.cannotBeABaseURL = true;
|
|
4773
|
+
state = FRAGMENT;
|
|
4774
|
+
break;
|
|
4775
|
+
}
|
|
4776
|
+
state = base.scheme == 'file' ? FILE : RELATIVE;
|
|
4777
|
+
continue;
|
|
4778
|
+
|
|
4779
|
+
case SPECIAL_RELATIVE_OR_AUTHORITY:
|
|
4780
|
+
if (char == '/' && codePoints[pointer + 1] == '/') {
|
|
4781
|
+
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
|
|
4782
|
+
pointer++;
|
|
4783
|
+
} else {
|
|
4784
|
+
state = RELATIVE;
|
|
4785
|
+
continue;
|
|
4786
|
+
} break;
|
|
4787
|
+
|
|
4788
|
+
case PATH_OR_AUTHORITY:
|
|
4789
|
+
if (char == '/') {
|
|
4790
|
+
state = AUTHORITY;
|
|
4791
|
+
break;
|
|
4792
|
+
} else {
|
|
4793
|
+
state = PATH;
|
|
4794
|
+
continue;
|
|
4795
|
+
}
|
|
4796
|
+
|
|
4797
|
+
case RELATIVE:
|
|
4798
|
+
url.scheme = base.scheme;
|
|
4799
|
+
if (char == EOF) {
|
|
4800
|
+
url.username = base.username;
|
|
4801
|
+
url.password = base.password;
|
|
4802
|
+
url.host = base.host;
|
|
4803
|
+
url.port = base.port;
|
|
4804
|
+
url.path = base.path.slice();
|
|
4805
|
+
url.query = base.query;
|
|
4806
|
+
} else if (char == '/' || (char == '\\' && isSpecial(url))) {
|
|
4807
|
+
state = RELATIVE_SLASH;
|
|
4808
|
+
} else if (char == '?') {
|
|
4809
|
+
url.username = base.username;
|
|
4810
|
+
url.password = base.password;
|
|
4811
|
+
url.host = base.host;
|
|
4812
|
+
url.port = base.port;
|
|
4813
|
+
url.path = base.path.slice();
|
|
4814
|
+
url.query = '';
|
|
4815
|
+
state = QUERY;
|
|
4816
|
+
} else if (char == '#') {
|
|
4817
|
+
url.username = base.username;
|
|
4818
|
+
url.password = base.password;
|
|
4819
|
+
url.host = base.host;
|
|
4820
|
+
url.port = base.port;
|
|
4821
|
+
url.path = base.path.slice();
|
|
4822
|
+
url.query = base.query;
|
|
4823
|
+
url.fragment = '';
|
|
4824
|
+
state = FRAGMENT;
|
|
4825
|
+
} else {
|
|
4826
|
+
url.username = base.username;
|
|
4827
|
+
url.password = base.password;
|
|
4828
|
+
url.host = base.host;
|
|
4829
|
+
url.port = base.port;
|
|
4830
|
+
url.path = base.path.slice();
|
|
4831
|
+
url.path.pop();
|
|
4832
|
+
state = PATH;
|
|
4833
|
+
continue;
|
|
4834
|
+
} break;
|
|
4835
|
+
|
|
4836
|
+
case RELATIVE_SLASH:
|
|
4837
|
+
if (isSpecial(url) && (char == '/' || char == '\\')) {
|
|
4838
|
+
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
|
|
4839
|
+
} else if (char == '/') {
|
|
4840
|
+
state = AUTHORITY;
|
|
4841
|
+
} else {
|
|
4842
|
+
url.username = base.username;
|
|
4843
|
+
url.password = base.password;
|
|
4844
|
+
url.host = base.host;
|
|
4845
|
+
url.port = base.port;
|
|
4846
|
+
state = PATH;
|
|
4847
|
+
continue;
|
|
4848
|
+
} break;
|
|
4849
|
+
|
|
4850
|
+
case SPECIAL_AUTHORITY_SLASHES:
|
|
4851
|
+
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
|
|
4852
|
+
if (char != '/' || buffer.charAt(pointer + 1) != '/') continue;
|
|
4853
|
+
pointer++;
|
|
4854
|
+
break;
|
|
4855
|
+
|
|
4856
|
+
case SPECIAL_AUTHORITY_IGNORE_SLASHES:
|
|
4857
|
+
if (char != '/' && char != '\\') {
|
|
4858
|
+
state = AUTHORITY;
|
|
4859
|
+
continue;
|
|
4860
|
+
} break;
|
|
4861
|
+
|
|
4862
|
+
case AUTHORITY:
|
|
4863
|
+
if (char == '@') {
|
|
4864
|
+
if (seenAt) buffer = '%40' + buffer;
|
|
4865
|
+
seenAt = true;
|
|
4866
|
+
bufferCodePoints = arrayFrom(buffer);
|
|
4867
|
+
for (var i = 0; i < bufferCodePoints.length; i++) {
|
|
4868
|
+
var codePoint = bufferCodePoints[i];
|
|
4869
|
+
if (codePoint == ':' && !seenPasswordToken) {
|
|
4870
|
+
seenPasswordToken = true;
|
|
4871
|
+
continue;
|
|
4872
|
+
}
|
|
4873
|
+
var encodedCodePoints = percentEncode(codePoint, userinfoPercentEncodeSet);
|
|
4874
|
+
if (seenPasswordToken) url.password += encodedCodePoints;
|
|
4875
|
+
else url.username += encodedCodePoints;
|
|
4876
|
+
}
|
|
4877
|
+
buffer = '';
|
|
4878
|
+
} else if (
|
|
4879
|
+
char == EOF || char == '/' || char == '?' || char == '#' ||
|
|
4880
|
+
(char == '\\' && isSpecial(url))
|
|
4881
|
+
) {
|
|
4882
|
+
if (seenAt && buffer == '') return INVALID_AUTHORITY;
|
|
4883
|
+
pointer -= arrayFrom(buffer).length + 1;
|
|
4884
|
+
buffer = '';
|
|
4885
|
+
state = HOST;
|
|
4886
|
+
} else buffer += char;
|
|
4887
|
+
break;
|
|
4888
|
+
|
|
4889
|
+
case HOST:
|
|
4890
|
+
case HOSTNAME:
|
|
4891
|
+
if (stateOverride && url.scheme == 'file') {
|
|
4892
|
+
state = FILE_HOST;
|
|
4893
|
+
continue;
|
|
4894
|
+
} else if (char == ':' && !seenBracket) {
|
|
4895
|
+
if (buffer == '') return INVALID_HOST;
|
|
4896
|
+
failure = parseHost(url, buffer);
|
|
4897
|
+
if (failure) return failure;
|
|
4898
|
+
buffer = '';
|
|
4899
|
+
state = PORT;
|
|
4900
|
+
if (stateOverride == HOSTNAME) return;
|
|
4901
|
+
} else if (
|
|
4902
|
+
char == EOF || char == '/' || char == '?' || char == '#' ||
|
|
4903
|
+
(char == '\\' && isSpecial(url))
|
|
4904
|
+
) {
|
|
4905
|
+
if (isSpecial(url) && buffer == '') return INVALID_HOST;
|
|
4906
|
+
if (stateOverride && buffer == '' && (includesCredentials(url) || url.port !== null)) return;
|
|
4907
|
+
failure = parseHost(url, buffer);
|
|
4908
|
+
if (failure) return failure;
|
|
4909
|
+
buffer = '';
|
|
4910
|
+
state = PATH_START;
|
|
4911
|
+
if (stateOverride) return;
|
|
4912
|
+
continue;
|
|
4913
|
+
} else {
|
|
4914
|
+
if (char == '[') seenBracket = true;
|
|
4915
|
+
else if (char == ']') seenBracket = false;
|
|
4916
|
+
buffer += char;
|
|
4917
|
+
} break;
|
|
4918
|
+
|
|
4919
|
+
case PORT:
|
|
4920
|
+
if (DIGIT.test(char)) {
|
|
4921
|
+
buffer += char;
|
|
4922
|
+
} else if (
|
|
4923
|
+
char == EOF || char == '/' || char == '?' || char == '#' ||
|
|
4924
|
+
(char == '\\' && isSpecial(url)) ||
|
|
4925
|
+
stateOverride
|
|
4926
|
+
) {
|
|
4927
|
+
if (buffer != '') {
|
|
4928
|
+
var port = parseInt(buffer, 10);
|
|
4929
|
+
if (port > 0xFFFF) return INVALID_PORT;
|
|
4930
|
+
url.port = (isSpecial(url) && port === specialSchemes[url.scheme]) ? null : port;
|
|
4931
|
+
buffer = '';
|
|
4932
|
+
}
|
|
4933
|
+
if (stateOverride) return;
|
|
4934
|
+
state = PATH_START;
|
|
4935
|
+
continue;
|
|
4936
|
+
} else return INVALID_PORT;
|
|
4937
|
+
break;
|
|
4938
|
+
|
|
4939
|
+
case FILE:
|
|
4940
|
+
url.scheme = 'file';
|
|
4941
|
+
if (char == '/' || char == '\\') state = FILE_SLASH;
|
|
4942
|
+
else if (base && base.scheme == 'file') {
|
|
4943
|
+
if (char == EOF) {
|
|
4944
|
+
url.host = base.host;
|
|
4945
|
+
url.path = base.path.slice();
|
|
4946
|
+
url.query = base.query;
|
|
4947
|
+
} else if (char == '?') {
|
|
4948
|
+
url.host = base.host;
|
|
4949
|
+
url.path = base.path.slice();
|
|
4950
|
+
url.query = '';
|
|
4951
|
+
state = QUERY;
|
|
4952
|
+
} else if (char == '#') {
|
|
4953
|
+
url.host = base.host;
|
|
4954
|
+
url.path = base.path.slice();
|
|
4955
|
+
url.query = base.query;
|
|
4956
|
+
url.fragment = '';
|
|
4957
|
+
state = FRAGMENT;
|
|
4958
|
+
} else {
|
|
4959
|
+
if (!startsWithWindowsDriveLetter(codePoints.slice(pointer).join(''))) {
|
|
4960
|
+
url.host = base.host;
|
|
4961
|
+
url.path = base.path.slice();
|
|
4962
|
+
shortenURLsPath(url);
|
|
4963
|
+
}
|
|
4964
|
+
state = PATH;
|
|
4965
|
+
continue;
|
|
4966
|
+
}
|
|
4967
|
+
} else {
|
|
4968
|
+
state = PATH;
|
|
4969
|
+
continue;
|
|
4970
|
+
} break;
|
|
4971
|
+
|
|
4972
|
+
case FILE_SLASH:
|
|
4973
|
+
if (char == '/' || char == '\\') {
|
|
4974
|
+
state = FILE_HOST;
|
|
4975
|
+
break;
|
|
4976
|
+
}
|
|
4977
|
+
if (base && base.scheme == 'file' && !startsWithWindowsDriveLetter(codePoints.slice(pointer).join(''))) {
|
|
4978
|
+
if (isWindowsDriveLetter(base.path[0], true)) url.path.push(base.path[0]);
|
|
4979
|
+
else url.host = base.host;
|
|
4980
|
+
}
|
|
4981
|
+
state = PATH;
|
|
4982
|
+
continue;
|
|
4983
|
+
|
|
4984
|
+
case FILE_HOST:
|
|
4985
|
+
if (char == EOF || char == '/' || char == '\\' || char == '?' || char == '#') {
|
|
4986
|
+
if (!stateOverride && isWindowsDriveLetter(buffer)) {
|
|
4987
|
+
state = PATH;
|
|
4988
|
+
} else if (buffer == '') {
|
|
4989
|
+
url.host = '';
|
|
4990
|
+
if (stateOverride) return;
|
|
4991
|
+
state = PATH_START;
|
|
4992
|
+
} else {
|
|
4993
|
+
failure = parseHost(url, buffer);
|
|
4994
|
+
if (failure) return failure;
|
|
4995
|
+
if (url.host == 'localhost') url.host = '';
|
|
4996
|
+
if (stateOverride) return;
|
|
4997
|
+
buffer = '';
|
|
4998
|
+
state = PATH_START;
|
|
4999
|
+
} continue;
|
|
5000
|
+
} else buffer += char;
|
|
5001
|
+
break;
|
|
5002
|
+
|
|
5003
|
+
case PATH_START:
|
|
5004
|
+
if (isSpecial(url)) {
|
|
5005
|
+
state = PATH;
|
|
5006
|
+
if (char != '/' && char != '\\') continue;
|
|
5007
|
+
} else if (!stateOverride && char == '?') {
|
|
5008
|
+
url.query = '';
|
|
5009
|
+
state = QUERY;
|
|
5010
|
+
} else if (!stateOverride && char == '#') {
|
|
5011
|
+
url.fragment = '';
|
|
5012
|
+
state = FRAGMENT;
|
|
5013
|
+
} else if (char != EOF) {
|
|
5014
|
+
state = PATH;
|
|
5015
|
+
if (char != '/') continue;
|
|
5016
|
+
} break;
|
|
5017
|
+
|
|
5018
|
+
case PATH:
|
|
5019
|
+
if (
|
|
5020
|
+
char == EOF || char == '/' ||
|
|
5021
|
+
(char == '\\' && isSpecial(url)) ||
|
|
5022
|
+
(!stateOverride && (char == '?' || char == '#'))
|
|
5023
|
+
) {
|
|
5024
|
+
if (isDoubleDot(buffer)) {
|
|
5025
|
+
shortenURLsPath(url);
|
|
5026
|
+
if (char != '/' && !(char == '\\' && isSpecial(url))) {
|
|
5027
|
+
url.path.push('');
|
|
5028
|
+
}
|
|
5029
|
+
} else if (isSingleDot(buffer)) {
|
|
5030
|
+
if (char != '/' && !(char == '\\' && isSpecial(url))) {
|
|
5031
|
+
url.path.push('');
|
|
5032
|
+
}
|
|
5033
|
+
} else {
|
|
5034
|
+
if (url.scheme == 'file' && !url.path.length && isWindowsDriveLetter(buffer)) {
|
|
5035
|
+
if (url.host) url.host = '';
|
|
5036
|
+
buffer = buffer.charAt(0) + ':'; // normalize windows drive letter
|
|
5037
|
+
}
|
|
5038
|
+
url.path.push(buffer);
|
|
5039
|
+
}
|
|
5040
|
+
buffer = '';
|
|
5041
|
+
if (url.scheme == 'file' && (char == EOF || char == '?' || char == '#')) {
|
|
5042
|
+
while (url.path.length > 1 && url.path[0] === '') {
|
|
5043
|
+
url.path.shift();
|
|
5044
|
+
}
|
|
5045
|
+
}
|
|
5046
|
+
if (char == '?') {
|
|
5047
|
+
url.query = '';
|
|
5048
|
+
state = QUERY;
|
|
5049
|
+
} else if (char == '#') {
|
|
5050
|
+
url.fragment = '';
|
|
5051
|
+
state = FRAGMENT;
|
|
5052
|
+
}
|
|
5053
|
+
} else {
|
|
5054
|
+
buffer += percentEncode(char, pathPercentEncodeSet);
|
|
5055
|
+
} break;
|
|
5056
|
+
|
|
5057
|
+
case CANNOT_BE_A_BASE_URL_PATH:
|
|
5058
|
+
if (char == '?') {
|
|
5059
|
+
url.query = '';
|
|
5060
|
+
state = QUERY;
|
|
5061
|
+
} else if (char == '#') {
|
|
5062
|
+
url.fragment = '';
|
|
5063
|
+
state = FRAGMENT;
|
|
5064
|
+
} else if (char != EOF) {
|
|
5065
|
+
url.path[0] += percentEncode(char, C0ControlPercentEncodeSet);
|
|
5066
|
+
} break;
|
|
5067
|
+
|
|
5068
|
+
case QUERY:
|
|
5069
|
+
if (!stateOverride && char == '#') {
|
|
5070
|
+
url.fragment = '';
|
|
5071
|
+
state = FRAGMENT;
|
|
5072
|
+
} else if (char != EOF) {
|
|
5073
|
+
if (char == "'" && isSpecial(url)) url.query += '%27';
|
|
5074
|
+
else if (char == '#') url.query += '%23';
|
|
5075
|
+
else url.query += percentEncode(char, C0ControlPercentEncodeSet);
|
|
5076
|
+
} break;
|
|
5077
|
+
|
|
5078
|
+
case FRAGMENT:
|
|
5079
|
+
if (char != EOF) url.fragment += percentEncode(char, fragmentPercentEncodeSet);
|
|
5080
|
+
break;
|
|
5081
|
+
}
|
|
5082
|
+
|
|
5083
|
+
pointer++;
|
|
5084
|
+
}
|
|
5085
|
+
};
|
|
5086
|
+
|
|
5087
|
+
// `URL` constructor
|
|
5088
|
+
// https://url.spec.whatwg.org/#url-class
|
|
5089
|
+
var URLConstructor = function URL(url /* , base */) {
|
|
5090
|
+
var that = anInstance(this, URLConstructor, 'URL');
|
|
5091
|
+
var base = arguments.length > 1 ? arguments[1] : undefined;
|
|
5092
|
+
var urlString = String(url);
|
|
5093
|
+
var state = setInternalState(that, { type: 'URL' });
|
|
5094
|
+
var baseState, failure;
|
|
5095
|
+
if (base !== undefined) {
|
|
5096
|
+
if (base instanceof URLConstructor) baseState = getInternalURLState(base);
|
|
5097
|
+
else {
|
|
5098
|
+
failure = parseURL(baseState = {}, String(base));
|
|
5099
|
+
if (failure) throw TypeError(failure);
|
|
5100
|
+
}
|
|
5101
|
+
}
|
|
5102
|
+
failure = parseURL(state, urlString, null, baseState);
|
|
5103
|
+
if (failure) throw TypeError(failure);
|
|
5104
|
+
var searchParams = state.searchParams = new URLSearchParams();
|
|
5105
|
+
var searchParamsState = getInternalSearchParamsState(searchParams);
|
|
5106
|
+
searchParamsState.updateSearchParams(state.query);
|
|
5107
|
+
searchParamsState.updateURL = function () {
|
|
5108
|
+
state.query = String(searchParams) || null;
|
|
5109
|
+
};
|
|
5110
|
+
if (!DESCRIPTORS) {
|
|
5111
|
+
that.href = serializeURL.call(that);
|
|
5112
|
+
that.origin = getOrigin.call(that);
|
|
5113
|
+
that.protocol = getProtocol.call(that);
|
|
5114
|
+
that.username = getUsername.call(that);
|
|
5115
|
+
that.password = getPassword.call(that);
|
|
5116
|
+
that.host = getHost.call(that);
|
|
5117
|
+
that.hostname = getHostname.call(that);
|
|
5118
|
+
that.port = getPort.call(that);
|
|
5119
|
+
that.pathname = getPathname.call(that);
|
|
5120
|
+
that.search = getSearch.call(that);
|
|
5121
|
+
that.searchParams = getSearchParams.call(that);
|
|
5122
|
+
that.hash = getHash.call(that);
|
|
5123
|
+
}
|
|
5124
|
+
};
|
|
5125
|
+
|
|
5126
|
+
var URLPrototype = URLConstructor.prototype;
|
|
5127
|
+
|
|
5128
|
+
var serializeURL = function () {
|
|
5129
|
+
var url = getInternalURLState(this);
|
|
5130
|
+
var scheme = url.scheme;
|
|
5131
|
+
var username = url.username;
|
|
5132
|
+
var password = url.password;
|
|
5133
|
+
var host = url.host;
|
|
5134
|
+
var port = url.port;
|
|
5135
|
+
var path = url.path;
|
|
5136
|
+
var query = url.query;
|
|
5137
|
+
var fragment = url.fragment;
|
|
5138
|
+
var output = scheme + ':';
|
|
5139
|
+
if (host !== null) {
|
|
5140
|
+
output += '//';
|
|
5141
|
+
if (includesCredentials(url)) {
|
|
5142
|
+
output += username + (password ? ':' + password : '') + '@';
|
|
5143
|
+
}
|
|
5144
|
+
output += serializeHost(host);
|
|
5145
|
+
if (port !== null) output += ':' + port;
|
|
5146
|
+
} else if (scheme == 'file') output += '//';
|
|
5147
|
+
output += url.cannotBeABaseURL ? path[0] : path.length ? '/' + path.join('/') : '';
|
|
5148
|
+
if (query !== null) output += '?' + query;
|
|
5149
|
+
if (fragment !== null) output += '#' + fragment;
|
|
5150
|
+
return output;
|
|
5151
|
+
};
|
|
5152
|
+
|
|
5153
|
+
var getOrigin = function () {
|
|
5154
|
+
var url = getInternalURLState(this);
|
|
5155
|
+
var scheme = url.scheme;
|
|
5156
|
+
var port = url.port;
|
|
5157
|
+
if (scheme == 'blob') try {
|
|
5158
|
+
return new URL(scheme.path[0]).origin;
|
|
5159
|
+
} catch (error) {
|
|
5160
|
+
return 'null';
|
|
5161
|
+
}
|
|
5162
|
+
if (scheme == 'file' || !isSpecial(url)) return 'null';
|
|
5163
|
+
return scheme + '://' + serializeHost(url.host) + (port !== null ? ':' + port : '');
|
|
5164
|
+
};
|
|
5165
|
+
|
|
5166
|
+
var getProtocol = function () {
|
|
5167
|
+
return getInternalURLState(this).scheme + ':';
|
|
5168
|
+
};
|
|
5169
|
+
|
|
5170
|
+
var getUsername = function () {
|
|
5171
|
+
return getInternalURLState(this).username;
|
|
5172
|
+
};
|
|
5173
|
+
|
|
5174
|
+
var getPassword = function () {
|
|
5175
|
+
return getInternalURLState(this).password;
|
|
5176
|
+
};
|
|
5177
|
+
|
|
5178
|
+
var getHost = function () {
|
|
5179
|
+
var url = getInternalURLState(this);
|
|
5180
|
+
var host = url.host;
|
|
5181
|
+
var port = url.port;
|
|
5182
|
+
return host === null ? ''
|
|
5183
|
+
: port === null ? serializeHost(host)
|
|
5184
|
+
: serializeHost(host) + ':' + port;
|
|
5185
|
+
};
|
|
5186
|
+
|
|
5187
|
+
var getHostname = function () {
|
|
5188
|
+
var host = getInternalURLState(this).host;
|
|
5189
|
+
return host === null ? '' : serializeHost(host);
|
|
5190
|
+
};
|
|
5191
|
+
|
|
5192
|
+
var getPort = function () {
|
|
5193
|
+
var port = getInternalURLState(this).port;
|
|
5194
|
+
return port === null ? '' : String(port);
|
|
5195
|
+
};
|
|
5196
|
+
|
|
5197
|
+
var getPathname = function () {
|
|
5198
|
+
var url = getInternalURLState(this);
|
|
5199
|
+
var path = url.path;
|
|
5200
|
+
return url.cannotBeABaseURL ? path[0] : path.length ? '/' + path.join('/') : '';
|
|
5201
|
+
};
|
|
5202
|
+
|
|
5203
|
+
var getSearch = function () {
|
|
5204
|
+
var query = getInternalURLState(this).query;
|
|
5205
|
+
return query ? '?' + query : '';
|
|
5206
|
+
};
|
|
5207
|
+
|
|
5208
|
+
var getSearchParams = function () {
|
|
5209
|
+
return getInternalURLState(this).searchParams;
|
|
5210
|
+
};
|
|
5211
|
+
|
|
5212
|
+
var getHash = function () {
|
|
5213
|
+
var fragment = getInternalURLState(this).fragment;
|
|
5214
|
+
return fragment ? '#' + fragment : '';
|
|
5215
|
+
};
|
|
5216
|
+
|
|
5217
|
+
var accessorDescriptor = function (getter, setter) {
|
|
5218
|
+
return { get: getter, set: setter, configurable: true, enumerable: true };
|
|
5219
|
+
};
|
|
5220
|
+
|
|
5221
|
+
if (DESCRIPTORS) {
|
|
5222
|
+
defineProperties(URLPrototype, {
|
|
5223
|
+
// `URL.prototype.href` accessors pair
|
|
5224
|
+
// https://url.spec.whatwg.org/#dom-url-href
|
|
5225
|
+
href: accessorDescriptor(serializeURL, function (href) {
|
|
5226
|
+
var url = getInternalURLState(this);
|
|
5227
|
+
var urlString = String(href);
|
|
5228
|
+
var failure = parseURL(url, urlString);
|
|
5229
|
+
if (failure) throw TypeError(failure);
|
|
5230
|
+
getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query);
|
|
5231
|
+
}),
|
|
5232
|
+
// `URL.prototype.origin` getter
|
|
5233
|
+
// https://url.spec.whatwg.org/#dom-url-origin
|
|
5234
|
+
origin: accessorDescriptor(getOrigin),
|
|
5235
|
+
// `URL.prototype.protocol` accessors pair
|
|
5236
|
+
// https://url.spec.whatwg.org/#dom-url-protocol
|
|
5237
|
+
protocol: accessorDescriptor(getProtocol, function (protocol) {
|
|
5238
|
+
var url = getInternalURLState(this);
|
|
5239
|
+
parseURL(url, String(protocol) + ':', SCHEME_START);
|
|
5240
|
+
}),
|
|
5241
|
+
// `URL.prototype.username` accessors pair
|
|
5242
|
+
// https://url.spec.whatwg.org/#dom-url-username
|
|
5243
|
+
username: accessorDescriptor(getUsername, function (username) {
|
|
5244
|
+
var url = getInternalURLState(this);
|
|
5245
|
+
var codePoints = arrayFrom(String(username));
|
|
5246
|
+
if (cannotHaveUsernamePasswordPort(url)) return;
|
|
5247
|
+
url.username = '';
|
|
5248
|
+
for (var i = 0; i < codePoints.length; i++) {
|
|
5249
|
+
url.username += percentEncode(codePoints[i], userinfoPercentEncodeSet);
|
|
5250
|
+
}
|
|
5251
|
+
}),
|
|
5252
|
+
// `URL.prototype.password` accessors pair
|
|
5253
|
+
// https://url.spec.whatwg.org/#dom-url-password
|
|
5254
|
+
password: accessorDescriptor(getPassword, function (password) {
|
|
5255
|
+
var url = getInternalURLState(this);
|
|
5256
|
+
var codePoints = arrayFrom(String(password));
|
|
5257
|
+
if (cannotHaveUsernamePasswordPort(url)) return;
|
|
5258
|
+
url.password = '';
|
|
5259
|
+
for (var i = 0; i < codePoints.length; i++) {
|
|
5260
|
+
url.password += percentEncode(codePoints[i], userinfoPercentEncodeSet);
|
|
5261
|
+
}
|
|
5262
|
+
}),
|
|
5263
|
+
// `URL.prototype.host` accessors pair
|
|
5264
|
+
// https://url.spec.whatwg.org/#dom-url-host
|
|
5265
|
+
host: accessorDescriptor(getHost, function (host) {
|
|
5266
|
+
var url = getInternalURLState(this);
|
|
5267
|
+
if (url.cannotBeABaseURL) return;
|
|
5268
|
+
parseURL(url, String(host), HOST);
|
|
5269
|
+
}),
|
|
5270
|
+
// `URL.prototype.hostname` accessors pair
|
|
5271
|
+
// https://url.spec.whatwg.org/#dom-url-hostname
|
|
5272
|
+
hostname: accessorDescriptor(getHostname, function (hostname) {
|
|
5273
|
+
var url = getInternalURLState(this);
|
|
5274
|
+
if (url.cannotBeABaseURL) return;
|
|
5275
|
+
parseURL(url, String(hostname), HOSTNAME);
|
|
5276
|
+
}),
|
|
5277
|
+
// `URL.prototype.port` accessors pair
|
|
5278
|
+
// https://url.spec.whatwg.org/#dom-url-port
|
|
5279
|
+
port: accessorDescriptor(getPort, function (port) {
|
|
5280
|
+
var url = getInternalURLState(this);
|
|
5281
|
+
if (cannotHaveUsernamePasswordPort(url)) return;
|
|
5282
|
+
port = String(port);
|
|
5283
|
+
if (port == '') url.port = null;
|
|
5284
|
+
else parseURL(url, port, PORT);
|
|
5285
|
+
}),
|
|
5286
|
+
// `URL.prototype.pathname` accessors pair
|
|
5287
|
+
// https://url.spec.whatwg.org/#dom-url-pathname
|
|
5288
|
+
pathname: accessorDescriptor(getPathname, function (pathname) {
|
|
5289
|
+
var url = getInternalURLState(this);
|
|
5290
|
+
if (url.cannotBeABaseURL) return;
|
|
5291
|
+
url.path = [];
|
|
5292
|
+
parseURL(url, pathname + '', PATH_START);
|
|
5293
|
+
}),
|
|
5294
|
+
// `URL.prototype.search` accessors pair
|
|
5295
|
+
// https://url.spec.whatwg.org/#dom-url-search
|
|
5296
|
+
search: accessorDescriptor(getSearch, function (search) {
|
|
5297
|
+
var url = getInternalURLState(this);
|
|
5298
|
+
search = String(search);
|
|
5299
|
+
if (search == '') {
|
|
5300
|
+
url.query = null;
|
|
5301
|
+
} else {
|
|
5302
|
+
if ('?' == search.charAt(0)) search = search.slice(1);
|
|
5303
|
+
url.query = '';
|
|
5304
|
+
parseURL(url, search, QUERY);
|
|
5305
|
+
}
|
|
5306
|
+
getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query);
|
|
5307
|
+
}),
|
|
5308
|
+
// `URL.prototype.searchParams` getter
|
|
5309
|
+
// https://url.spec.whatwg.org/#dom-url-searchparams
|
|
5310
|
+
searchParams: accessorDescriptor(getSearchParams),
|
|
5311
|
+
// `URL.prototype.hash` accessors pair
|
|
5312
|
+
// https://url.spec.whatwg.org/#dom-url-hash
|
|
5313
|
+
hash: accessorDescriptor(getHash, function (hash) {
|
|
5314
|
+
var url = getInternalURLState(this);
|
|
5315
|
+
hash = String(hash);
|
|
5316
|
+
if (hash == '') {
|
|
5317
|
+
url.fragment = null;
|
|
5318
|
+
return;
|
|
5319
|
+
}
|
|
5320
|
+
if ('#' == hash.charAt(0)) hash = hash.slice(1);
|
|
5321
|
+
url.fragment = '';
|
|
5322
|
+
parseURL(url, hash, FRAGMENT);
|
|
5323
|
+
})
|
|
5324
|
+
});
|
|
5325
|
+
}
|
|
5326
|
+
|
|
5327
|
+
// `URL.prototype.toJSON` method
|
|
5328
|
+
// https://url.spec.whatwg.org/#dom-url-tojson
|
|
5329
|
+
redefine(URLPrototype, 'toJSON', function toJSON() {
|
|
5330
|
+
return serializeURL.call(this);
|
|
5331
|
+
}, { enumerable: true });
|
|
5332
|
+
|
|
5333
|
+
// `URL.prototype.toString` method
|
|
5334
|
+
// https://url.spec.whatwg.org/#URL-stringification-behavior
|
|
5335
|
+
redefine(URLPrototype, 'toString', function toString() {
|
|
5336
|
+
return serializeURL.call(this);
|
|
5337
|
+
}, { enumerable: true });
|
|
5338
|
+
|
|
5339
|
+
if (NativeURL) {
|
|
5340
|
+
var nativeCreateObjectURL = NativeURL.createObjectURL;
|
|
5341
|
+
var nativeRevokeObjectURL = NativeURL.revokeObjectURL;
|
|
5342
|
+
// `URL.createObjectURL` method
|
|
5343
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
|
|
5344
|
+
// eslint-disable-next-line no-unused-vars
|
|
5345
|
+
if (nativeCreateObjectURL) redefine(URLConstructor, 'createObjectURL', function createObjectURL(blob) {
|
|
5346
|
+
return nativeCreateObjectURL.apply(NativeURL, arguments);
|
|
5347
|
+
});
|
|
5348
|
+
// `URL.revokeObjectURL` method
|
|
5349
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL
|
|
5350
|
+
// eslint-disable-next-line no-unused-vars
|
|
5351
|
+
if (nativeRevokeObjectURL) redefine(URLConstructor, 'revokeObjectURL', function revokeObjectURL(url) {
|
|
5352
|
+
return nativeRevokeObjectURL.apply(NativeURL, arguments);
|
|
5353
|
+
});
|
|
5354
|
+
}
|
|
5355
|
+
|
|
5356
|
+
setToStringTag(URLConstructor, 'URL');
|
|
5357
|
+
|
|
5358
|
+
$({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, {
|
|
5359
|
+
URL: URLConstructor
|
|
5360
|
+
});
|
|
5361
|
+
|
|
5362
|
+
|
|
4156
5363
|
/***/ }),
|
|
4157
5364
|
|
|
4158
5365
|
/***/ "2bfb":
|
|
@@ -4294,6 +5501,120 @@ $({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGE
|
|
|
4294
5501
|
|
|
4295
5502
|
module.exports = "<svg viewBox=\"0 0 21 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M3.46875 17.5C3.21 17.5 3 17.29 3 17.0312C3 16.7725 3.21 16.5625 3.46875 16.5625H17.5312C17.79 16.5625 18 16.7725 18 17.0312C18 17.29 17.79 17.5 17.5312 17.5H3.46875Z\" fill=\"#9CACCC\"></path><path d=\"M10.5 14.6888C7.91562 14.6888 5.8125 12.5856 5.8125 10.0012V3.4375H5.34375C5.085 3.4375 4.875 3.2275 4.875 2.96875C4.875 2.71 5.085 2.5 5.34375 2.5H7.21875C7.4775 2.5 7.6875 2.71 7.6875 2.96875C7.6875 3.2275 7.4775 3.4375 7.21875 3.4375H6.75V10.0012C6.75 12.0688 8.4325 13.7513 10.5 13.7513C12.5675 13.7513 14.25 12.0688 14.25 10.0012V3.4375H13.7812C13.5225 3.4375 13.3125 3.2275 13.3125 2.96875C13.3125 2.71 13.5225 2.5 13.7812 2.5H15.6562C15.915 2.5 16.125 2.71 16.125 2.96875C16.125 3.2275 15.915 3.4375 15.6562 3.4375H15.1875V10.0012C15.1875 12.5856 13.0844 14.6888 10.5 14.6888Z\" fill=\"#9CACCC\"></path></svg>"
|
|
4296
5503
|
|
|
5504
|
+
/***/ }),
|
|
5505
|
+
|
|
5506
|
+
/***/ "2cf4":
|
|
5507
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5508
|
+
|
|
5509
|
+
var global = __webpack_require__("da84");
|
|
5510
|
+
var fails = __webpack_require__("d039");
|
|
5511
|
+
var bind = __webpack_require__("0366");
|
|
5512
|
+
var html = __webpack_require__("1be4");
|
|
5513
|
+
var createElement = __webpack_require__("cc12");
|
|
5514
|
+
var IS_IOS = __webpack_require__("1cdc");
|
|
5515
|
+
var IS_NODE = __webpack_require__("605d");
|
|
5516
|
+
|
|
5517
|
+
var location = global.location;
|
|
5518
|
+
var set = global.setImmediate;
|
|
5519
|
+
var clear = global.clearImmediate;
|
|
5520
|
+
var process = global.process;
|
|
5521
|
+
var MessageChannel = global.MessageChannel;
|
|
5522
|
+
var Dispatch = global.Dispatch;
|
|
5523
|
+
var counter = 0;
|
|
5524
|
+
var queue = {};
|
|
5525
|
+
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
5526
|
+
var defer, channel, port;
|
|
5527
|
+
|
|
5528
|
+
var run = function (id) {
|
|
5529
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
5530
|
+
if (queue.hasOwnProperty(id)) {
|
|
5531
|
+
var fn = queue[id];
|
|
5532
|
+
delete queue[id];
|
|
5533
|
+
fn();
|
|
5534
|
+
}
|
|
5535
|
+
};
|
|
5536
|
+
|
|
5537
|
+
var runner = function (id) {
|
|
5538
|
+
return function () {
|
|
5539
|
+
run(id);
|
|
5540
|
+
};
|
|
5541
|
+
};
|
|
5542
|
+
|
|
5543
|
+
var listener = function (event) {
|
|
5544
|
+
run(event.data);
|
|
5545
|
+
};
|
|
5546
|
+
|
|
5547
|
+
var post = function (id) {
|
|
5548
|
+
// old engines have not location.origin
|
|
5549
|
+
global.postMessage(id + '', location.protocol + '//' + location.host);
|
|
5550
|
+
};
|
|
5551
|
+
|
|
5552
|
+
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
5553
|
+
if (!set || !clear) {
|
|
5554
|
+
set = function setImmediate(fn) {
|
|
5555
|
+
var args = [];
|
|
5556
|
+
var i = 1;
|
|
5557
|
+
while (arguments.length > i) args.push(arguments[i++]);
|
|
5558
|
+
queue[++counter] = function () {
|
|
5559
|
+
// eslint-disable-next-line no-new-func
|
|
5560
|
+
(typeof fn == 'function' ? fn : Function(fn)).apply(undefined, args);
|
|
5561
|
+
};
|
|
5562
|
+
defer(counter);
|
|
5563
|
+
return counter;
|
|
5564
|
+
};
|
|
5565
|
+
clear = function clearImmediate(id) {
|
|
5566
|
+
delete queue[id];
|
|
5567
|
+
};
|
|
5568
|
+
// Node.js 0.8-
|
|
5569
|
+
if (IS_NODE) {
|
|
5570
|
+
defer = function (id) {
|
|
5571
|
+
process.nextTick(runner(id));
|
|
5572
|
+
};
|
|
5573
|
+
// Sphere (JS game engine) Dispatch API
|
|
5574
|
+
} else if (Dispatch && Dispatch.now) {
|
|
5575
|
+
defer = function (id) {
|
|
5576
|
+
Dispatch.now(runner(id));
|
|
5577
|
+
};
|
|
5578
|
+
// Browsers with MessageChannel, includes WebWorkers
|
|
5579
|
+
// except iOS - https://github.com/zloirock/core-js/issues/624
|
|
5580
|
+
} else if (MessageChannel && !IS_IOS) {
|
|
5581
|
+
channel = new MessageChannel();
|
|
5582
|
+
port = channel.port2;
|
|
5583
|
+
channel.port1.onmessage = listener;
|
|
5584
|
+
defer = bind(port.postMessage, port, 1);
|
|
5585
|
+
// Browsers with postMessage, skip WebWorkers
|
|
5586
|
+
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
5587
|
+
} else if (
|
|
5588
|
+
global.addEventListener &&
|
|
5589
|
+
typeof postMessage == 'function' &&
|
|
5590
|
+
!global.importScripts &&
|
|
5591
|
+
location && location.protocol !== 'file:' &&
|
|
5592
|
+
!fails(post)
|
|
5593
|
+
) {
|
|
5594
|
+
defer = post;
|
|
5595
|
+
global.addEventListener('message', listener, false);
|
|
5596
|
+
// IE8-
|
|
5597
|
+
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
5598
|
+
defer = function (id) {
|
|
5599
|
+
html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
|
|
5600
|
+
html.removeChild(this);
|
|
5601
|
+
run(id);
|
|
5602
|
+
};
|
|
5603
|
+
};
|
|
5604
|
+
// Rest old browsers
|
|
5605
|
+
} else {
|
|
5606
|
+
defer = function (id) {
|
|
5607
|
+
setTimeout(runner(id), 0);
|
|
5608
|
+
};
|
|
5609
|
+
}
|
|
5610
|
+
}
|
|
5611
|
+
|
|
5612
|
+
module.exports = {
|
|
5613
|
+
set: set,
|
|
5614
|
+
clear: clear
|
|
5615
|
+
};
|
|
5616
|
+
|
|
5617
|
+
|
|
4297
5618
|
/***/ }),
|
|
4298
5619
|
|
|
4299
5620
|
/***/ "2d00":
|
|
@@ -4328,6 +5649,17 @@ module.exports = version && +version;
|
|
|
4328
5649
|
|
|
4329
5650
|
module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M26.9147 34.9992C26.3972 34.9992 25.9772 34.5792 25.9772 34.0617V28.8117C25.9772 28.478 26.1572 28.1655 26.4472 27.9992C28.8397 26.623 30.6047 24.3005 31.2897 21.6267C31.9722 18.9617 31.5759 16.1905 30.1747 13.8242C28.9922 11.828 27.1847 10.3005 25.0384 9.47049V14.8742C26.2334 15.943 26.9134 17.458 26.9134 19.063C26.9134 22.1642 24.3897 24.688 21.2884 24.688C21.0559 24.688 20.8222 24.673 20.5834 24.6405C18.6909 27.5692 15.3984 29.3755 11.9134 29.3755H10.0384C9.52094 29.3755 9.10094 28.9555 9.10094 28.438C9.10094 27.9205 9.52219 27.5005 10.0384 27.5005H11.9134C14.6147 27.5005 17.1159 26.223 18.7084 24.0567C16.8409 23.0955 15.6634 21.193 15.6634 19.063C15.6634 17.4567 16.3434 15.943 17.5384 14.8742V9.28424C13.5884 10.5017 10.9772 13.6217 10.9772 17.2017V18.1392C10.9772 18.3242 10.9234 18.5042 10.8197 18.6592L8.54469 22.0705C8.48469 22.1605 8.44094 22.258 8.41594 22.363C8.35469 22.6055 8.39219 22.858 8.52094 23.073C8.64969 23.288 8.85469 23.4392 9.09719 23.5005L10.2672 23.793C10.5097 23.853 10.7147 24.0055 10.8434 24.2192C10.9722 24.4342 11.0097 24.6867 10.9484 24.9292C10.8447 25.3467 10.4709 25.6392 10.0397 25.6392C9.96344 25.6392 9.88719 25.6292 9.81344 25.6117L8.64219 25.3192C7.91344 25.1367 7.29844 24.6817 6.91219 24.0367C6.52594 23.3917 6.41344 22.6367 6.59594 21.908C6.67469 21.5942 6.80469 21.2992 6.98344 21.0305L9.10094 17.8555V17.2017C9.10094 12.658 12.5509 8.64674 17.5372 7.33424V6.87549C17.5372 5.84174 18.3784 5.00049 19.4122 5.00049H23.1622C24.1959 5.00049 25.0372 5.84174 25.0372 6.87549V7.48549C27.8759 8.39424 30.2622 10.2955 31.7859 12.8692C33.4422 15.6667 33.9109 18.943 33.1034 22.093C32.3422 25.063 30.4347 27.6905 27.8497 29.3405V34.063C27.8522 34.5792 27.4322 34.9992 26.9147 34.9992ZM21.2884 18.1255C21.8059 18.1255 22.2259 18.5455 22.2259 19.063C22.2259 20.358 21.9897 21.6142 21.5222 22.8055C23.4822 22.6842 25.0384 21.0517 25.0384 19.063C25.0384 16.9955 23.3559 15.313 21.2884 15.313C19.2209 15.313 17.5384 16.9955 17.5384 19.063C17.5384 20.5017 18.3709 21.8067 19.6484 22.4292C20.1147 21.3655 20.3509 20.2355 20.3509 19.063C20.3509 18.5455 20.7722 18.1255 21.2884 18.1255ZM21.2884 13.438C21.9334 13.438 22.5622 13.5467 23.1634 13.763V6.87549H19.4134V13.763C20.0147 13.5467 20.6434 13.438 21.2884 13.438Z\" fill=\"#3B414D\" class=\"primary\"></path><path d=\"M15.6646 35.0006C15.1471 35.0006 14.7271 34.5806 14.7271 34.0631V32.3706L14.5596 32.3981C14.3034 32.4418 14.0409 32.4643 13.7821 32.4643C13.3921 32.4643 12.9996 32.4143 12.6171 32.3156C12.1171 32.1856 11.8146 31.6731 11.9446 31.1731C12.0521 30.7593 12.4259 30.4706 12.8521 30.4706C12.9309 30.4706 13.0096 30.4806 13.0859 30.5006C13.3146 30.5593 13.5484 30.5906 13.7821 30.5906C13.9371 30.5906 14.0946 30.5768 14.2496 30.5506L15.5121 30.3418C15.5621 30.3331 15.6146 30.3293 15.6671 30.3293C15.8884 30.3293 16.1034 30.4081 16.2721 30.5518C16.4821 30.7306 16.6034 30.9918 16.6034 31.2668V34.0656C16.6022 34.5806 16.1821 35.0006 15.6646 35.0006Z\" fill=\"#3B414D\" class=\"primary\"></path></svg>"
|
|
4330
5651
|
|
|
5652
|
+
/***/ }),
|
|
5653
|
+
|
|
5654
|
+
/***/ "2db1":
|
|
5655
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
5656
|
+
|
|
5657
|
+
"use strict";
|
|
5658
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AudioRecorder_vue_vue_type_style_index_0_id_4aaa6de6_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e0cc");
|
|
5659
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AudioRecorder_vue_vue_type_style_index_0_id_4aaa6de6_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AudioRecorder_vue_vue_type_style_index_0_id_4aaa6de6_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
5660
|
+
/* unused harmony reexport * */
|
|
5661
|
+
|
|
5662
|
+
|
|
4331
5663
|
/***/ }),
|
|
4332
5664
|
|
|
4333
5665
|
/***/ "2e8c":
|
|
@@ -6276,6 +7608,21 @@ module.exports = function (key) {
|
|
|
6276
7608
|
};
|
|
6277
7609
|
|
|
6278
7610
|
|
|
7611
|
+
/***/ }),
|
|
7612
|
+
|
|
7613
|
+
/***/ "44de":
|
|
7614
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
7615
|
+
|
|
7616
|
+
var global = __webpack_require__("da84");
|
|
7617
|
+
|
|
7618
|
+
module.exports = function (a, b) {
|
|
7619
|
+
var console = global.console;
|
|
7620
|
+
if (console && console.error) {
|
|
7621
|
+
arguments.length === 1 ? console.error(a) : console.error(a, b);
|
|
7622
|
+
}
|
|
7623
|
+
};
|
|
7624
|
+
|
|
7625
|
+
|
|
6279
7626
|
/***/ }),
|
|
6280
7627
|
|
|
6281
7628
|
/***/ "44e7":
|
|
@@ -7217,6 +8564,26 @@ module.exports = {
|
|
|
7217
8564
|
};
|
|
7218
8565
|
|
|
7219
8566
|
|
|
8567
|
+
/***/ }),
|
|
8568
|
+
|
|
8569
|
+
/***/ "4d90":
|
|
8570
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
8571
|
+
|
|
8572
|
+
"use strict";
|
|
8573
|
+
|
|
8574
|
+
var $ = __webpack_require__("23e7");
|
|
8575
|
+
var $padStart = __webpack_require__("0ccb").start;
|
|
8576
|
+
var WEBKIT_BUG = __webpack_require__("9a0c");
|
|
8577
|
+
|
|
8578
|
+
// `String.prototype.padStart` method
|
|
8579
|
+
// https://tc39.github.io/ecma262/#sec-string.prototype.padstart
|
|
8580
|
+
$({ target: 'String', proto: true, forced: WEBKIT_BUG }, {
|
|
8581
|
+
padStart: function padStart(maxLength /* , fillString = ' ' */) {
|
|
8582
|
+
return $padStart(this, maxLength, arguments.length > 1 ? arguments[1] : undefined);
|
|
8583
|
+
}
|
|
8584
|
+
});
|
|
8585
|
+
|
|
8586
|
+
|
|
7220
8587
|
/***/ }),
|
|
7221
8588
|
|
|
7222
8589
|
/***/ "4de1":
|
|
@@ -9061,6 +10428,182 @@ module.exports = "<svg viewBox=\"0 0 21 20\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
9061
10428
|
/* unused harmony reexport * */
|
|
9062
10429
|
|
|
9063
10430
|
|
|
10431
|
+
/***/ }),
|
|
10432
|
+
|
|
10433
|
+
/***/ "5fb2":
|
|
10434
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
10435
|
+
|
|
10436
|
+
"use strict";
|
|
10437
|
+
|
|
10438
|
+
// based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js
|
|
10439
|
+
var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
|
|
10440
|
+
var base = 36;
|
|
10441
|
+
var tMin = 1;
|
|
10442
|
+
var tMax = 26;
|
|
10443
|
+
var skew = 38;
|
|
10444
|
+
var damp = 700;
|
|
10445
|
+
var initialBias = 72;
|
|
10446
|
+
var initialN = 128; // 0x80
|
|
10447
|
+
var delimiter = '-'; // '\x2D'
|
|
10448
|
+
var regexNonASCII = /[^\0-\u007E]/; // non-ASCII chars
|
|
10449
|
+
var regexSeparators = /[.\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
|
|
10450
|
+
var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';
|
|
10451
|
+
var baseMinusTMin = base - tMin;
|
|
10452
|
+
var floor = Math.floor;
|
|
10453
|
+
var stringFromCharCode = String.fromCharCode;
|
|
10454
|
+
|
|
10455
|
+
/**
|
|
10456
|
+
* Creates an array containing the numeric code points of each Unicode
|
|
10457
|
+
* character in the string. While JavaScript uses UCS-2 internally,
|
|
10458
|
+
* this function will convert a pair of surrogate halves (each of which
|
|
10459
|
+
* UCS-2 exposes as separate characters) into a single code point,
|
|
10460
|
+
* matching UTF-16.
|
|
10461
|
+
*/
|
|
10462
|
+
var ucs2decode = function (string) {
|
|
10463
|
+
var output = [];
|
|
10464
|
+
var counter = 0;
|
|
10465
|
+
var length = string.length;
|
|
10466
|
+
while (counter < length) {
|
|
10467
|
+
var value = string.charCodeAt(counter++);
|
|
10468
|
+
if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
|
|
10469
|
+
// It's a high surrogate, and there is a next character.
|
|
10470
|
+
var extra = string.charCodeAt(counter++);
|
|
10471
|
+
if ((extra & 0xFC00) == 0xDC00) { // Low surrogate.
|
|
10472
|
+
output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
|
|
10473
|
+
} else {
|
|
10474
|
+
// It's an unmatched surrogate; only append this code unit, in case the
|
|
10475
|
+
// next code unit is the high surrogate of a surrogate pair.
|
|
10476
|
+
output.push(value);
|
|
10477
|
+
counter--;
|
|
10478
|
+
}
|
|
10479
|
+
} else {
|
|
10480
|
+
output.push(value);
|
|
10481
|
+
}
|
|
10482
|
+
}
|
|
10483
|
+
return output;
|
|
10484
|
+
};
|
|
10485
|
+
|
|
10486
|
+
/**
|
|
10487
|
+
* Converts a digit/integer into a basic code point.
|
|
10488
|
+
*/
|
|
10489
|
+
var digitToBasic = function (digit) {
|
|
10490
|
+
// 0..25 map to ASCII a..z or A..Z
|
|
10491
|
+
// 26..35 map to ASCII 0..9
|
|
10492
|
+
return digit + 22 + 75 * (digit < 26);
|
|
10493
|
+
};
|
|
10494
|
+
|
|
10495
|
+
/**
|
|
10496
|
+
* Bias adaptation function as per section 3.4 of RFC 3492.
|
|
10497
|
+
* https://tools.ietf.org/html/rfc3492#section-3.4
|
|
10498
|
+
*/
|
|
10499
|
+
var adapt = function (delta, numPoints, firstTime) {
|
|
10500
|
+
var k = 0;
|
|
10501
|
+
delta = firstTime ? floor(delta / damp) : delta >> 1;
|
|
10502
|
+
delta += floor(delta / numPoints);
|
|
10503
|
+
for (; delta > baseMinusTMin * tMax >> 1; k += base) {
|
|
10504
|
+
delta = floor(delta / baseMinusTMin);
|
|
10505
|
+
}
|
|
10506
|
+
return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
|
|
10507
|
+
};
|
|
10508
|
+
|
|
10509
|
+
/**
|
|
10510
|
+
* Converts a string of Unicode symbols (e.g. a domain name label) to a
|
|
10511
|
+
* Punycode string of ASCII-only symbols.
|
|
10512
|
+
*/
|
|
10513
|
+
// eslint-disable-next-line max-statements
|
|
10514
|
+
var encode = function (input) {
|
|
10515
|
+
var output = [];
|
|
10516
|
+
|
|
10517
|
+
// Convert the input in UCS-2 to an array of Unicode code points.
|
|
10518
|
+
input = ucs2decode(input);
|
|
10519
|
+
|
|
10520
|
+
// Cache the length.
|
|
10521
|
+
var inputLength = input.length;
|
|
10522
|
+
|
|
10523
|
+
// Initialize the state.
|
|
10524
|
+
var n = initialN;
|
|
10525
|
+
var delta = 0;
|
|
10526
|
+
var bias = initialBias;
|
|
10527
|
+
var i, currentValue;
|
|
10528
|
+
|
|
10529
|
+
// Handle the basic code points.
|
|
10530
|
+
for (i = 0; i < input.length; i++) {
|
|
10531
|
+
currentValue = input[i];
|
|
10532
|
+
if (currentValue < 0x80) {
|
|
10533
|
+
output.push(stringFromCharCode(currentValue));
|
|
10534
|
+
}
|
|
10535
|
+
}
|
|
10536
|
+
|
|
10537
|
+
var basicLength = output.length; // number of basic code points.
|
|
10538
|
+
var handledCPCount = basicLength; // number of code points that have been handled;
|
|
10539
|
+
|
|
10540
|
+
// Finish the basic string with a delimiter unless it's empty.
|
|
10541
|
+
if (basicLength) {
|
|
10542
|
+
output.push(delimiter);
|
|
10543
|
+
}
|
|
10544
|
+
|
|
10545
|
+
// Main encoding loop:
|
|
10546
|
+
while (handledCPCount < inputLength) {
|
|
10547
|
+
// All non-basic code points < n have been handled already. Find the next larger one:
|
|
10548
|
+
var m = maxInt;
|
|
10549
|
+
for (i = 0; i < input.length; i++) {
|
|
10550
|
+
currentValue = input[i];
|
|
10551
|
+
if (currentValue >= n && currentValue < m) {
|
|
10552
|
+
m = currentValue;
|
|
10553
|
+
}
|
|
10554
|
+
}
|
|
10555
|
+
|
|
10556
|
+
// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>, but guard against overflow.
|
|
10557
|
+
var handledCPCountPlusOne = handledCPCount + 1;
|
|
10558
|
+
if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
|
|
10559
|
+
throw RangeError(OVERFLOW_ERROR);
|
|
10560
|
+
}
|
|
10561
|
+
|
|
10562
|
+
delta += (m - n) * handledCPCountPlusOne;
|
|
10563
|
+
n = m;
|
|
10564
|
+
|
|
10565
|
+
for (i = 0; i < input.length; i++) {
|
|
10566
|
+
currentValue = input[i];
|
|
10567
|
+
if (currentValue < n && ++delta > maxInt) {
|
|
10568
|
+
throw RangeError(OVERFLOW_ERROR);
|
|
10569
|
+
}
|
|
10570
|
+
if (currentValue == n) {
|
|
10571
|
+
// Represent delta as a generalized variable-length integer.
|
|
10572
|
+
var q = delta;
|
|
10573
|
+
for (var k = base; /* no condition */; k += base) {
|
|
10574
|
+
var t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
|
|
10575
|
+
if (q < t) break;
|
|
10576
|
+
var qMinusT = q - t;
|
|
10577
|
+
var baseMinusT = base - t;
|
|
10578
|
+
output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT)));
|
|
10579
|
+
q = floor(qMinusT / baseMinusT);
|
|
10580
|
+
}
|
|
10581
|
+
|
|
10582
|
+
output.push(stringFromCharCode(digitToBasic(q)));
|
|
10583
|
+
bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
|
|
10584
|
+
delta = 0;
|
|
10585
|
+
++handledCPCount;
|
|
10586
|
+
}
|
|
10587
|
+
}
|
|
10588
|
+
|
|
10589
|
+
++delta;
|
|
10590
|
+
++n;
|
|
10591
|
+
}
|
|
10592
|
+
return output.join('');
|
|
10593
|
+
};
|
|
10594
|
+
|
|
10595
|
+
module.exports = function (input) {
|
|
10596
|
+
var encoded = [];
|
|
10597
|
+
var labels = input.toLowerCase().replace(regexSeparators, '\u002E').split('.');
|
|
10598
|
+
var i, label;
|
|
10599
|
+
for (i = 0; i < labels.length; i++) {
|
|
10600
|
+
label = labels[i];
|
|
10601
|
+
encoded.push(regexNonASCII.test(label) ? 'xn--' + encode(label) : label);
|
|
10602
|
+
}
|
|
10603
|
+
return encoded.join('.');
|
|
10604
|
+
};
|
|
10605
|
+
|
|
10606
|
+
|
|
9064
10607
|
/***/ }),
|
|
9065
10608
|
|
|
9066
10609
|
/***/ "5fbd":
|
|
@@ -9145,6 +10688,17 @@ module.exports = "<svg viewBox=\"0 0 21 20\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
9145
10688
|
})));
|
|
9146
10689
|
|
|
9147
10690
|
|
|
10691
|
+
/***/ }),
|
|
10692
|
+
|
|
10693
|
+
/***/ "5fc7":
|
|
10694
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10695
|
+
|
|
10696
|
+
"use strict";
|
|
10697
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AudioHandler_vue_vue_type_style_index_0_id_95c1d466_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cf20");
|
|
10698
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AudioHandler_vue_vue_type_style_index_0_id_95c1d466_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AudioHandler_vue_vue_type_style_index_0_id_95c1d466_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
10699
|
+
/* unused harmony reexport * */
|
|
10700
|
+
|
|
10701
|
+
|
|
9148
10702
|
/***/ }),
|
|
9149
10703
|
|
|
9150
10704
|
/***/ "605d":
|
|
@@ -9174,6 +10728,66 @@ module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
9174
10728
|
/* unused harmony reexport * */
|
|
9175
10729
|
|
|
9176
10730
|
|
|
10731
|
+
/***/ }),
|
|
10732
|
+
|
|
10733
|
+
/***/ "60da":
|
|
10734
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
10735
|
+
|
|
10736
|
+
"use strict";
|
|
10737
|
+
|
|
10738
|
+
var DESCRIPTORS = __webpack_require__("83ab");
|
|
10739
|
+
var fails = __webpack_require__("d039");
|
|
10740
|
+
var objectKeys = __webpack_require__("df75");
|
|
10741
|
+
var getOwnPropertySymbolsModule = __webpack_require__("7418");
|
|
10742
|
+
var propertyIsEnumerableModule = __webpack_require__("d1e7");
|
|
10743
|
+
var toObject = __webpack_require__("7b0b");
|
|
10744
|
+
var IndexedObject = __webpack_require__("44ad");
|
|
10745
|
+
|
|
10746
|
+
var nativeAssign = Object.assign;
|
|
10747
|
+
var defineProperty = Object.defineProperty;
|
|
10748
|
+
|
|
10749
|
+
// `Object.assign` method
|
|
10750
|
+
// https://tc39.github.io/ecma262/#sec-object.assign
|
|
10751
|
+
module.exports = !nativeAssign || fails(function () {
|
|
10752
|
+
// should have correct order of operations (Edge bug)
|
|
10753
|
+
if (DESCRIPTORS && nativeAssign({ b: 1 }, nativeAssign(defineProperty({}, 'a', {
|
|
10754
|
+
enumerable: true,
|
|
10755
|
+
get: function () {
|
|
10756
|
+
defineProperty(this, 'b', {
|
|
10757
|
+
value: 3,
|
|
10758
|
+
enumerable: false
|
|
10759
|
+
});
|
|
10760
|
+
}
|
|
10761
|
+
}), { b: 2 })).b !== 1) return true;
|
|
10762
|
+
// should work with symbols and should have deterministic property order (V8 bug)
|
|
10763
|
+
var A = {};
|
|
10764
|
+
var B = {};
|
|
10765
|
+
// eslint-disable-next-line no-undef
|
|
10766
|
+
var symbol = Symbol();
|
|
10767
|
+
var alphabet = 'abcdefghijklmnopqrst';
|
|
10768
|
+
A[symbol] = 7;
|
|
10769
|
+
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
10770
|
+
return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;
|
|
10771
|
+
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
|
|
10772
|
+
var T = toObject(target);
|
|
10773
|
+
var argumentsLength = arguments.length;
|
|
10774
|
+
var index = 1;
|
|
10775
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
10776
|
+
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
10777
|
+
while (argumentsLength > index) {
|
|
10778
|
+
var S = IndexedObject(arguments[index++]);
|
|
10779
|
+
var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);
|
|
10780
|
+
var length = keys.length;
|
|
10781
|
+
var j = 0;
|
|
10782
|
+
var key;
|
|
10783
|
+
while (length > j) {
|
|
10784
|
+
key = keys[j++];
|
|
10785
|
+
if (!DESCRIPTORS || propertyIsEnumerable.call(S, key)) T[key] = S[key];
|
|
10786
|
+
}
|
|
10787
|
+
} return T;
|
|
10788
|
+
} : nativeAssign;
|
|
10789
|
+
|
|
10790
|
+
|
|
9177
10791
|
/***/ }),
|
|
9178
10792
|
|
|
9179
10793
|
/***/ "6115":
|
|
@@ -12273,6 +13887,17 @@ module.exports = function (it) {
|
|
|
12273
13887
|
};
|
|
12274
13888
|
|
|
12275
13889
|
|
|
13890
|
+
/***/ }),
|
|
13891
|
+
|
|
13892
|
+
/***/ "82cb":
|
|
13893
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
13894
|
+
|
|
13895
|
+
"use strict";
|
|
13896
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AudioPlayer_vue_vue_type_style_index_0_id_1c89d3f4_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("f4b9");
|
|
13897
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AudioPlayer_vue_vue_type_style_index_0_id_1c89d3f4_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AudioPlayer_vue_vue_type_style_index_0_id_1c89d3f4_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
13898
|
+
/* unused harmony reexport * */
|
|
13899
|
+
|
|
13900
|
+
|
|
12276
13901
|
/***/ }),
|
|
12277
13902
|
|
|
12278
13903
|
/***/ "83ab":
|
|
@@ -14738,6 +16363,761 @@ module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
14738
16363
|
|
|
14739
16364
|
module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M20 5.00049C17.0333 5.00049 14.1332 5.88022 11.6665 7.52844C9.19971 9.17666 7.27713 11.5193 6.14181 14.2602C5.0065 17.0011 4.70945 20.0171 5.28823 22.9268C5.86701 25.8366 7.29562 28.5093 9.3934 30.6071C11.4912 32.7049 14.1639 34.1335 17.0737 34.7123C19.9834 35.291 22.9994 34.994 25.7403 33.8587C28.4811 32.7234 30.8238 30.8008 32.472 28.334C34.1203 25.8673 35 22.9672 35 20.0005C34.9957 16.0236 33.414 12.2107 30.6019 9.39864C27.7897 6.58652 23.9769 5.00479 20 5.00049V5.00049ZM20 28.7505C19.6292 28.7505 19.2667 28.6405 18.9583 28.4345C18.65 28.2285 18.4096 27.9356 18.2677 27.593C18.1258 27.2504 18.0887 26.8734 18.161 26.5097C18.2334 26.146 18.412 25.8119 18.6742 25.5497C18.9364 25.2874 19.2705 25.1089 19.6342 25.0365C19.9979 24.9642 20.3749 25.0013 20.7175 25.1432C21.0601 25.2851 21.353 25.5254 21.559 25.8338C21.765 26.1421 21.875 26.5046 21.875 26.8755C21.875 27.3728 21.6775 27.8497 21.3258 28.2013C20.9742 28.5529 20.4973 28.7505 20 28.7505ZM22 21.1505C21.777 21.2478 21.5872 21.4081 21.454 21.6117C21.3208 21.8153 21.2499 22.0534 21.25 22.2967C21.25 22.6283 21.1183 22.9462 20.8839 23.1806C20.6495 23.415 20.3315 23.5467 20 23.5467C19.6685 23.5467 19.3505 23.415 19.1161 23.1806C18.8817 22.9462 18.75 22.6283 18.75 22.2967C18.7499 21.567 18.9627 20.853 19.3624 20.2424C19.762 19.6319 20.3312 19.1511 21 18.8592C21.4132 18.6789 21.7699 18.3903 22.0324 18.0238C22.2949 17.6573 22.4534 17.2267 22.4912 16.7775C22.529 16.3283 22.4446 15.8773 22.247 15.4721C22.0494 15.067 21.746 14.7228 21.3688 14.4759C20.9916 14.2291 20.5546 14.0889 20.1042 14.0701C19.6539 14.0513 19.2068 14.1547 18.8103 14.3692C18.4138 14.5837 18.0828 14.9014 17.8521 15.2887C17.6214 15.676 17.4998 16.1185 17.5 16.5692C17.5 16.9008 17.3683 17.2187 17.1339 17.4531C16.8995 17.6875 16.5815 17.8192 16.25 17.8192C15.9185 17.8192 15.6005 17.6875 15.3661 17.4531C15.1317 17.2187 15 16.9008 15 16.5692C15 15.6678 15.2437 14.7831 15.7053 14.0088C16.1669 13.2345 16.8293 12.5994 17.6223 12.1707C18.4152 11.742 19.3094 11.5357 20.21 11.5736C21.1107 11.6114 21.9844 11.8921 22.7386 12.3858C23.4928 12.8796 24.0995 13.568 24.4945 14.3783C24.8895 15.1887 25.058 16.0907 24.9823 16.989C24.9067 17.8872 24.5895 18.7483 24.0645 19.4811C23.5395 20.2139 22.8262 20.7912 22 21.1517V21.1505Z\" fill=\"#3B414D\" class=\"primary\"></path></svg>"
|
|
14740
16365
|
|
|
16366
|
+
/***/ }),
|
|
16367
|
+
|
|
16368
|
+
/***/ "96cf":
|
|
16369
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
16370
|
+
|
|
16371
|
+
/**
|
|
16372
|
+
* Copyright (c) 2014-present, Facebook, Inc.
|
|
16373
|
+
*
|
|
16374
|
+
* This source code is licensed under the MIT license found in the
|
|
16375
|
+
* LICENSE file in the root directory of this source tree.
|
|
16376
|
+
*/
|
|
16377
|
+
|
|
16378
|
+
var runtime = (function (exports) {
|
|
16379
|
+
"use strict";
|
|
16380
|
+
|
|
16381
|
+
var Op = Object.prototype;
|
|
16382
|
+
var hasOwn = Op.hasOwnProperty;
|
|
16383
|
+
var undefined; // More compressible than void 0.
|
|
16384
|
+
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
|
16385
|
+
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
|
16386
|
+
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
|
16387
|
+
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
16388
|
+
|
|
16389
|
+
function define(obj, key, value) {
|
|
16390
|
+
Object.defineProperty(obj, key, {
|
|
16391
|
+
value: value,
|
|
16392
|
+
enumerable: true,
|
|
16393
|
+
configurable: true,
|
|
16394
|
+
writable: true
|
|
16395
|
+
});
|
|
16396
|
+
return obj[key];
|
|
16397
|
+
}
|
|
16398
|
+
try {
|
|
16399
|
+
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
16400
|
+
define({}, "");
|
|
16401
|
+
} catch (err) {
|
|
16402
|
+
define = function(obj, key, value) {
|
|
16403
|
+
return obj[key] = value;
|
|
16404
|
+
};
|
|
16405
|
+
}
|
|
16406
|
+
|
|
16407
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
16408
|
+
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
|
16409
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
|
16410
|
+
var generator = Object.create(protoGenerator.prototype);
|
|
16411
|
+
var context = new Context(tryLocsList || []);
|
|
16412
|
+
|
|
16413
|
+
// The ._invoke method unifies the implementations of the .next,
|
|
16414
|
+
// .throw, and .return methods.
|
|
16415
|
+
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
16416
|
+
|
|
16417
|
+
return generator;
|
|
16418
|
+
}
|
|
16419
|
+
exports.wrap = wrap;
|
|
16420
|
+
|
|
16421
|
+
// Try/catch helper to minimize deoptimizations. Returns a completion
|
|
16422
|
+
// record like context.tryEntries[i].completion. This interface could
|
|
16423
|
+
// have been (and was previously) designed to take a closure to be
|
|
16424
|
+
// invoked without arguments, but in all the cases we care about we
|
|
16425
|
+
// already have an existing method we want to call, so there's no need
|
|
16426
|
+
// to create a new function object. We can even get away with assuming
|
|
16427
|
+
// the method takes exactly one argument, since that happens to be true
|
|
16428
|
+
// in every case, so we don't have to touch the arguments object. The
|
|
16429
|
+
// only additional allocation required is the completion record, which
|
|
16430
|
+
// has a stable shape and so hopefully should be cheap to allocate.
|
|
16431
|
+
function tryCatch(fn, obj, arg) {
|
|
16432
|
+
try {
|
|
16433
|
+
return { type: "normal", arg: fn.call(obj, arg) };
|
|
16434
|
+
} catch (err) {
|
|
16435
|
+
return { type: "throw", arg: err };
|
|
16436
|
+
}
|
|
16437
|
+
}
|
|
16438
|
+
|
|
16439
|
+
var GenStateSuspendedStart = "suspendedStart";
|
|
16440
|
+
var GenStateSuspendedYield = "suspendedYield";
|
|
16441
|
+
var GenStateExecuting = "executing";
|
|
16442
|
+
var GenStateCompleted = "completed";
|
|
16443
|
+
|
|
16444
|
+
// Returning this object from the innerFn has the same effect as
|
|
16445
|
+
// breaking out of the dispatch switch statement.
|
|
16446
|
+
var ContinueSentinel = {};
|
|
16447
|
+
|
|
16448
|
+
// Dummy constructor functions that we use as the .constructor and
|
|
16449
|
+
// .constructor.prototype properties for functions that return Generator
|
|
16450
|
+
// objects. For full spec compliance, you may wish to configure your
|
|
16451
|
+
// minifier not to mangle the names of these two functions.
|
|
16452
|
+
function Generator() {}
|
|
16453
|
+
function GeneratorFunction() {}
|
|
16454
|
+
function GeneratorFunctionPrototype() {}
|
|
16455
|
+
|
|
16456
|
+
// This is a polyfill for %IteratorPrototype% for environments that
|
|
16457
|
+
// don't natively support it.
|
|
16458
|
+
var IteratorPrototype = {};
|
|
16459
|
+
IteratorPrototype[iteratorSymbol] = function () {
|
|
16460
|
+
return this;
|
|
16461
|
+
};
|
|
16462
|
+
|
|
16463
|
+
var getProto = Object.getPrototypeOf;
|
|
16464
|
+
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
16465
|
+
if (NativeIteratorPrototype &&
|
|
16466
|
+
NativeIteratorPrototype !== Op &&
|
|
16467
|
+
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
16468
|
+
// This environment has a native %IteratorPrototype%; use it instead
|
|
16469
|
+
// of the polyfill.
|
|
16470
|
+
IteratorPrototype = NativeIteratorPrototype;
|
|
16471
|
+
}
|
|
16472
|
+
|
|
16473
|
+
var Gp = GeneratorFunctionPrototype.prototype =
|
|
16474
|
+
Generator.prototype = Object.create(IteratorPrototype);
|
|
16475
|
+
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
|
|
16476
|
+
GeneratorFunctionPrototype.constructor = GeneratorFunction;
|
|
16477
|
+
GeneratorFunction.displayName = define(
|
|
16478
|
+
GeneratorFunctionPrototype,
|
|
16479
|
+
toStringTagSymbol,
|
|
16480
|
+
"GeneratorFunction"
|
|
16481
|
+
);
|
|
16482
|
+
|
|
16483
|
+
// Helper for defining the .next, .throw, and .return methods of the
|
|
16484
|
+
// Iterator interface in terms of a single ._invoke method.
|
|
16485
|
+
function defineIteratorMethods(prototype) {
|
|
16486
|
+
["next", "throw", "return"].forEach(function(method) {
|
|
16487
|
+
define(prototype, method, function(arg) {
|
|
16488
|
+
return this._invoke(method, arg);
|
|
16489
|
+
});
|
|
16490
|
+
});
|
|
16491
|
+
}
|
|
16492
|
+
|
|
16493
|
+
exports.isGeneratorFunction = function(genFun) {
|
|
16494
|
+
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
16495
|
+
return ctor
|
|
16496
|
+
? ctor === GeneratorFunction ||
|
|
16497
|
+
// For the native GeneratorFunction constructor, the best we can
|
|
16498
|
+
// do is to check its .name property.
|
|
16499
|
+
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
|
16500
|
+
: false;
|
|
16501
|
+
};
|
|
16502
|
+
|
|
16503
|
+
exports.mark = function(genFun) {
|
|
16504
|
+
if (Object.setPrototypeOf) {
|
|
16505
|
+
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
16506
|
+
} else {
|
|
16507
|
+
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
16508
|
+
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
16509
|
+
}
|
|
16510
|
+
genFun.prototype = Object.create(Gp);
|
|
16511
|
+
return genFun;
|
|
16512
|
+
};
|
|
16513
|
+
|
|
16514
|
+
// Within the body of any async function, `await x` is transformed to
|
|
16515
|
+
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
16516
|
+
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
16517
|
+
// meant to be awaited.
|
|
16518
|
+
exports.awrap = function(arg) {
|
|
16519
|
+
return { __await: arg };
|
|
16520
|
+
};
|
|
16521
|
+
|
|
16522
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
16523
|
+
function invoke(method, arg, resolve, reject) {
|
|
16524
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
16525
|
+
if (record.type === "throw") {
|
|
16526
|
+
reject(record.arg);
|
|
16527
|
+
} else {
|
|
16528
|
+
var result = record.arg;
|
|
16529
|
+
var value = result.value;
|
|
16530
|
+
if (value &&
|
|
16531
|
+
typeof value === "object" &&
|
|
16532
|
+
hasOwn.call(value, "__await")) {
|
|
16533
|
+
return PromiseImpl.resolve(value.__await).then(function(value) {
|
|
16534
|
+
invoke("next", value, resolve, reject);
|
|
16535
|
+
}, function(err) {
|
|
16536
|
+
invoke("throw", err, resolve, reject);
|
|
16537
|
+
});
|
|
16538
|
+
}
|
|
16539
|
+
|
|
16540
|
+
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
16541
|
+
// When a yielded Promise is resolved, its final value becomes
|
|
16542
|
+
// the .value of the Promise<{value,done}> result for the
|
|
16543
|
+
// current iteration.
|
|
16544
|
+
result.value = unwrapped;
|
|
16545
|
+
resolve(result);
|
|
16546
|
+
}, function(error) {
|
|
16547
|
+
// If a rejected Promise was yielded, throw the rejection back
|
|
16548
|
+
// into the async generator function so it can be handled there.
|
|
16549
|
+
return invoke("throw", error, resolve, reject);
|
|
16550
|
+
});
|
|
16551
|
+
}
|
|
16552
|
+
}
|
|
16553
|
+
|
|
16554
|
+
var previousPromise;
|
|
16555
|
+
|
|
16556
|
+
function enqueue(method, arg) {
|
|
16557
|
+
function callInvokeWithMethodAndArg() {
|
|
16558
|
+
return new PromiseImpl(function(resolve, reject) {
|
|
16559
|
+
invoke(method, arg, resolve, reject);
|
|
16560
|
+
});
|
|
16561
|
+
}
|
|
16562
|
+
|
|
16563
|
+
return previousPromise =
|
|
16564
|
+
// If enqueue has been called before, then we want to wait until
|
|
16565
|
+
// all previous Promises have been resolved before calling invoke,
|
|
16566
|
+
// so that results are always delivered in the correct order. If
|
|
16567
|
+
// enqueue has not been called before, then it is important to
|
|
16568
|
+
// call invoke immediately, without waiting on a callback to fire,
|
|
16569
|
+
// so that the async generator function has the opportunity to do
|
|
16570
|
+
// any necessary setup in a predictable way. This predictability
|
|
16571
|
+
// is why the Promise constructor synchronously invokes its
|
|
16572
|
+
// executor callback, and why async functions synchronously
|
|
16573
|
+
// execute code before the first await. Since we implement simple
|
|
16574
|
+
// async functions in terms of async generators, it is especially
|
|
16575
|
+
// important to get this right, even though it requires care.
|
|
16576
|
+
previousPromise ? previousPromise.then(
|
|
16577
|
+
callInvokeWithMethodAndArg,
|
|
16578
|
+
// Avoid propagating failures to Promises returned by later
|
|
16579
|
+
// invocations of the iterator.
|
|
16580
|
+
callInvokeWithMethodAndArg
|
|
16581
|
+
) : callInvokeWithMethodAndArg();
|
|
16582
|
+
}
|
|
16583
|
+
|
|
16584
|
+
// Define the unified helper method that is used to implement .next,
|
|
16585
|
+
// .throw, and .return (see defineIteratorMethods).
|
|
16586
|
+
this._invoke = enqueue;
|
|
16587
|
+
}
|
|
16588
|
+
|
|
16589
|
+
defineIteratorMethods(AsyncIterator.prototype);
|
|
16590
|
+
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
|
|
16591
|
+
return this;
|
|
16592
|
+
};
|
|
16593
|
+
exports.AsyncIterator = AsyncIterator;
|
|
16594
|
+
|
|
16595
|
+
// Note that simple async functions are implemented on top of
|
|
16596
|
+
// AsyncIterator objects; they just return a Promise for the value of
|
|
16597
|
+
// the final result produced by the iterator.
|
|
16598
|
+
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
16599
|
+
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
16600
|
+
|
|
16601
|
+
var iter = new AsyncIterator(
|
|
16602
|
+
wrap(innerFn, outerFn, self, tryLocsList),
|
|
16603
|
+
PromiseImpl
|
|
16604
|
+
);
|
|
16605
|
+
|
|
16606
|
+
return exports.isGeneratorFunction(outerFn)
|
|
16607
|
+
? iter // If outerFn is a generator, return the full iterator.
|
|
16608
|
+
: iter.next().then(function(result) {
|
|
16609
|
+
return result.done ? result.value : iter.next();
|
|
16610
|
+
});
|
|
16611
|
+
};
|
|
16612
|
+
|
|
16613
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
16614
|
+
var state = GenStateSuspendedStart;
|
|
16615
|
+
|
|
16616
|
+
return function invoke(method, arg) {
|
|
16617
|
+
if (state === GenStateExecuting) {
|
|
16618
|
+
throw new Error("Generator is already running");
|
|
16619
|
+
}
|
|
16620
|
+
|
|
16621
|
+
if (state === GenStateCompleted) {
|
|
16622
|
+
if (method === "throw") {
|
|
16623
|
+
throw arg;
|
|
16624
|
+
}
|
|
16625
|
+
|
|
16626
|
+
// Be forgiving, per 25.3.3.3.3 of the spec:
|
|
16627
|
+
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
16628
|
+
return doneResult();
|
|
16629
|
+
}
|
|
16630
|
+
|
|
16631
|
+
context.method = method;
|
|
16632
|
+
context.arg = arg;
|
|
16633
|
+
|
|
16634
|
+
while (true) {
|
|
16635
|
+
var delegate = context.delegate;
|
|
16636
|
+
if (delegate) {
|
|
16637
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
16638
|
+
if (delegateResult) {
|
|
16639
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
16640
|
+
return delegateResult;
|
|
16641
|
+
}
|
|
16642
|
+
}
|
|
16643
|
+
|
|
16644
|
+
if (context.method === "next") {
|
|
16645
|
+
// Setting context._sent for legacy support of Babel's
|
|
16646
|
+
// function.sent implementation.
|
|
16647
|
+
context.sent = context._sent = context.arg;
|
|
16648
|
+
|
|
16649
|
+
} else if (context.method === "throw") {
|
|
16650
|
+
if (state === GenStateSuspendedStart) {
|
|
16651
|
+
state = GenStateCompleted;
|
|
16652
|
+
throw context.arg;
|
|
16653
|
+
}
|
|
16654
|
+
|
|
16655
|
+
context.dispatchException(context.arg);
|
|
16656
|
+
|
|
16657
|
+
} else if (context.method === "return") {
|
|
16658
|
+
context.abrupt("return", context.arg);
|
|
16659
|
+
}
|
|
16660
|
+
|
|
16661
|
+
state = GenStateExecuting;
|
|
16662
|
+
|
|
16663
|
+
var record = tryCatch(innerFn, self, context);
|
|
16664
|
+
if (record.type === "normal") {
|
|
16665
|
+
// If an exception is thrown from innerFn, we leave state ===
|
|
16666
|
+
// GenStateExecuting and loop back for another invocation.
|
|
16667
|
+
state = context.done
|
|
16668
|
+
? GenStateCompleted
|
|
16669
|
+
: GenStateSuspendedYield;
|
|
16670
|
+
|
|
16671
|
+
if (record.arg === ContinueSentinel) {
|
|
16672
|
+
continue;
|
|
16673
|
+
}
|
|
16674
|
+
|
|
16675
|
+
return {
|
|
16676
|
+
value: record.arg,
|
|
16677
|
+
done: context.done
|
|
16678
|
+
};
|
|
16679
|
+
|
|
16680
|
+
} else if (record.type === "throw") {
|
|
16681
|
+
state = GenStateCompleted;
|
|
16682
|
+
// Dispatch the exception by looping back around to the
|
|
16683
|
+
// context.dispatchException(context.arg) call above.
|
|
16684
|
+
context.method = "throw";
|
|
16685
|
+
context.arg = record.arg;
|
|
16686
|
+
}
|
|
16687
|
+
}
|
|
16688
|
+
};
|
|
16689
|
+
}
|
|
16690
|
+
|
|
16691
|
+
// Call delegate.iterator[context.method](context.arg) and handle the
|
|
16692
|
+
// result, either by returning a { value, done } result from the
|
|
16693
|
+
// delegate iterator, or by modifying context.method and context.arg,
|
|
16694
|
+
// setting context.delegate to null, and returning the ContinueSentinel.
|
|
16695
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
16696
|
+
var method = delegate.iterator[context.method];
|
|
16697
|
+
if (method === undefined) {
|
|
16698
|
+
// A .throw or .return when the delegate iterator has no .throw
|
|
16699
|
+
// method always terminates the yield* loop.
|
|
16700
|
+
context.delegate = null;
|
|
16701
|
+
|
|
16702
|
+
if (context.method === "throw") {
|
|
16703
|
+
// Note: ["return"] must be used for ES3 parsing compatibility.
|
|
16704
|
+
if (delegate.iterator["return"]) {
|
|
16705
|
+
// If the delegate iterator has a return method, give it a
|
|
16706
|
+
// chance to clean up.
|
|
16707
|
+
context.method = "return";
|
|
16708
|
+
context.arg = undefined;
|
|
16709
|
+
maybeInvokeDelegate(delegate, context);
|
|
16710
|
+
|
|
16711
|
+
if (context.method === "throw") {
|
|
16712
|
+
// If maybeInvokeDelegate(context) changed context.method from
|
|
16713
|
+
// "return" to "throw", let that override the TypeError below.
|
|
16714
|
+
return ContinueSentinel;
|
|
16715
|
+
}
|
|
16716
|
+
}
|
|
16717
|
+
|
|
16718
|
+
context.method = "throw";
|
|
16719
|
+
context.arg = new TypeError(
|
|
16720
|
+
"The iterator does not provide a 'throw' method");
|
|
16721
|
+
}
|
|
16722
|
+
|
|
16723
|
+
return ContinueSentinel;
|
|
16724
|
+
}
|
|
16725
|
+
|
|
16726
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
16727
|
+
|
|
16728
|
+
if (record.type === "throw") {
|
|
16729
|
+
context.method = "throw";
|
|
16730
|
+
context.arg = record.arg;
|
|
16731
|
+
context.delegate = null;
|
|
16732
|
+
return ContinueSentinel;
|
|
16733
|
+
}
|
|
16734
|
+
|
|
16735
|
+
var info = record.arg;
|
|
16736
|
+
|
|
16737
|
+
if (! info) {
|
|
16738
|
+
context.method = "throw";
|
|
16739
|
+
context.arg = new TypeError("iterator result is not an object");
|
|
16740
|
+
context.delegate = null;
|
|
16741
|
+
return ContinueSentinel;
|
|
16742
|
+
}
|
|
16743
|
+
|
|
16744
|
+
if (info.done) {
|
|
16745
|
+
// Assign the result of the finished delegate to the temporary
|
|
16746
|
+
// variable specified by delegate.resultName (see delegateYield).
|
|
16747
|
+
context[delegate.resultName] = info.value;
|
|
16748
|
+
|
|
16749
|
+
// Resume execution at the desired location (see delegateYield).
|
|
16750
|
+
context.next = delegate.nextLoc;
|
|
16751
|
+
|
|
16752
|
+
// If context.method was "throw" but the delegate handled the
|
|
16753
|
+
// exception, let the outer generator proceed normally. If
|
|
16754
|
+
// context.method was "next", forget context.arg since it has been
|
|
16755
|
+
// "consumed" by the delegate iterator. If context.method was
|
|
16756
|
+
// "return", allow the original .return call to continue in the
|
|
16757
|
+
// outer generator.
|
|
16758
|
+
if (context.method !== "return") {
|
|
16759
|
+
context.method = "next";
|
|
16760
|
+
context.arg = undefined;
|
|
16761
|
+
}
|
|
16762
|
+
|
|
16763
|
+
} else {
|
|
16764
|
+
// Re-yield the result returned by the delegate method.
|
|
16765
|
+
return info;
|
|
16766
|
+
}
|
|
16767
|
+
|
|
16768
|
+
// The delegate iterator is finished, so forget it and continue with
|
|
16769
|
+
// the outer generator.
|
|
16770
|
+
context.delegate = null;
|
|
16771
|
+
return ContinueSentinel;
|
|
16772
|
+
}
|
|
16773
|
+
|
|
16774
|
+
// Define Generator.prototype.{next,throw,return} in terms of the
|
|
16775
|
+
// unified ._invoke helper method.
|
|
16776
|
+
defineIteratorMethods(Gp);
|
|
16777
|
+
|
|
16778
|
+
define(Gp, toStringTagSymbol, "Generator");
|
|
16779
|
+
|
|
16780
|
+
// A Generator should always return itself as the iterator object when the
|
|
16781
|
+
// @@iterator function is called on it. Some browsers' implementations of the
|
|
16782
|
+
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
16783
|
+
// object to not be returned from this call. This ensures that doesn't happen.
|
|
16784
|
+
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
16785
|
+
Gp[iteratorSymbol] = function() {
|
|
16786
|
+
return this;
|
|
16787
|
+
};
|
|
16788
|
+
|
|
16789
|
+
Gp.toString = function() {
|
|
16790
|
+
return "[object Generator]";
|
|
16791
|
+
};
|
|
16792
|
+
|
|
16793
|
+
function pushTryEntry(locs) {
|
|
16794
|
+
var entry = { tryLoc: locs[0] };
|
|
16795
|
+
|
|
16796
|
+
if (1 in locs) {
|
|
16797
|
+
entry.catchLoc = locs[1];
|
|
16798
|
+
}
|
|
16799
|
+
|
|
16800
|
+
if (2 in locs) {
|
|
16801
|
+
entry.finallyLoc = locs[2];
|
|
16802
|
+
entry.afterLoc = locs[3];
|
|
16803
|
+
}
|
|
16804
|
+
|
|
16805
|
+
this.tryEntries.push(entry);
|
|
16806
|
+
}
|
|
16807
|
+
|
|
16808
|
+
function resetTryEntry(entry) {
|
|
16809
|
+
var record = entry.completion || {};
|
|
16810
|
+
record.type = "normal";
|
|
16811
|
+
delete record.arg;
|
|
16812
|
+
entry.completion = record;
|
|
16813
|
+
}
|
|
16814
|
+
|
|
16815
|
+
function Context(tryLocsList) {
|
|
16816
|
+
// The root entry object (effectively a try statement without a catch
|
|
16817
|
+
// or a finally block) gives us a place to store values thrown from
|
|
16818
|
+
// locations where there is no enclosing try statement.
|
|
16819
|
+
this.tryEntries = [{ tryLoc: "root" }];
|
|
16820
|
+
tryLocsList.forEach(pushTryEntry, this);
|
|
16821
|
+
this.reset(true);
|
|
16822
|
+
}
|
|
16823
|
+
|
|
16824
|
+
exports.keys = function(object) {
|
|
16825
|
+
var keys = [];
|
|
16826
|
+
for (var key in object) {
|
|
16827
|
+
keys.push(key);
|
|
16828
|
+
}
|
|
16829
|
+
keys.reverse();
|
|
16830
|
+
|
|
16831
|
+
// Rather than returning an object with a next method, we keep
|
|
16832
|
+
// things simple and return the next function itself.
|
|
16833
|
+
return function next() {
|
|
16834
|
+
while (keys.length) {
|
|
16835
|
+
var key = keys.pop();
|
|
16836
|
+
if (key in object) {
|
|
16837
|
+
next.value = key;
|
|
16838
|
+
next.done = false;
|
|
16839
|
+
return next;
|
|
16840
|
+
}
|
|
16841
|
+
}
|
|
16842
|
+
|
|
16843
|
+
// To avoid creating an additional object, we just hang the .value
|
|
16844
|
+
// and .done properties off the next function object itself. This
|
|
16845
|
+
// also ensures that the minifier will not anonymize the function.
|
|
16846
|
+
next.done = true;
|
|
16847
|
+
return next;
|
|
16848
|
+
};
|
|
16849
|
+
};
|
|
16850
|
+
|
|
16851
|
+
function values(iterable) {
|
|
16852
|
+
if (iterable) {
|
|
16853
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
16854
|
+
if (iteratorMethod) {
|
|
16855
|
+
return iteratorMethod.call(iterable);
|
|
16856
|
+
}
|
|
16857
|
+
|
|
16858
|
+
if (typeof iterable.next === "function") {
|
|
16859
|
+
return iterable;
|
|
16860
|
+
}
|
|
16861
|
+
|
|
16862
|
+
if (!isNaN(iterable.length)) {
|
|
16863
|
+
var i = -1, next = function next() {
|
|
16864
|
+
while (++i < iterable.length) {
|
|
16865
|
+
if (hasOwn.call(iterable, i)) {
|
|
16866
|
+
next.value = iterable[i];
|
|
16867
|
+
next.done = false;
|
|
16868
|
+
return next;
|
|
16869
|
+
}
|
|
16870
|
+
}
|
|
16871
|
+
|
|
16872
|
+
next.value = undefined;
|
|
16873
|
+
next.done = true;
|
|
16874
|
+
|
|
16875
|
+
return next;
|
|
16876
|
+
};
|
|
16877
|
+
|
|
16878
|
+
return next.next = next;
|
|
16879
|
+
}
|
|
16880
|
+
}
|
|
16881
|
+
|
|
16882
|
+
// Return an iterator with no values.
|
|
16883
|
+
return { next: doneResult };
|
|
16884
|
+
}
|
|
16885
|
+
exports.values = values;
|
|
16886
|
+
|
|
16887
|
+
function doneResult() {
|
|
16888
|
+
return { value: undefined, done: true };
|
|
16889
|
+
}
|
|
16890
|
+
|
|
16891
|
+
Context.prototype = {
|
|
16892
|
+
constructor: Context,
|
|
16893
|
+
|
|
16894
|
+
reset: function(skipTempReset) {
|
|
16895
|
+
this.prev = 0;
|
|
16896
|
+
this.next = 0;
|
|
16897
|
+
// Resetting context._sent for legacy support of Babel's
|
|
16898
|
+
// function.sent implementation.
|
|
16899
|
+
this.sent = this._sent = undefined;
|
|
16900
|
+
this.done = false;
|
|
16901
|
+
this.delegate = null;
|
|
16902
|
+
|
|
16903
|
+
this.method = "next";
|
|
16904
|
+
this.arg = undefined;
|
|
16905
|
+
|
|
16906
|
+
this.tryEntries.forEach(resetTryEntry);
|
|
16907
|
+
|
|
16908
|
+
if (!skipTempReset) {
|
|
16909
|
+
for (var name in this) {
|
|
16910
|
+
// Not sure about the optimal order of these conditions:
|
|
16911
|
+
if (name.charAt(0) === "t" &&
|
|
16912
|
+
hasOwn.call(this, name) &&
|
|
16913
|
+
!isNaN(+name.slice(1))) {
|
|
16914
|
+
this[name] = undefined;
|
|
16915
|
+
}
|
|
16916
|
+
}
|
|
16917
|
+
}
|
|
16918
|
+
},
|
|
16919
|
+
|
|
16920
|
+
stop: function() {
|
|
16921
|
+
this.done = true;
|
|
16922
|
+
|
|
16923
|
+
var rootEntry = this.tryEntries[0];
|
|
16924
|
+
var rootRecord = rootEntry.completion;
|
|
16925
|
+
if (rootRecord.type === "throw") {
|
|
16926
|
+
throw rootRecord.arg;
|
|
16927
|
+
}
|
|
16928
|
+
|
|
16929
|
+
return this.rval;
|
|
16930
|
+
},
|
|
16931
|
+
|
|
16932
|
+
dispatchException: function(exception) {
|
|
16933
|
+
if (this.done) {
|
|
16934
|
+
throw exception;
|
|
16935
|
+
}
|
|
16936
|
+
|
|
16937
|
+
var context = this;
|
|
16938
|
+
function handle(loc, caught) {
|
|
16939
|
+
record.type = "throw";
|
|
16940
|
+
record.arg = exception;
|
|
16941
|
+
context.next = loc;
|
|
16942
|
+
|
|
16943
|
+
if (caught) {
|
|
16944
|
+
// If the dispatched exception was caught by a catch block,
|
|
16945
|
+
// then let that catch block handle the exception normally.
|
|
16946
|
+
context.method = "next";
|
|
16947
|
+
context.arg = undefined;
|
|
16948
|
+
}
|
|
16949
|
+
|
|
16950
|
+
return !! caught;
|
|
16951
|
+
}
|
|
16952
|
+
|
|
16953
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
16954
|
+
var entry = this.tryEntries[i];
|
|
16955
|
+
var record = entry.completion;
|
|
16956
|
+
|
|
16957
|
+
if (entry.tryLoc === "root") {
|
|
16958
|
+
// Exception thrown outside of any try block that could handle
|
|
16959
|
+
// it, so set the completion value of the entire function to
|
|
16960
|
+
// throw the exception.
|
|
16961
|
+
return handle("end");
|
|
16962
|
+
}
|
|
16963
|
+
|
|
16964
|
+
if (entry.tryLoc <= this.prev) {
|
|
16965
|
+
var hasCatch = hasOwn.call(entry, "catchLoc");
|
|
16966
|
+
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
16967
|
+
|
|
16968
|
+
if (hasCatch && hasFinally) {
|
|
16969
|
+
if (this.prev < entry.catchLoc) {
|
|
16970
|
+
return handle(entry.catchLoc, true);
|
|
16971
|
+
} else if (this.prev < entry.finallyLoc) {
|
|
16972
|
+
return handle(entry.finallyLoc);
|
|
16973
|
+
}
|
|
16974
|
+
|
|
16975
|
+
} else if (hasCatch) {
|
|
16976
|
+
if (this.prev < entry.catchLoc) {
|
|
16977
|
+
return handle(entry.catchLoc, true);
|
|
16978
|
+
}
|
|
16979
|
+
|
|
16980
|
+
} else if (hasFinally) {
|
|
16981
|
+
if (this.prev < entry.finallyLoc) {
|
|
16982
|
+
return handle(entry.finallyLoc);
|
|
16983
|
+
}
|
|
16984
|
+
|
|
16985
|
+
} else {
|
|
16986
|
+
throw new Error("try statement without catch or finally");
|
|
16987
|
+
}
|
|
16988
|
+
}
|
|
16989
|
+
}
|
|
16990
|
+
},
|
|
16991
|
+
|
|
16992
|
+
abrupt: function(type, arg) {
|
|
16993
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
16994
|
+
var entry = this.tryEntries[i];
|
|
16995
|
+
if (entry.tryLoc <= this.prev &&
|
|
16996
|
+
hasOwn.call(entry, "finallyLoc") &&
|
|
16997
|
+
this.prev < entry.finallyLoc) {
|
|
16998
|
+
var finallyEntry = entry;
|
|
16999
|
+
break;
|
|
17000
|
+
}
|
|
17001
|
+
}
|
|
17002
|
+
|
|
17003
|
+
if (finallyEntry &&
|
|
17004
|
+
(type === "break" ||
|
|
17005
|
+
type === "continue") &&
|
|
17006
|
+
finallyEntry.tryLoc <= arg &&
|
|
17007
|
+
arg <= finallyEntry.finallyLoc) {
|
|
17008
|
+
// Ignore the finally entry if control is not jumping to a
|
|
17009
|
+
// location outside the try/catch block.
|
|
17010
|
+
finallyEntry = null;
|
|
17011
|
+
}
|
|
17012
|
+
|
|
17013
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
17014
|
+
record.type = type;
|
|
17015
|
+
record.arg = arg;
|
|
17016
|
+
|
|
17017
|
+
if (finallyEntry) {
|
|
17018
|
+
this.method = "next";
|
|
17019
|
+
this.next = finallyEntry.finallyLoc;
|
|
17020
|
+
return ContinueSentinel;
|
|
17021
|
+
}
|
|
17022
|
+
|
|
17023
|
+
return this.complete(record);
|
|
17024
|
+
},
|
|
17025
|
+
|
|
17026
|
+
complete: function(record, afterLoc) {
|
|
17027
|
+
if (record.type === "throw") {
|
|
17028
|
+
throw record.arg;
|
|
17029
|
+
}
|
|
17030
|
+
|
|
17031
|
+
if (record.type === "break" ||
|
|
17032
|
+
record.type === "continue") {
|
|
17033
|
+
this.next = record.arg;
|
|
17034
|
+
} else if (record.type === "return") {
|
|
17035
|
+
this.rval = this.arg = record.arg;
|
|
17036
|
+
this.method = "return";
|
|
17037
|
+
this.next = "end";
|
|
17038
|
+
} else if (record.type === "normal" && afterLoc) {
|
|
17039
|
+
this.next = afterLoc;
|
|
17040
|
+
}
|
|
17041
|
+
|
|
17042
|
+
return ContinueSentinel;
|
|
17043
|
+
},
|
|
17044
|
+
|
|
17045
|
+
finish: function(finallyLoc) {
|
|
17046
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
17047
|
+
var entry = this.tryEntries[i];
|
|
17048
|
+
if (entry.finallyLoc === finallyLoc) {
|
|
17049
|
+
this.complete(entry.completion, entry.afterLoc);
|
|
17050
|
+
resetTryEntry(entry);
|
|
17051
|
+
return ContinueSentinel;
|
|
17052
|
+
}
|
|
17053
|
+
}
|
|
17054
|
+
},
|
|
17055
|
+
|
|
17056
|
+
"catch": function(tryLoc) {
|
|
17057
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
17058
|
+
var entry = this.tryEntries[i];
|
|
17059
|
+
if (entry.tryLoc === tryLoc) {
|
|
17060
|
+
var record = entry.completion;
|
|
17061
|
+
if (record.type === "throw") {
|
|
17062
|
+
var thrown = record.arg;
|
|
17063
|
+
resetTryEntry(entry);
|
|
17064
|
+
}
|
|
17065
|
+
return thrown;
|
|
17066
|
+
}
|
|
17067
|
+
}
|
|
17068
|
+
|
|
17069
|
+
// The context.catch method must only be called with a location
|
|
17070
|
+
// argument that corresponds to a known catch block.
|
|
17071
|
+
throw new Error("illegal catch attempt");
|
|
17072
|
+
},
|
|
17073
|
+
|
|
17074
|
+
delegateYield: function(iterable, resultName, nextLoc) {
|
|
17075
|
+
this.delegate = {
|
|
17076
|
+
iterator: values(iterable),
|
|
17077
|
+
resultName: resultName,
|
|
17078
|
+
nextLoc: nextLoc
|
|
17079
|
+
};
|
|
17080
|
+
|
|
17081
|
+
if (this.method === "next") {
|
|
17082
|
+
// Deliberately forget the last sent value so that we don't
|
|
17083
|
+
// accidentally pass it on to the delegate.
|
|
17084
|
+
this.arg = undefined;
|
|
17085
|
+
}
|
|
17086
|
+
|
|
17087
|
+
return ContinueSentinel;
|
|
17088
|
+
}
|
|
17089
|
+
};
|
|
17090
|
+
|
|
17091
|
+
// Regardless of whether this script is executing as a CommonJS module
|
|
17092
|
+
// or not, return the runtime object so that we can declare the variable
|
|
17093
|
+
// regeneratorRuntime in the outer scope, which allows this module to be
|
|
17094
|
+
// injected easily by `bin/regenerator --include-runtime script.js`.
|
|
17095
|
+
return exports;
|
|
17096
|
+
|
|
17097
|
+
}(
|
|
17098
|
+
// If this script is executing as a CommonJS module, use module.exports
|
|
17099
|
+
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
17100
|
+
// object. Either way, the resulting object will be used to initialize
|
|
17101
|
+
// the regeneratorRuntime variable at the top of this file.
|
|
17102
|
+
true ? module.exports : undefined
|
|
17103
|
+
));
|
|
17104
|
+
|
|
17105
|
+
try {
|
|
17106
|
+
regeneratorRuntime = runtime;
|
|
17107
|
+
} catch (accidentalStrictMode) {
|
|
17108
|
+
// This module should not be running in strict mode, so the above
|
|
17109
|
+
// assignment should always work unless something is misconfigured. Just
|
|
17110
|
+
// in case runtime.js accidentally runs in strict mode, we can escape
|
|
17111
|
+
// strict mode using a global Function call. This could conceivably fail
|
|
17112
|
+
// if a Content Security Policy forbids using Function, but in that case
|
|
17113
|
+
// the proper solution is to fix the accidental strict mode problem. If
|
|
17114
|
+
// you've misconfigured your bundler to force strict mode and applied a
|
|
17115
|
+
// CSP to forbid Function, and you're not willing to fix either of those
|
|
17116
|
+
// problems, please detail your unique predicament in a GitHub issue.
|
|
17117
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
17118
|
+
}
|
|
17119
|
+
|
|
17120
|
+
|
|
14741
17121
|
/***/ }),
|
|
14742
17122
|
|
|
14743
17123
|
/***/ "9727":
|
|
@@ -14963,6 +17343,361 @@ module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
14963
17343
|
|
|
14964
17344
|
// extracted by mini-css-extract-plugin
|
|
14965
17345
|
|
|
17346
|
+
/***/ }),
|
|
17347
|
+
|
|
17348
|
+
/***/ "9861":
|
|
17349
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
17350
|
+
|
|
17351
|
+
"use strict";
|
|
17352
|
+
|
|
17353
|
+
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
|
|
17354
|
+
__webpack_require__("e260");
|
|
17355
|
+
var $ = __webpack_require__("23e7");
|
|
17356
|
+
var getBuiltIn = __webpack_require__("d066");
|
|
17357
|
+
var USE_NATIVE_URL = __webpack_require__("0d3b");
|
|
17358
|
+
var redefine = __webpack_require__("6eeb");
|
|
17359
|
+
var redefineAll = __webpack_require__("e2cc");
|
|
17360
|
+
var setToStringTag = __webpack_require__("d44e");
|
|
17361
|
+
var createIteratorConstructor = __webpack_require__("9ed3");
|
|
17362
|
+
var InternalStateModule = __webpack_require__("69f3");
|
|
17363
|
+
var anInstance = __webpack_require__("19aa");
|
|
17364
|
+
var hasOwn = __webpack_require__("5135");
|
|
17365
|
+
var bind = __webpack_require__("0366");
|
|
17366
|
+
var classof = __webpack_require__("f5df");
|
|
17367
|
+
var anObject = __webpack_require__("825a");
|
|
17368
|
+
var isObject = __webpack_require__("861d");
|
|
17369
|
+
var create = __webpack_require__("7c73");
|
|
17370
|
+
var createPropertyDescriptor = __webpack_require__("5c6c");
|
|
17371
|
+
var getIterator = __webpack_require__("9a1f");
|
|
17372
|
+
var getIteratorMethod = __webpack_require__("35a1");
|
|
17373
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
17374
|
+
|
|
17375
|
+
var $fetch = getBuiltIn('fetch');
|
|
17376
|
+
var Headers = getBuiltIn('Headers');
|
|
17377
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
17378
|
+
var URL_SEARCH_PARAMS = 'URLSearchParams';
|
|
17379
|
+
var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
|
|
17380
|
+
var setInternalState = InternalStateModule.set;
|
|
17381
|
+
var getInternalParamsState = InternalStateModule.getterFor(URL_SEARCH_PARAMS);
|
|
17382
|
+
var getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR);
|
|
17383
|
+
|
|
17384
|
+
var plus = /\+/g;
|
|
17385
|
+
var sequences = Array(4);
|
|
17386
|
+
|
|
17387
|
+
var percentSequence = function (bytes) {
|
|
17388
|
+
return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp('((?:%[\\da-f]{2}){' + bytes + '})', 'gi'));
|
|
17389
|
+
};
|
|
17390
|
+
|
|
17391
|
+
var percentDecode = function (sequence) {
|
|
17392
|
+
try {
|
|
17393
|
+
return decodeURIComponent(sequence);
|
|
17394
|
+
} catch (error) {
|
|
17395
|
+
return sequence;
|
|
17396
|
+
}
|
|
17397
|
+
};
|
|
17398
|
+
|
|
17399
|
+
var deserialize = function (it) {
|
|
17400
|
+
var result = it.replace(plus, ' ');
|
|
17401
|
+
var bytes = 4;
|
|
17402
|
+
try {
|
|
17403
|
+
return decodeURIComponent(result);
|
|
17404
|
+
} catch (error) {
|
|
17405
|
+
while (bytes) {
|
|
17406
|
+
result = result.replace(percentSequence(bytes--), percentDecode);
|
|
17407
|
+
}
|
|
17408
|
+
return result;
|
|
17409
|
+
}
|
|
17410
|
+
};
|
|
17411
|
+
|
|
17412
|
+
var find = /[!'()~]|%20/g;
|
|
17413
|
+
|
|
17414
|
+
var replace = {
|
|
17415
|
+
'!': '%21',
|
|
17416
|
+
"'": '%27',
|
|
17417
|
+
'(': '%28',
|
|
17418
|
+
')': '%29',
|
|
17419
|
+
'~': '%7E',
|
|
17420
|
+
'%20': '+'
|
|
17421
|
+
};
|
|
17422
|
+
|
|
17423
|
+
var replacer = function (match) {
|
|
17424
|
+
return replace[match];
|
|
17425
|
+
};
|
|
17426
|
+
|
|
17427
|
+
var serialize = function (it) {
|
|
17428
|
+
return encodeURIComponent(it).replace(find, replacer);
|
|
17429
|
+
};
|
|
17430
|
+
|
|
17431
|
+
var parseSearchParams = function (result, query) {
|
|
17432
|
+
if (query) {
|
|
17433
|
+
var attributes = query.split('&');
|
|
17434
|
+
var index = 0;
|
|
17435
|
+
var attribute, entry;
|
|
17436
|
+
while (index < attributes.length) {
|
|
17437
|
+
attribute = attributes[index++];
|
|
17438
|
+
if (attribute.length) {
|
|
17439
|
+
entry = attribute.split('=');
|
|
17440
|
+
result.push({
|
|
17441
|
+
key: deserialize(entry.shift()),
|
|
17442
|
+
value: deserialize(entry.join('='))
|
|
17443
|
+
});
|
|
17444
|
+
}
|
|
17445
|
+
}
|
|
17446
|
+
}
|
|
17447
|
+
};
|
|
17448
|
+
|
|
17449
|
+
var updateSearchParams = function (query) {
|
|
17450
|
+
this.entries.length = 0;
|
|
17451
|
+
parseSearchParams(this.entries, query);
|
|
17452
|
+
};
|
|
17453
|
+
|
|
17454
|
+
var validateArgumentsLength = function (passed, required) {
|
|
17455
|
+
if (passed < required) throw TypeError('Not enough arguments');
|
|
17456
|
+
};
|
|
17457
|
+
|
|
17458
|
+
var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
|
|
17459
|
+
setInternalState(this, {
|
|
17460
|
+
type: URL_SEARCH_PARAMS_ITERATOR,
|
|
17461
|
+
iterator: getIterator(getInternalParamsState(params).entries),
|
|
17462
|
+
kind: kind
|
|
17463
|
+
});
|
|
17464
|
+
}, 'Iterator', function next() {
|
|
17465
|
+
var state = getInternalIteratorState(this);
|
|
17466
|
+
var kind = state.kind;
|
|
17467
|
+
var step = state.iterator.next();
|
|
17468
|
+
var entry = step.value;
|
|
17469
|
+
if (!step.done) {
|
|
17470
|
+
step.value = kind === 'keys' ? entry.key : kind === 'values' ? entry.value : [entry.key, entry.value];
|
|
17471
|
+
} return step;
|
|
17472
|
+
});
|
|
17473
|
+
|
|
17474
|
+
// `URLSearchParams` constructor
|
|
17475
|
+
// https://url.spec.whatwg.org/#interface-urlsearchparams
|
|
17476
|
+
var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
|
|
17477
|
+
anInstance(this, URLSearchParamsConstructor, URL_SEARCH_PARAMS);
|
|
17478
|
+
var init = arguments.length > 0 ? arguments[0] : undefined;
|
|
17479
|
+
var that = this;
|
|
17480
|
+
var entries = [];
|
|
17481
|
+
var iteratorMethod, iterator, next, step, entryIterator, entryNext, first, second, key;
|
|
17482
|
+
|
|
17483
|
+
setInternalState(that, {
|
|
17484
|
+
type: URL_SEARCH_PARAMS,
|
|
17485
|
+
entries: entries,
|
|
17486
|
+
updateURL: function () { /* empty */ },
|
|
17487
|
+
updateSearchParams: updateSearchParams
|
|
17488
|
+
});
|
|
17489
|
+
|
|
17490
|
+
if (init !== undefined) {
|
|
17491
|
+
if (isObject(init)) {
|
|
17492
|
+
iteratorMethod = getIteratorMethod(init);
|
|
17493
|
+
if (typeof iteratorMethod === 'function') {
|
|
17494
|
+
iterator = iteratorMethod.call(init);
|
|
17495
|
+
next = iterator.next;
|
|
17496
|
+
while (!(step = next.call(iterator)).done) {
|
|
17497
|
+
entryIterator = getIterator(anObject(step.value));
|
|
17498
|
+
entryNext = entryIterator.next;
|
|
17499
|
+
if (
|
|
17500
|
+
(first = entryNext.call(entryIterator)).done ||
|
|
17501
|
+
(second = entryNext.call(entryIterator)).done ||
|
|
17502
|
+
!entryNext.call(entryIterator).done
|
|
17503
|
+
) throw TypeError('Expected sequence with length 2');
|
|
17504
|
+
entries.push({ key: first.value + '', value: second.value + '' });
|
|
17505
|
+
}
|
|
17506
|
+
} else for (key in init) if (hasOwn(init, key)) entries.push({ key: key, value: init[key] + '' });
|
|
17507
|
+
} else {
|
|
17508
|
+
parseSearchParams(entries, typeof init === 'string' ? init.charAt(0) === '?' ? init.slice(1) : init : init + '');
|
|
17509
|
+
}
|
|
17510
|
+
}
|
|
17511
|
+
};
|
|
17512
|
+
|
|
17513
|
+
var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
|
|
17514
|
+
|
|
17515
|
+
redefineAll(URLSearchParamsPrototype, {
|
|
17516
|
+
// `URLSearchParams.prototype.append` method
|
|
17517
|
+
// https://url.spec.whatwg.org/#dom-urlsearchparams-append
|
|
17518
|
+
append: function append(name, value) {
|
|
17519
|
+
validateArgumentsLength(arguments.length, 2);
|
|
17520
|
+
var state = getInternalParamsState(this);
|
|
17521
|
+
state.entries.push({ key: name + '', value: value + '' });
|
|
17522
|
+
state.updateURL();
|
|
17523
|
+
},
|
|
17524
|
+
// `URLSearchParams.prototype.delete` method
|
|
17525
|
+
// https://url.spec.whatwg.org/#dom-urlsearchparams-delete
|
|
17526
|
+
'delete': function (name) {
|
|
17527
|
+
validateArgumentsLength(arguments.length, 1);
|
|
17528
|
+
var state = getInternalParamsState(this);
|
|
17529
|
+
var entries = state.entries;
|
|
17530
|
+
var key = name + '';
|
|
17531
|
+
var index = 0;
|
|
17532
|
+
while (index < entries.length) {
|
|
17533
|
+
if (entries[index].key === key) entries.splice(index, 1);
|
|
17534
|
+
else index++;
|
|
17535
|
+
}
|
|
17536
|
+
state.updateURL();
|
|
17537
|
+
},
|
|
17538
|
+
// `URLSearchParams.prototype.get` method
|
|
17539
|
+
// https://url.spec.whatwg.org/#dom-urlsearchparams-get
|
|
17540
|
+
get: function get(name) {
|
|
17541
|
+
validateArgumentsLength(arguments.length, 1);
|
|
17542
|
+
var entries = getInternalParamsState(this).entries;
|
|
17543
|
+
var key = name + '';
|
|
17544
|
+
var index = 0;
|
|
17545
|
+
for (; index < entries.length; index++) {
|
|
17546
|
+
if (entries[index].key === key) return entries[index].value;
|
|
17547
|
+
}
|
|
17548
|
+
return null;
|
|
17549
|
+
},
|
|
17550
|
+
// `URLSearchParams.prototype.getAll` method
|
|
17551
|
+
// https://url.spec.whatwg.org/#dom-urlsearchparams-getall
|
|
17552
|
+
getAll: function getAll(name) {
|
|
17553
|
+
validateArgumentsLength(arguments.length, 1);
|
|
17554
|
+
var entries = getInternalParamsState(this).entries;
|
|
17555
|
+
var key = name + '';
|
|
17556
|
+
var result = [];
|
|
17557
|
+
var index = 0;
|
|
17558
|
+
for (; index < entries.length; index++) {
|
|
17559
|
+
if (entries[index].key === key) result.push(entries[index].value);
|
|
17560
|
+
}
|
|
17561
|
+
return result;
|
|
17562
|
+
},
|
|
17563
|
+
// `URLSearchParams.prototype.has` method
|
|
17564
|
+
// https://url.spec.whatwg.org/#dom-urlsearchparams-has
|
|
17565
|
+
has: function has(name) {
|
|
17566
|
+
validateArgumentsLength(arguments.length, 1);
|
|
17567
|
+
var entries = getInternalParamsState(this).entries;
|
|
17568
|
+
var key = name + '';
|
|
17569
|
+
var index = 0;
|
|
17570
|
+
while (index < entries.length) {
|
|
17571
|
+
if (entries[index++].key === key) return true;
|
|
17572
|
+
}
|
|
17573
|
+
return false;
|
|
17574
|
+
},
|
|
17575
|
+
// `URLSearchParams.prototype.set` method
|
|
17576
|
+
// https://url.spec.whatwg.org/#dom-urlsearchparams-set
|
|
17577
|
+
set: function set(name, value) {
|
|
17578
|
+
validateArgumentsLength(arguments.length, 1);
|
|
17579
|
+
var state = getInternalParamsState(this);
|
|
17580
|
+
var entries = state.entries;
|
|
17581
|
+
var found = false;
|
|
17582
|
+
var key = name + '';
|
|
17583
|
+
var val = value + '';
|
|
17584
|
+
var index = 0;
|
|
17585
|
+
var entry;
|
|
17586
|
+
for (; index < entries.length; index++) {
|
|
17587
|
+
entry = entries[index];
|
|
17588
|
+
if (entry.key === key) {
|
|
17589
|
+
if (found) entries.splice(index--, 1);
|
|
17590
|
+
else {
|
|
17591
|
+
found = true;
|
|
17592
|
+
entry.value = val;
|
|
17593
|
+
}
|
|
17594
|
+
}
|
|
17595
|
+
}
|
|
17596
|
+
if (!found) entries.push({ key: key, value: val });
|
|
17597
|
+
state.updateURL();
|
|
17598
|
+
},
|
|
17599
|
+
// `URLSearchParams.prototype.sort` method
|
|
17600
|
+
// https://url.spec.whatwg.org/#dom-urlsearchparams-sort
|
|
17601
|
+
sort: function sort() {
|
|
17602
|
+
var state = getInternalParamsState(this);
|
|
17603
|
+
var entries = state.entries;
|
|
17604
|
+
// Array#sort is not stable in some engines
|
|
17605
|
+
var slice = entries.slice();
|
|
17606
|
+
var entry, entriesIndex, sliceIndex;
|
|
17607
|
+
entries.length = 0;
|
|
17608
|
+
for (sliceIndex = 0; sliceIndex < slice.length; sliceIndex++) {
|
|
17609
|
+
entry = slice[sliceIndex];
|
|
17610
|
+
for (entriesIndex = 0; entriesIndex < sliceIndex; entriesIndex++) {
|
|
17611
|
+
if (entries[entriesIndex].key > entry.key) {
|
|
17612
|
+
entries.splice(entriesIndex, 0, entry);
|
|
17613
|
+
break;
|
|
17614
|
+
}
|
|
17615
|
+
}
|
|
17616
|
+
if (entriesIndex === sliceIndex) entries.push(entry);
|
|
17617
|
+
}
|
|
17618
|
+
state.updateURL();
|
|
17619
|
+
},
|
|
17620
|
+
// `URLSearchParams.prototype.forEach` method
|
|
17621
|
+
forEach: function forEach(callback /* , thisArg */) {
|
|
17622
|
+
var entries = getInternalParamsState(this).entries;
|
|
17623
|
+
var boundFunction = bind(callback, arguments.length > 1 ? arguments[1] : undefined, 3);
|
|
17624
|
+
var index = 0;
|
|
17625
|
+
var entry;
|
|
17626
|
+
while (index < entries.length) {
|
|
17627
|
+
entry = entries[index++];
|
|
17628
|
+
boundFunction(entry.value, entry.key, this);
|
|
17629
|
+
}
|
|
17630
|
+
},
|
|
17631
|
+
// `URLSearchParams.prototype.keys` method
|
|
17632
|
+
keys: function keys() {
|
|
17633
|
+
return new URLSearchParamsIterator(this, 'keys');
|
|
17634
|
+
},
|
|
17635
|
+
// `URLSearchParams.prototype.values` method
|
|
17636
|
+
values: function values() {
|
|
17637
|
+
return new URLSearchParamsIterator(this, 'values');
|
|
17638
|
+
},
|
|
17639
|
+
// `URLSearchParams.prototype.entries` method
|
|
17640
|
+
entries: function entries() {
|
|
17641
|
+
return new URLSearchParamsIterator(this, 'entries');
|
|
17642
|
+
}
|
|
17643
|
+
}, { enumerable: true });
|
|
17644
|
+
|
|
17645
|
+
// `URLSearchParams.prototype[@@iterator]` method
|
|
17646
|
+
redefine(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries);
|
|
17647
|
+
|
|
17648
|
+
// `URLSearchParams.prototype.toString` method
|
|
17649
|
+
// https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
|
|
17650
|
+
redefine(URLSearchParamsPrototype, 'toString', function toString() {
|
|
17651
|
+
var entries = getInternalParamsState(this).entries;
|
|
17652
|
+
var result = [];
|
|
17653
|
+
var index = 0;
|
|
17654
|
+
var entry;
|
|
17655
|
+
while (index < entries.length) {
|
|
17656
|
+
entry = entries[index++];
|
|
17657
|
+
result.push(serialize(entry.key) + '=' + serialize(entry.value));
|
|
17658
|
+
} return result.join('&');
|
|
17659
|
+
}, { enumerable: true });
|
|
17660
|
+
|
|
17661
|
+
setToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
|
|
17662
|
+
|
|
17663
|
+
$({ global: true, forced: !USE_NATIVE_URL }, {
|
|
17664
|
+
URLSearchParams: URLSearchParamsConstructor
|
|
17665
|
+
});
|
|
17666
|
+
|
|
17667
|
+
// Wrap `fetch` for correct work with polyfilled `URLSearchParams`
|
|
17668
|
+
// https://github.com/zloirock/core-js/issues/674
|
|
17669
|
+
if (!USE_NATIVE_URL && typeof $fetch == 'function' && typeof Headers == 'function') {
|
|
17670
|
+
$({ global: true, enumerable: true, forced: true }, {
|
|
17671
|
+
fetch: function fetch(input /* , init */) {
|
|
17672
|
+
var args = [input];
|
|
17673
|
+
var init, body, headers;
|
|
17674
|
+
if (arguments.length > 1) {
|
|
17675
|
+
init = arguments[1];
|
|
17676
|
+
if (isObject(init)) {
|
|
17677
|
+
body = init.body;
|
|
17678
|
+
if (classof(body) === URL_SEARCH_PARAMS) {
|
|
17679
|
+
headers = init.headers ? new Headers(init.headers) : new Headers();
|
|
17680
|
+
if (!headers.has('content-type')) {
|
|
17681
|
+
headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
|
|
17682
|
+
}
|
|
17683
|
+
init = create(init, {
|
|
17684
|
+
body: createPropertyDescriptor(0, String(body)),
|
|
17685
|
+
headers: createPropertyDescriptor(0, headers)
|
|
17686
|
+
});
|
|
17687
|
+
}
|
|
17688
|
+
}
|
|
17689
|
+
args.push(init);
|
|
17690
|
+
} return $fetch.apply(this, args);
|
|
17691
|
+
}
|
|
17692
|
+
});
|
|
17693
|
+
}
|
|
17694
|
+
|
|
17695
|
+
module.exports = {
|
|
17696
|
+
URLSearchParams: URLSearchParamsConstructor,
|
|
17697
|
+
getState: getInternalParamsState
|
|
17698
|
+
};
|
|
17699
|
+
|
|
17700
|
+
|
|
14966
17701
|
/***/ }),
|
|
14967
17702
|
|
|
14968
17703
|
/***/ "9932":
|
|
@@ -15045,6 +17780,34 @@ $({ target: 'Array', proto: true, forced: FORCED }, {
|
|
|
15045
17780
|
});
|
|
15046
17781
|
|
|
15047
17782
|
|
|
17783
|
+
/***/ }),
|
|
17784
|
+
|
|
17785
|
+
/***/ "9a0c":
|
|
17786
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
17787
|
+
|
|
17788
|
+
// https://github.com/zloirock/core-js/issues/280
|
|
17789
|
+
var userAgent = __webpack_require__("342f");
|
|
17790
|
+
|
|
17791
|
+
// eslint-disable-next-line unicorn/no-unsafe-regex
|
|
17792
|
+
module.exports = /Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(userAgent);
|
|
17793
|
+
|
|
17794
|
+
|
|
17795
|
+
/***/ }),
|
|
17796
|
+
|
|
17797
|
+
/***/ "9a1f":
|
|
17798
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
17799
|
+
|
|
17800
|
+
var anObject = __webpack_require__("825a");
|
|
17801
|
+
var getIteratorMethod = __webpack_require__("35a1");
|
|
17802
|
+
|
|
17803
|
+
module.exports = function (it) {
|
|
17804
|
+
var iteratorMethod = getIteratorMethod(it);
|
|
17805
|
+
if (typeof iteratorMethod != 'function') {
|
|
17806
|
+
throw TypeError(String(it) + ' is not iterable');
|
|
17807
|
+
} return anObject(iteratorMethod.call(it));
|
|
17808
|
+
};
|
|
17809
|
+
|
|
17810
|
+
|
|
15048
17811
|
/***/ }),
|
|
15049
17812
|
|
|
15050
17813
|
/***/ "9a25":
|
|
@@ -17227,6 +19990,91 @@ module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
17227
19990
|
// extracted by mini-css-extract-plugin
|
|
17228
19991
|
module.exports = {"unnnicColorBackgroundSolo":"#E8F4F4"};
|
|
17229
19992
|
|
|
19993
|
+
/***/ }),
|
|
19994
|
+
|
|
19995
|
+
/***/ "b575":
|
|
19996
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
19997
|
+
|
|
19998
|
+
var global = __webpack_require__("da84");
|
|
19999
|
+
var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
|
|
20000
|
+
var macrotask = __webpack_require__("2cf4").set;
|
|
20001
|
+
var IS_IOS = __webpack_require__("1cdc");
|
|
20002
|
+
var IS_NODE = __webpack_require__("605d");
|
|
20003
|
+
|
|
20004
|
+
var MutationObserver = global.MutationObserver || global.WebKitMutationObserver;
|
|
20005
|
+
var document = global.document;
|
|
20006
|
+
var process = global.process;
|
|
20007
|
+
var Promise = global.Promise;
|
|
20008
|
+
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
20009
|
+
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');
|
|
20010
|
+
var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
|
20011
|
+
|
|
20012
|
+
var flush, head, last, notify, toggle, node, promise, then;
|
|
20013
|
+
|
|
20014
|
+
// modern engines have queueMicrotask method
|
|
20015
|
+
if (!queueMicrotask) {
|
|
20016
|
+
flush = function () {
|
|
20017
|
+
var parent, fn;
|
|
20018
|
+
if (IS_NODE && (parent = process.domain)) parent.exit();
|
|
20019
|
+
while (head) {
|
|
20020
|
+
fn = head.fn;
|
|
20021
|
+
head = head.next;
|
|
20022
|
+
try {
|
|
20023
|
+
fn();
|
|
20024
|
+
} catch (error) {
|
|
20025
|
+
if (head) notify();
|
|
20026
|
+
else last = undefined;
|
|
20027
|
+
throw error;
|
|
20028
|
+
}
|
|
20029
|
+
} last = undefined;
|
|
20030
|
+
if (parent) parent.enter();
|
|
20031
|
+
};
|
|
20032
|
+
|
|
20033
|
+
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
20034
|
+
if (!IS_IOS && !IS_NODE && MutationObserver && document) {
|
|
20035
|
+
toggle = true;
|
|
20036
|
+
node = document.createTextNode('');
|
|
20037
|
+
new MutationObserver(flush).observe(node, { characterData: true });
|
|
20038
|
+
notify = function () {
|
|
20039
|
+
node.data = toggle = !toggle;
|
|
20040
|
+
};
|
|
20041
|
+
// environments with maybe non-completely correct, but existent Promise
|
|
20042
|
+
} else if (Promise && Promise.resolve) {
|
|
20043
|
+
// Promise.resolve without an argument throws an error in LG WebOS 2
|
|
20044
|
+
promise = Promise.resolve(undefined);
|
|
20045
|
+
then = promise.then;
|
|
20046
|
+
notify = function () {
|
|
20047
|
+
then.call(promise, flush);
|
|
20048
|
+
};
|
|
20049
|
+
// Node.js without promises
|
|
20050
|
+
} else if (IS_NODE) {
|
|
20051
|
+
notify = function () {
|
|
20052
|
+
process.nextTick(flush);
|
|
20053
|
+
};
|
|
20054
|
+
// for other environments - macrotask based on:
|
|
20055
|
+
// - setImmediate
|
|
20056
|
+
// - MessageChannel
|
|
20057
|
+
// - window.postMessag
|
|
20058
|
+
// - onreadystatechange
|
|
20059
|
+
// - setTimeout
|
|
20060
|
+
} else {
|
|
20061
|
+
notify = function () {
|
|
20062
|
+
// strange IE + webpack dev server bug - use .call(global)
|
|
20063
|
+
macrotask.call(global, flush);
|
|
20064
|
+
};
|
|
20065
|
+
}
|
|
20066
|
+
}
|
|
20067
|
+
|
|
20068
|
+
module.exports = queueMicrotask || function (fn) {
|
|
20069
|
+
var task = { fn: fn, next: undefined };
|
|
20070
|
+
if (last) last.next = task;
|
|
20071
|
+
if (!head) {
|
|
20072
|
+
head = task;
|
|
20073
|
+
notify();
|
|
20074
|
+
} last = task;
|
|
20075
|
+
};
|
|
20076
|
+
|
|
20077
|
+
|
|
17230
20078
|
/***/ }),
|
|
17231
20079
|
|
|
17232
20080
|
/***/ "b577":
|
|
@@ -24409,6 +27257,25 @@ module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
24409
27257
|
|
|
24410
27258
|
module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M8.75 35.0005C7.71625 35.0005 6.875 34.1592 6.875 33.1255V9.37549C6.875 8.34174 7.71625 7.50049 8.75 7.50049H11.875V5.62549C11.875 5.28049 12.155 5.00049 12.5 5.00049C12.845 5.00049 13.125 5.28049 13.125 5.62549V7.50049H16.875V5.62549C16.875 5.28049 17.155 5.00049 17.5 5.00049C17.845 5.00049 18.125 5.28049 18.125 5.62549V7.50049H21.875V5.62549C21.875 5.28049 22.155 5.00049 22.5 5.00049C22.845 5.00049 23.125 5.28049 23.125 5.62549V7.50049H26.875V5.62549C26.875 5.28049 27.155 5.00049 27.5 5.00049C27.845 5.00049 28.125 5.28049 28.125 5.62549V7.50049H31.25C32.2838 7.50049 33.125 8.34174 33.125 9.37549V33.1255C33.125 34.1592 32.2838 35.0005 31.25 35.0005H8.75ZM8.75 8.75049C8.405 8.75049 8.125 9.03049 8.125 9.37549V33.1255C8.125 33.4705 8.405 33.7505 8.75 33.7505H31.25C31.595 33.7505 31.875 33.4705 31.875 33.1255V9.37549C31.875 9.03049 31.595 8.75049 31.25 8.75049H28.125V10.6255C28.125 10.9705 27.845 11.2505 27.5 11.2505C27.155 11.2505 26.875 10.9705 26.875 10.6255V8.75049H23.125V10.6255C23.125 10.9705 22.845 11.2505 22.5 11.2505C22.155 11.2505 21.875 10.9705 21.875 10.6255V8.75049H18.125V10.6255C18.125 10.9705 17.845 11.2505 17.5 11.2505C17.155 11.2505 16.875 10.9705 16.875 10.6255V8.75049H13.125V10.6255C13.125 10.9705 12.845 11.2505 12.5 11.2505C12.155 11.2505 11.875 10.9705 11.875 10.6255V8.75049H8.75Z\" fill=\"#3B414D\" class=\"primary\"></path><path d=\"M12.5 17.5005C12.155 17.5005 11.875 17.2205 11.875 16.8755C11.875 16.5305 12.155 16.2505 12.5 16.2505H27.5C27.845 16.2505 28.125 16.5305 28.125 16.8755C28.125 17.2205 27.845 17.5005 27.5 17.5005H12.5Z\" fill=\"#3B414D\" class=\"primary\"></path><path d=\"M12.5 21.2505C12.155 21.2505 11.875 20.9705 11.875 20.6255C11.875 20.2805 12.155 20.0005 12.5 20.0005H27.5C27.845 20.0005 28.125 20.2805 28.125 20.6255C28.125 20.9705 27.845 21.2505 27.5 21.2505H12.5Z\" fill=\"#3B414D\" class=\"primary\"></path><path d=\"M12.5 25.0005C12.155 25.0005 11.875 24.7205 11.875 24.3755C11.875 24.0305 12.155 23.7505 12.5 23.7505H27.5C27.845 23.7505 28.125 24.0305 28.125 24.3755C28.125 24.7205 27.845 25.0005 27.5 25.0005H12.5Z\" fill=\"#3B414D\" class=\"primary\"></path><path d=\"M12.5 28.7505C12.155 28.7505 11.875 28.4705 11.875 28.1255C11.875 27.7805 12.155 27.5005 12.5 27.5005H21.25C21.595 27.5005 21.875 27.7805 21.875 28.1255C21.875 28.4705 21.595 28.7505 21.25 28.7505H12.5Z\" fill=\"#3B414D\" class=\"primary\"></path></svg>"
|
|
24411
27259
|
|
|
27260
|
+
/***/ }),
|
|
27261
|
+
|
|
27262
|
+
/***/ "cdf9":
|
|
27263
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
27264
|
+
|
|
27265
|
+
var anObject = __webpack_require__("825a");
|
|
27266
|
+
var isObject = __webpack_require__("861d");
|
|
27267
|
+
var newPromiseCapability = __webpack_require__("f069");
|
|
27268
|
+
|
|
27269
|
+
module.exports = function (C, x) {
|
|
27270
|
+
anObject(C);
|
|
27271
|
+
if (isObject(x) && x.constructor === C) return x;
|
|
27272
|
+
var promiseCapability = newPromiseCapability.f(C);
|
|
27273
|
+
var resolve = promiseCapability.resolve;
|
|
27274
|
+
resolve(x);
|
|
27275
|
+
return promiseCapability.promise;
|
|
27276
|
+
};
|
|
27277
|
+
|
|
27278
|
+
|
|
24412
27279
|
/***/ }),
|
|
24413
27280
|
|
|
24414
27281
|
/***/ "ce2c":
|
|
@@ -24589,6 +27456,13 @@ module.exports = function (key, value) {
|
|
|
24589
27456
|
})));
|
|
24590
27457
|
|
|
24591
27458
|
|
|
27459
|
+
/***/ }),
|
|
27460
|
+
|
|
27461
|
+
/***/ "cf20":
|
|
27462
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
27463
|
+
|
|
27464
|
+
// extracted by mini-css-extract-plugin
|
|
27465
|
+
|
|
24592
27466
|
/***/ }),
|
|
24593
27467
|
|
|
24594
27468
|
/***/ "cf51":
|
|
@@ -26508,6 +29382,13 @@ if (DESCRIPTORS && typeof NativeSymbol == 'function' && (!('description' in Nati
|
|
|
26508
29382
|
})));
|
|
26509
29383
|
|
|
26510
29384
|
|
|
29385
|
+
/***/ }),
|
|
29386
|
+
|
|
29387
|
+
/***/ "e0cc":
|
|
29388
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
29389
|
+
|
|
29390
|
+
// extracted by mini-css-extract-plugin
|
|
29391
|
+
|
|
26511
29392
|
/***/ }),
|
|
26512
29393
|
|
|
26513
29394
|
/***/ "e117":
|
|
@@ -26741,6 +29622,19 @@ addToUnscopables('entries');
|
|
|
26741
29622
|
|
|
26742
29623
|
module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M20.9239 30.0593C20.8471 29.9825 20.7516 29.9269 20.6469 29.8982C20.5421 29.8695 20.4316 29.8686 20.3264 29.8956C20.2208 29.9228 20.1242 29.9771 20.0462 30.0532C19.9681 30.1293 19.9113 30.2245 19.8814 30.3293L18.7751 34.2043C18.7487 34.2972 18.7441 34.395 18.7618 34.49C18.7795 34.5849 18.8189 34.6745 18.8771 34.7517C18.9352 34.8288 19.0104 34.8915 19.0969 34.9346C19.1833 34.9778 19.2785 35.0004 19.3751 35.0006C19.4336 35.0008 19.4917 34.9924 19.5476 34.9756L23.4226 33.8693C23.5272 33.8393 23.6221 33.7826 23.698 33.7047C23.7739 33.6268 23.8282 33.5305 23.8555 33.4252C23.8827 33.3199 23.8821 33.2093 23.8535 33.1044C23.8249 32.9994 23.7695 32.9038 23.6926 32.8268L20.9239 30.0593Z\" fill=\"#3B414D\" class=\"primary\"></path><path d=\"M28.464 21.5365C28.3468 21.4193 28.1879 21.3535 28.0222 21.3535C27.8564 21.3535 27.6975 21.4193 27.5803 21.5365L21.3178 27.8002C21.2006 27.9174 21.1348 28.0764 21.1348 28.2421C21.1348 28.4078 21.2006 28.5668 21.3178 28.684L25.0678 32.434C25.185 32.5511 25.344 32.617 25.5097 32.617C25.6754 32.617 25.8343 32.5511 25.9516 32.434L32.214 26.1702C32.3312 26.053 32.397 25.8941 32.397 25.7284C32.397 25.5626 32.3312 25.4037 32.214 25.2865L28.464 21.5365Z\" fill=\"#3B414D\" class=\"primary\"></path><path d=\"M34.0401 19.7105C33.7293 19.4042 33.3609 19.1626 32.9562 18.9996C32.5515 18.8366 32.1185 18.7555 31.6822 18.761C31.2459 18.7665 30.815 18.8584 30.4145 19.0315C30.014 19.2045 29.6518 19.4553 29.3488 19.7693C29.2317 19.8865 29.1658 20.0454 29.1658 20.2111C29.1658 20.3769 29.2317 20.5358 29.3488 20.653L33.0988 24.403C33.1532 24.4548 33.2174 24.4953 33.2875 24.5221C33.3577 24.5489 33.4325 24.5616 33.5076 24.5593C33.7063 24.5596 33.8973 24.4825 34.0401 24.3443C34.6543 23.7297 34.9993 22.8963 34.9993 22.0274C34.9993 21.1585 34.6543 20.3251 34.0401 19.7105V19.7105Z\" fill=\"#3B414D\" class=\"primary\"></path><path d=\"M31.25 5.00049H8.75005C7.75549 5.00049 6.80167 5.39558 6.09841 6.09883C5.39515 6.80209 5.00006 7.75592 5.00006 8.75048L5.00006 26.8754C5.00006 27.87 5.39515 28.8238 6.09841 29.5271C6.80167 30.2303 7.75549 30.6254 8.75005 30.6254H16.25C16.5815 30.6254 16.8995 30.4937 17.1339 30.2593C17.3683 30.0249 17.5 29.7069 17.5 29.3754C17.5 29.0439 17.3683 28.726 17.1339 28.4915C16.8995 28.2571 16.5815 28.1254 16.25 28.1254H8.75005C8.41853 28.1254 8.10059 27.9937 7.86617 27.7593C7.63175 27.5249 7.50005 27.2069 7.50005 26.8754V11.5642C7.49989 11.5231 7.50785 11.4823 7.52348 11.4442C7.53911 11.4062 7.5621 11.3716 7.59114 11.3424C7.62017 11.3133 7.65468 11.2902 7.69268 11.2744C7.73067 11.2586 7.77141 11.2505 7.81255 11.2505H32.1875C32.2704 11.2505 32.3498 11.2834 32.4085 11.342C32.4671 11.4006 32.5 11.4801 32.5 11.563V15.6255C32.5 15.957 32.6317 16.2749 32.8661 16.5093C33.1005 16.7438 33.4185 16.8755 33.75 16.8755C34.0815 16.8755 34.3994 16.7438 34.6339 16.5093C34.8683 16.2749 35 15.957 35 15.6255V8.75048C35 7.75592 34.6049 6.80209 33.9016 6.09883C33.1984 5.39558 32.2445 5.00049 31.25 5.00049ZM10.4325 8.75048C10.3283 8.93967 10.1751 9.09742 9.98914 9.20728C9.80314 9.31714 9.59107 9.37509 9.37505 9.37509C9.15902 9.37509 8.94696 9.31714 8.76095 9.20728C8.57495 9.09742 8.42183 8.93967 8.31755 8.75048C8.19747 8.56365 8.13089 8.34749 8.12505 8.12548C8.12633 7.94879 8.16555 7.77445 8.24005 7.61423C8.33828 7.39507 8.69884 7.07784 8.69884 7.07784C8.90012 6.94683 9.13489 6.87657 9.37505 6.87548C9.59066 6.87772 9.80188 6.93665 9.9875 7.04635C10.1731 7.15606 10.3266 7.31268 10.4325 7.50048C10.5528 7.68722 10.6194 7.90344 10.625 8.12548C10.6192 8.34749 10.5526 8.56365 10.4325 8.75048ZM14.8075 8.75048C14.7033 8.93967 14.5501 9.09742 14.3641 9.20728C14.1781 9.31714 13.9661 9.37509 13.75 9.37509C13.534 9.37509 13.3219 9.31714 13.1359 9.20728C12.9499 9.09742 12.7968 8.93967 12.6925 8.75048C12.5725 8.56365 12.5059 8.34749 12.5 8.12548C12.5057 7.90344 12.5723 7.68722 12.6925 7.50048C12.7968 7.31129 12.9499 7.15354 13.1359 7.04368C13.3219 6.93382 13.534 6.87586 13.75 6.87586C13.9661 6.87586 14.1781 6.93382 14.3641 7.04368C14.5501 7.15354 14.7033 7.31129 14.8075 7.50048C14.9278 7.68722 14.9944 7.90344 15 8.12548C14.9942 8.34749 14.9276 8.56365 14.8075 8.75048ZM19.1825 8.75048C19.0782 8.93967 18.9251 9.09742 18.7391 9.20728C18.5531 9.31714 18.341 9.37509 18.125 9.37509C17.909 9.37509 17.6969 9.31714 17.5109 9.20728C17.3249 9.09742 17.1718 8.93967 17.0675 8.75048C16.9474 8.56365 16.8809 8.34749 16.875 8.12548C16.8807 7.90344 16.9473 7.68722 17.0675 7.50048C17.1718 7.31129 17.3249 7.15354 17.5109 7.04368C17.6969 6.93382 17.909 6.87586 18.125 6.87586C18.341 6.87586 18.5531 6.93382 18.7391 7.04368C18.9251 7.15354 19.0782 7.31129 19.1825 7.50048C19.3028 7.68722 19.3694 7.90344 19.375 8.12548C19.3692 8.34749 19.3026 8.56365 19.1825 8.75048Z\" fill=\"#3B414D\" class=\"primary\"></path><path d=\"M10.4325 8.75048C10.3283 8.93967 10.1751 9.09742 9.98914 9.20728C9.80314 9.31714 9.59107 9.37509 9.37505 9.37509C9.15902 9.37509 8.94696 9.31714 8.76095 9.20728C8.57495 9.09742 8.42183 8.93967 8.31755 8.75048C8.19747 8.56365 8.13089 8.34749 8.12505 8.12548C8.12633 7.94879 8.16555 7.77445 8.24005 7.61423C8.33828 7.39507 8.69884 7.07784 8.69884 7.07784C8.90012 6.94683 9.13489 6.87657 9.37505 6.87548C9.59066 6.87772 9.80188 6.93665 9.9875 7.04635C10.1731 7.15606 10.3266 7.31268 10.4325 7.50048C10.5528 7.68722 10.6194 7.90344 10.625 8.12548C10.6192 8.34749 10.5526 8.56365 10.4325 8.75048Z\" fill=\"#3B414D\" class=\"primary\"></path><path d=\"M14.8075 8.75048C14.7033 8.93967 14.5501 9.09742 14.3641 9.20728C14.1781 9.31714 13.9661 9.37509 13.75 9.37509C13.534 9.37509 13.3219 9.31714 13.1359 9.20728C12.9499 9.09742 12.7968 8.93967 12.6925 8.75048C12.5725 8.56365 12.5059 8.34749 12.5 8.12548C12.5057 7.90344 12.5723 7.68722 12.6925 7.50048C12.7968 7.31129 12.9499 7.15354 13.1359 7.04368C13.3219 6.93382 13.534 6.87586 13.75 6.87586C13.9661 6.87586 14.1781 6.93382 14.3641 7.04368C14.5501 7.15354 14.7033 7.31129 14.8075 7.50048C14.9278 7.68722 14.9944 7.90344 15 8.12548C14.9942 8.34749 14.9276 8.56365 14.8075 8.75048Z\" fill=\"#3B414D\" class=\"primary\"></path><path d=\"M19.1825 8.75048C19.0782 8.93967 18.9251 9.09742 18.7391 9.20728C18.5531 9.31714 18.341 9.37509 18.125 9.37509C17.909 9.37509 17.6969 9.31714 17.5109 9.20728C17.3249 9.09742 17.1718 8.93967 17.0675 8.75048C16.9474 8.56365 16.8809 8.34749 16.875 8.12548C16.8807 7.90344 16.9473 7.68722 17.0675 7.50048C17.1718 7.31129 17.3249 7.15354 17.5109 7.04368C17.6969 6.93382 17.909 6.87586 18.125 6.87586C18.341 6.87586 18.5531 6.93382 18.7391 7.04368C18.9251 7.15354 19.0782 7.31129 19.1825 7.50048C19.3028 7.68722 19.3694 7.90344 19.375 8.12548C19.3692 8.34749 19.3026 8.56365 19.1825 8.75048Z\" fill=\"#3B414D\" class=\"primary\"></path></svg>"
|
|
26743
29624
|
|
|
29625
|
+
/***/ }),
|
|
29626
|
+
|
|
29627
|
+
/***/ "e2cc":
|
|
29628
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
29629
|
+
|
|
29630
|
+
var redefine = __webpack_require__("6eeb");
|
|
29631
|
+
|
|
29632
|
+
module.exports = function (target, src, options) {
|
|
29633
|
+
for (var key in src) redefine(target, key, src[key], options);
|
|
29634
|
+
return target;
|
|
29635
|
+
};
|
|
29636
|
+
|
|
29637
|
+
|
|
26744
29638
|
/***/ }),
|
|
26745
29639
|
|
|
26746
29640
|
/***/ "e3aa":
|
|
@@ -26810,6 +29704,20 @@ exports.f = wellKnownSymbol;
|
|
|
26810
29704
|
|
|
26811
29705
|
module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M20 5.00049C17.0333 5.00049 14.1332 5.88022 11.6665 7.52844C9.19971 9.17666 7.27713 11.5193 6.14181 14.2602C5.0065 17.0011 4.70945 20.0171 5.28823 22.9268C5.86701 25.8366 7.29562 28.5093 9.3934 30.6071C11.4912 32.7049 14.1639 34.1335 17.0737 34.7123C19.9834 35.291 22.9994 34.994 25.7403 33.8587C28.4811 32.7234 30.8238 30.8008 32.472 28.334C34.1203 25.8673 35 22.9672 35 20.0005C34.9957 16.0236 33.414 12.2107 30.6019 9.39864C27.7897 6.58652 23.9769 5.00479 20 5.00049V5.00049ZM20.3125 11.2505C20.6833 11.2505 21.0459 11.3605 21.3542 11.5665C21.6625 11.7725 21.9029 12.0653 22.0448 12.408C22.1867 12.7506 22.2238 13.1276 22.1515 13.4913C22.0791 13.855 21.9006 14.1891 21.6383 14.4513C21.3761 14.7135 21.042 14.8921 20.6783 14.9645C20.3146 15.0368 19.9376 14.9997 19.595 14.8578C19.2524 14.7158 18.9595 14.4755 18.7535 14.1672C18.5475 13.8588 18.4375 13.4963 18.4375 13.1255C18.4375 12.6282 18.635 12.1513 18.9867 11.7997C19.3383 11.448 19.8152 11.2505 20.3125 11.2505ZM23.125 28.1255H18.125C17.7935 28.1255 17.4755 27.9938 17.2411 27.7594C17.0067 27.5249 16.875 27.207 16.875 26.8755C16.875 26.544 17.0067 26.226 17.2411 25.9916C17.4755 25.7572 17.7935 25.6255 18.125 25.6255H19.0625C19.1454 25.6255 19.2249 25.5926 19.2835 25.534C19.3421 25.4753 19.375 25.3959 19.375 25.313V19.688C19.375 19.6051 19.3421 19.5256 19.2835 19.467C19.2249 19.4084 19.1454 19.3755 19.0625 19.3755H18.125C17.7935 19.3755 17.4755 19.2438 17.2411 19.0094C17.0067 18.7749 16.875 18.457 16.875 18.1255C16.875 17.794 17.0067 17.476 17.2411 17.2416C17.4755 17.0072 17.7935 16.8755 18.125 16.8755H19.375C20.038 16.8755 20.6739 17.1389 21.1428 17.6077C21.6116 18.0766 21.875 18.7124 21.875 19.3755V25.313C21.875 25.3959 21.9079 25.4753 21.9665 25.534C22.0251 25.5926 22.1046 25.6255 22.1875 25.6255H23.125C23.4565 25.6255 23.7745 25.7572 24.0089 25.9916C24.2433 26.226 24.375 26.544 24.375 26.8755C24.375 27.207 24.2433 27.5249 24.0089 27.7594C23.7745 27.9938 23.4565 28.1255 23.125 28.1255Z\" fill=\"#3B414D\" class=\"primary\"></path></svg>"
|
|
26812
29706
|
|
|
29707
|
+
/***/ }),
|
|
29708
|
+
|
|
29709
|
+
/***/ "e667":
|
|
29710
|
+
/***/ (function(module, exports) {
|
|
29711
|
+
|
|
29712
|
+
module.exports = function (exec) {
|
|
29713
|
+
try {
|
|
29714
|
+
return { error: false, value: exec() };
|
|
29715
|
+
} catch (error) {
|
|
29716
|
+
return { error: true, value: error };
|
|
29717
|
+
}
|
|
29718
|
+
};
|
|
29719
|
+
|
|
29720
|
+
|
|
26813
29721
|
/***/ }),
|
|
26814
29722
|
|
|
26815
29723
|
/***/ "e6a0":
|
|
@@ -26817,6 +29725,395 @@ module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
26817
29725
|
|
|
26818
29726
|
module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M19.8222 31.9333C14.8875 31.9333 9.52286 30.5671 6.47305 28.5335C4.31694 27.0948 4.52567 22.9763 7.11301 15.943C7.93671 13.6919 9.12788 11.6133 10.654 9.7634C11.549 8.68472 12.8639 8.06726 14.2626 8.06726H18.1261C20.7109 8.06726 22.8133 10.1696 22.8133 12.7545C22.8133 15.3393 20.7109 17.4417 18.1261 17.4417H15.7437C15.135 18.1941 14.7075 19.0828 14.495 20.024C15.5312 19.3528 16.5937 19.0141 17.6623 19.0141C18.8548 19.0141 20.0372 19.4378 21.1859 20.274C22.0096 17.2742 24.7956 15.0943 27.9617 15.0918C29.8453 15.0918 31.609 15.8205 32.9351 17.1454C34.265 18.4716 34.9987 20.2365 35 22.1151C35.0012 23.82 34.3863 25.4624 33.2676 26.7461C33.2526 26.7661 33.2376 26.7861 33.2214 26.8048C30.409 30.1109 25.6493 31.9333 19.8222 31.9333ZM14.2651 9.94214C13.4251 9.94214 12.6352 10.3134 12.1002 10.9596C10.709 12.642 9.6241 14.5369 8.87415 16.588C6.4143 23.2738 6.5593 26.3361 7.51424 26.9723C10.3153 28.8397 15.0688 30.0584 19.6235 30.0759H19.731C24.9994 30.0759 29.2604 28.5072 31.7315 25.6599C31.754 25.6274 31.779 25.5962 31.8065 25.5662C32.6589 24.6175 33.1289 23.3913 33.1264 22.1151C33.1251 20.7377 32.5877 19.444 31.6127 18.4704C30.639 17.4992 29.3454 16.9642 27.9704 16.9642C25.1219 16.9679 22.812 19.2828 22.8145 22.1264C22.8145 22.5113 22.5845 22.8526 22.2283 22.9976C22.1158 23.0426 21.9983 23.0663 21.8771 23.0663C21.6233 23.0663 21.3771 22.9613 21.2009 22.7776C19.9972 21.5239 18.8073 20.8889 17.6636 20.8889C16.5149 20.8889 15.3212 21.5252 14.1151 22.7788C13.9388 22.9613 13.6926 23.0663 13.4401 23.0663C13.3351 23.0663 13.2314 23.0488 13.1326 23.0138C12.7902 22.8951 12.5439 22.5838 12.5077 22.2226C12.3014 20.184 12.8864 18.1104 14.1176 16.478C13.2826 15.0856 13.4851 13.2582 14.6525 12.0908C14.83 11.9133 15.065 11.8158 15.3162 11.8158C15.5662 11.8158 15.8012 11.9133 15.9787 12.0895C16.1562 12.267 16.2537 12.502 16.2537 12.7532C16.2537 13.0032 16.1562 13.2394 15.98 13.4157C15.405 13.9906 15.3237 14.8981 15.7587 15.5655H18.1286C19.6797 15.5655 20.9409 14.3044 20.9409 12.7532C20.9409 11.2021 19.6797 9.94089 18.1286 9.94089H14.2651V9.94214Z\" fill=\"#3B414D\" class=\"primary\"></path></svg>"
|
|
26819
29727
|
|
|
29728
|
+
/***/ }),
|
|
29729
|
+
|
|
29730
|
+
/***/ "e6cf":
|
|
29731
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
29732
|
+
|
|
29733
|
+
"use strict";
|
|
29734
|
+
|
|
29735
|
+
var $ = __webpack_require__("23e7");
|
|
29736
|
+
var IS_PURE = __webpack_require__("c430");
|
|
29737
|
+
var global = __webpack_require__("da84");
|
|
29738
|
+
var getBuiltIn = __webpack_require__("d066");
|
|
29739
|
+
var NativePromise = __webpack_require__("fea9");
|
|
29740
|
+
var redefine = __webpack_require__("6eeb");
|
|
29741
|
+
var redefineAll = __webpack_require__("e2cc");
|
|
29742
|
+
var setToStringTag = __webpack_require__("d44e");
|
|
29743
|
+
var setSpecies = __webpack_require__("2626");
|
|
29744
|
+
var isObject = __webpack_require__("861d");
|
|
29745
|
+
var aFunction = __webpack_require__("1c0b");
|
|
29746
|
+
var anInstance = __webpack_require__("19aa");
|
|
29747
|
+
var inspectSource = __webpack_require__("8925");
|
|
29748
|
+
var iterate = __webpack_require__("2266");
|
|
29749
|
+
var checkCorrectnessOfIteration = __webpack_require__("1c7e");
|
|
29750
|
+
var speciesConstructor = __webpack_require__("4840");
|
|
29751
|
+
var task = __webpack_require__("2cf4").set;
|
|
29752
|
+
var microtask = __webpack_require__("b575");
|
|
29753
|
+
var promiseResolve = __webpack_require__("cdf9");
|
|
29754
|
+
var hostReportErrors = __webpack_require__("44de");
|
|
29755
|
+
var newPromiseCapabilityModule = __webpack_require__("f069");
|
|
29756
|
+
var perform = __webpack_require__("e667");
|
|
29757
|
+
var InternalStateModule = __webpack_require__("69f3");
|
|
29758
|
+
var isForced = __webpack_require__("94ca");
|
|
29759
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
29760
|
+
var IS_NODE = __webpack_require__("605d");
|
|
29761
|
+
var V8_VERSION = __webpack_require__("2d00");
|
|
29762
|
+
|
|
29763
|
+
var SPECIES = wellKnownSymbol('species');
|
|
29764
|
+
var PROMISE = 'Promise';
|
|
29765
|
+
var getInternalState = InternalStateModule.get;
|
|
29766
|
+
var setInternalState = InternalStateModule.set;
|
|
29767
|
+
var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
|
|
29768
|
+
var PromiseConstructor = NativePromise;
|
|
29769
|
+
var TypeError = global.TypeError;
|
|
29770
|
+
var document = global.document;
|
|
29771
|
+
var process = global.process;
|
|
29772
|
+
var $fetch = getBuiltIn('fetch');
|
|
29773
|
+
var newPromiseCapability = newPromiseCapabilityModule.f;
|
|
29774
|
+
var newGenericPromiseCapability = newPromiseCapability;
|
|
29775
|
+
var DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);
|
|
29776
|
+
var NATIVE_REJECTION_EVENT = typeof PromiseRejectionEvent == 'function';
|
|
29777
|
+
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
29778
|
+
var REJECTION_HANDLED = 'rejectionhandled';
|
|
29779
|
+
var PENDING = 0;
|
|
29780
|
+
var FULFILLED = 1;
|
|
29781
|
+
var REJECTED = 2;
|
|
29782
|
+
var HANDLED = 1;
|
|
29783
|
+
var UNHANDLED = 2;
|
|
29784
|
+
var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
29785
|
+
|
|
29786
|
+
var FORCED = isForced(PROMISE, function () {
|
|
29787
|
+
var GLOBAL_CORE_JS_PROMISE = inspectSource(PromiseConstructor) !== String(PromiseConstructor);
|
|
29788
|
+
if (!GLOBAL_CORE_JS_PROMISE) {
|
|
29789
|
+
// V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
|
|
29790
|
+
// https://bugs.chromium.org/p/chromium/issues/detail?id=830565
|
|
29791
|
+
// We can't detect it synchronously, so just check versions
|
|
29792
|
+
if (V8_VERSION === 66) return true;
|
|
29793
|
+
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
29794
|
+
if (!IS_NODE && !NATIVE_REJECTION_EVENT) return true;
|
|
29795
|
+
}
|
|
29796
|
+
// We need Promise#finally in the pure version for preventing prototype pollution
|
|
29797
|
+
if (IS_PURE && !PromiseConstructor.prototype['finally']) return true;
|
|
29798
|
+
// We can't use @@species feature detection in V8 since it causes
|
|
29799
|
+
// deoptimization and performance degradation
|
|
29800
|
+
// https://github.com/zloirock/core-js/issues/679
|
|
29801
|
+
if (V8_VERSION >= 51 && /native code/.test(PromiseConstructor)) return false;
|
|
29802
|
+
// Detect correctness of subclassing with @@species support
|
|
29803
|
+
var promise = PromiseConstructor.resolve(1);
|
|
29804
|
+
var FakePromise = function (exec) {
|
|
29805
|
+
exec(function () { /* empty */ }, function () { /* empty */ });
|
|
29806
|
+
};
|
|
29807
|
+
var constructor = promise.constructor = {};
|
|
29808
|
+
constructor[SPECIES] = FakePromise;
|
|
29809
|
+
return !(promise.then(function () { /* empty */ }) instanceof FakePromise);
|
|
29810
|
+
});
|
|
29811
|
+
|
|
29812
|
+
var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
|
|
29813
|
+
PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
|
|
29814
|
+
});
|
|
29815
|
+
|
|
29816
|
+
// helpers
|
|
29817
|
+
var isThenable = function (it) {
|
|
29818
|
+
var then;
|
|
29819
|
+
return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
|
|
29820
|
+
};
|
|
29821
|
+
|
|
29822
|
+
var notify = function (state, isReject) {
|
|
29823
|
+
if (state.notified) return;
|
|
29824
|
+
state.notified = true;
|
|
29825
|
+
var chain = state.reactions;
|
|
29826
|
+
microtask(function () {
|
|
29827
|
+
var value = state.value;
|
|
29828
|
+
var ok = state.state == FULFILLED;
|
|
29829
|
+
var index = 0;
|
|
29830
|
+
// variable length - can't use forEach
|
|
29831
|
+
while (chain.length > index) {
|
|
29832
|
+
var reaction = chain[index++];
|
|
29833
|
+
var handler = ok ? reaction.ok : reaction.fail;
|
|
29834
|
+
var resolve = reaction.resolve;
|
|
29835
|
+
var reject = reaction.reject;
|
|
29836
|
+
var domain = reaction.domain;
|
|
29837
|
+
var result, then, exited;
|
|
29838
|
+
try {
|
|
29839
|
+
if (handler) {
|
|
29840
|
+
if (!ok) {
|
|
29841
|
+
if (state.rejection === UNHANDLED) onHandleUnhandled(state);
|
|
29842
|
+
state.rejection = HANDLED;
|
|
29843
|
+
}
|
|
29844
|
+
if (handler === true) result = value;
|
|
29845
|
+
else {
|
|
29846
|
+
if (domain) domain.enter();
|
|
29847
|
+
result = handler(value); // can throw
|
|
29848
|
+
if (domain) {
|
|
29849
|
+
domain.exit();
|
|
29850
|
+
exited = true;
|
|
29851
|
+
}
|
|
29852
|
+
}
|
|
29853
|
+
if (result === reaction.promise) {
|
|
29854
|
+
reject(TypeError('Promise-chain cycle'));
|
|
29855
|
+
} else if (then = isThenable(result)) {
|
|
29856
|
+
then.call(result, resolve, reject);
|
|
29857
|
+
} else resolve(result);
|
|
29858
|
+
} else reject(value);
|
|
29859
|
+
} catch (error) {
|
|
29860
|
+
if (domain && !exited) domain.exit();
|
|
29861
|
+
reject(error);
|
|
29862
|
+
}
|
|
29863
|
+
}
|
|
29864
|
+
state.reactions = [];
|
|
29865
|
+
state.notified = false;
|
|
29866
|
+
if (isReject && !state.rejection) onUnhandled(state);
|
|
29867
|
+
});
|
|
29868
|
+
};
|
|
29869
|
+
|
|
29870
|
+
var dispatchEvent = function (name, promise, reason) {
|
|
29871
|
+
var event, handler;
|
|
29872
|
+
if (DISPATCH_EVENT) {
|
|
29873
|
+
event = document.createEvent('Event');
|
|
29874
|
+
event.promise = promise;
|
|
29875
|
+
event.reason = reason;
|
|
29876
|
+
event.initEvent(name, false, true);
|
|
29877
|
+
global.dispatchEvent(event);
|
|
29878
|
+
} else event = { promise: promise, reason: reason };
|
|
29879
|
+
if (!NATIVE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);
|
|
29880
|
+
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
29881
|
+
};
|
|
29882
|
+
|
|
29883
|
+
var onUnhandled = function (state) {
|
|
29884
|
+
task.call(global, function () {
|
|
29885
|
+
var promise = state.facade;
|
|
29886
|
+
var value = state.value;
|
|
29887
|
+
var IS_UNHANDLED = isUnhandled(state);
|
|
29888
|
+
var result;
|
|
29889
|
+
if (IS_UNHANDLED) {
|
|
29890
|
+
result = perform(function () {
|
|
29891
|
+
if (IS_NODE) {
|
|
29892
|
+
process.emit('unhandledRejection', value, promise);
|
|
29893
|
+
} else dispatchEvent(UNHANDLED_REJECTION, promise, value);
|
|
29894
|
+
});
|
|
29895
|
+
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
|
|
29896
|
+
state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
|
|
29897
|
+
if (result.error) throw result.value;
|
|
29898
|
+
}
|
|
29899
|
+
});
|
|
29900
|
+
};
|
|
29901
|
+
|
|
29902
|
+
var isUnhandled = function (state) {
|
|
29903
|
+
return state.rejection !== HANDLED && !state.parent;
|
|
29904
|
+
};
|
|
29905
|
+
|
|
29906
|
+
var onHandleUnhandled = function (state) {
|
|
29907
|
+
task.call(global, function () {
|
|
29908
|
+
var promise = state.facade;
|
|
29909
|
+
if (IS_NODE) {
|
|
29910
|
+
process.emit('rejectionHandled', promise);
|
|
29911
|
+
} else dispatchEvent(REJECTION_HANDLED, promise, state.value);
|
|
29912
|
+
});
|
|
29913
|
+
};
|
|
29914
|
+
|
|
29915
|
+
var bind = function (fn, state, unwrap) {
|
|
29916
|
+
return function (value) {
|
|
29917
|
+
fn(state, value, unwrap);
|
|
29918
|
+
};
|
|
29919
|
+
};
|
|
29920
|
+
|
|
29921
|
+
var internalReject = function (state, value, unwrap) {
|
|
29922
|
+
if (state.done) return;
|
|
29923
|
+
state.done = true;
|
|
29924
|
+
if (unwrap) state = unwrap;
|
|
29925
|
+
state.value = value;
|
|
29926
|
+
state.state = REJECTED;
|
|
29927
|
+
notify(state, true);
|
|
29928
|
+
};
|
|
29929
|
+
|
|
29930
|
+
var internalResolve = function (state, value, unwrap) {
|
|
29931
|
+
if (state.done) return;
|
|
29932
|
+
state.done = true;
|
|
29933
|
+
if (unwrap) state = unwrap;
|
|
29934
|
+
try {
|
|
29935
|
+
if (state.facade === value) throw TypeError("Promise can't be resolved itself");
|
|
29936
|
+
var then = isThenable(value);
|
|
29937
|
+
if (then) {
|
|
29938
|
+
microtask(function () {
|
|
29939
|
+
var wrapper = { done: false };
|
|
29940
|
+
try {
|
|
29941
|
+
then.call(value,
|
|
29942
|
+
bind(internalResolve, wrapper, state),
|
|
29943
|
+
bind(internalReject, wrapper, state)
|
|
29944
|
+
);
|
|
29945
|
+
} catch (error) {
|
|
29946
|
+
internalReject(wrapper, error, state);
|
|
29947
|
+
}
|
|
29948
|
+
});
|
|
29949
|
+
} else {
|
|
29950
|
+
state.value = value;
|
|
29951
|
+
state.state = FULFILLED;
|
|
29952
|
+
notify(state, false);
|
|
29953
|
+
}
|
|
29954
|
+
} catch (error) {
|
|
29955
|
+
internalReject({ done: false }, error, state);
|
|
29956
|
+
}
|
|
29957
|
+
};
|
|
29958
|
+
|
|
29959
|
+
// constructor polyfill
|
|
29960
|
+
if (FORCED) {
|
|
29961
|
+
// 25.4.3.1 Promise(executor)
|
|
29962
|
+
PromiseConstructor = function Promise(executor) {
|
|
29963
|
+
anInstance(this, PromiseConstructor, PROMISE);
|
|
29964
|
+
aFunction(executor);
|
|
29965
|
+
Internal.call(this);
|
|
29966
|
+
var state = getInternalState(this);
|
|
29967
|
+
try {
|
|
29968
|
+
executor(bind(internalResolve, state), bind(internalReject, state));
|
|
29969
|
+
} catch (error) {
|
|
29970
|
+
internalReject(state, error);
|
|
29971
|
+
}
|
|
29972
|
+
};
|
|
29973
|
+
// eslint-disable-next-line no-unused-vars
|
|
29974
|
+
Internal = function Promise(executor) {
|
|
29975
|
+
setInternalState(this, {
|
|
29976
|
+
type: PROMISE,
|
|
29977
|
+
done: false,
|
|
29978
|
+
notified: false,
|
|
29979
|
+
parent: false,
|
|
29980
|
+
reactions: [],
|
|
29981
|
+
rejection: false,
|
|
29982
|
+
state: PENDING,
|
|
29983
|
+
value: undefined
|
|
29984
|
+
});
|
|
29985
|
+
};
|
|
29986
|
+
Internal.prototype = redefineAll(PromiseConstructor.prototype, {
|
|
29987
|
+
// `Promise.prototype.then` method
|
|
29988
|
+
// https://tc39.github.io/ecma262/#sec-promise.prototype.then
|
|
29989
|
+
then: function then(onFulfilled, onRejected) {
|
|
29990
|
+
var state = getInternalPromiseState(this);
|
|
29991
|
+
var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
|
|
29992
|
+
reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
|
|
29993
|
+
reaction.fail = typeof onRejected == 'function' && onRejected;
|
|
29994
|
+
reaction.domain = IS_NODE ? process.domain : undefined;
|
|
29995
|
+
state.parent = true;
|
|
29996
|
+
state.reactions.push(reaction);
|
|
29997
|
+
if (state.state != PENDING) notify(state, false);
|
|
29998
|
+
return reaction.promise;
|
|
29999
|
+
},
|
|
30000
|
+
// `Promise.prototype.catch` method
|
|
30001
|
+
// https://tc39.github.io/ecma262/#sec-promise.prototype.catch
|
|
30002
|
+
'catch': function (onRejected) {
|
|
30003
|
+
return this.then(undefined, onRejected);
|
|
30004
|
+
}
|
|
30005
|
+
});
|
|
30006
|
+
OwnPromiseCapability = function () {
|
|
30007
|
+
var promise = new Internal();
|
|
30008
|
+
var state = getInternalState(promise);
|
|
30009
|
+
this.promise = promise;
|
|
30010
|
+
this.resolve = bind(internalResolve, state);
|
|
30011
|
+
this.reject = bind(internalReject, state);
|
|
30012
|
+
};
|
|
30013
|
+
newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
|
|
30014
|
+
return C === PromiseConstructor || C === PromiseWrapper
|
|
30015
|
+
? new OwnPromiseCapability(C)
|
|
30016
|
+
: newGenericPromiseCapability(C);
|
|
30017
|
+
};
|
|
30018
|
+
|
|
30019
|
+
if (!IS_PURE && typeof NativePromise == 'function') {
|
|
30020
|
+
nativeThen = NativePromise.prototype.then;
|
|
30021
|
+
|
|
30022
|
+
// wrap native Promise#then for native async functions
|
|
30023
|
+
redefine(NativePromise.prototype, 'then', function then(onFulfilled, onRejected) {
|
|
30024
|
+
var that = this;
|
|
30025
|
+
return new PromiseConstructor(function (resolve, reject) {
|
|
30026
|
+
nativeThen.call(that, resolve, reject);
|
|
30027
|
+
}).then(onFulfilled, onRejected);
|
|
30028
|
+
// https://github.com/zloirock/core-js/issues/640
|
|
30029
|
+
}, { unsafe: true });
|
|
30030
|
+
|
|
30031
|
+
// wrap fetch result
|
|
30032
|
+
if (typeof $fetch == 'function') $({ global: true, enumerable: true, forced: true }, {
|
|
30033
|
+
// eslint-disable-next-line no-unused-vars
|
|
30034
|
+
fetch: function fetch(input /* , init */) {
|
|
30035
|
+
return promiseResolve(PromiseConstructor, $fetch.apply(global, arguments));
|
|
30036
|
+
}
|
|
30037
|
+
});
|
|
30038
|
+
}
|
|
30039
|
+
}
|
|
30040
|
+
|
|
30041
|
+
$({ global: true, wrap: true, forced: FORCED }, {
|
|
30042
|
+
Promise: PromiseConstructor
|
|
30043
|
+
});
|
|
30044
|
+
|
|
30045
|
+
setToStringTag(PromiseConstructor, PROMISE, false, true);
|
|
30046
|
+
setSpecies(PROMISE);
|
|
30047
|
+
|
|
30048
|
+
PromiseWrapper = getBuiltIn(PROMISE);
|
|
30049
|
+
|
|
30050
|
+
// statics
|
|
30051
|
+
$({ target: PROMISE, stat: true, forced: FORCED }, {
|
|
30052
|
+
// `Promise.reject` method
|
|
30053
|
+
// https://tc39.github.io/ecma262/#sec-promise.reject
|
|
30054
|
+
reject: function reject(r) {
|
|
30055
|
+
var capability = newPromiseCapability(this);
|
|
30056
|
+
capability.reject.call(undefined, r);
|
|
30057
|
+
return capability.promise;
|
|
30058
|
+
}
|
|
30059
|
+
});
|
|
30060
|
+
|
|
30061
|
+
$({ target: PROMISE, stat: true, forced: IS_PURE || FORCED }, {
|
|
30062
|
+
// `Promise.resolve` method
|
|
30063
|
+
// https://tc39.github.io/ecma262/#sec-promise.resolve
|
|
30064
|
+
resolve: function resolve(x) {
|
|
30065
|
+
return promiseResolve(IS_PURE && this === PromiseWrapper ? PromiseConstructor : this, x);
|
|
30066
|
+
}
|
|
30067
|
+
});
|
|
30068
|
+
|
|
30069
|
+
$({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
|
|
30070
|
+
// `Promise.all` method
|
|
30071
|
+
// https://tc39.github.io/ecma262/#sec-promise.all
|
|
30072
|
+
all: function all(iterable) {
|
|
30073
|
+
var C = this;
|
|
30074
|
+
var capability = newPromiseCapability(C);
|
|
30075
|
+
var resolve = capability.resolve;
|
|
30076
|
+
var reject = capability.reject;
|
|
30077
|
+
var result = perform(function () {
|
|
30078
|
+
var $promiseResolve = aFunction(C.resolve);
|
|
30079
|
+
var values = [];
|
|
30080
|
+
var counter = 0;
|
|
30081
|
+
var remaining = 1;
|
|
30082
|
+
iterate(iterable, function (promise) {
|
|
30083
|
+
var index = counter++;
|
|
30084
|
+
var alreadyCalled = false;
|
|
30085
|
+
values.push(undefined);
|
|
30086
|
+
remaining++;
|
|
30087
|
+
$promiseResolve.call(C, promise).then(function (value) {
|
|
30088
|
+
if (alreadyCalled) return;
|
|
30089
|
+
alreadyCalled = true;
|
|
30090
|
+
values[index] = value;
|
|
30091
|
+
--remaining || resolve(values);
|
|
30092
|
+
}, reject);
|
|
30093
|
+
});
|
|
30094
|
+
--remaining || resolve(values);
|
|
30095
|
+
});
|
|
30096
|
+
if (result.error) reject(result.value);
|
|
30097
|
+
return capability.promise;
|
|
30098
|
+
},
|
|
30099
|
+
// `Promise.race` method
|
|
30100
|
+
// https://tc39.github.io/ecma262/#sec-promise.race
|
|
30101
|
+
race: function race(iterable) {
|
|
30102
|
+
var C = this;
|
|
30103
|
+
var capability = newPromiseCapability(C);
|
|
30104
|
+
var reject = capability.reject;
|
|
30105
|
+
var result = perform(function () {
|
|
30106
|
+
var $promiseResolve = aFunction(C.resolve);
|
|
30107
|
+
iterate(iterable, function (promise) {
|
|
30108
|
+
$promiseResolve.call(C, promise).then(capability.resolve, reject);
|
|
30109
|
+
});
|
|
30110
|
+
});
|
|
30111
|
+
if (result.error) reject(result.value);
|
|
30112
|
+
return capability.promise;
|
|
30113
|
+
}
|
|
30114
|
+
});
|
|
30115
|
+
|
|
30116
|
+
|
|
26820
30117
|
/***/ }),
|
|
26821
30118
|
|
|
26822
30119
|
/***/ "e759":
|
|
@@ -27447,6 +30744,32 @@ module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
27447
30744
|
/* unused harmony reexport * */
|
|
27448
30745
|
|
|
27449
30746
|
|
|
30747
|
+
/***/ }),
|
|
30748
|
+
|
|
30749
|
+
/***/ "f069":
|
|
30750
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
30751
|
+
|
|
30752
|
+
"use strict";
|
|
30753
|
+
|
|
30754
|
+
var aFunction = __webpack_require__("1c0b");
|
|
30755
|
+
|
|
30756
|
+
var PromiseCapability = function (C) {
|
|
30757
|
+
var resolve, reject;
|
|
30758
|
+
this.promise = new C(function ($$resolve, $$reject) {
|
|
30759
|
+
if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
|
|
30760
|
+
resolve = $$resolve;
|
|
30761
|
+
reject = $$reject;
|
|
30762
|
+
});
|
|
30763
|
+
this.resolve = aFunction(resolve);
|
|
30764
|
+
this.reject = aFunction(reject);
|
|
30765
|
+
};
|
|
30766
|
+
|
|
30767
|
+
// 25.4.1.5 NewPromiseCapability(C)
|
|
30768
|
+
module.exports.f = function (C) {
|
|
30769
|
+
return new PromiseCapability(C);
|
|
30770
|
+
};
|
|
30771
|
+
|
|
30772
|
+
|
|
27450
30773
|
/***/ }),
|
|
27451
30774
|
|
|
27452
30775
|
/***/ "f1ca":
|
|
@@ -27715,6 +31038,13 @@ module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
27715
31038
|
|
|
27716
31039
|
/***/ }),
|
|
27717
31040
|
|
|
31041
|
+
/***/ "f4b9":
|
|
31042
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
31043
|
+
|
|
31044
|
+
// extracted by mini-css-extract-plugin
|
|
31045
|
+
|
|
31046
|
+
/***/ }),
|
|
31047
|
+
|
|
27718
31048
|
/***/ "f4e3":
|
|
27719
31049
|
/***/ (function(module, exports, __webpack_require__) {
|
|
27720
31050
|
|
|
@@ -28109,6 +31439,7 @@ __webpack_require__.d(__webpack_exports__, "unnnicChartRainbow", function() { re
|
|
|
28109
31439
|
__webpack_require__.d(__webpack_exports__, "unnnicTextEditor", function() { return /* reexport */ unnnicTextEditor; });
|
|
28110
31440
|
__webpack_require__.d(__webpack_exports__, "unnnicMoodRating", function() { return /* reexport */ unnnicMoodRating; });
|
|
28111
31441
|
__webpack_require__.d(__webpack_exports__, "unnnicStarRating", function() { return /* reexport */ unnnicStarRating; });
|
|
31442
|
+
__webpack_require__.d(__webpack_exports__, "unnnicAudioRecorder", function() { return /* reexport */ unnnicAudioRecorder; });
|
|
28112
31443
|
|
|
28113
31444
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
28114
31445
|
// This file is imported into lib/wc client bundles.
|
|
@@ -38826,6 +42157,502 @@ var StarRating_component = normalizeComponent(
|
|
|
38826
42157
|
)
|
|
38827
42158
|
|
|
38828
42159
|
/* harmony default export */ var StarRating = (StarRating_component.exports);
|
|
42160
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1cea8ebe-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/AudioRecorder/AudioRecorder.vue?vue&type=template&id=4aaa6de6&scoped=true&
|
|
42161
|
+
var AudioRecordervue_type_template_id_4aaa6de6_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.hasAudio)?_c('section',{staticClass:"audio-recorder"},[(_vm.isRecording || _vm.isRecorded)?_c('audio-handler',{attrs:{"is-recording":_vm.isRecording,"time":_vm.numberToTimeString(_vm.duration)},on:{"discard":_vm.discard,"save":_vm.save}}):_c('audio-player',{attrs:{"time":_vm.numberToTimeString(_vm.isIdle ? _vm.duration : _vm.currentTime),"progress-bar-percentual-value":_vm.playedPercentual,"is-playing":_vm.isPlaying},on:{"pause":_vm.pause,"play":_vm.play}})],1):_vm._e()}
|
|
42162
|
+
var AudioRecordervue_type_template_id_4aaa6de6_scoped_true_staticRenderFns = []
|
|
42163
|
+
|
|
42164
|
+
|
|
42165
|
+
// CONCATENATED MODULE: ./src/components/AudioRecorder/AudioRecorder.vue?vue&type=template&id=4aaa6de6&scoped=true&
|
|
42166
|
+
|
|
42167
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.pad-start.js
|
|
42168
|
+
var es_string_pad_start = __webpack_require__("4d90");
|
|
42169
|
+
|
|
42170
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url.js
|
|
42171
|
+
var web_url = __webpack_require__("2b3d");
|
|
42172
|
+
|
|
42173
|
+
// EXTERNAL MODULE: ./node_modules/regenerator-runtime/runtime.js
|
|
42174
|
+
var runtime = __webpack_require__("96cf");
|
|
42175
|
+
|
|
42176
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
42177
|
+
var es_promise = __webpack_require__("e6cf");
|
|
42178
|
+
|
|
42179
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
42180
|
+
|
|
42181
|
+
|
|
42182
|
+
|
|
42183
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
42184
|
+
try {
|
|
42185
|
+
var info = gen[key](arg);
|
|
42186
|
+
var value = info.value;
|
|
42187
|
+
} catch (error) {
|
|
42188
|
+
reject(error);
|
|
42189
|
+
return;
|
|
42190
|
+
}
|
|
42191
|
+
|
|
42192
|
+
if (info.done) {
|
|
42193
|
+
resolve(value);
|
|
42194
|
+
} else {
|
|
42195
|
+
Promise.resolve(value).then(_next, _throw);
|
|
42196
|
+
}
|
|
42197
|
+
}
|
|
42198
|
+
|
|
42199
|
+
function _asyncToGenerator(fn) {
|
|
42200
|
+
return function () {
|
|
42201
|
+
var self = this,
|
|
42202
|
+
args = arguments;
|
|
42203
|
+
return new Promise(function (resolve, reject) {
|
|
42204
|
+
var gen = fn.apply(self, args);
|
|
42205
|
+
|
|
42206
|
+
function _next(value) {
|
|
42207
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
42208
|
+
}
|
|
42209
|
+
|
|
42210
|
+
function _throw(err) {
|
|
42211
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
42212
|
+
}
|
|
42213
|
+
|
|
42214
|
+
_next(undefined);
|
|
42215
|
+
});
|
|
42216
|
+
};
|
|
42217
|
+
}
|
|
42218
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1cea8ebe-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/AudioRecorder/AudioHandler.vue?vue&type=template&id=95c1d466&scoped=true&
|
|
42219
|
+
var AudioHandlervue_type_template_id_95c1d466_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"audio-handler"},[_c('unnnic-tool-tip',{attrs:{"enabled":"","text":"Descartar","side":"top"}},[_c('span',{staticClass:"clickable",on:{"click":_vm.discard,"keypress":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.discard($event)}}},[_c('unnnic-icon',{attrs:{"icon":"delete-1-1","scheme":"feedback-red"}})],1)]),_c('div',{staticClass:"audio-handler__progress-bar"},[_c('div',{ref:"progressBar",staticClass:"audio-recorder__progress-bar__bar"})]),_c('span',{staticClass:"audio-handler__time"},[_vm._v(" "+_vm._s(_vm.time)+" ")]),_c('unnnic-icon',{attrs:{"icon":"indicator","scheme":_vm.isRecording ? 'feedback-red' : 'neutral-clean'}}),_c('unnnic-tool-tip',{attrs:{"enabled":"","text":"Salvar","side":"top"}},[_c('span',{staticClass:"clickable",on:{"click":_vm.save,"keypress":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.save($event)}}},[_c('unnnic-icon',{attrs:{"icon":"check-circle-1-1","scheme":"feedback-green"}})],1)])],1)}
|
|
42220
|
+
var AudioHandlervue_type_template_id_95c1d466_scoped_true_staticRenderFns = []
|
|
42221
|
+
|
|
42222
|
+
|
|
42223
|
+
// CONCATENATED MODULE: ./src/components/AudioRecorder/AudioHandler.vue?vue&type=template&id=95c1d466&scoped=true&
|
|
42224
|
+
|
|
42225
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/AudioRecorder/AudioHandler.vue?vue&type=script&lang=js&
|
|
42226
|
+
//
|
|
42227
|
+
//
|
|
42228
|
+
//
|
|
42229
|
+
//
|
|
42230
|
+
//
|
|
42231
|
+
//
|
|
42232
|
+
//
|
|
42233
|
+
//
|
|
42234
|
+
//
|
|
42235
|
+
//
|
|
42236
|
+
//
|
|
42237
|
+
//
|
|
42238
|
+
//
|
|
42239
|
+
//
|
|
42240
|
+
//
|
|
42241
|
+
//
|
|
42242
|
+
//
|
|
42243
|
+
//
|
|
42244
|
+
//
|
|
42245
|
+
//
|
|
42246
|
+
//
|
|
42247
|
+
//
|
|
42248
|
+
//
|
|
42249
|
+
//
|
|
42250
|
+
//
|
|
42251
|
+
//
|
|
42252
|
+
|
|
42253
|
+
|
|
42254
|
+
/* harmony default export */ var AudioHandlervue_type_script_lang_js_ = ({
|
|
42255
|
+
components: {
|
|
42256
|
+
UnnnicIcon: Icon,
|
|
42257
|
+
UnnnicToolTip: ToolTip
|
|
42258
|
+
},
|
|
42259
|
+
props: {
|
|
42260
|
+
isRecording: {
|
|
42261
|
+
type: Boolean,
|
|
42262
|
+
default: false
|
|
42263
|
+
},
|
|
42264
|
+
time: {
|
|
42265
|
+
type: String,
|
|
42266
|
+
default: ''
|
|
42267
|
+
}
|
|
42268
|
+
},
|
|
42269
|
+
methods: {
|
|
42270
|
+
discard: function discard() {
|
|
42271
|
+
this.$emit('discard');
|
|
42272
|
+
},
|
|
42273
|
+
save: function save() {
|
|
42274
|
+
this.$emit('save');
|
|
42275
|
+
}
|
|
42276
|
+
}
|
|
42277
|
+
});
|
|
42278
|
+
// CONCATENATED MODULE: ./src/components/AudioRecorder/AudioHandler.vue?vue&type=script&lang=js&
|
|
42279
|
+
/* harmony default export */ var AudioRecorder_AudioHandlervue_type_script_lang_js_ = (AudioHandlervue_type_script_lang_js_);
|
|
42280
|
+
// EXTERNAL MODULE: ./src/components/AudioRecorder/AudioHandler.vue?vue&type=style&index=0&id=95c1d466&lang=scss&scoped=true&
|
|
42281
|
+
var AudioHandlervue_type_style_index_0_id_95c1d466_lang_scss_scoped_true_ = __webpack_require__("5fc7");
|
|
42282
|
+
|
|
42283
|
+
// CONCATENATED MODULE: ./src/components/AudioRecorder/AudioHandler.vue
|
|
42284
|
+
|
|
42285
|
+
|
|
42286
|
+
|
|
42287
|
+
|
|
42288
|
+
|
|
42289
|
+
|
|
42290
|
+
/* normalize component */
|
|
42291
|
+
|
|
42292
|
+
var AudioHandler_component = normalizeComponent(
|
|
42293
|
+
AudioRecorder_AudioHandlervue_type_script_lang_js_,
|
|
42294
|
+
AudioHandlervue_type_template_id_95c1d466_scoped_true_render,
|
|
42295
|
+
AudioHandlervue_type_template_id_95c1d466_scoped_true_staticRenderFns,
|
|
42296
|
+
false,
|
|
42297
|
+
null,
|
|
42298
|
+
"95c1d466",
|
|
42299
|
+
null
|
|
42300
|
+
|
|
42301
|
+
)
|
|
42302
|
+
|
|
42303
|
+
/* harmony default export */ var AudioHandler = (AudioHandler_component.exports);
|
|
42304
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1cea8ebe-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/AudioRecorder/AudioPlayer.vue?vue&type=template&id=1c89d3f4&scoped=true&
|
|
42305
|
+
var AudioPlayervue_type_template_id_1c89d3f4_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"audio-player"},[(_vm.isPlaying)?_c('span',{staticClass:"clickable",on:{"click":_vm.pause,"keypress":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.pause($event)}}},[_c('unnnic-icon',{attrs:{"icon":"controls-pause-1","scheme":"neutral-darkest"}})],1):_c('span',{staticClass:"clickable",on:{"click":_vm.play,"keypress":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.play($event)}}},[_c('unnnic-icon',{attrs:{"icon":"controls-play-1","scheme":"neutral-darkest"}})],1),_c('div',{staticClass:"audio-player__progress-bar"},[_c('div',{staticClass:"audio-player__progress-bar__bar",style:({ width: (_vm.progressBarPercentualValue + "%") })})]),_c('span',{staticClass:"audio-player__time"},[_vm._v(" "+_vm._s(_vm.time)+" ")])])}
|
|
42306
|
+
var AudioPlayervue_type_template_id_1c89d3f4_scoped_true_staticRenderFns = []
|
|
42307
|
+
|
|
42308
|
+
|
|
42309
|
+
// CONCATENATED MODULE: ./src/components/AudioRecorder/AudioPlayer.vue?vue&type=template&id=1c89d3f4&scoped=true&
|
|
42310
|
+
|
|
42311
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/AudioRecorder/AudioPlayer.vue?vue&type=script&lang=js&
|
|
42312
|
+
|
|
42313
|
+
//
|
|
42314
|
+
//
|
|
42315
|
+
//
|
|
42316
|
+
//
|
|
42317
|
+
//
|
|
42318
|
+
//
|
|
42319
|
+
//
|
|
42320
|
+
//
|
|
42321
|
+
//
|
|
42322
|
+
//
|
|
42323
|
+
//
|
|
42324
|
+
//
|
|
42325
|
+
//
|
|
42326
|
+
//
|
|
42327
|
+
//
|
|
42328
|
+
//
|
|
42329
|
+
//
|
|
42330
|
+
//
|
|
42331
|
+
//
|
|
42332
|
+
//
|
|
42333
|
+
|
|
42334
|
+
/* harmony default export */ var AudioPlayervue_type_script_lang_js_ = ({
|
|
42335
|
+
components: {
|
|
42336
|
+
UnnnicIcon: Icon
|
|
42337
|
+
},
|
|
42338
|
+
props: {
|
|
42339
|
+
time: {
|
|
42340
|
+
type: String,
|
|
42341
|
+
default: ''
|
|
42342
|
+
},
|
|
42343
|
+
duration: {
|
|
42344
|
+
type: String,
|
|
42345
|
+
default: ''
|
|
42346
|
+
},
|
|
42347
|
+
isPlaying: {
|
|
42348
|
+
type: Boolean,
|
|
42349
|
+
default: false
|
|
42350
|
+
},
|
|
42351
|
+
progressBarPercentualValue: {
|
|
42352
|
+
type: Number,
|
|
42353
|
+
default: 0
|
|
42354
|
+
}
|
|
42355
|
+
},
|
|
42356
|
+
methods: {
|
|
42357
|
+
play: function play() {
|
|
42358
|
+
this.$emit('play');
|
|
42359
|
+
},
|
|
42360
|
+
pause: function pause() {
|
|
42361
|
+
this.$emit('pause');
|
|
42362
|
+
}
|
|
42363
|
+
}
|
|
42364
|
+
});
|
|
42365
|
+
// CONCATENATED MODULE: ./src/components/AudioRecorder/AudioPlayer.vue?vue&type=script&lang=js&
|
|
42366
|
+
/* harmony default export */ var AudioRecorder_AudioPlayervue_type_script_lang_js_ = (AudioPlayervue_type_script_lang_js_);
|
|
42367
|
+
// EXTERNAL MODULE: ./src/components/AudioRecorder/AudioPlayer.vue?vue&type=style&index=0&id=1c89d3f4&lang=scss&scoped=true&
|
|
42368
|
+
var AudioPlayervue_type_style_index_0_id_1c89d3f4_lang_scss_scoped_true_ = __webpack_require__("82cb");
|
|
42369
|
+
|
|
42370
|
+
// CONCATENATED MODULE: ./src/components/AudioRecorder/AudioPlayer.vue
|
|
42371
|
+
|
|
42372
|
+
|
|
42373
|
+
|
|
42374
|
+
|
|
42375
|
+
|
|
42376
|
+
|
|
42377
|
+
/* normalize component */
|
|
42378
|
+
|
|
42379
|
+
var AudioPlayer_component = normalizeComponent(
|
|
42380
|
+
AudioRecorder_AudioPlayervue_type_script_lang_js_,
|
|
42381
|
+
AudioPlayervue_type_template_id_1c89d3f4_scoped_true_render,
|
|
42382
|
+
AudioPlayervue_type_template_id_1c89d3f4_scoped_true_staticRenderFns,
|
|
42383
|
+
false,
|
|
42384
|
+
null,
|
|
42385
|
+
"1c89d3f4",
|
|
42386
|
+
null
|
|
42387
|
+
|
|
42388
|
+
)
|
|
42389
|
+
|
|
42390
|
+
/* harmony default export */ var AudioPlayer = (AudioPlayer_component.exports);
|
|
42391
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/AudioRecorder/AudioRecorder.vue?vue&type=script&lang=js&
|
|
42392
|
+
|
|
42393
|
+
|
|
42394
|
+
|
|
42395
|
+
|
|
42396
|
+
|
|
42397
|
+
|
|
42398
|
+
|
|
42399
|
+
|
|
42400
|
+
|
|
42401
|
+
|
|
42402
|
+
|
|
42403
|
+
|
|
42404
|
+
//
|
|
42405
|
+
//
|
|
42406
|
+
//
|
|
42407
|
+
//
|
|
42408
|
+
//
|
|
42409
|
+
//
|
|
42410
|
+
//
|
|
42411
|
+
//
|
|
42412
|
+
//
|
|
42413
|
+
//
|
|
42414
|
+
//
|
|
42415
|
+
//
|
|
42416
|
+
//
|
|
42417
|
+
//
|
|
42418
|
+
//
|
|
42419
|
+
//
|
|
42420
|
+
//
|
|
42421
|
+
//
|
|
42422
|
+
//
|
|
42423
|
+
//
|
|
42424
|
+
|
|
42425
|
+
|
|
42426
|
+
/* harmony default export */ var AudioRecordervue_type_script_lang_js_ = ({
|
|
42427
|
+
name: 'AudioRecorder',
|
|
42428
|
+
components: {
|
|
42429
|
+
AudioHandler: AudioHandler,
|
|
42430
|
+
AudioPlayer: AudioPlayer
|
|
42431
|
+
},
|
|
42432
|
+
data: function data() {
|
|
42433
|
+
return {
|
|
42434
|
+
/**
|
|
42435
|
+
* @type MediaRecorder
|
|
42436
|
+
*/
|
|
42437
|
+
recorder: null,
|
|
42438
|
+
|
|
42439
|
+
/**
|
|
42440
|
+
* @type HTMLAudioElement
|
|
42441
|
+
*/
|
|
42442
|
+
audio: null,
|
|
42443
|
+
|
|
42444
|
+
/**
|
|
42445
|
+
* @type MediaStream
|
|
42446
|
+
*/
|
|
42447
|
+
stream: null,
|
|
42448
|
+
audioChunks: [],
|
|
42449
|
+
duration: 0,
|
|
42450
|
+
currentTime: 0,
|
|
42451
|
+
|
|
42452
|
+
/**
|
|
42453
|
+
* @type {('idle'|'recording'|'recorded'|'playing'|'paused')}
|
|
42454
|
+
*/
|
|
42455
|
+
status: 'idle'
|
|
42456
|
+
};
|
|
42457
|
+
},
|
|
42458
|
+
computed: {
|
|
42459
|
+
hasAudio: function hasAudio() {
|
|
42460
|
+
return !!this.audio;
|
|
42461
|
+
},
|
|
42462
|
+
isIdle: function isIdle() {
|
|
42463
|
+
return this.status === 'idle';
|
|
42464
|
+
},
|
|
42465
|
+
isPlaying: function isPlaying() {
|
|
42466
|
+
return this.status === 'playing';
|
|
42467
|
+
},
|
|
42468
|
+
isRecording: function isRecording() {
|
|
42469
|
+
return this.status === 'recording';
|
|
42470
|
+
},
|
|
42471
|
+
isRecorded: function isRecorded() {
|
|
42472
|
+
return this.status === 'recorded';
|
|
42473
|
+
},
|
|
42474
|
+
playedPercentual: function playedPercentual() {
|
|
42475
|
+
return this.currentTime * 100 / this.duration;
|
|
42476
|
+
}
|
|
42477
|
+
},
|
|
42478
|
+
methods: {
|
|
42479
|
+
// entry point; accessed by external components
|
|
42480
|
+
record: function record() {
|
|
42481
|
+
var _this = this;
|
|
42482
|
+
|
|
42483
|
+
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
42484
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
42485
|
+
while (1) {
|
|
42486
|
+
switch (_context.prev = _context.next) {
|
|
42487
|
+
case 0:
|
|
42488
|
+
if (!_this.hasInUseRecordDevice()) {
|
|
42489
|
+
_context.next = 2;
|
|
42490
|
+
break;
|
|
42491
|
+
}
|
|
42492
|
+
|
|
42493
|
+
return _context.abrupt("return");
|
|
42494
|
+
|
|
42495
|
+
case 2:
|
|
42496
|
+
_context.next = 4;
|
|
42497
|
+
return _this.getAudioRecordDevice();
|
|
42498
|
+
|
|
42499
|
+
case 4:
|
|
42500
|
+
_this.setupRecorderAndAudio();
|
|
42501
|
+
|
|
42502
|
+
_this.addListeners();
|
|
42503
|
+
|
|
42504
|
+
_this.startRecord();
|
|
42505
|
+
|
|
42506
|
+
case 7:
|
|
42507
|
+
case "end":
|
|
42508
|
+
return _context.stop();
|
|
42509
|
+
}
|
|
42510
|
+
}
|
|
42511
|
+
}, _callee);
|
|
42512
|
+
}))();
|
|
42513
|
+
},
|
|
42514
|
+
hasInUseRecordDevice: function hasInUseRecordDevice() {
|
|
42515
|
+
return !!this.recorder;
|
|
42516
|
+
},
|
|
42517
|
+
getAudioRecordDevice: function getAudioRecordDevice() {
|
|
42518
|
+
var _this2 = this;
|
|
42519
|
+
|
|
42520
|
+
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
42521
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
42522
|
+
while (1) {
|
|
42523
|
+
switch (_context2.prev = _context2.next) {
|
|
42524
|
+
case 0:
|
|
42525
|
+
_context2.next = 2;
|
|
42526
|
+
return navigator.mediaDevices.getUserMedia({
|
|
42527
|
+
audio: true
|
|
42528
|
+
});
|
|
42529
|
+
|
|
42530
|
+
case 2:
|
|
42531
|
+
_this2.stream = _context2.sent;
|
|
42532
|
+
_this2.recorder = new MediaRecorder(_this2.stream);
|
|
42533
|
+
|
|
42534
|
+
case 4:
|
|
42535
|
+
case "end":
|
|
42536
|
+
return _context2.stop();
|
|
42537
|
+
}
|
|
42538
|
+
}
|
|
42539
|
+
}, _callee2);
|
|
42540
|
+
}))();
|
|
42541
|
+
},
|
|
42542
|
+
setupRecorderAndAudio: function setupRecorderAndAudio() {
|
|
42543
|
+
var _this3 = this;
|
|
42544
|
+
|
|
42545
|
+
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
42546
|
+
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
42547
|
+
while (1) {
|
|
42548
|
+
switch (_context3.prev = _context3.next) {
|
|
42549
|
+
case 0:
|
|
42550
|
+
_this3.audio = new Audio();
|
|
42551
|
+
_this3.audioChunks = [];
|
|
42552
|
+
_this3.duration = 0;
|
|
42553
|
+
_this3.currentTime = 0;
|
|
42554
|
+
|
|
42555
|
+
case 4:
|
|
42556
|
+
case "end":
|
|
42557
|
+
return _context3.stop();
|
|
42558
|
+
}
|
|
42559
|
+
}
|
|
42560
|
+
}, _callee3);
|
|
42561
|
+
}))();
|
|
42562
|
+
},
|
|
42563
|
+
addListeners: function addListeners() {
|
|
42564
|
+
var _this4 = this;
|
|
42565
|
+
|
|
42566
|
+
this.recorder.addEventListener('dataavailable', function (event) {
|
|
42567
|
+
_this4.audioChunks.push(event.data);
|
|
42568
|
+
|
|
42569
|
+
var blob = new Blob(_this4.audioChunks);
|
|
42570
|
+
var src = URL.createObjectURL(blob);
|
|
42571
|
+
_this4.audio.src = src; // necessary to have the audio duration correctly
|
|
42572
|
+
|
|
42573
|
+
_this4.audio.currentTime = 1e100;
|
|
42574
|
+
});
|
|
42575
|
+
this.recorder.addEventListener('stop', function () {
|
|
42576
|
+
_this4.stream.getTracks().forEach(function (track) {
|
|
42577
|
+
track.stop();
|
|
42578
|
+
});
|
|
42579
|
+
|
|
42580
|
+
_this4.recorder = null;
|
|
42581
|
+
});
|
|
42582
|
+
this.audio.addEventListener('loadeddata', function () {
|
|
42583
|
+
_this4.audio.currentTime = 0;
|
|
42584
|
+
_this4.duration = _this4.audio.duration;
|
|
42585
|
+
});
|
|
42586
|
+
this.audio.addEventListener('play', function () {
|
|
42587
|
+
_this4.status = 'playing';
|
|
42588
|
+
});
|
|
42589
|
+
this.audio.addEventListener('pause', function () {
|
|
42590
|
+
_this4.status = 'paused';
|
|
42591
|
+
});
|
|
42592
|
+
this.audio.addEventListener('timeupdate', function () {
|
|
42593
|
+
if (_this4.status !== 'playing') return;
|
|
42594
|
+
_this4.currentTime = _this4.audio.currentTime;
|
|
42595
|
+
});
|
|
42596
|
+
this.audio.addEventListener('ended', function () {
|
|
42597
|
+
_this4.currentTime = 0;
|
|
42598
|
+
_this4.status = 'idle';
|
|
42599
|
+
});
|
|
42600
|
+
},
|
|
42601
|
+
startRecord: function startRecord() {
|
|
42602
|
+
this.status = 'recording';
|
|
42603
|
+
var recordTimeSliceInMilliseconds = 500;
|
|
42604
|
+
this.recorder.start(recordTimeSliceInMilliseconds);
|
|
42605
|
+
},
|
|
42606
|
+
discard: function discard() {
|
|
42607
|
+
this.audio = null;
|
|
42608
|
+
this.status = 'idle';
|
|
42609
|
+
},
|
|
42610
|
+
save: function save() {
|
|
42611
|
+
this.status = 'idle';
|
|
42612
|
+
},
|
|
42613
|
+
pause: function pause() {
|
|
42614
|
+
this.audio.pause();
|
|
42615
|
+
},
|
|
42616
|
+
stop: function stop() {
|
|
42617
|
+
this.status = 'recorded';
|
|
42618
|
+
this.recorder.stop();
|
|
42619
|
+
},
|
|
42620
|
+
play: function play() {
|
|
42621
|
+
this.audio.play();
|
|
42622
|
+
},
|
|
42623
|
+
numberToTimeString: function numberToTimeString(time) {
|
|
42624
|
+
var minutes = Math.floor(time / 60);
|
|
42625
|
+
var seconds = Math.round(time % 60).toString().padStart(2, '0');
|
|
42626
|
+
return "".concat(minutes, ":").concat(seconds);
|
|
42627
|
+
}
|
|
42628
|
+
}
|
|
42629
|
+
});
|
|
42630
|
+
// CONCATENATED MODULE: ./src/components/AudioRecorder/AudioRecorder.vue?vue&type=script&lang=js&
|
|
42631
|
+
/* harmony default export */ var AudioRecorder_AudioRecordervue_type_script_lang_js_ = (AudioRecordervue_type_script_lang_js_);
|
|
42632
|
+
// EXTERNAL MODULE: ./src/components/AudioRecorder/AudioRecorder.vue?vue&type=style&index=0&id=4aaa6de6&lang=scss&scoped=true&
|
|
42633
|
+
var AudioRecordervue_type_style_index_0_id_4aaa6de6_lang_scss_scoped_true_ = __webpack_require__("2db1");
|
|
42634
|
+
|
|
42635
|
+
// CONCATENATED MODULE: ./src/components/AudioRecorder/AudioRecorder.vue
|
|
42636
|
+
|
|
42637
|
+
|
|
42638
|
+
|
|
42639
|
+
|
|
42640
|
+
|
|
42641
|
+
|
|
42642
|
+
/* normalize component */
|
|
42643
|
+
|
|
42644
|
+
var AudioRecorder_component = normalizeComponent(
|
|
42645
|
+
AudioRecorder_AudioRecordervue_type_script_lang_js_,
|
|
42646
|
+
AudioRecordervue_type_template_id_4aaa6de6_scoped_true_render,
|
|
42647
|
+
AudioRecordervue_type_template_id_4aaa6de6_scoped_true_staticRenderFns,
|
|
42648
|
+
false,
|
|
42649
|
+
null,
|
|
42650
|
+
"4aaa6de6",
|
|
42651
|
+
null
|
|
42652
|
+
|
|
42653
|
+
)
|
|
42654
|
+
|
|
42655
|
+
/* harmony default export */ var AudioRecorder = (AudioRecorder_component.exports);
|
|
38829
42656
|
// CONCATENATED MODULE: ./src/components/index.js
|
|
38830
42657
|
|
|
38831
42658
|
|
|
@@ -38885,6 +42712,7 @@ var StarRating_component = normalizeComponent(
|
|
|
38885
42712
|
|
|
38886
42713
|
|
|
38887
42714
|
|
|
42715
|
+
|
|
38888
42716
|
|
|
38889
42717
|
|
|
38890
42718
|
var components = {
|
|
@@ -38943,7 +42771,8 @@ var components = {
|
|
|
38943
42771
|
unnnicChartRainbow: ChartRainbow,
|
|
38944
42772
|
unnnicTextEditor: TextEditor,
|
|
38945
42773
|
unnnicMoodRating: MoodRating,
|
|
38946
|
-
unnnicStarRating: StarRating
|
|
42774
|
+
unnnicStarRating: StarRating,
|
|
42775
|
+
unnnicAudioRecorder: AudioRecorder
|
|
38947
42776
|
};
|
|
38948
42777
|
Object.keys(components).forEach(function (name) {
|
|
38949
42778
|
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.component(name, components[name]);
|
|
@@ -39006,6 +42835,7 @@ var unnnicChartRainbow = ChartRainbow;
|
|
|
39006
42835
|
var unnnicTextEditor = TextEditor;
|
|
39007
42836
|
var unnnicMoodRating = MoodRating;
|
|
39008
42837
|
var unnnicStarRating = StarRating;
|
|
42838
|
+
var unnnicAudioRecorder = AudioRecorder;
|
|
39009
42839
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js
|
|
39010
42840
|
|
|
39011
42841
|
|
|
@@ -39232,6 +43062,16 @@ module.exports = NATIVE_SYMBOL
|
|
|
39232
43062
|
&& typeof Symbol.iterator == 'symbol';
|
|
39233
43063
|
|
|
39234
43064
|
|
|
43065
|
+
/***/ }),
|
|
43066
|
+
|
|
43067
|
+
/***/ "fea9":
|
|
43068
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
43069
|
+
|
|
43070
|
+
var global = __webpack_require__("da84");
|
|
43071
|
+
|
|
43072
|
+
module.exports = global.Promise;
|
|
43073
|
+
|
|
43074
|
+
|
|
39235
43075
|
/***/ }),
|
|
39236
43076
|
|
|
39237
43077
|
/***/ "ff88":
|