jodit 4.11.13 → 4.11.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +5 -5
- package/es2015/jodit.js +286 -40
- package/es2015/jodit.min.js +5 -5
- package/es2015/plugins/debug/debug.css +1 -1
- package/es2015/plugins/debug/debug.js +1 -1
- package/es2015/plugins/debug/debug.min.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2018/jodit.fat.min.js +7 -7
- package/es2018/jodit.min.js +26 -26
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +12 -8
- package/es2021/jodit.js +102 -4
- package/es2021/jodit.min.js +25 -21
- package/es2021/plugins/debug/debug.css +1 -1
- package/es2021/plugins/debug/debug.js +1 -1
- package/es2021/plugins/debug/debug.min.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +10 -6
- package/es2021.en/jodit.js +102 -4
- package/es2021.en/jodit.min.js +9 -5
- package/es2021.en/plugins/debug/debug.css +1 -1
- package/es2021.en/plugins/debug/debug.js +1 -1
- package/es2021.en/plugins/debug/debug.min.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +403 -47
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.css +1 -1
- package/es5/plugins/debug/debug.js +1 -1
- package/es5/plugins/debug/debug.min.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/core/constants.js +1 -1
- package/esm/core/request/ajax.d.ts +1 -0
- package/esm/core/request/ajax.js +104 -0
- package/esm/plugins/image-properties/ui/ui-image-main-tab.js +2 -2
- package/esm/types/ajax.d.ts +9 -0
- package/package.json +1 -1
- package/types/core/request/ajax.d.ts +1 -0
- package/types/types/ajax.d.ts +9 -0
package/es2015/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.11.
|
|
4
|
+
* Version: v4.11.15
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -1764,7 +1764,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1764
1764
|
* ```
|
|
1765
1765
|
* @packageDocumentation
|
|
1766
1766
|
* @module constants
|
|
1767
|
-
*/ const APP_VERSION = "4.11.
|
|
1767
|
+
*/ const APP_VERSION = "4.11.15";
|
|
1768
1768
|
// prettier-ignore
|
|
1769
1769
|
const ES = "es2015";
|
|
1770
1770
|
const IS_ES_MODERN = true;
|
|
@@ -9549,17 +9549,19 @@ class Plugin extends jodit_core_component__WEBPACK_IMPORTED_MODULE_2__.ViewCompo
|
|
|
9549
9549
|
/* harmony export */ Ajax: function() { return /* binding */ Ajax; }
|
|
9550
9550
|
/* harmony export */ });
|
|
9551
9551
|
/* harmony import */ var _swc_helpers_async_to_generator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(49376);
|
|
9552
|
-
/* harmony import */ var
|
|
9553
|
-
/* harmony import */ var
|
|
9554
|
-
/* harmony import */ var
|
|
9555
|
-
/* harmony import */ var
|
|
9556
|
-
/* harmony import */ var
|
|
9557
|
-
/* harmony import */ var
|
|
9558
|
-
/* harmony import */ var
|
|
9559
|
-
/* harmony import */ var
|
|
9560
|
-
/* harmony import */ var
|
|
9561
|
-
/* harmony import */ var
|
|
9562
|
-
/* harmony import */ var
|
|
9552
|
+
/* harmony import */ var _swc_helpers_await_async_generator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6311);
|
|
9553
|
+
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(25045);
|
|
9554
|
+
/* harmony import */ var _swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(41411);
|
|
9555
|
+
/* harmony import */ var _swc_helpers_wrap_async_generator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(86367);
|
|
9556
|
+
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(31635);
|
|
9557
|
+
/* harmony import */ var jodit_core_async__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91231);
|
|
9558
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(81937);
|
|
9559
|
+
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(49574);
|
|
9560
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(65946);
|
|
9561
|
+
/* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(33201);
|
|
9562
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(5266);
|
|
9563
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(37102);
|
|
9564
|
+
/* harmony import */ var _response__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(32855);
|
|
9563
9565
|
/*!
|
|
9564
9566
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
9565
9567
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -9580,21 +9582,23 @@ class Plugin extends jodit_core_component__WEBPACK_IMPORTED_MODULE_2__.ViewCompo
|
|
|
9580
9582
|
|
|
9581
9583
|
|
|
9582
9584
|
|
|
9585
|
+
|
|
9586
|
+
|
|
9583
9587
|
class Ajax {
|
|
9584
9588
|
className() {
|
|
9585
9589
|
return 'Ajax';
|
|
9586
9590
|
}
|
|
9587
9591
|
__buildParams(obj, prefix) {
|
|
9588
|
-
if ((0,
|
|
9592
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_9__.isPlainObject)(obj) && this.options.contentType && this.options.contentType.includes('application/json')) {
|
|
9589
9593
|
return JSON.stringify(obj);
|
|
9590
9594
|
}
|
|
9591
|
-
if ((0,
|
|
9595
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_9__.isFunction)(this.o.queryBuild)) {
|
|
9592
9596
|
return this.o.queryBuild.call(this, obj, prefix);
|
|
9593
9597
|
}
|
|
9594
|
-
if ((0,
|
|
9598
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_9__.isString)(obj) || obj instanceof jodit_core_constants__WEBPACK_IMPORTED_MODULE_7__.globalWindow.FormData || typeof obj === 'object' && obj != null && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_9__.isFunction)(obj.append)) {
|
|
9595
9599
|
return obj;
|
|
9596
9600
|
}
|
|
9597
|
-
return (0,
|
|
9601
|
+
return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_9__.buildQuery)(obj);
|
|
9598
9602
|
}
|
|
9599
9603
|
get o() {
|
|
9600
9604
|
return this.options;
|
|
@@ -9617,16 +9621,16 @@ class Ajax {
|
|
|
9617
9621
|
var _o_withCredentials;
|
|
9618
9622
|
const onReject = ()=>{
|
|
9619
9623
|
this.__isFulfilled = true;
|
|
9620
|
-
reject(
|
|
9624
|
+
reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_10__.connection('Connection error'));
|
|
9621
9625
|
};
|
|
9622
9626
|
const onResolve = ()=>{
|
|
9623
9627
|
this.__isFulfilled = true;
|
|
9624
|
-
resolve(new
|
|
9628
|
+
resolve(new _response__WEBPACK_IMPORTED_MODULE_13__.Response(request, xhr.status, xhr.statusText, !xhr.responseType ? xhr.responseText : xhr.response));
|
|
9625
9629
|
};
|
|
9626
9630
|
xhr.onload = onResolve;
|
|
9627
9631
|
xhr.onabort = ()=>{
|
|
9628
9632
|
this.__isFulfilled = true;
|
|
9629
|
-
reject(
|
|
9633
|
+
reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_10__.abort('Abort connection'));
|
|
9630
9634
|
};
|
|
9631
9635
|
xhr.onerror = onReject;
|
|
9632
9636
|
xhr.ontimeout = onReject;
|
|
@@ -9649,7 +9653,7 @@ class Ajax {
|
|
|
9649
9653
|
onResolve();
|
|
9650
9654
|
} else if (xhr.statusText) {
|
|
9651
9655
|
this.__isFulfilled = true;
|
|
9652
|
-
reject(
|
|
9656
|
+
reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_10__.connection(xhr.statusText));
|
|
9653
9657
|
}
|
|
9654
9658
|
}
|
|
9655
9659
|
};
|
|
@@ -9660,7 +9664,7 @@ class Ajax {
|
|
|
9660
9664
|
xhr.setRequestHeader('Content-type', o.contentType);
|
|
9661
9665
|
}
|
|
9662
9666
|
let { headers } = o;
|
|
9663
|
-
if ((0,
|
|
9667
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_9__.isFunction)(headers)) {
|
|
9664
9668
|
headers = yield headers.call(this);
|
|
9665
9669
|
}
|
|
9666
9670
|
if (headers && xhr.setRequestHeader) {
|
|
@@ -9674,20 +9678,122 @@ class Ajax {
|
|
|
9674
9678
|
}, 0);
|
|
9675
9679
|
}).call(this));
|
|
9676
9680
|
}
|
|
9681
|
+
stream() {
|
|
9682
|
+
return (0,_swc_helpers_wrap_async_generator__WEBPACK_IMPORTED_MODULE_4__._)(function*() {
|
|
9683
|
+
var _o_withCredentials;
|
|
9684
|
+
this.__activated = true;
|
|
9685
|
+
const { xhr, o } = this;
|
|
9686
|
+
const request = this.prepareRequest();
|
|
9687
|
+
let lastIndex = 0;
|
|
9688
|
+
let buffer = '';
|
|
9689
|
+
const queue = [];
|
|
9690
|
+
let waitResolve = null;
|
|
9691
|
+
let done = false;
|
|
9692
|
+
let streamError = null;
|
|
9693
|
+
const notify = ()=>{
|
|
9694
|
+
if (waitResolve) {
|
|
9695
|
+
const r = waitResolve;
|
|
9696
|
+
waitResolve = null;
|
|
9697
|
+
r();
|
|
9698
|
+
}
|
|
9699
|
+
};
|
|
9700
|
+
const processChunk = (final)=>{
|
|
9701
|
+
var _events_pop;
|
|
9702
|
+
const text = xhr.responseText;
|
|
9703
|
+
buffer += text.substring(lastIndex);
|
|
9704
|
+
lastIndex = text.length;
|
|
9705
|
+
const events = buffer.split('\n\n');
|
|
9706
|
+
buffer = final ? '' : (_events_pop = events.pop()) !== null && _events_pop !== void 0 ? _events_pop : '';
|
|
9707
|
+
for (const event of events){
|
|
9708
|
+
const trimmed = event.trim();
|
|
9709
|
+
if (!trimmed) {
|
|
9710
|
+
continue;
|
|
9711
|
+
}
|
|
9712
|
+
const dataLines = [];
|
|
9713
|
+
for (const line of trimmed.split('\n')){
|
|
9714
|
+
if (line.startsWith('data: ')) {
|
|
9715
|
+
dataLines.push(line.slice(6));
|
|
9716
|
+
} else if (line.startsWith('data:')) {
|
|
9717
|
+
dataLines.push(line.slice(5));
|
|
9718
|
+
}
|
|
9719
|
+
}
|
|
9720
|
+
if (dataLines.length) {
|
|
9721
|
+
queue.push(dataLines.join('\n'));
|
|
9722
|
+
}
|
|
9723
|
+
}
|
|
9724
|
+
notify();
|
|
9725
|
+
};
|
|
9726
|
+
xhr.onprogress = ()=>processChunk(false);
|
|
9727
|
+
xhr.onload = ()=>{
|
|
9728
|
+
processChunk(true);
|
|
9729
|
+
done = true;
|
|
9730
|
+
this.__isFulfilled = true;
|
|
9731
|
+
notify();
|
|
9732
|
+
};
|
|
9733
|
+
xhr.onerror = ()=>{
|
|
9734
|
+
streamError = jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_10__.connection('Connection error');
|
|
9735
|
+
done = true;
|
|
9736
|
+
this.__isFulfilled = true;
|
|
9737
|
+
notify();
|
|
9738
|
+
};
|
|
9739
|
+
xhr.onabort = ()=>{
|
|
9740
|
+
streamError = jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_10__.abort('Abort connection');
|
|
9741
|
+
done = true;
|
|
9742
|
+
this.__isFulfilled = true;
|
|
9743
|
+
notify();
|
|
9744
|
+
};
|
|
9745
|
+
xhr.withCredentials = (_o_withCredentials = o.withCredentials) !== null && _o_withCredentials !== void 0 ? _o_withCredentials : false;
|
|
9746
|
+
const { url, data, method } = request;
|
|
9747
|
+
xhr.open(method, url, true);
|
|
9748
|
+
if (o.contentType && xhr.setRequestHeader) {
|
|
9749
|
+
xhr.setRequestHeader('Content-type', o.contentType);
|
|
9750
|
+
}
|
|
9751
|
+
let { headers } = o;
|
|
9752
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_9__.isFunction)(headers)) {
|
|
9753
|
+
headers = yield (0,_swc_helpers_await_async_generator__WEBPACK_IMPORTED_MODULE_1__._)(headers.call(this));
|
|
9754
|
+
}
|
|
9755
|
+
if (headers && xhr.setRequestHeader) {
|
|
9756
|
+
Object.keys(headers).forEach((key)=>{
|
|
9757
|
+
xhr.setRequestHeader(key, headers[key]);
|
|
9758
|
+
});
|
|
9759
|
+
}
|
|
9760
|
+
xhr.send(data ? this.__buildParams(data) : undefined);
|
|
9761
|
+
try {
|
|
9762
|
+
while(true){
|
|
9763
|
+
if (queue.length > 0) {
|
|
9764
|
+
yield queue.shift();
|
|
9765
|
+
} else if (done) {
|
|
9766
|
+
break;
|
|
9767
|
+
} else {
|
|
9768
|
+
yield (0,_swc_helpers_await_async_generator__WEBPACK_IMPORTED_MODULE_1__._)(new Promise((r)=>{
|
|
9769
|
+
waitResolve = r;
|
|
9770
|
+
}));
|
|
9771
|
+
}
|
|
9772
|
+
}
|
|
9773
|
+
} finally{
|
|
9774
|
+
if (!this.__isFulfilled) {
|
|
9775
|
+
this.abort();
|
|
9776
|
+
}
|
|
9777
|
+
}
|
|
9778
|
+
if (streamError) {
|
|
9779
|
+
throw streamError;
|
|
9780
|
+
}
|
|
9781
|
+
}).call(this);
|
|
9782
|
+
}
|
|
9677
9783
|
prepareRequest() {
|
|
9678
9784
|
if (!this.o.url) {
|
|
9679
|
-
throw
|
|
9785
|
+
throw jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_10__.error('Need URL for AJAX request');
|
|
9680
9786
|
}
|
|
9681
9787
|
let url = this.o.url;
|
|
9682
9788
|
const data = this.o.data;
|
|
9683
9789
|
const method = (this.o.method || 'get').toLowerCase();
|
|
9684
|
-
if (method === 'get' && data && (0,
|
|
9790
|
+
if (method === 'get' && data && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_9__.isPlainObject)(data)) {
|
|
9685
9791
|
const qIndex = url.indexOf('?');
|
|
9686
9792
|
if (qIndex !== -1) {
|
|
9687
|
-
const urlData = (0,
|
|
9688
|
-
url = url.substring(0, qIndex) + '?' + (0,
|
|
9793
|
+
const urlData = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_9__.parseQuery)(url);
|
|
9794
|
+
url = url.substring(0, qIndex) + '?' + (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_9__.buildQuery)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_3__._)({}, urlData, data));
|
|
9689
9795
|
} else {
|
|
9690
|
-
url += '?' + (0,
|
|
9796
|
+
url += '?' + (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_9__.buildQuery)(this.o.data);
|
|
9691
9797
|
}
|
|
9692
9798
|
}
|
|
9693
9799
|
const request = {
|
|
@@ -9709,20 +9815,20 @@ class Ajax {
|
|
|
9709
9815
|
this.__async.destruct();
|
|
9710
9816
|
}
|
|
9711
9817
|
}
|
|
9712
|
-
constructor(options, defaultAjaxOptions =
|
|
9713
|
-
(0,
|
|
9714
|
-
(0,
|
|
9715
|
-
(0,
|
|
9716
|
-
(0,
|
|
9717
|
-
(0,
|
|
9718
|
-
(0,
|
|
9719
|
-
this.options = (0,
|
|
9818
|
+
constructor(options, defaultAjaxOptions = jodit_config__WEBPACK_IMPORTED_MODULE_11__.Config.prototype.defaultAjaxOptions){
|
|
9819
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__._)(this, "__async", new jodit_core_async__WEBPACK_IMPORTED_MODULE_6__.Async());
|
|
9820
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__._)(this, "xhr", void 0);
|
|
9821
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__._)(this, "options", void 0);
|
|
9822
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__._)(this, "__isFulfilled", false);
|
|
9823
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__._)(this, "__activated", false);
|
|
9824
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__._)(this, "__isDestructed", false);
|
|
9825
|
+
this.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_9__.ConfigProto)(options || {}, defaultAjaxOptions);
|
|
9720
9826
|
this.xhr = this.o.xhr ? this.o.xhr() : new XMLHttpRequest();
|
|
9721
9827
|
}
|
|
9722
9828
|
}
|
|
9723
|
-
(0,
|
|
9724
|
-
(0,
|
|
9725
|
-
|
|
9829
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__._)(Ajax, "log", []);
|
|
9830
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
|
|
9831
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_8__.autobind
|
|
9726
9832
|
], Ajax.prototype, "destruct", null);
|
|
9727
9833
|
|
|
9728
9834
|
|
|
@@ -32075,8 +32181,8 @@ class UIImageMainTab extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_
|
|
|
32075
32181
|
<div class="jodit-input_group">
|
|
32076
32182
|
<input class="jodit-input &__imageSrc" type="text"/>
|
|
32077
32183
|
<div class="jodit-input_group-buttons &__fixImage">
|
|
32078
|
-
|
|
32079
|
-
|
|
32184
|
+
<a class="jodit-button &__changeImage" data-ref="changeImage">*image*</a>
|
|
32185
|
+
<a class="jodit-button &__editImage" data-ref="editImage">*crop*</a>
|
|
32080
32186
|
</div>
|
|
32081
32187
|
</div>
|
|
32082
32188
|
</div>
|
|
@@ -43741,6 +43847,94 @@ module.exports = "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 1792 179
|
|
|
43741
43847
|
"use strict";
|
|
43742
43848
|
module.exports = {assert(){}};;
|
|
43743
43849
|
|
|
43850
|
+
/***/ }),
|
|
43851
|
+
|
|
43852
|
+
/***/ 75026:
|
|
43853
|
+
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
43854
|
+
|
|
43855
|
+
"use strict";
|
|
43856
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43857
|
+
/* harmony export */ _: function() { return /* binding */ _async_generator; }
|
|
43858
|
+
/* harmony export */ });
|
|
43859
|
+
/* harmony import */ var _overload_yield_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15254);
|
|
43860
|
+
|
|
43861
|
+
function _async_generator(gen) {
|
|
43862
|
+
var front, back;
|
|
43863
|
+
function send(key, arg) {
|
|
43864
|
+
return new Promise(function(resolve, reject) {
|
|
43865
|
+
var request = {
|
|
43866
|
+
key: key,
|
|
43867
|
+
arg: arg,
|
|
43868
|
+
resolve: resolve,
|
|
43869
|
+
reject: reject,
|
|
43870
|
+
next: null
|
|
43871
|
+
};
|
|
43872
|
+
if (back) back = back.next = request;
|
|
43873
|
+
else {
|
|
43874
|
+
front = back = request;
|
|
43875
|
+
resume(key, arg);
|
|
43876
|
+
}
|
|
43877
|
+
});
|
|
43878
|
+
}
|
|
43879
|
+
function resume(key, arg) {
|
|
43880
|
+
try {
|
|
43881
|
+
var result = gen[key](arg);
|
|
43882
|
+
var value = result.value;
|
|
43883
|
+
var overloaded = value instanceof _overload_yield_js__WEBPACK_IMPORTED_MODULE_0__._;
|
|
43884
|
+
Promise.resolve(overloaded ? value.v : value).then(function(arg) {
|
|
43885
|
+
if (overloaded) {
|
|
43886
|
+
var nextKey = key === "return" ? "return" : "next";
|
|
43887
|
+
if (!value.k || arg.done) return resume(nextKey, arg);
|
|
43888
|
+
else arg = gen[nextKey](arg).value;
|
|
43889
|
+
}
|
|
43890
|
+
settle(result.done ? "return" : "normal", arg);
|
|
43891
|
+
}, function(err) {
|
|
43892
|
+
resume("throw", err);
|
|
43893
|
+
});
|
|
43894
|
+
} catch (err) {
|
|
43895
|
+
settle("throw", err);
|
|
43896
|
+
}
|
|
43897
|
+
}
|
|
43898
|
+
function settle(type, value) {
|
|
43899
|
+
switch(type){
|
|
43900
|
+
case "return":
|
|
43901
|
+
front.resolve({
|
|
43902
|
+
value: value,
|
|
43903
|
+
done: true
|
|
43904
|
+
});
|
|
43905
|
+
break;
|
|
43906
|
+
case "throw":
|
|
43907
|
+
front.reject(value);
|
|
43908
|
+
break;
|
|
43909
|
+
default:
|
|
43910
|
+
front.resolve({
|
|
43911
|
+
value: value,
|
|
43912
|
+
done: false
|
|
43913
|
+
});
|
|
43914
|
+
break;
|
|
43915
|
+
}
|
|
43916
|
+
front = front.next;
|
|
43917
|
+
if (front) resume(front.key, front.arg);
|
|
43918
|
+
else back = null;
|
|
43919
|
+
}
|
|
43920
|
+
this._invoke = send;
|
|
43921
|
+
if (typeof gen.return !== "function") this.return = undefined;
|
|
43922
|
+
}
|
|
43923
|
+
_async_generator.prototype[typeof Symbol === "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
|
|
43924
|
+
return this;
|
|
43925
|
+
};
|
|
43926
|
+
_async_generator.prototype.next = function(arg) {
|
|
43927
|
+
return this._invoke("next", arg);
|
|
43928
|
+
};
|
|
43929
|
+
_async_generator.prototype.throw = function(arg) {
|
|
43930
|
+
return this._invoke("throw", arg);
|
|
43931
|
+
};
|
|
43932
|
+
_async_generator.prototype.return = function(arg) {
|
|
43933
|
+
return this._invoke("return", arg);
|
|
43934
|
+
};
|
|
43935
|
+
|
|
43936
|
+
|
|
43937
|
+
|
|
43744
43938
|
/***/ }),
|
|
43745
43939
|
|
|
43746
43940
|
/***/ 49376:
|
|
@@ -43779,6 +43973,23 @@ function _async_to_generator(fn) {
|
|
|
43779
43973
|
|
|
43780
43974
|
|
|
43781
43975
|
|
|
43976
|
+
/***/ }),
|
|
43977
|
+
|
|
43978
|
+
/***/ 6311:
|
|
43979
|
+
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
43980
|
+
|
|
43981
|
+
"use strict";
|
|
43982
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43983
|
+
/* harmony export */ _: function() { return /* binding */ _await_async_generator; }
|
|
43984
|
+
/* harmony export */ });
|
|
43985
|
+
/* harmony import */ var _overload_yield_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15254);
|
|
43986
|
+
|
|
43987
|
+
function _await_async_generator(value) {
|
|
43988
|
+
return new _overload_yield_js__WEBPACK_IMPORTED_MODULE_0__._(value, /* kind: await */ 0);
|
|
43989
|
+
}
|
|
43990
|
+
|
|
43991
|
+
|
|
43992
|
+
|
|
43782
43993
|
/***/ }),
|
|
43783
43994
|
|
|
43784
43995
|
/***/ 25045:
|
|
@@ -43866,6 +44077,41 @@ function _object_spread_props(target, source) {
|
|
|
43866
44077
|
|
|
43867
44078
|
|
|
43868
44079
|
|
|
44080
|
+
/***/ }),
|
|
44081
|
+
|
|
44082
|
+
/***/ 15254:
|
|
44083
|
+
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
44084
|
+
|
|
44085
|
+
"use strict";
|
|
44086
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
44087
|
+
/* harmony export */ _: function() { return /* binding */ _overload_yield; }
|
|
44088
|
+
/* harmony export */ });
|
|
44089
|
+
function _overload_yield(value, /** 0: await 1: delegate */ kind) {
|
|
44090
|
+
this.v = value;
|
|
44091
|
+
this.k = kind;
|
|
44092
|
+
}
|
|
44093
|
+
|
|
44094
|
+
|
|
44095
|
+
|
|
44096
|
+
/***/ }),
|
|
44097
|
+
|
|
44098
|
+
/***/ 86367:
|
|
44099
|
+
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
44100
|
+
|
|
44101
|
+
"use strict";
|
|
44102
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
44103
|
+
/* harmony export */ _: function() { return /* binding */ _wrap_async_generator; }
|
|
44104
|
+
/* harmony export */ });
|
|
44105
|
+
/* harmony import */ var _async_generator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(75026);
|
|
44106
|
+
|
|
44107
|
+
function _wrap_async_generator(fn) {
|
|
44108
|
+
return function() {
|
|
44109
|
+
return new _async_generator_js__WEBPACK_IMPORTED_MODULE_0__._(fn.apply(this, arguments));
|
|
44110
|
+
};
|
|
44111
|
+
}
|
|
44112
|
+
|
|
44113
|
+
|
|
44114
|
+
|
|
43869
44115
|
/***/ }),
|
|
43870
44116
|
|
|
43871
44117
|
/***/ 31635:
|